ani-web 1.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ani-web might be problematic. Click here for more details.

Files changed (79) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +174 -0
  3. package/client/dist/assets/AnimeInfo-C7DQp7Oo.js +1 -0
  4. package/client/dist/assets/AnimeInfo-Sb3YiXHJ.css +1 -0
  5. package/client/dist/assets/AnimeInfoPage-DJA7AJQ8.js +2 -0
  6. package/client/dist/assets/Button-Fq9KaUOg.css +1 -0
  7. package/client/dist/assets/Button-o0l9V_NG.js +1 -0
  8. package/client/dist/assets/ErrorMessage-Ddf2zmRx.js +1 -0
  9. package/client/dist/assets/ErrorMessage-FOxXyZC9.css +1 -0
  10. package/client/dist/assets/Home-CKHJA97j.css +1 -0
  11. package/client/dist/assets/Home-Dey0azy1.js +1 -0
  12. package/client/dist/assets/Insights-BSRcCkDs.css +1 -0
  13. package/client/dist/assets/Insights-CogjPOd_.js +1 -0
  14. package/client/dist/assets/MAL-CYArH4yf.js +1 -0
  15. package/client/dist/assets/MAL-DeQNXXPx.css +1 -0
  16. package/client/dist/assets/Player-BWFN9gud.js +9 -0
  17. package/client/dist/assets/Player-CBCYW7uG.css +1 -0
  18. package/client/dist/assets/PlayerSettings-BgStUrrP.css +1 -0
  19. package/client/dist/assets/PlayerSettings-rWZuATQf.js +1 -0
  20. package/client/dist/assets/RemoveConfirmationModal-BBiogSdf.css +1 -0
  21. package/client/dist/assets/RemoveConfirmationModal-CLYqyGOv.js +1 -0
  22. package/client/dist/assets/Search-DZAWgKwq.js +1 -0
  23. package/client/dist/assets/Search-lWsVQ0Ke.css +1 -0
  24. package/client/dist/assets/Settings-Bv9fX-x3.css +1 -0
  25. package/client/dist/assets/Settings-DyisJGeD.js +1 -0
  26. package/client/dist/assets/ToggleSwitch-CLnWnAuY.js +1 -0
  27. package/client/dist/assets/ToggleSwitch-DInRb7iM.css +1 -0
  28. package/client/dist/assets/Watchlist-2dVYksxq.css +1 -0
  29. package/client/dist/assets/Watchlist-CuqJISI3.js +1 -0
  30. package/client/dist/assets/hls.light-DcbkToIY.js +27 -0
  31. package/client/dist/assets/index-BK_Zaqaw.css +1 -0
  32. package/client/dist/assets/index-CHVF4D4L.js +178 -0
  33. package/client/dist/assets/useAnimeInfoData-Cr58brCY.js +1 -0
  34. package/client/dist/assets/useIsMobile-gHo4t6g6.js +1 -0
  35. package/client/dist/assets/vendor-DdbgYKo4.js +3 -0
  36. package/client/dist/favicon.ico +0 -0
  37. package/client/dist/index.html +35 -0
  38. package/client/dist/logo.png +0 -0
  39. package/client/dist/placeholder.svg +4 -0
  40. package/client/dist/robots.txt +3 -0
  41. package/client/package.json +54 -0
  42. package/orchestrator.js +302 -0
  43. package/package.json +69 -0
  44. package/server/dist/config.js +86 -0
  45. package/server/dist/constants.json +1359 -0
  46. package/server/dist/controllers/auth.controller.js +213 -0
  47. package/server/dist/controllers/data.controller.js +126 -0
  48. package/server/dist/controllers/insights.controller.js +125 -0
  49. package/server/dist/controllers/proxy.controller.js +235 -0
  50. package/server/dist/controllers/settings.controller.js +147 -0
  51. package/server/dist/controllers/watchlist.controller.js +499 -0
  52. package/server/dist/db.js +231 -0
  53. package/server/dist/github-sync.js +279 -0
  54. package/server/dist/google.js +274 -0
  55. package/server/dist/logger.js +21 -0
  56. package/server/dist/providers/123anime.provider.js +229 -0
  57. package/server/dist/providers/allanime.provider.js +773 -0
  58. package/server/dist/providers/animepahe.provider.js +313 -0
  59. package/server/dist/providers/animeya.provider.js +799 -0
  60. package/server/dist/providers/provider.interface.js +2 -0
  61. package/server/dist/rclone.js +126 -0
  62. package/server/dist/repositories/insights.repository.js +30 -0
  63. package/server/dist/repositories/notifications.repository.js +22 -0
  64. package/server/dist/repositories/settings.repository.js +13 -0
  65. package/server/dist/repositories/shows-meta.repository.js +39 -0
  66. package/server/dist/repositories/watched-episodes.repository.js +60 -0
  67. package/server/dist/repositories/watchlist.repository.js +49 -0
  68. package/server/dist/routes/auth.routes.js +23 -0
  69. package/server/dist/routes/data.routes.js +43 -0
  70. package/server/dist/routes/insights.routes.js +11 -0
  71. package/server/dist/routes/proxy.routes.js +13 -0
  72. package/server/dist/routes/settings.routes.js +26 -0
  73. package/server/dist/routes/watchlist.routes.js +26 -0
  74. package/server/dist/server.js +179 -0
  75. package/server/dist/sync-config.js +28 -0
  76. package/server/dist/sync.js +383 -0
  77. package/server/dist/utils/db-utils.js +36 -0
  78. package/server/dist/utils/env.utils.js +70 -0
  79. package/server/package.json +54 -0
