From 5d71fcd2cf4c2facf9943d3f19ad463e360b4951 Mon Sep 17 00:00:00 2001 From: Archos Date: Sun, 9 Nov 2025 08:49:49 +0100 Subject: [PATCH] =?UTF-8?q?nov=C3=A1=20verze=20phanpy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _headers | 2 + assets/ICONS-BzjICR_A.js | 2 + assets/ICONS-BzjICR_A.js.map | 1 + assets/ScheduledAtField-BOlu1KST.js | 194 +++++++++++++++++++++++ assets/ScheduledAtField-BOlu1KST.js.map | 1 + assets/compose-CRPinFLh.js | 2 + assets/compose-CRPinFLh.js.map | 1 + assets/compose-CUhufx8N.js | 34 ++++ assets/compose-CUhufx8N.js.map | 1 + assets/locales/ar-SA-C5sBm9Mi.js | 1 + assets/locales/ca-ES-BIT96fy7.js | 1 + assets/locales/cs-CZ-BqPjYoLx.js | 1 + assets/locales/de-DE-_XyFd61V.js | 1 + assets/locales/eo-UY-DPeYSmC5.js | 1 + assets/locales/es-ES-DmzWv0mr.js | 1 + assets/locales/eu-ES-Brlh4aVu.js | 1 + assets/locales/fa-IR-CTcDQza7.js | 1 + assets/locales/fi-FI-CEqHYIn6.js | 1 + assets/locales/fr-FR-gUVVm74L.js | 1 + assets/locales/gl-ES-DRk5xMS7.js | 1 + assets/locales/he-IL-C5sBm9Mi.js | 1 + assets/locales/it-IT-BNXgC_oV.js | 1 + assets/locales/ja-JP-C5sBm9Mi.js | 1 + assets/locales/kab-iLckCsz0.js | 1 + assets/locales/ko-KR-CcI9g9fL.js | 1 + assets/locales/lt-LT-BP0dQMiP.js | 1 + assets/locales/nb-NO-C5sBm9Mi.js | 1 + assets/locales/nl-NL-DObE-7sW.js | 1 + assets/locales/oc-FR-C5sBm9Mi.js | 1 + assets/locales/pl-PL-DU3JUkst.js | 1 + assets/locales/pseudo-LOCALE-i17LRZ_p.js | 1 + assets/locales/pt-BR-l4Q5uXuJ.js | 1 + assets/locales/pt-PT-Cwz_QarU.js | 1 + assets/locales/ru-RU-BDKtf7Y1.js | 1 + assets/locales/th-TH-C5sBm9Mi.js | 1 + assets/locales/tok-C5sBm9Mi.js | 1 + assets/locales/tr-TR-C5sBm9Mi.js | 1 + assets/locales/uk-UA-CBoBG0La.js | 1 + assets/locales/zh-CN-B4CymFpQ.js | 1 + assets/locales/zh-TW-C5sBm9Mi.js | 1 + assets/main-BiOvAqQu.js | 29 ++++ assets/main-BiOvAqQu.js.map | 1 + assets/polyfill-force-CKKOSFfV.js | 3 + assets/polyfill-force-CKKOSFfV.js.map | 1 + assets/pwa-viewport-CZFc0vUU.js | 18 +++ assets/pwa-viewport-CZFc0vUU.js.map | 1 + assets/style-DInNf5w_.css | 1 + assets/temml-Dns96zBN.js | 97 ++++++++++++ assets/temml-Dns96zBN.js.map | 1 + compose/index.html | 8 +- index.html | 14 +- sw.js | 2 +- sw.js.map | 2 +- version.json | 2 +- 54 files changed, 434 insertions(+), 15 deletions(-) create mode 100644 _headers create mode 100644 assets/ICONS-BzjICR_A.js create mode 100644 assets/ICONS-BzjICR_A.js.map create mode 100644 assets/ScheduledAtField-BOlu1KST.js create mode 100644 assets/ScheduledAtField-BOlu1KST.js.map create mode 100644 assets/compose-CRPinFLh.js create mode 100644 assets/compose-CRPinFLh.js.map create mode 100644 assets/compose-CUhufx8N.js create mode 100644 assets/compose-CUhufx8N.js.map create mode 100644 assets/locales/ar-SA-C5sBm9Mi.js create mode 100644 assets/locales/ca-ES-BIT96fy7.js create mode 100644 assets/locales/cs-CZ-BqPjYoLx.js create mode 100644 assets/locales/de-DE-_XyFd61V.js create mode 100644 assets/locales/eo-UY-DPeYSmC5.js create mode 100644 assets/locales/es-ES-DmzWv0mr.js create mode 100644 assets/locales/eu-ES-Brlh4aVu.js create mode 100644 assets/locales/fa-IR-CTcDQza7.js create mode 100644 assets/locales/fi-FI-CEqHYIn6.js create mode 100644 assets/locales/fr-FR-gUVVm74L.js create mode 100644 assets/locales/gl-ES-DRk5xMS7.js create mode 100644 assets/locales/he-IL-C5sBm9Mi.js create mode 100644 assets/locales/it-IT-BNXgC_oV.js create mode 100644 assets/locales/ja-JP-C5sBm9Mi.js create mode 100644 assets/locales/kab-iLckCsz0.js create mode 100644 assets/locales/ko-KR-CcI9g9fL.js create mode 100644 assets/locales/lt-LT-BP0dQMiP.js create mode 100644 assets/locales/nb-NO-C5sBm9Mi.js create mode 100644 assets/locales/nl-NL-DObE-7sW.js create mode 100644 assets/locales/oc-FR-C5sBm9Mi.js create mode 100644 assets/locales/pl-PL-DU3JUkst.js create mode 100644 assets/locales/pseudo-LOCALE-i17LRZ_p.js create mode 100644 assets/locales/pt-BR-l4Q5uXuJ.js create mode 100644 assets/locales/pt-PT-Cwz_QarU.js create mode 100644 assets/locales/ru-RU-BDKtf7Y1.js create mode 100644 assets/locales/th-TH-C5sBm9Mi.js create mode 100644 assets/locales/tok-C5sBm9Mi.js create mode 100644 assets/locales/tr-TR-C5sBm9Mi.js create mode 100644 assets/locales/uk-UA-CBoBG0La.js create mode 100644 assets/locales/zh-CN-B4CymFpQ.js create mode 100644 assets/locales/zh-TW-C5sBm9Mi.js create mode 100644 assets/main-BiOvAqQu.js create mode 100644 assets/main-BiOvAqQu.js.map create mode 100644 assets/polyfill-force-CKKOSFfV.js create mode 100644 assets/polyfill-force-CKKOSFfV.js.map create mode 100644 assets/pwa-viewport-CZFc0vUU.js create mode 100644 assets/pwa-viewport-CZFc0vUU.js.map create mode 100644 assets/style-DInNf5w_.css create mode 100644 assets/temml-Dns96zBN.js create mode 100644 assets/temml-Dns96zBN.js.map diff --git a/_headers b/_headers new file mode 100644 index 0000000..c363c28 --- /dev/null +++ b/_headers @@ -0,0 +1,2 @@ +/ + Link: ; rel=preload; as=style \ No newline at end of file diff --git a/assets/ICONS-BzjICR_A.js b/assets/ICONS-BzjICR_A.js new file mode 100644 index 0000000..347e0bb --- /dev/null +++ b/assets/ICONS-BzjICR_A.js @@ -0,0 +1,2 @@ +import{aa as r}from"./pwa-viewport-CZFc0vUU.js";const t={x:()=>r(()=>import("./icons/close-line-Bfj902o4.js"),[],import.meta.url),heart:()=>r(()=>import("./icons/heart-line-vi3QqJTo.js"),[],import.meta.url),bookmark:()=>r(()=>import("./icons/bookmark-line-BMGZc_Mc.js"),[],import.meta.url),"check-circle":()=>r(()=>import("./icons/check-circle-line-CSlVj8QA.js"),[],import.meta.url),"x-circle":()=>r(()=>import("./icons/close-circle-line-DlCWcUwK.js"),[],import.meta.url),transfer:()=>r(()=>import("./icons/transfer-4-line-BHXBUumZ.js"),[],import.meta.url),rocket:()=>r(()=>import("./icons/rocket-line-B7gBxy4I.js"),[],import.meta.url),"arrow-left":{module:()=>r(()=>import("./icons/arrow-left-line-BGgZ0udH.js"),[],import.meta.url),rtl:!0},"arrow-right":{module:()=>r(()=>import("./icons/arrow-right-line-zKtS4vm5.js"),[],import.meta.url),rtl:!0},"arrow-up":()=>r(()=>import("./icons/arrow-up-line-Bow_AQZ6.js"),[],import.meta.url),"arrow-down":()=>r(()=>import("./icons/arrow-down-line-RSwsrALM.js"),[],import.meta.url),earth:()=>r(()=>import("./icons/world-2-line-BqQ1RIgL.js"),[],import.meta.url),lock:()=>r(()=>import("./icons/lock-line-BbTC1fux.js"),[],import.meta.url),unlock:()=>r(()=>import("./icons/unlock-line-CGrzBxul.js"),[],import.meta.url),"eye-close":()=>r(()=>import("./icons/eye-close-line-DQnawnJE.js"),[],import.meta.url),"eye-open":()=>r(()=>import("./icons/eye-2-line-Dvog5oyl.js"),[],import.meta.url),message:()=>r(()=>import("./icons/mail-line-Cadg2cpP.js"),[],import.meta.url),comment:{module:()=>r(()=>import("./icons/chat-3-line-C4e7R0Zy.js"),[],import.meta.url),rtl:!0},comment2:{module:()=>r(()=>import("./icons/comment-2-line-DfD-95ou.js"),[],import.meta.url),rtl:!0},home:()=>r(()=>import("./icons/home-3-line-BLD1YYP8.js"),[],import.meta.url),notification:()=>r(()=>import("./icons/notification-line-Cc2m6sh5.js"),[],import.meta.url),follow:()=>r(()=>import("./icons/user-follow-line-CsL-DB1N.js"),[],import.meta.url),"follow-add":()=>r(()=>import("./icons/user-add-line-DuegJyfy.js"),[],import.meta.url),poll:[()=>r(()=>import("./icons/chart-bar-line-W9BuvVdR.js"),[],import.meta.url),"90deg"],pencil:()=>r(()=>import("./icons/pencil-line-BwUdLENj.js"),[],import.meta.url),quill:()=>r(()=>import("./icons/quill-pen-line-oAx8SSeF.js"),[],import.meta.url),at:()=>r(()=>import("./icons/at-line-C4-OGRKX.js"),[],import.meta.url),attachment:()=>r(()=>import("./icons/attachment-line-C4ysC1zZ.js"),[],import.meta.url),upload:()=>r(()=>import("./icons/upload-3-line-BB2RA_2Z.js"),[],import.meta.url),gear:()=>r(()=>import("./icons/settings-3-line-BGrM7a5R.js"),[],import.meta.url),more:()=>r(()=>import("./icons/more-3-line-WfszpsFu.js"),[],import.meta.url),more2:()=>r(()=>import("./icons/more-1-fill-Cnnj9cLP.js"),[],import.meta.url),external:{module:()=>r(()=>import("./icons/external-link-line-BYXsdcMa.js"),[],import.meta.url),rtl:!0},popout:{module:()=>r(()=>import("./icons/external-link-line-BYXsdcMa.js"),[],import.meta.url),rtl:!0},popin:{module:()=>r(()=>import("./icons/external-link-line-BYXsdcMa.js"),[],import.meta.url),rotate:"180deg",rtl:!0},plus:()=>r(()=>import("./icons/add-circle-line-VUOz5dLS.js"),[],import.meta.url),"chevron-left":{module:()=>r(()=>import("./icons/left-line-8vYaPuok.js"),[],import.meta.url),rtl:!0},"chevron-right":{module:()=>r(()=>import("./icons/right-line-E80CeS1Q.js"),[],import.meta.url),rtl:!0},"chevron-down":()=>r(()=>import("./icons/down-line-PlS1iUy8.js"),[],import.meta.url),reply:{module:()=>r(()=>import("./icons/share-forward-line-DX1QbiUu.js"),[],import.meta.url),rotate:"180deg",flip:"horizontal",rtl:!0},thread:()=>r(()=>import("./icons/route-line-D10jSVCO.js"),[],import.meta.url),group:{module:()=>r(()=>import("./icons/group-line-Cw2Phg9p.js"),[],import.meta.url),rtl:!0},bot:()=>r(()=>import("./icons/android-2-line-C7qVwx2U.js"),[],import.meta.url),menu:()=>r(()=>import("./icons/rows-4-line-DIXu-DVG.js"),[],import.meta.url),list:{module:()=>r(()=>import("./icons/list-check-line-BaMf8v8i.js"),[],import.meta.url),rtl:!0},search:()=>r(()=>import("./icons/search-2-line-CoCbFBVR.js"),[],import.meta.url),hashtag:()=>r(()=>import("./icons/hashtag-line-Cml-0qv2.js"),[],import.meta.url),info:()=>r(()=>import("./icons/information-line-Dn255DD5.js"),[],import.meta.url),shortcut:()=>r(()=>import("./icons/lightning-line-cvW5NR-M.js"),[],import.meta.url),user:()=>r(()=>import("./icons/user-4-line-C89P3h09.js"),[],import.meta.url),following:()=>r(()=>import("./icons/walk-line-BZwRwcxJ.js"),[],import.meta.url),pin:()=>r(()=>import("./icons/pin-line-BqseDe3t.js"),[],import.meta.url),unpin:[()=>r(()=>import("./icons/pin-line-BqseDe3t.js"),[],import.meta.url),"180deg"],bus:()=>r(()=>import("./icons/bus-2-line-CfBaNBAi.js"),[],import.meta.url),link:()=>r(()=>import("./icons/link-2-line-SnIkQ_rZ.js"),[],import.meta.url),history:()=>r(()=>import("./icons/history-line-Bi2So-je.js"),[],import.meta.url),share:()=>r(()=>import("./icons/share-2-line-C2byQ30z.js"),[],import.meta.url),sparkles:()=>r(()=>import("./icons/sparkles-line-DWyRj8uB.js"),[],import.meta.url),sparkles2:()=>r(()=>import("./icons/sparkles-2-line-H731KO3v.js"),[],import.meta.url),exit:{module:()=>r(()=>import("./icons/exit-line-NjC63GxM.js"),[],import.meta.url),rtl:!0},translate:()=>r(()=>import("./icons/translate-line-cdOWN72F.js"),[],import.meta.url),play:()=>r(()=>import("./icons/play-fill-D1o3ePO2.js"),[],import.meta.url),trash:()=>r(()=>import("./icons/delete-2-line-C-lQIJNC.js"),[],import.meta.url),mute:{module:()=>r(()=>import("./icons/volume-mute-line-BluUkhVT.js"),[],import.meta.url),rtl:!0},unmute:{module:()=>r(()=>import("./icons/volume-line-dtC5ZFr8.js"),[],import.meta.url),rtl:!0},block:()=>r(()=>import("./icons/forbid-circle-line-f_JQE7a8.js"),[],import.meta.url),unblock:[()=>r(()=>import("./icons/forbid-circle-line-f_JQE7a8.js"),[],import.meta.url),"180deg"],flag:()=>r(()=>import("./icons/flag-1-line-sWzx_4o4.js"),[],import.meta.url),time:()=>r(()=>import("./icons/time-line-CHAmvUdg.js"),[],import.meta.url),refresh:()=>r(()=>import("./icons/refresh-2-line-B3CD5yz0.js"),[],import.meta.url),emoji2:()=>r(()=>import("./icons/emoji-2-line-DODV8bnC.js"),[],import.meta.url),filter:()=>r(()=>import("./icons/filter-2-line-DLBEPhKS.js"),[],import.meta.url),filters:()=>r(()=>import("./icons/filter-line-CuUlgBZU.js"),[],import.meta.url),chart:()=>r(()=>import("./icons/chart-line-line-noCpZUdN.js"),[],import.meta.url),react:()=>r(()=>import("./icons/react-line-C6TecPWI.js"),[],import.meta.url),layout4:{module:()=>r(()=>import("./icons/layout-4-line-BFFb1cPy.js"),[],import.meta.url),rtl:!0},layout5:()=>r(()=>import("./icons/layout-5-line-tauINoiF.js"),[],import.meta.url),announce:{module:()=>r(()=>import("./icons/announcement-line-BdsFnqjO.js"),[],import.meta.url),rtl:!0},alert:()=>r(()=>import("./icons/alert-line-CcwmWSBO.js"),[],import.meta.url),round:()=>r(()=>import("./icons/round-fill-CaZIeOWe.js"),[],import.meta.url),"arrow-up-circle":()=>r(()=>import("./icons/arrow-up-circle-line-SO68bPTf.js"),[],import.meta.url),"arrow-down-circle":()=>r(()=>import("./icons/arrow-down-circle-line-SfuiravZ.js"),[],import.meta.url),clipboard:{module:()=>r(()=>import("./icons/clipboard-line-CIOFpSsX.js"),[],import.meta.url),rtl:!0},"account-edit":()=>r(()=>import("./icons/user-edit-line-CC6Y-fJT.js"),[],import.meta.url),"account-warning":()=>r(()=>import("./icons/user-warning-line-BLfdr8Bj.js"),[],import.meta.url),"account-add":()=>r(()=>import("./icons/user-add-2-line-BbaxtCjf.js"),[],import.meta.url),keyboard:()=>r(()=>import("./icons/keyboard-line-BRd9ohM1.js"),[],import.meta.url),cloud:()=>r(()=>import("./icons/cloud-line-CCOdtB64.js"),[],import.meta.url),month:{module:()=>r(()=>import("./icons/calendar-month-line-DGpTEHfi.js"),[],import.meta.url),rtl:!0},media:()=>r(()=>import("./icons/photo-album-line-DkklX4P5.js"),[],import.meta.url),speak:()=>r(()=>import("./icons/radar-line-Dch2zZ5p.js"),[],import.meta.url),building:()=>r(()=>import("./icons/building-5-line-jPUf3HeC.js"),[],import.meta.url),history2:{module:()=>r(()=>import("./icons/history-2-line-C2uKqj-3.js"),[],import.meta.url),rtl:!0},document:()=>r(()=>import("./icons/document-line-ewA3UKpU.js"),[],import.meta.url),"arrows-right":{module:()=>r(()=>import("./icons/arrows-right-line-B7gMPCMB.js"),[],import.meta.url),rtl:!0},code:()=>r(()=>import("./icons/code-line-_8nrb8Yp.js"),[],import.meta.url),copy:()=>r(()=>import("./icons/copy-2-line-SBRewLs-.js"),[],import.meta.url),quote:{module:()=>r(()=>import("./icons/quote-left-line-D0CgS7V6.js"),[],import.meta.url),rtl:!0},quote2:{module:()=>r(()=>import("./icons/blockquote-line-Dcv4EJtN.js"),[],import.meta.url),rtl:!0},settings:()=>r(()=>import("./icons/settings-6-line-3dTfr4F6.js"),[],import.meta.url),"heart-break":()=>r(()=>import("./icons/heart-crack-line-BlrTdexG.js"),[],import.meta.url),"user-x":()=>r(()=>import("./icons/user-x-line-Dahn1YZg.js"),[],import.meta.url),minimize:()=>r(()=>import("./icons/down-line-PlS1iUy8.js"),[],import.meta.url),celebrate:()=>r(()=>import("./icons/celebrate-line-CwClz8eZ.js"),[],import.meta.url),schedule:()=>r(()=>import("./icons/calendar-time-add-line-BwP_cVys.js"),[],import.meta.url),day:()=>r(()=>import("./icons/calendar-day-line-zQlj2fPr.js"),[],import.meta.url),camera:()=>r(()=>import("./icons/camera-line-DK82q_yA.js"),[],import.meta.url),endorsement:{module:()=>r(()=>import("./icons/user-star-line-jCNS7JD6.js"),[],import.meta.url),rtl:!0},formula:()=>r(()=>import("./icons/formula-line-DHbN6ztn.js"),[],import.meta.url),edit:()=>r(()=>import("./icons/edit-4-line-B3lvLrpT.js"),[],import.meta.url),"zoom-in":()=>r(()=>import("./icons/zoom-in-line-a0TkUNno.js"),[],import.meta.url),"zoom-out":()=>r(()=>import("./icons/zoom-out-line-wfKlvfFM.js"),[],import.meta.url),"cursor-hand":()=>r(()=>import("./icons/hand-finger-2-line-QNYxa4H_.js"),[],import.meta.url)};export{t as ICONS}; +//# sourceMappingURL=ICONS-BzjICR_A.js.map diff --git a/assets/ICONS-BzjICR_A.js.map b/assets/ICONS-BzjICR_A.js.map new file mode 100644 index 0000000..45bfd70 --- /dev/null +++ b/assets/ICONS-BzjICR_A.js.map @@ -0,0 +1 @@ +{"version":3,"mappings":"gDAAO,MAAMA,EAAQ,CACnBC,EAAGA,UAAM,OAAO,gCAAoC,sBACpDC,MAAOA,UAAM,OAAO,gCAAoC,sBACxDC,SAAUA,UAAM,OAAO,mCAAuC,sBAC9D,eAAgBC,UAAM,OAAO,uCAA2C,sBACxE,WAAYC,UAAM,OAAO,uCAA2C,sBACpEC,SAAUA,UAAM,OAAO,qCAAyC,sBAChEC,OAAQA,UAAM,OAAO,iCAAqC,sBAC1D,aAAc,CACZC,OAAQA,UAAM,OAAO,qCAAyC,sBAC9DC,IAAK,IAEP,cAAe,CACbD,OAAQA,UAAM,OAAO,sCAA0C,sBAC/DC,IAAK,IAEP,WAAYC,UAAM,OAAO,mCAAuC,sBAChE,aAAcC,UAAM,OAAO,qCAAyC,sBACpEC,MAAOA,UAAM,OAAO,kCAAsC,sBAC1DC,KAAMA,UAAM,OAAO,+BAAmC,sBACtDC,OAAQA,UAAM,OAAO,iCAAqC,sBAC1D,YAAaC,UAAM,OAAO,oCAAwC,sBAClE,WAAYC,UAAM,OAAO,gCAAoC,sBAC7DC,QAASA,UAAM,OAAO,+BAAmC,sBACzDC,QAAS,CACPV,OAAQA,UAAM,OAAO,iCAAqC,sBAC1DC,IAAK,IAEPU,SAAU,CACRX,OAAQA,UAAM,OAAO,oCAAwC,sBAC7DC,IAAK,IAEPW,KAAMA,UAAM,OAAO,iCAAqC,sBACxDC,aAAcA,UAAM,OAAO,uCAA2C,sBACtEC,OAAQA,UAAM,OAAO,sCAA0C,sBAC/D,aAAcC,UAAM,OAAO,mCAAuC,sBAClEC,KAAM,CAAC,IAAAC,EAAA,IAAM,OAAO,oCAAwC,sBAAG,OAAO,EACtEC,OAAQA,UAAM,OAAO,iCAAqC,sBAC1DC,MAAOA,UAAM,OAAO,oCAAwC,sBAC5DC,GAAIA,UAAM,OAAO,6BAAiC,sBAClDC,WAAYA,UAAM,OAAO,qCAAyC,sBAClEC,OAAQA,UAAM,OAAO,mCAAuC,sBAC5DC,KAAMA,UAAM,OAAO,qCAAyC,sBAC5DC,KAAMA,UAAM,OAAO,iCAAqC,sBACxDC,MAAOA,UAAM,OAAO,iCAAqC,sBACzDC,SAAU,CACR1B,OAAQA,UAAM,OAAO,wCAA4C,sBACjEC,IAAK,IAEP0B,OAAQ,CACN3B,OAAQA,UAAM,OAAO,wCAA4C,sBACjEC,IAAK,IAEP2B,MAAO,CACL5B,OAAQA,UAAM,OAAO,wCAA4C,sBACjE6B,OAAQ,SACR5B,IAAK,IAEP6B,KAAMA,UAAM,OAAO,qCAAyC,sBAC5D,eAAgB,CACd9B,OAAQA,UAAM,OAAO,+BAAmC,sBACxDC,IAAK,IAEP,gBAAiB,CACfD,OAAQA,UAAM,OAAO,gCAAoC,sBACzDC,IAAK,IAEP,eAAgB8B,UAAM,OAAO,+BAAmC,sBAChEC,MAAO,CACLhC,OAAQA,UAAM,OAAO,wCAA4C,sBACjE6B,OAAQ,SACRI,KAAM,aACNhC,IAAK,IAEPiC,OAAQA,UAAM,OAAO,gCAAoC,sBACzDC,MAAO,CACLnC,OAAQA,UAAM,OAAO,gCAAoC,sBACzDC,IAAK,IAEPmC,IAAKA,UAAM,OAAO,oCAAwC,sBAC1DC,KAAMA,UAAM,OAAO,iCAAqC,sBACxDC,KAAM,CACJtC,OAAQA,UAAM,OAAO,qCAAyC,sBAC9DC,IAAK,IAEPsC,OAAQA,UAAM,OAAO,mCAAuC,sBAC5DC,QAASA,UAAM,OAAO,kCAAsC,sBAC5DC,KAAMA,UAAM,OAAO,sCAA0C,sBAC7DC,SAAUA,UAAM,OAAO,oCAAwC,sBAC/DC,KAAMA,UAAM,OAAO,iCAAqC,sBACxDC,UAAWA,UAAM,OAAO,+BAAmC,sBAC3DC,IAAKA,UAAM,OAAO,8BAAkC,sBACpDC,MAAO,CAAC,IAAA7B,EAAA,IAAM,OAAO,8BAAkC,sBAAG,QAAQ,EAClE8B,IAAKA,UAAM,OAAO,gCAAoC,sBACtDC,KAAMA,UAAM,OAAO,iCAAqC,sBACxDC,QAASA,UAAM,OAAO,kCAAsC,sBAC5DC,MAAOA,UAAM,OAAO,kCAAsC,sBAC1DC,SAAUA,UAAM,OAAO,mCAAuC,sBAC9DC,UAAWA,UAAM,OAAO,qCAAyC,sBACjEC,KAAM,CACJrD,OAAQA,UAAM,OAAO,+BAAmC,sBACxDC,IAAK,IAEPqD,UAAWA,UAAM,OAAO,oCAAwC,sBAChEC,KAAMA,UAAM,OAAO,+BAAmC,sBACtDC,MAAOA,UAAM,OAAO,mCAAuC,sBAC3DC,KAAM,CACJzD,OAAQA,UAAM,OAAO,sCAA0C,sBAC/DC,IAAK,IAEPyD,OAAQ,CACN1D,OAAQA,UAAM,OAAO,iCAAqC,sBAC1DC,IAAK,IAEP0D,MAAOA,UAAM,OAAO,wCAA4C,sBAChEC,QAAS,CACP,IAAA3C,EAAA,IAAM,OAAO,wCAA4C,sBACzD,QAAQ,EAEV4C,KAAMA,UAAM,OAAO,iCAAqC,sBACxDC,KAAMA,UAAM,OAAO,+BAAmC,sBACtDC,QAASA,UAAM,OAAO,oCAAwC,sBAC9DC,OAAQA,UAAM,OAAO,kCAAsC,sBAC3DC,OAAQA,UAAM,OAAO,mCAAuC,sBAC5DC,QAASA,UAAM,OAAO,iCAAqC,sBAC3DC,MAAOA,UAAM,OAAO,qCAAyC,sBAC7DC,MAAOA,UAAM,OAAO,gCAAoC,sBACxDC,QAAS,CACPrE,OAAQA,UAAM,OAAO,mCAAuC,sBAC5DC,IAAK,IAEPqE,QAASA,UAAM,OAAO,mCAAuC,sBAC7DC,SAAU,CACRvE,OAAQA,UAAM,OAAO,uCAA2C,sBAChEC,IAAK,IAEPuE,MAAOA,UAAM,OAAO,gCAAoC,sBACxDC,MAAOA,UAAM,OAAO,gCAAoC,sBACxD,kBAAmBC,UACjB,OAAO,0CAA8C,sBACvD,oBAAqBC,UACnB,OAAO,4CAAgD,sBACzDC,UAAW,CACT5E,OAAQA,UAAM,OAAO,oCAAwC,sBAC7DC,IAAK,IAEP,eAAgB4E,UAAM,OAAO,oCAAwC,sBACrE,kBAAmBC,UAAM,OAAO,uCAA2C,sBAC3E,cAAeC,UAAM,OAAO,qCAAyC,sBACrEC,SAAUA,UAAM,OAAO,mCAAuC,sBAC9DC,MAAOA,UAAM,OAAO,gCAAoC,sBACxDC,MAAO,CACLlF,OAAQA,UAAM,OAAO,yCAA6C,sBAClEC,IAAK,IAEPkF,MAAOA,UAAM,OAAO,sCAA0C,sBAC9DC,MAAOA,UAAM,OAAO,gCAAoC,sBACxDC,SAAUA,UAAM,OAAO,qCAAyC,sBAChEC,SAAU,CACRtF,OAAQA,UAAM,OAAO,oCAAwC,sBAC7DC,IAAK,IAEPsF,SAAUA,UAAM,OAAO,mCAAuC,sBAC9D,eAAgB,CACdvF,OAAQA,UAAM,OAAO,uCAA2C,sBAChEC,IAAK,IAEPuF,KAAMA,UAAM,OAAO,+BAAmC,sBACtDC,KAAMA,UAAM,OAAO,iCAAqC,sBACxDC,MAAO,CACL1F,OAAQA,UAAM,OAAO,qCAAyC,sBAC9DC,IAAK,IAEP0F,OAAQ,CACN3F,OAAQA,UAAM,OAAO,qCAAyC,sBAC9DC,IAAK,IAEP2F,SAAUA,UAAM,OAAO,qCAAyC,sBAChE,cAAeC,UAAM,OAAO,sCAA0C,sBACtE,SAAUC,UAAM,OAAO,iCAAqC,sBAC5DC,SAAUA,UAAM,OAAO,+BAAmC,sBAC1DC,UAAWA,UAAM,OAAO,oCAAwC,sBAChEC,SAAUA,UAAM,OAAO,4CAAgD,sBACvEC,IAAKA,UAAM,OAAO,uCAA2C,sBAC7DC,OAAQA,UAAM,OAAO,iCAAqC,sBAC1DC,YAAa,CACXpG,OAAQA,UAAM,OAAO,oCAAwC,sBAC7DC,IAAK,IAEPoG,QAASA,UAAM,OAAO,kCAAsC,sBAC5DC,KAAMA,UAAM,OAAO,iCAAqC,sBACxD,UAAWC,UAAM,OAAO,kCAAsC,sBAC9D,WAAYC,UAAM,OAAO,mCAAuC,sBAChE,cAAeC,UAAM,OAAO,wCAA4C,qBAC1E","names":["ICONS","x","heart","bookmark","check-circle","x-circle","transfer","rocket","module","rtl","arrow-up","arrow-down","earth","lock","unlock","eye-close","eye-open","message","comment","comment2","home","notification","follow","follow-add","poll","__vitePreload","pencil","quill","at","attachment","upload","gear","more","more2","external","popout","popin","rotate","plus","chevron-down","reply","flip","thread","group","bot","menu","list","search","hashtag","info","shortcut","user","following","pin","unpin","bus","link","history","share","sparkles","sparkles2","exit","translate","play","trash","mute","unmute","block","unblock","flag","time","refresh","emoji2","filter","filters","chart","react","layout4","layout5","announce","alert","round","arrow-up-circle","arrow-down-circle","clipboard","account-edit","account-warning","account-add","keyboard","cloud","month","media","speak","building","history2","document","code","copy","quote","quote2","settings","heart-break","user-x","minimize","celebrate","schedule","day","camera","endorsement","formula","edit","zoom-in","zoom-out","cursor-hand"],"ignoreList":[],"sources":["../../src/components/ICONS.jsx"],"sourcesContent":["export const ICONS = {\n x: () => import('@iconify-icons/mingcute/close-line'),\n heart: () => import('@iconify-icons/mingcute/heart-line'),\n bookmark: () => import('@iconify-icons/mingcute/bookmark-line'),\n 'check-circle': () => import('@iconify-icons/mingcute/check-circle-line'),\n 'x-circle': () => import('@iconify-icons/mingcute/close-circle-line'),\n transfer: () => import('@iconify-icons/mingcute/transfer-4-line'),\n rocket: () => import('@iconify-icons/mingcute/rocket-line'),\n 'arrow-left': {\n module: () => import('@iconify-icons/mingcute/arrow-left-line'),\n rtl: true,\n },\n 'arrow-right': {\n module: () => import('@iconify-icons/mingcute/arrow-right-line'),\n rtl: true,\n },\n 'arrow-up': () => import('@iconify-icons/mingcute/arrow-up-line'),\n 'arrow-down': () => import('@iconify-icons/mingcute/arrow-down-line'),\n earth: () => import('@iconify-icons/mingcute/world-2-line'),\n lock: () => import('@iconify-icons/mingcute/lock-line'),\n unlock: () => import('@iconify-icons/mingcute/unlock-line'),\n 'eye-close': () => import('@iconify-icons/mingcute/eye-close-line'),\n 'eye-open': () => import('@iconify-icons/mingcute/eye-2-line'),\n message: () => import('@iconify-icons/mingcute/mail-line'),\n comment: {\n module: () => import('@iconify-icons/mingcute/chat-3-line'),\n rtl: true,\n },\n comment2: {\n module: () => import('@iconify-icons/mingcute/comment-2-line'),\n rtl: true,\n },\n home: () => import('@iconify-icons/mingcute/home-3-line'),\n notification: () => import('@iconify-icons/mingcute/notification-line'),\n follow: () => import('@iconify-icons/mingcute/user-follow-line'),\n 'follow-add': () => import('@iconify-icons/mingcute/user-add-line'),\n poll: [() => import('@iconify-icons/mingcute/chart-bar-line'), '90deg'],\n pencil: () => import('@iconify-icons/mingcute/pencil-line'),\n quill: () => import('@iconify-icons/mingcute/quill-pen-line'),\n at: () => import('@iconify-icons/mingcute/at-line'),\n attachment: () => import('@iconify-icons/mingcute/attachment-line'),\n upload: () => import('@iconify-icons/mingcute/upload-3-line'),\n gear: () => import('@iconify-icons/mingcute/settings-3-line'),\n more: () => import('@iconify-icons/mingcute/more-3-line'),\n more2: () => import('@iconify-icons/mingcute/more-1-fill'),\n external: {\n module: () => import('@iconify-icons/mingcute/external-link-line'),\n rtl: true,\n },\n popout: {\n module: () => import('@iconify-icons/mingcute/external-link-line'),\n rtl: true,\n },\n popin: {\n module: () => import('@iconify-icons/mingcute/external-link-line'),\n rotate: '180deg',\n rtl: true,\n },\n plus: () => import('@iconify-icons/mingcute/add-circle-line'),\n 'chevron-left': {\n module: () => import('@iconify-icons/mingcute/left-line'),\n rtl: true,\n },\n 'chevron-right': {\n module: () => import('@iconify-icons/mingcute/right-line'),\n rtl: true,\n },\n 'chevron-down': () => import('@iconify-icons/mingcute/down-line'),\n reply: {\n module: () => import('@iconify-icons/mingcute/share-forward-line'),\n rotate: '180deg',\n flip: 'horizontal',\n rtl: true,\n },\n thread: () => import('@iconify-icons/mingcute/route-line'),\n group: {\n module: () => import('@iconify-icons/mingcute/group-line'),\n rtl: true,\n },\n bot: () => import('@iconify-icons/mingcute/android-2-line'),\n menu: () => import('@iconify-icons/mingcute/rows-4-line'),\n list: {\n module: () => import('@iconify-icons/mingcute/list-check-line'),\n rtl: true,\n },\n search: () => import('@iconify-icons/mingcute/search-2-line'),\n hashtag: () => import('@iconify-icons/mingcute/hashtag-line'),\n info: () => import('@iconify-icons/mingcute/information-line'),\n shortcut: () => import('@iconify-icons/mingcute/lightning-line'),\n user: () => import('@iconify-icons/mingcute/user-4-line'),\n following: () => import('@iconify-icons/mingcute/walk-line'),\n pin: () => import('@iconify-icons/mingcute/pin-line'),\n unpin: [() => import('@iconify-icons/mingcute/pin-line'), '180deg'],\n bus: () => import('@iconify-icons/mingcute/bus-2-line'),\n link: () => import('@iconify-icons/mingcute/link-2-line'),\n history: () => import('@iconify-icons/mingcute/history-line'),\n share: () => import('@iconify-icons/mingcute/share-2-line'),\n sparkles: () => import('@iconify-icons/mingcute/sparkles-line'),\n sparkles2: () => import('@iconify-icons/mingcute/sparkles-2-line'),\n exit: {\n module: () => import('@iconify-icons/mingcute/exit-line'),\n rtl: true,\n },\n translate: () => import('@iconify-icons/mingcute/translate-line'),\n play: () => import('@iconify-icons/mingcute/play-fill'),\n trash: () => import('@iconify-icons/mingcute/delete-2-line'),\n mute: {\n module: () => import('@iconify-icons/mingcute/volume-mute-line'),\n rtl: true,\n },\n unmute: {\n module: () => import('@iconify-icons/mingcute/volume-line'),\n rtl: true,\n },\n block: () => import('@iconify-icons/mingcute/forbid-circle-line'),\n unblock: [\n () => import('@iconify-icons/mingcute/forbid-circle-line'),\n '180deg',\n ],\n flag: () => import('@iconify-icons/mingcute/flag-1-line'),\n time: () => import('@iconify-icons/mingcute/time-line'),\n refresh: () => import('@iconify-icons/mingcute/refresh-2-line'),\n emoji2: () => import('@iconify-icons/mingcute/emoji-2-line'),\n filter: () => import('@iconify-icons/mingcute/filter-2-line'),\n filters: () => import('@iconify-icons/mingcute/filter-line'),\n chart: () => import('@iconify-icons/mingcute/chart-line-line'),\n react: () => import('@iconify-icons/mingcute/react-line'),\n layout4: {\n module: () => import('@iconify-icons/mingcute/layout-4-line'),\n rtl: true,\n },\n layout5: () => import('@iconify-icons/mingcute/layout-5-line'),\n announce: {\n module: () => import('@iconify-icons/mingcute/announcement-line'),\n rtl: true,\n },\n alert: () => import('@iconify-icons/mingcute/alert-line'),\n round: () => import('@iconify-icons/mingcute/round-fill'),\n 'arrow-up-circle': () =>\n import('@iconify-icons/mingcute/arrow-up-circle-line'),\n 'arrow-down-circle': () =>\n import('@iconify-icons/mingcute/arrow-down-circle-line'),\n clipboard: {\n module: () => import('@iconify-icons/mingcute/clipboard-line'),\n rtl: true,\n },\n 'account-edit': () => import('@iconify-icons/mingcute/user-edit-line'),\n 'account-warning': () => import('@iconify-icons/mingcute/user-warning-line'),\n 'account-add': () => import('@iconify-icons/mingcute/user-add-2-line'),\n keyboard: () => import('@iconify-icons/mingcute/keyboard-line'),\n cloud: () => import('@iconify-icons/mingcute/cloud-line'),\n month: {\n module: () => import('@iconify-icons/mingcute/calendar-month-line'),\n rtl: true,\n },\n media: () => import('@iconify-icons/mingcute/photo-album-line'),\n speak: () => import('@iconify-icons/mingcute/radar-line'),\n building: () => import('@iconify-icons/mingcute/building-5-line'),\n history2: {\n module: () => import('@iconify-icons/mingcute/history-2-line'),\n rtl: true,\n },\n document: () => import('@iconify-icons/mingcute/document-line'),\n 'arrows-right': {\n module: () => import('@iconify-icons/mingcute/arrows-right-line'),\n rtl: true,\n },\n code: () => import('@iconify-icons/mingcute/code-line'),\n copy: () => import('@iconify-icons/mingcute/copy-2-line'),\n quote: {\n module: () => import('@iconify-icons/mingcute/quote-left-line'),\n rtl: true,\n },\n quote2: {\n module: () => import('@iconify-icons/mingcute/blockquote-line'),\n rtl: true,\n },\n settings: () => import('@iconify-icons/mingcute/settings-6-line'),\n 'heart-break': () => import('@iconify-icons/mingcute/heart-crack-line'),\n 'user-x': () => import('@iconify-icons/mingcute/user-x-line'),\n minimize: () => import('@iconify-icons/mingcute/down-line'),\n celebrate: () => import('@iconify-icons/mingcute/celebrate-line'),\n schedule: () => import('@iconify-icons/mingcute/calendar-time-add-line'),\n day: () => import('@iconify-icons/mingcute/calendar-day-line'),\n camera: () => import('@iconify-icons/mingcute/camera-line'),\n endorsement: {\n module: () => import('@iconify-icons/mingcute/user-star-line'),\n rtl: true,\n },\n formula: () => import('@iconify-icons/mingcute/formula-line'),\n edit: () => import('@iconify-icons/mingcute/edit-4-line'),\n 'zoom-in': () => import('@iconify-icons/mingcute/zoom-in-line'),\n 'zoom-out': () => import('@iconify-icons/mingcute/zoom-out-line'),\n 'cursor-hand': () => import('@iconify-icons/mingcute/hand-finger-2-line'),\n};\n"],"file":"ICONS-BzjICR_A.js"} \ No newline at end of file diff --git a/assets/ScheduledAtField-BOlu1KST.js b/assets/ScheduledAtField-BOlu1KST.js new file mode 100644 index 0000000..c3ba7d6 --- /dev/null +++ b/assets/ScheduledAtField-BOlu1KST.js @@ -0,0 +1,194 @@ +import{as as ce,Y as It,e as o,d as H,q as yt,A as N,_ as _e,y as q,K as $s,at as gc,m as it,V as Re,h as Hr,au as vc,av as vo,aw as yc,ax as Ns,X as Os,k as F,M as $e,l as pr,$ as Wt,I as yo,G as Rt,s as z,ay as bc,az as Mi,x as wc,aA as _c,aB as Kr,g as jr,F as mr,u as Kt,a as Ve,w as kc,J as Tc,aC as Sc,aD as Ii,T as x,aE as Fs,aF as Cc,aG as Ec,p as Eo,B as bo,aa as Bs,aH as Ac,aI as Bt,aJ as xc,aK as Mc,aL as Qn,c as Ge,R as Qt,aM as Ic,aN as Lc,a2 as zs,aO as Ur,aP as Pc,t as Dc,b as Me,z as Rc}from"./pwa-viewport-CZFc0vUU.js";import{ICONS as $c}from"./ICONS-BzjICR_A.js";const Hs=["shift","alt","meta","mod","ctrl","control"],Nc={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function De(t){return(Nc[t.trim()]||t.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function Ks(t){return Hs.includes(t)}function Uo(t,e=","){return t.toLowerCase().split(e)}function qo(t,e="+",n=">",r=!1,s){let a=[],i=!1;t=t.trim(),t.includes(n)?(i=!0,a=t.toLocaleLowerCase().split(n).map(h=>De(h))):a=t.toLocaleLowerCase().split(e).map(h=>De(h));const c={alt:a.includes("alt"),ctrl:a.includes("ctrl")||a.includes("control"),shift:a.includes("shift"),meta:a.includes("meta"),mod:a.includes("mod"),useKey:r},l=a.filter(h=>!Hs.includes(h));return{...c,keys:l,description:s,isSequence:i,hotkey:t}}typeof document<"u"&&(document.addEventListener("keydown",t=>{t.code!==void 0&&js([De(t.code)])}),document.addEventListener("keyup",t=>{t.code!==void 0&&Us([De(t.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{ye.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{ye.clear()},0)}));const ye=new Set;function qr(t){return Array.isArray(t)}function Oc(t,e=","){return(qr(t)?t:t.split(e)).every(n=>ye.has(n.trim().toLowerCase()))}function js(t){const e=Array.isArray(t)?t:[t];ye.has("meta")&&ye.forEach(n=>!Ks(n)&&ye.delete(n.toLowerCase())),e.forEach(n=>ye.add(n.toLowerCase()))}function Us(t){const e=Array.isArray(t)?t:[t];t==="meta"?ye.clear():e.forEach(n=>ye.delete(n.toLowerCase()))}function Fc(t,e,n){(typeof n=="function"&&n(t,e)||n===!0)&&t.preventDefault()}function Bc(t,e,n){return typeof n=="function"?n(t,e):n===!0||n===void 0}const zc=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"];function Hc(t){return qs(t,zc)}function qs(t,e=!1){const{target:n,composed:r}=t;let s,a;return Kc(n)&&r?(s=t.composedPath()[0]&&t.composedPath()[0].tagName,a=t.composedPath()[0]&&t.composedPath()[0].role):(s=n&&n.tagName,a=n&&n.role),qr(e)?!!(s&&e&&e.some(i=>i.toLowerCase()===s.toLowerCase()||i===a)):!!(s&&e&&e)}function Kc(t){return!!t.tagName&&!t.tagName.startsWith("-")&&t.tagName.includes("-")}function jc(t,e){return t.length===0&&e?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a '),!0):e?t.some(n=>e.includes(n))||t.includes("*"):!0}const Uc=(t,e,n=!1)=>{const{alt:r,meta:s,mod:a,shift:i,ctrl:c,keys:l,useKey:h}=e,{code:d,key:u,ctrlKey:f,metaKey:p,shiftKey:m,altKey:g}=t,v=De(d);if(h&&l?.length===1&&l.includes(u))return!0;if(!l?.includes(v)&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(v))return!1;if(!n){if(r!==g&&v!=="alt"||i!==m&&v!=="shift")return!1;if(a){if(!p&&!f)return!1}else if(s!==p&&v!=="meta"&&v!=="os"||c!==f&&v!=="ctrl"&&v!=="control")return!1}return l&&l.length===1&&l.includes(v)?!0:l?Oc(l):!l},qc=ce(void 0),Wc=()=>It(qc);function Ws(t,e){return t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(t).length===Object.keys(e).length&&Object.keys(t).reduce((n,r)=>n&&Ws(t[r],e[r]),!0):t===e}const Vc=ce({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),Zc=()=>It(Vc);function Gc(t){const e=N(void 0);return Ws(e.current,t)||(e.current=t),e.current}const Li=t=>{t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},Yc=typeof window<"u"?_e:q;function Ke(t,e,n,r){const s=N(null),a=N(!1),i=Array.isArray(n)?Array.isArray(r)?void 0:r:n,c=qr(t)?t.join(i?.delimiter):t,l=Array.isArray(n)?n:Array.isArray(r)?r:void 0,h=yt(e,l??[]),d=N(h);l?d.current=h:d.current=e;const u=Gc(i),{activeScopes:f}=Zc(),p=Wc();return Yc(()=>{if(u?.enabled===!1||!jc(f,u?.scopes))return;let m=[],g;const v=(C,_=!1)=>{if(!(Hc(C)&&!qs(C,u?.enableOnFormTags))){if(s.current!==null){const T=s.current.getRootNode();if((T instanceof Document||T instanceof ShadowRoot)&&T.activeElement!==s.current&&!s.current.contains(T.activeElement)){Li(C);return}}C.target?.isContentEditable&&!u?.enableOnContentEditable||Uo(c,u?.delimiter).forEach(T=>{if(T.includes(u?.splitKey??"+")&&T.includes(u?.sequenceSplitKey??">")){console.warn(`Hotkey ${T} contains both ${u?.splitKey??"+"} and ${u?.sequenceSplitKey??">"} which is not supported.`);return}const E=qo(T,u?.splitKey,u?.sequenceSplitKey,u?.useKey,u?.description);if(E.isSequence){g=setTimeout(()=>{m=[]},u?.sequenceTimeoutMs??1e3);const w=E.useKey?C.key:De(C.code);if(Ks(w.toLowerCase()))return;m.push(w);const M=E.keys?.[m.length-1];if(w!==M){m=[],g&&clearTimeout(g);return}m.length===E.keys?.length&&(d.current(C,E),g&&clearTimeout(g),m=[])}else if(Uc(C,E,u?.ignoreModifiers)||E.keys?.includes("*")){if(u?.ignoreEventWhen?.(C)||_&&a.current)return;if(Fc(C,E,u?.preventDefault),!Bc(C,E,u?.enabled)){Li(C);return}d.current(C,E),_||(a.current=!0)}})}},b=C=>{C.code!==void 0&&(js(De(C.code)),(u?.keydown===void 0&&u?.keyup!==!0||u?.keydown)&&v(C))},k=C=>{C.code!==void 0&&(Us(De(C.code)),a.current=!1,u?.keyup&&v(C,!0))},S=s.current||i?.document||document;return S.addEventListener("keyup",k,i?.eventListenerOptions),S.addEventListener("keydown",b,i?.eventListenerOptions),p&&Uo(c,u?.delimiter).forEach(C=>p.addHotkey(qo(C,u?.splitKey,u?.sequenceSplitKey,u?.useKey,u?.description))),()=>{S.removeEventListener("keyup",k,i?.eventListenerOptions),S.removeEventListener("keydown",b,i?.eventListenerOptions),p&&Uo(c,u?.delimiter).forEach(C=>p.removeHotkey(qo(C,u?.splitKey,u?.sequenceSplitKey,u?.useKey,u?.description))),m=[],g&&clearTimeout(g)}},[c,u,f]),s}var po={exports:{}};var Xc=po.exports,Pi;function Qc(){return Pi||(Pi=1,function(t){(function(e,n){t.exports?t.exports=n():e.Toastify=n()})(Xc,function(e){var n=function(i){return new n.lib.init(i)},r="1.12.0";n.defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}},n.lib=n.prototype={toastify:r,constructor:n,init:function(i){return i||(i={}),this.options={},this.toastElement=null,this.options.text=i.text||n.defaults.text,this.options.node=i.node||n.defaults.node,this.options.duration=i.duration===0?0:i.duration||n.defaults.duration,this.options.selector=i.selector||n.defaults.selector,this.options.callback=i.callback||n.defaults.callback,this.options.destination=i.destination||n.defaults.destination,this.options.newWindow=i.newWindow||n.defaults.newWindow,this.options.close=i.close||n.defaults.close,this.options.gravity=i.gravity==="bottom"?"toastify-bottom":n.defaults.gravity,this.options.positionLeft=i.positionLeft||n.defaults.positionLeft,this.options.position=i.position||n.defaults.position,this.options.backgroundColor=i.backgroundColor||n.defaults.backgroundColor,this.options.avatar=i.avatar||n.defaults.avatar,this.options.className=i.className||n.defaults.className,this.options.stopOnFocus=i.stopOnFocus===void 0?n.defaults.stopOnFocus:i.stopOnFocus,this.options.onClick=i.onClick||n.defaults.onClick,this.options.offset=i.offset||n.defaults.offset,this.options.escapeMarkup=i.escapeMarkup!==void 0?i.escapeMarkup:n.defaults.escapeMarkup,this.options.ariaLive=i.ariaLive||n.defaults.ariaLive,this.options.style=i.style||n.defaults.style,i.backgroundColor&&(this.options.style.background=i.backgroundColor),this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var i=document.createElement("div");i.className="toastify on "+this.options.className,this.options.position?i.className+=" toastify-"+this.options.position:this.options.positionLeft===!0?(i.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):i.className+=" toastify-right",i.className+=" "+this.options.gravity,this.options.backgroundColor&&console.warn('DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.');for(var c in this.options.style)i.style[c]=this.options.style[c];if(this.options.ariaLive&&i.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)i.appendChild(this.options.node);else if(this.options.escapeMarkup?i.innerText=this.options.text:i.innerHTML=this.options.text,this.options.avatar!==""){var l=document.createElement("img");l.src=this.options.avatar,l.className="toastify-avatar",this.options.position=="left"||this.options.positionLeft===!0?i.appendChild(l):i.insertAdjacentElement("afterbegin",l)}if(this.options.close===!0){var h=document.createElement("button");h.type="button",h.setAttribute("aria-label","Close"),h.className="toast-close",h.innerHTML="✖",h.addEventListener("click",(function(v){v.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}).bind(this));var d=window.innerWidth>0?window.innerWidth:screen.width;(this.options.position=="left"||this.options.positionLeft===!0)&&d>360?i.insertAdjacentElement("afterbegin",h):i.appendChild(h)}if(this.options.stopOnFocus&&this.options.duration>0){var u=this;i.addEventListener("mouseover",function(v){window.clearTimeout(i.timeOutValue)}),i.addEventListener("mouseleave",function(){i.timeOutValue=window.setTimeout(function(){u.removeElement(i)},u.options.duration)})}if(typeof this.options.destination<"u"&&i.addEventListener("click",(function(v){v.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}).bind(this)),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&i.addEventListener("click",(function(v){v.stopPropagation(),this.options.onClick()}).bind(this)),typeof this.options.offset=="object"){var f=s("x",this.options),p=s("y",this.options),m=this.options.position=="left"?f:"-"+f,g=this.options.gravity=="toastify-top"?p:"-"+p;i.style.transform="translate("+m+","+g+")"}return i},showToast:function(){this.toastElement=this.buildToast();var i;if(typeof this.options.selector=="string"?i=document.getElementById(this.options.selector):this.options.selector instanceof HTMLElement||typeof ShadowRoot<"u"&&this.options.selector instanceof ShadowRoot?i=this.options.selector:i=document.body,!i)throw"Root element is not defined";var c=n.defaults.oldestFirst?i.firstChild:i.lastChild;return i.insertBefore(this.toastElement,c),n.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout((function(){this.removeElement(this.toastElement)}).bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(i){i.className=i.className.replace(" on",""),window.setTimeout((function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),i.parentNode&&i.parentNode.removeChild(i),this.options.callback.call(i),n.reposition()}).bind(this),400)}},n.reposition=function(){for(var i={top:15,bottom:15},c={top:15,bottom:15},l={top:15,bottom:15},h=document.getElementsByClassName("toastify"),d,u=0;u0?window.innerWidth:screen.width;m<=360?(h[u].style[d]=l[d]+"px",l[d]+=f+p):a(h[u],"toastify-left")===!0?(h[u].style[d]=i[d]+"px",i[d]+=f+p):(h[u].style[d]=c[d]+"px",c[d]+=f+p)}return this};function s(i,c){return c.offset[i]?isNaN(c.offset[i])?c.offset[i]:c.offset[i]+"px":"0px"}function a(i,c){return!i||typeof c!="string"?!1:!!(i.className&&i.className.trim().split(/\s+/gi).indexOf(c)>-1)}return n.lib.init.prototype=n.lib,n})}(po)),po.exports}var Jc=Qc();const tl=$s(Jc);window._showToast=ht;function ht(t){typeof t=="string"&&(t={text:t});const{onClick:e,delay:n,...r}=t,s=tl({className:`${e||t.destination?"shiny-pill":""}`,gravity:"bottom",position:"center",...r,onClick:()=>{e?.(s)}});return n?setTimeout(()=>{s.showToast()},n):s.showToast(),s}function xy(t,e,n,r){const s=N(t);q(()=>{s.current=t},[t,n]),q(()=>{!r||e===null||e===!1||s.current()},[r]),q(()=>{if(e===null||e===!1)return;const i=setInterval(()=>s.current(),e);return()=>clearInterval(i)},[e])}const Wr=t=>!!t&&t[0]==="o",gr=gc,Bn=(t,e)=>t===!0||!!(t&&t[e]),qt=(t,e)=>typeof t=="function"?t(e):t,el="_szhsinMenu",nl=t=>t[el];const hn=(t,e)=>(e&&Object.keys(e).forEach(n=>{const r=t[n],s=e[n];typeof s=="function"&&r?t[n]=(...a)=>{s(...a),r(...a)}:t[n]=s}),t),ol=t=>{if(typeof t!="string")return{top:0,right:0,bottom:0,left:0};const e=t.trim().split(/\s+/,4).map(parseFloat),n=isNaN(e[0])?0:e[0],r=isNaN(e[1])?n:e[1];return{top:n,right:r,bottom:isNaN(e[2])?n:e[2],left:isNaN(e[3])?r:e[3]}},Wo=t=>{for(;t;){if(t=t.parentNode,!t||t===document.body||!t.parentNode)return;const{overflow:e,overflowX:n,overflowY:r}=getComputedStyle(t);if(/auto|scroll|overlay|hidden/.test(e+r+n))return t}};function Ao(t,e){return{"aria-disabled":t||void 0,tabIndex:e?0:-1}}function Di(t,e){for(let n=0;nit(()=>{const s=e?`${t}__${e}`:t;let a=s;n&&Object.keys(n).forEach(c=>{const l=n[c];l&&(a+=` ${s}--${l===!0?c:`${c}-${l}`}`)});let i=typeof r=="function"?r(n):r;return typeof i=="string"&&(i=i.trim(),i&&(a+=` ${i}`)),a},[t,e,n,r]),rl="szh-menu-container",fe="szh-menu";const il="arrow",Vr="item",sl="divider",al="header",cl="group",ll="submenu";const Vs=ce(),Zr=ce({}),wo=ce({}),Gr=ce({}),ul=ce({}),xo=ce({}),zt=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),Et=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),zn=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),rn=Object.freeze({FIRST:"first",LAST:"last"}),dl=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),Ri="absolute",Yr="none",Xr="menuitem",vr={preventScroll:!0};const hl=({className:t,containerRef:e,containerProps:n,children:r,isOpen:s,theming:a,transition:i,onClose:c})=>{const l=Bn(i,"item");return o("div",{...hn({onKeyDown:({key:u})=>{switch(u){case zt.ESC:qt(c,{key:u,reason:zn.CANCEL});break}},onBlur:u=>{s&&!u.currentTarget.contains(u.relatedTarget)&&qt(c,{reason:zn.BLUR})}},n),className:pe({block:rl,modifiers:it(()=>({theme:a,itemTransition:l}),[a,l]),className:t}),style:{position:"absolute",...n?.style},ref:e,children:r})},fl=()=>{let t,e=0;return{toggle:n=>{n?e++:e--,e=Math.max(e,0)},on:(n,r,s)=>{e?t||(t=setTimeout(()=>{t=0,r()},n)):s?.()},off:()=>{t&&(clearTimeout(t),t=0)}}},pl=t=>{const[e,n]=H(),s=N({items:[],hoverIndex:-1,sorted:!1}).current,a=yt((c,l)=>{const{items:h}=s;if(!c)s.items=[];else if(l)h.push(c);else{const d=h.indexOf(c);d>-1&&(h.splice(d,1),c.contains(document.activeElement)&&(t.current.focus(vr),n()))}s.hoverIndex=-1,s.sorted=!1},[s,t]),i=yt((c,l,h)=>{const{items:d,hoverIndex:u}=s,f=()=>{if(s.sorted)return;const g=t.current.querySelectorAll(".szh-menu__item");d.sort((v,b)=>Di(g,v)-Di(g,b)),s.sorted=!0};let p=-1,m;switch(c){case Et.RESET:break;case Et.SET:m=l;break;case Et.UNSET:m=g=>g===l?void 0:g;break;case Et.FIRST:f(),p=0,m=d[p];break;case Et.LAST:f(),p=d.length-1,m=d[p];break;case Et.SET_INDEX:f(),p=h,m=d[p];break;case Et.INCREASE:f(),p=u,p<0&&(p=d.indexOf(l)),p++,p>=d.length&&(p=0),m=d[p];break;case Et.DECREASE:f(),p=u,p<0&&(p=d.indexOf(l)),p--,p<0&&(p=d.length-1),m=d[p];break;default:}m||(p=-1),n(m),s.hoverIndex=p},[t,s]);return{hoverItem:e,dispatch:i,updateItems:a}},$i=(t,e)=>Math.round(t)===e?t:e,Zs=t=>{const e=t.getBoundingClientRect();return e.width=$i(e.width,t.offsetWidth),e.height=$i(e.height,t.offsetHeight),e},ml=(t,e,n,r)=>{const s=Zs(e),a=t.getBoundingClientRect(),i=n===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:n.getBoundingClientRect(),c=ol(r),l=m=>m+a.left-i.left-c.left,h=m=>m+a.left+s.width-i.right+c.right,d=m=>m+a.top-i.top-c.top,u=m=>m+a.top+s.height-i.bottom+c.bottom;return{menuRect:s,containerRect:a,getLeftOverflow:l,getRightOverflow:h,getTopOverflow:d,getBottomOverflow:u,confineHorizontally:m=>{let g=l(m);if(g<0)m-=g;else{const v=h(m);v>0&&(m-=v,g=l(m),g<0&&(m-=g))}return m},confineVertically:m=>{let g=d(m);if(g<0)m-=g;else{const v=u(m);v>0&&(m-=v,g=d(m),g<0&&(m-=g))}return m}}},gl=({arrowRef:t,menuY:e,anchorRect:n,containerRect:r,menuRect:s})=>{let a=n.top-r.top-e+n.height/2;const i=t.current.offsetHeight*1.25;return a=Math.max(i,a),a=Math.min(a,s.height-i),a},vl=({anchorRect:t,containerRect:e,menuRect:n,placeLeftorRightY:r,placeLeftX:s,placeRightX:a,getLeftOverflow:i,getRightOverflow:c,confineHorizontally:l,confineVertically:h,arrowRef:d,arrow:u,direction:f,position:p})=>{let m=f,g=r;p!=="initial"&&(g=h(g),p==="anchor"&&(g=Math.min(g,t.bottom-e.top),g=Math.max(g,t.top-e.top-n.height)));let v,b,k;return m==="left"?(v=s,p!=="initial"&&(b=i(v),b<0&&(k=c(a),(k<=0||-b>k)&&(v=a,m="right")))):(v=a,p!=="initial"&&(k=c(v),k>0&&(b=i(s),(b>=0||-b{let a=n.left-r.left-e+n.width/2;const i=t.current.offsetWidth*1.25;return a=Math.max(i,a),a=Math.min(a,s.width-i),a},bl=({anchorRect:t,containerRect:e,menuRect:n,placeToporBottomX:r,placeTopY:s,placeBottomY:a,getTopOverflow:i,getBottomOverflow:c,confineHorizontally:l,confineVertically:h,arrowRef:d,arrow:u,direction:f,position:p})=>{let m=f==="top"?"top":"bottom",g=r;p!=="initial"&&(g=l(g),p==="anchor"&&(g=Math.min(g,t.right-e.left),g=Math.max(g,t.left-e.left-n.width)));let v,b,k;return m==="top"?(v=s,p!=="initial"&&(b=i(v),b<0&&(k=c(a),(k<=0||-b>k)&&(v=a,m="bottom")))):(v=a,p!=="initial"&&(k=c(v),k>0&&(b=i(s),(b>=0||-b{const{menuRect:h,containerRect:d}=l,u=n==="left"||n==="right";let f=u?r:s,p=u?s:r;if(t){const _=c.current;u?f+=_.offsetWidth:p+=_.offsetHeight}const m=i.left-d.left-h.width-f,g=i.right-d.left+f,v=i.top-d.top-h.height-p,b=i.bottom-d.top+p;let k,S;e==="end"?(k=i.right-d.left-h.width,S=i.bottom-d.top-h.height):e==="center"?(k=i.left-d.left-(h.width-i.width)/2,S=i.top-d.top-(h.height-i.height)/2):(k=i.left-d.left,S=i.top-d.top),k+=f,S+=p;const C={...l,anchorRect:i,placeLeftX:m,placeRightX:g,placeLeftorRightY:S,placeTopY:v,placeBottomY:b,placeToporBottomX:k,arrowRef:c,arrow:t,direction:n,position:a};switch(n){case"left":case"right":return vl(C);case"top":case"bottom":default:return bl(C)}},sn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?_e:q;function Ni(t,e){typeof t=="function"?t(e):t.current=e}const fn=(t,e)=>it(()=>t?e?n=>{Ni(t,n),Ni(e,n)}:t:e,[t,e]),Oi=-9999,Gs=({ariaLabel:t,menuClassName:e,menuStyle:n,arrow:r,arrowProps:s={},anchorPoint:a,anchorRef:i,containerRef:c,containerProps:l,externalRef:h,parentScrollingRef:d,align:u="start",direction:f="bottom",position:p="auto",overflow:m="visible",setDownOverflow:g,repositionFlag:v,captureFocus:b=!0,state:k,endTransition:S,isDisabled:C,menuItemFocus:_,gap:T=0,shift:E=0,children:w,onClose:M,focusProps:P,...L})=>{const[A,$]=H({x:Oi,y:Oi}),[R,W]=H({}),[B,Y]=H(),[et,ct]=H(f),[nt]=H(fl),[Z,st]=Hr(X=>X+1,1),{transition:J,boundingBoxRef:Tt,boundingBoxPadding:Lt,rootMenuRef:$t,rootAnchorRef:dt,scrollNodesRef:le,reposition:ne,viewScroll:oe,submenuCloseDelay:K}=It(xo),{submenuCtx:mt,reposSubmenu:Pt=v}=It(wo),At=N(),Ft=N(),jt=N(!1),{hoverItem:tt,dispatch:ot,updateItems:lt}=pl(At),gt=Wr(k),Vt=Bn(J,"open"),bt=Bn(J,"close"),O=le.current,G=X=>{switch(X.key){case zt.HOME:ot(Et.FIRST);break;case zt.END:ot(Et.LAST);break;case zt.UP:ot(Et.DECREASE,tt);break;case zt.DOWN:ot(Et.INCREASE,tt);break;case zt.SPACE:X.target&&X.target.className.indexOf(fe)!==-1&&X.preventDefault();return;default:return}X.preventDefault(),X.stopPropagation()},U=()=>{k==="closing"&&Y(),qt(S)},wt=X=>{X.stopPropagation(),nt.on(K,()=>{ot(Et.RESET),At.current.focus(vr)})},Mt=X=>{X.target===X.currentTarget&&nt.off()},ft=yt(X=>{const St=At.current,Nt=c.current;if(!St||!Nt)return;const Ot=i?i.current?.getBoundingClientRect():a?{left:a.x,right:a.x,top:a.y,bottom:a.y,width:0,height:0}:null;if(!Ot)return;O.menu||(O.menu=(Tt?Tt.current:Wo($t.current))||window);const kt=ml(Nt,St,O.menu,Lt);let{arrowX:Oe,arrowY:pn,x:Io,y:pt,computedDirection:mn}=wl({arrow:r,align:u,direction:f,gap:T,shift:E,position:p,anchorRect:Ot,arrowRef:Ft,positionHelpers:kt});const{menuRect:me}=kt,ie=me.height;if(!X&&m!=="visible"){const{getTopOverflow:Lo,getBottomOverflow:te}=kt;let se,Gt;const Xe=te(pt);if(Xe>0)se=ie-Xe,Gt=Xe;else{const Ce=Lo(pt);Ce<0&&(se=ie+Ce,Gt=0-Ce,se>=0&&(pt-=Ce))}se>=0&&Y({height:se,overflowAmt:Gt})}r&&W({x:Oe,y:pn}),$({x:Io,y:pt}),ct(mn)},[r,u,Lt,f,T,E,p,m,a,i,c,Tt,$t,O]);sn(()=>{gt&&(ft(),jt.current&&st()),jt.current=gt},[gt,ft,Pt]),sn(()=>{B&&!g&&(At.current.scrollTop=0)},[B,g]),sn(()=>lt,[lt]),q(()=>{let{menu:X}=O;if(!gt||!X)return;if(X=X.addEventListener?X:window,!O.anchors){O.anchors=[];let kt=Wo(dt&&dt.current);for(;kt&&kt!==X;)O.anchors.push(kt),kt=Wo(kt)}let St=oe;if(O.anchors.length&&St==="initial"&&(St="auto"),St==="initial")return;const Nt=()=>{St==="auto"?gr(()=>ft(!0)):qt(M,{reason:zn.SCROLL})},Ot=O.anchors.concat(oe!=="initial"?X:[]);return Ot.forEach(kt=>kt.addEventListener("scroll",Nt)),()=>Ot.forEach(kt=>kt.removeEventListener("scroll",Nt))},[dt,O,gt,M,oe,ft]);const xt=!!B&&B.overflowAmt>0;q(()=>{if(xt||!gt||!d)return;const X=()=>gr(ft),St=d.current;return St.addEventListener("scroll",X),()=>St.removeEventListener("scroll",X)},[gt,xt,d,ft]),q(()=>{if(!gt||typeof ResizeObserver!="function"||ne==="initial")return;const X=[],St=new ResizeObserver(kt=>kt.forEach(({target:Oe})=>{X.indexOf(Oe)<0?X.push(Oe):vc(()=>{ft(),st()})})),Nt={box:"border-box"};St.observe(At.current,Nt);const Ot=i?.current;return Ot&&St.observe(Ot,Nt),()=>St.disconnect()},[gt,ne,i,ft]),q(()=>{if(!gt){ot(Et.RESET),bt||Y();return}const{position:X,alwaysUpdate:St}=_||{},Nt=()=>{X===rn.FIRST?ot(Et.FIRST):X===rn.LAST?ot(Et.LAST):X>=-1&&ot(Et.SET_INDEX,void 0,X)};if(St)Nt();else if(b){const Ot=setTimeout(()=>{const kt=At.current;kt&&!kt.contains(document.activeElement)&&(kt.focus(vr),Nt())},Vt?170:100);return()=>clearTimeout(Ot)}},[gt,Vt,bt,b,_,ot]);const Dt=it(()=>({isParentOpen:gt,submenuCtx:nt,dispatch:ot,updateItems:lt}),[gt,nt,ot,lt]);let vt,Zt;B&&(g?Zt=B.overflowAmt:vt=B.height);const V=it(()=>({reposSubmenu:Z,submenuCtx:nt,overflow:m,overflowAmt:Zt,parentMenuRef:At,parentDir:et}),[Z,nt,m,Zt,et]),_t=vt>=0?{maxHeight:vt,overflow:m}:void 0,Ht=it(()=>({state:k,align:u,dir:et}),[k,u,et]),re=it(()=>({dir:et}),[et]),Jt=pe({block:fe,element:il,modifiers:re,className:s.className}),Se=o("ul",{role:"menu","aria-label":t,...Ao(C),...hn({onPointerEnter:mt?.off,onPointerMove:wt,onPointerLeave:Mt,onKeyDown:G,onAnimationEnd:U},L),ref:fn(h,At),className:pe({block:fe,modifiers:Ht,className:e}),style:{...n,..._t,margin:0,display:k==="closed"?"none":void 0,position:Ri,left:A.x,top:A.y},children:[r&&o("li",{"aria-hidden":!0,...s,className:Jt,style:{display:"block",position:Ri,left:R.x,top:R.y,...s.style},ref:Ft}),o(wo.Provider,{value:V,children:o(Zr.Provider,{value:Dt,children:o(Vs.Provider,{value:tt,children:qt(w,Ht)})})})]});return l?o(hl,{...l,isOpen:gt,children:Se}):Se},Ys=Re(function({"aria-label":e,className:n,containerProps:r,initialMounted:s,unmountOnClose:a,transition:i,transitionTimeout:c,boundingBoxRef:l,boundingBoxPadding:h,reposition:d="auto",submenuOpenDelay:u=300,submenuCloseDelay:f=150,viewScroll:p="initial",portal:m,theming:g,onItemClick:v,...b},k){const S=N(null),C=N({}),{anchorRef:_,state:T,onClose:E}=b,w=it(()=>({initialMounted:s,unmountOnClose:a,transition:i,transitionTimeout:c,boundingBoxRef:l,boundingBoxPadding:h,rootMenuRef:S,rootAnchorRef:_,scrollNodesRef:C,reposition:d,viewScroll:p,submenuOpenDelay:u,submenuCloseDelay:f}),[s,a,i,c,_,l,h,d,p,u,f]),M=it(()=>({handleClick(L,A){L.stopPropagation||qt(v,L);let $=L.keepOpen;$===void 0&&($=A&&L.key===zt.SPACE),$||qt(E,{value:L.value,key:L.key,reason:zn.CLICK})},handleClose(L){qt(E,{key:L,reason:zn.CLICK})}}),[v,E]);if(!T)return null;const P=o(xo.Provider,{value:w,children:o(Gr.Provider,{value:M,children:o(Gs,{...b,ariaLabel:e||"Menu",externalRef:k,containerRef:S,containerProps:{className:n,containerRef:S,containerProps:r,theming:g,transition:i,onClose:E}})})});return m===!0&&typeof document<"u"?vo(P,document.body):m?m.target?vo(P,m.target):m.stablePosition?null:P:P}),yr=0,br=1,_o=2,ko=3,To=4,_l=5,Xs=6,kl=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],Qs=t=>({_s:t,status:kl[t],isEnter:tTo}),wr=t=>t?Xs:_l,Tl=(t,e)=>{switch(t){case br:case yr:return _o;case To:case ko:return wr(e)}},Sl=t=>typeof t=="object"?[t.enter,t.exit]:[t,t],Cl=(t,e)=>setTimeout(()=>{isNaN(document.body.offsetTop)||t(e+1)},0),Fi=(t,e,n,r,s)=>{clearTimeout(r.current);const a=Qs(t);e(a),n.current=a,s&&s({current:a})},El=({enter:t=!0,exit:e=!0,preEnter:n,preExit:r,timeout:s,initialEntered:a,mountOnEnter:i,unmountOnExit:c,onStateChange:l}={})=>{const[h,d]=H(()=>Qs(a?_o:wr(i))),u=N(h),f=N(),[p,m]=Sl(s),g=yt(()=>{const b=Tl(u.current._s,c);b&&Fi(b,d,u,f,l)},[l,c]),v=yt(b=>{const k=C=>{switch(Fi(C,d,u,f,l),C){case br:p>=0&&(f.current=setTimeout(g,p));break;case To:m>=0&&(f.current=setTimeout(g,m));break;case yr:case ko:f.current=Cl(k,C);break}},S=u.current.isEnter;typeof b!="boolean"&&(b=!S),b?!S&&k(t?n?yr:br:_o):S&&k(e?r?ko:To:wr(c))},[g,l,t,e,n,r,p,m,c]);return[h,v,g]};const Al=({initialOpen:t,initialMounted:e,unmountOnClose:n,transition:r,transitionTimeout:s=500,onMenuChange:a}={})=>{const i=Bn(r,"open"),c=Bn(r,"close"),[{status:l},h,d]=El({initialEntered:t,mountOnEnter:!e,unmountOnExit:n,timeout:s,enter:i,exit:c,onStateChange:yt(({current:{isEnter:u,isResolved:f}})=>{!a||u&&i&&f||!u&&c&&f||a({open:u})},[a,i,c])});return[{state:dl[l],endTransition:d},h]},Js=t=>{const[e,n]=Al(t),[r,s]=H(),a=(i,c)=>{s({position:i,alwaysUpdate:c}),n(!0)};return[{menuItemFocus:r,...e},n,a]},xl=(t,e)=>{const[n]=H({});return{onMouseDown:()=>{n.v=t&&t!=="closed"},onClick:r=>n.v?n.v=!1:e(!0,r)}},Ml=parseInt(yc)<19,Il=Re(function({"aria-label":e,captureFocus:n,initialOpen:r,menuButton:s,instanceRef:a,onMenuChange:i,...c},l){const[h,d,u]=Js({...c,onMenuChange:i}),{state:f}=h,p=Wr(f),m=N(null),g=xl(f,(_,T)=>u(T.detail?void 0:rn.FIRST)),v=yt(_=>{d(!1),_.key&&m.current.focus()},[d]),b=_=>{switch(_.key){case zt.UP:u(rn.LAST);break;case zt.DOWN:u(rn.FIRST);break;default:return}_.preventDefault()},k=qt(s,{open:p});if(!k||!k.type)throw new Error("Menu requires a menuButton prop.");const S={...hn({onKeyDown:b,...g},k.props),ref:fn(Ml?k.ref:k.props.ref,m)};nl(k.type)==="MenuButton"&&(S.isOpen=p);const C=Ns(k,S);return Os(a,()=>({openMenu:u,closeMenu:()=>d(!1)})),o(F,{children:[C,o(Ys,{...c,...h,"aria-label":e||(typeof k.props.children=="string"?k.props.children:"Menu"),anchorRef:m,ref:l,onClose:v})]})}),Qr=(t,e)=>{const n=$e(e),r=Re((s,a)=>{const i=N(null);return o(n,{...s,itemRef:i,externalRef:a,isHovering:It(Vs)===i.current})});return r.displayName=`WithHovering(${t})`,r},ta=t=>{const[e,n]=H(!1);return q(()=>{!t&&n(!1)},[t]),[e,()=>!e&&n(!0),()=>n(!1)]},ea=(t,e,n)=>{sn(()=>{if(t)return;const r=e.current;return n(r,!0),()=>{n(r)}},[t,e,n])},Ll=Qr("SubMenu",function({"aria-label":e,className:n,disabled:r,direction:s,label:a,openTrigger:i,onMenuChange:c,isHovering:l,instanceRef:h,itemRef:d,captureFocus:u,repositionFlag:f,itemProps:p={},portal:m=!1,...g}){const v=It(xo),{rootMenuRef:b,submenuOpenDelay:k,submenuCloseDelay:S}=v,{parentMenuRef:C,parentDir:_,overflow:T}=It(wo),{isParentOpen:E,submenuCtx:w,dispatch:M,updateItems:P}=It(Zr),L=m||T!=="visible",[A,$,R]=Js({...v,onMenuChange:c}),[W,B,Y]=ta(l),{state:et}=A,ct=!!r,nt=Wr(et),Z=N(null),[st]=H({v:0}),J=()=>{w.off(),st.v&&(clearTimeout(st.v),st.v=0)},Tt=(...tt)=>{J(),Lt(),!ct&&R(...tt)},Lt=()=>!l&&!ct&&M(Et.SET,d.current),$t=tt=>{Lt(),i||(st.v=setTimeout(()=>gr(Tt),Math.max(tt,0)))},dt=tt=>{ct||(tt.stopPropagation(),B(),!(st.v||nt)&&w.on(S,()=>$t(k-S),()=>$t(k)))},le=()=>{Y(),J(),nt||M(Et.UNSET,d.current)},ne=tt=>{if(l)switch(tt.key){case zt.ENTER:tt.preventDefault();case zt.SPACE:case zt.RIGHT:i!=="none"&&Tt(rn.FIRST)}},oe=tt=>{let ot=!1;switch(tt.key){case zt.LEFT:nt&&(d.current.focus(),$(!1),ot=!0);break;case zt.RIGHT:nt||(ot=!0);break}ot&&(tt.preventDefault(),tt.stopPropagation())};ea(ct,d,P),q(()=>w.toggle(nt),[w,nt]),q(()=>()=>{clearTimeout(st.v),w.toggle(!1)},[st,w]),q(()=>{l&&E?d.current.focus():$(!1)},[l,E,$,d]),Os(h,()=>({openMenu:(...tt)=>{E&&Tt(...tt)},closeMenu:()=>{nt&&(d.current.focus(),$(!1))}}));const K=it(()=>({open:nt,hover:W||l,disabled:ct,submenu:!0}),[nt,l,ct,W]),{ref:mt,className:Pt,...At}=p,Ft=hn({onPointerEnter:w.off,onPointerMove:dt,onPointerLeave:le,onKeyDown:ne,onClick:()=>i!=="none"&&Tt()},At),jt=()=>{const tt=o(Gs,{...g,...A,ariaLabel:e||(typeof a=="string"?a:"Submenu"),anchorRef:d,containerRef:L?b:Z,direction:s||(_==="right"||_==="left"?_:"right"),parentScrollingRef:L&&C,isDisabled:ct}),ot=b.current;return L&&ot?vo(tt,ot):tt};return o("li",{className:pe({block:fe,element:ll,className:n}),style:{position:"relative"},role:Yr,ref:Z,onKeyDown:oe,children:[o("div",{role:Xr,"aria-haspopup":!0,"aria-expanded":nt,...Ao(ct,l),...Ft,ref:fn(mt,d),className:pe({block:fe,element:Vr,modifiers:K,className:Pt}),children:it(()=>qt(a,K),[a,K])}),et&&jt()]})}),na=(t,e,n,r)=>{const[s,a,i]=ta(n),{submenuCloseDelay:c}=It(xo),{isParentOpen:l,submenuCtx:h,dispatch:d,updateItems:u}=It(Zr),f=()=>{!n&&!r&&d(Et.SET,t.current)},p=()=>{!r&&d(Et.UNSET,t.current)},m=b=>{n&&!b.currentTarget.contains(b.relatedTarget)&&p()},g=b=>{r||(b.stopPropagation(),a(),h.on(c,f,f))},v=(b,k)=>{i(),h.off(),!k&&p()};return ea(r,t,u),q(()=>{n&&l&&e.current&&e.current.focus()},[e,n,l]),{mouseOver:s,setHover:f,onBlur:m,onPointerMove:g,onPointerLeave:v}},ut=Qr("MenuItem",function({className:e,value:n,href:r,type:s,checked:a,disabled:i,children:c,onClick:l,isHovering:h,itemRef:d,externalRef:u,...f}){const p=!!i,{mouseOver:m,setHover:g,...v}=na(d,d,h,p),b=It(Gr),k=It(ul),S=s==="radio",C=s==="checkbox",_=!!r&&!p&&!S&&!C,T=S?k.value===n:C?!!a:!1,E=A=>{if(p){A.stopPropagation(),A.preventDefault();return}const $={value:n,syntheticEvent:A};A.key!==void 0&&($.key=A.key),C&&($.checked=!T),S&&($.name=k.name),qt(l,$),S&&qt(k.onRadioChange,$),b.handleClick($,C||S)},w=A=>{if(h)switch(A.key){case zt.ENTER:A.preventDefault();case zt.SPACE:_?d.current.click():E(A)}},M=it(()=>({type:s,disabled:p,hover:m||h,checked:T,anchor:_}),[s,p,m,h,T,_]),P=hn({...v,onPointerDown:g,onKeyDown:w,onClick:E},f),L={role:S?"menuitemradio":C?"menuitemcheckbox":Xr,"aria-checked":S||C?T:void 0,...Ao(p,h),...P,ref:fn(u,d),className:pe({block:fe,element:Vr,modifiers:M,className:e}),children:it(()=>qt(c,M),[c,M])};return _?o("li",{role:Yr,children:o("a",{href:r,...L})}):o("li",{...L})}),Pl=Qr("FocusableItem",function({className:e,disabled:n,children:r,isHovering:s,itemRef:a,externalRef:i,...c}){const l=!!n,h=N(null),{mouseOver:d,setHover:u,onPointerLeave:f,...p}=na(a,h,s,l),{handleClose:m}=It(Gr),g=it(()=>({disabled:l,hover:d||s,focusable:!0}),[l,s,d]),v=it(()=>qt(r,{...g,ref:h,closeMenu:m}),[r,g,m]),b=hn({...p,onPointerLeave:k=>f(k,!0),onFocus:u},c);return o("li",{role:Xr,...Ao(l),...b,ref:fn(i,a),className:pe({block:fe,element:Vr,modifiers:g,className:e}),children:v})}),Tn=$e(Re(function({className:e,...n},r){return o("li",{role:"separator",...n,ref:r,className:pe({block:fe,element:sl,className:e})})})),My=$e(Re(function({className:e,...n},r){return o("li",{role:Yr,...n,ref:r,className:pe({block:fe,element:al,className:e})})})),Iy=Re(function({className:e,style:n,takeOverflow:r,...s},a){const i=N(null),[c,l]=H(),{overflow:h,overflowAmt:d}=It(wo);return sn(()=>{let u;r&&d>=0&&(u=Zs(i.current).height-d,u<0&&(u=0)),l(u>=0?{maxHeight:u,overflow:h}:void 0)},[r,h,d]),sn(()=>{c&&(i.current.scrollTop=0)},[c]),o("div",{...s,ref:fn(a,i),className:pe({block:fe,element:cl,className:e}),style:{...n,...c}})});var Pn=(t=>(t.Mouse="mouse",t.Touch="touch",t.Pointer="pointer",t))(Pn||{}),Dn=(t=>(t.CancelledByMovement="cancelled-by-movement",t.CancelledByRelease="cancelled-by-release",t.CancelledOutsideElement="cancelled-outside-element",t))(Dn||{});const Dl=["mousedown","mousemove","mouseup","mouseleave","mouseout"],Rl=["touchstart","touchmove","touchend","touchcancel"],$l=["pointerdown","pointermove","pointerup","pointerleave","pointerout"];function Nl(t){return typeof t=="object"&&t!==null&&"pageX"in t&&typeof t.pageX=="number"&&"pageY"in t&&typeof t.pageY=="number"}function Ol(t){var e;return Dl.includes((e=t?.nativeEvent)==null?void 0:e.type)}function oa(t){var e;return Rl.includes((e=t?.nativeEvent)==null?void 0:e.type)||"touches"in t}function Fl(t){const{nativeEvent:e}=t;return e?$l.includes(e?.type)||"pointerId"in e:!1}function Vo(t){return Ol(t)||oa(t)||Fl(t)}function Bi(t){var e;const n=oa(t)?(e=t?.touches)==null?void 0:e[0]:t;return Nl(n)?{x:n.pageX,y:n.pageY}:null}function Bl(t){return{target:t.target,currentTarget:t.currentTarget,nativeEvent:t,persist:()=>{}}}function ra(t,{threshold:e=400,captureEvent:n=!1,detect:r=Pn.Pointer,cancelOnMovement:s=!1,cancelOutsideElement:a=!0,filterEvents:i,onStart:c,onMove:l,onFinish:h,onCancel:d}={}){const u=N(!1),f=N(!1),p=N(),m=N(),g=N(t),v=N(null),b=yt(_=>T=>{f.current||Vo(T)&&(i!==void 0&&!i(T)||(n&&T.persist(),c?.(T,{context:_}),v.current=Bi(T),f.current=!0,p.current=T.currentTarget,m.current=setTimeout(()=>{g.current&&(g.current(T,{context:_}),u.current=!0)},e)))},[n,i,c,e]),k=yt(_=>(T,E)=>{Vo(T)&&f.current&&(v.current=null,n&&T.persist(),u.current?h?.(T,{context:_}):f.current&&d?.(T,{context:_,reason:E??Dn.CancelledByRelease}),u.current=!1,f.current=!1,m.current!==void 0&&clearTimeout(m.current))},[n,h,d]),S=yt(_=>T=>{if(Vo(T)&&(l?.(T,{context:_}),s!==!1&&v.current)){const E=Bi(T);if(E){const w=s===!0?25:s,M={x:Math.abs(E.x-v.current.x),y:Math.abs(E.y-v.current.y)};(M.x>w||M.y>w)&&k(_)(T,Dn.CancelledByMovement)}}},[k,s,l]),C=yt(_=>{if(t===null)return{};switch(r){case Pn.Mouse:{const T={onMouseDown:b(_),onMouseMove:S(_),onMouseUp:k(_)};return a&&(T.onMouseLeave=E=>{k(_)(E,Dn.CancelledOutsideElement)}),T}case Pn.Touch:return{onTouchStart:b(_),onTouchMove:S(_),onTouchEnd:k(_)};case Pn.Pointer:{const T={onPointerDown:b(_),onPointerMove:S(_),onPointerUp:k(_)};return a&&(T.onPointerLeave=E=>k(_)(E,Dn.CancelledOutsideElement)),T}}},[t,k,a,r,S,b]);return q(()=>{function _(T){const E=Bl(T);k()(E)}return window.addEventListener("mouseup",_),window.addEventListener("touchend",_),window.addEventListener("pointerup",_),()=>{window.removeEventListener("mouseup",_),window.removeEventListener("touchend",_),window.removeEventListener("pointerup",_)}},[k]),q(()=>()=>{m.current!==void 0&&clearTimeout(m.current)},[]),q(()=>{g.current=t},[t]),C}const zi="dtflocale";function zl(){try{const t=pr.session.get(zi);if(t)return t;const e=new Intl.DateTimeFormat().resolvedOptions().locale;return pr.session.set(zi,e),e}catch{return null}}const ia=Wt(zl);function Hl(){const t=[...navigator.languages],e=ia();return e&&!t.includes(e)&&t.unshift(e),t}let Hi=Hl();const Zo=Wt((t,e={})=>{try{return new Intl.Locale(t,e)}catch{if(!t)return null;const[r,...s]=t.split("-",4),a=s.pop()||null,i={language:r,region:a,...e,toString:()=>{const c=i.language,l=s.length>0?`-${s.join("-")}-`:"-",h=i.region;return h?`${c}${l}${h}`:c}};return i}}),Kl=(t,e)=>{const n=e,r=Zo(t);let s=null;for(const c of Hi){const l=Zo(c)?.region;if(l){s=l;break}}const a=s&&r&&r.region!==s?Zo(r.language,{...r,region:s})?.toString():null,i=yo([a,t,t?.replace(/-[a-z]+$/i,"")],Hi,t);try{return new Intl.DateTimeFormat(i,n)}catch{return new Intl.DateTimeFormat(void 0,n)}},_r=Wt(Kl);function Hn(t,e){t instanceof Date||(t=new Date(t));const{hideTime:n,formatOpts:r,forceOpts:s}=e||{},a=new Date().getFullYear(),i=s||{year:t.getFullYear()===a?void 0:"numeric",month:"short",day:"numeric",hour:n?void 0:"numeric",minute:n?void 0:"numeric",...r};return _r(Rt.locale,i).format(t)}function jl(t){const e=URL.parse("./compose/",window.location),{width:n,height:r}=window.screen,s=Math.max(0,(n-600)/2),a=Math.max(0,(r-450)/2),i=Math.min(n,600),c=Math.min(r,450),l=t?.uid||Math.random(),h=window.open(e,"compose"+l,`width=${i},height=${c},left=${s},top=${a}`);return h?h.__COMPOSE__=t:alert(Rt._({id:"4S86wI"})),h}const Ul=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);function ql(){if(Ul){const t=document.createElement("input");t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.opacity="0",document.body.appendChild(t),t.focus(),setTimeout(()=>{document.body.removeChild(t)},500)}}const Wl=document.documentElement,Jn=getComputedStyle(Wl),Vl=8;let sa=[0,0,0,0];function aa(){const t=Jn.getPropertyValue("--sai-top"),e=Jn.getPropertyValue("--sai-right"),n=Jn.getPropertyValue("--sai-bottom"),r=Jn.getPropertyValue("--sai-left");sa=[Math.max(0,parseInt(t,10)),Math.max(0,parseInt(e,10)),Math.max(0,parseInt(n,10)),Math.max(0,parseInt(r,10))]}requestAnimationFrame(aa);function ca(t=[]){return sa.map((n,r)=>(n||Vl)+(t[r]||0)).join(" ")}CSS.supports("top: env(safe-area-inset-top)")&&window.addEventListener("resize",aa,{passive:!0});const Ki=5e3;function Ie(t){if(t||(t=!0),z.showCompose){z.composerState.minimized?ht({duration:Ki,text:Rt._({id:"/4fHR1"})}):ht({duration:Ki,text:Rt._({id:"vvl08N"})});return}ql(),z.showCompose=t}const ji=document.createElement("template"),Zl=/<\/p>/g,Gl=/<\/li>/g,Yl=/[\r\n]{3,}/g;function Jr(t,e){if(!t)return"";const{preProcess:n,truncateLinks:r=!0}=e||{};ji.innerHTML=t.replace(Zl,`

