diff --git a/_headers b/_headers index c363c28..6d760c5 100644 --- a/_headers +++ b/_headers @@ -1,2 +1,2 @@ / - Link: ; rel=preload; as=style \ No newline at end of file + Link: ; rel=preload; as=style \ No newline at end of file diff --git a/assets/ICONS-BJuc0WJ2.js b/assets/ICONS-BJuc0WJ2.js new file mode 100644 index 0000000..89e9e2c --- /dev/null +++ b/assets/ICONS-BJuc0WJ2.js @@ -0,0 +1,2 @@ +import{J as r}from"./pwa-viewport-Bz1GOnQv.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-fill-PIOLqduK.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),qrcode:()=>r(()=>import("./icons/qrcode-2-line-BElsm5FW.js"),[],import.meta.url),scan:()=>r(()=>import("./icons/scan-line-BRdmgVYf.js"),[],import.meta.url)};export{t as ICONS}; +//# sourceMappingURL=ICONS-BJuc0WJ2.js.map diff --git a/assets/ICONS-BJuc0WJ2.js.map b/assets/ICONS-BJuc0WJ2.js.map new file mode 100644 index 0000000..eb82cf3 --- /dev/null +++ b/assets/ICONS-BJuc0WJ2.js.map @@ -0,0 +1 @@ +{"version":3,"mappings":"+CAAO,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,sBACxEC,OAAQA,UAAM,OAAO,mCAAuC,sBAC5DC,KAAMA,UAAM,OAAO,+BAAmC,qBACxD","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","qrcode","scan"],"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-fill'),\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 qrcode: () => import('@iconify-icons/mingcute/qrcode-2-line'),\n scan: () => import('@iconify-icons/mingcute/scan-line'),\n};\n"],"file":"ICONS-BJuc0WJ2.js"} \ No newline at end of file diff --git a/assets/ScheduledAtField-Dw49_KZ-.js b/assets/ScheduledAtField-Dw49_KZ-.js new file mode 100644 index 0000000..2b5e510 --- /dev/null +++ b/assets/ScheduledAtField-Dw49_KZ-.js @@ -0,0 +1,194 @@ +import{at as ce,Z as It,e as r,d as H,q as yt,A as N,_ as ke,y as q,N as Os,au as gc,m as it,W as Re,h as jo,av as vc,aw as gr,ax as yc,ay as Fs,Y as Bs,k as F,M as $e,l as go,a0 as Wt,I as vr,G as Lt,s as z,az as bc,aA as Li,w as wc,aB as _c,aC as Uo,g as qo,F as vo,u as Kt,a as Ze,a3 as kc,K as Tc,aD as Sc,aE as Pi,T as x,aF as zs,aG as Cc,aH as Ec,p as Er,z as yr,J as Hs,aI as Ac,aJ as Bt,aK as xc,aL as Mc,aM as Jn,c as Ge,S as Qt,b as ye,aN as Ic,aO as Lc,a4 as Ks,aP as Wo,aQ as Pc,t as Dc,x as Rc}from"./pwa-viewport-Bz1GOnQv.js";import{ICONS as $c}from"./ICONS-BJuc0WJ2.js";const js=["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 Us(t){return js.includes(t)}function qr(t,e=","){return t.toLowerCase().split(e)}function Wr(t,e="+",n=">",o=!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:o},l=a.filter(h=>!js.includes(h));return{...c,keys:l,description:s,isSequence:i,hotkey:t}}typeof document<"u"&&(document.addEventListener("keydown",t=>{t.code!==void 0&&qs([De(t.code)])}),document.addEventListener("keyup",t=>{t.code!==void 0&&Ws([De(t.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{be.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{be.clear()},0)}));const be=new Set;function Zo(t){return Array.isArray(t)}function Oc(t,e=","){return(Zo(t)?t:t.split(e)).every(n=>be.has(n.trim().toLowerCase()))}function qs(t){const e=Array.isArray(t)?t:[t];be.has("meta")&&be.forEach(n=>!Us(n)&&be.delete(n.toLowerCase())),e.forEach(n=>be.add(n.toLowerCase()))}function Ws(t){const e=Array.isArray(t)?t:[t];t==="meta"?be.clear():e.forEach(n=>be.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 Zs(t,zc)}function Zs(t,e=!1){const{target:n,composed:o}=t;let s,a;return Kc(n)&&o?(s=t.composedPath()[0]&&t.composedPath()[0].tagName,a=t.composedPath()[0]&&t.composedPath()[0].role):(s=n&&n.tagName,a=n&&n.role),Zo(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:o,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(o!==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 Vs(t,e){return t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(t).length===Object.keys(e).length&&Object.keys(t).reduce((n,o)=>n&&Vs(t[o],e[o]),!0):t===e}const Zc=ce({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),Vc=()=>It(Zc);function Gc(t){const e=N(void 0);return Vs(e.current,t)||(e.current=t),e.current}const Di=t=>{t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},Yc=typeof window<"u"?ke:q;function Ke(t,e,n,o){const s=N(null),a=N(!1),i=Array.isArray(n)?Array.isArray(o)?void 0:o:n,c=Zo(t)?t.join(i?.delimiter):t,l=Array.isArray(n)?n:Array.isArray(o)?o:void 0,h=yt(e,l??[]),d=N(h);l?d.current=h:d.current=e;const u=Gc(i),{activeScopes:f}=Vc(),p=Wc();return Yc(()=>{if(u?.enabled===!1||!jc(f,u?.scopes))return;let m=[],g;const v=(C,_=!1)=>{if(!(Hc(C)&&!Zs(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)){Di(C);return}}C.target?.isContentEditable&&!u?.enableOnContentEditable||qr(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=Wr(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(Us(w.toLowerCase()))return;m.push(w);const I=E.keys?.[m.length-1];if(w!==I){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)){Di(C);return}d.current(C,E),_||(a.current=!0)}})}},b=C=>{C.code!==void 0&&(qs(De(C.code)),(u?.keydown===void 0&&u?.keyup!==!0||u?.keydown)&&v(C))},k=C=>{C.code!==void 0&&(Ws(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&&qr(c,u?.delimiter).forEach(C=>p.addHotkey(Wr(C,u?.splitKey,u?.sequenceSplitKey,u?.useKey,u?.description))),()=>{S.removeEventListener("keyup",k,i?.eventListenerOptions),S.removeEventListener("keydown",b,i?.eventListenerOptions),p&&qr(c,u?.delimiter).forEach(C=>p.removeHotkey(Wr(C,u?.splitKey,u?.sequenceSplitKey,u?.useKey,u?.description))),m=[],g&&clearTimeout(g)}},[c,u,f]),s}var fr={exports:{}};var Xc=fr.exports,Ri;function Qc(){return Ri||(Ri=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)},o="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:o,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})})(fr)),fr.exports}var Jc=Qc();const tl=Os(Jc);window._showToast=ht;function ht(t){typeof t=="string"&&(t={text:t});const{onClick:e,delay:n,...o}=t,s=tl({className:`${e||t.destination?"shiny-pill":""}`,gravity:"bottom",position:"center",...o,onClick:()=>{e?.(s)}});return n?setTimeout(()=>{s.showToast()},n):s.showToast(),s}function My(t,e,n,o){const s=N(t);q(()=>{s.current=t},[t,n]),q(()=>{!o||e===null||e===!1||s.current()},[o]),q(()=>{if(e===null||e===!1)return;const i=setInterval(()=>s.current(),e);return()=>clearInterval(i)},[e])}const Vo=t=>!!t&&t[0]==="o",yo=gc,zn=(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 o=t[n],s=e[n];typeof s=="function"&&o?t[n]=(...a)=>{s(...a),o(...a)}:t[n]=s}),t),rl=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],o=isNaN(e[1])?n:e[1];return{top:n,right:o,bottom:isNaN(e[2])?n:e[2],left:isNaN(e[3])?o:e[3]}},Zr=t=>{for(;t;){if(t=t.parentNode,!t||t===document.body||!t.parentNode)return;const{overflow:e,overflowX:n,overflowY:o}=getComputedStyle(t);if(/auto|scroll|overlay|hidden/.test(e+o+n))return t}};function Ar(t,e){return{"aria-disabled":t||void 0,tabIndex:e?0:-1}}function $i(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 o=="function"?o(n):o;return typeof i=="string"&&(i=i.trim(),i&&(a+=` ${i}`)),a},[t,e,n,o]),ol="szh-menu-container",fe="szh-menu";const il="arrow",Go="item",sl="divider",al="header",cl="group",ll="submenu";const Gs=ce(),Yo=ce({}),br=ce({}),Xo=ce({}),ul=ce({}),xr=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}),Hn=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),on=Object.freeze({FIRST:"first",LAST:"last"}),dl=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),Ni="absolute",Qo="none",Jo="menuitem",bo={preventScroll:!0};const hl=({className:t,containerRef:e,containerProps:n,children:o,isOpen:s,theming:a,transition:i,onClose:c})=>{const l=zn(i,"item");return r("div",{...hn({onKeyDown:({key:u})=>{switch(u){case zt.ESC:qt(c,{key:u,reason:Hn.CANCEL});break}},onBlur:u=>{s&&!u.currentTarget.contains(u.relatedTarget)&&qt(c,{reason:Hn.BLUR})}},n),className:pe({block:ol,modifiers:it(()=>({theme:a,itemTransition:l}),[a,l]),className:t}),style:{position:"absolute",...n?.style},ref:e,children:o})},fl=()=>{let t,e=0;return{toggle:n=>{n?e++:e--,e=Math.max(e,0)},on:(n,o,s)=>{e?t||(t=setTimeout(()=>{t=0,o()},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(bo),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)=>$i(g,v)-$i(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}},Oi=(t,e)=>Math.round(t)===e?t:e,Ys=t=>{const e=t.getBoundingClientRect();return e.width=Oi(e.width,t.offsetWidth),e.height=Oi(e.height,t.offsetHeight),e},ml=(t,e,n,o)=>{const s=Ys(e),a=t.getBoundingClientRect(),i=n===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:n.getBoundingClientRect(),c=rl(o),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:o,menuRect:s})=>{let a=n.top-o.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:o,placeLeftX:s,placeRightX:a,getLeftOverflow:i,getRightOverflow:c,confineHorizontally:l,confineVertically:h,arrowRef:d,arrow:u,direction:f,position:p})=>{let m=f,g=o;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-o.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:o,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=o;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?o:s,p=u?s:o;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"?ke:q;function Fi(t,e){typeof t=="function"?t(e):t.current=e}const fn=(t,e)=>it(()=>t?e?n=>{Fi(t,n),Fi(e,n)}:t:e,[t,e]),Bi=-9999,Xs=({ariaLabel:t,menuClassName:e,menuStyle:n,arrow:o,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:I,focusProps:P,...L})=>{const[A,$]=H({x:Bi,y:Bi}),[R,W]=H({}),[B,Y]=H(),[et,ct]=H(f),[nt]=H(fl),[V,st]=jo(X=>X+1,1),{transition:J,boundingBoxRef:Tt,boundingBoxPadding:Pt,rootMenuRef:$t,rootAnchorRef:dt,scrollNodesRef:le,reposition:ne,viewScroll:re,submenuCloseDelay:K}=It(xr),{submenuCtx:ft,reposSubmenu:Dt=v}=It(br),At=N(),Ft=N(),jt=N(!1),{hoverItem:tt,dispatch:rt,updateItems:lt}=pl(At),gt=Vo(k),Zt=zn(J,"open"),bt=zn(J,"close"),O=le.current,G=X=>{switch(X.key){case zt.HOME:rt(Et.FIRST);break;case zt.END:rt(Et.LAST);break;case zt.UP:rt(Et.DECREASE,tt);break;case zt.DOWN:rt(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,()=>{rt(Et.RESET),At.current.focus(bo)})},Mt=X=>{X.target===X.currentTarget&&nt.off()},pt=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:Zr($t.current))||window);const kt=ml(Nt,St,O.menu,Pt);let{arrowX:Oe,arrowY:pn,x:Ir,y:mt,computedDirection:mn}=wl({arrow:o,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:Lr,getBottomOverflow:te}=kt;let se,Gt;const Xe=te(mt);if(Xe>0)se=ie-Xe,Gt=Xe;else{const Ee=Lr(mt);Ee<0&&(se=ie+Ee,Gt=0-Ee,se>=0&&(mt-=Ee))}se>=0&&Y({height:se,overflowAmt:Gt})}o&&W({x:Oe,y:pn}),$({x:Ir,y:mt}),ct(mn)},[o,u,Pt,f,T,E,p,m,a,i,c,Tt,$t,O]);sn(()=>{gt&&(pt(),jt.current&&st()),jt.current=gt},[gt,pt,Dt]),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=Zr(dt&&dt.current);for(;kt&&kt!==X;)O.anchors.push(kt),kt=Zr(kt)}let St=re;if(O.anchors.length&&St==="initial"&&(St="auto"),St==="initial")return;const Nt=()=>{St==="auto"?yo(()=>pt(!0)):qt(I,{reason:Hn.SCROLL})},Ot=O.anchors.concat(re!=="initial"?X:[]);return Ot.forEach(kt=>kt.addEventListener("scroll",Nt)),()=>Ot.forEach(kt=>kt.removeEventListener("scroll",Nt))},[dt,O,gt,I,re,pt]);const xt=!!B&&B.overflowAmt>0;q(()=>{if(xt||!gt||!d)return;const X=()=>yo(pt),St=d.current;return St.addEventListener("scroll",X),()=>St.removeEventListener("scroll",X)},[gt,xt,d,pt]),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(()=>{pt(),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,pt]),q(()=>{if(!gt){rt(Et.RESET),bt||Y();return}const{position:X,alwaysUpdate:St}=_||{},Nt=()=>{X===on.FIRST?rt(Et.FIRST):X===on.LAST?rt(Et.LAST):X>=-1&&rt(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(bo),Nt())},Zt?170:100);return()=>clearTimeout(Ot)}},[gt,Zt,bt,b,_,rt]);const Rt=it(()=>({isParentOpen:gt,submenuCtx:nt,dispatch:rt,updateItems:lt}),[gt,nt,rt,lt]);let vt,Vt;B&&(g?Vt=B.overflowAmt:vt=B.height);const Z=it(()=>({reposSubmenu:V,submenuCtx:nt,overflow:m,overflowAmt:Vt,parentMenuRef:At,parentDir:et}),[V,nt,m,Vt,et]),_t=vt>=0?{maxHeight:vt,overflow:m}:void 0,Ht=it(()=>({state:k,align:u,dir:et}),[k,u,et]),oe=it(()=>({dir:et}),[et]),Jt=pe({block:fe,element:il,modifiers:oe,className:s.className}),Ce=r("ul",{role:"menu","aria-label":t,...Ar(C),...hn({onPointerEnter:ft?.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:Ni,left:A.x,top:A.y},children:[o&&r("li",{"aria-hidden":!0,...s,className:Jt,style:{display:"block",position:Ni,left:R.x,top:R.y,...s.style},ref:Ft}),r(br.Provider,{value:Z,children:r(Yo.Provider,{value:Rt,children:r(Gs.Provider,{value:tt,children:qt(w,Ht)})})})]});return l?r(hl,{...l,isOpen:gt,children:Ce}):Ce},Qs=Re(function({"aria-label":e,className:n,containerProps:o,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]),I=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:Hn.CLICK})},handleClose(L){qt(E,{key:L,reason:Hn.CLICK})}}),[v,E]);if(!T)return null;const P=r(xr.Provider,{value:w,children:r(Xo.Provider,{value:I,children:r(Xs,{...b,ariaLabel:e||"Menu",externalRef:k,containerRef:S,containerProps:{className:n,containerRef:S,containerProps:o,theming:g,transition:i,onClose:E}})})});return m===!0&&typeof document<"u"?gr(P,document.body):m?m.target?gr(P,m.target):m.stablePosition?null:P:P}),wo=0,_o=1,wr=2,_r=3,kr=4,_l=5,Js=6,kl=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],ta=t=>({_s:t,status:kl[t],isEnter:t<_r,isMounted:t!==Js,isResolved:t===wr||t>kr}),ko=t=>t?Js:_l,Tl=(t,e)=>{switch(t){case _o:case wo:return wr;case kr:case _r:return ko(e)}},Sl=t=>typeof t=="object"?[t.enter,t.exit]:[t,t],Cl=(t,e)=>setTimeout(()=>{isNaN(document.body.offsetTop)||t(e+1)},0),zi=(t,e,n,o,s)=>{clearTimeout(o.current);const a=ta(t);e(a),n.current=a,s&&s({current:a})},El=({enter:t=!0,exit:e=!0,preEnter:n,preExit:o,timeout:s,initialEntered:a,mountOnEnter:i,unmountOnExit:c,onStateChange:l}={})=>{const[h,d]=H(()=>ta(a?wr:ko(i))),u=N(h),f=N(),[p,m]=Sl(s),g=yt(()=>{const b=Tl(u.current._s,c);b&&zi(b,d,u,f,l)},[l,c]),v=yt(b=>{const k=C=>{switch(zi(C,d,u,f,l),C){case _o:p>=0&&(f.current=setTimeout(g,p));break;case kr:m>=0&&(f.current=setTimeout(g,m));break;case wo:case _r:f.current=Cl(k,C);break}},S=u.current.isEnter;typeof b!="boolean"&&(b=!S),b?!S&&k(t?n?wo:_o:wr):S&&k(e?o?_r:kr:ko(c))},[g,l,t,e,n,o,p,m,c]);return[h,v,g]};const Al=({initialOpen:t,initialMounted:e,unmountOnClose:n,transition:o,transitionTimeout:s=500,onMenuChange:a}={})=>{const i=zn(o,"open"),c=zn(o,"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]},ea=t=>{const[e,n]=Al(t),[o,s]=H(),a=(i,c)=>{s({position:i,alwaysUpdate:c}),n(!0)};return[{menuItemFocus:o,...e},n,a]},xl=(t,e)=>{const[n]=H({});return{onMouseDown:()=>{n.v=t&&t!=="closed"},onClick:o=>n.v?n.v=!1:e(!0,o)}},Ml=parseInt(yc)<19,Il=Re(function({"aria-label":e,captureFocus:n,initialOpen:o,menuButton:s,instanceRef:a,onMenuChange:i,...c},l){const[h,d,u]=ea({...c,onMenuChange:i}),{state:f}=h,p=Vo(f),m=N(null),g=xl(f,(_,T)=>u(T.detail?void 0:on.FIRST)),v=yt(_=>{d(!1),_.key&&m.current.focus()},[d]),b=_=>{switch(_.key){case zt.UP:u(on.LAST);break;case zt.DOWN:u(on.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=Fs(k,S);return Bs(a,()=>({openMenu:u,closeMenu:()=>d(!1)})),r(F,{children:[C,r(Qs,{...c,...h,"aria-label":e||(typeof k.props.children=="string"?k.props.children:"Menu"),anchorRef:m,ref:l,onClose:v})]})}),ti=(t,e)=>{const n=$e(e),o=Re((s,a)=>{const i=N(null);return r(n,{...s,itemRef:i,externalRef:a,isHovering:It(Gs)===i.current})});return o.displayName=`WithHovering(${t})`,o},na=t=>{const[e,n]=H(!1);return q(()=>{!t&&n(!1)},[t]),[e,()=>!e&&n(!0),()=>n(!1)]},ra=(t,e,n)=>{sn(()=>{if(t)return;const o=e.current;return n(o,!0),()=>{n(o)}},[t,e,n])},Ll=ti("SubMenu",function({"aria-label":e,className:n,disabled:o,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(xr),{rootMenuRef:b,submenuOpenDelay:k,submenuCloseDelay:S}=v,{parentMenuRef:C,parentDir:_,overflow:T}=It(br),{isParentOpen:E,submenuCtx:w,dispatch:I,updateItems:P}=It(Yo),L=m||T!=="visible",[A,$,R]=ea({...v,onMenuChange:c}),[W,B,Y]=na(l),{state:et}=A,ct=!!o,nt=Vo(et),V=N(null),[st]=H({v:0}),J=()=>{w.off(),st.v&&(clearTimeout(st.v),st.v=0)},Tt=(...tt)=>{J(),Pt(),!ct&&R(...tt)},Pt=()=>!l&&!ct&&I(Et.SET,d.current),$t=tt=>{Pt(),i||(st.v=setTimeout(()=>yo(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||I(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(on.FIRST)}},re=tt=>{let rt=!1;switch(tt.key){case zt.LEFT:nt&&(d.current.focus(),$(!1),rt=!0);break;case zt.RIGHT:nt||(rt=!0);break}rt&&(tt.preventDefault(),tt.stopPropagation())};ra(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]),Bs(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:ft,className:Dt,...At}=p,Ft=hn({onPointerEnter:w.off,onPointerMove:dt,onPointerLeave:le,onKeyDown:ne,onClick:()=>i!=="none"&&Tt()},At),jt=()=>{const tt=r(Xs,{...g,...A,ariaLabel:e||(typeof a=="string"?a:"Submenu"),anchorRef:d,containerRef:L?b:V,direction:s||(_==="right"||_==="left"?_:"right"),parentScrollingRef:L&&C,isDisabled:ct}),rt=b.current;return L&&rt?gr(tt,rt):tt};return r("li",{className:pe({block:fe,element:ll,className:n}),style:{position:"relative"},role:Qo,ref:V,onKeyDown:re,children:[r("div",{role:Jo,"aria-haspopup":!0,"aria-expanded":nt,...Ar(ct,l),...Ft,ref:fn(ft,d),className:pe({block:fe,element:Go,modifiers:K,className:Dt}),children:it(()=>qt(a,K),[a,K])}),et&&jt()]})}),oa=(t,e,n,o)=>{const[s,a,i]=na(n),{submenuCloseDelay:c}=It(xr),{isParentOpen:l,submenuCtx:h,dispatch:d,updateItems:u}=It(Yo),f=()=>{!n&&!o&&d(Et.SET,t.current)},p=()=>{!o&&d(Et.UNSET,t.current)},m=b=>{n&&!b.currentTarget.contains(b.relatedTarget)&&p()},g=b=>{o||(b.stopPropagation(),a(),h.on(c,f,f))},v=(b,k)=>{i(),h.off(),!k&&p()};return ra(o,t,u),q(()=>{n&&l&&e.current&&e.current.focus()},[e,n,l]),{mouseOver:s,setHover:f,onBlur:m,onPointerMove:g,onPointerLeave:v}},ut=ti("MenuItem",function({className:e,value:n,href:o,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}=oa(d,d,h,p),b=It(Xo),k=It(ul),S=s==="radio",C=s==="checkbox",_=!!o&&!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)}},I=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":Jo,"aria-checked":S||C?T:void 0,...Ar(p,h),...P,ref:fn(u,d),className:pe({block:fe,element:Go,modifiers:I,className:e}),children:it(()=>qt(c,I),[c,I])};return _?r("li",{role:Qo,children:r("a",{href:o,...L})}):r("li",{...L})}),Pl=ti("FocusableItem",function({className:e,disabled:n,children:o,isHovering:s,itemRef:a,externalRef:i,...c}){const l=!!n,h=N(null),{mouseOver:d,setHover:u,onPointerLeave:f,...p}=oa(a,h,s,l),{handleClose:m}=It(Xo),g=it(()=>({disabled:l,hover:d||s,focusable:!0}),[l,s,d]),v=it(()=>qt(o,{...g,ref:h,closeMenu:m}),[o,g,m]),b=hn({...p,onPointerLeave:k=>f(k,!0),onFocus:u},c);return r("li",{role:Jo,...Ar(l),...b,ref:fn(i,a),className:pe({block:fe,element:Go,modifiers:g,className:e}),children:v})}),Tn=$e(Re(function({className:e,...n},o){return r("li",{role:"separator",...n,ref:o,className:pe({block:fe,element:sl,className:e})})})),Iy=$e(Re(function({className:e,...n},o){return r("li",{role:Qo,...n,ref:o,className:pe({block:fe,element:al,className:e})})})),Ly=Re(function({className:e,style:n,takeOverflow:o,...s},a){const i=N(null),[c,l]=H(),{overflow:h,overflowAmt:d}=It(br);return sn(()=>{let u;o&&d>=0&&(u=Ys(i.current).height-d,u<0&&(u=0)),l(u>=0?{maxHeight:u,overflow:h}:void 0)},[o,h,d]),sn(()=>{c&&(i.current.scrollTop=0)},[c]),r("div",{...s,ref:fn(a,i),className:pe({block:fe,element:cl,className:e}),style:{...n,...c}})});var Dn=(t=>(t.Mouse="mouse",t.Touch="touch",t.Pointer="pointer",t))(Dn||{}),Rn=(t=>(t.CancelledByMovement="cancelled-by-movement",t.CancelledByRelease="cancelled-by-release",t.CancelledOutsideElement="cancelled-outside-element",t))(Rn||{});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 ia(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 Vr(t){return Ol(t)||ia(t)||Fl(t)}function Hi(t){var e;const n=ia(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 sa(t,{threshold:e=400,captureEvent:n=!1,detect:o=Dn.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||Vr(T)&&(i!==void 0&&!i(T)||(n&&T.persist(),c?.(T,{context:_}),v.current=Hi(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)=>{Vr(T)&&f.current&&(v.current=null,n&&T.persist(),u.current?h?.(T,{context:_}):f.current&&d?.(T,{context:_,reason:E??Rn.CancelledByRelease}),u.current=!1,f.current=!1,m.current!==void 0&&clearTimeout(m.current))},[n,h,d]),S=yt(_=>T=>{if(Vr(T)&&(l?.(T,{context:_}),s!==!1&&v.current)){const E=Hi(T);if(E){const w=s===!0?25:s,I={x:Math.abs(E.x-v.current.x),y:Math.abs(E.y-v.current.y)};(I.x>w||I.y>w)&&k(_)(T,Rn.CancelledByMovement)}}},[k,s,l]),C=yt(_=>{if(t===null)return{};switch(o){case Dn.Mouse:{const T={onMouseDown:b(_),onMouseMove:S(_),onMouseUp:k(_)};return a&&(T.onMouseLeave=E=>{k(_)(E,Rn.CancelledOutsideElement)}),T}case Dn.Touch:return{onTouchStart:b(_),onTouchMove:S(_),onTouchEnd:k(_)};case Dn.Pointer:{const T={onPointerDown:b(_),onPointerMove:S(_),onPointerUp:k(_)};return a&&(T.onPointerLeave=E=>k(_)(E,Rn.CancelledOutsideElement)),T}}},[t,k,a,o,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 Ki="dtflocale";function zl(){try{const t=go.session.get(Ki);if(t)return t;const e=new Intl.DateTimeFormat().resolvedOptions().locale;return go.session.set(Ki,e),e}catch{return null}}const aa=Wt(zl);function Hl(){const t=[...navigator.languages],e=aa();return e&&!t.includes(e)&&t.unshift(e),t}let ji=Hl();const Gr=Wt((t,e={})=>{try{return new Intl.Locale(t,e)}catch{if(!t)return null;const[o,...s]=t.split("-",4),a=s.pop()||null,i={language:o,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,o=Gr(t);let s=null;for(const c of ji){const l=Gr(c)?.region;if(l){s=l;break}}const a=s&&o&&o.region!==s?Gr(o.language,{...o,region:s})?.toString():null,i=vr([a,t,t?.replace(/-[a-z]+$/i,"")],ji,t);try{return new Intl.DateTimeFormat(i,n)}catch{return new Intl.DateTimeFormat(void 0,n)}},To=Wt(Kl);function Kn(t,e){t instanceof Date||(t=new Date(t));const{hideTime:n,formatOpts:o,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",...o};return To(Lt.locale,i).format(t)}function jl(t){const e=URL.parse("./compose/",window.location),{width:n,height:o}=window.screen,s=Math.max(0,(n-600)/2),a=Math.max(0,(o-450)/2),i=Math.min(n,600),c=Math.min(o,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(Lt._({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,tr=getComputedStyle(Wl),Zl=8;let ca=[0,0,0,0];function la(){const t=tr.getPropertyValue("--sai-top"),e=tr.getPropertyValue("--sai-right"),n=tr.getPropertyValue("--sai-bottom"),o=tr.getPropertyValue("--sai-left");ca=[Math.max(0,parseInt(t,10)),Math.max(0,parseInt(e,10)),Math.max(0,parseInt(n,10)),Math.max(0,parseInt(o,10))]}requestAnimationFrame(la);function ua(t=[]){return ca.map((n,o)=>(n||Zl)+(t[o]||0)).join(" ")}CSS.supports("top: env(safe-area-inset-top)")&&window.addEventListener("resize",la,{passive:!0});const Ui=5e3;function Ie(t){if(t||(t=!0),z.showCompose){z.composerState.minimized?ht({duration:Ui,text:Lt._({id:"/4fHR1"})}):ht({duration:Ui,text:Lt._({id:"vvl08N"})});return}ql(),z.showCompose=t}const qi=document.createElement("template"),Vl=/<\/p>/g,Gl=/<\/li>/g,Yl=/[\r\n]{3,}/g;function ei(t,e){if(!t)return"";const{preProcess:n,truncateLinks:o=!0}=e||{};qi.innerHTML=t.replace(Vl,`

