From 291b6af93d8d5d638b956de05eac8f438ae831ea Mon Sep 17 00:00:00 2001 From: iSmartCoding Date: Sun, 4 Aug 2024 23:23:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6->=E5=86=85=E9=83=A8=E5=AD=98?= =?UTF-8?q?=E5=82=A8=E7=9A=84bug=20#195?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{AIChatView-BklUdsm5.js => AIChatView-C6TL1duT.js} | 2 +- ...IChatsSidebar-DGY1IrlG.js => AIChatsSidebar-CtG-RNga.js} | 2 +- .../{AIChatsView-BtwzZ9Jh.js => AIChatsView-B4QzEE_5.js} | 2 +- .../{AppsSidebar-ChIAGNf6.js => AppsSidebar-DIojpdxl.js} | 2 +- app/src/main/resources/web/assets/AppsView-CYUzkFWb.js | 1 - app/src/main/resources/web/assets/AppsView-D9MzdfnP.css | 1 - app/src/main/resources/web/assets/AppsView-DjawsU48.js | 1 + app/src/main/resources/web/assets/AppsView-mxXQaxYv.css | 1 + app/src/main/resources/web/assets/AudiosSidebar-DVPk3URw.js | 1 - app/src/main/resources/web/assets/AudiosSidebar-Dq3tWc3K.js | 1 + app/src/main/resources/web/assets/AudiosView-6hAoxYID.js | 1 - app/src/main/resources/web/assets/AudiosView-B0P2D0co.css | 1 - app/src/main/resources/web/assets/AudiosView-CCTwbXRb.css | 1 + app/src/main/resources/web/assets/AudiosView-vRBNAKnA.js | 1 + .../{Breadcrumb-Dw4cmHLf.js => Breadcrumb-CXy0PDtB.js} | 2 +- .../{CallsSidebar-BT2GeIws.js => CallsSidebar-DFxIRlRX.js} | 2 +- .../assets/{CallsView-Du0dMBSu.js => CallsView-CzDaUb1S.js} | 2 +- ...tactsSidebar-BhyJSnpi.js => ContactsSidebar-kNCUoG7d.js} | 2 +- .../{ContactsView-Bu1iKHhR.js => ContactsView-yr-2rY75.js} | 2 +- ...eviceInfoView-BOk_tcZ1.js => DeviceInfoView-DTyOzgf5.js} | 2 +- .../{DevicesView-DzjDseA2.js => DevicesView-C_LOeQ2V.js} | 2 +- ...> EditToolbar.vuevuetypescriptsetuptruelang-CKd0R4yf.js} | 2 +- ...ditValueModal-Ws2hdG3a.js => EditValueModal-O1aAFYgx.js} | 2 +- ...{FeedEntryView-HICAY_wi.js => FeedEntryView-DJ7bOIIl.js} | 2 +- .../{FeedsSidebar-4CfHj968.js => FeedsSidebar-BolTRI-Q.js} | 2 +- ...{FeedsSidebar2-CfQzzU05.js => FeedsSidebar2-ARS0K567.js} | 2 +- ...esRecentView-t1qUzSQT.js => FilesRecentView-vsq00COR.js} | 2 +- .../{FilesSidebar--pVYvG4i.js => FilesSidebar-CwUlyGz8.js} | 2 +- .../{FilesView-DriMBhIE.css => FilesView-CVor1d4m.css} | 2 +- app/src/main/resources/web/assets/FilesView-DVCo2Xu2.js | 1 + app/src/main/resources/web/assets/FilesView-TPT_BxjG.js | 1 - .../assets/{HomeView-Bq2MUecw.js => HomeView-DXd8FGXG.js} | 2 +- app/src/main/resources/web/assets/ImagesSidebar-BGOsPYeJ.js | 1 + app/src/main/resources/web/assets/ImagesSidebar-BajmyCvN.js | 1 - app/src/main/resources/web/assets/ImagesView-BnPoKDHs.js | 1 + app/src/main/resources/web/assets/ImagesView-CDVlRIWh.js | 1 - ...sonViewerView-BP0nVgFt.js => JsonViewerView-BRYD9jgN.js} | 2 +- ...> LeftSidebar.vuevuetypescriptsetuptruelang-BWG8gajF.js} | 2 +- .../assets/{LoginView-8N5ARdAC.js => LoginView-D9DcHVT2.js} | 2 +- ... MediaSidebar.vuevuetypescriptsetuptruelang-kDQsOpRT.js} | 2 +- ...sagesSidebar-CfBuWvqn.js => MessagesSidebar-Bq3uPVyY.js} | 2 +- .../{MessagesView-BXs-YvFg.js => MessagesView-Lo9CFG6T.js} | 2 +- ... MonacoEditor.vuevuetypescriptsetuptruelang-BNZRjtJE.js} | 6 +++--- .../{NetworkView-DEsR_qcg.js => NetworkView-CvS5JKEb.js} | 2 +- .../{NoteEditView-CM2IJAyE.js => NoteEditView-NOrZqV-k.js} | 2 +- .../{NotesSidebar-DHZnCq2W.js => NotesSidebar-CKJ0TkLn.js} | 2 +- .../assets/{NotesView-CpABUojQ.js => NotesView-CmvQj0k5.js} | 2 +- ...atorView-D1zoFzte.js => QrCodeGeneratorView-uCh2g3ea.js} | 2 +- .../{RoutesView-D8Ogkhi5.js => RoutesView-D87udG5Z.js} | 2 +- .../assets/{RulesView-CqY_sCWF.js => RulesView-y2r2SwLC.js} | 2 +- ...nMirrorView-D_ht7L_q.js => ScreenMirrorView-DiWYaGkb.js} | 2 +- .../{SearchInput-DTMVECJE.js => SearchInput-DhaE-3h8.js} | 2 +- ... => TagFilter.vuevuetypescriptsetuptruelang-DySu9lzm.js} | 2 +- ...> VPagination.vuevuetypescriptsetuptruelang-goYu96wT.js} | 2 +- app/src/main/resources/web/assets/VideosSidebar-D77MkroS.js | 1 - app/src/main/resources/web/assets/VideosSidebar-DsCT02ty.js | 1 + app/src/main/resources/web/assets/VideosView-BBEKzrlo.js | 1 - app/src/main/resources/web/assets/VideosView-DJ0iJBjn.js | 1 + .../assets/{WiFiView-Cf7pDl6y.js => WiFiView-DcmCXVXc.js} | 2 +- ...rdEditView-DBMZogVu.js => WireGuardEditView-aVmc_Sci.js} | 2 +- ...{WireGuardView-volrBImr.js => WireGuardView-C8ywVKyM.js} | 2 +- ...ed-CDQXzmCq.js => add-notes-outline-rounded-CJxyoeFp.js} | 2 +- ...rounded-vG9wdFxG.js => call-outline-rounded-BLAgo6pA.js} | 2 +- ...g8G2lc59.js => contact-page-outline-rounded-By1MHhQ9.js} | 2 +- ...ounded-DMWI-l4g.js => content-paste-rounded-DUKWQrlf.js} | 2 +- .../web/assets/{cssMode-DtbAo8VM.js => cssMode-C9P57343.js} | 2 +- .../web/assets/{feeds-qiGOSRuI.js => feeds-bp5iUXJ_.js} | 2 +- .../{freemarker2-DExPAC1B.js => freemarker2-DR4awqSq.js} | 2 +- ...ed-CLDXc2EL.js => grid-view-outline-rounded-D3vSSmrh.js} | 2 +- .../{handlebars-BOx74Vw8.js => handlebars-CN37euyO.js} | 2 +- .../web/assets/{html-B98YRxTm.js => html-_59g4-uc.js} | 2 +- .../assets/{htmlMode-B3f09YUI.js => htmlMode-D9Mlms7n.js} | 2 +- .../web/assets/{index-BzaaAwnX.js => index-R8dLcqG_.js} | 4 ++-- .../{javascript-46oaFvXi.js => javascript-DGPiJBBE.js} | 2 +- .../assets/{jsonMode-Bx8X7dz8.js => jsonMode-BcJk7cNl.js} | 2 +- .../{key-events-C5OjC_dP.js => key-events-BNCM8SMB.js} | 2 +- .../web/assets/{liquid-BtfrggTR.js => liquid-D3wQ_0c-.js} | 2 +- .../assets/{markdown-q_fHGBEX.js => markdown-C_We2h-B.js} | 2 +- .../assets/{more-vert-BRJfC0iG.js => more-vert-zjmMMiPD.js} | 2 +- ...ounded-B686mlM4.js => print-outline-rounded-wkAfaGzM.js} | 2 +- .../web/assets/{python-CPdyGXTu.js => python-CSObIQxI.js} | 2 +- ...ounded-DNpslAE7.js => question-mark-rounded-BC93NM4N.js} | 2 +- .../web/assets/{razor-C8NV1rZc.js => razor-DGbs-Ass.js} | 2 +- ...resh-rounded-DnwgRawr.js => refresh-rounded-D8TYDVGT.js} | 2 +- ...eed-rounded-9FbiHzkN.js => rss-feed-rounded-BCiGdgJ5.js} | 2 +- .../web/assets/{search-DwB6FdxH.js => search-ByVbj6Ls.js} | 2 +- ...earch-rounded-Btuwf-IQ.js => search-rounded-CULEMJ2O.js} | 2 +- .../{sort-rounded-BiVhN4C5.js => sort-rounded-CsJpi3ce.js} | 2 +- .../web/assets/{tags-BvnEKqTV.js => tags-Dbpv368M.js} | 2 +- .../web/assets/{tsMode-D5aWU1mP.js => tsMode-DVLo0ZTq.js} | 2 +- .../{typescript-B2JOWJ8l.js => typescript-L8Bz5EfD.js} | 2 +- ...pload-rounded-BkrPpEdb.js => upload-rounded-CQIzYelP.js} | 2 +- ...alidate.esm-DNjIRPsN.js => vee-validate.esm-vpr6zxQb.js} | 2 +- .../web/assets/{xml-B8uJIXUe.js => xml-C8Om98hV.js} | 2 +- .../web/assets/{yaml-BN2Qx_1b.js => yaml-WOLPGjoo.js} | 2 +- app/src/main/resources/web/index.html | 2 +- 96 files changed, 89 insertions(+), 89 deletions(-) rename app/src/main/resources/web/assets/{AIChatView-BklUdsm5.js => AIChatView-C6TL1duT.js} (97%) rename app/src/main/resources/web/assets/{AIChatsSidebar-DGY1IrlG.js => AIChatsSidebar-CtG-RNga.js} (88%) rename app/src/main/resources/web/assets/{AIChatsView-BtwzZ9Jh.js => AIChatsView-B4QzEE_5.js} (92%) rename app/src/main/resources/web/assets/{AppsSidebar-ChIAGNf6.js => AppsSidebar-DIojpdxl.js} (89%) delete mode 100644 app/src/main/resources/web/assets/AppsView-CYUzkFWb.js delete mode 100644 app/src/main/resources/web/assets/AppsView-D9MzdfnP.css create mode 100644 app/src/main/resources/web/assets/AppsView-DjawsU48.js create mode 100644 app/src/main/resources/web/assets/AppsView-mxXQaxYv.css delete mode 100644 app/src/main/resources/web/assets/AudiosSidebar-DVPk3URw.js create mode 100644 app/src/main/resources/web/assets/AudiosSidebar-Dq3tWc3K.js delete mode 100644 app/src/main/resources/web/assets/AudiosView-6hAoxYID.js delete mode 100644 app/src/main/resources/web/assets/AudiosView-B0P2D0co.css create mode 100644 app/src/main/resources/web/assets/AudiosView-CCTwbXRb.css create mode 100644 app/src/main/resources/web/assets/AudiosView-vRBNAKnA.js rename app/src/main/resources/web/assets/{Breadcrumb-Dw4cmHLf.js => Breadcrumb-CXy0PDtB.js} (81%) rename app/src/main/resources/web/assets/{CallsSidebar-BT2GeIws.js => CallsSidebar-DFxIRlRX.js} (81%) rename app/src/main/resources/web/assets/{CallsView-Du0dMBSu.js => CallsView-CzDaUb1S.js} (94%) rename app/src/main/resources/web/assets/{ContactsSidebar-BhyJSnpi.js => ContactsSidebar-kNCUoG7d.js} (72%) rename app/src/main/resources/web/assets/{ContactsView-Bu1iKHhR.js => ContactsView-yr-2rY75.js} (97%) rename app/src/main/resources/web/assets/{DeviceInfoView-BOk_tcZ1.js => DeviceInfoView-DTyOzgf5.js} (98%) rename app/src/main/resources/web/assets/{DevicesView-DzjDseA2.js => DevicesView-C_LOeQ2V.js} (92%) rename app/src/main/resources/web/assets/{EditToolbar.vuevuetypescriptsetuptruelang-BN3_Xe4L.js => EditToolbar.vuevuetypescriptsetuptruelang-CKd0R4yf.js} (92%) rename app/src/main/resources/web/assets/{EditValueModal-Ws2hdG3a.js => EditValueModal-O1aAFYgx.js} (92%) rename app/src/main/resources/web/assets/{FeedEntryView-HICAY_wi.js => FeedEntryView-DJ7bOIIl.js} (95%) rename app/src/main/resources/web/assets/{FeedsSidebar-4CfHj968.js => FeedsSidebar-BolTRI-Q.js} (94%) rename app/src/main/resources/web/assets/{FeedsSidebar2-CfQzzU05.js => FeedsSidebar2-ARS0K567.js} (93%) rename app/src/main/resources/web/assets/{FilesRecentView-t1qUzSQT.js => FilesRecentView-vsq00COR.js} (97%) rename app/src/main/resources/web/assets/{FilesSidebar--pVYvG4i.js => FilesSidebar-CwUlyGz8.js} (89%) rename app/src/main/resources/web/assets/{FilesView-DriMBhIE.css => FilesView-CVor1d4m.css} (57%) create mode 100644 app/src/main/resources/web/assets/FilesView-DVCo2Xu2.js delete mode 100644 app/src/main/resources/web/assets/FilesView-TPT_BxjG.js rename app/src/main/resources/web/assets/{HomeView-Bq2MUecw.js => HomeView-DXd8FGXG.js} (97%) create mode 100644 app/src/main/resources/web/assets/ImagesSidebar-BGOsPYeJ.js delete mode 100644 app/src/main/resources/web/assets/ImagesSidebar-BajmyCvN.js create mode 100644 app/src/main/resources/web/assets/ImagesView-BnPoKDHs.js delete mode 100644 app/src/main/resources/web/assets/ImagesView-CDVlRIWh.js rename app/src/main/resources/web/assets/{JsonViewerView-BP0nVgFt.js => JsonViewerView-BRYD9jgN.js} (97%) rename app/src/main/resources/web/assets/{LeftSidebar.vuevuetypescriptsetuptruelang-xn7lCt7t.js => LeftSidebar.vuevuetypescriptsetuptruelang-BWG8gajF.js} (96%) rename app/src/main/resources/web/assets/{LoginView-8N5ARdAC.js => LoginView-D9DcHVT2.js} (98%) rename app/src/main/resources/web/assets/{MediaSidebar.vuevuetypescriptsetuptruelang-rTL93G-q.js => MediaSidebar.vuevuetypescriptsetuptruelang-kDQsOpRT.js} (93%) rename app/src/main/resources/web/assets/{MessagesSidebar-CfBuWvqn.js => MessagesSidebar-Bq3uPVyY.js} (77%) rename app/src/main/resources/web/assets/{MessagesView-BXs-YvFg.js => MessagesView-Lo9CFG6T.js} (93%) rename app/src/main/resources/web/assets/{MonacoEditor.vuevuetypescriptsetuptruelang-BaOpzcW2.js => MonacoEditor.vuevuetypescriptsetuptruelang-BNZRjtJE.js} (99%) rename app/src/main/resources/web/assets/{NetworkView-DEsR_qcg.js => NetworkView-CvS5JKEb.js} (84%) rename app/src/main/resources/web/assets/{NoteEditView-CM2IJAyE.js => NoteEditView-NOrZqV-k.js} (94%) rename app/src/main/resources/web/assets/{NotesSidebar-DHZnCq2W.js => NotesSidebar-CKJ0TkLn.js} (76%) rename app/src/main/resources/web/assets/{NotesView-CpABUojQ.js => NotesView-CmvQj0k5.js} (94%) rename app/src/main/resources/web/assets/{QrCodeGeneratorView-D1zoFzte.js => QrCodeGeneratorView-uCh2g3ea.js} (99%) rename app/src/main/resources/web/assets/{RoutesView-D8Ogkhi5.js => RoutesView-D87udG5Z.js} (96%) rename app/src/main/resources/web/assets/{RulesView-CqY_sCWF.js => RulesView-y2r2SwLC.js} (98%) rename app/src/main/resources/web/assets/{ScreenMirrorView-D_ht7L_q.js => ScreenMirrorView-DiWYaGkb.js} (98%) rename app/src/main/resources/web/assets/{SearchInput-DTMVECJE.js => SearchInput-DhaE-3h8.js} (97%) rename app/src/main/resources/web/assets/{TagFilter.vuevuetypescriptsetuptruelang-CUu0usUl.js => TagFilter.vuevuetypescriptsetuptruelang-DySu9lzm.js} (93%) rename app/src/main/resources/web/assets/{VPagination.vuevuetypescriptsetuptruelang-DJTUsUyq.js => VPagination.vuevuetypescriptsetuptruelang-goYu96wT.js} (95%) delete mode 100644 app/src/main/resources/web/assets/VideosSidebar-D77MkroS.js create mode 100644 app/src/main/resources/web/assets/VideosSidebar-DsCT02ty.js delete mode 100644 app/src/main/resources/web/assets/VideosView-BBEKzrlo.js create mode 100644 app/src/main/resources/web/assets/VideosView-DJ0iJBjn.js rename app/src/main/resources/web/assets/{WiFiView-Cf7pDl6y.js => WiFiView-DcmCXVXc.js} (95%) rename app/src/main/resources/web/assets/{WireGuardEditView-DBMZogVu.js => WireGuardEditView-aVmc_Sci.js} (92%) rename app/src/main/resources/web/assets/{WireGuardView-volrBImr.js => WireGuardView-C8ywVKyM.js} (94%) rename app/src/main/resources/web/assets/{add-notes-outline-rounded-CDQXzmCq.js => add-notes-outline-rounded-CJxyoeFp.js} (96%) rename app/src/main/resources/web/assets/{call-outline-rounded-vG9wdFxG.js => call-outline-rounded-BLAgo6pA.js} (91%) rename app/src/main/resources/web/assets/{contact-page-outline-rounded-g8G2lc59.js => contact-page-outline-rounded-By1MHhQ9.js} (90%) rename app/src/main/resources/web/assets/{content-paste-rounded-DMWI-l4g.js => content-paste-rounded-DUKWQrlf.js} (89%) rename app/src/main/resources/web/assets/{cssMode-DtbAo8VM.js => cssMode-C9P57343.js} (99%) rename app/src/main/resources/web/assets/{feeds-qiGOSRuI.js => feeds-bp5iUXJ_.js} (77%) rename app/src/main/resources/web/assets/{freemarker2-DExPAC1B.js => freemarker2-DR4awqSq.js} (99%) rename app/src/main/resources/web/assets/{grid-view-outline-rounded-CLDXc2EL.js => grid-view-outline-rounded-D3vSSmrh.js} (97%) rename app/src/main/resources/web/assets/{handlebars-BOx74Vw8.js => handlebars-CN37euyO.js} (99%) rename app/src/main/resources/web/assets/{html-B98YRxTm.js => html-_59g4-uc.js} (98%) rename app/src/main/resources/web/assets/{htmlMode-B3f09YUI.js => htmlMode-D9Mlms7n.js} (99%) rename app/src/main/resources/web/assets/{index-BzaaAwnX.js => index-R8dLcqG_.js} (99%) rename app/src/main/resources/web/assets/{javascript-46oaFvXi.js => javascript-DGPiJBBE.js} (77%) rename app/src/main/resources/web/assets/{jsonMode-Bx8X7dz8.js => jsonMode-BcJk7cNl.js} (99%) rename app/src/main/resources/web/assets/{key-events-C5OjC_dP.js => key-events-BNCM8SMB.js} (96%) rename app/src/main/resources/web/assets/{liquid-BtfrggTR.js => liquid-D3wQ_0c-.js} (98%) rename app/src/main/resources/web/assets/{markdown-q_fHGBEX.js => markdown-C_We2h-B.js} (99%) rename app/src/main/resources/web/assets/{more-vert-BRJfC0iG.js => more-vert-zjmMMiPD.js} (87%) rename app/src/main/resources/web/assets/{print-outline-rounded-B686mlM4.js => print-outline-rounded-wkAfaGzM.js} (91%) rename app/src/main/resources/web/assets/{python-CPdyGXTu.js => python-CSObIQxI.js} (98%) rename app/src/main/resources/web/assets/{question-mark-rounded-DNpslAE7.js => question-mark-rounded-BC93NM4N.js} (97%) rename app/src/main/resources/web/assets/{razor-C8NV1rZc.js => razor-DGbs-Ass.js} (98%) rename app/src/main/resources/web/assets/{refresh-rounded-DnwgRawr.js => refresh-rounded-D8TYDVGT.js} (89%) rename app/src/main/resources/web/assets/{rss-feed-rounded-9FbiHzkN.js => rss-feed-rounded-BCiGdgJ5.js} (92%) rename app/src/main/resources/web/assets/{search-DwB6FdxH.js => search-ByVbj6Ls.js} (94%) rename app/src/main/resources/web/assets/{search-rounded-Btuwf-IQ.js => search-rounded-CULEMJ2O.js} (88%) rename app/src/main/resources/web/assets/{sort-rounded-BiVhN4C5.js => sort-rounded-CsJpi3ce.js} (87%) rename app/src/main/resources/web/assets/{tags-BvnEKqTV.js => tags-Dbpv368M.js} (96%) rename app/src/main/resources/web/assets/{tsMode-D5aWU1mP.js => tsMode-DVLo0ZTq.js} (99%) rename app/src/main/resources/web/assets/{typescript-B2JOWJ8l.js => typescript-L8Bz5EfD.js} (98%) rename app/src/main/resources/web/assets/{upload-rounded-BkrPpEdb.js => upload-rounded-CQIzYelP.js} (90%) rename app/src/main/resources/web/assets/{vee-validate.esm-DNjIRPsN.js => vee-validate.esm-vpr6zxQb.js} (99%) rename app/src/main/resources/web/assets/{xml-B8uJIXUe.js => xml-C8Om98hV.js} (97%) rename app/src/main/resources/web/assets/{yaml-BN2Qx_1b.js => yaml-WOLPGjoo.js} (98%) diff --git a/app/src/main/resources/web/assets/AIChatView-BklUdsm5.js b/app/src/main/resources/web/assets/AIChatView-C6TL1duT.js similarity index 97% rename from app/src/main/resources/web/assets/AIChatView-BklUdsm5.js rename to app/src/main/resources/web/assets/AIChatView-C6TL1duT.js index b9379354..ede59cca 100644 --- a/app/src/main/resources/web/assets/AIChatView-BklUdsm5.js +++ b/app/src/main/resources/web/assets/AIChatView-C6TL1duT.js @@ -1,4 +1,4 @@ -import{d as Y,u as Z,g as ee,h as r,s as te,i as ae,l as se,j as V,b7 as ne,aw as H,af as oe,a1 as B,ag as ie,c as d,a as s,O as le,P as ce,t as u,e as N,x as A,y as re,A as h,w as v,p as Q,Q as de,C as ue,bl as pe,bm as _e,bn as ve,S as me,o as l,m,bo as M,v as he,q as R,ap as q,V as G,bp as K,F as fe,G as ye,bq as be,ao as Ce,br as ge,H as we}from"./index-BzaaAwnX.js";import{u as ke}from"./markdown-q_fHGBEX.js";const Ae=f=>(fe("data-v-4d4db71f"),f=f(),ye(),f),Me={class:"chat-container"},Ie={key:0,class:"date"},Te={class:"chat-title"},$e={class:"name"},xe={class:"time"},De={class:"menu-items"},Le=["onClick","disabled"],Se={slot:"headline"},Ve={key:2,class:"chat-title"},He={class:"name"},Be={class:"time"},Ne=["innerHTML"],Qe={key:0,class:"chat-item replying"},Re={class:"chat-title"},qe={class:"name"},Ge=["innerHTML"],Ke={class:"chat-input",style:{"min-height":"80px"}},Fe=["placeholder","onKeydown"],Pe={class:"btns"},Ue=Ae(()=>s("md-ripple",null,null,-1)),je=Y({__name:"AIChatView",setup(f){const F=Z(),{t:P}=ee(),U=de(),c=r(U.params.id),i=r(""),p=r([]),y=r(!1),b=r(""),g=r(""),{app:j,urlTokenKey:E}=te(ae()),I=r(),{render:C}=ke(j,E);function w(){return c.value==="create"}function O(e,t){let n=!1;if(t==0)n=!0;else{const o=t>0?p.value[t-1]:null;o!=null&&M(o.createdAt)!==M(e.createdAt)&&(n=!0)}return n}w()||se({handle:async(e,t)=>{if(t)ue(P(t),"error");else{const n=[];n.push({...e.aiChat,md:await C(e.aiChat.content)});for(const o of e.aiChats)n.push({...o,md:await C(o.content)});p.value=n,await H(),x()}},document:pe,variables:()=>({id:c.value,query:`parent_id:${c.value} sort:created_at-asc`}),appApi:!0});const{mutate:T,onDone:z}=V({document:_e,appApi:!0});function $(){!i.value||y.value||T({id:w()?"":c.value,message:i.value,isMe:!0})}z(async e=>{var n;const t=e.data.createAIChat;if(t){for(const _ of t)(n=p.value)==null||n.push({..._,md:await C(_.content)});w()&&(c.value=t[0].id,ne(F,`/aichats/${c.value}`)),i.value="",y.value=!y.value,b.value="",g.value='',await H(),x()}});function x(){const e=I.value;e&&(e.scrollTop=e.scrollHeight)}const k=r(""),{mutate:J,loading:W}=V({document:ve,options:{update:e=>{var n,o;e.evict({id:e.identify({__typename:"AIChat",id:k.value})});const t=(n=p.value)==null?void 0:n.findIndex(_=>_.id===k.value);t!==null&&((o=p.value)==null||o.splice(t,1))}},appApi:!0});function X(e){k.value=e,J({query:`ids:${e}`})}const D=async e=>{e.parentId===c.value&&(b.value+=e.content,g.value=await C(b.value+''),e.finishReason==="stop"&&T({id:c.value,message:b.value,isMe:!1}))};return oe(()=>{B.on("ai_chat_replied",D)}),ie(()=>{B.off("ai_chat_replied",D)}),(e,t)=>{const n=be,o=Ce,_=ge,L=me("tooltip");return l(),d("div",Me,[s("div",{class:"chat-items",ref_key:"scrollContainer",ref:I},[(l(!0),d(le,null,ce(p.value,(a,S)=>(l(),d("div",{key:a.id,class:"chat-item"},[O(a,S)?(l(),d("div",Ie,u(m(M)(a.createdAt)),1)):N("",!0),S>0?(l(),he(o,{key:1},{content:R(()=>[s("div",De,[s("md-menu-item",{onClick:Ee=>X(a.id),disabled:m(W)},[s("div",Se,u(e.$t("delete_message")),1)],8,Le)])]),default:R(()=>[s("div",Te,[s("span",$e,u(e.$t(a.isMe?"me":"ai")),1),A((l(),d("span",xe,[G(u(m(K)(a.createdAt)),1)])),[[L,m(q)(a.createdAt)]]),Q(n,{class:"bi bi-more"})])]),_:2},1024)):(l(),d("div",Ve,[s("span",He,u(e.$t(a.isMe?"me":"ai")),1),A((l(),d("span",Be,[G(u(m(K)(a.createdAt)),1)])),[[L,m(q)(a.createdAt)]])])),s("div",{class:"chat-content md-container",innerHTML:a.md},null,8,Ne)]))),128)),y.value?(l(),d("div",Qe,[s("div",Re,[s("span",qe,u(e.$t("ai")),1)]),s("div",{class:"chat-content md-container",innerHTML:g.value},null,8,Ge)])):N("",!0)],512),s("div",Ke,[A(s("md-outlined-text-field",{class:"textarea",type:"textarea","onUpdate:modelValue":t[0]||(t[0]=a=>i.value=a),autocomplete:"off",placeholder:e.$t("chat_input_hint"),onKeydown:[h(v($,["exact","prevent"]),["enter"]),t[1]||(t[1]=h(v(a=>i.value+=` +import{d as Y,u as Z,g as ee,h as r,s as te,i as ae,l as se,j as V,b7 as ne,aw as H,af as oe,a1 as B,ag as ie,c as d,a as s,O as le,P as ce,t as u,e as N,x as A,y as re,A as h,w as v,p as Q,Q as de,C as ue,bl as pe,bm as _e,bn as ve,S as me,o as l,m,bo as M,v as he,q as R,ap as q,V as G,bp as K,F as fe,G as ye,bq as be,ao as Ce,br as ge,H as we}from"./index-R8dLcqG_.js";import{u as ke}from"./markdown-C_We2h-B.js";const Ae=f=>(fe("data-v-4d4db71f"),f=f(),ye(),f),Me={class:"chat-container"},Ie={key:0,class:"date"},Te={class:"chat-title"},$e={class:"name"},xe={class:"time"},De={class:"menu-items"},Le=["onClick","disabled"],Se={slot:"headline"},Ve={key:2,class:"chat-title"},He={class:"name"},Be={class:"time"},Ne=["innerHTML"],Qe={key:0,class:"chat-item replying"},Re={class:"chat-title"},qe={class:"name"},Ge=["innerHTML"],Ke={class:"chat-input",style:{"min-height":"80px"}},Fe=["placeholder","onKeydown"],Pe={class:"btns"},Ue=Ae(()=>s("md-ripple",null,null,-1)),je=Y({__name:"AIChatView",setup(f){const F=Z(),{t:P}=ee(),U=de(),c=r(U.params.id),i=r(""),p=r([]),y=r(!1),b=r(""),g=r(""),{app:j,urlTokenKey:E}=te(ae()),I=r(),{render:C}=ke(j,E);function w(){return c.value==="create"}function O(e,t){let n=!1;if(t==0)n=!0;else{const o=t>0?p.value[t-1]:null;o!=null&&M(o.createdAt)!==M(e.createdAt)&&(n=!0)}return n}w()||se({handle:async(e,t)=>{if(t)ue(P(t),"error");else{const n=[];n.push({...e.aiChat,md:await C(e.aiChat.content)});for(const o of e.aiChats)n.push({...o,md:await C(o.content)});p.value=n,await H(),x()}},document:pe,variables:()=>({id:c.value,query:`parent_id:${c.value} sort:created_at-asc`}),appApi:!0});const{mutate:T,onDone:z}=V({document:_e,appApi:!0});function $(){!i.value||y.value||T({id:w()?"":c.value,message:i.value,isMe:!0})}z(async e=>{var n;const t=e.data.createAIChat;if(t){for(const _ of t)(n=p.value)==null||n.push({..._,md:await C(_.content)});w()&&(c.value=t[0].id,ne(F,`/aichats/${c.value}`)),i.value="",y.value=!y.value,b.value="",g.value='',await H(),x()}});function x(){const e=I.value;e&&(e.scrollTop=e.scrollHeight)}const k=r(""),{mutate:J,loading:W}=V({document:ve,options:{update:e=>{var n,o;e.evict({id:e.identify({__typename:"AIChat",id:k.value})});const t=(n=p.value)==null?void 0:n.findIndex(_=>_.id===k.value);t!==null&&((o=p.value)==null||o.splice(t,1))}},appApi:!0});function X(e){k.value=e,J({query:`ids:${e}`})}const D=async e=>{e.parentId===c.value&&(b.value+=e.content,g.value=await C(b.value+''),e.finishReason==="stop"&&T({id:c.value,message:b.value,isMe:!1}))};return oe(()=>{B.on("ai_chat_replied",D)}),ie(()=>{B.off("ai_chat_replied",D)}),(e,t)=>{const n=be,o=Ce,_=ge,L=me("tooltip");return l(),d("div",Me,[s("div",{class:"chat-items",ref_key:"scrollContainer",ref:I},[(l(!0),d(le,null,ce(p.value,(a,S)=>(l(),d("div",{key:a.id,class:"chat-item"},[O(a,S)?(l(),d("div",Ie,u(m(M)(a.createdAt)),1)):N("",!0),S>0?(l(),he(o,{key:1},{content:R(()=>[s("div",De,[s("md-menu-item",{onClick:Ee=>X(a.id),disabled:m(W)},[s("div",Se,u(e.$t("delete_message")),1)],8,Le)])]),default:R(()=>[s("div",Te,[s("span",$e,u(e.$t(a.isMe?"me":"ai")),1),A((l(),d("span",xe,[G(u(m(K)(a.createdAt)),1)])),[[L,m(q)(a.createdAt)]]),Q(n,{class:"bi bi-more"})])]),_:2},1024)):(l(),d("div",Ve,[s("span",He,u(e.$t(a.isMe?"me":"ai")),1),A((l(),d("span",Be,[G(u(m(K)(a.createdAt)),1)])),[[L,m(q)(a.createdAt)]])])),s("div",{class:"chat-content md-container",innerHTML:a.md},null,8,Ne)]))),128)),y.value?(l(),d("div",Qe,[s("div",Re,[s("span",qe,u(e.$t("ai")),1)]),s("div",{class:"chat-content md-container",innerHTML:g.value},null,8,Ge)])):N("",!0)],512),s("div",Ke,[A(s("md-outlined-text-field",{class:"textarea",type:"textarea","onUpdate:modelValue":t[0]||(t[0]=a=>i.value=a),autocomplete:"off",placeholder:e.$t("chat_input_hint"),onKeydown:[h(v($,["exact","prevent"]),["enter"]),t[1]||(t[1]=h(v(a=>i.value+=` `,["shift","exact","prevent"]),["enter"])),t[2]||(t[2]=h(v(a=>i.value+=` `,["ctrl","exact","prevent"]),["enter"])),t[3]||(t[3]=h(v(a=>i.value+=` `,["alt","exact","prevent"]),["enter"])),t[4]||(t[4]=h(v(a=>i.value+=` diff --git a/app/src/main/resources/web/assets/AIChatsSidebar-DGY1IrlG.js b/app/src/main/resources/web/assets/AIChatsSidebar-CtG-RNga.js similarity index 88% rename from app/src/main/resources/web/assets/AIChatsSidebar-DGY1IrlG.js rename to app/src/main/resources/web/assets/AIChatsSidebar-CtG-RNga.js index 95ecd482..dc222d24 100644 --- a/app/src/main/resources/web/assets/AIChatsSidebar-DGY1IrlG.js +++ b/app/src/main/resources/web/assets/AIChatsSidebar-CtG-RNga.js @@ -1 +1 @@ -import{_ as M}from"./LeftSidebar.vuevuetypescriptsetuptruelang-xn7lCt7t.js";import{_ as S}from"./TagFilter.vuevuetypescriptsetuptruelang-CUu0usUl.js";import{o as u,c as f,a,d as T,h as k,g as V,j as x,bw as B,au as L,l as G,C as N,bx as Q,aw as z,av as q,x as w,y as D,m as s,z as K,A as P,t as h,e as F,V as I,u as R,I as E,k as j,v as H,q as b,a6 as y,a0 as U,S as Z,p as $,w as A,N as J,f as O,Z as W}from"./index-BzaaAwnX.js";import{u as X}from"./search-DwB6FdxH.js";import{u as Y,a as tt}from"./vee-validate.esm-DNjIRPsN.js";import"./more-vert-BRJfC0iG.js";import"./EditValueModal-Ws2hdG3a.js";const et={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ot=a("path",{fill:"currentColor",d:"m9.25 22l-.4-3.2q-.325-.125-.612-.3t-.563-.375L4.7 19.375l-2.75-4.75l2.575-1.95Q4.5 12.5 4.5 12.338v-.675q0-.163.025-.338L1.95 9.375l2.75-4.75l2.975 1.25q.275-.2.575-.375t.6-.3l.4-3.2h5.5l.4 3.2q.325.125.613.3t.562.375l2.975-1.25l2.75 4.75l-2.575 1.95q.025.175.025.338v.674q0 .163-.05.338l2.575 1.95l-2.75 4.75l-2.95-1.25q-.275.2-.575.375t-.6.3l-.4 3.2zM11 20h1.975l.35-2.65q.775-.2 1.438-.587t1.212-.938l2.475 1.025l.975-1.7l-2.15-1.625q.125-.35.175-.737T17.5 12t-.05-.787t-.175-.738l2.15-1.625l-.975-1.7l-2.475 1.05q-.55-.575-1.212-.962t-1.438-.588L13 4h-1.975l-.35 2.65q-.775.2-1.437.588t-1.213.937L5.55 7.15l-.975 1.7l2.15 1.6q-.125.375-.175.75t-.05.8q0 .4.05.775t.175.75l-2.15 1.625l.975 1.7l2.475-1.05q.55.575 1.213.963t1.437.587zm1.05-4.5q1.45 0 2.475-1.025T15.55 12t-1.025-2.475T12.05 8.5q-1.475 0-2.488 1.025T8.55 12t1.013 2.475T12.05 15.5M12 12"},null,-1),st=[ot];function at(g,d){return u(),f("svg",et,[...st])}const nt={name:"material-symbols-settings-outline",render:at},lt=a("div",{slot:"headline"},"ChatGPT",-1),it={slot:"content"},rt=["label","error","error-text"],ct={slot:"actions"},ut=["disabled"],dt={key:0,indeterminate:"",slot:"icon"},pt=T({__name:"AIChatConfigModal",props:{value:{type:String}},setup(g){const{handleSubmit:d}=Y(),p=k(),{t:r}=V(),c=g,{mutate:_,loading:m,onDone:C}=x({document:B,options:{update:()=>{}},appApi:!0}),{value:t,resetField:v,errorMessage:n}=tt("inputValue",L());t.value=c.value??"",t.value||v(),G({handle:(o,e)=>{e?N(r(e),"error"):o&&(t.value=o.aiChatConfig.chatGPTApiKey)},document:Q,variables:null,appApi:!0}),(async()=>{var o;await z(),(o=p.value)==null||o.focus()})();const i=d(()=>{_({chatGPTApiKey:t.value??""})});return C(()=>{q()}),(o,e)=>(u(),f("md-dialog",null,[lt,a("div",it,[w(a("md-outlined-text-field",{ref_key:"input",ref:p,label:o.$t("api_key"),class:"form-control","onUpdate:modelValue":e[0]||(e[0]=l=>K(t)?t.value=l:null),onKeyup:e[1]||(e[1]=P((...l)=>s(i)&&s(i)(...l),["enter"])),error:s(n),"error-text":s(n)?o.$t(s(n)):""},null,40,rt),[[D,s(t)]])]),a("div",ct,[a("md-outlined-button",{value:"cancel",onClick:e[2]||(e[2]=(...l)=>s(q)&&s(q)(...l))},h(o.$t("cancel")),1),a("md-filled-button",{value:"save",disabled:s(m),onClick:e[3]||(e[3]=(...l)=>s(i)&&s(i)(...l)),autofocus:""},[s(m)?(u(),f("md-circular-progress",dt)):F("",!0),I(" "+h(o.$t("save")),1)],8,ut)])]))}}),_t=a("md-ripple",null,null,-1),mt={class:"nav"},vt={class:"title"},$t=T({__name:"AIChatsSidebar",setup(g){const d=R(),{parseQ:p}=X(),r=E({tagIds:[]}),c=k("");function _(){var n;const t=y.currentRoute.value,v=U(((n=t.query.q)==null?void 0:n.toString())??"");p(r,v),c.value=r.tagIds.length===1?r.tagIds[0]:""}_(),j(()=>y.currentRoute.value,()=>{_()});function m(){O(d,"/aichats")}function C(){W(pt)}return(t,v)=>{const n=nt,i=S,o=M,e=Z("tooltip");return u(),H(o,null,{title:b(()=>[I(h(t.$t("page_title.aichats")),1)]),actions:b(()=>[w((u(),f("button",{class:"btn-icon",onClick:A(C,["prevent"])},[_t,$(n)])),[[e,t.$t("config")]])]),body:b(()=>[a("ul",mt,[a("li",{onClick:A(m,["prevent"]),class:J({active:!c.value})},[a("span",vt,h(t.$t("all")),1)],2)]),$(i,{type:"AI_CHAT",selected:c.value},null,8,["selected"])]),_:1})}}});export{$t as default}; +import{_ as M}from"./LeftSidebar.vuevuetypescriptsetuptruelang-BWG8gajF.js";import{_ as S}from"./TagFilter.vuevuetypescriptsetuptruelang-DySu9lzm.js";import{o as u,c as f,a,d as T,h as k,g as V,j as x,bw as B,au as L,l as G,C as N,bx as Q,aw as z,av as q,x as w,y as D,m as s,z as K,A as P,t as h,e as F,V as I,u as R,I as E,k as j,v as H,q as b,a6 as y,a0 as U,S as Z,p as $,w as A,N as J,f as O,Z as W}from"./index-R8dLcqG_.js";import{u as X}from"./search-ByVbj6Ls.js";import{u as Y,a as tt}from"./vee-validate.esm-vpr6zxQb.js";import"./more-vert-zjmMMiPD.js";import"./EditValueModal-O1aAFYgx.js";const et={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ot=a("path",{fill:"currentColor",d:"m9.25 22l-.4-3.2q-.325-.125-.612-.3t-.563-.375L4.7 19.375l-2.75-4.75l2.575-1.95Q4.5 12.5 4.5 12.338v-.675q0-.163.025-.338L1.95 9.375l2.75-4.75l2.975 1.25q.275-.2.575-.375t.6-.3l.4-3.2h5.5l.4 3.2q.325.125.613.3t.562.375l2.975-1.25l2.75 4.75l-2.575 1.95q.025.175.025.338v.674q0 .163-.05.338l2.575 1.95l-2.75 4.75l-2.95-1.25q-.275.2-.575.375t-.6.3l-.4 3.2zM11 20h1.975l.35-2.65q.775-.2 1.438-.587t1.212-.938l2.475 1.025l.975-1.7l-2.15-1.625q.125-.35.175-.737T17.5 12t-.05-.787t-.175-.738l2.15-1.625l-.975-1.7l-2.475 1.05q-.55-.575-1.212-.962t-1.438-.588L13 4h-1.975l-.35 2.65q-.775.2-1.437.588t-1.213.937L5.55 7.15l-.975 1.7l2.15 1.6q-.125.375-.175.75t-.05.8q0 .4.05.775t.175.75l-2.15 1.625l.975 1.7l2.475-1.05q.55.575 1.213.963t1.437.587zm1.05-4.5q1.45 0 2.475-1.025T15.55 12t-1.025-2.475T12.05 8.5q-1.475 0-2.488 1.025T8.55 12t1.013 2.475T12.05 15.5M12 12"},null,-1),st=[ot];function at(g,d){return u(),f("svg",et,[...st])}const nt={name:"material-symbols-settings-outline",render:at},lt=a("div",{slot:"headline"},"ChatGPT",-1),it={slot:"content"},rt=["label","error","error-text"],ct={slot:"actions"},ut=["disabled"],dt={key:0,indeterminate:"",slot:"icon"},pt=T({__name:"AIChatConfigModal",props:{value:{type:String}},setup(g){const{handleSubmit:d}=Y(),p=k(),{t:r}=V(),c=g,{mutate:_,loading:m,onDone:C}=x({document:B,options:{update:()=>{}},appApi:!0}),{value:t,resetField:v,errorMessage:n}=tt("inputValue",L());t.value=c.value??"",t.value||v(),G({handle:(o,e)=>{e?N(r(e),"error"):o&&(t.value=o.aiChatConfig.chatGPTApiKey)},document:Q,variables:null,appApi:!0}),(async()=>{var o;await z(),(o=p.value)==null||o.focus()})();const i=d(()=>{_({chatGPTApiKey:t.value??""})});return C(()=>{q()}),(o,e)=>(u(),f("md-dialog",null,[lt,a("div",it,[w(a("md-outlined-text-field",{ref_key:"input",ref:p,label:o.$t("api_key"),class:"form-control","onUpdate:modelValue":e[0]||(e[0]=l=>K(t)?t.value=l:null),onKeyup:e[1]||(e[1]=P((...l)=>s(i)&&s(i)(...l),["enter"])),error:s(n),"error-text":s(n)?o.$t(s(n)):""},null,40,rt),[[D,s(t)]])]),a("div",ct,[a("md-outlined-button",{value:"cancel",onClick:e[2]||(e[2]=(...l)=>s(q)&&s(q)(...l))},h(o.$t("cancel")),1),a("md-filled-button",{value:"save",disabled:s(m),onClick:e[3]||(e[3]=(...l)=>s(i)&&s(i)(...l)),autofocus:""},[s(m)?(u(),f("md-circular-progress",dt)):F("",!0),I(" "+h(o.$t("save")),1)],8,ut)])]))}}),_t=a("md-ripple",null,null,-1),mt={class:"nav"},vt={class:"title"},$t=T({__name:"AIChatsSidebar",setup(g){const d=R(),{parseQ:p}=X(),r=E({tagIds:[]}),c=k("");function _(){var n;const t=y.currentRoute.value,v=U(((n=t.query.q)==null?void 0:n.toString())??"");p(r,v),c.value=r.tagIds.length===1?r.tagIds[0]:""}_(),j(()=>y.currentRoute.value,()=>{_()});function m(){O(d,"/aichats")}function C(){W(pt)}return(t,v)=>{const n=nt,i=S,o=M,e=Z("tooltip");return u(),H(o,null,{title:b(()=>[I(h(t.$t("page_title.aichats")),1)]),actions:b(()=>[w((u(),f("button",{class:"btn-icon",onClick:A(C,["prevent"])},[_t,$(n)])),[[e,t.$t("config")]])]),body:b(()=>[a("ul",mt,[a("li",{onClick:A(m,["prevent"]),class:J({active:!c.value})},[a("span",vt,h(t.$t("all")),1)],2)]),$(i,{type:"AI_CHAT",selected:c.value},null,8,["selected"])]),_:1})}}});export{$t as default}; diff --git a/app/src/main/resources/web/assets/AIChatsView-BtwzZ9Jh.js b/app/src/main/resources/web/assets/AIChatsView-B4QzEE_5.js similarity index 92% rename from app/src/main/resources/web/assets/AIChatsView-BtwzZ9Jh.js rename to app/src/main/resources/web/assets/AIChatsView-B4QzEE_5.js index 6338623e..fdb00898 100644 --- a/app/src/main/resources/web/assets/AIChatsView-BtwzZ9Jh.js +++ b/app/src/main/resources/web/assets/AIChatsView-B4QzEE_5.js @@ -1,4 +1,4 @@ -import{_ as ve}from"./VPagination.vuevuetypescriptsetuptruelang-DJTUsUyq.js";import{d as fe,h as I,g as ke,I as ye,u as be,i as Ce,s as $e,J as we,K as Ae,L as Te,M as qe,c as l,a,t as i,m as t,p as d,O as D,x as m,w as u,e as f,P as Ie,v as De,Q as Se,bn as Le,f as Me,C as Ve,bs as Ee,S as Ne,o as n,N as Ue,b8 as Be,ap as O,V as X,U as Z,X as Ke,a0 as Qe,a1 as k,bt as j,Z as W,ac as Pe,ad as ze,$ as He,ae as Re,a2 as Fe,a3 as Ge,a4 as Je}from"./index-BzaaAwnX.js";import{_ as Oe,a as Xe}from"./SearchInput-DTMVECJE.js";import{b as Ze,u as je,a as We}from"./key-events-C5OjC_dP.js";import{u as Ye,a as xe}from"./tags-BvnEKqTV.js";import{u as et}from"./search-DwB6FdxH.js";import"./search-rounded-Btuwf-IQ.js";import"./rss-feed-rounded-9FbiHzkN.js";import"./vee-validate.esm-DNjIRPsN.js";const tt={class:"top-app-bar"},at={class:"title"},st={class:"actions"},ot=a("md-ripple",null,null,-1),nt=a("md-ripple",null,null,-1),lt={class:"table-responsive"},it={class:"table"},ct=["checked","indeterminate"],dt={key:0},rt=a("th",null,null,-1),ut=["onClick"],_t=["onChange","checked"],pt={key:0},ht=["onClick"],mt={class:"nowrap"},gt={class:"action-btns"},vt=["onClick"],ft=a("md-ripple",null,null,-1),kt=["onClick"],yt=a("md-ripple",null,null,-1),bt={class:"nowrap"},Ct={class:"nowrap"},$t={key:0},wt=["colspan"],At={class:"no-data-placeholder"},g=50,Ut=fe({__name:"AIChatsView",setup(Tt){var R;const y=I([]),{t:Y}=ke(),{parseQ:x}=et(),S=ye({tagIds:[]}),ee=be(),te=Ce(),{app:w}=$e(te),r=we.AI_CHAT,L=Se(),M=L.query,A=I(parseInt(((R=M.page)==null?void 0:R.toString())??"1")),_=I(""),{tags:b,fetch:ae}=Ye(r),{addToTags:se}=xe(r,b),{deleteItems:V}=Ze(Le,()=>{$()}),{selectedIds:v,allChecked:E,realAllChecked:C,selectRealAll:oe,allCheckedAlertVisible:ne,clearSelection:T,toggleAllChecked:N,toggleSelect:U,total:c,checked:B,selectAll:le}=je(y),K=e=>{const o=L.query.q;Me(ee,o?`/aichats?page=${e}&q=${o}`:`/aichats?page=${e}`)},{keyDown:Q,keyUp:P}=We(c,g,A,le,T,K,()=>{V(C.value,v.value,_.value)}),{loading:ie,fetch:$}=Ae({handle:(e,o)=>{o?Ve(Y(o),"error"):e&&(y.value=e.aiChats,c.value=e.aiChatCount)},document:Ee,variables:()=>({offset:(A.value-1)*g,limit:g,query:_.value}),appApi:!0});function ce(e){return e?`/aichats?q=${e}`:"/aichats"}const z=e=>{e.type===r&&(T(),$())},H=e=>{e.type===r&&$()};Te(()=>{var e;_.value=Qe(((e=M.q)==null?void 0:e.toString())??""),x(S,_.value),ae(),$(),k.on("item_tags_updated",H),k.on("items_tags_updated",z),window.addEventListener("keydown",Q),window.addEventListener("keyup",P)}),qe(()=>{k.off("item_tags_updated",H),k.off("items_tags_updated",z),window.removeEventListener("keydown",Q),window.removeEventListener("keyup",P)});function de(e){j(`/aichats/${e.id}`)}function re(){j("/aichats/create")}function ue(e){W(ze,{id:e.id,name:e.id,gql:Pe` +import{_ as ve}from"./VPagination.vuevuetypescriptsetuptruelang-goYu96wT.js";import{d as fe,h as I,g as ke,I as ye,u as be,i as Ce,s as $e,J as we,K as Ae,L as Te,M as qe,c as l,a,t as i,m as t,p as d,O as D,x as m,w as u,e as f,P as Ie,v as De,Q as Se,bn as Le,f as Me,C as Ve,bs as Ee,S as Ne,o as n,N as Ue,b8 as Be,ap as O,V as X,U as Z,X as Ke,a0 as Qe,a1 as k,bt as j,Z as W,ac as Pe,ad as ze,$ as He,ae as Re,a2 as Fe,a3 as Ge,a4 as Je}from"./index-R8dLcqG_.js";import{_ as Oe,a as Xe}from"./SearchInput-DhaE-3h8.js";import{b as Ze,u as je,a as We}from"./key-events-BNCM8SMB.js";import{u as Ye,a as xe}from"./tags-Dbpv368M.js";import{u as et}from"./search-ByVbj6Ls.js";import"./search-rounded-CULEMJ2O.js";import"./rss-feed-rounded-BCiGdgJ5.js";import"./vee-validate.esm-vpr6zxQb.js";const tt={class:"top-app-bar"},at={class:"title"},st={class:"actions"},ot=a("md-ripple",null,null,-1),nt=a("md-ripple",null,null,-1),lt={class:"table-responsive"},it={class:"table"},ct=["checked","indeterminate"],dt={key:0},rt=a("th",null,null,-1),ut=["onClick"],_t=["onChange","checked"],pt={key:0},ht=["onClick"],mt={class:"nowrap"},gt={class:"action-btns"},vt=["onClick"],ft=a("md-ripple",null,null,-1),kt=["onClick"],yt=a("md-ripple",null,null,-1),bt={class:"nowrap"},Ct={class:"nowrap"},$t={key:0},wt=["colspan"],At={class:"no-data-placeholder"},g=50,Ut=fe({__name:"AIChatsView",setup(Tt){var R;const y=I([]),{t:Y}=ke(),{parseQ:x}=et(),S=ye({tagIds:[]}),ee=be(),te=Ce(),{app:w}=$e(te),r=we.AI_CHAT,L=Se(),M=L.query,A=I(parseInt(((R=M.page)==null?void 0:R.toString())??"1")),_=I(""),{tags:b,fetch:ae}=Ye(r),{addToTags:se}=xe(r,b),{deleteItems:V}=Ze(Le,()=>{$()}),{selectedIds:v,allChecked:E,realAllChecked:C,selectRealAll:oe,allCheckedAlertVisible:ne,clearSelection:T,toggleAllChecked:N,toggleSelect:U,total:c,checked:B,selectAll:le}=je(y),K=e=>{const o=L.query.q;Me(ee,o?`/aichats?page=${e}&q=${o}`:`/aichats?page=${e}`)},{keyDown:Q,keyUp:P}=We(c,g,A,le,T,K,()=>{V(C.value,v.value,_.value)}),{loading:ie,fetch:$}=Ae({handle:(e,o)=>{o?Ve(Y(o),"error"):e&&(y.value=e.aiChats,c.value=e.aiChatCount)},document:Ee,variables:()=>({offset:(A.value-1)*g,limit:g,query:_.value}),appApi:!0});function ce(e){return e?`/aichats?q=${e}`:"/aichats"}const z=e=>{e.type===r&&(T(),$())},H=e=>{e.type===r&&$()};Te(()=>{var e;_.value=Qe(((e=M.q)==null?void 0:e.toString())??""),x(S,_.value),ae(),$(),k.on("item_tags_updated",H),k.on("items_tags_updated",z),window.addEventListener("keydown",Q),window.addEventListener("keyup",P)}),qe(()=>{k.off("item_tags_updated",H),k.off("items_tags_updated",z),window.removeEventListener("keydown",Q),window.removeEventListener("keyup",P)});function de(e){j(`/aichats/${e.id}`)}function re(){j("/aichats/create")}function ue(e){W(ze,{id:e.id,name:e.id,gql:Pe` mutation DeleteAIChat($query: String!) { deleteAIChats(query: $query) } diff --git a/app/src/main/resources/web/assets/AppsSidebar-ChIAGNf6.js b/app/src/main/resources/web/assets/AppsSidebar-DIojpdxl.js similarity index 89% rename from app/src/main/resources/web/assets/AppsSidebar-ChIAGNf6.js rename to app/src/main/resources/web/assets/AppsSidebar-DIojpdxl.js index f6343586..1d63f207 100644 --- a/app/src/main/resources/web/assets/AppsSidebar-ChIAGNf6.js +++ b/app/src/main/resources/web/assets/AppsSidebar-DIojpdxl.js @@ -1 +1 @@ -import{_ as b}from"./LeftSidebar.vuevuetypescriptsetuptruelang-xn7lCt7t.js";import{d as w,u as L,s as T,i as A,I as N,h as k,K as Q,k as V,v as R,q as g,at as z,a6 as S,a0 as I,o as r,V as M,t,a,w as p,N as u,m as l,c as m,e as v,a7 as D,f as h,a8 as E}from"./index-BzaaAwnX.js";import{u as G}from"./search-DwB6FdxH.js";const K={class:"nav"},P={class:"title"},j={key:0,class:"count"},x={class:"title"},F={key:0,class:"count"},H={class:"title"},J={key:0,class:"count"},Y=w({__name:"AppsSidebar",setup(O){const y=L(),{counter:o}=T(A()),{parseQ:C}=G(),_=N({tagIds:[]}),n=k(""),i=k(-1),{fetch:$}=Q({handle:e=>{e&&(o.value.packages=e.total,o.value.packagesSystem=e.system,i.value=e.total-e.system)},document:z,variables:()=>({}),appApi:!0});function d(){var c;const e=S.currentRoute.value,s=I(((c=e.query.q)==null?void 0:c.toString())??"");C(_,s),n.value=_.type??"",$()}function f(e){const s=D([{name:"type",op:"",value:e}]);h(y,`/apps?q=${E(s)}`)}function B(){h(y,"/apps")}return d(),V(()=>S.currentRoute.value,()=>{d()}),(e,s)=>{const c=b;return r(),R(c,null,{title:g(()=>[M(t(e.$t("page_title.apps")),1)]),body:g(()=>[a("ul",K,[a("li",{onClick:p(B,["prevent"]),class:u({active:!n.value})},[a("span",P,t(e.$t("all")),1),l(o).packages>=0?(r(),m("span",j,t(l(o).packages.toLocaleString()),1)):v("",!0)],2),a("li",{onClick:s[0]||(s[0]=p(q=>f("user"),["prevent"])),class:u({active:n.value==="user"})},[a("span",x,t(e.$t("app_type.user")),1),i.value>=0?(r(),m("span",F,t(i.value.toLocaleString()),1)):v("",!0)],2),a("li",{onClick:s[1]||(s[1]=p(q=>f("system"),["prevent"])),class:u({active:n.value==="system"})},[a("span",H,t(e.$t("app_type.system")),1),l(o).packagesSystem>=0?(r(),m("span",J,t(l(o).packagesSystem.toLocaleString()),1)):v("",!0)],2)])]),_:1})}}});export{Y as default}; +import{_ as b}from"./LeftSidebar.vuevuetypescriptsetuptruelang-BWG8gajF.js";import{d as w,u as L,s as T,i as A,I as N,h as k,K as Q,k as V,v as R,q as g,at as z,a6 as S,a0 as I,o as r,V as M,t,a,w as p,N as u,m as l,c as m,e as v,a7 as D,f as h,a8 as E}from"./index-R8dLcqG_.js";import{u as G}from"./search-ByVbj6Ls.js";const K={class:"nav"},P={class:"title"},j={key:0,class:"count"},x={class:"title"},F={key:0,class:"count"},H={class:"title"},J={key:0,class:"count"},Y=w({__name:"AppsSidebar",setup(O){const y=L(),{counter:o}=T(A()),{parseQ:C}=G(),_=N({tagIds:[]}),n=k(""),i=k(-1),{fetch:$}=Q({handle:e=>{e&&(o.value.packages=e.total,o.value.packagesSystem=e.system,i.value=e.total-e.system)},document:z,variables:()=>({}),appApi:!0});function d(){var c;const e=S.currentRoute.value,s=I(((c=e.query.q)==null?void 0:c.toString())??"");C(_,s),n.value=_.type??"",$()}function f(e){const s=D([{name:"type",op:"",value:e}]);h(y,`/apps?q=${E(s)}`)}function B(){h(y,"/apps")}return d(),V(()=>S.currentRoute.value,()=>{d()}),(e,s)=>{const c=b;return r(),R(c,null,{title:g(()=>[M(t(e.$t("page_title.apps")),1)]),body:g(()=>[a("ul",K,[a("li",{onClick:p(B,["prevent"]),class:u({active:!n.value})},[a("span",P,t(e.$t("all")),1),l(o).packages>=0?(r(),m("span",j,t(l(o).packages.toLocaleString()),1)):v("",!0)],2),a("li",{onClick:s[0]||(s[0]=p(q=>f("user"),["prevent"])),class:u({active:n.value==="user"})},[a("span",x,t(e.$t("app_type.user")),1),i.value>=0?(r(),m("span",F,t(i.value.toLocaleString()),1)):v("",!0)],2),a("li",{onClick:s[1]||(s[1]=p(q=>f("system"),["prevent"])),class:u({active:n.value==="system"})},[a("span",H,t(e.$t("app_type.system")),1),l(o).packagesSystem>=0?(r(),m("span",J,t(l(o).packagesSystem.toLocaleString()),1)):v("",!0)],2)])]),_:1})}}});export{Y as default}; diff --git a/app/src/main/resources/web/assets/AppsView-CYUzkFWb.js b/app/src/main/resources/web/assets/AppsView-CYUzkFWb.js deleted file mode 100644 index 054f1fc0..00000000 --- a/app/src/main/resources/web/assets/AppsView-CYUzkFWb.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as xe}from"./VPagination.vuevuetypescriptsetuptruelang-DJTUsUyq.js";import{a1 as T,d as Fe,s as Z,i as Me,ai as Te,u as Ke,h as S,g as Ne,I as Qe,aj as ze,J as Ge,K as ee,j as Re,L as je,M as He,c as l,a,m as t,t as i,x as k,w as u,p as h,e as I,V as A,q as te,N as se,O as w,P as M,v as ae,Q as Oe,f as Je,C as Xe,ak as Ye,al as We,am as Ze,an as et,ao as tt,S as st,o as n,E as at,ap as ne,U as oe,X as nt,F as ot,G as lt,Y as it,aq as ct,ar as dt,a0 as pt,as as rt,a3 as ut,ae as _t,H as vt}from"./index-BzaaAwnX.js";import{_ as kt,a as ht}from"./SearchInput-DTMVECJE.js";import{_ as mt}from"./sort-rounded-BiVhN4C5.js";import{u as ft,a as gt}from"./key-events-C5OjC_dP.js";import{u as yt}from"./search-DwB6FdxH.js";import"./search-rounded-Btuwf-IQ.js";import"./rss-feed-rounded-9FbiHzkN.js";const le=p=>{T.emit("tap_phone",p)};function bt(p,D){const m=p.findIndex(L=>L.id===D);m!==-1&&p.splice(m,1)}const g=p=>(ot("data-v-40570fe8"),p=p(),lt(),p),wt={class:"top-app-bar"},Ct=["checked","indeterminate"],$t={class:"title"},St={key:0},It={key:1},At=g(()=>a("md-ripple",null,null,-1)),Dt={class:"actions"},Lt=g(()=>a("md-ripple",null,null,-1)),Ut=["disabled"],qt=g(()=>a("md-ripple",null,null,-1)),Bt={key:0,indeterminate:""},Et={class:"menu-items"},Pt=["onClick","selected"],Vt={slot:"headline"},xt={class:"scroll-content"},Ft=["onClick","onMouseover"],Mt={class:"start"},Tt=["onClick","checked"],Kt=["onClick","checked"],Nt={class:"number"},Qt=["src"],zt={class:"title"},Gt={class:"subtitle"},Rt={class:"actions"},jt={indeterminate:"",class:"spinner-sm"},Ht=["onClick"],Ot=["onClick"],Jt=g(()=>a("md-ripple",null,null,-1)),Xt=["onClick"],Yt=g(()=>a("md-ripple",null,null,-1)),Wt={class:"time"},Zt={class:"start"},es=g(()=>a("div",{class:"checkbox"},[a("div",{class:"skeleton-checkbox"})],-1)),ts={class:"number"},ss=it('
',5),as={key:0,class:"no-data-placeholder"},f=50,ns=Fe({__name:"AppsView",setup(p){var W;const{app:D,urlTokenKey:m,uploads:L}=Z(Me()),{input:ie,upload:ce,uploadChanged:K}=Te(L),N=Ke(),r=S([]),{t:U}=Ne(),{appSortBy:q}=Z(N),{parseQ:de}=yt(),Q=Qe({tagIds:[]}),pe=ct(),C=S(!1),z=Oe(),G=z.query,B=S(parseInt(((W=G.page)==null?void 0:W.toString())??"1")),$=S(""),{selectedIds:y,allChecked:R,realAllChecked:E,selectRealAll:re,allCheckedAlertVisible:ue,clearSelection:P,toggleAllChecked:j,toggleSelect:H,total:_,checked:V,shiftEffectingIds:O,handleItemClick:_e,handleMouseOver:ve,selectAll:ke,shouldSelect:he}=ft(r),{downloadItems:me}=ze(m,Ge.PACKAGE,P,"apps.zip"),{downloadFile:fe}=dt(m),x=e=>{const o=z.query.q;Je(N,o?`/apps?page=${e}&q=${o}`:`/apps?page=${e}`)},{keyDown:J,keyUp:X}=gt(_,f,B,ke,P,x,()=>{}),ge=()=>{ce(D.value.downloadsDir)},ye=["user","system"].map(e=>({id:e,name:U("app_type."+e)})),be=e=>{e.isUninstalling=!1},{loading:F,fetch:we}=ee({handle:(e,o)=>{C.value=!1,o?Xe(U(o),"error"):e&&(r.value=e.packages.map(b=>({...b,isUninstalling:!1,icon:Ye(m.value,"pkgicon://"+b.id)})),_.value=e.packageCount)},document:We,variables:()=>({offset:(B.value-1)*f,limit:f,query:$.value,sortBy:q.value}),appApi:!0});function Ce(e){return e?`/apps?q=${e}`:"/apps"}function $e(e,o){C.value=!0,q.value=o,x(1),e.close()}const{mutate:Se}=Re({document:Ze,appApi:!0});function Ie(e){e.isUninstalling=!0,le(U("confirm_uninstallation_on_phone")),Se({id:e.id})}const{loading:Ae,fetch:De}=ee({handle:e=>{if(e)for(const o of e.packageStatuses)o.exist||(bt(r.value,o.id),le(""))},document:et,variables:()=>({ids:r.value.filter(e=>e.isUninstalling).map(e=>e.id)}),appApi:!0}),Y=e=>{e.status};return je(()=>{var e;setInterval(()=>{r.value.some(o=>o.isUninstalling)&&!Ae.value&&De()},1e3),$.value=pt(((e=G.q)==null?void 0:e.toString())??""),de(Q,$.value),we(),T.on("upload_task_done",Y),window.addEventListener("keydown",J),window.addEventListener("keyup",X)}),He(()=>{T.off("upload_task_done",Y),window.removeEventListener("keydown",J),window.removeEventListener("keyup",X)}),(e,o)=>{const b=rt,Le=kt,Ue=mt,qe=tt,Be=ht,Ee=ut,Pe=_t,Ve=xe,v=st("tooltip");return n(),l(w,null,[a("div",wt,[a("md-checkbox",{"touch-target":"wrapper",onChange:o[0]||(o[0]=(...s)=>t(j)&&t(j)(...s)),checked:t(R),indeterminate:!t(R)&&t(V)},null,40,Ct),a("div",$t,[t(y).length?(n(),l("span",St,i(e.$t("x_selected",{count:t(E)?t(_).toLocaleString():t(y).length.toLocaleString()})),1)):(n(),l("span",It,i(e.$t("page_title.apps"))+" ("+i(t(_).toLocaleString())+")",1)),t(V)?k((n(),l("button",{key:2,class:"btn-icon",onClick:o[1]||(o[1]=u(s=>t(me)(t(E),t(y),$.value),["stop"]))},[At,h(b)])),[[v,e.$t("download")]]):I("",!0)]),a("div",Dt,[h(Le,{filter:Q,types:t(ye),"get-url":Ce},null,8,["filter","types"]),a("button",{class:"btn-icon",onClick:u(ge,["stop"]),style:{display:"none"}},[Lt,A(" "+i(e.$t("install")),1)]),h(qe,null,{content:te(s=>[a("div",Et,[(n(!0),l(w,null,M(t(pe),d=>(n(),l("md-menu-item",{onClick:c=>$e(s,d.value),key:d.value,selected:d.value===t(q)},[a("div",Vt,i(e.$t(d.label)),1)],8,Pt))),128))])]),default:te(()=>[k((n(),l("button",{class:"btn-icon btn-sort",disabled:C.value},[qt,C.value?(n(),l("md-circular-progress",Bt)):(n(),ae(Ue,{key:1}))],8,Ut)),[[v,e.$t("sort")]])]),_:1})])]),h(Be,{limit:f,total:t(_),"all-checked-alert-visible":t(ue),"real-all-checked":t(E),"select-real-all":t(re),"clear-selection":t(P)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),a("div",xt,[a("div",{class:se(["app-list",{"select-mode":t(V)}])},[(n(!0),l(w,null,M(r.value,(s,d)=>(n(),l("section",{class:se(["app-item selectable-card",{selected:t(y).includes(s.id),selecting:t(O).includes(s.id)}]),key:s.id,onClick:u(c=>t(_e)(c,s,d,()=>{}),["stop"]),onMouseover:c=>t(ve)(c,d)},[a("div",Mt,[t(O).includes(s.id)?(n(),l("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:u(c=>t(H)(c,s,d),["stop"]),checked:t(he)},null,8,Tt)):(n(),l("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:u(c=>t(H)(c,s,d),["stop"]),checked:t(y).includes(s.id)},null,8,Kt)),a("span",Nt,[h(Ee,{id:d+1,raw:s},null,8,["id","raw"])])]),a("img",{class:"image",width:"50",height:"50",src:s.icon},null,8,Qt),a("div",zt,i(s.name)+" ("+i(s.version)+")",1),a("div",Gt,[a("span",null,i(s.id),1),a("span",null,i(t(at)(s.size)),1),a("span",null,i(e.$t("app_type."+s.type)),1)]),a("div",Rt,[s.isUninstalling?(n(),l(w,{key:0},[k(a("md-circular-progress",jt,null,512),[[v,e.$t("uninstalling")]]),A("  "),a("md-outlined-button",{class:"btn-sm",onClick:u(c=>be(s),["stop"])},i(e.$t("cancel")),9,Ht)],64)):k((n(),l("button",{key:1,class:"btn-icon sm",onClick:u(c=>Ie(s),["stop"])},[Jt,h(Pe)],8,Ot)),[[v,e.$t("uninstall")]]),k((n(),l("button",{class:"btn-icon sm",onClick:u(c=>t(fe)(s.path,`${s.name.replace(" ","")}-${s.id}.apk`),["stop"])},[Yt,h(b)],8,Xt)),[[v,e.$t("download")]])]),a("div",Wt,[k((n(),l("span",null,[A(i(e.$t("installed_at"))+": "+i(t(oe)(s.installedAt)),1)])),[[v,t(ne)(s.installedAt)]]),k((n(),l("span",null,[A(i(e.$t("updated_at"))+": "+i(t(oe)(s.updatedAt)),1)])),[[v,t(ne)(s.updatedAt)]])])],42,Ft))),128)),t(F)&&r.value.length===0?(n(),l(w,{key:0},M(20,s=>a("section",{class:"app-item selectable-card-skeleton",key:s},[a("div",Zt,[es,a("span",ts,i(s),1)]),ss])),64)):I("",!0)],2),!t(F)&&r.value.length===0?(n(),l("div",as,i(e.$t(t(nt)(t(F)))),1)):I("",!0),t(_)>f?(n(),ae(Ve,{key:1,page:B.value,go:x,total:t(_),limit:f},null,8,["page","total"])):I("",!0),a("input",{ref_key:"fileInput",ref:ie,style:{display:"none"},type:"file",accept:".apk",multiple:"",onChange:o[2]||(o[2]=(...s)=>t(K)&&t(K)(...s))},null,544)])],64)}}}),_s=vt(ns,[["__scopeId","data-v-40570fe8"]]);export{_s as default}; diff --git a/app/src/main/resources/web/assets/AppsView-D9MzdfnP.css b/app/src/main/resources/web/assets/AppsView-D9MzdfnP.css deleted file mode 100644 index c6a1c8dc..00000000 --- a/app/src/main/resources/web/assets/AppsView-D9MzdfnP.css +++ /dev/null @@ -1 +0,0 @@ -.app-item[data-v-40570fe8]{display:grid;border-radius:8px;grid-template-areas:"start image title actions time" "start image subtitle actions time";grid-template-columns:48px 50px 2fr 1fr minmax(200px,auto)}.app-item .start[data-v-40570fe8]{grid-area:start}.app-item .number[data-v-40570fe8]{font-size:.75rem;display:flex;justify-content:center}.app-item .image[data-v-40570fe8]{width:50px;height:50px;grid-area:image;object-fit:cover;border-radius:8px;margin-block:12px}.app-item .title[data-v-40570fe8]{grid-area:title;font-weight:500;margin-inline:16px;padding-block-start:12px;word-break:break-all}.app-item .subtitle[data-v-40570fe8]{grid-area:subtitle;display:flex;gap:8px;flex-wrap:wrap;font-size:.875rem;margin-inline:16px}.app-item .actions[data-v-40570fe8]{grid-area:actions;display:flex;flex-direction:row;gap:4px;align-items:center;visibility:visible;padding-inline:16px}.app-item .time[data-v-40570fe8]{grid-area:time;display:flex;flex-direction:column;padding-inline:16px;justify-content:center;align-items:end;gap:8px;font-size:.875rem}.app-list[data-v-40570fe8]{display:flex;flex-direction:column;gap:8px}.app-list.select-mode .media-item .actions[data-v-40570fe8]{visibility:hidden}.app-list .app-item .skeleton-image[data-v-40570fe8]{width:50px;height:50px}.app-list .app-item .skeleton-title[data-v-40570fe8]{width:40%;height:24px}.app-list .app-item .skeleton-subtitle[data-v-40570fe8]{width:50%;height:20px}.app-list .app-item .skeleton-actions[data-v-40570fe8]{width:140px;height:20px}.app-list .app-item .skeleton-time[data-v-40570fe8]{width:60px;height:20px} diff --git a/app/src/main/resources/web/assets/AppsView-DjawsU48.js b/app/src/main/resources/web/assets/AppsView-DjawsU48.js new file mode 100644 index 00000000..36824ab7 --- /dev/null +++ b/app/src/main/resources/web/assets/AppsView-DjawsU48.js @@ -0,0 +1 @@ +import{_ as Fe}from"./VPagination.vuevuetypescriptsetuptruelang-goYu96wT.js";import{a1 as T,d as Me,s as Z,i as Pe,ai as Te,u as Ke,h as I,g as Ne,I as Qe,aj as ze,J as Ge,K as ee,j as Re,L as je,M as He,c as l,a,m as t,t as i,x as k,w as r,p as h,e as A,V as D,q as te,N as se,O as w,P,v as ae,Q as Oe,f as Je,C as Xe,ak as Ye,al as We,am as Ze,an as et,ao as tt,S as st,o as n,E as at,ap as ne,U as oe,X as nt,F as ot,G as lt,Y as it,aq as ct,ar as dt,a0 as pt,as as ut,a3 as rt,ae as _t,H as vt}from"./index-R8dLcqG_.js";import{_ as kt,a as ht}from"./SearchInput-DhaE-3h8.js";import{_ as mt}from"./sort-rounded-CsJpi3ce.js";import{u as gt,a as ft}from"./key-events-BNCM8SMB.js";import{u as yt}from"./search-ByVbj6Ls.js";import"./search-rounded-CULEMJ2O.js";import"./rss-feed-rounded-BCiGdgJ5.js";const le=p=>{T.emit("tap_phone",p)};function bt(p,L){const m=p.findIndex(U=>U.id===L);m!==-1&&p.splice(m,1)}const f=p=>(ot("data-v-992101a5"),p=p(),lt(),p),wt={class:"top-app-bar"},Ct=["checked","indeterminate"],$t={class:"title"},St={key:0},It={key:1},At=f(()=>a("md-ripple",null,null,-1)),Dt={class:"actions"},Lt=f(()=>a("md-ripple",null,null,-1)),Ut=["disabled"],qt=f(()=>a("md-ripple",null,null,-1)),Bt={key:0,indeterminate:""},Et={class:"menu-items"},Vt=["onClick","selected"],xt={slot:"headline"},Ft={class:"scroll-content"},Mt=["onClick","onMouseover"],Pt={class:"start"},Tt=["onClick","checked"],Kt=["onClick","checked"],Nt={class:"number"},Qt=["src"],zt={class:"title"},Gt={class:"subtitle"},Rt={class:"actions"},jt={indeterminate:"",class:"spinner-sm"},Ht=["onClick"],Ot=["onClick"],Jt=f(()=>a("md-ripple",null,null,-1)),Xt=["onClick"],Yt=f(()=>a("md-ripple",null,null,-1)),Wt={class:"time"},Zt={class:"start"},es=f(()=>a("div",{class:"checkbox"},[a("div",{class:"skeleton-checkbox"})],-1)),ts={class:"number"},ss=it('
',5),as={key:0,class:"no-data-placeholder"},g=50,ns=Me({__name:"AppsView",setup(p){var W;const{app:L,urlTokenKey:m,uploads:U}=Z(Pe()),{input:ie,upload:ce,uploadChanged:K}=Te(U),N=Ke(),u=I([]),{t:q}=Ne(),{appSortBy:C}=Z(N),{parseQ:de}=yt(),Q=Qe({tagIds:[]}),pe=ct(),$=I(!1),z=Oe(),G=z.query,B=I(parseInt(((W=G.page)==null?void 0:W.toString())??"1")),S=I(""),{selectedIds:y,allChecked:R,realAllChecked:E,selectRealAll:ue,allCheckedAlertVisible:re,clearSelection:V,toggleAllChecked:j,toggleSelect:H,total:_,checked:x,shiftEffectingIds:O,handleItemClick:_e,handleMouseOver:ve,selectAll:ke,shouldSelect:he}=gt(u),{downloadItems:me}=ze(m,Ge.PACKAGE,V,"apps.zip"),{downloadFile:ge}=dt(m),F=e=>{const o=z.query.q;Je(N,o?`/apps?page=${e}&q=${o}`:`/apps?page=${e}`)},{keyDown:J,keyUp:X}=ft(_,g,B,ke,V,F,()=>{}),fe=()=>{ce(L.value.downloadsDir)},ye=["user","system"].map(e=>({id:e,name:q("app_type."+e)})),be=e=>{e.isUninstalling=!1},{loading:M,fetch:we}=ee({handle:(e,o)=>{$.value=!1,o?Xe(q(o),"error"):e&&(u.value=e.packages.map(b=>({...b,isUninstalling:!1,icon:Ye(m.value,"pkgicon://"+b.id)})),_.value=e.packageCount)},document:We,variables:()=>({offset:(B.value-1)*g,limit:g,query:S.value,sortBy:C.value}),appApi:!0});function Ce(e){return e?`/apps?q=${e}`:"/apps"}function $e(e,o){if(C.value===o){e.close();return}$.value=!0,C.value=o,F(1),e.close()}const{mutate:Se}=Re({document:Ze,appApi:!0});function Ie(e){e.isUninstalling=!0,le(q("confirm_uninstallation_on_phone")),Se({id:e.id})}const{loading:Ae,fetch:De}=ee({handle:e=>{if(e)for(const o of e.packageStatuses)o.exist||(bt(u.value,o.id),le(""))},document:et,variables:()=>({ids:u.value.filter(e=>e.isUninstalling).map(e=>e.id)}),appApi:!0}),Y=e=>{e.status};return je(()=>{var e;setInterval(()=>{u.value.some(o=>o.isUninstalling)&&!Ae.value&&De()},1e3),S.value=pt(((e=G.q)==null?void 0:e.toString())??""),de(Q,S.value),we(),T.on("upload_task_done",Y),window.addEventListener("keydown",J),window.addEventListener("keyup",X)}),He(()=>{T.off("upload_task_done",Y),window.removeEventListener("keydown",J),window.removeEventListener("keyup",X)}),(e,o)=>{const b=ut,Le=kt,Ue=mt,qe=tt,Be=ht,Ee=rt,Ve=_t,xe=Fe,v=st("tooltip");return n(),l(w,null,[a("div",wt,[a("md-checkbox",{"touch-target":"wrapper",onChange:o[0]||(o[0]=(...s)=>t(j)&&t(j)(...s)),checked:t(R),indeterminate:!t(R)&&t(x)},null,40,Ct),a("div",$t,[t(y).length?(n(),l("span",St,i(e.$t("x_selected",{count:t(E)?t(_).toLocaleString():t(y).length.toLocaleString()})),1)):(n(),l("span",It,i(e.$t("page_title.apps"))+" ("+i(t(_).toLocaleString())+")",1)),t(x)?k((n(),l("button",{key:2,class:"btn-icon",onClick:o[1]||(o[1]=r(s=>t(me)(t(E),t(y),S.value),["stop"]))},[At,h(b)])),[[v,e.$t("download")]]):A("",!0)]),a("div",Dt,[h(Le,{filter:Q,types:t(ye),"get-url":Ce},null,8,["filter","types"]),a("button",{class:"btn-icon",onClick:r(fe,["stop"]),style:{display:"none"}},[Lt,D(" "+i(e.$t("install")),1)]),h(qe,null,{content:te(s=>[a("div",Et,[(n(!0),l(w,null,P(t(pe),d=>(n(),l("md-menu-item",{onClick:c=>$e(s,d.value),key:d.value,selected:d.value===t(C)},[a("div",xt,i(e.$t(d.label)),1)],8,Vt))),128))])]),default:te(()=>[k((n(),l("button",{class:"btn-icon btn-sort",disabled:$.value},[qt,$.value?(n(),l("md-circular-progress",Bt)):(n(),ae(Ue,{key:1}))],8,Ut)),[[v,e.$t("sort")]])]),_:1})])]),h(Be,{limit:g,total:t(_),"all-checked-alert-visible":t(re),"real-all-checked":t(E),"select-real-all":t(ue),"clear-selection":t(V)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),a("div",Ft,[a("div",{class:se(["app-list",{"select-mode":t(x)}])},[(n(!0),l(w,null,P(u.value,(s,d)=>(n(),l("section",{class:se(["app-item selectable-card",{selected:t(y).includes(s.id),selecting:t(O).includes(s.id)}]),key:s.id,onClick:r(c=>t(_e)(c,s,d,()=>{}),["stop"]),onMouseover:c=>t(ve)(c,d)},[a("div",Pt,[t(O).includes(s.id)?(n(),l("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:r(c=>t(H)(c,s,d),["stop"]),checked:t(he)},null,8,Tt)):(n(),l("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:r(c=>t(H)(c,s,d),["stop"]),checked:t(y).includes(s.id)},null,8,Kt)),a("span",Nt,[h(Ee,{id:d+1,raw:s},null,8,["id","raw"])])]),a("img",{class:"image",width:"50",height:"50",src:s.icon},null,8,Qt),a("div",zt,i(s.name)+" ("+i(s.version)+")",1),a("div",Gt,[a("span",null,i(s.id),1),a("span",null,i(t(at)(s.size)),1),a("span",null,i(e.$t("app_type."+s.type)),1)]),a("div",Rt,[s.isUninstalling?(n(),l(w,{key:0},[k(a("md-circular-progress",jt,null,512),[[v,e.$t("uninstalling")]]),D("  "),a("md-outlined-button",{class:"btn-sm",onClick:r(c=>be(s),["stop"])},i(e.$t("cancel")),9,Ht)],64)):k((n(),l("button",{key:1,class:"btn-icon sm",onClick:r(c=>Ie(s),["stop"])},[Jt,h(Ve)],8,Ot)),[[v,e.$t("uninstall")]]),k((n(),l("button",{class:"btn-icon sm",onClick:r(c=>t(ge)(s.path,`${s.name.replace(" ","")}-${s.id}.apk`),["stop"])},[Yt,h(b)],8,Xt)),[[v,e.$t("download")]])]),a("div",Wt,[k((n(),l("span",null,[D(i(e.$t("installed_at"))+": "+i(t(oe)(s.installedAt)),1)])),[[v,t(ne)(s.installedAt)]]),k((n(),l("span",null,[D(i(e.$t("updated_at"))+": "+i(t(oe)(s.updatedAt)),1)])),[[v,t(ne)(s.updatedAt)]])])],42,Mt))),128)),t(M)&&u.value.length===0?(n(),l(w,{key:0},P(20,s=>a("section",{class:"app-item selectable-card-skeleton",key:s},[a("div",Zt,[es,a("span",ts,i(s),1)]),ss])),64)):A("",!0)],2),!t(M)&&u.value.length===0?(n(),l("div",as,i(e.$t(t(nt)(t(M)))),1)):A("",!0),t(_)>g?(n(),ae(xe,{key:1,page:B.value,go:F,total:t(_),limit:g},null,8,["page","total"])):A("",!0),a("input",{ref_key:"fileInput",ref:ie,style:{display:"none"},type:"file",accept:".apk",multiple:"",onChange:o[2]||(o[2]=(...s)=>t(K)&&t(K)(...s))},null,544)])],64)}}}),_s=vt(ns,[["__scopeId","data-v-992101a5"]]);export{_s as default}; diff --git a/app/src/main/resources/web/assets/AppsView-mxXQaxYv.css b/app/src/main/resources/web/assets/AppsView-mxXQaxYv.css new file mode 100644 index 00000000..ecb74a95 --- /dev/null +++ b/app/src/main/resources/web/assets/AppsView-mxXQaxYv.css @@ -0,0 +1 @@ +.app-item[data-v-992101a5]{display:grid;border-radius:8px;grid-template-areas:"start image title actions time" "start image subtitle actions time";grid-template-columns:48px 50px 2fr 1fr minmax(200px,auto)}.app-item .start[data-v-992101a5]{grid-area:start}.app-item .number[data-v-992101a5]{font-size:.75rem;display:flex;justify-content:center}.app-item .image[data-v-992101a5]{width:50px;height:50px;grid-area:image;object-fit:cover;border-radius:8px;margin-block:12px}.app-item .title[data-v-992101a5]{grid-area:title;font-weight:500;margin-inline:16px;padding-block-start:12px;word-break:break-all}.app-item .subtitle[data-v-992101a5]{grid-area:subtitle;display:flex;gap:8px;flex-wrap:wrap;font-size:.875rem;margin-inline:16px}.app-item .actions[data-v-992101a5]{grid-area:actions;display:flex;flex-direction:row;gap:4px;align-items:center;visibility:visible;padding-inline:16px}.app-item .time[data-v-992101a5]{grid-area:time;display:flex;flex-direction:column;padding-inline:16px;justify-content:center;align-items:end;gap:8px;font-size:.875rem}.app-list[data-v-992101a5]{display:flex;flex-direction:column;gap:8px}.app-list.select-mode .media-item .actions[data-v-992101a5]{visibility:hidden}.app-list .app-item .skeleton-image[data-v-992101a5]{width:50px;height:50px}.app-list .app-item .skeleton-title[data-v-992101a5]{width:40%;height:24px}.app-list .app-item .skeleton-subtitle[data-v-992101a5]{width:50%;height:20px}.app-list .app-item .skeleton-actions[data-v-992101a5]{width:140px;height:20px}.app-list .app-item .skeleton-time[data-v-992101a5]{width:60px;height:20px} diff --git a/app/src/main/resources/web/assets/AudiosSidebar-DVPk3URw.js b/app/src/main/resources/web/assets/AudiosSidebar-DVPk3URw.js deleted file mode 100644 index 027e6f62..00000000 --- a/app/src/main/resources/web/assets/AudiosSidebar-DVPk3URw.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./MediaSidebar.vuevuetypescriptsetuptruelang-rTL93G-q.js";import{d as a,v as r,m as o,o as p,J as m,b2 as i}from"./index-BzaaAwnX.js";import"./LeftSidebar.vuevuetypescriptsetuptruelang-xn7lCt7t.js";import"./TagFilter.vuevuetypescriptsetuptruelang-CUu0usUl.js";import"./more-vert-BRJfC0iG.js";import"./EditValueModal-Ws2hdG3a.js";import"./vee-validate.esm-DNjIRPsN.js";import"./search-DwB6FdxH.js";const k=a({__name:"AudiosSidebar",setup(n){return(s,_)=>{const t=e;return p(),r(t,{type:o(m).AUDIO,gql:o(i)},null,8,["type","gql"])}}});export{k as default}; diff --git a/app/src/main/resources/web/assets/AudiosSidebar-Dq3tWc3K.js b/app/src/main/resources/web/assets/AudiosSidebar-Dq3tWc3K.js new file mode 100644 index 00000000..d62c8aeb --- /dev/null +++ b/app/src/main/resources/web/assets/AudiosSidebar-Dq3tWc3K.js @@ -0,0 +1 @@ +import{_ as e}from"./MediaSidebar.vuevuetypescriptsetuptruelang-kDQsOpRT.js";import{d as a,v as r,m as o,o as p,J as m,b2 as i}from"./index-R8dLcqG_.js";import"./LeftSidebar.vuevuetypescriptsetuptruelang-BWG8gajF.js";import"./TagFilter.vuevuetypescriptsetuptruelang-DySu9lzm.js";import"./more-vert-zjmMMiPD.js";import"./EditValueModal-O1aAFYgx.js";import"./vee-validate.esm-vpr6zxQb.js";import"./search-ByVbj6Ls.js";const k=a({__name:"AudiosSidebar",setup(n){return(s,_)=>{const t=e;return p(),r(t,{type:o(m).AUDIO,gql:o(i)},null,8,["type","gql"])}}});export{k as default}; diff --git a/app/src/main/resources/web/assets/AudiosView-6hAoxYID.js b/app/src/main/resources/web/assets/AudiosView-6hAoxYID.js deleted file mode 100644 index e820530c..00000000 --- a/app/src/main/resources/web/assets/AudiosView-6hAoxYID.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as bt}from"./VPagination.vuevuetypescriptsetuptruelang-DJTUsUyq.js";import{o as a,c,a as n,j as Ve,a$ as wt,g as Ue,a1 as F,C as ze,h as V,b0 as It,d as At,u as Et,s as Le,I as St,i as Dt,ai as Me,aF as qt,J as Ft,aG as Lt,aH as Mt,aI as Bt,aM as Pt,aj as Rt,K as Vt,aJ as Ut,aK as zt,L as Nt,M as Ht,m as e,t as k,O as q,x as r,v as p,q as d,w as l,e as z,p as i,aL as Qt,N as Be,P as te,Q as Kt,f as Gt,b1 as jt,aP as Ot,ao as Wt,S as xt,aQ as se,aR as oe,aZ as Jt,aC as Xt,E as Zt,ab as Yt,aS as Pe,U as es,V as ts,W as ss,X as os,Y as as,ar as ns,aq as ls,Z as is,$ as ds,a0 as cs,ae as rs,aT as us,as as ps,aU as _s,a2 as ms,a3 as vs,a4 as gs,F as ks,G as hs,aW as fs,H as ys}from"./index-BzaaAwnX.js";import{_ as $s,a as Cs}from"./SearchInput-DTMVECJE.js";import{_ as Ts}from"./sort-rounded-BiVhN4C5.js";import{_ as bs}from"./upload-rounded-BkrPpEdb.js";import{u as ws}from"./search-DwB6FdxH.js";import{u as Is,a as As}from"./key-events-C5OjC_dP.js";import{a as Es}from"./tags-BvnEKqTV.js";import"./search-rounded-Btuwf-IQ.js";import"./rss-feed-rounded-9FbiHzkN.js";import"./vee-validate.esm-DNjIRPsN.js";const Ss={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ds=n("path",{fill:"currentColor",d:"M10 16q.425 0 .713-.288T11 15V9q0-.425-.288-.712T10 8t-.712.288T9 9v6q0 .425.288.713T10 16m4 0q.425 0 .713-.288T15 15V9q0-.425-.288-.712T14 8t-.712.288T13 9v6q0 .425.288.713T14 16m-2 6q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m0-8"},null,-1),qs=[Ds];function Fs(f,b){return a(),c("svg",Ss,[...qs])}const Ls={name:"material-symbols-pause-circle-outline-rounded",render:Fs},Ms={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Bs=n("path",{fill:"currentColor",d:"M3 16v-2h7v2zm0-4v-2h11v2zm0-4V6h11v2zm13 12v-4h-4v-2h4v-4h2v4h4v2h-4v4z"},null,-1),Ps=[Bs];function Rs(f,b){return a(),c("svg",Ms,[...Ps])}const Vs={name:"material-symbols-playlist-add",render:Rs};function Re(f,b,I=500){const _=f.cloneNode(!0),y=f.getBoundingClientRect(),B=b.getBoundingClientRect();_.style.position="absolute",_.style.top=y.top+"px",_.style.left=y.left+"px",_.style.opacity=1,document.body.appendChild(_);let $=0;function h(D){$||($=D);const M=D-$,A=Math.min(M/I,1);_.style.top=y.top+(B.top-y.top)*A+"px",_.style.left=y.left+(B.left-y.left)*A+"px",A<1?requestAnimationFrame(h):document.body.removeChild(_)}requestAnimationFrame(h)}const Us=(f,b)=>{const{mutate:I,loading:_,onDone:y}=Ve({document:wt,appApi:!0}),{t:B}=Ue();return y(()=>{F.emit("refetch_app"),b()}),{loading:_,addItemsToPlaylist:($,h,D,M)=>{let A=M;if(!D){if(h.length===0){ze(B("select_first"),"error");return}A=`ids:${h.join(",")}`}const K=$.target,G=document.getElementById("quick-audio");Re(K,G),I({query:A})},addToPlaylist:($,h)=>{const D=$.target,M=document.getElementById("quick-audio");Re(D,M),I({query:`ids:${h.id}`})}}},zs=()=>{const f=V(""),{mutate:b,loading:I,onDone:_}=Ve({document:It,appApi:!0});return _(()=>{F.emit("play_audio")}),{loading:I,playPath:f,play:y=>{f.value=y.path,b({path:y.path})},pause:()=>{F.emit("pause_audio")}}},Ns=f=>(ks("data-v-9fac39cd"),f=f(),hs(),f),Hs={class:"top-app-bar"},Qs=["checked","indeterminate"],Ks={class:"title"},Gs={key:0},js={key:1},Os={class:"actions"},Ws=["onClick"],xs={slot:"headline"},Js=["onClick"],Xs={slot:"headline"},Zs={class:"menu-items"},Ys=["onClick","selected"],eo={slot:"headline"},to=["onClick","onMouseover"],so={class:"start"},oo=["onClick","checked"],ao=["onClick","checked"],no={class:"number"},lo={class:"image"},io=["src"],co=["src","onError"],ro={class:"title"},uo={class:"subtitle"},po={class:"duration"},_o=["onClick"],mo={class:"actions"},vo={key:2,indeterminate:"",class:"spinner-sm"},go={class:"artist"},ko={class:"time"},ho={class:"start"},fo=Ns(()=>n("div",{class:"checkbox"},[n("div",{class:"skeleton-checkbox"})],-1)),yo={class:"number"},$o=as('
',6),Co={key:0,class:"no-data-placeholder"},R=50,To=At({__name:"AudiosView",setup(f){var Ae;const b=Et(),{audioSortBy:I}=Le(b),_=V([]),{t:y}=Ue(),{parseQ:B}=ws(),$=St({tagIds:[]}),{app:h,urlTokenKey:D,audioPlaying:M,uploads:A}=Le(Dt()),K=t=>{var o;return M.value&&((o=h.value)==null?void 0:o.audioCurrent)===t.path},{input:G,upload:Ne,uploadChanged:ae}=Me(A),{input:He,upload:Qe,uploadChanged:ne}=Me(A),{dropping:Ke,fileDragEnter:le,fileDragLeave:ie,dropFiles:Ge}=qt(A),j=V(!1),m=Ft.AUDIO,de=Kt(),ce=de.query,O=V(parseInt(((Ae=ce.page)==null?void 0:Ae.toString())??"1")),{tags:N,buckets:W,fetch:je}=Lt(m),Oe=Mt(()=>{const t={};return W.value.forEach(o=>{t[o.id]=o}),t}),w=V(""),{addToTags:We}=Es(m,N),{deleteItems:x,deleteItem:re}=Bt(),{view:xe}=Pt(m),{selectedIds:C,allChecked:ue,realAllChecked:E,selectRealAll:Je,allCheckedAlertVisible:Xe,clearSelection:P,toggleAllChecked:pe,toggleSelect:_e,total:S,checked:J,shiftEffectingIds:me,handleItemClick:Ze,handleMouseOver:Ye,selectAll:et,shouldSelect:tt}=Is(_),{downloadItems:ve}=Rt(D,m,P,"audios.zip"),{downloadFile:ge}=ns(D),ke=t=>{const o=de.query.q;Gt(b,o?`/audios?page=${t}&q=${o}`:`/audios?page=${t}`)},{keyDown:he,keyUp:fe}=As(S,R,O,et,P,ke,()=>{se(oe.MEDIA_TRASH,h.value.osVersion)?Z(m,U()):x(m,C.value,E.value,S.value,w.value)}),{addItemsToPlaylist:st,addToPlaylist:ot}=Us(_,P),at=ls(),ye=V([]),{play:nt,playPath:lt,loading:it,pause:dt}=zs(),ct=t=>{ye.value.push(t)},{loading:X,fetch:H}=Vt({handle:(t,o)=>{j.value=!1,o?ze(y(o),"error"):t&&(_.value=t.items,S.value=t.total)},document:jt,variables:()=>({offset:(O.value-1)*R,limit:R,query:w.value,sortBy:I.value}),appApi:!0}),{trashLoading:$e,trash:Z}=Ut(),{restoreLoading:Ce,restore:Te}=zt();function rt(t){return t?`/audios?q=${t}`:"/audios"}function ut(t,o){j.value=!0,I.value=o,t.close()}function Y(){const t=W.value.find(o=>o.id===$.bucketId);return t?fs(t.topItems[0]):`${h.value.internalStoragePath}/Music`}function pt(t){Ne(Y()),t.close()}function _t(t){Qe(Y()),t.close()}function mt(t){Ge(t,Y(),"audio")}const U=()=>{let t=w.value;return E.value||(t=`ids:${C.value.join(",")}`),t},be=t=>{t.type===m&&(P(),H())},we=t=>{t.type===m&&H()},Ie=t=>{t.type===m&&(P(),H())};function vt(t){const o=t.tags.map(L=>L.id);is(ds,{type:m,tags:N.value,item:{key:t.id,title:t.title,size:t.size},selected:N.value.filter(L=>o.includes(L.id))})}return Nt(()=>{var t;w.value=cs(((t=ce.q)==null?void 0:t.toString())??""),B($,w.value),je(),H(),F.on("item_tags_updated",we),F.on("items_tags_updated",be),F.on("media_items_actioned",Ie),window.addEventListener("keydown",he),window.addEventListener("keyup",fe)}),Ht(()=>{F.off("item_tags_updated",we),F.off("items_tags_updated",be),F.off("media_items_actioned",Ie),window.removeEventListener("keydown",he),window.removeEventListener("keyup",fe)}),(t,o)=>{const L=rs,v=Ot,Ee=us,Q=ps,Se=_s,De=Vs,qe=ms,gt=$s,kt=bs,Fe=Wt,ht=Ts,ft=Cs,yt=vs,$t=gs,Ct=Ls,Tt=bt,u=xt("tooltip");return a(),c(q,null,[n("div",Hs,[n("md-checkbox",{"touch-target":"wrapper",onChange:o[0]||(o[0]=(...s)=>e(pe)&&e(pe)(...s)),checked:e(ue),indeterminate:!e(ue)&&e(J)},null,40,Qs),n("div",Ks,[e(C).length?(a(),c("span",Gs,k(t.$t("x_selected",{count:e(E)?e(S).toLocaleString():e(C).length.toLocaleString()})),1)):(a(),c("span",js,k(t.$t("page_title.audios"))+" ("+k(e(S).toLocaleString())+")",1)),e(J)?(a(),c(q,{key:2},[$.trash?(a(),c(q,{key:0},[r((a(),p(v,{onClick:o[1]||(o[1]=l(s=>e(x)(e(m),e(C),e(E),e(S),w.value),["stop"]))},{icon:d(()=>[i(L)]),_:1})),[[u,t.$t("delete")]]),r((a(),p(v,{onClick:o[2]||(o[2]=l(s=>e(Te)(e(m),U()),["stop"])),loading:e(Ce)(U())},{icon:d(()=>[i(Ee)]),_:1},8,["loading"])),[[u,t.$t("restore")]]),r((a(),p(v,{onClick:o[3]||(o[3]=l(s=>e(ve)(e(E),e(C),w.value),["stop"]))},{icon:d(()=>[i(Q)]),_:1})),[[u,t.$t("download")]])],64)):(a(),c(q,{key:1},[e(se)(e(oe).MEDIA_TRASH,e(h).osVersion)?r((a(),p(v,{key:0,onClick:o[4]||(o[4]=l(s=>e(Z)(e(m),U()),["stop"])),loading:e($e)(U())},{icon:d(()=>[i(Se)]),_:1},8,["loading"])),[[u,t.$t("move_to_trash")]]):r((a(),p(v,{key:1,onClick:o[5]||(o[5]=l(s=>e(x)(e(m),e(C),e(E),e(S),w.value),["stop"]))},{icon:d(()=>[i(L)]),_:1})),[[u,t.$t("delete")]]),r((a(),p(v,{onClick:o[6]||(o[6]=l(s=>e(ve)(e(E),e(C),w.value),["stop"]))},{icon:d(()=>[i(Q)]),_:1})),[[u,t.$t("download")]]),r((a(),p(v,{onClick:o[7]||(o[7]=l(s=>e(st)(s,e(C),e(E),w.value),["stop"]))},{icon:d(()=>[i(De)]),_:1})),[[u,t.$t("add_to_playlist")]]),r((a(),p(v,{onClick:o[8]||(o[8]=l(s=>e(We)(e(C),e(E),w.value),["stop"]))},{icon:d(()=>[i(qe)]),_:1})),[[u,t.$t("add_to_tags")]])],64))],64)):z("",!0)]),n("div",Os,[i(gt,{filter:$,tags:e(N),buckets:e(W),"get-url":rt},null,8,["filter","tags","buckets"]),i(Fe,null,{content:d(s=>[n("md-menu-item",{onClick:l(T=>pt(s),["stop"])},[n("div",xs,k(t.$t("upload_files")),1)],8,Ws),n("md-menu-item",{onClick:l(T=>_t(s),["stop"])},[n("div",Xs,k(t.$t("upload_folder")),1)],8,Js)]),default:d(()=>[r((a(),p(v,null,{icon:d(()=>[i(kt)]),_:1})),[[u,t.$t("upload")]])]),_:1}),i(Fe,null,{content:d(s=>[n("div",Zs,[(a(!0),c(q,null,te(e(at),T=>(a(),c("md-menu-item",{key:T.value,onClick:ee=>ut(s,T.value),selected:T.value===e(I)},[n("div",eo,k(t.$t(T.label)),1)],8,Ys))),128))])]),default:d(()=>[r((a(),p(v,{loading:j.value},{icon:d(()=>[i(ht)]),_:1},8,["loading"])),[[u,t.$t("sort")]])]),_:1})])]),i(ft,{limit:R,total:e(S),"all-checked-alert-visible":e(Xe),"real-all-checked":e(E),"select-real-all":e(Je),"clear-selection":e(P)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),n("div",{class:"scroll-content",onDragover:o[13]||(o[13]=l((...s)=>e(le)&&e(le)(...s),["stop","prevent"]))},[r(n("div",{class:"drag-mask",onDrop:l(mt,["stop","prevent"]),onDragleave:o[9]||(o[9]=l((...s)=>e(ie)&&e(ie)(...s),["stop","prevent"]))},k(t.$t("release_to_send_files")),545),[[Qt,e(Ke)]]),n("div",{class:Be(["audio-list",{"select-mode":e(J)}])},[(a(!0),c(q,null,te(_.value,(s,T)=>{var ee;return a(),c("section",{class:Be(["media-item selectable-card",{selected:e(C).includes(s.id),selecting:e(me).includes(s.id)}]),key:s.id,onClick:l(g=>e(Ze)(g,s,T,()=>{e(nt)(s)}),["stop"]),onMouseover:g=>e(Ye)(g,T)},[n("div",so,[e(me).includes(s.id)?(a(),c("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:l(g=>e(_e)(g,s,T),["stop"]),checked:e(tt)},null,8,oo)):(a(),c("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:l(g=>e(_e)(g,s,T),["stop"]),checked:e(C).includes(s.id)},null,8,ao)),n("span",no,[i(yt,{id:T+1,raw:s},null,8,["id","raw"])])]),n("div",lo,[ye.value.includes(s.id)?(a(),c("img",{key:0,src:`/ficons/${e(Jt)(s.path)}.svg`,class:"svg"},null,8,io)):(a(),c("img",{key:1,class:"image-thumb",src:e(Xt)(s.albumFileId,"&w=200&h=200"),onError:g=>ct(s.id)},null,40,co))]),n("div",ro,k(s.title),1),n("div",uo,[n("span",null,k(e(Zt)(s.size)),1),n("span",po,k(e(Yt)(s.duration)),1),n("a",{onClick:l(g=>e(xe)(e(b),s.bucketId),["stop","prevent"])},k((ee=Oe.value[s.bucketId])==null?void 0:ee.name),9,_o),i($t,{tags:s.tags,type:e(m),"only-links":!0},null,8,["tags","type"])]),n("div",mo,[$.trash?(a(),c(q,{key:0},[r((a(),p(v,{class:"sm",onClick:l(g=>e(re)(e(m),s),["stop"])},{icon:d(()=>[i(L)]),_:2},1032,["onClick"])),[[u,t.$t("delete")]]),r((a(),p(v,{class:"sm",onClick:l(g=>e(Te)(e(m),`ids:${s.id}`),["stop"]),loading:e(Ce)(`ids:${s.id}`)},{icon:d(()=>[i(Ee)]),_:2},1032,["onClick","loading"])),[[u,t.$t("restore")]]),r((a(),p(v,{class:"sm",onClick:l(g=>e(ge)(s.path,e(Pe)(s.path).replace(" ","-")),["stop"])},{icon:d(()=>[i(Q)]),_:2},1032,["onClick"])),[[u,t.$t("download")]])],64)):(a(),c(q,{key:1},[e(se)(e(oe).MEDIA_TRASH,e(h).osVersion)?r((a(),p(v,{key:0,class:"sm",onClick:l(g=>e(Z)(e(m),`ids:${s.id}`),["stop"]),loading:e($e)(`ids:${s.id}`)},{icon:d(()=>[i(Se)]),_:2},1032,["onClick","loading"])),[[u,t.$t("move_to_trash")]]):r((a(),p(v,{key:1,class:"sm",onClick:l(g=>e(re)(e(m),s),["stop"])},{icon:d(()=>[i(L)]),_:2},1032,["onClick"])),[[u,t.$t("delete")]]),r((a(),p(v,{class:"sm",onClick:l(g=>e(ge)(s.path,e(Pe)(s.path).replace(" ","-")),["stop"])},{icon:d(()=>[i(Q)]),_:2},1032,["onClick"])),[[u,t.$t("download")]]),r((a(),p(v,{class:"sm",onClick:l(g=>e(ot)(g,s),["stop","prevent"])},{icon:d(()=>[i(De)]),_:2},1032,["onClick"])),[[u,t.$t("add_to_playlist")]]),r((a(),p(v,{class:"sm",onClick:l(g=>vt(s),["stop"])},{icon:d(()=>[i(qe)]),_:2},1032,["onClick"])),[[u,t.$t("add_to_tags")]])],64)),e(it)&&s.path===e(lt)?(a(),c("md-circular-progress",vo)):K(s)?r((a(),p(v,{key:3,class:"sm",onClick:o[10]||(o[10]=l(g=>e(dt)(),["stop"]))},{icon:d(()=>[i(Ct)]),_:1})),[[u,t.$t("pause")]]):z("",!0)]),n("div",go,k(s.artist),1),n("div",ko,[r((a(),c("span",null,[ts(k(e(ss)(s.createdAt)),1)])),[[u,e(es)(s.createdAt)]])])],42,to)}),128)),e(X)&&_.value.length===0?(a(),c(q,{key:0},te(20,s=>n("section",{class:"media-item selectable-card-skeleton",key:s},[n("div",ho,[fo,n("span",yo,k(s),1)]),$o])),64)):z("",!0)],2),!e(X)&&_.value.length===0?(a(),c("div",Co,k(t.$t(e(os)(e(X),e(h).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):z("",!0),e(S)>R?(a(),p(Tt,{key:1,page:O.value,go:ke,total:e(S),limit:R},null,8,["page","total"])):z("",!0),n("input",{ref_key:"fileInput",ref:G,style:{display:"none"},type:"file",accept:"audio/*",multiple:"",onChange:o[11]||(o[11]=(...s)=>e(ae)&&e(ae)(...s))},null,544),n("input",{ref_key:"dirFileInput",ref:He,style:{display:"none"},type:"file",accept:"audio/*",multiple:"",webkitdirectory:"",mozdirectory:"",directory:"",onChange:o[12]||(o[12]=(...s)=>e(ne)&&e(ne)(...s))},null,544)],32)],64)}}}),Bo=ys(To,[["__scopeId","data-v-9fac39cd"]]);export{Bo as default}; diff --git a/app/src/main/resources/web/assets/AudiosView-B0P2D0co.css b/app/src/main/resources/web/assets/AudiosView-B0P2D0co.css deleted file mode 100644 index 3657fc0c..00000000 --- a/app/src/main/resources/web/assets/AudiosView-B0P2D0co.css +++ /dev/null @@ -1 +0,0 @@ -.media-item[data-v-9fac39cd]{display:grid;border-radius:8px;grid-template-areas:"start image title actions artist time" "start image subtitle actions artist time";grid-template-columns:48px 50px 2fr 210px minmax(64px,1fr) minmax(140px,auto)}.media-item[data-v-9fac39cd]:hover{cursor:pointer}.media-item .start[data-v-9fac39cd]{grid-area:start}.media-item .number[data-v-9fac39cd]{font-size:.75rem;display:flex;justify-content:center}.media-item .image[data-v-9fac39cd]{width:50px;height:50px;grid-area:image;margin-block:12px;text-align:center}.media-item .image .svg[data-v-9fac39cd]{max-width:50px;max-height:50px}.media-item .title[data-v-9fac39cd]{grid-area:title;font-weight:500;margin-inline:16px;padding-block-start:12px;word-break:break-all}.media-item .subtitle[data-v-9fac39cd]{grid-area:subtitle;display:flex;gap:8px;flex-wrap:wrap;font-size:.875rem;margin-inline:16px;margin-block-start:8px;margin-block-end:12px}.media-item .artist[data-v-9fac39cd]{grid-area:artist;display:flex;align-items:center}.media-item .actions[data-v-9fac39cd]{grid-area:actions;display:flex;flex-direction:row;gap:4px;align-items:center;visibility:visible;padding-inline:16px}.media-item .time[data-v-9fac39cd]{grid-area:time;display:flex;align-items:center;padding-inline:16px;justify-content:end}.audio-list[data-v-9fac39cd]{display:flex;flex-direction:column;gap:8px}.audio-list.select-mode .media-item .actions[data-v-9fac39cd]{visibility:hidden}.audio-list .media-item .skeleton-image[data-v-9fac39cd]{width:50px;height:50px}.audio-list .media-item .skeleton-title[data-v-9fac39cd]{width:50%;height:24px}.audio-list .media-item .skeleton-subtitle[data-v-9fac39cd]{width:40%;height:20px}.audio-list .media-item .skeleton-actions[data-v-9fac39cd]{width:140px;height:20px}.audio-list .media-item .skeleton-artist[data-v-9fac39cd],.audio-list .media-item .skeleton-time[data-v-9fac39cd]{width:60px;height:20px} diff --git a/app/src/main/resources/web/assets/AudiosView-CCTwbXRb.css b/app/src/main/resources/web/assets/AudiosView-CCTwbXRb.css new file mode 100644 index 00000000..110c6d62 --- /dev/null +++ b/app/src/main/resources/web/assets/AudiosView-CCTwbXRb.css @@ -0,0 +1 @@ +.media-item[data-v-4fa682b3]{display:grid;border-radius:8px;grid-template-areas:"start image title actions artist time" "start image subtitle actions artist time";grid-template-columns:48px 50px 2fr 210px minmax(64px,1fr) minmax(140px,auto)}.media-item[data-v-4fa682b3]:hover{cursor:pointer}.media-item .start[data-v-4fa682b3]{grid-area:start}.media-item .number[data-v-4fa682b3]{font-size:.75rem;display:flex;justify-content:center}.media-item .image[data-v-4fa682b3]{width:50px;height:50px;grid-area:image;margin-block:12px;text-align:center}.media-item .image .svg[data-v-4fa682b3]{max-width:50px;max-height:50px}.media-item .title[data-v-4fa682b3]{grid-area:title;font-weight:500;margin-inline:16px;padding-block-start:12px;word-break:break-all}.media-item .subtitle[data-v-4fa682b3]{grid-area:subtitle;display:flex;gap:8px;flex-wrap:wrap;font-size:.875rem;margin-inline:16px;margin-block-start:8px;margin-block-end:12px}.media-item .artist[data-v-4fa682b3]{grid-area:artist;display:flex;align-items:center}.media-item .actions[data-v-4fa682b3]{grid-area:actions;display:flex;flex-direction:row;gap:4px;align-items:center;visibility:visible;padding-inline:16px}.media-item .time[data-v-4fa682b3]{grid-area:time;display:flex;align-items:center;padding-inline:16px;justify-content:end}.audio-list[data-v-4fa682b3]{display:flex;flex-direction:column;gap:8px}.audio-list.select-mode .media-item .actions[data-v-4fa682b3]{visibility:hidden}.audio-list .media-item .skeleton-image[data-v-4fa682b3]{width:50px;height:50px}.audio-list .media-item .skeleton-title[data-v-4fa682b3]{width:50%;height:24px}.audio-list .media-item .skeleton-subtitle[data-v-4fa682b3]{width:40%;height:20px}.audio-list .media-item .skeleton-actions[data-v-4fa682b3]{width:140px;height:20px}.audio-list .media-item .skeleton-artist[data-v-4fa682b3],.audio-list .media-item .skeleton-time[data-v-4fa682b3]{width:60px;height:20px} diff --git a/app/src/main/resources/web/assets/AudiosView-vRBNAKnA.js b/app/src/main/resources/web/assets/AudiosView-vRBNAKnA.js new file mode 100644 index 00000000..9739132a --- /dev/null +++ b/app/src/main/resources/web/assets/AudiosView-vRBNAKnA.js @@ -0,0 +1 @@ +import{_ as Tt}from"./VPagination.vuevuetypescriptsetuptruelang-goYu96wT.js";import{o as a,c,a as n,j as Ve,a$ as wt,g as Ue,a1 as F,C as ze,h as V,b0 as It,d as At,u as Et,s as Le,I as St,i as Dt,ai as Me,aF as qt,J as Ft,aG as Lt,aH as Mt,aI as Bt,aM as Rt,aj as Pt,K as Vt,aJ as Ut,aK as zt,L as Nt,M as Ht,m as e,t as k,O as q,x as r,v as p,q as d,w as l,e as z,p as i,aL as Qt,N as Be,P as te,Q as Kt,f as Gt,b1 as jt,aP as Ot,ao as Wt,S as xt,aQ as se,aR as oe,aZ as Jt,aC as Xt,E as Zt,ab as Yt,aS as Re,U as es,V as ts,W as ss,X as os,Y as as,ar as ns,aq as ls,Z as is,$ as ds,a0 as cs,ae as rs,aT as us,as as ps,aU as _s,a2 as ms,a3 as vs,a4 as gs,F as ks,G as hs,aW as fs,H as ys}from"./index-R8dLcqG_.js";import{_ as $s,a as bs}from"./SearchInput-DhaE-3h8.js";import{_ as Cs}from"./sort-rounded-CsJpi3ce.js";import{_ as Ts}from"./upload-rounded-CQIzYelP.js";import{u as ws}from"./search-ByVbj6Ls.js";import{u as Is,a as As}from"./key-events-BNCM8SMB.js";import{a as Es}from"./tags-Dbpv368M.js";import"./search-rounded-CULEMJ2O.js";import"./rss-feed-rounded-BCiGdgJ5.js";import"./vee-validate.esm-vpr6zxQb.js";const Ss={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ds=n("path",{fill:"currentColor",d:"M10 16q.425 0 .713-.288T11 15V9q0-.425-.288-.712T10 8t-.712.288T9 9v6q0 .425.288.713T10 16m4 0q.425 0 .713-.288T15 15V9q0-.425-.288-.712T14 8t-.712.288T13 9v6q0 .425.288.713T14 16m-2 6q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m0-8"},null,-1),qs=[Ds];function Fs(f,T){return a(),c("svg",Ss,[...qs])}const Ls={name:"material-symbols-pause-circle-outline-rounded",render:Fs},Ms={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Bs=n("path",{fill:"currentColor",d:"M3 16v-2h7v2zm0-4v-2h11v2zm0-4V6h11v2zm13 12v-4h-4v-2h4v-4h2v4h4v2h-4v4z"},null,-1),Rs=[Bs];function Ps(f,T){return a(),c("svg",Ms,[...Rs])}const Vs={name:"material-symbols-playlist-add",render:Ps};function Pe(f,T,w=500){const _=f.cloneNode(!0),y=f.getBoundingClientRect(),B=T.getBoundingClientRect();_.style.position="absolute",_.style.top=y.top+"px",_.style.left=y.left+"px",_.style.opacity=1,document.body.appendChild(_);let $=0;function h(D){$||($=D);const M=D-$,A=Math.min(M/w,1);_.style.top=y.top+(B.top-y.top)*A+"px",_.style.left=y.left+(B.left-y.left)*A+"px",A<1?requestAnimationFrame(h):document.body.removeChild(_)}requestAnimationFrame(h)}const Us=(f,T)=>{const{mutate:w,loading:_,onDone:y}=Ve({document:wt,appApi:!0}),{t:B}=Ue();return y(()=>{F.emit("refetch_app"),T()}),{loading:_,addItemsToPlaylist:($,h,D,M)=>{let A=M;if(!D){if(h.length===0){ze(B("select_first"),"error");return}A=`ids:${h.join(",")}`}const K=$.target,G=document.getElementById("quick-audio");Pe(K,G),w({query:A})},addToPlaylist:($,h)=>{const D=$.target,M=document.getElementById("quick-audio");Pe(D,M),w({query:`ids:${h.id}`})}}},zs=()=>{const f=V(""),{mutate:T,loading:w,onDone:_}=Ve({document:It,appApi:!0});return _(()=>{F.emit("play_audio")}),{loading:w,playPath:f,play:y=>{f.value=y.path,T({path:y.path})},pause:()=>{F.emit("pause_audio")}}},Ns=f=>(ks("data-v-4fa682b3"),f=f(),hs(),f),Hs={class:"top-app-bar"},Qs=["checked","indeterminate"],Ks={class:"title"},Gs={key:0},js={key:1},Os={class:"actions"},Ws=["onClick"],xs={slot:"headline"},Js=["onClick"],Xs={slot:"headline"},Zs={class:"menu-items"},Ys=["onClick","selected"],eo={slot:"headline"},to=["onClick","onMouseover"],so={class:"start"},oo=["onClick","checked"],ao=["onClick","checked"],no={class:"number"},lo={class:"image"},io=["src"],co=["src","onError"],ro={class:"title"},uo={class:"subtitle"},po={class:"duration"},_o=["onClick"],mo={class:"actions"},vo={key:2,indeterminate:"",class:"spinner-sm"},go={class:"artist"},ko={class:"time"},ho={class:"start"},fo=Ns(()=>n("div",{class:"checkbox"},[n("div",{class:"skeleton-checkbox"})],-1)),yo={class:"number"},$o=as('
',6),bo={key:0,class:"no-data-placeholder"},P=50,Co=At({__name:"AudiosView",setup(f){var Ae;const T=Et(),{audioSortBy:w}=Le(T),_=V([]),{t:y}=Ue(),{parseQ:B}=ws(),$=St({tagIds:[]}),{app:h,urlTokenKey:D,audioPlaying:M,uploads:A}=Le(Dt()),K=t=>{var o;return M.value&&((o=h.value)==null?void 0:o.audioCurrent)===t.path},{input:G,upload:Ne,uploadChanged:ae}=Me(A),{input:He,upload:Qe,uploadChanged:ne}=Me(A),{dropping:Ke,fileDragEnter:le,fileDragLeave:ie,dropFiles:Ge}=qt(A),j=V(!1),m=Ft.AUDIO,de=Kt(),ce=de.query,O=V(parseInt(((Ae=ce.page)==null?void 0:Ae.toString())??"1")),{tags:N,buckets:W,fetch:je}=Lt(m),Oe=Mt(()=>{const t={};return W.value.forEach(o=>{t[o.id]=o}),t}),I=V(""),{addToTags:We}=Es(m,N),{deleteItems:x,deleteItem:re}=Bt(),{view:xe}=Rt(m),{selectedIds:b,allChecked:ue,realAllChecked:E,selectRealAll:Je,allCheckedAlertVisible:Xe,clearSelection:R,toggleAllChecked:pe,toggleSelect:_e,total:S,checked:J,shiftEffectingIds:me,handleItemClick:Ze,handleMouseOver:Ye,selectAll:et,shouldSelect:tt}=Is(_),{downloadItems:ve}=Pt(D,m,R,"audios.zip"),{downloadFile:ge}=ns(D),ke=t=>{const o=de.query.q;Gt(T,o?`/audios?page=${t}&q=${o}`:`/audios?page=${t}`)},{keyDown:he,keyUp:fe}=As(S,P,O,et,R,ke,()=>{se(oe.MEDIA_TRASH,h.value.osVersion)?Z(m,U()):x(m,b.value,E.value,S.value,I.value)}),{addItemsToPlaylist:st,addToPlaylist:ot}=Us(_,R),at=ls(),ye=V([]),{play:nt,playPath:lt,loading:it,pause:dt}=zs(),ct=t=>{ye.value.push(t)},{loading:X,fetch:H}=Vt({handle:(t,o)=>{j.value=!1,o?ze(y(o),"error"):t&&(_.value=t.items,S.value=t.total)},document:jt,variables:()=>({offset:(O.value-1)*P,limit:P,query:I.value,sortBy:w.value}),appApi:!0}),{trashLoading:$e,trash:Z}=Ut(),{restoreLoading:be,restore:Ce}=zt();function rt(t){return t?`/audios?q=${t}`:"/audios"}function ut(t,o){if(w.value===o){t.close();return}j.value=!0,w.value=o,t.close()}function Y(){const t=W.value.find(o=>o.id===$.bucketId);return t?fs(t.topItems[0]):`${h.value.internalStoragePath}/Music`}function pt(t){Ne(Y()),t.close()}function _t(t){Qe(Y()),t.close()}function mt(t){Ge(t,Y(),"audio")}const U=()=>{let t=I.value;return E.value||(t=`ids:${b.value.join(",")}`),t},Te=t=>{t.type===m&&(R(),H())},we=t=>{t.type===m&&H()},Ie=t=>{t.type===m&&(R(),H())};function vt(t){const o=t.tags.map(L=>L.id);is(ds,{type:m,tags:N.value,item:{key:t.id,title:t.title,size:t.size},selected:N.value.filter(L=>o.includes(L.id))})}return Nt(()=>{var t;I.value=cs(((t=ce.q)==null?void 0:t.toString())??""),B($,I.value),je(),H(),F.on("item_tags_updated",we),F.on("items_tags_updated",Te),F.on("media_items_actioned",Ie),window.addEventListener("keydown",he),window.addEventListener("keyup",fe)}),Ht(()=>{F.off("item_tags_updated",we),F.off("items_tags_updated",Te),F.off("media_items_actioned",Ie),window.removeEventListener("keydown",he),window.removeEventListener("keyup",fe)}),(t,o)=>{const L=rs,v=Ot,Ee=us,Q=ps,Se=_s,De=Vs,qe=ms,gt=$s,kt=Ts,Fe=Wt,ht=Cs,ft=bs,yt=vs,$t=gs,bt=Ls,Ct=Tt,u=xt("tooltip");return a(),c(q,null,[n("div",Hs,[n("md-checkbox",{"touch-target":"wrapper",onChange:o[0]||(o[0]=(...s)=>e(pe)&&e(pe)(...s)),checked:e(ue),indeterminate:!e(ue)&&e(J)},null,40,Qs),n("div",Ks,[e(b).length?(a(),c("span",Gs,k(t.$t("x_selected",{count:e(E)?e(S).toLocaleString():e(b).length.toLocaleString()})),1)):(a(),c("span",js,k(t.$t("page_title.audios"))+" ("+k(e(S).toLocaleString())+")",1)),e(J)?(a(),c(q,{key:2},[$.trash?(a(),c(q,{key:0},[r((a(),p(v,{onClick:o[1]||(o[1]=l(s=>e(x)(e(m),e(b),e(E),e(S),I.value),["stop"]))},{icon:d(()=>[i(L)]),_:1})),[[u,t.$t("delete")]]),r((a(),p(v,{onClick:o[2]||(o[2]=l(s=>e(Ce)(e(m),U()),["stop"])),loading:e(be)(U())},{icon:d(()=>[i(Ee)]),_:1},8,["loading"])),[[u,t.$t("restore")]]),r((a(),p(v,{onClick:o[3]||(o[3]=l(s=>e(ve)(e(E),e(b),I.value),["stop"]))},{icon:d(()=>[i(Q)]),_:1})),[[u,t.$t("download")]])],64)):(a(),c(q,{key:1},[e(se)(e(oe).MEDIA_TRASH,e(h).osVersion)?r((a(),p(v,{key:0,onClick:o[4]||(o[4]=l(s=>e(Z)(e(m),U()),["stop"])),loading:e($e)(U())},{icon:d(()=>[i(Se)]),_:1},8,["loading"])),[[u,t.$t("move_to_trash")]]):r((a(),p(v,{key:1,onClick:o[5]||(o[5]=l(s=>e(x)(e(m),e(b),e(E),e(S),I.value),["stop"]))},{icon:d(()=>[i(L)]),_:1})),[[u,t.$t("delete")]]),r((a(),p(v,{onClick:o[6]||(o[6]=l(s=>e(ve)(e(E),e(b),I.value),["stop"]))},{icon:d(()=>[i(Q)]),_:1})),[[u,t.$t("download")]]),r((a(),p(v,{onClick:o[7]||(o[7]=l(s=>e(st)(s,e(b),e(E),I.value),["stop"]))},{icon:d(()=>[i(De)]),_:1})),[[u,t.$t("add_to_playlist")]]),r((a(),p(v,{onClick:o[8]||(o[8]=l(s=>e(We)(e(b),e(E),I.value),["stop"]))},{icon:d(()=>[i(qe)]),_:1})),[[u,t.$t("add_to_tags")]])],64))],64)):z("",!0)]),n("div",Os,[i(gt,{filter:$,tags:e(N),buckets:e(W),"get-url":rt},null,8,["filter","tags","buckets"]),i(Fe,null,{content:d(s=>[n("md-menu-item",{onClick:l(C=>pt(s),["stop"])},[n("div",xs,k(t.$t("upload_files")),1)],8,Ws),n("md-menu-item",{onClick:l(C=>_t(s),["stop"])},[n("div",Xs,k(t.$t("upload_folder")),1)],8,Js)]),default:d(()=>[r((a(),p(v,null,{icon:d(()=>[i(kt)]),_:1})),[[u,t.$t("upload")]])]),_:1}),i(Fe,null,{content:d(s=>[n("div",Zs,[(a(!0),c(q,null,te(e(at),C=>(a(),c("md-menu-item",{key:C.value,onClick:ee=>ut(s,C.value),selected:C.value===e(w)},[n("div",eo,k(t.$t(C.label)),1)],8,Ys))),128))])]),default:d(()=>[r((a(),p(v,{loading:j.value},{icon:d(()=>[i(ht)]),_:1},8,["loading"])),[[u,t.$t("sort")]])]),_:1})])]),i(ft,{limit:P,total:e(S),"all-checked-alert-visible":e(Xe),"real-all-checked":e(E),"select-real-all":e(Je),"clear-selection":e(R)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),n("div",{class:"scroll-content",onDragover:o[13]||(o[13]=l((...s)=>e(le)&&e(le)(...s),["stop","prevent"]))},[r(n("div",{class:"drag-mask",onDrop:l(mt,["stop","prevent"]),onDragleave:o[9]||(o[9]=l((...s)=>e(ie)&&e(ie)(...s),["stop","prevent"]))},k(t.$t("release_to_send_files")),545),[[Qt,e(Ke)]]),n("div",{class:Be(["audio-list",{"select-mode":e(J)}])},[(a(!0),c(q,null,te(_.value,(s,C)=>{var ee;return a(),c("section",{class:Be(["media-item selectable-card",{selected:e(b).includes(s.id),selecting:e(me).includes(s.id)}]),key:s.id,onClick:l(g=>e(Ze)(g,s,C,()=>{e(nt)(s)}),["stop"]),onMouseover:g=>e(Ye)(g,C)},[n("div",so,[e(me).includes(s.id)?(a(),c("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:l(g=>e(_e)(g,s,C),["stop"]),checked:e(tt)},null,8,oo)):(a(),c("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:l(g=>e(_e)(g,s,C),["stop"]),checked:e(b).includes(s.id)},null,8,ao)),n("span",no,[i(yt,{id:C+1,raw:s},null,8,["id","raw"])])]),n("div",lo,[ye.value.includes(s.id)?(a(),c("img",{key:0,src:`/ficons/${e(Jt)(s.path)}.svg`,class:"svg"},null,8,io)):(a(),c("img",{key:1,class:"image-thumb",src:e(Xt)(s.albumFileId,"&w=200&h=200"),onError:g=>ct(s.id)},null,40,co))]),n("div",ro,k(s.title),1),n("div",uo,[n("span",null,k(e(Zt)(s.size)),1),n("span",po,k(e(Yt)(s.duration)),1),n("a",{onClick:l(g=>e(xe)(e(T),s.bucketId),["stop","prevent"])},k((ee=Oe.value[s.bucketId])==null?void 0:ee.name),9,_o),i($t,{tags:s.tags,type:e(m),"only-links":!0},null,8,["tags","type"])]),n("div",mo,[$.trash?(a(),c(q,{key:0},[r((a(),p(v,{class:"sm",onClick:l(g=>e(re)(e(m),s),["stop"])},{icon:d(()=>[i(L)]),_:2},1032,["onClick"])),[[u,t.$t("delete")]]),r((a(),p(v,{class:"sm",onClick:l(g=>e(Ce)(e(m),`ids:${s.id}`),["stop"]),loading:e(be)(`ids:${s.id}`)},{icon:d(()=>[i(Ee)]),_:2},1032,["onClick","loading"])),[[u,t.$t("restore")]]),r((a(),p(v,{class:"sm",onClick:l(g=>e(ge)(s.path,e(Re)(s.path).replace(" ","-")),["stop"])},{icon:d(()=>[i(Q)]),_:2},1032,["onClick"])),[[u,t.$t("download")]])],64)):(a(),c(q,{key:1},[e(se)(e(oe).MEDIA_TRASH,e(h).osVersion)?r((a(),p(v,{key:0,class:"sm",onClick:l(g=>e(Z)(e(m),`ids:${s.id}`),["stop"]),loading:e($e)(`ids:${s.id}`)},{icon:d(()=>[i(Se)]),_:2},1032,["onClick","loading"])),[[u,t.$t("move_to_trash")]]):r((a(),p(v,{key:1,class:"sm",onClick:l(g=>e(re)(e(m),s),["stop"])},{icon:d(()=>[i(L)]),_:2},1032,["onClick"])),[[u,t.$t("delete")]]),r((a(),p(v,{class:"sm",onClick:l(g=>e(ge)(s.path,e(Re)(s.path).replace(" ","-")),["stop"])},{icon:d(()=>[i(Q)]),_:2},1032,["onClick"])),[[u,t.$t("download")]]),r((a(),p(v,{class:"sm",onClick:l(g=>e(ot)(g,s),["stop","prevent"])},{icon:d(()=>[i(De)]),_:2},1032,["onClick"])),[[u,t.$t("add_to_playlist")]]),r((a(),p(v,{class:"sm",onClick:l(g=>vt(s),["stop"])},{icon:d(()=>[i(qe)]),_:2},1032,["onClick"])),[[u,t.$t("add_to_tags")]])],64)),e(it)&&s.path===e(lt)?(a(),c("md-circular-progress",vo)):K(s)?r((a(),p(v,{key:3,class:"sm",onClick:o[10]||(o[10]=l(g=>e(dt)(),["stop"]))},{icon:d(()=>[i(bt)]),_:1})),[[u,t.$t("pause")]]):z("",!0)]),n("div",go,k(s.artist),1),n("div",ko,[r((a(),c("span",null,[ts(k(e(ss)(s.createdAt)),1)])),[[u,e(es)(s.createdAt)]])])],42,to)}),128)),e(X)&&_.value.length===0?(a(),c(q,{key:0},te(20,s=>n("section",{class:"media-item selectable-card-skeleton",key:s},[n("div",ho,[fo,n("span",yo,k(s),1)]),$o])),64)):z("",!0)],2),!e(X)&&_.value.length===0?(a(),c("div",bo,k(t.$t(e(os)(e(X),e(h).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):z("",!0),e(S)>P?(a(),p(Ct,{key:1,page:O.value,go:ke,total:e(S),limit:P},null,8,["page","total"])):z("",!0),n("input",{ref_key:"fileInput",ref:G,style:{display:"none"},type:"file",accept:"audio/*",multiple:"",onChange:o[11]||(o[11]=(...s)=>e(ae)&&e(ae)(...s))},null,544),n("input",{ref_key:"dirFileInput",ref:He,style:{display:"none"},type:"file",accept:"audio/*",multiple:"",webkitdirectory:"",mozdirectory:"",directory:"",onChange:o[12]||(o[12]=(...s)=>e(ne)&&e(ne)(...s))},null,544)],32)],64)}}}),Bo=ys(Co,[["__scopeId","data-v-4fa682b3"]]);export{Bo as default}; diff --git a/app/src/main/resources/web/assets/Breadcrumb-Dw4cmHLf.js b/app/src/main/resources/web/assets/Breadcrumb-CXy0PDtB.js similarity index 81% rename from app/src/main/resources/web/assets/Breadcrumb-Dw4cmHLf.js rename to app/src/main/resources/web/assets/Breadcrumb-CXy0PDtB.js index 3c13e780..0ac7b136 100644 --- a/app/src/main/resources/web/assets/Breadcrumb-Dw4cmHLf.js +++ b/app/src/main/resources/web/assets/Breadcrumb-CXy0PDtB.js @@ -1 +1 @@ -import{d as l,u as d,o as n,c as s,O as p,P as _,a,t as o,m as f,cr as m,w as h,V as g,r as y,f as k,H as v}from"./index-BzaaAwnX.js";const b={class:"breadcrumb"},B=["onClick"],S={class:"active"},$=l({__name:"Breadcrumb",props:{current:{type:[String,Function]},paths:{type:Array,default:()=>[]}},setup(e){const c=d(),u=e;function i(t){k(c,t)}return(t,C)=>(n(),s("ol",b,[(n(!0),s(p,null,_(u.paths,r=>(n(),s("li",{key:r},[a("a",{href:"#",onClick:h(N=>i(r),["prevent"])},o(t.$t(`page_title.${f(m)(r)}`)),9,B)]))),128)),a("li",S,[g(o(typeof e.current=="function"?e.current():e.current),1),y(t.$slots,"current",{},void 0,!0)])]))}}),w=v($,[["__scopeId","data-v-d292b348"]]);export{w as _}; +import{d as l,u as d,o as n,c as s,O as p,P as _,a,t as o,m as f,cr as m,w as h,V as g,r as y,f as k,H as v}from"./index-R8dLcqG_.js";const b={class:"breadcrumb"},B=["onClick"],S={class:"active"},$=l({__name:"Breadcrumb",props:{current:{type:[String,Function]},paths:{type:Array,default:()=>[]}},setup(e){const c=d(),u=e;function i(t){k(c,t)}return(t,C)=>(n(),s("ol",b,[(n(!0),s(p,null,_(u.paths,r=>(n(),s("li",{key:r},[a("a",{href:"#",onClick:h(N=>i(r),["prevent"])},o(t.$t(`page_title.${f(m)(r)}`)),9,B)]))),128)),a("li",S,[g(o(typeof e.current=="function"?e.current():e.current),1),y(t.$slots,"current",{},void 0,!0)])]))}}),w=v($,[["__scopeId","data-v-d292b348"]]);export{w as _}; diff --git a/app/src/main/resources/web/assets/CallsSidebar-BT2GeIws.js b/app/src/main/resources/web/assets/CallsSidebar-DFxIRlRX.js similarity index 81% rename from app/src/main/resources/web/assets/CallsSidebar-BT2GeIws.js rename to app/src/main/resources/web/assets/CallsSidebar-DFxIRlRX.js index ffbfaff3..9efb2ea9 100644 --- a/app/src/main/resources/web/assets/CallsSidebar-BT2GeIws.js +++ b/app/src/main/resources/web/assets/CallsSidebar-DFxIRlRX.js @@ -1 +1 @@ -import{_ as N}from"./LeftSidebar.vuevuetypescriptsetuptruelang-xn7lCt7t.js";import{_ as V}from"./TagFilter.vuevuetypescriptsetuptruelang-CUu0usUl.js";import{d as A,u as M,s as Q,i as R,I as z,h as d,K as D,k as P,af as x,a1 as h,ag as E,v as F,q as C,ah as G,a6 as k,a0 as H,o as u,V as K,t as a,a as s,w as S,N as $,m as B,c as _,e as L,P as O,O as U,p as j,a7 as J,f as q,a8 as W}from"./index-BzaaAwnX.js";import{u as X}from"./search-DwB6FdxH.js";import"./more-vert-BRJfC0iG.js";import"./EditValueModal-Ws2hdG3a.js";import"./vee-validate.esm-DNjIRPsN.js";const Y={class:"nav"},Z={class:"title"},ee={key:0,class:"count"},te=["onClick"],ae={class:"title"},se={key:0,class:"count"},_e=A({__name:"CallsSidebar",setup(oe){const m=M(),{counter:p}=Q(R()),{parseQ:w}=X(),o=z({tagIds:[]}),n=d(""),l=d(""),c=d(new Map),{fetch:f}=D({handle:e=>{e&&(p.value.calls=e.total,c.value.set("1",e.incoming),c.value.set("2",e.outgoing),c.value.set("3",e.missed))},document:G,variables:()=>({}),appApi:!0});function v(e){return c.value.get(e)??-1}function g(){var i;const e=k.currentRoute.value,r=H(((i=e.query.q)==null?void 0:i.toString())??"");w(o,r),n.value=o.type??"",l.value=o.tagIds.length===1?o.tagIds[0]:"",n.value&&(l.value=""),f()}g(),P(()=>k.currentRoute.value,()=>{g()});function T(e){const r=J([{name:"type",op:"",value:e}]);q(m,`/calls?q=${W(r)}`)}function b(){q(m,"/calls")}const y=()=>{f()};return x(()=>{h.on("calls_deleted",y)}),E(()=>{h.off("calls_deleted",y)}),(e,r)=>{const i=V,I=N;return u(),F(I,null,{title:C(()=>[K(a(e.$t("page_title.calls")),1)]),body:C(()=>[s("ul",Y,[s("li",{onClick:S(b,["prevent"]),class:$({active:!l.value&&!n.value})},[s("span",Z,a(e.$t("all")),1),B(p).calls>=0?(u(),_("span",ee,a(B(p).calls.toLocaleString()),1)):L("",!0)],2),(u(),_(U,null,O(["1","2","3"],t=>s("li",{key:t,onClick:S(ne=>T(t),["prevent"]),class:$({active:t===n.value})},[s("span",ae,a(e.$t(`call_type.${t}`)),1),v(t)>=0?(u(),_("span",se,a(v(t).toLocaleString()),1)):L("",!0)],10,te)),64))]),j(i,{type:"CALL",selected:l.value},null,8,["selected"])]),_:1})}}});export{_e as default}; +import{_ as N}from"./LeftSidebar.vuevuetypescriptsetuptruelang-BWG8gajF.js";import{_ as V}from"./TagFilter.vuevuetypescriptsetuptruelang-DySu9lzm.js";import{d as A,u as M,s as Q,i as R,I as z,h as d,K as D,k as P,af as x,a1 as h,ag as E,v as F,q as C,ah as G,a6 as k,a0 as H,o as u,V as K,t as a,a as s,w as S,N as $,m as B,c as _,e as L,P as O,O as U,p as j,a7 as J,f as q,a8 as W}from"./index-R8dLcqG_.js";import{u as X}from"./search-ByVbj6Ls.js";import"./more-vert-zjmMMiPD.js";import"./EditValueModal-O1aAFYgx.js";import"./vee-validate.esm-vpr6zxQb.js";const Y={class:"nav"},Z={class:"title"},ee={key:0,class:"count"},te=["onClick"],ae={class:"title"},se={key:0,class:"count"},_e=A({__name:"CallsSidebar",setup(oe){const m=M(),{counter:p}=Q(R()),{parseQ:w}=X(),o=z({tagIds:[]}),n=d(""),l=d(""),c=d(new Map),{fetch:f}=D({handle:e=>{e&&(p.value.calls=e.total,c.value.set("1",e.incoming),c.value.set("2",e.outgoing),c.value.set("3",e.missed))},document:G,variables:()=>({}),appApi:!0});function v(e){return c.value.get(e)??-1}function g(){var i;const e=k.currentRoute.value,r=H(((i=e.query.q)==null?void 0:i.toString())??"");w(o,r),n.value=o.type??"",l.value=o.tagIds.length===1?o.tagIds[0]:"",n.value&&(l.value=""),f()}g(),P(()=>k.currentRoute.value,()=>{g()});function T(e){const r=J([{name:"type",op:"",value:e}]);q(m,`/calls?q=${W(r)}`)}function b(){q(m,"/calls")}const y=()=>{f()};return x(()=>{h.on("calls_deleted",y)}),E(()=>{h.off("calls_deleted",y)}),(e,r)=>{const i=V,I=N;return u(),F(I,null,{title:C(()=>[K(a(e.$t("page_title.calls")),1)]),body:C(()=>[s("ul",Y,[s("li",{onClick:S(b,["prevent"]),class:$({active:!l.value&&!n.value})},[s("span",Z,a(e.$t("all")),1),B(p).calls>=0?(u(),_("span",ee,a(B(p).calls.toLocaleString()),1)):L("",!0)],2),(u(),_(U,null,O(["1","2","3"],t=>s("li",{key:t,onClick:S(ne=>T(t),["prevent"]),class:$({active:t===n.value})},[s("span",ae,a(e.$t(`call_type.${t}`)),1),v(t)>=0?(u(),_("span",se,a(v(t).toLocaleString()),1)):L("",!0)],10,te)),64))]),j(i,{type:"CALL",selected:l.value},null,8,["selected"])]),_:1})}}});export{_e as default}; diff --git a/app/src/main/resources/web/assets/CallsView-Du0dMBSu.js b/app/src/main/resources/web/assets/CallsView-CzDaUb1S.js similarity index 94% rename from app/src/main/resources/web/assets/CallsView-Du0dMBSu.js rename to app/src/main/resources/web/assets/CallsView-CzDaUb1S.js index 1ff07b8a..892ae504 100644 --- a/app/src/main/resources/web/assets/CallsView-Du0dMBSu.js +++ b/app/src/main/resources/web/assets/CallsView-CzDaUb1S.js @@ -1,4 +1,4 @@ -import{_ as Se}from"./VPagination.vuevuetypescriptsetuptruelang-DJTUsUyq.js";import{_ as Le}from"./call-outline-rounded-vG9wdFxG.js";import{d as Te,u as Ie,s as qe,i as Ae,h as I,g as De,I as xe,J as Ve,K as Ee,j as Me,L as Ne,M as Be,c as n,a,m as t,t as d,O as q,x as g,w as _,p as r,e as A,N as X,P as Y,v as Ge,Q as Qe,a1 as p,a9 as Ue,f as Ke,C as Re,aa as ze,B as He,S as Oe,o,ab as Pe,U as je,V as Fe,W as We,X as Je,F as Xe,G as Ye,Y as Ze,Z,$ as et,ac as tt,ad as st,a0 as at,ae as lt,a2 as ot,a3 as nt,a4 as ct,H as it}from"./index-BzaaAwnX.js";import{_ as dt,a as rt}from"./SearchInput-DTMVECJE.js";import{b as ut,u as _t,a as pt}from"./key-events-C5OjC_dP.js";import{u as vt}from"./search-DwB6FdxH.js";import{u as mt,a as ht}from"./tags-BvnEKqTV.js";import"./search-rounded-Btuwf-IQ.js";import"./rss-feed-rounded-9FbiHzkN.js";import"./vee-validate.esm-DNjIRPsN.js";const f=$=>(Xe("data-v-52a43057"),$=$(),Ye(),$),gt={class:"top-app-bar"},kt=["checked","indeterminate"],ft={class:"title"},yt={key:0},bt={key:1},Ct=f(()=>a("md-ripple",null,null,-1)),$t=f(()=>a("md-ripple",null,null,-1)),wt={class:"actions"},St={class:"scroll-content"},Lt=["onClick","onMouseover"],Tt={class:"start"},It=["onClick","checked"],qt=["onClick","checked"],At={class:"number"},Dt={class:"title"},xt={class:"subtitle"},Vt={class:"actions"},Et=["onClick"],Mt=f(()=>a("md-ripple",null,null,-1)),Nt={key:0,indeterminate:"",class:"spinner-sm"},Bt=["onClick"],Gt=f(()=>a("md-ripple",null,null,-1)),Qt=["onClick"],Ut=f(()=>a("md-ripple",null,null,-1)),Kt={class:"geo"},Rt={class:"time"},zt={class:"start"},Ht=f(()=>a("div",{class:"checkbox"},[a("div",{class:"skeleton-checkbox"})],-1)),Ot={class:"number"},Pt=Ze('
',5),jt={key:0,class:"no-data-placeholder"},k=50,Ft=Te({__name:"CallsView",setup($){var W;const ee=Ie(),{app:te}=qe(Ae()),y=I([]),{t:D}=De(),{parseQ:se}=vt(),M=xe({tagIds:[]}),u=Ve.CALL,N=Qe(),B=N.query,x=I(parseInt(((W=B.page)==null?void 0:W.toString())??"1")),m=I(""),{tags:w,fetch:ae}=mt(u),{addToTags:le}=ht(u,w),{deleteItems:G}=ut(Ue,()=>{S(),L(),p.emit("refetch_tags",u),p.emit("calls_deleted")}),{selectedIds:v,allChecked:Q,realAllChecked:b,selectRealAll:oe,allCheckedAlertVisible:ne,clearSelection:S,toggleAllChecked:U,toggleSelect:K,total:c,checked:V,shiftEffectingIds:R,handleItemClick:ce,handleMouseOver:ie,selectAll:de,shouldSelect:re}=_t(y),z=e=>{const l=N.query.q;Ke(ee,l?`/calls?page=${e}&q=${l}`:`/calls?page=${e}`)},{keyDown:H,keyUp:O}=pt(c,k,x,de,S,z,()=>{G(v.value,b.value,c.value,m.value)}),{loading:E,fetch:L}=Ee({handle:(e,l)=>{l?Re(D(l),"error"):e&&(y.value=e.calls,c.value=e.callCount)},document:ze,variables:()=>({offset:(x.value-1)*k,limit:k,query:m.value}),appApi:!0}),ue=["1","2","3"].map(e=>({id:e,name:D("call_type."+e)}));function _e(e){Z(et,{type:u,tags:w.value,item:{key:e.id,title:"",size:0},selected:w.value.filter(l=>e.tags.some(T=>T.id===l.id))})}function pe(e){return e?`/calls?q=${e}`:"/calls"}const P=e=>{e.type===u&&(S(),L())},j=e=>{e.type===u&&L()};function ve(e){if(!e)return"";const l=[];return e.isp&&l.push(D("phone_isp_type."+e.isp)),e.city===e.province?l.push(e.city):l.push(`${e.province}${e.city}`),l.join(", ")}const F=I(""),{mutate:me,loading:he}=Me({document:He,appApi:!0});function ge(e){F.value=e.id,me({number:e.number})}function ke(e){Z(st,{id:e.id,name:e.number,gql:tt` +import{_ as Se}from"./VPagination.vuevuetypescriptsetuptruelang-goYu96wT.js";import{_ as Le}from"./call-outline-rounded-BLAgo6pA.js";import{d as Te,u as Ie,s as qe,i as Ae,h as I,g as De,I as xe,J as Ve,K as Ee,j as Me,L as Ne,M as Be,c as n,a,m as t,t as d,O as q,x as g,w as _,p as r,e as A,N as X,P as Y,v as Ge,Q as Qe,a1 as p,a9 as Ue,f as Ke,C as Re,aa as ze,B as He,S as Oe,o,ab as Pe,U as je,V as Fe,W as We,X as Je,F as Xe,G as Ye,Y as Ze,Z,$ as et,ac as tt,ad as st,a0 as at,ae as lt,a2 as ot,a3 as nt,a4 as ct,H as it}from"./index-R8dLcqG_.js";import{_ as dt,a as rt}from"./SearchInput-DhaE-3h8.js";import{b as ut,u as _t,a as pt}from"./key-events-BNCM8SMB.js";import{u as vt}from"./search-ByVbj6Ls.js";import{u as mt,a as ht}from"./tags-Dbpv368M.js";import"./search-rounded-CULEMJ2O.js";import"./rss-feed-rounded-BCiGdgJ5.js";import"./vee-validate.esm-vpr6zxQb.js";const f=$=>(Xe("data-v-52a43057"),$=$(),Ye(),$),gt={class:"top-app-bar"},kt=["checked","indeterminate"],ft={class:"title"},yt={key:0},bt={key:1},Ct=f(()=>a("md-ripple",null,null,-1)),$t=f(()=>a("md-ripple",null,null,-1)),wt={class:"actions"},St={class:"scroll-content"},Lt=["onClick","onMouseover"],Tt={class:"start"},It=["onClick","checked"],qt=["onClick","checked"],At={class:"number"},Dt={class:"title"},xt={class:"subtitle"},Vt={class:"actions"},Et=["onClick"],Mt=f(()=>a("md-ripple",null,null,-1)),Nt={key:0,indeterminate:"",class:"spinner-sm"},Bt=["onClick"],Gt=f(()=>a("md-ripple",null,null,-1)),Qt=["onClick"],Ut=f(()=>a("md-ripple",null,null,-1)),Kt={class:"geo"},Rt={class:"time"},zt={class:"start"},Ht=f(()=>a("div",{class:"checkbox"},[a("div",{class:"skeleton-checkbox"})],-1)),Ot={class:"number"},Pt=Ze('
',5),jt={key:0,class:"no-data-placeholder"},k=50,Ft=Te({__name:"CallsView",setup($){var W;const ee=Ie(),{app:te}=qe(Ae()),y=I([]),{t:D}=De(),{parseQ:se}=vt(),M=xe({tagIds:[]}),u=Ve.CALL,N=Qe(),B=N.query,x=I(parseInt(((W=B.page)==null?void 0:W.toString())??"1")),m=I(""),{tags:w,fetch:ae}=mt(u),{addToTags:le}=ht(u,w),{deleteItems:G}=ut(Ue,()=>{S(),L(),p.emit("refetch_tags",u),p.emit("calls_deleted")}),{selectedIds:v,allChecked:Q,realAllChecked:b,selectRealAll:oe,allCheckedAlertVisible:ne,clearSelection:S,toggleAllChecked:U,toggleSelect:K,total:c,checked:V,shiftEffectingIds:R,handleItemClick:ce,handleMouseOver:ie,selectAll:de,shouldSelect:re}=_t(y),z=e=>{const l=N.query.q;Ke(ee,l?`/calls?page=${e}&q=${l}`:`/calls?page=${e}`)},{keyDown:H,keyUp:O}=pt(c,k,x,de,S,z,()=>{G(v.value,b.value,c.value,m.value)}),{loading:E,fetch:L}=Ee({handle:(e,l)=>{l?Re(D(l),"error"):e&&(y.value=e.calls,c.value=e.callCount)},document:ze,variables:()=>({offset:(x.value-1)*k,limit:k,query:m.value}),appApi:!0}),ue=["1","2","3"].map(e=>({id:e,name:D("call_type."+e)}));function _e(e){Z(et,{type:u,tags:w.value,item:{key:e.id,title:"",size:0},selected:w.value.filter(l=>e.tags.some(T=>T.id===l.id))})}function pe(e){return e?`/calls?q=${e}`:"/calls"}const P=e=>{e.type===u&&(S(),L())},j=e=>{e.type===u&&L()};function ve(e){if(!e)return"";const l=[];return e.isp&&l.push(D("phone_isp_type."+e.isp)),e.city===e.province?l.push(e.city):l.push(`${e.province}${e.city}`),l.join(", ")}const F=I(""),{mutate:me,loading:he}=Me({document:He,appApi:!0});function ge(e){F.value=e.id,me({number:e.number})}function ke(e){Z(st,{id:e.id,name:e.number,gql:tt` mutation DeleteCall($query: String!) { deleteCalls(query: $query) } diff --git a/app/src/main/resources/web/assets/ContactsSidebar-BhyJSnpi.js b/app/src/main/resources/web/assets/ContactsSidebar-kNCUoG7d.js similarity index 72% rename from app/src/main/resources/web/assets/ContactsSidebar-BhyJSnpi.js rename to app/src/main/resources/web/assets/ContactsSidebar-kNCUoG7d.js index 112e50b9..a7ad6f9c 100644 --- a/app/src/main/resources/web/assets/ContactsSidebar-BhyJSnpi.js +++ b/app/src/main/resources/web/assets/ContactsSidebar-kNCUoG7d.js @@ -1 +1 @@ -import{_ as g}from"./LeftSidebar.vuevuetypescriptsetuptruelang-xn7lCt7t.js";import{_ as C}from"./TagFilter.vuevuetypescriptsetuptruelang-CUu0usUl.js";import{d as S,u as y,s as k,i as N,I as T,h as w,K as B,k as I,v as V,q as l,aE as b,a6 as u,a0 as q,o as p,V as A,t as c,a as n,w as $,N as L,m,c as Q,e as R,p as x,f as z}from"./index-BzaaAwnX.js";import{u as E}from"./search-DwB6FdxH.js";import"./more-vert-BRJfC0iG.js";import"./EditValueModal-Ws2hdG3a.js";import"./vee-validate.esm-DNjIRPsN.js";const M={class:"nav"},D={class:"title"},G={key:0,class:"count"},W=S({__name:"ContactsSidebar",setup(K){const _=y(),{counter:a}=k(N()),{parseQ:d}=E(),s=T({tagIds:[]}),o=w(""),{fetch:f}=B({handle:t=>{t&&(a.value.contacts=t.total)},document:b,variables:()=>({}),appApi:!0});function r(){var e;const t=u.currentRoute.value,i=q(((e=t.query.q)==null?void 0:e.toString())??"");d(s,i),o.value=s.tagIds.length===1?s.tagIds[0]:"",f()}r(),I(()=>u.currentRoute.value,()=>{r()});function v(){z(_,"/contacts")}return(t,i)=>{const e=C,h=g;return p(),V(h,null,{title:l(()=>[A(c(t.$t("page_title.contacts")),1)]),body:l(()=>[n("ul",M,[n("li",{onClick:$(v,["prevent"]),class:L({active:!o.value})},[n("span",D,c(t.$t("all")),1),m(a).contacts>=0?(p(),Q("span",G,c(m(a).contacts.toLocaleString()),1)):R("",!0)],2)]),x(e,{type:"CONTACT",selected:o.value},null,8,["selected"])]),_:1})}}});export{W as default}; +import{_ as g}from"./LeftSidebar.vuevuetypescriptsetuptruelang-BWG8gajF.js";import{_ as C}from"./TagFilter.vuevuetypescriptsetuptruelang-DySu9lzm.js";import{d as S,u as y,s as k,i as N,I as T,h as w,K as B,k as I,v as V,q as l,aE as b,a6 as u,a0 as q,o as p,V as A,t as c,a as n,w as $,N as L,m,c as Q,e as R,p as x,f as z}from"./index-R8dLcqG_.js";import{u as E}from"./search-ByVbj6Ls.js";import"./more-vert-zjmMMiPD.js";import"./EditValueModal-O1aAFYgx.js";import"./vee-validate.esm-vpr6zxQb.js";const M={class:"nav"},D={class:"title"},G={key:0,class:"count"},W=S({__name:"ContactsSidebar",setup(K){const _=y(),{counter:a}=k(N()),{parseQ:d}=E(),s=T({tagIds:[]}),o=w(""),{fetch:f}=B({handle:t=>{t&&(a.value.contacts=t.total)},document:b,variables:()=>({}),appApi:!0});function r(){var e;const t=u.currentRoute.value,i=q(((e=t.query.q)==null?void 0:e.toString())??"");d(s,i),o.value=s.tagIds.length===1?s.tagIds[0]:"",f()}r(),I(()=>u.currentRoute.value,()=>{r()});function v(){z(_,"/contacts")}return(t,i)=>{const e=C,h=g;return p(),V(h,null,{title:l(()=>[A(c(t.$t("page_title.contacts")),1)]),body:l(()=>[n("ul",M,[n("li",{onClick:$(v,["prevent"]),class:L({active:!o.value})},[n("span",D,c(t.$t("all")),1),m(a).contacts>=0?(p(),Q("span",G,c(m(a).contacts.toLocaleString()),1)):R("",!0)],2)]),x(e,{type:"CONTACT",selected:o.value},null,8,["selected"])]),_:1})}}});export{W as default}; diff --git a/app/src/main/resources/web/assets/ContactsView-Bu1iKHhR.js b/app/src/main/resources/web/assets/ContactsView-yr-2rY75.js similarity index 97% rename from app/src/main/resources/web/assets/ContactsView-Bu1iKHhR.js rename to app/src/main/resources/web/assets/ContactsView-yr-2rY75.js index 7cc1f497..f95cb525 100644 --- a/app/src/main/resources/web/assets/ContactsView-Bu1iKHhR.js +++ b/app/src/main/resources/web/assets/ContactsView-yr-2rY75.js @@ -1,4 +1,4 @@ -import{_ as Ze}from"./VPagination.vuevuetypescriptsetuptruelang-DJTUsUyq.js";import{o as s,c as o,a as e,d as ue,h as B,au as Ve,av as R,aw as et,t as u,x as p,y as b,m as t,z as tt,A as st,H as Ue,I as Le,g as Se,j as de,ac as ie,ax as ke,e as N,p as h,O as v,P as f,q as ge,V as ce,ay as ot,ae as xe,ao as lt,u as nt,s as at,i as dt,J as it,K as ct,l as ut,L as rt,M as _t,w as I,N as Ce,v as we,Q as pt,a1 as H,az as mt,f as vt,C as Ne,aA as ht,aB as ft,Z as le,B as bt,S as $t,aC as yt,U as kt,W as gt,X as Ct,F as wt,G as Nt,Y as qt,$ as Tt,aD as qe,ad as Vt,a0 as Ut,as as Lt,a2 as St,a3 as xt,a4 as It}from"./index-BzaaAwnX.js";import{_ as At}from"./call-outline-rounded-vG9wdFxG.js";import{_ as Mt}from"./contact-page-outline-rounded-g8G2lc59.js";import{_ as Dt,a as zt}from"./SearchInput-DTMVECJE.js";import{u as Ie,a as Ae}from"./vee-validate.esm-DNjIRPsN.js";import{u as Ft,a as Et}from"./tags-BvnEKqTV.js";import{b as Bt,u as Qt,a as Kt}from"./key-events-C5OjC_dP.js";import{u as Ot}from"./search-DwB6FdxH.js";import"./search-rounded-Btuwf-IQ.js";import"./rss-feed-rounded-9FbiHzkN.js";const Rt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},jt=e("path",{fill:"currentColor",d:"M3 21v-4.25L16.2 3.575q.3-.275.663-.425t.762-.15t.775.15t.65.45L20.425 5q.3.275.438.65T21 6.4q0 .4-.137.763t-.438.662L7.25 21zM17.6 7.8L19 6.4L17.6 5l-1.4 1.4z"},null,-1),Gt=[jt];function Ht(g,x){return s(),o("svg",Rt,[...Gt])}const Wt={name:"material-symbols-edit",render:Ht},Jt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Pt=e("path",{fill:"currentColor",d:"M12 13.825L8.1 17.7q-.275.275-.687.288T6.7 17.7q-.275-.275-.275-.7t.275-.7l4.6-4.6q.15-.15.325-.213t.375-.062t.375.062t.325.213l4.6 4.6q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275zm0-6L8.1 11.7q-.275.275-.687.288T6.7 11.7q-.275-.275-.275-.7t.275-.7l4.6-4.6q.15-.15.325-.212T12 5.425t.375.063t.325.212l4.6 4.6q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275z"},null,-1),Xt=[Pt];function Yt(g,x){return s(),o("svg",Jt,[...Xt])}const Zt={name:"material-symbols-keyboard-double-arrow-up-rounded",render:Yt},es={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ts=e("path",{fill:"currentColor",d:"m12 16.175l3.9-3.875q.275-.275.688-.288t.712.288q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062t-.375-.062t-.325-.213l-4.6-4.6q-.275-.275-.288-.687T6.7 12.3q.275-.275.7-.275t.7.275zm0-6L15.9 6.3q.275-.275.688-.287t.712.287q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062t-.375-.062t-.325-.213L6.7 7.7q-.275-.275-.288-.687T6.7 6.3q.275-.275.7-.275t.7.275z"},null,-1),ss=[ts];function os(g,x){return s(),o("svg",es,[...ss])}const ls={name:"material-symbols-keyboard-double-arrow-down-rounded",render:os};function W(g){return Array.from({length:g},(x,q)=>q+1).concat(-1)}const Z={phoneNumberTypes:W(20),emailTypes:W(4),addressTypes:W(3),eventTypes:W(3),imTypes:W(8),websiteTypes:W(7)},ns={slot:"headline"},as={slot:"content"},ds=["error","error-text"],is={slot:"actions"},cs=ue({__name:"PromptModal",props:{do:{type:Function,required:!0},title:{type:String,required:!0},value:{type:String}},setup(g){const{handleSubmit:x}=Ie(),q=B(),d=g,{value:C,resetField:K,errorMessage:A}=Ae("inputValue",Ve().required()),$=x(()=>{d.do(C.value??""),R()});return C.value=d.value,d.value||K(),(async()=>{var U;await et(),(U=q.value)==null||U.focus()})(),(U,T)=>(s(),o("md-dialog",null,[e("div",ns,u(g.title),1),e("div",as,[p(e("md-outlined-text-field",{ref_key:"inputRef",ref:q,class:"form-control",error:t(A),"error-text":t(A)?U.$t(t(A)):"","onUpdate:modelValue":T[0]||(T[0]=w=>tt(C)?C.value=w:null),onKeyup:T[1]||(T[1]=st((...w)=>t($)&&t($)(...w),["enter"]))},null,40,ds),[[b,t(C)]])]),e("div",is,[e("md-outlined-button",{value:"cancel",onClick:T[2]||(T[2]=(...w)=>t(R)&&t(R)(...w))},u(U.$t("cancel")),1),e("md-filled-button",{value:"ok",onClick:T[3]||(T[3]=(...w)=>t($)&&t($)(...w)),autofocus:""},u(U.$t("ok")),1)])]))}}),us=Ue(cs,[["__scopeId","data-v-f510d520"]]),rs={slot:"headline"},_s={slot:"content"},ps={class:"form-label"},ms={class:"form-row"},vs=["label"],hs=["label"],fs=["label"],bs={key:1,class:"v-center"},$s=e("md-ripple",null,null,-1),ys={key:0,class:"form-row"},ks=["label"],gs=["label"],Cs={class:"v-center"},ws=e("md-ripple",null,null,-1),Ns={class:"form-label"},qs=["onUpdate:modelValue","onChange"],Ts=["value"],Vs={slot:"headline"},Us=["placeholder","onUpdate:modelValue"],Ls={class:"v-center"},Ss=["onClick"],xs=e("md-ripple",null,null,-1),Is={key:1,class:"form-label"},As=["onUpdate:modelValue","onChange"],Ms=["value"],Ds={slot:"headline"},zs=["label","onUpdate:modelValue"],Fs={class:"v-center"},Es=["onClick"],Bs=e("md-ripple",null,null,-1),Qs={key:2,class:"form-label"},Ks=["onUpdate:modelValue","onChange"],Os=["value"],Rs={slot:"headline"},js=["label","onUpdate:modelValue"],Gs={class:"v-center"},Hs=["onClick"],Ws=e("md-ripple",null,null,-1),Js={key:3,class:"form-label"},Ps=["onUpdate:modelValue","onChange"],Xs=["value"],Ys={slot:"headline"},Zs=["placeholder","onUpdate:modelValue"],eo={class:"v-center"},to=["onClick"],so=e("md-ripple",null,null,-1),oo={key:4,class:"form-label"},lo=["onUpdate:modelValue","onChange"],no=["value"],ao={slot:"headline"},io=["placeholder","onUpdate:modelValue"],co={class:"v-center"},uo=["onClick"],ro=e("md-ripple",null,null,-1),_o={class:"form-row",style:{display:"block",position:"relative"}},po={class:"menu-items"},mo=["onClick"],vo={slot:"headline"},ho=["onClick"],fo={slot:"headline"},bo=["onClick"],$o={slot:"headline"},yo=["onClick"],ko={slot:"headline"},go=["onClick"],Co={slot:"headline"},wo={class:"form-row"},No=["label"],qo={slot:"actions"},To=["disabled"],Vo={key:0,indeterminate:"",slot:"icon"},Te=ue({__name:"EditContactModal",props:{data:{type:Object},sources:{type:Array},done:{type:Function,required:!0}},setup(g){const{handleSubmit:x}=Ie(),q=g,d=Le({firstName:"",middleName:"",lastName:"",prefix:"",suffix:"",nickname:"",organization:null,notes:"",source:"",starred:0,phoneNumbers:[],emails:[],addresses:[],websites:[],events:[],ims:[],groupIds:[]}),C=B(!1),{t:K}=Se(),{mutate:A,loading:$,onDone:U}=de({document:ie` +import{_ as Ze}from"./VPagination.vuevuetypescriptsetuptruelang-goYu96wT.js";import{o as s,c as o,a as e,d as ue,h as B,au as Ve,av as R,aw as et,t as u,x as p,y as b,m as t,z as tt,A as st,H as Ue,I as Le,g as Se,j as de,ac as ie,ax as ke,e as N,p as h,O as v,P as f,q as ge,V as ce,ay as ot,ae as xe,ao as lt,u as nt,s as at,i as dt,J as it,K as ct,l as ut,L as rt,M as _t,w as I,N as Ce,v as we,Q as pt,a1 as H,az as mt,f as vt,C as Ne,aA as ht,aB as ft,Z as le,B as bt,S as $t,aC as yt,U as kt,W as gt,X as Ct,F as wt,G as Nt,Y as qt,$ as Tt,aD as qe,ad as Vt,a0 as Ut,as as Lt,a2 as St,a3 as xt,a4 as It}from"./index-R8dLcqG_.js";import{_ as At}from"./call-outline-rounded-BLAgo6pA.js";import{_ as Mt}from"./contact-page-outline-rounded-By1MHhQ9.js";import{_ as Dt,a as zt}from"./SearchInput-DhaE-3h8.js";import{u as Ie,a as Ae}from"./vee-validate.esm-vpr6zxQb.js";import{u as Ft,a as Et}from"./tags-Dbpv368M.js";import{b as Bt,u as Qt,a as Kt}from"./key-events-BNCM8SMB.js";import{u as Ot}from"./search-ByVbj6Ls.js";import"./search-rounded-CULEMJ2O.js";import"./rss-feed-rounded-BCiGdgJ5.js";const Rt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},jt=e("path",{fill:"currentColor",d:"M3 21v-4.25L16.2 3.575q.3-.275.663-.425t.762-.15t.775.15t.65.45L20.425 5q.3.275.438.65T21 6.4q0 .4-.137.763t-.438.662L7.25 21zM17.6 7.8L19 6.4L17.6 5l-1.4 1.4z"},null,-1),Gt=[jt];function Ht(g,x){return s(),o("svg",Rt,[...Gt])}const Wt={name:"material-symbols-edit",render:Ht},Jt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Pt=e("path",{fill:"currentColor",d:"M12 13.825L8.1 17.7q-.275.275-.687.288T6.7 17.7q-.275-.275-.275-.7t.275-.7l4.6-4.6q.15-.15.325-.213t.375-.062t.375.062t.325.213l4.6 4.6q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275zm0-6L8.1 11.7q-.275.275-.687.288T6.7 11.7q-.275-.275-.275-.7t.275-.7l4.6-4.6q.15-.15.325-.212T12 5.425t.375.063t.325.212l4.6 4.6q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275z"},null,-1),Xt=[Pt];function Yt(g,x){return s(),o("svg",Jt,[...Xt])}const Zt={name:"material-symbols-keyboard-double-arrow-up-rounded",render:Yt},es={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ts=e("path",{fill:"currentColor",d:"m12 16.175l3.9-3.875q.275-.275.688-.288t.712.288q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062t-.375-.062t-.325-.213l-4.6-4.6q-.275-.275-.288-.687T6.7 12.3q.275-.275.7-.275t.7.275zm0-6L15.9 6.3q.275-.275.688-.287t.712.287q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062t-.375-.062t-.325-.213L6.7 7.7q-.275-.275-.288-.687T6.7 6.3q.275-.275.7-.275t.7.275z"},null,-1),ss=[ts];function os(g,x){return s(),o("svg",es,[...ss])}const ls={name:"material-symbols-keyboard-double-arrow-down-rounded",render:os};function W(g){return Array.from({length:g},(x,q)=>q+1).concat(-1)}const Z={phoneNumberTypes:W(20),emailTypes:W(4),addressTypes:W(3),eventTypes:W(3),imTypes:W(8),websiteTypes:W(7)},ns={slot:"headline"},as={slot:"content"},ds=["error","error-text"],is={slot:"actions"},cs=ue({__name:"PromptModal",props:{do:{type:Function,required:!0},title:{type:String,required:!0},value:{type:String}},setup(g){const{handleSubmit:x}=Ie(),q=B(),d=g,{value:C,resetField:K,errorMessage:A}=Ae("inputValue",Ve().required()),$=x(()=>{d.do(C.value??""),R()});return C.value=d.value,d.value||K(),(async()=>{var U;await et(),(U=q.value)==null||U.focus()})(),(U,T)=>(s(),o("md-dialog",null,[e("div",ns,u(g.title),1),e("div",as,[p(e("md-outlined-text-field",{ref_key:"inputRef",ref:q,class:"form-control",error:t(A),"error-text":t(A)?U.$t(t(A)):"","onUpdate:modelValue":T[0]||(T[0]=w=>tt(C)?C.value=w:null),onKeyup:T[1]||(T[1]=st((...w)=>t($)&&t($)(...w),["enter"]))},null,40,ds),[[b,t(C)]])]),e("div",is,[e("md-outlined-button",{value:"cancel",onClick:T[2]||(T[2]=(...w)=>t(R)&&t(R)(...w))},u(U.$t("cancel")),1),e("md-filled-button",{value:"ok",onClick:T[3]||(T[3]=(...w)=>t($)&&t($)(...w)),autofocus:""},u(U.$t("ok")),1)])]))}}),us=Ue(cs,[["__scopeId","data-v-f510d520"]]),rs={slot:"headline"},_s={slot:"content"},ps={class:"form-label"},ms={class:"form-row"},vs=["label"],hs=["label"],fs=["label"],bs={key:1,class:"v-center"},$s=e("md-ripple",null,null,-1),ys={key:0,class:"form-row"},ks=["label"],gs=["label"],Cs={class:"v-center"},ws=e("md-ripple",null,null,-1),Ns={class:"form-label"},qs=["onUpdate:modelValue","onChange"],Ts=["value"],Vs={slot:"headline"},Us=["placeholder","onUpdate:modelValue"],Ls={class:"v-center"},Ss=["onClick"],xs=e("md-ripple",null,null,-1),Is={key:1,class:"form-label"},As=["onUpdate:modelValue","onChange"],Ms=["value"],Ds={slot:"headline"},zs=["label","onUpdate:modelValue"],Fs={class:"v-center"},Es=["onClick"],Bs=e("md-ripple",null,null,-1),Qs={key:2,class:"form-label"},Ks=["onUpdate:modelValue","onChange"],Os=["value"],Rs={slot:"headline"},js=["label","onUpdate:modelValue"],Gs={class:"v-center"},Hs=["onClick"],Ws=e("md-ripple",null,null,-1),Js={key:3,class:"form-label"},Ps=["onUpdate:modelValue","onChange"],Xs=["value"],Ys={slot:"headline"},Zs=["placeholder","onUpdate:modelValue"],eo={class:"v-center"},to=["onClick"],so=e("md-ripple",null,null,-1),oo={key:4,class:"form-label"},lo=["onUpdate:modelValue","onChange"],no=["value"],ao={slot:"headline"},io=["placeholder","onUpdate:modelValue"],co={class:"v-center"},uo=["onClick"],ro=e("md-ripple",null,null,-1),_o={class:"form-row",style:{display:"block",position:"relative"}},po={class:"menu-items"},mo=["onClick"],vo={slot:"headline"},ho=["onClick"],fo={slot:"headline"},bo=["onClick"],$o={slot:"headline"},yo=["onClick"],ko={slot:"headline"},go=["onClick"],Co={slot:"headline"},wo={class:"form-row"},No=["label"],qo={slot:"actions"},To=["disabled"],Vo={key:0,indeterminate:"",slot:"icon"},Te=ue({__name:"EditContactModal",props:{data:{type:Object},sources:{type:Array},done:{type:Function,required:!0}},setup(g){const{handleSubmit:x}=Ie(),q=g,d=Le({firstName:"",middleName:"",lastName:"",prefix:"",suffix:"",nickname:"",organization:null,notes:"",source:"",starred:0,phoneNumbers:[],emails:[],addresses:[],websites:[],events:[],ims:[],groupIds:[]}),C=B(!1),{t:K}=Se(),{mutate:A,loading:$,onDone:U}=de({document:ie` mutation createContact($input: ContactInput!) { createContact(input: $input) { ...ContactFragment diff --git a/app/src/main/resources/web/assets/DeviceInfoView-BOk_tcZ1.js b/app/src/main/resources/web/assets/DeviceInfoView-DTyOzgf5.js similarity index 98% rename from app/src/main/resources/web/assets/DeviceInfoView-BOk_tcZ1.js rename to app/src/main/resources/web/assets/DeviceInfoView-DTyOzgf5.js index 94957c8b..6b09de59 100644 --- a/app/src/main/resources/web/assets/DeviceInfoView-BOk_tcZ1.js +++ b/app/src/main/resources/web/assets/DeviceInfoView-DTyOzgf5.js @@ -1 +1 @@ -import{d as $,g as I,h as p,l as A,c as s,a as l,t as o,O as i,P as u,C as D,ab as w,b_ as T,S as B,o as t,x as m,m as c,ap as k,V as d,U as f,H as N}from"./index-BzaaAwnX.js";const S={class:"top-app-bar"},j={class:"title"},C={class:"scroll-content"},E={class:"grids"},F={class:"card"},L={class:"card-title"},P={class:"card-body"},Q={class:"key"},G={class:"value"},H={key:0,class:"time"},O={class:"card"},U={class:"card-title"},q={class:"card-body"},z={class:"key"},J={class:"value"},K={key:0,class:"time"},M={class:"card"},R={class:"card-title"},W={class:"card-body"},X={class:"key"},Y={class:"value"},Z={key:0,class:"time"},x=$({__name:"DeviceInfoView",setup(ee){const{t:b}=I(),y=p([]),g=p([]),V=p([]);return A({handle:(r,h)=>{if(h)D(b(h),"error");else{const a=r.deviceInfo;y.value=[{label:"device_name",value:a.deviceName},{label:"model",value:a.model},{label:"manufacturer",value:a.manufacturer},{label:"device",value:a.device},{label:"board",value:a.board},{label:"hardware",value:a.hardware},{label:"brand",value:a.buildBrand},{label:"build_fingerprint",value:a.fingerprint}],a.phoneNumbers.length>0&&y.value.push({label:"phone_number",value:a.phoneNumbers.map(n=>n.name+" "+n.number)}),g.value=[{label:"android_version",value:a.releaseBuildVersion+" ("+a.sdkVersion+")"},{label:"security_patch",value:a.securityPatch},{label:"bootloader",value:a.bootloader},{label:"build_number",value:a.displayVersion},{label:"baseband",value:a.radioVersion},{label:"java_vm",value:a.javaVmVersion},{label:"kernel",value:a.kernelVersion},{label:"opengl_es",value:a.glEsVersion},{label:"uptime",value:w(a.uptime/1e3)}];const e=r.battery;V.value=[{label:"health",value:b(`battery_health.${e.health}`)},{label:"remaining",value:`${e.level}%`},{label:"status",value:b(`battery_status.${e.status}`)},{label:"power_source",value:b(`battery_plugged.${e.plugged}`)},{label:"technology",value:e.technology},{label:"temperature",value:`${e.temperature} ℃`},{label:"voltage",value:`${e.voltage} mV`},{label:"capacity",value:e.capacity+" mAh"}]}},document:T,appApi:!0}),(r,h)=>{const a=B("tooltip");return t(),s(i,null,[l("div",S,[l("div",j,o(r.$t("device_info")),1)]),l("div",C,[l("div",E,[l("div",null,[l("section",F,[l("h5",L,o(r.$t("device")),1),l("div",P,[(t(!0),s(i,null,u(y.value,(e,n)=>(t(),s("div",{class:"key-value",key:n},[l("div",Q,o(r.$t(e.label)),1),l("div",G,[e.isTime?m((t(),s("time",H,[d(o(c(f)(e.value)),1)])),[[a,c(k)(e.value)]]):Array.isArray(e.value)?(t(!0),s(i,{key:1},u(e.value,(v,_)=>(t(),s("div",{key:_},o(v),1))),128)):(t(),s(i,{key:2},[d(o(e.value),1)],64))])]))),128))])])]),l("div",null,[l("section",O,[l("h5",U,o(r.$t("system")),1),l("div",q,[(t(!0),s(i,null,u(g.value,(e,n)=>(t(),s("div",{class:"key-value",key:n},[l("div",z,o(r.$t(e.label)),1),l("div",J,[e.isTime?m((t(),s("time",K,[d(o(c(f)(e.value)),1)])),[[a,c(k)(e.value)]]):Array.isArray(e.value)?(t(!0),s(i,{key:1},u(e.value,(v,_)=>(t(),s("div",{key:_},o(v),1))),128)):(t(),s(i,{key:2},[d(o(e.value),1)],64))])]))),128))])])]),l("div",null,[l("section",M,[l("h5",R,o(r.$t("battery")),1),l("div",W,[(t(!0),s(i,null,u(V.value,(e,n)=>(t(),s("div",{class:"key-value",key:n},[l("div",X,o(r.$t(e.label)),1),l("div",Y,[e.isTime?m((t(),s("time",Z,[d(o(c(f)(e.value)),1)])),[[a,c(k)(e.value)]]):Array.isArray(e.value)?(t(!0),s(i,{key:1},u(e.value,(v,_)=>(t(),s("div",{key:_},o(v),1))),128)):(t(),s(i,{key:2},[d(o(e.value),1)],64))])]))),128))])])])])])],64)}}}),le=N(x,[["__scopeId","data-v-a1e944bb"]]);export{le as default}; +import{d as $,g as I,h as p,l as A,c as s,a as l,t as o,O as i,P as u,C as D,ab as w,b_ as T,S as B,o as t,x as m,m as c,ap as k,V as d,U as f,H as N}from"./index-R8dLcqG_.js";const S={class:"top-app-bar"},j={class:"title"},C={class:"scroll-content"},E={class:"grids"},F={class:"card"},L={class:"card-title"},P={class:"card-body"},Q={class:"key"},G={class:"value"},H={key:0,class:"time"},O={class:"card"},U={class:"card-title"},q={class:"card-body"},z={class:"key"},J={class:"value"},K={key:0,class:"time"},M={class:"card"},R={class:"card-title"},W={class:"card-body"},X={class:"key"},Y={class:"value"},Z={key:0,class:"time"},x=$({__name:"DeviceInfoView",setup(ee){const{t:b}=I(),y=p([]),g=p([]),V=p([]);return A({handle:(r,h)=>{if(h)D(b(h),"error");else{const a=r.deviceInfo;y.value=[{label:"device_name",value:a.deviceName},{label:"model",value:a.model},{label:"manufacturer",value:a.manufacturer},{label:"device",value:a.device},{label:"board",value:a.board},{label:"hardware",value:a.hardware},{label:"brand",value:a.buildBrand},{label:"build_fingerprint",value:a.fingerprint}],a.phoneNumbers.length>0&&y.value.push({label:"phone_number",value:a.phoneNumbers.map(n=>n.name+" "+n.number)}),g.value=[{label:"android_version",value:a.releaseBuildVersion+" ("+a.sdkVersion+")"},{label:"security_patch",value:a.securityPatch},{label:"bootloader",value:a.bootloader},{label:"build_number",value:a.displayVersion},{label:"baseband",value:a.radioVersion},{label:"java_vm",value:a.javaVmVersion},{label:"kernel",value:a.kernelVersion},{label:"opengl_es",value:a.glEsVersion},{label:"uptime",value:w(a.uptime/1e3)}];const e=r.battery;V.value=[{label:"health",value:b(`battery_health.${e.health}`)},{label:"remaining",value:`${e.level}%`},{label:"status",value:b(`battery_status.${e.status}`)},{label:"power_source",value:b(`battery_plugged.${e.plugged}`)},{label:"technology",value:e.technology},{label:"temperature",value:`${e.temperature} ℃`},{label:"voltage",value:`${e.voltage} mV`},{label:"capacity",value:e.capacity+" mAh"}]}},document:T,appApi:!0}),(r,h)=>{const a=B("tooltip");return t(),s(i,null,[l("div",S,[l("div",j,o(r.$t("device_info")),1)]),l("div",C,[l("div",E,[l("div",null,[l("section",F,[l("h5",L,o(r.$t("device")),1),l("div",P,[(t(!0),s(i,null,u(y.value,(e,n)=>(t(),s("div",{class:"key-value",key:n},[l("div",Q,o(r.$t(e.label)),1),l("div",G,[e.isTime?m((t(),s("time",H,[d(o(c(f)(e.value)),1)])),[[a,c(k)(e.value)]]):Array.isArray(e.value)?(t(!0),s(i,{key:1},u(e.value,(v,_)=>(t(),s("div",{key:_},o(v),1))),128)):(t(),s(i,{key:2},[d(o(e.value),1)],64))])]))),128))])])]),l("div",null,[l("section",O,[l("h5",U,o(r.$t("system")),1),l("div",q,[(t(!0),s(i,null,u(g.value,(e,n)=>(t(),s("div",{class:"key-value",key:n},[l("div",z,o(r.$t(e.label)),1),l("div",J,[e.isTime?m((t(),s("time",K,[d(o(c(f)(e.value)),1)])),[[a,c(k)(e.value)]]):Array.isArray(e.value)?(t(!0),s(i,{key:1},u(e.value,(v,_)=>(t(),s("div",{key:_},o(v),1))),128)):(t(),s(i,{key:2},[d(o(e.value),1)],64))])]))),128))])])]),l("div",null,[l("section",M,[l("h5",R,o(r.$t("battery")),1),l("div",W,[(t(!0),s(i,null,u(V.value,(e,n)=>(t(),s("div",{class:"key-value",key:n},[l("div",X,o(r.$t(e.label)),1),l("div",Y,[e.isTime?m((t(),s("time",Z,[d(o(c(f)(e.value)),1)])),[[a,c(k)(e.value)]]):Array.isArray(e.value)?(t(!0),s(i,{key:1},u(e.value,(v,_)=>(t(),s("div",{key:_},o(v),1))),128)):(t(),s(i,{key:2},[d(o(e.value),1)],64))])]))),128))])])])])])],64)}}}),le=N(x,[["__scopeId","data-v-a1e944bb"]]);export{le as default}; diff --git a/app/src/main/resources/web/assets/DevicesView-DzjDseA2.js b/app/src/main/resources/web/assets/DevicesView-C_LOeQ2V.js similarity index 92% rename from app/src/main/resources/web/assets/DevicesView-DzjDseA2.js rename to app/src/main/resources/web/assets/DevicesView-C_LOeQ2V.js index d2db4238..8b3469d1 100644 --- a/app/src/main/resources/web/assets/DevicesView-DzjDseA2.js +++ b/app/src/main/resources/web/assets/DevicesView-C_LOeQ2V.js @@ -1,4 +1,4 @@ -import{d as y,g as A,h as N,l as F,C as I,ac as r,cw as p,c as o,p as m,a as e,t as a,O as _,P as M,S as q,o as i,w as v,x as h,m as d,ap as f,V as $,U as D,Z as w,ad as B,j as E,a3 as S}from"./index-BzaaAwnX.js";import{_ as T}from"./Breadcrumb-Dw4cmHLf.js";import{E as O}from"./EditValueModal-Ws2hdG3a.js";import"./vee-validate.esm-DNjIRPsN.js";const U={class:"table-responsive"},j={class:"table"},L=e("th",null,"ID",-1),P={class:"actions one"},Q=["onClick"],Z={class:"nowrap"},z={class:"nowrap"},G={class:"actions one"},H=["onClick"],Y=y({__name:"DevicesView",setup(J){const{t:s}=A(),c=N([]);F({handle:(t,l)=>{l?I(s(l),"error"):c.value=[...t.devices]},document:r` +import{d as y,g as A,h as N,l as F,C as I,ac as r,cw as p,c as o,p as m,a as e,t as a,O as _,P as M,S as q,o as i,w as v,x as h,m as d,ap as f,V as $,U as D,Z as w,ad as B,j as E,a3 as S}from"./index-R8dLcqG_.js";import{_ as T}from"./Breadcrumb-CXy0PDtB.js";import{E as O}from"./EditValueModal-O1aAFYgx.js";import"./vee-validate.esm-vpr6zxQb.js";const U={class:"table-responsive"},j={class:"table"},L=e("th",null,"ID",-1),P={class:"actions one"},Q=["onClick"],Z={class:"nowrap"},z={class:"nowrap"},G={class:"actions one"},H=["onClick"],Y=y({__name:"DevicesView",setup(J){const{t:s}=A(),c=N([]);F({handle:(t,l)=>{l?I(s(l),"error"):c.value=[...t.devices]},document:r` query { devices { ...DeviceFragment diff --git a/app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-BN3_Xe4L.js b/app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-CKd0R4yf.js similarity index 92% rename from app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-BN3_Xe4L.js rename to app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-CKd0R4yf.js index c5c9f5f9..2b7c1e37 100644 --- a/app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-BN3_Xe4L.js +++ b/app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-CKd0R4yf.js @@ -1 +1 @@ -import{d as b,h as p,o,c as n,a as l,O as v,P as y,N as f,t as d}from"./index-BzaaAwnX.js";const h={class:"top-app-bar"},g={class:"v-tabs"},k=["onClick"],C={class:"actions"},V=["disabled"],_=b({__name:"EditToolbar",props:{modelValue:{type:Number,default:0},save:{type:Function},loading:{type:Boolean},tabs:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(t,{emit:r}){const u=r,i=p(t.modelValue);function m(e){i.value=e,u("update:modelValue",e)}return(e,c)=>(o(),n("div",h,[l("ul",g,[(o(!0),n(v,null,y(t.tabs,(a,s)=>(o(),n("li",{key:s,onClick:N=>m(s),class:f({active:i.value===s})},d(a.startsWith("t:")?e.$t(a.slice(2)):a),11,k))),128))]),l("div",C,[l("button",{type:"button",disabled:t.loading,class:"btn",onClick:c[0]||(c[0]=(...a)=>t.save&&t.save(...a))},d(e.$t(t.loading?"saving":"save")),9,V)])]))}});export{_}; +import{d as b,h as p,o,c as n,a as l,O as v,P as y,N as f,t as d}from"./index-R8dLcqG_.js";const h={class:"top-app-bar"},g={class:"v-tabs"},k=["onClick"],C={class:"actions"},V=["disabled"],_=b({__name:"EditToolbar",props:{modelValue:{type:Number,default:0},save:{type:Function},loading:{type:Boolean},tabs:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(t,{emit:r}){const u=r,i=p(t.modelValue);function m(e){i.value=e,u("update:modelValue",e)}return(e,c)=>(o(),n("div",h,[l("ul",g,[(o(!0),n(v,null,y(t.tabs,(a,s)=>(o(),n("li",{key:s,onClick:N=>m(s),class:f({active:i.value===s})},d(a.startsWith("t:")?e.$t(a.slice(2)):a),11,k))),128))]),l("div",C,[l("button",{type:"button",disabled:t.loading,class:"btn",onClick:c[0]||(c[0]=(...a)=>t.save&&t.save(...a))},d(e.$t(t.loading?"saving":"save")),9,V)])]))}});export{_}; diff --git a/app/src/main/resources/web/assets/EditValueModal-Ws2hdG3a.js b/app/src/main/resources/web/assets/EditValueModal-O1aAFYgx.js similarity index 92% rename from app/src/main/resources/web/assets/EditValueModal-Ws2hdG3a.js rename to app/src/main/resources/web/assets/EditValueModal-O1aAFYgx.js index e95e32b5..a3db6fb5 100644 --- a/app/src/main/resources/web/assets/EditValueModal-Ws2hdG3a.js +++ b/app/src/main/resources/web/assets/EditValueModal-O1aAFYgx.js @@ -1 +1 @@ -import{d as g,h as k,cm as x,au as S,af as F,av as p,o as v,c as f,a as n,t as u,x as M,y as q,m as e,z as C,A as E,e as $,V as B,H as D}from"./index-BzaaAwnX.js";import{u as N}from"./vee-validate.esm-DNjIRPsN.js";const R={slot:"headline"},T={slot:"content"},w=["placeholder","error","error-text"],A={slot:"actions"},K=["disabled"],z={key:0,indeterminate:"",slot:"icon"},H=g({__name:"EditValueModal",props:{getVariables:{type:Function,required:!0},title:{type:String,required:!0},placeholder:{type:String},value:{type:String},mutation:{type:Function,required:!0},done:{type:Function}},setup(r){const c=k(),s=r,{errors:d,handleSubmit:y,defineField:h}=N({validationSchema:x({name:S().required()}),initialValues:{name:s.value??""}}),[o]=h("name"),{mutate:V,loading:m,onDone:_}=s.mutation();o.value=s.value??"";function b(){p()}F(async()=>{setTimeout(()=>{var t;(t=c.value)==null||t.focus()},100)});const l=y(()=>{V(s.getVariables(o.value??""))});return _(()=>{var t;(t=s.done)==null||t.call(this,o.value),p()}),(t,a)=>(v(),f("md-dialog",null,[n("div",R,u(r.title),1),n("div",T,[M(n("md-outlined-text-field",{ref_key:"inputRef",ref:c,placeholder:r.placeholder,"onUpdate:modelValue":a[0]||(a[0]=i=>C(o)?o.value=i:null),onKeyup:a[1]||(a[1]=E((...i)=>e(l)&&e(l)(...i),["enter"])),error:e(d).name,"error-text":e(d).name?t.$t(e(d).name):""},null,40,w),[[q,e(o)]])]),n("div",A,[n("md-outlined-button",{value:"cancel",onClick:b},u(t.$t("cancel")),1),n("md-filled-button",{value:"save",disabled:e(m),onClick:a[2]||(a[2]=(...i)=>e(l)&&e(l)(...i)),autofocus:""},[e(m)?(v(),f("md-circular-progress",z)):$("",!0),B(u(t.$t("save")),1)],8,K)])]))}}),j=D(H,[["__scopeId","data-v-eb08b2c1"]]);export{j as E}; +import{d as g,h as k,cm as x,au as S,af as F,av as p,o as v,c as f,a as n,t as u,x as M,y as q,m as e,z as C,A as E,e as $,V as B,H as D}from"./index-R8dLcqG_.js";import{u as N}from"./vee-validate.esm-vpr6zxQb.js";const R={slot:"headline"},T={slot:"content"},w=["placeholder","error","error-text"],A={slot:"actions"},K=["disabled"],z={key:0,indeterminate:"",slot:"icon"},H=g({__name:"EditValueModal",props:{getVariables:{type:Function,required:!0},title:{type:String,required:!0},placeholder:{type:String},value:{type:String},mutation:{type:Function,required:!0},done:{type:Function}},setup(r){const c=k(),s=r,{errors:d,handleSubmit:y,defineField:h}=N({validationSchema:x({name:S().required()}),initialValues:{name:s.value??""}}),[o]=h("name"),{mutate:V,loading:m,onDone:_}=s.mutation();o.value=s.value??"";function b(){p()}F(async()=>{setTimeout(()=>{var t;(t=c.value)==null||t.focus()},100)});const l=y(()=>{V(s.getVariables(o.value??""))});return _(()=>{var t;(t=s.done)==null||t.call(this,o.value),p()}),(t,a)=>(v(),f("md-dialog",null,[n("div",R,u(r.title),1),n("div",T,[M(n("md-outlined-text-field",{ref_key:"inputRef",ref:c,placeholder:r.placeholder,"onUpdate:modelValue":a[0]||(a[0]=i=>C(o)?o.value=i:null),onKeyup:a[1]||(a[1]=E((...i)=>e(l)&&e(l)(...i),["enter"])),error:e(d).name,"error-text":e(d).name?t.$t(e(d).name):""},null,40,w),[[q,e(o)]])]),n("div",A,[n("md-outlined-button",{value:"cancel",onClick:b},u(t.$t("cancel")),1),n("md-filled-button",{value:"save",disabled:e(m),onClick:a[2]||(a[2]=(...i)=>e(l)&&e(l)(...i)),autofocus:""},[e(m)?(v(),f("md-circular-progress",z)):$("",!0),B(u(t.$t("save")),1)],8,K)])]))}}),j=D(H,[["__scopeId","data-v-eb08b2c1"]]);export{j as E}; diff --git a/app/src/main/resources/web/assets/FeedEntryView-HICAY_wi.js b/app/src/main/resources/web/assets/FeedEntryView-DJ7bOIIl.js similarity index 95% rename from app/src/main/resources/web/assets/FeedEntryView-HICAY_wi.js rename to app/src/main/resources/web/assets/FeedEntryView-DJ7bOIIl.js index e6edca07..084bc161 100644 --- a/app/src/main/resources/web/assets/FeedEntryView-HICAY_wi.js +++ b/app/src/main/resources/web/assets/FeedEntryView-DJ7bOIIl.js @@ -1 +1 @@ -import{o as n,c as a,a as o,d as te,g as se,h as b,s as ne,i as ae,K as oe,u as ie,j as A,C as $,l as ce,L as le,M as de,m as c,w as _,t as q,e as x,x as l,V as _e,p as d,Q as re,cP as ue,cM as pe,b9 as ve,cQ as me,a4 as ye,S as be,U as he,W as fe,F as ke,G as ge,Y as Te,f as Q,Z as we,$ as Ce,a1 as h,a2 as $e,cR as qe,H as xe}from"./index-BzaaAwnX.js";import{_ as Fe}from"./print-outline-rounded-B686mlM4.js";import{a as Le,_ as Ee}from"./add-notes-outline-rounded-CDQXzmCq.js";import{u as Me}from"./markdown-q_fHGBEX.js";import{u as De}from"./feeds-qiGOSRuI.js";const Se={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ne=o("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h6q.425 0 .713.288T12 4t-.288.713T11 5H5v14h14v-6q0-.425.288-.712T20 12t.713.288T21 13v6q0 .825-.587 1.413T19 21zM19 6.4L10.4 15q-.275.275-.7.275T9 15t-.275-.7t.275-.7L17.6 5H15q-.425 0-.712-.288T14 4t.288-.712T15 3h5q.425 0 .713.288T21 4v5q0 .425-.288.713T20 10t-.712-.288T19 9z"},null,-1),Ve=[Ne];function Ae(u,v){return n(),a("svg",Se,[...Ve])}const Qe={name:"material-symbols-open-in-new-rounded",render:Ae},r=u=>(ke("data-v-8cca54ab"),u=u(),ge(),u),He={class:"content"},Ge={key:0},Ie=Te('
',3),ze=[Ie],Be={key:1},Re={class:"top-app-bar"},Ue={class:"title"},Ke={key:1},Pe=r(()=>o("md-ripple",null,null,-1)),Ye={key:2,indeterminate:"",class:"spinner-sm"},je=["disabled"],We=r(()=>o("md-ripple",null,null,-1)),Ze=["href"],Je={class:"btn-icon sm"},Oe=r(()=>o("md-ripple",null,null,-1)),Xe=r(()=>o("md-ripple",null,null,-1)),et=r(()=>o("md-ripple",null,null,-1)),tt={class:"actions"},st=r(()=>o("md-ripple",null,null,-1)),nt={class:"article-title"},at=["innerHTML"],p="FEED_ENTRY",ot=te({__name:"FeedEntryView",setup(u){const{t:v}=se(),F=re(),f=b(F.params.id),s=b(),m=b(""),k=b(),{app:H,urlTokenKey:G}=ne(ae()),{render:L}=Me(H,G),{loading:I,fetch:g}=oe({handle:async(e,t)=>{t?$(v(t),"error"):(s.value=e.feedEntry,s.value?m.value=await L(e.feedEntry.content||e.feedEntry.description):m.value="")},document:ue,variables:()=>({id:f.value}),appApi:!0}),T=ie(),{viewFeed:z}=De(T);function B(){const e=F.query.q;e?Q(T,`/feeds?q=${e}`):Q(T,"/feeds")}const{mutate:R,loading:it,onDone:U}=A({document:pe,appApi:!0});U(()=>{$(v("saved"))}),ce({handle:(e,t)=>{t?$(v(t),"error"):e&&(k.value=e.tags)},document:ve,variables:{type:p},appApi:!0});const K=()=>{window.print()};function P(){var e,t;we(Ce,{type:p,tags:k.value,item:{key:(e=s.value)==null?void 0:e.id,title:"",size:0},selected:(t=k.value)==null?void 0:t.filter(w=>{var y;return(y=s.value)==null?void 0:y.tags.some(C=>C.id===w.id)})})}const{mutate:Y,loading:E,onDone:j}=A({document:me,appApi:!0});j(async e=>{const t=e.data;s.value=t.syncFeedContent,m.value=await L(t.syncFeedContent.content||t.syncFeedContent.description)});const W=()=>{Y({id:f.value})},M=e=>{e.type===p&&g()},D=e=>{e.type===p&&g()};return le(()=>{h.on("item_tags_updated",D),h.on("items_tags_updated",M),g()}),de(()=>{h.off("item_tags_updated",D),h.off("items_tags_updated",M)}),(e,t)=>{var S,N,V;const w=ye,y=$e,C=Le,Z=Qe,J=Ee,O=Fe,X=qe,i=be("tooltip");return n(),a("div",He,[c(I)&&!s.value?(n(),a("article",Ge,ze)):s.value?(n(),a("article",Be,[o("div",Re,[o("div",Ue,[s.value.feed?(n(),a("a",{key:0,onClick:t[0]||(t[0]=_(ee=>c(z)(s.value.feed),["stop","prevent"]))},q(s.value.feed.name),1)):x("",!0),s.value?l((n(),a("time",Ke,[_e(q(c(fe)(s.value.publishedAt)),1)])),[[i,c(he)(s.value.publishedAt)]]):x("",!0),d(w,{tags:(S=s.value)==null?void 0:S.tags,type:p},null,8,["tags"]),l((n(),a("button",{class:"btn-icon sm",onClick:_(P,["prevent"]),style:{"margin-inline-start":"16px"}},[Pe,d(y)])),[[i,e.$t("add_to_tags")]]),c(E)?(n(),a("md-circular-progress",Ye)):l((n(),a("button",{key:3,class:"btn-icon sm",disabled:c(E),onClick:_(W,["prevent"])},[We,d(C)],8,je)),[[i,e.$t("sync_content")]]),l((n(),a("a",{href:(N=s.value)==null?void 0:N.url,class:"btn-icon",target:"_blank"},[o("button",Je,[Oe,d(Z)])],8,Ze)),[[i,e.$t("view_original_article")]]),l((n(),a("button",{class:"btn-icon sm",onClick:t[1]||(t[1]=_(ee=>c(R)({query:`ids:${f.value}`}),["prevent"]))},[Xe,d(J)])),[[i,e.$t("save_to_notes")]]),l((n(),a("button",{class:"btn-icon sm",onClick:_(K,["prevent"])},[et,d(O)])),[[i,e.$t("print")]])]),o("div",tt,[l((n(),a("button",{class:"btn-icon",onClick:_(B,["prevent"])},[st,d(X)])),[[i,e.$t("close")]])])]),o("div",nt,q((V=s.value)==null?void 0:V.title),1),o("div",{class:"md-container",innerHTML:m.value},null,8,at)])):x("",!0)])}}}),ut=xe(ot,[["__scopeId","data-v-8cca54ab"]]);export{ut as default}; +import{o as n,c as a,a as o,d as te,g as se,h as b,s as ne,i as ae,K as oe,u as ie,j as A,C as $,l as ce,L as le,M as de,m as c,w as _,t as q,e as x,x as l,V as _e,p as d,Q as re,cP as ue,cM as pe,b9 as ve,cQ as me,a4 as ye,S as be,U as he,W as fe,F as ke,G as ge,Y as Te,f as Q,Z as we,$ as Ce,a1 as h,a2 as $e,cR as qe,H as xe}from"./index-R8dLcqG_.js";import{_ as Fe}from"./print-outline-rounded-wkAfaGzM.js";import{a as Le,_ as Ee}from"./add-notes-outline-rounded-CJxyoeFp.js";import{u as Me}from"./markdown-C_We2h-B.js";import{u as De}from"./feeds-bp5iUXJ_.js";const Se={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ne=o("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h6q.425 0 .713.288T12 4t-.288.713T11 5H5v14h14v-6q0-.425.288-.712T20 12t.713.288T21 13v6q0 .825-.587 1.413T19 21zM19 6.4L10.4 15q-.275.275-.7.275T9 15t-.275-.7t.275-.7L17.6 5H15q-.425 0-.712-.288T14 4t.288-.712T15 3h5q.425 0 .713.288T21 4v5q0 .425-.288.713T20 10t-.712-.288T19 9z"},null,-1),Ve=[Ne];function Ae(u,v){return n(),a("svg",Se,[...Ve])}const Qe={name:"material-symbols-open-in-new-rounded",render:Ae},r=u=>(ke("data-v-8cca54ab"),u=u(),ge(),u),He={class:"content"},Ge={key:0},Ie=Te('
',3),ze=[Ie],Be={key:1},Re={class:"top-app-bar"},Ue={class:"title"},Ke={key:1},Pe=r(()=>o("md-ripple",null,null,-1)),Ye={key:2,indeterminate:"",class:"spinner-sm"},je=["disabled"],We=r(()=>o("md-ripple",null,null,-1)),Ze=["href"],Je={class:"btn-icon sm"},Oe=r(()=>o("md-ripple",null,null,-1)),Xe=r(()=>o("md-ripple",null,null,-1)),et=r(()=>o("md-ripple",null,null,-1)),tt={class:"actions"},st=r(()=>o("md-ripple",null,null,-1)),nt={class:"article-title"},at=["innerHTML"],p="FEED_ENTRY",ot=te({__name:"FeedEntryView",setup(u){const{t:v}=se(),F=re(),f=b(F.params.id),s=b(),m=b(""),k=b(),{app:H,urlTokenKey:G}=ne(ae()),{render:L}=Me(H,G),{loading:I,fetch:g}=oe({handle:async(e,t)=>{t?$(v(t),"error"):(s.value=e.feedEntry,s.value?m.value=await L(e.feedEntry.content||e.feedEntry.description):m.value="")},document:ue,variables:()=>({id:f.value}),appApi:!0}),T=ie(),{viewFeed:z}=De(T);function B(){const e=F.query.q;e?Q(T,`/feeds?q=${e}`):Q(T,"/feeds")}const{mutate:R,loading:it,onDone:U}=A({document:pe,appApi:!0});U(()=>{$(v("saved"))}),ce({handle:(e,t)=>{t?$(v(t),"error"):e&&(k.value=e.tags)},document:ve,variables:{type:p},appApi:!0});const K=()=>{window.print()};function P(){var e,t;we(Ce,{type:p,tags:k.value,item:{key:(e=s.value)==null?void 0:e.id,title:"",size:0},selected:(t=k.value)==null?void 0:t.filter(w=>{var y;return(y=s.value)==null?void 0:y.tags.some(C=>C.id===w.id)})})}const{mutate:Y,loading:E,onDone:j}=A({document:me,appApi:!0});j(async e=>{const t=e.data;s.value=t.syncFeedContent,m.value=await L(t.syncFeedContent.content||t.syncFeedContent.description)});const W=()=>{Y({id:f.value})},M=e=>{e.type===p&&g()},D=e=>{e.type===p&&g()};return le(()=>{h.on("item_tags_updated",D),h.on("items_tags_updated",M),g()}),de(()=>{h.off("item_tags_updated",D),h.off("items_tags_updated",M)}),(e,t)=>{var S,N,V;const w=ye,y=$e,C=Le,Z=Qe,J=Ee,O=Fe,X=qe,i=be("tooltip");return n(),a("div",He,[c(I)&&!s.value?(n(),a("article",Ge,ze)):s.value?(n(),a("article",Be,[o("div",Re,[o("div",Ue,[s.value.feed?(n(),a("a",{key:0,onClick:t[0]||(t[0]=_(ee=>c(z)(s.value.feed),["stop","prevent"]))},q(s.value.feed.name),1)):x("",!0),s.value?l((n(),a("time",Ke,[_e(q(c(fe)(s.value.publishedAt)),1)])),[[i,c(he)(s.value.publishedAt)]]):x("",!0),d(w,{tags:(S=s.value)==null?void 0:S.tags,type:p},null,8,["tags"]),l((n(),a("button",{class:"btn-icon sm",onClick:_(P,["prevent"]),style:{"margin-inline-start":"16px"}},[Pe,d(y)])),[[i,e.$t("add_to_tags")]]),c(E)?(n(),a("md-circular-progress",Ye)):l((n(),a("button",{key:3,class:"btn-icon sm",disabled:c(E),onClick:_(W,["prevent"])},[We,d(C)],8,je)),[[i,e.$t("sync_content")]]),l((n(),a("a",{href:(N=s.value)==null?void 0:N.url,class:"btn-icon",target:"_blank"},[o("button",Je,[Oe,d(Z)])],8,Ze)),[[i,e.$t("view_original_article")]]),l((n(),a("button",{class:"btn-icon sm",onClick:t[1]||(t[1]=_(ee=>c(R)({query:`ids:${f.value}`}),["prevent"]))},[Xe,d(J)])),[[i,e.$t("save_to_notes")]]),l((n(),a("button",{class:"btn-icon sm",onClick:_(K,["prevent"])},[et,d(O)])),[[i,e.$t("print")]])]),o("div",tt,[l((n(),a("button",{class:"btn-icon",onClick:_(B,["prevent"])},[st,d(X)])),[[i,e.$t("close")]])])]),o("div",nt,q((V=s.value)==null?void 0:V.title),1),o("div",{class:"md-container",innerHTML:m.value},null,8,at)])):x("",!0)])}}}),ut=xe(ot,[["__scopeId","data-v-8cca54ab"]]);export{ut as default}; diff --git a/app/src/main/resources/web/assets/FeedsSidebar-4CfHj968.js b/app/src/main/resources/web/assets/FeedsSidebar-BolTRI-Q.js similarity index 94% rename from app/src/main/resources/web/assets/FeedsSidebar-4CfHj968.js rename to app/src/main/resources/web/assets/FeedsSidebar-BolTRI-Q.js index 747ab9da..71f44b83 100644 --- a/app/src/main/resources/web/assets/FeedsSidebar-4CfHj968.js +++ b/app/src/main/resources/web/assets/FeedsSidebar-BolTRI-Q.js @@ -1 +1 @@ -import{_ as ye}from"./LeftSidebar.vuevuetypescriptsetuptruelang-xn7lCt7t.js";import{a as be,_ as Ce}from"./TagFilter.vuevuetypescriptsetuptruelang-CUu0usUl.js";import{_ as Fe}from"./more-vert-BRJfC0iG.js";import{d as N,h as c,j as T,cD as we,au as W,aw as X,av as A,o as p,c as _,a as e,t as l,x as D,y as ee,m as o,z as te,A as oe,V as I,e as L,H as Ee,cE as Me,g as xe,u as Ae,s as Le,i as Ie,I as Se,K as Ve,k as Te,l as De,be as Qe,C as j,af as Re,a1 as S,ag as qe,v as Ge,q as Q,cF as Ne,a6 as J,a0 as Be,cG as He,cH as Ke,cI as Oe,S as Pe,p as R,P as Y,O as Z,w as V,N as q,Z as G,cJ as ze,f as Ue,ad as je}from"./index-BzaaAwnX.js";import{u as ne,a as se}from"./vee-validate.esm-DNjIRPsN.js";import{u as Je}from"./feeds-qiGOSRuI.js";import{u as Ye}from"./search-DwB6FdxH.js";import"./EditValueModal-Ws2hdG3a.js";const Ze={slot:"headline"},We={slot:"content"},Xe={class:"form-row"},et=["label","error","error-text"],tt={class:"form-row"},ot={class:"form-check-label"},nt=["checked"],st={slot:"actions"},at=["disabled"],lt={key:0,indeterminate:"",slot:"icon"},dt=N({__name:"AddFeedModal",props:{done:{type:Function}},setup(M){const{handleSubmit:b}=ne(),k=c(),i=c(!1);function x(t){i.value=t.target.checked}const v=M,{mutate:w,loading:C,onDone:F}=T({document:we,appApi:!0}),{value:d,resetField:f,errorMessage:u}=se("inputValue",W().required());f();function g(){A()}(async()=>{var t;await X(),(t=k.value)==null||t.focus()})();const h=b(()=>{w({url:d.value??"",fetchContent:i.value})});return F(()=>{var t;(t=v.done)==null||t.call(this),A()}),(t,a)=>(p(),_("md-dialog",null,[e("div",Ze,l(t.$t("add_subscription")),1),e("div",We,[e("div",Xe,[D(e("md-outlined-text-field",{ref_key:"inputRef",ref:k,label:t.$t("rss_url"),"onUpdate:modelValue":a[0]||(a[0]=m=>te(d)?d.value=m:null),onKeyup:a[1]||(a[1]=oe((...m)=>o(h)&&o(h)(...m),["enter"])),error:o(u),"error-text":o(u)?t.$t(o(u)):""},null,40,et),[[ee,o(d)]])]),e("div",tt,[e("label",ot,[e("md-checkbox",{"touch-target":"wrapper",onChange:x,checked:i.value},null,40,nt),I(" "+l(t.$t("fetch_content_automatically")),1)])])]),e("div",st,[e("md-outlined-button",{value:"cancel",onClick:g},l(t.$t("cancel")),1),e("md-filled-button",{value:"save",disabled:o(C),onClick:a[2]||(a[2]=(...m)=>o(h)&&o(h)(...m)),autofocus:""},[o(C)?(p(),_("md-circular-progress",lt)):L("",!0),I(" "+l(t.$t("save")),1)],8,at)])]))}}),it=Ee(dt,[["__scopeId","data-v-1e144d60"]]),rt={slot:"headline"},ut={slot:"content"},ct={class:"form-label"},pt={class:"form-row"},ft=["label","error","error-text"],mt={class:"form-row"},_t={class:"form-check-label"},vt=["checked"],ht={slot:"actions"},$t=["disabled"],kt={key:0,indeterminate:"",slot:"icon"},gt=N({__name:"FeedModal",props:{data:{type:Object}},setup(M){var g,h;const{handleSubmit:b}=ne(),k=c(),i=c(!1);function x(t){i.value=t.target.checked}const v=M,{mutate:w,loading:C,onDone:F}=T({document:Me,appApi:!0}),{value:d,errorMessage:f}=se("inputValue",W().required());d.value=((g=v.data)==null?void 0:g.name)??"",i.value=((h=v.data)==null?void 0:h.fetchContent)??!1,(async()=>{var t;await X(),(t=k.value)==null||t.focus()})();const u=b(()=>{var t;w({id:(t=v.data)==null?void 0:t.id,name:d.value,fetchContent:i.value})});return F(()=>{A()}),(t,a)=>{var m;return p(),_("md-dialog",null,[e("div",rt,l(t.$t("update_subscription")),1),e("div",ut,[e("div",ct,l((m=M.data)==null?void 0:m.url),1),e("div",pt,[D(e("md-outlined-text-field",{ref_key:"inputRef",ref:k,class:"form-control",label:t.$t("name"),error:o(f),"error-text":o(f)?t.$t(o(f)):"","onUpdate:modelValue":a[0]||(a[0]=$=>te(d)?d.value=$:null),onKeyup:a[1]||(a[1]=oe((...$)=>o(u)&&o(u)(...$),["enter"]))},null,40,ft),[[ee,o(d)]])]),e("div",mt,[e("label",_t,[e("md-checkbox",{"touch-target":"wrapper",onChange:x,checked:i.value},null,40,vt),I(" "+l(t.$t("fetch_content_automatically")),1)])])]),e("div",ht,[e("md-outlined-button",{value:"cancel",onClick:a[2]||(a[2]=(...$)=>o(A)&&o(A)(...$))},l(t.$t("cancel")),1),e("md-filled-button",{value:"save",disabled:o(C),onClick:a[3]||(a[3]=(...$)=>o(u)&&o(u)(...$)),autofocus:""},[o(C)?(p(),_("md-circular-progress",kt)):L("",!0),I(" "+l(t.$t("save")),1)],8,$t)])])}}}),yt=e("md-ripple",null,null,-1),bt=["open"],Ct=["onClick"],Ft={slot:"headline"},wt={class:"nav"},Et={class:"title"},Mt={key:0,class:"count"},xt={class:"title"},At={key:0,class:"count"},Lt=["onClick"],It={class:"title"},St=["id","onClick"],Vt=e("md-ripple",null,null,-1),Tt={key:0,class:"count"},Dt=["anchor","open"],Qt={slot:"headline"},Rt={slot:"headline"},zt=N({__name:"FeedsSidebar",setup(M){const{t:b}=xe(),k=Ae(),{counter:i}=Le(Ie()),{parseQ:x}=Ye(),v=Se({tagIds:[]}),w=c([]),C=[{text:"add_subscription",click:de},{text:"import_opml_file",click:pe},{text:"export_opml_file",click:fe}],F=c(!1),d=c(""),f=c(""),u=c(!1),g=c(),h=c(new Map),t=c(!1),a=c(),{fetch:m}=Ve({handle:n=>{n&&(i.value.feedEntries=n.total,i.value.feedEntriesToday=n.today,n.feedsCount.forEach(s=>{h.value.set(s.id,s.count)}))},document:Ne,variables:()=>({}),appApi:!0});function $(n){return h.value.get(n)??-1}function B(){var y;const n=J.currentRoute.value,s=Be(((y=n.query.q)==null?void 0:y.toString())??"");x(v,s),d.value=v.tagIds.length===1?v.tagIds[0]:"",f.value=v.feedId??"",u.value=v.today??!1,u.value?(d.value="",f.value=""):d.value&&f.value&&(d.value=""),m()}B(),Te(()=>J.currentRoute.value,()=>{B()});const{viewFeed:ae,viewAll:H,viewToday:K}=Je(k),{refetch:O}=De({handle:(n,s)=>{s?j(b(s),"error"):n&&(w.value=n.feeds)},document:He,appApi:!0});function le(n){const s=n.target.files;if(!s)return;const y=new FileReader;y.addEventListener("load",()=>{ue({content:y.result})},!1),y.readAsText(s[0])}function de(){G(it,{done:()=>{O()}})}const{mutate:ie,onDone:re}=T({document:Ke,appApi:!0});re(n=>{Qe(n.data.exportFeeds,"application/xml","feeds.xml")});const{mutate:ue,onDone:ce}=T({document:Oe,appApi:!0});ce(()=>{j(b("imported")),O()});function pe(){g.value.value="",g.value.click()}function fe(){ie()}function me(n){a.value=n,t.value=!0}function _e(n){G(gt,{data:n})}function ve(n){G(je,{id:n.id,name:n.name,gql:ze,appApi:!0,typeName:"Feed",done:()=>{Ue(k,"/feeds")}})}const P=()=>{m()},z=()=>{m()};return Re(()=>{S.on("feed_entries_deleted",P),S.on("feeds_fetched",z)}),qe(()=>{S.off("feed_entries_deleted",P),S.off("feeds_fetched",z)}),(n,s)=>{const y=be,he=Fe,$e=Ce,ke=ye,U=Pe("tooltip");return p(),Ge(ke,null,{title:Q(()=>[I(l(n.$t("page_title.feeds")),1)]),actions:Q(()=>[D((p(),_("button",{class:"btn-icon",id:"add-feed-ref",onClick:s[0]||(s[0]=()=>F.value=!0)},[yt,R(y)])),[[U,o(b)("add_subscription")]]),e("md-menu",{anchor:"add-feed-ref",positioning:"fixed","stay-open-on-focusout":"",quick:"",open:F.value,onClosed:s[1]||(s[1]=()=>F.value=!1)},[(p(),_(Z,null,Y(C,E=>e("md-menu-item",{key:E.text,onClick:E.click},[e("div",Ft,l(n.$t(E.text)),1)],8,Ct)),64))],40,bt)]),body:Q(()=>{var E;return[e("ul",wt,[e("li",{onClick:s[2]||(s[2]=V((...r)=>o(H)&&o(H)(...r),["prevent"])),class:q({active:!u.value&&!d.value&&!f.value})},[e("span",Et,l(n.$t("all")),1),o(i).feedEntries>=0?(p(),_("span",Mt,l(o(i).feedEntries.toLocaleString()),1)):L("",!0)],2),e("li",{onClick:s[3]||(s[3]=V((...r)=>o(K)&&o(K)(...r),["prevent"])),class:q({active:u.value})},[e("span",xt,l(n.$t("today")),1),o(i).feedEntriesToday>=0?(p(),_("span",At,l(o(i).feedEntriesToday.toLocaleString()),1)):L("",!0)],2),(p(!0),_(Z,null,Y(w.value,r=>(p(),_("li",{key:r.id,onClick:V(ge=>o(ae)(r),["stop","prevent"]),class:q({active:f.value&&r.id===f.value})},[e("span",It,l(r.name),1),D((p(),_("button",{id:"feed-"+r.id,class:"btn-icon sm",onClick:V(ge=>me(r),["prevent","stop"])},[Vt,R(he)],8,St)),[[U,n.$t("actions")]]),$(r.id)>=0?(p(),_("span",Tt,l($(r.id).toLocaleString()),1)):L("",!0)],10,Lt))),128))]),e("md-menu",{positioning:"popover",anchor:"feed-"+((E=a.value)==null?void 0:E.id),"stay-open-on-focusout":"",quick:"",open:t.value,onClosed:s[6]||(s[6]=r=>t.value=!1)},[e("md-menu-item",{onClick:s[4]||(s[4]=r=>_e(a.value))},[e("div",Qt,l(n.$t("edit")),1)]),e("md-menu-item",{onClick:s[5]||(s[5]=r=>ve(a.value))},[e("div",Rt,l(n.$t("delete")),1)])],40,Dt),R($e,{type:"FEED_ENTRY",selected:d.value},null,8,["selected"]),e("input",{ref_key:"fileInput",ref:g,style:{display:"none"},accept:".xml",type:"file",onChange:le},null,544)]}),_:1})}}});export{zt as default}; +import{_ as ye}from"./LeftSidebar.vuevuetypescriptsetuptruelang-BWG8gajF.js";import{a as be,_ as Ce}from"./TagFilter.vuevuetypescriptsetuptruelang-DySu9lzm.js";import{_ as Fe}from"./more-vert-zjmMMiPD.js";import{d as N,h as c,j as T,cD as we,au as W,aw as X,av as A,o as p,c as _,a as e,t as l,x as D,y as ee,m as o,z as te,A as oe,V as I,e as L,H as Ee,cE as Me,g as xe,u as Ae,s as Le,i as Ie,I as Se,K as Ve,k as Te,l as De,be as Qe,C as j,af as Re,a1 as S,ag as qe,v as Ge,q as Q,cF as Ne,a6 as J,a0 as Be,cG as He,cH as Ke,cI as Oe,S as Pe,p as R,P as Y,O as Z,w as V,N as q,Z as G,cJ as ze,f as Ue,ad as je}from"./index-R8dLcqG_.js";import{u as ne,a as se}from"./vee-validate.esm-vpr6zxQb.js";import{u as Je}from"./feeds-bp5iUXJ_.js";import{u as Ye}from"./search-ByVbj6Ls.js";import"./EditValueModal-O1aAFYgx.js";const Ze={slot:"headline"},We={slot:"content"},Xe={class:"form-row"},et=["label","error","error-text"],tt={class:"form-row"},ot={class:"form-check-label"},nt=["checked"],st={slot:"actions"},at=["disabled"],lt={key:0,indeterminate:"",slot:"icon"},dt=N({__name:"AddFeedModal",props:{done:{type:Function}},setup(M){const{handleSubmit:b}=ne(),k=c(),i=c(!1);function x(t){i.value=t.target.checked}const v=M,{mutate:w,loading:C,onDone:F}=T({document:we,appApi:!0}),{value:d,resetField:f,errorMessage:u}=se("inputValue",W().required());f();function g(){A()}(async()=>{var t;await X(),(t=k.value)==null||t.focus()})();const h=b(()=>{w({url:d.value??"",fetchContent:i.value})});return F(()=>{var t;(t=v.done)==null||t.call(this),A()}),(t,a)=>(p(),_("md-dialog",null,[e("div",Ze,l(t.$t("add_subscription")),1),e("div",We,[e("div",Xe,[D(e("md-outlined-text-field",{ref_key:"inputRef",ref:k,label:t.$t("rss_url"),"onUpdate:modelValue":a[0]||(a[0]=m=>te(d)?d.value=m:null),onKeyup:a[1]||(a[1]=oe((...m)=>o(h)&&o(h)(...m),["enter"])),error:o(u),"error-text":o(u)?t.$t(o(u)):""},null,40,et),[[ee,o(d)]])]),e("div",tt,[e("label",ot,[e("md-checkbox",{"touch-target":"wrapper",onChange:x,checked:i.value},null,40,nt),I(" "+l(t.$t("fetch_content_automatically")),1)])])]),e("div",st,[e("md-outlined-button",{value:"cancel",onClick:g},l(t.$t("cancel")),1),e("md-filled-button",{value:"save",disabled:o(C),onClick:a[2]||(a[2]=(...m)=>o(h)&&o(h)(...m)),autofocus:""},[o(C)?(p(),_("md-circular-progress",lt)):L("",!0),I(" "+l(t.$t("save")),1)],8,at)])]))}}),it=Ee(dt,[["__scopeId","data-v-1e144d60"]]),rt={slot:"headline"},ut={slot:"content"},ct={class:"form-label"},pt={class:"form-row"},ft=["label","error","error-text"],mt={class:"form-row"},_t={class:"form-check-label"},vt=["checked"],ht={slot:"actions"},$t=["disabled"],kt={key:0,indeterminate:"",slot:"icon"},gt=N({__name:"FeedModal",props:{data:{type:Object}},setup(M){var g,h;const{handleSubmit:b}=ne(),k=c(),i=c(!1);function x(t){i.value=t.target.checked}const v=M,{mutate:w,loading:C,onDone:F}=T({document:Me,appApi:!0}),{value:d,errorMessage:f}=se("inputValue",W().required());d.value=((g=v.data)==null?void 0:g.name)??"",i.value=((h=v.data)==null?void 0:h.fetchContent)??!1,(async()=>{var t;await X(),(t=k.value)==null||t.focus()})();const u=b(()=>{var t;w({id:(t=v.data)==null?void 0:t.id,name:d.value,fetchContent:i.value})});return F(()=>{A()}),(t,a)=>{var m;return p(),_("md-dialog",null,[e("div",rt,l(t.$t("update_subscription")),1),e("div",ut,[e("div",ct,l((m=M.data)==null?void 0:m.url),1),e("div",pt,[D(e("md-outlined-text-field",{ref_key:"inputRef",ref:k,class:"form-control",label:t.$t("name"),error:o(f),"error-text":o(f)?t.$t(o(f)):"","onUpdate:modelValue":a[0]||(a[0]=$=>te(d)?d.value=$:null),onKeyup:a[1]||(a[1]=oe((...$)=>o(u)&&o(u)(...$),["enter"]))},null,40,ft),[[ee,o(d)]])]),e("div",mt,[e("label",_t,[e("md-checkbox",{"touch-target":"wrapper",onChange:x,checked:i.value},null,40,vt),I(" "+l(t.$t("fetch_content_automatically")),1)])])]),e("div",ht,[e("md-outlined-button",{value:"cancel",onClick:a[2]||(a[2]=(...$)=>o(A)&&o(A)(...$))},l(t.$t("cancel")),1),e("md-filled-button",{value:"save",disabled:o(C),onClick:a[3]||(a[3]=(...$)=>o(u)&&o(u)(...$)),autofocus:""},[o(C)?(p(),_("md-circular-progress",kt)):L("",!0),I(" "+l(t.$t("save")),1)],8,$t)])])}}}),yt=e("md-ripple",null,null,-1),bt=["open"],Ct=["onClick"],Ft={slot:"headline"},wt={class:"nav"},Et={class:"title"},Mt={key:0,class:"count"},xt={class:"title"},At={key:0,class:"count"},Lt=["onClick"],It={class:"title"},St=["id","onClick"],Vt=e("md-ripple",null,null,-1),Tt={key:0,class:"count"},Dt=["anchor","open"],Qt={slot:"headline"},Rt={slot:"headline"},zt=N({__name:"FeedsSidebar",setup(M){const{t:b}=xe(),k=Ae(),{counter:i}=Le(Ie()),{parseQ:x}=Ye(),v=Se({tagIds:[]}),w=c([]),C=[{text:"add_subscription",click:de},{text:"import_opml_file",click:pe},{text:"export_opml_file",click:fe}],F=c(!1),d=c(""),f=c(""),u=c(!1),g=c(),h=c(new Map),t=c(!1),a=c(),{fetch:m}=Ve({handle:n=>{n&&(i.value.feedEntries=n.total,i.value.feedEntriesToday=n.today,n.feedsCount.forEach(s=>{h.value.set(s.id,s.count)}))},document:Ne,variables:()=>({}),appApi:!0});function $(n){return h.value.get(n)??-1}function B(){var y;const n=J.currentRoute.value,s=Be(((y=n.query.q)==null?void 0:y.toString())??"");x(v,s),d.value=v.tagIds.length===1?v.tagIds[0]:"",f.value=v.feedId??"",u.value=v.today??!1,u.value?(d.value="",f.value=""):d.value&&f.value&&(d.value=""),m()}B(),Te(()=>J.currentRoute.value,()=>{B()});const{viewFeed:ae,viewAll:H,viewToday:K}=Je(k),{refetch:O}=De({handle:(n,s)=>{s?j(b(s),"error"):n&&(w.value=n.feeds)},document:He,appApi:!0});function le(n){const s=n.target.files;if(!s)return;const y=new FileReader;y.addEventListener("load",()=>{ue({content:y.result})},!1),y.readAsText(s[0])}function de(){G(it,{done:()=>{O()}})}const{mutate:ie,onDone:re}=T({document:Ke,appApi:!0});re(n=>{Qe(n.data.exportFeeds,"application/xml","feeds.xml")});const{mutate:ue,onDone:ce}=T({document:Oe,appApi:!0});ce(()=>{j(b("imported")),O()});function pe(){g.value.value="",g.value.click()}function fe(){ie()}function me(n){a.value=n,t.value=!0}function _e(n){G(gt,{data:n})}function ve(n){G(je,{id:n.id,name:n.name,gql:ze,appApi:!0,typeName:"Feed",done:()=>{Ue(k,"/feeds")}})}const P=()=>{m()},z=()=>{m()};return Re(()=>{S.on("feed_entries_deleted",P),S.on("feeds_fetched",z)}),qe(()=>{S.off("feed_entries_deleted",P),S.off("feeds_fetched",z)}),(n,s)=>{const y=be,he=Fe,$e=Ce,ke=ye,U=Pe("tooltip");return p(),Ge(ke,null,{title:Q(()=>[I(l(n.$t("page_title.feeds")),1)]),actions:Q(()=>[D((p(),_("button",{class:"btn-icon",id:"add-feed-ref",onClick:s[0]||(s[0]=()=>F.value=!0)},[yt,R(y)])),[[U,o(b)("add_subscription")]]),e("md-menu",{anchor:"add-feed-ref",positioning:"fixed","stay-open-on-focusout":"",quick:"",open:F.value,onClosed:s[1]||(s[1]=()=>F.value=!1)},[(p(),_(Z,null,Y(C,E=>e("md-menu-item",{key:E.text,onClick:E.click},[e("div",Ft,l(n.$t(E.text)),1)],8,Ct)),64))],40,bt)]),body:Q(()=>{var E;return[e("ul",wt,[e("li",{onClick:s[2]||(s[2]=V((...r)=>o(H)&&o(H)(...r),["prevent"])),class:q({active:!u.value&&!d.value&&!f.value})},[e("span",Et,l(n.$t("all")),1),o(i).feedEntries>=0?(p(),_("span",Mt,l(o(i).feedEntries.toLocaleString()),1)):L("",!0)],2),e("li",{onClick:s[3]||(s[3]=V((...r)=>o(K)&&o(K)(...r),["prevent"])),class:q({active:u.value})},[e("span",xt,l(n.$t("today")),1),o(i).feedEntriesToday>=0?(p(),_("span",At,l(o(i).feedEntriesToday.toLocaleString()),1)):L("",!0)],2),(p(!0),_(Z,null,Y(w.value,r=>(p(),_("li",{key:r.id,onClick:V(ge=>o(ae)(r),["stop","prevent"]),class:q({active:f.value&&r.id===f.value})},[e("span",It,l(r.name),1),D((p(),_("button",{id:"feed-"+r.id,class:"btn-icon sm",onClick:V(ge=>me(r),["prevent","stop"])},[Vt,R(he)],8,St)),[[U,n.$t("actions")]]),$(r.id)>=0?(p(),_("span",Tt,l($(r.id).toLocaleString()),1)):L("",!0)],10,Lt))),128))]),e("md-menu",{positioning:"popover",anchor:"feed-"+((E=a.value)==null?void 0:E.id),"stay-open-on-focusout":"",quick:"",open:t.value,onClosed:s[6]||(s[6]=r=>t.value=!1)},[e("md-menu-item",{onClick:s[4]||(s[4]=r=>_e(a.value))},[e("div",Qt,l(n.$t("edit")),1)]),e("md-menu-item",{onClick:s[5]||(s[5]=r=>ve(a.value))},[e("div",Rt,l(n.$t("delete")),1)])],40,Dt),R($e,{type:"FEED_ENTRY",selected:d.value},null,8,["selected"]),e("input",{ref_key:"fileInput",ref:g,style:{display:"none"},accept:".xml",type:"file",onChange:le},null,544)]}),_:1})}}});export{zt as default}; diff --git a/app/src/main/resources/web/assets/FeedsSidebar2-CfQzzU05.js b/app/src/main/resources/web/assets/FeedsSidebar2-ARS0K567.js similarity index 93% rename from app/src/main/resources/web/assets/FeedsSidebar2-CfQzzU05.js rename to app/src/main/resources/web/assets/FeedsSidebar2-ARS0K567.js index 17e63551..ba294d06 100644 --- a/app/src/main/resources/web/assets/FeedsSidebar2-CfQzzU05.js +++ b/app/src/main/resources/web/assets/FeedsSidebar2-ARS0K567.js @@ -1 +1 @@ -import{_ as Ge}from"./more-vert-BRJfC0iG.js";import{g as _e,h as S,K as pe,C as D,cK as Ke,d as xe,u as He,s as We,i as Pe,I as je,J as Oe,aH as ne,j as le,L as Ye,M as Je,c as l,a as t,m as e,t as v,O as ce,x as E,w as m,p as r,e as A,P as Xe,v as Ze,q as ie,n as es,Q as ss,a1 as h,cL as ts,cM as os,cN as as,cO as ns,S as ls,o as a,N as cs,U as is,V as ds,W as rs,aC as us,bj as _s,X as ps,F as vs,G as ms,Y as hs,a6 as de,ch as fs,f as re,a0 as gs,ae as ks,a2 as ys,a3 as bs,a4 as ws,H as Ss}from"./index-BzaaAwnX.js";import{_ as $s,a as Cs}from"./SearchInput-DTMVECJE.js";import{_ as Ts,a as Ls}from"./add-notes-outline-rounded-CDQXzmCq.js";import{u as Is}from"./feeds-qiGOSRuI.js";import{u as qs,b as Fs,a as Es}from"./key-events-C5OjC_dP.js";import{a as As}from"./tags-BvnEKqTV.js";import{u as Ds}from"./search-DwB6FdxH.js";import"./search-rounded-Btuwf-IQ.js";import"./rss-feed-rounded-9FbiHzkN.js";import"./vee-validate.esm-DNjIRPsN.js";const Ms=(u,_,$)=>{const{t:C}=_e(),g=S(1),M=100,i=S(!1),{loading:T,fetch:Q}=pe({handle:(k,L)=>{if(L)D(C(L),"error");else if(k){k.items.length({offset:(g.value-1)*M,limit:M,query:_.value}),appApi:!0});return{page:g,noMore:i,loading:T,fetch:Q,loadMore:()=>{i.value||T.value||g.value++}}},f=u=>(vs("data-v-c75d0d53"),u=u(),ms(),u),Ns={class:"top-app-bar"},Qs=["checked","indeterminate"],Us={class:"title"},Vs={key:0},Rs={key:1},zs=f(()=>t("md-ripple",null,null,-1)),Bs=f(()=>t("md-ripple",null,null,-1)),Gs={key:0,indeterminate:"",class:"spinner-sm"},Ks=f(()=>t("md-ripple",null,null,-1)),xs={class:"actions"},Hs={key:0,indeterminate:"",class:"spinner-sm"},Ws=["disabled"],Ps=f(()=>t("md-ripple",null,null,-1)),js={key:0,class:"scroller"},Os=hs('
',1),Ys={class:"subtitle"},Js={class:"number"},Xs=f(()=>t("div",{class:"info"},[t("div",{class:"skeleton-text skeleton-info"})],-1)),Zs=f(()=>t("div",{class:"image"},[t("div",{class:"skeleton-image"})],-1)),et=["href"],st=["onClick","onMouseover"],tt={class:"title"},ot=["onClick","checked"],at=["onClick","checked"],nt={class:"text"},lt={class:"subtitle"},ct={class:"number"},it={class:"info"},dt=["onClick"],rt=f(()=>t("span",null,"·",-1)),ut={class:"time"},_t={class:"btn-icon sm",style:{display:"none"}},pt=f(()=>t("md-ripple",null,null,-1)),vt=["src"],mt={key:0,indeterminate:"",class:"spinner-sm"},ht={key:2,class:"no-data-placeholder"},ue=100,ft=xe({__name:"FeedsSidebar2",setup(u){var oe;const _=He(),{feedsSyncing:$}=We(Pe()),{t:C}=_e(),g=je({tagIds:[]}),{parseQ:M}=Ds(),i=Oe.FEED_ENTRY,T=ss(),Q=T.query,k=S(parseInt(((oe=Q.page)==null?void 0:oe.toString())??"1")),L=S([]),I=S([]),z=ne(()=>{const s={};return I.value.forEach(o=>{s[o.id]=o}),s}),y=S([]),b=S(""),{selectedIds:d,allChecked:B,realAllChecked:q,selectRealAll:ve,allCheckedAlertVisible:me,clearSelection:U,toggleAllChecked:G,toggleSelect:K,total:w,checked:x,shiftEffectingIds:H,handleItemClick:he,handleMouseOver:fe,selectAll:ge,shouldSelect:ke}=qs(y),ye=s=>{k.value=s;const o=T.query.q;re(_,o?`/feeds?page=${s}&q=${o}`:`/feeds?page=${s}`)},{keyDown:W,keyUp:P}=Es(w,ue,k,ge,U,ye,()=>{Y(d.value,q.value,w.value,b.value)}),{page:j,loading:R,loadMore:be,fetch:we,noMore:O}=Ms(y,b,w),{addToTags:Se}=As(i,L),N=()=>{j.value=1,we()},{deleteItems:Y}=Fs(ts,()=>{U(),N(),y.value.some(s=>s.tags.length)&&h.emit("refetch_tags",i),h.emit("feed_entries_deleted")}),$e=ne(()=>de.currentRoute.value.path!=="/feeds"),{resizeWidth:J}=fs(300,()=>_.sidebar2Width,s=>{_.sidebar2Width=s}),{mutate:X,loading:Ce,onDone:Te}=le({document:os,appApi:!0});function Le(){if(q)X({query:b.value});else{if(d.value.length===0){D(C("select_first"),"error");return}X({query:`ids:${d.value.join(",")}`})}}Te(()=>{D(C("saved"))});function Ie(s){return s?`/feeds?q=${s}`:"/feeds"}const{fetch:qe}=pe({handle:async(s,o)=>{o?D(C(o),"error"):s&&(L.value=s.tags,I.value=s.feeds)},document:as,variables:{type:i},appApi:!0});function Z(s){const o=de.currentRoute.value.query.q;return o?`/feeds/${s.feedId}/entries/${s.id}?q=${o}`:`/feeds/${s.feedId}/entries/${s.id}`}function Fe(s){re(_,Z(s))}const{viewFeed:Ee}=Is(_),{mutate:Ae}=le({document:ns,appApi:!0});function De(){$.value=!0,Ae({id:""})}const ee=s=>{$.value=!1,N(),s.error?D(s.error,"error"):D(C("feeds_synced"))},se=s=>{s.type===i&&(U(),N())},te=s=>{s.type===i&&N()};return Ye(()=>{var o,V;const s=(o=document.getElementsByClassName("scroller"))==null?void 0:o[0];s&&(s.scrollTop=0),b.value=gs(((V=Q.q)==null?void 0:V.toString())??""),M(g,b.value),qe(),N(),h.on("item_tags_updated",te),h.on("items_tags_updated",se),h.on("feeds_fetched",ee),window.addEventListener("keydown",W),window.addEventListener("keyup",P)}),Je(()=>{j.value=1,O.value=!1,h.off("item_tags_updated",te),h.off("items_tags_updated",se),h.off("feeds_fetched",ee),window.removeEventListener("keydown",W),window.removeEventListener("keyup",P)}),(s,o)=>{const V=ks,Me=ys,Ne=Ts,Qe=$s,Ue=Ls,Ve=Cs,Re=bs,ze=ws,Be=Ge,F=ls("tooltip");return a(),l("aside",{class:"sidebar2",style:es({width:e(T).params.id?e(_).sidebar2Width+"px":"auto"})},[t("div",Ns,[t("md-checkbox",{"touch-target":"wrapper",onChange:o[0]||(o[0]=(...c)=>e(G)&&e(G)(...c)),checked:e(B),indeterminate:!e(B)&&e(x)},null,40,Qs),t("div",Us,[e(d).length?(a(),l("span",Vs,v(s.$t("x_selected",{count:e(q)?e(w).toLocaleString():e(d).length.toLocaleString()})),1)):(a(),l("span",Rs,v(s.$t("page_title.feeds"))+" ("+v(e(w).toLocaleString())+")",1)),e(x)?(a(),l(ce,{key:2},[E((a(),l("button",{class:"btn-icon",onClick:o[1]||(o[1]=m(c=>e(Y)(e(d),e(q),e(w),b.value),["stop"]))},[zs,r(V)])),[[F,s.$t("delete")]]),E((a(),l("button",{class:"btn-icon",onClick:o[2]||(o[2]=m(c=>e(Se)(e(d),e(q),b.value),["stop"]))},[Bs,r(Me)])),[[F,s.$t("add_to_tags")]]),e(Ce)?(a(),l("md-circular-progress",Gs)):E((a(),l("button",{key:1,class:"btn-icon sm",onClick:m(Le,["prevent"])},[Ks,r(Ne)])),[[F,s.$t("save_to_notes")]])],64)):A("",!0)]),t("div",xs,[r(Qe,{filter:g,tags:L.value,feeds:I.value,"show-chips":!$e.value,"get-url":Ie,"show-today":!0},null,8,["filter","tags","feeds","show-chips"]),e($)?(a(),l("md-circular-progress",Hs)):E((a(),l("button",{key:1,class:"btn-icon",disabled:e($),onClick:m(De,["prevent"])},[Ps,r(Ue)],8,Ws)),[[F,s.$t("sync_feeds")]])])]),r(Ve,{limit:ue,total:e(w),"all-checked-alert-visible":e(me),"real-all-checked":e(q),"select-real-all":e(ve),"clear-selection":e(U)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),e(R)&&y.value.length===0?(a(),l("div",js,[(a(),l(ce,null,Xe(20,c=>t("section",{class:"feed-item selectable-card-skeleton",key:c},[Os,t("div",Ys,[t("span",Js,v(c),1),Xs]),Zs])),64))])):A("",!0),y.value.length>0?(a(),Ze(e(_s),{key:1,class:"scroller","data-key":"id","data-sources":y.value,"estimate-size":100,onTobottom:e(be)},{item:ie(({index:c,item:n})=>{var ae;return[t("a",{class:"item-link",href:Z(n)},[t("article",{class:cs(["feed-item selectable-card",{selected:e(d).includes(n.id)||n.id==s.$route.params.id,selecting:e(H).includes(n.id)}]),onClick:m(p=>e(he)(p,n,c,()=>{Fe(n)}),["stop","prevent"]),onMouseover:p=>e(fe)(p,c)},[t("div",tt,[e(H).includes(n.id)?(a(),l("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:m(p=>e(K)(p,n,c),["stop"]),checked:e(ke)},null,8,ot)):(a(),l("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:m(p=>e(K)(p,n,c),["stop"]),checked:e(d).includes(n.id)},null,8,at)),t("div",nt,v(n.title||s.$t("no_content")),1)]),t("div",lt,[t("span",ct,[r(Re,{id:c+1,raw:n},null,8,["id","raw"])]),t("div",it,[t("a",{onClick:m(p=>e(Ee)(z.value[n.feedId]),["stop","prevent"])},v((ae=z.value[n.feedId])==null?void 0:ae.name),9,dt),rt,E((a(),l("span",ut,[ds(v(e(rs)(n.publishedAt)),1)])),[[F,e(is)(n.publishedAt)]]),r(ze,{tags:n.tags,type:e(i),"only-links":!0},null,8,["tags","type"])])]),E((a(),l("button",_t,[pt,r(Be)])),[[F,s.$t("actions")]]),n.image?(a(),l("img",{key:0,class:"image",src:e(us)(n.image,"&w=200&h=200")},null,8,vt)):A("",!0)],42,st)],8,et)]}),footer:ie(()=>[e(O)?A("",!0):(a(),l("md-circular-progress",mt))]),_:1},8,["data-sources","onTobottom"])):A("",!0),!e(R)&&y.value.length===0?(a(),l("div",ht,v(s.$t(e(ps)(e(R)))),1)):A("",!0),t("div",{class:"sidebar-drag-indicator",onMousedown:o[3]||(o[3]=(...c)=>e(J)&&e(J)(...c))},null,32)],4)}}}),qt=Ss(ft,[["__scopeId","data-v-c75d0d53"]]);export{qt as default}; +import{_ as Ge}from"./more-vert-zjmMMiPD.js";import{g as _e,h as S,K as pe,C as D,cK as Ke,d as xe,u as He,s as We,i as Pe,I as je,J as Oe,aH as ne,j as le,L as Ye,M as Je,c as l,a as t,m as e,t as v,O as ce,x as E,w as m,p as r,e as A,P as Xe,v as Ze,q as ie,n as es,Q as ss,a1 as h,cL as ts,cM as os,cN as as,cO as ns,S as ls,o as a,N as cs,U as is,V as ds,W as rs,aC as us,bj as _s,X as ps,F as vs,G as ms,Y as hs,a6 as de,ch as fs,f as re,a0 as gs,ae as ks,a2 as ys,a3 as bs,a4 as ws,H as Ss}from"./index-R8dLcqG_.js";import{_ as $s,a as Cs}from"./SearchInput-DhaE-3h8.js";import{_ as Ts,a as Ls}from"./add-notes-outline-rounded-CJxyoeFp.js";import{u as Is}from"./feeds-bp5iUXJ_.js";import{u as qs,b as Fs,a as Es}from"./key-events-BNCM8SMB.js";import{a as As}from"./tags-Dbpv368M.js";import{u as Ds}from"./search-ByVbj6Ls.js";import"./search-rounded-CULEMJ2O.js";import"./rss-feed-rounded-BCiGdgJ5.js";import"./vee-validate.esm-vpr6zxQb.js";const Ms=(u,_,$)=>{const{t:C}=_e(),g=S(1),M=100,i=S(!1),{loading:T,fetch:Q}=pe({handle:(k,L)=>{if(L)D(C(L),"error");else if(k){k.items.length({offset:(g.value-1)*M,limit:M,query:_.value}),appApi:!0});return{page:g,noMore:i,loading:T,fetch:Q,loadMore:()=>{i.value||T.value||g.value++}}},f=u=>(vs("data-v-c75d0d53"),u=u(),ms(),u),Ns={class:"top-app-bar"},Qs=["checked","indeterminate"],Us={class:"title"},Vs={key:0},Rs={key:1},zs=f(()=>t("md-ripple",null,null,-1)),Bs=f(()=>t("md-ripple",null,null,-1)),Gs={key:0,indeterminate:"",class:"spinner-sm"},Ks=f(()=>t("md-ripple",null,null,-1)),xs={class:"actions"},Hs={key:0,indeterminate:"",class:"spinner-sm"},Ws=["disabled"],Ps=f(()=>t("md-ripple",null,null,-1)),js={key:0,class:"scroller"},Os=hs('
',1),Ys={class:"subtitle"},Js={class:"number"},Xs=f(()=>t("div",{class:"info"},[t("div",{class:"skeleton-text skeleton-info"})],-1)),Zs=f(()=>t("div",{class:"image"},[t("div",{class:"skeleton-image"})],-1)),et=["href"],st=["onClick","onMouseover"],tt={class:"title"},ot=["onClick","checked"],at=["onClick","checked"],nt={class:"text"},lt={class:"subtitle"},ct={class:"number"},it={class:"info"},dt=["onClick"],rt=f(()=>t("span",null,"·",-1)),ut={class:"time"},_t={class:"btn-icon sm",style:{display:"none"}},pt=f(()=>t("md-ripple",null,null,-1)),vt=["src"],mt={key:0,indeterminate:"",class:"spinner-sm"},ht={key:2,class:"no-data-placeholder"},ue=100,ft=xe({__name:"FeedsSidebar2",setup(u){var oe;const _=He(),{feedsSyncing:$}=We(Pe()),{t:C}=_e(),g=je({tagIds:[]}),{parseQ:M}=Ds(),i=Oe.FEED_ENTRY,T=ss(),Q=T.query,k=S(parseInt(((oe=Q.page)==null?void 0:oe.toString())??"1")),L=S([]),I=S([]),z=ne(()=>{const s={};return I.value.forEach(o=>{s[o.id]=o}),s}),y=S([]),b=S(""),{selectedIds:d,allChecked:B,realAllChecked:q,selectRealAll:ve,allCheckedAlertVisible:me,clearSelection:U,toggleAllChecked:G,toggleSelect:K,total:w,checked:x,shiftEffectingIds:H,handleItemClick:he,handleMouseOver:fe,selectAll:ge,shouldSelect:ke}=qs(y),ye=s=>{k.value=s;const o=T.query.q;re(_,o?`/feeds?page=${s}&q=${o}`:`/feeds?page=${s}`)},{keyDown:W,keyUp:P}=Es(w,ue,k,ge,U,ye,()=>{Y(d.value,q.value,w.value,b.value)}),{page:j,loading:R,loadMore:be,fetch:we,noMore:O}=Ms(y,b,w),{addToTags:Se}=As(i,L),N=()=>{j.value=1,we()},{deleteItems:Y}=Fs(ts,()=>{U(),N(),y.value.some(s=>s.tags.length)&&h.emit("refetch_tags",i),h.emit("feed_entries_deleted")}),$e=ne(()=>de.currentRoute.value.path!=="/feeds"),{resizeWidth:J}=fs(300,()=>_.sidebar2Width,s=>{_.sidebar2Width=s}),{mutate:X,loading:Ce,onDone:Te}=le({document:os,appApi:!0});function Le(){if(q)X({query:b.value});else{if(d.value.length===0){D(C("select_first"),"error");return}X({query:`ids:${d.value.join(",")}`})}}Te(()=>{D(C("saved"))});function Ie(s){return s?`/feeds?q=${s}`:"/feeds"}const{fetch:qe}=pe({handle:async(s,o)=>{o?D(C(o),"error"):s&&(L.value=s.tags,I.value=s.feeds)},document:as,variables:{type:i},appApi:!0});function Z(s){const o=de.currentRoute.value.query.q;return o?`/feeds/${s.feedId}/entries/${s.id}?q=${o}`:`/feeds/${s.feedId}/entries/${s.id}`}function Fe(s){re(_,Z(s))}const{viewFeed:Ee}=Is(_),{mutate:Ae}=le({document:ns,appApi:!0});function De(){$.value=!0,Ae({id:""})}const ee=s=>{$.value=!1,N(),s.error?D(s.error,"error"):D(C("feeds_synced"))},se=s=>{s.type===i&&(U(),N())},te=s=>{s.type===i&&N()};return Ye(()=>{var o,V;const s=(o=document.getElementsByClassName("scroller"))==null?void 0:o[0];s&&(s.scrollTop=0),b.value=gs(((V=Q.q)==null?void 0:V.toString())??""),M(g,b.value),qe(),N(),h.on("item_tags_updated",te),h.on("items_tags_updated",se),h.on("feeds_fetched",ee),window.addEventListener("keydown",W),window.addEventListener("keyup",P)}),Je(()=>{j.value=1,O.value=!1,h.off("item_tags_updated",te),h.off("items_tags_updated",se),h.off("feeds_fetched",ee),window.removeEventListener("keydown",W),window.removeEventListener("keyup",P)}),(s,o)=>{const V=ks,Me=ys,Ne=Ts,Qe=$s,Ue=Ls,Ve=Cs,Re=bs,ze=ws,Be=Ge,F=ls("tooltip");return a(),l("aside",{class:"sidebar2",style:es({width:e(T).params.id?e(_).sidebar2Width+"px":"auto"})},[t("div",Ns,[t("md-checkbox",{"touch-target":"wrapper",onChange:o[0]||(o[0]=(...c)=>e(G)&&e(G)(...c)),checked:e(B),indeterminate:!e(B)&&e(x)},null,40,Qs),t("div",Us,[e(d).length?(a(),l("span",Vs,v(s.$t("x_selected",{count:e(q)?e(w).toLocaleString():e(d).length.toLocaleString()})),1)):(a(),l("span",Rs,v(s.$t("page_title.feeds"))+" ("+v(e(w).toLocaleString())+")",1)),e(x)?(a(),l(ce,{key:2},[E((a(),l("button",{class:"btn-icon",onClick:o[1]||(o[1]=m(c=>e(Y)(e(d),e(q),e(w),b.value),["stop"]))},[zs,r(V)])),[[F,s.$t("delete")]]),E((a(),l("button",{class:"btn-icon",onClick:o[2]||(o[2]=m(c=>e(Se)(e(d),e(q),b.value),["stop"]))},[Bs,r(Me)])),[[F,s.$t("add_to_tags")]]),e(Ce)?(a(),l("md-circular-progress",Gs)):E((a(),l("button",{key:1,class:"btn-icon sm",onClick:m(Le,["prevent"])},[Ks,r(Ne)])),[[F,s.$t("save_to_notes")]])],64)):A("",!0)]),t("div",xs,[r(Qe,{filter:g,tags:L.value,feeds:I.value,"show-chips":!$e.value,"get-url":Ie,"show-today":!0},null,8,["filter","tags","feeds","show-chips"]),e($)?(a(),l("md-circular-progress",Hs)):E((a(),l("button",{key:1,class:"btn-icon",disabled:e($),onClick:m(De,["prevent"])},[Ps,r(Ue)],8,Ws)),[[F,s.$t("sync_feeds")]])])]),r(Ve,{limit:ue,total:e(w),"all-checked-alert-visible":e(me),"real-all-checked":e(q),"select-real-all":e(ve),"clear-selection":e(U)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),e(R)&&y.value.length===0?(a(),l("div",js,[(a(),l(ce,null,Xe(20,c=>t("section",{class:"feed-item selectable-card-skeleton",key:c},[Os,t("div",Ys,[t("span",Js,v(c),1),Xs]),Zs])),64))])):A("",!0),y.value.length>0?(a(),Ze(e(_s),{key:1,class:"scroller","data-key":"id","data-sources":y.value,"estimate-size":100,onTobottom:e(be)},{item:ie(({index:c,item:n})=>{var ae;return[t("a",{class:"item-link",href:Z(n)},[t("article",{class:cs(["feed-item selectable-card",{selected:e(d).includes(n.id)||n.id==s.$route.params.id,selecting:e(H).includes(n.id)}]),onClick:m(p=>e(he)(p,n,c,()=>{Fe(n)}),["stop","prevent"]),onMouseover:p=>e(fe)(p,c)},[t("div",tt,[e(H).includes(n.id)?(a(),l("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:m(p=>e(K)(p,n,c),["stop"]),checked:e(ke)},null,8,ot)):(a(),l("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:m(p=>e(K)(p,n,c),["stop"]),checked:e(d).includes(n.id)},null,8,at)),t("div",nt,v(n.title||s.$t("no_content")),1)]),t("div",lt,[t("span",ct,[r(Re,{id:c+1,raw:n},null,8,["id","raw"])]),t("div",it,[t("a",{onClick:m(p=>e(Ee)(z.value[n.feedId]),["stop","prevent"])},v((ae=z.value[n.feedId])==null?void 0:ae.name),9,dt),rt,E((a(),l("span",ut,[ds(v(e(rs)(n.publishedAt)),1)])),[[F,e(is)(n.publishedAt)]]),r(ze,{tags:n.tags,type:e(i),"only-links":!0},null,8,["tags","type"])])]),E((a(),l("button",_t,[pt,r(Be)])),[[F,s.$t("actions")]]),n.image?(a(),l("img",{key:0,class:"image",src:e(us)(n.image,"&w=200&h=200")},null,8,vt)):A("",!0)],42,st)],8,et)]}),footer:ie(()=>[e(O)?A("",!0):(a(),l("md-circular-progress",mt))]),_:1},8,["data-sources","onTobottom"])):A("",!0),!e(R)&&y.value.length===0?(a(),l("div",ht,v(s.$t(e(ps)(e(R)))),1)):A("",!0),t("div",{class:"sidebar-drag-indicator",onMousedown:o[3]||(o[3]=(...c)=>e(J)&&e(J)(...c))},null,32)],4)}}}),qt=Ss(ft,[["__scopeId","data-v-c75d0d53"]]);export{qt as default}; diff --git a/app/src/main/resources/web/assets/FilesRecentView-t1qUzSQT.js b/app/src/main/resources/web/assets/FilesRecentView-vsq00COR.js similarity index 97% rename from app/src/main/resources/web/assets/FilesRecentView-t1qUzSQT.js rename to app/src/main/resources/web/assets/FilesRecentView-vsq00COR.js index 629f0b39..0f1e626c 100644 --- a/app/src/main/resources/web/assets/FilesRecentView-t1qUzSQT.js +++ b/app/src/main/resources/web/assets/FilesRecentView-vsq00COR.js @@ -1 +1 @@ -import{d as ce,g as ie,h as k,i as de,s as re,j as ue,K as _e,L as pe,M as he,c as a,a as o,m as s,t as i,x as m,w as _,p as h,e as g,O as z,P as ve,v as ke,q as I,ar as me,bG as ge,C as fe,bE as be,bP as ye,S as we,o as n,N as Ee,aC as Ce,E as Ie,U as De,V as Le,W as Se,bj as Te,X as Ve,Y as $e,bK as Ae,ak as Fe,bL as xe,bI as Ne,a1 as f,as as Ke,a3 as Me,bM as Ue,ao as Be,bN as Oe,bO as ze}from"./index-BzaaAwnX.js";import{_ as R}from"./default-BQXvEOng.js";import{u as Re,c as Ge}from"./key-events-C5OjC_dP.js";const Pe={class:"top-app-bar"},Qe=["checked","indeterminate"],je={key:0},He={key:1},We=o("md-ripple",null,null,-1),Xe={key:0,class:"scroller"},qe={class:"start"},Je=o("div",{class:"checkbox"},[o("div",{class:"skeleton-checkbox"})],-1),Ye={class:"number"},Ze=$e('
',4),es=["onClick","onMouseover"],ss={class:"start"},ts=["onClick","checked"],os=["onClick","checked"],ns={class:"number"},as=["onClick"],ls={key:0,class:"svg",src:R},cs=["src","onError"],is=["src","onError"],ds={key:3,class:"svg",src:R},rs={class:"title"},us={class:"subtitle"},_s={class:"actions"},ps=["onClick"],hs=o("md-ripple",null,null,-1),vs={class:"btn-icon sm"},ks=o("md-ripple",null,null,-1),ms={class:"card card-info"},gs={class:"key-value vertical"},fs={class:"key"},bs={class:"value"},ys={key:2,class:"no-data-placeholder"},Ds=ce({__name:"FilesRecentView",setup(ws){const{t:G}=ie(),P=k([]),D=de(),{app:Q,urlTokenKey:b}=re(D),r=k([]),{selectedIds:p,allChecked:L,realAllChecked:j,clearSelection:y,toggleAllChecked:S,toggleSelect:T,total:w,checked:V,shiftEffectingIds:$,handleItemClick:H,handleMouseOver:W,selectAll:X,shouldSelect:q}=Re(r),{downloadFile:A,downloadFiles:J}=me(b),{view:Y}=Oe(P,(e,d)=>{D.lightbox={sources:e,index:d,visible:!0}}),{keyDown:F,keyUp:x}=Ge(X,y,()=>{}),N=k([]),K=k([]),Z=e=>{N.value.push(e)},ee=e=>{K.value.push(e)},{mutate:se,onDone:te}=ue({document:ge,appApi:!0});te(e=>{J(e.data.setTempValue.key),y()});const M=e=>{Ae(e.name)?window.open(Fe(b.value,e.path),"_blank"):xe(e.name)?Y(r.value,e):A(e.path)},{loading:E,fetch:U}=_e({handle:async(e,d)=>{if(d)fe(G(d),"error");else{const u=[];for(const C of e.recentFiles)u.push(be(C,b.value));r.value=u,w.value=u.length}},document:ye,appApi:!0}),oe=()=>{se({key:Ne(),value:JSON.stringify(p.value.map(e=>({path:e})))})},B=e=>{e.status==="done"&&setTimeout(()=>{U()},1e3)},ne=e=>{e.forEach(d=>{ze(r.value,u=>u.id===d.id)}),y()},O=e=>{ne([e.item])};return pe(()=>{U(),f.on("upload_task_done",B),f.on("file_deleted",O),window.addEventListener("keydown",F),window.addEventListener("keyup",x)}),he(()=>{f.off("upload_task_done",B),f.off("file_deleted",O),window.removeEventListener("keydown",F),window.removeEventListener("keyup",x)}),(e,d)=>{const u=Ke,C=Me,ae=Ue,le=Be,v=we("tooltip");return n(),a(z,null,[o("div",Pe,[o("md-checkbox",{"touch-target":"wrapper",onChange:d[0]||(d[0]=(...c)=>s(S)&&s(S)(...c)),checked:s(L),indeterminate:!s(L)&&s(V)},null,40,Qe),s(p).length?(n(),a("span",je,i(e.$t("x_selected",{count:s(j)?s(w).toLocaleString():s(p).length.toLocaleString()})),1)):(n(),a("span",He,i(e.$t("recent_files"))+" ("+i(s(w).toLocaleString())+")",1)),s(V)?m((n(),a("button",{key:2,class:"btn-icon",onClick:_(oe,["stop"])},[We,h(u)])),[[v,e.$t("download")]]):g("",!0)]),s(E)&&r.value.length===0?(n(),a("div",Xe,[(n(),a(z,null,ve(20,c=>o("section",{class:"file-item selectable-card-skeleton",key:c},[o("div",qe,[Je,o("span",Ye,i(c),1)]),Ze])),64))])):g("",!0),r.value.length>0?(n(),ke(s(Te),{key:1,class:"scroller","data-key":"id","data-sources":r.value,"estimate-size":80},{item:I(({index:c,item:t})=>[(n(),a("section",{class:Ee(["file-item selectable-card",{selected:s(p).includes(t.id),selecting:s($).includes(t.id)}]),key:t.id,onClick:_(l=>s(H)(l,t,c,()=>{M(t)}),["stop"]),onMouseover:l=>s(W)(l,c)},[o("div",ss,[s($).includes(t.id)?(n(),a("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:_(l=>s(T)(l,t,c),["stop"]),checked:s(q)},null,8,ts)):(n(),a("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:_(l=>s(T)(l,t,c),["stop"]),checked:s(p).includes(t.id)},null,8,os)),o("span",ns,[h(C,{id:c+1,raw:t},null,8,["id","raw"])])]),o("div",{class:"image",onClick:_(l=>M(t),["stop"])},[K.value.includes(t.id)?(n(),a("img",ls)):!N.value.includes(t.id)&&t.fileId?(n(),a("img",{key:1,class:"image-thumb",src:s(Ce)(t.fileId,"&w=50&h=50"),onError:l=>Z(t.id)},null,40,cs)):t.extension?(n(),a("img",{key:2,src:`/ficons/${t.extension}.svg`,class:"svg",onError:l=>ee(t.id)},null,40,is)):(n(),a("img",ds))],8,as),o("div",rs,i(t.name),1),o("div",us,[o("span",null,i(s(Ie)(t.size)),1),m((n(),a("span",null,[Le(i(s(Se)(t.updatedAt)),1)])),[[v,s(De)(t.updatedAt)]])]),o("div",_s,[m((n(),a("button",{class:"btn-icon sm",onClick:_(l=>s(A)(t.path),["stop"])},[hs,h(u)],8,ps)),[[v,e.$t("download")]]),h(le,null,{content:I(l=>[o("section",ms,[o("div",gs,[o("div",fs,i(e.$t("path")),1),o("div",bs,i(t.path),1)])])]),default:I(()=>[m((n(),a("button",vs,[ks,h(ae)])),[[v,e.$t("info")]])]),_:2},1024)])],42,es))]),_:1},8,["data-sources"])):g("",!0),!s(E)&&r.value.length===0?(n(),a("div",ys,i(e.$t(s(Ve)(s(E),s(Q).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):g("",!0)],64)}}});export{Ds as default}; +import{d as ce,g as ie,h as k,i as de,s as re,j as ue,K as _e,L as pe,M as he,c as a,a as o,m as s,t as i,x as m,w as _,p as h,e as g,O as z,P as ve,v as ke,q as I,ar as me,bG as ge,C as fe,bE as be,bP as ye,S as we,o as n,N as Ee,aC as Ce,E as Ie,U as De,V as Le,W as Se,bj as Te,X as Ve,Y as $e,bK as Ae,ak as Fe,bL as xe,bI as Ne,a1 as f,as as Ke,a3 as Me,bM as Ue,ao as Be,bN as Oe,bO as ze}from"./index-R8dLcqG_.js";import{_ as R}from"./default-BQXvEOng.js";import{u as Re,c as Ge}from"./key-events-BNCM8SMB.js";const Pe={class:"top-app-bar"},Qe=["checked","indeterminate"],je={key:0},He={key:1},We=o("md-ripple",null,null,-1),Xe={key:0,class:"scroller"},qe={class:"start"},Je=o("div",{class:"checkbox"},[o("div",{class:"skeleton-checkbox"})],-1),Ye={class:"number"},Ze=$e('
',4),es=["onClick","onMouseover"],ss={class:"start"},ts=["onClick","checked"],os=["onClick","checked"],ns={class:"number"},as=["onClick"],ls={key:0,class:"svg",src:R},cs=["src","onError"],is=["src","onError"],ds={key:3,class:"svg",src:R},rs={class:"title"},us={class:"subtitle"},_s={class:"actions"},ps=["onClick"],hs=o("md-ripple",null,null,-1),vs={class:"btn-icon sm"},ks=o("md-ripple",null,null,-1),ms={class:"card card-info"},gs={class:"key-value vertical"},fs={class:"key"},bs={class:"value"},ys={key:2,class:"no-data-placeholder"},Ds=ce({__name:"FilesRecentView",setup(ws){const{t:G}=ie(),P=k([]),D=de(),{app:Q,urlTokenKey:b}=re(D),r=k([]),{selectedIds:p,allChecked:L,realAllChecked:j,clearSelection:y,toggleAllChecked:S,toggleSelect:T,total:w,checked:V,shiftEffectingIds:$,handleItemClick:H,handleMouseOver:W,selectAll:X,shouldSelect:q}=Re(r),{downloadFile:A,downloadFiles:J}=me(b),{view:Y}=Oe(P,(e,d)=>{D.lightbox={sources:e,index:d,visible:!0}}),{keyDown:F,keyUp:x}=Ge(X,y,()=>{}),N=k([]),K=k([]),Z=e=>{N.value.push(e)},ee=e=>{K.value.push(e)},{mutate:se,onDone:te}=ue({document:ge,appApi:!0});te(e=>{J(e.data.setTempValue.key),y()});const M=e=>{Ae(e.name)?window.open(Fe(b.value,e.path),"_blank"):xe(e.name)?Y(r.value,e):A(e.path)},{loading:E,fetch:U}=_e({handle:async(e,d)=>{if(d)fe(G(d),"error");else{const u=[];for(const C of e.recentFiles)u.push(be(C,b.value));r.value=u,w.value=u.length}},document:ye,appApi:!0}),oe=()=>{se({key:Ne(),value:JSON.stringify(p.value.map(e=>({path:e})))})},B=e=>{e.status==="done"&&setTimeout(()=>{U()},1e3)},ne=e=>{e.forEach(d=>{ze(r.value,u=>u.id===d.id)}),y()},O=e=>{ne([e.item])};return pe(()=>{U(),f.on("upload_task_done",B),f.on("file_deleted",O),window.addEventListener("keydown",F),window.addEventListener("keyup",x)}),he(()=>{f.off("upload_task_done",B),f.off("file_deleted",O),window.removeEventListener("keydown",F),window.removeEventListener("keyup",x)}),(e,d)=>{const u=Ke,C=Me,ae=Ue,le=Be,v=we("tooltip");return n(),a(z,null,[o("div",Pe,[o("md-checkbox",{"touch-target":"wrapper",onChange:d[0]||(d[0]=(...c)=>s(S)&&s(S)(...c)),checked:s(L),indeterminate:!s(L)&&s(V)},null,40,Qe),s(p).length?(n(),a("span",je,i(e.$t("x_selected",{count:s(j)?s(w).toLocaleString():s(p).length.toLocaleString()})),1)):(n(),a("span",He,i(e.$t("recent_files"))+" ("+i(s(w).toLocaleString())+")",1)),s(V)?m((n(),a("button",{key:2,class:"btn-icon",onClick:_(oe,["stop"])},[We,h(u)])),[[v,e.$t("download")]]):g("",!0)]),s(E)&&r.value.length===0?(n(),a("div",Xe,[(n(),a(z,null,ve(20,c=>o("section",{class:"file-item selectable-card-skeleton",key:c},[o("div",qe,[Je,o("span",Ye,i(c),1)]),Ze])),64))])):g("",!0),r.value.length>0?(n(),ke(s(Te),{key:1,class:"scroller","data-key":"id","data-sources":r.value,"estimate-size":80},{item:I(({index:c,item:t})=>[(n(),a("section",{class:Ee(["file-item selectable-card",{selected:s(p).includes(t.id),selecting:s($).includes(t.id)}]),key:t.id,onClick:_(l=>s(H)(l,t,c,()=>{M(t)}),["stop"]),onMouseover:l=>s(W)(l,c)},[o("div",ss,[s($).includes(t.id)?(n(),a("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:_(l=>s(T)(l,t,c),["stop"]),checked:s(q)},null,8,ts)):(n(),a("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:_(l=>s(T)(l,t,c),["stop"]),checked:s(p).includes(t.id)},null,8,os)),o("span",ns,[h(C,{id:c+1,raw:t},null,8,["id","raw"])])]),o("div",{class:"image",onClick:_(l=>M(t),["stop"])},[K.value.includes(t.id)?(n(),a("img",ls)):!N.value.includes(t.id)&&t.fileId?(n(),a("img",{key:1,class:"image-thumb",src:s(Ce)(t.fileId,"&w=50&h=50"),onError:l=>Z(t.id)},null,40,cs)):t.extension?(n(),a("img",{key:2,src:`/ficons/${t.extension}.svg`,class:"svg",onError:l=>ee(t.id)},null,40,is)):(n(),a("img",ds))],8,as),o("div",rs,i(t.name),1),o("div",us,[o("span",null,i(s(Ie)(t.size)),1),m((n(),a("span",null,[Le(i(s(Se)(t.updatedAt)),1)])),[[v,s(De)(t.updatedAt)]])]),o("div",_s,[m((n(),a("button",{class:"btn-icon sm",onClick:_(l=>s(A)(t.path),["stop"])},[hs,h(u)],8,ps)),[[v,e.$t("download")]]),h(le,null,{content:I(l=>[o("section",ms,[o("div",gs,[o("div",fs,i(e.$t("path")),1),o("div",bs,i(t.path),1)])])]),default:I(()=>[m((n(),a("button",vs,[ks,h(ae)])),[[v,e.$t("info")]])]),_:2},1024)])],42,es))]),_:1},8,["data-sources"])):g("",!0),!s(E)&&r.value.length===0?(n(),a("div",ys,i(e.$t(s(Ve)(s(E),s(Q).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):g("",!0)],64)}}});export{Ds as default}; diff --git a/app/src/main/resources/web/assets/FilesSidebar--pVYvG4i.js b/app/src/main/resources/web/assets/FilesSidebar-CwUlyGz8.js similarity index 89% rename from app/src/main/resources/web/assets/FilesSidebar--pVYvG4i.js rename to app/src/main/resources/web/assets/FilesSidebar-CwUlyGz8.js index 60fbd72e..6ed823b6 100644 --- a/app/src/main/resources/web/assets/FilesSidebar--pVYvG4i.js +++ b/app/src/main/resources/web/assets/FilesSidebar-CwUlyGz8.js @@ -1 +1 @@ -import{_ as w}from"./LeftSidebar.vuevuetypescriptsetuptruelang-xn7lCt7t.js";import{d as y,u as N,s as R,i as x,g as D,I as F,h,aH as Q,k as T,v as V,q as m,Q as E,a6 as _,a0 as H,o as c,V as I,t as i,a as r,w as v,N as b,m as k,c as g,P as L,O as M,by as z,f as S,a7 as A,a8 as O}from"./index-BzaaAwnX.js";const j={class:"nav"},G={class:"title"},J=["onClick"],K={class:"title"},Z=y({__name:"FilesSidebar",setup(U){const u=E(),p=N(),{app:s}=R(x()),{t:n}=D(),{parseQ:$}=z(),l=F({showHidden:!1,linkName:"",text:"",parent:""}),P=h(""),d=h(!1);function q(){S(p,"/files/recent")}const B=Q(()=>{const e=[{name:"internal",label:n("internal_storage"),path:s.value.internalStoragePath}];return s.value.sdcardPath&&e.push({name:"sdcard",label:n("sdcard"),path:s.value.sdcardPath}),s.value.usbDiskPaths.forEach((t,a)=>{e.push({name:`usb${a+1}`,label:`${n("usb_storage")} ${a+1}`,path:t})}),e.push({name:"app",label:n("app_name"),path:s.value.externalFilesDir}),e});function C(e){const t=A([{name:"parent",op:"",value:e.path},{name:"link_name",op:"",value:e.name}]);S(p,`/files?q=${O(t)}`)}function f(){var a;const e=_.currentRoute.value;if(e.path==="/files/recent"){d.value=!0;return}d.value=!1;const t=H(((a=e.query.q)==null?void 0:a.toString())??"");$(l,t),P.value=l.parent}return f(),T(()=>_.currentRoute.value.fullPath,()=>{f()}),(e,t)=>{const a=w;return c(),V(a,null,{title:m(()=>[I(i(e.$t("page_title.files")),1)]),body:m(()=>[r("ul",j,[r("li",{onClick:v(q,["prevent"]),class:b({active:k(u).path==="/files/recent"})},[r("span",G,i(e.$t("recents")),1)],2),(c(!0),g(M,null,L(B.value,o=>(c(),g("li",{onClick:v(W=>C(o),["prevent"]),class:b({active:k(u).path==="/files"&&o.name===l.linkName})},[r("span",K,i(o.label),1)],10,J))),256))])]),_:1})}}});export{Z as default}; +import{_ as w}from"./LeftSidebar.vuevuetypescriptsetuptruelang-BWG8gajF.js";import{d as y,u as N,s as R,i as x,g as D,I as F,h,aH as Q,k as T,v as V,q as m,Q as E,a6 as _,a0 as H,o as c,V as I,t as i,a as r,w as v,N as b,m as k,c as g,P as L,O as M,by as z,f as S,a7 as A,a8 as O}from"./index-R8dLcqG_.js";const j={class:"nav"},G={class:"title"},J=["onClick"],K={class:"title"},Z=y({__name:"FilesSidebar",setup(U){const u=E(),p=N(),{app:s}=R(x()),{t:n}=D(),{parseQ:$}=z(),l=F({showHidden:!1,linkName:"",text:"",parent:""}),P=h(""),d=h(!1);function q(){S(p,"/files/recent")}const B=Q(()=>{const e=[{name:"internal",label:n("internal_storage"),path:s.value.internalStoragePath}];return s.value.sdcardPath&&e.push({name:"sdcard",label:n("sdcard"),path:s.value.sdcardPath}),s.value.usbDiskPaths.forEach((t,a)=>{e.push({name:`usb${a+1}`,label:`${n("usb_storage")} ${a+1}`,path:t})}),e.push({name:"app",label:n("app_name"),path:s.value.externalFilesDir}),e});function C(e){const t=A([{name:"parent",op:"",value:e.path},{name:"link_name",op:"",value:e.name}]);S(p,`/files?q=${O(t)}`)}function f(){var a;const e=_.currentRoute.value;if(e.path==="/files/recent"){d.value=!0;return}d.value=!1;const t=H(((a=e.query.q)==null?void 0:a.toString())??"");$(l,t),P.value=l.parent}return f(),T(()=>_.currentRoute.value.fullPath,()=>{f()}),(e,t)=>{const a=w;return c(),V(a,null,{title:m(()=>[I(i(e.$t("page_title.files")),1)]),body:m(()=>[r("ul",j,[r("li",{onClick:v(q,["prevent"]),class:b({active:k(u).path==="/files/recent"})},[r("span",G,i(e.$t("recents")),1)],2),(c(!0),g(M,null,L(B.value,o=>(c(),g("li",{onClick:v(W=>C(o),["prevent"]),class:b({active:k(u).path==="/files"&&o.name===l.linkName})},[r("span",K,i(o.label),1)],10,J))),256))])]),_:1})}}});export{Z as default}; diff --git a/app/src/main/resources/web/assets/FilesView-DriMBhIE.css b/app/src/main/resources/web/assets/FilesView-CVor1d4m.css similarity index 57% rename from app/src/main/resources/web/assets/FilesView-DriMBhIE.css rename to app/src/main/resources/web/assets/FilesView-CVor1d4m.css index 80b84965..fa5394a4 100644 --- a/app/src/main/resources/web/assets/FilesView-DriMBhIE.css +++ b/app/src/main/resources/web/assets/FilesView-CVor1d4m.css @@ -1 +1 @@ -.filters[data-v-51d6a30b]{padding:16px;min-width:400px}.filters md-outlined-text-field[data-v-51d6a30b]{width:100%}.filters .buttons[data-v-51d6a30b]{text-align:right;margin-block-start:16px}.filters .form-label[data-v-51d6a30b]{margin-block-start:16px;margin-block-end:8px}.breadcrumb a[data-v-b95c3ff1]:not(:last-child):after{content:"/";margin-inline:4px}.main-files .file-item[data-v-b95c3ff1]{grid-template-columns:48px 50px auto 200px}.main-files .scroller-wrapper[data-v-b95c3ff1]{position:relative;height:100%}.main-files .scroller-wrapper .drag-mask[data-v-b95c3ff1]{left:16px;right:16px} +.filters[data-v-51d6a30b]{padding:16px;min-width:400px}.filters md-outlined-text-field[data-v-51d6a30b]{width:100%}.filters .buttons[data-v-51d6a30b]{text-align:right;margin-block-start:16px}.filters .form-label[data-v-51d6a30b]{margin-block-start:16px;margin-block-end:8px}.breadcrumb a[data-v-6725f732]:not(:last-child):after{content:"/";margin-inline:4px}.main-files .file-item[data-v-6725f732]{grid-template-columns:48px 50px auto 200px}.main-files .scroller-wrapper[data-v-6725f732]{position:relative;height:100%}.main-files .scroller-wrapper .drag-mask[data-v-6725f732]{left:16px;right:16px} diff --git a/app/src/main/resources/web/assets/FilesView-DVCo2Xu2.js b/app/src/main/resources/web/assets/FilesView-DVCo2Xu2.js new file mode 100644 index 00000000..d3c56491 --- /dev/null +++ b/app/src/main/resources/web/assets/FilesView-DVCo2Xu2.js @@ -0,0 +1 @@ +import{_ as no}from"./more-vert-zjmMMiPD.js";import{o as n,c as l,a as t,d as Ge,u as We,I as je,h as T,S as Je,e as S,p,x as h,w as _,y as so,A as ao,t as r,O as $,f as Xe,F as Ye,G as Ze,by as et,H as tt,bz as lo,g as io,s as de,i as co,aF as ro,aH as Ae,bA as uo,bB as _o,bC as po,K as ho,bD as mo,ai as Ue,j as vo,L as fo,M as ko,m as s,P as ue,v as k,q as u,aL as go,Q as yo,ar as $o,C as bo,bE as wo,bF as Co,bG as To,Z as G,aP as qo,ao as Io,V as _e,N as Do,aC as So,E as F,U as Vo,W as Fo,bj as Eo,X as Lo,Y as No,aq as Bo,bH as Mo,aS as zo,bI as Ho,bJ as Ke,bK as Re,ak as Oe,bL as Qe,a0 as Ao,a1 as W,ae as Uo,as as Ko,a3 as Ro,bM as Oo,bN as Qo,bO as xo}from"./index-R8dLcqG_.js";import{_ as Po}from"./sort-rounded-CsJpi3ce.js";import{_ as Go}from"./refresh-rounded-D8TYDVGT.js";import{_ as Wo}from"./content-paste-rounded-DUKWQrlf.js";import{_ as jo}from"./upload-rounded-CQIzYelP.js";import{_ as Jo}from"./search-rounded-CULEMJ2O.js";import{_ as ot}from"./default-BQXvEOng.js";import{E as xe}from"./EditValueModal-O1aAFYgx.js";import{u as Xo,c as Yo}from"./key-events-BNCM8SMB.js";import"./vee-validate.esm-vpr6zxQb.js";const Zo={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},en=t("path",{fill:"currentColor",d:"M4 20q-.825 0-1.412-.587T2 18V6q0-.825.588-1.412T4 4h5.175q.4 0 .763.15t.637.425L12 6h8q.825 0 1.413.588T22 8v10q0 .825-.587 1.413T20 20zm0-2h16V8h-8.825l-2-2H4zm0 0V6zm10-4v1q0 .425.288.713T15 16t.713-.288T16 15v-1h1q.425 0 .713-.288T18 13t-.288-.712T17 12h-1v-1q0-.425-.288-.712T15 10t-.712.288T14 11v1h-1q-.425 0-.712.288T12 13t.288.713T13 14z"},null,-1),tn=[en];function on(y,v){return n(),l("svg",Zo,[...tn])}const nn={name:"material-symbols-create-new-folder-outline-rounded",render:on},sn={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},an=t("path",{fill:"currentColor",d:"M19.075 21.9L17.5 20.35q-1.225.8-2.613 1.225T12 22q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12q0-1.5.425-2.887T3.65 6.5L2.075 4.925q-.3-.3-.3-.712t.3-.713t.713-.3t.712.3l17 17q.3.3.3.7t-.3.7t-.712.3t-.713-.3M12 20q1.075 0 2.088-.275t1.962-.825L5.1 7.95q-.55.95-.825 1.962T4 12q0 3.325 2.338 5.663T12 20m0-16q-.825 0-1.612.163T8.85 4.65q-.4.175-.8.05t-.6-.475t-.088-.75t.488-.575q.975-.45 2.012-.675T12 2q2.075 0 3.9.788t3.175 2.137T21.213 8.1T22 12q0 1.1-.225 2.138T21.1 16.15q-.175.375-.575.488t-.75-.088t-.475-.6t.05-.8q.325-.75.488-1.537T20 12q0-3.325-2.337-5.663T12 4m-1.425 9.425"},null,-1),ln=[an];function cn(y,v){return n(),l("svg",sn,[...ln])}const rn={name:"material-symbols-hide-source-outline-rounded",render:cn},dn=y=>(Ye("data-v-51d6a30b"),y=y(),Ze(),y),un={key:"filter-text"},_n=["label"],pn={key:"filter-show-hidden"},hn=["label"],mn=dn(()=>t("md-ripple",null,null,-1)),vn=["open"],fn={class:"filters"},kn={class:"form-row"},gn=["label"],yn=["label","selected"],$n={class:"buttons"},bn=Ge({__name:"FileSearchInput",props:{parent:{type:String,required:!0},filter:{type:Object,required:!0},getUrl:{type:Function,required:!0}},setup(y,{expose:v}){const{copyFilter:A,buildQ:j}=et(),J=We(),c=je({showHidden:!1,linkName:"",text:"",parent:""}),b=y,E=T(!1);function L(){A(c,b.filter),g(),B()}function g(){Xe(J,b.getUrl(j(b.filter)))}function w(){b.filter.text="",g()}function U(){E.value=!0,A(b.filter,c)}function B(){E.value=!1}function I(){b.filter.showHidden=!1,g()}function K(){c.showHidden=!c.showHidden}return v({dismiss:B}),(D,V)=>{const R=rn,O=Jo,X=Je("tooltip");return n(),l($,null,[t("md-chip-set",null,[b.filter.text?(n(),l("div",un,[t("md-input-chip",{label:b.filter.text,"remove-only":"",onRemove:w},null,40,_n)])):S("",!0),b.filter.showHidden?(n(),l("div",pn,[t("md-input-chip",{label:D.$t("show_hidden"),"remove-only":"",onRemove:I},[p(R,{slot:"icon"})],40,hn)])):S("",!0)]),h((n(),l("button",{id:"btn-search",class:"btn-icon",onClick:_(U,["prevent"])},[mn,p(O)])),[[X,D.$t("search")]]),t("md-menu",{positioning:"popover",anchor:"btn-search","menu-corner":"start-end","anchor-corner":"end-end","stay-open-on-focusout":"",quick:"",open:E.value,onClosed:B},[t("div",fn,[t("div",kn,[h(t("md-outlined-text-field",{label:D.$t("keywords"),"onUpdate:modelValue":V[0]||(V[0]=Y=>c.text=Y),onKeyup:ao(L,["enter"])},null,40,gn),[[so,c.text]])]),t("md-chip-set",null,[t("md-filter-chip",{key:"chip-show-hidden",label:D.$t("show_hidden"),selected:c.showHidden,onClick:K},null,8,yn)]),t("div",$n,[t("md-filled-button",{onClick:_(L,["stop"])},r(D.$t("search")),1)])])],40,vn)],64)}}}),wn=tt(bn,[["__scopeId","data-v-51d6a30b"]]),Cn={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Tn=t("path",{fill:"currentColor",d:"m12 14l-2.35 2.35q.2.375.275.8T10 18q0 1.65-1.175 2.825T6 22t-2.825-1.175T2 18t1.175-2.825T6 14q.425 0 .85.075t.8.275L10 12L7.65 9.65q-.375.2-.8.275T6 10q-1.65 0-2.825-1.175T2 6t1.175-2.825T6 2t2.825 1.175T10 6q0 .425-.075.85t-.275.8L20.6 18.6q.675.675.3 1.538T19.575 21q-.275 0-.537-.112t-.463-.313zm3-3l-2-2l5.575-5.575q.2-.2.463-.312T19.574 3q.95 0 1.313.875t-.313 1.55zM6 8q.825 0 1.413-.587T8 6t-.587-1.412T6 4t-1.412.588T4 6t.588 1.413T6 8m6 4.5q.2 0 .35-.15t.15-.35t-.15-.35t-.35-.15t-.35.15t-.15.35t.15.35t.35.15M6 20q.825 0 1.413-.587T8 18t-.587-1.412T6 16t-1.412.588T4 18t.588 1.413T6 20"},null,-1),qn=[Tn];function In(y,v){return n(),l("svg",Cn,[...qn])}const Dn={name:"material-symbols-content-cut-rounded",render:In},Sn={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Vn=t("path",{fill:"currentColor",d:"M9 18q-.825 0-1.412-.587T7 16V4q0-.825.588-1.412T9 2h9q.825 0 1.413.588T20 4v12q0 .825-.587 1.413T18 18zm0-2h9V4H9zm-4 6q-.825 0-1.412-.587T3 20V7q0-.425.288-.712T4 6t.713.288T5 7v13h10q.425 0 .713.288T16 21t-.288.713T15 22zm4-6V4z"},null,-1),Fn=[Vn];function En(y,v){return n(),l("svg",Sn,[...Fn])}const Ln={name:"material-symbols-content-copy-outline-rounded",render:En},Nn=lo({id:"files",state:()=>({selectedFiles:[],isCut:!1})}),Bn=y=>(Ye("data-v-6725f732"),y=y(),Ze(),y),Mn={class:"top-app-bar"},zn=["checked","indeterminate"],Hn={key:0},An={key:1,class:"breadcrumb"},Un={key:0},Kn=["onClick"],Rn={key:0},On=["onClick"],Qn={class:"actions"},xn=["onClick"],Pn={slot:"headline"},Gn=["onClick"],Wn={slot:"headline"},jn={class:"menu-items"},Jn=["onClick","selected"],Xn={slot:"headline"},Yn={key:0,class:"scroller-wrapper"},Zn={class:"scroller"},es={class:"start"},ts=Bn(()=>t("div",{class:"checkbox"},[t("div",{class:"skeleton-checkbox"})],-1)),os={class:"number"},ns=No('
',4),ss=["onClick","onMouseover"],as={class:"start"},ls=["onClick","checked"],is=["onClick","checked"],cs={class:"number"},rs=["onClick"],ds={key:0,src:"/ficons/folder.svg",class:"svg"},us={key:0,class:"svg",src:ot},_s=["src","onError"],ps=["src","onError"],hs={key:3,class:"svg",src:ot},ms={class:"title"},vs={class:"subtitle"},fs={key:0},ks={key:1},gs={class:"actions"},ys=["onClick"],$s={slot:"headline"},bs=["onClick"],ws={slot:"headline"},Cs={class:"card card-info"},Ts={class:"key-value vertical"},qs={class:"key"},Is={class:"value"},Ds=["onClick"],Ss={slot:"headline"},Vs=["onClick"],Fs={slot:"headline"},Es=["onClick"],Ls={slot:"headline"},Ns=["onClick"],Bs={slot:"headline"},Ms=["onClick"],zs={slot:"headline"},Hs={key:1,class:"no-data-placeholder"},Pe=1e4,As=Ge({__name:"FilesView",setup(y){var ze;const{t:v}=io(),A=T([]),{parseQ:j,buildQ:J}=et(),c=je({linkName:"",showHidden:!1,text:"",parent:""}),E=yo().query,L=T(""),g=T([]),{selectedIds:w,allChecked:U,realAllChecked:B,clearSelection:I,toggleAllChecked:K,toggleSelect:D,total:V,checked:R,shiftEffectingIds:O,handleItemClick:X,handleMouseOver:Y,selectAll:nt,shouldSelect:st}=Xo(g),{keyDown:pe,keyUp:he}=Yo(nt,I,()=>{Ve()}),Z=T(!1),Q=T(!1),me=T([]),ve=T([]),at=e=>{me.value.push(e)},lt=e=>{ve.value.push(e)},it=Bo(),fe=We(),{fileSortBy:x}=de(fe),ke=co(),{app:ge,urlTokenKey:M,uploads:ee}=de(ke),{selectedFiles:ct,isCut:rt}=de(Nn()),{dropping:dt,fileDragEnter:ye,fileDragLeave:$e,dropFiles:ut}=ro(ee),P=Ae(()=>Mo(c.linkName,ge.value)),{createPath:_t,createVariables:pt,createMutation:ht}=uo(M,g),{renameItem:mt,renameDone:vt,renameMutation:ft,renameVariables:kt}=_o(()=>{z()}),{internal:be,sdcard:we,usb:gt,refetch:te}=po(),{downloadFile:oe,downloadDir:yt,downloadFiles:$t}=$o(M),{view:Ce}=Qo(A,(e,o)=>{ke.lightbox={sources:e,index:o,visible:!0}}),bt=T(parseInt(((ze=E.page)==null?void 0:ze.toString())??"1")),wt=Ae(()=>{const e=[];let o=c.parent;for(;o&&o!==P.value;)e.unshift({path:o,name:zo(o)}),o=o.substring(0,o.lastIndexOf("/"));return e.unshift({path:P.value,name:Lt()}),e}),Te=T(!0),{loading:ne,fetch:z}=ho({handle:async(e,o)=>{if(Te.value=!1,Z.value=!1,Q.value=!1,o)bo(v(o),"error");else{const C=[];for(const m of e.files)C.push(wo(m,M.value));g.value=C,V.value=C.length}},document:Co,variables:()=>({root:P.value,offset:(bt.value-1)*Pe,limit:Pe,query:L.value,sortBy:x.value}),options:{fetchPolicy:"cache-and-network"},appApi:!0}),{loading:Ct,canPaste:qe,copy:se,cut:Ie,paste:ae}=mo(g,rt,ct,z,te),{input:Tt,upload:qt,uploadChanged:De}=Ue(ee),{input:It,upload:Dt,uploadChanged:Se}=Ue(ee),{loading:St,mutate:Vt,onDone:Ft}=vo({document:To,appApi:!0});Ft(e=>{$t(e.data.setTempValue.key),I()});const Et=()=>{Vt({key:Ho(),value:JSON.stringify(w.value.map(e=>({path:e})))})},le=e=>{e.forEach(o=>{xo(g.value,C=>C.id===o.id)}),I(),te()},Ve=()=>{G(Ke,{files:g.value.filter(e=>w.value.includes(e.id)),onDone:e=>{le(e)}})};function Lt(){if(c.linkName==="sdcard")return v("sdcard");if(c.linkName==="app")return v("app_name");if(c.linkName.startsWith("usb")){const e=parseInt(c.linkName.substring(3));return`${v("usb_storage")} ${e}`}return v("internal_storage")}function Fe(){var e,o,C,m;if(c.linkName==="sdcard")return`${v("storage_free_total",{free:F(((e=we.value)==null?void 0:e.freeBytes)??0),total:F(((o=we.value)==null?void 0:o.totalBytes)??0)})}`;if(c.linkName==="app")return v("app_name");if(c.linkName.startsWith("usb")){const ce=parseInt(c.linkName.substring(3)),q=gt.value[ce-1];return`${v("storage_free_total",{free:F((q==null?void 0:q.freeBytes)??0),total:F((q==null?void 0:q.totalBytes)??0)})}`}return`${F(((C=be.value)==null?void 0:C.freeBytes)??0)} / ${F(((m=be.value)==null?void 0:m.totalBytes)??0,!0,0)}`}function ie(e){I(),c.parent=e;const o=J(c);Xe(fe,Ee(o))}function Ee(e){return`/files?q=${e}`}function Nt(e){if(e.isDir){ie(e.path);return}Re(e.name)?window.open(Oe(M.value,e.path),"_blank"):Qe(e.name)?Ce(g.value,e):oe(e.path)}function Bt(e,o){o.isDir||(e.stopPropagation(),Re(o.name)?window.open(Oe(M.value,o.path),"_blank"):Qe(o.name)?Ce(g.value,o):oe(o.path))}function Mt(e,o){if(x.value===o){Q.value=!1,e.close();return}Q.value=!0,x.value=o,e.close()}function zt(){Z.value=!0,z()}const Ht=()=>{_t.value=c.parent,G(xe,{title:v("name"),placeholder:v("name"),mutation:ht,getVariables:pt})};function Le(e,o){qt(o),e.close()}function Ne(e,o){Dt(o),e.close()}function At(){se(w.value),I()}function Ut(){Ie(w.value),I()}function Kt(){ae(c.parent)}function Rt(e,o){se([o.id]),ae(c.parent),e.close()}function Ot(e,o){Ie([o.id]),e.close()}function Qt(e,o){se([o.id]),e.close()}function xt(e,o){ae(o.path),e.close()}function Pt(e,o){mt.value=o,G(xe,{title:v("rename"),placeholder:v("name"),value:o.name,mutation:ft,getVariables:kt,done:vt}),e.close()}function Gt(e){G(Ke,{files:[e],onDone:le})}const Be=e=>{e.status==="done"&&setTimeout(()=>{z(),te()},1e3)},Me=e=>{le([e.item])};function Wt(e){ut(e,c.parent)}return fo(()=>{var e;L.value=Ao(((e=E.q)==null?void 0:e.toString())??""),j(c,L.value),z(),W.on("upload_task_done",Be),W.on("file_deleted",Me),window.addEventListener("keydown",pe),window.addEventListener("keyup",he)}),ko(()=>{W.off("upload_task_done",Be),W.off("file_deleted",Me),window.removeEventListener("keydown",pe),window.removeEventListener("keyup",he)}),(e,o)=>{const C=Ln,m=qo,ce=Dn,q=Uo,re=Ko,jt=wn,Jt=nn,He=jo,H=Io,Xt=Wo,Yt=Go,Zt=Po,eo=Ro,to=Oo,oo=no,f=Je("tooltip");return n(),l($,null,[t("div",Mn,[t("md-checkbox",{"touch-target":"wrapper",onChange:o[0]||(o[0]=(...i)=>s(K)&&s(K)(...i)),checked:s(U),indeterminate:!s(U)&&s(R)},null,40,zn),s(w).length?(n(),l("span",Hn,r(e.$t("x_selected",{count:s(B)?s(V).toLocaleString():s(w).length.toLocaleString()})),1)):(n(),l("div",An,[(n(!0),l($,null,ue(wt.value,(i,a)=>(n(),l($,{key:i.path},[a===0?(n(),l($,{key:0},[i.path===c.parent?h((n(),l("span",Un,[_e(r(i.name)+" ("+r(s(V))+")",1)])),[[f,Fe()]]):h((n(),l("a",{key:1,href:"#",onClick:_(d=>ie(i.path),["stop","prevent"])},[_e(r(i.name),1)],8,Kn)),[[f,Fe()]])],64)):(n(),l($,{key:1},[i.path===c.parent?(n(),l("span",Rn,r(i.name)+" ("+r(s(V))+")",1)):(n(),l("a",{key:1,href:"#",onClick:_(d=>ie(i.path),["stop","prevent"])},r(i.name),9,On))],64))],64))),128))])),s(R)?(n(),l($,{key:2},[h((n(),k(m,{onClick:_(At,["stop"])},{icon:u(()=>[p(C)]),_:1})),[[f,e.$t("copy")]]),h((n(),k(m,{onClick:_(Ut,["stop"])},{icon:u(()=>[p(ce)]),_:1})),[[f,e.$t("cut")]]),h((n(),k(m,{onClick:_(Ve,["stop"])},{icon:u(()=>[p(q)]),_:1})),[[f,e.$t("delete")]]),h((n(),k(m,{loading:s(St),onClick:_(Et,["stop"])},{icon:u(()=>[p(re)]),_:1},8,["loading"])),[[f,e.$t("download")]])],64)):S("",!0),t("div",Qn,[p(jt,{filter:c,parent:P.value,"get-url":Ee},null,8,["filter","parent"]),h((n(),k(m,{onClick:Ht},{icon:u(()=>[p(Jt)]),_:1})),[[f,e.$t("create_folder")]]),p(H,null,{content:u(i=>[t("md-menu-item",{onClick:_(a=>Le(i,c.parent),["stop"])},[t("div",Pn,r(e.$t("upload_files")),1)],8,xn),t("md-menu-item",{onClick:_(a=>Ne(i,c.parent),["stop"])},[t("div",Wn,r(e.$t("upload_folder")),1)],8,Gn)]),default:u(()=>[h((n(),k(m,null,{icon:u(()=>[p(He)]),_:1})),[[f,e.$t("upload")]])]),_:1}),s(qe)()?h((n(),k(m,{key:0,loading:s(Ct),onClick:Kt},{icon:u(()=>[p(Xt)]),_:1},8,["loading"])),[[f,e.$t("paste")]]):S("",!0),h((n(),k(m,{loading:Z.value,onClick:zt},{icon:u(()=>[p(Yt)]),_:1},8,["loading"])),[[f,e.$t("refresh")]]),p(H,null,{content:u(i=>[t("div",jn,[(n(!0),l($,null,ue(s(it),a=>(n(),l("md-menu-item",{onClick:d=>Mt(i,a.value),key:a.value,selected:a.value===s(x)},[t("div",Xn,r(e.$t(a.label)),1)],8,Jn))),128))])]),default:u(()=>[h((n(),k(m,{loading:Q.value},{icon:u(()=>[p(Zt)]),_:1},8,["loading"])),[[f,e.$t("sort")]])]),_:1})])]),s(ne)&&Te.value?(n(),l("div",Yn,[t("div",Zn,[(n(),l($,null,ue(20,i=>t("section",{class:"file-item selectable-card-skeleton",key:i},[t("div",es,[ts,t("span",os,r(i),1)]),ns])),64))])])):S("",!0),t("div",{class:"scroller-wrapper",onDragover:o[4]||(o[4]=_((...i)=>s(ye)&&s(ye)(...i),["stop","prevent"]))},[h(t("div",{class:"drag-mask",onDrop:_(Wt,["stop","prevent"]),onDragleave:o[1]||(o[1]=_((...i)=>s($e)&&s($e)(...i),["stop","prevent"]))},r(e.$t("release_to_send_files")),545),[[go,s(dt)]]),g.value.length>0?(n(),k(s(Eo),{key:0,class:"scroller","data-key":"id","data-sources":g.value,"estimate-size":80},{item:u(({index:i,item:a})=>[t("section",{class:Do(["file-item selectable-card",{selected:s(w).includes(a.id),selecting:s(O).includes(a.id)}]),onClick:_(d=>s(X)(d,a,i,()=>{Nt(a)}),["stop"]),onMouseover:d=>s(Y)(d,i)},[t("div",as,[s(O).includes(a.id)?(n(),l("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:_(d=>s(D)(d,a,i),["stop"]),checked:s(st)},null,8,ls)):(n(),l("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:_(d=>s(D)(d,a,i),["stop"]),checked:s(w).includes(a.id)},null,8,is)),t("span",cs,[p(eo,{id:i+1,raw:a},null,8,["id","raw"])])]),t("div",{class:"image",onClick:d=>Bt(d,a)},[a.isDir?(n(),l("img",ds)):(n(),l($,{key:1},[ve.value.includes(a.id)?(n(),l("img",us)):!me.value.includes(a.id)&&a.fileId?(n(),l("img",{key:1,class:"image-thumb",src:s(So)(a.fileId,"&w=50&h=50"),onError:d=>at(a.id)},null,40,_s)):a.extension?(n(),l("img",{key:2,src:`/ficons/${a.extension}.svg`,class:"svg",onError:d=>lt(a.id)},null,40,ps)):(n(),l("img",hs))],64))],8,rs),t("div",ms,r(a.name),1),t("div",vs,[a.isDir?(n(),l("span",fs,r(e.$t("x_items",a.children)),1)):(n(),l("span",ks,r(s(F)(a.size)),1)),h((n(),l("span",null,[_e(r(s(Fo)(a.updatedAt)),1)])),[[f,s(Vo)(a.updatedAt)]])]),t("div",gs,[a.isDir?(n(),l($,{key:0},[h((n(),k(m,{class:"sm",onClick:_(d=>s(yt)(a.path),["stop"])},{icon:u(()=>[p(re)]),_:2},1032,["onClick"])),[[f,e.$t("download")]]),p(H,null,{content:u(d=>[t("md-menu-item",{onClick:_(N=>Le(d,a.path),["stop"])},[t("div",$s,r(e.$t("upload_files")),1)],8,ys),t("md-menu-item",{onClick:_(N=>Ne(d,a.path),["stop"])},[t("div",ws,r(e.$t("upload_folder")),1)],8,bs)]),default:u(()=>[h((n(),k(m,{class:"sm"},{icon:u(()=>[p(He)]),_:1})),[[f,e.$t("upload")]])]),_:2},1024)],64)):h((n(),k(m,{key:1,class:"sm",onClick:_(d=>s(oe)(a.path),["stop"])},{icon:u(()=>[p(re)]),_:2},1032,["onClick"])),[[f,e.$t("download")]]),h((n(),k(m,{class:"sm",onClick:_(d=>Gt(a),["stop"])},{icon:u(()=>[p(q)]),_:2},1032,["onClick"])),[[f,e.$t("delete")]]),p(H,null,{content:u(()=>[t("section",Cs,[t("div",Ts,[t("div",qs,r(e.$t("path")),1),t("div",Is,r(a.path),1)])])]),default:u(()=>[h((n(),k(m,{class:"sm"},{icon:u(()=>[p(to)]),_:1})),[[f,e.$t("info")]])]),_:2},1024),p(H,null,{content:u(d=>[t("md-menu-item",{onClick:_(N=>Rt(d,a),["stop"])},[t("div",Ss,r(e.$t("duplicate")),1)],8,Ds),t("md-menu-item",{onClick:_(N=>Ot(d,a),["stop"])},[t("div",Fs,r(e.$t("cut")),1)],8,Vs),t("md-menu-item",{onClick:_(N=>Qt(d,a),["stop"])},[t("div",Ls,r(e.$t("copy")),1)],8,Es),a.isDir&&s(qe)()?(n(),l("md-menu-item",{key:0,onClick:_(N=>xt(d,a),["stop"])},[t("div",Bs,r(e.$t("paste")),1)],8,Ns)):S("",!0),t("md-menu-item",{onClick:_(N=>Pt(d,a),["stop"])},[t("div",zs,r(e.$t("rename")),1)],8,Ms)]),default:u(()=>[h((n(),k(m,{class:"sm"},{icon:u(()=>[p(oo)]),_:1})),[[f,e.$t("actions")]])]),_:2},1024)])],42,ss)]),_:1},8,["data-sources"])):S("",!0),!s(ne)&&g.value.length===0?(n(),l("div",Hs,r(e.$t(s(Lo)(s(ne),s(ge).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):S("",!0),t("input",{ref_key:"fileInput",ref:Tt,style:{display:"none"},type:"file",multiple:"",onChange:o[2]||(o[2]=(...i)=>s(De)&&s(De)(...i))},null,544),t("input",{ref_key:"dirFileInput",ref:It,style:{display:"none"},type:"file",multiple:"",webkitdirectory:"",mozdirectory:"",directory:"",onChange:o[3]||(o[3]=(...i)=>s(Se)&&s(Se)(...i))},null,544)],32)],64)}}}),Xs=tt(As,[["__scopeId","data-v-6725f732"]]);export{Xs as default}; diff --git a/app/src/main/resources/web/assets/FilesView-TPT_BxjG.js b/app/src/main/resources/web/assets/FilesView-TPT_BxjG.js deleted file mode 100644 index b527ab8b..00000000 --- a/app/src/main/resources/web/assets/FilesView-TPT_BxjG.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as no}from"./more-vert-BRJfC0iG.js";import{o as n,c as l,a as t,d as Ge,u as We,I as je,h as T,S as Je,e as S,p,x as h,w as _,y as so,A as ao,t as r,O as b,f as Xe,F as Ye,G as Ze,by as et,H as tt,bz as lo,g as io,s as de,i as co,aF as ro,aH as Ae,bA as uo,bB as _o,bC as po,K as ho,bD as mo,ai as Ue,j as fo,L as vo,M as ko,m as s,P as ue,v as k,q as u,aL as go,Q as yo,ar as bo,C as $o,bE as wo,bF as Co,bG as To,Z as Q,aP as qo,ao as Io,V as _e,N as Do,aC as So,E as F,U as Vo,W as Fo,bj as Eo,X as Lo,Y as No,aq as Bo,bH as Mo,aS as zo,bI as Ho,bJ as Ke,bK as Re,ak as Oe,bL as Pe,a0 as Ao,a1 as x,ae as Uo,as as Ko,a3 as Ro,bM as Oo,bN as Po,bO as Qo}from"./index-BzaaAwnX.js";import{_ as xo}from"./sort-rounded-BiVhN4C5.js";import{_ as Go}from"./refresh-rounded-DnwgRawr.js";import{_ as Wo}from"./content-paste-rounded-DMWI-l4g.js";import{_ as jo}from"./upload-rounded-BkrPpEdb.js";import{_ as Jo}from"./search-rounded-Btuwf-IQ.js";import{_ as ot}from"./default-BQXvEOng.js";import{E as Qe}from"./EditValueModal-Ws2hdG3a.js";import{u as Xo,c as Yo}from"./key-events-C5OjC_dP.js";import"./vee-validate.esm-DNjIRPsN.js";const Zo={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},en=t("path",{fill:"currentColor",d:"M4 20q-.825 0-1.412-.587T2 18V6q0-.825.588-1.412T4 4h5.175q.4 0 .763.15t.637.425L12 6h8q.825 0 1.413.588T22 8v10q0 .825-.587 1.413T20 20zm0-2h16V8h-8.825l-2-2H4zm0 0V6zm10-4v1q0 .425.288.713T15 16t.713-.288T16 15v-1h1q.425 0 .713-.288T18 13t-.288-.712T17 12h-1v-1q0-.425-.288-.712T15 10t-.712.288T14 11v1h-1q-.425 0-.712.288T12 13t.288.713T13 14z"},null,-1),tn=[en];function on(y,f){return n(),l("svg",Zo,[...tn])}const nn={name:"material-symbols-create-new-folder-outline-rounded",render:on},sn={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},an=t("path",{fill:"currentColor",d:"M19.075 21.9L17.5 20.35q-1.225.8-2.613 1.225T12 22q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12q0-1.5.425-2.887T3.65 6.5L2.075 4.925q-.3-.3-.3-.712t.3-.713t.713-.3t.712.3l17 17q.3.3.3.7t-.3.7t-.712.3t-.713-.3M12 20q1.075 0 2.088-.275t1.962-.825L5.1 7.95q-.55.95-.825 1.962T4 12q0 3.325 2.338 5.663T12 20m0-16q-.825 0-1.612.163T8.85 4.65q-.4.175-.8.05t-.6-.475t-.088-.75t.488-.575q.975-.45 2.012-.675T12 2q2.075 0 3.9.788t3.175 2.137T21.213 8.1T22 12q0 1.1-.225 2.138T21.1 16.15q-.175.375-.575.488t-.75-.088t-.475-.6t.05-.8q.325-.75.488-1.537T20 12q0-3.325-2.337-5.663T12 4m-1.425 9.425"},null,-1),ln=[an];function cn(y,f){return n(),l("svg",sn,[...ln])}const rn={name:"material-symbols-hide-source-outline-rounded",render:cn},dn=y=>(Ye("data-v-51d6a30b"),y=y(),Ze(),y),un={key:"filter-text"},_n=["label"],pn={key:"filter-show-hidden"},hn=["label"],mn=dn(()=>t("md-ripple",null,null,-1)),fn=["open"],vn={class:"filters"},kn={class:"form-row"},gn=["label"],yn=["label","selected"],bn={class:"buttons"},$n=Ge({__name:"FileSearchInput",props:{parent:{type:String,required:!0},filter:{type:Object,required:!0},getUrl:{type:Function,required:!0}},setup(y,{expose:f}){const{copyFilter:A,buildQ:G}=et(),W=We(),c=je({showHidden:!1,linkName:"",text:"",parent:""}),$=y,E=T(!1);function L(){A(c,$.filter),g(),B()}function g(){Xe(W,$.getUrl(G($.filter)))}function w(){$.filter.text="",g()}function U(){E.value=!0,A($.filter,c)}function B(){E.value=!1}function I(){$.filter.showHidden=!1,g()}function K(){c.showHidden=!c.showHidden}return f({dismiss:B}),(D,V)=>{const R=rn,O=Jo,j=Je("tooltip");return n(),l(b,null,[t("md-chip-set",null,[$.filter.text?(n(),l("div",un,[t("md-input-chip",{label:$.filter.text,"remove-only":"",onRemove:w},null,40,_n)])):S("",!0),$.filter.showHidden?(n(),l("div",pn,[t("md-input-chip",{label:D.$t("show_hidden"),"remove-only":"",onRemove:I},[p(R,{slot:"icon"})],40,hn)])):S("",!0)]),h((n(),l("button",{id:"btn-search",class:"btn-icon",onClick:_(U,["prevent"])},[mn,p(O)])),[[j,D.$t("search")]]),t("md-menu",{positioning:"popover",anchor:"btn-search","menu-corner":"start-end","anchor-corner":"end-end","stay-open-on-focusout":"",quick:"",open:E.value,onClosed:B},[t("div",vn,[t("div",kn,[h(t("md-outlined-text-field",{label:D.$t("keywords"),"onUpdate:modelValue":V[0]||(V[0]=J=>c.text=J),onKeyup:ao(L,["enter"])},null,40,gn),[[so,c.text]])]),t("md-chip-set",null,[t("md-filter-chip",{key:"chip-show-hidden",label:D.$t("show_hidden"),selected:c.showHidden,onClick:K},null,8,yn)]),t("div",bn,[t("md-filled-button",{onClick:_(L,["stop"])},r(D.$t("search")),1)])])],40,fn)],64)}}}),wn=tt($n,[["__scopeId","data-v-51d6a30b"]]),Cn={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Tn=t("path",{fill:"currentColor",d:"m12 14l-2.35 2.35q.2.375.275.8T10 18q0 1.65-1.175 2.825T6 22t-2.825-1.175T2 18t1.175-2.825T6 14q.425 0 .85.075t.8.275L10 12L7.65 9.65q-.375.2-.8.275T6 10q-1.65 0-2.825-1.175T2 6t1.175-2.825T6 2t2.825 1.175T10 6q0 .425-.075.85t-.275.8L20.6 18.6q.675.675.3 1.538T19.575 21q-.275 0-.537-.112t-.463-.313zm3-3l-2-2l5.575-5.575q.2-.2.463-.312T19.574 3q.95 0 1.313.875t-.313 1.55zM6 8q.825 0 1.413-.587T8 6t-.587-1.412T6 4t-1.412.588T4 6t.588 1.413T6 8m6 4.5q.2 0 .35-.15t.15-.35t-.15-.35t-.35-.15t-.35.15t-.15.35t.15.35t.35.15M6 20q.825 0 1.413-.587T8 18t-.587-1.412T6 16t-1.412.588T4 18t.588 1.413T6 20"},null,-1),qn=[Tn];function In(y,f){return n(),l("svg",Cn,[...qn])}const Dn={name:"material-symbols-content-cut-rounded",render:In},Sn={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Vn=t("path",{fill:"currentColor",d:"M9 18q-.825 0-1.412-.587T7 16V4q0-.825.588-1.412T9 2h9q.825 0 1.413.588T20 4v12q0 .825-.587 1.413T18 18zm0-2h9V4H9zm-4 6q-.825 0-1.412-.587T3 20V7q0-.425.288-.712T4 6t.713.288T5 7v13h10q.425 0 .713.288T16 21t-.288.713T15 22zm4-6V4z"},null,-1),Fn=[Vn];function En(y,f){return n(),l("svg",Sn,[...Fn])}const Ln={name:"material-symbols-content-copy-outline-rounded",render:En},Nn=lo({id:"files",state:()=>({selectedFiles:[],isCut:!1})}),Bn=y=>(Ye("data-v-b95c3ff1"),y=y(),Ze(),y),Mn={class:"top-app-bar"},zn=["checked","indeterminate"],Hn={key:0},An={key:1,class:"breadcrumb"},Un={key:0},Kn=["onClick"],Rn={key:0},On=["onClick"],Pn={class:"actions"},Qn=["onClick"],xn={slot:"headline"},Gn=["onClick"],Wn={slot:"headline"},jn={class:"menu-items"},Jn=["onClick","selected"],Xn={slot:"headline"},Yn={key:0,class:"scroller-wrapper"},Zn={class:"scroller"},es={class:"start"},ts=Bn(()=>t("div",{class:"checkbox"},[t("div",{class:"skeleton-checkbox"})],-1)),os={class:"number"},ns=No('
',4),ss=["onClick","onMouseover"],as={class:"start"},ls=["onClick","checked"],is=["onClick","checked"],cs={class:"number"},rs=["onClick"],ds={key:0,src:"/ficons/folder.svg",class:"svg"},us={key:0,class:"svg",src:ot},_s=["src","onError"],ps=["src","onError"],hs={key:3,class:"svg",src:ot},ms={class:"title"},fs={class:"subtitle"},vs={key:0},ks={key:1},gs={class:"actions"},ys=["onClick"],bs={slot:"headline"},$s=["onClick"],ws={slot:"headline"},Cs={class:"card card-info"},Ts={class:"key-value vertical"},qs={class:"key"},Is={class:"value"},Ds=["onClick"],Ss={slot:"headline"},Vs=["onClick"],Fs={slot:"headline"},Es=["onClick"],Ls={slot:"headline"},Ns=["onClick"],Bs={slot:"headline"},Ms=["onClick"],zs={slot:"headline"},Hs={key:1,class:"no-data-placeholder"},xe=1e4,As=Ge({__name:"FilesView",setup(y){var ze;const{t:f}=io(),A=T([]),{parseQ:G,buildQ:W}=et(),c=je({linkName:"",showHidden:!1,text:"",parent:""}),E=yo().query,L=T(""),g=T([]),{selectedIds:w,allChecked:U,realAllChecked:B,clearSelection:I,toggleAllChecked:K,toggleSelect:D,total:V,checked:R,shiftEffectingIds:O,handleItemClick:j,handleMouseOver:J,selectAll:nt,shouldSelect:st}=Xo(g),{keyDown:pe,keyUp:he}=Yo(nt,I,()=>{Ve()}),X=T(!1),Y=T(!1),me=T([]),fe=T([]),at=e=>{me.value.push(e)},lt=e=>{fe.value.push(e)},it=Bo(),ve=We(),{fileSortBy:Z}=de(ve),ke=co(),{app:ge,urlTokenKey:M,uploads:ee}=de(ke),{selectedFiles:ct,isCut:rt}=de(Nn()),{dropping:dt,fileDragEnter:ye,fileDragLeave:be,dropFiles:ut}=ro(ee),P=Ae(()=>Mo(c.linkName,ge.value)),{createPath:_t,createVariables:pt,createMutation:ht}=uo(M,g),{renameItem:mt,renameDone:ft,renameMutation:vt,renameVariables:kt}=_o(()=>{z()}),{internal:$e,sdcard:we,usb:gt,refetch:te}=po(),{downloadFile:oe,downloadDir:yt,downloadFiles:bt}=bo(M),{view:Ce}=Po(A,(e,o)=>{ke.lightbox={sources:e,index:o,visible:!0}}),$t=T(parseInt(((ze=E.page)==null?void 0:ze.toString())??"1")),wt=Ae(()=>{const e=[];let o=c.parent;for(;o&&o!==P.value;)e.unshift({path:o,name:zo(o)}),o=o.substring(0,o.lastIndexOf("/"));return e.unshift({path:P.value,name:Lt()}),e}),Te=T(!0),{loading:ne,fetch:z}=ho({handle:async(e,o)=>{if(Te.value=!1,X.value=!1,Y.value=!1,o)$o(f(o),"error");else{const C=[];for(const m of e.files)C.push(wo(m,M.value));g.value=C,V.value=C.length}},document:Co,variables:()=>({root:P.value,offset:($t.value-1)*xe,limit:xe,query:L.value,sortBy:Z.value}),options:{fetchPolicy:"cache-and-network"},appApi:!0}),{loading:Ct,canPaste:qe,copy:se,cut:Ie,paste:ae}=mo(g,rt,ct,z,te),{input:Tt,upload:qt,uploadChanged:De}=Ue(ee),{input:It,upload:Dt,uploadChanged:Se}=Ue(ee),{loading:St,mutate:Vt,onDone:Ft}=fo({document:To,appApi:!0});Ft(e=>{bt(e.data.setTempValue.key),I()});const Et=()=>{Vt({key:Ho(),value:JSON.stringify(w.value.map(e=>({path:e})))})},le=e=>{e.forEach(o=>{Qo(g.value,C=>C.id===o.id)}),I(),te()},Ve=()=>{Q(Ke,{files:g.value.filter(e=>w.value.includes(e.id)),onDone:e=>{le(e)}})};function Lt(){if(c.linkName==="sdcard")return f("sdcard");if(c.linkName==="app")return f("app_name");if(c.linkName.startsWith("usb")){const e=parseInt(c.linkName.substring(3));return`${f("usb_storage")} ${e}`}return f("internal_storage")}function Fe(){var e,o,C,m;if(c.linkName==="sdcard")return`${f("storage_free_total",{free:F(((e=we.value)==null?void 0:e.freeBytes)??0),total:F(((o=we.value)==null?void 0:o.totalBytes)??0)})}`;if(c.linkName==="app")return f("app_name");if(c.linkName.startsWith("usb")){const ce=parseInt(c.linkName.substring(3)),q=gt.value[ce-1];return`${f("storage_free_total",{free:F((q==null?void 0:q.freeBytes)??0),total:F((q==null?void 0:q.totalBytes)??0)})}`}return`${F(((C=$e.value)==null?void 0:C.freeBytes)??0)} / ${F(((m=$e.value)==null?void 0:m.totalBytes)??0,!0,0)}`}function ie(e){I(),c.parent=e;const o=W(c);Xe(ve,Ee(o))}function Ee(e){return`/files?q=${e}`}function Nt(e){if(e.isDir){ie(e.path);return}Re(e.name)?window.open(Oe(M.value,e.path),"_blank"):Pe(e.name)?Ce(g.value,e):oe(e.path)}function Bt(e,o){o.isDir||(e.stopPropagation(),Re(o.name)?window.open(Oe(M.value,o.path),"_blank"):Pe(o.name)?Ce(g.value,o):oe(o.path))}function Mt(e,o){Y.value=!0,Z.value=o,e.close()}function zt(){X.value=!0,z()}const Ht=()=>{_t.value=c.parent,Q(Qe,{title:f("name"),placeholder:f("name"),mutation:ht,getVariables:pt})};function Le(e,o){qt(o),e.close()}function Ne(e,o){Dt(o),e.close()}function At(){se(w.value),I()}function Ut(){Ie(w.value),I()}function Kt(){ae(c.parent)}function Rt(e,o){se([o.id]),ae(c.parent),e.close()}function Ot(e,o){Ie([o.id]),e.close()}function Pt(e,o){se([o.id]),e.close()}function Qt(e,o){ae(o.path),e.close()}function xt(e,o){mt.value=o,Q(Qe,{title:f("rename"),placeholder:f("name"),value:o.name,mutation:vt,getVariables:kt,done:ft}),e.close()}function Gt(e){Q(Ke,{files:[e],onDone:le})}const Be=e=>{e.status==="done"&&setTimeout(()=>{z(),te()},1e3)},Me=e=>{le([e.item])};function Wt(e){ut(e,c.parent)}return vo(()=>{var e;L.value=Ao(((e=E.q)==null?void 0:e.toString())??""),G(c,L.value),z(),x.on("upload_task_done",Be),x.on("file_deleted",Me),window.addEventListener("keydown",pe),window.addEventListener("keyup",he)}),ko(()=>{x.off("upload_task_done",Be),x.off("file_deleted",Me),window.removeEventListener("keydown",pe),window.removeEventListener("keyup",he)}),(e,o)=>{const C=Ln,m=qo,ce=Dn,q=Uo,re=Ko,jt=wn,Jt=nn,He=jo,H=Io,Xt=Wo,Yt=Go,Zt=xo,eo=Ro,to=Oo,oo=no,v=Je("tooltip");return n(),l(b,null,[t("div",Mn,[t("md-checkbox",{"touch-target":"wrapper",onChange:o[0]||(o[0]=(...i)=>s(K)&&s(K)(...i)),checked:s(U),indeterminate:!s(U)&&s(R)},null,40,zn),s(w).length?(n(),l("span",Hn,r(e.$t("x_selected",{count:s(B)?s(V).toLocaleString():s(w).length.toLocaleString()})),1)):(n(),l("div",An,[(n(!0),l(b,null,ue(wt.value,(i,a)=>(n(),l(b,{key:i.path},[a===0?(n(),l(b,{key:0},[i.path===c.parent?h((n(),l("span",Un,[_e(r(i.name)+" ("+r(s(V))+")",1)])),[[v,Fe()]]):h((n(),l("a",{key:1,href:"#",onClick:_(d=>ie(i.path),["stop","prevent"])},[_e(r(i.name),1)],8,Kn)),[[v,Fe()]])],64)):(n(),l(b,{key:1},[i.path===c.parent?(n(),l("span",Rn,r(i.name)+" ("+r(s(V))+")",1)):(n(),l("a",{key:1,href:"#",onClick:_(d=>ie(i.path),["stop","prevent"])},r(i.name),9,On))],64))],64))),128))])),s(R)?(n(),l(b,{key:2},[h((n(),k(m,{onClick:_(At,["stop"])},{icon:u(()=>[p(C)]),_:1})),[[v,e.$t("copy")]]),h((n(),k(m,{onClick:_(Ut,["stop"])},{icon:u(()=>[p(ce)]),_:1})),[[v,e.$t("cut")]]),h((n(),k(m,{onClick:_(Ve,["stop"])},{icon:u(()=>[p(q)]),_:1})),[[v,e.$t("delete")]]),h((n(),k(m,{loading:s(St),onClick:_(Et,["stop"])},{icon:u(()=>[p(re)]),_:1},8,["loading"])),[[v,e.$t("download")]])],64)):S("",!0),t("div",Pn,[p(jt,{filter:c,parent:P.value,"get-url":Ee},null,8,["filter","parent"]),h((n(),k(m,{onClick:Ht},{icon:u(()=>[p(Jt)]),_:1})),[[v,e.$t("create_folder")]]),p(H,null,{content:u(i=>[t("md-menu-item",{onClick:_(a=>Le(i,c.parent),["stop"])},[t("div",xn,r(e.$t("upload_files")),1)],8,Qn),t("md-menu-item",{onClick:_(a=>Ne(i,c.parent),["stop"])},[t("div",Wn,r(e.$t("upload_folder")),1)],8,Gn)]),default:u(()=>[h((n(),k(m,null,{icon:u(()=>[p(He)]),_:1})),[[v,e.$t("upload")]])]),_:1}),s(qe)()?h((n(),k(m,{key:0,loading:s(Ct),onClick:Kt},{icon:u(()=>[p(Xt)]),_:1},8,["loading"])),[[v,e.$t("paste")]]):S("",!0),h((n(),k(m,{loading:X.value,onClick:zt},{icon:u(()=>[p(Yt)]),_:1},8,["loading"])),[[v,e.$t("refresh")]]),p(H,null,{content:u(i=>[t("div",jn,[(n(!0),l(b,null,ue(s(it),a=>(n(),l("md-menu-item",{onClick:d=>Mt(i,a.value),key:a.value,selected:a.value===s(Z)},[t("div",Xn,r(e.$t(a.label)),1)],8,Jn))),128))])]),default:u(()=>[h((n(),k(m,{loading:Y.value},{icon:u(()=>[p(Zt)]),_:1},8,["loading"])),[[v,e.$t("sort")]])]),_:1})])]),s(ne)&&Te.value?(n(),l("div",Yn,[t("div",Zn,[(n(),l(b,null,ue(20,i=>t("section",{class:"file-item selectable-card-skeleton",key:i},[t("div",es,[ts,t("span",os,r(i),1)]),ns])),64))])])):S("",!0),t("div",{class:"scroller-wrapper",onDragover:o[4]||(o[4]=_((...i)=>s(ye)&&s(ye)(...i),["stop","prevent"]))},[h(t("div",{class:"drag-mask",onDrop:_(Wt,["stop","prevent"]),onDragleave:o[1]||(o[1]=_((...i)=>s(be)&&s(be)(...i),["stop","prevent"]))},r(e.$t("release_to_send_files")),545),[[go,s(dt)]]),g.value.length>0?(n(),k(s(Eo),{key:0,class:"scroller","data-key":"id","data-sources":g.value,"estimate-size":80},{item:u(({index:i,item:a})=>[t("section",{class:Do(["file-item selectable-card",{selected:s(w).includes(a.id),selecting:s(O).includes(a.id)}]),onClick:_(d=>s(j)(d,a,i,()=>{Nt(a)}),["stop"]),onMouseover:d=>s(J)(d,i)},[t("div",as,[s(O).includes(a.id)?(n(),l("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:_(d=>s(D)(d,a,i),["stop"]),checked:s(st)},null,8,ls)):(n(),l("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:_(d=>s(D)(d,a,i),["stop"]),checked:s(w).includes(a.id)},null,8,is)),t("span",cs,[p(eo,{id:i+1,raw:a},null,8,["id","raw"])])]),t("div",{class:"image",onClick:d=>Bt(d,a)},[a.isDir?(n(),l("img",ds)):(n(),l(b,{key:1},[fe.value.includes(a.id)?(n(),l("img",us)):!me.value.includes(a.id)&&a.fileId?(n(),l("img",{key:1,class:"image-thumb",src:s(So)(a.fileId,"&w=50&h=50"),onError:d=>at(a.id)},null,40,_s)):a.extension?(n(),l("img",{key:2,src:`/ficons/${a.extension}.svg`,class:"svg",onError:d=>lt(a.id)},null,40,ps)):(n(),l("img",hs))],64))],8,rs),t("div",ms,r(a.name),1),t("div",fs,[a.isDir?(n(),l("span",vs,r(e.$t("x_items",a.children)),1)):(n(),l("span",ks,r(s(F)(a.size)),1)),h((n(),l("span",null,[_e(r(s(Fo)(a.updatedAt)),1)])),[[v,s(Vo)(a.updatedAt)]])]),t("div",gs,[a.isDir?(n(),l(b,{key:0},[h((n(),k(m,{class:"sm",onClick:_(d=>s(yt)(a.path),["stop"])},{icon:u(()=>[p(re)]),_:2},1032,["onClick"])),[[v,e.$t("download")]]),p(H,null,{content:u(d=>[t("md-menu-item",{onClick:_(N=>Le(d,a.path),["stop"])},[t("div",bs,r(e.$t("upload_files")),1)],8,ys),t("md-menu-item",{onClick:_(N=>Ne(d,a.path),["stop"])},[t("div",ws,r(e.$t("upload_folder")),1)],8,$s)]),default:u(()=>[h((n(),k(m,{class:"sm"},{icon:u(()=>[p(He)]),_:1})),[[v,e.$t("upload")]])]),_:2},1024)],64)):h((n(),k(m,{key:1,class:"sm",onClick:_(d=>s(oe)(a.path),["stop"])},{icon:u(()=>[p(re)]),_:2},1032,["onClick"])),[[v,e.$t("download")]]),h((n(),k(m,{class:"sm",onClick:_(d=>Gt(a),["stop"])},{icon:u(()=>[p(q)]),_:2},1032,["onClick"])),[[v,e.$t("delete")]]),p(H,null,{content:u(()=>[t("section",Cs,[t("div",Ts,[t("div",qs,r(e.$t("path")),1),t("div",Is,r(a.path),1)])])]),default:u(()=>[h((n(),k(m,{class:"sm"},{icon:u(()=>[p(to)]),_:1})),[[v,e.$t("info")]])]),_:2},1024),p(H,null,{content:u(d=>[t("md-menu-item",{onClick:_(N=>Rt(d,a),["stop"])},[t("div",Ss,r(e.$t("duplicate")),1)],8,Ds),t("md-menu-item",{onClick:_(N=>Ot(d,a),["stop"])},[t("div",Fs,r(e.$t("cut")),1)],8,Vs),t("md-menu-item",{onClick:_(N=>Pt(d,a),["stop"])},[t("div",Ls,r(e.$t("copy")),1)],8,Es),a.isDir&&s(qe)()?(n(),l("md-menu-item",{key:0,onClick:_(N=>Qt(d,a),["stop"])},[t("div",Bs,r(e.$t("paste")),1)],8,Ns)):S("",!0),t("md-menu-item",{onClick:_(N=>xt(d,a),["stop"])},[t("div",zs,r(e.$t("rename")),1)],8,Ms)]),default:u(()=>[h((n(),k(m,{class:"sm"},{icon:u(()=>[p(oo)]),_:1})),[[v,e.$t("actions")]])]),_:2},1024)])],42,ss)]),_:1},8,["data-sources"])):S("",!0),!s(ne)&&g.value.length===0?(n(),l("div",Hs,r(e.$t(s(Lo)(s(ne),s(ge).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):S("",!0),t("input",{ref_key:"fileInput",ref:Tt,style:{display:"none"},type:"file",multiple:"",onChange:o[2]||(o[2]=(...i)=>s(De)&&s(De)(...i))},null,544),t("input",{ref_key:"dirFileInput",ref:It,style:{display:"none"},type:"file",multiple:"",webkitdirectory:"",mozdirectory:"",directory:"",onChange:o[3]||(o[3]=(...i)=>s(Se)&&s(Se)(...i))},null,544)],32)],64)}}}),Xs=tt(As,[["__scopeId","data-v-b95c3ff1"]]);export{Xs as default}; diff --git a/app/src/main/resources/web/assets/HomeView-Bq2MUecw.js b/app/src/main/resources/web/assets/HomeView-DXd8FGXG.js similarity index 97% rename from app/src/main/resources/web/assets/HomeView-Bq2MUecw.js rename to app/src/main/resources/web/assets/HomeView-DXd8FGXG.js index 967cf22d..016f4d68 100644 --- a/app/src/main/resources/web/assets/HomeView-Bq2MUecw.js +++ b/app/src/main/resources/web/assets/HomeView-DXd8FGXG.js @@ -1 +1 @@ -import{_ as P}from"./content-paste-rounded-DMWI-l4g.js";import{b as K,o as l,c as _,a as t,d as M,u as B,r as R,t as T,n as U,e as b,w as y,f as J,g as W,s as w,h as X,i as Y,j as Z,k as tt,l as et,m as a,p as e,q as r,v as $,x as ot,y as nt,z as st,A as at,B as it,C as ct,D as lt,E as V,F as _t,G as rt,_ as mt,H as dt}from"./index-BzaaAwnX.js";import{_ as ut}from"./contact-page-outline-rounded-g8G2lc59.js";import{_ as ht}from"./rss-feed-rounded-9FbiHzkN.js";function Tt(o,i){for(var m,d=-1,u=o.length;++d(l(),_("a",{class:"btn-feature",href:m.path,onClick:h[0]||(h[0]=y(s=>d(m.path),["prevent","stop"]))},[R(u.$slots,"icon"),t("div",v1,[t("span",f1,T(u.$t(m.name)),1),m.count!==void 0?(l(),_("span",{key:0,class:"count",style:U({visibility:m.count>=0?"visible":"hidden"})},T(o.count.toLocaleString()),5)):b("",!0)])],8,q1))}}),b1=o=>(_t("data-v-ae827efe"),o=o(),rt(),o),$1={class:"grids"},y1={class:"card"},z1={class:"card-title"},w1={key:0,class:"total-bytes"},V1={class:"card-body"},C1={class:"card"},M1={class:"card-title"},B1={class:"card-body"},x1={class:"card"},S1={class:"card-title"},k1={class:"card-body"},H1={class:"card"},L1={class:"card-title"},E1={class:"card-body form-row"},G1=["label","error","error-text"],N1=b1(()=>t("md-ripple",null,null,-1)),I1=["disabled"],O1=M({__name:"HomeView",setup(o){const{t:i}=W(),m=B(),{callNumber:d}=w(m),u=X(!1),{app:h,counter:s}=w(Y());function x(){navigator.clipboard.readText().then(n=>{d.value=n})}const{mutate:S,loading:k}=Z({document:it,appApi:!0}),z=()=>{if(!d.value){u.value=!0;return}S({number:d.value})};return tt(d,()=>{u.value=!1}),et({handle:(n,p)=>{if(p)ct(i(p),"error");else if(n){s.value.messages=n.messageCount,s.value.contacts=n.contactCount,s.value.calls=n.callCount,s.value.videos=n.videoCount,s.value.images=n.imageCount,s.value.audios=n.audioCount,s.value.packages=n.packageCount,s.value.notes=n.noteCount,s.value.feedEntries=n.feedEntryCount;let q=n.storageStats.internal.totalBytes,c=n.storageStats.internal.freeBytes;const v=n.storageStats.sdcard;v&&(q+=v.totalBytes,c+=v.freeBytes);const f=n.storageStats.usb;f.length&&(q+=C(f,g=>g.totalBytes),c+=C(f,g=>g.freeBytes)),s.value.total=q,s.value.free=c}},document:lt,variables:null,appApi:!0}),(n,p)=>{const q=mt,c=g1,v=p1,f=m1,g=i1,H=e1,L=Wt,E=ht,G=Pt,N=Qt,I=ut,O=Et,Q=xt,j=wt,A=gt,D=P;return l(),_("div",$1,[t("section",y1,[t("h5",z1,[t("span",null,T(n.$t("storage")),1),a(s).total>=0?(l(),_("span",w1,T(n.$t("storage_free_total",{free:a(V)(a(s).free),total:a(V)(a(s).total)})),1)):b("",!0)]),t("div",V1,[e(c,{name:"images",count:a(s).images,path:"/images"},{icon:r(()=>[e(q)]),_:1},8,["count"]),e(c,{name:"audios",count:a(s).audios,path:"/audios"},{icon:r(()=>[e(v)]),_:1},8,["count"]),e(c,{name:"videos",count:a(s).videos,path:"/videos"},{icon:r(()=>[e(f)]),_:1},8,["count"]),a(h).channel!=="GOOGLE"?(l(),$(c,{key:0,name:"apps",count:a(s).packages,path:"/apps"},{icon:r(()=>[e(g)]),_:1},8,["count"])):b("",!0),e(c,{name:"files",path:"/files/recent"},{icon:r(()=>[e(H)]),_:1})])]),t("section",C1,[t("h5",M1,T(n.$t("work")),1),t("div",B1,[e(c,{name:"page_title.notes",count:a(s).notes,path:"/notes"},{icon:r(()=>[e(L)]),_:1},8,["count"]),e(c,{name:"page_title.feeds",count:a(s).feedEntries,path:"/feeds"},{icon:r(()=>[e(E)]),_:1},8,["count"]),a(h).channel!=="GOOGLE"?(l(),$(c,{key:0,name:"messages",count:a(s).messages,path:"/messages"},{icon:r(()=>[e(G)]),_:1},8,["count"])):b("",!0),a(h).channel!=="GOOGLE"?(l(),$(c,{key:1,name:"calls",count:a(s).calls,path:"/calls"},{icon:r(()=>[e(N)]),_:1},8,["count"])):b("",!0),e(c,{name:"contacts",count:a(s).contacts,path:"/contacts"},{icon:r(()=>[e(I)]),_:1},8,["count"])])]),t("section",x1,[t("h5",S1,T(n.$t("tools")),1),t("div",k1,[e(c,{name:"screen_mirror",path:"/screen-mirror"},{icon:r(()=>[e(O)]),_:1}),e(c,{name:"device_info",path:"/device-info"},{icon:r(()=>[e(Q)]),_:1}),e(c,{name:"qrcode_generator",path:"/qrcode-generator"},{icon:r(()=>[e(j)]),_:1}),e(c,{name:"json_viewer",path:"/json-viewer"},{icon:r(()=>[e(A)]),_:1})])]),t("section",H1,[t("h5",L1,T(n.$t("call_phone")),1),t("div",E1,[ot(t("md-outlined-text-field",{type:"tel",label:n.$t("phone_number"),class:"form-control flex-3","onUpdate:modelValue":p[0]||(p[0]=F=>st(d)?d.value=F:null),error:u.value,"error-text":n.$t("valid.required"),onKeyup:at(z,["enter"])},[t("button",{class:"btn-icon",slot:"trailing-icon",onClick:y(x,["prevent"])},[N1,e(D)])],40,G1),[[nt,a(d)]]),t("md-filled-button",{class:"btn-lg",onClick:y(z,["prevent"]),disabled:a(k)},T(n.$t("call")),9,I1)])])])}}}),F1=dt(O1,[["__scopeId","data-v-ae827efe"]]);export{F1 as default}; +import{_ as P}from"./content-paste-rounded-DUKWQrlf.js";import{b as K,o as l,c as _,a as t,d as M,u as B,r as R,t as T,n as U,e as b,w as y,f as J,g as W,s as w,h as X,i as Y,j as Z,k as tt,l as et,m as a,p as e,q as r,v as $,x as ot,y as nt,z as st,A as at,B as it,C as ct,D as lt,E as V,F as _t,G as rt,_ as mt,H as dt}from"./index-R8dLcqG_.js";import{_ as ut}from"./contact-page-outline-rounded-By1MHhQ9.js";import{_ as ht}from"./rss-feed-rounded-BCiGdgJ5.js";function Tt(o,i){for(var m,d=-1,u=o.length;++d(l(),_("a",{class:"btn-feature",href:m.path,onClick:h[0]||(h[0]=y(s=>d(m.path),["prevent","stop"]))},[R(u.$slots,"icon"),t("div",v1,[t("span",f1,T(u.$t(m.name)),1),m.count!==void 0?(l(),_("span",{key:0,class:"count",style:U({visibility:m.count>=0?"visible":"hidden"})},T(o.count.toLocaleString()),5)):b("",!0)])],8,q1))}}),b1=o=>(_t("data-v-ae827efe"),o=o(),rt(),o),$1={class:"grids"},y1={class:"card"},z1={class:"card-title"},w1={key:0,class:"total-bytes"},V1={class:"card-body"},C1={class:"card"},M1={class:"card-title"},B1={class:"card-body"},x1={class:"card"},S1={class:"card-title"},k1={class:"card-body"},H1={class:"card"},L1={class:"card-title"},E1={class:"card-body form-row"},G1=["label","error","error-text"],N1=b1(()=>t("md-ripple",null,null,-1)),I1=["disabled"],O1=M({__name:"HomeView",setup(o){const{t:i}=W(),m=B(),{callNumber:d}=w(m),u=X(!1),{app:h,counter:s}=w(Y());function x(){navigator.clipboard.readText().then(n=>{d.value=n})}const{mutate:S,loading:k}=Z({document:it,appApi:!0}),z=()=>{if(!d.value){u.value=!0;return}S({number:d.value})};return tt(d,()=>{u.value=!1}),et({handle:(n,p)=>{if(p)ct(i(p),"error");else if(n){s.value.messages=n.messageCount,s.value.contacts=n.contactCount,s.value.calls=n.callCount,s.value.videos=n.videoCount,s.value.images=n.imageCount,s.value.audios=n.audioCount,s.value.packages=n.packageCount,s.value.notes=n.noteCount,s.value.feedEntries=n.feedEntryCount;let q=n.storageStats.internal.totalBytes,c=n.storageStats.internal.freeBytes;const v=n.storageStats.sdcard;v&&(q+=v.totalBytes,c+=v.freeBytes);const f=n.storageStats.usb;f.length&&(q+=C(f,g=>g.totalBytes),c+=C(f,g=>g.freeBytes)),s.value.total=q,s.value.free=c}},document:lt,variables:null,appApi:!0}),(n,p)=>{const q=mt,c=g1,v=p1,f=m1,g=i1,H=e1,L=Wt,E=ht,G=Pt,N=Qt,I=ut,O=Et,Q=xt,j=wt,A=gt,D=P;return l(),_("div",$1,[t("section",y1,[t("h5",z1,[t("span",null,T(n.$t("storage")),1),a(s).total>=0?(l(),_("span",w1,T(n.$t("storage_free_total",{free:a(V)(a(s).free),total:a(V)(a(s).total)})),1)):b("",!0)]),t("div",V1,[e(c,{name:"images",count:a(s).images,path:"/images"},{icon:r(()=>[e(q)]),_:1},8,["count"]),e(c,{name:"audios",count:a(s).audios,path:"/audios"},{icon:r(()=>[e(v)]),_:1},8,["count"]),e(c,{name:"videos",count:a(s).videos,path:"/videos"},{icon:r(()=>[e(f)]),_:1},8,["count"]),a(h).channel!=="GOOGLE"?(l(),$(c,{key:0,name:"apps",count:a(s).packages,path:"/apps"},{icon:r(()=>[e(g)]),_:1},8,["count"])):b("",!0),e(c,{name:"files",path:"/files/recent"},{icon:r(()=>[e(H)]),_:1})])]),t("section",C1,[t("h5",M1,T(n.$t("work")),1),t("div",B1,[e(c,{name:"page_title.notes",count:a(s).notes,path:"/notes"},{icon:r(()=>[e(L)]),_:1},8,["count"]),e(c,{name:"page_title.feeds",count:a(s).feedEntries,path:"/feeds"},{icon:r(()=>[e(E)]),_:1},8,["count"]),a(h).channel!=="GOOGLE"?(l(),$(c,{key:0,name:"messages",count:a(s).messages,path:"/messages"},{icon:r(()=>[e(G)]),_:1},8,["count"])):b("",!0),a(h).channel!=="GOOGLE"?(l(),$(c,{key:1,name:"calls",count:a(s).calls,path:"/calls"},{icon:r(()=>[e(N)]),_:1},8,["count"])):b("",!0),e(c,{name:"contacts",count:a(s).contacts,path:"/contacts"},{icon:r(()=>[e(I)]),_:1},8,["count"])])]),t("section",x1,[t("h5",S1,T(n.$t("tools")),1),t("div",k1,[e(c,{name:"screen_mirror",path:"/screen-mirror"},{icon:r(()=>[e(O)]),_:1}),e(c,{name:"device_info",path:"/device-info"},{icon:r(()=>[e(Q)]),_:1}),e(c,{name:"qrcode_generator",path:"/qrcode-generator"},{icon:r(()=>[e(j)]),_:1}),e(c,{name:"json_viewer",path:"/json-viewer"},{icon:r(()=>[e(A)]),_:1})])]),t("section",H1,[t("h5",L1,T(n.$t("call_phone")),1),t("div",E1,[ot(t("md-outlined-text-field",{type:"tel",label:n.$t("phone_number"),class:"form-control flex-3","onUpdate:modelValue":p[0]||(p[0]=F=>st(d)?d.value=F:null),error:u.value,"error-text":n.$t("valid.required"),onKeyup:at(z,["enter"])},[t("button",{class:"btn-icon",slot:"trailing-icon",onClick:y(x,["prevent"])},[N1,e(D)])],40,G1),[[nt,a(d)]]),t("md-filled-button",{class:"btn-lg",onClick:y(z,["prevent"]),disabled:a(k)},T(n.$t("call")),9,I1)])])])}}}),F1=dt(O1,[["__scopeId","data-v-ae827efe"]]);export{F1 as default}; diff --git a/app/src/main/resources/web/assets/ImagesSidebar-BGOsPYeJ.js b/app/src/main/resources/web/assets/ImagesSidebar-BGOsPYeJ.js new file mode 100644 index 00000000..4fed9371 --- /dev/null +++ b/app/src/main/resources/web/assets/ImagesSidebar-BGOsPYeJ.js @@ -0,0 +1 @@ +import{_ as t}from"./MediaSidebar.vuevuetypescriptsetuptruelang-kDQsOpRT.js";import{d as a,v as r,m as e,o as m,J as p,aX as n}from"./index-R8dLcqG_.js";import"./LeftSidebar.vuevuetypescriptsetuptruelang-BWG8gajF.js";import"./TagFilter.vuevuetypescriptsetuptruelang-DySu9lzm.js";import"./more-vert-zjmMMiPD.js";import"./EditValueModal-O1aAFYgx.js";import"./vee-validate.esm-vpr6zxQb.js";import"./search-ByVbj6Ls.js";const k=a({__name:"ImagesSidebar",setup(s){return(i,_)=>{const o=t;return m(),r(o,{type:e(p).IMAGE,gql:e(n)},null,8,["type","gql"])}}});export{k as default}; diff --git a/app/src/main/resources/web/assets/ImagesSidebar-BajmyCvN.js b/app/src/main/resources/web/assets/ImagesSidebar-BajmyCvN.js deleted file mode 100644 index f8754f2c..00000000 --- a/app/src/main/resources/web/assets/ImagesSidebar-BajmyCvN.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t}from"./MediaSidebar.vuevuetypescriptsetuptruelang-rTL93G-q.js";import{d as a,v as r,m as e,o as m,J as p,aX as n}from"./index-BzaaAwnX.js";import"./LeftSidebar.vuevuetypescriptsetuptruelang-xn7lCt7t.js";import"./TagFilter.vuevuetypescriptsetuptruelang-CUu0usUl.js";import"./more-vert-BRJfC0iG.js";import"./EditValueModal-Ws2hdG3a.js";import"./vee-validate.esm-DNjIRPsN.js";import"./search-DwB6FdxH.js";const k=a({__name:"ImagesSidebar",setup(s){return(i,_)=>{const o=t;return m(),r(o,{type:e(p).IMAGE,gql:e(n)},null,8,["type","gql"])}}});export{k as default}; diff --git a/app/src/main/resources/web/assets/ImagesView-BnPoKDHs.js b/app/src/main/resources/web/assets/ImagesView-BnPoKDHs.js new file mode 100644 index 00000000..4b4456fb --- /dev/null +++ b/app/src/main/resources/web/assets/ImagesView-BnPoKDHs.js @@ -0,0 +1 @@ +import{_ as fo}from"./VPagination.vuevuetypescriptsetuptruelang-goYu96wT.js";import{_ as Co,a as $o,b as bo,c as wo,d as Io}from"./grid-view-outline-rounded-D3vSSmrh.js";import{d as To,u as Do,s as Ue,h as W,g as So,I as Ao,i as Eo,ai as qe,aF as Mo,J as Fo,aG as Vo,aH as Be,aI as Lo,aj as zo,K as Ro,aJ as Uo,aK as qo,L as Bo,M as Ho,c as m,a as r,m as e,t as y,O as f,x as u,v as i,q as d,w as a,e as M,p as l,aL as No,N as q,P as j,Q as Ko,aM as Qo,f as Po,C as Go,aN as Oo,aO as Wo,aP as jo,ao as Jo,S as Xo,o as t,aQ as J,aR as X,aC as _e,aS as F,E as He,U as Zo,V as Yo,W as xo,X as es,ar as os,aq as ss,Z as ts,$ as ns,a0 as as,a1 as V,ae as ls,aT as is,as as cs,aU as ds,a2 as rs,aV as us,a4 as _s,a3 as ps,aW as ms}from"./index-R8dLcqG_.js";import{_ as ks,a as gs}from"./SearchInput-DhaE-3h8.js";import{_ as vs}from"./sort-rounded-CsJpi3ce.js";import{_ as hs}from"./upload-rounded-CQIzYelP.js";import{u as ys}from"./search-ByVbj6Ls.js";import{a as fs}from"./tags-Dbpv368M.js";import{u as Cs,a as $s}from"./key-events-BNCM8SMB.js";import"./search-rounded-CULEMJ2O.js";import"./rss-feed-rounded-BCiGdgJ5.js";import"./vee-validate.esm-vpr6zxQb.js";const bs={class:"top-app-bar"},ws=["checked","indeterminate"],Is={class:"title"},Ts={key:0},Ds={key:1},Ss={class:"actions"},As=["onClick"],Es={slot:"headline"},Ms=["onClick"],Fs={slot:"headline"},Vs={class:"menu-items"},Ls=["onClick","selected"],zs={slot:"headline"},Rs={class:"sm"},Us=["selected"],qs=["selected"],Bs=["onClick","onMouseover"],Hs=["src"],Ns={key:1,class:"actions"},Ks={class:"right"},Qs=["onClick","onMouseover"],Ps={class:"start"},Gs=["onClick","checked"],Os=["onClick","checked"],Ws={class:"number"},js=["src"],Js={class:"title"},Xs={class:"subtitle"},Zs=["onClick"],Ys={class:"actions"},xs={class:"time"},et={key:2,class:"no-data-placeholder"},D=55,mt=To({__name:"ImagesView",setup(ot){var Ve;const I=Do(),{imageSortBy:B}=Ue(I),T=W([]),{t:Ne}=So(),{parseQ:Ke}=ys(),S=Ao({tagIds:[]}),pe=Eo(),{app:A,urlTokenKey:Z,uploads:Y}=Ue(pe),{input:Qe,upload:Pe,uploadChanged:me}=qe(Y),{input:Ge,upload:Oe,uploadChanged:ke}=qe(Y),{dropping:We,fileDragEnter:ge,fileDragLeave:ve,dropFiles:je}=Mo(Y),x=W(!1),_=Fo.IMAGE,he=Ko(),ye=he.query,ee=W(parseInt(((Ve=ye.page)==null?void 0:Ve.toString())??"1")),{tags:H,buckets:oe,fetch:Je}=Vo(_),Xe=Be(()=>{const o={};return oe.value.forEach(n=>{o[n.id]=n}),o}),$=W(""),{addToTags:Ze}=fs(_,H),{deleteItems:se,deleteItem:N}=Lo(),{view:Ye}=Qo(_),{selectedIds:h,allChecked:fe,realAllChecked:w,selectRealAll:xe,allCheckedAlertVisible:eo,clearSelection:L,toggleAllChecked:Ce,toggleSelect:z,total:b,checked:R,shiftEffectingIds:K,handleItemClick:$e,handleMouseOver:be,selectAll:oo,shouldSelect:we}=Cs(T),{downloadItems:Ie}=zo(Z,_,L,"images.zip"),{downloadFile:Q}=os(Z),Te=o=>{const n=he.query.q;Po(I,n?`/images?page=${o}&q=${n}`:`/images?page=${o}`)},{keyDown:De,keyUp:Se}=$s(b,D,ee,oo,L,Te,()=>{J(X.MEDIA_TRASH,A.value.osVersion)?O(_,U()):se(_,h.value,w.value,b.value,$.value)}),so=ss(),to=Be(()=>T.value.map(o=>({src:_e(o.fileId),name:F(o.path),duration:0,size:o.size,path:o.path,type:_,data:o})));function te(o){pe.lightbox={sources:to.value,index:o,visible:!0}}const U=()=>{let o=$.value;return w.value||(o=`ids:${h.value.join(",")}`),o};function Ae(o){ts(ns,{type:_,tags:H.value,item:{key:o.id,title:o.title,size:o.size},selected:H.value.filter(n=>o.tags.some(C=>C.id===n.id))})}function no(o,n){if(B.value===n){o.close();return}x.value=!0,B.value=n,o.close()}const{loading:P,fetch:G}=Ro({handle:async(o,n)=>{if(x.value=!1,n)Go(Ne(n),"error");else if(o){const C=[];for(const c of o.images)C.push({...c,fileId:Oo(Z.value,c.path,c.id)});T.value=C,b.value=o.imageCount}},document:Wo,variables:()=>({offset:(ee.value-1)*D,limit:D,query:$.value,sortBy:B.value}),appApi:!0}),{trashLoading:ne,trash:O}=Uo(),{restoreLoading:ae,restore:le}=qo();function ao(o){return o?`/images?q=${o}`:"/images"}function ie(){const o=oe.value.find(n=>n.id===S.bucketId);return o?ms(o.topItems[0]):`${A.value.internalStoragePath}/Pictures`}function lo(o){Pe(ie()),o.close()}function io(o){Oe(ie()),o.close()}function co(o){je(o,ie(),"image")}const Ee=o=>{o.type===_&&(L(),G())},Me=o=>{o.type===_&&G()},Fe=o=>{o.type===_&&(L(),G())};return Bo(()=>{var o;$.value=as(((o=ye.q)==null?void 0:o.toString())??""),Ke(S,$.value),Je(),G(),V.on("item_tags_updated",Me),V.on("items_tags_updated",Ee),V.on("media_items_actioned",Fe),window.addEventListener("keydown",De),window.addEventListener("keyup",Se)}),Ho(()=>{V.off("item_tags_updated",Me),V.off("items_tags_updated",Ee),V.off("media_items_actioned",Fe),window.removeEventListener("keydown",De),window.removeEventListener("keyup",Se)}),(o,n)=>{const C=ls,c=jo,ce=is,E=cs,de=ds,re=rs,ro=ks,uo=hs,Le=Jo,_o=vs,po=Co,mo=$o,ko=gs,ue=bo,ze=wo,go=us,Re=_s,vo=ps,ho=Io,yo=fo,p=Xo("tooltip");return t(),m(f,null,[r("div",bs,[r("md-checkbox",{"touch-target":"wrapper",onChange:n[0]||(n[0]=(...s)=>e(Ce)&&e(Ce)(...s)),checked:e(fe),indeterminate:!e(fe)&&e(R)},null,40,ws),r("div",Is,[e(h).length?(t(),m("span",Ts,y(o.$t("x_selected",{count:e(w)?e(b).toLocaleString():e(h).length.toLocaleString()})),1)):(t(),m("span",Ds,y(o.$t("page_title.images"))+" ("+y(e(b).toLocaleString())+")",1)),e(R)?(t(),m(f,{key:2},[S.trash?(t(),m(f,{key:0},[u((t(),i(c,{onClick:n[1]||(n[1]=a(s=>e(se)(e(_),e(h),e(w),e(b),$.value),["stop"]))},{icon:d(()=>[l(C)]),_:1})),[[p,o.$t("delete")]]),u((t(),i(c,{onClick:n[2]||(n[2]=a(s=>e(le)(e(_),U()),["stop"])),loading:e(ae)(U())},{icon:d(()=>[l(ce)]),_:1},8,["loading"])),[[p,o.$t("restore")]]),u((t(),i(c,{onClick:n[3]||(n[3]=a(s=>e(Ie)(e(w),e(h),$.value),["stop"]))},{icon:d(()=>[l(E)]),_:1})),[[p,o.$t("download")]])],64)):(t(),m(f,{key:1},[e(J)(e(X).MEDIA_TRASH,e(A).osVersion)?u((t(),i(c,{key:0,onClick:n[4]||(n[4]=a(s=>e(O)(e(_),U()),["stop"])),loading:e(ne)(U())},{icon:d(()=>[l(de)]),_:1},8,["loading"])),[[p,o.$t("move_to_trash")]]):u((t(),i(c,{key:1,onClick:n[5]||(n[5]=a(s=>e(se)(e(_),e(h),e(w),e(b),$.value),["stop"]))},{icon:d(()=>[l(C)]),_:1})),[[p,o.$t("delete")]]),u((t(),i(c,{onClick:n[6]||(n[6]=a(s=>e(Ie)(e(w),e(h),$.value),["stop"]))},{icon:d(()=>[l(E)]),_:1})),[[p,o.$t("download")]]),u((t(),i(c,{onClick:n[7]||(n[7]=a(s=>e(Ze)(e(h),e(w),$.value),["stop"]))},{icon:d(()=>[l(re)]),_:1})),[[p,o.$t("add_to_tags")]])],64))],64)):M("",!0)]),r("div",Ss,[l(ro,{filter:S,tags:e(H),buckets:e(oe),"get-url":ao},null,8,["filter","tags","buckets"]),S.trash?M("",!0):(t(),i(Le,{key:0},{content:d(s=>[r("md-menu-item",{onClick:a(g=>lo(s),["stop"])},[r("div",Es,y(o.$t("upload_files")),1)],8,As),r("md-menu-item",{onClick:a(g=>io(s),["stop"])},[r("div",Fs,y(o.$t("upload_folder")),1)],8,Ms)]),default:d(()=>[u((t(),i(c,null,{icon:d(()=>[l(uo)]),_:1})),[[p,o.$t("upload")]])]),_:1})),l(Le,null,{content:d(s=>[r("div",Vs,[(t(!0),m(f,null,j(e(so),g=>(t(),m("md-menu-item",{onClick:k=>no(s,g.value),key:g.value,selected:g.value===e(B)},[r("div",zs,y(o.$t(g.label)),1)],8,Ls))),128))])]),default:d(()=>[u((t(),i(c,{loading:x.value},{icon:d(()=>[l(_o)]),_:1},8,["loading"])),[[p,o.$t("sort")]])]),_:1}),r("md-outlined-segmented-button-set",Rs,[r("md-outlined-segmented-button",{"data-value":"grid","no-checkmark":"",selected:!e(I).imagesCardView,onClick:n[8]||(n[8]=s=>e(I).imagesCardView=!1)},[l(po,{slot:"icon"})],8,Us),r("md-outlined-segmented-button",{"data-value":"card","no-checkmark":"",selected:e(I).imagesCardView,onClick:n[9]||(n[9]=s=>e(I).imagesCardView=!0)},[l(mo,{slot:"icon"})],8,qs)])])]),l(ko,{limit:D,total:e(b),"all-checked-alert-visible":e(eo),"real-all-checked":e(w),"select-real-all":e(xe),"clear-selection":e(L)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),r("div",{class:"scroll-content",onDragover:n[13]||(n[13]=a((...s)=>e(ge)&&e(ge)(...s),["stop","prevent"]))},[u(r("div",{class:"drag-mask",onDrop:a(co,["stop","prevent"]),onDragleave:n[10]||(n[10]=a((...s)=>e(ve)&&e(ve)(...s),["stop","prevent"]))},y(o.$t("release_to_send_files")),545),[[No,e(We)]]),e(I).imagesCardView?(t(),m("div",{key:1,class:q(["media-list",{"select-mode":e(R)}])},[(t(!0),m(f,null,j(T.value,(s,g)=>{var k;return t(),m("section",{class:q(["media-item selectable-card",{selected:e(h).includes(s.id),selecting:e(K).includes(s.id)}]),key:s.id,onClick:a(v=>e($e)(v,s,g,te),["stop"]),onMouseover:v=>e(be)(v,g)},[r("div",Ps,[e(K).includes(s.id)?(t(),m("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:a(v=>e(z)(v,s,g),["stop"]),checked:e(we)},null,8,Gs)):(t(),m("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:a(v=>e(z)(v,s,g),["stop"]),checked:e(h).includes(s.id)},null,8,Os)),r("span",Ws,[l(vo,{id:g+1,raw:s},null,8,["id","raw"])])]),r("img",{class:"image",src:e(_e)(s.fileId,"&w=200&h=200"),onerror:"this.src='/broken-image.png'"},null,8,js),r("div",Js,y(e(F)(s.path)),1),r("div",Xs,[r("span",null,y(e(He)(s.size)),1),r("a",{onClick:a(v=>e(Ye)(e(I),s.bucketId),["stop","prevent"])},y((k=Xe.value[s.bucketId])==null?void 0:k.name),9,Zs),l(Re,{tags:s.tags,type:e(_),"only-links":!0},null,8,["tags","type"])]),r("div",Ys,[S.trash?(t(),m(f,{key:0},[u((t(),i(c,{class:"sm",onClick:a(v=>e(N)(e(_),s),["stop"])},{icon:d(()=>[l(C)]),_:2},1032,["onClick"])),[[p,o.$t("delete")]]),u((t(),i(c,{class:"sm",onClick:a(v=>e(le)(e(_),`ids:${s.id}`),["stop"]),loading:e(ae)(`ids:${s.id}`)},{icon:d(()=>[l(ce)]),_:2},1032,["onClick","loading"])),[[p,o.$t("restore")]]),u((t(),i(c,{class:"sm",onClick:a(v=>e(Q)(s.path,e(F)(s.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(E)]),_:2},1032,["onClick"])),[[p,o.$t("download")]])],64)):(t(),m(f,{key:1},[e(J)(e(X).MEDIA_TRASH,e(A).osVersion)?u((t(),i(c,{key:0,class:"sm",onClick:a(v=>e(O)(e(_),`ids:${s.id}`),["stop"]),loading:e(ne)(`ids:${s.id}`)},{icon:d(()=>[l(de)]),_:2},1032,["onClick","loading"])),[[p,o.$t("move_to_trash")]]):u((t(),i(c,{key:1,class:"sm",onClick:a(v=>e(N)(e(_),s),["stop"])},{icon:d(()=>[l(C)]),_:2},1032,["onClick"])),[[p,o.$t("delete")]]),u((t(),i(c,{class:"sm",onClick:a(v=>e(Q)(s.path,e(F)(s.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(E)]),_:2},1032,["onClick"])),[[p,o.$t("download")]]),u((t(),i(c,{class:"sm",onClick:a(v=>Ae(s),["stop"])},{icon:d(()=>[l(re)]),_:2},1032,["onClick"])),[[p,o.$t("add_to_tags")]])],64))]),r("div",xs,[u((t(),m("span",null,[Yo(y(e(xo)(s.createdAt)),1)])),[[p,e(Zo)(s.createdAt)]])])],42,Qs)}),128)),e(P)&&T.value.length===0?(t(),i(ho,{key:0,limit:D})):M("",!0)],2)):(t(),m("div",{key:0,class:q(["media-grid",{"select-mode":e(R)}])},[(t(!0),m(f,null,j(T.value,(s,g)=>(t(),m("section",{class:q(["media-item",{selected:e(h).includes(s.id),selecting:e(K).includes(s.id)}]),key:s.id,onClick:a(k=>e($e)(k,s,g,te),["stop"]),onMouseover:k=>e(be)(k,g)},[r("img",{class:"image-thumb image",src:e(_e)(s.fileId,"&w=200&h=200"),onerror:"this.src='/broken-image.png'"},null,8,Hs),e(K).includes(s.id)?(t(),i(c,{key:0,class:"btn-checkbox",onClick:a(k=>e(z)(k,s,g),["stop"])},{icon:d(()=>[e(we)?(t(),i(ue,{key:0})):(t(),i(ze,{key:1}))]),_:2},1032,["onClick"])):e(h).includes(s.id)?(t(),i(c,{key:1,class:"btn-checkbox",onClick:a(k=>e(z)(k,s,g),["stop"])},{icon:d(()=>[l(ue)]),_:2},1032,["onClick"])):(t(),m(f,{key:2},[l(c,{class:"btn-checkbox",onClick:a(k=>e(z)(k,s,g),["stop"])},{icon:d(()=>[e(h).includes(s.id)?(t(),i(ue,{key:0})):(t(),i(ze,{key:1}))]),_:2},1032,["onClick"]),e(R)?u((t(),i(c,{key:0,class:"btn-zoom sm",onClick:a(k=>te(g),["stop"])},{icon:d(()=>[l(go)]),_:2},1032,["onClick"])),[[p,o.$t("open")]]):(t(),m("div",Ns,[S.trash?(t(),m(f,{key:0},[u((t(),i(c,{class:"sm",onClick:a(k=>e(N)(e(_),s),["stop"])},{icon:d(()=>[l(C)]),_:2},1032,["onClick"])),[[p,o.$t("delete")]]),u((t(),i(c,{class:"sm",onClick:a(k=>e(le)(e(_),`ids:${s.id}`),["stop"]),loading:e(ae)(`ids:${s.id}`)},{icon:d(()=>[l(ce)]),_:2},1032,["onClick","loading"])),[[p,o.$t("restore")]]),u((t(),i(c,{class:"sm",onClick:a(k=>e(Q)(s.path,e(F)(s.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(E)]),_:2},1032,["onClick"])),[[p,o.$t("download")]])],64)):(t(),m(f,{key:1},[e(J)(e(X).MEDIA_TRASH,e(A).osVersion)?u((t(),i(c,{key:0,class:"sm",onClick:a(k=>e(O)(e(_),`ids:${s.id}`),["stop"]),loading:e(ne)(`ids:${s.id}`)},{icon:d(()=>[l(de)]),_:2},1032,["onClick","loading"])),[[p,o.$t("move_to_trash")]]):u((t(),i(c,{key:1,class:"sm",onClick:a(k=>e(N)(e(_),s),["stop"])},{icon:d(()=>[l(C)]),_:2},1032,["onClick"])),[[p,o.$t("delete")]]),u((t(),i(c,{class:"sm",onClick:a(k=>e(Q)(s.path,e(F)(s.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(E)]),_:2},1032,["onClick"])),[[p,o.$t("download")]]),u((t(),i(c,{class:"sm",onClick:a(k=>Ae(s),["stop"])},{icon:d(()=>[l(re)]),_:2},1032,["onClick"])),[[p,o.$t("add_to_tags")]])],64))])),r("div",{class:q(["info",{"has-tags":s.tags.length>0}])},[l(Re,{tags:s.tags,type:e(_)},null,8,["tags","type"]),r("span",Ks,y(e(He)(s.size)),1)],2)],64))],42,Bs))),128)),e(P)&&T.value.length===0?(t(),m(f,{key:0},j(D,s=>r("section",{class:"skeleton-image media-item",key:s})),64)):M("",!0)],2)),!e(P)&&T.value.length===0?(t(),m("div",et,y(o.$t(e(es)(e(P),e(A).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):M("",!0),e(b)>D?(t(),i(yo,{key:3,page:ee.value,go:Te,total:e(b),limit:D},null,8,["page","total"])):M("",!0),r("input",{ref_key:"fileInput",ref:Qe,style:{display:"none"},type:"file",accept:"image/*",multiple:"",onChange:n[11]||(n[11]=(...s)=>e(me)&&e(me)(...s))},null,544),r("input",{ref_key:"dirFileInput",ref:Ge,style:{display:"none"},type:"file",accept:"image/*",multiple:"",webkitdirectory:"",mozdirectory:"",directory:"",onChange:n[12]||(n[12]=(...s)=>e(ke)&&e(ke)(...s))},null,544)],32)],64)}}});export{mt as default}; diff --git a/app/src/main/resources/web/assets/ImagesView-CDVlRIWh.js b/app/src/main/resources/web/assets/ImagesView-CDVlRIWh.js deleted file mode 100644 index 633cfa4e..00000000 --- a/app/src/main/resources/web/assets/ImagesView-CDVlRIWh.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as fo}from"./VPagination.vuevuetypescriptsetuptruelang-DJTUsUyq.js";import{_ as Co,a as $o,b as bo,c as wo,d as Io}from"./grid-view-outline-rounded-CLDXc2EL.js";import{d as To,u as Do,s as Ue,h as O,g as So,I as Ao,i as Eo,ai as qe,aF as Mo,J as Fo,aG as Vo,aH as Be,aI as Lo,aj as zo,K as Ro,aJ as Uo,aK as qo,L as Bo,M as Ho,c as m,a as r,m as e,t as y,O as f,x as u,v as i,q as d,w as a,e as M,p as l,aL as No,N as q,P as W,Q as Ko,aM as Po,f as Qo,C as Go,aN as Oo,aO as Wo,aP as jo,ao as Jo,S as Xo,o as t,aQ as j,aR as J,aC as _e,aS as F,E as He,U as Zo,V as Yo,W as xo,X as es,ar as os,aq as ss,Z as ts,$ as ns,a0 as as,a1 as V,ae as ls,aT as is,as as cs,aU as ds,a2 as rs,aV as us,a4 as _s,a3 as ps,aW as ms}from"./index-BzaaAwnX.js";import{_ as ks,a as gs}from"./SearchInput-DTMVECJE.js";import{_ as vs}from"./sort-rounded-BiVhN4C5.js";import{_ as hs}from"./upload-rounded-BkrPpEdb.js";import{u as ys}from"./search-DwB6FdxH.js";import{a as fs}from"./tags-BvnEKqTV.js";import{u as Cs,a as $s}from"./key-events-C5OjC_dP.js";import"./search-rounded-Btuwf-IQ.js";import"./rss-feed-rounded-9FbiHzkN.js";import"./vee-validate.esm-DNjIRPsN.js";const bs={class:"top-app-bar"},ws=["checked","indeterminate"],Is={class:"title"},Ts={key:0},Ds={key:1},Ss={class:"actions"},As=["onClick"],Es={slot:"headline"},Ms=["onClick"],Fs={slot:"headline"},Vs={class:"menu-items"},Ls=["onClick","selected"],zs={slot:"headline"},Rs={class:"sm"},Us=["selected"],qs=["selected"],Bs=["onClick","onMouseover"],Hs=["src"],Ns={key:1,class:"actions"},Ks={class:"right"},Ps=["onClick","onMouseover"],Qs={class:"start"},Gs=["onClick","checked"],Os=["onClick","checked"],Ws={class:"number"},js=["src"],Js={class:"title"},Xs={class:"subtitle"},Zs=["onClick"],Ys={class:"actions"},xs={class:"time"},et={key:2,class:"no-data-placeholder"},D=55,mt=To({__name:"ImagesView",setup(ot){var Ve;const I=Do(),{imageSortBy:X}=Ue(I),T=O([]),{t:Ne}=So(),{parseQ:Ke}=ys(),S=Ao({tagIds:[]}),pe=Eo(),{app:A,urlTokenKey:Z,uploads:Y}=Ue(pe),{input:Pe,upload:Qe,uploadChanged:me}=qe(Y),{input:Ge,upload:Oe,uploadChanged:ke}=qe(Y),{dropping:We,fileDragEnter:ge,fileDragLeave:ve,dropFiles:je}=Mo(Y),x=O(!1),_=Fo.IMAGE,he=Ko(),ye=he.query,ee=O(parseInt(((Ve=ye.page)==null?void 0:Ve.toString())??"1")),{tags:B,buckets:oe,fetch:Je}=Vo(_),Xe=Be(()=>{const o={};return oe.value.forEach(n=>{o[n.id]=n}),o}),$=O(""),{addToTags:Ze}=fs(_,B),{deleteItems:se,deleteItem:H}=Lo(),{view:Ye}=Po(_),{selectedIds:h,allChecked:fe,realAllChecked:w,selectRealAll:xe,allCheckedAlertVisible:eo,clearSelection:L,toggleAllChecked:Ce,toggleSelect:z,total:b,checked:R,shiftEffectingIds:N,handleItemClick:$e,handleMouseOver:be,selectAll:oo,shouldSelect:we}=Cs(T),{downloadItems:Ie}=zo(Z,_,L,"images.zip"),{downloadFile:K}=os(Z),Te=o=>{const n=he.query.q;Qo(I,n?`/images?page=${o}&q=${n}`:`/images?page=${o}`)},{keyDown:De,keyUp:Se}=$s(b,D,ee,oo,L,Te,()=>{j(J.MEDIA_TRASH,A.value.osVersion)?G(_,U()):se(_,h.value,w.value,b.value,$.value)}),so=ss(),to=Be(()=>T.value.map(o=>({src:_e(o.fileId),name:F(o.path),duration:0,size:o.size,path:o.path,type:_,data:o})));function te(o){pe.lightbox={sources:to.value,index:o,visible:!0}}const U=()=>{let o=$.value;return w.value||(o=`ids:${h.value.join(",")}`),o};function Ae(o){ts(ns,{type:_,tags:B.value,item:{key:o.id,title:o.title,size:o.size},selected:B.value.filter(n=>o.tags.some(C=>C.id===n.id))})}function no(o,n){x.value=!0,X.value=n,o.close()}const{loading:P,fetch:Q}=Ro({handle:async(o,n)=>{if(x.value=!1,n)Go(Ne(n),"error");else if(o){const C=[];for(const c of o.images)C.push({...c,fileId:Oo(Z.value,c.path,c.id)});T.value=C,b.value=o.imageCount}},document:Wo,variables:()=>({offset:(ee.value-1)*D,limit:D,query:$.value,sortBy:X.value}),appApi:!0}),{trashLoading:ne,trash:G}=Uo(),{restoreLoading:ae,restore:le}=qo();function ao(o){return o?`/images?q=${o}`:"/images"}function ie(){const o=oe.value.find(n=>n.id===S.bucketId);return o?ms(o.topItems[0]):`${A.value.internalStoragePath}/Pictures`}function lo(o){Qe(ie()),o.close()}function io(o){Oe(ie()),o.close()}function co(o){je(o,ie(),"image")}const Ee=o=>{o.type===_&&(L(),Q())},Me=o=>{o.type===_&&Q()},Fe=o=>{o.type===_&&(L(),Q())};return Bo(()=>{var o;$.value=as(((o=ye.q)==null?void 0:o.toString())??""),Ke(S,$.value),Je(),Q(),V.on("item_tags_updated",Me),V.on("items_tags_updated",Ee),V.on("media_items_actioned",Fe),window.addEventListener("keydown",De),window.addEventListener("keyup",Se)}),Ho(()=>{V.off("item_tags_updated",Me),V.off("items_tags_updated",Ee),V.off("media_items_actioned",Fe),window.removeEventListener("keydown",De),window.removeEventListener("keyup",Se)}),(o,n)=>{const C=ls,c=jo,ce=is,E=cs,de=ds,re=rs,ro=ks,uo=hs,Le=Jo,_o=vs,po=Co,mo=$o,ko=gs,ue=bo,ze=wo,go=us,Re=_s,vo=ps,ho=Io,yo=fo,p=Xo("tooltip");return t(),m(f,null,[r("div",bs,[r("md-checkbox",{"touch-target":"wrapper",onChange:n[0]||(n[0]=(...s)=>e(Ce)&&e(Ce)(...s)),checked:e(fe),indeterminate:!e(fe)&&e(R)},null,40,ws),r("div",Is,[e(h).length?(t(),m("span",Ts,y(o.$t("x_selected",{count:e(w)?e(b).toLocaleString():e(h).length.toLocaleString()})),1)):(t(),m("span",Ds,y(o.$t("page_title.images"))+" ("+y(e(b).toLocaleString())+")",1)),e(R)?(t(),m(f,{key:2},[S.trash?(t(),m(f,{key:0},[u((t(),i(c,{onClick:n[1]||(n[1]=a(s=>e(se)(e(_),e(h),e(w),e(b),$.value),["stop"]))},{icon:d(()=>[l(C)]),_:1})),[[p,o.$t("delete")]]),u((t(),i(c,{onClick:n[2]||(n[2]=a(s=>e(le)(e(_),U()),["stop"])),loading:e(ae)(U())},{icon:d(()=>[l(ce)]),_:1},8,["loading"])),[[p,o.$t("restore")]]),u((t(),i(c,{onClick:n[3]||(n[3]=a(s=>e(Ie)(e(w),e(h),$.value),["stop"]))},{icon:d(()=>[l(E)]),_:1})),[[p,o.$t("download")]])],64)):(t(),m(f,{key:1},[e(j)(e(J).MEDIA_TRASH,e(A).osVersion)?u((t(),i(c,{key:0,onClick:n[4]||(n[4]=a(s=>e(G)(e(_),U()),["stop"])),loading:e(ne)(U())},{icon:d(()=>[l(de)]),_:1},8,["loading"])),[[p,o.$t("move_to_trash")]]):u((t(),i(c,{key:1,onClick:n[5]||(n[5]=a(s=>e(se)(e(_),e(h),e(w),e(b),$.value),["stop"]))},{icon:d(()=>[l(C)]),_:1})),[[p,o.$t("delete")]]),u((t(),i(c,{onClick:n[6]||(n[6]=a(s=>e(Ie)(e(w),e(h),$.value),["stop"]))},{icon:d(()=>[l(E)]),_:1})),[[p,o.$t("download")]]),u((t(),i(c,{onClick:n[7]||(n[7]=a(s=>e(Ze)(e(h),e(w),$.value),["stop"]))},{icon:d(()=>[l(re)]),_:1})),[[p,o.$t("add_to_tags")]])],64))],64)):M("",!0)]),r("div",Ss,[l(ro,{filter:S,tags:e(B),buckets:e(oe),"get-url":ao},null,8,["filter","tags","buckets"]),S.trash?M("",!0):(t(),i(Le,{key:0},{content:d(s=>[r("md-menu-item",{onClick:a(g=>lo(s),["stop"])},[r("div",Es,y(o.$t("upload_files")),1)],8,As),r("md-menu-item",{onClick:a(g=>io(s),["stop"])},[r("div",Fs,y(o.$t("upload_folder")),1)],8,Ms)]),default:d(()=>[u((t(),i(c,null,{icon:d(()=>[l(uo)]),_:1})),[[p,o.$t("upload")]])]),_:1})),l(Le,null,{content:d(s=>[r("div",Vs,[(t(!0),m(f,null,W(e(so),g=>(t(),m("md-menu-item",{onClick:k=>no(s,g.value),key:g.value,selected:g.value===e(X)},[r("div",zs,y(o.$t(g.label)),1)],8,Ls))),128))])]),default:d(()=>[u((t(),i(c,{loading:x.value},{icon:d(()=>[l(_o)]),_:1},8,["loading"])),[[p,o.$t("sort")]])]),_:1}),r("md-outlined-segmented-button-set",Rs,[r("md-outlined-segmented-button",{"data-value":"grid","no-checkmark":"",selected:!e(I).imagesCardView,onClick:n[8]||(n[8]=s=>e(I).imagesCardView=!1)},[l(po,{slot:"icon"})],8,Us),r("md-outlined-segmented-button",{"data-value":"card","no-checkmark":"",selected:e(I).imagesCardView,onClick:n[9]||(n[9]=s=>e(I).imagesCardView=!0)},[l(mo,{slot:"icon"})],8,qs)])])]),l(ko,{limit:D,total:e(b),"all-checked-alert-visible":e(eo),"real-all-checked":e(w),"select-real-all":e(xe),"clear-selection":e(L)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),r("div",{class:"scroll-content",onDragover:n[13]||(n[13]=a((...s)=>e(ge)&&e(ge)(...s),["stop","prevent"]))},[u(r("div",{class:"drag-mask",onDrop:a(co,["stop","prevent"]),onDragleave:n[10]||(n[10]=a((...s)=>e(ve)&&e(ve)(...s),["stop","prevent"]))},y(o.$t("release_to_send_files")),545),[[No,e(We)]]),e(I).imagesCardView?(t(),m("div",{key:1,class:q(["media-list",{"select-mode":e(R)}])},[(t(!0),m(f,null,W(T.value,(s,g)=>{var k;return t(),m("section",{class:q(["media-item selectable-card",{selected:e(h).includes(s.id),selecting:e(N).includes(s.id)}]),key:s.id,onClick:a(v=>e($e)(v,s,g,te),["stop"]),onMouseover:v=>e(be)(v,g)},[r("div",Qs,[e(N).includes(s.id)?(t(),m("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:a(v=>e(z)(v,s,g),["stop"]),checked:e(we)},null,8,Gs)):(t(),m("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:a(v=>e(z)(v,s,g),["stop"]),checked:e(h).includes(s.id)},null,8,Os)),r("span",Ws,[l(vo,{id:g+1,raw:s},null,8,["id","raw"])])]),r("img",{class:"image",src:e(_e)(s.fileId,"&w=200&h=200"),onerror:"this.src='/broken-image.png'"},null,8,js),r("div",Js,y(e(F)(s.path)),1),r("div",Xs,[r("span",null,y(e(He)(s.size)),1),r("a",{onClick:a(v=>e(Ye)(e(I),s.bucketId),["stop","prevent"])},y((k=Xe.value[s.bucketId])==null?void 0:k.name),9,Zs),l(Re,{tags:s.tags,type:e(_),"only-links":!0},null,8,["tags","type"])]),r("div",Ys,[S.trash?(t(),m(f,{key:0},[u((t(),i(c,{class:"sm",onClick:a(v=>e(H)(e(_),s),["stop"])},{icon:d(()=>[l(C)]),_:2},1032,["onClick"])),[[p,o.$t("delete")]]),u((t(),i(c,{class:"sm",onClick:a(v=>e(le)(e(_),`ids:${s.id}`),["stop"]),loading:e(ae)(`ids:${s.id}`)},{icon:d(()=>[l(ce)]),_:2},1032,["onClick","loading"])),[[p,o.$t("restore")]]),u((t(),i(c,{class:"sm",onClick:a(v=>e(K)(s.path,e(F)(s.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(E)]),_:2},1032,["onClick"])),[[p,o.$t("download")]])],64)):(t(),m(f,{key:1},[e(j)(e(J).MEDIA_TRASH,e(A).osVersion)?u((t(),i(c,{key:0,class:"sm",onClick:a(v=>e(G)(e(_),`ids:${s.id}`),["stop"]),loading:e(ne)(`ids:${s.id}`)},{icon:d(()=>[l(de)]),_:2},1032,["onClick","loading"])),[[p,o.$t("move_to_trash")]]):u((t(),i(c,{key:1,class:"sm",onClick:a(v=>e(H)(e(_),s),["stop"])},{icon:d(()=>[l(C)]),_:2},1032,["onClick"])),[[p,o.$t("delete")]]),u((t(),i(c,{class:"sm",onClick:a(v=>e(K)(s.path,e(F)(s.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(E)]),_:2},1032,["onClick"])),[[p,o.$t("download")]]),u((t(),i(c,{class:"sm",onClick:a(v=>Ae(s),["stop"])},{icon:d(()=>[l(re)]),_:2},1032,["onClick"])),[[p,o.$t("add_to_tags")]])],64))]),r("div",xs,[u((t(),m("span",null,[Yo(y(e(xo)(s.createdAt)),1)])),[[p,e(Zo)(s.createdAt)]])])],42,Ps)}),128)),e(P)&&T.value.length===0?(t(),i(ho,{key:0,limit:D})):M("",!0)],2)):(t(),m("div",{key:0,class:q(["media-grid",{"select-mode":e(R)}])},[(t(!0),m(f,null,W(T.value,(s,g)=>(t(),m("section",{class:q(["media-item",{selected:e(h).includes(s.id),selecting:e(N).includes(s.id)}]),key:s.id,onClick:a(k=>e($e)(k,s,g,te),["stop"]),onMouseover:k=>e(be)(k,g)},[r("img",{class:"image-thumb image",src:e(_e)(s.fileId,"&w=200&h=200"),onerror:"this.src='/broken-image.png'"},null,8,Hs),e(N).includes(s.id)?(t(),i(c,{key:0,class:"btn-checkbox",onClick:a(k=>e(z)(k,s,g),["stop"])},{icon:d(()=>[e(we)?(t(),i(ue,{key:0})):(t(),i(ze,{key:1}))]),_:2},1032,["onClick"])):e(h).includes(s.id)?(t(),i(c,{key:1,class:"btn-checkbox",onClick:a(k=>e(z)(k,s,g),["stop"])},{icon:d(()=>[l(ue)]),_:2},1032,["onClick"])):(t(),m(f,{key:2},[l(c,{class:"btn-checkbox",onClick:a(k=>e(z)(k,s,g),["stop"])},{icon:d(()=>[e(h).includes(s.id)?(t(),i(ue,{key:0})):(t(),i(ze,{key:1}))]),_:2},1032,["onClick"]),e(R)?u((t(),i(c,{key:0,class:"btn-zoom sm",onClick:a(k=>te(g),["stop"])},{icon:d(()=>[l(go)]),_:2},1032,["onClick"])),[[p,o.$t("open")]]):(t(),m("div",Ns,[S.trash?(t(),m(f,{key:0},[u((t(),i(c,{class:"sm",onClick:a(k=>e(H)(e(_),s),["stop"])},{icon:d(()=>[l(C)]),_:2},1032,["onClick"])),[[p,o.$t("delete")]]),u((t(),i(c,{class:"sm",onClick:a(k=>e(le)(e(_),`ids:${s.id}`),["stop"]),loading:e(ae)(`ids:${s.id}`)},{icon:d(()=>[l(ce)]),_:2},1032,["onClick","loading"])),[[p,o.$t("restore")]]),u((t(),i(c,{class:"sm",onClick:a(k=>e(K)(s.path,e(F)(s.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(E)]),_:2},1032,["onClick"])),[[p,o.$t("download")]])],64)):(t(),m(f,{key:1},[e(j)(e(J).MEDIA_TRASH,e(A).osVersion)?u((t(),i(c,{key:0,class:"sm",onClick:a(k=>e(G)(e(_),`ids:${s.id}`),["stop"]),loading:e(ne)(`ids:${s.id}`)},{icon:d(()=>[l(de)]),_:2},1032,["onClick","loading"])),[[p,o.$t("move_to_trash")]]):u((t(),i(c,{key:1,class:"sm",onClick:a(k=>e(H)(e(_),s),["stop"])},{icon:d(()=>[l(C)]),_:2},1032,["onClick"])),[[p,o.$t("delete")]]),u((t(),i(c,{class:"sm",onClick:a(k=>e(K)(s.path,e(F)(s.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(E)]),_:2},1032,["onClick"])),[[p,o.$t("download")]]),u((t(),i(c,{class:"sm",onClick:a(k=>Ae(s),["stop"])},{icon:d(()=>[l(re)]),_:2},1032,["onClick"])),[[p,o.$t("add_to_tags")]])],64))])),r("div",{class:q(["info",{"has-tags":s.tags.length>0}])},[l(Re,{tags:s.tags,type:e(_)},null,8,["tags","type"]),r("span",Ks,y(e(He)(s.size)),1)],2)],64))],42,Bs))),128)),e(P)&&T.value.length===0?(t(),m(f,{key:0},W(D,s=>r("section",{class:"skeleton-image media-item",key:s})),64)):M("",!0)],2)),!e(P)&&T.value.length===0?(t(),m("div",et,y(o.$t(e(es)(e(P),e(A).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):M("",!0),e(b)>D?(t(),i(yo,{key:3,page:ee.value,go:Te,total:e(b),limit:D},null,8,["page","total"])):M("",!0),r("input",{ref_key:"fileInput",ref:Pe,style:{display:"none"},type:"file",accept:"image/*",multiple:"",onChange:n[11]||(n[11]=(...s)=>e(me)&&e(me)(...s))},null,544),r("input",{ref_key:"dirFileInput",ref:Ge,style:{display:"none"},type:"file",accept:"image/*",multiple:"",webkitdirectory:"",mozdirectory:"",directory:"",onChange:n[12]||(n[12]=(...s)=>e(ke)&&e(ke)(...s))},null,544)],32)],64)}}});export{mt as default}; diff --git a/app/src/main/resources/web/assets/JsonViewerView-BP0nVgFt.js b/app/src/main/resources/web/assets/JsonViewerView-BRYD9jgN.js similarity index 97% rename from app/src/main/resources/web/assets/JsonViewerView-BP0nVgFt.js rename to app/src/main/resources/web/assets/JsonViewerView-BRYD9jgN.js index f8966533..cdf4492b 100644 --- a/app/src/main/resources/web/assets/JsonViewerView-BP0nVgFt.js +++ b/app/src/main/resources/web/assets/JsonViewerView-BRYD9jgN.js @@ -1 +1 @@ -import{bQ as n,d as j,h as u,af as k,a1 as v,ag as $,o as c,c as x,a as o,p as y,N as V,s as N,u as T,k as S,t as h,w as g,m as E,z as D,v as C,e as w,O as R,H}from"./index-BzaaAwnX.js";import{_ as O}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BaOpzcW2.js";const A=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,B={name:"JsonString",props:{jsonValue:{type:String,required:!0}},data(){return{expand:!0,canExtend:!1}},mounted(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle(){this.expand=!this.expand}},render(){let e=this.jsonValue;const t=A.test(e);let s;return this.expand?(s={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},t?(e=`${e}`,s.innerHTML=`"${e.toString()}"`):s.innerText=`"${e.toString()}"`):s={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},n("span",{},[this.canExtend&&n("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),n("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),n("span",s)])}},z={props:{jsonValue:{type:Object,default:null}},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-undefined":!0},innerText:e.jsonValue===null?"null":"undefined"})}},q={props:{jsonValue:{type:Number,required:!0}},setup(e){const t=Number.isInteger(e.jsonValue);return()=>n("span",{class:{"jv-item":!0,"jv-number":!0,"jv-number-integer":t,"jv-number-float":!t},innerText:e.jsonValue.toString()})}},J={props:{jsonValue:Boolean},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-boolean":!0},innerText:e.jsonValue.toString()})}},I={name:"JsonObject",props:{jsonValue:{type:Object,required:!0},expandDepth:{type:Number,default:1},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean},data(){return{value:{}}},computed:{ordered(){const e={};return Object.keys(this.value).sort().forEach(t=>{e[t]=this.value[t]}),e}},watch:{jsonValue(e){this.setValue(e)}},mounted(){this.setValue(this.jsonValue)},methods:{setValue(e){setTimeout(()=>{this.value=e},0)},toggle(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},dispatchEvent(){try{this.$el.dispatchEvent(new Event("resized"))}catch{}}},render(){const e=[];this.keyName||e.push(n("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),e.push(n("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"{"}));const t=Object.keys(this.value).length;if(t>0&&e.push(n("span",{class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:t===1?"1 prop":`${t} props`})),this.expand){for(const s in this.ordered)if(this.ordered.hasOwnProperty(s)){const a=this.ordered[s];e.push(n(f,{key:s,style:{display:this.expand?void 0:"none"},keyName:s,expandDepth:this.expandDepth,depth:this.depth+1,value:a}))}}return e.push(n("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"}"})),n("span",e)}},L={name:"JsonArray",props:{jsonValue:{type:Array,required:!0},expandDepth:{type:Number,default:1},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean},data(){return{value:[]}},watch:{jsonValue(e){this.setValue(e)}},mounted(){this.setValue(this.jsonValue)},methods:{setValue(e,t=0){t===0&&(this.value=[]),setTimeout(()=>{e.length>t&&(this.value.push(e[t]),this.setValue(e,t+1))},0)},toggle(){this.$emit("update:expand",!this.expand);try{this.$el.dispatchEvent(new Event("resized"))}catch{}}},render(){const e=[];this.keyName||e.push(n("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),e.push(n("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"["}));const t=this.value.length;return t>0&&e.push(n("span",{class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:t==1?"1 item":`${t} items`})),this.expand&&this.value.forEach((s,a)=>{e.push(n(f,{key:a,style:{display:this.expand?void 0:"none"},expandDepth:this.expandDepth,depth:this.depth+1,value:s}))}),e.push(n("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"]"})),n("span",e)}},M={props:{jsonValue:{type:Function,required:!0}},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-function":!0},attrs:{title:e.jsonValue.toString()},innerHTML:"<function>"})}},P={props:{jsonValue:{type:Date,required:!0}},setup(e){const t=e.jsonValue;return()=>n("span",{class:{"jv-item":!0,"jv-string":!0},innerText:`"${t.toLocaleString()}"`})}},F=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,Z={name:"JsonString",props:{jsonValue:{type:RegExp,required:!0}},data(){return{expand:!0,canExtend:!1}},mounted(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle(){this.expand=!this.expand}},render(){let e=this.jsonValue;const t=F.test(e);let s;return this.expand?(s={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},t?(e=`${e}`,s.innerHTML=`${e.toString()}`):s.innerText=`${e.toString()}`):s={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},n("span",{},[this.canExtend&&n("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),n("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),n("span",s)])}},f={name:"JsonBox",props:{value:{type:[Object,Array,String,Number,Boolean,Function,Date],default:null},expandDepth:{type:Number,default:1},keyName:{type:String,default:""},depth:{type:Number,default:0}},data(){return{expand:!0}},mounted(){this.expand=!(this.depth>=this.expandDepth)},methods:{toggle(){this.expand=!this.expand;try{this.$el.dispatchEvent(new Event("resized"))}catch{}}},render(){let e;this.value===null||this.value===void 0?e=z:Array.isArray(this.value)?e=L:Object.prototype.toString.call(this.value)==="[object Date]"?e=P:typeof this.value=="object"?e=I:typeof this.value=="number"?e=q:typeof this.value=="string"?e=B:typeof this.value=="boolean"?e=J:typeof this.value=="function"&&(e=M),this.value&&this.value.constructor===RegExp&&(e=Z);let t=!1;if(this.keyName&&this.value){if(Array.isArray(this.value)&&this.value.length)t=!0;else if(typeof this.value=="object"){const a=Object.prototype.toString.call(this.value);!["[]","[object Date]"].includes(a)&&Object.keys(this.value).length&&(t=!0)}}const s=[];return t&&s.push(n("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle})),this.keyName&&s.push(n("span",{class:{"jv-key":!0},onClick:()=>{console.log(this.keyName)},innerText:`${this.keyName}:`})),s.push(n(e,{class:{"jv-push":!0},jsonValue:this.value,keyName:this.keyName,depth:this.depth,expand:this.expand,expandDepth:this.expandDepth,"onUpdate:expand":a=>{this.expand=a}})),n("div",{class:{"jv-node":!0,"jv-key-node":!!this.keyName&&!t,toggle:t}},s)}},K={class:"jv-code"},U=j({__name:"json-viewer",props:{value:{type:[Object,Array,String,Number,Boolean,Function],required:!0},expandDepth:{type:Number,default:1}},setup(e){const t=u("light"),s=()=>{t.value=document.documentElement.classList[0]==="dark"?"dark":"light"};return k(()=>{v.on("color_mode_changed",s)}),$(()=>{v.off("color_mode_changed",s)}),(a,p)=>{const l=f;return c(),x("div",{class:V(["jv-container",t.value])},[o("div",K,[y(l,{value:e.value,"expand-depth":e.expandDepth},null,8,["value","expand-depth"])])],2)}}}),G={class:"top-app-bar"},Q={class:"title"},W={class:"actions"},X={class:"scroll-content"},Y=j({__name:"JsonViewerView",setup(e){const{json:t}=N(T()),s=u(null),a=u(1),p=u(1),l=()=>{try{const i=JSON.parse(t.value);s.value=i}catch(i){console.error(i)}};S(t,l),l();function m(i){i?a.value=1e3:a.value=1,p.value++}return(i,r)=>{const _=O,b=U;return c(),x(R,null,[o("div",G,[o("div",Q,h(i.$t("json_viewer")),1),o("div",W,[o("md-outlined-button",{class:"btn-sm",onClick:r[0]||(r[0]=g(d=>m(!0),["prevent"]))},h(i.$t("expand_all")),1),o("md-outlined-button",{class:"btn-sm",onClick:r[1]||(r[1]=g(d=>m(!1),["prevent"]))},h(i.$t("collapse_all")),1)])]),o("div",X,[y(_,{language:"json",modelValue:E(t),"onUpdate:modelValue":r[2]||(r[2]=d=>D(t)?t.value=d:null)},null,8,["modelValue"]),s.value?(c(),C(b,{value:s.value,"expand-depth":a.value,key:p.value},null,8,["value","expand-depth"])):w("",!0)])],64)}}}),se=H(Y,[["__scopeId","data-v-2e70676d"]]);export{se as default}; +import{bQ as n,d as j,h as u,af as k,a1 as v,ag as $,o as c,c as x,a as o,p as y,N as V,s as N,u as T,k as S,t as h,w as g,m as E,z as D,v as C,e as w,O as R,H}from"./index-R8dLcqG_.js";import{_ as O}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BNZRjtJE.js";const A=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,B={name:"JsonString",props:{jsonValue:{type:String,required:!0}},data(){return{expand:!0,canExtend:!1}},mounted(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle(){this.expand=!this.expand}},render(){let e=this.jsonValue;const t=A.test(e);let s;return this.expand?(s={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},t?(e=`${e}`,s.innerHTML=`"${e.toString()}"`):s.innerText=`"${e.toString()}"`):s={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},n("span",{},[this.canExtend&&n("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),n("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),n("span",s)])}},z={props:{jsonValue:{type:Object,default:null}},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-undefined":!0},innerText:e.jsonValue===null?"null":"undefined"})}},q={props:{jsonValue:{type:Number,required:!0}},setup(e){const t=Number.isInteger(e.jsonValue);return()=>n("span",{class:{"jv-item":!0,"jv-number":!0,"jv-number-integer":t,"jv-number-float":!t},innerText:e.jsonValue.toString()})}},J={props:{jsonValue:Boolean},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-boolean":!0},innerText:e.jsonValue.toString()})}},I={name:"JsonObject",props:{jsonValue:{type:Object,required:!0},expandDepth:{type:Number,default:1},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean},data(){return{value:{}}},computed:{ordered(){const e={};return Object.keys(this.value).sort().forEach(t=>{e[t]=this.value[t]}),e}},watch:{jsonValue(e){this.setValue(e)}},mounted(){this.setValue(this.jsonValue)},methods:{setValue(e){setTimeout(()=>{this.value=e},0)},toggle(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},dispatchEvent(){try{this.$el.dispatchEvent(new Event("resized"))}catch{}}},render(){const e=[];this.keyName||e.push(n("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),e.push(n("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"{"}));const t=Object.keys(this.value).length;if(t>0&&e.push(n("span",{class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:t===1?"1 prop":`${t} props`})),this.expand){for(const s in this.ordered)if(this.ordered.hasOwnProperty(s)){const a=this.ordered[s];e.push(n(f,{key:s,style:{display:this.expand?void 0:"none"},keyName:s,expandDepth:this.expandDepth,depth:this.depth+1,value:a}))}}return e.push(n("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"}"})),n("span",e)}},L={name:"JsonArray",props:{jsonValue:{type:Array,required:!0},expandDepth:{type:Number,default:1},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean},data(){return{value:[]}},watch:{jsonValue(e){this.setValue(e)}},mounted(){this.setValue(this.jsonValue)},methods:{setValue(e,t=0){t===0&&(this.value=[]),setTimeout(()=>{e.length>t&&(this.value.push(e[t]),this.setValue(e,t+1))},0)},toggle(){this.$emit("update:expand",!this.expand);try{this.$el.dispatchEvent(new Event("resized"))}catch{}}},render(){const e=[];this.keyName||e.push(n("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),e.push(n("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"["}));const t=this.value.length;return t>0&&e.push(n("span",{class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:t==1?"1 item":`${t} items`})),this.expand&&this.value.forEach((s,a)=>{e.push(n(f,{key:a,style:{display:this.expand?void 0:"none"},expandDepth:this.expandDepth,depth:this.depth+1,value:s}))}),e.push(n("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"]"})),n("span",e)}},M={props:{jsonValue:{type:Function,required:!0}},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-function":!0},attrs:{title:e.jsonValue.toString()},innerHTML:"<function>"})}},P={props:{jsonValue:{type:Date,required:!0}},setup(e){const t=e.jsonValue;return()=>n("span",{class:{"jv-item":!0,"jv-string":!0},innerText:`"${t.toLocaleString()}"`})}},F=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,Z={name:"JsonString",props:{jsonValue:{type:RegExp,required:!0}},data(){return{expand:!0,canExtend:!1}},mounted(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle(){this.expand=!this.expand}},render(){let e=this.jsonValue;const t=F.test(e);let s;return this.expand?(s={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},t?(e=`${e}`,s.innerHTML=`${e.toString()}`):s.innerText=`${e.toString()}`):s={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},n("span",{},[this.canExtend&&n("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),n("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),n("span",s)])}},f={name:"JsonBox",props:{value:{type:[Object,Array,String,Number,Boolean,Function,Date],default:null},expandDepth:{type:Number,default:1},keyName:{type:String,default:""},depth:{type:Number,default:0}},data(){return{expand:!0}},mounted(){this.expand=!(this.depth>=this.expandDepth)},methods:{toggle(){this.expand=!this.expand;try{this.$el.dispatchEvent(new Event("resized"))}catch{}}},render(){let e;this.value===null||this.value===void 0?e=z:Array.isArray(this.value)?e=L:Object.prototype.toString.call(this.value)==="[object Date]"?e=P:typeof this.value=="object"?e=I:typeof this.value=="number"?e=q:typeof this.value=="string"?e=B:typeof this.value=="boolean"?e=J:typeof this.value=="function"&&(e=M),this.value&&this.value.constructor===RegExp&&(e=Z);let t=!1;if(this.keyName&&this.value){if(Array.isArray(this.value)&&this.value.length)t=!0;else if(typeof this.value=="object"){const a=Object.prototype.toString.call(this.value);!["[]","[object Date]"].includes(a)&&Object.keys(this.value).length&&(t=!0)}}const s=[];return t&&s.push(n("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle})),this.keyName&&s.push(n("span",{class:{"jv-key":!0},onClick:()=>{console.log(this.keyName)},innerText:`${this.keyName}:`})),s.push(n(e,{class:{"jv-push":!0},jsonValue:this.value,keyName:this.keyName,depth:this.depth,expand:this.expand,expandDepth:this.expandDepth,"onUpdate:expand":a=>{this.expand=a}})),n("div",{class:{"jv-node":!0,"jv-key-node":!!this.keyName&&!t,toggle:t}},s)}},K={class:"jv-code"},U=j({__name:"json-viewer",props:{value:{type:[Object,Array,String,Number,Boolean,Function],required:!0},expandDepth:{type:Number,default:1}},setup(e){const t=u("light"),s=()=>{t.value=document.documentElement.classList[0]==="dark"?"dark":"light"};return k(()=>{v.on("color_mode_changed",s)}),$(()=>{v.off("color_mode_changed",s)}),(a,p)=>{const l=f;return c(),x("div",{class:V(["jv-container",t.value])},[o("div",K,[y(l,{value:e.value,"expand-depth":e.expandDepth},null,8,["value","expand-depth"])])],2)}}}),G={class:"top-app-bar"},Q={class:"title"},W={class:"actions"},X={class:"scroll-content"},Y=j({__name:"JsonViewerView",setup(e){const{json:t}=N(T()),s=u(null),a=u(1),p=u(1),l=()=>{try{const i=JSON.parse(t.value);s.value=i}catch(i){console.error(i)}};S(t,l),l();function m(i){i?a.value=1e3:a.value=1,p.value++}return(i,r)=>{const _=O,b=U;return c(),x(R,null,[o("div",G,[o("div",Q,h(i.$t("json_viewer")),1),o("div",W,[o("md-outlined-button",{class:"btn-sm",onClick:r[0]||(r[0]=g(d=>m(!0),["prevent"]))},h(i.$t("expand_all")),1),o("md-outlined-button",{class:"btn-sm",onClick:r[1]||(r[1]=g(d=>m(!1),["prevent"]))},h(i.$t("collapse_all")),1)])]),o("div",X,[y(_,{language:"json",modelValue:E(t),"onUpdate:modelValue":r[2]||(r[2]=d=>D(t)?t.value=d:null)},null,8,["modelValue"]),s.value?(c(),C(b,{value:s.value,"expand-depth":a.value,key:p.value},null,8,["value","expand-depth"])):w("",!0)])],64)}}}),se=H(Y,[["__scopeId","data-v-2e70676d"]]);export{se as default}; diff --git a/app/src/main/resources/web/assets/LeftSidebar.vuevuetypescriptsetuptruelang-xn7lCt7t.js b/app/src/main/resources/web/assets/LeftSidebar.vuevuetypescriptsetuptruelang-BWG8gajF.js similarity index 96% rename from app/src/main/resources/web/assets/LeftSidebar.vuevuetypescriptsetuptruelang-xn7lCt7t.js rename to app/src/main/resources/web/assets/LeftSidebar.vuevuetypescriptsetuptruelang-BWG8gajF.js index f37eb708..0348b4e2 100644 --- a/app/src/main/resources/web/assets/LeftSidebar.vuevuetypescriptsetuptruelang-xn7lCt7t.js +++ b/app/src/main/resources/web/assets/LeftSidebar.vuevuetypescriptsetuptruelang-BWG8gajF.js @@ -1 +1 @@ -import{o as n,c as i,a as e,d as g,u as z,a6 as _,h as y,S,x as u,w as $,v as h,r as a,aL as w,m as l,N as T,n as V,ch as M}from"./index-BzaaAwnX.js";const k={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},B=e("path",{fill:"currentColor",d:"M16.5 14.8V9.2q0-.35-.3-.475t-.55.125L13.2 11.3q-.3.3-.3.7t.3.7l2.45 2.45q.25.25.55.125t.3-.475M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm3-2V5H5v14zm2 0h9V5h-9zm-2 0H5z"},null,-1),C=[B];function P(r,t){return n(),i("svg",k,[...C])}const x={name:"material-symbols-left-panel-close-outline-rounded",render:P},H={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},L=e("path",{fill:"currentColor",d:"M12.5 9.2v5.6q0 .35.3.475t.55-.125l2.45-2.45q.3-.3.3-.7t-.3-.7l-2.45-2.45q-.25-.25-.55-.125t-.3.475M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm3-2V5H5v14zm2 0h9V5h-9zm-2 0H5z"},null,-1),W=[L];function R(r,t){return n(),i("svg",H,[...W])}const D={name:"material-symbols-left-panel-open-outline-rounded",render:R},N={class:"top-app-bar"},E=e("md-ripple",null,null,-1),j={class:"title"},A={class:"actions",style:{position:"relative"}},F={class:"sidebar-body"},I=g({__name:"LeftSidebar",setup(r){const t=z(),m=t.getCurrentPage(_.currentRoute.value.fullPath),s=y(m.sidebar===!1);function p(){s.value=!s.value,t.updatePageSidebar(_.currentRoute.value.fullPath,!s.value)}const{resizeWidth:d}=M(160,()=>t.sidebarWidth,o=>{t.sidebarWidth=o});return(o,c)=>{const v=D,b=x,f=S("tooltip");return n(),i("aside",{class:T(["sidebar",{mini:s.value}]),style:V({width:l(t).sidebarWidth+"px"})},[e("div",N,[u((n(),i("button",{class:"btn-icon",onClick:$(p,["prevent"])},[E,s.value?(n(),h(v,{key:0})):(n(),h(b,{key:1}))])),[[f,o.$t(s.value?"open":"close")]]),e("div",j,[a(o.$slots,"title")]),e("div",A,[a(o.$slots,"actions")])]),e("div",F,[a(o.$slots,"body")]),u(e("div",{class:"sidebar-drag-indicator",onMousedown:c[0]||(c[0]=(...q)=>l(d)&&l(d)(...q))},null,544),[[w,!s.value]])],6)}}});export{I as _}; +import{o as n,c as i,a as e,d as g,u as z,a6 as _,h as y,S,x as u,w as $,v as h,r as a,aL as w,m as l,N as T,n as V,ch as M}from"./index-R8dLcqG_.js";const k={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},B=e("path",{fill:"currentColor",d:"M16.5 14.8V9.2q0-.35-.3-.475t-.55.125L13.2 11.3q-.3.3-.3.7t.3.7l2.45 2.45q.25.25.55.125t.3-.475M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm3-2V5H5v14zm2 0h9V5h-9zm-2 0H5z"},null,-1),C=[B];function P(r,t){return n(),i("svg",k,[...C])}const x={name:"material-symbols-left-panel-close-outline-rounded",render:P},H={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},L=e("path",{fill:"currentColor",d:"M12.5 9.2v5.6q0 .35.3.475t.55-.125l2.45-2.45q.3-.3.3-.7t-.3-.7l-2.45-2.45q-.25-.25-.55-.125t-.3.475M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm3-2V5H5v14zm2 0h9V5h-9zm-2 0H5z"},null,-1),W=[L];function R(r,t){return n(),i("svg",H,[...W])}const D={name:"material-symbols-left-panel-open-outline-rounded",render:R},N={class:"top-app-bar"},E=e("md-ripple",null,null,-1),j={class:"title"},A={class:"actions",style:{position:"relative"}},F={class:"sidebar-body"},I=g({__name:"LeftSidebar",setup(r){const t=z(),m=t.getCurrentPage(_.currentRoute.value.fullPath),s=y(m.sidebar===!1);function p(){s.value=!s.value,t.updatePageSidebar(_.currentRoute.value.fullPath,!s.value)}const{resizeWidth:d}=M(160,()=>t.sidebarWidth,o=>{t.sidebarWidth=o});return(o,c)=>{const v=D,b=x,f=S("tooltip");return n(),i("aside",{class:T(["sidebar",{mini:s.value}]),style:V({width:l(t).sidebarWidth+"px"})},[e("div",N,[u((n(),i("button",{class:"btn-icon",onClick:$(p,["prevent"])},[E,s.value?(n(),h(v,{key:0})):(n(),h(b,{key:1}))])),[[f,o.$t(s.value?"open":"close")]]),e("div",j,[a(o.$slots,"title")]),e("div",A,[a(o.$slots,"actions")])]),e("div",F,[a(o.$slots,"body")]),u(e("div",{class:"sidebar-drag-indicator",onMousedown:c[0]||(c[0]=(...q)=>l(d)&&l(d)(...q))},null,544),[[w,!s.value]])],6)}}});export{I as _}; diff --git a/app/src/main/resources/web/assets/LoginView-8N5ARdAC.js b/app/src/main/resources/web/assets/LoginView-D9DcHVT2.js similarity index 98% rename from app/src/main/resources/web/assets/LoginView-8N5ARdAC.js rename to app/src/main/resources/web/assets/LoginView-D9DcHVT2.js index 202693ba..94e0c22e 100644 --- a/app/src/main/resources/web/assets/LoginView-8N5ARdAC.js +++ b/app/src/main/resources/web/assets/LoginView-D9DcHVT2.js @@ -1 +1 @@ -import{d as Z,h as g,g as G,au as X,cS as Y,cT as Q,cU as ee,cV as se,cW as ne,cX as te,cY as oe,a6 as re,cZ as N,c as A,a as v,p as $,t as p,x as E,aL as x,w as ie,m as c,z as ae,A as le,y as ue,e as P,O as ce,c_ as de,o as T,bZ as me,c$ as we,d0 as fe,H as ve}from"./index-BzaaAwnX.js";import{u as be,a as pe}from"./vee-validate.esm-DNjIRPsN.js";function W(n){let t=n;if(typeof t>"u"){if(typeof navigator>"u"||!navigator)return"";t=navigator.userAgent||""}return t.toLowerCase()}function j(n,t){try{return new RegExp(n,"g").exec(t)}catch{return null}}function O(){if(typeof navigator>"u"||!navigator||!navigator.userAgentData)return!1;const t=navigator.userAgentData.brands;return!!(t&&t.length)}function ge(n,t){const o=j(`(${n})((?:\\/|\\s|:)([0-9|\\.|_]+))`,t);return o?o[3]:""}function I(n){return n.replace(/_/g,".")}function _(n,t){let o=null,e="-1";return n.some(r=>{const l=j(`(${r.test})((?:\\/|\\s|:)([0-9|\\.|_]+))?`,t);return!l||r.brand?!1:(o=r,e=l[3]||"-1",r.versionAlias?e=r.versionAlias:r.versionTest&&(e=ge(r.versionTest.toLowerCase(),t)||e),e=I(e),!0)}),{preset:o,version:e}}function h(n,t){const o={brand:"",version:"-1"};return n.some(e=>{const r=U(t,e);return r?(o.brand=e.id,o.version=e.versionAlias||r.version,o.version!=="-1"):!1}),o}function U(n,t){return n.find(o=>j(`${t.test}`,o.brand.toLowerCase()))}const R=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],D=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],L=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],H=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],F=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"win32|windows",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"macos|macintel|mac os x",id:"mac"},{test:"android|linux armv81",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];function K(n){return!!_(H,n).preset}function he(n){const t=W(n),o=!!/mobi/g.exec(t),e={name:"unknown",version:"-1",majorVersion:-1,webview:K(t),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},r={name:"unknown",version:"-1",majorVersion:-1},{preset:l,version:f}=_(R,t),{preset:s,version:u}=_(F,t),b=_(D,t);if(e.chromium=!!b.preset,e.chromiumVersion=b.version,!e.chromium){const m=_(L,t);e.webkit=!!m.preset,e.webkitVersion=m.version}return s&&(r.name=s.id,r.version=u,r.majorVersion=parseInt(u,10)),l&&(e.name=l.id,e.version=f,e.webview&&r.name==="ios"&&e.name!=="safari"&&(e.webview=!1)),e.majorVersion=parseInt(e.version,10),{browser:e,os:r,isMobile:o,isHints:!1}}function q(n){const t=navigator.userAgentData,o=[...t.brands],e=n&&n.fullVersionList,r=t.mobile||!1,l=o[0],f=(n&&n.platform||t.platform||navigator.platform).toLowerCase(),s={name:l.brand,version:l.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!h(H,o).brand||K(W())},u={name:"unknown",version:"-1",majorVersion:-1};s.webkit=!s.chromium&&L.some(a=>U(o,a));const b=h(D,o);if(s.chromium=!!b.brand,s.chromiumVersion=b.version,!s.chromium){const a=h(L,o);s.webkit=!!a.brand,s.webkitVersion=a.version}const m=F.find(a=>new RegExp(`${a.test}`,"g").exec(f));if(u.name=m?m.id:"",n&&(u.version=n.platformVersion),e&&e.length){const a=h(R,e);s.name=a.brand||s.name,s.version=a.version||s.version}else{const a=h(R,o);s.name=a.brand||s.name,s.version=a.brand&&n?n.uaFullVersion:a.version}return s.webkit&&(u.name=r?"ios":"mac"),u.name==="ios"&&s.webview&&(s.version="-1"),u.version=I(u.version),s.version=I(s.version),u.majorVersion=parseInt(u.version,10),s.majorVersion=parseInt(s.version,10),{browser:s,os:u,isMobile:r,isHints:!0}}async function _e(){if(O()){const n=await navigator.userAgentData.getHighEntropyValues(["architecture","model","platform","platformVersion","uaFullVersion","fullVersionList"]);return q(n)}return Ve()}function Ve(n){return O()?q():he(n)}const ye={class:"header"},ke={class:"login-block"},Se={class:"alert alert-danger show",role:"alert"},Ae={class:"body"},Ee=["label","error","error-text"],Te=["disabled"],Be={class:"tap-phone"},$e={class:"tap-phone-text"},xe={key:0,class:"tips"},Pe=Z({__name:"LoginView",setup(n){const{handleSubmit:t,isSubmitting:o}=be(),e=g(!1),r=g(!0),l=g(!1),f=g("");let s;const u=window.location.protocol==="http:"?!1:!window.navigator.userAgentData,{t:b}=G(),{value:m,errorMessage:a}=pe("password",X().required()),B=g(!1);async function z(){const d=await fetch(`${N()}/init`,{method:"POST",headers:de()});if(d.status===403){e.value=!0,r.value=!0,f.value="web_access_disabled";return}r.value=!1;const w=await d.text();w?(m.value=w,B.value=!1):B.value=!0}z();const V=t(async()=>{const d=localStorage.getItem("client_id");s=new WebSocket(`${Y()}?cid=${d}&auth=1`);const w=m.value??"",y=Q(w),k=ee(y);f.value="",e.value=!1,s.onopen=async()=>{o.value=!0;const i=await _e(),S=se(k,JSON.stringify({password:y,browserName:i.browser.name,browserVersion:i.browser.version,osName:i.os.name,osVersion:i.os.version,isMobile:i.isMobile}));s.send(ne(S))},s.onmessage=async i=>{var M;const S=te(k,oe(await i.data.arrayBuffer())),C=JSON.parse(S);C.status==="PENDING"?l.value=!0:(localStorage.setItem("auth_token",C.token),s.close(),window.location.href=((M=re.currentRoute.value.query.redirect)==null?void 0:M.toString())??"/")},s.onclose=async i=>{if(!(i.reason==="abort"||i.reason==="OK")){if(o.value=!1,e.value=!0,l.value=!1,!i.reason&&(await fetch(`${N()}/health_check`)).status===200){f.value="failed_connect_ws";return}f.value=`login.${i.reason?i.reason:"failed"}`}},window.setTimeout(function(){s.readyState!==1&&s.close(3001,"timeout")},2e3)});function J(){l.value=!1,e.value=!1,o.value=!1,s.close(3001,"abort")}return(d,w)=>{const y=we,k=fe;return T(),A(ce,null,[v("header",ye,[$(y,{"logged-in":!1})]),v("h1",null,p(d.$t("app_name")),1),v("div",ke,[E(v("form",{onSubmit:w[2]||(w[2]=ie((...i)=>c(V)&&c(V)(...i),["prevent"]))},[E(v("div",Se,[$(k),v("div",Ae,p(f.value?d.$t(f.value):""),1)],512),[[x,e.value]]),B.value?E((T(),A("md-outlined-text-field",{key:0,label:c(b)("password"),"onUpdate:modelValue":w[0]||(w[0]=i=>ae(m)?m.value=i:null),onKeydown:w[1]||(w[1]=le((...i)=>c(V)&&c(V)(...i),["enter"])),type:"password",class:"form-control",error:c(a),autocomplete:"current-password","error-text":c(a)?d.$t(c(a)):""},null,40,Ee)),[[ue,c(m)]]):P("",!0),r.value?P("",!0):(T(),A("md-filled-button",{key:1,disabled:c(o)},p(d.$t(c(o)?"logging_in":"log_in")),9,Te))],544),[[x,!l.value]]),E(v("div",null,[v("div",Be,[$(c(me))]),v("div",$e,p(d.$t("login.to_continue")),1),v("md-outlined-button",{onClick:J},p(d.$t("cancel")),1)],512),[[x,l.value]])]),c(u)?(T(),A("div",xe,p(d.$t("browser_warning")),1)):P("",!0)],64)}}}),Le=ve(Pe,[["__scopeId","data-v-596f5fe4"]]);export{Le as default}; +import{d as Z,h as g,g as G,au as X,cS as Y,cT as Q,cU as ee,cV as se,cW as ne,cX as te,cY as oe,a6 as re,cZ as N,c as A,a as v,p as $,t as p,x as E,aL as x,w as ie,m as c,z as ae,A as le,y as ue,e as P,O as ce,c_ as de,o as T,bZ as me,c$ as we,d0 as fe,H as ve}from"./index-R8dLcqG_.js";import{u as be,a as pe}from"./vee-validate.esm-vpr6zxQb.js";function W(n){let t=n;if(typeof t>"u"){if(typeof navigator>"u"||!navigator)return"";t=navigator.userAgent||""}return t.toLowerCase()}function j(n,t){try{return new RegExp(n,"g").exec(t)}catch{return null}}function O(){if(typeof navigator>"u"||!navigator||!navigator.userAgentData)return!1;const t=navigator.userAgentData.brands;return!!(t&&t.length)}function ge(n,t){const o=j(`(${n})((?:\\/|\\s|:)([0-9|\\.|_]+))`,t);return o?o[3]:""}function I(n){return n.replace(/_/g,".")}function _(n,t){let o=null,e="-1";return n.some(r=>{const l=j(`(${r.test})((?:\\/|\\s|:)([0-9|\\.|_]+))?`,t);return!l||r.brand?!1:(o=r,e=l[3]||"-1",r.versionAlias?e=r.versionAlias:r.versionTest&&(e=ge(r.versionTest.toLowerCase(),t)||e),e=I(e),!0)}),{preset:o,version:e}}function h(n,t){const o={brand:"",version:"-1"};return n.some(e=>{const r=U(t,e);return r?(o.brand=e.id,o.version=e.versionAlias||r.version,o.version!=="-1"):!1}),o}function U(n,t){return n.find(o=>j(`${t.test}`,o.brand.toLowerCase()))}const R=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],D=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],L=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],H=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],F=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"win32|windows",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"macos|macintel|mac os x",id:"mac"},{test:"android|linux armv81",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];function K(n){return!!_(H,n).preset}function he(n){const t=W(n),o=!!/mobi/g.exec(t),e={name:"unknown",version:"-1",majorVersion:-1,webview:K(t),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},r={name:"unknown",version:"-1",majorVersion:-1},{preset:l,version:f}=_(R,t),{preset:s,version:u}=_(F,t),b=_(D,t);if(e.chromium=!!b.preset,e.chromiumVersion=b.version,!e.chromium){const m=_(L,t);e.webkit=!!m.preset,e.webkitVersion=m.version}return s&&(r.name=s.id,r.version=u,r.majorVersion=parseInt(u,10)),l&&(e.name=l.id,e.version=f,e.webview&&r.name==="ios"&&e.name!=="safari"&&(e.webview=!1)),e.majorVersion=parseInt(e.version,10),{browser:e,os:r,isMobile:o,isHints:!1}}function q(n){const t=navigator.userAgentData,o=[...t.brands],e=n&&n.fullVersionList,r=t.mobile||!1,l=o[0],f=(n&&n.platform||t.platform||navigator.platform).toLowerCase(),s={name:l.brand,version:l.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!h(H,o).brand||K(W())},u={name:"unknown",version:"-1",majorVersion:-1};s.webkit=!s.chromium&&L.some(a=>U(o,a));const b=h(D,o);if(s.chromium=!!b.brand,s.chromiumVersion=b.version,!s.chromium){const a=h(L,o);s.webkit=!!a.brand,s.webkitVersion=a.version}const m=F.find(a=>new RegExp(`${a.test}`,"g").exec(f));if(u.name=m?m.id:"",n&&(u.version=n.platformVersion),e&&e.length){const a=h(R,e);s.name=a.brand||s.name,s.version=a.version||s.version}else{const a=h(R,o);s.name=a.brand||s.name,s.version=a.brand&&n?n.uaFullVersion:a.version}return s.webkit&&(u.name=r?"ios":"mac"),u.name==="ios"&&s.webview&&(s.version="-1"),u.version=I(u.version),s.version=I(s.version),u.majorVersion=parseInt(u.version,10),s.majorVersion=parseInt(s.version,10),{browser:s,os:u,isMobile:r,isHints:!0}}async function _e(){if(O()){const n=await navigator.userAgentData.getHighEntropyValues(["architecture","model","platform","platformVersion","uaFullVersion","fullVersionList"]);return q(n)}return Ve()}function Ve(n){return O()?q():he(n)}const ye={class:"header"},ke={class:"login-block"},Se={class:"alert alert-danger show",role:"alert"},Ae={class:"body"},Ee=["label","error","error-text"],Te=["disabled"],Be={class:"tap-phone"},$e={class:"tap-phone-text"},xe={key:0,class:"tips"},Pe=Z({__name:"LoginView",setup(n){const{handleSubmit:t,isSubmitting:o}=be(),e=g(!1),r=g(!0),l=g(!1),f=g("");let s;const u=window.location.protocol==="http:"?!1:!window.navigator.userAgentData,{t:b}=G(),{value:m,errorMessage:a}=pe("password",X().required()),B=g(!1);async function z(){const d=await fetch(`${N()}/init`,{method:"POST",headers:de()});if(d.status===403){e.value=!0,r.value=!0,f.value="web_access_disabled";return}r.value=!1;const w=await d.text();w?(m.value=w,B.value=!1):B.value=!0}z();const V=t(async()=>{const d=localStorage.getItem("client_id");s=new WebSocket(`${Y()}?cid=${d}&auth=1`);const w=m.value??"",y=Q(w),k=ee(y);f.value="",e.value=!1,s.onopen=async()=>{o.value=!0;const i=await _e(),S=se(k,JSON.stringify({password:y,browserName:i.browser.name,browserVersion:i.browser.version,osName:i.os.name,osVersion:i.os.version,isMobile:i.isMobile}));s.send(ne(S))},s.onmessage=async i=>{var M;const S=te(k,oe(await i.data.arrayBuffer())),C=JSON.parse(S);C.status==="PENDING"?l.value=!0:(localStorage.setItem("auth_token",C.token),s.close(),window.location.href=((M=re.currentRoute.value.query.redirect)==null?void 0:M.toString())??"/")},s.onclose=async i=>{if(!(i.reason==="abort"||i.reason==="OK")){if(o.value=!1,e.value=!0,l.value=!1,!i.reason&&(await fetch(`${N()}/health_check`)).status===200){f.value="failed_connect_ws";return}f.value=`login.${i.reason?i.reason:"failed"}`}},window.setTimeout(function(){s.readyState!==1&&s.close(3001,"timeout")},2e3)});function J(){l.value=!1,e.value=!1,o.value=!1,s.close(3001,"abort")}return(d,w)=>{const y=we,k=fe;return T(),A(ce,null,[v("header",ye,[$(y,{"logged-in":!1})]),v("h1",null,p(d.$t("app_name")),1),v("div",ke,[E(v("form",{onSubmit:w[2]||(w[2]=ie((...i)=>c(V)&&c(V)(...i),["prevent"]))},[E(v("div",Se,[$(k),v("div",Ae,p(f.value?d.$t(f.value):""),1)],512),[[x,e.value]]),B.value?E((T(),A("md-outlined-text-field",{key:0,label:c(b)("password"),"onUpdate:modelValue":w[0]||(w[0]=i=>ae(m)?m.value=i:null),onKeydown:w[1]||(w[1]=le((...i)=>c(V)&&c(V)(...i),["enter"])),type:"password",class:"form-control",error:c(a),autocomplete:"current-password","error-text":c(a)?d.$t(c(a)):""},null,40,Ee)),[[ue,c(m)]]):P("",!0),r.value?P("",!0):(T(),A("md-filled-button",{key:1,disabled:c(o)},p(d.$t(c(o)?"logging_in":"log_in")),9,Te))],544),[[x,!l.value]]),E(v("div",null,[v("div",Be,[$(c(me))]),v("div",$e,p(d.$t("login.to_continue")),1),v("md-outlined-button",{onClick:J},p(d.$t("cancel")),1)],512),[[x,l.value]])]),c(u)?(T(),A("div",xe,p(d.$t("browser_warning")),1)):P("",!0)],64)}}}),Le=ve(Pe,[["__scopeId","data-v-596f5fe4"]]);export{Le as default}; diff --git a/app/src/main/resources/web/assets/MediaSidebar.vuevuetypescriptsetuptruelang-rTL93G-q.js b/app/src/main/resources/web/assets/MediaSidebar.vuevuetypescriptsetuptruelang-kDQsOpRT.js similarity index 93% rename from app/src/main/resources/web/assets/MediaSidebar.vuevuetypescriptsetuptruelang-rTL93G-q.js rename to app/src/main/resources/web/assets/MediaSidebar.vuevuetypescriptsetuptruelang-kDQsOpRT.js index 0a6597a0..73cc7542 100644 --- a/app/src/main/resources/web/assets/MediaSidebar.vuevuetypescriptsetuptruelang-rTL93G-q.js +++ b/app/src/main/resources/web/assets/MediaSidebar.vuevuetypescriptsetuptruelang-kDQsOpRT.js @@ -1 +1 @@ -import{_ as W}from"./LeftSidebar.vuevuetypescriptsetuptruelang-xn7lCt7t.js";import{_ as X}from"./TagFilter.vuevuetypescriptsetuptruelang-CUu0usUl.js";import{d as N,g as Y,u as U,h as y,aM as Z,l as ee,C as te,b3 as se,af as x,a1 as T,ag as F,o as u,c as h,P as ae,w as A,m as g,N as b,a as d,t as p,O as oe,i as M,s as V,I as ne,aH as O,K as ie,J as i,k as re,S as le,v as L,q as I,V as ce,e as $,aQ as ue,aR as pe,x as de,p as S,a6 as Q,a0 as _e,a7 as me,f as R,a8 as ve,aP as he}from"./index-BzaaAwnX.js";import{u as fe}from"./search-DwB6FdxH.js";const ye=["onClick"],ge={class:"title"},Te={class:"count"},qe=N({__name:"BucketFilter",props:{type:{type:String,required:!0},selected:{type:String,required:!0}},setup(_){const m=_,{t:q}=Y(),t=U(),f=y([]),{view:s}=Z(m.type),{refetch:k}=ee({handle:(o,l)=>{l?te(q(l),"error"):o&&(f.value=o.mediaBuckets)},document:se,variables:{type:m.type},appApi:!0}),r=o=>{o.type===m.type&&k()};return x(()=>{T.on("media_items_actioned",r)}),F(()=>{T.off("media_items_actioned",r)}),(o,l)=>(u(!0),h(oe,null,ae(f.value,a=>(u(),h("li",{key:a.id,onClick:A(v=>g(s)(g(t),a.id),["prevent"]),class:b({active:_.selected&&a.id===_.selected})},[d("span",ge,p(a.name),1),d("span",Te,p(a.itemCount.toLocaleString()),1)],10,ye))),128))}}),ke={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ie=d("path",{fill:"currentColor",d:"M11.95 18q.525 0 .888-.363t.362-.887t-.362-.888t-.888-.362t-.887.363t-.363.887t.363.888t.887.362m.05 4q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m.1-12.3q.625 0 1.088.4t.462 1q0 .55-.337.975t-.763.8q-.575.5-1.012 1.1t-.438 1.35q0 .35.263.588t.612.237q.375 0 .638-.25t.337-.625q.1-.525.45-.937t.75-.788q.575-.55.988-1.2t.412-1.45q0-1.275-1.037-2.087T12.1 6q-.95 0-1.812.4T8.975 7.625q-.175.3-.112.638t.337.512q.35.2.725.125t.625-.425q.275-.375.688-.575t.862-.2"},null,-1),$e=[Ie];function Se(_,m){return u(),h("svg",ke,[...$e])}const Ae={name:"material-symbols-help-outline-rounded",render:Se},be={class:"nav"},Be={class:"title"},Ce={key:0,class:"count"},De={class:"title"},we={key:0,class:"count"},Le=N({__name:"MediaSidebar",props:{type:{type:String,required:!0},gql:{type:Object,required:!0}},setup(_){const m=M(),{app:q}=V(m),t=_,f=U(),{counter:s}=V(M()),{parseQ:k}=fe(),r=ne({tagIds:[]}),o=y(""),l=y(!1),a=y(""),v=y(""),B=O(()=>{var e,c,n;return t.type===i.IMAGE?((e=s.value)==null?void 0:e.images)??-1:t.type===i.VIDEO?((c=s.value)==null?void 0:c.videos)??-1:t.type===i.AUDIO?((n=s.value)==null?void 0:n.audios)??-1:-1}),C=O(()=>{var e,c,n;return t.type===i.IMAGE?((e=s.value)==null?void 0:e.imagesTrash)??-1:t.type===i.VIDEO?((c=s.value)==null?void 0:c.videosTrash)??-1:t.type===i.AUDIO?((n=s.value)==null?void 0:n.audiosTrash)??-1:-1}),{fetch:D}=ie({handle:e=>{e&&(t.type===i.IMAGE?(s.value.images=e.total,s.value.imagesTrash=e.trash):t.type===i.VIDEO?(s.value.videos=e.total,s.value.videosTrash=e.trash):t.type===i.AUDIO&&(s.value.audios=e.total,s.value.audiosTrash=e.trash))},document:t.gql,variables:()=>({}),appApi:!0});function w(){var n;const e=Q.currentRoute.value;o.value=e.meta.group||"",D();const c=_e(((n=e.query.q)==null?void 0:n.toString())??"");k(r,c),a.value=r.tagIds.length===1?r.tagIds[0]:"",l.value=r.trash??!1,v.value=r.bucketId??"",a.value&&v.value&&(a.value=""),l.value&&(v.value="",a.value="")}w(),re(()=>Q.currentRoute.value.fullPath,()=>{w()});function G(){const e=me([{name:"trash",op:"",value:"true"}]);R(f,`/${o.value}?q=${ve(e)}`)}function H(){R(f,`/${o.value}`)}const E=e=>{e.type===t.type&&D()};return x(()=>{T.on("media_items_actioned",E)}),F(()=>{T.off("media_items_actioned",E)}),(e,c)=>{const n=Ae,P=he,z=qe,j=X,J=W,K=le("tooltip");return u(),L(J,null,{title:I(()=>[ce(p(e.$t(`page_title.${o.value}`)),1)]),body:I(()=>[d("ul",be,[d("li",{onClick:A(H,["prevent"]),class:b({active:!a.value&&!v.value&&!l.value})},[d("span",Be,p(e.$t("all")),1),B.value>=0?(u(),h("span",Ce,p(B.value.toLocaleString()),1)):$("",!0)],2),g(ue)(g(pe).MEDIA_TRASH,g(q).osVersion)?(u(),h("li",{key:0,onClick:A(G,["prevent"]),class:b({active:l.value})},[d("span",De,p(e.$t("trash")),1),de((u(),L(P,{class:"btn-help sm"},{icon:I(()=>[S(n)]),_:1})),[[K,e.$t("trash_tips")]]),C.value>=0?(u(),h("span",we,p(C.value.toLocaleString()),1)):$("",!0)],2)):$("",!0),S(z,{type:t.type,selected:v.value},null,8,["type","selected"])]),S(j,{type:t.type,selected:a.value},null,8,["type","selected"])]),_:1})}}});export{Le as _}; +import{_ as W}from"./LeftSidebar.vuevuetypescriptsetuptruelang-BWG8gajF.js";import{_ as X}from"./TagFilter.vuevuetypescriptsetuptruelang-DySu9lzm.js";import{d as N,g as Y,u as U,h as y,aM as Z,l as ee,C as te,b3 as se,af as x,a1 as T,ag as F,o as u,c as h,P as ae,w as A,m as g,N as b,a as d,t as p,O as oe,i as M,s as V,I as ne,aH as O,K as ie,J as i,k as re,S as le,v as L,q as I,V as ce,e as $,aQ as ue,aR as pe,x as de,p as S,a6 as Q,a0 as _e,a7 as me,f as R,a8 as ve,aP as he}from"./index-R8dLcqG_.js";import{u as fe}from"./search-ByVbj6Ls.js";const ye=["onClick"],ge={class:"title"},Te={class:"count"},qe=N({__name:"BucketFilter",props:{type:{type:String,required:!0},selected:{type:String,required:!0}},setup(_){const m=_,{t:q}=Y(),t=U(),f=y([]),{view:s}=Z(m.type),{refetch:k}=ee({handle:(o,l)=>{l?te(q(l),"error"):o&&(f.value=o.mediaBuckets)},document:se,variables:{type:m.type},appApi:!0}),r=o=>{o.type===m.type&&k()};return x(()=>{T.on("media_items_actioned",r)}),F(()=>{T.off("media_items_actioned",r)}),(o,l)=>(u(!0),h(oe,null,ae(f.value,a=>(u(),h("li",{key:a.id,onClick:A(v=>g(s)(g(t),a.id),["prevent"]),class:b({active:_.selected&&a.id===_.selected})},[d("span",ge,p(a.name),1),d("span",Te,p(a.itemCount.toLocaleString()),1)],10,ye))),128))}}),ke={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ie=d("path",{fill:"currentColor",d:"M11.95 18q.525 0 .888-.363t.362-.887t-.362-.888t-.888-.362t-.887.363t-.363.887t.363.888t.887.362m.05 4q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m.1-12.3q.625 0 1.088.4t.462 1q0 .55-.337.975t-.763.8q-.575.5-1.012 1.1t-.438 1.35q0 .35.263.588t.612.237q.375 0 .638-.25t.337-.625q.1-.525.45-.937t.75-.788q.575-.55.988-1.2t.412-1.45q0-1.275-1.037-2.087T12.1 6q-.95 0-1.812.4T8.975 7.625q-.175.3-.112.638t.337.512q.35.2.725.125t.625-.425q.275-.375.688-.575t.862-.2"},null,-1),$e=[Ie];function Se(_,m){return u(),h("svg",ke,[...$e])}const Ae={name:"material-symbols-help-outline-rounded",render:Se},be={class:"nav"},Be={class:"title"},Ce={key:0,class:"count"},De={class:"title"},we={key:0,class:"count"},Le=N({__name:"MediaSidebar",props:{type:{type:String,required:!0},gql:{type:Object,required:!0}},setup(_){const m=M(),{app:q}=V(m),t=_,f=U(),{counter:s}=V(M()),{parseQ:k}=fe(),r=ne({tagIds:[]}),o=y(""),l=y(!1),a=y(""),v=y(""),B=O(()=>{var e,c,n;return t.type===i.IMAGE?((e=s.value)==null?void 0:e.images)??-1:t.type===i.VIDEO?((c=s.value)==null?void 0:c.videos)??-1:t.type===i.AUDIO?((n=s.value)==null?void 0:n.audios)??-1:-1}),C=O(()=>{var e,c,n;return t.type===i.IMAGE?((e=s.value)==null?void 0:e.imagesTrash)??-1:t.type===i.VIDEO?((c=s.value)==null?void 0:c.videosTrash)??-1:t.type===i.AUDIO?((n=s.value)==null?void 0:n.audiosTrash)??-1:-1}),{fetch:D}=ie({handle:e=>{e&&(t.type===i.IMAGE?(s.value.images=e.total,s.value.imagesTrash=e.trash):t.type===i.VIDEO?(s.value.videos=e.total,s.value.videosTrash=e.trash):t.type===i.AUDIO&&(s.value.audios=e.total,s.value.audiosTrash=e.trash))},document:t.gql,variables:()=>({}),appApi:!0});function w(){var n;const e=Q.currentRoute.value;o.value=e.meta.group||"",D();const c=_e(((n=e.query.q)==null?void 0:n.toString())??"");k(r,c),a.value=r.tagIds.length===1?r.tagIds[0]:"",l.value=r.trash??!1,v.value=r.bucketId??"",a.value&&v.value&&(a.value=""),l.value&&(v.value="",a.value="")}w(),re(()=>Q.currentRoute.value.fullPath,()=>{w()});function G(){const e=me([{name:"trash",op:"",value:"true"}]);R(f,`/${o.value}?q=${ve(e)}`)}function H(){R(f,`/${o.value}`)}const E=e=>{e.type===t.type&&D()};return x(()=>{T.on("media_items_actioned",E)}),F(()=>{T.off("media_items_actioned",E)}),(e,c)=>{const n=Ae,P=he,z=qe,j=X,J=W,K=le("tooltip");return u(),L(J,null,{title:I(()=>[ce(p(e.$t(`page_title.${o.value}`)),1)]),body:I(()=>[d("ul",be,[d("li",{onClick:A(H,["prevent"]),class:b({active:!a.value&&!v.value&&!l.value})},[d("span",Be,p(e.$t("all")),1),B.value>=0?(u(),h("span",Ce,p(B.value.toLocaleString()),1)):$("",!0)],2),g(ue)(g(pe).MEDIA_TRASH,g(q).osVersion)?(u(),h("li",{key:0,onClick:A(G,["prevent"]),class:b({active:l.value})},[d("span",De,p(e.$t("trash")),1),de((u(),L(P,{class:"btn-help sm"},{icon:I(()=>[S(n)]),_:1})),[[K,e.$t("trash_tips")]]),C.value>=0?(u(),h("span",we,p(C.value.toLocaleString()),1)):$("",!0)],2)):$("",!0),S(z,{type:t.type,selected:v.value},null,8,["type","selected"])]),S(j,{type:t.type,selected:a.value},null,8,["type","selected"])]),_:1})}}});export{Le as _}; diff --git a/app/src/main/resources/web/assets/MessagesSidebar-CfBuWvqn.js b/app/src/main/resources/web/assets/MessagesSidebar-Bq3uPVyY.js similarity index 77% rename from app/src/main/resources/web/assets/MessagesSidebar-CfBuWvqn.js rename to app/src/main/resources/web/assets/MessagesSidebar-Bq3uPVyY.js index 9f6b7ade..33b75c75 100644 --- a/app/src/main/resources/web/assets/MessagesSidebar-CfBuWvqn.js +++ b/app/src/main/resources/web/assets/MessagesSidebar-Bq3uPVyY.js @@ -1 +1 @@ -import{_ as I}from"./LeftSidebar.vuevuetypescriptsetuptruelang-xn7lCt7t.js";import{_ as L}from"./TagFilter.vuevuetypescriptsetuptruelang-CUu0usUl.js";import{d as M,u as N,s as V,i as Q,I as A,h as m,K as R,k as x,v as z,q as g,a5 as P,a6 as y,a0 as D,o as u,V as E,t,a,w as h,N as S,m as k,c as _,e as C,P as F,O as G,p as K,a7 as O,f as $,a8 as j}from"./index-BzaaAwnX.js";import{u as H}from"./search-DwB6FdxH.js";import"./more-vert-BRJfC0iG.js";import"./EditValueModal-Ws2hdG3a.js";import"./vee-validate.esm-DNjIRPsN.js";const J={class:"nav"},U={class:"title"},W={key:0,class:"count"},X=["onClick"],Y={class:"title"},Z={key:0,class:"count"},ie=M({__name:"MessagesSidebar",setup(ee){const d=N(),{counter:p}=V(Q()),{parseQ:B}=H(),o=A({tagIds:[]}),n=m(""),c=m(""),r=m(new Map),{fetch:b}=R({handle:e=>{e&&(p.value.messages=e.total,r.value.set("1",e.inbox),r.value.set("2",e.sent),r.value.set("3",e.drafts))},document:P,variables:()=>({}),appApi:!0});function v(e){return r.value.get(e)??-1}function f(){var i;const e=y.currentRoute.value,l=D(((i=e.query.q)==null?void 0:i.toString())??"");B(o,l),n.value=o.type??"",c.value=o.tagIds.length===1?o.tagIds[0]:"",n.value&&(c.value=""),b()}f(),x(()=>y.currentRoute.value,()=>{f()});function q(e){const l=O([{name:"type",op:"",value:e}]);$(d,`/messages?q=${j(l)}`)}function w(){$(d,"/messages")}return(e,l)=>{const i=L,T=I;return u(),z(T,null,{title:g(()=>[E(t(e.$t("page_title.messages")),1)]),body:g(()=>[a("ul",J,[a("li",{onClick:h(w,["prevent"]),class:S({active:!c.value&&!n.value})},[a("span",U,t(e.$t("all")),1),k(p).messages>=0?(u(),_("span",W,t(k(p).messages.toLocaleString()),1)):C("",!0)],2),(u(),_(G,null,F(["1","2","3"],s=>a("li",{key:s,onClick:h(se=>q(s),["prevent"]),class:S({active:s===n.value})},[a("span",Y,t(e.$t(`message_type.${s}`)),1),v(s)>=0?(u(),_("span",Z,t(v(s).toLocaleString()),1)):C("",!0)],10,X)),64))]),K(i,{type:"SMS",selected:c.value},null,8,["selected"])]),_:1})}}});export{ie as default}; +import{_ as I}from"./LeftSidebar.vuevuetypescriptsetuptruelang-BWG8gajF.js";import{_ as L}from"./TagFilter.vuevuetypescriptsetuptruelang-DySu9lzm.js";import{d as M,u as N,s as V,i as Q,I as A,h as m,K as R,k as x,v as z,q as g,a5 as P,a6 as y,a0 as D,o as u,V as E,t,a,w as h,N as S,m as k,c as _,e as C,P as F,O as G,p as K,a7 as O,f as $,a8 as j}from"./index-R8dLcqG_.js";import{u as H}from"./search-ByVbj6Ls.js";import"./more-vert-zjmMMiPD.js";import"./EditValueModal-O1aAFYgx.js";import"./vee-validate.esm-vpr6zxQb.js";const J={class:"nav"},U={class:"title"},W={key:0,class:"count"},X=["onClick"],Y={class:"title"},Z={key:0,class:"count"},ie=M({__name:"MessagesSidebar",setup(ee){const d=N(),{counter:p}=V(Q()),{parseQ:B}=H(),o=A({tagIds:[]}),n=m(""),c=m(""),r=m(new Map),{fetch:b}=R({handle:e=>{e&&(p.value.messages=e.total,r.value.set("1",e.inbox),r.value.set("2",e.sent),r.value.set("3",e.drafts))},document:P,variables:()=>({}),appApi:!0});function v(e){return r.value.get(e)??-1}function f(){var i;const e=y.currentRoute.value,l=D(((i=e.query.q)==null?void 0:i.toString())??"");B(o,l),n.value=o.type??"",c.value=o.tagIds.length===1?o.tagIds[0]:"",n.value&&(c.value=""),b()}f(),x(()=>y.currentRoute.value,()=>{f()});function q(e){const l=O([{name:"type",op:"",value:e}]);$(d,`/messages?q=${j(l)}`)}function w(){$(d,"/messages")}return(e,l)=>{const i=L,T=I;return u(),z(T,null,{title:g(()=>[E(t(e.$t("page_title.messages")),1)]),body:g(()=>[a("ul",J,[a("li",{onClick:h(w,["prevent"]),class:S({active:!c.value&&!n.value})},[a("span",U,t(e.$t("all")),1),k(p).messages>=0?(u(),_("span",W,t(k(p).messages.toLocaleString()),1)):C("",!0)],2),(u(),_(G,null,F(["1","2","3"],s=>a("li",{key:s,onClick:h(se=>q(s),["prevent"]),class:S({active:s===n.value})},[a("span",Y,t(e.$t(`message_type.${s}`)),1),v(s)>=0?(u(),_("span",Z,t(v(s).toLocaleString()),1)):C("",!0)],10,X)),64))]),K(i,{type:"SMS",selected:c.value},null,8,["selected"])]),_:1})}}});export{ie as default}; diff --git a/app/src/main/resources/web/assets/MessagesView-BXs-YvFg.js b/app/src/main/resources/web/assets/MessagesView-Lo9CFG6T.js similarity index 93% rename from app/src/main/resources/web/assets/MessagesView-BXs-YvFg.js rename to app/src/main/resources/web/assets/MessagesView-Lo9CFG6T.js index c316a3fe..324a4f4b 100644 --- a/app/src/main/resources/web/assets/MessagesView-BXs-YvFg.js +++ b/app/src/main/resources/web/assets/MessagesView-Lo9CFG6T.js @@ -1 +1 @@ -import{_ as ye}from"./VPagination.vuevuetypescriptsetuptruelang-DJTUsUyq.js";import{d as be,u as we,s as Ce,i as Se,h as w,g as Te,I as $e,J as Le,K as Me,j as Ie,L as xe,M as Ae,c as n,a,m as e,t as i,x as C,w as u,p as r,e as S,N as J,O as q,P as W,v as De,Q as qe,f as Ve,C as Ee,R as Ue,B as Be,S as Ne,o,T as Re,U as He,V as Ke,W as Qe,X as ze,F as Ge,G as Pe,Y as Fe,Z as Oe,$ as je,a0 as Je,a1 as T,a2 as We,a3 as Xe,a4 as Ye,H as Ze}from"./index-BzaaAwnX.js";import{_ as es}from"./call-outline-rounded-vG9wdFxG.js";import{_ as ss,a as ts}from"./SearchInput-DTMVECJE.js";import{u as as,a as os}from"./tags-BvnEKqTV.js";import{u as ns,a as ls}from"./key-events-C5OjC_dP.js";import{u as cs}from"./search-DwB6FdxH.js";import"./search-rounded-Btuwf-IQ.js";import"./rss-feed-rounded-9FbiHzkN.js";import"./vee-validate.esm-DNjIRPsN.js";const $=h=>(Ge("data-v-68325306"),h=h(),Pe(),h),is={class:"top-app-bar"},ds=["checked","indeterminate"],rs={class:"title"},_s={key:0},us={key:1},ps=$(()=>a("md-ripple",null,null,-1)),ms={class:"actions"},vs={class:"scroll-content"},gs=["onClick","onMouseover"],hs={class:"start"},ks=["onClick","checked"],fs=["onClick","checked"],ys={class:"number"},bs={class:"title"},ws=["innerHTML"],Cs={class:"actions"},Ss=["onClick"],Ts=$(()=>a("md-ripple",null,null,-1)),$s={key:0,indeterminate:"",class:"spinner-sm"},Ls=["onClick"],Ms=$(()=>a("md-ripple",null,null,-1)),Is={class:"info"},xs={class:"time"},As={class:"start"},Ds=$(()=>a("div",{class:"checkbox"},[a("div",{class:"skeleton-checkbox"})],-1)),qs={class:"number"},Vs=Fe('
',5),Es={key:0,class:"no-data-placeholder"},p=50,Us=be({__name:"MessagesView",setup(h){var j;const X=we(),{app:Y}=Ce(Se()),m=w([]),{t:V}=Te(),{parseQ:Z}=cs(),E=$e({tagIds:[]}),_=Le.SMS,U=qe(),B=U.query,L=w(parseInt(((j=B.page)==null?void 0:j.toString())??"1")),k=w(""),{tags:f,fetch:ee}=as(_),{addToTags:se}=os(_,f),{selectedIds:v,allChecked:N,realAllChecked:M,selectRealAll:te,allCheckedAlertVisible:ae,clearSelection:I,toggleAllChecked:R,toggleSelect:H,total:d,checked:x,shiftEffectingIds:K,handleItemClick:oe,handleMouseOver:ne,selectAll:le,shouldSelect:ce}=ns(m),Q=s=>{const l=U.query.q;Ve(X,l?`/messages?page=${s}&q=${l}`:`/messages?page=${s}`)},{keyDown:z,keyUp:G}=ls(d,p,L,le,I,Q,()=>{}),{loading:A,fetch:D}=Me({handle:(s,l)=>{l?Ee(V(l),"error"):s&&(m.value=s.messages,d.value=s.messageCount)},document:Ue,variables:()=>({offset:(L.value-1)*p,limit:p,query:k.value}),appApi:!0}),ie=["1","2","3"].map(s=>({id:s,name:V("message_type."+s)}));function de(s){Oe(je,{type:_,tags:f.value,item:{key:s.id,title:"",size:0},selected:f.value.filter(l=>s.tags.some(y=>y.id===l.id))})}const P=w(""),{mutate:re,loading:_e}=Ie({document:Be,appApi:!0});function ue(s){P.value=s.id,re({number:s.address})}function pe(s){return s?`/messages?q=${s}`:"/messages"}const F=s=>{s.type===_&&(I(),D())},O=s=>{s.type===_&&D()};return xe(()=>{var s;k.value=Je(((s=B.q)==null?void 0:s.toString())??""),Z(E,k.value),ee(),D(),T.on("item_tags_updated",O),T.on("items_tags_updated",F),window.addEventListener("keydown",z),window.addEventListener("keyup",G)}),Ae(()=>{T.off("item_tags_updated",O),T.off("items_tags_updated",F),window.removeEventListener("keydown",z),window.removeEventListener("keyup",G)}),(s,l)=>{const y=We,me=ss,ve=ts,ge=Xe,he=es,ke=Ye,fe=ye,b=Ne("tooltip");return o(),n(q,null,[a("div",is,[a("md-checkbox",{"touch-target":"wrapper",onChange:l[0]||(l[0]=(...t)=>e(R)&&e(R)(...t)),checked:e(N),indeterminate:!e(N)&&e(x)},null,40,ds),a("div",rs,[e(v).length?(o(),n("span",_s,i(s.$t("x_selected",{count:e(M)?e(d).toLocaleString():e(v).length.toLocaleString()})),1)):(o(),n("span",us,i(s.$t("page_title.messages"))+" ("+i(e(d).toLocaleString())+")",1)),e(x)?C((o(),n("button",{key:2,class:"btn-icon",onClick:l[1]||(l[1]=u(t=>e(se)(e(v),e(M),k.value),["stop"]))},[ps,r(y)])),[[b,s.$t("add_to_tags")]]):S("",!0)]),a("div",ms,[r(me,{filter:E,tags:e(f),types:e(ie),"get-url":pe},null,8,["filter","tags","types"])])]),r(ve,{limit:p,total:e(d),"all-checked-alert-visible":e(ae),"real-all-checked":e(M),"select-real-all":e(te),"clear-selection":e(I)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),a("div",vs,[a("div",{class:J(["sms-list",{"select-mode":e(x)}])},[(o(!0),n(q,null,W(m.value,(t,g)=>(o(),n("section",{class:J(["sms-item selectable-card",{selected:e(v).includes(t.id),selecting:e(K).includes(t.id)}]),key:t.id,onClick:u(c=>e(oe)(c,t,g,()=>{}),["stop"]),onMouseover:c=>e(ne)(c,g)},[a("div",hs,[e(K).includes(t.id)?(o(),n("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:u(c=>e(H)(c,t,g),["stop"]),checked:e(ce)},null,8,ks)):(o(),n("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:u(c=>e(H)(c,t,g),["stop"]),checked:e(v).includes(t.id)},null,8,fs)),a("span",ys,[r(ge,{id:g+1,raw:t},null,8,["id","raw"])])]),a("div",bs,i(t.address),1),a("div",{class:"subtitle",innerHTML:e(Re)(t.body)},null,8,ws),a("div",Cs,[C((o(),n("button",{class:"btn-icon sm",onClick:u(c=>de(t),["stop"])},[Ts,r(y)],8,Ss)),[[b,s.$t("add_to_tags")]]),e(_e)&&P.value===t.id?(o(),n("md-circular-progress",$s)):C((o(),n("button",{key:1,class:"btn-icon sm",onClick:u(c=>ue(t),["stop"])},[Ms,r(he)],8,Ls)),[[b,s.$t("make_a_phone_call")]])]),a("div",Is,[a("span",null,i(s.$t(`message_type.${t.type}`)),1),r(ke,{tags:t.tags,type:e(_),"only-links":!0},null,8,["tags","type"])]),a("div",xs,[C((o(),n("span",null,[Ke(i(e(Qe)(t.date)),1)])),[[b,e(He)(t.date)]])])],42,gs))),128)),e(A)&&m.value.length===0?(o(),n(q,{key:0},W(20,t=>a("section",{class:"sms-item selectable-card-skeleton",key:t},[a("div",As,[Ds,a("span",qs,i(t),1)]),Vs])),64)):S("",!0)],2),!e(A)&&m.value.length===0?(o(),n("div",Es,i(s.$t(e(ze)(e(A),e(Y).permissions,"READ_SMS"))),1)):S("",!0),e(d)>p?(o(),De(fe,{key:1,page:L.value,go:Q,total:e(d),limit:p},null,8,["page","total"])):S("",!0)])],64)}}}),Os=Ze(Us,[["__scopeId","data-v-68325306"]]);export{Os as default}; +import{_ as ye}from"./VPagination.vuevuetypescriptsetuptruelang-goYu96wT.js";import{d as be,u as we,s as Ce,i as Se,h as w,g as Te,I as $e,J as Le,K as Me,j as Ie,L as xe,M as Ae,c as n,a,m as e,t as i,x as C,w as u,p as r,e as S,N as J,O as q,P as W,v as De,Q as qe,f as Ve,C as Ee,R as Ue,B as Be,S as Ne,o,T as Re,U as He,V as Ke,W as Qe,X as ze,F as Ge,G as Pe,Y as Fe,Z as Oe,$ as je,a0 as Je,a1 as T,a2 as We,a3 as Xe,a4 as Ye,H as Ze}from"./index-R8dLcqG_.js";import{_ as es}from"./call-outline-rounded-BLAgo6pA.js";import{_ as ss,a as ts}from"./SearchInput-DhaE-3h8.js";import{u as as,a as os}from"./tags-Dbpv368M.js";import{u as ns,a as ls}from"./key-events-BNCM8SMB.js";import{u as cs}from"./search-ByVbj6Ls.js";import"./search-rounded-CULEMJ2O.js";import"./rss-feed-rounded-BCiGdgJ5.js";import"./vee-validate.esm-vpr6zxQb.js";const $=h=>(Ge("data-v-68325306"),h=h(),Pe(),h),is={class:"top-app-bar"},ds=["checked","indeterminate"],rs={class:"title"},_s={key:0},us={key:1},ps=$(()=>a("md-ripple",null,null,-1)),ms={class:"actions"},vs={class:"scroll-content"},gs=["onClick","onMouseover"],hs={class:"start"},ks=["onClick","checked"],fs=["onClick","checked"],ys={class:"number"},bs={class:"title"},ws=["innerHTML"],Cs={class:"actions"},Ss=["onClick"],Ts=$(()=>a("md-ripple",null,null,-1)),$s={key:0,indeterminate:"",class:"spinner-sm"},Ls=["onClick"],Ms=$(()=>a("md-ripple",null,null,-1)),Is={class:"info"},xs={class:"time"},As={class:"start"},Ds=$(()=>a("div",{class:"checkbox"},[a("div",{class:"skeleton-checkbox"})],-1)),qs={class:"number"},Vs=Fe('
',5),Es={key:0,class:"no-data-placeholder"},p=50,Us=be({__name:"MessagesView",setup(h){var j;const X=we(),{app:Y}=Ce(Se()),m=w([]),{t:V}=Te(),{parseQ:Z}=cs(),E=$e({tagIds:[]}),_=Le.SMS,U=qe(),B=U.query,L=w(parseInt(((j=B.page)==null?void 0:j.toString())??"1")),k=w(""),{tags:f,fetch:ee}=as(_),{addToTags:se}=os(_,f),{selectedIds:v,allChecked:N,realAllChecked:M,selectRealAll:te,allCheckedAlertVisible:ae,clearSelection:I,toggleAllChecked:R,toggleSelect:H,total:d,checked:x,shiftEffectingIds:K,handleItemClick:oe,handleMouseOver:ne,selectAll:le,shouldSelect:ce}=ns(m),Q=s=>{const l=U.query.q;Ve(X,l?`/messages?page=${s}&q=${l}`:`/messages?page=${s}`)},{keyDown:z,keyUp:G}=ls(d,p,L,le,I,Q,()=>{}),{loading:A,fetch:D}=Me({handle:(s,l)=>{l?Ee(V(l),"error"):s&&(m.value=s.messages,d.value=s.messageCount)},document:Ue,variables:()=>({offset:(L.value-1)*p,limit:p,query:k.value}),appApi:!0}),ie=["1","2","3"].map(s=>({id:s,name:V("message_type."+s)}));function de(s){Oe(je,{type:_,tags:f.value,item:{key:s.id,title:"",size:0},selected:f.value.filter(l=>s.tags.some(y=>y.id===l.id))})}const P=w(""),{mutate:re,loading:_e}=Ie({document:Be,appApi:!0});function ue(s){P.value=s.id,re({number:s.address})}function pe(s){return s?`/messages?q=${s}`:"/messages"}const F=s=>{s.type===_&&(I(),D())},O=s=>{s.type===_&&D()};return xe(()=>{var s;k.value=Je(((s=B.q)==null?void 0:s.toString())??""),Z(E,k.value),ee(),D(),T.on("item_tags_updated",O),T.on("items_tags_updated",F),window.addEventListener("keydown",z),window.addEventListener("keyup",G)}),Ae(()=>{T.off("item_tags_updated",O),T.off("items_tags_updated",F),window.removeEventListener("keydown",z),window.removeEventListener("keyup",G)}),(s,l)=>{const y=We,me=ss,ve=ts,ge=Xe,he=es,ke=Ye,fe=ye,b=Ne("tooltip");return o(),n(q,null,[a("div",is,[a("md-checkbox",{"touch-target":"wrapper",onChange:l[0]||(l[0]=(...t)=>e(R)&&e(R)(...t)),checked:e(N),indeterminate:!e(N)&&e(x)},null,40,ds),a("div",rs,[e(v).length?(o(),n("span",_s,i(s.$t("x_selected",{count:e(M)?e(d).toLocaleString():e(v).length.toLocaleString()})),1)):(o(),n("span",us,i(s.$t("page_title.messages"))+" ("+i(e(d).toLocaleString())+")",1)),e(x)?C((o(),n("button",{key:2,class:"btn-icon",onClick:l[1]||(l[1]=u(t=>e(se)(e(v),e(M),k.value),["stop"]))},[ps,r(y)])),[[b,s.$t("add_to_tags")]]):S("",!0)]),a("div",ms,[r(me,{filter:E,tags:e(f),types:e(ie),"get-url":pe},null,8,["filter","tags","types"])])]),r(ve,{limit:p,total:e(d),"all-checked-alert-visible":e(ae),"real-all-checked":e(M),"select-real-all":e(te),"clear-selection":e(I)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),a("div",vs,[a("div",{class:J(["sms-list",{"select-mode":e(x)}])},[(o(!0),n(q,null,W(m.value,(t,g)=>(o(),n("section",{class:J(["sms-item selectable-card",{selected:e(v).includes(t.id),selecting:e(K).includes(t.id)}]),key:t.id,onClick:u(c=>e(oe)(c,t,g,()=>{}),["stop"]),onMouseover:c=>e(ne)(c,g)},[a("div",hs,[e(K).includes(t.id)?(o(),n("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:u(c=>e(H)(c,t,g),["stop"]),checked:e(ce)},null,8,ks)):(o(),n("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:u(c=>e(H)(c,t,g),["stop"]),checked:e(v).includes(t.id)},null,8,fs)),a("span",ys,[r(ge,{id:g+1,raw:t},null,8,["id","raw"])])]),a("div",bs,i(t.address),1),a("div",{class:"subtitle",innerHTML:e(Re)(t.body)},null,8,ws),a("div",Cs,[C((o(),n("button",{class:"btn-icon sm",onClick:u(c=>de(t),["stop"])},[Ts,r(y)],8,Ss)),[[b,s.$t("add_to_tags")]]),e(_e)&&P.value===t.id?(o(),n("md-circular-progress",$s)):C((o(),n("button",{key:1,class:"btn-icon sm",onClick:u(c=>ue(t),["stop"])},[Ms,r(he)],8,Ls)),[[b,s.$t("make_a_phone_call")]])]),a("div",Is,[a("span",null,i(s.$t(`message_type.${t.type}`)),1),r(ke,{tags:t.tags,type:e(_),"only-links":!0},null,8,["tags","type"])]),a("div",xs,[C((o(),n("span",null,[Ke(i(e(Qe)(t.date)),1)])),[[b,e(He)(t.date)]])])],42,gs))),128)),e(A)&&m.value.length===0?(o(),n(q,{key:0},W(20,t=>a("section",{class:"sms-item selectable-card-skeleton",key:t},[a("div",As,[Ds,a("span",qs,i(t),1)]),Vs])),64)):S("",!0)],2),!e(A)&&m.value.length===0?(o(),n("div",Es,i(s.$t(e(ze)(e(A),e(Y).permissions,"READ_SMS"))),1)):S("",!0),e(d)>p?(o(),De(fe,{key:1,page:L.value,go:Q,total:e(d),limit:p},null,8,["page","total"])):S("",!0)])],64)}}}),Os=Ze(Us,[["__scopeId","data-v-68325306"]]);export{Os as default}; diff --git a/app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-BaOpzcW2.js b/app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-BNZRjtJE.js similarity index 99% rename from app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-BaOpzcW2.js rename to app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-BNZRjtJE.js index eb540910..d6c64d22 100644 --- a/app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-BaOpzcW2.js +++ b/app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-BNZRjtJE.js @@ -1,5 +1,5 @@ -const __vite__fileDeps=["assets/freemarker2-DExPAC1B.js","assets/index-BzaaAwnX.js","assets/index-D4zVegIe.css","assets/handlebars-BOx74Vw8.js","assets/html-B98YRxTm.js","assets/javascript-46oaFvXi.js","assets/typescript-B2JOWJ8l.js","assets/liquid-BtfrggTR.js","assets/python-CPdyGXTu.js","assets/razor-C8NV1rZc.js","assets/xml-B8uJIXUe.js","assets/yaml-BN2Qx_1b.js","assets/cssMode-DtbAo8VM.js","assets/htmlMode-B3f09YUI.js","assets/jsonMode-Bx8X7dz8.js","assets/tsMode-D5aWU1mP.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -var o6=Object.defineProperty;var r6=(o,e,t)=>e in o?o6(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var Zt=(o,e,t)=>(r6(o,typeof e!="symbol"?e+"":e,t),t);import{cn as me,d as a6,co as l6,aH as d6,cb as c6,h as h6,af as DT,k as k0,a1 as xT,ag as u6,o as f6,c as g6,n as p6}from"./index-BzaaAwnX.js";let m6=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function _6(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(i,n)=>{const s=n[0],r=e[s];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),m6&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function g(o,e,...t){return _6(e,t)}var IS;const mp="en";let Ib=!1,Eb=!1,Uv=!1,r4=!1,pE=!1,mE=!1,a4=!1,I0,$v=mp,v6,Zo;const ci=typeof self=="object"?self:typeof global=="object"?global:{};let Rn;typeof ci.vscode<"u"&&typeof ci.vscode.process<"u"?Rn=ci.vscode.process:typeof process<"u"&&(Rn=process);const b6=typeof((IS=Rn==null?void 0:Rn.versions)===null||IS===void 0?void 0:IS.electron)=="string",C6=b6&&(Rn==null?void 0:Rn.type)==="renderer";if(typeof navigator=="object"&&!C6)Zo=navigator.userAgent,Ib=Zo.indexOf("Windows")>=0,Eb=Zo.indexOf("Macintosh")>=0,mE=(Zo.indexOf("Macintosh")>=0||Zo.indexOf("iPad")>=0||Zo.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Uv=Zo.indexOf("Linux")>=0,a4=(Zo==null?void 0:Zo.indexOf("Mobi"))>=0,pE=!0,g({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),I0=mp,$v=I0;else if(typeof Rn=="object"){Ib=Rn.platform==="win32",Eb=Rn.platform==="darwin",Uv=Rn.platform==="linux",Uv&&Rn.env.SNAP&&Rn.env.SNAP_REVISION,Rn.env.CI||Rn.env.BUILD_ARTIFACTSTAGINGDIRECTORY,I0=mp,$v=mp;const o=Rn.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];I0=e.locale,$v=t||mp,v6=e._translationsConfigFile}catch{}r4=!0}else console.error("Unable to resolve platform.");const Qi=Ib,Ke=Eb,hn=Uv,ur=r4,Kd=pE,w6=pE&&typeof ci.importScripts=="function",fa=mE,S6=a4,ga=Zo,y6=$v,L6=typeof ci.postMessage=="function"&&!ci.importScripts,l4=(()=>{if(L6){const o=[];ci.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=o.length;i{const i=++e;o.push({id:i,callback:t}),ci.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),Ps=Eb||mE?2:Ib?1:3;let kT=!0,IT=!1;function d4(){if(!IT){IT=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,kT=new Uint16Array(o.buffer)[0]===513}return kT}const c4=!!(ga&&ga.indexOf("Chrome")>=0),D6=!!(ga&&ga.indexOf("Firefox")>=0),x6=!!(!c4&&ga&&ga.indexOf("Safari")>=0),k6=!!(ga&&ga.indexOf("Edg/")>=0);ga&&ga.indexOf("Android")>=0;var it;(function(o){function e(b){return b&&typeof b=="object"&&typeof b[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function i(){return t}o.empty=i;function*n(b){yield b}o.single=n;function s(b){return e(b)?b:n(b)}o.wrap=s;function r(b){return b||t}o.from=r;function a(b){return!b||b[Symbol.iterator]().next().done===!0}o.isEmpty=a;function l(b){return b[Symbol.iterator]().next().value}o.first=l;function d(b,v){for(const C of b)if(v(C))return!0;return!1}o.some=d;function c(b,v){for(const C of b)if(v(C))return C}o.find=c;function*h(b,v){for(const C of b)v(C)&&(yield C)}o.filter=h;function*u(b,v){let C=0;for(const S of b)yield v(S,C++)}o.map=u;function*f(...b){for(const v of b)for(const C of v)yield C}o.concat=f;function p(b,v,C){let S=C;for(const x of b)S=v(S,x);return S}o.reduce=p;function*m(b,v,C=b.length){for(v<0&&(v+=b.length),C<0?C+=b.length:C>b.length&&(C=b.length);v{n||(n=!0,this._remove(i))}}shift(){if(this._first!==vi.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==vi.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==vi.Undefined&&e.next!==vi.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===vi.Undefined&&e.next===vi.Undefined?(this._first=vi.Undefined,this._last=vi.Undefined):e.next===vi.Undefined?(this._last=this._last.prev,this._last.next=vi.Undefined):e.prev===vi.Undefined&&(this._first=this._first.next,this._first.prev=vi.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==vi.Undefined;)yield e.element,e=e.next}}const h4="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function I6(o=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of h4)o.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const _E=I6();function u4(o){let e=_E;if(o&&o instanceof RegExp)if(o.global)e=o;else{let t="g";o.ignoreCase&&(t+="i"),o.multiline&&(t+="m"),o.unicode&&(t+="u"),e=new RegExp(o.source,t)}return e.lastIndex=0,e}const f4=new ln;f4.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function _m(o,e,t,i,n){if(n||(n=it.first(f4)),t.length>n.maxLen){let d=o-n.maxLen/2;return d<0?d=0:i+=d,t=t.substring(d,o+n.maxLen/2),_m(o,e,t,i,n)}const s=Date.now(),r=o-1-i;let a=-1,l=null;for(let d=1;!(Date.now()-s>=n.timeBudget);d++){const c=r-n.windowSize*d;e.lastIndex=Math.max(0,c);const h=E6(e,t,r,a);if(!h&&l||(l=h,c<=0))break;a=c}if(l){const d={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,d}return null}function E6(o,e,t,i){let n;for(;n=o.exec(e);){const s=n.index||0;if(s<=t&&o.lastIndex>=t)return n;if(i>0&&s>i)return null}return null}function Zs(o,e=0){return o[o.length-(1+e)]}function N6(o){if(o.length===0)throw new Error("Invalid tail call");return[o.slice(0,o.length-1),o[o.length-1]]}function Bn(o,e,t=(i,n)=>i===n){if(o===e)return!0;if(!o||!e||o.length!==e.length)return!1;for(let i=0,n=o.length;it(o[i],e))}function M6(o,e){let t=0,i=o-1;for(;t<=i;){const n=(t+i)/2|0,s=e(n);if(s<0)t=n+1;else if(s>0)i=n-1;else return n}return-(t+1)}function g4(o,e){let t=0,i=o.length;if(i===0)return 0;for(;t=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],s=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?s.push(a):r.push(a)}return o!!e)}function NT(o){let e=0;for(let t=0;t0}function Dd(o,e=t=>t){const t=new Set;return o.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function m4(o,e){const t=A6(o,e);if(t!==-1)return o[t]}function A6(o,e){for(let t=o.length-1;t>=0;t--){const i=o[t];if(e(i))return t}return-1}function _4(o,e){return o.length>0?o[0]:e}function Mn(o,e){let t=typeof e=="number"?o:0;typeof e=="number"?t=o:(t=0,e=o);const i=[];if(t<=e)for(let n=t;ne;n--)i.push(n);return i}function y1(o,e,t){const i=o.slice(0,e),n=o.slice(e);return i.concat(t,n)}function ES(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.unshift(e))}function E0(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.push(e))}function TT(o,e){for(const t of e)o.push(t)}function vE(o){return Array.isArray(o)?o:[o]}function R6(o,e,t){const i=v4(o,e),n=o.length,s=t.length;o.length=n+s;for(let r=n-1;r>=i;r--)o[r+s]=o[r];for(let r=0;r0}o.isGreaterThan=t;function i(n){return n===0}o.isNeitherLessOrGreaterThan=i,o.greaterThan=1,o.lessThan=-1,o.neitherLessOrGreaterThan=0})($L||($L={}));function Vp(o,e){return(t,i)=>e(o(t),o(i))}const P6=(o,e)=>o-e;function b4(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i0&&(t=n)}return t}function O6(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i=0&&(t=n)}return t}function F6(o,e){return b4(o,(t,i)=>-e(t,i))}class Nf{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class aa{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new aa(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new aa(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(n=>((i||$L.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0)),t}}aa.empty=new aa(o=>{});function Wn(o){return typeof o=="string"}function Xn(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&!(o instanceof RegExp)&&!(o instanceof Date)}function B6(o){const e=Object.getPrototypeOf(Uint8Array);return typeof o=="object"&&o instanceof e}function xd(o){return typeof o=="number"&&!isNaN(o)}function AT(o){return!!o&&typeof o[Symbol.iterator]=="function"}function C4(o){return o===!0||o===!1}function us(o){return typeof o>"u"}function W6(o){return!Ms(o)}function Ms(o){return us(o)||o===null}function _t(o,e){if(!o)throw new Error("Unexpected type")}function Fu(o){if(Ms(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function Nb(o){return typeof o=="function"}function V6(o,e){const t=Math.min(o.length,e.length);for(let i=0;i{e[t]=i&&typeof i=="object"?qa(i):i}),e}function z6(o){if(!o||typeof o!="object")return o;const e=[o];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(w4.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!B6(n)&&e.push(n)}}return o}const w4=Object.prototype.hasOwnProperty;function S4(o,e){return jL(o,e,new Set)}function jL(o,e,t){if(Ms(o))return o;const i=e(o);if(typeof i<"u")return i;if(Array.isArray(o)){const n=[];for(const s of o)n.push(jL(s,e,t));return n}if(Xn(o)){if(t.has(o))throw new Error("Cannot clone recursive data-structure");t.add(o);const n={};for(const s in o)w4.call(o,s)&&(n[s]=jL(o[s],e,t));return t.delete(o),n}return o}function B_(o,e,t=!0){return Xn(o)?(Xn(e)&&Object.keys(e).forEach(i=>{i in o?t&&(Xn(o[i])&&Xn(e[i])?B_(o[i],e[i],t):o[i]=e[i]):o[i]=e[i]}),o):e}function so(o,e){if(o===e)return!0;if(o==null||e===null||e===void 0||typeof o!=typeof e||typeof o!="object"||Array.isArray(o)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(o)){if(o.length!==e.length)return!1;for(t=0;tfunction(){const s=Array.prototype.slice.call(arguments,0);return e(n,s)},i={};for(const n of o)i[n]=t(n);return i}const _n={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}},Vl=8;class y4{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class L4{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Jt{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return L1(e,t)}compute(e,t,i){return i}}class Hp{constructor(e,t){this.newValue=e,this.didChange=t}}function L1(o,e){if(typeof o!="object"||typeof e!="object"||!o||!e)return new Hp(e,o!==e);if(Array.isArray(o)||Array.isArray(e)){const i=Array.isArray(o)&&Array.isArray(e)&&Bn(o,e);return new Hp(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const n=L1(o[i],e[i]);n.didChange&&(o[i]=n.newValue,t=!0)}return new Hp(o,t)}class _g{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return L1(e,t)}validate(e){return this.defaultValue}}class vg{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return L1(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function Le(o,e){return typeof o>"u"?e:o==="false"?!1:!!o}class dt extends vg{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return Le(e,this.defaultValue)}}function KL(o,e,t,i){if(typeof o>"u")return e;let n=parseInt(o,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class yt extends vg{static clampedInt(e,t,i,n){return KL(e,t,i,n)}constructor(e,t,i,n,s,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=s),super(e,t,i,r),this.minimum=n,this.maximum=s}validate(e){return yt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class Xr extends vg{static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,s){typeof s<"u"&&(s.type="number",s.default=i),super(e,t,i,s),this.validationFn=n}validate(e){return this.validationFn(Xr.float(e,this.defaultValue))}}class cs extends vg{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return cs.string(e,this.defaultValue)}}function Di(o,e,t){return typeof o!="string"||t.indexOf(o)===-1?e:o}class ai extends vg{constructor(e,t,i,n,s=void 0){typeof s<"u"&&(s.type="string",s.enum=n,s.default=i),super(e,t,i,s),this._allowedValues=n}validate(e){return Di(e,this.defaultValue,this._allowedValues)}}class N0 extends Jt{constructor(e,t,i,n,s,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=n),super(e,t,i,a),this._allowedValues=s,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function j6(o){switch(o){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class K6 extends Jt{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[g("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached"),g("accessibilitySupport.on","Optimize for usage with a Screen Reader"),g("accessibilitySupport.off","Assume a screen reader is not attached")],default:"auto",tags:["accessibility"],description:g("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class q6 extends Jt{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(20,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:g("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:g("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:Le(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Le(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function G6(o){switch(o){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Gi;(function(o){o[o.Line=1]="Line",o[o.Block=2]="Block",o[o.Underline=3]="Underline",o[o.LineThin=4]="LineThin",o[o.BlockOutline=5]="BlockOutline",o[o.UnderlineThin=6]="UnderlineThin"})(Gi||(Gi={}));function Z6(o){switch(o){case"line":return Gi.Line;case"block":return Gi.Block;case"underline":return Gi.Underline;case"line-thin":return Gi.LineThin;case"block-outline":return Gi.BlockOutline;case"underline-thin":return Gi.UnderlineThin}}class Y6 extends _g{constructor(){super(135)}compute(e,t,i){const n=["monaco-editor"];return t.get(36)&&n.push(t.get(36)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(70)==="default"?n.push("mouse-default"):t.get(70)==="copy"&&n.push("mouse-copy"),t.get(105)&&n.push("showUnused"),t.get(133)&&n.push("showDeprecated"),n.join(" ")}}class Q6 extends dt{constructor(){super(34,"emptySelectionClipboard",!0,{description:g("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class X6 extends Jt{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(38,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:g("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[g("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),g("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),g("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:g("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[g("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),g("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),g("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:g("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:g("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Ke},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:g("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:g("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:Le(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Di(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Di(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:Le(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:Le(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:Le(t.loop,this.defaultValue.loop)}}}class As extends Jt{constructor(){super(48,"fontLigatures",As.OFF,{anyOf:[{type:"boolean",description:g("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:g("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:g("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?As.OFF:e==="true"?As.ON:e:e?As.ON:As.OFF}}As.OFF='"liga" off, "calt" off';As.ON='"liga" on, "calt" on';class or extends Jt{constructor(){super(51,"fontVariations",or.OFF,{anyOf:[{type:"boolean",description:g("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:g("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:g("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?or.OFF:e==="true"?or.TRANSLATE:e:e?or.TRANSLATE:or.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}or.OFF="normal";or.TRANSLATE="translate";class J6 extends _g{constructor(){super(47)}compute(e,t,i){return e.fontInfo}}class eW extends vg{constructor(){super(49,"fontSize",ps.fontSize,{type:"number",minimum:6,maximum:100,default:ps.fontSize,description:g("fontSize","Controls the font size in pixels.")})}validate(e){const t=Xr.float(e,this.defaultValue);return t===0?ps.fontSize:Xr.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Ur extends Jt{constructor(){super(50,"fontWeight",ps.fontWeight,{anyOf:[{type:"number",minimum:Ur.MINIMUM_VALUE,maximum:Ur.MAXIMUM_VALUE,errorMessage:g("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Ur.SUGGESTION_VALUES}],default:ps.fontWeight,description:g("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(yt.clampedInt(e,ps.fontWeight,Ur.MINIMUM_VALUE,Ur.MAXIMUM_VALUE))}}Ur.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];Ur.MINIMUM_VALUE=1;Ur.MAXIMUM_VALUE=1e3;class tW extends Jt{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[g("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),g("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),g("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(55,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:g("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:g("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:g("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:g("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:g("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:g("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:g("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:g("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:g("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:g("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:g("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,s,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:Di(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:Di(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:Di(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:Di(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(s=a.multipleImplementations)!==null&&s!==void 0?s:Di(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:Di(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:cs.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:cs.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:cs.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:cs.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:cs.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class iW extends Jt{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(57,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:g("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:g("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:g("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:g("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),delay:yt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:Le(t.sticky,this.defaultValue.sticky),above:Le(t.above,this.defaultValue.above)}}}class lf extends _g{constructor(){super(138)}compute(e,t,i){return lf.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const s=(i+e.viewLineCount+n)/(e.pixelRatio*e.height),r=Math.floor(e.viewLineCount/s);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:s,minimapLineCount:r}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,d=e.typicalHalfwidthCharacterWidth,c=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const f=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,b=e.viewLineCount,v=e.remainingWidth,C=e.isViewportWrapping,S=h?2:3;let x=Math.floor(s*n);const E=x/s;let L=!1,D=!1,k=S*u,R=u/s,P=1;if(p==="fill"||p==="fit"){const{typicalViewportLineCount:je,extraLinesBeforeFirstLine:Ie,extraLinesBeyondLastLine:Qe,desiredRatio:Xe,minimapLineCount:ge}=lf.computeContainedMinimapLineCount({viewLineCount:b,scrollBeyondLastLine:c,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:l,pixelRatio:s});if(b/ge>1)L=!0,D=!0,u=1,k=1,R=u/s;else{let St=!1,ws=u+1;if(p==="fit"){const zi=Math.ceil((Ie+b+Qe)*k);C&&a&&v<=t.stableFitRemainingWidth?(St=!0,ws=t.stableFitMaxMinimapScale):St=zi>x}if(p==="fill"||St){L=!0;const zi=u;k=Math.min(l*s,Math.max(1,Math.floor(1/Xe))),C&&a&&v<=t.stableFitRemainingWidth&&(ws=t.stableFitMaxMinimapScale),u=Math.min(ws,Math.max(1,Math.floor(k/S))),u>zi&&(P=Math.min(2,u/zi)),R=u/s/P,x=Math.ceil(Math.max(je,Ie+b+Qe)*k),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=v,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const B=Math.floor(f*R),z=Math.min(B,Math.max(0,Math.floor((v-_-2)*R/(d+R)))+Vl);let ne=Math.floor(s*z);const he=ne/s;ne=Math.floor(ne*P);const ye=h?1:2,Fe=m==="left"?0:i-z-_;return{renderMinimap:ye,minimapLeft:Fe,minimapWidth:z,minimapHeightIsEditorHeight:L,minimapIsSampling:D,minimapScale:u,minimapLineHeight:k,minimapCanvasInnerWidth:ne,minimapCanvasInnerHeight:x,minimapCanvasOuterWidth:he,minimapCanvasOuterHeight:E}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,s=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,d=t.pixelRatio,c=t.viewLineCount,h=e.get(130),u=h==="inherit"?e.get(129):h,f=u==="inherit"?e.get(125):u,p=e.get(128),m=t.isDominatedByLongLines,_=e.get(54),b=e.get(64).renderType!==0,v=e.get(65),C=e.get(99),S=e.get(80),x=e.get(69),E=e.get(97),L=E.verticalScrollbarSize,D=E.verticalHasArrows,k=E.arrowSize,R=E.horizontalScrollbarSize,P=e.get(40),B=e.get(104)!=="never";let z=e.get(62);P&&B&&(z+=16);let ne=0;if(b){const El=Math.max(r,v);ne=Math.round(El*l)}let he=0;_&&(he=s);let ye=0,Fe=ye+he,je=Fe+ne,Ie=je+z;const Qe=i-he-ne-z;let Xe=!1,ge=!1,Se=-1;u==="inherit"&&m?(Xe=!0,ge=!0):f==="on"||f==="bounded"?ge=!0:f==="wordWrapColumn"&&(Se=p);const St=lf._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:d,scrollBeyondLastLine:C,paddingTop:S.top,paddingBottom:S.bottom,minimap:x,verticalScrollbarWidth:L,viewLineCount:c,remainingWidth:Qe,isViewportWrapping:ge},t.memory||new L4);St.renderMinimap!==0&&St.minimapLeft===0&&(ye+=St.minimapWidth,Fe+=St.minimapWidth,je+=St.minimapWidth,Ie+=St.minimapWidth);const ws=Qe-St.minimapWidth,zi=Math.max(1,Math.floor((ws-L-2)/a)),Ko=D?k:0;return ge&&(Se=Math.max(1,zi),f==="bounded"&&(Se=Math.min(Se,p))),{width:i,height:n,glyphMarginLeft:ye,glyphMarginWidth:he,lineNumbersLeft:Fe,lineNumbersWidth:ne,decorationsLeft:je,decorationsWidth:z,contentLeft:Ie,contentWidth:ws,minimap:St,viewportColumn:zi,isWordWrapMinified:Xe,isViewportWrapping:ge,wrappingColumn:Se,verticalScrollbarWidth:L,horizontalScrollbarHeight:R,overviewRuler:{top:Ko,width:L,height:n-2*Ko,right:0}}}}class nW extends Jt{constructor(){super(132,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[g("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),g("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:g("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return Di(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}class sW extends Jt{constructor(){const e={enabled:!0};super(61,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:g("codeActions","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Le(e.enabled,this.defaultValue.enabled)}}}class oW extends Jt{constructor(){const e={enabled:!1,maxLineCount:5};super(109,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:g("editor.stickyScroll","Shows the nested current scopes during the scroll at the top of the editor.")},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:10,description:g("editor.stickyScroll.","Defines the maximum number of sticky lines to show.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),maxLineCount:yt.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,10)}}}class rW extends Jt{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(134,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:g("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[g("editor.inlayHints.on","Inlay hints are enabled"),g("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",Ke?"Ctrl+Option":"Ctrl+Alt"),g("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",Ke?"Ctrl+Option":"Ctrl+Alt"),g("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:g("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:g("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:g("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:Di(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:yt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:cs.string(t.fontFamily,this.defaultValue.fontFamily),padding:Le(t.padding,this.defaultValue.padding)}}}class aW extends Jt{constructor(){super(62,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):yt.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?yt.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class lW extends Xr{constructor(){super(63,"lineHeight",ps.lineHeight,e=>Xr.clamp(e,0,150),{markdownDescription:g("lineHeight",`Controls the line height. +const __vite__fileDeps=["assets/freemarker2-DR4awqSq.js","assets/index-R8dLcqG_.js","assets/index-D4zVegIe.css","assets/handlebars-CN37euyO.js","assets/html-_59g4-uc.js","assets/javascript-DGPiJBBE.js","assets/typescript-L8Bz5EfD.js","assets/liquid-D3wQ_0c-.js","assets/python-CSObIQxI.js","assets/razor-DGbs-Ass.js","assets/xml-C8Om98hV.js","assets/yaml-WOLPGjoo.js","assets/cssMode-C9P57343.js","assets/htmlMode-D9Mlms7n.js","assets/jsonMode-BcJk7cNl.js","assets/tsMode-DVLo0ZTq.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +var o6=Object.defineProperty;var r6=(o,e,t)=>e in o?o6(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var Zt=(o,e,t)=>(r6(o,typeof e!="symbol"?e+"":e,t),t);import{cn as me,d as a6,co as l6,aH as d6,cb as c6,h as h6,af as DT,k as k0,a1 as xT,ag as u6,o as f6,c as g6,n as p6}from"./index-R8dLcqG_.js";let m6=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function _6(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(i,n)=>{const s=n[0],r=e[s];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),m6&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function g(o,e,...t){return _6(e,t)}var IS;const mp="en";let Ib=!1,Eb=!1,Uv=!1,r4=!1,pE=!1,mE=!1,a4=!1,I0,$v=mp,v6,Zo;const ci=typeof self=="object"?self:typeof global=="object"?global:{};let Rn;typeof ci.vscode<"u"&&typeof ci.vscode.process<"u"?Rn=ci.vscode.process:typeof process<"u"&&(Rn=process);const b6=typeof((IS=Rn==null?void 0:Rn.versions)===null||IS===void 0?void 0:IS.electron)=="string",C6=b6&&(Rn==null?void 0:Rn.type)==="renderer";if(typeof navigator=="object"&&!C6)Zo=navigator.userAgent,Ib=Zo.indexOf("Windows")>=0,Eb=Zo.indexOf("Macintosh")>=0,mE=(Zo.indexOf("Macintosh")>=0||Zo.indexOf("iPad")>=0||Zo.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Uv=Zo.indexOf("Linux")>=0,a4=(Zo==null?void 0:Zo.indexOf("Mobi"))>=0,pE=!0,g({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),I0=mp,$v=I0;else if(typeof Rn=="object"){Ib=Rn.platform==="win32",Eb=Rn.platform==="darwin",Uv=Rn.platform==="linux",Uv&&Rn.env.SNAP&&Rn.env.SNAP_REVISION,Rn.env.CI||Rn.env.BUILD_ARTIFACTSTAGINGDIRECTORY,I0=mp,$v=mp;const o=Rn.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];I0=e.locale,$v=t||mp,v6=e._translationsConfigFile}catch{}r4=!0}else console.error("Unable to resolve platform.");const Qi=Ib,Ke=Eb,hn=Uv,ur=r4,Kd=pE,w6=pE&&typeof ci.importScripts=="function",fa=mE,S6=a4,ga=Zo,y6=$v,L6=typeof ci.postMessage=="function"&&!ci.importScripts,l4=(()=>{if(L6){const o=[];ci.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=o.length;i{const i=++e;o.push({id:i,callback:t}),ci.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),Ps=Eb||mE?2:Ib?1:3;let kT=!0,IT=!1;function d4(){if(!IT){IT=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,kT=new Uint16Array(o.buffer)[0]===513}return kT}const c4=!!(ga&&ga.indexOf("Chrome")>=0),D6=!!(ga&&ga.indexOf("Firefox")>=0),x6=!!(!c4&&ga&&ga.indexOf("Safari")>=0),k6=!!(ga&&ga.indexOf("Edg/")>=0);ga&&ga.indexOf("Android")>=0;var it;(function(o){function e(b){return b&&typeof b=="object"&&typeof b[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function i(){return t}o.empty=i;function*n(b){yield b}o.single=n;function s(b){return e(b)?b:n(b)}o.wrap=s;function r(b){return b||t}o.from=r;function a(b){return!b||b[Symbol.iterator]().next().done===!0}o.isEmpty=a;function l(b){return b[Symbol.iterator]().next().value}o.first=l;function d(b,v){for(const C of b)if(v(C))return!0;return!1}o.some=d;function c(b,v){for(const C of b)if(v(C))return C}o.find=c;function*h(b,v){for(const C of b)v(C)&&(yield C)}o.filter=h;function*u(b,v){let C=0;for(const S of b)yield v(S,C++)}o.map=u;function*f(...b){for(const v of b)for(const C of v)yield C}o.concat=f;function p(b,v,C){let S=C;for(const x of b)S=v(S,x);return S}o.reduce=p;function*m(b,v,C=b.length){for(v<0&&(v+=b.length),C<0?C+=b.length:C>b.length&&(C=b.length);v{n||(n=!0,this._remove(i))}}shift(){if(this._first!==vi.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==vi.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==vi.Undefined&&e.next!==vi.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===vi.Undefined&&e.next===vi.Undefined?(this._first=vi.Undefined,this._last=vi.Undefined):e.next===vi.Undefined?(this._last=this._last.prev,this._last.next=vi.Undefined):e.prev===vi.Undefined&&(this._first=this._first.next,this._first.prev=vi.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==vi.Undefined;)yield e.element,e=e.next}}const h4="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function I6(o=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of h4)o.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const _E=I6();function u4(o){let e=_E;if(o&&o instanceof RegExp)if(o.global)e=o;else{let t="g";o.ignoreCase&&(t+="i"),o.multiline&&(t+="m"),o.unicode&&(t+="u"),e=new RegExp(o.source,t)}return e.lastIndex=0,e}const f4=new ln;f4.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function _m(o,e,t,i,n){if(n||(n=it.first(f4)),t.length>n.maxLen){let d=o-n.maxLen/2;return d<0?d=0:i+=d,t=t.substring(d,o+n.maxLen/2),_m(o,e,t,i,n)}const s=Date.now(),r=o-1-i;let a=-1,l=null;for(let d=1;!(Date.now()-s>=n.timeBudget);d++){const c=r-n.windowSize*d;e.lastIndex=Math.max(0,c);const h=E6(e,t,r,a);if(!h&&l||(l=h,c<=0))break;a=c}if(l){const d={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,d}return null}function E6(o,e,t,i){let n;for(;n=o.exec(e);){const s=n.index||0;if(s<=t&&o.lastIndex>=t)return n;if(i>0&&s>i)return null}return null}function Zs(o,e=0){return o[o.length-(1+e)]}function N6(o){if(o.length===0)throw new Error("Invalid tail call");return[o.slice(0,o.length-1),o[o.length-1]]}function Bn(o,e,t=(i,n)=>i===n){if(o===e)return!0;if(!o||!e||o.length!==e.length)return!1;for(let i=0,n=o.length;it(o[i],e))}function M6(o,e){let t=0,i=o-1;for(;t<=i;){const n=(t+i)/2|0,s=e(n);if(s<0)t=n+1;else if(s>0)i=n-1;else return n}return-(t+1)}function g4(o,e){let t=0,i=o.length;if(i===0)return 0;for(;t=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],s=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?s.push(a):r.push(a)}return o!!e)}function NT(o){let e=0;for(let t=0;t0}function Dd(o,e=t=>t){const t=new Set;return o.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function m4(o,e){const t=A6(o,e);if(t!==-1)return o[t]}function A6(o,e){for(let t=o.length-1;t>=0;t--){const i=o[t];if(e(i))return t}return-1}function _4(o,e){return o.length>0?o[0]:e}function Mn(o,e){let t=typeof e=="number"?o:0;typeof e=="number"?t=o:(t=0,e=o);const i=[];if(t<=e)for(let n=t;ne;n--)i.push(n);return i}function y1(o,e,t){const i=o.slice(0,e),n=o.slice(e);return i.concat(t,n)}function ES(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.unshift(e))}function E0(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.push(e))}function TT(o,e){for(const t of e)o.push(t)}function vE(o){return Array.isArray(o)?o:[o]}function R6(o,e,t){const i=v4(o,e),n=o.length,s=t.length;o.length=n+s;for(let r=n-1;r>=i;r--)o[r+s]=o[r];for(let r=0;r0}o.isGreaterThan=t;function i(n){return n===0}o.isNeitherLessOrGreaterThan=i,o.greaterThan=1,o.lessThan=-1,o.neitherLessOrGreaterThan=0})($L||($L={}));function Vp(o,e){return(t,i)=>e(o(t),o(i))}const P6=(o,e)=>o-e;function b4(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i0&&(t=n)}return t}function O6(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i=0&&(t=n)}return t}function F6(o,e){return b4(o,(t,i)=>-e(t,i))}class Nf{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class aa{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new aa(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new aa(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(n=>((i||$L.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0)),t}}aa.empty=new aa(o=>{});function Wn(o){return typeof o=="string"}function Xn(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&!(o instanceof RegExp)&&!(o instanceof Date)}function B6(o){const e=Object.getPrototypeOf(Uint8Array);return typeof o=="object"&&o instanceof e}function xd(o){return typeof o=="number"&&!isNaN(o)}function AT(o){return!!o&&typeof o[Symbol.iterator]=="function"}function C4(o){return o===!0||o===!1}function us(o){return typeof o>"u"}function W6(o){return!Ms(o)}function Ms(o){return us(o)||o===null}function _t(o,e){if(!o)throw new Error("Unexpected type")}function Fu(o){if(Ms(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function Nb(o){return typeof o=="function"}function V6(o,e){const t=Math.min(o.length,e.length);for(let i=0;i{e[t]=i&&typeof i=="object"?qa(i):i}),e}function z6(o){if(!o||typeof o!="object")return o;const e=[o];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(w4.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!B6(n)&&e.push(n)}}return o}const w4=Object.prototype.hasOwnProperty;function S4(o,e){return jL(o,e,new Set)}function jL(o,e,t){if(Ms(o))return o;const i=e(o);if(typeof i<"u")return i;if(Array.isArray(o)){const n=[];for(const s of o)n.push(jL(s,e,t));return n}if(Xn(o)){if(t.has(o))throw new Error("Cannot clone recursive data-structure");t.add(o);const n={};for(const s in o)w4.call(o,s)&&(n[s]=jL(o[s],e,t));return t.delete(o),n}return o}function B_(o,e,t=!0){return Xn(o)?(Xn(e)&&Object.keys(e).forEach(i=>{i in o?t&&(Xn(o[i])&&Xn(e[i])?B_(o[i],e[i],t):o[i]=e[i]):o[i]=e[i]}),o):e}function so(o,e){if(o===e)return!0;if(o==null||e===null||e===void 0||typeof o!=typeof e||typeof o!="object"||Array.isArray(o)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(o)){if(o.length!==e.length)return!1;for(t=0;tfunction(){const s=Array.prototype.slice.call(arguments,0);return e(n,s)},i={};for(const n of o)i[n]=t(n);return i}const _n={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}},Vl=8;class y4{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class L4{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Jt{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return L1(e,t)}compute(e,t,i){return i}}class Hp{constructor(e,t){this.newValue=e,this.didChange=t}}function L1(o,e){if(typeof o!="object"||typeof e!="object"||!o||!e)return new Hp(e,o!==e);if(Array.isArray(o)||Array.isArray(e)){const i=Array.isArray(o)&&Array.isArray(e)&&Bn(o,e);return new Hp(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const n=L1(o[i],e[i]);n.didChange&&(o[i]=n.newValue,t=!0)}return new Hp(o,t)}class _g{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return L1(e,t)}validate(e){return this.defaultValue}}class vg{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return L1(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function Le(o,e){return typeof o>"u"?e:o==="false"?!1:!!o}class dt extends vg{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return Le(e,this.defaultValue)}}function KL(o,e,t,i){if(typeof o>"u")return e;let n=parseInt(o,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class yt extends vg{static clampedInt(e,t,i,n){return KL(e,t,i,n)}constructor(e,t,i,n,s,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=s),super(e,t,i,r),this.minimum=n,this.maximum=s}validate(e){return yt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class Xr extends vg{static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,s){typeof s<"u"&&(s.type="number",s.default=i),super(e,t,i,s),this.validationFn=n}validate(e){return this.validationFn(Xr.float(e,this.defaultValue))}}class cs extends vg{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return cs.string(e,this.defaultValue)}}function Di(o,e,t){return typeof o!="string"||t.indexOf(o)===-1?e:o}class ai extends vg{constructor(e,t,i,n,s=void 0){typeof s<"u"&&(s.type="string",s.enum=n,s.default=i),super(e,t,i,s),this._allowedValues=n}validate(e){return Di(e,this.defaultValue,this._allowedValues)}}class N0 extends Jt{constructor(e,t,i,n,s,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=n),super(e,t,i,a),this._allowedValues=s,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function j6(o){switch(o){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class K6 extends Jt{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[g("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached"),g("accessibilitySupport.on","Optimize for usage with a Screen Reader"),g("accessibilitySupport.off","Assume a screen reader is not attached")],default:"auto",tags:["accessibility"],description:g("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class q6 extends Jt{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(20,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:g("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:g("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:Le(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Le(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function G6(o){switch(o){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Gi;(function(o){o[o.Line=1]="Line",o[o.Block=2]="Block",o[o.Underline=3]="Underline",o[o.LineThin=4]="LineThin",o[o.BlockOutline=5]="BlockOutline",o[o.UnderlineThin=6]="UnderlineThin"})(Gi||(Gi={}));function Z6(o){switch(o){case"line":return Gi.Line;case"block":return Gi.Block;case"underline":return Gi.Underline;case"line-thin":return Gi.LineThin;case"block-outline":return Gi.BlockOutline;case"underline-thin":return Gi.UnderlineThin}}class Y6 extends _g{constructor(){super(135)}compute(e,t,i){const n=["monaco-editor"];return t.get(36)&&n.push(t.get(36)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(70)==="default"?n.push("mouse-default"):t.get(70)==="copy"&&n.push("mouse-copy"),t.get(105)&&n.push("showUnused"),t.get(133)&&n.push("showDeprecated"),n.join(" ")}}class Q6 extends dt{constructor(){super(34,"emptySelectionClipboard",!0,{description:g("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class X6 extends Jt{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(38,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:g("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[g("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),g("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),g("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:g("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[g("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),g("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),g("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:g("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:g("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Ke},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:g("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:g("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:Le(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Di(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Di(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:Le(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:Le(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:Le(t.loop,this.defaultValue.loop)}}}class As extends Jt{constructor(){super(48,"fontLigatures",As.OFF,{anyOf:[{type:"boolean",description:g("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:g("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:g("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?As.OFF:e==="true"?As.ON:e:e?As.ON:As.OFF}}As.OFF='"liga" off, "calt" off';As.ON='"liga" on, "calt" on';class or extends Jt{constructor(){super(51,"fontVariations",or.OFF,{anyOf:[{type:"boolean",description:g("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:g("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:g("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?or.OFF:e==="true"?or.TRANSLATE:e:e?or.TRANSLATE:or.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}or.OFF="normal";or.TRANSLATE="translate";class J6 extends _g{constructor(){super(47)}compute(e,t,i){return e.fontInfo}}class eW extends vg{constructor(){super(49,"fontSize",ps.fontSize,{type:"number",minimum:6,maximum:100,default:ps.fontSize,description:g("fontSize","Controls the font size in pixels.")})}validate(e){const t=Xr.float(e,this.defaultValue);return t===0?ps.fontSize:Xr.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Ur extends Jt{constructor(){super(50,"fontWeight",ps.fontWeight,{anyOf:[{type:"number",minimum:Ur.MINIMUM_VALUE,maximum:Ur.MAXIMUM_VALUE,errorMessage:g("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Ur.SUGGESTION_VALUES}],default:ps.fontWeight,description:g("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(yt.clampedInt(e,ps.fontWeight,Ur.MINIMUM_VALUE,Ur.MAXIMUM_VALUE))}}Ur.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];Ur.MINIMUM_VALUE=1;Ur.MAXIMUM_VALUE=1e3;class tW extends Jt{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[g("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),g("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),g("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(55,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:g("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:g("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:g("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:g("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:g("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:g("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:g("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:g("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:g("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:g("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:g("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,s,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:Di(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:Di(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:Di(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:Di(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(s=a.multipleImplementations)!==null&&s!==void 0?s:Di(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:Di(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:cs.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:cs.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:cs.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:cs.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:cs.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class iW extends Jt{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(57,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:g("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:g("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:g("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:g("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),delay:yt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:Le(t.sticky,this.defaultValue.sticky),above:Le(t.above,this.defaultValue.above)}}}class lf extends _g{constructor(){super(138)}compute(e,t,i){return lf.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const s=(i+e.viewLineCount+n)/(e.pixelRatio*e.height),r=Math.floor(e.viewLineCount/s);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:s,minimapLineCount:r}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,d=e.typicalHalfwidthCharacterWidth,c=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const f=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,b=e.viewLineCount,v=e.remainingWidth,C=e.isViewportWrapping,S=h?2:3;let x=Math.floor(s*n);const E=x/s;let L=!1,D=!1,k=S*u,R=u/s,P=1;if(p==="fill"||p==="fit"){const{typicalViewportLineCount:je,extraLinesBeforeFirstLine:Ie,extraLinesBeyondLastLine:Qe,desiredRatio:Xe,minimapLineCount:ge}=lf.computeContainedMinimapLineCount({viewLineCount:b,scrollBeyondLastLine:c,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:l,pixelRatio:s});if(b/ge>1)L=!0,D=!0,u=1,k=1,R=u/s;else{let St=!1,ws=u+1;if(p==="fit"){const zi=Math.ceil((Ie+b+Qe)*k);C&&a&&v<=t.stableFitRemainingWidth?(St=!0,ws=t.stableFitMaxMinimapScale):St=zi>x}if(p==="fill"||St){L=!0;const zi=u;k=Math.min(l*s,Math.max(1,Math.floor(1/Xe))),C&&a&&v<=t.stableFitRemainingWidth&&(ws=t.stableFitMaxMinimapScale),u=Math.min(ws,Math.max(1,Math.floor(k/S))),u>zi&&(P=Math.min(2,u/zi)),R=u/s/P,x=Math.ceil(Math.max(je,Ie+b+Qe)*k),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=v,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const B=Math.floor(f*R),z=Math.min(B,Math.max(0,Math.floor((v-_-2)*R/(d+R)))+Vl);let ne=Math.floor(s*z);const he=ne/s;ne=Math.floor(ne*P);const ye=h?1:2,Fe=m==="left"?0:i-z-_;return{renderMinimap:ye,minimapLeft:Fe,minimapWidth:z,minimapHeightIsEditorHeight:L,minimapIsSampling:D,minimapScale:u,minimapLineHeight:k,minimapCanvasInnerWidth:ne,minimapCanvasInnerHeight:x,minimapCanvasOuterWidth:he,minimapCanvasOuterHeight:E}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,s=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,d=t.pixelRatio,c=t.viewLineCount,h=e.get(130),u=h==="inherit"?e.get(129):h,f=u==="inherit"?e.get(125):u,p=e.get(128),m=t.isDominatedByLongLines,_=e.get(54),b=e.get(64).renderType!==0,v=e.get(65),C=e.get(99),S=e.get(80),x=e.get(69),E=e.get(97),L=E.verticalScrollbarSize,D=E.verticalHasArrows,k=E.arrowSize,R=E.horizontalScrollbarSize,P=e.get(40),B=e.get(104)!=="never";let z=e.get(62);P&&B&&(z+=16);let ne=0;if(b){const El=Math.max(r,v);ne=Math.round(El*l)}let he=0;_&&(he=s);let ye=0,Fe=ye+he,je=Fe+ne,Ie=je+z;const Qe=i-he-ne-z;let Xe=!1,ge=!1,Se=-1;u==="inherit"&&m?(Xe=!0,ge=!0):f==="on"||f==="bounded"?ge=!0:f==="wordWrapColumn"&&(Se=p);const St=lf._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:d,scrollBeyondLastLine:C,paddingTop:S.top,paddingBottom:S.bottom,minimap:x,verticalScrollbarWidth:L,viewLineCount:c,remainingWidth:Qe,isViewportWrapping:ge},t.memory||new L4);St.renderMinimap!==0&&St.minimapLeft===0&&(ye+=St.minimapWidth,Fe+=St.minimapWidth,je+=St.minimapWidth,Ie+=St.minimapWidth);const ws=Qe-St.minimapWidth,zi=Math.max(1,Math.floor((ws-L-2)/a)),Ko=D?k:0;return ge&&(Se=Math.max(1,zi),f==="bounded"&&(Se=Math.min(Se,p))),{width:i,height:n,glyphMarginLeft:ye,glyphMarginWidth:he,lineNumbersLeft:Fe,lineNumbersWidth:ne,decorationsLeft:je,decorationsWidth:z,contentLeft:Ie,contentWidth:ws,minimap:St,viewportColumn:zi,isWordWrapMinified:Xe,isViewportWrapping:ge,wrappingColumn:Se,verticalScrollbarWidth:L,horizontalScrollbarHeight:R,overviewRuler:{top:Ko,width:L,height:n-2*Ko,right:0}}}}class nW extends Jt{constructor(){super(132,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[g("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),g("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:g("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return Di(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}class sW extends Jt{constructor(){const e={enabled:!0};super(61,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:g("codeActions","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Le(e.enabled,this.defaultValue.enabled)}}}class oW extends Jt{constructor(){const e={enabled:!1,maxLineCount:5};super(109,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:g("editor.stickyScroll","Shows the nested current scopes during the scroll at the top of the editor.")},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:10,description:g("editor.stickyScroll.","Defines the maximum number of sticky lines to show.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),maxLineCount:yt.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,10)}}}class rW extends Jt{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(134,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:g("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[g("editor.inlayHints.on","Inlay hints are enabled"),g("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",Ke?"Ctrl+Option":"Ctrl+Alt"),g("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",Ke?"Ctrl+Option":"Ctrl+Alt"),g("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:g("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:g("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:g("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:Di(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:yt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:cs.string(t.fontFamily,this.defaultValue.fontFamily),padding:Le(t.padding,this.defaultValue.padding)}}}class aW extends Jt{constructor(){super(62,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):yt.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?yt.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class lW extends Xr{constructor(){super(63,"lineHeight",ps.lineHeight,e=>Xr.clamp(e,0,150),{markdownDescription:g("lineHeight",`Controls the line height. - Use 0 to automatically compute the line height from the font size. - Values between 0 and 8 will be used as a multiplier with the font size. - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,i){return e.fontInfo.lineHeight}}class dW extends Jt{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};super(69,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:g("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:g("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[g("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),g("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),g("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:g("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:g("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:g("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:g("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:g("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:g("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),autohide:Le(t.autohide,this.defaultValue.autohide),size:Di(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:Di(t.side,this.defaultValue.side,["right","left"]),showSlider:Di(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:Le(t.renderCharacters,this.defaultValue.renderCharacters),scale:yt.clampedInt(t.scale,1,1,3),maxColumn:yt.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function cW(o){return o==="ctrlCmd"?Ke?"metaKey":"ctrlKey":"altKey"}class hW extends Jt{constructor(){super(80,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:g("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:g("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:yt.clampedInt(t.top,0,0,1e3),bottom:yt.clampedInt(t.bottom,0,0,1e3)}}}class uW extends Jt{constructor(){const e={enabled:!0,cycle:!0};super(81,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:g("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:g("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),cycle:Le(t.cycle,this.defaultValue.cycle)}}}class fW extends _g{constructor(){super(136)}compute(e,t,i){return e.pixelRatio}}class gW extends Jt{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[g("on","Quick suggestions show inside the suggest widget"),g("inline","Quick suggestions show as ghost text"),g("off","Quick suggestions are disabled")]}];super(84,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:g("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:g("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:g("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:g("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const d=e?"on":"off";return{comments:d,strings:d,other:d}}if(!e||typeof e!="object")return this.defaultValue;const{other:t,comments:i,strings:n}=e,s=["on","inline","off"];let r,a,l;return typeof t=="boolean"?r=t?"on":"off":r=Di(t,this.defaultValue.other,s),typeof i=="boolean"?a=i?"on":"off":a=Di(i,this.defaultValue.comments,s),typeof n=="boolean"?l=n?"on":"off":l=Di(n,this.defaultValue.strings,s),{other:r,comments:a,strings:l}}}class pW extends Jt{constructor(){super(64,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[g("lineNumbers.off","Line numbers are not rendered."),g("lineNumbers.on","Line numbers are rendered as absolute number."),g("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),g("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:g("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(t=4,i=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:i}}}function Tb(o){const e=o.get(92);return e==="editable"?o.get(86):e!=="on"}class mW extends Jt{constructor(){const e=[],t={type:"number",description:g("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(96,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:g("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:g("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const i of e)if(typeof i=="number")t.push({column:yt.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const n=i;t.push({column:yt.clampedInt(n.column,0,0,1e4),color:n.color})}return t.sort((i,n)=>i.column-n.column),t}return this.defaultValue}}function RT(o,e){if(typeof o!="string")return e;switch(o){case"hidden":return 2;case"visible":return 3;default:return 1}}let _W=class extends Jt{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(97,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[g("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),g("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),g("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:g("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[g("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),g("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),g("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:g("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:g("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:g("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:g("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,i=yt.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=yt.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:yt.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:RT(t.vertical,this.defaultValue.vertical),horizontal:RT(t.horizontal,this.defaultValue.horizontal),useShadows:Le(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:Le(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:Le(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:Le(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:Le(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:yt.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:yt.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:Le(t.scrollByPage,this.defaultValue.scrollByPage)}}};const xs="inUntrustedWorkspace",Zn={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class vW extends Jt{constructor(){const e={nonBasicASCII:xs,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:xs,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(119,"unicodeHighlight",e,{[Zn.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,xs],default:e.nonBasicASCII,description:g("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[Zn.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:g("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[Zn.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:g("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[Zn.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,xs],default:e.includeComments,description:g("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[Zn.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,xs],default:e.includeStrings,description:g("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[Zn.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:g("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[Zn.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:g("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(so(e.allowedCharacters,t.allowedCharacters)||(e=Object.assign(Object.assign({},e),{allowedCharacters:t.allowedCharacters}),i=!0)),t.allowedLocales&&e&&(so(e.allowedLocales,t.allowedLocales)||(e=Object.assign(Object.assign({},e),{allowedLocales:t.allowedLocales}),i=!0));const n=super.applyUpdate(e,t);return i?new Hp(n.newValue,!0):n}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{nonBasicASCII:df(t.nonBasicASCII,xs,[!0,!1,xs]),invisibleCharacters:Le(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:Le(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:df(t.includeComments,xs,[!0,!1,xs]),includeStrings:df(t.includeStrings,xs,[!0,!1,xs]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if(typeof e!="object"||!e)return t;const i={};for(const[n,s]of Object.entries(e))s===!0&&(i[n]=!0);return i}}class bW extends Jt{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover"};super(59,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:g("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover"],enumDescriptions:[g("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),g("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion.")],description:g("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),mode:Di(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:Di(t.showToolbar,this.defaultValue.showToolbar,["always","onHover"])}}}class CW extends Jt{constructor(){const e={enabled:_n.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:_n.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(12,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:g("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:g("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:Le(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class wW extends Jt{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(13,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[g("editor.guides.bracketPairs.true","Enables bracket pair guides."),g("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),g("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:g("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[g("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),g("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),g("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:g("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:g("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:g("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[g("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),g("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),g("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:g("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:df(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:df(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:Le(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:Le(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:df(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function df(o,e,t){const i=t.indexOf(o);return i===-1?e:t[i]}class SW extends Jt{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(112,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[g("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),g("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:g("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:g("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:g("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:g("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[g("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),g("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),g("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),g("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:g("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:g("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:g("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:g("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:g("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:g("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:g("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:g("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:Di(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:Le(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:Le(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:Le(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:Le(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:Di(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:Le(t.showIcons,this.defaultValue.showIcons),showStatusBar:Le(t.showStatusBar,this.defaultValue.showStatusBar),preview:Le(t.preview,this.defaultValue.preview),previewMode:Di(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:Le(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:Le(t.showMethods,this.defaultValue.showMethods),showFunctions:Le(t.showFunctions,this.defaultValue.showFunctions),showConstructors:Le(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:Le(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:Le(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:Le(t.showFields,this.defaultValue.showFields),showVariables:Le(t.showVariables,this.defaultValue.showVariables),showClasses:Le(t.showClasses,this.defaultValue.showClasses),showStructs:Le(t.showStructs,this.defaultValue.showStructs),showInterfaces:Le(t.showInterfaces,this.defaultValue.showInterfaces),showModules:Le(t.showModules,this.defaultValue.showModules),showProperties:Le(t.showProperties,this.defaultValue.showProperties),showEvents:Le(t.showEvents,this.defaultValue.showEvents),showOperators:Le(t.showOperators,this.defaultValue.showOperators),showUnits:Le(t.showUnits,this.defaultValue.showUnits),showValues:Le(t.showValues,this.defaultValue.showValues),showConstants:Le(t.showConstants,this.defaultValue.showConstants),showEnums:Le(t.showEnums,this.defaultValue.showEnums),showEnumMembers:Le(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:Le(t.showKeywords,this.defaultValue.showKeywords),showWords:Le(t.showWords,this.defaultValue.showWords),showColors:Le(t.showColors,this.defaultValue.showColors),showFiles:Le(t.showFiles,this.defaultValue.showFiles),showReferences:Le(t.showReferences,this.defaultValue.showReferences),showFolders:Le(t.showFolders,this.defaultValue.showFolders),showTypeParameters:Le(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:Le(t.showSnippets,this.defaultValue.showSnippets),showUsers:Le(t.showUsers,this.defaultValue.showUsers),showIssues:Le(t.showIssues,this.defaultValue.showIssues)}}}class yW extends Jt{constructor(){super(107,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:g("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:Le(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}}}class LW extends _g{constructor(){super(137)}compute(e,t,i){return t.get(86)?!0:e.tabFocusMode}}class DW extends Jt{constructor(){super(131,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[g("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),g("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),g("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),g("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:g("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,i){return t.get(2)===2?0:i}}class xW extends _g{constructor(){super(139)}compute(e,t,i){const n=t.get(138);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}class kW extends Jt{constructor(){const e={enabled:!0};super(33,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:g("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down `shift` (instead of opening the file in an editor).")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Le(e.enabled,this.defaultValue.enabled)}}}const IW="Consolas, 'Courier New', monospace",EW="Menlo, Monaco, 'Courier New', monospace",NW="'Droid Sans Mono', 'monospace', monospace",ps={fontFamily:Ke?EW:hn?NW:IW,fontWeight:"normal",fontSize:Ke?12:14,lineHeight:0,letterSpacing:0},Bu=[];function ee(o){return Bu[o.id]=o,o}const Dr={acceptSuggestionOnCommitCharacter:ee(new dt(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:g("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:ee(new ai(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",g("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:g("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:ee(new K6),accessibilityPageSize:ee(new yt(3,"accessibilityPageSize",10,1,1073741824,{description:g("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:ee(new cs(4,"ariaLabel",g("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:ee(new ai(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",g("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),g("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:g("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:ee(new ai(6,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",g("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:g("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:ee(new ai(7,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",g("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:g("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:ee(new ai(8,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",g("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),g("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:g("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:ee(new N0(9,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],j6,{enumDescriptions:[g("editor.autoIndent.none","The editor will not insert indentation automatically."),g("editor.autoIndent.keep","The editor will keep the current line's indentation."),g("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),g("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),g("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:g("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:ee(new dt(10,"automaticLayout",!1)),autoSurround:ee(new ai(11,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[g("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),g("editor.autoSurround.quotes","Surround with quotes but not brackets."),g("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:g("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:ee(new CW),bracketPairGuides:ee(new wW),stickyTabStops:ee(new dt(110,"stickyTabStops",!1,{description:g("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:ee(new dt(14,"codeLens",!0,{description:g("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:ee(new cs(15,"codeLensFontFamily","",{description:g("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:ee(new yt(16,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:g("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:ee(new dt(17,"colorDecorators",!0,{description:g("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorsLimit:ee(new yt(18,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:g("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:ee(new dt(19,"columnSelection",!1,{description:g("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:ee(new q6),contextmenu:ee(new dt(21,"contextmenu",!0)),copyWithSyntaxHighlighting:ee(new dt(22,"copyWithSyntaxHighlighting",!0,{description:g("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:ee(new N0(23,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],G6,{description:g("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:ee(new ai(24,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[g("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),g("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),g("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:g("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:ee(new N0(25,"cursorStyle",Gi.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],Z6,{description:g("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:ee(new yt(26,"cursorSurroundingLines",0,0,1073741824,{description:g("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:ee(new ai(27,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[g("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),g("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:g("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:ee(new yt(28,"cursorWidth",0,0,1073741824,{markdownDescription:g("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:ee(new dt(29,"disableLayerHinting",!1)),disableMonospaceOptimizations:ee(new dt(30,"disableMonospaceOptimizations",!1)),domReadOnly:ee(new dt(31,"domReadOnly",!1)),dragAndDrop:ee(new dt(32,"dragAndDrop",!0,{description:g("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:ee(new Q6),dropIntoEditor:ee(new kW),stickyScroll:ee(new oW),experimentalWhitespaceRendering:ee(new ai(35,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[g("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),g("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),g("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:g("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:ee(new cs(36,"extraEditorClassName","")),fastScrollSensitivity:ee(new Xr(37,"fastScrollSensitivity",5,o=>o<=0?5:o,{markdownDescription:g("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:ee(new X6),fixedOverflowWidgets:ee(new dt(39,"fixedOverflowWidgets",!1)),folding:ee(new dt(40,"folding",!0,{description:g("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:ee(new ai(41,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[g("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),g("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:g("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:ee(new dt(42,"foldingHighlight",!0,{description:g("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:ee(new dt(43,"foldingImportsByDefault",!1,{description:g("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:ee(new yt(44,"foldingMaximumRegions",5e3,10,65e3,{description:g("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:ee(new dt(45,"unfoldOnClickAfterEndOfLine",!1,{description:g("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:ee(new cs(46,"fontFamily",ps.fontFamily,{description:g("fontFamily","Controls the font family.")})),fontInfo:ee(new J6),fontLigatures2:ee(new As),fontSize:ee(new eW),fontWeight:ee(new Ur),fontVariations:ee(new or),formatOnPaste:ee(new dt(52,"formatOnPaste",!1,{description:g("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:ee(new dt(53,"formatOnType",!1,{description:g("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:ee(new dt(54,"glyphMargin",!0,{description:g("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:ee(new tW),hideCursorInOverviewRuler:ee(new dt(56,"hideCursorInOverviewRuler",!1,{description:g("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:ee(new iW),inDiffEditor:ee(new dt(58,"inDiffEditor",!1)),letterSpacing:ee(new Xr(60,"letterSpacing",ps.letterSpacing,o=>Xr.clamp(o,-5,20),{description:g("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:ee(new sW),lineDecorationsWidth:ee(new aW),lineHeight:ee(new lW),lineNumbers:ee(new pW),lineNumbersMinChars:ee(new yt(65,"lineNumbersMinChars",5,1,300)),linkedEditing:ee(new dt(66,"linkedEditing",!1,{description:g("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:ee(new dt(67,"links",!0,{description:g("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:ee(new ai(68,"matchBrackets","always",["always","near","never"],{description:g("matchBrackets","Highlight matching brackets.")})),minimap:ee(new dW),mouseStyle:ee(new ai(70,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:ee(new Xr(71,"mouseWheelScrollSensitivity",1,o=>o===0?1:o,{markdownDescription:g("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:ee(new dt(72,"mouseWheelZoom",!1,{markdownDescription:g("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:ee(new dt(73,"multiCursorMergeOverlapping",!0,{description:g("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:ee(new N0(74,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],cW,{markdownEnumDescriptions:[g("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),g("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:g({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:ee(new ai(75,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[g("multiCursorPaste.spread","Each cursor pastes a single line of the text."),g("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:g("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:ee(new yt(76,"multiCursorLimit",1e4,1,1e5,{markdownDescription:g("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:ee(new dt(77,"occurrencesHighlight",!0,{description:g("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:ee(new dt(78,"overviewRulerBorder",!0,{description:g("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:ee(new yt(79,"overviewRulerLanes",3,0,3)),padding:ee(new hW),parameterHints:ee(new uW),peekWidgetDefaultFocus:ee(new ai(82,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[g("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),g("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:g("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:ee(new dt(83,"definitionLinkOpensInPeek",!1,{description:g("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:ee(new gW),quickSuggestionsDelay:ee(new yt(85,"quickSuggestionsDelay",10,0,1073741824,{description:g("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:ee(new dt(86,"readOnly",!1)),renameOnType:ee(new dt(87,"renameOnType",!1,{description:g("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:g("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:ee(new dt(88,"renderControlCharacters",!0,{description:g("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:ee(new ai(89,"renderFinalNewline",hn?"dimmed":"on",["off","on","dimmed"],{description:g("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:ee(new ai(90,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",g("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:g("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:ee(new dt(91,"renderLineHighlightOnlyWhenFocus",!1,{description:g("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:ee(new ai(92,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:ee(new ai(93,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",g("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),g("renderWhitespace.selection","Render whitespace characters only on selected text."),g("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:g("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:ee(new yt(94,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:ee(new dt(95,"roundedSelection",!0,{description:g("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:ee(new mW),scrollbar:ee(new _W),scrollBeyondLastColumn:ee(new yt(98,"scrollBeyondLastColumn",4,0,1073741824,{description:g("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:ee(new dt(99,"scrollBeyondLastLine",!0,{description:g("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:ee(new dt(100,"scrollPredominantAxis",!0,{description:g("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:ee(new dt(101,"selectionClipboard",!0,{description:g("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:hn})),selectionHighlight:ee(new dt(102,"selectionHighlight",!0,{description:g("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:ee(new dt(103,"selectOnLineNumbers",!0)),showFoldingControls:ee(new ai(104,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[g("showFoldingControls.always","Always show the folding controls."),g("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),g("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:g("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:ee(new dt(105,"showUnused",!0,{description:g("showUnused","Controls fading out of unused code.")})),showDeprecated:ee(new dt(133,"showDeprecated",!0,{description:g("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:ee(new rW),snippetSuggestions:ee(new ai(106,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[g("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),g("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),g("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),g("snippetSuggestions.none","Do not show snippet suggestions.")],description:g("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:ee(new yW),smoothScrolling:ee(new dt(108,"smoothScrolling",!1,{description:g("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:ee(new yt(111,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:ee(new SW),inlineSuggest:ee(new bW),suggestFontSize:ee(new yt(113,"suggestFontSize",0,0,1e3,{markdownDescription:g("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:ee(new yt(114,"suggestLineHeight",0,0,1e3,{markdownDescription:g("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:ee(new dt(115,"suggestOnTriggerCharacters",!0,{description:g("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:ee(new ai(116,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[g("suggestSelection.first","Always select the first suggestion."),g("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),g("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:g("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:ee(new ai(117,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[g("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),g("tabCompletion.off","Disable tab completions."),g("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:g("tabCompletion","Enables tab completions.")})),tabIndex:ee(new yt(118,"tabIndex",0,-1,1073741824)),unicodeHighlight:ee(new vW),unusualLineTerminators:ee(new ai(120,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[g("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),g("unusualLineTerminators.off","Unusual line terminators are ignored."),g("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:g("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:ee(new dt(121,"useShadowDOM",!0)),useTabStops:ee(new dt(122,"useTabStops",!0,{description:g("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordBreak:ee(new ai(123,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[g("wordBreak.normal","Use the default line break rule."),g("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:g("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSeparators:ee(new cs(124,"wordSeparators",h4,{description:g("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:ee(new ai(125,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[g("wordWrap.off","Lines will never wrap."),g("wordWrap.on","Lines will wrap at the viewport width."),g({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),g({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:g({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:ee(new cs(126,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:ee(new cs(127,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:ee(new yt(128,"wordWrapColumn",80,1,1073741824,{markdownDescription:g({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:ee(new ai(129,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:ee(new ai(130,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:ee(new Y6),pixelRatio:ee(new fW),tabFocusMode:ee(new LW),layoutInfo:ee(new lf),wrappingInfo:ee(new xW),wrappingIndent:ee(new DW),wrappingStrategy:ee(new nW)};class TW{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Tf.isErrorNoTelemetry(e)?new Tf(e.message+` @@ -629,7 +629,7 @@ ${e.toString()}`}}class QC{constructor(e=new uw,t=!1,i,n=Pie){var s;this._servic `:`\r `}};Fk=tc([Zi(0,at)],Fk);class Kie{publicLog(e,t){return Promise.resolve(void 0)}publicLog2(e,t){return this.publicLog(e,t)}}class h_{constructor(){const e=Ce.from({scheme:h_.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new DJ({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===h_.SCHEME?this.workspace.folders[0]:null}}h_.SCHEME="inmemory";function XC(o,e,t){if(!e||!(o instanceof R7))return;const i=[];Object.keys(e).forEach(n=>{oJ(n)&&i.push([`editor.${n}`,e[n]]),t&&rJ(n)&&i.push([`diffEditor.${n}`,e[n]])}),i.length>0&&o.updateValues(i)}let Bk=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}apply(e,t){return E2(this,void 0,void 0,function*(){const i=Array.isArray(e)?e:JN.convert(e),n=new Map;for(const a of i){if(!(a instanceof gl))throw new Error("bad edit - only text edits are supported");const l=this._modelService.getModel(a.resource);if(!l)throw new Error("bad edit - model not found");if(typeof a.versionId=="number"&&l.getVersionId()!==a.versionId)throw new Error("bad state - model changed in the meantime");let d=n.get(l);d||(d=[],n.set(l,d)),d.push(Ht.replaceMove(y.lift(a.textEdit.range),a.textEdit.text))}let s=0,r=0;for(const[a,l]of n)a.pushStackElement(),a.pushEditOperations([],l,()=>[]),a.pushStackElement(),r+=1,s+=l.length;return{ariaSummary:to(Jx.bulkEditServiceSummary,s,r),isApplied:s>0}})}};Bk=tc([Zi(0,jt)],Bk);class qie{getUriLabel(e,t){return e.scheme==="file"?e.fsPath:e.path}getUriBasenameLabel(e){return uo(e)}}let Wk=class extends ek{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,i){if(!t){const n=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();n&&(t=n.getContainerDomNode())}return super.showContextView(e,t,i)}};Wk=tc([Zi(0,kg),Zi(1,ut)],Wk);class Gie{constructor(){this._neverEmitter=new O,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}}class Zie extends t_{constructor(){super()}}class Yie extends Hie{constructor(){super(new Oz)}}let Vk=class extends ok{constructor(e,t,i,n,s,r){super(e,t,i,n,s,r),this.configure({blockMouse:!1})}};Vk=tc([Zi(0,mo),Zi(1,_i),Zi(2,xl),Zi(3,ei),Zi(4,Ea),Zi(5,Ee)],Vk);class Qie{playAudioCue(e,t){return E2(this,void 0,void 0,function*(){})}}ot(at,R7,0);ot(GE,Ok,0);ot(vF,Fk,0);ot(Xm,h_,0);ot(Qf,qie,0);ot(mo,Kie,0);ot(t0,$ie,0);ot(_i,c_,0);ot(Ta,Kl,0);ot(Ut,Zie,0);ot(Ks,wie,0);ot(po,Yie,0);ot(jt,$C,0);ot(tN,ck,0);ot(Ee,Ak,0);ot(QN,Uie,0);ot(ec,Mw,0);ot(jo,tee,0);ot($o,ex,0);ot(i0,Bk,0);ot(z3,Gie,0);ot(os,Rk,0);ot(xa,Ik,0);ot(wo,qte,0);ot(ri,Pk,0);ot(ei,ig,0);ot(Ma,xk,0);ot(xl,Wk,0);ot(bo,dk,0);ot(Dl,Mk,0);ot(xr,Vk,0);ot(Ea,Ek,0);ot(VE,Qie,0);var ke;(function(o){const e=new uw;for(const[r,a]of YT())e.set(r,a);const t=new QC(e,!0);e.set(Me,t);function i(r){const a=e.get(r);if(!a)throw new Error("Missing service "+r);return a instanceof Hr?t.invokeFunction(l=>l.get(r)):a}o.get=i;let n=!1;function s(r){if(n)return t;n=!0;for(const[a,l]of YT())e.get(a)||e.set(a,l);for(const a in r)if(r.hasOwnProperty(a)){const l=Je(a);e.get(l)instanceof Hr&&e.set(l,r[a])}return t}o.initialize=s})(ke||(ke={}));var N2=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Bt=function(o,e){return function(t,i){e(t,i,o)}};let Xie=0,EP=!1;function Jie(o){if(!o){if(EP)return;EP=!0}h$(o||document.body)}let JC=class extends Gf{constructor(e,t,i,n,s,r,a,l,d,c,h,u){const f=Object.assign({},t);f.ariaLabel=f.ariaLabel||RC.editorViewAccessibleLabel,f.ariaLabel=f.ariaLabel+";"+RC.accessibilityHelpMessage,super(e,f,{},i,n,s,r,l,d,c,h,u),a instanceof ig?this._standaloneKeybindingService=a:this._standaloneKeybindingService=null,Jie(f.ariaContainerElement)}addCommand(e,t,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const n="DYNAMIC_"+ ++Xie,s=oe.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(n,e,t,s),n}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if(typeof e.id!="string"||typeof e.label!="string"||typeof e.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),U.None;const t=e.id,i=e.label,n=oe.and(oe.equals("editorId",this.getId()),oe.deserialize(e.precondition)),s=e.keybindings,r=oe.and(n,oe.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,l=e.contextMenuOrder||0,d=(f,...p)=>Promise.resolve(e.run(this,...p)),c=new Z,h=this.getId()+":"+t;if(c.add(st.registerCommand(h,d)),a){const f={command:{id:h,title:i},when:n,group:a,order:l};c.add(Jn.appendMenuItem(N.EditorContext,f))}if(Array.isArray(s))for(const f of s)c.add(this._standaloneKeybindingService.addDynamicKeybinding(h,f,d,r));const u=new T5(h,i,i,n,d,this._contextKeyService);return this._actions.set(t,u),c.add(Pe(()=>{this._actions.delete(t)})),c}_triggerCommand(e,t){if(this._codeEditorService instanceof IC)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};JC=N2([Bt(2,Me),Bt(3,ut),Bt(4,ri),Bt(5,Ee),Bt(6,ei),Bt(7,Hi),Bt(8,_i),Bt(9,xa),Bt(10,ui),Bt(11,fe)],JC);let Hk=class extends JC{constructor(e,t,i,n,s,r,a,l,d,c,h,u,f,p,m){const _=Object.assign({},t);XC(c,_,!1);const b=l.registerEditorContainer(e);typeof _.theme=="string"&&l.setTheme(_.theme),typeof _.autoDetectHighContrast<"u"&&l.setAutoDetectHighContrast(!!_.autoDetectHighContrast);const v=_.model;delete _.model,super(e,_,i,n,s,r,a,l,d,h,p,m),this._configurationService=c,this._standaloneThemeService=l,this._register(b);let C;if(typeof v>"u"){const S=f.getLanguageIdByMimeType(_.language)||_.language||Vs;C=P7(u,f,_.value||"",S,void 0),this._ownsModel=!0}else C=v,this._ownsModel=!1;if(this._attachModel(C),C){const S={oldModelUrl:null,newModelUrl:C.uri};this._onDidChangeModel.fire(S)}}dispose(){super.dispose()}updateOptions(e){XC(this._configurationService,e,!1),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(!!e.autoDetectHighContrast),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};Hk=N2([Bt(2,Me),Bt(3,ut),Bt(4,ri),Bt(5,Ee),Bt(6,ei),Bt(7,Ks),Bt(8,_i),Bt(9,at),Bt(10,xa),Bt(11,jt),Bt(12,Ut),Bt(13,ui),Bt(14,fe)],Hk);let zk=class extends Od{constructor(e,t,i,n,s,r,a,l,d,c,h){const u=Object.assign({},t);XC(l,u,!0);const f=r.registerEditorContainer(e);typeof u.theme=="string"&&r.setTheme(u.theme),typeof u.autoDetectHighContrast<"u"&&r.setAutoDetectHighContrast(!!u.autoDetectHighContrast),super(e,u,{},h,n,i,s,r,a,d,c),this._configurationService=l,this._standaloneThemeService=r,this._register(f)}dispose(){super.dispose()}updateOptions(e){XC(this._configurationService,e,!0),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(!!e.autoDetectHighContrast),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(JC,t,i)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,i){return this.getModifiedEditor().addCommand(e,t,i)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};zk=N2([Bt(2,Me),Bt(3,Ee),Bt(4,ut),Bt(5,Ks),Bt(6,_i),Bt(7,at),Bt(8,xr),Bt(9,ec),Bt(10,Dl)],zk);function P7(o,e,t,i,n){if(t=t||"",!i){const s=t.indexOf(` `);let r=t;return s!==-1&&(r=t.substring(0,s)),NP(o,t,e.createByFilepathOrFirstLine(n||null,r),n)}return NP(o,t,e.createById(i),n)}function NP(o,e,t,i){return o.createModel(e,t,i)}function ene(o,e,t){return ke.initialize(t||{}).createInstance(Hk,o,e)}function tne(o){return ke.get(ut).onCodeEditorAdd(t=>{o(t)})}function ine(o){return ke.get(ut).onDiffEditorAdd(t=>{o(t)})}function nne(){return ke.get(ut).listCodeEditors()}function sne(){return ke.get(ut).listDiffEditors()}function one(o,e,t){return ke.initialize(t||{}).createInstance(zk,o,e)}function rne(o,e){return ke.initialize({}).createInstance(UD,o,e)}function ane(o){if(typeof o.id!="string"||typeof o.run!="function")throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return st.registerCommand(o.id,o.run)}function lne(o){if(typeof o.id!="string"||typeof o.label!="string"||typeof o.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const e=oe.deserialize(o.precondition),t=(n,...s)=>Ji.runEditorCommand(n,s,e,(r,a,l)=>Promise.resolve(o.run(a,...l))),i=new Z;if(i.add(st.registerCommand(o.id,t)),o.contextMenuGroupId){const n={command:{id:o.id,title:o.label},when:e,group:o.contextMenuGroupId,order:o.contextMenuOrder||0};i.add(Jn.appendMenuItem(N.EditorContext,n))}if(Array.isArray(o.keybindings)){const n=ke.get(ei);if(!(n instanceof ig))console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService");else{const s=oe.and(e,oe.deserialize(o.keybindingContext));i.add(n.addDynamicKeybindings(o.keybindings.map(r=>({keybinding:r,command:o.id,when:s}))))}}return i}function dne(o){return O7([o])}function O7(o){const e=ke.get(ei);return e instanceof ig?e.addDynamicKeybindings(o.map(t=>({keybinding:t.keybinding,command:t.command,commandArgs:t.commandArgs,when:oe.deserialize(t.when)}))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),U.None)}function cne(o,e,t){const i=ke.get(Ut),n=i.getLanguageIdByMimeType(e)||e;return P7(ke.get(jt),i,o,n,t)}function hne(o,e){const t=ke.get(Ut),i=ke.get(jt),n=t.getLanguageIdByMimeType(e)||e||Vs;i.setMode(o,t.createById(n))}function une(o,e,t){o&&ke.get(Ta).changeOne(e,o.uri,t)}function fne(o){ke.get(Ta).changeAll(o,[])}function gne(o){return ke.get(Ta).read(o)}function pne(o){return ke.get(Ta).onMarkerChanged(o)}function mne(o){return ke.get(jt).getModel(o)}function _ne(){return ke.get(jt).getModels()}function vne(o){return ke.get(jt).onModelAdded(o)}function bne(o){return ke.get(jt).onModelRemoved(o)}function Cne(o){return ke.get(jt).onModelLanguageChanged(t=>{o({model:t.model,oldLanguage:t.oldLanguageId})})}function wne(o){return zz(ke.get(jt),ke.get(ui),o)}function Sne(o,e){const t=ke.get(Ut),i=ke.get(Ks);return i.registerEditorContainer(o),XE.colorizeElement(i,t,o,e)}function yne(o,e,t){const i=ke.get(Ut);return ke.get(Ks).registerEditorContainer(document.body),XE.colorize(i,o,e,t)}function Lne(o,e,t=4){return ke.get(Ks).registerEditorContainer(document.body),XE.colorizeModelLine(o,e,t)}function Dne(o){const e=Kt.get(o);return e||{getInitialState:()=>Wf,tokenize:(t,i,n)=>UE(o,n)}}function xne(o,e){Kt.getOrCreate(e);const t=Dne(e),i=ma(o),n=[];let s=t.getInitialState();for(let r=0,a=i.length;r=100){i=i-100;const n=t.split(".");if(n.unshift(t),i=0&&(i.tokenSubst=!0),typeof t.bracket=="string")if(t.bracket==="@open")i.bracket=1;else if(t.bracket==="@close")i.bracket=-1;else throw Rt(o,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+e);if(t.next){if(typeof t.next!="string")throw Rt(o,"the next state must be a string value in rule: "+e);{let n=t.next;if(!/^(@pop|@push|@popall)$/.test(n)&&(n[0]==="@"&&(n=n.substr(1)),n.indexOf("$")<0&&!aU(o,Gl(o,n,"",[],""))))throw Rt(o,"the next state '"+t.next+"' is not defined in rule: "+e);i.next=n}}return typeof t.goBack=="number"&&(i.goBack=t.goBack),typeof t.switchTo=="string"&&(i.switchTo=t.switchTo),typeof t.log=="string"&&(i.log=t.log),typeof t.nextEmbedded=="string"&&(i.nextEmbedded=t.nextEmbedded,o.usesEmbedded=!0),i}}else if(Array.isArray(t)){const i=[];for(let n=0,s=t.length;n0&&i[0]==="^",this.name=this.name+": "+i,this.regex=Uk(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")")}setAction(e,t){this.action=$k(e,this.name,t)}}function F7(o,e){if(!e||typeof e!="object")throw new Error("Monarch: expecting a language definition object");const t={};t.languageId=o,t.includeLF=_v(e.includeLF,!1),t.noThrow=!1,t.maxStack=100,t.start=typeof e.start=="string"?e.start:null,t.ignoreCase=_v(e.ignoreCase,!1),t.unicode=_v(e.unicode,!1),t.tokenPostfix=TP(e.tokenPostfix,"."+t.languageId),t.defaultToken=TP(e.defaultToken,"source"),t.usesEmbedded=!1;const i=e;i.languageId=o,i.includeLF=t.includeLF,i.ignoreCase=t.ignoreCase,i.unicode=t.unicode,i.noThrow=t.noThrow,i.usesEmbedded=t.usesEmbedded,i.stateNames=e.tokenizer,i.defaultToken=t.defaultToken;function n(r,a,l){for(const d of l){let c=d.include;if(c){if(typeof c!="string")throw Rt(t,"an 'include' attribute must be a string at: "+r);if(c[0]==="@"&&(c=c.substr(1)),!e.tokenizer[c])throw Rt(t,"include target '"+c+"' is not defined at: "+r);n(r+"."+c,a,e.tokenizer[c])}else{const h=new One(r);if(Array.isArray(d)&&d.length>=1&&d.length<=3)if(h.setRegex(i,d[0]),d.length>=3)if(typeof d[1]=="string")h.setAction(i,{token:d[1],next:d[2]});else if(typeof d[1]=="object"){const u=d[1];u.next=d[2],h.setAction(i,u)}else throw Rt(t,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+r);else h.setAction(i,d[1]);else{if(!d.regex)throw Rt(t,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+r);d.name&&typeof d.name=="string"&&(h.name=d.name),d.matchOnlyAtStart&&(h.matchOnlyAtLineStart=_v(d.matchOnlyAtLineStart,!1)),h.setRegex(i,d.regex),h.setAction(i,d.action)}a.push(h)}}}if(!e.tokenizer||typeof e.tokenizer!="object")throw Rt(t,"a language definition must define the 'tokenizer' attribute as an object");t.tokenizer=[];for(const r in e.tokenizer)if(e.tokenizer.hasOwnProperty(r)){t.start||(t.start=r);const a=e.tokenizer[r];t.tokenizer[r]=new Array,n("tokenizer."+r,t.tokenizer[r],a)}if(t.usesEmbedded=i.usesEmbedded,e.brackets){if(!Array.isArray(e.brackets))throw Rt(t,"the 'brackets' attribute must be defined as an array")}else e.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const s=[];for(const r of e.brackets){let a=r;if(a&&Array.isArray(a)&&a.length===3&&(a={token:a[2],open:a[0],close:a[1]}),a.open===a.close)throw Rt(t,"open and close brackets in a 'brackets' attribute must be different: "+a.open+` - hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof a.open=="string"&&typeof a.token=="string"&&typeof a.close=="string")s.push({token:a.token+t.tokenPostfix,open:pd(t,a.open),close:pd(t,a.close)});else throw Rt(t,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return t.brackets=s,t.noThrow=!0,t}var Fne=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};function Bne(o){Bf.registerLanguage(o)}function Wne(){let o=[];return o=o.concat(Bf.getLanguages()),o}function Vne(o){return ke.get(Ut).languageIdCodec.encodeLanguageId(o)}function Hne(o,e){const i=ke.get(Ut).onDidEncounterLanguage(n=>{n===o&&(i.dispose(),e())});return i}function zne(o,e){if(!ke.get(Ut).isRegisteredLanguageId(o))throw new Error(`Cannot set configuration for unknown language ${o}`);return ke.get(ui).register(o,e,100)}class Une{constructor(e,t){this._languageId=e,this._actual=t}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i){if(typeof this._actual.tokenize=="function")return u_.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,t,i){const n=this._actual.tokenizeEncoded(e,i);return new D1(n.tokens,n.endState)}}class u_{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=n}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const i=[];let n=0;for(let s=0,r=e.length;s0&&s[r-1]===u)continue;let f=h.startIndex;d===0?f=0:fFne(this,void 0,void 0,function*(){const i=yield Promise.resolve(e.create());return i?$ne(i)?W7(o,i):new km(ke.get(Ut),ke.get(Ks),o,F7(o,i),ke.get(at)):null})};return Kt.registerFactory(o,t)}function qne(o,e){if(!ke.get(Ut).isRegisteredLanguageId(o))throw new Error(`Cannot set tokens provider for unknown language ${o}`);return B7(e)?T2(o,{create:()=>e}):Kt.register(o,W7(o,e))}function Gne(o,e){const t=i=>new km(ke.get(Ut),ke.get(Ks),o,F7(o,i),ke.get(at));return B7(e)?T2(o,{create:()=>e}):Kt.register(o,t(e))}function Zne(o,e){return ke.get(fe).referenceProvider.register(o,e)}function Yne(o,e){return ke.get(fe).renameProvider.register(o,e)}function Qne(o,e){return ke.get(fe).signatureHelpProvider.register(o,e)}function Xne(o,e){return ke.get(fe).hoverProvider.register(o,{provideHover:(i,n,s)=>{const r=i.getWordAtPosition(n);return Promise.resolve(e.provideHover(i,n,s)).then(a=>{if(a)return!a.range&&r&&(a.range=new y(n.lineNumber,r.startColumn,n.lineNumber,r.endColumn)),a.range||(a.range=new y(n.lineNumber,n.column,n.lineNumber,n.column)),a})}})}function Jne(o,e){return ke.get(fe).documentSymbolProvider.register(o,e)}function ese(o,e){return ke.get(fe).documentHighlightProvider.register(o,e)}function tse(o,e){return ke.get(fe).linkedEditingRangeProvider.register(o,e)}function ise(o,e){return ke.get(fe).definitionProvider.register(o,e)}function nse(o,e){return ke.get(fe).implementationProvider.register(o,e)}function sse(o,e){return ke.get(fe).typeDefinitionProvider.register(o,e)}function ose(o,e){return ke.get(fe).codeLensProvider.register(o,e)}function rse(o,e,t){return ke.get(fe).codeActionProvider.register(o,{providedCodeActionKinds:t==null?void 0:t.providedCodeActionKinds,documentation:t==null?void 0:t.documentation,provideCodeActions:(n,s,r,a)=>{const d=ke.get(Ta).read({resource:n.uri}).filter(c=>y.areIntersectingOrTouching(c,s));return e.provideCodeActions(n,s,{markers:d,only:r.only,trigger:r.trigger},a)},resolveCodeAction:e.resolveCodeAction})}function ase(o,e){return ke.get(fe).documentFormattingEditProvider.register(o,e)}function lse(o,e){return ke.get(fe).documentRangeFormattingEditProvider.register(o,e)}function dse(o,e){return ke.get(fe).onTypeFormattingEditProvider.register(o,e)}function cse(o,e){return ke.get(fe).linkProvider.register(o,e)}function hse(o,e){return ke.get(fe).completionProvider.register(o,e)}function use(o,e){return ke.get(fe).colorProvider.register(o,e)}function fse(o,e){return ke.get(fe).foldingRangeProvider.register(o,e)}function gse(o,e){return ke.get(fe).declarationProvider.register(o,e)}function pse(o,e){return ke.get(fe).selectionRangeProvider.register(o,e)}function mse(o,e){return ke.get(fe).documentSemanticTokensProvider.register(o,e)}function _se(o,e){return ke.get(fe).documentRangeSemanticTokensProvider.register(o,e)}function vse(o,e){return ke.get(fe).inlineCompletionsProvider.register(o,e)}function bse(o,e){return ke.get(fe).inlayHintsProvider.register(o,e)}function Cse(){return{register:Bne,getLanguages:Wne,onLanguage:Hne,getEncodedLanguageId:Vne,setLanguageConfiguration:zne,setColorMap:Kne,registerTokensProviderFactory:T2,setTokensProvider:qne,setMonarchTokensProvider:Gne,registerReferenceProvider:Zne,registerRenameProvider:Yne,registerCompletionItemProvider:hse,registerSignatureHelpProvider:Qne,registerHoverProvider:Xne,registerDocumentSymbolProvider:Jne,registerDocumentHighlightProvider:ese,registerLinkedEditingRangeProvider:tse,registerDefinitionProvider:ise,registerImplementationProvider:nse,registerTypeDefinitionProvider:sse,registerCodeLensProvider:ose,registerCodeActionProvider:rse,registerDocumentFormattingEditProvider:ase,registerDocumentRangeFormattingEditProvider:lse,registerOnTypeFormattingEditProvider:dse,registerLinkProvider:cse,registerColorProvider:use,registerFoldingRangeProvider:fse,registerDeclarationProvider:gse,registerSelectionRangeProvider:pse,registerDocumentSemanticTokensProvider:mse,registerDocumentRangeSemanticTokensProvider:_se,registerInlineCompletionsProvider:vse,registerInlayHintsProvider:bse,DocumentHighlightKind:dD,CompletionItemKind:nD,CompletionItemTag:sD,CompletionItemInsertTextRule:Fb,SymbolKind:MD,SymbolTag:AD,IndentAction:gD,CompletionTriggerKind:oD,SignatureHelpTriggerKind:TD,InlayHintKind:mD,InlineCompletionTriggerKind:_D,CodeActionTriggerType:iD,FoldingRangeKind:br}}const M2=Je("IEditorCancelService"),V7=new de("cancellableOperation",!1,g("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));ot(M2,class{constructor(){this._tokens=new WeakMap}add(o,e){let t=this._tokens.get(o);t||(t=o.invokeWithinContext(n=>{const s=V7.bindTo(n.get(Ee)),r=new ln;return{key:s,tokens:r}}),this._tokens.set(o,t));let i;return t.key.set(!0),i=t.tokens.push(e),()=>{i&&(i(),t.key.set(!t.tokens.isEmpty()),i=void 0)}}cancel(o){const e=this._tokens.get(o);if(!e)return;const t=e.tokens.pop();t&&(t.cancel(),e.key.set(!e.tokens.isEmpty()))}},1);class wse extends Xi{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext(i=>i.get(M2).add(e,this))}dispose(){this._unregister(),super.dispose()}}ie(new class extends Ji{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:V7})}runEditorCommand(o,e){o.get(M2).cancel(e)}});let H7=class jk{constructor(e,t){if(this.flags=t,this.flags&1){const i=e.getModel();this.modelVersionId=i?to("{0}#{1}",i.uri.toString(),i.getVersionId()):null}else this.modelVersionId=null;this.flags&4?this.position=e.getPosition():this.position=null,this.flags&2?this.selection=e.getSelection():this.selection=null,this.flags&8?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof jk))return!1;const t=e;return!(this.modelVersionId!==t.modelVersionId||this.scrollLeft!==t.scrollLeft||this.scrollTop!==t.scrollTop||!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position)||!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))}validate(e){return this._equals(new jk(e,this.flags))}};class Sh extends wse{constructor(e,t,i,n){super(e,n),this._listener=new Z,t&4&&this._listener.add(e.onDidChangeCursorPosition(s=>{(!i||!y.containsPosition(i,s.position))&&this.cancel()})),t&2&&this._listener.add(e.onDidChangeCursorSelection(s=>{(!i||!y.containsRange(i,s.selection))&&this.cancel()})),t&8&&this._listener.add(e.onDidScrollChange(s=>this.cancel())),t&1&&(this._listener.add(e.onDidChangeModel(s=>this.cancel())),this._listener.add(e.onDidChangeModelContent(s=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}}class A2 extends Xi{constructor(e,t){super(t),this._listener=e.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}function La(o){return o&&typeof o.getEditorType=="function"?o.getEditorType()===U_.ICodeEditor:!1}function z7(o){return o&&typeof o.getEditorType=="function"?o.getEditorType()===U_.IDiffEditor:!1}function Sse(o){return!!o&&typeof o=="object"&&typeof o.onDidChangeActiveEditor=="function"}function U7(o){return La(o)?o:z7(o)?o.getModifiedEditor():Sse(o)&&La(o.activeCodeEditor)?o.activeCodeEditor:null}class ng{static _handleEolEdits(e,t){let i;const n=[];for(const s of t)typeof s.eol=="number"&&(i=s.eol),s.range&&typeof s.text=="string"&&n.push(s);return typeof i=="number"&&e.hasModel()&&e.getModel().pushEOL(i),n}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),n=i.validateRange(t.range);return i.getFullModelRange().equalsRange(n)}static execute(e,t,i){i&&e.pushUndoStop();const n=Ca.capture(e),s=ng._handleEolEdits(e,t);s.length===1&&ng._isFullModelReplaceEdit(e,s[0])?e.executeEdits("formatEditsCommand",s.map(r=>Ht.replace(y.lift(r.range),r.text))):e.executeEdits("formatEditsCommand",s.map(r=>Ht.replaceMove(y.lift(r.range),r.text))),i&&e.pushUndoStop(),n.restoreRelativeVerticalPositionOfCursor(e)}}class Jy{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}}var Lr=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};function R2(o){if(o=o.filter(n=>n.range),!o.length)return;let{range:e}=o[0];for(let n=1;n0&&y.areIntersectingOrTouching(d[c-1],m)?d[c-1]=y.fromPositions(d[c-1].getStartPosition(),m.getEndPosition()):c=d.push(m);const h=m=>Lr(this,void 0,void 0,function*(){var _,b;r.trace("[format][provideDocumentRangeFormattingEdits] (request)",(_=e.extensionId)===null||_===void 0?void 0:_.value,m);const v=(yield e.provideDocumentRangeFormattingEdits(a,m,a.getFormattingOptions(),l.token))||[];return r.trace("[format][provideDocumentRangeFormattingEdits] (response)",(b=e.extensionId)===null||b===void 0?void 0:b.value,v),v}),u=(m,_)=>{if(!m.length||!_.length)return!1;const b=m.reduce((v,C)=>y.plusRange(v,C.range),m[0].range);if(!_.some(v=>y.intersectRanges(b,v.range)))return!1;for(const v of m)for(const C of _)if(y.intersectRanges(v.range,C.range))return!0;return!1},f=[],p=[];try{for(const m of d){if(l.token.isCancellationRequested)return!0;p.push(yield h(m))}for(let m=0;m({text:b.text,range:y.lift(b.range),forceMoveMarkers:!0})),b=>{for(const{range:v}of b)if(y.areIntersectingOrTouching(v,_))return[new ue(v.startLineNumber,v.startColumn,v.endLineNumber,v.endColumn)];return null})}return!0})}function Lse(o,e,t,i,n){return Lr(this,void 0,void 0,function*(){const s=o.get(Me),r=o.get(fe),a=La(e)?e.getModel():e,l=$7(r.documentFormattingEditProvider,r.documentRangeFormattingEditProvider,a),d=yield yh.select(l,a,t);d&&(i.report(d),yield s.invokeFunction(Dse,d,e,t,n))})}function Dse(o,e,t,i,n){return Lr(this,void 0,void 0,function*(){const s=o.get($o);let r,a;La(t)?(r=t.getModel(),a=new Sh(t,5,void 0,n)):(r=t,a=new A2(t,n));let l;try{const d=yield e.provideDocumentFormattingEdits(r,r.getFormattingOptions(),a.token);if(l=yield s.computeMoreMinimalEdits(r.uri,d),a.token.isCancellationRequested)return!0}finally{a.dispose()}if(!l||l.length===0)return!1;if(La(t))ng.execute(t,l,i!==2),i!==2&&(R2(l),t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1));else{const[{range:d}]=l,c=new ue(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn);r.pushEditOperations([c],l.map(h=>({text:h.text,range:y.lift(h.range),forceMoveMarkers:!0})),h=>{for(const{range:u}of h)if(y.areIntersectingOrTouching(u,c))return[new ue(u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn)];return null})}return!0})}function xse(o,e,t,i,n,s){return Lr(this,void 0,void 0,function*(){const r=e.documentRangeFormattingEditProvider.ordered(t);for(const a of r){const l=yield Promise.resolve(a.provideDocumentRangeFormattingEdits(t,i,n,s)).catch(Vi);if(Cn(l))return yield o.computeMoreMinimalEdits(t.uri,l)}})}function kse(o,e,t,i,n){return Lr(this,void 0,void 0,function*(){const s=$7(e.documentFormattingEditProvider,e.documentRangeFormattingEditProvider,t);for(const r of s){const a=yield Promise.resolve(r.provideDocumentFormattingEdits(t,i,n)).catch(Vi);if(Cn(a))return yield o.computeMoreMinimalEdits(t.uri,a)}})}function K7(o,e,t,i,n,s,r){const a=e.onTypeFormattingEditProvider.ordered(t);return a.length===0||a[0].autoFormatTriggerCharacters.indexOf(n)<0?Promise.resolve(void 0):Promise.resolve(a[0].provideOnTypeFormattingEdits(t,i,n,s,r)).catch(Vi).then(l=>o.computeMoreMinimalEdits(t.uri,l))}st.registerCommand("_executeFormatRangeProvider",function(o,...e){return Lr(this,void 0,void 0,function*(){const[t,i,n]=e;_t(Ce.isUri(t)),_t(y.isIRange(i));const s=o.get(os),r=o.get($o),a=o.get(fe),l=yield s.createModelReference(t);try{return xse(r,a,l.object.textEditorModel,y.lift(i),n,Ye.None)}finally{l.dispose()}})});st.registerCommand("_executeFormatDocumentProvider",function(o,...e){return Lr(this,void 0,void 0,function*(){const[t,i]=e;_t(Ce.isUri(t));const n=o.get(os),s=o.get($o),r=o.get(fe),a=yield n.createModelReference(t);try{return kse(s,r,a.object.textEditorModel,i,Ye.None)}finally{a.dispose()}})});st.registerCommand("_executeFormatOnTypeProvider",function(o,...e){return Lr(this,void 0,void 0,function*(){const[t,i,n,s]=e;_t(Ce.isUri(t)),_t(W.isIPosition(i)),_t(typeof n=="string");const r=o.get(os),a=o.get($o),l=o.get(fe),d=yield r.createModelReference(t);try{return K7(a,l,d.object.textEditorModel,W.lift(i),n,s,Ye.None)}finally{d.dispose()}})});var eL;Dr.wrappingIndent.defaultValue=0;Dr.glyphMargin.defaultValue=!1;Dr.autoIndent.defaultValue=3;Dr.overviewRulerLanes.defaultValue=2;yh.setFormatterSelector((o,e,t)=>Promise.resolve(o[0]));const zn=W4();zn.editor=Tne();zn.languages=Cse();const q7=zn.CancellationTokenSource,G7=zn.Emitter,Z7=zn.KeyCode,Y7=zn.KeyMod,Q7=zn.Position,X7=zn.Range,J7=zn.Selection,e8=zn.SelectionDirection,t8=zn.MarkerSeverity,i8=zn.MarkerTag,n8=zn.Uri,s8=zn.Token,ja=zn.editor,P2=zn.languages;(!((eL=ci.MonacoEnvironment)===null||eL===void 0)&&eL.globalAPI||typeof define=="function"&&define.amd)&&(self.monaco=zn);typeof self.require<"u"&&typeof self.require.config=="function"&&self.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});const l0=Object.freeze(Object.defineProperty({__proto__:null,CancellationTokenSource:q7,Emitter:G7,KeyCode:Z7,KeyMod:Y7,MarkerSeverity:t8,MarkerTag:i8,Position:Q7,Range:X7,Selection:J7,SelectionDirection:e8,Token:s8,Uri:n8,editor:ja,languages:P2},Symbol.toStringTag,{value:"Module"}));var Ise=Object.defineProperty,Ese=Object.getOwnPropertyDescriptor,Nse=Object.getOwnPropertyNames,Tse=Object.prototype.hasOwnProperty,Mse=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Nse(e))!Tse.call(o,n)&&n!==t&&Ise(o,n,{get:()=>e[n],enumerable:!(i=Ese(e,n))||i.enumerable});return o},Ase=(o,e,t)=>(Mse(o,e,"default"),t),Pp={};Ase(Pp,l0);var o8={},tL={},r8=class{constructor(o){Zt(this,"_languageId");Zt(this,"_loadingTriggered");Zt(this,"_lazyLoadPromise");Zt(this,"_lazyLoadPromiseResolve");Zt(this,"_lazyLoadPromiseReject");this._languageId=o,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}static getOrCreate(o){return tL[o]||(tL[o]=new r8(o)),tL[o]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,o8[this._languageId].loader().then(o=>this._lazyLoadPromiseResolve(o),o=>this._lazyLoadPromiseReject(o))),this._lazyLoadPromise}};function ve(o){const e=o.id;o8[e]=o,Pp.languages.register(o);const t=r8.getOrCreate(e);Pp.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),Pp.languages.onLanguage(e,async()=>{const i=await t.load();Pp.languages.setLanguageConfiguration(e,i.conf)})}ve({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>me(()=>import("./abap-CRCWOmpq.js"),[])});ve({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>me(()=>import("./apex-DnsZk_dE.js"),[])});ve({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>me(()=>import("./azcli-1IWB1ccx.js"),[])});ve({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>me(()=>import("./bat-DPkNLes8.js"),[])});ve({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>me(()=>import("./bicep-Corcdgou.js"),[])});ve({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>me(()=>import("./cameligo-CGrWLZr3.js"),[])});ve({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>me(()=>import("./clojure-D9WOWImG.js"),[])});ve({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>me(()=>import("./coffee-B7EJu28W.js"),[])});ve({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>me(()=>import("./cpp-BaF-TIV3.js"),[])});ve({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>me(()=>import("./cpp-BaF-TIV3.js"),[])});ve({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>me(()=>import("./csharp-BoL64M5l.js"),[])});ve({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>me(()=>import("./csp-C46ZqvIl.js"),[])});ve({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>me(()=>import("./css-DQU6DXDx.js"),[])});ve({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>me(()=>import("./cypher-D84EuPTj.js"),[])});ve({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>me(()=>import("./dart-D8lhlL1r.js"),[])});ve({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>me(()=>import("./dockerfile-DLk6rpji.js"),[])});ve({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>me(()=>import("./ecl-BO6FnfXk.js"),[])});ve({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>me(()=>import("./elixir-DhnAcdHF.js"),[])});ve({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>me(()=>import("./flow9-Cac8vKd7.js"),[])});ve({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>me(()=>import("./fsharp-fd1GTHhf.js"),[])});ve({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>me(()=>import("./freemarker2-DExPAC1B.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagAutoInterpolationDollar)});ve({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>me(()=>import("./freemarker2-DExPAC1B.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagAngleInterpolationDollar)});ve({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>me(()=>import("./freemarker2-DExPAC1B.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagBracketInterpolationDollar)});ve({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>me(()=>import("./freemarker2-DExPAC1B.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagAngleInterpolationBracket)});ve({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>me(()=>import("./freemarker2-DExPAC1B.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagBracketInterpolationBracket)});ve({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>me(()=>import("./freemarker2-DExPAC1B.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagAutoInterpolationDollar)});ve({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>me(()=>import("./freemarker2-DExPAC1B.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagAutoInterpolationBracket)});ve({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>me(()=>import("./go-O9LJTZXk.js"),[])});ve({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>me(()=>import("./graphql-LQdxqEYJ.js"),[])});ve({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>me(()=>import("./handlebars-BOx74Vw8.js"),__vite__mapDeps([3,1,2]))});ve({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>me(()=>import("./hcl-DxDQ3s82.js"),[])});ve({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>me(()=>import("./html-B98YRxTm.js"),__vite__mapDeps([4,1,2]))});ve({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>me(()=>import("./ini-BvajGCUy.js"),[])});ve({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>me(()=>import("./java-SYsfObOQ.js"),[])});ve({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>me(()=>import("./javascript-46oaFvXi.js"),__vite__mapDeps([5,6,1,2]))});ve({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>me(()=>import("./julia-DQXNmw_w.js"),[])});ve({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>me(()=>import("./kotlin-qQ0MG-9I.js"),[])});ve({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>me(()=>import("./less-GGFNNJHn.js"),[])});ve({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>me(()=>import("./lexon-Canl7DCW.js"),[])});ve({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>me(()=>import("./lua-D28Ae8-K.js"),[])});ve({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>me(()=>import("./liquid-BtfrggTR.js"),__vite__mapDeps([7,1,2]))});ve({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>me(()=>import("./m3-DPitgjJI.js"),[])});ve({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>me(()=>import("./markdown-B811l8j2.js"),[])});ve({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>me(()=>import("./mips-CdjsipkG.js"),[])});ve({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>me(()=>import("./msdax-CYqgjx_P.js"),[])});ve({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>me(()=>import("./mysql-BHd6q0vd.js"),[])});ve({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>me(()=>import("./objective-c-B1aVtJYH.js"),[])});ve({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>me(()=>import("./pascal-BhNW15KB.js"),[])});ve({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>me(()=>import("./pascaligo-5jv8CcQD.js"),[])});ve({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:()=>me(()=>import("./perl-DlYyT36c.js"),[])});ve({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>me(()=>import("./pgsql-Dy0bjov7.js"),[])});ve({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>me(()=>import("./php-120yhfDK.js"),[])});ve({id:"pla",extensions:[".pla"],loader:()=>me(()=>import("./pla-CjnFlu4u.js"),[])});ve({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>me(()=>import("./postiats-CQpG440k.js"),[])});ve({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>me(()=>import("./powerquery-DdJtto1Z.js"),[])});ve({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>me(()=>import("./powershell-Bu_VLpJB.js"),[])});ve({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>me(()=>import("./protobuf-IBS6jZEB.js"),[])});ve({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>me(()=>import("./pug-kFxLfcjb.js"),[])});ve({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>me(()=>import("./python-CPdyGXTu.js"),__vite__mapDeps([8,1,2]))});ve({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>me(()=>import("./qsharp-gaqVKiJ_.js"),[])});ve({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>me(()=>import("./r-BIFz-_sK.js"),[])});ve({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>me(()=>import("./razor-C8NV1rZc.js"),__vite__mapDeps([9,1,2]))});ve({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>me(()=>import("./redis-CHOsPHWR.js"),[])});ve({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>me(()=>import("./redshift-CBifECDb.js"),[])});ve({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>me(()=>import("./restructuredtext-CghPJEOS.js"),[])});ve({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>me(()=>import("./ruby-CYWGW-b1.js"),[])});ve({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>me(()=>import("./rust-DMDD0SHb.js"),[])});ve({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>me(()=>import("./sb-BYAiYHFx.js"),[])});ve({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>me(()=>import("./scala-Bqvq8jcR.js"),[])});ve({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>me(()=>import("./scheme-Dhb-2j9p.js"),[])});ve({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>me(()=>import("./scss-CTwUZ5N7.js"),[])});ve({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>me(()=>import("./shell-CsDZo4DB.js"),[])});ve({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>me(()=>import("./solidity-CME5AdoB.js"),[])});ve({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>me(()=>import("./sophia-RYC1BQQz.js"),[])});ve({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>me(()=>import("./sparql-KEyrF7De.js"),[])});ve({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>me(()=>import("./sql-BdTr02Mf.js"),[])});ve({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:()=>me(()=>import("./st-C8kzSboH.js"),[])});ve({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>me(()=>import("./swift-D7IUmUK8.js"),[])});ve({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>me(()=>import("./systemverilog-DgMryOEJ.js"),[])});ve({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>me(()=>import("./systemverilog-DgMryOEJ.js"),[])});ve({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>me(()=>import("./tcl-PloMZuKG.js"),[])});ve({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>me(()=>import("./twig-bne2BnKZ.js"),[])});ve({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>me(()=>import("./typescript-B2JOWJ8l.js"),__vite__mapDeps([6,1,2]))});ve({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>me(()=>import("./vb-BwAE3J76.js"),[])});ve({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\me(()=>import("./xml-B8uJIXUe.js"),__vite__mapDeps([10,1,2]))});ve({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>me(()=>import("./yaml-BN2Qx_1b.js"),__vite__mapDeps([11,1,2]))});var Rse=Object.defineProperty,Pse=Object.getOwnPropertyDescriptor,Ose=Object.getOwnPropertyNames,Fse=Object.prototype.hasOwnProperty,Bse=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ose(e))!Fse.call(o,n)&&n!==t&&Rse(o,n,{get:()=>e[n],enumerable:!(i=Pse(e,n))||i.enumerable});return o},Wse=(o,e,t)=>(Bse(o,e,"default"),t),Ng={};Wse(Ng,l0);var O2=class{constructor(e,t,i){Zt(this,"_onDidChange",new Ng.Emitter);Zt(this,"_options");Zt(this,"_modeConfiguration");Zt(this,"_languageId");this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},F2={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},B2={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},a8=new O2("css",F2,B2),l8=new O2("scss",F2,B2),d8=new O2("less",F2,B2);Ng.languages.css={cssDefaults:a8,lessDefaults:d8,scssDefaults:l8};function W2(){return me(()=>import("./cssMode-DtbAo8VM.js"),__vite__mapDeps([12,1,2]))}Ng.languages.onLanguage("less",()=>{W2().then(o=>o.setupMode(d8))});Ng.languages.onLanguage("scss",()=>{W2().then(o=>o.setupMode(l8))});Ng.languages.onLanguage("css",()=>{W2().then(o=>o.setupMode(a8))});var Vse=Object.defineProperty,Hse=Object.getOwnPropertyDescriptor,zse=Object.getOwnPropertyNames,Use=Object.prototype.hasOwnProperty,$se=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of zse(e))!Use.call(o,n)&&n!==t&&Vse(o,n,{get:()=>e[n],enumerable:!(i=Hse(e,n))||i.enumerable});return o},jse=(o,e,t)=>($se(o,e,"default"),t),Aw={};jse(Aw,l0);var Kse=class{constructor(e,t,i){Zt(this,"_onDidChange",new Aw.Emitter);Zt(this,"_options");Zt(this,"_modeConfiguration");Zt(this,"_languageId");this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},qse={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},Rw={format:qse,suggest:{},data:{useDefaultDataProvider:!0}};function Pw(o){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:o===hm,documentFormattingEdits:o===hm,documentRangeFormattingEdits:o===hm}}var hm="html",AP="handlebars",RP="razor",c8=Ow(hm,Rw,Pw(hm)),Gse=c8.defaults,h8=Ow(AP,Rw,Pw(AP)),Zse=h8.defaults,u8=Ow(RP,Rw,Pw(RP)),Yse=u8.defaults;Aw.languages.html={htmlDefaults:Gse,razorDefaults:Yse,handlebarDefaults:Zse,htmlLanguageService:c8,handlebarLanguageService:h8,razorLanguageService:u8,registerHTMLLanguageService:Ow};function Qse(){return me(()=>import("./htmlMode-B3f09YUI.js"),__vite__mapDeps([13,1,2]))}function Ow(o,e=Rw,t=Pw(o)){const i=new Kse(o,e,t);let n;const s=Aw.languages.onLanguage(o,async()=>{n=(await Qse()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),n==null||n.dispose(),n=void 0}}}var Xse=Object.defineProperty,Jse=Object.getOwnPropertyDescriptor,eoe=Object.getOwnPropertyNames,toe=Object.prototype.hasOwnProperty,ioe=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of eoe(e))!toe.call(o,n)&&n!==t&&Xse(o,n,{get:()=>e[n],enumerable:!(i=Jse(e,n))||i.enumerable});return o},noe=(o,e,t)=>(ioe(o,e,"default"),t),d0={};noe(d0,l0);var soe=class{constructor(e,t,i){Zt(this,"_onDidChange",new d0.Emitter);Zt(this,"_diagnosticsOptions");Zt(this,"_modeConfiguration");Zt(this,"_languageId");this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},ooe={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},roe={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},f8=new soe("json",ooe,roe);d0.languages.json={jsonDefaults:f8};function aoe(){return me(()=>import("./jsonMode-Bx8X7dz8.js"),__vite__mapDeps([14,1,2]))}d0.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});d0.languages.onLanguage("json",()=>{aoe().then(o=>o.setupMode(f8))});var loe=Object.defineProperty,doe=Object.getOwnPropertyDescriptor,coe=Object.getOwnPropertyNames,hoe=Object.prototype.hasOwnProperty,uoe=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of coe(e))!hoe.call(o,n)&&n!==t&&loe(o,n,{get:()=>e[n],enumerable:!(i=doe(e,n))||i.enumerable});return o},foe=(o,e,t)=>(uoe(o,e,"default"),t),goe="4.5.5",sg={};foe(sg,l0);var g8=(o=>(o[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o))(g8||{}),p8=(o=>(o[o.None=0]="None",o[o.Preserve=1]="Preserve",o[o.React=2]="React",o[o.ReactNative=3]="ReactNative",o[o.ReactJSX=4]="ReactJSX",o[o.ReactJSXDev=5]="ReactJSXDev",o))(p8||{}),m8=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(m8||{}),_8=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(_8||{}),v8=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(v8||{}),b8=class{constructor(o,e,t,i,n){Zt(this,"_onDidChange",new sg.Emitter);Zt(this,"_onDidExtraLibsChange",new sg.Emitter);Zt(this,"_extraLibs");Zt(this,"_removedExtraLibs");Zt(this,"_eagerModelSync");Zt(this,"_compilerOptions");Zt(this,"_diagnosticsOptions");Zt(this,"_workerOptions");Zt(this,"_onDidExtraLibsChangeTimeout");Zt(this,"_inlayHintsOptions");Zt(this,"_modeConfiguration");this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(o),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(o,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===o)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:o,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];n&&n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(o){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),o&&o.length>0)for(const e of o){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(o){this._compilerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(o){this._workerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(o){this._inlayHintsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(o){}setEagerModelSync(o){this._eagerModelSync=o}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(void 0)}},poe=goe,C8={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},w8=new b8({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},C8),S8=new b8({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},C8),moe=()=>Fw().then(o=>o.getTypeScriptWorker()),_oe=()=>Fw().then(o=>o.getJavaScriptWorker());sg.languages.typescript={ModuleKind:g8,JsxEmit:p8,NewLineKind:m8,ScriptTarget:_8,ModuleResolutionKind:v8,typescriptVersion:poe,typescriptDefaults:w8,javascriptDefaults:S8,getTypeScriptWorker:moe,getJavaScriptWorker:_oe};function Fw(){return me(()=>import("./tsMode-D5aWU1mP.js"),__vite__mapDeps([15,1,2]))}sg.languages.onLanguage("typescript",()=>Fw().then(o=>o.setupTypeScript(w8)));sg.languages.onLanguage("javascript",()=>Fw().then(o=>o.setupJavaScript(S8)));var voe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},boe=function(o,e){return function(t,i){e(t,i,o)}},Bw=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};const Ww=new de("selectionAnchorSet",!1);let yl=class y8{static get(e){return e.getContribution(y8.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=Ww.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(ue.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new Yn().appendText(g("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),dn(g("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(ue.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};yl.ID="editor.contrib.selectionAnchorController";yl=voe([boe(1,Ee)],yl);class Coe extends ce{constructor(){super({id:"editor.action.setSelectionAnchor",label:g("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:T.editorTextFocus,primary:ki(2089,2080),weight:100}})}run(e,t){var i;return Bw(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.setSelectionAnchor()})}}class woe extends ce{constructor(){super({id:"editor.action.goToSelectionAnchor",label:g("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:Ww})}run(e,t){var i;return Bw(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.goToSelectionAnchor()})}}class Soe extends ce{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:g("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:Ww,kbOpts:{kbExpr:T.editorTextFocus,primary:ki(2089,2089),weight:100}})}run(e,t){var i;return Bw(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.selectFromAnchorToCursor()})}}class yoe extends ce{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:g("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:Ww,kbOpts:{kbExpr:T.editorTextFocus,primary:9,weight:100}})}run(e,t){var i;return Bw(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.cancelSelectionAnchor()})}}lt(yl.ID,yl,4);J(Coe);J(woe);J(Soe);J(yoe);const Loe=M("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},g("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Doe extends ce{constructor(){super({id:"editor.action.jumpToBracket",label:g("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:T.editorTextFocus,primary:3160,weight:100}})}run(e,t){var i;(i=vr.get(t))===null||i===void 0||i.jumpToBracket()}}class xoe extends ce{constructor(){super({id:"editor.action.selectToBracket",label:g("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let s=!0;i&&i.selectBrackets===!1&&(s=!1),(n=vr.get(t))===null||n===void 0||n.selectToBracket(s)}}class koe{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class vr extends U{static get(e){return e.getContribution(vr.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new wt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(68),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(68)&&(this._matchBrackets=this._editor.getOption(68),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let r=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?r=s[1].getStartPosition():s[1].containsPosition(n)&&(r=s[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new ue(r.lineNumber,r.column,r.lineNumber,r.column):new ue(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const s=n.getStartPosition();let r=t.bracketPairs.matchBracket(s);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(s),!r)){const d=t.bracketPairs.findNextBracket(s);d&&d.range&&(r=t.bracketPairs.matchBracket(d.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(y.compareRangesUsingStarts);const[d,c]=r;if(a=e?d.getStartPosition():d.getEndPosition(),l=e?c.getEndPosition():c.getStartPosition(),c.containsPosition(s)){const h=a;a=l,l=h}}a&&l&&i.push(new ue(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let r=0;for(let h=0,u=e.length;h1&&s.sort(W.compare);const a=[];let l=0,d=0;const c=n.length;for(let h=0,u=s.length;h0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}J(Toe);var Moe=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};const Lh="9_cutcopypaste",Aoe=ur||document.queryCommandSupported("cut"),D8=ur||document.queryCommandSupported("copy"),Roe=typeof navigator.clipboard>"u"||ro?document.queryCommandSupported("paste"):!0;function V2(o){return o.register(),o}const Poe=Aoe?V2(new yg({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:ur?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:N.MenubarEditMenu,group:"2_ccp",title:g({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:N.EditorContext,group:Lh,title:g("actions.clipboard.cutLabel","Cut"),when:T.writable,order:1},{menuId:N.CommandPalette,group:"",title:g("actions.clipboard.cutLabel","Cut"),order:1},{menuId:N.SimpleEditorContext,group:Lh,title:g("actions.clipboard.cutLabel","Cut"),when:T.writable,order:1}]})):void 0,Ooe=D8?V2(new yg({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:ur?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:N.MenubarEditMenu,group:"2_ccp",title:g({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:N.EditorContext,group:Lh,title:g("actions.clipboard.copyLabel","Copy"),order:2},{menuId:N.CommandPalette,group:"",title:g("actions.clipboard.copyLabel","Copy"),order:1},{menuId:N.SimpleEditorContext,group:Lh,title:g("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;Jn.appendMenuItem(N.MenubarEditMenu,{submenu:N.MenubarCopy,title:{value:g("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});Jn.appendMenuItem(N.EditorContext,{submenu:N.EditorContextCopy,title:{value:g("copy as","Copy As"),original:"Copy As"},group:Lh,order:3});Jn.appendMenuItem(N.EditorContext,{submenu:N.EditorContextShare,title:{value:g("share","Share"),original:"Share"},group:"11_share",order:-1});const iL=Roe?V2(new yg({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:ur?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:N.MenubarEditMenu,group:"2_ccp",title:g({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:N.EditorContext,group:Lh,title:g("actions.clipboard.pasteLabel","Paste"),when:T.writable,order:4},{menuId:N.CommandPalette,group:"",title:g("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:N.SimpleEditorContext,group:Lh,title:g("actions.clipboard.pasteLabel","Paste"),when:T.writable,order:4}]})):void 0;class Foe extends ce{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:g("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:T.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(34)&&t.getSelection().isEmpty()||(mx.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),mx.forceCopyWithSyntaxHighlighting=!1)}}function x8(o,e){o&&(o.addImplementation(1e4,"code-editor",(t,i)=>{const n=t.get(ut).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const s=n.getOption(34),r=n.getSelection();return r&&r.isEmpty()&&!s||document.execCommand(e),!0}return!1}),o.addImplementation(0,"generic-dom",(t,i)=>(document.execCommand(e),!0)))}x8(Poe,"cut");x8(Ooe,"copy");iL&&(iL.addImplementation(1e4,"code-editor",(o,e)=>{const t=o.get(ut),i=o.get(Dl),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&Kd?Moe(void 0,void 0,void 0,function*(){const r=yield i.readText();if(r!==""){const a=Bm.INSTANCE.get(r);let l=!1,d=null,c=null;a&&(l=n.getOption(34)&&!!a.isFromEmptySelection,d=typeof a.multicursorText<"u"?a.multicursorText:null,c=a.mode),n.trigger("keyboard","paste",{text:r,pasteOnNewLine:l,multicursorText:d,mode:c})}}):!0:!1}),iL.addImplementation(0,"generic-dom",(o,e)=>(document.execCommand("paste"),!0)));D8&&J(Foe);var Boe=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Ne{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+Ne.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new Ne(this.value+Ne.sep+e)}}Ne.sep=".";Ne.None=new Ne("@@none@@");Ne.Empty=new Ne("");Ne.QuickFix=new Ne("quickfix");Ne.Refactor=new Ne("refactor");Ne.RefactorExtract=Ne.Refactor.append("extract");Ne.RefactorInline=Ne.Refactor.append("inline");Ne.RefactorMove=Ne.Refactor.append("move");Ne.RefactorRewrite=Ne.Refactor.append("rewrite");Ne.Source=new Ne("source");Ne.SourceOrganizeImports=Ne.Source.append("organizeImports");Ne.SourceFixAll=Ne.Source.append("fixAll");Ne.SurroundWith=Ne.Refactor.append("surround");var ns;(function(o){o.Refactor="refactor",o.RefactorPreview="refactor preview",o.Lightbulb="lightbulb",o.Default="other (default)",o.SourceAction="source action",o.QuickFix="quick fix action",o.FixAll="fix all",o.OrganizeImports="organize imports",o.AutoFix="auto fix",o.QuickFixHover="quick fix hover window",o.OnSave="save participants",o.ProblemsView="problems view"})(ns||(ns={}));function Woe(o,e){return!(o.include&&!o.include.intersects(e)||o.excludes&&o.excludes.some(t=>k8(e,t,o.include))||!o.includeSourceActions&&Ne.Source.contains(e))}function Voe(o,e){const t=e.kind?new Ne(e.kind):void 0;return!(o.include&&(!t||!o.include.contains(t))||o.excludes&&t&&o.excludes.some(i=>k8(t,i,o.include))||!o.includeSourceActions&&t&&Ne.Source.contains(t)||o.onlyIncludePreferredActions&&!e.isPreferred)}function k8(o,e,t){return!(!e.contains(o)||t&&e.contains(t))}class Yr{static fromUser(e,t){return!e||typeof e!="object"?new Yr(t.kind,t.apply,!1):new Yr(Yr.getKindFromUser(e,t.kind),Yr.getApplyFromUser(e,t.apply),Yr.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new Ne(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}}class Hoe{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return Boe(this,void 0,void 0,function*(){if(!((t=this.provider)===null||t===void 0)&&t.resolveCodeAction&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Vi(n)}i&&(this.action.edit=i.edit)}return this})}}var e1=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};const I8="editor.action.codeAction",E8="editor.action.refactor",zoe="editor.action.refactor.preview",N8="editor.action.sourceAction",H2="editor.action.organizeImports",z2="editor.action.fixAll";class um extends U{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:e},{action:t}){return Cn(e.diagnostics)?Cn(t.diagnostics)?um.codeActionsPreferredComparator(e,t):-1:Cn(t.diagnostics)?1:um.codeActionsPreferredComparator(e,t)}constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(um.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&Ne.QuickFix.contains(new Ne(e.kind))&&!!e.isPreferred)}}const PP={actions:[],documentation:void 0};function U2(o,e,t,i,n,s){var r;return e1(this,void 0,void 0,function*(){const a=i.filter||{},l={only:(r=a.include)===null||r===void 0?void 0:r.value,trigger:i.type},d=new A2(e,s),c=Uoe(o,e,a),h=new Z,u=c.map(p=>e1(this,void 0,void 0,function*(){try{n.report(p);const m=yield p.provideCodeActions(e,t,l,d.token);if(m&&h.add(m),d.token.isCancellationRequested)return PP;const _=((m==null?void 0:m.actions)||[]).filter(v=>v&&Voe(a,v)),b=joe(p,_,a.include);return{actions:_.map(v=>new Hoe(v,p)),documentation:b}}catch(m){if(Da(m))throw m;return Vi(m),PP}})),f=o.onDidChange(()=>{const p=o.all(e);Bn(p,c)||d.cancel()});try{const p=yield Promise.all(u),m=p.map(b=>b.actions).flat(),_=[...mg(p.map(b=>b.documentation)),...$oe(o,e,i,m)];return new um(m,_,h)}finally{f.dispose(),d.dispose()}})}function Uoe(o,e,t){return o.all(e).filter(i=>i.providedCodeActionKinds?i.providedCodeActionKinds.some(n=>Woe(t,new Ne(n))):!0)}function*$oe(o,e,t,i){var n,s,r;if(e&&i.length)for(const a of o.all(e))a._getAdditionalMenuItems&&(yield*(n=a._getAdditionalMenuItems)===null||n===void 0?void 0:n.call(a,{trigger:t.type,only:(r=(s=t.filter)===null||s===void 0?void 0:s.include)===null||r===void 0?void 0:r.value},i.map(l=>l.action)))}function joe(o,e,t){if(!o.documentation)return;const i=o.documentation.map(n=>({kind:new Ne(n.kind),command:n.command}));if(t){let n;for(const s of i)s.kind.contains(t)&&(n?n.kind.contains(s.kind)&&(n=s):n=s);if(n)return n==null?void 0:n.command}for(const n of e)if(n.kind){for(const s of i)if(s.kind.contains(new Ne(n.kind)))return s.command}}var t1;(function(o){o.OnSave="onSave",o.FromProblemsView="fromProblemsView",o.FromCodeActions="fromCodeActions"})(t1||(t1={}));function Koe(o,e,t,i,n=Ye.None){var s;return e1(this,void 0,void 0,function*(){const r=o.get(i0),a=o.get(ri),l=o.get(mo),d=o.get(_i);if(l.publicLog2("codeAction.applyCodeAction",{codeActionTitle:e.action.title,codeActionKind:e.action.kind,codeActionIsPreferred:!!e.action.isPreferred,reason:t}),yield e.resolve(n),!n.isCancellationRequested&&!(!((s=e.action.edit)===null||s===void 0)&&s.edits.length&&!(yield r.apply(e.action.edit,{editor:i==null?void 0:i.editor,label:e.action.title,quotableLabel:e.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:t!==t1.OnSave,showPreview:i==null?void 0:i.preview})).isApplied)&&e.action.command)try{yield a.executeCommand(e.action.command.id,...e.action.command.arguments||[])}catch(c){const h=qoe(c);d.error(typeof h=="string"?h:g("applyCodeActionFailed","An unknown error occurred while applying the code action"))}})}function qoe(o){return typeof o=="string"?o:o instanceof Error&&typeof o.message=="string"?o.message:void 0}st.registerCommand("_executeCodeActionProvider",function(o,e,t,i,n){return e1(this,void 0,void 0,function*(){if(!(e instanceof Ce))throw Po();const{codeActionProvider:s}=o.get(fe),r=o.get(jt).getModel(e);if(!r)throw Po();const a=ue.isISelection(t)?ue.liftSelection(t):y.isIRange(t)?r.validateRange(t):void 0;if(!a)throw Po();const l=typeof i=="string"?new Ne(i):void 0,d=yield U2(s,r,a,{type:1,triggerAction:ns.Default,filter:{includeSourceActions:!0,include:l}},Qh.None,Ye.None),c=[],h=Math.min(d.validActions.length,typeof n=="number"?n:0);for(let u=0;uu.action)}finally{setTimeout(()=>d.dispose(),100)}})});var Goe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Zoe=function(o,e){return function(t,i){e(t,i,o)}};let i1=class T8{constructor(e){this.keybindingService=e}getResolver(){const e=new $h(()=>this.keybindingService.getKeybindings().filter(t=>T8.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===H2?i={kind:Ne.SourceOrganizeImports.value}:t.command===z2&&(i={kind:Ne.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Yr.fromUser(i,{kind:Ne.None,apply:"never"}))}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.value);return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new Ne(e.kind);return t.filter(n=>n.kind.contains(i)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,s)=>n?n.kind.contains(s.kind)?s:n:s,void 0)}};i1.codeActionCommands=[E8,I8,N8,H2,z2];i1=Goe([Zoe(0,ei)],i1);M("symbolIcon.arrayForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.booleanForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},g("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.colorForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.constantForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},g("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},g("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},g("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},g("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},g("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.fileForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.folderForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},g("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},g("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.keyForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.keywordForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},g("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.moduleForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.namespaceForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.nullForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.numberForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.objectForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.operatorForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.packageForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.propertyForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.referenceForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.snippetForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.stringForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.structForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.textForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.typeParameterForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.unitForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},g("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));const M8=Object.freeze({kind:Ne.Empty,title:g("codeAction.widget.id.more","More Actions...")}),Yoe=Object.freeze([{kind:Ne.QuickFix,title:g("codeAction.widget.id.quickfix","Quick Fix...")},{kind:Ne.RefactorExtract,title:g("codeAction.widget.id.extract","Extract..."),icon:se.wrench},{kind:Ne.RefactorInline,title:g("codeAction.widget.id.inline","Inline..."),icon:se.wrench},{kind:Ne.RefactorRewrite,title:g("codeAction.widget.id.convert","Rewrite..."),icon:se.wrench},{kind:Ne.RefactorMove,title:g("codeAction.widget.id.move","Move..."),icon:se.wrench},{kind:Ne.SurroundWith,title:g("codeAction.widget.id.surround","Surround With..."),icon:se.symbolSnippet},{kind:Ne.Source,title:g("codeAction.widget.id.source","Source Action..."),icon:se.symbolFile},M8]);function Qoe(o,e,t){if(!e)return o.map(s=>({kind:"action",item:s,group:M8,disabled:!!s.action.disabled,label:s.action.disabled||s.action.title}));const i=Yoe.map(s=>({group:s,actions:[]}));for(const s of o){const r=s.action.kind?new Ne(s.action.kind):Ne.None;for(const a of i)if(a.group.kind.contains(r)){a.actions.push(s);break}}const n=[];for(const s of i)if(s.actions.length){n.push({kind:"header",group:s.group});for(const r of s.actions)n.push({kind:"action",item:r,group:s.group,label:r.action.title,disabled:!!r.action.disabled,keybinding:t(r.action)})}return n}var Xoe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Joe=function(o,e){return function(t,i){e(t,i,o)}};let Cs=class Kk{static get(e){return e.getContribution(Kk.ID)}constructor(e,t){this._messageWidget=new wn,this._messageListeners=new Z,this._editor=e,this._visible=Kk.MESSAGE_VISIBLE.bindTo(t)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){dn(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new OP(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new go(()=>this.closeMessage(),3e3));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(i?i.containsPosition(n.target.position)||this.closeMessage():i=new y(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(OP.fadeOut(this._messageWidget.value))}};Cs.ID="editor.contrib.messageController";Cs.MESSAGE_VISIBLE=new de("messageVisible",!1,g("messageVisible","Whether the editor is currently showing an inline message"));Cs=Xoe([Joe(1,Ee)],Cs);const ere=Ji.bindToContribution(Cs.get);ie(new ere({id:"leaveEditorMessage",precondition:Cs.MESSAGE_VISIBLE,handler:o=>o.closeMessage(),kbOpts:{weight:130,primary:9}}));let OP=class{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const s=document.createElement("div");s.classList.add("anchor","top"),this._domNode.appendChild(s);const r=document.createElement("div");r.classList.add("message"),r.textContent=n,this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};lt(Cs.ID,Cs,4);var A8=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},qk=function(o,e){return function(t,i){e(t,i,o)}};const R8="acceptSelectedCodeAction",P8="previewSelectedCodeAction";class tre{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){var n,s;i.text.textContent=(s=(n=e.group)===null||n===void 0?void 0:n.title)!==null&&s!==void 0?s:""}disposeTemplate(e){}}let Gk=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);const t=document.createElement("div");t.className="icon",e.append(t);const i=document.createElement("span");i.className="title",e.append(i);const n=new n0(e,Ps);return{container:e,icon:t,text:i,keybinding:n}}renderElement(e,t,i){var n,s,r;if(!((n=e.group)===null||n===void 0)&&n.icon?(i.icon.className=De.asClassName(e.group.icon),e.group.icon.color&&(i.icon.style.color=re(e.group.icon.color.id))):(i.icon.className=De.asClassName(se.lightBulb),i.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;i.text.textContent=O8(e.label),e.keybinding?(i.keybinding.set(e.keybinding),hs(i.keybinding.element)):On(i.keybinding.element);const a=(s=this._keybindingService.lookupKeybinding(R8))===null||s===void 0?void 0:s.getLabel(),l=(r=this._keybindingService.lookupKeybinding(P8))===null||r===void 0?void 0:r.getLabel();if(i.container.classList.toggle("option-disabled",e.disabled),e.disabled?i.container.title=e.label:a&&l?this._supportsPreview?i.container.title=g({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to apply, Shift+F2 to preview"']},"{0} to apply, {1} to preview",a,l):i.container.title=g({key:"label",comment:['placeholder is a keybinding, e.g "F2 to apply"']},"{0} to apply",a):i.container.title="",e.description){const d=new pl(q(i.container,X("span.label-description")));d.element.classList.add("action-list-description"),d.set(e.description)}}disposeTemplate(e){}};Gk=A8([qk(1,ei)],Gk);class ire extends UIEvent{constructor(){super("acceptSelectedAction")}}class FP extends UIEvent{constructor(){super("previewSelectedAction")}}let Zk=class extends U{constructor(e,t,i,n,s,r){super(),this._delegate=n,this._contextViewService=s,this._keybindingService=r,this._actionLineHeight=24,this._headerLineHeight=26,this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const a={getHeight:l=>l.kind==="header"?this._headerLineHeight:this._actionLineHeight,getTemplateId:l=>l.kind};this._list=this._register(new Uo(e,this.domNode,a,[new Gk(t,this._keybindingService),new tre],{keyboardSupport:!1,accessibilityProvider:{getAriaLabel:l=>{if(l.kind==="action"){let d=l.label?O8(l==null?void 0:l.label):"";return l.disabled&&(d=g({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",d,l.disabled)),d}return null},getWidgetAriaLabel:()=>g({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:l=>l.kind==="action"?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(Ig),this._register(this._list.onMouseClick(l=>this.onListClick(l))),this._register(this._list.onMouseOver(l=>this.onListHover(l))),this._register(this._list.onDidChangeFocus(()=>this._list.domFocus())),this._register(this._list.onDidChangeSelection(l=>this.onListSelection(l))),this._allMenuItems=i,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&e.kind==="action"}hide(e){this._delegate.onHide(e),this._contextViewService.hideContextView()}layout(e){const t=this._allMenuItems.filter(d=>d.kind==="header").length,n=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(n);const s=this._allMenuItems.map((d,c)=>{const h=document.getElementById(this._list.getElementID(c));if(h){h.style.width="auto";const u=h.getBoundingClientRect().width;return h.style.width="",u}return 0}),r=Math.max(...s,e),l=Math.min(n,document.body.clientHeight*.7);return this._list.layout(l,r),this.domNode.style.height=`${l}px`,this._list.domFocus(),r}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){const t=this._list.getFocus();if(t.length===0)return;const i=t[0],n=this._list.element(i);if(!this.focusCondition(n))return;const s=e?new FP:new ire;this._list.setSelection([i],s)}onListSelection(e){if(!e.elements.length)return;const t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof FP):this._list.setSelection([])}onListHover(e){this._list.setFocus(typeof e.index=="number"?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};Zk=A8([qk(4,xl),qk(5,ei)],Zk);function O8(o){return o.replace(/\r\n|\r|\n/g," ")}var nre=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},nL=function(o,e){return function(t,i){e(t,i,o)}};const Dh={Visible:new de("codeActionMenuVisible",!1,g("codeActionMenuVisible","Whether the action widget list is visible"))},tu=Je("actionWidgetService");let xh=class extends U{get isVisible(){return Dh.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,i){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=i,this._list=this._register(new wn)}show(e,t,i,n,s,r,a){const l=Dh.Visible.bindTo(this._contextKeyService),d=this._instantiationService.createInstance(Zk,e,t,i,n);this._contextViewService.showContextView({getAnchor:()=>s,render:c=>(l.set(!0),this._renderWidget(c,d,a??[])),onHide:c=>{l.reset(),this._onWidgetClosed(c)}},r,!1)}acceptSelected(e){var t;(t=this._list.value)===null||t===void 0||t.acceptSelected(e)}focusPrevious(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusPrevious()}focusNext(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusNext()}hide(){var e;(e=this._list.value)===null||e===void 0||e.hide(),this._list.clear()}_renderWidget(e,t,i){var n;const s=document.createElement("div");if(s.classList.add("action-widget"),e.appendChild(s),this._list.value=t,this._list.value)s.appendChild(this._list.value.domNode);else throw new Error("List has no value");const r=new Z,a=document.createElement("div"),l=e.appendChild(a);l.classList.add("context-view-block"),r.add(K(l,ae.MOUSE_DOWN,p=>p.stopPropagation()));const d=document.createElement("div"),c=e.appendChild(d);c.classList.add("context-view-pointerBlock"),r.add(K(c,ae.POINTER_MOVE,()=>c.remove())),r.add(K(c,ae.MOUSE_DOWN,()=>c.remove()));let h=0;if(i.length){const p=this._createActionBar(".action-widget-action-bar",i);p&&(s.appendChild(p.getContainer().parentElement),r.add(p),h=p.getContainer().offsetWidth)}const u=(n=this._list.value)===null||n===void 0?void 0:n.layout(h);s.style.width=`${u}px`;const f=r.add(fh(e));return r.add(f.onDidBlur(()=>this.hide())),r}_createActionBar(e,t){if(!t.length)return;const i=X(e),n=new fo(i);return n.push(t,{icon:!1,label:!0}),n}_onWidgetClosed(e){var t;(t=this._list.value)===null||t===void 0||t.hide(e)}};xh=nre([nL(0,xl),nL(1,Ee),nL(2,Me)],xh);ot(tu,xh,1);const c0=1100;Nn(class extends Yd{constructor(){super({id:"hideCodeActionWidget",title:{value:g("hideCodeActionWidget.title","Hide action widget"),original:"Hide action widget"},precondition:Dh.Visible,keybinding:{weight:c0,primary:9,secondary:[1033]}})}run(o){o.get(tu).hide()}});Nn(class extends Yd{constructor(){super({id:"selectPrevCodeAction",title:{value:g("selectPrevCodeAction.title","Select previous action"),original:"Select previous action"},precondition:Dh.Visible,keybinding:{weight:c0,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(o){const e=o.get(tu);e instanceof xh&&e.focusPrevious()}});Nn(class extends Yd{constructor(){super({id:"selectNextCodeAction",title:{value:g("selectNextCodeAction.title","Select next action"),original:"Select next action"},precondition:Dh.Visible,keybinding:{weight:c0,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(o){const e=o.get(tu);e instanceof xh&&e.focusNext()}});Nn(class extends Yd{constructor(){super({id:R8,title:{value:g("acceptSelected.title","Accept selected action"),original:"Accept selected action"},precondition:Dh.Visible,keybinding:{weight:c0,primary:3,secondary:[2132]}})}run(o){const e=o.get(tu);e instanceof xh&&e.acceptSelected()}});Nn(class extends Yd{constructor(){super({id:P8,title:{value:g("previewSelected.title","Preview selected action"),original:"Preview selected action"},precondition:Dh.Visible,keybinding:{weight:c0,primary:2051}})}run(o){const e=o.get(tu);e instanceof xh&&e.acceptSelected(!0)}});var sre=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ore=function(o,e){return function(t,i){e(t,i,o)}},sf;(function(o){o.Hidden={type:0};class e{constructor(i,n,s,r){this.actions=i,this.trigger=n,this.editorPosition=s,this.widgetPosition=r,this.type=1}}o.Showing=e})(sf||(sf={}));let n1=class F8 extends U{constructor(e,t,i,n){super(),this._editor=e,this._onClick=this._register(new O),this.onClick=this._onClick.event,this._state=sf.Hidden,this._domNode=X("div.lightBulbWidget"),this._register(kt.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(s=>{const r=this._editor.getModel();(this.state.type!==1||!r||this.state.editorPosition.lineNumber>=r.getLineCount())&&this.hide()})),this._register(YU(this._domNode,s=>{if(this.state.type!==1)return;this._editor.focus(),s.preventDefault();const{top:r,height:a}=Fi(this._domNode),l=this._editor.getOption(63);let d=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(s.buttons&1)===1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(s=>{s.hasChanged(61)&&!this._editor.getOption(61).enabled&&this.hide()})),this._register(_e.runAndSubscribe(n.onDidUpdateKeybindings,()=>{var s,r;this._preferredKbLabel=an((s=n.lookupKeybinding(i))===null||s===void 0?void 0:s.getLabel()),this._quickFixKbLabel=an((r=n.lookupKeybinding(t))===null||r===void 0?void 0:r.getLabel()),this._updateLightBulbTitleAndIcon()}))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();const n=this._editor.getOptions();if(!n.get(61).enabled)return this.hide();const s=this._editor.getModel();if(!s)return this.hide();const{lineNumber:r,column:a}=s.validatePosition(i),l=s.getOptions().tabSize,d=n.get(47),c=s.getLineContent(r),h=lw(c,l),u=d.spaceWidth*h>22,f=m=>m>2&&this._editor.getTopForLineNumber(m)===this._editor.getTopForLineNumber(m-1);let p=r;if(!u){if(r>1&&!f(r-1))p-=1;else if(!f(r+1))p+=1;else if(a*d.spaceWidth<22)return this.hide()}this.state=new sf.Showing(e,t,i,{position:{lineNumber:p,column:1},preference:F8._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state!==sf.Hidden&&(this.state=sf.Hidden,this._editor.layoutContentWidget(this))}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix&&(this._domNode.classList.remove(...De.asClassNameArray(se.lightBulb)),this._domNode.classList.add(...De.asClassNameArray(se.lightbulbAutofix)),this._preferredKbLabel)){this.title=g("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",this._preferredKbLabel);return}this._domNode.classList.remove(...De.asClassNameArray(se.lightbulbAutofix)),this._domNode.classList.add(...De.asClassNameArray(se.lightBulb)),this._quickFixKbLabel?this.title=g("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):this.title=g("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};n1._posPref=[0];n1=sre([ore(3,ei)],n1);var rre=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},vv=function(o,e){return function(t,i){e(t,i,o)}},sL=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})},are=function(o,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(o,t):n?n.value=t:e.set(o,t),t},lre=function(o,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!i:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(o):i?i.value:e.get(o)},gb;let Yk=class extends U{constructor(e,t,i,n,s,r,a,l){super(),this._editor=e,this.delegate=n,this._configurationService=r,this._actionWidgetService=a,this._commandService=l,this._activeCodeActions=this._register(new wn),gb.set(this,!1),this._showDisabled=!1,this._lightBulbWidget=new $h(()=>{const d=this._register(s.createInstance(n1,this._editor,t,i));return this._register(d.onClick(c=>this.showCodeActionList(c.actions,c,{includeDisabledActions:!1,fromLightbulb:!0}))),d}),this._resolver=s.createInstance(i1),this._register(this._editor.onDidLayoutChange(()=>this._actionWidgetService.hide()))}dispose(){are(this,gb,!0,"f"),super.dispose()}update(e){var t,i,n,s,r;return sL(this,void 0,void 0,function*(){if(e.type!==1){(t=this._lightBulbWidget.rawValue)===null||t===void 0||t.hide();return}let a;try{a=yield e.actions}catch(l){Oe(l);return}if(!lre(this,gb,"f"))if(this._lightBulbWidget.value.update(a,e.trigger,e.position),e.trigger.type===1){if(!((i=e.trigger.filter)===null||i===void 0)&&i.include){const d=this.tryGetValidActionToApply(e.trigger,a);if(d){try{this._lightBulbWidget.value.hide(),yield this.delegate.applyCodeAction(d,!1,!1)}finally{a.dispose()}return}if(e.trigger.context){const c=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,a);if(c&&c.action.disabled){(n=Cs.get(this._editor))===null||n===void 0||n.showMessage(c.action.disabled,e.trigger.context.position),a.dispose();return}}}const l=!!(!((s=e.trigger.filter)===null||s===void 0)&&s.include);if(e.trigger.context&&(!a.allActions.length||!l&&!a.validActions.length)){(r=Cs.get(this._editor))===null||r===void 0||r.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=a,a.dispose();return}this._activeCodeActions.value=a,this.showCodeActionList(a,this.toCoords(e.position),{includeDisabledActions:l,fromLightbulb:!1})}else this._actionWidgetService.isVisible?a.dispose():this._activeCodeActions.value=a})}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length&&(e.autoApply==="first"&&t.validActions.length===0||e.autoApply==="ifSingle"&&t.allActions.length===1))return t.allActions.find(({action:i})=>i.disabled)}tryGetValidActionToApply(e,t){if(t.validActions.length&&(e.autoApply==="first"&&t.validActions.length>0||e.autoApply==="ifSingle"&&t.validActions.length===1))return t.validActions[0]}showCodeActionList(e,t,i){return sL(this,void 0,void 0,function*(){const n=this._editor.getDomNode();if(!n)return;const s=i.includeDisabledActions&&(this._showDisabled||e.validActions.length===0)?e.allActions:e.validActions;if(!s.length)return;const r=W.isIPosition(t)?this.toCoords(t):t,a={onSelect:(l,d)=>sL(this,void 0,void 0,function*(){this.delegate.applyCodeAction(l,!0,d||!1),this._actionWidgetService.hide()}),onHide:()=>{var l;(l=this._editor)===null||l===void 0||l.focus()}};this._actionWidgetService.show("codeActionWidget",!0,Qoe(s,this._shouldShowHeaders(),this._resolver.getResolver()),a,r,n,this._getActionBarActions(e,t,i))})}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=Fi(this._editor.getDomNode()),n=i.left+t.left,s=i.top+t.top+t.height;return{x:n,y:s}}_shouldShowHeaders(){var e;const t=(e=this._editor)===null||e===void 0?void 0:e.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:t==null?void 0:t.uri})}_getActionBarActions(e,t,i){if(i.fromLightbulb)return[];const n=e.documentation.map(s=>{var r;return{id:s.id,label:s.title,tooltip:(r=s.tooltip)!==null&&r!==void 0?r:"",class:void 0,enabled:!0,run:()=>{var a;return this._commandService.executeCommand(s.id,...(a=s.commandArguments)!==null&&a!==void 0?a:[])}}});return i.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&n.push(this._showDisabled?{id:"hideMoreActions",label:g("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,i))}:{id:"showMoreActions",label:g("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,i))}),n}};gb=new WeakMap;Yk=rre([vv(4,Me),vv(5,at),vv(6,tu),vv(7,ri)],Yk);var oL=function(o,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!i:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(o):i?i.value:e.get(o)},dre=function(o,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(o,t):n?n.value=t:e.set(o,t),t},Ru;const B8=new de("supportedCodeAction","");class cre extends U{constructor(e,t,i,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=n,this._autoTriggerTimer=this._register(new go),this._register(this._markerService.onMarkerChanged(s=>this._onMarkerChanges(s))),this._register(this._editor.onDidChangeCursorPosition(()=>this._onCursorChange()))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some(i=>LN(i,t.uri))&&this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:ns.Default})},this._delay)}_onCursorChange(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:ns.Default})},this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=this._editor.getSelection();if(i.isEmpty()&&e.type===2){const{lineNumber:n,column:s}=i.getPosition(),r=t.getLineContent(n);if(r.length===0)return;if(s===1){if(/\s/.test(r[0]))return}else if(s===t.getLineMaxColumn(n)){if(/\s/.test(r[r.length-1]))return}else if(/\s/.test(r[s-2])&&/\s/.test(r[s-1]))return}return i}_createEventAndSignalChange(e,t){const i=this._editor.getModel();if(!t||!i){this._signalChange(void 0);return}const n={trigger:e,selection:t,position:t.getStartPosition()};return this._signalChange(n),n}}var Rc;(function(o){o.Empty={type:0};class e{constructor(i,n,s,r){this.trigger=i,this.rangeOrSelection=n,this.position=s,this._cancellablePromise=r,this.type=1,this.actions=r.catch(a=>{if(Da(a))return hre;throw a})}cancel(){this._cancellablePromise.cancel()}}o.Triggered=e})(Rc||(Rc={}));const hre={allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1};class ure extends U{constructor(e,t,i,n,s){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=s,this._codeActionOracle=this._register(new wn),this._state=Rc.Empty,this._onDidChangeState=this._register(new O),this.onDidChangeState=this._onDidChangeState.event,Ru.set(this,!1),this._supportedCodeActions=B8.bindTo(n),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._update()}dispose(){oL(this,Ru,"f")||(dre(this,Ru,!0,"f"),super.dispose(),this.setState(Rc.Empty,!0))}_update(){if(oL(this,Ru,"f"))return;this._codeActionOracle.value=void 0,this.setState(Rc.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(86)){const t=[];for(const i of this._registry.all(e))Array.isArray(i.providedCodeActionKinds)&&t.push(...i.providedCodeActionKinds);this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new cre(this._editor,this._markerService,i=>{var n;if(!i){this.setState(Rc.Empty);return}const s=Wi(r=>U2(this._registry,e,i.selection,i.trigger,Qh.None,r));i.trigger.type===1&&((n=this._progressService)===null||n===void 0||n.showWhile(s,250)),this.setState(new Rc.Triggered(i.trigger,i.selection,i.position,s))},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:ns.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;(t=this._codeActionOracle.value)===null||t===void 0||t.trigger(e)}setState(e,t){e!==this._state&&(this._state.type===1&&this._state.cancel(),this._state=e,!t&&!oL(this,Ru,"f")&&this._onDidChangeState.fire(e))}}Ru=new WeakMap;var fre=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sp=function(o,e){return function(t,i){e(t,i,o)}},gre=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};function h0(o){return oe.regex(B8.keys()[0],new RegExp("(\\s|^)"+Hs(o.value)+"\\b"))}function W8(o,e,t,i){const n=Yr.fromUser(e,{kind:Ne.Refactor,apply:"never"});return iu(o,typeof(e==null?void 0:e.kind)=="string"?n.preferred?g("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",e.kind):g("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",e.kind):n.preferred?g("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):g("editor.action.refactor.noneMessage","No refactorings available"),{include:Ne.Refactor.contains(n.kind)?n.kind:Ne.None,onlyIncludePreferredActions:n.preferred},n.apply,t,i)}const Vw={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:g("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:g("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[g("args.schema.apply.first","Always apply the first returned code action."),g("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),g("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:g("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};let kh=class V8 extends U{static get(e){return e.getContribution(V8.ID)}constructor(e,t,i,n,s,r){super(),this._instantiationService=s,this._editor=e,this._model=this._register(new ure(this._editor,r.codeActionProvider,t,i,n)),this._register(this._model.onDidChangeState(a=>this.update(a))),this._ui=new $h(()=>this._register(s.createInstance(Yk,e,Tg.Id,u0.Id,{applyCodeAction:(a,l,d)=>gre(this,void 0,void 0,function*(){try{yield this._applyCodeAction(a,d)}finally{l&&this._trigger({type:2,triggerAction:ns.QuickFix,filter:{}})}})})))}update(e){this._ui.value.update(e)}showCodeActions(e,t,i){return this._ui.value.showCodeActionList(t,i,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,i,n,s){var r;if(!this._editor.hasModel())return;(r=Cs.get(this._editor))===null||r===void 0||r.closeMessage();const a=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:i,autoApply:n,context:{notAvailableMessage:e,position:a},preview:s})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e,t){return this._instantiationService.invokeFunction(Koe,e,t1.FromCodeActions,{preview:t,editor:this._editor})}};kh.ID="editor.contrib.codeActionController";kh=fre([sp(1,Ta),sp(2,Ee),sp(3,ec),sp(4,Me),sp(5,fe)],kh);function iu(o,e,t,i,n=!1,s=ns.Default){if(o.hasModel()){const r=kh.get(o);r==null||r.manualTriggerAtCurrentPosition(e,s,t,i,n)}}class Tg extends ce{constructor(){super({id:Tg.Id,label:g("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:oe.and(T.writable,T.hasCodeActionsProvider),kbOpts:{kbExpr:T.editorTextFocus,primary:2132,weight:100}})}run(e,t){return iu(t,g("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,!1,ns.QuickFix)}}Tg.Id="editor.action.quickFix";class pre extends Ji{constructor(){super({id:I8,precondition:oe.and(T.writable,T.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:Vw}]}})}runEditorCommand(e,t,i){const n=Yr.fromUser(i,{kind:Ne.Empty,apply:"ifSingle"});return iu(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?g("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):g("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):n.preferred?g("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):g("editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}}class mre extends ce{constructor(){super({id:E8,label:g("refactor.label","Refactor..."),alias:"Refactor...",precondition:oe.and(T.writable,T.hasCodeActionsProvider),kbOpts:{kbExpr:T.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:oe.and(T.writable,h0(Ne.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:Vw}]}})}run(e,t,i){return W8(t,i,!1,ns.Refactor)}}class _re extends ce{constructor(){super({id:zoe,label:g("refactor.preview.label","Refactor with Preview..."),alias:"Refactor Preview...",precondition:oe.and(T.writable,T.hasCodeActionsProvider),description:{description:"Refactor Preview...",args:[{name:"args",schema:Vw}]}})}run(e,t,i){return W8(t,i,!0,ns.RefactorPreview)}}class vre extends ce{constructor(){super({id:N8,label:g("source.label","Source Action..."),alias:"Source Action...",precondition:oe.and(T.writable,T.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:oe.and(T.writable,h0(Ne.Source))},description:{description:"Source Action...",args:[{name:"args",schema:Vw}]}})}run(e,t,i){const n=Yr.fromUser(i,{kind:Ne.Source,apply:"never"});return iu(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?g("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):g("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):n.preferred?g("editor.action.source.noneMessage.preferred","No preferred source actions available"):g("editor.action.source.noneMessage","No source actions available"),{include:Ne.Source.contains(n.kind)?n.kind:Ne.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply,void 0,ns.SourceAction)}}class bre extends ce{constructor(){super({id:H2,label:g("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:oe.and(T.writable,h0(Ne.SourceOrganizeImports)),kbOpts:{kbExpr:T.editorTextFocus,primary:1581,weight:100}})}run(e,t){return iu(t,g("editor.action.organize.noneMessage","No organize imports action available"),{include:Ne.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",void 0,ns.OrganizeImports)}}class Cre extends ce{constructor(){super({id:z2,label:g("fixAll.label","Fix All"),alias:"Fix All",precondition:oe.and(T.writable,h0(Ne.SourceFixAll))})}run(e,t){return iu(t,g("fixAll.noneMessage","No fix all action available"),{include:Ne.SourceFixAll,includeSourceActions:!0},"ifSingle",void 0,ns.FixAll)}}class u0 extends ce{constructor(){super({id:u0.Id,label:g("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:oe.and(T.writable,h0(Ne.QuickFix)),kbOpts:{kbExpr:T.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}run(e,t){return iu(t,g("editor.action.autoFix.noneMessage","No auto fixes available"),{include:Ne.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",void 0,ns.AutoFix)}}u0.Id="editor.action.autoFix";lt(kh.ID,kh,3);J(Tg);J(mre);J(_re);J(vre);J(bre);J(u0);J(Cre);ie(new pre);$t.as(ka.Configuration).registerConfiguration(Object.assign(Object.assign({},e2),{properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:g("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}));var BP=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Qk{constructor(){this.lenses=[],this._disposables=new Z}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}function H8(o,e,t){return BP(this,void 0,void 0,function*(){const i=o.ordered(e),n=new Map,s=new Qk,r=i.map((a,l)=>BP(this,void 0,void 0,function*(){n.set(a,l);try{const d=yield Promise.resolve(a.provideCodeLenses(e,t));d&&s.add(d,a)}catch(d){Vi(d)}}));return yield Promise.all(r),s.lenses=s.lenses.sort((a,l)=>a.symbol.range.startLineNumberl.symbol.range.startLineNumber?1:n.get(a.provider)n.get(l.provider)?1:a.symbol.range.startColumnl.symbol.range.startColumn?1:0),s})}st.registerCommand("_executeCodeLensProvider",function(o,...e){let[t,i]=e;_t(Ce.isUri(t)),_t(typeof i=="number"||!i);const{codeLensProvider:n}=o.get(fe),s=o.get(jt).getModel(t);if(!s)throw Po();const r=[],a=new Z;return H8(n,s,Ye.None).then(l=>{a.add(l);const d=[];for(const c of l.lenses)i==null||c.symbol.command?r.push(c.symbol):i-- >0&&c.provider.resolveCodeLens&&d.push(Promise.resolve(c.provider.resolveCodeLens(s,c.symbol,Ye.None)).then(h=>r.push(h||c.symbol)));return Promise.all(d)}).then(()=>r).finally(()=>{setTimeout(()=>a.dispose(),100)})});var wre=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Sre=function(o,e){return function(t,i){e(t,i,o)}};const z8=Je("ICodeLensCache");class WP{constructor(e,t){this.lineCount=e,this.data=t}}let Xk=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new Xd(20,.75);const t="codelens/cache";nl(()=>e.remove(t,1));const i="codelens/cache2",n=e.get(i,1,"{}");this._deserialize(n),pa(e.onWillSaveState)(s=>{s.reason===OC.SHUTDOWN&&e.store(i,this._serialize(),1,1)})}put(e,t){const i=t.lenses.map(r=>{var a;return{range:r.symbol.range,command:r.symbol.command&&{id:"",title:(a=r.symbol.command)===null||a===void 0?void 0:a.title}}}),n=new Qk;n.add({lenses:i,dispose:()=>{}},this._fakeProvider);const s=new WP(e.getLineCount(),n);this._cache.set(e.uri.toString(),s)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const n=new Set;for(const s of i.data.lenses)n.add(s.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...n.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const i in t){const n=t[i],s=[];for(const a of n.lines)s.push({range:new y(a,1,a,11)});const r=new Qk;r.add({lenses:s,dispose(){}},this._fakeProvider),this._cache.set(i,new WP(n.lineCount,r))}}catch{}}};Xk=wre([Sre(0,jo)],Xk);ot(z8,Xk,1);class yre{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){this._lastHeight===void 0?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return this._lastHeight!==0&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class Hw{constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id=`codelens.widget-${Hw._idPool++}`,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();const i=[];let n=!1;for(let s=0;s{d.symbol.command&&l.push(d.symbol),i.addDecoration({range:d.symbol.range,options:VP},h=>this._decorationIds[c]=h),a?a=y.plusRange(a,d.symbol.range):a=y.lift(d.symbol.range)}),this._viewZone=new yre(a.startLineNumber-1,s,r),this._viewZoneId=n.addZone(this._viewZone),l.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(l,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new Hw(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t==null||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),n=this._data[t].symbol;return!!(i&&y.isEmpty(n.range)===i.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((i,n)=>{t.addDecoration({range:i.symbol.range,options:VP},s=>this._decorationIds[n]=s)})}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},op=function(o,e){return function(t,i){e(t,i,o)}},Dre=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};let og=class{constructor(e,t,i,n,s,r){this._editor=e,this._languageFeaturesService=t,this._commandService=n,this._notificationService=s,this._codeLensCache=r,this._disposables=new Z,this._localToDispose=new Z,this._lenses=[],this._oldCodeLensModels=new Z,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new wt(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(a=>{(a.hasChanged(47)||a.hasChanged(16)||a.hasChanged(15))&&this._updateLensStyle(),a.hasChanged(14)&&this._onModelChange()})),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),(e=this._currentCodeLensModel)===null||e===void 0||e.dispose()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(63)/this._editor.getOption(49));let t=this._editor.getOption(16);return(!t||t<5)&&(t=this._editor.getOption(49)*.9|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(15),n=this._editor.getOption(47),{style:s}=this._editor.getContainerDomNode();s.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),s.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),s.setProperty("--vscode-editorCodeLens-fontFeatureSettings",n.fontFeatureSettings),i&&(s.setProperty("--vscode-editorCodeLens-fontFamily",i),s.setProperty("--vscode-editorCodeLens-fontFamilyDefault",ps.fontFamily)),this._editor.changeViewZones(r=>{for(const a of this._lenses)a.updateHeight(e,r)})}_localDispose(){var e,t,i;(e=this._getCodeLensModelPromise)===null||e===void 0||e.cancel(),this._getCodeLensModelPromise=void 0,(t=this._resolveCodeLensesPromise)===null||t===void 0||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),(i=this._currentCodeLensModel)===null||i===void 0||i.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e||!this._editor.getOption(14))return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e)){t&&this._localToDispose.add(ch(()=>{const n=this._codeLensCache.get(e);t===n&&(this._codeLensCache.delete(e),this._onModelChange())},30*1e3));return}for(const n of this._languageFeaturesService.codeLensProvider.all(e))if(typeof n.onDidChange=="function"){const s=n.onDidChange(()=>i.schedule());this._localToDispose.add(s)}const i=new wt(()=>{var n;const s=Date.now();(n=this._getCodeLensModelPromise)===null||n===void 0||n.cancel(),this._getCodeLensModelPromise=Wi(r=>H8(this._languageFeaturesService.codeLensProvider,e,r)),this._getCodeLensModelPromise.then(r=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=r,this._codeLensCache.put(e,r);const a=this._provideCodeLensDebounce.update(e,Date.now()-s);i.delay=a,this._renderCodeLensSymbols(r),this._resolveCodeLensesInViewportSoon()},Oe)},this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add(Pe(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._editor.changeDecorations(n=>{this._editor.changeViewZones(s=>{const r=[];let a=-1;this._lenses.forEach(d=>{!d.isValid()||a===d.getLineNumber()?r.push(d):(d.update(s),a=d.getLineNumber())});const l=new rL;r.forEach(d=>{d.dispose(l,s),this._lenses.splice(this._lenses.indexOf(d),1)}),l.commit(n)})}),i.schedule()})),this._localToDispose.add(this._editor.onDidFocusEditorWidget(()=>{i.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(n=>{n.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(Pe(()=>{if(this._editor.getModel()){const n=Ca.capture(this._editor);this._editor.changeDecorations(s=>{this._editor.changeViewZones(r=>{this._disposeAllLenses(s,r)})}),n.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(n=>{if(n.target.type!==9)return;let s=n.target.element;if((s==null?void 0:s.tagName)==="SPAN"&&(s=s.parentElement),(s==null?void 0:s.tagName)==="A")for(const r of this._lenses){const a=r.getCommand(s);if(a){this._commandService.executeCommand(a.id,...a.arguments||[]).catch(l=>this._notificationService.error(l));break}}})),i.schedule()}_disposeAllLenses(e,t){const i=new rL;for(const n of this._lenses)n.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),i=[];let n;for(const a of e.lenses){const l=a.symbol.range.startLineNumber;l<1||l>t||(n&&n[n.length-1].symbol.range.startLineNumber===l?n.push(a):(n=[a],i.push(n)))}if(!i.length&&!this._lenses.length)return;const s=Ca.capture(this._editor),r=this._getLayoutInfo();this._editor.changeDecorations(a=>{this._editor.changeViewZones(l=>{const d=new rL;let c=0,h=0;for(;hthis._resolveCodeLensesInViewportSoon())),c++,h++)}for(;cthis._resolveCodeLensesInViewportSoon())),h++;d.commit(a)})}),s.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;(e=this._resolveCodeLensesPromise)===null||e===void 0||e.cancel(),this._resolveCodeLensesPromise=void 0;const t=this._editor.getModel();if(!t)return;const i=[],n=[];if(this._lenses.forEach(a=>{const l=a.computeIfNecessary(t);l&&(i.push(l),n.push(a))}),i.length===0)return;const s=Date.now(),r=Wi(a=>{const l=i.map((d,c)=>{const h=new Array(d.length),u=d.map((f,p)=>!f.symbol.command&&typeof f.provider.resolveCodeLens=="function"?Promise.resolve(f.provider.resolveCodeLens(t,f.symbol,a)).then(m=>{h[p]=m},Vi):(h[p]=f.symbol,Promise.resolve(void 0)));return Promise.all(u).then(()=>{!a.isCancellationRequested&&!n[c].isDisposed()&&n[c].updateCommands(h)})});return Promise.all(l)});this._resolveCodeLensesPromise=r,this._resolveCodeLensesPromise.then(()=>{const a=this._resolveCodeLensesDebounce.update(t,Date.now()-s);this._resolveCodeLensesScheduler.delay=a,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},a=>{Oe(a),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}getModel(){return this._currentCodeLensModel}};og.ID="css.editor.codeLens";og=Lre([op(1,fe),op(2,Co),op(3,ri),op(4,_i),op(5,z8)],og);lt(og.ID,og,1);J(class extends ce{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:T.hasCodeLensProvider,label:g("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(e,t){return Dre(this,void 0,void 0,function*(){if(!t.hasModel())return;const i=e.get(Ma),n=e.get(ri),s=e.get(_i),r=t.getSelection().positionLineNumber,a=t.getContribution(og.ID);if(!a)return;const l=a.getModel();if(!l)return;const d=[];for(const h of l.lenses)h.symbol.command&&h.symbol.range.startLineNumber===r&&d.push({label:h.symbol.command.title,command:h.symbol.command});if(d.length===0)return;const c=yield i.pick(d,{canPickMany:!1});if(c){if(l.isDisposed)return yield n.executeCommand(this.id);try{yield n.executeCommand(c.command.id,...c.command.arguments||[])}catch(h){s.error(h)}}})}});function xre(o,e,t){const i=[],s=o.ordered(e).reverse().map(r=>Promise.resolve(r.provideDocumentColors(e,t)).then(a=>{if(Array.isArray(a))for(const l of a)i.push({colorInfo:l,provider:r})}));return Promise.all(s).then(()=>i)}function zP(o,e,t,i){return Promise.resolve(t.provideColorPresentations(o,e,i))}st.registerCommand("_executeDocumentColorProvider",function(o,...e){const[t]=e;if(!(t instanceof Ce))throw Po();const{colorProvider:i}=o.get(fe),n=o.get(jt).getModel(t);if(!n)throw Po();const s=[],a=i.ordered(n).reverse().map(l=>Promise.resolve(l.provideDocumentColors(n,Ye.None)).then(d=>{if(Array.isArray(d))for(const c of d)s.push({range:c.range,color:[c.color.red,c.color.green,c.color.blue,c.color.alpha]})}));return Promise.all(a).then(()=>s)});st.registerCommand("_executeColorPresentationProvider",function(o,...e){const[t,i]=e,{uri:n,range:s}=i;if(!(n instanceof Ce)||!Array.isArray(t)||t.length!==4||!y.isIRange(s))throw Po();const[r,a,l,d]=t,{colorProvider:c}=o.get(fe),h=o.get(jt).getModel(n);if(!h)throw Po();const u={range:s,color:{red:r,green:a,blue:l,alpha:d}},f=[],m=c.ordered(h).reverse().map(_=>Promise.resolve(_.provideColorPresentations(h,u,Ye.None)).then(b=>{Array.isArray(b)&&f.push(...b)}));return Promise.all(m).then(()=>f)});var kre=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},aL=function(o,e){return function(t,i){e(t,i,o)}},Ire=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};const U8=Object.create({});let Ih=class $8 extends U{constructor(e,t,i,n){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=i,this._localToDispose=this._register(new Z),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new q_(this._editor),this._colorDecorationClassRefs=this._register(new Z),this._debounceInformation=n.for(i.colorProvider,"Document Colors",{min:$8.RECOMPUTE_TIME}),this._register(e.onDidChangeModel(()=>{this._isEnabled=this.isEnabled(),this.onModelChanged()})),this._register(e.onDidChangeModelLanguage(()=>this.onModelChanged())),this._register(i.colorProvider.onDidChange(()=>this.onModelChanged())),this._register(e.onDidChangeConfiguration(s=>{const r=this._isEnabled;this._isEnabled=this.isEnabled(),(r!==this._isEnabled||s.hasChanged(18))&&(this._isEnabled?this.onModelChanged():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isEnabled=this.isEnabled(),this.onModelChanged()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&typeof i=="object"){const n=i.colorDecorators;if(n&&n.enable!==void 0&&!n.enable)return n.enable}return this._editor.getOption(17)}getDecoratorLimit(){return this._editor.getOption(18)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}onModelChanged(){if(this.stop(),!this._isEnabled)return;const e=this._editor.getModel();!e||!this._languageFeaturesService.colorProvider.has(e)||(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new go,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(e)))})),this.beginCompute())}beginCompute(){this._computePromise=Wi(e=>Ire(this,void 0,void 0,function*(){const t=this._editor.getModel();if(!t)return Promise.resolve([]);const i=new ts(!1),n=yield xre(this._languageFeaturesService.colorProvider,t,e);return this._debounceInformation.update(t,i.elapsed()),n})),this._computePromise.then(e=>{this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null},Oe)}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map(i=>({range:{startLineNumber:i.colorInfo.range.startLineNumber,startColumn:i.colorInfo.range.startColumn,endLineNumber:i.colorInfo.range.endLineNumber,endColumn:i.colorInfo.range.endColumn},options:Re.EMPTY}));this._editor.changeDecorations(i=>{this._decorationsIds=i.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((n,s)=>this._colorDatas.set(n,e[s]))})}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[];for(let i=0;ithis._colorDatas.has(n.id));return i.length===0?null:this._colorDatas.get(i[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};Ih.ID="editor.contrib.colorDetector";Ih.RECOMPUTE_TIME=1e3;Ih=kre([aL(1,at),aL(2,fe),aL(3,Co)],Ih);lt(Ih.ID,Ih,1);class Ere{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new O,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new O,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let i=-1;for(let n=0;n{this.backgroundColor=r.getColor(iC)||H.white})),this._register(K(this.pickedColorNode,ae.CLICK,()=>this.model.selectNextColorPresentation())),this._register(K(s,ae.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this.pickedColorNode.style.backgroundColor=H.Format.CSS.format(t.color)||"",this.pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){this.pickedColorNode.style.backgroundColor=H.Format.CSS.format(e)||"",this.pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:"",this.pickedColorNode.prepend(cr(".codicon.codicon-color-mode"))}}class Tre extends U{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this.domNode=cr(".colorpicker-body"),q(e,this.domNode),this.saturationBox=new Mre(this.domNode,this.model,this.pixelRatio),this._register(this.saturationBox),this._register(this.saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this.saturationBox.onColorFlushed(this.flushColor,this)),this.opacityStrip=new Are(this.domNode,this.model),this._register(this.opacityStrip),this._register(this.opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this.opacityStrip.onColorFlushed(this.flushColor,this)),this.hueStrip=new Rre(this.domNode,this.model),this._register(this.hueStrip),this._register(this.hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this.hueStrip.onColorFlushed(this.flushColor,this))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const i=this.model.color.hsva;this.model.color=new H(new Jr(i.h,e,t,i.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new H(new Jr(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,i=(1-e)*360;this.model.color=new H(new Jr(i===360?0:i,t.s,t.v,t.a))}layout(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()}}class Mre extends U{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,this.domNode=cr(".saturation-wrap"),q(e,this.domNode),this.canvas=document.createElement("canvas"),this.canvas.className="saturation-box",q(this.domNode,this.canvas),this.selection=cr(".saturation-selection"),q(this.domNode,this.selection),this.layout(),this._register(K(this.domNode,ae.POINTER_DOWN,n=>this.onPointerDown(n))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new Lg);const t=Fi(this.domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,n=>this.onDidChangePosition(n.pageX-t.left,n.pageY-t.top),()=>null);const i=K(document,ae.POINTER_UP,()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(e,t){const i=Math.max(0,Math.min(1,e/this.width)),n=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,n),this._onDidChange.fire({s:i,v:n})}layout(){this.width=this.domNode.offsetWidth,this.height=this.domNode.offsetHeight,this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new H(new Jr(e.h,1,1,1)),i=this.canvas.getContext("2d"),n=i.createLinearGradient(0,0,this.canvas.width,0);n.addColorStop(0,"rgba(255, 255, 255, 1)"),n.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),n.addColorStop(1,"rgba(255, 255, 255, 0)");const s=i.createLinearGradient(0,0,0,this.canvas.height);s.addColorStop(0,"rgba(0, 0, 0, 0)"),s.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this.canvas.width,this.canvas.height),i.fillStyle=H.Format.CSS.format(t),i.fill(),i.fillStyle=n,i.fill(),i.fillStyle=s,i.fill()}paintSelection(e,t){this.selection.style.left=`${e*this.width}px`,this.selection.style.top=`${this.height-t*this.height}px`}onDidChangeColor(){this.monitor&&this.monitor.isMonitoring()||this.paint()}}class j8 extends U{constructor(e,t){super(),this.model=t,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,this.domNode=q(e,cr(".strip")),this.overlay=q(this.domNode,cr(".overlay")),this.slider=q(this.domNode,cr(".slider")),this.slider.style.top="0px",this._register(K(this.domNode,ae.POINTER_DOWN,i=>this.onPointerDown(i))),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._register(new Lg),i=Fi(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,s=>this.onDidChangeTop(s.pageY-i.top),()=>null);const n=K(document,ae.POINTER_UP,()=>{this._onColorFlushed.fire(),n.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")},!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=`${(1-e)*this.height}px`}}class Are extends j8{constructor(e,t){super(e,t),this.domNode.classList.add("opacity-strip"),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){const{r:t,g:i,b:n}=e.rgba,s=new H(new nt(t,i,n,1)),r=new H(new nt(t,i,n,0));this.overlay.style.background=`linear-gradient(to bottom, ${s} 0%, ${r} 100%)`}getValue(e){return e.hsva.a}}class Rre extends j8{constructor(e,t){super(e,t),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class Pre extends vo{constructor(e,t,i,n){super(),this.model=t,this.pixelRatio=i,this._register(Pf.onDidChange(()=>this.layout()));const s=cr(".colorpicker-widget");e.appendChild(s);const r=new Nre(s,this.model,n);this.body=new Tre(s,this.model,this.pixelRatio),this._register(r),this._register(this.body)}layout(){this.body.layout()}}var Ore=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Fre=function(o,e){return function(t,i){e(t,i,o)}},UP=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Bre{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let Jk=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=1}computeSync(e,t){return[]}computeAsync(e,t,i){return pi.fromPromise(this._computeAsync(e,t,i))}_computeAsync(e,t,i){return UP(this,void 0,void 0,function*(){if(!this._editor.hasModel())return[];const n=Ih.get(this._editor);if(!n)return[];for(const s of t){if(!n.isColorDecoration(s))continue;const r=n.getColorData(s.range.getStartPosition());if(r)return[yield this._createColorHover(this._editor.getModel(),r.colorInfo,r.provider)]}return[]})}_createColorHover(e,t,i){return UP(this,void 0,void 0,function*(){const n=e.getValueInRange(t.range),{red:s,green:r,blue:a,alpha:l}=t.color,d=new nt(Math.round(s*255),Math.round(r*255),Math.round(a*255),l),c=new H(d),h=yield zP(e,t,i,Ye.None),u=new Ere(c,[],0);return u.colorPresentations=h||[],u.guessColorPresentation(c,n),new Bre(this,y.lift(t.range),u,i)})}renderHoverParts(e,t){if(t.length===0||!this._editor.hasModel())return U.None;const i=new Z,n=t[0],s=this._editor.getModel(),r=n.model,a=i.add(new Pre(e.fragment,r,this._editor.getOption(136),this._themeService));e.setColorPicker(a);let l=new y(n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn);const d=()=>{let h,u;if(r.presentation.textEdit){h=[r.presentation.textEdit],u=new y(r.presentation.textEdit.range.startLineNumber,r.presentation.textEdit.range.startColumn,r.presentation.textEdit.range.endLineNumber,r.presentation.textEdit.range.endColumn);const f=this._editor.getModel()._setTrackedRange(null,u,3);this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",h),u=this._editor.getModel()._getTrackedRange(f)||u}else h=[{range:l,text:r.presentation.label,forceMoveMarkers:!1}],u=l.setEndPosition(l.endLineNumber,l.startColumn+r.presentation.label.length),this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",h);r.presentation.additionalTextEdits&&(h=[...r.presentation.additionalTextEdits],this._editor.executeEdits("colorpicker",h),e.hide()),this._editor.pushUndoStop(),l=u},c=h=>zP(s,{range:l,color:{red:h.rgba.r/255,green:h.rgba.g/255,blue:h.rgba.b/255,alpha:h.rgba.a}},n.provider,Ye.None).then(u=>{r.colorPresentations=u||[]});return i.add(r.onColorFlushed(h=>{c(h).then(d)})),i.add(r.onDidChangeColor(c)),i}};Jk=Ore([Fre(1,Hi)],Jk);function eI(o,e){return!!o[e]}class lL{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=eI(e.event,t.triggerModifier),this.hasSideBySideModifier=eI(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class $P{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=eI(e,t.triggerModifier)}}class bv{constructor(e,t,i,n){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=n}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function jP(o){return o==="altKey"?Ke?new bv(57,"metaKey",6,"altKey"):new bv(5,"ctrlKey",6,"altKey"):Ke?new bv(6,"altKey",57,"metaKey"):new bv(6,"altKey",5,"ctrlKey")}class zw extends U{constructor(e,t){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new O),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new O),this.onExecute=this._onExecute.event,this._onCancel=this._register(new O),this.onCancel=this._onCancel.event,this._editor=e,this._alwaysFireExecuteOnMouseUp=t,this._opts=jP(this._editor.getOption(74)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(i=>{if(i.hasChanged(74)){const n=jP(this._editor.getOption(74));if(this._opts.equals(n))return;this._opts=n,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(i=>this._onEditorMouseMove(new lL(i,this._opts)))),this._register(this._editor.onMouseDown(i=>this._onEditorMouseDown(new lL(i,this._opts)))),this._register(this._editor.onMouseUp(i=>this._onEditorMouseUp(new lL(i,this._opts)))),this._register(this._editor.onKeyDown(i=>this._onEditorKeyDown(new $P(i,this._opts)))),this._register(this._editor.onKeyUp(i=>this._onEditorKeyUp(new $P(i,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(i=>this._onDidChangeCursorSelection(i))),this._register(this._editor.onDidChangeModel(i=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(i=>{(i.scrollTopChanged||i.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=e.target.position?e.target.position.lineNumber:0}_onEditorMouseUp(e){const t=e.target.position?e.target.position.lineNumber:0;(this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t||this._alwaysFireExecuteOnMouseUp)&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}var Wre=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Wa=function(o,e){return function(t,i){e(t,i,o)}};let Bd=class extends Gf{constructor(e,t,i,n,s,r,a,l,d,c,h,u){super(e,Object.assign(Object.assign({},i.getRawOptions()),{overflowWidgetsDomNode:i.getOverflowWidgetsDomNode()}),{},n,s,r,a,l,d,c,h,u),this._parentEditor=i,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(i.onDidChangeConfiguration(f=>this._onParentConfigurationChanged(f)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){B_(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};Bd=Wre([Wa(3,Me),Wa(4,ut),Wa(5,ri),Wa(6,Ee),Wa(7,Hi),Wa(8,_i),Wa(9,xa),Wa(10,ui),Wa(11,fe)],Bd);const KP=new H(new nt(0,122,204)),Vre={showArrow:!0,showFrame:!0,className:"",frameColor:KP,arrowColor:KP,keepEditorSelection:!1},Hre="vs.editor.contrib.zoneWidget";class zre{constructor(e,t,i,n,s,r){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=n,this._onDomNodeTop=s,this._onComputedHeight=r}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class Ure{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class Uw{constructor(e){this._editor=e,this._ruleName=Uw._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),UM(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){UM(this._ruleName),ox(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px; margin-left: -${this._height}px; `)}show(e){e.column===1&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:y.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}Uw._IdGenerator=new YN(".arrow-decoration-");class $re{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new Z,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=qa(t),B_(this.options,Vre,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(i=>{const n=this._getWidth(i);this.domNode.style.width=n+"px",this.domNode.style.left=this._getLeft(i)+"px",this._onWidth(n)}))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null}),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new Uw(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&e.minimap.minimapLeft===0?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){var t;if(this.domNode.style.height=`${e}px`,this.container){const i=e-this._decoratingElementsHeight();this.container.style.height=`${i}px`;const n=this.editor.getLayoutInfo();this._doLayout(i,this._getWidth(n))}(t=this._resizeSash)===null||t===void 0||t.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){const i=y.isIRange(e)?y.lift(e):y.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId.set([{range:i,options:Re.EMPTY}])}hide(){var e;this._viewZone&&(this.editor.changeViewZones(t=>{this._viewZone&&t.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),(e=this._arrow)===null||e===void 0||e.hide()}_decoratingElementsHeight(){const e=this.editor.getOption(63);let t=0;if(this.options.showArrow){const i=Math.round(e/3);t+=2*i}if(this.options.showFrame){const i=Math.round(e/9);t+=2*i}return t}_showImpl(e,t){const i=e.getStartPosition(),n=this.editor.getLayoutInfo(),s=this._getWidth(n);this.domNode.style.width=`${s}px`,this.domNode.style.left=this._getLeft(n)+"px";const r=document.createElement("div");r.style.overflow="hidden";const a=this.editor.getOption(63),l=Math.max(12,this.editor.getLayoutInfo().height/a*.8);t=Math.min(t,l);let d=0,c=0;if(this._arrow&&this.options.showArrow&&(d=Math.round(a/3),this._arrow.height=d,this._arrow.show(i)),this.options.showFrame&&(c=Math.round(a/9)),this.editor.changeViewZones(f=>{this._viewZone&&f.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new zre(r,i.lineNumber,i.column,t,p=>this._onViewZoneTop(p),p=>this._onViewZoneHeight(p)),this._viewZone.id=f.addZone(this._viewZone),this._overlayWidget=new Ure(Hre+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){const f=this.options.frameWidth?this.options.frameWidth:c;this.container.style.borderTopWidth=f+"px",this.container.style.borderBottomWidth=f+"px"}const h=t*a-this._decoratingElementsHeight();this.container&&(this.container.style.top=d+"px",this.container.style.height=h+"px",this.container.style.overflow="hidden"),this._doLayout(h,s),this.options.keepEditorSelection||this.editor.setSelection(e);const u=this.editor.getModel();if(u){const f=u.validateRange(new y(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(f,f.endLineNumber===u.getLineCount())}}revealRange(e,t){t?this.editor.revealLineNearTop(e.endLineNumber,0):this.editor.revealRange(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones(t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))})}_initSash(){if(this._resizeSash)return;this._resizeSash=this._disposables.add(new gn(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0);let e;this._disposables.add(this._resizeSash.onDidStart(t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(()=>{e=void 0})),this._disposables.add(this._resizeSash.onDidChange(t=>{if(e){const i=(t.currentY-e.startY)/this.editor.getOption(63),n=i<0?Math.ceil(i):Math.floor(i),s=e.heightInLines+n;s>5&&s<35&&this._relayout(s)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}var K8=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},q8=function(o,e){return function(t,i){e(t,i,o)}};const G8=Je("IPeekViewService");ot(G8,class{constructor(){this._widgets=new Map}addExclusiveWidget(o,e){const t=this._widgets.get(o);t&&(t.listener.dispose(),t.widget.dispose());const i=()=>{const n=this._widgets.get(o);n&&n.widget===e&&(n.listener.dispose(),this._widgets.delete(o))};this._widgets.set(o,{widget:e,listener:e.onDidClose(i)})}},1);var ss;(function(o){o.inPeekEditor=new de("inReferenceSearchEditor",!0,g("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),o.notInPeekEditor=o.inPeekEditor.toNegated()})(ss||(ss={}));let f_=class{constructor(e,t){e instanceof Bd&&ss.inPeekEditor.bindTo(t)}dispose(){}};f_.ID="editor.contrib.referenceController";f_=K8([q8(1,Ee)],f_);lt(f_.ID,f_,0);function jre(o){const e=o.get(ut).getFocusedCodeEditor();return e instanceof Bd?e.getParentEditor():e}const Kre={headerBackgroundColor:H.white,primaryHeadingColor:H.fromHex("#333333"),secondaryHeadingColor:H.fromHex("#6c6c6cb3")};let s1=class extends $re{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new O,this.onDidClose=this._onDidClose.event,B_(this.options,Kre,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=X(".head"),this._bodyElement=X(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){const i=X(".peekview-title");this.options.supportOnTitleClick&&(i.classList.add("clickable"),hi(i,"click",r=>this._onTitleClick(r))),q(this._headElement,i),this._fillTitleIcon(i),this._primaryHeading=X("span.filename"),this._secondaryHeading=X("span.dirname"),this._metaHeading=X("span.meta"),q(i,this._primaryHeading,this._secondaryHeading,this._metaHeading);const n=X(".peekview-actions");q(this._headElement,n);const s=this._getActionBarOptions();this._actionbarWidget=new fo(n,s),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new ms("peekview.close",g("label.close","Close"),De.asClassName(se.close),!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:Cee.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:xi(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,hs(this._metaHeading)):On(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0){this.dispose();return}const i=Math.ceil(this.editor.getOption(63)*1.2),n=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(n,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};s1=K8([q8(2,Me)],s1);const qre=M("peekViewTitle.background",{dark:pe(es,.1),light:pe(es,.1),hcDark:null,hcLight:null},g("peekViewTitleBackground","Background color of the peek view title area.")),Z8=M("peekViewTitleLabel.foreground",{dark:H.white,light:H.black,hcDark:H.white,hcLight:To},g("peekViewTitleForeground","Color of the peek view title.")),Y8=M("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},g("peekViewTitleInfoForeground","Color of the peek view title info.")),Gre=M("peekView.border",{dark:es,light:es,hcDark:Ze,hcLight:Ze},g("peekViewBorder","Color of the peek view borders and arrow.")),Zre=M("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:H.black,hcLight:H.white},g("peekViewResultsBackground","Background color of the peek view result list."));M("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:H.white,hcLight:To},g("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list."));M("peekViewResult.fileForeground",{dark:H.white,light:"#1E1E1E",hcDark:H.white,hcLight:To},g("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list."));M("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},g("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list."));M("peekViewResult.selectionForeground",{dark:H.white,light:"#6C6C6C",hcDark:H.white,hcLight:To},g("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list."));const ld=M("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:H.black,hcLight:H.white},g("peekViewEditorBackground","Background color of the peek view editor."));M("peekViewEditorGutter.background",{dark:ld,light:ld,hcDark:ld,hcLight:ld},g("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor."));M("peekViewEditorStickScroll.background",{dark:ld,light:ld,hcDark:ld,hcLight:ld},g("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor."));M("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},g("peekViewResultsMatchHighlight","Match highlight color in the peek view result list."));M("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},g("peekViewEditorMatchHighlight","Match highlight color in the peek view editor."));M("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:Pt,hcLight:Pt},g("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));var Yre=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Wd{constructor(e,t,i,n){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=n,this.id=p3.nextId()}get uri(){return this.link.uri}get range(){var e,t;return(t=(e=this._range)!==null&&e!==void 0?e:this.link.targetSelectionRange)!==null&&t!==void 0?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;const t=(e=this.parent.getPreview(this))===null||e===void 0?void 0:e.preview(this.range);return t?g({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"symbol in {0} on line {1} at column {2}, {3}",uo(this.uri),this.range.startLineNumber,this.range.startColumn,t.value):g("aria.oneReference","symbol in {0} on line {1} at column {2}",uo(this.uri),this.range.startLineNumber,this.range.startColumn)}}class Qre{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:n,startColumn:s,endLineNumber:r,endColumn:a}=e,l=i.getWordUntilPosition({lineNumber:n,column:s-t}),d=new y(n,l.startColumn,n,s),c=new y(r,a,r,1073741824),h=i.getValueInRange(d).replace(/^\s+/,""),u=i.getValueInRange(e),f=i.getValueInRange(c).replace(/\s+$/,"");return{value:h+u+f,highlight:{start:h.length,end:h.length+u.length}}}}class g_{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new bn}dispose(){gt(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return e===1?g("aria.fileReferences.1","1 symbol in {0}, full path {1}",uo(this.uri),this.uri.fsPath):g("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,uo(this.uri),this.uri.fsPath)}resolve(e){return Yre(this,void 0,void 0,function*(){if(this._previews.size!==0)return this;for(const t of this.children)if(!this._previews.has(t.uri))try{const i=yield e.createModelReference(t.uri);this._previews.set(t.uri,new Qre(i))}catch(i){Oe(i)}return this})}}class _s{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new O,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;e.sort(_s._compareReferences);let n;for(const s of e)if((!n||!Ot.isEqual(n.uri,s.uri,!0))&&(n=new g_(this,s.uri),this.groups.push(n)),n.children.length===0||_s._compareReferences(s,n.children[n.children.length-1])!==0){const r=new Wd(i===s,n,s,a=>this._onDidChangeReferenceRange.fire(a));this.references.push(r),n.children.push(r)}}dispose(){gt(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new _s(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?g("aria.result.0","No results found"):this.references.length===1?g("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?g("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):g("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let n=i.children.indexOf(e);const s=i.children.length,r=i.parent.groups.length;return r===1||t&&n+10?(t?n=(n+1)%s:n=(n+s-1)%s,i.children[n]):(n=i.parent.groups.indexOf(i),t?(n=(n+1)%r,i.parent.groups[n].children[0]):(n=(n+r-1)%r,i.parent.groups[n].children[i.parent.groups[n].children.length-1]))}nearestReference(e,t){const i=this.references.map((n,s)=>({idx:s,prefixLen:ah(n.uri.toString(),e.toString()),offsetDist:Math.abs(n.range.startLineNumber-t.lineNumber)*100+Math.abs(n.range.startColumn-t.column)})).sort((n,s)=>n.prefixLen>s.prefixLen?-1:n.prefixLens.offsetDist?1:0)[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&y.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return Ot.compare(e.uri,t.uri)||y.compareRangesUsingStarts(e.range,t.range)}}var $w=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},jw=function(o,e){return function(t,i){e(t,i,o)}};let tI=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof _s||e instanceof g_}getChildren(e){if(e instanceof _s)return e.groups;if(e instanceof g_)return e.resolve(this._resolverService).then(t=>t.children);throw new Error("bad tree")}};tI=$w([jw(0,os)],tI);class Xre{getHeight(){return 23}getTemplateId(e){return e instanceof g_?p_.id:f0.id}}let iI=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof Wd){const i=(t=e.parent.getPreview(e))===null||t===void 0?void 0:t.preview(e.range);if(i)return i.value}return uo(e.uri)}};iI=$w([jw(0,ei)],iI);class Jre{getId(e){return e instanceof Wd?e.id:e.uri}}let nI=class extends U{constructor(e,t){super(),this._labelService=t;const i=document.createElement("div");i.classList.add("reference-file"),this.file=this._register(new jC(i,{supportHighlights:!0})),this.badge=new gk(q(i,X(".count")),{},q3),e.appendChild(i)}set(e,t){const i=cw(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const n=e.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat(g("referencesCount","{0} references",n)):this.badge.setTitleFormat(g("referenceCount","{0} reference",n))}};nI=$w([jw(1,Qf)],nI);let p_=class Q8{constructor(e){this._instantiationService=e,this.templateId=Q8.id}renderTemplate(e){return this._instantiationService.createInstance(nI,e)}renderElement(e,t,i){i.set(e.element,pw(e.filterData))}disposeTemplate(e){e.dispose()}};p_.id="FileReferencesRenderer";p_=$w([jw(0,Me)],p_);class eae{constructor(e){this.label=new pl(e)}set(e,t){var i;const n=(i=e.parent.getPreview(e))===null||i===void 0?void 0:i.preview(e.range);if(!n||!n.value)this.label.set(`${uo(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`);else{const{value:s,highlight:r}=n;t&&!_r.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(s,pw(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(s,[r]))}}}class f0{constructor(){this.templateId=f0.id}renderTemplate(e){return new eae(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(){}}f0.id="OneReferenceRenderer";class tae{getWidgetAriaLabel(){return g("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var iae=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Va=function(o,e){return function(t,i){e(t,i,o)}},qP=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Kw{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new Z,this._callOnModelChange=new Z,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e){for(const t of this._model.references)if(t.uri.toString()===e.uri.toString()){this._addDecorations(t.parent);return}}}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));const t=[],i=[];for(let n=0,s=e.children.length;n{const s=n.deltaDecorations([],t);for(let r=0;r{s.equals(9)&&(this._keybindingService.dispatchEvent(s,s.target),s.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(sae,"ReferencesWidget",this._treeContainer,new Xre,[this._instantiationService.createInstance(p_),this._instantiationService.createInstance(f0)],this._instantiationService.createInstance(tI),i),this._splitView.addView({onDidChange:_e.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:s=>{this._preview.layout({height:this._dim.height,width:s})}},KC.Distribute),this._splitView.addView({onDidChange:_e.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:s=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${s}px`,this._tree.layout(this._dim.height,s)}},KC.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));const n=(s,r)=>{s instanceof Wd&&(r==="show"&&this._revealReference(s,!1),this._onDidSelectReference.fire({element:s,kind:r,source:"tree"}))};this._tree.onDidOpen(s=>{s.sideBySide?n(s.element,"side"):s.editorOptions.pinned?n(s.element,"goto"):n(s.element,"show")}),On(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new Dt(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then(()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))})}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=g("noResults","No results"),hs(this._messageContainer),Promise.resolve(void 0)):(On(this._messageContainer),this._decorationsManager=new Kw(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(e=>this._tree.rerender(e))),this._disposeOnNewModel.add(this._preview.onMouseDown(e=>{const{event:t,target:i}=e;if(t.detail!==2)return;const n=this._getFocusedReference();n&&this._onDidSelectReference.fire({element:{uri:n.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),hs(this._treeContainer),hs(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();if(e instanceof Wd)return e;if(e instanceof g_&&e.children.length>0)return e.children[0]}revealReference(e){return qP(this,void 0,void 0,function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})})}_revealReference(e,t){return qP(this,void 0,void 0,function*(){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==We.inMemory?this.setTitle(rZ(e.uri),this._uriLabel.getUriLabel(cw(e.uri))):this.setTitle(g("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent?this._tree.reveal(e):(t&&this._tree.reveal(e.parent),yield this._tree.expand(e.parent),this._tree.reveal(e));const n=yield i;if(!this._model){n.dispose();return}gt(this._previewModelReference);const s=n.object;if(s){const r=this._preview.getModel()===s.textEditorModel?0:1,a=y.lift(e.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(s.textEditorModel),this._preview.setSelection(a),this._preview.revealRangeInCenter(a,r)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()})}};sI=iae([Va(3,Hi),Va(4,os),Va(5,Me),Va(6,G8),Va(7,Qf),Va(8,hw),Va(9,ei),Va(10,Ut),Va(11,ui)],sI);var oae=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Su=function(o,e){return function(t,i){e(t,i,o)}},GP=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};const nu=new de("referenceSearchVisible",!1,g("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let Vd=class oI{static get(e){return e.getContribution(oI.ID)}constructor(e,t,i,n,s,r,a,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=n,this._notificationService=s,this._instantiationService=r,this._storageService=a,this._configurationService=l,this._disposables=new Z,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=nu.bindTo(i)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),(e=this._widget)===null||e===void 0||e.dispose(),(t=this._model)===null||t===void 0||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let n;if(this._widget&&(n=this._widget.position),this.closeWidget(),n&&e.containsPosition(n))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));const s="peekViewLayout",r=nae.fromJSON(this._storageService.get(s,0,"{}"));this._widget=this._instantiationService.createInstance(sI,this._editor,this._defaultTreeKeyboardSupport,r),this._widget.setTitle(g("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store(s,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(l=>{const{element:d,kind:c}=l;if(d)switch(c){case"open":(l.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(d,!1,!1);break;case"side":this.openReference(d,!0,!1);break;case"goto":i?this._gotoReference(d,!0):this.openReference(d,!1,!0);break}}));const a=++this._requestIdPool;t.then(l=>{var d;if(a!==this._requestIdPool||!this._widget){l.dispose();return}return(d=this._model)===null||d===void 0||d.dispose(),this._model=l,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(g("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const c=this._editor.getModel().uri,h=new W(e.startLineNumber,e.startColumn),u=this._model.nearestReference(c,h);if(u)return this._widget.setSelection(u).then(()=>{this._widget&&this._editor.getOption(82)==="editor"&&this._widget.focusOnPreviewEditor()})}})},l=>{this._notificationService.error(l)})}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return GP(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const n=this._model.nextOrPreviousReference(i,e),s=this._editor.hasTextFocus(),r=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(n),yield this._gotoReference(n,!1),s?this._editor.focus():this._widget&&r&&this._widget.focusOnPreviewEditor()})}revealReference(e){return GP(this,void 0,void 0,function*(){!this._editor.hasModel()||!this._model||!this._widget||(yield this._widget.revealReference(e))})}closeWidget(e=!0){var t,i;(t=this._widget)===null||t===void 0||t.dispose(),(i=this._model)===null||i===void 0||i.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e,t){var i;(i=this._widget)===null||i===void 0||i.hide(),this._ignoreModelChangeEvent=!0;const n=y.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:n,selectionSource:"code.jump",pinned:t}},this._editor).then(s=>{var r;if(this._ignoreModelChangeEvent=!1,!s||!this._widget){this.closeWidget();return}if(this._editor===s)this._widget.show(n),this._widget.focusOnReferenceTree();else{const a=oI.get(s),l=this._model.clone();this.closeWidget(),s.focus(),a==null||a.toggleWidget(n,Wi(d=>Promise.resolve(l)),(r=this._peekMode)!==null&&r!==void 0?r:!1)}},s=>{this._ignoreModelChangeEvent=!1,Oe(s)})}openReference(e,t,i){t||this.closeWidget();const{uri:n,range:s}=e;this._editorService.openCodeEditor({resource:n,options:{selection:s,selectionSource:"code.jump",pinned:i}},this._editor,t)}};Vd.ID="editor.contrib.referencesController";Vd=oae([Su(2,Ee),Su(3,ut),Su(4,_i),Su(5,Me),Su(6,jo),Su(7,at)],Vd);function su(o,e){const t=jre(o);if(!t)return;const i=Vd.get(t);i&&e(i)}is.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:ki(2089,60),when:oe.or(nu,ss.inPeekEditor),handler(o){su(o,e=>{e.changeFocusBetweenPreviewAndReferences()})}});is.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:oe.or(nu,ss.inPeekEditor),handler(o){su(o,e=>{e.goToNextOrPreviousReference(!0)})}});is.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:oe.or(nu,ss.inPeekEditor),handler(o){su(o,e=>{e.goToNextOrPreviousReference(!1)})}});st.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference");st.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference");st.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch");st.registerCommand("closeReferenceSearch",o=>su(o,e=>e.closeWidget()));is.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:oe.and(ss.inPeekEditor,oe.not("config.editor.stablePeek"))});is.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:oe.and(nu,oe.not("config.editor.stablePeek"))});is.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:oe.and(nu,C7,C2.negate(),w2.negate()),handler(o){var e;const i=(e=o.get(wo).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Wd&&su(o,n=>n.revealReference(i[0]))}});is.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:oe.and(nu,C7,C2.negate(),w2.negate()),handler(o){var e;const i=(e=o.get(wo).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Wd&&su(o,n=>n.openReference(i[0],!0,!0))}});st.registerCommand("openReference",o=>{var e;const i=(e=o.get(wo).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Wd&&su(o,n=>n.openReference(i[0],!1,!0))});var X8=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Op=function(o,e){return function(t,i){e(t,i,o)}};const $2=new de("hasSymbols",!1,g("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),qw=Je("ISymbolNavigationService");let rI=class{constructor(e,t,i,n){this._editorService=t,this._notificationService=i,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=$2.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),(e=this._currentState)===null||e===void 0||e.dispose(),(t=this._currentMessage)===null||t===void 0||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1){this.reset();return}this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new aI(this._editorService),n=i.onDidChange(s=>{if(this._ignoreEditorChange)return;const r=this._editorService.getActiveCodeEditor();if(!r)return;const a=r.getModel(),l=r.getPosition();if(!a||!l)return;let d=!1,c=!1;for(const h of t.references)if(LN(h.uri,a.uri))d=!0,c=c||y.containsPosition(h.range,l);else if(d)break;(!d||!c)&&this.reset()});this._currentState=Oo(i,n)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:y.collapseToStart(t.range),selectionRevealType:3}},e).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){var e;(e=this._currentMessage)===null||e===void 0||e.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),i=t?g("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):g("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};rI=X8([Op(0,Ee),Op(1,ut),Op(2,_i),Op(3,ei)],rI);ot(qw,rI,1);ie(new class extends Ji{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:$2,kbOpts:{weight:100,primary:70}})}runEditorCommand(o,e){return o.get(qw).revealNext(e)}});is.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:$2,primary:9,handler(o){o.get(qw).reset()}});let aI=class{constructor(e){this._listener=new Map,this._disposables=new Z,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),gt(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,Oo(e.onDidChangeCursorPosition(t=>this._onDidChange.fire({editor:e})),e.onDidChangeModelContent(t=>this._onDidChange.fire({editor:e}))))}_onDidRemoveEditor(e){var t;(t=this._listener.get(e))===null||t===void 0||t.dispose(),this._listener.delete(e)}};aI=X8([Op(0,ut)],aI);var j2=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};function g0(o,e,t,i){return j2(this,void 0,void 0,function*(){const s=t.ordered(o).map(a=>Promise.resolve(i(a,o,e)).then(void 0,l=>{Vi(l)})),r=yield Promise.all(s);return mg(r.flat())})}function Gw(o,e,t,i){return g0(e,t,o,(n,s,r)=>n.provideDefinition(s,r,i))}function J8(o,e,t,i){return g0(e,t,o,(n,s,r)=>n.provideDeclaration(s,r,i))}function e9(o,e,t,i){return g0(e,t,o,(n,s,r)=>n.provideImplementation(s,r,i))}function t9(o,e,t,i){return g0(e,t,o,(n,s,r)=>n.provideTypeDefinition(s,r,i))}function Zw(o,e,t,i,n){return g0(e,t,o,(s,r,a)=>j2(this,void 0,void 0,function*(){const l=yield s.provideReferences(r,a,{includeDeclaration:!0},n);if(!i||!l||l.length!==2)return l;const d=yield s.provideReferences(r,a,{includeDeclaration:!1},n);return d&&d.length===1?d:l}))}function p0(o){return j2(this,void 0,void 0,function*(){const e=yield o(),t=new _s(e,""),i=t.references.map(n=>n.link);return t.dispose(),i})}Na("_executeDefinitionProvider",(o,e,t)=>{const i=o.get(fe),n=Gw(i.definitionProvider,e,t,Ye.None);return p0(()=>n)});Na("_executeTypeDefinitionProvider",(o,e,t)=>{const i=o.get(fe),n=t9(i.typeDefinitionProvider,e,t,Ye.None);return p0(()=>n)});Na("_executeDeclarationProvider",(o,e,t)=>{const i=o.get(fe),n=J8(i.declarationProvider,e,t,Ye.None);return p0(()=>n)});Na("_executeReferenceProvider",(o,e,t)=>{const i=o.get(fe),n=Zw(i.referenceProvider,e,t,!1,Ye.None);return p0(()=>n)});Na("_executeImplementationProvider",(o,e,t)=>{const i=o.get(fe),n=e9(i.implementationProvider,e,t,Ye.None);return p0(()=>n)});var Fo=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})},dL,cL,hL,uL,fL,gL,pL,mL;Jn.appendMenuItem(N.EditorContext,{submenu:N.EditorContextPeek,title:g("peek.submenu","Peek"),group:"navigation",order:100});class rg{static is(e){return!e||typeof e!="object"?!1:!!(e instanceof rg||W.isIPosition(e.position)&&e.model)}constructor(e,t){this.model=e,this.position=t}}class In extends _${static all(){return In._allSymbolNavigationCommands.values()}static _patchConfig(e){const t=Object.assign(Object.assign({},e),{f1:!0});if(t.menu)for(const i of it.wrap(t.menu))(i.id===N.EditorContext||i.id===N.EditorContextPeek)&&(i.when=oe.and(e.precondition,i.when));return t}constructor(e,t){super(In._patchConfig(t)),this.configuration=e,In._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,i,n){if(!t.hasModel())return Promise.resolve(void 0);const s=e.get(_i),r=e.get(ut),a=e.get(ec),l=e.get(qw),d=e.get(fe),c=e.get(Me),h=t.getModel(),u=t.getPosition(),f=rg.is(i)?i:new rg(h,u),p=new Sh(t,5),m=z1(this._getLocationModel(d,f.model,f.position,p.token),p.token).then(_=>Fo(this,void 0,void 0,function*(){var b;if(!_||p.token.isCancellationRequested)return;dn(_.ariaMessage);let v;if(_.referenceAt(h.uri,u)){const S=this._getAlternativeCommand(t);!In._activeAlternativeCommands.has(S)&&In._allSymbolNavigationCommands.has(S)&&(v=In._allSymbolNavigationCommands.get(S))}const C=_.references.length;if(C===0){if(!this.configuration.muteMessage){const S=h.getWordAtPosition(u);(b=Cs.get(t))===null||b===void 0||b.showMessage(this._getNoResultFoundMessage(S),u)}}else if(C===1&&v)In._activeAlternativeCommands.add(this.desc.id),c.invokeFunction(S=>v.runEditorCommand(S,t,i,n).finally(()=>{In._activeAlternativeCommands.delete(this.desc.id)}));else return this._onResult(r,l,t,_,n)}),_=>{s.error(_)}).finally(()=>{p.dispose()});return a.showWhile(m,250),m}_onResult(e,t,i,n,s){return Fo(this,void 0,void 0,function*(){const r=this._getGoToPreference(i);if(!(i instanceof Bd)&&(this.configuration.openInPeek||r==="peek"&&n.references.length>1))this._openInPeek(i,n,s);else{const a=n.firstReference(),l=n.references.length>1&&r==="gotoAndPeek",d=yield this._openReference(i,e,a,this.configuration.openToSide,!l);l&&d?this._openInPeek(d,n,s):n.dispose(),r==="goto"&&t.put(a)}})}_openReference(e,t,i,n,s){return Fo(this,void 0,void 0,function*(){let r;if(pV(i)&&(r=i.targetSelectionRange),r||(r=i.range),!r)return;const a=yield t.openCodeEditor({resource:i.uri,options:{selection:y.collapseToStart(r),selectionRevealType:3,selectionSource:"code.jump"}},e,n);if(a){if(s){const l=a.getModel(),d=a.createDecorationsCollection([{range:r,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{a.getModel()===l&&d.clear()},350)}return a}})}_openInPeek(e,t,i){const n=Vd.get(e);n&&e.hasModel()?n.toggleWidget(i??e.getSelection(),Wi(s=>Promise.resolve(t)),this.configuration.openInPeek):t.dispose()}}In._allSymbolNavigationCommands=new Map;In._activeAlternativeCommands=new Set;class m0 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Gw(e.definitionProvider,t,i,n),g("def.title","Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?g("noResultWord","No definition found for '{0}'",e.word):g("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(55).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(55).multipleDefinitions}}const i9=Kd&&!FE()?2118:70;Nn((dL=class lI extends m0{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:lI.id,title:{value:g("actions.goToDecl.label","Go to Definition"),original:"Go to Definition",mnemonicTitle:g({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:oe.and(T.hasDefinitionProvider,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:i9,weight:100},menu:[{id:N.EditorContext,group:"navigation",order:1.1},{id:N.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),st.registerCommandAlias("editor.action.goToDeclaration",lI.id)}},dL.id="editor.action.revealDefinition",dL));Nn((cL=class dI extends m0{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:dI.id,title:{value:g("actions.goToDeclToSide.label","Open Definition to the Side"),original:"Open Definition to the Side"},precondition:oe.and(T.hasDefinitionProvider,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:ki(2089,i9),weight:100}}),st.registerCommandAlias("editor.action.openDeclarationToTheSide",dI.id)}},cL.id="editor.action.revealDefinitionAside",cL));Nn((hL=class cI extends m0{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:cI.id,title:{value:g("actions.previewDecl.label","Peek Definition"),original:"Peek Definition"},precondition:oe.and(T.hasDefinitionProvider,ss.notInPeekEditor,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:N.EditorContextPeek,group:"peek",order:2}}),st.registerCommandAlias("editor.action.previewDeclaration",cI.id)}},hL.id="editor.action.peekDefinition",hL));class n9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield J8(e.declarationProvider,t,i,n),g("decl.title","Declarations"))})}_getNoResultFoundMessage(e){return e&&e.word?g("decl.noResultWord","No declaration found for '{0}'",e.word):g("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(55).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(55).multipleDeclarations}}Nn((uL=class s9 extends n9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:s9.id,title:{value:g("actions.goToDeclaration.label","Go to Declaration"),original:"Go to Declaration",mnemonicTitle:g({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:oe.and(T.hasDeclarationProvider,T.isInWalkThroughSnippet.toNegated()),menu:[{id:N.EditorContext,group:"navigation",order:1.3},{id:N.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?g("decl.noResultWord","No declaration found for '{0}'",e.word):g("decl.generic.noResults","No declaration found")}},uL.id="editor.action.revealDeclaration",uL));Nn(class extends n9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:{value:g("actions.peekDecl.label","Peek Declaration"),original:"Peek Declaration"},precondition:oe.and(T.hasDeclarationProvider,ss.notInPeekEditor,T.isInWalkThroughSnippet.toNegated()),menu:{id:N.EditorContextPeek,group:"peek",order:3}})}});class o9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield t9(e.typeDefinitionProvider,t,i,n),g("typedef.title","Type Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?g("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):g("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(55).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(55).multipleTypeDefinitions}}Nn((fL=class r9 extends o9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:r9.ID,title:{value:g("actions.goToTypeDefinition.label","Go to Type Definition"),original:"Go to Type Definition",mnemonicTitle:g({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:oe.and(T.hasTypeDefinitionProvider,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:0,weight:100},menu:[{id:N.EditorContext,group:"navigation",order:1.4},{id:N.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}},fL.ID="editor.action.goToTypeDefinition",fL));Nn((gL=class a9 extends o9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:a9.ID,title:{value:g("actions.peekTypeDefinition.label","Peek Type Definition"),original:"Peek Type Definition"},precondition:oe.and(T.hasTypeDefinitionProvider,ss.notInPeekEditor,T.isInWalkThroughSnippet.toNegated()),menu:{id:N.EditorContextPeek,group:"peek",order:4}})}},gL.ID="editor.action.peekTypeDefinition",gL));class l9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield e9(e.implementationProvider,t,i,n),g("impl.title","Implementations"))})}_getNoResultFoundMessage(e){return e&&e.word?g("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):g("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(55).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(55).multipleImplementations}}Nn((pL=class d9 extends l9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:d9.ID,title:{value:g("actions.goToImplementation.label","Go to Implementations"),original:"Go to Implementations",mnemonicTitle:g({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:oe.and(T.hasImplementationProvider,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:2118,weight:100},menu:[{id:N.EditorContext,group:"navigation",order:1.45},{id:N.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}},pL.ID="editor.action.goToImplementation",pL));Nn((mL=class c9 extends l9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:c9.ID,title:{value:g("actions.peekImplementation.label","Peek Implementations"),original:"Peek Implementations"},precondition:oe.and(T.hasImplementationProvider,ss.notInPeekEditor,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:3142,weight:100},menu:{id:N.EditorContextPeek,group:"peek",order:5}})}},mL.ID="editor.action.peekImplementation",mL));class h9 extends In{_getNoResultFoundMessage(e){return e?g("references.no","No references found for '{0}'",e.word):g("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(55).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(55).multipleReferences}}Nn(class extends h9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{value:g("goToReferences.label","Go to References"),original:"Go to References",mnemonicTitle:g({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:oe.and(T.hasReferenceProvider,ss.notInPeekEditor,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:1094,weight:100},menu:[{id:N.EditorContext,group:"navigation",order:1.45},{id:N.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Zw(e.referenceProvider,t,i,!0,n),g("ref.title","References"))})}});Nn(class extends h9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:{value:g("references.action.label","Peek References"),original:"Peek References"},precondition:oe.and(T.hasReferenceProvider,ss.notInPeekEditor,T.isInWalkThroughSnippet.toNegated()),menu:{id:N.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Zw(e.referenceProvider,t,i,!1,n),g("ref.title","References"))})}});class rae extends In{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",title:{value:g("label.generic","Go to Any Symbol"),original:"Go to Any Symbol"},precondition:oe.and(ss.notInPeekEditor,T.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(this._references,g("generic.title","Locations"))})}_getNoResultFoundMessage(e){return e&&g("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return(t=this._gotoMultipleBehaviour)!==null&&t!==void 0?t:e.getOption(55).multipleReferences}_getAlternativeCommand(){return""}}st.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Ce},{name:"position",description:"The position at which to start",constraint:W.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(o,e,t,i,n,s,r)=>Fo(void 0,void 0,void 0,function*(){_t(Ce.isUri(e)),_t(W.isIPosition(t)),_t(Array.isArray(i)),_t(typeof n>"u"||typeof n=="string"),_t(typeof r>"u"||typeof r=="boolean");const a=o.get(ut),l=yield a.openCodeEditor({resource:e},a.getFocusedCodeEditor());if(La(l))return l.setPosition(t),l.revealPositionInCenterIfOutsideViewport(t,0),l.invokeWithinContext(d=>{const c=new class extends rae{_getNoResultFoundMessage(h){return s||super._getNoResultFoundMessage(h)}}({muteMessage:!s,openInPeek:!!r,openToSide:!1},i,n);d.get(Me).invokeFunction(c.run.bind(c),l)})})});st.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Ce},{name:"position",description:"The position at which to start",constraint:W.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:(o,e,t,i,n)=>Fo(void 0,void 0,void 0,function*(){o.get(ri).executeCommand("editor.action.goToLocations",e,t,i,n,void 0,!0)})});st.registerCommand({id:"editor.action.findReferences",handler:(o,e,t)=>{_t(Ce.isUri(e)),_t(W.isIPosition(t));const i=o.get(fe),n=o.get(ut);return n.openCodeEditor({resource:e},n.getFocusedCodeEditor()).then(s=>{if(!La(s)||!s.hasModel())return;const r=Vd.get(s);if(!r)return;const a=Wi(d=>Zw(i.referenceProvider,s.getModel(),W.lift(t),!1,d).then(c=>new _s(c,g("ref.title","References")))),l=new y(t.lineNumber,t.column,t.lineNumber,t.column);return Promise.resolve(r.toggleWidget(l,a,!1))})}});st.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations");var aae=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},_L=function(o,e){return function(t,i){e(t,i,o)}},ZP=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};let Eh=class pb{constructor(e,t,i,n){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=n,this.toUnhook=new Z,this.toUnhookForKeyboard=new Z,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const s=new zw(e);this.toUnhook.add(s),this.toUnhook.add(s.onMouseMoveOrRelevantKeyDown(([r,a])=>{this.startFindDefinitionFromMouse(r,an(a))})),this.toUnhook.add(s.onExecute(r=>{this.isEnabled(r)&&this.gotoDefinition(r.target.position,r.hasSideBySideModifier).catch(a=>{Oe(a)}).finally(()=>{this.removeLinkDecorations()})})),this.toUnhook.add(s.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(e){return e.getContribution(pb.ID)}startFindDefinitionFromCursor(e){return ZP(this,void 0,void 0,function*(){yield this.startFindDefinition(e),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(t=>{t&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))})}startFindDefinitionFromMouse(e,t){if(e.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}const i=e.target.position;this.startFindDefinition(i)}startFindDefinition(e){var t;return ZP(this,void 0,void 0,function*(){this.toUnhookForKeyboard.clear();const i=e?(t=this.editor.getModel())===null||t===void 0?void 0:t.getWordAtPosition(e):null;if(!i){this.currentWordAtPosition=null,this.removeLinkDecorations();return}if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return;this.currentWordAtPosition=i;const n=new H7(this.editor,15);this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Wi(a=>this.findDefinition(e,a));let s;try{s=yield this.previousPromise}catch(a){Oe(a);return}if(!s||!s.length||!n.validate(this.editor)){this.removeLinkDecorations();return}const r=s[0].originSelectionRange?y.lift(s[0].originSelectionRange):new y(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);if(s.length>1){let a=r;for(const{originSelectionRange:l}of s)l&&(a=y.plusRange(a,l));this.addDecoration(a,new Yn().appendText(g("multipleResults","Click to show {0} definitions.",s.length)))}else{const a=s[0];if(!a.uri)return;this.textModelResolverService.createModelReference(a.uri).then(l=>{if(!l.object||!l.object.textEditorModel){l.dispose();return}const{object:{textEditorModel:d}}=l,{startLineNumber:c}=a.range;if(c<1||c>d.getLineCount()){l.dispose();return}const h=this.getPreviewValue(d,c,a),u=this.languageService.guessLanguageIdByFilepathOrFirstLine(d.uri);this.addDecoration(r,h?new Yn().appendCodeblock(u||"",h):void 0),l.dispose()})}})}getPreviewValue(e,t,i){let n=i.range;return n.endLineNumber-n.startLineNumber>=pb.MAX_SOURCE_PREVIEW_LINES&&(n=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,n)}stripIndentationFromPreviewRange(e,t,i){let s=e.getLineFirstNonWhitespaceColumn(t);for(let a=t+1;a{const n=!t&&this.editor.getOption(83)&&!this.isInPeekEditor(i);return new m0({openToSide:t,openInPeek:n,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(i)})}isInPeekEditor(e){const t=e.get(Ee);return ss.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};Eh.ID="editor.contrib.gotodefinitionatposition";Eh.MAX_SOURCE_PREVIEW_LINES=8;Eh=aae([_L(1,os),_L(2,Ut),_L(3,fe)],Eh);lt(Eh.ID,Eh,2);const Cv=X;class u9 extends U{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new Y_(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class K2 extends U{static render(e,t,i){return new K2(e,t,i)}constructor(e,t,i){super(),this.actionContainer=q(e,Cv("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=q(this.actionContainer,Cv("a.action")),this.action.setAttribute("role","button"),t.iconClass&&q(this.action,Cv(`span.icon.${t.iconClass}`));const n=q(this.action,Cv("span"));n.textContent=i?`${t.label} (${i})`:t.label,this._register(K(this.actionContainer,ae.CLICK,s=>{s.stopPropagation(),s.preventDefault(),t.run(this.actionContainer)})),this._register(K(this.actionContainer,ae.KEY_DOWN,s=>{const r=new Tt(s);(r.equals(3)||r.equals(10))&&(s.stopPropagation(),s.preventDefault(),t.run(this.actionContainer))})),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}var lae=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})},dae=function(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=o[Symbol.asyncIterator],t;return e?e.call(o):(o=typeof __values=="function"?__values(o):o[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(s){t[s]=o[s]&&function(r){return new Promise(function(a,l){r=o[s](r),n(a,l,r.done,r.value)})}}function n(s,r,a,l){Promise.resolve(l).then(function(d){s({value:d,done:a})},r)}};let cae=class{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}};class f9 extends U{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new O),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new wt(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new wt(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new wt(()=>this._triggerLoadingMessage(),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(57).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=VH(e=>this._computer.computeAsync(e)),lae(this,void 0,void 0,function*(){var e,t,i,n;try{try{for(var s=!0,r=dae(this._asyncIterable),a;a=yield r.next(),e=a.done,!e;){n=a.value,s=!1;try{const l=n;l&&(this._result.push(l),this._fireResult())}finally{s=!0}}}catch(l){t={error:l}}finally{try{!s&&!e&&(i=r.return)&&(yield i.call(r))}finally{if(t)throw t.error}}this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(l){Oe(l)}})):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){this._state===3&&this._setState(4)}_fireResult(){if(this._state===1||this._state===2)return;const e=this._state===0,t=this._state===4;this._onResult.fire(new cae(this._result.slice(0),e,t))}start(e){if(e===0)this._state===0&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}class vL{constructor(e,t,i,n){this.priority=e,this.range=t,this.initialMousePosX=i,this.initialMousePosY=n,this.type=1}equals(e){return e.type===1&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return e.type===1&&t.lineNumber===this.range.startLineNumber}}class mb{constructor(e,t,i,n,s,r){this.priority=e,this.owner=t,this.range=i,this.initialMousePosX=n,this.initialMousePosY=s,this.supportsMarkerHover=r,this.type=2}equals(e){return e.type===2&&this.owner===e.owner}canAdoptVisibleHover(e,t){return e.type===2&&this.owner===e.owner}}const ou=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}};class ko{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t=0,i=this.value.charCodeAt(e),n;if(n=ko._table[i],typeof n=="number")return this.pos+=1,{type:n,pos:e,len:1};if(ko.isDigitCharacter(i)){n=8;do t+=1,i=this.value.charCodeAt(e+t);while(ko.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}if(ko.isVariableCharacter(i)){n=9;do i=this.value.charCodeAt(e+ ++t);while(ko.isVariableCharacter(i)||ko.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}n=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof ko._table[i]>"u"&&!ko.isDigitCharacter(i)&&!ko.isVariableCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}}ko._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class Mg{constructor(){this._children=[]}appendChild(e){return e instanceof Fn&&this._children[this._children.length-1]instanceof Fn?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),s=i.children.slice(0);s.splice(n,1,...t),i._children=s,function r(a,l){for(const d of a)d.parent=l,r(d.children,d)}(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof _0)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class Fn extends Mg{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new Fn(this.value)}}class g9 extends Mg{}class Xs extends g9{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.indext.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof Ag?this._children[0]:void 0}clone(){const e=new Xs(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class Ag extends Mg{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof Fn&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new Ag;return this.options.forEach(e.appendChild,e),e}}class q2 extends Mg{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(s=>s instanceof Jo&&!!s.elseValue)&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof Jo){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new q2;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class Jo extends Mg{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":e&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((i,n)=>n===0?i.charAt(0).toLowerCase()+i.substr(1):i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}clone(){return new Jo(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class m_ extends g9{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new Fn(t)],!0):!1}clone(){const e=new m_(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function YP(o,e){const t=[...o];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class _0 extends Mg{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk(function(i){return i instanceof Xs&&(e.push(i),t=!t||t.indexn===e?(i=!0,!1):(t+=n.len(),!0)),i?t:-1}fullLen(e){let t=0;return YP([e],i=>(t+=i.len(),!0)),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof Xs&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof m_&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new _0;return this._children=this.children.map(t=>t.clone()),e}walk(e){YP(this.children,e)}}class Hd{constructor(){this._scanner=new ko,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new _0;return this.parseFragment(e,n),this.ensureFinalTabstop(n,i??!1,t??!1),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,s=[];t.walk(l=>(l instanceof Xs&&(l.isFinalTabstop?n.set(0,void 0):!n.has(l.index)&&l.children.length>0?n.set(l.index,l.children):s.push(l)),!0));const r=(l,d)=>{const c=n.get(l.index);if(!c)return;const h=new Xs(l.index);h.transform=l.transform;for(const u of c){const f=u.clone();h.appendChild(f),f instanceof Xs&&n.has(f.index)&&!d.has(f.index)&&(d.add(f.index),r(f,d),d.delete(f.index))}t.replace(l,[h])},a=new Set;for(const l of s)r(l,a);return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find(s=>s.index===0)||e.appendChild(new Xs(0)))}_accept(e,t){if(e===void 0||this._token.type===e){const i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){const n=this._scanner.next();if(n.type!==0&&n.type!==4&&n.type!==5)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new Fn(t)),!0):!1}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new Xs(Number(t)):new m_(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const s=new Xs(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Fn("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else if(s.index>0&&this._accept(7)){const r=new Ag;for(;;){if(this._parseChoiceElement(r)){if(this._accept(2))continue;if(this._accept(7)&&(s.appendChild(r),this._accept(4)))return e.appendChild(s),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseChoiceElement(e){const t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let n;if((n=this._accept(5,!0))?n=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||n:n=this._accept(void 0,!0),!n)return this._backTo(t),!1;i.push(n)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new Fn(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const s=new m_(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Fn("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseTransform(e){const t=new q2;let i="",n="";for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,i+=s;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(5,!0)||this._accept(6,!0)||s,t.appendChild(new Fn(s));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(i,n)}catch{return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(n)if(i){if(this._accept(4))return e.appendChild(new Jo(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new Jo(Number(n))),!0;else return this._backTo(t),!1;if(this._accept(6)){const s=this._accept(9,!0);return!s||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new Jo(Number(n),s)),!0)}else if(this._accept(11)){const s=this._until(4);if(s)return e.appendChild(new Jo(Number(n),void 0,s,void 0)),!0}else if(this._accept(12)){const s=this._until(4);if(s)return e.appendChild(new Jo(Number(n),void 0,void 0,s)),!0}else if(this._accept(13)){const s=this._until(1);if(s){const r=this._until(4);if(r)return e.appendChild(new Jo(Number(n),void 0,s,r)),!0}}else{const s=this._until(4);if(s)return e.appendChild(new Jo(Number(n),void 0,void 0,s)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new Fn(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}const hae=g("defaultLabel","input"),uae=g("label.preserveCaseToggle","Preserve Case");class fae extends Eg{constructor(e){super({icon:se.preserveCase,title:uae+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class gae extends vo{constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new O),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new O),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new O),this._onInput=this._register(new O),this._onKeyUp=this._register(new O),this._onPreserveCaseKeyDown=this._register(new O),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||hae;const s=n.appendPreserveCaseLabel||"",r=n.history||[],a=!!n.flexibleHeight,l=!!n.flexibleWidth,d=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new a7(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:r,showHistoryHint:n.showHistoryHint,flexibleHeight:a,flexibleWidth:l,flexibleMaxHeight:d,inputBoxStyles:n.inputBoxStyles})),this.preserveCase=this._register(new fae(Object.assign({appendTitle:s,isChecked:!1},n.toggleStyles))),this._register(this.preserveCase.onChange(u=>{this._onDidOptionChange.fire(u),!u&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(u=>{this._onPreserveCaseKeyDown.fire(u)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const c=[this.preserveCase.domNode];this.onkeydown(this.domNode,u=>{if(u.equals(15)||u.equals(17)||u.equals(9)){const f=c.indexOf(document.activeElement);if(f>=0){let p=-1;u.equals(17)?p=(f+1)%c.length:u.equals(15)&&(f===0?p=c.length-1:p=f-1),u.equals(9)?(c[f].blur(),this.inputBox.focus()):p>=0&&c[p].focus(),ze.stop(u,!0)}}});const h=document.createElement("div");h.className="controls",h.style.display=this._showOptionButtons?"block":"none",h.appendChild(this.preserveCase.domNode),this.domNode.appendChild(h),e==null||e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,u=>this._onKeyDown.fire(u)),this.onkeyup(this.inputBox.inputElement,u=>this._onKeyUp.fire(u)),this.oninput(this.inputBox.inputElement,u=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,u=>this._onMouseDown.fire(u))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){var e;(e=this.inputBox)===null||e===void 0||e.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var p9=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},m9=function(o,e){return function(t,i){e(t,i,o)}};const G2=new de("suggestWidgetVisible",!1,g("suggestWidgetVisible","Whether suggestion are visible")),Z2="historyNavigationWidgetFocus",_9="historyNavigationForwardsEnabled",v9="historyNavigationBackwardsEnabled";let ml;const wv=[];function b9(o,e){if(wv.includes(e))throw new Error("Cannot register the same widget multiple times");wv.push(e);const t=new Z,i=new de(Z2,!1).bindTo(o),n=new de(_9,!0).bindTo(o),s=new de(v9,!0).bindTo(o),r=()=>{i.set(!0),ml=e},a=()=>{i.set(!1),ml===e&&(ml=void 0)};return e.element===document.activeElement&&r(),t.add(e.onDidFocus(()=>r())),t.add(e.onDidBlur(()=>a())),t.add(Pe(()=>{wv.splice(wv.indexOf(e),1),a()})),{historyNavigationForwardsEnablement:n,historyNavigationBackwardsEnablement:s,dispose(){t.dispose()}}}let hI=class extends l7{constructor(e,t,i,n){super(e,t,i);const s=this._register(n.createScoped(this.inputBox.element));this._register(b9(s,this.inputBox))}};hI=p9([m9(3,Ee)],hI);let uI=class extends gae{constructor(e,t,i,n,s=!1){super(e,t,s,i);const r=this._register(n.createScoped(this.inputBox.element));this._register(b9(r,this.inputBox))}};uI=p9([m9(3,Ee)],uI);is.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:oe.and(oe.has(Z2),oe.equals(v9,!0),G2.isEqualTo(!1)),primary:16,secondary:[528],handler:o=>{ml==null||ml.showPreviousValue()}});is.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:oe.and(oe.has(Z2),oe.equals(_9,!0),G2.isEqualTo(!1)),primary:18,secondary:[530],handler:o=>{ml==null||ml.showNextValue()}});var fm=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};const Ge={Visible:G2,HasFocusedSuggestion:new de("suggestWidgetHasFocusedSuggestion",!1,g("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new de("suggestWidgetDetailsVisible",!1,g("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new de("suggestWidgetMultipleSuggestions",!1,g("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new de("suggestionMakesTextEdit",!0,g("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new de("acceptSuggestionOnEnter",!0,g("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new de("suggestionHasInsertAndReplaceRange",!1,g("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new de("suggestionInsertMode",void 0,{type:"string",description:g("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new de("suggestionCanResolve",!1,g("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},wd=new N("suggestWidgetStatusBar");class pae{constructor(e,t,i,n){this.position=e,this.completion=t,this.container=i,this.provider=n,this.isInvalid=!1,this.score=_r.Default,this.distance=0,this.textLabel=typeof t.label=="string"?t.label:t.label.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,y.isIRange(t.range)?(this.editStart=new W(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new W(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new W(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||y.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new W(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new W(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new W(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||y.spansMultipleLines(t.range.insert)||y.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),typeof n.resolveCompletionItem!="function"&&(this._resolveCache=Promise.resolve(),this._isResolved=!0)}get isResolved(){return!!this._isResolved}resolve(e){return fm(this,void 0,void 0,function*(){if(!this._resolveCache){const t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._isResolved=!1});this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(i=>{Object.assign(this.completion,i),this._isResolved=!0,t.dispose()},i=>{Da(i)&&(this._resolveCache=void 0,this._isResolved=!1)})}return this._resolveCache})}}class __{constructor(e=2,t=new Set,i=new Set,n=new Map,s=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.providerItemsToReuse=n,this.showDeprecated=s}}__.default=new __;let mae;function _ae(){return mae}class vae{constructor(e,t,i,n){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=n}}function Y2(o,e,t,i=__.default,n={triggerKind:0},s=Ye.None){return fm(this,void 0,void 0,function*(){const r=new ts(!0);t=t.clone();const a=e.getWordAtPosition(t),l=a?new y(t.lineNumber,a.startColumn,t.lineNumber,a.endColumn):y.fromPositions(t),d={replace:l,insert:l.setEndPosition(t.lineNumber,t.column)},c=[],h=new Z,u=[];let f=!1;const p=(_,b,v)=>{var C,S,x;let E=!1;if(!b)return E;for(const L of b.suggestions)if(!i.kindFilter.has(L.kind)){if(!i.showDeprecated&&(!((C=L==null?void 0:L.tags)===null||C===void 0)&&C.includes(1)))continue;L.range||(L.range=d),L.sortText||(L.sortText=typeof L.label=="string"?L.label:L.label.label),!f&&L.insertTextRules&&L.insertTextRules&4&&(f=Hd.guessNeedsClipboard(L.insertText)),c.push(new pae(t,L,b,_)),E=!0}return CE(b)&&h.add(b),u.push({providerName:(S=_._debugDisplayName)!==null&&S!==void 0?S:"unknown_provider",elapsedProvider:(x=b.duration)!==null&&x!==void 0?x:-1,elapsedOverall:v.elapsed()}),E},m=fm(this,void 0,void 0,function*(){});for(const _ of o.orderedGroups(e)){let b=!1;if(yield Promise.all(_.map(v=>fm(this,void 0,void 0,function*(){if(i.providerItemsToReuse.has(v)){const C=i.providerItemsToReuse.get(v);C.forEach(S=>c.push(S)),b=b||C.length>0;return}if(!(i.providerFilter.size>0&&!i.providerFilter.has(v)))try{const C=new ts(!0),S=yield v.provideCompletionItems(e,t,n,s);b=p(v,S,C)||b}catch(C){Vi(C)}}))),b||s.isCancellationRequested)break}return yield m,s.isCancellationRequested?(h.dispose(),Promise.reject(new qd)):new vae(c.sort(wae(i.snippetSortOrder)),f,{entries:u,elapsed:r.elapsed()},h)})}function Q2(o,e){if(o.sortTextLow&&e.sortTextLow){if(o.sortTextLowe.sortTextLow)return 1}return o.textLabele.textLabel?1:o.completion.kind-e.completion.kind}function bae(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return-1;if(e.completion.kind===27)return 1}return Q2(o,e)}function Cae(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return 1;if(e.completion.kind===27)return-1}return Q2(o,e)}const Yw=new Map;Yw.set(0,bae);Yw.set(2,Cae);Yw.set(1,Q2);function wae(o){return Yw.get(o)}st.registerCommand("_executeCompletionItemProvider",(o,...e)=>fm(void 0,void 0,void 0,function*(){const[t,i,n,s]=e;_t(Ce.isUri(t)),_t(W.isIPosition(i)),_t(typeof n=="string"||!n),_t(typeof s=="number"||!s);const{completionProvider:r}=o.get(fe),a=yield o.get(os).createModelReference(t);try{const l={incomplete:!1,suggestions:[]},d=[],c=yield Y2(r,a.object.textEditorModel,W.lift(i),void 0,{triggerCharacter:n??void 0,triggerKind:n?1:0});for(const h of c.items)d.length<(s??0)&&d.push(h.resolve(Ye.None)),l.incomplete=l.incomplete||h.container.incomplete,l.suggestions.push(h.completion);try{return yield Promise.all(d),l}finally{setTimeout(()=>c.disposable.dispose(),100)}}finally{a.dispose()}}));function Sae(o,e){var t;(t=o.getContribution("editor.contrib.suggestController"))===null||t===void 0||t.triggerSuggest(new Set().add(e),void 0,!0)}class of{static isAllOff(e){return e.other==="off"&&e.comments==="off"&&e.strings==="off"}static isAllOn(e){return e.other==="on"&&e.comments==="on"&&e.strings==="on"}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}var X2=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},o1=function(o,e){return function(t,i){e(t,i,o)}};const QP=X;let r1=class fI extends U{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._widget=this._register(this._instantiationService.createInstance(ih,this._editor)),this._currentResult=null,this._participants=[];for(const n of ou.getAll())this._participants.push(this._instantiationService.createInstance(n,this._editor));this._participants.sort((n,s)=>n.hoverOrdinal-s.hoverOrdinal),this._computer=new a1(this._editor,this._participants),this._hoverOperation=this._register(new f9(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{if(!this._computer.anchor)return;const s=n.hasLoadingMessage?this._addLoadingMessage(n.value):n.value;this._withResult(new C9(this._computer.anchor,s,n.isComplete))})),this._register(hi(this._widget.getDomNode(),"keydown",n=>{n.equals(9)&&this.hide()})),this._register(Kt.onDidChange(()=>{this._widget.position&&this._currentResult&&(this._widget.clear(),this._setCurrentResult(this._currentResult))}))}maybeShowAt(e){const t=[];for(const n of this._participants)if(n.suggestHoverAnchor){const s=n.suggestHoverAnchor(e);s&&t.push(s)}const i=e.target;if(i.type===6&&t.push(new vL(0,i.range,e.event.posx,e.event.posy)),i.type===7){const n=this._editor.getOption(47).typicalHalfwidthCharacterWidth/2;!i.detail.isAfterLines&&typeof i.detail.horizontalDistanceToText=="number"&&i.detail.horizontalDistanceToTexts.priority-n.priority),this._startShowingOrUpdateHover(t[0],0,0,!1,e))}startShowingAtRange(e,t,i,n){this._startShowingOrUpdateHover(new vL(0,e,void 0,void 0),t,i,n,null)}_startShowingOrUpdateHover(e,t,i,n,s){return!this._widget.position||!this._currentResult?e?(this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):!1:this._editor.getOption(57).sticky&&s&&this._widget.isMouseGettingCloser(s.event.posx,s.event.posy)?(e&&this._startHoverOperationIfNecessary(e,t,i,n,!0),!0):e?e&&this._currentResult.anchor.equals(e)?!0:e.canAdoptVisibleHover(this._currentResult.anchor,this._widget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),!1)}_startHoverOperationIfNecessary(e,t,i,n,s){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=n,this._computer.source=i,this._computer.insistOnKeepingHoverVisible=s,this._hoverOperation.start(t))}_setCurrentResult(e){this._currentResult!==e&&(e&&e.messages.length===0&&(e=null),this._currentResult=e,this._currentResult?this._renderMessages(this._currentResult.anchor,this._currentResult.messages):this._widget.hide())}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}isColorPickerVisible(){return this._widget.isColorPickerVisible}isVisibleFromKeyboard(){return this._widget.isVisibleFromKeyboard}containsNode(e){return this._widget.getDomNode().contains(e)}_addLoadingMessage(e){if(this._computer.anchor){for(const t of this._participants)if(t.createLoadingMessage){const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}}return e}_withResult(e){this._widget.position&&this._currentResult&&this._currentResult.isComplete&&(!e.isComplete||this._computer.insistOnKeepingHoverVisible&&e.messages.length===0)||this._setCurrentResult(e)}_renderMessages(e,t){const{showAtPosition:i,showAtSecondaryPosition:n,highlightRange:s}=fI.computeHoverRanges(this._editor,e.range,t),r=new Z,a=r.add(new gI(this._keybindingService)),l=document.createDocumentFragment();let d=null;const c={fragment:l,statusBar:a,setColorPicker:u=>d=u,onContentsChanged:()=>this._widget.onContentsChanged(),hide:()=>this.hide()};for(const u of this._participants){const f=t.filter(p=>p.owner===u);f.length>0&&r.add(u.renderHoverParts(c,f))}const h=t.some(u=>u.isBeforeContent);if(a.hasContent&&l.appendChild(a.hoverElement),l.hasChildNodes()){if(s){const u=this._editor.createDecorationsCollection();u.set([{range:s,options:fI._DECORATION_OPTIONS}]),r.add(Pe(()=>{u.clear()}))}this._widget.showAt(l,new Lae(d,i,n,this._editor.getOption(57).above,this._computer.shouldFocus,this._computer.source,h,e.initialMousePosX,e.initialMousePosY,r))}else r.dispose()}static computeHoverRanges(e,t,i){let n=1;if(e.hasModel()){const d=e._getViewModel(),c=d.coordinatesConverter,h=c.convertModelRangeToViewRange(t),u=new W(h.startLineNumber,d.getLineMinColumn(h.startLineNumber));n=c.convertViewPositionToModelPosition(u).column}const s=t.startLineNumber;let r=t.startColumn,a=i[0].range,l=null;for(const d of i)a=y.plusRange(a,d.range),d.range.startLineNumber===s&&d.range.endLineNumber===s&&(r=Math.max(Math.min(r,d.range.startColumn),n)),d.forceShowAtRange&&(l=d.range);return{showAtPosition:l?l.getStartPosition():new W(s,t.startColumn),showAtSecondaryPosition:l?l.getStartPosition():new W(s,r),highlightRange:a}}};r1._DECORATION_OPTIONS=Re.register({description:"content-hover-highlight",className:"hoverHighlight"});r1=X2([o1(1,Me),o1(2,ei)],r1);class C9{constructor(e,t,i){this.anchor=e,this.messages=t,this.isComplete=i}filter(e){const t=this.messages.filter(i=>i.isValidForHoverAnchor(e));return t.length===this.messages.length?this:new yae(this,this.anchor,t,this.isComplete)}}class yae extends C9{constructor(e,t,i,n){super(t,i,n),this.original=e}filter(e){return this.original.filter(e)}}class Lae{constructor(e,t,i,n,s,r,a,l,d,c){this.colorPicker=e,this.showAtPosition=t,this.showAtSecondaryPosition=i,this.preferAbove=n,this.stoleFocus=s,this.source=r,this.isBeforeContent=a,this.initialMousePosX=l,this.initialMousePosY=d,this.disposables=c,this.closestMouseDistance=void 0}}let ih=class w9 extends U{get position(){var e,t;return(t=(e=this._visibleData)===null||e===void 0?void 0:e.showAtPosition)!==null&&t!==void 0?t:null}get isColorPickerVisible(){var e;return!!(!((e=this._visibleData)===null||e===void 0)&&e.colorPicker)}get isVisibleFromKeyboard(){var e;return((e=this._visibleData)===null||e===void 0?void 0:e.source)===1}constructor(e,t){super(),this._editor=e,this._contextKeyService=t,this.allowEditorOverflow=!0,this._hoverVisibleKey=T.hoverVisible.bindTo(this._contextKeyService),this._hover=this._register(new u9),this._visibleData=null,this._register(this._editor.onDidLayoutChange(()=>this._layout())),this._register(this._editor.onDidChangeConfiguration(i=>{i.hasChanged(47)&&this._updateFont()})),this._setVisibleData(null),this._layout(),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),this._visibleData&&this._visibleData.disposables.dispose(),super.dispose()}getId(){return w9.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){if(!this._visibleData)return null;let e=this._visibleData.preferAbove;!e&&this._contextKeyService.getContextKeyValue(Ge.Visible.key)&&(e=!0);const t=this._visibleData.isBeforeContent?3:void 0;return{position:this._visibleData.showAtPosition,secondaryPosition:this._visibleData.showAtSecondaryPosition,preference:e?[1,2]:[2,1],positionAffinity:t}}isMouseGettingCloser(e,t){if(!this._visibleData)return!1;if(typeof this._visibleData.initialMousePosX>"u"||typeof this._visibleData.initialMousePosY>"u")return this._visibleData.initialMousePosX=e,this._visibleData.initialMousePosY=t,!1;const i=Fi(this.getDomNode());typeof this._visibleData.closestMouseDistance>"u"&&(this._visibleData.closestMouseDistance=XP(this._visibleData.initialMousePosX,this._visibleData.initialMousePosY,i.left,i.top,i.width,i.height));const n=XP(e,t,i.left,i.top,i.width,i.height);return n>this._visibleData.closestMouseDistance+4?!1:(this._visibleData.closestMouseDistance=Math.min(this._visibleData.closestMouseDistance,n),!0)}_setVisibleData(e){this._visibleData&&this._visibleData.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!this._visibleData),this._hover.containerDomNode.classList.toggle("hidden",!this._visibleData)}_layout(){const e=Math.max(this._editor.getLayoutInfo().height/4,250),{fontSize:t,lineHeight:i}=this._editor.getOption(47);this._hover.contentsDomNode.style.fontSize=`${t}px`,this._hover.contentsDomNode.style.lineHeight=`${i/t}`,this._hover.contentsDomNode.style.maxHeight=`${e}px`,this._hover.contentsDomNode.style.maxWidth=`${Math.max(this._editor.getLayoutInfo().width*.66,500)}px`}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}showAt(e,t){var i;this._setVisibleData(t),this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._hover.contentsDomNode.style.paddingBottom="",this._updateFont(),this.onContentsChanged(),this._editor.render(),this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),(i=t.colorPicker)===null||i===void 0||i.layout()}hide(){if(this._visibleData){const e=this._visibleData.stoleFocus;this._setVisibleData(null),this._editor.layoutContentWidget(this),e&&this._editor.focus()}}onContentsChanged(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged();const e=this._hover.scrollbar.getScrollDimensions();if(e.scrollWidth>e.width){const i=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingBottom!==i&&(this._hover.contentsDomNode.style.paddingBottom=i,this._editor.layoutContentWidget(this),this._hover.onContentsChanged())}}clear(){this._hover.contentsDomNode.textContent=""}};ih.ID="editor.contrib.contentHoverWidget";ih=X2([o1(1,Ee)],ih);let gI=class extends U{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=QP("div.hover-row.status-bar"),this.actionsElement=q(this.hoverElement,QP("div.actions"))}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;return this._hasContent=!0,this._register(K2.render(this.actionsElement,e,i))}append(e){const t=q(this.actionsElement,e);return this._hasContent=!0,t}};gI=X2([o1(0,ei)],gI);class a1{get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}get source(){return this._source}set source(e){this._source=e}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(e){this._insistOnKeepingHoverVisible=e}constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(e,t){if(t.type!==1&&!t.supportsMarkerHover)return[];const i=e.getModel(),n=t.range.startLineNumber;if(n>i.getLineCount())return[];const s=i.getLineMaxColumn(n);return e.getLineDecorations(n).filter(r=>{if(r.options.isWholeLine)return!0;const a=r.range.startLineNumber===n?r.range.startColumn:1,l=r.range.endLineNumber===n?r.range.endColumn:s;if(r.options.showIfCollapsed){if(a>t.range.startColumn+1||t.range.endColumn-1>l)return!1}else if(a>t.range.startColumn||t.range.endColumn>l)return!1;return!0})}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return pi.EMPTY;const i=a1._getLineDecorations(this._editor,t);return pi.merge(this._participants.map(n=>n.computeAsync?n.computeAsync(t,i,e):pi.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=a1._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return mg(t)}}function XP(o,e,t,i,n,s){const r=t+n/2,a=i+s/2,l=Math.max(Math.abs(o-r)-n/2,0),d=Math.max(Math.abs(e-a)-s/2,0);return Math.sqrt(l*l+d*d)}var Dae=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},JP=function(o,e){return function(t,i){e(t,i,o)}},S9=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})},bL;let Ll=class y9{constructor(e,t,i){this._options=e,this._languageService=t,this._openerService=i,this._onDidRenderAsync=new O,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){if(!e)return{element:document.createElement("span"),dispose:()=>{}};const n=new Z;return{element:n.add(m3(e,Object.assign(Object.assign({},this._getRenderOptions(e,n)),t),i)).element,dispose:()=>n.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:(i,n)=>S9(this,void 0,void 0,function*(){var s,r,a;let l;i?l=this._languageService.getLanguageIdByLanguageName(i):this._options.editor&&(l=(s=this._options.editor.getModel())===null||s===void 0?void 0:s.getLanguageId()),l||(l=Vs);const d=yield LY(this._languageService,n,l),c=document.createElement("span");if(c.innerHTML=(a=(r=y9._ttpTokenizer)===null||r===void 0?void 0:r.createHTML(d))!==null&&a!==void 0?a:d,this._options.editor){const h=this._options.editor.getOption(47);Yi(c,h)}else this._options.codeBlockFontFamily&&(c.style.fontFamily=this._options.codeBlockFontFamily);return this._options.codeBlockFontSize!==void 0&&(c.style.fontSize=this._options.codeBlockFontSize),c}),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:i=>xae(this._openerService,i,e.isTrusted),disposables:t}}}};Ll._ttpTokenizer=(bL=window.trustedTypes)===null||bL===void 0?void 0:bL.createPolicy("tokenizeToString",{createHTML(o){return o}});Ll=Dae([JP(1,Ut),JP(2,bo)],Ll);function xae(o,e,t){return S9(this,void 0,void 0,function*(){try{return yield o.open(e,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:kae(t)})}catch(i){return Oe(i),!1}})}function kae(o){return o===!0?!0:o&&Array.isArray(o.enabledCommands)?o.enabledCommands:!1}const eO=X;class kf extends U{constructor(e,t,i){super(),this._renderDisposeables=this._register(new Z),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new u9),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new Ll({editor:this._editor},t,i)),this._computer=new Iae(this._editor),this._hoverOperation=this._register(new f9(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{this._withResult(n.value)})),this._register(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged())),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(47)&&this._updateFont()})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return kf.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}startShowingAt(e){this._computer.lineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const n of t){const s=eO("div.hover-row.markdown-hover"),r=q(s,eO("div.hover-contents")),a=this._renderDisposeables.add(this._markdownRenderer.render(n.value));r.appendChild(a.element),i.appendChild(s)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),n=this._editor.getScrollTop(),s=this._editor.getOption(63),r=this._hover.containerDomNode.clientHeight,a=i-n-(r-s)/2;this._hover.containerDomNode.style.left=`${t.glyphMarginLeft+t.glyphMarginWidth}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(a),0)}px`}}kf.ID="editor.contrib.modesGlyphHoverWidget";class Iae{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}constructor(e){this._editor=e,this._lineNumber=-1}computeSync(){const e=n=>({value:n}),t=this._editor.getLineDecorations(this._lineNumber),i=[];if(!t)return i;for(const n of t){if(!n.options.glyphMarginClassName)continue;const s=n.options.glyphMarginHoverMessage;!s||Yf(s)||i.push(...vE(s).map(e))}return i}}var Eae=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Nae{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function Tae(o,e,t,i,n){return Eae(this,void 0,void 0,function*(){try{const s=yield Promise.resolve(o.provideHover(t,i,n));if(s&&Aae(s))return new Nae(o,s,e)}catch(s){Vi(s)}})}function J2(o,e,t,i){const s=o.ordered(e).map((r,a)=>Tae(r,a,e,t,i));return pi.fromPromises(s).coalesce()}function Mae(o,e,t,i){return J2(o,e,t,i).map(n=>n.hover).toPromise()}Na("_executeHoverProvider",(o,e,t)=>{const i=o.get(fe);return Mae(i.hoverProvider,e,t,Ye.None)});function Aae(o){const e=typeof o.range<"u",t=typeof o.contents<"u"&&o.contents&&o.contents.length>0;return e&&t}var Rae=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Sv=function(o,e){return function(t,i){e(t,i,o)}};const tO=X;class rr{constructor(e,t,i,n,s){this.owner=e,this.range=t,this.contents=i,this.isBeforeContent=n,this.ordinal=s}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let l1=class{constructor(e,t,i,n,s){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=n,this._languageFeaturesService=s,this.hoverOrdinal=2}createLoadingMessage(e){return new rr(this,e.range,[new Yn().appendText(g("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];let a=1e3;const l=i.getLineLength(n),d=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),c=this._editor.getOption(111),h=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:d});let u=!1;c>=0&&l>c&&e.range.startColumn>=c&&(u=!0,r.push(new rr(this,e.range,[{value:g("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,a++))),!u&&typeof h=="number"&&l>=h&&r.push(new rr(this,e.range,[{value:g("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,a++));let f=!1;for(const p of t){const m=p.range.startLineNumber===n?p.range.startColumn:1,_=p.range.endLineNumber===n?p.range.endColumn:s,b=p.options.hoverMessage;if(!b||Yf(b))continue;p.options.beforeContentClassName&&(f=!0);const v=new y(e.range.startLineNumber,m,e.range.startLineNumber,_);r.push(new rr(this,v,vE(b),f,a++))}return r}computeAsync(e,t,i){if(!this._editor.hasModel()||e.type!==1)return pi.EMPTY;const n=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(n))return pi.EMPTY;const s=new W(e.range.startLineNumber,e.range.startColumn);return J2(this._languageFeaturesService.hoverProvider,n,s,i).filter(r=>!Yf(r.hover.contents)).map(r=>{const a=r.hover.range?y.lift(r.hover.range):e.range;return new rr(this,a,r.hover.contents,!1,r.ordinal)})}renderHoverParts(e,t){return L9(e,t,this._editor,this._languageService,this._openerService)}};l1=Rae([Sv(1,Ut),Sv(2,bo),Sv(3,at),Sv(4,fe)],l1);function L9(o,e,t,i,n){e.sort((r,a)=>r.ordinal-a.ordinal);const s=new Z;for(const r of e)for(const a of r.contents){if(Yf(a))continue;const l=tO("div.hover-row.markdown-hover"),d=q(l,tO("div.hover-contents")),c=s.add(new Ll({editor:t},i,n));s.add(c.onDidRenderAsync(()=>{d.className="hover-contents code-hover-contents",o.onContentsChanged()}));const h=s.add(c.render(a));d.appendChild(h.element),o.fragment.appendChild(l)}return s}var D9=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},d1=function(o,e){return function(t,i){e(t,i,o)}};class iO{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let pI=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._dispoables=new Z,this._markers=[],this._nextIdx=-1,Ce.isUri(e)?this._resourceFilter=a=>a.toString()===e.toString():e&&(this._resourceFilter=e);const n=this._configService.getValue("problems.sortOrder"),s=(a,l)=>{let d=Sm(a.resource.toString(),l.resource.toString());return d===0&&(n==="position"?d=y.compareRangesUsingStarts(a,l)||qt.compare(a.severity,l.severity):d=qt.compare(a.severity,l.severity)||y.compareRangesUsingStarts(a,l)),d},r=()=>{this._markers=this._markerService.read({resource:Ce.isUri(e)?e:void 0,severities:qt.Error|qt.Warning|qt.Info}),typeof e=="function"&&(this._markers=this._markers.filter(a=>this._resourceFilter(a.resource))),this._markers.sort(s)};r(),this._dispoables.add(t.onMarkerChanged(a=>{(!this._resourceFilter||a.some(l=>this._resourceFilter(l)))&&(r(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e?!0:!this._resourceFilter||!e?!1:this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new iO(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let n=!1,s=this._markers.findIndex(r=>r.resource.toString()===e.uri.toString());s<0&&(s=vm(this._markers,{resource:e.uri},(r,a)=>Sm(r.resource.toString(),a.resource.toString())),s<0&&(s=~s));for(let r=s;rn.resource.toString()===e.toString());if(!(i<0)){for(;i=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yu=function(o,e){return function(t,i){e(t,i,o)}};class Oae{constructor(e,t,i,n,s){this._openerService=n,this._labelService=s,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new Z,this._editor=t;const r=document.createElement("div");r.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),r.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),r.appendChild(this._relatedBlock),this._disposables.add(hi(this._relatedBlock,"click",a=>{a.preventDefault();const l=this._relatedDiagnostics.get(a.target);l&&i(l)})),this._scrollable=new h5(r,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(a=>{r.style.left=`-${a.scrollLeft}px`,r.style.top=`-${a.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){gt(this._disposables)}update(e){const{source:t,message:i,relatedInformation:n,code:s}=e;let r=((t==null?void 0:t.length)||0)+2;s&&(typeof s=="string"?r+=s.length:r+=s.value.length);const a=ma(i);this._lines=a.length,this._longestLineLength=0;for(const u of a)this._longestLineLength=Math.max(u.length+r,this._longestLineLength);xi(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let l=this._messageBlock;for(const u of a)l=document.createElement("div"),l.innerText=u,u===""&&(l.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(l);if(t||s){const u=document.createElement("span");if(u.classList.add("details"),l.appendChild(u),t){const f=document.createElement("span");f.innerText=t,f.classList.add("source"),u.appendChild(f)}if(s)if(typeof s=="string"){const f=document.createElement("span");f.innerText=`(${s})`,f.classList.add("code"),u.appendChild(f)}else{this._codeLink=X("a.code-link"),this._codeLink.setAttribute("href",`${s.target.toString()}`),this._codeLink.onclick=p=>{this._openerService.open(s.target,{allowCommands:!0}),p.preventDefault(),p.stopPropagation()};const f=q(this._codeLink,X("span"));f.innerText=s.value,u.appendChild(this._codeLink)}}if(xi(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Cn(n)){const u=this._relatedBlock.appendChild(document.createElement("div"));u.style.paddingTop=`${Math.floor(this._editor.getOption(63)*.66)}px`,this._lines+=1;for(const f of n){const p=document.createElement("div"),m=document.createElement("a");m.classList.add("filename"),m.innerText=`${this._labelService.getUriBasenameLabel(f.resource)}(${f.startLineNumber}, ${f.startColumn}): `,m.title=this._labelService.getUriLabel(f.resource),this._relatedDiagnostics.set(m,f);const _=document.createElement("span");_.innerText=f.message,p.appendChild(m),p.appendChild(_),this._lines+=1,u.appendChild(p)}}const d=this._editor.getOption(47),c=Math.ceil(d.typicalFullwidthCharacterWidth*this._longestLineLength*.75),h=d.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:c,scrollHeight:h})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case qt.Error:t=g("Error","Error");break;case qt.Warning:t=g("Warning","Warning");break;case qt.Info:t=g("Info","Info");break;case qt.Hint:t=g("Hint","Hint");break}let i=g("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const n=this._editor.getModel();return n&&e.startLineNumber<=n.getLineCount()&&e.startLineNumber>=1&&(i=`${n.getLineContent(e.startLineNumber)}, ${i}`),i}}let ag=class k9 extends s1{constructor(e,t,i,n,s,r,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},s),this._themeService=t,this._openerService=i,this._menuService=n,this._contextKeyService=r,this._labelService=a,this._callOnDispose=new Z,this._onDidSelectRelatedInformation=new O,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=qt.Warning,this._backgroundColor=H.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(Vae);let t=vI,i=Fae;this._severity===qt.Warning?(t=_b,i=Bae):this._severity===qt.Info&&(t=bI,i=Wae);const n=e.getColor(t),s=e.getColor(i);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:s,primaryHeadingColor:e.getColor(Z8),secondaryHeadingColor:e.getColor(Y8)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun(n=>this.editor.focus()));const t=[],i=this._menuService.createMenu(k9.TitleMenu,this._contextKeyService);Z3(i,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),i.dispose()}_fillTitleIcon(e){this._icon=q(e,X(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new Oae(this._container,this.editor,t=>this._onDidSelectRelatedInformation.fire(t),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const n=y.lift(e),s=this.editor.getPosition(),r=s&&n.containsPosition(s)?s:n.getStartPosition();super.show(r,this.computeRequiredHeight());const a=this.editor.getModel();if(a){const l=i>1?g("problems","{0} of {1} problems",t,i):g("change","{0} of {1} problem",t,i);this.setTitle(uo(a.uri),l)}this._icon.className=`codicon ${_I.className(qt.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(r,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};ag.TitleMenu=new N("gotoErrorTitleMenu");ag=Pae([yu(1,Hi),yu(2,bo),yu(3,Ea),yu(4,Me),yu(5,Ee),yu(6,Qf)],ag);const nO=Am(ia,tj),sO=Am(Fs,Mm),oO=Am(es,ux),vI=M("editorMarkerNavigationError.background",{dark:nO,light:nO,hcDark:Ze,hcLight:Ze},g("editorMarkerNavigationError","Editor marker navigation widget error color.")),Fae=M("editorMarkerNavigationError.headerBackground",{dark:pe(vI,.1),light:pe(vI,.1),hcDark:null,hcLight:null},g("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),_b=M("editorMarkerNavigationWarning.background",{dark:sO,light:sO,hcDark:Ze,hcLight:Ze},g("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Bae=M("editorMarkerNavigationWarning.headerBackground",{dark:pe(_b,.1),light:pe(_b,.1),hcDark:"#0C141F",hcLight:pe(_b,.2)},g("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),bI=M("editorMarkerNavigationInfo.background",{dark:oO,light:oO,hcDark:Ze,hcLight:Ze},g("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),Wae=M("editorMarkerNavigationInfo.headerBackground",{dark:pe(bI,.1),light:pe(bI,.1),hcDark:null,hcLight:null},g("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),Vae=M("editorMarkerNavigation.background",{dark:Ni,light:Ni,hcDark:Ni,hcLight:Ni},g("editorMarkerNavigationBackground","Editor marker navigation widget background."));var Hae=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yv=function(o,e){return function(t,i){e(t,i,o)}},I9=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};let zd=class vb{static get(e){return e.getContribution(vb.ID)}constructor(e,t,i,n,s){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=n,this._instantiationService=s,this._sessionDispoables=new Z,this._editor=e,this._widgetVisible=E9.bindTo(this._contextKeyService)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(ag,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(i=>{var n,s,r;(!(!((n=this._model)===null||n===void 0)&&n.selected)||!y.containsPosition((s=this._model)===null||s===void 0?void 0:s.selected.marker,i.position))&&((r=this._model)===null||r===void 0||r.resetIndex())})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;const i=this._model.find(this._editor.getModel().uri,this._widget.position);i?this._widget.updateMarker(i.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(i=>{this._editorService.openCodeEditor({resource:i.resource,options:{pinned:!0,revealIfOpened:!0,selection:y.lift(i).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp())),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new W(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}nagivate(e,t){var i,n;return I9(this,void 0,void 0,function*(){if(this._editor.hasModel()){const s=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(s.move(e,this._editor.getModel(),this._editor.getPosition()),!s.selected)return;if(s.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const r=yield this._editorService.openCodeEditor({resource:s.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:s.selected.marker}},this._editor);r&&((i=vb.get(r))===null||i===void 0||i.close(),(n=vb.get(r))===null||n===void 0||n.nagivate(e,t))}else this._widget.showAtMarker(s.selected.marker,s.selected.index,s.selected.total)}})}};zd.ID="editor.contrib.markerController";zd=Hae([yv(1,x9),yv(2,Ee),yv(3,ut),yv(4,Me)],zd);class Qw extends ce{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}run(e,t){var i;return I9(this,void 0,void 0,function*(){t.hasModel()&&((i=zd.get(t))===null||i===void 0||i.nagivate(this._next,this._multiFile))})}}class Sd extends Qw{constructor(){super(!0,!1,{id:Sd.ID,label:Sd.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:T.focus,primary:578,weight:100},menuOpts:{menuId:ag.TitleMenu,title:Sd.LABEL,icon:fi("marker-navigation-next",se.arrowDown,g("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}Sd.ID="editor.action.marker.next";Sd.LABEL=g("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class nh extends Qw{constructor(){super(!1,!1,{id:nh.ID,label:nh.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:T.focus,primary:1602,weight:100},menuOpts:{menuId:ag.TitleMenu,title:nh.LABEL,icon:fi("marker-navigation-previous",se.arrowUp,g("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}nh.ID="editor.action.marker.prev";nh.LABEL=g("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");class zae extends Qw{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:g("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:T.focus,primary:66,weight:100},menuOpts:{menuId:N.MenubarGoMenu,title:g({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}class Uae extends Qw{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:g("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:T.focus,primary:1090,weight:100},menuOpts:{menuId:N.MenubarGoMenu,title:g({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}}lt(zd.ID,zd,4);J(Sd);J(nh);J(zae);J(Uae);const E9=new de("markersNavigationVisible",!1),$ae=Ji.bindToContribution(zd.get);ie(new $ae({id:"closeMarkersNavigation",precondition:E9,handler:o=>o.close(),kbOpts:{weight:150,kbExpr:T.focus,primary:9,secondary:[1033]}}));var jae=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},CL=function(o,e){return function(t,i){e(t,i,o)}};const yo=X;class Kae{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const rO={type:1,filter:{include:Ne.QuickFix},triggerAction:ns.QuickFixHover};let CI=class{constructor(e,t,i,n){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=n,this.hoverOrdinal=5,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1&&!e.supportsMarkerHover)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];for(const a of t){const l=a.range.startLineNumber===n?a.range.startColumn:1,d=a.range.endLineNumber===n?a.range.endColumn:s,c=this._markerDecorationsService.getMarker(i.uri,a);if(!c)continue;const h=new y(e.range.startLineNumber,l,e.range.startLineNumber,d);r.push(new Kae(this,h,c))}return r}renderHoverParts(e,t){if(!t.length)return U.None;const i=new Z;t.forEach(s=>e.fragment.appendChild(this.renderMarkerHover(s,i)));const n=t.length===1?t[0]:t.sort((s,r)=>qt.compare(s.marker.severity,r.marker.severity))[0];return this.renderMarkerStatusbar(e,n,i),i}renderMarkerHover(e,t){const i=yo("div.hover-row"),n=q(i,yo("div.marker.hover-contents")),{source:s,message:r,code:a,relatedInformation:l}=e.marker;this._editor.applyFontInfo(n);const d=q(n,yo("span"));if(d.style.whiteSpace="pre-wrap",d.innerText=r,s||a)if(a&&typeof a!="string"){const c=yo("span");if(s){const p=q(c,yo("span"));p.innerText=s}const h=q(c,yo("a.code-link"));h.setAttribute("href",a.target.toString()),t.add(K(h,"click",p=>{this._openerService.open(a.target,{allowCommands:!0}),p.preventDefault(),p.stopPropagation()}));const u=q(h,yo("span"));u.innerText=a.value;const f=q(n,c);f.style.opacity="0.6",f.style.paddingLeft="6px"}else{const c=q(n,yo("span"));c.style.opacity="0.6",c.style.paddingLeft="6px",c.innerText=s&&a?`${s}(${a})`:s||`(${a})`}if(Cn(l))for(const{message:c,resource:h,startLineNumber:u,startColumn:f}of l){const p=q(n,yo("div"));p.style.marginTop="8px";const m=q(p,yo("a"));m.innerText=`${uo(h)}(${u}, ${f}): `,m.style.cursor="pointer",t.add(K(m,"click",b=>{b.stopPropagation(),b.preventDefault(),this._openerService&&this._openerService.open(h,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:u,startColumn:f}}}).catch(Oe)}));const _=q(p,yo("span"));_.innerText=c,this._editor.applyFontInfo(_)}return i}renderMarkerStatusbar(e,t,i){if((t.marker.severity===qt.Error||t.marker.severity===qt.Warning||t.marker.severity===qt.Info)&&e.statusBar.addAction({label:g("view problem","View Problem"),commandId:Sd.ID,run:()=>{var n;e.hide(),(n=zd.get(this._editor))===null||n===void 0||n.showAtMarker(t.marker),this._editor.focus()}}),!this._editor.getOption(86)){const n=e.statusBar.append(yo("div"));this.recentMarkerCodeActionsInfo&&(zC.makeKey(this.recentMarkerCodeActionsInfo.marker)===zC.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=g("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const s=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?U.None:i.add(ch(()=>n.textContent=g("checkingForQuickFixes","Checking for quick fixes..."),200));n.textContent||(n.textContent=" ");const r=this.getCodeActions(t.marker);i.add(Pe(()=>r.cancel())),r.then(a=>{if(s.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:a.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions){a.dispose(),n.textContent=g("noQuickFixes","No quick fixes available");return}n.style.display="none";let l=!1;i.add(Pe(()=>{l||a.dispose()})),e.statusBar.addAction({label:g("quick fixes","Quick Fix..."),commandId:Tg.Id,run:d=>{l=!0;const c=kh.get(this._editor),h=Fi(d);e.hide(),c==null||c.showCodeActions(rO,a,{x:h.left+6,y:h.top+h.height+6,width:h.width,height:h.height})}})},Oe)}}getCodeActions(e){return Wi(t=>U2(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),rO,Qh.None,t))}};CI=jae([CL(1,tN),CL(2,bo),CL(3,fe)],CI);const N9="editor.action.inlineSuggest.commit",T9="editor.action.inlineSuggest.showPrevious",M9="editor.action.inlineSuggest.showNext";var qae=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Gae extends U{constructor(e,t,i={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new jW),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=new Z,this.options=i,this.lookupKeybindings=typeof this.options.getKeyBinding=="function",this.toggleMenuAction=this._register(new v_(()=>{var n;return(n=this.toggleMenuActionViewItem)===null||n===void 0?void 0:n.show()},i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new fo(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,actionViewItemProvider:(n,s)=>{var r;if(n.id===v_.ID)return this.toggleMenuActionViewItem=new PC(n,n.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:De.asClassNameArray((r=i.moreIcon)!==null&&r!==void 0?r:se.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(i.actionViewItemProvider){const a=i.actionViewItemProvider(n,s);if(a)return a}if(n instanceof zf){const a=new PC(n,n.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:n.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement});return a.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(a),this.disposables.add(this._onDidChangeDropdownVisibility.add(a.onDidChangeVisibility)),a}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();const i=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),i.push(this.toggleMenuAction)),i.forEach(n=>{this.actionBar.push(n,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(n)})})}getKeybindingLabel(e){var t,i;const n=this.lookupKeybindings?(i=(t=this.options).getKeyBinding)===null||i===void 0?void 0:i.call(t,e):void 0;return an(n==null?void 0:n.getLabel())}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),super.dispose()}}class v_ extends ms{constructor(e,t){t=t||g("moreActions","More Actions..."),super(v_.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}run(){return qae(this,void 0,void 0,function*(){this.toggleDropdownMenu()})}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}v_.ID="toolbar.toggle.more";var Zae=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},rp=function(o,e){return function(t,i){e(t,i,o)}};let wI=class extends Gae{constructor(e,t,i,n,s,r,a){super(e,s,Object.assign(Object.assign({getKeyBinding:l=>{var d;return(d=r.lookupKeybinding(l.id))!==null&&d!==void 0?d:void 0}},t),{allowContextMenu:!0})),this._options=t,this._menuService=i,this._contextKeyService=n,this._contextMenuService=s,this._sessionDisposables=this._store.add(new Z),t!=null&&t.telemetrySource&&this._store.add(this.actionBar.onDidRun(l=>a.publicLog2("workbenchActionExecuted",{id:l.action.id,from:t.telemetrySource})))}setActions(e,t=[],i){var n,s,r;this._sessionDisposables.clear();const a=e.slice(),l=t.slice(),d=[];let c=0;const h=[];let u=!1;if(((n=this._options)===null||n===void 0?void 0:n.hiddenItemStrategy)!==-1)for(let f=0;f=this._options.maxNumberOfItems&&(a[p]=void 0,h[p]=m)}}NT(a),NT(h),super.setActions(a,Bi.join(h,l)),d.length>0&&this._sessionDisposables.add(K(this.getElement(),"contextmenu",f=>{var p,m,_,b;const v=this.getItemAction(f.target);if(!v)return;f.preventDefault(),f.stopPropagation();let C=!1;if(c===1&&((p=this._options)===null||p===void 0?void 0:p.hiddenItemStrategy)===0){C=!0;for(let E=0;Ethis._menuService.resetHiddenStates(i)}))),this._contextMenuService.showContextMenu({getAnchor:()=>f,getActions:()=>x,menuId:(_=this._options)===null||_===void 0?void 0:_.contextMenu,menuActionOptions:Object.assign({renderShortTitle:!0},(b=this._options)===null||b===void 0?void 0:b.menuOptions),contextKeyService:this._contextKeyService})}))}};wI=Zae([rp(2,Ea),rp(3,Ee),rp(4,xr),rp(5,ei),rp(6,mo)],wI);var A9=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Qr=function(o,e){return function(t,i){e(t,i,o)}};const Yae=fi("inline-suggestion-hints-next",se.chevronRight,g("parameterHintsNextIcon","Icon for show next parameter hint.")),Qae=fi("inline-suggestion-hints-previous",se.chevronLeft,g("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let Nh=class SI extends U{static get dropDownVisible(){return this._dropDownVisible}createCommandAction(e,t,i){const n=new ms(e,t,i,!0,()=>this._commandService.executeCommand(e)),s=this.keybindingService.lookupKeybinding(e,this._contextKeyService);let r=t;return s&&(r=g({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,s.getLabel())),n.tooltip=r,n}constructor(e,t,i,n,s,r,a){super(),this.editor=e,this.withBorder=t,this._commandService=i,this.keybindingService=s,this._contextKeyService=r,this._menuService=a,this.id=`InlineSuggestionHintsContentWidget${SI.id++}`,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=bp("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[bp("div",{style:{display:"flex"}},[bp("div@actionBar",{className:"custom-actions"}),bp("div@toolBar")])]),this.position=null,this.previousAction=this.createCommandAction(T9,g("previous","Previous"),De.asClassName(Qae)),this.availableSuggestionCountAction=new ms("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(M9,g("next","Next"),De.asClassName(Yae)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(N.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new wt(()=>{this.availableSuggestionCountAction.label=""},100)),this.disableButtonsDebounced=this._register(new wt(()=>{this.previousAction.enabled=this.nextAction.enabled=!1},100));const l=this._register(new fo(this.nodes.actionBar));l.push(this.previousAction,{icon:!0,label:!1}),l.push(this.availableSuggestionCountAction),l.push(this.nextAction,{icon:!0,label:!1}),this.toolBar=this._register(n.createInstance(yI,this.nodes.toolBar,N.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:d=>d.startsWith("primary")},actionViewItemProvider:(d,c)=>d instanceof Vo?n.createInstance(Xae,d,void 0):void 0,telemetrySource:"InlineSuggestionToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility(d=>{SI._dropDownVisible=d}))}update(e,t,i,n){this.position=e,i!==void 0&&i>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule(),i!==void 0?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${t+1}/${i}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),this.editor.layoutContentWidget(this);const s=n.map(r=>({class:void 0,id:r.id,enabled:!0,tooltip:r.tooltip||"",label:r.title,run:a=>this._commandService.executeCommand(r.id)}));for(const[r,a]of this.inlineCompletionsActionsMenus.getActions())for(const l of a)l instanceof Vo&&s.push(l);s.length>0&&s.unshift(new Bi),this.toolBar.setAdditionalSecondaryActions(s)}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this.position,preference:[1,2],positionAffinity:3}}};Nh._dropDownVisible=!1;Nh.id=0;Nh=A9([Qr(2,ri),Qr(3,Me),Qr(4,ei),Qr(5,Ee),Qr(6,Ea)],Nh);let Xae=class extends vh{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=bp("div.keybinding").root;new n0(t,Ps,{disableTitle:!0}).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}},yI=class extends wI{constructor(e,t,i,n,s,r,a,l){super(e,Object.assign({resetMenu:t},i),n,s,r,a,l),this.menuId=t,this.options2=i,this.menuService=n,this.contextKeyService=s,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this._store.add(this.menu.onDidChange(()=>this.updateToolbar())),this.updateToolbar()}updateToolbar(){var e,t,i,n,s,r,a;const l=[],d=[];Z3(this.menu,(e=this.options2)===null||e===void 0?void 0:e.menuOptions,{primary:l,secondary:d},(i=(t=this.options2)===null||t===void 0?void 0:t.toolbarOptions)===null||i===void 0?void 0:i.primaryGroup,(s=(n=this.options2)===null||n===void 0?void 0:n.toolbarOptions)===null||s===void 0?void 0:s.shouldInlineSubmenu,(a=(r=this.options2)===null||r===void 0?void 0:r.toolbarOptions)===null||a===void 0?void 0:a.useSeparatorsInPrimaryActions),d.push(...this.additionalActions),this.setActions(l,d)}setAdditionalSecondaryActions(e){this.additionalActions=e,this.updateToolbar()}};yI=A9([Qr(3,Ea),Qr(4,Ee),Qr(5,xr),Qr(6,ei),Qr(7,mo)],yI);var Jae=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Lv=function(o,e){return function(t,i){e(t,i,o)}};let Ud=class R9{static get(e){return e.getContribution(R9.ID)}constructor(e,t,i,n,s){this._editor=e,this._instantiationService=t,this._openerService=i,this._languageService=n,this._toUnhook=new Z,this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(r=>{r.hasChanged(57)&&(this._unhookEvents(),this._hookEvents())})}_hookEvents(){const e=()=>this._hideWidgets(),t=this._editor.getOption(57);this._isHoverEnabled=t.enabled,this._isHoverSticky=t.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(i=>this._onEditorMouseDown(i))),this._toUnhook.add(this._editor.onMouseUp(i=>this._onEditorMouseUp(i))),this._toUnhook.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._toUnhook.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))):(this._toUnhook.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._toUnhook.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))),this._toUnhook.add(this._editor.onMouseLeave(i=>this._onEditorMouseLeave(i))),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange(i=>this._onEditorScrollChanged(i)))}_unhookEvents(){this._toUnhook.clear()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._isMouseDown=!0;const t=e.target;if(t.type===9&&t.detail===ih.ID){this._hoverClicked=!0;return}t.type===12&&t.detail===kf.ID||(t.type!==12&&(this._hoverClicked=!1),this._hideWidgets())}_onEditorMouseUp(e){this._isMouseDown=!1}_onEditorMouseLeave(e){var t;const i=e.event.browserEvent.relatedTarget;!((t=this._contentWidget)===null||t===void 0)&&t.containsNode(i)||this._hideWidgets()}_onEditorMouseMove(e){var t,i,n,s,r,a;const l=e.target;if(this._isMouseDown&&this._hoverClicked||this._isHoverSticky&&l.type===9&&l.detail===ih.ID||this._isHoverSticky&&!(!((i=(t=e.event.browserEvent.view)===null||t===void 0?void 0:t.getSelection())===null||i===void 0)&&i.isCollapsed)||!this._isHoverSticky&&l.type===9&&l.detail===ih.ID&&(!((n=this._contentWidget)===null||n===void 0)&&n.isColorPickerVisible())||this._isHoverSticky&&l.type===12&&l.detail===kf.ID||this._isHoverSticky&&(!((s=this._contentWidget)===null||s===void 0)&&s.isVisibleFromKeyboard()))return;if(!this._isHoverEnabled){this._hideWidgets();return}if(this._getOrCreateContentWidget().maybeShowAt(e)){(r=this._glyphWidget)===null||r===void 0||r.hide();return}if(l.type===2&&l.position){(a=this._contentWidget)===null||a===void 0||a.hide(),this._glyphWidget||(this._glyphWidget=new kf(this._editor,this._languageService,this._openerService)),this._glyphWidget.startShowingAt(l.position.lineNumber);return}this._hideWidgets()}_onKeyDown(e){e.keyCode!==5&&e.keyCode!==6&&e.keyCode!==57&&e.keyCode!==4&&this._hideWidgets()}_hideWidgets(){var e,t,i;this._isMouseDown&&this._hoverClicked&&(!((e=this._contentWidget)===null||e===void 0)&&e.isColorPickerVisible())||Nh.dropDownVisible||(this._hoverClicked=!1,(t=this._glyphWidget)===null||t===void 0||t.hide(),(i=this._contentWidget)===null||i===void 0||i.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(r1,this._editor)),this._contentWidget}isColorPickerVisible(){var e;return((e=this._contentWidget)===null||e===void 0?void 0:e.isColorPickerVisible())||!1}showContentHover(e,t,i,n){this._getOrCreateContentWidget().startShowingAtRange(e,t,i,n)}dispose(){var e,t;this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),(e=this._glyphWidget)===null||e===void 0||e.dispose(),(t=this._contentWidget)===null||t===void 0||t.dispose()}};Ud.ID="editor.contrib.hover";Ud=Jae([Lv(1,Me),Lv(2,bo),Lv(3,Ut),Lv(4,Ee)],Ud);class ele extends ce{constructor(){super({id:"editor.action.showHover",label:g({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:T.editorTextFocus,primary:ki(2089,2087),weight:100}})}run(e,t){if(!t.hasModel())return;const i=Ud.get(t);if(!i)return;const n=t.getPosition(),s=new y(n.lineNumber,n.column,n.lineNumber,n.column),r=t.getOption(2)===2;i.showContentHover(s,1,1,r)}}class tle extends ce{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:g({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){const i=Ud.get(t);if(!i)return;const n=t.getPosition();if(!n)return;const s=new y(n.lineNumber,n.column,n.lineNumber,n.column),r=Eh.get(t);if(!r)return;r.startFindDefinitionFromCursor(n).then(()=>{i.showContentHover(s,1,1,!0)})}}lt(Ud.ID,Ud,2);J(ele);J(tle);ou.register(l1);ou.register(CI);Ho((o,e)=>{const t=o.getColor(mj);t&&(e.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${t.transparent(.5)}; }`))});class LI extends U{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(t=>this.onMouseDown(t)))}dispose(){super.dispose()}onMouseDown(e){const t=e.target;if(t.type!==6||!t.detail.injectedText||t.detail.injectedText.options.attachedData!==U8||!t.range)return;const i=this._editor.getContribution(Ud.ID);if(i&&!i.isColorPickerVisible()){const n=new y(t.range.startLineNumber,t.range.startColumn+1,t.range.endLineNumber,t.range.endColumn+1);i.showContentHover(n,1,0,!1)}}}LI.ID="editor.contrib.colorContribution";lt(LI.ID,LI,2);ou.register(Jk);const Xw=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let o;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?o=crypto.getRandomValues.bind(crypto):o=function(i){for(let n=0;nP9(this,void 0,void 0,function*(){return o}),asFile:()=>{},value:typeof o=="string"?o:void 0}}function ile(o,e,t){return{id:Xw(),asString:()=>P9(this,void 0,void 0,function*(){return""}),asFile:()=>({name:o,uri:e,data:t}),value:void 0}}class O9{constructor(){this._entries=new Map}get size(){return this._entries.size}has(e){return this._entries.has(this.toKey(e))}get(e){var t;return(t=this._entries.get(this.toKey(e)))===null||t===void 0?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*entries(){for(const[e,t]of this._entries.entries())for(const i of t)yield[e,i]}values(){return Array.from(this._entries.values()).flat()}forEach(e){for(const[t,i]of this.entries())e(i,t)}toKey(e){return e.toLowerCase()}}const Jw=Object.freeze({create:o=>Dd(o.map(e=>e.toString())).join(`\r + hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof a.open=="string"&&typeof a.token=="string"&&typeof a.close=="string")s.push({token:a.token+t.tokenPostfix,open:pd(t,a.open),close:pd(t,a.close)});else throw Rt(t,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return t.brackets=s,t.noThrow=!0,t}var Fne=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};function Bne(o){Bf.registerLanguage(o)}function Wne(){let o=[];return o=o.concat(Bf.getLanguages()),o}function Vne(o){return ke.get(Ut).languageIdCodec.encodeLanguageId(o)}function Hne(o,e){const i=ke.get(Ut).onDidEncounterLanguage(n=>{n===o&&(i.dispose(),e())});return i}function zne(o,e){if(!ke.get(Ut).isRegisteredLanguageId(o))throw new Error(`Cannot set configuration for unknown language ${o}`);return ke.get(ui).register(o,e,100)}class Une{constructor(e,t){this._languageId=e,this._actual=t}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i){if(typeof this._actual.tokenize=="function")return u_.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,t,i){const n=this._actual.tokenizeEncoded(e,i);return new D1(n.tokens,n.endState)}}class u_{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=n}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const i=[];let n=0;for(let s=0,r=e.length;s0&&s[r-1]===u)continue;let f=h.startIndex;d===0?f=0:fFne(this,void 0,void 0,function*(){const i=yield Promise.resolve(e.create());return i?$ne(i)?W7(o,i):new km(ke.get(Ut),ke.get(Ks),o,F7(o,i),ke.get(at)):null})};return Kt.registerFactory(o,t)}function qne(o,e){if(!ke.get(Ut).isRegisteredLanguageId(o))throw new Error(`Cannot set tokens provider for unknown language ${o}`);return B7(e)?T2(o,{create:()=>e}):Kt.register(o,W7(o,e))}function Gne(o,e){const t=i=>new km(ke.get(Ut),ke.get(Ks),o,F7(o,i),ke.get(at));return B7(e)?T2(o,{create:()=>e}):Kt.register(o,t(e))}function Zne(o,e){return ke.get(fe).referenceProvider.register(o,e)}function Yne(o,e){return ke.get(fe).renameProvider.register(o,e)}function Qne(o,e){return ke.get(fe).signatureHelpProvider.register(o,e)}function Xne(o,e){return ke.get(fe).hoverProvider.register(o,{provideHover:(i,n,s)=>{const r=i.getWordAtPosition(n);return Promise.resolve(e.provideHover(i,n,s)).then(a=>{if(a)return!a.range&&r&&(a.range=new y(n.lineNumber,r.startColumn,n.lineNumber,r.endColumn)),a.range||(a.range=new y(n.lineNumber,n.column,n.lineNumber,n.column)),a})}})}function Jne(o,e){return ke.get(fe).documentSymbolProvider.register(o,e)}function ese(o,e){return ke.get(fe).documentHighlightProvider.register(o,e)}function tse(o,e){return ke.get(fe).linkedEditingRangeProvider.register(o,e)}function ise(o,e){return ke.get(fe).definitionProvider.register(o,e)}function nse(o,e){return ke.get(fe).implementationProvider.register(o,e)}function sse(o,e){return ke.get(fe).typeDefinitionProvider.register(o,e)}function ose(o,e){return ke.get(fe).codeLensProvider.register(o,e)}function rse(o,e,t){return ke.get(fe).codeActionProvider.register(o,{providedCodeActionKinds:t==null?void 0:t.providedCodeActionKinds,documentation:t==null?void 0:t.documentation,provideCodeActions:(n,s,r,a)=>{const d=ke.get(Ta).read({resource:n.uri}).filter(c=>y.areIntersectingOrTouching(c,s));return e.provideCodeActions(n,s,{markers:d,only:r.only,trigger:r.trigger},a)},resolveCodeAction:e.resolveCodeAction})}function ase(o,e){return ke.get(fe).documentFormattingEditProvider.register(o,e)}function lse(o,e){return ke.get(fe).documentRangeFormattingEditProvider.register(o,e)}function dse(o,e){return ke.get(fe).onTypeFormattingEditProvider.register(o,e)}function cse(o,e){return ke.get(fe).linkProvider.register(o,e)}function hse(o,e){return ke.get(fe).completionProvider.register(o,e)}function use(o,e){return ke.get(fe).colorProvider.register(o,e)}function fse(o,e){return ke.get(fe).foldingRangeProvider.register(o,e)}function gse(o,e){return ke.get(fe).declarationProvider.register(o,e)}function pse(o,e){return ke.get(fe).selectionRangeProvider.register(o,e)}function mse(o,e){return ke.get(fe).documentSemanticTokensProvider.register(o,e)}function _se(o,e){return ke.get(fe).documentRangeSemanticTokensProvider.register(o,e)}function vse(o,e){return ke.get(fe).inlineCompletionsProvider.register(o,e)}function bse(o,e){return ke.get(fe).inlayHintsProvider.register(o,e)}function Cse(){return{register:Bne,getLanguages:Wne,onLanguage:Hne,getEncodedLanguageId:Vne,setLanguageConfiguration:zne,setColorMap:Kne,registerTokensProviderFactory:T2,setTokensProvider:qne,setMonarchTokensProvider:Gne,registerReferenceProvider:Zne,registerRenameProvider:Yne,registerCompletionItemProvider:hse,registerSignatureHelpProvider:Qne,registerHoverProvider:Xne,registerDocumentSymbolProvider:Jne,registerDocumentHighlightProvider:ese,registerLinkedEditingRangeProvider:tse,registerDefinitionProvider:ise,registerImplementationProvider:nse,registerTypeDefinitionProvider:sse,registerCodeLensProvider:ose,registerCodeActionProvider:rse,registerDocumentFormattingEditProvider:ase,registerDocumentRangeFormattingEditProvider:lse,registerOnTypeFormattingEditProvider:dse,registerLinkProvider:cse,registerColorProvider:use,registerFoldingRangeProvider:fse,registerDeclarationProvider:gse,registerSelectionRangeProvider:pse,registerDocumentSemanticTokensProvider:mse,registerDocumentRangeSemanticTokensProvider:_se,registerInlineCompletionsProvider:vse,registerInlayHintsProvider:bse,DocumentHighlightKind:dD,CompletionItemKind:nD,CompletionItemTag:sD,CompletionItemInsertTextRule:Fb,SymbolKind:MD,SymbolTag:AD,IndentAction:gD,CompletionTriggerKind:oD,SignatureHelpTriggerKind:TD,InlayHintKind:mD,InlineCompletionTriggerKind:_D,CodeActionTriggerType:iD,FoldingRangeKind:br}}const M2=Je("IEditorCancelService"),V7=new de("cancellableOperation",!1,g("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));ot(M2,class{constructor(){this._tokens=new WeakMap}add(o,e){let t=this._tokens.get(o);t||(t=o.invokeWithinContext(n=>{const s=V7.bindTo(n.get(Ee)),r=new ln;return{key:s,tokens:r}}),this._tokens.set(o,t));let i;return t.key.set(!0),i=t.tokens.push(e),()=>{i&&(i(),t.key.set(!t.tokens.isEmpty()),i=void 0)}}cancel(o){const e=this._tokens.get(o);if(!e)return;const t=e.tokens.pop();t&&(t.cancel(),e.key.set(!e.tokens.isEmpty()))}},1);class wse extends Xi{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext(i=>i.get(M2).add(e,this))}dispose(){this._unregister(),super.dispose()}}ie(new class extends Ji{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:V7})}runEditorCommand(o,e){o.get(M2).cancel(e)}});let H7=class jk{constructor(e,t){if(this.flags=t,this.flags&1){const i=e.getModel();this.modelVersionId=i?to("{0}#{1}",i.uri.toString(),i.getVersionId()):null}else this.modelVersionId=null;this.flags&4?this.position=e.getPosition():this.position=null,this.flags&2?this.selection=e.getSelection():this.selection=null,this.flags&8?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof jk))return!1;const t=e;return!(this.modelVersionId!==t.modelVersionId||this.scrollLeft!==t.scrollLeft||this.scrollTop!==t.scrollTop||!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position)||!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))}validate(e){return this._equals(new jk(e,this.flags))}};class Sh extends wse{constructor(e,t,i,n){super(e,n),this._listener=new Z,t&4&&this._listener.add(e.onDidChangeCursorPosition(s=>{(!i||!y.containsPosition(i,s.position))&&this.cancel()})),t&2&&this._listener.add(e.onDidChangeCursorSelection(s=>{(!i||!y.containsRange(i,s.selection))&&this.cancel()})),t&8&&this._listener.add(e.onDidScrollChange(s=>this.cancel())),t&1&&(this._listener.add(e.onDidChangeModel(s=>this.cancel())),this._listener.add(e.onDidChangeModelContent(s=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}}class A2 extends Xi{constructor(e,t){super(t),this._listener=e.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}function La(o){return o&&typeof o.getEditorType=="function"?o.getEditorType()===U_.ICodeEditor:!1}function z7(o){return o&&typeof o.getEditorType=="function"?o.getEditorType()===U_.IDiffEditor:!1}function Sse(o){return!!o&&typeof o=="object"&&typeof o.onDidChangeActiveEditor=="function"}function U7(o){return La(o)?o:z7(o)?o.getModifiedEditor():Sse(o)&&La(o.activeCodeEditor)?o.activeCodeEditor:null}class ng{static _handleEolEdits(e,t){let i;const n=[];for(const s of t)typeof s.eol=="number"&&(i=s.eol),s.range&&typeof s.text=="string"&&n.push(s);return typeof i=="number"&&e.hasModel()&&e.getModel().pushEOL(i),n}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),n=i.validateRange(t.range);return i.getFullModelRange().equalsRange(n)}static execute(e,t,i){i&&e.pushUndoStop();const n=Ca.capture(e),s=ng._handleEolEdits(e,t);s.length===1&&ng._isFullModelReplaceEdit(e,s[0])?e.executeEdits("formatEditsCommand",s.map(r=>Ht.replace(y.lift(r.range),r.text))):e.executeEdits("formatEditsCommand",s.map(r=>Ht.replaceMove(y.lift(r.range),r.text))),i&&e.pushUndoStop(),n.restoreRelativeVerticalPositionOfCursor(e)}}class Jy{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}}var Lr=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};function R2(o){if(o=o.filter(n=>n.range),!o.length)return;let{range:e}=o[0];for(let n=1;n0&&y.areIntersectingOrTouching(d[c-1],m)?d[c-1]=y.fromPositions(d[c-1].getStartPosition(),m.getEndPosition()):c=d.push(m);const h=m=>Lr(this,void 0,void 0,function*(){var _,b;r.trace("[format][provideDocumentRangeFormattingEdits] (request)",(_=e.extensionId)===null||_===void 0?void 0:_.value,m);const v=(yield e.provideDocumentRangeFormattingEdits(a,m,a.getFormattingOptions(),l.token))||[];return r.trace("[format][provideDocumentRangeFormattingEdits] (response)",(b=e.extensionId)===null||b===void 0?void 0:b.value,v),v}),u=(m,_)=>{if(!m.length||!_.length)return!1;const b=m.reduce((v,C)=>y.plusRange(v,C.range),m[0].range);if(!_.some(v=>y.intersectRanges(b,v.range)))return!1;for(const v of m)for(const C of _)if(y.intersectRanges(v.range,C.range))return!0;return!1},f=[],p=[];try{for(const m of d){if(l.token.isCancellationRequested)return!0;p.push(yield h(m))}for(let m=0;m({text:b.text,range:y.lift(b.range),forceMoveMarkers:!0})),b=>{for(const{range:v}of b)if(y.areIntersectingOrTouching(v,_))return[new ue(v.startLineNumber,v.startColumn,v.endLineNumber,v.endColumn)];return null})}return!0})}function Lse(o,e,t,i,n){return Lr(this,void 0,void 0,function*(){const s=o.get(Me),r=o.get(fe),a=La(e)?e.getModel():e,l=$7(r.documentFormattingEditProvider,r.documentRangeFormattingEditProvider,a),d=yield yh.select(l,a,t);d&&(i.report(d),yield s.invokeFunction(Dse,d,e,t,n))})}function Dse(o,e,t,i,n){return Lr(this,void 0,void 0,function*(){const s=o.get($o);let r,a;La(t)?(r=t.getModel(),a=new Sh(t,5,void 0,n)):(r=t,a=new A2(t,n));let l;try{const d=yield e.provideDocumentFormattingEdits(r,r.getFormattingOptions(),a.token);if(l=yield s.computeMoreMinimalEdits(r.uri,d),a.token.isCancellationRequested)return!0}finally{a.dispose()}if(!l||l.length===0)return!1;if(La(t))ng.execute(t,l,i!==2),i!==2&&(R2(l),t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1));else{const[{range:d}]=l,c=new ue(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn);r.pushEditOperations([c],l.map(h=>({text:h.text,range:y.lift(h.range),forceMoveMarkers:!0})),h=>{for(const{range:u}of h)if(y.areIntersectingOrTouching(u,c))return[new ue(u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn)];return null})}return!0})}function xse(o,e,t,i,n,s){return Lr(this,void 0,void 0,function*(){const r=e.documentRangeFormattingEditProvider.ordered(t);for(const a of r){const l=yield Promise.resolve(a.provideDocumentRangeFormattingEdits(t,i,n,s)).catch(Vi);if(Cn(l))return yield o.computeMoreMinimalEdits(t.uri,l)}})}function kse(o,e,t,i,n){return Lr(this,void 0,void 0,function*(){const s=$7(e.documentFormattingEditProvider,e.documentRangeFormattingEditProvider,t);for(const r of s){const a=yield Promise.resolve(r.provideDocumentFormattingEdits(t,i,n)).catch(Vi);if(Cn(a))return yield o.computeMoreMinimalEdits(t.uri,a)}})}function K7(o,e,t,i,n,s,r){const a=e.onTypeFormattingEditProvider.ordered(t);return a.length===0||a[0].autoFormatTriggerCharacters.indexOf(n)<0?Promise.resolve(void 0):Promise.resolve(a[0].provideOnTypeFormattingEdits(t,i,n,s,r)).catch(Vi).then(l=>o.computeMoreMinimalEdits(t.uri,l))}st.registerCommand("_executeFormatRangeProvider",function(o,...e){return Lr(this,void 0,void 0,function*(){const[t,i,n]=e;_t(Ce.isUri(t)),_t(y.isIRange(i));const s=o.get(os),r=o.get($o),a=o.get(fe),l=yield s.createModelReference(t);try{return xse(r,a,l.object.textEditorModel,y.lift(i),n,Ye.None)}finally{l.dispose()}})});st.registerCommand("_executeFormatDocumentProvider",function(o,...e){return Lr(this,void 0,void 0,function*(){const[t,i]=e;_t(Ce.isUri(t));const n=o.get(os),s=o.get($o),r=o.get(fe),a=yield n.createModelReference(t);try{return kse(s,r,a.object.textEditorModel,i,Ye.None)}finally{a.dispose()}})});st.registerCommand("_executeFormatOnTypeProvider",function(o,...e){return Lr(this,void 0,void 0,function*(){const[t,i,n,s]=e;_t(Ce.isUri(t)),_t(W.isIPosition(i)),_t(typeof n=="string");const r=o.get(os),a=o.get($o),l=o.get(fe),d=yield r.createModelReference(t);try{return K7(a,l,d.object.textEditorModel,W.lift(i),n,s,Ye.None)}finally{d.dispose()}})});var eL;Dr.wrappingIndent.defaultValue=0;Dr.glyphMargin.defaultValue=!1;Dr.autoIndent.defaultValue=3;Dr.overviewRulerLanes.defaultValue=2;yh.setFormatterSelector((o,e,t)=>Promise.resolve(o[0]));const zn=W4();zn.editor=Tne();zn.languages=Cse();const q7=zn.CancellationTokenSource,G7=zn.Emitter,Z7=zn.KeyCode,Y7=zn.KeyMod,Q7=zn.Position,X7=zn.Range,J7=zn.Selection,e8=zn.SelectionDirection,t8=zn.MarkerSeverity,i8=zn.MarkerTag,n8=zn.Uri,s8=zn.Token,ja=zn.editor,P2=zn.languages;(!((eL=ci.MonacoEnvironment)===null||eL===void 0)&&eL.globalAPI||typeof define=="function"&&define.amd)&&(self.monaco=zn);typeof self.require<"u"&&typeof self.require.config=="function"&&self.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});const l0=Object.freeze(Object.defineProperty({__proto__:null,CancellationTokenSource:q7,Emitter:G7,KeyCode:Z7,KeyMod:Y7,MarkerSeverity:t8,MarkerTag:i8,Position:Q7,Range:X7,Selection:J7,SelectionDirection:e8,Token:s8,Uri:n8,editor:ja,languages:P2},Symbol.toStringTag,{value:"Module"}));var Ise=Object.defineProperty,Ese=Object.getOwnPropertyDescriptor,Nse=Object.getOwnPropertyNames,Tse=Object.prototype.hasOwnProperty,Mse=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Nse(e))!Tse.call(o,n)&&n!==t&&Ise(o,n,{get:()=>e[n],enumerable:!(i=Ese(e,n))||i.enumerable});return o},Ase=(o,e,t)=>(Mse(o,e,"default"),t),Pp={};Ase(Pp,l0);var o8={},tL={},r8=class{constructor(o){Zt(this,"_languageId");Zt(this,"_loadingTriggered");Zt(this,"_lazyLoadPromise");Zt(this,"_lazyLoadPromiseResolve");Zt(this,"_lazyLoadPromiseReject");this._languageId=o,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}static getOrCreate(o){return tL[o]||(tL[o]=new r8(o)),tL[o]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,o8[this._languageId].loader().then(o=>this._lazyLoadPromiseResolve(o),o=>this._lazyLoadPromiseReject(o))),this._lazyLoadPromise}};function ve(o){const e=o.id;o8[e]=o,Pp.languages.register(o);const t=r8.getOrCreate(e);Pp.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),Pp.languages.onLanguage(e,async()=>{const i=await t.load();Pp.languages.setLanguageConfiguration(e,i.conf)})}ve({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>me(()=>import("./abap-CRCWOmpq.js"),[])});ve({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>me(()=>import("./apex-DnsZk_dE.js"),[])});ve({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>me(()=>import("./azcli-1IWB1ccx.js"),[])});ve({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>me(()=>import("./bat-DPkNLes8.js"),[])});ve({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>me(()=>import("./bicep-Corcdgou.js"),[])});ve({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>me(()=>import("./cameligo-CGrWLZr3.js"),[])});ve({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>me(()=>import("./clojure-D9WOWImG.js"),[])});ve({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>me(()=>import("./coffee-B7EJu28W.js"),[])});ve({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>me(()=>import("./cpp-BaF-TIV3.js"),[])});ve({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>me(()=>import("./cpp-BaF-TIV3.js"),[])});ve({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>me(()=>import("./csharp-BoL64M5l.js"),[])});ve({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>me(()=>import("./csp-C46ZqvIl.js"),[])});ve({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>me(()=>import("./css-DQU6DXDx.js"),[])});ve({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>me(()=>import("./cypher-D84EuPTj.js"),[])});ve({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>me(()=>import("./dart-D8lhlL1r.js"),[])});ve({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>me(()=>import("./dockerfile-DLk6rpji.js"),[])});ve({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>me(()=>import("./ecl-BO6FnfXk.js"),[])});ve({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>me(()=>import("./elixir-DhnAcdHF.js"),[])});ve({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>me(()=>import("./flow9-Cac8vKd7.js"),[])});ve({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>me(()=>import("./fsharp-fd1GTHhf.js"),[])});ve({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>me(()=>import("./freemarker2-DR4awqSq.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagAutoInterpolationDollar)});ve({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>me(()=>import("./freemarker2-DR4awqSq.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagAngleInterpolationDollar)});ve({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>me(()=>import("./freemarker2-DR4awqSq.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagBracketInterpolationDollar)});ve({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>me(()=>import("./freemarker2-DR4awqSq.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagAngleInterpolationBracket)});ve({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>me(()=>import("./freemarker2-DR4awqSq.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagBracketInterpolationBracket)});ve({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>me(()=>import("./freemarker2-DR4awqSq.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagAutoInterpolationDollar)});ve({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>me(()=>import("./freemarker2-DR4awqSq.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagAutoInterpolationBracket)});ve({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>me(()=>import("./go-O9LJTZXk.js"),[])});ve({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>me(()=>import("./graphql-LQdxqEYJ.js"),[])});ve({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>me(()=>import("./handlebars-CN37euyO.js"),__vite__mapDeps([3,1,2]))});ve({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>me(()=>import("./hcl-DxDQ3s82.js"),[])});ve({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>me(()=>import("./html-_59g4-uc.js"),__vite__mapDeps([4,1,2]))});ve({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>me(()=>import("./ini-BvajGCUy.js"),[])});ve({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>me(()=>import("./java-SYsfObOQ.js"),[])});ve({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>me(()=>import("./javascript-DGPiJBBE.js"),__vite__mapDeps([5,6,1,2]))});ve({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>me(()=>import("./julia-DQXNmw_w.js"),[])});ve({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>me(()=>import("./kotlin-qQ0MG-9I.js"),[])});ve({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>me(()=>import("./less-GGFNNJHn.js"),[])});ve({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>me(()=>import("./lexon-Canl7DCW.js"),[])});ve({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>me(()=>import("./lua-D28Ae8-K.js"),[])});ve({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>me(()=>import("./liquid-D3wQ_0c-.js"),__vite__mapDeps([7,1,2]))});ve({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>me(()=>import("./m3-DPitgjJI.js"),[])});ve({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>me(()=>import("./markdown-B811l8j2.js"),[])});ve({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>me(()=>import("./mips-CdjsipkG.js"),[])});ve({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>me(()=>import("./msdax-CYqgjx_P.js"),[])});ve({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>me(()=>import("./mysql-BHd6q0vd.js"),[])});ve({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>me(()=>import("./objective-c-B1aVtJYH.js"),[])});ve({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>me(()=>import("./pascal-BhNW15KB.js"),[])});ve({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>me(()=>import("./pascaligo-5jv8CcQD.js"),[])});ve({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:()=>me(()=>import("./perl-DlYyT36c.js"),[])});ve({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>me(()=>import("./pgsql-Dy0bjov7.js"),[])});ve({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>me(()=>import("./php-120yhfDK.js"),[])});ve({id:"pla",extensions:[".pla"],loader:()=>me(()=>import("./pla-CjnFlu4u.js"),[])});ve({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>me(()=>import("./postiats-CQpG440k.js"),[])});ve({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>me(()=>import("./powerquery-DdJtto1Z.js"),[])});ve({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>me(()=>import("./powershell-Bu_VLpJB.js"),[])});ve({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>me(()=>import("./protobuf-IBS6jZEB.js"),[])});ve({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>me(()=>import("./pug-kFxLfcjb.js"),[])});ve({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>me(()=>import("./python-CSObIQxI.js"),__vite__mapDeps([8,1,2]))});ve({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>me(()=>import("./qsharp-gaqVKiJ_.js"),[])});ve({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>me(()=>import("./r-BIFz-_sK.js"),[])});ve({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>me(()=>import("./razor-DGbs-Ass.js"),__vite__mapDeps([9,1,2]))});ve({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>me(()=>import("./redis-CHOsPHWR.js"),[])});ve({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>me(()=>import("./redshift-CBifECDb.js"),[])});ve({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>me(()=>import("./restructuredtext-CghPJEOS.js"),[])});ve({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>me(()=>import("./ruby-CYWGW-b1.js"),[])});ve({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>me(()=>import("./rust-DMDD0SHb.js"),[])});ve({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>me(()=>import("./sb-BYAiYHFx.js"),[])});ve({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>me(()=>import("./scala-Bqvq8jcR.js"),[])});ve({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>me(()=>import("./scheme-Dhb-2j9p.js"),[])});ve({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>me(()=>import("./scss-CTwUZ5N7.js"),[])});ve({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>me(()=>import("./shell-CsDZo4DB.js"),[])});ve({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>me(()=>import("./solidity-CME5AdoB.js"),[])});ve({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>me(()=>import("./sophia-RYC1BQQz.js"),[])});ve({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>me(()=>import("./sparql-KEyrF7De.js"),[])});ve({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>me(()=>import("./sql-BdTr02Mf.js"),[])});ve({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:()=>me(()=>import("./st-C8kzSboH.js"),[])});ve({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>me(()=>import("./swift-D7IUmUK8.js"),[])});ve({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>me(()=>import("./systemverilog-DgMryOEJ.js"),[])});ve({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>me(()=>import("./systemverilog-DgMryOEJ.js"),[])});ve({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>me(()=>import("./tcl-PloMZuKG.js"),[])});ve({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>me(()=>import("./twig-bne2BnKZ.js"),[])});ve({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>me(()=>import("./typescript-L8Bz5EfD.js"),__vite__mapDeps([6,1,2]))});ve({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>me(()=>import("./vb-BwAE3J76.js"),[])});ve({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\me(()=>import("./xml-C8Om98hV.js"),__vite__mapDeps([10,1,2]))});ve({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>me(()=>import("./yaml-WOLPGjoo.js"),__vite__mapDeps([11,1,2]))});var Rse=Object.defineProperty,Pse=Object.getOwnPropertyDescriptor,Ose=Object.getOwnPropertyNames,Fse=Object.prototype.hasOwnProperty,Bse=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ose(e))!Fse.call(o,n)&&n!==t&&Rse(o,n,{get:()=>e[n],enumerable:!(i=Pse(e,n))||i.enumerable});return o},Wse=(o,e,t)=>(Bse(o,e,"default"),t),Ng={};Wse(Ng,l0);var O2=class{constructor(e,t,i){Zt(this,"_onDidChange",new Ng.Emitter);Zt(this,"_options");Zt(this,"_modeConfiguration");Zt(this,"_languageId");this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},F2={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},B2={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},a8=new O2("css",F2,B2),l8=new O2("scss",F2,B2),d8=new O2("less",F2,B2);Ng.languages.css={cssDefaults:a8,lessDefaults:d8,scssDefaults:l8};function W2(){return me(()=>import("./cssMode-C9P57343.js"),__vite__mapDeps([12,1,2]))}Ng.languages.onLanguage("less",()=>{W2().then(o=>o.setupMode(d8))});Ng.languages.onLanguage("scss",()=>{W2().then(o=>o.setupMode(l8))});Ng.languages.onLanguage("css",()=>{W2().then(o=>o.setupMode(a8))});var Vse=Object.defineProperty,Hse=Object.getOwnPropertyDescriptor,zse=Object.getOwnPropertyNames,Use=Object.prototype.hasOwnProperty,$se=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of zse(e))!Use.call(o,n)&&n!==t&&Vse(o,n,{get:()=>e[n],enumerable:!(i=Hse(e,n))||i.enumerable});return o},jse=(o,e,t)=>($se(o,e,"default"),t),Aw={};jse(Aw,l0);var Kse=class{constructor(e,t,i){Zt(this,"_onDidChange",new Aw.Emitter);Zt(this,"_options");Zt(this,"_modeConfiguration");Zt(this,"_languageId");this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},qse={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},Rw={format:qse,suggest:{},data:{useDefaultDataProvider:!0}};function Pw(o){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:o===hm,documentFormattingEdits:o===hm,documentRangeFormattingEdits:o===hm}}var hm="html",AP="handlebars",RP="razor",c8=Ow(hm,Rw,Pw(hm)),Gse=c8.defaults,h8=Ow(AP,Rw,Pw(AP)),Zse=h8.defaults,u8=Ow(RP,Rw,Pw(RP)),Yse=u8.defaults;Aw.languages.html={htmlDefaults:Gse,razorDefaults:Yse,handlebarDefaults:Zse,htmlLanguageService:c8,handlebarLanguageService:h8,razorLanguageService:u8,registerHTMLLanguageService:Ow};function Qse(){return me(()=>import("./htmlMode-D9Mlms7n.js"),__vite__mapDeps([13,1,2]))}function Ow(o,e=Rw,t=Pw(o)){const i=new Kse(o,e,t);let n;const s=Aw.languages.onLanguage(o,async()=>{n=(await Qse()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),n==null||n.dispose(),n=void 0}}}var Xse=Object.defineProperty,Jse=Object.getOwnPropertyDescriptor,eoe=Object.getOwnPropertyNames,toe=Object.prototype.hasOwnProperty,ioe=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of eoe(e))!toe.call(o,n)&&n!==t&&Xse(o,n,{get:()=>e[n],enumerable:!(i=Jse(e,n))||i.enumerable});return o},noe=(o,e,t)=>(ioe(o,e,"default"),t),d0={};noe(d0,l0);var soe=class{constructor(e,t,i){Zt(this,"_onDidChange",new d0.Emitter);Zt(this,"_diagnosticsOptions");Zt(this,"_modeConfiguration");Zt(this,"_languageId");this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},ooe={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},roe={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},f8=new soe("json",ooe,roe);d0.languages.json={jsonDefaults:f8};function aoe(){return me(()=>import("./jsonMode-BcJk7cNl.js"),__vite__mapDeps([14,1,2]))}d0.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});d0.languages.onLanguage("json",()=>{aoe().then(o=>o.setupMode(f8))});var loe=Object.defineProperty,doe=Object.getOwnPropertyDescriptor,coe=Object.getOwnPropertyNames,hoe=Object.prototype.hasOwnProperty,uoe=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of coe(e))!hoe.call(o,n)&&n!==t&&loe(o,n,{get:()=>e[n],enumerable:!(i=doe(e,n))||i.enumerable});return o},foe=(o,e,t)=>(uoe(o,e,"default"),t),goe="4.5.5",sg={};foe(sg,l0);var g8=(o=>(o[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o))(g8||{}),p8=(o=>(o[o.None=0]="None",o[o.Preserve=1]="Preserve",o[o.React=2]="React",o[o.ReactNative=3]="ReactNative",o[o.ReactJSX=4]="ReactJSX",o[o.ReactJSXDev=5]="ReactJSXDev",o))(p8||{}),m8=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(m8||{}),_8=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(_8||{}),v8=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(v8||{}),b8=class{constructor(o,e,t,i,n){Zt(this,"_onDidChange",new sg.Emitter);Zt(this,"_onDidExtraLibsChange",new sg.Emitter);Zt(this,"_extraLibs");Zt(this,"_removedExtraLibs");Zt(this,"_eagerModelSync");Zt(this,"_compilerOptions");Zt(this,"_diagnosticsOptions");Zt(this,"_workerOptions");Zt(this,"_onDidExtraLibsChangeTimeout");Zt(this,"_inlayHintsOptions");Zt(this,"_modeConfiguration");this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(o),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(o,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===o)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:o,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];n&&n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(o){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),o&&o.length>0)for(const e of o){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(o){this._compilerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(o){this._workerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(o){this._inlayHintsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(o){}setEagerModelSync(o){this._eagerModelSync=o}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(void 0)}},poe=goe,C8={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},w8=new b8({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},C8),S8=new b8({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},C8),moe=()=>Fw().then(o=>o.getTypeScriptWorker()),_oe=()=>Fw().then(o=>o.getJavaScriptWorker());sg.languages.typescript={ModuleKind:g8,JsxEmit:p8,NewLineKind:m8,ScriptTarget:_8,ModuleResolutionKind:v8,typescriptVersion:poe,typescriptDefaults:w8,javascriptDefaults:S8,getTypeScriptWorker:moe,getJavaScriptWorker:_oe};function Fw(){return me(()=>import("./tsMode-DVLo0ZTq.js"),__vite__mapDeps([15,1,2]))}sg.languages.onLanguage("typescript",()=>Fw().then(o=>o.setupTypeScript(w8)));sg.languages.onLanguage("javascript",()=>Fw().then(o=>o.setupJavaScript(S8)));var voe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},boe=function(o,e){return function(t,i){e(t,i,o)}},Bw=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};const Ww=new de("selectionAnchorSet",!1);let yl=class y8{static get(e){return e.getContribution(y8.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=Ww.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(ue.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new Yn().appendText(g("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),dn(g("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(ue.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};yl.ID="editor.contrib.selectionAnchorController";yl=voe([boe(1,Ee)],yl);class Coe extends ce{constructor(){super({id:"editor.action.setSelectionAnchor",label:g("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:T.editorTextFocus,primary:ki(2089,2080),weight:100}})}run(e,t){var i;return Bw(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.setSelectionAnchor()})}}class woe extends ce{constructor(){super({id:"editor.action.goToSelectionAnchor",label:g("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:Ww})}run(e,t){var i;return Bw(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.goToSelectionAnchor()})}}class Soe extends ce{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:g("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:Ww,kbOpts:{kbExpr:T.editorTextFocus,primary:ki(2089,2089),weight:100}})}run(e,t){var i;return Bw(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.selectFromAnchorToCursor()})}}class yoe extends ce{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:g("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:Ww,kbOpts:{kbExpr:T.editorTextFocus,primary:9,weight:100}})}run(e,t){var i;return Bw(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.cancelSelectionAnchor()})}}lt(yl.ID,yl,4);J(Coe);J(woe);J(Soe);J(yoe);const Loe=M("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},g("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Doe extends ce{constructor(){super({id:"editor.action.jumpToBracket",label:g("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:T.editorTextFocus,primary:3160,weight:100}})}run(e,t){var i;(i=vr.get(t))===null||i===void 0||i.jumpToBracket()}}class xoe extends ce{constructor(){super({id:"editor.action.selectToBracket",label:g("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let s=!0;i&&i.selectBrackets===!1&&(s=!1),(n=vr.get(t))===null||n===void 0||n.selectToBracket(s)}}class koe{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class vr extends U{static get(e){return e.getContribution(vr.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new wt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(68),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(68)&&(this._matchBrackets=this._editor.getOption(68),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let r=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?r=s[1].getStartPosition():s[1].containsPosition(n)&&(r=s[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new ue(r.lineNumber,r.column,r.lineNumber,r.column):new ue(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const s=n.getStartPosition();let r=t.bracketPairs.matchBracket(s);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(s),!r)){const d=t.bracketPairs.findNextBracket(s);d&&d.range&&(r=t.bracketPairs.matchBracket(d.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(y.compareRangesUsingStarts);const[d,c]=r;if(a=e?d.getStartPosition():d.getEndPosition(),l=e?c.getEndPosition():c.getStartPosition(),c.containsPosition(s)){const h=a;a=l,l=h}}a&&l&&i.push(new ue(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let r=0;for(let h=0,u=e.length;h1&&s.sort(W.compare);const a=[];let l=0,d=0;const c=n.length;for(let h=0,u=s.length;h0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}J(Toe);var Moe=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};const Lh="9_cutcopypaste",Aoe=ur||document.queryCommandSupported("cut"),D8=ur||document.queryCommandSupported("copy"),Roe=typeof navigator.clipboard>"u"||ro?document.queryCommandSupported("paste"):!0;function V2(o){return o.register(),o}const Poe=Aoe?V2(new yg({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:ur?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:N.MenubarEditMenu,group:"2_ccp",title:g({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:N.EditorContext,group:Lh,title:g("actions.clipboard.cutLabel","Cut"),when:T.writable,order:1},{menuId:N.CommandPalette,group:"",title:g("actions.clipboard.cutLabel","Cut"),order:1},{menuId:N.SimpleEditorContext,group:Lh,title:g("actions.clipboard.cutLabel","Cut"),when:T.writable,order:1}]})):void 0,Ooe=D8?V2(new yg({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:ur?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:N.MenubarEditMenu,group:"2_ccp",title:g({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:N.EditorContext,group:Lh,title:g("actions.clipboard.copyLabel","Copy"),order:2},{menuId:N.CommandPalette,group:"",title:g("actions.clipboard.copyLabel","Copy"),order:1},{menuId:N.SimpleEditorContext,group:Lh,title:g("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;Jn.appendMenuItem(N.MenubarEditMenu,{submenu:N.MenubarCopy,title:{value:g("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});Jn.appendMenuItem(N.EditorContext,{submenu:N.EditorContextCopy,title:{value:g("copy as","Copy As"),original:"Copy As"},group:Lh,order:3});Jn.appendMenuItem(N.EditorContext,{submenu:N.EditorContextShare,title:{value:g("share","Share"),original:"Share"},group:"11_share",order:-1});const iL=Roe?V2(new yg({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:ur?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:N.MenubarEditMenu,group:"2_ccp",title:g({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:N.EditorContext,group:Lh,title:g("actions.clipboard.pasteLabel","Paste"),when:T.writable,order:4},{menuId:N.CommandPalette,group:"",title:g("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:N.SimpleEditorContext,group:Lh,title:g("actions.clipboard.pasteLabel","Paste"),when:T.writable,order:4}]})):void 0;class Foe extends ce{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:g("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:T.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(34)&&t.getSelection().isEmpty()||(mx.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),mx.forceCopyWithSyntaxHighlighting=!1)}}function x8(o,e){o&&(o.addImplementation(1e4,"code-editor",(t,i)=>{const n=t.get(ut).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const s=n.getOption(34),r=n.getSelection();return r&&r.isEmpty()&&!s||document.execCommand(e),!0}return!1}),o.addImplementation(0,"generic-dom",(t,i)=>(document.execCommand(e),!0)))}x8(Poe,"cut");x8(Ooe,"copy");iL&&(iL.addImplementation(1e4,"code-editor",(o,e)=>{const t=o.get(ut),i=o.get(Dl),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&Kd?Moe(void 0,void 0,void 0,function*(){const r=yield i.readText();if(r!==""){const a=Bm.INSTANCE.get(r);let l=!1,d=null,c=null;a&&(l=n.getOption(34)&&!!a.isFromEmptySelection,d=typeof a.multicursorText<"u"?a.multicursorText:null,c=a.mode),n.trigger("keyboard","paste",{text:r,pasteOnNewLine:l,multicursorText:d,mode:c})}}):!0:!1}),iL.addImplementation(0,"generic-dom",(o,e)=>(document.execCommand("paste"),!0)));D8&&J(Foe);var Boe=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Ne{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+Ne.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new Ne(this.value+Ne.sep+e)}}Ne.sep=".";Ne.None=new Ne("@@none@@");Ne.Empty=new Ne("");Ne.QuickFix=new Ne("quickfix");Ne.Refactor=new Ne("refactor");Ne.RefactorExtract=Ne.Refactor.append("extract");Ne.RefactorInline=Ne.Refactor.append("inline");Ne.RefactorMove=Ne.Refactor.append("move");Ne.RefactorRewrite=Ne.Refactor.append("rewrite");Ne.Source=new Ne("source");Ne.SourceOrganizeImports=Ne.Source.append("organizeImports");Ne.SourceFixAll=Ne.Source.append("fixAll");Ne.SurroundWith=Ne.Refactor.append("surround");var ns;(function(o){o.Refactor="refactor",o.RefactorPreview="refactor preview",o.Lightbulb="lightbulb",o.Default="other (default)",o.SourceAction="source action",o.QuickFix="quick fix action",o.FixAll="fix all",o.OrganizeImports="organize imports",o.AutoFix="auto fix",o.QuickFixHover="quick fix hover window",o.OnSave="save participants",o.ProblemsView="problems view"})(ns||(ns={}));function Woe(o,e){return!(o.include&&!o.include.intersects(e)||o.excludes&&o.excludes.some(t=>k8(e,t,o.include))||!o.includeSourceActions&&Ne.Source.contains(e))}function Voe(o,e){const t=e.kind?new Ne(e.kind):void 0;return!(o.include&&(!t||!o.include.contains(t))||o.excludes&&t&&o.excludes.some(i=>k8(t,i,o.include))||!o.includeSourceActions&&t&&Ne.Source.contains(t)||o.onlyIncludePreferredActions&&!e.isPreferred)}function k8(o,e,t){return!(!e.contains(o)||t&&e.contains(t))}class Yr{static fromUser(e,t){return!e||typeof e!="object"?new Yr(t.kind,t.apply,!1):new Yr(Yr.getKindFromUser(e,t.kind),Yr.getApplyFromUser(e,t.apply),Yr.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new Ne(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}}class Hoe{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return Boe(this,void 0,void 0,function*(){if(!((t=this.provider)===null||t===void 0)&&t.resolveCodeAction&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Vi(n)}i&&(this.action.edit=i.edit)}return this})}}var e1=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};const I8="editor.action.codeAction",E8="editor.action.refactor",zoe="editor.action.refactor.preview",N8="editor.action.sourceAction",H2="editor.action.organizeImports",z2="editor.action.fixAll";class um extends U{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:e},{action:t}){return Cn(e.diagnostics)?Cn(t.diagnostics)?um.codeActionsPreferredComparator(e,t):-1:Cn(t.diagnostics)?1:um.codeActionsPreferredComparator(e,t)}constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(um.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&Ne.QuickFix.contains(new Ne(e.kind))&&!!e.isPreferred)}}const PP={actions:[],documentation:void 0};function U2(o,e,t,i,n,s){var r;return e1(this,void 0,void 0,function*(){const a=i.filter||{},l={only:(r=a.include)===null||r===void 0?void 0:r.value,trigger:i.type},d=new A2(e,s),c=Uoe(o,e,a),h=new Z,u=c.map(p=>e1(this,void 0,void 0,function*(){try{n.report(p);const m=yield p.provideCodeActions(e,t,l,d.token);if(m&&h.add(m),d.token.isCancellationRequested)return PP;const _=((m==null?void 0:m.actions)||[]).filter(v=>v&&Voe(a,v)),b=joe(p,_,a.include);return{actions:_.map(v=>new Hoe(v,p)),documentation:b}}catch(m){if(Da(m))throw m;return Vi(m),PP}})),f=o.onDidChange(()=>{const p=o.all(e);Bn(p,c)||d.cancel()});try{const p=yield Promise.all(u),m=p.map(b=>b.actions).flat(),_=[...mg(p.map(b=>b.documentation)),...$oe(o,e,i,m)];return new um(m,_,h)}finally{f.dispose(),d.dispose()}})}function Uoe(o,e,t){return o.all(e).filter(i=>i.providedCodeActionKinds?i.providedCodeActionKinds.some(n=>Woe(t,new Ne(n))):!0)}function*$oe(o,e,t,i){var n,s,r;if(e&&i.length)for(const a of o.all(e))a._getAdditionalMenuItems&&(yield*(n=a._getAdditionalMenuItems)===null||n===void 0?void 0:n.call(a,{trigger:t.type,only:(r=(s=t.filter)===null||s===void 0?void 0:s.include)===null||r===void 0?void 0:r.value},i.map(l=>l.action)))}function joe(o,e,t){if(!o.documentation)return;const i=o.documentation.map(n=>({kind:new Ne(n.kind),command:n.command}));if(t){let n;for(const s of i)s.kind.contains(t)&&(n?n.kind.contains(s.kind)&&(n=s):n=s);if(n)return n==null?void 0:n.command}for(const n of e)if(n.kind){for(const s of i)if(s.kind.contains(new Ne(n.kind)))return s.command}}var t1;(function(o){o.OnSave="onSave",o.FromProblemsView="fromProblemsView",o.FromCodeActions="fromCodeActions"})(t1||(t1={}));function Koe(o,e,t,i,n=Ye.None){var s;return e1(this,void 0,void 0,function*(){const r=o.get(i0),a=o.get(ri),l=o.get(mo),d=o.get(_i);if(l.publicLog2("codeAction.applyCodeAction",{codeActionTitle:e.action.title,codeActionKind:e.action.kind,codeActionIsPreferred:!!e.action.isPreferred,reason:t}),yield e.resolve(n),!n.isCancellationRequested&&!(!((s=e.action.edit)===null||s===void 0)&&s.edits.length&&!(yield r.apply(e.action.edit,{editor:i==null?void 0:i.editor,label:e.action.title,quotableLabel:e.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:t!==t1.OnSave,showPreview:i==null?void 0:i.preview})).isApplied)&&e.action.command)try{yield a.executeCommand(e.action.command.id,...e.action.command.arguments||[])}catch(c){const h=qoe(c);d.error(typeof h=="string"?h:g("applyCodeActionFailed","An unknown error occurred while applying the code action"))}})}function qoe(o){return typeof o=="string"?o:o instanceof Error&&typeof o.message=="string"?o.message:void 0}st.registerCommand("_executeCodeActionProvider",function(o,e,t,i,n){return e1(this,void 0,void 0,function*(){if(!(e instanceof Ce))throw Po();const{codeActionProvider:s}=o.get(fe),r=o.get(jt).getModel(e);if(!r)throw Po();const a=ue.isISelection(t)?ue.liftSelection(t):y.isIRange(t)?r.validateRange(t):void 0;if(!a)throw Po();const l=typeof i=="string"?new Ne(i):void 0,d=yield U2(s,r,a,{type:1,triggerAction:ns.Default,filter:{includeSourceActions:!0,include:l}},Qh.None,Ye.None),c=[],h=Math.min(d.validActions.length,typeof n=="number"?n:0);for(let u=0;uu.action)}finally{setTimeout(()=>d.dispose(),100)}})});var Goe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Zoe=function(o,e){return function(t,i){e(t,i,o)}};let i1=class T8{constructor(e){this.keybindingService=e}getResolver(){const e=new $h(()=>this.keybindingService.getKeybindings().filter(t=>T8.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===H2?i={kind:Ne.SourceOrganizeImports.value}:t.command===z2&&(i={kind:Ne.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Yr.fromUser(i,{kind:Ne.None,apply:"never"}))}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.value);return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new Ne(e.kind);return t.filter(n=>n.kind.contains(i)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,s)=>n?n.kind.contains(s.kind)?s:n:s,void 0)}};i1.codeActionCommands=[E8,I8,N8,H2,z2];i1=Goe([Zoe(0,ei)],i1);M("symbolIcon.arrayForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.booleanForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},g("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.colorForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.constantForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},g("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},g("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},g("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},g("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},g("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.fileForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.folderForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},g("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},g("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.keyForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.keywordForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},g("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.moduleForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.namespaceForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.nullForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.numberForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.objectForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.operatorForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.packageForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.propertyForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.referenceForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.snippetForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.stringForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.structForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.textForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.typeParameterForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.unitForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},g("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));const M8=Object.freeze({kind:Ne.Empty,title:g("codeAction.widget.id.more","More Actions...")}),Yoe=Object.freeze([{kind:Ne.QuickFix,title:g("codeAction.widget.id.quickfix","Quick Fix...")},{kind:Ne.RefactorExtract,title:g("codeAction.widget.id.extract","Extract..."),icon:se.wrench},{kind:Ne.RefactorInline,title:g("codeAction.widget.id.inline","Inline..."),icon:se.wrench},{kind:Ne.RefactorRewrite,title:g("codeAction.widget.id.convert","Rewrite..."),icon:se.wrench},{kind:Ne.RefactorMove,title:g("codeAction.widget.id.move","Move..."),icon:se.wrench},{kind:Ne.SurroundWith,title:g("codeAction.widget.id.surround","Surround With..."),icon:se.symbolSnippet},{kind:Ne.Source,title:g("codeAction.widget.id.source","Source Action..."),icon:se.symbolFile},M8]);function Qoe(o,e,t){if(!e)return o.map(s=>({kind:"action",item:s,group:M8,disabled:!!s.action.disabled,label:s.action.disabled||s.action.title}));const i=Yoe.map(s=>({group:s,actions:[]}));for(const s of o){const r=s.action.kind?new Ne(s.action.kind):Ne.None;for(const a of i)if(a.group.kind.contains(r)){a.actions.push(s);break}}const n=[];for(const s of i)if(s.actions.length){n.push({kind:"header",group:s.group});for(const r of s.actions)n.push({kind:"action",item:r,group:s.group,label:r.action.title,disabled:!!r.action.disabled,keybinding:t(r.action)})}return n}var Xoe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Joe=function(o,e){return function(t,i){e(t,i,o)}};let Cs=class Kk{static get(e){return e.getContribution(Kk.ID)}constructor(e,t){this._messageWidget=new wn,this._messageListeners=new Z,this._editor=e,this._visible=Kk.MESSAGE_VISIBLE.bindTo(t)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){dn(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new OP(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new go(()=>this.closeMessage(),3e3));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(i?i.containsPosition(n.target.position)||this.closeMessage():i=new y(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(OP.fadeOut(this._messageWidget.value))}};Cs.ID="editor.contrib.messageController";Cs.MESSAGE_VISIBLE=new de("messageVisible",!1,g("messageVisible","Whether the editor is currently showing an inline message"));Cs=Xoe([Joe(1,Ee)],Cs);const ere=Ji.bindToContribution(Cs.get);ie(new ere({id:"leaveEditorMessage",precondition:Cs.MESSAGE_VISIBLE,handler:o=>o.closeMessage(),kbOpts:{weight:130,primary:9}}));let OP=class{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const s=document.createElement("div");s.classList.add("anchor","top"),this._domNode.appendChild(s);const r=document.createElement("div");r.classList.add("message"),r.textContent=n,this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};lt(Cs.ID,Cs,4);var A8=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},qk=function(o,e){return function(t,i){e(t,i,o)}};const R8="acceptSelectedCodeAction",P8="previewSelectedCodeAction";class tre{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){var n,s;i.text.textContent=(s=(n=e.group)===null||n===void 0?void 0:n.title)!==null&&s!==void 0?s:""}disposeTemplate(e){}}let Gk=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);const t=document.createElement("div");t.className="icon",e.append(t);const i=document.createElement("span");i.className="title",e.append(i);const n=new n0(e,Ps);return{container:e,icon:t,text:i,keybinding:n}}renderElement(e,t,i){var n,s,r;if(!((n=e.group)===null||n===void 0)&&n.icon?(i.icon.className=De.asClassName(e.group.icon),e.group.icon.color&&(i.icon.style.color=re(e.group.icon.color.id))):(i.icon.className=De.asClassName(se.lightBulb),i.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;i.text.textContent=O8(e.label),e.keybinding?(i.keybinding.set(e.keybinding),hs(i.keybinding.element)):On(i.keybinding.element);const a=(s=this._keybindingService.lookupKeybinding(R8))===null||s===void 0?void 0:s.getLabel(),l=(r=this._keybindingService.lookupKeybinding(P8))===null||r===void 0?void 0:r.getLabel();if(i.container.classList.toggle("option-disabled",e.disabled),e.disabled?i.container.title=e.label:a&&l?this._supportsPreview?i.container.title=g({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to apply, Shift+F2 to preview"']},"{0} to apply, {1} to preview",a,l):i.container.title=g({key:"label",comment:['placeholder is a keybinding, e.g "F2 to apply"']},"{0} to apply",a):i.container.title="",e.description){const d=new pl(q(i.container,X("span.label-description")));d.element.classList.add("action-list-description"),d.set(e.description)}}disposeTemplate(e){}};Gk=A8([qk(1,ei)],Gk);class ire extends UIEvent{constructor(){super("acceptSelectedAction")}}class FP extends UIEvent{constructor(){super("previewSelectedAction")}}let Zk=class extends U{constructor(e,t,i,n,s,r){super(),this._delegate=n,this._contextViewService=s,this._keybindingService=r,this._actionLineHeight=24,this._headerLineHeight=26,this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const a={getHeight:l=>l.kind==="header"?this._headerLineHeight:this._actionLineHeight,getTemplateId:l=>l.kind};this._list=this._register(new Uo(e,this.domNode,a,[new Gk(t,this._keybindingService),new tre],{keyboardSupport:!1,accessibilityProvider:{getAriaLabel:l=>{if(l.kind==="action"){let d=l.label?O8(l==null?void 0:l.label):"";return l.disabled&&(d=g({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",d,l.disabled)),d}return null},getWidgetAriaLabel:()=>g({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:l=>l.kind==="action"?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(Ig),this._register(this._list.onMouseClick(l=>this.onListClick(l))),this._register(this._list.onMouseOver(l=>this.onListHover(l))),this._register(this._list.onDidChangeFocus(()=>this._list.domFocus())),this._register(this._list.onDidChangeSelection(l=>this.onListSelection(l))),this._allMenuItems=i,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&e.kind==="action"}hide(e){this._delegate.onHide(e),this._contextViewService.hideContextView()}layout(e){const t=this._allMenuItems.filter(d=>d.kind==="header").length,n=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(n);const s=this._allMenuItems.map((d,c)=>{const h=document.getElementById(this._list.getElementID(c));if(h){h.style.width="auto";const u=h.getBoundingClientRect().width;return h.style.width="",u}return 0}),r=Math.max(...s,e),l=Math.min(n,document.body.clientHeight*.7);return this._list.layout(l,r),this.domNode.style.height=`${l}px`,this._list.domFocus(),r}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){const t=this._list.getFocus();if(t.length===0)return;const i=t[0],n=this._list.element(i);if(!this.focusCondition(n))return;const s=e?new FP:new ire;this._list.setSelection([i],s)}onListSelection(e){if(!e.elements.length)return;const t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof FP):this._list.setSelection([])}onListHover(e){this._list.setFocus(typeof e.index=="number"?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};Zk=A8([qk(4,xl),qk(5,ei)],Zk);function O8(o){return o.replace(/\r\n|\r|\n/g," ")}var nre=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},nL=function(o,e){return function(t,i){e(t,i,o)}};const Dh={Visible:new de("codeActionMenuVisible",!1,g("codeActionMenuVisible","Whether the action widget list is visible"))},tu=Je("actionWidgetService");let xh=class extends U{get isVisible(){return Dh.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,i){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=i,this._list=this._register(new wn)}show(e,t,i,n,s,r,a){const l=Dh.Visible.bindTo(this._contextKeyService),d=this._instantiationService.createInstance(Zk,e,t,i,n);this._contextViewService.showContextView({getAnchor:()=>s,render:c=>(l.set(!0),this._renderWidget(c,d,a??[])),onHide:c=>{l.reset(),this._onWidgetClosed(c)}},r,!1)}acceptSelected(e){var t;(t=this._list.value)===null||t===void 0||t.acceptSelected(e)}focusPrevious(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusPrevious()}focusNext(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusNext()}hide(){var e;(e=this._list.value)===null||e===void 0||e.hide(),this._list.clear()}_renderWidget(e,t,i){var n;const s=document.createElement("div");if(s.classList.add("action-widget"),e.appendChild(s),this._list.value=t,this._list.value)s.appendChild(this._list.value.domNode);else throw new Error("List has no value");const r=new Z,a=document.createElement("div"),l=e.appendChild(a);l.classList.add("context-view-block"),r.add(K(l,ae.MOUSE_DOWN,p=>p.stopPropagation()));const d=document.createElement("div"),c=e.appendChild(d);c.classList.add("context-view-pointerBlock"),r.add(K(c,ae.POINTER_MOVE,()=>c.remove())),r.add(K(c,ae.MOUSE_DOWN,()=>c.remove()));let h=0;if(i.length){const p=this._createActionBar(".action-widget-action-bar",i);p&&(s.appendChild(p.getContainer().parentElement),r.add(p),h=p.getContainer().offsetWidth)}const u=(n=this._list.value)===null||n===void 0?void 0:n.layout(h);s.style.width=`${u}px`;const f=r.add(fh(e));return r.add(f.onDidBlur(()=>this.hide())),r}_createActionBar(e,t){if(!t.length)return;const i=X(e),n=new fo(i);return n.push(t,{icon:!1,label:!0}),n}_onWidgetClosed(e){var t;(t=this._list.value)===null||t===void 0||t.hide(e)}};xh=nre([nL(0,xl),nL(1,Ee),nL(2,Me)],xh);ot(tu,xh,1);const c0=1100;Nn(class extends Yd{constructor(){super({id:"hideCodeActionWidget",title:{value:g("hideCodeActionWidget.title","Hide action widget"),original:"Hide action widget"},precondition:Dh.Visible,keybinding:{weight:c0,primary:9,secondary:[1033]}})}run(o){o.get(tu).hide()}});Nn(class extends Yd{constructor(){super({id:"selectPrevCodeAction",title:{value:g("selectPrevCodeAction.title","Select previous action"),original:"Select previous action"},precondition:Dh.Visible,keybinding:{weight:c0,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(o){const e=o.get(tu);e instanceof xh&&e.focusPrevious()}});Nn(class extends Yd{constructor(){super({id:"selectNextCodeAction",title:{value:g("selectNextCodeAction.title","Select next action"),original:"Select next action"},precondition:Dh.Visible,keybinding:{weight:c0,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(o){const e=o.get(tu);e instanceof xh&&e.focusNext()}});Nn(class extends Yd{constructor(){super({id:R8,title:{value:g("acceptSelected.title","Accept selected action"),original:"Accept selected action"},precondition:Dh.Visible,keybinding:{weight:c0,primary:3,secondary:[2132]}})}run(o){const e=o.get(tu);e instanceof xh&&e.acceptSelected()}});Nn(class extends Yd{constructor(){super({id:P8,title:{value:g("previewSelected.title","Preview selected action"),original:"Preview selected action"},precondition:Dh.Visible,keybinding:{weight:c0,primary:2051}})}run(o){const e=o.get(tu);e instanceof xh&&e.acceptSelected(!0)}});var sre=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ore=function(o,e){return function(t,i){e(t,i,o)}},sf;(function(o){o.Hidden={type:0};class e{constructor(i,n,s,r){this.actions=i,this.trigger=n,this.editorPosition=s,this.widgetPosition=r,this.type=1}}o.Showing=e})(sf||(sf={}));let n1=class F8 extends U{constructor(e,t,i,n){super(),this._editor=e,this._onClick=this._register(new O),this.onClick=this._onClick.event,this._state=sf.Hidden,this._domNode=X("div.lightBulbWidget"),this._register(kt.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(s=>{const r=this._editor.getModel();(this.state.type!==1||!r||this.state.editorPosition.lineNumber>=r.getLineCount())&&this.hide()})),this._register(YU(this._domNode,s=>{if(this.state.type!==1)return;this._editor.focus(),s.preventDefault();const{top:r,height:a}=Fi(this._domNode),l=this._editor.getOption(63);let d=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(s.buttons&1)===1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(s=>{s.hasChanged(61)&&!this._editor.getOption(61).enabled&&this.hide()})),this._register(_e.runAndSubscribe(n.onDidUpdateKeybindings,()=>{var s,r;this._preferredKbLabel=an((s=n.lookupKeybinding(i))===null||s===void 0?void 0:s.getLabel()),this._quickFixKbLabel=an((r=n.lookupKeybinding(t))===null||r===void 0?void 0:r.getLabel()),this._updateLightBulbTitleAndIcon()}))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();const n=this._editor.getOptions();if(!n.get(61).enabled)return this.hide();const s=this._editor.getModel();if(!s)return this.hide();const{lineNumber:r,column:a}=s.validatePosition(i),l=s.getOptions().tabSize,d=n.get(47),c=s.getLineContent(r),h=lw(c,l),u=d.spaceWidth*h>22,f=m=>m>2&&this._editor.getTopForLineNumber(m)===this._editor.getTopForLineNumber(m-1);let p=r;if(!u){if(r>1&&!f(r-1))p-=1;else if(!f(r+1))p+=1;else if(a*d.spaceWidth<22)return this.hide()}this.state=new sf.Showing(e,t,i,{position:{lineNumber:p,column:1},preference:F8._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state!==sf.Hidden&&(this.state=sf.Hidden,this._editor.layoutContentWidget(this))}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix&&(this._domNode.classList.remove(...De.asClassNameArray(se.lightBulb)),this._domNode.classList.add(...De.asClassNameArray(se.lightbulbAutofix)),this._preferredKbLabel)){this.title=g("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",this._preferredKbLabel);return}this._domNode.classList.remove(...De.asClassNameArray(se.lightbulbAutofix)),this._domNode.classList.add(...De.asClassNameArray(se.lightBulb)),this._quickFixKbLabel?this.title=g("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):this.title=g("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};n1._posPref=[0];n1=sre([ore(3,ei)],n1);var rre=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},vv=function(o,e){return function(t,i){e(t,i,o)}},sL=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})},are=function(o,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(o,t):n?n.value=t:e.set(o,t),t},lre=function(o,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!i:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(o):i?i.value:e.get(o)},gb;let Yk=class extends U{constructor(e,t,i,n,s,r,a,l){super(),this._editor=e,this.delegate=n,this._configurationService=r,this._actionWidgetService=a,this._commandService=l,this._activeCodeActions=this._register(new wn),gb.set(this,!1),this._showDisabled=!1,this._lightBulbWidget=new $h(()=>{const d=this._register(s.createInstance(n1,this._editor,t,i));return this._register(d.onClick(c=>this.showCodeActionList(c.actions,c,{includeDisabledActions:!1,fromLightbulb:!0}))),d}),this._resolver=s.createInstance(i1),this._register(this._editor.onDidLayoutChange(()=>this._actionWidgetService.hide()))}dispose(){are(this,gb,!0,"f"),super.dispose()}update(e){var t,i,n,s,r;return sL(this,void 0,void 0,function*(){if(e.type!==1){(t=this._lightBulbWidget.rawValue)===null||t===void 0||t.hide();return}let a;try{a=yield e.actions}catch(l){Oe(l);return}if(!lre(this,gb,"f"))if(this._lightBulbWidget.value.update(a,e.trigger,e.position),e.trigger.type===1){if(!((i=e.trigger.filter)===null||i===void 0)&&i.include){const d=this.tryGetValidActionToApply(e.trigger,a);if(d){try{this._lightBulbWidget.value.hide(),yield this.delegate.applyCodeAction(d,!1,!1)}finally{a.dispose()}return}if(e.trigger.context){const c=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,a);if(c&&c.action.disabled){(n=Cs.get(this._editor))===null||n===void 0||n.showMessage(c.action.disabled,e.trigger.context.position),a.dispose();return}}}const l=!!(!((s=e.trigger.filter)===null||s===void 0)&&s.include);if(e.trigger.context&&(!a.allActions.length||!l&&!a.validActions.length)){(r=Cs.get(this._editor))===null||r===void 0||r.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=a,a.dispose();return}this._activeCodeActions.value=a,this.showCodeActionList(a,this.toCoords(e.position),{includeDisabledActions:l,fromLightbulb:!1})}else this._actionWidgetService.isVisible?a.dispose():this._activeCodeActions.value=a})}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length&&(e.autoApply==="first"&&t.validActions.length===0||e.autoApply==="ifSingle"&&t.allActions.length===1))return t.allActions.find(({action:i})=>i.disabled)}tryGetValidActionToApply(e,t){if(t.validActions.length&&(e.autoApply==="first"&&t.validActions.length>0||e.autoApply==="ifSingle"&&t.validActions.length===1))return t.validActions[0]}showCodeActionList(e,t,i){return sL(this,void 0,void 0,function*(){const n=this._editor.getDomNode();if(!n)return;const s=i.includeDisabledActions&&(this._showDisabled||e.validActions.length===0)?e.allActions:e.validActions;if(!s.length)return;const r=W.isIPosition(t)?this.toCoords(t):t,a={onSelect:(l,d)=>sL(this,void 0,void 0,function*(){this.delegate.applyCodeAction(l,!0,d||!1),this._actionWidgetService.hide()}),onHide:()=>{var l;(l=this._editor)===null||l===void 0||l.focus()}};this._actionWidgetService.show("codeActionWidget",!0,Qoe(s,this._shouldShowHeaders(),this._resolver.getResolver()),a,r,n,this._getActionBarActions(e,t,i))})}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=Fi(this._editor.getDomNode()),n=i.left+t.left,s=i.top+t.top+t.height;return{x:n,y:s}}_shouldShowHeaders(){var e;const t=(e=this._editor)===null||e===void 0?void 0:e.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:t==null?void 0:t.uri})}_getActionBarActions(e,t,i){if(i.fromLightbulb)return[];const n=e.documentation.map(s=>{var r;return{id:s.id,label:s.title,tooltip:(r=s.tooltip)!==null&&r!==void 0?r:"",class:void 0,enabled:!0,run:()=>{var a;return this._commandService.executeCommand(s.id,...(a=s.commandArguments)!==null&&a!==void 0?a:[])}}});return i.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&n.push(this._showDisabled?{id:"hideMoreActions",label:g("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,i))}:{id:"showMoreActions",label:g("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,i))}),n}};gb=new WeakMap;Yk=rre([vv(4,Me),vv(5,at),vv(6,tu),vv(7,ri)],Yk);var oL=function(o,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!i:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(o):i?i.value:e.get(o)},dre=function(o,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(o,t):n?n.value=t:e.set(o,t),t},Ru;const B8=new de("supportedCodeAction","");class cre extends U{constructor(e,t,i,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=n,this._autoTriggerTimer=this._register(new go),this._register(this._markerService.onMarkerChanged(s=>this._onMarkerChanges(s))),this._register(this._editor.onDidChangeCursorPosition(()=>this._onCursorChange()))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some(i=>LN(i,t.uri))&&this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:ns.Default})},this._delay)}_onCursorChange(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:ns.Default})},this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=this._editor.getSelection();if(i.isEmpty()&&e.type===2){const{lineNumber:n,column:s}=i.getPosition(),r=t.getLineContent(n);if(r.length===0)return;if(s===1){if(/\s/.test(r[0]))return}else if(s===t.getLineMaxColumn(n)){if(/\s/.test(r[r.length-1]))return}else if(/\s/.test(r[s-2])&&/\s/.test(r[s-1]))return}return i}_createEventAndSignalChange(e,t){const i=this._editor.getModel();if(!t||!i){this._signalChange(void 0);return}const n={trigger:e,selection:t,position:t.getStartPosition()};return this._signalChange(n),n}}var Rc;(function(o){o.Empty={type:0};class e{constructor(i,n,s,r){this.trigger=i,this.rangeOrSelection=n,this.position=s,this._cancellablePromise=r,this.type=1,this.actions=r.catch(a=>{if(Da(a))return hre;throw a})}cancel(){this._cancellablePromise.cancel()}}o.Triggered=e})(Rc||(Rc={}));const hre={allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1};class ure extends U{constructor(e,t,i,n,s){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=s,this._codeActionOracle=this._register(new wn),this._state=Rc.Empty,this._onDidChangeState=this._register(new O),this.onDidChangeState=this._onDidChangeState.event,Ru.set(this,!1),this._supportedCodeActions=B8.bindTo(n),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._update()}dispose(){oL(this,Ru,"f")||(dre(this,Ru,!0,"f"),super.dispose(),this.setState(Rc.Empty,!0))}_update(){if(oL(this,Ru,"f"))return;this._codeActionOracle.value=void 0,this.setState(Rc.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(86)){const t=[];for(const i of this._registry.all(e))Array.isArray(i.providedCodeActionKinds)&&t.push(...i.providedCodeActionKinds);this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new cre(this._editor,this._markerService,i=>{var n;if(!i){this.setState(Rc.Empty);return}const s=Wi(r=>U2(this._registry,e,i.selection,i.trigger,Qh.None,r));i.trigger.type===1&&((n=this._progressService)===null||n===void 0||n.showWhile(s,250)),this.setState(new Rc.Triggered(i.trigger,i.selection,i.position,s))},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:ns.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;(t=this._codeActionOracle.value)===null||t===void 0||t.trigger(e)}setState(e,t){e!==this._state&&(this._state.type===1&&this._state.cancel(),this._state=e,!t&&!oL(this,Ru,"f")&&this._onDidChangeState.fire(e))}}Ru=new WeakMap;var fre=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sp=function(o,e){return function(t,i){e(t,i,o)}},gre=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};function h0(o){return oe.regex(B8.keys()[0],new RegExp("(\\s|^)"+Hs(o.value)+"\\b"))}function W8(o,e,t,i){const n=Yr.fromUser(e,{kind:Ne.Refactor,apply:"never"});return iu(o,typeof(e==null?void 0:e.kind)=="string"?n.preferred?g("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",e.kind):g("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",e.kind):n.preferred?g("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):g("editor.action.refactor.noneMessage","No refactorings available"),{include:Ne.Refactor.contains(n.kind)?n.kind:Ne.None,onlyIncludePreferredActions:n.preferred},n.apply,t,i)}const Vw={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:g("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:g("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[g("args.schema.apply.first","Always apply the first returned code action."),g("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),g("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:g("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};let kh=class V8 extends U{static get(e){return e.getContribution(V8.ID)}constructor(e,t,i,n,s,r){super(),this._instantiationService=s,this._editor=e,this._model=this._register(new ure(this._editor,r.codeActionProvider,t,i,n)),this._register(this._model.onDidChangeState(a=>this.update(a))),this._ui=new $h(()=>this._register(s.createInstance(Yk,e,Tg.Id,u0.Id,{applyCodeAction:(a,l,d)=>gre(this,void 0,void 0,function*(){try{yield this._applyCodeAction(a,d)}finally{l&&this._trigger({type:2,triggerAction:ns.QuickFix,filter:{}})}})})))}update(e){this._ui.value.update(e)}showCodeActions(e,t,i){return this._ui.value.showCodeActionList(t,i,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,i,n,s){var r;if(!this._editor.hasModel())return;(r=Cs.get(this._editor))===null||r===void 0||r.closeMessage();const a=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:i,autoApply:n,context:{notAvailableMessage:e,position:a},preview:s})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e,t){return this._instantiationService.invokeFunction(Koe,e,t1.FromCodeActions,{preview:t,editor:this._editor})}};kh.ID="editor.contrib.codeActionController";kh=fre([sp(1,Ta),sp(2,Ee),sp(3,ec),sp(4,Me),sp(5,fe)],kh);function iu(o,e,t,i,n=!1,s=ns.Default){if(o.hasModel()){const r=kh.get(o);r==null||r.manualTriggerAtCurrentPosition(e,s,t,i,n)}}class Tg extends ce{constructor(){super({id:Tg.Id,label:g("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:oe.and(T.writable,T.hasCodeActionsProvider),kbOpts:{kbExpr:T.editorTextFocus,primary:2132,weight:100}})}run(e,t){return iu(t,g("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,!1,ns.QuickFix)}}Tg.Id="editor.action.quickFix";class pre extends Ji{constructor(){super({id:I8,precondition:oe.and(T.writable,T.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:Vw}]}})}runEditorCommand(e,t,i){const n=Yr.fromUser(i,{kind:Ne.Empty,apply:"ifSingle"});return iu(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?g("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):g("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):n.preferred?g("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):g("editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}}class mre extends ce{constructor(){super({id:E8,label:g("refactor.label","Refactor..."),alias:"Refactor...",precondition:oe.and(T.writable,T.hasCodeActionsProvider),kbOpts:{kbExpr:T.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:oe.and(T.writable,h0(Ne.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:Vw}]}})}run(e,t,i){return W8(t,i,!1,ns.Refactor)}}class _re extends ce{constructor(){super({id:zoe,label:g("refactor.preview.label","Refactor with Preview..."),alias:"Refactor Preview...",precondition:oe.and(T.writable,T.hasCodeActionsProvider),description:{description:"Refactor Preview...",args:[{name:"args",schema:Vw}]}})}run(e,t,i){return W8(t,i,!0,ns.RefactorPreview)}}class vre extends ce{constructor(){super({id:N8,label:g("source.label","Source Action..."),alias:"Source Action...",precondition:oe.and(T.writable,T.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:oe.and(T.writable,h0(Ne.Source))},description:{description:"Source Action...",args:[{name:"args",schema:Vw}]}})}run(e,t,i){const n=Yr.fromUser(i,{kind:Ne.Source,apply:"never"});return iu(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?g("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):g("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):n.preferred?g("editor.action.source.noneMessage.preferred","No preferred source actions available"):g("editor.action.source.noneMessage","No source actions available"),{include:Ne.Source.contains(n.kind)?n.kind:Ne.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply,void 0,ns.SourceAction)}}class bre extends ce{constructor(){super({id:H2,label:g("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:oe.and(T.writable,h0(Ne.SourceOrganizeImports)),kbOpts:{kbExpr:T.editorTextFocus,primary:1581,weight:100}})}run(e,t){return iu(t,g("editor.action.organize.noneMessage","No organize imports action available"),{include:Ne.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",void 0,ns.OrganizeImports)}}class Cre extends ce{constructor(){super({id:z2,label:g("fixAll.label","Fix All"),alias:"Fix All",precondition:oe.and(T.writable,h0(Ne.SourceFixAll))})}run(e,t){return iu(t,g("fixAll.noneMessage","No fix all action available"),{include:Ne.SourceFixAll,includeSourceActions:!0},"ifSingle",void 0,ns.FixAll)}}class u0 extends ce{constructor(){super({id:u0.Id,label:g("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:oe.and(T.writable,h0(Ne.QuickFix)),kbOpts:{kbExpr:T.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}run(e,t){return iu(t,g("editor.action.autoFix.noneMessage","No auto fixes available"),{include:Ne.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",void 0,ns.AutoFix)}}u0.Id="editor.action.autoFix";lt(kh.ID,kh,3);J(Tg);J(mre);J(_re);J(vre);J(bre);J(u0);J(Cre);ie(new pre);$t.as(ka.Configuration).registerConfiguration(Object.assign(Object.assign({},e2),{properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:g("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}));var BP=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Qk{constructor(){this.lenses=[],this._disposables=new Z}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}function H8(o,e,t){return BP(this,void 0,void 0,function*(){const i=o.ordered(e),n=new Map,s=new Qk,r=i.map((a,l)=>BP(this,void 0,void 0,function*(){n.set(a,l);try{const d=yield Promise.resolve(a.provideCodeLenses(e,t));d&&s.add(d,a)}catch(d){Vi(d)}}));return yield Promise.all(r),s.lenses=s.lenses.sort((a,l)=>a.symbol.range.startLineNumberl.symbol.range.startLineNumber?1:n.get(a.provider)n.get(l.provider)?1:a.symbol.range.startColumnl.symbol.range.startColumn?1:0),s})}st.registerCommand("_executeCodeLensProvider",function(o,...e){let[t,i]=e;_t(Ce.isUri(t)),_t(typeof i=="number"||!i);const{codeLensProvider:n}=o.get(fe),s=o.get(jt).getModel(t);if(!s)throw Po();const r=[],a=new Z;return H8(n,s,Ye.None).then(l=>{a.add(l);const d=[];for(const c of l.lenses)i==null||c.symbol.command?r.push(c.symbol):i-- >0&&c.provider.resolveCodeLens&&d.push(Promise.resolve(c.provider.resolveCodeLens(s,c.symbol,Ye.None)).then(h=>r.push(h||c.symbol)));return Promise.all(d)}).then(()=>r).finally(()=>{setTimeout(()=>a.dispose(),100)})});var wre=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Sre=function(o,e){return function(t,i){e(t,i,o)}};const z8=Je("ICodeLensCache");class WP{constructor(e,t){this.lineCount=e,this.data=t}}let Xk=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new Xd(20,.75);const t="codelens/cache";nl(()=>e.remove(t,1));const i="codelens/cache2",n=e.get(i,1,"{}");this._deserialize(n),pa(e.onWillSaveState)(s=>{s.reason===OC.SHUTDOWN&&e.store(i,this._serialize(),1,1)})}put(e,t){const i=t.lenses.map(r=>{var a;return{range:r.symbol.range,command:r.symbol.command&&{id:"",title:(a=r.symbol.command)===null||a===void 0?void 0:a.title}}}),n=new Qk;n.add({lenses:i,dispose:()=>{}},this._fakeProvider);const s=new WP(e.getLineCount(),n);this._cache.set(e.uri.toString(),s)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const n=new Set;for(const s of i.data.lenses)n.add(s.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...n.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const i in t){const n=t[i],s=[];for(const a of n.lines)s.push({range:new y(a,1,a,11)});const r=new Qk;r.add({lenses:s,dispose(){}},this._fakeProvider),this._cache.set(i,new WP(n.lineCount,r))}}catch{}}};Xk=wre([Sre(0,jo)],Xk);ot(z8,Xk,1);class yre{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){this._lastHeight===void 0?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return this._lastHeight!==0&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class Hw{constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id=`codelens.widget-${Hw._idPool++}`,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();const i=[];let n=!1;for(let s=0;s{d.symbol.command&&l.push(d.symbol),i.addDecoration({range:d.symbol.range,options:VP},h=>this._decorationIds[c]=h),a?a=y.plusRange(a,d.symbol.range):a=y.lift(d.symbol.range)}),this._viewZone=new yre(a.startLineNumber-1,s,r),this._viewZoneId=n.addZone(this._viewZone),l.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(l,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new Hw(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t==null||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),n=this._data[t].symbol;return!!(i&&y.isEmpty(n.range)===i.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((i,n)=>{t.addDecoration({range:i.symbol.range,options:VP},s=>this._decorationIds[n]=s)})}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},op=function(o,e){return function(t,i){e(t,i,o)}},Dre=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};let og=class{constructor(e,t,i,n,s,r){this._editor=e,this._languageFeaturesService=t,this._commandService=n,this._notificationService=s,this._codeLensCache=r,this._disposables=new Z,this._localToDispose=new Z,this._lenses=[],this._oldCodeLensModels=new Z,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new wt(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(a=>{(a.hasChanged(47)||a.hasChanged(16)||a.hasChanged(15))&&this._updateLensStyle(),a.hasChanged(14)&&this._onModelChange()})),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),(e=this._currentCodeLensModel)===null||e===void 0||e.dispose()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(63)/this._editor.getOption(49));let t=this._editor.getOption(16);return(!t||t<5)&&(t=this._editor.getOption(49)*.9|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(15),n=this._editor.getOption(47),{style:s}=this._editor.getContainerDomNode();s.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),s.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),s.setProperty("--vscode-editorCodeLens-fontFeatureSettings",n.fontFeatureSettings),i&&(s.setProperty("--vscode-editorCodeLens-fontFamily",i),s.setProperty("--vscode-editorCodeLens-fontFamilyDefault",ps.fontFamily)),this._editor.changeViewZones(r=>{for(const a of this._lenses)a.updateHeight(e,r)})}_localDispose(){var e,t,i;(e=this._getCodeLensModelPromise)===null||e===void 0||e.cancel(),this._getCodeLensModelPromise=void 0,(t=this._resolveCodeLensesPromise)===null||t===void 0||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),(i=this._currentCodeLensModel)===null||i===void 0||i.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e||!this._editor.getOption(14))return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e)){t&&this._localToDispose.add(ch(()=>{const n=this._codeLensCache.get(e);t===n&&(this._codeLensCache.delete(e),this._onModelChange())},30*1e3));return}for(const n of this._languageFeaturesService.codeLensProvider.all(e))if(typeof n.onDidChange=="function"){const s=n.onDidChange(()=>i.schedule());this._localToDispose.add(s)}const i=new wt(()=>{var n;const s=Date.now();(n=this._getCodeLensModelPromise)===null||n===void 0||n.cancel(),this._getCodeLensModelPromise=Wi(r=>H8(this._languageFeaturesService.codeLensProvider,e,r)),this._getCodeLensModelPromise.then(r=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=r,this._codeLensCache.put(e,r);const a=this._provideCodeLensDebounce.update(e,Date.now()-s);i.delay=a,this._renderCodeLensSymbols(r),this._resolveCodeLensesInViewportSoon()},Oe)},this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add(Pe(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._editor.changeDecorations(n=>{this._editor.changeViewZones(s=>{const r=[];let a=-1;this._lenses.forEach(d=>{!d.isValid()||a===d.getLineNumber()?r.push(d):(d.update(s),a=d.getLineNumber())});const l=new rL;r.forEach(d=>{d.dispose(l,s),this._lenses.splice(this._lenses.indexOf(d),1)}),l.commit(n)})}),i.schedule()})),this._localToDispose.add(this._editor.onDidFocusEditorWidget(()=>{i.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(n=>{n.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(Pe(()=>{if(this._editor.getModel()){const n=Ca.capture(this._editor);this._editor.changeDecorations(s=>{this._editor.changeViewZones(r=>{this._disposeAllLenses(s,r)})}),n.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(n=>{if(n.target.type!==9)return;let s=n.target.element;if((s==null?void 0:s.tagName)==="SPAN"&&(s=s.parentElement),(s==null?void 0:s.tagName)==="A")for(const r of this._lenses){const a=r.getCommand(s);if(a){this._commandService.executeCommand(a.id,...a.arguments||[]).catch(l=>this._notificationService.error(l));break}}})),i.schedule()}_disposeAllLenses(e,t){const i=new rL;for(const n of this._lenses)n.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),i=[];let n;for(const a of e.lenses){const l=a.symbol.range.startLineNumber;l<1||l>t||(n&&n[n.length-1].symbol.range.startLineNumber===l?n.push(a):(n=[a],i.push(n)))}if(!i.length&&!this._lenses.length)return;const s=Ca.capture(this._editor),r=this._getLayoutInfo();this._editor.changeDecorations(a=>{this._editor.changeViewZones(l=>{const d=new rL;let c=0,h=0;for(;hthis._resolveCodeLensesInViewportSoon())),c++,h++)}for(;cthis._resolveCodeLensesInViewportSoon())),h++;d.commit(a)})}),s.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;(e=this._resolveCodeLensesPromise)===null||e===void 0||e.cancel(),this._resolveCodeLensesPromise=void 0;const t=this._editor.getModel();if(!t)return;const i=[],n=[];if(this._lenses.forEach(a=>{const l=a.computeIfNecessary(t);l&&(i.push(l),n.push(a))}),i.length===0)return;const s=Date.now(),r=Wi(a=>{const l=i.map((d,c)=>{const h=new Array(d.length),u=d.map((f,p)=>!f.symbol.command&&typeof f.provider.resolveCodeLens=="function"?Promise.resolve(f.provider.resolveCodeLens(t,f.symbol,a)).then(m=>{h[p]=m},Vi):(h[p]=f.symbol,Promise.resolve(void 0)));return Promise.all(u).then(()=>{!a.isCancellationRequested&&!n[c].isDisposed()&&n[c].updateCommands(h)})});return Promise.all(l)});this._resolveCodeLensesPromise=r,this._resolveCodeLensesPromise.then(()=>{const a=this._resolveCodeLensesDebounce.update(t,Date.now()-s);this._resolveCodeLensesScheduler.delay=a,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},a=>{Oe(a),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}getModel(){return this._currentCodeLensModel}};og.ID="css.editor.codeLens";og=Lre([op(1,fe),op(2,Co),op(3,ri),op(4,_i),op(5,z8)],og);lt(og.ID,og,1);J(class extends ce{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:T.hasCodeLensProvider,label:g("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(e,t){return Dre(this,void 0,void 0,function*(){if(!t.hasModel())return;const i=e.get(Ma),n=e.get(ri),s=e.get(_i),r=t.getSelection().positionLineNumber,a=t.getContribution(og.ID);if(!a)return;const l=a.getModel();if(!l)return;const d=[];for(const h of l.lenses)h.symbol.command&&h.symbol.range.startLineNumber===r&&d.push({label:h.symbol.command.title,command:h.symbol.command});if(d.length===0)return;const c=yield i.pick(d,{canPickMany:!1});if(c){if(l.isDisposed)return yield n.executeCommand(this.id);try{yield n.executeCommand(c.command.id,...c.command.arguments||[])}catch(h){s.error(h)}}})}});function xre(o,e,t){const i=[],s=o.ordered(e).reverse().map(r=>Promise.resolve(r.provideDocumentColors(e,t)).then(a=>{if(Array.isArray(a))for(const l of a)i.push({colorInfo:l,provider:r})}));return Promise.all(s).then(()=>i)}function zP(o,e,t,i){return Promise.resolve(t.provideColorPresentations(o,e,i))}st.registerCommand("_executeDocumentColorProvider",function(o,...e){const[t]=e;if(!(t instanceof Ce))throw Po();const{colorProvider:i}=o.get(fe),n=o.get(jt).getModel(t);if(!n)throw Po();const s=[],a=i.ordered(n).reverse().map(l=>Promise.resolve(l.provideDocumentColors(n,Ye.None)).then(d=>{if(Array.isArray(d))for(const c of d)s.push({range:c.range,color:[c.color.red,c.color.green,c.color.blue,c.color.alpha]})}));return Promise.all(a).then(()=>s)});st.registerCommand("_executeColorPresentationProvider",function(o,...e){const[t,i]=e,{uri:n,range:s}=i;if(!(n instanceof Ce)||!Array.isArray(t)||t.length!==4||!y.isIRange(s))throw Po();const[r,a,l,d]=t,{colorProvider:c}=o.get(fe),h=o.get(jt).getModel(n);if(!h)throw Po();const u={range:s,color:{red:r,green:a,blue:l,alpha:d}},f=[],m=c.ordered(h).reverse().map(_=>Promise.resolve(_.provideColorPresentations(h,u,Ye.None)).then(b=>{Array.isArray(b)&&f.push(...b)}));return Promise.all(m).then(()=>f)});var kre=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},aL=function(o,e){return function(t,i){e(t,i,o)}},Ire=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};const U8=Object.create({});let Ih=class $8 extends U{constructor(e,t,i,n){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=i,this._localToDispose=this._register(new Z),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new q_(this._editor),this._colorDecorationClassRefs=this._register(new Z),this._debounceInformation=n.for(i.colorProvider,"Document Colors",{min:$8.RECOMPUTE_TIME}),this._register(e.onDidChangeModel(()=>{this._isEnabled=this.isEnabled(),this.onModelChanged()})),this._register(e.onDidChangeModelLanguage(()=>this.onModelChanged())),this._register(i.colorProvider.onDidChange(()=>this.onModelChanged())),this._register(e.onDidChangeConfiguration(s=>{const r=this._isEnabled;this._isEnabled=this.isEnabled(),(r!==this._isEnabled||s.hasChanged(18))&&(this._isEnabled?this.onModelChanged():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isEnabled=this.isEnabled(),this.onModelChanged()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&typeof i=="object"){const n=i.colorDecorators;if(n&&n.enable!==void 0&&!n.enable)return n.enable}return this._editor.getOption(17)}getDecoratorLimit(){return this._editor.getOption(18)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}onModelChanged(){if(this.stop(),!this._isEnabled)return;const e=this._editor.getModel();!e||!this._languageFeaturesService.colorProvider.has(e)||(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new go,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(e)))})),this.beginCompute())}beginCompute(){this._computePromise=Wi(e=>Ire(this,void 0,void 0,function*(){const t=this._editor.getModel();if(!t)return Promise.resolve([]);const i=new ts(!1),n=yield xre(this._languageFeaturesService.colorProvider,t,e);return this._debounceInformation.update(t,i.elapsed()),n})),this._computePromise.then(e=>{this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null},Oe)}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map(i=>({range:{startLineNumber:i.colorInfo.range.startLineNumber,startColumn:i.colorInfo.range.startColumn,endLineNumber:i.colorInfo.range.endLineNumber,endColumn:i.colorInfo.range.endColumn},options:Re.EMPTY}));this._editor.changeDecorations(i=>{this._decorationsIds=i.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((n,s)=>this._colorDatas.set(n,e[s]))})}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[];for(let i=0;ithis._colorDatas.has(n.id));return i.length===0?null:this._colorDatas.get(i[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};Ih.ID="editor.contrib.colorDetector";Ih.RECOMPUTE_TIME=1e3;Ih=kre([aL(1,at),aL(2,fe),aL(3,Co)],Ih);lt(Ih.ID,Ih,1);class Ere{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new O,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new O,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let i=-1;for(let n=0;n{this.backgroundColor=r.getColor(iC)||H.white})),this._register(K(this.pickedColorNode,ae.CLICK,()=>this.model.selectNextColorPresentation())),this._register(K(s,ae.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this.pickedColorNode.style.backgroundColor=H.Format.CSS.format(t.color)||"",this.pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){this.pickedColorNode.style.backgroundColor=H.Format.CSS.format(e)||"",this.pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:"",this.pickedColorNode.prepend(cr(".codicon.codicon-color-mode"))}}class Tre extends U{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this.domNode=cr(".colorpicker-body"),q(e,this.domNode),this.saturationBox=new Mre(this.domNode,this.model,this.pixelRatio),this._register(this.saturationBox),this._register(this.saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this.saturationBox.onColorFlushed(this.flushColor,this)),this.opacityStrip=new Are(this.domNode,this.model),this._register(this.opacityStrip),this._register(this.opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this.opacityStrip.onColorFlushed(this.flushColor,this)),this.hueStrip=new Rre(this.domNode,this.model),this._register(this.hueStrip),this._register(this.hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this.hueStrip.onColorFlushed(this.flushColor,this))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const i=this.model.color.hsva;this.model.color=new H(new Jr(i.h,e,t,i.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new H(new Jr(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,i=(1-e)*360;this.model.color=new H(new Jr(i===360?0:i,t.s,t.v,t.a))}layout(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()}}class Mre extends U{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,this.domNode=cr(".saturation-wrap"),q(e,this.domNode),this.canvas=document.createElement("canvas"),this.canvas.className="saturation-box",q(this.domNode,this.canvas),this.selection=cr(".saturation-selection"),q(this.domNode,this.selection),this.layout(),this._register(K(this.domNode,ae.POINTER_DOWN,n=>this.onPointerDown(n))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new Lg);const t=Fi(this.domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,n=>this.onDidChangePosition(n.pageX-t.left,n.pageY-t.top),()=>null);const i=K(document,ae.POINTER_UP,()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(e,t){const i=Math.max(0,Math.min(1,e/this.width)),n=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,n),this._onDidChange.fire({s:i,v:n})}layout(){this.width=this.domNode.offsetWidth,this.height=this.domNode.offsetHeight,this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new H(new Jr(e.h,1,1,1)),i=this.canvas.getContext("2d"),n=i.createLinearGradient(0,0,this.canvas.width,0);n.addColorStop(0,"rgba(255, 255, 255, 1)"),n.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),n.addColorStop(1,"rgba(255, 255, 255, 0)");const s=i.createLinearGradient(0,0,0,this.canvas.height);s.addColorStop(0,"rgba(0, 0, 0, 0)"),s.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this.canvas.width,this.canvas.height),i.fillStyle=H.Format.CSS.format(t),i.fill(),i.fillStyle=n,i.fill(),i.fillStyle=s,i.fill()}paintSelection(e,t){this.selection.style.left=`${e*this.width}px`,this.selection.style.top=`${this.height-t*this.height}px`}onDidChangeColor(){this.monitor&&this.monitor.isMonitoring()||this.paint()}}class j8 extends U{constructor(e,t){super(),this.model=t,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,this.domNode=q(e,cr(".strip")),this.overlay=q(this.domNode,cr(".overlay")),this.slider=q(this.domNode,cr(".slider")),this.slider.style.top="0px",this._register(K(this.domNode,ae.POINTER_DOWN,i=>this.onPointerDown(i))),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._register(new Lg),i=Fi(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,s=>this.onDidChangeTop(s.pageY-i.top),()=>null);const n=K(document,ae.POINTER_UP,()=>{this._onColorFlushed.fire(),n.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")},!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=`${(1-e)*this.height}px`}}class Are extends j8{constructor(e,t){super(e,t),this.domNode.classList.add("opacity-strip"),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){const{r:t,g:i,b:n}=e.rgba,s=new H(new nt(t,i,n,1)),r=new H(new nt(t,i,n,0));this.overlay.style.background=`linear-gradient(to bottom, ${s} 0%, ${r} 100%)`}getValue(e){return e.hsva.a}}class Rre extends j8{constructor(e,t){super(e,t),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class Pre extends vo{constructor(e,t,i,n){super(),this.model=t,this.pixelRatio=i,this._register(Pf.onDidChange(()=>this.layout()));const s=cr(".colorpicker-widget");e.appendChild(s);const r=new Nre(s,this.model,n);this.body=new Tre(s,this.model,this.pixelRatio),this._register(r),this._register(this.body)}layout(){this.body.layout()}}var Ore=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Fre=function(o,e){return function(t,i){e(t,i,o)}},UP=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Bre{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let Jk=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=1}computeSync(e,t){return[]}computeAsync(e,t,i){return pi.fromPromise(this._computeAsync(e,t,i))}_computeAsync(e,t,i){return UP(this,void 0,void 0,function*(){if(!this._editor.hasModel())return[];const n=Ih.get(this._editor);if(!n)return[];for(const s of t){if(!n.isColorDecoration(s))continue;const r=n.getColorData(s.range.getStartPosition());if(r)return[yield this._createColorHover(this._editor.getModel(),r.colorInfo,r.provider)]}return[]})}_createColorHover(e,t,i){return UP(this,void 0,void 0,function*(){const n=e.getValueInRange(t.range),{red:s,green:r,blue:a,alpha:l}=t.color,d=new nt(Math.round(s*255),Math.round(r*255),Math.round(a*255),l),c=new H(d),h=yield zP(e,t,i,Ye.None),u=new Ere(c,[],0);return u.colorPresentations=h||[],u.guessColorPresentation(c,n),new Bre(this,y.lift(t.range),u,i)})}renderHoverParts(e,t){if(t.length===0||!this._editor.hasModel())return U.None;const i=new Z,n=t[0],s=this._editor.getModel(),r=n.model,a=i.add(new Pre(e.fragment,r,this._editor.getOption(136),this._themeService));e.setColorPicker(a);let l=new y(n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn);const d=()=>{let h,u;if(r.presentation.textEdit){h=[r.presentation.textEdit],u=new y(r.presentation.textEdit.range.startLineNumber,r.presentation.textEdit.range.startColumn,r.presentation.textEdit.range.endLineNumber,r.presentation.textEdit.range.endColumn);const f=this._editor.getModel()._setTrackedRange(null,u,3);this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",h),u=this._editor.getModel()._getTrackedRange(f)||u}else h=[{range:l,text:r.presentation.label,forceMoveMarkers:!1}],u=l.setEndPosition(l.endLineNumber,l.startColumn+r.presentation.label.length),this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",h);r.presentation.additionalTextEdits&&(h=[...r.presentation.additionalTextEdits],this._editor.executeEdits("colorpicker",h),e.hide()),this._editor.pushUndoStop(),l=u},c=h=>zP(s,{range:l,color:{red:h.rgba.r/255,green:h.rgba.g/255,blue:h.rgba.b/255,alpha:h.rgba.a}},n.provider,Ye.None).then(u=>{r.colorPresentations=u||[]});return i.add(r.onColorFlushed(h=>{c(h).then(d)})),i.add(r.onDidChangeColor(c)),i}};Jk=Ore([Fre(1,Hi)],Jk);function eI(o,e){return!!o[e]}class lL{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=eI(e.event,t.triggerModifier),this.hasSideBySideModifier=eI(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class $P{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=eI(e,t.triggerModifier)}}class bv{constructor(e,t,i,n){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=n}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function jP(o){return o==="altKey"?Ke?new bv(57,"metaKey",6,"altKey"):new bv(5,"ctrlKey",6,"altKey"):Ke?new bv(6,"altKey",57,"metaKey"):new bv(6,"altKey",5,"ctrlKey")}class zw extends U{constructor(e,t){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new O),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new O),this.onExecute=this._onExecute.event,this._onCancel=this._register(new O),this.onCancel=this._onCancel.event,this._editor=e,this._alwaysFireExecuteOnMouseUp=t,this._opts=jP(this._editor.getOption(74)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(i=>{if(i.hasChanged(74)){const n=jP(this._editor.getOption(74));if(this._opts.equals(n))return;this._opts=n,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(i=>this._onEditorMouseMove(new lL(i,this._opts)))),this._register(this._editor.onMouseDown(i=>this._onEditorMouseDown(new lL(i,this._opts)))),this._register(this._editor.onMouseUp(i=>this._onEditorMouseUp(new lL(i,this._opts)))),this._register(this._editor.onKeyDown(i=>this._onEditorKeyDown(new $P(i,this._opts)))),this._register(this._editor.onKeyUp(i=>this._onEditorKeyUp(new $P(i,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(i=>this._onDidChangeCursorSelection(i))),this._register(this._editor.onDidChangeModel(i=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(i=>{(i.scrollTopChanged||i.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=e.target.position?e.target.position.lineNumber:0}_onEditorMouseUp(e){const t=e.target.position?e.target.position.lineNumber:0;(this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t||this._alwaysFireExecuteOnMouseUp)&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}var Wre=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Wa=function(o,e){return function(t,i){e(t,i,o)}};let Bd=class extends Gf{constructor(e,t,i,n,s,r,a,l,d,c,h,u){super(e,Object.assign(Object.assign({},i.getRawOptions()),{overflowWidgetsDomNode:i.getOverflowWidgetsDomNode()}),{},n,s,r,a,l,d,c,h,u),this._parentEditor=i,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(i.onDidChangeConfiguration(f=>this._onParentConfigurationChanged(f)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){B_(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};Bd=Wre([Wa(3,Me),Wa(4,ut),Wa(5,ri),Wa(6,Ee),Wa(7,Hi),Wa(8,_i),Wa(9,xa),Wa(10,ui),Wa(11,fe)],Bd);const KP=new H(new nt(0,122,204)),Vre={showArrow:!0,showFrame:!0,className:"",frameColor:KP,arrowColor:KP,keepEditorSelection:!1},Hre="vs.editor.contrib.zoneWidget";class zre{constructor(e,t,i,n,s,r){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=n,this._onDomNodeTop=s,this._onComputedHeight=r}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class Ure{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class Uw{constructor(e){this._editor=e,this._ruleName=Uw._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),UM(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){UM(this._ruleName),ox(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px; margin-left: -${this._height}px; `)}show(e){e.column===1&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:y.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}Uw._IdGenerator=new YN(".arrow-decoration-");class $re{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new Z,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=qa(t),B_(this.options,Vre,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(i=>{const n=this._getWidth(i);this.domNode.style.width=n+"px",this.domNode.style.left=this._getLeft(i)+"px",this._onWidth(n)}))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null}),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new Uw(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&e.minimap.minimapLeft===0?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){var t;if(this.domNode.style.height=`${e}px`,this.container){const i=e-this._decoratingElementsHeight();this.container.style.height=`${i}px`;const n=this.editor.getLayoutInfo();this._doLayout(i,this._getWidth(n))}(t=this._resizeSash)===null||t===void 0||t.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){const i=y.isIRange(e)?y.lift(e):y.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId.set([{range:i,options:Re.EMPTY}])}hide(){var e;this._viewZone&&(this.editor.changeViewZones(t=>{this._viewZone&&t.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),(e=this._arrow)===null||e===void 0||e.hide()}_decoratingElementsHeight(){const e=this.editor.getOption(63);let t=0;if(this.options.showArrow){const i=Math.round(e/3);t+=2*i}if(this.options.showFrame){const i=Math.round(e/9);t+=2*i}return t}_showImpl(e,t){const i=e.getStartPosition(),n=this.editor.getLayoutInfo(),s=this._getWidth(n);this.domNode.style.width=`${s}px`,this.domNode.style.left=this._getLeft(n)+"px";const r=document.createElement("div");r.style.overflow="hidden";const a=this.editor.getOption(63),l=Math.max(12,this.editor.getLayoutInfo().height/a*.8);t=Math.min(t,l);let d=0,c=0;if(this._arrow&&this.options.showArrow&&(d=Math.round(a/3),this._arrow.height=d,this._arrow.show(i)),this.options.showFrame&&(c=Math.round(a/9)),this.editor.changeViewZones(f=>{this._viewZone&&f.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new zre(r,i.lineNumber,i.column,t,p=>this._onViewZoneTop(p),p=>this._onViewZoneHeight(p)),this._viewZone.id=f.addZone(this._viewZone),this._overlayWidget=new Ure(Hre+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){const f=this.options.frameWidth?this.options.frameWidth:c;this.container.style.borderTopWidth=f+"px",this.container.style.borderBottomWidth=f+"px"}const h=t*a-this._decoratingElementsHeight();this.container&&(this.container.style.top=d+"px",this.container.style.height=h+"px",this.container.style.overflow="hidden"),this._doLayout(h,s),this.options.keepEditorSelection||this.editor.setSelection(e);const u=this.editor.getModel();if(u){const f=u.validateRange(new y(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(f,f.endLineNumber===u.getLineCount())}}revealRange(e,t){t?this.editor.revealLineNearTop(e.endLineNumber,0):this.editor.revealRange(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones(t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))})}_initSash(){if(this._resizeSash)return;this._resizeSash=this._disposables.add(new gn(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0);let e;this._disposables.add(this._resizeSash.onDidStart(t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(()=>{e=void 0})),this._disposables.add(this._resizeSash.onDidChange(t=>{if(e){const i=(t.currentY-e.startY)/this.editor.getOption(63),n=i<0?Math.ceil(i):Math.floor(i),s=e.heightInLines+n;s>5&&s<35&&this._relayout(s)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}var K8=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},q8=function(o,e){return function(t,i){e(t,i,o)}};const G8=Je("IPeekViewService");ot(G8,class{constructor(){this._widgets=new Map}addExclusiveWidget(o,e){const t=this._widgets.get(o);t&&(t.listener.dispose(),t.widget.dispose());const i=()=>{const n=this._widgets.get(o);n&&n.widget===e&&(n.listener.dispose(),this._widgets.delete(o))};this._widgets.set(o,{widget:e,listener:e.onDidClose(i)})}},1);var ss;(function(o){o.inPeekEditor=new de("inReferenceSearchEditor",!0,g("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),o.notInPeekEditor=o.inPeekEditor.toNegated()})(ss||(ss={}));let f_=class{constructor(e,t){e instanceof Bd&&ss.inPeekEditor.bindTo(t)}dispose(){}};f_.ID="editor.contrib.referenceController";f_=K8([q8(1,Ee)],f_);lt(f_.ID,f_,0);function jre(o){const e=o.get(ut).getFocusedCodeEditor();return e instanceof Bd?e.getParentEditor():e}const Kre={headerBackgroundColor:H.white,primaryHeadingColor:H.fromHex("#333333"),secondaryHeadingColor:H.fromHex("#6c6c6cb3")};let s1=class extends $re{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new O,this.onDidClose=this._onDidClose.event,B_(this.options,Kre,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=X(".head"),this._bodyElement=X(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){const i=X(".peekview-title");this.options.supportOnTitleClick&&(i.classList.add("clickable"),hi(i,"click",r=>this._onTitleClick(r))),q(this._headElement,i),this._fillTitleIcon(i),this._primaryHeading=X("span.filename"),this._secondaryHeading=X("span.dirname"),this._metaHeading=X("span.meta"),q(i,this._primaryHeading,this._secondaryHeading,this._metaHeading);const n=X(".peekview-actions");q(this._headElement,n);const s=this._getActionBarOptions();this._actionbarWidget=new fo(n,s),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new ms("peekview.close",g("label.close","Close"),De.asClassName(se.close),!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:Cee.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:xi(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,hs(this._metaHeading)):On(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0){this.dispose();return}const i=Math.ceil(this.editor.getOption(63)*1.2),n=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(n,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};s1=K8([q8(2,Me)],s1);const qre=M("peekViewTitle.background",{dark:pe(es,.1),light:pe(es,.1),hcDark:null,hcLight:null},g("peekViewTitleBackground","Background color of the peek view title area.")),Z8=M("peekViewTitleLabel.foreground",{dark:H.white,light:H.black,hcDark:H.white,hcLight:To},g("peekViewTitleForeground","Color of the peek view title.")),Y8=M("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},g("peekViewTitleInfoForeground","Color of the peek view title info.")),Gre=M("peekView.border",{dark:es,light:es,hcDark:Ze,hcLight:Ze},g("peekViewBorder","Color of the peek view borders and arrow.")),Zre=M("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:H.black,hcLight:H.white},g("peekViewResultsBackground","Background color of the peek view result list."));M("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:H.white,hcLight:To},g("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list."));M("peekViewResult.fileForeground",{dark:H.white,light:"#1E1E1E",hcDark:H.white,hcLight:To},g("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list."));M("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},g("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list."));M("peekViewResult.selectionForeground",{dark:H.white,light:"#6C6C6C",hcDark:H.white,hcLight:To},g("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list."));const ld=M("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:H.black,hcLight:H.white},g("peekViewEditorBackground","Background color of the peek view editor."));M("peekViewEditorGutter.background",{dark:ld,light:ld,hcDark:ld,hcLight:ld},g("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor."));M("peekViewEditorStickScroll.background",{dark:ld,light:ld,hcDark:ld,hcLight:ld},g("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor."));M("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},g("peekViewResultsMatchHighlight","Match highlight color in the peek view result list."));M("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},g("peekViewEditorMatchHighlight","Match highlight color in the peek view editor."));M("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:Pt,hcLight:Pt},g("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));var Yre=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Wd{constructor(e,t,i,n){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=n,this.id=p3.nextId()}get uri(){return this.link.uri}get range(){var e,t;return(t=(e=this._range)!==null&&e!==void 0?e:this.link.targetSelectionRange)!==null&&t!==void 0?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;const t=(e=this.parent.getPreview(this))===null||e===void 0?void 0:e.preview(this.range);return t?g({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"symbol in {0} on line {1} at column {2}, {3}",uo(this.uri),this.range.startLineNumber,this.range.startColumn,t.value):g("aria.oneReference","symbol in {0} on line {1} at column {2}",uo(this.uri),this.range.startLineNumber,this.range.startColumn)}}class Qre{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:n,startColumn:s,endLineNumber:r,endColumn:a}=e,l=i.getWordUntilPosition({lineNumber:n,column:s-t}),d=new y(n,l.startColumn,n,s),c=new y(r,a,r,1073741824),h=i.getValueInRange(d).replace(/^\s+/,""),u=i.getValueInRange(e),f=i.getValueInRange(c).replace(/\s+$/,"");return{value:h+u+f,highlight:{start:h.length,end:h.length+u.length}}}}class g_{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new bn}dispose(){gt(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return e===1?g("aria.fileReferences.1","1 symbol in {0}, full path {1}",uo(this.uri),this.uri.fsPath):g("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,uo(this.uri),this.uri.fsPath)}resolve(e){return Yre(this,void 0,void 0,function*(){if(this._previews.size!==0)return this;for(const t of this.children)if(!this._previews.has(t.uri))try{const i=yield e.createModelReference(t.uri);this._previews.set(t.uri,new Qre(i))}catch(i){Oe(i)}return this})}}class _s{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new O,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;e.sort(_s._compareReferences);let n;for(const s of e)if((!n||!Ot.isEqual(n.uri,s.uri,!0))&&(n=new g_(this,s.uri),this.groups.push(n)),n.children.length===0||_s._compareReferences(s,n.children[n.children.length-1])!==0){const r=new Wd(i===s,n,s,a=>this._onDidChangeReferenceRange.fire(a));this.references.push(r),n.children.push(r)}}dispose(){gt(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new _s(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?g("aria.result.0","No results found"):this.references.length===1?g("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?g("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):g("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let n=i.children.indexOf(e);const s=i.children.length,r=i.parent.groups.length;return r===1||t&&n+10?(t?n=(n+1)%s:n=(n+s-1)%s,i.children[n]):(n=i.parent.groups.indexOf(i),t?(n=(n+1)%r,i.parent.groups[n].children[0]):(n=(n+r-1)%r,i.parent.groups[n].children[i.parent.groups[n].children.length-1]))}nearestReference(e,t){const i=this.references.map((n,s)=>({idx:s,prefixLen:ah(n.uri.toString(),e.toString()),offsetDist:Math.abs(n.range.startLineNumber-t.lineNumber)*100+Math.abs(n.range.startColumn-t.column)})).sort((n,s)=>n.prefixLen>s.prefixLen?-1:n.prefixLens.offsetDist?1:0)[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&y.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return Ot.compare(e.uri,t.uri)||y.compareRangesUsingStarts(e.range,t.range)}}var $w=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},jw=function(o,e){return function(t,i){e(t,i,o)}};let tI=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof _s||e instanceof g_}getChildren(e){if(e instanceof _s)return e.groups;if(e instanceof g_)return e.resolve(this._resolverService).then(t=>t.children);throw new Error("bad tree")}};tI=$w([jw(0,os)],tI);class Xre{getHeight(){return 23}getTemplateId(e){return e instanceof g_?p_.id:f0.id}}let iI=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof Wd){const i=(t=e.parent.getPreview(e))===null||t===void 0?void 0:t.preview(e.range);if(i)return i.value}return uo(e.uri)}};iI=$w([jw(0,ei)],iI);class Jre{getId(e){return e instanceof Wd?e.id:e.uri}}let nI=class extends U{constructor(e,t){super(),this._labelService=t;const i=document.createElement("div");i.classList.add("reference-file"),this.file=this._register(new jC(i,{supportHighlights:!0})),this.badge=new gk(q(i,X(".count")),{},q3),e.appendChild(i)}set(e,t){const i=cw(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const n=e.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat(g("referencesCount","{0} references",n)):this.badge.setTitleFormat(g("referenceCount","{0} reference",n))}};nI=$w([jw(1,Qf)],nI);let p_=class Q8{constructor(e){this._instantiationService=e,this.templateId=Q8.id}renderTemplate(e){return this._instantiationService.createInstance(nI,e)}renderElement(e,t,i){i.set(e.element,pw(e.filterData))}disposeTemplate(e){e.dispose()}};p_.id="FileReferencesRenderer";p_=$w([jw(0,Me)],p_);class eae{constructor(e){this.label=new pl(e)}set(e,t){var i;const n=(i=e.parent.getPreview(e))===null||i===void 0?void 0:i.preview(e.range);if(!n||!n.value)this.label.set(`${uo(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`);else{const{value:s,highlight:r}=n;t&&!_r.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(s,pw(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(s,[r]))}}}class f0{constructor(){this.templateId=f0.id}renderTemplate(e){return new eae(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(){}}f0.id="OneReferenceRenderer";class tae{getWidgetAriaLabel(){return g("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var iae=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Va=function(o,e){return function(t,i){e(t,i,o)}},qP=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Kw{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new Z,this._callOnModelChange=new Z,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e){for(const t of this._model.references)if(t.uri.toString()===e.uri.toString()){this._addDecorations(t.parent);return}}}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));const t=[],i=[];for(let n=0,s=e.children.length;n{const s=n.deltaDecorations([],t);for(let r=0;r{s.equals(9)&&(this._keybindingService.dispatchEvent(s,s.target),s.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(sae,"ReferencesWidget",this._treeContainer,new Xre,[this._instantiationService.createInstance(p_),this._instantiationService.createInstance(f0)],this._instantiationService.createInstance(tI),i),this._splitView.addView({onDidChange:_e.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:s=>{this._preview.layout({height:this._dim.height,width:s})}},KC.Distribute),this._splitView.addView({onDidChange:_e.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:s=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${s}px`,this._tree.layout(this._dim.height,s)}},KC.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));const n=(s,r)=>{s instanceof Wd&&(r==="show"&&this._revealReference(s,!1),this._onDidSelectReference.fire({element:s,kind:r,source:"tree"}))};this._tree.onDidOpen(s=>{s.sideBySide?n(s.element,"side"):s.editorOptions.pinned?n(s.element,"goto"):n(s.element,"show")}),On(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new Dt(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then(()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))})}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=g("noResults","No results"),hs(this._messageContainer),Promise.resolve(void 0)):(On(this._messageContainer),this._decorationsManager=new Kw(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(e=>this._tree.rerender(e))),this._disposeOnNewModel.add(this._preview.onMouseDown(e=>{const{event:t,target:i}=e;if(t.detail!==2)return;const n=this._getFocusedReference();n&&this._onDidSelectReference.fire({element:{uri:n.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),hs(this._treeContainer),hs(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();if(e instanceof Wd)return e;if(e instanceof g_&&e.children.length>0)return e.children[0]}revealReference(e){return qP(this,void 0,void 0,function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})})}_revealReference(e,t){return qP(this,void 0,void 0,function*(){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==We.inMemory?this.setTitle(rZ(e.uri),this._uriLabel.getUriLabel(cw(e.uri))):this.setTitle(g("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent?this._tree.reveal(e):(t&&this._tree.reveal(e.parent),yield this._tree.expand(e.parent),this._tree.reveal(e));const n=yield i;if(!this._model){n.dispose();return}gt(this._previewModelReference);const s=n.object;if(s){const r=this._preview.getModel()===s.textEditorModel?0:1,a=y.lift(e.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(s.textEditorModel),this._preview.setSelection(a),this._preview.revealRangeInCenter(a,r)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()})}};sI=iae([Va(3,Hi),Va(4,os),Va(5,Me),Va(6,G8),Va(7,Qf),Va(8,hw),Va(9,ei),Va(10,Ut),Va(11,ui)],sI);var oae=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Su=function(o,e){return function(t,i){e(t,i,o)}},GP=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};const nu=new de("referenceSearchVisible",!1,g("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let Vd=class oI{static get(e){return e.getContribution(oI.ID)}constructor(e,t,i,n,s,r,a,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=n,this._notificationService=s,this._instantiationService=r,this._storageService=a,this._configurationService=l,this._disposables=new Z,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=nu.bindTo(i)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),(e=this._widget)===null||e===void 0||e.dispose(),(t=this._model)===null||t===void 0||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let n;if(this._widget&&(n=this._widget.position),this.closeWidget(),n&&e.containsPosition(n))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));const s="peekViewLayout",r=nae.fromJSON(this._storageService.get(s,0,"{}"));this._widget=this._instantiationService.createInstance(sI,this._editor,this._defaultTreeKeyboardSupport,r),this._widget.setTitle(g("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store(s,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(l=>{const{element:d,kind:c}=l;if(d)switch(c){case"open":(l.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(d,!1,!1);break;case"side":this.openReference(d,!0,!1);break;case"goto":i?this._gotoReference(d,!0):this.openReference(d,!1,!0);break}}));const a=++this._requestIdPool;t.then(l=>{var d;if(a!==this._requestIdPool||!this._widget){l.dispose();return}return(d=this._model)===null||d===void 0||d.dispose(),this._model=l,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(g("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const c=this._editor.getModel().uri,h=new W(e.startLineNumber,e.startColumn),u=this._model.nearestReference(c,h);if(u)return this._widget.setSelection(u).then(()=>{this._widget&&this._editor.getOption(82)==="editor"&&this._widget.focusOnPreviewEditor()})}})},l=>{this._notificationService.error(l)})}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return GP(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const n=this._model.nextOrPreviousReference(i,e),s=this._editor.hasTextFocus(),r=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(n),yield this._gotoReference(n,!1),s?this._editor.focus():this._widget&&r&&this._widget.focusOnPreviewEditor()})}revealReference(e){return GP(this,void 0,void 0,function*(){!this._editor.hasModel()||!this._model||!this._widget||(yield this._widget.revealReference(e))})}closeWidget(e=!0){var t,i;(t=this._widget)===null||t===void 0||t.dispose(),(i=this._model)===null||i===void 0||i.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e,t){var i;(i=this._widget)===null||i===void 0||i.hide(),this._ignoreModelChangeEvent=!0;const n=y.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:n,selectionSource:"code.jump",pinned:t}},this._editor).then(s=>{var r;if(this._ignoreModelChangeEvent=!1,!s||!this._widget){this.closeWidget();return}if(this._editor===s)this._widget.show(n),this._widget.focusOnReferenceTree();else{const a=oI.get(s),l=this._model.clone();this.closeWidget(),s.focus(),a==null||a.toggleWidget(n,Wi(d=>Promise.resolve(l)),(r=this._peekMode)!==null&&r!==void 0?r:!1)}},s=>{this._ignoreModelChangeEvent=!1,Oe(s)})}openReference(e,t,i){t||this.closeWidget();const{uri:n,range:s}=e;this._editorService.openCodeEditor({resource:n,options:{selection:s,selectionSource:"code.jump",pinned:i}},this._editor,t)}};Vd.ID="editor.contrib.referencesController";Vd=oae([Su(2,Ee),Su(3,ut),Su(4,_i),Su(5,Me),Su(6,jo),Su(7,at)],Vd);function su(o,e){const t=jre(o);if(!t)return;const i=Vd.get(t);i&&e(i)}is.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:ki(2089,60),when:oe.or(nu,ss.inPeekEditor),handler(o){su(o,e=>{e.changeFocusBetweenPreviewAndReferences()})}});is.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:oe.or(nu,ss.inPeekEditor),handler(o){su(o,e=>{e.goToNextOrPreviousReference(!0)})}});is.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:oe.or(nu,ss.inPeekEditor),handler(o){su(o,e=>{e.goToNextOrPreviousReference(!1)})}});st.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference");st.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference");st.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch");st.registerCommand("closeReferenceSearch",o=>su(o,e=>e.closeWidget()));is.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:oe.and(ss.inPeekEditor,oe.not("config.editor.stablePeek"))});is.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:oe.and(nu,oe.not("config.editor.stablePeek"))});is.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:oe.and(nu,C7,C2.negate(),w2.negate()),handler(o){var e;const i=(e=o.get(wo).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Wd&&su(o,n=>n.revealReference(i[0]))}});is.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:oe.and(nu,C7,C2.negate(),w2.negate()),handler(o){var e;const i=(e=o.get(wo).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Wd&&su(o,n=>n.openReference(i[0],!0,!0))}});st.registerCommand("openReference",o=>{var e;const i=(e=o.get(wo).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Wd&&su(o,n=>n.openReference(i[0],!1,!0))});var X8=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Op=function(o,e){return function(t,i){e(t,i,o)}};const $2=new de("hasSymbols",!1,g("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),qw=Je("ISymbolNavigationService");let rI=class{constructor(e,t,i,n){this._editorService=t,this._notificationService=i,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=$2.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),(e=this._currentState)===null||e===void 0||e.dispose(),(t=this._currentMessage)===null||t===void 0||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1){this.reset();return}this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new aI(this._editorService),n=i.onDidChange(s=>{if(this._ignoreEditorChange)return;const r=this._editorService.getActiveCodeEditor();if(!r)return;const a=r.getModel(),l=r.getPosition();if(!a||!l)return;let d=!1,c=!1;for(const h of t.references)if(LN(h.uri,a.uri))d=!0,c=c||y.containsPosition(h.range,l);else if(d)break;(!d||!c)&&this.reset()});this._currentState=Oo(i,n)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:y.collapseToStart(t.range),selectionRevealType:3}},e).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){var e;(e=this._currentMessage)===null||e===void 0||e.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),i=t?g("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):g("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};rI=X8([Op(0,Ee),Op(1,ut),Op(2,_i),Op(3,ei)],rI);ot(qw,rI,1);ie(new class extends Ji{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:$2,kbOpts:{weight:100,primary:70}})}runEditorCommand(o,e){return o.get(qw).revealNext(e)}});is.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:$2,primary:9,handler(o){o.get(qw).reset()}});let aI=class{constructor(e){this._listener=new Map,this._disposables=new Z,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),gt(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,Oo(e.onDidChangeCursorPosition(t=>this._onDidChange.fire({editor:e})),e.onDidChangeModelContent(t=>this._onDidChange.fire({editor:e}))))}_onDidRemoveEditor(e){var t;(t=this._listener.get(e))===null||t===void 0||t.dispose(),this._listener.delete(e)}};aI=X8([Op(0,ut)],aI);var j2=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};function g0(o,e,t,i){return j2(this,void 0,void 0,function*(){const s=t.ordered(o).map(a=>Promise.resolve(i(a,o,e)).then(void 0,l=>{Vi(l)})),r=yield Promise.all(s);return mg(r.flat())})}function Gw(o,e,t,i){return g0(e,t,o,(n,s,r)=>n.provideDefinition(s,r,i))}function J8(o,e,t,i){return g0(e,t,o,(n,s,r)=>n.provideDeclaration(s,r,i))}function e9(o,e,t,i){return g0(e,t,o,(n,s,r)=>n.provideImplementation(s,r,i))}function t9(o,e,t,i){return g0(e,t,o,(n,s,r)=>n.provideTypeDefinition(s,r,i))}function Zw(o,e,t,i,n){return g0(e,t,o,(s,r,a)=>j2(this,void 0,void 0,function*(){const l=yield s.provideReferences(r,a,{includeDeclaration:!0},n);if(!i||!l||l.length!==2)return l;const d=yield s.provideReferences(r,a,{includeDeclaration:!1},n);return d&&d.length===1?d:l}))}function p0(o){return j2(this,void 0,void 0,function*(){const e=yield o(),t=new _s(e,""),i=t.references.map(n=>n.link);return t.dispose(),i})}Na("_executeDefinitionProvider",(o,e,t)=>{const i=o.get(fe),n=Gw(i.definitionProvider,e,t,Ye.None);return p0(()=>n)});Na("_executeTypeDefinitionProvider",(o,e,t)=>{const i=o.get(fe),n=t9(i.typeDefinitionProvider,e,t,Ye.None);return p0(()=>n)});Na("_executeDeclarationProvider",(o,e,t)=>{const i=o.get(fe),n=J8(i.declarationProvider,e,t,Ye.None);return p0(()=>n)});Na("_executeReferenceProvider",(o,e,t)=>{const i=o.get(fe),n=Zw(i.referenceProvider,e,t,!1,Ye.None);return p0(()=>n)});Na("_executeImplementationProvider",(o,e,t)=>{const i=o.get(fe),n=e9(i.implementationProvider,e,t,Ye.None);return p0(()=>n)});var Fo=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})},dL,cL,hL,uL,fL,gL,pL,mL;Jn.appendMenuItem(N.EditorContext,{submenu:N.EditorContextPeek,title:g("peek.submenu","Peek"),group:"navigation",order:100});class rg{static is(e){return!e||typeof e!="object"?!1:!!(e instanceof rg||W.isIPosition(e.position)&&e.model)}constructor(e,t){this.model=e,this.position=t}}class In extends _${static all(){return In._allSymbolNavigationCommands.values()}static _patchConfig(e){const t=Object.assign(Object.assign({},e),{f1:!0});if(t.menu)for(const i of it.wrap(t.menu))(i.id===N.EditorContext||i.id===N.EditorContextPeek)&&(i.when=oe.and(e.precondition,i.when));return t}constructor(e,t){super(In._patchConfig(t)),this.configuration=e,In._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,i,n){if(!t.hasModel())return Promise.resolve(void 0);const s=e.get(_i),r=e.get(ut),a=e.get(ec),l=e.get(qw),d=e.get(fe),c=e.get(Me),h=t.getModel(),u=t.getPosition(),f=rg.is(i)?i:new rg(h,u),p=new Sh(t,5),m=z1(this._getLocationModel(d,f.model,f.position,p.token),p.token).then(_=>Fo(this,void 0,void 0,function*(){var b;if(!_||p.token.isCancellationRequested)return;dn(_.ariaMessage);let v;if(_.referenceAt(h.uri,u)){const S=this._getAlternativeCommand(t);!In._activeAlternativeCommands.has(S)&&In._allSymbolNavigationCommands.has(S)&&(v=In._allSymbolNavigationCommands.get(S))}const C=_.references.length;if(C===0){if(!this.configuration.muteMessage){const S=h.getWordAtPosition(u);(b=Cs.get(t))===null||b===void 0||b.showMessage(this._getNoResultFoundMessage(S),u)}}else if(C===1&&v)In._activeAlternativeCommands.add(this.desc.id),c.invokeFunction(S=>v.runEditorCommand(S,t,i,n).finally(()=>{In._activeAlternativeCommands.delete(this.desc.id)}));else return this._onResult(r,l,t,_,n)}),_=>{s.error(_)}).finally(()=>{p.dispose()});return a.showWhile(m,250),m}_onResult(e,t,i,n,s){return Fo(this,void 0,void 0,function*(){const r=this._getGoToPreference(i);if(!(i instanceof Bd)&&(this.configuration.openInPeek||r==="peek"&&n.references.length>1))this._openInPeek(i,n,s);else{const a=n.firstReference(),l=n.references.length>1&&r==="gotoAndPeek",d=yield this._openReference(i,e,a,this.configuration.openToSide,!l);l&&d?this._openInPeek(d,n,s):n.dispose(),r==="goto"&&t.put(a)}})}_openReference(e,t,i,n,s){return Fo(this,void 0,void 0,function*(){let r;if(pV(i)&&(r=i.targetSelectionRange),r||(r=i.range),!r)return;const a=yield t.openCodeEditor({resource:i.uri,options:{selection:y.collapseToStart(r),selectionRevealType:3,selectionSource:"code.jump"}},e,n);if(a){if(s){const l=a.getModel(),d=a.createDecorationsCollection([{range:r,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{a.getModel()===l&&d.clear()},350)}return a}})}_openInPeek(e,t,i){const n=Vd.get(e);n&&e.hasModel()?n.toggleWidget(i??e.getSelection(),Wi(s=>Promise.resolve(t)),this.configuration.openInPeek):t.dispose()}}In._allSymbolNavigationCommands=new Map;In._activeAlternativeCommands=new Set;class m0 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Gw(e.definitionProvider,t,i,n),g("def.title","Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?g("noResultWord","No definition found for '{0}'",e.word):g("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(55).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(55).multipleDefinitions}}const i9=Kd&&!FE()?2118:70;Nn((dL=class lI extends m0{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:lI.id,title:{value:g("actions.goToDecl.label","Go to Definition"),original:"Go to Definition",mnemonicTitle:g({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:oe.and(T.hasDefinitionProvider,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:i9,weight:100},menu:[{id:N.EditorContext,group:"navigation",order:1.1},{id:N.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),st.registerCommandAlias("editor.action.goToDeclaration",lI.id)}},dL.id="editor.action.revealDefinition",dL));Nn((cL=class dI extends m0{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:dI.id,title:{value:g("actions.goToDeclToSide.label","Open Definition to the Side"),original:"Open Definition to the Side"},precondition:oe.and(T.hasDefinitionProvider,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:ki(2089,i9),weight:100}}),st.registerCommandAlias("editor.action.openDeclarationToTheSide",dI.id)}},cL.id="editor.action.revealDefinitionAside",cL));Nn((hL=class cI extends m0{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:cI.id,title:{value:g("actions.previewDecl.label","Peek Definition"),original:"Peek Definition"},precondition:oe.and(T.hasDefinitionProvider,ss.notInPeekEditor,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:N.EditorContextPeek,group:"peek",order:2}}),st.registerCommandAlias("editor.action.previewDeclaration",cI.id)}},hL.id="editor.action.peekDefinition",hL));class n9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield J8(e.declarationProvider,t,i,n),g("decl.title","Declarations"))})}_getNoResultFoundMessage(e){return e&&e.word?g("decl.noResultWord","No declaration found for '{0}'",e.word):g("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(55).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(55).multipleDeclarations}}Nn((uL=class s9 extends n9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:s9.id,title:{value:g("actions.goToDeclaration.label","Go to Declaration"),original:"Go to Declaration",mnemonicTitle:g({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:oe.and(T.hasDeclarationProvider,T.isInWalkThroughSnippet.toNegated()),menu:[{id:N.EditorContext,group:"navigation",order:1.3},{id:N.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?g("decl.noResultWord","No declaration found for '{0}'",e.word):g("decl.generic.noResults","No declaration found")}},uL.id="editor.action.revealDeclaration",uL));Nn(class extends n9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:{value:g("actions.peekDecl.label","Peek Declaration"),original:"Peek Declaration"},precondition:oe.and(T.hasDeclarationProvider,ss.notInPeekEditor,T.isInWalkThroughSnippet.toNegated()),menu:{id:N.EditorContextPeek,group:"peek",order:3}})}});class o9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield t9(e.typeDefinitionProvider,t,i,n),g("typedef.title","Type Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?g("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):g("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(55).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(55).multipleTypeDefinitions}}Nn((fL=class r9 extends o9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:r9.ID,title:{value:g("actions.goToTypeDefinition.label","Go to Type Definition"),original:"Go to Type Definition",mnemonicTitle:g({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:oe.and(T.hasTypeDefinitionProvider,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:0,weight:100},menu:[{id:N.EditorContext,group:"navigation",order:1.4},{id:N.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}},fL.ID="editor.action.goToTypeDefinition",fL));Nn((gL=class a9 extends o9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:a9.ID,title:{value:g("actions.peekTypeDefinition.label","Peek Type Definition"),original:"Peek Type Definition"},precondition:oe.and(T.hasTypeDefinitionProvider,ss.notInPeekEditor,T.isInWalkThroughSnippet.toNegated()),menu:{id:N.EditorContextPeek,group:"peek",order:4}})}},gL.ID="editor.action.peekTypeDefinition",gL));class l9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield e9(e.implementationProvider,t,i,n),g("impl.title","Implementations"))})}_getNoResultFoundMessage(e){return e&&e.word?g("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):g("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(55).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(55).multipleImplementations}}Nn((pL=class d9 extends l9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:d9.ID,title:{value:g("actions.goToImplementation.label","Go to Implementations"),original:"Go to Implementations",mnemonicTitle:g({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:oe.and(T.hasImplementationProvider,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:2118,weight:100},menu:[{id:N.EditorContext,group:"navigation",order:1.45},{id:N.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}},pL.ID="editor.action.goToImplementation",pL));Nn((mL=class c9 extends l9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:c9.ID,title:{value:g("actions.peekImplementation.label","Peek Implementations"),original:"Peek Implementations"},precondition:oe.and(T.hasImplementationProvider,ss.notInPeekEditor,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:3142,weight:100},menu:{id:N.EditorContextPeek,group:"peek",order:5}})}},mL.ID="editor.action.peekImplementation",mL));class h9 extends In{_getNoResultFoundMessage(e){return e?g("references.no","No references found for '{0}'",e.word):g("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(55).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(55).multipleReferences}}Nn(class extends h9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{value:g("goToReferences.label","Go to References"),original:"Go to References",mnemonicTitle:g({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:oe.and(T.hasReferenceProvider,ss.notInPeekEditor,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:1094,weight:100},menu:[{id:N.EditorContext,group:"navigation",order:1.45},{id:N.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Zw(e.referenceProvider,t,i,!0,n),g("ref.title","References"))})}});Nn(class extends h9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:{value:g("references.action.label","Peek References"),original:"Peek References"},precondition:oe.and(T.hasReferenceProvider,ss.notInPeekEditor,T.isInWalkThroughSnippet.toNegated()),menu:{id:N.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Zw(e.referenceProvider,t,i,!1,n),g("ref.title","References"))})}});class rae extends In{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",title:{value:g("label.generic","Go to Any Symbol"),original:"Go to Any Symbol"},precondition:oe.and(ss.notInPeekEditor,T.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(this._references,g("generic.title","Locations"))})}_getNoResultFoundMessage(e){return e&&g("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return(t=this._gotoMultipleBehaviour)!==null&&t!==void 0?t:e.getOption(55).multipleReferences}_getAlternativeCommand(){return""}}st.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Ce},{name:"position",description:"The position at which to start",constraint:W.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(o,e,t,i,n,s,r)=>Fo(void 0,void 0,void 0,function*(){_t(Ce.isUri(e)),_t(W.isIPosition(t)),_t(Array.isArray(i)),_t(typeof n>"u"||typeof n=="string"),_t(typeof r>"u"||typeof r=="boolean");const a=o.get(ut),l=yield a.openCodeEditor({resource:e},a.getFocusedCodeEditor());if(La(l))return l.setPosition(t),l.revealPositionInCenterIfOutsideViewport(t,0),l.invokeWithinContext(d=>{const c=new class extends rae{_getNoResultFoundMessage(h){return s||super._getNoResultFoundMessage(h)}}({muteMessage:!s,openInPeek:!!r,openToSide:!1},i,n);d.get(Me).invokeFunction(c.run.bind(c),l)})})});st.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Ce},{name:"position",description:"The position at which to start",constraint:W.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:(o,e,t,i,n)=>Fo(void 0,void 0,void 0,function*(){o.get(ri).executeCommand("editor.action.goToLocations",e,t,i,n,void 0,!0)})});st.registerCommand({id:"editor.action.findReferences",handler:(o,e,t)=>{_t(Ce.isUri(e)),_t(W.isIPosition(t));const i=o.get(fe),n=o.get(ut);return n.openCodeEditor({resource:e},n.getFocusedCodeEditor()).then(s=>{if(!La(s)||!s.hasModel())return;const r=Vd.get(s);if(!r)return;const a=Wi(d=>Zw(i.referenceProvider,s.getModel(),W.lift(t),!1,d).then(c=>new _s(c,g("ref.title","References")))),l=new y(t.lineNumber,t.column,t.lineNumber,t.column);return Promise.resolve(r.toggleWidget(l,a,!1))})}});st.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations");var aae=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},_L=function(o,e){return function(t,i){e(t,i,o)}},ZP=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};let Eh=class pb{constructor(e,t,i,n){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=n,this.toUnhook=new Z,this.toUnhookForKeyboard=new Z,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const s=new zw(e);this.toUnhook.add(s),this.toUnhook.add(s.onMouseMoveOrRelevantKeyDown(([r,a])=>{this.startFindDefinitionFromMouse(r,an(a))})),this.toUnhook.add(s.onExecute(r=>{this.isEnabled(r)&&this.gotoDefinition(r.target.position,r.hasSideBySideModifier).catch(a=>{Oe(a)}).finally(()=>{this.removeLinkDecorations()})})),this.toUnhook.add(s.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(e){return e.getContribution(pb.ID)}startFindDefinitionFromCursor(e){return ZP(this,void 0,void 0,function*(){yield this.startFindDefinition(e),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(t=>{t&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))})}startFindDefinitionFromMouse(e,t){if(e.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}const i=e.target.position;this.startFindDefinition(i)}startFindDefinition(e){var t;return ZP(this,void 0,void 0,function*(){this.toUnhookForKeyboard.clear();const i=e?(t=this.editor.getModel())===null||t===void 0?void 0:t.getWordAtPosition(e):null;if(!i){this.currentWordAtPosition=null,this.removeLinkDecorations();return}if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return;this.currentWordAtPosition=i;const n=new H7(this.editor,15);this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Wi(a=>this.findDefinition(e,a));let s;try{s=yield this.previousPromise}catch(a){Oe(a);return}if(!s||!s.length||!n.validate(this.editor)){this.removeLinkDecorations();return}const r=s[0].originSelectionRange?y.lift(s[0].originSelectionRange):new y(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);if(s.length>1){let a=r;for(const{originSelectionRange:l}of s)l&&(a=y.plusRange(a,l));this.addDecoration(a,new Yn().appendText(g("multipleResults","Click to show {0} definitions.",s.length)))}else{const a=s[0];if(!a.uri)return;this.textModelResolverService.createModelReference(a.uri).then(l=>{if(!l.object||!l.object.textEditorModel){l.dispose();return}const{object:{textEditorModel:d}}=l,{startLineNumber:c}=a.range;if(c<1||c>d.getLineCount()){l.dispose();return}const h=this.getPreviewValue(d,c,a),u=this.languageService.guessLanguageIdByFilepathOrFirstLine(d.uri);this.addDecoration(r,h?new Yn().appendCodeblock(u||"",h):void 0),l.dispose()})}})}getPreviewValue(e,t,i){let n=i.range;return n.endLineNumber-n.startLineNumber>=pb.MAX_SOURCE_PREVIEW_LINES&&(n=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,n)}stripIndentationFromPreviewRange(e,t,i){let s=e.getLineFirstNonWhitespaceColumn(t);for(let a=t+1;a{const n=!t&&this.editor.getOption(83)&&!this.isInPeekEditor(i);return new m0({openToSide:t,openInPeek:n,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(i)})}isInPeekEditor(e){const t=e.get(Ee);return ss.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};Eh.ID="editor.contrib.gotodefinitionatposition";Eh.MAX_SOURCE_PREVIEW_LINES=8;Eh=aae([_L(1,os),_L(2,Ut),_L(3,fe)],Eh);lt(Eh.ID,Eh,2);const Cv=X;class u9 extends U{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new Y_(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class K2 extends U{static render(e,t,i){return new K2(e,t,i)}constructor(e,t,i){super(),this.actionContainer=q(e,Cv("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=q(this.actionContainer,Cv("a.action")),this.action.setAttribute("role","button"),t.iconClass&&q(this.action,Cv(`span.icon.${t.iconClass}`));const n=q(this.action,Cv("span"));n.textContent=i?`${t.label} (${i})`:t.label,this._register(K(this.actionContainer,ae.CLICK,s=>{s.stopPropagation(),s.preventDefault(),t.run(this.actionContainer)})),this._register(K(this.actionContainer,ae.KEY_DOWN,s=>{const r=new Tt(s);(r.equals(3)||r.equals(10))&&(s.stopPropagation(),s.preventDefault(),t.run(this.actionContainer))})),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}var lae=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})},dae=function(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=o[Symbol.asyncIterator],t;return e?e.call(o):(o=typeof __values=="function"?__values(o):o[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(s){t[s]=o[s]&&function(r){return new Promise(function(a,l){r=o[s](r),n(a,l,r.done,r.value)})}}function n(s,r,a,l){Promise.resolve(l).then(function(d){s({value:d,done:a})},r)}};let cae=class{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}};class f9 extends U{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new O),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new wt(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new wt(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new wt(()=>this._triggerLoadingMessage(),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(57).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=VH(e=>this._computer.computeAsync(e)),lae(this,void 0,void 0,function*(){var e,t,i,n;try{try{for(var s=!0,r=dae(this._asyncIterable),a;a=yield r.next(),e=a.done,!e;){n=a.value,s=!1;try{const l=n;l&&(this._result.push(l),this._fireResult())}finally{s=!0}}}catch(l){t={error:l}}finally{try{!s&&!e&&(i=r.return)&&(yield i.call(r))}finally{if(t)throw t.error}}this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(l){Oe(l)}})):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){this._state===3&&this._setState(4)}_fireResult(){if(this._state===1||this._state===2)return;const e=this._state===0,t=this._state===4;this._onResult.fire(new cae(this._result.slice(0),e,t))}start(e){if(e===0)this._state===0&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}class vL{constructor(e,t,i,n){this.priority=e,this.range=t,this.initialMousePosX=i,this.initialMousePosY=n,this.type=1}equals(e){return e.type===1&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return e.type===1&&t.lineNumber===this.range.startLineNumber}}class mb{constructor(e,t,i,n,s,r){this.priority=e,this.owner=t,this.range=i,this.initialMousePosX=n,this.initialMousePosY=s,this.supportsMarkerHover=r,this.type=2}equals(e){return e.type===2&&this.owner===e.owner}canAdoptVisibleHover(e,t){return e.type===2&&this.owner===e.owner}}const ou=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}};class ko{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t=0,i=this.value.charCodeAt(e),n;if(n=ko._table[i],typeof n=="number")return this.pos+=1,{type:n,pos:e,len:1};if(ko.isDigitCharacter(i)){n=8;do t+=1,i=this.value.charCodeAt(e+t);while(ko.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}if(ko.isVariableCharacter(i)){n=9;do i=this.value.charCodeAt(e+ ++t);while(ko.isVariableCharacter(i)||ko.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}n=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof ko._table[i]>"u"&&!ko.isDigitCharacter(i)&&!ko.isVariableCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}}ko._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class Mg{constructor(){this._children=[]}appendChild(e){return e instanceof Fn&&this._children[this._children.length-1]instanceof Fn?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),s=i.children.slice(0);s.splice(n,1,...t),i._children=s,function r(a,l){for(const d of a)d.parent=l,r(d.children,d)}(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof _0)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class Fn extends Mg{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new Fn(this.value)}}class g9 extends Mg{}class Xs extends g9{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.indext.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof Ag?this._children[0]:void 0}clone(){const e=new Xs(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class Ag extends Mg{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof Fn&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new Ag;return this.options.forEach(e.appendChild,e),e}}class q2 extends Mg{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(s=>s instanceof Jo&&!!s.elseValue)&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof Jo){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new q2;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class Jo extends Mg{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":e&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((i,n)=>n===0?i.charAt(0).toLowerCase()+i.substr(1):i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}clone(){return new Jo(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class m_ extends g9{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new Fn(t)],!0):!1}clone(){const e=new m_(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function YP(o,e){const t=[...o];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class _0 extends Mg{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk(function(i){return i instanceof Xs&&(e.push(i),t=!t||t.indexn===e?(i=!0,!1):(t+=n.len(),!0)),i?t:-1}fullLen(e){let t=0;return YP([e],i=>(t+=i.len(),!0)),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof Xs&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof m_&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new _0;return this._children=this.children.map(t=>t.clone()),e}walk(e){YP(this.children,e)}}class Hd{constructor(){this._scanner=new ko,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new _0;return this.parseFragment(e,n),this.ensureFinalTabstop(n,i??!1,t??!1),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,s=[];t.walk(l=>(l instanceof Xs&&(l.isFinalTabstop?n.set(0,void 0):!n.has(l.index)&&l.children.length>0?n.set(l.index,l.children):s.push(l)),!0));const r=(l,d)=>{const c=n.get(l.index);if(!c)return;const h=new Xs(l.index);h.transform=l.transform;for(const u of c){const f=u.clone();h.appendChild(f),f instanceof Xs&&n.has(f.index)&&!d.has(f.index)&&(d.add(f.index),r(f,d),d.delete(f.index))}t.replace(l,[h])},a=new Set;for(const l of s)r(l,a);return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find(s=>s.index===0)||e.appendChild(new Xs(0)))}_accept(e,t){if(e===void 0||this._token.type===e){const i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){const n=this._scanner.next();if(n.type!==0&&n.type!==4&&n.type!==5)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new Fn(t)),!0):!1}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new Xs(Number(t)):new m_(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const s=new Xs(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Fn("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else if(s.index>0&&this._accept(7)){const r=new Ag;for(;;){if(this._parseChoiceElement(r)){if(this._accept(2))continue;if(this._accept(7)&&(s.appendChild(r),this._accept(4)))return e.appendChild(s),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseChoiceElement(e){const t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let n;if((n=this._accept(5,!0))?n=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||n:n=this._accept(void 0,!0),!n)return this._backTo(t),!1;i.push(n)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new Fn(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const s=new m_(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Fn("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseTransform(e){const t=new q2;let i="",n="";for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,i+=s;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(5,!0)||this._accept(6,!0)||s,t.appendChild(new Fn(s));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(i,n)}catch{return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(n)if(i){if(this._accept(4))return e.appendChild(new Jo(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new Jo(Number(n))),!0;else return this._backTo(t),!1;if(this._accept(6)){const s=this._accept(9,!0);return!s||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new Jo(Number(n),s)),!0)}else if(this._accept(11)){const s=this._until(4);if(s)return e.appendChild(new Jo(Number(n),void 0,s,void 0)),!0}else if(this._accept(12)){const s=this._until(4);if(s)return e.appendChild(new Jo(Number(n),void 0,void 0,s)),!0}else if(this._accept(13)){const s=this._until(1);if(s){const r=this._until(4);if(r)return e.appendChild(new Jo(Number(n),void 0,s,r)),!0}}else{const s=this._until(4);if(s)return e.appendChild(new Jo(Number(n),void 0,void 0,s)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new Fn(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}const hae=g("defaultLabel","input"),uae=g("label.preserveCaseToggle","Preserve Case");class fae extends Eg{constructor(e){super({icon:se.preserveCase,title:uae+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class gae extends vo{constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new O),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new O),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new O),this._onInput=this._register(new O),this._onKeyUp=this._register(new O),this._onPreserveCaseKeyDown=this._register(new O),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||hae;const s=n.appendPreserveCaseLabel||"",r=n.history||[],a=!!n.flexibleHeight,l=!!n.flexibleWidth,d=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new a7(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:r,showHistoryHint:n.showHistoryHint,flexibleHeight:a,flexibleWidth:l,flexibleMaxHeight:d,inputBoxStyles:n.inputBoxStyles})),this.preserveCase=this._register(new fae(Object.assign({appendTitle:s,isChecked:!1},n.toggleStyles))),this._register(this.preserveCase.onChange(u=>{this._onDidOptionChange.fire(u),!u&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(u=>{this._onPreserveCaseKeyDown.fire(u)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const c=[this.preserveCase.domNode];this.onkeydown(this.domNode,u=>{if(u.equals(15)||u.equals(17)||u.equals(9)){const f=c.indexOf(document.activeElement);if(f>=0){let p=-1;u.equals(17)?p=(f+1)%c.length:u.equals(15)&&(f===0?p=c.length-1:p=f-1),u.equals(9)?(c[f].blur(),this.inputBox.focus()):p>=0&&c[p].focus(),ze.stop(u,!0)}}});const h=document.createElement("div");h.className="controls",h.style.display=this._showOptionButtons?"block":"none",h.appendChild(this.preserveCase.domNode),this.domNode.appendChild(h),e==null||e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,u=>this._onKeyDown.fire(u)),this.onkeyup(this.inputBox.inputElement,u=>this._onKeyUp.fire(u)),this.oninput(this.inputBox.inputElement,u=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,u=>this._onMouseDown.fire(u))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){var e;(e=this.inputBox)===null||e===void 0||e.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var p9=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},m9=function(o,e){return function(t,i){e(t,i,o)}};const G2=new de("suggestWidgetVisible",!1,g("suggestWidgetVisible","Whether suggestion are visible")),Z2="historyNavigationWidgetFocus",_9="historyNavigationForwardsEnabled",v9="historyNavigationBackwardsEnabled";let ml;const wv=[];function b9(o,e){if(wv.includes(e))throw new Error("Cannot register the same widget multiple times");wv.push(e);const t=new Z,i=new de(Z2,!1).bindTo(o),n=new de(_9,!0).bindTo(o),s=new de(v9,!0).bindTo(o),r=()=>{i.set(!0),ml=e},a=()=>{i.set(!1),ml===e&&(ml=void 0)};return e.element===document.activeElement&&r(),t.add(e.onDidFocus(()=>r())),t.add(e.onDidBlur(()=>a())),t.add(Pe(()=>{wv.splice(wv.indexOf(e),1),a()})),{historyNavigationForwardsEnablement:n,historyNavigationBackwardsEnablement:s,dispose(){t.dispose()}}}let hI=class extends l7{constructor(e,t,i,n){super(e,t,i);const s=this._register(n.createScoped(this.inputBox.element));this._register(b9(s,this.inputBox))}};hI=p9([m9(3,Ee)],hI);let uI=class extends gae{constructor(e,t,i,n,s=!1){super(e,t,s,i);const r=this._register(n.createScoped(this.inputBox.element));this._register(b9(r,this.inputBox))}};uI=p9([m9(3,Ee)],uI);is.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:oe.and(oe.has(Z2),oe.equals(v9,!0),G2.isEqualTo(!1)),primary:16,secondary:[528],handler:o=>{ml==null||ml.showPreviousValue()}});is.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:oe.and(oe.has(Z2),oe.equals(_9,!0),G2.isEqualTo(!1)),primary:18,secondary:[530],handler:o=>{ml==null||ml.showNextValue()}});var fm=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};const Ge={Visible:G2,HasFocusedSuggestion:new de("suggestWidgetHasFocusedSuggestion",!1,g("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new de("suggestWidgetDetailsVisible",!1,g("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new de("suggestWidgetMultipleSuggestions",!1,g("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new de("suggestionMakesTextEdit",!0,g("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new de("acceptSuggestionOnEnter",!0,g("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new de("suggestionHasInsertAndReplaceRange",!1,g("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new de("suggestionInsertMode",void 0,{type:"string",description:g("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new de("suggestionCanResolve",!1,g("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},wd=new N("suggestWidgetStatusBar");class pae{constructor(e,t,i,n){this.position=e,this.completion=t,this.container=i,this.provider=n,this.isInvalid=!1,this.score=_r.Default,this.distance=0,this.textLabel=typeof t.label=="string"?t.label:t.label.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,y.isIRange(t.range)?(this.editStart=new W(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new W(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new W(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||y.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new W(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new W(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new W(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||y.spansMultipleLines(t.range.insert)||y.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),typeof n.resolveCompletionItem!="function"&&(this._resolveCache=Promise.resolve(),this._isResolved=!0)}get isResolved(){return!!this._isResolved}resolve(e){return fm(this,void 0,void 0,function*(){if(!this._resolveCache){const t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._isResolved=!1});this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(i=>{Object.assign(this.completion,i),this._isResolved=!0,t.dispose()},i=>{Da(i)&&(this._resolveCache=void 0,this._isResolved=!1)})}return this._resolveCache})}}class __{constructor(e=2,t=new Set,i=new Set,n=new Map,s=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.providerItemsToReuse=n,this.showDeprecated=s}}__.default=new __;let mae;function _ae(){return mae}class vae{constructor(e,t,i,n){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=n}}function Y2(o,e,t,i=__.default,n={triggerKind:0},s=Ye.None){return fm(this,void 0,void 0,function*(){const r=new ts(!0);t=t.clone();const a=e.getWordAtPosition(t),l=a?new y(t.lineNumber,a.startColumn,t.lineNumber,a.endColumn):y.fromPositions(t),d={replace:l,insert:l.setEndPosition(t.lineNumber,t.column)},c=[],h=new Z,u=[];let f=!1;const p=(_,b,v)=>{var C,S,x;let E=!1;if(!b)return E;for(const L of b.suggestions)if(!i.kindFilter.has(L.kind)){if(!i.showDeprecated&&(!((C=L==null?void 0:L.tags)===null||C===void 0)&&C.includes(1)))continue;L.range||(L.range=d),L.sortText||(L.sortText=typeof L.label=="string"?L.label:L.label.label),!f&&L.insertTextRules&&L.insertTextRules&4&&(f=Hd.guessNeedsClipboard(L.insertText)),c.push(new pae(t,L,b,_)),E=!0}return CE(b)&&h.add(b),u.push({providerName:(S=_._debugDisplayName)!==null&&S!==void 0?S:"unknown_provider",elapsedProvider:(x=b.duration)!==null&&x!==void 0?x:-1,elapsedOverall:v.elapsed()}),E},m=fm(this,void 0,void 0,function*(){});for(const _ of o.orderedGroups(e)){let b=!1;if(yield Promise.all(_.map(v=>fm(this,void 0,void 0,function*(){if(i.providerItemsToReuse.has(v)){const C=i.providerItemsToReuse.get(v);C.forEach(S=>c.push(S)),b=b||C.length>0;return}if(!(i.providerFilter.size>0&&!i.providerFilter.has(v)))try{const C=new ts(!0),S=yield v.provideCompletionItems(e,t,n,s);b=p(v,S,C)||b}catch(C){Vi(C)}}))),b||s.isCancellationRequested)break}return yield m,s.isCancellationRequested?(h.dispose(),Promise.reject(new qd)):new vae(c.sort(wae(i.snippetSortOrder)),f,{entries:u,elapsed:r.elapsed()},h)})}function Q2(o,e){if(o.sortTextLow&&e.sortTextLow){if(o.sortTextLowe.sortTextLow)return 1}return o.textLabele.textLabel?1:o.completion.kind-e.completion.kind}function bae(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return-1;if(e.completion.kind===27)return 1}return Q2(o,e)}function Cae(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return 1;if(e.completion.kind===27)return-1}return Q2(o,e)}const Yw=new Map;Yw.set(0,bae);Yw.set(2,Cae);Yw.set(1,Q2);function wae(o){return Yw.get(o)}st.registerCommand("_executeCompletionItemProvider",(o,...e)=>fm(void 0,void 0,void 0,function*(){const[t,i,n,s]=e;_t(Ce.isUri(t)),_t(W.isIPosition(i)),_t(typeof n=="string"||!n),_t(typeof s=="number"||!s);const{completionProvider:r}=o.get(fe),a=yield o.get(os).createModelReference(t);try{const l={incomplete:!1,suggestions:[]},d=[],c=yield Y2(r,a.object.textEditorModel,W.lift(i),void 0,{triggerCharacter:n??void 0,triggerKind:n?1:0});for(const h of c.items)d.length<(s??0)&&d.push(h.resolve(Ye.None)),l.incomplete=l.incomplete||h.container.incomplete,l.suggestions.push(h.completion);try{return yield Promise.all(d),l}finally{setTimeout(()=>c.disposable.dispose(),100)}}finally{a.dispose()}}));function Sae(o,e){var t;(t=o.getContribution("editor.contrib.suggestController"))===null||t===void 0||t.triggerSuggest(new Set().add(e),void 0,!0)}class of{static isAllOff(e){return e.other==="off"&&e.comments==="off"&&e.strings==="off"}static isAllOn(e){return e.other==="on"&&e.comments==="on"&&e.strings==="on"}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}var X2=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},o1=function(o,e){return function(t,i){e(t,i,o)}};const QP=X;let r1=class fI extends U{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._widget=this._register(this._instantiationService.createInstance(ih,this._editor)),this._currentResult=null,this._participants=[];for(const n of ou.getAll())this._participants.push(this._instantiationService.createInstance(n,this._editor));this._participants.sort((n,s)=>n.hoverOrdinal-s.hoverOrdinal),this._computer=new a1(this._editor,this._participants),this._hoverOperation=this._register(new f9(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{if(!this._computer.anchor)return;const s=n.hasLoadingMessage?this._addLoadingMessage(n.value):n.value;this._withResult(new C9(this._computer.anchor,s,n.isComplete))})),this._register(hi(this._widget.getDomNode(),"keydown",n=>{n.equals(9)&&this.hide()})),this._register(Kt.onDidChange(()=>{this._widget.position&&this._currentResult&&(this._widget.clear(),this._setCurrentResult(this._currentResult))}))}maybeShowAt(e){const t=[];for(const n of this._participants)if(n.suggestHoverAnchor){const s=n.suggestHoverAnchor(e);s&&t.push(s)}const i=e.target;if(i.type===6&&t.push(new vL(0,i.range,e.event.posx,e.event.posy)),i.type===7){const n=this._editor.getOption(47).typicalHalfwidthCharacterWidth/2;!i.detail.isAfterLines&&typeof i.detail.horizontalDistanceToText=="number"&&i.detail.horizontalDistanceToTexts.priority-n.priority),this._startShowingOrUpdateHover(t[0],0,0,!1,e))}startShowingAtRange(e,t,i,n){this._startShowingOrUpdateHover(new vL(0,e,void 0,void 0),t,i,n,null)}_startShowingOrUpdateHover(e,t,i,n,s){return!this._widget.position||!this._currentResult?e?(this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):!1:this._editor.getOption(57).sticky&&s&&this._widget.isMouseGettingCloser(s.event.posx,s.event.posy)?(e&&this._startHoverOperationIfNecessary(e,t,i,n,!0),!0):e?e&&this._currentResult.anchor.equals(e)?!0:e.canAdoptVisibleHover(this._currentResult.anchor,this._widget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),!1)}_startHoverOperationIfNecessary(e,t,i,n,s){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=n,this._computer.source=i,this._computer.insistOnKeepingHoverVisible=s,this._hoverOperation.start(t))}_setCurrentResult(e){this._currentResult!==e&&(e&&e.messages.length===0&&(e=null),this._currentResult=e,this._currentResult?this._renderMessages(this._currentResult.anchor,this._currentResult.messages):this._widget.hide())}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}isColorPickerVisible(){return this._widget.isColorPickerVisible}isVisibleFromKeyboard(){return this._widget.isVisibleFromKeyboard}containsNode(e){return this._widget.getDomNode().contains(e)}_addLoadingMessage(e){if(this._computer.anchor){for(const t of this._participants)if(t.createLoadingMessage){const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}}return e}_withResult(e){this._widget.position&&this._currentResult&&this._currentResult.isComplete&&(!e.isComplete||this._computer.insistOnKeepingHoverVisible&&e.messages.length===0)||this._setCurrentResult(e)}_renderMessages(e,t){const{showAtPosition:i,showAtSecondaryPosition:n,highlightRange:s}=fI.computeHoverRanges(this._editor,e.range,t),r=new Z,a=r.add(new gI(this._keybindingService)),l=document.createDocumentFragment();let d=null;const c={fragment:l,statusBar:a,setColorPicker:u=>d=u,onContentsChanged:()=>this._widget.onContentsChanged(),hide:()=>this.hide()};for(const u of this._participants){const f=t.filter(p=>p.owner===u);f.length>0&&r.add(u.renderHoverParts(c,f))}const h=t.some(u=>u.isBeforeContent);if(a.hasContent&&l.appendChild(a.hoverElement),l.hasChildNodes()){if(s){const u=this._editor.createDecorationsCollection();u.set([{range:s,options:fI._DECORATION_OPTIONS}]),r.add(Pe(()=>{u.clear()}))}this._widget.showAt(l,new Lae(d,i,n,this._editor.getOption(57).above,this._computer.shouldFocus,this._computer.source,h,e.initialMousePosX,e.initialMousePosY,r))}else r.dispose()}static computeHoverRanges(e,t,i){let n=1;if(e.hasModel()){const d=e._getViewModel(),c=d.coordinatesConverter,h=c.convertModelRangeToViewRange(t),u=new W(h.startLineNumber,d.getLineMinColumn(h.startLineNumber));n=c.convertViewPositionToModelPosition(u).column}const s=t.startLineNumber;let r=t.startColumn,a=i[0].range,l=null;for(const d of i)a=y.plusRange(a,d.range),d.range.startLineNumber===s&&d.range.endLineNumber===s&&(r=Math.max(Math.min(r,d.range.startColumn),n)),d.forceShowAtRange&&(l=d.range);return{showAtPosition:l?l.getStartPosition():new W(s,t.startColumn),showAtSecondaryPosition:l?l.getStartPosition():new W(s,r),highlightRange:a}}};r1._DECORATION_OPTIONS=Re.register({description:"content-hover-highlight",className:"hoverHighlight"});r1=X2([o1(1,Me),o1(2,ei)],r1);class C9{constructor(e,t,i){this.anchor=e,this.messages=t,this.isComplete=i}filter(e){const t=this.messages.filter(i=>i.isValidForHoverAnchor(e));return t.length===this.messages.length?this:new yae(this,this.anchor,t,this.isComplete)}}class yae extends C9{constructor(e,t,i,n){super(t,i,n),this.original=e}filter(e){return this.original.filter(e)}}class Lae{constructor(e,t,i,n,s,r,a,l,d,c){this.colorPicker=e,this.showAtPosition=t,this.showAtSecondaryPosition=i,this.preferAbove=n,this.stoleFocus=s,this.source=r,this.isBeforeContent=a,this.initialMousePosX=l,this.initialMousePosY=d,this.disposables=c,this.closestMouseDistance=void 0}}let ih=class w9 extends U{get position(){var e,t;return(t=(e=this._visibleData)===null||e===void 0?void 0:e.showAtPosition)!==null&&t!==void 0?t:null}get isColorPickerVisible(){var e;return!!(!((e=this._visibleData)===null||e===void 0)&&e.colorPicker)}get isVisibleFromKeyboard(){var e;return((e=this._visibleData)===null||e===void 0?void 0:e.source)===1}constructor(e,t){super(),this._editor=e,this._contextKeyService=t,this.allowEditorOverflow=!0,this._hoverVisibleKey=T.hoverVisible.bindTo(this._contextKeyService),this._hover=this._register(new u9),this._visibleData=null,this._register(this._editor.onDidLayoutChange(()=>this._layout())),this._register(this._editor.onDidChangeConfiguration(i=>{i.hasChanged(47)&&this._updateFont()})),this._setVisibleData(null),this._layout(),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),this._visibleData&&this._visibleData.disposables.dispose(),super.dispose()}getId(){return w9.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){if(!this._visibleData)return null;let e=this._visibleData.preferAbove;!e&&this._contextKeyService.getContextKeyValue(Ge.Visible.key)&&(e=!0);const t=this._visibleData.isBeforeContent?3:void 0;return{position:this._visibleData.showAtPosition,secondaryPosition:this._visibleData.showAtSecondaryPosition,preference:e?[1,2]:[2,1],positionAffinity:t}}isMouseGettingCloser(e,t){if(!this._visibleData)return!1;if(typeof this._visibleData.initialMousePosX>"u"||typeof this._visibleData.initialMousePosY>"u")return this._visibleData.initialMousePosX=e,this._visibleData.initialMousePosY=t,!1;const i=Fi(this.getDomNode());typeof this._visibleData.closestMouseDistance>"u"&&(this._visibleData.closestMouseDistance=XP(this._visibleData.initialMousePosX,this._visibleData.initialMousePosY,i.left,i.top,i.width,i.height));const n=XP(e,t,i.left,i.top,i.width,i.height);return n>this._visibleData.closestMouseDistance+4?!1:(this._visibleData.closestMouseDistance=Math.min(this._visibleData.closestMouseDistance,n),!0)}_setVisibleData(e){this._visibleData&&this._visibleData.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!this._visibleData),this._hover.containerDomNode.classList.toggle("hidden",!this._visibleData)}_layout(){const e=Math.max(this._editor.getLayoutInfo().height/4,250),{fontSize:t,lineHeight:i}=this._editor.getOption(47);this._hover.contentsDomNode.style.fontSize=`${t}px`,this._hover.contentsDomNode.style.lineHeight=`${i/t}`,this._hover.contentsDomNode.style.maxHeight=`${e}px`,this._hover.contentsDomNode.style.maxWidth=`${Math.max(this._editor.getLayoutInfo().width*.66,500)}px`}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}showAt(e,t){var i;this._setVisibleData(t),this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._hover.contentsDomNode.style.paddingBottom="",this._updateFont(),this.onContentsChanged(),this._editor.render(),this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),(i=t.colorPicker)===null||i===void 0||i.layout()}hide(){if(this._visibleData){const e=this._visibleData.stoleFocus;this._setVisibleData(null),this._editor.layoutContentWidget(this),e&&this._editor.focus()}}onContentsChanged(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged();const e=this._hover.scrollbar.getScrollDimensions();if(e.scrollWidth>e.width){const i=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingBottom!==i&&(this._hover.contentsDomNode.style.paddingBottom=i,this._editor.layoutContentWidget(this),this._hover.onContentsChanged())}}clear(){this._hover.contentsDomNode.textContent=""}};ih.ID="editor.contrib.contentHoverWidget";ih=X2([o1(1,Ee)],ih);let gI=class extends U{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=QP("div.hover-row.status-bar"),this.actionsElement=q(this.hoverElement,QP("div.actions"))}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;return this._hasContent=!0,this._register(K2.render(this.actionsElement,e,i))}append(e){const t=q(this.actionsElement,e);return this._hasContent=!0,t}};gI=X2([o1(0,ei)],gI);class a1{get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}get source(){return this._source}set source(e){this._source=e}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(e){this._insistOnKeepingHoverVisible=e}constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(e,t){if(t.type!==1&&!t.supportsMarkerHover)return[];const i=e.getModel(),n=t.range.startLineNumber;if(n>i.getLineCount())return[];const s=i.getLineMaxColumn(n);return e.getLineDecorations(n).filter(r=>{if(r.options.isWholeLine)return!0;const a=r.range.startLineNumber===n?r.range.startColumn:1,l=r.range.endLineNumber===n?r.range.endColumn:s;if(r.options.showIfCollapsed){if(a>t.range.startColumn+1||t.range.endColumn-1>l)return!1}else if(a>t.range.startColumn||t.range.endColumn>l)return!1;return!0})}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return pi.EMPTY;const i=a1._getLineDecorations(this._editor,t);return pi.merge(this._participants.map(n=>n.computeAsync?n.computeAsync(t,i,e):pi.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=a1._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return mg(t)}}function XP(o,e,t,i,n,s){const r=t+n/2,a=i+s/2,l=Math.max(Math.abs(o-r)-n/2,0),d=Math.max(Math.abs(e-a)-s/2,0);return Math.sqrt(l*l+d*d)}var Dae=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},JP=function(o,e){return function(t,i){e(t,i,o)}},S9=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})},bL;let Ll=class y9{constructor(e,t,i){this._options=e,this._languageService=t,this._openerService=i,this._onDidRenderAsync=new O,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){if(!e)return{element:document.createElement("span"),dispose:()=>{}};const n=new Z;return{element:n.add(m3(e,Object.assign(Object.assign({},this._getRenderOptions(e,n)),t),i)).element,dispose:()=>n.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:(i,n)=>S9(this,void 0,void 0,function*(){var s,r,a;let l;i?l=this._languageService.getLanguageIdByLanguageName(i):this._options.editor&&(l=(s=this._options.editor.getModel())===null||s===void 0?void 0:s.getLanguageId()),l||(l=Vs);const d=yield LY(this._languageService,n,l),c=document.createElement("span");if(c.innerHTML=(a=(r=y9._ttpTokenizer)===null||r===void 0?void 0:r.createHTML(d))!==null&&a!==void 0?a:d,this._options.editor){const h=this._options.editor.getOption(47);Yi(c,h)}else this._options.codeBlockFontFamily&&(c.style.fontFamily=this._options.codeBlockFontFamily);return this._options.codeBlockFontSize!==void 0&&(c.style.fontSize=this._options.codeBlockFontSize),c}),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:i=>xae(this._openerService,i,e.isTrusted),disposables:t}}}};Ll._ttpTokenizer=(bL=window.trustedTypes)===null||bL===void 0?void 0:bL.createPolicy("tokenizeToString",{createHTML(o){return o}});Ll=Dae([JP(1,Ut),JP(2,bo)],Ll);function xae(o,e,t){return S9(this,void 0,void 0,function*(){try{return yield o.open(e,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:kae(t)})}catch(i){return Oe(i),!1}})}function kae(o){return o===!0?!0:o&&Array.isArray(o.enabledCommands)?o.enabledCommands:!1}const eO=X;class kf extends U{constructor(e,t,i){super(),this._renderDisposeables=this._register(new Z),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new u9),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new Ll({editor:this._editor},t,i)),this._computer=new Iae(this._editor),this._hoverOperation=this._register(new f9(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{this._withResult(n.value)})),this._register(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged())),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(47)&&this._updateFont()})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return kf.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}startShowingAt(e){this._computer.lineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const n of t){const s=eO("div.hover-row.markdown-hover"),r=q(s,eO("div.hover-contents")),a=this._renderDisposeables.add(this._markdownRenderer.render(n.value));r.appendChild(a.element),i.appendChild(s)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),n=this._editor.getScrollTop(),s=this._editor.getOption(63),r=this._hover.containerDomNode.clientHeight,a=i-n-(r-s)/2;this._hover.containerDomNode.style.left=`${t.glyphMarginLeft+t.glyphMarginWidth}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(a),0)}px`}}kf.ID="editor.contrib.modesGlyphHoverWidget";class Iae{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}constructor(e){this._editor=e,this._lineNumber=-1}computeSync(){const e=n=>({value:n}),t=this._editor.getLineDecorations(this._lineNumber),i=[];if(!t)return i;for(const n of t){if(!n.options.glyphMarginClassName)continue;const s=n.options.glyphMarginHoverMessage;!s||Yf(s)||i.push(...vE(s).map(e))}return i}}var Eae=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Nae{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function Tae(o,e,t,i,n){return Eae(this,void 0,void 0,function*(){try{const s=yield Promise.resolve(o.provideHover(t,i,n));if(s&&Aae(s))return new Nae(o,s,e)}catch(s){Vi(s)}})}function J2(o,e,t,i){const s=o.ordered(e).map((r,a)=>Tae(r,a,e,t,i));return pi.fromPromises(s).coalesce()}function Mae(o,e,t,i){return J2(o,e,t,i).map(n=>n.hover).toPromise()}Na("_executeHoverProvider",(o,e,t)=>{const i=o.get(fe);return Mae(i.hoverProvider,e,t,Ye.None)});function Aae(o){const e=typeof o.range<"u",t=typeof o.contents<"u"&&o.contents&&o.contents.length>0;return e&&t}var Rae=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Sv=function(o,e){return function(t,i){e(t,i,o)}};const tO=X;class rr{constructor(e,t,i,n,s){this.owner=e,this.range=t,this.contents=i,this.isBeforeContent=n,this.ordinal=s}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let l1=class{constructor(e,t,i,n,s){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=n,this._languageFeaturesService=s,this.hoverOrdinal=2}createLoadingMessage(e){return new rr(this,e.range,[new Yn().appendText(g("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];let a=1e3;const l=i.getLineLength(n),d=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),c=this._editor.getOption(111),h=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:d});let u=!1;c>=0&&l>c&&e.range.startColumn>=c&&(u=!0,r.push(new rr(this,e.range,[{value:g("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,a++))),!u&&typeof h=="number"&&l>=h&&r.push(new rr(this,e.range,[{value:g("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,a++));let f=!1;for(const p of t){const m=p.range.startLineNumber===n?p.range.startColumn:1,_=p.range.endLineNumber===n?p.range.endColumn:s,b=p.options.hoverMessage;if(!b||Yf(b))continue;p.options.beforeContentClassName&&(f=!0);const v=new y(e.range.startLineNumber,m,e.range.startLineNumber,_);r.push(new rr(this,v,vE(b),f,a++))}return r}computeAsync(e,t,i){if(!this._editor.hasModel()||e.type!==1)return pi.EMPTY;const n=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(n))return pi.EMPTY;const s=new W(e.range.startLineNumber,e.range.startColumn);return J2(this._languageFeaturesService.hoverProvider,n,s,i).filter(r=>!Yf(r.hover.contents)).map(r=>{const a=r.hover.range?y.lift(r.hover.range):e.range;return new rr(this,a,r.hover.contents,!1,r.ordinal)})}renderHoverParts(e,t){return L9(e,t,this._editor,this._languageService,this._openerService)}};l1=Rae([Sv(1,Ut),Sv(2,bo),Sv(3,at),Sv(4,fe)],l1);function L9(o,e,t,i,n){e.sort((r,a)=>r.ordinal-a.ordinal);const s=new Z;for(const r of e)for(const a of r.contents){if(Yf(a))continue;const l=tO("div.hover-row.markdown-hover"),d=q(l,tO("div.hover-contents")),c=s.add(new Ll({editor:t},i,n));s.add(c.onDidRenderAsync(()=>{d.className="hover-contents code-hover-contents",o.onContentsChanged()}));const h=s.add(c.render(a));d.appendChild(h.element),o.fragment.appendChild(l)}return s}var D9=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},d1=function(o,e){return function(t,i){e(t,i,o)}};class iO{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let pI=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._dispoables=new Z,this._markers=[],this._nextIdx=-1,Ce.isUri(e)?this._resourceFilter=a=>a.toString()===e.toString():e&&(this._resourceFilter=e);const n=this._configService.getValue("problems.sortOrder"),s=(a,l)=>{let d=Sm(a.resource.toString(),l.resource.toString());return d===0&&(n==="position"?d=y.compareRangesUsingStarts(a,l)||qt.compare(a.severity,l.severity):d=qt.compare(a.severity,l.severity)||y.compareRangesUsingStarts(a,l)),d},r=()=>{this._markers=this._markerService.read({resource:Ce.isUri(e)?e:void 0,severities:qt.Error|qt.Warning|qt.Info}),typeof e=="function"&&(this._markers=this._markers.filter(a=>this._resourceFilter(a.resource))),this._markers.sort(s)};r(),this._dispoables.add(t.onMarkerChanged(a=>{(!this._resourceFilter||a.some(l=>this._resourceFilter(l)))&&(r(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e?!0:!this._resourceFilter||!e?!1:this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new iO(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let n=!1,s=this._markers.findIndex(r=>r.resource.toString()===e.uri.toString());s<0&&(s=vm(this._markers,{resource:e.uri},(r,a)=>Sm(r.resource.toString(),a.resource.toString())),s<0&&(s=~s));for(let r=s;rn.resource.toString()===e.toString());if(!(i<0)){for(;i=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yu=function(o,e){return function(t,i){e(t,i,o)}};class Oae{constructor(e,t,i,n,s){this._openerService=n,this._labelService=s,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new Z,this._editor=t;const r=document.createElement("div");r.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),r.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),r.appendChild(this._relatedBlock),this._disposables.add(hi(this._relatedBlock,"click",a=>{a.preventDefault();const l=this._relatedDiagnostics.get(a.target);l&&i(l)})),this._scrollable=new h5(r,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(a=>{r.style.left=`-${a.scrollLeft}px`,r.style.top=`-${a.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){gt(this._disposables)}update(e){const{source:t,message:i,relatedInformation:n,code:s}=e;let r=((t==null?void 0:t.length)||0)+2;s&&(typeof s=="string"?r+=s.length:r+=s.value.length);const a=ma(i);this._lines=a.length,this._longestLineLength=0;for(const u of a)this._longestLineLength=Math.max(u.length+r,this._longestLineLength);xi(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let l=this._messageBlock;for(const u of a)l=document.createElement("div"),l.innerText=u,u===""&&(l.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(l);if(t||s){const u=document.createElement("span");if(u.classList.add("details"),l.appendChild(u),t){const f=document.createElement("span");f.innerText=t,f.classList.add("source"),u.appendChild(f)}if(s)if(typeof s=="string"){const f=document.createElement("span");f.innerText=`(${s})`,f.classList.add("code"),u.appendChild(f)}else{this._codeLink=X("a.code-link"),this._codeLink.setAttribute("href",`${s.target.toString()}`),this._codeLink.onclick=p=>{this._openerService.open(s.target,{allowCommands:!0}),p.preventDefault(),p.stopPropagation()};const f=q(this._codeLink,X("span"));f.innerText=s.value,u.appendChild(this._codeLink)}}if(xi(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Cn(n)){const u=this._relatedBlock.appendChild(document.createElement("div"));u.style.paddingTop=`${Math.floor(this._editor.getOption(63)*.66)}px`,this._lines+=1;for(const f of n){const p=document.createElement("div"),m=document.createElement("a");m.classList.add("filename"),m.innerText=`${this._labelService.getUriBasenameLabel(f.resource)}(${f.startLineNumber}, ${f.startColumn}): `,m.title=this._labelService.getUriLabel(f.resource),this._relatedDiagnostics.set(m,f);const _=document.createElement("span");_.innerText=f.message,p.appendChild(m),p.appendChild(_),this._lines+=1,u.appendChild(p)}}const d=this._editor.getOption(47),c=Math.ceil(d.typicalFullwidthCharacterWidth*this._longestLineLength*.75),h=d.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:c,scrollHeight:h})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case qt.Error:t=g("Error","Error");break;case qt.Warning:t=g("Warning","Warning");break;case qt.Info:t=g("Info","Info");break;case qt.Hint:t=g("Hint","Hint");break}let i=g("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const n=this._editor.getModel();return n&&e.startLineNumber<=n.getLineCount()&&e.startLineNumber>=1&&(i=`${n.getLineContent(e.startLineNumber)}, ${i}`),i}}let ag=class k9 extends s1{constructor(e,t,i,n,s,r,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},s),this._themeService=t,this._openerService=i,this._menuService=n,this._contextKeyService=r,this._labelService=a,this._callOnDispose=new Z,this._onDidSelectRelatedInformation=new O,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=qt.Warning,this._backgroundColor=H.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(Vae);let t=vI,i=Fae;this._severity===qt.Warning?(t=_b,i=Bae):this._severity===qt.Info&&(t=bI,i=Wae);const n=e.getColor(t),s=e.getColor(i);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:s,primaryHeadingColor:e.getColor(Z8),secondaryHeadingColor:e.getColor(Y8)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun(n=>this.editor.focus()));const t=[],i=this._menuService.createMenu(k9.TitleMenu,this._contextKeyService);Z3(i,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),i.dispose()}_fillTitleIcon(e){this._icon=q(e,X(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new Oae(this._container,this.editor,t=>this._onDidSelectRelatedInformation.fire(t),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const n=y.lift(e),s=this.editor.getPosition(),r=s&&n.containsPosition(s)?s:n.getStartPosition();super.show(r,this.computeRequiredHeight());const a=this.editor.getModel();if(a){const l=i>1?g("problems","{0} of {1} problems",t,i):g("change","{0} of {1} problem",t,i);this.setTitle(uo(a.uri),l)}this._icon.className=`codicon ${_I.className(qt.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(r,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};ag.TitleMenu=new N("gotoErrorTitleMenu");ag=Pae([yu(1,Hi),yu(2,bo),yu(3,Ea),yu(4,Me),yu(5,Ee),yu(6,Qf)],ag);const nO=Am(ia,tj),sO=Am(Fs,Mm),oO=Am(es,ux),vI=M("editorMarkerNavigationError.background",{dark:nO,light:nO,hcDark:Ze,hcLight:Ze},g("editorMarkerNavigationError","Editor marker navigation widget error color.")),Fae=M("editorMarkerNavigationError.headerBackground",{dark:pe(vI,.1),light:pe(vI,.1),hcDark:null,hcLight:null},g("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),_b=M("editorMarkerNavigationWarning.background",{dark:sO,light:sO,hcDark:Ze,hcLight:Ze},g("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Bae=M("editorMarkerNavigationWarning.headerBackground",{dark:pe(_b,.1),light:pe(_b,.1),hcDark:"#0C141F",hcLight:pe(_b,.2)},g("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),bI=M("editorMarkerNavigationInfo.background",{dark:oO,light:oO,hcDark:Ze,hcLight:Ze},g("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),Wae=M("editorMarkerNavigationInfo.headerBackground",{dark:pe(bI,.1),light:pe(bI,.1),hcDark:null,hcLight:null},g("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),Vae=M("editorMarkerNavigation.background",{dark:Ni,light:Ni,hcDark:Ni,hcLight:Ni},g("editorMarkerNavigationBackground","Editor marker navigation widget background."));var Hae=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yv=function(o,e){return function(t,i){e(t,i,o)}},I9=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};let zd=class vb{static get(e){return e.getContribution(vb.ID)}constructor(e,t,i,n,s){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=n,this._instantiationService=s,this._sessionDispoables=new Z,this._editor=e,this._widgetVisible=E9.bindTo(this._contextKeyService)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(ag,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(i=>{var n,s,r;(!(!((n=this._model)===null||n===void 0)&&n.selected)||!y.containsPosition((s=this._model)===null||s===void 0?void 0:s.selected.marker,i.position))&&((r=this._model)===null||r===void 0||r.resetIndex())})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;const i=this._model.find(this._editor.getModel().uri,this._widget.position);i?this._widget.updateMarker(i.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(i=>{this._editorService.openCodeEditor({resource:i.resource,options:{pinned:!0,revealIfOpened:!0,selection:y.lift(i).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp())),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new W(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}nagivate(e,t){var i,n;return I9(this,void 0,void 0,function*(){if(this._editor.hasModel()){const s=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(s.move(e,this._editor.getModel(),this._editor.getPosition()),!s.selected)return;if(s.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const r=yield this._editorService.openCodeEditor({resource:s.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:s.selected.marker}},this._editor);r&&((i=vb.get(r))===null||i===void 0||i.close(),(n=vb.get(r))===null||n===void 0||n.nagivate(e,t))}else this._widget.showAtMarker(s.selected.marker,s.selected.index,s.selected.total)}})}};zd.ID="editor.contrib.markerController";zd=Hae([yv(1,x9),yv(2,Ee),yv(3,ut),yv(4,Me)],zd);class Qw extends ce{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}run(e,t){var i;return I9(this,void 0,void 0,function*(){t.hasModel()&&((i=zd.get(t))===null||i===void 0||i.nagivate(this._next,this._multiFile))})}}class Sd extends Qw{constructor(){super(!0,!1,{id:Sd.ID,label:Sd.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:T.focus,primary:578,weight:100},menuOpts:{menuId:ag.TitleMenu,title:Sd.LABEL,icon:fi("marker-navigation-next",se.arrowDown,g("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}Sd.ID="editor.action.marker.next";Sd.LABEL=g("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class nh extends Qw{constructor(){super(!1,!1,{id:nh.ID,label:nh.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:T.focus,primary:1602,weight:100},menuOpts:{menuId:ag.TitleMenu,title:nh.LABEL,icon:fi("marker-navigation-previous",se.arrowUp,g("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}nh.ID="editor.action.marker.prev";nh.LABEL=g("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");class zae extends Qw{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:g("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:T.focus,primary:66,weight:100},menuOpts:{menuId:N.MenubarGoMenu,title:g({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}class Uae extends Qw{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:g("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:T.focus,primary:1090,weight:100},menuOpts:{menuId:N.MenubarGoMenu,title:g({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}}lt(zd.ID,zd,4);J(Sd);J(nh);J(zae);J(Uae);const E9=new de("markersNavigationVisible",!1),$ae=Ji.bindToContribution(zd.get);ie(new $ae({id:"closeMarkersNavigation",precondition:E9,handler:o=>o.close(),kbOpts:{weight:150,kbExpr:T.focus,primary:9,secondary:[1033]}}));var jae=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},CL=function(o,e){return function(t,i){e(t,i,o)}};const yo=X;class Kae{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const rO={type:1,filter:{include:Ne.QuickFix},triggerAction:ns.QuickFixHover};let CI=class{constructor(e,t,i,n){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=n,this.hoverOrdinal=5,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1&&!e.supportsMarkerHover)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];for(const a of t){const l=a.range.startLineNumber===n?a.range.startColumn:1,d=a.range.endLineNumber===n?a.range.endColumn:s,c=this._markerDecorationsService.getMarker(i.uri,a);if(!c)continue;const h=new y(e.range.startLineNumber,l,e.range.startLineNumber,d);r.push(new Kae(this,h,c))}return r}renderHoverParts(e,t){if(!t.length)return U.None;const i=new Z;t.forEach(s=>e.fragment.appendChild(this.renderMarkerHover(s,i)));const n=t.length===1?t[0]:t.sort((s,r)=>qt.compare(s.marker.severity,r.marker.severity))[0];return this.renderMarkerStatusbar(e,n,i),i}renderMarkerHover(e,t){const i=yo("div.hover-row"),n=q(i,yo("div.marker.hover-contents")),{source:s,message:r,code:a,relatedInformation:l}=e.marker;this._editor.applyFontInfo(n);const d=q(n,yo("span"));if(d.style.whiteSpace="pre-wrap",d.innerText=r,s||a)if(a&&typeof a!="string"){const c=yo("span");if(s){const p=q(c,yo("span"));p.innerText=s}const h=q(c,yo("a.code-link"));h.setAttribute("href",a.target.toString()),t.add(K(h,"click",p=>{this._openerService.open(a.target,{allowCommands:!0}),p.preventDefault(),p.stopPropagation()}));const u=q(h,yo("span"));u.innerText=a.value;const f=q(n,c);f.style.opacity="0.6",f.style.paddingLeft="6px"}else{const c=q(n,yo("span"));c.style.opacity="0.6",c.style.paddingLeft="6px",c.innerText=s&&a?`${s}(${a})`:s||`(${a})`}if(Cn(l))for(const{message:c,resource:h,startLineNumber:u,startColumn:f}of l){const p=q(n,yo("div"));p.style.marginTop="8px";const m=q(p,yo("a"));m.innerText=`${uo(h)}(${u}, ${f}): `,m.style.cursor="pointer",t.add(K(m,"click",b=>{b.stopPropagation(),b.preventDefault(),this._openerService&&this._openerService.open(h,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:u,startColumn:f}}}).catch(Oe)}));const _=q(p,yo("span"));_.innerText=c,this._editor.applyFontInfo(_)}return i}renderMarkerStatusbar(e,t,i){if((t.marker.severity===qt.Error||t.marker.severity===qt.Warning||t.marker.severity===qt.Info)&&e.statusBar.addAction({label:g("view problem","View Problem"),commandId:Sd.ID,run:()=>{var n;e.hide(),(n=zd.get(this._editor))===null||n===void 0||n.showAtMarker(t.marker),this._editor.focus()}}),!this._editor.getOption(86)){const n=e.statusBar.append(yo("div"));this.recentMarkerCodeActionsInfo&&(zC.makeKey(this.recentMarkerCodeActionsInfo.marker)===zC.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=g("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const s=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?U.None:i.add(ch(()=>n.textContent=g("checkingForQuickFixes","Checking for quick fixes..."),200));n.textContent||(n.textContent=" ");const r=this.getCodeActions(t.marker);i.add(Pe(()=>r.cancel())),r.then(a=>{if(s.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:a.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions){a.dispose(),n.textContent=g("noQuickFixes","No quick fixes available");return}n.style.display="none";let l=!1;i.add(Pe(()=>{l||a.dispose()})),e.statusBar.addAction({label:g("quick fixes","Quick Fix..."),commandId:Tg.Id,run:d=>{l=!0;const c=kh.get(this._editor),h=Fi(d);e.hide(),c==null||c.showCodeActions(rO,a,{x:h.left+6,y:h.top+h.height+6,width:h.width,height:h.height})}})},Oe)}}getCodeActions(e){return Wi(t=>U2(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),rO,Qh.None,t))}};CI=jae([CL(1,tN),CL(2,bo),CL(3,fe)],CI);const N9="editor.action.inlineSuggest.commit",T9="editor.action.inlineSuggest.showPrevious",M9="editor.action.inlineSuggest.showNext";var qae=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Gae extends U{constructor(e,t,i={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new jW),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=new Z,this.options=i,this.lookupKeybindings=typeof this.options.getKeyBinding=="function",this.toggleMenuAction=this._register(new v_(()=>{var n;return(n=this.toggleMenuActionViewItem)===null||n===void 0?void 0:n.show()},i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new fo(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,actionViewItemProvider:(n,s)=>{var r;if(n.id===v_.ID)return this.toggleMenuActionViewItem=new PC(n,n.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:De.asClassNameArray((r=i.moreIcon)!==null&&r!==void 0?r:se.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(i.actionViewItemProvider){const a=i.actionViewItemProvider(n,s);if(a)return a}if(n instanceof zf){const a=new PC(n,n.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:n.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement});return a.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(a),this.disposables.add(this._onDidChangeDropdownVisibility.add(a.onDidChangeVisibility)),a}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();const i=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),i.push(this.toggleMenuAction)),i.forEach(n=>{this.actionBar.push(n,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(n)})})}getKeybindingLabel(e){var t,i;const n=this.lookupKeybindings?(i=(t=this.options).getKeyBinding)===null||i===void 0?void 0:i.call(t,e):void 0;return an(n==null?void 0:n.getLabel())}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),super.dispose()}}class v_ extends ms{constructor(e,t){t=t||g("moreActions","More Actions..."),super(v_.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}run(){return qae(this,void 0,void 0,function*(){this.toggleDropdownMenu()})}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}v_.ID="toolbar.toggle.more";var Zae=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},rp=function(o,e){return function(t,i){e(t,i,o)}};let wI=class extends Gae{constructor(e,t,i,n,s,r,a){super(e,s,Object.assign(Object.assign({getKeyBinding:l=>{var d;return(d=r.lookupKeybinding(l.id))!==null&&d!==void 0?d:void 0}},t),{allowContextMenu:!0})),this._options=t,this._menuService=i,this._contextKeyService=n,this._contextMenuService=s,this._sessionDisposables=this._store.add(new Z),t!=null&&t.telemetrySource&&this._store.add(this.actionBar.onDidRun(l=>a.publicLog2("workbenchActionExecuted",{id:l.action.id,from:t.telemetrySource})))}setActions(e,t=[],i){var n,s,r;this._sessionDisposables.clear();const a=e.slice(),l=t.slice(),d=[];let c=0;const h=[];let u=!1;if(((n=this._options)===null||n===void 0?void 0:n.hiddenItemStrategy)!==-1)for(let f=0;f=this._options.maxNumberOfItems&&(a[p]=void 0,h[p]=m)}}NT(a),NT(h),super.setActions(a,Bi.join(h,l)),d.length>0&&this._sessionDisposables.add(K(this.getElement(),"contextmenu",f=>{var p,m,_,b;const v=this.getItemAction(f.target);if(!v)return;f.preventDefault(),f.stopPropagation();let C=!1;if(c===1&&((p=this._options)===null||p===void 0?void 0:p.hiddenItemStrategy)===0){C=!0;for(let E=0;Ethis._menuService.resetHiddenStates(i)}))),this._contextMenuService.showContextMenu({getAnchor:()=>f,getActions:()=>x,menuId:(_=this._options)===null||_===void 0?void 0:_.contextMenu,menuActionOptions:Object.assign({renderShortTitle:!0},(b=this._options)===null||b===void 0?void 0:b.menuOptions),contextKeyService:this._contextKeyService})}))}};wI=Zae([rp(2,Ea),rp(3,Ee),rp(4,xr),rp(5,ei),rp(6,mo)],wI);var A9=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Qr=function(o,e){return function(t,i){e(t,i,o)}};const Yae=fi("inline-suggestion-hints-next",se.chevronRight,g("parameterHintsNextIcon","Icon for show next parameter hint.")),Qae=fi("inline-suggestion-hints-previous",se.chevronLeft,g("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let Nh=class SI extends U{static get dropDownVisible(){return this._dropDownVisible}createCommandAction(e,t,i){const n=new ms(e,t,i,!0,()=>this._commandService.executeCommand(e)),s=this.keybindingService.lookupKeybinding(e,this._contextKeyService);let r=t;return s&&(r=g({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,s.getLabel())),n.tooltip=r,n}constructor(e,t,i,n,s,r,a){super(),this.editor=e,this.withBorder=t,this._commandService=i,this.keybindingService=s,this._contextKeyService=r,this._menuService=a,this.id=`InlineSuggestionHintsContentWidget${SI.id++}`,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=bp("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[bp("div",{style:{display:"flex"}},[bp("div@actionBar",{className:"custom-actions"}),bp("div@toolBar")])]),this.position=null,this.previousAction=this.createCommandAction(T9,g("previous","Previous"),De.asClassName(Qae)),this.availableSuggestionCountAction=new ms("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(M9,g("next","Next"),De.asClassName(Yae)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(N.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new wt(()=>{this.availableSuggestionCountAction.label=""},100)),this.disableButtonsDebounced=this._register(new wt(()=>{this.previousAction.enabled=this.nextAction.enabled=!1},100));const l=this._register(new fo(this.nodes.actionBar));l.push(this.previousAction,{icon:!0,label:!1}),l.push(this.availableSuggestionCountAction),l.push(this.nextAction,{icon:!0,label:!1}),this.toolBar=this._register(n.createInstance(yI,this.nodes.toolBar,N.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:d=>d.startsWith("primary")},actionViewItemProvider:(d,c)=>d instanceof Vo?n.createInstance(Xae,d,void 0):void 0,telemetrySource:"InlineSuggestionToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility(d=>{SI._dropDownVisible=d}))}update(e,t,i,n){this.position=e,i!==void 0&&i>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule(),i!==void 0?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${t+1}/${i}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),this.editor.layoutContentWidget(this);const s=n.map(r=>({class:void 0,id:r.id,enabled:!0,tooltip:r.tooltip||"",label:r.title,run:a=>this._commandService.executeCommand(r.id)}));for(const[r,a]of this.inlineCompletionsActionsMenus.getActions())for(const l of a)l instanceof Vo&&s.push(l);s.length>0&&s.unshift(new Bi),this.toolBar.setAdditionalSecondaryActions(s)}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this.position,preference:[1,2],positionAffinity:3}}};Nh._dropDownVisible=!1;Nh.id=0;Nh=A9([Qr(2,ri),Qr(3,Me),Qr(4,ei),Qr(5,Ee),Qr(6,Ea)],Nh);let Xae=class extends vh{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=bp("div.keybinding").root;new n0(t,Ps,{disableTitle:!0}).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}},yI=class extends wI{constructor(e,t,i,n,s,r,a,l){super(e,Object.assign({resetMenu:t},i),n,s,r,a,l),this.menuId=t,this.options2=i,this.menuService=n,this.contextKeyService=s,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this._store.add(this.menu.onDidChange(()=>this.updateToolbar())),this.updateToolbar()}updateToolbar(){var e,t,i,n,s,r,a;const l=[],d=[];Z3(this.menu,(e=this.options2)===null||e===void 0?void 0:e.menuOptions,{primary:l,secondary:d},(i=(t=this.options2)===null||t===void 0?void 0:t.toolbarOptions)===null||i===void 0?void 0:i.primaryGroup,(s=(n=this.options2)===null||n===void 0?void 0:n.toolbarOptions)===null||s===void 0?void 0:s.shouldInlineSubmenu,(a=(r=this.options2)===null||r===void 0?void 0:r.toolbarOptions)===null||a===void 0?void 0:a.useSeparatorsInPrimaryActions),d.push(...this.additionalActions),this.setActions(l,d)}setAdditionalSecondaryActions(e){this.additionalActions=e,this.updateToolbar()}};yI=A9([Qr(3,Ea),Qr(4,Ee),Qr(5,xr),Qr(6,ei),Qr(7,mo)],yI);var Jae=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Lv=function(o,e){return function(t,i){e(t,i,o)}};let Ud=class R9{static get(e){return e.getContribution(R9.ID)}constructor(e,t,i,n,s){this._editor=e,this._instantiationService=t,this._openerService=i,this._languageService=n,this._toUnhook=new Z,this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(r=>{r.hasChanged(57)&&(this._unhookEvents(),this._hookEvents())})}_hookEvents(){const e=()=>this._hideWidgets(),t=this._editor.getOption(57);this._isHoverEnabled=t.enabled,this._isHoverSticky=t.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(i=>this._onEditorMouseDown(i))),this._toUnhook.add(this._editor.onMouseUp(i=>this._onEditorMouseUp(i))),this._toUnhook.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._toUnhook.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))):(this._toUnhook.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._toUnhook.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))),this._toUnhook.add(this._editor.onMouseLeave(i=>this._onEditorMouseLeave(i))),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange(i=>this._onEditorScrollChanged(i)))}_unhookEvents(){this._toUnhook.clear()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._isMouseDown=!0;const t=e.target;if(t.type===9&&t.detail===ih.ID){this._hoverClicked=!0;return}t.type===12&&t.detail===kf.ID||(t.type!==12&&(this._hoverClicked=!1),this._hideWidgets())}_onEditorMouseUp(e){this._isMouseDown=!1}_onEditorMouseLeave(e){var t;const i=e.event.browserEvent.relatedTarget;!((t=this._contentWidget)===null||t===void 0)&&t.containsNode(i)||this._hideWidgets()}_onEditorMouseMove(e){var t,i,n,s,r,a;const l=e.target;if(this._isMouseDown&&this._hoverClicked||this._isHoverSticky&&l.type===9&&l.detail===ih.ID||this._isHoverSticky&&!(!((i=(t=e.event.browserEvent.view)===null||t===void 0?void 0:t.getSelection())===null||i===void 0)&&i.isCollapsed)||!this._isHoverSticky&&l.type===9&&l.detail===ih.ID&&(!((n=this._contentWidget)===null||n===void 0)&&n.isColorPickerVisible())||this._isHoverSticky&&l.type===12&&l.detail===kf.ID||this._isHoverSticky&&(!((s=this._contentWidget)===null||s===void 0)&&s.isVisibleFromKeyboard()))return;if(!this._isHoverEnabled){this._hideWidgets();return}if(this._getOrCreateContentWidget().maybeShowAt(e)){(r=this._glyphWidget)===null||r===void 0||r.hide();return}if(l.type===2&&l.position){(a=this._contentWidget)===null||a===void 0||a.hide(),this._glyphWidget||(this._glyphWidget=new kf(this._editor,this._languageService,this._openerService)),this._glyphWidget.startShowingAt(l.position.lineNumber);return}this._hideWidgets()}_onKeyDown(e){e.keyCode!==5&&e.keyCode!==6&&e.keyCode!==57&&e.keyCode!==4&&this._hideWidgets()}_hideWidgets(){var e,t,i;this._isMouseDown&&this._hoverClicked&&(!((e=this._contentWidget)===null||e===void 0)&&e.isColorPickerVisible())||Nh.dropDownVisible||(this._hoverClicked=!1,(t=this._glyphWidget)===null||t===void 0||t.hide(),(i=this._contentWidget)===null||i===void 0||i.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(r1,this._editor)),this._contentWidget}isColorPickerVisible(){var e;return((e=this._contentWidget)===null||e===void 0?void 0:e.isColorPickerVisible())||!1}showContentHover(e,t,i,n){this._getOrCreateContentWidget().startShowingAtRange(e,t,i,n)}dispose(){var e,t;this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),(e=this._glyphWidget)===null||e===void 0||e.dispose(),(t=this._contentWidget)===null||t===void 0||t.dispose()}};Ud.ID="editor.contrib.hover";Ud=Jae([Lv(1,Me),Lv(2,bo),Lv(3,Ut),Lv(4,Ee)],Ud);class ele extends ce{constructor(){super({id:"editor.action.showHover",label:g({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:T.editorTextFocus,primary:ki(2089,2087),weight:100}})}run(e,t){if(!t.hasModel())return;const i=Ud.get(t);if(!i)return;const n=t.getPosition(),s=new y(n.lineNumber,n.column,n.lineNumber,n.column),r=t.getOption(2)===2;i.showContentHover(s,1,1,r)}}class tle extends ce{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:g({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){const i=Ud.get(t);if(!i)return;const n=t.getPosition();if(!n)return;const s=new y(n.lineNumber,n.column,n.lineNumber,n.column),r=Eh.get(t);if(!r)return;r.startFindDefinitionFromCursor(n).then(()=>{i.showContentHover(s,1,1,!0)})}}lt(Ud.ID,Ud,2);J(ele);J(tle);ou.register(l1);ou.register(CI);Ho((o,e)=>{const t=o.getColor(mj);t&&(e.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${t.transparent(.5)}; }`))});class LI extends U{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(t=>this.onMouseDown(t)))}dispose(){super.dispose()}onMouseDown(e){const t=e.target;if(t.type!==6||!t.detail.injectedText||t.detail.injectedText.options.attachedData!==U8||!t.range)return;const i=this._editor.getContribution(Ud.ID);if(i&&!i.isColorPickerVisible()){const n=new y(t.range.startLineNumber,t.range.startColumn+1,t.range.endLineNumber,t.range.endColumn+1);i.showContentHover(n,1,0,!1)}}}LI.ID="editor.contrib.colorContribution";lt(LI.ID,LI,2);ou.register(Jk);const Xw=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let o;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?o=crypto.getRandomValues.bind(crypto):o=function(i){for(let n=0;nP9(this,void 0,void 0,function*(){return o}),asFile:()=>{},value:typeof o=="string"?o:void 0}}function ile(o,e,t){return{id:Xw(),asString:()=>P9(this,void 0,void 0,function*(){return""}),asFile:()=>({name:o,uri:e,data:t}),value:void 0}}class O9{constructor(){this._entries=new Map}get size(){return this._entries.size}has(e){return this._entries.has(this.toKey(e))}get(e){var t;return(t=this._entries.get(this.toKey(e)))===null||t===void 0?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*entries(){for(const[e,t]of this._entries.entries())for(const i of t)yield[e,i]}values(){return Array.from(this._entries.values()).flat()}forEach(e){for(const[t,i]of this.entries())e(i,t)}toKey(e){return e.toLowerCase()}}const Jw=Object.freeze({create:o=>Dd(o.map(e=>e.toString())).join(`\r `),split:o=>o.split(`\r `),parse:o=>Jw.split(o).filter(e=>!e.startsWith("#"))}),c1={EDITORS:"CodeEditors",FILES:"CodeFiles"};function nle(o){var e;const t=[];if(o.dataTransfer&&o.dataTransfer.types.length>0){const s=o.dataTransfer.getData(c1.EDITORS);if(s)try{t.push(...yC(s))}catch{}else try{const l=o.dataTransfer.getData(J_.RESOURCES);t.push(...sle(l))}catch{}if(!((e=o.dataTransfer)===null||e===void 0)&&e.files)for(let l=0;l0){const{selection:n,uri:s}=V3(Ce.parse(i));e.push({resource:s,options:{selection:n}})}}return e}class ole{constructor(){this._contributions=new Map}getAll(){return this._contributions.values()}}const F9={DragAndDropContribution:"workbench.contributions.dragAndDrop"};$t.add(F9.DragAndDropContribution,new ole);var rle=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};function DI(o){const e=new O9;for(const t of o.items){const i=t.type;if(t.kind==="string"){const n=new Promise(s=>t.getAsString(s));e.append(i,eT(n))}else if(t.kind==="file"){const n=t.getAsFile();n&&e.append(i,ale(n))}}return e}function ale(o){const e=o.path?Ce.parse(o.path):void 0;return ile(o.name,e,()=>rle(this,void 0,void 0,function*(){return new Uint8Array(yield o.arrayBuffer())}))}const lle=Object.freeze([c1.EDITORS,c1.FILES,J_.RESOURCES]);function dle(o,e,t=!1){var i;if(e.dataTransfer&&(t||!o.has(Qn.uriList))){const n=nle(e).filter(s=>s.resource).map(s=>s.resource.toString());for(const s of(i=e.dataTransfer)===null||i===void 0?void 0:i.items){const r=s.getAsFile();r&&n.push(r.path?Ce.file(r.path).toString():r.name)}n.length&&o.replace(Qn.uriList,eT(Jw.create(n)))}for(const n of lle)o.delete(n)}var cle=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ap=function(o,e){return function(t,i){e(t,i,o)}},Dv=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};const wL="application/vnd.code.copyMetadata";let b_=class extends U{constructor(e,t,i,n,s,r){super(),this._bulkEditService=t,this._clipboardService=i,this._configurationService=n,this._languageFeaturesService=s,this._progressService=r,this._editor=e;const a=e.getContainerDomNode();this._register(K(a,"copy",l=>this.handleCopy(l))),this._register(K(a,"cut",l=>this.handleCopy(l))),this._register(K(a,"paste",l=>this.handlePaste(l),!0))}arePasteActionsEnabled(e){return this._configurationService.getValue("editor.experimental.pasteActions.enabled",{resource:e.uri})?!0:e.uri.scheme===We.vscodeNotebookCell}handleCopy(e){var t;if(!e.clipboardData||!this._editor.hasTextFocus())return;const i=this._editor.getModel(),n=this._editor.getSelections();if(!i||!(n!=null&&n.length)||!this.arePasteActionsEnabled(i))return;const s=[...n],r=n[0],a=r.isEmpty();if(a){if(!this._editor.getOption(34))return;s[0]=new y(r.startLineNumber,0,r.startLineNumber,i.getLineLength(r.startLineNumber))}const l=this._languageFeaturesService.documentPasteEditProvider.ordered(i).filter(u=>!!u.prepareDocumentPaste);if(!l.length){this.setCopyMetadata(e.clipboardData,{wasFromEmptySelection:a});return}const d=DI(e.clipboardData),c=Xw();this.setCopyMetadata(e.clipboardData,{id:c,wasFromEmptySelection:a});const h=Wi(u=>Dv(this,void 0,void 0,function*(){const f=yield Promise.all(l.map(p=>p.prepareDocumentPaste(i,s,d,u)));for(const p of f)p==null||p.forEach((m,_)=>{d.replace(_,m)});return d}));(t=this._currentClipboardItem)===null||t===void 0||t.dataTransferPromise.cancel(),this._currentClipboardItem={handle:c,dataTransferPromise:h}}setCopyMetadata(e,t){e.setData(wL,JSON.stringify(t))}handlePaste(e){var t,i,n,s;return Dv(this,void 0,void 0,function*(){if(!e.clipboardData||!this._editor.hasTextFocus())return;const r=this._editor.getSelections();if(!(r!=null&&r.length)||!this._editor.hasModel())return;const a=this._editor.getModel();if(!this.arePasteActionsEnabled(a))return;let l;const d=(t=e.clipboardData)===null||t===void 0?void 0:t.getData(wL);d&&typeof d=="string"&&(l=JSON.parse(d));const c=this._languageFeaturesService.documentPasteEditProvider.ordered(a);if(!c.length)return;e.preventDefault(),e.stopImmediatePropagation();const h=new Sh(this._editor,3);try{const u=DI(e.clipboardData);if(l!=null&&l.id&&((i=this._currentClipboardItem)===null||i===void 0?void 0:i.handle)===l.id){const p=yield this._currentClipboardItem.dataTransferPromise;if(h.token.isCancellationRequested)return;p.forEach((m,_)=>{u.replace(_,m)})}if(!u.has(Qn.uriList)){const p=yield this._clipboardService.readResources();if(h.token.isCancellationRequested)return;p.length&&u.append(Qn.uriList,eT(Jw.create(p)))}u.delete(wL);const f=yield this._progressService.withProgress({location:15,delay:750,title:g("pasteProgressTitle","Running paste handlers..."),cancellable:!0},()=>this.getProviderPasteEdit(c,u,a,r,h.token),()=>h.cancel());if(h.token.isCancellationRequested)return;if(f){const p=typeof f.insertText=="string"?Hd.escape(f.insertText):f.insertText.snippet,m={edits:[new gl(a.uri,{range:ue.liftSelection(this._editor.getSelection()),text:p,insertAsSnippet:!0}),...(s=(n=f.additionalEdit)===null||n===void 0?void 0:n.edits)!==null&&s!==void 0?s:[]]};yield this._bulkEditService.apply(m,{editor:this._editor});return}yield this.applyDefaultPasteHandler(u,l,h.token)}finally{h.dispose()}})}getProviderPasteEdit(e,t,i,n,s){return z1(Dv(this,void 0,void 0,function*(){for(const r of e){if(s.isCancellationRequested)return;if(!hle(r,t))continue;const a=yield r.provideDocumentPasteEdits(i,n,t,s);if(a)return a}}),s)}applyDefaultPasteHandler(e,t,i){var n;return Dv(this,void 0,void 0,function*(){const s=(n=e.get(Qn.text))!==null&&n!==void 0?n:e.get("text");if(!s)return;const r=yield s.asString();i.isCancellationRequested||this._editor.trigger("keyboard","paste",{text:r,pasteOnNewLine:t==null?void 0:t.wasFromEmptySelection,multicursorText:null})})}};b_.ID="editor.contrib.copyPasteActionController";b_=cle([ap(1,i0),ap(2,Dl),ap(3,at),ap(4,fe),ap(5,QN)],b_);function hle(o,e){return o.pasteMimeTypes.some(t=>t.toLowerCase()===J_.FILES.toLowerCase()?[...e.values()].some(i=>i.asFile()):e.has(t))}lt(b_.ID,b_,0);$t.as(ka.Configuration).registerConfiguration(Object.assign(Object.assign({},e2),{properties:{"editor.experimental.pasteActions.enabled":{type:"boolean",scope:5,description:g("pasteActions","Enable/disable running edits from extensions on paste."),default:!1}}}));class dd{constructor(e,t,i){this.languageConfigurationService=i,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,i){if(i<0)return!1;const n=t.length,s=e.length;if(i+n>s)return!1;for(let r=0;r=65&&a<=90&&a+32===l)&&!(l>=65&&l<=90&&l+32===a))return!1}return!0}_createOperationsForBlockComment(e,t,i,n,s,r){const a=e.startLineNumber,l=e.startColumn,d=e.endLineNumber,c=e.endColumn,h=s.getLineContent(a),u=s.getLineContent(d);let f=h.lastIndexOf(t,l-1+t.length),p=u.indexOf(i,c-1-i.length);if(f!==-1&&p!==-1)if(a===d)h.substring(f+t.length,p).indexOf(i)>=0&&(f=-1,p=-1);else{const _=h.substring(f+t.length),b=u.substring(0,p);(_.indexOf(i)>=0||b.indexOf(i)>=0)&&(f=-1,p=-1)}let m;f!==-1&&p!==-1?(n&&f+t.length0&&u.charCodeAt(p-1)===32&&(i=" "+i,p-=1),m=dd._createRemoveBlockCommentOperations(new y(a,f+t.length+1,d,p+1),t,i)):(m=dd._createAddBlockCommentOperations(e,t,i,this._insertSpace),this._usedEndToken=m.length===1?i:null);for(const _ of m)r.addTrackedEditOperation(_.range,_.text)}static _createRemoveBlockCommentOperations(e,t,i){const n=[];return y.isEmpty(e)?n.push(Ht.delete(new y(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+i.length))):(n.push(Ht.delete(new y(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),n.push(Ht.delete(new y(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+i.length)))),n}static _createAddBlockCommentOperations(e,t,i,n){const s=[];return y.isEmpty(e)?s.push(Ht.replace(new y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+i)):(s.push(Ht.insert(new W(e.startLineNumber,e.startColumn),t+(n?" ":""))),s.push(Ht.insert(new W(e.endLineNumber,e.endColumn),(n?" ":"")+i))),s}getEditOperations(e,t){const i=this._selection.startLineNumber,n=this._selection.startColumn;e.tokenization.tokenizeIfCheap(i);const s=e.getLanguageIdAtPosition(i,n),r=this.languageConfigurationService.getLanguageConfiguration(s).comments;!r||!r.blockCommentStartToken||!r.blockCommentEndToken||this._createOperationsForBlockComment(this._selection,r.blockCommentStartToken,r.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){const i=t.getInverseEditOperations();if(i.length===2){const n=i[0],s=i[1];return new ue(n.range.endLineNumber,n.range.endColumn,s.range.startLineNumber,s.range.startColumn)}else{const n=i[0].range,s=this._usedEndToken?-this._usedEndToken.length-1:0;return new ue(n.endLineNumber,n.endColumn+s,n.endLineNumber,n.endColumn+s)}}}class Ka{constructor(e,t,i,n,s,r,a){this.languageConfigurationService=e,this._selection=t,this._tabSize=i,this._type=n,this._insertSpace=s,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=r,this._ignoreFirstLine=a||!1}static _gatherPreflightCommentStrings(e,t,i,n){e.tokenization.tokenizeIfCheap(t);const s=e.getLanguageIdAtPosition(t,1),r=n.getLanguageConfiguration(s).comments,a=r?r.lineCommentToken:null;if(!a)return null;const l=[];for(let d=0,c=i-t+1;ds?t[l].commentStrOffset=r-1:t[l].commentStrOffset=r}}}class tT extends ce{constructor(e,t){super(t),this._type=e}run(e,t){const i=e.get(ui);if(!t.hasModel())return;const n=t.getModel(),s=[],r=n.getOptions(),a=t.getOption(20),l=t.getSelections().map((c,h)=>({selection:c,index:h,ignoreFirstLine:!1}));l.sort((c,h)=>y.compareRangesUsingStarts(c.selection,h.selection));let d=l[0];for(let c=1;c=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Lu=function(o,e){return function(t,i){e(t,i,o)}};let lg=class B9{static get(e){return e.getContribution(B9.ID)}constructor(e,t,i,n,s,r,a){this._contextMenuService=t,this._contextViewService=i,this._contextKeyService=n,this._keybindingService=s,this._menuService=r,this._configurationService=a,this._toDispose=new Z,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu(l=>this._onContextMenu(l))),this._toDispose.add(this._editor.onMouseWheel(l=>{if(this._contextMenuIsBeingShownCount>0){const d=this._contextViewService.getContextViewElement(),c=l.srcElement;c.shadowRoot&&uh(d)===c.shadowRoot||this._contextViewService.hideContextView()}})),this._toDispose.add(this._editor.onKeyDown(l=>{this._editor.getOption(21)&&l.keyCode===58&&(l.preventDefault(),l.stopPropagation(),this.showContextMenu())}))}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(21)){this._editor.focus(),e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position);return}if(e.target.type===12||e.target.type===6&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),e.target.type===11)return this._showScrollbarContextMenu({x:e.event.posx-1,width:2,y:e.event.posy-1,height:2});if(e.target.type!==6&&e.target.type!==7&&e.target.type!==1)return;if(this._editor.focus(),e.target.position){let i=!1;for(const n of this._editor.getSelections())if(n.containsPosition(e.target.position)){i=!0;break}i||this._editor.setPosition(e.target.position)}let t=null;e.target.type!==1&&(t={x:e.event.posx-1,width:2,y:e.event.posy-1,height:2}),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(21)||!this._editor.hasModel())return;const t=this._getMenuActions(this._editor.getModel(),this._editor.isSimpleWidget?N.SimpleEditorContext:N.EditorContext);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){const i=[],n=this._menuService.createMenu(t,this._contextKeyService),s=n.getActions({arg:e.uri});n.dispose();for(const r of s){const[,a]=r;let l=0;for(const d of a)if(d instanceof Nm){const c=this._getMenuActions(e,d.item.submenu);c.length>0&&(i.push(new zf(d.id,d.label,c)),l++)}else i.push(d),l++;l&&i.push(new Bi)}return i.length&&i.pop(),i}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;const i=this._editor.getOption(57);if(this._editor.updateOptions({hover:{enabled:!1}}),!t){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const s=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),r=Fi(this._editor.getDomNode()),a=r.left+s.left,l=r.top+s.top+s.height;t={x:a,y:l}}const n=this._editor.getOption(121)&&!fa;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:n?this._editor.getDomNode():void 0,getAnchor:()=>t,getActions:()=>e,getActionViewItem:s=>{const r=this._keybindingFor(s);if(r)return new Zm(s,s,{label:!0,keybinding:r.getLabel(),isMenu:!0});const a=s;return typeof a.getActionViewItem=="function"?a.getActionViewItem():new Zm(s,s,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:s=>this._keybindingFor(s),onHide:s=>{this._contextMenuIsBeingShownCount--,this._editor.updateOptions({hover:i})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel())return;const t=this._editor.getOption(69);let i=0;const n=d=>({id:`menu-action-${++i}`,label:d.label,tooltip:"",class:void 0,enabled:typeof d.enabled>"u"?!0:d.enabled,checked:d.checked,run:d.run}),s=(d,c)=>new zf(`menu-action-${++i}`,d,c,void 0),r=(d,c,h,u,f)=>{if(!c)return n({label:d,enabled:c,run:()=>{}});const p=_=>()=>{this._configurationService.updateValue(h,_)},m=[];for(const _ of f)m.push(n({label:_.label,checked:u===_.value,run:p(_.value)}));return s(d,m)},a=[];a.push(n({label:g("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),a.push(new Bi),a.push(n({label:g("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),a.push(r(g("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:g("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:g("context.minimap.size.fill","Fill"),value:"fill"},{label:g("context.minimap.size.fit","Fit"),value:"fit"}])),a.push(r(g("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:g("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:g("context.minimap.slider.always","Always"),value:"always"}]));const l=this._editor.getOption(121)&&!fa;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:l?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>a,onHide:d=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};lg.ID="editor.contrib.contextmenu";lg=mle([Lu(1,xr),Lu(2,xl),Lu(3,Ee),Lu(4,ei),Lu(5,Ea),Lu(6,at)],lg);class _le extends ce{constructor(){super({id:"editor.action.showContextMenu",label:g("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:T.textInputFocus,primary:1092,weight:100}})}run(e,t){var i;(i=lg.get(t))===null||i===void 0||i.showContextMenu()}}lt(lg.ID,lg,2);J(_le);class SL{constructor(e){this.selections=e}equals(e){const t=this.selections.length,i=e.selections.length;if(t!==i)return!1;for(let n=0;n{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeModelContent(t=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeCursorSelection(t=>{if(this._isCursorUndoRedo||!t.oldSelections||t.oldModelVersionId!==t.modelVersionId)return;const i=new SL(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(i)||(this._undoStack.push(new yL(i,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())}))}cursorUndo(){!this._editor.hasModel()||this._undoStack.length===0||(this._redoStack.push(new yL(new SL(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){!this._editor.hasModel()||this._redoStack.length===0||(this._undoStack.push(new yL(new SL(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}Th.ID="editor.contrib.cursorUndoRedoController";class vle extends ce{constructor(){super({id:"cursorUndo",label:g("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:T.textInputFocus,primary:2099,weight:100}})}run(e,t,i){var n;(n=Th.get(t))===null||n===void 0||n.cursorUndo()}}class ble extends ce{constructor(){super({id:"cursorRedo",label:g("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,i){var n;(n=Th.get(t))===null||n===void 0||n.cursorRedo()}}lt(Th.ID,Th,0);J(vle);J(ble);class Cle{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){const i=e.getValueInRange(this.selection);if(this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new y(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new ue(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new ue(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumberthis._onEditorMouseDown(t))),this._register(this._editor.onMouseUp(t=>this._onEditorMouseUp(t))),this._register(this._editor.onMouseDrag(t=>this._onEditorMouseDrag(t))),this._register(this._editor.onMouseDrop(t=>this._onEditorMouseDrop(t))),this._register(this._editor.onMouseDropCanceled(()=>this._onEditorMouseDropCanceled())),this._register(this._editor.onKeyDown(t=>this.onEditorKeyDown(t))),this._register(this._editor.onKeyUp(t=>this.onEditorKeyUp(t))),this._register(this._editor.onDidBlurEditorWidget(()=>this.onEditorBlur())),this._register(this._editor.onDidBlurEditorText(()=>this.onEditorBlur())),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){!this._editor.getOption(32)||this._editor.getOption(19)||(Du(e)&&(this._modifierPressed=!0),this._mouseDown&&Du(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){!this._editor.getOption(32)||this._editor.getOption(19)||(Du(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===_l.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){const t=e.target;if(this._dragSelection===null){const n=(this._editor.getSelections()||[]).filter(s=>t.position&&s.containsPosition(t.position));if(n.length===1)this._dragSelection=n[0];else return}Du(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){const t=new W(e.target.position.lineNumber,e.target.position.column);if(this._dragSelection===null){let i=null;if(e.event.shiftKey){const n=this._editor.getSelection();if(n){const{selectionStartLineNumber:s,selectionStartColumn:r}=n;i=[new ue(s,r,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map(n=>n.containsPosition(t)?new ue(t.lineNumber,t.column,t.lineNumber,t.column):n);this._editor.setSelections(i||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(Du(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(_l.ID,new Cle(this._dragSelection,t,Du(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(e){this._dndDecorationIds.set([{range:new y(e.lineNumber,e.column,e.lineNumber,e.column),options:_l._DECORATION_OPTIONS}]),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(e){return e.type===6||e.type===7}_hitMargin(e){return e.type===2||e.type===3||e.type===4}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}_l.ID="editor.contrib.dragAndDrop";_l.TRIGGER_KEY_VALUE=Ke?6:5;_l._DECORATION_OPTIONS=Re.register({description:"dnd-target",className:"dnd-target"});lt(_l.ID,_l,2);var W9=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Fp=function(o,e){return function(t,i){e(t,i,o)}},bb=function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};let C_=class extends U{constructor(e,t,i,n,s){super(),this._bulkEditService=t,this._languageFeaturesService=i,this._progressService=n,this._register(e.onDropIntoEditor(r=>this.onDropIntoEditor(e,r.position,r.event))),this._languageFeaturesService.documentOnDropEditProvider.register("*",new xI(s))}onDropIntoEditor(e,t,i){var n,s;return bb(this,void 0,void 0,function*(){if(!i.dataTransfer||!e.hasModel())return;const r=e.getModel(),a=r.getVersionId(),l=yield this.extractDataTransferData(i);if(l.size===0||e.getModel().getVersionId()!==a)return;const d=new Sh(e,1);try{const c=this._languageFeaturesService.documentOnDropEditProvider.ordered(r),h=yield this._progressService.withProgress({location:15,delay:750,title:g("dropProgressTitle","Running drop handlers..."),cancellable:!0},()=>z1(bb(this,void 0,void 0,function*(){for(const u of c){const f=yield u.provideDocumentOnDropEdits(r,t,l,d.token);if(d.token.isCancellationRequested)return;if(f)return f}}),d.token),()=>{d.cancel()});if(d.token.isCancellationRequested||e.getModel().getVersionId()!==a)return;if(h){const u=typeof h.insertText=="string"?Hd.escape(h.insertText):h.insertText.snippet,f={edits:[new gl(r.uri,{range:new y(t.lineNumber,t.column,t.lineNumber,t.column),text:u,insertAsSnippet:!0}),...(s=(n=h.additionalEdit)===null||n===void 0?void 0:n.edits)!==null&&s!==void 0?s:[]]};yield this._bulkEditService.apply(f,{editor:e});return}}finally{d.dispose()}})}extractDataTransferData(e){return bb(this,void 0,void 0,function*(){if(!e.dataTransfer)return new O9;const t=DI(e.dataTransfer);return dle(t,e),t})}};C_.ID="editor.contrib.dropIntoEditorController";C_=W9([Fp(1,i0),Fp(2,fe),Fp(3,QN),Fp(4,Xm)],C_);let xI=class{constructor(e){this._workspaceContextService=e}provideDocumentOnDropEdits(e,t,i,n){var s;return bb(this,void 0,void 0,function*(){const r=i.get(Qn.uriList);if(r){const l=yield r.asString(),d=this.getUriListInsertText(l);if(d)return{insertText:d}}const a=(s=i.get("text"))!==null&&s!==void 0?s:i.get(Qn.text);if(a)return{insertText:yield a.asString()}})}getUriListInsertText(e){const t=[];for(const i of Jw.parse(e))try{t.push(Ce.parse(i))}catch{}if(t.length)return t.map(i=>{const n=this._workspaceContextService.getWorkspaceFolder(i);if(n){const s=cZ(n.uri,i);if(s)return s}return i.fsPath}).join(" ")}};xI=W9([Fp(0,Xm)],xI);lt(C_.ID,C_,2);class xn{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map(t=>this._editor.getModel().getDecorationRange(t)).filter(t=>!!t);if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getDecorationRangeAt(e){const t=e{if(this._highlightedDecorationId!==null&&(n.changeDecorationOptions(this._highlightedDecorationId,xn._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),t!==null&&(this._highlightedDecorationId=t,n.changeDecorationOptions(this._highlightedDecorationId,xn._CURRENT_FIND_MATCH_DECORATION)),this._rangeHighlightDecorationId!==null&&(n.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),t!==null){let s=this._editor.getModel().getDecorationRange(t);if(s.startLineNumber!==s.endLineNumber&&s.endColumn===1){const r=s.endLineNumber-1,a=this._editor.getModel().getLineMaxColumn(r);s=new y(s.startLineNumber,s.startColumn,r,a)}this._rangeHighlightDecorationId=n.addDecoration(s,xn._RANGE_HIGHLIGHT_DECORATION)}}),i}set(e,t){this._editor.changeDecorations(i=>{let n=xn._FIND_MATCH_DECORATION;const s=[];if(e.length>1e3){n=xn._FIND_MATCH_NO_OVERVIEW_DECORATION;const a=this._editor.getModel().getLineCount(),d=this._editor.getLayoutInfo().height/a,c=Math.max(2,Math.ceil(3/d));let h=e[0].range.startLineNumber,u=e[0].range.endLineNumber;for(let f=1,p=e.length;f=m.startLineNumber?m.endLineNumber>u&&(u=m.endLineNumber):(s.push({range:new y(h,1,u,1),options:xn._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),h=m.startLineNumber,u=m.endLineNumber)}s.push({range:new y(h,1,u,1),options:xn._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const r=new Array(e.length);for(let a=0,l=e.length;ai.removeDecoration(a)),this._findScopeDecorationIds=[]),t!=null&&t.length&&(this._findScopeDecorationIds=t.map(a=>i.addDecoration(a,xn._FIND_SCOPE_DECORATION)))})}matchBeforePosition(e){if(this._decorations.length===0)return null;for(let t=this._decorations.length-1;t>=0;t--){const i=this._decorations[t],n=this._editor.getModel().getDecorationRange(i);if(!(!n||n.endLineNumber>e.lineNumber)){if(n.endLineNumbere.column))return n}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(this._decorations.length===0)return null;for(let t=0,i=this._decorations.length;te.lineNumber)return s;if(!(s.startColumn0){const i=[];for(let r=0;ry.compareRangesUsingStarts(r.range,a.range));const n=[];let s=i[0];for(let r=1;r0?e[0].toUpperCase()+e.substr(1):o[0][0].toUpperCase()!==o[0][0]&&e.length>0?e[0].toLowerCase()+e.substr(1):e}else return e}function aO(o,e,t){return o[0].indexOf(t)!==-1&&e.indexOf(t)!==-1&&o[0].split(t).length===e.split(t).length}function lO(o,e,t){const i=e.split(t),n=o[0].split(t);let s="";return i.forEach((r,a)=>{s+=V9([n[a]],r)+t}),s.slice(0,-1)}class dO{constructor(e){this.staticValue=e,this.kind=0}}class Sle{constructor(e){this.pieces=e,this.kind=1}}class dg{static fromStaticValue(e){return new dg([sh.staticValue(e)])}get hasReplacementPatterns(){return this._state.kind===1}constructor(e){!e||e.length===0?this._state=new dO(""):e.length===1&&e[0].staticValue!==null?this._state=new dO(e[0].staticValue):this._state=new Sle(e)}buildReplaceString(e,t){if(this._state.kind===0)return t?V9(e,this._state.staticValue):this._state.staticValue;let i="";for(let n=0,s=this._state.pieces.length;n0){const l=[],d=r.caseOps.length;let c=0;for(let h=0,u=a.length;h=d){l.push(a.slice(h));break}switch(r.caseOps[c]){case"U":l.push(a[h].toUpperCase());break;case"u":l.push(a[h].toUpperCase()),c++;break;case"L":l.push(a[h].toLowerCase());break;case"l":l.push(a[h].toLowerCase()),c++;break;default:l.push(a[h])}}a=l.join("")}i+=a}return i}static _substitute(e,t){if(t===null)return"";if(e===0)return t[0];let i="";for(;e>0;){if(e=n)break;const r=o.charCodeAt(i);switch(r){case 92:t.emitUnchanged(i-1),t.emitStatic("\\",i+1);break;case 110:t.emitUnchanged(i-1),t.emitStatic(` diff --git a/app/src/main/resources/web/assets/NetworkView-DEsR_qcg.js b/app/src/main/resources/web/assets/NetworkView-CvS5JKEb.js similarity index 84% rename from app/src/main/resources/web/assets/NetworkView-DEsR_qcg.js rename to app/src/main/resources/web/assets/NetworkView-CvS5JKEb.js index b86917ad..db3fc550 100644 --- a/app/src/main/resources/web/assets/NetworkView-DEsR_qcg.js +++ b/app/src/main/resources/web/assets/NetworkView-CvS5JKEb.js @@ -1,4 +1,4 @@ -import{_ as k}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BaOpzcW2.js";import{_ as y}from"./EditToolbar.vuevuetypescriptsetuptruelang-BN3_Xe4L.js";import{_ as $}from"./Breadcrumb-Dw4cmHLf.js";import{d as C,g as N,h as u,l as b,C as s,ac as p,b$ as g,j as F,c as h,p as m,m as S,x as c,aL as d,O as U,o as q}from"./index-BzaaAwnX.js";const I=C({__name:"NetworkView",setup(B){const{t:i}=N(),o=u(0),n=u(""),t=u("");b({handle:(l,e)=>{e?s(i(e),"error"):(n.value=l.networkConfig.netplan,t.value=l.networkConfig.netmix)},document:p` +import{_ as k}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BNZRjtJE.js";import{_ as y}from"./EditToolbar.vuevuetypescriptsetuptruelang-CKd0R4yf.js";import{_ as $}from"./Breadcrumb-CXy0PDtB.js";import{d as C,g as N,h as u,l as b,C as s,ac as p,b$ as g,j as F,c as h,p as m,m as S,x as c,aL as d,O as U,o as q}from"./index-R8dLcqG_.js";const I=C({__name:"NetworkView",setup(B){const{t:i}=N(),o=u(0),n=u(""),t=u("");b({handle:(l,e)=>{e?s(i(e),"error"):(n.value=l.networkConfig.netplan,t.value=l.networkConfig.netmix)},document:p` query { networkConfig { ...NetworkConfigFragment diff --git a/app/src/main/resources/web/assets/NoteEditView-CM2IJAyE.js b/app/src/main/resources/web/assets/NoteEditView-NOrZqV-k.js similarity index 94% rename from app/src/main/resources/web/assets/NoteEditView-CM2IJAyE.js rename to app/src/main/resources/web/assets/NoteEditView-NOrZqV-k.js index 195d16fb..d22f8fd0 100644 --- a/app/src/main/resources/web/assets/NoteEditView-CM2IJAyE.js +++ b/app/src/main/resources/web/assets/NoteEditView-NOrZqV-k.js @@ -1 +1 @@ -import{_ as Y}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BaOpzcW2.js";import{_ as ee}from"./print-outline-rounded-B686mlM4.js";import{b4 as te,b5 as F,b6 as ne,o as g,c as k,a as d,d as ae,u as oe,g as se,h as y,s as ie,i as le,l as ue,K as re,j as ce,b7 as de,af as _e,a1 as E,ag as me,x as I,w as H,p as S,V as G,t as pe,m as O,aL as ve,v as fe,e as z,O as P,Q as ge,b8 as he,k as be,C as j,b9 as Te,ba as ye,bb as ke,U as we,a3 as $e,a4 as Se,S as Ce,F as Le,G as xe,a6 as Me,f as Ne,Z as Ee,$ as Ie,a2 as qe,H as Ve}from"./index-BzaaAwnX.js";import{u as Ae}from"./markdown-q_fHGBEX.js";var Q=function(){return te.Date.now()},De="Expected a function",Re=Math.max,He=Math.min;function Qe(_,l,u){var m,a,o,i,s,r,v=0,L=!1,f=!1,h=!0;if(typeof _!="function")throw new TypeError(De);l=F(l)||0,ne(u)&&(L=!!u.leading,f="maxWait"in u,o=f?Re(F(u.maxWait)||0,l):o,h="trailing"in u?!!u.trailing:h);function w(n){var c=m,e=a;return m=a=void 0,v=n,i=_.apply(e,c),i}function x(n){return v=n,s=setTimeout(p,l),L?w(n):i}function q(n){var c=n-r,e=n-v,t=l-c;return f?He(t,o-e):t}function b(n){var c=n-r,e=n-v;return r===void 0||c>=l||c<0||f&&e>=o}function p(){var n=Q();if(b(n))return M(n);s=setTimeout(p,q(n))}function M(n){return s=void 0,h&&m?w(n):(m=a=void 0,i)}function V(){s!==void 0&&clearTimeout(s),v=0,m=r=a=s=void 0}function A(){return s===void 0?i:M(Q())}function $(){var n=Q(),c=b(n);if(m=arguments,a=this,r=n,c){if(s===void 0)return x(r);if(f)return clearTimeout(s),s=setTimeout(p,l),w(r)}return s===void 0&&(s=setTimeout(p,l)),i}return $.cancel=V,$.flush=A,$}const Ue={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Be=d("path",{fill:"currentColor",d:"m7.825 13l4.9 4.9q.3.3.288.7t-.313.7q-.3.275-.7.288t-.7-.288l-6.6-6.6q-.15-.15-.213-.325T4.426 12t.063-.375t.212-.325l6.6-6.6q.275-.275.688-.275t.712.275q.3.3.3.713t-.3.712L7.825 11H19q.425 0 .713.288T20 12t-.288.713T19 13z"},null,-1),We=[Be];function Fe(_,l){return g(),k("svg",Ue,[...We])}const Ge={name:"material-symbols-arrow-back-rounded",render:Fe},U=_=>(Le("data-v-e90a69e5"),_=_(),xe(),_),Oe={class:"top-app-bar"},ze=U(()=>d("md-ripple",null,null,-1)),Pe={class:"title"},je={class:"state-point"},Ke={class:"actions"},Xe=U(()=>d("md-ripple",null,null,-1)),Ze=U(()=>d("md-ripple",null,null,-1)),Je={class:"panel-container"},Ye=["innerHTML"],C="NOTE",et=ae({__name:"NoteEditView",setup(_){const l=oe(),{t:u}=se(),m=ge(),a=y(""),o=y(),i=y(""),s=y(""),r=y(!1),{app:v,urlTokenKey:L}=ie(le());function f(){const e=Me.currentRoute.value.query.q;let t="/notes";e&&(t+=`?q=${e}`),Ne(l,t)}const{render:h}=Ae(v,L),w=Qe(()=>{r.value=!1,M({id:a.value,input:{content:i.value,title:he(i.value,{length:250,omission:""})}})},500),x=()=>{be(i,async e=>{r.value=!0,s.value=await h(e),w()})},q=()=>{window.print()},b=y();ue({handle:(e,t)=>{t?j(u(t),"error"):e&&(b.value=e.tags)},document:Te,variables:{type:C},appApi:!0});const{fetch:p}=re({handle:async(e,t)=>{t?j(u(t),"error"):(o.value=e.note,i.value=e.note.content,s.value=await h(i.value),x())},document:ye,variables:()=>({id:a.value}),options:{fetchPolicy:"no-cache"},appApi:!0}),{mutate:M,onDone:V}=ce({document:ke,appApi:!0});V(e=>{var t,T;o.value=e.data.saveNote,!a.value&&((t=o.value)!=null&&t.id)&&(a.value=(T=o.value)==null?void 0:T.id,de(l,`/notes/${a.value}`))});function A(){var t;const e=(t=o==null?void 0:o.value)==null?void 0:t.updatedAt;return e?`(${u("updated_at")}: ${we(e)})`:""}function $(){var e,t;Ee(Ie,{type:C,tags:b.value,item:{key:(e=o.value)==null?void 0:e.id,title:"",size:0},selected:(t=b.value)==null?void 0:t.filter(T=>{var N;return(N=o.value)==null?void 0:N.tags.some(D=>D.id===T.id)})})}const n=e=>{e.type===C&&p()},c=e=>{e.type===C&&p()};return _e(()=>{a.value=m.params.id,a.value==="create"&&(a.value=""),a.value?p():x(),E.on("item_tags_updated",c),E.on("items_tags_updated",n)}),me(()=>{E.off("item_tags_updated",c),E.off("items_tags_updated",n)}),(e,t)=>{var B,W;const T=Ge,N=$e,D=Se,K=qe,X=ee,Z=Y,R=Ce("tooltip");return g(),k(P,null,[d("div",Oe,[I((g(),k("button",{class:"btn-icon",onClick:H(f,["prevent"])},[ze,S(T)])),[[R,e.$t("back")]]),d("div",Pe,[G(pe(a.value?O(u)("edit"):O(u)("create"))+" ",1),I(d("span",je,"*",512),[[ve,r.value]]),G(),(B=o.value)!=null&&B.updatedAt?(g(),fe(N,{key:0,class:"time",id:A(),raw:o.value},null,8,["id","raw"])):z("",!0)]),d("div",Ke,[S(D,{tags:(W=o.value)==null?void 0:W.tags,type:C,"only-links":!0},null,8,["tags"]),a.value?(g(),k(P,{key:0},[I((g(),k("button",{class:"btn-icon",onClick:H($,["prevent"])},[Xe,S(K)])),[[R,e.$t("add_to_tags")]]),I((g(),k("button",{class:"btn-icon",onClick:H(q,["prevent"])},[Ze,S(X)])),[[R,e.$t("print")]])],64)):z("",!0)])]),d("div",Je,[S(Z,{language:"html",modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=J=>i.value=J)},null,8,["modelValue"]),d("div",{class:"md-container",innerHTML:s.value},null,8,Ye)])],64)}}}),st=Ve(et,[["__scopeId","data-v-e90a69e5"]]);export{st as default}; +import{_ as Y}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BNZRjtJE.js";import{_ as ee}from"./print-outline-rounded-wkAfaGzM.js";import{b4 as te,b5 as F,b6 as ne,o as g,c as k,a as d,d as ae,u as oe,g as se,h as y,s as ie,i as le,l as ue,K as re,j as ce,b7 as de,af as _e,a1 as E,ag as me,x as I,w as H,p as S,V as G,t as pe,m as O,aL as ve,v as fe,e as z,O as P,Q as ge,b8 as he,k as be,C as j,b9 as Te,ba as ye,bb as ke,U as we,a3 as $e,a4 as Se,S as Ce,F as Le,G as xe,a6 as Me,f as Ne,Z as Ee,$ as Ie,a2 as qe,H as Ve}from"./index-R8dLcqG_.js";import{u as Ae}from"./markdown-C_We2h-B.js";var Q=function(){return te.Date.now()},De="Expected a function",Re=Math.max,He=Math.min;function Qe(_,l,u){var m,a,o,i,s,r,v=0,L=!1,f=!1,h=!0;if(typeof _!="function")throw new TypeError(De);l=F(l)||0,ne(u)&&(L=!!u.leading,f="maxWait"in u,o=f?Re(F(u.maxWait)||0,l):o,h="trailing"in u?!!u.trailing:h);function w(n){var c=m,e=a;return m=a=void 0,v=n,i=_.apply(e,c),i}function x(n){return v=n,s=setTimeout(p,l),L?w(n):i}function q(n){var c=n-r,e=n-v,t=l-c;return f?He(t,o-e):t}function b(n){var c=n-r,e=n-v;return r===void 0||c>=l||c<0||f&&e>=o}function p(){var n=Q();if(b(n))return M(n);s=setTimeout(p,q(n))}function M(n){return s=void 0,h&&m?w(n):(m=a=void 0,i)}function V(){s!==void 0&&clearTimeout(s),v=0,m=r=a=s=void 0}function A(){return s===void 0?i:M(Q())}function $(){var n=Q(),c=b(n);if(m=arguments,a=this,r=n,c){if(s===void 0)return x(r);if(f)return clearTimeout(s),s=setTimeout(p,l),w(r)}return s===void 0&&(s=setTimeout(p,l)),i}return $.cancel=V,$.flush=A,$}const Ue={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Be=d("path",{fill:"currentColor",d:"m7.825 13l4.9 4.9q.3.3.288.7t-.313.7q-.3.275-.7.288t-.7-.288l-6.6-6.6q-.15-.15-.213-.325T4.426 12t.063-.375t.212-.325l6.6-6.6q.275-.275.688-.275t.712.275q.3.3.3.713t-.3.712L7.825 11H19q.425 0 .713.288T20 12t-.288.713T19 13z"},null,-1),We=[Be];function Fe(_,l){return g(),k("svg",Ue,[...We])}const Ge={name:"material-symbols-arrow-back-rounded",render:Fe},U=_=>(Le("data-v-e90a69e5"),_=_(),xe(),_),Oe={class:"top-app-bar"},ze=U(()=>d("md-ripple",null,null,-1)),Pe={class:"title"},je={class:"state-point"},Ke={class:"actions"},Xe=U(()=>d("md-ripple",null,null,-1)),Ze=U(()=>d("md-ripple",null,null,-1)),Je={class:"panel-container"},Ye=["innerHTML"],C="NOTE",et=ae({__name:"NoteEditView",setup(_){const l=oe(),{t:u}=se(),m=ge(),a=y(""),o=y(),i=y(""),s=y(""),r=y(!1),{app:v,urlTokenKey:L}=ie(le());function f(){const e=Me.currentRoute.value.query.q;let t="/notes";e&&(t+=`?q=${e}`),Ne(l,t)}const{render:h}=Ae(v,L),w=Qe(()=>{r.value=!1,M({id:a.value,input:{content:i.value,title:he(i.value,{length:250,omission:""})}})},500),x=()=>{be(i,async e=>{r.value=!0,s.value=await h(e),w()})},q=()=>{window.print()},b=y();ue({handle:(e,t)=>{t?j(u(t),"error"):e&&(b.value=e.tags)},document:Te,variables:{type:C},appApi:!0});const{fetch:p}=re({handle:async(e,t)=>{t?j(u(t),"error"):(o.value=e.note,i.value=e.note.content,s.value=await h(i.value),x())},document:ye,variables:()=>({id:a.value}),options:{fetchPolicy:"no-cache"},appApi:!0}),{mutate:M,onDone:V}=ce({document:ke,appApi:!0});V(e=>{var t,T;o.value=e.data.saveNote,!a.value&&((t=o.value)!=null&&t.id)&&(a.value=(T=o.value)==null?void 0:T.id,de(l,`/notes/${a.value}`))});function A(){var t;const e=(t=o==null?void 0:o.value)==null?void 0:t.updatedAt;return e?`(${u("updated_at")}: ${we(e)})`:""}function $(){var e,t;Ee(Ie,{type:C,tags:b.value,item:{key:(e=o.value)==null?void 0:e.id,title:"",size:0},selected:(t=b.value)==null?void 0:t.filter(T=>{var N;return(N=o.value)==null?void 0:N.tags.some(D=>D.id===T.id)})})}const n=e=>{e.type===C&&p()},c=e=>{e.type===C&&p()};return _e(()=>{a.value=m.params.id,a.value==="create"&&(a.value=""),a.value?p():x(),E.on("item_tags_updated",c),E.on("items_tags_updated",n)}),me(()=>{E.off("item_tags_updated",c),E.off("items_tags_updated",n)}),(e,t)=>{var B,W;const T=Ge,N=$e,D=Se,K=qe,X=ee,Z=Y,R=Ce("tooltip");return g(),k(P,null,[d("div",Oe,[I((g(),k("button",{class:"btn-icon",onClick:H(f,["prevent"])},[ze,S(T)])),[[R,e.$t("back")]]),d("div",Pe,[G(pe(a.value?O(u)("edit"):O(u)("create"))+" ",1),I(d("span",je,"*",512),[[ve,r.value]]),G(),(B=o.value)!=null&&B.updatedAt?(g(),fe(N,{key:0,class:"time",id:A(),raw:o.value},null,8,["id","raw"])):z("",!0)]),d("div",Ke,[S(D,{tags:(W=o.value)==null?void 0:W.tags,type:C,"only-links":!0},null,8,["tags"]),a.value?(g(),k(P,{key:0},[I((g(),k("button",{class:"btn-icon",onClick:H($,["prevent"])},[Xe,S(K)])),[[R,e.$t("add_to_tags")]]),I((g(),k("button",{class:"btn-icon",onClick:H(q,["prevent"])},[Ze,S(X)])),[[R,e.$t("print")]])],64)):z("",!0)])]),d("div",Je,[S(Z,{language:"html",modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=J=>i.value=J)},null,8,["modelValue"]),d("div",{class:"md-container",innerHTML:s.value},null,8,Ye)])],64)}}}),st=Ve(et,[["__scopeId","data-v-e90a69e5"]]);export{st as default}; diff --git a/app/src/main/resources/web/assets/NotesSidebar-DHZnCq2W.js b/app/src/main/resources/web/assets/NotesSidebar-CKJ0TkLn.js similarity index 76% rename from app/src/main/resources/web/assets/NotesSidebar-DHZnCq2W.js rename to app/src/main/resources/web/assets/NotesSidebar-CKJ0TkLn.js index e724245d..73404072 100644 --- a/app/src/main/resources/web/assets/NotesSidebar-DHZnCq2W.js +++ b/app/src/main/resources/web/assets/NotesSidebar-CKJ0TkLn.js @@ -1 +1 @@ -import{_ as B}from"./LeftSidebar.vuevuetypescriptsetuptruelang-xn7lCt7t.js";import{_ as $}from"./TagFilter.vuevuetypescriptsetuptruelang-CUu0usUl.js";import{d as I,u as V,s as A,i as L,I as Q,h as f,K as M,k as R,af as z,a1 as h,ag as E,v as x,q as v,bk as D,a6 as g,a0 as G,o as i,V as H,t as s,a,w as k,N as y,m as l,c as S,e as T,p as K,a7 as O,f as C,a8 as P}from"./index-BzaaAwnX.js";import{u as U}from"./search-DwB6FdxH.js";import"./more-vert-BRJfC0iG.js";import"./EditValueModal-Ws2hdG3a.js";import"./vee-validate.esm-DNjIRPsN.js";const j={class:"nav"},F={class:"title"},J={key:0,class:"count"},W={class:"title"},X={key:0,class:"count"},re=I({__name:"NotesSidebar",setup(Y){const u=V(),{counter:t}=A(L()),{parseQ:N}=U(),o=Q({tagIds:[]}),n=f(!1),r=f(""),{fetch:d}=M({handle:e=>{e&&(t.value.notes=e.total,t.value.notesTrash=e.trash)},document:D,variables:()=>({}),appApi:!0});function p(){var c;const e=g.currentRoute.value,m=G(((c=e.query.q)==null?void 0:c.toString())??"");N(o,m),r.value=o.tagIds.length===1?o.tagIds[0]:"",n.value=o.trash??!1,n.value&&(r.value=""),d()}p(),R(()=>g.currentRoute.value,()=>{p()});function b(){const e=O([{name:"trash",op:"",value:"true"}]);C(u,`/notes?q=${P(e)}`)}function q(){C(u,"/notes")}const _=()=>{d()};return z(()=>{h.on("notes_actioned",_)}),E(()=>{h.off("notes_actioned",_)}),(e,m)=>{const c=$,w=B;return i(),x(w,null,{title:v(()=>[H(s(e.$t("page_title.notes")),1)]),body:v(()=>[a("ul",j,[a("li",{onClick:k(q,["prevent"]),class:y({active:!r.value&&!n.value})},[a("span",F,s(e.$t("all")),1),l(t).notes>=0?(i(),S("span",J,s(l(t).notes.toLocaleString()),1)):T("",!0)],2),a("li",{onClick:k(b,["prevent"]),class:y({active:n.value})},[a("span",W,s(e.$t("trash")),1),l(t).notesTrash>=0?(i(),S("span",X,s(l(t).notesTrash.toLocaleString()),1)):T("",!0)],2)]),K(c,{type:"NOTE",selected:r.value},null,8,["selected"])]),_:1})}}});export{re as default}; +import{_ as B}from"./LeftSidebar.vuevuetypescriptsetuptruelang-BWG8gajF.js";import{_ as $}from"./TagFilter.vuevuetypescriptsetuptruelang-DySu9lzm.js";import{d as I,u as V,s as A,i as L,I as Q,h as f,K as M,k as R,af as z,a1 as h,ag as E,v as x,q as v,bk as D,a6 as g,a0 as G,o as i,V as H,t as s,a,w as k,N as y,m as l,c as S,e as T,p as K,a7 as O,f as C,a8 as P}from"./index-R8dLcqG_.js";import{u as U}from"./search-ByVbj6Ls.js";import"./more-vert-zjmMMiPD.js";import"./EditValueModal-O1aAFYgx.js";import"./vee-validate.esm-vpr6zxQb.js";const j={class:"nav"},F={class:"title"},J={key:0,class:"count"},W={class:"title"},X={key:0,class:"count"},re=I({__name:"NotesSidebar",setup(Y){const u=V(),{counter:t}=A(L()),{parseQ:N}=U(),o=Q({tagIds:[]}),n=f(!1),r=f(""),{fetch:d}=M({handle:e=>{e&&(t.value.notes=e.total,t.value.notesTrash=e.trash)},document:D,variables:()=>({}),appApi:!0});function p(){var c;const e=g.currentRoute.value,m=G(((c=e.query.q)==null?void 0:c.toString())??"");N(o,m),r.value=o.tagIds.length===1?o.tagIds[0]:"",n.value=o.trash??!1,n.value&&(r.value=""),d()}p(),R(()=>g.currentRoute.value,()=>{p()});function b(){const e=O([{name:"trash",op:"",value:"true"}]);C(u,`/notes?q=${P(e)}`)}function q(){C(u,"/notes")}const _=()=>{d()};return z(()=>{h.on("notes_actioned",_)}),E(()=>{h.off("notes_actioned",_)}),(e,m)=>{const c=$,w=B;return i(),x(w,null,{title:v(()=>[H(s(e.$t("page_title.notes")),1)]),body:v(()=>[a("ul",j,[a("li",{onClick:k(q,["prevent"]),class:y({active:!r.value&&!n.value})},[a("span",F,s(e.$t("all")),1),l(t).notes>=0?(i(),S("span",J,s(l(t).notes.toLocaleString()),1)):T("",!0)],2),a("li",{onClick:k(b,["prevent"]),class:y({active:n.value})},[a("span",W,s(e.$t("trash")),1),l(t).notesTrash>=0?(i(),S("span",X,s(l(t).notesTrash.toLocaleString()),1)):T("",!0)],2)]),K(c,{type:"NOTE",selected:r.value},null,8,["selected"])]),_:1})}}});export{re as default}; diff --git a/app/src/main/resources/web/assets/NotesView-CpABUojQ.js b/app/src/main/resources/web/assets/NotesView-CmvQj0k5.js similarity index 94% rename from app/src/main/resources/web/assets/NotesView-CpABUojQ.js rename to app/src/main/resources/web/assets/NotesView-CmvQj0k5.js index 0f8b5493..3e97537c 100644 --- a/app/src/main/resources/web/assets/NotesView-CpABUojQ.js +++ b/app/src/main/resources/web/assets/NotesView-CmvQj0k5.js @@ -1,4 +1,4 @@ -import{_ as Qe}from"./VPagination.vuevuetypescriptsetuptruelang-DJTUsUyq.js";import{o as s,c as l,a as i,j as B,bc as Ue,I as G,a1 as T,J as j,bd as ze,d as He,u as Be,h as H,g as Ge,K as je,be as Ke,L as Oe,M as Re,m as e,t as $,O as N,x as g,v as _,q as p,w as r,e as D,p as d,P as Pe,N as de,Q as Fe,C as Je,bf as We,bg as Xe,bh as Ye,aP as Ze,S as et,bi as tt,U as st,V as ot,W as at,bj as nt,X as lt,Y as it,f as ue,Z as _e,$ as ct,b8 as rt,ac as dt,ad as ut,a6 as pe,a0 as _t,ae as pt,aT as vt,aU as mt,a2 as ht,a3 as gt,a4 as kt,F as ft,G as bt,H as yt}from"./index-BzaaAwnX.js";import{_ as $t,a as Tt}from"./SearchInput-DTMVECJE.js";import{u as qt,b as Ct,a as wt}from"./key-events-C5OjC_dP.js";import{u as Nt,a as St}from"./tags-BvnEKqTV.js";import{u as Lt}from"./search-DwB6FdxH.js";import"./search-rounded-Btuwf-IQ.js";import"./rss-feed-rounded-9FbiHzkN.js";import"./vee-validate.esm-DNjIRPsN.js";const At={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Dt=i("path",{fill:"currentColor",d:"M19 17.7v1.8q0 .2.15.35t.35.15t.35-.15t.15-.35v-3q0-.2-.15-.35T19.5 16h-3q-.2 0-.35.15t-.15.35t.15.35t.35.15h1.8l-2.45 2.45q-.15.15-.15.35t.15.35t.35.15t.35-.15zM5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v5q0 .425-.288.713T20 11t-.712-.288T19 10V5H5v14h5q.425 0 .713.288T11 20t-.288.713T10 21zm0-3v1V5v6.075V11zm2-2q0 .425.288.713T8 17h2.075q.425 0 .713-.288t.287-.712t-.287-.712t-.713-.288H8q-.425 0-.712.288T7 16m0-4q0 .425.288.713T8 13h5q.425 0 .713-.288T14 12t-.288-.712T13 11H8q-.425 0-.712.288T7 12m0-4q0 .425.288.713T8 9h8q.425 0 .713-.288T17 8t-.288-.712T16 7H8q-.425 0-.712.288T7 8m11 15q-2.075 0-3.537-1.463T13 18t1.463-3.537T18 13t3.538 1.463T23 18t-1.463 3.538T18 23"},null,-1),It=[Dt];function Vt(k,q){return s(),l("svg",At,[...It])}const Mt={name:"material-symbols-export-notes-outline-rounded",render:Vt},Et=(k,q)=>{const{mutate:v,onDone:V}=B({document:Ue,appApi:!0}),f=G(new Map);return V(a=>{f.delete(a.data.trashNotes),k(),q(),T.emit("refetch_tags",j.NOTE),T.emit("notes_actioned",{action:"trash"})}),{trashLoading(a){return f.get(a)??!1},trash(a){f.set(a,!0),v({query:a})}}},xt=(k,q)=>{const{mutate:v,onDone:V}=B({document:ze,appApi:!0}),f=G(new Map);return V(a=>{f.delete(a.data.restoreNotes),k(),q(),T.emit("refetch_tags",j.NOTE),T.emit("notes_actioned",{action:"restore"})}),{restoreLoading(a){return f.get(a)??!1},restore(a){f.set(a,!0),v({query:a})}}},Qt=k=>(ft("data-v-68f43b2b"),k=k(),bt(),k),Ut={class:"top-app-bar"},zt=["checked","indeterminate"],Ht={class:"title"},Bt={key:0},Gt={key:1},jt={class:"actions"},Kt={key:0,class:"scroller"},Ot={class:"start"},Rt=Qt(()=>i("div",{class:"checkbox"},[i("div",{class:"skeleton-checkbox"})],-1)),Pt={class:"number"},Ft=it('
',4),Jt=["href"],Wt=["onClick","onMouseover"],Xt={class:"start"},Yt=["onClick","checked"],Zt=["onClick","checked"],es={class:"number"},ts={class:"title"},ss={class:"subtitle"},os={class:"actions"},as={class:"time"},ns={key:2,class:"no-data-placeholder"},I=50,ls=He({__name:"NotesView",setup(k){var le;const q=Be(),v=H([]),{t:V}=Ge(),{parseQ:f}=Lt(),a=G({tagIds:[],trash:!1}),S=j.NOTE,K=Fe(),O=K.query,Q=H(parseInt(((le=O.page)==null?void 0:le.toString())??"1")),C=H(""),{tags:M,fetch:ve}=Nt(S),{selectedIds:y,allChecked:R,realAllChecked:L,selectRealAll:me,allCheckedAlertVisible:he,clearSelection:w,toggleAllChecked:P,toggleSelect:F,total:m,checked:U,shiftEffectingIds:J,handleItemClick:ge,handleMouseOver:ke,selectAll:fe,shouldSelect:be}=qt(v),{addToTags:ye}=St(S,M),W=t=>{const n=K.query.q;ue(q,n?`/notes?page=${t}&q=${n}`:`/notes?page=${t}`)},{keyDown:X,keyUp:Y}=wt(m,I,Q,fe,w,W,()=>{Z(y.value,L.value,m.value,C.value)}),{loading:z,fetch:A}=je({handle:(t,n)=>{n?Je(V(n),"error"):t&&(v.value=t.notes,m.value=t.noteCount)},document:We,variables:()=>({offset:(Q.value-1)*I,limit:I,query:C.value}),appApi:!0});function $e(t){_e(ct,{type:S,tags:M.value,item:{key:t.id,title:"",size:0},selected:M.value.filter(n=>t.tags.some(x=>x.id===n.id))})}function Te(t){return t?`/notes?q=${t}`:"/notes"}const{mutate:qe,onDone:Ce}=B({document:Xe,appApi:!0}),we=()=>{qe({query:E()})},E=()=>{let t=C.value;return L.value||(t=`ids:${y.value.join(",")}`),t};Ce(t=>{Ke(t.data.exportNotes,"application/json","notes.json")});const{deleteItems:Z}=Ct(Ye,()=>{w(),A()});function Ne(t){_e(ut,{id:t.id,name:rt(t.title,{length:20}),gql:dt` +import{_ as Qe}from"./VPagination.vuevuetypescriptsetuptruelang-goYu96wT.js";import{o as s,c as l,a as i,j as B,bc as Ue,I as G,a1 as T,J as j,bd as ze,d as He,u as Be,h as H,g as Ge,K as je,be as Ke,L as Oe,M as Re,m as e,t as $,O as N,x as g,v as _,q as p,w as r,e as D,p as d,P as Pe,N as de,Q as Fe,C as Je,bf as We,bg as Xe,bh as Ye,aP as Ze,S as et,bi as tt,U as st,V as ot,W as at,bj as nt,X as lt,Y as it,f as ue,Z as _e,$ as ct,b8 as rt,ac as dt,ad as ut,a6 as pe,a0 as _t,ae as pt,aT as vt,aU as mt,a2 as ht,a3 as gt,a4 as kt,F as ft,G as bt,H as yt}from"./index-R8dLcqG_.js";import{_ as $t,a as Tt}from"./SearchInput-DhaE-3h8.js";import{u as qt,b as Ct,a as wt}from"./key-events-BNCM8SMB.js";import{u as Nt,a as St}from"./tags-Dbpv368M.js";import{u as Lt}from"./search-ByVbj6Ls.js";import"./search-rounded-CULEMJ2O.js";import"./rss-feed-rounded-BCiGdgJ5.js";import"./vee-validate.esm-vpr6zxQb.js";const At={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Dt=i("path",{fill:"currentColor",d:"M19 17.7v1.8q0 .2.15.35t.35.15t.35-.15t.15-.35v-3q0-.2-.15-.35T19.5 16h-3q-.2 0-.35.15t-.15.35t.15.35t.35.15h1.8l-2.45 2.45q-.15.15-.15.35t.15.35t.35.15t.35-.15zM5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v5q0 .425-.288.713T20 11t-.712-.288T19 10V5H5v14h5q.425 0 .713.288T11 20t-.288.713T10 21zm0-3v1V5v6.075V11zm2-2q0 .425.288.713T8 17h2.075q.425 0 .713-.288t.287-.712t-.287-.712t-.713-.288H8q-.425 0-.712.288T7 16m0-4q0 .425.288.713T8 13h5q.425 0 .713-.288T14 12t-.288-.712T13 11H8q-.425 0-.712.288T7 12m0-4q0 .425.288.713T8 9h8q.425 0 .713-.288T17 8t-.288-.712T16 7H8q-.425 0-.712.288T7 8m11 15q-2.075 0-3.537-1.463T13 18t1.463-3.537T18 13t3.538 1.463T23 18t-1.463 3.538T18 23"},null,-1),It=[Dt];function Vt(k,q){return s(),l("svg",At,[...It])}const Mt={name:"material-symbols-export-notes-outline-rounded",render:Vt},Et=(k,q)=>{const{mutate:v,onDone:V}=B({document:Ue,appApi:!0}),f=G(new Map);return V(a=>{f.delete(a.data.trashNotes),k(),q(),T.emit("refetch_tags",j.NOTE),T.emit("notes_actioned",{action:"trash"})}),{trashLoading(a){return f.get(a)??!1},trash(a){f.set(a,!0),v({query:a})}}},xt=(k,q)=>{const{mutate:v,onDone:V}=B({document:ze,appApi:!0}),f=G(new Map);return V(a=>{f.delete(a.data.restoreNotes),k(),q(),T.emit("refetch_tags",j.NOTE),T.emit("notes_actioned",{action:"restore"})}),{restoreLoading(a){return f.get(a)??!1},restore(a){f.set(a,!0),v({query:a})}}},Qt=k=>(ft("data-v-68f43b2b"),k=k(),bt(),k),Ut={class:"top-app-bar"},zt=["checked","indeterminate"],Ht={class:"title"},Bt={key:0},Gt={key:1},jt={class:"actions"},Kt={key:0,class:"scroller"},Ot={class:"start"},Rt=Qt(()=>i("div",{class:"checkbox"},[i("div",{class:"skeleton-checkbox"})],-1)),Pt={class:"number"},Ft=it('
',4),Jt=["href"],Wt=["onClick","onMouseover"],Xt={class:"start"},Yt=["onClick","checked"],Zt=["onClick","checked"],es={class:"number"},ts={class:"title"},ss={class:"subtitle"},os={class:"actions"},as={class:"time"},ns={key:2,class:"no-data-placeholder"},I=50,ls=He({__name:"NotesView",setup(k){var le;const q=Be(),v=H([]),{t:V}=Ge(),{parseQ:f}=Lt(),a=G({tagIds:[],trash:!1}),S=j.NOTE,K=Fe(),O=K.query,Q=H(parseInt(((le=O.page)==null?void 0:le.toString())??"1")),C=H(""),{tags:M,fetch:ve}=Nt(S),{selectedIds:y,allChecked:R,realAllChecked:L,selectRealAll:me,allCheckedAlertVisible:he,clearSelection:w,toggleAllChecked:P,toggleSelect:F,total:m,checked:U,shiftEffectingIds:J,handleItemClick:ge,handleMouseOver:ke,selectAll:fe,shouldSelect:be}=qt(v),{addToTags:ye}=St(S,M),W=t=>{const n=K.query.q;ue(q,n?`/notes?page=${t}&q=${n}`:`/notes?page=${t}`)},{keyDown:X,keyUp:Y}=wt(m,I,Q,fe,w,W,()=>{Z(y.value,L.value,m.value,C.value)}),{loading:z,fetch:A}=je({handle:(t,n)=>{n?Je(V(n),"error"):t&&(v.value=t.notes,m.value=t.noteCount)},document:We,variables:()=>({offset:(Q.value-1)*I,limit:I,query:C.value}),appApi:!0});function $e(t){_e(ct,{type:S,tags:M.value,item:{key:t.id,title:"",size:0},selected:M.value.filter(n=>t.tags.some(x=>x.id===n.id))})}function Te(t){return t?`/notes?q=${t}`:"/notes"}const{mutate:qe,onDone:Ce}=B({document:Xe,appApi:!0}),we=()=>{qe({query:E()})},E=()=>{let t=C.value;return L.value||(t=`ids:${y.value.join(",")}`),t};Ce(t=>{Ke(t.data.exportNotes,"application/json","notes.json")});const{deleteItems:Z}=Ct(Ye,()=>{w(),A()});function Ne(t){_e(ut,{id:t.id,name:rt(t.title,{length:20}),gql:dt` mutation DeleteNote($query: String!) { deleteNotes(query: $query) } diff --git a/app/src/main/resources/web/assets/QrCodeGeneratorView-D1zoFzte.js b/app/src/main/resources/web/assets/QrCodeGeneratorView-uCh2g3ea.js similarity index 99% rename from app/src/main/resources/web/assets/QrCodeGeneratorView-D1zoFzte.js rename to app/src/main/resources/web/assets/QrCodeGeneratorView-uCh2g3ea.js index d9c636d0..395e2632 100644 --- a/app/src/main/resources/web/assets/QrCodeGeneratorView-D1zoFzte.js +++ b/app/src/main/resources/web/assets/QrCodeGeneratorView-uCh2g3ea.js @@ -1 +1 @@ -import{bR as E,d as U,s as W,u as Z,h as X,k as J,c as I,a as x,t as Y,x as $,y as j,m as q,z as tt,e as rt,O as et,o as T,H as nt}from"./index-BzaaAwnX.js";var p;(function(r){r[r.Terminator=0]="Terminator",r[r.Numeric=1]="Numeric",r[r.Alphanumeric=2]="Alphanumeric",r[r.StructuredAppend=3]="StructuredAppend",r[r.Byte=4]="Byte",r[r.Kanji=8]="Kanji",r[r.ECI=7]="ECI"})(p||(p={}));var N=function(){function r(t,e){this.bytes=[],this.mode=t,this.data=e}return r.prototype.getLength=function(){return this.bytes.length},r.prototype.getLengthInBits=function(t){var e=this.mode,i=new Error("illegal mode: ".concat(e));if(1<=t&&t<10)switch(e){case p.Numeric:return 10;case p.Alphanumeric:return 9;case p.Byte:return 8;case p.Kanji:return 8;default:throw i}else if(t<27)switch(e){case p.Numeric:return 12;case p.Alphanumeric:return 11;case p.Byte:return 16;case p.Kanji:return 10;default:throw i}else if(t<41)switch(e){case p.Numeric:return 14;case p.Alphanumeric:return 13;case p.Byte:return 16;case p.Kanji:return 12;default:throw i}else throw new Error("illegal version: ".concat(t))},r}();function it(r){for(var t=0,e=r.length,i=[],n=0;n>6|192,i[t++]=a&63|128):(a&64512)===55296&&n+1>18|240,i[t++]=a>>12&63|128,i[t++]=a>>6&63|128,i[t++]=a&63|128):(i[t++]=a>>12|224,i[t++]=a>>6&63|128,i[t++]=a&63|128)}return i}var at=function(r){E(t,r);function t(e,i){var n=r.call(this,p.Byte,e)||this;if(n.encoding=-1,typeof i=="function"){var a=i(e),s=a.encoding,f=a.bytes;n.bytes=f,n.encoding=s}else n.bytes=it(e),n.encoding=26;return n}return t.prototype.writeTo=function(e){for(var i=this.bytes,n=0,a=i;n=256;)r-=255;return m[r]}var C=function(){function r(t,e){e===void 0&&(e=0);for(var i=0,n=t.length;i>>=1;return t}var M=L(F);function ct(r){for(var t=r<<12;L(t)-M>=0;)t^=F<=0;)t^=V<5&&i++):(a=u,s=1)}return i}function gt(r){return H(r,!0)+H(r,!1)}function wt(r){for(var t=r.getMatrixSize(),e=0,i=0;i>0]>>>7-t%8&1)===1},r.prototype.put=function(t,e){for(var i=0;i>>e-i-1&1)===1)},r.prototype.putBit=function(t){var e=this.buffer;this.length===e.length*8&&e.push(0),t&&(e[this.length/8>>0]|=128>>>this.length%8),this.length++},r}();var K=function(){function r(){}return r.prototype.writeBytes=function(t,e,i){e===void 0&&(e=0),i===void 0&&(i=t.length);for(var n=0;n>>8)},t.prototype.toByteArray=function(){return this.bytes},t}(K);function xt(r){if(r>=0){if(r<26)return 65+r;if(r<52)return 97+(r-26);if(r<62)return 48+(r-52);if(r===62)return 43;if(r===63)return 47}throw new Error("illegal char: ".concat(String.fromCharCode(r)))}var bt=function(r){E(t,r);function t(e){var i=r.call(this)||this;return i.buffer=0,i.length=0,i.bufLength=0,i.stream=e,i}return t.prototype.writeByte=function(e){for(this.buffer=this.buffer<<8|e&255,this.bufLength+=8,this.length++;this.bufLength>=6;)this.writeEncoded(this.buffer>>>this.bufLength-6),this.bufLength-=6},t.prototype.flush=function(){this.bufLength>0&&(this.writeEncoded(this.buffer<<6-this.bufLength),this.buffer=0,this.bufLength=0);var e=this.stream;if(this.length%3!=0)for(var i=3-this.length%3,n=0;n=0},r}(),Dt=function(){function r(t){this.output=t,this.bitLength=0,this.bitBuffer=0}return r.prototype.write=function(t,e){if(t>>>e)throw new Error("length overflow");for(var i=this.output;this.bitLength+e>=8;)i.writeByte(255&(t<>>=8-this.bitLength,this.bitBuffer=0,this.bitLength=0;this.bitBuffer=t<0&&t.writeByte(this.bitBuffer),t.flush()},r.prototype.close=function(){this.flush(),this.output.close()},r}(),Ct=function(){function r(t,e){this.data=[],this.width=t,this.height=e;for(var i=t*e,n=0;n255;)t.writeByte(255),t.writeBytes(s,u,255),u+=255;var o=f-u;t.writeByte(o),t.writeBytes(s,u,o),t.writeByte(0),t.writeByte(59)},r.prototype.toDataURL=function(){var t=new A;this.write(t);var e=kt(t.toByteArray());t.close();for(var i=e.length,n=String.fromCharCode,a="data:image/gif;base64,",s=0;s>0)+(e/2>>0)&1)===0};case 5:return function(t,e){return(t*e&1)+t*e%3===0};case 6:return function(t,e){return((t*e&1)+t*e%3&1)===0};case 7:return function(t,e){return(t*e%3+(t+e&1)&1)===0};default:throw new Error("illegal mask: ".concat(r))}}var Et=236,_t=17,dt=Object.prototype.toString;function Rt(r,t){if(r<0||r>=1e6)throw new Error("byte mode encoding hint out of range");t.put(p.ECI,4),r<128?t.put(r,8):r<16384?(t.put(2,2),t.put(r,14)):(t.put(6,3),t.put(r,21))}function O(r,t,e,i){for(var n=new G,a=Lt.getRSBlocks(r,t),s=0,f=i;s=0?d.getAt(R):0}}r=new G;for(var h=0;h=e||(r.put(Et,8),r.getLengthInBits()>=e));)r.put(_t,8);return It(r,t)}var zt=function(){function r(t){t===void 0&&(t={}),this.matrixSize=0,this.chunks=[],this.matrix=[];var e=t.version,i=e===void 0?0:e,n=t.encodingHint,a=n===void 0?!1:n,s=t.errorCorrectionLevel,f=s===void 0?B.L:s;this.setVersion(i),this.setEncodingHint(a),this.setErrorCorrectionLevel(f)}return r.prototype.getMatrix=function(){return this.matrix},r.prototype.getMatrixSize=function(){return this.matrixSize},r.prototype.getVersion=function(){return this.version},r.prototype.setVersion=function(t){return this.version=Math.min(40,Math.max(0,t>>0)),this.auto=this.version===0,this},r.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},r.prototype.setErrorCorrectionLevel=function(t){switch(t){case B.L:case B.M:case B.Q:case B.H:this.errorCorrectionLevel=t}return this},r.prototype.getEncodingHint=function(){return this.encodingHint},r.prototype.setEncodingHint=function(t){return this.encodingHint=t,this},r.prototype.write=function(t){var e=this.chunks;if(t instanceof N)e.push(t);else{var i=dt.call(t);if(i==="[object String]")e.push(new at(t));else throw new Error("illegal data: ".concat(t))}return this},r.prototype.isDark=function(t,e){return this.matrix[t][e]===!0},r.prototype.setupFinderPattern=function(t,e){for(var i=this.matrix,n=this.matrixSize,a=-1;a<=7;a++)for(var s=-1;s<=7;s++)t+a<=-1||n<=t+a||e+s<=-1||n<=e+s||(0<=a&&a<=6&&(s===0||s===6)||0<=s&&s<=6&&(a===0||a===6)||2<=a&&a<=4&&2<=s&&s<=4?i[t+a][e+s]=!0:i[t+a][e+s]=!1)},r.prototype.setupAlignmentPattern=function(){for(var t=this.matrix,e=vt(this.version),i=e.length,n=0;n>s&1)===1;s<6?e[s][8]=f:s<8?e[s+1][8]=f:e[a-15+s][8]=f,s<8?e[8][a-s-1]=f:s<9?e[8][15-s-1+1]=f:e[8][15-s-1]=f}e[a-8][8]=!0},r.prototype.setupVersionInfo=function(){if(this.version>=7)for(var t=this.matrix,e=this.matrixSize,i=ct(this.version),n=0;n<18;n++){var a=(i>>n&1)===1;t[n/3>>0][n%3+e-8-3]=a,t[n%3+e-8-3][n/3>>0]=a}},r.prototype.setupCodewords=function(t,e){for(var i=this.matrix,n=this.matrixSize,a=t.getLengthInBits(),s=At(e),f=0,u=n-1;u>=1;u-=2){u===6&&(u=5);for(var o=0;oa)throw new Error("data overflow: ".concat(v," > ").concat(a));this.version=o}else e=O(this.version,u,this.encodingHint,f),i=e[0],n=e[1],a=e[2];this.matrixSize=this.version*4+17;for(var l=[],y=Tt(i,n,a),h=-1,c=Number.MAX_VALUE,g=0;g<8;g++){this.buildMatrix(y,g),l.push(this.matrix);var k=mt(this);k>0),e=Math.max(0,e>>0);for(var i=this.matrixSize,n=t*i+e*2,a=e,s=n-e,f=new Ct(n,n),u=0;u>0,l=(o-a)/t>>0;f.setPixel(o,u,this.isDark(v,l)?0:1)}else f.setPixel(o,u,1);return f.toDataURL()},r.prototype.clear=function(){this.chunks=[]},r}();const Mt={class:"top-app-bar"},Pt={class:"title"},Ht={class:"scroll-content"},Ot={class:"qrcode-panel"},Nt=["src"],Vt=U({__name:"QrCodeGeneratorView",setup(r){const{qrCode:t}=W(Z()),e=X(""),i=()=>{try{const n=new zt;n.setEncodingHint(!0),n.setErrorCorrectionLevel(B.H),n.write(t.value),n.make(),e.value=n.toDataURL(8)}catch(n){console.error(n)}};return J(t,()=>{i()}),i(),(n,a)=>(T(),I(et,null,[x("div",Mt,[x("div",Pt,Y(n.$t("qrcode_generator")),1)]),x("div",Ht,[$(x("md-outlined-text-field",{"onUpdate:modelValue":a[0]||(a[0]=s=>tt(t)?t.value=s:null),class:"textarea",type:"textarea",rows:"3"},null,512),[[j,q(t)]]),x("div",Ot,[e.value?(T(),I("img",{key:0,src:e.value},null,8,Nt)):rt("",!0)])])],64))}}),Gt=nt(Vt,[["__scopeId","data-v-7333bea1"]]);export{Gt as default}; +import{bR as E,d as U,s as W,u as Z,h as X,k as J,c as I,a as x,t as Y,x as $,y as j,m as q,z as tt,e as rt,O as et,o as T,H as nt}from"./index-R8dLcqG_.js";var p;(function(r){r[r.Terminator=0]="Terminator",r[r.Numeric=1]="Numeric",r[r.Alphanumeric=2]="Alphanumeric",r[r.StructuredAppend=3]="StructuredAppend",r[r.Byte=4]="Byte",r[r.Kanji=8]="Kanji",r[r.ECI=7]="ECI"})(p||(p={}));var N=function(){function r(t,e){this.bytes=[],this.mode=t,this.data=e}return r.prototype.getLength=function(){return this.bytes.length},r.prototype.getLengthInBits=function(t){var e=this.mode,i=new Error("illegal mode: ".concat(e));if(1<=t&&t<10)switch(e){case p.Numeric:return 10;case p.Alphanumeric:return 9;case p.Byte:return 8;case p.Kanji:return 8;default:throw i}else if(t<27)switch(e){case p.Numeric:return 12;case p.Alphanumeric:return 11;case p.Byte:return 16;case p.Kanji:return 10;default:throw i}else if(t<41)switch(e){case p.Numeric:return 14;case p.Alphanumeric:return 13;case p.Byte:return 16;case p.Kanji:return 12;default:throw i}else throw new Error("illegal version: ".concat(t))},r}();function it(r){for(var t=0,e=r.length,i=[],n=0;n>6|192,i[t++]=a&63|128):(a&64512)===55296&&n+1>18|240,i[t++]=a>>12&63|128,i[t++]=a>>6&63|128,i[t++]=a&63|128):(i[t++]=a>>12|224,i[t++]=a>>6&63|128,i[t++]=a&63|128)}return i}var at=function(r){E(t,r);function t(e,i){var n=r.call(this,p.Byte,e)||this;if(n.encoding=-1,typeof i=="function"){var a=i(e),s=a.encoding,f=a.bytes;n.bytes=f,n.encoding=s}else n.bytes=it(e),n.encoding=26;return n}return t.prototype.writeTo=function(e){for(var i=this.bytes,n=0,a=i;n=256;)r-=255;return m[r]}var C=function(){function r(t,e){e===void 0&&(e=0);for(var i=0,n=t.length;i>>=1;return t}var M=L(F);function ct(r){for(var t=r<<12;L(t)-M>=0;)t^=F<=0;)t^=V<5&&i++):(a=u,s=1)}return i}function gt(r){return H(r,!0)+H(r,!1)}function wt(r){for(var t=r.getMatrixSize(),e=0,i=0;i>0]>>>7-t%8&1)===1},r.prototype.put=function(t,e){for(var i=0;i>>e-i-1&1)===1)},r.prototype.putBit=function(t){var e=this.buffer;this.length===e.length*8&&e.push(0),t&&(e[this.length/8>>0]|=128>>>this.length%8),this.length++},r}();var K=function(){function r(){}return r.prototype.writeBytes=function(t,e,i){e===void 0&&(e=0),i===void 0&&(i=t.length);for(var n=0;n>>8)},t.prototype.toByteArray=function(){return this.bytes},t}(K);function xt(r){if(r>=0){if(r<26)return 65+r;if(r<52)return 97+(r-26);if(r<62)return 48+(r-52);if(r===62)return 43;if(r===63)return 47}throw new Error("illegal char: ".concat(String.fromCharCode(r)))}var bt=function(r){E(t,r);function t(e){var i=r.call(this)||this;return i.buffer=0,i.length=0,i.bufLength=0,i.stream=e,i}return t.prototype.writeByte=function(e){for(this.buffer=this.buffer<<8|e&255,this.bufLength+=8,this.length++;this.bufLength>=6;)this.writeEncoded(this.buffer>>>this.bufLength-6),this.bufLength-=6},t.prototype.flush=function(){this.bufLength>0&&(this.writeEncoded(this.buffer<<6-this.bufLength),this.buffer=0,this.bufLength=0);var e=this.stream;if(this.length%3!=0)for(var i=3-this.length%3,n=0;n=0},r}(),Dt=function(){function r(t){this.output=t,this.bitLength=0,this.bitBuffer=0}return r.prototype.write=function(t,e){if(t>>>e)throw new Error("length overflow");for(var i=this.output;this.bitLength+e>=8;)i.writeByte(255&(t<>>=8-this.bitLength,this.bitBuffer=0,this.bitLength=0;this.bitBuffer=t<0&&t.writeByte(this.bitBuffer),t.flush()},r.prototype.close=function(){this.flush(),this.output.close()},r}(),Ct=function(){function r(t,e){this.data=[],this.width=t,this.height=e;for(var i=t*e,n=0;n255;)t.writeByte(255),t.writeBytes(s,u,255),u+=255;var o=f-u;t.writeByte(o),t.writeBytes(s,u,o),t.writeByte(0),t.writeByte(59)},r.prototype.toDataURL=function(){var t=new A;this.write(t);var e=kt(t.toByteArray());t.close();for(var i=e.length,n=String.fromCharCode,a="data:image/gif;base64,",s=0;s>0)+(e/2>>0)&1)===0};case 5:return function(t,e){return(t*e&1)+t*e%3===0};case 6:return function(t,e){return((t*e&1)+t*e%3&1)===0};case 7:return function(t,e){return(t*e%3+(t+e&1)&1)===0};default:throw new Error("illegal mask: ".concat(r))}}var Et=236,_t=17,dt=Object.prototype.toString;function Rt(r,t){if(r<0||r>=1e6)throw new Error("byte mode encoding hint out of range");t.put(p.ECI,4),r<128?t.put(r,8):r<16384?(t.put(2,2),t.put(r,14)):(t.put(6,3),t.put(r,21))}function O(r,t,e,i){for(var n=new G,a=Lt.getRSBlocks(r,t),s=0,f=i;s=0?d.getAt(R):0}}r=new G;for(var h=0;h=e||(r.put(Et,8),r.getLengthInBits()>=e));)r.put(_t,8);return It(r,t)}var zt=function(){function r(t){t===void 0&&(t={}),this.matrixSize=0,this.chunks=[],this.matrix=[];var e=t.version,i=e===void 0?0:e,n=t.encodingHint,a=n===void 0?!1:n,s=t.errorCorrectionLevel,f=s===void 0?B.L:s;this.setVersion(i),this.setEncodingHint(a),this.setErrorCorrectionLevel(f)}return r.prototype.getMatrix=function(){return this.matrix},r.prototype.getMatrixSize=function(){return this.matrixSize},r.prototype.getVersion=function(){return this.version},r.prototype.setVersion=function(t){return this.version=Math.min(40,Math.max(0,t>>0)),this.auto=this.version===0,this},r.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},r.prototype.setErrorCorrectionLevel=function(t){switch(t){case B.L:case B.M:case B.Q:case B.H:this.errorCorrectionLevel=t}return this},r.prototype.getEncodingHint=function(){return this.encodingHint},r.prototype.setEncodingHint=function(t){return this.encodingHint=t,this},r.prototype.write=function(t){var e=this.chunks;if(t instanceof N)e.push(t);else{var i=dt.call(t);if(i==="[object String]")e.push(new at(t));else throw new Error("illegal data: ".concat(t))}return this},r.prototype.isDark=function(t,e){return this.matrix[t][e]===!0},r.prototype.setupFinderPattern=function(t,e){for(var i=this.matrix,n=this.matrixSize,a=-1;a<=7;a++)for(var s=-1;s<=7;s++)t+a<=-1||n<=t+a||e+s<=-1||n<=e+s||(0<=a&&a<=6&&(s===0||s===6)||0<=s&&s<=6&&(a===0||a===6)||2<=a&&a<=4&&2<=s&&s<=4?i[t+a][e+s]=!0:i[t+a][e+s]=!1)},r.prototype.setupAlignmentPattern=function(){for(var t=this.matrix,e=vt(this.version),i=e.length,n=0;n>s&1)===1;s<6?e[s][8]=f:s<8?e[s+1][8]=f:e[a-15+s][8]=f,s<8?e[8][a-s-1]=f:s<9?e[8][15-s-1+1]=f:e[8][15-s-1]=f}e[a-8][8]=!0},r.prototype.setupVersionInfo=function(){if(this.version>=7)for(var t=this.matrix,e=this.matrixSize,i=ct(this.version),n=0;n<18;n++){var a=(i>>n&1)===1;t[n/3>>0][n%3+e-8-3]=a,t[n%3+e-8-3][n/3>>0]=a}},r.prototype.setupCodewords=function(t,e){for(var i=this.matrix,n=this.matrixSize,a=t.getLengthInBits(),s=At(e),f=0,u=n-1;u>=1;u-=2){u===6&&(u=5);for(var o=0;oa)throw new Error("data overflow: ".concat(v," > ").concat(a));this.version=o}else e=O(this.version,u,this.encodingHint,f),i=e[0],n=e[1],a=e[2];this.matrixSize=this.version*4+17;for(var l=[],y=Tt(i,n,a),h=-1,c=Number.MAX_VALUE,g=0;g<8;g++){this.buildMatrix(y,g),l.push(this.matrix);var k=mt(this);k>0),e=Math.max(0,e>>0);for(var i=this.matrixSize,n=t*i+e*2,a=e,s=n-e,f=new Ct(n,n),u=0;u>0,l=(o-a)/t>>0;f.setPixel(o,u,this.isDark(v,l)?0:1)}else f.setPixel(o,u,1);return f.toDataURL()},r.prototype.clear=function(){this.chunks=[]},r}();const Mt={class:"top-app-bar"},Pt={class:"title"},Ht={class:"scroll-content"},Ot={class:"qrcode-panel"},Nt=["src"],Vt=U({__name:"QrCodeGeneratorView",setup(r){const{qrCode:t}=W(Z()),e=X(""),i=()=>{try{const n=new zt;n.setEncodingHint(!0),n.setErrorCorrectionLevel(B.H),n.write(t.value),n.make(),e.value=n.toDataURL(8)}catch(n){console.error(n)}};return J(t,()=>{i()}),i(),(n,a)=>(T(),I(et,null,[x("div",Mt,[x("div",Pt,Y(n.$t("qrcode_generator")),1)]),x("div",Ht,[$(x("md-outlined-text-field",{"onUpdate:modelValue":a[0]||(a[0]=s=>tt(t)?t.value=s:null),class:"textarea",type:"textarea",rows:"3"},null,512),[[j,q(t)]]),x("div",Ot,[e.value?(T(),I("img",{key:0,src:e.value},null,8,Nt)):rt("",!0)])])],64))}}),Gt=nt(Vt,[["__scopeId","data-v-7333bea1"]]);export{Gt as default}; diff --git a/app/src/main/resources/web/assets/RoutesView-D8Ogkhi5.js b/app/src/main/resources/web/assets/RoutesView-D87udG5Z.js similarity index 96% rename from app/src/main/resources/web/assets/RoutesView-D8Ogkhi5.js rename to app/src/main/resources/web/assets/RoutesView-D87udG5Z.js index bf873bdf..1adb6286 100644 --- a/app/src/main/resources/web/assets/RoutesView-D8Ogkhi5.js +++ b/app/src/main/resources/web/assets/RoutesView-D87udG5Z.js @@ -1,4 +1,4 @@ -import{d as le,I as re,h as D,g as ie,j as U,ac as w,cs as N,ct as ce,au as pe,k as _e,av as F,o as d,c as u,a as e,t as a,m as s,x as g,cv as A,O as h,P as b,y as x,z as ee,p as J,q as te,e as V,V as L,ao as ve,l as me,C as fe,cw as ge,cx as $e,Z as S,S as he,ap as ae,U as oe,w as ne,ad as ye,a3 as be}from"./index-BzaaAwnX.js";import{T as v,a as k,_ as ke,A as we}from"./question-mark-rounded-DNpslAE7.js";import{u as Ce,a as Te}from"./vee-validate.esm-DNjIRPsN.js";const Ne={slot:"headline"},Ie={slot:"content"},Ee={class:"row mb-3"},Fe={class:"col-md-3 col-form-label"},Ae={class:"col-md-9"},Ve=["value"],De={key:0,class:"input-group"},Re=["placeholder"],Me={class:"inner"},Oe={class:"help-block"},qe={value:""},Se=["value"],Ue={key:2,class:"invalid-feedback"},Je={class:"row mb-3"},Le={class:"col-md-3 col-form-label"},je={class:"col-md-9"},Be=["value"],Pe={class:"row mb-3"},ze={class:"col-md-3 col-form-label"},Qe={class:"col-md-9"},Ze={value:"all"},Ge=["value"],He=["value"],Ke={class:"row mb-3"},We={class:"col-md-3 col-form-label"},Xe={class:"col-md-9"},Ye={slot:"actions"},xe=["disabled"],et={key:0,indeterminate:"",slot:"icon"},se=le({__name:"EditRouteModal",props:{data:{type:Object},devices:{type:Array},networks:{type:Array}},setup(y){var j,B,P,z,Q,Z,G,H,K;const{handleSubmit:I}=Ce(),r=re({if_name:"",apply_to:"all",notes:"",target:"",is_enabled:!0}),c=D(v.INTERNET),R=Object.values(v).filter(n=>[v.IP,v.NET,v.REMOTE_PORT,v.INTERNET].includes(n)),{t:C}=ie(),m=y,{mutate:M,loading:E,onDone:O}=U({document:w` +import{d as le,I as re,h as D,g as ie,j as U,ac as w,cs as N,ct as ce,au as pe,k as _e,av as F,o as d,c as u,a as e,t as a,m as s,x as g,cv as A,O as h,P as b,y as x,z as ee,p as J,q as te,e as V,V as L,ao as ve,l as me,C as fe,cw as ge,cx as $e,Z as S,S as he,ap as ae,U as oe,w as ne,ad as ye,a3 as be}from"./index-R8dLcqG_.js";import{T as v,a as k,_ as ke,A as we}from"./question-mark-rounded-BC93NM4N.js";import{u as Ce,a as Te}from"./vee-validate.esm-vpr6zxQb.js";const Ne={slot:"headline"},Ie={slot:"content"},Ee={class:"row mb-3"},Fe={class:"col-md-3 col-form-label"},Ae={class:"col-md-9"},Ve=["value"],De={key:0,class:"input-group"},Re=["placeholder"],Me={class:"inner"},Oe={class:"help-block"},qe={value:""},Se=["value"],Ue={key:2,class:"invalid-feedback"},Je={class:"row mb-3"},Le={class:"col-md-3 col-form-label"},je={class:"col-md-9"},Be=["value"],Pe={class:"row mb-3"},ze={class:"col-md-3 col-form-label"},Qe={class:"col-md-9"},Ze={value:"all"},Ge=["value"],He=["value"],Ke={class:"row mb-3"},We={class:"col-md-3 col-form-label"},Xe={class:"col-md-9"},Ye={slot:"actions"},xe=["disabled"],et={key:0,indeterminate:"",slot:"icon"},se=le({__name:"EditRouteModal",props:{data:{type:Object},devices:{type:Array},networks:{type:Array}},setup(y){var j,B,P,z,Q,Z,G,H,K;const{handleSubmit:I}=Ce(),r=re({if_name:"",apply_to:"all",notes:"",target:"",is_enabled:!0}),c=D(v.INTERNET),R=Object.values(v).filter(n=>[v.IP,v.NET,v.REMOTE_PORT,v.INTERNET].includes(n)),{t:C}=ie(),m=y,{mutate:M,loading:E,onDone:O}=U({document:w` mutation createConfig($input: ConfigInput!) { createConfig(input: $input) { ...ConfigFragment diff --git a/app/src/main/resources/web/assets/RulesView-CqY_sCWF.js b/app/src/main/resources/web/assets/RulesView-y2r2SwLC.js similarity index 98% rename from app/src/main/resources/web/assets/RulesView-CqY_sCWF.js rename to app/src/main/resources/web/assets/RulesView-y2r2SwLC.js index 152875a7..a9174413 100644 --- a/app/src/main/resources/web/assets/RulesView-CqY_sCWF.js +++ b/app/src/main/resources/web/assets/RulesView-y2r2SwLC.js @@ -1,4 +1,4 @@ -import{d as ne,I as de,h as I,g as le,j as L,ac as k,cs as C,ct as ce,au as re,k as ue,av as F,o as c,c as r,a as e,t as a,m as d,x as m,cu as N,cv as O,O as b,P as w,y as X,z as Y,p as J,q as x,e as A,V as j,ao as pe,l as me,C as _e,cw as ve,cx as fe,Z as R,S as he,ap as ee,U as te,w as oe,ad as ge,a3 as $e}from"./index-BzaaAwnX.js";import{T as g,a as $,_ as be,A as ke}from"./question-mark-rounded-DNpslAE7.js";import{u as ye,a as we}from"./vee-validate.esm-DNjIRPsN.js";const Ce={slot:"headline"},Ve={slot:"content"},Te={class:"row"},De={class:"col-md-3 col-form-label"},Fe={class:"col-md-9 form-checks"},Ne={class:"form-check form-check-inline"},Ae={class:"form-check-label",for:"action-allow"},Ie={class:"form-check form-check-inline"},Me={class:"form-check-label",for:"action-block"},Se={class:"row mb-2"},Ue={for:"action",class:"col-md-3 col-form-label"},Ee={class:"col-md-9 form-checks"},qe={class:"form-check form-check-inline"},Oe={class:"form-check-label",for:"direction-inbound"},Re={class:"form-check form-check-inline"},Le={class:"form-check-label",for:"direction-outbound"},Je={class:"row mb-3"},je={class:"col-md-3 col-form-label"},Be={class:"col-md-9"},Qe=["value"],ze={key:0,class:"input-group"},Ge=["placeholder"],Pe={class:"inner"},Ze={class:"help-block"},He={value:""},Ke=["value"],We={key:2,class:"invalid-feedback"},Xe={class:"row mb-3"},Ye={class:"col-md-3 col-form-label"},xe={class:"col-md-9"},et={value:"all"},tt=["value"],ot=["value"],at={class:"row mb-3"},nt={class:"col-md-3 col-form-label"},lt={class:"col-md-9"},st={slot:"actions"},it=["disabled"],dt={key:0,indeterminate:"",slot:"icon"},ae=ne({__name:"EditRuleModal",props:{data:{type:Object},devices:{type:Array},networks:{type:Array}},setup(y){var B,Q,z,G,P,Z,H;const{handleSubmit:V}=ye(),s=de({action:"block",direction:"inbound",protocol:"all",apply_to:"all",notes:"",target:"",is_enabled:!0}),u=I(g.DNS),M=Object.values(g),{t:S}=le(),f=y,{mutate:U,loading:T,onDone:E}=L({document:k` +import{d as ne,I as de,h as I,g as le,j as L,ac as k,cs as C,ct as ce,au as re,k as ue,av as F,o as c,c as r,a as e,t as a,m as d,x as m,cu as N,cv as O,O as b,P as w,y as X,z as Y,p as J,q as x,e as A,V as j,ao as pe,l as me,C as _e,cw as ve,cx as fe,Z as R,S as he,ap as ee,U as te,w as oe,ad as ge,a3 as $e}from"./index-R8dLcqG_.js";import{T as g,a as $,_ as be,A as ke}from"./question-mark-rounded-BC93NM4N.js";import{u as ye,a as we}from"./vee-validate.esm-vpr6zxQb.js";const Ce={slot:"headline"},Ve={slot:"content"},Te={class:"row"},De={class:"col-md-3 col-form-label"},Fe={class:"col-md-9 form-checks"},Ne={class:"form-check form-check-inline"},Ae={class:"form-check-label",for:"action-allow"},Ie={class:"form-check form-check-inline"},Me={class:"form-check-label",for:"action-block"},Se={class:"row mb-2"},Ue={for:"action",class:"col-md-3 col-form-label"},Ee={class:"col-md-9 form-checks"},qe={class:"form-check form-check-inline"},Oe={class:"form-check-label",for:"direction-inbound"},Re={class:"form-check form-check-inline"},Le={class:"form-check-label",for:"direction-outbound"},Je={class:"row mb-3"},je={class:"col-md-3 col-form-label"},Be={class:"col-md-9"},Qe=["value"],ze={key:0,class:"input-group"},Ge=["placeholder"],Pe={class:"inner"},Ze={class:"help-block"},He={value:""},Ke=["value"],We={key:2,class:"invalid-feedback"},Xe={class:"row mb-3"},Ye={class:"col-md-3 col-form-label"},xe={class:"col-md-9"},et={value:"all"},tt=["value"],ot=["value"],at={class:"row mb-3"},nt={class:"col-md-3 col-form-label"},lt={class:"col-md-9"},st={slot:"actions"},it=["disabled"],dt={key:0,indeterminate:"",slot:"icon"},ae=ne({__name:"EditRuleModal",props:{data:{type:Object},devices:{type:Array},networks:{type:Array}},setup(y){var B,Q,z,G,P,Z,H;const{handleSubmit:V}=ye(),s=de({action:"block",direction:"inbound",protocol:"all",apply_to:"all",notes:"",target:"",is_enabled:!0}),u=I(g.DNS),M=Object.values(g),{t:S}=le(),f=y,{mutate:U,loading:T,onDone:E}=L({document:k` mutation createConfig($input: ConfigInput!) { createConfig(input: $input) { ...ConfigFragment diff --git a/app/src/main/resources/web/assets/ScreenMirrorView-D_ht7L_q.js b/app/src/main/resources/web/assets/ScreenMirrorView-DiWYaGkb.js similarity index 98% rename from app/src/main/resources/web/assets/ScreenMirrorView-D_ht7L_q.js rename to app/src/main/resources/web/assets/ScreenMirrorView-DiWYaGkb.js index ecb7dba8..2c45cc33 100644 --- a/app/src/main/resources/web/assets/ScreenMirrorView-D_ht7L_q.js +++ b/app/src/main/resources/web/assets/ScreenMirrorView-DiWYaGkb.js @@ -1 +1 @@ -import{o,c as n,a as e,d as P,g as j,h as b,l as W,C as A,bS as le,j as D,bT as ie,av as E,t as i,O as I,P as N,x as p,y as x,m as r,e as H,V as C,H as Y,L as re,M as ce,p as w,aL as ue,bU as de,Z as _e,bV as ve,bW as me,bX as pe,bY as he,S as fe,bZ as ge,F as be,G as $e,a1 as Q}from"./index-BzaaAwnX.js";import{_ as ye}from"./refresh-rounded-DnwgRawr.js";const qe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Te=e("path",{fill:"currentColor",d:"M6 18H4q-.425 0-.712-.288T3 17t.288-.712T4 16h3q.425 0 .713.288T8 17v3q0 .425-.288.713T7 21t-.712-.288T6 20zm12 0v2q0 .425-.288.713T17 21t-.712-.288T16 20v-3q0-.425.288-.712T17 16h3q.425 0 .713.288T21 17t-.288.713T20 18zM6 6V4q0-.425.288-.712T7 3t.713.288T8 4v3q0 .425-.288.713T7 8H4q-.425 0-.712-.288T3 7t.288-.712T4 6zm12 0h2q.425 0 .713.288T21 7t-.288.713T20 8h-3q-.425 0-.712-.288T16 7V4q0-.425.288-.712T17 3t.713.288T18 4z"},null,-1),Me=[Te];function Se($,d){return o(),n("svg",qe,[...Me])}const ke={name:"material-symbols-fullscreen-exit-rounded",render:Se},we={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ce=e("path",{fill:"currentColor",d:"M5 19h2q.425 0 .713.288T8 20t-.288.713T7 21H4q-.425 0-.712-.288T3 20v-3q0-.425.288-.712T4 16t.713.288T5 17zm14 0v-2q0-.425.288-.712T20 16t.713.288T21 17v3q0 .425-.288.713T20 21h-3q-.425 0-.712-.288T16 20t.288-.712T17 19zM5 5v2q0 .425-.288.713T4 8t-.712-.288T3 7V4q0-.425.288-.712T4 3h3q.425 0 .713.288T8 4t-.288.713T7 5zm14 0h-2q-.425 0-.712-.288T16 4t.288-.712T17 3h3q.425 0 .713.288T21 4v3q0 .425-.288.713T20 8t-.712-.288T19 7z"},null,-1),Ie=[Ce];function Le($,d){return o(),n("svg",we,[...Ie])}const Ve={name:"material-symbols-fullscreen-rounded",render:Le},ze={xmlns:"http://www.w3.org/2000/svg",viewBox:"176.31 -11.19 346.88 581.88"},Qe=e("path",{d:"M470.49 0H229.51a41.901 41.901 0 0 0-29.547 12.277 41.898 41.898 0 0 0-12.277 29.547v476.35a41.901 41.901 0 0 0 12.277 29.547 41.898 41.898 0 0 0 29.547 12.277h240.98a41.901 41.901 0 0 0 29.547-12.277 41.898 41.898 0 0 0 12.277-29.547V41.824a41.901 41.901 0 0 0-12.277-29.547A41.898 41.898 0 0 0 470.49 0zm33.25 518.18a33.334 33.334 0 0 1-9.766 23.484 33.335 33.335 0 0 1-23.484 9.766H229.51a33.334 33.334 0 0 1-23.484-9.766 33.335 33.335 0 0 1-9.765-23.484V41.83a33.333 33.333 0 0 1 9.828-23.371 33.32 33.32 0 0 1 23.422-9.703h240.98a33.334 33.334 0 0 1 23.484 9.765 33.335 33.335 0 0 1 9.765 23.484z"},null,-1),Ae=e("path",{d:"M317.62 46.812h64.75c2.418 0 4.375-1.957 4.375-4.375s-1.957-4.375-4.375-4.375h-64.75c-2.418 0-4.375 1.957-4.375 4.375s1.957 4.375 4.375 4.375zM364.7 192.5a16.8 16.8 0 0 0-14.7-8.75 16.8 16.8 0 0 0-14.698 8.75l-91 157.5a16.453 16.453 0 0 0 0 16.977 16.584 16.584 0 0 0 6.101 6.386 16.653 16.653 0 0 0 8.512 2.364h182.09a16.626 16.626 0 0 0 14.7-8.75 16.803 16.803 0 0 0 0-16.977zm83.562 170.36a8.224 8.224 0 0 1-7.262 4.2H258.91a8.229 8.229 0 0 1-7.176-4.2 8.753 8.753 0 0 1 0-8.75l91-157.5a8.748 8.748 0 0 1 7.262-4.113 8.757 8.757 0 0 1 7.262 4.199l91 157.5a8.75 8.75 0 0 1 0 8.84z"},null,-1),De=e("path",{d:"M350 221.55a4.288 4.288 0 0 0-4.29 4.285v66.238a4.375 4.375 0 0 0 8.75 0v-66.238a4.286 4.286 0 0 0-4.46-4.285zm0 91.26a4.289 4.289 0 0 0-4.29 4.29v17.061a4.375 4.375 0 0 0 8.75 0V317.1a4.286 4.286 0 0 0-4.46-4.29z"},null,-1),He=[Qe,Ae,De];function Be($,d){return o(),n("svg",ze,[...He])}const Fe={render:Be},Ge={slot:"headline"},Ue={slot:"content"},Ee={class:"form-row"},Ne=["data-value","label","selected"],Oe={class:"form-row"},Re={class:"form-label"},xe=["disabled"],Pe=["value"],je={slot:"headline"},We={class:"form-row"},Ye={class:"form-label"},Ze=["disabled"],Xe=["value"],Je={slot:"headline"},Ke={class:"form-row"},et={slot:"actions"},tt=["disabled"],st={key:0,indeterminate:"",slot:"icon"},ot=P({__name:"ChangeScreenMirrorQualityModal",setup($){const{t:d}=j(),v=b(720),c=b(60),_=b("quality_sd"),m=[{id:"quality_ld",data:{resolution:480,quality:50}},{id:"quality_sd",data:{resolution:720,quality:50}},{id:"quality_hd",data:{resolution:1080,quality:50}},{id:"custom"}],h=[10,20,30,40,50,60,70,80,90,100],T=[480,720,1080];W({handle:(a,u)=>{var s;u?A(d(u),"error"):a&&(v.value=a.screenMirrorQuality.resolution,c.value=a.screenMirrorQuality.quality,_.value=((s=m.find(g=>{var M,z;return((M=g.data)==null?void 0:M.resolution)===v.value&&((z=g.data)==null?void 0:z.quality)===c.value}))==null?void 0:s.id)||"custom")},document:le,appApi:!0});function k(a){return a===10?`10 (${d("low_quality")})`:a===60?`60 (${d("high_quality")})`:a===100?`100 (${d("best_quality")})`:a.toString()}function L(a){const{button:u}=a.detail,s=u.dataset.value;_.value=s;const g=m.find(M=>M.id===s);g&&g.data&&(v.value=g.data.resolution,c.value=g.data.quality)}const{mutate:f,loading:V,onDone:F}=D({document:ie,appApi:!0});F(()=>{E()});const G=()=>{f({resolution:v.value,quality:c.value})};return(a,u)=>(o(),n("md-dialog",null,[e("div",Ge,i(a.$t("change_quality")),1),e("div",Ue,[e("div",Ee,[e("md-outlined-segmented-button-set",{onSegmentedButtonSetSelection:L},[(o(),n(I,null,N(m,s=>e("md-outlined-segmented-button",{key:s.id,"data-value":s.id,label:a.$t(s.id),selected:_.value===s.id},null,8,Ne)),64))],32)]),e("div",Oe,[e("label",Re,i(a.$t("compress_quality")),1),p(e("md-outlined-select",{class:"flex-2","menu-positioning":"fixed","onUpdate:modelValue":u[0]||(u[0]=s=>c.value=s),disabled:_.value!=="custom"},[(o(),n(I,null,N(h,s=>e("md-select-option",{key:s,value:s},[e("div",je,i(k(s)),1)],8,Pe)),64))],8,xe),[[x,c.value,void 0,{number:!0}]])]),e("div",We,[e("label",Ye,i(a.$t("resolution")),1),p(e("md-outlined-select",{class:"flex-2","menu-positioning":"fixed","onUpdate:modelValue":u[1]||(u[1]=s=>v.value=s),disabled:_.value!=="custom"},[(o(),n(I,null,N(T,s=>e("md-select-option",{key:s,value:s},[e("div",Je,i(s)+"p",1)],8,Xe)),64))],8,Ze),[[x,v.value,void 0,{number:!0}]])]),e("div",Ke,i(a.$t("screen_mirror_quality_tips")),1)]),e("div",et,[e("md-outlined-button",{value:"cancel",onClick:u[2]||(u[2]=(...s)=>r(E)&&r(E)(...s))},i(a.$t("cancel")),1),e("md-filled-button",{value:"save",disabled:r(V),onClick:G,autofocus:""},[r(V)?(o(),n("md-circular-progress",st)):H("",!0),C(" "+i(a.$t("save")),1)],8,tt)])]))}}),nt=Y(ot,[["__scopeId","data-v-4f617088"]]),B=$=>(be("data-v-b208b784"),$=$(),$e(),$),at={class:"screen-mirror"},lt={class:"top-app-bar"},it={class:"title"},rt={class:"actions"},ct=B(()=>e("md-ripple",null,null,-1)),ut=["disabled"],dt=B(()=>e("md-ripple",null,null,-1)),_t=B(()=>e("md-ripple",null,null,-1)),vt={class:"content"},mt={key:0},pt=B(()=>e("md-circular-progress",{indeterminate:""},null,-1)),ht=[pt],ft={key:0,class:"request-permission"},gt={class:"tap-phone"},bt={class:"text"},$t={key:1,class:"request-permission-failed"},yt=P({__name:"ScreenMirrorView",setup($){let d;const{t:v}=j(),c=b(!1),_=b(0),m=b(!1),h=b(!1),T=b(!1),k=b(),L=async t=>{c.value=!0,g(t),m.value=!1,_.value=0,clearInterval(d)};let f=!1;const{mutate:V}=D({document:de,appApi:!0}),F=()=>{h.value=!h.value,h.value||O()},G=()=>{_e(nt)},a=()=>{V(),f=!0},u=t=>{t&&f&&(f=!1,clearInterval(d),U())},s=()=>{const t=k.value;if(!t)return;const l=new Date,S="screenshot-"+[l.getFullYear(),l.getMonth()+1,l.getDate(),l.getHours(),l.getMinutes(),l.getSeconds(),l.getMilliseconds()].join("")+".png";ve(t.toDataURL(),S)};function g(t){const l=k.value;if(!l||h.value&&!T.value)return;T.value=!1;const S=l.getContext("2d"),y=new Image;y.src=URL.createObjectURL(t),y.onload=function(){S&&(l.width=y.width,l.height=y.height,S.drawImage(y,0,0))}}re(()=>{Q.on("screen_mirroring",L),Q.on("app_socket_connection_changed",u)}),ce(()=>{Q.off("screen_mirroring",L),Q.off("app_socket_connection_changed",u)});const{mutate:M,loading:z,onDone:Z,onError:X}=D({document:me,appApi:!0}),{loading:J,refetch:O}=W({handle:(t,l)=>{l?A(v(l),"error"):t.screenMirrorState?(c.value=!0,T.value=!0):(c.value=!1,T.value=!1,U())},options:{fetchPolicy:"no-cache"},document:pe,appApi:!0}),K=()=>{document.getElementsByClassName("screen-mirror")[0].requestFullscreen({navigationUI:"show"})},U=()=>{m.value=!1,h.value=!1,M()},ee=()=>{document.exitFullscreen()};X(t=>{A(v(t.message)),m.value=!0}),Z(()=>{_.value=30,d=setInterval(()=>{_.value--,_.value<=0&&(m.value=!0,clearInterval(d))},1e3)});const{mutate:R,loading:te,onDone:se,onError:oe}=D({document:he,appApi:!0});return oe(t=>{A(v(t.message))}),se(()=>{m.value=!0,c.value=!1}),(t,l)=>{const S=ye,y=Ve,ne=ke,q=fe("tooltip");return o(),n("div",at,[e("div",lt,[e("div",it,i(t.$t("screen_mirror")),1),e("div",rt,[c.value?(o(),n(I,{key:0},[p((o(),n("button",{class:"btn-icon",onClick:l[0]||(l[0]=()=>r(O)())},[ct,w(S)])),[[q,t.$t("refresh")]]),p((o(),n("md-outlined-button",{onClick:G,class:"btn-sm"},[C(i(t.$t("mirror_quality")),1)])),[[q,t.$t("change_quality")]]),p((o(),n("md-outlined-button",{onClick:s,class:"btn-sm"},[C(i(t.$t("screenshot")),1)])),[[q,t.$t("screenshot")]]),p((o(),n("md-outlined-button",{onClick:F,class:"btn-sm"},[C(i(t.$t(h.value?"resume":"pause")),1)])),[[q,t.$t(h.value?"resume":"pause")]]),p((o(),n("md-outlined-button",{disabled:r(te),onClick:l[1]||(l[1]=(...ae)=>r(R)&&r(R)(...ae)),class:"btn-sm btn-stop"},[C(i(t.$t("stop_mirror")),1)],8,ut)),[[q,t.$t("stop_mirror")]]),p((o(),n("button",{class:"btn-icon btn-enter-fullscreen",onClick:K},[dt,w(y)])),[[q,t.$t("fullscreen")]]),p((o(),n("button",{class:"btn-icon btn-exit-fullscreen",onClick:ee},[_t,w(ne)])),[[q,t.$t("exit_fullscreen")]])],64)):r(f)?H("",!0):(o(),n("md-outlined-button",{key:1,class:"btn-sm",onClick:a},i(t.$t("relaunch_app")),1))])]),e("div",vt,[r(J)||r(z)||r(f)?(o(),n("div",mt,ht)):(o(),n(I,{key:1},[_.value>0&&!r(f)?(o(),n("div",ft,[e("div",gt,[w(r(ge))]),e("pre",bt,i(t.$t("screen_mirror_request_permission",{seconds:_.value})),1)])):H("",!0),m.value&&!c.value&&!r(f)?(o(),n("div",$t,[w(r(Fe)),e("p",null,i(t.$t("screen_mirror_request_permission_failed")),1),e("md-filled-button",{onClick:U},i(t.$t("try_again")),1)])):H("",!0),p(e("canvas",{ref_key:"canvasRef",ref:k,class:"canvas"},null,512),[[ue,c.value]])],64))])])}}}),Mt=Y(yt,[["__scopeId","data-v-b208b784"]]);export{Mt as default}; +import{o,c as n,a as e,d as P,g as j,h as b,l as W,C as A,bS as le,j as D,bT as ie,av as E,t as i,O as I,P as N,x as p,y as x,m as r,e as H,V as C,H as Y,L as re,M as ce,p as w,aL as ue,bU as de,Z as _e,bV as ve,bW as me,bX as pe,bY as he,S as fe,bZ as ge,F as be,G as $e,a1 as Q}from"./index-R8dLcqG_.js";import{_ as ye}from"./refresh-rounded-D8TYDVGT.js";const qe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Te=e("path",{fill:"currentColor",d:"M6 18H4q-.425 0-.712-.288T3 17t.288-.712T4 16h3q.425 0 .713.288T8 17v3q0 .425-.288.713T7 21t-.712-.288T6 20zm12 0v2q0 .425-.288.713T17 21t-.712-.288T16 20v-3q0-.425.288-.712T17 16h3q.425 0 .713.288T21 17t-.288.713T20 18zM6 6V4q0-.425.288-.712T7 3t.713.288T8 4v3q0 .425-.288.713T7 8H4q-.425 0-.712-.288T3 7t.288-.712T4 6zm12 0h2q.425 0 .713.288T21 7t-.288.713T20 8h-3q-.425 0-.712-.288T16 7V4q0-.425.288-.712T17 3t.713.288T18 4z"},null,-1),Me=[Te];function Se($,d){return o(),n("svg",qe,[...Me])}const ke={name:"material-symbols-fullscreen-exit-rounded",render:Se},we={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ce=e("path",{fill:"currentColor",d:"M5 19h2q.425 0 .713.288T8 20t-.288.713T7 21H4q-.425 0-.712-.288T3 20v-3q0-.425.288-.712T4 16t.713.288T5 17zm14 0v-2q0-.425.288-.712T20 16t.713.288T21 17v3q0 .425-.288.713T20 21h-3q-.425 0-.712-.288T16 20t.288-.712T17 19zM5 5v2q0 .425-.288.713T4 8t-.712-.288T3 7V4q0-.425.288-.712T4 3h3q.425 0 .713.288T8 4t-.288.713T7 5zm14 0h-2q-.425 0-.712-.288T16 4t.288-.712T17 3h3q.425 0 .713.288T21 4v3q0 .425-.288.713T20 8t-.712-.288T19 7z"},null,-1),Ie=[Ce];function Le($,d){return o(),n("svg",we,[...Ie])}const Ve={name:"material-symbols-fullscreen-rounded",render:Le},ze={xmlns:"http://www.w3.org/2000/svg",viewBox:"176.31 -11.19 346.88 581.88"},Qe=e("path",{d:"M470.49 0H229.51a41.901 41.901 0 0 0-29.547 12.277 41.898 41.898 0 0 0-12.277 29.547v476.35a41.901 41.901 0 0 0 12.277 29.547 41.898 41.898 0 0 0 29.547 12.277h240.98a41.901 41.901 0 0 0 29.547-12.277 41.898 41.898 0 0 0 12.277-29.547V41.824a41.901 41.901 0 0 0-12.277-29.547A41.898 41.898 0 0 0 470.49 0zm33.25 518.18a33.334 33.334 0 0 1-9.766 23.484 33.335 33.335 0 0 1-23.484 9.766H229.51a33.334 33.334 0 0 1-23.484-9.766 33.335 33.335 0 0 1-9.765-23.484V41.83a33.333 33.333 0 0 1 9.828-23.371 33.32 33.32 0 0 1 23.422-9.703h240.98a33.334 33.334 0 0 1 23.484 9.765 33.335 33.335 0 0 1 9.765 23.484z"},null,-1),Ae=e("path",{d:"M317.62 46.812h64.75c2.418 0 4.375-1.957 4.375-4.375s-1.957-4.375-4.375-4.375h-64.75c-2.418 0-4.375 1.957-4.375 4.375s1.957 4.375 4.375 4.375zM364.7 192.5a16.8 16.8 0 0 0-14.7-8.75 16.8 16.8 0 0 0-14.698 8.75l-91 157.5a16.453 16.453 0 0 0 0 16.977 16.584 16.584 0 0 0 6.101 6.386 16.653 16.653 0 0 0 8.512 2.364h182.09a16.626 16.626 0 0 0 14.7-8.75 16.803 16.803 0 0 0 0-16.977zm83.562 170.36a8.224 8.224 0 0 1-7.262 4.2H258.91a8.229 8.229 0 0 1-7.176-4.2 8.753 8.753 0 0 1 0-8.75l91-157.5a8.748 8.748 0 0 1 7.262-4.113 8.757 8.757 0 0 1 7.262 4.199l91 157.5a8.75 8.75 0 0 1 0 8.84z"},null,-1),De=e("path",{d:"M350 221.55a4.288 4.288 0 0 0-4.29 4.285v66.238a4.375 4.375 0 0 0 8.75 0v-66.238a4.286 4.286 0 0 0-4.46-4.285zm0 91.26a4.289 4.289 0 0 0-4.29 4.29v17.061a4.375 4.375 0 0 0 8.75 0V317.1a4.286 4.286 0 0 0-4.46-4.29z"},null,-1),He=[Qe,Ae,De];function Be($,d){return o(),n("svg",ze,[...He])}const Fe={render:Be},Ge={slot:"headline"},Ue={slot:"content"},Ee={class:"form-row"},Ne=["data-value","label","selected"],Oe={class:"form-row"},Re={class:"form-label"},xe=["disabled"],Pe=["value"],je={slot:"headline"},We={class:"form-row"},Ye={class:"form-label"},Ze=["disabled"],Xe=["value"],Je={slot:"headline"},Ke={class:"form-row"},et={slot:"actions"},tt=["disabled"],st={key:0,indeterminate:"",slot:"icon"},ot=P({__name:"ChangeScreenMirrorQualityModal",setup($){const{t:d}=j(),v=b(720),c=b(60),_=b("quality_sd"),m=[{id:"quality_ld",data:{resolution:480,quality:50}},{id:"quality_sd",data:{resolution:720,quality:50}},{id:"quality_hd",data:{resolution:1080,quality:50}},{id:"custom"}],h=[10,20,30,40,50,60,70,80,90,100],T=[480,720,1080];W({handle:(a,u)=>{var s;u?A(d(u),"error"):a&&(v.value=a.screenMirrorQuality.resolution,c.value=a.screenMirrorQuality.quality,_.value=((s=m.find(g=>{var M,z;return((M=g.data)==null?void 0:M.resolution)===v.value&&((z=g.data)==null?void 0:z.quality)===c.value}))==null?void 0:s.id)||"custom")},document:le,appApi:!0});function k(a){return a===10?`10 (${d("low_quality")})`:a===60?`60 (${d("high_quality")})`:a===100?`100 (${d("best_quality")})`:a.toString()}function L(a){const{button:u}=a.detail,s=u.dataset.value;_.value=s;const g=m.find(M=>M.id===s);g&&g.data&&(v.value=g.data.resolution,c.value=g.data.quality)}const{mutate:f,loading:V,onDone:F}=D({document:ie,appApi:!0});F(()=>{E()});const G=()=>{f({resolution:v.value,quality:c.value})};return(a,u)=>(o(),n("md-dialog",null,[e("div",Ge,i(a.$t("change_quality")),1),e("div",Ue,[e("div",Ee,[e("md-outlined-segmented-button-set",{onSegmentedButtonSetSelection:L},[(o(),n(I,null,N(m,s=>e("md-outlined-segmented-button",{key:s.id,"data-value":s.id,label:a.$t(s.id),selected:_.value===s.id},null,8,Ne)),64))],32)]),e("div",Oe,[e("label",Re,i(a.$t("compress_quality")),1),p(e("md-outlined-select",{class:"flex-2","menu-positioning":"fixed","onUpdate:modelValue":u[0]||(u[0]=s=>c.value=s),disabled:_.value!=="custom"},[(o(),n(I,null,N(h,s=>e("md-select-option",{key:s,value:s},[e("div",je,i(k(s)),1)],8,Pe)),64))],8,xe),[[x,c.value,void 0,{number:!0}]])]),e("div",We,[e("label",Ye,i(a.$t("resolution")),1),p(e("md-outlined-select",{class:"flex-2","menu-positioning":"fixed","onUpdate:modelValue":u[1]||(u[1]=s=>v.value=s),disabled:_.value!=="custom"},[(o(),n(I,null,N(T,s=>e("md-select-option",{key:s,value:s},[e("div",Je,i(s)+"p",1)],8,Xe)),64))],8,Ze),[[x,v.value,void 0,{number:!0}]])]),e("div",Ke,i(a.$t("screen_mirror_quality_tips")),1)]),e("div",et,[e("md-outlined-button",{value:"cancel",onClick:u[2]||(u[2]=(...s)=>r(E)&&r(E)(...s))},i(a.$t("cancel")),1),e("md-filled-button",{value:"save",disabled:r(V),onClick:G,autofocus:""},[r(V)?(o(),n("md-circular-progress",st)):H("",!0),C(" "+i(a.$t("save")),1)],8,tt)])]))}}),nt=Y(ot,[["__scopeId","data-v-4f617088"]]),B=$=>(be("data-v-b208b784"),$=$(),$e(),$),at={class:"screen-mirror"},lt={class:"top-app-bar"},it={class:"title"},rt={class:"actions"},ct=B(()=>e("md-ripple",null,null,-1)),ut=["disabled"],dt=B(()=>e("md-ripple",null,null,-1)),_t=B(()=>e("md-ripple",null,null,-1)),vt={class:"content"},mt={key:0},pt=B(()=>e("md-circular-progress",{indeterminate:""},null,-1)),ht=[pt],ft={key:0,class:"request-permission"},gt={class:"tap-phone"},bt={class:"text"},$t={key:1,class:"request-permission-failed"},yt=P({__name:"ScreenMirrorView",setup($){let d;const{t:v}=j(),c=b(!1),_=b(0),m=b(!1),h=b(!1),T=b(!1),k=b(),L=async t=>{c.value=!0,g(t),m.value=!1,_.value=0,clearInterval(d)};let f=!1;const{mutate:V}=D({document:de,appApi:!0}),F=()=>{h.value=!h.value,h.value||O()},G=()=>{_e(nt)},a=()=>{V(),f=!0},u=t=>{t&&f&&(f=!1,clearInterval(d),U())},s=()=>{const t=k.value;if(!t)return;const l=new Date,S="screenshot-"+[l.getFullYear(),l.getMonth()+1,l.getDate(),l.getHours(),l.getMinutes(),l.getSeconds(),l.getMilliseconds()].join("")+".png";ve(t.toDataURL(),S)};function g(t){const l=k.value;if(!l||h.value&&!T.value)return;T.value=!1;const S=l.getContext("2d"),y=new Image;y.src=URL.createObjectURL(t),y.onload=function(){S&&(l.width=y.width,l.height=y.height,S.drawImage(y,0,0))}}re(()=>{Q.on("screen_mirroring",L),Q.on("app_socket_connection_changed",u)}),ce(()=>{Q.off("screen_mirroring",L),Q.off("app_socket_connection_changed",u)});const{mutate:M,loading:z,onDone:Z,onError:X}=D({document:me,appApi:!0}),{loading:J,refetch:O}=W({handle:(t,l)=>{l?A(v(l),"error"):t.screenMirrorState?(c.value=!0,T.value=!0):(c.value=!1,T.value=!1,U())},options:{fetchPolicy:"no-cache"},document:pe,appApi:!0}),K=()=>{document.getElementsByClassName("screen-mirror")[0].requestFullscreen({navigationUI:"show"})},U=()=>{m.value=!1,h.value=!1,M()},ee=()=>{document.exitFullscreen()};X(t=>{A(v(t.message)),m.value=!0}),Z(()=>{_.value=30,d=setInterval(()=>{_.value--,_.value<=0&&(m.value=!0,clearInterval(d))},1e3)});const{mutate:R,loading:te,onDone:se,onError:oe}=D({document:he,appApi:!0});return oe(t=>{A(v(t.message))}),se(()=>{m.value=!0,c.value=!1}),(t,l)=>{const S=ye,y=Ve,ne=ke,q=fe("tooltip");return o(),n("div",at,[e("div",lt,[e("div",it,i(t.$t("screen_mirror")),1),e("div",rt,[c.value?(o(),n(I,{key:0},[p((o(),n("button",{class:"btn-icon",onClick:l[0]||(l[0]=()=>r(O)())},[ct,w(S)])),[[q,t.$t("refresh")]]),p((o(),n("md-outlined-button",{onClick:G,class:"btn-sm"},[C(i(t.$t("mirror_quality")),1)])),[[q,t.$t("change_quality")]]),p((o(),n("md-outlined-button",{onClick:s,class:"btn-sm"},[C(i(t.$t("screenshot")),1)])),[[q,t.$t("screenshot")]]),p((o(),n("md-outlined-button",{onClick:F,class:"btn-sm"},[C(i(t.$t(h.value?"resume":"pause")),1)])),[[q,t.$t(h.value?"resume":"pause")]]),p((o(),n("md-outlined-button",{disabled:r(te),onClick:l[1]||(l[1]=(...ae)=>r(R)&&r(R)(...ae)),class:"btn-sm btn-stop"},[C(i(t.$t("stop_mirror")),1)],8,ut)),[[q,t.$t("stop_mirror")]]),p((o(),n("button",{class:"btn-icon btn-enter-fullscreen",onClick:K},[dt,w(y)])),[[q,t.$t("fullscreen")]]),p((o(),n("button",{class:"btn-icon btn-exit-fullscreen",onClick:ee},[_t,w(ne)])),[[q,t.$t("exit_fullscreen")]])],64)):r(f)?H("",!0):(o(),n("md-outlined-button",{key:1,class:"btn-sm",onClick:a},i(t.$t("relaunch_app")),1))])]),e("div",vt,[r(J)||r(z)||r(f)?(o(),n("div",mt,ht)):(o(),n(I,{key:1},[_.value>0&&!r(f)?(o(),n("div",ft,[e("div",gt,[w(r(ge))]),e("pre",bt,i(t.$t("screen_mirror_request_permission",{seconds:_.value})),1)])):H("",!0),m.value&&!c.value&&!r(f)?(o(),n("div",$t,[w(r(Fe)),e("p",null,i(t.$t("screen_mirror_request_permission_failed")),1),e("md-filled-button",{onClick:U},i(t.$t("try_again")),1)])):H("",!0),p(e("canvas",{ref_key:"canvasRef",ref:k,class:"canvas"},null,512),[[ue,c.value]])],64))])])}}}),Mt=Y(yt,[["__scopeId","data-v-b208b784"]]);export{Mt as default}; diff --git a/app/src/main/resources/web/assets/SearchInput-DTMVECJE.js b/app/src/main/resources/web/assets/SearchInput-DhaE-3h8.js similarity index 97% rename from app/src/main/resources/web/assets/SearchInput-DTMVECJE.js rename to app/src/main/resources/web/assets/SearchInput-DhaE-3h8.js index 9d7ec428..66bbce74 100644 --- a/app/src/main/resources/web/assets/SearchInput-DTMVECJE.js +++ b/app/src/main/resources/web/assets/SearchInput-DhaE-3h8.js @@ -1 +1 @@ -import{d as w,o as l,c as o,O as d,V as C,t as u,a as i,w as k,N as Z,u as ee,I as te,aH as b,h as le,S as oe,e as c,p,P as m,x as I,y as ne,A as se,bO as q,f as ie,aU as re,c3 as de,a2 as ae,F as ce,G as ue,H as _e}from"./index-BzaaAwnX.js";import{_ as he}from"./search-rounded-Btuwf-IQ.js";import{_ as me}from"./rss-feed-rounded-9FbiHzkN.js";import{u as fe}from"./search-DwB6FdxH.js";const rt=w({__name:"AllCheckedAlert",props:{limit:{type:Number,required:!0},total:{type:Number,required:!0},allCheckedAlertVisible:{type:Boolean,required:!0},realAllChecked:{type:Boolean,required:!0},selectRealAll:{type:Function},clearSelection:{type:Function}},setup(r){return(_,f)=>(l(),o("div",{class:Z(["alert-info alert-all-checked",{show:r.allCheckedAlertVisible||r.realAllChecked}])},[r.allCheckedAlertVisible?(l(),o(d,{key:0},[C(u(_.$t("all_items_on_this_page_are_selected",{count:r.limit}))+" ",1),i("a",{href:"#",onClick:f[0]||(f[0]=k((...y)=>r.selectRealAll&&r.selectRealAll(...y),["prevent"]))},u(_.$t("select_all_items",{count:r.total})),1)],64)):(l(),o(d,{key:1},[C(u(_.$t("all_items_are_selected",{count:r.total}))+" ",1),i("a",{href:"#",onClick:f[1]||(f[1]=k((...y)=>r.clearSelection&&r.clearSelection(...y),["prevent"]))},u(_.$t("clear_selection")),1)],64))],2))}}),pe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ye=i("path",{fill:"currentColor",d:"M7.425 9.475L11.15 3.4q.15-.25.375-.363T12 2.925t.475.113t.375.362l3.725 6.075q.15.25.15.525t-.125.5t-.35.363t-.525.137h-7.45q-.3 0-.525-.137T7.4 10.5t-.125-.5t.15-.525M17.5 22q-1.875 0-3.187-1.312T13 17.5t1.313-3.187T17.5 13t3.188 1.313T22 17.5t-1.312 3.188T17.5 22M3 20.5v-6q0-.425.288-.712T4 13.5h6q.425 0 .713.288T11 14.5v6q0 .425-.288.713T10 21.5H4q-.425 0-.712-.288T3 20.5m14.5-.5q1.05 0 1.775-.725T20 17.5t-.725-1.775T17.5 15t-1.775.725T15 17.5t.725 1.775T17.5 20M5 19.5h4v-4H5zM10.05 9h3.9L12 5.85zm7.45 8.5"},null,-1),ve=[ye];function be(r,_){return l(),o("svg",pe,[...ve])}const ke={name:"material-symbols-category-outline-rounded",render:be},Te={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ge=i("path",{fill:"currentColor",d:"M9 16.5q-1.05 0-1.775-.725T6.5 14t.725-1.775T9 11.5t1.775.725T11.5 14t-.725 1.775T9 16.5M5 22q-.825 0-1.412-.587T3 20V6q0-.825.588-1.412T5 4h1V3q0-.425.288-.712T7 2t.713.288T8 3v1h8V3q0-.425.288-.712T17 2t.713.288T18 3v1h1q.825 0 1.413.588T21 6v14q0 .825-.587 1.413T19 22zm0-2h14V10H5zM5 8h14V6H5zm0 0V6z"},null,-1),$e=[ge];function Ce(r,_){return l(),o("svg",Te,[...$e])}const Ie={name:"material-symbols-today-outline-rounded",render:Ce},qe=r=>(ce("data-v-20647efc"),r=r(),ue(),r),we={key:0},Se={key:"filter-text"},Ae=["label"],Ve={key:"filter-today"},Be=["label"],Me={key:"filter-trash"},Re=["label"],Fe=["label"],ze=["label"],Ne=["label"],He=["label","onRemove"],xe=qe(()=>i("md-ripple",null,null,-1)),De=["open"],Ue={class:"filters"},Le={class:"form-row"},Oe=["label"],Pe={key:0},Ke=["label","selected"],je={key:1},Ee=["label","selected"],Ge={class:"form-label"},Qe=["label","selected","onClick"],Je={class:"form-label"},We=["label","selected","onClick"],Xe={class:"form-label"},Ye=["label","selected","onClick"],Ze={class:"form-label"},et=["label","selected","onClick"],tt={class:"buttons"},lt=w({__name:"SearchInput",props:{filter:{type:Object,required:!0},getUrl:{type:Function,required:!0},tags:{type:Array,default:()=>[]},feeds:{type:Array,default:()=>[]},buckets:{type:Array,default:()=>[]},types:{type:Array,default:()=>[]},showChips:{type:Boolean,default:!0},showToday:{type:Boolean,default:!1},showTrash:{type:Boolean,default:!1}},setup(r,{expose:_}){const{copyFilter:f,buildQ:y}=fe(),S=ee(),s=te({tagIds:[]}),n=r,A=b(()=>(n.tags??[]).filter(t=>{var a;return(a=n.filter.tagIds)==null?void 0:a.includes(t.id)})),V=b(()=>(n.feeds??[]).filter(t=>n.filter.feedId===t.id)),B=b(()=>(n.buckets??[]).filter(t=>n.filter.bucketId===t.id)),M=b(()=>(n.types??[]).filter(t=>n.filter.type===t.id)),T=le(!1);function R(t){s.tagIds.includes(t.id)?q(s.tagIds,a=>a===t.id):s.tagIds.push(t.id)}function F(t){s.feedId===t.id?s.feedId=void 0:s.feedId=t.id}function z(t){s.bucketId===t.id?s.bucketId=void 0:s.bucketId=t.id}function N(t){s.type===t.id?s.type=void 0:s.type=t.id}function $(){f(s,n.filter),h(),g()}function h(){ie(S,n.getUrl(y(n.filter)))}function H(){n.filter.feedId=void 0,h()}function x(){n.filter.type=void 0,h()}function D(){n.filter.bucketId=void 0,h()}function U(t){q(n.filter.tagIds??[],a=>a===t.id),h()}function L(){n.filter.today=void 0,h()}function O(){n.filter.trash=!1,h()}function P(){n.filter.text=void 0,h()}function K(){T.value=!0,f(n.filter,s)}function g(){T.value=!1}return _({dismiss:g}),(t,a)=>{const j=Ie,E=re,G=de,Q=me,J=ke,W=ae,X=he,Y=oe("tooltip");return l(),o(d,null,[r.showChips?(l(),o("md-chip-set",we,[n.filter.text?(l(),o("div",Se,[i("md-input-chip",{label:n.filter.text,"remove-only":"",onRemove:P},null,40,Ae)])):c("",!0),n.filter.today?(l(),o("div",Ve,[i("md-input-chip",{label:t.$t("today"),"remove-only":"",onRemove:L},[p(j,{slot:"icon"})],40,Be)])):c("",!0),n.filter.trash?(l(),o("div",Me,[i("md-input-chip",{label:t.$t("trash"),"remove-only":"",onRemove:O},[p(E,{slot:"icon"})],40,Re)])):c("",!0),(l(!0),o(d,null,m(B.value,e=>(l(),o("md-input-chip",{key:e.id,label:e.name,"remove-only":"",onRemove:D},[p(G,{slot:"icon"})],40,Fe))),128)),(l(!0),o(d,null,m(V.value,e=>(l(),o("md-input-chip",{key:e.id,label:e.name,"remove-only":"",onRemove:H},[p(Q,{slot:"icon"})],40,ze))),128)),(l(!0),o(d,null,m(M.value,e=>(l(),o("md-input-chip",{key:e.id,label:e.name,"remove-only":"",onRemove:x},[p(J,{slot:"icon"})],40,Ne))),128)),(l(!0),o(d,null,m(A.value,e=>(l(),o("md-input-chip",{key:e.id,label:e.name,"remove-only":"",onRemove:v=>U(e)},[p(W,{slot:"icon"})],40,He))),128))])):c("",!0),I((l(),o("button",{id:"btn-search",class:"btn-icon",onClick:k(K,["prevent"])},[xe,p(X)])),[[Y,t.$t("search")]]),i("md-menu",{positioning:"popover",anchor:"btn-search","menu-corner":"start-end","anchor-corner":"end-end","stay-open-on-focusout":"",quick:"",open:T.value,onClosed:g},[i("div",Ue,[i("div",Le,[I(i("md-outlined-text-field",{label:t.$t("keywords"),"onUpdate:modelValue":a[0]||(a[0]=e=>s.text=e),onKeyup:se($,["enter"])},null,40,Oe),[[ne,s.text]])]),n.showToday?(l(),o("md-chip-set",Pe,[i("md-filter-chip",{key:"chip-today",label:t.$t("today"),selected:s.today,onClick:a[1]||(a[1]=e=>s.today=!s.today)},null,8,Ke)])):c("",!0),n.showTrash?(l(),o("md-chip-set",je,[i("md-filter-chip",{key:"chip-today",label:t.$t("trash"),selected:s.trash,onClick:a[2]||(a[2]=e=>s.trash=!s.trash)},null,8,Ee)])):c("",!0),n.tags.length>0?(l(),o(d,{key:2},[i("label",Ge,u(t.$t("tags")),1),i("md-chip-set",null,[(l(!0),o(d,null,m(r.tags,e=>(l(),o("md-filter-chip",{key:e.id,label:e.name,selected:s.tagIds.includes(e.id),onClick:v=>R(e)},null,8,Qe))),128))])],64)):c("",!0),n.feeds.length>0?(l(),o(d,{key:3},[i("label",Je,u(t.$t("page_title.feeds")),1),i("md-chip-set",null,[(l(!0),o(d,null,m(r.feeds,e=>(l(),o("md-filter-chip",{key:e.id,label:e.name,selected:s.feedId===e.id,onClick:v=>F(e)},null,8,We))),128))])],64)):c("",!0),n.buckets.length>0?(l(),o(d,{key:4},[i("label",Xe,u(t.$t("folders")),1),i("md-chip-set",null,[(l(!0),o(d,null,m(r.buckets,e=>(l(),o("md-filter-chip",{key:e.id,label:e.name,selected:s.bucketId===e.id,onClick:v=>z(e)},null,8,Ye))),128))])],64)):c("",!0),n.types.length>0?(l(),o(d,{key:5},[i("label",Ze,u(t.$t("types")),1),i("md-chip-set",null,[(l(!0),o(d,null,m(r.types,e=>(l(),o("md-filter-chip",{key:e.id,label:e.name,selected:s.type===e.id,onClick:v=>N(e)},null,8,et))),128))])],64)):c("",!0),i("div",tt,[i("md-filled-button",{onClick:k($,["stop"])},u(t.$t("search")),1)])])],40,De)],64)}}}),dt=_e(lt,[["__scopeId","data-v-20647efc"]]);export{dt as _,rt as a}; +import{d as w,o as l,c as o,O as d,V as C,t as u,a as i,w as k,N as Z,u as ee,I as te,aH as b,h as le,S as oe,e as c,p,P as m,x as I,y as ne,A as se,bO as q,f as ie,aU as re,c3 as de,a2 as ae,F as ce,G as ue,H as _e}from"./index-R8dLcqG_.js";import{_ as he}from"./search-rounded-CULEMJ2O.js";import{_ as me}from"./rss-feed-rounded-BCiGdgJ5.js";import{u as fe}from"./search-ByVbj6Ls.js";const rt=w({__name:"AllCheckedAlert",props:{limit:{type:Number,required:!0},total:{type:Number,required:!0},allCheckedAlertVisible:{type:Boolean,required:!0},realAllChecked:{type:Boolean,required:!0},selectRealAll:{type:Function},clearSelection:{type:Function}},setup(r){return(_,f)=>(l(),o("div",{class:Z(["alert-info alert-all-checked",{show:r.allCheckedAlertVisible||r.realAllChecked}])},[r.allCheckedAlertVisible?(l(),o(d,{key:0},[C(u(_.$t("all_items_on_this_page_are_selected",{count:r.limit}))+" ",1),i("a",{href:"#",onClick:f[0]||(f[0]=k((...y)=>r.selectRealAll&&r.selectRealAll(...y),["prevent"]))},u(_.$t("select_all_items",{count:r.total})),1)],64)):(l(),o(d,{key:1},[C(u(_.$t("all_items_are_selected",{count:r.total}))+" ",1),i("a",{href:"#",onClick:f[1]||(f[1]=k((...y)=>r.clearSelection&&r.clearSelection(...y),["prevent"]))},u(_.$t("clear_selection")),1)],64))],2))}}),pe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ye=i("path",{fill:"currentColor",d:"M7.425 9.475L11.15 3.4q.15-.25.375-.363T12 2.925t.475.113t.375.362l3.725 6.075q.15.25.15.525t-.125.5t-.35.363t-.525.137h-7.45q-.3 0-.525-.137T7.4 10.5t-.125-.5t.15-.525M17.5 22q-1.875 0-3.187-1.312T13 17.5t1.313-3.187T17.5 13t3.188 1.313T22 17.5t-1.312 3.188T17.5 22M3 20.5v-6q0-.425.288-.712T4 13.5h6q.425 0 .713.288T11 14.5v6q0 .425-.288.713T10 21.5H4q-.425 0-.712-.288T3 20.5m14.5-.5q1.05 0 1.775-.725T20 17.5t-.725-1.775T17.5 15t-1.775.725T15 17.5t.725 1.775T17.5 20M5 19.5h4v-4H5zM10.05 9h3.9L12 5.85zm7.45 8.5"},null,-1),ve=[ye];function be(r,_){return l(),o("svg",pe,[...ve])}const ke={name:"material-symbols-category-outline-rounded",render:be},Te={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ge=i("path",{fill:"currentColor",d:"M9 16.5q-1.05 0-1.775-.725T6.5 14t.725-1.775T9 11.5t1.775.725T11.5 14t-.725 1.775T9 16.5M5 22q-.825 0-1.412-.587T3 20V6q0-.825.588-1.412T5 4h1V3q0-.425.288-.712T7 2t.713.288T8 3v1h8V3q0-.425.288-.712T17 2t.713.288T18 3v1h1q.825 0 1.413.588T21 6v14q0 .825-.587 1.413T19 22zm0-2h14V10H5zM5 8h14V6H5zm0 0V6z"},null,-1),$e=[ge];function Ce(r,_){return l(),o("svg",Te,[...$e])}const Ie={name:"material-symbols-today-outline-rounded",render:Ce},qe=r=>(ce("data-v-20647efc"),r=r(),ue(),r),we={key:0},Se={key:"filter-text"},Ae=["label"],Ve={key:"filter-today"},Be=["label"],Me={key:"filter-trash"},Re=["label"],Fe=["label"],ze=["label"],Ne=["label"],He=["label","onRemove"],xe=qe(()=>i("md-ripple",null,null,-1)),De=["open"],Ue={class:"filters"},Le={class:"form-row"},Oe=["label"],Pe={key:0},Ke=["label","selected"],je={key:1},Ee=["label","selected"],Ge={class:"form-label"},Qe=["label","selected","onClick"],Je={class:"form-label"},We=["label","selected","onClick"],Xe={class:"form-label"},Ye=["label","selected","onClick"],Ze={class:"form-label"},et=["label","selected","onClick"],tt={class:"buttons"},lt=w({__name:"SearchInput",props:{filter:{type:Object,required:!0},getUrl:{type:Function,required:!0},tags:{type:Array,default:()=>[]},feeds:{type:Array,default:()=>[]},buckets:{type:Array,default:()=>[]},types:{type:Array,default:()=>[]},showChips:{type:Boolean,default:!0},showToday:{type:Boolean,default:!1},showTrash:{type:Boolean,default:!1}},setup(r,{expose:_}){const{copyFilter:f,buildQ:y}=fe(),S=ee(),s=te({tagIds:[]}),n=r,A=b(()=>(n.tags??[]).filter(t=>{var a;return(a=n.filter.tagIds)==null?void 0:a.includes(t.id)})),V=b(()=>(n.feeds??[]).filter(t=>n.filter.feedId===t.id)),B=b(()=>(n.buckets??[]).filter(t=>n.filter.bucketId===t.id)),M=b(()=>(n.types??[]).filter(t=>n.filter.type===t.id)),T=le(!1);function R(t){s.tagIds.includes(t.id)?q(s.tagIds,a=>a===t.id):s.tagIds.push(t.id)}function F(t){s.feedId===t.id?s.feedId=void 0:s.feedId=t.id}function z(t){s.bucketId===t.id?s.bucketId=void 0:s.bucketId=t.id}function N(t){s.type===t.id?s.type=void 0:s.type=t.id}function $(){f(s,n.filter),h(),g()}function h(){ie(S,n.getUrl(y(n.filter)))}function H(){n.filter.feedId=void 0,h()}function x(){n.filter.type=void 0,h()}function D(){n.filter.bucketId=void 0,h()}function U(t){q(n.filter.tagIds??[],a=>a===t.id),h()}function L(){n.filter.today=void 0,h()}function O(){n.filter.trash=!1,h()}function P(){n.filter.text=void 0,h()}function K(){T.value=!0,f(n.filter,s)}function g(){T.value=!1}return _({dismiss:g}),(t,a)=>{const j=Ie,E=re,G=de,Q=me,J=ke,W=ae,X=he,Y=oe("tooltip");return l(),o(d,null,[r.showChips?(l(),o("md-chip-set",we,[n.filter.text?(l(),o("div",Se,[i("md-input-chip",{label:n.filter.text,"remove-only":"",onRemove:P},null,40,Ae)])):c("",!0),n.filter.today?(l(),o("div",Ve,[i("md-input-chip",{label:t.$t("today"),"remove-only":"",onRemove:L},[p(j,{slot:"icon"})],40,Be)])):c("",!0),n.filter.trash?(l(),o("div",Me,[i("md-input-chip",{label:t.$t("trash"),"remove-only":"",onRemove:O},[p(E,{slot:"icon"})],40,Re)])):c("",!0),(l(!0),o(d,null,m(B.value,e=>(l(),o("md-input-chip",{key:e.id,label:e.name,"remove-only":"",onRemove:D},[p(G,{slot:"icon"})],40,Fe))),128)),(l(!0),o(d,null,m(V.value,e=>(l(),o("md-input-chip",{key:e.id,label:e.name,"remove-only":"",onRemove:H},[p(Q,{slot:"icon"})],40,ze))),128)),(l(!0),o(d,null,m(M.value,e=>(l(),o("md-input-chip",{key:e.id,label:e.name,"remove-only":"",onRemove:x},[p(J,{slot:"icon"})],40,Ne))),128)),(l(!0),o(d,null,m(A.value,e=>(l(),o("md-input-chip",{key:e.id,label:e.name,"remove-only":"",onRemove:v=>U(e)},[p(W,{slot:"icon"})],40,He))),128))])):c("",!0),I((l(),o("button",{id:"btn-search",class:"btn-icon",onClick:k(K,["prevent"])},[xe,p(X)])),[[Y,t.$t("search")]]),i("md-menu",{positioning:"popover",anchor:"btn-search","menu-corner":"start-end","anchor-corner":"end-end","stay-open-on-focusout":"",quick:"",open:T.value,onClosed:g},[i("div",Ue,[i("div",Le,[I(i("md-outlined-text-field",{label:t.$t("keywords"),"onUpdate:modelValue":a[0]||(a[0]=e=>s.text=e),onKeyup:se($,["enter"])},null,40,Oe),[[ne,s.text]])]),n.showToday?(l(),o("md-chip-set",Pe,[i("md-filter-chip",{key:"chip-today",label:t.$t("today"),selected:s.today,onClick:a[1]||(a[1]=e=>s.today=!s.today)},null,8,Ke)])):c("",!0),n.showTrash?(l(),o("md-chip-set",je,[i("md-filter-chip",{key:"chip-today",label:t.$t("trash"),selected:s.trash,onClick:a[2]||(a[2]=e=>s.trash=!s.trash)},null,8,Ee)])):c("",!0),n.tags.length>0?(l(),o(d,{key:2},[i("label",Ge,u(t.$t("tags")),1),i("md-chip-set",null,[(l(!0),o(d,null,m(r.tags,e=>(l(),o("md-filter-chip",{key:e.id,label:e.name,selected:s.tagIds.includes(e.id),onClick:v=>R(e)},null,8,Qe))),128))])],64)):c("",!0),n.feeds.length>0?(l(),o(d,{key:3},[i("label",Je,u(t.$t("page_title.feeds")),1),i("md-chip-set",null,[(l(!0),o(d,null,m(r.feeds,e=>(l(),o("md-filter-chip",{key:e.id,label:e.name,selected:s.feedId===e.id,onClick:v=>F(e)},null,8,We))),128))])],64)):c("",!0),n.buckets.length>0?(l(),o(d,{key:4},[i("label",Xe,u(t.$t("folders")),1),i("md-chip-set",null,[(l(!0),o(d,null,m(r.buckets,e=>(l(),o("md-filter-chip",{key:e.id,label:e.name,selected:s.bucketId===e.id,onClick:v=>z(e)},null,8,Ye))),128))])],64)):c("",!0),n.types.length>0?(l(),o(d,{key:5},[i("label",Ze,u(t.$t("types")),1),i("md-chip-set",null,[(l(!0),o(d,null,m(r.types,e=>(l(),o("md-filter-chip",{key:e.id,label:e.name,selected:s.type===e.id,onClick:v=>N(e)},null,8,et))),128))])],64)):c("",!0),i("div",tt,[i("md-filled-button",{onClick:k($,["stop"])},u(t.$t("search")),1)])])],40,De)],64)}}}),dt=_e(lt,[["__scopeId","data-v-20647efc"]]);export{dt as _,rt as a}; diff --git a/app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-CUu0usUl.js b/app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-DySu9lzm.js similarity index 93% rename from app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-CUu0usUl.js rename to app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-DySu9lzm.js index be683c8f..f10caa6d 100644 --- a/app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-CUu0usUl.js +++ b/app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-DySu9lzm.js @@ -1 +1 @@ -import{_ as P}from"./more-vert-BRJfC0iG.js";import{o as s,c as u,a as n,d as j,g as z,u as F,h as m,l as x,C as O,b9 as U,af as Z,a1 as r,ag as J,S as K,p as v,t as l,x as C,v as q,q as M,w as g,O as w,P as R,N as W,Z as h,j as S,ci as X,cj as Y,ad as ee,ck as te,a7 as ne,f as ae,cl as oe,a8 as se,a2 as ie,aP as le}from"./index-BzaaAwnX.js";import{E as V}from"./EditValueModal-Ws2hdG3a.js";const ce={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},de=n("path",{fill:"currentColor",d:"M11 13H6q-.425 0-.712-.288T5 12t.288-.712T6 11h5V6q0-.425.288-.712T12 5t.713.288T13 6v5h5q.425 0 .713.288T19 12t-.288.713T18 13h-5v5q0 .425-.288.713T12 19t-.712-.288T11 18z"},null,-1),re=[de];function ue(p,o){return s(),u("svg",ce,[...re])}const pe={name:"material-symbols-add-rounded",render:ue},_e={class:"top-app-bar"},me={class:"btn-icon no-click"},ve={class:"title"},ge={class:"actions"},he={class:"nav"},fe=["onClick"],ye={class:"title"},Te={class:"count"},$e=["anchor","open"],be={slot:"headline"},ke={slot:"headline"},we=j({__name:"TagFilter",props:{type:{type:String,required:!0},selected:{type:String,required:!0}},setup(p){const o=p,{t:i}=z(),B=F(),f=m([]),_=m(!1),c=m(),{refetch:d}=x({handle:(e,t)=>{t?O(i(t),"error"):e&&(f.value=e.tags)},document:U,variables:{type:o.type},appApi:!0});function L(e){c.value=e,_.value=!0}function Q(e){h(V,{title:i("rename"),placeholder:i("name"),value:e.name,mutation:()=>S({document:X,appApi:!0}),getVariables:t=>({id:e.id,name:t}),done:()=>{d()}})}function A(e){h(ee,{id:e.id,name:e.name,gql:Y,appApi:!0,typeName:"Tag"})}function D(){h(V,{title:i("add_tag"),placeholder:i("name"),mutation:()=>S({document:te,options:{update:()=>{d()}},appApi:!0}),getVariables:e=>({type:o.type,name:e})})}function G(e){const t=ne([{name:"tag_id",op:"",value:e.id}]);ae(B,`/${oe[o.type]}?q=${se(t)}`)}const y=e=>{e===o.type&&d()},T=e=>{e.type===o.type&&d()};return Z(()=>{r.on("refetch_tags",y),r.on("media_items_actioned",T)}),J(()=>{r.off("refetch_tags",y),r.off("media_items_actioned",T)}),(e,t)=>{var k;const N=ie,E=pe,$=le,H=P,b=K("tooltip");return s(),u(w,null,[n("div",_e,[n("div",me,[v(N)]),n("div",ve,l(e.$t("tags")),1),n("div",ge,[C((s(),q($,{onClick:g(D,["prevent"])},{icon:M(()=>[v(E)]),_:1})),[[b,e.$t("add_tag")]])])]),n("ul",he,[(s(!0),u(w,null,R(f.value,a=>(s(),u("li",{onClick:g(I=>G(a),["prevent"]),key:a.id,class:W({active:a.id===p.selected})},[n("span",ye,l(a.name),1),C((s(),q($,{id:"tag-"+a.id,class:"sm",onClick:g(I=>L(a),["prevent","stop"])},{icon:M(()=>[v(H)]),_:2},1032,["id","onClick"])),[[b,e.$t("actions")]]),n("span",Te,l(a.count.toLocaleString()),1)],10,fe))),128))]),n("md-menu",{positioning:"popover",anchor:"tag-"+((k=c.value)==null?void 0:k.id),"stay-open-on-focusout":"",quick:"",open:_.value,onClosed:t[2]||(t[2]=a=>_.value=!1)},[n("md-menu-item",{onClick:t[0]||(t[0]=a=>Q(c.value))},[n("div",be,l(e.$t("rename")),1)]),n("md-menu-item",{onClick:t[1]||(t[1]=a=>A(c.value))},[n("div",ke,l(e.$t("delete")),1)])],40,$e)],64)}}});export{we as _,pe as a}; +import{_ as P}from"./more-vert-zjmMMiPD.js";import{o as s,c as u,a as n,d as j,g as z,u as F,h as m,l as x,C as O,b9 as U,af as Z,a1 as r,ag as J,S as K,p as v,t as l,x as C,v as q,q as M,w as g,O as w,P as R,N as W,Z as h,j as S,ci as X,cj as Y,ad as ee,ck as te,a7 as ne,f as ae,cl as oe,a8 as se,a2 as ie,aP as le}from"./index-R8dLcqG_.js";import{E as V}from"./EditValueModal-O1aAFYgx.js";const ce={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},de=n("path",{fill:"currentColor",d:"M11 13H6q-.425 0-.712-.288T5 12t.288-.712T6 11h5V6q0-.425.288-.712T12 5t.713.288T13 6v5h5q.425 0 .713.288T19 12t-.288.713T18 13h-5v5q0 .425-.288.713T12 19t-.712-.288T11 18z"},null,-1),re=[de];function ue(p,o){return s(),u("svg",ce,[...re])}const pe={name:"material-symbols-add-rounded",render:ue},_e={class:"top-app-bar"},me={class:"btn-icon no-click"},ve={class:"title"},ge={class:"actions"},he={class:"nav"},fe=["onClick"],ye={class:"title"},Te={class:"count"},$e=["anchor","open"],be={slot:"headline"},ke={slot:"headline"},we=j({__name:"TagFilter",props:{type:{type:String,required:!0},selected:{type:String,required:!0}},setup(p){const o=p,{t:i}=z(),B=F(),f=m([]),_=m(!1),c=m(),{refetch:d}=x({handle:(e,t)=>{t?O(i(t),"error"):e&&(f.value=e.tags)},document:U,variables:{type:o.type},appApi:!0});function L(e){c.value=e,_.value=!0}function Q(e){h(V,{title:i("rename"),placeholder:i("name"),value:e.name,mutation:()=>S({document:X,appApi:!0}),getVariables:t=>({id:e.id,name:t}),done:()=>{d()}})}function A(e){h(ee,{id:e.id,name:e.name,gql:Y,appApi:!0,typeName:"Tag"})}function D(){h(V,{title:i("add_tag"),placeholder:i("name"),mutation:()=>S({document:te,options:{update:()=>{d()}},appApi:!0}),getVariables:e=>({type:o.type,name:e})})}function G(e){const t=ne([{name:"tag_id",op:"",value:e.id}]);ae(B,`/${oe[o.type]}?q=${se(t)}`)}const y=e=>{e===o.type&&d()},T=e=>{e.type===o.type&&d()};return Z(()=>{r.on("refetch_tags",y),r.on("media_items_actioned",T)}),J(()=>{r.off("refetch_tags",y),r.off("media_items_actioned",T)}),(e,t)=>{var k;const N=ie,E=pe,$=le,H=P,b=K("tooltip");return s(),u(w,null,[n("div",_e,[n("div",me,[v(N)]),n("div",ve,l(e.$t("tags")),1),n("div",ge,[C((s(),q($,{onClick:g(D,["prevent"])},{icon:M(()=>[v(E)]),_:1})),[[b,e.$t("add_tag")]])])]),n("ul",he,[(s(!0),u(w,null,R(f.value,a=>(s(),u("li",{onClick:g(I=>G(a),["prevent"]),key:a.id,class:W({active:a.id===p.selected})},[n("span",ye,l(a.name),1),C((s(),q($,{id:"tag-"+a.id,class:"sm",onClick:g(I=>L(a),["prevent","stop"])},{icon:M(()=>[v(H)]),_:2},1032,["id","onClick"])),[[b,e.$t("actions")]]),n("span",Te,l(a.count.toLocaleString()),1)],10,fe))),128))]),n("md-menu",{positioning:"popover",anchor:"tag-"+((k=c.value)==null?void 0:k.id),"stay-open-on-focusout":"",quick:"",open:_.value,onClosed:t[2]||(t[2]=a=>_.value=!1)},[n("md-menu-item",{onClick:t[0]||(t[0]=a=>Q(c.value))},[n("div",be,l(e.$t("rename")),1)]),n("md-menu-item",{onClick:t[1]||(t[1]=a=>A(c.value))},[n("div",ke,l(e.$t("delete")),1)])],40,$e)],64)}}});export{we as _,pe as a}; diff --git a/app/src/main/resources/web/assets/VPagination.vuevuetypescriptsetuptruelang-DJTUsUyq.js b/app/src/main/resources/web/assets/VPagination.vuevuetypescriptsetuptruelang-goYu96wT.js similarity index 95% rename from app/src/main/resources/web/assets/VPagination.vuevuetypescriptsetuptruelang-DJTUsUyq.js rename to app/src/main/resources/web/assets/VPagination.vuevuetypescriptsetuptruelang-goYu96wT.js index 2eb9b3d9..7be17fd3 100644 --- a/app/src/main/resources/web/assets/VPagination.vuevuetypescriptsetuptruelang-DJTUsUyq.js +++ b/app/src/main/resources/web/assets/VPagination.vuevuetypescriptsetuptruelang-goYu96wT.js @@ -1 +1 @@ -import{d as N,aH as c,o as u,c as r,a as m,p as f,w as _,O as b,P as S,N as C,t as x,bu as z,bv as B}from"./index-BzaaAwnX.js";const E={class:"pagination"},P=["disabled"],V={key:0,class:"page-link"},w=["onClick"],A=["disabled"],M=N({__name:"VPagination",props:{total:{type:Number,default:0},limit:{type:Number,default:50},rangeSize:{type:Number,default:2},go:{type:Function,required:!0},page:{type:Number,default:1}},setup(d){const e=d,n=c(()=>Math.ceil(e.total/e.limit)),h=c(()=>{const s=[],l=5+e.rangeSize*2;let a=n.value<=l?1:e.page-e.rangeSize,i=n.value<=l?n.value:e.page+e.rangeSize;if(i=i>n.value?n.value:i,a=a<1?1:a,n.value>l){const o=a-1<3,p=n.value-i<3;if(o){i=l-2;for(let t=1;te.page>1),g=c(()=>e.page{const a=z,i=B;return u(),r("div",E,[m("button",{class:"btn-icon",disabled:!v.value,onClick:_(y,["prevent"])},[f(a)],8,P),(u(!0),r(b,null,S(h.value,(o,p)=>(u(),r(b,{key:p},[o===null?(u(),r("span",V,"···")):(u(),r("button",{key:1,class:C(["btn-icon",{active:o===e.page}]),onClick:_(t=>d.go(o),["prevent"])},x(o),11,w))],64))),128)),m("button",{class:"btn-icon",disabled:!g.value,onClick:_(k,["prevent"])},[f(i)],8,A)])}}});export{M as _}; +import{d as N,aH as c,o as u,c as r,a as m,p as f,w as _,O as b,P as S,N as C,t as x,bu as z,bv as B}from"./index-R8dLcqG_.js";const E={class:"pagination"},P=["disabled"],V={key:0,class:"page-link"},w=["onClick"],A=["disabled"],M=N({__name:"VPagination",props:{total:{type:Number,default:0},limit:{type:Number,default:50},rangeSize:{type:Number,default:2},go:{type:Function,required:!0},page:{type:Number,default:1}},setup(d){const e=d,n=c(()=>Math.ceil(e.total/e.limit)),h=c(()=>{const s=[],l=5+e.rangeSize*2;let a=n.value<=l?1:e.page-e.rangeSize,i=n.value<=l?n.value:e.page+e.rangeSize;if(i=i>n.value?n.value:i,a=a<1?1:a,n.value>l){const o=a-1<3,p=n.value-i<3;if(o){i=l-2;for(let t=1;te.page>1),g=c(()=>e.page{const a=z,i=B;return u(),r("div",E,[m("button",{class:"btn-icon",disabled:!v.value,onClick:_(y,["prevent"])},[f(a)],8,P),(u(!0),r(b,null,S(h.value,(o,p)=>(u(),r(b,{key:p},[o===null?(u(),r("span",V,"···")):(u(),r("button",{key:1,class:C(["btn-icon",{active:o===e.page}]),onClick:_(t=>d.go(o),["prevent"])},x(o),11,w))],64))),128)),m("button",{class:"btn-icon",disabled:!g.value,onClick:_(k,["prevent"])},[f(i)],8,A)])}}});export{M as _}; diff --git a/app/src/main/resources/web/assets/VideosSidebar-D77MkroS.js b/app/src/main/resources/web/assets/VideosSidebar-D77MkroS.js deleted file mode 100644 index b7d940b2..00000000 --- a/app/src/main/resources/web/assets/VideosSidebar-D77MkroS.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t}from"./MediaSidebar.vuevuetypescriptsetuptruelang-rTL93G-q.js";import{d as a,v as r,m as o,o as p,J as m,a_ as i}from"./index-BzaaAwnX.js";import"./LeftSidebar.vuevuetypescriptsetuptruelang-xn7lCt7t.js";import"./TagFilter.vuevuetypescriptsetuptruelang-CUu0usUl.js";import"./more-vert-BRJfC0iG.js";import"./EditValueModal-Ws2hdG3a.js";import"./vee-validate.esm-DNjIRPsN.js";import"./search-DwB6FdxH.js";const k=a({__name:"VideosSidebar",setup(n){return(s,_)=>{const e=t;return p(),r(e,{type:o(m).VIDEO,gql:o(i)},null,8,["type","gql"])}}});export{k as default}; diff --git a/app/src/main/resources/web/assets/VideosSidebar-DsCT02ty.js b/app/src/main/resources/web/assets/VideosSidebar-DsCT02ty.js new file mode 100644 index 00000000..299d731a --- /dev/null +++ b/app/src/main/resources/web/assets/VideosSidebar-DsCT02ty.js @@ -0,0 +1 @@ +import{_ as t}from"./MediaSidebar.vuevuetypescriptsetuptruelang-kDQsOpRT.js";import{d as a,v as r,m as o,o as p,J as m,a_ as i}from"./index-R8dLcqG_.js";import"./LeftSidebar.vuevuetypescriptsetuptruelang-BWG8gajF.js";import"./TagFilter.vuevuetypescriptsetuptruelang-DySu9lzm.js";import"./more-vert-zjmMMiPD.js";import"./EditValueModal-O1aAFYgx.js";import"./vee-validate.esm-vpr6zxQb.js";import"./search-ByVbj6Ls.js";const k=a({__name:"VideosSidebar",setup(n){return(s,_)=>{const e=t;return p(),r(e,{type:o(m).VIDEO,gql:o(i)},null,8,["type","gql"])}}});export{k as default}; diff --git a/app/src/main/resources/web/assets/VideosView-BBEKzrlo.js b/app/src/main/resources/web/assets/VideosView-BBEKzrlo.js deleted file mode 100644 index f4683725..00000000 --- a/app/src/main/resources/web/assets/VideosView-BBEKzrlo.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as wo}from"./VPagination.vuevuetypescriptsetuptruelang-DJTUsUyq.js";import{_ as Io,a as So,b as Eo,c as Do,d as To}from"./grid-view-outline-rounded-CLDXc2EL.js";import{d as Ao,u as Vo,s as Be,h as q,g as Fo,I as Mo,i as Lo,ai as He,aF as zo,J as Ro,aG as Uo,aH as Ne,aI as qo,aM as Bo,aj as Ho,K as No,aJ as Ko,aK as Qo,L as Po,M as Oo,c as u,a as r,m as e,t as y,O as f,x as _,v as i,q as d,w as a,e as V,p as l,aL as Zo,N as B,P as W,Q as Go,f as Wo,C as jo,aN as Jo,aY as Xo,aP as Yo,ao as xo,S as es,o as t,aQ as j,aR as J,aZ as Ke,aC as pe,aS as F,E as Qe,ab as Pe,U as os,V as ss,W as ts,X as ns,ar as as,aq as ls,Z as is,$ as cs,a0 as ds,a1 as M,ae as rs,aT as us,as as _s,aU as ps,a2 as ks,aV as vs,a4 as ms,a3 as gs,aW as hs}from"./index-BzaaAwnX.js";import{_ as ys,a as fs}from"./SearchInput-DTMVECJE.js";import{_ as $s}from"./sort-rounded-BiVhN4C5.js";import{_ as Cs}from"./upload-rounded-BkrPpEdb.js";import{a as bs}from"./tags-BvnEKqTV.js";import{u as ws,a as Is}from"./key-events-C5OjC_dP.js";import{u as Ss}from"./search-DwB6FdxH.js";import"./search-rounded-Btuwf-IQ.js";import"./rss-feed-rounded-9FbiHzkN.js";import"./vee-validate.esm-DNjIRPsN.js";const Es={class:"top-app-bar"},Ds=["checked","indeterminate"],Ts={class:"title"},As={key:0},Vs={key:1},Fs={class:"actions"},Ms=["onClick"],Ls={slot:"headline"},zs=["onClick"],Rs={slot:"headline"},Us={class:"menu-items"},qs=["onClick","selected"],Bs={slot:"headline"},Hs={class:"sm"},Ns=["selected"],Ks=["selected"],Qs=["onClick","onMouseover"],Ps=["src"],Os=["src","onError"],Zs={key:1,class:"actions"},Gs={class:"right"},Ws=["onClick","onMouseover"],js={class:"start"},Js=["onClick","checked"],Xs=["onClick","checked"],Ys={class:"number"},xs={class:"image"},et=["src"],ot=["src","onError"],st={class:"title"},tt={class:"subtitle"},nt=["onClick"],at={class:"actions"},lt={class:"time"},it={key:2,class:"no-data-placeholder"},E=55,$t=Ao({__name:"VideosView",setup(ct){var ze;const I=Vo(),{videoSortBy:H}=Be(I),S=q([]),{t:Oe}=Fo(),{parseQ:Ze}=Ss(),D=Mo({tagIds:[]}),ke=Lo(),{app:T,urlTokenKey:X,uploads:Y}=Be(ke),{input:Ge,upload:We,uploadChanged:ve}=He(Y),{input:je,upload:Je,uploadChanged:me}=He(Y),{dropping:Xe,fileDragEnter:ge,fileDragLeave:he,dropFiles:Ye}=zo(Y),x=q(!1),p=Ro.VIDEO,ye=Go(),fe=ye.query,ee=q(parseInt(((ze=fe.page)==null?void 0:ze.toString())??"1")),{tags:N,buckets:oe,fetch:xe}=Uo(p),eo=Ne(()=>{const s={};return oe.value.forEach(n=>{s[n.id]=n}),s}),C=q(""),{addToTags:oo}=bs(p,N),{deleteItems:se,deleteItem:K}=qo(),{view:so}=Bo(p),{selectedIds:h,allChecked:$e,realAllChecked:w,selectRealAll:to,allCheckedAlertVisible:no,clearSelection:L,toggleAllChecked:Ce,toggleSelect:z,total:b,checked:R,shiftEffectingIds:Q,handleItemClick:be,handleMouseOver:we,selectAll:ao,shouldSelect:Ie}=ws(S),{downloadItems:Se}=Ho(X,p,L,"videos.zip"),{downloadFile:P}=as(X),Ee=s=>{const n=ye.query.q;Wo(I,n?`/videos?page=${s}&q=${n}`:`/videos?page=${s}`)},{keyDown:De,keyUp:Te}=Is(b,E,ee,ao,L,Ee,()=>{j(J.MEDIA_TRASH,T.value.osVersion)?G(p,U()):se(p,h.value,w.value,b.value,C.value)}),te=q([]),lo=ls(),io=Ne(()=>S.value.map(s=>({src:pe(s.fileId),name:F(s.path),duration:s.duration,size:s.size,path:s.path,data:s,type:p}))),Ae=s=>{te.value.push(s)},{loading:O,fetch:Z}=No({handle:async(s,n)=>{if(x.value=!1,n)jo(Oe(n),"error");else if(s){const $=[];for(const c of s.videos)$.push({...c,fileId:Jo(X.value,c.path,c.id)});S.value=$,b.value=s.videoCount}},document:Xo,variables:()=>({offset:(ee.value-1)*E,limit:E,query:C.value,sortBy:H.value}),appApi:!0}),{trashLoading:ne,trash:G}=Ko(),{restoreLoading:ae,restore:le}=Qo();function ie(s){ke.lightbox={sources:io.value,index:s,visible:!0}}const U=()=>{let s=C.value;return w.value||(s=`ids:${h.value.join(",")}`),s};function co(s,n){x.value=!0,H.value=n,s.close()}function ro(s){return s?`/videos?q=${s}`:"/videos"}function Ve(s){is(cs,{type:p,tags:N.value,item:{key:s.id,title:s.title,size:s.size},selected:N.value.filter(n=>s.tags.some($=>$.id===n.id))})}function ce(){const s=oe.value.find(n=>n.id===D.bucketId);return s?hs(s.topItems[0]):`${T.value.internalStoragePath}/Movies`}function uo(s){We(ce()),s.close()}function _o(s){Je(ce()),s.close()}function po(s){Ye(s,ce(),"video")}const Fe=s=>{s.type===p&&(L(),Z())},Me=s=>{s.type===p&&Z()},Le=s=>{s.type===p&&(L(),Z())};return Po(()=>{var s;C.value=ds(((s=fe.q)==null?void 0:s.toString())??""),Ze(D,C.value),xe(),Z(),M.on("item_tags_updated",Me),M.on("items_tags_updated",Fe),M.on("media_items_actioned",Le),window.addEventListener("keydown",De),window.addEventListener("keyup",Te)}),Oo(()=>{M.off("item_tags_updated",Me),M.off("items_tags_updated",Fe),M.off("media_items_actioned",Le),window.removeEventListener("keydown",De),window.removeEventListener("keyup",Te)}),(s,n)=>{const $=rs,c=Yo,de=us,A=_s,re=ps,ue=ks,ko=ys,vo=Cs,Re=xo,mo=$s,go=Io,ho=So,yo=fs,_e=Eo,Ue=Do,fo=vs,qe=ms,$o=gs,Co=To,bo=wo,k=es("tooltip");return t(),u(f,null,[r("div",Es,[r("md-checkbox",{"touch-target":"wrapper",onChange:n[0]||(n[0]=(...o)=>e(Ce)&&e(Ce)(...o)),checked:e($e),indeterminate:!e($e)&&e(R)},null,40,Ds),r("div",Ts,[e(h).length?(t(),u("span",As,y(s.$t("x_selected",{count:e(w)?e(b).toLocaleString():e(h).length.toLocaleString()})),1)):(t(),u("span",Vs,y(s.$t("page_title.videos"))+" ("+y(e(b).toLocaleString())+")",1)),e(R)?(t(),u(f,{key:2},[D.trash?(t(),u(f,{key:0},[_((t(),i(c,{onClick:n[1]||(n[1]=a(o=>e(se)(e(p),e(h),e(w),e(b),C.value),["stop"]))},{icon:d(()=>[l($)]),_:1})),[[k,s.$t("delete")]]),_((t(),i(c,{onClick:n[2]||(n[2]=a(o=>e(le)(e(p),U()),["stop"])),loading:e(ae)(U())},{icon:d(()=>[l(de)]),_:1},8,["loading"])),[[k,s.$t("restore")]]),_((t(),i(c,{onClick:n[3]||(n[3]=a(o=>e(Se)(e(w),e(h),C.value),["stop"]))},{icon:d(()=>[l(A)]),_:1})),[[k,s.$t("download")]])],64)):(t(),u(f,{key:1},[e(j)(e(J).MEDIA_TRASH,e(T).osVersion)?_((t(),i(c,{key:0,onClick:n[4]||(n[4]=a(o=>e(G)(e(p),U()),["stop"])),loading:e(ne)(U())},{icon:d(()=>[l(re)]),_:1},8,["loading"])),[[k,s.$t("move_to_trash")]]):_((t(),i(c,{key:1,onClick:n[5]||(n[5]=a(o=>e(se)(e(p),e(h),e(w),e(b),C.value),["stop"]))},{icon:d(()=>[l($)]),_:1})),[[k,s.$t("delete")]]),_((t(),i(c,{onClick:n[6]||(n[6]=a(o=>e(Se)(e(w),e(h),C.value),["stop"]))},{icon:d(()=>[l(A)]),_:1})),[[k,s.$t("download")]]),_((t(),i(c,{onClick:n[7]||(n[7]=a(o=>e(oo)(e(h),e(w),C.value),["stop"]))},{icon:d(()=>[l(ue)]),_:1})),[[k,s.$t("add_to_tags")]])],64))],64)):V("",!0)]),r("div",Fs,[l(ko,{filter:D,tags:e(N),buckets:e(oe),"get-url":ro},null,8,["filter","tags","buckets"]),D.trash?V("",!0):(t(),i(Re,{key:0},{content:d(o=>[r("md-menu-item",{onClick:a(m=>uo(o),["stop"])},[r("div",Ls,y(s.$t("upload_files")),1)],8,Ms),r("md-menu-item",{onClick:a(m=>_o(o),["stop"])},[r("div",Rs,y(s.$t("upload_folder")),1)],8,zs)]),default:d(()=>[_((t(),i(c,null,{icon:d(()=>[l(vo)]),_:1})),[[k,s.$t("upload")]])]),_:1})),l(Re,null,{content:d(o=>[r("div",Us,[(t(!0),u(f,null,W(e(lo),m=>(t(),u("md-menu-item",{key:m.value,onClick:v=>co(o,m.value),selected:m.value===e(H)},[r("div",Bs,y(s.$t(m.label)),1)],8,qs))),128))])]),default:d(()=>[_((t(),i(c,{loading:x.value},{icon:d(()=>[l(mo)]),_:1},8,["loading"])),[[k,s.$t("sort")]])]),_:1}),r("md-outlined-segmented-button-set",Hs,[r("md-outlined-segmented-button",{"data-value":"grid","no-checkmark":"",selected:!e(I).videosCardView,onClick:n[8]||(n[8]=o=>e(I).videosCardView=!1)},[l(go,{slot:"icon"})],8,Ns),r("md-outlined-segmented-button",{"data-value":"card","no-checkmark":"",selected:e(I).videosCardView,onClick:n[9]||(n[9]=o=>e(I).videosCardView=!0)},[l(ho,{slot:"icon"})],8,Ks)])])]),l(yo,{limit:E,total:e(b),"all-checked-alert-visible":e(no),"real-all-checked":e(w),"select-real-all":e(to),"clear-selection":e(L)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),r("div",{class:"scroll-content",onDragover:n[13]||(n[13]=a((...o)=>e(ge)&&e(ge)(...o),["stop","prevent"]))},[_(r("div",{class:"drag-mask",onDrop:a(po,["stop","prevent"]),onDragleave:n[10]||(n[10]=a((...o)=>e(he)&&e(he)(...o),["stop","prevent"]))},y(s.$t("release_to_send_files")),545),[[Zo,e(Xe)]]),e(I).videosCardView?(t(),u("div",{key:1,class:B(["media-list",{"select-mode":e(R)}])},[(t(!0),u(f,null,W(S.value,(o,m)=>{var v;return t(),u("section",{class:B(["media-item selectable-card",{selected:e(h).includes(o.id),selecting:e(Q).includes(o.id)}]),key:o.id,onClick:a(g=>e(be)(g,o,m,ie),["stop"]),onMouseover:g=>e(we)(g,m)},[r("div",js,[e(Q).includes(o.id)?(t(),u("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:a(g=>e(z)(g,o,m),["stop"]),checked:e(Ie)},null,8,Js)):(t(),u("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:a(g=>e(z)(g,o,m),["stop"]),checked:e(h).includes(o.id)},null,8,Xs)),r("span",Ys,[l($o,{id:m+1,raw:o},null,8,["id","raw"])])]),r("div",xs,[te.value.includes(o.id)?(t(),u("img",{key:0,src:`/ficons/${e(Ke)(o.path)}.svg`,class:"svg"},null,8,et)):(t(),u("img",{key:1,class:"image-thumb",src:e(pe)(o.fileId,"&w=200&h=200"),onError:g=>Ae(o.id)},null,40,ot))]),r("div",st,y(e(F)(o.path)),1),r("div",tt,[r("span",null,y(e(Qe)(o.size)),1),r("span",null,y(e(Pe)(o.duration)),1),r("a",{onClick:a(g=>e(so)(e(I),o.bucketId),["stop","prevent"])},y((v=eo.value[o.bucketId])==null?void 0:v.name),9,nt),l(qe,{tags:o.tags,type:e(p),"only-links":!0},null,8,["tags","type"])]),r("div",at,[D.trash?(t(),u(f,{key:0},[_((t(),i(c,{class:"sm",onClick:a(g=>e(K)(e(p),o),["stop"])},{icon:d(()=>[l($)]),_:2},1032,["onClick"])),[[k,s.$t("delete")]]),_((t(),i(c,{class:"sm",onClick:a(g=>e(le)(e(p),`ids:${o.id}`),["stop"]),loading:e(ae)(`ids:${o.id}`)},{icon:d(()=>[l(de)]),_:2},1032,["onClick","loading"])),[[k,s.$t("restore")]]),_((t(),i(c,{class:"sm",onClick:a(g=>e(P)(o.path,e(F)(o.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(A)]),_:2},1032,["onClick"])),[[k,s.$t("download")]])],64)):(t(),u(f,{key:1},[e(j)(e(J).MEDIA_TRASH,e(T).osVersion)?_((t(),i(c,{key:0,class:"sm",onClick:a(g=>e(G)(e(p),`ids:${o.id}`),["stop"]),loading:e(ne)(`ids:${o.id}`)},{icon:d(()=>[l(re)]),_:2},1032,["onClick","loading"])),[[k,s.$t("move_to_trash")]]):_((t(),i(c,{key:1,class:"sm",onClick:a(g=>e(K)(e(p),o),["stop"])},{icon:d(()=>[l($)]),_:2},1032,["onClick"])),[[k,s.$t("delete")]]),_((t(),i(c,{class:"sm",onClick:a(g=>e(P)(o.path,e(F)(o.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(A)]),_:2},1032,["onClick"])),[[k,s.$t("download")]]),_((t(),i(c,{class:"sm",onClick:a(g=>Ve(o),["stop"])},{icon:d(()=>[l(ue)]),_:2},1032,["onClick"])),[[k,s.$t("add_to_tags")]])],64))]),r("div",lt,[_((t(),u("span",null,[ss(y(e(ts)(o.createdAt)),1)])),[[k,e(os)(o.createdAt)]])])],42,Ws)}),128)),e(O)&&S.value.length===0?(t(),i(Co,{key:0,limit:E})):V("",!0)],2)):(t(),u("div",{key:0,class:B(["media-grid",{"select-mode":e(R)}])},[(t(!0),u(f,null,W(S.value,(o,m)=>(t(),u("section",{class:B(["media-item",{selected:e(h).includes(o.id),selecting:e(Q).includes(o.id)}]),key:o.id,onClick:a(v=>e(be)(v,o,m,ie),["stop"]),onMouseover:v=>e(we)(v,m)},[te.value.includes(o.id)?(t(),u("img",{key:0,src:`/ficons/${e(Ke)(o.path)}.svg`,class:"image svg"},null,8,Ps)):(t(),u("img",{key:1,class:"image image-thumb",src:e(pe)(o.fileId,"&w=200&h=200"),onError:v=>Ae(o.id)},null,40,Os)),e(Q).includes(o.id)?(t(),i(c,{key:2,class:"btn-checkbox",onClick:a(v=>e(z)(v,o,m),["stop"])},{icon:d(()=>[e(Ie)?(t(),i(_e,{key:0})):(t(),i(Ue,{key:1}))]),_:2},1032,["onClick"])):e(h).includes(o.id)?(t(),i(c,{key:3,class:"btn-checkbox",onClick:a(v=>e(z)(v,o,m),["stop"])},{icon:d(()=>[l(_e)]),_:2},1032,["onClick"])):(t(),u(f,{key:4},[l(c,{class:"btn-checkbox",onClick:a(v=>e(z)(v,o,m),["stop"])},{icon:d(()=>[e(h).includes(o.id)?(t(),i(_e,{key:0})):(t(),i(Ue,{key:1}))]),_:2},1032,["onClick"]),e(R)?_((t(),i(c,{key:0,class:"btn-zoom sm",onClick:a(v=>ie(m),["stop"])},{icon:d(()=>[l(fo)]),_:2},1032,["onClick"])),[[k,s.$t("open")]]):(t(),u("div",Zs,[D.trash?(t(),u(f,{key:0},[_((t(),i(c,{class:"sm",onClick:a(v=>e(K)(e(p),o),["stop"])},{icon:d(()=>[l($)]),_:2},1032,["onClick"])),[[k,s.$t("delete")]]),_((t(),i(c,{class:"sm",onClick:a(v=>e(le)(e(p),`ids:${o.id}`),["stop"]),loading:e(ae)(`ids:${o.id}`)},{icon:d(()=>[l(de)]),_:2},1032,["onClick","loading"])),[[k,s.$t("restore")]]),_((t(),i(c,{class:"sm",onClick:a(v=>e(P)(o.path,e(F)(o.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(A)]),_:2},1032,["onClick"])),[[k,s.$t("download")]])],64)):(t(),u(f,{key:1},[e(j)(e(J).MEDIA_TRASH,e(T).osVersion)?_((t(),i(c,{key:0,class:"sm",onClick:a(v=>e(G)(e(p),`ids:${o.id}`),["stop"]),loading:e(ne)(`ids:${o.id}`)},{icon:d(()=>[l(re)]),_:2},1032,["onClick","loading"])),[[k,s.$t("move_to_trash")]]):_((t(),i(c,{key:1,class:"sm",onClick:a(v=>e(K)(e(p),o),["stop"])},{icon:d(()=>[l($)]),_:2},1032,["onClick"])),[[k,s.$t("delete")]]),_((t(),i(c,{class:"sm",onClick:a(v=>e(P)(o.path,e(F)(o.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(A)]),_:2},1032,["onClick"])),[[k,s.$t("download")]]),_((t(),i(c,{class:"sm",onClick:a(v=>Ve(o),["stop"])},{icon:d(()=>[l(ue)]),_:2},1032,["onClick"])),[[k,s.$t("add_to_tags")]])],64))])),r("div",{class:B(["info",{"has-tags":o.tags.length>0}])},[l(qe,{tags:o.tags,type:e(p)},null,8,["tags","type"]),r("span",Gs,y(["SIZE_ASC","SIZE_DESC"].includes(e(H))?e(Qe)(o.size):e(Pe)(o.duration)),1)],2)],64))],42,Qs))),128)),e(O)&&S.value.length===0?(t(),u(f,{key:0},W(E,o=>r("section",{class:"skeleton-image media-item",key:o})),64)):V("",!0)],2)),!e(O)&&S.value.length===0?(t(),u("div",it,y(s.$t(e(ns)(e(O),e(T).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):V("",!0),e(b)>E?(t(),i(bo,{key:3,page:ee.value,go:Ee,total:e(b),limit:E},null,8,["page","total"])):V("",!0),r("input",{ref_key:"fileInput",ref:Ge,style:{display:"none"},type:"file",accept:"video/*",multiple:"",onChange:n[11]||(n[11]=(...o)=>e(ve)&&e(ve)(...o))},null,544),r("input",{ref_key:"dirFileInput",ref:je,style:{display:"none"},type:"file",accept:"video/*",multiple:"",webkitdirectory:"",mozdirectory:"",directory:"",onChange:n[12]||(n[12]=(...o)=>e(me)&&e(me)(...o))},null,544)],32)],64)}}});export{$t as default}; diff --git a/app/src/main/resources/web/assets/VideosView-DJ0iJBjn.js b/app/src/main/resources/web/assets/VideosView-DJ0iJBjn.js new file mode 100644 index 00000000..164e477f --- /dev/null +++ b/app/src/main/resources/web/assets/VideosView-DJ0iJBjn.js @@ -0,0 +1 @@ +import{_ as wo}from"./VPagination.vuevuetypescriptsetuptruelang-goYu96wT.js";import{_ as Io,a as So,b as Eo,c as Do,d as To}from"./grid-view-outline-rounded-D3vSSmrh.js";import{d as Ao,u as Vo,s as Be,h as B,g as Fo,I as Mo,i as Lo,ai as He,aF as zo,J as Ro,aG as Uo,aH as Ne,aI as qo,aM as Bo,aj as Ho,K as No,aJ as Ko,aK as Qo,L as Oo,M as Po,c as u,a as r,m as e,t as y,O as f,x as _,v as i,q as d,w as a,e as V,p as l,aL as Zo,N as H,P as W,Q as Go,f as Wo,C as jo,aN as Jo,aY as Xo,aP as Yo,ao as xo,S as es,o as t,aQ as j,aR as J,aZ as Ke,aC as pe,aS as F,E as Qe,ab as Oe,U as os,V as ss,W as ts,X as ns,ar as as,aq as ls,Z as is,$ as cs,a0 as ds,a1 as M,ae as rs,aT as us,as as _s,aU as ps,a2 as ks,aV as vs,a4 as ms,a3 as gs,aW as hs}from"./index-R8dLcqG_.js";import{_ as ys,a as fs}from"./SearchInput-DhaE-3h8.js";import{_ as $s}from"./sort-rounded-CsJpi3ce.js";import{_ as Cs}from"./upload-rounded-CQIzYelP.js";import{a as bs}from"./tags-Dbpv368M.js";import{u as ws,a as Is}from"./key-events-BNCM8SMB.js";import{u as Ss}from"./search-ByVbj6Ls.js";import"./search-rounded-CULEMJ2O.js";import"./rss-feed-rounded-BCiGdgJ5.js";import"./vee-validate.esm-vpr6zxQb.js";const Es={class:"top-app-bar"},Ds=["checked","indeterminate"],Ts={class:"title"},As={key:0},Vs={key:1},Fs={class:"actions"},Ms=["onClick"],Ls={slot:"headline"},zs=["onClick"],Rs={slot:"headline"},Us={class:"menu-items"},qs=["onClick","selected"],Bs={slot:"headline"},Hs={class:"sm"},Ns=["selected"],Ks=["selected"],Qs=["onClick","onMouseover"],Os=["src"],Ps=["src","onError"],Zs={key:1,class:"actions"},Gs={class:"right"},Ws=["onClick","onMouseover"],js={class:"start"},Js=["onClick","checked"],Xs=["onClick","checked"],Ys={class:"number"},xs={class:"image"},et=["src"],ot=["src","onError"],st={class:"title"},tt={class:"subtitle"},nt=["onClick"],at={class:"actions"},lt={class:"time"},it={key:2,class:"no-data-placeholder"},E=55,$t=Ao({__name:"VideosView",setup(ct){var ze;const I=Vo(),{videoSortBy:L}=Be(I),S=B([]),{t:Pe}=Fo(),{parseQ:Ze}=Ss(),D=Mo({tagIds:[]}),ke=Lo(),{app:T,urlTokenKey:X,uploads:Y}=Be(ke),{input:Ge,upload:We,uploadChanged:ve}=He(Y),{input:je,upload:Je,uploadChanged:me}=He(Y),{dropping:Xe,fileDragEnter:ge,fileDragLeave:he,dropFiles:Ye}=zo(Y),x=B(!1),p=Ro.VIDEO,ye=Go(),fe=ye.query,ee=B(parseInt(((ze=fe.page)==null?void 0:ze.toString())??"1")),{tags:N,buckets:oe,fetch:xe}=Uo(p),eo=Ne(()=>{const s={};return oe.value.forEach(n=>{s[n.id]=n}),s}),C=B(""),{addToTags:oo}=bs(p,N),{deleteItems:se,deleteItem:K}=qo(),{view:so}=Bo(p),{selectedIds:h,allChecked:$e,realAllChecked:w,selectRealAll:to,allCheckedAlertVisible:no,clearSelection:z,toggleAllChecked:Ce,toggleSelect:R,total:b,checked:U,shiftEffectingIds:Q,handleItemClick:be,handleMouseOver:we,selectAll:ao,shouldSelect:Ie}=ws(S),{downloadItems:Se}=Ho(X,p,z,"videos.zip"),{downloadFile:O}=as(X),Ee=s=>{const n=ye.query.q;Wo(I,n?`/videos?page=${s}&q=${n}`:`/videos?page=${s}`)},{keyDown:De,keyUp:Te}=Is(b,E,ee,ao,z,Ee,()=>{j(J.MEDIA_TRASH,T.value.osVersion)?G(p,q()):se(p,h.value,w.value,b.value,C.value)}),te=B([]),lo=ls(),io=Ne(()=>S.value.map(s=>({src:pe(s.fileId),name:F(s.path),duration:s.duration,size:s.size,path:s.path,data:s,type:p}))),Ae=s=>{te.value.push(s)},{loading:P,fetch:Z}=No({handle:async(s,n)=>{if(x.value=!1,n)jo(Pe(n),"error");else if(s){const $=[];for(const c of s.videos)$.push({...c,fileId:Jo(X.value,c.path,c.id)});S.value=$,b.value=s.videoCount}},document:Xo,variables:()=>({offset:(ee.value-1)*E,limit:E,query:C.value,sortBy:L.value}),appApi:!0}),{trashLoading:ne,trash:G}=Ko(),{restoreLoading:ae,restore:le}=Qo();function ie(s){ke.lightbox={sources:io.value,index:s,visible:!0}}const q=()=>{let s=C.value;return w.value||(s=`ids:${h.value.join(",")}`),s};function co(s,n){if(L.value===n){s.close();return}x.value=!0,L.value=n,s.close()}function ro(s){return s?`/videos?q=${s}`:"/videos"}function Ve(s){is(cs,{type:p,tags:N.value,item:{key:s.id,title:s.title,size:s.size},selected:N.value.filter(n=>s.tags.some($=>$.id===n.id))})}function ce(){const s=oe.value.find(n=>n.id===D.bucketId);return s?hs(s.topItems[0]):`${T.value.internalStoragePath}/Movies`}function uo(s){We(ce()),s.close()}function _o(s){Je(ce()),s.close()}function po(s){Ye(s,ce(),"video")}const Fe=s=>{s.type===p&&(z(),Z())},Me=s=>{s.type===p&&Z()},Le=s=>{s.type===p&&(z(),Z())};return Oo(()=>{var s;C.value=ds(((s=fe.q)==null?void 0:s.toString())??""),Ze(D,C.value),xe(),Z(),M.on("item_tags_updated",Me),M.on("items_tags_updated",Fe),M.on("media_items_actioned",Le),window.addEventListener("keydown",De),window.addEventListener("keyup",Te)}),Po(()=>{M.off("item_tags_updated",Me),M.off("items_tags_updated",Fe),M.off("media_items_actioned",Le),window.removeEventListener("keydown",De),window.removeEventListener("keyup",Te)}),(s,n)=>{const $=rs,c=Yo,de=us,A=_s,re=ps,ue=ks,ko=ys,vo=Cs,Re=xo,mo=$s,go=Io,ho=So,yo=fs,_e=Eo,Ue=Do,fo=vs,qe=ms,$o=gs,Co=To,bo=wo,k=es("tooltip");return t(),u(f,null,[r("div",Es,[r("md-checkbox",{"touch-target":"wrapper",onChange:n[0]||(n[0]=(...o)=>e(Ce)&&e(Ce)(...o)),checked:e($e),indeterminate:!e($e)&&e(U)},null,40,Ds),r("div",Ts,[e(h).length?(t(),u("span",As,y(s.$t("x_selected",{count:e(w)?e(b).toLocaleString():e(h).length.toLocaleString()})),1)):(t(),u("span",Vs,y(s.$t("page_title.videos"))+" ("+y(e(b).toLocaleString())+")",1)),e(U)?(t(),u(f,{key:2},[D.trash?(t(),u(f,{key:0},[_((t(),i(c,{onClick:n[1]||(n[1]=a(o=>e(se)(e(p),e(h),e(w),e(b),C.value),["stop"]))},{icon:d(()=>[l($)]),_:1})),[[k,s.$t("delete")]]),_((t(),i(c,{onClick:n[2]||(n[2]=a(o=>e(le)(e(p),q()),["stop"])),loading:e(ae)(q())},{icon:d(()=>[l(de)]),_:1},8,["loading"])),[[k,s.$t("restore")]]),_((t(),i(c,{onClick:n[3]||(n[3]=a(o=>e(Se)(e(w),e(h),C.value),["stop"]))},{icon:d(()=>[l(A)]),_:1})),[[k,s.$t("download")]])],64)):(t(),u(f,{key:1},[e(j)(e(J).MEDIA_TRASH,e(T).osVersion)?_((t(),i(c,{key:0,onClick:n[4]||(n[4]=a(o=>e(G)(e(p),q()),["stop"])),loading:e(ne)(q())},{icon:d(()=>[l(re)]),_:1},8,["loading"])),[[k,s.$t("move_to_trash")]]):_((t(),i(c,{key:1,onClick:n[5]||(n[5]=a(o=>e(se)(e(p),e(h),e(w),e(b),C.value),["stop"]))},{icon:d(()=>[l($)]),_:1})),[[k,s.$t("delete")]]),_((t(),i(c,{onClick:n[6]||(n[6]=a(o=>e(Se)(e(w),e(h),C.value),["stop"]))},{icon:d(()=>[l(A)]),_:1})),[[k,s.$t("download")]]),_((t(),i(c,{onClick:n[7]||(n[7]=a(o=>e(oo)(e(h),e(w),C.value),["stop"]))},{icon:d(()=>[l(ue)]),_:1})),[[k,s.$t("add_to_tags")]])],64))],64)):V("",!0)]),r("div",Fs,[l(ko,{filter:D,tags:e(N),buckets:e(oe),"get-url":ro},null,8,["filter","tags","buckets"]),D.trash?V("",!0):(t(),i(Re,{key:0},{content:d(o=>[r("md-menu-item",{onClick:a(m=>uo(o),["stop"])},[r("div",Ls,y(s.$t("upload_files")),1)],8,Ms),r("md-menu-item",{onClick:a(m=>_o(o),["stop"])},[r("div",Rs,y(s.$t("upload_folder")),1)],8,zs)]),default:d(()=>[_((t(),i(c,null,{icon:d(()=>[l(vo)]),_:1})),[[k,s.$t("upload")]])]),_:1})),l(Re,null,{content:d(o=>[r("div",Us,[(t(!0),u(f,null,W(e(lo),m=>(t(),u("md-menu-item",{key:m.value,onClick:v=>co(o,m.value),selected:m.value===e(L)},[r("div",Bs,y(s.$t(m.label)),1)],8,qs))),128))])]),default:d(()=>[_((t(),i(c,{loading:x.value},{icon:d(()=>[l(mo)]),_:1},8,["loading"])),[[k,s.$t("sort")]])]),_:1}),r("md-outlined-segmented-button-set",Hs,[r("md-outlined-segmented-button",{"data-value":"grid","no-checkmark":"",selected:!e(I).videosCardView,onClick:n[8]||(n[8]=o=>e(I).videosCardView=!1)},[l(go,{slot:"icon"})],8,Ns),r("md-outlined-segmented-button",{"data-value":"card","no-checkmark":"",selected:e(I).videosCardView,onClick:n[9]||(n[9]=o=>e(I).videosCardView=!0)},[l(ho,{slot:"icon"})],8,Ks)])])]),l(yo,{limit:E,total:e(b),"all-checked-alert-visible":e(no),"real-all-checked":e(w),"select-real-all":e(to),"clear-selection":e(z)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),r("div",{class:"scroll-content",onDragover:n[13]||(n[13]=a((...o)=>e(ge)&&e(ge)(...o),["stop","prevent"]))},[_(r("div",{class:"drag-mask",onDrop:a(po,["stop","prevent"]),onDragleave:n[10]||(n[10]=a((...o)=>e(he)&&e(he)(...o),["stop","prevent"]))},y(s.$t("release_to_send_files")),545),[[Zo,e(Xe)]]),e(I).videosCardView?(t(),u("div",{key:1,class:H(["media-list",{"select-mode":e(U)}])},[(t(!0),u(f,null,W(S.value,(o,m)=>{var v;return t(),u("section",{class:H(["media-item selectable-card",{selected:e(h).includes(o.id),selecting:e(Q).includes(o.id)}]),key:o.id,onClick:a(g=>e(be)(g,o,m,ie),["stop"]),onMouseover:g=>e(we)(g,m)},[r("div",js,[e(Q).includes(o.id)?(t(),u("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:a(g=>e(R)(g,o,m),["stop"]),checked:e(Ie)},null,8,Js)):(t(),u("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:a(g=>e(R)(g,o,m),["stop"]),checked:e(h).includes(o.id)},null,8,Xs)),r("span",Ys,[l($o,{id:m+1,raw:o},null,8,["id","raw"])])]),r("div",xs,[te.value.includes(o.id)?(t(),u("img",{key:0,src:`/ficons/${e(Ke)(o.path)}.svg`,class:"svg"},null,8,et)):(t(),u("img",{key:1,class:"image-thumb",src:e(pe)(o.fileId,"&w=200&h=200"),onError:g=>Ae(o.id)},null,40,ot))]),r("div",st,y(e(F)(o.path)),1),r("div",tt,[r("span",null,y(e(Qe)(o.size)),1),r("span",null,y(e(Oe)(o.duration)),1),r("a",{onClick:a(g=>e(so)(e(I),o.bucketId),["stop","prevent"])},y((v=eo.value[o.bucketId])==null?void 0:v.name),9,nt),l(qe,{tags:o.tags,type:e(p),"only-links":!0},null,8,["tags","type"])]),r("div",at,[D.trash?(t(),u(f,{key:0},[_((t(),i(c,{class:"sm",onClick:a(g=>e(K)(e(p),o),["stop"])},{icon:d(()=>[l($)]),_:2},1032,["onClick"])),[[k,s.$t("delete")]]),_((t(),i(c,{class:"sm",onClick:a(g=>e(le)(e(p),`ids:${o.id}`),["stop"]),loading:e(ae)(`ids:${o.id}`)},{icon:d(()=>[l(de)]),_:2},1032,["onClick","loading"])),[[k,s.$t("restore")]]),_((t(),i(c,{class:"sm",onClick:a(g=>e(O)(o.path,e(F)(o.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(A)]),_:2},1032,["onClick"])),[[k,s.$t("download")]])],64)):(t(),u(f,{key:1},[e(j)(e(J).MEDIA_TRASH,e(T).osVersion)?_((t(),i(c,{key:0,class:"sm",onClick:a(g=>e(G)(e(p),`ids:${o.id}`),["stop"]),loading:e(ne)(`ids:${o.id}`)},{icon:d(()=>[l(re)]),_:2},1032,["onClick","loading"])),[[k,s.$t("move_to_trash")]]):_((t(),i(c,{key:1,class:"sm",onClick:a(g=>e(K)(e(p),o),["stop"])},{icon:d(()=>[l($)]),_:2},1032,["onClick"])),[[k,s.$t("delete")]]),_((t(),i(c,{class:"sm",onClick:a(g=>e(O)(o.path,e(F)(o.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(A)]),_:2},1032,["onClick"])),[[k,s.$t("download")]]),_((t(),i(c,{class:"sm",onClick:a(g=>Ve(o),["stop"])},{icon:d(()=>[l(ue)]),_:2},1032,["onClick"])),[[k,s.$t("add_to_tags")]])],64))]),r("div",lt,[_((t(),u("span",null,[ss(y(e(ts)(o.createdAt)),1)])),[[k,e(os)(o.createdAt)]])])],42,Ws)}),128)),e(P)&&S.value.length===0?(t(),i(Co,{key:0,limit:E})):V("",!0)],2)):(t(),u("div",{key:0,class:H(["media-grid",{"select-mode":e(U)}])},[(t(!0),u(f,null,W(S.value,(o,m)=>(t(),u("section",{class:H(["media-item",{selected:e(h).includes(o.id),selecting:e(Q).includes(o.id)}]),key:o.id,onClick:a(v=>e(be)(v,o,m,ie),["stop"]),onMouseover:v=>e(we)(v,m)},[te.value.includes(o.id)?(t(),u("img",{key:0,src:`/ficons/${e(Ke)(o.path)}.svg`,class:"image svg"},null,8,Os)):(t(),u("img",{key:1,class:"image image-thumb",src:e(pe)(o.fileId,"&w=200&h=200"),onError:v=>Ae(o.id)},null,40,Ps)),e(Q).includes(o.id)?(t(),i(c,{key:2,class:"btn-checkbox",onClick:a(v=>e(R)(v,o,m),["stop"])},{icon:d(()=>[e(Ie)?(t(),i(_e,{key:0})):(t(),i(Ue,{key:1}))]),_:2},1032,["onClick"])):e(h).includes(o.id)?(t(),i(c,{key:3,class:"btn-checkbox",onClick:a(v=>e(R)(v,o,m),["stop"])},{icon:d(()=>[l(_e)]),_:2},1032,["onClick"])):(t(),u(f,{key:4},[l(c,{class:"btn-checkbox",onClick:a(v=>e(R)(v,o,m),["stop"])},{icon:d(()=>[e(h).includes(o.id)?(t(),i(_e,{key:0})):(t(),i(Ue,{key:1}))]),_:2},1032,["onClick"]),e(U)?_((t(),i(c,{key:0,class:"btn-zoom sm",onClick:a(v=>ie(m),["stop"])},{icon:d(()=>[l(fo)]),_:2},1032,["onClick"])),[[k,s.$t("open")]]):(t(),u("div",Zs,[D.trash?(t(),u(f,{key:0},[_((t(),i(c,{class:"sm",onClick:a(v=>e(K)(e(p),o),["stop"])},{icon:d(()=>[l($)]),_:2},1032,["onClick"])),[[k,s.$t("delete")]]),_((t(),i(c,{class:"sm",onClick:a(v=>e(le)(e(p),`ids:${o.id}`),["stop"]),loading:e(ae)(`ids:${o.id}`)},{icon:d(()=>[l(de)]),_:2},1032,["onClick","loading"])),[[k,s.$t("restore")]]),_((t(),i(c,{class:"sm",onClick:a(v=>e(O)(o.path,e(F)(o.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(A)]),_:2},1032,["onClick"])),[[k,s.$t("download")]])],64)):(t(),u(f,{key:1},[e(j)(e(J).MEDIA_TRASH,e(T).osVersion)?_((t(),i(c,{key:0,class:"sm",onClick:a(v=>e(G)(e(p),`ids:${o.id}`),["stop"]),loading:e(ne)(`ids:${o.id}`)},{icon:d(()=>[l(re)]),_:2},1032,["onClick","loading"])),[[k,s.$t("move_to_trash")]]):_((t(),i(c,{key:1,class:"sm",onClick:a(v=>e(K)(e(p),o),["stop"])},{icon:d(()=>[l($)]),_:2},1032,["onClick"])),[[k,s.$t("delete")]]),_((t(),i(c,{class:"sm",onClick:a(v=>e(O)(o.path,e(F)(o.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(A)]),_:2},1032,["onClick"])),[[k,s.$t("download")]]),_((t(),i(c,{class:"sm",onClick:a(v=>Ve(o),["stop"])},{icon:d(()=>[l(ue)]),_:2},1032,["onClick"])),[[k,s.$t("add_to_tags")]])],64))])),r("div",{class:H(["info",{"has-tags":o.tags.length>0}])},[l(qe,{tags:o.tags,type:e(p)},null,8,["tags","type"]),r("span",Gs,y(["SIZE_ASC","SIZE_DESC"].includes(e(L))?e(Qe)(o.size):e(Oe)(o.duration)),1)],2)],64))],42,Qs))),128)),e(P)&&S.value.length===0?(t(),u(f,{key:0},W(E,o=>r("section",{class:"skeleton-image media-item",key:o})),64)):V("",!0)],2)),!e(P)&&S.value.length===0?(t(),u("div",it,y(s.$t(e(ns)(e(P),e(T).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):V("",!0),e(b)>E?(t(),i(bo,{key:3,page:ee.value,go:Ee,total:e(b),limit:E},null,8,["page","total"])):V("",!0),r("input",{ref_key:"fileInput",ref:Ge,style:{display:"none"},type:"file",accept:"video/*",multiple:"",onChange:n[11]||(n[11]=(...o)=>e(ve)&&e(ve)(...o))},null,544),r("input",{ref_key:"dirFileInput",ref:je,style:{display:"none"},type:"file",accept:"video/*",multiple:"",webkitdirectory:"",mozdirectory:"",directory:"",onChange:n[12]||(n[12]=(...o)=>e(me)&&e(me)(...o))},null,544)],32)],64)}}});export{$t as default}; diff --git a/app/src/main/resources/web/assets/WiFiView-Cf7pDl6y.js b/app/src/main/resources/web/assets/WiFiView-DcmCXVXc.js similarity index 95% rename from app/src/main/resources/web/assets/WiFiView-Cf7pDl6y.js rename to app/src/main/resources/web/assets/WiFiView-DcmCXVXc.js index 2aeb6790..7942aa73 100644 --- a/app/src/main/resources/web/assets/WiFiView-Cf7pDl6y.js +++ b/app/src/main/resources/web/assets/WiFiView-DcmCXVXc.js @@ -1,4 +1,4 @@ -var P=Object.defineProperty;var Q=(i,s,t)=>s in i?P(i,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[s]=t;var w=(i,s,t)=>(Q(i,typeof s!="symbol"?s+"":s,t),t);import{_ as W}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BaOpzcW2.js";import{o as M,c as E,a as e,d as A,g as G,h as v,au as S,l as J,C as K,ac as B,c0 as D,j as X,p as g,m as l,x as r,aL as _,t as p,z as H,y as Y,c1 as Z,w as ee,O as te}from"./index-BzaaAwnX.js";import{_ as se}from"./EditToolbar.vuevuetypescriptsetuptruelang-BN3_Xe4L.js";import{_ as oe}from"./Breadcrumb-Dw4cmHLf.js";import{u as ne,a as U}from"./vee-validate.esm-DNjIRPsN.js";const ae={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},le=e("path",{fill:"currentColor",d:"M12 16q1.875 0 3.188-1.312T16.5 11.5t-1.312-3.187T12 7T8.813 8.313T7.5 11.5t1.313 3.188T12 16m0-1.8q-1.125 0-1.912-.788T9.3 11.5t.788-1.912T12 8.8t1.913.788t.787 1.912t-.787 1.913T12 14.2m0 4.8q-3.35 0-6.113-1.8t-4.362-4.75q-.125-.225-.187-.462t-.063-.488t.063-.488t.187-.462q1.6-2.95 4.363-4.75T12 4t6.113 1.8t4.362 4.75q.125.225.188.463t.062.487t-.062.488t-.188.462q-1.6 2.95-4.362 4.75T12 19m0-2q2.825 0 5.188-1.487T20.8 11.5q-1.25-2.525-3.613-4.012T12 6T6.813 7.488T3.2 11.5q1.25 2.525 3.613 4.013T12 17"},null,-1),ie=[le];function ce(i,s){return M(),E("svg",ae,[...ie])}const de={name:"material-symbols-visibility-outline-rounded",render:ce},re={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ue=e("path",{fill:"currentColor",d:"M15.175 8.325q.725.725 1.063 1.65t.237 1.9q0 .375-.275.638t-.65.262t-.638-.262t-.262-.638q.125-.65-.075-1.25T13.95 9.6t-1.025-.65t-1.275-.1q-.375 0-.638-.275t-.262-.65t.263-.637t.637-.263q.95-.1 1.875.238t1.65 1.062M12 6q-.475 0-.925.037t-.9.138q-.425.075-.763-.125t-.462-.6t.088-.775t.612-.45q.575-.125 1.163-.175T12 4q3.425 0 6.263 1.8t4.337 4.85q.1.2.15.413t.05.437t-.038.438t-.137.412q-.45 1-1.112 1.875t-1.463 1.6q-.3.275-.7.225t-.65-.4t-.212-.763t.337-.687q.6-.575 1.1-1.25t.875-1.45q-1.25-2.525-3.613-4.012T12 6m0 13q-3.35 0-6.125-1.812T1.5 12.425q-.125-.2-.187-.437T1.25 11.5t.05-.475t.175-.45q.5-1 1.163-1.912T4.15 7L2.075 4.9q-.275-.3-.262-.712T2.1 3.5t.7-.275t.7.275l17 17q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275l-3.5-3.45q-.875.275-1.775.413T12 19M5.55 8.4q-.725.65-1.325 1.425T3.2 11.5q1.25 2.525 3.613 4.013T12 17q.5 0 .975-.062t.975-.138l-.9-.95q-.275.075-.525.113T12 16q-1.875 0-3.188-1.312T7.5 11.5q0-.275.038-.525t.112-.525zm4.2 4.2"},null,-1),me=[ue];function _e(i,s){return M(),E("svg",re,[...me])}const pe={name:"material-symbols-visibility-off-outline-rounded",render:_e};class T{constructor(){w(this,"line","");w(this,"key","");w(this,"value","")}update(s,t){this.line=this.line.replace(new RegExp(`^(${s}s*=s*).+$`),(o,n)=>n+t),this.value=t}static create(s,t){const o=new T;return o.key=s,o.value=t,o.line=`${s} = ${t}`,o}}function I(i){const s=[],t=i.split(` +var P=Object.defineProperty;var Q=(i,s,t)=>s in i?P(i,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[s]=t;var w=(i,s,t)=>(Q(i,typeof s!="symbol"?s+"":s,t),t);import{_ as W}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BNZRjtJE.js";import{o as M,c as E,a as e,d as A,g as G,h as v,au as S,l as J,C as K,ac as B,c0 as D,j as X,p as g,m as l,x as r,aL as _,t as p,z as H,y as Y,c1 as Z,w as ee,O as te}from"./index-R8dLcqG_.js";import{_ as se}from"./EditToolbar.vuevuetypescriptsetuptruelang-CKd0R4yf.js";import{_ as oe}from"./Breadcrumb-CXy0PDtB.js";import{u as ne,a as U}from"./vee-validate.esm-vpr6zxQb.js";const ae={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},le=e("path",{fill:"currentColor",d:"M12 16q1.875 0 3.188-1.312T16.5 11.5t-1.312-3.187T12 7T8.813 8.313T7.5 11.5t1.313 3.188T12 16m0-1.8q-1.125 0-1.912-.788T9.3 11.5t.788-1.912T12 8.8t1.913.788t.787 1.912t-.787 1.913T12 14.2m0 4.8q-3.35 0-6.113-1.8t-4.362-4.75q-.125-.225-.187-.462t-.063-.488t.063-.488t.187-.462q1.6-2.95 4.363-4.75T12 4t6.113 1.8t4.362 4.75q.125.225.188.463t.062.487t-.062.488t-.188.462q-1.6 2.95-4.362 4.75T12 19m0-2q2.825 0 5.188-1.487T20.8 11.5q-1.25-2.525-3.613-4.012T12 6T6.813 7.488T3.2 11.5q1.25 2.525 3.613 4.013T12 17"},null,-1),ie=[le];function ce(i,s){return M(),E("svg",ae,[...ie])}const de={name:"material-symbols-visibility-outline-rounded",render:ce},re={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ue=e("path",{fill:"currentColor",d:"M15.175 8.325q.725.725 1.063 1.65t.237 1.9q0 .375-.275.638t-.65.262t-.638-.262t-.262-.638q.125-.65-.075-1.25T13.95 9.6t-1.025-.65t-1.275-.1q-.375 0-.638-.275t-.262-.65t.263-.637t.637-.263q.95-.1 1.875.238t1.65 1.062M12 6q-.475 0-.925.037t-.9.138q-.425.075-.763-.125t-.462-.6t.088-.775t.612-.45q.575-.125 1.163-.175T12 4q3.425 0 6.263 1.8t4.337 4.85q.1.2.15.413t.05.437t-.038.438t-.137.412q-.45 1-1.112 1.875t-1.463 1.6q-.3.275-.7.225t-.65-.4t-.212-.763t.337-.687q.6-.575 1.1-1.25t.875-1.45q-1.25-2.525-3.613-4.012T12 6m0 13q-3.35 0-6.125-1.812T1.5 12.425q-.125-.2-.187-.437T1.25 11.5t.05-.475t.175-.45q.5-1 1.163-1.912T4.15 7L2.075 4.9q-.275-.3-.262-.712T2.1 3.5t.7-.275t.7.275l17 17q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275l-3.5-3.45q-.875.275-1.775.413T12 19M5.55 8.4q-.725.65-1.325 1.425T3.2 11.5q1.25 2.525 3.613 4.013T12 17q.5 0 .975-.062t.975-.138l-.9-.95q-.275.075-.525.113T12 16q-1.875 0-3.188-1.312T7.5 11.5q0-.275.038-.525t.112-.525zm4.2 4.2"},null,-1),me=[ue];function _e(i,s){return M(),E("svg",re,[...me])}const pe={name:"material-symbols-visibility-off-outline-rounded",render:_e};class T{constructor(){w(this,"line","");w(this,"key","");w(this,"value","")}update(s,t){this.line=this.line.replace(new RegExp(`^(${s}s*=s*).+$`),(o,n)=>n+t),this.value=t}static create(s,t){const o=new T;return o.key=s,o.value=t,o.line=`${s} = ${t}`,o}}function I(i){const s=[],t=i.split(` `);for(const o of t){const n=o.split("="),d=new T;d.line=o,n.length>1&&(d.key=n[0].trimEnd(),d.value=n[1].trimStart()),s.push(d)}return s}function V(i,s,t){let o=i.find(n=>n.key==s);o?o.update(s,t):(o=T.create(s,t),i.push(o))}const he={class:"row mb-3"},fe={for:"is-enabled",class:"col-sm-3 col-md-2 col-form-label"},ve={class:"col-sm-4"},ge={class:"form-check"},be=["checked"],qe={class:"row mb-3"},we={for:"ssid",class:"col-sm-3 col-md-2 col-form-label"},Te={class:"col-sm-4"},ye={class:"row mb-3"},$e={for:"password",class:"col-sm-3 col-md-2 col-form-label"},ke={class:"col-sm-4"},xe={class:"input-group"},Ce=["type"],Ve={class:"inner"},Me={class:"row mb-3"},Ee={for:"hide-ssid",class:"col-sm-3 col-md-2 col-form-label"},Fe={class:"col-sm-4"},Se={class:"form-check"},Be=["checked"],ze=A({__name:"WiFiView",setup(i){const{handleSubmit:s}=ne(),{t}=G(),o=v(0),n=v(""),{value:d,errorMessage:y}=U("password",S().required().min(8)),{value:h,errorMessage:$}=U("ssid",S().required()),f=v(!1),k=v(!1),x=v(!1);function L(){f.value=!f.value}J({handle:(c,a)=>{a?K(t(a),"error"):(n.value=c.hostapd.config,k.value=c.hostapd.isEnabled,F())},document:B` query { hostapd { diff --git a/app/src/main/resources/web/assets/WireGuardEditView-DBMZogVu.js b/app/src/main/resources/web/assets/WireGuardEditView-aVmc_Sci.js similarity index 92% rename from app/src/main/resources/web/assets/WireGuardEditView-DBMZogVu.js rename to app/src/main/resources/web/assets/WireGuardEditView-aVmc_Sci.js index 4c757f85..dae1d608 100644 --- a/app/src/main/resources/web/assets/WireGuardEditView-DBMZogVu.js +++ b/app/src/main/resources/web/assets/WireGuardEditView-aVmc_Sci.js @@ -1,4 +1,4 @@ -import{_ as M}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BaOpzcW2.js";import{_ as P}from"./EditToolbar.vuevuetypescriptsetuptruelang-BN3_Xe4L.js";import{_ as S}from"./Breadcrumb-Dw4cmHLf.js";import{d as j,g as D,h as _,l as O,C as h,ac as x,c2 as U,j as T,c as Q,p as A,m as F,O as R,Q as q,o as N}from"./index-BzaaAwnX.js";import{p as G,g as B}from"./parser-DNY2aV9Q.js";function s(a){const t=new Float64Array(16);if(a)for(let r=0;r>16&1),e[n-1]&=65535;e[15]=o[15]-32767-(e[14]>>16&1),r=e[15]>>16&1,e[14]&=65535,y(o,e,1-r)}for(var n=0;n<16;++n)a[2*n]=o[n]&255,a[2*n+1]=o[n]>>8}function v(a){for(let t=0;t<16;++t)a[(t+1)%16]+=(t<15?1:38)*Math.floor(a[t]/65536),a[t]&=65535}function y(a,t,r){let e,o=~(r-1);for(let n=0;n<16;++n)e=o&(a[n]^t[n]),a[n]^=e,t[n]^=e}function w(a,t,r){for(let e=0;e<16;++e)a[e]=t[e]+r[e]|0}function K(a,t,r){for(let e=0;e<16;++e)a[e]=t[e]-r[e]|0}function l(a,t,r){const e=new Float64Array(31);for(let o=0;o<16;++o)for(let n=0;n<16;++n)e[o+n]+=t[o]*r[n];for(let o=0;o<15;++o)e[o]+=38*e[o+16];for(let o=0;o<16;++o)a[o]=e[o];v(a),v(a)}function H(a,t){const r=s();for(let e=0;e<16;++e)r[e]=t[e];for(let e=253;e>=0;--e)l(r,r,r),e!==2&&e!==4&&l(r,r,t);for(let e=0;e<16;++e)a[e]=r[e]}function k(a){a[31]=a[31]&127|64,a[0]&=248}function J(a){let t;const r=new Uint8Array(32),e=s([1]),o=s([9]),n=s(),i=s([1]),f=s(),g=s(),$=s([56129,1]),I=s([9]);for(var u=0;u<32;++u)r[u]=a[u];k(r);for(var u=254;u>=0;--u)t=r[u>>>3]>>>(u&7)&1,y(e,o,t),y(n,i,t),w(f,e,n),K(e,e,n),w(n,o,i),K(o,o,i),l(i,f,f),l(g,e,e),l(e,n,e),l(n,o,f),w(f,e,n),K(e,e,n),l(o,e,e),K(n,i,g),l(e,n,$),w(e,e,i),l(n,n,e),l(e,i,g),l(i,o,I),l(o,f,f),y(e,o,t),y(n,i,t);return H(n,n),l(e,e,n),z(r,e),r}function L(){const a=new Uint8Array(32);return crypto.getRandomValues(a),a}function X(){const a=L();return k(a),a}function C(a,t){const r=Uint8Array.from([t[0]>>2&63,(t[0]<<4|t[1]>>4)&63,(t[1]<<2|t[2]>>6)&63,t[2]&63]);for(let e=0;e<4;++e)a[e]=r[e]+65+(25-r[e]>>8&6)-(51-r[e]>>8&75)-(61-r[e]>>8&15)+(62-r[e]>>8&3)}function W(a){let t;const r=new Uint8Array(44);for(t=0;t<32/3;++t)C(r.subarray(t*4),a.subarray(t*3));return C(r.subarray(t*4),Uint8Array.from([a[t*3+0],a[t*3+1],0])),r[43]=61,new TextDecoder().decode(r)}const Y=()=>{const a=X(),t=J(a);return{publicKey:W(t),privateKey:W(a)}},re=j({__name:"WireGuardEditView",setup(a){const{t}=D(),r=_(0),o=q().params.id,n=_(""),i=_(""),f=_(!1),g=[{id:"add-peer",label:"Add peer",precondition:null,keybindingContext:null,contextMenuGroupId:"navigation",contextMenuOrder:0,run:function(){var b;const c=G(n.value);c.wgInterface.table="off";const d=((b=c.wgInterface.address)==null?void 0:b[0])??"",m=Y(),p=c.peers.length;c.peers.push({name:`Peer ${p+1}`,allowedIps:[d.substring(0,d.lastIndexOf("."))+`.${p+2}/32`],privateKey:m.privateKey,publicKey:m.publicKey}),n.value=B(c)}}];O({handle:(c,d)=>{if(d)h(t(d),"error");else{const m=c.wireGuards.find(p=>p.id===o);if(m){n.value=m.config;const p=G(m.config);i.value=(p==null?void 0:p.wgInterface.name)??"",f.value=m.isEnabled}}},document:x` +import{_ as M}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BNZRjtJE.js";import{_ as P}from"./EditToolbar.vuevuetypescriptsetuptruelang-CKd0R4yf.js";import{_ as S}from"./Breadcrumb-CXy0PDtB.js";import{d as j,g as D,h as _,l as O,C as h,ac as x,c2 as U,j as T,c as Q,p as A,m as F,O as R,Q as q,o as N}from"./index-R8dLcqG_.js";import{p as G,g as B}from"./parser-DNY2aV9Q.js";function s(a){const t=new Float64Array(16);if(a)for(let r=0;r>16&1),e[n-1]&=65535;e[15]=o[15]-32767-(e[14]>>16&1),r=e[15]>>16&1,e[14]&=65535,y(o,e,1-r)}for(var n=0;n<16;++n)a[2*n]=o[n]&255,a[2*n+1]=o[n]>>8}function v(a){for(let t=0;t<16;++t)a[(t+1)%16]+=(t<15?1:38)*Math.floor(a[t]/65536),a[t]&=65535}function y(a,t,r){let e,o=~(r-1);for(let n=0;n<16;++n)e=o&(a[n]^t[n]),a[n]^=e,t[n]^=e}function w(a,t,r){for(let e=0;e<16;++e)a[e]=t[e]+r[e]|0}function K(a,t,r){for(let e=0;e<16;++e)a[e]=t[e]-r[e]|0}function l(a,t,r){const e=new Float64Array(31);for(let o=0;o<16;++o)for(let n=0;n<16;++n)e[o+n]+=t[o]*r[n];for(let o=0;o<15;++o)e[o]+=38*e[o+16];for(let o=0;o<16;++o)a[o]=e[o];v(a),v(a)}function H(a,t){const r=s();for(let e=0;e<16;++e)r[e]=t[e];for(let e=253;e>=0;--e)l(r,r,r),e!==2&&e!==4&&l(r,r,t);for(let e=0;e<16;++e)a[e]=r[e]}function k(a){a[31]=a[31]&127|64,a[0]&=248}function J(a){let t;const r=new Uint8Array(32),e=s([1]),o=s([9]),n=s(),i=s([1]),f=s(),g=s(),$=s([56129,1]),I=s([9]);for(var u=0;u<32;++u)r[u]=a[u];k(r);for(var u=254;u>=0;--u)t=r[u>>>3]>>>(u&7)&1,y(e,o,t),y(n,i,t),w(f,e,n),K(e,e,n),w(n,o,i),K(o,o,i),l(i,f,f),l(g,e,e),l(e,n,e),l(n,o,f),w(f,e,n),K(e,e,n),l(o,e,e),K(n,i,g),l(e,n,$),w(e,e,i),l(n,n,e),l(e,i,g),l(i,o,I),l(o,f,f),y(e,o,t),y(n,i,t);return H(n,n),l(e,e,n),z(r,e),r}function L(){const a=new Uint8Array(32);return crypto.getRandomValues(a),a}function X(){const a=L();return k(a),a}function C(a,t){const r=Uint8Array.from([t[0]>>2&63,(t[0]<<4|t[1]>>4)&63,(t[1]<<2|t[2]>>6)&63,t[2]&63]);for(let e=0;e<4;++e)a[e]=r[e]+65+(25-r[e]>>8&6)-(51-r[e]>>8&75)-(61-r[e]>>8&15)+(62-r[e]>>8&3)}function W(a){let t;const r=new Uint8Array(44);for(t=0;t<32/3;++t)C(r.subarray(t*4),a.subarray(t*3));return C(r.subarray(t*4),Uint8Array.from([a[t*3+0],a[t*3+1],0])),r[43]=61,new TextDecoder().decode(r)}const Y=()=>{const a=X(),t=J(a);return{publicKey:W(t),privateKey:W(a)}},re=j({__name:"WireGuardEditView",setup(a){const{t}=D(),r=_(0),o=q().params.id,n=_(""),i=_(""),f=_(!1),g=[{id:"add-peer",label:"Add peer",precondition:null,keybindingContext:null,contextMenuGroupId:"navigation",contextMenuOrder:0,run:function(){var b;const c=G(n.value);c.wgInterface.table="off";const d=((b=c.wgInterface.address)==null?void 0:b[0])??"",m=Y(),p=c.peers.length;c.peers.push({name:`Peer ${p+1}`,allowedIps:[d.substring(0,d.lastIndexOf("."))+`.${p+2}/32`],privateKey:m.privateKey,publicKey:m.publicKey}),n.value=B(c)}}];O({handle:(c,d)=>{if(d)h(t(d),"error");else{const m=c.wireGuards.find(p=>p.id===o);if(m){n.value=m.config;const p=G(m.config);i.value=(p==null?void 0:p.wgInterface.name)??"",f.value=m.isEnabled}}},document:x` query { wireGuards { ...WireGuardFragment diff --git a/app/src/main/resources/web/assets/WireGuardView-volrBImr.js b/app/src/main/resources/web/assets/WireGuardView-C8ywVKyM.js similarity index 94% rename from app/src/main/resources/web/assets/WireGuardView-volrBImr.js rename to app/src/main/resources/web/assets/WireGuardView-C8ywVKyM.js index 3acb136a..aabf5ddc 100644 --- a/app/src/main/resources/web/assets/WireGuardView-volrBImr.js +++ b/app/src/main/resources/web/assets/WireGuardView-C8ywVKyM.js @@ -1,4 +1,4 @@ -import{d as y,u as D,h as M,g as B,l as F,C as q,ac as o,c2 as g,j as E,c as r,p as f,a as e,t,O as $,P as N,o as i,m,w as b,f as P,Z as S,ad as V,a3 as j}from"./index-BzaaAwnX.js";import{_ as A}from"./Breadcrumb-Dw4cmHLf.js";import{p as L}from"./parser-DNY2aV9Q.js";const O={class:"table-responsive"},Q={class:"table"},Z=e("th",null,"ID",-1),z={class:"actions two"},H={class:"form-check"},J=["disabled","onChange","checked"],K={class:"actions two"},R=["onClick"],T=["onClick"],ee=y({__name:"WireGuardView",setup(U){const w=D(),d=M([]),{t:u}=B();function k(n){P(w,`/wireguard/${n}`)}F({handle:(n,s)=>{s?q(u(s),"error"):d.value=n.wireGuards.map(l=>({...l,...L(l.config)}))},document:o` +import{d as y,u as D,h as M,g as B,l as F,C as q,ac as o,c2 as g,j as E,c as r,p as f,a as e,t,O as $,P as N,o as i,m,w as b,f as P,Z as S,ad as V,a3 as j}from"./index-R8dLcqG_.js";import{_ as A}from"./Breadcrumb-CXy0PDtB.js";import{p as L}from"./parser-DNY2aV9Q.js";const O={class:"table-responsive"},Q={class:"table"},Z=e("th",null,"ID",-1),z={class:"actions two"},H={class:"form-check"},J=["disabled","onChange","checked"],K={class:"actions two"},R=["onClick"],T=["onClick"],ee=y({__name:"WireGuardView",setup(U){const w=D(),d=M([]),{t:u}=B();function k(n){P(w,`/wireguard/${n}`)}F({handle:(n,s)=>{s?q(u(s),"error"):d.value=n.wireGuards.map(l=>({...l,...L(l.config)}))},document:o` query { wireGuards { ...WireGuardFragment diff --git a/app/src/main/resources/web/assets/add-notes-outline-rounded-CDQXzmCq.js b/app/src/main/resources/web/assets/add-notes-outline-rounded-CJxyoeFp.js similarity index 96% rename from app/src/main/resources/web/assets/add-notes-outline-rounded-CDQXzmCq.js rename to app/src/main/resources/web/assets/add-notes-outline-rounded-CJxyoeFp.js index 2c9fc508..9ab832ae 100644 --- a/app/src/main/resources/web/assets/add-notes-outline-rounded-CDQXzmCq.js +++ b/app/src/main/resources/web/assets/add-notes-outline-rounded-CJxyoeFp.js @@ -1 +1 @@ -import{o as t,c as e,a as T}from"./index-BzaaAwnX.js";const q={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=T("path",{fill:"currentColor",d:"M6 12.05q0 1.125.425 2.188T7.75 16.2l.25.25V15q0-.425.288-.712T9 14t.713.288T10 15v4q0 .425-.288.713T9 20H5q-.425 0-.712-.288T4 19t.288-.712T5 18h1.75l-.4-.35q-1.3-1.15-1.825-2.625T4 12.05Q4 9.7 5.2 7.787T8.425 4.85q.35-.2.738-.025t.512.575q.125.375-.012.75t-.488.575q-1.45.8-2.312 2.213T6 12.05m12-.1q0-1.125-.425-2.187T16.25 7.8L16 7.55V9q0 .425-.288.713T15 10t-.712-.288T14 9V5q0-.425.288-.712T15 4h4q.425 0 .713.288T20 5t-.288.713T19 6h-1.75l.4.35q1.225 1.225 1.788 2.663T20 11.95q0 2.35-1.2 4.263t-3.225 2.937q-.35.2-.737.025t-.513-.575q-.125-.375.013-.75t.487-.575q1.45-.8 2.313-2.212T18 11.95"},null,-1),h=[s];function c(o,n){return t(),e("svg",q,[...h])}const m={name:"material-symbols-sync-rounded",render:c},r={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},_=T("path",{fill:"currentColor",d:"M17.5 18.5v2q0 .2.15.35T18 21t.35-.15t.15-.35v-2h2q.2 0 .35-.15T21 18t-.15-.35t-.35-.15h-2v-2q0-.2-.15-.35T18 15t-.35.15t-.15.35v2h-2q-.2 0-.35.15T15 18t.15.35t.35.15zM5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v5q0 .425-.288.713T20 11t-.712-.288T19 10V5H5v14h5q.425 0 .713.288T11 20t-.288.713T10 21zm0-3v1V5v6.075V11zm2-2q0 .425.288.713T8 17h2.075q.425 0 .713-.288t.287-.712t-.287-.712t-.713-.288H8q-.425 0-.712.288T7 16m0-4q0 .425.288.713T8 13h5q.425 0 .713-.288T14 12t-.288-.712T13 11H8q-.425 0-.712.288T7 12m0-4q0 .425.288.713T8 9h8q.425 0 .713-.288T17 8t-.288-.712T16 7H8q-.425 0-.712.288T7 8m11 15q-2.075 0-3.537-1.463T13 18t1.463-3.537T18 13t3.538 1.463T23 18t-1.463 3.538T18 23"},null,-1),l=[_];function i(o,n){return t(),e("svg",r,[...l])}const d={name:"material-symbols-add-notes-outline-rounded",render:i};export{d as _,m as a}; +import{o as t,c as e,a as T}from"./index-R8dLcqG_.js";const q={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=T("path",{fill:"currentColor",d:"M6 12.05q0 1.125.425 2.188T7.75 16.2l.25.25V15q0-.425.288-.712T9 14t.713.288T10 15v4q0 .425-.288.713T9 20H5q-.425 0-.712-.288T4 19t.288-.712T5 18h1.75l-.4-.35q-1.3-1.15-1.825-2.625T4 12.05Q4 9.7 5.2 7.787T8.425 4.85q.35-.2.738-.025t.512.575q.125.375-.012.75t-.488.575q-1.45.8-2.312 2.213T6 12.05m12-.1q0-1.125-.425-2.187T16.25 7.8L16 7.55V9q0 .425-.288.713T15 10t-.712-.288T14 9V5q0-.425.288-.712T15 4h4q.425 0 .713.288T20 5t-.288.713T19 6h-1.75l.4.35q1.225 1.225 1.788 2.663T20 11.95q0 2.35-1.2 4.263t-3.225 2.937q-.35.2-.737.025t-.513-.575q-.125-.375.013-.75t.487-.575q1.45-.8 2.313-2.212T18 11.95"},null,-1),h=[s];function c(o,n){return t(),e("svg",q,[...h])}const m={name:"material-symbols-sync-rounded",render:c},r={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},_=T("path",{fill:"currentColor",d:"M17.5 18.5v2q0 .2.15.35T18 21t.35-.15t.15-.35v-2h2q.2 0 .35-.15T21 18t-.15-.35t-.35-.15h-2v-2q0-.2-.15-.35T18 15t-.35.15t-.15.35v2h-2q-.2 0-.35.15T15 18t.15.35t.35.15zM5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v5q0 .425-.288.713T20 11t-.712-.288T19 10V5H5v14h5q.425 0 .713.288T11 20t-.288.713T10 21zm0-3v1V5v6.075V11zm2-2q0 .425.288.713T8 17h2.075q.425 0 .713-.288t.287-.712t-.287-.712t-.713-.288H8q-.425 0-.712.288T7 16m0-4q0 .425.288.713T8 13h5q.425 0 .713-.288T14 12t-.288-.712T13 11H8q-.425 0-.712.288T7 12m0-4q0 .425.288.713T8 9h8q.425 0 .713-.288T17 8t-.288-.712T16 7H8q-.425 0-.712.288T7 8m11 15q-2.075 0-3.537-1.463T13 18t1.463-3.537T18 13t3.538 1.463T23 18t-1.463 3.538T18 23"},null,-1),l=[_];function i(o,n){return t(),e("svg",r,[...l])}const d={name:"material-symbols-add-notes-outline-rounded",render:i};export{d as _,m as a}; diff --git a/app/src/main/resources/web/assets/call-outline-rounded-vG9wdFxG.js b/app/src/main/resources/web/assets/call-outline-rounded-BLAgo6pA.js similarity index 91% rename from app/src/main/resources/web/assets/call-outline-rounded-vG9wdFxG.js rename to app/src/main/resources/web/assets/call-outline-rounded-BLAgo6pA.js index b8f2d71f..bc2c793a 100644 --- a/app/src/main/resources/web/assets/call-outline-rounded-vG9wdFxG.js +++ b/app/src/main/resources/web/assets/call-outline-rounded-BLAgo6pA.js @@ -1 +1 @@ -import{o as e,c as t,a as o}from"./index-BzaaAwnX.js";const l={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},n=o("path",{fill:"currentColor",d:"M19.95 21q-3.225 0-6.287-1.438t-5.425-3.8q-2.363-2.362-3.8-5.425T3 4.05q0-.45.3-.75t.75-.3H8.1q.35 0 .625.225t.325.575l.65 3.5q.05.35-.013.638T9.4 8.45L6.975 10.9q1.05 1.8 2.638 3.375T13.1 17l2.35-2.35q.225-.225.588-.338t.712-.062l3.45.7q.35.075.575.338T21 15.9v4.05q0 .45-.3.75t-.75.3ZM6.025 9l1.65-1.65L7.25 5H5.025q.125 1.025.35 2.025T6.025 9ZM19 18.95v-2.2l-2.35-.475l-1.675 1.675q.975.425 1.987.675T19 18.95Zm-4-1.025ZM6.025 9Z"},null,-1),c=[n];function s(a,r){return e(),t("svg",l,[...c])}const i={name:"material-symbols-call-outline-rounded",render:s};export{i as _}; +import{o as e,c as t,a as o}from"./index-R8dLcqG_.js";const l={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},n=o("path",{fill:"currentColor",d:"M19.95 21q-3.225 0-6.287-1.438t-5.425-3.8q-2.363-2.362-3.8-5.425T3 4.05q0-.45.3-.75t.75-.3H8.1q.35 0 .625.225t.325.575l.65 3.5q.05.35-.013.638T9.4 8.45L6.975 10.9q1.05 1.8 2.638 3.375T13.1 17l2.35-2.35q.225-.225.588-.338t.712-.062l3.45.7q.35.075.575.338T21 15.9v4.05q0 .45-.3.75t-.75.3ZM6.025 9l1.65-1.65L7.25 5H5.025q.125 1.025.35 2.025T6.025 9ZM19 18.95v-2.2l-2.35-.475l-1.675 1.675q.975.425 1.987.675T19 18.95Zm-4-1.025ZM6.025 9Z"},null,-1),c=[n];function s(a,r){return e(),t("svg",l,[...c])}const i={name:"material-symbols-call-outline-rounded",render:s};export{i as _}; diff --git a/app/src/main/resources/web/assets/contact-page-outline-rounded-g8G2lc59.js b/app/src/main/resources/web/assets/contact-page-outline-rounded-By1MHhQ9.js similarity index 90% rename from app/src/main/resources/web/assets/contact-page-outline-rounded-g8G2lc59.js rename to app/src/main/resources/web/assets/contact-page-outline-rounded-By1MHhQ9.js index 9f5f8a3b..9989f754 100644 --- a/app/src/main/resources/web/assets/contact-page-outline-rounded-g8G2lc59.js +++ b/app/src/main/resources/web/assets/contact-page-outline-rounded-By1MHhQ9.js @@ -1 +1 @@ -import{o as t,c as e,a as o}from"./index-BzaaAwnX.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},c=o("path",{fill:"currentColor",d:"M12 14q.825 0 1.413-.587T14 12t-.587-1.412T12 10t-1.412.588T10 12t.588 1.413T12 14m-4 4h8v-.575q0-.6-.325-1.1t-.9-.75q-.65-.275-1.338-.425T12 15t-1.437.15t-1.338.425q-.575.25-.9.75T8 17.425zm10 4H6q-.825 0-1.412-.587T4 20V4q0-.825.588-1.412T6 2h7.175q.4 0 .763.15t.637.425l4.85 4.85q.275.275.425.638t.15.762V20q0 .825-.587 1.413T18 22m0-2V8.85L13.15 4H6v16zM6 20V4z"},null,-1),s=[c];function a(r,l){return t(),e("svg",n,[...s])}const i={name:"material-symbols-contact-page-outline-rounded",render:a};export{i as _}; +import{o as t,c as e,a as o}from"./index-R8dLcqG_.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},c=o("path",{fill:"currentColor",d:"M12 14q.825 0 1.413-.587T14 12t-.587-1.412T12 10t-1.412.588T10 12t.588 1.413T12 14m-4 4h8v-.575q0-.6-.325-1.1t-.9-.75q-.65-.275-1.338-.425T12 15t-1.437.15t-1.338.425q-.575.25-.9.75T8 17.425zm10 4H6q-.825 0-1.412-.587T4 20V4q0-.825.588-1.412T6 2h7.175q.4 0 .763.15t.637.425l4.85 4.85q.275.275.425.638t.15.762V20q0 .825-.587 1.413T18 22m0-2V8.85L13.15 4H6v16zM6 20V4z"},null,-1),s=[c];function a(r,l){return t(),e("svg",n,[...s])}const i={name:"material-symbols-contact-page-outline-rounded",render:a};export{i as _}; diff --git a/app/src/main/resources/web/assets/content-paste-rounded-DMWI-l4g.js b/app/src/main/resources/web/assets/content-paste-rounded-DUKWQrlf.js similarity index 89% rename from app/src/main/resources/web/assets/content-paste-rounded-DMWI-l4g.js rename to app/src/main/resources/web/assets/content-paste-rounded-DUKWQrlf.js index d109ad7b..2828bb5b 100644 --- a/app/src/main/resources/web/assets/content-paste-rounded-DMWI-l4g.js +++ b/app/src/main/resources/web/assets/content-paste-rounded-DUKWQrlf.js @@ -1 +1 @@ -import{o as e,c as t,a as o}from"./index-BzaaAwnX.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=o("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h4.175q.275-.875 1.075-1.437T12 1q1 0 1.788.563T14.85 3H19q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm0-2h14V5h-2v2q0 .425-.288.713T16 8H8q-.425 0-.712-.288T7 7V5H5zm7-14q.425 0 .713-.288T13 4t-.288-.712T12 3t-.712.288T11 4t.288.713T12 5"},null,-1),c=[s];function a(r,_){return e(),t("svg",n,[...c])}const h={name:"material-symbols-content-paste-rounded",render:a};export{h as _}; +import{o as e,c as t,a as o}from"./index-R8dLcqG_.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=o("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h4.175q.275-.875 1.075-1.437T12 1q1 0 1.788.563T14.85 3H19q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm0-2h14V5h-2v2q0 .425-.288.713T16 8H8q-.425 0-.712-.288T7 7V5H5zm7-14q.425 0 .713-.288T13 4t-.288-.712T12 3t-.712.288T11 4t.288.713T12 5"},null,-1),c=[s];function a(r,_){return e(),t("svg",n,[...c])}const h={name:"material-symbols-content-paste-rounded",render:a};export{h as _}; diff --git a/app/src/main/resources/web/assets/cssMode-DtbAo8VM.js b/app/src/main/resources/web/assets/cssMode-C9P57343.js similarity index 99% rename from app/src/main/resources/web/assets/cssMode-DtbAo8VM.js rename to app/src/main/resources/web/assets/cssMode-C9P57343.js index da49bbb4..506a7b45 100644 --- a/app/src/main/resources/web/assets/cssMode-DtbAo8VM.js +++ b/app/src/main/resources/web/assets/cssMode-C9P57343.js @@ -1,4 +1,4 @@ -var Fe=Object.defineProperty;var Le=(e,n,i)=>n in e?Fe(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(Le(e,typeof n!="symbol"?n+"":n,i),i);import{m as je}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BaOpzcW2.js";import"./index-BzaaAwnX.js";var Ne=Object.defineProperty,We=Object.getOwnPropertyDescriptor,Ue=Object.getOwnPropertyNames,Oe=Object.prototype.hasOwnProperty,Ve=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of Ue(n))!Oe.call(e,t)&&t!==i&&Ne(e,t,{get:()=>n[t],enumerable:!(r=We(n,t))||r.enumerable});return e},He=(e,n,i)=>(Ve(e,n,"default"),i),c={};He(c,je);var ze=2*60*1e3,Xe=class{constructor(e){E(this,"_defaults");E(this,"_idleCheckInterval");E(this,"_lastUsedTime");E(this,"_configChangeListener");E(this,"_worker");E(this,"_client");this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>ze&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},Y;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(Y||(Y={}));var U;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(U||(U={}));var k;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=U.MAX_VALUE),t===Number.MAX_VALUE&&(t=U.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&s.uinteger(t.line)&&s.uinteger(t.character)}e.is=i})(k||(k={}));var p;(function(e){function n(r,t,a,o){if(s.uinteger(r)&&s.uinteger(t)&&s.uinteger(a)&&s.uinteger(o))return{start:k.create(r,t),end:k.create(a,o)};if(k.is(r)&&k.is(t))return{start:r,end:t};throw new Error("Range#create called with invalid arguments["+r+", "+t+", "+a+", "+o+"]")}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&k.is(t.start)&&k.is(t.end)}e.is=i})(p||(p={}));var X;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.range)&&(s.string(t.uri)||s.undefined(t.uri))}e.is=i})(X||(X={}));var Z;(function(e){function n(r,t,a,o){return{targetUri:r,targetRange:t,targetSelectionRange:a,originSelectionRange:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.targetRange)&&s.string(t.targetUri)&&(p.is(t.targetSelectionRange)||s.undefined(t.targetSelectionRange))&&(p.is(t.originSelectionRange)||s.undefined(t.originSelectionRange))}e.is=i})(Z||(Z={}));var B;(function(e){function n(r,t,a,o){return{red:r,green:t,blue:a,alpha:o}}e.create=n;function i(r){var t=r;return s.numberRange(t.red,0,1)&&s.numberRange(t.green,0,1)&&s.numberRange(t.blue,0,1)&&s.numberRange(t.alpha,0,1)}e.is=i})(B||(B={}));var K;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){var t=r;return p.is(t.range)&&B.is(t.color)}e.is=i})(K||(K={}));var ee;(function(e){function n(r,t,a){return{label:r,textEdit:t,additionalTextEdits:a}}e.create=n;function i(r){var t=r;return s.string(t.label)&&(s.undefined(t.textEdit)||C.is(t))&&(s.undefined(t.additionalTextEdits)||s.typedArray(t.additionalTextEdits,C.is))}e.is=i})(ee||(ee={}));var P;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(P||(P={}));var te;(function(e){function n(r,t,a,o,u){var g={startLine:r,endLine:t};return s.defined(a)&&(g.startCharacter=a),s.defined(o)&&(g.endCharacter=o),s.defined(u)&&(g.kind=u),g}e.create=n;function i(r){var t=r;return s.uinteger(t.startLine)&&s.uinteger(t.startLine)&&(s.undefined(t.startCharacter)||s.uinteger(t.startCharacter))&&(s.undefined(t.endCharacter)||s.uinteger(t.endCharacter))&&(s.undefined(t.kind)||s.string(t.kind))}e.is=i})(te||(te={}));var $;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&X.is(t.location)&&s.string(t.message)}e.is=i})($||($={}));var I;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(I||(I={}));var re;(function(e){e.Unnecessary=1,e.Deprecated=2})(re||(re={}));var ne;(function(e){function n(i){var r=i;return r!=null&&s.string(r.href)}e.is=n})(ne||(ne={}));var O;(function(e){function n(r,t,a,o,u,g){var d={range:r,message:t};return s.defined(a)&&(d.severity=a),s.defined(o)&&(d.code=o),s.defined(u)&&(d.source=u),s.defined(g)&&(d.relatedInformation=g),d}e.create=n;function i(r){var t,a=r;return s.defined(a)&&p.is(a.range)&&s.string(a.message)&&(s.number(a.severity)||s.undefined(a.severity))&&(s.integer(a.code)||s.string(a.code)||s.undefined(a.code))&&(s.undefined(a.codeDescription)||s.string((t=a.codeDescription)===null||t===void 0?void 0:t.href))&&(s.string(a.source)||s.undefined(a.source))&&(s.undefined(a.relatedInformation)||s.typedArray(a.relatedInformation,$.is))}e.is=i})(O||(O={}));var M;(function(e){function n(r,t){for(var a=[],o=2;o0&&(u.arguments=a),u}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.title)&&s.string(t.command)}e.is=i})(M||(M={}));var C;(function(e){function n(a,o){return{range:a,newText:o}}e.replace=n;function i(a,o){return{range:{start:a,end:a},newText:o}}e.insert=i;function r(a){return{range:a,newText:""}}e.del=r;function t(a){var o=a;return s.objectLiteral(o)&&s.string(o.newText)&&p.is(o.range)}e.is=t})(C||(C={}));var R;(function(e){function n(r,t,a){var o={label:r};return t!==void 0&&(o.needsConfirmation=t),a!==void 0&&(o.description=a),o}e.create=n;function i(r){var t=r;return t!==void 0&&s.objectLiteral(t)&&s.string(t.label)&&(s.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(s.string(t.description)||t.description===void 0)}e.is=i})(R||(R={}));var m;(function(e){function n(i){var r=i;return typeof r=="string"}e.is=n})(m||(m={}));var x;(function(e){function n(a,o,u){return{range:a,newText:o,annotationId:u}}e.replace=n;function i(a,o,u){return{range:{start:a,end:a},newText:o,annotationId:u}}e.insert=i;function r(a,o){return{range:a,newText:"",annotationId:o}}e.del=r;function t(a){var o=a;return C.is(o)&&(R.is(o.annotationId)||m.is(o.annotationId))}e.is=t})(x||(x={}));var V;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&H.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(V||(V={}));var T;(function(e){function n(r,t,a){var o={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="create"&&s.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(T||(T={}));var S;(function(e){function n(r,t,a,o){var u={kind:"rename",oldUri:r,newUri:t};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(u.options=a),o!==void 0&&(u.annotationId=o),u}e.create=n;function i(r){var t=r;return t&&t.kind==="rename"&&s.string(t.oldUri)&&s.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(S||(S={}));var F;(function(e){function n(r,t,a){var o={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="delete"&&s.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||s.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||s.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(F||(F={}));var q;(function(e){function n(i){var r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(t){return s.string(t.kind)?T.is(t)||S.is(t)||F.is(t):V.is(t)}))}e.is=n})(q||(q={}));var W=function(){function e(n,i){this.edits=n,this.changeAnnotations=i}return e.prototype.insert=function(n,i,r){var t,a;if(r===void 0?t=C.insert(n,i):m.is(r)?(a=r,t=x.insert(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.insert(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.replace=function(n,i,r){var t,a;if(r===void 0?t=C.replace(n,i):m.is(r)?(a=r,t=x.replace(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.replace(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.delete=function(n,i){var r,t;if(i===void 0?r=C.del(n):m.is(i)?(t=i,r=x.del(n,i)):(this.assertChangeAnnotations(this.changeAnnotations),t=this.changeAnnotations.manage(i),r=x.del(n,t)),this.edits.push(r),t!==void 0)return t},e.prototype.add=function(n){this.edits.push(n)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(n){if(n===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ie=function(){function e(n){this._annotations=n===void 0?Object.create(null):n,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(n,i){var r;if(m.is(n)?r=n:(r=this.nextId(),i=n),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=i,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(n){var i=this;this._textEditChanges=Object.create(null),n!==void 0?(this._workspaceEdit=n,n.documentChanges?(this._changeAnnotations=new ie(n.changeAnnotations),n.changeAnnotations=this._changeAnnotations.all(),n.documentChanges.forEach(function(r){if(V.is(r)){var t=new W(r.edits,i._changeAnnotations);i._textEditChanges[r.textDocument.uri]=t}})):n.changes&&Object.keys(n.changes).forEach(function(r){var t=new W(n.changes[r]);i._textEditChanges[r]=t})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(n){if(H.is(n)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:n.uri,version:n.version},r=this._textEditChanges[i.uri];if(!r){var t=[],a={textDocument:i,edits:t};this._workspaceEdit.documentChanges.push(a),r=new W(t,this._changeAnnotations),this._textEditChanges[i.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[n];if(!r){var t=[];this._workspaceEdit.changes[n]=t,r=new W(t),this._textEditChanges[n]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ie,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;R.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=T.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=T.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e.prototype.renameFile=function(n,i,r,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;R.is(r)||m.is(r)?a=r:t=r;var o,u;if(a===void 0?o=S.create(n,i,t):(u=m.is(a)?a:this._changeAnnotations.manage(a),o=S.create(n,i,t,u)),this._workspaceEdit.documentChanges.push(o),u!==void 0)return u},e.prototype.deleteFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;R.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=F.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=F.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e})();var ae;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)}e.is=i})(ae||(ae={}));var oe;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.integer(t.version)}e.is=i})(oe||(oe={}));var H;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&(t.version===null||s.integer(t.version))}e.is=i})(H||(H={}));var se;(function(e){function n(r,t,a,o){return{uri:r,languageId:t,version:a,text:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.string(t.languageId)&&s.integer(t.version)&&s.string(t.text)}e.is=i})(se||(se={}));var L;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(L||(L={}));(function(e){function n(i){var r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(L||(L={}));var Q;(function(e){function n(i){var r=i;return s.objectLiteral(i)&&L.is(r.kind)&&s.string(r.value)}e.is=n})(Q||(Q={}));var l;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(l||(l={}));var G;(function(e){e.PlainText=1,e.Snippet=2})(G||(G={}));var ue;(function(e){e.Deprecated=1})(ue||(ue={}));var ce;(function(e){function n(r,t,a){return{newText:r,insert:t,replace:a}}e.create=n;function i(r){var t=r;return t&&s.string(t.newText)&&p.is(t.insert)&&p.is(t.replace)}e.is=i})(ce||(ce={}));var de;(function(e){e.asIs=1,e.adjustIndentation=2})(de||(de={}));var fe;(function(e){function n(i){return{label:i}}e.create=n})(fe||(fe={}));var ge;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(ge||(ge={}));var z;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){var t=r;return s.string(t)||s.objectLiteral(t)&&s.string(t.language)&&s.string(t.value)}e.is=i})(z||(z={}));var le;(function(e){function n(i){var r=i;return!!r&&s.objectLiteral(r)&&(Q.is(r.contents)||z.is(r.contents)||s.typedArray(r.contents,z.is))&&(i.range===void 0||p.is(i.range))}e.is=n})(le||(le={}));var he;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(he||(he={}));var ve;(function(e){function n(i,r){for(var t=[],a=2;a=0;v--){var w=g[v],b=a.offsetAt(w.range.start),f=a.offsetAt(w.range.end);if(f<=d)u=u.substring(0,b)+w.newText+u.substring(f,u.length);else throw new Error("Overlapping edit");d=b}return u}e.applyEdits=r;function t(a,o){if(a.length<=1)return a;var u=a.length/2|0,g=a.slice(0,u),d=a.slice(u);t(g,o),t(d,o);for(var v=0,w=0,b=0;vn in e?Fe(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(Le(e,typeof n!="symbol"?n+"":n,i),i);import{m as je}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BNZRjtJE.js";import"./index-R8dLcqG_.js";var Ne=Object.defineProperty,We=Object.getOwnPropertyDescriptor,Ue=Object.getOwnPropertyNames,Oe=Object.prototype.hasOwnProperty,Ve=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of Ue(n))!Oe.call(e,t)&&t!==i&&Ne(e,t,{get:()=>n[t],enumerable:!(r=We(n,t))||r.enumerable});return e},He=(e,n,i)=>(Ve(e,n,"default"),i),c={};He(c,je);var ze=2*60*1e3,Xe=class{constructor(e){E(this,"_defaults");E(this,"_idleCheckInterval");E(this,"_lastUsedTime");E(this,"_configChangeListener");E(this,"_worker");E(this,"_client");this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>ze&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},Y;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(Y||(Y={}));var U;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(U||(U={}));var k;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=U.MAX_VALUE),t===Number.MAX_VALUE&&(t=U.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&s.uinteger(t.line)&&s.uinteger(t.character)}e.is=i})(k||(k={}));var p;(function(e){function n(r,t,a,o){if(s.uinteger(r)&&s.uinteger(t)&&s.uinteger(a)&&s.uinteger(o))return{start:k.create(r,t),end:k.create(a,o)};if(k.is(r)&&k.is(t))return{start:r,end:t};throw new Error("Range#create called with invalid arguments["+r+", "+t+", "+a+", "+o+"]")}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&k.is(t.start)&&k.is(t.end)}e.is=i})(p||(p={}));var X;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.range)&&(s.string(t.uri)||s.undefined(t.uri))}e.is=i})(X||(X={}));var Z;(function(e){function n(r,t,a,o){return{targetUri:r,targetRange:t,targetSelectionRange:a,originSelectionRange:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.targetRange)&&s.string(t.targetUri)&&(p.is(t.targetSelectionRange)||s.undefined(t.targetSelectionRange))&&(p.is(t.originSelectionRange)||s.undefined(t.originSelectionRange))}e.is=i})(Z||(Z={}));var B;(function(e){function n(r,t,a,o){return{red:r,green:t,blue:a,alpha:o}}e.create=n;function i(r){var t=r;return s.numberRange(t.red,0,1)&&s.numberRange(t.green,0,1)&&s.numberRange(t.blue,0,1)&&s.numberRange(t.alpha,0,1)}e.is=i})(B||(B={}));var K;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){var t=r;return p.is(t.range)&&B.is(t.color)}e.is=i})(K||(K={}));var ee;(function(e){function n(r,t,a){return{label:r,textEdit:t,additionalTextEdits:a}}e.create=n;function i(r){var t=r;return s.string(t.label)&&(s.undefined(t.textEdit)||C.is(t))&&(s.undefined(t.additionalTextEdits)||s.typedArray(t.additionalTextEdits,C.is))}e.is=i})(ee||(ee={}));var P;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(P||(P={}));var te;(function(e){function n(r,t,a,o,u){var g={startLine:r,endLine:t};return s.defined(a)&&(g.startCharacter=a),s.defined(o)&&(g.endCharacter=o),s.defined(u)&&(g.kind=u),g}e.create=n;function i(r){var t=r;return s.uinteger(t.startLine)&&s.uinteger(t.startLine)&&(s.undefined(t.startCharacter)||s.uinteger(t.startCharacter))&&(s.undefined(t.endCharacter)||s.uinteger(t.endCharacter))&&(s.undefined(t.kind)||s.string(t.kind))}e.is=i})(te||(te={}));var $;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&X.is(t.location)&&s.string(t.message)}e.is=i})($||($={}));var I;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(I||(I={}));var re;(function(e){e.Unnecessary=1,e.Deprecated=2})(re||(re={}));var ne;(function(e){function n(i){var r=i;return r!=null&&s.string(r.href)}e.is=n})(ne||(ne={}));var O;(function(e){function n(r,t,a,o,u,g){var d={range:r,message:t};return s.defined(a)&&(d.severity=a),s.defined(o)&&(d.code=o),s.defined(u)&&(d.source=u),s.defined(g)&&(d.relatedInformation=g),d}e.create=n;function i(r){var t,a=r;return s.defined(a)&&p.is(a.range)&&s.string(a.message)&&(s.number(a.severity)||s.undefined(a.severity))&&(s.integer(a.code)||s.string(a.code)||s.undefined(a.code))&&(s.undefined(a.codeDescription)||s.string((t=a.codeDescription)===null||t===void 0?void 0:t.href))&&(s.string(a.source)||s.undefined(a.source))&&(s.undefined(a.relatedInformation)||s.typedArray(a.relatedInformation,$.is))}e.is=i})(O||(O={}));var M;(function(e){function n(r,t){for(var a=[],o=2;o0&&(u.arguments=a),u}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.title)&&s.string(t.command)}e.is=i})(M||(M={}));var C;(function(e){function n(a,o){return{range:a,newText:o}}e.replace=n;function i(a,o){return{range:{start:a,end:a},newText:o}}e.insert=i;function r(a){return{range:a,newText:""}}e.del=r;function t(a){var o=a;return s.objectLiteral(o)&&s.string(o.newText)&&p.is(o.range)}e.is=t})(C||(C={}));var R;(function(e){function n(r,t,a){var o={label:r};return t!==void 0&&(o.needsConfirmation=t),a!==void 0&&(o.description=a),o}e.create=n;function i(r){var t=r;return t!==void 0&&s.objectLiteral(t)&&s.string(t.label)&&(s.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(s.string(t.description)||t.description===void 0)}e.is=i})(R||(R={}));var m;(function(e){function n(i){var r=i;return typeof r=="string"}e.is=n})(m||(m={}));var x;(function(e){function n(a,o,u){return{range:a,newText:o,annotationId:u}}e.replace=n;function i(a,o,u){return{range:{start:a,end:a},newText:o,annotationId:u}}e.insert=i;function r(a,o){return{range:a,newText:"",annotationId:o}}e.del=r;function t(a){var o=a;return C.is(o)&&(R.is(o.annotationId)||m.is(o.annotationId))}e.is=t})(x||(x={}));var V;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&H.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(V||(V={}));var T;(function(e){function n(r,t,a){var o={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="create"&&s.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(T||(T={}));var S;(function(e){function n(r,t,a,o){var u={kind:"rename",oldUri:r,newUri:t};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(u.options=a),o!==void 0&&(u.annotationId=o),u}e.create=n;function i(r){var t=r;return t&&t.kind==="rename"&&s.string(t.oldUri)&&s.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(S||(S={}));var F;(function(e){function n(r,t,a){var o={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="delete"&&s.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||s.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||s.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(F||(F={}));var q;(function(e){function n(i){var r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(t){return s.string(t.kind)?T.is(t)||S.is(t)||F.is(t):V.is(t)}))}e.is=n})(q||(q={}));var W=function(){function e(n,i){this.edits=n,this.changeAnnotations=i}return e.prototype.insert=function(n,i,r){var t,a;if(r===void 0?t=C.insert(n,i):m.is(r)?(a=r,t=x.insert(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.insert(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.replace=function(n,i,r){var t,a;if(r===void 0?t=C.replace(n,i):m.is(r)?(a=r,t=x.replace(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.replace(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.delete=function(n,i){var r,t;if(i===void 0?r=C.del(n):m.is(i)?(t=i,r=x.del(n,i)):(this.assertChangeAnnotations(this.changeAnnotations),t=this.changeAnnotations.manage(i),r=x.del(n,t)),this.edits.push(r),t!==void 0)return t},e.prototype.add=function(n){this.edits.push(n)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(n){if(n===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ie=function(){function e(n){this._annotations=n===void 0?Object.create(null):n,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(n,i){var r;if(m.is(n)?r=n:(r=this.nextId(),i=n),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=i,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(n){var i=this;this._textEditChanges=Object.create(null),n!==void 0?(this._workspaceEdit=n,n.documentChanges?(this._changeAnnotations=new ie(n.changeAnnotations),n.changeAnnotations=this._changeAnnotations.all(),n.documentChanges.forEach(function(r){if(V.is(r)){var t=new W(r.edits,i._changeAnnotations);i._textEditChanges[r.textDocument.uri]=t}})):n.changes&&Object.keys(n.changes).forEach(function(r){var t=new W(n.changes[r]);i._textEditChanges[r]=t})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(n){if(H.is(n)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:n.uri,version:n.version},r=this._textEditChanges[i.uri];if(!r){var t=[],a={textDocument:i,edits:t};this._workspaceEdit.documentChanges.push(a),r=new W(t,this._changeAnnotations),this._textEditChanges[i.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[n];if(!r){var t=[];this._workspaceEdit.changes[n]=t,r=new W(t),this._textEditChanges[n]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ie,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;R.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=T.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=T.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e.prototype.renameFile=function(n,i,r,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;R.is(r)||m.is(r)?a=r:t=r;var o,u;if(a===void 0?o=S.create(n,i,t):(u=m.is(a)?a:this._changeAnnotations.manage(a),o=S.create(n,i,t,u)),this._workspaceEdit.documentChanges.push(o),u!==void 0)return u},e.prototype.deleteFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;R.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=F.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=F.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e})();var ae;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)}e.is=i})(ae||(ae={}));var oe;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.integer(t.version)}e.is=i})(oe||(oe={}));var H;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&(t.version===null||s.integer(t.version))}e.is=i})(H||(H={}));var se;(function(e){function n(r,t,a,o){return{uri:r,languageId:t,version:a,text:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.string(t.languageId)&&s.integer(t.version)&&s.string(t.text)}e.is=i})(se||(se={}));var L;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(L||(L={}));(function(e){function n(i){var r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(L||(L={}));var Q;(function(e){function n(i){var r=i;return s.objectLiteral(i)&&L.is(r.kind)&&s.string(r.value)}e.is=n})(Q||(Q={}));var l;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(l||(l={}));var G;(function(e){e.PlainText=1,e.Snippet=2})(G||(G={}));var ue;(function(e){e.Deprecated=1})(ue||(ue={}));var ce;(function(e){function n(r,t,a){return{newText:r,insert:t,replace:a}}e.create=n;function i(r){var t=r;return t&&s.string(t.newText)&&p.is(t.insert)&&p.is(t.replace)}e.is=i})(ce||(ce={}));var de;(function(e){e.asIs=1,e.adjustIndentation=2})(de||(de={}));var fe;(function(e){function n(i){return{label:i}}e.create=n})(fe||(fe={}));var ge;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(ge||(ge={}));var z;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){var t=r;return s.string(t)||s.objectLiteral(t)&&s.string(t.language)&&s.string(t.value)}e.is=i})(z||(z={}));var le;(function(e){function n(i){var r=i;return!!r&&s.objectLiteral(r)&&(Q.is(r.contents)||z.is(r.contents)||s.typedArray(r.contents,z.is))&&(i.range===void 0||p.is(i.range))}e.is=n})(le||(le={}));var he;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(he||(he={}));var ve;(function(e){function n(i,r){for(var t=[],a=2;a=0;v--){var w=g[v],b=a.offsetAt(w.range.start),f=a.offsetAt(w.range.end);if(f<=d)u=u.substring(0,b)+w.newText+u.substring(f,u.length);else throw new Error("Overlapping edit");d=b}return u}e.applyEdits=r;function t(a,o){if(a.length<=1)return a;var u=a.length/2|0,g=a.slice(0,u),d=a.slice(u);t(g,o),t(d,o);for(var v=0,w=0,b=0;v0&&n.push(i.length),this._lineOffsets=n}return this._lineOffsets},e.prototype.positionAt=function(n){n=Math.max(Math.min(n,this._content.length),0);var i=this.getLineOffsets(),r=0,t=i.length;if(t===0)return k.create(0,n);for(;rn?t=a:r=a+1}var o=r-1;return k.create(o,n-i[o])},e.prototype.offsetAt=function(n){var i=this.getLineOffsets();if(n.line>=i.length)return this._content.length;if(n.line<0)return 0;var r=i[n.line],t=n.line+1"u"}e.undefined=r;function t(f){return f===!0||f===!1}e.boolean=t;function a(f){return n.call(f)==="[object String]"}e.string=a;function o(f){return n.call(f)==="[object Number]"}e.number=o;function u(f,y,N){return n.call(f)==="[object Number]"&&y<=f&&f<=N}e.numberRange=u;function g(f){return n.call(f)==="[object Number]"&&-2147483648<=f&&f<=2147483647}e.integer=g;function d(f){return n.call(f)==="[object Number]"&&0<=f&&f<=2147483647}e.uinteger=d;function v(f){return n.call(f)==="[object Function]"}e.func=v;function w(f){return f!==null&&typeof f=="object"}e.objectLiteral=w;function b(f,y){return Array.isArray(f)&&f.every(y)}e.typedArray=b})(s||(s={}));var $e=class{constructor(e,n,i){E(this,"_disposables",[]);E(this,"_listener",Object.create(null));this._languageId=e,this._worker=n;const r=a=>{let o=a.getLanguageId();if(o!==this._languageId)return;let u;this._listener[a.uri.toString()]=a.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(a.uri,o),500)}),this._doValidate(a.uri,o)},t=a=>{c.editor.setModelMarkers(a,this._languageId,[]);let o=a.uri.toString(),u=this._listener[o];u&&(u.dispose(),delete this._listener[o])};this._disposables.push(c.editor.onDidCreateModel(r)),this._disposables.push(c.editor.onWillDisposeModel(t)),this._disposables.push(c.editor.onDidChangeModelLanguage(a=>{t(a.model),r(a.model)})),this._disposables.push(i(a=>{c.editor.getModels().forEach(o=>{o.getLanguageId()===this._languageId&&(t(o),r(o))})})),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(t);for(let a in this._listener)this._listener[a].dispose()}}),c.editor.getModels().forEach(r)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,n){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const r=i.map(a=>Qe(e,a));let t=c.editor.getModel(e);t&&t.getLanguageId()===n&&c.editor.setModelMarkers(t,n,r)}).then(void 0,i=>{console.error(i)})}};function qe(e){switch(e){case I.Error:return c.MarkerSeverity.Error;case I.Warning:return c.MarkerSeverity.Warning;case I.Information:return c.MarkerSeverity.Info;case I.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}function Qe(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:qe(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var Ge=class{constructor(e,n){this._worker=e,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doComplete(t.toString(),A(n))).then(a=>{if(!a)return;const o=e.getWordUntilPosition(n),u=new c.Range(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn),g=a.items.map(d=>{const v={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:Ze(d.command),range:u,kind:Ye(d.kind)};return d.textEdit&&(Je(d.textEdit)?v.range={insert:_(d.textEdit.insert),replace:_(d.textEdit.replace)}:v.range=_(d.textEdit.range),v.insertText=d.textEdit.newText),d.additionalTextEdits&&(v.additionalTextEdits=d.additionalTextEdits.map(j)),d.insertTextFormat===G.Snippet&&(v.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),v});return{isIncomplete:a.isIncomplete,suggestions:g}})}};function A(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function De(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function _(e){if(e)return new c.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function Je(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function Ye(e){const n=c.languages.CompletionItemKind;switch(e){case l.Text:return n.Text;case l.Method:return n.Method;case l.Function:return n.Function;case l.Constructor:return n.Constructor;case l.Field:return n.Field;case l.Variable:return n.Variable;case l.Class:return n.Class;case l.Interface:return n.Interface;case l.Module:return n.Module;case l.Property:return n.Property;case l.Unit:return n.Unit;case l.Value:return n.Value;case l.Enum:return n.Enum;case l.Keyword:return n.Keyword;case l.Snippet:return n.Snippet;case l.Color:return n.Color;case l.File:return n.File;case l.Reference:return n.Reference}return n.Property}function j(e){if(e)return{range:_(e.range),text:e.newText}}function Ze(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var Ke=class{constructor(e){this._worker=e}provideHover(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.doHover(r.toString(),A(n))).then(t=>{if(t)return{range:_(t.range),contents:tt(t.contents)}})}};function et(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function Re(e){return typeof e=="string"?{value:e}:et(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+` `+e.value+"\n```\n"}}function tt(e){if(e)return Array.isArray(e)?e.map(Re):[Re(e)]}var rt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),A(n))).then(t=>{if(t)return t.map(a=>({range:_(a.range),kind:nt(a.kind)}))})}};function nt(e){switch(e){case D.Read:return c.languages.DocumentHighlightKind.Read;case D.Write:return c.languages.DocumentHighlightKind.Write;case D.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}var it=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),A(n))).then(t=>{if(t)return[Me(t)]})}};function Me(e){return{uri:c.Uri.parse(e.uri),range:_(e.range)}}var at=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.findReferences(t.toString(),A(n))).then(a=>{if(a)return a.map(Me)})}},ot=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doRename(t.toString(),A(n),i)).then(a=>st(a))}};function st(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=c.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:_(t.range),text:t.newText}})}return{edits:n}}var ut=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(r)return r.map(t=>({name:t.name,detail:"",containerName:t.containerName,kind:ct(t.kind),range:_(t.location.range),selectionRange:_(t.location.range),tags:[]}))})}};function ct(e){let n=c.languages.SymbolKind;switch(e){case h.File:return n.Array;case h.Module:return n.Module;case h.Namespace:return n.Namespace;case h.Package:return n.Package;case h.Class:return n.Class;case h.Method:return n.Method;case h.Property:return n.Property;case h.Field:return n.Field;case h.Constructor:return n.Constructor;case h.Enum:return n.Enum;case h.Interface:return n.Interface;case h.Function:return n.Function;case h.Variable:return n.Variable;case h.Constant:return n.Constant;case h.String:return n.String;case h.Number:return n.Number;case h.Boolean:return n.Boolean;case h.Array:return n.Array}return n.Function}var wt=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(r)return{links:r.map(t=>({range:_(t.range),url:t.target}))}})}},dt=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,Te(n)).then(a=>{if(!(!a||a.length===0))return a.map(j)}))}},ft=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.format(t.toString(),De(n),Te(i)).then(o=>{if(!(!o||o.length===0))return o.map(j)}))}};function Te(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var gt=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(r)return r.map(t=>({color:t.color,range:_(t.range)}))})}provideColorPresentations(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,De(n.range))).then(t=>{if(t)return t.map(a=>{let o={label:a.label};return a.textEdit&&(o.textEdit=j(a.textEdit)),a.additionalTextEdits&&(o.additionalTextEdits=a.additionalTextEdits.map(j)),o})})}},lt=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(t)return t.map(a=>{const o={start:a.startLine+1,end:a.endLine+1};return typeof a.kind<"u"&&(o.kind=ht(a.kind)),o})})}};function ht(e){switch(e){case P.Comment:return c.languages.FoldingRangeKind.Comment;case P.Imports:return c.languages.FoldingRangeKind.Imports;case P.Region:return c.languages.FoldingRangeKind.Region}}var vt=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(A))).then(t=>{if(t)return t.map(a=>{const o=[];for(;a;)o.push({range:_(a.range)}),a=a.parent;return o})})}};function kt(e){const n=[],i=[],r=new Xe(e);n.push(r);const t=(...o)=>r.getLanguageServiceWorker(...o);function a(){const{languageId:o,modeConfiguration:u}=e;Se(i),u.completionItems&&i.push(c.languages.registerCompletionItemProvider(o,new Ge(t,["/","-",":"]))),u.hovers&&i.push(c.languages.registerHoverProvider(o,new Ke(t))),u.documentHighlights&&i.push(c.languages.registerDocumentHighlightProvider(o,new rt(t))),u.definitions&&i.push(c.languages.registerDefinitionProvider(o,new it(t))),u.references&&i.push(c.languages.registerReferenceProvider(o,new at(t))),u.documentSymbols&&i.push(c.languages.registerDocumentSymbolProvider(o,new ut(t))),u.rename&&i.push(c.languages.registerRenameProvider(o,new ot(t))),u.colors&&i.push(c.languages.registerColorProvider(o,new gt(t))),u.foldingRanges&&i.push(c.languages.registerFoldingRangeProvider(o,new lt(t))),u.diagnostics&&i.push(new $e(o,t,e.onDidChange)),u.selectionRanges&&i.push(c.languages.registerSelectionRangeProvider(o,new vt(t))),u.documentFormattingEdits&&i.push(c.languages.registerDocumentFormattingEditProvider(o,new dt(t))),u.documentRangeFormattingEdits&&i.push(c.languages.registerDocumentRangeFormattingEditProvider(o,new ft(t)))}return a(),n.push(Pe(i)),Pe(n)}function Pe(e){return{dispose:()=>Se(e)}}function Se(e){for(;e.length;)e.pop().dispose()}export{Ge as CompletionAdapter,it as DefinitionAdapter,$e as DiagnosticsAdapter,gt as DocumentColorAdapter,dt as DocumentFormattingEditProvider,rt as DocumentHighlightAdapter,wt as DocumentLinkAdapter,ft as DocumentRangeFormattingEditProvider,ut as DocumentSymbolAdapter,lt as FoldingRangeAdapter,Ke as HoverAdapter,at as ReferenceAdapter,ot as RenameAdapter,vt as SelectionRangeAdapter,Xe as WorkerManager,A as fromPosition,De as fromRange,kt as setupMode,_ as toRange,j as toTextEdit}; diff --git a/app/src/main/resources/web/assets/feeds-qiGOSRuI.js b/app/src/main/resources/web/assets/feeds-bp5iUXJ_.js similarity index 77% rename from app/src/main/resources/web/assets/feeds-qiGOSRuI.js rename to app/src/main/resources/web/assets/feeds-bp5iUXJ_.js index cc992947..89ae25fa 100644 --- a/app/src/main/resources/web/assets/feeds-qiGOSRuI.js +++ b/app/src/main/resources/web/assets/feeds-bp5iUXJ_.js @@ -1 +1 @@ -import{f as s,a7 as d,a8 as o}from"./index-BzaaAwnX.js";const f=e=>({viewAll:()=>{s(e,"/feeds")},viewFeed:a=>{const u=d([{name:"feed_id",op:"",value:a.id}]);s(e,`/feeds?q=${o(u)}`)},viewToday:()=>{const a=d([{name:"today",op:"",value:"true"}]);s(e,`/feeds?q=${o(a)}`)}});export{f as u}; +import{f as s,a7 as d,a8 as o}from"./index-R8dLcqG_.js";const f=e=>({viewAll:()=>{s(e,"/feeds")},viewFeed:a=>{const u=d([{name:"feed_id",op:"",value:a.id}]);s(e,`/feeds?q=${o(u)}`)},viewToday:()=>{const a=d([{name:"today",op:"",value:"true"}]);s(e,`/feeds?q=${o(a)}`)}});export{f as u}; diff --git a/app/src/main/resources/web/assets/freemarker2-DExPAC1B.js b/app/src/main/resources/web/assets/freemarker2-DR4awqSq.js similarity index 99% rename from app/src/main/resources/web/assets/freemarker2-DExPAC1B.js rename to app/src/main/resources/web/assets/freemarker2-DR4awqSq.js index 34b535e9..9d713cb0 100644 --- a/app/src/main/resources/web/assets/freemarker2-DExPAC1B.js +++ b/app/src/main/resources/web/assets/freemarker2-DR4awqSq.js @@ -1,3 +1,3 @@ -import{m as f}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BaOpzcW2.js";import"./index-BzaaAwnX.js";var F=Object.defineProperty,b=Object.getOwnPropertyDescriptor,x=Object.getOwnPropertyNames,$=Object.prototype.hasOwnProperty,v=(t,n,_,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of x(n))!$.call(t,o)&&o!==_&&F(t,o,{get:()=>n[o],enumerable:!(e=b(n,o))||e.enumerable});return t},E=(t,n,_)=>(v(t,n,"default"),_),r={};E(r,f);var d=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],s=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],a={close:">",id:"angle",open:"<"},u={close:"\\]",id:"bracket",open:"\\["},D={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:` +import{m as f}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BNZRjtJE.js";import"./index-R8dLcqG_.js";var F=Object.defineProperty,b=Object.getOwnPropertyDescriptor,x=Object.getOwnPropertyNames,$=Object.prototype.hasOwnProperty,v=(t,n,_,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of x(n))!$.call(t,o)&&o!==_&&F(t,o,{get:()=>n[o],enumerable:!(e=b(n,o))||e.enumerable});return t},E=(t,n,_)=>(v(t,n,"default"),_),r={};E(r,f);var d=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],s=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],a={close:">",id:"angle",open:"<"},u={close:"\\]",id:"bracket",open:"\\["},D={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:` \r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${t.open}#(?:${s.join("|")})([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),end:new RegExp(`${t.open}/#(?:${s.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${t.open}#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),afterText:new RegExp(`^${t.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${t.close}$`),action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${t.open}#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),action:{indentAction:r.languages.IndentAction.Indent}}]}}function g(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:` \r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${s.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${s.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:r.languages.IndentAction.Indent}}]}}function i(t,n){const _=`_${t.id}_${n.id}`,e=c=>c.replace(/__id__/g,_),o=c=>{const m=c.source.replace(/__id__/g,_);return new RegExp(m,c.flags)};return{unicode:!0,includeLF:!1,start:e("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[e("open__id__")]:new RegExp(t.open),[e("close__id__")]:new RegExp(t.close),[e("iOpen1__id__")]:new RegExp(n.open1),[e("iOpen2__id__")]:new RegExp(n.open2),[e("iClose__id__")]:new RegExp(n.close),[e("startTag__id__")]:o(/(@open__id__)(#)/),[e("endTag__id__")]:o(/(@open__id__)(\/#)/),[e("startOrEndTag__id__")]:o(/(@open__id__)(\/?#)/),[e("closeTag1__id__")]:o(/((?:@blank)*)(@close__id__)/),[e("closeTag2__id__")]:o(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/<=|>=|\\lte|\\lt|<|\\gte|\\gt|>|&&|\\and|->|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","->"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[e("default__id__")]:[{include:e("@directive_token__id__")},{include:e("@interpolation_and_text_token__id__")}],[e("fmExpression__id__.directive")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("fmExpression__id__.interpolation")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("inParen__id__.plain")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("inParen__id__.gt")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("noSpaceExpression__id__")]:[{include:e("@no_space_expression_end_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("unifiedCall__id__")]:[{include:e("@unified_call_token__id__")}],[e("singleString__id__")]:[{include:e("@string_single_token__id__")}],[e("doubleString__id__")]:[{include:e("@string_double_token__id__")}],[e("rawSingleString__id__")]:[{include:e("@string_single_raw_token__id__")}],[e("rawDoubleString__id__")]:[{include:e("@string_double_raw_token__id__")}],[e("expressionComment__id__")]:[{include:e("@expression_comment_token__id__")}],[e("noParse__id__")]:[{include:e("@no_parse_token__id__")}],[e("terseComment__id__")]:[{include:e("@terse_comment_token__id__")}],[e("directive_token__id__")]:[[o(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:e("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)(@)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:e("@unifiedCall__id__")}]],[o(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)#--/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:{token:"comment",next:e("@terseComment__id__")}],[o(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:e("@fmExpression__id__.directive")}]]],[e("interpolation_and_text_token__id__")]:[[o(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:n.id==="bracket"?"@brackets.interpolation":"delimiter.interpolation"},{token:n.id==="bracket"?"delimiter.interpolation":"@brackets.interpolation",next:e("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[e("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[e("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[e("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[e("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[e("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:e("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:e("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:e("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:e("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\]":{cases:{...n.id==="bracket"?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},...t.id==="bracket"?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:e("@inParen__id__.gt")},"\\)":{cases:{[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\}":{cases:{...n.id==="bracket"?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[e("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:e("@expressionComment__id__")}]],[e("directive_end_token__id__")]:[[/>/,t.id==="bracket"?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[o(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[e("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[e("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:e("@fmExpression__id__.directive")}]],[e("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:e("@noSpaceExpression__id__")}]],[e("no_parse_token__id__")]:[[o(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[e("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[e("terse_comment_token__id__")]:[[o(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function A(t){const n=i(a,t),_=i(u,t),e=i(D,t);return{...n,..._,...e,unicode:!0,includeLF:!1,start:`default_auto_${t.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...n.tokenizer,..._.tokenizer,...e.tokenizer}}}var w={conf:l(a),language:i(a,k)},T={conf:l(u),language:i(u,k)},h={conf:l(a),language:i(a,p)},S={conf:l(u),language:i(u,p)},P={conf:g(),language:A(k)},y={conf:g(),language:A(p)};export{h as TagAngleInterpolationBracket,w as TagAngleInterpolationDollar,y as TagAutoInterpolationBracket,P as TagAutoInterpolationDollar,S as TagBracketInterpolationBracket,T as TagBracketInterpolationDollar}; diff --git a/app/src/main/resources/web/assets/grid-view-outline-rounded-CLDXc2EL.js b/app/src/main/resources/web/assets/grid-view-outline-rounded-D3vSSmrh.js similarity index 97% rename from app/src/main/resources/web/assets/grid-view-outline-rounded-CLDXc2EL.js rename to app/src/main/resources/web/assets/grid-view-outline-rounded-D3vSSmrh.js index 7d516070..558763b2 100644 --- a/app/src/main/resources/web/assets/grid-view-outline-rounded-CLDXc2EL.js +++ b/app/src/main/resources/web/assets/grid-view-outline-rounded-D3vSSmrh.js @@ -1 +1 @@ -import{d as c,o as e,c as s,P as l,a as t,t as d,O as r,Y as a}from"./index-BzaaAwnX.js";const _={class:"start"},h=t("div",{class:"checkbox"},[t("div",{class:"skeleton-checkbox"})],-1),m={class:"number"},v=a('
',5),N=c({__name:"ImageVideoListSkeleton",props:{limit:{type:Number,required:!0}},setup(n){const o=n;return(C,H)=>(e(!0),s(r,null,l(o.limit,i=>(e(),s("section",{class:"media-item selectable-card-skeleton",key:i},[t("div",_,[h,t("span",m,d(i+1),1)]),v]))),128))}}),T={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},u=t("path",{fill:"currentColor",d:"m10.6 13.8l-2.15-2.15q-.275-.275-.7-.275t-.7.275t-.275.7t.275.7L9.9 15.9q.3.3.7.3t.7-.3l5.65-5.65q.275-.275.275-.7t-.275-.7t-.7-.275t-.7.275zM12 22q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m0-8"},null,-1),q=[u];function p(n,o){return e(),s("svg",T,[...q])}const S={name:"material-symbols-check-circle-outline-rounded",render:p},k={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},g=t("path",{fill:"currentColor",d:"m10.6 13.8l-2.15-2.15q-.275-.275-.7-.275t-.7.275t-.275.7t.275.7L9.9 15.9q.3.3.7.3t.7-.3l5.65-5.65q.275-.275.275-.7t-.275-.7t-.7-.275t-.7.275zM12 22q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22"},null,-1),x=[g];function z(n,o){return e(),s("svg",k,[...x])}const D={name:"material-symbols-check-circle-rounded",render:z},$={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},b=t("path",{fill:"currentColor",d:"M5 11q-.825 0-1.412-.587T3 9V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v4q0 .825-.587 1.413T19 11zm0-2h14V5H5zm0 12q-.825 0-1.412-.587T3 19v-4q0-.825.588-1.412T5 13h14q.825 0 1.413.588T21 15v4q0 .825-.587 1.413T19 21zm0-2h14v-4H5zM5 9V5zm0 10v-4z"},null,-1),f=[b];function V(n,o){return e(),s("svg",$,[...f])}const E={name:"material-symbols-splitscreen-outline",render:V},w={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},M=t("path",{fill:"currentColor",d:"M5 11q-.825 0-1.412-.587T3 9V5q0-.825.588-1.412T5 3h4q.825 0 1.413.588T11 5v4q0 .825-.587 1.413T9 11zm0 10q-.825 0-1.412-.587T3 19v-4q0-.825.588-1.412T5 13h4q.825 0 1.413.588T11 15v4q0 .825-.587 1.413T9 21zm10-10q-.825 0-1.412-.587T13 9V5q0-.825.588-1.412T15 3h4q.825 0 1.413.588T21 5v4q0 .825-.587 1.413T19 11zm0 10q-.825 0-1.412-.587T13 19v-4q0-.825.588-1.412T15 13h4q.825 0 1.413.588T21 15v4q0 .825-.587 1.413T19 21zM5 9h4V5H5zm10 0h4V5h-4zm0 10h4v-4h-4zM5 19h4v-4H5zM9 9"},null,-1),y=[M];function B(n,o){return e(),s("svg",w,[...y])}const F={name:"material-symbols-grid-view-outline-rounded",render:B};export{F as _,E as a,D as b,S as c,N as d}; +import{d as c,o as e,c as s,P as l,a as t,t as d,O as r,Y as a}from"./index-R8dLcqG_.js";const _={class:"start"},h=t("div",{class:"checkbox"},[t("div",{class:"skeleton-checkbox"})],-1),m={class:"number"},v=a('
',5),N=c({__name:"ImageVideoListSkeleton",props:{limit:{type:Number,required:!0}},setup(n){const o=n;return(C,H)=>(e(!0),s(r,null,l(o.limit,i=>(e(),s("section",{class:"media-item selectable-card-skeleton",key:i},[t("div",_,[h,t("span",m,d(i+1),1)]),v]))),128))}}),T={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},u=t("path",{fill:"currentColor",d:"m10.6 13.8l-2.15-2.15q-.275-.275-.7-.275t-.7.275t-.275.7t.275.7L9.9 15.9q.3.3.7.3t.7-.3l5.65-5.65q.275-.275.275-.7t-.275-.7t-.7-.275t-.7.275zM12 22q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m0-8"},null,-1),q=[u];function p(n,o){return e(),s("svg",T,[...q])}const S={name:"material-symbols-check-circle-outline-rounded",render:p},k={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},g=t("path",{fill:"currentColor",d:"m10.6 13.8l-2.15-2.15q-.275-.275-.7-.275t-.7.275t-.275.7t.275.7L9.9 15.9q.3.3.7.3t.7-.3l5.65-5.65q.275-.275.275-.7t-.275-.7t-.7-.275t-.7.275zM12 22q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22"},null,-1),x=[g];function z(n,o){return e(),s("svg",k,[...x])}const D={name:"material-symbols-check-circle-rounded",render:z},$={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},b=t("path",{fill:"currentColor",d:"M5 11q-.825 0-1.412-.587T3 9V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v4q0 .825-.587 1.413T19 11zm0-2h14V5H5zm0 12q-.825 0-1.412-.587T3 19v-4q0-.825.588-1.412T5 13h14q.825 0 1.413.588T21 15v4q0 .825-.587 1.413T19 21zm0-2h14v-4H5zM5 9V5zm0 10v-4z"},null,-1),f=[b];function V(n,o){return e(),s("svg",$,[...f])}const E={name:"material-symbols-splitscreen-outline",render:V},w={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},M=t("path",{fill:"currentColor",d:"M5 11q-.825 0-1.412-.587T3 9V5q0-.825.588-1.412T5 3h4q.825 0 1.413.588T11 5v4q0 .825-.587 1.413T9 11zm0 10q-.825 0-1.412-.587T3 19v-4q0-.825.588-1.412T5 13h4q.825 0 1.413.588T11 15v4q0 .825-.587 1.413T9 21zm10-10q-.825 0-1.412-.587T13 9V5q0-.825.588-1.412T15 3h4q.825 0 1.413.588T21 5v4q0 .825-.587 1.413T19 11zm0 10q-.825 0-1.412-.587T13 19v-4q0-.825.588-1.412T15 13h4q.825 0 1.413.588T21 15v4q0 .825-.587 1.413T19 21zM5 9h4V5H5zm10 0h4V5h-4zm0 10h4v-4h-4zM5 19h4v-4H5zM9 9"},null,-1),y=[M];function B(n,o){return e(),s("svg",w,[...y])}const F={name:"material-symbols-grid-view-outline-rounded",render:B};export{F as _,E as a,D as b,S as c,N as d}; diff --git a/app/src/main/resources/web/assets/handlebars-BOx74Vw8.js b/app/src/main/resources/web/assets/handlebars-CN37euyO.js similarity index 99% rename from app/src/main/resources/web/assets/handlebars-BOx74Vw8.js rename to app/src/main/resources/web/assets/handlebars-CN37euyO.js index 0b698478..6be8a540 100644 --- a/app/src/main/resources/web/assets/handlebars-BOx74Vw8.js +++ b/app/src/main/resources/web/assets/handlebars-CN37euyO.js @@ -1 +1 @@ -import{m as i}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BaOpzcW2.js";import"./index-BzaaAwnX.js";var l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,p=(t,e,r,m)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of d(e))!c.call(t,n)&&n!==r&&l(t,n,{get:()=>e[n],enumerable:!(m=s(e,n))||m.enumerable});return t},h=(t,e,r)=>(p(t,e,"default"),r),a={};h(a,i);var o=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[[""],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${o.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${o.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:a.languages.IndentAction.Indent}}]},k={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{y as conf,k as language}; +import{m as i}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BNZRjtJE.js";import"./index-R8dLcqG_.js";var l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,p=(t,e,r,m)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of d(e))!c.call(t,n)&&n!==r&&l(t,n,{get:()=>e[n],enumerable:!(m=s(e,n))||m.enumerable});return t},h=(t,e,r)=>(p(t,e,"default"),r),a={};h(a,i);var o=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[[""],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${o.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${o.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:a.languages.IndentAction.Indent}}]},k={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{y as conf,k as language}; diff --git a/app/src/main/resources/web/assets/html-B98YRxTm.js b/app/src/main/resources/web/assets/html-_59g4-uc.js similarity index 98% rename from app/src/main/resources/web/assets/html-B98YRxTm.js rename to app/src/main/resources/web/assets/html-_59g4-uc.js index 026e22a7..6e6841b4 100644 --- a/app/src/main/resources/web/assets/html-B98YRxTm.js +++ b/app/src/main/resources/web/assets/html-_59g4-uc.js @@ -1 +1 @@ -import{m as s}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BaOpzcW2.js";import"./index-BzaaAwnX.js";var d=Object.defineProperty,p=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,c=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of m(e))!l.call(t,r)&&r!==n&&d(t,r,{get:()=>e[r],enumerable:!(o=p(e,r))||o.enumerable});return t},u=(t,e,n)=>(c(t,e,"default"),n),i={};u(i,s);var a=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${a.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:i.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${a.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},k={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{y as conf,k as language}; +import{m as s}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BNZRjtJE.js";import"./index-R8dLcqG_.js";var d=Object.defineProperty,p=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,c=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of m(e))!l.call(t,r)&&r!==n&&d(t,r,{get:()=>e[r],enumerable:!(o=p(e,r))||o.enumerable});return t},u=(t,e,n)=>(c(t,e,"default"),n),i={};u(i,s);var a=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${a.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:i.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${a.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},k={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{y as conf,k as language}; diff --git a/app/src/main/resources/web/assets/htmlMode-B3f09YUI.js b/app/src/main/resources/web/assets/htmlMode-D9Mlms7n.js similarity index 99% rename from app/src/main/resources/web/assets/htmlMode-B3f09YUI.js rename to app/src/main/resources/web/assets/htmlMode-D9Mlms7n.js index a6f0ef1b..affec9e6 100644 --- a/app/src/main/resources/web/assets/htmlMode-B3f09YUI.js +++ b/app/src/main/resources/web/assets/htmlMode-D9Mlms7n.js @@ -1,4 +1,4 @@ -var Be=Object.defineProperty;var $e=(e,n,i)=>n in e?Be(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>($e(e,typeof n!="symbol"?n+"":n,i),i);import{m as qe}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BaOpzcW2.js";import"./index-BzaaAwnX.js";var Qe=Object.defineProperty,Ge=Object.getOwnPropertyDescriptor,Je=Object.getOwnPropertyNames,Ye=Object.prototype.hasOwnProperty,Ze=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of Je(n))!Ye.call(e,t)&&t!==i&&Qe(e,t,{get:()=>n[t],enumerable:!(r=Ge(n,t))||r.enumerable});return e},Ke=(e,n,i)=>(Ze(e,n,"default"),i),c={};Ke(c,qe);var et=2*60*1e3,De=class{constructor(e){E(this,"_defaults");E(this,"_idleCheckInterval");E(this,"_lastUsedTime");E(this,"_configChangeListener");E(this,"_worker");E(this,"_client");this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>et&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},Y;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(Y||(Y={}));var H;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(H||(H={}));var k;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=H.MAX_VALUE),t===Number.MAX_VALUE&&(t=H.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&s.uinteger(t.line)&&s.uinteger(t.character)}e.is=i})(k||(k={}));var p;(function(e){function n(r,t,a,o){if(s.uinteger(r)&&s.uinteger(t)&&s.uinteger(a)&&s.uinteger(o))return{start:k.create(r,t),end:k.create(a,o)};if(k.is(r)&&k.is(t))return{start:r,end:t};throw new Error("Range#create called with invalid arguments["+r+", "+t+", "+a+", "+o+"]")}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&k.is(t.start)&&k.is(t.end)}e.is=i})(p||(p={}));var X;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.range)&&(s.string(t.uri)||s.undefined(t.uri))}e.is=i})(X||(X={}));var Z;(function(e){function n(r,t,a,o){return{targetUri:r,targetRange:t,targetSelectionRange:a,originSelectionRange:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.targetRange)&&s.string(t.targetUri)&&(p.is(t.targetSelectionRange)||s.undefined(t.targetSelectionRange))&&(p.is(t.originSelectionRange)||s.undefined(t.originSelectionRange))}e.is=i})(Z||(Z={}));var B;(function(e){function n(r,t,a,o){return{red:r,green:t,blue:a,alpha:o}}e.create=n;function i(r){var t=r;return s.numberRange(t.red,0,1)&&s.numberRange(t.green,0,1)&&s.numberRange(t.blue,0,1)&&s.numberRange(t.alpha,0,1)}e.is=i})(B||(B={}));var K;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){var t=r;return p.is(t.range)&&B.is(t.color)}e.is=i})(K||(K={}));var ee;(function(e){function n(r,t,a){return{label:r,textEdit:t,additionalTextEdits:a}}e.create=n;function i(r){var t=r;return s.string(t.label)&&(s.undefined(t.textEdit)||C.is(t))&&(s.undefined(t.additionalTextEdits)||s.typedArray(t.additionalTextEdits,C.is))}e.is=i})(ee||(ee={}));var R;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(R||(R={}));var te;(function(e){function n(r,t,a,o,u){var f={startLine:r,endLine:t};return s.defined(a)&&(f.startCharacter=a),s.defined(o)&&(f.endCharacter=o),s.defined(u)&&(f.kind=u),f}e.create=n;function i(r){var t=r;return s.uinteger(t.startLine)&&s.uinteger(t.startLine)&&(s.undefined(t.startCharacter)||s.uinteger(t.startCharacter))&&(s.undefined(t.endCharacter)||s.uinteger(t.endCharacter))&&(s.undefined(t.kind)||s.string(t.kind))}e.is=i})(te||(te={}));var $;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&X.is(t.location)&&s.string(t.message)}e.is=i})($||($={}));var I;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(I||(I={}));var re;(function(e){e.Unnecessary=1,e.Deprecated=2})(re||(re={}));var ne;(function(e){function n(i){var r=i;return r!=null&&s.string(r.href)}e.is=n})(ne||(ne={}));var U;(function(e){function n(r,t,a,o,u,f){var d={range:r,message:t};return s.defined(a)&&(d.severity=a),s.defined(o)&&(d.code=o),s.defined(u)&&(d.source=u),s.defined(f)&&(d.relatedInformation=f),d}e.create=n;function i(r){var t,a=r;return s.defined(a)&&p.is(a.range)&&s.string(a.message)&&(s.number(a.severity)||s.undefined(a.severity))&&(s.integer(a.code)||s.string(a.code)||s.undefined(a.code))&&(s.undefined(a.codeDescription)||s.string((t=a.codeDescription)===null||t===void 0?void 0:t.href))&&(s.string(a.source)||s.undefined(a.source))&&(s.undefined(a.relatedInformation)||s.typedArray(a.relatedInformation,$.is))}e.is=i})(U||(U={}));var M;(function(e){function n(r,t){for(var a=[],o=2;o0&&(u.arguments=a),u}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.title)&&s.string(t.command)}e.is=i})(M||(M={}));var C;(function(e){function n(a,o){return{range:a,newText:o}}e.replace=n;function i(a,o){return{range:{start:a,end:a},newText:o}}e.insert=i;function r(a){return{range:a,newText:""}}e.del=r;function t(a){var o=a;return s.objectLiteral(o)&&s.string(o.newText)&&p.is(o.range)}e.is=t})(C||(C={}));var P;(function(e){function n(r,t,a){var o={label:r};return t!==void 0&&(o.needsConfirmation=t),a!==void 0&&(o.description=a),o}e.create=n;function i(r){var t=r;return t!==void 0&&s.objectLiteral(t)&&s.string(t.label)&&(s.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(s.string(t.description)||t.description===void 0)}e.is=i})(P||(P={}));var m;(function(e){function n(i){var r=i;return typeof r=="string"}e.is=n})(m||(m={}));var x;(function(e){function n(a,o,u){return{range:a,newText:o,annotationId:u}}e.replace=n;function i(a,o,u){return{range:{start:a,end:a},newText:o,annotationId:u}}e.insert=i;function r(a,o){return{range:a,newText:"",annotationId:o}}e.del=r;function t(a){var o=a;return C.is(o)&&(P.is(o.annotationId)||m.is(o.annotationId))}e.is=t})(x||(x={}));var O;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&V.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(O||(O={}));var S;(function(e){function n(r,t,a){var o={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="create"&&s.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(S||(S={}));var T;(function(e){function n(r,t,a,o){var u={kind:"rename",oldUri:r,newUri:t};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(u.options=a),o!==void 0&&(u.annotationId=o),u}e.create=n;function i(r){var t=r;return t&&t.kind==="rename"&&s.string(t.oldUri)&&s.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(T||(T={}));var F;(function(e){function n(r,t,a){var o={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="delete"&&s.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||s.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||s.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(F||(F={}));var q;(function(e){function n(i){var r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(t){return s.string(t.kind)?S.is(t)||T.is(t)||F.is(t):O.is(t)}))}e.is=n})(q||(q={}));var W=function(){function e(n,i){this.edits=n,this.changeAnnotations=i}return e.prototype.insert=function(n,i,r){var t,a;if(r===void 0?t=C.insert(n,i):m.is(r)?(a=r,t=x.insert(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.insert(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.replace=function(n,i,r){var t,a;if(r===void 0?t=C.replace(n,i):m.is(r)?(a=r,t=x.replace(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.replace(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.delete=function(n,i){var r,t;if(i===void 0?r=C.del(n):m.is(i)?(t=i,r=x.del(n,i)):(this.assertChangeAnnotations(this.changeAnnotations),t=this.changeAnnotations.manage(i),r=x.del(n,t)),this.edits.push(r),t!==void 0)return t},e.prototype.add=function(n){this.edits.push(n)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(n){if(n===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ie=function(){function e(n){this._annotations=n===void 0?Object.create(null):n,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(n,i){var r;if(m.is(n)?r=n:(r=this.nextId(),i=n),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=i,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(n){var i=this;this._textEditChanges=Object.create(null),n!==void 0?(this._workspaceEdit=n,n.documentChanges?(this._changeAnnotations=new ie(n.changeAnnotations),n.changeAnnotations=this._changeAnnotations.all(),n.documentChanges.forEach(function(r){if(O.is(r)){var t=new W(r.edits,i._changeAnnotations);i._textEditChanges[r.textDocument.uri]=t}})):n.changes&&Object.keys(n.changes).forEach(function(r){var t=new W(n.changes[r]);i._textEditChanges[r]=t})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(n){if(V.is(n)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:n.uri,version:n.version},r=this._textEditChanges[i.uri];if(!r){var t=[],a={textDocument:i,edits:t};this._workspaceEdit.documentChanges.push(a),r=new W(t,this._changeAnnotations),this._textEditChanges[i.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[n];if(!r){var t=[];this._workspaceEdit.changes[n]=t,r=new W(t),this._textEditChanges[n]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ie,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;P.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=S.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=S.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e.prototype.renameFile=function(n,i,r,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;P.is(r)||m.is(r)?a=r:t=r;var o,u;if(a===void 0?o=T.create(n,i,t):(u=m.is(a)?a:this._changeAnnotations.manage(a),o=T.create(n,i,t,u)),this._workspaceEdit.documentChanges.push(o),u!==void 0)return u},e.prototype.deleteFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;P.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=F.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=F.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e})();var ae;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)}e.is=i})(ae||(ae={}));var oe;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.integer(t.version)}e.is=i})(oe||(oe={}));var V;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&(t.version===null||s.integer(t.version))}e.is=i})(V||(V={}));var se;(function(e){function n(r,t,a,o){return{uri:r,languageId:t,version:a,text:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.string(t.languageId)&&s.integer(t.version)&&s.string(t.text)}e.is=i})(se||(se={}));var L;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(L||(L={}));(function(e){function n(i){var r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(L||(L={}));var Q;(function(e){function n(i){var r=i;return s.objectLiteral(i)&&L.is(r.kind)&&s.string(r.value)}e.is=n})(Q||(Q={}));var l;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(l||(l={}));var G;(function(e){e.PlainText=1,e.Snippet=2})(G||(G={}));var ue;(function(e){e.Deprecated=1})(ue||(ue={}));var ce;(function(e){function n(r,t,a){return{newText:r,insert:t,replace:a}}e.create=n;function i(r){var t=r;return t&&s.string(t.newText)&&p.is(t.insert)&&p.is(t.replace)}e.is=i})(ce||(ce={}));var de;(function(e){e.asIs=1,e.adjustIndentation=2})(de||(de={}));var ge;(function(e){function n(i){return{label:i}}e.create=n})(ge||(ge={}));var fe;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(fe||(fe={}));var z;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){var t=r;return s.string(t)||s.objectLiteral(t)&&s.string(t.language)&&s.string(t.value)}e.is=i})(z||(z={}));var le;(function(e){function n(i){var r=i;return!!r&&s.objectLiteral(r)&&(Q.is(r.contents)||z.is(r.contents)||s.typedArray(r.contents,z.is))&&(i.range===void 0||p.is(i.range))}e.is=n})(le||(le={}));var he;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(he||(he={}));var ve;(function(e){function n(i,r){for(var t=[],a=2;a=0;v--){var w=f[v],b=a.offsetAt(w.range.start),g=a.offsetAt(w.range.end);if(g<=d)u=u.substring(0,b)+w.newText+u.substring(g,u.length);else throw new Error("Overlapping edit");d=b}return u}e.applyEdits=r;function t(a,o){if(a.length<=1)return a;var u=a.length/2|0,f=a.slice(0,u),d=a.slice(u);t(f,o),t(d,o);for(var v=0,w=0,b=0;vn in e?Be(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>($e(e,typeof n!="symbol"?n+"":n,i),i);import{m as qe}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BNZRjtJE.js";import"./index-R8dLcqG_.js";var Qe=Object.defineProperty,Ge=Object.getOwnPropertyDescriptor,Je=Object.getOwnPropertyNames,Ye=Object.prototype.hasOwnProperty,Ze=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of Je(n))!Ye.call(e,t)&&t!==i&&Qe(e,t,{get:()=>n[t],enumerable:!(r=Ge(n,t))||r.enumerable});return e},Ke=(e,n,i)=>(Ze(e,n,"default"),i),c={};Ke(c,qe);var et=2*60*1e3,De=class{constructor(e){E(this,"_defaults");E(this,"_idleCheckInterval");E(this,"_lastUsedTime");E(this,"_configChangeListener");E(this,"_worker");E(this,"_client");this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>et&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},Y;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(Y||(Y={}));var H;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(H||(H={}));var k;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=H.MAX_VALUE),t===Number.MAX_VALUE&&(t=H.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&s.uinteger(t.line)&&s.uinteger(t.character)}e.is=i})(k||(k={}));var p;(function(e){function n(r,t,a,o){if(s.uinteger(r)&&s.uinteger(t)&&s.uinteger(a)&&s.uinteger(o))return{start:k.create(r,t),end:k.create(a,o)};if(k.is(r)&&k.is(t))return{start:r,end:t};throw new Error("Range#create called with invalid arguments["+r+", "+t+", "+a+", "+o+"]")}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&k.is(t.start)&&k.is(t.end)}e.is=i})(p||(p={}));var X;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.range)&&(s.string(t.uri)||s.undefined(t.uri))}e.is=i})(X||(X={}));var Z;(function(e){function n(r,t,a,o){return{targetUri:r,targetRange:t,targetSelectionRange:a,originSelectionRange:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.targetRange)&&s.string(t.targetUri)&&(p.is(t.targetSelectionRange)||s.undefined(t.targetSelectionRange))&&(p.is(t.originSelectionRange)||s.undefined(t.originSelectionRange))}e.is=i})(Z||(Z={}));var B;(function(e){function n(r,t,a,o){return{red:r,green:t,blue:a,alpha:o}}e.create=n;function i(r){var t=r;return s.numberRange(t.red,0,1)&&s.numberRange(t.green,0,1)&&s.numberRange(t.blue,0,1)&&s.numberRange(t.alpha,0,1)}e.is=i})(B||(B={}));var K;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){var t=r;return p.is(t.range)&&B.is(t.color)}e.is=i})(K||(K={}));var ee;(function(e){function n(r,t,a){return{label:r,textEdit:t,additionalTextEdits:a}}e.create=n;function i(r){var t=r;return s.string(t.label)&&(s.undefined(t.textEdit)||C.is(t))&&(s.undefined(t.additionalTextEdits)||s.typedArray(t.additionalTextEdits,C.is))}e.is=i})(ee||(ee={}));var R;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(R||(R={}));var te;(function(e){function n(r,t,a,o,u){var f={startLine:r,endLine:t};return s.defined(a)&&(f.startCharacter=a),s.defined(o)&&(f.endCharacter=o),s.defined(u)&&(f.kind=u),f}e.create=n;function i(r){var t=r;return s.uinteger(t.startLine)&&s.uinteger(t.startLine)&&(s.undefined(t.startCharacter)||s.uinteger(t.startCharacter))&&(s.undefined(t.endCharacter)||s.uinteger(t.endCharacter))&&(s.undefined(t.kind)||s.string(t.kind))}e.is=i})(te||(te={}));var $;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&X.is(t.location)&&s.string(t.message)}e.is=i})($||($={}));var I;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(I||(I={}));var re;(function(e){e.Unnecessary=1,e.Deprecated=2})(re||(re={}));var ne;(function(e){function n(i){var r=i;return r!=null&&s.string(r.href)}e.is=n})(ne||(ne={}));var U;(function(e){function n(r,t,a,o,u,f){var d={range:r,message:t};return s.defined(a)&&(d.severity=a),s.defined(o)&&(d.code=o),s.defined(u)&&(d.source=u),s.defined(f)&&(d.relatedInformation=f),d}e.create=n;function i(r){var t,a=r;return s.defined(a)&&p.is(a.range)&&s.string(a.message)&&(s.number(a.severity)||s.undefined(a.severity))&&(s.integer(a.code)||s.string(a.code)||s.undefined(a.code))&&(s.undefined(a.codeDescription)||s.string((t=a.codeDescription)===null||t===void 0?void 0:t.href))&&(s.string(a.source)||s.undefined(a.source))&&(s.undefined(a.relatedInformation)||s.typedArray(a.relatedInformation,$.is))}e.is=i})(U||(U={}));var M;(function(e){function n(r,t){for(var a=[],o=2;o0&&(u.arguments=a),u}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.title)&&s.string(t.command)}e.is=i})(M||(M={}));var C;(function(e){function n(a,o){return{range:a,newText:o}}e.replace=n;function i(a,o){return{range:{start:a,end:a},newText:o}}e.insert=i;function r(a){return{range:a,newText:""}}e.del=r;function t(a){var o=a;return s.objectLiteral(o)&&s.string(o.newText)&&p.is(o.range)}e.is=t})(C||(C={}));var P;(function(e){function n(r,t,a){var o={label:r};return t!==void 0&&(o.needsConfirmation=t),a!==void 0&&(o.description=a),o}e.create=n;function i(r){var t=r;return t!==void 0&&s.objectLiteral(t)&&s.string(t.label)&&(s.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(s.string(t.description)||t.description===void 0)}e.is=i})(P||(P={}));var m;(function(e){function n(i){var r=i;return typeof r=="string"}e.is=n})(m||(m={}));var x;(function(e){function n(a,o,u){return{range:a,newText:o,annotationId:u}}e.replace=n;function i(a,o,u){return{range:{start:a,end:a},newText:o,annotationId:u}}e.insert=i;function r(a,o){return{range:a,newText:"",annotationId:o}}e.del=r;function t(a){var o=a;return C.is(o)&&(P.is(o.annotationId)||m.is(o.annotationId))}e.is=t})(x||(x={}));var O;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&V.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(O||(O={}));var S;(function(e){function n(r,t,a){var o={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="create"&&s.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(S||(S={}));var T;(function(e){function n(r,t,a,o){var u={kind:"rename",oldUri:r,newUri:t};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(u.options=a),o!==void 0&&(u.annotationId=o),u}e.create=n;function i(r){var t=r;return t&&t.kind==="rename"&&s.string(t.oldUri)&&s.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(T||(T={}));var F;(function(e){function n(r,t,a){var o={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="delete"&&s.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||s.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||s.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(F||(F={}));var q;(function(e){function n(i){var r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(t){return s.string(t.kind)?S.is(t)||T.is(t)||F.is(t):O.is(t)}))}e.is=n})(q||(q={}));var W=function(){function e(n,i){this.edits=n,this.changeAnnotations=i}return e.prototype.insert=function(n,i,r){var t,a;if(r===void 0?t=C.insert(n,i):m.is(r)?(a=r,t=x.insert(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.insert(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.replace=function(n,i,r){var t,a;if(r===void 0?t=C.replace(n,i):m.is(r)?(a=r,t=x.replace(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.replace(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.delete=function(n,i){var r,t;if(i===void 0?r=C.del(n):m.is(i)?(t=i,r=x.del(n,i)):(this.assertChangeAnnotations(this.changeAnnotations),t=this.changeAnnotations.manage(i),r=x.del(n,t)),this.edits.push(r),t!==void 0)return t},e.prototype.add=function(n){this.edits.push(n)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(n){if(n===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ie=function(){function e(n){this._annotations=n===void 0?Object.create(null):n,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(n,i){var r;if(m.is(n)?r=n:(r=this.nextId(),i=n),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=i,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(n){var i=this;this._textEditChanges=Object.create(null),n!==void 0?(this._workspaceEdit=n,n.documentChanges?(this._changeAnnotations=new ie(n.changeAnnotations),n.changeAnnotations=this._changeAnnotations.all(),n.documentChanges.forEach(function(r){if(O.is(r)){var t=new W(r.edits,i._changeAnnotations);i._textEditChanges[r.textDocument.uri]=t}})):n.changes&&Object.keys(n.changes).forEach(function(r){var t=new W(n.changes[r]);i._textEditChanges[r]=t})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(n){if(V.is(n)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:n.uri,version:n.version},r=this._textEditChanges[i.uri];if(!r){var t=[],a={textDocument:i,edits:t};this._workspaceEdit.documentChanges.push(a),r=new W(t,this._changeAnnotations),this._textEditChanges[i.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[n];if(!r){var t=[];this._workspaceEdit.changes[n]=t,r=new W(t),this._textEditChanges[n]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ie,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;P.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=S.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=S.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e.prototype.renameFile=function(n,i,r,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;P.is(r)||m.is(r)?a=r:t=r;var o,u;if(a===void 0?o=T.create(n,i,t):(u=m.is(a)?a:this._changeAnnotations.manage(a),o=T.create(n,i,t,u)),this._workspaceEdit.documentChanges.push(o),u!==void 0)return u},e.prototype.deleteFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;P.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=F.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=F.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e})();var ae;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)}e.is=i})(ae||(ae={}));var oe;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.integer(t.version)}e.is=i})(oe||(oe={}));var V;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&(t.version===null||s.integer(t.version))}e.is=i})(V||(V={}));var se;(function(e){function n(r,t,a,o){return{uri:r,languageId:t,version:a,text:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.string(t.languageId)&&s.integer(t.version)&&s.string(t.text)}e.is=i})(se||(se={}));var L;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(L||(L={}));(function(e){function n(i){var r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(L||(L={}));var Q;(function(e){function n(i){var r=i;return s.objectLiteral(i)&&L.is(r.kind)&&s.string(r.value)}e.is=n})(Q||(Q={}));var l;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(l||(l={}));var G;(function(e){e.PlainText=1,e.Snippet=2})(G||(G={}));var ue;(function(e){e.Deprecated=1})(ue||(ue={}));var ce;(function(e){function n(r,t,a){return{newText:r,insert:t,replace:a}}e.create=n;function i(r){var t=r;return t&&s.string(t.newText)&&p.is(t.insert)&&p.is(t.replace)}e.is=i})(ce||(ce={}));var de;(function(e){e.asIs=1,e.adjustIndentation=2})(de||(de={}));var ge;(function(e){function n(i){return{label:i}}e.create=n})(ge||(ge={}));var fe;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(fe||(fe={}));var z;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){var t=r;return s.string(t)||s.objectLiteral(t)&&s.string(t.language)&&s.string(t.value)}e.is=i})(z||(z={}));var le;(function(e){function n(i){var r=i;return!!r&&s.objectLiteral(r)&&(Q.is(r.contents)||z.is(r.contents)||s.typedArray(r.contents,z.is))&&(i.range===void 0||p.is(i.range))}e.is=n})(le||(le={}));var he;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(he||(he={}));var ve;(function(e){function n(i,r){for(var t=[],a=2;a=0;v--){var w=f[v],b=a.offsetAt(w.range.start),g=a.offsetAt(w.range.end);if(g<=d)u=u.substring(0,b)+w.newText+u.substring(g,u.length);else throw new Error("Overlapping edit");d=b}return u}e.applyEdits=r;function t(a,o){if(a.length<=1)return a;var u=a.length/2|0,f=a.slice(0,u),d=a.slice(u);t(f,o),t(d,o);for(var v=0,w=0,b=0;v0&&n.push(i.length),this._lineOffsets=n}return this._lineOffsets},e.prototype.positionAt=function(n){n=Math.max(Math.min(n,this._content.length),0);var i=this.getLineOffsets(),r=0,t=i.length;if(t===0)return k.create(0,n);for(;rn?t=a:r=a+1}var o=r-1;return k.create(o,n-i[o])},e.prototype.offsetAt=function(n){var i=this.getLineOffsets();if(n.line>=i.length)return this._content.length;if(n.line<0)return 0;var r=i[n.line],t=n.line+1"u"}e.undefined=r;function t(g){return g===!0||g===!1}e.boolean=t;function a(g){return n.call(g)==="[object String]"}e.string=a;function o(g){return n.call(g)==="[object Number]"}e.number=o;function u(g,y,N){return n.call(g)==="[object Number]"&&y<=g&&g<=N}e.numberRange=u;function f(g){return n.call(g)==="[object Number]"&&-2147483648<=g&&g<=2147483647}e.integer=f;function d(g){return n.call(g)==="[object Number]"&&0<=g&&g<=2147483647}e.uinteger=d;function v(g){return n.call(g)==="[object Function]"}e.func=v;function w(g){return g!==null&&typeof g=="object"}e.objectLiteral=w;function b(g,y){return Array.isArray(g)&&g.every(y)}e.typedArray=b})(s||(s={}));var mt=class{constructor(e,n,i){E(this,"_disposables",[]);E(this,"_listener",Object.create(null));this._languageId=e,this._worker=n;const r=a=>{let o=a.getLanguageId();if(o!==this._languageId)return;let u;this._listener[a.uri.toString()]=a.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(a.uri,o),500)}),this._doValidate(a.uri,o)},t=a=>{c.editor.setModelMarkers(a,this._languageId,[]);let o=a.uri.toString(),u=this._listener[o];u&&(u.dispose(),delete this._listener[o])};this._disposables.push(c.editor.onDidCreateModel(r)),this._disposables.push(c.editor.onWillDisposeModel(t)),this._disposables.push(c.editor.onDidChangeModelLanguage(a=>{t(a.model),r(a.model)})),this._disposables.push(i(a=>{c.editor.getModels().forEach(o=>{o.getLanguageId()===this._languageId&&(t(o),r(o))})})),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(t);for(let a in this._listener)this._listener[a].dispose()}}),c.editor.getModels().forEach(r)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,n){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const r=i.map(a=>nt(e,a));let t=c.editor.getModel(e);t&&t.getLanguageId()===n&&c.editor.setModelMarkers(t,n,r)}).then(void 0,i=>{console.error(i)})}};function rt(e){switch(e){case I.Error:return c.MarkerSeverity.Error;case I.Warning:return c.MarkerSeverity.Warning;case I.Information:return c.MarkerSeverity.Info;case I.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}function nt(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:rt(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var it=class{constructor(e,n){this._worker=e,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doComplete(t.toString(),A(n))).then(a=>{if(!a)return;const o=e.getWordUntilPosition(n),u=new c.Range(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn),f=a.items.map(d=>{const v={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:st(d.command),range:u,kind:ot(d.kind)};return d.textEdit&&(at(d.textEdit)?v.range={insert:_(d.textEdit.insert),replace:_(d.textEdit.replace)}:v.range=_(d.textEdit.range),v.insertText=d.textEdit.newText),d.additionalTextEdits&&(v.additionalTextEdits=d.additionalTextEdits.map(j)),d.insertTextFormat===G.Snippet&&(v.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),v});return{isIncomplete:a.isIncomplete,suggestions:f}})}};function A(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Me(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function _(e){if(e)return new c.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function at(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function ot(e){const n=c.languages.CompletionItemKind;switch(e){case l.Text:return n.Text;case l.Method:return n.Method;case l.Function:return n.Function;case l.Constructor:return n.Constructor;case l.Field:return n.Field;case l.Variable:return n.Variable;case l.Class:return n.Class;case l.Interface:return n.Interface;case l.Module:return n.Module;case l.Property:return n.Property;case l.Unit:return n.Unit;case l.Value:return n.Value;case l.Enum:return n.Enum;case l.Keyword:return n.Keyword;case l.Snippet:return n.Snippet;case l.Color:return n.Color;case l.File:return n.File;case l.Reference:return n.Reference}return n.Property}function j(e){if(e)return{range:_(e.range),text:e.newText}}function st(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var Se=class{constructor(e){this._worker=e}provideHover(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.doHover(r.toString(),A(n))).then(t=>{if(t)return{range:_(t.range),contents:ct(t.contents)}})}};function ut(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function Pe(e){return typeof e=="string"?{value:e}:ut(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+` `+e.value+"\n```\n"}}function ct(e){if(e)return Array.isArray(e)?e.map(Pe):[Pe(e)]}var Te=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),A(n))).then(t=>{if(t)return t.map(a=>({range:_(a.range),kind:dt(a.kind)}))})}};function dt(e){switch(e){case D.Read:return c.languages.DocumentHighlightKind.Read;case D.Write:return c.languages.DocumentHighlightKind.Write;case D.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}var _t=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),A(n))).then(t=>{if(t)return[Fe(t)]})}};function Fe(e){return{uri:c.Uri.parse(e.uri),range:_(e.range)}}var wt=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.findReferences(t.toString(),A(n))).then(a=>{if(a)return a.map(Fe)})}},Le=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doRename(t.toString(),A(n),i)).then(a=>gt(a))}};function gt(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=c.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:_(t.range),text:t.newText}})}return{edits:n}}var je=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(r)return r.map(t=>({name:t.name,detail:"",containerName:t.containerName,kind:ft(t.kind),range:_(t.location.range),selectionRange:_(t.location.range),tags:[]}))})}};function ft(e){let n=c.languages.SymbolKind;switch(e){case h.File:return n.Array;case h.Module:return n.Module;case h.Namespace:return n.Namespace;case h.Package:return n.Package;case h.Class:return n.Class;case h.Method:return n.Method;case h.Property:return n.Property;case h.Field:return n.Field;case h.Constructor:return n.Constructor;case h.Enum:return n.Enum;case h.Interface:return n.Interface;case h.Function:return n.Function;case h.Variable:return n.Variable;case h.Constant:return n.Constant;case h.String:return n.String;case h.Number:return n.Number;case h.Boolean:return n.Boolean;case h.Array:return n.Array}return n.Function}var Ne=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(r)return{links:r.map(t=>({range:_(t.range),url:t.target}))}})}},We=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,Ue(n)).then(a=>{if(!(!a||a.length===0))return a.map(j)}))}},He=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.format(t.toString(),Me(n),Ue(i)).then(o=>{if(!(!o||o.length===0))return o.map(j)}))}};function Ue(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var kt=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(r)return r.map(t=>({color:t.color,range:_(t.range)}))})}provideColorPresentations(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,Me(n.range))).then(t=>{if(t)return t.map(a=>{let o={label:a.label};return a.textEdit&&(o.textEdit=j(a.textEdit)),a.additionalTextEdits&&(o.additionalTextEdits=a.additionalTextEdits.map(j)),o})})}},Oe=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(t)return t.map(a=>{const o={start:a.startLine+1,end:a.endLine+1};return typeof a.kind<"u"&&(o.kind=lt(a.kind)),o})})}};function lt(e){switch(e){case R.Comment:return c.languages.FoldingRangeKind.Comment;case R.Imports:return c.languages.FoldingRangeKind.Imports;case R.Region:return c.languages.FoldingRangeKind.Region}}var Ve=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(A))).then(t=>{if(t)return t.map(a=>{const o=[];for(;a;)o.push({range:_(a.range)}),a=a.parent;return o})})}},ze=class extends it{constructor(e){super(e,[".",":","<",'"',"=","/"])}};function bt(e){const n=new De(e),i=(...t)=>n.getLanguageServiceWorker(...t);let r=e.languageId;c.languages.registerCompletionItemProvider(r,new ze(i)),c.languages.registerHoverProvider(r,new Se(i)),c.languages.registerDocumentHighlightProvider(r,new Te(i)),c.languages.registerLinkProvider(r,new Ne(i)),c.languages.registerFoldingRangeProvider(r,new Oe(i)),c.languages.registerDocumentSymbolProvider(r,new je(i)),c.languages.registerSelectionRangeProvider(r,new Ve(i)),c.languages.registerRenameProvider(r,new Le(i)),r==="html"&&(c.languages.registerDocumentFormattingEditProvider(r,new We(i)),c.languages.registerDocumentRangeFormattingEditProvider(r,new He(i)))}function Et(e){const n=[],i=[],r=new De(e);n.push(r);const t=(...o)=>r.getLanguageServiceWorker(...o);function a(){const{languageId:o,modeConfiguration:u}=e;Xe(i),u.completionItems&&i.push(c.languages.registerCompletionItemProvider(o,new ze(t))),u.hovers&&i.push(c.languages.registerHoverProvider(o,new Se(t))),u.documentHighlights&&i.push(c.languages.registerDocumentHighlightProvider(o,new Te(t))),u.links&&i.push(c.languages.registerLinkProvider(o,new Ne(t))),u.documentSymbols&&i.push(c.languages.registerDocumentSymbolProvider(o,new je(t))),u.rename&&i.push(c.languages.registerRenameProvider(o,new Le(t))),u.foldingRanges&&i.push(c.languages.registerFoldingRangeProvider(o,new Oe(t))),u.selectionRanges&&i.push(c.languages.registerSelectionRangeProvider(o,new Ve(t))),u.documentFormattingEdits&&i.push(c.languages.registerDocumentFormattingEditProvider(o,new We(t))),u.documentRangeFormattingEdits&&i.push(c.languages.registerDocumentRangeFormattingEditProvider(o,new He(t)))}return a(),n.push(Re(i)),Re(n)}function Re(e){return{dispose:()=>Xe(e)}}function Xe(e){for(;e.length;)e.pop().dispose()}export{it as CompletionAdapter,_t as DefinitionAdapter,mt as DiagnosticsAdapter,kt as DocumentColorAdapter,We as DocumentFormattingEditProvider,Te as DocumentHighlightAdapter,Ne as DocumentLinkAdapter,He as DocumentRangeFormattingEditProvider,je as DocumentSymbolAdapter,Oe as FoldingRangeAdapter,Se as HoverAdapter,wt as ReferenceAdapter,Le as RenameAdapter,Ve as SelectionRangeAdapter,De as WorkerManager,A as fromPosition,Me as fromRange,Et as setupMode,bt as setupMode1,_ as toRange,j as toTextEdit}; diff --git a/app/src/main/resources/web/assets/index-BzaaAwnX.js b/app/src/main/resources/web/assets/index-R8dLcqG_.js similarity index 99% rename from app/src/main/resources/web/assets/index-BzaaAwnX.js rename to app/src/main/resources/web/assets/index-R8dLcqG_.js index 98c766ed..c22bf98f 100644 --- a/app/src/main/resources/web/assets/index-BzaaAwnX.js +++ b/app/src/main/resources/web/assets/index-R8dLcqG_.js @@ -1,4 +1,4 @@ -const __vite__fileDeps=["assets/HomeView-Bq2MUecw.js","assets/content-paste-rounded-DMWI-l4g.js","assets/contact-page-outline-rounded-g8G2lc59.js","assets/rss-feed-rounded-9FbiHzkN.js","assets/HomeView-D7955Nsw.css","assets/MessagesView-BXs-YvFg.js","assets/VPagination.vuevuetypescriptsetuptruelang-DJTUsUyq.js","assets/call-outline-rounded-vG9wdFxG.js","assets/SearchInput-DTMVECJE.js","assets/search-rounded-Btuwf-IQ.js","assets/search-DwB6FdxH.js","assets/SearchInput-B8mbW6Pb.css","assets/tags-BvnEKqTV.js","assets/vee-validate.esm-DNjIRPsN.js","assets/tags-Cd8okQsu.css","assets/key-events-C5OjC_dP.js","assets/MessagesView-CptXBCle.css","assets/MessagesSidebar-CfBuWvqn.js","assets/LeftSidebar.vuevuetypescriptsetuptruelang-xn7lCt7t.js","assets/TagFilter.vuevuetypescriptsetuptruelang-CUu0usUl.js","assets/more-vert-BRJfC0iG.js","assets/EditValueModal-Ws2hdG3a.js","assets/EditValueModal-Dc0A-wcv.css","assets/CallsView-Du0dMBSu.js","assets/CallsView-BigERfzn.css","assets/CallsSidebar-BT2GeIws.js","assets/AppsView-CYUzkFWb.js","assets/sort-rounded-BiVhN4C5.js","assets/AppsView-D9MzdfnP.css","assets/AppsSidebar-ChIAGNf6.js","assets/ContactsView-Bu1iKHhR.js","assets/ContactsView-BcXNxoAk.css","assets/ContactsSidebar-BhyJSnpi.js","assets/ImagesView-CDVlRIWh.js","assets/grid-view-outline-rounded-CLDXc2EL.js","assets/upload-rounded-BkrPpEdb.js","assets/ImagesSidebar-BajmyCvN.js","assets/MediaSidebar.vuevuetypescriptsetuptruelang-rTL93G-q.js","assets/VideosView-BBEKzrlo.js","assets/VideosSidebar-D77MkroS.js","assets/AudiosView-6hAoxYID.js","assets/AudiosView-B0P2D0co.css","assets/AudiosSidebar-DVPk3URw.js","assets/NoteEditView-CM2IJAyE.js","assets/MonacoEditor.vuevuetypescriptsetuptruelang-BaOpzcW2.js","assets/MonacoEditor-f6DHwtwy.css","assets/print-outline-rounded-B686mlM4.js","assets/markdown-q_fHGBEX.js","assets/NoteEditView-BPH6syZa.css","assets/NotesView-CpABUojQ.js","assets/NotesView-BacuxLVv.css","assets/NotesSidebar-DHZnCq2W.js","assets/AIChatView-BklUdsm5.js","assets/AIChatView-DJtUiHID.css","assets/AIChatsView-BtwzZ9Jh.js","assets/AIChatsSidebar-DGY1IrlG.js","assets/FilesView-TPT_BxjG.js","assets/refresh-rounded-DnwgRawr.js","assets/default-BQXvEOng.js","assets/FilesView-DriMBhIE.css","assets/FilesSidebar--pVYvG4i.js","assets/FilesRecentView-t1qUzSQT.js","assets/JsonViewerView-BP0nVgFt.js","assets/JsonViewerView-DooypT0f.css","assets/QrCodeGeneratorView-D1zoFzte.js","assets/QrCodeGeneratorView-zGsbr-uW.css","assets/ScreenMirrorView-D_ht7L_q.js","assets/ScreenMirrorView-DC7Xz2uk.css","assets/DeviceInfoView-BOk_tcZ1.js","assets/DeviceInfoView-iGYgiKSx.css","assets/NetworkView-DEsR_qcg.js","assets/EditToolbar.vuevuetypescriptsetuptruelang-BN3_Xe4L.js","assets/Breadcrumb-Dw4cmHLf.js","assets/Breadcrumb-aiFCf_Cu.css","assets/WiFiView-Cf7pDl6y.js","assets/WireGuardView-volrBImr.js","assets/parser-DNY2aV9Q.js","assets/WireGuardEditView-DBMZogVu.js","assets/RulesView-CqY_sCWF.js","assets/question-mark-rounded-DNpslAE7.js","assets/RoutesView-D8Ogkhi5.js","assets/DevicesView-DzjDseA2.js","assets/FeedsSidebar-4CfHj968.js","assets/feeds-qiGOSRuI.js","assets/FeedsSidebar-CeLGFVT-.css","assets/FeedsSidebar2-CfQzzU05.js","assets/add-notes-outline-rounded-CDQXzmCq.js","assets/FeedsSidebar2-RJUybW8A.css","assets/FeedEntryView-HICAY_wi.js","assets/FeedEntryView-BQLkpK5x.css","assets/LoginView-8N5ARdAC.js","assets/LoginView-DlNG7WQY.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +const __vite__fileDeps=["assets/HomeView-DXd8FGXG.js","assets/content-paste-rounded-DUKWQrlf.js","assets/contact-page-outline-rounded-By1MHhQ9.js","assets/rss-feed-rounded-BCiGdgJ5.js","assets/HomeView-D7955Nsw.css","assets/MessagesView-Lo9CFG6T.js","assets/VPagination.vuevuetypescriptsetuptruelang-goYu96wT.js","assets/call-outline-rounded-BLAgo6pA.js","assets/SearchInput-DhaE-3h8.js","assets/search-rounded-CULEMJ2O.js","assets/search-ByVbj6Ls.js","assets/SearchInput-B8mbW6Pb.css","assets/tags-Dbpv368M.js","assets/vee-validate.esm-vpr6zxQb.js","assets/tags-Cd8okQsu.css","assets/key-events-BNCM8SMB.js","assets/MessagesView-CptXBCle.css","assets/MessagesSidebar-Bq3uPVyY.js","assets/LeftSidebar.vuevuetypescriptsetuptruelang-BWG8gajF.js","assets/TagFilter.vuevuetypescriptsetuptruelang-DySu9lzm.js","assets/more-vert-zjmMMiPD.js","assets/EditValueModal-O1aAFYgx.js","assets/EditValueModal-Dc0A-wcv.css","assets/CallsView-CzDaUb1S.js","assets/CallsView-BigERfzn.css","assets/CallsSidebar-DFxIRlRX.js","assets/AppsView-DjawsU48.js","assets/sort-rounded-CsJpi3ce.js","assets/AppsView-mxXQaxYv.css","assets/AppsSidebar-DIojpdxl.js","assets/ContactsView-yr-2rY75.js","assets/ContactsView-BcXNxoAk.css","assets/ContactsSidebar-kNCUoG7d.js","assets/ImagesView-BnPoKDHs.js","assets/grid-view-outline-rounded-D3vSSmrh.js","assets/upload-rounded-CQIzYelP.js","assets/ImagesSidebar-BGOsPYeJ.js","assets/MediaSidebar.vuevuetypescriptsetuptruelang-kDQsOpRT.js","assets/VideosView-DJ0iJBjn.js","assets/VideosSidebar-DsCT02ty.js","assets/AudiosView-vRBNAKnA.js","assets/AudiosView-CCTwbXRb.css","assets/AudiosSidebar-Dq3tWc3K.js","assets/NoteEditView-NOrZqV-k.js","assets/MonacoEditor.vuevuetypescriptsetuptruelang-BNZRjtJE.js","assets/MonacoEditor-f6DHwtwy.css","assets/print-outline-rounded-wkAfaGzM.js","assets/markdown-C_We2h-B.js","assets/NoteEditView-BPH6syZa.css","assets/NotesView-CmvQj0k5.js","assets/NotesView-BacuxLVv.css","assets/NotesSidebar-CKJ0TkLn.js","assets/AIChatView-C6TL1duT.js","assets/AIChatView-DJtUiHID.css","assets/AIChatsView-B4QzEE_5.js","assets/AIChatsSidebar-CtG-RNga.js","assets/FilesView-DVCo2Xu2.js","assets/refresh-rounded-D8TYDVGT.js","assets/default-BQXvEOng.js","assets/FilesView-CVor1d4m.css","assets/FilesSidebar-CwUlyGz8.js","assets/FilesRecentView-vsq00COR.js","assets/JsonViewerView-BRYD9jgN.js","assets/JsonViewerView-DooypT0f.css","assets/QrCodeGeneratorView-uCh2g3ea.js","assets/QrCodeGeneratorView-zGsbr-uW.css","assets/ScreenMirrorView-DiWYaGkb.js","assets/ScreenMirrorView-DC7Xz2uk.css","assets/DeviceInfoView-DTyOzgf5.js","assets/DeviceInfoView-iGYgiKSx.css","assets/NetworkView-CvS5JKEb.js","assets/EditToolbar.vuevuetypescriptsetuptruelang-CKd0R4yf.js","assets/Breadcrumb-CXy0PDtB.js","assets/Breadcrumb-aiFCf_Cu.css","assets/WiFiView-DcmCXVXc.js","assets/WireGuardView-C8ywVKyM.js","assets/parser-DNY2aV9Q.js","assets/WireGuardEditView-aVmc_Sci.js","assets/RulesView-y2r2SwLC.js","assets/question-mark-rounded-BC93NM4N.js","assets/RoutesView-D87udG5Z.js","assets/DevicesView-C_LOeQ2V.js","assets/FeedsSidebar-BolTRI-Q.js","assets/feeds-bp5iUXJ_.js","assets/FeedsSidebar-CeLGFVT-.css","assets/FeedsSidebar2-ARS0K567.js","assets/add-notes-outline-rounded-CJxyoeFp.js","assets/FeedsSidebar2-RJUybW8A.css","assets/FeedEntryView-DJ7bOIIl.js","assets/FeedEntryView-BQLkpK5x.css","assets/LoginView-D9DcHVT2.js","assets/LoginView-DlNG7WQY.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); var ML=Object.defineProperty;var FL=(t,e,r)=>e in t?ML(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Kt=(t,e,r)=>(FL(t,typeof e!="symbol"?e+"":e,r),r);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();function Wb(t,e){const r=new Set(t.split(","));return n=>r.has(n)}const ir={},zl=[],ni=()=>{},NL=()=>!1,Lp=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Gb=t=>t.startsWith("onUpdate:"),yr=Object.assign,Qb=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},zL=Object.prototype.hasOwnProperty,Pt=(t,e)=>zL.call(t,e),Xe=Array.isArray,ql=t=>_c(t)==="[object Map]",gc=t=>_c(t)==="[object Set]",Ew=t=>_c(t)==="[object Date]",qL=t=>_c(t)==="[object RegExp]",lt=t=>typeof t=="function",dr=t=>typeof t=="string",Eo=t=>typeof t=="symbol",Ht=t=>t!==null&&typeof t=="object",X4=t=>(Ht(t)||lt(t))&<(t.then)&<(t.catch),J4=Object.prototype.toString,_c=t=>J4.call(t),BL=t=>_c(t).slice(8,-1),Z4=t=>_c(t)==="[object Object]",Kb=t=>dr(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,wd=Wb(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Mp=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},VL=/-(\w)/g,Ui=Mp(t=>t.replace(VL,(e,r)=>r?r.toUpperCase():"")),UL=/\B([A-Z])/g,js=Mp(t=>t.replace(UL,"-$1").toLowerCase()),Fp=Mp(t=>t.charAt(0).toUpperCase()+t.slice(1)),Dh=Mp(t=>t?`on${Fp(t)}`:""),Oa=(t,e)=>!Object.is(t,e),Bl=(t,e)=>{for(let r=0;r{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:r})},Xh=t=>{const e=parseFloat(t);return isNaN(e)?t:e},jL=t=>{const e=dr(t)?Number(t):NaN;return isNaN(e)?t:e};let kw;const tC=()=>kw||(kw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Pa(t){if(Xe(t)){const e={};for(let r=0;r{if(r){const n=r.split(WL);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Dn(t){let e="";if(dr(t))e=t;else if(Xe(t))for(let r=0;rRs(r,e))}const Me=t=>dr(t)?t:t==null?"":Xe(t)||Ht(t)&&(t.toString===J4||!lt(t.toString))?JSON.stringify(t,nC,2):String(t),nC=(t,e)=>e&&e.__v_isRef?nC(t,e.value):ql(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,i],o)=>(r[ag(n,o)+" =>"]=i,r),{})}:gc(e)?{[`Set(${e.size})`]:[...e.values()].map(r=>ag(r))}:Eo(e)?ag(e):Ht(e)&&!Xe(e)&&!Z4(e)?String(e):e,ag=(t,e="")=>{var r;return Eo(t)?`Symbol(${(r=t.description)!=null?r:e})`:t};let Rn;class iC{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Rn,!e&&Rn&&(this.index=(Rn.scopes||(Rn.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const r=Rn;try{return Rn=this,e()}finally{Rn=r}}}on(){Rn=this}off(){Rn=this.parent}stop(e){if(this._active){let r,n;for(r=0,n=this.effects.length;r=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Ha()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=ka,r=Cs;try{return ka=!0,Cs=this,this._runnings++,Cw(this),this.fn()}finally{Aw(this),this._runnings--,Cs=r,ka=e}}stop(){this.active&&(Cw(this),Aw(this),this.onStop&&this.onStop(),this.active=!1)}}function eM(t){return t.value}function Cw(t){t._trackId++,t._depsLength=0}function Aw(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e{const r=new Map;return r.cleanup=t,r.computed=e,r},Jh=new WeakMap,As=Symbol(""),p_=Symbol("");function Tn(t,e,r){if(ka&&Cs){let n=Jh.get(t);n||Jh.set(t,n=new Map);let i=n.get(r);i||n.set(r,i=dC(()=>n.delete(r))),lC(Cs,i)}}function bo(t,e,r,n,i,o){const a=Jh.get(t);if(!a)return;let l=[];if(e==="clear")l=[...a.values()];else if(r==="length"&&Xe(t)){const d=Number(n);a.forEach((u,f)=>{(f==="length"||!Eo(f)&&f>=d)&&l.push(u)})}else switch(r!==void 0&&l.push(a.get(r)),e){case"add":Xe(t)?Kb(r)&&l.push(a.get("length")):(l.push(a.get(As)),ql(t)&&l.push(a.get(p_)));break;case"delete":Xe(t)||(l.push(a.get(As)),ql(t)&&l.push(a.get(p_)));break;case"set":ql(t)&&l.push(a.get(As));break}Zb();for(const d of l)d&&cC(d,4);e0()}function tM(t,e){const r=Jh.get(t);return r&&r.get(e)}const rM=Wb("__proto__,__v_isRef,__isVue"),uC=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Eo)),Sw=nM();function nM(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){const n=St(this);for(let o=0,a=this.length;o{t[e]=function(...r){ja(),Zb();const n=St(this)[e].apply(this,r);return e0(),Ha(),n}}),t}function iM(t){Eo(t)||(t=String(t));const e=St(this);return Tn(e,"has",t),e.hasOwnProperty(t)}class fC{constructor(e=!1,r=!1){this._isReadonly=e,this._isShallow=r}get(e,r,n){const i=this._isReadonly,o=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return o;if(r==="__v_raw")return n===(i?o?gM:vC:o?mC:pC).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const a=Xe(e);if(!i){if(a&&Pt(Sw,r))return Reflect.get(Sw,r,n);if(r==="hasOwnProperty")return iM}const l=Reflect.get(e,r,n);return(Eo(r)?uC.has(r):rM(r))||(i||Tn(e,"get",r),o)?l:Xt(l)?a&&Kb(r)?l:l.value:Ht(l)?i?_C(l):zn(l):l}}class hC extends fC{constructor(e=!1){super(!1,e)}set(e,r,n,i){let o=e[r];if(!this._isShallow){const d=Qd(o);if(!Zh(n)&&!Qd(n)&&(o=St(o),n=St(n)),!Xe(e)&&Xt(o)&&!Xt(n))return d?!1:(o.value=n,!0)}const a=Xe(e)&&Kb(r)?Number(r)t,Np=t=>Reflect.getPrototypeOf(t);function rh(t,e,r=!1,n=!1){t=t.__v_raw;const i=St(t),o=St(e);r||(Oa(e,o)&&Tn(i,"get",e),Tn(i,"get",o));const{has:a}=Np(i),l=n?t0:r?i0:Kd;if(a.call(i,e))return l(t.get(e));if(a.call(i,o))return l(t.get(o));t!==i&&t.get(e)}function nh(t,e=!1){const r=this.__v_raw,n=St(r),i=St(t);return e||(Oa(t,i)&&Tn(n,"has",t),Tn(n,"has",i)),t===i?r.has(t):r.has(t)||r.has(i)}function ih(t,e=!1){return t=t.__v_raw,!e&&Tn(St(t),"iterate",As),Reflect.get(t,"size",t)}function Iw(t){t=St(t);const e=St(this);return Np(e).has.call(e,t)||(e.add(t),bo(e,"add",t,t)),this}function $w(t,e){e=St(e);const r=St(this),{has:n,get:i}=Np(r);let o=n.call(r,t);o||(t=St(t),o=n.call(r,t));const a=i.call(r,t);return r.set(t,e),o?Oa(e,a)&&bo(r,"set",t,e):bo(r,"add",t,e),this}function Ow(t){const e=St(this),{has:r,get:n}=Np(e);let i=r.call(e,t);i||(t=St(t),i=r.call(e,t)),n&&n.call(e,t);const o=e.delete(t);return i&&bo(e,"delete",t,void 0),o}function Pw(){const t=St(this),e=t.size!==0,r=t.clear();return e&&bo(t,"clear",void 0,void 0),r}function oh(t,e){return function(n,i){const o=this,a=o.__v_raw,l=St(a),d=e?t0:t?i0:Kd;return!t&&Tn(l,"iterate",As),a.forEach((u,f)=>n.call(i,d(u),d(f),o))}}function ah(t,e,r){return function(...n){const i=this.__v_raw,o=St(i),a=ql(o),l=t==="entries"||t===Symbol.iterator&&a,d=t==="keys"&&a,u=i[t](...n),f=r?t0:e?i0:Kd;return!e&&Tn(o,"iterate",d?p_:As),{next(){const{value:g,done:y}=u.next();return y?{value:g,done:y}:{value:l?[f(g[0]),f(g[1])]:f(g),done:y}},[Symbol.iterator](){return this}}}}function Zo(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function cM(){const t={get(o){return rh(this,o)},get size(){return ih(this)},has:nh,add:Iw,set:$w,delete:Ow,clear:Pw,forEach:oh(!1,!1)},e={get(o){return rh(this,o,!1,!0)},get size(){return ih(this)},has:nh,add:Iw,set:$w,delete:Ow,clear:Pw,forEach:oh(!1,!0)},r={get(o){return rh(this,o,!0)},get size(){return ih(this,!0)},has(o){return nh.call(this,o,!0)},add:Zo("add"),set:Zo("set"),delete:Zo("delete"),clear:Zo("clear"),forEach:oh(!0,!1)},n={get(o){return rh(this,o,!0,!0)},get size(){return ih(this,!0)},has(o){return nh.call(this,o,!0)},add:Zo("add"),set:Zo("set"),delete:Zo("delete"),clear:Zo("clear"),forEach:oh(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{t[o]=ah(o,!1,!1),r[o]=ah(o,!0,!1),e[o]=ah(o,!1,!0),n[o]=ah(o,!0,!0)}),[t,r,e,n]}const[dM,uM,fM,hM]=cM();function r0(t,e){const r=e?t?hM:fM:t?uM:dM;return(n,i,o)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get(Pt(r,i)&&i in n?r:n,i,o)}const pM={get:r0(!1,!1)},mM={get:r0(!1,!0)},vM={get:r0(!0,!1)};const pC=new WeakMap,mC=new WeakMap,vC=new WeakMap,gM=new WeakMap;function _M(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function yM(t){return t.__v_skip||!Object.isExtensible(t)?0:_M(BL(t))}function zn(t){return Qd(t)?t:n0(t,!1,aM,pM,pC)}function gC(t){return n0(t,!1,lM,mM,mC)}function _C(t){return n0(t,!0,sM,vM,vC)}function n0(t,e,r,n,i){if(!Ht(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=i.get(t);if(o)return o;const a=yM(t);if(a===0)return t;const l=new Proxy(t,a===2?n:r);return i.set(t,l),l}function Ca(t){return Qd(t)?Ca(t.__v_raw):!!(t&&t.__v_isReactive)}function Qd(t){return!!(t&&t.__v_isReadonly)}function Zh(t){return!!(t&&t.__v_isShallow)}function yC(t){return t?!!t.__v_raw:!1}function St(t){const e=t&&t.__v_raw;return e?St(e):t}function zp(t){return Object.isExtensible(t)&&eC(t,"__v_skip",!0),t}const Kd=t=>Ht(t)?zn(t):t,i0=t=>Ht(t)?_C(t):t;class bC{constructor(e,r,n,i){this.getter=e,this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Jb(()=>e(this._value),()=>Lh(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const e=St(this);return(!e._cacheable||e.effect.dirty)&&Oa(e._value,e._value=e.effect.run())&&Lh(e,4),xC(e),e.effect._dirtyLevel>=2&&Lh(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function bM(t,e,r=!1){let n,i;const o=lt(t);return o?(n=t,i=ni):(n=t.get,i=t.set),new bC(n,i,o||!i,r)}function xC(t){var e;ka&&Cs&&(t=St(t),lC(Cs,(e=t.dep)!=null?e:t.dep=dC(()=>t.dep=void 0,t instanceof bC?t:void 0)))}function Lh(t,e=4,r){t=St(t);const n=t.dep;n&&cC(n,e)}function Xt(t){return!!(t&&t.__v_isRef===!0)}function Le(t){return wC(t,!1)}function Td(t){return wC(t,!0)}function wC(t,e){return Xt(t)?t:new xM(t,e)}class xM{constructor(e,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?e:St(e),this._value=r?e:Kd(e)}get value(){return xC(this),this._value}set value(e){const r=this.__v_isShallow||Zh(e)||Qd(e);e=r?e:St(e),Oa(e,this._rawValue)&&(this._rawValue=e,this._value=r?e:Kd(e),Lh(this,4))}}function ne(t){return Xt(t)?t.value:t}function p1e(t){return lt(t)?t():ne(t)}const wM={get:(t,e,r)=>ne(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const i=t[e];return Xt(i)&&!Xt(r)?(i.value=r,!0):Reflect.set(t,e,r,n)}};function TC(t){return Ca(t)?t:new Proxy(t,wM)}function qp(t){const e=Xe(t)?new Array(t.length):{};for(const r in t)e[r]=EC(t,r);return e}class TM{constructor(e,r,n){this._object=e,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return tM(St(this._object),this._key)}}class EM{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function kM(t,e,r){return Xt(t)?t:lt(t)?new EM(t):Ht(t)&&arguments.length>1?EC(t,e,r):Le(t)}function EC(t,e,r){const n=t[e];return Xt(n)?n:new TM(t,e,r)}function Aa(t,e,r,n){try{return n?t(...n):t()}catch(i){Bp(i,e,r)}}function oi(t,e,r,n){if(lt(t)){const i=Aa(t,e,r,n);return i&&X4(i)&&i.catch(o=>{Bp(o,e,r)}),i}if(Xe(t)){const i=[];for(let o=0;o>>1,i=Zr[n],o=Xd(i);ozi&&Zr.splice(e,1)}function IM(t){Xe(t)?Vl.push(...t):(!ca||!ca.includes(t,t.allowRecurse?ys+1:ys))&&Vl.push(t),CC()}function Rw(t,e,r=Yd?zi+1:0){for(;rXd(r)-Xd(n));if(Vl.length=0,ca){ca.push(...e);return}for(ca=e,ys=0;yst.id==null?1/0:t.id,$M=(t,e)=>{const r=Xd(t)-Xd(e);if(r===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return r};function SC(t){m_=!1,Yd=!0,Zr.sort($M);try{for(zi=0;zidr(x)?x.trim():x)),g&&(i=r.map(Xh))}let l,d=n[l=Dh(e)]||n[l=Dh(Ui(e))];!d&&o&&(d=n[l=Dh(js(e))]),d&&oi(d,t,6,i);const u=n[l+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[l])return;t.emitted[l]=!0,oi(u,t,6,i)}}function IC(t,e,r=!1){const n=e.emitsCache,i=n.get(t);if(i!==void 0)return i;const o=t.emits;let a={},l=!1;if(!lt(t)){const d=u=>{const f=IC(u,e,!0);f&&(l=!0,yr(a,f))};!r&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}return!o&&!l?(Ht(t)&&n.set(t,null),null):(Xe(o)?o.forEach(d=>a[d]=null):yr(a,o),Ht(t)&&n.set(t,a),a)}function Vp(t,e){return!t||!Lp(e)?!1:(e=e.slice(2).replace(/Once$/,""),Pt(t,e[0].toLowerCase()+e.slice(1))||Pt(t,js(e))||Pt(t,e))}let Tr=null,Up=null;function ep(t){const e=Tr;return Tr=t,Up=t&&t.type.__scopeId||null,e}function Io(t){Up=t}function $o(){Up=null}function Ir(t,e=Tr,r){if(!e||t._n)return t;const n=(...i)=>{n._d&&Gw(-1);const o=ep(e);let a;try{a=t(...i)}finally{ep(o),n._d&&Gw(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function sg(t){const{type:e,vnode:r,proxy:n,withProxy:i,propsOptions:[o],slots:a,attrs:l,emit:d,render:u,renderCache:f,props:g,data:y,setupState:x,ctx:m,inheritAttrs:p}=t,_=ep(t);let v,b;try{if(r.shapeFlag&4){const E=i||n,C=E;v=Ni(u.call(C,E,f,g,x,y,m)),b=l}else{const E=e;v=Ni(E.length>1?E(g,{attrs:l,slots:a,emit:d}):E(g,null)),b=e.props?l:PM(l)}}catch(E){Id.length=0,Bp(E,t,1),v=$e(Mn)}let w=v;if(b&&p!==!1){const E=Object.keys(b),{shapeFlag:C}=w;E.length&&C&7&&(o&&E.some(Gb)&&(b=RM(b,o)),w=ko(w,b,!1,!0))}return r.dirs&&(w=ko(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(r.dirs):r.dirs),r.transition&&(w.transition=r.transition),v=w,ep(_),v}const PM=t=>{let e;for(const r in t)(r==="class"||r==="style"||Lp(r))&&((e||(e={}))[r]=t[r]);return e},RM=(t,e)=>{const r={};for(const n in t)(!Gb(n)||!(n.slice(9)in e))&&(r[n]=t[n]);return r};function DM(t,e,r){const{props:n,children:i,component:o}=t,{props:a,children:l,patchFlag:d}=e,u=o.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&d>=0){if(d&1024)return!0;if(d&16)return n?Dw(n,a,u):!!a;if(d&8){const f=e.dynamicProps;for(let g=0;gt.__isSuspense;function FM(t,e){e&&e.pendingBranch?Xe(t)?e.effects.push(...t):e.effects.push(t):IM(t)}const NM=Symbol.for("v-scx"),zM=()=>cn(NM);function qM(t,e){return jp(t,null,e)}function BM(t,e){return jp(t,null,{flush:"post"})}const sh={};function Rt(t,e,r){return jp(t,e,r)}function jp(t,e,{immediate:r,deep:n,flush:i,once:o,onTrack:a,onTrigger:l}=ir){if(e&&o){const S=e;e=(...P)=>{S(...P),C()}}const d=Mr,u=S=>n===!0?S:ws(S,n===!1?1:void 0);let f,g=!1,y=!1;if(Xt(t)?(f=()=>t.value,g=Zh(t)):Ca(t)?(f=()=>u(t),g=!0):Xe(t)?(y=!0,g=t.some(S=>Ca(S)||Zh(S)),f=()=>t.map(S=>{if(Xt(S))return S.value;if(Ca(S))return u(S);if(lt(S))return Aa(S,d,2)})):lt(t)?e?f=()=>Aa(t,d,2):f=()=>(x&&x(),oi(t,d,3,[m])):f=ni,e&&n){const S=f;f=()=>ws(S())}let x,m=S=>{x=w.onStop=()=>{Aa(S,d,4),x=w.onStop=void 0}},p;if(Qp)if(m=ni,e?r&&oi(e,d,3,[f(),y?[]:void 0,m]):f(),i==="sync"){const S=zM();p=S.__watcherHandles||(S.__watcherHandles=[])}else return ni;let _=y?new Array(t.length).fill(sh):sh;const v=()=>{if(!(!w.active||!w.dirty))if(e){const S=w.run();(n||g||(y?S.some((P,R)=>Oa(P,_[R])):Oa(S,_)))&&(x&&x(),oi(e,d,3,[S,_===sh?void 0:y&&_[0]===sh?[]:_,m]),_=S)}else w.run()};v.allowRecurse=!!e;let b;i==="sync"?b=v:i==="post"?b=()=>Hr(v,d&&d.suspense):(v.pre=!0,d&&(v.id=d.uid),b=()=>a0(v));const w=new Jb(f,ni,b),E=oC(),C=()=>{w.stop(),E&&Qb(E.effects,w)};return e?r?v():_=w.run():i==="post"?Hr(w.run.bind(w),d&&d.suspense):w.run(),p&&p.push(C),C}function VM(t,e,r){const n=this.proxy,i=dr(t)?t.includes(".")?PC(n,t):()=>n[t]:t.bind(n,n);let o;lt(e)?o=e:(o=e.handler,r=e);const a=wu(this),l=jp(i,o.bind(n),r);return a(),l}function PC(t,e){const r=e.split(".");return()=>{let n=t;for(let i=0;i{ws(n,e,r)});else if(Z4(t))for(const n in t)ws(t[n],e,r);return t}function ot(t,e){if(Tr===null)return t;const r=Kp(Tr)||Tr.proxy,n=t.dirs||(t.dirs=[]);for(let i=0;i{t.isMounted=!0}),$i(()=>{t.isUnmounting=!0}),t}const Zn=[Function,Array],DC={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Zn,onEnter:Zn,onAfterEnter:Zn,onEnterCancelled:Zn,onBeforeLeave:Zn,onLeave:Zn,onAfterLeave:Zn,onLeaveCancelled:Zn,onBeforeAppear:Zn,onAppear:Zn,onAfterAppear:Zn,onAppearCancelled:Zn},UM={name:"BaseTransition",props:DC,setup(t,{slots:e}){const r=Ki(),n=RC();return()=>{const i=e.default&&d0(e.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const y of i)if(y.type!==Mn){o=y;break}}const a=St(t),{mode:l}=a;if(n.isLeaving)return lg(o);const d=Mw(o);if(!d)return lg(o);const u=Jd(d,a,n,r);Xl(d,u);const f=r.subTree,g=f&&Mw(f);if(g&&g.type!==Mn&&!ya(d,g)){const y=Jd(g,a,n,r);if(Xl(g,y),l==="out-in"&&d.type!==Mn)return n.isLeaving=!0,y.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&(r.effect.dirty=!0,r.update())},lg(o);l==="in-out"&&d.type!==Mn&&(y.delayLeave=(x,m,p)=>{const _=LC(n,g);_[String(g.key)]=g,x[da]=()=>{m(),x[da]=void 0,delete u.delayedLeave},u.delayedLeave=p})}return o}}},jM=UM;function LC(t,e){const{leavingVNodes:r}=t;let n=r.get(e.type);return n||(n=Object.create(null),r.set(e.type,n)),n}function Jd(t,e,r,n){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:d,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:g,onLeave:y,onAfterLeave:x,onLeaveCancelled:m,onBeforeAppear:p,onAppear:_,onAfterAppear:v,onAppearCancelled:b}=e,w=String(t.key),E=LC(r,t),C=(R,D)=>{R&&oi(R,n,9,D)},S=(R,D)=>{const z=D[1];C(R,D),Xe(R)?R.every(j=>j.length<=1)&&z():R.length<=1&&z()},P={mode:o,persisted:a,beforeEnter(R){let D=l;if(!r.isMounted)if(i)D=p||l;else return;R[da]&&R[da](!0);const z=E[w];z&&ya(t,z)&&z.el[da]&&z.el[da](),C(D,[R])},enter(R){let D=d,z=u,j=f;if(!r.isMounted)if(i)D=_||d,z=v||u,j=b||f;else return;let q=!1;const J=R[lh]=be=>{q||(q=!0,be?C(j,[R]):C(z,[R]),P.delayedLeave&&P.delayedLeave(),R[lh]=void 0)};D?S(D,[R,J]):J()},leave(R,D){const z=String(t.key);if(R[lh]&&R[lh](!0),r.isUnmounting)return D();C(g,[R]);let j=!1;const q=R[da]=J=>{j||(j=!0,D(),J?C(m,[R]):C(x,[R]),R[da]=void 0,E[z]===t&&delete E[z])};E[z]=t,y?S(y,[R,q]):q()},clone(R){return Jd(R,e,r,n)}};return P}function lg(t){if(Hp(t))return t=ko(t),t.children=null,t}function Mw(t){if(!Hp(t))return t;const{shapeFlag:e,children:r}=t;if(r){if(e&16)return r[0];if(e&32&<(r.default))return r.default()}}function Xl(t,e){t.shapeFlag&6&&t.component?Xl(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function d0(t,e=!1,r){let n=[],i=0;for(let o=0;o1)for(let o=0;o!!t.type.__asyncLoader,Hp=t=>t.type.__isKeepAlive,HM={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const r=Ki(),n=r.ctx;if(!n.renderer)return()=>{const b=e.default&&e.default();return b&&b.length===1?b[0]:b};const i=new Map,o=new Set;let a=null;const l=r.suspense,{renderer:{p:d,m:u,um:f,o:{createElement:g}}}=n,y=g("div");n.activate=(b,w,E,C,S)=>{const P=b.component;u(b,w,E,0,l),d(P.vnode,b,w,E,P,l,C,b.slotScopeIds,S),Hr(()=>{P.isDeactivated=!1,P.a&&Bl(P.a);const R=b.props&&b.props.onVnodeMounted;R&&ti(R,P.parent,b)},l)},n.deactivate=b=>{const w=b.component;u(b,y,null,1,l),Hr(()=>{w.da&&Bl(w.da);const E=b.props&&b.props.onVnodeUnmounted;E&&ti(E,w.parent,b),w.isDeactivated=!0},l)};function x(b){dg(b),f(b,r,l,!0)}function m(b){i.forEach((w,E)=>{const C=E_(w.type);C&&(!b||!b(C))&&p(E)})}function p(b){const w=i.get(b);!a||!ya(w,a)?x(w):a&&dg(a),i.delete(b),o.delete(b)}Rt(()=>[t.include,t.exclude],([b,w])=>{b&&m(E=>_d(b,E)),w&&m(E=>!_d(w,E))},{flush:"post",deep:!0});let _=null;const v=()=>{_!=null&&i.set(_,ug(r.subTree))};return Qr(v),Gp(v),$i(()=>{i.forEach(b=>{const{subTree:w,suspense:E}=r,C=ug(w);if(b.type===C.type&&b.key===C.key){dg(C);const S=C.component.da;S&&Hr(S,E);return}x(b)})}),()=>{if(_=null,!e.default)return null;const b=e.default(),w=b[0];if(b.length>1)return a=null,b;if(!Jl(w)||!(w.shapeFlag&4)&&!(w.shapeFlag&128))return a=null,w;let E=ug(w);const C=E.type,S=E_(Ul(E)?E.type.__asyncResolved||{}:C),{include:P,exclude:R,max:D}=t;if(P&&(!S||!_d(P,S))||R&&S&&_d(R,S))return a=E,w;const z=E.key==null?C:E.key,j=i.get(z);return E.el&&(E=ko(E),w.shapeFlag&128&&(w.ssContent=E)),_=z,j?(E.el=j.el,E.component=j.component,E.transition&&Xl(E,E.transition),E.shapeFlag|=512,o.delete(z),o.add(z)):(o.add(z),D&&o.size>parseInt(D,10)&&p(o.values().next().value)),E.shapeFlag|=256,a=E,OC(w.type)?w:E}}},cg=HM;function _d(t,e){return Xe(t)?t.some(r=>_d(r,e)):dr(t)?t.split(",").includes(e):qL(t)?t.test(e):!1}function MC(t,e){FC(t,"a",e)}function WM(t,e){FC(t,"da",e)}function FC(t,e,r=Mr){const n=t.__wdc||(t.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Wp(e,n,r),r){let i=r.parent;for(;i&&i.parent;)Hp(i.parent.vnode)&&GM(n,e,r,i),i=i.parent}}function GM(t,e,r,n){const i=Wp(e,t,n,!0);Wa(()=>{Qb(n[e],i)},r)}function dg(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function ug(t){return t.shapeFlag&128?t.ssContent:t}function Wp(t,e,r=Mr,n=!1){if(r){const i=r[t]||(r[t]=[]),o=e.__weh||(e.__weh=(...a)=>{if(r.isUnmounted)return;ja();const l=wu(r),d=oi(e,r,t,a);return l(),Ha(),d});return n?i.unshift(o):i.push(o),o}}const Po=t=>(e,r=Mr)=>(!Qp||t==="sp")&&Wp(t,(...n)=>e(...n),r),NC=Po("bm"),Qr=Po("m"),QM=Po("bu"),Gp=Po("u"),$i=Po("bum"),Wa=Po("um"),zC=Po("sp"),KM=Po("rtg"),YM=Po("rtc");function XM(t,e=Mr){Wp("ec",t,e)}function ci(t,e,r,n){let i;const o=r;if(Xe(t)||dr(t)){i=new Array(t.length);for(let a=0,l=t.length;ae(a,l,void 0,o));else{const a=Object.keys(t);i=new Array(a.length);for(let l=0,d=a.length;lJl(e)?!(e.type===Mn||e.type===$t&&!qC(e.children)):!0)?t:null}function JM(t,e){const r={};for(const n in t)r[Dh(n)]=t[n];return r}const g_=t=>t?n3(t)?Kp(t)||t.proxy:g_(t.parent):null,kd=yr(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>g_(t.parent),$root:t=>g_(t.root),$emit:t=>t.emit,$options:t=>u0(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,a0(t.update)}),$nextTick:t=>t.n||(t.n=yo.bind(t.proxy)),$watch:t=>VM.bind(t)}),fg=(t,e)=>t!==ir&&!t.__isScriptSetup&&Pt(t,e),ZM={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:r,setupState:n,data:i,props:o,accessCache:a,type:l,appContext:d}=t;let u;if(e[0]!=="$"){const x=a[e];if(x!==void 0)switch(x){case 1:return n[e];case 2:return i[e];case 4:return r[e];case 3:return o[e]}else{if(fg(n,e))return a[e]=1,n[e];if(i!==ir&&Pt(i,e))return a[e]=2,i[e];if((u=t.propsOptions[0])&&Pt(u,e))return a[e]=3,o[e];if(r!==ir&&Pt(r,e))return a[e]=4,r[e];__&&(a[e]=0)}}const f=kd[e];let g,y;if(f)return e==="$attrs"&&Tn(t.attrs,"get",""),f(t);if((g=l.__cssModules)&&(g=g[e]))return g;if(r!==ir&&Pt(r,e))return a[e]=4,r[e];if(y=d.config.globalProperties,Pt(y,e))return y[e]},set({_:t},e,r){const{data:n,setupState:i,ctx:o}=t;return fg(i,e)?(i[e]=r,!0):n!==ir&&Pt(n,e)?(n[e]=r,!0):Pt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(o[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:i,propsOptions:o}},a){let l;return!!r[a]||t!==ir&&Pt(t,a)||fg(e,a)||(l=o[0])&&Pt(l,a)||Pt(n,a)||Pt(kd,a)||Pt(i.config.globalProperties,a)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:Pt(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function eF(){return tF().slots}function tF(){const t=Ki();return t.setupContext||(t.setupContext=o3(t))}function Fw(t){return Xe(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}let __=!0;function rF(t){const e=u0(t),r=t.proxy,n=t.ctx;__=!1,e.beforeCreate&&Nw(e.beforeCreate,t,"bc");const{data:i,computed:o,methods:a,watch:l,provide:d,inject:u,created:f,beforeMount:g,mounted:y,beforeUpdate:x,updated:m,activated:p,deactivated:_,beforeDestroy:v,beforeUnmount:b,destroyed:w,unmounted:E,render:C,renderTracked:S,renderTriggered:P,errorCaptured:R,serverPrefetch:D,expose:z,inheritAttrs:j,components:q,directives:J,filters:be}=e;if(u&&nF(u,n,null),a)for(const ke in a){const Se=a[ke];lt(Se)&&(n[ke]=Se.bind(r))}if(i){const ke=i.call(r,r);Ht(ke)&&(t.data=zn(ke))}if(__=!0,o)for(const ke in o){const Se=o[ke],Be=lt(Se)?Se.bind(r,r):lt(Se.get)?Se.get.bind(r,r):ni,Re=!lt(Se)&<(Se.set)?Se.set.bind(r):ni,se=At({get:Be,set:Re});Object.defineProperty(n,ke,{enumerable:!0,configurable:!0,get:()=>se.value,set:we=>se.value=we})}if(l)for(const ke in l)BC(l[ke],n,r,ke);if(d){const ke=lt(d)?d.call(r):d;Reflect.ownKeys(ke).forEach(Se=>{Cd(Se,ke[Se])})}f&&Nw(f,t,"c");function ge(ke,Se){Xe(Se)?Se.forEach(Be=>ke(Be.bind(r))):Se&&ke(Se.bind(r))}if(ge(NC,g),ge(Qr,y),ge(QM,x),ge(Gp,m),ge(MC,p),ge(WM,_),ge(XM,R),ge(YM,S),ge(KM,P),ge($i,b),ge(Wa,E),ge(zC,D),Xe(z))if(z.length){const ke=t.exposed||(t.exposed={});z.forEach(Se=>{Object.defineProperty(ke,Se,{get:()=>r[Se],set:Be=>r[Se]=Be})})}else t.exposed||(t.exposed={});C&&t.render===ni&&(t.render=C),j!=null&&(t.inheritAttrs=j),q&&(t.components=q),J&&(t.directives=J)}function nF(t,e,r=ni){Xe(t)&&(t=y_(t));for(const n in t){const i=t[n];let o;Ht(i)?"default"in i?o=cn(i.from||n,i.default,!0):o=cn(i.from||n):o=cn(i),Xt(o)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):e[n]=o}}function Nw(t,e,r){oi(Xe(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function BC(t,e,r,n){const i=n.includes(".")?PC(r,n):()=>r[n];if(dr(t)){const o=e[t];lt(o)&&Rt(i,o)}else if(lt(t))Rt(i,t.bind(r));else if(Ht(t))if(Xe(t))t.forEach(o=>BC(o,e,r,n));else{const o=lt(t.handler)?t.handler.bind(r):e[t.handler];lt(o)&&Rt(i,o,t)}}function u0(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=t.appContext,l=o.get(e);let d;return l?d=l:!i.length&&!r&&!n?d=e:(d={},i.length&&i.forEach(u=>tp(d,u,a,!0)),tp(d,e,a)),Ht(e)&&o.set(e,d),d}function tp(t,e,r,n=!1){const{mixins:i,extends:o}=e;o&&tp(t,o,r,!0),i&&i.forEach(a=>tp(t,a,r,!0));for(const a in e)if(!(n&&a==="expose")){const l=iF[a]||r&&r[a];t[a]=l?l(t[a],e[a]):e[a]}return t}const iF={data:zw,props:qw,emits:qw,methods:yd,computed:yd,beforeCreate:an,created:an,beforeMount:an,mounted:an,beforeUpdate:an,updated:an,beforeDestroy:an,beforeUnmount:an,destroyed:an,unmounted:an,activated:an,deactivated:an,errorCaptured:an,serverPrefetch:an,components:yd,directives:yd,watch:aF,provide:zw,inject:oF};function zw(t,e){return e?t?function(){return yr(lt(t)?t.call(this,this):t,lt(e)?e.call(this,this):e)}:e:t}function oF(t,e){return yd(y_(t),y_(e))}function y_(t){if(Xe(t)){const e={};for(let r=0;r1)return r&<(e)?e.call(n&&n.proxy):e}}function UC(){return!!(Mr||Tr||jl)}const jC={},HC=()=>Object.create(jC),WC=t=>Object.getPrototypeOf(t)===jC;function cF(t,e,r,n=!1){const i={},o=HC();t.propsDefaults=Object.create(null),GC(t,e,i,o);for(const a in t.propsOptions[0])a in i||(i[a]=void 0);r?t.props=n?i:gC(i):t.type.props?t.props=i:t.props=o,t.attrs=o}function dF(t,e,r,n){const{props:i,attrs:o,vnode:{patchFlag:a}}=t,l=St(i),[d]=t.propsOptions;let u=!1;if((n||a>0)&&!(a&16)){if(a&8){const f=t.vnode.dynamicProps;for(let g=0;g{d=!0;const[y,x]=QC(g,e,!0);yr(a,y),x&&l.push(...x)};!r&&e.mixins.length&&e.mixins.forEach(f),t.extends&&f(t.extends),t.mixins&&t.mixins.forEach(f)}if(!o&&!d)return Ht(t)&&n.set(t,zl),zl;if(Xe(o))for(let f=0;f-1,x[1]=p<0||m-1||Pt(x,"default"))&&l.push(g)}}}const u=[a,l];return Ht(t)&&n.set(t,u),u}function Bw(t){return t[0]!=="$"&&!wd(t)}function Vw(t){return t===null?"null":typeof t=="function"?t.name||"":typeof t=="object"&&t.constructor&&t.constructor.name||""}function Uw(t,e){return Vw(t)===Vw(e)}function jw(t,e){return Xe(e)?e.findIndex(r=>Uw(r,t)):lt(e)&&Uw(e,t)?0:-1}const KC=t=>t[0]==="_"||t==="$stable",f0=t=>Xe(t)?t.map(Ni):[Ni(t)],uF=(t,e,r)=>{if(e._n)return e;const n=Ir((...i)=>f0(e(...i)),r);return n._c=!1,n},YC=(t,e,r)=>{const n=t._ctx;for(const i in t){if(KC(i))continue;const o=t[i];if(lt(o))e[i]=uF(i,o,n);else if(o!=null){const a=f0(o);e[i]=()=>a}}},XC=(t,e)=>{const r=f0(e);t.slots.default=()=>r},fF=(t,e)=>{const r=t.slots=HC();if(t.vnode.shapeFlag&32){const n=e._;n?(yr(r,e),eC(r,"_",n,!0)):YC(e,r)}else e&&XC(t,e)},hF=(t,e,r)=>{const{vnode:n,slots:i}=t;let o=!0,a=ir;if(n.shapeFlag&32){const l=e._;l?r&&l===1?o=!1:(yr(i,e),!r&&l===1&&delete i._):(o=!e.$stable,YC(e,i)),a=e}else e&&(XC(t,e),a={default:1});if(o)for(const l in i)!KC(l)&&a[l]==null&&delete i[l]};function x_(t,e,r,n,i=!1){if(Xe(t)){t.forEach((y,x)=>x_(y,e&&(Xe(e)?e[x]:e),r,n,i));return}if(Ul(n)&&!i)return;const o=n.shapeFlag&4?Kp(n.component)||n.component.proxy:n.el,a=i?null:o,{i:l,r:d}=t,u=e&&e.r,f=l.refs===ir?l.refs={}:l.refs,g=l.setupState;if(u!=null&&u!==d&&(dr(u)?(f[u]=null,Pt(g,u)&&(g[u]=null)):Xt(u)&&(u.value=null)),lt(d))Aa(d,l,12,[a,f]);else{const y=dr(d),x=Xt(d);if(y||x){const m=()=>{if(t.f){const p=y?Pt(g,d)?g[d]:f[d]:d.value;i?Xe(p)&&Qb(p,o):Xe(p)?p.includes(o)||p.push(o):y?(f[d]=[o],Pt(g,d)&&(g[d]=f[d])):(d.value=[o],t.k&&(f[t.k]=d.value))}else y?(f[d]=a,Pt(g,d)&&(g[d]=a)):x&&(d.value=a,t.k&&(f[t.k]=a))};a?(m.id=-1,Hr(m,r)):m()}}}const Hr=FM;function pF(t){return mF(t)}function mF(t,e){const r=tC();r.__VUE__=!0;const{insert:n,remove:i,patchProp:o,createElement:a,createText:l,createComment:d,setText:u,setElementText:f,parentNode:g,nextSibling:y,setScopeId:x=ni,insertStaticContent:m}=t,p=(k,A,M,U=null,G=null,ae=null,Ae=void 0,fe=null,_e=!!A.dynamicChildren)=>{if(k===A)return;k&&!ya(k,A)&&(U=ee(k),we(k,G,ae,!0),k=null),A.patchFlag===-2&&(_e=!1,A.dynamicChildren=null);const{type:ie,ref:W,shapeFlag:B}=A;switch(ie){case xu:_(k,A,M,U);break;case Mn:v(k,A,M,U);break;case Sd:k==null&&b(A,M,U,Ae);break;case $t:q(k,A,M,U,G,ae,Ae,fe,_e);break;default:B&1?C(k,A,M,U,G,ae,Ae,fe,_e):B&6?J(k,A,M,U,G,ae,Ae,fe,_e):(B&64||B&128)&&ie.process(k,A,M,U,G,ae,Ae,fe,_e,De)}W!=null&&G&&x_(W,k&&k.ref,ae,A||k,!A)},_=(k,A,M,U)=>{if(k==null)n(A.el=l(A.children),M,U);else{const G=A.el=k.el;A.children!==k.children&&u(G,A.children)}},v=(k,A,M,U)=>{k==null?n(A.el=d(A.children||""),M,U):A.el=k.el},b=(k,A,M,U)=>{[k.el,k.anchor]=m(k.children,A,M,U,k.el,k.anchor)},w=({el:k,anchor:A},M,U)=>{let G;for(;k&&k!==A;)G=y(k),n(k,M,U),k=G;n(A,M,U)},E=({el:k,anchor:A})=>{let M;for(;k&&k!==A;)M=y(k),i(k),k=M;i(A)},C=(k,A,M,U,G,ae,Ae,fe,_e)=>{A.type==="svg"?Ae="svg":A.type==="math"&&(Ae="mathml"),k==null?S(A,M,U,G,ae,Ae,fe,_e):D(k,A,G,ae,Ae,fe,_e)},S=(k,A,M,U,G,ae,Ae,fe)=>{let _e,ie;const{props:W,shapeFlag:B,transition:xe,dirs:Ie}=k;if(_e=k.el=a(k.type,ae,W&&W.is,W),B&8?f(_e,k.children):B&16&&R(k.children,_e,null,U,G,hg(k,ae),Ae,fe),Ie&&us(k,null,U,"created"),P(_e,k,k.scopeId,Ae,U),W){for(const Ye in W)Ye!=="value"&&!wd(Ye)&&o(_e,Ye,null,W[Ye],ae,k.children,U,G,Ge);"value"in W&&o(_e,"value",null,W.value,ae),(ie=W.onVnodeBeforeMount)&&ti(ie,U,k)}Ie&&us(k,null,U,"beforeMount");const ze=vF(G,xe);ze&&xe.beforeEnter(_e),n(_e,A,M),((ie=W&&W.onVnodeMounted)||ze||Ie)&&Hr(()=>{ie&&ti(ie,U,k),ze&&xe.enter(_e),Ie&&us(k,null,U,"mounted")},G)},P=(k,A,M,U,G)=>{if(M&&x(k,M),U)for(let ae=0;ae{for(let ie=_e;ie{const fe=A.el=k.el;let{patchFlag:_e,dynamicChildren:ie,dirs:W}=A;_e|=k.patchFlag&16;const B=k.props||ir,xe=A.props||ir;let Ie;if(M&&fs(M,!1),(Ie=xe.onVnodeBeforeUpdate)&&ti(Ie,M,A,k),W&&us(A,k,M,"beforeUpdate"),M&&fs(M,!0),ie?z(k.dynamicChildren,ie,fe,M,U,hg(A,G),ae):Ae||Se(k,A,fe,null,M,U,hg(A,G),ae,!1),_e>0){if(_e&16)j(fe,A,B,xe,M,U,G);else if(_e&2&&B.class!==xe.class&&o(fe,"class",null,xe.class,G),_e&4&&o(fe,"style",B.style,xe.style,G),_e&8){const ze=A.dynamicProps;for(let Ye=0;Ye{Ie&&ti(Ie,M,A,k),W&&us(A,k,M,"updated")},U)},z=(k,A,M,U,G,ae,Ae)=>{for(let fe=0;fe{if(M!==U){if(M!==ir)for(const fe in M)!wd(fe)&&!(fe in U)&&o(k,fe,M[fe],null,Ae,A.children,G,ae,Ge);for(const fe in U){if(wd(fe))continue;const _e=U[fe],ie=M[fe];_e!==ie&&fe!=="value"&&o(k,fe,ie,_e,Ae,A.children,G,ae,Ge)}"value"in U&&o(k,"value",M.value,U.value,Ae)}},q=(k,A,M,U,G,ae,Ae,fe,_e)=>{const ie=A.el=k?k.el:l(""),W=A.anchor=k?k.anchor:l("");let{patchFlag:B,dynamicChildren:xe,slotScopeIds:Ie}=A;Ie&&(fe=fe?fe.concat(Ie):Ie),k==null?(n(ie,M,U),n(W,M,U),R(A.children||[],M,W,G,ae,Ae,fe,_e)):B>0&&B&64&&xe&&k.dynamicChildren?(z(k.dynamicChildren,xe,M,G,ae,Ae,fe),(A.key!=null||G&&A===G.subTree)&&h0(k,A,!0)):Se(k,A,M,W,G,ae,Ae,fe,_e)},J=(k,A,M,U,G,ae,Ae,fe,_e)=>{A.slotScopeIds=fe,k==null?A.shapeFlag&512?G.ctx.activate(A,M,U,Ae,_e):be(A,M,U,G,ae,Ae,_e):Oe(k,A,_e)},be=(k,A,M,U,G,ae,Ae)=>{const fe=k.component=AF(k,U,G);if(Hp(k)&&(fe.ctx.renderer=De),SF(fe),fe.asyncDep){if(G&&G.registerDep(fe,ge),!k.el){const _e=fe.subTree=$e(Mn);v(null,_e,A,M)}}else ge(fe,k,A,M,G,ae,Ae)},Oe=(k,A,M)=>{const U=A.component=k.component;if(DM(k,A,M))if(U.asyncDep&&!U.asyncResolved){ke(U,A,M);return}else U.next=A,SM(U.update),U.effect.dirty=!0,U.update();else A.el=k.el,U.vnode=A},ge=(k,A,M,U,G,ae,Ae)=>{const fe=()=>{if(k.isMounted){let{next:W,bu:B,u:xe,parent:Ie,vnode:ze}=k;{const Un=JC(k);if(Un){W&&(W.el=ze.el,ke(k,W,Ae)),Un.asyncDep.then(()=>{k.isUnmounted||fe()});return}}let Ye=W,dt;fs(k,!1),W?(W.el=ze.el,ke(k,W,Ae)):W=ze,B&&Bl(B),(dt=W.props&&W.props.onVnodeBeforeUpdate)&&ti(dt,Ie,W,ze),fs(k,!0);const ht=sg(k),sr=k.subTree;k.subTree=ht,p(sr,ht,g(sr.el),ee(sr),k,G,ae),W.el=ht.el,Ye===null&&LM(k,ht.el),xe&&Hr(xe,G),(dt=W.props&&W.props.onVnodeUpdated)&&Hr(()=>ti(dt,Ie,W,ze),G)}else{let W;const{el:B,props:xe}=A,{bm:Ie,m:ze,parent:Ye}=k,dt=Ul(A);if(fs(k,!1),Ie&&Bl(Ie),!dt&&(W=xe&&xe.onVnodeBeforeMount)&&ti(W,Ye,A),fs(k,!0),B&&it){const ht=()=>{k.subTree=sg(k),it(B,k.subTree,k,G,null)};dt?A.type.__asyncLoader().then(()=>!k.isUnmounted&&ht()):ht()}else{const ht=k.subTree=sg(k);p(null,ht,M,U,k,G,ae),A.el=ht.el}if(ze&&Hr(ze,G),!dt&&(W=xe&&xe.onVnodeMounted)){const ht=A;Hr(()=>ti(W,Ye,ht),G)}(A.shapeFlag&256||Ye&&Ul(Ye.vnode)&&Ye.vnode.shapeFlag&256)&&k.a&&Hr(k.a,G),k.isMounted=!0,A=M=U=null}},_e=k.effect=new Jb(fe,ni,()=>a0(ie),k.scope),ie=k.update=()=>{_e.dirty&&_e.run()};ie.id=k.uid,fs(k,!0),ie()},ke=(k,A,M)=>{A.component=k;const U=k.vnode.props;k.vnode=A,k.next=null,dF(k,A.props,U,M),hF(k,A.children,M),ja(),Rw(k),Ha()},Se=(k,A,M,U,G,ae,Ae,fe,_e=!1)=>{const ie=k&&k.children,W=k?k.shapeFlag:0,B=A.children,{patchFlag:xe,shapeFlag:Ie}=A;if(xe>0){if(xe&128){Re(ie,B,M,U,G,ae,Ae,fe,_e);return}else if(xe&256){Be(ie,B,M,U,G,ae,Ae,fe,_e);return}}Ie&8?(W&16&&Ge(ie,G,ae),B!==ie&&f(M,B)):W&16?Ie&16?Re(ie,B,M,U,G,ae,Ae,fe,_e):Ge(ie,G,ae,!0):(W&8&&f(M,""),Ie&16&&R(B,M,U,G,ae,Ae,fe,_e))},Be=(k,A,M,U,G,ae,Ae,fe,_e)=>{k=k||zl,A=A||zl;const ie=k.length,W=A.length,B=Math.min(ie,W);let xe;for(xe=0;xeW?Ge(k,G,ae,!0,!1,B):R(A,M,U,G,ae,Ae,fe,_e,B)},Re=(k,A,M,U,G,ae,Ae,fe,_e)=>{let ie=0;const W=A.length;let B=k.length-1,xe=W-1;for(;ie<=B&&ie<=xe;){const Ie=k[ie],ze=A[ie]=_e?ua(A[ie]):Ni(A[ie]);if(ya(Ie,ze))p(Ie,ze,M,null,G,ae,Ae,fe,_e);else break;ie++}for(;ie<=B&&ie<=xe;){const Ie=k[B],ze=A[xe]=_e?ua(A[xe]):Ni(A[xe]);if(ya(Ie,ze))p(Ie,ze,M,null,G,ae,Ae,fe,_e);else break;B--,xe--}if(ie>B){if(ie<=xe){const Ie=xe+1,ze=Iexe)for(;ie<=B;)we(k[ie],G,ae,!0),ie++;else{const Ie=ie,ze=ie,Ye=new Map;for(ie=ze;ie<=xe;ie++){const oe=A[ie]=_e?ua(A[ie]):Ni(A[ie]);oe.key!=null&&Ye.set(oe.key,ie)}let dt,ht=0;const sr=xe-ze+1;let Un=!1,Ji=0;const jn=new Array(sr);for(ie=0;ie=sr){we(oe,G,ae,!0);continue}let Ee;if(oe.key!=null)Ee=Ye.get(oe.key);else for(dt=ze;dt<=xe;dt++)if(jn[dt-ze]===0&&ya(oe,A[dt])){Ee=dt;break}Ee===void 0?we(oe,G,ae,!0):(jn[Ee-ze]=ie+1,Ee>=Ji?Ji=Ee:Un=!0,p(oe,A[Ee],M,null,G,ae,Ae,fe,_e),ht++)}const Zi=Un?gF(jn):zl;for(dt=Zi.length-1,ie=sr-1;ie>=0;ie--){const oe=ze+ie,Ee=A[oe],Ze=oe+1{const{el:ae,type:Ae,transition:fe,children:_e,shapeFlag:ie}=k;if(ie&6){se(k.component.subTree,A,M,U);return}if(ie&128){k.suspense.move(A,M,U);return}if(ie&64){Ae.move(k,A,M,De);return}if(Ae===$t){n(ae,A,M);for(let B=0;B<_e.length;B++)se(_e[B],A,M,U);n(k.anchor,A,M);return}if(Ae===Sd){w(k,A,M);return}if(U!==2&&ie&1&&fe)if(U===0)fe.beforeEnter(ae),n(ae,A,M),Hr(()=>fe.enter(ae),G);else{const{leave:B,delayLeave:xe,afterLeave:Ie}=fe,ze=()=>n(ae,A,M),Ye=()=>{B(ae,()=>{ze(),Ie&&Ie()})};xe?xe(ae,ze,Ye):Ye()}else n(ae,A,M)},we=(k,A,M,U=!1,G=!1)=>{const{type:ae,props:Ae,ref:fe,children:_e,dynamicChildren:ie,shapeFlag:W,patchFlag:B,dirs:xe}=k;if(fe!=null&&x_(fe,null,M,k,!0),W&256){A.ctx.deactivate(k);return}const Ie=W&1&&xe,ze=!Ul(k);let Ye;if(ze&&(Ye=Ae&&Ae.onVnodeBeforeUnmount)&&ti(Ye,A,k),W&6)je(k.component,M,U);else{if(W&128){k.suspense.unmount(M,U);return}Ie&&us(k,null,A,"beforeUnmount"),W&64?k.type.remove(k,A,M,G,De,U):ie&&(ae!==$t||B>0&&B&64)?Ge(ie,A,M,!1,!0):(ae===$t&&B&384||!G&&W&16)&&Ge(_e,A,M),U&&Pe(k)}(ze&&(Ye=Ae&&Ae.onVnodeUnmounted)||Ie)&&Hr(()=>{Ye&&ti(Ye,A,k),Ie&&us(k,null,A,"unmounted")},M)},Pe=k=>{const{type:A,el:M,anchor:U,transition:G}=k;if(A===$t){Ce(M,U);return}if(A===Sd){E(k);return}const ae=()=>{i(M),G&&!G.persisted&&G.afterLeave&&G.afterLeave()};if(k.shapeFlag&1&&G&&!G.persisted){const{leave:Ae,delayLeave:fe}=G,_e=()=>Ae(M,ae);fe?fe(k.el,ae,_e):_e()}else ae()},Ce=(k,A)=>{let M;for(;k!==A;)M=y(k),i(k),k=M;i(A)},je=(k,A,M)=>{const{bum:U,scope:G,update:ae,subTree:Ae,um:fe}=k;U&&Bl(U),G.stop(),ae&&(ae.active=!1,we(Ae,k,A,M)),fe&&Hr(fe,A),Hr(()=>{k.isUnmounted=!0},A),A&&A.pendingBranch&&!A.isUnmounted&&k.asyncDep&&!k.asyncResolved&&k.suspenseId===A.pendingId&&(A.deps--,A.deps===0&&A.resolve())},Ge=(k,A,M,U=!1,G=!1,ae=0)=>{for(let Ae=ae;Aek.shapeFlag&6?ee(k.component.subTree):k.shapeFlag&128?k.suspense.next():y(k.anchor||k.el);let le=!1;const ue=(k,A,M)=>{k==null?A._vnode&&we(A._vnode,null,null,!0):p(A._vnode||null,k,A,null,null,null,M),le||(le=!0,Rw(),AC(),le=!1),A._vnode=k},De={p,um:we,m:se,r:Pe,mt:be,mc:R,pc:Se,pbc:z,n:ee,o:t};let Ke,it;return{render:ue,hydrate:Ke,createApp:lF(ue,Ke)}}function hg({type:t,props:e},r){return r==="svg"&&t==="foreignObject"||r==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:r}function fs({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function vF(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function h0(t,e,r=!1){const n=t.children,i=e.children;if(Xe(n)&&Xe(i))for(let o=0;o>1,t[r[l]]0&&(e[n]=r[o-1]),r[o]=n)}}for(o=r.length,a=r[o-1];o-- >0;)r[o]=a,a=e[a];return r}function JC(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:JC(e)}const _F=t=>t.__isTeleport,Ad=t=>t&&(t.disabled||t.disabled===""),Hw=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Ww=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,w_=(t,e)=>{const r=t&&t.to;return dr(r)?e?e(r):null:r},yF={name:"Teleport",__isTeleport:!0,process(t,e,r,n,i,o,a,l,d,u){const{mc:f,pc:g,pbc:y,o:{insert:x,querySelector:m,createText:p,createComment:_}}=u,v=Ad(e.props);let{shapeFlag:b,children:w,dynamicChildren:E}=e;if(t==null){const C=e.el=p(""),S=e.anchor=p("");x(C,r,n),x(S,r,n);const P=e.target=w_(e.props,m),R=e.targetAnchor=p("");P&&(x(R,P),a==="svg"||Hw(P)?a="svg":(a==="mathml"||Ww(P))&&(a="mathml"));const D=(z,j)=>{b&16&&f(w,z,j,i,o,a,l,d)};v?D(r,S):P&&D(P,R)}else{e.el=t.el;const C=e.anchor=t.anchor,S=e.target=t.target,P=e.targetAnchor=t.targetAnchor,R=Ad(t.props),D=R?r:S,z=R?C:P;if(a==="svg"||Hw(S)?a="svg":(a==="mathml"||Ww(S))&&(a="mathml"),E?(y(t.dynamicChildren,E,D,i,o,a,l),h0(t,e,!0)):d||g(t,e,D,z,i,o,a,l,!1),v)R?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):ch(e,r,C,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const j=e.target=w_(e.props,m);j&&ch(e,j,null,u,0)}else R&&ch(e,S,P,u,1)}ZC(e)},remove(t,e,r,n,{um:i,o:{remove:o}},a){const{shapeFlag:l,children:d,anchor:u,targetAnchor:f,target:g,props:y}=t;if(g&&o(f),a&&o(u),l&16){const x=a||!Ad(y);for(let m=0;m0?wi||zl:null,xF(),Zd>0&&wi&&wi.push(t),t}function te(t,e,r,n,i,o){return e3(N(t,e,r,n,i,o,!0))}function or(t,e,r,n,i){return e3($e(t,e,r,n,i,!0))}function Jl(t){return t?t.__v_isVNode===!0:!1}function ya(t,e){return t.type===e.type&&t.key===e.key}const t3=({key:t})=>t??null,Mh=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?dr(t)||Xt(t)||lt(t)?{i:Tr,r:t,k:e,f:!!r}:t:null);function N(t,e=null,r=null,n=0,i=null,o=t===$t?0:1,a=!1,l=!1){const d={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&t3(e),ref:e&&Mh(e),scopeId:Up,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Tr};return l?(m0(d,r),o&128&&t.normalize(d)):r&&(d.shapeFlag|=dr(r)?8:16),Zd>0&&!a&&wi&&(d.patchFlag>0||o&6)&&d.patchFlag!==32&&wi.push(d),d}const $e=wF;function wF(t,e=null,r=null,n=0,i=null,o=!1){if((!t||t===$C)&&(t=Mn),Jl(t)){const l=ko(t,e,!0);return r&&m0(l,r),Zd>0&&!o&&wi&&(l.shapeFlag&6?wi[wi.indexOf(t)]=l:wi.push(l)),l.patchFlag|=-2,l}if(OF(t)&&(t=t.__vccOpts),e){e=TF(e);let{class:l,style:d}=e;l&&!dr(l)&&(e.class=Dn(l)),Ht(d)&&(yC(d)&&!Xe(d)&&(d=yr({},d)),e.style=Pa(d))}const a=dr(t)?1:OC(t)?128:_F(t)?64:Ht(t)?4:lt(t)?2:0;return N(t,e,r,n,i,a,o,!0)}function TF(t){return t?yC(t)||WC(t)?yr({},t):t:null}function ko(t,e,r=!1,n=!1){const{props:i,ref:o,patchFlag:a,children:l,transition:d}=t,u=e?r3(i||{},e):i,f={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&t3(u),ref:e&&e.ref?r&&o?Xe(o)?o.concat(Mh(e)):[o,Mh(e)]:Mh(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:l,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==$t?a===-1?16:a|16:a,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:d,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ko(t.ssContent),ssFallback:t.ssFallback&&ko(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return d&&n&&(f.transition=d.clone(f)),f}function ai(t=" ",e=0){return $e(xu,null,t,e)}function EF(t,e){const r=$e(Sd,null,t);return r.staticCount=e,r}function kt(t="",e=!1){return e?(Y(),or(Mn,null,t)):$e(Mn,null,t)}function Ni(t){return t==null||typeof t=="boolean"?$e(Mn):Xe(t)?$e($t,null,t.slice()):typeof t=="object"?ua(t):$e(xu,null,String(t))}function ua(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:ko(t)}function m0(t,e){let r=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(Xe(e))r=16;else if(typeof e=="object")if(n&65){const i=e.default;i&&(i._c&&(i._d=!1),m0(t,i()),i._c&&(i._d=!0));return}else{r=32;const i=e._;!i&&!WC(e)?e._ctx=Tr:i===3&&Tr&&(Tr.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else lt(e)?(e={default:e,_ctx:Tr},r=32):(e=String(e),n&64?(r=16,e=[ai(e)]):r=8);t.children=e,t.shapeFlag|=r}function r3(...t){const e={};for(let r=0;rMr||Tr;let rp,T_;{const t=tC(),e=(r,n)=>{let i;return(i=t[r])||(i=t[r]=[]),i.push(n),o=>{i.length>1?i.forEach(a=>a(o)):i[0](o)}};rp=e("__VUE_INSTANCE_SETTERS__",r=>Mr=r),T_=e("__VUE_SSR_SETTERS__",r=>Qp=r)}const wu=t=>{const e=Mr;return rp(t),t.scope.on(),()=>{t.scope.off(),rp(e)}},Qw=()=>{Mr&&Mr.scope.off(),rp(null)};function n3(t){return t.vnode.shapeFlag&4}let Qp=!1;function SF(t,e=!1){e&&T_(e);const{props:r,children:n}=t.vnode,i=n3(t);cF(t,r,i,e),fF(t,n);const o=i?IF(t,e):void 0;return e&&T_(!1),o}function IF(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,ZM);const{setup:n}=r;if(n){const i=t.setupContext=n.length>1?o3(t):null,o=wu(t);ja();const a=Aa(n,t,0,[t.props,i]);if(Ha(),o(),X4(a)){if(a.then(Qw,Qw),e)return a.then(l=>{Kw(t,l,e)}).catch(l=>{Bp(l,t,0)});t.asyncDep=a}else Kw(t,a,e)}else i3(t,e)}function Kw(t,e,r){lt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Ht(e)&&(t.setupState=TC(e)),i3(t,r)}let Yw;function i3(t,e,r){const n=t.type;if(!t.render){if(!e&&Yw&&!n.render){const i=n.template||u0(t).template;if(i){const{isCustomElement:o,compilerOptions:a}=t.appContext.config,{delimiters:l,compilerOptions:d}=n,u=yr(yr({isCustomElement:o,delimiters:l},a),d);n.render=Yw(i,u)}}t.render=n.render||ni}{const i=wu(t);ja();try{rF(t)}finally{Ha(),i()}}}const $F={get(t,e){return Tn(t,"get",""),t[e]}};function o3(t){const e=r=>{t.exposed=r||{}};return{attrs:new Proxy(t.attrs,$F),slots:t.slots,emit:t.emit,expose:e}}function Kp(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(TC(zp(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in kd)return kd[r](t)},has(e,r){return r in e||r in kd}}))}function E_(t,e=!0){return lt(t)?t.displayName||t.name:t.name||e&&t.__name}function OF(t){return lt(t)&&"__vccOpts"in t}const At=(t,e)=>bM(t,e,Qp);function ji(t,e,r){const n=arguments.length;return n===2?Ht(e)&&!Xe(e)?Jl(e)?$e(t,null,[e]):$e(t,e):$e(t,null,e):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Jl(r)&&(r=[r]),$e(t,e,r))}const PF="3.4.27";const RF="http://www.w3.org/2000/svg",DF="http://www.w3.org/1998/Math/MathML",fa=typeof document<"u"?document:null,Xw=fa&&fa.createElement("template"),LF={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{const i=e==="svg"?fa.createElementNS(RF,t):e==="mathml"?fa.createElementNS(DF,t):fa.createElement(t,r?{is:r}:void 0);return t==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:t=>fa.createTextNode(t),createComment:t=>fa.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>fa.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,n,i,o){const a=r?r.previousSibling:e.lastChild;if(i&&(i===o||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),r),!(i===o||!(i=i.nextSibling)););else{Xw.innerHTML=n==="svg"?`${t}`:n==="mathml"?`${t}`:t;const l=Xw.content;if(n==="svg"||n==="mathml"){const d=l.firstChild;for(;d.firstChild;)l.appendChild(d.firstChild);l.removeChild(d)}e.insertBefore(l,r)}return[a?a.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}},ea="transition",id="animation",Zl=Symbol("_vtc"),Yp=(t,{slots:e})=>ji(jM,s3(t),e);Yp.displayName="Transition";const a3={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},MF=Yp.props=yr({},DC,a3),hs=(t,e=[])=>{Xe(t)?t.forEach(r=>r(...e)):t&&t(...e)},Jw=t=>t?Xe(t)?t.some(e=>e.length>1):t.length>1:!1;function s3(t){const e={};for(const q in t)q in a3||(e[q]=t[q]);if(t.css===!1)return e;const{name:r="v",type:n,duration:i,enterFromClass:o=`${r}-enter-from`,enterActiveClass:a=`${r}-enter-active`,enterToClass:l=`${r}-enter-to`,appearFromClass:d=o,appearActiveClass:u=a,appearToClass:f=l,leaveFromClass:g=`${r}-leave-from`,leaveActiveClass:y=`${r}-leave-active`,leaveToClass:x=`${r}-leave-to`}=t,m=FF(i),p=m&&m[0],_=m&&m[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:w,onLeave:E,onLeaveCancelled:C,onBeforeAppear:S=v,onAppear:P=b,onAppearCancelled:R=w}=e,D=(q,J,be)=>{aa(q,J?f:l),aa(q,J?u:a),be&&be()},z=(q,J)=>{q._isLeaving=!1,aa(q,g),aa(q,x),aa(q,y),J&&J()},j=q=>(J,be)=>{const Oe=q?P:b,ge=()=>D(J,q,be);hs(Oe,[J,ge]),Zw(()=>{aa(J,q?d:o),po(J,q?f:l),Jw(Oe)||eT(J,n,p,ge)})};return yr(e,{onBeforeEnter(q){hs(v,[q]),po(q,o),po(q,a)},onBeforeAppear(q){hs(S,[q]),po(q,d),po(q,u)},onEnter:j(!1),onAppear:j(!0),onLeave(q,J){q._isLeaving=!0;const be=()=>z(q,J);po(q,g),po(q,y),c3(),Zw(()=>{q._isLeaving&&(aa(q,g),po(q,x),Jw(E)||eT(q,n,_,be))}),hs(E,[q,be])},onEnterCancelled(q){D(q,!1),hs(w,[q])},onAppearCancelled(q){D(q,!0),hs(R,[q])},onLeaveCancelled(q){z(q),hs(C,[q])}})}function FF(t){if(t==null)return null;if(Ht(t))return[pg(t.enter),pg(t.leave)];{const e=pg(t);return[e,e]}}function pg(t){return jL(t)}function po(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t[Zl]||(t[Zl]=new Set)).add(e)}function aa(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const r=t[Zl];r&&(r.delete(e),r.size||(t[Zl]=void 0))}function Zw(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let NF=0;function eT(t,e,r,n){const i=t._endId=++NF,o=()=>{i===t._endId&&n()};if(r)return setTimeout(o,r);const{type:a,timeout:l,propCount:d}=l3(t,e);if(!a)return n();const u=a+"end";let f=0;const g=()=>{t.removeEventListener(u,y),o()},y=x=>{x.target===t&&++f>=d&&g()};setTimeout(()=>{f(r[m]||"").split(", "),i=n(`${ea}Delay`),o=n(`${ea}Duration`),a=tT(i,o),l=n(`${id}Delay`),d=n(`${id}Duration`),u=tT(l,d);let f=null,g=0,y=0;e===ea?a>0&&(f=ea,g=a,y=o.length):e===id?u>0&&(f=id,g=u,y=d.length):(g=Math.max(a,u),f=g>0?a>u?ea:id:null,y=f?f===ea?o.length:d.length:0);const x=f===ea&&/\b(transform|all)(,|$)/.test(n(`${ea}Property`).toString());return{type:f,timeout:g,propCount:y,hasTransform:x}}function tT(t,e){for(;t.lengthrT(r)+rT(t[n])))}function rT(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function c3(){return document.body.offsetHeight}function zF(t,e,r){const n=t[Zl];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}const np=Symbol("_vod"),d3=Symbol("_vsh"),bn={beforeMount(t,{value:e},{transition:r}){t[np]=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):od(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:n}){!e!=!r&&(n?e?(n.beforeEnter(t),od(t,!0),n.enter(t)):n.leave(t,()=>{od(t,!1)}):od(t,e))},beforeUnmount(t,{value:e}){od(t,e)}};function od(t,e){t.style.display=e?t[np]:"none",t[d3]=!e}const u3=Symbol("");function qF(t){const e=Ki();if(!e)return;const r=e.ut=(i=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(o=>C_(o,i))},n=()=>{const i=t(e.proxy);k_(e.subTree,i),r(i)};Qr(()=>{BM(n);const i=new MutationObserver(n);i.observe(e.subTree.el.parentNode,{childList:!0}),Wa(()=>i.disconnect())})}function k_(t,e){if(t.shapeFlag&128){const r=t.suspense;t=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{k_(r.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)C_(t.el,e);else if(t.type===$t)t.children.forEach(r=>k_(r,e));else if(t.type===Sd){let{el:r,anchor:n}=t;for(;r&&(C_(r,e),r!==n);)r=r.nextSibling}}function C_(t,e){if(t.nodeType===1){const r=t.style;let n="";for(const i in e)r.setProperty(`--${i}`,e[i]),n+=`--${i}: ${e[i]};`;r[u3]=n}}const BF=/(^|;)\s*display\s*:/;function VF(t,e,r){const n=t.style,i=dr(r);let o=!1;if(r&&!i){if(e)if(dr(e))for(const a of e.split(";")){const l=a.slice(0,a.indexOf(":")).trim();r[l]==null&&Fh(n,l,"")}else for(const a in e)r[a]==null&&Fh(n,a,"");for(const a in r)a==="display"&&(o=!0),Fh(n,a,r[a])}else if(i){if(e!==r){const a=n[u3];a&&(r+=";"+a),n.cssText=r,o=BF.test(r)}}else e&&t.removeAttribute("style");np in t&&(t[np]=o?n.display:"",t[d3]&&(n.display="none"))}const nT=/\s*!important$/;function Fh(t,e,r){if(Xe(r))r.forEach(n=>Fh(t,e,n));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const n=UF(t,e);nT.test(r)?t.setProperty(js(n),r.replace(nT,""),"important"):t[n]=r}}const iT=["Webkit","Moz","ms"],mg={};function UF(t,e){const r=mg[e];if(r)return r;let n=Ui(e);if(n!=="filter"&&n in t)return mg[e]=n;n=Fp(n);for(let i=0;ivg||(KF.then(()=>vg=0),vg=Date.now());function XF(t,e){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;oi(JF(n,r.value),e,5,[n])};return r.value=t,r.attached=YF(),r}function JF(t,e){if(Xe(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(n=>i=>!i._stopped&&n&&n(i))}else return e}const lT=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,ZF=(t,e,r,n,i,o,a,l,d)=>{const u=i==="svg";e==="class"?zF(t,n,u):e==="style"?VF(t,r,n):Lp(e)?Gb(e)||GF(t,e,r,n,a):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):eN(t,e,n,u))?HF(t,e,n,o,a,l,d):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),jF(t,e,n,u))};function eN(t,e,r,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in t&&lT(e)&<(r));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return lT(e)&&dr(r)?!1:e in t}const f3=new WeakMap,h3=new WeakMap,ip=Symbol("_moveCb"),cT=Symbol("_enterCb"),p3={name:"TransitionGroup",props:yr({},MF,{tag:String,moveClass:String}),setup(t,{slots:e}){const r=Ki(),n=RC();let i,o;return Gp(()=>{if(!i.length)return;const a=t.moveClass||`${t.name||"v"}-move`;if(!aN(i[0].el,r.vnode.el,a))return;i.forEach(nN),i.forEach(iN);const l=i.filter(oN);c3(),l.forEach(d=>{const u=d.el,f=u.style;po(u,a),f.transform=f.webkitTransform=f.transitionDuration="";const g=u[ip]=y=>{y&&y.target!==u||(!y||/transform$/.test(y.propertyName))&&(u.removeEventListener("transitionend",g),u[ip]=null,aa(u,a))};u.addEventListener("transitionend",g)})}),()=>{const a=St(t),l=s3(a);let d=a.tag||$t;if(i=[],o)for(let u=0;udelete t.mode;p3.props;const rN=p3;function nN(t){const e=t.el;e[ip]&&e[ip](),e[cT]&&e[cT]()}function iN(t){h3.set(t,t.el.getBoundingClientRect())}function oN(t){const e=f3.get(t),r=h3.get(t),n=e.left-r.left,i=e.top-r.top;if(n||i){const o=t.el.style;return o.transform=o.webkitTransform=`translate(${n}px,${i}px)`,o.transitionDuration="0s",t}}function aN(t,e,r){const n=t.cloneNode(),i=t[Zl];i&&i.forEach(l=>{l.split(/\s+/).forEach(d=>d&&n.classList.remove(d))}),r.split(/\s+/).forEach(l=>l&&n.classList.add(l)),n.style.display="none";const o=e.nodeType===1?e:e.parentNode;o.appendChild(n);const{hasTransform:a}=l3(n);return o.removeChild(n),a}const Ra=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Xe(e)?r=>Bl(e,r):e};function sN(t){t.target.composing=!0}function dT(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const si=Symbol("_assign"),A_={created(t,{modifiers:{lazy:e,trim:r,number:n}},i){t[si]=Ra(i);const o=n||i.props&&i.props.type==="number";go(t,e?"change":"input",a=>{if(a.target.composing)return;let l=t.value;r&&(l=l.trim()),o&&(l=Xh(l)),t[si](l)}),r&&go(t,"change",()=>{t.value=t.value.trim()}),e||(go(t,"compositionstart",sN),go(t,"compositionend",dT),go(t,"change",dT))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:r,trim:n,number:i}},o){if(t[si]=Ra(o),t.composing)return;const a=(i||t.type==="number")&&!/^0\d/.test(t.value)?Xh(t.value):t.value,l=e??"";a!==l&&(document.activeElement===t&&t.type!=="range"&&(r||n&&t.value.trim()===l)||(t.value=l))}},lN={deep:!0,created(t,e,r){t[si]=Ra(r),go(t,"change",()=>{const n=t._modelValue,i=ec(t),o=t.checked,a=t[si];if(Xe(n)){const l=Yb(n,i),d=l!==-1;if(o&&!d)a(n.concat(i));else if(!o&&d){const u=[...n];u.splice(l,1),a(u)}}else if(gc(n)){const l=new Set(n);o?l.add(i):l.delete(i),a(l)}else a(m3(t,o))})},mounted:uT,beforeUpdate(t,e,r){t[si]=Ra(r),uT(t,e,r)}};function uT(t,{value:e,oldValue:r},n){t._modelValue=e,Xe(e)?t.checked=Yb(e,n.props.value)>-1:gc(e)?t.checked=e.has(n.props.value):e!==r&&(t.checked=Rs(e,m3(t,!0)))}const cN={created(t,{value:e},r){t.checked=Rs(e,r.props.value),t[si]=Ra(r),go(t,"change",()=>{t[si](ec(t))})},beforeUpdate(t,{value:e,oldValue:r},n){t[si]=Ra(n),e!==r&&(t.checked=Rs(e,n.props.value))}},dN={deep:!0,created(t,{value:e,modifiers:{number:r}},n){const i=gc(e);go(t,"change",()=>{const o=Array.prototype.filter.call(t.options,a=>a.selected).map(a=>r?Xh(ec(a)):ec(a));t[si](t.multiple?i?new Set(o):o:o[0]),t._assigning=!0,yo(()=>{t._assigning=!1})}),t[si]=Ra(n)},mounted(t,{value:e,modifiers:{number:r}}){fT(t,e)},beforeUpdate(t,e,r){t[si]=Ra(r)},updated(t,{value:e,modifiers:{number:r}}){t._assigning||fT(t,e)}};function fT(t,e,r){const n=t.multiple,i=Xe(e);if(!(n&&!i&&!gc(e))){for(let o=0,a=t.options.length;oString(f)===String(d)):l.selected=Yb(e,d)>-1}else l.selected=e.has(d);else if(Rs(ec(l),e)){t.selectedIndex!==o&&(t.selectedIndex=o);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function ec(t){return"_value"in t?t._value:t.value}function m3(t,e){const r=e?"_trueValue":"_falseValue";return r in t?t[r]:e}const m1e={created(t,e,r){dh(t,e,r,null,"created")},mounted(t,e,r){dh(t,e,r,null,"mounted")},beforeUpdate(t,e,r,n){dh(t,e,r,n,"beforeUpdate")},updated(t,e,r,n){dh(t,e,r,n,"updated")}};function uN(t,e){switch(t){case"SELECT":return dN;case"TEXTAREA":return A_;default:switch(e){case"checkbox":return lN;case"radio":return cN;default:return A_}}}function dh(t,e,r,n,i){const a=uN(t.tagName,r.props&&r.props.type)[i];a&&a(t,e,r,n)}const fN=["ctrl","shift","alt","meta"],hN={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>fN.some(r=>t[`${r}Key`]&&!e.includes(r))},yt=(t,e)=>{const r=t._withMods||(t._withMods={}),n=e.join(".");return r[n]||(r[n]=(i,...o)=>{for(let a=0;a{const r=t._withKeys||(t._withKeys={}),n=e.join(".");return r[n]||(r[n]=i=>{if(!("key"in i))return;const o=js(i.key);if(e.some(a=>a===o||pN[a]===o))return t(i)})},mN=yr({patchProp:ZF},LF);let hT;function v3(){return hT||(hT=pF(mN))}const S_=(...t)=>{v3().render(...t)},vN=(...t)=>{const e=v3().createApp(...t),{mount:r}=e;return e.mount=n=>{const i=_N(n);if(!i)return;const o=e._component;!lt(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const a=r(i,!1,gN(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},e};function gN(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function _N(t){return dr(t)?document.querySelector(t):t}var yN=!1;function g3(t,e,r){var n=r||{},i=n.noTrailing,o=i===void 0?!1:i,a=n.noLeading,l=a===void 0?!1:a,d=n.debounceMode,u=d===void 0?void 0:d,f,g=!1,y=0;function x(){f&&clearTimeout(f)}function m(_){var v=_||{},b=v.upcomingOnly,w=b===void 0?!1:b;x(),g=!w}function p(){for(var _=arguments.length,v=new Array(_),b=0;b<_;b++)v[b]=arguments[b];var w=this,E=Date.now()-y;if(g)return;function C(){y=Date.now(),e.apply(w,v)}function S(){f=void 0}!l&&u&&!f&&C(),x(),u===void 0&&E>t?l?(y=Date.now(),o||(f=setTimeout(u?S:C,t))):C():o!==!0&&(f=setTimeout(u?S:C,u===void 0?t-E:t))}return p.cancel=m,p}function bN(t,e,r){var n={},i=n.atBegin,o=i===void 0?!1:i;return g3(t,e,{debounceMode:o!==!1})}var I_=function(t,e){return I_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},I_(t,e)};function Yi(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");I_(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Z=function(){return Z=Object.assign||function(e){for(var r,n=1,i=arguments.length;n=0;l--)(a=t[l])&&(o=(i<3?a(o):i>3?a(e,r,o):a(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o}function ha(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function l(f){try{u(n.next(f))}catch(g){a(g)}}function d(f){try{u(n.throw(f))}catch(g){a(g)}}function u(f){f.done?o(f.value):i(f.value).then(l,d)}u((n=n.apply(t,e||[])).next())})}function pa(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(u){return function(f){return d([u,f])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(r=0)),r;)try{if(n=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]=wN){var e=console[t]||console.log;return e.apply(console,arguments)}}}(function(t){t.debug=uh("debug"),t.log=uh("log"),t.warn=uh("warn"),t.error=uh("error")})(bs||(bs={}));var v0="3.10.4";function bi(t){try{return t()}catch{}}const $_=bi(function(){return globalThis})||bi(function(){return window})||bi(function(){return self})||bi(function(){return global})||bi(function(){return bi.constructor("return this")()});var mT=new Map;function O_(t){var e=mT.get(t)||1;return mT.set(t,e+1),"".concat(t,":").concat(e,":").concat(Math.random().toString(36).slice(2))}function b3(t,e){e===void 0&&(e=0);var r=O_("stringifyForDisplay");return JSON.stringify(t,function(n,i){return i===void 0?r:i},e).split(JSON.stringify(r)).join("")}function fh(t){return function(e){for(var r=[],n=1;n=e)break;r=i.index+i[0].length,n+=1}return{line:n,column:e+1-r}}function CN(t){return w3(t.source,P_(t.source,t.start))}function w3(t,e){const r=t.locationOffset.column-1,n="".padStart(r)+t.body,i=e.line-1,o=t.locationOffset.line-1,a=e.line+o,l=e.line===1?r:0,d=e.column+l,u=`${t.name}:${a}:${d} `,f=n.split(/\r\n|[\n\r]/g),g=f[i];if(g.length>120){const y=Math.floor(d/80),x=d%80,m=[];for(let p=0;p["|",p]),["|","^".padStart(x)],["|",m[y+1]]])}return u+gT([[`${a-1} |`,f[i-1]],[`${a} |`,g],["|","^".padStart(d)],[`${a+1} |`,f[i+1]]])}function gT(t){const e=t.filter(([n,i])=>i!==void 0),r=Math.max(...e.map(([n])=>n.length));return e.map(([n,i])=>n.padStart(r)+(i?" "+i:"")).join(` `)}function AN(t){const e=t[0];return e==null||"kind"in e||"length"in e?{nodes:e,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:e}class y0 extends Error{constructor(e,...r){var n,i,o;const{nodes:a,source:l,positions:d,path:u,originalError:f,extensions:g}=AN(r);super(e),this.name="GraphQLError",this.path=u??void 0,this.originalError=f??void 0,this.nodes=_T(Array.isArray(a)?a:a?[a]:void 0);const y=_T((n=this.nodes)===null||n===void 0?void 0:n.map(m=>m.loc).filter(m=>m!=null));this.source=l??(y==null||(i=y[0])===null||i===void 0?void 0:i.source),this.positions=d??(y==null?void 0:y.map(m=>m.start)),this.locations=d&&l?d.map(m=>P_(l,m)):y==null?void 0:y.map(m=>P_(m.source,m.start));const x=TN(f==null?void 0:f.extensions)?f==null?void 0:f.extensions:void 0;this.extensions=(o=g??x)!==null&&o!==void 0?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),f!=null&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,y0):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const r of this.nodes)r.loc&&(e+=` @@ -1167,7 +1167,7 @@ function print() { __p += __j.call(arguments, '') } ${this.label} `}renderTouchTarget(){return me``}}en(Fo);O([H({type:Boolean})],Fo.prototype,"disabled",void 0);O([H({type:Boolean})],Fo.prototype,"selected",void 0);O([H()],Fo.prototype,"label",void 0);O([H({type:Boolean,attribute:"no-checkmark"})],Fo.prototype,"noCheckmark",void 0);O([H({type:Boolean,attribute:"has-icon"})],Fo.prototype,"hasIcon",void 0);O([Lt()],Fo.prototype,"animState",void 0);O([Or({slot:"icon",flatten:!0})],Fo.prototype,"iconElement",void 0);class Fae extends Fo{getRenderClasses(){return{...super.getRenderClasses(),"md3-segmented-button--outlined":!0}}renderOutline(){return me``}}const Nae=He`:host{--_container-height: var(--md-outlined-segmented-button-container-height, 40px);--_disabled-icon-color: var(--md-outlined-segmented-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-color: var(--md-outlined-segmented-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-color: var(--md-outlined-segmented-button-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-outlined-segmented-button-hover-state-layer-opacity, 0.08);--_label-text-font: var(--md-outlined-segmented-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-segmented-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-outlined-segmented-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-outlined-segmented-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_outline-color: var(--md-outlined-segmented-button-outline-color, var(--md-sys-color-outline, #79747e));--_pressed-state-layer-opacity: var(--md-outlined-segmented-button-pressed-state-layer-opacity, 0.12);--_selected-container-color: var(--md-outlined-segmented-button-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_selected-focus-icon-color: var(--md-outlined-segmented-button-selected-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-focus-label-text-color: var(--md-outlined-segmented-button-selected-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-icon-color: var(--md-outlined-segmented-button-selected-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-label-text-color: var(--md-outlined-segmented-button-selected-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-color: var(--md-outlined-segmented-button-selected-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-label-text-color: var(--md-outlined-segmented-button-selected-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-icon-color: var(--md-outlined-segmented-button-selected-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-label-text-color: var(--md-outlined-segmented-button-selected-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-state-layer-color: var(--md-outlined-segmented-button-selected-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_shape: var(--md-outlined-segmented-button-shape, var(--md-sys-shape-corner-full, 9999px));--_unselected-focus-icon-color: var(--md-outlined-segmented-button-unselected-focus-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-focus-label-text-color: var(--md-outlined-segmented-button-unselected-focus-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-hover-icon-color: var(--md-outlined-segmented-button-unselected-hover-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-hover-label-text-color: var(--md-outlined-segmented-button-unselected-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-hover-state-layer-color: var(--md-outlined-segmented-button-unselected-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-label-text-color: var(--md-outlined-segmented-button-unselected-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-pressed-icon-color: var(--md-outlined-segmented-button-unselected-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-pressed-label-text-color: var(--md-outlined-segmented-button-unselected-pressed-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-pressed-state-layer-color: var(--md-outlined-segmented-button-unselected-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_icon-size: var(--md-outlined-segmented-button-icon-size, 18px);--_selected-icon-color: var(--md-outlined-segmented-button-selected-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_unselected-icon-color: var(--md-outlined-segmented-button-unselected-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_shape-start-start: var(--md-outlined-segmented-button-shape-start-start, var(--md-sys-shape-corner-full, 9999px));--_shape-start-end: var(--md-outlined-segmented-button-shape-start-end, var(--md-sys-shape-corner-full, 9999px));--_shape-end-end: var(--md-outlined-segmented-button-shape-end-end, var(--md-sys-shape-corner-full, 9999px));--_shape-end-start: var(--md-outlined-segmented-button-shape-end-start, var(--md-sys-shape-corner-full, 9999px));--_spacing-leading: var(--md-outlined-segmented-button-spacing-leading, 12px);--_spacing-trailing: var(--md-outlined-segmented-button-spacing-trailing, 12px)}.md3-segmented-button__outline{border-radius:inherit;border-style:solid;border-width:1px;inset:0px -0.5px;pointer-events:none;position:absolute} `;const zae=He`@keyframes md3-segmented-button-checkmark-selection-draw-in{from{stroke-dashoffset:29.7833385}to{stroke-dashoffset:0}}@keyframes md3-segmented-button-simple-fade-out{from{opacity:1}to{opacity:0}}@keyframes md3-segmented-button-simple-fade-in{from{opacity:0}to{opacity:1}}:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.md3-segmented-button{align-items:center;background:rgba(0,0,0,0);border:none;border-radius:inherit;display:flex;flex:1;justify-content:center;outline:none;position:relative;vertical-align:middle;padding-inline-start:var(--_spacing-leading);padding-inline-end:var(--_spacing-trailing);text-transform:inherit}.md3-segmented-button .md3-segmented-button__outline{border-color:var(--_outline-color)}.md3-segmented-button:disabled .md3-segmented-button__outline{border-color:var(--_disabled-outline-color)}.md3-segmented-button .md3-segmented-button__graphic,.md3-segmented-button .md3-segmented-button__checkmark,.md3-segmented-button .md3-segmented-button__icon,.md3-segmented-button .md3-segmented-button__icon ::slotted([slot=icon]){height:var(--_icon-size);width:var(--_icon-size);font-size:var(--_icon-size)}.md3-segmented-button.md3-segmented-button--with-icon.md3-segmented-button--with-label .md3-segmented-button__graphic,.md3-segmented-button.md3-segmented-button--selected.md3-segmented-button--with-label.md3-segmented-button--with-checkmark .md3-segmented-button__graphic,.md3-segmented-button.md3-segmented-button--selected.md3-segmented-button--without-label.md3-segmented-button--with-checkmark .md3-segmented-button__graphic{width:calc(var(--_icon-size) + 8px)}.md3-segmented-button .md3-segmented-button__label-text{font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight)}.md3-segmented-button.md3-segmented-button--selected:enabled .md3-segmented-button__label-text{color:var(--_selected-label-text-color)}.md3-segmented-button.md3-segmented-button--selected:enabled:hover .md3-segmented-button__label-text{color:var(--_selected-hover-label-text-color)}.md3-segmented-button.md3-segmented-button--selected:enabled:focus .md3-segmented-button__label-text{color:var(--_selected-focus-label-text-color)}.md3-segmented-button.md3-segmented-button--selected:enabled:active .md3-segmented-button__label-text{color:var(--_selected-pressed-label-text-color)}.md3-segmented-button.md3-segmented-button--unselected:enabled .md3-segmented-button__label-text{color:var(--_unselected-label-text-color)}.md3-segmented-button.md3-segmented-button--unselected:enabled:hover .md3-segmented-button__label-text{color:var(--_unselected-hover-label-text-color)}.md3-segmented-button.md3-segmented-button--unselected:enabled:focus .md3-segmented-button__label-text{color:var(--_unselected-focus-label-text-color)}.md3-segmented-button.md3-segmented-button--unselected:enabled:active .md3-segmented-button__label-text{color:var(--_unselected-pressed-label-text-color)}.md3-segmented-button:disabled .md3-segmented-button__label-text{color:var(--_disabled-label-text-color)}.md3-segmented-button--unselected{--md-ripple-hover-color: var(--_unselected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_unselected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.md3-segmented-button--unselected .md3-segmented-button__icon{color:var(--_unselected-icon-color)}.md3-segmented-button--unselected:hover .md3-segmented-button__icon{color:var(--_unselected-hover-icon-color)}.md3-segmented-button--unselected:focus .md3-segmented-button__icon{color:var(--_unselected-focus-icon-color)}.md3-segmented-button--unselected:active .md3-segmented-button__icon{color:var(--_unselected-pressed-icon-color)}.md3-segmented-button--unselected:disabled .md3-segmented-button__icon{color:var(--_disabled-icon-color)}.md3-segmented-button--selected{background-color:var(--_selected-container-color);--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.md3-segmented-button--selected .md3-segmented-button__icon{color:var(--_selected-icon-color)}.md3-segmented-button--selected .md3-segmented-button__checkmark-path{stroke:var(--_selected-icon-color)}.md3-segmented-button--selected:hover .md3-segmented-button__checkmark-path{stroke:var(--_selected-hover-icon-color)}.md3-segmented-button--selected:focus .md3-segmented-button__checkmark-path{stroke:var(--_selected-focus-icon-color)}.md3-segmented-button--selected:active .md3-segmented-button__checkmark-path{stroke:var(--_selected-pressed-icon-color)}.md3-segmented-button--selected:disabled .md3-segmented-button__checkmark-path{stroke:var(--_disabled-icon-color)}.md3-segmented-button:enabled{cursor:pointer}.md3-segmented-button__focus-ring{z-index:1}.md3-segmented-button__ripple{border-radius:inherit;z-index:0}.md3-segmented-button__touch{position:absolute;top:50%;height:48px;left:50%;width:100%;transform:translate(-50%, -50%)}.md3-segmented-button__leading,.md3-segmented-button__graphic{display:inline-flex;justify-content:flex-start;align-items:center}.md3-segmented-button__graphic{position:relative;overflow:hidden}.md3-segmented-button__graphic{transition:width 150ms cubic-bezier(0.4, 0, 0.2, 1)}.md3-segmented-button--unselected.md3-segmented-button--with-label .md3-segmented-button__graphic,.md3-segmented-button--unselected.md3-segmented-button--without-label .md3-segmented-button__graphic,.md3-segmented-button--selected.md3-segmented-button--without-checkmark .md3-segmented-button__graphic{width:0}.md3-segmented-button--unselected .md3-segmented-button__checkmark{opacity:0}.md3-segmented-button--selected.md3-segmented-button--with-label .md3-segmented-button__icon{opacity:0}.md3-segmented-button--with-label .md3-segmented-button__checkmark{display:inline-flex;position:absolute}.md3-segmented-button__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385}.md3-segmented-button--selecting .md3-segmented-button__checkmark-path{stroke-dashoffset:29.7833385;animation:md3-segmented-button-checkmark-selection-draw-in;animation-duration:150ms;animation-delay:50ms;animation-fill-mode:forwards;animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.md3-segmented-button--selecting.md3-segmented-button--with-label .md3-segmented-button__icon{animation:md3-segmented-button-simple-fade-out;animation-duration:75ms;animation-timing-function:linear;animation-fill-mode:forwards}.md3-segmented-button--deselecting .md3-segmented-button__checkmark{animation:md3-segmented-button-simple-fade-out;animation-duration:50ms;animation-timing-function:linear;animation-fill-mode:forwards}.md3-segmented-button--deselecting.md3-segmented-button--with-label .md3-segmented-button__icon{opacity:0;animation:md3-segmented-button-simple-fade-in;animation-delay:50ms;animation-duration:150ms;animation-timing-function:linear;animation-fill-mode:forwards} -`;let zy=class extends Fae{};zy.styles=[zae,Nae];zy=O([st("md-outlined-segmented-button")],zy);const qae=t=>(Io("data-v-0e60f0ae"),t=t(),$o(),t),Bae={class:"theme-changer"},Vae={id:"hex"},Uae={class:"label"},jae={class:"input-wrapper"},Hae={class:"overflow"},Wae=["value"],Gae=qae(()=>N("md-focus-ring",{for:"color-input"},null,-1)),Qae=["selected"],Kae=["selected"],Yae=["selected"],Xae=Dt({__name:"ThemeChanger",setup(t){const e=Le(X0()),r=Le(zd());function n(o){r.value=o,CS(o)}function i(o){e.value=o.target.value,kS(e.value)}return(o,a)=>{const l=bae,d=mae,u=dae;return Y(),te("div",Bae,[N("div",null,[N("label",Vae,[N("span",Uae,Me(o.$t("color")),1),N("span",jae,[N("div",Hae,[N("input",{id:"color-input",onInput:i,type:"color",value:e.value},null,40,Wae)]),Gae])])]),N("md-outlined-segmented-button-set",null,[N("md-outlined-segmented-button",{"data-value":"dark",selected:r.value==="dark",onClick:a[0]||(a[0]=f=>n("dark"))},[$e(l,{slot:"icon"})],8,Qae),N("md-outlined-segmented-button",{"data-value":"auto",selected:r.value==="auto",onClick:a[1]||(a[1]=f=>n("auto"))},[$e(d,{slot:"icon"})],8,Kae),N("md-outlined-segmented-button",{"data-value":"light",selected:r.value==="light",onClick:a[2]||(a[2]=f=>n("light"))},[$e(u,{slot:"icon"})],8,Yae)])])}}}),Jae=kn(Xae,[["__scopeId","data-v-0e60f0ae"]]),Zae={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ese=N("path",{fill:"currentColor",d:"M12 22q-2.05 0-3.875-.788t-3.187-2.15t-2.15-3.187T2 12q0-2.075.813-3.9t2.2-3.175T8.25 2.788T12.2 2q2 0 3.775.688t3.113 1.9t2.125 2.875T22 11.05q0 2.875-1.75 4.413T16 17h-1.85q-.225 0-.312.125t-.088.275q0 .3.375.863t.375 1.287q0 1.25-.687 1.85T12 22m-5.5-9q.65 0 1.075-.425T8 11.5t-.425-1.075T6.5 10t-1.075.425T5 11.5t.425 1.075T6.5 13m3-4q.65 0 1.075-.425T11 7.5t-.425-1.075T9.5 6t-1.075.425T8 7.5t.425 1.075T9.5 9m5 0q.65 0 1.075-.425T16 7.5t-.425-1.075T14.5 6t-1.075.425T13 7.5t.425 1.075T14.5 9m3 4q.65 0 1.075-.425T19 11.5t-.425-1.075T17.5 10t-1.075.425T16 11.5t.425 1.075T17.5 13M12 20q.225 0 .363-.125t.137-.325q0-.35-.375-.825T11.75 17.3q0-1.05.725-1.675T14.25 15H16q1.65 0 2.825-.962T20 11.05q0-3.025-2.312-5.038T12.2 4Q8.8 4 6.4 6.325T4 12q0 3.325 2.338 5.663T12 20"},null,-1),tse=[ese];function rse(t,e){return Y(),te("svg",Zae,[...tse])}const nse={name:"material-symbols-palette-outline",render:rse},ise={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ose=N("path",{fill:"currentColor",d:"m15.075 18.95l-.85 2.425q-.1.275-.35.45t-.55.175q-.5 0-.812-.413t-.113-.912l3.8-10.05q.125-.275.375-.45t.55-.175h.75q.3 0 .55.175t.375.45L22.6 20.7q.2.475-.1.888t-.8.412q-.325 0-.562-.175t-.363-.475l-.85-2.4zM9.05 13.975L4.7 18.3q-.275.275-.687.288T3.3 18.3q-.275-.275-.275-.7t.275-.7l4.35-4.35q-.875-.875-1.588-2T4.75 8h2.1q.5.975 1 1.7t1.2 1.45q.825-.825 1.713-2.313T12.1 6H2q-.425 0-.712-.288T1 5t.288-.712T2 4h6V3q0-.425.288-.712T9 2t.713.288T10 3v1h6q.425 0 .713.288T17 5t-.288.713T16 6h-1.9q-.525 1.8-1.575 3.7t-2.075 2.9l2.4 2.45l-.75 2.05zM15.7 17.2h3.6l-1.8-5.1z"},null,-1),ase=[ose];function sse(t,e){return Y(),te("svg",ise,[...ase])}const lse={name:"material-symbols-translate-rounded",render:sse},N1=t=>(Io("data-v-fbb2ebf7"),t=t(),$o(),t),cse={class:"h-action",style:{position:"relative"}},dse=N1(()=>N("md-ripple",null,null,-1)),use=["open"],fse=["onClick"],hse={slot:"headline"},pse={class:"h-action",style:{position:"relative"}},mse=N1(()=>N("md-ripple",null,null,-1)),vse=["open"],gse=N1(()=>N("md-ripple",null,null,-1)),_se=Dt({__name:"HeaderActions",props:{loggedIn:{type:Boolean}},setup(t){const e=t,r=Le(!1),n=Le(!1),{locale:i,t:o}=Bn(),a=[{name:"English",value:"en-US"},{name:"简体中文",value:"zh-CN"},{name:"繁体中文",value:"zh-TW"},{name:"español",value:"es"},{name:"日本語",value:"ja"},{name:"Nederlands",value:"nl"},{name:"italiano",value:"it"},{name:"हिन्दी",value:"hi"},{name:"français",value:"fr"},{name:"русский язык",value:"ru"},{name:"বাংলা",value:"bn"},{name:"Deutsch",value:"de"},{name:"Português",value:"pt"},{name:"தமிழ்",value:"ta"},{name:"한국어",value:"ko"},{name:"Türkçe",value:"tr"},{name:"Tiếng Việt",value:"vi"}];function l(u){r.value=!1,i.value=u,localStorage.setItem("locale",u),document.title=o("app_name")}function d(){localStorage.clear(),window.location.reload()}return(u,f)=>{const g=lse,y=nse,x=Jae,m=oae,p=Oo("tooltip");return Y(),te($t,null,[N("div",cse,[ot((Y(),te("button",{class:"btn-icon",id:"lang-ref",onClick:f[0]||(f[0]=()=>r.value=!0)},[dse,$e(g)])),[[p,ne(o)("header_actions.language")]]),N("md-menu",{anchor:"lang-ref","stay-open-on-focusout":"",quick:"",open:r.value,onClosed:f[1]||(f[1]=()=>r.value=!1)},[(Y(),te($t,null,ci(a,_=>N("md-menu-item",{key:_.value,onClick:v=>l(_.value)},[N("div",hse,Me(_.name),1)],8,fse)),64))],40,use)]),N("div",pse,[ot((Y(),te("button",{class:"btn-icon",id:"theme-ref",onClick:f[2]||(f[2]=()=>n.value=!0)},[mse,$e(y)])),[[p,ne(o)("header_actions.theme")]]),N("md-menu",{anchor:"theme-ref","stay-open-on-focusout":"",quick:"",open:n.value,onClosed:f[3]||(f[3]=()=>n.value=!1)},[$e(x)],40,vse)]),e.loggedIn?ot((Y(),te("button",{key:0,class:"btn-icon h-action",style:{"margin-inline-end":"8px"},onClick:d},[gse,$e(m)])),[[p,u.$t("header_actions.logout")]]):kt("",!0)],64)}}}),yse=kn(_se,[["__scopeId","data-v-fbb2ebf7"]]),YI=t=>(Io("data-v-034bd5b7"),t=t(),$o(),t),bse=YI(()=>N("span",{class:"right-arrow"},null,-1)),xse=[bse],wse=YI(()=>N("span",{class:"right-arrow"},null,-1)),Tse=[wse],Ese=["disabled","onMouseenter","onFocus","onClick"],kse={slot:"headline"},Cse=Dt({__name:"ContextSubMenu",props:{items:{type:Object,default:null},parentItem:{type:Object,default:null},options:{type:Object,default:null},zIndex:{type:Number,default:0},globalData:{type:Object,default:null},position:{type:Object,default:null}},emits:["close","keepOpen","preUpdatePos"],setup(t,{emit:e}){const r=t,n=e,{globalData:i,position:o,options:a,parentItem:l}=qp(r),d=Le(),u=Le(),f=Le(!1),g=Le(!1);let y=null;const x=Le(0),m=Le(null),p=Le({parentPosition:{x:0,y:0},screenSize:i.value.screenSize}),_=Le({x:0,y:0});function v(q,J){if(J.disabled||!J.children||J.children.length==0||m.value===J)return;m.value=J,p.value.parentPosition.x=i.value.parentPosition.x+o.value.x,p.value.parentPosition.y=i.value.parentPosition.y+o.value.y,d.value&&(_.value.x=d.value.offsetWidth+(a.value.xOffset||0));const be=q.target;be&&(_.value.y=be.offsetTop+(a.value.yOffset||0))}function b(){y=m.value,setTimeout(()=>{y===m.value&&(m.value=null)})}Rt(m,(q,J)=>{q&&J&&setTimeout(()=>{u.value&&u.value.doCheckPos()},50)});function w(q){b(),q&&n("close",!0)}function E(q){y===q&&(y=null),n("keepOpen",l.value)}function C(q){_.value.x=q.x,_.value.y=q.y}function S(q){q.disabled||(typeof q.onClick=="function"?(q.onClick(),n("close",!0)):(!q.children||q.children.length===0)&&n("close",!0))}function P(){n("keepOpen",l.value)}function R(q){q.relatedTarget!=null&&n("close",!1)}function D(q){d.value&&(d.value.scrollTop+=q?30:-30)}let z=0;function j(){const q=d.value,J=i.value;if(q){const be={x:o.value.x,y:o.value.y},Oe=J.parentPosition.x+o.value.x+q.offsetWidth;if(Oe>J.screenSize.w&&(be.x-=Oe-J.screenSize.w),q.offsetHeight>J.screenSize.h-30)x.value=J.screenSize.h-30,be.y=-J.parentPosition.y,g.value=!0;else{g.value=!1,x.value=0;const ge=J.parentPosition.y+o.value.y+q.offsetHeight;ge>J.screenSize.h&&(be.y-=ge-J.screenSize.h+30)}n("preUpdatePos",be),f.value=!0}}return Qr(()=>{z=window.setTimeout(()=>j(),100)}),$i(()=>{z>0&&(clearTimeout(z),z=0)}),(q,J)=>{const be=l0("ContextSubMenu",!0);return t.items?(Y(),te("div",{key:0,class:Dn("context-menu "+(ne(a).customClass?ne(a).customClass:"")+(f.value?" ready":"")),style:Pa({maxWidth:ne(l)&&ne(l).maxWidth?`${ne(l).maxWidth}px`:"600px",minWidth:ne(l)&&ne(l).minWidth?`${ne(l).minWidth}px`:"100px",zIndex:t.zIndex,left:`${ne(o).x}px`,top:`${ne(o).y}px`}),onMouseenter:P,onMouseleave:J[4]||(J[4]=Oe=>R(Oe))},[ot(N("div",{class:"context-menu-updown up",onClick:J[0]||(J[0]=Oe=>D(!1))},xse,512),[[bn,g.value]]),ot(N("div",{class:"context-menu-updown down",onClick:J[1]||(J[1]=Oe=>D(!0))},Tse,512),[[bn,g.value]]),N("div",{class:"context-menu-items",ref_key:"menu",ref:d,style:Pa({maxHeight:x.value>0?`${x.value}px`:""})},[(Y(!0),te($t,null,ci(t.items,(Oe,ge)=>(Y(),te("md-menu-item",{key:ge,disabled:Oe.disabled,onMouseenter:ke=>v(ke,Oe),onMouseleave:J[2]||(J[2]=ke=>b()),onFocus:ke=>v(ke,Oe),onBlur:J[3]||(J[3]=ke=>b()),onClick:ke=>S(Oe)},[N("div",kse,Me(Oe.label),1)],40,Ese))),128))],4),m.value&&m.value.children?(Y(),or(be,{key:0,ref_key:"childMenu",ref:u,zIndex:t.zIndex+1,items:m.value.children,parentItem:m.value,options:ne(a),globalData:p.value,position:_.value,onClose:w,onKeepOpen:E,onPreUpdatePos:C},null,8,["zIndex","items","parentItem","options","globalData","position"])):kt("",!0)],38)):kt("",!0)}}}),Ase=kn(Cse,[["__scopeId","data-v-034bd5b7"]]),e_={defaultMinWidth:100,defaultMaxWidth:600,defaultStartZindex:1},Sse=Dt({__name:"ContextMenu",props:{options:{type:Object,default:null},show:{type:Boolean,default:!1}},emits:["update:show","close"],setup(t,{emit:e}){const r=e,n=t,i=Le({x:0,y:0}),o={parentPosition:{x:0,y:0},screenSize:{w:window.innerWidth,h:window.innerHeight}};function a(){i.value.x=n.options.x,i.value.y=n.options.y}function l(){r("update:show",!1),r("close")}function d(g){g&&l()}function u(g){i.value.x=g.x,i.value.y=g.y}const f=g=>{g.key==="Escape"&&l()};return Qr(()=>{document.addEventListener("keydown",f),a(),setTimeout(()=>{document.addEventListener("click",l),document.addEventListener("contextmenu",l)},100)}),$i(()=>{document.removeEventListener("keydown",f),document.removeEventListener("click",l)}),Rt(()=>n.show,g=>{g&&a()}),(g,y)=>{const x=Ase;return t.show?(Y(),or(x,{key:0,items:t.options.items,parentItem:{maxWidth:t.options.maxWidth||ne(e_).defaultMaxWidth,minWidth:t.options.minWidth||ne(e_).defaultMinWidth},options:t.options,"z-index":t.options.zIndex||ne(e_).defaultStartZindex,globalData:o,position:i.value,"on-close":d,onPreUpdatePos:u},null,8,["items","parentItem","options","z-index","position"])):kt("",!0)}}}),Ise=t=>{const e=document.createElement("div"),r=ji(Sse,{options:t,show:!0,onClose:()=>{S_(null,e)}});return S_(r,e),document.body.appendChild(e.firstElementChild),r.component},f2e=(t,e,r)=>({resizeWidth:n=>{const i=n.clientX,o=e(),a=document.getElementById("app");a&&(a.style.userSelect="none");const l=u=>{let f=o+(u.clientX-i);f{a==null||a.style.removeProperty("user-select"),window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",d)};window.addEventListener("mousemove",l),window.addEventListener("mouseup",d)}}),$se=(t,e,r)=>({resizeWidth:n=>{const i=n.clientX,o=e(),a=document.getElementById("app");a&&(a.style.userSelect="none");const l=u=>{let f=o+i-u.clientX;f{a==null||a.style.removeProperty("user-select"),window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",d)};window.addEventListener("mousemove",l),window.addEventListener("mouseup",d)}}),Sc=t=>(Io("data-v-ed1e5c6b"),t=t(),$o(),t),Ose={key:0,class:"content-loading"},Pse=Sc(()=>N("md-circular-progress",{indeterminate:""},null,-1)),Rse=[Pse],Dse={key:1,class:"alert alert-danger"},Lse={key:2,class:"layout"},Mse={id:"header"},Fse={class:"start"},Nse={class:"tab-items"},zse=["onClick","onContextmenu"],qse=["onClick"],Bse=Sc(()=>N("md-ripple",null,null,-1)),Vse={class:"end"},Use={class:"page-content"},jse={class:"quick"},Hse=Sc(()=>N("md-ripple",null,null,-1)),Wse=Sc(()=>N("md-ripple",null,null,-1)),Gse=Sc(()=>N("md-ripple",null,null,-1)),Qse=Sc(()=>N("md-ripple",null,null,-1)),Kse=Dt({__name:"MainView",setup(t){const e=Gs(),r=jj(),n=Ya(),{app:i,urlTokenKey:o}=Ms(n),{t:a}=Bn(),l=Le(!0),d=Le("");let u=!1;const f=At(()=>n.uploads.length>0);function g(){const R=r.currentRoute.value;return(R.meta.group??"")+(R.query.q??"")}function y(R){e.quick===R?e.quick="":e.quick=R}const{refetch:x}=Am({handle:(R,D)=>{var z;if(l.value=!1,D)d.value=D;else if(R){const j=(z=i.value)==null?void 0:z.urlToken,q=R.app.urlToken;o.value=Z0(q),j!==q&&(window.fileIdMap=new Map),i.value=R.app,u&&(u=!1,gt.emit("do_play_audio"))}},document:vee,appApi:!0}),{resizeWidth:m}=$se(300,()=>e.quickContentWidth,R=>{e.quickContentWidth=R});function p(R,D){R.preventDefault();const z=[];D!=="/"&&z.push({label:a("close"),onClick:()=>{C(D)}}),z.push({label:a("close_other_tabs"),onClick:()=>{Va(e.pages,j=>j.path!==D),_.value!==D&&_.value!=="/"&&E(D)}}),z.push({label:a("close_tabs_to_the_right"),onClick:()=>{const j=e.pages.findIndex(q=>q.path===D);Va(e.pages,q=>e.pages.indexOf(q)>j),_.value!==D&&_.value!=="/"&&E(D)}}),Ise({x:R.x,y:R.y,items:z})}const _=Le(r.currentRoute.value.fullPath);Rt(()=>r.currentRoute.value.fullPath,R=>{_.value=R});const v=()=>{x()},b=()=>{u=!0,x()},w=R=>{R.type==="AUDIO"&&x()};Qr(()=>{gt.on("refetch_app",v),gt.on("play_audio",b),gt.on("media_items_actioned",w)}),Wa(()=>{gt.off("refetch_app",v),gt.off("play_audio",b),gt.off("media_items_actioned",w)});function E(R){r.push(R)}function C(R){const D=e.pages.findIndex(z=>z.path===R);D!==-1&&(e.pages.splice(D,1),_.value===R&&(e.pages.length?D{localStorage.setItem("main_state",JSON.stringify(R)),_.value=r.currentRoute.value.fullPath},{deep:!0});const S=localStorage.getItem("main_state");if(S){const R=JSON.parse(S);if(R.pages){const D=[];R.pages.forEach(z=>{typeof z=="string"?D.push({path:z}):D.push(z)}),R.pages=D}e.$state={...e.$state,...R}}const P=R=>{["/","/login"].includes(R.path)||e.pages.some(D=>D.path===R.fullPath)||e.pages.push({path:R.fullPath})};return P(r.currentRoute.value),r.afterEach((R,D,z)=>{P(R)}),(R,D)=>{const z=Du,j=yse,q=l0("router-view"),J=eae,be=Koe,Oe=joe,ge=zoe,ke=Doe,Se=Ioe,Be=Bie,Re=Dne,se=Ure,we=rre,Pe=Oo("tooltip");return l.value?(Y(),te("div",Ose,Rse)):d.value?(Y(),te("div",Dse,Me(R.$t(d.value)),1)):(Y(),te("div",Lse,[N("header",Mse,[N("section",Fse,[N("div",Nse,[N("div",{class:Dn(["tab-item",{active:_.value==="/"}]),onClick:D[0]||(D[0]=Ce=>E("/")),key:"/",onContextmenu:D[1]||(D[1]=Ce=>p(Ce,"/"))},[N("span",null,Me(R.$t("page_title.home")),1)],34),(Y(!0),te($t,null,ci(ne(e).pages,Ce=>(Y(),te("div",{key:Ce.path,onClick:je=>E(Ce.path),class:Dn(["tab-item",{active:_.value===Ce.path}]),onContextmenu:je=>p(je,Ce.path)},[N("span",null,Me(R.$t(`page_title.${ne(Xse)(Ce.path)}`)),1),N("button",{class:"btn-icon sm tab-icon",onClick:yt(je=>C(Ce.path),["stop"])},[Bse,$e(z)],8,qse)],42,zse))),128))])]),N("section",Vse,[$e(j,{"logged-in":!0})])]),N("div",Use,[$e(q,{name:"LeftSidebar"},{default:Ir(({Component:Ce})=>[(Y(),or(cg,null,[(Y(),or(Ed(Ce),{key:R.$route.meta.group}))],1024))]),_:1}),N("main",{class:Dn(["main","main-"+(R.$route.meta.className||"default")])},[$e(q,{name:"LeftSidebar2"},{default:Ir(({Component:Ce})=>[(Y(),or(cg,null,[(Y(),or(Ed(Ce),{key:g()}))],1024))]),_:1}),$e(q,null,{default:Ir(({Component:Ce})=>[(Y(),or(cg,{exclude:"NoteEditView"},[(Y(),or(Ed(Ce),{key:R.$route.fullPath}))],1024))]),_:1})],2)]),N("div",jse,[ot((Y(),te("button",{class:Dn(["btn-icon q-action",{selected:ne(e).quick==="task"}]),onClick:D[2]||(D[2]=Ce=>y("task")),toggle:""},[Hse,$e(J)],2)),[[bn,f.value],[Pe,R.$t("header_actions.tasks")]]),ne(i).channel!=="GOOGLE"?ot((Y(),te("button",{key:0,class:Dn(["btn-icon q-action",{selected:ne(e).quick==="notification"}]),onClick:D[3]||(D[3]=Ce=>y("notification")),toggle:""},[Wse,$e(be)],2)),[[Pe,R.$t("header_actions.notifications")]]):kt("",!0),ot((Y(),te("button",{id:"quick-audio",class:Dn(["btn-icon q-action",{selected:ne(e).quick==="audio"}]),onClick:D[4]||(D[4]=Ce=>y("audio")),toggle:""},[Gse,$e(Oe)],2)),[[Pe,R.$t("playlist")]]),ot((Y(),te("button",{class:Dn(["btn-icon q-action",{selected:ne(e).quick==="chat"}]),onClick:D[5]||(D[5]=Ce=>y("chat")),toggle:""},[Qse,$e(ge)],2)),[[Pe,R.$t("my_phone")]]),ot(N("div",{class:"drag-indicator",onMousedown:D[6]||(D[6]=(...Ce)=>ne(m)&&ne(m)(...Ce))},[$e(ke)],544),[[bn,ne(e).quick]])]),$e(Yp,{name:"width"},{default:Ir(()=>[ot(N("div",{class:"quick-content",style:Pa({width:ne(e).quickContentWidth+"px"})},[ot($e(Se,null,null,512),[[bn,ne(e).quick==="task"]]),ot($e(Be,null,null,512),[[bn,ne(e).quick==="chat"]]),ot($e(Re,null,null,512),[[bn,ne(e).quick==="audio"]]),ot($e(se,null,null,512),[[bn,ne(e).quick==="notification"]])],4),[[bn,ne(e).quick]])]),_:1}),$e(we)]))}}}),Yse=kn(Kse,[["__scopeId","data-v-ed1e5c6b"]]),Vi=Vj({strict:!0,history:gj(),scrollBehavior(t,e,r){return r||{top:0}},routes:[{path:"/",component:Yse,meta:{requiresAuth:!0},children:[{name:"home",path:"",components:{default:()=>pt(()=>import("./HomeView-Bq2MUecw.js"),__vite__mapDeps([0,1,2,3,4]))},meta:{group:"home"}},{path:"messages",components:{default:()=>pt(()=>import("./MessagesView-BXs-YvFg.js"),__vite__mapDeps([5,6,7,8,9,3,10,11,12,13,14,15,16])),LeftSidebar:()=>pt(()=>import("./MessagesSidebar-CfBuWvqn.js"),__vite__mapDeps([17,18,19,20,21,13,22,10]))},meta:{group:"messages"}},{path:"calls",components:{default:()=>pt(()=>import("./CallsView-Du0dMBSu.js"),__vite__mapDeps([23,6,7,8,9,3,10,11,15,12,13,14,24])),LeftSidebar:()=>pt(()=>import("./CallsSidebar-BT2GeIws.js"),__vite__mapDeps([25,18,19,20,21,13,22,10]))},meta:{group:"calls"}},{path:"apps",components:{default:()=>pt(()=>import("./AppsView-CYUzkFWb.js"),__vite__mapDeps([26,6,8,9,3,10,11,27,15,28])),LeftSidebar:()=>pt(()=>import("./AppsSidebar-ChIAGNf6.js"),__vite__mapDeps([29,18,10]))},meta:{group:"apps"}},{path:"contacts",components:{default:()=>pt(()=>import("./ContactsView-Bu1iKHhR.js"),__vite__mapDeps([30,6,7,2,8,9,3,10,11,13,12,14,15,31])),LeftSidebar:()=>pt(()=>import("./ContactsSidebar-BhyJSnpi.js"),__vite__mapDeps([32,18,19,20,21,13,22,10]))},meta:{group:"contacts"}},{path:"images",components:{default:()=>pt(()=>import("./ImagesView-CDVlRIWh.js"),__vite__mapDeps([33,6,34,8,9,3,10,11,27,35,12,13,14,15])),LeftSidebar:()=>pt(()=>import("./ImagesSidebar-BajmyCvN.js"),__vite__mapDeps([36,37,18,19,20,21,13,22,10]))},meta:{group:"images"}},{path:"videos",components:{default:()=>pt(()=>import("./VideosView-BBEKzrlo.js"),__vite__mapDeps([38,6,34,8,9,3,10,11,27,35,12,13,14,15])),LeftSidebar:()=>pt(()=>import("./VideosSidebar-D77MkroS.js"),__vite__mapDeps([39,37,18,19,20,21,13,22,10]))},meta:{group:"videos"}},{path:"audios",components:{default:()=>pt(()=>import("./AudiosView-6hAoxYID.js"),__vite__mapDeps([40,6,8,9,3,10,11,27,35,15,12,13,14,41])),LeftSidebar:()=>pt(()=>import("./AudiosSidebar-DVPk3URw.js"),__vite__mapDeps([42,37,18,19,20,21,13,22,10]))},meta:{group:"audios"}},{path:"notes/:id",component:()=>pt(()=>import("./NoteEditView-CM2IJAyE.js"),__vite__mapDeps([43,44,45,46,47,48])),meta:{group:"notes"}},{path:"notes",components:{default:()=>pt(()=>import("./NotesView-CpABUojQ.js"),__vite__mapDeps([49,6,8,9,3,10,11,15,12,13,14,50])),LeftSidebar:()=>pt(()=>import("./NotesSidebar-DHZnCq2W.js"),__vite__mapDeps([51,18,19,20,21,13,22,10]))},meta:{group:"notes"}},{path:"aichats/:id",component:()=>pt(()=>import("./AIChatView-BklUdsm5.js"),__vite__mapDeps([52,47,53])),meta:{group:"aichats"}},{path:"aichats",components:{default:()=>pt(()=>import("./AIChatsView-BtwzZ9Jh.js"),__vite__mapDeps([54,6,8,9,3,10,11,15,12,13,14])),LeftSidebar:()=>pt(()=>import("./AIChatsSidebar-DGY1IrlG.js"),__vite__mapDeps([55,18,19,20,21,13,22,10]))},meta:{group:"aichats"}},{path:"files",components:{default:()=>pt(()=>import("./FilesView-TPT_BxjG.js"),__vite__mapDeps([56,20,27,57,1,35,9,58,21,13,22,15,59])),LeftSidebar:()=>pt(()=>import("./FilesSidebar--pVYvG4i.js"),__vite__mapDeps([60,18]))},meta:{group:"files",className:"files"}},{path:"files/recent",components:{default:()=>pt(()=>import("./FilesRecentView-t1qUzSQT.js"),__vite__mapDeps([61,58,15])),LeftSidebar:()=>pt(()=>import("./FilesSidebar--pVYvG4i.js"),__vite__mapDeps([60,18]))},meta:{group:"files",className:"files"}},{path:"json-viewer",component:()=>pt(()=>import("./JsonViewerView-BP0nVgFt.js"),__vite__mapDeps([62,44,45,63])),meta:{group:"json_viewer"}},{path:"qrcode-generator",component:()=>pt(()=>import("./QrCodeGeneratorView-D1zoFzte.js"),__vite__mapDeps([64,65])),meta:{group:"qrcode_generator"}},{path:"screen-mirror",component:()=>pt(()=>import("./ScreenMirrorView-D_ht7L_q.js"),__vite__mapDeps([66,57,67])),meta:{group:"screen_mirror"}},{path:"device-info",component:()=>pt(()=>import("./DeviceInfoView-BOk_tcZ1.js"),__vite__mapDeps([68,69])),meta:{group:"device_info"}},{path:"network",component:()=>pt(()=>import("./NetworkView-DEsR_qcg.js"),__vite__mapDeps([70,44,45,71,72,73])),meta:{group:"network"}},{path:"wifi",component:()=>pt(()=>import("./WiFiView-Cf7pDl6y.js"),__vite__mapDeps([74,44,45,71,72,73,13])),meta:{group:"wifi"}},{path:"wireguard",component:()=>pt(()=>import("./WireGuardView-volrBImr.js"),__vite__mapDeps([75,72,73,76])),meta:{group:"wireguard"}},{path:"wireguard/:id",component:()=>pt(()=>import("./WireGuardEditView-DBMZogVu.js"),__vite__mapDeps([77,44,45,71,72,73,76])),meta:{group:"wireguard"}},{path:"rules",component:()=>pt(()=>import("./RulesView-CqY_sCWF.js"),__vite__mapDeps([78,79,13])),meta:{group:"rules"}},{path:"routes",component:()=>pt(()=>import("./RoutesView-D8Ogkhi5.js"),__vite__mapDeps([80,79,13])),meta:{group:"routes"}},{path:"devices",component:()=>pt(()=>import("./DevicesView-DzjDseA2.js"),__vite__mapDeps([81,72,73,21,13,22])),meta:{group:"devices"}},{path:"feeds",components:{LeftSidebar:()=>pt(()=>import("./FeedsSidebar-4CfHj968.js"),__vite__mapDeps([82,18,19,20,21,13,22,83,10,84])),LeftSidebar2:()=>pt(()=>import("./FeedsSidebar2-CfQzzU05.js"),__vite__mapDeps([85,20,8,9,3,10,11,86,83,15,12,13,14,87]))},meta:{group:"feeds",className:"feeds"}},{path:"feeds/:feedId/entries/:id",components:{default:()=>pt(()=>import("./FeedEntryView-HICAY_wi.js"),__vite__mapDeps([88,46,86,47,83,89])),LeftSidebar:()=>pt(()=>import("./FeedsSidebar-4CfHj968.js"),__vite__mapDeps([82,18,19,20,21,13,22,83,10,84])),LeftSidebar2:()=>pt(()=>import("./FeedsSidebar2-CfQzzU05.js"),__vite__mapDeps([85,20,8,9,3,10,11,86,83,15,12,13,14,87]))},meta:{group:"feeds",className:"feed-entry"}}]},{name:"login",path:"/login",component:()=>pt(()=>import("./LoginView-8N5ARdAC.js"),__vite__mapDeps([90,13,91])),meta:{requiresAuth:!1}}]}),XI=new Map;Vi.beforeEach(async(t,e)=>{var i;const r=(i=document.getElementsByClassName("main")[0])==null?void 0:i.scrollTop;r!==void 0&&XI.set(e.fullPath,r);const n=localStorage.getItem("auth_token");if(t.meta.requiresAuth&&!n)return{path:"/login",query:{redirect:t.fullPath}};clearTimeout(globalThis.showTooltipTimeout),setTimeout(()=>{const o=document.getElementsByClassName("tooltip");for(const a of o)document.body.removeChild(a)},100)});Vi.afterEach((t,e)=>{setTimeout(()=>{const r=document.getElementsByClassName("main")[0];if(r){const n=XI.get(t.fullPath);r.scrollTop=n||0}},0)});const h2e=(t,e)=>{const r=Vi.currentRoute.value.fullPath;Vi.currentRoute.value.fullPath=e,t.pages.findIndex(i=>i.path===e)!==-1?window.history.pushState({},document.title,e):(window.history.replaceState({},document.title,e),t.replaceRoute(r,e))},z1=(t,e)=>{if(t.pages.findIndex(n=>n.path===e)!==-1)Vi.push(e);else{const n=Vi.currentRoute.value.fullPath;Vi.replace(e),t.replaceRoute(n,e)}},p2e=t=>{setTimeout(()=>{Vi.push(t)},0)},Xse=t=>Vi.resolve(t).meta.group;class Jse extends ft{connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){return me``}}const Zse=He`:host,.shadow,.shadow::before,.shadow::after{border-radius:inherit;inset:0;position:absolute;transition-duration:inherit;transition-property:inherit;transition-timing-function:inherit}:host{display:flex;pointer-events:none;transition-property:box-shadow,opacity}.shadow::before,.shadow::after{content:"";transition-property:box-shadow,opacity;--_level: var(--md-elevation-level, 0);--_shadow-color: var(--md-elevation-shadow-color, var(--md-sys-color-shadow, #000))}.shadow::before{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 3,1) + 2*clamp(0,var(--_level) - 4,1))) calc(1px*(2*clamp(0,var(--_level),1) + clamp(0,var(--_level) - 2,1) + clamp(0,var(--_level) - 4,1))) 0px var(--_shadow-color);opacity:.3}.shadow::after{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 1,1) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(3*clamp(0,var(--_level),2) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(clamp(0,var(--_level),4) + 2*clamp(0,var(--_level) - 4,1))) var(--_shadow-color);opacity:.15} +`;let zy=class extends Fae{};zy.styles=[zae,Nae];zy=O([st("md-outlined-segmented-button")],zy);const qae=t=>(Io("data-v-0e60f0ae"),t=t(),$o(),t),Bae={class:"theme-changer"},Vae={id:"hex"},Uae={class:"label"},jae={class:"input-wrapper"},Hae={class:"overflow"},Wae=["value"],Gae=qae(()=>N("md-focus-ring",{for:"color-input"},null,-1)),Qae=["selected"],Kae=["selected"],Yae=["selected"],Xae=Dt({__name:"ThemeChanger",setup(t){const e=Le(X0()),r=Le(zd());function n(o){r.value=o,CS(o)}function i(o){e.value=o.target.value,kS(e.value)}return(o,a)=>{const l=bae,d=mae,u=dae;return Y(),te("div",Bae,[N("div",null,[N("label",Vae,[N("span",Uae,Me(o.$t("color")),1),N("span",jae,[N("div",Hae,[N("input",{id:"color-input",onInput:i,type:"color",value:e.value},null,40,Wae)]),Gae])])]),N("md-outlined-segmented-button-set",null,[N("md-outlined-segmented-button",{"data-value":"dark",selected:r.value==="dark",onClick:a[0]||(a[0]=f=>n("dark"))},[$e(l,{slot:"icon"})],8,Qae),N("md-outlined-segmented-button",{"data-value":"auto",selected:r.value==="auto",onClick:a[1]||(a[1]=f=>n("auto"))},[$e(d,{slot:"icon"})],8,Kae),N("md-outlined-segmented-button",{"data-value":"light",selected:r.value==="light",onClick:a[2]||(a[2]=f=>n("light"))},[$e(u,{slot:"icon"})],8,Yae)])])}}}),Jae=kn(Xae,[["__scopeId","data-v-0e60f0ae"]]),Zae={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ese=N("path",{fill:"currentColor",d:"M12 22q-2.05 0-3.875-.788t-3.187-2.15t-2.15-3.187T2 12q0-2.075.813-3.9t2.2-3.175T8.25 2.788T12.2 2q2 0 3.775.688t3.113 1.9t2.125 2.875T22 11.05q0 2.875-1.75 4.413T16 17h-1.85q-.225 0-.312.125t-.088.275q0 .3.375.863t.375 1.287q0 1.25-.687 1.85T12 22m-5.5-9q.65 0 1.075-.425T8 11.5t-.425-1.075T6.5 10t-1.075.425T5 11.5t.425 1.075T6.5 13m3-4q.65 0 1.075-.425T11 7.5t-.425-1.075T9.5 6t-1.075.425T8 7.5t.425 1.075T9.5 9m5 0q.65 0 1.075-.425T16 7.5t-.425-1.075T14.5 6t-1.075.425T13 7.5t.425 1.075T14.5 9m3 4q.65 0 1.075-.425T19 11.5t-.425-1.075T17.5 10t-1.075.425T16 11.5t.425 1.075T17.5 13M12 20q.225 0 .363-.125t.137-.325q0-.35-.375-.825T11.75 17.3q0-1.05.725-1.675T14.25 15H16q1.65 0 2.825-.962T20 11.05q0-3.025-2.312-5.038T12.2 4Q8.8 4 6.4 6.325T4 12q0 3.325 2.338 5.663T12 20"},null,-1),tse=[ese];function rse(t,e){return Y(),te("svg",Zae,[...tse])}const nse={name:"material-symbols-palette-outline",render:rse},ise={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ose=N("path",{fill:"currentColor",d:"m15.075 18.95l-.85 2.425q-.1.275-.35.45t-.55.175q-.5 0-.812-.413t-.113-.912l3.8-10.05q.125-.275.375-.45t.55-.175h.75q.3 0 .55.175t.375.45L22.6 20.7q.2.475-.1.888t-.8.412q-.325 0-.562-.175t-.363-.475l-.85-2.4zM9.05 13.975L4.7 18.3q-.275.275-.687.288T3.3 18.3q-.275-.275-.275-.7t.275-.7l4.35-4.35q-.875-.875-1.588-2T4.75 8h2.1q.5.975 1 1.7t1.2 1.45q.825-.825 1.713-2.313T12.1 6H2q-.425 0-.712-.288T1 5t.288-.712T2 4h6V3q0-.425.288-.712T9 2t.713.288T10 3v1h6q.425 0 .713.288T17 5t-.288.713T16 6h-1.9q-.525 1.8-1.575 3.7t-2.075 2.9l2.4 2.45l-.75 2.05zM15.7 17.2h3.6l-1.8-5.1z"},null,-1),ase=[ose];function sse(t,e){return Y(),te("svg",ise,[...ase])}const lse={name:"material-symbols-translate-rounded",render:sse},N1=t=>(Io("data-v-fbb2ebf7"),t=t(),$o(),t),cse={class:"h-action",style:{position:"relative"}},dse=N1(()=>N("md-ripple",null,null,-1)),use=["open"],fse=["onClick"],hse={slot:"headline"},pse={class:"h-action",style:{position:"relative"}},mse=N1(()=>N("md-ripple",null,null,-1)),vse=["open"],gse=N1(()=>N("md-ripple",null,null,-1)),_se=Dt({__name:"HeaderActions",props:{loggedIn:{type:Boolean}},setup(t){const e=t,r=Le(!1),n=Le(!1),{locale:i,t:o}=Bn(),a=[{name:"English",value:"en-US"},{name:"简体中文",value:"zh-CN"},{name:"繁体中文",value:"zh-TW"},{name:"español",value:"es"},{name:"日本語",value:"ja"},{name:"Nederlands",value:"nl"},{name:"italiano",value:"it"},{name:"हिन्दी",value:"hi"},{name:"français",value:"fr"},{name:"русский язык",value:"ru"},{name:"বাংলা",value:"bn"},{name:"Deutsch",value:"de"},{name:"Português",value:"pt"},{name:"தமிழ்",value:"ta"},{name:"한국어",value:"ko"},{name:"Türkçe",value:"tr"},{name:"Tiếng Việt",value:"vi"}];function l(u){r.value=!1,i.value=u,localStorage.setItem("locale",u),document.title=o("app_name")}function d(){localStorage.clear(),window.location.reload()}return(u,f)=>{const g=lse,y=nse,x=Jae,m=oae,p=Oo("tooltip");return Y(),te($t,null,[N("div",cse,[ot((Y(),te("button",{class:"btn-icon",id:"lang-ref",onClick:f[0]||(f[0]=()=>r.value=!0)},[dse,$e(g)])),[[p,ne(o)("header_actions.language")]]),N("md-menu",{anchor:"lang-ref","stay-open-on-focusout":"",quick:"",open:r.value,onClosed:f[1]||(f[1]=()=>r.value=!1)},[(Y(),te($t,null,ci(a,_=>N("md-menu-item",{key:_.value,onClick:v=>l(_.value)},[N("div",hse,Me(_.name),1)],8,fse)),64))],40,use)]),N("div",pse,[ot((Y(),te("button",{class:"btn-icon",id:"theme-ref",onClick:f[2]||(f[2]=()=>n.value=!0)},[mse,$e(y)])),[[p,ne(o)("header_actions.theme")]]),N("md-menu",{anchor:"theme-ref","stay-open-on-focusout":"",quick:"",open:n.value,onClosed:f[3]||(f[3]=()=>n.value=!1)},[$e(x)],40,vse)]),e.loggedIn?ot((Y(),te("button",{key:0,class:"btn-icon h-action",style:{"margin-inline-end":"8px"},onClick:d},[gse,$e(m)])),[[p,u.$t("header_actions.logout")]]):kt("",!0)],64)}}}),yse=kn(_se,[["__scopeId","data-v-fbb2ebf7"]]),YI=t=>(Io("data-v-034bd5b7"),t=t(),$o(),t),bse=YI(()=>N("span",{class:"right-arrow"},null,-1)),xse=[bse],wse=YI(()=>N("span",{class:"right-arrow"},null,-1)),Tse=[wse],Ese=["disabled","onMouseenter","onFocus","onClick"],kse={slot:"headline"},Cse=Dt({__name:"ContextSubMenu",props:{items:{type:Object,default:null},parentItem:{type:Object,default:null},options:{type:Object,default:null},zIndex:{type:Number,default:0},globalData:{type:Object,default:null},position:{type:Object,default:null}},emits:["close","keepOpen","preUpdatePos"],setup(t,{emit:e}){const r=t,n=e,{globalData:i,position:o,options:a,parentItem:l}=qp(r),d=Le(),u=Le(),f=Le(!1),g=Le(!1);let y=null;const x=Le(0),m=Le(null),p=Le({parentPosition:{x:0,y:0},screenSize:i.value.screenSize}),_=Le({x:0,y:0});function v(q,J){if(J.disabled||!J.children||J.children.length==0||m.value===J)return;m.value=J,p.value.parentPosition.x=i.value.parentPosition.x+o.value.x,p.value.parentPosition.y=i.value.parentPosition.y+o.value.y,d.value&&(_.value.x=d.value.offsetWidth+(a.value.xOffset||0));const be=q.target;be&&(_.value.y=be.offsetTop+(a.value.yOffset||0))}function b(){y=m.value,setTimeout(()=>{y===m.value&&(m.value=null)})}Rt(m,(q,J)=>{q&&J&&setTimeout(()=>{u.value&&u.value.doCheckPos()},50)});function w(q){b(),q&&n("close",!0)}function E(q){y===q&&(y=null),n("keepOpen",l.value)}function C(q){_.value.x=q.x,_.value.y=q.y}function S(q){q.disabled||(typeof q.onClick=="function"?(q.onClick(),n("close",!0)):(!q.children||q.children.length===0)&&n("close",!0))}function P(){n("keepOpen",l.value)}function R(q){q.relatedTarget!=null&&n("close",!1)}function D(q){d.value&&(d.value.scrollTop+=q?30:-30)}let z=0;function j(){const q=d.value,J=i.value;if(q){const be={x:o.value.x,y:o.value.y},Oe=J.parentPosition.x+o.value.x+q.offsetWidth;if(Oe>J.screenSize.w&&(be.x-=Oe-J.screenSize.w),q.offsetHeight>J.screenSize.h-30)x.value=J.screenSize.h-30,be.y=-J.parentPosition.y,g.value=!0;else{g.value=!1,x.value=0;const ge=J.parentPosition.y+o.value.y+q.offsetHeight;ge>J.screenSize.h&&(be.y-=ge-J.screenSize.h+30)}n("preUpdatePos",be),f.value=!0}}return Qr(()=>{z=window.setTimeout(()=>j(),100)}),$i(()=>{z>0&&(clearTimeout(z),z=0)}),(q,J)=>{const be=l0("ContextSubMenu",!0);return t.items?(Y(),te("div",{key:0,class:Dn("context-menu "+(ne(a).customClass?ne(a).customClass:"")+(f.value?" ready":"")),style:Pa({maxWidth:ne(l)&&ne(l).maxWidth?`${ne(l).maxWidth}px`:"600px",minWidth:ne(l)&&ne(l).minWidth?`${ne(l).minWidth}px`:"100px",zIndex:t.zIndex,left:`${ne(o).x}px`,top:`${ne(o).y}px`}),onMouseenter:P,onMouseleave:J[4]||(J[4]=Oe=>R(Oe))},[ot(N("div",{class:"context-menu-updown up",onClick:J[0]||(J[0]=Oe=>D(!1))},xse,512),[[bn,g.value]]),ot(N("div",{class:"context-menu-updown down",onClick:J[1]||(J[1]=Oe=>D(!0))},Tse,512),[[bn,g.value]]),N("div",{class:"context-menu-items",ref_key:"menu",ref:d,style:Pa({maxHeight:x.value>0?`${x.value}px`:""})},[(Y(!0),te($t,null,ci(t.items,(Oe,ge)=>(Y(),te("md-menu-item",{key:ge,disabled:Oe.disabled,onMouseenter:ke=>v(ke,Oe),onMouseleave:J[2]||(J[2]=ke=>b()),onFocus:ke=>v(ke,Oe),onBlur:J[3]||(J[3]=ke=>b()),onClick:ke=>S(Oe)},[N("div",kse,Me(Oe.label),1)],40,Ese))),128))],4),m.value&&m.value.children?(Y(),or(be,{key:0,ref_key:"childMenu",ref:u,zIndex:t.zIndex+1,items:m.value.children,parentItem:m.value,options:ne(a),globalData:p.value,position:_.value,onClose:w,onKeepOpen:E,onPreUpdatePos:C},null,8,["zIndex","items","parentItem","options","globalData","position"])):kt("",!0)],38)):kt("",!0)}}}),Ase=kn(Cse,[["__scopeId","data-v-034bd5b7"]]),e_={defaultMinWidth:100,defaultMaxWidth:600,defaultStartZindex:1},Sse=Dt({__name:"ContextMenu",props:{options:{type:Object,default:null},show:{type:Boolean,default:!1}},emits:["update:show","close"],setup(t,{emit:e}){const r=e,n=t,i=Le({x:0,y:0}),o={parentPosition:{x:0,y:0},screenSize:{w:window.innerWidth,h:window.innerHeight}};function a(){i.value.x=n.options.x,i.value.y=n.options.y}function l(){r("update:show",!1),r("close")}function d(g){g&&l()}function u(g){i.value.x=g.x,i.value.y=g.y}const f=g=>{g.key==="Escape"&&l()};return Qr(()=>{document.addEventListener("keydown",f),a(),setTimeout(()=>{document.addEventListener("click",l),document.addEventListener("contextmenu",l)},100)}),$i(()=>{document.removeEventListener("keydown",f),document.removeEventListener("click",l)}),Rt(()=>n.show,g=>{g&&a()}),(g,y)=>{const x=Ase;return t.show?(Y(),or(x,{key:0,items:t.options.items,parentItem:{maxWidth:t.options.maxWidth||ne(e_).defaultMaxWidth,minWidth:t.options.minWidth||ne(e_).defaultMinWidth},options:t.options,"z-index":t.options.zIndex||ne(e_).defaultStartZindex,globalData:o,position:i.value,"on-close":d,onPreUpdatePos:u},null,8,["items","parentItem","options","z-index","position"])):kt("",!0)}}}),Ise=t=>{const e=document.createElement("div"),r=ji(Sse,{options:t,show:!0,onClose:()=>{S_(null,e)}});return S_(r,e),document.body.appendChild(e.firstElementChild),r.component},f2e=(t,e,r)=>({resizeWidth:n=>{const i=n.clientX,o=e(),a=document.getElementById("app");a&&(a.style.userSelect="none");const l=u=>{let f=o+(u.clientX-i);f{a==null||a.style.removeProperty("user-select"),window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",d)};window.addEventListener("mousemove",l),window.addEventListener("mouseup",d)}}),$se=(t,e,r)=>({resizeWidth:n=>{const i=n.clientX,o=e(),a=document.getElementById("app");a&&(a.style.userSelect="none");const l=u=>{let f=o+i-u.clientX;f{a==null||a.style.removeProperty("user-select"),window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",d)};window.addEventListener("mousemove",l),window.addEventListener("mouseup",d)}}),Sc=t=>(Io("data-v-ed1e5c6b"),t=t(),$o(),t),Ose={key:0,class:"content-loading"},Pse=Sc(()=>N("md-circular-progress",{indeterminate:""},null,-1)),Rse=[Pse],Dse={key:1,class:"alert alert-danger"},Lse={key:2,class:"layout"},Mse={id:"header"},Fse={class:"start"},Nse={class:"tab-items"},zse=["onClick","onContextmenu"],qse=["onClick"],Bse=Sc(()=>N("md-ripple",null,null,-1)),Vse={class:"end"},Use={class:"page-content"},jse={class:"quick"},Hse=Sc(()=>N("md-ripple",null,null,-1)),Wse=Sc(()=>N("md-ripple",null,null,-1)),Gse=Sc(()=>N("md-ripple",null,null,-1)),Qse=Sc(()=>N("md-ripple",null,null,-1)),Kse=Dt({__name:"MainView",setup(t){const e=Gs(),r=jj(),n=Ya(),{app:i,urlTokenKey:o}=Ms(n),{t:a}=Bn(),l=Le(!0),d=Le("");let u=!1;const f=At(()=>n.uploads.length>0);function g(){const R=r.currentRoute.value;return(R.meta.group??"")+(R.query.q??"")}function y(R){e.quick===R?e.quick="":e.quick=R}const{refetch:x}=Am({handle:(R,D)=>{var z;if(l.value=!1,D)d.value=D;else if(R){const j=(z=i.value)==null?void 0:z.urlToken,q=R.app.urlToken;o.value=Z0(q),j!==q&&(window.fileIdMap=new Map),i.value=R.app,u&&(u=!1,gt.emit("do_play_audio"))}},document:vee,appApi:!0}),{resizeWidth:m}=$se(300,()=>e.quickContentWidth,R=>{e.quickContentWidth=R});function p(R,D){R.preventDefault();const z=[];D!=="/"&&z.push({label:a("close"),onClick:()=>{C(D)}}),z.push({label:a("close_other_tabs"),onClick:()=>{Va(e.pages,j=>j.path!==D),_.value!==D&&_.value!=="/"&&E(D)}}),z.push({label:a("close_tabs_to_the_right"),onClick:()=>{const j=e.pages.findIndex(q=>q.path===D);Va(e.pages,q=>e.pages.indexOf(q)>j),_.value!==D&&_.value!=="/"&&E(D)}}),Ise({x:R.x,y:R.y,items:z})}const _=Le(r.currentRoute.value.fullPath);Rt(()=>r.currentRoute.value.fullPath,R=>{_.value=R});const v=()=>{x()},b=()=>{u=!0,x()},w=R=>{R.type==="AUDIO"&&x()};Qr(()=>{gt.on("refetch_app",v),gt.on("play_audio",b),gt.on("media_items_actioned",w)}),Wa(()=>{gt.off("refetch_app",v),gt.off("play_audio",b),gt.off("media_items_actioned",w)});function E(R){r.push(R)}function C(R){const D=e.pages.findIndex(z=>z.path===R);D!==-1&&(e.pages.splice(D,1),_.value===R&&(e.pages.length?D{localStorage.setItem("main_state",JSON.stringify(R)),_.value=r.currentRoute.value.fullPath},{deep:!0});const S=localStorage.getItem("main_state");if(S){const R=JSON.parse(S);if(R.pages){const D=[];R.pages.forEach(z=>{typeof z=="string"?D.push({path:z}):D.push(z)}),R.pages=D}e.$state={...e.$state,...R}}const P=R=>{["/","/login"].includes(R.path)||e.pages.some(D=>D.path===R.fullPath)||e.pages.push({path:R.fullPath})};return P(r.currentRoute.value),r.afterEach((R,D,z)=>{P(R)}),(R,D)=>{const z=Du,j=yse,q=l0("router-view"),J=eae,be=Koe,Oe=joe,ge=zoe,ke=Doe,Se=Ioe,Be=Bie,Re=Dne,se=Ure,we=rre,Pe=Oo("tooltip");return l.value?(Y(),te("div",Ose,Rse)):d.value?(Y(),te("div",Dse,Me(R.$t(d.value)),1)):(Y(),te("div",Lse,[N("header",Mse,[N("section",Fse,[N("div",Nse,[N("div",{class:Dn(["tab-item",{active:_.value==="/"}]),onClick:D[0]||(D[0]=Ce=>E("/")),key:"/",onContextmenu:D[1]||(D[1]=Ce=>p(Ce,"/"))},[N("span",null,Me(R.$t("page_title.home")),1)],34),(Y(!0),te($t,null,ci(ne(e).pages,Ce=>(Y(),te("div",{key:Ce.path,onClick:je=>E(Ce.path),class:Dn(["tab-item",{active:_.value===Ce.path}]),onContextmenu:je=>p(je,Ce.path)},[N("span",null,Me(R.$t(`page_title.${ne(Xse)(Ce.path)}`)),1),N("button",{class:"btn-icon sm tab-icon",onClick:yt(je=>C(Ce.path),["stop"])},[Bse,$e(z)],8,qse)],42,zse))),128))])]),N("section",Vse,[$e(j,{"logged-in":!0})])]),N("div",Use,[$e(q,{name:"LeftSidebar"},{default:Ir(({Component:Ce})=>[(Y(),or(cg,null,[(Y(),or(Ed(Ce),{key:R.$route.meta.group}))],1024))]),_:1}),N("main",{class:Dn(["main","main-"+(R.$route.meta.className||"default")])},[$e(q,{name:"LeftSidebar2"},{default:Ir(({Component:Ce})=>[(Y(),or(cg,null,[(Y(),or(Ed(Ce),{key:g()}))],1024))]),_:1}),$e(q,null,{default:Ir(({Component:Ce})=>[(Y(),or(cg,{exclude:"NoteEditView"},[(Y(),or(Ed(Ce),{key:R.$route.fullPath}))],1024))]),_:1})],2)]),N("div",jse,[ot((Y(),te("button",{class:Dn(["btn-icon q-action",{selected:ne(e).quick==="task"}]),onClick:D[2]||(D[2]=Ce=>y("task")),toggle:""},[Hse,$e(J)],2)),[[bn,f.value],[Pe,R.$t("header_actions.tasks")]]),ne(i).channel!=="GOOGLE"?ot((Y(),te("button",{key:0,class:Dn(["btn-icon q-action",{selected:ne(e).quick==="notification"}]),onClick:D[3]||(D[3]=Ce=>y("notification")),toggle:""},[Wse,$e(be)],2)),[[Pe,R.$t("header_actions.notifications")]]):kt("",!0),ot((Y(),te("button",{id:"quick-audio",class:Dn(["btn-icon q-action",{selected:ne(e).quick==="audio"}]),onClick:D[4]||(D[4]=Ce=>y("audio")),toggle:""},[Gse,$e(Oe)],2)),[[Pe,R.$t("playlist")]]),ot((Y(),te("button",{class:Dn(["btn-icon q-action",{selected:ne(e).quick==="chat"}]),onClick:D[5]||(D[5]=Ce=>y("chat")),toggle:""},[Qse,$e(ge)],2)),[[Pe,R.$t("my_phone")]]),ot(N("div",{class:"drag-indicator",onMousedown:D[6]||(D[6]=(...Ce)=>ne(m)&&ne(m)(...Ce))},[$e(ke)],544),[[bn,ne(e).quick]])]),$e(Yp,{name:"width"},{default:Ir(()=>[ot(N("div",{class:"quick-content",style:Pa({width:ne(e).quickContentWidth+"px"})},[ot($e(Se,null,null,512),[[bn,ne(e).quick==="task"]]),ot($e(Be,null,null,512),[[bn,ne(e).quick==="chat"]]),ot($e(Re,null,null,512),[[bn,ne(e).quick==="audio"]]),ot($e(se,null,null,512),[[bn,ne(e).quick==="notification"]])],4),[[bn,ne(e).quick]])]),_:1}),$e(we)]))}}}),Yse=kn(Kse,[["__scopeId","data-v-ed1e5c6b"]]),Vi=Vj({strict:!0,history:gj(),scrollBehavior(t,e,r){return r||{top:0}},routes:[{path:"/",component:Yse,meta:{requiresAuth:!0},children:[{name:"home",path:"",components:{default:()=>pt(()=>import("./HomeView-DXd8FGXG.js"),__vite__mapDeps([0,1,2,3,4]))},meta:{group:"home"}},{path:"messages",components:{default:()=>pt(()=>import("./MessagesView-Lo9CFG6T.js"),__vite__mapDeps([5,6,7,8,9,3,10,11,12,13,14,15,16])),LeftSidebar:()=>pt(()=>import("./MessagesSidebar-Bq3uPVyY.js"),__vite__mapDeps([17,18,19,20,21,13,22,10]))},meta:{group:"messages"}},{path:"calls",components:{default:()=>pt(()=>import("./CallsView-CzDaUb1S.js"),__vite__mapDeps([23,6,7,8,9,3,10,11,15,12,13,14,24])),LeftSidebar:()=>pt(()=>import("./CallsSidebar-DFxIRlRX.js"),__vite__mapDeps([25,18,19,20,21,13,22,10]))},meta:{group:"calls"}},{path:"apps",components:{default:()=>pt(()=>import("./AppsView-DjawsU48.js"),__vite__mapDeps([26,6,8,9,3,10,11,27,15,28])),LeftSidebar:()=>pt(()=>import("./AppsSidebar-DIojpdxl.js"),__vite__mapDeps([29,18,10]))},meta:{group:"apps"}},{path:"contacts",components:{default:()=>pt(()=>import("./ContactsView-yr-2rY75.js"),__vite__mapDeps([30,6,7,2,8,9,3,10,11,13,12,14,15,31])),LeftSidebar:()=>pt(()=>import("./ContactsSidebar-kNCUoG7d.js"),__vite__mapDeps([32,18,19,20,21,13,22,10]))},meta:{group:"contacts"}},{path:"images",components:{default:()=>pt(()=>import("./ImagesView-BnPoKDHs.js"),__vite__mapDeps([33,6,34,8,9,3,10,11,27,35,12,13,14,15])),LeftSidebar:()=>pt(()=>import("./ImagesSidebar-BGOsPYeJ.js"),__vite__mapDeps([36,37,18,19,20,21,13,22,10]))},meta:{group:"images"}},{path:"videos",components:{default:()=>pt(()=>import("./VideosView-DJ0iJBjn.js"),__vite__mapDeps([38,6,34,8,9,3,10,11,27,35,12,13,14,15])),LeftSidebar:()=>pt(()=>import("./VideosSidebar-DsCT02ty.js"),__vite__mapDeps([39,37,18,19,20,21,13,22,10]))},meta:{group:"videos"}},{path:"audios",components:{default:()=>pt(()=>import("./AudiosView-vRBNAKnA.js"),__vite__mapDeps([40,6,8,9,3,10,11,27,35,15,12,13,14,41])),LeftSidebar:()=>pt(()=>import("./AudiosSidebar-Dq3tWc3K.js"),__vite__mapDeps([42,37,18,19,20,21,13,22,10]))},meta:{group:"audios"}},{path:"notes/:id",component:()=>pt(()=>import("./NoteEditView-NOrZqV-k.js"),__vite__mapDeps([43,44,45,46,47,48])),meta:{group:"notes"}},{path:"notes",components:{default:()=>pt(()=>import("./NotesView-CmvQj0k5.js"),__vite__mapDeps([49,6,8,9,3,10,11,15,12,13,14,50])),LeftSidebar:()=>pt(()=>import("./NotesSidebar-CKJ0TkLn.js"),__vite__mapDeps([51,18,19,20,21,13,22,10]))},meta:{group:"notes"}},{path:"aichats/:id",component:()=>pt(()=>import("./AIChatView-C6TL1duT.js"),__vite__mapDeps([52,47,53])),meta:{group:"aichats"}},{path:"aichats",components:{default:()=>pt(()=>import("./AIChatsView-B4QzEE_5.js"),__vite__mapDeps([54,6,8,9,3,10,11,15,12,13,14])),LeftSidebar:()=>pt(()=>import("./AIChatsSidebar-CtG-RNga.js"),__vite__mapDeps([55,18,19,20,21,13,22,10]))},meta:{group:"aichats"}},{path:"files",components:{default:()=>pt(()=>import("./FilesView-DVCo2Xu2.js"),__vite__mapDeps([56,20,27,57,1,35,9,58,21,13,22,15,59])),LeftSidebar:()=>pt(()=>import("./FilesSidebar-CwUlyGz8.js"),__vite__mapDeps([60,18]))},meta:{group:"files",className:"files"}},{path:"files/recent",components:{default:()=>pt(()=>import("./FilesRecentView-vsq00COR.js"),__vite__mapDeps([61,58,15])),LeftSidebar:()=>pt(()=>import("./FilesSidebar-CwUlyGz8.js"),__vite__mapDeps([60,18]))},meta:{group:"files",className:"files"}},{path:"json-viewer",component:()=>pt(()=>import("./JsonViewerView-BRYD9jgN.js"),__vite__mapDeps([62,44,45,63])),meta:{group:"json_viewer"}},{path:"qrcode-generator",component:()=>pt(()=>import("./QrCodeGeneratorView-uCh2g3ea.js"),__vite__mapDeps([64,65])),meta:{group:"qrcode_generator"}},{path:"screen-mirror",component:()=>pt(()=>import("./ScreenMirrorView-DiWYaGkb.js"),__vite__mapDeps([66,57,67])),meta:{group:"screen_mirror"}},{path:"device-info",component:()=>pt(()=>import("./DeviceInfoView-DTyOzgf5.js"),__vite__mapDeps([68,69])),meta:{group:"device_info"}},{path:"network",component:()=>pt(()=>import("./NetworkView-CvS5JKEb.js"),__vite__mapDeps([70,44,45,71,72,73])),meta:{group:"network"}},{path:"wifi",component:()=>pt(()=>import("./WiFiView-DcmCXVXc.js"),__vite__mapDeps([74,44,45,71,72,73,13])),meta:{group:"wifi"}},{path:"wireguard",component:()=>pt(()=>import("./WireGuardView-C8ywVKyM.js"),__vite__mapDeps([75,72,73,76])),meta:{group:"wireguard"}},{path:"wireguard/:id",component:()=>pt(()=>import("./WireGuardEditView-aVmc_Sci.js"),__vite__mapDeps([77,44,45,71,72,73,76])),meta:{group:"wireguard"}},{path:"rules",component:()=>pt(()=>import("./RulesView-y2r2SwLC.js"),__vite__mapDeps([78,79,13])),meta:{group:"rules"}},{path:"routes",component:()=>pt(()=>import("./RoutesView-D87udG5Z.js"),__vite__mapDeps([80,79,13])),meta:{group:"routes"}},{path:"devices",component:()=>pt(()=>import("./DevicesView-C_LOeQ2V.js"),__vite__mapDeps([81,72,73,21,13,22])),meta:{group:"devices"}},{path:"feeds",components:{LeftSidebar:()=>pt(()=>import("./FeedsSidebar-BolTRI-Q.js"),__vite__mapDeps([82,18,19,20,21,13,22,83,10,84])),LeftSidebar2:()=>pt(()=>import("./FeedsSidebar2-ARS0K567.js"),__vite__mapDeps([85,20,8,9,3,10,11,86,83,15,12,13,14,87]))},meta:{group:"feeds",className:"feeds"}},{path:"feeds/:feedId/entries/:id",components:{default:()=>pt(()=>import("./FeedEntryView-DJ7bOIIl.js"),__vite__mapDeps([88,46,86,47,83,89])),LeftSidebar:()=>pt(()=>import("./FeedsSidebar-BolTRI-Q.js"),__vite__mapDeps([82,18,19,20,21,13,22,83,10,84])),LeftSidebar2:()=>pt(()=>import("./FeedsSidebar2-ARS0K567.js"),__vite__mapDeps([85,20,8,9,3,10,11,86,83,15,12,13,14,87]))},meta:{group:"feeds",className:"feed-entry"}}]},{name:"login",path:"/login",component:()=>pt(()=>import("./LoginView-D9DcHVT2.js"),__vite__mapDeps([90,13,91])),meta:{requiresAuth:!1}}]}),XI=new Map;Vi.beforeEach(async(t,e)=>{var i;const r=(i=document.getElementsByClassName("main")[0])==null?void 0:i.scrollTop;r!==void 0&&XI.set(e.fullPath,r);const n=localStorage.getItem("auth_token");if(t.meta.requiresAuth&&!n)return{path:"/login",query:{redirect:t.fullPath}};clearTimeout(globalThis.showTooltipTimeout),setTimeout(()=>{const o=document.getElementsByClassName("tooltip");for(const a of o)document.body.removeChild(a)},100)});Vi.afterEach((t,e)=>{setTimeout(()=>{const r=document.getElementsByClassName("main")[0];if(r){const n=XI.get(t.fullPath);r.scrollTop=n||0}},0)});const h2e=(t,e)=>{const r=Vi.currentRoute.value.fullPath;Vi.currentRoute.value.fullPath=e,t.pages.findIndex(i=>i.path===e)!==-1?window.history.pushState({},document.title,e):(window.history.replaceState({},document.title,e),t.replaceRoute(r,e))},z1=(t,e)=>{if(t.pages.findIndex(n=>n.path===e)!==-1)Vi.push(e);else{const n=Vi.currentRoute.value.fullPath;Vi.replace(e),t.replaceRoute(n,e)}},p2e=t=>{setTimeout(()=>{Vi.push(t)},0)},Xse=t=>Vi.resolve(t).meta.group;class Jse extends ft{connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){return me``}}const Zse=He`:host,.shadow,.shadow::before,.shadow::after{border-radius:inherit;inset:0;position:absolute;transition-duration:inherit;transition-property:inherit;transition-timing-function:inherit}:host{display:flex;pointer-events:none;transition-property:box-shadow,opacity}.shadow::before,.shadow::after{content:"";transition-property:box-shadow,opacity;--_level: var(--md-elevation-level, 0);--_shadow-color: var(--md-elevation-shadow-color, var(--md-sys-color-shadow, #000))}.shadow::before{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 3,1) + 2*clamp(0,var(--_level) - 4,1))) calc(1px*(2*clamp(0,var(--_level),1) + clamp(0,var(--_level) - 2,1) + clamp(0,var(--_level) - 4,1))) 0px var(--_shadow-color);opacity:.3}.shadow::after{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 1,1) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(3*clamp(0,var(--_level),2) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(clamp(0,var(--_level),4) + 2*clamp(0,var(--_level) - 4,1))) var(--_shadow-color);opacity:.15} `;let qy=class extends Jse{};qy.styles=[Zse];qy=O([st("md-elevation")],qy);const Gr=Symbol("internals"),t_=Symbol("privateInternals");function Xa(t){class e extends t{get[Gr](){return this[t_]||(this[t_]=this.attachInternals()),this[t_]}}return e}function JI(t){t.addInitializer(e=>{const r=e;r.addEventListener("click",async n=>{const{type:i,[Gr]:o}=r,{form:a}=o;if(!(!a||i==="button")&&(await new Promise(l=>{setTimeout(l)}),!n.defaultPrevented)){if(i==="reset"){a.reset();return}a.addEventListener("submit",l=>{Object.defineProperty(l,"submitter",{configurable:!0,enumerable:!0,get:()=>r})},{capture:!0,once:!0}),o.setFormValue(r.value),a.requestSubmit()}})})}function Om(t){const e=new MouseEvent("click",{bubbles:!0});return t.dispatchEvent(e),e}function qu(t){return t.currentTarget!==t.target||t.composedPath()[0]!==t.target||t.target.disabled?!1:!ele(t)}function ele(t){const e=By;return e&&(t.preventDefault(),t.stopImmediatePropagation()),tle(),e}let By=!1;async function tle(){By=!0,await null,By=!1}const rle=Xa(ft);class zr extends rle{get name(){return this.getAttribute("name")??""}set name(e){this.setAttribute("name",e)}get form(){return this[Gr].form}constructor(){super(),this.disabled=!1,this.href="",this.target="",this.trailingIcon=!1,this.hasIcon=!1,this.type="submit",this.value="",this.handleActivationClick=e=>{!qu(e)||!this.buttonElement||(this.focus(),Om(this.buttonElement))},this.addEventListener("click",this.handleActivationClick)}focus(){var e;(e=this.buttonElement)==null||e.focus()}blur(){var e;(e=this.buttonElement)==null||e.blur()}render(){var i;const e=this.disabled&&!this.href,r=this.href?this.renderLink():this.renderButton(),n=this.href?"link":"button";return me` ${(i=this.renderElevationOrOutline)==null?void 0:i.call(this)}
diff --git a/app/src/main/resources/web/assets/javascript-46oaFvXi.js b/app/src/main/resources/web/assets/javascript-DGPiJBBE.js similarity index 77% rename from app/src/main/resources/web/assets/javascript-46oaFvXi.js rename to app/src/main/resources/web/assets/javascript-DGPiJBBE.js index 2c258d38..8c1ffbe9 100644 --- a/app/src/main/resources/web/assets/javascript-46oaFvXi.js +++ b/app/src/main/resources/web/assets/javascript-DGPiJBBE.js @@ -1 +1 @@ -import{conf as t,language as e}from"./typescript-B2JOWJ8l.js";import"./MonacoEditor.vuevuetypescriptsetuptruelang-BaOpzcW2.js";import"./index-BzaaAwnX.js";var r=t,a={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer};export{r as conf,a as language}; +import{conf as t,language as e}from"./typescript-L8Bz5EfD.js";import"./MonacoEditor.vuevuetypescriptsetuptruelang-BNZRjtJE.js";import"./index-R8dLcqG_.js";var r=t,a={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer};export{r as conf,a as language}; diff --git a/app/src/main/resources/web/assets/jsonMode-Bx8X7dz8.js b/app/src/main/resources/web/assets/jsonMode-BcJk7cNl.js similarity index 99% rename from app/src/main/resources/web/assets/jsonMode-Bx8X7dz8.js rename to app/src/main/resources/web/assets/jsonMode-BcJk7cNl.js index a8bbb63b..8570125c 100644 --- a/app/src/main/resources/web/assets/jsonMode-Bx8X7dz8.js +++ b/app/src/main/resources/web/assets/jsonMode-BcJk7cNl.js @@ -1,4 +1,4 @@ -var $e=Object.defineProperty;var Ge=(e,n,i)=>n in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var A=(e,n,i)=>(Ge(e,typeof n!="symbol"?n+"":n,i),i);import{m as Qe}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BaOpzcW2.js";import"./index-BzaaAwnX.js";var Ze=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,et=Object.getOwnPropertyNames,tt=Object.prototype.hasOwnProperty,rt=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of et(n))!tt.call(e,t)&&t!==i&&Ze(e,t,{get:()=>n[t],enumerable:!(r=Ke(n,t))||r.enumerable});return e},nt=(e,n,i)=>(rt(e,n,"default"),i),l={};nt(l,Qe);var it=2*60*1e3,at=class{constructor(e){A(this,"_defaults");A(this,"_idleCheckInterval");A(this,"_lastUsedTime");A(this,"_configChangeListener");A(this,"_worker");A(this,"_client");this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>it&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=l.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},oe;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(oe||(oe={}));var Y;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(Y||(Y={}));var T;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=Y.MAX_VALUE),t===Number.MAX_VALUE&&(t=Y.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){var t=r;return o.objectLiteral(t)&&o.uinteger(t.line)&&o.uinteger(t.character)}e.is=i})(T||(T={}));var _;(function(e){function n(r,t,a,s){if(o.uinteger(r)&&o.uinteger(t)&&o.uinteger(a)&&o.uinteger(s))return{start:T.create(r,t),end:T.create(a,s)};if(T.is(r)&&T.is(t))return{start:r,end:t};throw new Error("Range#create called with invalid arguments["+r+", "+t+", "+a+", "+s+"]")}e.create=n;function i(r){var t=r;return o.objectLiteral(t)&&T.is(t.start)&&T.is(t.end)}e.is=i})(_||(_={}));var te;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){var t=r;return o.defined(t)&&_.is(t.range)&&(o.string(t.uri)||o.undefined(t.uri))}e.is=i})(te||(te={}));var ue;(function(e){function n(r,t,a,s){return{targetUri:r,targetRange:t,targetSelectionRange:a,originSelectionRange:s}}e.create=n;function i(r){var t=r;return o.defined(t)&&_.is(t.targetRange)&&o.string(t.targetUri)&&(_.is(t.targetSelectionRange)||o.undefined(t.targetSelectionRange))&&(_.is(t.originSelectionRange)||o.undefined(t.originSelectionRange))}e.is=i})(ue||(ue={}));var re;(function(e){function n(r,t,a,s){return{red:r,green:t,blue:a,alpha:s}}e.create=n;function i(r){var t=r;return o.numberRange(t.red,0,1)&&o.numberRange(t.green,0,1)&&o.numberRange(t.blue,0,1)&&o.numberRange(t.alpha,0,1)}e.is=i})(re||(re={}));var ce;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){var t=r;return _.is(t.range)&&re.is(t.color)}e.is=i})(ce||(ce={}));var de;(function(e){function n(r,t,a){return{label:r,textEdit:t,additionalTextEdits:a}}e.create=n;function i(r){var t=r;return o.string(t.label)&&(o.undefined(t.textEdit)||L.is(t))&&(o.undefined(t.additionalTextEdits)||o.typedArray(t.additionalTextEdits,L.is))}e.is=i})(de||(de={}));var W;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(W||(W={}));var fe;(function(e){function n(r,t,a,s,u){var c={startLine:r,endLine:t};return o.defined(a)&&(c.startCharacter=a),o.defined(s)&&(c.endCharacter=s),o.defined(u)&&(c.kind=u),c}e.create=n;function i(r){var t=r;return o.uinteger(t.startLine)&&o.uinteger(t.startLine)&&(o.undefined(t.startCharacter)||o.uinteger(t.startCharacter))&&(o.undefined(t.endCharacter)||o.uinteger(t.endCharacter))&&(o.undefined(t.kind)||o.string(t.kind))}e.is=i})(fe||(fe={}));var ne;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){var t=r;return o.defined(t)&&te.is(t.location)&&o.string(t.message)}e.is=i})(ne||(ne={}));var N;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(N||(N={}));var le;(function(e){e.Unnecessary=1,e.Deprecated=2})(le||(le={}));var ge;(function(e){function n(i){var r=i;return r!=null&&o.string(r.href)}e.is=n})(ge||(ge={}));var $;(function(e){function n(r,t,a,s,u,c){var d={range:r,message:t};return o.defined(a)&&(d.severity=a),o.defined(s)&&(d.code=s),o.defined(u)&&(d.source=u),o.defined(c)&&(d.relatedInformation=c),d}e.create=n;function i(r){var t,a=r;return o.defined(a)&&_.is(a.range)&&o.string(a.message)&&(o.number(a.severity)||o.undefined(a.severity))&&(o.integer(a.code)||o.string(a.code)||o.undefined(a.code))&&(o.undefined(a.codeDescription)||o.string((t=a.codeDescription)===null||t===void 0?void 0:t.href))&&(o.string(a.source)||o.undefined(a.source))&&(o.undefined(a.relatedInformation)||o.typedArray(a.relatedInformation,ne.is))}e.is=i})($||($={}));var V;(function(e){function n(r,t){for(var a=[],s=2;s0&&(u.arguments=a),u}e.create=n;function i(r){var t=r;return o.defined(t)&&o.string(t.title)&&o.string(t.command)}e.is=i})(V||(V={}));var L;(function(e){function n(a,s){return{range:a,newText:s}}e.replace=n;function i(a,s){return{range:{start:a,end:a},newText:s}}e.insert=i;function r(a){return{range:a,newText:""}}e.del=r;function t(a){var s=a;return o.objectLiteral(s)&&o.string(s.newText)&&_.is(s.range)}e.is=t})(L||(L={}));var x;(function(e){function n(r,t,a){var s={label:r};return t!==void 0&&(s.needsConfirmation=t),a!==void 0&&(s.description=a),s}e.create=n;function i(r){var t=r;return t!==void 0&&o.objectLiteral(t)&&o.string(t.label)&&(o.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(o.string(t.description)||t.description===void 0)}e.is=i})(x||(x={}));var w;(function(e){function n(i){var r=i;return typeof r=="string"}e.is=n})(w||(w={}));var P;(function(e){function n(a,s,u){return{range:a,newText:s,annotationId:u}}e.replace=n;function i(a,s,u){return{range:{start:a,end:a},newText:s,annotationId:u}}e.insert=i;function r(a,s){return{range:a,newText:"",annotationId:s}}e.del=r;function t(a){var s=a;return L.is(s)&&(x.is(s.annotationId)||w.is(s.annotationId))}e.is=t})(P||(P={}));var G;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){var t=r;return o.defined(t)&&Q.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(G||(G={}));var H;(function(e){function n(r,t,a){var s={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(s.options=t),a!==void 0&&(s.annotationId=a),s}e.create=n;function i(r){var t=r;return t&&t.kind==="create"&&o.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||o.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||o.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||w.is(t.annotationId))}e.is=i})(H||(H={}));var z;(function(e){function n(r,t,a,s){var u={kind:"rename",oldUri:r,newUri:t};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(u.options=a),s!==void 0&&(u.annotationId=s),u}e.create=n;function i(r){var t=r;return t&&t.kind==="rename"&&o.string(t.oldUri)&&o.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||o.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||o.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||w.is(t.annotationId))}e.is=i})(z||(z={}));var B;(function(e){function n(r,t,a){var s={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(s.options=t),a!==void 0&&(s.annotationId=a),s}e.create=n;function i(r){var t=r;return t&&t.kind==="delete"&&o.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||o.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||o.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||w.is(t.annotationId))}e.is=i})(B||(B={}));var ie;(function(e){function n(i){var r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(t){return o.string(t.kind)?H.is(t)||z.is(t)||B.is(t):G.is(t)}))}e.is=n})(ie||(ie={}));var J=function(){function e(n,i){this.edits=n,this.changeAnnotations=i}return e.prototype.insert=function(n,i,r){var t,a;if(r===void 0?t=L.insert(n,i):w.is(r)?(a=r,t=P.insert(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=P.insert(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.replace=function(n,i,r){var t,a;if(r===void 0?t=L.replace(n,i):w.is(r)?(a=r,t=P.replace(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=P.replace(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.delete=function(n,i){var r,t;if(i===void 0?r=L.del(n):w.is(i)?(t=i,r=P.del(n,i)):(this.assertChangeAnnotations(this.changeAnnotations),t=this.changeAnnotations.manage(i),r=P.del(n,t)),this.edits.push(r),t!==void 0)return t},e.prototype.add=function(n){this.edits.push(n)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(n){if(n===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),he=function(){function e(n){this._annotations=n===void 0?Object.create(null):n,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(n,i){var r;if(w.is(n)?r=n:(r=this.nextId(),i=n),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=i,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(n){var i=this;this._textEditChanges=Object.create(null),n!==void 0?(this._workspaceEdit=n,n.documentChanges?(this._changeAnnotations=new he(n.changeAnnotations),n.changeAnnotations=this._changeAnnotations.all(),n.documentChanges.forEach(function(r){if(G.is(r)){var t=new J(r.edits,i._changeAnnotations);i._textEditChanges[r.textDocument.uri]=t}})):n.changes&&Object.keys(n.changes).forEach(function(r){var t=new J(n.changes[r]);i._textEditChanges[r]=t})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(n){if(Q.is(n)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:n.uri,version:n.version},r=this._textEditChanges[i.uri];if(!r){var t=[],a={textDocument:i,edits:t};this._workspaceEdit.documentChanges.push(a),r=new J(t,this._changeAnnotations),this._textEditChanges[i.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[n];if(!r){var t=[];this._workspaceEdit.changes[n]=t,r=new J(t),this._textEditChanges[n]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new he,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;x.is(i)||w.is(i)?t=i:r=i;var a,s;if(t===void 0?a=H.create(n,r):(s=w.is(t)?t:this._changeAnnotations.manage(t),a=H.create(n,r,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s},e.prototype.renameFile=function(n,i,r,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;x.is(r)||w.is(r)?a=r:t=r;var s,u;if(a===void 0?s=z.create(n,i,t):(u=w.is(a)?a:this._changeAnnotations.manage(a),s=z.create(n,i,t,u)),this._workspaceEdit.documentChanges.push(s),u!==void 0)return u},e.prototype.deleteFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;x.is(i)||w.is(i)?t=i:r=i;var a,s;if(t===void 0?a=B.create(n,r):(s=w.is(t)?t:this._changeAnnotations.manage(t),a=B.create(n,r,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s},e})();var ve;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){var t=r;return o.defined(t)&&o.string(t.uri)}e.is=i})(ve||(ve={}));var pe;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return o.defined(t)&&o.string(t.uri)&&o.integer(t.version)}e.is=i})(pe||(pe={}));var Q;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return o.defined(t)&&o.string(t.uri)&&(t.version===null||o.integer(t.version))}e.is=i})(Q||(Q={}));var me;(function(e){function n(r,t,a,s){return{uri:r,languageId:t,version:a,text:s}}e.create=n;function i(r){var t=r;return o.defined(t)&&o.string(t.uri)&&o.string(t.languageId)&&o.integer(t.version)&&o.string(t.text)}e.is=i})(me||(me={}));var q;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(q||(q={}));(function(e){function n(i){var r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(q||(q={}));var ae;(function(e){function n(i){var r=i;return o.objectLiteral(i)&&q.is(r.kind)&&o.string(r.value)}e.is=n})(ae||(ae={}));var p;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(p||(p={}));var se;(function(e){e.PlainText=1,e.Snippet=2})(se||(se={}));var _e;(function(e){e.Deprecated=1})(_e||(_e={}));var ke;(function(e){function n(r,t,a){return{newText:r,insert:t,replace:a}}e.create=n;function i(r){var t=r;return t&&o.string(t.newText)&&_.is(t.insert)&&_.is(t.replace)}e.is=i})(ke||(ke={}));var we;(function(e){e.asIs=1,e.adjustIndentation=2})(we||(we={}));var be;(function(e){function n(i){return{label:i}}e.create=n})(be||(be={}));var Ce;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(Ce||(Ce={}));var Z;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){var t=r;return o.string(t)||o.objectLiteral(t)&&o.string(t.language)&&o.string(t.value)}e.is=i})(Z||(Z={}));var Ee;(function(e){function n(i){var r=i;return!!r&&o.objectLiteral(r)&&(ae.is(r.contents)||Z.is(r.contents)||o.typedArray(r.contents,Z.is))&&(i.range===void 0||_.is(i.range))}e.is=n})(Ee||(Ee={}));var Ae;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(Ae||(Ae={}));var ye;(function(e){function n(i,r){for(var t=[],a=2;a=0;v--){var g=c[v],b=a.offsetAt(g.range.start),h=a.offsetAt(g.range.end);if(h<=d)u=u.substring(0,b)+g.newText+u.substring(h,u.length);else throw new Error("Overlapping edit");d=b}return u}e.applyEdits=r;function t(a,s){if(a.length<=1)return a;var u=a.length/2|0,c=a.slice(0,u),d=a.slice(u);t(c,s),t(d,s);for(var v=0,g=0,b=0;vn in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var A=(e,n,i)=>(Ge(e,typeof n!="symbol"?n+"":n,i),i);import{m as Qe}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BNZRjtJE.js";import"./index-R8dLcqG_.js";var Ze=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,et=Object.getOwnPropertyNames,tt=Object.prototype.hasOwnProperty,rt=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of et(n))!tt.call(e,t)&&t!==i&&Ze(e,t,{get:()=>n[t],enumerable:!(r=Ke(n,t))||r.enumerable});return e},nt=(e,n,i)=>(rt(e,n,"default"),i),l={};nt(l,Qe);var it=2*60*1e3,at=class{constructor(e){A(this,"_defaults");A(this,"_idleCheckInterval");A(this,"_lastUsedTime");A(this,"_configChangeListener");A(this,"_worker");A(this,"_client");this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>it&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=l.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},oe;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(oe||(oe={}));var Y;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(Y||(Y={}));var T;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=Y.MAX_VALUE),t===Number.MAX_VALUE&&(t=Y.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){var t=r;return o.objectLiteral(t)&&o.uinteger(t.line)&&o.uinteger(t.character)}e.is=i})(T||(T={}));var _;(function(e){function n(r,t,a,s){if(o.uinteger(r)&&o.uinteger(t)&&o.uinteger(a)&&o.uinteger(s))return{start:T.create(r,t),end:T.create(a,s)};if(T.is(r)&&T.is(t))return{start:r,end:t};throw new Error("Range#create called with invalid arguments["+r+", "+t+", "+a+", "+s+"]")}e.create=n;function i(r){var t=r;return o.objectLiteral(t)&&T.is(t.start)&&T.is(t.end)}e.is=i})(_||(_={}));var te;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){var t=r;return o.defined(t)&&_.is(t.range)&&(o.string(t.uri)||o.undefined(t.uri))}e.is=i})(te||(te={}));var ue;(function(e){function n(r,t,a,s){return{targetUri:r,targetRange:t,targetSelectionRange:a,originSelectionRange:s}}e.create=n;function i(r){var t=r;return o.defined(t)&&_.is(t.targetRange)&&o.string(t.targetUri)&&(_.is(t.targetSelectionRange)||o.undefined(t.targetSelectionRange))&&(_.is(t.originSelectionRange)||o.undefined(t.originSelectionRange))}e.is=i})(ue||(ue={}));var re;(function(e){function n(r,t,a,s){return{red:r,green:t,blue:a,alpha:s}}e.create=n;function i(r){var t=r;return o.numberRange(t.red,0,1)&&o.numberRange(t.green,0,1)&&o.numberRange(t.blue,0,1)&&o.numberRange(t.alpha,0,1)}e.is=i})(re||(re={}));var ce;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){var t=r;return _.is(t.range)&&re.is(t.color)}e.is=i})(ce||(ce={}));var de;(function(e){function n(r,t,a){return{label:r,textEdit:t,additionalTextEdits:a}}e.create=n;function i(r){var t=r;return o.string(t.label)&&(o.undefined(t.textEdit)||L.is(t))&&(o.undefined(t.additionalTextEdits)||o.typedArray(t.additionalTextEdits,L.is))}e.is=i})(de||(de={}));var W;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(W||(W={}));var fe;(function(e){function n(r,t,a,s,u){var c={startLine:r,endLine:t};return o.defined(a)&&(c.startCharacter=a),o.defined(s)&&(c.endCharacter=s),o.defined(u)&&(c.kind=u),c}e.create=n;function i(r){var t=r;return o.uinteger(t.startLine)&&o.uinteger(t.startLine)&&(o.undefined(t.startCharacter)||o.uinteger(t.startCharacter))&&(o.undefined(t.endCharacter)||o.uinteger(t.endCharacter))&&(o.undefined(t.kind)||o.string(t.kind))}e.is=i})(fe||(fe={}));var ne;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){var t=r;return o.defined(t)&&te.is(t.location)&&o.string(t.message)}e.is=i})(ne||(ne={}));var N;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(N||(N={}));var le;(function(e){e.Unnecessary=1,e.Deprecated=2})(le||(le={}));var ge;(function(e){function n(i){var r=i;return r!=null&&o.string(r.href)}e.is=n})(ge||(ge={}));var $;(function(e){function n(r,t,a,s,u,c){var d={range:r,message:t};return o.defined(a)&&(d.severity=a),o.defined(s)&&(d.code=s),o.defined(u)&&(d.source=u),o.defined(c)&&(d.relatedInformation=c),d}e.create=n;function i(r){var t,a=r;return o.defined(a)&&_.is(a.range)&&o.string(a.message)&&(o.number(a.severity)||o.undefined(a.severity))&&(o.integer(a.code)||o.string(a.code)||o.undefined(a.code))&&(o.undefined(a.codeDescription)||o.string((t=a.codeDescription)===null||t===void 0?void 0:t.href))&&(o.string(a.source)||o.undefined(a.source))&&(o.undefined(a.relatedInformation)||o.typedArray(a.relatedInformation,ne.is))}e.is=i})($||($={}));var V;(function(e){function n(r,t){for(var a=[],s=2;s0&&(u.arguments=a),u}e.create=n;function i(r){var t=r;return o.defined(t)&&o.string(t.title)&&o.string(t.command)}e.is=i})(V||(V={}));var L;(function(e){function n(a,s){return{range:a,newText:s}}e.replace=n;function i(a,s){return{range:{start:a,end:a},newText:s}}e.insert=i;function r(a){return{range:a,newText:""}}e.del=r;function t(a){var s=a;return o.objectLiteral(s)&&o.string(s.newText)&&_.is(s.range)}e.is=t})(L||(L={}));var x;(function(e){function n(r,t,a){var s={label:r};return t!==void 0&&(s.needsConfirmation=t),a!==void 0&&(s.description=a),s}e.create=n;function i(r){var t=r;return t!==void 0&&o.objectLiteral(t)&&o.string(t.label)&&(o.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(o.string(t.description)||t.description===void 0)}e.is=i})(x||(x={}));var w;(function(e){function n(i){var r=i;return typeof r=="string"}e.is=n})(w||(w={}));var P;(function(e){function n(a,s,u){return{range:a,newText:s,annotationId:u}}e.replace=n;function i(a,s,u){return{range:{start:a,end:a},newText:s,annotationId:u}}e.insert=i;function r(a,s){return{range:a,newText:"",annotationId:s}}e.del=r;function t(a){var s=a;return L.is(s)&&(x.is(s.annotationId)||w.is(s.annotationId))}e.is=t})(P||(P={}));var G;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){var t=r;return o.defined(t)&&Q.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(G||(G={}));var H;(function(e){function n(r,t,a){var s={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(s.options=t),a!==void 0&&(s.annotationId=a),s}e.create=n;function i(r){var t=r;return t&&t.kind==="create"&&o.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||o.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||o.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||w.is(t.annotationId))}e.is=i})(H||(H={}));var z;(function(e){function n(r,t,a,s){var u={kind:"rename",oldUri:r,newUri:t};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(u.options=a),s!==void 0&&(u.annotationId=s),u}e.create=n;function i(r){var t=r;return t&&t.kind==="rename"&&o.string(t.oldUri)&&o.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||o.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||o.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||w.is(t.annotationId))}e.is=i})(z||(z={}));var B;(function(e){function n(r,t,a){var s={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(s.options=t),a!==void 0&&(s.annotationId=a),s}e.create=n;function i(r){var t=r;return t&&t.kind==="delete"&&o.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||o.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||o.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||w.is(t.annotationId))}e.is=i})(B||(B={}));var ie;(function(e){function n(i){var r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(t){return o.string(t.kind)?H.is(t)||z.is(t)||B.is(t):G.is(t)}))}e.is=n})(ie||(ie={}));var J=function(){function e(n,i){this.edits=n,this.changeAnnotations=i}return e.prototype.insert=function(n,i,r){var t,a;if(r===void 0?t=L.insert(n,i):w.is(r)?(a=r,t=P.insert(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=P.insert(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.replace=function(n,i,r){var t,a;if(r===void 0?t=L.replace(n,i):w.is(r)?(a=r,t=P.replace(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=P.replace(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.delete=function(n,i){var r,t;if(i===void 0?r=L.del(n):w.is(i)?(t=i,r=P.del(n,i)):(this.assertChangeAnnotations(this.changeAnnotations),t=this.changeAnnotations.manage(i),r=P.del(n,t)),this.edits.push(r),t!==void 0)return t},e.prototype.add=function(n){this.edits.push(n)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(n){if(n===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),he=function(){function e(n){this._annotations=n===void 0?Object.create(null):n,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(n,i){var r;if(w.is(n)?r=n:(r=this.nextId(),i=n),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=i,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(n){var i=this;this._textEditChanges=Object.create(null),n!==void 0?(this._workspaceEdit=n,n.documentChanges?(this._changeAnnotations=new he(n.changeAnnotations),n.changeAnnotations=this._changeAnnotations.all(),n.documentChanges.forEach(function(r){if(G.is(r)){var t=new J(r.edits,i._changeAnnotations);i._textEditChanges[r.textDocument.uri]=t}})):n.changes&&Object.keys(n.changes).forEach(function(r){var t=new J(n.changes[r]);i._textEditChanges[r]=t})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(n){if(Q.is(n)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:n.uri,version:n.version},r=this._textEditChanges[i.uri];if(!r){var t=[],a={textDocument:i,edits:t};this._workspaceEdit.documentChanges.push(a),r=new J(t,this._changeAnnotations),this._textEditChanges[i.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[n];if(!r){var t=[];this._workspaceEdit.changes[n]=t,r=new J(t),this._textEditChanges[n]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new he,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;x.is(i)||w.is(i)?t=i:r=i;var a,s;if(t===void 0?a=H.create(n,r):(s=w.is(t)?t:this._changeAnnotations.manage(t),a=H.create(n,r,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s},e.prototype.renameFile=function(n,i,r,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;x.is(r)||w.is(r)?a=r:t=r;var s,u;if(a===void 0?s=z.create(n,i,t):(u=w.is(a)?a:this._changeAnnotations.manage(a),s=z.create(n,i,t,u)),this._workspaceEdit.documentChanges.push(s),u!==void 0)return u},e.prototype.deleteFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;x.is(i)||w.is(i)?t=i:r=i;var a,s;if(t===void 0?a=B.create(n,r):(s=w.is(t)?t:this._changeAnnotations.manage(t),a=B.create(n,r,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s},e})();var ve;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){var t=r;return o.defined(t)&&o.string(t.uri)}e.is=i})(ve||(ve={}));var pe;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return o.defined(t)&&o.string(t.uri)&&o.integer(t.version)}e.is=i})(pe||(pe={}));var Q;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return o.defined(t)&&o.string(t.uri)&&(t.version===null||o.integer(t.version))}e.is=i})(Q||(Q={}));var me;(function(e){function n(r,t,a,s){return{uri:r,languageId:t,version:a,text:s}}e.create=n;function i(r){var t=r;return o.defined(t)&&o.string(t.uri)&&o.string(t.languageId)&&o.integer(t.version)&&o.string(t.text)}e.is=i})(me||(me={}));var q;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(q||(q={}));(function(e){function n(i){var r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(q||(q={}));var ae;(function(e){function n(i){var r=i;return o.objectLiteral(i)&&q.is(r.kind)&&o.string(r.value)}e.is=n})(ae||(ae={}));var p;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(p||(p={}));var se;(function(e){e.PlainText=1,e.Snippet=2})(se||(se={}));var _e;(function(e){e.Deprecated=1})(_e||(_e={}));var ke;(function(e){function n(r,t,a){return{newText:r,insert:t,replace:a}}e.create=n;function i(r){var t=r;return t&&o.string(t.newText)&&_.is(t.insert)&&_.is(t.replace)}e.is=i})(ke||(ke={}));var we;(function(e){e.asIs=1,e.adjustIndentation=2})(we||(we={}));var be;(function(e){function n(i){return{label:i}}e.create=n})(be||(be={}));var Ce;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(Ce||(Ce={}));var Z;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){var t=r;return o.string(t)||o.objectLiteral(t)&&o.string(t.language)&&o.string(t.value)}e.is=i})(Z||(Z={}));var Ee;(function(e){function n(i){var r=i;return!!r&&o.objectLiteral(r)&&(ae.is(r.contents)||Z.is(r.contents)||o.typedArray(r.contents,Z.is))&&(i.range===void 0||_.is(i.range))}e.is=n})(Ee||(Ee={}));var Ae;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(Ae||(Ae={}));var ye;(function(e){function n(i,r){for(var t=[],a=2;a=0;v--){var g=c[v],b=a.offsetAt(g.range.start),h=a.offsetAt(g.range.end);if(h<=d)u=u.substring(0,b)+g.newText+u.substring(h,u.length);else throw new Error("Overlapping edit");d=b}return u}e.applyEdits=r;function t(a,s){if(a.length<=1)return a;var u=a.length/2|0,c=a.slice(0,u),d=a.slice(u);t(c,s),t(d,s);for(var v=0,g=0,b=0;v0&&n.push(i.length),this._lineOffsets=n}return this._lineOffsets},e.prototype.positionAt=function(n){n=Math.max(Math.min(n,this._content.length),0);var i=this.getLineOffsets(),r=0,t=i.length;if(t===0)return T.create(0,n);for(;rn?t=a:r=a+1}var s=r-1;return T.create(s,n-i[s])},e.prototype.offsetAt=function(n){var i=this.getLineOffsets();if(n.line>=i.length)return this._content.length;if(n.line<0)return 0;var r=i[n.line],t=n.line+1"u"}e.undefined=r;function t(h){return h===!0||h===!1}e.boolean=t;function a(h){return n.call(h)==="[object String]"}e.string=a;function s(h){return n.call(h)==="[object Number]"}e.number=s;function u(h,I,R){return n.call(h)==="[object Number]"&&I<=h&&h<=R}e.numberRange=u;function c(h){return n.call(h)==="[object Number]"&&-2147483648<=h&&h<=2147483647}e.integer=c;function d(h){return n.call(h)==="[object Number]"&&0<=h&&h<=2147483647}e.uinteger=d;function v(h){return n.call(h)==="[object Function]"}e.func=v;function g(h){return h!==null&&typeof h=="object"}e.objectLiteral=g;function b(h,I){return Array.isArray(h)&&h.every(I)}e.typedArray=b})(o||(o={}));var ot=class{constructor(e,n,i){A(this,"_disposables",[]);A(this,"_listener",Object.create(null));this._languageId=e,this._worker=n;const r=a=>{let s=a.getLanguageId();if(s!==this._languageId)return;let u;this._listener[a.uri.toString()]=a.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(a.uri,s),500)}),this._doValidate(a.uri,s)},t=a=>{l.editor.setModelMarkers(a,this._languageId,[]);let s=a.uri.toString(),u=this._listener[s];u&&(u.dispose(),delete this._listener[s])};this._disposables.push(l.editor.onDidCreateModel(r)),this._disposables.push(l.editor.onWillDisposeModel(t)),this._disposables.push(l.editor.onDidChangeModelLanguage(a=>{t(a.model),r(a.model)})),this._disposables.push(i(a=>{l.editor.getModels().forEach(s=>{s.getLanguageId()===this._languageId&&(t(s),r(s))})})),this._disposables.push({dispose:()=>{l.editor.getModels().forEach(t);for(let a in this._listener)this._listener[a].dispose()}}),l.editor.getModels().forEach(r)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,n){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const r=i.map(a=>ct(e,a));let t=l.editor.getModel(e);t&&t.getLanguageId()===n&&l.editor.setModelMarkers(t,n,r)}).then(void 0,i=>{console.error(i)})}};function ut(e){switch(e){case N.Error:return l.MarkerSeverity.Error;case N.Warning:return l.MarkerSeverity.Warning;case N.Information:return l.MarkerSeverity.Info;case N.Hint:return l.MarkerSeverity.Hint;default:return l.MarkerSeverity.Info}}function ct(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:ut(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var dt=class{constructor(e,n){this._worker=e,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doComplete(t.toString(),M(n))).then(a=>{if(!a)return;const s=e.getWordUntilPosition(n),u=new l.Range(n.lineNumber,s.startColumn,n.lineNumber,s.endColumn),c=a.items.map(d=>{const v={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:gt(d.command),range:u,kind:lt(d.kind)};return d.textEdit&&(ft(d.textEdit)?v.range={insert:y(d.textEdit.insert),replace:y(d.textEdit.replace)}:v.range=y(d.textEdit.range),v.insertText=d.textEdit.newText),d.additionalTextEdits&&(v.additionalTextEdits=d.additionalTextEdits.map(X)),d.insertTextFormat===se.Snippet&&(v.insertTextRules=l.languages.CompletionItemInsertTextRule.InsertAsSnippet),v});return{isIncomplete:a.isIncomplete,suggestions:c}})}};function M(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function ze(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function y(e){if(e)return new l.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function ft(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function lt(e){const n=l.languages.CompletionItemKind;switch(e){case p.Text:return n.Text;case p.Method:return n.Method;case p.Function:return n.Function;case p.Constructor:return n.Constructor;case p.Field:return n.Field;case p.Variable:return n.Variable;case p.Class:return n.Class;case p.Interface:return n.Interface;case p.Module:return n.Module;case p.Property:return n.Property;case p.Unit:return n.Unit;case p.Value:return n.Value;case p.Enum:return n.Enum;case p.Keyword:return n.Keyword;case p.Snippet:return n.Snippet;case p.Color:return n.Color;case p.File:return n.File;case p.Reference:return n.Reference}return n.Property}function X(e){if(e)return{range:y(e.range),text:e.newText}}function gt(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var ht=class{constructor(e){this._worker=e}provideHover(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.doHover(r.toString(),M(n))).then(t=>{if(t)return{range:y(t.range),contents:pt(t.contents)}})}};function vt(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function Fe(e){return typeof e=="string"?{value:e}:vt(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+` `+e.value+"\n```\n"}}function pt(e){if(e)return Array.isArray(e)?e.map(Fe):[Fe(e)]}var qt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),M(n))).then(t=>{if(t)return t.map(a=>({range:y(a.range),kind:mt(a.kind)}))})}};function mt(e){switch(e){case U.Read:return l.languages.DocumentHighlightKind.Read;case U.Write:return l.languages.DocumentHighlightKind.Write;case U.Text:return l.languages.DocumentHighlightKind.Text}return l.languages.DocumentHighlightKind.Text}var Xt=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),M(n))).then(t=>{if(t)return[Be(t)]})}};function Be(e){return{uri:l.Uri.parse(e.uri),range:y(e.range)}}var Jt=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.findReferences(t.toString(),M(n))).then(a=>{if(a)return a.map(Be)})}},Yt=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doRename(t.toString(),M(n),i)).then(a=>_t(a))}};function _t(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=l.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:y(t.range),text:t.newText}})}return{edits:n}}var kt=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(r)return r.map(t=>({name:t.name,detail:"",containerName:t.containerName,kind:wt(t.kind),range:y(t.location.range),selectionRange:y(t.location.range),tags:[]}))})}};function wt(e){let n=l.languages.SymbolKind;switch(e){case m.File:return n.Array;case m.Module:return n.Module;case m.Namespace:return n.Namespace;case m.Package:return n.Package;case m.Class:return n.Class;case m.Method:return n.Method;case m.Property:return n.Property;case m.Field:return n.Field;case m.Constructor:return n.Constructor;case m.Enum:return n.Enum;case m.Interface:return n.Interface;case m.Function:return n.Function;case m.Variable:return n.Variable;case m.Constant:return n.Constant;case m.String:return n.String;case m.Number:return n.Number;case m.Boolean:return n.Boolean;case m.Array:return n.Array}return n.Function}var $t=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(r)return{links:r.map(t=>({range:y(t.range),url:t.target}))}})}},bt=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,qe(n)).then(a=>{if(!(!a||a.length===0))return a.map(X)}))}},Ct=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.format(t.toString(),ze(n),qe(i)).then(s=>{if(!(!s||s.length===0))return s.map(X)}))}};function qe(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Et=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(r)return r.map(t=>({color:t.color,range:y(t.range)}))})}provideColorPresentations(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,ze(n.range))).then(t=>{if(t)return t.map(a=>{let s={label:a.label};return a.textEdit&&(s.textEdit=X(a.textEdit)),a.additionalTextEdits&&(s.additionalTextEdits=a.additionalTextEdits.map(X)),s})})}},At=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(t)return t.map(a=>{const s={start:a.startLine+1,end:a.endLine+1};return typeof a.kind<"u"&&(s.kind=yt(a.kind)),s})})}};function yt(e){switch(e){case W.Comment:return l.languages.FoldingRangeKind.Comment;case W.Imports:return l.languages.FoldingRangeKind.Imports;case W.Region:return l.languages.FoldingRangeKind.Region}}var St=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(M))).then(t=>{if(t)return t.map(a=>{const s=[];for(;a;)s.push({range:y(a.range)}),a=a.parent;return s})})}};function It(e,n){n===void 0&&(n=!1);var i=e.length,r=0,t="",a=0,s=16,u=0,c=0,d=0,v=0,g=0;function b(f,C){for(var S=0,E=0;S=48&&k<=57)E=E*16+k-48;else if(k>=65&&k<=70)E=E*16+k-65+10;else if(k>=97&&k<=102)E=E*16+k-97+10;else break;r++,S++}return S=i){f+=e.substring(C,r),g=2;break}var S=e.charCodeAt(r);if(S===34){f+=e.substring(C,r),r++;break}if(S===92){if(f+=e.substring(C,r),r++,r>=i){g=2;break}var E=e.charCodeAt(r++);switch(E){case 34:f+='"';break;case 92:f+="\\";break;case 47:f+="/";break;case 98:f+="\b";break;case 102:f+="\f";break;case 110:f+=` diff --git a/app/src/main/resources/web/assets/key-events-C5OjC_dP.js b/app/src/main/resources/web/assets/key-events-BNCM8SMB.js similarity index 96% rename from app/src/main/resources/web/assets/key-events-C5OjC_dP.js rename to app/src/main/resources/web/assets/key-events-BNCM8SMB.js index af078545..3536f1be 100644 --- a/app/src/main/resources/web/assets/key-events-C5OjC_dP.js +++ b/app/src/main/resources/web/assets/key-events-BNCM8SMB.js @@ -1 +1 @@ -import{h as y,aH as k,g as K,C,Z as N,c7 as S}from"./index-BzaaAwnX.js";const D=r=>{const i=y(!1),c=y(!1),t=y(0),e=y([]),a=y(null),n=y([]),l=y(!1),v=s=>{s?i.value=r.value.every(u=>e.value.includes(u.id)):(i.value=!1,c.value=!1)},f=s=>{const u=Math.min(a.value,s),o=Math.max(a.value,s),g=r.value[a.value].id;return r.value.slice(u,o+1).map(m=>m.id).filter(m=>m!==g)},h=(s,u)=>{if(a.value!==null&&a.value!==u&&n.value.length>0){if(l.value)for(const o of n.value)e.value.includes(o)||e.value.push(o);else e.value=e.value.filter(o=>!n.value.includes(o));n.value=[],a.value=u,l.value=e.value.includes(s.id),v(l)}else d(!e.value.includes(s.id),s,u)},d=(s,u,o)=>{s?e.value.push(u.id):e.value=e.value.filter(g=>g!==u.id),a.value=o,l.value=s,v(s)},p=()=>{i.value=!0,e.value=r.value.map(s=>s.id)};return{realAllChecked:c,allChecked:i,toggleAllChecked:s=>{s.target.checked?p():(i.value=!1,c.value=!1,e.value=[])},selectAll:p,allCheckedAlertVisible:k(()=>i.value&&!c.value&&e.value.length{c.value=!0},clearSelection:()=>{i.value=!1,c.value=!1,e.value=[],a.value=null,l.value=!1,n.value=[]},selectedIds:e,total:t,checked:k(()=>e.value.length>0),shouldSelect:l,shiftEffectingIds:n,toggleSelect:(s,u,o)=>{s.shiftKey?h(u,o):d(!e.value.includes(u.id),u,o)},handleItemClick(s,u,o,g=()=>{}){if(s.target.nodeName==="MD-CHECKBOX")return;const m=window.getSelection();if(!(m&&m.toString())){if(e.value.length===0){g(o);return}s.shiftKey?h(u,o):d(!e.value.includes(u.id),u,o)}},handleMouseOver(s,u){s.shiftKey?a.value!==null&&a.value!==u&&(n.value=f(u)):n.value=[]}}},B=(r,i)=>{const{t:c}=K();return{deleteItems:(t,e,a,n)=>{let l=n;if(!e){if(t.length===0){C(c("select_first"),"error");return}l=`ids:${t.join(",")}`}N(S,{gql:r,count:e?a:t.length,variables:()=>({query:l}),done:i})}}};function E(){const r=document.activeElement;return r&&(r.tagName==="INPUT"||r.tagName==="TEXTAREA"||r.tagName==="SELECT"||r.tagName==="MD-OUTLINED-TEXT-FIELD")}const P=(r,i,c,t,e,a,n)=>({keyDown:l=>{var h,d;if(document.querySelector("md-dialog[open]")||document.getElementsByClassName("lightbox").length>0)return;const v=(h=document.getElementsByClassName("scroll-content"))==null?void 0:h[0];l.shiftKey?v==null||v.style.setProperty("user-select","none"):v==null||v.style.removeProperty("user-select");const f=(d=document.getElementsByClassName("scroller"))==null?void 0:d[0];if(l.shiftKey?f==null||f.style.setProperty("user-select","none"):f==null||f.style.removeProperty("user-select"),(l.ctrlKey||l.metaKey)&&l.key==="a"&&!E()){l.preventDefault(),t();return}if(l.key==="Escape")e();else if(l.key==="ArrowLeft")c.value>1&&a(c.value-1);else if(l.key==="ArrowRight"){const p=Math.ceil(r.value/i);c.value{var v;const l=(v=document.getElementsByClassName("scroll-content"))==null?void 0:v[0];l==null||l.style.removeProperty("user-select")}}),A=(r,i,c)=>({keyDown:t=>{var n,l;if(document.querySelector("md-dialog[open]"))return;const e=(n=document.getElementsByClassName("scroll-content"))==null?void 0:n[0];t.shiftKey?e==null||e.style.setProperty("user-select","none"):e==null||e.style.removeProperty("user-select");const a=(l=document.getElementsByClassName("scroller"))==null?void 0:l[0];if(t.shiftKey?a==null||a.style.setProperty("user-select","none"):a==null||a.style.removeProperty("user-select"),(t.ctrlKey||t.metaKey)&&t.key==="a"&&!E()){t.preventDefault(),r();return}t.key==="Escape"?i():(t.key==="Delete"||(t.ctrlKey||t.metaKey)&&t.key==="Backspace")&&c()},keyUp:()=>{var e;const t=(e=document.getElementsByClassName("scroll-content"))==null?void 0:e[0];t==null||t.style.removeProperty("user-select")}});export{P as a,B as b,A as c,D as u}; +import{h as y,aH as k,g as K,C,Z as N,c7 as S}from"./index-R8dLcqG_.js";const D=r=>{const i=y(!1),c=y(!1),t=y(0),e=y([]),a=y(null),n=y([]),l=y(!1),v=s=>{s?i.value=r.value.every(u=>e.value.includes(u.id)):(i.value=!1,c.value=!1)},f=s=>{const u=Math.min(a.value,s),o=Math.max(a.value,s),g=r.value[a.value].id;return r.value.slice(u,o+1).map(m=>m.id).filter(m=>m!==g)},h=(s,u)=>{if(a.value!==null&&a.value!==u&&n.value.length>0){if(l.value)for(const o of n.value)e.value.includes(o)||e.value.push(o);else e.value=e.value.filter(o=>!n.value.includes(o));n.value=[],a.value=u,l.value=e.value.includes(s.id),v(l)}else d(!e.value.includes(s.id),s,u)},d=(s,u,o)=>{s?e.value.push(u.id):e.value=e.value.filter(g=>g!==u.id),a.value=o,l.value=s,v(s)},p=()=>{i.value=!0,e.value=r.value.map(s=>s.id)};return{realAllChecked:c,allChecked:i,toggleAllChecked:s=>{s.target.checked?p():(i.value=!1,c.value=!1,e.value=[])},selectAll:p,allCheckedAlertVisible:k(()=>i.value&&!c.value&&e.value.length{c.value=!0},clearSelection:()=>{i.value=!1,c.value=!1,e.value=[],a.value=null,l.value=!1,n.value=[]},selectedIds:e,total:t,checked:k(()=>e.value.length>0),shouldSelect:l,shiftEffectingIds:n,toggleSelect:(s,u,o)=>{s.shiftKey?h(u,o):d(!e.value.includes(u.id),u,o)},handleItemClick(s,u,o,g=()=>{}){if(s.target.nodeName==="MD-CHECKBOX")return;const m=window.getSelection();if(!(m&&m.toString())){if(e.value.length===0){g(o);return}s.shiftKey?h(u,o):d(!e.value.includes(u.id),u,o)}},handleMouseOver(s,u){s.shiftKey?a.value!==null&&a.value!==u&&(n.value=f(u)):n.value=[]}}},B=(r,i)=>{const{t:c}=K();return{deleteItems:(t,e,a,n)=>{let l=n;if(!e){if(t.length===0){C(c("select_first"),"error");return}l=`ids:${t.join(",")}`}N(S,{gql:r,count:e?a:t.length,variables:()=>({query:l}),done:i})}}};function E(){const r=document.activeElement;return r&&(r.tagName==="INPUT"||r.tagName==="TEXTAREA"||r.tagName==="SELECT"||r.tagName==="MD-OUTLINED-TEXT-FIELD")}const P=(r,i,c,t,e,a,n)=>({keyDown:l=>{var h,d;if(document.querySelector("md-dialog[open]")||document.getElementsByClassName("lightbox").length>0)return;const v=(h=document.getElementsByClassName("scroll-content"))==null?void 0:h[0];l.shiftKey?v==null||v.style.setProperty("user-select","none"):v==null||v.style.removeProperty("user-select");const f=(d=document.getElementsByClassName("scroller"))==null?void 0:d[0];if(l.shiftKey?f==null||f.style.setProperty("user-select","none"):f==null||f.style.removeProperty("user-select"),(l.ctrlKey||l.metaKey)&&l.key==="a"&&!E()){l.preventDefault(),t();return}if(l.key==="Escape")e();else if(l.key==="ArrowLeft")c.value>1&&a(c.value-1);else if(l.key==="ArrowRight"){const p=Math.ceil(r.value/i);c.value{var v;const l=(v=document.getElementsByClassName("scroll-content"))==null?void 0:v[0];l==null||l.style.removeProperty("user-select")}}),A=(r,i,c)=>({keyDown:t=>{var n,l;if(document.querySelector("md-dialog[open]"))return;const e=(n=document.getElementsByClassName("scroll-content"))==null?void 0:n[0];t.shiftKey?e==null||e.style.setProperty("user-select","none"):e==null||e.style.removeProperty("user-select");const a=(l=document.getElementsByClassName("scroller"))==null?void 0:l[0];if(t.shiftKey?a==null||a.style.setProperty("user-select","none"):a==null||a.style.removeProperty("user-select"),(t.ctrlKey||t.metaKey)&&t.key==="a"&&!E()){t.preventDefault(),r();return}t.key==="Escape"?i():(t.key==="Delete"||(t.ctrlKey||t.metaKey)&&t.key==="Backspace")&&c()},keyUp:()=>{var e;const t=(e=document.getElementsByClassName("scroll-content"))==null?void 0:e[0];t==null||t.style.removeProperty("user-select")}});export{P as a,B as b,A as c,D as u}; diff --git a/app/src/main/resources/web/assets/liquid-BtfrggTR.js b/app/src/main/resources/web/assets/liquid-D3wQ_0c-.js similarity index 98% rename from app/src/main/resources/web/assets/liquid-BtfrggTR.js rename to app/src/main/resources/web/assets/liquid-D3wQ_0c-.js index df2ca831..032c9bac 100644 --- a/app/src/main/resources/web/assets/liquid-BtfrggTR.js +++ b/app/src/main/resources/web/assets/liquid-D3wQ_0c-.js @@ -1 +1 @@ -import{m as l}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BaOpzcW2.js";import"./index-BzaaAwnX.js";var d=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,m=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of c(e))!u.call(t,i)&&i!==r&&d(t,i,{get:()=>e[i],enumerable:!(n=s(e,i))||n.enumerable});return t},p=(t,e,r)=>(m(t,e,"default"),r),o={};p(o,l);var a=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],_={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[[""],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${a.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:o.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${a.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:o.languages.IndentAction.Indent}}]},b={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[//,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}};export{_ as conf,b as language}; +import{m as l}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BNZRjtJE.js";import"./index-R8dLcqG_.js";var d=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,m=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of c(e))!u.call(t,i)&&i!==r&&d(t,i,{get:()=>e[i],enumerable:!(n=s(e,i))||n.enumerable});return t},p=(t,e,r)=>(m(t,e,"default"),r),o={};p(o,l);var a=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],_={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[[""],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${a.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:o.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${a.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:o.languages.IndentAction.Indent}}]},b={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[//,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}};export{_ as conf,b as language}; diff --git a/app/src/main/resources/web/assets/markdown-q_fHGBEX.js b/app/src/main/resources/web/assets/markdown-C_We2h-B.js similarity index 99% rename from app/src/main/resources/web/assets/markdown-q_fHGBEX.js rename to app/src/main/resources/web/assets/markdown-C_We2h-B.js index 9c0daf73..6540718d 100644 --- a/app/src/main/resources/web/assets/markdown-q_fHGBEX.js +++ b/app/src/main/resources/web/assets/markdown-C_We2h-B.js @@ -1,4 +1,4 @@ -import{cp as Pr,cq as le,ak as Or}from"./index-BzaaAwnX.js";var B={};const Vr="Á",$r="á",Ur="Ă",Gr="ă",Hr="∾",jr="∿",Zr="∾̳",Wr="Â",Xr="â",Jr="´",Qr="А",Yr="а",Kr="Æ",en="æ",tn="⁡",un="𝔄",rn="𝔞",nn="À",sn="à",on="ℵ",an="ℵ",cn="Α",ln="α",fn="Ā",dn="ā",hn="⨿",pn="&",bn="&",mn="⩕",gn="⩓",vn="∧",xn="⩜",yn="⩘",kn="⩚",wn="∠",_n="⦤",An="∠",Sn="⦨",En="⦩",qn="⦪",Cn="⦫",Tn="⦬",Dn="⦭",In="⦮",Nn="⦯",zn="∡",Rn="∟",Ln="⊾",Mn="⦝",Fn="∢",Bn="Å",Pn="⍼",On="Ą",Vn="ą",$n="𝔸",Un="𝕒",Gn="⩯",Hn="≈",jn="⩰",Zn="≊",Wn="≋",Xn="'",Jn="⁡",Qn="≈",Yn="≊",Kn="Å",es="å",ts="𝒜",us="𝒶",rs="≔",ns="*",ss="≈",is="≍",os="Ã",as="ã",cs="Ä",ls="ä",fs="∳",ds="⨑",hs="≌",ps="϶",bs="‵",ms="∽",gs="⋍",vs="∖",xs="⫧",ys="⊽",ks="⌅",ws="⌆",_s="⌅",As="⎵",Ss="⎶",Es="≌",qs="Б",Cs="б",Ts="„",Ds="∵",Is="∵",Ns="∵",zs="⦰",Rs="϶",Ls="ℬ",Ms="ℬ",Fs="Β",Bs="β",Ps="ℶ",Os="≬",Vs="𝔅",$s="𝔟",Us="⋂",Gs="◯",Hs="⋃",js="⨀",Zs="⨁",Ws="⨂",Xs="⨆",Js="★",Qs="▽",Ys="△",Ks="⨄",ei="⋁",ti="⋀",ui="⤍",ri="⧫",ni="▪",si="▴",ii="▾",oi="◂",ai="▸",ci="␣",li="▒",fi="░",di="▓",hi="█",pi="=⃥",bi="≡⃥",mi="⫭",gi="⌐",vi="𝔹",xi="𝕓",yi="⊥",ki="⊥",wi="⋈",_i="⧉",Ai="┐",Si="╕",Ei="╖",qi="╗",Ci="┌",Ti="╒",Di="╓",Ii="╔",Ni="─",zi="═",Ri="┬",Li="╤",Mi="╥",Fi="╦",Bi="┴",Pi="╧",Oi="╨",Vi="╩",$i="⊟",Ui="⊞",Gi="⊠",Hi="┘",ji="╛",Zi="╜",Wi="╝",Xi="└",Ji="╘",Qi="╙",Yi="╚",Ki="│",eo="║",to="┼",uo="╪",ro="╫",no="╬",so="┤",io="╡",oo="╢",ao="╣",co="├",lo="╞",fo="╟",ho="╠",po="‵",bo="˘",mo="˘",go="¦",vo="𝒷",xo="ℬ",yo="⁏",ko="∽",wo="⋍",_o="⧅",Ao="\\",So="⟈",Eo="•",qo="•",Co="≎",To="⪮",Do="≏",Io="≎",No="≏",zo="Ć",Ro="ć",Lo="⩄",Mo="⩉",Fo="⩋",Bo="∩",Po="⋒",Oo="⩇",Vo="⩀",$o="ⅅ",Uo="∩︀",Go="⁁",Ho="ˇ",jo="ℭ",Zo="⩍",Wo="Č",Xo="č",Jo="Ç",Qo="ç",Yo="Ĉ",Ko="ĉ",ea="∰",ta="⩌",ua="⩐",ra="Ċ",na="ċ",sa="¸",ia="¸",oa="⦲",aa="¢",ca="·",la="·",fa="𝔠",da="ℭ",ha="Ч",pa="ч",ba="✓",ma="✓",ga="Χ",va="χ",xa="ˆ",ya="≗",ka="↺",wa="↻",_a="⊛",Aa="⊚",Sa="⊝",Ea="⊙",qa="®",Ca="Ⓢ",Ta="⊖",Da="⊕",Ia="⊗",Na="○",za="⧃",Ra="≗",La="⨐",Ma="⫯",Fa="⧂",Ba="∲",Pa="”",Oa="’",Va="♣",$a="♣",Ua=":",Ga="∷",Ha="⩴",ja="≔",Za="≔",Wa=",",Xa="@",Ja="∁",Qa="∘",Ya="∁",Ka="ℂ",ec="≅",tc="⩭",uc="≡",rc="∮",nc="∯",sc="∮",ic="𝕔",oc="ℂ",ac="∐",cc="∐",lc="©",fc="©",dc="℗",hc="∳",pc="↵",bc="✗",mc="⨯",gc="𝒞",vc="𝒸",xc="⫏",yc="⫑",kc="⫐",wc="⫒",_c="⋯",Ac="⤸",Sc="⤵",Ec="⋞",qc="⋟",Cc="↶",Tc="⤽",Dc="⩈",Ic="⩆",Nc="≍",zc="∪",Rc="⋓",Lc="⩊",Mc="⊍",Fc="⩅",Bc="∪︀",Pc="↷",Oc="⤼",Vc="⋞",$c="⋟",Uc="⋎",Gc="⋏",Hc="¤",jc="↶",Zc="↷",Wc="⋎",Xc="⋏",Jc="∲",Qc="∱",Yc="⌭",Kc="†",el="‡",tl="ℸ",ul="↓",rl="↡",nl="⇓",sl="‐",il="⫤",ol="⊣",al="⤏",cl="˝",ll="Ď",fl="ď",dl="Д",hl="д",pl="‡",bl="⇊",ml="ⅅ",gl="ⅆ",vl="⤑",xl="⩷",yl="°",kl="∇",wl="Δ",_l="δ",Al="⦱",Sl="⥿",El="𝔇",ql="𝔡",Cl="⥥",Tl="⇃",Dl="⇂",Il="´",Nl="˙",zl="˝",Rl="`",Ll="˜",Ml="⋄",Fl="⋄",Bl="⋄",Pl="♦",Ol="♦",Vl="¨",$l="ⅆ",Ul="ϝ",Gl="⋲",Hl="÷",jl="÷",Zl="⋇",Wl="⋇",Xl="Ђ",Jl="ђ",Ql="⌞",Yl="⌍",Kl="$",e1="𝔻",t1="𝕕",u1="¨",r1="˙",n1="⃜",s1="≐",i1="≑",o1="≐",a1="∸",c1="∔",l1="⊡",f1="⌆",d1="∯",h1="¨",p1="⇓",b1="⇐",m1="⇔",g1="⫤",v1="⟸",x1="⟺",y1="⟹",k1="⇒",w1="⊨",_1="⇑",A1="⇕",S1="∥",E1="⤓",q1="↓",C1="↓",T1="⇓",D1="⇵",I1="̑",N1="⇊",z1="⇃",R1="⇂",L1="⥐",M1="⥞",F1="⥖",B1="↽",P1="⥟",O1="⥗",V1="⇁",$1="↧",U1="⊤",G1="⤐",H1="⌟",j1="⌌",Z1="𝒟",W1="𝒹",X1="Ѕ",J1="ѕ",Q1="⧶",Y1="Đ",K1="đ",ef="⋱",tf="▿",uf="▾",rf="⇵",nf="⥯",sf="⦦",of="Џ",af="џ",cf="⟿",lf="É",ff="é",df="⩮",hf="Ě",pf="ě",bf="Ê",mf="ê",gf="≖",vf="≕",xf="Э",yf="э",kf="⩷",wf="Ė",_f="ė",Af="≑",Sf="ⅇ",Ef="≒",qf="𝔈",Cf="𝔢",Tf="⪚",Df="È",If="è",Nf="⪖",zf="⪘",Rf="⪙",Lf="∈",Mf="⏧",Ff="ℓ",Bf="⪕",Pf="⪗",Of="Ē",Vf="ē",$f="∅",Uf="∅",Gf="◻",Hf="∅",jf="▫",Zf=" ",Wf=" ",Xf=" ",Jf="Ŋ",Qf="ŋ",Yf=" ",Kf="Ę",e2="ę",t2="𝔼",u2="𝕖",r2="⋕",n2="⧣",s2="⩱",i2="ε",o2="Ε",a2="ε",c2="ϵ",l2="≖",f2="≕",d2="≂",h2="⪖",p2="⪕",b2="⩵",m2="=",g2="≂",v2="≟",x2="⇌",y2="≡",k2="⩸",w2="⧥",_2="⥱",A2="≓",S2="ℯ",E2="ℰ",q2="≐",C2="⩳",T2="≂",D2="Η",I2="η",N2="Ð",z2="ð",R2="Ë",L2="ë",M2="€",F2="!",B2="∃",P2="∃",O2="ℰ",V2="ⅇ",$2="ⅇ",U2="≒",G2="Ф",H2="ф",j2="♀",Z2="ffi",W2="ff",X2="ffl",J2="𝔉",Q2="𝔣",Y2="fi",K2="◼",e4="▪",t4="fj",u4="♭",r4="fl",n4="▱",s4="ƒ",i4="𝔽",o4="𝕗",a4="∀",c4="∀",l4="⋔",f4="⫙",d4="ℱ",h4="⨍",p4="½",b4="⅓",m4="¼",g4="⅕",v4="⅙",x4="⅛",y4="⅔",k4="⅖",w4="¾",_4="⅗",A4="⅜",S4="⅘",E4="⅚",q4="⅝",C4="⅞",T4="⁄",D4="⌢",I4="𝒻",N4="ℱ",z4="ǵ",R4="Γ",L4="γ",M4="Ϝ",F4="ϝ",B4="⪆",P4="Ğ",O4="ğ",V4="Ģ",$4="Ĝ",U4="ĝ",G4="Г",H4="г",j4="Ġ",Z4="ġ",W4="≥",X4="≧",J4="⪌",Q4="⋛",Y4="≥",K4="≧",ed="⩾",td="⪩",ud="⩾",rd="⪀",nd="⪂",sd="⪄",id="⋛︀",od="⪔",ad="𝔊",cd="𝔤",ld="≫",fd="⋙",dd="⋙",hd="ℷ",pd="Ѓ",bd="ѓ",md="⪥",gd="≷",vd="⪒",xd="⪤",yd="⪊",kd="⪊",wd="⪈",_d="≩",Ad="⪈",Sd="≩",Ed="⋧",qd="𝔾",Cd="𝕘",Td="`",Dd="≥",Id="⋛",Nd="≧",zd="⪢",Rd="≷",Ld="⩾",Md="≳",Fd="𝒢",Bd="ℊ",Pd="≳",Od="⪎",Vd="⪐",$d="⪧",Ud="⩺",Gd=">",Hd=">",jd="≫",Zd="⋗",Wd="⦕",Xd="⩼",Jd="⪆",Qd="⥸",Yd="⋗",Kd="⋛",eh="⪌",th="≷",uh="≳",rh="≩︀",nh="≩︀",sh="ˇ",ih=" ",oh="½",ah="ℋ",ch="Ъ",lh="ъ",fh="⥈",dh="↔",hh="⇔",ph="↭",bh="^",mh="ℏ",gh="Ĥ",vh="ĥ",xh="♥",yh="♥",kh="…",wh="⊹",_h="𝔥",Ah="ℌ",Sh="ℋ",Eh="⤥",qh="⤦",Ch="⇿",Th="∻",Dh="↩",Ih="↪",Nh="𝕙",zh="ℍ",Rh="―",Lh="─",Mh="𝒽",Fh="ℋ",Bh="ℏ",Ph="Ħ",Oh="ħ",Vh="≎",$h="≏",Uh="⁃",Gh="‐",Hh="Í",jh="í",Zh="⁣",Wh="Î",Xh="î",Jh="И",Qh="и",Yh="İ",Kh="Е",e3="е",t3="¡",u3="⇔",r3="𝔦",n3="ℑ",s3="Ì",i3="ì",o3="ⅈ",a3="⨌",c3="∭",l3="⧜",f3="℩",d3="IJ",h3="ij",p3="Ī",b3="ī",m3="ℑ",g3="ⅈ",v3="ℐ",x3="ℑ",y3="ı",k3="ℑ",w3="⊷",_3="Ƶ",A3="⇒",S3="℅",E3="∞",q3="⧝",C3="ı",T3="⊺",D3="∫",I3="∬",N3="ℤ",z3="∫",R3="⊺",L3="⋂",M3="⨗",F3="⨼",B3="⁣",P3="⁢",O3="Ё",V3="ё",$3="Į",U3="į",G3="𝕀",H3="𝕚",j3="Ι",Z3="ι",W3="⨼",X3="¿",J3="𝒾",Q3="ℐ",Y3="∈",K3="⋵",e6="⋹",t6="⋴",u6="⋳",r6="∈",n6="⁢",s6="Ĩ",i6="ĩ",o6="І",a6="і",c6="Ï",l6="ï",f6="Ĵ",d6="ĵ",h6="Й",p6="й",b6="𝔍",m6="𝔧",g6="ȷ",v6="𝕁",x6="𝕛",y6="𝒥",k6="𝒿",w6="Ј",_6="ј",A6="Є",S6="є",E6="Κ",q6="κ",C6="ϰ",T6="Ķ",D6="ķ",I6="К",N6="к",z6="𝔎",R6="𝔨",L6="ĸ",M6="Х",F6="х",B6="Ќ",P6="ќ",O6="𝕂",V6="𝕜",$6="𝒦",U6="𝓀",G6="⇚",H6="Ĺ",j6="ĺ",Z6="⦴",W6="ℒ",X6="Λ",J6="λ",Q6="⟨",Y6="⟪",K6="⦑",ep="⟨",tp="⪅",up="ℒ",rp="«",np="⇤",sp="⤟",ip="←",op="↞",ap="⇐",cp="⤝",lp="↩",fp="↫",dp="⤹",hp="⥳",pp="↢",bp="⤙",mp="⤛",gp="⪫",vp="⪭",xp="⪭︀",yp="⤌",kp="⤎",wp="❲",_p="{",Ap="[",Sp="⦋",Ep="⦏",qp="⦍",Cp="Ľ",Tp="ľ",Dp="Ļ",Ip="ļ",Np="⌈",zp="{",Rp="Л",Lp="л",Mp="⤶",Fp="“",Bp="„",Pp="⥧",Op="⥋",Vp="↲",$p="≤",Up="≦",Gp="⟨",Hp="⇤",jp="←",Zp="←",Wp="⇐",Xp="⇆",Jp="↢",Qp="⌈",Yp="⟦",Kp="⥡",e8="⥙",t8="⇃",u8="⌊",r8="↽",n8="↼",s8="⇇",i8="↔",o8="↔",a8="⇔",c8="⇆",l8="⇋",f8="↭",d8="⥎",h8="↤",p8="⊣",b8="⥚",m8="⋋",g8="⧏",v8="⊲",x8="⊴",y8="⥑",k8="⥠",w8="⥘",_8="↿",A8="⥒",S8="↼",E8="⪋",q8="⋚",C8="≤",T8="≦",D8="⩽",I8="⪨",N8="⩽",z8="⩿",R8="⪁",L8="⪃",M8="⋚︀",F8="⪓",B8="⪅",P8="⋖",O8="⋚",V8="⪋",$8="⋚",U8="≦",G8="≶",H8="≶",j8="⪡",Z8="≲",W8="⩽",X8="≲",J8="⥼",Q8="⌊",Y8="𝔏",K8="𝔩",e5="≶",t5="⪑",u5="⥢",r5="↽",n5="↼",s5="⥪",i5="▄",o5="Љ",a5="љ",c5="⇇",l5="≪",f5="⋘",d5="⌞",h5="⇚",p5="⥫",b5="◺",m5="Ŀ",g5="ŀ",v5="⎰",x5="⎰",y5="⪉",k5="⪉",w5="⪇",_5="≨",A5="⪇",S5="≨",E5="⋦",q5="⟬",C5="⇽",T5="⟦",D5="⟵",I5="⟵",N5="⟸",z5="⟷",R5="⟷",L5="⟺",M5="⟼",F5="⟶",B5="⟶",P5="⟹",O5="↫",V5="↬",$5="⦅",U5="𝕃",G5="𝕝",H5="⨭",j5="⨴",Z5="∗",W5="_",X5="↙",J5="↘",Q5="◊",Y5="◊",K5="⧫",eb="(",tb="⦓",ub="⇆",rb="⌟",nb="⇋",sb="⥭",ib="‎",ob="⊿",ab="‹",cb="𝓁",lb="ℒ",fb="↰",db="↰",hb="≲",pb="⪍",bb="⪏",mb="[",gb="‘",vb="‚",xb="Ł",yb="ł",kb="⪦",wb="⩹",_b="<",Ab="<",Sb="≪",Eb="⋖",qb="⋋",Cb="⋉",Tb="⥶",Db="⩻",Ib="◃",Nb="⊴",zb="◂",Rb="⦖",Lb="⥊",Mb="⥦",Fb="≨︀",Bb="≨︀",Pb="¯",Ob="♂",Vb="✠",$b="✠",Ub="↦",Gb="↦",Hb="↧",jb="↤",Zb="↥",Wb="▮",Xb="⨩",Jb="М",Qb="м",Yb="—",Kb="∺",em="∡",tm=" ",um="ℳ",rm="𝔐",nm="𝔪",sm="℧",im="µ",om="*",am="⫰",cm="∣",lm="·",fm="⊟",dm="−",hm="∸",pm="⨪",bm="∓",mm="⫛",gm="…",vm="∓",xm="⊧",ym="𝕄",km="𝕞",wm="∓",_m="𝓂",Am="ℳ",Sm="∾",Em="Μ",qm="μ",Cm="⊸",Tm="⊸",Dm="∇",Im="Ń",Nm="ń",zm="∠⃒",Rm="≉",Lm="⩰̸",Mm="≋̸",Fm="ʼn",Bm="≉",Pm="♮",Om="ℕ",Vm="♮",$m=" ",Um="≎̸",Gm="≏̸",Hm="⩃",jm="Ň",Zm="ň",Wm="Ņ",Xm="ņ",Jm="≇",Qm="⩭̸",Ym="⩂",Km="Н",e9="н",t9="–",u9="⤤",r9="↗",n9="⇗",s9="↗",i9="≠",o9="≐̸",a9="​",c9="​",l9="​",f9="​",d9="≢",h9="⤨",p9="≂̸",b9="≫",m9="≪",g9=` +import{cp as Pr,cq as le,ak as Or}from"./index-R8dLcqG_.js";var B={};const Vr="Á",$r="á",Ur="Ă",Gr="ă",Hr="∾",jr="∿",Zr="∾̳",Wr="Â",Xr="â",Jr="´",Qr="А",Yr="а",Kr="Æ",en="æ",tn="⁡",un="𝔄",rn="𝔞",nn="À",sn="à",on="ℵ",an="ℵ",cn="Α",ln="α",fn="Ā",dn="ā",hn="⨿",pn="&",bn="&",mn="⩕",gn="⩓",vn="∧",xn="⩜",yn="⩘",kn="⩚",wn="∠",_n="⦤",An="∠",Sn="⦨",En="⦩",qn="⦪",Cn="⦫",Tn="⦬",Dn="⦭",In="⦮",Nn="⦯",zn="∡",Rn="∟",Ln="⊾",Mn="⦝",Fn="∢",Bn="Å",Pn="⍼",On="Ą",Vn="ą",$n="𝔸",Un="𝕒",Gn="⩯",Hn="≈",jn="⩰",Zn="≊",Wn="≋",Xn="'",Jn="⁡",Qn="≈",Yn="≊",Kn="Å",es="å",ts="𝒜",us="𝒶",rs="≔",ns="*",ss="≈",is="≍",os="Ã",as="ã",cs="Ä",ls="ä",fs="∳",ds="⨑",hs="≌",ps="϶",bs="‵",ms="∽",gs="⋍",vs="∖",xs="⫧",ys="⊽",ks="⌅",ws="⌆",_s="⌅",As="⎵",Ss="⎶",Es="≌",qs="Б",Cs="б",Ts="„",Ds="∵",Is="∵",Ns="∵",zs="⦰",Rs="϶",Ls="ℬ",Ms="ℬ",Fs="Β",Bs="β",Ps="ℶ",Os="≬",Vs="𝔅",$s="𝔟",Us="⋂",Gs="◯",Hs="⋃",js="⨀",Zs="⨁",Ws="⨂",Xs="⨆",Js="★",Qs="▽",Ys="△",Ks="⨄",ei="⋁",ti="⋀",ui="⤍",ri="⧫",ni="▪",si="▴",ii="▾",oi="◂",ai="▸",ci="␣",li="▒",fi="░",di="▓",hi="█",pi="=⃥",bi="≡⃥",mi="⫭",gi="⌐",vi="𝔹",xi="𝕓",yi="⊥",ki="⊥",wi="⋈",_i="⧉",Ai="┐",Si="╕",Ei="╖",qi="╗",Ci="┌",Ti="╒",Di="╓",Ii="╔",Ni="─",zi="═",Ri="┬",Li="╤",Mi="╥",Fi="╦",Bi="┴",Pi="╧",Oi="╨",Vi="╩",$i="⊟",Ui="⊞",Gi="⊠",Hi="┘",ji="╛",Zi="╜",Wi="╝",Xi="└",Ji="╘",Qi="╙",Yi="╚",Ki="│",eo="║",to="┼",uo="╪",ro="╫",no="╬",so="┤",io="╡",oo="╢",ao="╣",co="├",lo="╞",fo="╟",ho="╠",po="‵",bo="˘",mo="˘",go="¦",vo="𝒷",xo="ℬ",yo="⁏",ko="∽",wo="⋍",_o="⧅",Ao="\\",So="⟈",Eo="•",qo="•",Co="≎",To="⪮",Do="≏",Io="≎",No="≏",zo="Ć",Ro="ć",Lo="⩄",Mo="⩉",Fo="⩋",Bo="∩",Po="⋒",Oo="⩇",Vo="⩀",$o="ⅅ",Uo="∩︀",Go="⁁",Ho="ˇ",jo="ℭ",Zo="⩍",Wo="Č",Xo="č",Jo="Ç",Qo="ç",Yo="Ĉ",Ko="ĉ",ea="∰",ta="⩌",ua="⩐",ra="Ċ",na="ċ",sa="¸",ia="¸",oa="⦲",aa="¢",ca="·",la="·",fa="𝔠",da="ℭ",ha="Ч",pa="ч",ba="✓",ma="✓",ga="Χ",va="χ",xa="ˆ",ya="≗",ka="↺",wa="↻",_a="⊛",Aa="⊚",Sa="⊝",Ea="⊙",qa="®",Ca="Ⓢ",Ta="⊖",Da="⊕",Ia="⊗",Na="○",za="⧃",Ra="≗",La="⨐",Ma="⫯",Fa="⧂",Ba="∲",Pa="”",Oa="’",Va="♣",$a="♣",Ua=":",Ga="∷",Ha="⩴",ja="≔",Za="≔",Wa=",",Xa="@",Ja="∁",Qa="∘",Ya="∁",Ka="ℂ",ec="≅",tc="⩭",uc="≡",rc="∮",nc="∯",sc="∮",ic="𝕔",oc="ℂ",ac="∐",cc="∐",lc="©",fc="©",dc="℗",hc="∳",pc="↵",bc="✗",mc="⨯",gc="𝒞",vc="𝒸",xc="⫏",yc="⫑",kc="⫐",wc="⫒",_c="⋯",Ac="⤸",Sc="⤵",Ec="⋞",qc="⋟",Cc="↶",Tc="⤽",Dc="⩈",Ic="⩆",Nc="≍",zc="∪",Rc="⋓",Lc="⩊",Mc="⊍",Fc="⩅",Bc="∪︀",Pc="↷",Oc="⤼",Vc="⋞",$c="⋟",Uc="⋎",Gc="⋏",Hc="¤",jc="↶",Zc="↷",Wc="⋎",Xc="⋏",Jc="∲",Qc="∱",Yc="⌭",Kc="†",el="‡",tl="ℸ",ul="↓",rl="↡",nl="⇓",sl="‐",il="⫤",ol="⊣",al="⤏",cl="˝",ll="Ď",fl="ď",dl="Д",hl="д",pl="‡",bl="⇊",ml="ⅅ",gl="ⅆ",vl="⤑",xl="⩷",yl="°",kl="∇",wl="Δ",_l="δ",Al="⦱",Sl="⥿",El="𝔇",ql="𝔡",Cl="⥥",Tl="⇃",Dl="⇂",Il="´",Nl="˙",zl="˝",Rl="`",Ll="˜",Ml="⋄",Fl="⋄",Bl="⋄",Pl="♦",Ol="♦",Vl="¨",$l="ⅆ",Ul="ϝ",Gl="⋲",Hl="÷",jl="÷",Zl="⋇",Wl="⋇",Xl="Ђ",Jl="ђ",Ql="⌞",Yl="⌍",Kl="$",e1="𝔻",t1="𝕕",u1="¨",r1="˙",n1="⃜",s1="≐",i1="≑",o1="≐",a1="∸",c1="∔",l1="⊡",f1="⌆",d1="∯",h1="¨",p1="⇓",b1="⇐",m1="⇔",g1="⫤",v1="⟸",x1="⟺",y1="⟹",k1="⇒",w1="⊨",_1="⇑",A1="⇕",S1="∥",E1="⤓",q1="↓",C1="↓",T1="⇓",D1="⇵",I1="̑",N1="⇊",z1="⇃",R1="⇂",L1="⥐",M1="⥞",F1="⥖",B1="↽",P1="⥟",O1="⥗",V1="⇁",$1="↧",U1="⊤",G1="⤐",H1="⌟",j1="⌌",Z1="𝒟",W1="𝒹",X1="Ѕ",J1="ѕ",Q1="⧶",Y1="Đ",K1="đ",ef="⋱",tf="▿",uf="▾",rf="⇵",nf="⥯",sf="⦦",of="Џ",af="џ",cf="⟿",lf="É",ff="é",df="⩮",hf="Ě",pf="ě",bf="Ê",mf="ê",gf="≖",vf="≕",xf="Э",yf="э",kf="⩷",wf="Ė",_f="ė",Af="≑",Sf="ⅇ",Ef="≒",qf="𝔈",Cf="𝔢",Tf="⪚",Df="È",If="è",Nf="⪖",zf="⪘",Rf="⪙",Lf="∈",Mf="⏧",Ff="ℓ",Bf="⪕",Pf="⪗",Of="Ē",Vf="ē",$f="∅",Uf="∅",Gf="◻",Hf="∅",jf="▫",Zf=" ",Wf=" ",Xf=" ",Jf="Ŋ",Qf="ŋ",Yf=" ",Kf="Ę",e2="ę",t2="𝔼",u2="𝕖",r2="⋕",n2="⧣",s2="⩱",i2="ε",o2="Ε",a2="ε",c2="ϵ",l2="≖",f2="≕",d2="≂",h2="⪖",p2="⪕",b2="⩵",m2="=",g2="≂",v2="≟",x2="⇌",y2="≡",k2="⩸",w2="⧥",_2="⥱",A2="≓",S2="ℯ",E2="ℰ",q2="≐",C2="⩳",T2="≂",D2="Η",I2="η",N2="Ð",z2="ð",R2="Ë",L2="ë",M2="€",F2="!",B2="∃",P2="∃",O2="ℰ",V2="ⅇ",$2="ⅇ",U2="≒",G2="Ф",H2="ф",j2="♀",Z2="ffi",W2="ff",X2="ffl",J2="𝔉",Q2="𝔣",Y2="fi",K2="◼",e4="▪",t4="fj",u4="♭",r4="fl",n4="▱",s4="ƒ",i4="𝔽",o4="𝕗",a4="∀",c4="∀",l4="⋔",f4="⫙",d4="ℱ",h4="⨍",p4="½",b4="⅓",m4="¼",g4="⅕",v4="⅙",x4="⅛",y4="⅔",k4="⅖",w4="¾",_4="⅗",A4="⅜",S4="⅘",E4="⅚",q4="⅝",C4="⅞",T4="⁄",D4="⌢",I4="𝒻",N4="ℱ",z4="ǵ",R4="Γ",L4="γ",M4="Ϝ",F4="ϝ",B4="⪆",P4="Ğ",O4="ğ",V4="Ģ",$4="Ĝ",U4="ĝ",G4="Г",H4="г",j4="Ġ",Z4="ġ",W4="≥",X4="≧",J4="⪌",Q4="⋛",Y4="≥",K4="≧",ed="⩾",td="⪩",ud="⩾",rd="⪀",nd="⪂",sd="⪄",id="⋛︀",od="⪔",ad="𝔊",cd="𝔤",ld="≫",fd="⋙",dd="⋙",hd="ℷ",pd="Ѓ",bd="ѓ",md="⪥",gd="≷",vd="⪒",xd="⪤",yd="⪊",kd="⪊",wd="⪈",_d="≩",Ad="⪈",Sd="≩",Ed="⋧",qd="𝔾",Cd="𝕘",Td="`",Dd="≥",Id="⋛",Nd="≧",zd="⪢",Rd="≷",Ld="⩾",Md="≳",Fd="𝒢",Bd="ℊ",Pd="≳",Od="⪎",Vd="⪐",$d="⪧",Ud="⩺",Gd=">",Hd=">",jd="≫",Zd="⋗",Wd="⦕",Xd="⩼",Jd="⪆",Qd="⥸",Yd="⋗",Kd="⋛",eh="⪌",th="≷",uh="≳",rh="≩︀",nh="≩︀",sh="ˇ",ih=" ",oh="½",ah="ℋ",ch="Ъ",lh="ъ",fh="⥈",dh="↔",hh="⇔",ph="↭",bh="^",mh="ℏ",gh="Ĥ",vh="ĥ",xh="♥",yh="♥",kh="…",wh="⊹",_h="𝔥",Ah="ℌ",Sh="ℋ",Eh="⤥",qh="⤦",Ch="⇿",Th="∻",Dh="↩",Ih="↪",Nh="𝕙",zh="ℍ",Rh="―",Lh="─",Mh="𝒽",Fh="ℋ",Bh="ℏ",Ph="Ħ",Oh="ħ",Vh="≎",$h="≏",Uh="⁃",Gh="‐",Hh="Í",jh="í",Zh="⁣",Wh="Î",Xh="î",Jh="И",Qh="и",Yh="İ",Kh="Е",e3="е",t3="¡",u3="⇔",r3="𝔦",n3="ℑ",s3="Ì",i3="ì",o3="ⅈ",a3="⨌",c3="∭",l3="⧜",f3="℩",d3="IJ",h3="ij",p3="Ī",b3="ī",m3="ℑ",g3="ⅈ",v3="ℐ",x3="ℑ",y3="ı",k3="ℑ",w3="⊷",_3="Ƶ",A3="⇒",S3="℅",E3="∞",q3="⧝",C3="ı",T3="⊺",D3="∫",I3="∬",N3="ℤ",z3="∫",R3="⊺",L3="⋂",M3="⨗",F3="⨼",B3="⁣",P3="⁢",O3="Ё",V3="ё",$3="Į",U3="į",G3="𝕀",H3="𝕚",j3="Ι",Z3="ι",W3="⨼",X3="¿",J3="𝒾",Q3="ℐ",Y3="∈",K3="⋵",e6="⋹",t6="⋴",u6="⋳",r6="∈",n6="⁢",s6="Ĩ",i6="ĩ",o6="І",a6="і",c6="Ï",l6="ï",f6="Ĵ",d6="ĵ",h6="Й",p6="й",b6="𝔍",m6="𝔧",g6="ȷ",v6="𝕁",x6="𝕛",y6="𝒥",k6="𝒿",w6="Ј",_6="ј",A6="Є",S6="є",E6="Κ",q6="κ",C6="ϰ",T6="Ķ",D6="ķ",I6="К",N6="к",z6="𝔎",R6="𝔨",L6="ĸ",M6="Х",F6="х",B6="Ќ",P6="ќ",O6="𝕂",V6="𝕜",$6="𝒦",U6="𝓀",G6="⇚",H6="Ĺ",j6="ĺ",Z6="⦴",W6="ℒ",X6="Λ",J6="λ",Q6="⟨",Y6="⟪",K6="⦑",ep="⟨",tp="⪅",up="ℒ",rp="«",np="⇤",sp="⤟",ip="←",op="↞",ap="⇐",cp="⤝",lp="↩",fp="↫",dp="⤹",hp="⥳",pp="↢",bp="⤙",mp="⤛",gp="⪫",vp="⪭",xp="⪭︀",yp="⤌",kp="⤎",wp="❲",_p="{",Ap="[",Sp="⦋",Ep="⦏",qp="⦍",Cp="Ľ",Tp="ľ",Dp="Ļ",Ip="ļ",Np="⌈",zp="{",Rp="Л",Lp="л",Mp="⤶",Fp="“",Bp="„",Pp="⥧",Op="⥋",Vp="↲",$p="≤",Up="≦",Gp="⟨",Hp="⇤",jp="←",Zp="←",Wp="⇐",Xp="⇆",Jp="↢",Qp="⌈",Yp="⟦",Kp="⥡",e8="⥙",t8="⇃",u8="⌊",r8="↽",n8="↼",s8="⇇",i8="↔",o8="↔",a8="⇔",c8="⇆",l8="⇋",f8="↭",d8="⥎",h8="↤",p8="⊣",b8="⥚",m8="⋋",g8="⧏",v8="⊲",x8="⊴",y8="⥑",k8="⥠",w8="⥘",_8="↿",A8="⥒",S8="↼",E8="⪋",q8="⋚",C8="≤",T8="≦",D8="⩽",I8="⪨",N8="⩽",z8="⩿",R8="⪁",L8="⪃",M8="⋚︀",F8="⪓",B8="⪅",P8="⋖",O8="⋚",V8="⪋",$8="⋚",U8="≦",G8="≶",H8="≶",j8="⪡",Z8="≲",W8="⩽",X8="≲",J8="⥼",Q8="⌊",Y8="𝔏",K8="𝔩",e5="≶",t5="⪑",u5="⥢",r5="↽",n5="↼",s5="⥪",i5="▄",o5="Љ",a5="љ",c5="⇇",l5="≪",f5="⋘",d5="⌞",h5="⇚",p5="⥫",b5="◺",m5="Ŀ",g5="ŀ",v5="⎰",x5="⎰",y5="⪉",k5="⪉",w5="⪇",_5="≨",A5="⪇",S5="≨",E5="⋦",q5="⟬",C5="⇽",T5="⟦",D5="⟵",I5="⟵",N5="⟸",z5="⟷",R5="⟷",L5="⟺",M5="⟼",F5="⟶",B5="⟶",P5="⟹",O5="↫",V5="↬",$5="⦅",U5="𝕃",G5="𝕝",H5="⨭",j5="⨴",Z5="∗",W5="_",X5="↙",J5="↘",Q5="◊",Y5="◊",K5="⧫",eb="(",tb="⦓",ub="⇆",rb="⌟",nb="⇋",sb="⥭",ib="‎",ob="⊿",ab="‹",cb="𝓁",lb="ℒ",fb="↰",db="↰",hb="≲",pb="⪍",bb="⪏",mb="[",gb="‘",vb="‚",xb="Ł",yb="ł",kb="⪦",wb="⩹",_b="<",Ab="<",Sb="≪",Eb="⋖",qb="⋋",Cb="⋉",Tb="⥶",Db="⩻",Ib="◃",Nb="⊴",zb="◂",Rb="⦖",Lb="⥊",Mb="⥦",Fb="≨︀",Bb="≨︀",Pb="¯",Ob="♂",Vb="✠",$b="✠",Ub="↦",Gb="↦",Hb="↧",jb="↤",Zb="↥",Wb="▮",Xb="⨩",Jb="М",Qb="м",Yb="—",Kb="∺",em="∡",tm=" ",um="ℳ",rm="𝔐",nm="𝔪",sm="℧",im="µ",om="*",am="⫰",cm="∣",lm="·",fm="⊟",dm="−",hm="∸",pm="⨪",bm="∓",mm="⫛",gm="…",vm="∓",xm="⊧",ym="𝕄",km="𝕞",wm="∓",_m="𝓂",Am="ℳ",Sm="∾",Em="Μ",qm="μ",Cm="⊸",Tm="⊸",Dm="∇",Im="Ń",Nm="ń",zm="∠⃒",Rm="≉",Lm="⩰̸",Mm="≋̸",Fm="ʼn",Bm="≉",Pm="♮",Om="ℕ",Vm="♮",$m=" ",Um="≎̸",Gm="≏̸",Hm="⩃",jm="Ň",Zm="ň",Wm="Ņ",Xm="ņ",Jm="≇",Qm="⩭̸",Ym="⩂",Km="Н",e9="н",t9="–",u9="⤤",r9="↗",n9="⇗",s9="↗",i9="≠",o9="≐̸",a9="​",c9="​",l9="​",f9="​",d9="≢",h9="⤨",p9="≂̸",b9="≫",m9="≪",g9=` `,v9="∄",x9="∄",y9="𝔑",k9="𝔫",w9="≧̸",_9="≱",A9="≱",S9="≧̸",E9="⩾̸",q9="⩾̸",C9="⋙̸",T9="≵",D9="≫⃒",I9="≯",N9="≯",z9="≫̸",R9="↮",L9="⇎",M9="⫲",F9="∋",B9="⋼",P9="⋺",O9="∋",V9="Њ",$9="њ",U9="↚",G9="⇍",H9="‥",j9="≦̸",Z9="≰",W9="↚",X9="⇍",J9="↮",Q9="⇎",Y9="≰",K9="≦̸",eg="⩽̸",tg="⩽̸",ug="≮",rg="⋘̸",ng="≴",sg="≪⃒",ig="≮",og="⋪",ag="⋬",cg="≪̸",lg="∤",fg="⁠",dg=" ",hg="𝕟",pg="ℕ",bg="⫬",mg="¬",gg="≢",vg="≭",xg="∦",yg="∉",kg="≠",wg="≂̸",_g="∄",Ag="≯",Sg="≱",Eg="≧̸",qg="≫̸",Cg="≹",Tg="⩾̸",Dg="≵",Ig="≎̸",Ng="≏̸",zg="∉",Rg="⋵̸",Lg="⋹̸",Mg="∉",Fg="⋷",Bg="⋶",Pg="⧏̸",Og="⋪",Vg="⋬",$g="≮",Ug="≰",Gg="≸",Hg="≪̸",jg="⩽̸",Zg="≴",Wg="⪢̸",Xg="⪡̸",Jg="∌",Qg="∌",Yg="⋾",Kg="⋽",e7="⊀",t7="⪯̸",u7="⋠",r7="∌",n7="⧐̸",s7="⋫",i7="⋭",o7="⊏̸",a7="⋢",c7="⊐̸",l7="⋣",f7="⊂⃒",d7="⊈",h7="⊁",p7="⪰̸",b7="⋡",m7="≿̸",g7="⊃⃒",v7="⊉",x7="≁",y7="≄",k7="≇",w7="≉",_7="∤",A7="∦",S7="∦",E7="⫽⃥",q7="∂̸",C7="⨔",T7="⊀",D7="⋠",I7="⊀",N7="⪯̸",z7="⪯̸",R7="⤳̸",L7="↛",M7="⇏",F7="↝̸",B7="↛",P7="⇏",O7="⋫",V7="⋭",$7="⊁",U7="⋡",G7="⪰̸",H7="𝒩",j7="𝓃",Z7="∤",W7="∦",X7="≁",J7="≄",Q7="≄",Y7="∤",K7="∦",ev="⋢",tv="⋣",uv="⊄",rv="⫅̸",nv="⊈",sv="⊂⃒",iv="⊈",ov="⫅̸",av="⊁",cv="⪰̸",lv="⊅",fv="⫆̸",dv="⊉",hv="⊃⃒",pv="⊉",bv="⫆̸",mv="≹",gv="Ñ",vv="ñ",xv="≸",yv="⋪",kv="⋬",wv="⋫",_v="⋭",Av="Ν",Sv="ν",Ev="#",qv="№",Cv=" ",Tv="≍⃒",Dv="⊬",Iv="⊭",Nv="⊮",zv="⊯",Rv="≥⃒",Lv=">⃒",Mv="⤄",Fv="⧞",Bv="⤂",Pv="≤⃒",Ov="<⃒",Vv="⊴⃒",$v="⤃",Uv="⊵⃒",Gv="∼⃒",Hv="⤣",jv="↖",Zv="⇖",Wv="↖",Xv="⤧",Jv="Ó",Qv="ó",Yv="⊛",Kv="Ô",ex="ô",tx="⊚",ux="О",rx="о",nx="⊝",sx="Ő",ix="ő",ox="⨸",ax="⊙",cx="⦼",lx="Œ",fx="œ",dx="⦿",hx="𝔒",px="𝔬",bx="˛",mx="Ò",gx="ò",vx="⧁",xx="⦵",yx="Ω",kx="∮",wx="↺",_x="⦾",Ax="⦻",Sx="‾",Ex="⧀",qx="Ō",Cx="ō",Tx="Ω",Dx="ω",Ix="Ο",Nx="ο",zx="⦶",Rx="⊖",Lx="𝕆",Mx="𝕠",Fx="⦷",Bx="“",Px="‘",Ox="⦹",Vx="⊕",$x="↻",Ux="⩔",Gx="∨",Hx="⩝",jx="ℴ",Zx="ℴ",Wx="ª",Xx="º",Jx="⊶",Qx="⩖",Yx="⩗",Kx="⩛",ey="Ⓢ",ty="𝒪",uy="ℴ",ry="Ø",ny="ø",sy="⊘",iy="Õ",oy="õ",ay="⨶",cy="⨷",ly="⊗",fy="Ö",dy="ö",hy="⌽",py="‾",by="⏞",my="⎴",gy="⏜",vy="¶",xy="∥",yy="∥",ky="⫳",wy="⫽",_y="∂",Ay="∂",Sy="П",Ey="п",qy="%",Cy=".",Ty="‰",Dy="⊥",Iy="‱",Ny="𝔓",zy="𝔭",Ry="Φ",Ly="φ",My="ϕ",Fy="ℳ",By="☎",Py="Π",Oy="π",Vy="⋔",$y="ϖ",Uy="ℏ",Gy="ℎ",Hy="ℏ",jy="⨣",Zy="⊞",Wy="⨢",Xy="+",Jy="∔",Qy="⨥",Yy="⩲",Ky="±",ek="±",tk="⨦",uk="⨧",rk="±",nk="ℌ",sk="⨕",ik="𝕡",ok="ℙ",ak="£",ck="⪷",lk="⪻",fk="≺",dk="≼",hk="⪷",pk="≺",bk="≼",mk="≺",gk="⪯",vk="≼",xk="≾",yk="⪯",kk="⪹",wk="⪵",_k="⋨",Ak="⪯",Sk="⪳",Ek="≾",qk="′",Ck="″",Tk="ℙ",Dk="⪹",Ik="⪵",Nk="⋨",zk="∏",Rk="∏",Lk="⌮",Mk="⌒",Fk="⌓",Bk="∝",Pk="∝",Ok="∷",Vk="∝",$k="≾",Uk="⊰",Gk="𝒫",Hk="𝓅",jk="Ψ",Zk="ψ",Wk=" ",Xk="𝔔",Jk="𝔮",Qk="⨌",Yk="𝕢",Kk="ℚ",ew="⁗",tw="𝒬",uw="𝓆",rw="ℍ",nw="⨖",sw="?",iw="≟",ow='"',aw='"',cw="⇛",lw="∽̱",fw="Ŕ",dw="ŕ",hw="√",pw="⦳",bw="⟩",mw="⟫",gw="⦒",vw="⦥",xw="⟩",yw="»",kw="⥵",ww="⇥",_w="⤠",Aw="⤳",Sw="→",Ew="↠",qw="⇒",Cw="⤞",Tw="↪",Dw="↬",Iw="⥅",Nw="⥴",zw="⤖",Rw="↣",Lw="↝",Mw="⤚",Fw="⤜",Bw="∶",Pw="ℚ",Ow="⤍",Vw="⤏",$w="⤐",Uw="❳",Gw="}",Hw="]",jw="⦌",Zw="⦎",Ww="⦐",Xw="Ř",Jw="ř",Qw="Ŗ",Yw="ŗ",Kw="⌉",e_="}",t_="Р",u_="р",r_="⤷",n_="⥩",s_="”",i_="”",o_="↳",a_="ℜ",c_="ℛ",l_="ℜ",f_="ℝ",d_="ℜ",h_="▭",p_="®",b_="®",m_="∋",g_="⇋",v_="⥯",x_="⥽",y_="⌋",k_="𝔯",w_="ℜ",__="⥤",A_="⇁",S_="⇀",E_="⥬",q_="Ρ",C_="ρ",T_="ϱ",D_="⟩",I_="⇥",N_="→",z_="→",R_="⇒",L_="⇄",M_="↣",F_="⌉",B_="⟧",P_="⥝",O_="⥕",V_="⇂",$_="⌋",U_="⇁",G_="⇀",H_="⇄",j_="⇌",Z_="⇉",W_="↝",X_="↦",J_="⊢",Q_="⥛",Y_="⋌",K_="⧐",eA="⊳",tA="⊵",uA="⥏",rA="⥜",nA="⥔",sA="↾",iA="⥓",oA="⇀",aA="˚",cA="≓",lA="⇄",fA="⇌",dA="‏",hA="⎱",pA="⎱",bA="⫮",mA="⟭",gA="⇾",vA="⟧",xA="⦆",yA="𝕣",kA="ℝ",wA="⨮",_A="⨵",AA="⥰",SA=")",EA="⦔",qA="⨒",CA="⇉",TA="⇛",DA="›",IA="𝓇",NA="ℛ",zA="↱",RA="↱",LA="]",MA="’",FA="’",BA="⋌",PA="⋊",OA="▹",VA="⊵",$A="▸",UA="⧎",GA="⧴",HA="⥨",jA="℞",ZA="Ś",WA="ś",XA="‚",JA="⪸",QA="Š",YA="š",KA="⪼",eS="≻",tS="≽",uS="⪰",rS="⪴",nS="Ş",sS="ş",iS="Ŝ",oS="ŝ",aS="⪺",cS="⪶",lS="⋩",fS="⨓",dS="≿",hS="С",pS="с",bS="⊡",mS="⋅",gS="⩦",vS="⤥",xS="↘",yS="⇘",kS="↘",wS="§",_S=";",AS="⤩",SS="∖",ES="∖",qS="✶",CS="𝔖",TS="𝔰",DS="⌢",IS="♯",NS="Щ",zS="щ",RS="Ш",LS="ш",MS="↓",FS="←",BS="∣",PS="∥",OS="→",VS="↑",$S="­",US="Σ",GS="σ",HS="ς",jS="ς",ZS="∼",WS="⩪",XS="≃",JS="≃",QS="⪞",YS="⪠",KS="⪝",eE="⪟",tE="≆",uE="⨤",rE="⥲",nE="←",sE="∘",iE="∖",oE="⨳",aE="⧤",cE="∣",lE="⌣",fE="⪪",dE="⪬",hE="⪬︀",pE="Ь",bE="ь",mE="⌿",gE="⧄",vE="/",xE="𝕊",yE="𝕤",kE="♠",wE="♠",_E="∥",AE="⊓",SE="⊓︀",EE="⊔",qE="⊔︀",CE="√",TE="⊏",DE="⊑",IE="⊏",NE="⊑",zE="⊐",RE="⊒",LE="⊐",ME="⊒",FE="□",BE="□",PE="⊓",OE="⊏",VE="⊑",$E="⊐",UE="⊒",GE="⊔",HE="▪",jE="□",ZE="▪",WE="→",XE="𝒮",JE="𝓈",QE="∖",YE="⌣",KE="⋆",eq="⋆",tq="☆",uq="★",rq="ϵ",nq="ϕ",sq="¯",iq="⊂",oq="⋐",aq="⪽",cq="⫅",lq="⊆",fq="⫃",dq="⫁",hq="⫋",pq="⊊",bq="⪿",mq="⥹",gq="⊂",vq="⋐",xq="⊆",yq="⫅",kq="⊆",wq="⊊",_q="⫋",Aq="⫇",Sq="⫕",Eq="⫓",qq="⪸",Cq="≻",Tq="≽",Dq="≻",Iq="⪰",Nq="≽",zq="≿",Rq="⪰",Lq="⪺",Mq="⪶",Fq="⋩",Bq="≿",Pq="∋",Oq="∑",Vq="∑",$q="♪",Uq="¹",Gq="²",Hq="³",jq="⊃",Zq="⋑",Wq="⪾",Xq="⫘",Jq="⫆",Qq="⊇",Yq="⫄",Kq="⊃",eC="⊇",tC="⟉",uC="⫗",rC="⥻",nC="⫂",sC="⫌",iC="⊋",oC="⫀",aC="⊃",cC="⋑",lC="⊇",fC="⫆",dC="⊋",hC="⫌",pC="⫈",bC="⫔",mC="⫖",gC="⤦",vC="↙",xC="⇙",yC="↙",kC="⤪",wC="ß",_C=" ",AC="⌖",SC="Τ",EC="τ",qC="⎴",CC="Ť",TC="ť",DC="Ţ",IC="ţ",NC="Т",zC="т",RC="⃛",LC="⌕",MC="𝔗",FC="𝔱",BC="∴",PC="∴",OC="∴",VC="Θ",$C="θ",UC="ϑ",GC="ϑ",HC="≈",jC="∼",ZC="  ",WC=" ",XC=" ",JC="≈",QC="∼",YC="Þ",KC="þ",eT="˜",tT="∼",uT="≃",rT="≅",nT="≈",sT="⨱",iT="⊠",oT="×",aT="⨰",cT="∭",lT="⤨",fT="⌶",dT="⫱",hT="⊤",pT="𝕋",bT="𝕥",mT="⫚",gT="⤩",vT="‴",xT="™",yT="™",kT="▵",wT="▿",_T="◃",AT="⊴",ST="≜",ET="▹",qT="⊵",CT="◬",TT="≜",DT="⨺",IT="⃛",NT="⨹",zT="⧍",RT="⨻",LT="⏢",MT="𝒯",FT="𝓉",BT="Ц",PT="ц",OT="Ћ",VT="ћ",$T="Ŧ",UT="ŧ",GT="≬",HT="↞",jT="↠",ZT="Ú",WT="ú",XT="↑",JT="↟",QT="⇑",YT="⥉",KT="Ў",eD="ў",tD="Ŭ",uD="ŭ",rD="Û",nD="û",sD="У",iD="у",oD="⇅",aD="Ű",cD="ű",lD="⥮",fD="⥾",dD="𝔘",hD="𝔲",pD="Ù",bD="ù",mD="⥣",gD="↿",vD="↾",xD="▀",yD="⌜",kD="⌜",wD="⌏",_D="◸",AD="Ū",SD="ū",ED="¨",qD="_",CD="⏟",TD="⎵",DD="⏝",ID="⋃",ND="⊎",zD="Ų",RD="ų",LD="𝕌",MD="𝕦",FD="⤒",BD="↑",PD="↑",OD="⇑",VD="⇅",$D="↕",UD="↕",GD="⇕",HD="⥮",jD="↿",ZD="↾",WD="⊎",XD="↖",JD="↗",QD="υ",YD="ϒ",KD="ϒ",eI="Υ",tI="υ",uI="↥",rI="⊥",nI="⇈",sI="⌝",iI="⌝",oI="⌎",aI="Ů",cI="ů",lI="◹",fI="𝒰",dI="𝓊",hI="⋰",pI="Ũ",bI="ũ",mI="▵",gI="▴",vI="⇈",xI="Ü",yI="ü",kI="⦧",wI="⦜",_I="ϵ",AI="ϰ",SI="∅",EI="ϕ",qI="ϖ",CI="∝",TI="↕",DI="⇕",II="ϱ",NI="ς",zI="⊊︀",RI="⫋︀",LI="⊋︀",MI="⫌︀",FI="ϑ",BI="⊲",PI="⊳",OI="⫨",VI="⫫",$I="⫩",UI="В",GI="в",HI="⊢",jI="⊨",ZI="⊩",WI="⊫",XI="⫦",JI="⊻",QI="∨",YI="⋁",KI="≚",eN="⋮",tN="|",uN="‖",rN="|",nN="‖",sN="∣",iN="|",oN="❘",aN="≀",cN=" ",lN="𝔙",fN="𝔳",dN="⊲",hN="⊂⃒",pN="⊃⃒",bN="𝕍",mN="𝕧",gN="∝",vN="⊳",xN="𝒱",yN="𝓋",kN="⫋︀",wN="⊊︀",_N="⫌︀",AN="⊋︀",SN="⊪",EN="⦚",qN="Ŵ",CN="ŵ",TN="⩟",DN="∧",IN="⋀",NN="≙",zN="℘",RN="𝔚",LN="𝔴",MN="𝕎",FN="𝕨",BN="℘",PN="≀",ON="≀",VN="𝒲",$N="𝓌",UN="⋂",GN="◯",HN="⋃",jN="▽",ZN="𝔛",WN="𝔵",XN="⟷",JN="⟺",QN="Ξ",YN="ξ",KN="⟵",ez="⟸",tz="⟼",uz="⋻",rz="⨀",nz="𝕏",sz="𝕩",iz="⨁",oz="⨂",az="⟶",cz="⟹",lz="𝒳",fz="𝓍",dz="⨆",hz="⨄",pz="△",bz="⋁",mz="⋀",gz="Ý",vz="ý",xz="Я",yz="я",kz="Ŷ",wz="ŷ",_z="Ы",Az="ы",Sz="¥",Ez="𝔜",qz="𝔶",Cz="Ї",Tz="ї",Dz="𝕐",Iz="𝕪",Nz="𝒴",zz="𝓎",Rz="Ю",Lz="ю",Mz="ÿ",Fz="Ÿ",Bz="Ź",Pz="ź",Oz="Ž",Vz="ž",$z="З",Uz="з",Gz="Ż",Hz="ż",jz="ℨ",Zz="​",Wz="Ζ",Xz="ζ",Jz="𝔷",Qz="ℨ",Yz="Ж",Kz="ж",eR="⇝",tR="𝕫",uR="ℤ",rR="𝒵",nR="𝓏",sR="‍",iR="‌",oR={Aacute:Vr,aacute:$r,Abreve:Ur,abreve:Gr,ac:Hr,acd:jr,acE:Zr,Acirc:Wr,acirc:Xr,acute:Jr,Acy:Qr,acy:Yr,AElig:Kr,aelig:en,af:tn,Afr:un,afr:rn,Agrave:nn,agrave:sn,alefsym:on,aleph:an,Alpha:cn,alpha:ln,Amacr:fn,amacr:dn,amalg:hn,amp:pn,AMP:bn,andand:mn,And:gn,and:vn,andd:xn,andslope:yn,andv:kn,ang:wn,ange:_n,angle:An,angmsdaa:Sn,angmsdab:En,angmsdac:qn,angmsdad:Cn,angmsdae:Tn,angmsdaf:Dn,angmsdag:In,angmsdah:Nn,angmsd:zn,angrt:Rn,angrtvb:Ln,angrtvbd:Mn,angsph:Fn,angst:Bn,angzarr:Pn,Aogon:On,aogon:Vn,Aopf:$n,aopf:Un,apacir:Gn,ap:Hn,apE:jn,ape:Zn,apid:Wn,apos:Xn,ApplyFunction:Jn,approx:Qn,approxeq:Yn,Aring:Kn,aring:es,Ascr:ts,ascr:us,Assign:rs,ast:ns,asymp:ss,asympeq:is,Atilde:os,atilde:as,Auml:cs,auml:ls,awconint:fs,awint:ds,backcong:hs,backepsilon:ps,backprime:bs,backsim:ms,backsimeq:gs,Backslash:vs,Barv:xs,barvee:ys,barwed:ks,Barwed:ws,barwedge:_s,bbrk:As,bbrktbrk:Ss,bcong:Es,Bcy:qs,bcy:Cs,bdquo:Ts,becaus:Ds,because:Is,Because:Ns,bemptyv:zs,bepsi:Rs,bernou:Ls,Bernoullis:Ms,Beta:Fs,beta:Bs,beth:Ps,between:Os,Bfr:Vs,bfr:$s,bigcap:Us,bigcirc:Gs,bigcup:Hs,bigodot:js,bigoplus:Zs,bigotimes:Ws,bigsqcup:Xs,bigstar:Js,bigtriangledown:Qs,bigtriangleup:Ys,biguplus:Ks,bigvee:ei,bigwedge:ti,bkarow:ui,blacklozenge:ri,blacksquare:ni,blacktriangle:si,blacktriangledown:ii,blacktriangleleft:oi,blacktriangleright:ai,blank:ci,blk12:li,blk14:fi,blk34:di,block:hi,bne:pi,bnequiv:bi,bNot:mi,bnot:gi,Bopf:vi,bopf:xi,bot:yi,bottom:ki,bowtie:wi,boxbox:_i,boxdl:Ai,boxdL:Si,boxDl:Ei,boxDL:qi,boxdr:Ci,boxdR:Ti,boxDr:Di,boxDR:Ii,boxh:Ni,boxH:zi,boxhd:Ri,boxHd:Li,boxhD:Mi,boxHD:Fi,boxhu:Bi,boxHu:Pi,boxhU:Oi,boxHU:Vi,boxminus:$i,boxplus:Ui,boxtimes:Gi,boxul:Hi,boxuL:ji,boxUl:Zi,boxUL:Wi,boxur:Xi,boxuR:Ji,boxUr:Qi,boxUR:Yi,boxv:Ki,boxV:eo,boxvh:to,boxvH:uo,boxVh:ro,boxVH:no,boxvl:so,boxvL:io,boxVl:oo,boxVL:ao,boxvr:co,boxvR:lo,boxVr:fo,boxVR:ho,bprime:po,breve:bo,Breve:mo,brvbar:go,bscr:vo,Bscr:xo,bsemi:yo,bsim:ko,bsime:wo,bsolb:_o,bsol:Ao,bsolhsub:So,bull:Eo,bullet:qo,bump:Co,bumpE:To,bumpe:Do,Bumpeq:Io,bumpeq:No,Cacute:zo,cacute:Ro,capand:Lo,capbrcup:Mo,capcap:Fo,cap:Bo,Cap:Po,capcup:Oo,capdot:Vo,CapitalDifferentialD:$o,caps:Uo,caret:Go,caron:Ho,Cayleys:jo,ccaps:Zo,Ccaron:Wo,ccaron:Xo,Ccedil:Jo,ccedil:Qo,Ccirc:Yo,ccirc:Ko,Cconint:ea,ccups:ta,ccupssm:ua,Cdot:ra,cdot:na,cedil:sa,Cedilla:ia,cemptyv:oa,cent:aa,centerdot:ca,CenterDot:la,cfr:fa,Cfr:da,CHcy:ha,chcy:pa,check:ba,checkmark:ma,Chi:ga,chi:va,circ:xa,circeq:ya,circlearrowleft:ka,circlearrowright:wa,circledast:_a,circledcirc:Aa,circleddash:Sa,CircleDot:Ea,circledR:qa,circledS:Ca,CircleMinus:Ta,CirclePlus:Da,CircleTimes:Ia,cir:Na,cirE:za,cire:Ra,cirfnint:La,cirmid:Ma,cirscir:Fa,ClockwiseContourIntegral:Ba,CloseCurlyDoubleQuote:Pa,CloseCurlyQuote:Oa,clubs:Va,clubsuit:$a,colon:Ua,Colon:Ga,Colone:Ha,colone:ja,coloneq:Za,comma:Wa,commat:Xa,comp:Ja,compfn:Qa,complement:Ya,complexes:Ka,cong:ec,congdot:tc,Congruent:uc,conint:rc,Conint:nc,ContourIntegral:sc,copf:ic,Copf:oc,coprod:ac,Coproduct:cc,copy:lc,COPY:fc,copysr:dc,CounterClockwiseContourIntegral:hc,crarr:pc,cross:bc,Cross:mc,Cscr:gc,cscr:vc,csub:xc,csube:yc,csup:kc,csupe:wc,ctdot:_c,cudarrl:Ac,cudarrr:Sc,cuepr:Ec,cuesc:qc,cularr:Cc,cularrp:Tc,cupbrcap:Dc,cupcap:Ic,CupCap:Nc,cup:zc,Cup:Rc,cupcup:Lc,cupdot:Mc,cupor:Fc,cups:Bc,curarr:Pc,curarrm:Oc,curlyeqprec:Vc,curlyeqsucc:$c,curlyvee:Uc,curlywedge:Gc,curren:Hc,curvearrowleft:jc,curvearrowright:Zc,cuvee:Wc,cuwed:Xc,cwconint:Jc,cwint:Qc,cylcty:Yc,dagger:Kc,Dagger:el,daleth:tl,darr:ul,Darr:rl,dArr:nl,dash:sl,Dashv:il,dashv:ol,dbkarow:al,dblac:cl,Dcaron:ll,dcaron:fl,Dcy:dl,dcy:hl,ddagger:pl,ddarr:bl,DD:ml,dd:gl,DDotrahd:vl,ddotseq:xl,deg:yl,Del:kl,Delta:wl,delta:_l,demptyv:Al,dfisht:Sl,Dfr:El,dfr:ql,dHar:Cl,dharl:Tl,dharr:Dl,DiacriticalAcute:Il,DiacriticalDot:Nl,DiacriticalDoubleAcute:zl,DiacriticalGrave:Rl,DiacriticalTilde:Ll,diam:Ml,diamond:Fl,Diamond:Bl,diamondsuit:Pl,diams:Ol,die:Vl,DifferentialD:$l,digamma:Ul,disin:Gl,div:Hl,divide:jl,divideontimes:Zl,divonx:Wl,DJcy:Xl,djcy:Jl,dlcorn:Ql,dlcrop:Yl,dollar:Kl,Dopf:e1,dopf:t1,Dot:u1,dot:r1,DotDot:n1,doteq:s1,doteqdot:i1,DotEqual:o1,dotminus:a1,dotplus:c1,dotsquare:l1,doublebarwedge:f1,DoubleContourIntegral:d1,DoubleDot:h1,DoubleDownArrow:p1,DoubleLeftArrow:b1,DoubleLeftRightArrow:m1,DoubleLeftTee:g1,DoubleLongLeftArrow:v1,DoubleLongLeftRightArrow:x1,DoubleLongRightArrow:y1,DoubleRightArrow:k1,DoubleRightTee:w1,DoubleUpArrow:_1,DoubleUpDownArrow:A1,DoubleVerticalBar:S1,DownArrowBar:E1,downarrow:q1,DownArrow:C1,Downarrow:T1,DownArrowUpArrow:D1,DownBreve:I1,downdownarrows:N1,downharpoonleft:z1,downharpoonright:R1,DownLeftRightVector:L1,DownLeftTeeVector:M1,DownLeftVectorBar:F1,DownLeftVector:B1,DownRightTeeVector:P1,DownRightVectorBar:O1,DownRightVector:V1,DownTeeArrow:$1,DownTee:U1,drbkarow:G1,drcorn:H1,drcrop:j1,Dscr:Z1,dscr:W1,DScy:X1,dscy:J1,dsol:Q1,Dstrok:Y1,dstrok:K1,dtdot:ef,dtri:tf,dtrif:uf,duarr:rf,duhar:nf,dwangle:sf,DZcy:of,dzcy:af,dzigrarr:cf,Eacute:lf,eacute:ff,easter:df,Ecaron:hf,ecaron:pf,Ecirc:bf,ecirc:mf,ecir:gf,ecolon:vf,Ecy:xf,ecy:yf,eDDot:kf,Edot:wf,edot:_f,eDot:Af,ee:Sf,efDot:Ef,Efr:qf,efr:Cf,eg:Tf,Egrave:Df,egrave:If,egs:Nf,egsdot:zf,el:Rf,Element:Lf,elinters:Mf,ell:Ff,els:Bf,elsdot:Pf,Emacr:Of,emacr:Vf,empty:$f,emptyset:Uf,EmptySmallSquare:Gf,emptyv:Hf,EmptyVerySmallSquare:jf,emsp13:Zf,emsp14:Wf,emsp:Xf,ENG:Jf,eng:Qf,ensp:Yf,Eogon:Kf,eogon:e2,Eopf:t2,eopf:u2,epar:r2,eparsl:n2,eplus:s2,epsi:i2,Epsilon:o2,epsilon:a2,epsiv:c2,eqcirc:l2,eqcolon:f2,eqsim:d2,eqslantgtr:h2,eqslantless:p2,Equal:b2,equals:m2,EqualTilde:g2,equest:v2,Equilibrium:x2,equiv:y2,equivDD:k2,eqvparsl:w2,erarr:_2,erDot:A2,escr:S2,Escr:E2,esdot:q2,Esim:C2,esim:T2,Eta:D2,eta:I2,ETH:N2,eth:z2,Euml:R2,euml:L2,euro:M2,excl:F2,exist:B2,Exists:P2,expectation:O2,exponentiale:V2,ExponentialE:$2,fallingdotseq:U2,Fcy:G2,fcy:H2,female:j2,ffilig:Z2,fflig:W2,ffllig:X2,Ffr:J2,ffr:Q2,filig:Y2,FilledSmallSquare:K2,FilledVerySmallSquare:e4,fjlig:t4,flat:u4,fllig:r4,fltns:n4,fnof:s4,Fopf:i4,fopf:o4,forall:a4,ForAll:c4,fork:l4,forkv:f4,Fouriertrf:d4,fpartint:h4,frac12:p4,frac13:b4,frac14:m4,frac15:g4,frac16:v4,frac18:x4,frac23:y4,frac25:k4,frac34:w4,frac35:_4,frac38:A4,frac45:S4,frac56:E4,frac58:q4,frac78:C4,frasl:T4,frown:D4,fscr:I4,Fscr:N4,gacute:z4,Gamma:R4,gamma:L4,Gammad:M4,gammad:F4,gap:B4,Gbreve:P4,gbreve:O4,Gcedil:V4,Gcirc:$4,gcirc:U4,Gcy:G4,gcy:H4,Gdot:j4,gdot:Z4,ge:W4,gE:X4,gEl:J4,gel:Q4,geq:Y4,geqq:K4,geqslant:ed,gescc:td,ges:ud,gesdot:rd,gesdoto:nd,gesdotol:sd,gesl:id,gesles:od,Gfr:ad,gfr:cd,gg:ld,Gg:fd,ggg:dd,gimel:hd,GJcy:pd,gjcy:bd,gla:md,gl:gd,glE:vd,glj:xd,gnap:yd,gnapprox:kd,gne:wd,gnE:_d,gneq:Ad,gneqq:Sd,gnsim:Ed,Gopf:qd,gopf:Cd,grave:Td,GreaterEqual:Dd,GreaterEqualLess:Id,GreaterFullEqual:Nd,GreaterGreater:zd,GreaterLess:Rd,GreaterSlantEqual:Ld,GreaterTilde:Md,Gscr:Fd,gscr:Bd,gsim:Pd,gsime:Od,gsiml:Vd,gtcc:$d,gtcir:Ud,gt:Gd,GT:Hd,Gt:jd,gtdot:Zd,gtlPar:Wd,gtquest:Xd,gtrapprox:Jd,gtrarr:Qd,gtrdot:Yd,gtreqless:Kd,gtreqqless:eh,gtrless:th,gtrsim:uh,gvertneqq:rh,gvnE:nh,Hacek:sh,hairsp:ih,half:oh,hamilt:ah,HARDcy:ch,hardcy:lh,harrcir:fh,harr:dh,hArr:hh,harrw:ph,Hat:bh,hbar:mh,Hcirc:gh,hcirc:vh,hearts:xh,heartsuit:yh,hellip:kh,hercon:wh,hfr:_h,Hfr:Ah,HilbertSpace:Sh,hksearow:Eh,hkswarow:qh,hoarr:Ch,homtht:Th,hookleftarrow:Dh,hookrightarrow:Ih,hopf:Nh,Hopf:zh,horbar:Rh,HorizontalLine:Lh,hscr:Mh,Hscr:Fh,hslash:Bh,Hstrok:Ph,hstrok:Oh,HumpDownHump:Vh,HumpEqual:$h,hybull:Uh,hyphen:Gh,Iacute:Hh,iacute:jh,ic:Zh,Icirc:Wh,icirc:Xh,Icy:Jh,icy:Qh,Idot:Yh,IEcy:Kh,iecy:e3,iexcl:t3,iff:u3,ifr:r3,Ifr:n3,Igrave:s3,igrave:i3,ii:o3,iiiint:a3,iiint:c3,iinfin:l3,iiota:f3,IJlig:d3,ijlig:h3,Imacr:p3,imacr:b3,image:m3,ImaginaryI:g3,imagline:v3,imagpart:x3,imath:y3,Im:k3,imof:w3,imped:_3,Implies:A3,incare:S3,in:"∈",infin:E3,infintie:q3,inodot:C3,intcal:T3,int:D3,Int:I3,integers:N3,Integral:z3,intercal:R3,Intersection:L3,intlarhk:M3,intprod:F3,InvisibleComma:B3,InvisibleTimes:P3,IOcy:O3,iocy:V3,Iogon:$3,iogon:U3,Iopf:G3,iopf:H3,Iota:j3,iota:Z3,iprod:W3,iquest:X3,iscr:J3,Iscr:Q3,isin:Y3,isindot:K3,isinE:e6,isins:t6,isinsv:u6,isinv:r6,it:n6,Itilde:s6,itilde:i6,Iukcy:o6,iukcy:a6,Iuml:c6,iuml:l6,Jcirc:f6,jcirc:d6,Jcy:h6,jcy:p6,Jfr:b6,jfr:m6,jmath:g6,Jopf:v6,jopf:x6,Jscr:y6,jscr:k6,Jsercy:w6,jsercy:_6,Jukcy:A6,jukcy:S6,Kappa:E6,kappa:q6,kappav:C6,Kcedil:T6,kcedil:D6,Kcy:I6,kcy:N6,Kfr:z6,kfr:R6,kgreen:L6,KHcy:M6,khcy:F6,KJcy:B6,kjcy:P6,Kopf:O6,kopf:V6,Kscr:$6,kscr:U6,lAarr:G6,Lacute:H6,lacute:j6,laemptyv:Z6,lagran:W6,Lambda:X6,lambda:J6,lang:Q6,Lang:Y6,langd:K6,langle:ep,lap:tp,Laplacetrf:up,laquo:rp,larrb:np,larrbfs:sp,larr:ip,Larr:op,lArr:ap,larrfs:cp,larrhk:lp,larrlp:fp,larrpl:dp,larrsim:hp,larrtl:pp,latail:bp,lAtail:mp,lat:gp,late:vp,lates:xp,lbarr:yp,lBarr:kp,lbbrk:wp,lbrace:_p,lbrack:Ap,lbrke:Sp,lbrksld:Ep,lbrkslu:qp,Lcaron:Cp,lcaron:Tp,Lcedil:Dp,lcedil:Ip,lceil:Np,lcub:zp,Lcy:Rp,lcy:Lp,ldca:Mp,ldquo:Fp,ldquor:Bp,ldrdhar:Pp,ldrushar:Op,ldsh:Vp,le:$p,lE:Up,LeftAngleBracket:Gp,LeftArrowBar:Hp,leftarrow:jp,LeftArrow:Zp,Leftarrow:Wp,LeftArrowRightArrow:Xp,leftarrowtail:Jp,LeftCeiling:Qp,LeftDoubleBracket:Yp,LeftDownTeeVector:Kp,LeftDownVectorBar:e8,LeftDownVector:t8,LeftFloor:u8,leftharpoondown:r8,leftharpoonup:n8,leftleftarrows:s8,leftrightarrow:i8,LeftRightArrow:o8,Leftrightarrow:a8,leftrightarrows:c8,leftrightharpoons:l8,leftrightsquigarrow:f8,LeftRightVector:d8,LeftTeeArrow:h8,LeftTee:p8,LeftTeeVector:b8,leftthreetimes:m8,LeftTriangleBar:g8,LeftTriangle:v8,LeftTriangleEqual:x8,LeftUpDownVector:y8,LeftUpTeeVector:k8,LeftUpVectorBar:w8,LeftUpVector:_8,LeftVectorBar:A8,LeftVector:S8,lEg:E8,leg:q8,leq:C8,leqq:T8,leqslant:D8,lescc:I8,les:N8,lesdot:z8,lesdoto:R8,lesdotor:L8,lesg:M8,lesges:F8,lessapprox:B8,lessdot:P8,lesseqgtr:O8,lesseqqgtr:V8,LessEqualGreater:$8,LessFullEqual:U8,LessGreater:G8,lessgtr:H8,LessLess:j8,lesssim:Z8,LessSlantEqual:W8,LessTilde:X8,lfisht:J8,lfloor:Q8,Lfr:Y8,lfr:K8,lg:e5,lgE:t5,lHar:u5,lhard:r5,lharu:n5,lharul:s5,lhblk:i5,LJcy:o5,ljcy:a5,llarr:c5,ll:l5,Ll:f5,llcorner:d5,Lleftarrow:h5,llhard:p5,lltri:b5,Lmidot:m5,lmidot:g5,lmoustache:v5,lmoust:x5,lnap:y5,lnapprox:k5,lne:w5,lnE:_5,lneq:A5,lneqq:S5,lnsim:E5,loang:q5,loarr:C5,lobrk:T5,longleftarrow:D5,LongLeftArrow:I5,Longleftarrow:N5,longleftrightarrow:z5,LongLeftRightArrow:R5,Longleftrightarrow:L5,longmapsto:M5,longrightarrow:F5,LongRightArrow:B5,Longrightarrow:P5,looparrowleft:O5,looparrowright:V5,lopar:$5,Lopf:U5,lopf:G5,loplus:H5,lotimes:j5,lowast:Z5,lowbar:W5,LowerLeftArrow:X5,LowerRightArrow:J5,loz:Q5,lozenge:Y5,lozf:K5,lpar:eb,lparlt:tb,lrarr:ub,lrcorner:rb,lrhar:nb,lrhard:sb,lrm:ib,lrtri:ob,lsaquo:ab,lscr:cb,Lscr:lb,lsh:fb,Lsh:db,lsim:hb,lsime:pb,lsimg:bb,lsqb:mb,lsquo:gb,lsquor:vb,Lstrok:xb,lstrok:yb,ltcc:kb,ltcir:wb,lt:_b,LT:Ab,Lt:Sb,ltdot:Eb,lthree:qb,ltimes:Cb,ltlarr:Tb,ltquest:Db,ltri:Ib,ltrie:Nb,ltrif:zb,ltrPar:Rb,lurdshar:Lb,luruhar:Mb,lvertneqq:Fb,lvnE:Bb,macr:Pb,male:Ob,malt:Vb,maltese:$b,Map:"⤅",map:Ub,mapsto:Gb,mapstodown:Hb,mapstoleft:jb,mapstoup:Zb,marker:Wb,mcomma:Xb,Mcy:Jb,mcy:Qb,mdash:Yb,mDDot:Kb,measuredangle:em,MediumSpace:tm,Mellintrf:um,Mfr:rm,mfr:nm,mho:sm,micro:im,midast:om,midcir:am,mid:cm,middot:lm,minusb:fm,minus:dm,minusd:hm,minusdu:pm,MinusPlus:bm,mlcp:mm,mldr:gm,mnplus:vm,models:xm,Mopf:ym,mopf:km,mp:wm,mscr:_m,Mscr:Am,mstpos:Sm,Mu:Em,mu:qm,multimap:Cm,mumap:Tm,nabla:Dm,Nacute:Im,nacute:Nm,nang:zm,nap:Rm,napE:Lm,napid:Mm,napos:Fm,napprox:Bm,natural:Pm,naturals:Om,natur:Vm,nbsp:$m,nbump:Um,nbumpe:Gm,ncap:Hm,Ncaron:jm,ncaron:Zm,Ncedil:Wm,ncedil:Xm,ncong:Jm,ncongdot:Qm,ncup:Ym,Ncy:Km,ncy:e9,ndash:t9,nearhk:u9,nearr:r9,neArr:n9,nearrow:s9,ne:i9,nedot:o9,NegativeMediumSpace:a9,NegativeThickSpace:c9,NegativeThinSpace:l9,NegativeVeryThinSpace:f9,nequiv:d9,nesear:h9,nesim:p9,NestedGreaterGreater:b9,NestedLessLess:m9,NewLine:g9,nexist:v9,nexists:x9,Nfr:y9,nfr:k9,ngE:w9,nge:_9,ngeq:A9,ngeqq:S9,ngeqslant:E9,nges:q9,nGg:C9,ngsim:T9,nGt:D9,ngt:I9,ngtr:N9,nGtv:z9,nharr:R9,nhArr:L9,nhpar:M9,ni:F9,nis:B9,nisd:P9,niv:O9,NJcy:V9,njcy:$9,nlarr:U9,nlArr:G9,nldr:H9,nlE:j9,nle:Z9,nleftarrow:W9,nLeftarrow:X9,nleftrightarrow:J9,nLeftrightarrow:Q9,nleq:Y9,nleqq:K9,nleqslant:eg,nles:tg,nless:ug,nLl:rg,nlsim:ng,nLt:sg,nlt:ig,nltri:og,nltrie:ag,nLtv:cg,nmid:lg,NoBreak:fg,NonBreakingSpace:dg,nopf:hg,Nopf:pg,Not:bg,not:mg,NotCongruent:gg,NotCupCap:vg,NotDoubleVerticalBar:xg,NotElement:yg,NotEqual:kg,NotEqualTilde:wg,NotExists:_g,NotGreater:Ag,NotGreaterEqual:Sg,NotGreaterFullEqual:Eg,NotGreaterGreater:qg,NotGreaterLess:Cg,NotGreaterSlantEqual:Tg,NotGreaterTilde:Dg,NotHumpDownHump:Ig,NotHumpEqual:Ng,notin:zg,notindot:Rg,notinE:Lg,notinva:Mg,notinvb:Fg,notinvc:Bg,NotLeftTriangleBar:Pg,NotLeftTriangle:Og,NotLeftTriangleEqual:Vg,NotLess:$g,NotLessEqual:Ug,NotLessGreater:Gg,NotLessLess:Hg,NotLessSlantEqual:jg,NotLessTilde:Zg,NotNestedGreaterGreater:Wg,NotNestedLessLess:Xg,notni:Jg,notniva:Qg,notnivb:Yg,notnivc:Kg,NotPrecedes:e7,NotPrecedesEqual:t7,NotPrecedesSlantEqual:u7,NotReverseElement:r7,NotRightTriangleBar:n7,NotRightTriangle:s7,NotRightTriangleEqual:i7,NotSquareSubset:o7,NotSquareSubsetEqual:a7,NotSquareSuperset:c7,NotSquareSupersetEqual:l7,NotSubset:f7,NotSubsetEqual:d7,NotSucceeds:h7,NotSucceedsEqual:p7,NotSucceedsSlantEqual:b7,NotSucceedsTilde:m7,NotSuperset:g7,NotSupersetEqual:v7,NotTilde:x7,NotTildeEqual:y7,NotTildeFullEqual:k7,NotTildeTilde:w7,NotVerticalBar:_7,nparallel:A7,npar:S7,nparsl:E7,npart:q7,npolint:C7,npr:T7,nprcue:D7,nprec:I7,npreceq:N7,npre:z7,nrarrc:R7,nrarr:L7,nrArr:M7,nrarrw:F7,nrightarrow:B7,nRightarrow:P7,nrtri:O7,nrtrie:V7,nsc:$7,nsccue:U7,nsce:G7,Nscr:H7,nscr:j7,nshortmid:Z7,nshortparallel:W7,nsim:X7,nsime:J7,nsimeq:Q7,nsmid:Y7,nspar:K7,nsqsube:ev,nsqsupe:tv,nsub:uv,nsubE:rv,nsube:nv,nsubset:sv,nsubseteq:iv,nsubseteqq:ov,nsucc:av,nsucceq:cv,nsup:lv,nsupE:fv,nsupe:dv,nsupset:hv,nsupseteq:pv,nsupseteqq:bv,ntgl:mv,Ntilde:gv,ntilde:vv,ntlg:xv,ntriangleleft:yv,ntrianglelefteq:kv,ntriangleright:wv,ntrianglerighteq:_v,Nu:Av,nu:Sv,num:Ev,numero:qv,numsp:Cv,nvap:Tv,nvdash:Dv,nvDash:Iv,nVdash:Nv,nVDash:zv,nvge:Rv,nvgt:Lv,nvHarr:Mv,nvinfin:Fv,nvlArr:Bv,nvle:Pv,nvlt:Ov,nvltrie:Vv,nvrArr:$v,nvrtrie:Uv,nvsim:Gv,nwarhk:Hv,nwarr:jv,nwArr:Zv,nwarrow:Wv,nwnear:Xv,Oacute:Jv,oacute:Qv,oast:Yv,Ocirc:Kv,ocirc:ex,ocir:tx,Ocy:ux,ocy:rx,odash:nx,Odblac:sx,odblac:ix,odiv:ox,odot:ax,odsold:cx,OElig:lx,oelig:fx,ofcir:dx,Ofr:hx,ofr:px,ogon:bx,Ograve:mx,ograve:gx,ogt:vx,ohbar:xx,ohm:yx,oint:kx,olarr:wx,olcir:_x,olcross:Ax,oline:Sx,olt:Ex,Omacr:qx,omacr:Cx,Omega:Tx,omega:Dx,Omicron:Ix,omicron:Nx,omid:zx,ominus:Rx,Oopf:Lx,oopf:Mx,opar:Fx,OpenCurlyDoubleQuote:Bx,OpenCurlyQuote:Px,operp:Ox,oplus:Vx,orarr:$x,Or:Ux,or:Gx,ord:Hx,order:jx,orderof:Zx,ordf:Wx,ordm:Xx,origof:Jx,oror:Qx,orslope:Yx,orv:Kx,oS:ey,Oscr:ty,oscr:uy,Oslash:ry,oslash:ny,osol:sy,Otilde:iy,otilde:oy,otimesas:ay,Otimes:cy,otimes:ly,Ouml:fy,ouml:dy,ovbar:hy,OverBar:py,OverBrace:by,OverBracket:my,OverParenthesis:gy,para:vy,parallel:xy,par:yy,parsim:ky,parsl:wy,part:_y,PartialD:Ay,Pcy:Sy,pcy:Ey,percnt:qy,period:Cy,permil:Ty,perp:Dy,pertenk:Iy,Pfr:Ny,pfr:zy,Phi:Ry,phi:Ly,phiv:My,phmmat:Fy,phone:By,Pi:Py,pi:Oy,pitchfork:Vy,piv:$y,planck:Uy,planckh:Gy,plankv:Hy,plusacir:jy,plusb:Zy,pluscir:Wy,plus:Xy,plusdo:Jy,plusdu:Qy,pluse:Yy,PlusMinus:Ky,plusmn:ek,plussim:tk,plustwo:uk,pm:rk,Poincareplane:nk,pointint:sk,popf:ik,Popf:ok,pound:ak,prap:ck,Pr:lk,pr:fk,prcue:dk,precapprox:hk,prec:pk,preccurlyeq:bk,Precedes:mk,PrecedesEqual:gk,PrecedesSlantEqual:vk,PrecedesTilde:xk,preceq:yk,precnapprox:kk,precneqq:wk,precnsim:_k,pre:Ak,prE:Sk,precsim:Ek,prime:qk,Prime:Ck,primes:Tk,prnap:Dk,prnE:Ik,prnsim:Nk,prod:zk,Product:Rk,profalar:Lk,profline:Mk,profsurf:Fk,prop:Bk,Proportional:Pk,Proportion:Ok,propto:Vk,prsim:$k,prurel:Uk,Pscr:Gk,pscr:Hk,Psi:jk,psi:Zk,puncsp:Wk,Qfr:Xk,qfr:Jk,qint:Qk,qopf:Yk,Qopf:Kk,qprime:ew,Qscr:tw,qscr:uw,quaternions:rw,quatint:nw,quest:sw,questeq:iw,quot:ow,QUOT:aw,rAarr:cw,race:lw,Racute:fw,racute:dw,radic:hw,raemptyv:pw,rang:bw,Rang:mw,rangd:gw,range:vw,rangle:xw,raquo:yw,rarrap:kw,rarrb:ww,rarrbfs:_w,rarrc:Aw,rarr:Sw,Rarr:Ew,rArr:qw,rarrfs:Cw,rarrhk:Tw,rarrlp:Dw,rarrpl:Iw,rarrsim:Nw,Rarrtl:zw,rarrtl:Rw,rarrw:Lw,ratail:Mw,rAtail:Fw,ratio:Bw,rationals:Pw,rbarr:Ow,rBarr:Vw,RBarr:$w,rbbrk:Uw,rbrace:Gw,rbrack:Hw,rbrke:jw,rbrksld:Zw,rbrkslu:Ww,Rcaron:Xw,rcaron:Jw,Rcedil:Qw,rcedil:Yw,rceil:Kw,rcub:e_,Rcy:t_,rcy:u_,rdca:r_,rdldhar:n_,rdquo:s_,rdquor:i_,rdsh:o_,real:a_,realine:c_,realpart:l_,reals:f_,Re:d_,rect:h_,reg:p_,REG:b_,ReverseElement:m_,ReverseEquilibrium:g_,ReverseUpEquilibrium:v_,rfisht:x_,rfloor:y_,rfr:k_,Rfr:w_,rHar:__,rhard:A_,rharu:S_,rharul:E_,Rho:q_,rho:C_,rhov:T_,RightAngleBracket:D_,RightArrowBar:I_,rightarrow:N_,RightArrow:z_,Rightarrow:R_,RightArrowLeftArrow:L_,rightarrowtail:M_,RightCeiling:F_,RightDoubleBracket:B_,RightDownTeeVector:P_,RightDownVectorBar:O_,RightDownVector:V_,RightFloor:$_,rightharpoondown:U_,rightharpoonup:G_,rightleftarrows:H_,rightleftharpoons:j_,rightrightarrows:Z_,rightsquigarrow:W_,RightTeeArrow:X_,RightTee:J_,RightTeeVector:Q_,rightthreetimes:Y_,RightTriangleBar:K_,RightTriangle:eA,RightTriangleEqual:tA,RightUpDownVector:uA,RightUpTeeVector:rA,RightUpVectorBar:nA,RightUpVector:sA,RightVectorBar:iA,RightVector:oA,ring:aA,risingdotseq:cA,rlarr:lA,rlhar:fA,rlm:dA,rmoustache:hA,rmoust:pA,rnmid:bA,roang:mA,roarr:gA,robrk:vA,ropar:xA,ropf:yA,Ropf:kA,roplus:wA,rotimes:_A,RoundImplies:AA,rpar:SA,rpargt:EA,rppolint:qA,rrarr:CA,Rrightarrow:TA,rsaquo:DA,rscr:IA,Rscr:NA,rsh:zA,Rsh:RA,rsqb:LA,rsquo:MA,rsquor:FA,rthree:BA,rtimes:PA,rtri:OA,rtrie:VA,rtrif:$A,rtriltri:UA,RuleDelayed:GA,ruluhar:HA,rx:jA,Sacute:ZA,sacute:WA,sbquo:XA,scap:JA,Scaron:QA,scaron:YA,Sc:KA,sc:eS,sccue:tS,sce:uS,scE:rS,Scedil:nS,scedil:sS,Scirc:iS,scirc:oS,scnap:aS,scnE:cS,scnsim:lS,scpolint:fS,scsim:dS,Scy:hS,scy:pS,sdotb:bS,sdot:mS,sdote:gS,searhk:vS,searr:xS,seArr:yS,searrow:kS,sect:wS,semi:_S,seswar:AS,setminus:SS,setmn:ES,sext:qS,Sfr:CS,sfr:TS,sfrown:DS,sharp:IS,SHCHcy:NS,shchcy:zS,SHcy:RS,shcy:LS,ShortDownArrow:MS,ShortLeftArrow:FS,shortmid:BS,shortparallel:PS,ShortRightArrow:OS,ShortUpArrow:VS,shy:$S,Sigma:US,sigma:GS,sigmaf:HS,sigmav:jS,sim:ZS,simdot:WS,sime:XS,simeq:JS,simg:QS,simgE:YS,siml:KS,simlE:eE,simne:tE,simplus:uE,simrarr:rE,slarr:nE,SmallCircle:sE,smallsetminus:iE,smashp:oE,smeparsl:aE,smid:cE,smile:lE,smt:fE,smte:dE,smtes:hE,SOFTcy:pE,softcy:bE,solbar:mE,solb:gE,sol:vE,Sopf:xE,sopf:yE,spades:kE,spadesuit:wE,spar:_E,sqcap:AE,sqcaps:SE,sqcup:EE,sqcups:qE,Sqrt:CE,sqsub:TE,sqsube:DE,sqsubset:IE,sqsubseteq:NE,sqsup:zE,sqsupe:RE,sqsupset:LE,sqsupseteq:ME,square:FE,Square:BE,SquareIntersection:PE,SquareSubset:OE,SquareSubsetEqual:VE,SquareSuperset:$E,SquareSupersetEqual:UE,SquareUnion:GE,squarf:HE,squ:jE,squf:ZE,srarr:WE,Sscr:XE,sscr:JE,ssetmn:QE,ssmile:YE,sstarf:KE,Star:eq,star:tq,starf:uq,straightepsilon:rq,straightphi:nq,strns:sq,sub:iq,Sub:oq,subdot:aq,subE:cq,sube:lq,subedot:fq,submult:dq,subnE:hq,subne:pq,subplus:bq,subrarr:mq,subset:gq,Subset:vq,subseteq:xq,subseteqq:yq,SubsetEqual:kq,subsetneq:wq,subsetneqq:_q,subsim:Aq,subsub:Sq,subsup:Eq,succapprox:qq,succ:Cq,succcurlyeq:Tq,Succeeds:Dq,SucceedsEqual:Iq,SucceedsSlantEqual:Nq,SucceedsTilde:zq,succeq:Rq,succnapprox:Lq,succneqq:Mq,succnsim:Fq,succsim:Bq,SuchThat:Pq,sum:Oq,Sum:Vq,sung:$q,sup1:Uq,sup2:Gq,sup3:Hq,sup:jq,Sup:Zq,supdot:Wq,supdsub:Xq,supE:Jq,supe:Qq,supedot:Yq,Superset:Kq,SupersetEqual:eC,suphsol:tC,suphsub:uC,suplarr:rC,supmult:nC,supnE:sC,supne:iC,supplus:oC,supset:aC,Supset:cC,supseteq:lC,supseteqq:fC,supsetneq:dC,supsetneqq:hC,supsim:pC,supsub:bC,supsup:mC,swarhk:gC,swarr:vC,swArr:xC,swarrow:yC,swnwar:kC,szlig:wC,Tab:_C,target:AC,Tau:SC,tau:EC,tbrk:qC,Tcaron:CC,tcaron:TC,Tcedil:DC,tcedil:IC,Tcy:NC,tcy:zC,tdot:RC,telrec:LC,Tfr:MC,tfr:FC,there4:BC,therefore:PC,Therefore:OC,Theta:VC,theta:$C,thetasym:UC,thetav:GC,thickapprox:HC,thicksim:jC,ThickSpace:ZC,ThinSpace:WC,thinsp:XC,thkap:JC,thksim:QC,THORN:YC,thorn:KC,tilde:eT,Tilde:tT,TildeEqual:uT,TildeFullEqual:rT,TildeTilde:nT,timesbar:sT,timesb:iT,times:oT,timesd:aT,tint:cT,toea:lT,topbot:fT,topcir:dT,top:hT,Topf:pT,topf:bT,topfork:mT,tosa:gT,tprime:vT,trade:xT,TRADE:yT,triangle:kT,triangledown:wT,triangleleft:_T,trianglelefteq:AT,triangleq:ST,triangleright:ET,trianglerighteq:qT,tridot:CT,trie:TT,triminus:DT,TripleDot:IT,triplus:NT,trisb:zT,tritime:RT,trpezium:LT,Tscr:MT,tscr:FT,TScy:BT,tscy:PT,TSHcy:OT,tshcy:VT,Tstrok:$T,tstrok:UT,twixt:GT,twoheadleftarrow:HT,twoheadrightarrow:jT,Uacute:ZT,uacute:WT,uarr:XT,Uarr:JT,uArr:QT,Uarrocir:YT,Ubrcy:KT,ubrcy:eD,Ubreve:tD,ubreve:uD,Ucirc:rD,ucirc:nD,Ucy:sD,ucy:iD,udarr:oD,Udblac:aD,udblac:cD,udhar:lD,ufisht:fD,Ufr:dD,ufr:hD,Ugrave:pD,ugrave:bD,uHar:mD,uharl:gD,uharr:vD,uhblk:xD,ulcorn:yD,ulcorner:kD,ulcrop:wD,ultri:_D,Umacr:AD,umacr:SD,uml:ED,UnderBar:qD,UnderBrace:CD,UnderBracket:TD,UnderParenthesis:DD,Union:ID,UnionPlus:ND,Uogon:zD,uogon:RD,Uopf:LD,uopf:MD,UpArrowBar:FD,uparrow:BD,UpArrow:PD,Uparrow:OD,UpArrowDownArrow:VD,updownarrow:$D,UpDownArrow:UD,Updownarrow:GD,UpEquilibrium:HD,upharpoonleft:jD,upharpoonright:ZD,uplus:WD,UpperLeftArrow:XD,UpperRightArrow:JD,upsi:QD,Upsi:YD,upsih:KD,Upsilon:eI,upsilon:tI,UpTeeArrow:uI,UpTee:rI,upuparrows:nI,urcorn:sI,urcorner:iI,urcrop:oI,Uring:aI,uring:cI,urtri:lI,Uscr:fI,uscr:dI,utdot:hI,Utilde:pI,utilde:bI,utri:mI,utrif:gI,uuarr:vI,Uuml:xI,uuml:yI,uwangle:kI,vangrt:wI,varepsilon:_I,varkappa:AI,varnothing:SI,varphi:EI,varpi:qI,varpropto:CI,varr:TI,vArr:DI,varrho:II,varsigma:NI,varsubsetneq:zI,varsubsetneqq:RI,varsupsetneq:LI,varsupsetneqq:MI,vartheta:FI,vartriangleleft:BI,vartriangleright:PI,vBar:OI,Vbar:VI,vBarv:$I,Vcy:UI,vcy:GI,vdash:HI,vDash:jI,Vdash:ZI,VDash:WI,Vdashl:XI,veebar:JI,vee:QI,Vee:YI,veeeq:KI,vellip:eN,verbar:tN,Verbar:uN,vert:rN,Vert:nN,VerticalBar:sN,VerticalLine:iN,VerticalSeparator:oN,VerticalTilde:aN,VeryThinSpace:cN,Vfr:lN,vfr:fN,vltri:dN,vnsub:hN,vnsup:pN,Vopf:bN,vopf:mN,vprop:gN,vrtri:vN,Vscr:xN,vscr:yN,vsubnE:kN,vsubne:wN,vsupnE:_N,vsupne:AN,Vvdash:SN,vzigzag:EN,Wcirc:qN,wcirc:CN,wedbar:TN,wedge:DN,Wedge:IN,wedgeq:NN,weierp:zN,Wfr:RN,wfr:LN,Wopf:MN,wopf:FN,wp:BN,wr:PN,wreath:ON,Wscr:VN,wscr:$N,xcap:UN,xcirc:GN,xcup:HN,xdtri:jN,Xfr:ZN,xfr:WN,xharr:XN,xhArr:JN,Xi:QN,xi:YN,xlarr:KN,xlArr:ez,xmap:tz,xnis:uz,xodot:rz,Xopf:nz,xopf:sz,xoplus:iz,xotime:oz,xrarr:az,xrArr:cz,Xscr:lz,xscr:fz,xsqcup:dz,xuplus:hz,xutri:pz,xvee:bz,xwedge:mz,Yacute:gz,yacute:vz,YAcy:xz,yacy:yz,Ycirc:kz,ycirc:wz,Ycy:_z,ycy:Az,yen:Sz,Yfr:Ez,yfr:qz,YIcy:Cz,yicy:Tz,Yopf:Dz,yopf:Iz,Yscr:Nz,yscr:zz,YUcy:Rz,yucy:Lz,yuml:Mz,Yuml:Fz,Zacute:Bz,zacute:Pz,Zcaron:Oz,zcaron:Vz,Zcy:$z,zcy:Uz,Zdot:Gz,zdot:Hz,zeetrf:jz,ZeroWidthSpace:Zz,Zeta:Wz,zeta:Xz,zfr:Jz,Zfr:Qz,ZHcy:Yz,zhcy:Kz,zigrarr:eR,zopf:tR,Zopf:uR,Zscr:rR,zscr:nR,zwj:sR,zwnj:iR};var Mu=oR,st=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,$e={},Ct={};function aR(t){var e,u,n=Ct[t];if(n)return n;for(n=Ct[t]=[],e=0;e<128;e++)u=String.fromCharCode(e),/^[0-9a-z]$/i.test(u)?n.push(u):n.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e"u"&&(u=!0),o=aR(e),n=0,r=t.length;n=55296&&s<=57343){if(s>=55296&&s<=56319&&n+1=56320&&a<=57343)){i+=encodeURIComponent(t[n]+t[n+1]),n++;continue}i+="%EF%BF%BD";continue}i+=encodeURIComponent(t[n])}return i}m0.defaultChars=";/?:@&=+$,-_.!~*'()#";m0.componentChars="-_.!~*'()";var cR=m0,Tt={};function lR(t){var e,u,n=Tt[t];if(n)return n;for(n=Tt[t]=[],e=0;e<128;e++)u=String.fromCharCode(e),n.push(u);for(e=0;e=55296&&l<=57343?d+="���":d+=String.fromCharCode(l),r+=6;continue}if((a&248)===240&&r+91114111?d+="����":(l-=65536,d+=String.fromCharCode(55296+(l>>10),56320+(l&1023))),r+=9;continue}d+="�"}return d})}g0.defaultChars=";/?:@&=+$,#";g0.componentChars="";var fR=g0,dR=function(e){var u="";return u+=e.protocol||"",u+=e.slashes?"//":"",u+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?u+="["+e.hostname+"]":u+=e.hostname||"",u+=e.port?":"+e.port:"",u+=e.pathname||"",u+=e.search||"",u+=e.hash||"",u};function l0(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var hR=/^([a-z0-9.+-]+:)/i,pR=/:[0-9]*$/,bR=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,mR=["<",">",'"',"`"," ","\r",` `," "],gR=["{","}","|","\\","^","`"].concat(mR),vR=["'"].concat(gR),Dt=["%","/","?",";","#"].concat(vR),It=["/","?","#"],xR=255,Nt=/^[+a-z0-9A-Z_-]{0,63}$/,yR=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,zt={javascript:!0,"javascript:":!0},Rt={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function kR(t,e){if(t&&t instanceof l0)return t;var u=new l0;return u.parse(t,e),u}l0.prototype.parse=function(t,e){var u,n,r,s,a,o=t;if(o=o.trim(),!e&&t.split("#").length===1){var i=bR.exec(o);if(i)return this.pathname=i[1],i[2]&&(this.search=i[2]),this}var c=hR.exec(o);if(c&&(c=c[0],r=c.toLowerCase(),this.protocol=c,o=o.substr(c.length)),(e||c||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=o.substr(0,2)==="//",a&&!(c&&zt[c])&&(o=o.substr(2),this.slashes=!0)),!zt[c]&&(a||c&&!Rt[c])){var l=-1;for(u=0;u127?v+="x":v+=b[g];if(!v.match(Nt)){var w=m.slice(0,u),A=m.slice(u+1),k=b.match(yR);k&&(w.push(k[1]),A.unshift(k[2])),A.length&&(o=A.join(".")+o),this.hostname=w.join(".");break}}}}this.hostname.length>xR&&(this.hostname=""),f&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var C=o.indexOf("#");C!==-1&&(this.hash=o.substr(C),o=o.slice(0,C));var T=o.indexOf("?");return T!==-1&&(this.search=o.substr(T),o=o.slice(0,T)),o&&(this.pathname=o),Rt[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this};l0.prototype.parseHost=function(t){var e=pR.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var wR=kR;$e.encode=cR;$e.decode=fR;$e.format=dR;$e.parse=wR;var ke={},N0,Lt;function Fu(){return Lt||(Lt=1,N0=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),N0}var z0,Mt;function Bu(){return Mt||(Mt=1,z0=/[\0-\x1F\x7F-\x9F]/),z0}var R0,Ft;function _R(){return Ft||(Ft=1,R0=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),R0}var L0,Bt;function Pu(){return Bt||(Bt=1,L0=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),L0}var Pt;function AR(){return Pt||(Pt=1,ke.Any=Fu(),ke.Cc=Bu(),ke.Cf=_R(),ke.P=st,ke.Z=Pu()),ke}(function(t){function e(_){return Object.prototype.toString.call(_)}function u(_){return e(_)==="[object String]"}var n=Object.prototype.hasOwnProperty;function r(_,O){return n.call(_,O)}function s(_){var O=Array.prototype.slice.call(arguments,1);return O.forEach(function(z){if(z){if(typeof z!="object")throw new TypeError(z+"must be object");Object.keys(z).forEach(function(Q){_[Q]=z[Q]})}}),_}function a(_,O,z){return[].concat(_.slice(0,O),z,_.slice(O+1))}function o(_){return!(_>=55296&&_<=57343||_>=64976&&_<=65007||(_&65535)===65535||(_&65535)===65534||_>=0&&_<=8||_===11||_>=14&&_<=31||_>=127&&_<=159||_>1114111)}function i(_){if(_>65535){_-=65536;var O=55296+(_>>10),z=56320+(_&1023);return String.fromCharCode(O,z)}return String.fromCharCode(_)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,l=/&([a-z#][a-z0-9]{1,31});/gi,d=new RegExp(c.source+"|"+l.source,"gi"),h=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,p=Mu;function f(_,O){var z=0;return r(p,O)?p[O]:O.charCodeAt(0)===35&&h.test(O)&&(z=O[1].toLowerCase()==="x"?parseInt(O.slice(2),16):parseInt(O.slice(1),10),o(z))?i(z):_}function m(_){return _.indexOf("\\")<0?_:_.replace(c,"$1")}function b(_){return _.indexOf("\\")<0&&_.indexOf("&")<0?_:_.replace(d,function(O,z,Q){return z||f(O,Q)})}var v=/[&<>"]/,g=/[&<>"]/g,y={"&":"&","<":"<",">":">",'"':"""};function w(_){return y[_]}function A(_){return v.test(_)?_.replace(g,w):_}var k=/[.?*+^$[\]\\(){}|-]/g;function C(_){return _.replace(k,"\\$&")}function T(_){switch(_){case 9:case 32:return!0}return!1}function R(_){if(_>=8192&&_<=8202)return!0;switch(_){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var D=st;function L(_){return D.test(_)}function ee(_){switch(_){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function $(_){return _=_.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(_=_.replace(/ẞ/g,"ß")),_.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=$e,t.lib.ucmicro=AR(),t.assign=s,t.isString=u,t.has=r,t.unescapeMd=m,t.unescapeAll=b,t.isValidEntityCode=o,t.fromCodePoint=i,t.escapeHtml=A,t.arrayReplaceAt=a,t.isSpace=T,t.isWhiteSpace=R,t.isMdAsciiPunct=ee,t.isPunctChar=L,t.escapeRE=C,t.normalizeReference=$})(B);var v0={},SR=function(e,u,n){var r,s,a,o,i=-1,c=e.posMax,l=e.pos;for(e.pos=u+1,r=1;e.pos32))return i;if(r===41){if(s===0)break;s--}u++}return o===u||s!==0||(i.str=Ot(e.slice(o,u)),i.lines=a,i.pos=u,i.ok=!0),i},qR=B.unescapeAll,CR=function(e,u,n){var r,s,a=0,o=u,i={ok:!1,pos:0,lines:0,str:""};if(u>=n||(s=e.charCodeAt(u),s!==34&&s!==39&&s!==40))return i;for(u++,s===40&&(s=41);u"+Ee(t[e].content)+""};fe.code_block=function(t,e,u,n,r){var s=t[e];return""+Ee(t[e].content)+` `};fe.fence=function(t,e,u,n,r){var s=t[e],a=s.info?DR(s.info).trim():"",o="",i="",c,l,d,h,p;return a&&(d=a.split(/(\s+)/g),o=d[0],i=d.slice(2).join("")),u.highlight?c=u.highlight(s.content,o,i)||Ee(s.content):c=Ee(s.content),c.indexOf("{if(e&&typeof e=="object"||typeof e=="function")for(let r of c(e))!p.call(t,r)&&r!==n&&a(t,r,{get:()=>e[r],enumerable:!(s=l(e,r))||s.enumerable});return t},_=(t,e,n)=>(d(t,e,"default"),n),o={};_(o,i);var b={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:o.languages.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},u={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}};export{b as conf,u as language}; +import{m as i}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BNZRjtJE.js";import"./index-R8dLcqG_.js";var a=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,d=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of c(e))!p.call(t,r)&&r!==n&&a(t,r,{get:()=>e[r],enumerable:!(s=l(e,r))||s.enumerable});return t},_=(t,e,n)=>(d(t,e,"default"),n),o={};_(o,i);var b={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:o.languages.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},u={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}};export{b as conf,u as language}; diff --git a/app/src/main/resources/web/assets/question-mark-rounded-DNpslAE7.js b/app/src/main/resources/web/assets/question-mark-rounded-BC93NM4N.js similarity index 97% rename from app/src/main/resources/web/assets/question-mark-rounded-DNpslAE7.js rename to app/src/main/resources/web/assets/question-mark-rounded-BC93NM4N.js index 70dd1b56..6c1fb427 100644 --- a/app/src/main/resources/web/assets/question-mark-rounded-DNpslAE7.js +++ b/app/src/main/resources/web/assets/question-mark-rounded-BC93NM4N.js @@ -1 +1 @@ -var I=Object.defineProperty;var y=(t,e,n)=>e in t?I(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var s=(t,e,n)=>(y(t,typeof e!="symbol"?e+"":e,n),n);import{cy as P,cz as q,cA as x,cB as p,cC as N,o as T,c as $,a as O}from"./index-BzaaAwnX.js";function E(t,e){for(var n=-1,i=t.length;++n-1;);return n}var S=/^\s+/;function l(t,e,n){if(t=q(t),t&&e===void 0)return t.replace(S,"");if(!t||!(e=x(e)))return t;var i=p(t),r=E(i,p(e));return N(i,r).join("")}class w{constructor(){s(this,"type","all");s(this,"value","")}parse(e){const n=e.indexOf(":");n===-1?this.type=e:(this.type=e.slice(0,n),this.value=e.slice(n+1))}getText(e,n,i){var c,f;let r="";switch(this.type){case"all":r=e("all_devices");break;case"mac":r=((c=n.find(u=>u.mac===this.value))==null?void 0:c.name)??this.value;break;case"iface":r=((f=i.find(u=>u.ifName==this.value))==null?void 0:f.name)??this.value;break}return r}toValue(){return this.type=="all"?this.type:`${this.type}:${this.value}`}}function h(t){return A(t)?!0:o(t)}function o(t){return/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/.test(t)}function A(t){return/^((25[0-5]|(2[0-4]|1[0-9]|[1-9]|)[0-9])(\.(?!$)|$)){4}$/.test(t)}function k(t){if(t.includes(":")){if(o(t))return!0;let e="",n="";if(t.includes("]:")&&t.startsWith("[")){const i=t.split("]:");e=l(i[0],"["),n=i[1]}else{const i=t.split(":");e=i[0],n=i[1]}return h(e)&&a(n)}return h(t)}function a(t){return t.includes(",")?t.split(",").every(d):d(t)}function d(t){if(/^[0-9]{1,5}|([0-9]{1,5}\\-[0-9]{1,5})$/.test(t))if(t.includes("-")){const e=t.split("-"),n=parseInt(e[0]),i=parseInt(e[1]);return n>=1&&n0&&i<65536}else{const e=parseInt(t);return e>=1&&e<=65535}return!1}function b(t){if(t.includes(":")){if(F(t))return!0;let e="",n="";if(t.includes("]:")&&t.startsWith("[")){const i=t.split("]:");e=l(i[0],"["),n=i[1]}else{const i=t.split(":");e=i[0],n=i[1]}return m(e)&&a(n)}return m(t)}function g(t){const e=t.split("/");if(e.length!==2)return!1;const n=parseInt(e[1]);return A(e[0])&&n>=0&&n<=32}function F(t){const e=t.split("/");if(e.length!==2)return!1;const n=parseInt(e[1]);return o(e[0])&&n>32&&n<=128}function m(t){return g(t)?!0:F(t)}function _(t,e){let n=t;return n=l(t,"*."),/[a-z0-9]{2}/.test(n)?!0:new RegExp("^(?=.{1,253}\\.?$)(?:(?!-|[^.]+_)[A-Za-z0-9-_]{1,63}(?(t.IP="ip",t.NET="net",t.DNS="dns",t.REMOTE_PORT="remote_port",t.INTERNET="internet",t.INTERFACE="iface",t.LIST="list",t))(B||{});class Z{constructor(){s(this,"type","dns");s(this,"value","")}parse(e){const n=e.indexOf(":");n===-1?this.type=e:(this.type=e.slice(0,n),this.value=e.slice(n+1))}static hasInput(e){return["ip","net","dns","remote_port"].includes(e)}static hint(e){switch(e){case"ip":return"10.10.10.2";case"net":return"10.10.10.0/24";case"dns":return"example.com";case"remote_port":return"1419"}return""}static isValid(e,n){switch(e){case"ip":return k(n);case"net":return b(n);case"dns":return R(n);case"remote_port":return a(n)}return!0}getText(e,n){var i;return this.type=="internet"?e("target_type.internet"):this.type=="iface"?this.value?((i=n.find(r=>r.ifName==this.value))==null?void 0:i.name)??this.value:e("all_local_networks"):this.type=="remote_port"?e("remote_port",{port:this.value}):this.value}toValue(){return!this.value||this.type==="internet"?this.type:`${this.type}:${this.value}`}}const W={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},z=O("path",{fill:"currentColor",d:"M14.6 8.075q0-1.075-.712-1.725T12 5.7q-.725 0-1.312.313t-1.013.912q-.4.575-1.088.663T7.4 7.225q-.35-.325-.387-.8t.237-.9q.8-1.2 2.038-1.862T12 3q2.425 0 3.938 1.375t1.512 3.6q0 1.125-.475 2.025t-1.75 2.125q-.925.875-1.25 1.363T13.55 14.6q-.1.6-.513 1t-.987.4t-.987-.387t-.413-.963q0-.975.425-1.787T12.5 11.15q1.275-1.125 1.688-1.737t.412-1.338M12 22q-.825 0-1.412-.587T10 20t.588-1.412T12 18t1.413.588T14 20t-.587 1.413T12 22"},null,-1),M=[z];function V(t,e){return T(),$("svg",W,[...M])}const j={name:"material-symbols-question-mark-rounded",render:V};export{w as A,B as T,j as _,Z as a}; +var I=Object.defineProperty;var y=(t,e,n)=>e in t?I(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var s=(t,e,n)=>(y(t,typeof e!="symbol"?e+"":e,n),n);import{cy as P,cz as q,cA as x,cB as p,cC as N,o as T,c as $,a as O}from"./index-R8dLcqG_.js";function E(t,e){for(var n=-1,i=t.length;++n-1;);return n}var S=/^\s+/;function l(t,e,n){if(t=q(t),t&&e===void 0)return t.replace(S,"");if(!t||!(e=x(e)))return t;var i=p(t),r=E(i,p(e));return N(i,r).join("")}class w{constructor(){s(this,"type","all");s(this,"value","")}parse(e){const n=e.indexOf(":");n===-1?this.type=e:(this.type=e.slice(0,n),this.value=e.slice(n+1))}getText(e,n,i){var c,f;let r="";switch(this.type){case"all":r=e("all_devices");break;case"mac":r=((c=n.find(u=>u.mac===this.value))==null?void 0:c.name)??this.value;break;case"iface":r=((f=i.find(u=>u.ifName==this.value))==null?void 0:f.name)??this.value;break}return r}toValue(){return this.type=="all"?this.type:`${this.type}:${this.value}`}}function h(t){return A(t)?!0:o(t)}function o(t){return/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/.test(t)}function A(t){return/^((25[0-5]|(2[0-4]|1[0-9]|[1-9]|)[0-9])(\.(?!$)|$)){4}$/.test(t)}function k(t){if(t.includes(":")){if(o(t))return!0;let e="",n="";if(t.includes("]:")&&t.startsWith("[")){const i=t.split("]:");e=l(i[0],"["),n=i[1]}else{const i=t.split(":");e=i[0],n=i[1]}return h(e)&&a(n)}return h(t)}function a(t){return t.includes(",")?t.split(",").every(d):d(t)}function d(t){if(/^[0-9]{1,5}|([0-9]{1,5}\\-[0-9]{1,5})$/.test(t))if(t.includes("-")){const e=t.split("-"),n=parseInt(e[0]),i=parseInt(e[1]);return n>=1&&n0&&i<65536}else{const e=parseInt(t);return e>=1&&e<=65535}return!1}function b(t){if(t.includes(":")){if(F(t))return!0;let e="",n="";if(t.includes("]:")&&t.startsWith("[")){const i=t.split("]:");e=l(i[0],"["),n=i[1]}else{const i=t.split(":");e=i[0],n=i[1]}return m(e)&&a(n)}return m(t)}function g(t){const e=t.split("/");if(e.length!==2)return!1;const n=parseInt(e[1]);return A(e[0])&&n>=0&&n<=32}function F(t){const e=t.split("/");if(e.length!==2)return!1;const n=parseInt(e[1]);return o(e[0])&&n>32&&n<=128}function m(t){return g(t)?!0:F(t)}function _(t,e){let n=t;return n=l(t,"*."),/[a-z0-9]{2}/.test(n)?!0:new RegExp("^(?=.{1,253}\\.?$)(?:(?!-|[^.]+_)[A-Za-z0-9-_]{1,63}(?(t.IP="ip",t.NET="net",t.DNS="dns",t.REMOTE_PORT="remote_port",t.INTERNET="internet",t.INTERFACE="iface",t.LIST="list",t))(B||{});class Z{constructor(){s(this,"type","dns");s(this,"value","")}parse(e){const n=e.indexOf(":");n===-1?this.type=e:(this.type=e.slice(0,n),this.value=e.slice(n+1))}static hasInput(e){return["ip","net","dns","remote_port"].includes(e)}static hint(e){switch(e){case"ip":return"10.10.10.2";case"net":return"10.10.10.0/24";case"dns":return"example.com";case"remote_port":return"1419"}return""}static isValid(e,n){switch(e){case"ip":return k(n);case"net":return b(n);case"dns":return R(n);case"remote_port":return a(n)}return!0}getText(e,n){var i;return this.type=="internet"?e("target_type.internet"):this.type=="iface"?this.value?((i=n.find(r=>r.ifName==this.value))==null?void 0:i.name)??this.value:e("all_local_networks"):this.type=="remote_port"?e("remote_port",{port:this.value}):this.value}toValue(){return!this.value||this.type==="internet"?this.type:`${this.type}:${this.value}`}}const W={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},z=O("path",{fill:"currentColor",d:"M14.6 8.075q0-1.075-.712-1.725T12 5.7q-.725 0-1.312.313t-1.013.912q-.4.575-1.088.663T7.4 7.225q-.35-.325-.387-.8t.237-.9q.8-1.2 2.038-1.862T12 3q2.425 0 3.938 1.375t1.512 3.6q0 1.125-.475 2.025t-1.75 2.125q-.925.875-1.25 1.363T13.55 14.6q-.1.6-.513 1t-.987.4t-.987-.387t-.413-.963q0-.975.425-1.787T12.5 11.15q1.275-1.125 1.688-1.737t.412-1.338M12 22q-.825 0-1.412-.587T10 20t.588-1.412T12 18t1.413.588T14 20t-.587 1.413T12 22"},null,-1),M=[z];function V(t,e){return T(),$("svg",W,[...M])}const j={name:"material-symbols-question-mark-rounded",render:V};export{w as A,B as T,j as _,Z as a}; diff --git a/app/src/main/resources/web/assets/razor-C8NV1rZc.js b/app/src/main/resources/web/assets/razor-DGbs-Ass.js similarity index 98% rename from app/src/main/resources/web/assets/razor-C8NV1rZc.js rename to app/src/main/resources/web/assets/razor-DGbs-Ass.js index a51a32b6..1f7d7fc2 100644 --- a/app/src/main/resources/web/assets/razor-C8NV1rZc.js +++ b/app/src/main/resources/web/assets/razor-DGbs-Ass.js @@ -1 +1 @@ -import{m}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BaOpzcW2.js";import"./index-BzaaAwnX.js";var s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,p=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of l(e))!d.call(t,r)&&r!==o&&s(t,r,{get:()=>e[r],enumerable:!(n=c(e,r))||n.enumerable});return t},h=(t,e,o)=>(p(t,e,"default"),o),a={};h(a,m);var i=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${i.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${i.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:a.languages.IndentAction.Indent}}]},k={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};export{y as conf,k as language}; +import{m}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BNZRjtJE.js";import"./index-R8dLcqG_.js";var s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,p=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of l(e))!d.call(t,r)&&r!==o&&s(t,r,{get:()=>e[r],enumerable:!(n=c(e,r))||n.enumerable});return t},h=(t,e,o)=>(p(t,e,"default"),o),a={};h(a,m);var i=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${i.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${i.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:a.languages.IndentAction.Indent}}]},k={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};export{y as conf,k as language}; diff --git a/app/src/main/resources/web/assets/refresh-rounded-DnwgRawr.js b/app/src/main/resources/web/assets/refresh-rounded-D8TYDVGT.js similarity index 89% rename from app/src/main/resources/web/assets/refresh-rounded-DnwgRawr.js rename to app/src/main/resources/web/assets/refresh-rounded-D8TYDVGT.js index 1dfb31d5..0f5f786f 100644 --- a/app/src/main/resources/web/assets/refresh-rounded-DnwgRawr.js +++ b/app/src/main/resources/web/assets/refresh-rounded-D8TYDVGT.js @@ -1 +1 @@ -import{o as e,c as t,a as o}from"./index-BzaaAwnX.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=o("path",{fill:"currentColor",d:"M12 20q-3.35 0-5.675-2.325T4 12t2.325-5.675T12 4q1.725 0 3.3.712T18 6.75V5q0-.425.288-.712T19 4t.713.288T20 5v5q0 .425-.288.713T19 11h-5q-.425 0-.712-.288T13 10t.288-.712T14 9h3.2q-.8-1.4-2.187-2.2T12 6Q9.5 6 7.75 7.75T6 12t1.75 4.25T12 18q1.7 0 3.113-.862t2.187-2.313q.2-.35.563-.487t.737-.013q.4.125.575.525t-.025.75q-1.025 2-2.925 3.2T12 20"},null,-1),r=[s];function c(a,_){return e(),t("svg",n,[...r])}const h={name:"material-symbols-refresh-rounded",render:c};export{h as _}; +import{o as e,c as t,a as o}from"./index-R8dLcqG_.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=o("path",{fill:"currentColor",d:"M12 20q-3.35 0-5.675-2.325T4 12t2.325-5.675T12 4q1.725 0 3.3.712T18 6.75V5q0-.425.288-.712T19 4t.713.288T20 5v5q0 .425-.288.713T19 11h-5q-.425 0-.712-.288T13 10t.288-.712T14 9h3.2q-.8-1.4-2.187-2.2T12 6Q9.5 6 7.75 7.75T6 12t1.75 4.25T12 18q1.7 0 3.113-.862t2.187-2.313q.2-.35.563-.487t.737-.013q.4.125.575.525t-.025.75q-1.025 2-2.925 3.2T12 20"},null,-1),r=[s];function c(a,_){return e(),t("svg",n,[...r])}const h={name:"material-symbols-refresh-rounded",render:c};export{h as _}; diff --git a/app/src/main/resources/web/assets/rss-feed-rounded-9FbiHzkN.js b/app/src/main/resources/web/assets/rss-feed-rounded-BCiGdgJ5.js similarity index 92% rename from app/src/main/resources/web/assets/rss-feed-rounded-9FbiHzkN.js rename to app/src/main/resources/web/assets/rss-feed-rounded-BCiGdgJ5.js index fe285e50..8380cdb1 100644 --- a/app/src/main/resources/web/assets/rss-feed-rounded-9FbiHzkN.js +++ b/app/src/main/resources/web/assets/rss-feed-rounded-BCiGdgJ5.js @@ -1 +1 @@ -import{o as t,c as e,a as o}from"./index-BzaaAwnX.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=o("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19t.588-1.412T5 17t1.413.588T7 19t-.587 1.413T5 21m13.5 0q-.65 0-1.088-.475T16.9 19.4q-.275-2.425-1.312-4.537T12.9 11.1T9.138 8.413T4.6 7.1q-.65-.075-1.125-.512T3 5.5t.45-1.062t1.075-.363q3.075.275 5.763 1.563t4.737 3.337t3.338 4.738t1.562 5.762q.05.625-.363 1.075T18.5 21m-6 0q-.625 0-1.075-.437T10.85 19.5q-.225-1.225-.787-2.262T8.65 15.35t-1.888-1.412T4.5 13.15q-.625-.125-1.062-.575T3 11.5q0-.65.45-1.075t1.075-.325q1.825.25 3.413 1.063t2.837 2.062t2.063 2.838t1.062 3.412q.1.625-.325 1.075T12.5 21"},null,-1),c=[s];function r(T,a){return t(),e("svg",n,[...c])}const q={name:"material-symbols-rss-feed-rounded",render:r};export{q as _}; +import{o as t,c as e,a as o}from"./index-R8dLcqG_.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=o("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19t.588-1.412T5 17t1.413.588T7 19t-.587 1.413T5 21m13.5 0q-.65 0-1.088-.475T16.9 19.4q-.275-2.425-1.312-4.537T12.9 11.1T9.138 8.413T4.6 7.1q-.65-.075-1.125-.512T3 5.5t.45-1.062t1.075-.363q3.075.275 5.763 1.563t4.737 3.337t3.338 4.738t1.562 5.762q.05.625-.363 1.075T18.5 21m-6 0q-.625 0-1.075-.437T10.85 19.5q-.225-1.225-.787-2.262T8.65 15.35t-1.888-1.412T4.5 13.15q-.625-.125-1.062-.575T3 11.5q0-.65.45-1.075t1.075-.325q1.825.25 3.413 1.063t2.837 2.062t2.063 2.838t1.062 3.412q.1.625-.325 1.075T12.5 21"},null,-1),c=[s];function r(T,a){return t(),e("svg",n,[...c])}const q={name:"material-symbols-rss-feed-rounded",render:r};export{q as _}; diff --git a/app/src/main/resources/web/assets/search-DwB6FdxH.js b/app/src/main/resources/web/assets/search-ByVbj6Ls.js similarity index 94% rename from app/src/main/resources/web/assets/search-DwB6FdxH.js rename to app/src/main/resources/web/assets/search-ByVbj6Ls.js index 0642ce5c..e4b5293b 100644 --- a/app/src/main/resources/web/assets/search-DwB6FdxH.js +++ b/app/src/main/resources/web/assets/search-ByVbj6Ls.js @@ -1 +1 @@ -import{c8 as s,a8 as p,a7 as t}from"./index-BzaaAwnX.js";const v=()=>({copyFilter:(e,a)=>{a.text=e.text,a.feedId=e.feedId,a.tagIds=[...e.tagIds],a.bucketId=e.bucketId,a.today=e.today,a.type=e.type,a.trash=e.trash},parseQ:(e,a)=>{const u=s(a);e.tagIds=[],e.text=void 0,e.feedId=void 0,e.today=void 0,e.bucketId=void 0,e.type=void 0,e.trash=void 0,u.forEach(d=>{d.name==="text"?e.text=d.value:d.name==="feed_id"?e.feedId=d.value:d.name==="tag_id"?e.tagIds.push(d.value):d.name==="today"?e.today=d.value==="true":d.name==="bucket_id"?e.bucketId=d.value:d.name==="type"?e.type=d.value:d.name==="trash"&&(e.trash=d.value==="true")})},buildQ:e=>{const a=[];e.bucketId&&a.push({name:"bucket_id",op:"",value:e.bucketId}),e.today===!0&&a.push({name:"today",op:"",value:"true"}),e.trash!==void 0&&a.push({name:"trash",op:"",value:e.trash?"true":"false"}),e.type&&a.push({name:"type",op:"",value:e.type}),e.feedId&&a.push({name:"feed_id",op:"",value:e.feedId});for(const u of e.tagIds)a.push({name:"tag_id",op:"",value:u});return e.text!==void 0&&a.push({name:"text",op:"",value:e.text}),p(t(a))}});export{v as u}; +import{c8 as s,a8 as p,a7 as t}from"./index-R8dLcqG_.js";const v=()=>({copyFilter:(e,a)=>{a.text=e.text,a.feedId=e.feedId,a.tagIds=[...e.tagIds],a.bucketId=e.bucketId,a.today=e.today,a.type=e.type,a.trash=e.trash},parseQ:(e,a)=>{const u=s(a);e.tagIds=[],e.text=void 0,e.feedId=void 0,e.today=void 0,e.bucketId=void 0,e.type=void 0,e.trash=void 0,u.forEach(d=>{d.name==="text"?e.text=d.value:d.name==="feed_id"?e.feedId=d.value:d.name==="tag_id"?e.tagIds.push(d.value):d.name==="today"?e.today=d.value==="true":d.name==="bucket_id"?e.bucketId=d.value:d.name==="type"?e.type=d.value:d.name==="trash"&&(e.trash=d.value==="true")})},buildQ:e=>{const a=[];e.bucketId&&a.push({name:"bucket_id",op:"",value:e.bucketId}),e.today===!0&&a.push({name:"today",op:"",value:"true"}),e.trash!==void 0&&a.push({name:"trash",op:"",value:e.trash?"true":"false"}),e.type&&a.push({name:"type",op:"",value:e.type}),e.feedId&&a.push({name:"feed_id",op:"",value:e.feedId});for(const u of e.tagIds)a.push({name:"tag_id",op:"",value:u});return e.text!==void 0&&a.push({name:"text",op:"",value:e.text}),p(t(a))}});export{v as u}; diff --git a/app/src/main/resources/web/assets/search-rounded-Btuwf-IQ.js b/app/src/main/resources/web/assets/search-rounded-CULEMJ2O.js similarity index 88% rename from app/src/main/resources/web/assets/search-rounded-Btuwf-IQ.js rename to app/src/main/resources/web/assets/search-rounded-CULEMJ2O.js index 35e367ac..190e11b5 100644 --- a/app/src/main/resources/web/assets/search-rounded-Btuwf-IQ.js +++ b/app/src/main/resources/web/assets/search-rounded-CULEMJ2O.js @@ -1 +1 @@ -import{o as t,c as e,a as o}from"./index-BzaaAwnX.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=o("path",{fill:"currentColor",d:"M9.5 16q-2.725 0-4.612-1.888T3 9.5t1.888-4.612T9.5 3t4.613 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l5.6 5.6q.275.275.275.7t-.275.7t-.7.275t-.7-.275l-5.6-5.6q-.75.6-1.725.95T9.5 16m0-2q1.875 0 3.188-1.312T14 9.5t-1.312-3.187T9.5 5T6.313 6.313T5 9.5t1.313 3.188T9.5 14"},null,-1),c=[s];function r(a,l){return t(),e("svg",n,[...c])}const i={name:"material-symbols-search-rounded",render:r};export{i as _}; +import{o as t,c as e,a as o}from"./index-R8dLcqG_.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=o("path",{fill:"currentColor",d:"M9.5 16q-2.725 0-4.612-1.888T3 9.5t1.888-4.612T9.5 3t4.613 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l5.6 5.6q.275.275.275.7t-.275.7t-.7.275t-.7-.275l-5.6-5.6q-.75.6-1.725.95T9.5 16m0-2q1.875 0 3.188-1.312T14 9.5t-1.312-3.187T9.5 5T6.313 6.313T5 9.5t1.313 3.188T9.5 14"},null,-1),c=[s];function r(a,l){return t(),e("svg",n,[...c])}const i={name:"material-symbols-search-rounded",render:r};export{i as _}; diff --git a/app/src/main/resources/web/assets/sort-rounded-BiVhN4C5.js b/app/src/main/resources/web/assets/sort-rounded-CsJpi3ce.js similarity index 87% rename from app/src/main/resources/web/assets/sort-rounded-BiVhN4C5.js rename to app/src/main/resources/web/assets/sort-rounded-CsJpi3ce.js index fadc3b11..43cf2c74 100644 --- a/app/src/main/resources/web/assets/sort-rounded-BiVhN4C5.js +++ b/app/src/main/resources/web/assets/sort-rounded-CsJpi3ce.js @@ -1 +1 @@ -import{o as t,c as e,a as o}from"./index-BzaaAwnX.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=o("path",{fill:"currentColor",d:"M4 18q-.425 0-.712-.288T3 17t.288-.712T4 16h4q.425 0 .713.288T9 17t-.288.713T8 18zm0-5q-.425 0-.712-.288T3 12t.288-.712T4 11h10q.425 0 .713.288T15 12t-.288.713T14 13zm0-5q-.425 0-.712-.288T3 7t.288-.712T4 6h16q.425 0 .713.288T21 7t-.288.713T20 8z"},null,-1),c=[s];function r(a,_){return t(),e("svg",n,[...c])}const h={name:"material-symbols-sort-rounded",render:r};export{h as _}; +import{o as t,c as e,a as o}from"./index-R8dLcqG_.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=o("path",{fill:"currentColor",d:"M4 18q-.425 0-.712-.288T3 17t.288-.712T4 16h4q.425 0 .713.288T9 17t-.288.713T8 18zm0-5q-.425 0-.712-.288T3 12t.288-.712T4 11h10q.425 0 .713.288T15 12t-.288.713T14 13zm0-5q-.425 0-.712-.288T3 7t.288-.712T4 6h16q.425 0 .713.288T21 7t-.288.713T20 8z"},null,-1),c=[s];function r(a,_){return t(),e("svg",n,[...c])}const h={name:"material-symbols-sort-rounded",render:r};export{h as _}; diff --git a/app/src/main/resources/web/assets/tags-BvnEKqTV.js b/app/src/main/resources/web/assets/tags-Dbpv368M.js similarity index 96% rename from app/src/main/resources/web/assets/tags-BvnEKqTV.js rename to app/src/main/resources/web/assets/tags-Dbpv368M.js index cd8e38f6..8cae2a61 100644 --- a/app/src/main/resources/web/assets/tags-BvnEKqTV.js +++ b/app/src/main/resources/web/assets/tags-Dbpv368M.js @@ -1 +1 @@ -import{o as m,c as _,a,d as F,h as S,c4 as w,j as q,c5 as z,c6 as I,t as p,p as $,O as N,P as Q,m as t,x as G,aL as j,av as f,e as H,V as O,a1 as L,bO as x,a2 as E,H as K,g as k,C as A,Z as P,K as R,b9 as Z}from"./index-BzaaAwnX.js";import{u as J,a as U}from"./vee-validate.esm-DNjIRPsN.js";const W={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},X=a("path",{fill:"currentColor",d:"M19.125 14.625q-.275.425-.687.45t-.713-.2t-.413-.612t.188-.813L18.55 12L15 7h-4.725q-.5 0-.75-.312T9.275 6t.25-.687t.75-.313H15q.5 0 .925.213t.725.637l3.525 5q.2.275.288.563t.087.587t-.088.588t-.287.562zM5 19q-.825 0-1.412-.587T3 17V7q0-.275.063-.5t.187-.45L2.1 4.9q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l17 17q.275.275.275.7t-.275.7t-.7.275t-.7-.275l-3.15-3.15q-.225.125-.45.188T15 19zm9.2-2L5 7.8V17z"},null,-1),Y=[X];function ee(r,u){return m(),_("svg",W,[...Y])}const te={name:"material-symbols-label-off-outline-rounded",render:ee},oe={slot:"headline"},ae={slot:"content"},se=["label","selected"],ne=["label","selected"],de=["label","selected","onClick"],le={slot:"actions"},ie=["disabled"],re={key:0,indeterminate:"",slot:"icon"},ue=F({__name:"AddToTagsModal",props:{type:{type:String,required:!0},tags:{type:Array,default:()=>[]},query:{type:String,required:!0}},setup(r){const{handleSubmit:u}=J(),n=S("add_to_tags"),o=r;function c(e){const{button:l}=e.detail,v=l.dataset.value;n.value=v}const{value:s,errorMessage:d}=U("selectedTags",w().test("required","valid.required",e=>e.length),{initialValue:[]}),{mutate:g,loading:h,onDone:M}=q({document:z,appApi:!0}),{mutate:C,loading:y,onDone:V}=q({document:I,appApi:!0}),b=()=>{L.emit("items_tags_updated",{type:o.type}),L.emit("refetch_tags",o.type),f()};V(b),M(b);function B(e){s.value.includes(e)?x(s.value,l=>l.id===e.id):s.value.push(e)}const T=u(()=>{n.value==="add_to_tags"?C({type:o.type,tagIds:s.value.map(e=>e.id),query:o.query}):g({type:o.type,tagIds:s.value.map(e=>e.id),query:o.query})});return(e,l)=>{const v=E,D=te;return m(),_("md-dialog",null,[a("div",oe,p(e.$t("tags")),1),a("div",ae,[a("md-outlined-segmented-button-set",{onSegmentedButtonSetSelection:c},[a("md-outlined-segmented-button",{"data-value":"add_to_tags",label:e.$t("add_to_tags"),selected:n.value==="add_to_tags"},[$(v,{slot:"icon"})],8,se),a("md-outlined-segmented-button",{"data-value":"remove_from_tags",label:e.$t("remove_from_tags"),selected:n.value==="remove_from_tags"},[$(D,{slot:"icon"})],8,ne)],32),a("md-chip-set",null,[(m(!0),_(N,null,Q(r.tags,i=>(m(),_("md-filter-chip",{key:i.id,label:i.name,selected:t(s).includes(i),onClick:me=>B(i)},null,8,de))),128))]),G(a("div",{class:"invalid-feedback"},p(t(d)?e.$t(t(d)):""),513),[[j,t(d)]])]),a("div",le,[a("md-outlined-button",{value:"cancel",onClick:l[0]||(l[0]=(...i)=>t(f)&&t(f)(...i))},p(e.$t("cancel")),1),a("md-filled-button",{value:"save",disabled:t(y)||t(h),onClick:l[1]||(l[1]=(...i)=>t(T)&&t(T)(...i)),autofocus:""},[t(y)||t(h)?(m(),_("md-circular-progress",re)):H("",!0),O(" "+p(e.$t("save")),1)],8,ie)])])}}}),ce=K(ue,[["__scopeId","data-v-0ace06f9"]]),pe=(r,u)=>{const{t:n}=k();return{addToTags:(o,c,s)=>{let d=s;if(!c){if(o.length===0){A(n("select_first"),"error");return}d=`ids:${o.join(",")}`}P(ce,{type:r,tags:u.value,query:d})}}},ve=(r,u=()=>{})=>{const n=S([]),{t:o}=k(),{loading:c,fetch:s}=R({handle:async(d,g)=>{g?A(o(g),"error"):d&&(n.value=d.tags,u())},document:Z,variables:{type:r},appApi:!0});return{tags:n,loading:c,fetch:s}};export{pe as a,ve as u}; +import{o as m,c as _,a,d as F,h as S,c4 as w,j as q,c5 as z,c6 as I,t as p,p as $,O as N,P as Q,m as t,x as G,aL as j,av as f,e as H,V as O,a1 as L,bO as x,a2 as E,H as K,g as k,C as A,Z as P,K as R,b9 as Z}from"./index-R8dLcqG_.js";import{u as J,a as U}from"./vee-validate.esm-vpr6zxQb.js";const W={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},X=a("path",{fill:"currentColor",d:"M19.125 14.625q-.275.425-.687.45t-.713-.2t-.413-.612t.188-.813L18.55 12L15 7h-4.725q-.5 0-.75-.312T9.275 6t.25-.687t.75-.313H15q.5 0 .925.213t.725.637l3.525 5q.2.275.288.563t.087.587t-.088.588t-.287.562zM5 19q-.825 0-1.412-.587T3 17V7q0-.275.063-.5t.187-.45L2.1 4.9q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l17 17q.275.275.275.7t-.275.7t-.7.275t-.7-.275l-3.15-3.15q-.225.125-.45.188T15 19zm9.2-2L5 7.8V17z"},null,-1),Y=[X];function ee(r,u){return m(),_("svg",W,[...Y])}const te={name:"material-symbols-label-off-outline-rounded",render:ee},oe={slot:"headline"},ae={slot:"content"},se=["label","selected"],ne=["label","selected"],de=["label","selected","onClick"],le={slot:"actions"},ie=["disabled"],re={key:0,indeterminate:"",slot:"icon"},ue=F({__name:"AddToTagsModal",props:{type:{type:String,required:!0},tags:{type:Array,default:()=>[]},query:{type:String,required:!0}},setup(r){const{handleSubmit:u}=J(),n=S("add_to_tags"),o=r;function c(e){const{button:l}=e.detail,v=l.dataset.value;n.value=v}const{value:s,errorMessage:d}=U("selectedTags",w().test("required","valid.required",e=>e.length),{initialValue:[]}),{mutate:g,loading:h,onDone:M}=q({document:z,appApi:!0}),{mutate:C,loading:y,onDone:V}=q({document:I,appApi:!0}),b=()=>{L.emit("items_tags_updated",{type:o.type}),L.emit("refetch_tags",o.type),f()};V(b),M(b);function B(e){s.value.includes(e)?x(s.value,l=>l.id===e.id):s.value.push(e)}const T=u(()=>{n.value==="add_to_tags"?C({type:o.type,tagIds:s.value.map(e=>e.id),query:o.query}):g({type:o.type,tagIds:s.value.map(e=>e.id),query:o.query})});return(e,l)=>{const v=E,D=te;return m(),_("md-dialog",null,[a("div",oe,p(e.$t("tags")),1),a("div",ae,[a("md-outlined-segmented-button-set",{onSegmentedButtonSetSelection:c},[a("md-outlined-segmented-button",{"data-value":"add_to_tags",label:e.$t("add_to_tags"),selected:n.value==="add_to_tags"},[$(v,{slot:"icon"})],8,se),a("md-outlined-segmented-button",{"data-value":"remove_from_tags",label:e.$t("remove_from_tags"),selected:n.value==="remove_from_tags"},[$(D,{slot:"icon"})],8,ne)],32),a("md-chip-set",null,[(m(!0),_(N,null,Q(r.tags,i=>(m(),_("md-filter-chip",{key:i.id,label:i.name,selected:t(s).includes(i),onClick:me=>B(i)},null,8,de))),128))]),G(a("div",{class:"invalid-feedback"},p(t(d)?e.$t(t(d)):""),513),[[j,t(d)]])]),a("div",le,[a("md-outlined-button",{value:"cancel",onClick:l[0]||(l[0]=(...i)=>t(f)&&t(f)(...i))},p(e.$t("cancel")),1),a("md-filled-button",{value:"save",disabled:t(y)||t(h),onClick:l[1]||(l[1]=(...i)=>t(T)&&t(T)(...i)),autofocus:""},[t(y)||t(h)?(m(),_("md-circular-progress",re)):H("",!0),O(" "+p(e.$t("save")),1)],8,ie)])])}}}),ce=K(ue,[["__scopeId","data-v-0ace06f9"]]),pe=(r,u)=>{const{t:n}=k();return{addToTags:(o,c,s)=>{let d=s;if(!c){if(o.length===0){A(n("select_first"),"error");return}d=`ids:${o.join(",")}`}P(ce,{type:r,tags:u.value,query:d})}}},ve=(r,u=()=>{})=>{const n=S([]),{t:o}=k(),{loading:c,fetch:s}=R({handle:async(d,g)=>{g?A(o(g),"error"):d&&(n.value=d.tags,u())},document:Z,variables:{type:r},appApi:!0});return{tags:n,loading:c,fetch:s}};export{pe as a,ve as u}; diff --git a/app/src/main/resources/web/assets/tsMode-D5aWU1mP.js b/app/src/main/resources/web/assets/tsMode-DVLo0ZTq.js similarity index 99% rename from app/src/main/resources/web/assets/tsMode-D5aWU1mP.js rename to app/src/main/resources/web/assets/tsMode-DVLo0ZTq.js index 46e20101..7070f04e 100644 --- a/app/src/main/resources/web/assets/tsMode-D5aWU1mP.js +++ b/app/src/main/resources/web/assets/tsMode-DVLo0ZTq.js @@ -1,4 +1,4 @@ -var N=Object.defineProperty;var M=(e,t,r)=>t in e?N(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _=(e,t,r)=>(M(e,typeof t!="symbol"?t+"":t,r),r);import{t as K,m as R}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BaOpzcW2.js";import"./index-BzaaAwnX.js";var T=Object.defineProperty,E=Object.getOwnPropertyDescriptor,H=Object.getOwnPropertyNames,V=Object.prototype.hasOwnProperty,W=(e,t,r)=>t in e?T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,j=(e,t,r,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of H(t))!V.call(e,s)&&s!==r&&T(e,s,{get:()=>t[s],enumerable:!(l=E(t,s))||l.enumerable});return e},B=(e,t,r)=>(j(e,t,"default"),r),h=(e,t,r)=>(W(e,typeof t!="symbol"?t+"":t,r),r),i={};B(i,R);var U=class{constructor(e,t){_(this,"_configChangeListener");_(this,"_updateExtraLibsToken");_(this,"_extraLibsChangeListener");_(this,"_worker");_(this,"_client");this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker()),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange(()=>this._updateExtraLibs())}dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;const e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||(this._client=(async()=>(this._worker=i.editor.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(i.editor.getModels().filter(e=>e.getLanguageId()===this._modeId).map(e=>e.uri)):await this._worker.getProxy()))()),this._client}async getLanguageServiceWorker(...e){const t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}},o={};o["lib.d.ts"]=!0;o["lib.dom.d.ts"]=!0;o["lib.dom.iterable.d.ts"]=!0;o["lib.es2015.collection.d.ts"]=!0;o["lib.es2015.core.d.ts"]=!0;o["lib.es2015.d.ts"]=!0;o["lib.es2015.generator.d.ts"]=!0;o["lib.es2015.iterable.d.ts"]=!0;o["lib.es2015.promise.d.ts"]=!0;o["lib.es2015.proxy.d.ts"]=!0;o["lib.es2015.reflect.d.ts"]=!0;o["lib.es2015.symbol.d.ts"]=!0;o["lib.es2015.symbol.wellknown.d.ts"]=!0;o["lib.es2016.array.include.d.ts"]=!0;o["lib.es2016.d.ts"]=!0;o["lib.es2016.full.d.ts"]=!0;o["lib.es2017.d.ts"]=!0;o["lib.es2017.full.d.ts"]=!0;o["lib.es2017.intl.d.ts"]=!0;o["lib.es2017.object.d.ts"]=!0;o["lib.es2017.sharedmemory.d.ts"]=!0;o["lib.es2017.string.d.ts"]=!0;o["lib.es2017.typedarrays.d.ts"]=!0;o["lib.es2018.asyncgenerator.d.ts"]=!0;o["lib.es2018.asynciterable.d.ts"]=!0;o["lib.es2018.d.ts"]=!0;o["lib.es2018.full.d.ts"]=!0;o["lib.es2018.intl.d.ts"]=!0;o["lib.es2018.promise.d.ts"]=!0;o["lib.es2018.regexp.d.ts"]=!0;o["lib.es2019.array.d.ts"]=!0;o["lib.es2019.d.ts"]=!0;o["lib.es2019.full.d.ts"]=!0;o["lib.es2019.object.d.ts"]=!0;o["lib.es2019.string.d.ts"]=!0;o["lib.es2019.symbol.d.ts"]=!0;o["lib.es2020.bigint.d.ts"]=!0;o["lib.es2020.d.ts"]=!0;o["lib.es2020.full.d.ts"]=!0;o["lib.es2020.intl.d.ts"]=!0;o["lib.es2020.promise.d.ts"]=!0;o["lib.es2020.sharedmemory.d.ts"]=!0;o["lib.es2020.string.d.ts"]=!0;o["lib.es2020.symbol.wellknown.d.ts"]=!0;o["lib.es2021.d.ts"]=!0;o["lib.es2021.full.d.ts"]=!0;o["lib.es2021.intl.d.ts"]=!0;o["lib.es2021.promise.d.ts"]=!0;o["lib.es2021.string.d.ts"]=!0;o["lib.es2021.weakref.d.ts"]=!0;o["lib.es5.d.ts"]=!0;o["lib.es6.d.ts"]=!0;o["lib.esnext.d.ts"]=!0;o["lib.esnext.full.d.ts"]=!0;o["lib.esnext.intl.d.ts"]=!0;o["lib.esnext.promise.d.ts"]=!0;o["lib.esnext.string.d.ts"]=!0;o["lib.esnext.weakref.d.ts"]=!0;o["lib.scripthost.d.ts"]=!0;o["lib.webworker.d.ts"]=!0;o["lib.webworker.importscripts.d.ts"]=!0;o["lib.webworker.iterable.d.ts"]=!0;function F(e,t,r=0){if(typeof e=="string")return e;if(e===void 0)return"";let l="";if(r){l+=t;for(let s=0;st.text).join(""):""}var w=class{constructor(e){this._worker=e}_textSpanToRange(e,t){let r=e.getPositionAt(t.start),l=e.getPositionAt(t.start+t.length),{lineNumber:s,column:g}=r,{lineNumber:u,column:a}=l;return{startLineNumber:s,startColumn:g,endLineNumber:u,endColumn:a}}},$=class{constructor(e){_(this,"_libFiles");_(this,"_hasFetchedLibFiles");_(this,"_fetchLibFilesPromise");this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(e){return e&&e.path.indexOf("/lib.")===0?!!o[e.path.slice(1)]:!1}getOrCreateModel(e){const t=i.Uri.parse(e),r=i.editor.getModel(t);if(r)return r;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return i.editor.createModel(this._libFiles[t.path.slice(1)],"typescript",t);const l=K.getExtraLibs()[e];return l?i.editor.createModel(l.content,"typescript",t):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then(e=>e.getLibFiles()).then(e=>{this._hasFetchedLibFiles=!0,this._libFiles=e})),this._fetchLibFilesPromise}},z=class extends w{constructor(t,r,l,s){super(s);_(this,"_disposables",[]);_(this,"_listener",Object.create(null));this._libFiles=t,this._defaults=r,this._selector=l;const g=n=>{if(n.getLanguageId()!==l)return;const p=()=>{const{onlyVisible:y}=this._defaults.getDiagnosticsOptions();y?n.isAttachedToEditor()&&this._doValidate(n):this._doValidate(n)};let d;const f=n.onDidChangeContent(()=>{clearTimeout(d),d=window.setTimeout(p,500)}),b=n.onDidChangeAttached(()=>{const{onlyVisible:y}=this._defaults.getDiagnosticsOptions();y&&(n.isAttachedToEditor()?p():i.editor.setModelMarkers(n,this._selector,[]))});this._listener[n.uri.toString()]={dispose(){f.dispose(),b.dispose(),clearTimeout(d)}},p()},u=n=>{i.editor.setModelMarkers(n,this._selector,[]);const p=n.uri.toString();this._listener[p]&&(this._listener[p].dispose(),delete this._listener[p])};this._disposables.push(i.editor.onDidCreateModel(n=>g(n))),this._disposables.push(i.editor.onWillDisposeModel(u)),this._disposables.push(i.editor.onDidChangeModelLanguage(n=>{u(n.model),g(n.model)})),this._disposables.push({dispose(){for(const n of i.editor.getModels())u(n)}});const a=()=>{for(const n of i.editor.getModels())u(n),g(n)};this._disposables.push(this._defaults.onDidChange(a)),this._disposables.push(this._defaults.onDidExtraLibsChange(a)),i.editor.getModels().forEach(n=>g(n))}dispose(){this._disposables.forEach(t=>t&&t.dispose()),this._disposables=[]}async _doValidate(t){const r=await this._worker(t.uri);if(t.isDisposed())return;const l=[],{noSyntaxValidation:s,noSemanticValidation:g,noSuggestionDiagnostics:u}=this._defaults.getDiagnosticsOptions();s||l.push(r.getSyntacticDiagnostics(t.uri.toString())),g||l.push(r.getSemanticDiagnostics(t.uri.toString())),u||l.push(r.getSuggestionDiagnostics(t.uri.toString()));const a=await Promise.all(l);if(!a||t.isDisposed())return;const n=a.reduce((d,f)=>f.concat(d),[]).filter(d=>(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(d.code)===-1),p=n.map(d=>d.relatedInformation||[]).reduce((d,f)=>f.concat(d),[]).map(d=>d.file?i.Uri.parse(d.file.fileName):null);await this._libFiles.fetchLibFilesIfNecessary(p),!t.isDisposed()&&i.editor.setModelMarkers(t,this._selector,n.map(d=>this._convertDiagnostics(t,d)))}_convertDiagnostics(t,r){const l=r.start||0,s=r.length||1,{lineNumber:g,column:u}=t.getPositionAt(l),{lineNumber:a,column:n}=t.getPositionAt(l+s),p=[];return r.reportsUnnecessary&&p.push(i.MarkerTag.Unnecessary),r.reportsDeprecated&&p.push(i.MarkerTag.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(r.category),startLineNumber:g,startColumn:u,endLineNumber:a,endColumn:n,message:F(r.messageText,` +var N=Object.defineProperty;var M=(e,t,r)=>t in e?N(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _=(e,t,r)=>(M(e,typeof t!="symbol"?t+"":t,r),r);import{t as K,m as R}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BNZRjtJE.js";import"./index-R8dLcqG_.js";var T=Object.defineProperty,E=Object.getOwnPropertyDescriptor,H=Object.getOwnPropertyNames,V=Object.prototype.hasOwnProperty,W=(e,t,r)=>t in e?T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,j=(e,t,r,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of H(t))!V.call(e,s)&&s!==r&&T(e,s,{get:()=>t[s],enumerable:!(l=E(t,s))||l.enumerable});return e},B=(e,t,r)=>(j(e,t,"default"),r),h=(e,t,r)=>(W(e,typeof t!="symbol"?t+"":t,r),r),i={};B(i,R);var U=class{constructor(e,t){_(this,"_configChangeListener");_(this,"_updateExtraLibsToken");_(this,"_extraLibsChangeListener");_(this,"_worker");_(this,"_client");this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker()),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange(()=>this._updateExtraLibs())}dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;const e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||(this._client=(async()=>(this._worker=i.editor.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(i.editor.getModels().filter(e=>e.getLanguageId()===this._modeId).map(e=>e.uri)):await this._worker.getProxy()))()),this._client}async getLanguageServiceWorker(...e){const t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}},o={};o["lib.d.ts"]=!0;o["lib.dom.d.ts"]=!0;o["lib.dom.iterable.d.ts"]=!0;o["lib.es2015.collection.d.ts"]=!0;o["lib.es2015.core.d.ts"]=!0;o["lib.es2015.d.ts"]=!0;o["lib.es2015.generator.d.ts"]=!0;o["lib.es2015.iterable.d.ts"]=!0;o["lib.es2015.promise.d.ts"]=!0;o["lib.es2015.proxy.d.ts"]=!0;o["lib.es2015.reflect.d.ts"]=!0;o["lib.es2015.symbol.d.ts"]=!0;o["lib.es2015.symbol.wellknown.d.ts"]=!0;o["lib.es2016.array.include.d.ts"]=!0;o["lib.es2016.d.ts"]=!0;o["lib.es2016.full.d.ts"]=!0;o["lib.es2017.d.ts"]=!0;o["lib.es2017.full.d.ts"]=!0;o["lib.es2017.intl.d.ts"]=!0;o["lib.es2017.object.d.ts"]=!0;o["lib.es2017.sharedmemory.d.ts"]=!0;o["lib.es2017.string.d.ts"]=!0;o["lib.es2017.typedarrays.d.ts"]=!0;o["lib.es2018.asyncgenerator.d.ts"]=!0;o["lib.es2018.asynciterable.d.ts"]=!0;o["lib.es2018.d.ts"]=!0;o["lib.es2018.full.d.ts"]=!0;o["lib.es2018.intl.d.ts"]=!0;o["lib.es2018.promise.d.ts"]=!0;o["lib.es2018.regexp.d.ts"]=!0;o["lib.es2019.array.d.ts"]=!0;o["lib.es2019.d.ts"]=!0;o["lib.es2019.full.d.ts"]=!0;o["lib.es2019.object.d.ts"]=!0;o["lib.es2019.string.d.ts"]=!0;o["lib.es2019.symbol.d.ts"]=!0;o["lib.es2020.bigint.d.ts"]=!0;o["lib.es2020.d.ts"]=!0;o["lib.es2020.full.d.ts"]=!0;o["lib.es2020.intl.d.ts"]=!0;o["lib.es2020.promise.d.ts"]=!0;o["lib.es2020.sharedmemory.d.ts"]=!0;o["lib.es2020.string.d.ts"]=!0;o["lib.es2020.symbol.wellknown.d.ts"]=!0;o["lib.es2021.d.ts"]=!0;o["lib.es2021.full.d.ts"]=!0;o["lib.es2021.intl.d.ts"]=!0;o["lib.es2021.promise.d.ts"]=!0;o["lib.es2021.string.d.ts"]=!0;o["lib.es2021.weakref.d.ts"]=!0;o["lib.es5.d.ts"]=!0;o["lib.es6.d.ts"]=!0;o["lib.esnext.d.ts"]=!0;o["lib.esnext.full.d.ts"]=!0;o["lib.esnext.intl.d.ts"]=!0;o["lib.esnext.promise.d.ts"]=!0;o["lib.esnext.string.d.ts"]=!0;o["lib.esnext.weakref.d.ts"]=!0;o["lib.scripthost.d.ts"]=!0;o["lib.webworker.d.ts"]=!0;o["lib.webworker.importscripts.d.ts"]=!0;o["lib.webworker.iterable.d.ts"]=!0;function F(e,t,r=0){if(typeof e=="string")return e;if(e===void 0)return"";let l="";if(r){l+=t;for(let s=0;st.text).join(""):""}var w=class{constructor(e){this._worker=e}_textSpanToRange(e,t){let r=e.getPositionAt(t.start),l=e.getPositionAt(t.start+t.length),{lineNumber:s,column:g}=r,{lineNumber:u,column:a}=l;return{startLineNumber:s,startColumn:g,endLineNumber:u,endColumn:a}}},$=class{constructor(e){_(this,"_libFiles");_(this,"_hasFetchedLibFiles");_(this,"_fetchLibFilesPromise");this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(e){return e&&e.path.indexOf("/lib.")===0?!!o[e.path.slice(1)]:!1}getOrCreateModel(e){const t=i.Uri.parse(e),r=i.editor.getModel(t);if(r)return r;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return i.editor.createModel(this._libFiles[t.path.slice(1)],"typescript",t);const l=K.getExtraLibs()[e];return l?i.editor.createModel(l.content,"typescript",t):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then(e=>e.getLibFiles()).then(e=>{this._hasFetchedLibFiles=!0,this._libFiles=e})),this._fetchLibFilesPromise}},z=class extends w{constructor(t,r,l,s){super(s);_(this,"_disposables",[]);_(this,"_listener",Object.create(null));this._libFiles=t,this._defaults=r,this._selector=l;const g=n=>{if(n.getLanguageId()!==l)return;const p=()=>{const{onlyVisible:y}=this._defaults.getDiagnosticsOptions();y?n.isAttachedToEditor()&&this._doValidate(n):this._doValidate(n)};let d;const f=n.onDidChangeContent(()=>{clearTimeout(d),d=window.setTimeout(p,500)}),b=n.onDidChangeAttached(()=>{const{onlyVisible:y}=this._defaults.getDiagnosticsOptions();y&&(n.isAttachedToEditor()?p():i.editor.setModelMarkers(n,this._selector,[]))});this._listener[n.uri.toString()]={dispose(){f.dispose(),b.dispose(),clearTimeout(d)}},p()},u=n=>{i.editor.setModelMarkers(n,this._selector,[]);const p=n.uri.toString();this._listener[p]&&(this._listener[p].dispose(),delete this._listener[p])};this._disposables.push(i.editor.onDidCreateModel(n=>g(n))),this._disposables.push(i.editor.onWillDisposeModel(u)),this._disposables.push(i.editor.onDidChangeModelLanguage(n=>{u(n.model),g(n.model)})),this._disposables.push({dispose(){for(const n of i.editor.getModels())u(n)}});const a=()=>{for(const n of i.editor.getModels())u(n),g(n)};this._disposables.push(this._defaults.onDidChange(a)),this._disposables.push(this._defaults.onDidExtraLibsChange(a)),i.editor.getModels().forEach(n=>g(n))}dispose(){this._disposables.forEach(t=>t&&t.dispose()),this._disposables=[]}async _doValidate(t){const r=await this._worker(t.uri);if(t.isDisposed())return;const l=[],{noSyntaxValidation:s,noSemanticValidation:g,noSuggestionDiagnostics:u}=this._defaults.getDiagnosticsOptions();s||l.push(r.getSyntacticDiagnostics(t.uri.toString())),g||l.push(r.getSemanticDiagnostics(t.uri.toString())),u||l.push(r.getSuggestionDiagnostics(t.uri.toString()));const a=await Promise.all(l);if(!a||t.isDisposed())return;const n=a.reduce((d,f)=>f.concat(d),[]).filter(d=>(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(d.code)===-1),p=n.map(d=>d.relatedInformation||[]).reduce((d,f)=>f.concat(d),[]).map(d=>d.file?i.Uri.parse(d.file.fileName):null);await this._libFiles.fetchLibFilesIfNecessary(p),!t.isDisposed()&&i.editor.setModelMarkers(t,this._selector,n.map(d=>this._convertDiagnostics(t,d)))}_convertDiagnostics(t,r){const l=r.start||0,s=r.length||1,{lineNumber:g,column:u}=t.getPositionAt(l),{lineNumber:a,column:n}=t.getPositionAt(l+s),p=[];return r.reportsUnnecessary&&p.push(i.MarkerTag.Unnecessary),r.reportsDeprecated&&p.push(i.MarkerTag.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(r.category),startLineNumber:g,startColumn:u,endLineNumber:a,endColumn:n,message:F(r.messageText,` `),code:r.code.toString(),tags:p,relatedInformation:this._convertRelatedInformation(t,r.relatedInformation)}}_convertRelatedInformation(t,r){if(!r)return[];const l=[];return r.forEach(s=>{let g=t;if(s.file&&(g=this._libFiles.getOrCreateModel(s.file.fileName)),!g)return;const u=s.start||0,a=s.length||1,{lineNumber:n,column:p}=g.getPositionAt(u),{lineNumber:d,column:f}=g.getPositionAt(u+a);l.push({resource:g.uri,startLineNumber:n,startColumn:p,endLineNumber:d,endColumn:f,message:F(s.messageText,` `)})}),l}_tsDiagnosticCategoryToMarkerSeverity(t){switch(t){case 1:return i.MarkerSeverity.Error;case 3:return i.MarkerSeverity.Info;case 0:return i.MarkerSeverity.Warning;case 2:return i.MarkerSeverity.Hint}return i.MarkerSeverity.Info}},C=class extends w{get triggerCharacters(){return["."]}async provideCompletionItems(e,t,r,l){const s=e.getWordUntilPosition(t),g=new i.Range(t.lineNumber,s.startColumn,t.lineNumber,s.endColumn),u=e.uri,a=e.getOffsetAt(t),n=await this._worker(u);if(e.isDisposed())return;const p=await n.getCompletionsAtPosition(u.toString(),a);return!p||e.isDisposed()?void 0:{suggestions:p.entries.map(f=>{let b=g;if(f.replacementSpan){const x=e.getPositionAt(f.replacementSpan.start),v=e.getPositionAt(f.replacementSpan.start+f.replacementSpan.length);b=new i.Range(x.lineNumber,x.column,v.lineNumber,v.column)}const y=[];return f.kindModifiers!==void 0&&f.kindModifiers.indexOf("deprecated")!==-1&&y.push(i.languages.CompletionItemTag.Deprecated),{uri:u,position:t,offset:a,range:b,label:f.name,insertText:f.name,sortText:f.sortText,kind:C.convertKind(f.kind),tags:y}})}}async resolveCompletionItem(e,t){const r=e,l=r.uri,s=r.position,g=r.offset,a=await(await this._worker(l)).getCompletionEntryDetails(l.toString(),g,r.label);return a?{uri:l,position:s,label:a.name,kind:C.convertKind(a.kind),detail:k(a.displayParts),documentation:{value:C.createDocumentationString(a)}}:r}static convertKind(e){switch(e){case c.primitiveType:case c.keyword:return i.languages.CompletionItemKind.Keyword;case c.variable:case c.localVariable:return i.languages.CompletionItemKind.Variable;case c.memberVariable:case c.memberGetAccessor:case c.memberSetAccessor:return i.languages.CompletionItemKind.Field;case c.function:case c.memberFunction:case c.constructSignature:case c.callSignature:case c.indexSignature:return i.languages.CompletionItemKind.Function;case c.enum:return i.languages.CompletionItemKind.Enum;case c.module:return i.languages.CompletionItemKind.Module;case c.class:return i.languages.CompletionItemKind.Class;case c.interface:return i.languages.CompletionItemKind.Interface;case c.warning:return i.languages.CompletionItemKind.File}return i.languages.CompletionItemKind.Property}static createDocumentationString(e){let t=k(e.documentation);if(e.tags)for(const r of e.tags)t+=` diff --git a/app/src/main/resources/web/assets/typescript-B2JOWJ8l.js b/app/src/main/resources/web/assets/typescript-L8Bz5EfD.js similarity index 98% rename from app/src/main/resources/web/assets/typescript-B2JOWJ8l.js rename to app/src/main/resources/web/assets/typescript-L8Bz5EfD.js index 47cce31c..d0695440 100644 --- a/app/src/main/resources/web/assets/typescript-B2JOWJ8l.js +++ b/app/src/main/resources/web/assets/typescript-L8Bz5EfD.js @@ -1 +1 @@ -import{m as s}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BaOpzcW2.js";import"./index-BzaaAwnX.js";var c=Object.defineProperty,a=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,l=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of p(e))!g.call(t,n)&&n!==o&&c(t,n,{get:()=>e[n],enumerable:!(i=a(e,n))||i.enumerable});return t},d=(t,e,o)=>(l(t,e,"default"),o),r={};d(r,s);var b={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:r.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:r.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:r.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:r.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},u={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","satisfies","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};export{b as conf,u as language}; +import{m as s}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BNZRjtJE.js";import"./index-R8dLcqG_.js";var c=Object.defineProperty,a=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,l=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of p(e))!g.call(t,n)&&n!==o&&c(t,n,{get:()=>e[n],enumerable:!(i=a(e,n))||i.enumerable});return t},d=(t,e,o)=>(l(t,e,"default"),o),r={};d(r,s);var b={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:r.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:r.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:r.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:r.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},u={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","satisfies","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};export{b as conf,u as language}; diff --git a/app/src/main/resources/web/assets/upload-rounded-BkrPpEdb.js b/app/src/main/resources/web/assets/upload-rounded-CQIzYelP.js similarity index 90% rename from app/src/main/resources/web/assets/upload-rounded-BkrPpEdb.js rename to app/src/main/resources/web/assets/upload-rounded-CQIzYelP.js index f38fe309..953a1149 100644 --- a/app/src/main/resources/web/assets/upload-rounded-BkrPpEdb.js +++ b/app/src/main/resources/web/assets/upload-rounded-CQIzYelP.js @@ -1 +1 @@ -import{o as t,c as e,a as o}from"./index-BzaaAwnX.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=o("path",{fill:"currentColor",d:"M6 20q-.825 0-1.412-.587T4 18v-2q0-.425.288-.712T5 15t.713.288T6 16v2h12v-2q0-.425.288-.712T19 15t.713.288T20 16v2q0 .825-.587 1.413T18 20zm5-12.15L9.125 9.725q-.3.3-.712.288T7.7 9.7q-.275-.3-.288-.7t.288-.7l3.6-3.6q.15-.15.325-.212T12 4.425t.375.063t.325.212l3.6 3.6q.3.3.288.7t-.288.7q-.3.3-.712.313t-.713-.288L13 7.85V15q0 .425-.288.713T12 16t-.712-.288T11 15z"},null,-1),c=[s];function a(l,r){return t(),e("svg",n,[...c])}const i={name:"material-symbols-upload-rounded",render:a};export{i as _}; +import{o as t,c as e,a as o}from"./index-R8dLcqG_.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=o("path",{fill:"currentColor",d:"M6 20q-.825 0-1.412-.587T4 18v-2q0-.425.288-.712T5 15t.713.288T6 16v2h12v-2q0-.425.288-.712T19 15t.713.288T20 16v2q0 .825-.587 1.413T18 20zm5-12.15L9.125 9.725q-.3.3-.712.288T7.7 9.7q-.275-.3-.288-.7t.288-.7l3.6-3.6q.15-.15.325-.212T12 4.425t.375.063t.325.212l3.6 3.6q.3.3.288.7t-.288.7q-.3.3-.712.313t-.713-.288L13 7.85V15q0 .425-.288.713T12 16t-.712-.288T11 15z"},null,-1),c=[s];function a(l,r){return t(),e("svg",n,[...c])}const i={name:"material-symbols-upload-rounded",render:a};export{i as _}; diff --git a/app/src/main/resources/web/assets/vee-validate.esm-DNjIRPsN.js b/app/src/main/resources/web/assets/vee-validate.esm-vpr6zxQb.js similarity index 99% rename from app/src/main/resources/web/assets/vee-validate.esm-DNjIRPsN.js rename to app/src/main/resources/web/assets/vee-validate.esm-vpr6zxQb.js index a2d1f966..4403dd6e 100644 --- a/app/src/main/resources/web/assets/vee-validate.esm-DNjIRPsN.js +++ b/app/src/main/resources/web/assets/vee-validate.esm-vpr6zxQb.js @@ -1 +1 @@ -import{aH as j,c9 as O,af as vn,ca as hn,z as Pe,m as w,k as se,cb as Tn,h as Y,I as Fe,aw as ee,cc as kn,cd as Rn,ce as Un,cf as Ne,cg as Bn}from"./index-BzaaAwnX.js";function x(e){return typeof e=="function"}function mn(e){return e==null}const ce=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function Xe(e){return Number(e)>=0}function Dn(e){const n=parseFloat(e);return isNaN(n)?e:n}function zn(e){return typeof e=="object"&&e!==null}function xn(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function tn(e){if(!zn(e)||xn(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function Oe(e,n){return Object.keys(n).forEach(r=>{if(tn(n[r])&&tn(e[r])){e[r]||(e[r]={}),Oe(e[r],n[r]);return}e[r]=n[r]}),e}function pe(e){const n=e.split(".");if(!n.length)return"";let r=String(n[0]);for(let l=1;lHn(u)&&a in u?u[a]:r,e):r}function ie(e,n,r){if(Me(n)){e[Qe(n)]=r;return}const l=n.split(/\.|\[(\d+)\]/).filter(Boolean);let u=e;for(let a=0;aL(e,r.slice(0,h).join(".")));for(let a=u.length-1;a>=0;a--)if(Gn(u[a])){if(a===0){We(e,r[0]);continue}We(u[a-1],r[a-1])}}function q(e){return Object.keys(e)}function pn(e,n=void 0){const r=Ne();return(r==null?void 0:r.provides[e])||Un(e,n)}function sn(e,n,r){if(Array.isArray(e)){const l=[...e],u=l.findIndex(a=>B(a,n));return u>=0?l.splice(u,1):l.push(n),l}return B(e,n)?r:n}function cn(e,n=0){let r=null,l=[];return function(...u){return r&&clearTimeout(r),r=setTimeout(()=>{const a=e(...u);l.forEach(h=>h(a)),l=[]},n),new Promise(a=>l.push(a))}}function Xn(e,n){return ce(n)&&n.number?Dn(e):e}function Ge(e,n){let r;return async function(...u){const a=e(...u);r=a;const h=await a;return a!==r?h:(r=void 0,n(h,u))}}function Ke(e){return Array.isArray(e)?e:e?[e]:[]}function Ee(e,n){const r={};for(const l in e)n.includes(l)||(r[l]=e[l]);return r}function Jn(e){let n=null,r=[];return function(...l){const u=ee(()=>{if(n!==u)return;const a=e(...l);r.forEach(h=>h(a)),r=[],n=null});return n=u,new Promise(a=>r.push(a))}}function qe(e){if(Vn(e))return e._value}function Vn(e){return"_value"in e}function Qn(e){return e.type==="number"||e.type==="range"?Number.isNaN(e.valueAsNumber)?e.value:e.valueAsNumber:e.value}function Ce(e){if(!bn(e))return e;const n=e.target;if(yn(n.type)&&Vn(n))return qe(n);if(n.type==="file"&&n.files){const r=Array.from(n.files);return n.multiple?r:r[0]}if(Kn(n))return Array.from(n.options).filter(r=>r.selected&&!r.disabled).map(qe);if(gn(n)){const r=Array.from(n.options).find(l=>l.selected);return r?qe(r):n.value}return Qn(n)}function On(e){const n={};return Object.defineProperty(n,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?ce(e)&&e._$$isNormalized?e:ce(e)?Object.keys(e).reduce((r,l)=>{const u=Zn(e[l]);return e[l]!==!1&&(r[l]=dn(u)),r},n):typeof e!="string"?n:e.split("|").reduce((r,l)=>{const u=er(l);return u.name&&(r[u.name]=dn(u.params)),r},n):n}function Zn(e){return e===!0?[]:Array.isArray(e)||ce(e)?e:[e]}function dn(e){const n=r=>typeof r=="string"&&r[0]==="@"?nr(r.slice(1)):r;return Array.isArray(e)?e.map(n):e instanceof RegExp?[e]:Object.keys(e).reduce((r,l)=>(r[l]=n(e[l]),r),{})}const er=e=>{let n=[];const r=e.split(":")[0];return e.includes(":")&&(n=e.split(":").slice(1).join(":").split(",")),{name:r,params:n}};function nr(e){const n=r=>L(r,e)||r[e];return n.__locatorRef=e,n}function rr(e){return Array.isArray(e)?e.filter(He):q(e).filter(n=>He(e[n])).map(n=>e[n])}const tr={generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0};let ir=Object.assign({},tr);const Ve=()=>ir;async function _n(e,n,r={}){const l=r==null?void 0:r.bails,u={name:(r==null?void 0:r.name)||"{field}",rules:n,label:r==null?void 0:r.label,bails:l??!0,formData:(r==null?void 0:r.values)||{}},a=await lr(u,e);return Object.assign(Object.assign({},a),{valid:!a.errors.length})}async function lr(e,n){const r=e.rules;if(X(r)||Ie(r))return ur(n,Object.assign(Object.assign({},e),{rules:r}));if(x(r)||Array.isArray(r)){const v={field:e.label||e.name,name:e.name,label:e.label,form:e.formData,value:n},c=Array.isArray(r)?r:[r],s=c.length,S=[];for(let p=0;p{const s=c.path||"";return v[s]||(v[s]={errors:[],path:s}),v[s].errors.push(...c.errors),v},{});return{errors:Object.values(h)}}}}}async function ur(e,n){const l=await(X(n.rules)?n.rules:Sn(n.rules)).parse(e,{formData:n.formData}),u=[];for(const a of l.errors)a.errors.length&&u.push(...a.errors);return{value:l.value,errors:u}}async function or(e,n,r){const l=$n(r.name);if(!l)throw new Error(`No such validator '${r.name}' exists.`);const u=sr(r.params,e.formData),a={field:e.label||e.name,name:e.name,label:e.label,value:n,form:e.formData,rule:Object.assign(Object.assign({},r),{params:u})},h=await l(n,u,a);return typeof h=="string"?{error:h}:{error:h?void 0:An(a)}}function An(e){const n=Ve().generateMessage;return n?n(e):"Field is invalid"}function sr(e,n){const r=l=>He(l)?l(n):l;return Array.isArray(e)?e.map(r):Object.keys(e).reduce((l,u)=>(l[u]=r(e[u]),l),{})}async function cr(e,n){const l=await(X(e)?e:Sn(e)).parse(E(n)),u={},a={};for(const h of l.errors){const v=h.errors,c=(h.path||"").replace(/\["(\d+)"\]/g,(s,S)=>`[${S}]`);u[c]={valid:!v.length,errors:v},v.length&&(a[c]=v[0])}return{valid:!l.errors.length,results:u,errors:a,values:l.value,source:"schema"}}async function dr(e,n,r){const u=q(e).map(async s=>{var S,p,F;const g=(S=r==null?void 0:r.names)===null||S===void 0?void 0:S[s],M=await _n(L(n,s),e[s],{name:(g==null?void 0:g.name)||s,label:g==null?void 0:g.label,values:n,bails:(F=(p=r==null?void 0:r.bailsMap)===null||p===void 0?void 0:p[s])!==null&&F!==void 0?F:!0});return Object.assign(Object.assign({},M),{path:s})});let a=!0;const h=await Promise.all(u),v={},c={};for(const s of h)v[s.path]={valid:s.valid,errors:s.errors},s.valid||(a=!1,c[s.path]=s.errors[0]);return{valid:a,results:v,errors:c,source:"schema"}}let fn=0;function fr(e,n){const{value:r,initialValue:l,setInitialValue:u}=vr(e,n.modelValue,n.form);if(!n.form){let c=function(g){var M;"value"in g&&(r.value=g.value),"errors"in g&&S(g.errors),"touched"in g&&(F.touched=(M=g.touched)!==null&&M!==void 0?M:F.touched),"initialValue"in g&&u(g.initialValue)};const{errors:s,setErrors:S}=yr(),p=fn>=Number.MAX_SAFE_INTEGER?0:++fn,F=mr(r,l,s,n.schema);return{id:p,path:e,value:r,initialValue:l,meta:F,flags:{pendingUnmount:{[p]:!1},pendingReset:!1},errors:s,setState:c}}const a=n.form.createPathState(e,{bails:n.bails,label:n.label,type:n.type,validate:n.validate,schema:n.schema}),h=j(()=>a.errors);function v(c){var s,S,p;"value"in c&&(r.value=c.value),"errors"in c&&((s=n.form)===null||s===void 0||s.setFieldError(w(e),c.errors)),"touched"in c&&((S=n.form)===null||S===void 0||S.setFieldTouched(w(e),(p=c.touched)!==null&&p!==void 0?p:!1)),"initialValue"in c&&u(c.initialValue)}return{id:Array.isArray(a.id)?a.id[a.id.length-1]:a.id,path:e,value:r,errors:h,meta:a,initialValue:l,flags:a.__flags,setState:v}}function vr(e,n,r){const l=Y(w(n));function u(){return r?L(r.initialValues.value,w(e),w(l)):w(l)}function a(s){if(!r){l.value=s;return}r.setFieldInitialValue(w(e),s,!0)}const h=j(u);if(!r)return{value:Y(u()),initialValue:h,setInitialValue:a};const v=hr(n,r,h,e);return r.stageInitialValue(w(e),v,!0),{value:j({get(){return L(r.values,w(e))},set(s){r.setFieldValue(w(e),s,!1)}}),initialValue:h,setInitialValue:a}}function hr(e,n,r,l){return Pe(e)?w(e):e!==void 0?e:L(n.values,w(l),w(r))}function mr(e,n,r,l){const u=j(()=>{var h,v,c;return(c=(v=(h=O(l))===null||h===void 0?void 0:h.describe)===null||v===void 0?void 0:v.call(h).required)!==null&&c!==void 0?c:!1}),a=Fe({touched:!1,pending:!1,valid:!0,required:u,validated:!!w(r).length,initialValue:j(()=>w(n)),dirty:j(()=>!B(w(e),w(n)))});return se(r,h=>{a.valid=!h.length},{immediate:!0,flush:"sync"}),a}function yr(){const e=Y([]);return{errors:e,setErrors:n=>{e.value=Ke(n)}}}function jr(e,n,r){return yn(r==null?void 0:r.type)?br(e,n,r):jn(e,n,r)}function jn(e,n,r){const{initialValue:l,validateOnMount:u,bails:a,type:h,checkedValue:v,label:c,validateOnValueUpdate:s,uncheckedValue:S,controlled:p,keepValueOnUnmount:F,syncVModel:g,form:M}=gr(r),J=p?pn(Je):void 0,_=M||J,Q=j(()=>pe(O(e))),$=j(()=>{if(O(_==null?void 0:_.schema))return;const V=w(n);return Ie(V)||X(V)||x(V)||Array.isArray(V)?V:On(V)}),_e=!x($.value)&&X(O(n)),{id:me,value:Z,initialValue:le,meta:D,setState:de,errors:ye,flags:U}=fr(Q,{modelValue:l,form:_,bails:a,label:c,type:h,validate:$.value?T:void 0,schema:_e?n:void 0}),fe=j(()=>ye.value[0]);g&&pr({value:Z,prop:g,handleChange:Ae,shouldValidate:()=>s&&!U.pendingReset});const Te=(f,V=!1)=>{D.touched=!0,V&&ne()};async function Se(f){var V,N;if(_!=null&&_.validateSchema){const{results:A}=await _.validateSchema(f);return(V=A[O(Q)])!==null&&V!==void 0?V:{valid:!0,errors:[]}}return $.value?_n(Z.value,$.value,{name:O(Q),label:O(c),values:(N=_==null?void 0:_.values)!==null&&N!==void 0?N:{},bails:a}):{valid:!0,errors:[]}}const ne=Ge(async()=>(D.pending=!0,D.validated=!0,Se("validated-only")),f=>(U.pendingUnmount[W.id]||(de({errors:f.errors}),D.pending=!1,D.valid=f.valid),f)),H=Ge(async()=>Se("silent"),f=>(D.valid=f.valid,f));function T(f){return(f==null?void 0:f.mode)==="silent"?H():ne()}function Ae(f,V=!0){const N=Ce(f);ve(N,V)}vn(()=>{if(u)return ne();(!_||!_.validateSchema)&&H()});function ae(f){D.touched=f}function ue(f){var V;const N=f&&"value"in f?f.value:le.value;de({value:E(N),initialValue:E(N),touched:(V=f==null?void 0:f.touched)!==null&&V!==void 0?V:!1,errors:(f==null?void 0:f.errors)||[]}),D.pending=!1,D.validated=!1,H()}const je=Ne();function ve(f,V=!0){Z.value=je&&g?Xn(f,je.props.modelModifiers):f,(V?ne:H)()}function Ze(f){de({errors:Array.isArray(f)?f:[f]})}const ge=j({get(){return Z.value},set(f){ve(f,s)}}),W={id:me,name:Q,label:c,value:ge,meta:D,errors:ye,errorMessage:fe,type:h,checkedValue:v,uncheckedValue:S,bails:a,keepValueOnUnmount:F,resetField:ue,handleReset:()=>ue(),validate:T,handleChange:Ae,handleBlur:Te,setState:de,setTouched:ae,setErrors:Ze,setValue:ve};if(hn(Wn,W),Pe(n)&&typeof w(n)!="function"&&se(n,(f,V)=>{B(f,V)||(D.validated?ne():H())},{deep:!0}),!_)return W;const ke=j(()=>{const f=$.value;return!f||x(f)||Ie(f)||X(f)||Array.isArray(f)?{}:Object.keys(f).reduce((V,N)=>{const A=rr(f[N]).map(re=>re.__locatorRef).reduce((re,K)=>{const te=L(_.values,K)||_.values[K];return te!==void 0&&(re[K]=te),re},{});return Object.assign(V,A),V},{})});return se(ke,(f,V)=>{if(!Object.keys(f).length)return;!B(f,V)&&(D.validated?ne():H())}),Tn(()=>{var f;const V=(f=O(W.keepValueOnUnmount))!==null&&f!==void 0?f:O(_.keepValuesOnUnmount),N=O(Q);if(V||!_||U.pendingUnmount[W.id]){_==null||_.removePathState(N,me);return}U.pendingUnmount[W.id]=!0;const A=_.getPathState(N);if(Array.isArray(A==null?void 0:A.id)&&(A!=null&&A.multiple)?A!=null&&A.id.includes(W.id):(A==null?void 0:A.id)===W.id){if(A!=null&&A.multiple&&Array.isArray(A.value)){const K=A.value.findIndex(te=>B(te,O(W.checkedValue)));if(K>-1){const te=[...A.value];te.splice(K,1),_.setFieldValue(N,te)}Array.isArray(A.id)&&A.id.splice(A.id.indexOf(W.id),1)}else _.unsetPathValue(O(Q));_.removePathState(N,me)}}),W}function gr(e){const n=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:void 0,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,syncVModel:!1,controlled:!0}),r=!!(e!=null&&e.syncVModel),l=typeof(e==null?void 0:e.syncVModel)=="string"?e.syncVModel:(e==null?void 0:e.modelPropName)||"modelValue",u=r&&!("initialValue"in(e||{}))?Ye(Ne(),l):e==null?void 0:e.initialValue;if(!e)return Object.assign(Object.assign({},n()),{initialValue:u});const a="valueProp"in e?e.valueProp:e.checkedValue,h="standalone"in e?!e.standalone:e.controlled,v=(e==null?void 0:e.modelPropName)||(e==null?void 0:e.syncVModel)||!1;return Object.assign(Object.assign(Object.assign({},n()),e||{}),{initialValue:u,controlled:h??!0,checkedValue:a,syncVModel:v})}function br(e,n,r){const l=r!=null&&r.standalone?void 0:pn(Je),u=r==null?void 0:r.checkedValue,a=r==null?void 0:r.uncheckedValue;function h(v){const c=v.handleChange,s=j(()=>{const p=O(v.value),F=O(u);return Array.isArray(p)?p.findIndex(g=>B(g,F))>=0:B(F,p)});function S(p,F=!0){var g,M;if(s.value===((g=p==null?void 0:p.target)===null||g===void 0?void 0:g.checked)){F&&v.validate();return}const J=O(e),_=l==null?void 0:l.getPathState(J),Q=Ce(p);let $=(M=O(u))!==null&&M!==void 0?M:Q;l&&(_!=null&&_.multiple)&&_.type==="checkbox"?$=sn(L(l.values,J)||[],$,void 0):(r==null?void 0:r.type)==="checkbox"&&($=sn(O(v.value),$,O(a))),c($,F)}return Object.assign(Object.assign({},v),{checked:s,checkedValue:u,uncheckedValue:a,handleChange:S})}return h(jn(e,n,r))}function pr({prop:e,value:n,handleChange:r,shouldValidate:l}){const u=Ne();if(!u||!e)return;const a=typeof e=="string"?e:"modelValue",h=`update:${a}`;a in u.props&&(se(n,v=>{B(v,Ye(u,a))||u.emit(h,v)}),se(()=>Ye(u,a),v=>{if(v===an&&n.value===void 0)return;const c=v===an?void 0:v;B(c,n.value)||r(c,l())}))}function Ye(e,n){if(e)return e.props[n]}let Vr=0;const we=["bails","fieldsCount","id","multiple","type","validate"];function En(e){const n=(e==null?void 0:e.initialValues)||{},r=Object.assign({},O(n)),l=w(e==null?void 0:e.validationSchema);return l&&X(l)&&x(l.cast)?E(l.cast(r)||{}):E(r)}function Er(e){var n;const r=Vr++;let l=0;const u=Y(!1),a=Y(!1),h=Y(0),v=[],c=Fe(En(e)),s=Y([]),S=Y({}),p=Y({}),F=Jn(()=>{p.value=s.value.reduce((i,t)=>(i[pe(O(t.path))]=t,i),{})});function g(i,t){const o=T(i);if(!o){typeof i=="string"&&(S.value[pe(i)]=Ke(t));return}if(typeof i=="string"){const d=pe(i);S.value[d]&&delete S.value[d]}o.errors=Ke(t),o.valid=!o.errors.length}function M(i){q(i).forEach(t=>{g(t,i[t])})}e!=null&&e.initialErrors&&M(e.initialErrors);const J=j(()=>{const i=s.value.reduce((t,o)=>(o.errors.length&&(t[o.path]=o.errors),t),{});return Object.assign(Object.assign({},S.value),i)}),_=j(()=>q(J.value).reduce((i,t)=>{const o=J.value[t];return o!=null&&o.length&&(i[t]=o[0]),i},{})),Q=j(()=>s.value.reduce((i,t)=>(i[t.path]={name:t.path||"",label:t.label||""},i),{})),$=j(()=>s.value.reduce((i,t)=>{var o;return i[t.path]=(o=t.bails)!==null&&o!==void 0?o:!0,i},{})),_e=Object.assign({},(e==null?void 0:e.initialErrors)||{}),me=(n=e==null?void 0:e.keepValuesOnUnmount)!==null&&n!==void 0?n:!1,{initialValues:Z,originalInitialValues:le,setInitialValues:D}=_r(s,c,e),de=Or(s,c,le,_),ye=j(()=>s.value.reduce((i,t)=>{const o=L(c,t.path);return ie(i,t.path,o),i},{})),U=e==null?void 0:e.validationSchema;function fe(i,t){var o,d;const y=j(()=>L(Z.value,O(i))),b=p.value[O(i)],m=(t==null?void 0:t.type)==="checkbox"||(t==null?void 0:t.type)==="radio";if(b&&m){b.multiple=!0;const G=l++;return Array.isArray(b.id)?b.id.push(G):b.id=[b.id,G],b.fieldsCount++,b.__flags.pendingUnmount[G]=!1,b}const I=j(()=>L(c,O(i))),C=O(i),k=ae.findIndex(G=>G===C);k!==-1&&ae.splice(k,1);const P=j(()=>{var G,be,ze,xe;const Le=O(U);if(X(Le))return(be=(G=Le.describe)===null||G===void 0?void 0:G.call(Le,O(i)).required)!==null&&be!==void 0?be:!1;const $e=O(t==null?void 0:t.schema);return X($e)&&(xe=(ze=$e.describe)===null||ze===void 0?void 0:ze.call($e).required)!==null&&xe!==void 0?xe:!1}),R=l++,z=Fe({id:R,path:i,touched:!1,pending:!1,valid:!0,validated:!!(!((o=_e[C])===null||o===void 0)&&o.length),required:P,initialValue:y,errors:Bn([]),bails:(d=t==null?void 0:t.bails)!==null&&d!==void 0?d:!1,label:t==null?void 0:t.label,type:(t==null?void 0:t.type)||"default",value:I,multiple:!1,__flags:{pendingUnmount:{[R]:!1},pendingReset:!1},fieldsCount:1,validate:t==null?void 0:t.validate,dirty:j(()=>!B(w(I),w(y)))});return s.value.push(z),p.value[C]=z,F(),_.value[C]&&!_e[C]&&ee(()=>{oe(C,{mode:"silent"})}),Pe(i)&&se(i,G=>{F();const be=E(I.value);p.value[G]=z,ee(()=>{ie(c,G,be)})}),z}const Te=cn(rn,5),Se=cn(rn,5),ne=Ge(async i=>await(i==="silent"?Te():Se()),(i,[t])=>{const o=q(f.errorBag.value),y=[...new Set([...q(i.results),...s.value.map(b=>b.path),...o])].sort().reduce((b,m)=>{var I;const C=m,k=T(C)||Ae(C),P=((I=i.results[C])===null||I===void 0?void 0:I.errors)||[],R=O(k==null?void 0:k.path)||C,z=Sr({errors:P,valid:!P.length},b.results[R]);return b.results[R]=z,z.valid||(b.errors[R]=z.errors[0]),k&&S.value[R]&&delete S.value[R],k?(k.valid=z.valid,t==="silent"||t==="validated-only"&&!k.validated||g(k,z.errors),b):(g(R,P),b)},{valid:i.valid,results:{},errors:{},source:i.source});return i.values&&(y.values=i.values,y.source=i.source),q(y.results).forEach(b=>{var m;const I=T(b);I&&t!=="silent"&&(t==="validated-only"&&!I.validated||g(I,(m=y.results[b])===null||m===void 0?void 0:m.errors))}),y});function H(i){s.value.forEach(i)}function T(i){const t=typeof i=="string"?pe(i):i;return typeof t=="string"?p.value[t]:t}function Ae(i){return s.value.filter(o=>i.startsWith(o.path)).reduce((o,d)=>o?d.path.length>o.path.length?d:o:d,void 0)}let ae=[],ue;function je(i){return ae.push(i),ue||(ue=ee(()=>{[...ae].sort().reverse().forEach(o=>{on(c,o)}),ae=[],ue=null})),ue}function ve(i){return function(o,d){return function(b){return b instanceof Event&&(b.preventDefault(),b.stopPropagation()),H(m=>m.touched=!0),u.value=!0,h.value++,he().then(m=>{const I=E(c);if(m.valid&&typeof o=="function"){const C=E(ye.value);let k=i?C:I;return m.values&&(k=m.source==="schema"?m.values:Object.assign({},k,m.values)),o(k,{evt:b,controlledValues:C,setErrors:M,setFieldError:g,setTouched:Re,setFieldTouched:K,setValues:A,setFieldValue:V,resetForm:Ue,resetField:en})}!m.valid&&typeof d=="function"&&d({values:I,evt:b,errors:m.errors,results:m.results})}).then(m=>(u.value=!1,m),m=>{throw u.value=!1,m})}}}const ge=ve(!1);ge.withControlled=ve(!0);function W(i,t){const o=s.value.findIndex(y=>y.path===i&&(Array.isArray(y.id)?y.id.includes(t):y.id===t)),d=s.value[o];if(!(o===-1||!d)){if(ee(()=>{oe(i,{mode:"silent",warn:!1})}),d.multiple&&d.fieldsCount&&d.fieldsCount--,Array.isArray(d.id)){const y=d.id.indexOf(t);y>=0&&d.id.splice(y,1),delete d.__flags.pendingUnmount[t]}(!d.multiple||d.fieldsCount<=0)&&(s.value.splice(o,1),nn(i),F(),delete p.value[i])}}function ke(i){q(p.value).forEach(t=>{t.startsWith(i)&&delete p.value[t]}),s.value=s.value.filter(t=>!t.path.startsWith(i)),ee(()=>{F()})}const f={formId:r,values:c,controlledValues:ye,errorBag:J,errors:_,schema:U,submitCount:h,meta:de,isSubmitting:u,isValidating:a,fieldArrays:v,keepValuesOnUnmount:me,validateSchema:w(U)?ne:void 0,validate:he,setFieldError:g,validateField:oe,setFieldValue:V,setValues:A,setErrors:M,setFieldTouched:K,setTouched:Re,resetForm:Ue,resetField:en,handleSubmit:ge,useFieldModel:Cn,defineInputBinds:Nn,defineComponentBinds:Mn,defineField:De,stageInitialValue:Fn,unsetInitialValue:nn,setFieldInitialValue:Be,createPathState:fe,getPathState:T,unsetPathValue:je,removePathState:W,initialValues:Z,getAllPathStates:()=>s.value,destroyPath:ke,isFieldTouched:te,isFieldDirty:wn,isFieldValid:Pn};function V(i,t,o=!0){const d=E(t),y=typeof i=="string"?i:i.path;T(y)||fe(y),ie(c,y,d),o&&oe(y)}function N(i,t=!0){q(c).forEach(o=>{delete c[o]}),q(i).forEach(o=>{V(o,i[o],!1)}),t&&he()}function A(i,t=!0){Oe(c,i),v.forEach(o=>o&&o.reset()),t&&he()}function re(i,t){const o=T(O(i))||fe(i);return j({get(){return o.value},set(d){var y;const b=O(i);V(b,d,(y=O(t))!==null&&y!==void 0?y:!1)}})}function K(i,t){const o=T(i);o&&(o.touched=t)}function te(i){const t=T(i);return t?t.touched:s.value.filter(o=>o.path.startsWith(i)).some(o=>o.touched)}function wn(i){const t=T(i);return t?t.dirty:s.value.filter(o=>o.path.startsWith(i)).some(o=>o.dirty)}function Pn(i){const t=T(i);return t?t.valid:s.value.filter(o=>o.path.startsWith(i)).every(o=>o.valid)}function Re(i){if(typeof i=="boolean"){H(t=>{t.touched=i});return}q(i).forEach(t=>{K(t,!!i[t])})}function en(i,t){var o;const d=t&&"value"in t?t.value:L(Z.value,i),y=T(i);y&&(y.__flags.pendingReset=!0),Be(i,E(d),!0),V(i,d,!1),K(i,(o=t==null?void 0:t.touched)!==null&&o!==void 0?o:!1),g(i,(t==null?void 0:t.errors)||[]),ee(()=>{y&&(y.__flags.pendingReset=!1)})}function Ue(i,t){let o=E(i!=null&&i.values?i.values:le.value);o=t!=null&&t.force?o:Oe(le.value,o),o=X(U)&&x(U.cast)?U.cast(o):o,D(o,{force:t==null?void 0:t.force}),H(d=>{var y;d.__flags.pendingReset=!0,d.validated=!1,d.touched=((y=i==null?void 0:i.touched)===null||y===void 0?void 0:y[d.path])||!1,V(d.path,L(o,d.path),!1),g(d.path,void 0)}),t!=null&&t.force?N(o,!1):A(o,!1),M((i==null?void 0:i.errors)||{}),h.value=(i==null?void 0:i.submitCount)||0,ee(()=>{he({mode:"silent"}),H(d=>{d.__flags.pendingReset=!1})})}async function he(i){const t=(i==null?void 0:i.mode)||"force";if(t==="force"&&H(m=>m.validated=!0),f.validateSchema)return f.validateSchema(t);a.value=!0;const o=await Promise.all(s.value.map(m=>m.validate?m.validate(i).then(I=>({key:m.path,valid:I.valid,errors:I.errors,value:I.value})):Promise.resolve({key:m.path,valid:!0,errors:[],value:void 0})));a.value=!1;const d={},y={},b={};for(const m of o)d[m.key]={valid:m.valid,errors:m.errors},m.value&&ie(b,m.key,m.value),m.errors.length&&(y[m.key]=m.errors[0]);return{valid:o.every(m=>m.valid),results:d,errors:y,values:b,source:"fields"}}async function oe(i,t){var o;const d=T(i);if(d&&(t==null?void 0:t.mode)!=="silent"&&(d.validated=!0),U){const{results:y}=await ne((t==null?void 0:t.mode)||"validated-only");return y[i]||{errors:[],valid:!0}}return d!=null&&d.validate?d.validate(t):(!d&&(o=t==null?void 0:t.warn),Promise.resolve({errors:[],valid:!0}))}function nn(i){on(Z.value,i)}function Fn(i,t,o=!1){Be(i,t),ie(c,i,t),o&&!(e!=null&&e.initialValues)&&ie(le.value,i,E(t))}function Be(i,t,o=!1){ie(Z.value,i,E(t)),o&&ie(le.value,i,E(t))}async function rn(){const i=w(U);if(!i)return{valid:!0,results:{},errors:{},source:"none"};a.value=!0;const t=Ie(i)||X(i)?await cr(i,c):await dr(i,c,{names:Q.value,bailsMap:$.value});return a.value=!1,t}const In=ge((i,{evt:t})=>{Yn(t)&&t.target.submit()});vn(()=>{if(e!=null&&e.initialErrors&&M(e.initialErrors),e!=null&&e.initialTouched&&Re(e.initialTouched),e!=null&&e.validateOnMount){he();return}f.validateSchema&&f.validateSchema("silent")}),Pe(U)&&se(U,()=>{var i;(i=f.validateSchema)===null||i===void 0||i.call(f,"validated-only")}),hn(Je,f);function De(i,t){const o=x(t)||t==null?void 0:t.label,d=T(O(i))||fe(i,{label:o}),y=()=>x(t)?t(Ee(d,we)):t||{};function b(){var P;d.touched=!0,((P=y().validateOnBlur)!==null&&P!==void 0?P:Ve().validateOnBlur)&&oe(d.path)}function m(){var P;((P=y().validateOnInput)!==null&&P!==void 0?P:Ve().validateOnInput)&&ee(()=>{oe(d.path)})}function I(){var P;((P=y().validateOnChange)!==null&&P!==void 0?P:Ve().validateOnChange)&&ee(()=>{oe(d.path)})}const C=j(()=>{const P={onChange:I,onInput:m,onBlur:b};return x(t)?Object.assign(Object.assign({},P),t(Ee(d,we)).props||{}):t!=null&&t.props?Object.assign(Object.assign({},P),t.props(Ee(d,we))):P});return[re(i,()=>{var P,R,z;return(z=(P=y().validateOnModelUpdate)!==null&&P!==void 0?P:(R=Ve())===null||R===void 0?void 0:R.validateOnModelUpdate)!==null&&z!==void 0?z:!0}),C]}function Cn(i){return Array.isArray(i)?i.map(t=>re(t,!0)):re(i)}function Nn(i,t){const[o,d]=De(i,t);function y(){d.value.onBlur()}function b(I){const C=Ce(I);V(O(i),C,!1),d.value.onInput()}function m(I){const C=Ce(I);V(O(i),C,!1),d.value.onChange()}return j(()=>Object.assign(Object.assign({},d.value),{onBlur:y,onInput:b,onChange:m,value:o.value}))}function Mn(i,t){const[o,d]=De(i,t),y=T(O(i));function b(m){o.value=m}return j(()=>{const m=x(t)?t(Ee(y,we)):t||{};return Object.assign({[m.model||"modelValue"]:o.value,[`onUpdate:${m.model||"modelValue"}`]:b},d.value)})}return Object.assign(Object.assign({},f),{values:kn(c),handleReset:()=>Ue(),submitForm:In})}function Or(e,n,r,l){const u={touched:"some",pending:"some",valid:"every"},a=j(()=>!B(n,w(r)));function h(){const c=e.value;return q(u).reduce((s,S)=>{const p=u[S];return s[S]=c[p](F=>F[S]),s},{})}const v=Fe(h());return Rn(()=>{const c=h();v.touched=c.touched,v.valid=c.valid,v.pending=c.pending}),j(()=>Object.assign(Object.assign({initialValues:w(r)},v),{valid:v.valid&&!q(l.value).length,dirty:a.value}))}function _r(e,n,r){const l=En(r),u=Y(l),a=Y(E(l));function h(v,c){c!=null&&c.force?(u.value=E(v),a.value=E(v)):(u.value=Oe(E(u.value)||{},E(v)),a.value=Oe(E(a.value)||{},E(v))),c!=null&&c.updateFields&&e.value.forEach(s=>{if(s.touched)return;const p=L(u.value,s.path);ie(n,s.path,E(p))})}return{initialValues:u,originalInitialValues:a,setInitialValues:h}}function Sr(e,n){return n?{valid:e.valid&&n.valid,errors:[...e.errors,...n.errors]}:e}export{jr as a,Er as u}; +import{aH as j,c9 as O,af as vn,ca as hn,z as Pe,m as w,k as se,cb as Tn,h as Y,I as Fe,aw as ee,cc as kn,cd as Rn,ce as Un,cf as Ne,cg as Bn}from"./index-R8dLcqG_.js";function x(e){return typeof e=="function"}function mn(e){return e==null}const ce=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function Xe(e){return Number(e)>=0}function Dn(e){const n=parseFloat(e);return isNaN(n)?e:n}function zn(e){return typeof e=="object"&&e!==null}function xn(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function tn(e){if(!zn(e)||xn(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function Oe(e,n){return Object.keys(n).forEach(r=>{if(tn(n[r])&&tn(e[r])){e[r]||(e[r]={}),Oe(e[r],n[r]);return}e[r]=n[r]}),e}function pe(e){const n=e.split(".");if(!n.length)return"";let r=String(n[0]);for(let l=1;lHn(u)&&a in u?u[a]:r,e):r}function ie(e,n,r){if(Me(n)){e[Qe(n)]=r;return}const l=n.split(/\.|\[(\d+)\]/).filter(Boolean);let u=e;for(let a=0;aL(e,r.slice(0,h).join(".")));for(let a=u.length-1;a>=0;a--)if(Gn(u[a])){if(a===0){We(e,r[0]);continue}We(u[a-1],r[a-1])}}function q(e){return Object.keys(e)}function pn(e,n=void 0){const r=Ne();return(r==null?void 0:r.provides[e])||Un(e,n)}function sn(e,n,r){if(Array.isArray(e)){const l=[...e],u=l.findIndex(a=>B(a,n));return u>=0?l.splice(u,1):l.push(n),l}return B(e,n)?r:n}function cn(e,n=0){let r=null,l=[];return function(...u){return r&&clearTimeout(r),r=setTimeout(()=>{const a=e(...u);l.forEach(h=>h(a)),l=[]},n),new Promise(a=>l.push(a))}}function Xn(e,n){return ce(n)&&n.number?Dn(e):e}function Ge(e,n){let r;return async function(...u){const a=e(...u);r=a;const h=await a;return a!==r?h:(r=void 0,n(h,u))}}function Ke(e){return Array.isArray(e)?e:e?[e]:[]}function Ee(e,n){const r={};for(const l in e)n.includes(l)||(r[l]=e[l]);return r}function Jn(e){let n=null,r=[];return function(...l){const u=ee(()=>{if(n!==u)return;const a=e(...l);r.forEach(h=>h(a)),r=[],n=null});return n=u,new Promise(a=>r.push(a))}}function qe(e){if(Vn(e))return e._value}function Vn(e){return"_value"in e}function Qn(e){return e.type==="number"||e.type==="range"?Number.isNaN(e.valueAsNumber)?e.value:e.valueAsNumber:e.value}function Ce(e){if(!bn(e))return e;const n=e.target;if(yn(n.type)&&Vn(n))return qe(n);if(n.type==="file"&&n.files){const r=Array.from(n.files);return n.multiple?r:r[0]}if(Kn(n))return Array.from(n.options).filter(r=>r.selected&&!r.disabled).map(qe);if(gn(n)){const r=Array.from(n.options).find(l=>l.selected);return r?qe(r):n.value}return Qn(n)}function On(e){const n={};return Object.defineProperty(n,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?ce(e)&&e._$$isNormalized?e:ce(e)?Object.keys(e).reduce((r,l)=>{const u=Zn(e[l]);return e[l]!==!1&&(r[l]=dn(u)),r},n):typeof e!="string"?n:e.split("|").reduce((r,l)=>{const u=er(l);return u.name&&(r[u.name]=dn(u.params)),r},n):n}function Zn(e){return e===!0?[]:Array.isArray(e)||ce(e)?e:[e]}function dn(e){const n=r=>typeof r=="string"&&r[0]==="@"?nr(r.slice(1)):r;return Array.isArray(e)?e.map(n):e instanceof RegExp?[e]:Object.keys(e).reduce((r,l)=>(r[l]=n(e[l]),r),{})}const er=e=>{let n=[];const r=e.split(":")[0];return e.includes(":")&&(n=e.split(":").slice(1).join(":").split(",")),{name:r,params:n}};function nr(e){const n=r=>L(r,e)||r[e];return n.__locatorRef=e,n}function rr(e){return Array.isArray(e)?e.filter(He):q(e).filter(n=>He(e[n])).map(n=>e[n])}const tr={generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0};let ir=Object.assign({},tr);const Ve=()=>ir;async function _n(e,n,r={}){const l=r==null?void 0:r.bails,u={name:(r==null?void 0:r.name)||"{field}",rules:n,label:r==null?void 0:r.label,bails:l??!0,formData:(r==null?void 0:r.values)||{}},a=await lr(u,e);return Object.assign(Object.assign({},a),{valid:!a.errors.length})}async function lr(e,n){const r=e.rules;if(X(r)||Ie(r))return ur(n,Object.assign(Object.assign({},e),{rules:r}));if(x(r)||Array.isArray(r)){const v={field:e.label||e.name,name:e.name,label:e.label,form:e.formData,value:n},c=Array.isArray(r)?r:[r],s=c.length,S=[];for(let p=0;p{const s=c.path||"";return v[s]||(v[s]={errors:[],path:s}),v[s].errors.push(...c.errors),v},{});return{errors:Object.values(h)}}}}}async function ur(e,n){const l=await(X(n.rules)?n.rules:Sn(n.rules)).parse(e,{formData:n.formData}),u=[];for(const a of l.errors)a.errors.length&&u.push(...a.errors);return{value:l.value,errors:u}}async function or(e,n,r){const l=$n(r.name);if(!l)throw new Error(`No such validator '${r.name}' exists.`);const u=sr(r.params,e.formData),a={field:e.label||e.name,name:e.name,label:e.label,value:n,form:e.formData,rule:Object.assign(Object.assign({},r),{params:u})},h=await l(n,u,a);return typeof h=="string"?{error:h}:{error:h?void 0:An(a)}}function An(e){const n=Ve().generateMessage;return n?n(e):"Field is invalid"}function sr(e,n){const r=l=>He(l)?l(n):l;return Array.isArray(e)?e.map(r):Object.keys(e).reduce((l,u)=>(l[u]=r(e[u]),l),{})}async function cr(e,n){const l=await(X(e)?e:Sn(e)).parse(E(n)),u={},a={};for(const h of l.errors){const v=h.errors,c=(h.path||"").replace(/\["(\d+)"\]/g,(s,S)=>`[${S}]`);u[c]={valid:!v.length,errors:v},v.length&&(a[c]=v[0])}return{valid:!l.errors.length,results:u,errors:a,values:l.value,source:"schema"}}async function dr(e,n,r){const u=q(e).map(async s=>{var S,p,F;const g=(S=r==null?void 0:r.names)===null||S===void 0?void 0:S[s],M=await _n(L(n,s),e[s],{name:(g==null?void 0:g.name)||s,label:g==null?void 0:g.label,values:n,bails:(F=(p=r==null?void 0:r.bailsMap)===null||p===void 0?void 0:p[s])!==null&&F!==void 0?F:!0});return Object.assign(Object.assign({},M),{path:s})});let a=!0;const h=await Promise.all(u),v={},c={};for(const s of h)v[s.path]={valid:s.valid,errors:s.errors},s.valid||(a=!1,c[s.path]=s.errors[0]);return{valid:a,results:v,errors:c,source:"schema"}}let fn=0;function fr(e,n){const{value:r,initialValue:l,setInitialValue:u}=vr(e,n.modelValue,n.form);if(!n.form){let c=function(g){var M;"value"in g&&(r.value=g.value),"errors"in g&&S(g.errors),"touched"in g&&(F.touched=(M=g.touched)!==null&&M!==void 0?M:F.touched),"initialValue"in g&&u(g.initialValue)};const{errors:s,setErrors:S}=yr(),p=fn>=Number.MAX_SAFE_INTEGER?0:++fn,F=mr(r,l,s,n.schema);return{id:p,path:e,value:r,initialValue:l,meta:F,flags:{pendingUnmount:{[p]:!1},pendingReset:!1},errors:s,setState:c}}const a=n.form.createPathState(e,{bails:n.bails,label:n.label,type:n.type,validate:n.validate,schema:n.schema}),h=j(()=>a.errors);function v(c){var s,S,p;"value"in c&&(r.value=c.value),"errors"in c&&((s=n.form)===null||s===void 0||s.setFieldError(w(e),c.errors)),"touched"in c&&((S=n.form)===null||S===void 0||S.setFieldTouched(w(e),(p=c.touched)!==null&&p!==void 0?p:!1)),"initialValue"in c&&u(c.initialValue)}return{id:Array.isArray(a.id)?a.id[a.id.length-1]:a.id,path:e,value:r,errors:h,meta:a,initialValue:l,flags:a.__flags,setState:v}}function vr(e,n,r){const l=Y(w(n));function u(){return r?L(r.initialValues.value,w(e),w(l)):w(l)}function a(s){if(!r){l.value=s;return}r.setFieldInitialValue(w(e),s,!0)}const h=j(u);if(!r)return{value:Y(u()),initialValue:h,setInitialValue:a};const v=hr(n,r,h,e);return r.stageInitialValue(w(e),v,!0),{value:j({get(){return L(r.values,w(e))},set(s){r.setFieldValue(w(e),s,!1)}}),initialValue:h,setInitialValue:a}}function hr(e,n,r,l){return Pe(e)?w(e):e!==void 0?e:L(n.values,w(l),w(r))}function mr(e,n,r,l){const u=j(()=>{var h,v,c;return(c=(v=(h=O(l))===null||h===void 0?void 0:h.describe)===null||v===void 0?void 0:v.call(h).required)!==null&&c!==void 0?c:!1}),a=Fe({touched:!1,pending:!1,valid:!0,required:u,validated:!!w(r).length,initialValue:j(()=>w(n)),dirty:j(()=>!B(w(e),w(n)))});return se(r,h=>{a.valid=!h.length},{immediate:!0,flush:"sync"}),a}function yr(){const e=Y([]);return{errors:e,setErrors:n=>{e.value=Ke(n)}}}function jr(e,n,r){return yn(r==null?void 0:r.type)?br(e,n,r):jn(e,n,r)}function jn(e,n,r){const{initialValue:l,validateOnMount:u,bails:a,type:h,checkedValue:v,label:c,validateOnValueUpdate:s,uncheckedValue:S,controlled:p,keepValueOnUnmount:F,syncVModel:g,form:M}=gr(r),J=p?pn(Je):void 0,_=M||J,Q=j(()=>pe(O(e))),$=j(()=>{if(O(_==null?void 0:_.schema))return;const V=w(n);return Ie(V)||X(V)||x(V)||Array.isArray(V)?V:On(V)}),_e=!x($.value)&&X(O(n)),{id:me,value:Z,initialValue:le,meta:D,setState:de,errors:ye,flags:U}=fr(Q,{modelValue:l,form:_,bails:a,label:c,type:h,validate:$.value?T:void 0,schema:_e?n:void 0}),fe=j(()=>ye.value[0]);g&&pr({value:Z,prop:g,handleChange:Ae,shouldValidate:()=>s&&!U.pendingReset});const Te=(f,V=!1)=>{D.touched=!0,V&&ne()};async function Se(f){var V,N;if(_!=null&&_.validateSchema){const{results:A}=await _.validateSchema(f);return(V=A[O(Q)])!==null&&V!==void 0?V:{valid:!0,errors:[]}}return $.value?_n(Z.value,$.value,{name:O(Q),label:O(c),values:(N=_==null?void 0:_.values)!==null&&N!==void 0?N:{},bails:a}):{valid:!0,errors:[]}}const ne=Ge(async()=>(D.pending=!0,D.validated=!0,Se("validated-only")),f=>(U.pendingUnmount[W.id]||(de({errors:f.errors}),D.pending=!1,D.valid=f.valid),f)),H=Ge(async()=>Se("silent"),f=>(D.valid=f.valid,f));function T(f){return(f==null?void 0:f.mode)==="silent"?H():ne()}function Ae(f,V=!0){const N=Ce(f);ve(N,V)}vn(()=>{if(u)return ne();(!_||!_.validateSchema)&&H()});function ae(f){D.touched=f}function ue(f){var V;const N=f&&"value"in f?f.value:le.value;de({value:E(N),initialValue:E(N),touched:(V=f==null?void 0:f.touched)!==null&&V!==void 0?V:!1,errors:(f==null?void 0:f.errors)||[]}),D.pending=!1,D.validated=!1,H()}const je=Ne();function ve(f,V=!0){Z.value=je&&g?Xn(f,je.props.modelModifiers):f,(V?ne:H)()}function Ze(f){de({errors:Array.isArray(f)?f:[f]})}const ge=j({get(){return Z.value},set(f){ve(f,s)}}),W={id:me,name:Q,label:c,value:ge,meta:D,errors:ye,errorMessage:fe,type:h,checkedValue:v,uncheckedValue:S,bails:a,keepValueOnUnmount:F,resetField:ue,handleReset:()=>ue(),validate:T,handleChange:Ae,handleBlur:Te,setState:de,setTouched:ae,setErrors:Ze,setValue:ve};if(hn(Wn,W),Pe(n)&&typeof w(n)!="function"&&se(n,(f,V)=>{B(f,V)||(D.validated?ne():H())},{deep:!0}),!_)return W;const ke=j(()=>{const f=$.value;return!f||x(f)||Ie(f)||X(f)||Array.isArray(f)?{}:Object.keys(f).reduce((V,N)=>{const A=rr(f[N]).map(re=>re.__locatorRef).reduce((re,K)=>{const te=L(_.values,K)||_.values[K];return te!==void 0&&(re[K]=te),re},{});return Object.assign(V,A),V},{})});return se(ke,(f,V)=>{if(!Object.keys(f).length)return;!B(f,V)&&(D.validated?ne():H())}),Tn(()=>{var f;const V=(f=O(W.keepValueOnUnmount))!==null&&f!==void 0?f:O(_.keepValuesOnUnmount),N=O(Q);if(V||!_||U.pendingUnmount[W.id]){_==null||_.removePathState(N,me);return}U.pendingUnmount[W.id]=!0;const A=_.getPathState(N);if(Array.isArray(A==null?void 0:A.id)&&(A!=null&&A.multiple)?A!=null&&A.id.includes(W.id):(A==null?void 0:A.id)===W.id){if(A!=null&&A.multiple&&Array.isArray(A.value)){const K=A.value.findIndex(te=>B(te,O(W.checkedValue)));if(K>-1){const te=[...A.value];te.splice(K,1),_.setFieldValue(N,te)}Array.isArray(A.id)&&A.id.splice(A.id.indexOf(W.id),1)}else _.unsetPathValue(O(Q));_.removePathState(N,me)}}),W}function gr(e){const n=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:void 0,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,syncVModel:!1,controlled:!0}),r=!!(e!=null&&e.syncVModel),l=typeof(e==null?void 0:e.syncVModel)=="string"?e.syncVModel:(e==null?void 0:e.modelPropName)||"modelValue",u=r&&!("initialValue"in(e||{}))?Ye(Ne(),l):e==null?void 0:e.initialValue;if(!e)return Object.assign(Object.assign({},n()),{initialValue:u});const a="valueProp"in e?e.valueProp:e.checkedValue,h="standalone"in e?!e.standalone:e.controlled,v=(e==null?void 0:e.modelPropName)||(e==null?void 0:e.syncVModel)||!1;return Object.assign(Object.assign(Object.assign({},n()),e||{}),{initialValue:u,controlled:h??!0,checkedValue:a,syncVModel:v})}function br(e,n,r){const l=r!=null&&r.standalone?void 0:pn(Je),u=r==null?void 0:r.checkedValue,a=r==null?void 0:r.uncheckedValue;function h(v){const c=v.handleChange,s=j(()=>{const p=O(v.value),F=O(u);return Array.isArray(p)?p.findIndex(g=>B(g,F))>=0:B(F,p)});function S(p,F=!0){var g,M;if(s.value===((g=p==null?void 0:p.target)===null||g===void 0?void 0:g.checked)){F&&v.validate();return}const J=O(e),_=l==null?void 0:l.getPathState(J),Q=Ce(p);let $=(M=O(u))!==null&&M!==void 0?M:Q;l&&(_!=null&&_.multiple)&&_.type==="checkbox"?$=sn(L(l.values,J)||[],$,void 0):(r==null?void 0:r.type)==="checkbox"&&($=sn(O(v.value),$,O(a))),c($,F)}return Object.assign(Object.assign({},v),{checked:s,checkedValue:u,uncheckedValue:a,handleChange:S})}return h(jn(e,n,r))}function pr({prop:e,value:n,handleChange:r,shouldValidate:l}){const u=Ne();if(!u||!e)return;const a=typeof e=="string"?e:"modelValue",h=`update:${a}`;a in u.props&&(se(n,v=>{B(v,Ye(u,a))||u.emit(h,v)}),se(()=>Ye(u,a),v=>{if(v===an&&n.value===void 0)return;const c=v===an?void 0:v;B(c,n.value)||r(c,l())}))}function Ye(e,n){if(e)return e.props[n]}let Vr=0;const we=["bails","fieldsCount","id","multiple","type","validate"];function En(e){const n=(e==null?void 0:e.initialValues)||{},r=Object.assign({},O(n)),l=w(e==null?void 0:e.validationSchema);return l&&X(l)&&x(l.cast)?E(l.cast(r)||{}):E(r)}function Er(e){var n;const r=Vr++;let l=0;const u=Y(!1),a=Y(!1),h=Y(0),v=[],c=Fe(En(e)),s=Y([]),S=Y({}),p=Y({}),F=Jn(()=>{p.value=s.value.reduce((i,t)=>(i[pe(O(t.path))]=t,i),{})});function g(i,t){const o=T(i);if(!o){typeof i=="string"&&(S.value[pe(i)]=Ke(t));return}if(typeof i=="string"){const d=pe(i);S.value[d]&&delete S.value[d]}o.errors=Ke(t),o.valid=!o.errors.length}function M(i){q(i).forEach(t=>{g(t,i[t])})}e!=null&&e.initialErrors&&M(e.initialErrors);const J=j(()=>{const i=s.value.reduce((t,o)=>(o.errors.length&&(t[o.path]=o.errors),t),{});return Object.assign(Object.assign({},S.value),i)}),_=j(()=>q(J.value).reduce((i,t)=>{const o=J.value[t];return o!=null&&o.length&&(i[t]=o[0]),i},{})),Q=j(()=>s.value.reduce((i,t)=>(i[t.path]={name:t.path||"",label:t.label||""},i),{})),$=j(()=>s.value.reduce((i,t)=>{var o;return i[t.path]=(o=t.bails)!==null&&o!==void 0?o:!0,i},{})),_e=Object.assign({},(e==null?void 0:e.initialErrors)||{}),me=(n=e==null?void 0:e.keepValuesOnUnmount)!==null&&n!==void 0?n:!1,{initialValues:Z,originalInitialValues:le,setInitialValues:D}=_r(s,c,e),de=Or(s,c,le,_),ye=j(()=>s.value.reduce((i,t)=>{const o=L(c,t.path);return ie(i,t.path,o),i},{})),U=e==null?void 0:e.validationSchema;function fe(i,t){var o,d;const y=j(()=>L(Z.value,O(i))),b=p.value[O(i)],m=(t==null?void 0:t.type)==="checkbox"||(t==null?void 0:t.type)==="radio";if(b&&m){b.multiple=!0;const G=l++;return Array.isArray(b.id)?b.id.push(G):b.id=[b.id,G],b.fieldsCount++,b.__flags.pendingUnmount[G]=!1,b}const I=j(()=>L(c,O(i))),C=O(i),k=ae.findIndex(G=>G===C);k!==-1&&ae.splice(k,1);const P=j(()=>{var G,be,ze,xe;const Le=O(U);if(X(Le))return(be=(G=Le.describe)===null||G===void 0?void 0:G.call(Le,O(i)).required)!==null&&be!==void 0?be:!1;const $e=O(t==null?void 0:t.schema);return X($e)&&(xe=(ze=$e.describe)===null||ze===void 0?void 0:ze.call($e).required)!==null&&xe!==void 0?xe:!1}),R=l++,z=Fe({id:R,path:i,touched:!1,pending:!1,valid:!0,validated:!!(!((o=_e[C])===null||o===void 0)&&o.length),required:P,initialValue:y,errors:Bn([]),bails:(d=t==null?void 0:t.bails)!==null&&d!==void 0?d:!1,label:t==null?void 0:t.label,type:(t==null?void 0:t.type)||"default",value:I,multiple:!1,__flags:{pendingUnmount:{[R]:!1},pendingReset:!1},fieldsCount:1,validate:t==null?void 0:t.validate,dirty:j(()=>!B(w(I),w(y)))});return s.value.push(z),p.value[C]=z,F(),_.value[C]&&!_e[C]&&ee(()=>{oe(C,{mode:"silent"})}),Pe(i)&&se(i,G=>{F();const be=E(I.value);p.value[G]=z,ee(()=>{ie(c,G,be)})}),z}const Te=cn(rn,5),Se=cn(rn,5),ne=Ge(async i=>await(i==="silent"?Te():Se()),(i,[t])=>{const o=q(f.errorBag.value),y=[...new Set([...q(i.results),...s.value.map(b=>b.path),...o])].sort().reduce((b,m)=>{var I;const C=m,k=T(C)||Ae(C),P=((I=i.results[C])===null||I===void 0?void 0:I.errors)||[],R=O(k==null?void 0:k.path)||C,z=Sr({errors:P,valid:!P.length},b.results[R]);return b.results[R]=z,z.valid||(b.errors[R]=z.errors[0]),k&&S.value[R]&&delete S.value[R],k?(k.valid=z.valid,t==="silent"||t==="validated-only"&&!k.validated||g(k,z.errors),b):(g(R,P),b)},{valid:i.valid,results:{},errors:{},source:i.source});return i.values&&(y.values=i.values,y.source=i.source),q(y.results).forEach(b=>{var m;const I=T(b);I&&t!=="silent"&&(t==="validated-only"&&!I.validated||g(I,(m=y.results[b])===null||m===void 0?void 0:m.errors))}),y});function H(i){s.value.forEach(i)}function T(i){const t=typeof i=="string"?pe(i):i;return typeof t=="string"?p.value[t]:t}function Ae(i){return s.value.filter(o=>i.startsWith(o.path)).reduce((o,d)=>o?d.path.length>o.path.length?d:o:d,void 0)}let ae=[],ue;function je(i){return ae.push(i),ue||(ue=ee(()=>{[...ae].sort().reverse().forEach(o=>{on(c,o)}),ae=[],ue=null})),ue}function ve(i){return function(o,d){return function(b){return b instanceof Event&&(b.preventDefault(),b.stopPropagation()),H(m=>m.touched=!0),u.value=!0,h.value++,he().then(m=>{const I=E(c);if(m.valid&&typeof o=="function"){const C=E(ye.value);let k=i?C:I;return m.values&&(k=m.source==="schema"?m.values:Object.assign({},k,m.values)),o(k,{evt:b,controlledValues:C,setErrors:M,setFieldError:g,setTouched:Re,setFieldTouched:K,setValues:A,setFieldValue:V,resetForm:Ue,resetField:en})}!m.valid&&typeof d=="function"&&d({values:I,evt:b,errors:m.errors,results:m.results})}).then(m=>(u.value=!1,m),m=>{throw u.value=!1,m})}}}const ge=ve(!1);ge.withControlled=ve(!0);function W(i,t){const o=s.value.findIndex(y=>y.path===i&&(Array.isArray(y.id)?y.id.includes(t):y.id===t)),d=s.value[o];if(!(o===-1||!d)){if(ee(()=>{oe(i,{mode:"silent",warn:!1})}),d.multiple&&d.fieldsCount&&d.fieldsCount--,Array.isArray(d.id)){const y=d.id.indexOf(t);y>=0&&d.id.splice(y,1),delete d.__flags.pendingUnmount[t]}(!d.multiple||d.fieldsCount<=0)&&(s.value.splice(o,1),nn(i),F(),delete p.value[i])}}function ke(i){q(p.value).forEach(t=>{t.startsWith(i)&&delete p.value[t]}),s.value=s.value.filter(t=>!t.path.startsWith(i)),ee(()=>{F()})}const f={formId:r,values:c,controlledValues:ye,errorBag:J,errors:_,schema:U,submitCount:h,meta:de,isSubmitting:u,isValidating:a,fieldArrays:v,keepValuesOnUnmount:me,validateSchema:w(U)?ne:void 0,validate:he,setFieldError:g,validateField:oe,setFieldValue:V,setValues:A,setErrors:M,setFieldTouched:K,setTouched:Re,resetForm:Ue,resetField:en,handleSubmit:ge,useFieldModel:Cn,defineInputBinds:Nn,defineComponentBinds:Mn,defineField:De,stageInitialValue:Fn,unsetInitialValue:nn,setFieldInitialValue:Be,createPathState:fe,getPathState:T,unsetPathValue:je,removePathState:W,initialValues:Z,getAllPathStates:()=>s.value,destroyPath:ke,isFieldTouched:te,isFieldDirty:wn,isFieldValid:Pn};function V(i,t,o=!0){const d=E(t),y=typeof i=="string"?i:i.path;T(y)||fe(y),ie(c,y,d),o&&oe(y)}function N(i,t=!0){q(c).forEach(o=>{delete c[o]}),q(i).forEach(o=>{V(o,i[o],!1)}),t&&he()}function A(i,t=!0){Oe(c,i),v.forEach(o=>o&&o.reset()),t&&he()}function re(i,t){const o=T(O(i))||fe(i);return j({get(){return o.value},set(d){var y;const b=O(i);V(b,d,(y=O(t))!==null&&y!==void 0?y:!1)}})}function K(i,t){const o=T(i);o&&(o.touched=t)}function te(i){const t=T(i);return t?t.touched:s.value.filter(o=>o.path.startsWith(i)).some(o=>o.touched)}function wn(i){const t=T(i);return t?t.dirty:s.value.filter(o=>o.path.startsWith(i)).some(o=>o.dirty)}function Pn(i){const t=T(i);return t?t.valid:s.value.filter(o=>o.path.startsWith(i)).every(o=>o.valid)}function Re(i){if(typeof i=="boolean"){H(t=>{t.touched=i});return}q(i).forEach(t=>{K(t,!!i[t])})}function en(i,t){var o;const d=t&&"value"in t?t.value:L(Z.value,i),y=T(i);y&&(y.__flags.pendingReset=!0),Be(i,E(d),!0),V(i,d,!1),K(i,(o=t==null?void 0:t.touched)!==null&&o!==void 0?o:!1),g(i,(t==null?void 0:t.errors)||[]),ee(()=>{y&&(y.__flags.pendingReset=!1)})}function Ue(i,t){let o=E(i!=null&&i.values?i.values:le.value);o=t!=null&&t.force?o:Oe(le.value,o),o=X(U)&&x(U.cast)?U.cast(o):o,D(o,{force:t==null?void 0:t.force}),H(d=>{var y;d.__flags.pendingReset=!0,d.validated=!1,d.touched=((y=i==null?void 0:i.touched)===null||y===void 0?void 0:y[d.path])||!1,V(d.path,L(o,d.path),!1),g(d.path,void 0)}),t!=null&&t.force?N(o,!1):A(o,!1),M((i==null?void 0:i.errors)||{}),h.value=(i==null?void 0:i.submitCount)||0,ee(()=>{he({mode:"silent"}),H(d=>{d.__flags.pendingReset=!1})})}async function he(i){const t=(i==null?void 0:i.mode)||"force";if(t==="force"&&H(m=>m.validated=!0),f.validateSchema)return f.validateSchema(t);a.value=!0;const o=await Promise.all(s.value.map(m=>m.validate?m.validate(i).then(I=>({key:m.path,valid:I.valid,errors:I.errors,value:I.value})):Promise.resolve({key:m.path,valid:!0,errors:[],value:void 0})));a.value=!1;const d={},y={},b={};for(const m of o)d[m.key]={valid:m.valid,errors:m.errors},m.value&&ie(b,m.key,m.value),m.errors.length&&(y[m.key]=m.errors[0]);return{valid:o.every(m=>m.valid),results:d,errors:y,values:b,source:"fields"}}async function oe(i,t){var o;const d=T(i);if(d&&(t==null?void 0:t.mode)!=="silent"&&(d.validated=!0),U){const{results:y}=await ne((t==null?void 0:t.mode)||"validated-only");return y[i]||{errors:[],valid:!0}}return d!=null&&d.validate?d.validate(t):(!d&&(o=t==null?void 0:t.warn),Promise.resolve({errors:[],valid:!0}))}function nn(i){on(Z.value,i)}function Fn(i,t,o=!1){Be(i,t),ie(c,i,t),o&&!(e!=null&&e.initialValues)&&ie(le.value,i,E(t))}function Be(i,t,o=!1){ie(Z.value,i,E(t)),o&&ie(le.value,i,E(t))}async function rn(){const i=w(U);if(!i)return{valid:!0,results:{},errors:{},source:"none"};a.value=!0;const t=Ie(i)||X(i)?await cr(i,c):await dr(i,c,{names:Q.value,bailsMap:$.value});return a.value=!1,t}const In=ge((i,{evt:t})=>{Yn(t)&&t.target.submit()});vn(()=>{if(e!=null&&e.initialErrors&&M(e.initialErrors),e!=null&&e.initialTouched&&Re(e.initialTouched),e!=null&&e.validateOnMount){he();return}f.validateSchema&&f.validateSchema("silent")}),Pe(U)&&se(U,()=>{var i;(i=f.validateSchema)===null||i===void 0||i.call(f,"validated-only")}),hn(Je,f);function De(i,t){const o=x(t)||t==null?void 0:t.label,d=T(O(i))||fe(i,{label:o}),y=()=>x(t)?t(Ee(d,we)):t||{};function b(){var P;d.touched=!0,((P=y().validateOnBlur)!==null&&P!==void 0?P:Ve().validateOnBlur)&&oe(d.path)}function m(){var P;((P=y().validateOnInput)!==null&&P!==void 0?P:Ve().validateOnInput)&&ee(()=>{oe(d.path)})}function I(){var P;((P=y().validateOnChange)!==null&&P!==void 0?P:Ve().validateOnChange)&&ee(()=>{oe(d.path)})}const C=j(()=>{const P={onChange:I,onInput:m,onBlur:b};return x(t)?Object.assign(Object.assign({},P),t(Ee(d,we)).props||{}):t!=null&&t.props?Object.assign(Object.assign({},P),t.props(Ee(d,we))):P});return[re(i,()=>{var P,R,z;return(z=(P=y().validateOnModelUpdate)!==null&&P!==void 0?P:(R=Ve())===null||R===void 0?void 0:R.validateOnModelUpdate)!==null&&z!==void 0?z:!0}),C]}function Cn(i){return Array.isArray(i)?i.map(t=>re(t,!0)):re(i)}function Nn(i,t){const[o,d]=De(i,t);function y(){d.value.onBlur()}function b(I){const C=Ce(I);V(O(i),C,!1),d.value.onInput()}function m(I){const C=Ce(I);V(O(i),C,!1),d.value.onChange()}return j(()=>Object.assign(Object.assign({},d.value),{onBlur:y,onInput:b,onChange:m,value:o.value}))}function Mn(i,t){const[o,d]=De(i,t),y=T(O(i));function b(m){o.value=m}return j(()=>{const m=x(t)?t(Ee(y,we)):t||{};return Object.assign({[m.model||"modelValue"]:o.value,[`onUpdate:${m.model||"modelValue"}`]:b},d.value)})}return Object.assign(Object.assign({},f),{values:kn(c),handleReset:()=>Ue(),submitForm:In})}function Or(e,n,r,l){const u={touched:"some",pending:"some",valid:"every"},a=j(()=>!B(n,w(r)));function h(){const c=e.value;return q(u).reduce((s,S)=>{const p=u[S];return s[S]=c[p](F=>F[S]),s},{})}const v=Fe(h());return Rn(()=>{const c=h();v.touched=c.touched,v.valid=c.valid,v.pending=c.pending}),j(()=>Object.assign(Object.assign({initialValues:w(r)},v),{valid:v.valid&&!q(l.value).length,dirty:a.value}))}function _r(e,n,r){const l=En(r),u=Y(l),a=Y(E(l));function h(v,c){c!=null&&c.force?(u.value=E(v),a.value=E(v)):(u.value=Oe(E(u.value)||{},E(v)),a.value=Oe(E(a.value)||{},E(v))),c!=null&&c.updateFields&&e.value.forEach(s=>{if(s.touched)return;const p=L(u.value,s.path);ie(n,s.path,E(p))})}return{initialValues:u,originalInitialValues:a,setInitialValues:h}}function Sr(e,n){return n?{valid:e.valid&&n.valid,errors:[...e.errors,...n.errors]}:e}export{jr as a,Er as u}; diff --git a/app/src/main/resources/web/assets/xml-B8uJIXUe.js b/app/src/main/resources/web/assets/xml-C8Om98hV.js similarity index 97% rename from app/src/main/resources/web/assets/xml-B8uJIXUe.js rename to app/src/main/resources/web/assets/xml-C8Om98hV.js index 97b146ac..dd8df1ec 100644 --- a/app/src/main/resources/web/assets/xml-B8uJIXUe.js +++ b/app/src/main/resources/web/assets/xml-C8Om98hV.js @@ -1 +1 @@ -import{m as r}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BaOpzcW2.js";import"./index-BzaaAwnX.js";var m=Object.defineProperty,c=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,p=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of l(e))!d.call(t,n)&&n!==o&&m(t,n,{get:()=>e[n],enumerable:!(i=c(e,n))||i.enumerable});return t},s=(t,e,o)=>(p(t,e,"default"),o),a={};s(a,r);var k={comments:{blockComment:[""]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:a.languages.IndentAction.Indent}}]},_={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[//,{token:"comment",next:"@pop"}],[/"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:a.languages.IndentAction.Indent}}]},_={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[//,{token:"comment",next:"@pop"}],[/