ani-web 2.0.7

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.
Files changed (91) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +220 -0
  3. package/client/dist/assets/AnimeInfo-B88ZA3gl.js +1 -0
  4. package/client/dist/assets/AnimeInfo-R63luGTP.css +1 -0
  5. package/client/dist/assets/AnimeInfoPage-xGVarrXG.js +2 -0
  6. package/client/dist/assets/Button-Fq9KaUOg.css +1 -0
  7. package/client/dist/assets/Button-lkEUHIDS.js +1 -0
  8. package/client/dist/assets/ErrorMessage-BVWNgHMx.css +1 -0
  9. package/client/dist/assets/ErrorMessage-BXKDLzn8.js +1 -0
  10. package/client/dist/assets/Home-O1FbN8t_.js +1 -0
  11. package/client/dist/assets/Home-r0eYbWNc.css +1 -0
  12. package/client/dist/assets/Insights-CF4K-oO5.css +1 -0
  13. package/client/dist/assets/Insights-opcB-aTo.js +1 -0
  14. package/client/dist/assets/MAL-BGM33N5c.js +1 -0
  15. package/client/dist/assets/MAL-DeQNXXPx.css +1 -0
  16. package/client/dist/assets/Player-BarbgKjI.css +1 -0
  17. package/client/dist/assets/Player-CSyGax33.js +9 -0
  18. package/client/dist/assets/PlayerSettings-BaCVQyw6.js +1 -0
  19. package/client/dist/assets/PlayerSettings-l6aLKrHh.css +1 -0
  20. package/client/dist/assets/QueueRail-Cxn5U8kE.js +1 -0
  21. package/client/dist/assets/QueueRail-DOM_pWkE.css +1 -0
  22. package/client/dist/assets/RemoveConfirmationModal-BBiogSdf.css +1 -0
  23. package/client/dist/assets/RemoveConfirmationModal-DatCZQKq.js +1 -0
  24. package/client/dist/assets/Search-BzO-aRP7.css +1 -0
  25. package/client/dist/assets/Search-DJxo3BYH.js +1 -0
  26. package/client/dist/assets/SearchableSelect-BkCrf6E8.css +1 -0
  27. package/client/dist/assets/SearchableSelect-BzYsMz8B.js +1 -0
  28. package/client/dist/assets/Settings-Bv9fX-x3.css +1 -0
  29. package/client/dist/assets/Settings-C5adinOe.js +1 -0
  30. package/client/dist/assets/SynopsisText-C3AK-aRc.js +1 -0
  31. package/client/dist/assets/SynopsisText-DsI3mW5v.css +1 -0
  32. package/client/dist/assets/ToggleSwitch-BIlQxIjg.css +1 -0
  33. package/client/dist/assets/ToggleSwitch-CrXim14A.js +1 -0
  34. package/client/dist/assets/Watchlist-CXw0vbNx.js +1 -0
  35. package/client/dist/assets/Watchlist-a2RHQogs.css +1 -0
  36. package/client/dist/assets/hls.light-DcbkToIY.js +27 -0
  37. package/client/dist/assets/index-BzX_xmnf.css +1 -0
  38. package/client/dist/assets/index-Ciivz6fh.js +178 -0
  39. package/client/dist/assets/useAnimeInfoData-Dqthchpa.js +1 -0
  40. package/client/dist/assets/useIsMobile-BviODivc.js +1 -0
  41. package/client/dist/assets/vendor-Bc4EraM_.js +3 -0
  42. package/client/dist/favicon.ico +0 -0
  43. package/client/dist/index.html +35 -0
  44. package/client/dist/logo.png +0 -0
  45. package/client/dist/placeholder.svg +4 -0
  46. package/client/dist/robots.txt +3 -0
  47. package/client/package.json +58 -0
  48. package/orchestrator.js +323 -0
  49. package/package.json +88 -0
  50. package/server/.env +1 -0
  51. package/server/dist/config.js +89 -0
  52. package/server/dist/constants.json +1359 -0
  53. package/server/dist/controllers/auth.controller.js +215 -0
  54. package/server/dist/controllers/data.controller.js +232 -0
  55. package/server/dist/controllers/insights.controller.js +200 -0
  56. package/server/dist/controllers/proxy.controller.js +353 -0
  57. package/server/dist/controllers/settings.controller.js +159 -0
  58. package/server/dist/controllers/watchlist.controller.js +749 -0
  59. package/server/dist/db.js +152 -0
  60. package/server/dist/discord-rpc.js +279 -0
  61. package/server/dist/github-sync.js +342 -0
  62. package/server/dist/google.js +310 -0
  63. package/server/dist/logger.js +21 -0
  64. package/server/dist/providers/123anime.provider.js +226 -0
  65. package/server/dist/providers/allanime.provider.js +736 -0
  66. package/server/dist/providers/animepahe.provider.js +457 -0
  67. package/server/dist/providers/animeya.provider.js +787 -0
  68. package/server/dist/providers/megaplay.provider.js +264 -0
  69. package/server/dist/providers/provider.interface.js +2 -0
  70. package/server/dist/rclone.js +126 -0
  71. package/server/dist/repositories/insights.repository.js +42 -0
  72. package/server/dist/repositories/notifications.repository.js +30 -0
  73. package/server/dist/repositories/queue.repository.js +38 -0
  74. package/server/dist/repositories/settings.repository.js +14 -0
  75. package/server/dist/repositories/shows-meta.repository.js +41 -0
  76. package/server/dist/repositories/watched-episodes.repository.js +67 -0
  77. package/server/dist/repositories/watchlist.repository.js +80 -0
  78. package/server/dist/routes/auth.routes.js +26 -0
  79. package/server/dist/routes/data.routes.js +42 -0
  80. package/server/dist/routes/insights.routes.js +12 -0
  81. package/server/dist/routes/proxy.routes.js +14 -0
  82. package/server/dist/routes/settings.routes.js +27 -0
  83. package/server/dist/routes/watchlist.routes.js +46 -0
  84. package/server/dist/server.js +229 -0
  85. package/server/dist/sync-config.js +28 -0
  86. package/server/dist/sync.js +427 -0
  87. package/server/dist/utils/db-utils.js +15 -0
  88. package/server/dist/utils/env.utils.js +79 -0
  89. package/server/dist/utils/machine-id.js +46 -0
  90. package/server/dist/utils/request-context.js +5 -0
  91. package/server/package.json +19 -0