+ +`).replace(Gl,` +`);const s=ji.content,a=s.querySelectorAll("br");for(let c=0;c{if(c){const h=l.querySelector(".quote-inline");h&&h.remove()}}}),i=i.trim(),r?.options?.length&&(i+=` + +📊: +${r.options.map(l=>`${r.multiple?"▪️":"•"} ${l.title}`).join(` +`)}`),s?.length&&(i+=" "+s.map(l=>({image:"🖼️",gifv:"🎞️",video:"📹",audio:"🎵",unknown:""})[l.type]||"").join("")),c){const l=ti(a.quotedStatus);i+=` + +❝ +${l} +❞`}return i}const Xl={xs:8,s:12,m:16,l:20,xl:24,xxl:32},Ql=/[^a-zA-Z0-9]/g;function Jl({icon:t,size:e="m",alt:n,title:r,class:s="",style:a={}}){r=r||n;const{loadIcon:i,isIconLoaded:c}=bc();if(!t)return null;const l=Xl[e];let h=$c[t];if(!h)return null;let d,u,f=!1;Array.isArray(h)?[h,d,u]=h:typeof h=="object"&&({rotate:d,flip:u,rtl:f}=h,h=h.module);const p=r?.replace(Ql,"-"),m=`${Mi}-title-${t}-${p}`;q(()=>{c(t)||i(t)},[t]);const g=c(t);return o("span",{class:`icon ${s} ${f?"rtl-flip":""}`,style:{width:`${l}px`,height:`${l}px`,...a},"data-icon":t,title:g?void 0:r||void 0,children:g&&o("svg",{width:l,height:l,role:r?"img":"presentation","aria-labelledby":m,style:{transform:`${d?`rotate(${d})`:""} ${u?"scaleX(-1)":""}`},children:[r?o("title",{id:m,children:r}):null,o("use",{href:`#${Mi}-${t}`})]})})}const I=$e(Jl,(t,e)=>t.icon===e.icon&&t.title===e.title&&t.alt===e.alt),Ze=Re((t,e)=>{let n;try{n=wc()}catch{}let r=(location.hash||"").replace(/^#/,"").trim();r===""&&(r="/");const{to:s,...a}=t;if(r&&r!=="/"&&r.includes("?")){const c=URL.parse(r,location.origin);if(c?.searchParams?.size){const l=Array.from(c.searchParams.entries()).map(([h,d])=>`${h}=${encodeURIComponent(d)}`).join("&");r=c.pathname+"?"+l}}const i=r===s||decodeURIComponent(r)===s;return o("a",{ref:e,href:`#${s}`,...a,class:`${t.class||""} ${i?"is-active":""}`,onClick:c=>{c.currentTarget?.parentNode?.closest("a")&&c.stopPropagation(),n&&(z.prevLocation=n),t.onClick?.(c)}})});function Ui(t){const{className:e,disabled:n,...r}=t;return o(Pl,{className:e,disabled:n,children:({ref:s,closeMenu:a})=>o(Ze,{...r,ref:s,onClick:({detail:i})=>a(i===0?"Enter":void 0)})})}const la=Wt(t=>new Intl.RelativeTimeFormat(t||void 0));function qi(t){if(t instanceof Date)return!isNaN(t.getTime());{const e=new Date(t);return!isNaN(e.getTime())}}const cn=60,ln=60*cn,je=24*ln,tu=t=>{const e=la(Rt.locale),n=(t.getTime()-Date.now())/1e3,r=Math.abs(n);return r{const e=(Date.now()-t.getTime())/1e3;return el+1,0),s=it(()=>new Date(t),[t]),[a,i,c]=it(()=>{if(!qi(s))return[""+(typeof t=="string"?t:""),"",""];let l;if(e==="micro"){const h=new Date;(h.getTime()-s.getTime())/1e3/je<=1?l=eu(s):h.getFullYear()===s.getFullYear()?l=_r(Rt.locale,{year:void 0,month:"short",day:"numeric"}).format(s):l=_r(Rt.locale,{dateStyle:"short"}).format(s)}return l||(l=tu(s)),[l,s.toISOString(),s.toLocaleString()]},[s,e,n]);return q(()=>{if(!qi(s))return;let l,h;function d(){h=requestAnimationFrame(()=>{r(),u()})}function u(){const f=(Date.now()-s.getTime())/1e3;f{clearTimeout(l),cancelAnimationFrame(h)}},[]),o("time",{datetime:i,title:c,children:a})}function ua(t){const e=N();return o(Ll,{...t,instanceRef:e,itemProps:{onPointerMove:n=>{n.pointerType==="touch"&&e.current?.openMenu?.()},onPointerLeave:n=>{n.pointerType==="touch"&&e.current?.openMenu?.()},...t.itemProps}})}function nu(t,e=[]){!t||typeof t!="function"||q(()=>{const n=new CloseWatcher;return n.addEventListener("close",t),()=>{n.destroy()}},e)}const ou=window.CloseWatcher?nu:()=>{},ru=document.getElementById("modal-container");function Wi(){return getComputedStyle(document.documentElement).getPropertyValue("--backdrop-theme-color")}function Rn({children:t,onClose:e,onClick:n,class:r,minimized:s}){if(!t)return null;const a=N();q(()=>{let u=setTimeout(()=>{const f=a.current?.querySelector('[tabindex="-1"]');f&&f.focus()},100);return()=>clearTimeout(u)},[]);const i=window.CloseWatcher,c=Ke("esc",()=>{setTimeout(()=>{e?.()},0)},{enabled:!i&&!!e,keydown:!1,keyup:!0,useKey:!0,ignoreEventWhen:u=>u.metaKey||u.ctrlKey||u.altKey||u.shiftKey},[e]);ou(e,[e]),q(()=>{const u=document.querySelectorAll(".deck-container");if(s){const f=u[u.length-1];f&&f.tabIndex===-1&&f.focus()}else t?u.forEach(f=>{f.setAttribute("inert","")}):u.forEach(f=>{f.removeAttribute("inert")});return()=>{u.forEach(f=>{f.removeAttribute("inert")})}},[t,s]);const l=N(),h=N();_e(()=>{if(t&&!s)if(pr.local.get("theme")){const f=Wi();l.current=document.querySelector('meta[name="theme-color"][data-theme-setting="manual"]'),l.current&&(h.current=l.current.content,l.current.content=f)}else{const f=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",p=Wi();l.current=document.querySelector(`meta[name="theme-color"][media*="${f}"]`),l.current&&(h.current=l.current.content,l.current.content=p)}else l.current&&h.current&&(l.current.content=h.current);return()=>{l.current&&h.current&&(l.current.content=h.current)}},[t,s]);const d=o("div",{ref:u=>{a.current=u,c.current=u?.querySelector?.('[tabindex="-1"]')||u},className:r,onClick:u=>{n?.(u),u.target===u.currentTarget&&e?.(u)},tabIndex:s?0:"-1",inert:s,onFocus:u=>{try{if(u.target===u.currentTarget){const f=a.current?.querySelector('[tabindex="-1"]'),p=!!f&&getComputedStyle(f)?.pointerEvents!=="none";f&&p&&f.focus()}}catch{}},children:t});return vo(d,ru)}const Vi={s:16,m:20,l:24,xl:32,xxl:50,xxxl:64},Sn={},$n=window.OffscreenCanvas?new OffscreenCanvas(1,1):document.createElement("canvas"),mo=$n.getContext("2d",{willReadFrequently:!0});mo.imageSmoothingEnabled=!1;const iu=/missing\.png$/;function su({url:t,staticUrl:e,size:n,alt:r="",squircle:s,...a}){n=Vi[n]||n||Vi.m;const i=N(),c=iu.test(t);return o("picture",{ref:i,class:`avatar ${s?"squircle":""} ${Sn[t]?"has-alpha":""}`,style:{width:n,height:n},title:r,...a,children:[!!e&&o("source",{srcset:e,media:"(prefers-reduced-motion: reduce)"}),!!t&&o("img",{src:t,width:n,height:n,alt:r,loading:"lazy",decoding:"async",fetchPriority:"low",crossOrigin:Sn[t]===void 0&&!c?"anonymous":void 0,onError:l=>{l.target.crossOrigin&&(l.target.crossOrigin=null,l.target.src=t)},onLoad:l=>{i.current&&(i.current.dataset.loaded=!0),Sn[t]===void 0&&(c||setTimeout(()=>{try{const{width:h,height:d}=l.target;$n.width!==h&&($n.width=h),$n.height!==d&&($n.height=d),mo.drawImage(l.target,0,0);const u=mo.getImageData(0,0,h,d),f=u.data.filter((p,m)=>m%4===3&&p<=128).length/(u.data.length/4)>.1;f&&i.current.classList.add("has-alpha"),Sn[t]=f,mo.clearRect(0,0,h,d)}catch{Sn[t]=!1}},1))}})]})}const we=Wt(su);let kr=!1;const au=new MutationObserver(t=>{t.forEach(e=>{if(e.type==="attributes"){const{dir:n}=e.target;n==="rtl"?kr=!0:kr=!1}})});au.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});function Tr(){return kr}function cu(){const[t,e]=H({width:null,height:null});return _e(()=>{const n=()=>{e({width:window.innerWidth,height:window.innerHeight})};return n(),window.addEventListener("resize",n,{passive:!0}),()=>{window.removeEventListener("resize",n)}},[]),t}function Sr(t){const{containerProps:e,instanceRef:n,align:r}=t,s=cu(),a=n?.current?n:N(),i=Tr()?r==="end"?"start":r==="start"?"end":r:r;return o(Il,{boundingBoxPadding:ca(),repositionFlag:`${s.width}x${s.height}`,unmountOnClose:!0,...t,align:i,instanceRef:a,containerProps:{onClick:c=>{c.target===c.currentTarget&&a.current?.closeMenu?.(),e?.onClick?.(c)},...e}})}function to({subMenu:t=!1,confirm:e=!0,confirmLabel:n,menuItemClassName:r,menuFooter:s,menuExtras:a,...i}){const{children:c,onClick:l,...h}=i;return e?o(t?ua:Sr,{openTrigger:"clickOnly",direction:"bottom",overflow:"auto",gap:-8,shift:8,menuClassName:"menu-emphasized",...h,menuButton:t?void 0:c,label:t?c:void 0,children:[o(ut,{className:r,onClick:l,children:n}),a,s]}):t?o(ut,{...i}):l?_c(c,{onClick:l}):c}var ge={},Go={},ve={},Zi;function da(){if(Zi)return ve;Zi=1,Object.defineProperty(ve,"__esModule",{value:!0}),ve.loop=ve.conditional=ve.parse=void 0;var t=function r(s,a){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:i;if(Array.isArray(a))a.forEach(function(h){return r(s,h,i,c)});else if(typeof a=="function")a(s,i,c,r);else{var l=Object.keys(a)[0];Array.isArray(a[l])?(c[l]={},r(s,a[l],i,c[l])):c[l]=a[l](s,i,c,r)}return i};ve.parse=t;var e=function(s,a){return function(i,c,l,h){a(i,c,l)&&h(i,s,c,l)}};ve.conditional=e;var n=function(s,a){return function(i,c,l,h){for(var d=[],u=i.pos;a(i,c,l);){var f={};if(h(i,s,c,f),i.pos===u)break;u=i.pos,d.push(f)}return d}};return ve.loop=n,ve}var Ct={},Gi;function ha(){if(Gi)return Ct;Gi=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.readBits=Ct.readArray=Ct.readUnsigned=Ct.readString=Ct.peekBytes=Ct.readBytes=Ct.peekByte=Ct.readByte=Ct.buildStream=void 0;var t=function(u){return{data:u,pos:0}};Ct.buildStream=t;var e=function(){return function(u){return u.data[u.pos++]}};Ct.readByte=e;var n=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(f){return f.data[f.pos+u]}};Ct.peekByte=n;var r=function(u){return function(f){return f.data.subarray(f.pos,f.pos+=u)}};Ct.readBytes=r;var s=function(u){return function(f){return f.data.subarray(f.pos,f.pos+u)}};Ct.peekBytes=s;var a=function(u){return function(f){return Array.from(r(u)(f)).map(function(p){return String.fromCharCode(p)}).join("")}};Ct.readString=a;var i=function(u){return function(f){var p=r(2)(f);return u?(p[1]<<8)+p[0]:(p[0]<<8)+p[1]}};Ct.readUnsigned=i;var c=function(u,f){return function(p,m,g){for(var v=typeof f=="function"?f(p,m,g):f,b=r(u),k=new Array(v),S=0;S=g){var k=g-f.pos;m.push((0,n.readBytes)(k)(f)),v+=k;break}m.push((0,n.readBytes)(b)(f)),v+=b}for(var S=new Uint8Array(v),C=0,_=0;_>=u,E-=u,g>l||g==f)break;if(g==h){u=b+1,d=(1<h;)_[P++]=C[g],g=S[g];M=C[g]&255,_[P++]=M,l{h.toBlob(p,"image/png")});return URL.createObjectURL(f)}catch{return null}}function Cr({staticUrl:t,alt:e,url:n}){return o("picture",{children:[t&&o("source",{srcset:t,media:"(prefers-reduced-motion: reduce)"}),o("img",{src:n,alt:e,class:"shortcode-emoji emoji",width:"16",height:"16",loading:"lazy",decoding:"async",fetchPriority:"low",onLoad:r=>{try{r.target.dataset.isLarger=r.target.naturalWidth>r.target.width*2||r.target.naturalHeight>r.target.height*2}catch{}}},e||n)]})}const pu=new Kr({concurrency:2,interval:1e3,intervalCap:2}),mu=(t,...e)=>pu.add(()=>fetch(...e),{signal:t}),es=/(\:(\w|\+|\-)+\:)(?=|[\!\.\?]|$)/g,gu=Wt(t=>new RegExp(`:(${t.join("|")}):`,"g")),Le=new Map,vu=30,yu=async t=>{if(Le.has(t))return Le.get(t);try{const r=(await(await mu(null,t,{headers:{accept:"application/activity+json"},referrerPolicy:"no-referrer"})).json()).tag?.filter(a=>a.type==="Emoji")||[],s=r.length?await Promise.all(r.map(async a=>{const i={shortcode:a.name.replace(/^:|:$/g,""),url:a.icon.url};if(a.icon?.mediaType==="image/gif"){const c=await fu(i.url);c&&(i.staticUrl=c)}return i})):[];if(Le.size>=vu){const a=Le.keys().next().value;Le.delete(a)}return Le.set(t,s),s}catch{return[]}},bu=Wt((t,e,n)=>{if(!t)return"";if(!t.includes(":")||!e.length)return t;const r=gu(e.map(a=>a.shortcode));return t.split(r).map((a,i)=>{const c=e.find(l=>l.shortcode===a);if(c){const{url:l,staticUrl:h}=c;return o(Cr,{staticUrl:n?void 0:h,url:n&&h||l,alt:a},`${a}-${i}`)}return a})});function un({text:t,emojis:e=[],staticEmoji:n,resolverURL:r}){const[s,a]=H(()=>Le.get(r)||[]),[i,c]=H(!1);if(q(()=>{if(!r||!t?.includes(":"))return;const h=t.match(es);!h||!h.some(u=>{const f=u.slice(1,-1);return!e.some(p=>p.shortcode===f)})||Le.has(r)||(c(!0),(async()=>{const u=await yu(r);a(u),c(!1)})())},[r,t,e?.length]),!t)return"";if(!t.includes(":"))return t;if(r&&i)return t.replace(es,"");const l=[...s.filter(h=>!e.some(d=>d.shortcode===h.shortcode)),...e];return bu(t,l,n)}function Er({roles:t,accountId:e,accountUrl:n,hideSelf:r=!1}){if(!t?.length)return null;const s=e&&e===jr();if(r&&s)return null;const a=mr(n);return t?.map(i=>o(F,{children:[" ",o("span",{class:"tag collapsed tag-role",children:[i.name,!!a&&o(F,{children:[" ",o("span",{class:"more-insignificant",children:a})]})]})]}))}const wu=Wt(t=>{const e={sensitivity:"base"};try{return new Intl.Collator(t||void 0,e)}catch{return new Intl.Collator(void 0,e)}}),_u=/([^@]+)(@.+)/i,ku=/(\:(\w|\+|\-)+\:)(?=|[\!\.\?]|$)/g,Tu=/\s+/g,Su=/[^a-z0-9@\.]/gi;function Pe({account:t,instance:e,showAvatar:n,showAcct:r,short:s,external:a,onClick:i}){const{i18n:c}=Kt();if(!t)return null;const{acct:l,avatar:h,avatarStatic:d,id:u,url:f,displayName:p,emojis:m,bot:g,username:v,roles:b}=t,[k,S,C]=l.match(_u)||[,l];e||(e=Ve().instance);const _=v.toLowerCase().trim(),T=(p||"").toLowerCase().trim(),E=T.replace(ku,"").replace(Tu,""),w=E.replace(Su,""),M=!s&&(_===T||_===E||_===w||wu(c.locale).compare(_,E)===0)||w===l.toLowerCase();return o("a",{class:`name-text ${r?"show-acct":""} ${s?"short":""}`,href:f,target:a?"_blank":null,title:p?`${p} (${C?"":"@"}${l})`:`${C?"":"@"}${l}`,onClick:P=>{if(!a&&!P.shiftKey){if(P.preventDefault(),P.stopPropagation(),i)return i(P);if(P.metaKey||P.ctrlKey||P.shiftKey||P.which===2){const L=`#/${e}/a/${u}`;window.open(L,"_blank");return}z.showAccount={account:t,instance:e}}},children:[n&&o(F,{children:[o(we,{url:d||h,squircle:g})," "]}),p&&!s?o(F,{children:[o("b",{dir:"auto",children:o(un,{text:p,emojis:m,resolverURL:t.url,staticEmoji:!0})}),!r&&!M&&o(F,{children:[" ",o("i",{class:"bidi-isolate",children:["@",v]}),o(Er,{roles:b,accountId:u,accountUrl:f,hideSelf:!0})]})]}):s?o("i",{children:v}):o("b",{children:v}),r&&o(F,{children:[o("br",{}),o("i",{class:"bidi-isolate",children:[C?"":"@",S,!!C&&o("span",{class:"ib",children:C})]}),o(Er,{roles:b,accountUrl:f})]})]})}const Cu="Аҧсшәа",Eu="Acèh",Au="Lëbacoli",xu="Afár",Mu="Afrikaans",Iu="Shqip",Lu="Dhalur",Pu="አማርኛ",Du="العربية",Ru="Հայերեն",$u="অসমীয়া",Nu="Авар мацӀ",Ou="अवधी",Fu="Aymar aru",Bu="Azərbaycanca",zu="Basa Bali",Hu="بلوچی",Ku="Bamanankan",ju="Baoulé",Uu="Башҡортса",qu="Euskara",Wu="Batak Karo",Vu="Batak Simalungun",Zu="Batak Toba",Gu="Беларуская",Yu="Ichibemba",Xu="বাংলা",Qu="Betawi",Ju="भोजपुरी",td="Bikol",ed="Bosanski",nd="Brezhoneg",od="Български",rd="Буряад",id="粵語",sd="Català",ad="Cebuano",cd="Chamoru",ld="Нохчийн мотт",ud="Chichewa",dd="Kapasen Chuuk",hd="Чӑвашла",fd="Corsu",pd="Qırımtatarca (Кирилл)",md="Hrvatski",gd="Čeština",vd="Dansk",yd="ދިވެހި",bd="Thuɔŋjäŋ",wd="डोगरी",_d="Dombe",kd="Nederlands",Td="Jula",Sd="རྫོང་ཁ",Cd="English",Ed="Esperanto",Ad="Eesti",xd="Eʋegbe",Md="Føroyskt",Id="Vosa Vakaviti",Ld="Tagalog",Pd="Suomi",Dd="Fon",Rd="Français",$d="Frysk",Nd="Furlan",Od="Fulfulde",Fd="Gã",Bd="Galego",zd="ქართული",Hd="Deutsch",Kd="Ελληνικά",jd="Avañe'ẽ",Ud="ગુજરાતી",qd="Kreyòl ayisyen",Wd="Hakha Chin",Vd="Hausa",Zd="ʻŌlelo Hawaiʻi",Gd="עברית",Yd="Hiligaynon",Xd="हिन्दी",Qd="Hmoob",Jd="Magyar",th="Hunsrik",eh="Iban",nh="Íslenska",oh="Igbo",rh="Iloko",ih="Bahasa Indonesia",sh="ᐃᓄᒃᑎᑐᑦ",ah="Gaeilge",ch="Italiano",lh="Patwa",uh="日本語",dh="Basa Jawa",hh="Jinghpaw",fh="Kalaallisut",ph="ಕನ್ನಡ",mh="Kanuri",gh="Kapampangan",vh="Қазақша",yh="Khasi",bh="ភាសាខ្មែរ",wh="Rukiga",_h="Kikongo",kh="Kinyarwanda",Th="Kituba",Sh="Kokborok",Ch="Коми кыв",Eh="कोंकणी",Ah="한국어",xh="Krio",Mh="Kurdî (Kurmancî)",Ih="کوردی (سۆرانی)",Lh="Кыргызча",Ph="ລາວ",Dh="Latgaļu",Rh="Latina",$h="Latviešu",Nh="Ligure",Oh="Limburgs",Fh="Lingála",Bh="Lietuvių",zh="Lombard",Hh="Luganda",Kh="Dholuo",jh="Lëtzebuergesch",Uh="Македонски",qh="Madhurâ",Wh="मैथिली",Vh="Makassar",Zh="Malagasy",Gh="Bahasa Melayu",Yh="മലയാളം",Xh="Malti",Qh="Mam",Jh="Gaelg",tf="Te Reo Māori",ef="मराठी",nf="Kajin M̧ajeļ",of="मारवाड़ी",rf="Kreol Morisien",sf="Олык марий",af="Baso Minang",cf="Mizo ṭawng",lf="Монгол",uf="မြန်မာစာ",df="Náhuatl",hf="isiNdebele",ff="नेपाली",pf="Norsk",mf="Thok Nath",gf="Occitan",vf="ଓଡ଼ିଆ",yf="Afaan Oromoo",bf="Ирон æвзаг",wf="Pangasinan",_f="Papiamentu",kf="پښتو",Tf="فارسی",Sf="Polski",Cf="Português (Brasil)",Ef="ਪੰਜਾਬੀ",Af="Runa Simi",xf="Qʼeqchiʼ",Mf="Romani čhib",If="Română",Lf="Ikirundi",Pf="Русский",Df="Davvisámegiella",Rf="Gagana Samoa",$f="Sängö",Nf="संस्कृतम्",Of="ᱥᱟᱱᱛᱟᱲᱤ",Ff="Gàidhlig",Bf="Sepedi",zf="Српски",Hf="Sesotho",Kf="Kreol seselwa",jf="လိၵ်ႈတႆး",Uf="chiShona",qf="Sicilianu",Wf="Ślōnskŏ",Vf="سنڌي",Zf="සිංහල",Gf="Slovenčina",Yf="Slovenščina",Xf="Soomaali",Qf="Español",Jf="Basa Sunda",tp="Susu",ep="Kiswahili",np="siSwati",op="Svenska",rp="Reo Tahiti",ip="Тоҷикӣ",sp="ⵜⴰⵎⴰⵣⵉⵖⵜ",ap="தமிழ்",cp="Татарча",lp="తెలుగు",up="Tetun",dp="ไทย",hp="བོད་ཡིག",fp="ትግርኛ",pp="Tiv",mp="Tok Pisin",gp="Lea fakatonga",vp="Tshiluba",yp="Xitsonga",bp="Setswana",wp="ತುಳು",_p="chiTumbuka",kp="Türkçe",Tp="Türkmençe",Sp="Тыва дыл",Cp="Akankasa",Ep="Удмурт кыл",Ap="Українська",xp="اردو",Mp="ئۇيغۇرچە",Ip="Oʻzbekcha",Lp="Tshivenḓa",Pp="Vèneto",Dp="Tiếng Việt",Rp="Winaray",$p="Cymraeg",Np="Wolof",Op="isiXhosa",Fp="Саха тыла",Bp="ייִדיש",zp="Yorùbá",Hp="Màaya T'àan",Kp="Didxazá",jp="isiZulu",Up={ab:Cu,ace:Eu,ach:Au,aa:xu,af:Mu,sq:Iu,alz:Lu,am:Pu,ar:Du,hy:Ru,as:$u,av:Nu,awa:Ou,ay:Fu,az:Bu,ban:zu,bal:Hu,bm:Ku,bci:ju,ba:Uu,eu:qu,btx:Wu,bts:Vu,bbc:Zu,be:Gu,bem:Yu,bn:Xu,bew:Qu,bho:Ju,bik:td,bs:ed,br:nd,bg:od,bua:rd,yue:id,ca:sd,ceb:ad,ch:cd,ce:ld,ny:ud,"zh-CN":"简体中文","zh-TW":"繁體中文",chk:dd,cv:hd,co:fd,crh:pd,"crh-Latn":"Qırımtatarca (Latin)",hr:md,cs:gd,da:vd,"fa-AF":"درى",dv:yd,din:bd,doi:wd,dov:_d,nl:kd,dyu:Td,dz:Sd,en:Cd,eo:Ed,et:Ad,ee:xd,fo:Md,fj:Id,tl:Ld,fi:Pd,fon:Dd,fr:Rd,"fr-CA":"Français (Canada)",fy:$d,fur:Nd,ff:Od,gaa:Fd,gl:Bd,ka:zd,de:Hd,el:Kd,gn:jd,gu:Ud,ht:qd,cnh:Wd,ha:Vd,haw:Zd,iw:Gd,hil:Yd,hi:Xd,hmn:Qd,hu:Jd,hrx:th,iba:eh,is:nh,ig:oh,ilo:rh,id:ih,"iu-Latn":"Inuktitut (Latin)",iu:sh,ga:ah,it:ch,jam:lh,ja:uh,jw:dh,kac:hh,kl:fh,kn:ph,kr:mh,pam:gh,kk:vh,kha:yh,km:bh,cgg:wh,kg:_h,rw:kh,ktu:Th,trp:Sh,kv:Ch,gom:Eh,ko:Ah,kri:xh,ku:Mh,ckb:Ih,ky:Lh,lo:Ph,ltg:Dh,la:Rh,lv:$h,lij:Nh,li:Oh,ln:Fh,lt:Bh,lmo:zh,lg:Hh,luo:Kh,lb:jh,mk:Uh,mad:qh,mai:Wh,mak:Vh,mg:Zh,ms:Gh,"ms-Arab":"بهاس ملايو",ml:Yh,mt:Xh,mam:Qh,gv:Jh,mi:tf,mr:ef,mh:nf,mwr:of,mfe:rf,chm:sf,"mni-Mtei":"ꯃꯤꯇꯩꯂꯣꯟ",min:af,lus:cf,mn:lf,my:uf,nhe:df,"ndc-ZW":"Ndau",nr:hf,new:"नेपाल भाषा",ne:ff,"bm-Nkoo":"ߒߞߏ",no:pf,nus:mf,oc:gf,or:vf,om:yf,os:bf,pag:wf,pap:_f,ps:kf,fa:Tf,pl:Sf,pt:Cf,"pt-PT":"Português (Portugal)",pa:Ef,"pa-Arab":"پنجابی",qu:Af,kek:xf,rom:Mf,ro:If,rn:Lf,ru:Pf,se:Df,sm:Rf,sg:$f,sa:Nf,"sat-Latn":"Santali (Latin)",sat:Of,gd:Ff,nso:Bf,sr:zf,st:Hf,crs:Kf,shn:jf,sn:Uf,scn:qf,szl:Wf,sd:Vf,si:Zf,sk:Gf,sl:Yf,so:Xf,es:Qf,su:Jf,sus:tp,sw:ep,ss:np,sv:op,ty:rp,tg:ip,"ber-Latn":"Tamazight (Latin)",ber:sp,ta:ap,tt:cp,te:lp,tet:up,th:dp,bo:hp,ti:fp,tiv:pp,tpi:mp,to:gp,lua:vp,ts:yp,tn:bp,tcy:wp,tum:_p,tr:kp,tk:Tp,tyv:Sp,ak:Cp,udm:Ep,uk:Ap,ur:xp,ug:Mp,uz:Ip,ve:Lp,vec:Pp,vi:Dp,war:Rp,cy:$p,wo:Np,xh:Op,sah:Fp,yi:Bp,yo:zp,yua:Hp,zap:Kp,zu:jp},eo={"zh-YUE":"YUE",zh_HANT:"zh-Hant"},Yo=Wt(t=>new Intl.DisplayNames(t||void 0,{type:"language"}));function qp(t){let e,n;typeof t=="object"&&({code:t,locale:e,fallback:n}=t);try{const r=Yo(e||Rt.locale).of(t);if(r!==t)return r;if(!n){const s=Yo(t).of(t);if(s!==t)return s;const a=Up?.[e];if(a!==t)return a}return n||""}catch{if(eo[t])try{const s=Yo(eo[e]||e||Rt.locale).of(eo[t]);return s!==eo[t]?s:n||""}catch{}return n||""}}const An=Wt(qp),Wp={auto:"Detect language",ab:"Abkhaz",ace:"Acehnese",ach:"Acholi",aa:"Afar",af:"Afrikaans",sq:"Albanian",alz:"Alur",am:"Amharic",ar:"Arabic",hy:"Armenian",as:"Assamese",av:"Avar",awa:"Awadhi",ay:"Aymara",az:"Azerbaijani",ban:"Balinese",bal:"Baluchi",bm:"Bambara",bci:"Baoulé",ba:"Bashkir",eu:"Basque",btx:"Batak Karo",bts:"Batak Simalungun",bbc:"Batak Toba",be:"Belarusian",bem:"Bemba",bn:"Bengali",bew:"Betawi",bho:"Bhojpuri",bik:"Bikol",bs:"Bosnian",br:"Breton",bg:"Bulgarian",bua:"Buryat",yue:"Cantonese",ca:"Catalan",ceb:"Cebuano",ch:"Chamorro",ce:"Chechen",ny:"Chichewa","zh-CN":"Chinese (Simplified)","zh-TW":"Chinese (Traditional)",chk:"Chuukese",cv:"Chuvash",co:"Corsican",crh:"Crimean Tatar (Cyrillic)","crh-Latn":"Crimean Tatar (Latin)",hr:"Croatian",cs:"Czech",da:"Danish","fa-AF":"Dari",dv:"Dhivehi",din:"Dinka",doi:"Dogri",dov:"Dombe",nl:"Dutch",dyu:"Dyula",dz:"Dzongkha",en:"English",eo:"Esperanto",et:"Estonian",ee:"Ewe",fo:"Faroese",fj:"Fijian",tl:"Filipino",fi:"Finnish",fon:"Fon",fr:"French","fr-CA":"French (Canada)",fy:"Frisian",fur:"Friulian",ff:"Fulani",gaa:"Ga",gl:"Galician",ka:"Georgian",de:"German",el:"Greek",gn:"Guarani",gu:"Gujarati",ht:"Haitian Creole",cnh:"Hakha Chin",ha:"Hausa",haw:"Hawaiian",iw:"Hebrew",hil:"Hiligaynon",hi:"Hindi",hmn:"Hmong",hu:"Hungarian",hrx:"Hunsrik",iba:"Iban",is:"Icelandic",ig:"Igbo",ilo:"Ilocano",id:"Indonesian","iu-Latn":"Inuktut (Latin)",iu:"Inuktut (Syllabics)",ga:"Irish",it:"Italian",jam:"Jamaican Patois",ja:"Japanese",jw:"Javanese",kac:"Jingpo",kl:"Kalaallisut",kn:"Kannada",kr:"Kanuri",pam:"Kapampangan",kk:"Kazakh",kha:"Khasi",km:"Khmer",cgg:"Kiga",kg:"Kikongo",rw:"Kinyarwanda",ktu:"Kituba",trp:"Kokborok",kv:"Komi",gom:"Konkani",ko:"Korean",kri:"Krio",ku:"Kurdish (Kurmanji)",ckb:"Kurdish (Sorani)",ky:"Kyrgyz",lo:"Lao",ltg:"Latgalian",la:"Latin",lv:"Latvian",lij:"Ligurian",li:"Limburgish",ln:"Lingala",lt:"Lithuanian",lmo:"Lombard",lg:"Luganda",luo:"Luo",lb:"Luxembourgish",mk:"Macedonian",mad:"Madurese",mai:"Maithili",mak:"Makassar",mg:"Malagasy",ms:"Malay","ms-Arab":"Malay (Jawi)",ml:"Malayalam",mt:"Maltese",mam:"Mam",gv:"Manx",mi:"Maori",mr:"Marathi",mh:"Marshallese",mwr:"Marwadi",mfe:"Mauritian Creole",chm:"Meadow Mari","mni-Mtei":"Meiteilon (Manipuri)",min:"Minang",lus:"Mizo",mn:"Mongolian",my:"Myanmar (Burmese)",nhe:"Nahuatl (Eastern Huasteca)","ndc-ZW":"Ndau",nr:"Ndebele (South)",new:"Nepalbhasa (Newari)",ne:"Nepali","bm-Nkoo":"NKo",no:"Norwegian",nus:"Nuer",oc:"Occitan",or:"Odia (Oriya)",om:"Oromo",os:"Ossetian",pag:"Pangasinan",pap:"Papiamento",ps:"Pashto",fa:"Persian",pl:"Polish",pt:"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",pa:"Punjabi (Gurmukhi)","pa-Arab":"Punjabi (Shahmukhi)",qu:"Quechua",kek:"Qʼeqchiʼ",rom:"Romani",ro:"Romanian",rn:"Rundi",ru:"Russian",se:"Sami (North)",sm:"Samoan",sg:"Sango",sa:"Sanskrit","sat-Latn":"Santali (Latin)",sat:"Santali (Ol Chiki)",gd:"Scots Gaelic",nso:"Sepedi",sr:"Serbian",st:"Sesotho",crs:"Seychellois Creole",shn:"Shan",sn:"Shona",scn:"Sicilian",szl:"Silesian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",so:"Somali",es:"Spanish",su:"Sundanese",sus:"Susu",sw:"Swahili",ss:"Swati",sv:"Swedish",ty:"Tahitian",tg:"Tajik","ber-Latn":"Tamazight",ber:"Tamazight (Tifinagh)",ta:"Tamil",tt:"Tatar",te:"Telugu",tet:"Tetum",th:"Thai",bo:"Tibetan",ti:"Tigrinya",tiv:"Tiv",tpi:"Tok Pisin",to:"Tongan",lua:"Tshiluba",ts:"Tsonga",tn:"Tswana",tcy:"Tulu",tum:"Tumbuka",tr:"Turkish",tk:"Turkmen",tyv:"Tuvan",ak:"Twi",udm:"Udmurt",uk:"Ukrainian",ur:"Urdu",ug:"Uyghur",uz:"Uzbek",ve:"Venda",vec:"Venetian",vi:"Vietnamese",war:"Waray",cy:"Welsh",wo:"Wolof",xh:"Xhosa",sah:"Yakut",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",zap:"Zapotec",zu:"Zulu"},Vp={ab:"Abkhaz",ace:"Acehnese",ach:"Acholi",aa:"Afar",af:"Afrikaans",sq:"Albanian",alz:"Alur",am:"Amharic",ar:"Arabic",hy:"Armenian",as:"Assamese",av:"Avar",awa:"Awadhi",ay:"Aymara",az:"Azerbaijani",ban:"Balinese",bal:"Baluchi",bm:"Bambara",bci:"Baoulé",ba:"Bashkir",eu:"Basque",btx:"Batak Karo",bts:"Batak Simalungun",bbc:"Batak Toba",be:"Belarusian",bem:"Bemba",bn:"Bengali",bew:"Betawi",bho:"Bhojpuri",bik:"Bikol",bs:"Bosnian",br:"Breton",bg:"Bulgarian",bua:"Buryat",yue:"Cantonese",ca:"Catalan",ceb:"Cebuano",ch:"Chamorro",ce:"Chechen",ny:"Chichewa","zh-CN":"Chinese (Simplified)","zh-TW":"Chinese (Traditional)",chk:"Chuukese",cv:"Chuvash",co:"Corsican",crh:"Crimean Tatar (Cyrillic)","crh-Latn":"Crimean Tatar (Latin)",hr:"Croatian",cs:"Czech",da:"Danish","fa-AF":"Dari",dv:"Dhivehi",din:"Dinka",doi:"Dogri",dov:"Dombe",nl:"Dutch",dyu:"Dyula",dz:"Dzongkha",en:"English",eo:"Esperanto",et:"Estonian",ee:"Ewe",fo:"Faroese",fj:"Fijian",tl:"Filipino",fi:"Finnish",fon:"Fon",fr:"French","fr-CA":"French (Canada)",fy:"Frisian",fur:"Friulian",ff:"Fulani",gaa:"Ga",gl:"Galician",ka:"Georgian",de:"German",el:"Greek",gn:"Guarani",gu:"Gujarati",ht:"Haitian Creole",cnh:"Hakha Chin",ha:"Hausa",haw:"Hawaiian",iw:"Hebrew",hil:"Hiligaynon",hi:"Hindi",hmn:"Hmong",hu:"Hungarian",hrx:"Hunsrik",iba:"Iban",is:"Icelandic",ig:"Igbo",ilo:"Ilocano",id:"Indonesian","iu-Latn":"Inuktut (Latin)",iu:"Inuktut (Syllabics)",ga:"Irish",it:"Italian",jam:"Jamaican Patois",ja:"Japanese",jw:"Javanese",kac:"Jingpo",kl:"Kalaallisut",kn:"Kannada",kr:"Kanuri",pam:"Kapampangan",kk:"Kazakh",kha:"Khasi",km:"Khmer",cgg:"Kiga",kg:"Kikongo",rw:"Kinyarwanda",ktu:"Kituba",trp:"Kokborok",kv:"Komi",gom:"Konkani",ko:"Korean",kri:"Krio",ku:"Kurdish (Kurmanji)",ckb:"Kurdish (Sorani)",ky:"Kyrgyz",lo:"Lao",ltg:"Latgalian",la:"Latin",lv:"Latvian",lij:"Ligurian",li:"Limburgish",ln:"Lingala",lt:"Lithuanian",lmo:"Lombard",lg:"Luganda",luo:"Luo",lb:"Luxembourgish",mk:"Macedonian",mad:"Madurese",mai:"Maithili",mak:"Makassar",mg:"Malagasy",ms:"Malay","ms-Arab":"Malay (Jawi)",ml:"Malayalam",mt:"Maltese",mam:"Mam",gv:"Manx",mi:"Maori",mr:"Marathi",mh:"Marshallese",mwr:"Marwadi",mfe:"Mauritian Creole",chm:"Meadow Mari","mni-Mtei":"Meiteilon (Manipuri)",min:"Minang",lus:"Mizo",mn:"Mongolian",my:"Myanmar (Burmese)",nhe:"Nahuatl (Eastern Huasteca)","ndc-ZW":"Ndau",nr:"Ndebele (South)",new:"Nepalbhasa (Newari)",ne:"Nepali","bm-Nkoo":"NKo",no:"Norwegian",nus:"Nuer",oc:"Occitan",or:"Odia (Oriya)",om:"Oromo",os:"Ossetian",pag:"Pangasinan",pap:"Papiamento",ps:"Pashto",fa:"Persian",pl:"Polish",pt:"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",pa:"Punjabi (Gurmukhi)","pa-Arab":"Punjabi (Shahmukhi)",qu:"Quechua",kek:"Qʼeqchiʼ",rom:"Romani",ro:"Romanian",rn:"Rundi",ru:"Russian",se:"Sami (North)",sm:"Samoan",sg:"Sango",sa:"Sanskrit","sat-Latn":"Santali (Latin)",sat:"Santali (Ol Chiki)",gd:"Scots Gaelic",nso:"Sepedi",sr:"Serbian",st:"Sesotho",crs:"Seychellois Creole",shn:"Shan",sn:"Shona",scn:"Sicilian",szl:"Silesian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",so:"Somali",es:"Spanish",su:"Sundanese",sus:"Susu",sw:"Swahili",ss:"Swati",sv:"Swedish",ty:"Tahitian",tg:"Tajik","ber-Latn":"Tamazight",ber:"Tamazight (Tifinagh)",ta:"Tamil",tt:"Tatar",te:"Telugu",tet:"Tetum",th:"Thai",bo:"Tibetan",ti:"Tigrinya",tiv:"Tiv",tpi:"Tok Pisin",to:"Tongan",lua:"Tshiluba",ts:"Tsonga",tn:"Tswana",tcy:"Tulu",tum:"Tumbuka",tr:"Turkish",tk:"Turkmen",tyv:"Tuvan",ak:"Twi",udm:"Udmurt",uk:"Ukrainian",ur:"Urdu",ug:"Uyghur",uz:"Uzbek",ve:"Venda",vec:"Venetian",vi:"Vietnamese",war:"Waray",cy:"Welsh",wo:"Wolof",xh:"Xhosa",sah:"Yakut",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",zap:"Zapotec",zu:"Zulu"},Zp={},fa={sl:Wp,tl:Vp,al:Zp},Gp=Object.entries(fa.tl).map(([t,{name:e}])=>({code:t,name:e})),Ar=[...navigator.languages],Xo=ia();Xo&&!Ar.includes(Xo)&&Ar.unshift(Xo);const Yp=()=>yo(Ar,Gp.map(t=>t.code.replace("_","-")),"en");function pa(t=!1){if(t){const{contentTranslationTargetLanguage:e}=z.settings;if(e)return e}return Yp()}const ns=["byte","kilobyte","megabyte","gigabyte","terabyte","petabyte"];function Ly(t){const e=Math.min(Math.floor(Math.log2(t)/10),ns.length-1),n=t/1024**e;return Rt.number(n,{style:"unit",unit:ns[e],unitDisplay:"narrow",maximumFractionDigits:0})}function Yt(){return kc()?.mastodon>=7}function Xp(t){return t?.[t?.currentUser]?.[0]||"nobody"}const Qp=/[.*+?^${}()|[\]\\]/g,Jp={"&":"&",'"':""","<":"<",">":">"},tm=/[&"<>]/g;function em(t){return t.replace(Qp,"\\$&")}function nm(t){return t.replace(tm,e=>Jp[e])}function xr(t,e=[]){if(!t)return"";if(!e.length||!t.includes(":"))return t;const n=new Map;for(let i=0;i`:${em(i)}:`).join("|"),a=new RegExp(s,"g");return t.replace(a,i=>{const c=i.slice(1,-1),l=n.get(c);if(!l)return i;const{staticUrl:h,url:d}=l,u=nm(i);return`${h?``:""}${u}`})}const om=/[&<>"']/g,rm={"&":"&","<":"<",">":">",'"':""","'":"'"};function Qo(t){return t.replace(om,e=>rm[e])}const nn=document.createElement("div"),im=["u-url","mention","hashtag"],sm=/{}}=e;let a=t;const i=ym(a,r),c=sm.test(a),l=a.includes("```");if(c){const d=i.querySelectorAll('a:not([target="_blank"])');for(const f of d)f.setAttribute("target","_blank");const u=i.querySelectorAll("a[class]");for(const f of u)for(const p of f.classList)im.includes(p)||f.classList.remove(p)}if(c){const d=i.querySelectorAll("a[href]");for(const u of d)am.test(u.textContent.trim())&&(u.classList.add("has-url-text"),Tm(u))}if(c){const d=i.querySelectorAll("a[href]"),u=[];for(const f of d){const p=f.innerText.trim(),m=f.querySelector("*");if(cm.test(p)){const g=p[0],[v,b,k]=p.split(/[@@]/);m||(!u.some(([S])=>S===b)||u.some(([S,C])=>S===b&&C===k)?(f.innerHTML=`${g}${b}`,u.push([b,k])):f.innerHTML=`${g}${b}@${k}`),f.classList.add("mention")}if(lm.test(p)){const g=p[0];m||(f.innerHTML=`${g}${p.slice(1)}`),f.classList.add("mention","hashtag")}}}let h;if(a.includes(":")&&n?.length){h=tr(i);for(const d of h){let u=Qo(d.nodeValue);u=xr(u,n),nn.innerHTML=u,d.replaceWith(...nn.childNodes)}}if(l){const d=[...i.querySelectorAll("p")].filter(u=>um.test(u.innerText.trim()));for(const u of d){const f=document.createElement("pre");for(const p of u.querySelectorAll("br"))p.replaceWith(` +`);f.innerHTML=`${u.innerHTML.trim()}`,u.replaceWith(f)}}if(l){const u=[...i.querySelectorAll("p")].filter(f=>dm.test(f.innerText));for(const f of u){const p=[f];let m=!1,g=f;for(;g.nextElementSibling;){const v=g.nextElementSibling;if(v&&v.tagName==="P")if(hm.test(v.innerText)){p.push(v),m=!0;break}else p.push(v);else break;g=v}if(m){const v=document.createElement("pre");for(const k of p)for(const S of k.querySelectorAll("br"))S.replaceWith(` +`);const b=p.map(k=>k.innerHTML).join(` + +`);v.innerHTML=`${b}`,f.replaceWith(v);for(const k of p)k.remove()}}}if(a.includes("`")){h=tr(i);for(const d of h){let u=Qo(d.nodeValue);fm.test(u)&&(u=u.replaceAll(vm,"$1")),nn.innerHTML=u,d.replaceWith(...nn.childNodes)}}if(pm.test(a)){h=tr(i,{rejectFilter:["A"]});for(const d of h){let u=Qo(d.nodeValue);mm.test(u)&&(u=u.replaceAll(gm,'$1')),nn.innerHTML=u,d.replaceWith(...nn.childNodes)}}if(a.includes("#")||a.includes("#")){let d=null;const u=[...i.querySelectorAll("p")].filter((f,p)=>{let m=0;for(let g=0;g3||m>1&&d&&p===d+1)return d=p,!0});if(u?.length)for(const f of u)f.classList.add("hashtag-stuffing"),f.title=f.innerText}if(a.includes("s(i)),r?i:i.innerHTML}const ma=Wt(bm),wm=["STYLE","IMG","VIDEO","AUDIO","AREA","MAP","TRACK","EMBED","IFRAME","OBJECT","PICTURE","PORTAL","SOURCE","SVG","MATH","CANVAS","NOSCRIPT","SCRIPT","INPUT","OPTION","TEXTAREA","SLOT","TEMPLATE"],_m=Object.fromEntries(wm.map(t=>[t,!0])),km=/^(https?:\/\/(www\.)?|xmpp:)/,Jo=30;function Tm(t){if(!(!t||t.querySelector?.("*")))try{const e=t.innerText.trim(),n=(e.match(km)||[])[0]||"";if(!n)return;const r=e.slice(n.length,n.length+Jo),s=e.slice(n.length+Jo),a=e.slice(n.length).length>Jo;t.innerHTML=`${r}`}catch{}}function tr(t,e={}){const n=[],r=Object.assign({},_m,e.rejectFilter?.reduce((i,c)=>(i[c]=!0,i),{})),s=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,{acceptNode(i){return r[i.parentNode.nodeName]?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}},!1);let a;for(;a=s.nextNode();)n.push(a);return n}const Sm=window.matchMedia("(hover: hover)").matches;function Cm(t){const{mentions:e=[],instance:n,previewMode:r,statusURL:s}=t||{};return a=>{if(a.metaKey||a.ctrlKey||a.shiftKey||a.altKey||a.which===2)return;let{target:i}=a;if(i.closest(".shortcode-emoji")){const{naturalWidth:u,naturalHeight:f,width:p,height:m}=i,g=2;if(u>p*g||f>m*g){a.preventDefault(),a.stopPropagation(),z.showMediaModal={mediaAttachments:[{type:"image",url:i.src,description:i.title||i.alt}]};return}}if(i=i.closest("a"),!i||!a.currentTarget.contains(i))return;const{href:c}=i,l=i.previousSibling?.textContent,h=l?.endsWith("@")||l?.endsWith("@"),d=i.innerText.startsWith("@")||i.innerText.startsWith("@");if((i.classList.contains("u-url")||i.classList.contains("mention"))&&d||h&&!d){const u=(i.querySelector("span")||i).innerText.trim(),f=u.replace(/^[@@]/,""),p=e.find(m=>m.url===c)||e.find(m=>m.acct===f||m.username===f);if(p){a.preventDefault(),a.stopPropagation(),z.showAccount={account:p.acct,instance:n};return}else if(!/^http/i.test(u)){a.preventDefault(),a.stopPropagation(),z.showAccount={account:c,instance:n};return}}else if(!r){const u=l?.endsWith("#")||l?.endsWith("#");if(i.classList.contains("hashtag")||u){a.preventDefault(),a.stopPropagation();const f=i.innerText.replace(/^[##]/,"").trim(),p=n?`#/${n}/t/${f}`:`#/t/${f}`;location.hash=p;return}else if(z.unfurledLinks[c]?.url&&s!==c){a.preventDefault(),a.stopPropagation(),z.prevLocation={pathname:location.hash.replace(/^#/,"")},location.hash=`#${z.unfurledLinks[c].url}`;return}}try{const f=URL.parse(c).hostname.replace(/^www\./i,"");if(!i.innerText.toLowerCase().includes(f.toLowerCase())&&!Sm){a.preventDefault(),a.stopPropagation();const m=i.innerText.trim();z.showOpenLink={url:c,linkText:m}}}catch{}}}function ae(t){try{return Rt.number(t,{notation:"compact",roundingMode:"floor"})}catch{return t}}const Em={"@mastodon/edit-media-attributes":">=4.1","@mastodon/list-exclusive":">=4.2","@gotosocial/list-exclusive":">=0.17","@gotosocial/edit-media-attributes":">=0.18","@mastodon/filtered-notifications":"~4.3 || >=4.3","@mastodon/fetch-multiple-statuses":"~4.3 || >=4.3","@mastodon/trending-link-posts":"~4.3 || >=4.3","@mastodon/annual-report":"~4.4 || >=4.4","@mastodon/endorsements":"~4.4 || >=4.4"},er=/pixelfed/i,de=/^(?!.*pixelfed).*$/i,Am=/pleroma/i,xm=/akkoma/i;const os={"@mastodon/lists":de,"@mastodon/filters":de,"@mastodon/mentions":de,"@mastodon/trending-hashtags":de,"@mastodon/trending-links":de,"@mastodon/post-bookmark":de,"@mastodon/post-edit":de,"@mastodon/profile-edit":de,"@mastodon/profile-private-note":de,"@mastodon/pinned-posts":de,"@pixelfed/trending":er,"@pixelfed/home-include-reblogs":er,"@pixelfed/global-feed":er,"@pleroma/local-visibility-post":Am,"@akkoma/local-visibility-post":xm},no={},Mm=/^\d+\.\d+(\.\d+)?/;function oo(t){try{let{version:e,domain:n}=Tc(),r=Sc()?.software?.name||"mastodon";r==="hometown"&&(r="mastodon");const s=`${n}-${t}`;if(no[s])return no[s];if(os[t])return no[s]=os[t].test(e);const a=Em[t];if(!a)return!1;const c=t.match(/^@([a-z]+)\//)[1]===r.toLowerCase();let l=Ii(e,a,{includePrerelease:!0,loose:!0});if(!l)try{l=Ii(e.match(Mm)?.[0],a,{includePrerelease:!0,loose:!1})}catch{}return no[s]=c&&l}catch{return!1}}function Py({skeleton:t,account:e,avatarSize:n="xl",useAvatarStatic:r=!1,instance:s,external:a,internal:i,onClick:c,showActivity:l=!1,showStats:h=!1,accountInstance:d,hideDisplayName:u=!1,relationship:f={},excludeRelationshipAttrs:p=[]}){const{_:m}=Kt();if(t)return o("div",{class:"account-block skeleton",children:[o(we,{size:n}),o("span",{children:[o("b",{children:"████████"}),o("br",{}),o("span",{class:"account-block-acct",children:"██████"})]})]});if(!e)return null;const{id:g,acct:v,avatar:b,avatarStatic:k,displayName:S,username:C,emojis:_,url:T,statusesCount:E,lastStatusAt:w,bot:M,fields:P,note:L,group:A,followersCount:$,createdAt:R,locked:W,roles:B}=e;let[Y,et,ct]=v.match(/([^@]+)(@.+)/i)||[,v];d&&(ct=`@${d}`);const nt=P?.find(J=>!!J.verifiedAt&&!!J.value),Z={};for(const J in f)p.includes(J)||(Z[J]=f[J]);const st=Z.following||Z.followedBy||Z.requested;return o("a",{class:"account-block",href:T,target:a?"_blank":null,title:ct?v:`@${v}`,onClick:J=>{if(!a){if(J.preventDefault(),c)return c(J);i?location.hash=`/${s}/a/${g}`:z.showAccount={account:e,instance:s}}},children:[o("div",{class:"avatar-container",children:o(we,{url:r?k:b||k,staticUrl:r?void 0:k,size:n,squircle:M})}),o("span",{class:"account-block-content",children:[!u&&o(F,{children:S?o("b",{children:o(un,{text:S,emojis:_,resolverURL:T})}):o("b",{children:C})})," ",o("span",{class:"account-block-acct bidi-isolate",children:[ct?"":"@",et,o("wbr",{}),ct,W&&o(F,{children:[" ",o(I,{icon:"lock",size:"s",alt:m({id:"G2fuEb"})})]})]}),o(Er,{roles:B,accountUrl:T}),l&&o("div",{class:"account-block-stats",children:[o(x,{id:"ajzDof",values:{0:ae(E)}}),!!w&&o(F,{children:[" ","·"," ",o(x,{id:"f8bJ3C",values:{0:Hn(w,{hideTime:!0})}})]})]}),h&&o("div",{class:"account-block-stats",children:[M&&o(F,{children:o("span",{class:"tag collapsed",children:[o(I,{icon:"bot"})," ",o(x,{id:"9Vdq+j"})]})}),!!A&&o(F,{children:o("span",{class:"tag collapsed",children:[o(I,{icon:"group"})," ",o(x,{id:"L8fEEm"})]})}),st&&o("div",{class:"shazam-container-horizontal",children:o("div",{class:"shazam-container-inner",children:Z.following&&Z.followedBy?o("span",{class:"tag minimal",children:o(x,{id:"7oRLbi"})}):Z.requested?o("span",{class:"tag minimal",children:o(x,{id:"Yx0Ud8"})}):Z.following?o("span",{class:"tag minimal",children:o(x,{id:"y6sq5j"})}):Z.followedBy?o("span",{class:"tag minimal",children:o(x,{id:"p3UO/y"})}):null})},f.id),!!$&&o("span",{class:"ib",children:o(x,{id:"Mn1E9C",values:{followersCount:$}})}),!!nt&&o("span",{class:"verified-field",children:[o(I,{icon:"check-circle",size:"s",alt:m({id:"QDEWii"})})," ",o("span",{dangerouslySetInnerHTML:{__html:ma(nt.value,{emojis:_})}})]}),!M&&!A&&!st&&!$&&!nt&&!!R&&o("span",{class:"created-at",children:o(x,{id:"PCcEFZ",values:{0:Hn(R,{hideTime:!0})},components:{0:o("time",{datetime:R})}})})]})]})]})}async function Dy(t,e={}){if(!t?.length)return;const{masto:n}=Ve(),r=jr(),s=t.reduce((a,i)=>(!a.includes(i.id)&&!e[i.id]&&i.id!==r&&a.push(i.id),a),[]);if(!s.length)return null;try{return(await n.v1.accounts.relationships.fetch({id:s})).reduce((c,l)=>(c[l.id]=l,c),{})}catch{return null}}function Ry(t,e){return()=>Rt.number(t,{style:"unit",unit:e,unitDisplay:"long"})}const Im=Object.prototype.toString,Lm=t=>Im.call(t)==="[object Error]",Pm=new Set(["network error","Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Load failed","Network request failed","fetch failed","terminated"]);function Dm(t){return t&&Lm(t)&&t.name==="TypeError"&&typeof t.message=="string"?t.message==="Load failed"?t.stack===void 0:Pm.has(t.message):!1}function Rm(t){if(typeof t=="number"){if(t<0)throw new TypeError("Expected `retries` to be a non-negative number.");if(Number.isNaN(t))throw new TypeError("Expected `retries` to be a valid number or Infinity, got NaN.")}else if(t!==void 0)throw new TypeError("Expected `retries` to be a number or Infinity.")}function ro(t,e,{min:n=0,allowInfinity:r=!1}={}){if(e!==void 0){if(typeof e!="number"||Number.isNaN(e))throw new TypeError(`Expected \`${t}\` to be a number${r?" or Infinity":""}.`);if(!r&&!Number.isFinite(e))throw new TypeError(`Expected \`${t}\` to be a finite number.`);if(e0&&await new Promise((p,m)=>{const g=()=>{clearTimeout(v),s.signal?.removeEventListener("abort",g),m(s.signal.reason)},v=setTimeout(()=>{s.signal?.removeEventListener("abort",g),p()},f);s.unref&&v.unref?.(),s.signal?.addEventListener("abort",g,{once:!0})}),s.signal?.throwIfAborted(),!0}async function Fm(t,e={}){if(e={...e},Rm(e.retries),Object.hasOwn(e,"forever"))throw new Error("The `forever` option is no longer supported. For many use-cases, you can set `retries: Infinity` instead.");e.retries??=10,e.factor??=2,e.minTimeout??=1e3,e.maxTimeout??=Number.POSITIVE_INFINITY,e.maxRetryTime??=Number.POSITIVE_INFINITY,e.randomize??=!1,e.onFailedAttempt??=()=>{},e.shouldRetry??=()=>!0,e.shouldConsumeRetry??=()=>!0,ro("factor",e.factor,{min:0,allowInfinity:!1}),ro("minTimeout",e.minTimeout,{min:0,allowInfinity:!1}),ro("maxTimeout",e.maxTimeout,{min:0,allowInfinity:!0}),ro("maxRetryTime",e.maxRetryTime,{min:0,allowInfinity:!0}),e.factor>0||(e.factor=1),e.signal?.throwIfAborted();let n=0,r=0;const s=performance.now();for(;!Number.isFinite(e.retries)||r<=e.retries;){n++;try{e.signal?.throwIfAborted();const a=await t(n);return e.signal?.throwIfAborted(),a}catch(a){await Om({error:a,attemptNumber:n,retriesConsumed:r,startTime:s,options:e})&&r++}}throw new Error("Retry attempts exhausted without throwing an error.")}const ga="LanguageDetector"in self,Bm=ga&&"Translator"in self;let We;ga&&(async()=>{try{const t=await LanguageDetector.availability();if(t==="unavailable")return;t==="available"?We=await LanguageDetector.create():(We=await LanguageDetector.create({monitor(e){e.addEventListener("downloadprogress",n=>{})}}),await We.ready)}catch{}})();const zm=async(t,e,n)=>{let r;const s=e;if(e==="auto"){if(!We?.detect)return{error:"No language detector"};try{e=(await We.detect(t))[0].detectedLanguage,r=e}catch(i){return{error:i}}}const a=`💬 BROWSER TRANSLATE ${t}`;console.groupCollapsed(a);try{const i=await Translator.availability({sourceLanguage:e,targetLanguage:n});if(i==="unavailable")return console.groupEnd(a),{error:`Unsupported language pair: ${e} -> ${n}`};let c;i==="available"?c=await Translator.create({sourceLanguage:e,targetLanguage:n}):(c=await Translator.create({sourceLanguage:e,targetLanguage:n,monitor(h){h.addEventListener("downloadprogress",d=>{})}}),await c.ready);const l=await c.translate(t);return console.groupEnd(a),{content:l,detectedSourceLanguage:r,provider:"browser"}}catch(i){return console.groupEnd(a),{error:i}}};var Hm=Object.defineProperty,Km=(t,e,n)=>e in t?Hm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xn=(t,e,n)=>Km(t,typeof e!="symbol"?e+"":e,n),Mr=new Map,io=new WeakMap,is=0,jm;function Um(t){return t?(io.has(t)||(is+=1,io.set(t,is.toString())),io.get(t)):"0"}function qm(t){return Object.keys(t).sort().filter(e=>t[e]!==void 0).map(e=>`${e}_${e==="root"?Um(t.root):t[e]}`).toString()}function Wm(t){const e=qm(t);let n=Mr.get(e);if(!n){const r=new Map;let s;const a=new IntersectionObserver(i=>{i.forEach(c=>{var l;const h=c.isIntersecting&&s.some(d=>c.intersectionRatio>=d);t.trackVisibility&&typeof c.isVisible>"u"&&(c.isVisible=h),(l=r.get(c.target))==null||l.forEach(d=>{d(h,c)})})},t);s=a.thresholds||(Array.isArray(t.threshold)?t.threshold:[t.threshold||0]),n={id:e,observer:a,elements:r},Mr.set(e,n)}return n}function va(t,e,n={},r=jm){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const l=t.getBoundingClientRect();return e(r,{isIntersecting:r,target:t,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:l,intersectionRect:l,rootBounds:l}),()=>{}}const{id:s,observer:a,elements:i}=Wm(n),c=i.get(t)||[];return i.has(t)||i.set(t,c),c.push(e),a.observe(t),function(){c.splice(c.indexOf(e),1),c.length===0&&(i.delete(t),a.unobserve(t)),i.size===0&&(a.disconnect(),Mr.delete(s))}}function Vm(t){return typeof t.children!="function"}var $y=class extends Fs{constructor(t){super(t),xn(this,"node",null),xn(this,"_unobserveCb",null),xn(this,"lastInView"),xn(this,"handleNode",e=>{this.node&&(this.unobserve(),!e&&!this.props.triggerOnce&&!this.props.skip&&(this.setState({inView:!!this.props.initialInView,entry:void 0}),this.lastInView=this.props.initialInView)),this.node=e||null,this.observeNode()}),xn(this,"handleChange",(e,n)=>{const r=this.lastInView;this.lastInView=e,!(r===void 0&&!e)&&(e&&this.props.triggerOnce&&this.unobserve(),Vm(this.props)||this.setState({inView:e,entry:n}),this.props.onChange&&this.props.onChange(e,n))}),this.state={inView:!!t.initialInView,entry:void 0},this.lastInView=t.initialInView}componentDidMount(){this.unobserve(),this.observeNode()}componentDidUpdate(t){(t.rootMargin!==this.props.rootMargin||t.root!==this.props.root||t.threshold!==this.props.threshold||t.skip!==this.props.skip||t.trackVisibility!==this.props.trackVisibility||t.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())}componentWillUnmount(){this.unobserve()}observeNode(){if(!this.node||this.props.skip)return;const{threshold:t,root:e,rootMargin:n,trackVisibility:r,delay:s,fallbackInView:a}=this.props;this.lastInView===void 0&&(this.lastInView=this.props.initialInView),this._unobserveCb=va(this.node,this.handleChange,{threshold:t,root:e,rootMargin:n,trackVisibility:r,delay:s},a)}unobserve(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)}render(){const{children:t}=this.props;if(typeof t=="function"){const{inView:p,entry:m}=this.state;return t({inView:p,entry:m,ref:this.handleNode})}const{as:e,triggerOnce:n,threshold:r,root:s,rootMargin:a,onChange:i,skip:c,trackVisibility:l,delay:h,initialInView:d,fallbackInView:u,...f}=this.props;return Cc(e||"div",{ref:this.handleNode,...f},t)}};var ss,as,Zm=(as=(ss=Ec)!=null?ss:_e)!=null?as:q,Gm=(t,{threshold:e,root:n,rootMargin:r,trackVisibility:s,delay:a,triggerOnce:i,skip:c}={})=>{const l=N(t),h=N(null),d=N(void 0),u=N(void 0);return Zm(()=>{l.current=t},[t]),yt(f=>{const p=()=>{if(d.current){const b=d.current;d.current=void 0,b()}};if(f===h.current)return d.current;if(!f||c){p(),h.current=null,u.current=void 0;return}p(),h.current=f;let m=!1;const g=va(f,(b,k)=>{const S=u.current;u.current=b,!(S===void 0&&!b)&&(l.current(b,k),i&&b&&v())},{threshold:e,root:n,rootMargin:r,trackVisibility:s,delay:a});function v(){m||(m=!0,g(),h.current=null,d.current=void 0,u.current=void 0)}return d.current=v,d.current},[Array.isArray(e)?e.toString():e,n,r,s,a,i,c])};const cs=48,nr={};function ya({id:t,children:e}){const n=N(),[r,s]=H(!!nr[t]),a=yt(c=>{c&&n.current&&(n.current.hidden=!1,t&&(nr[t]=!0))},[t]),i=Gm(a,{rootMargin:`-${cs}px 0px 0px 0px`,trackVisibility:!0,delay:1e3,triggerOnce:!0,skip:r});return _e(()=>{if(!n.current)return;const c=n.current.getBoundingClientRect();c.bottom>cs&&(c.top({code:t,name:e})),{PHANPY_TRANSLANG_INSTANCES:ls}=Ym,Ir=ls?ls.split(/\s+/):[],ba=new Kr({concurrency:1,interval:2e3,intervalCap:1}),wa=1e3*60*60;let or=0;function Qm(t,e,n){return Fm(()=>{let s=Ir[or];const a=t.length>2e3;let i;return a?i=fetch(`https://${s}/api/v1/translate`,{method:"POST",priority:"low",referrerPolicy:"no-referrer",headers:{"Content-Type":"application/json"},body:JSON.stringify({sl:e,tl:n,text:t})}):i=fetch(`https://${s}/api/v1/translate?sl=${encodeURIComponent(e)}&tl=${encodeURIComponent(n)}&text=${encodeURIComponent(t)}`,{priority:"low",referrerPolicy:"no-referrer"}),i.then(c=>{if(!c.ok)throw new Error(c.statusText);return c.json()}).then(c=>({provider:"translang",content:c.translated_text,detectedSourceLanguage:c.detected_language,pronunciation:c.pronunciation}))},{retries:3,onFailedAttempt:s=>{or=(or+1)%Ir.length}})}const _a=Eo(Qm,{maxAge:wa}),Jm=Eo(({signal:t,text:e,source:n,target:r})=>ba.add(()=>_a(e,n,r),{signal:t}),{maxAge:wa}),tg=({text:t,source:e,target:n,signal:r})=>ba.add(()=>zm(t,e,n),{signal:r});function eg({forceTranslate:t,sourceLanguage:e,onTranslate:n,text:r="",mini:s,autoDetected:a}){const{_:i}=Kt(),c=pa(!0),[l,h]=H("default"),[d,u]=H(null),[f,p]=H(null),[m,g]=H(null),v=N(),b=N(),k=e?An(e):null,S=An(c),C=N("auto");n||(n=async({text:T,source:E,target:w,signal:M})=>{if(Bm){const P=await tg({text:T,source:E,target:w,signal:M});if(P&&!P.error)return P}return s?await Jm({signal:M,text:T,source:E,target:w}):await _a(T,E,w)});const _=async()=>{h("loading");try{const{content:T,detectedSourceLanguage:E,provider:w,error:M,...P}=await n({text:r,source:C.current,target:c,signal:b.current?.signal});if(T){if(E){const L=An(E);g(L)}if(w==="translang"){const L=P?.pronunciation;L&&u(L)}p(T),h("default"),!s&&T.trim()!==r.trim()&&v.current&&(v.current.open=!0,v.current.scrollIntoView({behavior:"smooth",block:"nearest"}))}else h("error")}catch(T){T.name!=="AbortError"&&h("error")}};return q(()=>{t&&_()},[t]),q(()=>(b.current=new AbortController,()=>{b.current.abort()}),[]),s?f&&f.trim()!==r.trim()&&m!==S?o(ya,{children:o("div",{class:"status-translation-block-mini",children:[o(I,{icon:"translate",alt:i({id:"zVJKbG",values:{sourceLangText:k}})}),o("output",{lang:c,dir:"auto",title:d||"",children:f})]})}):null:o("div",{class:"status-translation-block",onClick:T=>{T.preventDefault()},children:o("details",{ref:v,children:[o("summary",{children:o("button",{type:"button",class:l==="loading"?"loading-mask":"",onClick:async T=>{T.preventDefault(),T.stopPropagation(),v.current.open=!v.current.open,l!=="loading"&&(f||_())},children:[o(I,{icon:"translate"})," ",o("span",{children:i(l==="loading"?{id:"Zxkt/v"}:e&&k&&!m?a?{id:"R20Yf9",values:{sourceLangText:k}}:{id:"h8zDAI",values:{sourceLangText:k}}:{id:"pi8x/S"})})]})}),o("div",{class:"translated-block",children:[o("div",{class:"translation-info insignificant",children:[o("select",{class:"translated-source-select",disabled:l==="loading",onChange:T=>{C.current=T.target.value,_()},children:Xm.map(T=>{const E=An({code:T.code,fallback:T.name}),w=An({code:T.code,locale:T.code}),M=w&&E!==w;return o("option",{value:T.code,children:T.code==="auto"?i({id:"Bze3gr",values:{0:m??"…"}}):M?`${w} - ${E}`:E})})})," ",o("span",{children:["→ ",S]}),o(bo,{abrupt:!0,hidden:l!=="loading"})]}),l==="error"?o("p",{class:"ui-state",children:o(x,{id:"m5LihO"})}):!!f&&o(F,{children:[o("output",{class:"translated-content",lang:c,dir:"auto",children:f}),!!d&&o("output",{class:"translated-pronunciation-content",tabIndex:-1,onClick:T=>{T.target.classList.toggle("expand")},children:d})]})]})]})})}const ng=Ir?.length?eg:()=>null;function Te(t){return new Promise((e,n)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>n(t.error)})}function ka(t,e){let n;const r=()=>{if(n)return n;const s=indexedDB.open(t);return s.onupgradeneeded=()=>s.result.createObjectStore(e),n=Te(s),n.then(a=>{a.onclose=()=>n=void 0},()=>{}),n};return(s,a)=>r().then(i=>a(i.transaction(e,s).objectStore(e)))}let rr;function Ye(){return rr||(rr=ka("keyval-store","keyval")),rr}function og(t,e=Ye()){return e("readonly",n=>Te(n.get(t)))}function rg(t,e,n=Ye()){return n("readwrite",r=>(r.put(e,t),Te(r.transaction)))}function ig(t,e=Ye()){return e("readonly",n=>Promise.all(t.map(r=>Te(n.get(r)))))}function sg(t,e=Ye()){return e("readwrite",n=>(n.delete(t),Te(n.transaction)))}function ag(t,e=Ye()){return e("readwrite",n=>(t.forEach(r=>n.delete(r)),Te(n.transaction)))}function cg(t=Ye()){return t("readwrite",e=>(e.clear(),Te(e.transaction)))}function lg(t,e){return t.openCursor().onsuccess=function(){this.result&&(e(this.result),this.result.continue())},Te(t.transaction)}function ug(t=Ye()){return t("readonly",e=>{if(e.getAllKeys)return Te(e.getAllKeys());const n=[];return lg(e,r=>n.push(r.key)).then(()=>n)})}function us(t,e){const n=ka(t,e);return{set:(r,s)=>rg(r,s,n),get:r=>og(r,n),getMany:r=>ig(r,n),del:r=>sg(r,n),delMany:r=>ag(r,n),clear:()=>cg(n),keys:()=>ug(n)}}const Ny={drafts:us("drafts-db","drafts-store"),catchup:us("catchup-db","catchup-store")},Ta=ce({}),dg=!!document.startViewTransition;function Oy({children:t,statusID:e}){const n=N([]),[r,s]=H(!1),[a,i]=H(0);function c(p){p!==a&&(dg?document.startViewTransition(()=>{i(p)}):i(p))}async function l(){const{masto:p}=Ve(),m=await p.v1.statuses.$select(e).history.list();m.sort((g,v)=>Date.parse(v.createdAt)-Date.parse(g.createdAt)),n.current=m}async function h(){try{await l(),s(!0),c(0)}catch{s(!1)}}function d(){n.current=[],s(!1),c(0)}function u(){c(p=>Math.min(p+1,n.current.length-1))}function f(){c(p=>Math.max(p-1,0))}return o(Ta.Provider,{value:{editHistoryRef:n,initEditHistory:h,exitEditHistory:d,editHistoryMode:r,editedAtIndex:a,prevEditedAt:u,nextEditedAt:f},children:t})}function hg(){return It(Ta)}const ei=ce();function fg(t,e){if(!t?.length)return!1;const n=t.filter(i=>{const{filter:c}=i,l=c.context.includes(e);return l?c.expiresAt?Date.parse(c.expiresAt)>Date.now():l:!1});if(!n.length)return!1;if(n.some(i=>i.filter.filterAction==="hide"))return{action:"hide"};if(n.every(i=>i.filter.filterAction==="blur")){const i=n.map(c=>c.filter.title);return{action:"blur",titles:i,titlesStr:i.join(" • ")}}if(n.some(i=>!!i.filter.filterAction)){const i=n.map(c=>c.filter.title);return{action:"warn",titles:i,titlesStr:i.join(" • ")}}return!1}const Mo=Wt(fg);function pg(t,e,n){const{filtered:r}=t;if(!r?.length||n&&t.account?.id===n)return!0;const a=Mo(r,e);return a?a.action!=="hide":!0}function Fy(t,e){if(!t?.length)return[];if(!e)return t;const n=jr();return t.filter(r=>pg(r,e,n))}const so=document.createElement("template");function mg(t){if(!t)return 0;so.innerHTML=t;const e=so.content.querySelectorAll(".invisible");for(let r=0;r=e||R<0||k&&$-i.current>=C},M=function($){return l.current=null,b&&h.current?T($):(h.current=d.current=null,u.current)},P=function $(){var R=Date.now();if(v&&c.current===i.current&&L(),w(R))return M(R);if(p.current){var W=e-(R-a.current),B=k?Math.min(W,C-(R-i.current)):W;E($,B)}},L=function(){r&&r({})},A=function(){if(m||S){var $=Date.now(),R=w($);if(h.current=[].slice.call(arguments),d.current=s,a.current=$,R){if(!l.current&&p.current)return i.current=a.current,E(P,e),v?T(a.current):u.current;if(k)return E(P,e),T(a.current)}return l.current||E(P,e),u.current}};return A.cancel=function(){var $=l.current;$&&(g?cancelAnimationFrame(l.current):clearTimeout(l.current)),i.current=0,h.current=a.current=d.current=l.current=null,$&&r&&r({})},A.isPending=function(){return!!l.current},A.flush=function(){return l.current?M(Date.now()):u.current},A},[v,k,e,C,b,g,m,S,r]);return _}function yg(t,e,n){var r=n===void 0?{}:n,s=r.leading,a=r.trailing;return vg(t,e,{maxWait:e,leading:s===void 0||s,trailing:a===void 0||a})}function bg(t,e){var n=N(null),r=N(null);r.current=e;var s=N(null);q(function(){a()});var a=yt(function(){var i=s.current,c=r.current,l=i||(c?c instanceof Element?c:c.current:null);n.current&&n.current.element===l&&n.current.subscriber===t||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:l,subscriber:t,cleanup:l?t(l):void 0})},[t]);return q(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),yt(function(i){s.current=i,a()},[a])}function ds(t,e,n){return t[e]?t[e][0]?t[e][0][n]:t[e][n]:e==="contentBoxSize"?t.contentRect[n==="inlineSize"?"width":"height"]:void 0}function wg(t){t===void 0&&(t={});var e=t.onResize,n=N(void 0);n.current=e;var r=t.round||Math.round,s=N(),a=H({width:void 0,height:void 0}),i=a[0],c=a[1],l=N(!1);q(function(){return l.current=!1,function(){l.current=!0}},[]);var h=N({width:void 0,height:void 0}),d=bg(yt(function(u){return(!s.current||s.current.box!==t.box||s.current.round!==r)&&(s.current={box:t.box,round:r,instance:new ResizeObserver(function(f){var p=f[0],m=t.box==="border-box"?"borderBoxSize":t.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",g=ds(p,m,"inlineSize"),v=ds(p,m,"blockSize"),b=g?r(g):void 0,k=v?r(v):void 0;if(h.current.width!==b||h.current.height!==k){var S={width:b,height:k};h.current.width=b,h.current.height=k,n.current?n.current(S):l.current||c(S)}})}),s.current.instance.observe(u,{box:t.box}),function(){s.current&&s.current.instance.unobserve(u)}},[t.box,r]),t.ref);return it(function(){return{ref:d,width:i.width,height:i.height}},[d,i.width,i.height])}function _g(t={}){const e=yg(t.onResize,300);return wg({...t,onResize:e})}function Nn({className:t="truncated"}={}){const e=N();return _g({ref:e,box:"border-box",onResize:({height:r})=>{if(e.current){const{scrollHeight:s}=e.current;let a=s>r;if(a){const{height:i,maxHeight:c}=getComputedStyle(e.current),l=parseInt(c||i,10);a=s>l}e.current.classList.toggle(t,a)}}}),e}const On={public:"earth",unlisted:"group",private:"lock",direct:"message",local:"building"},qe={public:{id:"7d1a0d"},local:{id:"d5zxa4"},unlisted:{id:"pPYeIN"},private:{id:"x5LEuB"},direct:{id:"IV4QaU"}},kg=["\\\\\\[[\\s\\S]*?\\\\\\]","\\\\\\([\\s\\S]*?\\\\\\)"],hs=new RegExp(kg.join("|"),"g");function Tg(t){const e=["\\\\\\[","\\\\\\("],n=new RegExp(`(${e.join("|")})`),r=document.createTreeWalker(t,NodeFilter.SHOW_TEXT),s=[];let a;for(;a=r.nextNode();)s.push(a);for(const i of s){const c=i.textContent,l=c.match(n);if(!l)continue;const d=l[0]==="\\["?"\\]":"\\)",u=[i];let f=i,p=!1,m=c;if(c.includes(d))p=!0;else for(;f.nextSibling&&!p;){const g=f.nextSibling;if(g.nodeType===Node.TEXT_NODE)u.push(g),m+=g.textContent,g.textContent.includes(d)&&(p=!0);else if(g.nodeType===Node.ELEMENT_NODE&&g.tagName==="BR")u.push(g),m+=` +`;else break;f=g}if(p&&u.length>1){i.textContent=m;for(let g=1;g{if(hs.lastIndex=0,!hs.test(t))return null;const{_:s}=Kt(),[a,i]=H(!1),c=yt(async l=>{if(l.preventDefault(),l.stopPropagation(),a)i(!1),n();else try{const h=window.temml||(window.temml=(await Bs(async()=>{const{default:p}=await import("./temml-Dns96zBN.js");return{default:p}},[],import.meta.url))?.default);Tg(e.current);const d=e.current.innerHTML;h.renderMathInElement(e.current,{fences:"(",annotate:!0,throwOnError:!0,errorCallback:p=>{}});const u=e.current.querySelector("math"),f=e.current.innerHTML!==d;u&&f?i(!0):(ht(s({id:"HBIZeo"})),i(!1),n())}catch{}},[a]);return o("div",{class:"math-block",children:[o(I,{icon:"formula",size:"s"})," ",o("span",{children:s({id:"/nf2x7"})})," ",o("button",{type:"button",class:"light small",onClick:c,children:s(a?{id:"AJqQb+"}:{id:"dP6iYK"})})]})},Sa=new Uint8Array(128);for(let t=0;t<83;t++)Sa["0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~".charCodeAt(t)]=t;const go=(t,e,n)=>{let r=0;for(;et>10.31475?Ca(t/Aa+.052132,2.4):t/Ea,ir=t=>~~(t>1227e-8?Aa*Ca(t,.416666)-13.025:t*Ea+1),Fn=t=>(t<0?-1:1)*t*t,fs=t=>{for(t+=Kn/2;t>Kn;)t-=Cg;const e=1.27323954*t-.405284735*Fn(t);return .225*(Fn(e)-e)+e};function ni(t){const e=go(t,2,6);return[e>>16,e>>8&255,e&255]}function Ag(t,e,n,r){const s=go(t,0,1),a=s%9+1,i=~~(s/9)+1,c=a*i;let l=0,h=0,d=0,u=0,f=0,p=0,m=0,g=0,v=0,b=0,k=0,S=0;const C=(go(t,1,2)+1)/13446*(r|1),_=new Float64Array(c*3),T=ni(t);for(l=0;l<3;l++)_[l]=Eg(T[l]);for(l=1;l"u",Ig=function(){return!Mg&&("ontouchstart"in window||navigator.maxTouchPoints>0)};var Lg=function(t){var e=t.x,n=t.y,r=t.scale;return"scale3d(".concat(r,",").concat(r,", 1) translate3d(").concat(e,"px, ").concat(n,"px, 0)")};var Pg=Math.min,Dg=Math.max;function ps(t){var e=t.containerDimension,n=t.childDimension,r=t.padding,s=t.centerContained,a=n-e;return a+2*r<=0&&s?[a/2,a/2]:[Pg(a+r,0)-r,Dg(0,a+r)]}var ms=function(t,e){return e?"".concat(t," ").concat(e):t},ao=Math.abs,Rg=Math.min,$g=Math.sqrt,Ia=typeof window>"u",Ng=Ia?!1:/(Mac)/i.test(navigator.platform),on=function(t){return t==="drag"},Mn=function(t){return t==="zoom"},Og=function(t){return Ng&&t.ctrlKey},In=function(t){t.stopPropagation(),t.preventDefault()},gs=function(t,e){var n=t.x-e.x,r=t.y-e.y;return $g(n*n+r*r)},Fg=function(t,e){var n=gs(t[0],t[1]),r=gs(e[0],e[1]);return r/n},Bg=function(t,e){return t>e-.01&&te?e:n},jg=function(t){return!(t.ctrlKey||t.metaKey)},Ug=function(t){if(t){var e=t.offsetWidth,n=t.offsetHeight;if(e&&n)return{width:e,height:n};var r=getComputedStyle(t),s=parseFloat(r.width),a=parseFloat(r.height);if(a&&s)return{width:s,height:a}}return{width:0,height:0}},qg=function(t,e){return{x:e.x-t.x,y:e.y-t.y}},Wg=function(t,e){return t.x===e.x&&t.y===e.y},ze=function(){},lo={x:0,y:0},ys=function(t){Ac(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n._prevDragMovePoint=null,n._containerObserver=null,n._fingers=0,n._firstMove=!0,n._initialOffset=Bt({},lo),n._interaction=null,n._isDoubleTap=!1,n._isOffsetsSet=!1,n._lastDragPosition=null,n._lastScale=1,n._lastTouchStart=0,n._lastZoomCenter=null,n._listenMouseMove=!1,n._nthZoom=0,n._offset=Bt({},lo),n._startOffset=Bt({},lo),n._startTouches=null,n._updatePlaned=!1,n._wheelTimeOut=null,n._zoomFactor=1,n._initialZoomFactor=1,n._draggingPoint=Bt({},lo),n._ignoreNextClick=!1,n._containerRef=xc(),n._handleClick=function(r){n._ignoreNextClick&&(n._ignoreNextClick=!1,r.stopPropagation())},n._onResize=function(){var r;!((r=n._containerRef)===null||r===void 0)&&r.current&&(n._updateInitialZoomFactor(),n._setupOffsets(),n._update())},n._handlerOnTouchEnd=n._handlerIfEnable(function(r){n._fingers=r.touches.length,n.props.shouldCancelHandledTouchEndEvents&&(Mn(n._interaction)||on(n._interaction)&&(n._startOffset.x!==n._offset.x||n._startOffset.y!==n._offset.y))&&In(r),on(n._interaction)&&!n._enoughToDrag()&&n._handleClick(r),n._updateInteraction(r)}),n._handlerOnTouchStart=n._handlerIfEnable(function(r){n._firstMove=!0,n._fingers=r.touches.length,n._detectDoubleTap(r)}),n._handlerOnTouchMove=n._handlerIfEnable(function(r){n._isDoubleTap||(n._collectInertia(r),n._firstMove?(n._updateInteraction(r),n._interaction&&In(r),n._startOffset=Bt({},n._offset),n._startTouches=co(r.touches)):(Mn(n._interaction)?n._startTouches&&n._startTouches.length===2&&r.touches.length===2&&n._handleZoom(r,Fg(n._startTouches,co(r.touches))):on(n._interaction)&&n._handleDrag(r),n._interaction&&(In(r),n._update())),n._firstMove=!1)}),n._handlerWheel=function(r){if(!n.props.shouldInterceptWheel(r)){In(r);var s=r.pageX,a=r.pageY,i=r.deltaY,c=r.deltaMode,l=1;(Og(r)||c===1)&&(l=15);var h={touches:[{pageX:s,pageY:a}]},d=n._getOffsetByFirstTouch(h),u=i*l;n._stopAnimation(),n._scaleTo(n._zoomFactor-u/n.props.wheelScaleFactor,d),n._update(),clearTimeout(n._wheelTimeOut),n._wheelTimeOut=setTimeout(function(){return n._sanitize()},100)}},n._handlers=n.props.isTouch()?[["touchstart",n._handlerOnTouchStart],["touchend",n._handlerOnTouchEnd],["touchmove",n._handlerOnTouchMove]]:[["mousemove",n.simulate(n._handlerOnTouchMove),n.props._document],["mouseup",n.simulate(n._handlerOnTouchEnd),n.props._document],["mousedown",n.simulate(n._handlerOnTouchStart)],["click",n._handleClick],["wheel",n._handlerWheel]],n}return e.prototype._handleDragStart=function(n){this._ignoreNextClick=!0,this.props.onDragStart(),this._stopAnimation(),this._resetInertia(),this._lastDragPosition=null,this._hasInteraction=!0,this._draggingPoint=this._offset,this._handleDrag(n)},e.prototype._handleDrag=function(n){var r=this._getOffsetByFirstTouch(n);this._enoughToDrag()?this._drag(r,this._lastDragPosition):this._virtualDrag(r,this._lastDragPosition),this._offset=this._sanitizeOffset(this._offset),this._lastDragPosition=r},e.prototype._resetInertia=function(){this._velocity=null,this._prevDragMovePoint=null},e.prototype._realizeInertia=function(){var n=this,r=this.props,s=r.inertiaFriction,a=r.inertia;if(!(!a||!this._velocity)){var i=this._velocity,c=i.x,l=i.y;if(c||l){this._stopAnimation(),this._resetInertia();var h=function(){if(c*=s,l*=s,!c&&!l)return n._stopAnimation();var d=Bt({},n._offset);if(n._addOffset({x:c,y:l}),n._offset=n._sanitizeOffset(n._offset),Wg(d,n._offset))return n._stopAnimation();n._update({isAnimation:!0})};this._animate(h,{duration:9999})}}},e.prototype._collectInertia=function(n){var r=n.touches;if(this.props.inertia){var s=co(r)[0],a=this._prevDragMovePoint;a&&(this._velocity=qg(s,a)),this._prevDragMovePoint=s}},e.prototype._handleDragEnd=function(){this.props.onDragEnd(),this._end(),this._realizeInertia()},e.prototype._handleZoomStart=function(){this.props.onZoomStart(),this._stopAnimation(),this._lastScale=1,this._nthZoom=0,this._lastZoomCenter=null,this._hasInteraction=!0},e.prototype._handleZoom=function(n,r){var s=Kg(this._getOffsetTouches(n)),a=r/this._lastScale;this._lastScale=r,this._nthZoom+=1,this._nthZoom>3&&(this._scale(a,s),this._drag(s,this._lastZoomCenter),this.props.enforceBoundsDuringZoom&&(this._offset=this._sanitizeOffset(this._offset))),this._lastZoomCenter=s},e.prototype._handleZoomEnd=function(){this.props.onZoomEnd(),this._end()},e.prototype._handleDoubleTap=function(n){var r=this;if(!(this._hasInteraction||this.props.tapZoomFactor===0)){var s=this.props.doubleTapZoomOutOnMaxScale&&this._zoomFactor===this.props.maxZoom||this.props.doubleTapToggleZoom&&this._zoomFactor>1;this.props.onDoubleTap(),this._ignoreNextClick=!0;var a=this._zoomFactor+this.props.tapZoomFactor,i=this._zoomFactor,c=function(h){r._scaleTo(i+h*(a-i),l)},l=this._getOffsetByFirstTouch(n);this._isDoubleTap=!0,i>a&&(l=this._getCurrentZoomCenter()),s?this._zoomOutAnimation():this._animate(c)}},e.prototype._computeInitialOffset=function(){var n=this._getContainerRect(),r=this._getChildSize(),s=r.width,a=r.height,i=-ao(s*this._getInitialZoomFactor()-n.width)/2,c=-ao(a*this._getInitialZoomFactor()-n.height)/2;this._initialOffset={x:i,y:c}},e.prototype._resetOffset=function(){this._offset=Bt({},this._initialOffset)},e.prototype._setupOffsets=function(){this.props.setOffsetsOnce&&this._isOffsetsSet||(this._isOffsetsSet=!0,this._computeInitialOffset(),this._resetOffset())},e.prototype._sanitizeOffset=function(n){var r=this._getContainerRect(),s=this._getChildSize(),a=s.width,i=s.height,c=a*this._getInitialZoomFactor()*this._zoomFactor,l=i*this._getInitialZoomFactor()*this._zoomFactor,h=ps({containerDimension:r.width,childDimension:c,padding:this.props.horizontalPadding,centerContained:this.props.centerContained}),d=h[0],u=h[1],f=ps({containerDimension:r.height,childDimension:l,padding:this.props.verticalPadding,centerContained:this.props.centerContained}),p=f[0],m=f[1];return{x:sr(d,u,n.x),y:sr(p,m,n.y)}},e.prototype.alignCenter=function(n){var r=this,s=Bt({duration:250,animated:!0},n),a=s.x,i=s.y,c=s.scale,l=s.animated,h=s.duration,d=a*this._initialZoomFactor,u=i*this._initialZoomFactor,f=this._zoomFactor,p=Bt({},this._offset),m=this._getContainerRect(),g={x:m.width/2,y:m.height/2};if(this._zoomFactor=1,this._offset={x:-(g.x-d),y:-(g.y-u)},this._scaleTo(c,g),this._stopAnimation(),!l)return this._update();var v=this._zoomFactor-f,b={x:this._offset.x-p.x,y:this._offset.y-p.y};this._zoomFactor=f,this._offset=Bt({},p);var k=function(S){var C=p.x+b.x*S,_=p.y+b.y*S;r._zoomFactor=f+v*S,r._offset=r._sanitizeOffset({x:C,y:_}),r._update()};this._animate(k,{callback:function(){return r._sanitize()},duration:h})},e.prototype.scaleTo=function(n){var r=this,s=Bt({duration:250,animated:!0},n),a=s.x,i=s.y,c=s.scale,l=s.animated,h=s.duration,d=this._zoomFactor,u=Bt({},this._offset);if(this._zoomFactor=1,this._offset={x:0,y:0},this._scaleTo(c,{x:a,y:i}),this._stopAnimation(),!l)return this._update();var f=this._zoomFactor-d,p={x:this._offset.x-u.x,y:this._offset.y-u.y};this._zoomFactor=d,this._offset=Bt({},u);var m=function(g){var v=u.x+p.x*g,b=u.y+p.y*g;r._zoomFactor=d+f*g,r._offset={x:v,y:b},r._update()};this._animate(m,{callback:function(){return r._sanitize()},duration:h})},e.prototype._scaleTo=function(n,r){this._scale(n/this._zoomFactor,r),this._offset=this._sanitizeOffset(this._offset)},e.prototype._scale=function(n,r){n=this._scaleZoomFactor(n),this._addOffset({x:(n-1)*(r.x+this._offset.x),y:(n-1)*(r.y+this._offset.y)}),this.props.onZoomUpdate()},e.prototype._scaleZoomFactor=function(n){var r=this._zoomFactor;return this._zoomFactor*=n,this._zoomFactor=sr(this.props.minZoom,this.props.maxZoom,this._zoomFactor),this._zoomFactor/r},e.prototype._canDrag=function(){return this.props.draggableUnZoomed||!Bg(this._zoomFactor,1)},e.prototype._drag=function(n,r){if(r){var s=-(n.y-r.y),a=-(n.x-r.x);this.props.lockDragAxis?ao(a)>ao(s)?this._addOffset({x:a,y:0}):this._addOffset({y:s,x:0}):this._addOffset({x:a,y:s}),this.props.onDragUpdate()}},e.prototype._virtualDrag=function(n,r){if(r){var s=-(n.y-r.y),a=-(n.x-r.x);this._draggingPoint={x:a+this._draggingPoint.x,y:s+this._draggingPoint.y}}},e.prototype._addOffset=function(n){var r=this._offset,s=r.x,a=r.y;this._offset={x:s+n.x,y:a+n.y}},e.prototype._sanitize=function(){this._zoomFactor=h?(n(1),s._stopAnimation(),l(),s._update()):(f=c(f),n(f),s._update({isAnimation:!0}),requestAnimationFrame(d))}};this._inAnimation=!0,requestAnimationFrame(d)},e.prototype._stopAnimation=function(){this._inAnimation=!1},e.prototype._end=function(){this._hasInteraction=!1,this._sanitize(),this._update()},e.prototype._getContainerRect=function(){var n=this._containerRef.current;return n.getBoundingClientRect()},e.prototype._getChildSize=function(){var n=this._containerRef.current;return Ug(n?.firstElementChild)},e.prototype._updateInitialZoomFactor=function(){var n=this._getContainerRect(),r=this._getChildSize(),s=n.width/r.width,a=n.height/r.height;this._initialZoomFactor=Rg(s,a)},e.prototype._bindEvents=function(){var n=this,r=this._containerRef.current;window.ResizeObserver?(this._containerObserver=new ResizeObserver(this._onResize),this._containerObserver.observe(r)):window.addEventListener("resize",this._onResize),this._handlers.forEach(function(s){var a=s[0],i=s[1],c=s[2];(c||r).addEventListener(a,i,!0)}),Array.from(r.querySelectorAll("img")).forEach(function(s){return s.addEventListener("load",n._onResize)})},e.prototype._unSubscribe=function(){var n=this,r=this._containerRef.current;this._containerObserver&&(this._containerObserver.disconnect(),this._containerObserver=null),window.removeEventListener("resize",this._onResize),this._handlers.forEach(function(s){var a=s[0],i=s[1],c=s[2];(c||r).removeEventListener(a,i,!0)}),Array.from(r.querySelectorAll("img")).forEach(function(s){return s.removeEventListener("load",n._onResize)})},e.prototype._update=function(n){var r=this;if(!this._updatePlaned){var s=function(){var a=r._getInitialZoomFactor()*r._zoomFactor,i=-r._offset.x/a,c=-r._offset.y/a;r.props.onUpdate({scale:a,x:i,y:c})};if(n?.isAnimation)return s();this._updatePlaned=!0,requestAnimationFrame(function(){r._updatePlaned=!1,s()})}},e.prototype._handlerIfEnable=function(n){var r=this;return function(){for(var s=[],a=0;ar?n-r:r-n},e.prototype._enoughToDrag=function(){return this._distanceBetweenNumbers(this._startOffset.x,this._draggingPoint.x)>5||this._distanceBetweenNumbers(this._startOffset.y,this._draggingPoint.y)>5},e.prototype._updateInteraction=function(n){var r=this._fingers;if(r===2)return this._setInteraction("zoom",n);if(r===1&&this._canDrag())return this._setInteraction("drag",n);this._setInteraction(null,n)},e.prototype._detectDoubleTap=function(n){var r=new Date().getTime();this._fingers>1&&(this._lastTouchStart=0),r-this._lastTouchStart<300?(In(n),this._handleDoubleTap(n),Mn(this._interaction)?this._handleZoomEnd():on(this._interaction)&&this._handleDragEnd()):this._isDoubleTap=!1,this._fingers===1&&(this._lastTouchStart=r)},e.prototype.simulate=function(n){var r=this;return function(s){var a=s.pageX,i=s.pageY,c=s.type,l=c==="mouseup",h=c==="mousedown";h&&(s.preventDefault(),r._listenMouseMove=!0),r._listenMouseMove&&(s.touches=l?[]:[{pageX:a,pageY:i}],n(s)),l&&(r._listenMouseMove=!1)}},e.prototype.componentDidMount=function(){this._bindEvents(),this._update()},e.prototype.componentWillUnmount=function(){this._stopAnimation(),this._unSubscribe()},e.prototype.render=function(){var n=this.props,r=n.children,s=n.containerProps,a=n.nonce,i=Mc.only(r),c=s||{};return Qn.createElement(Qn.Fragment,null,Qn.createElement("style",{nonce:a},xg),Qn.createElement("div",Bt({},c,{ref:this._containerRef,className:ms(xa,c.className)}),Ns(i,{className:ms(Ma,i.props.className)})))},e.defaultProps={animationDuration:250,draggableUnZoomed:!0,enforceBoundsDuringZoom:!1,centerContained:!1,enabled:!0,inertia:!0,inertiaFriction:.96,horizontalPadding:0,isTouch:Ig,lockDragAxis:!1,maxZoom:5,minZoom:.5,onDoubleTap:ze,onDragEnd:ze,onDragStart:ze,onDragUpdate:ze,onZoomEnd:ze,onZoomStart:ze,onZoomUpdate:ze,setOffsetsOnce:!1,shouldInterceptWheel:jg,shouldCancelHandledTouchEndEvents:!1,tapZoomFactor:1,verticalPadding:0,wheelScaleFactor:1500,zoomOutFactor:1.3,doubleTapZoomOutOnMaxScale:!1,doubleTapToggleZoom:!1,_document:Ia?null:window.document},e}(Fs);if(0)var By,zy,Hy,Ky,jy,Uy,qy,Wy;function ar(t){if(!t)return;let e=Math.floor(t/3600),n=Math.floor(t%3600/60),r=Math.round(t%60);return e===0?`${n}:${r.toString().padStart(2,"0")}`:`${e}:${n.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`}const Vg=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Zg="ALT",cr=t=>{const{_:e}=Kt(),{alt:n,lang:r,index:s,...a}=t;return!n||!n.trim()?null:o("button",{type:"button",class:"alt-badge clickable",...a,onClick:i=>{i.stopPropagation(),i.preventDefault(),z.showMediaAlt={alt:n,lang:r}},title:e({id:"5gfDMm"}),children:[Zg,!!s&&o("sup",{children:s})]})},Gg=140,Yg=280,La=Wt(t=>t?.length?t.length>Gg||/[\n\r].*[\n\r]/.test(t.trim()):!1);function Xg({class:t="",media:e,to:n,lang:r,showOriginal:s,autoAnimate:a,showCaption:i,allowLongerCaption:c,altIndex:l,checkAspectRatio:h=!0,onClick:d}){let{id:u,blurhash:f,description:p,meta:m,previewRemoteUrl:g,previewUrl:v,remoteUrl:b,url:k,type:S}=e;/no\-preview\./i.test(v)&&(v=null);const C=Qg(u||f||k),{original:_={},small:T,focus:E}=m||{},w=s?_?.width:T?.width||_?.width,M=s?_?.height:T?.height||_?.height,P=s?k:v||k,L=s?b:g||b,A=T?.width&&T?.height,R=w&&M?w>M?"landscape":"portrait":null,W=f?ni(f):null,B=N();let Y;if(E){const O=(E.x+1)/2*100,G=(1-E.y)/2*100;Y=`${O.toFixed(0)}% ${G.toFixed(0)}%`}const et=N(),ct=yt(({x:O,y:G,scale:U})=>{const{current:wt}=et;if(wt){const Mt=Lg({x:O,y:G,scale:U});U===1?wt.style.removeProperty("transform"):wt.style.setProperty("transform",Mt),wt.closest(".media-zoom").style.touchAction=U<=1.01?"pan-x":""}},[]),[nt,Z]=H(!1),st={enabled:nt,draggableUnZoomed:!1,inertiaFriction:.9,tapZoomFactor:2,doubleTapToggleZoom:!0,containerProps:{className:"media-zoom",style:{overflow:"visible"}},onUpdate:ct},[J,Tt]=H(!1),Lt=it(()=>n&&!J?O=>o(Ze,{to:n,...O}):"div",[n,J]),$t=L?bs(L):null,dt=S==="unknown"&&$t&&/\.(mp4|m4r|m4v|mov|webm)$/i.test($t.pathname),le=S==="unknown"&&$t&&/\.(mp3|ogg|wav|m4a|m4p|m4b)$/i.test($t.pathname),ne=S==="image"||S==="unknown"&&v&&!dt&&!le,oe=v&&/\.(mp4|m4r|m4v|mov|webm)$/i.test(bs(v).pathname),K=N(),[mt,Pt]=H(!1);_e(()=>{if(!ne||!s||!K.current)return;const{offsetWidth:O,offsetHeight:G}=K.current,U=w{const{children:G,...U}=O;return o("figure",{...U,children:[G,o("figcaption",{class:"media-caption",lang:r,dir:"auto",onClick:wt=>{wt.preventDefault(),wt.stopPropagation(),z.showMediaAlt={alt:p,lang:r}},children:p})]})}:F,Vt=()=>window.matchMedia("(min-width: calc(40em + 350px))").matches?"large":"small",bt=yt(O=>{const G=O.target.closest(".status-deck");if(s||Vt()==="large"&&G||!document.startViewTransition){d?.(O);return}const U=O.target.closest("[data-view-transition-name]")||O.target.querySelector("[data-view-transition-name]");if(U)if(d)d(O);else if(O.preventDefault(),U.dataset.viewTransitioned){U.style.viewTransitionName=C;try{document.startViewTransition(()=>{U.style.viewTransitionName="",location.hash=`#${n}`})}catch{U.style.viewTransitionName="",location.hash=`#${n}`}}else location.hash=`#${n}`;else d?.(O)},[C,s,d]);if(ne)return st.containerProps.style.display="inherit",_e(()=>{Vg&&s&&(async()=>{try{await fetch(P,{mode:"no-cors"}),et.current.src=P}catch{}})()},[P]),o(gt,{children:[o(Lt,{ref:K,class:`media media-image ${t}`,onClick:bt,"data-orientation":R,"data-has-alt":!lt||void 0,style:s?{backgroundImage:`url(${v})`,"--bg-image":`url(${v})`,backgroundSize:mt?`${w}px ${M}px`:void 0,...jt}:tt,children:s?o(ys,{...st,children:o("img",{ref:et,src:P,alt:p,width:w,height:M,"data-orientation":R,loading:"eager",decoding:"sync",style:{"view-transition-name":C},onLoad:O=>{const G=O.target,U=G.closest(".media-image");U&&(U.style.backgroundImage=`url(${G.src})`,U.style.removeProperty("--bg-image")),G.closest(".media-zoom").style.display="",Z(!0)},onError:O=>{const{src:G}=O.target;G===P&&L&&P!==L&&(O.target.src=L)}})}):o(F,{children:[o("img",{src:P,alt:lt?"":p,width:w,height:M,"data-orientation":R,loading:"lazy","data-view-transition-name":C,style:{objectPosition:Y||"center","--anim-duration":`${Math.min(Math.max(Math.max(w,M)/100,5),120)}s`},onLoad:O=>{O.target.dataset.loaded=!0;const G=O.target.closest(".media");if(!A&&G){const{naturalWidth:U,naturalHeight:wt}=O.target;G.dataset.orientation=U>wt?"landscape":"portrait",G.style.setProperty("--width",`${U}px`),G.style.setProperty("--height",`${wt}px`),G.style.aspectRatio=`${U}/${wt}`}if(h&&G){const{target:U}=O;setTimeout(()=>{const{clientWidth:wt,clientHeight:Mt,naturalWidth:ft,naturalHeight:xt}=U;if(wt&&Mt&&ft&&xt)if(ft<88||xt<88)G.dataset.hasSmallDimension=!0;else{const vt=xt*wt/ft;if(Math.abs(vt-Mt)<5){const V=G.closest(".media");V&&(V.dataset.hasNaturalAspectRatio=!0)}}},300)}},onError:O=>{const{src:G}=O.target;G===P&&P!==L?O.target.src=L:Tt(!0)}}),!lt&&o(cr,{alt:p,lang:r,index:l})]})}),J&&o("div",{children:o("a",{href:b,class:"button plain6 small",target:"_blank",children:[o(I,{icon:"external"})," ",o("span",{children:o(x,{id:"9npOH9"})})]})})]});if(S==="gifv"||S==="video"||dt){const O=_.duration>0,G=_.duration<31,U=S==="gifv"&&G,wt=_.duration<61,Mt=ar(_.duration),ft=!s&&!a&&U,xt=!s&&a&&U,Dt=_.duration>5,vt=` + + `,Zt=` + + `;return o(gt,{children:o(Lt,{ref:K,class:`media ${t} media-${U?"gif":"video"} ${xt?"media-contain":""} ${ft?"media-hover-animate":""}`,"data-orientation":R,"data-formatted-duration":s?void 0:Mt,"data-label":U&&!s&&!xt?"GIF":void 0,"data-has-alt":!lt||void 0,style:!s&&tt,onClick:V=>{if(ft)try{B.current.pause()}catch{}bt(V)},onMouseEnter:()=>{if(ft)try{B.current.play()}catch{}},onMouseLeave:()=>{if(ft)try{B.current.pause()}catch{}},onFocus:()=>{if(ft)try{B.current.play()}catch{}},onBlur:()=>{if(ft)try{B.current.pause()}catch{}},children:[s||xt?U&&s?o(ys,{...st,enabled:!0,children:o("div",{ref:et,dangerouslySetInnerHTML:{__html:vt}})}):U?o("div",{class:"video-container",dangerouslySetInnerHTML:{__html:vt}}):o("div",{class:"video-container",dangerouslySetInnerHTML:{__html:Zt}}):U?o("video",{ref:B,src:k,poster:v,width:w,height:M,"data-orientation":R,"data-view-transition-name":C,preload:"auto",playsinline:!0,loop:!0,muted:!0,onTimeUpdate:Dt?V=>{const{target:_t}=V,Ht=_t?.closest(".media-gif");if(Ht){const re=_t.currentTime/_t.duration*100;Ht.style.setProperty("--progress",`${re}%`)}}:void 0}):o(F,{children:[v&&!oe?o("img",{src:v,alt:lt?"":p,width:w,height:M,"data-orientation":R,loading:"lazy",decoding:"async","data-view-transition-name":C,onLoad:V=>{if(!A){const _t=V.target.closest(".media");if(_t){const{naturalHeight:Ht,naturalWidth:re}=V.target;_t.dataset.orientation=re>Ht?"landscape":"portrait",_t.style.setProperty("--width",`${re}px`),_t.style.setProperty("--height",`${Ht}px`),_t.style.aspectRatio=`${re}/${Ht}`}}}}):o("video",{src:k+"#t=0.1",width:w,height:M,"data-orientation":R,"data-view-transition-name":C,preload:"metadata",muted:!0,disablePictureInPicture:!0,onLoadedMetadata:V=>{if(!O){const{duration:_t}=V.target;if(_t){const Ht=ar(_t),re=V.target.closest(".media-video");re&&(re.dataset.formattedDuration=Ht)}}}}),o("div",{class:"media-play",children:o(I,{icon:"play",size:"xl",alt:"▶"})})]}),!s&&!lt&&o(cr,{alt:p,lang:r,index:l})]})})}else if(S==="audio"||le){const O=ar(_.duration);return o(gt,{children:o(Lt,{class:`media media-audio ${t}`,"data-formatted-duration":s?void 0:O,"data-has-alt":!lt||void 0,onClick:d,style:!s&&tt,children:[s?o("audio",{src:b||k,preload:"none",controls:!0,autoPlay:!0}):v?o("img",{src:v,alt:lt?"":p,width:w,height:M,"data-orientation":R,loading:"lazy",onError:G=>{try{G.target?.remove?.()}catch{}}}):null,!s&&o(F,{children:[o("div",{class:"media-play",children:o(I,{icon:"play",size:"xl",alt:"▶"})}),!lt&&o(cr,{alt:p,lang:r,index:l})]})]})})}}function bs(t){return URL.parse(t,location.origin)}function Qg(t){let e=t.replace(/[^a-zA-Z0-9_-]/g,"-");return e.match(/^[0-9-]/)&&(e="vt-"+e),e}const Pr=$e(Xg,(t,e)=>{const n=t.media||{},r=e.media||{};return n?.id===r?.id&&n.url===r.url&&t.to===e.to&&t.class===e.class});function Jg(t){const{mediaAttachments:e,language:n,postID:r,instance:s}=t,a=e.length>1,i=N(),[c,l]=H(0);return q(()=>{let h=()=>{const{clientWidth:d,scrollLeft:u}=i.current,f=Math.round(Math.abs(u)/d);l(f)};return i.current&&i.current.addEventListener("scroll",h,{passive:!0}),()=>{i.current&&i.current.removeEventListener("scroll",h)}},[]),o(F,{children:[o("div",{class:"media-first-container",children:[o("div",{class:"media-first-carousel",ref:i,children:e.map((h,d)=>o("div",{class:"media-first-item",children:o(Pr,{media:h,lang:n,to:`/${s}/s/${r}?media=${d+1}`})},h.id))}),a&&o("div",{class:"media-carousel-controls",children:[o("div",{class:"carousel-indexer",children:[c+1,"/",e.length]}),o("label",{class:"media-carousel-button",children:o("button",{type:"button",class:"carousel-button",hidden:c===0,onClick:h=>{h.preventDefault(),h.stopPropagation(),i.current.focus(),i.current.scrollTo({left:i.current.clientWidth*(c-1)*(Tr()?-1:1),behavior:"smooth"})},children:o(I,{icon:"arrow-left"})})}),o("label",{class:"media-carousel-button",children:o("button",{type:"button",class:"carousel-button",hidden:c===e.length-1,onClick:h=>{h.preventDefault(),h.stopPropagation(),i.current.focus(),i.current.scrollTo({left:i.current.clientWidth*(c+1)*(Tr()?-1:1),behavior:"smooth"})},children:o(I,{icon:"arrow-right"})})})]})]}),a&&o("div",{class:"media-carousel-dots",style:{"--dots-count":e.length},children:e.map((h,d)=>o("span",{class:`carousel-dot ${d===c?"active":""}`},h.id))})]})}function tv(t){const{enabled:e,children:n,lang:r,captionChildren:s}=t;return!e||!s?n:o("figure",{class:"media-figure-multiple",children:[n,o("figcaption",{lang:r,dir:"auto",children:s})]})}function ev({poll:t,lang:e,readOnly:n,refresh:r=()=>{},votePoll:s=()=>{}}){const{_:a}=Kt(),[i,c]=H("default"),{expired:l,expiresAt:h,id:d,multiple:u,options:f,ownVotes:p,voted:m,votersCount:g,votesCount:v=0,emojis:b}=t,k=!!h&&new Date(h),S=u&&g||v;let C=0;S<=1e3?C=0:S<=1e4?C=1:S<=1e5&&(C=2);const[_,T]=H(!1),E=f.every(w=>w.votesCount!==null);return o("div",{lang:e,dir:"auto",class:`poll ${n?"read-only":""} ${i==="loading"?"loading":""}`,children:[_&&E||m||l?o(F,{children:[o("div",{class:"poll-options",children:f.map((w,M)=>{const{title:P,votesCount:L}=w,A=S?L/S:0,$=A?A.toLocaleString(Rt.locale||void 0,{style:"percent",maximumFractionDigits:C}):"0%",R=L>0&&L===Math.max(...f.map(W=>W.votesCount));return o("div",{class:`poll-option poll-result ${R?"poll-option-leading":""}`,style:{"--percentage":`${A*100}%`},children:[o("div",{class:"poll-option-title",children:[o("span",{children:o(un,{text:P,emojis:b})}),m&&p.includes(M)&&o(F,{children:[" ",o(I,{icon:"check-circle",alt:a({id:"IeO7us"})})]})]}),o("div",{class:"poll-option-votes",title:Rt._({id:"+syLpm",values:{optionVotesCount:L}}),children:$})]},`${M}-${P}-${L}`)})}),!l&&!m&&o("button",{class:"poll-vote-button plain2",disabled:i==="loading",onClick:w=>{w.preventDefault(),T(!1)},children:[o(I,{icon:"arrow-left",size:"s"})," ",o(x,{id:"L96xSt"})]})]}):o("form",{onSubmit:async w=>{w.preventDefault();const M=w.target,P=new FormData(M),L=[];P.forEach((A,$)=>{$==="poll"&&L.push(A)}),L.length&&(c("loading"),await s(L),c("default"))},children:[o("div",{class:"poll-options",children:f.map((w,M)=>{const{title:P}=w;return o("div",{class:"poll-option",children:o("label",{class:"poll-label",children:[o("input",{type:u?"checkbox":"radio",name:"poll",value:M,disabled:i==="loading",readOnly:n}),o("span",{class:"poll-option-title",children:o(un,{text:P,emojis:b})})]})})})}),!n&&o("button",{class:"poll-vote-button",type:"submit",disabled:i==="loading",children:o(x,{id:"lQXQKs"})})]}),o("p",{class:"poll-meta",children:[!l&&!n&&o("button",{type:"button",class:"plain small",disabled:i==="loading",onClick:w=>{w.preventDefault(),c("loading"),(async()=>(await r(),c("default")))()},title:a({id:"lCF0wC"}),children:o(I,{icon:"refresh",alt:a({id:"lCF0wC"})})}),!m&&!l&&!n&&E&&o("button",{type:"button",class:"plain small",disabled:i==="loading",onClick:w=>{w.preventDefault(),T(!_)},title:a(_?{id:"L96xSt"}:{id:"zCjei3"}),children:[o(I,{icon:_?"eye-open":"eye-close",alt:a(_?{id:"L96xSt"}:{id:"zCjei3"})})," "]}),!l&&!n&&" ",o(x,{id:"k7v0Rh",values:{0:ae(v),1:ae(v),votesCount:v},components:{0:o("span",{title:v}),1:o("span",{title:v})}}),!!g&&g!==v&&o(F,{children:[" ","•"," ",o(x,{id:"jf1i1L",values:{0:ae(g),1:ae(g),votersCount:g},components:{0:o("span",{title:g}),1:o("span",{title:g})}})]})," ","•"," ",l?k?o(x,{id:"5LwCCI",components:{0:o(be,{datetime:k})}}):a({id:"237hSL"}):k?o(x,{id:"ooHDPY",components:{0:o(be,{datetime:k})}}):a({id:"O2tNG0"})]})]})}const nv=/^http/i,ws=({post:t,instance:e,previewMode:n})=>{const{content:r,emojis:s,language:a,mentions:i,url:c}=t,l=Ge(z),h=Qt(t.id,e),d=l.statusQuotes[h],u=N();return _e(()=>{if(!u.current)return;const f=ma(r,{emojis:s,returnDOM:!0});for(const p of f.querySelectorAll('a.u-url[target="_blank"]'))nv.test(p.innerText.trim())||p.removeAttribute("target");u.current.replaceChildren(f.cloneNode(!0))},[r,s?.length]),q(()=>{if(d?.length)for(const f of u.current.querySelectorAll("a"))d.some(p=>p?.originalURL===f.href)&&f.classList.add("is-quote")},[d?.length]),o("div",{ref:u,lang:a,dir:"auto",class:"inner-content",onClick:Cm({mentions:i,instance:e,previewMode:n,statusURL:c})})};var lr,_s;function ov(){return _s||(_s=1,lr=(e,n={})=>{const r=n.char||" ",s=n.count||2;let a=0;const i=[];return e.reverse().reduce((c,l)=>{i.length&&a&&i[a]&&i[a]===l.substring(1,i[a].length+1)&&(i.splice(a,1),a--);const d=[`${r.repeat(a?a*s:0)}${l}`,...c];return l.substring(0,2)==="n.trim().replace(/(^(\s|\t)+|(( |\t)+)$)/gm,"");return ur={mergeAttributesWithElements:n=>{const r=t(n).split(` +`),s=[];let a="";for(let i=0;i")){s.push(`${a}${c.slice(0,-2)} />`),a="";continue}if(c.endsWith(">")){s.push(`${a}${c.startsWith(">")||c.startsWith("<")?"":" "}${c}`),a="";continue}a+=a.length?` ${c}`:c}return s},removeEmptyLines:t},ur}var dr,Ts;function iv(){if(Ts)return dr;Ts=1;const t=ov(),{mergeAttributesWithElements:e}=rv();return dr=(r,s={})=>{const a=e(r);return t(a,s)},dr}var sv=iv();const av=$s(sv);function Pa(t,e,n=0){const{account:{url:r,displayName:s,acct:a,username:i,emojis:c,bot:l,group:h},id:d,poll:u,spoilerText:f,language:p,editedAt:m,createdAt:g,content:v,mediaAttachments:b,url:k,emojis:S}=t,C=Qt(d,e),T=(z.statusQuotes[C]||[]).filter((L,A,$)=>$.findIndex(R=>R.url===L.url)===A),E=T.length&&n<=2?T.map(L=>{const{id:A,instance:$}=L,R=Qt(A,$),W=z.statuses[R];if(W)return Pa(W,$,++n)}).join(""):"",w=new Date(g),M=xr(v,S)+` +`+E+` +`+(u?.options?.length?` +

