diff --git a/dist/skythread.css b/dist/skythread.css index c5478ec..37b72f6 100644 --- a/dist/skythread.css +++ b/dist/skythread.css @@ -1 +1 @@ -.dialog.svelte-1l7hx096m6h0i{position:fixed;display:flex;z-index:10;background-color:#f0f0f066;justify-content:center;align-items: center;padding-bottom:5%;inset:0}.dialog.svelte-1l7hx096m6h0i.expanded{padding-bottom:0}.dialog.svelte-1l7hx096m6h0i~main{filter:blur(8px)}.dialog.svelte-1l7hx096m6h0i form{position:relative;background-color:#f5faff;border:2px solid #b3d9ff;border-radius:10px;padding:15px 25px}.dialog.svelte-1l7hx096m6h0i .close{position:absolute;color:#80bfff;opacity:.6;top:5px;right:5px}.dialog.svelte-1l7hx096m6h0i .close:hover{color:#4ca6ff;opacity:1}.dialog.svelte-1l7hx096m6h0i p{text-align:center;line-height:125%}.dialog.svelte-1l7hx096m6h0i h2{text-align:center;margin-bottom:25px;padding-right:10px;font-size:13pt;font-weight:600}.dialog.svelte-1l7hx096m6h0i input[type=text]{border:1px solid #d6d6d6;border-radius:4px;width:200px;margin:0 15px;padding:5px 6px;font-size:11pt}.dialog.svelte-1l7hx096m6h0i input[type=password]{border:1px solid #d6d6d6;border-radius:4px;width:200px;margin:0 15px;padding:5px 6px;font-size:11pt}.dialog.svelte-1l7hx096m6h0i p.submit{margin-top:25px}.dialog.svelte-1l7hx096m6h0i input[type=submit]{background-color:#d6ebff;border:1px solid #b6d9fb;border-radius:4px;width:150px;padding:5px 6px;font-size:11pt}.dialog.svelte-1l7hx096m6h0i input[type=submit]:hover{background-color:#cce6ff;border:1px solid #a8d1fa}.dialog.svelte-1l7hx096m6h0i input[type=submit]:active{background-color:#bddeff;border:1px solid #9eccfa}@media (prefers-color-scheme:dark){.dialog.svelte-1l7hx096m6h0i{background-color:#f0f0f026}.dialog.svelte-1l7hx096m6h0i form{background-color:#384047;border-color:#52667a}.dialog.svelte-1l7hx096m6h0i .close{color:#668099;opacity:.6}.dialog.svelte-1l7hx096m6h0i .close:hover{color:#668099;opacity:1}.dialog.svelte-1l7hx096m6h0i input[type=text]{border-color:#666}.dialog.svelte-1l7hx096m6h0i input[type=password]{border-color:#666}.dialog.svelte-1l7hx096m6h0i input[type=submit]{background-color:#2a5a8a;border-color:#3a6a9a}.dialog.svelte-1l7hx096m6h0i input[type=submit]:hover{background-color:#3a6a9a;border-color:#4a7aaa}.dialog.svelte-1l7hx096m6h0i input[type=submit]:active{background-color:#2a5a8a;border-color:#1a4a7a}}form.svelte-1dbou6z4h1v2{width:400px}.dialog p.submit.svelte-1dbou6z4h1v2{margin-top:40px;margin-bottom:20px}.dialog input[type=submit].svelte-1dbou6z4h1v2{width:180px;margin-left:5px;margin-right:5px}p.info.svelte-2qjb5vuwmm7pw{font-size:9pt}p.info.svelte-2qjb5vuwmm7pw a:where(.svelte-2qjb5vuwmm7pw){color:#666}.cloudy.svelte-2qjb5vuwmm7pw{color:#99bfe6;margin:14px 0}.info-box.svelte-2qjb5vuwmm7pw{background-color:#fffceb;border:1px solid #fc3;border-radius:6px;width:360px;font-size:11pt}.info-box.svelte-2qjb5vuwmm7pw p:where(.svelte-2qjb5vuwmm7pw){text-align:left;margin:15px}@media (prefers-color-scheme:dark){p.info.svelte-2qjb5vuwmm7pw a:where(.svelte-2qjb5vuwmm7pw){color:#888}.cloudy.svelte-2qjb5vuwmm7pw{color:#99bfe6}.info-box.svelte-2qjb5vuwmm7pw{background-color:#6b612e;border-color:#e6ac00}.info-box.svelte-2qjb5vuwmm7pw a:where(.svelte-2qjb5vuwmm7pw){color:#ffbf00}}li.svelte-2oxniw1nprfwt .button:where(.svelte-2oxniw1nprfwt){display:inline-block;color:#333;background-color:#000a141f;border:1px solid #bbb;border-radius:5px;margin-top:8px;padding:3px 5px;font-size:11pt}li.svelte-2oxniw1nprfwt .button:where(.svelte-2oxniw1nprfwt):hover{text-decoration:none;background-color:#000a1433}@media (prefers-color-scheme:dark){li.svelte-2oxniw1nprfwt .button:where(.svelte-2oxniw1nprfwt){color:#ccc;background-color:#99ccff14;border-color:#52667a}li.svelte-2oxniw1nprfwt .button:where(.svelte-2oxniw1nprfwt):hover{color:#fff;background-color:#99ccff26;border-color:#6a85a0}li.svelte-2oxniw1nprfwt .button:where(.svelte-2oxniw1nprfwt):active{color:#fff;background-color:#99ccff0d;border-color:#3a5168}}#account.svelte-39wlrotalwj0t{position:fixed;z-index:20;user-select:none;-webkit-user-select:none;line-height:24px;top:10px;left:10px}#account.svelte-39wlrotalwj0t i:where(.svelte-39wlrotalwj0t){opacity:.4}#account.svelte-39wlrotalwj0t i:where(.svelte-39wlrotalwj0t):hover{cursor:pointer;opacity:.6}#account.svelte-39wlrotalwj0t img.avatar{border-radius:13px;width:24px;height:24px;box-shadow:0 0 2px #000}#account_menu.svelte-39wlrotalwj0t{position:fixed;visibility:hidden;z-index:15;user-select:none;-webkit-user-select:none;background:#ebf0f5;border:1px solid #ccc;border-radius:5px;padding-top:30px;top:5px;left:5px}#account_menu.svelte-39wlrotalwj0t ul:where(.svelte-39wlrotalwj0t){list-style-type:none;margin:0 0 10px;padding:6px 11px}#account_menu.svelte-39wlrotalwj0t li:not(.link)+li.link{border-top:1px solid #ccc;margin-top:16px;padding-top:10px}li.link.svelte-39wlrotalwj0t{margin-top:8px;margin-left:2px}li.link.svelte-39wlrotalwj0t a:where(.svelte-39wlrotalwj0t){color:#333;font-size:11pt}@media (prefers-color-scheme:dark){#account_menu.svelte-39wlrotalwj0t{background:#383f47;border-color:#52667a}li.link.svelte-39wlrotalwj0t a:where(.svelte-39wlrotalwj0t){color:#ccc}#account_menu.svelte-39wlrotalwj0t li:not(.link)+li.link{border-top-color:#52667a}}#loader.svelte-1sl84wlrv68d4{position:fixed;width:36px;height:36px;margin:auto;inset:0}#loader.svelte-1sl84wlrv68d4 img:where(.svelte-1sl84wlrv68d4){animation:rotation 3s infinite linear;width:36px}@media (prefers-color-scheme:dark){#loader.svelte-1sl84wlrv68d4{filter:invert()}}.edge.svelte-2ac5zurqv2ncl{position:absolute;width:6px;top:30px;bottom:0;left:-2px}.line.svelte-2ac5zurqv2ncl{position:absolute;border-left:1px solid #aaa;top:0;bottom:0;left:2px}.edge.svelte-2ac5zurqv2ncl:hover .line:where(.svelte-2ac5zurqv2ncl){border-left:2px solid #888}.plus.svelte-2ac5zurqv2ncl{position:absolute;width:14px;top:8px;left:-6px}.post.collapsed .line.svelte-2ac5zurqv2ncl,.post.flat>.margin.svelte-2ac5zurqv2ncl{display:none}@media (prefers-color-scheme:dark){.line.svelte-2ac5zurqv2ncl{border-left-color:#666}.edge.svelte-2ac5zurqv2ncl:hover .line:where(.svelte-2ac5zurqv2ncl){border-left-color:#888}.plus.svelte-2ac5zurqv2ncl{filter:invert()}}.fedi-link.svelte-1ssytx46btagw{display:inline-block;margin-top:2px;margin-bottom:6px}.fedi-link.svelte-1ssytx46btagw:hover{text-decoration:none}div.svelte-1ssytx46btagw{color:#555;border:1px solid #d0d0d0;border-radius:8px;padding:5px 9px;font-size:10pt}i.svelte-1ssytx46btagw{margin-right:3px}.fedi-link.svelte-1ssytx46btagw:hover div:where(.svelte-1ssytx46btagw){background-color:#f6f7f8;border:1px solid #c8c8c8}@media (prefers-color-scheme:dark){div.svelte-1ssytx46btagw{color:#909090;border-color:#606060}.fedi-link.svelte-1ssytx46btagw:hover div:where(.svelte-1ssytx46btagw){background-color:#444;border-color:#909090}}.hidden-replies.svelte-29k9heaj3bdpw{margin-top:20px;font-size:11pt}.hidden-replies.svelte-29k9heaj3bdpw a:where(.svelte-29k9heaj3bdpw){color:#8b4513;font-size:12pt}@media (prefers-color-scheme:dark){.hidden-replies.svelte-29k9heaj3bdpw a:where(.svelte-29k9heaj3bdpw){color:#a14d12}}.bridged-body.svelte-2d3jfo6dimkdp p+p{margin-top:18px}.svelte-2d3jfo6dimkdp::highlight(search-results){background-color:#ffff00bf}@media (prefers-color-scheme:dark){.svelte-2d3jfo6dimkdp::highlight(search-results){background-color:#ffff0059}}h2.svelte-19hm87t6mz7s5{margin-bottom:0;font-size:12pt}.avatar.svelte-19hm87t6mz7s5{vertical-align:middle;border-radius:16px;width:32px;height:32px;margin-bottom:3px;margin-right:4px}.no-avatar.svelte-19hm87t6mz7s5,.muted-avatar.svelte-19hm87t6mz7s5{color:#aaa;vertical-align:middle;background-color:#eee;border-radius:16px;margin-right:4px}.muted-avatar.svelte-19hm87t6mz7s5{color:#bbb}.handle.svelte-19hm87t6mz7s5{color:#888;vertical-align:text-top;font-size:11pt;font-weight:400}.mastodon.svelte-19hm87t6mz7s5{position:relative;width:15px;margin-left:3px;top:2px}.time.svelte-19hm87t6mz7s5{color:#666;vertical-align:text-top;font-size:10pt;font-weight:400}@media (prefers-color-scheme:dark){.handle.svelte-19hm87t6mz7s5,.separator.svelte-19hm87t6mz7s5{color:#888}.time.svelte-19hm87t6mz7s5{color:#aaa}h2.svelte-19hm87t6mz7s5 .action{color:#888}}a.svelte-3d455ypfy1g8s{color:#333;background-color:#f0f7fe;border:1px solid #b6d3fb;border-radius:6px;margin-right:5px;padding:3px 7px;font-size:10pt}a.svelte-3d455ypfy1g8s:hover{text-decoration:none;background-color:#ddedfd}.stats.svelte-1tsy42z5eauyq{color:#666;font-size:10pt}a.svelte-1tsy42z5eauyq{color:#666;text-decoration:none}a.svelte-1tsy42z5eauyq:hover{text-decoration:underline}i.svelte-1tsy42z5eauyq{color:#888;font-size:9pt}i.fa-heart.svelte-1tsy42z5eauyq{color:#aaa}i.fa-heart.liked.svelte-1tsy42z5eauyq{color:#e03030}i.fa-heart.svelte-1tsy42z5eauyq:hover{color:#888;cursor:pointer}i.fa-heart.liked.svelte-1tsy42z5eauyq:hover{color:#c02020}span.svelte-1tsy42z5eauyq{margin-right:7px}.blocked-info.svelte-1tsy42z5eauyq{color:#a02020;margin-left:5px;font-weight:700}@media (prefers-color-scheme:dark){.stats.svelte-1tsy42z5eauyq{color:#aaa}i.svelte-1tsy42z5eauyq{color:#888}i.fa-heart.svelte-1tsy42z5eauyq{color:#aaa}i.fa-heart.liked.svelte-1tsy42z5eauyq{color:#f04040}i.fa-heart.svelte-1tsy42z5eauyq:hover{color:#eee}i.fa-heart.liked.svelte-1tsy42z5eauyq:hover{color:#ff7070}}.image-alt.svelte-3o2regxzbqbr0{color:#666;margin-bottom:20px;font-size:11pt}.image-alt.svelte-3o2regxzbqbr0 summary:where(.svelte-3o2regxzbqbr0){color:#666;user-select:none;-webkit-user-select:none;cursor:default;margin-bottom:5px;font-size:11pt}@media (prefers-color-scheme:dark){.image-alt.svelte-3o2regxzbqbr0{color:#999}.image-alt.svelte-3o2regxzbqbr0 summary:where(.svelte-3o2regxzbqbr0){color:#999}}.gif.svelte-2dx58m87um1nk img:where(.svelte-2dx58m87um1nk){user-select:none;-webkit-user-select:none}.gif.svelte-2dx58m87um1nk img.static:where(.svelte-2dx58m87um1nk){opacity:.75}.quote-embed.svelte-767shvs6ixvg{background-color:#fbfcfd;border:1px solid #ddd;border-radius:8px;max-width:800px;margin-top:25px;margin-bottom:15px;margin-left:0}.quote-embed.svelte-767shvs6ixvg .post{margin-top:16px;padding-bottom:5px;padding-left:16px;padding-right:16px}.placeholder.svelte-767shvs6ixvg{color:#888;font-size:11pt;font-style:italic}@media (prefers-color-scheme:dark){.quote-embed.svelte-767shvs6ixvg{background-color:#303030;border-color:#606060}}.embed.svelte-1k40bdrlabc6f a.link-card{display:block;position:relative;max-width:500px;margin-bottom:12px}.embed.svelte-1k40bdrlabc6f a.link-card:hover{text-decoration:none}.embed.svelte-1k40bdrlabc6f a.link-card>div{background-color:#fcfcfd;border:1px solid #d8d8d8;border-radius:8px;padding:11px 15px}.embed.svelte-1k40bdrlabc6f a.link-card:hover>div{background-color:#f6f7f8;border:1px solid #c8c8c8}.embed.svelte-1k40bdrlabc6f a.link-card>div:not(:has(p.description)){padding-bottom:14px}.embed.svelte-1k40bdrlabc6f a.link-card p.domain{color:#888;margin-top:1px;margin-bottom:5px;font-size:10pt}.embed.svelte-1k40bdrlabc6f a.link-card h2{color:#333;margin-top:8px;margin-bottom:0;font-size:12pt}.embed.svelte-1k40bdrlabc6f a.link-card p.description{color:#666;white-space:pre-line;margin-top:8px;margin-bottom:4px;font-size:11pt;line-height:135%}.embed.svelte-1k40bdrlabc6f a.link-card.record>div:has(.avatar){padding-left:65px}.embed.svelte-1k40bdrlabc6f a.link-card.record h2{margin-top:3px}.embed.svelte-1k40bdrlabc6f a.link-card.record .handle{color:#666;vertical-align:text-top;margin-left:1px;font-size:11pt;font-weight:400}.embed.svelte-1k40bdrlabc6f a.link-card.record .avatar{position:absolute;border:1px solid #ddd;border-radius:6px;width:36px;height:36px;top:15px;left:15px}.embed.svelte-1k40bdrlabc6f a.link-card.record .stats{color:#666;margin-top:9px;margin-bottom:1px;font-size:10pt}.embed.svelte-1k40bdrlabc6f a.link-card.record .stats i.fa-heart{color:#aaa;font-size:9pt}@media (prefers-color-scheme:dark){.embed.svelte-1k40bdrlabc6f a.link-card>div{background-color:#303030;border-color:#606060}.embed.svelte-1k40bdrlabc6f a.link-card:hover>div{background-color:#383838;border-color:#707070}.embed.svelte-1k40bdrlabc6f a.link-card p.domain{color:#666}.embed.svelte-1k40bdrlabc6f a.link-card h2{color:#ccc}.embed.svelte-1k40bdrlabc6f a.link-card p.description{color:#888}.embed.svelte-1k40bdrlabc6f a.link-card.record .handle{color:#666}.embed.svelte-1k40bdrlabc6f a.link-card.record .avatar{border-color:#888}}.post.blocked.svelte-15n9djnirzicp p{color:#666;font-size:11pt}.post.blocked.svelte-15n9djnirzicp a{color:#666;font-size:11pt}@media (prefers-color-scheme:dark){.post.blocked.svelte-15n9djnirzicp p{color:#aaa}.post.blocked.svelte-15n9djnirzicp a{color:#aaa}}.post p{margin-top:10px}.post .blocked-header i{margin-right:2px}.post h2 .separator,.post .blocked-header .separator,.blocked-header .separator{color:#888;vertical-align:text-top;font-size:11pt;font-weight:400}.post h2 .action,.post .blocked-header .action,.blocked-header .action{color:#888;vertical-align:text-top;font-size:10pt;font-weight:400}.post h2 .action:hover,.post .blocked-header .action:hover,.blocked-header .action:hover{color:#444}.post{position:relative;margin-top:30px;padding-left:21px}.post.collapsed.svelte-2k39y5eft77zk .content:where(.svelte-2k39y5eft77zk){display:none}.post.flat.svelte-2k39y5eft77zk{margin-top:25px;padding-left:0}.post.muted.svelte-2k39y5eft77zk>h2{opacity:.3;font-weight:600}.post.muted.svelte-2k39y5eft77zk>.content>details>p,.post.muted.svelte-2k39y5eft77zk>.content>details summary{opacity:.3}details.svelte-2k39y5eft77zk{margin-top:12px;margin-bottom:10px}summary.svelte-2k39y5eft77zk{user-select:none;-webkit-user-select:none;cursor:default;font-size:10pt}.missing-replies-info.svelte-2k39y5eft77zk{color:#8b0000;margin-top:25px;font-size:11pt}.post.svelte-2k39y5eft77zk img.loader{animation:rotation 3s infinite linear;width:24px;margin-top:5px}.hashtag.svelte-2cy8gir839nsk>.post{border-bottom:1px solid #ddd;padding-bottom:10px}#search.svelte-20y046s055ja6{position:fixed;display:flex;justify-content:center;align-items: center;padding-bottom:5%;inset:0}form.svelte-20y046s055ja6{border:2px solid #9cf;border-radius:10px;margin-left:50px;padding:15px 20px}input.svelte-20y046s055ja6{border:0;width:600px;margin-left:8px;font-size:16pt}input.svelte-20y046s055ja6:focus{outline:none}@media (prefers-color-scheme:dark){form.svelte-20y046s055ja6{border-color:#7099c2}form.svelte-20y046s055ja6 input:where(.svelte-20y046s055ja6){background-color:#0000}}.scan-result.svelte-3rl6pbqxjh5is{border-collapse:collapse;display:none;float:left;border:1px solid #333;margin-top:20px;margin-bottom:40px}td.svelte-3rl6pbqxjh5is,th.svelte-3rl6pbqxjh5is{border:1px solid #333;padding:5px 10px}th.svelte-3rl6pbqxjh5is{text-align:center;background-color:#b8dfff;padding:12px 10px}td.no.svelte-3rl6pbqxjh5is{text-align:right;font-weight:700}td.handle.svelte-3rl6pbqxjh5is{width:280px}td.count.svelte-3rl6pbqxjh5is{padding:5px 15px}.avatar.svelte-3rl6pbqxjh5is{vertical-align:middle;border-radius:14px;width:24px;height:24px;margin-right:2px;padding:2px}@media (prefers-color-scheme:dark){.scan-result.svelte-3rl6pbqxjh5is,td.svelte-3rl6pbqxjh5is,th.svelte-3rl6pbqxjh5is{border-color:#888}th.svelte-3rl6pbqxjh5is{background-color:#064579}}input[type=range].svelte-2hvcjaqoddeji{vertical-align:middle;width:250px}input[type=submit].svelte-2hvcjaqoddeji{margin:5px 0;padding:5px 10px;font-size:12pt}progress.svelte-2hvcjaqoddeji{vertical-align:middle;display:none;width:300px;margin-left:10px}.scan-result.given-likes{margin-right:100px}.search-page.svelte-geig8bptdwj6 input[type=submit]{margin:5px 0;padding:5px 10px;font-size:12pt}.search-page.svelte-geig8bptdwj6 progress{vertical-align:middle;width:300px;margin-left:10px}.search-page.svelte-geig8bptdwj6 .search-query{border:1px solid #ccc;border-radius:6px;margin-left:8px;padding:5px 6px;font-size:12pt}.search-page.svelte-geig8bptdwj6 .results{margin-top:30px}.search-page.svelte-geig8bptdwj6 .results>.post{border-bottom:1px solid #ddd;margin-top:24px;margin-left:-15px;padding-bottom:10px;padding-left:15px}.search-page.svelte-geig8bptdwj6 .results-end{color:#333;font-size:12pt}.search-page.svelte-geig8bptdwj6 .post+.results-end{font-size:11pt}@media (prefers-color-scheme:dark){.search-page.svelte-geig8bptdwj6 .search-query{border:1px solid #666}.search-page.svelte-geig8bptdwj6 .results-end{color:#888}.search-page.svelte-geig8bptdwj6 .results>.post{border-bottom:1px solid #555}}.search-collections.svelte-1xaglya9rfxfs label:where(.svelte-1xaglya9rfxfs){vertical-align:middle;margin-right:5px}.lycan-import.svelte-1xaglya9rfxfs{border-top:1px solid #ccc;margin-top:30px;padding-top:5px}.lycan-import.svelte-1xaglya9rfxfs form:where(.svelte-1xaglya9rfxfs) p:where(.svelte-1xaglya9rfxfs){line-height:135%}.import-progress.svelte-1xaglya9rfxfs progress:where(.svelte-1xaglya9rfxfs){margin-left:0;margin-right:6px}.import-progress.svelte-1xaglya9rfxfs progress:where(.svelte-1xaglya9rfxfs)+output:where(.svelte-1xaglya9rfxfs){font-size:11pt}@media (prefers-color-scheme:dark){.lycan-import.svelte-1xaglya9rfxfs{border-top-color:#888}}.notifications.svelte-3q0ai2k4d1d8n .post{border-bottom:1px solid #ddd;margin-top:24px;padding-bottom:4px}.notifications.svelte-3q0ai2k4d1d8n .back{margin-top:15px;margin-bottom:-12px;margin-left:22px}.notifications.svelte-3q0ai2k4d1d8n .back{font-size:10pt}.notifications.svelte-3q0ai2k4d1d8n .back a{font-size:10pt}.notifications.svelte-3q0ai2k4d1d8n .back i{margin-right:2px;font-size:9pt}.user-choice.svelte-2z5j67wda5rm6{position:relative}input.svelte-2z5j67wda5rm6{width:260px;font-size:11pt}.autocomplete.svelte-2z5j67wda5rm6{position:absolute;overflow-y:auto;z-index:10;background-color:#fff;border:1px solid #ccc;width:350px;max-height:250px;margin-top:4px;top:0;left:0}.selected-users.svelte-2z5j67wda5rm6{overflow-y:auto;border:1px solid #aaa;width:275px;height:150px;margin-top:20px;padding:4px}.user-row.svelte-2z5j67wda5rm6{position:relative;cursor:pointer;padding:2px 4px 2px 37px}.user-row.svelte-2z5j67wda5rm6 .avatar:where(.svelte-2z5j67wda5rm6){position:absolute;border-radius:12px;width:24px;top:8px;left:6px}.user-row.svelte-2z5j67wda5rm6 span:where(.svelte-2z5j67wda5rm6){display:block;overflow-x:hidden;text-overflow:ellipsis}.user-row.svelte-2z5j67wda5rm6 .name:where(.svelte-2z5j67wda5rm6){margin-top:1px;margin-bottom:1px;font-size:11pt}.user-row.svelte-2z5j67wda5rm6 .handle:where(.svelte-2z5j67wda5rm6){color:#666;margin-bottom:2px;font-size:10pt}.autocomplete.svelte-2z5j67wda5rm6 .user-row:where(.svelte-2z5j67wda5rm6){cursor:pointer}.autocomplete.svelte-2z5j67wda5rm6 .user-row.highlighted:where(.svelte-2z5j67wda5rm6){background-color:#b3ddff}.selected-users.svelte-2z5j67wda5rm6 .user-row:where(.svelte-2z5j67wda5rm6) span:where(.svelte-2z5j67wda5rm6){padding-right:14px}.selected-users.svelte-2z5j67wda5rm6 .user-row:where(.svelte-2z5j67wda5rm6) .remove:where(.svelte-2z5j67wda5rm6){position:absolute;color:#333;padding:0 4px;line-height:17px;top:11px;right:4px}.selected-users.svelte-2z5j67wda5rm6 .user-row:where(.svelte-2z5j67wda5rm6) .remove:where(.svelte-2z5j67wda5rm6):hover{text-decoration:none;background-color:#ddd;border-radius:8px}@media (prefers-color-scheme:dark){.autocomplete.svelte-2z5j67wda5rm6{background-color:#2c2e30;border-color:#4b4b4b}.selected-users.svelte-2z5j67wda5rm6{border-color:#666}.user-row.svelte-2z5j67wda5rm6 .handle:where(.svelte-2z5j67wda5rm6){color:#888}.autocomplete.svelte-2z5j67wda5rm6 .user-row.highlighted:where(.svelte-2z5j67wda5rm6){background-color:#064579}.selected-users.svelte-2z5j67wda5rm6 .user-row:where(.svelte-2z5j67wda5rm6) .remove:where(.svelte-2z5j67wda5rm6){color:#aaa}.selected-users.svelte-2z5j67wda5rm6 .user-row:where(.svelte-2z5j67wda5rm6) .remove:where(.svelte-2z5j67wda5rm6):hover{color:#bbb;background-color:#555}}.scan-result.svelte-3u8wzgp5meuu{border-collapse:collapse;border:1px solid #333}td.svelte-3u8wzgp5meuu,th.svelte-3u8wzgp5meuu{border:1px solid #333}td.svelte-3u8wzgp5meuu{text-align:right;padding:5px 8px}th.svelte-3u8wzgp5meuu{text-align:center;background-color:#b8dfff;padding:7px 10px}td.handle.svelte-3u8wzgp5meuu{text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:450px}tr.total.svelte-3u8wzgp5meuu td:where(.svelte-3u8wzgp5meuu){background-color:#b8dfff66;font-size:11pt;font-weight:700}tr.total.svelte-3u8wzgp5meuu td.handle:where(.svelte-3u8wzgp5meuu){text-align:left;padding:10px 12px}.avatar.svelte-3u8wzgp5meuu{vertical-align:middle;border-radius:14px;width:24px;height:24px;margin-right:2px;padding:2px}td.no.svelte-3u8wzgp5meuu{font-weight:700}td.percent.svelte-3u8wzgp5meuu{min-width:70px}@media (prefers-color-scheme:dark){.scan-result.svelte-3u8wzgp5meuu,td.svelte-3u8wzgp5meuu,th.svelte-3u8wzgp5meuu{border-color:#888}th.svelte-3u8wzgp5meuu{background-color:#064579}tr.total.svelte-3u8wzgp5meuu td:where(.svelte-3u8wzgp5meuu){background-color:#06457966}}input[type=radio].svelte-936eaahz55lf{position:relative;margin-left:5px;top:-1px}input[type=radio].svelte-936eaahz55lf+label:where(.svelte-936eaahz55lf){user-select:none;-webkit-user-select:none;margin-right:4px}input[type=range].svelte-936eaahz55lf{vertical-align:middle;width:250px}input[type=submit].svelte-936eaahz55lf{margin:5px 0;padding:5px 10px;font-size:12pt}select.svelte-936eaahz55lf{margin-left:5px;font-size:12pt}progress.svelte-936eaahz55lf{vertical-align:middle;width:300px;margin-left:10px}.scan-info.svelte-936eaahz55lf{margin:20px 0;font-weight:600;line-height:125%}.quotes.svelte-3bl0i96onoebm p.back{padding-left:10px}.quotes.svelte-3bl0i96onoebm .post{padding-bottom:5px}.quotes.svelte-3bl0i96onoebm .post-quote .quote-embed,.quotes.svelte-3bl0i96onoebm .post-quote p.stats{display:none}#tangled.svelte-14j5zro1yllpd{position:fixed;z-index:10;bottom:10px;right:10px}img.svelte-14j5zro1yllpd{opacity:.4;width:20px}a.svelte-14j5zro1yllpd:hover img:where(.svelte-14j5zro1yllpd){opacity:.6}@media (prefers-color-scheme:dark){#tangled.svelte-14j5zro1yllpd{filter:invert()}}input[type=range].svelte-27yj0b3y75jqg{vertical-align:middle;width:250px} +.dialog.svelte-1zczyanbmvbtr{position:fixed;display:flex;z-index:10;background-color:#f0f0f066;justify-content:center;align-items: center;padding-bottom:5%;inset:0}.dialog.svelte-1zczyanbmvbtr.expanded{padding-bottom:0}.dialog.svelte-1zczyanbmvbtr~main{filter:blur(8px)}.dialog.svelte-1zczyanbmvbtr form{position:relative;background-color:#f5faff;border:2px solid #b3d9ff;border-radius:10px;padding:15px 25px}.dialog.svelte-1zczyanbmvbtr .close{position:absolute;color:#80bfff;opacity:.6;top:5px;right:5px}.dialog.svelte-1zczyanbmvbtr .close:hover{color:#4ca6ff;opacity:1}.dialog.svelte-1zczyanbmvbtr p{text-align:center;line-height:125%}.dialog.svelte-1zczyanbmvbtr h2{text-align:center;margin-bottom:25px;padding-right:10px;font-size:13pt;font-weight:600}.dialog.svelte-1zczyanbmvbtr input[type=text]{border:1px solid #d6d6d6;border-radius:4px;width:200px;margin:0 15px;padding:5px 6px;font-size:11pt}.dialog.svelte-1zczyanbmvbtr input[type=password]{border:1px solid #d6d6d6;border-radius:4px;width:200px;margin:0 15px;padding:5px 6px;font-size:11pt}.dialog.svelte-1zczyanbmvbtr p.submit{margin-top:25px}.dialog.svelte-1zczyanbmvbtr input[type=submit]{background-color:#d6ebff;border:1px solid #b6d9fb;border-radius:4px;width:150px;padding:5px 6px;font-size:11pt}.dialog.svelte-1zczyanbmvbtr input[type=submit]:hover{background-color:#cce6ff;border:1px solid #a8d1fa}.dialog.svelte-1zczyanbmvbtr input[type=submit]:active{background-color:#bddeff;border:1px solid #9eccfa}@media (prefers-color-scheme:dark){.dialog.svelte-1zczyanbmvbtr{background-color:#f0f0f026}.dialog.svelte-1zczyanbmvbtr form{background-color:#384047;border-color:#52667a}.dialog.svelte-1zczyanbmvbtr .close{color:#79a6d2;opacity:.6}.dialog.svelte-1zczyanbmvbtr .close:hover{color:#85b3e0;opacity:1}.dialog.svelte-1zczyanbmvbtr input[type=text]{border-color:#666}.dialog.svelte-1zczyanbmvbtr input[type=password]{border-color:#666}.dialog.svelte-1zczyanbmvbtr input[type=submit]{background-color:#2a5a8a;border-color:#3a6a9a}.dialog.svelte-1zczyanbmvbtr input[type=submit]:hover{background-color:#3a6a9a;border-color:#4a7aaa}.dialog.svelte-1zczyanbmvbtr input[type=submit]:active{background-color:#2a5a8a;border-color:#1a4a7a}}form.svelte-1dbou6z4h1v2{width:400px}.dialog p.submit.svelte-1dbou6z4h1v2{margin-top:40px;margin-bottom:20px}.dialog input[type=submit].svelte-1dbou6z4h1v2{width:180px;margin-left:5px;margin-right:5px}p.info.svelte-2qjb5vuwmm7pw{font-size:9pt}p.info.svelte-2qjb5vuwmm7pw a:where(.svelte-2qjb5vuwmm7pw){color:#666}.cloudy.svelte-2qjb5vuwmm7pw{color:#99bfe6;margin:14px 0}.info-box.svelte-2qjb5vuwmm7pw{background-color:#fffceb;border:1px solid #fc3;border-radius:6px;width:360px;font-size:11pt}.info-box.svelte-2qjb5vuwmm7pw p:where(.svelte-2qjb5vuwmm7pw){text-align:left;margin:15px}@media (prefers-color-scheme:dark){p.info.svelte-2qjb5vuwmm7pw a:where(.svelte-2qjb5vuwmm7pw){color:#888}.cloudy.svelte-2qjb5vuwmm7pw{color:#99bfe6}.info-box.svelte-2qjb5vuwmm7pw{background-color:#6b612e;border-color:#e6ac00}.info-box.svelte-2qjb5vuwmm7pw a:where(.svelte-2qjb5vuwmm7pw){color:#ffbf00}}li.svelte-2oxniw1nprfwt .button:where(.svelte-2oxniw1nprfwt){display:inline-block;color:#333;background-color:#000a141f;border:1px solid #bbb;border-radius:5px;margin-top:8px;padding:3px 5px;font-size:11pt}li.svelte-2oxniw1nprfwt .button:where(.svelte-2oxniw1nprfwt):hover{text-decoration:none;background-color:#000a1433}@media (prefers-color-scheme:dark){li.svelte-2oxniw1nprfwt .button:where(.svelte-2oxniw1nprfwt){color:#ccc;background-color:#99ccff14;border-color:#52667a}li.svelte-2oxniw1nprfwt .button:where(.svelte-2oxniw1nprfwt):hover{color:#fff;background-color:#99ccff26;border-color:#6a85a0}li.svelte-2oxniw1nprfwt .button:where(.svelte-2oxniw1nprfwt):active{color:#fff;background-color:#99ccff0d;border-color:#3a5168}}#account.svelte-39wlrotalwj0t{position:fixed;z-index:20;user-select:none;-webkit-user-select:none;line-height:24px;top:10px;left:10px}#account.svelte-39wlrotalwj0t i:where(.svelte-39wlrotalwj0t){opacity:.4}#account.svelte-39wlrotalwj0t i:where(.svelte-39wlrotalwj0t):hover{cursor:pointer;opacity:.6}#account.svelte-39wlrotalwj0t img.avatar{border-radius:13px;width:24px;height:24px;box-shadow:0 0 2px #000}#account_menu.svelte-39wlrotalwj0t{position:fixed;visibility:hidden;z-index:15;user-select:none;-webkit-user-select:none;background:#ebf0f5;border:1px solid #ccc;border-radius:5px;padding-top:30px;top:5px;left:5px}#account_menu.svelte-39wlrotalwj0t ul:where(.svelte-39wlrotalwj0t){list-style-type:none;margin:0 0 10px;padding:6px 11px}#account_menu.svelte-39wlrotalwj0t li:not(.link)+li.link{border-top:1px solid #ccc;margin-top:16px;padding-top:10px}li.link.svelte-39wlrotalwj0t{margin-top:8px;margin-left:2px}li.link.svelte-39wlrotalwj0t a:where(.svelte-39wlrotalwj0t){color:#333;font-size:11pt}@media (prefers-color-scheme:dark){#account_menu.svelte-39wlrotalwj0t{background:#383f47;border-color:#52667a}li.link.svelte-39wlrotalwj0t a:where(.svelte-39wlrotalwj0t){color:#ccc}#account_menu.svelte-39wlrotalwj0t li:not(.link)+li.link{border-top-color:#52667a}}#loader.svelte-1sl84wlrv68d4{position:fixed;width:36px;height:36px;margin:auto;inset:0}#loader.svelte-1sl84wlrv68d4 img:where(.svelte-1sl84wlrv68d4){animation:rotation 3s infinite linear;width:36px}@media (prefers-color-scheme:dark){#loader.svelte-1sl84wlrv68d4{filter:invert()}}.edge.svelte-2ac5zurqv2ncl{position:absolute;width:6px;top:30px;bottom:0;left:-2px}.line.svelte-2ac5zurqv2ncl{position:absolute;border-left:1px solid #aaa;top:0;bottom:0;left:2px}.edge.svelte-2ac5zurqv2ncl:hover .line:where(.svelte-2ac5zurqv2ncl){border-left:2px solid #888}.plus.svelte-2ac5zurqv2ncl{position:absolute;width:14px;top:8px;left:-6px}.post.collapsed .line.svelte-2ac5zurqv2ncl,.post.flat>.margin.svelte-2ac5zurqv2ncl{display:none}@media (prefers-color-scheme:dark){.line.svelte-2ac5zurqv2ncl{border-left-color:#666}.edge.svelte-2ac5zurqv2ncl:hover .line:where(.svelte-2ac5zurqv2ncl){border-left-color:#888}.plus.svelte-2ac5zurqv2ncl{filter:invert()}}.fedi-link.svelte-1ssytx46btagw{display:inline-block;margin-top:2px;margin-bottom:6px}.fedi-link.svelte-1ssytx46btagw:hover{text-decoration:none}div.svelte-1ssytx46btagw{color:#555;border:1px solid #d0d0d0;border-radius:8px;padding:5px 9px;font-size:10pt}i.svelte-1ssytx46btagw{margin-right:3px}.fedi-link.svelte-1ssytx46btagw:hover div:where(.svelte-1ssytx46btagw){background-color:#f6f7f8;border:1px solid #c8c8c8}@media (prefers-color-scheme:dark){div.svelte-1ssytx46btagw{color:#909090;border-color:#606060}.fedi-link.svelte-1ssytx46btagw:hover div:where(.svelte-1ssytx46btagw){background-color:#444;border-color:#909090}}.hidden-replies.svelte-29k9heaj3bdpw{margin-top:20px;font-size:11pt}.hidden-replies.svelte-29k9heaj3bdpw a:where(.svelte-29k9heaj3bdpw){color:#8b4513;font-size:12pt}@media (prefers-color-scheme:dark){.hidden-replies.svelte-29k9heaj3bdpw a:where(.svelte-29k9heaj3bdpw){color:#a14d12}}pre.svelte-3accd2686n9af{overflow-x:auto;background-color:#0000000f;border:1px solid #0000000f;border-radius:6px;max-width:60em;padding:8px 10px}code.svelte-3accd2686n9af{display:block;white-space:pre;background-color:#0000;border-radius:0;padding:0;font-family:ui-monospace,Consolas,Liberation Mono,Menlo,monospace;font-size:.88em;line-height:150%}code.svelte-3accd2686n9af .hljs-keyword,code.svelte-3accd2686n9af .hljs-selector-tag,code.svelte-3accd2686n9af .hljs-title.function_{color:#9d174d}code.svelte-3accd2686n9af .hljs-built_in,code.svelte-3accd2686n9af .hljs-title.class_,code.svelte-3accd2686n9af .hljs-type{color:#7c3aed}code.svelte-3accd2686n9af .hljs-string,code.svelte-3accd2686n9af .hljs-attr,code.svelte-3accd2686n9af .hljs-symbol{color:#047857}code.svelte-3accd2686n9af .hljs-number,code.svelte-3accd2686n9af .hljs-literal{color:#b45309}code.svelte-3accd2686n9af .hljs-comment,code.svelte-3accd2686n9af .hljs-quote{color:#6b7280;font-style:italic}code.svelte-3accd2686n9af .hljs-meta,code.svelte-3accd2686n9af .hljs-tag,code.svelte-3accd2686n9af .hljs-name{color:#0369a1}@media (prefers-color-scheme:dark){pre.svelte-3accd2686n9af{background-color:#ffffff1a;border-color:#ffffff1a}code.svelte-3accd2686n9af .hljs-keyword,code.svelte-3accd2686n9af .hljs-selector-tag,code.svelte-3accd2686n9af .hljs-title.function_{color:#f472b6}code.svelte-3accd2686n9af .hljs-built_in,code.svelte-3accd2686n9af .hljs-title.class_,code.svelte-3accd2686n9af .hljs-type{color:#c4b5fd}code.svelte-3accd2686n9af .hljs-string,code.svelte-3accd2686n9af .hljs-attr,code.svelte-3accd2686n9af .hljs-symbol{color:#6ee7b7}code.svelte-3accd2686n9af .hljs-number,code.svelte-3accd2686n9af .hljs-literal{color:#fbbf24}code.svelte-3accd2686n9af .hljs-comment,code.svelte-3accd2686n9af .hljs-quote{color:#9ca3af}code.svelte-3accd2686n9af .hljs-meta,code.svelte-3accd2686n9af .hljs-tag,code.svelte-3accd2686n9af .hljs-name{color:#7dd3fc}}code.svelte-3groxs92wkydp{background-color:#0000000f;border:1px solid #0000000f;border-radius:4px;margin-inline-start:2px;margin-inline-end:2px;padding:1px 3px;font-family:ui-monospace,Consolas,Liberation Mono,Menlo,monospace;font-size:.88em}@media (prefers-color-scheme:dark){code.svelte-3groxs92wkydp{background-color:#ffffff1f;border-color:#ffffff1a}}div.body.svelte-3ryb58k7944t1{margin-top:10px;margin-bottom:1em}.bridged-body.svelte-3ryb58k7944t1 p+p{margin-top:18px}::highlight(search-results){background-color:#ffff00bf}@media (prefers-color-scheme:dark){::highlight(search-results){background-color:#ffff0059}}.profile-popover.svelte-19f7uj1xneaep{position:fixed;box-sizing:border-box;position-anchor:--profile-popover-anchor;position-area:bottom center;position-try-fallbacks:top center;margin:unset;background:#fff;border:1px solid #ddd;border-radius:12px;width:400px;margin-top:6px;margin-bottom:6px;box-shadow:0 7px 20px #00000029}.contents.svelte-19f7uj1xneaep{display:flex;gap:15px;padding:14px 12px 14px 14px}.avatar-column.svelte-19f7uj1xneaep{flex:none}.avatar.svelte-19f7uj1xneaep{display:block;border-radius:32px;width:64px;height:64px}.main-column.svelte-19f7uj1xneaep{min-width:0}h3.svelte-19f7uj1xneaep{margin:0;font-size:15pt;line-height:1.2}.handle.svelte-19f7uj1xneaep{color:#666;margin-top:2px;font-size:11pt}.main-column.svelte-19f7uj1xneaep p:where(.svelte-19f7uj1xneaep){color:#333;margin:14px 0 0;font-size:11pt;line-height:1.45}.pronouns.svelte-19f7uj1xneaep{color:#9a9a9a;margin-top:4px;font-size:10.5pt}.no-avatar.svelte-19f7uj1xneaep,.muted-avatar.svelte-19f7uj1xneaep{color:#aaa;vertical-align:middle;background-color:#eee;border-radius:36px}.muted-avatar.svelte-19f7uj1xneaep{color:#bbb}@media (prefers-color-scheme:dark){.profile-popover.svelte-19f7uj1xneaep{background:#333;border-color:#4a4a4a;box-shadow:0 7px 20px #0006}.handle.svelte-19f7uj1xneaep{color:#aaa}.pronouns.svelte-19f7uj1xneaep{color:#7f7f7f}.main-column.svelte-19f7uj1xneaep p:where(.svelte-19f7uj1xneaep){color:#ddd}}.post-header.svelte-10jl9as42pjg2{anchor-scope:--profile-popover-anchor}h2.svelte-10jl9as42pjg2{margin-bottom:0;font-size:12pt}.avatar.svelte-10jl9as42pjg2{vertical-align:middle;border-radius:16px;width:32px;height:32px;margin-bottom:3px;margin-right:4px}.no-avatar.svelte-10jl9as42pjg2,.muted-avatar.svelte-10jl9as42pjg2{color:#aaa;vertical-align:middle;background-color:#eee;border-radius:16px;margin-right:4px}.muted-avatar.svelte-10jl9as42pjg2{color:#bbb}.handle.svelte-10jl9as42pjg2{color:#888;vertical-align:text-top;font-size:11pt;font-weight:400}.mastodon.svelte-10jl9as42pjg2{position:relative;width:15px;margin-left:3px;top:2px}.time.svelte-10jl9as42pjg2{color:#666;vertical-align:text-top;font-size:10pt;font-weight:400}@media (prefers-color-scheme:dark){.handle.svelte-10jl9as42pjg2,.separator.svelte-10jl9as42pjg2{color:#888}.time.svelte-10jl9as42pjg2{color:#aaa}h2.svelte-10jl9as42pjg2 .action{color:#888}}a.svelte-3d455ypfy1g8s{color:#333;background-color:#f0f7fe;border:1px solid #b6d3fb;border-radius:6px;margin-right:5px;padding:3px 7px;font-size:10pt}a.svelte-3d455ypfy1g8s:hover{text-decoration:none;background-color:#ddedfd}.stats.svelte-1tsy42z5eauyq{color:#666;font-size:10pt}a.svelte-1tsy42z5eauyq{color:#666;text-decoration:none}a.svelte-1tsy42z5eauyq:hover{text-decoration:underline}i.svelte-1tsy42z5eauyq{color:#888;font-size:9pt}i.fa-heart.svelte-1tsy42z5eauyq{color:#aaa}i.fa-heart.liked.svelte-1tsy42z5eauyq{color:#e03030}i.fa-heart.svelte-1tsy42z5eauyq:hover{color:#888;cursor:pointer}i.fa-heart.liked.svelte-1tsy42z5eauyq:hover{color:#c02020}span.svelte-1tsy42z5eauyq{margin-right:7px}.blocked-info.svelte-1tsy42z5eauyq{color:#a02020;margin-left:5px;font-weight:700}@media (prefers-color-scheme:dark){.stats.svelte-1tsy42z5eauyq{color:#aaa}i.svelte-1tsy42z5eauyq{color:#888}i.fa-heart.svelte-1tsy42z5eauyq{color:#aaa}i.fa-heart.liked.svelte-1tsy42z5eauyq{color:#f04040}i.fa-heart.svelte-1tsy42z5eauyq:hover{color:#eee}i.fa-heart.liked.svelte-1tsy42z5eauyq:hover{color:#ff7070}}.image-alt.svelte-3o2regxzbqbr0{color:#666;margin-bottom:20px;font-size:11pt}.image-alt.svelte-3o2regxzbqbr0 summary:where(.svelte-3o2regxzbqbr0){color:#666;user-select:none;-webkit-user-select:none;cursor:default;margin-bottom:5px;font-size:11pt}@media (prefers-color-scheme:dark){.image-alt.svelte-3o2regxzbqbr0{color:#999}.image-alt.svelte-3o2regxzbqbr0 summary:where(.svelte-3o2regxzbqbr0){color:#999}}.gif-player.svelte-qz3gnbyjesf9{position:relative}.placeholder.svelte-qz3gnbyjesf9{appearance:none;display:block;cursor:pointer;background-color:#fcfcfd;border:1px solid #d8d8d8;border-radius:8px;width:250px;min-height:125px;margin-bottom:12px;padding:25px 20px}.placeholder.svelte-qz3gnbyjesf9:hover{background-color:#f6f7f8;border:1px solid #c8c8c8}.placeholder.loading.svelte-qz3gnbyjesf9{visibility:hidden}.placeholder.svelte-qz3gnbyjesf9 h2:where(.svelte-qz3gnbyjesf9){color:#666;margin-top:0;margin-bottom:0;font-size:11pt;font-weight:600}.placeholder.svelte-qz3gnbyjesf9 p.alt:where(.svelte-qz3gnbyjesf9){color:#666;white-space:pre-line;margin-top:8px;margin-bottom:4px;font-size:11pt;line-height:135%}.gif-wrapper.svelte-qz3gnbyjesf9{appearance:none;cursor:pointer;background:0 0;border:0;padding:0}.gif-wrapper.loading.svelte-qz3gnbyjesf9{position:absolute;opacity:0}.gif-wrapper.svelte-qz3gnbyjesf9 img:where(.svelte-qz3gnbyjesf9){user-select:none;-webkit-user-select:none}.gif-wrapper.svelte-qz3gnbyjesf9 img.static:where(.svelte-qz3gnbyjesf9){opacity:.8}@media (prefers-color-scheme:dark){.placeholder.svelte-qz3gnbyjesf9{background-color:#303030;border-color:#606060}.placeholder.svelte-qz3gnbyjesf9:hover{background-color:#383838;border-color:#707070}.placeholder.svelte-qz3gnbyjesf9 h2:where(.svelte-qz3gnbyjesf9){color:#bbb}.placeholder.svelte-qz3gnbyjesf9 p.alt:where(.svelte-qz3gnbyjesf9){color:#888}}.quote-embed.svelte-767shvs6ixvg{background-color:#fbfcfd;border:1px solid #ddd;border-radius:8px;max-width:800px;margin-top:25px;margin-bottom:15px;margin-left:0}.quote-embed.svelte-767shvs6ixvg .post{margin-top:16px;padding-bottom:5px;padding-left:16px;padding-right:16px}.placeholder.svelte-767shvs6ixvg{color:#888;font-size:11pt;font-style:italic}@media (prefers-color-scheme:dark){.quote-embed.svelte-767shvs6ixvg{background-color:#303030;border-color:#606060}}.embed.svelte-1k40bdrlabc6f a.link-card{display:block;position:relative;max-width:500px;margin-bottom:12px}.embed.svelte-1k40bdrlabc6f a.link-card:hover{text-decoration:none}.embed.svelte-1k40bdrlabc6f a.link-card>div{background-color:#fcfcfd;border:1px solid #d8d8d8;border-radius:8px;padding:11px 15px}.embed.svelte-1k40bdrlabc6f a.link-card:hover>div{background-color:#f6f7f8;border:1px solid #c8c8c8}.embed.svelte-1k40bdrlabc6f a.link-card>div:not(:has(p.description)){padding-bottom:14px}.embed.svelte-1k40bdrlabc6f a.link-card p.domain{color:#888;margin-top:1px;margin-bottom:5px;font-size:10pt}.embed.svelte-1k40bdrlabc6f a.link-card h2{color:#333;margin-top:8px;margin-bottom:0;font-size:12pt}.embed.svelte-1k40bdrlabc6f a.link-card p.description{color:#666;white-space:pre-line;margin-top:8px;margin-bottom:4px;font-size:11pt;line-height:135%}.embed.svelte-1k40bdrlabc6f a.link-card.record>div:has(.avatar){padding-left:65px}.embed.svelte-1k40bdrlabc6f a.link-card.record h2{margin-top:3px}.embed.svelte-1k40bdrlabc6f a.link-card.record .handle{color:#666;vertical-align:text-top;margin-left:1px;font-size:11pt;font-weight:400}.embed.svelte-1k40bdrlabc6f a.link-card.record .avatar{position:absolute;border:1px solid #ddd;border-radius:6px;width:36px;height:36px;top:15px;left:15px}.embed.svelte-1k40bdrlabc6f a.link-card.record .stats{color:#666;margin-top:9px;margin-bottom:1px;font-size:10pt}.embed.svelte-1k40bdrlabc6f a.link-card.record .stats i.fa-heart{color:#aaa;font-size:9pt}@media (prefers-color-scheme:dark){.embed.svelte-1k40bdrlabc6f a.link-card>div{background-color:#303030;border-color:#606060}.embed.svelte-1k40bdrlabc6f a.link-card:hover>div{background-color:#383838;border-color:#707070}.embed.svelte-1k40bdrlabc6f a.link-card p.domain{color:#666}.embed.svelte-1k40bdrlabc6f a.link-card h2{color:#ccc}.embed.svelte-1k40bdrlabc6f a.link-card p.description{color:#888}.embed.svelte-1k40bdrlabc6f a.link-card.record .handle{color:#666}.embed.svelte-1k40bdrlabc6f a.link-card.record .avatar{border-color:#888}}.post.blocked.svelte-15n9djnirzicp p{color:#666;font-size:11pt}.post.blocked.svelte-15n9djnirzicp a{color:#666;font-size:11pt}@media (prefers-color-scheme:dark){.post.blocked.svelte-15n9djnirzicp p{color:#aaa}.post.blocked.svelte-15n9djnirzicp a{color:#aaa}}.post p{margin-top:10px}.post .blocked-header i{margin-right:2px}.post h2 .separator,.post .blocked-header .separator,.blocked-header .separator{color:#888;vertical-align:text-top;font-size:11pt;font-weight:400}.post h2 .action,.post .blocked-header .action,.blocked-header .action{color:#888;vertical-align:text-top;font-size:10pt;font-weight:400}.post h2 .action:hover,.post .blocked-header .action:hover,.blocked-header .action:hover{color:#444}.post{position:relative;margin-top:30px;padding-left:21px}.post.collapsed.svelte-3ku6eocqz927i .content:where(.svelte-3ku6eocqz927i){display:none}.post.flat.svelte-3ku6eocqz927i{margin-top:25px;padding-left:0}.post.muted.svelte-3ku6eocqz927i>h2{opacity:.3;font-weight:600}.post.muted.svelte-3ku6eocqz927i>.content>details>p,.post.muted.svelte-3ku6eocqz927i>.content>details summary{opacity:.3}details.svelte-3ku6eocqz927i{margin-top:12px;margin-bottom:10px}summary.svelte-3ku6eocqz927i{user-select:none;-webkit-user-select:none;cursor:default;font-size:10pt}.original-text.svelte-3ku6eocqz927i{margin-top:20px;margin-bottom:20px}.original-text.svelte-3ku6eocqz927i summary:where(.svelte-3ku6eocqz927i){color:#e06000;font-size:11pt}.original-body.svelte-3ku6eocqz927i{font-size:11pt}.missing-replies-info.svelte-3ku6eocqz927i{color:#8b0000;margin-top:25px;font-size:11pt}.missing-replies-links.svelte-3ku6eocqz927i{list-style-type:none;color:#666;padding-left:10px;font-size:11pt}.missing-replies-links.svelte-3ku6eocqz927i li:where(.svelte-3ku6eocqz927i){margin-block-start:5px;margin-block-end:5px}.needs-review.svelte-3ku6eocqz927i{display:inline-block;background-color:#ff00001a;border:1px solid #f88;border-radius:8px;margin-bottom:0;padding:3px 4px;font-size:11pt}.post.svelte-3ku6eocqz927i img.loader{animation:rotation 3s infinite linear;width:24px;margin-top:5px}.hashtag.svelte-2cy8gir839nsk>.post{border-bottom:1px solid #ddd;padding-bottom:10px}#search.svelte-20y046s055ja6{position:fixed;display:flex;justify-content:center;align-items: center;padding-bottom:5%;inset:0}form.svelte-20y046s055ja6{border:2px solid #9cf;border-radius:10px;margin-left:50px;padding:15px 20px}input.svelte-20y046s055ja6{border:0;width:600px;margin-left:8px;font-size:16pt}input.svelte-20y046s055ja6:focus{outline:none}@media (prefers-color-scheme:dark){form.svelte-20y046s055ja6{border-color:#7099c2}form.svelte-20y046s055ja6 input:where(.svelte-20y046s055ja6){background-color:#0000}}.scan-result.svelte-upm7aqvky2i6{table-layout:fixed;border-collapse:collapse;border:1px solid #333;width:100%;margin:20px auto}.col-no.svelte-upm7aqvky2i6{width:3.25em}.col-count.svelte-upm7aqvky2i6{width:3.5em}td.svelte-upm7aqvky2i6,th.svelte-upm7aqvky2i6{border:1px solid #333;padding:5px 10px}th.svelte-upm7aqvky2i6{text-align:center;background-color:#b8dfff;padding:12px 10px}td.no.svelte-upm7aqvky2i6{text-align:right;font-weight:700}td.handle.svelte-upm7aqvky2i6{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}td.count.svelte-upm7aqvky2i6{text-align:right;padding:5px 15px}.avatar.svelte-upm7aqvky2i6{vertical-align:middle;border-radius:14px;width:24px;height:24px;margin-right:2px;padding:2px}@media (prefers-color-scheme:dark){.scan-result.svelte-upm7aqvky2i6,td.svelte-upm7aqvky2i6,th.svelte-upm7aqvky2i6{border-color:#888}th.svelte-upm7aqvky2i6{background-color:#064579}}input[type=range].svelte-1o8r16sjh9d45{vertical-align:middle;width:250px}input[type=submit].svelte-1o8r16sjh9d45{margin:5px 0;padding:5px 10px;font-size:12pt}progress.svelte-1o8r16sjh9d45{vertical-align:middle;display:none;width:300px;margin-left:10px}.like-stats-results.svelte-1o8r16sjh9d45{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:100px;width:100%}.table-pane.svelte-1o8r16sjh9d45{min-width:0}.load-more.svelte-1o8r16sjh9d45{text-align:center}.search-page.svelte-geig8bptdwj6 input[type=submit]{margin:5px 0;padding:5px 10px;font-size:12pt}.search-page.svelte-geig8bptdwj6 progress{vertical-align:middle;width:300px;margin-left:10px}.search-page.svelte-geig8bptdwj6 .search-query{border:1px solid #ccc;border-radius:6px;margin-left:8px;padding:5px 6px;font-size:12pt}.search-page.svelte-geig8bptdwj6 .results{margin-top:30px}.search-page.svelte-geig8bptdwj6 .results>.post{border-bottom:1px solid #ddd;margin-top:24px;margin-left:-15px;padding-bottom:10px;padding-left:15px}.search-page.svelte-geig8bptdwj6 .results-end{color:#333;font-size:12pt}.search-page.svelte-geig8bptdwj6 .post+.results-end{font-size:11pt}@media (prefers-color-scheme:dark){.search-page.svelte-geig8bptdwj6 .search-query{border:1px solid #666}.search-page.svelte-geig8bptdwj6 .results-end{color:#888}.search-page.svelte-geig8bptdwj6 .results>.post{border-bottom:1px solid #555}}.search-collections.svelte-1xaglya9rfxfs label:where(.svelte-1xaglya9rfxfs){vertical-align:middle;margin-right:5px}.lycan-import.svelte-1xaglya9rfxfs{border-top:1px solid #ccc;margin-top:30px;padding-top:5px}.lycan-import.svelte-1xaglya9rfxfs form:where(.svelte-1xaglya9rfxfs) p:where(.svelte-1xaglya9rfxfs){line-height:135%}.import-progress.svelte-1xaglya9rfxfs progress:where(.svelte-1xaglya9rfxfs){margin-left:0;margin-right:6px}.import-progress.svelte-1xaglya9rfxfs progress:where(.svelte-1xaglya9rfxfs)+output:where(.svelte-1xaglya9rfxfs){font-size:11pt}@media (prefers-color-scheme:dark){.lycan-import.svelte-1xaglya9rfxfs{border-top-color:#888}}.notifications.svelte-3q0ai2k4d1d8n .post{border-bottom:1px solid #ddd;margin-top:24px;padding-bottom:4px}.notifications.svelte-3q0ai2k4d1d8n .back{margin-top:15px;margin-bottom:-12px;margin-left:22px}.notifications.svelte-3q0ai2k4d1d8n .back{font-size:10pt}.notifications.svelte-3q0ai2k4d1d8n .back a{font-size:10pt}.notifications.svelte-3q0ai2k4d1d8n .back i{margin-right:2px;font-size:9pt}.user-choice.svelte-2z5j67wda5rm6{position:relative}input.svelte-2z5j67wda5rm6{width:260px;font-size:11pt}.autocomplete.svelte-2z5j67wda5rm6{position:absolute;overflow-y:auto;z-index:10;background-color:#fff;border:1px solid #ccc;width:350px;max-height:250px;margin-top:4px;top:0;left:0}.selected-users.svelte-2z5j67wda5rm6{overflow-y:auto;border:1px solid #aaa;width:275px;height:150px;margin-top:20px;padding:4px}.user-row.svelte-2z5j67wda5rm6{position:relative;cursor:pointer;padding:2px 4px 2px 37px}.user-row.svelte-2z5j67wda5rm6 .avatar:where(.svelte-2z5j67wda5rm6){position:absolute;border-radius:12px;width:24px;top:8px;left:6px}.user-row.svelte-2z5j67wda5rm6 span:where(.svelte-2z5j67wda5rm6){display:block;overflow-x:hidden;text-overflow:ellipsis}.user-row.svelte-2z5j67wda5rm6 .name:where(.svelte-2z5j67wda5rm6){margin-top:1px;margin-bottom:1px;font-size:11pt}.user-row.svelte-2z5j67wda5rm6 .handle:where(.svelte-2z5j67wda5rm6){color:#666;margin-bottom:2px;font-size:10pt}.autocomplete.svelte-2z5j67wda5rm6 .user-row:where(.svelte-2z5j67wda5rm6){cursor:pointer}.autocomplete.svelte-2z5j67wda5rm6 .user-row.highlighted:where(.svelte-2z5j67wda5rm6){background-color:#b3ddff}.selected-users.svelte-2z5j67wda5rm6 .user-row:where(.svelte-2z5j67wda5rm6) span:where(.svelte-2z5j67wda5rm6){padding-right:14px}.selected-users.svelte-2z5j67wda5rm6 .user-row:where(.svelte-2z5j67wda5rm6) .remove:where(.svelte-2z5j67wda5rm6){position:absolute;color:#333;padding:0 4px;line-height:17px;top:11px;right:4px}.selected-users.svelte-2z5j67wda5rm6 .user-row:where(.svelte-2z5j67wda5rm6) .remove:where(.svelte-2z5j67wda5rm6):hover{text-decoration:none;background-color:#ddd;border-radius:8px}@media (prefers-color-scheme:dark){.autocomplete.svelte-2z5j67wda5rm6{background-color:#2c2e30;border-color:#4b4b4b}.selected-users.svelte-2z5j67wda5rm6{border-color:#666}.user-row.svelte-2z5j67wda5rm6 .handle:where(.svelte-2z5j67wda5rm6){color:#888}.autocomplete.svelte-2z5j67wda5rm6 .user-row.highlighted:where(.svelte-2z5j67wda5rm6){background-color:#064579}.selected-users.svelte-2z5j67wda5rm6 .user-row:where(.svelte-2z5j67wda5rm6) .remove:where(.svelte-2z5j67wda5rm6){color:#aaa}.selected-users.svelte-2z5j67wda5rm6 .user-row:where(.svelte-2z5j67wda5rm6) .remove:where(.svelte-2z5j67wda5rm6):hover{color:#bbb;background-color:#555}}.scan-result.svelte-3u8wzgp5meuu{border-collapse:collapse;border:1px solid #333}td.svelte-3u8wzgp5meuu,th.svelte-3u8wzgp5meuu{border:1px solid #333}td.svelte-3u8wzgp5meuu{text-align:right;padding:5px 8px}th.svelte-3u8wzgp5meuu{text-align:center;background-color:#b8dfff;padding:7px 10px}td.handle.svelte-3u8wzgp5meuu{text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:450px}tr.total.svelte-3u8wzgp5meuu td:where(.svelte-3u8wzgp5meuu){background-color:#b8dfff66;font-size:11pt;font-weight:700}tr.total.svelte-3u8wzgp5meuu td.handle:where(.svelte-3u8wzgp5meuu){text-align:left;padding:10px 12px}.avatar.svelte-3u8wzgp5meuu{vertical-align:middle;border-radius:14px;width:24px;height:24px;margin-right:2px;padding:2px}td.no.svelte-3u8wzgp5meuu{font-weight:700}td.percent.svelte-3u8wzgp5meuu{min-width:70px}@media (prefers-color-scheme:dark){.scan-result.svelte-3u8wzgp5meuu,td.svelte-3u8wzgp5meuu,th.svelte-3u8wzgp5meuu{border-color:#888}th.svelte-3u8wzgp5meuu{background-color:#064579}tr.total.svelte-3u8wzgp5meuu td:where(.svelte-3u8wzgp5meuu){background-color:#06457966}}input[type=radio].svelte-936eaahz55lf{position:relative;margin-left:5px;top:-1px}input[type=radio].svelte-936eaahz55lf+label:where(.svelte-936eaahz55lf){user-select:none;-webkit-user-select:none;margin-right:4px}input[type=range].svelte-936eaahz55lf{vertical-align:middle;width:250px}input[type=submit].svelte-936eaahz55lf{margin:5px 0;padding:5px 10px;font-size:12pt}select.svelte-936eaahz55lf{margin-left:5px;font-size:12pt}progress.svelte-936eaahz55lf{vertical-align:middle;width:300px;margin-left:10px}.scan-info.svelte-936eaahz55lf{margin:20px 0;font-weight:600;line-height:125%}.quotes.svelte-3bl0i96onoebm p.back{padding-left:10px}.quotes.svelte-3bl0i96onoebm .post{padding-bottom:5px}.quotes.svelte-3bl0i96onoebm .post-quote .quote-embed,.quotes.svelte-3bl0i96onoebm .post-quote p.stats{display:none}#tangled.svelte-14j5zro1yllpd{position:fixed;z-index:10;bottom:10px;right:10px}img.svelte-14j5zro1yllpd{opacity:.4;width:20px}a.svelte-14j5zro1yllpd:hover img:where(.svelte-14j5zro1yllpd){opacity:.6}@media (prefers-color-scheme:dark){#tangled.svelte-14j5zro1yllpd{filter:invert()}}input[type=range].svelte-27yj0b3y75jqg{vertical-align:middle;width:250px} diff --git a/dist/skythread.js b/dist/skythread.js index e88415f..352bad9 100644 --- a/dist/skythread.js +++ b/dist/skythread.js @@ -1,55 +1,68 @@ -(()=>{var m=!1;var H5=Array.isArray,aJ=Array.prototype.indexOf,U5=Array.prototype.includes,o6=Array.from,D7=Object.keys,V1=Object.defineProperty,S1=Object.getOwnPropertyDescriptor,Mz=Object.getOwnPropertyDescriptors,R7=Object.prototype,rJ=Array.prototype,M6=Object.getPrototypeOf,A7=Object.isExtensible;function C6(z){return typeof z==="function"}var J5=()=>{};function N7(z){return typeof z?.then==="function"}function nJ(z){return z()}function a6(z){for(var J=0;J{z=K,J=X});return{promise:Q,resolve:z,reject:J}}var v0=2,O6=4,t5=8,P6=16777216,h1=16,k1=32,Q5=64,L6=128,j1=512,u0=1024,g0=2048,w1=4096,D1=8192,b1=16384,V5=32768,T1=65536,I6=131072,r6=262144,I5=524288,k7=1048576,S5=33554432,K5=32768,Oz=2097152,f5=4194304,Z5=8388608,e0=Symbol("$state"),n6=Symbol("legacy props"),tJ=Symbol(""),Pz=Symbol("proxy path"),j5=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};var t6=3,R1=8;function Lz(z){if(m){let J=Error(`lifecycle_outside_component +(()=>{var SX=Object.create;var{getPrototypeOf:CX,defineProperty:KQ,getOwnPropertyNames:PX}=Object;var jX=Object.prototype.hasOwnProperty;function LX(z){return this[z]}var IX,DX,PY=(z,J,Q)=>{var K=z!=null&&typeof z==="object";if(K){var Z=J?IX??=new WeakMap:DX??=new WeakMap,X=Z.get(z);if(X)return X}Q=z!=null?SX(CX(z)):{};let w=J||!z||!z.__esModule?KQ(Q,"default",{value:z,enumerable:!0}):Q;for(let Y of PX(z))if(!jX.call(w,Y))KQ(w,Y,{get:LX.bind(z,Y),enumerable:!0});if(K)Z.set(z,w);return w};var jY=(z,J)=>()=>(J||z((J={exports:{}}).exports,J),J.exports);var g=!1;var l6=Array.isArray,ZQ=Array.prototype.indexOf,q5=Array.prototype.includes,O8=Array.from,C7=Object.keys,T1=Object.defineProperty,p1=Object.getOwnPropertyDescriptor,Qz=Object.getOwnPropertyDescriptors,P7=Object.prototype,XQ=Array.prototype,u5=Object.getPrototypeOf,j7=Object.isExtensible;function $5(z){return typeof z==="function"}var J6=()=>{};function L7(z){return typeof z?.then==="function"}function wQ(z){return z()}function S8(z){for(var J=0;J{z=K,J=Z});return{promise:Q,resolve:z,reject:J}}function I7(z,J){if(Array.isArray(z))return z;if(J===void 0||!(Symbol.iterator in z))return Array.from(z);let Q=[];for(let K of z)if(Q.push(K),Q.length===J)break;return Q}var p0=2,D6=4,z5=8,F5=16777216,E1=16,q1=32,Q6=64,C8=128,y1=512,f0=1024,h0=2048,G1=4096,B1=8192,a0=16384,s1=32768,P8=33554432,o1=65536,M5=131072,Zz=262144,p6=524288,D7=1048576,R6=33554432,G6=65536,l5=2097152,B6=4194304,F6=8388608,U1=Symbol("$state"),j8=Symbol("legacy props"),WQ=Symbol(""),Xz=Symbol("proxy path"),wz=Symbol("attributes"),Y9=Symbol("class"),G9=Symbol("style"),B9=Symbol("text"),O5=Symbol("form reset"),R7=Symbol("hmr anchor"),S5=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},p5=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");var d5=3,K6=8;function YQ(z){if(g){let J=Error(`invariant_violation +An invariant violation occurred, meaning Svelte's internal assumptions were flawed. This is a bug in Svelte, not your app — please open an issue at https://github.com/sveltejs/svelte, citing the following message: "${z}" +https://svelte.dev/e/invariant_violation`);throw J.name="Svelte error",J}else throw Error("https://svelte.dev/e/invariant_violation")}function Wz(z){if(g){let J=Error(`lifecycle_outside_component \`${z}(...)\` can only be used during component initialisation -https://svelte.dev/e/lifecycle_outside_component`);throw J.name="Svelte error",J}else throw Error("https://svelte.dev/e/lifecycle_outside_component")}function eJ(){if(m){let z=Error(`missing_context +https://svelte.dev/e/lifecycle_outside_component`);throw J.name="Svelte error",J}else throw Error("https://svelte.dev/e/lifecycle_outside_component")}function GQ(){if(g){let z=Error(`missing_context Context was not set in a parent component -https://svelte.dev/e/missing_context`);throw z.name="Svelte error",z}else throw Error("https://svelte.dev/e/missing_context")}function zQ(){if(m){let z=Error("async_derived_orphan\nCannot create a `$derived(...)` with an `await` expression outside of an effect tree\nhttps://svelte.dev/e/async_derived_orphan");throw z.name="Svelte error",z}else throw Error("https://svelte.dev/e/async_derived_orphan")}function b7(){if(m){let z=Error("bind_invalid_checkbox_value\nUsing `bind:value` together with a checkbox input is not allowed. Use `bind:checked` instead\nhttps://svelte.dev/e/bind_invalid_checkbox_value");throw z.name="Svelte error",z}else throw Error("https://svelte.dev/e/bind_invalid_checkbox_value")}function JQ(){if(m){let z=Error(`derived_references_self +https://svelte.dev/e/missing_context`);throw z.name="Svelte error",z}else throw Error("https://svelte.dev/e/missing_context")}function UQ(){if(g){let z=Error("async_derived_orphan\nCannot create a `$derived(...)` with an `await` expression outside of an effect tree\nhttps://svelte.dev/e/async_derived_orphan");throw z.name="Svelte error",z}else throw Error("https://svelte.dev/e/async_derived_orphan")}function A7(){if(g){let z=Error("bind_invalid_checkbox_value\nUsing `bind:value` together with a checkbox input is not allowed. Use `bind:checked` instead\nhttps://svelte.dev/e/bind_invalid_checkbox_value");throw z.name="Svelte error",z}else throw Error("https://svelte.dev/e/bind_invalid_checkbox_value")}function HQ(){if(g){let z=Error(`derived_references_self A derived value cannot reference itself recursively -https://svelte.dev/e/derived_references_self`);throw z.name="Svelte error",z}else throw Error("https://svelte.dev/e/derived_references_self")}function QQ(z){if(m){let J=Error(`effect_in_teardown +https://svelte.dev/e/derived_references_self`);throw z.name="Svelte error",z}else throw Error("https://svelte.dev/e/derived_references_self")}function k7(z,J,Q){if(g){let K=Error(`each_key_duplicate +${Q?`Keyed each block has duplicate key \`${Q}\` at indexes ${z} and ${J}`:`Keyed each block has duplicate key at indexes ${z} and ${J}`} +https://svelte.dev/e/each_key_duplicate`);throw K.name="Svelte error",K}else throw Error("https://svelte.dev/e/each_key_duplicate")}function VQ(z,J,Q){if(g){let K=Error(`each_key_volatile +Keyed each block has key that is not idempotent — the key for item at index ${z} was \`${J}\` but is now \`${Q}\`. Keys must be the same each time for a given item +https://svelte.dev/e/each_key_volatile`);throw K.name="Svelte error",K}else throw Error("https://svelte.dev/e/each_key_volatile")}function xQ(z){if(g){let J=Error(`effect_in_teardown \`${z}\` cannot be used inside an effect cleanup function -https://svelte.dev/e/effect_in_teardown`);throw J.name="Svelte error",J}else throw Error("https://svelte.dev/e/effect_in_teardown")}function KQ(){if(m){let z=Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw z.name="Svelte error",z}else throw Error("https://svelte.dev/e/effect_in_unowned_derived")}function ZQ(z){if(m){let J=Error(`effect_orphan +https://svelte.dev/e/effect_in_teardown`);throw J.name="Svelte error",J}else throw Error("https://svelte.dev/e/effect_in_teardown")}function qQ(){if(g){let z=Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw z.name="Svelte error",z}else throw Error("https://svelte.dev/e/effect_in_unowned_derived")}function FQ(z){if(g){let J=Error(`effect_orphan \`${z}\` can only be used inside an effect (e.g. during component initialisation) -https://svelte.dev/e/effect_orphan`);throw J.name="Svelte error",J}else throw Error("https://svelte.dev/e/effect_orphan")}function XQ(){if(m){let z=Error(`effect_update_depth_exceeded +https://svelte.dev/e/effect_orphan`);throw J.name="Svelte error",J}else throw Error("https://svelte.dev/e/effect_orphan")}function MQ(){if(g){let z=Error(`effect_update_depth_exceeded Maximum update depth exceeded. This typically indicates that an effect reads and writes the same piece of state -https://svelte.dev/e/effect_update_depth_exceeded`);throw z.name="Svelte error",z}else throw Error("https://svelte.dev/e/effect_update_depth_exceeded")}function wQ(){if(m){let z=Error(`hydration_failed +https://svelte.dev/e/effect_update_depth_exceeded`);throw z.name="Svelte error",z}else throw Error("https://svelte.dev/e/effect_update_depth_exceeded")}function OQ(){if(g){let z=Error(`hydration_failed Failed to hydrate the application -https://svelte.dev/e/hydration_failed`);throw z.name="Svelte error",z}else throw Error("https://svelte.dev/e/hydration_failed")}function WQ(){if(m){let z=Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw z.name="Svelte error",z}else throw Error("https://svelte.dev/e/invalid_snippet")}function YQ(z){if(m){let J=Error(`props_invalid_value +https://svelte.dev/e/hydration_failed`);throw z.name="Svelte error",z}else throw Error("https://svelte.dev/e/hydration_failed")}function SQ(){if(g){let z=Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw z.name="Svelte error",z}else throw Error("https://svelte.dev/e/invalid_snippet")}function CQ(z){if(g){let J=Error(`props_invalid_value Cannot do \`bind:${z}={undefined}\` when \`${z}\` has a fallback value -https://svelte.dev/e/props_invalid_value`);throw J.name="Svelte error",J}else throw Error("https://svelte.dev/e/props_invalid_value")}function GQ(z){if(m){let J=Error(`props_rest_readonly +https://svelte.dev/e/props_invalid_value`);throw J.name="Svelte error",J}else throw Error("https://svelte.dev/e/props_invalid_value")}function PQ(z){if(g){let J=Error(`props_rest_readonly Rest element properties of \`$props()\` such as \`${z}\` are readonly -https://svelte.dev/e/props_rest_readonly`);throw J.name="Svelte error",J}else throw Error("https://svelte.dev/e/props_rest_readonly")}function BQ(z){if(m){let J=Error(`rune_outside_svelte +https://svelte.dev/e/props_rest_readonly`);throw J.name="Svelte error",J}else throw Error("https://svelte.dev/e/props_rest_readonly")}function jQ(z){if(g){let J=Error(`rune_outside_svelte The \`${z}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files -https://svelte.dev/e/rune_outside_svelte`);throw J.name="Svelte error",J}else throw Error("https://svelte.dev/e/rune_outside_svelte")}function HQ(){if(m){let z=Error("set_context_after_init\n`setContext` must be called when a component first initializes, not in a subsequent effect or after an `await` expression\nhttps://svelte.dev/e/set_context_after_init");throw z.name="Svelte error",z}else throw Error("https://svelte.dev/e/set_context_after_init")}function UQ(){if(m){let z=Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw z.name="Svelte error",z}else throw Error("https://svelte.dev/e/state_descriptors_fixed")}function VQ(){if(m){let z=Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw z.name="Svelte error",z}else throw Error("https://svelte.dev/e/state_prototype_fixed")}function qQ(){if(m){let z=Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw z.name="Svelte error",z}else throw Error("https://svelte.dev/e/state_unsafe_mutation")}function FQ(){if(m){let z=Error("svelte_boundary_reset_onerror\nA `` `reset` function cannot be called while an error is still being handled\nhttps://svelte.dev/e/svelte_boundary_reset_onerror");throw z.name="Svelte error",z}else throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}var xQ=1,MQ=2,T7=4,CQ=8,OQ=16,PQ=1,LQ=2,IQ=4,SQ=8,jQ=16;var DQ=1,RQ=2;var b8="[",q5="[!",S6="]",D5={};var b0=Symbol(),m1=Symbol("filename"),AQ=Symbol("hmr"),NQ="http://www.w3.org/1999/xhtml";var E7="@attach";var $5="font-weight: bold",u5="font-weight: normal";function kQ(z,J){if(m)console.warn(`%c[svelte] await_waterfall +https://svelte.dev/e/rune_outside_svelte`);throw J.name="Svelte error",J}else throw Error("https://svelte.dev/e/rune_outside_svelte")}function LQ(){if(g){let z=Error("set_context_after_init\n`setContext` must be called when a component first initializes, not in a subsequent effect or after an `await` expression\nhttps://svelte.dev/e/set_context_after_init");throw z.name="Svelte error",z}else throw Error("https://svelte.dev/e/set_context_after_init")}function IQ(){if(g){let z=Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw z.name="Svelte error",z}else throw Error("https://svelte.dev/e/state_descriptors_fixed")}function DQ(){if(g){let z=Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw z.name="Svelte error",z}else throw Error("https://svelte.dev/e/state_prototype_fixed")}function RQ(){if(g){let z=Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw z.name="Svelte error",z}else throw Error("https://svelte.dev/e/state_unsafe_mutation")}function AQ(){if(g){let z=Error("svelte_boundary_reset_onerror\nA `` `reset` function cannot be called while an error is still being handled\nhttps://svelte.dev/e/svelte_boundary_reset_onerror");throw z.name="Svelte error",z}else throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}var kQ=1,NQ=2,N7=4,bQ=8,TQ=16,EQ=1,yQ=2,vQ=4,gQ=8,hQ=16;var mQ=1,fQ=2;var L8="[",J5="[!",b7="[?",i5="]",d6={};var m0=Symbol("uninitialized"),Z6=Symbol("filename"),uQ=Symbol("hmr"),Yz="http://www.w3.org/1999/xhtml",U9="http://www.w3.org/2000/svg",T7="http://www.w3.org/1998/Math/MathML";var E7="@attach";var A6="font-weight: bold",k6="font-weight: normal";function $Q(z){if(g)console.warn(`%c[svelte] await_reactivity_loss +%cDetected reactivity loss when reading \`${z}\`. This happens when state is read in an async function after an earlier \`await\` +https://svelte.dev/e/await_reactivity_loss`,A6,k6);else console.warn("https://svelte.dev/e/await_reactivity_loss")}function lQ(z,J){if(g)console.warn(`%c[svelte] await_waterfall %cAn async derived, \`${z}\` (${J}) was not read immediately after it resolved. This often indicates an unnecessary waterfall, which can slow down your app -https://svelte.dev/e/await_waterfall`,$5,u5);else console.warn("https://svelte.dev/e/await_waterfall")}function bQ(z,J,Q){if(m)console.warn(`%c[svelte] hydration_attribute_changed +https://svelte.dev/e/await_waterfall`,A6,k6);else console.warn("https://svelte.dev/e/await_waterfall")}function pQ(){if(g)console.warn(`%c[svelte] derived_inert +%cReading a derived belonging to a now-destroyed effect may result in stale values +https://svelte.dev/e/derived_inert`,A6,k6);else console.warn("https://svelte.dev/e/derived_inert")}function dQ(z,J,Q){if(g)console.warn(`%c[svelte] hydration_attribute_changed %cThe \`${z}\` attribute on \`${J}\` changed its value between server and client renders. The client value, \`${Q}\`, will be ignored in favour of the server value -https://svelte.dev/e/hydration_attribute_changed`,$5,u5);else console.warn("https://svelte.dev/e/hydration_attribute_changed")}function TQ(z){if(m)console.warn(`%c[svelte] hydration_html_changed +https://svelte.dev/e/hydration_attribute_changed`,A6,k6);else console.warn("https://svelte.dev/e/hydration_attribute_changed")}function iQ(z){if(g)console.warn(`%c[svelte] hydration_html_changed %c${z?`The value of an \`{@html ...}\` block ${z} changed between server and client renders. The client value will be ignored in favour of the server value`:"The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"} -https://svelte.dev/e/hydration_html_changed`,$5,u5);else console.warn("https://svelte.dev/e/hydration_html_changed")}function e5(z){if(m)console.warn(`%c[svelte] hydration_mismatch +https://svelte.dev/e/hydration_html_changed`,A6,k6);else console.warn("https://svelte.dev/e/hydration_html_changed")}function C5(z){if(g)console.warn(`%c[svelte] hydration_mismatch %c${z?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${z}`:"Hydration failed because the initial UI does not match what was rendered on the server"} -https://svelte.dev/e/hydration_mismatch`,$5,u5);else console.warn("https://svelte.dev/e/hydration_mismatch")}function EQ(){if(m)console.warn(`%c[svelte] lifecycle_double_unmount +https://svelte.dev/e/hydration_mismatch`,A6,k6);else console.warn("https://svelte.dev/e/hydration_mismatch")}function _Q(){if(g)console.warn(`%c[svelte] lifecycle_double_unmount %cTried to unmount a component that was not mounted -https://svelte.dev/e/lifecycle_double_unmount`,$5,u5);else console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function yQ(){if(m)console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",A6,k6);else console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Gz(z){if(g)console.warn(`%c[svelte] state_proxy_equality_mismatch %cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${z}\` will produce unexpected results -https://svelte.dev/e/state_proxy_equality_mismatch`,$5,u5);else console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}function vQ(){if(m)console.warn(`%c[svelte] state_proxy_unmount +https://svelte.dev/e/state_proxy_equality_mismatch`,A6,k6);else console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}function sQ(){if(g)console.warn(`%c[svelte] state_proxy_unmount %cTried to unmount a state proxy, rather than a component -https://svelte.dev/e/state_proxy_unmount`,$5,u5);else console.warn("https://svelte.dev/e/state_proxy_unmount")}function gQ(){if(m)console.warn("%c[svelte] svelte_boundary_reset_noop\n%cA `` `reset` function only resets the boundary the first time it is called\nhttps://svelte.dev/e/svelte_boundary_reset_noop",$5,u5);else console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}var r=!1;function h0(z){r=z}var U0;function R0(z){if(z===null)throw e5(),D5;return U0=z}function s0(){return R0(o0(U0))}function C(z){if(!r)return;if(o0(U0)!==null)throw e5(),D5;U0=z}function z1(z=1){if(r){var J=z,Q=U0;while(J--)Q=o0(Q);U0=Q}}function R5(z=!0){var J=0,Q=U0;while(!0){if(Q.nodeType===R1){var K=Q.data;if(K===S6){if(J===0)return Q;J-=1}else if(K===b8||K===q5)J+=1}var X=o0(Q);if(z)Q.remove();Q=X}}function Sz(z){if(!z||z.nodeType!==R1)throw e5(),D5;return z.data}function jz(z){return z===this.v}function y7(z,J){return z!=z?J==J:z!==J||z!==null&&typeof z==="object"||typeof z==="function"}function Dz(z){return!y7(z,this.v)}var F1=!1,l5=!1,F5=!1;function hQ(){l5=!0}var T8=null;function f1(z,J){return z.label=J,Rz(z.v,J),z}function Rz(z,J){return z?.[Pz]?.(J),z}function A5(z){let J=Error(),Q=TK();if(Q.length===0)return null;return Q.unshift(` -`),V1(J,"stack",{value:Q.join(` -`)}),V1(J,"name",{value:z}),J}function TK(){let z=Error.stackTraceLimit;Error.stackTraceLimit=1/0;let J=Error().stack;if(Error.stackTraceLimit=z,!J)return[];let Q=J.split(` -`),K=[];for(let X=0;X{if(!uQ(z))eJ();return fQ(z)},(J)=>$Q(z,J)]}function fQ(z){return h7("getContext").get(z)}function $Q(z,J){let Q=h7("setContext");if(F1){var K=Q0.f,X=!w0&&(K&k1)!==0&&!L0.i;if(!X)HQ()}return Q.set(z,J),J}function uQ(z){return h7("hasContext").has(z)}function _(z,J=!1,Q){if(L0={p:L0,i:!1,c:null,e:null,s:z,x:null,l:l5&&!J?{s:null,u:null,$:[]}:null},m)L0.function=Q,c1=Q}function c(z){var J=L0,Q=J.e;if(Q!==null){J.e=null;for(var K of Q)m7(K)}if(z!==void 0)J.x=z;if(J.i=!0,L0=J.p,m)c1=L0?.function??null;return z??{}}function s1(){return!l5||L0!==null&&L0.l===null}function h7(z){if(L0===null)Lz(z);return L0.c??=new Map(EK(L0)||void 0)}function EK(z){let J=z.p;while(J!==null){let Q=J.c;if(Q!==null)return Q;J=J.p}return null}var j6=[];function lQ(){var z=j6;j6=[],a6(z)}function m0(z){if(j6.length===0&&!J6){var J=j6;queueMicrotask(()=>{if(J===j6)lQ()})}j6.push(z)}function pQ(){while(j6.length>0)lQ()}var f7=new WeakMap;function Nz(z){var J=Q0;if(J===null)return w0.f|=Z5,z;if(m&&z instanceof Error&&!f7.has(z))f7.set(z,yK(z,J));if((J.f&V5)===0){if((J.f&L6)===0){if(m&&!J.parent&&z instanceof Error)dQ(z);throw z}J.b.error(z)}else N5(z,J)}function N5(z,J){while(J!==null){if((J.f&L6)!==0)try{J.b.error(z);return}catch(Q){z=Q}J=J.parent}if(m&&z instanceof Error)dQ(z);throw z}function yK(z,J){let Q=S1(z,"message");if(Q&&!Q.configurable)return;var K=E8?" ":"\t",X=` -${K}in ${J.fn?.name||""}`,Z=J.ctx;while(Z!==null)X+=` -${K}in ${Z.function?.[m1].split("/").pop()}`,Z=Z.p;return{message:z.message+` -${X} +https://svelte.dev/e/state_proxy_unmount`,A6,k6);else console.warn("https://svelte.dev/e/state_proxy_unmount")}function oQ(){if(g)console.warn("%c[svelte] svelte_boundary_reset_noop\n%cA `` `reset` function only resets the boundary the first time it is called\nhttps://svelte.dev/e/svelte_boundary_reset_noop",A6,k6);else console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}var r=!1;function _0(z){r=z}var B0;function k0(z){if(z===null)throw C5(),d6;return B0=z}function H1(){return k0(X1(B0))}function O(z){if(!r)return;if(X1(B0)!==null)throw C5(),d6;B0=z}function F1(z=1){if(r){var J=z,Q=B0;while(J--)Q=X1(Q);B0=Q}}function N6(z=!0){var J=0,Q=B0;while(!0){if(Q.nodeType===K6){var K=Q.data;if(K===i5){if(J===0)return Q;J-=1}else if(K===L8||K===J5||K[0]==="["&&!isNaN(Number(K.slice(1))))J+=1}var Z=X1(Q);if(z)Q.remove();Q=Z}}function H9(z){if(!z||z.nodeType!==K6)throw C5(),d6;return z.data}function Bz(z){return z===this.v}function y7(z,J){return z!=z?J==J:z!==J||z!==null&&typeof z==="object"||typeof z==="function"}function Uz(z){return!y7(z,this.v)}var J1=!1,Q5=!1,b6=!1;function aQ(){Q5=!0}var V9=null;function d1(z,J){return z.label=J,Vz(z.v,J),z}function Vz(z,J){return z?.[Xz]?.(J),z}function T6(z){let J=Error(),Q=AX();if(Q.length===0)return null;return Q.unshift(` +`),T1(J,"stack",{value:Q.join(` +`)}),T1(J,"name",{value:z}),J}function AX(){let z=Error.stackTraceLimit;Error.stackTraceLimit=1/0;let J=Error().stack;if(Error.stackTraceLimit=z,!J)return[];let Q=J.split(` +`),K=[];for(let Z=0;Z{if(!zK(z))GQ();return tQ(z)},(J)=>eQ(z,J)]}function tQ(z){return g7("getContext").get(z)}function eQ(z,J){let Q=g7("setContext");if(J1){var K=e.f,Z=!G0&&(K&q1)!==0&&!x0.i;if(!Z)LQ()}return Q.set(z,J),J}function zK(z){return g7("hasContext").has(z)}function _(z,J=!1,Q){if(x0={p:x0,i:!1,c:null,e:null,s:z,x:null,r:e,l:Q5&&!J?{s:null,u:null,$:[]}:null},g)x0.function=Q,U6=Q}function c(z){var J=x0,Q=J.e;if(Q!==null){J.e=null;for(var K of Q)h7(K)}if(z!==void 0)J.x=z;if(J.i=!0,x0=J.p,g)U6=x0?.function??null;return z??{}}function M6(){return!Q5||x0!==null&&x0.l===null}function g7(z){if(x0===null)Wz(z);return x0.c??=new Map(kX(x0)||void 0)}function kX(z){let J=z.p;while(J!==null){let Q=J.c;if(Q!==null)return Q;J=J.p}return null}var _5=[];function JK(){var z=_5;_5=[],S8(z)}function s0(z){if(_5.length===0&&!j5){var J=_5;queueMicrotask(()=>{if(J===_5)JK()})}_5.push(z)}function QK(){while(_5.length>0)JK()}var m7=new WeakMap;function qz(z){var J=e;if(J===null)return G0.f|=F6,z;if(g&&z instanceof Error&&!m7.has(z))m7.set(z,NX(z,J));if((J.f&s1)===0&&(J.f&D6)===0){if(g&&!J.parent&&z instanceof Error)KK(z);throw z}y6(z,J)}function y6(z,J){if(J!==null&&(J.f&a0)!==0)return;while(J!==null){if((J.f&C8)!==0){if((J.f&s1)===0)throw z;try{J.b.error(z);return}catch(Q){z=Q}}J=J.parent}if(g&&z instanceof Error)KK(z);throw z}function NX(z,J){let Q=p1(z,"message");if(Q&&!Q.configurable)return;var K=x9?" ":"\t",Z=` +${K}in ${J.fn?.name||""}`,X=J.ctx;while(X!==null)Z+=` +${K}in ${X.function?.[Z6].split("/").pop()}`,X=X.p;return{message:z.message+` +${Z} `,stack:z.stack?.split(` `).filter((w)=>!w.includes("svelte/src/internal")).join(` -`)}}function dQ(z){let J=f7.get(z);if(J)V1(z,"message",{value:J.message}),V1(z,"stack",{value:J.stack})}var vK=~(g0|w1|u0);function E0(z,J){z.f=z.f&vK|J}function z8(z){if((z.f&j1)!==0||z.deps===null)E0(z,u0);else E0(z,w1)}function iQ(z){if(z===null)return;for(let J of z){if((J.f&v0)===0||(J.f&K5)===0)continue;J.f^=K5,iQ(J.deps)}}function kz(z,J,Q){if((z.f&g0)!==0)J.add(z);else if((z.f&w1)!==0)Q.add(z);iQ(z.deps),E0(z,u0)}var J8=new Set,F0=null,Q8=null,x1=null,o1=[],bz=null,$7=!1,J6=!1;class J1{committed=!1;current=new Map;previous=new Map;#z=new Set;#J=new Set;#Q=0;#Z=0;#w=null;#X=new Set;#K=new Set;skipped_effects=new Set;is_fork=!1;#W=!1;is_deferred(){return this.is_fork||this.#Z>0}process(z){o1=[],this.apply();var J=[],Q=[];for(let K of z)this.#Y(K,J,Q);if(this.is_deferred())this.#G(Q),this.#G(J);else{for(let K of this.#z)K();if(this.#z.clear(),this.#Q===0)this.#H();Q8=this,F0=null,_Q(Q),_Q(J),Q8=null,this.#w?.resolve()}x1=null}#Y(z,J,Q){z.f^=u0;var K=z.first,X=null;while(K!==null){var Z=K.f,w=(Z&(k1|Q5))!==0,G=w&&(Z&u0)!==0,H=G||(Z&D1)!==0||this.skipped_effects.has(K);if(F1&&X===null&&(Z&L6)!==0&&K.b?.is_pending)X=K;if(!H&&K.fn!==null){if(w)K.f^=u0;else if(X!==null&&(Z&(O6|t5|P6))!==0)X.b.defer_effect(K);else if((Z&O6)!==0)J.push(K);else if(F1&&(Z&(t5|P6))!==0)Q.push(K);else if(Z6(K)){if((Z&h1)!==0)this.#K.add(K);Q6(K)}var B=K.first;if(B!==null){K=B;continue}}var F=K.parent;K=K.next;while(K===null&&F!==null){if(F===X)X=null;K=F.next,F=F.parent}}}#G(z){for(var J=0;J0){if(u7(),F0!==null&&F0!==this)return}else if(this.#Q===0)this.process([]);this.deactivate()}discard(){for(let z of this.#J)z(this);this.#J.clear()}#H(){if(J8.size>1){this.previous.clear();var z=x1,J=!0;for(let K of J8){if(K===this){J=!1;continue}let X=[];for(let[w,G]of this.current){if(K.current.has(w))if(J&&G!==K.current.get(w))K.current.set(w,G);else continue;X.push(w)}if(X.length===0)continue;let Z=[...K.current.keys()].filter((w)=>!this.current.has(w));if(Z.length>0){var Q=o1;o1=[];let w=new Set,G=new Map;for(let H of X)cQ(H,Z,w,G);if(o1.length>0){F0=K,K.apply();for(let H of o1)K.#Y(H,[],[]);K.deactivate()}o1=Q}}F0=null,x1=z}this.committed=!0,J8.delete(this)}increment(z){if(this.#Q+=1,z)this.#Z+=1}decrement(z){if(this.#Q-=1,z)this.#Z-=1;if(this.#W)return;this.#W=!0,m0(()=>{if(this.#W=!1,!this.is_deferred())this.revive();else if(o1.length>0)this.flush()})}revive(){for(let z of this.#X)this.#K.delete(z),E0(z,g0),a1(z);for(let z of this.#K)E0(z,w1),a1(z);this.flush()}oncommit(z){this.#z.add(z)}ondiscard(z){this.#J.add(z)}settled(){return(this.#w??=Cz()).promise}static ensure(){if(F0===null){let z=F0=new J1;if(J8.add(F0),!J6)m0(()=>{if(F0!==z)return;z.flush()})}return F0}apply(){if(!F1||!this.is_fork&&J8.size===1)return;x1=new Map(this.current);for(let z of J8){if(z===this)continue;for(let[J,Q]of z.previous)if(!x1.has(J))x1.set(J,Q)}}}function K6(z){var J=J6;J6=!0;try{var Q;if(z){if(F0!==null)u7();Q=z()}while(!0){if(pQ(),o1.length===0){if(F0?.flush(),o1.length===0)return bz=null,Q}u7()}}finally{J6=J}}function u7(){$7=!0;var z=m?new Set:null;try{var J=0;while(o1.length>0){var Q=J1.ensure();if(J++>1000){if(m){var K=new Map;for(let Z of Q.current.keys())for(let[w,G]of Z.updated??[]){var X=K.get(w);if(!X)X={error:G.error,count:0},K.set(w,X);X.count+=G.count}for(let Z of K.values())if(Z.error)console.error(Z.error)}hK()}if(Q.process(o1),k5.clear(),m)for(let Z of Q.current.keys())z.add(Z)}}finally{if($7=!1,bz=null,m)for(let Z of z)Z.updated=null}}function hK(){try{XQ()}catch(z){if(m)V1(z,"stack",{value:""});N5(z,bz)}}var X5=null;function _Q(z){var J=z.length;if(J===0)return;var Q=0;while(Q0){k5.clear();for(let X of X5){if((X.f&(b1|D1))!==0)continue;let Z=[X],w=X.parent;while(w!==null){if(X5.has(w))X5.delete(w),Z.push(w);w=w.parent}for(let G=Z.length-1;G>=0;G--){let H=Z[G];if((H.f&(b1|D1))!==0)continue;Q6(H)}}X5.clear()}}}X5=null}function cQ(z,J,Q,K){if(Q.has(z))return;if(Q.add(z),z.reactions!==null)for(let X of z.reactions){let Z=X.f;if((Z&v0)!==0)cQ(X,J,Q,K);else if((Z&(f5|h1))!==0&&(Z&g0)===0&&sQ(X,J,K))E0(X,g0),a1(X)}}function sQ(z,J,Q){let K=Q.get(z);if(K!==void 0)return K;if(z.deps!==null)for(let X of z.deps){if(U5.call(J,X))return!0;if((X.f&v0)!==0&&sQ(X,J,Q))return Q.set(X,!0),!0}return Q.set(z,!1),!1}function a1(z){var J=bz=z;while(J.parent!==null){J=J.parent;var Q=J.f;if($7&&J===Q0&&(Q&h1)!==0&&(Q&r6)===0)return;if((Q&(Q5|k1))!==0){if((Q&u0)===0)return;J.f^=u0}}o1.push(J)}function aQ(z){let J=0,Q=W1(0),K;if(m)f1(Q,"createSubscriber version");return()=>{if(z6())W(Q),Y1(()=>{if(J===0)K=T0(()=>z(()=>D6(Q)));return J+=1,()=>{m0(()=>{if(J-=1,J===0)K?.(),K=void 0,D6(Q)})}})}}var fK=T1|I5|L6;function p7(z,J,Q){new d7(z,J,Q)}class d7{parent;is_pending=!1;#z;#J=r?U0:null;#Q;#Z;#w;#X=null;#K=null;#W=null;#Y=null;#G=null;#H=0;#U=0;#q=!1;#V=!1;#F=new Set;#x=new Set;#B=null;#L=aQ(()=>{if(this.#B=W1(this.#H),m)f1(this.#B,"$effect.pending()");return()=>{this.#B=null}});constructor(z,J,Q){if(this.#z=z,this.#Q=J,this.#Z=Q,this.parent=Q0.b,this.is_pending=!!this.#Q.pending,this.#w=M1(()=>{if(Q0.b=this,r){let X=this.#J;if(s0(),X.nodeType===R1&&X.data===q5)this.#S();else if(this.#I(),this.#U===0)this.is_pending=!1}else{var K=this.#O();try{this.#X=a0(()=>Q(K))}catch(X){this.error(X)}if(this.#U>0)this.#C();else this.is_pending=!1}return()=>{this.#G?.remove()}},fK),r)this.#z=U0}#I(){try{this.#X=a0(()=>this.#Z(this.#z))}catch(z){this.error(z)}}#S(){let z=this.#Q.pending;if(!z)return;this.#K=a0(()=>z(this.#z)),m0(()=>{var J=this.#O();if(this.#X=this.#M(()=>{return J1.ensure(),a0(()=>this.#Z(J))}),this.#U>0)this.#C();else b5(this.#K,()=>{this.#K=null}),this.is_pending=!1})}#O(){var z=this.#z;if(this.is_pending)this.#G=d0(),this.#z.before(this.#G),z=this.#G;return z}defer_effect(z){kz(z,this.#F,this.#x)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#Q.pending}#M(z){var J=Q0,Q=w0,K=L0;G1(this.#w),i0(this.#w),p5(this.#w.ctx);try{return z()}catch(X){return Nz(X),null}finally{G1(J),i0(Q),p5(K)}}#C(){let z=this.#Q.pending;if(this.#X!==null)this.#Y=document.createDocumentFragment(),this.#Y.append(this.#G),yz(this.#X,this.#Y);if(this.#K===null)this.#K=a0(()=>z(this.#z))}#P(z){if(!this.has_pending_snippet()){if(this.parent)this.parent.#P(z);return}if(this.#U+=z,this.#U===0){this.is_pending=!1;for(let J of this.#F)E0(J,g0),a1(J);for(let J of this.#x)E0(J,w1),a1(J);if(this.#F.clear(),this.#x.clear(),this.#K)b5(this.#K,()=>{this.#K=null});if(this.#Y)this.#z.before(this.#Y),this.#Y=null}}update_pending_count(z){if(this.#P(z),this.#H+=z,!this.#B||this.#q)return;this.#q=!0,m0(()=>{if(this.#q=!1,this.#B)$1(this.#B,this.#H)})}get_effect_pending(){return this.#L(),W(this.#B)}error(z){var J=this.#Q.onerror;let Q=this.#Q.failed;if(this.#V||!J&&!Q)throw z;if(this.#X)f0(this.#X),this.#X=null;if(this.#K)f0(this.#K),this.#K=null;if(this.#W)f0(this.#W),this.#W=null;if(r)R0(this.#J),z1(),R0(R5());var K=!1,X=!1;let Z=()=>{if(K){gQ();return}if(K=!0,X)FQ();if(J1.ensure(),this.#H=0,this.#W!==null)b5(this.#W,()=>{this.#W=null});if(this.is_pending=this.has_pending_snippet(),this.#X=this.#M(()=>{return this.#V=!1,a0(()=>this.#Z(this.#z))}),this.#U>0)this.#C();else this.is_pending=!1};var w=w0;try{i0(null),X=!0,J?.(z,Z),X=!1}catch(G){N5(G,this.#w&&this.#w.parent)}finally{i0(w)}if(Q)m0(()=>{this.#W=this.#M(()=>{J1.ensure(),this.#V=!0;try{return a0(()=>{Q(this.#z,()=>z,()=>Z)})}catch(G){return N5(G,this.#w.parent),null}finally{this.#V=!1}})})}}function Z8(z,J,Q,K){let X=s1()?X6:R6;var Z=z.filter((Y)=>!Y.settled);if(Q.length===0&&Z.length===0){K(J.map(X));return}var w=F0,G=Q0,H=i7(),B=Z.length===1?Z[0].promise:Z.length>1?Promise.all(Z.map((Y)=>Y.promise)):null;function F(Y){H();try{K(Y)}catch(U){if((G.f&b1)===0)N5(U,G)}w?.deactivate(),X8()}if(Q.length===0){B.then(()=>F(J.map(X)));return}function q(){H(),Promise.all(Q.map((Y)=>c7(Y))).then((Y)=>F([...J.map(X),...Y])).catch((Y)=>N5(Y,G))}if(B)B.then(q);else q()}function i7(){var z=Q0,J=w0,Q=L0,K=F0;if(m)var X=x5;return function(w=!0){if(G1(z),i0(J),p5(Q),w)K?.activate();if(m)_7(null),e6(X)}}function X8(){if(G1(null),i0(null),p5(null),m)_7(null),e6(null)}var v8=null;function _7(z){v8=z}var g8=new Set;function X6(z){var J=v0|g0,Q=w0!==null&&(w0.f&v0)!==0?w0:null;if(Q0!==null)Q0.f|=I5;let K={ctx:L0,deps:null,effects:null,equals:jz,f:J,fn:z,reactions:null,rv:0,v:b0,wv:0,parent:Q??Q0,ac:null};if(m&&F5)K.created=A5("created at");return K}function c7(z,J,Q){let K=Q0;if(K===null)zQ();var X=K.b,Z=void 0,w=W1(b0);if(m)w.label=J;var G=!w0,H=new Map;if(rQ(()=>{if(m)v8=Q0;var B=Cz();Z=B.promise;try{Promise.resolve(z()).then(B.resolve,B.reject).then(()=>{if(F===F0&&F.committed)F.deactivate();X8()})}catch(U){B.reject(U),X8()}if(m)v8=null;var F=F0;if(G){var q=X.is_rendered();X.update_pending_count(1),F.increment(q),H.get(F)?.reject(j5),H.delete(F),H.set(F,B)}let Y=(U,x=void 0)=>{if(v8=null,F.activate(),x){if(x!==j5)w.f|=Z5,$1(w,x)}else{if((w.f&Z5)!==0)w.f^=Z5;$1(w,U);for(let[I,M]of H){if(H.delete(I),I===F)break;M.reject(j5)}if(m&&Q!==void 0)g8.add(w),setTimeout(()=>{if(g8.has(w))kQ(w.label,Q),g8.delete(w)})}if(G)X.update_pending_count(-1),F.decrement(q)};B.promise.then(Y,(U)=>Y(null,U||"unknown"))}),B1(()=>{for(let B of H.values())B.reject(j5)}),m)w.f|=f5;return new Promise((B)=>{function F(q){function Y(){if(q===Z)B(w);else F(Z)}q.then(Y,Y)}F(Z)})}function M0(z){let J=X6(z);if(!F1)hz(J);return J}function R6(z){let J=X6(z);return J.equals=Dz,J}function vz(z){var J=z.effects;if(J!==null){z.effects=null;for(var Q=0;Q5){let Z=A5("updated at");if(Z!==null){let w=z.updated.get(Z.stack);if(!w)w={error:Z,count:0},z.updated.set(Z.stack,w);w.count++}}}if(Q0!==null)z.set_during_effect=!0}if((z.f&v0)!==0){let X=z;if((z.f&g0)!==0)h8(X);z8(X)}if(z.wv=K8(),tQ(z,g0),s1()&&Q0!==null&&(Q0.f&u0)!==0&&(Q0.f&(k1|Q5))===0)if(n1===null)eQ([z]);else n1.push(z);if(!K.is_fork&&A6.size>0&&!a7)Ez()}return J}function Ez(){a7=!1;for(let z of A6){if((z.f&u0)!==0)E0(z,w1);if(Z6(z))Q6(z)}A6.clear()}function D6(z){D(z,z.v+1)}function tQ(z,J){var Q=z.reactions;if(Q===null)return;var K=s1(),X=Q.length;for(var Z=0;Z{if(w6===w)return q();var Y=w0,U=w6;i0(null),r7(w);var x=q();return i0(Y),r7(U),x};if(K){if(Q.set("length",f(z.length,Z)),m)z=iK(z)}var H="";let B=!1;function F(q){if(B)return;B=!0,H=q,f1(X,`${H} version`);for(let[Y,U]of Q)f1(U,N6(H,Y));B=!1}return new Proxy(z,{defineProperty(q,Y,U){if(!("value"in U)||U.configurable===!1||U.enumerable===!1||U.writable===!1)UQ();var x=Q.get(Y);if(x===void 0)x=G(()=>{var I=f(U.value,Z);if(Q.set(Y,I),m&&typeof Y==="string")f1(I,N6(H,Y));return I});else D(x,U.value,!0);return!0},deleteProperty(q,Y){var U=Q.get(Y);if(U===void 0){if(Y in q){let x=G(()=>f(b0,Z));if(Q.set(Y,x),D6(X),m)f1(x,N6(H,Y))}}else D(U,b0),D6(X);return!0},get(q,Y,U){if(Y===e0)return z;if(m&&Y===Pz)return F;var x=Q.get(Y),I=Y in q;if(x===void 0&&(!I||S1(q,Y)?.writable))x=G(()=>{var A=C0(I?q[Y]:b0),E=f(A,Z);if(m)f1(E,N6(H,Y));return E}),Q.set(Y,x);if(x!==void 0){var M=W(x);return M===b0?void 0:M}return Reflect.get(q,Y,U)},getOwnPropertyDescriptor(q,Y){var U=Reflect.getOwnPropertyDescriptor(q,Y);if(U&&"value"in U){var x=Q.get(Y);if(x)U.value=W(x)}else if(U===void 0){var I=Q.get(Y),M=I?.v;if(I!==void 0&&M!==b0)return{enumerable:!0,configurable:!0,value:M,writable:!0}}return U},has(q,Y){if(Y===e0)return!0;var U=Q.get(Y),x=U!==void 0&&U.v!==b0||Reflect.has(q,Y);if(U!==void 0||Q0!==null&&(!x||S1(q,Y)?.writable)){if(U===void 0)U=G(()=>{var M=x?C0(q[Y]):b0,A=f(M,Z);if(m)f1(A,N6(H,Y));return A}),Q.set(Y,U);var I=W(U);if(I===b0)return!1}return x},set(q,Y,U,x){var I=Q.get(Y),M=Y in q;if(K&&Y==="length")for(var A=U;Af(b0,Z)),Q.set(A+"",E),m)f1(E,N6(H,A))}}if(I===void 0){if(!M||S1(q,Y)?.writable){if(I=G(()=>f(void 0,Z)),m)f1(I,N6(H,Y));D(I,C0(U)),Q.set(Y,I)}}else{M=I.v!==b0;var v=G(()=>C0(U));D(I,v)}var T=Reflect.getOwnPropertyDescriptor(q,Y);if(T?.set)T.set.call(x,U);if(!M){if(K&&typeof Y==="string"){var y=Q.get("length"),N=Number(Y);if(Number.isInteger(N)&&N>=y.v)D(y,N+1)}D6(X)}return!0},ownKeys(q){W(X);var Y=Reflect.ownKeys(q).filter((I)=>{var M=Q.get(I);return M===void 0||M.v!==b0});for(var[U,x]of Q)if(x.v!==b0&&!(U in q))Y.push(U);return Y},setPrototypeOf(){VQ()}})}function N6(z,J){if(typeof J==="symbol")return`${z}[Symbol(${J.description??""})]`;if(pK.test(J))return`${z}.${J}`;return/^\d+$/.test(J)?`${z}[${J}]`:`${z}['${J}']`}function w8(z){try{if(z!==null&&typeof z==="object"&&e0 in z)return z[e0]}catch{}return z}function mz(z,J){return Object.is(w8(z),w8(J))}var dK=new Set(["copyWithin","fill","pop","push","reverse","shift","sort","splice","unshift"]);function iK(z){return new Proxy(z,{get(J,Q,K){var X=Reflect.get(J,Q,K);if(!dK.has(Q))return X;return function(...Z){nQ();var w=X.apply(this,Z);return Ez(),w}}})}function z4(){let{prototype:z,__svelte_cleanup:J}=Array;if(J)J();let{indexOf:Q,lastIndexOf:K,includes:X}=z;z.indexOf=function(Z,w){let G=Q.call(this,Z,w);if(G===-1){for(let H=w??0;H{z.indexOf=Q,z.lastIndexOf=K,z.includes=X}}var n7,W6,E8,J4,Q4;function fz(){if(n7!==void 0)return;n7=window,W6=document,E8=/Firefox/.test(navigator.userAgent);var z=Element.prototype,J=Node.prototype,Q=Text.prototype;if(J4=S1(J,"firstChild").get,Q4=S1(J,"nextSibling").get,A7(z))z.__click=void 0,z.__className=void 0,z.__attributes=null,z.__style=void 0,z.__e=void 0;if(A7(Q))Q.__t=void 0;if(m)z.__svelte_meta=null,z4()}function d0(z=""){return document.createTextNode(z)}function _0(z){return J4.call(z)}function o0(z){return Q4.call(z)}function O(z,J){if(!r)return _0(z);var Q=_0(U0);if(Q===null)Q=U0.appendChild(d0());else if(J&&Q.nodeType!==t6){var K=d0();return Q?.before(K),R0(K),K}return R0(Q),Q}function h(z,J=!1){if(!r){var Q=_0(z);if(Q instanceof Comment&&Q.data==="")return o0(Q);return Q}if(J&&U0?.nodeType!==t6){var K=d0();return U0?.before(K),R0(K),K}return U0}function S(z,J=1,Q=!1){let K=r?U0:z;var X;while(J--)X=K,K=o0(K);if(!r)return K;if(Q&&K?.nodeType!==t6){var Z=d0();if(K===null)X?.after(Z);else K.before(Z);return R0(Z),Z}return R0(K),K}function m8(z){z.textContent=""}function $z(){if(!F1)return!1;if(X5!==null)return!1;var z=Q0.f;return(z&V5)!==0}function k6(z,J){if(J){let Q=document.body;z.autofocus=!0,m0(()=>{if(document.activeElement===Q)z.focus()})}}var K4=!1;function uz(){if(!K4)K4=!0,document.addEventListener("reset",(z)=>{Promise.resolve().then(()=>{if(!z.defaultPrevented)for(let J of z.target.elements)J.__on_r?.()})},{capture:!0})}function i5(z){var J=w0,Q=Q0;i0(null),G1(null);try{return z()}finally{i0(J),G1(Q)}}function f8(z,J,Q,K=Q){z.addEventListener(J,()=>i5(Q));let X=z.__on_r;if(X)z.__on_r=()=>{X(),K(!0)};else z.__on_r=()=>K(!0);uz()}function e7(z){if(Q0===null){if(w0===null)ZQ(z);KQ()}if(w5)QQ(z)}function _K(z,J){var Q=J.last;if(Q===null)J.last=J.first=z;else Q.next=z,z.prev=Q,J.last=z}function t1(z,J,Q){var K=Q0;if(m)while(K!==null&&(K.f&I6)!==0)K=K.parent;if(K!==null&&(K.f&D1)!==0)z|=D1;var X={ctx:L0,deps:null,nodes:null,f:z|g0|j1,first:null,fn:J,last:null,next:null,parent:K,b:K&&K.b,prev:null,teardown:null,wv:0,ac:null};if(m)X.component_function=c1;if(Q)try{Q6(X),X.f|=V5}catch(G){throw f0(X),G}else if(J!==null)a1(X);var Z=X;if(Q&&Z.deps===null&&Z.teardown===null&&Z.nodes===null&&Z.first===Z.last&&(Z.f&I5)===0){if(Z=Z.first,(z&h1)!==0&&(z&T1)!==0&&Z!==null)Z.f|=T1}if(Z!==null){if(Z.parent=K,K!==null)_K(Z,K);if(w0!==null&&(w0.f&v0)!==0&&(z&Q5)===0){var w=w0;(w.effects??=[]).push(Z)}}return X}function z6(){return w0!==null&&!u1}function B1(z){let J=t1(t5,null,!1);return E0(J,u0),J.teardown=z,J}function Q1(z){if(e7("$effect"),m)V1(z,"name",{value:"$effect"});var J=Q0.f,Q=!w0&&(J&k1)!==0&&(J&V5)===0;if(Q){var K=L0;(K.e??=[]).push(z)}else return m7(z)}function m7(z){return t1(O6|k7,z,!1)}function $8(z){if(e7("$effect.pre"),m)V1(z,"name",{value:"$effect.pre"});return t1(t5|k7,z,!0)}function z9(z){J1.ensure();let J=t1(Q5|I5,z,!0);return()=>{f0(J)}}function Z4(z){J1.ensure();let J=t1(Q5|I5,z,!0);return(Q={})=>{return new Promise((K)=>{if(Q.outro)b5(J,()=>{f0(J),K(void 0)});else f0(J),K(void 0)})}}function H1(z){return t1(O6,z,!1)}function rQ(z){return t1(f5|I5,z,!0)}function Y1(z,J=0){return t1(t5|J,z,!0)}function g(z,J=[],Q=[],K=[]){Z8(K,J,Q,(X)=>{t1(t5,()=>z(...X.map(W)),!0)})}function u8(z,J=[],Q=[],K=[]){var X=F0,Z=Q.length>0||K.length>0;if(Z)X.increment(!0);Z8(K,J,Q,(w)=>{if(t1(O6,()=>z(...w.map(W)),!1),Z)X.decrement(!0)})}function M1(z,J=0){var Q=t1(h1|J,z,!0);if(m)Q.dev_stack=x5;return Q}function lz(z,J=0){var Q=t1(P6|J,z,!0);if(m)Q.dev_stack=x5;return Q}function a0(z){return t1(k1|I5,z,!0)}function J9(z){var J=z.teardown;if(J!==null){let Q=w5,K=w0;t7(!0),i0(null);try{J.call(null)}finally{t7(Q),i0(K)}}}function Q9(z,J=!1){var Q=z.first;z.first=z.last=null;while(Q!==null){let X=Q.ac;if(X!==null)i5(()=>{X.abort(j5)});var K=Q.next;if((Q.f&Q5)!==0)Q.parent=null;else f0(Q,J);Q=K}}function X4(z){var J=z.first;while(J!==null){var Q=J.next;if((J.f&k1)===0)f0(J);J=Q}}function f0(z,J=!0){var Q=!1;if((J||(z.f&r6)!==0)&&z.nodes!==null&&z.nodes.end!==null)K9(z.nodes.start,z.nodes.end),Q=!0;Q9(z,J&&!Q),p8(z,0),E0(z,b1);var K=z.nodes&&z.nodes.t;if(K!==null)for(let Z of K)Z.stop();J9(z);var X=z.parent;if(X!==null&&X.first!==null)l7(z);if(m)z.component_function=null;z.next=z.prev=z.teardown=z.ctx=z.deps=z.fn=z.nodes=z.ac=null}function K9(z,J){while(z!==null){var Q=z===J?null:o0(z);z.remove(),z=Q}}function l7(z){var{parent:J,prev:Q,next:K}=z;if(Q!==null)Q.next=K;if(K!==null)K.prev=Q;if(J!==null){if(J.first===z)J.first=K;if(J.last===z)J.last=Q}}function b5(z,J,Q=!0){var K=[];w4(z,K,!0);var X=()=>{if(Q)f0(z);if(J)J()},Z=K.length;if(Z>0){var w=()=>--Z||X();for(var G of K)G.out(w)}else X()}function w4(z,J,Q){if((z.f&D1)!==0)return;z.f^=D1;var K=z.nodes&&z.nodes.t;if(K!==null){for(let G of K)if(G.is_global||Q)J.push(G)}var X=z.first;while(X!==null){var Z=X.next,w=(X.f&T1)!==0||(X.f&k1)!==0&&(z.f&h1)!==0;w4(X,J,w?Q:!1),X=Z}}function l8(z){W4(z,!0)}function W4(z,J){if((z.f&D1)===0)return;if(z.f^=D1,(z.f&u0)===0)E0(z,g0),a1(z);var Q=z.first;while(Q!==null){var K=Q.next,X=(Q.f&T1)!==0||(Q.f&k1)!==0;W4(Q,X?J:!1),Q=K}var Z=z.nodes&&z.nodes.t;if(Z!==null){for(let w of Z)if(w.is_global||J)w.in()}}function yz(z,J){if(!z.nodes)return;var Q=z.nodes.start,K=z.nodes.end;while(Q!==null){var X=Q===K?null:o0(Q);J.append(Q),Q=X}}var Y4=null;var pz=!1,w5=!1;function t7(z){w5=z}var w0=null,u1=!1;function i0(z){w0=z}var Q0=null;function G1(z){Q0=z}var r1=null;function hz(z){if(w0!==null&&(!F1||(w0.f&v0)!==0))if(r1===null)r1=[z];else r1.push(z)}var l1=null,e1=0,n1=null;function eQ(z){n1=z}var G4=1,b6=0,w6=b6;function r7(z){w6=z}function K8(){return++G4}function Z6(z){var J=z.f;if((J&g0)!==0)return!0;if(J&v0)z.f&=~K5;if((J&w1)!==0){var Q=z.deps,K=Q.length;for(var X=0;Xz.wv)return!0}if((J&j1)!==0&&x1===null)E0(z,u0)}return!1}function B4(z,J,Q=!0){var K=z.reactions;if(K===null)return;if(!F1&&r1!==null&&U5.call(r1,z))return;for(var X=0;X{z.ac.abort(j5)}),z.ac=null;try{z.f|=Oz;var F=z.fn,q=F(),Y=z.deps;if(l1!==null){var U;if(p8(z,e1),Y!==null&&e1>0){Y.length=e1+l1.length;for(U=0;U{requestAnimationFrame(()=>z()),setTimeout(()=>z())});await Promise.resolve(),K6()}function W(z){var J=z.f,Q=(J&v0)!==0;if(Y4?.add(z),w0!==null&&!u1){var K=Q0!==null&&(Q0.f&b1)!==0;if(!K&&(r1===null||!U5.call(r1,z))){var X=w0.deps;if((w0.f&Oz)!==0){if(z.rv>>0).toString(36)}function q4(z){return z.endsWith("capture")&&z!=="gotpointercapture"&&z!=="lostpointercapture"}var oK=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function F4(z){return oK.includes(z)}var aK=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var rK={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function x4(z){return z=z.toLowerCase(),rK[z]??z}var TG=[...aK,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var nK=["touchstart","touchmove"];function M4(z){return nK.includes(z)}var tK=["$state","$state.raw","$derived","$derived.by"],EG=[...tK,"$state.eager","$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"];function _z(z){return z?.replace(/\//g,"/​")}var Z9=new Set,cz=new Set;function W8(z){if(!r)return;z.removeAttribute("onload"),z.removeAttribute("onerror");let J=z.__e;if(J!==void 0)z.__e=void 0,queueMicrotask(()=>{if(z.isConnected)z.dispatchEvent(J)})}function X9(z,J,Q,K={}){function X(Z){if(!K.capture)Y8.call(J,Z);if(!Z.cancelBubble)return i5(()=>{return Q?.call(this,Z)})}if(z.startsWith("pointer")||z.startsWith("touch")||z==="wheel")m0(()=>{J.addEventListener(z,X,K)});else J.addEventListener(z,X,K);return X}function C1(z,J,Q,K,X){var Z={capture:K,passive:X},w=X9(z,J,Q,Z);if(J===document.body||J===window||J===document||J instanceof HTMLMediaElement)B1(()=>{J.removeEventListener(z,w,Z)})}function I0(z){for(var J=0;J{throw M});throw Y}}finally{z.__root=J,delete z.currentTarget,i0(F),G1(q)}}function d8(z){var J=document.createElement("template");return J.innerHTML=z.replaceAll("",""),J.content}function p1(z,J){var Q=Q0;if(Q.nodes===null)Q.nodes={start:z,end:J,a:null,t:null}}function P(z,J){var Q=(J&DQ)!==0,K=(J&RQ)!==0,X,Z=!z.startsWith("");return()=>{if(r)return p1(U0,null),U0;if(X===void 0){if(X=d8(Z?z:""+z),!Q)X=_0(X)}var w=K||E8?document.importNode(X,!0):X.cloneNode(!0);if(Q){var G=_0(w),H=w.lastChild;p1(G,H)}else p1(w,w);return w}}function N1(z=""){if(!r){var J=d0(z+"");return p1(J,J),J}var Q=U0;if(Q.nodeType!==t6)Q.before(Q=d0()),R0(Q);return p1(Q,Q),Q}function d(){if(r)return p1(U0,null),U0;var z=document.createDocumentFragment(),J=document.createComment(""),Q=d0();return z.append(J,Q),p1(J,Q),z}function V(z,J){if(r){var Q=Q0;if((Q.f&V5)===0||Q.nodes.end===null)Q.nodes.end=U0;s0();return}if(z===null)return;z.before(J)}var w9=!0;function u(z,J){var Q=J==null?"":typeof J==="object"?J+"":J;if(Q!==(z.__t??=z.nodeValue))z.__t=Q,z.nodeValue=Q+""}function B8(z,J){return L4(z,J)}function Y9(z,J){fz(),J.intro=J.intro??!1;let Q=J.target,K=r,X=U0;try{var Z=_0(Q);while(Z&&(Z.nodeType!==R1||Z.data!==b8))Z=o0(Z);if(!Z)throw D5;h0(!0),R0(Z);let w=L4(z,{...J,anchor:Z});return h0(!1),w}catch(w){if(w instanceof Error&&w.message.split(` -`).some((G)=>G.startsWith("https://svelte.dev/e/")))throw w;if(w!==D5)console.warn("Failed to hydrate: ",w);if(J.recover===!1)wQ();return fz(),m8(Q),h0(!1),B8(z,J)}finally{h0(K),R0(X)}}var G8=new Map;function L4(z,{target:J,anchor:Q,props:K={},events:X,context:Z,intro:w=!0}){fz();var G=new Set,H=(q)=>{for(var Y=0;Y{var q=Q??J.appendChild(d0());return p7(q,{pending:()=>{}},(Y)=>{if(Z){_({});var U=L0;U.c=Z}if(X)K.$$events=X;if(r)p1(Y,null);if(w9=w,B=z(Y,K)||{},w9=!0,r){if(Q0.nodes.end=U0,U0===null||U0.nodeType!==R1||U0.data!==S6)throw e5(),D5}if(Z)c()}),()=>{for(var Y of G){J.removeEventListener(Y,Y8);var U=G8.get(Y);if(--U===0)document.removeEventListener(Y,Y8),G8.delete(Y);else G8.set(Y,U)}if(cz.delete(H),q!==Q)q.parentNode?.removeChild(q)}});return W9.set(B,F),B}var W9=new WeakMap;function G9(z,J){let Q=W9.get(z);if(Q)return W9.delete(z),Q(J);if(m)if(e0 in z)vQ();else EQ();return Promise.resolve()}class M5{anchor;#z=new Map;#J=new Map;#Q=new Map;#Z=new Set;#w=!0;constructor(z,J=!0){this.anchor=z,this.#w=J}#X=()=>{var z=F0;if(!this.#z.has(z))return;var J=this.#z.get(z),Q=this.#J.get(J);if(Q)l8(Q),this.#Z.delete(J);else{var K=this.#Q.get(J);if(K)this.#J.set(J,K.effect),this.#Q.delete(J),K.fragment.lastChild.remove(),this.anchor.before(K.fragment),Q=K.effect}for(let[X,Z]of this.#z){if(this.#z.delete(X),X===z)break;let w=this.#Q.get(Z);if(w)f0(w.effect),this.#Q.delete(Z)}for(let[X,Z]of this.#J){if(X===J||this.#Z.has(X))continue;let w=()=>{if(Array.from(this.#z.values()).includes(X)){var H=document.createDocumentFragment();yz(Z,H),H.append(d0()),this.#Q.set(X,{effect:Z,fragment:H})}else f0(Z);this.#Z.delete(X),this.#J.delete(X)};if(this.#w||!Q)this.#Z.add(X),b5(Z,w,!1);else w()}};#K=(z)=>{this.#z.delete(z);let J=Array.from(this.#z.values());for(let[Q,K]of this.#Q)if(!J.includes(Q))f0(K.effect),this.#Q.delete(Q)};ensure(z,J){var Q=F0,K=$z();if(J&&!this.#J.has(z)&&!this.#Q.has(z))if(K){var X=document.createDocumentFragment(),Z=d0();X.append(Z),this.#Q.set(z,{effect:a0(()=>J(Z)),fragment:X})}else this.#J.set(z,a0(()=>J(this.anchor)));if(this.#z.set(Q,z),K){for(let[w,G]of this.#J)if(w===z)Q.skipped_effects.delete(G);else Q.skipped_effects.add(G);for(let[w,G]of this.#Q)if(w===z)Q.skipped_effects.delete(G.effect);else Q.skipped_effects.add(G.effect);Q.oncommit(this.#X),Q.ondiscard(this.#K)}else{if(r)this.anchor=U0;this.#X()}}}var I4=0,B9=1;function T6(z,J,Q,K,X){if(r)s0();var Z=s1(),w=b0,G=Z?W1(w):d5(w,!1,!1),H=Z?W1(w):d5(w,!1,!1),B=new M5(z);M1(()=>{var F=J(),q=!1;let Y=r&&N7(F)===(z.data===q5);if(Y)R0(R5()),h0(!1);if(N7(F)){var U=i7(),x=!1;let I=(M)=>{if(q)return;if(x=!0,U(!1),J1.ensure(),r)h0(!1);try{M()}finally{if(X8(),!J6)K6()}};if(F.then((M)=>{I(()=>{$1(G,M),B.ensure(B9,K&&((A)=>K(A,G)))})},(M)=>{I(()=>{if($1(H,M),B.ensure(B9,X&&((A)=>X(A,H))),!X)throw H.v})}),r)B.ensure(I4,Q);else m0(()=>{if(!x)I(()=>{B.ensure(I4,Q)})})}else $1(G,F),B.ensure(B9,K&&((I)=>K(I,G)));if(Y)h0(!0);return()=>{q=!0}})}function j(z,J,Q=!1){if(r)s0();var K=new M5(z),X=Q?T1:0;function Z(w,G){if(r){let B=Sz(z)===q5;if(w===B){var H=R5();R0(H),K.anchor=H,h0(!1),K.ensure(w,G),h0(!0);return}}K.ensure(w,G)}M1(()=>{var w=!1;if(J((G,H=!0)=>{w=!0,Z(H,G)}),!w)Z(!1,null)},X)}function H9(z,J,Q){if(r)s0();var K=new M5(z),X=!s1();M1(()=>{var Z=J();if(X&&Z!==null&&typeof Z==="object")Z={};K.ensure(Z,Q)})}function O1(z,J){return J}function QZ(z,J,Q){var K=[],X=J.length,Z,w=J.length;for(var G=0;G{if(Z){if(Z.pending.delete(q),Z.done.add(q),Z.pending.size===0){var Y=z.outrogroups;if(U9(o6(Z.done)),Y.delete(Z),Y.size===0)z.outrogroups=null}}else w-=1},!1)}if(w===0){var H=K.length===0&&Q!==null;if(H){var B=Q,F=B.parentNode;m8(F),F.append(B),z.items.clear()}U9(J,!H)}else Z={pending:new Set(J),done:new Set},(z.outrogroups??=new Set).add(Z)}function U9(z,J=!0){for(var Q=0;Q{var A=Q();return H5(A)?A:A==null?[]:o6(A)}),Y,U=!0;function x(){if(M.fallback=F,KZ(M,Y,w,J,K),F!==null)if(Y.length===0)if((F.f&S5)===0)l8(F);else F.f^=S5,i8(F,null,w);else b5(F,()=>{F=null})}var I=M1(()=>{Y=W(q);var A=Y.length;let E=!1;if(r){var v=Sz(w)===q5;if(v!==(A===0))w=R5(),R0(w),h0(!1),E=!0}var T=new Set,y=F0,N=$z();for(var R=0;RZ(w));else F=a0(()=>Z(S4??=d0())),F.f|=S5;if(r&&A>0)R0(R5());if(!U)if(N){for(let[l,n]of G)if(!T.has(l))y.skipped_effects.add(n.e);y.oncommit(x),y.ondiscard(()=>{})}else x();if(E)h0(!0);W(q)}),M={effect:I,flags:J,items:G,outrogroups:null,fallback:F};if(U=!1,r)w=U0}function KZ(z,J,Q,K,X){var Z=(K&CQ)!==0,w=J.length,G=z.items,H=z.effect.first,B,F=null,q,Y=[],U=[],x,I,M,A;if(Z){for(A=0;A0){var $=(K&T7)!==0&&w===0?Q:null;if(Z){for(A=0;A{if(q===void 0)return;for(M of q)M.nodes?.a?.apply()})}function ZZ(z,J,Q,K,X,Z,w,G){var H=(w&xQ)!==0?(w&OQ)===0?d5(Q,!1,!1):W1(Q):null,B=(w&MQ)!==0?W1(X):null;if(m&&H)H.trace=()=>{G()[B?.v??X]};return{v:H,i:B,e:a0(()=>{return Z(J,H??Q,B??X,G),()=>{z.delete(K)}})}}function i8(z,J,Q){if(!z.nodes)return;var K=z.nodes.start,X=z.nodes.end,Z=J&&(J.f&S5)===0?J.nodes.start:Q;while(K!==null){var w=o0(K);if(Z.before(K),K===X)return;K=w}}function Y6(z,J,Q){if(J===null)z.effect.first=Q;else J.next=Q;if(Q===null)z.effect.last=J;else Q.prev=J}function XZ(z,J,Q){if(!J||J===V4(String(Q??"")))return;let K,X=z.__svelte_meta?.loc;if(X)K=`near ${X.file}:${X.line}:${X.column}`;else if(c1?.[m1])K=`in ${c1[m1]}`;TQ(_z(K))}function V9(z,J,Q=!1,K=!1,X=!1){var Z=z,w="";g(()=>{var G=Q0;if(w===(w=J()??"")){if(r)s0();return}if(G.nodes!==null)K9(G.nodes.start,G.nodes.end),G.nodes=null;if(w==="")return;if(r){var H=U0.data,B=s0(),F=B;while(B!==null&&(B.nodeType!==R1||B.data!==""))F=B,B=o0(B);if(B===null)throw e5(),D5;if(m&&!X)XZ(B.parentNode,H,w);p1(U0,F),Z=R0(B);return}var q=w+"";if(Q)q=`${q}`;else if(K)q=`${q}`;var Y=d8(q);if(Q||K)Y=_0(Y);if(p1(_0(Y),Y.lastChild),Q||K)while(_0(Y))Z.before(_0(Y));else Z.before(Y)})}function G6(z,J,...Q){var K=new M5(z);M1(()=>{let X=J()??null;if(m&&X==null)WQ();K.ensure(X,X&&((Z)=>X(Z,...Q)))},T1)}function E6(z,J){let Q=null,K=r;var X;if(r){Q=U0;var Z=_0(document.head);while(Z!==null&&(Z.nodeType!==R1||Z.data!==z))Z=o0(Z);if(Z===null)h0(!1);else{var w=o0(Z);Z.remove(),R0(w)}}if(!r)X=document.head.appendChild(d0());try{M1(()=>J(X),r6)}finally{if(K)h0(!0),R0(Q)}}function sz(z,J){var Q=void 0,K;lz(()=>{if(Q!==(Q=J())){if(K)f0(K),K=null;if(Q)K=a0(()=>{H1(()=>Q(z))})}})}function j4(z){var J,Q,K="";if(typeof z=="string"||typeof z=="number")K+=z;else if(typeof z=="object")if(Array.isArray(z)){var X=z.length;for(J=0;J=0){var G=w+Z;if((w===0||R4.includes(K[w-1]))&&(G===K.length||R4.includes(K[G])))K=(w===0?"":K.substring(0,w))+K.substring(G+1);else w=G}}}return K===""?null:K}function A4(z,J=!1){var Q=J?" !important;":";",K="";for(var X in z){var Z=z[X];if(Z!=null&&Z!=="")K+=" "+X+": "+Z+Q}return K}function q9(z){if(z[0]!=="-"||z[1]!=="-")return z.toLowerCase();return z}function k4(z,J){if(J){var Q="",K,X;if(Array.isArray(J))K=J[0],X=J[1];else K=J;if(z){z=String(z).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var Z=!1,w=0,G=!1,H=[];if(K)H.push(...Object.keys(K).map(q9));if(X)H.push(...Object.keys(X).map(q9));var B=0,F=-1;let I=z.length;for(var q=0;q{H8(z,z.__value)});J.observe(z,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),B1(()=>{J.disconnect()})}function x9(z,J,Q=J){var K=new WeakSet,X=!0;f8(z,"change",(Z)=>{var w=Z?"[selected]":":checked",G;if(z.multiple)G=[].map.call(z.querySelectorAll(w),_8);else{var H=z.querySelector(w)??z.querySelector("option:not([disabled])");G=H&&_8(H)}if(Q(G),F0!==null)K.add(F0)}),H1(()=>{var Z=J();if(z===document.activeElement){var w=Q8??F0;if(K.has(w))return}if(H8(z,Z,X),X&&Z===void 0){var G=z.querySelector(":checked");if(G!==null)Z=_8(G),Q(Z)}z.__value=Z,X=!1}),oz(z)}function _8(z){if("__value"in z)return z.__value;else return z.value}var U8=Symbol("class"),V8=Symbol("style"),E4=Symbol("is custom element"),y4=Symbol("is html");function p0(z){if(!r)return;var J=!1,Q=()=>{if(J)return;if(J=!0,z.hasAttribute("value")){var K=z.value;i(z,"value",null),z.value=K}if(z.hasAttribute("checked")){var X=z.checked;i(z,"checked",null),z.checked=X}};z.__on_r=Q,m0(Q),uz()}function W5(z,J){var Q=C9(z);if(Q.value===(Q.value=J??void 0)||z.value===J&&(J!==0||z.nodeName!=="PROGRESS"))return;z.value=J??""}function v4(z,J){if(J){if(!z.hasAttribute("selected"))z.setAttribute("selected","")}else z.removeAttribute("selected")}function i(z,J,Q,K){var X=C9(z);if(r){if(X[J]=z.getAttribute(J),J==="src"||J==="srcset"||J==="href"&&z.nodeName==="LINK"){if(!K)BZ(z,J,Q??"");return}}if(X[J]===(X[J]=Q))return;if(J==="loading")z[tJ]=Q;if(Q==null)z.removeAttribute(J);else if(typeof Q!=="string"&&g4(z).includes(J))z[J]=Q;else z.setAttribute(J,Q)}function GZ(z,J,Q,K,X=!1,Z=!1){if(r&&X&&z.tagName==="INPUT"){var w=z,G=w.type==="checkbox"?"defaultChecked":"defaultValue";if(!(G in Q))p0(w)}var H=C9(z),B=H[E4],F=!H[y4];let q=r&&B;if(q)h0(!1);var Y=J||{},U=z.tagName==="OPTION";for(var x in J)if(!(x in Q))Q[x]=null;if(Q.class)Q.class=y6(Q.class);else if(K||Q[U8])Q.class=null;if(Q[V8])Q.style??=null;var I=g4(z);for(let N in Q){let R=Q[N];if(U&&N==="value"&&R==null){z.value=z.__value="",Y[N]=R;continue}if(N==="class"){var M=z.namespaceURI==="http://www.w3.org/1999/xhtml";K1(z,M,R,K,J?.[U8],Q[U8]),Y[N]=R,Y[U8]=Q[U8];continue}if(N==="style"){_5(z,R,J?.[V8],Q[V8]),Y[N]=R,Y[V8]=Q[V8];continue}var A=Y[N];if(R===A&&!(R===void 0&&z.hasAttribute(N)))continue;Y[N]=R;var E=N[0]+N[1];if(E==="$$")continue;if(E==="on"){let k={},$="$$"+N,b=N.slice(2);var v=F4(b);if(q4(b))b=b.slice(0,-7),k.capture=!0;if(!v&&A){if(R!=null)continue;z.removeEventListener(b,Y[$],k),Y[$]=null}if(R!=null)if(!v){let l=function(n){Y[N].call(this,n)};Y[$]=X9(b,z,l,k)}else z[`__${b}`]=R,I0([b]);else if(v)z[`__${b}`]=void 0}else if(N==="style")i(z,N,R);else if(N==="autofocus")k6(z,Boolean(R));else if(!B&&(N==="__value"||N==="value"&&R!=null))z.value=z.__value=R;else if(N==="selected"&&U)v4(z,R);else{var T=N;if(!F)T=x4(T);var y=T==="defaultValue"||T==="defaultChecked";if(R==null&&!B&&!y)if(H[N]=null,T==="value"||T==="checked"){let k=z,$=J===void 0;if(T==="value"){let b=k.defaultValue;k.removeAttribute(T),k.defaultValue=b,k.value=k.__value=$?b:null}else{let b=k.defaultChecked;k.removeAttribute(T),k.defaultChecked=b,k.checked=$?b:!1}}else z.removeAttribute(N);else if(y||I.includes(T)&&(B||typeof R!=="string")){if(z[T]=R,T in H)H[T]=b0}else if(typeof R!=="function")i(z,T,R,Z)}}if(q)h0(!0);return Y}function az(z,J,Q=[],K=[],X=[],Z,w=!1,G=!1){Z8(X,Q,K,(H)=>{var B=void 0,F={},q=z.nodeName==="SELECT",Y=!1;if(lz(()=>{var x=J(...H.map(W)),I=GZ(z,B,x,Z,w,G);if(Y&&q&&"value"in x)H8(z,x.value);for(let A of Object.getOwnPropertySymbols(F))if(!x[A])f0(F[A]);for(let A of Object.getOwnPropertySymbols(x)){var M=x[A];if(A.description===E7&&(!B||M!==B[A])){if(F[A])f0(F[A]);F[A]=a0(()=>sz(z,()=>M))}I[A]=M}B=I}),q){var U=z;H1(()=>{H8(U,B.value,!0),oz(U)})}Y=!0})}function C9(z){return z.__attributes??={[E4]:z.nodeName.includes("-"),[y4]:z.namespaceURI===NQ}}var b4=new Map;function g4(z){var J=z.getAttribute("is")||z.nodeName,Q=b4.get(J);if(Q)return Q;b4.set(J,Q=[]);var K,X=z,Z=Element.prototype;while(Z!==X){K=Mz(X);for(var w in K)if(K[w].set)Q.push(w);X=M6(X)}return Q}function BZ(z,J,Q){if(!m)return;if(J==="srcset"&&HZ(z,Q))return;if(M9(z.getAttribute(J)??"",Q))return;bQ(J,z.outerHTML.replace(z.innerHTML,z.innerHTML&&"..."),String(Q))}function M9(z,J){if(z===J)return!0;return new URL(z,document.baseURI).href===new URL(J,document.baseURI).href}function T4(z){return z.split(",").map((J)=>J.trim().split(" ").filter(Boolean))}function HZ(z,J){var Q=T4(z.srcset),K=T4(J);return K.length===Q.length&&K.every(([X,Z],w)=>Z===Q[w][1]&&(M9(Q[w][0],X)||M9(X,Q[w][0])))}function P1(z,J,Q=J){var K=new WeakSet;if(f8(z,"input",async(X)=>{if(m&&z.type==="checkbox")b7();var Z=X?z.defaultValue:z.value;if(Z=P9(z)?L9(Z):Z,Q(Z),F0!==null)K.add(F0);if(await y8(),Z!==(Z=J())){var{selectionStart:w,selectionEnd:G}=z,H=z.value.length;if(z.value=Z??"",G!==null){var B=z.value.length;if(w===G&&G===H&&B>H)z.selectionStart=B,z.selectionEnd=B;else z.selectionStart=w,z.selectionEnd=Math.min(G,B)}}}),r&&z.defaultValue!==z.value||T0(J)==null&&z.value){if(Q(P9(z)?L9(z.value):z.value),F0!==null)K.add(F0)}Y1(()=>{if(m&&z.type==="checkbox")b7();var X=J();if(z===document.activeElement){var Z=Q8??F0;if(K.has(Z))return}if(P9(z)&&X===L9(z.value))return;if(z.type==="date"&&!X&&!z.value)return;if(X!==z.value)z.value=X??""})}var O9=new Set;function c8(z,J,Q,K,X=K){var Z=Q.getAttribute("type")==="checkbox",w=z;let G=!1;if(J!==null)for(var H of J)w=w[H]??=[];if(w.push(Q),f8(Q,"change",()=>{var B=Q.__value;if(Z)B=h4(w,B,Q.checked);X(B)},()=>X(Z?[]:null)),Y1(()=>{var B=K();if(r&&Q.defaultChecked!==Q.checked){G=!0;return}if(Z)B=B||[],Q.checked=B.includes(Q.__value);else Q.checked=mz(Q.__value,B)}),B1(()=>{var B=w.indexOf(Q);if(B!==-1)w.splice(B,1)}),!O9.has(w))O9.add(w),m0(()=>{w.sort((B,F)=>B.compareDocumentPosition(F)===4?-1:1),O9.delete(w)});m0(()=>{if(G){var B;if(Z)B=h4(w,B,Q.checked);else{var F=w.find((q)=>q.checked);B=F?.__value}X(B)}})}function h4(z,J,Q){var K=new Set;for(var X=0;X{var K=this.#z.get(z);if(K.delete(J),K.size===0)this.#z.delete(z),this.#J.unobserve(z)}}#Z(){return this.#J??(this.#J=new ResizeObserver((z)=>{for(var J of z){I9.entries.set(J.target,J);for(var Q of this.#z.get(J.target)||[])Q(J)}}))}}var UZ=new I9({box:"border-box"});function S9(z,J,Q){var K=UZ.observe(z,()=>Q(z[J]));H1(()=>{return T0(()=>Q(z[J])),K})}function m4(z,J){return z===J||z?.[e0]===J}function z5(z={},J,Q,K){return H1(()=>{var X,Z;return Y1(()=>{X=Z,Z=K?.()||[],T0(()=>{if(z!==Q(...Z)){if(J(z,...Z),X&&m4(Q(...X),z))J(null,...X)}})}),()=>{m0(()=>{if(Z&&m4(Q(...Z),z))J(null,...Z)})}}),z}function j9(z=!1){let J=L0,Q=J.l.u;if(!Q)return;let K=()=>iz(J.s);if(z){let X=0,Z={},w=X6(()=>{let G=!1,H=J.s;for(let B in H)if(H[B]!==Z[B])Z[B]=H[B],G=!0;if(G)X++;return X});K=()=>W(w)}if(Q.b.length)$8(()=>{f4(J,K),a6(Q.b)});if(Q1(()=>{let X=T0(()=>Q.m.map(nJ));return()=>{for(let Z of X)if(typeof Z==="function")Z()}}),Q.a.length)Q1(()=>{f4(J,K),a6(Q.a)})}function f4(z,J){if(z.l.s)for(let Q of z.l.s)W(Q);J()}var nz=!1,bF=Symbol();function D9(z){var J=nz;try{return nz=!1,[z(),nz]}finally{nz=J}}var qZ={get(z,J){if(z.exclude.includes(J))return;return z.props[J]},set(z,J){if(m)GQ(`${z.name}.${String(J)}`);return!1},getOwnPropertyDescriptor(z,J){if(z.exclude.includes(J))return;if(J in z.props)return{enumerable:!0,configurable:!0,value:z.props[J]}},has(z,J){if(z.exclude.includes(J))return!1;return J in z.props},ownKeys(z){return Reflect.ownKeys(z.props).filter((J)=>!z.exclude.includes(J))}};function c5(z,J,Q){return new Proxy(m?{props:z,exclude:J,name:Q,other:{},to_proxy:[]}:{props:z,exclude:J},qZ)}var FZ={get(z,J){let Q=z.props.length;while(Q--){let K=z.props[Q];if(C6(K))K=K();if(typeof K==="object"&&K!==null&&J in K)return K[J]}},set(z,J,Q){let K=z.props.length;while(K--){let X=z.props[K];if(C6(X))X=X();let Z=S1(X,J);if(Z&&Z.set)return Z.set(Q),!0}return!1},getOwnPropertyDescriptor(z,J){let Q=z.props.length;while(Q--){let K=z.props[Q];if(C6(K))K=K();if(typeof K==="object"&&K!==null&&J in K){let X=S1(K,J);if(X&&!X.configurable)X.configurable=!0;return X}}},has(z,J){if(J===e0||J===n6)return!1;for(let Q of z.props){if(C6(Q))Q=Q();if(Q!=null&&J in Q)return!0}return!1},ownKeys(z){let J=[];for(let Q of z.props){if(C6(Q))Q=Q();if(!Q)continue;for(let K in Q)if(!J.includes(K))J.push(K);for(let K of Object.getOwnPropertySymbols(Q))if(!J.includes(K))J.push(K)}return J}};function R9(...z){return new Proxy({props:z},FZ)}function j0(z,J,Q,K){var X=!l5||(Q&LQ)!==0,Z=(Q&SQ)!==0,w=(Q&jQ)!==0,G=K,H=!0,B=()=>{if(H)H=!1,G=w?T0(K):K;return G},F;if(Z){var q=e0 in z||n6 in z;F=S1(z,J)?.set??(q&&J in z?(v)=>z[J]=v:void 0)}var Y,U=!1;if(Z)[Y,U]=D9(()=>z[J]);else Y=z[J];if(Y===void 0&&K!==void 0){if(Y=B(),F){if(X)YQ(J);F(Y)}}var x;if(X)x=()=>{var v=z[J];if(v===void 0)return B();return H=!0,v};else x=()=>{var v=z[J];if(v!==void 0)G=void 0;return v===void 0?G:v};if(X&&(Q&IQ)===0)return x;if(F){var I=z.$$legacy;return function(v,T){if(arguments.length>0){if(!X||!T||I||U)F(T?x():v);return v}return x()}}var M=!1,A=((Q&PQ)!==0?X6:R6)(()=>{return M=!1,x()});if(m)A.label=J;if(Z)W(A);var E=Q0;return function(v,T){if(arguments.length>0){let y=T?W(A):X&&Z?C0(v):v;if(D(A,y),M=!0,G!==void 0)G=y;return v}if(w5&&M||(E.f&b1)!==0)return A.v;return W(A)}}function $4(z){return new u4(z)}class u4{#z;#J;constructor(z){var J=new Map,Q=(X,Z)=>{var w=d5(Z,!1,!1);return J.set(X,w),w};let K=new Proxy({...z.props||{},$$events:{}},{get(X,Z){return W(J.get(Z)??Q(Z,Reflect.get(X,Z)))},has(X,Z){if(Z===n6)return!0;return W(J.get(Z)??Q(Z,Reflect.get(X,Z))),Reflect.has(X,Z)},set(X,Z,w){return D(J.get(Z)??Q(Z,w),w),Reflect.set(X,Z,w)}});if(this.#J=(z.hydrate?Y9:B8)(z.component,{target:z.target,anchor:z.anchor,props:K,context:z.context,intro:z.intro??!1,recover:z.recover}),!F1&&(!z?.props?.$$host||z.sync===!1))K6();this.#z=K.$$events;for(let X of Object.keys(this.#J)){if(X==="$set"||X==="$destroy"||X==="$on")continue;V1(this,X,{get(){return this.#J[X]},set(Z){this.#J[X]=Z},enumerable:!0})}this.#J.$set=(X)=>{Object.assign(K,X)},this.#J.$destroy=()=>{G9(this.#J)}}$set(z){this.#J.$set(z)}$on(z,J){this.#z[z]=this.#z[z]||[];let Q=(...K)=>J.call(this,...K);return this.#z[z].push(Q),()=>{this.#z[z]=this.#z[z].filter((K)=>K!==Q)}}$destroy(){this.#J.$destroy()}}var SZ;if(typeof HTMLElement==="function")SZ=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(z,J,Q){super();if(this.$$ctor=z,this.$$s=J,Q)this.attachShadow({mode:"open"})}addEventListener(z,J,Q){if(this.$$l[z]=this.$$l[z]||[],this.$$l[z].push(J),this.$$c){let K=this.$$c.$on(z,J);this.$$l_u.set(J,K)}super.addEventListener(z,J,Q)}removeEventListener(z,J,Q){if(super.removeEventListener(z,J,Q),this.$$c){let K=this.$$l_u.get(J);if(K)K(),this.$$l_u.delete(J)}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let z=function(K){return(X)=>{let Z=document.createElement("slot");if(K!=="default")Z.name=K;V(X,Z)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let J={},Q=jZ(this);for(let K of this.$$s)if(K in Q)if(K==="default"&&!this.$$d.children)this.$$d.children=z(K),J.default=!0;else J[K]=z(K);for(let K of this.attributes){let X=this.$$g_p(K.name);if(!(X in this.$$d))this.$$d[X]=A9(X,K.value,this.$$p_d,"toProp")}for(let K in this.$$p_d)if(!(K in this.$$d)&&this[K]!==void 0)this.$$d[K]=this[K],delete this[K];this.$$c=$4({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:J,$$host:this}}),this.$$me=z9(()=>{Y1(()=>{this.$$r=!0;for(let K of D7(this.$$c)){if(!this.$$p_d[K]?.reflect)continue;this.$$d[K]=this.$$c[K];let X=A9(K,this.$$d[K],this.$$p_d,"toAttribute");if(X==null)this.removeAttribute(this.$$p_d[K].attribute||K);else this.setAttribute(this.$$p_d[K].attribute||K,X)}this.$$r=!1})});for(let K in this.$$l)for(let X of this.$$l[K]){let Z=this.$$c.$on(K,X);this.$$l_u.set(X,Z)}this.$$l={}}}attributeChangedCallback(z,J,Q){if(this.$$r)return;z=this.$$g_p(z),this.$$d[z]=A9(z,Q,this.$$p_d,"toProp"),this.$$c?.$set({[z]:this.$$d[z]})}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{if(!this.$$cn&&this.$$c)this.$$c.$destroy(),this.$$me(),this.$$c=void 0})}$$g_p(z){return D7(this.$$p_d).find((J)=>this.$$p_d[J].attribute===z||!this.$$p_d[J].attribute&&J.toLowerCase()===z)||z}};function A9(z,J,Q,K){let X=Q[z]?.type;if(J=X==="Boolean"&&typeof J!=="boolean"?J!=null:J,!K||!Q[z])return J;else if(K==="toAttribute")switch(X){case"Object":case"Array":return J==null?null:JSON.stringify(J);case"Boolean":return J?"":null;case"Number":return J==null?null:J;default:return J}else switch(X){case"Object":case"Array":return J&&JSON.parse(J);case"Boolean":return J;case"Number":return J!=null?+J:J;default:return J}}function jZ(z){let J={};return z.childNodes.forEach((Q)=>{J[Q.slot||"default"]=!0}),J}if(m){let z=function(J){if(!(J in globalThis)){let Q;Object.defineProperty(globalThis,J,{configurable:!0,get:()=>{if(Q!==void 0)return Q;BQ(J)},set:(K)=>{Q=K}})}};z("$state"),z("$effect"),z("$derived"),z("$inspect"),z("$props"),z("$bindable")}class N9{cache;prepareCache(){if(!this.cache){let z=localStorage.getItem("handleCache");this.cache=z?JSON.parse(z):{}}}saveCache(){localStorage.setItem("handleCache",JSON.stringify(this.cache))}getHandleDid(z){return this.prepareCache(),this.cache[z]}setHandleDid(z,J){this.prepareCache(),this.cache[z]=J,this.saveCache()}findHandleByDid(z){this.prepareCache();let J=Object.entries(this.cache).find((Q)=>Q[1]==z);return J?J[0]:void 0}}class H6 extends Error{code;json;constructor(z,J){super("APIError status "+z+` +`)}}function KK(z){let J=m7.get(z);if(J)T1(z,"message",{value:J.message}),T1(z,"stack",{value:J.stack})}var bX=~(h0|G1|f0);function u0(z,J){z.f=z.f&bX|J}function D8(z){if((z.f&y1)!==0||z.deps===null)u0(z,f0);else u0(z,G1)}function ZK(z){if(z===null)return;for(let J of z){if((J.f&p0)===0||(J.f&G6)===0)continue;J.f^=G6,ZK(J.deps)}}function Fz(z,J,Q){if((z.f&h0)!==0)J.add(z);else if((z.f&G1)!==0)Q.add(z);ZK(z.deps),u0(z,f0)}var XK=!1,Mz=!1,$G=Symbol("unmounted");function f7(z){var J=Mz;try{return Mz=!1,[z(),Mz]}finally{Mz=J}}function wK(z){let J=0,Q=D1(0),K;if(g)d1(Q,"createSubscriber version");return()=>{if(P5())W(Q),O1(()=>{if(J===0)K=l0(()=>z(()=>c5(Q)));return J+=1,()=>{s0(()=>{if(J-=1,J===0)K?.(),K=void 0,c5(Q)})}})}}var EX=o1|p6;function u7(z,J,Q,K){new $7(z,J,Q,K)}class $7{parent;is_pending=!1;transform_error;#z;#J=r?B0:null;#Q;#W;#X;#w=null;#K=null;#Y=null;#Z=null;#x=0;#B=0;#U=!1;#H=new Set;#F=new Set;#G=null;#S=wK(()=>{if(this.#G=D1(this.#x),g)d1(this.#G,"$effect.pending()");return()=>{this.#G=null}});constructor(z,J,Q,K){if(this.#z=z,this.#Q=J,this.#W=(Z)=>{var X=e;X.b=this,X.f|=C8,Q(Z)},this.parent=e.b,this.transform_error=K??this.parent?.transform_error??((Z)=>Z),this.#X=h1(()=>{if(r){let Z=this.#J;H1();let X=Z.data===J5;if(Z.data.startsWith(b7)){let Y=JSON.parse(Z.data.slice(b7.length));this.#C(Y)}else if(X)this.#j();else this.#M()}else this.#P()},EX),r)this.#z=B0}#M(){try{this.#w=Q1(()=>this.#W(this.#z))}catch(z){this.error(z)}}#C(z){let J=this.#Q.failed;if(!J)return;this.#Y=Q1(()=>{J(this.#z,()=>z,()=>()=>{})})}#j(){let z=this.#Q.pending;if(!z)return;this.is_pending=!0,this.#K=Q1(()=>z(this.#z)),s0(()=>{var J=this.#Z=document.createDocumentFragment(),Q=K1();if(J.append(Q),this.#w=this.#O(()=>{return Q1(()=>this.#W(Q))}),this.#B===0)this.#z.before(J),this.#Z=null,i6(this.#K,()=>{this.#K=null}),this.#V(w0)})}#P(){try{if(this.is_pending=this.has_pending_snippet(),this.#B=0,this.#x=0,this.#w=Q1(()=>{this.#W(this.#z)}),this.#B>0){var z=this.#Z=document.createDocumentFragment();R8(this.#w,z);let J=this.#Q.pending;this.#K=Q1(()=>J(this.#z))}else this.#V(w0)}catch(J){this.error(J)}}#V(z){this.is_pending=!1,z.transfer_effects(this.#H,this.#F)}defer_effect(z){Fz(z,this.#H,this.#F)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#Q.pending}#O(z){var J=e,Q=G0,K=x0;C1(this.#X),S1(this.#X),K5(this.#X.ctx);try{return R1.ensure(),z()}catch(Z){return qz(Z),null}finally{C1(J),S1(Q),K5(K)}}#q(z,J){if(!this.has_pending_snippet()){if(this.parent)this.parent.#q(z,J);return}if(this.#B+=z,this.#B===0){if(this.#V(J),this.#K)i6(this.#K,()=>{this.#K=null});if(this.#Z)this.#z.before(this.#Z),this.#Z=null}}update_pending_count(z,J){if(this.#q(z,J),this.#x+=z,!this.#G||this.#U)return;this.#U=!0,s0(()=>{if(this.#U=!1,this.#G)X6(this.#G,this.#x)})}get_effect_pending(){return this.#S(),W(this.#G)}error(z){if(!this.#Q.onerror&&!this.#Q.failed)throw z;if(w0?.is_fork){if(this.#w)w0.skip_effect(this.#w);if(this.#K)w0.skip_effect(this.#K);if(this.#Y)w0.skip_effect(this.#Y);w0.oncommit(()=>{this.#L(z)})}else this.#L(z)}#L(z){if(this.#w)c0(this.#w),this.#w=null;if(this.#K)c0(this.#K),this.#K=null;if(this.#Y)c0(this.#Y),this.#Y=null;if(r)k0(this.#J),F1(),k0(N6());var J=this.#Q.onerror;let Q=this.#Q.failed;var K=!1,Z=!1;let X=()=>{if(K){oQ();return}if(K=!0,Z)AQ();if(this.#Y!==null)i6(this.#Y,()=>{this.#Y=null});this.#O(()=>{this.#P()})},w=(Y)=>{try{Z=!0,J?.(Y,X),Z=!1}catch(G){y6(G,this.#X&&this.#X.parent)}if(Q)this.#Y=this.#O(()=>{try{return Q1(()=>{var G=e;G.b=this,G.f|=C8,Q(this.#z,()=>Y,()=>X)})}catch(G){return y6(G,this.#X.parent),null}})};s0(()=>{var Y;try{Y=this.transform_error(z)}catch(G){y6(G,this.#X&&this.#X.parent);return}if(Y!==null&&typeof Y==="object"&&typeof Y.then==="function")Y.then(w,(G)=>y6(G,this.#X&&this.#X.parent));else w(Y)})}}function A8(z,J,Q,K){let Z=M6()?X5:a5;var X=z.filter((x)=>!x.settled),w=J.map(Z);if(g)w.forEach((x,q)=>{x.label=J[q].toString().replace("() => ","").replaceAll("$.eager(() => ","$state.eager(").replace(/\$\.get\((.+?)\)/g,(C,P)=>P)});if(Q.length===0&&X.length===0){K(w);return}var Y=e,G=l7(),B=X.length===1?X[0].promise:X.length>1?Promise.all(X.map((x)=>x.promise)):null;function V(x){if((Y.f&a0)!==0)return;G();try{K([...w,...x])}catch(q){y6(q,Y)}o5()}var H=p7();if(Q.length===0){B.then(()=>V([])).finally(H);return}function U(){Promise.all(Q.map((x)=>i7(x))).then(V).catch((x)=>y6(x,Y)).finally(H)}if(B)B.then(()=>{G(),U(),o5()});else U()}function l7(){var z=e,J=G0,Q=x0,K=w0;if(g)var Z=E6;return function(w=!0){if(C1(z),S1(J),K5(Q),w&&(z.f&a0)===0)K?.activate(),K?.apply();if(g)d7(null),I8(Z)}}function o5(z=!0){if(C1(null),S1(null),K5(null),z)w0?.deactivate();if(g)d7(null),I8(null)}function p7(){var z=e,J=z.b,Q=w0,K=!!J?.is_rendered();return J?.update_pending_count(1,Q),Q.increment(K,z),()=>{J?.update_pending_count(-1,Q),Q.decrement(K,z)}}var w6=null;function d7(z){w6=z}var q9=new Set;function X5(z){var J=p0|h0;if(e!==null)e.f|=p6;let Q={ctx:x0,deps:null,effects:null,equals:Bz,f:J,fn:z,reactions:null,rv:0,v:m0,wv:0,parent:e,ac:null};if(g&&b6)Q.created=T6("created at");return Q}var k8=Symbol("obsolete");function i7(z,J,Q){let K=e;if(K===null)UQ();var Z=void 0,X=D1(m0);if(g)X.label=J??z.toString();var w=!G0,Y=new Set;if(GK(()=>{var G=e;if(g)w6={effect:G,effect_deps:new Set,warned:!1};var B=Kz();Z=B.promise;try{Promise.resolve(z()).then(B.resolve,(x)=>{if(x!==S5)B.reject(x)}).finally(o5)}catch(x){B.reject(x),o5()}if(g){if(w6){if(G.deps!==null)for(let x=0;x{if(g)w6=null;if(H?.(),Y.delete(B),q===k8)return;if(V.activate(),q)X.f|=F6,X6(X,q);else{if((X.f&F6)!==0)X.f^=F6;if(g&&Q!==void 0&&!X.equals(x))q9.add(X),setTimeout(()=>{if(q9.has(X)&&(G.f&a0)===0)lQ(X.label,Q),q9.delete(X)});X6(X,x)}V.deactivate()};B.promise.then(U,(x)=>U(null,x||"unknown"))}),M1(()=>{for(let G of Y)G.reject(k8)}),g)X.f|=B6;return new Promise((G)=>{function B(V){function H(){if(V===Z)G(X);else B(Z)}V.then(H,H)}B(Z)})}function z0(z){let J=X5(z);if(!J1)Cz(J);return J}function a5(z){let J=X5(z);return J.equals=Uz,J}function WK(z){var J=z.effects;if(J!==null){z.effects=null;for(var Q=0;Qthis.schedule(Q)){var Q=this.#H.get(z);if(Q){this.#H.delete(z);for(var K of Q.d)u0(K,h0),J(K);for(K of Q.m)u0(K,G1),J(K)}this.#F.add(z)}#M(){if(this.#z=!0,BK++>1000)this.#q(),hX();if(g)for(let Y of this.current.keys())a7.add(Y);for(let Y of this.#B)this.#U.delete(Y),u0(Y,h0),this.schedule(Y);for(let Y of this.#U)u0(Y,G1),this.schedule(Y);let z=this.#Z;this.#Z=[],this.apply();var J=t5=[],Q=[],K=O9=[];for(let Y of z)try{this.#C(Y,J,Q)}catch(G){if(xK(Y),!this.#S())this.discard();throw G}if(w0=null,K.length>0){var Z=R1.ensure();for(let Y of K)Z.schedule(Y)}if(t5=null,O9=null,this.#S()){this.#V(Q),this.#V(J);for(let[Y,G]of this.#H)VK(Y,G);if(K.length>0)w0.#M();return}let X=this.#j();if(X){this.#V(Q),this.#V(J),X.#P(this);return}this.#B.clear(),this.#U.clear();for(let Y of this.#W)Y(this);this.#W.clear(),_6=this,UK(Q),UK(J),_6=null,this.#Y?.resolve();var w=w0;if(this.#w===0&&(this.#Z.length===0||w!==null)){if(this.#q(),J1)this.#O(),w0=w}if(this.#Z.length>0)if(w!==null){let Y=w;Y.#Z.push(...this.#Z.filter((G)=>!Y.#Z.includes(G)))}else w=this;if(w!==null)w.#M()}#C(z,J,Q){z.f^=f0;var K=z.first;while(K!==null){var Z=K.f,X=(Z&(q1|Q6))!==0,w=X&&(Z&f0)!==0,Y=w||(Z&B1)!==0||this.#H.has(K);if(!Y&&K.fn!==null){if(X)K.f^=f0;else if((Z&D6)!==0)J.push(K);else if(J1&&(Z&(z5|F5))!==0)Q.push(K);else if(I5(K)){if((Z&E1)!==0)this.#U.add(K);c6(K)}var G=K.first;if(G!==null){K=G;continue}}while(K!==null){var B=K.next;if(B!==null){K=B;break}K=K.parent}}}#j(){var z=this.#J;while(z!==null){if(!z.is_fork){for(let[J,[,Q]]of this.current)if(z.current.has(J)&&!Q)return z}z=z.#J}return null}#P(z){for(let[Q,K]of z.current){if(!this.previous.has(Q)&&z.previous.has(Q))this.previous.set(Q,z.previous.get(Q));this.current.set(Q,K)}for(let[Q,K]of z.async_deriveds){let Z=this.async_deriveds.get(Q);if(Z)K.promise.then(Z.resolve).catch(Z.reject)}z.async_deriveds.clear(),this.transfer_effects(z.#B,z.#U);let J=(Q)=>{var K=Q.reactions;if(K===null)return;for(let w of K){var Z=w.f;if((Z&p0)!==0)J(w);else{var X=w;if(Z&(B6|E1)&&!this.async_deriveds.has(X))this.#U.delete(X),u0(X,h0),this.schedule(X)}}};for(let Q of this.current.keys())J(Q);this.oncommit(()=>z.discard()),z.#q(),w0=this,this.#M()}#V(z){for(var J=0;J!V.current.get(H)[1]);if(!V.#z||K.length===0)continue;var Z=K.filter((H)=>!this.current.has(H));if(Z.length===0){if(z)V.discard()}else if(J.length>0){if(g&&!V.#G)nQ(V.#Z.length===0,"Batch has scheduled roots");if(z)for(let H of this.#F)V.unskip_effect(H,(U)=>{if((U.f&(E1|B6))!==0)V.schedule(U);else V.#V([U])});V.activate();var X=new Set,w=new Map;for(var Y of J)HK(Y,Z,X,w);w=new Map;var G=[...V.current].filter(([H,U])=>{let x=this.current.get(H);if(!x)return!0;return x[0]!==U[0]||x[1]!==U[1]}).map(([H])=>H);if(G.length>0){for(let H of this.#x)if((H.f&(a0|B1|M5))===0&&n7(H,G,w))if((H.f&(B6|E1))!==0)u0(H,h0),V.schedule(H);else V.#B.add(H)}if(V.#Z.length>0&&!V.#G){V.apply();for(var B of V.#Z)V.#C(B,[],[]);V.#Z=[]}V.deactivate()}}}increment(z,J){if(this.#w+=1,z){let Q=this.#K.get(J)??0;this.#K.set(J,Q+1)}}decrement(z,J){if(this.#w-=1,z){let Q=this.#K.get(J)??0;if(Q===1)this.#K.delete(J);else this.#K.set(J,Q-1)}if(this.#G)return;this.#G=!0,s0(()=>{if(this.#G=!1,this.linked)this.flush()})}transfer_effects(z,J){for(let Q of z)this.#B.add(Q);for(let Q of J)this.#U.add(Q);z.clear(),J.clear()}oncommit(z){this.#W.add(z)}ondiscard(z){this.#X.add(z)}settled(){return(this.#Y??=Kz()).promise}static ensure(){if(w0===null){let z=w0=new R1;if(!o7&&!j5)s0(()=>{if(!z.#z)z.flush()})}return w0}apply(){if(!J1||!this.is_fork&&this.#J===null&&this.#Q===null){k1=null;return}k1=new Map;for(let[J,[Q]]of this.current)k1.set(J,Q);for(let J=Pz;J!==null;J=J.#Q){if(J===this||J.is_fork)continue;var z=!1;if(J.id0){w5.clear();for(let Z of O6){if((Z.f&(a0|B1))!==0)continue;let X=[Z],w=Z.parent;while(w!==null){if(O6.has(w))O6.delete(w),X.push(w);w=w.parent}for(let Y=X.length-1;Y>=0;Y--){let G=X[Y];if((G.f&(a0|B1))!==0)continue;c6(G)}}O6.clear()}}}O6=null}function HK(z,J,Q,K){if(Q.has(z))return;if(Q.add(z),z.reactions!==null)for(let Z of z.reactions){let X=Z.f;if((X&p0)!==0)HK(Z,J,Q,K);else if((X&(B6|E1))!==0&&(X&h0)===0&&n7(Z,J,K))u0(Z,h0),S9(Z)}}function n7(z,J,Q){let K=Q.get(z);if(K!==void 0)return K;if(z.deps!==null)for(let Z of z.deps){if(q5.call(J,Z))return!0;if((Z.f&p0)!==0&&n7(Z,J,Q))return Q.set(Z,!0),!0}return Q.set(z,!1),!1}function S9(z){w0.schedule(z)}function VK(z,J){if((z.f&q1)!==0&&(z.f&f0)!==0)return;if((z.f&h0)!==0)J.d.push(z);else if((z.f&G1)!==0)J.m.push(z);u0(z,f0);var Q=z.first;while(Q!==null)VK(Q,J),Q=Q.next}function xK(z){u0(z,f0);var J=z.first;while(J!==null)xK(J),J=J.next}var r5=new Set,w5=new Map;function Oz(z){r5=z}var e7=!1;function FK(){e7=!0}function D1(z,J){var Q={f:0,v:z,reactions:null,equals:Bz,rv:0,wv:0};if(g&&b6)Q.created=J??T6("created at"),Q.updated=null,Q.set_during_effect=!1,Q.trace=null;return Q}function m(z,J){let Q=D1(z,J);return Cz(Q),Q}function Z5(z,J=!1,Q=!0){let K=D1(z);if(!J)K.equals=Uz;if(Q5&&Q&&x0!==null&&x0.l!==null)(x0.l.s??=[]).push(K);return K}function D(z,J,Q=!1){if(G0!==null&&(!r1||(G0.f&M5)!==0)&&M6()&&(G0.f&(p0|E1|B6|M5))!==0&&(v6===null||!v6.has(z)))RQ();let K=Q?q0(J):J;if(g)Vz(K,z.label);return X6(z,K,O9)}function X6(z,J,Q=null){if(!z.equals(J)){w5.set(z,H6?J:z.v);var K=R1.ensure();if(K.capture(z,J),g){if(b6||e!==null){z.updated??=new Map;let Z=(z.updated.get("")?.count??0)+1;if(z.updated.set("",{error:null,count:Z}),b6||Z>5){let X=T6("updated at");if(X!==null){let w=z.updated.get(X.stack);if(!w)w={error:X,count:0},z.updated.set(X.stack,w);w.count++}}}if(e!==null)z.set_during_effect=!0}if((z.f&p0)!==0){let Z=z;if((z.f&h0)!==0)F9(Z);if(k1===null)D8(Z)}if(z.wv=N8(),MK(z,h0,Q),M6()&&e!==null&&(e.f&f0)!==0&&(e.f&(q1|Q6))===0)if(V6===null)OK([z]);else V6.push(z);if(!K.is_fork&&r5.size>0&&!e7)jz()}return J}function jz(){e7=!1;for(let z of r5){if((z.f&f0)!==0)u0(z,G1);let J;try{J=I5(z)}catch{J=!0}if(J)c6(z)}r5.clear()}function c5(z){D(z,z.v+1)}function MK(z,J,Q){var K=z.reactions;if(K===null)return;var Z=M6(),X=K.length;for(var w=0;w{if(D5===w)return H();var U=G0,x=D5;S1(null),z4(w);var q=H();return S1(U),z4(x),q};if(K){if(Q.set("length",m(z.length,X)),g)z=$X(z)}var G="";let B=!1;function V(H){if(B)return;B=!0,G=H,d1(Z,`${G} version`);for(let[U,x]of Q)d1(x,e5(G,U));B=!1}return new Proxy(z,{defineProperty(H,U,x){if(!("value"in x)||x.configurable===!1||x.enumerable===!1||x.writable===!1)IQ();var q=Q.get(U);if(q===void 0)Y(()=>{var C=m(x.value,X);if(Q.set(U,C),g&&typeof U==="string")d1(C,e5(G,U));return C});else D(q,x.value,!0);return!0},deleteProperty(H,U){var x=Q.get(U);if(x===void 0){if(U in H){let q=Y(()=>m(m0,X));if(Q.set(U,q),c5(Z),g)d1(q,e5(G,U))}}else D(x,m0),c5(Z);return!0},get(H,U,x){if(U===U1)return z;if(g&&U===Xz)return V;var q=Q.get(U),C=U in H;if(q===void 0&&(!C||p1(H,U)?.writable))q=Y(()=>{var I=q0(C?H[U]:m0),R=m(I,X);if(g)d1(R,e5(G,U));return R}),Q.set(U,q);if(q!==void 0){var P=W(q);return P===m0?void 0:P}return Reflect.get(H,U,x)},getOwnPropertyDescriptor(H,U){var x=Reflect.getOwnPropertyDescriptor(H,U);if(x&&"value"in x){var q=Q.get(U);if(q)x.value=W(q)}else if(x===void 0){var C=Q.get(U),P=C?.v;if(C!==void 0&&P!==m0)return{enumerable:!0,configurable:!0,value:P,writable:!0}}return x},has(H,U){if(U===U1)return!0;var x=Q.get(U),q=x!==void 0&&x.v!==m0||Reflect.has(H,U);if(x!==void 0||e!==null&&(!q||p1(H,U)?.writable)){if(x===void 0)x=Y(()=>{var P=q?q0(H[U]):m0,I=m(P,X);if(g)d1(I,e5(G,U));return I}),Q.set(U,x);var C=W(x);if(C===m0)return!1}return q},set(H,U,x,q){var C=Q.get(U),P=U in H;if(K&&U==="length")for(var I=x;Im(m0,X)),Q.set(I+"",R),g)d1(R,e5(G,I))}}if(C===void 0){if(!P||p1(H,U)?.writable){if(C=Y(()=>m(void 0,X)),g)d1(C,e5(G,U));D(C,q0(x)),Q.set(U,C)}}else{P=C.v!==m0;var v=Y(()=>q0(x));D(C,v)}var f=Reflect.getOwnPropertyDescriptor(H,U);if(f?.set)f.set.call(q,x);if(!P){if(K&&typeof U==="string"){var b=Q.get("length"),E=Number(U);if(Number.isInteger(E)&&E>=b.v)D(b,E+1)}c5(Z)}return!0},ownKeys(H){W(Z);var U=Reflect.ownKeys(H).filter((C)=>{var P=Q.get(C);return P===void 0||P.v!==m0});for(var[x,q]of Q)if(q.v!==m0&&!(x in H))U.push(x);return U},setPrototypeOf(){DQ()}})}function e5(z,J){if(typeof J==="symbol")return`${z}[Symbol(${J.description??""})]`;if(fX.test(J))return`${z}.${J}`;return/^\d+$/.test(J)?`${z}[${J}]`:`${z}['${J}']`}function T8(z){try{if(z!==null&&typeof z==="object"&&U1 in z)return z[U1]}catch{}return z}function Lz(z,J){return Object.is(T8(z),T8(J))}var uX=new Set(["copyWithin","fill","pop","push","reverse","shift","sort","splice","unshift"]);function $X(z){return new Proxy(z,{get(J,Q,K){var Z=Reflect.get(J,Q,K);if(!uX.has(Q))return Z;return function(...X){FK();var w=Z.apply(this,X);return jz(),w}}})}function SK(){let{prototype:z,__svelte_cleanup:J}=Array;if(J)J();let{indexOf:Q,lastIndexOf:K,includes:Z}=z;z.indexOf=function(X,w){let Y=Q.call(this,X,w);if(Y===-1){for(let G=w??0;G{z.indexOf=Q,z.lastIndexOf=K,z.includes=Z}}var J4,R5,x9,CK,PK;function Iz(){if(J4!==void 0)return;J4=window,R5=document,x9=/Firefox/.test(navigator.userAgent);var z=Element.prototype,J=Node.prototype,Q=Text.prototype;if(CK=p1(J,"firstChild").get,PK=p1(J,"nextSibling").get,j7(z))z[Y9]=void 0,z[wz]=null,z[G9]=void 0,z.__e=void 0;if(j7(Q))Q[B9]=void 0;if(g)z.__svelte_meta=null,SK()}function K1(z=""){return document.createTextNode(z)}function Z1(z){return CK.call(z)}function X1(z){return PK.call(z)}function S(z,J){if(!r)return Z1(z);var Q=Z1(B0);if(Q===null)Q=B0.appendChild(K1());else if(J&&Q.nodeType!==d5){var K=K1();return Q?.before(K),k0(K),K}if(J)P9(Q);return k0(Q),Q}function p(z,J=!1){if(!r){var Q=Z1(z);if(Q instanceof Comment&&Q.data==="")return X1(Q);return Q}if(J){if(B0?.nodeType!==d5){var K=K1();return B0?.before(K),k0(K),K}P9(B0)}return B0}function L(z,J=1,Q=!1){let K=r?B0:z;var Z;while(J--)Z=K,K=X1(K);if(!r)return K;if(Q){if(K?.nodeType!==d5){var X=K1();if(K===null)Z?.after(X);else K.before(X);return k0(X),X}P9(K)}return k0(K),K}function C9(z){z.textContent=""}function Dz(){if(!J1)return!1;if(O6!==null)return!1;var z=e.f;return(z&s1)!==0}function s6(z,J,Q){if(J==null||J===Yz)return Q?document.createElement(z,{is:Q}):document.createElement(z);return Q?document.createElementNS(J,z,{is:Q}):document.createElementNS(J,z)}function P9(z){if(z.nodeValue.length<65536)return;let J=z.nextSibling;while(J!==null&&J.nodeType===d5)J.remove(),z.nodeValue+=J.nodeValue,J=z.nextSibling}function z8(z,J){if(J){let Q=document.body;z.autofocus=!0,s0(()=>{if(document.activeElement===Q)z.focus()})}}var jK=!1;function Rz(){if(!jK)jK=!0,document.addEventListener("reset",(z)=>{Promise.resolve().then(()=>{if(!z.defaultPrevented)for(let J of z.target.elements)J[O5]?.()})},{capture:!0})}function W5(z){var J=G0,Q=e;S1(null),C1(null);try{return z()}finally{S1(J),C1(Q)}}function j9(z,J,Q,K=Q){z.addEventListener(J,()=>W5(Q));let Z=z[O5];if(Z)z[O5]=()=>{Z(),K(!0)};else z[O5]=()=>K(!0);Rz()}function K4(z){if(e===null){if(G0===null)FQ(z);qQ()}if(H6)xQ(z)}function lX(z,J){var Q=J.last;if(Q===null)J.last=J.first=z;else Q.next=z,z.prev=Q,J.last=z}function x6(z,J){var Q=e;if(g)while(Q!==null&&(Q.f&M5)!==0)Q=Q.parent;if(Q!==null&&(Q.f&B1)!==0)z|=B1;var K={ctx:x0,deps:null,nodes:null,f:z|h0|y1,first:null,fn:J,last:null,next:null,parent:Q,b:Q&&Q.b,prev:null,teardown:null,wv:0,ac:null};if(g)K.component_function=U6;w0?.register_created_effect(K);var Z=K;if((z&D6)!==0)if(t5!==null)t5.push(K);else R1.ensure().schedule(K);else if(J!==null){try{c6(K)}catch(w){throw c0(K),w}if(Z.deps===null&&Z.teardown===null&&Z.nodes===null&&Z.first===Z.last&&(Z.f&p6)===0){if(Z=Z.first,(z&E1)!==0&&(z&o1)!==0&&Z!==null)Z.f|=o1}}if(Z!==null){if(Z.parent=Q,Q!==null)lX(Z,Q);if(G0!==null&&(G0.f&p0)!==0&&(z&Q6)===0){var X=G0;(X.effects??=[]).push(Z)}}return K}function P5(){return G0!==null&&!r1}function M1(z){let J=x6(z5,null);return u0(J,f0),J.teardown=z,J}function o0(z){if(K4("$effect"),g)T1(z,"name",{value:"$effect"});var J=e.f,Q=!G0&&(J&q1)!==0&&x0!==null&&!x0.i;if(Q){var K=x0;(K.e??=[]).push(z)}else return h7(z)}function h7(z){return x6(D6|D7,z)}function L9(z){if(K4("$effect.pre"),g)T1(z,"name",{value:"$effect.pre"});return x6(z5|D7,z)}function Z4(z){R1.ensure();let J=x6(Q6|p6,z);return()=>{c0(J)}}function LK(z){R1.ensure();let J=x6(Q6|p6,z);return(Q={})=>{return new Promise((K)=>{if(Q.outro)i6(J,()=>{c0(J),K(void 0)});else c0(J),K(void 0)})}}function P1(z){return x6(D6,z)}function GK(z){return x6(B6|p6,z)}function O1(z,J=0){return x6(z5|J,z)}function y(z,J=[],Q=[],K=[]){A8(K,J,Q,(Z)=>{x6(z5,()=>{z(...Z.map(W))})})}function I9(z,J=[],Q=[],K=[]){A8(K,J,Q,(Z)=>{x6(D6,()=>z(...Z.map(W)))})}function h1(z,J=0){var Q=x6(E1|J,z);if(g)Q.dev_stack=E6;return Q}function Az(z,J=0){var Q=x6(F5|J,z);if(g)Q.dev_stack=E6;return Q}function Q1(z){return x6(q1|p6,z)}function X4(z){var J=z.teardown;if(J!==null){let Q=H6,K=G0;Q4(!0),S1(null);try{J.call(null)}finally{Q4(Q),S1(K)}}}function M9(z,J=!1){var Q=z.first;z.first=z.last=null;while(Q!==null){let Z=Q.ac;if(Z!==null)W5(()=>{Z.abort(S5)});var K=Q.next;if((Q.f&Q6)!==0)Q.parent=null;else c0(Q,J);Q=K}}function IK(z){var J=z.first;while(J!==null){var Q=J.next;if((J.f&q1)===0)c0(J);J=Q}}function c0(z,J=!0){var Q=!1;if((J||(z.f&Zz)!==0)&&z.nodes!==null&&z.nodes.end!==null)w4(z.nodes.start,z.nodes.end),Q=!0;z.f|=P8,M9(z,J&&!Q),n5(z,0);var K=z.nodes&&z.nodes.t;if(K!==null)for(let X of K)X.stop();X4(z),z.f^=P8,z.f|=a0;var Z=z.parent;if(Z!==null&&Z.first!==null)t7(z);if(g)z.component_function=null;z.next=z.prev=z.teardown=z.ctx=z.deps=z.fn=z.nodes=z.ac=z.b=null}function w4(z,J){while(z!==null){var Q=z===J?null:X1(z);z.remove(),z=Q}}function t7(z){var{parent:J,prev:Q,next:K}=z;if(Q!==null)Q.next=K;if(K!==null)K.prev=Q;if(J!==null){if(J.first===z)J.first=K;if(J.last===z)J.last=Q}}function i6(z,J,Q=!0){var K=[];DK(z,K,!0);var Z=()=>{if(Q)c0(z);if(J)J()},X=K.length;if(X>0){var w=()=>--X||Z();for(var Y of K)Y.out(w)}else Z()}function DK(z,J,Q){if((z.f&B1)!==0)return;z.f^=B1;var K=z.nodes&&z.nodes.t;if(K!==null){for(let Y of K)if(Y.is_global||Q)J.push(Y)}var Z=z.first;while(Z!==null){var X=Z.next;if((Z.f&Q6)===0){var w=(Z.f&o1)!==0||(Z.f&q1)!==0&&(z.f&E1)!==0;DK(Z,J,w?Q:!1)}Z=X}}function E8(z){RK(z,!0)}function RK(z,J){if((z.f&B1)===0)return;if(z.f^=B1,(z.f&f0)===0)u0(z,h0),R1.ensure().schedule(z);var Q=z.first;while(Q!==null){var K=Q.next,Z=(Q.f&o1)!==0||(Q.f&q1)!==0;RK(Q,Z?J:!1),Q=K}var X=z.nodes&&z.nodes.t;if(X!==null){for(let w of X)if(w.is_global||J)w.in()}}function R8(z,J){if(!z.nodes)return;var Q=z.nodes.start,K=z.nodes.end;while(Q!==null){var Z=Q===K?null:X1(Q);J.append(Q),Q=Z}}var AK=null;var kz=!1,H6=!1;function Q4(z){H6=z}var G0=null,r1=!1;function S1(z){G0=z}var e=null;function C1(z){e=z}var v6=null;function Cz(z){if(G0!==null&&(!J1||(G0.f&p0)!==0))(v6??=new Set).add(z)}var A1=null,a1=0,V6=null;function OK(z){V6=z}var kK=1,J8=0,D5=J8;function z4(z){D5=z}function N8(){return++kK}function I5(z){var J=z.f;if((J&h0)!==0)return!0;if(J&p0)z.f&=~G6;if((J&G1)!==0){var Q=z.deps,K=Q.length;for(var Z=0;Zz.wv)return!0}if((J&y1)!==0&&k1===null)u0(z,f0)}return!1}function NK(z,J,Q=!0){var K=z.reactions;if(K===null)return;if(!J1&&v6!==null&&v6.has(z))return;for(var Z=0;Z{z.ac.abort(S5)}),z.ac=null;try{z.f|=l5;var V=z.fn,H=V();z.f|=s1;var U=z.deps,x=w0?.is_fork;if(A1!==null){var q;if(!x)n5(z,a1);if(U!==null&&a1>0){U.length=a1+A1.length;for(q=0;q{requestAnimationFrame(()=>z()),setTimeout(()=>z())});await Promise.resolve(),L5()}function W(z){var J=z.f,Q=(J&p0)!==0;if(AK?.add(z),G0!==null&&!r1){var K=e!==null&&(e.f&a0)!==0;if(!K&&(v6===null||!v6.has(z))){var Z=G0.deps;if((G0.f&l5)!==0){if(z.rv>>0).toString(36)}function yK(z){return z.endsWith("capture")&&z!=="gotpointercapture"&&z!=="lostpointercapture"}var iX=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function vK(z){return iX.includes(z)}var _X=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var cX={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function gK(z){return z=z.toLowerCase(),cX[z]??z}var gH=[..._X,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var sX=["touchstart","touchmove"];function hK(z){return sX.includes(z)}var oX=["$state","$state.raw","$derived","$derived.by"],hH=[...oX,"$state.eager","$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"];function Tz(z){return z?.replace(/\//g,"/​")}var y8=Symbol("events"),W4=new Set,Ez=new Set;function v8(z){if(!r)return;z.removeAttribute("onload"),z.removeAttribute("onerror");let J=z.__e;if(J!==void 0)z.__e=void 0,queueMicrotask(()=>{if(z.isConnected)z.dispatchEvent(J)})}function Y4(z,J,Q,K={}){function Z(X){if(!K.capture)yz.call(J,X);if(!X.cancelBubble)return W5(()=>{return Q?.call(this,X)})}if(z.startsWith("pointer")||z.startsWith("touch")||z==="wheel")s0(()=>{J.addEventListener(z,Z,K)});else J.addEventListener(z,Z,K);return Z}function $0(z,J,Q,K,Z){var X={capture:K,passive:Z},w=Y4(z,J,Q,X);if(J===document.body||J===window||J===document||J instanceof HTMLMediaElement)M1(()=>{J.removeEventListener(z,w,X)})}function H0(z,J,Q){(J[y8]??={})[z]=Q}function I0(z){for(var J=0;J{throw C});throw U}}finally{z[y8]=J,delete z.currentTarget,S1(V),C1(H)}}var rX=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:(z)=>{return z}});function uK(z){return rX?.createHTML(z)??z}function G4(z){var J=s6("template");return J.innerHTML=uK(z.replaceAll("","")),J.content}function i1(z,J){var Q=e;if(Q.nodes===null)Q.nodes={start:z,end:J,a:null,t:null}}function j(z,J){var Q=(J&mQ)!==0,K=(J&fQ)!==0,Z,X=!z.startsWith("");return()=>{if(r)return i1(B0,null),B0;if(Z===void 0){if(Z=G4(X?z:""+z),!Q)Z=Z1(Z)}var w=K||x9?document.importNode(Z,!0):Z.cloneNode(!0);if(Q){var Y=Z1(w),G=w.lastChild;i1(Y,G)}else i1(w,w);return w}}function n1(z=""){if(!r){var J=K1(z+"");return i1(J,J),J}var Q=B0;if(Q.nodeType!==d5)Q.before(Q=K1()),k0(Q);else P9(Q);return i1(Q,Q),Q}function J0(){if(r)return i1(B0,null),B0;var z=document.createDocumentFragment(),J=document.createComment(""),Q=K1();return z.append(J,Q),i1(J,Q),z}function F(z,J){if(r){var Q=e;if((Q.f&s1)===0||Q.nodes.end===null)Q.nodes.end=B0;H1();return}if(z===null)return;z.before(J)}var B4=!0;function u(z,J){var Q=J==null?"":typeof J==="object"?`${J}`:J;if(Q!==(z[B9]??=z.nodeValue))z[B9]=Q,z.nodeValue=`${Q}`}function g8(z,J){return $K(z,J)}function H4(z,J){Iz(),J.intro=J.intro??!1;let Q=J.target,K=r,Z=B0;try{var X=Z1(Q);while(X&&(X.nodeType!==K6||X.data!==L8))X=X1(X);if(!X)throw d6;_0(!0),k0(X);let w=$K(z,{...J,anchor:X});return _0(!1),w}catch(w){if(w instanceof Error&&w.message.split(` +`).some((Y)=>Y.startsWith("https://svelte.dev/e/")))throw w;if(w!==d6)console.warn("Failed to hydrate: ",w);if(J.recover===!1)OQ();return Iz(),C9(Q),_0(!1),g8(z,J)}finally{_0(K),k0(Z)}}var vz=new Map;function $K(z,{target:J,anchor:Q,props:K={},events:Z,context:X,intro:w=!0,transformError:Y}){Iz();var G=void 0,B=LK(()=>{var V=Q??J.appendChild(K1());u7(V,{pending:()=>{}},(x)=>{_({});var q=x0;if(X)q.c=X;if(Z)K.$$events=Z;if(r)i1(x,null);if(B4=w,G=z(x,K)||{},B4=!0,r){if(e.nodes.end=B0,B0===null||B0.nodeType!==K6||B0.data!==i5)throw C5(),d6}c()},Y);var H=new Set,U=(x)=>{for(var q=0;q{for(var x of H)for(let P of[J,document]){var q=vz.get(P),C=q.get(x);if(--C==0){if(P.removeEventListener(x,yz),q.delete(x),q.size===0)vz.delete(P)}else q.set(x,C)}if(Ez.delete(U),V!==Q)V.parentNode?.removeChild(V)}});return U4.set(G,B),G}var U4=new WeakMap;function V4(z,J){let Q=U4.get(z);if(Q)return U4.delete(z),Q(J);if(g)if(U1 in z)sQ();else _Q();return Promise.resolve()}class g6{anchor;#z=new Map;#J=new Map;#Q=new Map;#W=new Set;#X=!0;constructor(z,J=!0){this.anchor=z,this.#X=J}#w=(z)=>{if(!this.#z.has(z))return;var J=this.#z.get(z),Q=this.#J.get(J);if(Q)E8(Q),this.#W.delete(J);else{var K=this.#Q.get(J);if(K){if(E8(K.effect),this.#J.set(J,K.effect),this.#Q.delete(J),g)K.fragment.lastChild[R7]=this.anchor;K.fragment.lastChild.remove(),this.anchor.before(K.fragment),Q=K.effect}}for(let[Z,X]of this.#z){if(this.#z.delete(Z),Z===z)break;let w=this.#Q.get(X);if(w)c0(w.effect),this.#Q.delete(X)}for(let[Z,X]of this.#J){if(Z===J||this.#W.has(Z))continue;let w=()=>{if(Array.from(this.#z.values()).includes(Z)){var G=document.createDocumentFragment();R8(X,G),G.append(K1()),this.#Q.set(Z,{effect:X,fragment:G})}else c0(X);this.#W.delete(Z),this.#J.delete(Z)};if(this.#X||!Q)this.#W.add(Z),i6(X,w,!1);else w()}};#K=(z)=>{this.#z.delete(z);let J=Array.from(this.#z.values());for(let[Q,K]of this.#Q)if(!J.includes(Q))c0(K.effect),this.#Q.delete(Q)};ensure(z,J){var Q=w0,K=Dz();if(J&&!this.#J.has(z)&&!this.#Q.has(z))if(K){var Z=document.createDocumentFragment(),X=K1();Z.append(X),this.#Q.set(z,{effect:Q1(()=>J(X)),fragment:Z})}else this.#J.set(z,Q1(()=>J(this.anchor)));if(this.#z.set(Q,z),K){for(let[w,Y]of this.#J)if(w===z)Q.unskip_effect(Y);else Q.skip_effect(Y);for(let[w,Y]of this.#Q)if(w===z)Q.unskip_effect(Y.effect);else Q.skip_effect(Y.effect);Q.oncommit(this.#w),Q.ondiscard(this.#K)}else{if(r)this.anchor=B0;this.#w(Q)}}}var lK=0,pK=1,eX=2;function Q8(z,J,Q,K,Z){if(r)H1();var X=M6(),w=m0,Y=X?D1(w):Z5(w,!1,!1),G=X?D1(w):Z5(w,!1,!1);if(g)Y.label="{#await ...} value",G.label="{#await ...} error";var B=new g6(z);h1(()=>{var V=w0,H=J(),U=!1;let x=r&&L7(H)===(z.data===J5);if(x)k0(N6()),_0(!1);if(L7(H)){var q=l7(),C=!1;let P=(I)=>{if(U)return;if(C=!0,q(!1),w0===V)V.deactivate();R1.ensure();try{I()}finally{if(o5(!1),!j5)L5()}};if(H.then((I)=>{P(()=>{X6(Y,I),B.ensure(pK,K&&((R)=>K(R,Y)))})},(I)=>{P(()=>{if(X6(G,I),B.ensure(eX,Z&&((R)=>Z(R,G))),!Z)throw G.v})}),r)B.ensure(lK,Q);else s0(()=>{if(!C)P(()=>{B.ensure(lK,Q)})})}else X6(Y,H),B.ensure(pK,K&&((P)=>K(P,Y)));if(x)_0(!0);return()=>{U=!0}})}function A(z,J,Q=!1){var K;if(r)K=B0,H1();var Z=new g6(z),X=Q?o1:0;function w(Y,G){if(r){var B=H9(K);if(Y!==parseInt(B.substring(1))){var V=N6();k0(V),Z.anchor=V,_0(!1),Z.ensure(Y,G),_0(!0);return}}Z.ensure(Y,G)}h1(()=>{var Y=!1;if(J((G,B=0)=>{Y=!0,w(B,G)}),!Y)w(-1,null)},X)}var z3=Symbol("NaN");function x4(z,J,Q){if(r)H1();var K=new g6(z),Z=!M6();h1(()=>{var X=J();if(X!==X)X=z3;if(Z&&X!==null&&typeof X==="object")X={};K.ensure(X,Q)})}function w1(z,J){return J}function J3(z,J,Q){var K=[],Z=J.length,X,w=J.length;for(var Y=0;Y{if(X){if(X.pending.delete(H),X.done.add(H),X.pending.size===0){var U=z.outrogroups;if(q4(z,O8(X.done)),U.delete(X),U.size===0)z.outrogroups=null}}else w-=1},!1)}if(w===0){var G=K.length===0&&Q!==null;if(G){var B=Q,V=B.parentNode;C9(V),V.append(B),z.items.clear()}q4(z,J,!G)}else X={pending:new Set(J),done:new Set},(z.outrogroups??=new Set).add(X)}function q4(z,J,Q=!0){var K;if(z.pending.size>0){K=new Set;for(let w of z.pending.values())for(let Y of w)K.add(z.items.get(Y).e)}for(var Z=0;Z{var v=Q();return l6(v)?v:v==null?[]:O8(v)});if(g)d1(H,"{#each ...}");var U,x=new Map,q=!0;function C(v){if((R.effect.f&a0)!==0)return;if(R.pending.delete(v),R.fallback=V,Q3(R,U,w,J,K),V!==null)if(U.length===0)if((V.f&R6)===0)E8(V);else V.f^=R6,R9(V,null,w);else i6(V,()=>{V=null})}function P(v){R.pending.delete(v)}var I=h1(()=>{U=W(H);var v=U.length;let f=!1;if(r){var b=H9(w)===J5;if(b!==(v===0))w=N6(),k0(w),_0(!1),f=!0}var E=new Set,N=w0,h=Dz();for(var l=0;lX(w));else V=Q1(()=>X(dK??=K1())),V.f|=R6;if(v>E.size)if(g)Z3(U,K);else k7("","","");if(r&&v>0)k0(N6());if(!q)if(x.set(N,E),h){for(let[n,K0]of Y)if(!E.has(n))N.skip_effect(K0.e);N.oncommit(C),N.ondiscard(P)}else C(N);if(f)_0(!0);W(H)}),R={effect:I,flags:J,items:Y,pending:x,outrogroups:null,fallback:V};if(q=!1,r)w=B0}function D9(z){while(z!==null&&(z.f&q1)===0)z=z.next;return z}function Q3(z,J,Q,K,Z){var X=(K&bQ)!==0,w=J.length,Y=z.items,G=D9(z.effect.first),B,V=null,H,U=[],x=[],q,C,P,I;if(X){for(I=0;I0){var l=(K&N7)!==0&&w===0?Q:null;if(X){for(I=0;I{if(H===void 0)return;for(P of H)P.nodes?.a?.apply()})}function K3(z,J,Q,K,Z,X,w,Y){var G=(w&kQ)!==0?(w&TQ)===0?Z5(Q,!1,!1):D1(Q):null,B=(w&NQ)!==0?D1(Z):null;if(g&&G)G.trace=()=>{Y()[B?.v??Z]};return{v:G,i:B,e:Q1(()=>{return X(J,G??Q,B??Z,Y),()=>{z.delete(K)}})}}function R9(z,J,Q){if(!z.nodes)return;var K=z.nodes.start,Z=z.nodes.end,X=J&&(J.f&R6)===0?J.nodes.start:Q;while(K!==null){var w=X1(K);if(X.before(K),K===Z)return;K=w}}function A5(z,J,Q){if(J===null)z.effect.first=Q;else J.next=Q;if(Q===null)z.effect.last=J;else Q.prev=J}function Z3(z,J){let Q=new Map,K=z.length;for(let Z=0;Z{var B=e;if(Y===(Y=J()??"")){if(r)H1();return}if(Q&&!r){if(B.nodes=null,G.innerHTML=Y,Y!=="")i1(Z1(G),G.lastChild);return}if(B.nodes!==null)w4(B.nodes.start,B.nodes.end),B.nodes=null;if(Y==="")return;if(r){var V=B0.data,H=H1(),U=H;while(H!==null&&(H.nodeType!==K6||H.data!==""))U=H,H=X1(H);if(H===null)throw C5(),d6;if(g&&!X)X3(H.parentNode,V,Y);i1(B0,U),w=k0(H);return}var x=K?U9:Z?T7:void 0,q=s6(K?"svg":Z?"math":"template",x);q.innerHTML=Y;var C=K||Z?q:q.content;if(i1(Z1(C),C.lastChild),K||Z)while(Z1(C))w.before(Z1(C));else w.before(C)})}function k5(z,J,...Q){var K=new g6(z);h1(()=>{let Z=J()??null;if(g&&Z==null)SQ();K.ensure(Z,Z&&((X)=>Z(X,...Q)))},o1)}function K8(z,J){let Q=null,K=r;var Z;if(r){Q=B0;var X=Z1(document.head);while(X!==null&&(X.nodeType!==K6||X.data!==z))X=X1(X);if(X===null)_0(!1);else{var w=X1(X);X.remove(),k0(w)}}if(!r)Z=document.head.appendChild(K1());try{h1(()=>{var Y=Q1(()=>J(Z));Y.f|=Zz})}finally{if(K)_0(!0),k0(Q)}}function gz(z,J){var Q=void 0,K;Az(()=>{if(Q!==(Q=J())){if(K)c0(K),K=null;if(Q)K=Q1(()=>{P1(()=>Q(z))})}})}function iK(z){var J,Q,K="";if(typeof z=="string"||typeof z=="number")K+=z;else if(typeof z=="object")if(Array.isArray(z)){var Z=z.length;for(J=0;J=0){var Y=w+X;if((w===0||cK.includes(K[w-1]))&&(Y===K.length||cK.includes(K[Y])))K=(w===0?"":K.substring(0,w))+K.substring(Y+1);else w=Y}}}return K===""?null:K}function sK(z,J=!1){var Q=J?" !important;":";",K="";for(var Z of Object.keys(z)){var X=z[Z];if(X!=null&&X!=="")K+=" "+Z+": "+X+Q}return K}function F4(z){if(z[0]!=="-"||z[1]!=="-")return z.toLowerCase();return z}function aK(z,J){if(J){var Q="",K,Z;if(Array.isArray(J))K=J[0],Z=J[1];else K=J;if(z){z=String(z).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var X=!1,w=0,Y=!1,G=[];if(K)G.push(...Object.keys(K).map(F4));if(Z)G.push(...Object.keys(Z).map(F4));var B=0,V=-1;let C=z.length;for(var H=0;H{h8(z,z.__value)});J.observe(z,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),M1(()=>{J.disconnect()})}function O4(z,J,Q=J){var K=new WeakSet,Z=!0;j9(z,"change",(X)=>{var w=X?"[selected]":":checked",Y;if(z.multiple)Y=[].map.call(z.querySelectorAll(w),k9);else{var G=z.querySelector(w)??z.querySelector("option:not([disabled])");Y=G&&k9(G)}if(Q(Y),z.__value=Y,w0!==null)K.add(w0)}),P1(()=>{var X=J();if(z===document.activeElement){var w=J1?_6:w0;if(K.has(w))return}if(h8(z,X,Z),Z&&X===void 0){var Y=z.querySelector(":checked");if(Y!==null)X=k9(Y),Q(X)}z.__value=X,Z=!1}),hz(z)}function k9(z){if("__value"in z)return z.__value;else return z.value}var m8=Symbol("class"),f8=Symbol("style"),eK=Symbol("is custom element"),zZ=Symbol("is html"),G3=p5?"link":"LINK",rK=p5?"input":"INPUT",B3=p5?"option":"OPTION",U3=p5?"select":"SELECT",H3=p5?"progress":"PROGRESS";function n0(z){if(!r)return;var J=!1,Q=()=>{if(J)return;if(J=!0,z.hasAttribute("value")){var K=z.value;d(z,"value",null),z.value=K}if(z.hasAttribute("checked")){var Z=z.checked;d(z,"checked",null),z.checked=Z}};z[O5]=Q,s0(Q),Rz()}function S6(z,J){var Q=C4(z);if(Q.value===(Q.value=J??void 0)||z.value===J&&(J!==0||z.nodeName!==H3))return;z.value=J??""}function JZ(z,J){if(J){if(!z.hasAttribute("selected"))z.setAttribute("selected","")}else z.removeAttribute("selected")}function d(z,J,Q,K){var Z=C4(z);if(r){if(Z[J]=z.getAttribute(J),J==="src"||J==="srcset"||J==="href"&&z.nodeName===G3){if(!K)x3(z,J,Q??"");return}}if(Z[J]===(Z[J]=Q))return;if(J==="loading")z[WQ]=Q;if(Q==null)z.removeAttribute(J);else if(typeof Q!=="string"&&QZ(z).includes(J))z[J]=Q;else z.setAttribute(J,Q)}function V3(z,J,Q,K,Z=!1,X=!1){if(r&&Z&&z.nodeName===rK){var w=z,Y=w.type==="checkbox"?"defaultChecked":"defaultValue";if(!(Y in Q))n0(w)}var G=C4(z),B=G[eK],V=!G[zZ];let H=r&&B;if(H)_0(!1);var U=J||{},x=z.nodeName===B3;for(var q in J)if(!(q in Q))Q[q]=null;if(Q.class)Q.class=Y5(Q.class);else if(K||Q[m8])Q.class=null;if(Q[f8])Q.style??=null;var C=QZ(z);if(z.nodeName===rK&&"type"in Q&&(("value"in Q)||("__value"in Q))){var P=Q.type;if(P!==U.type||P===void 0&&z.hasAttribute("type"))U.type=P,d(z,"type",P,X)}for(let N in Q){let h=Q[N];if(x&&N==="value"&&h==null){z.value=z.__value="",U[N]=h;continue}if(N==="class"){var I=z.namespaceURI==="http://www.w3.org/1999/xhtml";r0(z,I,h,K,J?.[m8],Q[m8]),U[N]=h,U[m8]=Q[m8];continue}if(N==="style"){h6(z,h,J?.[f8],Q[f8]),U[N]=h,U[f8]=Q[f8];continue}var R=U[N];if(h===R&&!(h===void 0&&z.hasAttribute(N)))continue;U[N]=h;var v=N[0]+N[1];if(v==="$$")continue;if(v==="on"){let l={},k="$$"+N,i=N.slice(2);var f=vK(i);if(yK(i))i=i.slice(0,-7),l.capture=!0;if(!f&&R){if(h!=null)continue;z.removeEventListener(i,U[k],l),U[k]=null}if(f)H0(i,z,h),I0([i]);else if(h!=null){let t=function($){U[N].call(this,$)};U[k]=Y4(i,z,t,l)}}else if(N==="style")d(z,N,h);else if(N==="autofocus")z8(z,Boolean(h));else if(!B&&(N==="__value"||N==="value"&&h!=null))z.value=z.__value=h;else if(N==="selected"&&x)JZ(z,h);else{var b=N;if(!V)b=gK(b);var E=b==="defaultValue"||b==="defaultChecked";if(h==null&&!B&&!E)if(G[N]=null,b==="value"||b==="checked"){let l=z,k=J===void 0;if(b==="value"){let i=l.defaultValue;l.removeAttribute(b),l.defaultValue=i,l.value=l.__value=k?i:null}else{let i=l.defaultChecked;l.removeAttribute(b),l.defaultChecked=i,l.checked=k?i:!1}}else z.removeAttribute(N);else if(E||C.includes(b)&&(B||typeof h!=="string")){if(z[b]=h,b in G)G[b]=m0}else if(typeof h!=="function")d(z,b,h,X)}}if(H)_0(!0);return U}function mz(z,J,Q=[],K=[],Z=[],X,w=!1,Y=!1){A8(Z,Q,K,(G)=>{var B=void 0,V={},H=z.nodeName===U3,U=!1;if(Az(()=>{var q=J(...G.map(W)),C=V3(z,B,q,X,w,Y);if(U&&H&&"value"in q)h8(z,q.value);for(let I of Object.getOwnPropertySymbols(V))if(!q[I])c0(V[I]);for(let I of Object.getOwnPropertySymbols(q)){var P=q[I];if(I.description===E7&&(!B||P!==B[I])){if(V[I])c0(V[I]);V[I]=Q1(()=>gz(z,()=>P))}C[I]=P}B=C}),H){var x=z;P1(()=>{h8(x,B.value,!0),hz(x)})}U=!0})}function C4(z){return z[wz]??={[eK]:z.nodeName.includes("-"),[zZ]:z.namespaceURI===Yz}}var nK=new Map;function QZ(z){var J=z.getAttribute("is")||z.nodeName,Q=nK.get(J);if(Q)return Q;nK.set(J,Q=[]);var K,Z=z,X=Element.prototype;while(X!==Z){K=Qz(Z);for(var w in K)if(K[w].set&&w!=="innerHTML"&&w!=="textContent"&&w!=="innerText")Q.push(w);Z=u5(Z)}return Q}function x3(z,J,Q){if(!g)return;if(J==="srcset"&&q3(z,Q))return;if(S4(z.getAttribute(J)??"",Q))return;dQ(J,z.outerHTML.replace(z.innerHTML,z.innerHTML&&"..."),String(Q))}function S4(z,J){if(z===J)return!0;return new URL(z,document.baseURI).href===new URL(J,document.baseURI).href}function tK(z){return z.split(",").map((J)=>J.trim().split(" ").filter(Boolean))}function q3(z,J){var Q=tK(z.srcset),K=tK(J);return K.length===Q.length&&K.every(([Z,X],w)=>X===Q[w][1]&&(S4(Q[w][0],Z)||S4(Z,Q[w][0])))}function m1(z,J,Q=J){var K=new WeakSet;if(j9(z,"input",async(Z)=>{if(g&&z.type==="checkbox")A7();var X=Z?z.defaultValue:z.value;if(X=j4(z)?L4(X):X,Q(X),w0!==null)K.add(w0);if(await s5(),X!==(X=J())){var{selectionStart:w,selectionEnd:Y}=z,G=z.value.length;if(z.value=X??"",Y!==null){var B=z.value.length;if(w===Y&&Y===G&&B>G)z.selectionStart=B,z.selectionEnd=B;else z.selectionStart=w,z.selectionEnd=Math.min(Y,B)}}}),r&&z.defaultValue!==z.value||l0(J)==null&&z.value){if(Q(j4(z)?L4(z.value):z.value),w0!==null)K.add(w0)}O1(()=>{if(g&&z.type==="checkbox")A7();var Z=J();if(z===document.activeElement){var X=J1?_6:w0;if(K.has(X))return}if(j4(z)&&Z===L4(z.value))return;if(z.type==="date"&&!Z&&!z.value)return;if(Z!==z.value)z.value=Z??""})}var P4=new Set;function N9(z,J,Q,K,Z=K){var X=Q.getAttribute("type")==="checkbox",w=z;let Y=!1;if(J!==null)for(var G of J)w=w[G]??=[];if(w.push(Q),j9(Q,"change",()=>{var B=Q.__value;if(X)B=KZ(w,B,Q.checked);Z(B)},()=>Z(X?[]:null)),O1(()=>{var B=K();if(r&&Q.defaultChecked!==Q.checked){Y=!0;return}if(X)B=B||[],Q.checked=B.includes(Q.__value);else Q.checked=Lz(Q.__value,B)}),M1(()=>{var B=w.indexOf(Q);if(B!==-1)w.splice(B,1)}),!P4.has(w))P4.add(w),s0(()=>{w.sort((B,V)=>B.compareDocumentPosition(V)===4?-1:1),P4.delete(w)});s0(()=>{if(Y){var B;if(X)B=KZ(w,B,Q.checked);else{var V=w.find((H)=>H.checked);B=V?.__value}Z(B)}})}function KZ(z,J,Q){var K=new Set;for(var Z=0;Z{var K=this.#z.get(z);if(K.delete(J),K.size===0)this.#z.delete(z),this.#J.unobserve(z)}}#W(){return this.#J??(this.#J=new ResizeObserver((z)=>{for(var J of z){I4.entries.set(J.target,J);for(var Q of this.#z.get(J.target)||[])Q(J)}}))}}var F3=new I4({box:"border-box"});function D4(z,J,Q){var K=F3.observe(z,()=>Q(z[J]));P1(()=>{return l0(()=>Q(z[J])),K})}function R4(z,J){return z===J||z?.[U1]===J}function t1(z={},J,Q,K){var Z=x0.r,X=e;return P1(()=>{var w,Y;return O1(()=>{w=Y,Y=K?.()||[],l0(()=>{if(!R4(Q(...Y),z)){if(J(z,...Y),w&&R4(Q(...w),z))J(null,...w)}})}),()=>{let G=X;while(G!==Z&&G.parent!==null&&G.parent.f&P8)G=G.parent;let B=()=>{if(Y&&R4(Q(...Y),z))J(null,...Y)},V=G.teardown;G.teardown=()=>{B(),V?.()}}}),z}function A4(z=!1){let J=x0,Q=J.l.u;if(!Q)return;let K=()=>bz(J.s);if(z){let Z=0,X={},w=X5(()=>{let Y=!1,G=J.s;for(let B in G)if(G[B]!==X[B])X[B]=G[B],Y=!0;if(Y)Z++;return Z});K=()=>W(w)}if(Q.b.length)L9(()=>{ZZ(J,K),S8(Q.b)});if(o0(()=>{let Z=l0(()=>Q.m.map(wQ));return()=>{for(let X of Z)if(typeof X==="function")X()}}),Q.a.length)o0(()=>{ZZ(J,K),S8(Q.a)})}function ZZ(z,J){if(z.l.s)for(let Q of z.l.s)W(Q);J()}var M3={get(z,J){if(z.exclude.has(J))return;return z.props[J]},set(z,J){if(g)PQ(`${z.name}.${String(J)}`);return!1},getOwnPropertyDescriptor(z,J){if(z.exclude.has(J))return;if(J in z.props)return{enumerable:!0,configurable:!0,value:z.props[J]}},has(z,J){if(z.exclude.has(J))return!1;return J in z.props},ownKeys(z){return Reflect.ownKeys(z.props).filter((J)=>!z.exclude.has(J))}};function G5(z,J,Q){return new Proxy(g?{props:z,exclude:J,name:Q,other:{},to_proxy:[]}:{props:z,exclude:J},M3)}var O3={get(z,J){let Q=z.props.length;while(Q--){let K=z.props[Q];if($5(K))K=K();if(typeof K==="object"&&K!==null&&J in K)return K[J]}},set(z,J,Q){let K=z.props.length;while(K--){let Z=z.props[K];if($5(Z))Z=Z();let X=p1(Z,J);if(X&&X.set)return X.set(Q),!0}return!1},getOwnPropertyDescriptor(z,J){let Q=z.props.length;while(Q--){let K=z.props[Q];if($5(K))K=K();if(typeof K==="object"&&K!==null&&J in K){let Z=p1(K,J);if(Z&&!Z.configurable)Z.configurable=!0;return Z}}},has(z,J){if(J===U1||J===j8)return!1;for(let Q of z.props){if($5(Q))Q=Q();if(Q!=null&&J in Q)return!0}return!1},ownKeys(z){let J=[];for(let Q of z.props){if($5(Q))Q=Q();if(!Q)continue;for(let K in Q)if(!J.includes(K))J.push(K);for(let K of Object.getOwnPropertySymbols(Q))if(!J.includes(K))J.push(K)}return J}};function k4(...z){return new Proxy({props:z},O3)}function S0(z,J,Q,K){var Z=!Q5||(Q&yQ)!==0,X=(Q&gQ)!==0,w=(Q&hQ)!==0,Y=K,G=!0,B=void 0,V=()=>{if(w&&Z)return B??=X5(K),W(B);if(G)G=!1,Y=w?l0(K):K;return Y};let H;if(X){var U=U1 in z||j8 in z;H=p1(z,J)?.set??(U&&J in z?(f)=>z[J]=f:void 0)}var x,q=!1;if(X)[x,q]=f7(()=>z[J]);else x=z[J];if(x===void 0&&K!==void 0){if(x=V(),H){if(Z)CQ(J);H(x)}}var C;if(Z)C=()=>{var f=z[J];if(f===void 0)return V();return G=!0,f};else C=()=>{var f=z[J];if(f!==void 0)Y=void 0;return f===void 0?Y:f};if(Z&&(Q&vQ)===0)return C;if(H){var P=z.$$legacy;return function(f,b){if(arguments.length>0){if(!Z||!b||P||q)H(b?C():f);return f}return C()}}var I=!1,R=((Q&EQ)!==0?X5:a5)(()=>{return I=!1,C()});if(g)R.label=J;if(X)W(R);var v=e;return function(f,b){if(arguments.length>0){let E=b?W(R):Z&&X?q0(f):f;if(D(R,E),I=!0,Y!==void 0)Y=E;return f}if(H6&&I||(v.f&a0)!==0)return R.v;return W(R)}}function XZ(z){return new wZ(z)}class wZ{#z;#J;constructor(z){var J=new Map,Q=(Z,X)=>{var w=Z5(X,!1,!1);return J.set(Z,w),w};let K=new Proxy({...z.props||{},$$events:{}},{get(Z,X){return W(J.get(X)??Q(X,Reflect.get(Z,X)))},has(Z,X){if(X===j8)return!0;return W(J.get(X)??Q(X,Reflect.get(Z,X))),Reflect.has(Z,X)},set(Z,X,w){return D(J.get(X)??Q(X,w),w),Reflect.set(Z,X,w)}});if(this.#J=(z.hydrate?H4:g8)(z.component,{target:z.target,anchor:z.anchor,props:K,context:z.context,intro:z.intro??!1,recover:z.recover,transformError:z.transformError}),!J1&&(!z?.props?.$$host||z.sync===!1))L5();this.#z=K.$$events;for(let Z of Object.keys(this.#J)){if(Z==="$set"||Z==="$destroy"||Z==="$on")continue;T1(this,Z,{get(){return this.#J[Z]},set(X){this.#J[Z]=X},enumerable:!0})}this.#J.$set=(Z)=>{Object.assign(K,Z)},this.#J.$destroy=()=>{V4(this.#J)}}$set(z){this.#J.$set(z)}$on(z,J){this.#z[z]=this.#z[z]||[];let Q=(...K)=>J.call(this,...K);return this.#z[z].push(Q),()=>{this.#z[z]=this.#z[z].filter((K)=>K!==Q)}}$destroy(){this.#J.$destroy()}}var R3;if(typeof HTMLElement==="function")R3=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(z,J,Q){super();if(this.$$ctor=z,this.$$s=J,Q)this.$$shadowRoot=this.attachShadow(Q)}addEventListener(z,J,Q){if(this.$$l[z]=this.$$l[z]||[],this.$$l[z].push(J),this.$$c){let K=this.$$c.$on(z,J);this.$$l_u.set(J,K)}super.addEventListener(z,J,Q)}removeEventListener(z,J,Q){if(super.removeEventListener(z,J,Q),this.$$c){let K=this.$$l_u.get(J);if(K)K(),this.$$l_u.delete(J)}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let z=function(K){return(Z)=>{let X=s6("slot");if(K!=="default")X.name=K;F(Z,X)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let J={},Q=A3(this);for(let K of this.$$s)if(K in Q)if(K==="default"&&!this.$$d.children)this.$$d.children=z(K),J.default=!0;else J[K]=z(K);for(let K of this.attributes){let Z=this.$$g_p(K.name);if(!(Z in this.$$d))this.$$d[Z]=N4(Z,K.value,this.$$p_d,"toProp")}for(let K in this.$$p_d)if(!(K in this.$$d)&&this[K]!==void 0)this.$$d[K]=this[K],delete this[K];this.$$c=XZ({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:J,$$host:this}}),this.$$me=Z4(()=>{O1(()=>{this.$$r=!0;for(let K of C7(this.$$c)){if(!this.$$p_d[K]?.reflect)continue;this.$$d[K]=this.$$c[K];let Z=N4(K,this.$$d[K],this.$$p_d,"toAttribute");if(Z==null)this.removeAttribute(this.$$p_d[K].attribute||K);else this.setAttribute(this.$$p_d[K].attribute||K,Z)}this.$$r=!1})});for(let K in this.$$l)for(let Z of this.$$l[K]){let X=this.$$c.$on(K,Z);this.$$l_u.set(Z,X)}this.$$l={}}}attributeChangedCallback(z,J,Q){if(this.$$r)return;z=this.$$g_p(z),this.$$d[z]=N4(z,Q,this.$$p_d,"toProp"),this.$$c?.$set({[z]:this.$$d[z]})}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{if(!this.$$cn&&this.$$c)this.$$c.$destroy(),this.$$me(),this.$$c=void 0})}$$g_p(z){return C7(this.$$p_d).find((J)=>this.$$p_d[J].attribute===z||!this.$$p_d[J].attribute&&J.toLowerCase()===z)||z}};function N4(z,J,Q,K){let Z=Q[z]?.type;if(J=Z==="Boolean"&&typeof J!=="boolean"?J!=null:J,!K||!Q[z])return J;else if(K==="toAttribute")switch(Z){case"Object":case"Array":return J==null?null:JSON.stringify(J);case"Boolean":return J?"":null;case"Number":return J==null?null:J;default:return J}else switch(Z){case"Object":case"Array":return J&&JSON.parse(J);case"Boolean":return J;case"Number":return J!=null?+J:J;default:return J}}function A3(z){let J={};return z.childNodes.forEach((Q)=>{J[Q.slot||"default"]=!0}),J}if(g){let z=function(J){if(!(J in globalThis)){let Q;Object.defineProperty(globalThis,J,{configurable:!0,get:()=>{if(Q!==void 0)return Q;jQ(J)},set:(K)=>{Q=K}})}};z("$state"),z("$effect"),z("$derived"),z("$inspect"),z("$props"),z("$bindable")}class b4{cache;prepareCache(){if(!this.cache){let z=localStorage.getItem("handleCache");this.cache=z?JSON.parse(z):{}}}saveCache(){localStorage.setItem("handleCache",JSON.stringify(this.cache))}getHandleDid(z){return this.prepareCache(),this.cache[z]}setHandleDid(z,J){this.prepareCache(),this.cache[z]=J,this.saveCache()}findHandleByDid(z){this.prepareCache();let J=Object.entries(this.cache).find((Q)=>Q[1]==z);return J?J[0]:void 0}}class B5 extends Error{code;json;constructor(z,J){super("APIError status "+z+` -`+JSON.stringify(J));this.code=z,this.json=J}}class k9 extends Error{}class B6 extends Error{}class s8{host;config;user;sendAuthHeaders;autoManageTokens;constructor(z,J,Q){if(this.host=z,this.config=J||null,this.user=J?.user||null,this.sendAuthHeaders=!!this.user,this.autoManageTokens=!!this.user,Q)Object.assign(this,Q)}get baseURL(){if(this.host)return(this.host.includes("://")?this.host:`https://${this.host}`)+"/xrpc";else throw new k9("Hostname not set")}get isLoggedIn(){return!!(this.user&&this.user.accessToken&&this.user.refreshToken&&this.user.did&&this.user.pdsEndpoint)}async getRequest(z,J,Q={}){let K=new URL(`${this.baseURL}/${z}`),X=Q&&"auth"in Q?Q.auth:this.sendAuthHeaders;if(this.autoManageTokens&&X===!0)await this.checkAccess();if(J)for(let G in J)if(J[G]instanceof Array)J[G].forEach((H)=>K.searchParams.append(G,H));else K.searchParams.append(G,J[G]);let Z=this.authHeaders(X);if(Q.headers)Object.assign(Z,Q.headers);let w=await fetch(K,{headers:Z,signal:Q.abortSignal??null});return await this.parseResponse(w)}async postRequest(z,J,Q={}){let K=`${this.baseURL}/${z}`,X=Q&&"auth"in Q?Q.auth:this.sendAuthHeaders;if(this.autoManageTokens&&X===!0)await this.checkAccess();let Z=this.authHeaders(X),w={method:"POST"};if(J)w.body=JSON.stringify(J),Z["Content-Type"]="application/json";if(Q.headers)Object.assign(Z,Q.headers);if(Q.abortSignal)w.signal=Q.abortSignal;w.headers=Z;let G=await fetch(K,w);return await this.parseResponse(G)}async fetchAll(z,J){if(!J||!J.field)throw new k9("'field' option is required");let Q=[],K=J.params??{},X=this.sliceOptions(J,["auth","headers","abortSignal"]);for(;;){let Z=await this.getRequest(z,K,X),w=Z[J.field],G=Z.cursor;if(J.breakWhen){let H=J.breakWhen;if(w.some((B)=>H(B))){if(!J.keepLastPage)w=w.filter((B)=>!H(B));G=null}}if(Q=Q.concat(w),K.cursor=G,J.onPageLoad?.(w),!G)break}return Q}authHeaders(z){if(typeof z=="string")return{Authorization:`Bearer ${z}`};else if(z)if(this.user?.accessToken)return{Authorization:`Bearer ${this.user.accessToken}`};else throw new B6("Can't send auth headers, access token is missing");else return{}}sliceOptions(z,J){let Q={};for(let K of J)if(K in z)Q[K]=z[K];return Q}tokenExpirationTimestamp(z){let J=z.split(".");if(J.length!=3)throw new B6("Invalid access token format");let K=JSON.parse(atob(J[1])).exp;if(!(K&&typeof K=="number"&&K>0))throw new B6("Invalid token expiry data");return K*1000}isInvalidToken(z,J){return z.status==400&&!!J&&["InvalidToken","ExpiredToken"].includes(J.error)}async parseResponse(z){let J=await z.text(),Q=J.trim().length>0?JSON.parse(J):void 0;if(z.status>=200&&z.status<300)return Q;else throw new H6(z.status,Q)}requireUserConfig(){if(!this.config||!this.config.user)throw new B6("Missing user configuration object")}requireLoggedInUser(){if(this.requireUserConfig(),!this.isLoggedIn)throw new B6("Not logged in")}async checkAccess(){if(this.requireLoggedInUser(),this.tokenExpirationTimestamp(this.user.accessToken)Q.id=="#atproto_pds");this.host=J.serviceEndpoint.replace("https://","")}this.user.pdsEndpoint=this.host,this.config.save()}resetTokens(){this.requireUserConfig(),delete this.user.accessToken,delete this.user.refreshToken,delete this.user.did,delete this.user.pdsEndpoint,this.config.save()}}class l4{repo;collection;rkey;constructor(z){if(!z.startsWith("at://"))throw new s5(`Not an at:// URI: ${z}`);let J=z.split("/");if(J.length!=5)throw new s5(`Invalid at:// URI: ${z}`);this.repo=J[2],this.collection=J[3],this.rkey=J[4]}}function l0(z){return new l4(z)}function DZ(){return new IntersectionObserver((z,J)=>{for(let Q of z)if(Q.isIntersecting){let K=Q.target;K.removeAttribute("lazy"),J.unobserve(K)}},{rootMargin:"1000px 0px"})}var b9=DZ();/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */var{entries:r4,setPrototypeOf:p4,isFrozen:RZ,getPrototypeOf:AZ,getOwnPropertyDescriptor:NZ}=Object,{freeze:y1,seal:Y5,create:m9}=Object,{apply:f9,construct:$9}=typeof Reflect<"u"&&Reflect;if(!y1)y1=function(J){return J};if(!Y5)Y5=function(J){return J};if(!f9)f9=function(J,Q){for(var K=arguments.length,X=Array(K>2?K-2:0),Z=2;Z1?Q-1:0),X=1;X1?Q-1:0),X=1;X2&&arguments[2]!==void 0?arguments[2]:z7;if(p4)p4(z,null);let K=J.length;while(K--){let X=J[K];if(typeof X==="string"){let Z=Q(X);if(Z!==X){if(!RZ(J))J[K]=Z;X=Z}}z[X]=!0}return z}function vZ(z){for(let J=0;J/gm),$Z=Y5(/\$\{[\w\W]*/gm),uZ=Y5(/^data-[\-\w.\u00B7-\uFFFF]+$/),lZ=Y5(/^aria-[\-\w]+$/),n4=Y5(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),pZ=Y5(/^(?:\w+script|data):/i),dZ=Y5(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),t4=Y5(/^html$/i),iZ=Y5(/^[a-z][.\w]*(-[.\w]+)+$/i),o4=Object.freeze({__proto__:null,ARIA_ATTR:lZ,ATTR_WHITESPACE:dZ,CUSTOM_ELEMENT:iZ,DATA_ATTR:uZ,DOCTYPE_NAME:t4,ERB_EXPR:fZ,IS_ALLOWED_URI:n4,IS_SCRIPT_OR_DATA:pZ,MUSTACHE_EXPR:mZ,TMPLIT_EXPR:$Z}),t8={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},_Z=function(){return typeof window>"u"?null:window},cZ=function(J,Q){if(typeof J!=="object"||typeof J.createPolicy!=="function")return null;let K=null,X="data-tt-policy-suffix";if(Q&&Q.hasAttribute(X))K=Q.getAttribute(X);let Z="dompurify"+(K?"#"+K:"");try{return J.createPolicy(Z,{createHTML(w){return w},createScriptURL(w){return w}})}catch(w){return console.warn("TrustedTypes policy "+Z+" could not be created."),null}},a4=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function e4(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_Z(),J=(Z0)=>e4(Z0);if(J.version="3.3.1",J.removed=[],!z||!z.document||z.document.nodeType!==t8.document||!z.Element)return J.isSupported=!1,J;let{document:Q}=z,K=Q,X=K.currentScript,{DocumentFragment:Z,HTMLTemplateElement:w,Node:G,Element:H,NodeFilter:B,NamedNodeMap:F=z.NamedNodeMap||z.MozNamedAttrMap,HTMLFormElement:q,DOMParser:Y,trustedTypes:U}=z,x=H.prototype,I=n8(x,"cloneNode"),M=n8(x,"remove"),A=n8(x,"nextSibling"),E=n8(x,"childNodes"),v=n8(x,"parentNode");if(typeof w==="function"){let Z0=Q.createElement("template");if(Z0.content&&Z0.content.ownerDocument)Q=Z0.content.ownerDocument}let T,y="",{implementation:N,createNodeIterator:R,createDocumentFragment:k,getElementsByTagName:$}=Q,{importNode:b}=K,l=a4();J.isSupported=typeof r4==="function"&&typeof v==="function"&&N&&N.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:n,ERB_EXPR:s,TMPLIT_EXPR:a,DATA_ATTR:W0,ARIA_ATTR:K0,IS_SCRIPT_OR_DATA:q0,ATTR_WHITESPACE:o,CUSTOM_ELEMENT:e}=o4,{IS_ALLOWED_URI:P0}=o4,V0=null,k0=O0({},[...i4,...y9,...v9,...g9,..._4]),Y0=null,z0=O0({},[...c4,...h9,...s4,...ez]),t=Object.seal(m9(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),B0=null,D0=null,H0=Object.seal(m9(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),G0=!0,n0=!0,v5=!1,Hz=!0,a5=!1,r5=!0,B5=!1,l6=!1,p6=!1,n5=!1,d6=!1,Uz=!1,EJ=!0,yJ=!1,LK="user-content-",M7=!0,N8=!1,i6={},P5=null,C7=O0({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),vJ=null,gJ=O0({},["audio","video","img","source","image","track"]),O7=null,hJ=O0({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Vz="http://www.w3.org/1998/Math/MathML",qz="http://www.w3.org/2000/svg",g5="http://www.w3.org/1999/xhtml",_6=g5,P7=!1,L7=null,IK=O0({},[Vz,qz,g5],T9),Fz=O0({},["mi","mo","mn","ms","mtext"]),xz=O0({},["annotation-xml"]),SK=O0({},["title","style","font","a","script"]),k8=null,jK=["application/xhtml+xml","text/html"],DK="text/html",t0=null,c6=null,RK=Q.createElement("form"),mJ=function(L){return L instanceof RegExp||L instanceof Function},I7=function(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(c6&&c6===L)return;if(!L||typeof L!=="object")L={};if(L=T5(L),k8=jK.indexOf(L.PARSER_MEDIA_TYPE)===-1?DK:L.PARSER_MEDIA_TYPE,t0=k8==="application/xhtml+xml"?T9:z7,V0=C5(L,"ALLOWED_TAGS")?O0({},L.ALLOWED_TAGS,t0):k0,Y0=C5(L,"ALLOWED_ATTR")?O0({},L.ALLOWED_ATTR,t0):z0,L7=C5(L,"ALLOWED_NAMESPACES")?O0({},L.ALLOWED_NAMESPACES,T9):IK,O7=C5(L,"ADD_URI_SAFE_ATTR")?O0(T5(hJ),L.ADD_URI_SAFE_ATTR,t0):hJ,vJ=C5(L,"ADD_DATA_URI_TAGS")?O0(T5(gJ),L.ADD_DATA_URI_TAGS,t0):gJ,P5=C5(L,"FORBID_CONTENTS")?O0({},L.FORBID_CONTENTS,t0):C7,B0=C5(L,"FORBID_TAGS")?O0({},L.FORBID_TAGS,t0):T5({}),D0=C5(L,"FORBID_ATTR")?O0({},L.FORBID_ATTR,t0):T5({}),i6=C5(L,"USE_PROFILES")?L.USE_PROFILES:!1,G0=L.ALLOW_ARIA_ATTR!==!1,n0=L.ALLOW_DATA_ATTR!==!1,v5=L.ALLOW_UNKNOWN_PROTOCOLS||!1,Hz=L.ALLOW_SELF_CLOSE_IN_ATTR!==!1,a5=L.SAFE_FOR_TEMPLATES||!1,r5=L.SAFE_FOR_XML!==!1,B5=L.WHOLE_DOCUMENT||!1,n5=L.RETURN_DOM||!1,d6=L.RETURN_DOM_FRAGMENT||!1,Uz=L.RETURN_TRUSTED_TYPE||!1,p6=L.FORCE_BODY||!1,EJ=L.SANITIZE_DOM!==!1,yJ=L.SANITIZE_NAMED_PROPS||!1,M7=L.KEEP_CONTENT!==!1,N8=L.IN_PLACE||!1,P0=L.ALLOWED_URI_REGEXP||n4,_6=L.NAMESPACE||g5,Fz=L.MATHML_TEXT_INTEGRATION_POINTS||Fz,xz=L.HTML_INTEGRATION_POINTS||xz,t=L.CUSTOM_ELEMENT_HANDLING||{},L.CUSTOM_ELEMENT_HANDLING&&mJ(L.CUSTOM_ELEMENT_HANDLING.tagNameCheck))t.tagNameCheck=L.CUSTOM_ELEMENT_HANDLING.tagNameCheck;if(L.CUSTOM_ELEMENT_HANDLING&&mJ(L.CUSTOM_ELEMENT_HANDLING.attributeNameCheck))t.attributeNameCheck=L.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;if(L.CUSTOM_ELEMENT_HANDLING&&typeof L.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==="boolean")t.allowCustomizedBuiltInElements=L.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;if(a5)n0=!1;if(d6)n5=!0;if(i6){if(V0=O0({},_4),Y0=[],i6.html===!0)O0(V0,i4),O0(Y0,c4);if(i6.svg===!0)O0(V0,y9),O0(Y0,h9),O0(Y0,ez);if(i6.svgFilters===!0)O0(V0,v9),O0(Y0,h9),O0(Y0,ez);if(i6.mathMl===!0)O0(V0,g9),O0(Y0,s4),O0(Y0,ez)}if(L.ADD_TAGS)if(typeof L.ADD_TAGS==="function")H0.tagCheck=L.ADD_TAGS;else{if(V0===k0)V0=T5(V0);O0(V0,L.ADD_TAGS,t0)}if(L.ADD_ATTR)if(typeof L.ADD_ATTR==="function")H0.attributeCheck=L.ADD_ATTR;else{if(Y0===z0)Y0=T5(Y0);O0(Y0,L.ADD_ATTR,t0)}if(L.ADD_URI_SAFE_ATTR)O0(O7,L.ADD_URI_SAFE_ATTR,t0);if(L.FORBID_CONTENTS){if(P5===C7)P5=T5(P5);O0(P5,L.FORBID_CONTENTS,t0)}if(L.ADD_FORBID_CONTENTS){if(P5===C7)P5=T5(P5);O0(P5,L.ADD_FORBID_CONTENTS,t0)}if(M7)V0["#text"]=!0;if(B5)O0(V0,["html","head","body"]);if(V0.table)O0(V0,["tbody"]),delete B0.tbody;if(L.TRUSTED_TYPES_POLICY){if(typeof L.TRUSTED_TYPES_POLICY.createHTML!=="function")throw r8('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof L.TRUSTED_TYPES_POLICY.createScriptURL!=="function")throw r8('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=L.TRUSTED_TYPES_POLICY,y=T.createHTML("")}else{if(T===void 0)T=cZ(U,X);if(T!==null&&typeof y==="string")y=T.createHTML("")}if(y1)y1(L);c6=L},fJ=O0({},[...y9,...v9,...gZ]),$J=O0({},[...g9,...hZ]),AK=function(L){let p=v(L);if(!p||!p.tagName)p={namespaceURI:_6,tagName:"template"};let J0=z7(L.tagName),$0=z7(p.tagName);if(!L7[L.namespaceURI])return!1;if(L.namespaceURI===qz){if(p.namespaceURI===g5)return J0==="svg";if(p.namespaceURI===Vz)return J0==="svg"&&($0==="annotation-xml"||Fz[$0]);return Boolean(fJ[J0])}if(L.namespaceURI===Vz){if(p.namespaceURI===g5)return J0==="math";if(p.namespaceURI===qz)return J0==="math"&&xz[$0];return Boolean($J[J0])}if(L.namespaceURI===g5){if(p.namespaceURI===qz&&!xz[$0])return!1;if(p.namespaceURI===Vz&&!Fz[$0])return!1;return!$J[J0]&&(SK[J0]||!fJ[J0])}if(k8==="application/xhtml+xml"&&L7[L.namespaceURI])return!0;return!1},L5=function(L){o8(J.removed,{element:L});try{v(L).removeChild(L)}catch(p){M(L)}},x6=function(L,p){try{o8(J.removed,{attribute:p.getAttributeNode(L),from:p})}catch(J0){o8(J.removed,{attribute:null,from:p})}if(p.removeAttribute(L),L==="is")if(n5||d6)try{L5(p)}catch(J0){}else try{p.setAttribute(L,"")}catch(J0){}},uJ=function(L){let p=null,J0=null;if(p6)L=""+L;else{let c0=E9(L,/^[\r\n\t ]+/);J0=c0&&c0[0]}if(k8==="application/xhtml+xml"&&_6===g5)L=''+L+"";let $0=T?T.createHTML(L):L;if(_6===g5)try{p=new Y().parseFromString($0,k8)}catch(c0){}if(!p||!p.documentElement){p=N.createDocument(_6,"template",null);try{p.documentElement.innerHTML=P7?y:$0}catch(c0){}}let I1=p.body||p.documentElement;if(L&&J0)I1.insertBefore(Q.createTextNode(J0),I1.childNodes[0]||null);if(_6===g5)return $.call(p,B5?"html":"body")[0];return B5?p.documentElement:I1},lJ=function(L){return R.call(L.ownerDocument||L,L,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION|B.SHOW_CDATA_SECTION,null)},S7=function(L){return L instanceof q&&(typeof L.nodeName!=="string"||typeof L.textContent!=="string"||typeof L.removeChild!=="function"||!(L.attributes instanceof F)||typeof L.removeAttribute!=="function"||typeof L.setAttribute!=="function"||typeof L.namespaceURI!=="string"||typeof L.insertBefore!=="function"||typeof L.hasChildNodes!=="function")},pJ=function(L){return typeof G==="function"&&L instanceof G};function h5(Z0,L,p){tz(Z0,(J0)=>{J0.call(J,L,p,c6)})}let dJ=function(L){let p=null;if(h5(l.beforeSanitizeElements,L,null),S7(L))return L5(L),!0;let J0=t0(L.nodeName);if(h5(l.uponSanitizeElement,L,{tagName:J0,allowedTags:V0}),r5&&L.hasChildNodes()&&!pJ(L.firstElementChild)&&E1(/<[/\w!]/g,L.innerHTML)&&E1(/<[/\w!]/g,L.textContent))return L5(L),!0;if(L.nodeType===t8.progressingInstruction)return L5(L),!0;if(r5&&L.nodeType===t8.comment&&E1(/<[/\w]/g,L.data))return L5(L),!0;if(!(H0.tagCheck instanceof Function&&H0.tagCheck(J0))&&(!V0[J0]||B0[J0])){if(!B0[J0]&&_J(J0)){if(t.tagNameCheck instanceof RegExp&&E1(t.tagNameCheck,J0))return!1;if(t.tagNameCheck instanceof Function&&t.tagNameCheck(J0))return!1}if(M7&&!P5[J0]){let $0=v(L)||L.parentNode,I1=E(L)||L.childNodes;if(I1&&$0){let c0=I1.length;for(let g1=c0-1;g1>=0;--g1){let m5=I(I1[g1],!0);m5.__removalCount=(L.__removalCount||0)+1,$0.insertBefore(m5,A(L))}}}return L5(L),!0}if(L instanceof H&&!AK(L))return L5(L),!0;if((J0==="noscript"||J0==="noembed"||J0==="noframes")&&E1(/<\/no(script|embed|frames)/i,L.innerHTML))return L5(L),!0;if(a5&&L.nodeType===t8.text){if(p=L.textContent,tz([n,s,a],($0)=>{p=a8(p,$0," ")}),L.textContent!==p)o8(J.removed,{element:L.cloneNode()}),L.textContent=p}return h5(l.afterSanitizeElements,L,null),!1},iJ=function(L,p,J0){if(EJ&&(p==="id"||p==="name")&&((J0 in Q)||(J0 in RK)))return!1;if(n0&&!D0[p]&&E1(W0,p));else if(G0&&E1(K0,p));else if(H0.attributeCheck instanceof Function&&H0.attributeCheck(p,L));else if(!Y0[p]||D0[p])if(_J(L)&&(t.tagNameCheck instanceof RegExp&&E1(t.tagNameCheck,L)||t.tagNameCheck instanceof Function&&t.tagNameCheck(L))&&(t.attributeNameCheck instanceof RegExp&&E1(t.attributeNameCheck,p)||t.attributeNameCheck instanceof Function&&t.attributeNameCheck(p,L))||p==="is"&&t.allowCustomizedBuiltInElements&&(t.tagNameCheck instanceof RegExp&&E1(t.tagNameCheck,J0)||t.tagNameCheck instanceof Function&&t.tagNameCheck(J0)));else return!1;else if(O7[p]);else if(E1(P0,a8(J0,o,"")));else if((p==="src"||p==="xlink:href"||p==="href")&&L!=="script"&&TZ(J0,"data:")===0&&vJ[L]);else if(v5&&!E1(q0,a8(J0,o,"")));else if(J0)return!1;return!0},_J=function(L){return L!=="annotation-xml"&&E9(L,e)},cJ=function(L){h5(l.beforeSanitizeAttributes,L,null);let{attributes:p}=L;if(!p||S7(L))return;let J0={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y0,forceKeepAttr:void 0},$0=p.length;while($0--){let I1=p[$0],{name:c0,namespaceURI:g1,value:m5}=I1,s6=t0(c0),j7=m5,U1=c0==="value"?j7:EZ(j7);if(J0.attrName=s6,J0.attrValue=U1,J0.keepAttr=!0,J0.forceKeepAttr=void 0,h5(l.uponSanitizeAttribute,L,J0),U1=J0.attrValue,yJ&&(s6==="id"||s6==="name"))x6(c0,L),U1=LK+U1;if(r5&&E1(/((--!?|])>)|<\/(style|title|textarea)/i,U1)){x6(c0,L);continue}if(s6==="attributename"&&E9(U1,"href")){x6(c0,L);continue}if(J0.forceKeepAttr)continue;if(!J0.keepAttr){x6(c0,L);continue}if(!Hz&&E1(/\/>/i,U1)){x6(c0,L);continue}if(a5)tz([n,s,a],(oJ)=>{U1=a8(U1,oJ," ")});let sJ=t0(L.nodeName);if(!iJ(sJ,s6,U1)){x6(c0,L);continue}if(T&&typeof U==="object"&&typeof U.getAttributeType==="function")if(g1);else switch(U.getAttributeType(sJ,s6)){case"TrustedHTML":{U1=T.createHTML(U1);break}case"TrustedScriptURL":{U1=T.createScriptURL(U1);break}}if(U1!==j7)try{if(g1)L.setAttributeNS(g1,c0,U1);else L.setAttribute(c0,U1);if(S7(L))L5(L);else d4(J.removed)}catch(oJ){x6(c0,L)}}h5(l.afterSanitizeAttributes,L,null)},NK=function Z0(L){let p=null,J0=lJ(L);h5(l.beforeSanitizeShadowDOM,L,null);while(p=J0.nextNode())if(h5(l.uponSanitizeShadowNode,p,null),dJ(p),cJ(p),p.content instanceof Z)Z0(p.content);h5(l.afterSanitizeShadowDOM,L,null)};return J.sanitize=function(Z0){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=null,J0=null,$0=null,I1=null;if(P7=!Z0,P7)Z0="";if(typeof Z0!=="string"&&!pJ(Z0))if(typeof Z0.toString==="function"){if(Z0=Z0.toString(),typeof Z0!=="string")throw r8("dirty is not a string, aborting")}else throw r8("toString is not a function");if(!J.isSupported)return Z0;if(!l6)I7(L);if(J.removed=[],typeof Z0==="string")N8=!1;if(N8){if(Z0.nodeName){let m5=t0(Z0.nodeName);if(!V0[m5]||B0[m5])throw r8("root node is forbidden and cannot be sanitized in-place")}}else if(Z0 instanceof G)if(p=uJ(""),J0=p.ownerDocument.importNode(Z0,!0),J0.nodeType===t8.element&&J0.nodeName==="BODY")p=J0;else if(J0.nodeName==="HTML")p=J0;else p.appendChild(J0);else{if(!n5&&!a5&&!B5&&Z0.indexOf("<")===-1)return T&&Uz?T.createHTML(Z0):Z0;if(p=uJ(Z0),!p)return n5?null:Uz?y:""}if(p&&p6)L5(p.firstChild);let c0=lJ(N8?Z0:p);while($0=c0.nextNode())if(dJ($0),cJ($0),$0.content instanceof Z)NK($0.content);if(N8)return Z0;if(n5){if(d6){I1=k.call(p.ownerDocument);while(p.firstChild)I1.appendChild(p.firstChild)}else I1=p;if(Y0.shadowroot||Y0.shadowrootmode)I1=b.call(K,I1,!0);return I1}let g1=B5?p.outerHTML:p.innerHTML;if(B5&&V0["!doctype"]&&p.ownerDocument&&p.ownerDocument.doctype&&p.ownerDocument.doctype.name&&E1(t4,p.ownerDocument.doctype.name))g1=" -`+g1;if(a5)tz([n,s,a],(m5)=>{g1=a8(g1,m5," ")});return T&&Uz?T.createHTML(g1):g1},J.setConfig=function(){let Z0=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};I7(Z0),l6=!0},J.clearConfig=function(){c6=null,l6=!1},J.isValidAttribute=function(Z0,L,p){if(!c6)I7({});let J0=t0(Z0),$0=t0(L);return iJ(J0,$0,p)},J.addHook=function(Z0,L){if(typeof L!=="function")return;o8(l[Z0],L)},J.removeHook=function(Z0,L){if(L!==void 0){let p=kZ(l[Z0],L);return p===-1?void 0:bZ(l[Z0],p,1)[0]}return d4(l[Z0])},J.removeHooks=function(Z0){l[Z0]=[]},J.removeAllHooks=function(){l=a4()},J}var zK=e4();function v6(z){return J7(z,"day")}function J7(z,J,Q){if(z==1)return`1 ${J}`;else return Q=Q??`${J}s`,`${z} ${Q}`}function JK(z){return zK.sanitize(z,{ALLOWED_TAGS:["a","b","blockquote","br","code","dd","del","div","dl","dt","em","font","h1","h2","h3","h4","h5","h6","hr","i","li","ol","p","q","pre","s","span","strong","sub","sup","u","wbr","#text"],ALLOWED_ATTR:["align","alt","class","clear","color","dir","href","lang","rel","title","translate"]})}function QK(z,J){if(z.length<=J)return z;else return z.slice(0,J-1)+"…"}function g6(z){if(z===void 0||z===null||typeof z=="number")return z;else return parseInt(z,10)}function d1(z){let J=z.reason?z.reason.indexedAt:z.post.record.createdAt;return Date.parse(J)}function q8(z){try{let J=new URL(z);return J.protocol=="http:"||J.protocol=="https:"}catch(J){return console.error("Invalid URL: "+J),!1}}function KK(z,J){return z.getDate()==J.getDate()&&z.getMonth()==J.getMonth()&&z.getFullYear()==J.getFullYear()}function U6(z){console.log(z),alert(z)}class i1{constructor(z,J){this.data=z,Object.assign(this,J??{})}get uri(){return this.data.uri}get cid(){return this.data.cid}get rkey(){return l0(this.uri).rkey}get type(){return this.data.$type}}class e8 extends i1{constructor(z){super(z);this.author=z.creator}get title(){return this.data.displayName}get description(){return this.data.description}get likeCount(){return g6(this.data.likeCount)}get avatar(){return this.data.avatar}}class zz extends i1{constructor(z){super(z);this.author=z.creator}get title(){return this.data.name}get purpose(){return this.data.purpose}get description(){return this.data.description}get avatar(){return this.data.avatar}}class Jz extends i1{constructor(z){super(z);this.author=z.creator}get title(){return this.data.record.name}get description(){return this.data.record.description}}class Z1{json;static parseInlineEmbed(z){switch(z.$type){case"app.bsky.embed.record#view":return new x8(z);case"app.bsky.embed.recordWithMedia#view":return new M8(z);case"app.bsky.embed.images#view":return new W7(z);case"app.bsky.embed.external#view":return new C8(z);case"app.bsky.embed.video#view":return new O8(z);default:if(location.protocol=="file:")throw new F8(`Unexpected embed type: ${z.$type}`);else return console.warn("Unexpected embed type:",z.$type),new Z1(z)}}static parseRawEmbed(z){switch(z.$type){case"app.bsky.embed.record":return new X7(z);case"app.bsky.embed.recordWithMedia":return new w7(z);case"app.bsky.embed.images":return new Q7(z);case"app.bsky.embed.external":return new K7(z);case"app.bsky.embed.video":return new Z7(z);default:if(location.protocol=="file:")throw new F8(`Unexpected embed type: ${z.$type}`);else return console.warn("Unexpected embed type:",z.$type),new Z1(z)}}constructor(z){this.json=z}get type(){return this.json.$type}}class Q7 extends Z1{images;constructor(z){super(z);this.images=z.images}}class K7 extends Z1{url;title;thumb;constructor(z){super(z);this.url=z.external.uri,this.title=z.external.title,this.thumb=z.external.thumb}}class Z7 extends Z1{video;constructor(z){super(z);this.video=z.video}}class X7 extends Z1{record;constructor(z){super(z);this.record=new i1(z.record)}}class w7 extends Z1{record;media;constructor(z){super(z);this.record=new i1(z.record.record),this.media=Z1.parseRawEmbed(z.media)}}class x8 extends Z1{record;constructor(z){super(z);this.record=u9(z.record)}}class M8 extends Z1{record;media;constructor(z){super(z);this.record=u9(z.record.record),this.media=Z1.parseInlineEmbed(z.media)}}class C8 extends Z1{url;title;description;thumb;constructor(z){super(z);this.url=z.external.uri,this.title=z.external.title,this.description=z.external.description,this.thumb=z.external.thumb}}class W7 extends Z1{images;constructor(z){super(z);this.images=z.images}}class O8 extends Z1{playlistURL;alt;constructor(z){super(z);this.playlistURL=z.playlist,this.alt=z.alt}}class F8 extends Error{constructor(z){super(z)}}class h6 extends i1{get didLinkToAuthor(){let{repo:z}=l0(this.uri);return`https://bsky.app/profile/${z}`}}function V6(z,J=null,Q=0,K=0){switch(z.$type){case"app.bsky.feed.defs#threadViewPost":let X=new S0(z.post,{level:Q,absoluteLevel:K});if(X.pageRoot=J??X,z.replies){let Z=z.replies.map((w)=>V6(w,X.pageRoot,Q+1,K+1));X.setReplies(Z)}if(K<=0&&z.parent)X.parent=V6(z.parent,X.pageRoot,Q-1,K-1);return X;case"app.bsky.feed.defs#notFoundPost":return new O5(z);case"app.bsky.feed.defs#blockedPost":return new E5(z);default:throw new F8(`Unexpected record type: ${z.$type}`)}}function u9(z){switch(z.$type){case"app.bsky.embed.record#viewRecord":return new S0(z,{isEmbed:!0});case"app.bsky.embed.record#viewNotFound":return new O5(z);case"app.bsky.embed.record#viewBlocked":return new E5(z);case"app.bsky.embed.record#viewDetached":return new P8(z);case"app.bsky.feed.defs#generatorView":return new e8(z);case"app.bsky.graph.defs#listView":return new zz(z);case"app.bsky.graph.defs#starterPackViewBasic":return new Jz(z);default:return console.warn("Unknown record type:",z.$type),new i1(z)}}function XK(z){let J=new S0(z.post);if(z.reply){if(J.parent=ZK(z.reply.parent),J.threadRoot=ZK(z.reply.root),z.reply.grandparentAuthor)J.grandparentAuthor=z.reply.grandparentAuthor}if(z.reason)J.reason=z.reason;return J}function ZK(z){switch(z.$type){case"app.bsky.feed.defs#postView":return new S0(z);case"app.bsky.feed.defs#notFoundPost":return new O5(z);case"app.bsky.feed.defs#blockedPost":return new E5(z);default:throw new F8(`Unexpected record type: ${z.$type}`)}}class S0 extends h6{parent;threadRoot;pageRoot;replies;grandparentAuthor;level;absoluteLevel;reason;isEmbed;constructor(z,J){super(z);if(Object.assign(this,J??{}),this.absoluteLevel===0)this.pageRoot=this;if(this.record=this.isPostView?z.record:z.value,this.isPostView&&z.embed)this.embed=Z1.parseInlineEmbed(z.embed);else if(this.isEmbed&&z.embeds&&z.embeds[0])this.embed=Z1.parseInlineEmbed(z.embeds[0]);else if(this.record.embed)this.embed=Z1.parseRawEmbed(this.record.embed);if(this.author=this.author??z.author,this.replies=[],this.viewerData=z.viewer,this.viewerLike=z.viewer?.like,this.author)N0.cacheProfile(this.author)}updateDataFromPost(z){this.record=z.record,this.embed=z.embed,this.author=z.author,this.viewerData=z.viewerData,this.viewerLike=z.viewerLike,this.level=z.level,this.absoluteLevel=z.absoluteLevel,this.setReplies(z.replies)}setReplies(z){this.replies=z,this.replies.sort(this.sortReplies.bind(this))}sortReplies(z,J){if(z instanceof S0&&J instanceof S0)if(z.author.did==this.author.did&&J.author.did!=this.author.did)return-1;else if(z.author.did!=this.author.did&&J.author.did==this.author.did)return 1;else if(z.text!="\uD83D\uDCCC"&&J.text=="\uD83D\uDCCC")return-1;else if(z.text=="\uD83D\uDCCC"&&J.text!="\uD83D\uDCCC")return 1;else if(z.createdAt.getTime()J.createdAt.getTime())return 1;else return 0;else if(z instanceof S0)return-1;else if(J instanceof S0)return 1;else return 0}get isPostView(){return!this.isEmbed}get isFediPost(){return this.author?.handle.endsWith(".ap.brid.gy")}get originalFediContent(){return this.record.bridgyOriginalText}get originalFediURL(){return this.record.bridgyOriginalUrl}get isPageRoot(){return this.pageRoot===this}get authorFediHandle(){if(this.isFediPost)return this.author.handle.replace(/\.ap\.brid\.gy$/,"").replace(".","@");else throw"Not a Fedi post"}get hasValidHandle(){return this.author.handle!="handle.invalid"}get authorDisplayName(){if(this.author.displayName)return this.author.displayName.trim();else if(this.author.handle.endsWith(".bsky.social"))return this.author.handle.replace(/\.bsky\.social$/,"");else return this.author.handle}get linkToAuthor(){return"https://bsky.app/profile/"+(this.hasValidHandle?this.author.handle:this.author.did)}get linkToPost(){return this.linkToAuthor+"/post/"+this.rkey}get text(){return this.record.text}get lowercaseText(){if(!this._lowercaseText)this._lowercaseText=this.record.text.toLowerCase();return this._lowercaseText}get facets(){return this.record.facets}get tags(){return this.record.tags}get createdAt(){return new Date(this.record.createdAt)}get likeCount(){return g6(this.data.likeCount)}get replyCount(){return g6(this.data.replyCount)}get quoteCount(){return g6(this.data.quoteCount)}get hasMoreReplies(){return this.replyCount!==void 0&&this.replyCount>this.replies.length&&this.replies.length===0&&(this.level!==void 0&&this.level>4)}get hasHiddenReplies(){return this.replyCount!==void 0&&this.replyCount>this.replies.length&&(this.replies.length>0||this.level!==void 0&&this.level<=4)}get isRestrictingReplies(){return!!(this.data.threadgate&&this.data.threadgate.record.allow)}get repostCount(){return g6(this.data.repostCount)}get liked(){return this.viewerLike!==void 0}get muted(){return this.author.viewer?.muted}get muteList(){return this.author.viewer?.mutedByList?.name}get hasViewerInfo(){return this.viewerData!==void 0}get parentReference(){return this.record.reply?.parent&&new i1(this.record.reply?.parent)}get rootReference(){return this.record.reply?.root&&new i1(this.record.reply?.root)}}class E5 extends h6{constructor(z){super(z);this.author=z.author}get blocksUser(){return!!this.author.viewer?.blocking}get blockedByUser(){return this.author.viewer?.blockedBy}}class O5 extends h6{}class P8 extends h6{}class l9 extends Error{}class s5 extends Error{constructor(z){super(z)}}class _1 extends s8{handleCache;profiles;constructor(z,J,Q){super(z,J,Q);this.handleCache=new N9,this.profiles={}}cacheProfile(z){this.profiles[z.did]=z,this.profiles[z.handle]=z,this.handleCache.setHandleDid(z.handle,z.did)}async fetchHandleForDid(z){let J=this.handleCache.findHandleByDid(z);if(J)return J;else return(await this.loadUserProfile(z)).handle}async resolveHandle(z){let J=this.handleCache.getHandleDid(z);if(J)return J;else{let Q=await this.getRequest("com.atproto.identity.resolveHandle",{handle:z},{auth:!1}),K=Q.did;if(K)return this.handleCache.setHandleDid(z,K),K;else throw new l9("Missing DID in response: "+JSON.stringify(Q))}}async loadThreadByURL(z){let{user:J,post:Q}=Qz(z);return await this.loadThreadById(J,Q)}async loadThreadById(z,J){let K=`at://${z.startsWith("did:")?z:await this.resolveHandle(z)}/app.bsky.feed.post/${J}`;return await this.loadThreadByAtURI(K)}async loadThreadByAtURI(z){return await this.getRequest("app.bsky.feed.getPostThread",{uri:z,depth:10})}async loadUserProfile(z){if(this.profiles[z])return this.profiles[z];else{let J=await this.getRequest("app.bsky.actor.getProfile",{actor:z});return this.cacheProfile(J),J}}async autocompleteUsers(z){return(await this.getRequest("app.bsky.actor.searchActorsTypeahead",{q:z})).actors}async getReplies(z){return(await this.fetchAll("blue.microcosm.links.getBacklinks",{field:"records",params:{subject:z,source:"app.bsky.feed.post:reply.parent.uri",limit:100}})).map((Q)=>`at://${Q.did}/${Q.collection}/${Q.rkey}`)}async getQuoteCount(z){return(await this.getRequest("blue.feeds.post.getQuoteCount",{uri:z})).quoteCount}async getQuotes(z,J){let Q;if(z.startsWith("at://"))Q=z;else{let{user:X,post:Z}=Qz(z);Q=`at://${X.startsWith("did:")?X:await q6.resolveHandle(X)}/app.bsky.feed.post/${Z}`}let K={uri:Q};if(J)K.cursor=J;return await this.getRequest("blue.feeds.post.getQuotes",K)}async getHashtagFeed(z,J){let Q={q:"#"+z,limit:50,sort:"latest"};if(J)Q.cursor=J;return await this.getRequest("app.bsky.feed.searchPosts",Q)}async loadHiddenReplies(z){let Q=(await p9.getReplies(z.uri)).filter((Z)=>!z.replies.some((w)=>w.uri===Z));Q.sort((Z,w)=>{let G=Z.split("/").at(-1),H=w.split("/").at(-1);return G.localeCompare(H)});let K=Q.map((Z)=>this.loadThreadByAtURI(Z));return(await Promise.allSettled(K)).map((Z)=>Z.status=="fulfilled"?Z.value:null)}async loadUserTimeline(z,J,Q){let X=new Date().getTime()-J*86400*1000,{filter:Z,...w}=Q;return await this.fetchAll("app.bsky.feed.getAuthorFeed",{params:{actor:z,filter:Z,limit:100},field:"feed",breakWhen:(G)=>d1(G)d1(Z)0)return(await this.getRequest("app.bsky.feed.getPosts",{uris:z})).posts;else return[]}async loadPostViewerInfo(z){let J=await this.loadPostIfExists(z.uri);if(J)z.author=J.author,z.viewerData=J.viewer,z.viewerLike=J.viewer?.like;return J}async reloadBlockedPost(z){let{repo:J}=l0(z),Q=q6.loadPostIfExists(z),K=this.getRequest("app.bsky.actor.getProfile",{actor:J}),X=await Q;if(!X)return null;let Z=await K;return new S0(X,{author:Z})}}class wK{user;constructor(){let z=localStorage.getItem("userData");this.user=z?JSON.parse(z):{}}save(){if(this.user)localStorage.setItem("userData",JSON.stringify(this.user));else localStorage.removeItem("userData")}}class Y7 extends _1{user;constructor(){let z=new wK,J=z.user.pdsEndpoint||null;super(J,z);this.user=z.user}async getCurrentUserAvatar(){return(await this.getRequest("com.atproto.repo.getRecord",{repo:this.user.did,collection:"app.bsky.actor.profile",rkey:"self"})).value.avatar}async loadCurrentUserAvatar(){if(!this.config||!this.config.user)throw new B6("User isn't logged in");let z=await this.getCurrentUserAvatar();if(z){let J=`https://cdn.bsky.app/img/avatar/plain/${this.user.did}/${z.ref.$link}@jpeg`;return this.config.user.avatar=J,this.config.save(),J}else return null}async loadNotifications(z){return await this.getRequest("app.bsky.notification.listNotifications",z||{})}async loadMentions(z){let J=await this.loadNotifications({cursor:z??"",limit:100,reasons:["reply","mention"]}),Q=J.notifications.map((Z)=>Z.uri),K=[];for(let Z=0;Zd1(X)J.purpose=="app.bsky.graph.defs#curatelist")}async likePost(z){return await this.postRequest("com.atproto.repo.createRecord",{repo:this.user.did,collection:"app.bsky.feed.like",record:{subject:{uri:z.uri,cid:z.cid},createdAt:new Date().toISOString()}})}async removeLike(z){let{rkey:J}=l0(z);await this.postRequest("com.atproto.repo.deleteRecord",{repo:this.user.did,collection:"app.bsky.feed.like",rkey:J})}resetTokens(){delete this.user.avatar,super.resetTokens()}}class WK{#z;get data(){return W(this.#z)}set data(z){D(this.#z,z,!0)}constructor(){let z=localStorage.getItem("settings");this.#z=f(C0(z?JSON.parse(z):{}))}save(){localStorage.setItem("settings",JSON.stringify(this.data))}logOut(){delete this.data.incognito,this.save()}get dateLocale(){return this.data.dateLocale}set dateLocale(z){this.data.dateLocale=z,this.save()}get incognitoMode(){return this.data.incognito}set incognitoMode(z){this.data.incognito=z,this.save()}get biohazardsEnabled(){return this.data.biohazard}set biohazardsEnabled(z){this.data.biohazard=z,this.save()}}var y0=new WK;window.settings=y0;var q6=new _1("api.bsky.app"),Kz=new _1("blue.mackuba.eu"),p9=new _1("constellation.microcosm.blue"),x0=new Y7,N0;function d9(){N0=x0.isLoggedIn&&!y0.incognitoMode?x0:q6,window.api=N0}d9();window.AuthenticatedAPI=Y7;window.BlueskyAPI=_1;window.Minisky=s8;window.appView=q6;window.blueAPI=Kz;window.accountAPI=x0;window.constellationAPI=p9;function m6(){return location.protocol+"//"+location.host+location.pathname}function L8(z){let J=new URL(m6());return J.searchParams.set("hash",z),J.toString()}function i9(z){let J=new URL(m6());return J.searchParams.set("quotes",z),J.toString()}function y5(z){return G5(z.author.handle,z.rkey)}function G5(z,J){let Q=new URL(m6());return Q.searchParams.set("author",z),Q.searchParams.set("post",J),Q.toString()}function Qz(z){let J;try{J=new URL(z)}catch(Z){throw new s5(`${Z}`)}if(J.protocol!="https:"&&J.protocol!="http:")throw new s5("URL must start with http(s)://");let Q=J.pathname.split("/");if(Q.length<5||Q[1]!="profile"||Q[3]!="post")throw new s5("This is not a valid thread URL");let K=Q[2],X=Q[4];return{user:K,post:X}}function YK(z){return Object.fromEntries(new URLSearchParams(z))}var GK="5";if(typeof window<"u")((window.__svelte??={}).v??=new Set).add(GK);class _9 extends Error{}class HK extends Error{}async function BK(z){let J;if(z.startsWith("did:plc:"))J=new URL(`https://plc.directory/${z}`);else if(z.startsWith("did:web:")){let Z=z.replace(/^did:web:/,"");J=new URL(`https://${Z}/.well-known/did.json`)}else throw new _9(`Unknown DID type: ${z}`);let Q=await fetch(J),K=await Q.text(),X=K.trim().length>0?JSON.parse(K):void 0;if(Q.status==200){let Z=(X.service||[]).find((w)=>w.id=="#atproto_pds");if(Z)return Z.serviceEndpoint.replace("https://","");else throw new _9("Missing #atproto_pds service definition")}else throw new H6(Q.status,X)}async function UK(z){if(z.match(/^did:/))return await BK(z);else if(z.match(/^[^@]+@[^@]+$/))return"bsky.social";else if(z.match(/^@?[\w\-]+(\.[\w\-]+)+$/)){z=z.replace(/^@/,"");let J=await q6.resolveHandle(z);return await BK(J)}else throw new HK("Please enter your handle or DID.")}class VK{#z;#J;#Q;constructor(){this.#z=f(C0(x0.isLoggedIn)),this.#J=f(C0(x0.isLoggedIn?x0.user.avatar:void 0)),this.#Q=f(!1)}get isIncognito(){return!!y0.incognitoMode}toggleIncognitoMode(){y0.incognitoMode=!this.isIncognito,location.reload()}get loggedIn(){return W(this.#z)}get avatarURL(){return W(this.#J)}get avatarIsLoading(){return W(this.#Q)}async logIn(z,J){let Q=await UK(z);x0.host=Q,await x0.logIn(z,J),D(this.#z,!0),D(this.#Q,!0),d9(),x0.loadCurrentUserAvatar().then((K)=>{D(this.#J,K||void 0,!0)}).catch((K)=>{console.log(K)}).finally(()=>{D(this.#Q,!1)})}logOut(){x0.resetTokens(),y0.logOut(),location.reload()}}var X1=new VK;var sZ=P("
");function Zz(z,J){_(J,!0);let Q=j0(J,"onClose",3,void 0),K=j0(J,"id",3,void 0),X=c5(J,["$$slots","$$events","$$legacy","children","onClose","id"]);function Z(H){if(H.target===H.currentTarget)Q()?.()}var w=sZ();w.__click=Z;var G=O(w);G6(G,()=>J.children),C(w),g(()=>{i(w,"id",K()),K1(w,1,`dialog ${J.class??""}`,"svelte-1l7hx096m6h0i")}),V(z,w),c()}I0(["click"]);var oZ=P(`

☣️ Infohazard Warning

“This thread is not a place of honor... no highly esteemed post is commemorated here... nothing valued is here.”

This feature allows access to comments in a thread which were hidden because one of the commenters has blocked another. Bluesky currently hides such comments to avoid escalating conflicts.

Are you sure you want to enter?
(You can toggle this in the menu in top-left corner.)

`);function c9(z,J){_(J,!0);let Q=j0(J,"onConfirm",3,void 0),K=j0(J,"onReject",3,void 0),X=j0(J,"onClose",3,void 0);function Z(G){G.preventDefault(),y0.biohazardsEnabled=!0,Q()?.(),X()?.()}function w(G){G.preventDefault(),y0.biohazardsEnabled=!1,K()?.(),X()?.()}Zz(z,{onClose:()=>X()?.(),children:(G,H)=>{var B=oZ(),F=O(B);F.__click=function(...x){X()?.apply(this,x)};var q=S(F,10),Y=O(q);Y.__click=Z;var U=S(Y,2);U.__click=w,C(q),C(B),V(G,B)},$$slots:{default:!0}}),c()}I0(["click"]);var aZ=P(''),rZ=P(`

Skythread doesn't support OAuth yet. For now, you need to use an "app password" here, which you can generate in the Bluesky app settings.

The password you enter here is only passed to the Bluesky API (PDS) and isn't saved anywhere. The returned access token is only stored in your browser's local storage. You can see the complete source code of this app on Tangled.

`),nZ=P(''),tZ=P(''),eZ=P('

\uD83C\uDF24 Skythread

Use an "app password" here

');function s9(z,J){_(J,!0);let Q=j0(J,"onClose",3,void 0),K=j0(J,"onLogin",3,void 0),X=f(""),Z=f(""),w=f(!1),G=f(!1),H,B;function F(){if(J.showClose&&Q())Q()()}function q(x){x.preventDefault(),D(w,!W(w))}async function Y(x){x.preventDefault(),D(G,!0),H.blur(),B.blur();try{await X1.logIn(W(X).trim(),W(Z).trim()),K()?.(),Q()?.()}catch(I){D(G,!1),U(I)}}function U(x){if(console.log(x),x instanceof H6&&x.code==401&&x.json.error=="AuthFactorTokenRequired")alert('Please log in using an "app password" if you have 2FA enabled.');else window.setTimeout(()=>alert(x),10)}{let x=M0(()=>W(w)?"expanded":"");Zz(z,{id:"login",get class(){return W(x)},onClose:F,children:(I,M)=>{var A=eZ(),E=O(A);{var v=(K0)=>{var q0=aZ();q0.__click=function(...o){Q()?.apply(this,o)},V(K0,q0)};j(E,(K0)=>{if(J.showClose)K0(v)})}var T=S(E,4),y=O(T);p0(y),k6(y,!0),z5(y,(K0)=>H=K0,()=>H),C(T);var N=S(T,2),R=O(N);p0(R),z5(R,(K0)=>B=K0,()=>B),C(N);var k=S(N,2),$=O(k);$.__click=q,C(k);var b=S(k,2);{var l=(K0)=>{var q0=rZ();V(K0,q0)};j(b,(K0)=>{if(W(w))K0(l)})}var n=S(b,2),s=O(n);{var a=(K0)=>{var q0=nZ();V(K0,q0)},W0=(K0)=>{var q0=tZ();V(K0,q0)};j(s,(K0)=>{if(!W(G))K0(a);else K0(W0,!1)})}C(n),C(A),C1("submit",A,Y),P1(y,()=>W(X),(K0)=>D(X,K0)),P1(R,()=>W(Z),(K0)=>D(Z,K0)),V(I,A)},$$slots:{default:!0}})}c()}I0(["click"]);var G7=f(!1),qK=f(!1),B7=f(!1),FK=f(void 0);function I8(z){if(!W(G7))D(G7,!0),D(qK,z.showClose,!0)}function xK(z){if(!W(B7))D(B7,!0),D(FK,z,!0)}function o9(z){var J=d(),Q=h(J);{var K=(Z)=>{s9(Z,{onClose:()=>D(G7,!1),get showClose(){return W(qK)}})},X=(Z)=>{var w=d(),G=h(w);{var H=(B)=>{c9(B,{onClose:()=>D(B7,!1),onConfirm:()=>W(FK)?.()})};j(G,(B)=>{if(W(B7))B(H)},!0)}V(Z,w)};j(Q,(Z)=>{if(W(G7))Z(K);else Z(X,!1)})}V(z,J)}var zX=P('✓'),JX=P('
  • ');function S8(z,J){let Q=j0(J,"title",3,void 0),K=j0(J,"showCheckmark",3,!1);var X=JX(),Z=O(X);Z.__click=function(...B){J.onclick?.apply(this,B)};var w=O(Z);{var G=(B)=>{var F=zX();V(B,F)};j(w,(B)=>{if(K())B(G)})}var H=S(w);C(Z),C(X),g(()=>{i(Z,"title",Q()),u(H,` ${J.label??""}`)}),V(z,X)}I0(["click"]);var QX=P(" ",1),KX=P("");function a9(z,J){let Q=c5(J,["$$slots","$$events","$$legacy","loading","error"]),K=f(void 0);function X(){D(K,"loaded")}function Z(){D(K,"error")}var w=d(),G=h(w);{var H=(F)=>{var q=QX(),Y=h(q);G6(Y,()=>J.loading);var U=S(Y,2);az(U,()=>({...Q,style:"display: none",onload:X,onerror:Z})),W8(U),V(F,q)},B=(F)=>{var q=d(),Y=h(q);{var U=(I)=>{var M=KX();az(M,()=>({...Q})),W8(M),V(I,M)},x=(I)=>{var M=d(),A=h(M);G6(A,()=>J.error),V(I,M)};j(Y,(I)=>{if(W(K)=="loaded")I(U);else I(x,!1)},!0)}V(F,q)};j(G,(F)=>{if(!W(K))F(H);else F(B,!1)})}V(z,w)}var ZX=P(''),XX=P(''),wX=P(''),WX=P(''),YX=P(''),GX=P('
    ',1);function r9(z,J){_(J,!0);let Q=f(!1);Q1(()=>{let k=document.body.parentNode;return k.addEventListener("click",K),()=>{k.removeEventListener("click",K)}});function K(){D(Q,!1)}function X(k){k.stopPropagation(),D(Q,!W(Q))}function Z(k){if(k.preventDefault(),y0.biohazardsEnabled===!1)y0.biohazardsEnabled=!0;else y0.biohazardsEnabled=!1}function w(k){k.preventDefault(),X1.toggleIncognitoMode()}function G(k){k.preventDefault(),I8({showClose:!0}),D(Q,!1)}function H(k){k.preventDefault(),X1.logOut()}var B=GX(),F=h(B);F.__click=X;var q=O(F);{var Y=(k)=>{var $=ZX();V(k,$)},U=(k)=>{var $=d(),b=h($);{var l=(s)=>{var a=XX();V(s,a)},n=(s)=>{var a=d(),W0=h(a);{var K0=(o)=>{a9(o,{class:"avatar",get src(){return X1.avatarURL},loading:(V0)=>{var k0=wX();V(V0,k0)},error:(V0)=>{var k0=WX();V(V0,k0)},$$slots:{loading:!0,error:!0}})},q0=(o)=>{var e=YX();V(o,e)};j(W0,(o)=>{if(X1.loggedIn&&X1.avatarURL)o(K0);else o(q0,!1)},!0)}V(s,a)};j(b,(s)=>{if(!X1.loggedIn||X1.avatarIsLoading)s(l);else s(n,!1)},!0)}V(k,$)};j(q,(k)=>{if(X1.isIncognito)k(Y);else k(U,!1)})}C(F);var x=S(F,2);x.__click=(k)=>k.stopPropagation();var I=O(x),M=O(I);{var A=(k)=>{S8(k,{onclick:w,label:"Incognito mode",title:"Temporarily load threads as a logged-out user",get showCheckmark(){return X1.isIncognito}})};j(M,(k)=>{if(X1.loggedIn)k(A)})}var E=S(M,2);{let k=M0(()=>y0.biohazardsEnabled!==!1);S8(E,{onclick:Z,label:"Show infohazards",title:"Show links to blocked and hidden comments",get showCheckmark(){return W(k)}})}var v=S(E,2);{var T=(k)=>{S8(k,{onclick:G,label:"Log in"})},y=(k)=>{S8(k,{onclick:H,label:"Log out"})};j(v,(k)=>{if(!X1.loggedIn)k(T);else k(y,!1)})}var N=S(v,2),R=O(N);C(N),z1(8),C(I),C(x),g((k)=>{K1(F,1,y6({active:W(Q)}),"svelte-39wlrotalwj0t"),_5(x,`visibility: ${W(Q)?"visible":"hidden"}`),i(R,"href",k)},[m6]),V(z,B),c()}I0(["click"]);var f6,n9;function F6(z){if(f6)document.removeEventListener("scroll",f6);n9?.disconnect(),f6=()=>{if(window.pageYOffset+window.innerHeight>document.body.offsetHeight-500)z(f6)},z(f6),document.addEventListener("scroll",f6),n9=new ResizeObserver(f6),n9.observe(document.body)}hQ();var BX=P('
    Loading...
    ');function o5(z){var J=BX();V(z,J)}var HX=P('
    ');function t9(z,J){_(J,!0);let Q=j0(J,"collapsed",15,!1);function K(){Q(!Q())}var X=HX(),Z=O(X);Z.__click=K;var w=S(Z,2);w.__click=K,C(X),g(()=>{i(w,"alt",Q()?"+":"-"),i(w,"src",`icons/${Q()?"add-square.png":"subtract-square.png"}`)}),V(z,X),c()}I0(["click"]);var UX=P('
    ');function e9(z,J){_(J,!0);let Q=M0(()=>new URL(J.url).hostname);var K=UX(),X=O(K),Z=S(O(X));C(X),C(K),g(()=>{i(K,"href",J.url),u(Z,` View on ${W(Q)??""}`)}),V(z,K),c()}var VX=P('☣️ Load hidden replies…',1),qX=P('Loading...'),FX=P('

    ');function zJ(z,J){_(J,!0);let{post:Q}=r0(),K=f(!1);function X(F){if(F.preventDefault(),y0.biohazardsEnabled===!0)Z();else xK(()=>{Z()})}async function Z(){D(K,!0);try{let q=(await N0.loadHiddenReplies(Q)).map((Y)=>Y&&V6(Y.thread,Q.pageRoot,1,Q.absoluteLevel+1));D(K,!1),J.onLoad(q)}catch(F){D(K,!1),J.onError(F)}}var w=FX(),G=O(w);{var H=(F)=>{var q=VX(),Y=S(h(q));Y.__click=X,g((U)=>i(Y,"href",U),[()=>y5(Q)]),V(F,q)},B=(F)=>{var q=qX();V(F,q)};j(G,(F)=>{if(!W(K))F(H);else F(B,!1)})}C(w),V(z,w),c()}I0(["click"]);var xX=P("Load more replies…"),MX=P('Loading...'),CX=P("

    ");function JJ(z,J){_(J,!0);let{post:Q}=r0(),K=f(!1);async function X(B){B.preventDefault(),D(K,!0);try{let F=await N0.loadThreadByAtURI(Q.uri),q=V6(F.thread,Q.pageRoot,0,Q.absoluteLevel);if(D(K,!1),q instanceof S0)window.subtreeRoot=q,J.onLoad(q);else J.onError(Error("Post is not available"))}catch(F){D(K,!1),J.onError(F)}}var Z=CX(),w=O(Z);{var G=(B)=>{var F=xX();F.__click=X,g((q)=>i(F,"href",q),[()=>y5(Q)]),V(B,F)},H=(B)=>{var F=MX();V(B,F)};j(w,(B)=>{if(!W(K))B(G);else B(H,!1)})}C(Z),V(z,Z),c()}I0(["click"]);class j8{text;facet;constructor(z,J){this.text=z;this.facet=J}get link(){return this.facet?.features.find((z)=>z.$type==="app.bsky.richtext.facet#link")}isLink(){return!!this.link}get mention(){return this.facet?.features.find((z)=>z.$type==="app.bsky.richtext.facet#mention")}isMention(){return!!this.mention}get tag(){return this.facet?.features.find((z)=>z.$type==="app.bsky.richtext.facet#tag")}isTag(){return!!this.tag}}class QJ{unicodeText;facets;constructor(z){if(this.unicodeText=new MK(z.text),this.facets=z.facets,this.facets)this.facets=this.facets.filter(PX).sort(OX)}get text(){return this.unicodeText.toString()}get length(){return this.unicodeText.length}get graphemeLength(){return this.unicodeText.graphemeLength}*segments(){let z=this.facets||[];if(!z.length){yield new j8(this.unicodeText.utf16);return}let J=0,Q=0;do{let K=z[Q];if(JK.index.byteStart){Q++;continue}if(K.index.byteStartz.index.byteStart-J.index.byteStart,PX=(z)=>z.index.byteStart<=z.index.byteEnd,LX=new TextEncoder,IX=new TextDecoder,SX=new Intl.Segmenter,jX=(z)=>{return Array.from(SX.segment(z)).length};class MK{utf16;utf8;_graphemeLen;constructor(z){this.utf16=z,this.utf8=LX.encode(z)}get length(){return this.utf8.byteLength}get graphemeLength(){if(!this._graphemeLen)this._graphemeLen=jX(this.utf16);return this._graphemeLen}slice(z,J){return IX.decode(this.utf8.slice(z,J))}toString(){return this.utf16}}var DX=P(" "),RX=P(" "),AX=P(" "),NX=P("
    "),kX=P(" ",1);function KJ(z,J){_(J,!0);let Q=M0(()=>new QJ({text:J.text,facets:J.facets})),K=M0(()=>W(Q).segments());var X=d(),Z=h(X);A0(Z,17,()=>W(K),O1,(w,G)=>{var H=d(),B=h(H);{var F=(Y)=>{var U=DX(),x=O(U,!0);C(U),g(()=>{i(U,"href",`https://bsky.app/profile/${W(G).mention.did??""}`),u(x,W(G).text)}),V(Y,U)},q=(Y)=>{var U=d(),x=h(U);{var I=(A)=>{var E=d(),v=h(E);{var T=(N)=>{var R=RX(),k=O(R,!0);C(R),g(()=>{i(R,"href",W(G).link.uri),u(k,W(G).text)}),V(N,R)},y=(N)=>{var R=N1();g(()=>u(R,`[${W(G).text??""}](${W(G).link.uri??""})`)),V(N,R)};j(v,(N)=>{if(q8(W(G).link.uri))N(T);else N(y,!1)})}V(A,E)},M=(A)=>{var E=d(),v=h(E);{var T=(N)=>{var R=AX(),k=O(R,!0);C(R),g(($)=>{i(R,"href",$),u(k,W(G).text)},[()=>L8(W(G).tag.tag)]),V(N,R)},y=(N)=>{let R=M0(()=>W(G).text.split(` -`));var k=d(),$=h(k);A0($,17,()=>W(R),O1,(b,l,n)=>{var s=kX(),a=h(s);{var W0=(q0)=>{var o=NX();V(q0,o)};j(a,(q0)=>{if(n>0)q0(W0)})}var K0=S(a,1,!0);g(()=>u(K0,W(l))),V(b,s)}),V(N,k)};j(v,(N)=>{if(W(G).tag)N(T);else N(y,!1)},!0)}V(A,E)};j(x,(A)=>{if(W(G).link)A(I);else A(M,!1)},!0)}V(Y,U)};j(B,(Y)=>{if(W(G).mention)Y(F);else Y(q,!1)})}V(w,H)}),V(z,X),c()}var bX=P('
    '),TX=P('

    ');function Xz(z,J){_(J,!0);let Q="search-results",{post:K}=r0(),X=j0(J,"highlightedMatches",3,void 0),Z=f(void 0);function w(q){let Y=new RegExp(`\\b(${q.join("|")})\\b`,"gi"),U=document.createTreeWalker(W(Z),NodeFilter.SHOW_TEXT),x=[];while(U.nextNode()){let M=U.currentNode;if(!M.textContent)continue;Y.lastIndex=0;for(;;){let A=Y.exec(M.textContent);if(A===null)break;let E=new Range;E.setStart(M,A.index),E.setEnd(M,A.index+A[0].length),x.push(E)}}let I=CSS.highlights.get(Q)||new Highlight;x.forEach((M)=>I.add(M)),CSS.highlights.set(Q,I)}Q1(()=>{if(X()&&X().length>0)return w(X()),()=>{CSS.highlights.delete(Q)};else return});var G=d(),H=h(G);{var B=(q)=>{var Y=bX(),U=O(Y);V9(U,()=>JK(K.originalFediContent)),C(Y),z5(Y,(x)=>D(Z,x),()=>W(Z)),V(q,Y)},F=(q)=>{var Y=TX(),U=O(Y);KJ(U,{get text(){return K.text},get facets(){return K.facets}}),C(Y),z5(Y,(x)=>D(Z,x),()=>W(Z)),V(q,Y)};j(H,(q)=>{if(K.originalFediContent)q(B);else q(F,!1)})}V(z,G),c()}class ZJ{post;placement;constructor(z,J){this.post=z,this.placement=J}get timeFormatForTimestamp(){if(this.placement=="quotes"||this.placement=="feed")return{weekday:"short",day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"numeric"};else if(this.post.isPageRoot||this.placement!="thread")return{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"numeric"};else if(this.post.pageRoot&&!KK(this.post.createdAt,this.post.pageRoot.createdAt))return{day:"numeric",month:"short",hour:"numeric",minute:"numeric"};else return{hour:"numeric",minute:"numeric"}}get formattedTimestamp(){let z=this.timeFormatForTimestamp;return this.post.createdAt.toLocaleString(y0.dateLocale,z)}}var EX=P('');function D8(z,J){_(J,!0);let Q=j0(J,"title",3,"");var K=EX();g((X)=>{i(K,"href",X),i(K,"title",Q())},[()=>y5(J.post)]),V(z,K),c()}var yX=P(''),vX=P('Avatar'),gX=P(''),hX=P(' Mastodon logo',1),mX=P(' '),fX=P('• ',1),$X=P('

    •

    ');function XJ(z,J){_(J,!0);let{post:Q,placement:K}=r0(),X=new ZJ(Q,K),Z=f(void 0);Q1(()=>{if(W(Z))b9.observe(W(Z));return()=>{W(Z)&&b9.unobserve(W(Z))}});var w=$X(),G=O(w);{var H=(E)=>{var v=yX();V(E,v)},B=(E)=>{var v=d(),T=h(v);{var y=(R)=>{var k=vX();z5(k,($)=>D(Z,$),()=>W(Z)),g(()=>i(k,"src",Q.author.avatar)),V(R,k)},N=(R)=>{var k=gX();V(R,k)};j(T,(R)=>{if(Q.author.avatar)R(y);else R(N,!1)},!0)}V(E,v)};j(G,(E)=>{if(Q.muted)E(H);else E(B,!1)})}var F=S(G),q=S(F);{var Y=(E)=>{var v=hX(),T=h(v),y=O(T);C(T),z1(2),g(()=>{i(T,"href",Q.linkToAuthor),u(y,`@${Q.authorFediHandle??""}`)}),V(E,v)},U=(E)=>{var v=mX(),T=O(v,!0);C(v),g(()=>{i(v,"href",Q.linkToAuthor),u(T,Q.hasValidHandle?`@${Q.author.handle}`:"[invalid handle]")}),V(E,v)};j(q,(E)=>{if(Q.isFediPost)E(Y);else E(U,!1)})}var x=S(q,4),I=O(x,!0);C(x);var M=S(x,2);{var A=(E)=>{var v=fX(),T=S(h(v),2);{var y=(R)=>{D8(R,{get post(){return Q},title:"Load thread"})},N=(R)=>{D8(R,{get post(){return Q},title:"Load this subtree"})};j(T,(R)=>{if(["quote","quotes","feed"].includes(K))R(y);else R(N,!1)})}V(E,v)};j(M,(E)=>{if(Q.replyCount>0&&!Q.isPageRoot||["quote","quotes","feed"].includes(K))E(A)})}C(w),g((E)=>{u(F,` ${Q.authorDisplayName??""} `),i(x,"href",Q.linkToPost),i(x,"title",E),u(I,X.formattedTimestamp)},[()=>Q.createdAt.toISOString()]),V(z,w),c()}var uX=P(' '),lX=P('

    ');function wJ(z,J){_(J,!1);let{post:Q}=r0();j9();var K=lX();A0(K,5,()=>Q.tags,O1,(X,Z)=>{var w=uX(),G=O(w);C(w),g((H)=>{i(w,"href",H),u(G,`# ${W(Z)??""}`)},[()=>L8(W(Z))]),V(X,w)}),C(K),V(z,K),c()}var pX=P(' '),dX=P(' '),iX=P(' '),_X=P(' '),cX=P(' Limited replies'),sX=P(''),oX=P('\uD83D\uDEAB Post unavailable'),aX=P('

    ');function WJ(z,J){_(J,!0);let{post:Q,placement:K}=r0(),X=f(C0(Q.liked)),Z=f(C0(Q.likeCount)),w=f(!1);async function G(){try{if(Q.hasViewerInfo)await B();else if(X1.loggedIn)await H();else I8({showClose:!0})}catch($){U6($)}}async function H(){if(await x0.loadPostViewerInfo(Q))if(Q.liked)D(X,!0);else await B();else D(w,!0)}async function B(){if(!W(X)){let $=await x0.likePost(Q);Q.viewerLike=$.uri,D(X,!0),D(Z,W(Z)+1)}else await x0.removeLike(Q.viewerLike),Q.viewerLike=void 0,D(X,!1),D(Z,W(Z)-1)}var F=aX(),q=O(F),Y=O(q);Y.__click=G;var U=S(Y,2),x=O(U,!0);C(U),C(q);var I=S(q,2);{var M=($)=>{var b=pX(),l=S(O(b));C(b),g(()=>u(l,` ${Q.repostCount??""}`)),V($,b)};j(I,($)=>{if(Q.repostCount>0)$(M)})}var A=S(I,2);{var E=($)=>{var b=dX(),l=S(O(b),2),n=O(l,!0);C(l),C(b),g((s,a)=>{i(l,"href",s),u(n,a)},[()=>y5(Q),()=>J7(Q.replyCount,"reply","replies")]),V($,b)};j(A,($)=>{if(Q.replyCount>0&&(K=="quotes"||K=="feed"))$(E)})}var v=S(A,2);{var T=($)=>{var b=d(),l=h(b);{var n=(a)=>{var W0=iX(),K0=S(O(W0),2),q0=O(K0,!0);C(K0),C(W0),g((o,e)=>{i(K0,"href",o),u(q0,e)},[()=>i9(Q.linkToPost),()=>J7(J.quoteCount,"quote")]),V(a,W0)},s=(a)=>{var W0=_X(),K0=S(O(W0));C(W0),g((q0)=>{i(W0,"href",q0),u(K0,` ${J.quoteCount??""}`)},[()=>i9(Q.linkToPost)]),V(a,W0)};j(l,(a)=>{if(K=="quotes"||K=="feed"||Q.isPageRoot)a(n);else a(s,!1)})}V($,b)};j(v,($)=>{if(J.quoteCount&&K!="quote")$(T)})}var y=S(v,2);{var N=($)=>{var b=d(),l=h(b);{var n=(a)=>{var W0=cX();V(a,W0)},s=(a)=>{var W0=d(),K0=h(W0);{var q0=(o)=>{var e=sX();V(o,e)};j(K0,(o)=>{if(K=="quotes")o(q0)},!0)}V(a,W0)};j(l,(a)=>{if(K=="thread")a(n);else a(s,!1)})}V($,b)};j(y,($)=>{if(Q.isRestrictingReplies)$(N)})}var R=S(y,2);{var k=($)=>{var b=oX();V($,b)};j(R,($)=>{if(W(w))$(k)})}C(F),g(()=>{K1(Y,1,`fa-solid fa-heart ${W(X)?"liked":""}`,"svelte-1tsy42z5eauyq"),u(x,W(Z))}),V(z,F),c()}I0(["click"]);var rX=P('
    Show alt
    '),nX=P("

    [Image]

    ",1),tX=P("
    ");function YJ(z,J){_(J,!0);let{post:Q}=r0();function K(Z){if(Z.fullsize)return Z.fullsize;else{let w=Z.image.ref.$link;return`https://cdn.bsky.app/img/feed_fullsize/plain/${Q.author.did}/${w}@jpeg`}}var X=tX();A0(X,21,()=>J.embed.images,O1,(Z,w)=>{var G=nX(),H=h(G),B=S(O(H));z1(),C(H);var F=S(H,2);{var q=(Y)=>{var U=rX(),x=S(O(U));C(U),g(()=>u(x,` ${W(w).alt??""}`)),V(Y,U)};j(F,(Y)=>{if(W(w).alt)Y(q)})}g((Y)=>i(B,"href",Y),[()=>K(W(w))]),V(Z,G)}),C(X),V(z,X),c()}var eX=P('
    ');function GJ(z,J){let Q=f(!1),K=f(!1),X=f(500),Z=f(200);function w(q){let Y=q.target;if(Y.naturalWidth{i(B,"src",W(K)?J.staticURL:J.gifURL),K1(B,1,y6(W(K)?"static":""),"svelte-2dx58m87um1nk"),i(B,"alt",J.alt?`Gif: ${J.alt}`:"Gif animation"),F=_5(B,"",F,{opacity:W(Q)?1:0,"max-width":`${W(X)??""}px`,"max-height":`${W(Z)??""}px`})}),C1("load",B,w),W8(B),V(z,H)}I0(["click"]);var zw=P('

    '),Jw=P('

    '),Qw=P("

    ");function BJ(z,J){_(J,!0);let{post:Q}=r0(),K=f(!1),X=M0(()=>new URL(J.embed.url).hostname),Z=M0(()=>W(X)=="media.tenor.com"),w=M0(()=>W(Z)?G:void 0);function G(U){U.preventDefault(),D(K,!0)}function H(){if(typeof J.embed.thumb=="string")return J.embed.thumb;else return`https://cdn.bsky.app/img/avatar/feed_thumbnail/${Q.author.did}/${J.embed.thumb.ref.$link}@jpeg`}var B=d(),F=h(B);{var q=(U)=>{{let x=M0(H);GJ(U,{get gifURL(){return J.embed.url},get staticURL(){return W(x)},get alt(){return J.embed.title}})}},Y=(U)=>{var x=d(),I=h(x);{var M=(E)=>{var v=Jw();v.__click=function(...l){W(w)?.apply(this,l)};var T=O(v),y=O(T),N=O(y,!0);C(y);var R=S(y,2),k=O(R,!0);C(R);var $=S(R,2);{var b=(l)=>{var n=zw(),s=O(n,!0);C(n),g((a)=>u(s,a),[()=>QK(J.embed.description,300)]),V(l,n)};j($,(l)=>{if(J.embed.description)l(b)})}C(T),C(v),g(()=>{i(v,"href",J.embed.url),u(N,W(X)),u(k,J.embed.title||J.embed.url)}),V(E,v)},A=(E)=>{var v=Qw(),T=O(v);C(v),g(()=>u(T,`[Link: ${J.embed.url??""}]`)),V(E,v)};j(I,(E)=>{if(q8(J.embed.url))E(M);else E(A,!1)})}V(U,x)};j(F,(U)=>{if(W(K))U(q);else U(Y,!1)})}V(z,B),c()}I0(["click"]);var Kw=P('Avatar'),Zw=P('

    '),Xw=P('

    ');function HJ(z,J){_(J,!0);function Q(M){let{repo:A,rkey:E}=l0(M.uri);return`https://bsky.app/profile/${A}/feed/${E}`}var K=Xw(),X=O(K),Z=O(X);{var w=(M)=>{var A=Kw();g(()=>i(A,"src",J.feed.avatar)),V(M,A)};j(Z,(M)=>{if(J.feed.avatar)M(w)})}var G=S(Z,2),H=O(G),B=S(H),F=O(B);C(B),C(G);var q=S(G,2);{var Y=(M)=>{var A=Zw(),E=O(A,!0);C(A),g(()=>u(E,J.feed.description)),V(M,A)};j(q,(M)=>{if(J.feed.description)M(Y)})}var U=S(q,2),x=S(O(U),2),I=O(x,!0);C(x),C(U),C(X),C(K),g((M)=>{i(K,"href",M),u(H,`${J.feed.title??""} `),u(F,`• Feed by @${J.feed.author.handle??""}`),u(I,J.feed.likeCount)},[()=>Q(J.feed)]),V(z,K),c()}var ww=P('

    '),Ww=P('

    ');function UJ(z,J){_(J,!0);function Q(q){let{repo:Y,rkey:U}=l0(q.uri);return`https://bsky.app/starter-pack/${Y}/${U}`}var K=Ww(),X=O(K),Z=O(X),w=O(Z),G=S(w),H=O(G);C(G),C(Z);var B=S(Z,2);{var F=(q)=>{var Y=ww(),U=O(Y,!0);C(Y),g(()=>u(U,J.starterPack.description)),V(q,Y)};j(B,(q)=>{if(J.starterPack.description)q(F)})}C(X),C(K),g((q)=>{i(K,"href",q),u(w,`${J.starterPack.title??""} `),u(H,`• Starter pack by @${J.starterPack.author.handle??""}`)},[()=>Q(J.starterPack)]),V(z,K),c()}var Yw=P('Avatar'),Gw=P('

    '),Bw=P('

    ');function VJ(z,J){_(J,!0);function Q(x){let{repo:I,rkey:M}=l0(x.uri);return`https://bsky.app/profile/${I}/lists/${M}`}function K(x){switch(x.purpose){case"app.bsky.graph.defs#curatelist":return"User list";case"app.bsky.graph.defs#modlist":return"Mute list";default:return"List"}}var X=Bw(),Z=O(X),w=O(Z);{var G=(x)=>{var I=Yw();g(()=>i(I,"src",J.list.avatar)),V(x,I)};j(w,(x)=>{if(J.list.avatar)x(G)})}var H=S(w,2),B=O(H),F=S(B),q=O(F);C(F),C(H);var Y=S(H,2);{var U=(x)=>{var I=Gw(),M=O(I,!0);C(I),g(()=>u(M,J.list.description)),V(x,I)};j(Y,(x)=>{if(J.list.description)x(U)})}C(Z),C(X),g((x,I)=>{i(X,"href",x),u(B,`${J.list.title??""} `),u(q,`• ${I??""} by @${J.list.author.handle??""}`)},[()=>Q(J.list),()=>K(J.list)]),V(z,X),c()}var CK=(z,J=J5)=>{var Q=d(),K=h(Q);{var X=(w)=>{var G=Hw(),H=O(G);$6(H,{get post(){return J()},placement:"quote"}),C(G),V(w,G)},Z=(w)=>{var G=d(),H=h(G);{var B=(q)=>{HJ(q,{get feed(){return J()}})},F=(q)=>{var Y=d(),U=h(Y);{var x=(M)=>{UJ(M,{get starterPack(){return J()}})},I=(M)=>{var A=d(),E=h(A);{var v=(y)=>{VJ(y,{get list(){return J()}})},T=(y)=>{var N=Uw(),R=O(N),k=O(R);C(R),C(N),g(()=>u(k,`[${J().type??""}]`)),V(y,N)};j(E,(y)=>{if(J()instanceof zz)y(v);else y(T,!1)},!0)}V(M,A)};j(U,(M)=>{if(J()instanceof Jz)M(x);else M(I,!1)},!0)}V(q,Y)};j(H,(q)=>{if(J()instanceof e8)q(B);else q(F,!1)},!0)}V(w,G)};j(K,(w)=>{if(J()instanceof h6)w(X);else w(Z,!1)})}V(z,Q)},Hw=P('
    '),Uw=P('

    '),Vw=P('

    Error loading quoted post

    '),qw=P('

    Loading quoted post...

    ');function U7(z,J){_(J,!0);let{post:Q}=r0();async function K(){let{collection:H}=l0(J.record.uri);if(H=="app.bsky.feed.post"){let B=await N0.loadPostIfExists(J.record.uri);if(B)return new S0(B);else return new O5(Q.data)}else{let F=(await N0.loadPostIfExists(Q.uri).then((q)=>q&&new S0(q)))?.embed;if(F instanceof x8||F instanceof M8)return F.record;else return new O5(J.record)}}var X=d(),Z=h(X);{var w=(H)=>{var B=d(),F=h(B);T6(F,K,(q)=>{var Y=qw();V(q,Y)},(q,Y)=>{CK(q,()=>W(Y))},(q)=>{var Y=Vw();V(q,Y)}),V(H,B)},G=(H)=>{CK(H,()=>J.record)};j(Z,(H)=>{if(J.record.constructor===i1&&!J.record.type)H(w);else H(G,!1)})}V(z,X),c()}var Fw=P('
    Show alt
    '),xw=P("");function qJ(z,J){_(J,!0);let{post:Q}=r0();function K(B){if(B instanceof O8)return B.playlistURL;else{let F=B.video.ref.$link;return`https://video.bsky.app/watch/${Q.author.did}/${F}/playlist.m3u8`}}var X=xw(),Z=O(X),w=S(O(Z));z1(),C(Z);var G=S(Z,2);{var H=(B)=>{var F=Fw(),q=S(O(F));C(F),g(()=>u(q,` ${J.embed.alt??""}`)),V(B,F)};j(G,(B)=>{if(J.embed.alt)B(H)})}C(X),g((B)=>i(w,"href",B),[()=>K(J.embed)]),V(z,X),c()}var Mw=P("
    "),Cw=P("

    "),Ow=P('
    ');function u6(z,J){_(J,!0);var Q=Ow(),K=O(Q);{var X=(w)=>{U7(w,{get record(){return J.embed.record}})},Z=(w)=>{var G=d(),H=h(G);{var B=(q)=>{var Y=Mw(),U=O(Y);u6(U,{get embed(){return J.embed.media}});var x=S(U,2);U7(x,{get record(){return J.embed.record}}),C(Y),V(q,Y)},F=(q)=>{var Y=d(),U=h(Y);{var x=(M)=>{YJ(M,{get embed(){return J.embed}})},I=(M)=>{var A=d(),E=h(A);{var v=(y)=>{BJ(y,{get embed(){return J.embed}})},T=(y)=>{var N=d(),R=h(N);{var k=(b)=>{qJ(b,{get embed(){return J.embed}})},$=(b)=>{var l=Cw(),n=O(l);C(l),g(()=>u(n,`[${J.embed.type??""}]`)),V(b,l)};j(R,(b)=>{if(J.embed instanceof Z7||J.embed instanceof O8)b(k);else b($,!1)},!0)}V(y,N)};j(E,(y)=>{if(J.embed instanceof K7||J.embed instanceof C8)y(v);else y(T,!1)},!0)}V(M,A)};j(U,(M)=>{if(J.embed instanceof Q7||J.embed instanceof W7)M(x);else M(I,!1)},!0)}V(q,Y)};j(H,(q)=>{if(J.embed instanceof w7||J.embed instanceof M8)q(B);else q(F,!1)},!0)}V(w,G)};j(K,(w)=>{if(J.embed instanceof X7||J.embed instanceof x8)w(X);else w(Z,!1)})}C(Q),V(z,Q),c()}var Pw=P(" "),Lw=P("See parent post"),Iw=P("See parent post"),Sw=P('

    ');function wz(z,J){_(J,!0);let Q=M0(()=>l0(J.uri)),K=M0(()=>W(Q).repo),X=M0(()=>W(Q).rkey);var Z=Sw(),w=S(O(Z),2);T6(w,()=>N0.fetchHandleForDid(W(K)),(G)=>{var H=Iw();g((B)=>i(H,"href",B),[()=>G5(W(K),W(X))]),V(G,H)},(G,H)=>{var B=Pw(),F=O(B);C(B),g((q)=>{i(B,"href",q),u(F,`See parent post (@${W(H)??""})`)},[()=>G5(W(H),W(X))]),V(G,B)},(G)=>{var H=Lw();g((B)=>i(H,"href",B),[()=>G5(W(K),W(X))]),V(G,H)}),C(Z),V(z,Z),c()}var jw=P(" ",1);function FJ(z,J){_(J,!0),xJ({post:J.post,placement:J.placement});var Q=jw(),K=h(Q);{var X=(H)=>{wz(H,{get uri(){return J.post.parentReference.uri}})};j(K,(H)=>{if(J.post.isPageRoot&&J.post.parentReference)H(X)})}var Z=S(K,2);Xz(Z,{});var w=S(Z,2);{var G=(H)=>{u6(H,{get embed(){return J.post.embed}})};j(w,(H)=>{if(J.post.embed)H(G)})}V(z,Q),c()}var Dw=P('( ',1),Rw=P('( )',1);function R8(z,J){_(J,!0);let Q=j0(J,"status",3,void 0),K=f(void 0),X=M0(()=>W(K)?`@${W(K)}`:"see author");Q1(()=>{let B=l0(J.post.uri).repo;N0.fetchHandleForDid(B).then((F)=>{D(K,F,!0)})});var Z=d(),w=h(Z);{var G=(B)=>{var F=Dw(),q=S(h(F)),Y=O(q,!0);C(q);var U=S(q);g(()=>{i(q,"href",J.post.didLinkToAuthor),u(Y,W(X)),u(U,`, ${Q()??""})`)}),V(B,F)},H=(B)=>{var F=Rw(),q=S(h(F)),Y=O(q,!0);C(q),z1(),g(()=>{i(q,"href",J.post.didLinkToAuthor),u(Y,W(X))}),V(B,F)};j(w,(B)=>{if(Q())B(G);else B(H,!1)})}V(z,Z),c()}var Aw=P('

    Deleted post

    ');function Wz(z,J){var Q=Aw(),K=S(O(Q),4);R8(K,{get post(){return J.post}}),C(Q),V(z,Q)}var Nw=P('Load post…'),kw=P('

    '),bw=P('

    ',1),Tw=P('• ',1),Ew=P('

    ',1);function A8(z,J){_(J,!0);let Q=M0(()=>y0.biohazardsEnabled!==!1),K=f(!1),X=f(!1),Z=f(void 0);async function w(U){U.preventDefault(),D(K,!0);let x=await N0.reloadBlockedPost(J.post.uri);if(x)D(Z,x,!0);else D(X,!0)}function G(U){let x=U.author.viewer;if(x)return!(x.blockedBy||x.blocking);else return!0}function H(){if(J.post instanceof P8)return;else if(J.post.blockedByUser)return"has blocked you";else if(J.post.blocksUser)return"you've blocked them";else return}var B=d(),F=h(B);{var q=(U)=>{var x=bw(),I=h(x),M=S(O(I),2),A=O(M,!0);C(M);var E=S(M,2);{var v=(N)=>{{let R=M0(H);R8(N,{get post(){return J.post},get status(){return W(R)}})}};j(E,(N)=>{if(W(Q))N(v)})}C(I);var T=S(I,2);{var y=(N)=>{var R=kw(),k=O(R);{var $=(l)=>{var n=Nw();n.__click=w,V(l,n)},b=(l)=>{var n=N1(" ");V(l,n)};j(k,(l)=>{if(!W(K))l($);else l(b,!1)})}C(R),V(N,R)};j(T,(N)=>{if(W(Q))N(y)})}g(()=>u(A,J.reason)),V(U,x)},Y=(U)=>{var x=d(),I=h(x);{var M=(E)=>{var v=Ew(),T=h(v),y=S(O(T),2),N=O(y,!0);C(y);var R=S(y,2);{let l=M0(H);R8(R,{get post(){return J.post},get status(){return W(l)}})}var k=S(R,2);{var $=(l)=>{var n=Tw(),s=S(h(n),2);D8(s,{get post(){return W(Z)},title:"Load thread"}),V(l,n)};j(k,(l)=>{if(G(W(Z)))l($)})}C(T);var b=S(T,2);FJ(b,{get post(){return W(Z)},get placement(){return J.placement}}),g(()=>u(N,J.reason)),V(E,v)},A=(E)=>{{let v=M0(()=>new O5(J.post.data));Wz(E,{get post(){return W(v)}})}};j(I,(E)=>{if(W(Z))E(M);else E(A,!1)},!0)}V(U,x)};j(F,(U)=>{if(!W(X)&&!W(Z))U(q);else U(Y,!1)})}V(z,B),c()}I0(["click"]);var yw=P("
    ");function $6(z,J){var Q=d(),K=h(Q);{var X=(w)=>{L1(w,{get post(){return J.post},get placement(){return J.placement}})},Z=(w)=>{var G=yw(),H=O(G);{var B=(q)=>{A8(q,{get post(){return J.post},get placement(){return J.placement},reason:"Blocked post"})},F=(q)=>{var Y=d(),U=h(Y);{var x=(M)=>{A8(M,{get post(){return J.post},get placement(){return J.placement},reason:"Hidden quote"})},I=(M)=>{Wz(M,{get post(){return J.post}})};j(U,(M)=>{if(J.post instanceof P8)M(x);else M(I,!1)},!0)}V(q,Y)};j(H,(q)=>{if(J.post instanceof E5)q(B);else q(F,!1)})}C(G),g(()=>K1(G,1,`post post-${J.placement??""} blocked`,"svelte-15n9djnirzicp")),V(w,G)};j(K,(w)=>{if(J.post instanceof S0)w(X);else w(Z,!1)})}V(z,Q)}var[r0,xJ]=g7(),vw=P(" ",1),gw=P('
    '),hw=P('

    (likely taken down by moderation)

    '),mw=P('
    ');function L1(z,J){_(J,!0);let Q=(o)=>{var e=vw(),P0=h(e);Xz(P0,{get highlightedMatches(){return X()}});var V0=S(P0,2);{var k0=(G0)=>{wJ(G0,{})};j(V0,(G0)=>{if(K().tags)G0(k0)})}var Y0=S(V0,2);{var z0=(G0)=>{u6(G0,{get embed(){return K().embed}})};j(Y0,(G0)=>{if(K().embed&&U(K().embed))G0(z0)})}var t=S(Y0,2);{var B0=(G0)=>{e9(G0,{get url(){return K().originalFediURL}})};j(t,(G0)=>{if(K().originalFediURL&&q8(K().originalFediURL))G0(B0)})}var D0=S(t,2);{var H0=(G0)=>{WJ(G0,{get quoteCount(){return W(F)}})};j(D0,(G0)=>{if(K().likeCount!==void 0||K().repostCount!==void 0)G0(H0)})}V(o,e)},K=j0(J,"post",7),X=j0(J,"highlightedMatches",3,void 0),Z=c5(J,["$$slots","$$events","$$legacy","post","placement","highlightedMatches"]),w=f(!1),G=f(C0(K().replies)),H=f(!1),B=f(void 0);xJ({post:K(),placement:J.placement});let F=f(C0(K().quoteCount));function q(o){D(F,o,!0)}function Y(o){if(o instanceof S0)return!0;else if(o instanceof E5)return y0.biohazardsEnabled!==!1;else return!1}function U(o){if(K().originalFediURL){if(o instanceof C8&&o.title?.startsWith("Original post on "))return!1}return!0}function x(o){K().updateDataFromPost(o),D(G,K().replies,!0)}function I(o){let e=o.filter((P0)=>P0!==null);if(W(G).push(...e),K().replies=W(G),e.length===o.length&&e.length>0)D(B,void 0);else D(B,o.length-e.length);D(H,!0)}function M(o){U6(o)}var A={setQuoteCount:q},E=mw();let v;var T=O(E);XJ(T,{});var y=S(T,2);{var N=(o)=>{t9(o,{get collapsed(){return W(w)},set collapsed(e){D(w,e,!0)}})};j(y,(o)=>{if(J.placement=="thread"&&!K().isPageRoot)o(N)})}var R=S(y,2),k=O(R);{var $=(o)=>{var e=gw(),P0=O(e),V0=O(P0,!0);C(P0);var k0=S(P0,2);Q(k0),C(e),g(()=>u(V0,K().muteList?`Muted (${K().muteList})`:"Muted - click to show")),V(o,e)},b=(o)=>{Q(o)};j(k,(o)=>{if(K().muted)o($);else o(b,!1)})}var l=S(k,2);{var n=(o)=>{L1(o,{get post(){return W(G)[0]},placement:"thread",class:"flat"})},s=(o)=>{var e=d(),P0=h(e);A0(P0,17,()=>W(G),(V0)=>V0.uri,(V0,k0)=>{var Y0=d(),z0=h(Y0);{var t=(B0)=>{$6(B0,{get post(){return W(k0)},placement:"thread"})};j(z0,(B0)=>{if(Y(W(k0)))B0(t)})}V(V0,Y0)}),V(o,e)};j(l,(o)=>{if(K().replyCount==1&&W(G)[0]instanceof S0&&W(G)[0].author.did==K().author.did)o(n);else o(s,!1)})}var a=S(l,2);{var W0=(o)=>{var e=d(),P0=h(e);H9(P0,()=>W(G),(V0)=>{var k0=d(),Y0=h(k0);{var z0=(B0)=>{JJ(B0,{onLoad:x,onError:M})},t=(B0)=>{var D0=d(),H0=h(D0);{var G0=(n0)=>{zJ(n0,{onLoad:I,onError:M})};j(H0,(n0)=>{if(K().hasHiddenReplies&&y0.biohazardsEnabled!==!1)n0(G0)},!0)}V(B0,D0)};j(Y0,(B0)=>{if(K().hasMoreReplies)B0(z0);else B0(t,!1)})}V(V0,k0)}),V(o,e)};j(a,(o)=>{if(J.placement=="thread"&&!W(H))o(W0)})}var K0=S(a,2);{var q0=(o)=>{var e=hw(),P0=S(O(e),2);{var V0=(Y0)=>{var z0=N1();g(()=>u(z0,`${W(B)??""} replies are missing`)),V(Y0,z0)},k0=(Y0)=>{var z0=d(),t=h(z0);{var B0=(H0)=>{var G0=N1("1 reply is missing");V(H0,G0)},D0=(H0)=>{var G0=N1("Some replies are missing");V(H0,G0)};j(t,(H0)=>{if(W(B)==1)H0(B0);else H0(D0,!1)},!0)}V(Y0,z0)};j(P0,(Y0)=>{if(W(B)>1)Y0(V0);else Y0(k0,!1)})}z1(),C(e),V(o,e)};j(K0,(o)=>{if(W(B)!==void 0)o(q0)})}return C(R),C(E),g(()=>v=K1(E,1,`post post-${J.placement??""} ${(J.class||"")??""}`,"svelte-2k39y5eft77zk",v,{muted:K().muted,collapsed:W(w)})),V(z,E),c(A)}var fw=P('

    ');function MJ(z,J){_(J,!0);let Q=j0(J,"hashtag",7);Q(Q().replace(/^\#/,""));let K=C0([]),X=f(!1),Z=f(!1),w=!1,G=!1,H;F6(async()=>{if(w||G)return;w=!0;try{let U=await N0.getHashtagFeed(Q(),H),x=U.posts.map((I)=>new S0(I));if(D(X,!0),K.push(...x),w=!1,H=U.cursor,!H||K.length==0)G=!0}catch(U){console.log(U),w=!1,D(Z,!0)}});var B=d();E6("xlrj1v",(U)=>{u8(()=>{W6.title=`#${Q()??""} - Skythread`})});var F=h(B);{var q=(U)=>{var x=fw(),I=O(x),M=O(I),A=O(M);{var E=(y)=>{var N=N1();g(()=>u(N,`Posts tagged: #${Q()??""}`)),V(y,N)},v=(y)=>{var N=N1();g(()=>u(N,`No posts tagged #${Q()??""}.`)),V(y,N)};j(A,(y)=>{if(K.length>0)y(E);else y(v,!1)})}C(M),C(I);var T=S(I,2);A0(T,17,()=>K,(y)=>y.uri,(y,N)=>{L1(y,{get post(){return W(N)},placement:"feed"})}),C(x),V(U,x)},Y=(U)=>{var x=d(),I=h(x);{var M=(A)=>{o5(A,{})};j(I,(A)=>{if(!W(Z))A(M)},!0)}V(U,x)};j(F,(U)=>{if(W(X))U(q);else U(Y,!1)})}V(z,B),c()}var $w=P('');function V7(z,J){_(J,!0);let Q=f(""),K;Q1(()=>{K.focus()});function X(H){H.preventDefault();let B=W(Q).trim();if(!B)return;if(B.startsWith("at://")){let F=new URL(m6());F.searchParams.set("q",B),location.assign(F.toString())}else if(B.match(/^#?((\p{Letter}|\p{Number})+)$/u)){let F=B.replace(/^#/,"");location.assign(L8(F))}else try{let{user:F,post:q}=Qz(B);location.assign(G5(F,q))}catch(F){console.log(F),alert(F.message||"This is not a valid URL or hashtag")}}var Z=$w(),w=O(Z),G=S(O(w));p0(G),z5(G,(H)=>K=H,()=>K),C(w),C(Z),C1("submit",w,X),P1(G,()=>W(Q),(H)=>D(Q,H)),V(z,Z),c()}var uw=P('Avatar '),lw=P('
    ');function q7(z,J){var Q=lw(),K=O(Q),X=O(K),Z=O(X),w=O(Z,!0);C(Z),C(X),C(K);var G=S(K);A0(G,21,()=>J.users,O1,(H,B,F)=>{var q=uw(),Y=O(q);Y.textContent=F+1;var U=S(Y),x=O(U),I=S(x,2),M=O(I,!0);C(I),C(U);var A=S(U),E=O(A,!0);C(A),C(q),g(()=>{i(x,"src",W(B).avatar),i(I,"href",`https://bsky.app/profile/${W(B).handle??""}`),u(M,W(B).handle),u(E,W(B).count)}),V(H,q)}),C(G),C(Q),g(()=>{K1(Q,1,`scan-result ${J.cssClass??""}`,"svelte-3rl6pbqxjh5is"),u(w,J.header)}),V(z,Q)}class CJ{scanStartTime;appView;progressPosts;progressLikeRecords;progressPostLikes;onProgress;abortController;constructor(){this.appView=new _1("public.api.bsky.app"),this.progressPosts=0,this.progressLikeRecords=0,this.progressPostLikes=0}async findLikes(z,J){this.onProgress=J,this.resetProgress(),this.scanStartTime=new Date().getTime(),this.abortController=new AbortController;let Q=this.fetchGivenLikes(z),K=await this.fetchReceivedLikes(z),X=this.sumUpReceivedLikes(K),Z=this.getTopEntries(X),w=await Q,G=this.sumUpGivenLikes(w),H=this.getTopEntries(G),B=await this.appView.getRequest("app.bsky.actor.getProfiles",{actors:H.map((F)=>F.did)},{abortSignal:this.abortController.signal});for(let F of B.profiles){let q=H.find((Y)=>Y.did==F.did);q.handle=F.handle,q.avatar=F.avatar}return this.scanStartTime=void 0,{givenLikes:H,receivedLikes:Z}}async fetchGivenLikes(z){let J=this.scanStartTime;return await x0.fetchAll("com.atproto.repo.listRecords",{params:{repo:x0.user.did,collection:"app.bsky.feed.like",limit:100},field:"records",breakWhen:(Q)=>Date.parse(Q.value.createdAt){let K=Q.at(-1);if(!K)return;let X=Date.parse(K.value.createdAt),Z=(J-X)/86400/1000;this.updateProgress({likeRecords:Math.min(1,Z/z)})},abortSignal:this.abortController.signal})}async fetchReceivedLikes(z){let J=this.scanStartTime,K=(await this.appView.loadUserTimeline(x0.user.did,z,{filter:"posts_with_replies",onPageLoad:(Z)=>{let w=Z.at(-1);if(!w)return;let G=d1(w),H=(J-G)/86400/1000;this.updateProgress({posts:Math.min(1,H/z)})},abortSignal:this.abortController.signal})).filter((Z)=>!Z.reason&&Z.post.likeCount>0),X=[];for(let Z=0;Z{return this.appView.fetchAll("app.bsky.feed.getLikes",{params:{uri:B.post.uri,limit:100},field:"likes",abortSignal:this.abortController.signal})}),H=await Promise.all(G);X=X.concat(H)}return this.updateProgress({postLikes:1}),X.flat()}sumUpReceivedLikes(z){let J={};for(let Q of z){let K=Q.actor.handle;if(!J[K])J[K]={handle:K,count:0,avatar:Q.actor.avatar};J[K].count+=1}return J}sumUpGivenLikes(z){let J={};for(let Q of z){let K=l0(Q.value.subject.uri).repo;if(!J[K])J[K]={did:K,count:0};J[K].count+=1}return J}getTopEntries(z){return Object.entries(z).sort(this.sortResults).map((J)=>J[1]).slice(0,25)}resetProgress(){this.progressPosts=0,this.progressLikeRecords=0,this.progressPostLikes=0,this.onProgress?.(0)}updateProgress(z){if(z.posts)this.progressPosts=z.posts;if(z.likeRecords)this.progressLikeRecords=z.likeRecords;if(z.postLikes)this.progressPostLikes=z.postLikes;let J=0.1*this.progressPosts+0.65*this.progressLikeRecords+0.25*this.progressPostLikes;this.onProgress?.(J)}sortResults(z,J){if(z[1].countJ[1].count)return-1;else return 0}abortScan(){this.scanStartTime=void 0,this.onProgress=void 0,this.abortController?.abort(),delete this.abortController}}var pw=P(''),dw=P(" ",1),iw=P('

    Like statistics

    Time range:

    ');function OJ(z,J){_(J,!0);let Q=f(7),K=f(void 0),X=M0(()=>W(K)!==void 0),Z=f(void 0),w=f(void 0),G=new CJ;async function H(y){y.preventDefault();try{if(!W(X)){D(Z,void 0),D(w,void 0);let N=await G.findLikes(W(Q),(R)=>{D(K,R,!0)});D(Z,N.givenLikes,!0),D(w,N.receivedLikes,!0),D(K,void 0)}else G.abortScan(),D(K,void 0)}catch(N){if(N.name!=="AbortError")throw N}}var B=iw(),F=S(O(B),2),q=O(F),Y=S(O(q));p0(Y);var U=S(Y,2),x=O(U,!0);C(U),C(q);var I=S(q,2),M=O(I);p0(M);var A=S(M,2);{var E=(y)=>{var N=pw();g(()=>W5(N,W(K))),V(y,N)};j(A,(y)=>{if(W(X))y(E)})}C(I),C(F);var v=S(F,2);{var T=(y)=>{var N=dw(),R=h(N);q7(R,{cssClass:"given-likes",header:"❤️ Likes from you:",get users(){return W(Z)}});var k=S(R,2);q7(k,{cssClass:"received-likes",header:"\uD83D\uDC9B Likes on your posts:",get users(){return W(w)}}),V(y,N)};j(v,(y)=>{if(W(Z)&&W(w))y(T)})}C(B),g((y)=>{u(x,y),W5(M,W(X)?"Cancel":"Start scan")},[()=>v6(W(Q))]),C1("submit",F,H),P1(Y,()=>W(Q),(y)=>D(Q,y)),V(z,B),c()}var _w="did:web:lycan.feeds.blue#lycan";class Yz{lycanAddress;constructor(z){this.lycanAddress=z??_w}get proxyHeaders(){return{"atproto-proxy":this.lycanAddress}}async getImportStatus(){return await x0.getRequest("blue.feeds.lycan.getImportStatus",null,{headers:this.proxyHeaders})}async startImport(){await x0.postRequest("blue.feeds.lycan.startImport",null,{headers:this.proxyHeaders})}async makeQuery(z,J,Q){let K={collection:z,query:J};if(Q)K.cursor=Q;return await x0.getRequest("blue.feeds.lycan.searchPosts",K,{headers:this.proxyHeaders})}searchPosts(z,J,Q){let K=!1,X=!1,Z;F6(async()=>{if(K||X)return;K=!0;let w=await this.makeQuery(z,J,Z),H=(await x0.loadPosts(w.posts)).map((B)=>new S0(B));if(K=!1,Q.onPostsLoaded({posts:H,terms:w.terms}),Z=w.cursor,!Z)X=!0,Q.onFinish?.()})}}class F7 extends Yz{localLycan;constructor(z){super();this.localLycan=new _1(z)}async getImportStatus(){return await this.localLycan.getRequest("blue.feeds.lycan.getImportStatus",{user:x0.user.did})}async startImport(){await this.localLycan.postRequest("blue.feeds.lycan.startImport",{user:x0.user.did})}async makeQuery(z,J,Q){let K={collection:z,query:J,user:x0.user.did};if(Q)K.cursor=Q;return await this.localLycan.getRequest("blue.feeds.lycan.searchPosts",K)}}var cw=P('
    ');function Gz(z,J){var Q=cw(),K=O(Q);G6(K,()=>J.children),C(Q),V(z,Q)}var sw=P(' ',1),ow=P(`

    Data not imported yet

    In order to search within your likes and bookmarks, the posts you've liked or saved need to be imported into a database. +`+JSON.stringify(J));this.code=z,this.json=J}}class T4 extends Error{}class N5 extends Error{}class m6{host;config;user;sendAuthHeaders;autoManageTokens;constructor(z,J,Q){if(this.host=z,this.config=J||null,this.user=J?.user||null,this.sendAuthHeaders=!!this.user,this.autoManageTokens=!!this.user,Q)Object.assign(this,Q)}get baseURL(){if(this.host)return(this.host.includes("://")?this.host:`https://${this.host}`)+"/xrpc";else throw new T4("Hostname not set")}get isLoggedIn(){return!!(this.user&&this.user.accessToken&&this.user.refreshToken&&this.user.did&&this.user.pdsEndpoint)}async getRequest(z,J,Q={}){let K=new URL(`${this.baseURL}/${z}`),Z=Q&&"auth"in Q?Q.auth:this.sendAuthHeaders;if(this.autoManageTokens&&Z===!0)await this.checkAccess();if(J)for(let Y in J)if(J[Y]instanceof Array)J[Y].forEach((G)=>K.searchParams.append(Y,G));else K.searchParams.append(Y,J[Y]);let X=this.authHeaders(Z);if(Q.headers)Object.assign(X,Q.headers);let w=await fetch(K,{headers:X,signal:Q.abortSignal??null});return await this.parseResponse(w)}async postRequest(z,J,Q={}){let K=`${this.baseURL}/${z}`,Z=Q&&"auth"in Q?Q.auth:this.sendAuthHeaders;if(this.autoManageTokens&&Z===!0)await this.checkAccess();let X=this.authHeaders(Z),w={method:"POST"};if(J)w.body=JSON.stringify(J),X["Content-Type"]="application/json";if(Q.headers)Object.assign(X,Q.headers);if(Q.abortSignal)w.signal=Q.abortSignal;w.headers=X;let Y=await fetch(K,w);return await this.parseResponse(Y)}async fetchAll(z,J){if(!J||!J.field)throw new T4("'field' option is required");let Q=[],K=J.params??{},Z=this.sliceOptions(J,["auth","headers","abortSignal"]);for(;;){let X=await this.getRequest(z,K,Z),w=X[J.field],Y=X.cursor;if(J.breakWhen){let G=J.breakWhen;if(w.some((B)=>G(B))){if(!J.keepLastPage)w=w.filter((B)=>!G(B));Y=null}}if(Q=Q.concat(w),K.cursor=Y,J.onPageLoad?.(w),!Y)break}return Q}authHeaders(z){if(typeof z=="string")return{Authorization:`Bearer ${z}`};else if(z)if(this.user?.accessToken)return{Authorization:`Bearer ${this.user.accessToken}`};else throw new N5("Can't send auth headers, access token is missing");else return{}}sliceOptions(z,J){let Q={};for(let K of J)if(K in z)Q[K]=z[K];return Q}tokenExpirationTimestamp(z){let J=z.split(".");if(J.length!=3)throw new N5("Invalid access token format");let K=JSON.parse(atob(J[1])).exp;if(!(K&&typeof K=="number"&&K>0))throw new N5("Invalid token expiry data");return K*1000}isInvalidToken(z,J){return z.status==400&&!!J&&["InvalidToken","ExpiredToken"].includes(J.error)}async parseResponse(z){let J=await z.text(),Q=J.trim().length>0?JSON.parse(J):void 0;if(z.status>=200&&z.status<300)return Q;else throw new B5(z.status,Q)}requireUserConfig(){if(!this.config||!this.config.user)throw new N5("Missing user configuration object")}requireLoggedInUser(){if(this.requireUserConfig(),!this.isLoggedIn)throw new N5("Not logged in")}async checkAccess(){if(this.requireLoggedInUser(),this.tokenExpirationTimestamp(this.user.accessToken)Q.id=="#atproto_pds");this.host=J.serviceEndpoint.replace("https://","")}this.user.pdsEndpoint=this.host,this.config.save()}resetTokens(){this.requireUserConfig(),delete this.user.accessToken,delete this.user.refreshToken,delete this.user.did,delete this.user.pdsEndpoint,this.config.save()}}class WZ{repo;collection;rkey;constructor(z){if(!z.startsWith("at://"))throw new U5(`Not an at:// URI: ${z}`);let J=z.split("/");if(J.length!=5)throw new U5(`Invalid at:// URI: ${z}`);this.repo=J[2],this.collection=J[3],this.rkey=J[4]}}function d0(z){return new WZ(z)}function k3(){return new IntersectionObserver((z,J)=>{for(let Q of z)if(Q.isIntersecting){let K=Q.target;K.removeAttribute("lazy"),J.unobserve(K)}},{rootMargin:"1000px 0px"})}var E4=k3();/*! @license DOMPurify 3.4.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.11/LICENSE */function YZ(z,J){(J==null||J>z.length)&&(J=z.length);for(var Q=0,K=Array(J);Q2?K-2:0),X=2;X1?Q-1:0),Z=1;Z"u"?null:V1(BigInt.prototype.toString),xZ=typeof Symbol>"u"?null:V1(Symbol.prototype.toString),N1=V1(Object.prototype.hasOwnProperty),E9=V1(Object.prototype.toString),f1=V1(RegExp.prototype.test),Z8=p3(TypeError);function V1(z){return function(J){if(J instanceof RegExp)J.lastIndex=0;for(var Q=arguments.length,K=Array(Q>1?Q-1:0),Z=1;Z2&&arguments[2]!==void 0?arguments[2]:y9;if(GZ)GZ(z,null);if(!T5(J))return z;let K=J.length;while(K--){let Z=J[K];if(typeof Z==="string"){let X=Q(Z);if(X!==Z){if(!v3(J))J[K]=X;Z=X}}z[Z]=!0}return z}function d3(z){for(let J=0;J/g),r3=$1(/\${[\w\W]*/g),n3=$1(/^data-[\-\w.\u00B7-\uFFFF]+$/),t3=$1(/^aria-[\-\w]+$/),SZ=$1(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),e3=$1(/^(?:\w+script|data):/i),z2=$1(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),J2=$1(/^html$/i),Q2=$1(/^[a-z][.\w]*(-[.\w]+)+$/i),CZ=$1(/<[/\w!]/g),K2=$1(/<[/\w]/g),Z2=$1(/<\/no(script|embed|frames)/i),X2=$1(/\/>/i),o6={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},w2=function(){return typeof window>"u"?null:window},W2=function(J,Q){if(typeof J!=="object"||typeof J.createPolicy!=="function")return null;let K=null,Z="data-tt-policy-suffix";if(Q&&Q.hasAttribute(Z))K=Q.getAttribute(Z);let X="dompurify"+(K?"#"+K:"");try{return J.createPolicy(X,{createHTML(w){return w},createScriptURL(w){return w}})}catch(w){return console.warn("TrustedTypes policy "+X+" could not be created."),null}},PZ=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},b5=function(J,Q,K,Z){return N1(J,Q)&&T5(J[Q])?b0(Z.base?e1(Z.base):{},J[Q],Z.transform):K};function IZ(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:w2(),J=(a)=>IZ(a);if(J.version="3.4.11",J.removed=[],!z||!z.document||z.document.nodeType!==o6.document||!z.Element)return J.isSupported=!1,J;let Q=z.document,K=Q,Z=K.currentScript;z.DocumentFragment;let{HTMLTemplateElement:X,Node:w,Element:Y,NodeFilter:G,NamedNodeMap:B}=z;B===void 0&&(z.NamedNodeMap||z.MozNamedAttrMap),z.HTMLFormElement;let{DOMParser:V,trustedTypes:H}=z,U=Y.prototype,x=a6(U,"cloneNode"),q=a6(U,"remove"),C=a6(U,"nextSibling"),P=a6(U,"childNodes"),I=a6(U,"parentNode"),R=a6(U,"shadowRoot"),v=a6(U,"attributes"),f=w&&w.prototype?a6(w.prototype,"nodeType"):null,b=w&&w.prototype?a6(w.prototype,"nodeName"):null;if(typeof X==="function"){let a=Q.createElement("template");if(a.content&&a.content.ownerDocument)Q=a.content.ownerDocument}let E,N="",h,l=!1,k=0,i=function(){if(k>0)throw Z8('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},t=function(M){i(),k++;try{return E.createHTML(M)}finally{k--}},$=function(M){i(),k++;try{return E.createScriptURL(M)}finally{k--}},n=function(){if(!l)h=W2(H,Z),l=!0;return h},K0=Q,Z0=K0.implementation,C0=K0.createNodeIterator,L1=K0.createDocumentFragment,P0=K0.getElementsByTagName,t0=K.importNode,s=PZ();J.isSupported=typeof jZ==="function"&&typeof I==="function"&&Z0&&Z0.createHTMLDocument!==void 0;let j0=o3,y0=a3,Q0=r3,Y0=n3,U0=t3,R0=e3,V0=z2,M0=Q2,e0=SZ,A0=null,t6=b0({},[...qZ,...v4,...g4,...h4,...FZ]),L0=null,_1=b0({},[...MZ,...m4,...OZ,...uz]),v0=Object.seal($8(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),g0=null,z6=null,b1=Object.seal($8(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),L6=!0,Z9=!0,s9=!1,o9=!0,V5=!1,X9=!0,m5=!1,Z7=!1,X7=null,w7=null,W7=!1,V8=!1,a9=!1,r9=!1,uJ=!0,$J=!1,lJ="user-content-",Y7=!0,G7=!1,x8={},u6=null,B7=b0({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),pJ=null,dJ=b0({},["audio","video","img","source","image","track"]),U7=null,iJ=b0({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),n9="http://www.w3.org/1998/Math/MathML",t9="http://www.w3.org/2000/svg",$6="http://www.w3.org/1999/xhtml",q8=$6,H7=!1,V7=null,KX=b0({},[n9,t9,$6],y4),_J=u1(["mi","mo","mn","ms","mtext"]),x7=b0({},_J),cJ=u1(["annotation-xml"]),q7=b0({},cJ),ZX=b0({},["title","style","font","a","script"]),w9=null,XX=["application/xhtml+xml","text/html"],wX="text/html",z1=null,F8=null,WX=Q.createElement("form"),sJ=function(M){return M instanceof RegExp||M instanceof Function},F7=function(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(F8&&F8===M)return;if(!M||typeof M!=="object")M={};M=e1(M),w9=XX.indexOf(M.PARSER_MEDIA_TYPE)===-1?wX:M.PARSER_MEDIA_TYPE,z1=w9==="application/xhtml+xml"?y4:y9,A0=b5(M,"ALLOWED_TAGS",t6,{transform:z1}),L0=b5(M,"ALLOWED_ATTR",_1,{transform:z1}),V7=b5(M,"ALLOWED_NAMESPACES",KX,{transform:y4}),U7=b5(M,"ADD_URI_SAFE_ATTR",iJ,{transform:z1,base:iJ}),pJ=b5(M,"ADD_DATA_URI_TAGS",dJ,{transform:z1,base:dJ}),u6=b5(M,"FORBID_CONTENTS",B7,{transform:z1}),g0=b5(M,"FORBID_TAGS",e1({}),{transform:z1}),z6=b5(M,"FORBID_ATTR",e1({}),{transform:z1}),x8=N1(M,"USE_PROFILES")?M.USE_PROFILES&&typeof M.USE_PROFILES==="object"?e1(M.USE_PROFILES):M.USE_PROFILES:!1,L6=M.ALLOW_ARIA_ATTR!==!1,Z9=M.ALLOW_DATA_ATTR!==!1,s9=M.ALLOW_UNKNOWN_PROTOCOLS||!1,o9=M.ALLOW_SELF_CLOSE_IN_ATTR!==!1,V5=M.SAFE_FOR_TEMPLATES||!1,X9=M.SAFE_FOR_XML!==!1,m5=M.WHOLE_DOCUMENT||!1,V8=M.RETURN_DOM||!1,a9=M.RETURN_DOM_FRAGMENT||!1,r9=M.RETURN_TRUSTED_TYPE||!1,W7=M.FORCE_BODY||!1,uJ=M.SANITIZE_DOM!==!1,$J=M.SANITIZE_NAMED_PROPS||!1,Y7=M.KEEP_CONTENT!==!1,G7=M.IN_PLACE||!1,e0=_3(M.ALLOWED_URI_REGEXP)?M.ALLOWED_URI_REGEXP:SZ,q8=typeof M.NAMESPACE==="string"?M.NAMESPACE:$6,x7=N1(M,"MATHML_TEXT_INTEGRATION_POINTS")&&M.MATHML_TEXT_INTEGRATION_POINTS&&typeof M.MATHML_TEXT_INTEGRATION_POINTS==="object"?e1(M.MATHML_TEXT_INTEGRATION_POINTS):b0({},_J),q7=N1(M,"HTML_INTEGRATION_POINTS")&&M.HTML_INTEGRATION_POINTS&&typeof M.HTML_INTEGRATION_POINTS==="object"?e1(M.HTML_INTEGRATION_POINTS):b0({},cJ);let T=N1(M,"CUSTOM_ELEMENT_HANDLING")&&M.CUSTOM_ELEMENT_HANDLING&&typeof M.CUSTOM_ELEMENT_HANDLING==="object"?e1(M.CUSTOM_ELEMENT_HANDLING):$8(null);if(v0=$8(null),N1(T,"tagNameCheck")&&sJ(T.tagNameCheck))v0.tagNameCheck=T.tagNameCheck;if(N1(T,"attributeNameCheck")&&sJ(T.attributeNameCheck))v0.attributeNameCheck=T.attributeNameCheck;if(N1(T,"allowCustomizedBuiltInElements")&&typeof T.allowCustomizedBuiltInElements==="boolean")v0.allowCustomizedBuiltInElements=T.allowCustomizedBuiltInElements;if($1(v0),V5)Z9=!1;if(a9)V8=!0;if(x8){if(A0=b0({},FZ),L0=$8(null),x8.html===!0)b0(A0,qZ),b0(L0,MZ);if(x8.svg===!0)b0(A0,v4),b0(L0,m4),b0(L0,uz);if(x8.svgFilters===!0)b0(A0,g4),b0(L0,m4),b0(L0,uz);if(x8.mathMl===!0)b0(A0,h4),b0(L0,OZ),b0(L0,uz)}if(b1.tagCheck=null,b1.attributeCheck=null,N1(M,"ADD_TAGS")){if(typeof M.ADD_TAGS==="function")b1.tagCheck=M.ADD_TAGS;else if(T5(M.ADD_TAGS)){if(A0===t6)A0=e1(A0);b0(A0,M.ADD_TAGS,z1)}}if(N1(M,"ADD_ATTR")){if(typeof M.ADD_ATTR==="function")b1.attributeCheck=M.ADD_ATTR;else if(T5(M.ADD_ATTR)){if(L0===_1)L0=e1(L0);b0(L0,M.ADD_ATTR,z1)}}if(N1(M,"ADD_URI_SAFE_ATTR")&&T5(M.ADD_URI_SAFE_ATTR))b0(U7,M.ADD_URI_SAFE_ATTR,z1);if(N1(M,"FORBID_CONTENTS")&&T5(M.FORBID_CONTENTS)){if(u6===B7)u6=e1(u6);b0(u6,M.FORBID_CONTENTS,z1)}if(N1(M,"ADD_FORBID_CONTENTS")&&T5(M.ADD_FORBID_CONTENTS)){if(u6===B7)u6=e1(u6);b0(u6,M.ADD_FORBID_CONTENTS,z1)}if(Y7)A0["#text"]=!0;if(m5)b0(A0,["html","head","body"]);if(A0.table)b0(A0,["tbody"]),delete g0.tbody;if(M.TRUSTED_TYPES_POLICY){if(typeof M.TRUSTED_TYPES_POLICY.createHTML!=="function")throw Z8('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof M.TRUSTED_TYPES_POLICY.createScriptURL!=="function")throw Z8('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let o=E;E=M.TRUSTED_TYPES_POLICY;try{N=t("")}catch(X0){throw E=o,X0}}else if(M.TRUSTED_TYPES_POLICY===null)E=void 0,N="";else{if(E===void 0)E=n();if(E&&typeof N==="string")N=t("")}if(u1)u1(M);F8=M},oJ=b0({},[...v4,...g4,...c3]),aJ=b0({},[...h4,...s3]),YX=function(M,T,o){if(T.namespaceURI===$6)return M==="svg";if(T.namespaceURI===n9)return M==="svg"&&(o==="annotation-xml"||x7[o]);return Boolean(oJ[M])},GX=function(M,T,o){if(T.namespaceURI===$6)return M==="math";if(T.namespaceURI===t9)return M==="math"&&q7[o];return Boolean(aJ[M])},BX=function(M,T,o){if(T.namespaceURI===t9&&!q7[o])return!1;if(T.namespaceURI===n9&&!x7[o])return!1;return!aJ[M]&&(ZX[M]||!oJ[M])},UX=function(M){let T=I(M);if(!T||!T.tagName)T={namespaceURI:q8,tagName:"template"};let o=y9(M.tagName),X0=y9(T.tagName);if(!V7[M.namespaceURI])return!1;if(M.namespaceURI===t9)return YX(o,T,X0);if(M.namespaceURI===n9)return GX(o,T,X0);if(M.namespaceURI===$6)return BX(o,T,X0);if(w9==="application/xhtml+xml"&&V7[M.namespaceURI])return!0;return!1},x5=function(M){u8(J.removed,{element:M});try{I(M).removeChild(M)}catch(T){if(q(M),!I(M))throw Z8("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},rJ=function(M){let T=P(M);if(T){let X0=[];b9(T,(O0)=>{u8(X0,O0)}),b9(X0,(O0)=>{try{q(O0)}catch(T0){}})}let o=v(M);if(o)for(let X0=o.length-1;X0>=0;--X0){let O0=o[X0],T0=O0&&O0.name;if(typeof T0==="string")try{M.removeAttribute(T0)}catch(I1){}}},f5=function(M,T){try{u8(J.removed,{attribute:T.getAttributeNode(M),from:T})}catch(o){u8(J.removed,{attribute:null,from:T})}if(T.removeAttribute(M),M==="is")if(V8||a9)try{x5(T)}catch(o){}else try{T.setAttribute(M,"")}catch(o){}},HX=function(M){let T=v(M);if(!T)return;for(let o=T.length-1;o>=0;--o){let X0=T[o],O0=X0&&X0.name;if(typeof O0!=="string"||L0[z1(O0)])continue;try{M.removeAttribute(O0)}catch(T0){}}},VX=function(M){let T=[M];while(T.length>0){let o=T.pop();if((f?f(o):o.nodeType)===o6.element)HX(o);let O0=P(o);if(O0)for(let T0=O0.length-1;T0>=0;--T0)T.push(O0[T0])}},nJ=function(M){let T=null,o=null;if(W7)M=""+M;else{let T0=UZ(M,/^[\r\n\t ]+/);o=T0&&T0[0]}if(w9==="application/xhtml+xml"&&q8===$6)M=''+M+"";let X0=E?t(M):M;if(q8===$6)try{T=new V().parseFromString(X0,w9)}catch(T0){}if(!T||!T.documentElement){T=Z0.createDocument(q8,"template",null);try{T.documentElement.innerHTML=H7?N:X0}catch(T0){}}let O0=T.body||T.documentElement;if(M&&o)O0.insertBefore(Q.createTextNode(o),O0.childNodes[0]||null);if(q8===$6)return P0.call(T,m5?"html":"body")[0];return m5?T.documentElement:O0},tJ=function(M){return C0.call(M.ownerDocument||M,M,G.SHOW_ELEMENT|G.SHOW_COMMENT|G.SHOW_TEXT|G.SHOW_PROCESSING_INSTRUCTION|G.SHOW_CDATA_SECTION,null)},e9=function(M){return M=T9(M,j0," "),M=T9(M,y0," "),M=T9(M,Q0," "),M},M7=function(M){var T;M.normalize();let o=C0.call(M.ownerDocument||M,M,G.SHOW_TEXT|G.SHOW_COMMENT|G.SHOW_CDATA_SECTION|G.SHOW_PROCESSING_INSTRUCTION,null),X0=o.nextNode();while(X0)X0.data=e9(X0.data),X0=o.nextNode();let O0=(T=M.querySelectorAll)===null||T===void 0?void 0:T.call(M,"template");if(O0)b9(O0,(T0)=>{if(M8(T0.content))M7(T0.content)})},zz=function(M){let T=b?b(M):null;if(typeof T!=="string")return!1;if(z1(T)!=="form")return!1;return typeof M.nodeName!=="string"||typeof M.textContent!=="string"||typeof M.removeChild!=="function"||M.attributes!==v(M)||typeof M.removeAttribute!=="function"||typeof M.setAttribute!=="function"||typeof M.namespaceURI!=="string"||typeof M.insertBefore!=="function"||typeof M.hasChildNodes!=="function"||M.nodeType!==f(M)||M.childNodes!==P(M)},M8=function(M){if(!f||typeof M!=="object"||M===null)return!1;try{return f(M)===o6.documentFragment}catch(T){return!1}},W9=function(M){if(!f||typeof M!=="object"||M===null)return!1;try{return typeof f(M)==="number"}catch(T){return!1}};function e6(a,M,T){if(a.length===0)return;b9(a,(o)=>{o.call(J,M,T,F8)})}let xX=function(M,T){if(X9&&M.hasChildNodes()&&!W9(M.firstElementChild)&&f1(CZ,M.textContent)&&f1(CZ,M.innerHTML))return!0;if(X9&&M.namespaceURI===$6&&T==="style"&&W9(M.firstElementChild))return!0;if(M.nodeType===o6.processingInstruction)return!0;if(X9&&M.nodeType===o6.comment&&f1(K2,M.data))return!0;return!1},qX=function(M,T){if(!g0[T]&&JQ(T)){if(v0.tagNameCheck instanceof RegExp&&f1(v0.tagNameCheck,T))return!1;if(v0.tagNameCheck instanceof Function&&v0.tagNameCheck(T))return!1}if(Y7&&!u6[T]){let o=I(M),X0=P(M);if(X0&&o){let O0=X0.length;for(let T0=O0-1;T0>=0;--T0){let I1=G7?X0[T0]:x(X0[T0],!0);o.insertBefore(I1,C(M))}}}return x5(M),!0},eJ=function(M){if(e6(s.beforeSanitizeElements,M,null),zz(M))return x5(M),!0;let T=z1(b?b(M):M.nodeName);if(e6(s.uponSanitizeElement,M,{tagName:T,allowedTags:A0}),xX(M,T))return x5(M),!0;if(g0[T]||!(b1.tagCheck instanceof Function&&b1.tagCheck(T))&&!A0[T])return qX(M,T);if((f?f(M):M.nodeType)===o6.element&&!UX(M))return x5(M),!0;if((T==="noscript"||T==="noembed"||T==="noframes")&&f1(Z2,M.innerHTML))return x5(M),!0;if(V5&&M.nodeType===o6.text){let X0=e9(M.textContent);if(M.textContent!==X0)u8(J.removed,{element:M.cloneNode()}),M.textContent=X0}return e6(s.afterSanitizeElements,M,null),!1},zQ=function(M,T,o){if(z6[T])return!1;if(uJ&&(T==="id"||T==="name")&&((o in Q)||(o in WX)))return!1;let X0=L0[T]||b1.attributeCheck instanceof Function&&b1.attributeCheck(T,M);if(Z9&&f1(Y0,T));else if(L6&&f1(U0,T));else if(!X0)if(JQ(M)&&(v0.tagNameCheck instanceof RegExp&&f1(v0.tagNameCheck,M)||v0.tagNameCheck instanceof Function&&v0.tagNameCheck(M))&&(v0.attributeNameCheck instanceof RegExp&&f1(v0.attributeNameCheck,T)||v0.attributeNameCheck instanceof Function&&v0.attributeNameCheck(T,M))||T==="is"&&v0.allowCustomizedBuiltInElements&&(v0.tagNameCheck instanceof RegExp&&f1(v0.tagNameCheck,o)||v0.tagNameCheck instanceof Function&&v0.tagNameCheck(o)));else return!1;else if(U7[T]);else if(f1(e0,T9(o,V0,"")));else if((T==="src"||T==="xlink:href"||T==="href")&&M!=="script"&&HZ(o,"data:")===0&&pJ[M]);else if(s9&&!f1(R0,T9(o,V0,"")));else if(o)return!1;return!0},FX=b0({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),JQ=function(M){return!FX[y9(M)]&&f1(M0,M)},MX=function(M,T,o,X0){if(E&&typeof H==="object"&&typeof H.getAttributeType==="function"&&!o)switch(H.getAttributeType(M,T)){case"TrustedHTML":return t(X0);case"TrustedScriptURL":return $(X0)}return X0},OX=function(M,T,o,X0){try{if(o)M.setAttributeNS(o,T,X0);else M.setAttribute(T,X0);if(zz(M))x5(M);else BZ(J.removed)}catch(O0){f5(T,M)}},QQ=function(M){e6(s.beforeSanitizeAttributes,M,null);let T=M.attributes;if(!T||zz(M))return;let o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:L0,forceKeepAttr:void 0},X0=T.length,O0=z1(M.nodeName);while(X0--){let T0=T[X0],I1=T0.name,Y1=T0.namespaceURI,q6=T0.value,I6=z1(I1),S7=q6,c1=I1==="value"?S7:u3(S7);if(o.attrName=I6,o.attrValue=c1,o.keepAttr=!0,o.forceKeepAttr=void 0,e6(s.uponSanitizeAttribute,M,o),c1=o.attrValue,$J&&(I6==="id"||I6==="name")&&HZ(c1,lJ)!==0)f5(I1,M),c1=lJ+c1;if(X9&&f1(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,c1)){f5(I1,M);continue}if(I6==="attributename"&&UZ(c1,"href")){f5(I1,M);continue}if(o.forceKeepAttr)continue;if(!o.keepAttr){f5(I1,M);continue}if(!o9&&f1(X2,c1)){f5(I1,M);continue}if(V5)c1=e9(c1);if(!zQ(O0,I6,c1)){f5(I1,M);continue}if(c1=MX(O0,I6,Y1,c1),c1!==S7)OX(M,I1,Y1,c1)}e6(s.afterSanitizeAttributes,M,null)},Jz=function(M){let T=null,o=tJ(M);e6(s.beforeSanitizeShadowDOM,M,null);while(T=o.nextNode()){if(e6(s.uponSanitizeShadowNode,T,null),eJ(T),QQ(T),M8(T.content))Jz(T.content);if((f?f(T):T.nodeType)===o6.element){let O0=R(T);if(M8(O0))O7(O0),Jz(O0)}}e6(s.afterSanitizeShadowDOM,M,null)},O7=function(M){let T=[{node:M,shadow:null}];while(T.length>0){let o=T.pop();if(o.shadow){Jz(o.shadow);continue}let X0=o.node,T0=(f?f(X0):X0.nodeType)===o6.element,I1=P(X0);if(I1)for(let Y1=I1.length-1;Y1>=0;--Y1)T.push({node:I1[Y1],shadow:null});if(T0){let Y1=b?b(X0):null;if(typeof Y1==="string"&&z1(Y1)==="template"){let q6=X0.content;if(M8(q6))T.push({node:q6,shadow:null})}}if(T0){let Y1=R(X0);if(M8(Y1))T.push({node:null,shadow:Y1},{node:Y1,shadow:null})}}};return J.sanitize=function(a){let M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=null,o=null,X0=null,O0=null;if(H7=!a,H7)a="";if(typeof a!=="string"&&!W9(a)){if(a=i3(a),typeof a!=="string")throw Z8("dirty is not a string, aborting")}if(!J.isSupported)return a;if(Z7)A0=X7,L0=w7;else F7(M);if(s.uponSanitizeElement.length>0||s.uponSanitizeAttribute.length>0)A0=e1(A0);if(s.uponSanitizeAttribute.length>0)L0=e1(L0);J.removed=[];let T0=G7&&typeof a!=="string"&&W9(a);if(T0){let q6=b?b(a):a.nodeName;if(typeof q6==="string"){let I6=z1(q6);if(!A0[I6]||g0[I6])throw Z8("root node is forbidden and cannot be sanitized in-place")}if(zz(a))throw Z8("root node is clobbered and cannot be sanitized in-place");try{O7(a)}catch(I6){throw rJ(a),I6}}else if(W9(a)){if(T=nJ(""),o=T.ownerDocument.importNode(a,!0),o.nodeType===o6.element&&o.nodeName==="BODY")T=o;else if(o.nodeName==="HTML")T=o;else T.appendChild(o);O7(o)}else{if(!V8&&!V5&&!m5&&a.indexOf("<")===-1)return E&&r9?t(a):a;if(T=nJ(a),!T)return V8?null:r9?N:""}if(T&&W7)x5(T.firstChild);let I1=tJ(T0?a:T);try{while(X0=I1.nextNode())if(eJ(X0),QQ(X0),M8(X0.content))Jz(X0.content)}catch(q6){if(T0)rJ(a);throw q6}if(T0){if(b9(J.removed,(q6)=>{if(q6.element)VX(q6.element)}),V5)M7(a);return a}if(V8){if(V5)M7(T);if(a9){O0=L1.call(T.ownerDocument);while(T.firstChild)O0.appendChild(T.firstChild)}else O0=T;if(L0.shadowroot||L0.shadowrootmode)O0=t0.call(K,O0,!0);return O0}let Y1=m5?T.outerHTML:T.innerHTML;if(m5&&A0["!doctype"]&&T.ownerDocument&&T.ownerDocument.doctype&&T.ownerDocument.doctype.name&&f1(J2,T.ownerDocument.doctype.name))Y1=" +`+Y1;if(V5)Y1=e9(Y1);return E&&r9?t(Y1):Y1},J.setConfig=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};F7(a),Z7=!0,X7=A0,w7=L0},J.clearConfig=function(){F8=null,Z7=!1,X7=null,w7=null,E=h,N=""},J.isValidAttribute=function(a,M,T){if(!F8)F7({});let o=z1(a),X0=z1(M);return zQ(o,X0,T)},J.addHook=function(a,M){if(typeof M!=="function")return;if(!N1(s,a))return;u8(s[a],M)},J.removeHook=function(a,M){if(!N1(s,a))return;if(M!==void 0){let T=m3(s[a],M);return T===-1?void 0:f3(s[a],T,1)[0]}return BZ(s[a])},J.removeHooks=function(a){if(!N1(s,a))return;s[a]=[]},J.removeAllHooks=function(){s=PZ()},J}var DZ=IZ();function X8(z){return $z(z,"day")}function $z(z,J,Q){if(z==1)return`1 ${J}`;else return Q=Q??`${J}s`,`${z} ${Q}`}function lz(z){return DZ.sanitize(z,{ALLOWED_TAGS:["a","b","bdi","blockquote","br","cite","code","dd","del","div","dl","dt","em","h1","h2","h3","h4","h5","hr","i","li","ol","p","pre","q","rp","rt","ruby","s","small","span","strong","sub","sup","u","ul","wbr"],ALLOWED_ATTR:["align","class","dir","href","lang","title","translate"]})}function RZ(z,J){if(z.length<=J)return z;else return z.slice(0,J-1)+"…"}function w8(z){if(z===void 0||z===null||typeof z=="number")return z;else return parseInt(z,10)}function W6(z){let J=z.reason?z.reason.indexedAt:z.post.record.createdAt;return Date.parse(J)}function l8(z){try{let J=new URL(z);return J.protocol=="http:"||J.protocol=="https:"?J:void 0}catch{return}}function E5(z){return l8(z)!==void 0}function AZ(z,J){return z.getDate()==J.getDate()&&z.getMonth()==J.getMonth()&&z.getFullYear()==J.getFullYear()}function y5(z){console.log(z),alert(z)}class Y6{constructor(z,J){this.data=z,Object.assign(this,J??{})}get uri(){return this.data.uri}get cid(){return this.data.cid}get rkey(){return d0(this.uri).rkey}get type(){return this.data.$type}}class v9 extends Y6{constructor(z){super(z);this.author=z.creator}get title(){return this.data.displayName}get description(){return this.data.description}get likeCount(){return w8(this.data.likeCount)}get avatar(){return this.data.avatar}}class g9 extends Y6{constructor(z){super(z);this.author=z.creator}get title(){return this.data.name}get purpose(){return this.data.purpose}get description(){return this.data.description}get avatar(){return this.data.avatar}}class h9 extends Y6{constructor(z){super(z);this.author=z.creator}get title(){return this.data.record.name}get description(){return this.data.record.description}}class W1{json;static parseInlineEmbed(z){switch(z.$type){case"app.bsky.embed.record#view":return new s8(z);case"app.bsky.embed.recordWithMedia#view":return new o8(z);case"app.bsky.embed.images#view":return new iz(z);case"app.bsky.embed.gallery#view":return new _z(z);case"app.bsky.embed.external#view":return new v5(z);case"app.bsky.embed.video#view":return new cz(z);default:if(location.protocol=="file:")throw new p8(`Unexpected embed type: ${z.$type}`);else return console.warn("Unexpected embed type:",z.$type),new W1(z)}}static parseRawEmbed(z){switch(z.$type){case"app.bsky.embed.record":return new pz(z);case"app.bsky.embed.recordWithMedia":return new dz(z);case"app.bsky.embed.images":return new d8(z);case"app.bsky.embed.gallery":return new i8(z);case"app.bsky.embed.external":return new _8(z);case"app.bsky.embed.video":return new c8(z);default:if(location.protocol=="file:")throw new p8(`Unexpected embed type: ${z.$type}`);else return console.warn("Unexpected embed type:",z.$type),new W1(z)}}constructor(z){this.json=z}get type(){return this.json.$type}}function kZ(z,J){return(z??[]).filter((Q)=>{if(Q.$type==J)return!0;else return console.error("Unexpected gallery item type:",Q.$type),!1})}class d8 extends W1{images;constructor(z){super(z);this.images=z.images}}class i8 extends W1{images;constructor(z){super(z);this.images=kZ(z.items,"app.bsky.embed.gallery#image")}}class _8 extends W1{url;title;thumb;description;constructor(z){super(z);this.url=z.external.uri,this.title=z.external.title,this.thumb=z.external.thumb,this.description=z.external.description}}class c8 extends W1{video;alt;constructor(z){super(z);this.video=z.video,this.alt=z.alt}}class pz extends W1{record;constructor(z){super(z);this.record=new Y6(z.record)}}class dz extends W1{record;media;constructor(z){super(z);this.record=new Y6(z.record.record),this.media=W1.parseRawEmbed(z.media)}}class s8 extends W1{record;constructor(z){super(z);this.record=$4(z.record)}}class o8 extends W1{record;media;constructor(z){super(z);this.record=$4(z.record.record),this.media=W1.parseInlineEmbed(z.media)}}class v5 extends W1{url;title;description;thumb;constructor(z){super(z);this.url=z.external.uri,this.title=z.external.title,this.description=z.external.description,this.thumb=z.external.thumb}}class iz extends W1{images;constructor(z){super(z);this.images=z.images}}class _z extends W1{images;constructor(z){super(z);this.images=kZ(z.items,"app.bsky.embed.gallery#viewImage")}}class cz extends W1{playlistURL;alt;constructor(z){super(z);this.playlistURL=z.playlist,this.alt=z.alt}}class p8 extends Error{constructor(z){super(z)}}class W8 extends Y6{isHiddenReply=!1;labelledNeedsReview=!1;get didLinkToAuthor(){let{repo:z}=d0(this.uri);return`https://bsky.app/profile/${z}`}}function g5(z,J=null,Q=0,K=0){switch(z.$type){case"app.bsky.feed.defs#threadViewPost":let Z=new D0(z.post,{level:Q,absoluteLevel:K});if(Z.pageRoot=J??Z,z.replies){let X=z.replies.map((w)=>g5(w,Z.pageRoot,Q+1,K+1));Z.setReplies(X)}if(K<=0&&z.parent)Z.parent=g5(z.parent,Z.pageRoot,Q-1,K-1);return Z;case"app.bsky.feed.defs#notFoundPost":return new f6(z);case"app.bsky.feed.defs#blockedPost":return new r6(z);default:throw new p8(`Unexpected record type: ${z.$type}`)}}function $4(z){switch(z.$type){case"app.bsky.embed.record#viewRecord":return new D0(z,{isEmbed:!0});case"app.bsky.embed.record#viewNotFound":return new f6(z);case"app.bsky.embed.record#viewBlocked":return new r6(z);case"app.bsky.embed.record#viewDetached":return new a8(z);case"app.bsky.feed.defs#generatorView":return new v9(z);case"app.bsky.graph.defs#listView":return new g9(z);case"app.bsky.graph.defs#starterPackViewBasic":return new h9(z);default:return console.warn("Unknown record type:",z.$type),new Y6(z)}}function bZ(z){let J=new D0(z.post);if(z.reply){if(J.parent=NZ(z.reply.parent),J.threadRoot=NZ(z.reply.root),z.reply.grandparentAuthor)J.grandparentAuthor=z.reply.grandparentAuthor}if(z.reason)J.reason=z.reason;return J}function NZ(z){switch(z.$type){case"app.bsky.feed.defs#postView":return new D0(z);case"app.bsky.feed.defs#notFoundPost":return new f6(z);case"app.bsky.feed.defs#blockedPost":return new r6(z);default:throw new p8(`Unexpected record type: ${z.$type}`)}}class D0 extends W8{parent;threadRoot;pageRoot;replies;grandparentAuthor;level;absoluteLevel;reason;isEmbed;constructor(z,J){super(z);if(Object.assign(this,J??{}),this.absoluteLevel===0)this.pageRoot=this;if(this.record=this.isPostView?z.record:z.value,this.isPostView&&z.embed)this.embed=W1.parseInlineEmbed(z.embed);else if(this.isEmbed&&z.embeds&&z.embeds[0])this.embed=W1.parseInlineEmbed(z.embeds[0]);else if(this.record.embed)this.embed=W1.parseRawEmbed(this.record.embed);if(this.author=this.author??z.author,this.replies=[],this.viewerData=z.viewer,this.viewerLike=z.viewer?.like,this.author)E0.cacheProfile(this.author)}updateDataFromPost(z){this.record=z.record,this.embed=z.embed,this.author=z.author,this.viewerData=z.viewerData,this.viewerLike=z.viewerLike,this.level=z.level,this.absoluteLevel=z.absoluteLevel,this.setReplies(z.replies)}setReplies(z){this.replies=z,this.replies.sort(this.sortReplies.bind(this))}sortReplies(z,J){if(z instanceof D0&&J instanceof D0)if(z.author.did==this.author.did&&J.author.did!=this.author.did)return-1;else if(z.author.did!=this.author.did&&J.author.did==this.author.did)return 1;else if(z.text!="\uD83D\uDCCC"&&J.text=="\uD83D\uDCCC")return-1;else if(z.text=="\uD83D\uDCCC"&&J.text!="\uD83D\uDCCC")return 1;else if(z.createdAt.getTime()J.createdAt.getTime())return 1;else return 0;else if(z instanceof D0)return-1;else if(J instanceof D0)return 1;else return 0}get isPostView(){return!this.isEmbed}get isFediPost(){return this.author?.handle.endsWith(".ap.brid.gy")}get originalFediContent(){return this.record.bridgyOriginalText}get originalFediURL(){return this.record.bridgyOriginalUrl}get isPageRoot(){return this.pageRoot===this}get authorFediHandle(){if(this.isFediPost)return this.author.handle.replace(/\.ap\.brid\.gy$/,"").replace(".","@");else throw"Not a Fedi post"}get hasValidHandle(){return this.author.handle!="handle.invalid"}get authorDisplayName(){if(this.author.displayName)return this.author.displayName.trim();else if(this.author.handle.endsWith(".bsky.social"))return this.author.handle.replace(/\.bsky\.social$/,"");else return this.author.handle}get linkToAuthor(){return"https://bsky.app/profile/"+(this.hasValidHandle?this.author.handle:this.author.did)}get linkToPost(){return this.linkToAuthor+"/post/"+this.rkey}get text(){return this.record.text}get lowercaseText(){if(!this._lowercaseText)this._lowercaseText=this.record.text.toLowerCase();return this._lowercaseText}get facets(){return this.record.facets}get tags(){return this.record.tags}get createdAt(){return new Date(this.record.createdAt)}get likeCount(){return w8(this.data.likeCount)}get replyCount(){return w8(this.data.replyCount)}get quoteCount(){return w8(this.data.quoteCount)}get hasMoreReplies(){return this.replyCount!==void 0&&this.replyCount>this.replies.length&&this.replies.length===0&&(this.level!==void 0&&this.level>4)}get hasHiddenReplies(){return this.replyCount!==void 0&&this.replyCount>this.replies.length&&(this.replies.length>0||this.level!==void 0&&this.level<=4)}get isRestrictingReplies(){return!!(this.data.threadgate&&this.data.threadgate.record.allow)}get hasDisabledReplies(){return!!(this.data.threadgate&&this.data.threadgate.record.allow!==void 0&&this.data.threadgate.record.allow.length==0)}get hasBeenEdited(){return!!this.record.originalText}get originalText(){return this.record.originalText}get repostCount(){return w8(this.data.repostCount)}get liked(){return this.viewerLike!==void 0}get muted(){return this.author.viewer?.muted}get muteList(){return this.author.viewer?.mutedByList?.name}get hasViewerInfo(){return this.viewerData!==void 0}get parentReference(){return this.record.reply?.parent&&new Y6(this.record.reply?.parent)}get rootReference(){return this.record.reply?.root&&new Y6(this.record.reply?.root)}}class r6 extends W8{constructor(z){super(z);this.author=z.author}get blocksUser(){return!!this.author.viewer?.blocking}get blockedByUser(){return this.author.viewer?.blockedBy}}class f6 extends W8{}class a8 extends W8{}class l4 extends Error{}class TZ extends Error{}async function sz(z){let J;if(z.startsWith("did:plc:"))J=new URL(`https://plc.directory/${z}`);else if(z.startsWith("did:web:")){let X=z.replace(/^did:web:/,"");J=new URL(`https://${X}/.well-known/did.json`)}else throw new l4(`Unknown DID type: ${z}`);let Q=await fetch(J),K=await Q.text(),Z=K.trim().length>0?JSON.parse(K):void 0;if(Q.status==200){let X=(Z.service||[]).find((w)=>w.id=="#atproto_pds");if(X)return X.serviceEndpoint.replace("https://","");else throw new l4("Missing #atproto_pds service definition")}else throw new B5(Q.status,Z)}async function EZ(z){if(z.match(/^did:/))return await sz(z);else if(z.match(/^[^@]+@[^@]+$/))return"bsky.social";else if(z.match(/^@?[\w\-]+(\.[\w\-]+)+$/)){z=z.replace(/^@/,"");let J=await C6.resolveHandle(z);return await sz(J)}else throw new TZ("Please enter your handle or DID.")}var yZ="did:plc:ar7c4by46qjdydhdevvrndac";class p4 extends Error{}class U5 extends Error{constructor(z){super(z)}}class P6 extends m6{handleCache;profiles;constructor(z,J,Q){super(z,J,Q);this.handleCache=new b4,this.profiles={}}cacheProfile(z){this.profiles[z.did]=z,this.profiles[z.handle]=z,this.handleCache.setHandleDid(z.handle,z.did)}async fetchHandleForDid(z){let J=this.handleCache.findHandleByDid(z);if(J)return J;else return(await this.loadUserProfile(z)).handle}async resolveHandle(z){let J=this.handleCache.getHandleDid(z);if(J)return J;else{let Q=await this.getRequest("com.atproto.identity.resolveHandle",{handle:z},{auth:!1}),K=Q.did;if(K)return this.handleCache.setHandleDid(z,K),K;else throw new p4("Missing DID in response: "+JSON.stringify(Q))}}async loadThreadByURL(z){let{user:J,post:Q}=r8(z);return await this.loadThreadById(J,Q)}async loadThreadById(z,J){let K=`at://${z.startsWith("did:")?z:await this.resolveHandle(z)}/app.bsky.feed.post/${J}`;return await this.loadThreadByAtURI(K)}async loadThreadByAtURI(z){return await this.getRequest("app.bsky.feed.getPostThread",{uri:z,depth:10})}async loadUserProfile(z,J=!1,Q={}){if(this.profiles[z]&&(!J||("description"in this.profiles[z])))return this.profiles[z];let K=await this.getRequest("app.bsky.actor.getProfile",{actor:z},Q);return this.cacheProfile(K),K}async autocompleteUsers(z){if(z.match(/^did:(plc|web):/))try{return[await this.loadUserProfile(z)]}catch(Q){if(!(Q instanceof B5&&Q.code==400))throw Q}return(await this.getRequest("app.bsky.actor.searchActorsTypeahead",{q:z})).actors}async getHashtagFeed(z,J){let Q={q:"#"+z,limit:50,sort:"latest"};if(J)Q.cursor=J;return await this.getRequest("app.bsky.feed.searchPosts",Q)}async checkIfProfileHasNeedsReview(z){return(await this.getRequest("app.bsky.actor.getProfile",{actor:z},{headers:{"atproto-accept-labelers":yZ}})).labels?.some((Q)=>Q.src==yZ&&Q.val=="needs-review")}async loadHiddenReplyURIs(z){let[J,Q]=await Promise.all([d4.getReplies(z.uri),Y8.getReplies(z.uri).catch(()=>[])]),K=Array.from(new Set(J.concat(Q))),Z=new Set(z.replies.map((w)=>w.uri)),X=K.filter((w)=>!Z.has(w));return X.sort((w,Y)=>{let G=w.split("/").at(-1),B=Y.split("/").at(-1);return G.localeCompare(B)}),X}async loadMiniDocWithStatus(z){let J;try{J=await i4.getRequest("blue.microcosm.identity.resolveMiniDoc",{identifier:z})}catch(Q){let K=await sz(z);J={did:z,pds:K}}try{let K=new m6(J.pds).getRequest("com.atproto.sync.getRepoStatus",{did:z}),Z=C6.loadUserProfile(z).catch(()=>null),[X,w]=await Promise.all([K,Z]);if(J.active=X.active,J.status=X.status,w)J.profile=w}catch(Q){J.pdsError=Q}return J}async loadUserTimeline(z,J,Q){let Z=new Date().getTime()-J*86400*1000,{filter:X,...w}=Q;return await this.fetchAll("app.bsky.feed.getAuthorFeed",{params:{actor:z,filter:X,limit:100},field:"feed",breakWhen:(Y)=>W6(Y)W6(X)0)return(await this.getRequest("app.bsky.feed.getPosts",{uris:z})).posts;else return[]}async loadPostViewerInfo(z){let J=await this.loadPostIfExists(z.uri);if(J)z.author=J.author,z.viewerData=J.viewer,z.viewerLike=J.viewer?.like;return J}async reloadBlockedPost(z){let{repo:J}=d0(z),Q=C6.loadPostIfExists(z),K=this.getRequest("app.bsky.actor.getProfile",{actor:J}),Z=await Q;if(!Z)return null;let X=await K;return new D0(Z,{author:X})}}var vZ="atproto-proxy";class gZ{user;constructor(){let z=localStorage.getItem("userData");this.user=z?JSON.parse(z):{}}save(){if(this.user)localStorage.setItem("userData",JSON.stringify(this.user));else localStorage.removeItem("userData")}}class oz extends P6{user;proxiedAppView;constructor(z){let J=new gZ,Q=J.user.pdsEndpoint||null;super(Q,J);this.user=J.user,this.proxiedAppView=z.proxiedAppView}get appViewProxyHeader(){return`did:web:${this.proxiedAppView}#bsky_appview`}async getRequest(z,J,Q={}){if(this.isLoggedIn&&!z.startsWith("com.atproto.")){if(Q=Q??{},Q.headers=Q.headers??{},!Q.headers[vZ])Q.headers[vZ]=this.appViewProxyHeader}return super.getRequest(z,J,Q)}async getCurrentUserAvatar(){return(await this.getRequest("com.atproto.repo.getRecord",{repo:this.user.did,collection:"app.bsky.actor.profile",rkey:"self"})).value.avatar}async loadCurrentUserAvatar(){if(!this.config||!this.config.user)throw new N5("User isn't logged in");let z=await this.getCurrentUserAvatar();if(z){let J=`https://cdn.bsky.app/img/avatar/plain/${this.user.did}/${z.ref.$link}@jpeg`;return this.config.user.avatar=J,this.config.save(),J}else return null}async loadNotifications(z){return await this.getRequest("app.bsky.notification.listNotifications",z||{})}async loadMentions(z){let J=await this.loadNotifications({cursor:z??"",limit:100,reasons:["reply","mention"]}),Q=J.notifications.map((X)=>X.uri),K=[];for(let X=0;XW6(Z)J.purpose=="app.bsky.graph.defs#curatelist")}async likePost(z){return await this.postRequest("com.atproto.repo.createRecord",{repo:this.user.did,collection:"app.bsky.feed.like",record:{subject:{uri:z.uri,cid:z.cid},createdAt:new Date().toISOString()}})}async removeLike(z){let{rkey:J}=d0(z);await this.postRequest("com.atproto.repo.deleteRecord",{repo:this.user.did,collection:"app.bsky.feed.like",rkey:J})}resetTokens(){delete this.user.avatar,super.resetTokens()}}class _4 extends m6{constructor(z){super(z)}async getQuoteCount(z){return(await this.getRequest("blue.feeds.post.getQuoteCount",{uri:z})).quoteCount}async getQuotes(z,J){let Q;if(z.startsWith("at://"))Q=z;else{let{user:Z,post:X}=r8(z);Q=`at://${Z.startsWith("did:")?Z:await C6.resolveHandle(Z)}/app.bsky.feed.post/${X}`}let K={uri:Q};if(J)K.cursor=J;return await this.getRequest("blue.feeds.post.getQuotes",K)}async getReplies(z){return(await this.getRequest("blue.feeds.post.getReplies",{uri:z})).replies}}class c4 extends m6{constructor(z){super(z)}async getReplies(z){return(await this.fetchAll("blue.microcosm.links.getBacklinks",{field:"records",params:{subject:z,source:"app.bsky.feed.post:reply.parent.uri",limit:100}})).map((Q)=>`at://${Q.did}/${Q.collection}/${Q.rkey}`)}}class hZ{#z;get data(){return W(this.#z)}set data(z){D(this.#z,z,!0)}constructor(){let z=localStorage.getItem("settings");this.#z=m(q0(z?JSON.parse(z):{}))}save(){localStorage.setItem("settings",JSON.stringify(this.data))}logOut(){delete this.data.incognito,this.save()}get dateLocale(){return this.data.dateLocale}set dateLocale(z){this.data.dateLocale=z,this.save()}get incognitoMode(){return this.data.incognito}set incognitoMode(z){this.data.incognito=z,this.save()}get biohazardsEnabled(){return this.data.biohazard}set biohazardsEnabled(z){this.data.biohazard=z,this.save()}}var i0=new hZ;window.settings=i0;var mZ="api.bsky.app",C6=new P6(mZ),Y8=new _4("blue.mackuba.eu"),d4=new c4("constellation.microcosm.blue"),i4=new m6("slingshot.microcosm.blue"),F0=new oz({proxiedAppView:mZ}),E0;function s4(){E0=F0.isLoggedIn&&!i0.incognitoMode?F0:C6,window.api=E0}s4();window.AuthenticatedAPI=oz;window.BlueskyAPI=P6;window.Minisky=m6;window.appView=C6;window.blueAPI=Y8;window.accountAPI=F0;window.constellationAPI=d4;window.slingshotAPI=i4;function G8(){return location.protocol+"//"+location.host+location.pathname}function n8(z){let J=new URL(G8());return J.searchParams.set("hash",z),J.toString()}function o4(z){let J=new URL(G8());return J.searchParams.set("quotes",z),J.toString()}function n6(z){return j6(z.author.handle,z.rkey)}function j6(z,J){let Q=new URL(G8());return Q.searchParams.set("author",z),Q.searchParams.set("post",J),Q.toString()}function r8(z){let J;try{J=new URL(z)}catch(X){throw new U5(`${X}`)}if(J.protocol!="https:"&&J.protocol!="http:")throw new U5("URL must start with http(s)://");let Q=J.pathname.split("/");if(Q.length<5||Q[1]!="profile"||Q[3]!="post")throw new U5("This is not a valid thread URL");let K=Q[2],Z=Q[4];return{user:K,post:Z}}function fZ(z){return Object.fromEntries(new URLSearchParams(z))}var uZ="5";if(typeof window<"u")((window.__svelte??={}).v??=new Set).add(uZ);class $Z{#z;#J;#Q;constructor(){this.#z=m(q0(F0.isLoggedIn)),this.#J=m(q0(F0.isLoggedIn?F0.user.avatar:void 0)),this.#Q=m(!1)}get isIncognito(){return!!i0.incognitoMode}toggleIncognitoMode(){i0.incognitoMode=!this.isIncognito,location.reload()}get loggedIn(){return W(this.#z)}get avatarURL(){return W(this.#J)}get avatarIsLoading(){return W(this.#Q)}async logIn(z,J){let Q=await EZ(z);F0.host=Q,await F0.logIn(z,J),D(this.#z,!0),D(this.#Q,!0),s4(),F0.loadCurrentUserAvatar().then((K)=>{D(this.#J,K||void 0,!0)}).catch((K)=>{console.log(K)}).finally(()=>{D(this.#Q,!1)})}logOut(){F0.resetTokens(),i0.logOut(),location.reload()}}var j1=new $Z;var Y2=new Set(["$$slots","$$events","$$legacy","children","onClose","id"]),G2=j("

    ");function m9(z,J){_(J,!0);let Q=S0(J,"onClose",3,void 0),K=S0(J,"id",3,void 0),Z=G5(J,Y2);function X(G){if(G.target===G.currentTarget)Q()?.()}var w=G2(),Y=S(w);k5(Y,()=>J.children),O(w),y(()=>{d(w,"id",K()),r0(w,1,`dialog ${J.class??""}`,"svelte-1zczyanbmvbtr")}),H0("click",w,X),F(z,w),c()}I0(["click"]);var B2=j(`

    ☣️ Infohazard Warning

    “This thread is not a place of honor... no highly esteemed post is commemorated here... nothing valued is here.”

    This feature allows access to comments in a thread which were hidden because one of the commenters has blocked another. Bluesky currently hides such comments to avoid escalating conflicts.

    Are you sure you want to enter?
    (You can toggle this in the menu in top-left corner.)

    `);function a4(z,J){_(J,!0);let Q=S0(J,"onConfirm",3,void 0),K=S0(J,"onReject",3,void 0),Z=S0(J,"onClose",3,void 0);function X(Y){Y.preventDefault(),i0.biohazardsEnabled=!0,Q()?.(),Z()?.()}function w(Y){Y.preventDefault(),i0.biohazardsEnabled=!1,K()?.(),Z()?.()}m9(z,{onClose:()=>Z()?.(),children:(Y,G)=>{var B=B2(),V=S(B),H=L(V,10),U=S(H),x=L(U,2);O(H),O(B),H0("click",V,function(...q){Z()?.apply(this,q)}),H0("click",U,X),H0("click",x,w),F(Y,B)},$$slots:{default:!0}}),c()}I0(["click"]);var U2=j(''),H2=j(`

    Skythread doesn't support OAuth yet. For now, you need to use an "app password" here, which you can generate in the Bluesky app settings.

    The password you enter here is only passed to the Bluesky API (PDS) and isn't saved anywhere. The returned access token is only stored in your browser's local storage. You can see the complete source code of this app on Tangled.

    `),V2=j(''),x2=j(''),q2=j('

    \uD83C\uDF24 Skythread

    Use an "app password" here

    ');function r4(z,J){_(J,!0);let Q=S0(J,"onClose",3,void 0),K=S0(J,"onLogin",3,void 0),Z=m(""),X=m(""),w=m(!1),Y=m(!1),G,B;function V(){if(J.showClose&&Q())Q()()}function H(q){q.preventDefault(),D(w,!W(w))}async function U(q){q.preventDefault(),D(Y,!0),G.blur(),B.blur();try{await j1.logIn(W(Z).trim(),W(X).trim()),K()?.(),Q()?.()}catch(C){D(Y,!1),x(C)}}function x(q){if(console.log(q),q instanceof B5&&q.code==401&&q.json.error=="AuthFactorTokenRequired")alert('Please log in using an "app password" if you have 2FA enabled.');else window.setTimeout(()=>alert(q),10)}{let q=z0(()=>W(w)?"expanded":"");m9(z,{id:"login",get class(){return W(q)},onClose:V,children:(C,P)=>{var I=q2(),R=S(I);{var v=(Z0)=>{var C0=U2();H0("click",C0,function(...L1){Q()?.apply(this,L1)}),F(Z0,C0)};A(R,(Z0)=>{if(J.showClose)Z0(v)})}var f=L(R,4),b=S(f);n0(b),z8(b,!0),t1(b,(Z0)=>G=Z0,()=>G),O(f);var E=L(f,2),N=S(E);n0(N),t1(N,(Z0)=>B=Z0,()=>B),O(E);var h=L(E,2),l=S(h);O(h);var k=L(h,2);{var i=(Z0)=>{var C0=H2();F(Z0,C0)};A(k,(Z0)=>{if(W(w))Z0(i)})}var t=L(k,2),$=S(t);{var n=(Z0)=>{var C0=V2();F(Z0,C0)},K0=(Z0)=>{var C0=x2();F(Z0,C0)};A($,(Z0)=>{if(!W(Y))Z0(n);else Z0(K0,-1)})}O(t),O(I),$0("submit",I,U),m1(b,()=>W(Z),(Z0)=>D(Z,Z0)),m1(N,()=>W(X),(Z0)=>D(X,Z0)),H0("click",l,H),F(C,I)},$$slots:{default:!0}})}c()}I0(["click"]);var az=m(!1),lZ=m(!1),rz=m(!1),pZ=m(void 0);function t8(z){if(!W(az))D(az,!0),D(lZ,z.showClose,!0)}function dZ(z){if(!W(rz))D(rz,!0),D(pZ,z,!0)}function n4(z){var J=J0(),Q=p(J);{var K=(X)=>{r4(X,{onClose:()=>D(az,!1),get showClose(){return W(lZ)}})},Z=(X)=>{a4(X,{onClose:()=>D(rz,!1),onConfirm:()=>W(pZ)?.()})};A(Q,(X)=>{if(W(az))X(K);else if(W(rz))X(Z,1)})}F(z,J)}var F2=j('✓'),M2=j('
  • ');function e8(z,J){let Q=S0(J,"title",3,void 0),K=S0(J,"showCheckmark",3,!1);var Z=M2(),X=S(Z),w=S(X);{var Y=(B)=>{var V=F2();F(B,V)};A(w,(B)=>{if(K())B(Y)})}var G=L(w);O(X),O(Z),y(()=>{d(X,"title",Q()),u(G,` ${J.label??""}`)}),H0("click",X,function(...B){J.onclick?.apply(this,B)}),F(z,Z)}I0(["click"]);var O2=new Set(["$$slots","$$events","$$legacy","loading","error"]),S2=j(" ",1),C2=j("");function t4(z,J){let Q=G5(J,O2),K=m(void 0);function Z(){D(K,"loaded")}function X(){D(K,"error")}var w=J0(),Y=p(w);{var G=(H)=>{var U=S2(),x=p(U);k5(x,()=>J.loading);var q=L(x,2);mz(q,()=>({...Q,style:"display: none",onload:Z,onerror:X})),v8(q),F(H,U)},B=(H)=>{var U=C2();mz(U,()=>({...Q})),v8(U),F(H,U)},V=(H)=>{var U=J0(),x=p(U);k5(x,()=>J.error),F(H,U)};A(Y,(H)=>{if(!W(K))H(G);else if(W(K)=="loaded")H(B,1);else H(V,-1)})}F(z,w)}var P2=j(''),iZ=j(''),_Z=j(''),j2=j('
    ',1);function e4(z,J){_(J,!0);let Q=m(!1);o0(()=>{let k=document.body.parentNode;return k.addEventListener("click",K),()=>{k.removeEventListener("click",K)}});function K(){D(Q,!1)}function Z(k){k.stopPropagation(),D(Q,!W(Q))}function X(k){if(k.preventDefault(),i0.biohazardsEnabled===!1)i0.biohazardsEnabled=!0;else i0.biohazardsEnabled=!1}function w(k){k.preventDefault(),j1.toggleIncognitoMode()}function Y(k){k.preventDefault(),t8({showClose:!0}),D(Q,!1)}function G(k){k.preventDefault(),j1.logOut()}var B=j2(),V=p(B),H=S(V);{var U=(k)=>{var i=P2();F(k,i)},x=(k)=>{var i=iZ();F(k,i)},q=(k)=>{t4(k,{class:"avatar",get src(){return j1.avatarURL},loading:($)=>{var n=iZ();F($,n)},error:($)=>{var n=_Z();F($,n)},$$slots:{loading:!0,error:!0}})},C=(k)=>{var i=_Z();F(k,i)};A(H,(k)=>{if(j1.isIncognito)k(U);else if(!j1.loggedIn||j1.avatarIsLoading)k(x,1);else if(j1.loggedIn&&j1.avatarURL)k(q,2);else k(C,-1)})}O(V);var P=L(V,2),I=S(P),R=S(I);{var v=(k)=>{e8(k,{onclick:w,label:"Incognito mode",title:"Temporarily load threads as a logged-out user",get showCheckmark(){return j1.isIncognito}})};A(R,(k)=>{if(j1.loggedIn)k(v)})}var f=L(R,2);{let k=z0(()=>i0.biohazardsEnabled!==!1);e8(f,{onclick:X,label:"Show infohazards",title:"Show links to blocked and hidden comments",get showCheckmark(){return W(k)}})}var b=L(f,2);{var E=(k)=>{e8(k,{onclick:Y,label:"Log in"})},N=(k)=>{e8(k,{onclick:G,label:"Log out"})};A(b,(k)=>{if(!j1.loggedIn)k(E);else k(N,-1)})}var h=L(b,2),l=S(h);O(h),F1(8),O(I),O(P),y((k)=>{r0(V,1,Y5({active:W(Q)}),"svelte-39wlrotalwj0t"),h6(P,`visibility: ${W(Q)?"visible":"hidden"}`),d(l,"href",k)},[()=>G8()]),H0("click",V,Z),H0("click",P,(k)=>k.stopPropagation()),F(z,B),c()}I0(["click"]);var B8,zJ;function h5(z){if(B8)document.removeEventListener("scroll",B8);zJ?.disconnect(),B8=()=>{if(window.pageYOffset+window.innerHeight>document.body.offsetHeight-500)z(B8)},z(B8),document.addEventListener("scroll",B8),zJ=new ResizeObserver(B8),zJ.observe(document.body)}aQ();var L2=j('
    Loading...
    ');function H5(z){var J=L2();F(z,J)}var I2=j('
    ');function JJ(z,J){_(J,!0);let Q=S0(J,"collapsed",15,!1);function K(){Q(!Q())}var Z=I2(),X=S(Z),w=L(X,2);O(Z),y(()=>{d(w,"alt",Q()?"+":"-"),d(w,"src",`icons/${Q()?"add-square.png":"subtract-square.png"}`)}),H0("click",X,K),H0("click",w,K),F(z,Z),c()}I0(["click"]);var D2=j('
    ');function QJ(z,J){_(J,!0);let Q=z0(()=>l8(J.url));var K=J0(),Z=p(K);{var X=(w)=>{var Y=D2(),G=S(Y),B=L(S(G));O(G),O(Y),y(()=>{d(Y,"href",W(Q).href),u(B,` View on ${W(Q).hostname??""}`)}),F(w,Y)};A(Z,(w)=>{if(W(Q))w(X)})}F(z,K),c()}var R2=j('☣️ Load hidden replies…',1),A2=j('Loading...'),k2=j('

    ');function KJ(z,J){_(J,!0);let{post:Q}=x1(),K=m(!1);function Z(V){if(V.preventDefault(),i0.biohazardsEnabled===!0)X();else dZ(()=>{X()})}async function X(){D(K,!0);try{let V=await E0.loadHiddenReplyURIs(Q),H=V.map((R)=>E0.loadThreadByAtURI(R)),x=(await Promise.allSettled(H)).flatMap((R)=>R.status=="fulfilled"?[R.value.thread]:[]),q=x.map((R)=>g5(R,Q.pageRoot,1,Q.absoluteLevel+1));if(q.forEach((R)=>{R.isHiddenReply=!0}),x.length<=10){for(let[R,v]of x.entries())if(v.parent){let f=v.post.author.did;q[R].labelledNeedsReview=await C6.checkIfProfileHasNeedsReview(f)}}let C=V.filter((R)=>!q.find((v)=>v.uri==R)),P=C.map((R)=>{let v=d0(R).repo;return E0.loadMiniDocWithStatus(v).catch(()=>({did:v}))}),I=await Promise.all(P);D(K,!1),J.onLoad(q,I.map((R,v)=>[C[v],R]))}catch(V){D(K,!1),J.onError(V)}}var w=k2(),Y=S(w);{var G=(V)=>{var H=R2(),U=L(p(H));y((x)=>d(U,"href",x),[()=>n6(Q)]),H0("click",U,Z),F(V,H)},B=(V)=>{var H=A2();F(V,H)};A(Y,(V)=>{if(!W(K))V(G);else V(B,-1)})}O(w),F(z,w),c()}I0(["click"]);var N2=j("Load more replies…"),b2=j('Loading...'),T2=j("

    ");function ZJ(z,J){_(J,!0);let{post:Q}=x1(),K=m(!1);async function Z(B){B.preventDefault(),D(K,!0);try{let V=await E0.loadThreadByAtURI(Q.uri),H=g5(V.thread,Q.pageRoot,0,Q.absoluteLevel);if(D(K,!1),H instanceof D0)window.subtreeRoot=H,J.onLoad(H);else J.onError(Error("Post is not available"))}catch(V){D(K,!1),J.onError(V)}}var X=T2(),w=S(X);{var Y=(B)=>{var V=N2();y((H)=>d(V,"href",H),[()=>n6(Q)]),H0("click",V,Z),F(B,V)},G=(B)=>{var V=b2();F(B,V)};A(w,(B)=>{if(!W(K))B(Y);else B(G,-1)})}O(X),F(z,X),c()}I0(["click"]);class z9{text;facet;constructor(z,J){this.text=z;this.facet=J}get link(){return this.facet?.features.find((z)=>z.$type==="app.bsky.richtext.facet#link")}isLink(){return!!this.link}get mention(){return this.facet?.features.find((z)=>z.$type==="app.bsky.richtext.facet#mention")}isMention(){return!!this.mention}get tag(){return this.facet?.features.find((z)=>z.$type==="app.bsky.richtext.facet#tag")}isTag(){return!!this.tag}}class XJ{unicodeText;facets;constructor(z){if(this.unicodeText=new cZ(z.text),this.facets=z.facets,this.facets)this.facets=this.facets.filter(y2).sort(E2)}get text(){return this.unicodeText.toString()}get length(){return this.unicodeText.length}get graphemeLength(){return this.unicodeText.graphemeLength}*segments(){let z=this.facets||[];if(!z.length){yield new z9(this.unicodeText.utf16);return}let J=0,Q=0;do{let K=z[Q];if(JK.index.byteStart){Q++;continue}if(K.index.byteStartz.index.byteStart-J.index.byteStart,y2=(z)=>z.index.byteStart<=z.index.byteEnd,v2=new TextEncoder,g2=new TextDecoder,h2=new Intl.Segmenter,m2=(z)=>{return Array.from(h2.segment(z)).length};class cZ{utf16;utf8;_graphemeLen;constructor(z){this.utf16=z,this.utf8=v2.encode(z)}get length(){return this.utf8.byteLength}get graphemeLength(){if(!this._graphemeLen)this._graphemeLen=m2(this.utf16);return this._graphemeLen}slice(z,J){return g2.decode(this.utf8.slice(z,J))}toString(){return this.utf16}}var sZ=new TextEncoder,f2=/^```([A-Za-z0-9\+\.\-#]+)?$/,u2=/^```$/;class f9{text;constructor(z){this.text=z}asSingleSegment(){return{kind:"text",text:this.text,start:0,end:this.text.length}}segments(){if(!this.text.includes("`"))return[this.asSingleSegment()];let z=[],J=0,Q=$2(this.text);for(let Z of Q){let X=oZ(this.text,J,Z.start);z.push(...X,Z),J=Z.end}let K=oZ(this.text,J);return z.push(...K),z}removeFacetsInCodeSegments(z){if(!z||!this.text.includes("`"))return z;let J=this.segments().filter((Q)=>Q.kind!="text").map((Q)=>p2(this.text,Q));if(J.length==0)return z;return z.filter((Q)=>{return!J.some((Z)=>Q.index.byteStartZ.byteStart)})}}function $2(z){let J=[],Q=l2(z);for(let K=0;KG>K&&u2.test(Y.text.trim()));if(w==-1)return J;else{let Y=Q[w],G=z.slice(Z.nextStart,Y.start);J.push({kind:"codeBlock",text:G,language:X[1],start:Z.start,end:Y.nextStart}),K=w}}return J}function oZ(z,J,Q=z.length){let K=[],Z=J;while(ZQ)w=Q;let Y=aZ(z,X+1,w);if(Y===void 0){K.push({kind:"text",text:z.slice(Z,Q),start:Z,end:Q});break}K.push({kind:"text",text:z.slice(Z,X),start:Z,end:X}),K.push({kind:"inlineCode",text:z.slice(X+1,Y),start:X,end:Y+1}),Z=Y+1}return K.filter((X)=>X.text.length>0)}function l2(z){let J=[],Q=0;while(Q'),i2=j('
     
    ');function wJ(z,J){_(J,!0);let Q=m(window.Highlighter!==void 0);o0(()=>{let B=()=>{D(Q,!0)};return window.addEventListener("highlighter-loaded",B),()=>{window.removeEventListener("highlighter-loaded",B)}});let K=z0(()=>{if(W(Q)&&window.Highlighter)return window.Highlighter.highlightCodeBlock(J.text,J.language);else return{kind:"plain",text:J.text}}),Z=z0(()=>J.language?`language-${J.language}`:"");var X=J0(),w=p(X);{var Y=(B)=>{var V=d2(),H=S(V);A9(H,()=>lz(W(K).html),!0),O(H),O(V),y(()=>r0(H,1,Y5(W(Z)),"svelte-3accd2686n9af")),F(B,V)},G=(B)=>{var V=i2(),H=S(V),U=S(H,!0);O(H),O(V),y(()=>u(U,W(K).text)),F(B,V)};A(w,(B)=>{if(W(K).kind=="highlighted")B(Y);else B(G,-1)})}F(z,X),c()}var _2=j("
    "),c2=j(" ",1),s2=j(' ');function WJ(z,J){_(J,!0);let Q=S0(J,"renderCode",3,!1),K=z0(()=>new f9(J.text)),Z=z0(()=>Q()?W(K).segments():[W(K).asSingleSegment()]);var X=J0(),w=p(X);N0(w,17,()=>W(Z),w1,(Y,G)=>{var B=J0(),V=p(B);{var H=(q)=>{let C=W(G).text.split(` +`);var P=J0(),I=p(P);N0(I,17,()=>C,w1,(R,v,f)=>{var b=c2(),E=p(b);{var N=(l)=>{var k=_2();F(l,k)};A(E,(l)=>{if(f>0)l(N)})}var h=L(E,1,!0);y(()=>u(h,W(v))),F(R,b)}),F(q,P)},U=(q)=>{var C=s2(),P=S(C,!0);O(C),y(()=>u(P,W(G).text)),F(q,C)},x=(q)=>{wJ(q,{get text(){return W(G).text},get language(){return W(G).language}})};A(V,(q)=>{if(W(G).kind=="text")q(H);else if(W(G).kind=="inlineCode")q(U,1);else q(x,-1)})}F(Y,B)}),F(z,X),c()}var YJ=j(" ");function u9(z,J){_(J,!0);let Q=S0(J,"renderCode",3,!1),K=z0(()=>new f9(J.text)),Z=z0(()=>Q()?W(K).removeFacetsInCodeSegments(J.facets):J.facets),X=z0(()=>new XJ({text:J.text,facets:W(Z)})),w=z0(()=>W(X).segments());var Y=J0(),G=p(Y);N0(G,17,()=>W(w),w1,(B,V)=>{var H=J0(),U=p(H);{var x=(I)=>{var R=YJ(),v=S(R,!0);O(R),y(()=>{d(R,"href",`https://bsky.app/profile/${W(V).mention.did??""}`),u(v,W(V).text)}),F(I,R)},q=(I)=>{var R=J0(),v=p(R);{var f=(N)=>{var h=YJ(),l=S(h,!0);O(h),y(()=>{d(h,"href",W(V).link.uri),u(l,W(V).text)}),F(N,h)},b=z0(()=>E5(W(V).link.uri)),E=(N)=>{var h=n1();y(()=>u(h,`[${W(V).text??""}](${W(V).link.uri??""})`)),F(N,h)};A(v,(N)=>{if(W(b))N(f);else N(E,-1)})}F(I,R)},C=(I)=>{var R=YJ(),v=S(R,!0);O(R),y((f)=>{d(R,"href",f),u(v,W(V).text)},[()=>n8(W(V).tag.tag)]),F(I,R)},P=(I)=>{WJ(I,{get text(){return W(V).text},get renderCode(){return Q()}})};A(U,(I)=>{if(W(V).mention)I(x);else if(W(V).link)I(q,1);else if(W(V).tag)I(C,2);else I(P,-1)})}F(B,H)}),F(z,Y),c()}var o2=j('
    '),a2=j('
    ');function $9(z,J){_(J,!0);let Q="search-results",{post:K}=x1(),Z=S0(J,"highlightedMatches",3,void 0),X=m(void 0),w=m(q0([]));function Y(x){let q=new RegExp(`\\b(${x.join("|")})\\b`,"gi"),C=document.createTreeWalker(W(X),NodeFilter.SHOW_TEXT),P=[];while(C.nextNode()){let R=C.currentNode;if(!R.textContent)continue;q.lastIndex=0;for(;;){let v=q.exec(R.textContent);if(v===null)break;let f=new Range;f.setStart(R,v.index),f.setEnd(R,v.index+v[0].length),P.push(f)}}let I=CSS.highlights.get(Q)||new Highlight;P.forEach((R)=>I.add(R)),CSS.highlights.set(Q,I),D(w,P,!0)}function G(){let x=CSS.highlights.get(Q)||new Highlight;W(w).forEach((q)=>x.delete(q)),CSS.highlights.set(Q,x),D(w,[],!0)}o0(()=>{if(Z()&&Z().length>0)return Y(Z()),()=>{G()};else return});var B=J0(),V=p(B);{var H=(x)=>{var q=o2();A9(q,()=>lz(K.originalFediContent),!0),O(q),t1(q,(C)=>D(X,C),()=>W(X)),F(x,q)},U=(x)=>{var q=a2(),C=S(q);u9(C,{get text(){return K.text},get facets(){return K.facets},renderCode:!0}),O(q),t1(q,(P)=>D(X,P),()=>W(X)),F(x,q)};A(V,(x)=>{if(K.originalFediContent)x(H);else x(U,-1)})}F(z,B),c()}class GJ{post;placement;constructor(z,J){this.post=z,this.placement=J}get timeFormatForTimestamp(){if(this.placement=="quotes"||this.placement=="feed")return{weekday:"short",day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"numeric"};else if(this.post.isPageRoot||this.placement!="thread")return{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"numeric"};else if(this.post.pageRoot&&!AZ(this.post.createdAt,this.post.pageRoot.createdAt))return{day:"numeric",month:"short",hour:"numeric",minute:"numeric"};else return{hour:"numeric",minute:"numeric"}}get formattedTimestamp(){let z=this.timeFormatForTimestamp;return this.post.createdAt.toLocaleString(i0.dateLocale,z)}}var r2=j('');function J9(z,J){_(J,!0);let Q=S0(J,"title",3,"");var K=r2();y((Z)=>{d(K,"href",Z),d(K,"title",Q())},[()=>n6(J.post)]),F(z,K),c()}var n2=j(''),t2=j('Avatar'),e2=j(''),zw=j('
    '),Jw=j('

    '),Qw=j('

    ');function BJ(z,J){_(J,!0);let Q=S0(J,"element",15),K=z0(()=>{let b=J.profile.displayName?.trim();if(b)return b;else if(J.profile.handle.endsWith(".bsky.social"))return J.profile.handle.replace(/\.bsky\.social$/,"");else return J.profile.handle}),Z=z0(()=>{if(J.profile.handle.endsWith(".ap.brid.gy"))return`@${J.profile.handle.replace(/\.ap\.brid\.gy$/,"").replace(".","@")}`;else if(J.profile.handle=="handle.invalid")return"[invalid handle]";else return`@${J.profile.handle}`});var X=Qw(),w=S(X),Y=S(w),G=S(Y);{var B=(b)=>{var E=n2();F(b,E)},V=(b)=>{var E=t2();y(()=>d(E,"src",J.profile.avatar)),F(b,E)},H=(b)=>{var E=e2();F(b,E)};A(G,(b)=>{if(J.profile.viewer?.muted)b(B);else if(J.profile.avatar)b(V,1);else b(H,-1)})}O(Y);var U=L(Y,2),x=S(U),q=S(x,!0);O(x);var C=L(x,2),P=S(C,!0);O(C);var I=L(C,2);{var R=(b)=>{var E=zw(),N=S(E,!0);O(E),y(()=>u(N,J.profile.pronouns)),F(b,E)};A(I,(b)=>{if(J.profile.pronouns)b(R)})}var v=L(I,2);{var f=(b)=>{var E=Jw(),N=S(E);u9(N,{get text(){return J.profile.description},facets:[]}),O(E),F(b,E)};A(v,(b)=>{if(J.profile.description)b(f)})}O(U),O(w),O(X),t1(X,(b)=>Q(b),()=>Q()),y(()=>{u(q,W(K)),u(P,W(Z))}),$0("mouseenter",X,function(...b){J.onmouseenter?.apply(this,b)}),$0("mouseleave",X,function(...b){J.onmouseleave?.apply(this,b)}),F(z,X),c()}var Kw=CSS.supports("anchor-name: --x")&&CSS.supports("anchor-scope: --x")&&CSS.supports("position-anchor: --x")&&CSS.supports("position-area: block-start");function UJ(z,J){_(J,!0);let Q=500,K=120,Z=m(void 0),X=m(void 0),w;async function Y(C){try{let P=await E0.loadUserProfile(J.did,!0,{abortSignal:C});if(!C.aborted)D(Z,P,!0);return P}catch(P){if(!C.aborted)console.warn("Could not load profile for popover:",P);return null}}function G(){if(w)clearTimeout(w),w=void 0}function B(){if(G(),J.anchorHovered)return;if(W(X)?.matches(":popover-open"))W(X).hidePopover();J.onDismissed()}function V(){G()}function H(){G(),w=setTimeout(B,K)}o0(()=>{if(!Kw)return;J.anchor.style.setProperty("anchor-name","--profile-popover-anchor");let C=new AbortController,P=Y(C.signal),I=setTimeout(async()=>{let R=await P;if(C.signal.aborted||!R)return;await s5(),W(X)?.showPopover()},Q);return()=>{if(C.abort(),clearTimeout(I),G(),W(X)?.matches(":popover-open"))W(X).hidePopover();J.anchor.style.removeProperty("anchor-name")}}),o0(()=>{if(G(),!J.anchorHovered)H()});var U=J0(),x=p(U);{var q=(C)=>{BJ(C,{get profile(){return W(Z)},onmouseenter:V,onmouseleave:H,get element(){return W(X)},set element(P){D(X,P,!0)}})};A(x,(C)=>{if(W(Z))C(q)})}F(z,U),c()}var Zw=j(''),Xw=j('Avatar'),ww=j(''),Ww=j(' Mastodon logo',1),Yw=j(' '),Gw=j('• ',1),Bw=j('

    •

    ');function HJ(z,J){_(J,!0);let{post:Q,placement:K}=x1(),Z=new GJ(Q,K),X=m(void 0),w=m(void 0),Y=m(!1);o0(()=>{if(W(X))E4.observe(W(X));return()=>{W(X)&&E4.unobserve(W(X))}});function G($){D(w,$.currentTarget,!0),D(Y,!0)}function B(){D(Y,!1)}function V(){D(w,void 0),D(Y,!1)}var H=Bw(),U=S(H),x=S(U),q=S(x);{var C=($)=>{var n=Zw();F($,n)},P=($)=>{var n=Xw();t1(n,(K0)=>D(X,K0),()=>W(X)),y(()=>d(n,"src",Q.author.avatar)),F($,n)},I=($)=>{var n=ww();F($,n)};A(q,($)=>{if(Q.muted)$(C);else if(Q.author.avatar)$(P,1);else $(I,-1)})}O(x);var R=L(x),v=L(R);{var f=($)=>{var n=Ww(),K0=p(n),Z0=S(K0);O(K0),F1(2),y(()=>{d(K0,"href",Q.linkToAuthor),u(Z0,`@${Q.authorFediHandle??""}`)}),$0("mouseenter",K0,G),$0("mouseleave",K0,B),F($,n)},b=($)=>{var n=Yw(),K0=S(n,!0);O(n),y(()=>{d(n,"href",Q.linkToAuthor),u(K0,Q.hasValidHandle?`@${Q.author.handle}`:"[invalid handle]")}),$0("mouseenter",n,G),$0("mouseleave",n,B),F($,n)};A(v,($)=>{if(Q.isFediPost)$(f);else $(b,-1)})}var E=L(v,4),N=S(E,!0);O(E);var h=L(E,2);{var l=($)=>{var n=Gw(),K0=L(p(n),2);{var Z0=(P0)=>{J9(P0,{get post(){return Q},title:"Load thread"})},C0=z0(()=>["quote","quotes","feed"].includes(K)),L1=(P0)=>{J9(P0,{get post(){return Q},title:"Load this subtree"})};A(K0,(P0)=>{if(W(C0))P0(Z0);else P0(L1,-1)})}F($,n)},k=z0(()=>Q.replyCount>0&&!Q.isPageRoot||["quote","quotes","feed"].includes(K));A(h,($)=>{if(W(k))$(l)})}O(U);var i=L(U,2);{var t=($)=>{UJ($,{get did(){return Q.author.did},get anchor(){return W(w)},get anchorHovered(){return W(Y)},onDismissed:V})};A(i,($)=>{if(W(w))$(t)})}O(H),y(($)=>{u(R,` ${Q.authorDisplayName??""} `),d(E,"href",Q.linkToPost),d(E,"title",$),u(N,Z.formattedTimestamp)},[()=>Q.createdAt.toISOString()]),$0("mouseenter",x,G),$0("mouseleave",x,B),F(z,H),c()}var Uw=j(' '),Hw=j('

    ');function VJ(z,J){_(J,!1);let{post:Q}=x1();A4();var K=Hw();N0(K,5,()=>Q.tags,w1,(Z,X)=>{var w=Uw(),Y=S(w);O(w),y((G)=>{d(w,"href",G),u(Y,`# ${W(X)??""}`)},[()=>n8(W(X))]),F(Z,w)}),O(K),F(z,K),c()}var Vw=j(' '),xw=j(' '),qw=j(' '),Fw=j(' '),Mw=j(' '),Ow=j(''),Sw=j('\uD83D\uDEAB Post unavailable'),Cw=j('

    ');function xJ(z,J){_(J,!0);let{post:Q,placement:K}=x1(),Z=m(q0(Q.liked)),X=m(q0(Q.likeCount)),w=m(!1);async function Y(){try{if(Q.hasViewerInfo)await B();else if(j1.loggedIn)await G();else t8({showClose:!0})}catch(l){y5(l)}}async function G(){if(await F0.loadPostViewerInfo(Q))if(Q.liked)D(Z,!0);else await B();else D(w,!0)}async function B(){if(!W(Z)){let l=await F0.likePost(Q);Q.viewerLike=l.uri,D(Z,!0),D(X,W(X)+1)}else await F0.removeLike(Q.viewerLike),Q.viewerLike=void 0,D(Z,!1),D(X,W(X)-1)}var V=Cw(),H=S(V),U=S(H),x=L(U,2),q=S(x,!0);O(x),O(H);var C=L(H,2);{var P=(l)=>{var k=Vw(),i=L(S(k));O(k),y(()=>u(i,` ${Q.repostCount??""}`)),F(l,k)};A(C,(l)=>{if(Q.repostCount>0)l(P)})}var I=L(C,2);{var R=(l)=>{var k=xw(),i=L(S(k),2),t=S(i,!0);O(i),O(k),y(($,n)=>{d(i,"href",$),u(t,n)},[()=>n6(Q),()=>$z(Q.replyCount,"reply","replies")]),F(l,k)};A(I,(l)=>{if(Q.replyCount>0&&(K=="quotes"||K=="feed"))l(R)})}var v=L(I,2);{var f=(l)=>{var k=J0(),i=p(k);{var t=(n)=>{var K0=qw(),Z0=L(S(K0),2),C0=S(Z0,!0);O(Z0),O(K0),y((L1,P0)=>{d(Z0,"href",L1),u(C0,P0)},[()=>o4(Q.linkToPost),()=>$z(J.quoteCount,"quote")]),F(n,K0)},$=(n)=>{var K0=Fw(),Z0=L(S(K0));O(K0),y((C0)=>{d(K0,"href",C0),u(Z0,` ${J.quoteCount??""}`)},[()=>o4(Q.linkToPost)]),F(n,K0)};A(i,(n)=>{if(K=="quotes"||K=="feed"||Q.isPageRoot)n(t);else n($,-1)})}F(l,k)};A(v,(l)=>{if(J.quoteCount&&K!="quote")l(f)})}var b=L(v,2);{var E=(l)=>{let k=Q.hasDisabledReplies?"Disabled replies":"Limited replies";var i=J0(),t=p(i);{var $=(K0)=>{var Z0=Mw(),C0=L(S(Z0));O(Z0),y(()=>u(C0,` ${k}`)),F(K0,Z0)},n=(K0)=>{var Z0=Ow(),C0=S(Z0);O(Z0),y(()=>d(C0,"title",k)),F(K0,Z0)};A(t,(K0)=>{if(K=="thread")K0($);else if(K=="quotes")K0(n,1)})}F(l,i)};A(b,(l)=>{if(Q.isRestrictingReplies)l(E)})}var N=L(b,2);{var h=(l)=>{var k=Sw();F(l,k)};A(N,(l)=>{if(W(w))l(h)})}O(V),y(()=>{r0(U,1,`fa-solid fa-heart ${W(Z)?"liked":""}`,"svelte-1tsy42z5eauyq"),u(q,W(X))}),H0("click",U,Y),F(z,V),c()}I0(["click"]);var rZ=j("

    [Image]

    "),Pw=j("

    "),jw=j('
    Show alt
    '),Lw=j(" ",1),Iw=j("
    ");function qJ(z,J){_(J,!0);let{post:Q}=x1(),K=z0(()=>J.embed instanceof d8||J.embed instanceof i8);function Z(w){let Y=w.image.ref.$link;return`https://cdn.bsky.app/img/feed_fullsize/plain/${Q.author.did}/${Y}@jpeg`}var X=Iw();N0(X,21,()=>J.embed.images,w1,(w,Y)=>{var G=Lw(),B=p(G);{var V=(q)=>{var C=rZ(),P=L(S(C));F1(),O(C),y((I)=>d(P,"href",I),[()=>Z(W(Y))]),F(q,C)},H=(q)=>{var C=J0(),P=p(C);{var I=(f)=>{var b=rZ(),E=L(S(b));F1(),O(b),y(()=>d(E,"href",W(Y).fullsize)),F(f,b)},R=z0(()=>E5(W(Y).fullsize)),v=(f)=>{var b=Pw(),E=S(b);O(b),y(()=>u(E,`[${W(Y).fullsize??""}]`)),F(f,b)};A(P,(f)=>{if(W(R))f(I);else f(v,-1)})}F(q,C)};A(B,(q)=>{if(W(K))q(V);else q(H,-1)})}var U=L(B,2);{var x=(q)=>{var C=jw(),P=L(S(C));O(C),y(()=>u(P,` ${W(Y).alt??""}`)),F(q,C)};A(U,(q)=>{if(W(Y).alt)q(x)})}F(w,G)}),O(X),F(z,X),c()}var Dw=j(''),Rw=j(''),Aw=j('
    ');function FJ(z,J){_(J,!0);let Q=m(!0),K=m(!1),Z=m(!1),X=m(500),w=m(200),Y=z0(()=>{if(J.description&&J.description.match(/^alt: /i)&&J.description.slice(5)!=J.title)return J.description.slice(5);else return J.title});function G(){D(Q,!1)}function B(P){let I=P.target;if(I.naturalWidth{var I=Dw(),R=L(S(I),2),v=S(R,!0);O(R),O(I),y(()=>{r0(I,1,`placeholder ${W(Q)?"":"loading"}`,"svelte-qz3gnbyjesf9"),u(v,W(Y))}),H0("click",I,G),F(P,I)};A(U,(P)=>{if(W(Q)||!W(K))P(x)})}var q=L(U,2);{var C=(P)=>{var I=Rw();let R;var v=S(I);let f;O(I),y(()=>{R=r0(I,1,"gif-wrapper svelte-qz3gnbyjesf9",null,R,{loading:!W(K)}),d(I,"aria-label",W(Z)?"Play GIF":"Pause GIF"),d(v,"src",W(Z)?J.staticURL:J.gifURL),r0(v,1,Y5(W(Z)?"static":""),"svelte-qz3gnbyjesf9"),d(v,"alt",J.title?`GIF: ${J.title}`:"GIF animation"),f=h6(v,"",f,{"max-width":`${W(X)??""}px`,"max-height":`${W(w)??""}px`})}),H0("click",I,V),$0("load",v,B),v8(v),F(P,I)};A(q,(P)=>{if(!W(Q))P(C)})}O(H),F(z,H),c()}I0(["click"]);var kw=j('

    '),Nw=j('

    '),bw=j("

    ");function MJ(z,J){_(J,!0);let Q=[/^media\.tenor\.com$/,/^static\.klipy\.com$/,/^media[0-9]?\.giphy\.com/],{post:K}=x1(),Z=z0(()=>J.embed.url?l8(J.embed.url):void 0),X=z0(()=>W(Z)?Q.some((H)=>H.test(W(Z).hostname)):!1),w=z0(()=>{if(J.embed instanceof _8&&J.embed.thumb)return`https://cdn.bsky.app/img/avatar/feed_thumbnail/${K.author.did}/${J.embed.thumb.ref.$link}@jpeg`;else if(J.embed instanceof v5)return(J.embed.thumb?l8(J.embed.thumb):void 0)?.href;return});var Y=J0(),G=p(Y);{var B=(H)=>{var U=J0(),x=p(U);{var q=(P)=>{FJ(P,{get gifURL(){return W(Z).href},get staticURL(){return W(w)},get title(){return J.embed.title},get description(){return J.embed.description}})},C=(P)=>{var I=Nw(),R=S(I),v=S(R),f=S(v,!0);O(v);var b=L(v,2),E=S(b,!0);O(b);var N=L(b,2);{var h=(l)=>{var k=kw(),i=S(k,!0);O(k),y((t)=>u(i,t),[()=>RZ(J.embed.description,300)]),F(l,k)};A(N,(l)=>{if(J.embed.description)l(h)})}O(R),O(I),y(()=>{d(I,"href",W(Z).href),u(f,W(Z).hostname),u(E,J.embed.title||J.embed.url)}),F(P,I)};A(x,(P)=>{if(W(X)&&W(w))P(q);else P(C,-1)})}F(H,U)},V=(H)=>{var U=bw(),x=S(U);O(U),y(()=>u(x,`[Link: ${J.embed.url??""}]`)),F(H,U)};A(G,(H)=>{if(W(Z))H(B);else H(V,-1)})}F(z,Y),c()}var Tw=j('Avatar'),Ew=j('

    '),yw=j('

    ');function OJ(z,J){_(J,!0);function Q(P){let{repo:I,rkey:R}=d0(P.uri);return`https://bsky.app/profile/${I}/feed/${R}`}var K=yw(),Z=S(K),X=S(Z);{var w=(P)=>{var I=Tw();y(()=>d(I,"src",J.feed.avatar)),F(P,I)};A(X,(P)=>{if(J.feed.avatar)P(w)})}var Y=L(X,2),G=S(Y),B=L(G),V=S(B);O(B),O(Y);var H=L(Y,2);{var U=(P)=>{var I=Ew(),R=S(I,!0);O(I),y(()=>u(R,J.feed.description)),F(P,I)};A(H,(P)=>{if(J.feed.description)P(U)})}var x=L(H,2),q=L(S(x),2),C=S(q,!0);O(q),O(x),O(Z),O(K),y((P)=>{d(K,"href",P),u(G,`${J.feed.title??""} `),u(V,`• Feed by @${J.feed.author.handle??""}`),u(C,J.feed.likeCount)},[()=>Q(J.feed)]),F(z,K),c()}var vw=j('

    '),gw=j('

    ');function SJ(z,J){_(J,!0);function Q(H){let{repo:U,rkey:x}=d0(H.uri);return`https://bsky.app/starter-pack/${U}/${x}`}var K=gw(),Z=S(K),X=S(Z),w=S(X),Y=L(w),G=S(Y);O(Y),O(X);var B=L(X,2);{var V=(H)=>{var U=vw(),x=S(U,!0);O(U),y(()=>u(x,J.starterPack.description)),F(H,U)};A(B,(H)=>{if(J.starterPack.description)H(V)})}O(Z),O(K),y((H)=>{d(K,"href",H),u(w,`${J.starterPack.title??""} `),u(G,`• Starter pack by @${J.starterPack.author.handle??""}`)},[()=>Q(J.starterPack)]),F(z,K),c()}var hw=j('Avatar'),mw=j('

    '),fw=j('

    ');function CJ(z,J){_(J,!0);function Q(q){let{repo:C,rkey:P}=d0(q.uri);return`https://bsky.app/profile/${C}/lists/${P}`}function K(q){switch(q.purpose){case"app.bsky.graph.defs#curatelist":return"User list";case"app.bsky.graph.defs#modlist":return"Mute list";default:return"List"}}var Z=fw(),X=S(Z),w=S(X);{var Y=(q)=>{var C=hw();y(()=>d(C,"src",J.list.avatar)),F(q,C)};A(w,(q)=>{if(J.list.avatar)q(Y)})}var G=L(w,2),B=S(G),V=L(B),H=S(V);O(V),O(G);var U=L(G,2);{var x=(q)=>{var C=mw(),P=S(C,!0);O(C),y(()=>u(P,J.list.description)),F(q,C)};A(U,(q)=>{if(J.list.description)q(x)})}O(X),O(Z),y((q,C)=>{d(Z,"href",q),u(B,`${J.list.title??""} `),u(H,`• ${C??""} by @${J.list.author.handle??""}`)},[()=>Q(J.list),()=>K(J.list)]),F(z,Z),c()}var nZ=(z,J=J6)=>{var Q=J0(),K=p(Q);{var Z=(B)=>{var V=uw(),H=S(V);U8(H,{get post(){return J()},placement:"quote"}),O(V),F(B,V)},X=(B)=>{OJ(B,{get feed(){return J()}})},w=(B)=>{SJ(B,{get starterPack(){return J()}})},Y=(B)=>{CJ(B,{get list(){return J()}})},G=(B)=>{var V=$w(),H=S(V),U=S(H);O(H),O(V),y(()=>u(U,`[${J().type??""}]`)),F(B,V)};A(K,(B)=>{if(J()instanceof W8)B(Z);else if(J()instanceof v9)B(X,1);else if(J()instanceof h9)B(w,2);else if(J()instanceof g9)B(Y,3);else B(G,-1)})}F(z,Q)},uw=j('
    '),$w=j('

    '),lw=j('

    Error loading quoted post

    '),pw=j('

    Loading quoted post...

    ');function tz(z,J){_(J,!0);let{post:Q}=x1();async function K(){let{collection:G}=d0(J.record.uri);if(G=="app.bsky.feed.post"){let B=await E0.loadPostIfExists(J.record.uri);if(B)return new D0(B);else return new f6(Q.data)}else{let V=(await E0.loadPostIfExists(Q.uri).then((H)=>H&&new D0(H)))?.embed;if(V instanceof s8||V instanceof o8)return V.record;else return new f6(J.record)}}var Z=J0(),X=p(Z);{var w=(G)=>{var B=J0(),V=p(B);Q8(V,K,(H)=>{var U=pw();F(H,U)},(H,U)=>{nZ(H,()=>W(U))},(H)=>{var U=lw();F(H,U)}),F(G,B)},Y=(G)=>{nZ(G,()=>J.record)};A(X,(G)=>{if(J.record.constructor===Y6&&!J.record.type)G(w);else G(Y,-1)})}F(z,Z),c()}var tZ=j("

    [Video]

    "),dw=j("

    "),iw=j('
    Show alt
    '),_w=j("
    ");function PJ(z,J){_(J,!0);let{post:Q}=x1();function K(V){let H=V.ref.$link;return`https://video.bsky.app/watch/${Q.author.did}/${H}/playlist.m3u8`}var Z=_w(),X=S(Z);{var w=(V)=>{var H=J0(),U=p(H);{var x=(q)=>{var C=tZ(),P=L(S(C));F1(),O(C),y((I)=>d(P,"href",I),[()=>K(J.embed.video)]),F(q,C)};A(U,(q)=>{if(J.embed.video)q(x)})}F(V,H)},Y=(V)=>{var H=J0(),U=p(H);{var x=(P)=>{var I=tZ(),R=L(S(I));F1(),O(I),y(()=>d(R,"href",J.embed.playlistURL)),F(P,I)},q=z0(()=>J.embed.playlistURL&&E5(J.embed.playlistURL)),C=(P)=>{var I=dw(),R=S(I);O(I),y(()=>u(R,`[${J.embed.playlistURL??""}]`)),F(P,I)};A(U,(P)=>{if(W(q))P(x);else P(C,-1)})}F(V,H)};A(X,(V)=>{if(J.embed instanceof c8)V(w);else V(Y,-1)})}var G=L(X,2);{var B=(V)=>{var H=iw(),U=L(S(H));O(H),y(()=>u(U,` ${J.embed.alt??""}`)),F(V,H)};A(G,(V)=>{if(J.embed.alt)V(B)})}O(Z),F(z,Z),c()}var cw=j("
    "),sw=j("

    "),ow=j('
    ');function H8(z,J){_(J,!0);var Q=ow(),K=S(Q);{var Z=(V)=>{tz(V,{get record(){return J.embed.record}})},X=(V)=>{var H=cw(),U=S(H);H8(U,{get embed(){return J.embed.media}});var x=L(U,2);tz(x,{get record(){return J.embed.record}}),O(H),F(V,H)},w=(V)=>{qJ(V,{get embed(){return J.embed}})},Y=(V)=>{MJ(V,{get embed(){return J.embed}})},G=(V)=>{PJ(V,{get embed(){return J.embed}})},B=(V)=>{var H=sw(),U=S(H);O(H),y(()=>u(U,`[${J.embed.type??""}]`)),F(V,H)};A(K,(V)=>{if(J.embed instanceof pz||J.embed instanceof s8)V(Z);else if(J.embed instanceof dz||J.embed instanceof o8)V(X,1);else if(J.embed instanceof d8||J.embed instanceof iz||J.embed instanceof i8||J.embed instanceof _z)V(w,2);else if(J.embed instanceof _8||J.embed instanceof v5)V(Y,3);else if(J.embed instanceof c8||J.embed instanceof cz)V(G,4);else V(B,-1)})}O(Q),F(z,Q),c()}var aw=j(" "),eZ=j("See parent post"),rw=j('

    ');function l9(z,J){_(J,!0);let Q=z0(()=>d0(J.uri)),K=z0(()=>W(Q).repo),Z=z0(()=>W(Q).rkey);var X=rw(),w=L(S(X),2);Q8(w,()=>E0.fetchHandleForDid(W(K)),(Y)=>{var G=eZ();y((B)=>d(G,"href",B),[()=>j6(W(K),W(Z))]),F(Y,G)},(Y,G)=>{var B=aw(),V=S(B);O(B),y((H)=>{d(B,"href",H),u(V,`See parent post (@${W(G)??""})`)},[()=>j6(W(G),W(Z))]),F(Y,B)},(Y)=>{var G=eZ();y((B)=>d(G,"href",B),[()=>j6(W(K),W(Z))]),F(Y,G)}),O(X),F(z,X),c()}var nw=j(" ",1);function jJ(z,J){_(J,!0),LJ({post:J.post,placement:J.placement});var Q=nw(),K=p(Q);{var Z=(G)=>{l9(G,{get uri(){return J.post.parentReference.uri}})};A(K,(G)=>{if(J.post.isPageRoot&&J.post.parentReference)G(Z)})}var X=L(K,2);$9(X,{});var w=L(X,2);{var Y=(G)=>{H8(G,{get embed(){return J.post.embed}})};A(w,(G)=>{if(J.post.embed)G(Y)})}F(z,Q),c()}var tw=j('( ',1),ew=j('( )',1);function Q9(z,J){_(J,!0);let Q=S0(J,"status",3,void 0),K=m(void 0),Z=z0(()=>W(K)?`@${W(K)}`:"see author");o0(()=>{let B=d0(J.post.uri).repo;E0.fetchHandleForDid(B).then((V)=>{D(K,V,!0)})});var X=J0(),w=p(X);{var Y=(B)=>{var V=tw(),H=L(p(V)),U=S(H,!0);O(H);var x=L(H);y(()=>{d(H,"href",J.post.didLinkToAuthor),u(U,W(Z)),u(x,`, ${Q()??""})`)}),F(B,V)},G=(B)=>{var V=ew(),H=L(p(V)),U=S(H,!0);O(H),F1(),y(()=>{d(H,"href",J.post.didLinkToAuthor),u(U,W(Z))}),F(B,V)};A(w,(B)=>{if(Q())B(Y);else B(G,-1)})}F(z,X),c()}var zW=j('

    Deleted post

    ');function p9(z,J){var Q=zW(),K=L(S(Q),4);Q9(K,{get post(){return J.post}}),O(Q),F(z,Q)}var JW=j('Load post…'),QW=j('

    '),KW=j('

    ',1),ZW=j('• ',1),XW=j('

    ',1);function K9(z,J){_(J,!0);let Q=z0(()=>i0.biohazardsEnabled!==!1),K=m(!1),Z=m(!1),X=m(void 0);async function w(q){q.preventDefault(),D(K,!0);let C=await E0.reloadBlockedPost(J.post.uri);if(C)D(X,C,!0);else D(Z,!0)}function Y(q){let C=q.author.viewer;if(C)return!(C.blockedBy||C.blocking);else return!0}function G(){if(J.post instanceof a8)return;else if(J.post.blockedByUser)return"has blocked you";else if(J.post.blocksUser)return"you've blocked them";else return}var B=J0(),V=p(B);{var H=(q)=>{var C=KW(),P=p(C),I=L(S(P),2),R=S(I,!0);O(I);var v=L(I,2);{var f=(N)=>{{let h=z0(G);Q9(N,{get post(){return J.post},get status(){return W(h)}})}};A(v,(N)=>{if(W(Q))N(f)})}O(P);var b=L(P,2);{var E=(N)=>{var h=QW(),l=S(h);{var k=(t)=>{var $=JW();H0("click",$,w),F(t,$)},i=(t)=>{var $=n1(" ");F(t,$)};A(l,(t)=>{if(!W(K))t(k);else t(i,-1)})}O(h),F(N,h)};A(b,(N)=>{if(W(Q))N(E)})}y(()=>u(R,J.reason)),F(q,C)},U=(q)=>{var C=XW(),P=p(C),I=L(S(P),2),R=S(I,!0);O(I);var v=L(I,2);{let h=z0(G);Q9(v,{get post(){return J.post},get status(){return W(h)}})}var f=L(v,2);{var b=(h)=>{var l=ZW(),k=L(p(l),2);J9(k,{get post(){return W(X)},title:"Load thread"}),F(h,l)},E=z0(()=>Y(W(X)));A(f,(h)=>{if(W(E))h(b)})}O(P);var N=L(P,2);jJ(N,{get post(){return W(X)},get placement(){return J.placement}}),y(()=>u(R,J.reason)),F(q,C)},x=(q)=>{{let C=z0(()=>new f6(J.post.data));p9(q,{get post(){return W(C)}})}};A(V,(q)=>{if(!W(Z)&&!W(X))q(H);else if(W(X))q(U,1);else q(x,-1)})}F(z,B),c()}I0(["click"]);var wW=j("
    ");function U8(z,J){var Q=J0(),K=p(Q);{var Z=(w)=>{l1(w,{get post(){return J.post},get placement(){return J.placement}})},X=(w)=>{var Y=wW(),G=S(Y);{var B=(U)=>{K9(U,{get post(){return J.post},get placement(){return J.placement},reason:"Blocked post"})},V=(U)=>{K9(U,{get post(){return J.post},get placement(){return J.placement},reason:"Hidden quote"})},H=(U)=>{p9(U,{get post(){return J.post}})};A(G,(U)=>{if(J.post instanceof r6)U(B);else if(J.post instanceof a8)U(V,1);else U(H,-1)})}O(Y),y(()=>r0(Y,1,`post post-${J.placement??""} blocked`,"svelte-15n9djnirzicp")),F(w,Y)};A(K,(w)=>{if(J.post instanceof D0)w(Z);else w(X,-1)})}F(z,Q)}var[x1,LJ]=v7(),WW=new Set(["$$slots","$$events","$$legacy","post","placement","highlightedMatches"]),YW=j('
    Edited – show original text:

    '),GW=j(" ",1),BW=j('

    ⚠️ account labelled ‘needs-review’

    '),UW=j('
    '),HW=j('
  • – from
  • '),VW=j('

    ',1),xW=j('

    Some replies are missing (might be taken down by moderation)

    '),qW=j('
    ');function l1(z,J){_(J,!0);let Q=(s)=>{var j0=GW(),y0=p(j0);$9(y0,{get highlightedMatches(){return Z()}});var Q0=L(y0,2);{var Y0=(g0)=>{VJ(g0,{})};A(Q0,(g0)=>{if(K().tags)g0(Y0)})}var U0=L(Q0,2);{var R0=(g0)=>{var z6=YW(),b1=L(S(z6),2),L6=S(b1,!0);O(b1),O(z6),y(()=>u(L6,K().originalText)),F(g0,z6)};A(U0,(g0)=>{if(K().hasBeenEdited)g0(R0)})}var V0=L(U0,2);{var M0=(g0)=>{H8(g0,{get embed(){return K().embed}})},e0=z0(()=>K().embed&&x(K().embed));A(V0,(g0)=>{if(W(e0))g0(M0)})}var A0=L(V0,2);{var t6=(g0)=>{QJ(g0,{get url(){return K().originalFediURL}})},L0=z0(()=>K().originalFediURL&&E5(K().originalFediURL));A(A0,(g0)=>{if(W(L0))g0(t6)})}var _1=L(A0,2);{var v0=(g0)=>{xJ(g0,{get quoteCount(){return W(V)}})};A(_1,(g0)=>{if(K().likeCount!==void 0||K().repostCount!==void 0)g0(v0)})}F(s,j0)},K=S0(J,"post",7),Z=S0(J,"highlightedMatches",3,void 0),X=G5(J,WW),w=m(!1),Y=m(q0(K().replies)),G=m(!1),B=m(void 0);LJ({post:K(),placement:J.placement});let V=m(q0(K().quoteCount));function H(s){D(V,s,!0)}function U(s){if(s instanceof D0)return!0;else if(s instanceof r6)return i0.biohazardsEnabled!==!1;else return!1}function x(s){if(K().originalFediURL){if(s instanceof v5&&s.title?.startsWith("Original post on "))return!1}return!0}function q(s){K().updateDataFromPost(s),D(Y,K().replies,!0)}function C(s,j0){if(W(Y).push(...s),K().replies=W(Y),s.length>0&&j0.length===0)D(B,void 0);else if(s.length===0&&j0.length===0)D(B,[],!0);else D(B,j0,!0);D(G,!0)}function P(s){if(s.profile)return"account is active";else if(s.pdsError)return"PDS unavailable";else if(s.active)return"account active on its PDS";else if(s.status=="takendown")return"account taken down";else return`account ${s.status}`}function I(s){y5(s)}var R={setQuoteCount:H},v=qW();let f;var b=S(v);HJ(b,{});var E=L(b,2);{var N=(s)=>{JJ(s,{get collapsed(){return W(w)},set collapsed(j0){D(w,j0,!0)}})};A(E,(s)=>{if(J.placement=="thread"&&!K().isPageRoot)s(N)})}var h=L(E,2);{var l=(s)=>{var j0=BW();F(s,j0)};A(h,(s)=>{if(K().labelledNeedsReview)s(l)})}var k=L(h,2),i=S(k);{var t=(s)=>{var j0=UW(),y0=S(j0),Q0=S(y0,!0);O(y0);var Y0=L(y0,2);Q(Y0),O(j0),y(()=>u(Q0,K().muteList?`Muted (${K().muteList})`:"Muted - click to show")),F(s,j0)},$=(s)=>{Q(s)};A(i,(s)=>{if(K().muted)s(t);else s($,-1)})}var n=L(i,2);{var K0=(s)=>{l1(s,{get post(){return W(Y)[0]},placement:"thread",class:"flat"})},Z0=(s)=>{var j0=J0(),y0=p(j0);N0(y0,17,()=>W(Y),(Q0)=>Q0.uri,(Q0,Y0)=>{var U0=J0(),R0=p(U0);{var V0=(e0)=>{U8(e0,{get post(){return W(Y0)},placement:"thread"})},M0=z0(()=>U(W(Y0)));A(R0,(e0)=>{if(W(M0))e0(V0)})}F(Q0,U0)}),F(s,j0)};A(n,(s)=>{if(K().replyCount==1&&W(Y)[0]instanceof D0&&W(Y)[0].author.did==K().author.did)s(K0);else s(Z0,-1)})}var C0=L(n,2);{var L1=(s)=>{var j0=J0(),y0=p(j0);x4(y0,()=>W(Y),(Q0)=>{var Y0=J0(),U0=p(Y0);{var R0=(M0)=>{ZJ(M0,{onLoad:q,onError:I})},V0=(M0)=>{KJ(M0,{onLoad:C,onError:I})};A(U0,(M0)=>{if(K().hasMoreReplies)M0(R0);else if(K().hasHiddenReplies&&i0.biohazardsEnabled!==!1)M0(V0,1)})}F(Q0,Y0)}),F(s,j0)};A(C0,(s)=>{if(J.placement=="thread"&&!W(G))s(L1)})}var P0=L(C0,2);{var t0=(s)=>{var j0=J0(),y0=p(j0);{var Q0=(U0)=>{var R0=VW(),V0=p(R0),M0=L(S(V0),2);{var e0=(L0)=>{var _1=n1();y(()=>u(_1,`${W(B).length??""} replies are unavailable:`)),F(L0,_1)},A0=(L0)=>{var _1=n1("1 reply is unavailable:");F(L0,_1)};A(M0,(L0)=>{if(W(B).length>1)L0(e0);else if(W(B).length==1)L0(A0,1)})}O(V0);var t6=L(V0,2);N0(t6,21,()=>W(B),w1,(L0,_1)=>{var v0=z0(()=>I7(W(_1),2));let g0=()=>W(v0)[0],z6=()=>W(v0)[1];var b1=HW(),L6=L(S(b1)),Z9=S(L6,!0);O(L6);var s9=L(L6);O(b1),y((o9)=>{d(L6,"href",`https://pdsls.dev/${g0()??""}`),u(Z9,z6().handle?`@${z6().handle}`:z6().did),u(s9,` (${o9??""})`)},[()=>P(z6())]),F(L0,b1)}),O(t6),F(U0,R0)},Y0=(U0)=>{var R0=xW();F(U0,R0)};A(y0,(U0)=>{if(W(B).length>0)U0(Q0);else U0(Y0,-1)})}F(s,j0)};A(P0,(s)=>{if(W(B)!==void 0)s(t0)})}return O(k),O(v),y(()=>f=r0(v,1,`post post-${J.placement??""} ${(J.class||"")??""}`,"svelte-3ku6eocqz927i",f,{muted:K().muted,collapsed:W(w)})),F(z,v),c(R)}var FW=j('

    ');function IJ(z,J){_(J,!0);let Q=S0(J,"hashtag",7);Q(Q().replace(/^\#/,""));let K=q0([]),Z=m(!1),X=m(!1),w=!1,Y=!1,G;h5(async()=>{if(w||Y)return;w=!0;try{let x=await E0.getHashtagFeed(Q(),G),q=x.posts.map((C)=>new D0(C));if(D(Z,!0),K.push(...q),w=!1,G=x.cursor,!G||K.length==0)Y=!0}catch(x){console.log(x),w=!1,D(X,!0)}});var B=J0();K8("xlrj1v",(x)=>{I9(()=>{R5.title=`#${Q()??""} - Skythread`})});var V=p(B);{var H=(x)=>{var q=FW(),C=S(q),P=S(C),I=S(P);{var R=(b)=>{var E=n1();y(()=>u(E,`Posts tagged: #${Q()??""}`)),F(b,E)},v=(b)=>{var E=n1();y(()=>u(E,`No posts tagged #${Q()??""}.`)),F(b,E)};A(I,(b)=>{if(K.length>0)b(R);else b(v,-1)})}O(P),O(C);var f=L(C,2);N0(f,17,()=>K,(b)=>b.uri,(b,E)=>{l1(b,{get post(){return W(E)},placement:"feed"})}),O(q),F(x,q)},U=(x)=>{H5(x,{})};A(V,(x)=>{if(W(Z))x(H);else if(!W(X))x(U,1)})}F(z,B),c()}var MW=j('');function ez(z,J){_(J,!0);let Q=m(""),K;o0(()=>{K.focus()});function Z(G){G.preventDefault();let B=W(Q).trim();if(!B)return;if(B.startsWith("at://")){let V=new URL(G8());V.searchParams.set("q",B),location.assign(V.toString())}else if(B.match(/^#?((\p{Letter}|\p{Number})+)$/u)){let V=B.replace(/^#/,"");location.assign(n8(V))}else try{let{user:V,post:H}=r8(B);location.assign(j6(V,H))}catch(V){console.log(V),alert(V.message||"This is not a valid URL or hashtag")}}var X=MW(),w=S(X),Y=L(S(w));n0(Y),t1(Y,(G)=>K=G,()=>K),O(w),O(X),$0("submit",w,Z),m1(Y,()=>W(Q),(G)=>D(Q,G)),F(z,X),c()}var OW=j('Avatar '),SW=j('
    ');function z7(z,J){var Q=SW(),K=L(S(Q)),Z=S(K),X=S(Z),w=S(X,!0);O(X),O(Z),O(K);var Y=L(K);N0(Y,21,()=>J.users,w1,(G,B,V)=>{var H=OW(),U=S(H);U.textContent=V+1;var x=L(U),q=S(x),C=L(q,2),P=S(C,!0);O(C),O(x);var I=L(x),R=S(I,!0);O(I),O(H),y(()=>{d(q,"src",W(B).avatar),d(C,"href",`https://bsky.app/profile/${W(B).handle??""}`),u(P,W(B).handle),u(R,W(B).count)}),F(G,H)}),O(Y),O(Q),y(()=>{r0(Q,1,`scan-result ${J.cssClass??""}`,"svelte-upm7aqvky2i6"),u(w,J.header)}),F(z,Q)}var d9=25;class DJ{scanStartTime;appView;progressPosts;progressLikeRecords;progressPostLikes;onProgress;abortController;sortedGiven;sortedReceived;loadedOffset;constructor(){this.appView=new P6("public.api.bsky.app"),this.progressPosts=0,this.progressLikeRecords=0,this.progressPostLikes=0}async findLikes(z,J){this.onProgress=J,this.resetProgress(),this.scanStartTime=new Date().getTime(),this.abortController=new AbortController;let Q=this.fetchGivenLikes(z),K=await this.fetchReceivedLikes(z),Z=this.sumUpReceivedLikes(K),X=this.getSortedEntries(Z),w=await Q,Y=this.sumUpGivenLikes(w),G=this.getSortedEntries(Y),B=X.slice(0,d9),V=G.slice(0,d9),H=Math.min(G.length,X.length);return await this.fetchProfileInfoForGivenLikes(V),this.scanStartTime=void 0,this.sortedReceived=X,this.sortedGiven=G,this.loadedOffset=d9,{givenLikes:V,receivedLikes:B,total:H}}async loadMore(){if(!(this.sortedReceived&&this.sortedGiven&&this.loadedOffset))throw"Initial fetch not executed yet";let z=this.sortedReceived.slice(this.loadedOffset,this.loadedOffset+d9),J=this.sortedGiven.slice(this.loadedOffset,this.loadedOffset+d9),Q=Math.min(this.sortedGiven.length,this.sortedReceived.length),K=Math.min(z.length,J.length);return z=z.slice(0,K),J=J.slice(0,K),this.loadedOffset+=K,await this.fetchProfileInfoForGivenLikes(J),{givenLikes:J,receivedLikes:z,total:Q}}async fetchGivenLikes(z){let J=this.scanStartTime;return await F0.fetchAll("com.atproto.repo.listRecords",{params:{repo:F0.user.did,collection:"app.bsky.feed.like",limit:100},field:"records",breakWhen:(Q)=>Date.parse(Q.value.createdAt){let K=Q.at(-1);if(!K)return;let Z=Date.parse(K.value.createdAt),X=(J-Z)/86400/1000;this.updateProgress({likeRecords:Math.min(1,X/z)})},abortSignal:this.abortController.signal})}async fetchReceivedLikes(z){let J=this.scanStartTime,K=(await this.appView.loadUserTimeline(F0.user.did,z,{filter:"posts_with_replies",onPageLoad:(X)=>{let w=X.at(-1);if(!w)return;let Y=W6(w),G=(J-Y)/86400/1000;this.updateProgress({posts:Math.min(1,G/z)})},abortSignal:this.abortController.signal})).filter((X)=>!X.reason&&X.post.likeCount>0),Z=[];for(let X=0;X{return this.appView.fetchAll("app.bsky.feed.getLikes",{params:{uri:B.post.uri,limit:100},field:"likes",abortSignal:this.abortController.signal})}),G=await Promise.all(Y);Z=Z.concat(G)}return this.updateProgress({postLikes:1}),Z.flat()}sumUpReceivedLikes(z){let J={};for(let Q of z){let K=Q.actor.handle;if(!J[K])J[K]={handle:K,count:0,avatar:Q.actor.avatar};J[K].count+=1}return J}sumUpGivenLikes(z){let J={};for(let Q of z){let K=d0(Q.value.subject.uri).repo;if(!J[K])J[K]={did:K,count:0};J[K].count+=1}return J}getSortedEntries(z){return Object.entries(z).sort(this.sortResults).map((J)=>J[1])}async fetchProfileInfoForGivenLikes(z){let J=await this.appView.getRequest("app.bsky.actor.getProfiles",{actors:z.map((Q)=>Q.did)},{abortSignal:this.abortController.signal});for(let Q of J.profiles){let K=z.find((Z)=>Z.did==Q.did);K.handle=Q.handle,K.avatar=Q.avatar}}resetProgress(){this.progressPosts=0,this.progressLikeRecords=0,this.progressPostLikes=0,this.onProgress?.(0)}updateProgress(z){if(z.posts)this.progressPosts=z.posts;if(z.likeRecords)this.progressLikeRecords=z.likeRecords;if(z.postLikes)this.progressPostLikes=z.postLikes;let J=0.1*this.progressPosts+0.65*this.progressLikeRecords+0.25*this.progressPostLikes;this.onProgress?.(J)}sortResults(z,J){if(z[1].countJ[1].count)return-1;else return 0}abortScan(){this.scanStartTime=void 0,this.onProgress=void 0,this.abortController?.abort(),delete this.abortController}}var CW=j(''),PW=j('

    Load more

    ',1),jW=j('

    Like statistics

    Time range:

    ');function RJ(z,J){_(J,!0);let Q=m(7),K=m(void 0),Z=z0(()=>W(K)!==void 0),X=m(void 0),w=m(void 0),Y=m(!1),G=new DJ;async function B(N){N.preventDefault();try{if(!W(Z)){D(X,void 0),D(w,void 0);let h=await G.findLikes(W(Q),(l)=>{D(K,l,!0)});D(X,h.givenLikes,!0),D(w,h.receivedLikes,!0),D(Y,h.total>W(X).length),D(K,void 0)}else G.abortScan(),D(K,void 0)}catch(h){if(h.name!=="AbortError")throw h}}async function V(N){if(N.preventDefault(),!(W(X)&&W(w)))return;D(Y,!1);let h=await G.loadMore();W(X).push(...h.givenLikes),W(w).push(...h.receivedLikes),D(Y,h.total>W(X).length)}var H=jW(),U=L(S(H),2),x=S(U),q=L(S(x));n0(q);var C=L(q,2),P=S(C,!0);O(C),O(x);var I=L(x,2),R=S(I);n0(R);var v=L(R,2);{var f=(N)=>{var h=CW();y(()=>S6(h,W(K))),F(N,h)};A(v,(N)=>{if(W(Z))N(f)})}O(I),O(U);var b=L(U,2);{var E=(N)=>{var h=PW(),l=p(h),k=S(l),i=S(k);z7(i,{cssClass:"given-likes",header:"❤️ Likes from you:",get users(){return W(X)}}),O(k);var t=L(k,2),$=S(t);z7($,{cssClass:"received-likes",header:"\uD83D\uDC9B Likes on your posts:",get users(){return W(w)}}),O(t),O(l);var n=L(l,2);let K0;var Z0=S(n);O(n),y(()=>K0=h6(n,"",K0,{visibility:W(Y)?"visible":"hidden"})),H0("click",Z0,V),F(N,h)};A(b,(N)=>{if(W(X)&&W(w))N(E)})}O(H),y((N)=>{u(P,N),S6(R,W(Z)?"Cancel":"Start scan")},[()=>X8(W(Q))]),$0("submit",U,B),m1(q,()=>W(Q),(N)=>D(Q,N)),F(z,H),c()}I0(["click"]);var LW="did:web:lycan.feeds.blue#lycan";class i9{lycanAddress;constructor(z){this.lycanAddress=z??LW}get proxyHeaders(){return{"atproto-proxy":this.lycanAddress}}async getImportStatus(){return await F0.getRequest("blue.feeds.lycan.getImportStatus",null,{headers:this.proxyHeaders})}async startImport(){await F0.postRequest("blue.feeds.lycan.startImport",null,{headers:this.proxyHeaders})}async makeQuery(z,J,Q){let K={collection:z,query:J};if(Q)K.cursor=Q;return await F0.getRequest("blue.feeds.lycan.searchPosts",K,{headers:this.proxyHeaders})}searchPosts(z,J,Q){let K=!1,Z=!1,X;h5(async()=>{if(K||Z)return;K=!0;let w=await this.makeQuery(z,J,X),G=(await F0.loadPosts(w.posts)).map((B)=>new D0(B));if(K=!1,Q.onPostsLoaded({posts:G,terms:w.terms}),X=w.cursor,!X)Z=!0,Q.onFinish?.()})}}class J7 extends i9{localLycan;constructor(z){super();this.localLycan=new P6(z)}async getImportStatus(){return await this.localLycan.getRequest("blue.feeds.lycan.getImportStatus",{user:F0.user.did})}async startImport(){await this.localLycan.postRequest("blue.feeds.lycan.startImport",{user:F0.user.did})}async makeQuery(z,J,Q){let K={collection:z,query:J,user:F0.user.did};if(Q)K.cursor=Q;return await this.localLycan.getRequest("blue.feeds.lycan.searchPosts",K)}}var IW=j('
    ');function _9(z,J){var Q=IW(),K=S(Q);k5(K,()=>J.children),O(Q),F(z,Q)}var DW=j(' ',1),RW=j(`

    Data not imported yet

    In order to search within your likes and bookmarks, the posts you've liked or saved need to be imported into a database. This is a one-time process, but it can take several minutes or more, depending on the age of your account.

    To start the import, press the button below. You can then wait until it finishes, or close this tab and come back a bit later. - After the import is complete, the database will be kept up to date automatically going forward.

    `),aw=P('

    '),rw=P('

    Import in progress

    '),nw=P('
    '),tw=P("

    ...

    "),ew=P('

    '),zW=P(" ",1),JW=P('

    Archive search

    ',1);function PJ(z,J){_(J,!0);let Q=[],K=[{id:"likes",title:"Likes"},{id:"reposts",title:"Reposts"},{id:"quotes",title:"Quotes"},{id:"pins",title:"Pins"}],X=M0(()=>A(J.lycan)),Z=f(!1),w=f(void 0),G=f(void 0),H=f(0),B=f(!1),F,q=f(C0(K[0].id)),Y=f(""),U=f(!1),x=f(!1),I=f(C0([])),M=f(C0([]));T();function A(b){if(!b)return new Yz;else if(b=="local"||b=="localhost")return new F7("http://localhost:3000");else if(b.startsWith("local:")||b.startsWith("localhost:")){let l=b.split(":")[1];return new F7(`http://localhost:${l}`)}else return new Yz(`did:web:${J.lycan}#lycan`)}function E(b){b.preventDefault(),y({status:"requested"}),D(B,!0),W(X).startImport().catch((l)=>{console.error("Failed to start Lycan import",l),R(`Import failed: ${l}`)})}function v(b){if(b.key=="Enter"){b.preventDefault();let l=W(Y).trim().toLowerCase();if(l.length==0||W(w)!="finished")return;D(I,[],!0),D(B,!1),D(U,!0),D(x,!1),W(X).searchPosts(W(q),l,{onPostsLoaded:({posts:n,terms:s})=>{D(U,!1),W(I).push(...n),D(M,s,!0)},onFinish:()=>{D(x,!0)}})}}async function T(){if(W(Z))return;D(Z,!0);try{let b=await W(X).getImportStatus();y(b)}catch(b){R(`Couldn't check import status: ${b}`)}finally{D(Z,!1)}}function y(b){if(console.log(b),!b.status){R("Error checking import status");return}D(w,b.status,!0);let l=["in_progress","scheduled","requested"].includes(b.status);if(D(B,W(B)||l,!0),b.status=="not_started");else if(l)N(b);else if(b.status=="finished")N({status:"finished",progress:1});else R("Error checking import status");l?k():$()}function N(b){if(D(H,Math.max(0,Math.min(b.progress||0,1)),!0),b.progress==1)D(G,"Import complete ✓");else if(b.position){let l=new Date(b.position).toLocaleString(y0.dateLocale,{day:"numeric",month:"short",year:"numeric"});D(G,`Downloaded data until: ${l}`)}else if(b.status=="requested")D(G,"Requesting import…");else D(G,"Import started…")}function R(b){D(w,"error"),D(B,!0),D(G,b,!0),$()}function k(){if(!F)F=setInterval(T,3000)}function $(){if(F)clearInterval(F),F=void 0}Gz(z,{children:(b,l)=>{var n=JW(),s=S(h(n),2),a=O(s),W0=S(O(a));p0(W0),W0.__keydown=v,C(a);var K0=S(a,2);A0(K0,21,()=>K,O1,(Y0,z0)=>{var t=sw(),B0=h(t);p0(B0);var D0,H0=S(B0,2),G0=O(H0,!0);C(H0),g(()=>{if(i(B0,"id",`collection-${W(z0).id??""}`),D0!==(D0=W(z0).id))B0.value=(B0.__value=W(z0).id)??"";i(H0,"for",`collection-${W(z0).id??""}`),u(G0,W(z0).title)}),c8(Q,[],B0,()=>{return W(z0).id,W(q)},(n0)=>D(q,n0)),V(Y0,t)}),C(K0),C(s);var q0=S(s,2);{var o=(Y0)=>{var z0=nw(),t=O(z0);{var B0=(H0)=>{var G0=ow();C1("submit",G0,E),V(H0,G0)},D0=(H0)=>{var G0=rw(),n0=S(O(G0),2),v5=O(n0,!0);C(n0);var Hz=S(n0,2);{var a5=(r5)=>{var B5=aw(),l6=O(B5),p6=S(l6,2),n5=O(p6);C(p6),C(B5),g((d6)=>{W5(l6,W(H)),u(n5,`${d6??""}%`)},[()=>Math.round(W(H)*100)]),V(r5,B5)};j(Hz,(r5)=>{if(W(w)!="error")r5(a5)})}C(G0),g(()=>u(v5,W(G))),V(H0,G0)};j(t,(H0)=>{if(W(w)=="not_started")H0(B0);else H0(D0,!1)})}C(z0),V(Y0,z0)};j(q0,(Y0)=>{if(W(B)||W(w)=="not_started")Y0(o)})}var e=S(q0,2),P0=O(e);{var V0=(Y0)=>{var z0=tw();V(Y0,z0)},k0=(Y0)=>{var z0=zW(),t=h(z0);A0(t,17,()=>W(I),(H0)=>H0.uri,(H0,G0)=>{L1(H0,{get post(){return W(G0)},placement:"feed",get highlightedMatches(){return W(M)}})});var B0=S(t,2);{var D0=(H0)=>{var G0=ew(),n0=O(G0,!0);C(G0),g(()=>u(n0,W(I).length>0?"No more results.":"No results.")),V(H0,G0)};j(B0,(H0)=>{if(W(x))H0(D0)})}V(Y0,z0)};j(P0,(Y0)=>{if(W(U))Y0(V0);else Y0(k0,!1)})}C(e),g(()=>W0.disabled=W(w)!="finished"),P1(W0,()=>W(Y),(Y0)=>D(Y,Y0)),V(b,n)},$$slots:{default:!0}}),c()}I0(["keydown"]);var QW=P("Reply to you"),KW=P(" "),ZW=P(" "),XW=P("Reply"),wW=P('

    ');function Bz(z,J){_(J,!0);let Q=M0(()=>l0(J.uri)),K=M0(()=>W(Q).repo),X=M0(()=>W(Q).rkey);var Z=wW(),w=S(O(Z),2);{var G=(B)=>{var F=QW();g((q)=>i(F,"href",q),[()=>G5(W(K),W(X))]),V(B,F)},H=(B)=>{var F=d(),q=h(F);T6(q,()=>N0.fetchHandleForDid(W(K)),(Y)=>{var U=XW();g((x)=>i(U,"href",x),[()=>G5(W(K),W(X))]),V(Y,U)},(Y,U)=>{var x=KW(),I=O(x);C(x),g((M)=>{i(x,"href",M),u(I,`Reply to @${W(U)??""}`)},[()=>G5(W(U),W(X))]),V(Y,x)},(Y)=>{var U=ZW(),x=O(U);C(U),g((I)=>{i(U,"href",I),u(x,`Reply to ${W(K)??""}`)},[()=>G5(W(K),W(X))]),V(Y,U)}),V(B,F)};j(w,(B)=>{if(x0&&W(K)==x0.user.did)B(G);else B(H,!1)})}C(Z),V(z,Z),c()}var WW=P(" ",1),YW=P('

    Replies & Mentions:

    ');function LJ(z,J){_(J,!0);let Q=C0([]),K=f(!1),X=f(!1),Z=!1,w=!1,G;F6(async(Y)=>{if(Z||w)return;Z=!0;try{let U=await x0.loadMentions(G),x=U.posts.map((I)=>new S0(I));if(!W(K)&&x.length>0)D(K,!0);if(Q.push(...x),Z=!1,G=U.cursor,!G)w=!0;else if(x.length==0)Y()}catch(U){console.log(U),Z=!1,D(X,!0)}});var H=d();E6("387i67",(Y)=>{H1(()=>{W6.title="Notifications - Skythread"})});var B=h(H);{var F=(Y)=>{var U=YW(),x=S(O(U),2);A0(x,17,()=>Q,(I)=>I.uri,(I,M)=>{var A=WW(),E=h(A);{var v=(y)=>{Bz(y,{get uri(){return W(M).parentReference.uri}})};j(E,(y)=>{if(W(M).parentReference)y(v)})}var T=S(E,2);L1(T,{get post(){return W(M)},placement:"feed"}),V(I,A)}),C(U),V(Y,U)},q=(Y)=>{var U=d(),x=h(U);{var I=(M)=>{o5(M,{})};j(x,(M)=>{if(!W(X))M(I)},!0)}V(Y,U)};j(B,(Y)=>{if(W(K))Y(F);else Y(q,!1)})}V(z,H),c()}var OK=(z,J=J5)=>{var Q=GW(),K=h(Q),X=S(K,2),Z=O(X,!0);C(X);var w=S(X,2),G=O(w,!0);C(w),g(()=>{i(K,"src",J().avatar),u(Z,J().displayName||"–"),u(G,J().handle)}),V(z,Q)},GW=P('Avatar ',1),BW=P("
    "),HW=P('
    '),UW=P(''),VW=P('
    ');function IJ(z,J){_(J,!0);let Q=j0(J,"selectedUsers",27,()=>C0([])),K=f(""),X=f(C0([])),Z=f(-1),w=M0(()=>Q().map((R)=>R.did)),G=M0(()=>W(X).length>0),H=f(0),B;Q1(()=>{let R=document.body.parentNode;return R.addEventListener("click",U),()=>{R.removeEventListener("click",U)}});function F(){if(B)clearTimeout(B);let R=W(K).trim();if(R.length>0)B=setTimeout(()=>Y(R),100);else U(),B=void 0}function q(R){if(R.key=="Enter"){if(R.preventDefault(),W(Z)>=0)M(W(Z))}else if(R.key=="Escape")U();else if(R.key=="ArrowDown"&&W(X).length>0)R.preventDefault(),x(1);else if(R.key=="ArrowUp"&&W(X).length>0)R.preventDefault(),x(-1)}async function Y(R){let k=await N0.autocompleteUsers(R),$=new Set(W(w));if(k=k.filter((b)=>!$.has(b.did)),k.length>0)D(X,k,!0),D(Z,0);else U()}function U(){D(X,[],!0),D(Z,-1)}function x(R){if(W(X).length==0)return;let k=W(Z)+R;if(k<0)k=W(X).length-1;else if(k>=W(X).length)k=0;D(Z,k,!0)}function I(R,k){R.preventDefault(),M(k)}function M(R){let k=W(X)[R];if(!k)return;Q().push(k),D(K,""),U()}function A(R,k){R.preventDefault(),Q().splice(k,1)}var E=VW(),v=O(E);p0(v),k6(v,!0),v.__input=F,v.__keydown=q;var T=S(v,2);{var y=(R)=>{var k=HW();let $;A0(k,23,()=>W(X),(b)=>b.did,(b,l,n)=>{var s=BW();let a;s.__mousedown=(K0)=>{I(K0,W(n))};var W0=O(s);OK(W0,()=>W(l)),C(s),g(()=>a=K1(s,1,"user-row svelte-2z5j67wda5rm6",null,a,{highlighted:W(Z)==W(n)})),C1("mouseenter",s,()=>{D(Z,W(n),!0)}),V(b,s)}),C(k),g(()=>$=_5(k,"",$,{display:W(G)?"block":"none",top:`${W(H)??""}px`})),V(R,k)};j(T,(R)=>{if(W(G))R(y)})}var N=S(T,2);A0(N,23,Q,(R)=>R.did,(R,k,$)=>{var b=UW(),l=O(b);OK(l,()=>W(k));var n=S(l,2);n.__click=(s)=>{A(s,W($))},C(b),V(R,b)}),C(N),C(E),P1(v,()=>W(K),(R)=>D(K,R)),S9(v,"offsetHeight",(R)=>D(H,R)),V(z,E),c()}I0(["input","keydown","mousedown","click"]);var qW=P('All posts /d Own posts /d Reposts /d',1),FW=P('Posts /d'),xW=P('% of timeline'),MW=P(' '),CW=P(' '),OW=P(''),PW=P('Total: '),LW=P(' '),IW=P(' '),SW=P(' '),jW=P('Avatar '),DW=P('
    #Handle
    ');function SJ(z,J){_(J,!0);let Q=j0(J,"showReposts",3,!0),K=j0(J,"showPercentages",3,!0),X=j0(J,"showTotal",3,!0);function Z(E){return E>0?E.toFixed(1):"–"}var w=DW(),G=O(w),H=O(G),B=S(O(H),2);{var F=(E)=>{var v=qW();z1(4),V(E,v)},q=(E)=>{var v=FW();V(E,v)};j(B,(E)=>{if(Q())E(F);else E(q,!1)})}var Y=S(B);{var U=(E)=>{var v=xW();V(E,v)};j(Y,(E)=>{if(K())E(U)})}C(H),C(G);var x=S(G),I=O(x);{var M=(E)=>{var v=PW(),T=S(O(v),2);{var y=(n)=>{var s=MW(),a=O(s,!0);C(s),g((W0)=>u(a,W0),[()=>Z(J.sums.all/J.daysBack)]),V(n,s)};j(T,(n)=>{if(Q())n(y)})}var N=S(T),R=O(N,!0);C(N);var k=S(N);{var $=(n)=>{var s=CW(),a=O(s,!0);C(s),g((W0)=>u(a,W0),[()=>Z(J.sums.reposts/J.daysBack)]),V(n,s)};j(k,(n)=>{if(Q())n($)})}var b=S(k);{var l=(n)=>{var s=OW();V(n,s)};j(b,(n)=>{if(K())n(l)})}C(v),g((n)=>u(R,n),[()=>Z(J.sums.own/J.daysBack)]),V(E,v)};j(I,(E)=>{if(X())E(M)})}var A=S(I);A0(A,17,()=>J.users,O1,(E,v,T)=>{var y=jW(),N=O(y);N.textContent=T+1;var R=S(N),k=O(R),$=S(k,2),b=O($,!0);C($),C(R);var l=S(R);{var n=(e)=>{var P0=LW(),V0=O(P0,!0);C(P0),g((k0)=>u(V0,k0),[()=>Z(W(v).all/J.daysBack)]),V(e,P0)};j(l,(e)=>{if(Q())e(n)})}var s=S(l),a=O(s,!0);C(s);var W0=S(s);{var K0=(e)=>{var P0=IW(),V0=O(P0,!0);C(P0),g((k0)=>u(V0,k0),[()=>Z(W(v).reposts/J.daysBack)]),V(e,P0)};j(W0,(e)=>{if(Q())e(K0)})}var q0=S(W0);{var o=(e)=>{var P0=SW(),V0=O(P0);C(P0),g((k0)=>u(V0,`${k0??""}%`),[()=>Z(W(v).all*100/J.sums.all)]),V(e,P0)};j(q0,(e)=>{if(K())e(o)})}C(y),g((e)=>{i(k,"src",W(v).avatar),i($,"href",`https://bsky.app/profile/${W(v).handle??""}`),u(b,W(v).handle),u(a,e)},[()=>Z(W(v).own/J.daysBack)]),V(E,y)}),C(x),C(w),V(z,w),c()}class jJ{appView;userProgress;onProgress;abortController;constructor(z){this.onProgress=z,this.appView=new _1("public.api.bsky.app"),this.userProgress={}}async scanHomeTimeline(z){let J=new Date().getTime();this.abortController=new AbortController;let Q=await x0.loadHomeTimeline(z,{onPageLoad:(K)=>this.updateProgress(K,J),abortSignal:this.abortController.signal,keepLastPage:!0});return this.generateResults(Q,z,J)}async scanListTimeline(z,J){let Q=new Date().getTime();this.abortController=new AbortController;let K=await x0.loadListTimeline(z,J,{onPageLoad:(X)=>this.updateProgress(X,Q),abortSignal:this.abortController.signal,keepLastPage:!0});return this.generateResults(K,J,Q)}async scanUserTimelines(z,J){let Q=new Date().getTime(),K=z.map((H)=>H.did);this.resetUserProgress(K),this.abortController=new AbortController;let X=this.abortController.signal,Z=K.map((H)=>this.appView.loadUserTimeline(H,J,{filter:"posts_and_author_threads",onPageLoad:(B)=>this.updateUserProgress(H,B,Q,J),abortSignal:X,keepLastPage:!0})),G=(await Promise.all(Z)).flat();return this.generateResults(G,J,Q,{countFetchedDays:!1,users:z})}async scanYourTimeline(z){let J=new Date().getTime();this.abortController=new AbortController;let Q=await x0.loadUserTimeline(x0.user.did,z,{filter:"posts_no_replies",onPageLoad:(K)=>this.updateProgress(K,J),abortSignal:this.abortController.signal,keepLastPage:!0});return this.generateResults(Q,z,J)}generateResults(z,J,Q,K={}){let X=z.at(-1);if(!X)return null;let Z={},w=d1(X),G=(Q-w)/86400/1000,H;if(K.countFetchedDays!==!1)H=Math.min(J,G);else H=J;let B=Q-J*86400*1000;if(z=z.filter((U)=>d1(U)>B),z.reverse(),K.users)for(let U of K.users)Z[U.handle]={handle:U.handle,own:0,reposts:0,avatar:U.avatar};let F=new Set,q={own:0,reposts:0,all:0};for(let U of z){if(U.reply){if(!F.has(U.reply.parent.uri))continue}let x=U.reason?U.reason.by:U.post.author,I=x.handle;if(Z[I]=Z[I]??{handle:I,own:0,reposts:0,avatar:x.avatar},U.reason)Z[I].reposts+=1,q.reposts+=1;else Z[I].own+=1,q.own+=1,F.add(U.post.uri)}let Y=Object.values(Z);return Y.forEach((U)=>{U.all=U.own+U.reposts}),Y.sort((U,x)=>x.all-U.all),q.all=q.own+q.reposts,{users:Y,sums:q,fetchedDays:G,daysBack:H}}updateProgress(z,J){let Q=z.at(-1);if(!Q)return;let K=d1(Q),X=(J-K)/86400/1000;this.onProgress?.(X)}resetUserProgress(z){this.userProgress={};for(let J of z)this.userProgress[J]={pages:0,progress:0}}updateUserProgress(z,J,Q,K){let X=J.at(-1);if(!X)return;let Z=d1(X),w=(Q-Z)/86400/1000;this.userProgress[z].pages+=1,this.userProgress[z].progress=Math.min(w/K,1);let G=Object.values(this.userProgress).map((Y)=>Y.pages/Y.progress),H=G.filter((Y)=>!isNaN(Y)),B=H.reduce((Y,U)=>Y+U)/H.length*G.length,q=Object.values(this.userProgress).map((Y)=>Y.pages).reduce((Y,U)=>Y+U)/B*K;this.onProgress?.(q)}abortScan(){this.abortController?.abort(),delete this.abortController}}var RW=P(' ',1),AW=P(""),NW=P('

    '),kW=P(''),bW=P('

    '),TW=P('

    Bluesky posting statistics

    Scan posts from:

    Time range:

    ');function DJ(z,J){_(J,!0);let Q=[],K=[{id:"home",title:"Home timeline"},{id:"list",title:"List feed"},{id:"users",title:"Selected users"},{id:"you",title:"Your profile"}],X=f(C0([])),Z=f(7),w=f(C0(K[0].id)),G=f(C0([])),H=f(void 0),B=f(!1),F=f(void 0),q=f(void 0),Y=f(void 0),U=f(C0({})),x=f(null),I=new jJ((z0)=>{D(q,Math.max(W(q)||0,z0),!0)});Q1(()=>{A()});function M(){D(x,null)}async function A(){let z0=await x0.loadUserLists();D(X,z0.sort((t,B0)=>{let D0=t.name.toLocaleLowerCase(),H0=B0.name.toLocaleLowerCase();return D0.localeCompare(H0)}),!0),D(H,W(X)[0]?.uri,!0)}async function E(z0){z0.preventDefault();try{if(!W(B))await v();else D(B,!1),I.abortScan()}catch(t){if(t.name!=="AbortError")throw t}}async function v(){if(W(w)=="list"&&!W(H)||W(w)=="users"&&W(G).length==0)return;D(Y,void 0),D(x,null),D(F,W(Z),!0),D(q,0),D(B,!0);let z0=new Date().getTime(),t,B0;if(W(w)=="home")B0={},t=await I.scanHomeTimeline(W(F));else if(W(w)=="list")B0={showReposts:!1},t=await I.scanListTimeline(W(H),W(F));else if(W(w)=="users")B0={showTotal:!1,showPercentages:!1},t=await I.scanUserTimelines(W(G),W(F));else B0={showTotal:!1,showPercentages:!1},t=await I.scanYourTimeline(W(F));if(new Date().getTime()-z0<150)await new Promise((H0)=>setTimeout(H0,150));D(U,B0,!0),D(x,t,!0),D(B,!1)}var T=TW(),y=S(O(T),2),N=O(y),R=S(O(N));A0(R,17,()=>K,O1,(z0,t)=>{var B0=RW(),D0=h(B0);p0(D0),D0.__click=M;var H0,G0=S(D0,2),n0=O(G0,!0);C(G0),g(()=>{if(i(D0,"id",`scan_type_${W(t).id??""}`),H0!==(H0=W(t).id))D0.value=(D0.__value=W(t).id)??"";i(G0,"for",`scan_type_${W(t).id??""}`),u(n0,W(t).title)}),c8(Q,[],D0,()=>{return W(t).id,W(w)},(v5)=>D(w,v5)),V(z0,B0)}),C(N);var k=S(N,2),$=S(O(k));p0($);var b=S($,2),l=O(b,!0);C(b),C(k);var n=S(k,2);{var s=(z0)=>{var t=NW(),B0=S(O(t),2);A0(B0,21,()=>W(X),O1,(D0,H0)=>{var G0=AW(),n0=O(G0);C(G0);var v5={};g(()=>{if(u(n0,`${W(H0).name??""} `),v5!==(v5=W(H0).uri))G0.value=(G0.__value=W(H0).uri)??""}),V(D0,G0)}),C(B0),C(t),x9(B0,()=>W(H),(D0)=>D(H,D0)),V(z0,t)};j(n,(z0)=>{if(W(w)=="list")z0(s)})}var a=S(n,2);{var W0=(z0)=>{IJ(z0,{get selectedUsers(){return W(G)},set selectedUsers(t){D(G,t,!0)}})};j(a,(z0)=>{if(W(w)=="users")z0(W0)})}var K0=S(a,2),q0=O(K0);p0(q0);var o=S(q0,2);{var e=(z0)=>{var t=kW();g(()=>{i(t,"max",W(F)),W5(t,W(q))}),V(z0,t)};j(o,(z0)=>{if(W(B))z0(e)})}C(K0),C(y);var P0=S(y,2);{var V0=(z0)=>{var t=bW(),B0=O(t,!0);C(t),g(()=>u(B0,W(Y))),V(z0,t)};j(P0,(z0)=>{if(W(Y))z0(V0)})}var k0=S(P0,2);{var Y0=(z0)=>{SJ(z0,R9(()=>W(U),()=>W(x)))};j(k0,(z0)=>{if(W(x))z0(Y0)})}C(T),g((z0)=>{u(l,z0),W5(q0,!W(B)?"Start scan":"Cancel")},[()=>v6(W(Z))]),C1("submit",y,E),P1($,()=>W(Z),(z0)=>D(Z,z0)),V(z,T),c()}I0(["click"]);var EW=P(" ",1),yW=P('

    ');function RJ(z,J){_(J,!0);let Q=!1,K,X=!1,Z=C0([]),w=f(void 0),G=f(!1);F6(async()=>{if(Q||X)return;Q=!0;try{let Y=await Kz.getQuotes(J.postURL,K),x=(await N0.loadPosts(Y.posts)).map((I)=>new S0(I));if(W(w)===void 0)D(w,Y.quoteCount,!0);if(Z.push(...x),Q=!1,K=Y.cursor,!K||Z.length==0)X=!0}catch(Y){console.log(Y),Q=!1,D(G,!0),U6(Y)}});var H=d(),B=h(H);{var F=(Y)=>{var U=yW(),x=O(U),I=O(x),M=O(I);{var A=(T)=>{var y=N1();g(()=>u(y,`${W(w)??""} quotes:`)),V(T,y)},E=(T)=>{var y=d(),N=h(y);{var R=($)=>{var b=N1("1 quote:");V($,b)},k=($)=>{var b=N1("No quotes found.");V($,b)};j(N,($)=>{if(W(w)==1)$(R);else $(k,!1)},!0)}V(T,y)};j(M,(T)=>{if(W(w)>1)T(A);else T(E,!1)})}C(I),C(x);var v=S(x,2);A0(v,17,()=>Z,(T)=>T.uri,(T,y)=>{var N=EW(),R=h(N);{var k=(b)=>{Bz(b,{get uri(){return W(y).parentReference.uri}})};j(R,(b)=>{if(W(y).parentReference)b(k)})}var $=S(R,2);L1($,{get post(){return W(y)},placement:"quotes"}),V(T,N)}),C(U),V(Y,U)},q=(Y)=>{var U=d(),x=h(U);{var I=(M)=>{o5(M,{})};j(x,(M)=>{if(!W(G))M(I)},!0)}V(Y,U)};j(B,(Y)=>{if(W(w)!==void 0)Y(F);else Y(q,!1)})}V(z,H),c()}var vW=P('
    Tangled
    ');function AJ(z){var J=vW();V(z,J)}var gW=P('

    '),hW=P('
    '),mW=P('

    parent post has been deleted

    '),fW=P(`

    something went wrong, this shouldn't happen

    `);function NJ(z,J){_(J,!0);var Q=d(),K=h(Q);{var X=(w)=>{var G=gW(),H=S(O(G),2),B=O(H);C(H),C(G),g((F)=>{i(H,"href",F),u(B,`See parent post (@${J.post.author.handle??""})`)},[()=>y5(J.post)]),V(w,G)},Z=(w)=>{var G=d(),H=h(G);{var B=(q)=>{var Y=hW(),U=O(Y);A8(U,{get post(){return J.post},placement:"parent",reason:"Parent post blocked"}),C(Y),V(q,Y)},F=(q)=>{var Y=d(),U=h(Y);{var x=(M)=>{var A=mW();V(M,A)},I=(M)=>{var A=fW();V(M,A)};j(U,(M)=>{if(J.post instanceof O5)M(x);else M(I,!1)},!0)}V(q,Y)};j(H,(q)=>{if(J.post instanceof E5)q(B);else q(F,!1)},!0)}V(w,G)};j(K,(w)=>{if(J.post instanceof S0)w(X);else w(Z,!1)})}V(z,Q),c()}var $W=P(" ",1),uW=P("
    ");function x7(z,J){_(J,!0);let Q=c5(J,["$$slots","$$events","$$legacy"]),K=f(void 0),X=f(!1),Z=f(void 0),w;if("url"in Q){let{url:q}=Q;if(q.startsWith("at://"))w=N0.loadThreadByAtURI(q);else w=N0.loadThreadByURL(q)}else{let{author:q,rkey:Y}=Q;w=N0.loadThreadById(q,Y)}w.then((q)=>{let Y=V6(q.thread);if(window.root=Y,window.subtreeRoot=Y,D(K,Y,!0),Y instanceof S0)Y.data.quoteCount=void 0,Kz.getQuoteCount(Y.uri).then((U)=>{W(Z)?.setQuoteCount(U)}).catch((U)=>{console.warn("Couldn't load quote count: "+U)})}).catch((q)=>{U6(q),D(X,!0)});var G=d();E6("64euhl",(q)=>{var Y=d(),U=h(Y);{var x=(I)=>{u8(()=>{W6.title=`${W(K).author.displayName??""}: "${W(K).text??""}" - Skythread`})};j(U,(I)=>{if(W(K)instanceof S0)I(x)})}V(q,Y)});var H=h(G);{var B=(q)=>{var Y=uW(),U=O(Y);{var x=(M)=>{var A=$W(),E=h(A);{var v=(N)=>{NJ(N,{get post(){return W(K).parent}})},T=(N)=>{var R=d(),k=h(R);{var $=(b)=>{wz(b,{get uri(){return W(K).parentReference.uri}})};j(k,(b)=>{if(W(K).parentReference)b($)},!0)}V(N,R)};j(E,(N)=>{if(W(K).parent)N(v);else N(T,!1)})}var y=S(E,2);z5(L1(y,{get post(){return W(K)},placement:"thread"}),(N)=>D(Z,N,!0),()=>W(Z)),V(M,A)},I=(M)=>{$6(M,{get post(){return W(K)},placement:"thread"})};j(U,(M)=>{if(W(K)instanceof S0)M(x);else M(I,!1)})}C(Y),V(q,Y)},F=(q)=>{var Y=d(),U=h(Y);{var x=(I)=>{o5(I,{})};j(U,(I)=>{if(!W(X))I(x)},!0)}V(q,Y)};j(H,(q)=>{if(W(K))q(B);else q(F,!1)})}V(z,G),c()}class kJ{timelinePosts;abortController;constructor(){this.timelinePosts=[]}async fetchTimeline(z,J){let Q=new Date().getTime();this.abortController=new AbortController;let K=await x0.loadHomeTimeline(z,{abortSignal:this.abortController.signal,onPageLoad:(X)=>{let Z=this.calculateProgress(X,Q);if(Z)J(Z)}});this.timelinePosts=K}calculateProgress(z,J){let Q=z.at(-1);if(!Q)return null;let K=d1(Q);return(J-K)/86400/1000}searchPosts(z){if(z.length==0)return[];return this.timelinePosts.filter((Q)=>Q.post.record.text.toLowerCase().includes(z)).map((Q)=>XK(Q))}abortFetch(){this.abortController?.abort(),delete this.abortController}}var lW=P(""),pW=P('

    '),dW=P('
    ',1),iW=P('

    Timeline search

    ',1);function bJ(z,J){_(J,!0);let Q=f(7),K=f(void 0),X=f(void 0),Z=M0(()=>W(X)!==void 0),w=f(void 0),G=f(""),H=f(C0([])),B=new kJ;async function F(Y){Y.preventDefault();try{if(!W(Z))D(K,W(Q),!0),D(X,0),await B.fetchTimeline(W(Q),(U)=>{D(X,U,!0)}),D(w,W(X),!0),D(X,void 0);else D(X,void 0),B.abortFetch()}catch(U){if(U.name!=="AbortError")throw U}}function q(Y){if(Y.key=="Enter"){Y.preventDefault();let U=W(G).trim().toLowerCase();D(H,B.searchPosts(U),!0)}}Gz(z,{children:(Y,U)=>{var x=iW(),I=S(h(x),2),M=O(I),A=O(M),E=S(O(A));p0(E);var v=S(E,2),T=O(v,!0);C(v),C(A);var y=S(A,2),N=O(y);p0(N);var R=S(N,2);{var k=(s)=>{var a=lW();g(()=>{i(a,"max",W(K)),W5(a,W(X))}),V(s,a)};j(R,(s)=>{if(W(Z))s(k)})}C(y),C(M);var $=S(M,2);{var b=(s)=>{var a=pW(),W0=O(a);C(a),g((K0)=>u(W0,`Timeline archive fetched: ${K0??""}`),[()=>v6(Math.round(W(w)))]),V(s,a)};j($,(s)=>{if(W(w))s(b)})}z1(2),C(I);var l=S(I,2);{var n=(s)=>{var a=dW(),W0=h(a),K0=O(W0),q0=S(O(K0));p0(q0),q0.__keydown=q,C(K0),C(W0);var o=S(W0,2);A0(o,21,()=>W(H),(e)=>e.uri,(e,P0)=>{L1(e,{get post(){return W(P0)},placement:"feed"})}),C(o),P1(q0,()=>W(G),(e)=>D(G,e)),V(s,a)};j(l,(s)=>{if(W(w))s(n)})}g((s)=>{u(T,s),W5(N,W(Z)?"Cancel":"Fetch timeline")},[()=>v6(W(Q))]),C1("submit",M,F),P1(E,()=>W(Q),(s)=>D(Q,s)),V(Y,x)},$$slots:{default:!0}}),c()}I0(["keydown"]);var _W=P(" ",1);function TJ(z,J){_(J,!0);let Q=(F)=>{var q=d(),Y=h(q);{var U=(I)=>{LJ(I,{})},x=(I)=>{var M=d(),A=h(M);{var E=(T)=>{DJ(T,{})},v=(T)=>{var y=d(),N=h(y);{var R=($)=>{OJ($,{})},k=($)=>{var b=d(),l=h(b);{var n=(a)=>{var W0=d(),K0=h(W0);{var q0=(e)=>{PJ(e,{get lycan(){return J.params.lycan}})},o=(e)=>{bJ(e,{})};j(K0,(e)=>{if(J.params.mode=="likes")e(q0);else e(o,!1)})}V(a,W0)},s=(a)=>{V7(a,{})};j(l,(a)=>{if(J.params.page=="search")a(n);else a(s,!1)},!0)}V($,b)};j(N,($)=>{if(J.params.page=="like_stats")$(R);else $(k,!1)},!0)}V(T,y)};j(A,(T)=>{if(J.params.page=="posting_stats")T(E);else T(v,!1)},!0)}V(I,M)};j(Y,(I)=>{if(J.params.page=="notif")I(U);else I(x,!1)})}V(F,q)};if(J.params.page&&!X1.loggedIn)I8({showClose:!1});var K=_W(),X=h(K);r9(X,{});var Z=S(X,2);o9(Z,{});var w=S(Z,2);AJ(w,{});var G=S(w,2);{var H=(F)=>{x7(F,{get url(){return J.params.q}})},B=(F)=>{var q=d(),Y=h(q);{var U=(I)=>{x7(I,{get author(){return J.params.author},get rkey(){return J.params.post}})},x=(I)=>{var M=d(),A=h(M);{var E=(T)=>{RJ(T,{get postURL(){return J.params.quotes}})},v=(T)=>{var y=d(),N=h(y);{var R=($)=>{MJ($,{get hashtag(){return J.params.hash}})},k=($)=>{var b=d(),l=h(b);{var n=(a)=>{var W0=d(),K0=h(W0);{var q0=(o)=>{Q(o)};j(K0,(o)=>{if(X1.loggedIn)o(q0)})}V(a,W0)},s=(a)=>{V7(a,{})};j(l,(a)=>{if(J.params.page)a(n);else a(s,!1)},!0)}V($,b)};j(N,($)=>{if(J.params.hash)$(R);else $(k,!1)},!0)}V(T,y)};j(A,(T)=>{if(J.params.quotes)T(E);else T(v,!1)},!0)}V(I,M)};j(Y,(I)=>{if(J.params.author&&J.params.post)I(U);else I(x,!1)},!0)}V(F,q)};j(G,(F)=>{if(J.params.q)F(H);else F(B,!1)})}V(z,K),c()}function PK(){if(window.location.protocol!="https:")return;let z=window._paq=window._paq||[];z.push(["setExcludedQueryParams",["fbclid"]]),z.push(["setTrackerUrl","https://mackuba.eu/stat/matomo.php"]),z.push(["setCustomUrl",cW(location.href)]),z.push(["setRequestMethod","POST"]),z.push(["setSiteId","13"]),z.push(["disableCookies"]),z.push(["disableAlwaysUseSendBeacon"]),z.push(["trackPageView"])}function cW(z){let J=new URL(z),Q=J.searchParams;for(let K of Q.keys())if(["q","author","post","quotes","hash"].includes(K))Q.set(K,"xxx");return J.search=Q.toString(),J.origin+J.pathname+J.search}function sW(){let z=YK(location.search);B8(TJ,{target:document.body,props:{params:z}})}document.addEventListener("DOMContentLoaded",sW);PK();})(); + After the import is complete, the database will be kept up to date automatically going forward.

    `),AW=j('

    '),kW=j('

    Import in progress

    '),NW=j('
    '),bW=j("

    ...

    "),TW=j('

    '),EW=j(" ",1),yW=j('

    Archive search

    ',1);function AJ(z,J){_(J,!0);let Q=[],K=[{id:"likes",title:"Likes"},{id:"reposts",title:"Reposts"},{id:"quotes",title:"Quotes"},{id:"pins",title:"Pins"}],Z=z0(()=>I(J.lycan)),X=m(!1),w=m(void 0),Y=m(void 0),G=m(0),B=m(!1),V,H=m(q0(K[0].id)),U=m(""),x=m(!1),q=m(!1),C=m(q0([])),P=m(void 0);f();function I(k){if(!k)return new i9;else if(k=="local"||k=="localhost")return new J7("http://localhost:3000");else if(k.startsWith("local:")||k.startsWith("localhost:")){let i=k.split(":")[1];return new J7(`http://localhost:${i}`)}else return new i9(`did:web:${J.lycan}#lycan`)}function R(k){k.preventDefault(),b({status:"requested"}),D(B,!0),W(Z).startImport().catch((i)=>{console.error("Failed to start Lycan import",i),N(`Import failed: ${i}`)})}function v(k){if(k.key=="Enter"){k.preventDefault();let i=W(U).trim().toLowerCase();if(i.length==0||W(w)!="finished")return;D(C,[],!0),D(B,!1),D(x,!0),D(q,!1),D(P,void 0),W(Z).searchPosts(W(H),i,{onPostsLoaded:({posts:t,terms:$})=>{D(x,!1),W(C).push(...t),D(P,W(P)??$,!0)},onFinish:()=>{D(q,!0)}})}}async function f(){if(W(X))return;D(X,!0);try{let k=await W(Z).getImportStatus();b(k)}catch(k){N(`Couldn't check import status: ${k}`)}finally{D(X,!1)}}function b(k){if(console.log(k),!k.status){N("Error checking import status");return}D(w,k.status,!0);let i=["in_progress","scheduled","requested"].includes(k.status);if(D(B,W(B)||i,!0),k.status=="not_started");else if(i)E(k);else if(k.status=="finished")E({status:"finished",progress:1});else N("Error checking import status");i?h():l()}function E(k){if(D(G,Math.max(0,Math.min(k.progress||0,1)),!0),k.progress==1)D(Y,"Import complete ✓");else if(k.position){let i=new Date(k.position).toLocaleString(i0.dateLocale,{day:"numeric",month:"short",year:"numeric"});D(Y,`Downloaded data until: ${i}`)}else if(k.status=="requested")D(Y,"Requesting import…");else D(Y,"Import started…")}function N(k){D(w,"error"),D(B,!0),D(Y,k,!0),l()}function h(){if(!V)V=setInterval(f,3000)}function l(){if(V)clearInterval(V),V=void 0}_9(z,{children:(k,i)=>{var t=yW(),$=L(p(t),2),n=S($),K0=L(S(n));n0(K0),O(n);var Z0=L(n,2);N0(Z0,21,()=>K,w1,(y0,Q0)=>{var Y0=DW(),U0=p(Y0);n0(U0);var R0,V0=L(U0,2),M0=S(V0,!0);O(V0),y(()=>{if(d(U0,"id",`collection-${W(Q0).id??""}`),R0!==(R0=W(Q0).id))U0.value=(U0.__value=W(Q0).id)??"";d(V0,"for",`collection-${W(Q0).id??""}`),u(M0,W(Q0).title)}),N9(Q,[],U0,()=>{return W(Q0).id,W(H)},(e0)=>D(H,e0)),F(y0,Y0)}),O(Z0),O($);var C0=L($,2);{var L1=(y0)=>{var Q0=NW(),Y0=S(Q0);{var U0=(V0)=>{var M0=RW();$0("submit",M0,R),F(V0,M0)},R0=(V0)=>{var M0=kW(),e0=L(S(M0),2),A0=S(e0,!0);O(e0);var t6=L(e0,2);{var L0=(_1)=>{var v0=AW(),g0=S(v0),z6=L(g0,2),b1=S(z6);O(z6),O(v0),y((L6)=>{S6(g0,W(G)),u(b1,`${L6??""}%`)},[()=>Math.round(W(G)*100)]),F(_1,v0)};A(t6,(_1)=>{if(W(w)!="error")_1(L0)})}O(M0),y(()=>u(A0,W(Y))),F(V0,M0)};A(Y0,(V0)=>{if(W(w)=="not_started")V0(U0);else V0(R0,-1)})}O(Q0),F(y0,Q0)};A(C0,(y0)=>{if(W(B)||W(w)=="not_started")y0(L1)})}var P0=L(C0,2),t0=S(P0);{var s=(y0)=>{var Q0=bW();F(y0,Q0)},j0=(y0)=>{var Q0=EW(),Y0=p(Q0);N0(Y0,17,()=>W(C),(V0)=>V0.uri,(V0,M0)=>{l1(V0,{get post(){return W(M0)},placement:"feed",get highlightedMatches(){return W(P)}})});var U0=L(Y0,2);{var R0=(V0)=>{var M0=TW(),e0=S(M0,!0);O(M0),y(()=>u(e0,W(C).length>0?"No more results.":"No results.")),F(V0,M0)};A(U0,(V0)=>{if(W(q))V0(R0)})}F(y0,Q0)};A(t0,(y0)=>{if(W(x))y0(s);else y0(j0,-1)})}O(P0),y(()=>K0.disabled=W(w)!="finished"),H0("keydown",K0,v),m1(K0,()=>W(U),(y0)=>D(U,y0)),F(k,t)},$$slots:{default:!0}}),c()}I0(["keydown"]);var vW=j("Reply to you"),zX=j(" "),gW=j("Reply"),hW=j('

    ');function c9(z,J){_(J,!0);let Q=z0(()=>d0(J.uri)),K=z0(()=>W(Q).repo),Z=z0(()=>W(Q).rkey);var X=hW(),w=L(S(X),2);{var Y=(B)=>{var V=vW();y((H)=>d(V,"href",H),[()=>j6(W(K),W(Z))]),F(B,V)},G=(B)=>{var V=J0(),H=p(V);Q8(H,()=>E0.fetchHandleForDid(W(K)),(U)=>{var x=gW();y((q)=>d(x,"href",q),[()=>j6(W(K),W(Z))]),F(U,x)},(U,x)=>{var q=zX(),C=S(q);O(q),y((P)=>{d(q,"href",P),u(C,`Reply to @${W(x)??""}`)},[()=>j6(W(x),W(Z))]),F(U,q)},(U)=>{var x=zX(),q=S(x);O(x),y((C)=>{d(x,"href",C),u(q,`Reply to ${W(K)??""}`)},[()=>j6(W(K),W(Z))]),F(U,x)}),F(B,V)};A(w,(B)=>{if(F0&&W(K)==F0.user.did)B(Y);else B(G,-1)})}O(X),F(z,X),c()}var mW=j(" ",1),fW=j('

    Replies & Mentions:

    ');function kJ(z,J){_(J,!0);let Q=q0([]),K=m(!1),Z=m(!1),X=!1,w=!1,Y;h5(async(U)=>{if(X||w)return;X=!0;try{let x=await F0.loadMentions(Y),q=x.posts.map((C)=>new D0(C));if(!W(K)&&q.length>0)D(K,!0);if(Q.push(...q),X=!1,Y=x.cursor,!Y)w=!0;else if(q.length==0)U()}catch(x){console.log(x),X=!1,D(Z,!0)}});var G=J0();K8("387i67",(U)=>{P1(()=>{R5.title="Notifications - Skythread"})});var B=p(G);{var V=(U)=>{var x=fW(),q=L(S(x),2);N0(q,17,()=>Q,(C)=>C.uri,(C,P)=>{var I=mW(),R=p(I);{var v=(b)=>{c9(b,{get uri(){return W(P).parentReference.uri}})};A(R,(b)=>{if(W(P).parentReference)b(v)})}var f=L(R,2);l1(f,{get post(){return W(P)},placement:"feed"}),F(C,I)}),O(x),F(U,x)},H=(U)=>{H5(U,{})};A(B,(U)=>{if(W(K))U(V);else if(!W(Z))U(H,1)})}F(z,G),c()}var JX=(z,J=J6)=>{var Q=uW(),K=p(Q),Z=L(K,2),X=S(Z,!0);O(Z);var w=L(Z,2),Y=S(w,!0);O(w),y(()=>{d(K,"src",J().avatar),u(X,J().displayName||"–"),u(Y,J().handle)}),F(z,Q)},uW=j('Avatar ',1),$W=j("
    "),lW=j('
    '),pW=j(''),dW=j('
    ');function NJ(z,J){_(J,!0);let Q=S0(J,"selectedUsers",27,()=>q0([])),K=m(""),Z=m(q0([])),X=m(-1),w=z0(()=>Q().map((N)=>N.did)),Y=z0(()=>W(Z).length>0),G=m(0),B;o0(()=>{let N=document.body.parentNode;return N.addEventListener("click",x),()=>{N.removeEventListener("click",x)}});function V(){if(B)clearTimeout(B);let N=W(K).trim();if(N.length>0)B=setTimeout(()=>U(N),100);else x(),B=void 0}function H(N){if(N.key=="Enter"){if(N.preventDefault(),W(X)>=0)P(W(X))}else if(N.key=="Escape")x();else if(N.key=="ArrowDown"&&W(Z).length>0)N.preventDefault(),q(1);else if(N.key=="ArrowUp"&&W(Z).length>0)N.preventDefault(),q(-1)}async function U(N){let h=await E0.autocompleteUsers(N),l=new Set(W(w));if(h=h.filter((k)=>!l.has(k.did)),h.length>0)D(Z,h,!0),D(X,0);else x()}function x(){D(Z,[],!0),D(X,-1)}function q(N){if(W(Z).length==0)return;let h=W(X)+N;if(h<0)h=W(Z).length-1;else if(h>=W(Z).length)h=0;D(X,h,!0)}function C(N,h){N.preventDefault(),P(h)}function P(N){let h=W(Z)[N];if(!h)return;Q().push(h),D(K,""),x()}function I(N,h){N.preventDefault(),Q().splice(h,1)}var R=dW(),v=S(R);n0(v),z8(v,!0);var f=L(v,2);{var b=(N)=>{var h=lW();let l;N0(h,23,()=>W(Z),(k)=>k.did,(k,i,t)=>{var $=$W();let n;var K0=S($);JX(K0,()=>W(i)),O($),y(()=>n=r0($,1,"user-row svelte-2z5j67wda5rm6",null,n,{highlighted:W(X)==W(t)})),$0("mouseenter",$,()=>{D(X,W(t),!0)}),H0("mousedown",$,(Z0)=>{C(Z0,W(t))}),F(k,$)}),O(h),y(()=>l=h6(h,"",l,{display:W(Y)?"block":"none",top:`${W(G)??""}px`})),F(N,h)};A(f,(N)=>{if(W(Y))N(b)})}var E=L(f,2);N0(E,23,Q,(N)=>N.did,(N,h,l)=>{var k=pW(),i=S(k);JX(i,()=>W(h));var t=L(i,2);O(k),H0("click",t,($)=>{I($,W(l))}),F(N,k)}),O(E),O(R),H0("input",v,V),H0("keydown",v,H),m1(v,()=>W(K),(N)=>D(K,N)),D4(v,"offsetHeight",(N)=>D(G,N)),F(z,R),c()}I0(["input","keydown","mousedown","click"]);var iW=j('All posts /d Own posts /d Reposts /d',1),_W=j('Posts /d'),cW=j('% of timeline'),Q7=j(' '),sW=j(''),oW=j('Total: '),aW=j(' '),rW=j('Avatar '),nW=j('
    #Handle
    ');function bJ(z,J){_(J,!0);let Q=S0(J,"showReposts",3,!0),K=S0(J,"showPercentages",3,!0),Z=S0(J,"showTotal",3,!0);function X(R){return R>0?R.toFixed(1):"–"}var w=nW(),Y=S(w),G=S(Y),B=L(S(G),2);{var V=(R)=>{var v=iW();F1(4),F(R,v)},H=(R)=>{var v=_W();F(R,v)};A(B,(R)=>{if(Q())R(V);else R(H,-1)})}var U=L(B);{var x=(R)=>{var v=cW();F(R,v)};A(U,(R)=>{if(K())R(x)})}O(G),O(Y);var q=L(Y),C=S(q);{var P=(R)=>{var v=oW(),f=L(S(v),2);{var b=(t)=>{var $=Q7(),n=S($,!0);O($),y((K0)=>u(n,K0),[()=>X(J.sums.all/J.daysBack)]),F(t,$)};A(f,(t)=>{if(Q())t(b)})}var E=L(f),N=S(E,!0);O(E);var h=L(E);{var l=(t)=>{var $=Q7(),n=S($,!0);O($),y((K0)=>u(n,K0),[()=>X(J.sums.reposts/J.daysBack)]),F(t,$)};A(h,(t)=>{if(Q())t(l)})}var k=L(h);{var i=(t)=>{var $=sW();F(t,$)};A(k,(t)=>{if(K())t(i)})}O(v),y((t)=>u(N,t),[()=>X(J.sums.own/J.daysBack)]),F(R,v)};A(C,(R)=>{if(Z())R(P)})}var I=L(C);N0(I,17,()=>J.users,w1,(R,v,f)=>{var b=rW(),E=S(b);E.textContent=f+1;var N=L(E),h=S(N),l=L(h,2),k=S(l,!0);O(l),O(N);var i=L(N);{var t=(P0)=>{var t0=Q7(),s=S(t0,!0);O(t0),y((j0)=>u(s,j0),[()=>X(W(v).all/J.daysBack)]),F(P0,t0)};A(i,(P0)=>{if(Q())P0(t)})}var $=L(i),n=S($,!0);O($);var K0=L($);{var Z0=(P0)=>{var t0=Q7(),s=S(t0,!0);O(t0),y((j0)=>u(s,j0),[()=>X(W(v).reposts/J.daysBack)]),F(P0,t0)};A(K0,(P0)=>{if(Q())P0(Z0)})}var C0=L(K0);{var L1=(P0)=>{var t0=aW(),s=S(t0);O(t0),y((j0)=>u(s,`${j0??""}%`),[()=>X(W(v).all*100/J.sums.all)]),F(P0,t0)};A(C0,(P0)=>{if(K())P0(L1)})}O(b),y((P0)=>{d(h,"src",W(v).avatar),d(l,"href",`https://bsky.app/profile/${W(v).handle??""}`),u(k,W(v).handle),u(n,P0)},[()=>X(W(v).own/J.daysBack)]),F(R,b)}),O(q),O(w),F(z,w),c()}class TJ{appView;userProgress;onProgress;abortController;constructor(z){this.onProgress=z,this.appView=new P6("public.api.bsky.app"),this.userProgress={}}async scanHomeTimeline(z){let J=new Date().getTime();this.abortController=new AbortController;let Q=await F0.loadHomeTimeline(z,{onPageLoad:(K)=>this.updateProgress(K,J),abortSignal:this.abortController.signal,keepLastPage:!0});return this.generateResults(Q,z,J)}async scanListTimeline(z,J){let Q=new Date().getTime();this.abortController=new AbortController;let K=await F0.loadListTimeline(z,J,{onPageLoad:(Z)=>this.updateProgress(Z,Q),abortSignal:this.abortController.signal,keepLastPage:!0});return this.generateResults(K,J,Q)}async scanUserTimelines(z,J){let Q=new Date().getTime(),K=z.map((G)=>G.did);this.resetUserProgress(K),this.abortController=new AbortController;let Z=this.abortController.signal,X=K.map((G)=>this.appView.loadUserTimeline(G,J,{filter:"posts_and_author_threads",onPageLoad:(B)=>this.updateUserProgress(G,B,Q,J),abortSignal:Z,keepLastPage:!0})),Y=(await Promise.all(X)).flat();return this.generateResults(Y,J,Q,{countFetchedDays:!1,users:z})}async scanYourTimeline(z){let J=new Date().getTime();this.abortController=new AbortController;let Q=await F0.loadUserTimeline(F0.user.did,z,{filter:"posts_no_replies",onPageLoad:(K)=>this.updateProgress(K,J),abortSignal:this.abortController.signal,keepLastPage:!0});return this.generateResults(Q,z,J)}generateResults(z,J,Q,K={}){let Z=z.at(-1);if(!Z)return null;let X={},w=W6(Z),Y=(Q-w)/86400/1000,G;if(K.countFetchedDays!==!1)G=Math.min(J,Y);else G=J;let B=Q-J*86400*1000;if(z=z.filter((x)=>W6(x)>B),z.reverse(),K.users)for(let x of K.users)X[x.handle]={handle:x.handle,own:0,reposts:0,avatar:x.avatar};let V=new Set,H={own:0,reposts:0,all:0};for(let x of z){if(x.reply){if(!V.has(x.reply.parent.uri))continue}let q=x.reason?x.reason.by:x.post.author,C=q.handle;if(X[C]=X[C]??{handle:C,own:0,reposts:0,avatar:q.avatar},x.reason)X[C].reposts+=1,H.reposts+=1;else X[C].own+=1,H.own+=1,V.add(x.post.uri)}let U=Object.values(X);return U.forEach((x)=>{x.all=x.own+x.reposts}),U.sort((x,q)=>q.all-x.all),H.all=H.own+H.reposts,{users:U,sums:H,fetchedDays:Y,daysBack:G}}updateProgress(z,J){let Q=z.at(-1);if(!Q)return;let K=W6(Q),Z=(J-K)/86400/1000;this.onProgress?.(Z)}resetUserProgress(z){this.userProgress={};for(let J of z)this.userProgress[J]={pages:0,progress:0}}updateUserProgress(z,J,Q,K){let Z=J.at(-1);if(!Z)return;let X=W6(Z),w=(Q-X)/86400/1000;this.userProgress[z].pages+=1,this.userProgress[z].progress=Math.min(w/K,1);let Y=Object.values(this.userProgress).map((U)=>U.pages/U.progress),G=Y.filter((U)=>!isNaN(U)),B=G.reduce((U,x)=>U+x)/G.length*Y.length,H=Object.values(this.userProgress).map((U)=>U.pages).reduce((U,x)=>U+x)/B*K;this.onProgress?.(H)}abortScan(){this.abortController?.abort(),delete this.abortController}}var tW=j(' ',1),eW=j(""),zY=j('

    '),JY=j(''),QY=j('

    '),KY=j('

    Bluesky posting statistics

    Scan posts from:

    Time range:

    ');function EJ(z,J){_(J,!0);let Q=[],K=[{id:"home",title:"Home timeline"},{id:"list",title:"List feed"},{id:"users",title:"Selected users"},{id:"you",title:"Your profile"}],Z=m(q0([])),X=m(7),w=m(q0(K[0].id)),Y=m(q0([])),G=m(void 0),B=m(!1),V=m(void 0),H=m(void 0),U=m(void 0),x=m(q0({})),q=m(null),C=new TJ((Q0)=>{D(H,Math.max(W(H)||0,Q0),!0)});o0(()=>{I()});function P(){D(q,null)}async function I(){let Q0=await F0.loadUserLists();D(Z,Q0.sort((Y0,U0)=>{let R0=Y0.name.toLocaleLowerCase(),V0=U0.name.toLocaleLowerCase();return R0.localeCompare(V0)}),!0),D(G,W(Z)[0]?.uri,!0)}async function R(Q0){Q0.preventDefault();try{if(!W(B))await v();else D(B,!1),C.abortScan()}catch(Y0){if(Y0.name!=="AbortError")throw Y0}}async function v(){if(W(w)=="list"&&!W(G)||W(w)=="users"&&W(Y).length==0)return;D(U,void 0),D(q,null),D(V,W(X),!0),D(H,0),D(B,!0);let Q0=new Date().getTime(),Y0,U0;if(W(w)=="home")U0={},Y0=await C.scanHomeTimeline(W(V));else if(W(w)=="list")U0={showReposts:!1},Y0=await C.scanListTimeline(W(G),W(V));else if(W(w)=="users")U0={showTotal:!1,showPercentages:!1},Y0=await C.scanUserTimelines(W(Y),W(V));else U0={showTotal:!1,showPercentages:!1},Y0=await C.scanYourTimeline(W(V));if(new Date().getTime()-Q0<150)await new Promise((V0)=>setTimeout(V0,150));D(x,U0,!0),D(q,Y0,!0),D(B,!1)}var f=KY(),b=L(S(f),2),E=S(b),N=L(S(E));N0(N,17,()=>K,w1,(Q0,Y0)=>{var U0=tW(),R0=p(U0);n0(R0);var V0,M0=L(R0,2),e0=S(M0,!0);O(M0),y(()=>{if(d(R0,"id",`scan_type_${W(Y0).id??""}`),V0!==(V0=W(Y0).id))R0.value=(R0.__value=W(Y0).id)??"";d(M0,"for",`scan_type_${W(Y0).id??""}`),u(e0,W(Y0).title)}),H0("click",R0,P),N9(Q,[],R0,()=>{return W(Y0).id,W(w)},(A0)=>D(w,A0)),F(Q0,U0)}),O(E);var h=L(E,2),l=L(S(h));n0(l);var k=L(l,2),i=S(k,!0);O(k),O(h);var t=L(h,2);{var $=(Q0)=>{var Y0=zY(),U0=L(S(Y0),2);N0(U0,21,()=>W(Z),w1,(R0,V0)=>{var M0=eW(),e0=S(M0);O(M0);var A0={};y(()=>{if(u(e0,`${W(V0).name??""} `),A0!==(A0=W(V0).uri))M0.value=(M0.__value=W(V0).uri)??""}),F(R0,M0)}),O(U0),O(Y0),O4(U0,()=>W(G),(R0)=>D(G,R0)),F(Q0,Y0)};A(t,(Q0)=>{if(W(w)=="list")Q0($)})}var n=L(t,2);{var K0=(Q0)=>{NJ(Q0,{get selectedUsers(){return W(Y)},set selectedUsers(Y0){D(Y,Y0,!0)}})};A(n,(Q0)=>{if(W(w)=="users")Q0(K0)})}var Z0=L(n,2),C0=S(Z0);n0(C0);var L1=L(C0,2);{var P0=(Q0)=>{var Y0=JY();y(()=>{d(Y0,"max",W(V)),S6(Y0,W(H))}),F(Q0,Y0)};A(L1,(Q0)=>{if(W(B))Q0(P0)})}O(Z0),O(b);var t0=L(b,2);{var s=(Q0)=>{var Y0=QY(),U0=S(Y0,!0);O(Y0),y(()=>u(U0,W(U))),F(Q0,Y0)};A(t0,(Q0)=>{if(W(U))Q0(s)})}var j0=L(t0,2);{var y0=(Q0)=>{bJ(Q0,k4(()=>W(x),()=>W(q)))};A(j0,(Q0)=>{if(W(q))Q0(y0)})}O(f),y((Q0)=>{u(i,Q0),S6(C0,!W(B)?"Start scan":"Cancel")},[()=>X8(W(X))]),$0("submit",b,R),m1(l,()=>W(X),(Q0)=>D(X,Q0)),F(z,f),c()}I0(["click"]);var ZY=j(" ",1),XY=j('

    ');function yJ(z,J){_(J,!0);let Q=!1,K,Z=!1,X=q0([]),w=m(void 0),Y=m(!1);h5(async()=>{if(Q||Z)return;Q=!0;try{let U=await Y8.getQuotes(J.postURL,K),q=(await E0.loadPosts(U.posts)).map((C)=>new D0(C));if(W(w)===void 0)D(w,U.quoteCount,!0);if(X.push(...q),Q=!1,K=U.cursor,!K||X.length==0)Z=!0}catch(U){console.log(U),Q=!1,D(Y,!0),y5(U)}});var G=J0(),B=p(G);{var V=(U)=>{var x=XY(),q=S(x),C=S(q),P=S(C);{var I=(b)=>{var E=n1();y(()=>u(E,`${W(w)??""} quotes:`)),F(b,E)},R=(b)=>{var E=n1("1 quote:");F(b,E)},v=(b)=>{var E=n1("No quotes found.");F(b,E)};A(P,(b)=>{if(W(w)>1)b(I);else if(W(w)==1)b(R,1);else b(v,-1)})}O(C),O(q);var f=L(q,2);N0(f,17,()=>X,(b)=>b.uri,(b,E)=>{var N=ZY(),h=p(N);{var l=(i)=>{c9(i,{get uri(){return W(E).parentReference.uri}})};A(h,(i)=>{if(W(E).parentReference)i(l)})}var k=L(h,2);l1(k,{get post(){return W(E)},placement:"quotes"}),F(b,N)}),O(x),F(U,x)},H=(U)=>{H5(U,{})};A(B,(U)=>{if(W(w)!==void 0)U(V);else if(!W(Y))U(H,1)})}F(z,G),c()}var wY=j('
    Tangled
    ');function vJ(z){var J=wY();F(z,J)}var WY=j('

    '),YY=j('
    '),GY=j('

    parent post has been deleted

    '),BY=j(`

    something went wrong, this shouldn't happen

    `);function gJ(z,J){_(J,!0);var Q=J0(),K=p(Q);{var Z=(G)=>{var B=WY(),V=L(S(B),2),H=S(V);O(V),O(B),y((U)=>{d(V,"href",U),u(H,`See parent post (@${J.post.author.handle??""})`)},[()=>n6(J.post)]),F(G,B)},X=(G)=>{var B=YY(),V=S(B);K9(V,{get post(){return J.post},placement:"parent",reason:"Parent post blocked"}),O(B),F(G,B)},w=(G)=>{var B=GY();F(G,B)},Y=(G)=>{var B=BY();F(G,B)};A(K,(G)=>{if(J.post instanceof D0)G(Z);else if(J.post instanceof r6)G(X,1);else if(J.post instanceof f6)G(w,2);else G(Y,-1)})}F(z,Q),c()}var UY=new Set(["$$slots","$$events","$$legacy"]),HY=j(" ",1),VY=j("
    ");function K7(z,J){_(J,!0);let Q=G5(J,UY),K=m(void 0),Z=m(!1),X=m(void 0),w;if("url"in Q){let{url:H}=Q;if(H.startsWith("at://"))w=E0.loadThreadByAtURI(H);else w=E0.loadThreadByURL(H)}else{let{author:H,rkey:U}=Q;w=E0.loadThreadById(H,U)}w.then((H)=>{let U=g5(H.thread);if(window.root=U,window.subtreeRoot=U,D(K,U,!0),U instanceof D0)U.data.quoteCount=void 0,Y8.getQuoteCount(U.uri).then((x)=>{W(X)?.setQuoteCount(x)}).catch((x)=>{console.warn("Couldn't load quote count: "+x)})}).catch((H)=>{y5(H),D(Z,!0)});var Y=J0();K8("64euhl",(H)=>{var U=J0(),x=p(U);{var q=(C)=>{I9(()=>{R5.title=`${W(K).author.displayName??""}: "${W(K).text??""}" - Skythread`})};A(x,(C)=>{if(W(K)instanceof D0)C(q)})}F(H,U)});var G=p(Y);{var B=(H)=>{var U=VY(),x=S(U);{var q=(P)=>{var I=HY(),R=p(I);{var v=(E)=>{gJ(E,{get post(){return W(K).parent}})},f=(E)=>{l9(E,{get uri(){return W(K).parentReference.uri}})};A(R,(E)=>{if(W(K).parent)E(v);else if(W(K).parentReference)E(f,1)})}var b=L(R,2);t1(l1(b,{get post(){return W(K)},placement:"thread"}),(E)=>D(X,E,!0),()=>W(X)),F(P,I)},C=(P)=>{U8(P,{get post(){return W(K)},placement:"thread"})};A(x,(P)=>{if(W(K)instanceof D0)P(q);else P(C,-1)})}O(U),F(H,U)},V=(H)=>{H5(H,{})};A(G,(H)=>{if(W(K))H(B);else if(!W(Z))H(V,1)})}F(z,Y),c()}class hJ{timelinePosts;abortController;constructor(){this.timelinePosts=[]}async fetchTimeline(z,J){let Q=new Date().getTime();this.abortController=new AbortController;let K=await F0.loadHomeTimeline(z,{abortSignal:this.abortController.signal,onPageLoad:(Z)=>{let X=this.calculateProgress(Z,Q);if(X)J(X)}});this.timelinePosts=this.deduplicatePosts(K)}calculateProgress(z,J){let Q=z.at(-1);if(!Q)return null;let K=W6(Q);return(J-K)/86400/1000}deduplicatePosts(z){let J={};for(let[Q,K]of z.entries())J[K.post.uri]=Q;return z.filter((Q,K)=>J[Q.post.uri]===K)}searchPosts(z){if(z.length==0)return[];return this.timelinePosts.filter((Q)=>Q.post.record.text.toLowerCase().includes(z)).map((Q)=>bZ(Q))}abortFetch(){this.abortController?.abort(),delete this.abortController}}var xY=j(""),qY=j('

    '),FY=j('
    ',1),MY=j('

    Timeline search

    ',1);function mJ(z,J){_(J,!0);let Q=m(7),K=m(void 0),Z=m(void 0),X=z0(()=>W(Z)!==void 0),w=m(void 0),Y=m(""),G=m(q0([])),B=new hJ;async function V(U){U.preventDefault();try{if(!W(X))D(K,W(Q),!0),D(Z,0),await B.fetchTimeline(W(Q),(x)=>{D(Z,x,!0)}),D(w,W(Z),!0),D(Z,void 0);else D(Z,void 0),B.abortFetch()}catch(x){if(x.name!=="AbortError")throw x}}function H(U){if(U.key=="Enter"){U.preventDefault();let x=W(Y).trim().toLowerCase();D(G,B.searchPosts(x),!0)}}_9(z,{children:(U,x)=>{var q=MY(),C=L(p(q),2),P=S(C),I=S(P),R=L(S(I));n0(R);var v=L(R,2),f=S(v,!0);O(v),O(I);var b=L(I,2),E=S(b);n0(E);var N=L(E,2);{var h=($)=>{var n=xY();y(()=>{d(n,"max",W(K)),S6(n,W(Z))}),F($,n)};A(N,($)=>{if(W(X))$(h)})}O(b),O(P);var l=L(P,2);{var k=($)=>{var n=qY(),K0=S(n);O(n),y((Z0)=>u(K0,`Timeline archive fetched: ${Z0??""}`),[()=>X8(Math.round(W(w)))]),F($,n)};A(l,($)=>{if(W(w))$(k)})}F1(2),O(C);var i=L(C,2);{var t=($)=>{var n=FY(),K0=p(n),Z0=S(K0),C0=L(S(Z0));n0(C0),O(Z0),O(K0);var L1=L(K0,2);N0(L1,21,()=>W(G),(P0)=>P0.uri,(P0,t0)=>{l1(P0,{get post(){return W(t0)},placement:"feed"})}),O(L1),H0("keydown",C0,H),m1(C0,()=>W(Y),(P0)=>D(Y,P0)),F($,n)};A(i,($)=>{if(W(w))$(t)})}y(($)=>{u(f,$),S6(E,W(X)?"Cancel":"Fetch timeline")},[()=>X8(W(Q))]),$0("submit",P,V),m1(R,()=>W(Q),($)=>D(Q,$)),F(U,q)},$$slots:{default:!0}}),c()}I0(["keydown"]);var OY=j(" ",1);function fJ(z,J){_(J,!0);let Q=(q)=>{var C=J0(),P=p(C);{var I=(E)=>{kJ(E,{})},R=(E)=>{EJ(E,{})},v=(E)=>{RJ(E,{})},f=(E)=>{var N=J0(),h=p(N);{var l=(i)=>{AJ(i,{get lycan(){return J.params.lycan}})},k=(i)=>{mJ(i,{})};A(h,(i)=>{if(J.params.mode=="likes")i(l);else i(k,-1)})}F(E,N)},b=(E)=>{ez(E,{})};A(P,(E)=>{if(J.params.page=="notif")E(I);else if(J.params.page=="posting_stats")E(R,1);else if(J.params.page=="like_stats")E(v,2);else if(J.params.page=="search")E(f,3);else E(b,-1)})}F(q,C)};if(J.params.page&&!j1.loggedIn)t8({showClose:!1});var K=OY(),Z=p(K);e4(Z,{});var X=L(Z,2);n4(X,{});var w=L(X,2);vJ(w,{});var Y=L(w,2);{var G=(q)=>{K7(q,{get url(){return J.params.q}})},B=(q)=>{K7(q,{get author(){return J.params.author},get rkey(){return J.params.post}})},V=(q)=>{yJ(q,{get postURL(){return J.params.quotes}})},H=(q)=>{IJ(q,{get hashtag(){return J.params.hash}})},U=(q)=>{var C=J0(),P=p(C);{var I=(R)=>{Q(R)};A(P,(R)=>{if(j1.loggedIn)R(I)})}F(q,C)},x=(q)=>{ez(q,{})};A(Y,(q)=>{if(J.params.q)q(G);else if(J.params.author&&J.params.post)q(B,1);else if(J.params.quotes)q(V,2);else if(J.params.hash)q(H,3);else if(J.params.page)q(U,4);else q(x,-1)})}F(z,K),c()}function QX(){if(window.location.protocol!="https:")return;let z=window._paq=window._paq||[];z.push(["setExcludedQueryParams",["fbclid"]]),z.push(["setTrackerUrl","https://mackuba.eu/stat/matomo.php"]),z.push(["setCustomUrl",SY(location.href)]),z.push(["setRequestMethod","POST"]),z.push(["setSiteId","13"]),z.push(["disableCookies"]),z.push(["trackPageView"])}function SY(z){let J=new URL(z),Q=J.searchParams;for(let K of Q.keys())if(["q","author","post","quotes","hash"].includes(K))Q.set(K,"xxx");return J.search=Q.toString(),J.origin+J.pathname+J.search}function CY(){let z=fZ(location.search);g8(fJ,{target:document.body,props:{params:z}})}document.addEventListener("DOMContentLoaded",CY);QX();})(); -//# debugId=6B984B831C8949D464756E2164756E21 +//# debugId=DC24B4B5A931CE5A64756E2164756E21 //# sourceMappingURL=skythread.js.map