@@ -0,0 +1 @@
1
+ ._container_5v8n0_1{position:relative;display:flex;align-items:center}._bellBtn_5v8n0_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_5v8n0_7:hover{transform:scale(1.1);color:var(--primary-color)}._badge_5v8n0_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_5v8n0_1 .5s ease-out}@keyframes _bounce_5v8n0_1{0%,20%,50%,80%,to{transform:translateY(0)}40%{transform:translateY(-5px)}60%{transform:translateY(-3px)}}._dropdown_5v8n0_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_5v8n0_1 .3s ease}@keyframes _slideIn_5v8n0_1{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}._dropdownHeader_5v8n0_97{padding:1rem;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgba(255,255,255,.1)}._dropdownHeader_5v8n0_97 h4{margin:0;font-size:1rem;color:#fff}._clearAllBtn_5v8n0_111{background:none;border:none;color:var(--primary-color);font-size:.75rem;cursor:pointer;padding:4px 8px;border-radius:4px;transition:background .2s}._clearAllBtn_5v8n0_111:hover{background:#ffffff0d}._list_5v8n0_126{overflow-y:auto;flex:1}._list_5v8n0_126::-webkit-scrollbar{width:4px}._list_5v8n0_126::-webkit-scrollbar-thumb{background:#ffffff1a;border-radius:2px}._item_5v8n0_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_5v8n0_140:hover{background:#ffffff0d}._thumbnail_5v8n0_155{width:48px;height:64px;border-radius:6px;object-fit:cover;flex-shrink:0;box-shadow:0 2px 8px #0000004d}._itemInfo_5v8n0_164{flex:1;min-width:0}._itemTitle_5v8n0_169{display:block;font-size:.85rem;font-weight:600;color:#eee;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:.25rem}._itemMeta_5v8n0_180{display:inline-block;font-size:.7rem;background:var(--primary-color);color:#fff;padding:1px 6px;border-radius:4px;font-weight:600}._removeItem_5v8n0_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_5v8n0_140:hover ._removeItem_5v8n0_190{opacity:1}._removeItem_5v8n0_190:hover{color:#ff4d4f}._queueItem_5v8n0_214:hover{color:var(--color-success)}._emptyState_5v8n0_218{padding:2.5rem 1rem;text-align:center;color:#666;font-size:.9rem}@media(max-width:768px){._dropdown_5v8n0_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_5v8n0_7{width:40px;height:40px;font-size:1.2rem}._badge_5v8n0_31{top:4px;right:4px}}._header_gjuv3_1{height:var(--header-height);background-color:var(--bg-main);border-bottom:1px solid var(--border-primary);position:sticky;top:0;z-index:1000;display:flex;align-items:center;padding:0 var(--space-8);transition:transform var(--transition-slow),background-color var(--transition-base),box-shadow var(--transition-base);box-shadow:0 4px 30px #0000001a}._header_gjuv3_1._hidden_gjuv3_18{transform:translateY(-100%)}._leftSection_gjuv3_22{display:flex;align-items:center;gap:var(--space-4);flex:1}._hamburgerBtn_gjuv3_29{background-color:transparent;border:1px solid transparent;color:var(--text-primary);font-size:1.25rem;padding:var(--space-2);border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all var(--transition-base);height:40px;width:40px}._hamburgerBtn_gjuv3_29:hover{background-color:var(--bg-tertiary);border-color:var(--border-secondary);color:var(--accent)}._hamburgerBtn_gjuv3_29:active{transform:scale(.95)}._logo_gjuv3_55{transition:opacity var(--transition-base)}._logo_gjuv3_55:hover{opacity:.8}._rightSection_gjuv3_63{display:flex;align-items:center;gap:var(--space-6)}._searchContainer_gjuv3_69{position:relative;display:flex;align-items:center}._searchInput_gjuv3_75{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) 3rem;border-radius:var(--radius-md);width:280px;font-size:var(--font-size-sm);font-family:inherit;transition:all var(--transition-base);height:40px}._searchInput_gjuv3_75::placeholder{color:var(--text-muted)}._searchInput_gjuv3_75:hover{background-color:var(--bg-elevated);border-color:var(--border-light)}._searchInput_gjuv3_75:focus{border-color:var(--accent);background-color:var(--bg-main);width:340px;outline:none;box-shadow:0 0 0 4px var(--accent-glow)}._searchButton_gjuv3_105{position:absolute;left:var(--space-3);background:transparent;border:none;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer;pointer-events:auto}._searchIcon_gjuv3_118{color:var(--text-muted);font-size:.9rem;transition:all var(--transition-base)}._searchInput_gjuv3_75:focus+._searchButton_gjuv3_105 ._searchIcon_gjuv3_118{color:var(--accent)}._profileBtn_gjuv3_128{width:38px;height:38px;border-radius:50%;overflow:hidden;border:1px solid var(--border-primary);cursor:pointer;transition:all var(--transition-base);display:flex;align-items:center;justify-content:center;flex-shrink:0;background-color:var(--bg-tertiary)}._profileBtn_gjuv3_128:hover{border-color:var(--accent);transform:translateY(-2px);box-shadow:0 4px 12px var(--accent-glow)}._profileBtn_gjuv3_128:active{transform:scale(.95)}._profileBtn_gjuv3_128 svg{color:var(--text-primary);font-size:1rem}._profileImg_gjuv3_158{width:100%;height:100%;object-fit:cover}@media(max-width:768px){._header_gjuv3_1{height:70px;padding:0 var(--space-4)}._leftSection_gjuv3_22{gap:var(--space-2)}._searchInput_gjuv3_75{width:120px;height:40px}._searchInput_gjuv3_75:focus{width:180px}}@media(max-width:480px){._logo_gjuv3_55{display:none}._searchContainer_gjuv3_69{display:flex;flex:1;margin:0 var(--space-2)}._searchInput_gjuv3_75{width:100%;min-width:0;height:38px;padding-left:2.5rem}._searchInput_gjuv3_75:focus{width:100%}._searchButton_gjuv3_105{left:10px}._rightSection_gjuv3_63{gap:var(--space-2)}}._sidebar_tt12i_1{position:fixed;top:0;left:0;width:280px;max-width:85vw;height:100%;transition:transform var(--transition-normal);z-index:1010;padding:var(--space-6);display:flex;flex-direction:column;overflow-y:auto;transform:translate(-100%);background-color:#050505e6;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);color:var(--text-primary);box-shadow:20px 0 60px #00000080;border-right:1px solid var(--border-primary)}._sidebar_tt12i_1._open_tt12i_23{transform:translate(0)}._sidebarHeader_tt12i_27{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--space-10)}._logo_tt12i_34{display:flex;align-items:center;text-decoration:none;--logo-height: 50px;transition:opacity var(--transition-base)}._logo_tt12i_34:hover{opacity:.8}._closeBtn_tt12i_46{background:var(--bg-tertiary);border:1px solid var(--border-primary);font-size:1.5rem;line-height:1;cursor:pointer;color:var(--text-primary);transition:all var(--transition-base);display:flex;align-items:center;justify-content:center;padding:0;width:36px;height:36px;border-radius:var(--radius-md)}._closeBtn_tt12i_46:hover{background-color:var(--bg-elevated);color:var(--accent);border-color:var(--accent)}._navSection_tt12i_69{display:flex;flex-direction:column;gap:var(--space-1)}._navLink_tt12i_75{display:flex;align-items:center;gap:var(--space-4);padding:var(--space-3) var(--space-5);border-radius:var(--radius-md);text-decoration:none;transition:all var(--transition-base);color:var(--text-secondary);font-weight:var(--font-weight-medium);font-size:var(--font-size-base)}._navLink_tt12i_75 svg{font-size:1.1rem;transition:transform var(--transition-base)}._navLink_tt12i_75:hover{background-color:var(--bg-tertiary);color:var(--text-primary)}._navLink_tt12i_75:hover svg{transform:translate(2px);color:var(--accent)}._navLink_tt12i_75._active_tt12i_103{background-color:var(--accent-glow);color:var(--accent-light);box-shadow:inset 0 0 0 1px var(--border-accent)}._navLink_tt12i_75._active_tt12i_103 svg{color:var(--accent-light)}._overlay_tt12i_113{position:fixed;inset:0;background-color:#000000b3;z-index:1005;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);animation:_fadeIn_tt12i_1 .3s ease-out}@keyframes _fadeIn_tt12i_1{0%{opacity:0}to{opacity:1}}._versionInfo_tt12i_135{margin-top:auto;padding-top:var(--space-6);font-size:var(--font-size-xs);color:var(--text-tertiary);text-align:left;display:flex;align-items:center;gap:var(--space-2)}._versionInfo_tt12i_135:before{content:"";display:block;width:6px;height:6px;border-radius:50%;background-color:var(--color-success)}@media(max-width:768px){._sidebar_tt12i_1{width:260px;padding:var(--space-6) var(--space-4)}._sidebarHeader_tt12i_27{margin-bottom:var(--space-8)}._logo_tt12i_34{--logo-height: 40px}._navLink_tt12i_75{padding:var(--space-3) var(--space-4)}}._footer_1t3tu_1{padding:var(--space-12) var(--space-8);border-top:1px solid var(--border-primary);display:flex;flex-direction:column;align-items:center;gap:var(--space-6);color:var(--text-tertiary);font-size:var(--font-size-sm);margin-top:auto;background-color:#0505054d}._footerContent_1t3tu_14{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);text-align:center}._footerLinks_1t3tu_22{display:flex;gap:var(--space-6);margin-bottom:var(--space-2)}._footer_1t3tu_1 a{color:var(--text-secondary);text-decoration:none;font-weight:var(--font-weight-medium);transition:all var(--transition-base)}._footer_1t3tu_1 a:hover{color:var(--accent);transform:translateY(-1px)}._brand_1t3tu_40{color:var(--accent)!important;font-weight:var(--font-weight-bold)!important}._copyright_1t3tu_45{opacity:.6}@media(max-width:640px){._footer_1t3tu_1{padding:var(--space-8) var(--space-4)}._footerLinks_1t3tu_22{gap:var(--space-4);flex-wrap:wrap;justify-content:center}}._scrollToTop_1xygw_1{position:fixed;bottom:2rem;right:2rem;z-index:1000}._scrollButton_1xygw_8{background-color:#ffffff0d;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#fff;border:1px solid rgba(255,255,255,.1);border-radius:50%;width:50px;height:50px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 20px #0000004d;transition:all var(--transition-base);opacity:0;transform:translateY(20px);pointer-events:none}._scrollButton_1xygw_8._visible_1xygw_28{opacity:1;transform:translateY(0);pointer-events:all}._scrollButton_1xygw_8:hover{background-color:#ffffff26;border-color:#ffffff4d;transform:translateY(-5px) scale(1.05);animation:_wobble_1xygw_1 .5s ease-in-out}._scrollButton_1xygw_8:active{transform:scale(.95)}@keyframes _wobble_1xygw_1{0%{transform:translateY(-5px) scale(1.05) rotate(0)}25%{transform:translateY(-5px) scale(1.05) rotate(-3deg)}75%{transform:translateY(-5px) scale(1.05) rotate(3deg)}to{transform:translateY(-5px) scale(1.05) rotate(0)}}@media(max-width:768px){._scrollToTop_1xygw_1{bottom:1.5rem;right:1.5rem}._scrollButton_1xygw_8{width:44px;height:44px}}._keyboard_1p15j_1{position:fixed;z-index:5000;width:min(var(--keyboard-width),calc(100vw - 24px));overflow:hidden;color:var(--text-primary);background:linear-gradient(180deg,#ffffff14,#ffffff05),#0f0f11f7;border:1px solid var(--border-secondary);border-radius:var(--radius-md);box-shadow:0 18px 60px #00000075;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);-webkit-user-select:none;user-select:none}._small_1p15j_18{--keyboard-width: 500px;--key-size: 34px;--key-font: .8rem;--keyboard-gap: 5px}._medium_1p15j_25{--keyboard-width: 650px;--key-size: 42px;--key-font: .95rem;--keyboard-gap: 7px}._large_1p15j_32{--keyboard-width: 820px;--key-size: 52px;--key-font: 1.08rem;--keyboard-gap: 9px}._topBar_1p15j_39{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2);background:#ffffff0f;border-bottom:1px solid var(--border-primary)}._dragHandle_1p15j_48{flex:1;min-height:34px;display:flex;align-items:center;gap:var(--space-2);color:var(--text-secondary);font-size:var(--font-size-sm);cursor:move}._grip_1p15j_59{width:22px;height:14px;background-image:radial-gradient(currentColor 1px,transparent 1px);background-size:6px 6px;opacity:.8}._topButton_1p15j_67,._key_1p15j_1{border:1px solid var(--border-secondary);color:var(--text-primary);background:#ffffff14;font:inherit;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,transform .08s ease}._topButton_1p15j_67{min-height:34px;padding:0 var(--space-3);border-radius:var(--radius-sm);font-size:var(--font-size-sm)}._topButton_1p15j_67:hover,._key_1p15j_1:hover{background:#ffffff24;border-color:#ffffff42}._topButton_1p15j_67:active,._key_1p15j_1:active{transform:translateY(1px)}._closeButton_1p15j_98{width:34px;padding:0}._keys_1p15j_103{display:grid;gap:var(--keyboard-gap);padding:var(--space-3);justify-items:center}._row_1p15j_110{display:flex;justify-content:center;gap:var(--keyboard-gap);width:100%;max-width:calc((var(--key-size) * 10) + (var(--key-size) * 1.75) + (var(--keyboard-gap) * 10))}._key_1p15j_1{min-width:var(--key-size);height:var(--key-size);border-radius:var(--radius-sm);font-size:var(--key-font);font-weight:var(--font-weight-semibold)}._wideKey_1p15j_126{min-width:calc(var(--key-size) * 1.75)}._extraWideKey_1p15j_130{min-width:calc(var(--key-size) * 2.3)}._spaceKey_1p15j_134{flex:1;max-width:calc((var(--key-size) * 10) + (var(--key-size) * 1.75) + (var(--keyboard-gap) * 10) - (var(--key-size) * 5.5) - (var(--keyboard-gap) * 4))}._spaceIcon_1p15j_142{width:14%;height:12px;border-bottom:2px solid currentColor;display:inline-block;opacity:.9}._activeKey_1p15j_150{border-color:var(--accent);background:linear-gradient(135deg,var(--accent),var(--accent-dark))}@media(max-width:700px){._keyboard_1p15j_1{left:8px!important;width:calc(100vw - 16px)}._small_1p15j_18,._medium_1p15j_25,._large_1p15j_32{--key-size: 31px;--keyboard-gap: 4px;--key-font: .76rem}._dragHandle_1p15j_48 span{display:none}}._overlay_spsxk_1{position:fixed;inset:0;background-color:#0009;display:flex;align-items:center;justify-content:center;z-index:9999;padding:var(--space-4);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);animation:_fadeIn_spsxk_1 var(--transition-slow)}._content_spsxk_18{background-color:var(--bg-secondary);padding:var(--space-6);border-radius:var(--radius-lg);max-width:500px;width:100%;box-shadow:var(--shadow-xl);position:relative;border:1px solid var(--border-primary);animation:_slideUp_spsxk_1 var(--transition-slow)}._title_spsxk_30{margin-top:0;margin-bottom:var(--space-4);font-size:var(--font-size-xl);font-weight:var(--font-weight-bold);color:var(--text-primary)}._container_ujsuh_1{display:flex;flex-direction:column;gap:1rem;color:var(--text-color, #fff);max-width:400px}._field_ujsuh_9{display:flex;flex-direction:column;gap:.5rem}._field_ujsuh_9 label{font-size:.9rem;opacity:.8}._textarea_ujsuh_20{background:var(--bg-secondary, #2a2a2a);border:1px solid var(--border-color, #444);color:#fff;padding:.5rem;border-radius:4px;resize:vertical;font-family:inherit}._input_ujsuh_30{background:var(--bg-secondary, #2a2a2a);border:1px solid var(--border-color, #444);color:#fff;padding:.6rem;border-radius:4px}._button_ujsuh_38{background:var(--accent-color, #007bff);color:#fff;border:none;padding:.7rem;border-radius:4px;cursor:pointer;font-weight:600;transition:opacity .2s}._button_ujsuh_38:hover{opacity:.9}._button_ujsuh_38:disabled{opacity:.5;cursor:not-allowed}._secondaryButton_ujsuh_58{background:transparent;border:1px solid var(--border-color, #444);color:#fff;padding:.7rem;border-radius:4px;cursor:pointer}._actions_ujsuh_67{display:flex;gap:.5rem}._actions_ujsuh_67 ._button_ujsuh_38{flex: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;color-scheme:dark}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;color-scheme:dark}html,body,.app-container,header,main,footer,.posterWrapper,.dot,.genreTag{--darkreader-inline-bgcolor: none !important;--darkreader-inline-bgimage: none !important;--darkreader-inline-bordercolor: none !important;--darkreader-inline-color: none !important;background-color:transparent}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:0 var(--space-8) var(--space-12);position:relative;z-index:1}@media(max-width:768px){main{padding:0 var(--space-4) var(--space-8)}}.section-title{font-size:1.75rem;font-weight:800;margin-bottom:var(--space-8);color:var(--text-primary);letter-spacing:-.02em;line-height:1}@media(max-width:768px){.section-title{font-size:1.5rem;margin-bottom:var(--space-6)}}.grid-container{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:var(--space-6);width:100%}@media(max-width:1024px){.grid-container{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:var(--space-4)}}@media(max-width:768px){.grid-container{grid-template-columns:repeat(3,1fr);gap:var(--space-2)}}@media(max-width:480px){.grid-container{grid-template-columns:repeat(3,1fr);gap:8px}}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-O1FbN8t_.js","assets/vendor-Bc4EraM_.js","assets/Button-lkEUHIDS.js","assets/Button-Fq9KaUOg.css","assets/ErrorMessage-BXKDLzn8.js","assets/useAnimeInfoData-Dqthchpa.js","assets/useIsMobile-BviODivc.js","assets/ErrorMessage-BVWNgHMx.css","assets/RemoveConfirmationModal-DatCZQKq.js","assets/RemoveConfirmationModal-BBiogSdf.css","assets/QueueRail-Cxn5U8kE.js","assets/QueueRail-DOM_pWkE.css","assets/Home-r0eYbWNc.css","assets/Watchlist-CXw0vbNx.js","assets/SearchableSelect-BzYsMz8B.js","assets/SearchableSelect-BkCrf6E8.css","assets/Watchlist-a2RHQogs.css","assets/Settings-C5adinOe.js","assets/ToggleSwitch-CrXim14A.js","assets/ToggleSwitch-BIlQxIjg.css","assets/Settings-Bv9fX-x3.css","assets/Player-CSyGax33.js","assets/SynopsisText-C3AK-aRc.js","assets/SynopsisText-DsI3mW5v.css","assets/Player-BarbgKjI.css","assets/Search-DJxo3BYH.js","assets/Search-BzO-aRP7.css","assets/MAL-BGM33N5c.js","assets/MAL-DeQNXXPx.css","assets/Insights-opcB-aTo.js","assets/Insights-CF4K-oO5.css","assets/AnimeInfoPage-xGVarrXG.js"])))=>i.map(i=>d[i]);
2
+ import{g as R,X as he,d as E,y as P,T as xe,u as a,x as pe,N as at,k as I,S as se,A as Z,q as H,a as $,b as W,c as Q,e as Se,L as ce,f as ot,h as it,$ as st,i as ct,C as lt,P as ut,R as dt,j as q,l as ht,z as Y,m as pt,n as mt,Q as ft,o as vt,B as gt,p as yt}from"./vendor-Bc4EraM_.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"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();const bt="modulepreload",wt=function(e){return"/"+e},ke={},J=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let u=function(p){return Promise.all(p.map(d=>Promise.resolve(d).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),c=s?.nonce||s?.getAttribute("nonce");o=u(n.map(p=>{if(p=wt(p),p in ke)return;ke[p]=!0;const d=p.endsWith(".css"),v=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const g=document.createElement("link");if(g.rel=d?"stylesheet":bt,d||(g.as="script"),g.crossOrigin="",g.href=p,c&&g.setAttribute("nonce",c),document.head.appendChild(g),d)return new Promise((w,l)=>{g.addEventListener("load",w),g.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${p}`)))})}))}function i(s){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=s,window.dispatchEvent(c),!c.defaultPrevented)throw s}return o.then(s=>{for(const c of s||[])c.status==="rejected"&&i(c.reason);return t().catch(i)})};var $e={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Le=R.createContext&&R.createContext($e),_t=["attr","size","title"];function xt(e,t){if(e==null)return{};var n,r,o=St(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function St(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},le.apply(null,arguments)}function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ue(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ne(Object(n),!0).forEach(function(r){Ct(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ct(e,t,n){return(t=Et(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Et(e){var t=kt(e,"string");return typeof t=="symbol"?t:t+""}function kt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qe(e){return e&&e.map((t,n)=>R.createElement(t.tag,ue({key:n},t.attr),qe(t.child)))}function f(e){return t=>R.createElement(Lt,le({attr:ue({},e.attr)},t),qe(e.child))}function Lt(e){var t=n=>{var{attr:r,size:o,title:i}=e,s=xt(e,_t),c=o||n.size||"1em",u;return n.className&&(u=n.className),e.className&&(u=(u?u+" ":"")+e.className),R.createElement("svg",le({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:u,style:ue(ue({color:e.color||n.color},n.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),i&&R.createElement("title",null,i),e.children)};return Le!==void 0?R.createElement(Le.Consumer,null,n=>t(n)):t($e)}function Nt(e){return f({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 ro(e){return f({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 ao(e){return f({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 oo(e){return f({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 io(e){return f({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 so(e){return f({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 co(e){return f({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 lo(e){return f({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 uo(e){return f({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 Pt(e){return f({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 ho(e){return f({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 He(e){return f({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 zt(e){return f({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 po(e){return f({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 mo(e){return f({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 fo(e){return f({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 vo(e){return f({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 go(e){return f({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M48 48a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm0 160a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm0 160a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm448 16H176a16 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 yo(e){return f({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 bo(e){return f({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 je(e){return f({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 wo(e){return f({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 _o(e){return f({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 xo(e){return f({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 So(e){return f({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 Mt(e){return f({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 Co(e){return f({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 Eo(e){return f({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 ko(e){return f({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 Lo(e){return f({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 It(e){return f({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 No(e){return f({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 Po(e){return f({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 Bt(e){return f({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 Ft(e){return f({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 zo(e){return f({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 Tt(e){return f({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 Mo(e){return f({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 Io(e){return f({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 Bo(e){return f({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 Fo(e){return f({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 At(e){return f({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 To(e){return f({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 Ot(e){return f({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 $t(e){return f({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 qt(e){return f({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 Ao(e){return f({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)}function Oo(e){return f({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"},child:[]}]})(e)}function $o(e){return f({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"},child:[]}]})(e)}function qo(e){return f({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"},child:[]}]})(e)}function Ho(e){return f({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z"},child:[]}]})(e)}const X=new Map,Ht=500,jt=(e,t,n)=>{if(!e||e.trim()==="")return"/placeholder.svg";if(e.includes("/api/image-proxy")){let s=e;if(t&&!s.includes("w=")){const c=s.includes("?")?"&":"?";s+=`${c}w=${t}`}if(n&&!s.includes("h=")){const c=s.includes("?")?"&":"?";s+=`${c}h=${n}`}return s}let r=e;r.includes("wp.youtube-anime.com")&&(r=r.replace("wp.youtube-anime.com","allanime.day")),r.includes("aln.youtube-anime.com")&&(r=r.replace(/https?:\/\/allanime\.day\/aln\.youtube-anime\.com/,"https://aln.youtube-anime.com"),r.includes("/images/mcovers")&&(r=r.replace("/images/mcovers","/mcovers")),r.includes("/images/images2")&&(r=r.replace("/images/images2","/images2"))),r.includes("allanime.day/s4.anilist.co")&&(r=r.replace(/https?:\/\/allanime\.day\/s4\.anilist\.co/,"https://s4.anilist.co"));const o=`${r}-${t}-${n}`;if(X.has(o))return X.get(o);let i;if(r.startsWith("https://s4.anilist.co"))i=r,t&&(i+=`${i.includes("?")?"&":"?"}w=${t}`),n&&(i+=`${i.includes("?")?"&":"?"}h=${n}`);else if(r.includes("animepahe")){i=`/api/image-proxy?url=${encodeURIComponent(r)}`;const s=localStorage.getItem("animepahe_cookie"),c=localStorage.getItem("animepahe_ua");s&&(i+=`&cookie=${encodeURIComponent(s)}`),c&&(i+=`&ua=${encodeURIComponent(c)}`)}else if(r.startsWith("http"))i=`/api/image-proxy?url=${encodeURIComponent(r)}`,t&&(i+=`&w=${t}`),n?i+=`&h=${n}`:t||(i+="&w=300");else{const c=`${r.startsWith("mcovers")||r.startsWith("images2")?"https://aln.youtube-anime.com":"https://aln.youtube-anime.com/images"}/${r}`;i=`/api/image-proxy?url=${encodeURIComponent(c)}`,t&&(i+=`&w=${t}`),n?i+=`&h=${n}`:t||(i+="&w=300")}return X.size>Ht&&X.clear(),X.set(o,i),i},jo=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)},Ve=he(void 0),Vt=({children:e})=>{const[t,n]=E("englishName"),[r,o]=E(!0);P(()=>{(async()=>{try{const c=await fetch("/api/settings?key=titlePreference");if(c.ok){const u=await c.json();u.value&&n(u.value)}}catch(c){console.error("Error fetching title preference in context:",c)}finally{o(!1)}})()},[]);const i=xe(()=>({titlePreference:t,setTitlePreference:n,loading:r}),[t,r]);return a(Ve.Provider,{value:i,children:e})},Rt=()=>{const e=pe(Ve);if(e===void 0)throw new Error("useTitlePreference must be used within a TitlePreferenceProvider");return e};let Dt={data:""},Kt=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||Dt},Ut=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Wt=/\/\*[^]*?\*\/| +/g,Pe=/\n+/g,U=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?U(s,i):i+"{"+U(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=U(s,t?t.replace(/([^,])+/g,c=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,u=>/&/.test(u)?u.replace(/&/g,c):c?c+" "+u:u)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=U.p?U.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},D={},Re=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Re(e[n]);return t}return e},Qt=(e,t,n,r,o)=>{let i=Re(e),s=D[i]||(D[i]=(u=>{let p=0,d=11;for(;p<u.length;)d=101*d+u.charCodeAt(p++)>>>0;return"go"+d})(i));if(!D[s]){let u=i!==e?e:(p=>{let d,v,g=[{}];for(;d=Ut.exec(p.replace(Wt,""));)d[4]?g.shift():d[3]?(v=d[3].replace(Pe," ").trim(),g.unshift(g[0][v]=g[0][v]||{})):g[0][d[1]]=d[2].replace(Pe," ").trim();return g[0]})(e);D[s]=U(o?{["@keyframes "+s]:u}:u,n?"":"."+s)}let c=n&&D.g?D.g:null;return n&&(D.g=D[s]),((u,p,d,v)=>{v?p.data=p.data.replace(v,u):p.data.indexOf(u)===-1&&(p.data=d?u+p.data:p.data+u)})(D[s],t,r,c),s},Yt=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let c=s(n),u=c&&c.props&&c.props.className||/^go/.test(c)&&c;s=u?"."+u:c&&typeof c=="object"?c.props?"":U(c,""):c===!1?"":c}return r+o+(s??"")},"");function me(e){let t=this||{},n=e.call?e(t.p):e;return Qt(n.unshift?n.raw?Yt(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,Kt(t.target),t.g,t.o,t.k)}let De,ye,be;me.bind({g:1});let K=me.bind({k:1});function Jt(e,t,n,r){U.p=t,De=e,ye=n,be=r}function G(e,t){let n=this||{};return function(){let r=arguments;function o(i,s){let c=Object.assign({},i),u=c.className||o.className;n.p=Object.assign({theme:ye&&ye()},c),n.o=/ *go\d+/.test(u),c.className=me.apply(n,r)+(u?" "+u:"");let p=e;return e[0]&&(p=c.as||e,delete c.as),be&&p[0]&&be(c),De(p,c)}return o}}var Gt=e=>typeof e=="function",de=(e,t)=>Gt(e)?e(t):e,Zt=(()=>{let e=0;return()=>(++e).toString()})(),Ke=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Xt=20,Ce="default",Ue=(e,t)=>{let{toastLimit:n}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,n)};case 1:return{...e,toasts:e.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case 2:let{toast:r}=t;return Ue(e,{type:e.toasts.find(s=>s.id===r.id)?1:0,toast:r});case 3:let{toastId:o}=t;return{...e,toasts:e.toasts.map(s=>s.id===o||o===void 0?{...s,dismissed:!0,visible:!1}:s)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(s=>({...s,pauseDuration:s.pauseDuration+i}))}}},ae=[],We={toasts:[],pausedAt:void 0,settings:{toastLimit:Xt}},V={},Qe=(e,t=Ce)=>{V[t]=Ue(V[t]||We,e),ae.forEach(([n,r])=>{n===t&&r(V[t])})},Ye=e=>Object.keys(V).forEach(t=>Qe(e,t)),en=e=>Object.keys(V).find(t=>V[t].toasts.some(n=>n.id===e)),fe=(e=Ce)=>t=>{Qe(t,e)},tn={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},nn=(e={},t=Ce)=>{let[n,r]=E(V[t]||We),o=Z(V[t]);P(()=>(o.current!==V[t]&&r(V[t]),ae.push([t,r]),()=>{let s=ae.findIndex(([c])=>c===t);s>-1&&ae.splice(s,1)}),[t]);let i=n.toasts.map(s=>{var c,u,p;return{...e,...e[s.type],...s,removeDelay:s.removeDelay||((c=e[s.type])==null?void 0:c.removeDelay)||e?.removeDelay,duration:s.duration||((u=e[s.type])==null?void 0:u.duration)||e?.duration||tn[s.type],style:{...e.style,...(p=e[s.type])==null?void 0:p.style,...s.style}}});return{...n,toasts:i}},rn=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:n?.id||Zt()}),te=e=>(t,n)=>{let r=rn(t,e,n);return fe(r.toasterId||en(r.id))({type:2,toast:r}),r.id},N=(e,t)=>te("blank")(e,t);N.error=te("error");N.success=te("success");N.loading=te("loading");N.custom=te("custom");N.dismiss=(e,t)=>{let n={type:3,toastId:e};t?fe(t)(n):Ye(n)};N.dismissAll=e=>N.dismiss(void 0,e);N.remove=(e,t)=>{let n={type:4,toastId:e};t?fe(t)(n):Ye(n)};N.removeAll=e=>N.remove(void 0,e);N.promise=(e,t,n)=>{let r=N.loading(t.loading,{...n,...n?.loading});return typeof e=="function"&&(e=e()),e.then(o=>{let i=t.success?de(t.success,o):void 0;return i?N.success(i,{id:r,...n,...n?.success}):N.dismiss(r),o}).catch(o=>{let i=t.error?de(t.error,o):void 0;i?N.error(i,{id:r,...n,...n?.error}):N.dismiss(r)}),e};var an=1e3,on=(e,t="default")=>{let{toasts:n,pausedAt:r}=nn(e,t),o=Z(new Map).current,i=H((v,g=an)=>{if(o.has(v))return;let w=setTimeout(()=>{o.delete(v),s({type:4,toastId:v})},g);o.set(v,w)},[]);P(()=>{if(r)return;let v=Date.now(),g=n.map(w=>{if(w.duration===1/0)return;let l=(w.duration||0)+w.pauseDuration-(v-w.createdAt);if(l<0){w.visible&&N.dismiss(w.id);return}return setTimeout(()=>N.dismiss(w.id,t),l)});return()=>{g.forEach(w=>w&&clearTimeout(w))}},[n,r,t]);let s=H(fe(t),[t]),c=H(()=>{s({type:5,time:Date.now()})},[s]),u=H((v,g)=>{s({type:1,toast:{id:v,height:g}})},[s]),p=H(()=>{r&&s({type:6,time:Date.now()})},[r,s]),d=H((v,g)=>{let{reverseOrder:w=!1,gutter:l=8,defaultPosition:h}=g||{},y=n.filter(C=>(C.position||h)===(v.position||h)&&C.height),S=y.findIndex(C=>C.id===v.id),k=y.filter((C,x)=>x<S&&C.visible).length;return y.filter(C=>C.visible).slice(...w?[k+1]:[0,k]).reduce((C,x)=>C+(x.height||0)+l,0)},[n]);return P(()=>{n.forEach(v=>{if(v.dismissed)i(v.id,v.removeDelay);else{let g=o.get(v.id);g&&(clearTimeout(g),o.delete(v.id))}})},[n,i]),{toasts:n,handlers:{updateHeight:u,startPause:c,endPause:p,calculateOffset:d}}},sn=K`
3
+ from {
4
+ transform: scale(0) rotate(45deg);
5
+ opacity: 0;
6
+ }
7
+ to {
8
+ transform: scale(1) rotate(45deg);
9
+ opacity: 1;
10
+ }`,cn=K`
11
+ from {
12
+ transform: scale(0);
13
+ opacity: 0;
14
+ }
15
+ to {
16
+ transform: scale(1);
17
+ opacity: 1;
18
+ }`,ln=K`
19
+ from {
20
+ transform: scale(0) rotate(90deg);
21
+ opacity: 0;
22
+ }
23
+ to {
24
+ transform: scale(1) rotate(90deg);
25
+ opacity: 1;
26
+ }`,un=G("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: ${sn} 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: ${cn} 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: ${ln} 0.15s ease-out forwards;
56
+ animation-delay: 180ms;
57
+ transform: rotate(90deg);
58
+ }
59
+ `,dn=K`
60
+ from {
61
+ transform: rotate(0deg);
62
+ }
63
+ to {
64
+ transform: rotate(360deg);
65
+ }
66
+ `,hn=G("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: ${dn} 1s linear infinite;
75
+ `,pn=K`
76
+ from {
77
+ transform: scale(0) rotate(45deg);
78
+ opacity: 0;
79
+ }
80
+ to {
81
+ transform: scale(1) rotate(45deg);
82
+ opacity: 1;
83
+ }`,mn=K`
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
+ }`,fn=G("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: ${pn} 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: ${mn} 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
+ `,vn=G("div")`
125
+ position: absolute;
126
+ `,gn=G("div")`
127
+ position: relative;
128
+ display: flex;
129
+ justify-content: center;
130
+ align-items: center;
131
+ min-width: 20px;
132
+ min-height: 20px;
133
+ `,yn=K`
134
+ from {
135
+ transform: scale(0.6);
136
+ opacity: 0.4;
137
+ }
138
+ to {
139
+ transform: scale(1);
140
+ opacity: 1;
141
+ }`,bn=G("div")`
142
+ position: relative;
143
+ transform: scale(0.6);
144
+ opacity: 0.4;
145
+ min-width: 20px;
146
+ animation: ${yn} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
147
+ forwards;
148
+ `,wn=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?I(bn,null,t):t:n==="blank"?null:I(gn,null,I(hn,{...r}),n!=="loading"&&I(vn,null,n==="error"?I(un,{...r}):I(fn,{...r})))},_n=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
+ `,xn=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
+ `,Sn="0%{opacity:0;} 100%{opacity:1;}",Cn="0%{opacity:1;} 100%{opacity:0;}",En=G("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
+ `,kn=G("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
+ `,Ln=(e,t)=>{let n=e.includes("top")?1:-1,[r,o]=Ke()?[Sn,Cn]:[_n(n),xn(n)];return{animation:t?`${K(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${K(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Nn=at(({toast:e,position:t,style:n,children:r})=>{let o=e.height?Ln(e.position||t||"top-center",e.visible):{opacity:0},i=I(wn,{toast:e}),s=I(kn,{...e.ariaProps},de(e.message,e));return I(En,{className:e.className,style:{...o,...n,...e.style}},typeof r=="function"?r({icon:i,message:s}):I(se,null,i,s))});Jt(I);var Pn=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let i=H(s=>{if(s){let c=()=>{let u=s.getBoundingClientRect().height;r(e,u)};c(),new MutationObserver(c).observe(s,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return I("div",{ref:i,className:t,style:n},o)},zn=(e,t)=>{let n=e.includes("top"),r=n?{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:Ke()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}},Mn=me`
174
+ z-index: 9999;
175
+ > * {
176
+ pointer-events: auto;
177
+ }
178
+ `,re=16,In=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,toasterId:i,containerStyle:s,containerClassName:c})=>{let{toasts:u,handlers:p}=on(n,i);return I("div",{"data-rht-toaster":i||"",style:{position:"fixed",zIndex:9999,top:re,left:re,right:re,bottom:re,pointerEvents:"none",...s},className:c,onMouseEnter:p.startPause,onMouseLeave:p.endPause},u.map(d=>{let v=d.position||t,g=p.calculateOffset(d,{reverseOrder:e,gutter:r,defaultPosition:t}),w=zn(v,g);return I(Pn,{id:d.id,key:d.id,onHeightUpdate:p.updateHeight,className:d.visible?Mn:"",style:w},d.type==="custom"?de(d.message,d):o?o(d):I(Nn,{toast:d,position:v}))}))},B=N;const T=async e=>{const t={"Content-Type":"application/json"},n=localStorage.getItem("animepahe_ua"),r=localStorage.getItem("animepahe_cookie");n&&(t["x-animepahe-ua"]=n),r&&(t["x-animepahe-cookie"]=r);const o=await fetch(e,{headers:t});if(!o.ok){if(o.status===403){const i=await o.json().catch(()=>({}));i.error==="AUTH_REQUIRED"&&i.provider==="animepahe"&&window.dispatchEvent(new CustomEvent("ANIMEPAHE_AUTH_REQUIRED"))}throw new Error(`Failed to fetch from ${e}`)}return o.json()},Vo=e=>$({queryKey:["popular",e],queryFn:()=>T(`/api/popular/${e}`)}),Ro=(e,t=7)=>Se({queryKey:["popularInfinite",e,t],queryFn:({pageParam:n=1})=>T(`/api/popular/${e}?page=${n}&size=${t}`),initialPageParam:1,getNextPageParam:(n,r)=>n.length>=t?r.length+1:void 0}),Do=(e=14)=>Se({queryKey:["latestReleasesInfinite",e],queryFn:({pageParam:t=1})=>T(`/api/latest-releases?page=${t}&size=${e}`),initialPageParam:1,getNextPageParam:(t,n)=>t.length>=e?n.length+1:void 0}),Ko=e=>$({queryKey:["currentSeason",e],queryFn:()=>T(`/api/seasonal?page=${e}`)}),Uo=(e,t,n=14)=>$({queryKey:["searchAnime",e,t,n],queryFn:async()=>{const r=new URLSearchParams(e);return r.set("page",t.toString()),r.set("limit",n.toString()),T(`/api/search?${r.toString()}`)},enabled:e!=null}),Wo=()=>$({queryKey:["queue"],queryFn:()=>T("/api/queue")}),Bn=()=>{const e=W();return Q({mutationFn:async t=>{const n=await fetch("/api/queue/add",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok)throw new Error("Failed to update queue");return n.json()},onSuccess:t=>{t.queued?B.success("Added to queue"):B.success("Removed from queue"),e.invalidateQueries({queryKey:["queue"]})},onError:t=>{B.error(`Failed to update queue: ${t.message}`)}})},Qo=()=>{const e=W();return Q({mutationFn:async t=>{if(!(await fetch("/api/queue/remove",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).ok)throw new Error("Failed to remove queue item")},onSuccess:()=>{B.success("Removed from queue"),e.invalidateQueries({queryKey:["queue"]}),e.invalidateQueries({queryKey:["continueWatchingFast"]}),e.invalidateQueries({queryKey:["continueWatchingUpNext"]}),e.invalidateQueries({queryKey:["continueWatching"]}),e.invalidateQueries({queryKey:["allContinueWatching"]})},onError:t=>{B.error(`Failed to remove: ${t.message}`)}})},Yo=()=>{const e=W();return Q({mutationFn:async()=>{if(!(await fetch("/api/queue/clear",{method:"POST"})).ok)throw new Error("Failed to clear queue")},onSuccess:()=>{B.success("Queue cleared"),e.invalidateQueries({queryKey:["queue"]}),e.invalidateQueries({queryKey:["continueWatchingFast"]}),e.invalidateQueries({queryKey:["continueWatchingUpNext"]}),e.invalidateQueries({queryKey:["continueWatching"]}),e.invalidateQueries({queryKey:["allContinueWatching"]})},onError:t=>{B.error(`Failed to clear queue: ${t.message}`)}})},Jo=()=>{const e=W();return Q({mutationFn:async t=>{if(!(await fetch("/api/queue/reorder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:t})})).ok)throw new Error("Failed to reorder queue")},onMutate:async t=>{await e.cancelQueries({queryKey:["queue"]});const n=e.getQueryData(["queue"]);return e.setQueryData(["queue"],r=>{if(!r)return r;const o=new Map(r.map(i=>[i.id,i]));return t.map((i,s)=>{const c=o.get(i.id);return c?{...c,queue_order:s}:void 0}).filter(i=>!!i)}),{previousQueue:n}},onError:(t,n,r)=>{r?.previousQueue&&e.setQueryData(["queue"],r.previousQueue)},onSettled:()=>{e.invalidateQueries({queryKey:["queue"]})}})},Go=(e,t="",n,r=14)=>$({queryKey:["watchlist",e,t,n,r],queryFn:async()=>{const o=new URLSearchParams(t);return o.set("status",e),o.set("page",String(n)),o.set("limit",String(r)),T(`/api/watchlist?${o.toString()}`)}}),Zo=(e="")=>Se({queryKey:["allContinueWatching",e],queryFn:async({pageParam:t=1})=>{const n=new URLSearchParams(e);return n.set("page",String(t)),n.set("limit","14"),await T(`/api/continue-watching/all?${n.toString()}`)},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(n=>n.data)})}),Xo=(e="",t,n=14)=>$({queryKey:["allContinueWatching",e,t,n],queryFn:async()=>{const r=new URLSearchParams(e);return r.set("page",String(t)),r.set("limit",String(n)),T(`/api/continue-watching/all?${r.toString()}`)}}),ei=()=>{const e=W();return Q({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:()=>{B.success("Removed from watchlist"),e.invalidateQueries({queryKey:["watchlist"]})},onError:t=>{B.error(`Failed to remove: ${t.message}`)}})},Je=(e=!0)=>$({queryKey:["notifications"],queryFn:()=>T("/api/notifications"),enabled:e,refetchInterval:12e4}),Fn=()=>{const e=W();return Q({mutationFn:async({showId:t,episodeNumber:n})=>{if(!(await fetch("/api/notifications/dismiss",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({showId:t,episodeNumber:n})})).ok)throw new Error("Failed to dismiss notification")},onSuccess:()=>{e.invalidateQueries({queryKey:["notifications"]})}})},Tn=()=>{const e=W();return Q({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"]})}})},ti=()=>$({queryKey:["thisWeekSchedule"],queryFn:()=>T("/api/continue-watching/this-week")}),ni=()=>$({queryKey:["genresAndStudios"],queryFn:()=>T("/api/genres-and-tags"),staleTime:1e3*60*60}),ri=()=>$({queryKey:["genreCards"],queryFn:()=>T("/api/insights/genre-cards")}),An="_container_5v8n0_1",On="_bellBtn_5v8n0_7",$n="_badge_5v8n0_31",qn="_dropdown_5v8n0_66",Hn="_dropdownHeader_5v8n0_97",jn="_clearAllBtn_5v8n0_111",Vn="_list_5v8n0_126",Rn="_item_5v8n0_140",Dn="_thumbnail_5v8n0_155",Kn="_itemInfo_5v8n0_164",Un="_itemTitle_5v8n0_169",Wn="_itemMeta_5v8n0_180",Qn="_removeItem_5v8n0_190",Yn="_queueItem_5v8n0_214",Jn="_emptyState_5v8n0_218",M={container:An,bellBtn:On,badge:$n,dropdown:qn,dropdownHeader:Hn,clearAllBtn:jn,list:Vn,item:Rn,thumbnail:Dn,itemInfo:Kn,itemTitle:Un,itemMeta:Wn,removeItem:Qn,queueItem:Yn,emptyState:Jn},Gn=({notification:e})=>{const t=Fn(),n=Bn(),[r,o]=R.useState(!1),i=d=>{d.preventDefault(),d.stopPropagation(),t.mutate({showId:e.showId,episodeNumber:e.episodeNumber})},s=()=>{t.mutate({showId:e.showId,episodeNumber:e.episodeNumber})},c=d=>{d.preventDefault(),d.stopPropagation(),o(!0),n.mutate({showId:e.showId,episodeNumber:e.episodeNumber,showName:e.name,showThumbnail:e.thumbnail,nativeName:e.nativeName,englishName:e.englishName}),t.mutate({showId:e.showId,episodeNumber:e.episodeNumber}),window.setTimeout(()=>o(!1),1e3)},{titlePreference:u}=Rt(),p=u==="nativeName"?e.nativeName||e.name:u==="englishName"&&e.englishName||e.name;return a(ce,{to:`/watch/${e.showId}/${e.episodeNumber}`,className:M.item,onClick:s,children:[a("img",{src:jt(e.thumbnail,48,64),alt:e.name,className:M.thumbnail}),a("div",{className:M.itemInfo,children:[a("span",{className:M.itemTitle,children:p}),a("span",{className:M.itemMeta,children:["New Episode ",e.episodeNumber]})]}),a("button",{className:`${M.removeItem} ${M.queueItem}`,onClick:c,"aria-label":"Add notification to queue",children:r?a(At,{}):a(zt,{})}),a("button",{className:M.removeItem,onClick:i,"aria-label":"Remove notification",children:a(Pt,{})})]})},Zn=()=>{const{data:e=[],isLoading:t}=Je(),n=Tn(),r=()=>{n.mutate(void 0)};return a("div",{className:M.dropdown,children:[a("div",{className:M.dropdownHeader,children:[a("h4",{children:"Notifications"}),e.length>0&&a("button",{className:M.clearAllBtn,onClick:r,children:"Clear All"})]}),a("div",{className:M.list,children:t?a("div",{className:M.emptyState,children:"Loading..."}):e.length>0?e.map(o=>a(Gn,{notification:o},o.id)):a("div",{className:M.emptyState,children:"No new notifications"})})]})},Xn=()=>{const[e,t]=E(!1),n=Z(null),{data:r=[]}=Je(),o=r.length;P(()=>{const s=c=>{n.current&&!n.current.contains(c.target)&&t(!1)};return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[]);const i=o>5?"5+":o;return a("div",{className:M.container,ref:n,children:[a("button",{className:M.bellBtn,onClick:()=>t(!e),"aria-label":"Notifications",children:[a($t,{}),o>0&&a("span",{className:M.badge,children:i})]}),e&&a(Zn,{})]})},Ge=({className:e})=>a("img",{src:"/logo.png",alt:"Ani-Web",className:e,style:{height:"var(--logo-height, 75px)",width:"auto",display:"block",objectFit:"contain"}}),Ze=he(void 0),Ee=()=>{const e=pe(Ze);if(e===void 0)throw new Error("useSidebar must be used within a SidebarProvider");return e},we="virtual-keyboard:hide",ze="virtual-keyboard:enabled-change",Xe="virtual_keyboard_enabled",er=!1;function Me(){const e=localStorage.getItem(Xe);return e===null?er:e==="true"}const Ie=e=>e instanceof HTMLInputElement&&e.type==="text"&&!e.disabled&&!e.readOnly;function tr(){window.dispatchEvent(new CustomEvent(we))}function nr(){const[e,t]=E(!1),[n,r]=E(Me),o=Z(null);return P(()=>{const i=d=>{n&&Ie(d.target)&&(o.current=d.target,t(!0))},s=d=>{d.target===o.current&&window.setTimeout(()=>{if(Ie(document.activeElement)){o.current=document.activeElement,t(!0);return}o.current=null,t(!1)},0)},c=()=>{o.current=null,t(!1)},u=d=>{if(d.key!==Xe)return;const v=d.newValue==="true";r(v),v||c()},p=()=>{const d=Me();r(d),d||c()};return document.addEventListener("focusin",i),document.addEventListener("focusout",s),window.addEventListener(we,c),window.addEventListener("storage",u),window.addEventListener(ze,p),()=>{document.removeEventListener("focusin",i),document.removeEventListener("focusout",s),window.removeEventListener(we,c),window.removeEventListener("storage",u),window.removeEventListener(ze,p)}},[n]),{activeInputRef:o,isVisible:n&&e,hide:()=>t(!1)}}const rr="_header_gjuv3_1",ar="_hidden_gjuv3_18",or="_leftSection_gjuv3_22",ir="_hamburgerBtn_gjuv3_29",sr="_logo_gjuv3_55",cr="_rightSection_gjuv3_63",lr="_searchContainer_gjuv3_69",ur="_searchInput_gjuv3_75",dr="_searchButton_gjuv3_105",hr="_searchIcon_gjuv3_118",pr="_profileBtn_gjuv3_128",mr="_profileImg_gjuv3_158",A={header:rr,hidden:ar,leftSection:or,hamburgerBtn:ir,logo:sr,rightSection:cr,searchContainer:lr,searchInput:ur,searchButton:dr,searchIcon:hr,profileBtn:pr,profileImg:mr},fr=async()=>{const e=await fetch("/api/auth/settings/sync");if(!e.ok)return null;const n=(await e.json()).actualActiveProvider;if(n==="github"){const r=await fetch("/api/auth/github/status");if(r.ok){const o=await r.json();if(o.authenticated&&o.user)return{name:o.user.name||o.user.login,picture:o.user.avatarUrl,provider:"github"}}}if(n==="google"){const r=await fetch("/api/auth/user");if(r.ok){const o=await r.json();if(o)return{name:o.name,picture:o.picture,email:o.email,provider:"google"}}}return null},vr=()=>{const{toggleSidebar:e}=Ee(),[t,n]=E(""),[r,o]=E(!0),[i,s]=E(!1),c=ot(),u=Z(null),p=3e3,{data:d}=$({queryKey:["sync-profile"],queryFn:fr,staleTime:3e4});P(()=>{const g=()=>{o(!0),u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{window.scrollY>100&&!i&&o(!1)},p)};return window.addEventListener("scroll",g,{passive:!0}),()=>{window.removeEventListener("scroll",g),u.current&&clearTimeout(u.current)}},[i]);const v=g=>{g?.preventDefault(),tr(),t.trim()&&c(`/search?query=${encodeURIComponent(t.trim())}`)};return a("header",{className:`${A.header} ${r?"":A.hidden}`,children:[a("div",{className:A.leftSection,children:[a("button",{className:A.hamburgerBtn,onClick:e,"aria-label":"Menu",children:a(qt,{})}),a(ce,{to:"/",className:A.logo,"aria-label":"Ani-Web Home",children:a(Ge,{})})]}),a("div",{className:A.rightSection,children:[a("form",{onSubmit:v,className:A.searchContainer,children:[a("input",{type:"text","data-virtual-keyboard":"true",className:A.searchInput,placeholder:"Search anime...",value:t,onChange:g=>n(g.target.value),onFocus:()=>s(!0),onBlur:()=>s(!1)}),a("button",{type:"submit",className:A.searchButton,"aria-label":"Search",onMouseDown:g=>g.preventDefault(),children:a(He,{className:A.searchIcon})})]}),a(Xn,{}),a(ce,{to:"/settings?tab=sync",className:A.profileBtn,"aria-label":"Sync settings",children:d?.picture?a("img",{src:d.picture,alt:d.name,className:A.profileImg,referrerPolicy:"no-referrer"}):d?.provider==="github"?a(Nt,{}):a(Ft,{})})]})]})},gr="_sidebar_tt12i_1",yr="_open_tt12i_23",br="_sidebarHeader_tt12i_27",wr="_logo_tt12i_34",_r="_closeBtn_tt12i_46",xr="_navSection_tt12i_69",Sr="_navLink_tt12i_75",Cr="_active_tt12i_103",Er="_overlay_tt12i_113",kr="_versionInfo_tt12i_135",j={sidebar:gr,open:yr,sidebarHeader:br,logo:wr,closeBtn:_r,navSection:xr,navLink:Sr,active:Cr,overlay:Er,versionInfo:kr},Lr="ani-web",Nr="2.0.7",Pr="module",zr={node:">=22.5.0"},Mr={start:"vite",dev:"vite",build:"tsc && vite build",lint:"eslint .",preview:"vite preview","start:prod":"vite preview",format:"prettier --write ."},Ir={"@preact/preset-vite":"^2.10.5","@tanstack/query-sync-storage-persister":"^5.99.2","@tanstack/react-query":"^5.99.2","@tanstack/react-query-persist-client":"^5.99.2","@types/nprogress":"^0.2.3","@types/uuid":"^10.0.0","hls.js":"^1.6.16",nprogress:"^0.2.0",preact:"^10.29.1",react:"^19.2.5","react-dom":"^19.2.5","react-hot-toast":"^2.6.0","react-icons":"^5.6.0","react-router-dom":"^7.14.1",uuid:"^14.0.0"},Br={"@eslint/js":"^10.0.1","@types/react":"^19.2.14","@types/react-dom":"^19.2.3","@vitejs/plugin-react":"^5.0.0","baseline-browser-mapping":"^2.10.20",eslint:"^10.2.1","eslint-config-prettier":"^10.1.8","eslint-plugin-react-hooks":"^7.1.1","eslint-plugin-react-refresh":"^0.5.2",globals:"^17.5.0",prettier:"^3.8.3",rimraf:"^6.1.3",typescript:"^6.0.3","typescript-eslint":"^8.58.2",vite:"^7.3.1","vite-plugin-compression":"^0.5.1"},Fr={vite:{esbuild:"^0.28.1"}},et={name:Lr,private:!0,version:Nr,type:Pr,engines:zr,scripts:Mr,dependencies:Ir,devDependencies:Br,overrides:Fr},Tr=()=>{const{isOpen:e,setIsOpen:t}=Ee(),n=()=>{t(!1)},r=[{to:"/",icon:a(je,{}),label:"Home"},{to:"/search",icon:a(He,{}),label:"Search"},{to:"/watchlist",icon:a(Tt,{}),label:"Watchlist"},{to:"/insights",icon:a(Ot,{}),label:"Insights"},{to:"/mal",icon:a(Mt,{}),label:"MAL Import"},{to:"/settings",icon:a(Bt,{}),label:"Settings"}];return a(se,{children:[a("aside",{className:`${j.sidebar} ${e?j.open:""} sidebar`,children:[a("div",{className:j.sidebarHeader,children:[a(ce,{to:"/",className:j.logo,onClick:n,children:a(Ge,{})}),a("button",{className:j.closeBtn,onClick:()=>t(!1),"aria-label":"Close menu",children:"×"})]}),a("nav",{className:j.navSection,children:r.map(o=>a(it,{to:o.to,className:({isActive:i})=>`${j.navLink} ${i?j.active:""}`,onClick:n,end:o.to==="/",children:[o.icon,a("span",{children:o.label})]},o.to))}),a("div",{className:j.versionInfo,children:["Version ",et.version]})]}),e&&a("div",{className:j.overlay,onClick:()=>t(!1),"aria-label":"Close sidebar"})]})},Ar="_footer_1t3tu_1",Or="_footerContent_1t3tu_14",$r="_footerLinks_1t3tu_22",qr="_brand_1t3tu_40",Hr="_copyright_1t3tu_45",ee={footer:Ar,footerContent:Or,footerLinks:$r,brand:qr,copyright:Hr},jr=()=>{const e=new Date().getFullYear();return a("footer",{className:ee.footer,children:[a("div",{className:ee.footerLinks,children:[a("a",{href:"https://github.com/serifpersia/ani-web",target:"_blank",rel:"noopener noreferrer",children:"GitHub"}),a("a",{href:"https://github.com/serifpersia/ani-web/issues",target:"_blank",rel:"noopener noreferrer",children:"Feedback"}),a("a",{href:"https://github.com/serifpersia/ani-web/releases",target:"_blank",rel:"noopener noreferrer",children:"Changelog"})]}),a("div",{className:ee.footerContent,children:[a("p",{className:ee.copyright,children:["© ",e," ",a("a",{href:"/",className:ee.brand,children:"ani-web"})]}),a("p",{children:["Crafted by"," ",a("a",{href:"https://github.com/serifpersia",target:"_blank",rel:"noopener noreferrer",children:"serifpersia"})]})]})]})},Vr="_scrollToTop_1xygw_1",Rr="_scrollButton_1xygw_8",Dr="_visible_1xygw_28",ve={scrollToTop:Vr,scrollButton:Rr,visible:Dr},Kr=()=>{const[e,t]=E(!1),n=()=>{window.scrollY>300?t(!0):t(!1)},r=()=>{window.scrollTo({top:0,behavior:"smooth"})};return P(()=>(window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)),[]),a("div",{className:ve.scrollToTop,children:a("button",{onClick:r,className:`${ve.scrollButton} ${e?ve.visible:""}`,"aria-label":"Scroll to top",children:a("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2.5,stroke:"currentColor",width:"20",height:"20",children:a("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 15.75l7.5-7.5 7.5 7.5"})})})})},z=[];for(let e=0;e<256;++e)z.push((e+256).toString(16).slice(1));function Ur(e,t=0){return(z[e[t+0]]+z[e[t+1]]+z[e[t+2]]+z[e[t+3]]+"-"+z[e[t+4]]+z[e[t+5]]+"-"+z[e[t+6]]+z[e[t+7]]+"-"+z[e[t+8]]+z[e[t+9]]+"-"+z[e[t+10]]+z[e[t+11]]+z[e[t+12]]+z[e[t+13]]+z[e[t+14]]+z[e[t+15]]).toLowerCase()}const Wr=new Uint8Array(16);function Qr(){return crypto.getRandomValues(Wr)}function Yr(e,t,n){return crypto.randomUUID?crypto.randomUUID():Jr(e)}function Jr(e,t,n){e=e||{};const r=e.random??e.rng?.()??Qr();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Ur(r)}const Be="https://script.google.com/macros/s/AKfycbx6xcT1yGWRlF_fCB75Q7TMjlS0sZeWvdpFphra26QmInAz4rfBI6_cMt6kFB1dlPhW2A/exec",Gr=()=>{const e=navigator.userAgent;let t="Unknown Browser",n="Unknown OS";return e.includes("Firefox")?t="Firefox":e.includes("SamsungBrowser")?t="Samsung Browser":e.includes("Opera")||e.includes("OPR")?t="Opera":e.includes("Trident")?t="Internet Explorer":e.includes("Edge")?t="Edge":e.includes("Chrome")?t="Chrome":e.includes("Safari")&&(t="Safari"),e.includes("Windows")?n="Windows":e.includes("Mac")?n="MacOS":e.includes("Linux")?n="Linux":e.includes("Android")?n="Android":(e.includes("iPhone")||e.includes("iPad")||e.includes("iPod"))&&(n="iOS"),`${t} on ${n}`},ai=async()=>{localStorage.removeItem("last_telemetry_ping")},Zr=()=>{P(()=>{if(!(localStorage.getItem("telemetry_enabled")!=="false")||!Be)return;const t=localStorage.getItem("last_telemetry_ping"),n=Date.now(),r=1440*60*1e3;if(t&&n-parseInt(t)<r)return;(async()=>{try{let i=localStorage.getItem("installation_id");if(!i||i.length===36)try{const c=await(await fetch("/api/installation-id")).json();c.id&&(i=c.id,localStorage.setItem("installation_id",i))}catch(s){console.error("Failed to fetch hardware ID:",s)}i||(i=Yr(),localStorage.setItem("installation_id",i)),await fetch(Be,{method:"POST",mode:"no-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:i,version:et.version,userAgent:Gr()})}),localStorage.setItem("last_telemetry_ping",n.toString())}catch(i){console.error("Telemetry ping failed:",i)}})()},[])},Xr="_keyboard_1p15j_1",ea="_small_1p15j_18",ta="_medium_1p15j_25",na="_large_1p15j_32",ra="_topBar_1p15j_39",aa="_dragHandle_1p15j_48",oa="_grip_1p15j_59",ia="_topButton_1p15j_67",sa="_key_1p15j_1",ca="_closeButton_1p15j_98",la="_keys_1p15j_103",ua="_row_1p15j_110",da="_wideKey_1p15j_126",ha="_extraWideKey_1p15j_130",pa="_spaceKey_1p15j_134",ma="_spaceIcon_1p15j_142",fa="_activeKey_1p15j_150",_={keyboard:Xr,small:ea,medium:ta,large:na,topBar:ra,dragHandle:aa,grip:oa,topButton:ia,key:sa,closeButton:ca,keys:la,row:ua,wideKey:da,extraWideKey:ha,spaceKey:pa,spaceIcon:ma,activeKey:fa},tt="virtual-keyboard-state",oe=["small","medium","large"],va=["1","2","3","4","5","6","7","8","9","0"],ga=["!","@","#","$","%","^","&","*","(",")"],ya=[["q","w","e","r","t","y","u","i","o","p"],["a","s","d","f","g","h","j","k","l"],["z","x","c","v","b","n","m"]],ba=()=>{const e={position:{x:Math.max(12,window.innerWidth-690),y:Math.max(90,window.innerHeight-330)},size:"medium"};try{const t=localStorage.getItem(tt);if(!t)return e;const n=JSON.parse(t);return{position:n.position&&Number.isFinite(n.position.x)&&Number.isFinite(n.position.y)?n.position:e.position,size:n.size&&oe.includes(n.size)?n.size:e.size}}catch{return e}},Fe=(e,t)=>{const n=t?.offsetWidth??650,r=t?.offsetHeight??270;return{x:Math.min(Math.max(8,e.x),Math.max(8,window.innerWidth-n-8)),y:Math.min(Math.max(8,e.y),Math.max(8,window.innerHeight-r-8))}};function wa({activeInputRef:e,isVisible:t,onClose:n}){const[{position:r,size:o},i]=E(ba),[s,c]=E(!1),[u,p]=E(!1),d=Z(null),v=Z(null);P(()=>{localStorage.setItem(tt,JSON.stringify({position:r,size:o}))},[r,o]),P(()=>{const m=()=>{i(b=>({...b,position:Fe(b.position,d.current)}))};return window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[]);const g=()=>e.current&&document.contains(e.current)?e.current:document.activeElement instanceof HTMLInputElement?document.activeElement:null,w=m=>{const b=g();if(!b)return;const L=b.selectionStart??b.value.length,ne=b.selectionEnd??b.value.length;b.setRangeText(m,L,ne,"end"),b.dispatchEvent(new Event("input",{bubbles:!0})),b.focus()},l=()=>{const m=g();if(!m)return;const b=m.selectionStart??m.value.length,L=m.selectionEnd??m.value.length;b===L&&b===0||(m.setRangeText("",b===L?b-1:b,L,"end"),m.dispatchEvent(new Event("input",{bubbles:!0})),m.focus())},h=()=>{const m=g();if(!m){n();return}const b=m.form;b?b.requestSubmit():m.dispatchEvent(new KeyboardEvent("keydown",{key:"Enter",bubbles:!0})),n()},y=m=>{m.preventDefault()},S=H(m=>{if(!v.current)return;const b={x:m.clientX-v.current.x,y:m.clientY-v.current.y};i(L=>({...L,position:Fe(b,d.current)}))},[]),k=H(()=>{v.current=null,window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",k)},[S]),C=m=>{m.preventDefault(),v.current={x:m.clientX-r.x,y:m.clientY-r.y},window.addEventListener("mousemove",S),window.addEventListener("mouseup",k)};if(P(()=>()=>{window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",k)},[S,k]),!t)return null;const x=u?ga:va,F=()=>{i(m=>{const b=oe[(oe.indexOf(m.size)+1)%oe.length];return{...m,size:b}})};return st(a("div",{ref:d,className:`${_.keyboard} ${_[o]}`,style:{left:r.x,top:r.y},onMouseDown:y,"data-virtual-keyboard-root":!0,children:[a("div",{className:_.topBar,children:[a("div",{className:_.dragHandle,onMouseDown:C,"aria-label":"Move virtual keyboard",children:[a("span",{className:_.grip,"aria-hidden":"true"}),a("span",{children:"Virtual Keyboard"})]}),a("button",{type:"button",className:_.topButton,onClick:F,children:["Size: ",o[0].toUpperCase()+o.slice(1)]}),a("button",{type:"button",className:`${_.topButton} ${_.closeButton}`,onClick:n,children:"X"})]}),a("div",{className:_.keys,children:[a("div",{className:_.row,children:[x.map(m=>a("button",{type:"button",className:_.key,onClick:()=>w(m),children:m},m)),a("button",{type:"button",className:`${_.key} ${_.wideKey}`,onClick:l,"aria-label":"Backspace",children:"⟵"})]}),ya.map((m,b)=>a("div",{className:_.row,children:[m.map(L=>{const ne=s?L.toUpperCase():L;return a("button",{type:"button",className:_.key,onClick:()=>w(ne),children:ne},L)}),b===1&&a("button",{type:"button",className:`${_.key} ${_.wideKey}`,onClick:h,children:"Enter"})]},m.join(""))),a("div",{className:_.row,children:[a("button",{type:"button",className:`${_.key} ${_.wideKey} ${u?_.activeKey:""}`,onClick:()=>p(m=>!m),children:"Ctrl"}),a("button",{type:"button",className:`${_.key} ${_.wideKey} ${s?_.activeKey:""}`,onClick:()=>c(m=>!m),children:"Shift"}),a("button",{type:"button",className:`${_.key} ${_.spaceKey}`,onClick:()=>w(" "),"aria-label":"Space",children:a("span",{className:_.spaceIcon})}),a("button",{type:"button",className:_.key,onClick:()=>w("."),children:"."}),a("button",{type:"button",className:_.key,onClick:()=>w("-"),children:"-"})]})]})]}),document.body)}const nt=he(void 0),_a=()=>{const e=pe(nt);if(!e)throw new Error("useAnimePaheCookie must be used within an AnimePaheCookieProvider");return e},xa="_overlay_spsxk_1",Sa="_content_spsxk_18",Ca="_title_spsxk_30",ge={overlay:xa,content:Sa,title:Ca},Ea=({isOpen:e,onClose:t,children:n,title:r})=>e?R.createPortal(a("div",{className:ge.overlay,onClick:t,children:a("div",{className:ge.content,onClick:o=>o.stopPropagation(),children:[r&&a("h3",{className:ge.title,children:r}),n]})}),document.body):null,ka="_container_ujsuh_1",La="_field_ujsuh_9",Na="_textarea_ujsuh_20",Pa="_input_ujsuh_30",za="_button_ujsuh_38",Ma="_secondaryButton_ujsuh_58",Ia="_actions_ujsuh_67",O={container:ka,field:La,textarea:Na,input:Pa,button:za,secondaryButton:Ma,actions:Ia},Ba=({isOpen:e,onClose:t,onSuccess:n})=>{const[r,o]=E(1),[i,s]=E(navigator.userAgent),[c,u]=E(""),[p,d]=E(!1);P(()=>{e&&(o(1),s(navigator.userAgent),u(""))},[e]);const v=async()=>{localStorage.setItem("animepahe_ua",i),window.open("https://animepahe.pw","_blank"),o(2)},g=async()=>{if(!c.trim()){B.error("Please enter the cf_clearance cookie");return}d(!0);try{localStorage.setItem("animepahe_cookie",c.trim()),B.success("Cookie updated successfully!"),n?.(),t()}catch{B.error("Failed to save cookie")}finally{d(!1)}};return a(Ea,{isOpen:e,onClose:t,title:"AnimePahe Verification Required",children:a("div",{className:O.container,children:r===1?a(se,{children:[a("p",{children:"AnimePahe requires a manual verification to bypass Cloudflare/DDoS-Guard protection."}),a("div",{className:O.field,children:[a("label",{children:"Your User-Agent (will be used for requests):"}),a("textarea",{value:i,onChange:w=>s(w.target.value),rows:3,className:O.textarea})]}),a("div",{className:O.actions,children:[a("button",{className:O.secondaryButton,onClick:t,children:"Cancel"}),a("button",{className:O.button,onClick:v,children:"Start Verification (Opens AnimePahe)"})]})]}):a(se,{children:[a("p",{children:["1. Solve the challenge on the ",a("strong",{children:"AnimePahe tab"}),".",a("br",{}),"2. While ",a("strong",{children:"still on the AnimePahe tab"}),", open DevTools (F12) → Application → Cookies → https://animepahe.pw",a("br",{}),"3. Find ",a("strong",{children:"cf_clearance"}),", double-click its ",a("strong",{children:"Value"})," to select it, and copy it.",a("br",{}),"4. Paste it below. Ensure you copy ",a("strong",{children:"only the key"})," (remove any"," ",a("code",{children:"cf_clearance="})," prefix or quotes if they were included)."]}),a("div",{className:O.field,children:[a("label",{children:"cf_clearance cookie value:"}),a("input",{type:"text",value:c,onChange:w=>u(w.target.value),placeholder:"e.g. xxxxxxxx.xxxxxxxx.xxxxxxx-xxxxxxx",className:O.input})]}),a("div",{className:O.actions,children:[a("button",{className:O.secondaryButton,onClick:t,children:"Cancel"}),a("button",{className:O.secondaryButton,onClick:()=>o(1),children:"Back"}),a("button",{className:O.button,onClick:g,disabled:p,children:p?"Saving...":"Submit"})]})]})})})};var ie={exports:{}};var Fa=ie.exports,Te;function Ta(){return Te||(Te=1,(function(e,t){(function(n,r){e.exports=r()})(Fa,function(){var n={};n.version="0.2.0";var r=n.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>'};n.configure=function(l){var h,y;for(h in l)y=l[h],y!==void 0&&l.hasOwnProperty(h)&&(r[h]=y);return this},n.status=null,n.set=function(l){var h=n.isStarted();l=o(l,r.minimum,1),n.status=l===1?null:l;var y=n.render(!h),S=y.querySelector(r.barSelector),k=r.speed,C=r.easing;return y.offsetWidth,c(function(x){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),u(S,s(l,k,C)),l===1?(u(y,{transition:"none",opacity:1}),y.offsetWidth,setTimeout(function(){u(y,{transition:"all "+k+"ms linear",opacity:0}),setTimeout(function(){n.remove(),x()},k)},k)):setTimeout(x,k)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var l=function(){setTimeout(function(){n.status&&(n.trickle(),l())},r.trickleSpeed)};return r.trickle&&l(),this},n.done=function(l){return!l&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(l){var h=n.status;return h?(typeof l!="number"&&(l=(1-h)*o(Math.random()*h,.1,.95)),h=o(h+l,0,.994),n.set(h)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},(function(){var l=0,h=0;n.promise=function(y){return!y||y.state()==="resolved"?this:(h===0&&n.start(),l++,h++,y.always(function(){h--,h===0?(l=0,n.done()):n.set((l-h)/l)}),this)}})(),n.render=function(l){if(n.isRendered())return document.getElementById("nprogress");d(document.documentElement,"nprogress-busy");var h=document.createElement("div");h.id="nprogress",h.innerHTML=r.template;var y=h.querySelector(r.barSelector),S=l?"-100":i(n.status||0),k=document.querySelector(r.parent),C;return u(y,{transition:"all 0 linear",transform:"translate3d("+S+"%,0,0)"}),r.showSpinner||(C=h.querySelector(r.spinnerSelector),C&&w(C)),k!=document.body&&d(k,"nprogress-custom-parent"),k.appendChild(h),h},n.remove=function(){v(document.documentElement,"nprogress-busy"),v(document.querySelector(r.parent),"nprogress-custom-parent");var l=document.getElementById("nprogress");l&&w(l)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var l=document.body.style,h="WebkitTransform"in l?"Webkit":"MozTransform"in l?"Moz":"msTransform"in l?"ms":"OTransform"in l?"O":"";return h+"Perspective"in l?"translate3d":h+"Transform"in l?"translate":"margin"};function o(l,h,y){return l<h?h:l>y?y:l}function i(l){return(-1+l)*100}function s(l,h,y){var S;return r.positionUsing==="translate3d"?S={transform:"translate3d("+i(l)+"%,0,0)"}:r.positionUsing==="translate"?S={transform:"translate("+i(l)+"%,0)"}:S={"margin-left":i(l)+"%"},S.transition="all "+h+"ms "+y,S}var c=(function(){var l=[];function h(){var y=l.shift();y&&y(h)}return function(y){l.push(y),l.length==1&&h()}})(),u=(function(){var l=["Webkit","O","Moz","ms"],h={};function y(x){return x.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(F,m){return m.toUpperCase()})}function S(x){var F=document.body.style;if(x in F)return x;for(var m=l.length,b=x.charAt(0).toUpperCase()+x.slice(1),L;m--;)if(L=l[m]+b,L in F)return L;return x}function k(x){return x=y(x),h[x]||(h[x]=S(x))}function C(x,F,m){F=k(F),x.style[F]=m}return function(x,F){var m=arguments,b,L;if(m.length==2)for(b in F)L=F[b],L!==void 0&&F.hasOwnProperty(b)&&C(x,b,L);else C(x,m[1],m[2])}})();function p(l,h){var y=typeof l=="string"?l:g(l);return y.indexOf(" "+h+" ")>=0}function d(l,h){var y=g(l),S=y+h;p(y,h)||(l.className=S.substring(1))}function v(l,h){var y=g(l),S;p(l,h)&&(S=y.replace(" "+h+" "," "),l.className=S.substring(1,S.length-1))}function g(l){return(" "+(l.className||"")+" ").replace(/\s+/gi," ")}function w(l){l&&l.parentNode&&l.parentNode.removeChild(l)}return n})})(ie)),ie.exports}var Aa=Ta();const _e=ct(Aa);_e.configure({showSpinner:!1});const Oa=()=>(P(()=>(_e.start(),()=>{_e.done()}),[]),null);class $a extends lt{state={hasError:!1};static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){console.error("Uncaught error:",t,n)}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(It,{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(je,{}),"Go back Home"]})]}):this.props.children}}function qa(){const e=ht();P(()=>{const t=e.pathname;if(t.startsWith("/watch/")||t.startsWith("/player/"))return;let n="home";t.startsWith("/search")?n="search":t.startsWith("/watchlist")?n="watchlist":t.startsWith("/anime/")?n="anime":t.startsWith("/insights")?n="insights":t.startsWith("/settings")?n="settings":t.startsWith("/mal")&&(n="mal"),fetch("/api/discord/status",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:n})}).catch(()=>{})},[e.pathname])}const Ha=Y(()=>J(()=>import("./Home-O1FbN8t_.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]))),ja=Y(()=>J(()=>import("./Watchlist-CXw0vbNx.js"),__vite__mapDeps([13,1,4,5,6,2,3,7,8,9,14,15,16]))),Va=Y(()=>J(()=>import("./Settings-C5adinOe.js"),__vite__mapDeps([17,1,2,3,18,19,20]))),Ae=Y(()=>J(()=>import("./Player-CSyGax33.js"),__vite__mapDeps([21,1,2,3,6,10,11,22,23,24]))),Ra=Y(()=>J(()=>import("./Search-DJxo3BYH.js"),__vite__mapDeps([25,1,4,5,6,2,3,7,14,15,18,19,26]))),Da=Y(()=>J(()=>import("./MAL-BGM33N5c.js"),__vite__mapDeps([27,1,2,3,28]))),Ka=Y(()=>J(()=>import("./Insights-opcB-aTo.js"),__vite__mapDeps([29,1,30]))),Ua=Y(()=>J(()=>import("./AnimeInfoPage-xGVarrXG.js"),__vite__mapDeps([31,1]))),Oe=()=>{const{id:e,episodeNumber:t}=pt();return a(mt,{to:t?`/watch/${e}/${t}`:`/watch/${e}`,replace:!0})};function Wa(){const{isOpen:e,openModal:t,closeModal:n,onSuccess:r}=_a(),{isOpen:o,setIsOpen:i}=Ee(),s=nr();return Zr(),qa(),P(()=>{const c=()=>t();return window.addEventListener("ANIMEPAHE_AUTH_REQUIRED",c),()=>window.removeEventListener("ANIMEPAHE_AUTH_REQUIRED",c)},[t]),P(()=>{const c=u=>{o&&u.key==="Escape"&&i(!1)};return o?document.body.classList.add("sidebar-open"):document.body.classList.remove("sidebar-open"),window.addEventListener("keydown",c),()=>{window.removeEventListener("keydown",c),document.body.classList.remove("sidebar-open")}},[o,i]),a("div",{className:"app-container",children:[a(Ba,{isOpen:e,onClose:n,onSuccess:r}),a(In,{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(vr,{}),a(Tr,{}),a("main",{children:a($a,{children:a(ut,{fallback:a(Oa,{}),children:a(dt,{children:[a(q,{path:"/",element:a(Ha,{})}),a(q,{path:"/watchlist/:filter?",element:a(ja,{})}),a(q,{path:"/search",element:a(Ra,{})}),a(q,{path:"/settings",element:a(Va,{})}),a(q,{path:"/mal",element:a(Da,{})}),a(q,{path:"/insights",element:a(Ka,{})}),a(q,{path:"/anime/:id",element:a(Ua,{})}),a(q,{path:"/watch/:id",element:a(Ae,{})}),a(q,{path:"/watch/:id/:episodeNumber",element:a(Ae,{})}),a(q,{path:"/player/:id",element:a(Oe,{})}),a(q,{path:"/player/:id/:episodeNumber",element:a(Oe,{})})]})})})}),a(jr,{}),a(Kr,{}),a(wa,{activeInputRef:s.activeInputRef,isVisible:s.isVisible,onClose:s.hide})]})}const Qa=({children:e})=>{const[t,n]=E(!1),r=H(()=>{n(i=>!i)},[]),o=xe(()=>({isOpen:t,setIsOpen:n,toggleSidebar:r}),[t,r]);return a(Ze.Provider,{value:o,children:e})},Ya=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},Ja=async({key:e,value:t})=>{const n=await fetch("/api/settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:e,value:t})});if(!n.ok)throw new Error("Failed to update settings");return n.json()},Ga=e=>$({queryKey:["settings",e],queryFn:()=>Ya(e)}),Za=()=>{const e=W();return Q({mutationFn:Ja,onSuccess:()=>{B.success("Setting updated!"),e.invalidateQueries({queryKey:["settings"]})},onError:t=>{B.error(`Failed to update setting: ${t.message}`)}})},rt=he(void 0),Xa=({children:e})=>{const{data:t,isLoading:n}=Ga("lowEndMode"),r=Za(),[o,i]=E(!1);P(()=>{t!==void 0&&i(t==="true"||t===!0)},[t]),P(()=>{o?document.body.classList.add("low-end"):document.body.classList.remove("low-end")},[o]);const s=H(u=>{i(u),r.mutate({key:"lowEndMode",value:String(u)})},[r]),c=xe(()=>({lowEndMode:o,setLowEndMode:s,loading:n}),[o,s,n]);return a(rt.Provider,{value:c,children:e})},oi=()=>{const e=pe(rt);if(e===void 0)throw new Error("useLowEndMode must be used within a LowEndModeProvider");return e},eo=({children:e})=>{const[t,n]=E(!1),[r,o]=E(void 0),i=c=>{o(()=>c),n(!0)},s=()=>{n(!1),o(void 0)};return a(nt.Provider,{value:{isOpen:t,openModal:i,closeModal:s,onSuccess:r},children:e})},to=new ft({defaultOptions:{queries:{staleTime:1e3*60*5,refetchOnWindowFocus:!1,retry:1}}});vt.createRoot(document.getElementById("root")).render(a(R.StrictMode,{children:a(gt,{children:a(yt,{client:to,children:a(eo,{children:a(Qa,{children:a(Vt,{children:a(Xa,{children:a(Wa,{})})})})})})})}));export{qo as $,So as A,uo as B,ko as C,Eo as D,N as E,Bo as F,Me as G,Bt as H,Ft as I,vo as J,No as K,ze as L,ai as M,f as N,mo as O,po as P,lo as Q,Po as R,Lo as S,oo as T,ao as U,Xe as V,io as W,ro as X,Oo as Y,Ho as Z,J as _,Io as a,$o as a0,Pt as a1,T as a2,Bn as a3,Ba as a4,Ao as a5,_o as a6,At as a7,zt as a8,go as a9,qt as aa,Uo as ab,tr as ac,jo as ad,zo as ae,fo as af,Ea as ag,bo as ah,It as ai,Ee as aj,Co as ak,co as al,ri as am,so as an,Tt as ao,To as ap,xo as aq,yo as ar,Oa as as,Mo as b,Fo as c,Ro as d,Rt as e,jt as f,ho as g,Ko as h,ei as i,Wo as j,Qo as k,Yo as l,Jo as m,ti as n,Do as o,Zo as p,Vo as q,wo as r,ni as s,Xo as t,oi as u,Go as v,Ga as w,Za as x,He as y,B as z};
@@ -0,0 +1 @@
1
+ import{b as m,a as y,c as f,q as d}from"./vendor-Bc4EraM_.js";import{a2 as o,z as l}from"./index-Ciivz6fh.js";function W(t){const n=m(),{data:s,isLoading:h,error:c}=y({queryKey:["show-data-info",t],queryFn:async()=>{if(!t)throw new Error("No showId");const[i,a,e]=await Promise.all([o(`/api/show-meta/${t}`),o(`/api/watchlist/check/${t}`).catch(()=>({inWatchlist:!1})),o(`/api/episodes?showId=${t}&mode=sub`).catch(()=>null)]);let r=i?.description;return e?.description&&(r=e.description),{showMeta:{...i,description:r},inWatchlist:a.inWatchlist??!1}},enabled:!!t}),{mutateAsync:u}=f({mutationFn:async({wasIn:i,showMeta:a})=>{const e=i?"/api/watchlist/remove":"/api/watchlist/add",r={id:t,name:a.name||a.names?.romaji,thumbnail:a.thumbnail,nativeName:a.names?.native,englishName:a.names?.english,type:a.type};if(!(await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})).ok)throw new Error("Watchlist update failed");return!i},onMutate:async({wasIn:i})=>{await n.cancelQueries({queryKey:["show-data-info",t]});const a=n.getQueryData(["show-data-info",t]);return n.setQueryData(["show-data-info",t],e=>e&&{...e,inWatchlist:!i}),{previousData:a}},onError:(i,a,e)=>{e?.previousData&&n.setQueryData(["show-data-info",t],e.previousData),l.error("Failed to update watchlist")},onSuccess:i=>{l.success(i?"Added to watchlist":"Removed from watchlist"),n.invalidateQueries({queryKey:["watchlist"]})}}),p=d(async()=>{!t||!s?.showMeta||await u({wasIn:!!s.inWatchlist,showMeta:s.showMeta})},[t,s,u]);return{showMeta:s?.showMeta,inWatchlist:!!s?.inWatchlist,loadingMeta:h,error:c?c.message:null,toggleWatchlist:p}}export{W as u};
@@ -0,0 +1 @@
1
+ import{d as o,y as d}from"./vendor-Bc4EraM_.js";async function c(s){const t=await fetch(`/api/queue/suggested/${s}`);if(!t.ok)throw new Error("Failed to resolve suggested episode");return t.json()}const u=(s=768)=>{const[t,r]=o(window.innerWidth<s);return d(()=>{const e=window.matchMedia(`(max-width: ${s-1}px)`);r(e.matches);const n=i=>r(i.matches);return e.addEventListener?(e.addEventListener("change",n),()=>e.removeEventListener("change",n)):(e.addListener(n),()=>e.removeListener(n))},[s]),t};export{c as g,u};