+ +`).replace(Gl,` +`);const s=qi.content,a=s.querySelectorAll("br");for(let c=0;c{if(c){const h=l.querySelector(".quote-inline");h&&h.remove()}}}),i=i.trim(),o?.options?.length&&(i+=` + +📊: +${o.options.map(l=>`${o.multiple?"▪️":"•"} ${l.title}`).join(` +`)}`),s?.length&&(i+=" "+s.map(l=>({image:"🖼️",gifv:"🎞️",video:"📹",audio:"🎵",unknown:""})[l.type]||"").join("")),c){const l=ni(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:o,class:s="",style:a={}}){o=o||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=o?.replace(Ql,"-"),m=`${Li}-title-${t}-${p}`;q(()=>{c(t)||i(t)},[t]);const g=c(t);return r("span",{class:`icon ${s} ${f?"rtl-flip":""}`,style:{width:`${l}px`,height:`${l}px`,...a},"data-icon":t,title:g?void 0:o||void 0,children:g&&r("svg",{width:l,height:l,role:o?"img":"presentation","aria-labelledby":m,style:{transform:`${d?`rotate(${d})`:""} ${u?"scaleX(-1)":""}`},children:[o?r("title",{id:m,children:o}):null,r("use",{href:`#${Li}-${t}`})]})})}const M=$e(Jl,(t,e)=>t.icon===e.icon&&t.title===e.title&&t.alt===e.alt),Ve=Re((t,e)=>{let n;try{n=wc()}catch{}let o=(location.hash||"").replace(/^#/,"").trim();o===""&&(o="/");const{to:s,...a}=t;if(o&&o!=="/"&&o.includes("?")){const c=URL.parse(o,location.origin);if(c?.searchParams?.size){const l=Array.from(c.searchParams.entries()).map(([h,d])=>`${h}=${encodeURIComponent(d)}`).join("&");o=c.pathname+"?"+l}}const i=o===s||decodeURIComponent(o)===s;return r("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 Wi(t){const{className:e,disabled:n,...o}=t;return r(Pl,{className:e,disabled:n,children:({ref:s,closeMenu:a})=>r(Ve,{...o,ref:s,onClick:({detail:i})=>a(i===0?"Enter":void 0)})})}const da=Wt(t=>new Intl.RelativeTimeFormat(t||void 0));function Zi(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=da(Lt.locale),n=(t.getTime()-Date.now())/1e3,o=Math.abs(n);return o{const e=(Date.now()-t.getTime())/1e3;return el+1,0),s=it(()=>new Date(t),[t]),[a,i,c]=it(()=>{if(!Zi(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=To(Lt.locale,{year:void 0,month:"short",day:"numeric"}).format(s):l=To(Lt.locale,{dateStyle:"short"}).format(s)}return l||(l=tu(s)),[l,s.toISOString(),s.toLocaleString()]},[s,e,n]);return q(()=>{if(!Zi(s))return;let l,h;function d(){h=requestAnimationFrame(()=>{o(),u()})}function u(){const f=(Date.now()-s.getTime())/1e3;f{clearTimeout(l),cancelAnimationFrame(h)}},[]),r("time",{datetime:i,title:c,children:a})}function So(t){const e=N();return r(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 ru=window.CloseWatcher?nu:()=>{},ou=document.getElementById("modal-container");function Vi(){return getComputedStyle(document.documentElement).getPropertyValue("--backdrop-theme-color")}function $n({children:t,onClose:e,onClick:n,class:o,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]);ru(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();ke(()=>{if(t&&!s)if(go.local.get("theme")){const f=Vi();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=Vi();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=r("div",{ref:u=>{a.current=u,c.current=u?.querySelector?.('[tabindex="-1"]')||u},className:o,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 gr(d,ou)}const Gi={s:16,m:20,l:24,xl:32,xxl:50,xxxl:64},Sn={},Nn=window.OffscreenCanvas?new OffscreenCanvas(1,1):document.createElement("canvas"),pr=Nn.getContext("2d",{willReadFrequently:!0});pr.imageSmoothingEnabled=!1;const iu=/missing\.png$/;function su({url:t,staticUrl:e,size:n,alt:o="",squircle:s,...a}){n=Gi[n]||n||Gi.m;const i=N(),c=iu.test(t);return r("picture",{ref:i,class:`avatar ${s?"squircle":""} ${Sn[t]?"has-alpha":""}`,style:{width:n,height:n},title:o,...a,children:[!!e&&r("source",{srcset:e,media:"(prefers-reduced-motion: reduce)"}),!!t&&r("img",{src:t,width:n,height:n,alt:o,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;Nn.width!==h&&(Nn.width=h),Nn.height!==d&&(Nn.height=d),pr.drawImage(l.target,0,0);const u=pr.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,pr.clearRect(0,0,h,d)}catch{Sn[t]=!1}},1))}})]})}const _e=Wt(su);let Co=!1;const au=new MutationObserver(t=>{t.forEach(e=>{if(e.type==="attributes"){const{dir:n}=e.target;n==="rtl"?Co=!0:Co=!1}})});au.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});function Tr(){return Co}function cu(){const[t,e]=H({width:null,height:null});return ke(()=>{const n=()=>{e({width:window.innerWidth,height:window.innerHeight})};return n(),window.addEventListener("resize",n,{passive:!0}),()=>{window.removeEventListener("resize",n)}},[]),t}function Eo(t){const{containerProps:e,instanceRef:n,align:o}=t,s=cu(),a=n?.current?n:N(),i=Tr()?o==="end"?"start":o==="start"?"end":o:o;return r(Il,{boundingBoxPadding:ua(),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 er({subMenu:t=!1,confirm:e=!0,confirmLabel:n,menuItemClassName:o,menuFooter:s,menuExtras:a,...i}){const{children:c,onClick:l,...h}=i;return e?r(t?So:Eo,{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:[r(ut,{className:o,onClick:l,children:n}),a,s]}):t?r(ut,{...i}):l?_c(c,{onClick:l}):c}var ge={},Yr={},ve={},Yi;function ha(){if(Yi)return ve;Yi=1,Object.defineProperty(ve,"__esModule",{value:!0}),ve.loop=ve.conditional=ve.parse=void 0;var t=function o(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 o(s,h,i,c)});else if(typeof a=="function")a(s,i,c,o);else{var l=Object.keys(a)[0];Array.isArray(a[l])?(c[l]={},o(s,a[l],i,c[l])):c[l]=a[l](s,i,c,o)}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={},Xi;function fa(){if(Xi)return Ct;Xi=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 o=function(u){return function(f){return f.data.subarray(f.pos,f.pos+=u)}};Ct.readBytes=o;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(o(u)(f)).map(function(p){return String.fromCharCode(p)}).join("")}};Ct.readString=a;var i=function(u){return function(f){var p=o(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=o(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];I=C[g]&255,_[P++]=I,l{h.toBlob(p,"image/png")});return URL.createObjectURL(f)}catch{return null}}function Ao({staticUrl:t,alt:e,url:n}){return r("picture",{children:[t&&r("source",{srcset:t,media:"(prefers-reduced-motion: reduce)"}),r("img",{src:n,alt:e,class:"shortcode-emoji emoji",width:"16",height:"16",loading:"lazy",decoding:"async",fetchPriority:"low",onLoad:o=>{try{o.target.dataset.isLarger=o.target.naturalWidth>o.target.width*2||o.target.naturalHeight>o.target.height*2}catch{}}},e||n)]})}const pu=new Uo({concurrency:2,interval:1e3,intervalCap:2}),mu=(t,...e)=>pu.add(()=>fetch(...e),{signal:t}),rs=/(\:(\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 o=(await(await mu(null,t,{headers:{accept:"application/activity+json"},referrerPolicy:"no-referrer"})).json()).tag?.filter(a=>a.type==="Emoji")||[],s=o.length?await Promise.all(o.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 o=gu(e.map(a=>a.shortcode));return t.split(o).map((a,i)=>{const c=e.find(l=>l.shortcode===a);if(c){const{url:l,staticUrl:h}=c;return r(Ao,{staticUrl:n?void 0:h,url:n&&h||l,alt:a},`${a}-${i}`)}return a})});function un({text:t,emojis:e=[],staticEmoji:n,resolverURL:o}){const[s,a]=H(()=>Le.get(o)||[]),[i,c]=H(!1);if(q(()=>{if(!o||!t?.includes(":"))return;const h=t.match(rs);!h||!h.some(u=>{const f=u.slice(1,-1);return!e.some(p=>p.shortcode===f)})||Le.has(o)||(c(!0),(async()=>{const u=await yu(o);a(u),c(!1)})())},[o,t,e?.length]),!t)return"";if(!t.includes(":"))return t;if(o&&i)return t.replace(rs,"");const l=[...s.filter(h=>!e.some(d=>d.shortcode===h.shortcode)),...e];return bu(t,l,n)}function xo({roles:t,accountId:e,accountUrl:n,hideSelf:o=!1}){if(!t?.length)return null;const s=e&&e===qo();if(o&&s)return null;const a=vo(n);return t?.map(i=>r(F,{children:[" ",r("span",{class:"tag collapsed tag-role",children:[i.name,!!a&&r(F,{children:[" ",r("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:o,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=Ze().instance);const _=v.toLowerCase().trim(),T=(p||"").toLowerCase().trim(),E=T.replace(ku,"").replace(Tu,""),w=E.replace(Su,""),I=!s&&(_===T||_===E||_===w||wu(c.locale).compare(_,E)===0)||w===l.toLowerCase();return r("a",{class:`name-text ${o?"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&&r(F,{children:[r(_e,{url:d||h,squircle:g})," "]}),p&&!s?r(F,{children:[r("b",{dir:"auto",children:r(un,{text:p,emojis:m,resolverURL:t.url,staticEmoji:!0})}),!o&&!I&&r(F,{children:[" ",r("i",{class:"bidi-isolate",children:["@",v]}),r(xo,{roles:b,accountId:u,accountUrl:f,hideSelf:!0})]})]}):s?r("i",{children:v}):r("b",{children:v}),o&&r(F,{children:[r("br",{}),r("i",{class:"bidi-isolate",children:[C?"":"@",S,!!C&&r("span",{class:"ib",children:C})]}),r(xo,{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",Zu="Batak Simalungun",Vu="Batak Toba",Gu="Беларуская",Yu="Ichibemba",Xu="বাংলা",Qu="Betawi",Ju="भोजपुरी",td="Bikol",ed="Bosanski",nd="Brezhoneg",rd="Български",od="Буряад",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",Zd="Hausa",Vd="ʻŌlelo Hawaiʻi",Gd="עברית",Yd="Hiligaynon",Xd="हिन्दी",Qd="Hmoob",Jd="Magyar",th="Hunsrik",eh="Iban",nh="Íslenska",rh="Igbo",oh="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="मैथिली",Zh="Makassar",Vh="Malagasy",Gh="Bahasa Melayu",Yh="മലയാളം",Xh="Malti",Qh="Mam",Jh="Gaelg",tf="Te Reo Māori",ef="मराठी",nf="Kajin M̧ajeļ",rf="मारवाड़ी",of="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ŏ",Zf="سنڌي",Vf="සිංහල",Gf="Slovenčina",Yf="Slovenščina",Xf="Soomaali",Qf="Español",Jf="Basa Sunda",tp="Susu",ep="Kiswahili",np="siSwati",rp="Svenska",op="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:Zu,bbc:Vu,be:Gu,bem:Yu,bn:Xu,bew:Qu,bho:Ju,bik:td,bs:ed,br:nd,bg:rd,bua:od,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:Zd,haw:Vd,iw:Gd,hil:Yd,hi:Xd,hmn:Qd,hu:Jd,hrx:th,iba:eh,is:nh,ig:rh,ilo:oh,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:Zh,mg:Vh,ms:Gh,"ms-Arab":"بهاس ملايو",ml:Yh,mt:Xh,mam:Qh,gv:Jh,mi:tf,mr:ef,mh:nf,mwr:rf,mfe:of,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:Zf,si:Vf,sk:Gf,sl:Yf,so:Xf,es:Qf,su:Jf,sus:tp,sw:ep,ss:np,sv:rp,ty:op,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},nr={"zh-YUE":"YUE",zh_HANT:"zh-Hant"},Xr=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 o=Xr(e||Lt.locale).of(t);if(o!==t)return o;if(!n){const s=Xr(t).of(t);if(s!==t)return s;const a=Up?.[e];if(a!==t)return a}return n||""}catch{if(nr[t])try{const s=Xr(nr[e]||e||Lt.locale).of(nr[t]);return s!==nr[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"},Zp={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={},pa={sl:Wp,tl:Zp,al:Vp},Gp=Object.entries(pa.tl).map(([t,{name:e}])=>({code:t,name:e})),Mo=[...navigator.languages],Qr=aa();Qr&&!Mo.includes(Qr)&&Mo.unshift(Qr);const Yp=()=>vr(Mo,Gp.map(t=>t.code.replace("_","-")),"en");function ma(t=!1){if(t){const{contentTranslationTargetLanguage:e}=z.settings;if(e)return e}return Yp()}const os=["byte","kilobyte","megabyte","gigabyte","terabyte","petabyte"];function Py(t){const e=Math.min(Math.floor(Math.log2(t)/10),os.length-1),n=t/1024**e;return Lt.number(n,{style:"unit",unit:os[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 Io(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 rm=/[&<>"']/g,om={"&":"&","<":"<",">":">",'"':""","'":"'"};function Jr(t){return t.replace(rm,e=>om[e])}const nn=document.createElement("div"),im=["u-url","mention","hashtag"],sm=/{}}=e;let a=t;const i=ym(a,o),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=eo(i);for(const d of h){let u=Jr(d.nodeValue);u=Io(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=eo(i);for(const d of h){let u=Jr(d.nodeValue);fm.test(u)&&(u=u.replaceAll(vm,"$1")),nn.innerHTML=u,d.replaceWith(...nn.childNodes)}}if(pm.test(a)){h=eo(i,{rejectFilter:["A"]});for(const d of h){let u=Jr(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)),o?i:i.innerHTML}const ga=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:)/,to=30;function Tm(t){if(!(!t||t.querySelector?.("*")))try{const e=t.innerText.trim(),n=(e.match(km)||[])[0]||"";if(!n)return;const o=e.slice(n.length,n.length+to),s=e.slice(n.length+to),a=e.slice(n.length).length>to;t.innerHTML=`${o}`}catch{}}function eo(t,e={}){const n=[],o=Object.assign({},_m,e.rejectFilter?.reduce((i,c)=>(i[c]=!0,i),{})),s=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,{acceptNode(i){return o[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:o,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(!o){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 Lt.number(t,{notation:"compact",roundingMode:"floor"})}catch{return t}}const Em={"@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"},no=/pixelfed/i,de=/^(?!.*pixelfed).*$/i,Am=/pleroma/i,xm=/akkoma/i;const is={"@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":no,"@pixelfed/home-include-reblogs":no,"@pixelfed/global-feed":no,"@pleroma/local-visibility-post":Am,"@akkoma/local-visibility-post":xm},xn={},Mm=/^\d+\.\d+(\.\d+)?/,Im=/^@([a-z]+)\//i;function rr(t){try{let{version:e,domain:n}=Tc(),o=Sc()?.software?.name||"mastodon";o==="hometown"&&(o="mastodon");const s=`${n}-${t}`;if(xn[s])return xn[s];if(is[t])return xn[s]=is[t].test(e);const a=t.match(Im);if(!a){const d=t.replace(/^@/,"");return xn[s]=o===d}const i=Em[t];if(!i)return!1;const l=a[1]===o.toLowerCase();let h=Pi(e,i,{includePrerelease:!0,loose:!0});if(!h)try{h=Pi(e.match(Mm)?.[0],i,{includePrerelease:!0,loose:!1})}catch{}return xn[s]=l&&h}catch{return!1}}function Dy({skeleton:t,account:e,avatarSize:n="xl",useAvatarStatic:o=!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 r("div",{class:"account-block skeleton",children:[r(_e,{size:n}),r("span",{children:[r("b",{children:"████████"}),r("br",{}),r("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:I,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),V={};for(const J in f)p.includes(J)||(V[J]=f[J]);const st=V.following||V.followedBy||V.requested;return r("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:[r("div",{class:"avatar-container",children:r(_e,{url:o?k:b||k,staticUrl:o?void 0:k,size:n,squircle:I})}),r("span",{class:"account-block-content",children:[!u&&r(F,{children:S?r("b",{children:r(un,{text:S,emojis:_,resolverURL:T})}):r("b",{children:C})})," ",r("span",{class:"account-block-acct bidi-isolate",children:[ct?"":"@",et,r("wbr",{}),ct,W&&r(F,{children:[" ",r(M,{icon:"lock",size:"s",alt:m({id:"G2fuEb"})})]})]}),r(xo,{roles:B,accountUrl:T}),l&&r("div",{class:"account-block-stats",children:[r(x,{id:"ajzDof",values:{0:ae(E)}}),!!w&&r(F,{children:[" ","·"," ",r(x,{id:"f8bJ3C",values:{0:Kn(w,{hideTime:!0})}})]})]}),h&&r("div",{class:"account-block-stats",children:[I&&r(F,{children:r("span",{class:"tag collapsed",children:[r(M,{icon:"bot"})," ",r(x,{id:"9Vdq+j"})]})}),!!A&&r(F,{children:r("span",{class:"tag collapsed",children:[r(M,{icon:"group"})," ",r(x,{id:"L8fEEm"})]})}),st&&r("div",{class:"shazam-container-horizontal",children:r("div",{class:"shazam-container-inner",children:V.following&&V.followedBy?r("span",{class:"tag minimal",children:r(x,{id:"7oRLbi"})}):V.requested?r("span",{class:"tag minimal",children:r(x,{id:"Yx0Ud8"})}):V.following?r("span",{class:"tag minimal",children:r(x,{id:"y6sq5j"})}):V.followedBy?r("span",{class:"tag minimal",children:r(x,{id:"p3UO/y"})}):null})},f.id),!!$&&r("span",{class:"ib",children:r(x,{id:"Mn1E9C",values:{followersCount:$}})}),!!nt&&r("span",{class:"verified-field",children:[r(M,{icon:"check-circle",size:"s",alt:m({id:"QDEWii"})})," ",r("span",{dangerouslySetInnerHTML:{__html:ga(nt.value,{emojis:_})}})]}),!I&&!A&&!st&&!$&&!nt&&!!R&&r("span",{class:"created-at",children:r(x,{id:"PCcEFZ",values:{0:Kn(R,{hideTime:!0})},components:{0:r("time",{datetime:R})}})})]})]})]})}async function Ry(t,e={}){if(!t?.length)return;const{masto:n}=Ze(),o=qo(),s=t.reduce((a,i)=>(!a.includes(i.id)&&!e[i.id]&&i.id!==o&&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 $y(t,e){return()=>Lt.number(t,{style:"unit",unit:e,unitDisplay:"long"})}const Lm=Object.prototype.toString,Pm=t=>Lm.call(t)==="[object Error]",Dm=new Set(["network error","Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed","fetch failed","terminated"," A network error occurred.","Network connection lost"]);function Rm(t){if(!(t&&Pm(t)&&t.name==="TypeError"&&typeof t.message=="string"))return!1;const{message:n,stack:o}=t;return n==="Load failed"?o===void 0||"__sentry_captured__"in t:n.startsWith("error sending request for url")?!0:Dm.has(n)}function $m(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 or(t,e,{min:n=0,allowInfinity:o=!1}={}){if(e!==void 0){if(typeof e!="number"||Number.isNaN(e))throw new TypeError(`Expected \`${t}\` to be a number${o?" or Infinity":""}.`);if(!o&&!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 Bm(t,e={}){if(e={...e},$m(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,or("factor",e.factor,{min:0,allowInfinity:!1}),or("minTimeout",e.minTimeout,{min:0,allowInfinity:!1}),or("maxTimeout",e.maxTimeout,{min:0,allowInfinity:!0}),or("maxRetryTime",e.maxRetryTime,{min:0,allowInfinity:!0}),e.factor>0||(e.factor=1),e.signal?.throwIfAborted();let n=0,o=0;const s=performance.now();for(;!Number.isFinite(e.retries)||o<=e.retries;){n++;try{e.signal?.throwIfAborted();const a=await t(n);return e.signal?.throwIfAborted(),a}catch(a){await Fm({error:a,attemptNumber:n,retriesConsumed:o,startTime:s,options:e})&&o++}}throw new Error("Retry attempts exhausted without throwing an error.")}const va="LanguageDetector"in self,zm=va&&"Translator"in self;let We;va&&(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 Hm=async(t,e,n)=>{let o;const s=e;if(e==="auto"){if(!We?.detect)return{error:"No language detector"};try{e=(await We.detect(t))[0].detectedLanguage,o=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:o,provider:"browser"}}catch(i){return console.groupEnd(a),{error:i}}};var Km=Object.defineProperty,jm=(t,e,n)=>e in t?Km(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Mn=(t,e,n)=>jm(t,typeof e!="symbol"?e+"":e,n),Lo=new Map,ir=new WeakMap,as=0,Um;function qm(t){return t?(ir.has(t)||(as+=1,ir.set(t,as.toString())),ir.get(t)):"0"}function Wm(t){return Object.keys(t).sort().filter(e=>t[e]!==void 0).map(e=>`${e}_${e==="root"?qm(t.root):t[e]}`).toString()}function Zm(t){const e=Wm(t);let n=Lo.get(e);if(!n){const o=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=o.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:o},Lo.set(e,n)}return n}function ya(t,e,n={},o=Um){if(typeof window.IntersectionObserver>"u"&&o!==void 0){const l=t.getBoundingClientRect();return e(o,{isIntersecting:o,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}=Zm(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(),Lo.delete(s))}}function Vm(t){return typeof t.children!="function"}var Ny=class extends zs{constructor(t){super(t),Mn(this,"node",null),Mn(this,"_unobserveCb",null),Mn(this,"lastInView"),Mn(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()}),Mn(this,"handleChange",(e,n)=>{const o=this.lastInView;this.lastInView=e,!(o===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:o,delay:s,fallbackInView:a}=this.props;this.lastInView===void 0&&(this.lastInView=this.props.initialInView),this._unobserveCb=ya(this.node,this.handleChange,{threshold:t,root:e,rootMargin:n,trackVisibility:o,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:o,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 cs,ls,Gm=(ls=(cs=Ec)!=null?cs:ke)!=null?ls:q,Ym=(t,{threshold:e,root:n,rootMargin:o,trackVisibility:s,delay:a,triggerOnce:i,skip:c}={})=>{const l=N(t),h=N(null),d=N(void 0),u=N(void 0);return Gm(()=>{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=ya(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:o,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,o,s,a,i,c])};const us=48,ro={};function ba({id:t,children:e}){const n=N(),[o,s]=H(!!ro[t]),a=yt(c=>{c&&n.current&&(n.current.hidden=!1,t&&(ro[t]=!0))},[t]),i=Ym(a,{rootMargin:`-${us}px 0px 0px 0px`,trackVisibility:!0,delay:1e3,triggerOnce:!0,skip:o});return ke(()=>{if(!n.current)return;const c=n.current.getBoundingClientRect();c.bottom>us&&(c.top({code:t,name:e})),{PHANPY_TRANSLANG_INSTANCES:ds}=Xm,Po=ds?ds.split(/\s+/):[],wa=new Uo({concurrency:1,interval:2e3,intervalCap:1}),_a=1e3*60*60;let oo=0;function Jm(t,e,n){return Bm(()=>{let s=Po[oo];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=>{oo=(oo+1)%Po.length}})}const ka=Er(Jm,{maxAge:_a}),tg=Er(({signal:t,text:e,source:n,target:o})=>wa.add(()=>ka(e,n,o),{signal:t}),{maxAge:_a}),eg=({text:t,source:e,target:n,signal:o})=>wa.add(()=>Hm(t,e,n),{signal:o});function ng({forceTranslate:t,sourceLanguage:e,onTranslate:n,text:o="",mini:s,autoDetected:a}){const{_:i}=Kt(),c=ma(!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:I})=>{if(zm){const P=await eg({text:T,source:E,target:w,signal:I});if(P&&!P.error)return P}return s?await tg({signal:I,text:T,source:E,target:w}):await ka(T,E,w)});const _=async()=>{h("loading");try{const{content:T,detectedSourceLanguage:E,provider:w,error:I,...P}=await n({text:o,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()!==o.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()!==o.trim()&&m!==S?r(ba,{children:r("div",{class:"status-translation-block-mini",children:[r(M,{icon:"translate",alt:i({id:"zVJKbG",values:{sourceLangText:k}})}),r("output",{lang:c,dir:"auto",title:d||"",children:f})]})}):null:r("div",{class:"status-translation-block",onClick:T=>{T.preventDefault()},children:r("details",{ref:v,children:[r("summary",{children:r("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:[r(M,{icon:"translate"})," ",r("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"})})]})}),r("div",{class:"translated-block",children:[r("div",{class:"translation-info insignificant",children:[r("select",{class:"translated-source-select",disabled:l==="loading",onChange:T=>{C.current=T.target.value,_()},children:Qm.map(T=>{const E=An({code:T.code,fallback:T.name}),w=An({code:T.code,locale:T.code}),I=w&&E!==w;return r("option",{value:T.code,children:T.code==="auto"?i({id:"Bze3gr",values:{0:m??"…"}}):I?`${w} - ${E}`:E})})})," ",r("span",{children:["→ ",S]}),r(yr,{abrupt:!0,hidden:l!=="loading"})]}),l==="error"?r("p",{class:"ui-state",children:r(x,{id:"m5LihO"})}):!!f&&r(F,{children:[r("output",{class:"translated-content",lang:c,dir:"auto",children:f}),!!d&&r("output",{class:"translated-pronunciation-content",tabIndex:-1,onClick:T=>{T.target.classList.toggle("expand")},children:d})]})]})]})})}const rg=Po?.length?ng:()=>null;function Se(t){return new Promise((e,n)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>n(t.error)})}function Ta(t,e){let n;const o=()=>{if(n)return n;const s=indexedDB.open(t);return s.onupgradeneeded=()=>s.result.createObjectStore(e),n=Se(s),n.then(a=>{a.onclose=()=>n=void 0},()=>{}),n};return(s,a)=>o().then(i=>a(i.transaction(e,s).objectStore(e)))}let io;function Ye(){return io||(io=Ta("keyval-store","keyval")),io}function og(t,e=Ye()){return e("readonly",n=>Se(n.get(t)))}function ig(t,e,n=Ye()){return n("readwrite",o=>(o.put(e,t),Se(o.transaction)))}function sg(t,e=Ye()){return e("readonly",n=>Promise.all(t.map(o=>Se(n.get(o)))))}function ag(t,e=Ye()){return e("readwrite",n=>(n.delete(t),Se(n.transaction)))}function cg(t,e=Ye()){return e("readwrite",n=>(t.forEach(o=>n.delete(o)),Se(n.transaction)))}function lg(t=Ye()){return t("readwrite",e=>(e.clear(),Se(e.transaction)))}function ug(t,e){return t.openCursor().onsuccess=function(){this.result&&(e(this.result),this.result.continue())},Se(t.transaction)}function dg(t=Ye()){return t("readonly",e=>{if(e.getAllKeys)return Se(e.getAllKeys());const n=[];return ug(e,o=>n.push(o.key)).then(()=>n)})}function hs(t,e){const n=Ta(t,e);return{set:(o,s)=>ig(o,s,n),get:o=>og(o,n),getMany:o=>sg(o,n),del:o=>ag(o,n),delMany:o=>cg(o,n),clear:()=>lg(n),keys:()=>dg(n)}}const Oy={drafts:hs("drafts-db","drafts-store"),catchup:hs("catchup-db","catchup-store")},Sa=ce({}),hg=!!document.startViewTransition;function Fy({children:t,statusID:e}){const n=N([]),[o,s]=H(!1),[a,i]=H(0);function c(p){p!==a&&(hg?document.startViewTransition(()=>{i(p)}):i(p))}async function l(){const{masto:p}=Ze(),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 r(Sa.Provider,{value:{editHistoryRef:n,initEditHistory:h,exitEditHistory:d,editHistoryMode:o,editedAtIndex:a,prevEditedAt:u,nextEditedAt:f},children:t})}function fg(){return It(Sa)}const ri=ce();function pg(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 Mr=Wt(pg);function mg(t,e,n){const{filtered:o}=t;if(!o?.length||n&&t.account?.id===n)return!0;const a=Mr(o,e);return a?a.action!=="hide":!0}function By(t,e){if(!t?.length)return[];if(!e)return t;const n=qo();return t.filter(o=>mg(o,e,n))}const sr=document.createElement("template");function gg(t){if(!t)return 0;sr.innerHTML=t;const e=sr.content.querySelectorAll(".invisible");for(let o=0;o=e||R<0||k&&$-i.current>=C},I=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 I(R);if(p.current){var W=e-(R-a.current),B=k?Math.min(W,C-(R-i.current)):W;E($,B)}},L=function(){o&&o({})},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,$&&o&&o({})},A.isPending=function(){return!!l.current},A.flush=function(){return l.current?I(Date.now()):u.current},A},[v,k,e,C,b,g,m,S,o]);return _}function bg(t,e,n){var o=n===void 0?{}:n,s=o.leading,a=o.trailing;return yg(t,e,{maxWait:e,leading:s===void 0||s,trailing:a===void 0||a})}function wg(t,e){var n=N(null),o=N(null);o.current=e;var s=N(null);q(function(){a()});var a=yt(function(){var i=s.current,c=o.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 fs(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 _g(t){t===void 0&&(t={});var e=t.onResize,n=N(void 0);n.current=e;var o=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=wg(yt(function(u){return(!s.current||s.current.box!==t.box||s.current.round!==o)&&(s.current={box:t.box,round:o,instance:new ResizeObserver(function(f){var p=f[0],m=t.box==="border-box"?"borderBoxSize":t.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",g=fs(p,m,"inlineSize"),v=fs(p,m,"blockSize"),b=g?o(g):void 0,k=v?o(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,o]),t.ref);return it(function(){return{ref:d,width:i.width,height:i.height}},[d,i.width,i.height])}function kg(t={}){const e=bg(t.onResize,300);return _g({...t,onResize:e})}function On({className:t="truncated"}={}){const e=N();return kg({ref:e,box:"border-box",onResize:({height:o})=>{if(e.current){const{scrollHeight:s}=e.current;let a=s>o;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 Fn={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"}},Tg=["\\\\\\[[\\s\\S]*?\\\\\\]","\\\\\\([\\s\\S]*?\\\\\\)"],ps=new RegExp(Tg.join("|"),"g");function Sg(t){const e=["\\\\\\[","\\\\\\("],n=new RegExp(`(${e.join("|")})`),o=document.createTreeWalker(t,NodeFilter.SHOW_TEXT),s=[];let a;for(;a=o.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(ps.lastIndex=0,!ps.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 Hs(async()=>{const{default:p}=await import("./temml-Dns96zBN.js");return{default:p}},[],import.meta.url))?.default);Sg(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 r("div",{class:"math-block",children:[r(M,{icon:"formula",size:"s"})," ",r("span",{children:s({id:"/nf2x7"})})," ",r("button",{type:"button",class:"light small",onClick:c,children:s(a?{id:"AJqQb+"}:{id:"dP6iYK"})})]})},Ca=new Uint8Array(128);for(let t=0;t<83;t++)Ca["0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~".charCodeAt(t)]=t;const mr=(t,e,n)=>{let o=0;for(;et>10.31475?Ea(t/xa+.052132,2.4):t/Aa,so=t=>~~(t>1227e-8?xa*Ea(t,.416666)-13.025:t*Aa+1),Bn=t=>(t<0?-1:1)*t*t,ms=t=>{for(t+=jn/2;t>jn;)t-=Eg;const e=1.27323954*t-.405284735*Bn(t);return .225*(Bn(e)-e)+e};function oi(t){const e=mr(t,2,6);return[e>>16,e>>8&255,e&255]}function xg(t,e,n,o){const s=mr(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=(mr(t,1,2)+1)/13446*(o|1),_=new Float64Array(c*3),T=oi(t);for(l=0;l<3;l++)_[l]=Ag(T[l]);for(l=1;l"u",Lg=function(){return!Ig&&("ontouchstart"in window||navigator.maxTouchPoints>0)};var Pg=function(t){var e=t.x,n=t.y,o=t.scale;return"scale3d(".concat(o,",").concat(o,", 1) translate3d(").concat(e,"px, ").concat(n,"px, 0)")};var Dg=Math.min,Rg=Math.max;function gs(t){var e=t.containerDimension,n=t.childDimension,o=t.padding,s=t.centerContained,a=n-e;return a+2*o<=0&&s?[a/2,a/2]:[Dg(a+o,0)-o,Rg(0,a+o)]}var vs=function(t,e){return e?"".concat(t," ").concat(e):t},ar=Math.abs,$g=Math.min,Ng=Math.sqrt,La=typeof window>"u",Og=La?!1:/(Mac)/i.test(navigator.platform),rn=function(t){return t==="drag"},In=function(t){return t==="zoom"},Fg=function(t){return Og&&t.ctrlKey},Ln=function(t){t.stopPropagation(),t.preventDefault()},ys=function(t,e){var n=t.x-e.x,o=t.y-e.y;return Ng(n*n+o*o)},Bg=function(t,e){var n=ys(t[0],t[1]),o=ys(e[0],e[1]);return o/n},zg=function(t,e){return t>e-.01&&te?e:n},Ug=function(t){return!(t.ctrlKey||t.metaKey)},qg=function(t){if(t){var e=t.offsetWidth,n=t.offsetHeight;if(e&&n)return{width:e,height:n};var o=getComputedStyle(t),s=parseFloat(o.width),a=parseFloat(o.height);if(a&&s)return{width:s,height:a}}return{width:0,height:0}},Wg=function(t,e){return{x:e.x-t.x,y:e.y-t.y}},Zg=function(t,e){return t.x===e.x&&t.y===e.y},ze=function(){},lr={x:0,y:0},ws=(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({},lr),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({},lr),n._startOffset=Bt({},lr),n._startTouches=null,n._updatePlaned=!1,n._wheelTimeOut=null,n._zoomFactor=1,n._initialZoomFactor=1,n._draggingPoint=Bt({},lr),n._ignoreNextClick=!1,n._containerRef=xc(),n._handleClick=function(o){n._ignoreNextClick&&(n._ignoreNextClick=!1,o.stopPropagation())},n._onResize=function(){var o;!((o=n._containerRef)===null||o===void 0)&&o.current&&(n._updateInitialZoomFactor(),n._setupOffsets(),n._update())},n._handlerOnTouchEnd=n._handlerIfEnable(function(o){n._fingers=o.touches.length,n.props.shouldCancelHandledTouchEndEvents&&(In(n._interaction)||rn(n._interaction)&&(n._startOffset.x!==n._offset.x||n._startOffset.y!==n._offset.y))&&Ln(o),rn(n._interaction)&&!n._enoughToDrag()&&n._handleClick(o),n._updateInteraction(o)}),n._handlerOnTouchStart=n._handlerIfEnable(function(o){n._firstMove=!0,n._fingers=o.touches.length,n._detectDoubleTap(o)}),n._handlerOnTouchMove=n._handlerIfEnable(function(o){n._isDoubleTap||(n._collectInertia(o),n._firstMove?(n._updateInteraction(o),n._interaction&&Ln(o),n._startOffset=Bt({},n._offset),n._startTouches=cr(o.touches)):(In(n._interaction)?n._startTouches&&n._startTouches.length===2&&o.touches.length===2&&n._handleZoom(o,Bg(n._startTouches,cr(o.touches))):rn(n._interaction)&&n._handleDrag(o),n._interaction&&(Ln(o),n._update())),n._firstMove=!1)}),n._handlerWheel=function(o){if(!n.props.shouldInterceptWheel(o)){Ln(o);var s=o.pageX,a=o.pageY,i=o.deltaY,c=o.deltaMode,l=1;(Fg(o)||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 o=this._getOffsetByFirstTouch(n);this._enoughToDrag()?this._drag(o,this._lastDragPosition):this._virtualDrag(o,this._lastDragPosition),this._offset=this._sanitizeOffset(this._offset),this._lastDragPosition=o},e.prototype._resetInertia=function(){this._velocity=null,this._prevDragMovePoint=null},e.prototype._realizeInertia=function(){var n=this,o=this.props,s=o.inertiaFriction,a=o.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),Zg(d,n._offset))return n._stopAnimation();n._update({isAnimation:!0})};this._animate(h,{duration:9999})}}},e.prototype._collectInertia=function(n){var o=n.touches;if(this.props.inertia){var s=cr(o)[0],a=this._prevDragMovePoint;a&&(this._velocity=Wg(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,o){var s=jg(this._getOffsetTouches(n)),a=o/this._lastScale;this._lastScale=o,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 o=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){o._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(),o=this._getChildSize(),s=o.width,a=o.height,i=-ar(s*this._getInitialZoomFactor()-n.width)/2,c=-ar(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 o=this._getContainerRect(),s=this._getChildSize(),a=s.width,i=s.height,c=a*this._getInitialZoomFactor()*this._zoomFactor,l=i*this._getInitialZoomFactor()*this._zoomFactor,h=gs({containerDimension:o.width,childDimension:c,padding:this.props.horizontalPadding,centerContained:this.props.centerContained}),d=h[0],u=h[1],f=gs({containerDimension:o.height,childDimension:l,padding:this.props.verticalPadding,centerContained:this.props.centerContained}),p=f[0],m=f[1];return{x:ao(d,u,n.x),y:ao(p,m,n.y)}},e.prototype.alignCenter=function(n){var o=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;o._zoomFactor=f+v*S,o._offset=o._sanitizeOffset({x:C,y:_}),o._update()};this._animate(k,{callback:function(){return o._sanitize()},duration:h})},e.prototype.scaleTo=function(n){var o=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;o._zoomFactor=d+f*g,o._offset={x:v,y:b},o._update()};this._animate(m,{callback:function(){return o._sanitize()},duration:h})},e.prototype._scaleTo=function(n,o){this._scale(n/this._zoomFactor,o),this._offset=this._sanitizeOffset(this._offset)},e.prototype._scale=function(n,o){n=this._scaleZoomFactor(n),this._addOffset({x:(n-1)*(o.x+this._offset.x),y:(n-1)*(o.y+this._offset.y)}),this.props.onZoomUpdate()},e.prototype._scaleZoomFactor=function(n){var o=this._zoomFactor;return this._zoomFactor*=n,this._zoomFactor=ao(this.props.minZoom,this.props.maxZoom,this._zoomFactor),this._zoomFactor/o},e.prototype._canDrag=function(){return this.props.draggableUnZoomed||!zg(this._zoomFactor,1)},e.prototype._drag=function(n,o){if(o){var s=-(n.y-o.y),a=-(n.x-o.x);this.props.lockDragAxis?ar(a)>ar(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,o){if(o){var s=-(n.y-o.y),a=-(n.x-o.x);this._draggingPoint={x:a+this._draggingPoint.x,y:s+this._draggingPoint.y}}},e.prototype._addOffset=function(n){var o=this._offset,s=o.x,a=o.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 qg(n?.firstElementChild)},e.prototype._updateInitialZoomFactor=function(){var n=this._getContainerRect(),o=this._getChildSize(),s=n.width/o.width,a=n.height/o.height;this._initialZoomFactor=$g(s,a)},e.prototype._bindEvents=function(){var n=this,o=this._containerRef.current;window.ResizeObserver?(this._containerObserver=new ResizeObserver(this._onResize),this._containerObserver.observe(o)):window.addEventListener("resize",this._onResize),this._handlers.forEach(function(s){var a=s[0],i=s[1],c=s[2];(c||o).addEventListener(a,i,!0)}),Array.from(o.querySelectorAll("img")).forEach(function(s){return s.addEventListener("load",n._onResize)})},e.prototype._unSubscribe=function(){var n=this,o=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||o).removeEventListener(a,i,!0)}),Array.from(o.querySelectorAll("img")).forEach(function(s){return s.removeEventListener("load",n._onResize)})},e.prototype._update=function(n){var o=this;if(!this._updatePlaned){var s=function(){var a=o._getInitialZoomFactor()*o._zoomFactor,i=-o._offset.x/a,c=-o._offset.y/a;o.props.onUpdate({scale:a,x:i,y:c})};if(n?.isAnimation)return s();this._updatePlaned=!0,requestAnimationFrame(function(){o._updatePlaned=!1,s()})}},e.prototype._handlerIfEnable=function(n){var o=this;return function(){for(var s=[],a=0;ao?n-o:o-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 o=this._fingers;if(o===2)return this._setInteraction("zoom",n);if(o===1&&this._canDrag())return this._setInteraction("drag",n);this._setInteraction(null,n)},e.prototype._detectDoubleTap=function(n){var o=new Date().getTime();this._fingers>1&&(this._lastTouchStart=0),o-this._lastTouchStart<300?(Ln(n),this._handleDoubleTap(n),In(this._interaction)?this._handleZoomEnd():rn(this._interaction)&&this._handleDragEnd()):this._isDoubleTap=!1,this._fingers===1&&(this._lastTouchStart=o)},e.prototype.simulate=function(n){var o=this;return function(s){var a=s.pageX,i=s.pageY,c=s.type,l=c==="mouseup",h=c==="mousedown";h&&(s.preventDefault(),o._listenMouseMove=!0),o._listenMouseMove&&(s.touches=l?[]:[{pageX:a,pageY:i}],n(s)),l&&(o._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,o=n.children,s=n.containerProps,a=n.nonce,i=Mc.only(o),c=s||{};return Jn.createElement(Jn.Fragment,null,Jn.createElement("style",{nonce:a},Mg),Jn.createElement("div",Bt({},c,{ref:this._containerRef,className:vs(Ma,c.className)}),Fs(i,{className:vs(Ia,i.props.className)})))},e.defaultProps={animationDuration:250,draggableUnZoomed:!0,enforceBoundsDuringZoom:!1,centerContained:!1,enabled:!0,inertia:!0,inertiaFriction:.96,horizontalPadding:0,isTouch:Lg,lockDragAxis:!1,maxZoom:5,minZoom:.5,onDoubleTap:ze,onDragEnd:ze,onDragStart:ze,onDragUpdate:ze,onZoomEnd:ze,onZoomStart:ze,onZoomUpdate:ze,setOffsetsOnce:!1,shouldInterceptWheel:Ug,shouldCancelHandledTouchEndEvents:!1,tapZoomFactor:1,verticalPadding:0,wheelScaleFactor:1500,zoomOutFactor:1.3,doubleTapZoomOutOnMaxScale:!1,doubleTapToggleZoom:!1,_document:La?null:window.document},e})(zs);if(0)var zy,Hy,Ky,jy,Uy,qy,Wy,Zy;function co(t){if(!t)return;let e=Math.floor(t/3600),n=Math.floor(t%3600/60),o=Math.round(t%60);return e===0?`${n}:${o.toString().padStart(2,"0")}`:`${e}:${n.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}`}const Vg=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Gg="ALT",lo=t=>{const{_:e}=Kt(),{alt:n,lang:o,index:s,...a}=t;return!n||!n.trim()?null:r("button",{type:"button",class:"alt-badge clickable",...a,onClick:i=>{i.stopPropagation(),i.preventDefault(),z.showMediaAlt={alt:n,lang:o}},title:e({id:"5gfDMm"}),children:[Gg,!!s&&r("sup",{children:s})]})},Yg=140,Xg=280,Pa=Wt(t=>t?.length?t.length>Yg||/[\n\r].*[\n\r]/.test(t.trim()):!1);function Qg({class:t="",media:e,to:n,lang:o,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=Jg(u||f||k),{original:_={},small:T,focus:E}=m||{},w=s?_?.width:T?.width||_?.width,I=s?_?.height:T?.height||_?.height,P=s?k:v||k,L=s?b:g||b,A=T?.width&&T?.height,R=w&&I?w>I?"landscape":"portrait":null,W=f?oi(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=Pg({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,V]=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),Pt=it(()=>n&&!J?O=>r(Ve,{to:n,...O}):"div",[n,J]),$t=L?_s(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,re=v&&/\.(mp4|m4r|m4v|mov|webm)$/i.test(_s(v).pathname),K=N(),[ft,Dt]=H(!1);ke(()=>{if(!ne||!s||!K.current)return;const{offsetWidth:O,offsetHeight:G}=K.current,U=w{const{children:G,...U}=O;return r("figure",{...U,children:[G,r("figcaption",{class:"media-caption",lang:o,dir:"auto",onClick:wt=>{wt.preventDefault(),wt.stopPropagation(),z.showMediaAlt={alt:p,lang:o}},children:p})]})}:F,Zt=()=>window.matchMedia("(min-width: calc(40em + 350px))").matches?"large":"small",bt=yt(O=>{const G=O.target.closest(".status-deck");if(s||Zt()==="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",ke(()=>{Vg&&s&&(async()=>{try{await fetch(P,{mode:"no-cors"}),et.current.src=P}catch{}})()},[P]),r(gt,{children:[r(Pt,{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:ft?`${w}px ${I}px`:void 0,...jt}:tt,children:s?r(ws,{...st,children:r("img",{ref:et,src:P,alt:p,width:w,height:I,"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="",V(!0)},onError:O=>{const{src:G}=O.target;G===P&&L&&P!==L&&(O.target.src=L)}})}):r(F,{children:[r("img",{src:P,alt:lt?"":p,width:w,height:I,"data-orientation":R,loading:"lazy","data-view-transition-name":C,style:{objectPosition:Y||"center","--anim-duration":`${Math.min(Math.max(Math.max(w,I)/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:pt,naturalHeight:xt}=U;if(wt&&Mt&&pt&&xt)if(pt<88||xt<88)G.dataset.hasSmallDimension=!0;else{const vt=xt*wt/pt;if(Math.abs(vt-Mt)<5){const Z=G.closest(".media");Z&&(Z.dataset.hasNaturalAspectRatio=!0)}}},300)}},onError:O=>{const{src:G}=O.target;G===P&&L&&P!==L?O.target.src=L:Tt(!0)}}),!lt&&r(lo,{alt:p,lang:o,index:l})]})}),J&&r("div",{children:r("a",{href:b,class:"button plain6 small",target:"_blank",children:[r(M,{icon:"external"})," ",r("span",{children:r(x,{id:"9npOH9"})})]})})]});if(S==="gifv"||S==="video"||dt){const O=_.duration>0,G=_.duration<31,U=S==="gifv"&&G,wt=_.duration<61,Mt=co(_.duration),pt=!s&&!a&&U,xt=!s&&a&&U,Rt=_.duration>5,vt=` + + `,Vt=` + + `;return r(gt,{children:r(Pt,{ref:K,class:`media ${t} media-${U?"gif":"video"} ${xt?"media-contain":""} ${pt?"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:Z=>{if(pt)try{B.current.pause()}catch{}bt(Z)},onMouseEnter:()=>{if(pt)try{B.current.play()}catch{}},onMouseLeave:()=>{if(pt)try{B.current.pause()}catch{}},onFocus:()=>{if(pt)try{B.current.play()}catch{}},onBlur:()=>{if(pt)try{B.current.pause()}catch{}},children:[s||xt?U&&s?r(ws,{...st,enabled:!0,children:r("div",{ref:et,dangerouslySetInnerHTML:{__html:vt}})}):U?r("div",{class:"video-container",dangerouslySetInnerHTML:{__html:vt}}):r("div",{class:"video-container",dangerouslySetInnerHTML:{__html:Vt}}):U?r("video",{ref:B,src:k,poster:v,width:w,height:I,"data-orientation":R,"data-view-transition-name":C,preload:"auto",playsinline:!0,loop:!0,muted:!0,onTimeUpdate:Rt?Z=>{const{target:_t}=Z,Ht=_t?.closest(".media-gif");if(Ht){const oe=_t.currentTime/_t.duration*100;Ht.style.setProperty("--progress",`${oe}%`)}}:void 0}):r(F,{children:[v&&!re?r("img",{src:v,alt:lt?"":p,width:w,height:I,"data-orientation":R,loading:"lazy",decoding:"async","data-view-transition-name":C,onLoad:Z=>{if(!A){const _t=Z.target.closest(".media");if(_t){const{naturalHeight:Ht,naturalWidth:oe}=Z.target;_t.dataset.orientation=oe>Ht?"landscape":"portrait",_t.style.setProperty("--width",`${oe}px`),_t.style.setProperty("--height",`${Ht}px`),_t.style.aspectRatio=`${oe}/${Ht}`}}}}):r("video",{src:k+"#t=0.1",width:w,height:I,"data-orientation":R,"data-view-transition-name":C,preload:"metadata",muted:!0,disablePictureInPicture:!0,onLoadedMetadata:Z=>{if(!O){const{duration:_t}=Z.target;if(_t){const Ht=co(_t),oe=Z.target.closest(".media-video");oe&&(oe.dataset.formattedDuration=Ht)}}}}),r("div",{class:"media-play",children:r(M,{icon:"play",size:"xl",alt:"▶"})})]}),!s&&!lt&&r(lo,{alt:p,lang:o,index:l})]})})}else if(S==="audio"||le){const O=co(_.duration);return r(gt,{children:r(Pt,{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?r("audio",{src:b||k,preload:"none",controls:!0,autoPlay:!0}):v?r("img",{src:v,alt:lt?"":p,width:w,height:I,"data-orientation":R,loading:"lazy",onError:G=>{try{G.target?.remove?.()}catch{}}}):null,!s&&r(F,{children:[r("div",{class:"media-play",children:r(M,{icon:"play",size:"xl",alt:"▶"})}),!lt&&r(lo,{alt:p,lang:o,index:l})]})]})})}}function _s(t){return URL.parse(t,location.origin)}function Jg(t){let e=t.replace(/[^a-zA-Z0-9_-]/g,"-");return e.match(/^[0-9-]/)&&(e="vt-"+e),e}const Ro=$e(Qg,(t,e)=>{const n=t.media||{},o=e.media||{};return n?.id===o?.id&&n.url===o.url&&t.to===e.to&&t.class===e.class});function tv(t){const{mediaAttachments:e,language:n,postID:o,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)}},[]),r(F,{children:[r("div",{class:"media-first-container",children:[r("div",{class:"media-first-carousel",ref:i,children:e.map((h,d)=>r("div",{class:"media-first-item",children:r(Ro,{media:h,lang:n,to:`/${s}/s/${o}?media=${d+1}`})},h.id))}),a&&r("div",{class:"media-carousel-controls",children:[r("div",{class:"carousel-indexer",children:[c+1,"/",e.length]}),r("label",{class:"media-carousel-button",children:r("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:r(M,{icon:"arrow-left"})})}),r("label",{class:"media-carousel-button",children:r("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:r(M,{icon:"arrow-right"})})})]})]}),a&&r("div",{class:"media-carousel-dots",style:{"--dots-count":e.length},children:e.map((h,d)=>r("span",{class:`carousel-dot ${d===c?"active":""}`},h.id))})]})}function ev(t){const{enabled:e,children:n,lang:o,captionChildren:s}=t;return!e||!s?n:r("figure",{class:"media-figure-multiple",children:[n,r("figcaption",{lang:o,dir:"auto",children:s})]})}function nv({poll:t,lang:e,readOnly:n,refresh:o=()=>{},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 r("div",{lang:e,dir:"auto",class:`poll ${n?"read-only":""} ${i==="loading"?"loading":""}`,children:[_&&E||m||l?r(F,{children:[r("div",{class:"poll-options",children:f.map((w,I)=>{const{title:P,votesCount:L}=w,A=S?L/S:0,$=A?A.toLocaleString(Lt.locale||void 0,{style:"percent",maximumFractionDigits:C}):"0%",R=L>0&&L===Math.max(...f.map(W=>W.votesCount));return r("div",{class:`poll-option poll-result ${R?"poll-option-leading":""}`,style:{"--percentage":`${A*100}%`},children:[r("div",{class:"poll-option-title",children:[r("span",{children:r(un,{text:P,emojis:b})}),m&&p.includes(I)&&r(F,{children:[" ",r(M,{icon:"check-circle",alt:a({id:"IeO7us"})})]})]}),r("div",{class:"poll-option-votes",title:Lt._({id:"+syLpm",values:{optionVotesCount:L}}),children:$})]},`${I}-${P}-${L}`)})}),!l&&!m&&r("button",{class:"poll-vote-button plain2",disabled:i==="loading",onClick:w=>{w.preventDefault(),T(!1)},children:[r(M,{icon:"arrow-left",size:"s"})," ",r(x,{id:"L96xSt"})]})]}):r("form",{onSubmit:async w=>{w.preventDefault();const I=w.target,P=new FormData(I),L=[];P.forEach((A,$)=>{$==="poll"&&L.push(A)}),L.length&&(c("loading"),await s(L),c("default"))},children:[r("div",{class:"poll-options",children:f.map((w,I)=>{const{title:P}=w;return r("div",{class:"poll-option",children:r("label",{class:"poll-label",children:[r("input",{type:u?"checkbox":"radio",name:"poll",value:I,disabled:i==="loading",readOnly:n}),r("span",{class:"poll-option-title",children:r(un,{text:P,emojis:b})})]})})})}),!n&&r("button",{class:"poll-vote-button",type:"submit",disabled:i==="loading",children:r(x,{id:"lQXQKs"})})]}),r("p",{class:"poll-meta",children:[r("span",{class:"spacer",children:[r("span",{class:"ib",children:r(x,{id:"k7v0Rh",values:{0:ae(v),1:ae(v),votesCount:v},components:{0:r("span",{title:v}),1:r("span",{title:v})}})}),!!g&&g!==v&&r(F,{children:[" ","•"," ",r("span",{class:"ib",children:r(x,{id:"jf1i1L",values:{0:ae(g),1:ae(g),votersCount:g},components:{0:r("span",{title:g}),1:r("span",{title:g})}})})]})," ","•"," ",l?k?r("span",{class:"ib",children:r(x,{id:"5LwCCI",components:{0:r(we,{datetime:k})}})}):a({id:"237hSL"}):k?r("span",{class:"ib",children:r(x,{id:"ooHDPY",components:{0:r(we,{datetime:k})}})}):a({id:"O2tNG0"})]}),!m&&!l&&!n&&E&&r("button",{type:"button",class:"plain small",disabled:i==="loading",onClick:w=>{w.preventDefault(),T(!_)},title:a(_?{id:"L96xSt"}:{id:"zCjei3"}),children:[r(M,{icon:_?"eye-open":"eye-close",alt:a(_?{id:"L96xSt"}:{id:"zCjei3"})})," "]}),!l&&!n&&r("button",{type:"button",class:"plain small",disabled:i==="loading",onClick:w=>{w.preventDefault(),c("loading"),(async()=>(await o(),c("default")))()},title:a({id:"lCF0wC"}),children:r(M,{icon:"refresh",alt:a({id:"lCF0wC"})})})]})]})}const rv=/^http/i,ks=(({post:t,instance:e,previewMode:n})=>{const{content:o,emojis:s,language:a,mentions:i,url:c}=t,l=Ge(z),h=Qt(t.id,e),d=l.statusQuotes[h],u=N();return ke(()=>{if(!u.current)return;const f=ga(o,{emojis:s,returnDOM:!0});for(const p of f.querySelectorAll('a.u-url[target="_blank"]'))rv.test(p.innerText.trim())||p.removeAttribute("target");u.current.replaceChildren(f.cloneNode(!0))},[o,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]),r("div",{ref:u,lang:a,dir:"auto",class:"inner-content",onClick:Cm({mentions:i,instance:e,previewMode:n,statusURL:c})})});var uo,Ts;function ov(){return Ts||(Ts=1,uo=(e,n={})=>{const o=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=[`${o.repeat(a?a*s:0)}${l}`,...c];return l.substring(0,2)==="n.trim().replace(/(^(\s|\t)+|(( |\t)+)$)/gm,"");return ho={mergeAttributesWithElements:n=>{const o=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},ho}var fo,Cs;function sv(){if(Cs)return fo;Cs=1;const t=ov(),{mergeAttributesWithElements:e}=iv();return fo=(o,s={})=>{const a=e(o);return t(a,s)},fo}var av=sv();const cv=Os(av);function Da(t,e,n=0){const{account:{url:o,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 Da(W,$,++n)}).join(""):"",w=new Date(g),I=Io(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}=$||{},V=nt?.width||ct?.width,st=nt?.height||ct?.height,J=B||Y,Tt=R||W,Pt=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,re=et==="gifv"||et==="video"||dt,K=et==="audio"||le;let ft="";return ne?ft=`${A}`:re?ft=` + + ${A?`
${A}
`:""} + `:K?ft=` + + ${A?`
${A}
`:""} + `:ft=` + 📄 ${A||J} + `,`
${ft}
`}).join(` +`):""),P=` +
+ ${f?` +
+ ${f} + ${I} +
+ `:I} + +
+ `;return cv(P)}function lv({post:t,instance:e,onClose:n}){const{_:o}=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=Da(t,e);return r("div",{id:"embed-post",class:"sheet",children:[!!n&&r("button",{type:"button",class:"sheet-close",onClick:n,children:r(M,{icon:"x",alt:o({id:"yz7wBu"})})}),r("header",{children:r("h2",{children:r(x,{id:"jdVwsS"})})}),r("main",{tabIndex:"-1",children:[r("h3",{children:r(x,{id:"GkS6YG"})}),r("textarea",{class:"embed-code",readonly:!0,onClick:_=>{_.target.select()},dir:"auto",children:C}),r("button",{type:"button",onClick:()=>{try{navigator.clipboard.writeText(C),ht(o({id:"bl7nrg"}))}catch{ht(o({id:"/KEBaP"}))}},children:[r(M,{icon:"clipboard"})," ",r("span",{children:r(x,{id:"he3ygx"})})]}),!!b?.length&&r("section",{children:[r("p",{children:r(x,{id:"/2mUza"})}),r("ol",{class:"links-list",children:b.map(_=>r("li",{children:r("a",{href:_.remoteUrl||_.url,target:"_blank",download:!0,children:_.remoteUrl||_.url})},_.id))})]}),!!c?.length&&r("section",{children:[r("p",{children:r(x,{id:"AeM/di"})}),r("ul",{children:c.map(_=>r("li",{children:[r("picture",{children:[r("source",{srcset:_.staticUrl,media:"(prefers-reduced-motion: reduce)"}),r("img",{class:"shortcode-emoji emoji",src:_.url,alt:`:${_.shortcode}:`,width:"16",height:"16",loading:"lazy",decoding:"async"})]})," ",r("code",{children:[":",_.shortcode,":"]})," (",r("a",{href:_.url,target:"_blank",download:!0,children:"URL"}),")",_.staticUrl?r(F,{children:[" ","(",r("a",{href:_.staticUrl,target:"_blank",download:!0,children:r(x,{id:"xiropL"})}),")"]}):null]},_.shortcode))})]}),!!S?.length&&r("section",{children:[r("p",{children:r(x,{id:"jzjjJh"})}),r("ul",{children:S.map(_=>r("li",{children:[r("picture",{children:[r("source",{srcset:_.staticUrl,media:"(prefers-reduced-motion: reduce)"}),r("img",{class:"shortcode-emoji emoji",src:_.url,alt:`:${_.shortcode}:`,width:"16",height:"16",loading:"lazy",decoding:"async"})]})," ",r("code",{children:[":",_.shortcode,":"]})," (",r("a",{href:_.url,target:"_blank",download:!0,children:"URL"}),")",_.staticUrl?r(F,{children:[" ","(",r("a",{href:_.staticUrl,target:"_blank",download:!0,children:r(x,{id:"xiropL"})}),")"]}):null]},_.shortcode))})]}),r("section",{children:r("small",{children:[r("p",{children:r(x,{id:"TnJgwX"})}),r("ul",{children:[r("li",{children:r(x,{id:"0OHPem"})}),r("li",{children:r(x,{id:"AzZ5zv"})}),r("li",{children:r(x,{id:"NU7wa/"})}),r("li",{children:r(x,{id:"R4PmPA"})})]})]})}),r("h3",{children:r(x,{id:"rdUucN"})}),r("output",{class:"embed-preview",dangerouslySetInnerHTML:{__html:C},dir:"auto"}),r("p",{children:r("small",{children:r(x,{id:"j0kZfi"})})})]})]})}function uv({onClose:t,post:e,currentPolicy:n}){const{_:o}=Kt(),{masto:s}=Ze(),[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{const p=await s.v1.statuses.$select(e.id).interactionPolicy.update({quote_approval_policy:f});t(!0),ht(o({id:"3P1r1z"})),i("default"),ye(p,e.instance,{skipThreading:!0,skipUnfurling:!0})}catch{ht(o({id:"hEe3YR"})),i("error")}};return r("div",{class:"sheet",id:"quote-settings-container",children:[!!t&&r("button",{type:"button",class:"sheet-close",onClick:t,disabled:a==="loading",children:r(M,{icon:"x",alt:o({id:"yz7wBu"})})}),r("header",{children:r("h2",{children:r(x,{id:"UWSCwN"})})}),r("main",{children:[!!e&&r("div",{class:"post-preview",children:r($a,{status:e,size:"s",readOnly:!0})}),r("form",{onSubmit:h,children:[r("select",{value:c,name:"quoteApprovalPolicy",disabled:a==="loading",children:[r("option",{value:"public",children:r(x,{id:"hDWXuG"})}),r("option",{value:"followers",children:r(x,{id:"9Ko+Xp"})}),r("option",{value:"nobody",children:r(x,{id:"+bAQ3S"})})]})," ",r("button",{disabled:a==="loading",children:r(x,{id:"tfDRzk"})})]})]})]})}const Es=20;function dv({statusId:t,instance:e,onClose:n=()=>{}}){const{_:o}=Kt(),{masto:s}=Ze(),[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:Es}).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]),r("div",{id:"quotes-modal",class:"sheet",tabindex:"-1",children:[n&&r("button",{type:"button",class:"sheet-close",onClick:n,children:r(M,{icon:"x",alt:o({id:"yz7wBu"})})}),r("header",{children:r("h2",{children:r(x,{id:"eWLklq"})})}),r("main",{children:a.length>0?r(F,{children:[r("ul",{class:"quoted-posts-list",children:a.map(m=>r("li",{class:"quoted-post-item",children:r(Ve,{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:r($a,{status:m,instance:e,size:"s",readOnly:!0,showCommentCount:!0})})},m.id))}),c==="default"?h?r("button",{type:"button",class:"plain block",onClick:()=>p(),children:r(x,{id:"uXRAkV"})}):r("p",{class:"ui-state insignificant",children:r(x,{id:"2EYeAZ"})}):c==="loading"&&r("p",{class:"ui-state",children:r(yr,{abrupt:!0})})]}):c==="loading"?r("p",{class:"ui-state",children:r(yr,{abrupt:!0})}):c==="error"?r("p",{class:"ui-state",children:r(x,{id:"3Uoj83"})}):r("p",{class:"ui-state insignificant",children:r(x,{id:"/Xg6f6"})})})]})}const He=Re((t,e)=>{let{checked:n,count:o,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]),r("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:[r(M,{icon:h,size:d,alt:g}),(!!o||!!s)&&r(F,{children:[" ",!!o&&r("small",{title:o,children:ae(o)}),!!o&&!!s&&r("small",{children:"+"}),!!s&&r("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,o){n!==o&&(e==="playlistid"&&n!==null&&n!==o&&(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,o=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 o=await n.json();if(o.thumbnail_url){const s=o.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 o=`https://i.ytimg.com/vi/${e}/${this.posterQuality}.jpg`;this.domRefImg.jpeg.srcset=o,this.domRefImg.fallback.src=o,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 o=>{const s=o.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((o,s)=>{o.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 o=document.createElement("link");o.rel=e,o.href=n,o.crossOrigin="true",document.head.append(o)}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 hv({authors:t,hidden:e,children:n}){if(e||!t?.[0]?.account?.id)return n;const o=t[0].account;return r("div",{class:"card-byline",children:[n,r("div",{class:"card-byline-author",children:[r(M,{icon:"link",size:"s"})," ",r("small",{children:r(x,{id:"4LHHK6",components:{0:r(Pe,{account:o,showAvatar:!0})}})})]})]})}function As(t){return["x.com","twitter.com","threads.net","bsky.app","bsky.brid.gy","fed.brid.gy"].includes(t)}function fv({card:t,selfReferential:e,selfAuthor:n,instance:o}){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,I=p/m>=1.2?"large":"",[P,L]=H(null);if(q(()=>{if(!E||!g||e||!Ic(b))return;const B=new AbortController;return Lc(o,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 = /