@@ -0,0 +1 @@
1
+ ._container_m7o0a_1{position:relative;display:flex;align-items:center}._bellBtn_m7o0a_7{background:none;border:none;color:var(--text-color);font-size:1.4rem;cursor:pointer;padding:var(--space-2);display:flex;align-items:center;justify-content:center;transition:transform .2s ease,color .2s ease;position:relative;width:48px;height:48px;border-radius:50%}._bellBtn_m7o0a_7:hover{transform:scale(1.1);color:var(--primary-color)}._badge_m7o0a_31{position:absolute;top:8px;right:8px;background-color:#ff4d4f;color:#fff;font-size:.65rem;font-weight:700;padding:2px 5px;border-radius:10px;min-width:14px;text-align:center;border:2px solid var(--header-bg);pointer-events:none;animation:_bounce_m7o0a_1 .5s ease-out}@keyframes _bounce_m7o0a_1{0%,20%,50%,80%,to{transform:translateY(0)}40%{transform:translateY(-5px)}60%{transform:translateY(-3px)}}._dropdown_m7o0a_66{position:absolute;top:calc(100% + 10px);right:0;width:320px;max-height:480px;background:#141414d9;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.1);border-radius:12px;box-shadow:0 10px 30px #00000080;z-index:1000;overflow:hidden;display:flex;flex-direction:column;animation:_slideIn_m7o0a_1 .3s ease}@keyframes _slideIn_m7o0a_1{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}._dropdownHeader_m7o0a_97{padding:1rem;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgba(255,255,255,.1)}._dropdownHeader_m7o0a_97 h4{margin:0;font-size:1rem;color:#fff}._clearAllBtn_m7o0a_111{background:none;border:none;color:var(--primary-color);font-size:.75rem;cursor:pointer;padding:4px 8px;border-radius:4px;transition:background .2s}._clearAllBtn_m7o0a_111:hover{background:#ffffff0d}._list_m7o0a_126{overflow-y:auto;flex:1}._list_m7o0a_126::-webkit-scrollbar{width:4px}._list_m7o0a_126::-webkit-scrollbar-thumb{background:#ffffff1a;border-radius:2px}._item_m7o0a_140{display:flex;align-items:center;padding:.75rem 1rem;gap:.85rem;text-decoration:none;transition:background .2s;border-bottom:1px solid rgba(255,255,255,.05);position:relative}._item_m7o0a_140:hover{background:#ffffff0d}._thumbnail_m7o0a_155{width:48px;height:64px;border-radius:6px;object-fit:cover;flex-shrink:0;box-shadow:0 2px 8px #0000004d}._itemInfo_m7o0a_164{flex:1;min-width:0}._itemTitle_m7o0a_169{display:block;font-size:.85rem;font-weight:600;color:#eee;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:.25rem}._itemMeta_m7o0a_180{display:inline-block;font-size:.7rem;background:var(--primary-color);color:#fff;padding:1px 6px;border-radius:4px;font-weight:600}._removeItem_m7o0a_190{background:none;border:none;color:#666;font-size:.75rem;cursor:pointer;padding:.5rem;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s,color .2s}._item_m7o0a_140:hover ._removeItem_m7o0a_190{opacity:1}._removeItem_m7o0a_190:hover{color:#ff4d4f}._emptyState_m7o0a_214{padding:2.5rem 1rem;text-align:center;color:#666;font-size:.9rem}@media(max-width:768px){._dropdown_m7o0a_66{position:fixed;top:var(--header-height, 60px);left:0;right:0;width:100vw;max-height:calc(100vh - var(--header-height, 60px));border-radius:0 0 12px 12px}._bellBtn_m7o0a_7{width:40px;height:40px;font-size:1.2rem}._badge_m7o0a_31{top:4px;right:4px}}._header_h54nb_1{height:var(--header-height);background-color:var(--bg-secondary);border-bottom:1px solid var(--border-primary);position:sticky;top:0;z-index:1000;display:flex;align-items:center;padding:0 var(--space-6);transition:transform var(--transition-slow),box-shadow var(--transition-base);box-shadow:var(--shadow-md)}._header_h54nb_1._hidden_h54nb_17{transform:translateY(-100%)}._leftSection_h54nb_21{display:flex;align-items:center;gap:var(--space-6);flex:1}._hamburgerBtn_h54nb_28{background-color:transparent;border:1px solid transparent;color:var(--text-primary);font-size:1.4rem;padding:var(--space-2);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all var(--transition-base);min-height:48px;min-width:48px}._hamburgerBtn_h54nb_28:hover{background-color:var(--bg-tertiary);border-color:var(--border-secondary);color:var(--accent)}._hamburgerBtn_h54nb_28:active{transform:scale(.95)}._rightSection_h54nb_54{display:flex;align-items:center;gap:var(--space-6)}._searchContainer_h54nb_60{position:relative;display:flex;align-items:center}._searchInput_h54nb_66{background-color:var(--bg-tertiary);border:1px solid var(--border-primary);color:var(--text-primary);padding:var(--space-2) var(--space-4) var(--space-2) var(--space-4);border-radius:var(--radius-full);width:250px;font-size:var(--font-size-md);font-family:inherit;transition:all var(--transition-base);min-height:48px}._searchInput_h54nb_66::placeholder{color:var(--text-muted)}._searchInput_h54nb_66:hover{background-color:var(--bg-elevated);border-color:var(--border-light)}._searchInput_h54nb_66:focus{border-color:var(--accent);background-color:var(--bg-tertiary);width:310px;outline:none;box-shadow:var(--shadow-input-focus)}._searchButton_h54nb_96{position:absolute;right:var(--space-4);background:transparent;border:none;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all var(--transition-base)}._searchIcon_h54nb_109{color:var(--text-muted);font-size:1.1rem;transition:all var(--transition-base)}._searchButton_h54nb_96:hover ._searchIcon_h54nb_109{color:var(--accent);transform:scale(1.1)}._searchButton_h54nb_96:active ._searchIcon_h54nb_109{transform:scale(.9)}._profileBtn_h54nb_124{width:44px;height:44px;border-radius:50%;overflow:hidden;border:2px solid var(--border-primary);cursor:pointer;transition:all var(--transition-base);display:flex;align-items:center;justify-content:center;flex-shrink:0}._profileBtn_h54nb_124:hover{border-color:var(--accent);box-shadow:0 0 0 3px #8a4fff33}._profileBtn_h54nb_124:active{transform:scale(.95)}._profileBtn_h54nb_124 svg{color:var(--text-primary);font-size:1.15rem}._profileImg_h54nb_152{width:100%;height:100%;object-fit:cover}._signInBtn_h54nb_158{display:flex;align-items:center;justify-content:center;background-color:var(--accent);color:#fff;border:none;padding:var(--space-2) var(--space-6);border-radius:var(--radius-full);font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);font-family:inherit;transition:all var(--transition-base);cursor:pointer;min-height:48px}._signInBtn_h54nb_158:hover{background-color:var(--accent-dark);box-shadow:var(--shadow-md)}._signInBtn_h54nb_158:active{transform:scale(.98)}._signInBtn_h54nb_158:focus{outline:none;box-shadow:var(--shadow-focus)}@media(max-width:768px){._header_h54nb_1{--header-height: 60px;padding:0 var(--space-3);gap:var(--space-2);flex-wrap:wrap}._logo_h54nb_197{--logo-height: 45px}._leftSection_h54nb_21{gap:var(--space-2)}._hamburgerBtn_h54nb_28{min-height:40px;min-width:40px;font-size:1.2rem}._rightSection_h54nb_54{gap:var(--space-2)}._searchInput_h54nb_66{width:120px;min-height:40px;font-size:var(--font-size-sm)}._searchInput_h54nb_66:focus{width:calc(100vw - 140px)}._profileBtn_h54nb_124{width:36px;height:36px}._signInBtn_h54nb_158{min-height:36px;padding:var(--space-2) var(--space-4)}._signInText_h54nb_235{display:none}}@media(max-width:480px){._searchContainer_h54nb_60{display:none}}._sidebar_co0vc_1{position:fixed;top:0;left:0;width:300px;max-width:85vw;height:100%;transition:transform var(--transition-fast);z-index:1010;padding:var(--space-4);display:flex;flex-direction:column;overflow-y:auto;transform:translate(-100%);background-color:var(--bg-secondary);color:var(--text-primary);box-shadow:0 20px 40px #0009}._logo_co0vc_20{display:flex;align-items:center;text-decoration:none;--logo-height: 60px}._sidebar_co0vc_1._open_co0vc_27{transform:translate(0)}._sidebarHeader_co0vc_31{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--space-6)}._closeBtn_co0vc_38{background:none;border:none;font-size:2rem;line-height:1;cursor:pointer;color:var(--text-primary);transition:color var(--transition-base);display:flex;align-items:center;justify-content:center;padding:var(--space-2)}._closeBtn_co0vc_38:hover{color:var(--accent-light);transform:none}._navLink_co0vc_57{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-3) var(--space-4);border-radius:var(--radius-md);text-decoration:none;transition:all var(--transition-base);color:var(--text-secondary);font-weight:var(--font-weight-medium);margin-bottom:var(--space-2)}._navLink_co0vc_57:hover{background-color:var(--bg-tertiary);color:var(--accent)}._navLink_co0vc_57._active_co0vc_75{background-color:#8a4fff26;color:var(--accent-light);border-left:3px solid var(--accent);padding-left:calc(var(--space-4) - 3px)}._overlay_co0vc_82{position:fixed;inset:0;background-color:#00000080;z-index:1005;border:none;padding:0;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);will-change:opacity;transition:opacity var(--transition-base);opacity:1}@media(max-width:768px){._sidebar_co0vc_1{padding:var(--space-3)}._sidebarHeader_co0vc_31{margin-bottom:var(--space-4)}._logo_co0vc_20{--logo-height: 45px}._navLink_co0vc_57{padding:var(--space-3);font-size:var(--font-size-base)}}._scrollToTop_y44gr_1{position:fixed;bottom:2rem;right:2rem;z-index:1000}._scrollButton_y44gr_8{background-color:#000;color:#fff;border:none;border-radius:50%;width:50px;height:50px;font-size:24px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 10px #0003;transition:opacity .6s ease-in-out,transform .3s ease-in-out,background-color .3s ease-in-out}._scrollButton_y44gr_8:hover{opacity:.8;transform:scale(1.1)}#nprogress{pointer-events:none}#nprogress .bar{background:#29d;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;box-shadow:0 0 10px #29d,0 0 5px #29d;opacity:1;-webkit-transform:rotate(3deg) translate(0px,-4px);-ms-transform:rotate(3deg) translate(0px,-4px);transform:rotate(3deg) translateY(-4px)}#nprogress .spinner{display:block;position:fixed;z-index:1031;top:15px;right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border:solid 2px transparent;border-top-color:#29d;border-left-color:#29d;border-radius:50%;-webkit-animation:nprogress-spinner .4s linear infinite;animation:nprogress-spinner .4s linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .spinner,.nprogress-custom-parent #nprogress .bar{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes nprogress-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:root{--accent-h: 265;--accent-s: 95%;--accent-l: 72%;--accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));--accent-light: hsl(var(--accent-h), 90%, 80%);--accent-lighter: hsl(var(--accent-h), 90%, 90%);--accent-dark: hsl(var(--accent-h), 90%, 55%);--accent-glow: hsla(var(--accent-h), var(--accent-s), var(--accent-l), .5);--color-danger: #ef4444;--color-error: var(--color-danger);--color-success: #10b981;--color-warning: #f59e0b;--secondary-h: 180;--secondary-s: 85%;--secondary-l: 50%;--accent-blue: hsl(var(--secondary-h), var(--secondary-s), var(--secondary-l));--accent-blue-light: hsl(var(--secondary-h), var(--secondary-s), 70%);--bg-main: #050505;--bg-secondary: #0f0f11;--bg-tertiary: #18181b;--bg-elevated: #27272a;--text-primary: #ffffff;--text-secondary: #a1a1aa;--text-tertiary: #71717a;--text-muted: #a1a1aa;--border-primary: rgba(255, 255, 255, .08);--border-secondary: rgba(255, 255, 255, .12);--border-accent: hsla(var(--accent-h), var(--accent-s), var(--accent-l), .3);--border: var(--border-primary);--card-radius: var(--radius-lg);--border-light: var(--border-secondary);--danger-color: var(--color-danger);--shadow-input-focus: 0 0 0 2px var(--accent-glow);--shadow-focus: 0 0 0 2px var(--accent-glow);--glass-bg: rgba(20, 20, 22, .95);--glass-border: var(--border-primary);--glass-highlight: rgba(255, 255, 255, .05);--glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, .36);--font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--font-size-xs: .75rem;--font-size-sm: .875rem;--font-size-base: 1rem;--font-size-md: 1.125rem;--font-size-lg: 1.5rem;--font-size-xl: 1.875rem;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--line-height-tight: 1.25;--line-height-normal: 1.5;--line-height-relaxed: 1.75;--space-1: .25rem;--space-2: .5rem;--space-3: .75rem;--space-4: 1rem;--space-5: 1.25rem;--space-6: 1.5rem;--space-8: 2rem;--space-10: 2.5rem;--space-12: 3rem;--space-16: 4rem;--radius-sm: 8px;--radius-md: 12px;--radius-lg: 20px;--radius-xl: 28px;--radius-full: 9999px;--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .05);--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 10px 10px -5px rgba(0, 0, 0, .04);--header-height: 90px;--max-width: 1600px;--sidebar-width: 280px;--ease-spring: cubic-bezier(.175, .885, .32, 1.275);--ease-smooth: cubic-bezier(.4, 0, .2, 1);--transition-fast: .2s var(--ease-smooth);--transition-base: .3s var(--ease-smooth);--transition-normal: .4s var(--ease-smooth);--transition-slow: .5s var(--ease-smooth)}@media(min-width:1920px){:root{--font-size-base: 1.125rem;--max-width: 2000px}}*,*:before,*:after{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;padding:0;font-family:var(--font-family);background:var(--bg-main);color:var(--text-primary);line-height:var(--line-height-normal);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-x:hidden}body:before{content:"";position:fixed;top:-50%;left:-50%;width:200%;height:200%;background:radial-gradient(circle at 50% 50%,rgba(139,92,246,.03) 0%,transparent 50%),radial-gradient(circle at 10% 10%,rgba(6,182,212,.02) 0%,transparent 40%);z-index:-1;pointer-events:none}h1,h2,h3,h4,h5,h6{margin:0;font-weight:var(--font-weight-semibold);letter-spacing:-.02em}a{color:inherit;text-decoration:none}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--bg-elevated);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--text-tertiary)}.text-gradient{background:linear-gradient(135deg,#fff,#a5a5a5);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.text-gradient-accent{background:linear-gradient(135deg,var(--accent-light) 0%,var(--accent) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.app-container{display:flex;flex-direction:column;min-height:100vh}main{flex:1;width:100%;max-width:var(--max-width);margin:0 auto;padding:var(--space-6);position:relative;z-index:1}.section-title{font-size:var(--font-size-lg);font-weight:var(--font-weight-bold);margin-bottom:var(--space-6);padding-left:var(--space-3);border-left:4px solid var(--accent);line-height:var(--line-height-tight)}.grid-container{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:var(--space-6);width:100%}footer{text-align:center;padding:var(--space-12);color:var(--text-muted);border-top:1px solid var(--border-primary);margin-top:var(--space-16);background:var(--bg-secondary)}footer a{color:var(--accent);text-decoration:none;font-weight:var(--font-weight-medium);transition:color var(--transition-fast)}footer a:hover{color:var(--accent-light);text-shadow:0 0 8px var(--accent-glow)}#nprogress .bar{background:var(--accent)!important;height:3px!important;box-shadow:0 0 15px var(--accent)!important}select{appearance:none;-webkit-appearance:none;cursor:pointer;background-color:var(--bg-tertiary)!important;border-color:var(--border-primary)!important}select:hover{background-color:var(--bg-tertiary)!important;border-color:var(--border-secondary)!important}select:focus{background-color:var(--bg-tertiary)!important;border-color:var(--accent)!important;outline:none}select:active{background-color:var(--bg-tertiary)!important}body.low-end{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol!important;--transition-fast: 0s !important;--transition-base: 0s !important;--transition-normal: 0s !important;--transition-slow: 0s !important;scroll-behavior:auto!important}body.low-end,body.low-end *{transition:none!important;animation:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:none!important;text-shadow:none!important}body.low-end:before{display:none!important}body.low-end .text-gradient,body.low-end .text-gradient-accent{background:none!important;-webkit-background-clip:initial!important;-webkit-text-fill-color:initial!important;color:var(--text-primary)!important}body.low-end .text-gradient-accent{color:var(--accent)!important}body.low-end [class*=banner],body.low-end [class*=bannerContainer],body.low-end [class*=bannerOverlay],body.low-end [class*=heroSection]{background-image:none!important;background-color:var(--bg-main)!important;min-height:auto!important}body.low-end [class*=infoGlass]{background:var(--bg-secondary)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border:1px solid var(--border-primary)!important;box-shadow:none!important}
@@ -0,0 +1,178 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Home-Dey0azy1.js","assets/vendor-DdbgYKo4.js","assets/ErrorMessage-Ddf2zmRx.js","assets/useAnimeInfoData-Cr58brCY.js","assets/useIsMobile-gHo4t6g6.js","assets/ErrorMessage-FOxXyZC9.css","assets/RemoveConfirmationModal-CLYqyGOv.js","assets/Button-o0l9V_NG.js","assets/Button-Fq9KaUOg.css","assets/RemoveConfirmationModal-BBiogSdf.css","assets/Home-CKHJA97j.css","assets/Watchlist-CuqJISI3.js","assets/Watchlist-2dVYksxq.css","assets/Settings-DyisJGeD.js","assets/ToggleSwitch-CLnWnAuY.js","assets/ToggleSwitch-DInRb7iM.css","assets/Settings-Bv9fX-x3.css","assets/Player-BWFN9gud.js","assets/Player-CBCYW7uG.css","assets/Search-DZAWgKwq.js","assets/Search-lWsVQ0Ke.css","assets/MAL-CYArH4yf.js","assets/MAL-DeQNXXPx.css","assets/Insights-CogjPOd_.js","assets/Insights-BSRcCkDs.css","assets/AnimeInfoPage-DJA7AJQ8.js"])))=>i.map(i=>d[i]);
2
+ import{g as A,X as de,d as O,y as k,T as ue,u as a,x as he,N as je,k as x,S as Le,A as re,q as T,a as j,b as ne,c as ae,e as me,L as B,f as qe,h as De,C as Re,P as Ue,R as We,i as P,z as q,j as Ke,l as Qe,Q as Ge,m as Ye,B as Ze,n as Je}from"./vendor-DdbgYKo4.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();const Xe="modulepreload",et=function(e){return"/"+e},ve={},D=function(t,r,n){let o=Promise.resolve();if(r&&r.length>0){let d=function(m){return Promise.all(m.map(p=>Promise.resolve(p).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),l=i?.nonce||i?.getAttribute("nonce");o=d(r.map(m=>{if(m=et(m),m in ve)return;ve[m]=!0;const p=m.endsWith(".css"),v=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${v}`))return;const f=document.createElement("link");if(f.rel=p?"stylesheet":Xe,p||(f.as="script"),f.crossOrigin="",f.href=m,l&&f.setAttribute("nonce",l),document.head.appendChild(f),p)return new Promise((b,c)=>{f.addEventListener("load",b),f.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${m}`)))})}))}function s(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return o.then(i=>{for(const l of i||[])l.status==="rejected"&&s(l.reason);return t().catch(s)})};var Se={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ge=A.createContext&&A.createContext(Se),tt=["attr","size","title"];function rt(e,t){if(e==null)return{};var r,n,o=nt(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function nt(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},J.apply(null,arguments)}function ye(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function X(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ye(Object(r),!0).forEach(function(n){at(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ye(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function at(e,t,r){return(t=it(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function it(e){var t=ot(e,"string");return typeof t=="symbol"?t:t+""}function ot(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ze(e){return e&&e.map((t,r)=>A.createElement(t.tag,X({key:r},t.attr),ze(t.child)))}function h(e){return t=>A.createElement(st,J({attr:X({},e.attr)},t),ze(e.child))}function st(e){var t=r=>{var{attr:n,size:o,title:s}=e,i=rt(e,tt),l=o||r.size||"1em",d;return r.className&&(d=r.className),e.className&&(d=(d?d+" ":"")+e.className),A.createElement("svg",J({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,i,{className:d,style:X(X({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),s&&A.createElement("title",null,s),e.children)};return ge!==void 0?A.createElement(ge.Consumer,null,r=>t(r)):t(Se)}function ct(e){return h({attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"},child:[]}]})(e)}function Cr(e){return h({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zm233.32-51.08c-11.17-7.33-26.18-4.24-33.51 6.95-7.34 11.17-4.22 26.18 6.95 33.51 66.27 43.49 105.82 116.6 105.82 195.58 0 78.98-39.55 152.09-105.82 195.58-11.17 7.32-14.29 22.34-6.95 33.5 7.04 10.71 21.93 14.56 33.51 6.95C528.27 439.58 576 351.33 576 256S528.27 72.43 448.35 19.97zM480 256c0-63.53-32.06-121.94-85.77-156.24-11.19-7.14-26.03-3.82-33.12 7.46s-3.78 26.21 7.41 33.36C408.27 165.97 432 209.11 432 256s-23.73 90.03-63.48 115.42c-11.19 7.14-14.5 22.07-7.41 33.36 6.51 10.36 21.12 15.14 33.12 7.46C447.94 377.94 480 319.54 480 256zm-141.77-76.87c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 228.28 336 241.63 336 256c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.86z"},child:[]}]})(e)}function xr(e){return h({attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M215 71l-89 89H24a24 24 0 0 0-24 24v144a24 24 0 0 0 24 24h102.06L215 441c15 15 41 4.47 41-17V88c0-21.47-26-32-41-17z"},child:[]}]})(e)}function Lr(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zM461.64 256l45.64-45.64c6.3-6.3 6.3-16.52 0-22.82l-22.82-22.82c-6.3-6.3-16.52-6.3-22.82 0L416 210.36l-45.64-45.64c-6.3-6.3-16.52-6.3-22.82 0l-22.82 22.82c-6.3 6.3-6.3 16.52 0 22.82L370.36 256l-45.63 45.63c-6.3 6.3-6.3 16.52 0 22.82l22.82 22.82c6.3 6.3 16.52 6.3 22.82 0L416 301.64l45.64 45.64c6.3 6.3 16.52 6.3 22.82 0l22.82-22.82c6.3-6.3 6.3-16.52 0-22.82L461.64 256z"},child:[]}]})(e)}function Sr(e){return h({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M215.03 72.04L126.06 161H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V89.02c0-21.47-25.96-31.98-40.97-16.98zm123.2 108.08c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 229.28 336 242.62 336 257c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.87z"},child:[]}]})(e)}function zr(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M64 224h13.5c24.7 56.5 80.9 96 146.5 96s121.8-39.5 146.5-96H384c8.8 0 16-7.2 16-16v-96c0-8.8-7.2-16-16-16h-13.5C345.8 39.5 289.6 0 224 0S102.2 39.5 77.5 96H64c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16zm40-88c0-22.1 21.5-40 48-40h144c26.5 0 48 17.9 48 40v24c0 53-43 96-96 96h-48c-53 0-96-43-96-96v-24zm72 72l12-36 36-12-36-12-12-36-12 36-36 12 36 12 12 36zm151.6 113.4C297.7 340.7 262.2 352 224 352s-73.7-11.3-103.6-30.6C52.9 328.5 0 385 0 454.4v9.6c0 26.5 21.5 48 48 48h80v-64c0-17.7 14.3-32 32-32h128c17.7 0 32 14.3 32 32v64h80c26.5 0 48-21.5 48-48v-9.6c0-69.4-52.9-125.9-120.4-133zM272 448c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zm-96 0c-8.8 0-16 7.2-16 16v48h32v-48c0-8.8-7.2-16-16-16z"},child:[]}]})(e)}function Nr(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"},child:[]}]})(e)}function Mr(e){return h({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M592 0H48A48 48 0 0 0 0 48v320a48 48 0 0 0 48 48h240v32H112a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H352v-32h240a48 48 0 0 0 48-48V48a48 48 0 0 0-48-48zm-16 352H64V64h512z"},child:[]}]})(e)}function Pr(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"},child:[]}]})(e)}function lt(e){return h({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},child:[]}]})(e)}function kr(e){return h({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"},child:[]}]})(e)}function Ne(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(e)}function Er(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function Br(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"},child:[]}]})(e)}function Fr(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"},child:[]}]})(e)}function Or(e){return h({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M176 352c53.02 0 96-42.98 96-96V96c0-53.02-42.98-96-96-96S80 42.98 80 96v160c0 53.02 42.98 96 96 96zm160-160h-16c-8.84 0-16 7.16-16 16v48c0 74.8-64.49 134.82-140.79 127.38C96.71 376.89 48 317.11 48 250.3V208c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v40.16c0 89.64 63.97 169.55 152 181.69V464H96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16h-56v-33.77C285.71 418.47 352 344.9 352 256v-48c0-8.84-7.16-16-16-16z"},child:[]}]})(e)}function Hr(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"},child:[]}]})(e)}function Tr(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M12.41 148.02l232.94 105.67c6.8 3.09 14.49 3.09 21.29 0l232.94-105.67c16.55-7.51 16.55-32.52 0-40.03L266.65 2.31a25.607 25.607 0 0 0-21.29 0L12.41 107.98c-16.55 7.51-16.55 32.53 0 40.04zm487.18 88.28l-58.09-26.33-161.64 73.27c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.51 209.97l-58.1 26.33c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 276.3c16.55-7.5 16.55-32.5 0-40zm0 127.8l-57.87-26.23-161.86 73.37c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.29 337.87 12.41 364.1c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 404.1c16.55-7.5 16.55-32.5 0-40z"},child:[]}]})(e)}function $r(e){return h({attr:{viewBox:"0 0 192 512"},child:[{tag:"path",attr:{d:"M20 424.229h20V279.771H20c-11.046 0-20-8.954-20-20V212c0-11.046 8.954-20 20-20h112c11.046 0 20 8.954 20 20v212.229h20c11.046 0 20 8.954 20 20V492c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20v-47.771c0-11.046 8.954-20 20-20zM96 0C56.235 0 24 32.235 24 72s32.235 72 72 72 72-32.235 72-72S135.764 0 96 0z"},child:[]}]})(e)}function Me(e){return h({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"},child:[]}]})(e)}function Ir(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"},child:[]}]})(e)}function Vr(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M500.5 231.4l-192-160C287.9 54.3 256 68.6 256 96v320c0 27.4 31.9 41.8 52.5 24.6l192-160c15.3-12.8 15.3-36.4 0-49.2zm-256 0l-192-160C31.9 54.3 0 68.6 0 96v320c0 27.4 31.9 41.8 52.5 24.6l192-160c15.3-12.8 15.3-36.4 0-49.2z"},child:[]}]})(e)}function Ar(e){return h({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M216 23.86c0-23.8-30.65-32.77-44.15-13.04C48 191.85 224 200 224 288c0 35.63-29.11 64.46-64.85 63.99-35.17-.45-63.15-29.77-63.15-64.94v-85.51c0-21.7-26.47-32.23-41.43-16.5C27.8 213.16 0 261.33 0 320c0 105.87 86.13 192 192 192s192-86.13 192-192c0-170.29-168-193-168-296.14z"},child:[]}]})(e)}function jr(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z"},child:[]}]})(e)}function dt(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M16 288c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h112v-64zm489-183L407.1 7c-4.5-4.5-10.6-7-17-7H384v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H152c-13.3 0-24 10.7-24 24v264h128v-65.2c0-14.3 17.3-21.4 27.4-11.3L379 308c6.6 6.7 6.6 17.4 0 24l-95.7 96.4c-10.1 10.1-27.4 3-27.4-11.3V352H128v136c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H376c-13.2 0-24-10.8-24-24z"},child:[]}]})(e)}function qr(e){return h({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"},child:[]}]})(e)}function Dr(e){return h({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"},child:[]}]})(e)}function Rr(e){return h({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"},child:[]}]})(e)}function Ur(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M0 180V56c0-13.3 10.7-24 24-24h124c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H64v84c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12zM288 44v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V56c0-13.3-10.7-24-24-24H300c-6.6 0-12 5.4-12 12zm148 276h-40c-6.6 0-12 5.4-12 12v84h-84c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24V332c0-6.6-5.4-12-12-12zM160 468v-40c0-6.6-5.4-12-12-12H64v-84c0-6.6-5.4-12-12-12H12c-6.6 0-12 5.4-12 12v124c0 13.3 10.7 24 24 24h124c6.6 0 12-5.4 12-12z"},child:[]}]})(e)}function ut(e){return h({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},child:[]}]})(e)}function Wr(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448 73.143v45.714C448 159.143 347.667 192 224 192S0 159.143 0 118.857V73.143C0 32.857 100.333 0 224 0s224 32.857 224 73.143zM448 176v102.857C448 319.143 347.667 352 224 352S0 319.143 0 278.857V176c48.125 33.143 136.208 48.572 224 48.572S399.874 209.143 448 176zm0 160v102.857C448 479.143 347.667 512 224 512S0 479.143 0 438.857V336c48.125 33.143 136.208 48.572 224 48.572S399.874 369.143 448 336z"},child:[]}]})(e)}function Kr(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M436 192H312c-13.3 0-24-10.7-24-24V44c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v84h84c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-276-24V44c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v84H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24zm0 300V344c0-13.3-10.7-24-24-24H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-84h84c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12H312c-13.3 0-24 10.7-24 24v124c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"},child:[]}]})(e)}function ht(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"},child:[]}]})(e)}function mt(e){return h({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4z"},child:[]}]})(e)}function Qr(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM218.1 287.7c2.8-2.5 7.1-2.1 9.2.9l19.5 27.7c1.7 2.4 1.5 5.6-.5 7.7-53.6 56.8-172.8 32.1-172.8-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7l-17.5 30.5c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2.1 48 51.1 70.5 92.3 32.6zm190.4 0c2.8-2.5 7.1-2.1 9.2.9l19.5 27.7c1.7 2.4 1.5 5.6-.5 7.7-53.5 56.9-172.7 32.1-172.7-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7L420 222.2c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2 0 48 51 70.5 92.2 32.6z"},child:[]}]})(e)}function pt(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"},child:[]}]})(e)}function Gr(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"},child:[]}]})(e)}function Yr(e){return h({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"},child:[]}]})(e)}function Zr(e){return h({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"},child:[]}]})(e)}function Jr(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"},child:[]}]})(e)}function Xr(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"},child:[]}]})(e)}function e2(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},child:[]}]})(e)}function ft(e){return h({attr:{viewBox:"0 0 544 512"},child:[{tag:"path",attr:{d:"M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z"},child:[]}]})(e)}function vt(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64zm215.39-149.71c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71z"},child:[]}]})(e)}function gt(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},child:[]}]})(e)}function t2(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M11.5 280.6l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2zm256 0l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2z"},child:[]}]})(e)}const K=new Map,yt=500,bt=(e,t,r)=>{if(!e||e.trim()==="")return"/placeholder.svg";if(e.includes("/api/image-proxy")){let i=e;if(t&&!i.includes("w=")){const l=i.includes("?")?"&":"?";i+=`${l}w=${t}`}if(r&&!i.includes("h=")){const l=i.includes("?")?"&":"?";i+=`${l}h=${r}`}return i}let n=e;n.includes("wp.youtube-anime.com")&&(n=n.replace("wp.youtube-anime.com","allanime.day")),n.includes("aln.youtube-anime.com")&&(n=n.replace(/https?:\/\/allanime\.day\/aln\.youtube-anime\.com/,"https://aln.youtube-anime.com"),n.includes("/images/mcovers")&&(n=n.replace("/images/mcovers","/mcovers")),n.includes("/images/images2")&&(n=n.replace("/images/images2","/images2"))),n.includes("allanime.day/s4.anilist.co")&&(n=n.replace(/https?:\/\/allanime\.day\/s4\.anilist\.co/,"https://s4.anilist.co"));const o=`${n}-${t}-${r}`;if(K.has(o))return K.get(o);let s;if(n.startsWith("https://s4.anilist.co"))s=n;else if(n.startsWith("http"))s=`/api/image-proxy?url=${encodeURIComponent(n)}`,t&&(s+=`&w=${t}`),r?s+=`&h=${r}`:s+="&w=300";else{const l=`${n.startsWith("mcovers")||n.startsWith("images2")?"https://aln.youtube-anime.com":"https://aln.youtube-anime.com/images"}/${n}`;s=`/api/image-proxy?url=${encodeURIComponent(l)}`,t&&(s+=`&w=${t}`),r?s+=`&h=${r}`:s+="&w=300"}return K.size>yt&&K.clear(),K.set(o,s),s},r2=e=>{if(isNaN(e)||e<=0)return"00:00";const t=new Date(e*1e3).toISOString().slice(11,19);return parseInt(t.slice(0,2),10)>0?t:t.slice(3)},Pe=de(void 0),wt=({children:e})=>{const[t,r]=O("englishName"),[n,o]=O(!0);k(()=>{(async()=>{try{const l=await fetch("/api/settings?key=titlePreference");if(l.ok){const d=await l.json();d.value&&r(d.value)}}catch(l){console.error("Error fetching title preference in context:",l)}finally{o(!1)}})()},[]);const s=ue(()=>({titlePreference:t,setTitlePreference:r,loading:n}),[t,n]);return a(Pe.Provider,{value:s,children:e})},_t=()=>{const e=he(Pe);if(e===void 0)throw new Error("useTitlePreference must be used within a TitlePreferenceProvider");return e};let Ct={data:""},xt=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||Ct},Lt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,St=/\/\*[^]*?\*\/| +/g,be=/\n+/g,V=(e,t)=>{let r="",n="",o="";for(let s in e){let i=e[s];s[0]=="@"?s[1]=="i"?r=s+" "+i+";":n+=s[1]=="f"?V(i,s):s+"{"+V(i,s[1]=="k"?"":t)+"}":typeof i=="object"?n+=V(i,t?t.replace(/([^,])+/g,l=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,d=>/&/.test(d)?d.replace(/&/g,l):l?l+" "+d:d)):s):i!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=V.p?V.p(s,i):s+":"+i+";")}return r+(t&&o?t+"{"+o+"}":o)+n},H={},ke=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+ke(e[r]);return t}return e},zt=(e,t,r,n,o)=>{let s=ke(e),i=H[s]||(H[s]=(d=>{let m=0,p=11;for(;m<d.length;)p=101*p+d.charCodeAt(m++)>>>0;return"go"+p})(s));if(!H[i]){let d=s!==e?e:(m=>{let p,v,f=[{}];for(;p=Lt.exec(m.replace(St,""));)p[4]?f.shift():p[3]?(v=p[3].replace(be," ").trim(),f.unshift(f[0][v]=f[0][v]||{})):f[0][p[1]]=p[2].replace(be," ").trim();return f[0]})(e);H[i]=V(o?{["@keyframes "+i]:d}:d,r?"":"."+i)}let l=r&&H.g?H.g:null;return r&&(H.g=H[i]),((d,m,p,v)=>{v?m.data=m.data.replace(v,d):m.data.indexOf(d)===-1&&(m.data=p?d+m.data:m.data+d)})(H[i],t,n,l),i},Nt=(e,t,r)=>e.reduce((n,o,s)=>{let i=t[s];if(i&&i.call){let l=i(r),d=l&&l.props&&l.props.className||/^go/.test(l)&&l;i=d?"."+d:l&&typeof l=="object"?l.props?"":V(l,""):l===!1?"":l}return n+o+(i??"")},"");function ie(e){let t=this||{},r=e.call?e(t.p):e;return zt(r.unshift?r.raw?Nt(r,[].slice.call(arguments,1),t.p):r.reduce((n,o)=>Object.assign(n,o&&o.call?o(t.p):o),{}):r,xt(t.target),t.g,t.o,t.k)}let Ee,se,ce;ie.bind({g:1});let $=ie.bind({k:1});function Mt(e,t,r,n){V.p=t,Ee=e,se=r,ce=n}function R(e,t){let r=this||{};return function(){let n=arguments;function o(s,i){let l=Object.assign({},s),d=l.className||o.className;r.p=Object.assign({theme:se&&se()},l),r.o=/ *go\d+/.test(d),l.className=ie.apply(r,n)+(d?" "+d:"");let m=e;return e[0]&&(m=l.as||e,delete l.as),ce&&m[0]&&ce(l),Ee(m,l)}return o}}var Pt=e=>typeof e=="function",ee=(e,t)=>Pt(e)?e(t):e,kt=(()=>{let e=0;return()=>(++e).toString()})(),Be=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Et=20,pe="default",Fe=(e,t)=>{let{toastLimit:r}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,r)};case 1:return{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return Fe(e,{type:e.toasts.find(i=>i.id===n.id)?1:0,toast:n});case 3:let{toastId:o}=t;return{...e,toasts:e.toasts.map(i=>i.id===o||o===void 0?{...i,dismissed:!0,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let s=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+s}))}}},Y=[],Oe={toasts:[],pausedAt:void 0,settings:{toastLimit:Et}},F={},He=(e,t=pe)=>{F[t]=Fe(F[t]||Oe,e),Y.forEach(([r,n])=>{r===t&&n(F[t])})},Te=e=>Object.keys(F).forEach(t=>He(e,t)),Bt=e=>Object.keys(F).find(t=>F[t].toasts.some(r=>r.id===e)),oe=(e=pe)=>t=>{He(t,e)},Ft={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Ot=(e={},t=pe)=>{let[r,n]=O(F[t]||Oe),o=re(F[t]);k(()=>(o.current!==F[t]&&n(F[t]),Y.push([t,n]),()=>{let i=Y.findIndex(([l])=>l===t);i>-1&&Y.splice(i,1)}),[t]);let s=r.toasts.map(i=>{var l,d,m;return{...e,...e[i.type],...i,removeDelay:i.removeDelay||((l=e[i.type])==null?void 0:l.removeDelay)||e?.removeDelay,duration:i.duration||((d=e[i.type])==null?void 0:d.duration)||e?.duration||Ft[i.type],style:{...e.style,...(m=e[i.type])==null?void 0:m.style,...i.style}}});return{...r,toasts:s}},Ht=(e,t="blank",r)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:r?.id||kt()}),Q=e=>(t,r)=>{let n=Ht(t,e,r);return oe(n.toasterId||Bt(n.id))({type:2,toast:n}),n.id},C=(e,t)=>Q("blank")(e,t);C.error=Q("error");C.success=Q("success");C.loading=Q("loading");C.custom=Q("custom");C.dismiss=(e,t)=>{let r={type:3,toastId:e};t?oe(t)(r):Te(r)};C.dismissAll=e=>C.dismiss(void 0,e);C.remove=(e,t)=>{let r={type:4,toastId:e};t?oe(t)(r):Te(r)};C.removeAll=e=>C.remove(void 0,e);C.promise=(e,t,r)=>{let n=C.loading(t.loading,{...r,...r?.loading});return typeof e=="function"&&(e=e()),e.then(o=>{let s=t.success?ee(t.success,o):void 0;return s?C.success(s,{id:n,...r,...r?.success}):C.dismiss(n),o}).catch(o=>{let s=t.error?ee(t.error,o):void 0;s?C.error(s,{id:n,...r,...r?.error}):C.dismiss(n)}),e};var Tt=1e3,$t=(e,t="default")=>{let{toasts:r,pausedAt:n}=Ot(e,t),o=re(new Map).current,s=T((v,f=Tt)=>{if(o.has(v))return;let b=setTimeout(()=>{o.delete(v),i({type:4,toastId:v})},f);o.set(v,b)},[]);k(()=>{if(n)return;let v=Date.now(),f=r.map(b=>{if(b.duration===1/0)return;let c=(b.duration||0)+b.pauseDuration-(v-b.createdAt);if(c<0){b.visible&&C.dismiss(b.id);return}return setTimeout(()=>C.dismiss(b.id,t),c)});return()=>{f.forEach(b=>b&&clearTimeout(b))}},[r,n,t]);let i=T(oe(t),[t]),l=T(()=>{i({type:5,time:Date.now()})},[i]),d=T((v,f)=>{i({type:1,toast:{id:v,height:f}})},[i]),m=T(()=>{n&&i({type:6,time:Date.now()})},[n,i]),p=T((v,f)=>{let{reverseOrder:b=!1,gutter:c=8,defaultPosition:u}=f||{},g=r.filter(_=>(_.position||u)===(v.position||u)&&_.height),w=g.findIndex(_=>_.id===v.id),S=g.filter((_,y)=>y<w&&_.visible).length;return g.filter(_=>_.visible).slice(...b?[S+1]:[0,S]).reduce((_,y)=>_+(y.height||0)+c,0)},[r]);return k(()=>{r.forEach(v=>{if(v.dismissed)s(v.id,v.removeDelay);else{let f=o.get(v.id);f&&(clearTimeout(f),o.delete(v.id))}})},[r,s]),{toasts:r,handlers:{updateHeight:d,startPause:l,endPause:m,calculateOffset:p}}},It=$`
3
+ from {
4
+ transform: scale(0) rotate(45deg);
5
+ opacity: 0;
6
+ }
7
+ to {
8
+ transform: scale(1) rotate(45deg);
9
+ opacity: 1;
10
+ }`,Vt=$`
11
+ from {
12
+ transform: scale(0);
13
+ opacity: 0;
14
+ }
15
+ to {
16
+ transform: scale(1);
17
+ opacity: 1;
18
+ }`,At=$`
19
+ from {
20
+ transform: scale(0) rotate(90deg);
21
+ opacity: 0;
22
+ }
23
+ to {
24
+ transform: scale(1) rotate(90deg);
25
+ opacity: 1;
26
+ }`,jt=R("div")`
27
+ width: 20px;
28
+ opacity: 0;
29
+ height: 20px;
30
+ border-radius: 10px;
31
+ background: ${e=>e.primary||"#ff4b4b"};
32
+ position: relative;
33
+ transform: rotate(45deg);
34
+
35
+ animation: ${It} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
36
+ forwards;
37
+ animation-delay: 100ms;
38
+
39
+ &:after,
40
+ &:before {
41
+ content: '';
42
+ animation: ${Vt} 0.15s ease-out forwards;
43
+ animation-delay: 150ms;
44
+ position: absolute;
45
+ border-radius: 3px;
46
+ opacity: 0;
47
+ background: ${e=>e.secondary||"#fff"};
48
+ bottom: 9px;
49
+ left: 4px;
50
+ height: 2px;
51
+ width: 12px;
52
+ }
53
+
54
+ &:before {
55
+ animation: ${At} 0.15s ease-out forwards;
56
+ animation-delay: 180ms;
57
+ transform: rotate(90deg);
58
+ }
59
+ `,qt=$`
60
+ from {
61
+ transform: rotate(0deg);
62
+ }
63
+ to {
64
+ transform: rotate(360deg);
65
+ }
66
+ `,Dt=R("div")`
67
+ width: 12px;
68
+ height: 12px;
69
+ box-sizing: border-box;
70
+ border: 2px solid;
71
+ border-radius: 100%;
72
+ border-color: ${e=>e.secondary||"#e0e0e0"};
73
+ border-right-color: ${e=>e.primary||"#616161"};
74
+ animation: ${qt} 1s linear infinite;
75
+ `,Rt=$`
76
+ from {
77
+ transform: scale(0) rotate(45deg);
78
+ opacity: 0;
79
+ }
80
+ to {
81
+ transform: scale(1) rotate(45deg);
82
+ opacity: 1;
83
+ }`,Ut=$`
84
+ 0% {
85
+ height: 0;
86
+ width: 0;
87
+ opacity: 0;
88
+ }
89
+ 40% {
90
+ height: 0;
91
+ width: 6px;
92
+ opacity: 1;
93
+ }
94
+ 100% {
95
+ opacity: 1;
96
+ height: 10px;
97
+ }`,Wt=R("div")`
98
+ width: 20px;
99
+ opacity: 0;
100
+ height: 20px;
101
+ border-radius: 10px;
102
+ background: ${e=>e.primary||"#61d345"};
103
+ position: relative;
104
+ transform: rotate(45deg);
105
+
106
+ animation: ${Rt} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
107
+ forwards;
108
+ animation-delay: 100ms;
109
+ &:after {
110
+ content: '';
111
+ box-sizing: border-box;
112
+ animation: ${Ut} 0.2s ease-out forwards;
113
+ opacity: 0;
114
+ animation-delay: 200ms;
115
+ position: absolute;
116
+ border-right: 2px solid;
117
+ border-bottom: 2px solid;
118
+ border-color: ${e=>e.secondary||"#fff"};
119
+ bottom: 6px;
120
+ left: 6px;
121
+ height: 10px;
122
+ width: 6px;
123
+ }
124
+ `,Kt=R("div")`
125
+ position: absolute;
126
+ `,Qt=R("div")`
127
+ position: relative;
128
+ display: flex;
129
+ justify-content: center;
130
+ align-items: center;
131
+ min-width: 20px;
132
+ min-height: 20px;
133
+ `,Gt=$`
134
+ from {
135
+ transform: scale(0.6);
136
+ opacity: 0.4;
137
+ }
138
+ to {
139
+ transform: scale(1);
140
+ opacity: 1;
141
+ }`,Yt=R("div")`
142
+ position: relative;
143
+ transform: scale(0.6);
144
+ opacity: 0.4;
145
+ min-width: 20px;
146
+ animation: ${Gt} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
147
+ forwards;
148
+ `,Zt=({toast:e})=>{let{icon:t,type:r,iconTheme:n}=e;return t!==void 0?typeof t=="string"?x(Yt,null,t):t:r==="blank"?null:x(Qt,null,x(Dt,{...n}),r!=="loading"&&x(Kt,null,r==="error"?x(jt,{...n}):x(Wt,{...n})))},Jt=e=>`
149
+ 0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
150
+ 100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
151
+ `,Xt=e=>`
152
+ 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
153
+ 100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
154
+ `,e1="0%{opacity:0;} 100%{opacity:1;}",t1="0%{opacity:1;} 100%{opacity:0;}",r1=R("div")`
155
+ display: flex;
156
+ align-items: center;
157
+ background: #fff;
158
+ color: #363636;
159
+ line-height: 1.3;
160
+ will-change: transform;
161
+ box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
162
+ max-width: 350px;
163
+ pointer-events: auto;
164
+ padding: 8px 10px;
165
+ border-radius: 8px;
166
+ `,n1=R("div")`
167
+ display: flex;
168
+ justify-content: center;
169
+ margin: 4px 10px;
170
+ color: inherit;
171
+ flex: 1 1 auto;
172
+ white-space: pre-line;
173
+ `,a1=(e,t)=>{let r=e.includes("top")?1:-1,[n,o]=Be()?[e1,t1]:[Jt(r),Xt(r)];return{animation:t?`${$(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${$(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},i1=je(({toast:e,position:t,style:r,children:n})=>{let o=e.height?a1(e.position||t||"top-center",e.visible):{opacity:0},s=x(Zt,{toast:e}),i=x(n1,{...e.ariaProps},ee(e.message,e));return x(r1,{className:e.className,style:{...o,...r,...e.style}},typeof n=="function"?n({icon:s,message:i}):x(Le,null,s,i))});Mt(x);var o1=({id:e,className:t,style:r,onHeightUpdate:n,children:o})=>{let s=T(i=>{if(i){let l=()=>{let d=i.getBoundingClientRect().height;n(e,d)};l(),new MutationObserver(l).observe(i,{subtree:!0,childList:!0,characterData:!0})}},[e,n]);return x("div",{ref:s,className:t,style:r},o)},s1=(e,t)=>{let r=e.includes("top"),n=r?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Be()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...n,...o}},c1=ie`
174
+ z-index: 9999;
175
+ > * {
176
+ pointer-events: auto;
177
+ }
178
+ `,G=16,l1=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:o,toasterId:s,containerStyle:i,containerClassName:l})=>{let{toasts:d,handlers:m}=$t(r,s);return x("div",{"data-rht-toaster":s||"",style:{position:"fixed",zIndex:9999,top:G,left:G,right:G,bottom:G,pointerEvents:"none",...i},className:l,onMouseEnter:m.startPause,onMouseLeave:m.endPause},d.map(p=>{let v=p.position||t,f=m.calculateOffset(p,{reverseOrder:e,gutter:n,defaultPosition:t}),b=s1(v,f);return x(o1,{id:p.id,key:p.id,onHeightUpdate:m.updateHeight,className:p.visible?c1:"",style:b},p.type==="custom"?ee(p.message,p):o?o(p):x(i1,{toast:p,position:v}))}))},te=C;const I=async e=>{const t=await fetch(e);if(!t.ok)throw new Error(`Failed to fetch from ${e}`);return t.json()},n2=()=>j({queryKey:["latestReleases"],queryFn:()=>I("/api/latest-releases")}),a2=e=>j({queryKey:["currentSeason",e],queryFn:()=>I(`/api/seasonal?page=${e}`)}),i2=e=>{const t=`/api/continue-watching/fast?limit=${e}`;return j({queryKey:["continueWatchingFast",{limit:e}],queryFn:()=>I(t)})},o2=()=>{const e="/api/continue-watching/up-next";return j({queryKey:["continueWatchingUpNext"],queryFn:()=>I(e)})},s2=e=>me({queryKey:["searchAnime",e],queryFn:async({pageParam:t})=>{const r=new URLSearchParams(e);return r.set("page",(t||1).toString()),{results:await I(`/api/search?${r.toString()}`),totalPages:1,currentPage:t||1}},initialPageParam:1,getNextPageParam:t=>t.results.length>0?t.currentPage+1:void 0,enabled:e!=null}),c2=e=>me({queryKey:["watchlist",e],queryFn:async({pageParam:t=1})=>await I(`/api/watchlist?status=${e}&page=${t}&limit=14`),initialPageParam:1,getNextPageParam:t=>{if(!(t.data.length===0||t.page*t.limit>=t.total))return t.page+1},select:t=>({...t,pages:t.pages.flatMap(r=>r.data)})}),l2=()=>me({queryKey:["allContinueWatching"],queryFn:async({pageParam:e=1})=>await I(`/api/continue-watching/all?page=${e}&limit=14`),initialPageParam:1,getNextPageParam:e=>{if(!(e.data.length===0||e.page*e.limit>=e.total))return e.page+1},select:e=>({...e,pages:e.pages.flatMap(t=>t.data)})}),d2=()=>{const e=ne();return ae({mutationFn:async t=>{if(!(await fetch("/api/watchlist/remove",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:t})})).ok)throw new Error("Failed to remove from watchlist")},onSuccess:()=>{te.success("Removed from watchlist"),e.invalidateQueries({queryKey:["watchlist"]})},onError:t=>{te.error(`Failed to remove: ${t.message}`)}})},$e=(e=!0)=>j({queryKey:["notifications"],queryFn:()=>I("/api/notifications"),enabled:e,refetchInterval:12e4}),d1=()=>{const e=ne();return ae({mutationFn:async({showId:t,episodeNumber:r})=>{if(!(await fetch("/api/notifications/dismiss",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({showId:t,episodeNumber:r})})).ok)throw new Error("Failed to dismiss notification")},onSuccess:()=>{e.invalidateQueries({queryKey:["notifications"]})}})},u1=()=>{const e=ne();return ae({mutationFn:async t=>{if(!(await fetch("/api/notifications/clear-all",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({showId:t})})).ok)throw new Error("Failed to clear notifications")},onSuccess:()=>{e.invalidateQueries({queryKey:["notifications"]})}})},u2=()=>j({queryKey:["genresAndStudios"],queryFn:()=>I("/api/genres-and-tags"),staleTime:1e3*60*60}),h1="_container_m7o0a_1",m1="_bellBtn_m7o0a_7",p1="_badge_m7o0a_31",f1="_dropdown_m7o0a_66",v1="_dropdownHeader_m7o0a_97",g1="_clearAllBtn_m7o0a_111",y1="_list_m7o0a_126",b1="_item_m7o0a_140",w1="_thumbnail_m7o0a_155",_1="_itemInfo_m7o0a_164",C1="_itemTitle_m7o0a_169",x1="_itemMeta_m7o0a_180",L1="_removeItem_m7o0a_190",S1="_emptyState_m7o0a_214",L={container:h1,bellBtn:m1,badge:p1,dropdown:f1,dropdownHeader:v1,clearAllBtn:g1,list:y1,item:b1,thumbnail:w1,itemInfo:_1,itemTitle:C1,itemMeta:x1,removeItem:L1,emptyState:S1},z1=({notification:e})=>{const t=d1(),r=i=>{i.preventDefault(),i.stopPropagation(),t.mutate({showId:e.showId,episodeNumber:e.episodeNumber})},n=()=>{t.mutate({showId:e.showId,episodeNumber:e.episodeNumber})},{titlePreference:o}=_t(),s=o==="nativeName"?e.nativeName||e.name:o==="englishName"&&e.englishName||e.name;return a(B,{to:`/watch/${e.showId}/${e.episodeNumber}`,className:L.item,onClick:n,children:[a("img",{src:bt(e.thumbnail,48,64),alt:e.name,className:L.thumbnail}),a("div",{className:L.itemInfo,children:[a("span",{className:L.itemTitle,children:s}),a("span",{className:L.itemMeta,children:["New Episode ",e.episodeNumber]})]}),a("button",{className:L.removeItem,onClick:r,"aria-label":"Remove notification",children:a(lt,{})})]})},N1=()=>{const{data:e=[],isLoading:t}=$e(),r=u1(),n=()=>{r.mutate(void 0)};return a("div",{className:L.dropdown,children:[a("div",{className:L.dropdownHeader,children:[a("h4",{children:"Notifications"}),e.length>0&&a("button",{className:L.clearAllBtn,onClick:n,children:"Clear All"})]}),a("div",{className:L.list,children:t?a("div",{className:L.emptyState,children:"Loading..."}):e.length>0?e.map(o=>a(z1,{notification:o},o.id)):a("div",{className:L.emptyState,children:"No new notifications"})})]})},M1=()=>{const[e,t]=O(!1),r=re(null),{data:n=[]}=$e(),o=n.length;k(()=>{const i=l=>{r.current&&!r.current.contains(l.target)&&t(!1)};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[]);const s=o>5?"5+":o;return a("div",{className:L.container,ref:r,children:[a("button",{className:L.bellBtn,onClick:()=>t(!e),"aria-label":"Notifications",children:[a(vt,{}),o>0&&a("span",{className:L.badge,children:s})]}),e&&a(N1,{})]})},Ie=({className:e})=>a("img",{src:"/logo.png",alt:"Ani-Web",className:e,style:{height:"var(--logo-height, 75px)",width:"auto",display:"block",objectFit:"contain"}}),Ve=de(void 0),fe=()=>{const e=he(Ve);if(e===void 0)throw new Error("useSidebar must be used within a SidebarProvider");return e},P1="_header_h54nb_1",k1="_hidden_h54nb_17",E1="_leftSection_h54nb_21",B1="_hamburgerBtn_h54nb_28",F1="_rightSection_h54nb_54",O1="_searchContainer_h54nb_60",H1="_searchInput_h54nb_66",T1="_searchButton_h54nb_96",$1="_searchIcon_h54nb_109",I1="_profileBtn_h54nb_124",V1="_profileImg_h54nb_152",A1="_logo_h54nb_197",z={header:P1,hidden:k1,leftSection:E1,hamburgerBtn:B1,rightSection:F1,searchContainer:O1,searchInput:H1,searchButton:T1,searchIcon:$1,profileBtn:I1,profileImg:V1,logo:A1},j1=async()=>{const e=await fetch("/api/auth/github/status");if(e.ok){const n=await e.json();if(n.authenticated&&n.user)return{name:n.user.name||n.user.login,picture:n.user.avatarUrl,provider:"github"}}const t=await fetch("/api/auth/user");if(!t.ok)return null;const r=await t.json();return r?{name:r.name,picture:r.picture,email:r.email,provider:"google"}:null},q1=()=>{const{toggleSidebar:e}=fe(),[t,r]=O(""),[n,o]=O(!0),[s,i]=O(!1),l=qe(),d=re(null),m=3e3,{data:p}=j({queryKey:["sync-profile"],queryFn:j1,staleTime:3e4});k(()=>{const f=()=>{o(!0),d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{window.scrollY>100&&!s&&o(!1)},m)};return window.addEventListener("scroll",f,{passive:!0}),()=>{window.removeEventListener("scroll",f),d.current&&clearTimeout(d.current)}},[s]);const v=f=>{f?.preventDefault(),t.trim()&&l(`/search?query=${encodeURIComponent(t.trim())}`)};return a("header",{className:`${z.header} ${n?"":z.hidden}`,children:[a("div",{className:z.leftSection,children:[a("button",{className:z.hamburgerBtn,onClick:e,"aria-label":"Menu",children:a(gt,{})}),a(B,{to:"/",className:z.logo,"aria-label":"Ani-Web Home",children:a(Ie,{})})]}),a("div",{className:z.rightSection,children:[a("form",{onSubmit:v,className:z.searchContainer,children:[a("input",{type:"text",className:z.searchInput,placeholder:"Search anime...",value:t,onChange:f=>r(f.target.value),onFocus:()=>i(!0),onBlur:()=>i(!1)}),a("button",{type:"submit",className:z.searchButton,"aria-label":"Search",children:a(Ne,{className:z.searchIcon})})]}),a(M1,{}),a(B,{to:"/settings?tab=sync",className:z.profileBtn,"aria-label":"Sync settings",children:p?.picture?a("img",{src:p.picture,alt:p.name,className:z.profileImg,referrerPolicy:"no-referrer"}):p?.provider==="github"?a(ct,{}):a(mt,{})})]})]})},D1="_sidebar_co0vc_1",R1="_logo_co0vc_20",U1="_open_co0vc_27",W1="_sidebarHeader_co0vc_31",K1="_closeBtn_co0vc_38",Q1="_navLink_co0vc_57",G1="_overlay_co0vc_82",N={sidebar:D1,logo:R1,open:U1,sidebarHeader:W1,closeBtn:K1,navLink:Q1,overlay:G1},Y1=()=>{const{isOpen:e,setIsOpen:t}=fe(),r=()=>{t(!1)};return a(Le,{children:[a("aside",{className:`${N.sidebar} ${e?N.open:""} sidebar`,children:[a("div",{className:N.sidebarHeader,children:[a(B,{to:"/",className:N.logo,onClick:r,children:a(Ie,{})}),a("button",{className:`${N.closeBtn} closeBtn`,onClick:()=>t(!1),"aria-label":"Close menu",children:"×"})]}),a("nav",{children:[a(B,{to:"/",className:`${N.navLink} navLink`,onClick:r,children:[a(Me,{})," Home"]}),a(B,{to:"/search",className:`${N.navLink} navLink`,onClick:r,children:[a(Ne,{})," Search"]}),a(B,{to:"/watchlist",className:`${N.navLink} navLink`,onClick:r,children:[a(pt,{})," Watchlist"]}),a(B,{to:"/insights",className:`${N.navLink} navLink`,onClick:r,children:[a(ft,{})," Insights"]}),a(B,{to:"/mal",className:`${N.navLink} navLink`,onClick:r,children:[a(dt,{})," MAL Import"]}),a(B,{to:"/settings",className:`${N.navLink} navLink`,onClick:r,children:[a(ht,{})," Settings"]})]})]}),e&&a("div",{className:N.overlay,onClick:()=>t(!1),"aria-label":"Close sidebar"})]})},Z1=()=>a("footer",{children:a("p",{children:["Copyright 2026"," ",a("a",{href:"https://github.com/serifpersia/ani-web",target:"_blank",rel:"noopener noreferrer",children:"ani-web"})]})}),J1="_scrollToTop_y44gr_1",X1="_scrollButton_y44gr_8",we={scrollToTop:J1,scrollButton:X1},er=()=>{const[e,t]=O(!1),r=()=>{window.pageYOffset>300?t(!0):t(!1)},n=()=>{window.scrollTo({top:0,behavior:"smooth"})};return k(()=>(window.addEventListener("scroll",r),()=>{window.removeEventListener("scroll",r)}),[]),a("div",{className:we.scrollToTop,children:e&&a("button",{onClick:n,className:we.scrollButton,children:a("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2.5,stroke:"currentColor",width:"24",height:"24",children:a("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 15.75l7.5-7.5 7.5 7.5"})})})})};var Z={exports:{}};var tr=Z.exports,_e;function rr(){return _e||(_e=1,(function(e,t){(function(r,n){e.exports=n()})(tr,function(){var r={};r.version="0.2.0";var n=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};r.configure=function(c){var u,g;for(u in c)g=c[u],g!==void 0&&c.hasOwnProperty(u)&&(n[u]=g);return this},r.status=null,r.set=function(c){var u=r.isStarted();c=o(c,n.minimum,1),r.status=c===1?null:c;var g=r.render(!u),w=g.querySelector(n.barSelector),S=n.speed,_=n.easing;return g.offsetWidth,l(function(y){n.positionUsing===""&&(n.positionUsing=r.getPositioningCSS()),d(w,i(c,S,_)),c===1?(d(g,{transition:"none",opacity:1}),g.offsetWidth,setTimeout(function(){d(g,{transition:"all "+S+"ms linear",opacity:0}),setTimeout(function(){r.remove(),y()},S)},S)):setTimeout(y,S)}),this},r.isStarted=function(){return typeof r.status=="number"},r.start=function(){r.status||r.set(0);var c=function(){setTimeout(function(){r.status&&(r.trickle(),c())},n.trickleSpeed)};return n.trickle&&c(),this},r.done=function(c){return!c&&!r.status?this:r.inc(.3+.5*Math.random()).set(1)},r.inc=function(c){var u=r.status;return u?(typeof c!="number"&&(c=(1-u)*o(Math.random()*u,.1,.95)),u=o(u+c,0,.994),r.set(u)):r.start()},r.trickle=function(){return r.inc(Math.random()*n.trickleRate)},(function(){var c=0,u=0;r.promise=function(g){return!g||g.state()==="resolved"?this:(u===0&&r.start(),c++,u++,g.always(function(){u--,u===0?(c=0,r.done()):r.set((c-u)/c)}),this)}})(),r.render=function(c){if(r.isRendered())return document.getElementById("nprogress");p(document.documentElement,"nprogress-busy");var u=document.createElement("div");u.id="nprogress",u.innerHTML=n.template;var g=u.querySelector(n.barSelector),w=c?"-100":s(r.status||0),S=document.querySelector(n.parent),_;return d(g,{transition:"all 0 linear",transform:"translate3d("+w+"%,0,0)"}),n.showSpinner||(_=u.querySelector(n.spinnerSelector),_&&b(_)),S!=document.body&&p(S,"nprogress-custom-parent"),S.appendChild(u),u},r.remove=function(){v(document.documentElement,"nprogress-busy"),v(document.querySelector(n.parent),"nprogress-custom-parent");var c=document.getElementById("nprogress");c&&b(c)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var c=document.body.style,u="WebkitTransform"in c?"Webkit":"MozTransform"in c?"Moz":"msTransform"in c?"ms":"OTransform"in c?"O":"";return u+"Perspective"in c?"translate3d":u+"Transform"in c?"translate":"margin"};function o(c,u,g){return c<u?u:c>g?g:c}function s(c){return(-1+c)*100}function i(c,u,g){var w;return n.positionUsing==="translate3d"?w={transform:"translate3d("+s(c)+"%,0,0)"}:n.positionUsing==="translate"?w={transform:"translate("+s(c)+"%,0)"}:w={"margin-left":s(c)+"%"},w.transition="all "+u+"ms "+g,w}var l=(function(){var c=[];function u(){var g=c.shift();g&&g(u)}return function(g){c.push(g),c.length==1&&u()}})(),d=(function(){var c=["Webkit","O","Moz","ms"],u={};function g(y){return y.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(M,E){return E.toUpperCase()})}function w(y){var M=document.body.style;if(y in M)return y;for(var E=c.length,W=y.charAt(0).toUpperCase()+y.slice(1),U;E--;)if(U=c[E]+W,U in M)return U;return y}function S(y){return y=g(y),u[y]||(u[y]=w(y))}function _(y,M,E){M=S(M),y.style[M]=E}return function(y,M){var E=arguments,W,U;if(E.length==2)for(W in M)U=M[W],U!==void 0&&M.hasOwnProperty(W)&&_(y,W,U);else _(y,E[1],E[2])}})();function m(c,u){var g=typeof c=="string"?c:f(c);return g.indexOf(" "+u+" ")>=0}function p(c,u){var g=f(c),w=g+u;m(g,u)||(c.className=w.substring(1))}function v(c,u){var g=f(c),w;m(c,u)&&(w=g.replace(" "+u+" "," "),c.className=w.substring(1,w.length-1))}function f(c){return(" "+(c.className||"")+" ").replace(/\s+/gi," ")}function b(c){c&&c.parentNode&&c.parentNode.removeChild(c)}return r})})(Z)),Z.exports}var nr=rr();const le=De(nr);le.configure({showSpinner:!1});const ar=()=>(k(()=>(le.start(),()=>{le.done()}),[]),null);class ir extends Re{state={hasError:!1};static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,r){console.error("Uncaught error:",t,r)}render(){return this.state.hasError?a("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100vh",width:"100%",backgroundColor:"#1a1b1c",color:"#fff",textAlign:"center",padding:"2rem"},children:[a(ut,{style:{fontSize:"4rem",color:"#ff4d4d",marginBottom:"1rem"}}),a("h1",{style:{marginBottom:"1rem"},children:"Something went wrong"}),a("p",{style:{color:"#aaa",marginBottom:"2rem"},children:"The application encountered an unexpected error."}),a("button",{onClick:()=>{this.setState({hasError:!1}),window.location.href="/"},style:{padding:"0.8rem 1.5rem",backgroundColor:"var(--accent, #3d5afe)",color:"#fff",border:"none",borderRadius:"0.5rem",cursor:"pointer",display:"flex",alignItems:"center",gap:"0.5rem",fontSize:"1rem",transition:"background-color 0.2s"},onMouseOver:t=>t.currentTarget.style.backgroundColor="#536dfe",onMouseOut:t=>t.currentTarget.style.backgroundColor="var(--accent, #3d5afe)",children:[a(Me,{}),"Go back Home"]})]}):this.props.children}}const or=q(()=>D(()=>import("./Home-Dey0azy1.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]))),sr=q(()=>D(()=>import("./Watchlist-CuqJISI3.js"),__vite__mapDeps([11,1,2,3,4,5,6,7,8,9,12]))),cr=q(()=>D(()=>import("./Settings-DyisJGeD.js"),__vite__mapDeps([13,1,7,8,14,15,16]))),Ce=q(()=>D(()=>import("./Player-BWFN9gud.js"),__vite__mapDeps([17,1,14,15,7,8,4,18]))),lr=q(()=>D(()=>import("./Search-DZAWgKwq.js"),__vite__mapDeps([19,1,2,3,4,5,7,8,20]))),dr=q(()=>D(()=>import("./MAL-CYArH4yf.js"),__vite__mapDeps([21,1,7,8,22]))),ur=q(()=>D(()=>import("./Insights-CogjPOd_.js"),__vite__mapDeps([23,1,24]))),hr=q(()=>D(()=>import("./AnimeInfoPage-DJA7AJQ8.js"),__vite__mapDeps([25,1]))),xe=()=>{const{id:e,episodeNumber:t}=Ke();return a(Qe,{to:t?`/watch/${e}/${t}`:`/watch/${e}`,replace:!0})};function mr(){const{isOpen:e,setIsOpen:t}=fe();return k(()=>{const r=n=>{e&&n.key==="Escape"&&t(!1)};return e?document.body.classList.add("sidebar-open"):document.body.classList.remove("sidebar-open"),window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r),document.body.classList.remove("sidebar-open")}},[e,t]),a("div",{className:"app-container",children:[a(l1,{position:"top-center",toastOptions:{style:{background:"#262829",color:"#fff",border:"1px solid #444"},success:{style:{background:"var(--accent)",color:"#fff"},iconTheme:{primary:"#fff",secondary:"var(--accent)"}},error:{style:{background:"#992a2a",color:"#fff"}}}}),a(q1,{}),a(Y1,{}),a("main",{children:a(ir,{children:a(Ue,{fallback:a(ar,{}),children:a(We,{children:[a(P,{path:"/",element:a(or,{})}),a(P,{path:"/watchlist/:filter?",element:a(sr,{})}),a(P,{path:"/search",element:a(lr,{})}),a(P,{path:"/settings",element:a(cr,{})}),a(P,{path:"/mal",element:a(dr,{})}),a(P,{path:"/insights",element:a(ur,{})}),a(P,{path:"/anime/:id",element:a(hr,{})}),a(P,{path:"/watch/:id",element:a(Ce,{})}),a(P,{path:"/watch/:id/:episodeNumber",element:a(Ce,{})}),a(P,{path:"/player/:id",element:a(xe,{})}),a(P,{path:"/player/:id/:episodeNumber",element:a(xe,{})})]})})})}),a(Z1,{}),a(er,{})]})}const pr=({children:e})=>{const[t,r]=O(!1),n=T(()=>{r(s=>!s)},[]),o=ue(()=>({isOpen:t,setIsOpen:r,toggleSidebar:n}),[t,n]);return a(Ve.Provider,{value:o,children:e})},fr=async e=>{const t=await fetch(`/api/settings?key=${e}`);if(!t.ok)throw new Error("Failed to fetch settings");return(await t.json()).value},vr=async({key:e,value:t})=>{const r=await fetch("/api/settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:e,value:t})});if(!r.ok)throw new Error("Failed to update settings");return r.json()},gr=e=>j({queryKey:["settings",e],queryFn:()=>fr(e)}),yr=()=>{const e=ne();return ae({mutationFn:vr,onSuccess:()=>{te.success("Setting updated!"),e.invalidateQueries({queryKey:["settings"]})},onError:t=>{te.error(`Failed to update setting: ${t.message}`)}})},Ae=de(void 0),br=({children:e})=>{const{data:t,isLoading:r}=gr("lowEndMode"),n=yr(),[o,s]=O(!1);k(()=>{t!==void 0&&s(t==="true"||t===!0)},[t]),k(()=>{o?document.body.classList.add("low-end"):document.body.classList.remove("low-end")},[o]);const i=T(d=>{s(d),n.mutate({key:"lowEndMode",value:String(d)})},[n]),l=ue(()=>({lowEndMode:o,setLowEndMode:i,loading:r}),[o,i,r]);return a(Ae.Provider,{value:l,children:e})},h2=()=>{const e=he(Ae);if(e===void 0)throw new Error("useLowEndMode must be used within a LowEndModeProvider");return e},wr=new Ge({defaultOptions:{queries:{staleTime:1e3*60*5,refetchOnWindowFocus:!1,retry:1}}});Ye.createRoot(document.getElementById("root")).render(a(A.StrictMode,{children:a(Ze,{children:a(Je,{client:wr,children:a(pr,{children:a(wt,{children:a(br,{children:a(mr,{})})})})})})}));export{Nr as $,Lr as A,xr as B,Sr as C,Cr as D,t2 as E,Zr as F,h as G,Vr as H,Xr as I,Er as J,Gr as K,Jr as L,u2 as M,s2 as N,Ne as O,jr as P,kr as Q,Mr as R,r2 as S,Qr as T,Or as U,lt as V,$r as W,ut as X,fe as Y,qr as Z,D as _,Yr as a,zr as a0,pt as a1,e2 as a2,Ar as a3,Tr as a4,ar as a5,_t as b,a2 as c,d2 as d,n2 as e,bt as f,i2 as g,o2 as h,Ir as i,l2 as j,c2 as k,gr as l,yr as m,Pr as n,Rr as o,Dr as p,ht as q,mt as r,Hr as s,Wr as t,h2 as u,Fr as v,Br as w,Kr as x,Ur as y,te as z};
@@ -0,0 +1 @@
1
+ import{b as D,a as p,c as q,q as y}from"./vendor-DdbgYKo4.js";import{z as h}from"./index-CHVF4D4L.js";const o=async a=>{const i=await fetch(a);if(!i.ok)throw new Error(`Failed to fetch ${a}`);return i.json()};function b(a){const i=D(),{data:s,isLoading:m,error:c}=p({queryKey:["show-data-info",a],queryFn:async()=>{if(!a)throw new Error("No showId");const[n,t,e]=await Promise.all([o(`/api/show-meta/${a}`),o(`/api/watchlist/check/${a}`).catch(()=>({inWatchlist:!1})),fetch(`/api/episodes?showId=${a}&mode=sub`)]);let r=n?.description;if(e.ok){const l=await e.json();l?.description&&(r=l.description)}return{showMeta:{...n,description:r},inWatchlist:t.inWatchlist??!1}},enabled:!!a}),{data:f,isLoading:d}=p({queryKey:["allmanga-details",a],queryFn:()=>o(`/api/allmanga-details/${a}`),enabled:!1}),{mutateAsync:u}=q({mutationFn:async({wasIn:n,showMeta:t})=>{const e=n?"/api/watchlist/remove":"/api/watchlist/add",r={id:a,name:t.name||t.names?.romaji,thumbnail:t.thumbnail,nativeName:t.names?.native,englishName:t.names?.english,type:t.type};if(!(await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})).ok)throw new Error("Watchlist update failed");return!n},onMutate:async({wasIn:n})=>{await i.cancelQueries({queryKey:["show-data-info",a]});const t=i.getQueryData(["show-data-info",a]);return i.setQueryData(["show-data-info",a],e=>e&&{...e,inWatchlist:!n}),{previousData:t}},onError:(n,t,e)=>{e?.previousData&&i.setQueryData(["show-data-info",a],e.previousData),h.error("Failed to update watchlist")},onSuccess:n=>{h.success(n?"Added to watchlist":"Removed from watchlist"),i.invalidateQueries({queryKey:["watchlist"]})}}),g=y(async()=>{!a||!s?.showMeta||await u({wasIn:!!s.inWatchlist,showMeta:s.showMeta})},[a,s,u]),w=y(async()=>{i.prefetchQuery({queryKey:["allmanga-details",a],queryFn:()=>o(`/api/allmanga-details/${a}`)})},[a,i]);return{showMeta:s?.showMeta,allMangaDetails:f??null,inWatchlist:!!s?.inWatchlist,loadingMeta:m,loadingDetails:d,error:c?c.message:null,toggleWatchlist:g,handleToggleDetails:w}}export{b as u};
@@ -0,0 +1 @@
1
+ import{d,y as o}from"./vendor-DdbgYKo4.js";const c=(n=768)=>{const[r,s]=d(window.innerWidth<n);return o(()=>{const e=window.matchMedia(`(max-width: ${n-1}px)`);s(e.matches);const t=i=>s(i.matches);return e.addEventListener?(e.addEventListener("change",t),()=>e.removeEventListener("change",t)):(e.addListener(t),()=>e.removeListener(t))},[n]),r};export{c as u};