📊:

+
    + ${u.options.map(L=>` +
  • + ${L.title} + ${L.votesCount>=0?` (${L.votesCount})`:""} +
  • + `).join("")} +
`:"")+(b.length>0?` +`+b.map(L=>{const{description:A,meta:$,previewRemoteUrl:R,previewUrl:W,remoteUrl:B,url:Y,type:et}=L,{original:ct={},small:nt}=$||{},Z=nt?.width||ct?.width,st=nt?.height||ct?.height,J=B||Y,Tt=R||W,Lt=Tt||J,$t=J?URL.parse(J):null,dt=et==="unknown"&&$t&&/\.(mp4|m4r|m4v|mov|webm)$/i.test($t.pathname),le=et==="unknown"&&$t&&/\.(mp3|ogg|wav|m4a|m4p|m4b)$/i.test($t.pathname),ne=et==="image"||et==="unknown"&&Tt&&!dt&&!le,oe=et==="gifv"||et==="video"||dt,K=et==="audio"||le;let mt="";return ne?mt=`${A}`:oe?mt=` + + ${A?`
${A}
`:""} + `:K?mt=` + + ${A?`
${A}
`:""} + `:mt=` + 📄 ${A||J} + `,`
${mt}
`}).join(` +`):""),P=` +
+ ${f?` +
+ ${f} + ${M} +
+ `:M} + +
+ `;return av(P)}function cv({post:t,instance:e,onClose:n}){const{_:r}=Kt(),{account:{url:s,displayName:a,username:i,emojis:c,bot:l,group:h},id:d,poll:u,spoilerText:f,language:p,editedAt:m,createdAt:g,content:v,mediaAttachments:b,url:k,emojis:S}=t,C=Pa(t,e);return o("div",{id:"embed-post",class:"sheet",children:[!!n&&o("button",{type:"button",class:"sheet-close",onClick:n,children:o(I,{icon:"x",alt:r({id:"yz7wBu"})})}),o("header",{children:o("h2",{children:o(x,{id:"jdVwsS"})})}),o("main",{tabIndex:"-1",children:[o("h3",{children:o(x,{id:"GkS6YG"})}),o("textarea",{class:"embed-code",readonly:!0,onClick:_=>{_.target.select()},dir:"auto",children:C}),o("button",{type:"button",onClick:()=>{try{navigator.clipboard.writeText(C),ht(r({id:"bl7nrg"}))}catch{ht(r({id:"/KEBaP"}))}},children:[o(I,{icon:"clipboard"})," ",o("span",{children:o(x,{id:"he3ygx"})})]}),!!b?.length&&o("section",{children:[o("p",{children:o(x,{id:"/2mUza"})}),o("ol",{class:"links-list",children:b.map(_=>o("li",{children:o("a",{href:_.remoteUrl||_.url,target:"_blank",download:!0,children:_.remoteUrl||_.url})},_.id))})]}),!!c?.length&&o("section",{children:[o("p",{children:o(x,{id:"AeM/di"})}),o("ul",{children:c.map(_=>o("li",{children:[o("picture",{children:[o("source",{srcset:_.staticUrl,media:"(prefers-reduced-motion: reduce)"}),o("img",{class:"shortcode-emoji emoji",src:_.url,alt:`:${_.shortcode}:`,width:"16",height:"16",loading:"lazy",decoding:"async"})]})," ",o("code",{children:[":",_.shortcode,":"]})," (",o("a",{href:_.url,target:"_blank",download:!0,children:"URL"}),")",_.staticUrl?o(F,{children:[" ","(",o("a",{href:_.staticUrl,target:"_blank",download:!0,children:o(x,{id:"xiropL"})}),")"]}):null]},_.shortcode))})]}),!!S?.length&&o("section",{children:[o("p",{children:o(x,{id:"jzjjJh"})}),o("ul",{children:S.map(_=>o("li",{children:[o("picture",{children:[o("source",{srcset:_.staticUrl,media:"(prefers-reduced-motion: reduce)"}),o("img",{class:"shortcode-emoji emoji",src:_.url,alt:`:${_.shortcode}:`,width:"16",height:"16",loading:"lazy",decoding:"async"})]})," ",o("code",{children:[":",_.shortcode,":"]})," (",o("a",{href:_.url,target:"_blank",download:!0,children:"URL"}),")",_.staticUrl?o(F,{children:[" ","(",o("a",{href:_.staticUrl,target:"_blank",download:!0,children:o(x,{id:"xiropL"})}),")"]}):null]},_.shortcode))})]}),o("section",{children:o("small",{children:[o("p",{children:o(x,{id:"TnJgwX"})}),o("ul",{children:[o("li",{children:o(x,{id:"0OHPem"})}),o("li",{children:o(x,{id:"AzZ5zv"})}),o("li",{children:o(x,{id:"NU7wa/"})}),o("li",{children:o(x,{id:"R4PmPA"})})]})]})}),o("h3",{children:o(x,{id:"rdUucN"})}),o("output",{class:"embed-preview",dangerouslySetInnerHTML:{__html:C},dir:"auto"}),o("p",{children:o("small",{children:o(x,{id:"j0kZfi"})})})]})]})}function lv({onClose:t,post:e,currentPolicy:n}){const{_:r}=Kt(),{masto:s}=Ve(),[a,i]=H("default"),[c,l]=H(n||"public"),h=async d=>{d.preventDefault();const f=new FormData(d.target).get("quoteApprovalPolicy");l(f),i("loading");try{await s.v1.statuses.$select(e.id).interactionPolicy.update({quote_approval_policy:f}),t(!0),ht(r({id:"3P1r1z"})),i("default")}catch{ht(r({id:"hEe3YR"})),i("error")}};return o("div",{class:"sheet",id:"quote-settings-container",children:[!!t&&o("button",{type:"button",class:"sheet-close",onClick:t,disabled:a==="loading",children:o(I,{icon:"x",alt:r({id:"yz7wBu"})})}),o("header",{children:o("h2",{children:o(x,{id:"UWSCwN"})})}),o("main",{children:[!!e&&o("div",{class:"post-preview",children:o(Ra,{status:e,size:"s",readOnly:!0})}),o("form",{onSubmit:h,children:[o("select",{value:c,name:"quoteApprovalPolicy",disabled:a==="loading",children:[o("option",{value:"public",children:o(x,{id:"hDWXuG"})}),o("option",{value:"followers",children:o(x,{id:"9Ko+Xp"})}),o("option",{value:"nobody",children:o(x,{id:"+bAQ3S"})})]})," ",o("button",{disabled:a==="loading",children:o(x,{id:"tfDRzk"})})]})]})]})}const Ss=20;function uv({statusId:t,instance:e,onClose:n=()=>{}}){const{_:r}=Kt(),{masto:s}=Ve(),[a,i]=H([]),[c,l]=H("default"),[h,d]=H(!1),u=N(),f=N(!0),p=(m=!1)=>{(m||!u.current)&&(u.current=s.v1.statuses.$select(t).quotes.list({limit:Ss}).values()),l("loading"),(async()=>{try{let{done:g,value:v}=await u.current.next();Array.isArray(v)?(i(m?v:b=>[...b,...v]),v.length{p(!0),f.current=!1},[t]),o("div",{id:"quotes-modal",class:"sheet",tabindex:"-1",children:[n&&o("button",{type:"button",class:"sheet-close",onClick:n,children:o(I,{icon:"x",alt:r({id:"yz7wBu"})})}),o("header",{children:o("h2",{children:o(x,{id:"eWLklq"})})}),o("main",{children:a.length>0?o(F,{children:[o("ul",{class:"quoted-posts-list",children:a.map(m=>o("li",{class:"quoted-post-item",children:o(Ze,{to:e?`/${e}/s/${m.id}`:`/s/${m.id}`,class:"status-link",onContextMenu:g=>{const v=g.target.querySelector(".status");if(v){if(g.metaKey)return;g.preventDefault(),v.dispatchEvent(new MouseEvent("contextmenu",{clientX:g.clientX,clientY:g.clientY}))}},children:o(Ra,{status:m,instance:e,size:"s",readOnly:!0,showCommentCount:!0})})},m.id))}),c==="default"?h?o("button",{type:"button",class:"plain block",onClick:()=>p(),children:o(x,{id:"uXRAkV"})}):o("p",{class:"ui-state insignificant",children:o(x,{id:"2EYeAZ"})}):c==="loading"&&o("p",{class:"ui-state",children:o(bo,{abrupt:!0})})]}):c==="loading"?o("p",{class:"ui-state",children:o(bo,{abrupt:!0})}):c==="error"?o("p",{class:"ui-state",children:o(x,{id:"3Uoj83"})}):o("p",{class:"ui-state insignificant",children:o(x,{id:"/Xg6f6"})})})]})}const He=Re((t,e)=>{let{checked:n,count:r,extraCount:s,class:a,title:i,alt:c,size:l,icon:h,iconSize:d="l",onClick:u,...f}=t;typeof i=="string"&&(i=[i,i]),typeof c=="string"&&(c=[c,c]);const[p,m]=H(i[0]||""),[g,v]=H(c[0]||"");return q(()=>{n?(m(i[1]||""),v(c[1]||"")):(m(i[0]||""),v(c[0]||""))},[n,i,c]),o("button",{ref:e,type:"button",title:p,class:`plain ${l?"small":""} ${a} ${n?"checked":""}`,onClick:b=>{u&&(b.preventDefault(),b.stopPropagation(),u(b))},...f,children:[o(I,{icon:h,size:d,alt:g}),(!!r||!!s)&&o(F,{children:[" ",!!r&&o("small",{title:r,children:ae(r)}),!!r&&!!s&&o("small",{children:"+"}),!!s&&o("small",{title:s,children:ae(s)})]})]})});class Ut extends HTMLElement{constructor(){super(),this.isIframeLoaded=!1,this.isPlaylistThumbnailLoaded=!1,this.setupDom()}static get observedAttributes(){return["videoid","playlistid","videoplay","videotitle"]}connectedCallback(){this.addEventListener("pointerover",()=>Ut.warmConnections(this),{once:!0}),this.addEventListener("click",()=>this.addIframe())}get videoId(){return encodeURIComponent(this.getAttribute("videoid")||"")}set videoId(e){this.setAttribute("videoid",e)}get playlistId(){return encodeURIComponent(this.getAttribute("playlistid")||"")}set playlistId(e){this.setAttribute("playlistid",e)}get videoTitle(){return this.getAttribute("videotitle")||"Video"}set videoTitle(e){this.setAttribute("videotitle",e)}get videoPlay(){return this.getAttribute("videoplay")||"Play"}set videoPlay(e){this.setAttribute("videoplay",e)}get videoStartAt(){return this.getAttribute("videoStartAt")||"0"}get autoLoad(){return this.hasAttribute("autoload")}get autoPause(){return this.hasAttribute("autopause")}get noCookie(){return this.hasAttribute("nocookie")}get posterQuality(){return this.getAttribute("posterquality")||"hqdefault"}get posterLoading(){return this.getAttribute("posterloading")||"lazy"}get params(){return`start=${this.videoStartAt}&${this.getAttribute("params")}`}set params(e){this.setAttribute("params",e)}set posterQuality(e){this.setAttribute("posterquality",e)}get disableNoscript(){return this.hasAttribute("disablenoscript")}setupDom(){const e=this.attachShadow({mode:"open"});let n="";window.liteYouTubeNonce&&(n=`nonce="${window.liteYouTubeNonce}"`),e.innerHTML=` + +
+ + + + + + + + +
+ `,this.domRefFrame=e.querySelector("#frame"),this.domRefImg={fallback:e.querySelector("#fallbackPlaceholder"),webp:e.querySelector("#webpPlaceholder"),jpeg:e.querySelector("#jpegPlaceholder")},this.domRefPlayButton=e.querySelector("#playButton")}setupComponent(){this.shadowRoot.querySelector("slot[name=image]").assignedNodes().length===0&&this.initImagePlaceholder(),this.domRefPlayButton.setAttribute("aria-label",`${this.videoPlay}: ${this.videoTitle}`),this.setAttribute("title",`${this.videoPlay}: ${this.videoTitle}`),(this.autoLoad||this.isYouTubeShort()||this.autoPause)&&this.initIntersectionObserver(),this.disableNoscript||this.injectSearchNoScript()}attributeChangedCallback(e,n,r){n!==r&&(e==="playlistid"&&n!==null&&n!==r&&(this.isPlaylistThumbnailLoaded=!1),this.setupComponent(),this.domRefFrame.classList.contains("activated")&&(this.domRefFrame.classList.remove("activated"),this.shadowRoot.querySelector("iframe").remove(),this.isIframeLoaded=!1))}injectSearchNoScript(){const e=document.createElement("noscript");this.prepend(e),e.innerHTML=this.generateIframe()}generateIframe(e=!1){let n=e?0:1,r=this.autoPause?"&enablejsapi=1":"";const s=this.noCookie?"-nocookie":"";let a;return this.playlistId?a=`?listType=playlist&list=${this.playlistId}&`:a=`${this.videoId}?`,this.isYouTubeShort()&&(this.params=`loop=1&mute=1&modestbranding=1&playsinline=1&rel=0&enablejsapi=1&playlist=${this.videoId}`,n=1),` +`}addIframe(e=!1){if(!this.isIframeLoaded){const n=this.generateIframe(e);this.domRefFrame.insertAdjacentHTML("beforeend",n),this.domRefFrame.classList.add("activated"),this.isIframeLoaded=!0,this.attemptShortAutoPlay(),this.dispatchEvent(new CustomEvent("liteYoutubeIframeLoaded",{detail:{videoId:this.videoId},bubbles:!0,cancelable:!0}))}}initImagePlaceholder(){this.playlistId&&!this.videoId?this.loadPlaylistThumbnail():this.testPosterImage(),this.domRefImg.fallback.setAttribute("aria-label",`${this.videoPlay}: ${this.videoTitle}`),this.domRefImg?.fallback?.setAttribute("alt",`${this.videoPlay}: ${this.videoTitle}`)}async loadPlaylistThumbnail(){if(!this.isPlaylistThumbnailLoaded){this.isPlaylistThumbnailLoaded=!0;try{const e=`https://www.youtube.com/oembed?url=https://www.youtube.com/playlist?list=${this.playlistId}&format=json`,n=await fetch(e);if(!n.ok)throw new Error(`Failed to fetch playlist thumbnail: ${n.status}`);const r=await n.json();if(r.thumbnail_url){const s=r.thumbnail_url,a=s.match(/\/vi\/([^\/]+)\//);if(a){const i=a[1];this.loadThumbnailImages(i)}else this.domRefImg.fallback.src=s,this.domRefImg.fallback.loading=this.posterLoading}}catch(e){console.warn("Failed to load playlist thumbnail:",e)}}}loadThumbnailImages(e){const n=`https://i.ytimg.com/vi_webp/${e}/${this.posterQuality}.webp`;this.domRefImg.webp.srcset=n;const r=`https://i.ytimg.com/vi/${e}/${this.posterQuality}.jpg`;this.domRefImg.jpeg.srcset=r,this.domRefImg.fallback.src=r,this.domRefImg.fallback.loading=this.posterLoading}async testPosterImage(){setTimeout(()=>{const e=`https://i.ytimg.com/vi_webp/${this.videoId}/${this.posterQuality}.webp`,n=new Image;n.fetchPriority="low",n.referrerPolicy="origin",n.src=e,n.onload=async r=>{const s=r.target;s?.naturalHeight==90&&s?.naturalWidth==120&&(this.posterQuality="hqdefault"),this.loadThumbnailImages(this.videoId)}},100)}initIntersectionObserver(){const e={root:null,rootMargin:"0px",threshold:0};new IntersectionObserver((r,s)=>{r.forEach(a=>{a.isIntersecting&&!this.isIframeLoaded&&(Ut.warmConnections(this),this.addIframe(!0),s.unobserve(this))})},e).observe(this),this.autoPause&&new IntersectionObserver((s,a)=>{s.forEach(i=>{i.intersectionRatio!==1&&this.shadowRoot.querySelector("iframe")?.contentWindow?.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")})},{threshold:1}).observe(this)}attemptShortAutoPlay(){this.isYouTubeShort()&&setTimeout(()=>{this.shadowRoot.querySelector("iframe")?.contentWindow?.postMessage('{"event":"command","func":"playVideo","args":""}',"*")},2e3)}isYouTubeShort(){return this.getAttribute("short")===""&&window.matchMedia("(max-width: 40em)").matches}static addPrefetch(e,n){const r=document.createElement("link");r.rel=e,r.href=n,r.crossOrigin="true",document.head.append(r)}static warmConnections(e){Ut.isPreconnected||window.liteYouTubeIsPreconnected||(Ut.addPrefetch("preconnect","https://i.ytimg.com/"),Ut.addPrefetch("preconnect","https://s.ytimg.com"),e.noCookie?Ut.addPrefetch("preconnect","https://www.youtube-nocookie.com"):(Ut.addPrefetch("preconnect","https://www.youtube.com"),Ut.addPrefetch("preconnect","https://www.google.com"),Ut.addPrefetch("preconnect","https://googleads.g.doubleclick.net"),Ut.addPrefetch("preconnect","https://static.doubleclick.net")),Ut.isPreconnected=!0,window.liteYouTubeIsPreconnected=!0)}}Ut.isPreconnected=!1;customElements.define("lite-youtube",Ut);function dv({authors:t,hidden:e,children:n}){if(e||!t?.[0]?.account?.id)return n;const r=t[0].account;return o("div",{class:"card-byline",children:[n,o("div",{class:"card-byline-author",children:[o(I,{icon:"link",size:"s"})," ",o("small",{children:o(x,{id:"4LHHK6",components:{0:o(Pe,{account:r,showAvatar:!0})}})})]})]})}function Cs(t){return["x.com","twitter.com","threads.net","bsky.app","bsky.brid.gy","fed.brid.gy"].includes(t)}function hv({card:t,selfReferential:e,selfAuthor:n,instance:r}){const s=Ge(z),{blurhash:a,title:i,description:c,html:l,providerName:h,providerUrl:d,authorName:u,authorUrl:f,width:p,height:m,image:g,imageDescription:v,url:b,type:k,embedUrl:S,language:C,publishedAt:_,authors:T}=t,E=i||h||u,M=p/m>=1.2?"large":"",[P,L]=H(null);if(q(()=>{if(!E||!g||e||!Ic(b))return;const B=new AbortController;return Lc(r,b,B.signal).then(Y=>{if(!Y)return;const{id:et,url:ct}=Y;L("#"+ct)}),()=>{B.abort()}},[E,g,e]),s.unfurledLinks[b])return null;const A=/`;\n }\n addIframe(isIntersectionObserver = false) {\n if (!this.isIframeLoaded) {\n const iframeHTML = this.generateIframe(isIntersectionObserver);\n this.domRefFrame.insertAdjacentHTML('beforeend', iframeHTML);\n this.domRefFrame.classList.add('activated');\n this.isIframeLoaded = true;\n this.attemptShortAutoPlay();\n this.dispatchEvent(new CustomEvent('liteYoutubeIframeLoaded', {\n detail: {\n videoId: this.videoId,\n },\n bubbles: true,\n cancelable: true,\n }));\n }\n }\n initImagePlaceholder() {\n if (this.playlistId && !this.videoId) {\n this.loadPlaylistThumbnail();\n }\n else {\n this.testPosterImage();\n }\n this.domRefImg.fallback.setAttribute('aria-label', `${this.videoPlay}: ${this.videoTitle}`);\n this.domRefImg?.fallback?.setAttribute('alt', `${this.videoPlay}: ${this.videoTitle}`);\n }\n async loadPlaylistThumbnail() {\n if (this.isPlaylistThumbnailLoaded) {\n return;\n }\n this.isPlaylistThumbnailLoaded = true;\n try {\n const oEmbedUrl = `https://www.youtube.com/oembed?url=https://www.youtube.com/playlist?list=${this.playlistId}&format=json`;\n const response = await fetch(oEmbedUrl);\n if (!response.ok) {\n throw new Error(`Failed to fetch playlist thumbnail: ${response.status}`);\n }\n const data = await response.json();\n if (data.thumbnail_url) {\n const thumbnailUrl = data.thumbnail_url;\n const videoIdMatch = thumbnailUrl.match(/\\/vi\\/([^\\/]+)\\//);\n if (videoIdMatch) {\n const extractedVideoId = videoIdMatch[1];\n this.loadThumbnailImages(extractedVideoId);\n }\n else {\n this.domRefImg.fallback.src = thumbnailUrl;\n this.domRefImg.fallback.loading = this.posterLoading;\n }\n }\n }\n catch (error) {\n console.warn('Failed to load playlist thumbnail:', error);\n }\n }\n loadThumbnailImages(videoId) {\n const posterUrlWebp = `https://i.ytimg.com/vi_webp/${videoId}/${this.posterQuality}.webp`;\n this.domRefImg.webp.srcset = posterUrlWebp;\n const posterUrlJpeg = `https://i.ytimg.com/vi/${videoId}/${this.posterQuality}.jpg`;\n this.domRefImg.jpeg.srcset = posterUrlJpeg;\n this.domRefImg.fallback.src = posterUrlJpeg;\n this.domRefImg.fallback.loading = this.posterLoading;\n }\n async testPosterImage() {\n setTimeout(() => {\n const webpUrl = `https://i.ytimg.com/vi_webp/${this.videoId}/${this.posterQuality}.webp`;\n const img = new Image();\n img.fetchPriority = 'low';\n img.referrerPolicy = 'origin';\n img.src = webpUrl;\n img.onload = async (e) => {\n const target = e.target;\n const noPoster = target?.naturalHeight == 90 && target?.naturalWidth == 120;\n if (noPoster) {\n this.posterQuality = 'hqdefault';\n }\n this.loadThumbnailImages(this.videoId);\n };\n }, 100);\n }\n initIntersectionObserver() {\n const options = {\n root: null,\n rootMargin: '0px',\n threshold: 0,\n };\n const observer = new IntersectionObserver((entries, observer) => {\n entries.forEach(entry => {\n if (entry.isIntersecting && !this.isIframeLoaded) {\n LiteYTEmbed.warmConnections(this);\n this.addIframe(true);\n observer.unobserve(this);\n }\n });\n }, options);\n observer.observe(this);\n if (this.autoPause) {\n const windowPause = new IntersectionObserver((e, o) => {\n e.forEach(entry => {\n if (entry.intersectionRatio !== 1) {\n this.shadowRoot\n .querySelector('iframe')\n ?.contentWindow?.postMessage('{\"event\":\"command\",\"func\":\"pauseVideo\",\"args\":\"\"}', '*');\n }\n });\n }, { threshold: 1 });\n windowPause.observe(this);\n }\n }\n attemptShortAutoPlay() {\n if (this.isYouTubeShort()) {\n setTimeout(() => {\n this.shadowRoot\n .querySelector('iframe')\n ?.contentWindow?.postMessage('{\"event\":\"command\",\"func\":\"' + 'playVideo' + '\",\"args\":\"\"}', '*');\n }, 2000);\n }\n }\n isYouTubeShort() {\n return (this.getAttribute('short') === '' &&\n window.matchMedia('(max-width: 40em)').matches);\n }\n static addPrefetch(kind, url) {\n const linkElem = document.createElement('link');\n linkElem.rel = kind;\n linkElem.href = url;\n linkElem.crossOrigin = 'true';\n document.head.append(linkElem);\n }\n static warmConnections(context) {\n if (LiteYTEmbed.isPreconnected || window.liteYouTubeIsPreconnected)\n return;\n LiteYTEmbed.addPrefetch('preconnect', 'https://i.ytimg.com/');\n LiteYTEmbed.addPrefetch('preconnect', 'https://s.ytimg.com');\n if (!context.noCookie) {\n LiteYTEmbed.addPrefetch('preconnect', 'https://www.youtube.com');\n LiteYTEmbed.addPrefetch('preconnect', 'https://www.google.com');\n LiteYTEmbed.addPrefetch('preconnect', 'https://googleads.g.doubleclick.net');\n LiteYTEmbed.addPrefetch('preconnect', 'https://static.doubleclick.net');\n }\n else {\n LiteYTEmbed.addPrefetch('preconnect', 'https://www.youtube-nocookie.com');\n }\n LiteYTEmbed.isPreconnected = true;\n window.liteYouTubeIsPreconnected = true;\n }\n}\nLiteYTEmbed.isPreconnected = false;\ncustomElements.define('lite-youtube', LiteYTEmbed);\n//# sourceMappingURL=lite-youtube.js.map","import { Trans } from '@lingui/react/macro';\n\nimport Icon from './icon';\nimport NameText from './name-text';\n\nfunction Byline({ authors, hidden, children }) {\n if (hidden) return children;\n if (!authors?.[0]?.account?.id) return children;\n const author = authors[0].account;\n\n return (\n \n );\n}\n\nexport default Byline;\n","import '@justinribeiro/lite-youtube';\n\nimport { decodeBlurHash, getBlurHashAverageColor } from 'fast-blurhash';\nimport { useCallback, useEffect, useState } from 'preact/hooks';\nimport { useSnapshot } from 'valtio';\n\nimport getDomain from '../utils/get-domain';\nimport isMastodonLinkMaybe from '../utils/isMastodonLinkMaybe';\nimport states from '../utils/states';\nimport unfurlMastodonLink from '../utils/unfurl-link';\n\nimport Byline from './byline';\nimport Icon from './icon';\nimport RelativeTime from './relative-time';\n\n// \"Post\": Quote post + card link preview combo\n// Assume all links from these domains are \"posts\"\n// Mastodon links are \"posts\" too but they are converted to real quote posts and there's too many domains to check\n// This is just \"Progressive Enhancement\"\nfunction isCardPost(domain) {\n return [\n 'x.com',\n 'twitter.com',\n 'threads.net',\n 'bsky.app',\n 'bsky.brid.gy',\n 'fed.brid.gy',\n ].includes(domain);\n}\n\nfunction StatusCard({ card, selfReferential, selfAuthor, instance }) {\n const snapStates = useSnapshot(states);\n const {\n blurhash,\n title,\n description,\n html,\n providerName,\n providerUrl,\n authorName,\n authorUrl,\n width,\n height,\n image,\n imageDescription,\n url,\n type,\n embedUrl,\n language,\n publishedAt,\n authors,\n } = card;\n\n /* type\n link = Link OEmbed\n photo = Photo OEmbed\n video = Video OEmbed\n rich = iframe OEmbed. Not currently accepted, so won't show up in practice.\n */\n\n const hasText = title || providerName || authorName;\n const isLandscape = width / height >= 1.2;\n const size = isLandscape ? 'large' : '';\n\n const [cardStatusURL, setCardStatusURL] = useState(null);\n // const [cardStatusID, setCardStatusID] = useState(null);\n useEffect(() => {\n if (!hasText || !image || selfReferential || !isMastodonLinkMaybe(url)) {\n return;\n }\n\n const abortController = new AbortController();\n unfurlMastodonLink(instance, url, abortController.signal).then((result) => {\n if (!result) return;\n const { id, url } = result;\n setCardStatusURL('#' + url);\n\n // NOTE: This is for quote post\n // (async () => {\n // const { masto } = api({ instance });\n // const status = await masto.v1.statuses.$select(id).fetch();\n // saveStatus(status, instance);\n // setCardStatusID(id);\n // })();\n });\n\n return () => {\n abortController.abort();\n };\n }, [hasText, image, selfReferential]);\n\n // if (cardStatusID) {\n // return (\n // \n // );\n // }\n\n if (snapStates.unfurledLinks[url]) return null;\n\n const hasIframeHTML = /