@serifpersia/dango 4.0.0 → 4.0.1

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 (62) hide show
  1. package/README.md +1 -1
  2. package/client/dist/assets/AnimeCard-DpZ4X9XD.js +1 -0
  3. package/client/dist/assets/{AnimeInfo-SoCwFMy3.js → AnimeInfo-CnBDIp7R.js} +1 -1
  4. package/client/dist/assets/{AnimeInfoPage-DLf7SyVa.js → AnimeInfoPage-CsDJS_8b.js} +2 -2
  5. package/client/dist/assets/{Asmr-Dsuu6xgC.js → Asmr-BdCT1sg3.js} +1 -1
  6. package/client/dist/assets/{AsmrPopup-CQC440HI.js → AsmrPopup-CNqixGCf.js} +1 -1
  7. package/client/dist/assets/{AsmrResetProgressModal-CEnhUV7K.js → AsmrResetProgressModal-BOXFH3f2.js} +1 -1
  8. package/client/dist/assets/Home-Bmc4hGfd.css +1 -0
  9. package/client/dist/assets/Home-D-SVz5cA.js +1 -0
  10. package/client/dist/assets/{Insights-DZx-ZzP2.js → Insights-DybhDzpO.js} +1 -1
  11. package/client/dist/assets/{LibraryListPage-DnwV1dP1.js → LibraryListPage-CIILJZTu.js} +1 -1
  12. package/client/dist/assets/{ListeningList-DR4z9phs.js → ListeningList-oMw31vdT.js} +1 -1
  13. package/client/dist/assets/{Manga-Cd_q6M_o.js → Manga-CFSwxy0V.js} +1 -1
  14. package/client/dist/assets/{MangaInfoPage-DVGzzTOa.js → MangaInfoPage-DhbrQs6K.js} +1 -1
  15. package/client/dist/assets/{MangaReadPage-Dh4rEwtO.js → MangaReadPage-Bk_RFHao.js} +1 -1
  16. package/client/dist/assets/{MangaResetProgressModal-DVJbgVwK.js → MangaResetProgressModal-CVPwJSlW.js} +1 -1
  17. package/client/dist/assets/{Mature-DCBXh2Dl.js → Mature-BqODUa8k.js} +1 -1
  18. package/client/dist/assets/{MatureConsentModal-D34i8744.js → MatureConsentModal-BoSwjOI5.js} +1 -1
  19. package/client/dist/assets/MediaCard-BbqpD03k.js +1 -0
  20. package/client/dist/assets/MediaCard-BfQaS9n5.css +1 -0
  21. package/client/dist/assets/{OptionListMenu-BjsiUrW1.js → OptionListMenu-COsyoLhE.js} +1 -1
  22. package/client/dist/assets/{Player-Cy24aKqh.js → Player-Ctxb19Xq.js} +3 -3
  23. package/client/dist/assets/{PlayerProvider-BbsS7ai1.js → PlayerProvider-BpHzod7D.js} +1 -1
  24. package/client/dist/assets/{PlayerSettings-cJWnEwcK.js → PlayerSettings-BN8IC5it.js} +1 -1
  25. package/client/dist/assets/{QueueOptionsButton-JAUAWTzf.js → QueueOptionsButton-BubxC3vl.js} +1 -1
  26. package/client/dist/assets/{QueueRail-Ck96ehEp.js → QueueRail-CUsYeL0A.js} +1 -1
  27. package/client/dist/assets/{ReadingList-EboHnXxk.js → ReadingList-CXQy4sxe.js} +1 -1
  28. package/client/dist/assets/{ResetProgressModal-Daj-RqHv.js → ResetProgressModal-tI6IHvmP.js} +1 -1
  29. package/client/dist/assets/{Search-83zyS4iX.js → Search-B9v2KFw9.js} +1 -1
  30. package/client/dist/assets/Settings-C0Zb4_G5.js +21 -0
  31. package/client/dist/assets/{SkeletonGrid-D2FNyELs.js → SkeletonGrid-U0v5ZOMU.js} +1 -1
  32. package/client/dist/assets/{Trackers-Da4Q2-ta.js → Trackers-BApb11Vz.js} +1 -1
  33. package/client/dist/assets/{Tv-lRDoqQLs.js → Tv-B23iWxt-.js} +1 -1
  34. package/client/dist/assets/{TvInfo-9UDA16_u.js → TvInfo-DEWBzt0W.js} +1 -1
  35. package/client/dist/assets/{TvPopup-vBayJw7b.js → TvPopup-B_BBkSA6.js} +1 -1
  36. package/client/dist/assets/{TvSearch-Vg-ncyei.js → TvSearch-B6DALvV9.js} +1 -1
  37. package/client/dist/assets/{TvWatchlist-CEt3I21U.js → TvWatchlist-DRms0v9m.js} +1 -1
  38. package/client/dist/assets/{VirtualKeyboard-CADCu5f_.js → VirtualKeyboard-BLXSHA6_.js} +1 -1
  39. package/client/dist/assets/{WatchAlong-Cc2HhkiG.js → WatchAlong-DqiBYW8W.js} +1 -1
  40. package/client/dist/assets/{WatchAlongPanel-D3FLPJz0.js → WatchAlongPanel-CDbbTIqv.js} +1 -1
  41. package/client/dist/assets/{Watchlist-CUFpDT9-.js → Watchlist-B8NP7imi.js} +1 -1
  42. package/client/dist/assets/{index-B9fL2VIP.js → index-BHWOY-pi.js} +4 -4
  43. package/client/dist/assets/index-YxVpiwVZ.css +1 -0
  44. package/client/dist/assets/{libraryInvalidation-Cnx2xRQb.js → libraryInvalidation-D8h84CFM.js} +1 -1
  45. package/client/dist/assets/{playbackCompletion-CKlwK8SG.js → playbackCompletion-Cq6Pbug7.js} +1 -1
  46. package/client/dist/assets/{useAnimeInfoData-hTms4q2e.js → useAnimeInfoData-DhoidxrL.js} +1 -1
  47. package/client/dist/assets/{useMangaLibrary-CUNeIgcg.js → useMangaLibrary-Bogr8MQ7.js} +1 -1
  48. package/client/dist/assets/{useMangaPopup-s5QTNQMd.js → useMangaPopup-BV_Jk_2y.js} +1 -1
  49. package/client/dist/assets/{useProviders-twwSG5Ji.js → useProviders-CbFHcVVq.js} +1 -1
  50. package/client/dist/assets/{useTv-CmriRQC3.js → useTv-DBYyKAM6.js} +1 -1
  51. package/client/dist/assets/{useTvLibrary-abNJVIr4.js → useTvLibrary-D2tKj7cP.js} +1 -1
  52. package/client/dist/assets/{useWatchAlongPlayer-CtnbRVOZ.js → useWatchAlongPlayer-BmHRwl6J.js} +1 -1
  53. package/client/dist/index.html +2 -2
  54. package/package.json +2 -2
  55. package/server/package.json +1 -1
  56. package/client/dist/assets/AnimeCard-SI0B6et0.js +0 -1
  57. package/client/dist/assets/Home-D_Hd4SUo.css +0 -1
  58. package/client/dist/assets/Home-ioBgiYqI.js +0 -1
  59. package/client/dist/assets/MediaCard-CJ-18Ma8.css +0 -1
  60. package/client/dist/assets/MediaCard-JRLogrma.js +0 -1
  61. package/client/dist/assets/Settings-Bv8Y_ao5.js +0 -21
  62. package/client/dist/assets/index-B8IsmFl4.css +0 -1
@@ -1 +0,0 @@
1
- import{d as $,A as z,h as F,T as Ee,u as e,g as x,S as H,$ as Re,L as Y,q as C,N as Ie,a as ze}from"./vendor-core-DfaOB3Rn.js";import{I as k}from"./vendor-icons-C1Pj_eSX.js";import{a8 as $e,t as Se,d as Le,u as De,e as xe,f as Oe}from"./index-B9fL2VIP.js";import{a as Ae,b as je,f as Fe,s as Ue}from"./vendor-ui-3qrARCPr.js";import{u as re}from"./useIsMobile-Dvx1uJ82.js";import{M as We}from"./MatureConsentModal-D34i8744.js";const Ve="_pagination_zelsc_1",Ge="_pageBtn_zelsc_7",Xe="_pageInfo_zelsc_38",Ye="_pagePicker_zelsc_48",He="_dropdown_zelsc_52",Ke="_flipDown_zelsc_68",qe="_jumpRow_zelsc_73",Je="_jumpInput_zelsc_79",Qe="_jumpGo_zelsc_90",Ze="_optionList_zelsc_105",et="_optionBtn_zelsc_113",tt="_current_zelsc_132",w={pagination:Ve,pageBtn:Ge,pageInfo:Xe,pagePicker:Ye,dropdown:He,flipDown:Ke,jumpRow:qe,jumpInput:Je,jumpGo:Qe,optionList:Ze,optionBtn:et,current:tt},vn=({page:t,totalPages:p,canGoNext:l,onChange:i,isLoading:h=!1,variant:f="compact"})=>{const[s,b]=$(!1),[B,_]=$(""),[y,v]=$(0),[N,E]=$(!1),M=z(null),d=z(null),g=z(null);F(()=>{if(!s)return;const r=m=>{M.current&&!M.current.contains(m.target)&&b(!1)},n=m=>{m.key==="Escape"&&b(!1)};return document.addEventListener("pointerdown",r),document.addEventListener("keydown",n),()=>{document.removeEventListener("pointerdown",r),document.removeEventListener("keydown",n)}},[s]),F(()=>{if(!s)return;v(0),E(!1);const r=requestAnimationFrame(()=>{const n=g.current?.getBoundingClientRect(),m=d.current?.getBoundingClientRect();if(!n)return;let P=0;n.right>window.innerWidth-8?P=window.innerWidth-8-n.right:n.left<8&&(P=8-n.left),v(Math.round(P)),m&&m.top<n.height+24&&E(!0)});return()=>cancelAnimationFrame(r)},[s]);const a=p,S=Ee(()=>{if(a!==void 0){if(a<=100)return Array.from({length:a},(m,P)=>P+1);const n=new Set([1,a]);for(let m=t-10;m<=t+10;m++)m>=1&&m<=a&&n.add(m);return[...n].sort((m,P)=>m-P)}const r=l?t+1:t;return Array.from({length:r},(n,m)=>m+1)},[a,t,l]),T=r=>{const n=a!==void 0?Math.min(Math.max(1,r),a):Math.max(1,r);b(!1),_(""),n!==t&&i(n)},L=()=>{const r=parseInt(B,10);Number.isNaN(r)||T(r)},D=h||(a!==void 0?t>=a:!l);return e("div",{className:w.pagination,ref:M,children:[e("button",{className:w.pageBtn,onClick:()=>i(t-1),disabled:t<=1||h,"aria-label":"Previous page",children:[e(k,{name:"chevron-left",size:14}),f==="labeled"&&e("span",{children:"Previous"})]}),e("div",{className:w.pagePicker,ref:d,children:[e("button",{className:w.pageBtn,onClick:()=>{_(""),b(r=>!r)},disabled:h,"aria-label":"Jump to page","aria-expanded":s,children:e("span",{className:w.pageInfo,children:["Page ",e("strong",{children:t}),a!==void 0&&` of ${a}`]})}),s&&e("div",{ref:g,className:`${w.dropdown} ${N?w.flipDown:""}`,style:y!==0?{marginLeft:y}:void 0,children:[e("div",{className:w.jumpRow,children:[e("input",{className:w.jumpInput,type:"number",inputMode:"numeric",min:1,max:a,value:B,placeholder:"Page #",onChange:r=>_(r.currentTarget.value),onKeyDown:r=>{r.key==="Enter"&&L()}}),e("button",{className:w.jumpGo,onClick:L,children:"Go"})]}),e("div",{className:w.optionList,children:S.map(r=>e("button",{className:`${w.optionBtn} ${r===t?w.current:""}`,onClick:()=>T(r),disabled:r===t,children:r},r))})]})]}),e("button",{className:w.pageBtn,onClick:()=>i(t+1),disabled:D,"aria-label":"Next page",children:[f==="labeled"&&e("span",{children:"Next"}),e(k,{name:"chevron-right",size:14})]})]})},nt="_popupPortal_1d6yy_1",ot="_popupContent_1d6yy_6",st="_popupBackdrop_1d6yy_31",rt="_mobile_1d6yy_38",at="_header_1d6yy_62",ct="_title_1d6yy_67",lt="_altTitle_1d6yy_78",it="_cover_1d6yy_87",dt="_body_1d6yy_97",ut="_metaRow_1d6yy_104",pt="_metaItem_1d6yy_111",_t="_scoreIcon_1d6yy_117",mt="_synopsis_1d6yy_121",ft="_genres_1d6yy_143",ht="_genre_1d6yy_143",gt="_footer_1d6yy_158",bt="_primaryAction_1d6yy_167",yt="_watchBtn_1d6yy_171",vt="_secondaryActions_1d6yy_194",Bt="_watchlistBtn_1d6yy_199",wt="_detailsBtn_1d6yy_200",kt="_active_1d6yy_226",Nt="_loading_1d6yy_237",Ct="_spinner_1d6yy_247",c={popupPortal:nt,popupContent:ot,popupBackdrop:st,mobile:rt,header:at,title:ct,altTitle:lt,cover:it,body:dt,metaRow:ut,metaItem:pt,scoreIcon:_t,synopsis:mt,genres:ft,genre:ht,footer:gt,primaryAction:bt,watchBtn:yt,secondaryActions:vt,watchlistBtn:Bt,detailsBtn:wt,active:kt,loading:Nt,spinner:Ct},Pt=({anchorRect:t,onMouseEnter:p,onMouseLeave:l,onRequestClose:i,children:h})=>{const f=re(),s=x.useMemo(()=>({getBoundingClientRect:()=>t}),[t]),{refs:b,floatingStyles:B}=Ae({placement:"right-start",middleware:[Fe({fallbackAxisSideDirection:"start"}),Ue({padding:20})],whileElementsMounted:je});x.useEffect(()=>{b.setPositionReference(s)},[b,s]),x.useEffect(()=>{if(!f)return;const y=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=y}},[f]);const _=e(H,{children:[f&&e("div",{className:c.popupBackdrop,onClick:()=>i?.()}),e("div",{ref:f?void 0:b.setFloating,className:`${c.popupPortal} ${f?c.mobile:""}`,style:f?void 0:B,onMouseEnter:p,onMouseLeave:l,children:e("div",{className:c.popupContent,children:h})})]});return Re(_,document.body)},Bn=({anchorRect:t,title:p,subtitle:l,cover:i,loading:h,error:f,meta:s=[],genres:b=[],synopsis:B,primaryAction:_,secondaryAction:y,bookmarked:v,bookmarkLabel:N="Watchlist",onToggleBookmark:E,extraActions:M,onMouseEnter:d,onMouseLeave:g,onRequestClose:a})=>{const S=z(!1),T=()=>{S.current=!0,d()},L=()=>{S.current=!1,g()},D=n=>{!n&&!S.current&&g()},r=!!_||!!y||!!M;return e(Pt,{anchorRect:t,onMouseEnter:T,onMouseLeave:L,onRequestClose:a,children:h?e("div",{className:c.loading,children:[e("div",{className:c.spinner}),e("span",{children:"Fetching details..."})]}):f?e("div",{className:c.loading,children:f}):e(H,{children:[p&&e("div",{className:c.header,children:[i&&e($e,{src:i,alt:p,loading:"lazy",decoding:"async",className:c.cover}),e("div",{className:c.title,children:p}),l&&e("div",{className:c.altTitle,children:l})]}),e("div",{className:c.body,children:[s.length>0&&e("div",{className:c.metaRow,children:s.map((n,m)=>e("div",{className:c.metaItem,children:[n.icon&&e(k,{name:n.icon,className:n.accent?c.scoreIcon:void 0,size:14}),e("span",{children:n.label})]},`${n.label}-${m}`))}),b.length>0&&e("div",{className:c.genres,children:b.map(n=>e("span",{className:c.genre,children:n},n))}),B&&e("div",{className:c.synopsis,children:B})]}),r&&e("div",{className:c.footer,children:[_&&e("div",{className:c.primaryAction,children:_.disabled?e("span",{className:c.watchBtn,"aria-disabled":"true",style:{opacity:.5,pointerEvents:"none"},children:[e(k,{name:_.icon??"play",size:14}),_.label]}):e(Y,{to:_.to,className:c.watchBtn,onClick:a,children:[e(k,{name:_.icon??"play",size:14}),_.label]})}),e("div",{className:c.secondaryActions,children:[e("button",{className:`${c.watchlistBtn} ${v?c.active:""}`,onClick:n=>{n.preventDefault(),n.stopPropagation(),E()},children:[v?e(k,{name:"check",size:12}):e(k,{name:"plus",size:12}),e("span",{children:v?"Remove":N})]}),M?.(D),y&&e(Y,{to:y.to,className:c.detailsBtn,onClick:a,children:[y.icon&&e(k,{name:y.icon,size:12}),e("span",{children:y.label})]})]})]})]})})},Mt=t=>!t||t.trim()===""?!0:t.includes("placeholder");function Tt(t,p){const[l,i]=$(p);return F(()=>{i(p)},[p]),F(()=>{if(!Mt(p)||!t)return;let h=!1;return Se.data.showMeta.query({id:t}).then(f=>{const s=f?.thumbnail;!h&&s&&s.trim()!==""&&!s.includes("placeholder")&&i(s)}).catch(()=>{}),()=>{h=!0}},[t,p]),{thumbnail:l}}const Et="_cardWrapper_erb2k_1",Rt="_card_erb2k_1",It="_cardButton_erb2k_36",zt="_hoverOverlay_erb2k_63",$t="_matureOverlay_erb2k_98",St="_posterContainer_erb2k_108",Lt="_horizontal_erb2k_117",Dt="_posterImg_erb2k_121",xt="_blurred_erb2k_133",Ot="_flat_erb2k_156",At="_loaded_erb2k_160",jt="_progressSection_erb2k_169",Ft="_titleSection_erb2k_176",Ut="_title_erb2k_176",Wt="_titleText_erb2k_195",Vt="_badge_erb2k_207",Gt="_typeBadge_erb2k_218 _badge_erb2k_207",Xt="_epBadge_erb2k_227 _badge_erb2k_207",Yt="_airTime_erb2k_236",Ht="_adultBadge_erb2k_243 _badge_erb2k_207",Kt="_gated_erb2k_256",qt="_notAiredBadge_erb2k_262 _badge_erb2k_207",Jt="_metaRow_erb2k_277",Qt="_metaItem_erb2k_288",Zt="_progressContainer_erb2k_305",en="_progressBar_erb2k_313",tn="_timestamp_erb2k_321",nn="_removeBtn_erb2k_326",on="_infoBtn_erb2k_327",sn="_mobileBadges_erb2k_378",rn="_mobileBadgeBase_erb2k_385",an="_mobileType_erb2k_393 _mobileBadgeBase_erb2k_385",cn="_mobileEp_erb2k_400 _mobileBadgeBase_erb2k_385",ln="_lowEnd_erb2k_470",o={cardWrapper:Et,card:Rt,cardButton:It,hoverOverlay:zt,matureOverlay:$t,posterContainer:St,horizontal:Lt,posterImg:Dt,blurred:xt,flat:Ot,loaded:At,progressSection:jt,titleSection:Ft,title:Ut,titleText:Wt,badge:Vt,typeBadge:Gt,epBadge:Xt,airTime:Yt,adultBadge:Ht,gated:Kt,notAiredBadge:qt,metaRow:Jt,metaItem:Qt,progressContainer:Zt,progressBar:en,timestamp:tn,removeBtn:nn,infoBtn:on,mobileBadges:sn,mobileBadgeBase:rn,mobileType:an,mobileEp:cn,lowEnd:ln},dn=500,se=20,un=300;function pn(t){const p=z(null),l=z(null),i=z(!1),h=z({x:0,y:0}),f=z(null),s=C(()=>{l.current&&(clearTimeout(l.current),l.current=null)},[]),b=C(()=>{p.current&&(clearTimeout(p.current),p.current=null)},[]),B=C(d=>{p.current&&clearTimeout(p.current),p.current=setTimeout(d,un)},[]),_=C((d,g=!1)=>{i.current=g,t(d,g)},[t]),y=C((d,g)=>{if(g||d.pointerType==="mouse")return;f.current=d.pointerType,i.current=!1,h.current={x:d.clientX,y:d.clientY};const a=d.currentTarget.getBoundingClientRect();s(),l.current=setTimeout(()=>{l.current=null,_(a,!0)},dn)},[s,_]),v=C(d=>{if(!l.current)return;const g=Math.abs(d.clientX-h.current.x),a=Math.abs(d.clientY-h.current.y);(g>se||a>se)&&s()},[s]),N=C(()=>{s(),f.current=null},[s]),E=C((d,g)=>{d.preventDefault(),d.stopPropagation(),f.current==="touch"?l.current&&(clearTimeout(l.current),l.current=null,_(d.currentTarget.getBoundingClientRect(),!0)):!g&&!i.current&&_(d.currentTarget.getBoundingClientRect())},[_]),M=C(()=>i.current?(i.current=!1,!0):!1,[]);return{longPressFiredRef:i,cancelLongPress:s,clearPopupTimeout:b,schedulePopupClose:B,openViaHold:_,handlePointerDown:y,handlePointerMove:v,handlePointerUpOrCancel:N,handleContextMenu:E,consumeLongPressClick:M}}const X={elements:{poster:{typeBadge:!0,chapterBadge:!0,adultBadge:!0},info:{title:!0,mobileBadges:!0,progress:!0,meta:!0}}},wn=Ie(({item:t,linkTo:p,hoverIcon:l,progress:i,showProgress:h=!1,metaRow:f,display:s,layout:b="vertical",onRemove:B,showRemoveButton:_,showInfoButton:y=!1,onOpenDetails:v,renderPopup:N,onPopupHoverIntent:E,rawThumbnail:M,enrichedId:d})=>{const g=ze(),a=re(),{titlePreference:S}=Le(),{lowEndMode:T}=De(),[L,D]=$(!1),[r,n]=$(!1),{thumbnail:m}=Tt(d,t.thumbnail),[P,K]=$(!1),[q,J]=$(null),Q=u=>{J(u),K(!0)},U=C(()=>{K(!1),J(null)},[]),R=pn(u=>{if(v){v(u);return}N&&Q(u)}),W=C(()=>{R.schedulePopupClose(U)},[R,U]),Z=R.clearPopupTimeout,ae=u=>{if(a)return;const oe=u.currentTarget.getBoundingClientRect();if(v){v(oe);return}N&&Q(oe)},ce=()=>{N&&W()},le=()=>{Z()},ie=()=>{N&&W()},de=u=>{R.handlePointerDown(u,I)},ue=u=>{R.handlePointerMove(u)},ee=()=>{R.handlePointerUpOrCancel()},pe=u=>{if(v){u.preventDefault(),u.stopPropagation(),v(u.currentTarget.getBoundingClientRect());return}if(N){R.handleContextMenu(u,I);return}R.handleContextMenu(u,I)},te={...s,elements:{...X.elements,...s?.elements||{},poster:{...X.elements?.poster,...s?.elements?.poster||{}},info:{...X.elements?.info,...s?.elements?.info||{}}}},V=t[S]||t.title,O=te.elements?.poster,A=te.elements?.info,_e=(O?.typeBadge??!0)&&!!t.typeBadge,me=(O?.chapterBadge??!0)&&!!t.chapterBadge,fe=_??O?.removeButton??!!B,he=O?.adultBadge??!0,ge=A?.mobileBadges??!0,be=A?.progress??!0,ye=A?.meta??!0,ve=h&&!!i&&i.percent>0,ne=!!t.isAdult,{hasConsent:Be,grant:we}=xe(),[ke,G]=x.useState(!1),j=x.useRef(null),Ne=()=>{we(),G(!1),j.current&&(g(j.current),j.current=null)},I=ne&&!Be,Ce=u=>{if(R.consumeLongPressClick()){u.preventDefault(),u.stopPropagation();return}I&&(u.preventDefault(),u.stopPropagation(),j.current=p,G(!0))},Pe=l==="book"?e(k,{name:"book",size:28}):l==="play"?e(k,{name:"play",size:28}):l==="info"?e(k,{name:"info-circle",size:28}):e(k,{name:"info-circle",size:28}),Me=C(u=>{u.preventDefault(),u.stopPropagation(),B&&B(t.id)},[B,t.id]),Te=M?m??t.thumbnail:Oe(m,T?100:150,T?150:200);return e("div",{className:`${o.cardWrapper} ${T?o.lowEnd:""}`,onMouseEnter:()=>{n(!0),E?.(!0),P&&Z()},onMouseLeave:()=>{n(!1),E?.(!1),P&&W()},children:[e(Y,{to:p,className:`${o.card} ${o[b]} ${I?o.cardButton:""}`,onClick:Ce,onContextMenu:pe,onPointerDown:de,onPointerMove:ue,onPointerUp:ee,onPointerCancel:ee,children:[e("div",{className:o.posterContainer,children:[I&&e("div",{className:`${o.matureOverlay} ${T?o.flat:""}`}),e("img",{src:Te,alt:V,className:`${o.posterImg} ${L?o.loaded:""} ${I&&!T?o.blurred:""}`,loading:"lazy",decoding:"async",onLoad:()=>D(!0)}),!a&&e(H,{children:[_e&&e("div",{className:o.typeBadge,children:t.typeBadge}),me&&e("div",{className:o.epBadge,children:[t.chapterBadge,t.airMeta&&e("span",{className:o.airTime,children:t.airMeta})]})]}),he&&ne&&e("div",{className:`${o.adultBadge} ${I?o.gated:""}`,children:"18+"}),t.notAired&&e("div",{className:o.notAiredBadge,children:"NOT AIRED"}),!a&&r&&e("div",{className:o.hoverOverlay,children:Pe})]}),be&&h&&ve&&i&&e("div",{className:o.progressSection,children:[e("div",{className:o.progressContainer,children:e("div",{className:o.progressBar,style:{width:`${i.percent}%`}})}),e("div",{className:o.timestamp,children:i.label})]}),e("div",{className:o.titleSection,children:[a&&ge&&e("div",{className:o.mobileBadges,children:[!!t.typeBadge&&e("span",{className:o.mobileType,children:t.typeBadge}),t.chapterBadge&&e("span",{className:o.mobileEp,children:t.chapterBadge})]}),A?.title!==!1&&e("div",{className:o.title,title:V,children:e("span",{className:o.titleText,children:V})}),ye&&f&&e("div",{className:o.metaRow,children:f})]})]}),ke&&e(We,{isOpen:!0,showResetHint:!0,onClose:()=>G(!1),onGrant:Ne}),fe&&e("button",{className:o.removeBtn,onClick:Me,"aria-label":"Remove",children:e(k,{name:"times",size:10})}),y&&!a&&!I&&e("button",{className:o.infoBtn,onMouseEnter:ae,onMouseLeave:ce,"aria-label":"Info",children:e(k,{name:"info",size:11})}),N&&P&&q?N(q,{close:U,onMouseEnter:le,onMouseLeave:ie}):null]})});export{wn as M,vn as P,Bn as a,o as m,c as p};
@@ -1,21 +0,0 @@
1
- import{d as r,u as e,S as le,A as Z,h as z,q as pe,T as Ke,p as Ue,g as Ce,_ as Ee}from"./vendor-core-DfaOB3Rn.js";import{b as fe,u as te}from"./vendor-query-BBT5_sHx.js";import{R as ee,S as V,U as K,V as ke,B as C,W as Fe,Q as E,d as $e,L as Pe,t as k,v as Ie,o as We,J as Se,X,q as H,Y as Ne,Z as He,_ as Be,u as je,e as Qe,$ as Ve,K as de,p as Ye,a0 as Je,a1 as Xe}from"./index-B9fL2VIP.js";import{I as j}from"./vendor-icons-C1Pj_eSX.js";import{T as F}from"./ToggleSwitch-CN_ppEc9.js";import{l as Ze,s as et}from"./playbackCompletion-CKlwK8SG.js";import{M as tt}from"./MatureConsentModal-D34i8744.js";const at="_sectionCard_1vuib_1",nt="_dangerCard_1vuib_20",rt="_settingRow_1vuib_31",T={sectionCard:at,dangerCard:nt,settingRow:rt};function st(){const{data:t}=fe(ee),{data:s}=fe({queryKey:["profiles"],queryFn:()=>V("/api/profiles/status"),enabled:!!t?.owner}),c=te(),[g,f]=r(null),[d,S]=r(""),[m,i]=r(""),[a,p]=r(""),[v,u]=r(""),[I,l]=r(""),[y,_]=r(!1),[P,M]=r(null),[L,w]=r(null),[x,O]=r(""),G=async o=>{_(!0),l("");try{await V("/api/profiles/update",{method:"POST",body:JSON.stringify(o)}),await c.invalidateQueries({queryKey:ee.queryKey}),S(""),i(""),l("Profile saved")}catch(R){l(R.message)}finally{_(!1)}};return t?e("section",{className:T.sectionCard,children:[e("h3",{children:"Your profile"}),e("p",{children:"Keep using this profile, rename it, or add another person with their own library and connections."}),e("div",{className:K.avatarRow,children:[e(ke,{image:t.image,name:t.name}),e("label",{className:K.uploadButton,children:[e(j,{name:"upload"}),e("span",{children:"Upload image"}),e("input",{className:K.fileInput,type:"file",accept:"image/png,image/jpeg,image/webp,image/gif",disabled:y,onChange:async o=>{const R=o.currentTarget.files?.[0];if(o.currentTarget.value="",!R)return;if(R.size>2*1024*1024){l("Image must be smaller than 2 MB");return}const A=new FileReader;A.onerror=()=>l("Could not read image"),A.onload=()=>{G({avatar:A.result})},A.readAsDataURL(R)}})]}),t.avatar&&e(C,{variant:"secondary",disabled:y,onClick:()=>G({avatar:null}),children:"Clear uploaded image"})]}),e("p",{children:"Your uploaded image takes priority, followed by your active cloud account image, then the default user icon."}),e("form",{className:K.form,onSubmit:o=>{o.preventDefault(),G({name:g??t.name})},children:[e("label",{className:K.field,children:["Profile name",e("input",{value:g??t.name,maxLength:60,required:!0,onChange:o=>f(o.currentTarget.value)})]}),e(C,{type:"submit",disabled:y,children:"Save name"})]}),e("form",{className:K.form,onSubmit:o=>{o.preventDefault(),G({password:d,currentPassword:m})},children:[t.protected&&e("label",{className:K.field,children:["Current password",e("input",{type:"password",autoComplete:"current-password",value:m,required:!0,maxLength:256,onChange:o=>i(o.currentTarget.value)})]}),e("label",{className:K.field,children:[t.protected?"New password (empty removes protection)":"Protect this profile",e("input",{type:"password",autoComplete:"new-password",value:d,minLength:8,maxLength:256,onChange:o=>S(o.currentTarget.value)})]}),e(C,{type:"submit",disabled:y,children:"Save password"})]}),e(C,{variant:"secondary",disabled:y,onClick:async()=>{_(!0);try{await V("/api/profiles/logout",{method:"POST"}),Fe()}catch(o){l(o.message),_(!1)}},children:"Switch profile / sign out"}),t.owner&&e("form",{className:K.form,onSubmit:async o=>{o.preventDefault(),_(!0),l("");try{await V("/api/profiles/create",{method:"POST",body:JSON.stringify({name:a,password:v})}),p(""),u(""),await c.invalidateQueries({queryKey:["profiles"]}),l("Profile created. Sign out to switch to it.")}catch(R){l(R.message)}finally{_(!1)}},children:[e("h3",{children:"Add another profile"}),e("p",{children:"Protect your owner profile first. New profiles start empty and do not inherit your accounts. A profile without a password is accessible to anyone who passes the LAN lock."}),e("label",{className:K.field,children:["Name",e("input",{required:!0,maxLength:60,value:a,onChange:o=>p(o.currentTarget.value)})]}),e("label",{className:K.field,children:["Password (optional)",e("input",{type:"password",autoComplete:"new-password",minLength:8,maxLength:256,value:v,onChange:o=>u(o.currentTarget.value)})]}),e(C,{type:"submit",disabled:y||!t.protected,children:"Create profile"})]}),t.owner&&s?.profiles.some(o=>!o.owner)&&e(le,{children:[e("h3",{children:"Other profiles"}),e("ul",{className:K.profileList,children:s.profiles.filter(o=>!o.owner).map(o=>e("li",{children:[e("span",{className:K.smallAvatar,children:e(ke,{image:o.avatar??o.cloudAvatar,name:o.name})}),e("span",{className:K.profileName,children:o.name}),e(C,{variant:"secondary",size:"sm",disabled:y,onClick:()=>{l(""),O(""),w(o)},children:"Reset password"}),e(C,{variant:"danger",size:"sm",disabled:y,onClick:()=>{l(""),M(o)},children:"Delete"})]},o.id))})]}),e(E,{isOpen:!!L,onClose:y?void 0:()=>w(null),title:"Reset password",width:"sm",footer:e(le,{children:[e(C,{variant:"secondary",disabled:y,onClick:()=>w(null),children:"Cancel"}),e(C,{loading:y,onClick:async()=>{if(L){_(!0),l("");try{await V("/api/profiles/reset-password",{method:"POST",body:JSON.stringify({id:L.id,password:x})}),await c.invalidateQueries({queryKey:["profiles"]}),w(null),O(""),l("Password updated. The profile has been signed out.")}catch(o){l(o.message)}finally{_(!1)}}},children:"Save password"})]}),children:[e("p",{children:["Set a new password for ",e("strong",{children:L?.name}),". They will be signed out and must use the new password next time."]}),e("label",{className:K.field,children:["New password",e("input",{type:"password",autoComplete:"new-password",minLength:8,maxLength:256,placeholder:"Leave empty to remove their password",value:x,onChange:o=>O(o.currentTarget.value)})]})]}),e(E,{isOpen:!!P,onClose:y?void 0:()=>M(null),title:"Delete profile?",width:"sm",footer:e(le,{children:[e(C,{variant:"secondary",disabled:y,onClick:()=>M(null),children:"Cancel"}),e(C,{variant:"danger",loading:y,onClick:async()=>{if(P){_(!0);try{await V("/api/profiles/delete",{method:"POST",body:JSON.stringify({id:P.id,confirm:!0})}),await c.invalidateQueries({queryKey:["profiles"]}),M(null),l("Profile deleted. Local files will be removed when Dango restarts.")}catch(o){l(o.message),M(null)}finally{_(!1)}}},children:"Delete profile"})]}),children:[e("p",{children:["Delete ",e("strong",{children:P?.name}),"? This signs them out immediately. Their local libraries, settings and connections will be removed when Dango next restarts."]}),e("p",{children:"Cloud backups and tracker lists will stay intact. Export any library you want to keep before deleting."})]}),I&&e("p",{role:"status",children:I})]}):null}const ue={"title-preference-container":"_title-preference-container_sdqgs_1","toggle-button":"_toggle-button_sdqgs_21","toggle-label":"_toggle-label_sdqgs_51"},he=["name","nativeName","englishName"],ge={name:"Default (Romaji)",nativeName:"Native",englishName:"English"},it=()=>{const{titlePreference:t,setTitlePreference:s,loading:c}=$e(),g=Pe(),[f,d]=r(ge[t]),[S,m]=r(!1),i=Z(null);z(()=>{c||d(ge[t])},[t,c]);const a=async()=>{if(S)return;m(!0);const v=(he.indexOf(t)+1)%he.length,u=he[v],I=ge[u];i.current&&(i.current.style.transform="translateX(-100%)",i.current.style.opacity="0"),setTimeout(async()=>{d(I),s(u),i.current&&(i.current.style.transition="none",i.current.style.transform="translateX(100%)",i.current.style.opacity="0",i.current.offsetWidth,i.current.style.transition="transform 0.3s ease-out, opacity 0.3s ease-out",i.current.style.transform="translateX(0)",i.current.style.opacity="1");try{await g.mutateAsync({key:"titlePreference",value:u})}catch(l){console.error("Error saving title preference:",l)}finally{m(!1)}},300)};return c?e("p",{children:"Loading title preference..."}):e("div",{className:ue["title-preference-container"],children:[e("h4",{children:"Anime Title Display Preference"}),e("button",{onClick:a,className:ue["toggle-button"],disabled:S,children:e("span",{ref:i,className:ue["toggle-label"],children:f})})]})},ot="_settingsHeader_gfwoa_1",lt="_pageTitle_gfwoa_6",ct="_pageSubtitle_gfwoa_14",dt="_settingsLayout_gfwoa_20",ut="_sidebar_gfwoa_27",ht="_sidebarIndicator_gfwoa_35",gt="_sidebarItem_gfwoa_50",mt="_active_gfwoa_72",pt="_mainContent_gfwoa_80",ft="_tabContent_gfwoa_85",yt="_settingItem_gfwoa_103",vt="_shortcutContainer_gfwoa_108",wt="_shortcutGroup_gfwoa_115",bt="_shortcutGroupTitle_gfwoa_121",Ct="_shortcutGrid_gfwoa_130",kt="_shortcutCard_gfwoa_136",St="_controls_gfwoa_170",Nt="_status_gfwoa_176",h={settingsHeader:ot,pageTitle:lt,pageSubtitle:ct,settingsLayout:dt,sidebar:ut,sidebarIndicator:ht,sidebarItem:gt,active:mt,mainContent:pt,tabContent:ft,settingItem:yt,shortcutContainer:vt,shortcutGroup:wt,shortcutGroupTitle:bt,shortcutGrid:Ct,shortcutCard:kt,controls:St,status:Nt},_t="_title_tm30b_11",Tt="_signIn_tm30b_18",Pt="_userInfo_tm30b_25",It="_warning_tm30b_47",Lt="_formGroup_tm30b_54",xt="_label_tm30b_58",Rt="_inputWrapper_tm30b_68",Dt="_input_tm30b_68",Ot="_select_tm30b_92",At="_actions_tm30b_109",Gt="_hr_tm30b_117",b={title:_t,signIn:Tt,userInfo:Pt,warning:It,formGroup:Lt,label:xt,inputWrapper:Rt,input:Dt,select:Ot,actions:At,hr:Gt},Mt=()=>{const t=te(),[s,c]=r(!0),[g,f]=r(!1),[d,S]=r(!1),[m,i]=r(null),[a,p]=r({status:"idle"}),[v,u]=r(!1),[I,l]=r(""),[y,_]=r(!1),P=Z(null),[M,L]=r({show:!1,message:"",type:"info"}),w=()=>{P.current&&(window.clearInterval(P.current),P.current=null)},x=pe(N=>{S(N.authenticated),i(N.user||N.device.user||null),p(N.device),u(!!N.hasCustomClientId)},[]),O=pe(async()=>{const N=await k.auth.githubStatus.query();x(N)},[x]),G=async()=>{try{const N=await k.auth.githubPoll.query();p(N),N.status==="success"?(w(),await t.invalidateQueries({queryKey:ee.queryKey}),await O(),L({show:!0,message:"GitHub authentication complete. Sync has been initialized.",type:"success"})):N.status==="error"&&(w(),L({show:!0,message:N.error||"GitHub authentication failed.",type:"error"}))}catch{w(),L({show:!0,message:"Failed to poll GitHub authentication status.",type:"error"})}},o=(N=5)=>{w(),P.current=window.setInterval(G,Math.max(N,5)*1e3)};z(()=>(O().catch(()=>{L({show:!0,message:"Failed to load GitHub sync status.",type:"error"})}).finally(()=>c(!1)),w),[O]);const R=async()=>{f(!0);try{const N=await k.auth.githubStart.mutate();p(N),o(N.verification?.interval)}catch(N){L({show:!0,message:N instanceof Error?N.message:"Failed to start GitHub authentication.",type:"error"})}finally{f(!1)}},A=async()=>{try{await k.auth.githubLogout.mutate(),await t.invalidateQueries({queryKey:ee.queryKey}),S(!1),i(null),p({status:"idle"}),L({show:!0,message:"Signed out of GitHub sync.",type:"success"})}catch{L({show:!0,message:"Failed to sign out of GitHub.",type:"error"})}},$=async()=>{_(!0);try{await k.auth.saveGithubAuth.mutate({clientId:I}),l(""),await O(),L({show:!0,message:"Custom GitHub auth saved.",type:"success"})}catch{L({show:!0,message:"Failed to save override.",type:"error"})}finally{_(!1)}},Q=async()=>{_(!0);try{await k.auth.saveGithubAuth.mutate({clientId:""}),l(""),await O(),L({show:!0,message:"Custom auth cleared. Using dango defaults.",type:"success"})}catch{L({show:!0,message:"Failed to clear override.",type:"error"})}finally{_(!1)}};return s?e("div",{style:{color:"var(--text-secondary)",padding:"1.5rem"},children:"Loading..."}):e("div",{className:T.sectionCard,children:[e("h3",{className:b.title,children:"GitHub Cloud Sync"}),e("p",{className:b.signIn,children:"Sync local data through a private GitHub repository named dango-sync-data."}),d&&m?e("div",{className:b.userInfo,children:[e("p",{children:["Signed in as: ",e("strong",{children:m.name||m.login})]}),e(C,{variant:"danger",onClick:A,children:"Sign Out"})]}):e("div",{className:b.signIn,children:e(C,{onClick:R,disabled:g||a.status==="pending",children:g||a.status==="pending"?"Waiting for GitHub...":"Sign in with GitHub"})}),a.status==="pending"&&a.verification&&e(le,{children:[e("hr",{className:b.hr}),e("div",{className:b.formGroup,children:[e("label",{className:b.label,children:"Verification URL"}),e("div",{className:b.inputWrapper,children:[e("input",{className:b.input,value:a.verification.verification_uri,readOnly:!0}),e(C,{onClick:()=>{const N=a.verification?.verification_uri;N&&/^https?:\/\//i.test(N)&&window.open(N,"_blank","noopener,noreferrer")},children:"Open"})]})]}),e("div",{className:b.formGroup,children:[e("label",{className:b.label,children:"Device Code"}),e("input",{className:b.input,value:a.verification.user_code,readOnly:!0})]})]}),a.status==="error"&&e("p",{className:b.warning,children:a.error}),e("details",{style:{marginTop:"1rem",fontSize:"var(--font-size-sm)"},children:[e("summary",{style:{cursor:"pointer",color:"var(--text-secondary)"},children:["Advanced: use your own auth ",v?"(override active)":""]}),e("div",{className:b.formGroup,style:{marginTop:"0.75rem"},children:[e("label",{className:b.label,children:"Client ID (optional)"}),e("input",{className:b.input,value:I,onChange:N=>l(N.currentTarget.value),placeholder:"Your GitHub OAuth app ID"})]}),e("div",{className:b.actions,children:[e(C,{onClick:$,disabled:y,children:"Save override"}),e(C,{variant:"secondary",onClick:Q,disabled:y,children:"Use dango defaults"})]})]}),e(E,{isOpen:M.show,onClose:()=>L(N=>({...N,show:!1})),width:"sm",children:[e(E.Body,{children:e("p",{children:M.message})}),e(E.Actions,{children:e(C,{onClick:()=>L(N=>({...N,show:!1})),children:"OK"})})]})]})},qt=()=>{const[t,s]=r(!0),[c,g]=r(null),[f,d]=r(!1),[S,m]=r(!1),[i,a]=r(""),[p,v]=r(""),[u,I]=r(""),[l,y]=r(!1),[_,P]=r({show:!1,message:"",type:"info"}),M=async()=>{try{const R=await k.auth.user.query();g(R?.email?R:null)}catch{g(null)}},L=async()=>{try{const[o,R]=await Promise.all([k.auth.configStatus.query(),k.auth.googleAuth.query()]);d(!!o.hasConfig),m(!!(R.hasCustomWorkerUrl||R.hasCustomClientId||R.hasClientSecret))}catch(o){console.error("Failed to fetch config status",o)}};z(()=>{(async()=>{s(!0),await Promise.all([M(),L()]);try{new URLSearchParams(window.location.search).get("google_auth")==="success"&&(await M(),window.history.replaceState(null,"",window.location.pathname))}catch{}s(!1)})();const R=A=>{A.origin===window.location.origin&&typeof A.data=="object"&&A.data!==null&&A.data.type==="GOOGLE_AUTH_SUCCESS"&&(g(A.data.user),window.location.reload())};return window.addEventListener("message",R),()=>window.removeEventListener("message",R)},[]);const w=async()=>{try{const o=await k.auth.googleLogin.mutate();if(o.authenticated){window.location.reload();return}if(o.url){if(typeof window.DangoBridge<"u"){window.location.href=o.url;return}const A=600,$=700,Q=window.innerWidth/2-A/2,N=window.innerHeight/2-$/2;window.open(o.url,"GoogleAuth",`width=${A},height=${$},top=${N},left=${Q}`)}else throw new Error("Auth URL not available")}catch{P({show:!0,message:"Authentication failed. Ensure server is configured correctly.",type:"error"})}},x=async()=>{try{await k.auth.logout.mutate(),g(null),P({show:!0,message:"Successfully signed out.",type:"success"}),window.location.reload()}catch(o){console.error("Sign out failed",o),P({show:!0,message:"Failed to sign out.",type:"error"})}},O=async()=>{y(!0);try{await k.auth.saveGoogleAuth.mutate({workerUrl:i,clientId:p,clientSecret:u}),a(""),v(""),I(""),await L(),P({show:!0,message:"Custom auth saved. Restart may be required.",type:"success"})}catch{P({show:!0,message:"Failed to save override.",type:"error"})}finally{y(!1)}},G=async()=>{y(!0);try{await k.auth.saveGoogleAuth.mutate({workerUrl:"",clientId:"",clientSecret:""}),a(""),v(""),I(""),await L(),P({show:!0,message:"Custom auth cleared. Using dango defaults.",type:"success"})}catch{P({show:!0,message:"Failed to clear override.",type:"error"})}finally{y(!1)}};return t?e("div",{style:{color:"var(--text-secondary)",padding:"1.5rem"},children:"Loading..."}):e("div",{className:T.sectionCard,children:[e("h3",{className:b.title,children:"Google Drive Sync"}),c?e("div",{className:b.userInfo,children:[e("p",{children:["Signed in as: ",e("strong",{children:c.name})," (",c.email,")"]}),e(C,{variant:"danger",onClick:x,children:"Sign Out"})]}):e("div",{className:b.signIn,children:[e("p",{children:"Sign in with your Google account to enable synchronization features."}),e(C,{onClick:w,disabled:!f,children:"Sign in with Google"}),!f&&e("p",{className:b.warning,children:"Google sync is not configured on the server."})]}),e("details",{style:{marginTop:"1rem",fontSize:"var(--font-size-sm)"},children:[e("summary",{style:{cursor:"pointer",color:"var(--text-secondary)"},children:["Advanced: use your own auth ",S?"(override active)":""]}),e("div",{className:b.formGroup,style:{marginTop:"0.75rem"},children:[e("label",{className:b.label,children:"Worker URL (optional)"}),e("input",{className:b.input,value:i,onChange:o=>a(o.currentTarget.value),placeholder:"https://your-worker.workers.dev"})]}),e("div",{className:b.formGroup,children:[e("label",{className:b.label,children:"Client ID (optional)"}),e("input",{className:b.input,value:p,onChange:o=>v(o.currentTarget.value),placeholder:"Your Google OAuth client ID"})]}),e("div",{className:b.formGroup,children:[e("label",{className:b.label,children:"Client Secret (optional)"}),e("input",{type:"password",className:b.input,value:u,onChange:o=>I(o.currentTarget.value),placeholder:"Your Google OAuth secret"})]}),e("div",{className:b.actions,children:[e(C,{onClick:O,disabled:l,children:"Save override"}),e(C,{variant:"secondary",onClick:G,disabled:l,children:"Use dango defaults"})]})]}),e(E,{isOpen:_.show,onClose:()=>P(o=>({...o,show:!1})),width:"sm",children:[e(E.Body,{children:e("p",{children:_.message})}),e(E.Actions,{children:e(C,{onClick:()=>P(o=>({...o,show:!1})),children:"OK"})})]})]})},zt="_settingItem_3qq0n_1",Kt="_modalOverlay_3qq0n_6",Ut="_modal_3qq0n_6",Et="_modalActions_3qq0n_41",Ft="_modalSecondary_3qq0n_47",$t="_modalPrimary_3qq0n_57",B={settingItem:zt,modalOverlay:Kt,modal:Ut,modalActions:Et,modalSecondary:Ft,modalPrimary:$t},Wt={anime:{heading:"Watchlist Preferences",blurb:"Customize your experience when managing your watchlist and series entries.",skipKey:"skipRemoveConfirmation",ignoreKey:"ignoreAdultContent",listOnlyKey:"cwWatchlistOnly",skipLabel:"Skip confirmation when removing from watchlist",ignoreLabel:"Hide adult content from continue watching",listOnlyLabel:"Only show continue watching for shows in watchlist",listNoun:"watchlist",continueNoun:"continue watching",adultCountUrl:"/api/continue-watching/adult-count",purgeUrl:"/api/continue-watching/purge-adult",purgeDoneText:t=>`Removed ${t??0} entries from continue watching`,invalidateKeys:[["allContinueWatching"]]},manga:{heading:"Reading List Preferences",blurb:"Customize your experience when managing your reading list and manga entries.",skipKey:"mangaSkipRemoveConfirmation",ignoreKey:"mangaIgnoreAdultContent",listOnlyKey:"mangaCwWatchlistOnly",skipLabel:"Skip confirmation when removing from reading list",ignoreLabel:"Hide adult content from continue reading",listOnlyLabel:"Only show continue reading for manga in reading list",listNoun:"reading list",continueNoun:"continue reading",adultCountUrl:"/api/manga/continue-reading/adult-count",purgeUrl:"/api/manga/continue-reading/purge-adult",purgeDoneText:t=>`Removed ${t??0} entries from continue reading`,invalidateKeys:[["manga-continue-reading"]]},tv:{heading:"TV Watchlist Preferences",blurb:"Customize your experience when managing your TV watchlist and series entries.",skipKey:"tvSkipRemoveConfirmation",ignoreKey:"tvIgnoreAdultContent",listOnlyKey:"tvCwWatchlistOnly",skipLabel:"Skip confirmation when removing from TV watchlist",ignoreLabel:"Hide adult content from continue watching",listOnlyLabel:"Only show continue watching for shows in TV watchlist",listNoun:"TV watchlist",continueNoun:"continue watching",adultCountUrl:"/api/tv/continue-watching/adult-count",purgeUrl:"/api/tv/continue-watching/purge-adult",purgeDoneText:t=>`Removed ${t??0} entries from continue watching`,invalidateKeys:[["tv-continue-watching"]]},asmr:{heading:"Listening List Preferences",blurb:"Customize your experience when managing your listening list and work entries.",skipKey:"asmrSkipRemoveConfirmation",ignoreKey:"asmrIgnoreAdultContent",listOnlyKey:"asmrCwWatchlistOnly",skipLabel:"Skip confirmation when removing from listening list",ignoreLabel:"Hide adult content from continue listening",listOnlyLabel:"Only show continue listening for works in listening list",listNoun:"listening list",continueNoun:"continue listening",adultCountUrl:"/api/asmr/continue-listening/adult-count",purgeUrl:"/api/asmr/continue-listening/purge-adult",purgeDoneText:t=>`Removed ${t??0} entries from continue listening`,invalidateKeys:[["asmr-continue-listening"]]}},Ht=(t,s)=>{if(t==null)return s;const c=String(t);return c==="true"||c==="1"?!0:c==="false"||c==="0"?!1:s},_e=(t,s,c)=>{const[g,f]=r(s),[d,S]=r(!1),m=te();return z(()=>{(async()=>{try{const p=await k.settings.getByKey.query({key:t});f(Ht(p.value,s))}catch(p){console.error("Failed to fetch setting",p)}})()},[t,s]),{value:g,setValue:f,isUpdating:d,toggle:async()=>{if(d)return;S(!0);const a=!g;f(a);try{await k.settings.set.mutate({key:t,value:a});for(const p of c)m.invalidateQueries({queryKey:p})}catch(p){console.error("Error saving setting:",p),f(!a)}finally{S(!1)}}}},Bt=()=>{const{contentType:t}=Ie(),s=Wt[t],[c,g]=r(!1),[f,d]=r(!0),[S,m]=r(!1),i=_e(s.ignoreKey,!0,s.invalidateKeys),a=_e(s.listOnlyKey,!1,s.invalidateKeys),[p,v]=r(null),[u,I]=r(!1),l=te(),y=We();z(()=>{d(!0),(async()=>{try{const x=await k.settings.getByKey.query({key:s.skipKey});String(x.value)==="true"||String(x.value)==="1"?g(!0):g(!1)}catch(x){console.error("Failed to fetch setting",x)}finally{d(!1)}})()},[s.skipKey]);const _=async()=>{if(S)return;m(!0);const w=!c;g(w);try{await k.settings.set.mutate({key:s.skipKey,value:w})}catch(x){console.error("Error saving setting:",x),g(!w)}finally{m(!1)}},P=async()=>{if(!i.isUpdating){if(i.value)try{let w;if(t==="anime"?w=(await k.continueWatching.adultCount.query()).count:t==="manga"?w=(await k.mangaProgress.adultCount.query()).count:t==="asmr"?w=(await k.asmrProgress.adultCount.query()).count:w=(await k.tvProgress.adultCount.query()).count,typeof w=="number"&&w>0){v(w);return}}catch(w){console.error("Failed to fetch adult count",w)}i.toggle()}},M=()=>{v(null),i.toggle()},L=async()=>{if(!u){I(!0);try{let w;t==="anime"?w=(await k.continueWatching.purgeAdult.mutate()).removed:t==="manga"?w=(await k.mangaProgress.purgeAdult.mutate()).removed:t==="asmr"?w=(await k.asmrProgress.purgeAdult.mutate()).removed:w=(await k.tvProgress.purgeAdult.mutate()).removed,Se.success(s.purgeDoneText(w??0));for(const x of s.invalidateKeys)l.invalidateQueries({queryKey:x});t==="anime"&&l.invalidateQueries(y.continueWatching.pathFilter()),t==="manga"&&l.invalidateQueries(y.mangaProgress.pathFilter()),t==="asmr"&&l.invalidateQueries(y.asmrProgress.pathFilter()),t==="tv"&&l.invalidateQueries(y.tvProgress.pathFilter())}catch(w){console.error("Failed to purge adult entries",w),Se.error("Failed to remove adult entries")}finally{I(!1),v(null)}i.toggle()}};return f?e("div",{children:"Loading settings..."}):e("div",{className:T.sectionCard,children:[e("h3",{children:s.heading}),e("p",{children:s.blurb}),e("div",{className:B.settingItem,children:e("div",{className:T.settingRow,children:[e("label",{htmlFor:"skip-confirmation-toggle",children:s.skipLabel}),e(F,{isChecked:c,onChange:_,id:"skip-confirmation-toggle",disabled:S})]})}),e("div",{className:B.settingItem,children:e("div",{className:T.settingRow,children:[e("label",{htmlFor:"ignore-adult-toggle",children:s.ignoreLabel}),e(F,{isChecked:i.value,onChange:P,id:"ignore-adult-toggle",disabled:i.isUpdating})]})}),e("div",{className:B.settingItem,children:e("div",{className:T.settingRow,children:[e("label",{htmlFor:"cw-watchlist-only-toggle",children:s.listOnlyLabel}),e(F,{isChecked:a.value,onChange:a.toggle,id:"cw-watchlist-only-toggle",disabled:a.isUpdating})]})}),p!==null&&e("div",{className:B.modalOverlay,onClick:()=>v(null),children:e("div",{className:B.modal,onClick:w=>w.stopPropagation(),children:[e("h4",{children:"Show adult entries?"}),e("p",{children:[p," adult ",p===1?"entry":"entries"," not in your"," ",s.listNoun," ",p===1?"is":"are"," currently hidden from"," ",s.continueNoun,". You can purge ",p===1?"it":"them"," from the database instead of showing ",p===1?"it":"them","."]}),e("div",{className:B.modalActions,children:[e("button",{type:"button",className:B.modalSecondary,onClick:M,disabled:u,children:"Show them"}),e("button",{type:"button",className:B.modalPrimary,onClick:L,disabled:u,children:u?"Purging...":`Purge ${p}`})]})]})})]})},jt="_statsGrid_o4nf0_1",Qt="_statCard_o4nf0_8",Vt="_statLabel_o4nf0_18",Yt="_statValue_o4nf0_26",Jt="_statMeta_o4nf0_32",Xt="_statusBanner_o4nf0_38",Zt="_statusSuccess_o4nf0_49",ea="_statusUpdating_o4nf0_55",ta="_statusError_o4nf0_61",aa="_sha_o4nf0_67",na="_settingItem_o4nf0_74",ra="_settingTitle_o4nf0_79",sa="_settingSubtitle_o4nf0_85",ia="_actionsRow_o4nf0_92",D={statsGrid:jt,statCard:Qt,statLabel:Vt,statValue:Yt,statMeta:Jt,statusBanner:Xt,statusSuccess:Zt,statusUpdating:ea,statusError:ta,sha:aa,settingItem:na,settingTitle:ra,settingSubtitle:sa,actionsRow:ia},oa=()=>{const[t,s]=r(null),[c,g]=r(!0),[f,d]=r(!1),[S,m]=r(!1),i=Z(null),a=async()=>{try{const l=await k.settings.offlineDbInfo.query();return s(l),l}catch(l){console.error("Failed to fetch offline DB info:",l)}finally{g(!1)}return null};z(()=>(a(),()=>{i.current&&window.clearInterval(i.current)}),[]),z(()=>{t?.isRefreshing?i.current||(i.current=window.setInterval(async()=>{const l=await a();l&&!l.isRefreshing&&i.current&&(window.clearInterval(i.current),i.current=null)},2e3)):i.current&&(window.clearInterval(i.current),i.current=null)},[t?.isRefreshing]);const p=async()=>{if(!t||f)return;const l=!t.autoUpdateEnabled;d(!0),s({...t,autoUpdateEnabled:l});try{await k.settings.setOfflineDbAutoUpdate.mutate({enabled:l})}catch(y){console.error("Failed to update auto update setting:",y),s({...t,autoUpdateEnabled:!l})}finally{d(!1)}},v=async()=>{if(!(t?.isRefreshing||S)){m(!0);try{await k.settings.triggerOfflineDbUpdate.mutate(),s(l=>l?{...l,isRefreshing:!0,lastStatus:"updating",lastMessage:"Downloading database..."}:null)}catch(l){console.error("Failed to trigger offline DB update:",l)}finally{m(!1)}}},u=l=>{if(!l)return"Never";try{return new Date(l).toLocaleString(void 0,{dateStyle:"medium",timeStyle:"short"})}catch{return l}},I=t?.isRefreshing||S;return e("div",{className:T.sectionCard,children:[e("h3",{children:"Offline Metadata Database"}),e("p",{children:"Local MAL to AniList ID map used for instant imports and metadata enrichment without hitting rate-limited APIs. Updates automatically every Saturday in the background."}),e("div",{className:D.statsGrid,children:[e("div",{className:D.statCard,children:[e("span",{className:D.statLabel,children:"MAL Mapped"}),e("span",{className:D.statValue,children:c?"-":(t?.totalMalMapped??0).toLocaleString()})]}),e("div",{className:D.statCard,children:[e("span",{className:D.statLabel,children:"Release"}),e("span",{className:D.statMeta,children:c?"-":t?.releaseTag??"Never"})]}),e("div",{className:D.statCard,children:[e("span",{className:D.statLabel,children:"Last Checked"}),e("span",{className:D.statMeta,children:c?"-":u(t?.lastCheckedAt??null)})]}),e("div",{className:D.statCard,children:[e("span",{className:D.statLabel,children:"Last Updated"}),e("span",{className:D.statMeta,children:c?"-":u(t?.lastUpdatedAt??null)})]})]}),t?.lastMessage&&e("div",{className:`${D.statusBanner} ${t.lastStatus==="failed"?D.statusError:t.lastStatus==="updating"?D.statusUpdating:D.statusSuccess}`,children:[e("span",{children:t.lastMessage}),t.contentSha256&&e("span",{className:D.sha,children:["sha:",t.contentSha256.slice(0,12)]})]}),e("div",{className:D.settingItem,children:e("div",{className:T.settingRow,children:[e("div",{children:[e("span",{className:D.settingTitle,children:"Weekly Automatic Updates (Saturdays)"}),e("div",{className:D.settingSubtitle,children:"Download and index new database releases in the background. Catches up on startup if the server was offline."})]}),e(F,{id:"offline-db-auto-update-toggle",isChecked:t?t.autoUpdateEnabled:!0,onChange:p,disabled:c||f})]})}),e("div",{className:D.actionsRow,children:e(C,{onClick:v,disabled:c||I,children:I?"Updating Database...":"Update Offline Database Now"})})]})},la="_status_1wbo0_1",ca="_warningText_1wbo0_7",da="_ackLabel_1wbo0_11",me={status:la,warningText:ca,ackLabel:da},ua=()=>{const t=te(),[s,c]=r(!1),[g,f]=r(!1),[d,S]=r(!1),[m,i]=r(""),a=()=>{f(!1),i(""),c(!0)},p=()=>{d||(c(!1),f(!1))},v=async()=>{if(!(!g||d)){S(!0),i("");try{const u=await X("/api/database/clear",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({confirm:!0})}),I=await u.json();if(!u.ok)throw new Error(I.error||"Failed to clear database");const l=I.deleted,y=I.deletedManga,_=I.deletedTv,P=I.deletedAsmr,M=Object.values(l).reduce((O,G)=>O+(G||0),0)+Object.values(y??{}).reduce((O,G)=>O+(G||0),0)+Object.values(_??{}).reduce((O,G)=>O+(G||0),0)+Object.values(P??{}).reduce((O,G)=>O+(G||0),0),L=(y?.manga_library??0)+(y?.manga_progress??0),w=(_?.tv_library??0)+(_?.tv_progress??0),x=(P?.asmr_library??0)+(P?.asmr_progress??0);i(`Library cleared - ${l.watchlist??0} watchlist entries, ${L} manga rows, ${w} TV rows, ${x} ASMR rows and ${M} total rows removed.`),t.invalidateQueries({queryKey:[H.watchlist]}),t.invalidateQueries({queryKey:[H.continueWatching]}),t.invalidateQueries({queryKey:[H.mangaLibrary]}),t.invalidateQueries({queryKey:[H.mangaContinueReading]}),t.invalidateQueries({queryKey:[H.tvLibrary]}),t.invalidateQueries({queryKey:[H.tvContinueWatching]}),t.invalidateQueries({queryKey:[H.asmrLibrary]}),t.invalidateQueries({queryKey:[H.asmrContinueListening]}),c(!1)}catch(u){i(u.message)}finally{S(!1),f(!1)}}};return e("div",{className:`${T.sectionCard} ${T.dangerCard}`,children:[e("h3",{children:"Danger Zone"}),e("p",{children:"Permanently delete your library (watchlist, watched episodes, queue, cached show metadata, manga reading list and reading progress, TV watchlist and watch progress, ASMR listening list and listening progress) to start fresh. Your settings, sync state and the offline metadata cache are preserved."}),e(C,{variant:"danger",onClick:a,children:"Clear Library Data"}),m&&e("p",{className:me.status,children:m}),e(E,{isOpen:s,onClose:p,title:"Clear library data?",width:"sm",children:[e(E.Body,{children:[e("p",{className:me.warningText,children:"This permanently deletes everything in your library. It acts on the active database (dev or prod, per server config) and cannot be undone. Settings, sync state and the offline metadata cache are kept."}),e("label",{className:me.ackLabel,children:[e("input",{type:"checkbox",checked:g,onChange:u=>f(u.currentTarget.checked),disabled:d}),e("span",{children:"I understand this permanently deletes my library"})]})]}),e(E.Actions,{children:[e(C,{variant:"secondary",onClick:p,disabled:d,children:"Cancel"}),e(C,{variant:"danger",onClick:v,disabled:!g||d,children:d?"Clearing...":"Yes, delete everything"})]})]})]})},ha=()=>{const[t,s]=r(""),[c,g]=r([]),[f,d]=r(null),[S,m]=r(!0),[i,a]=r({show:!1,message:"",type:"info"}),p=async()=>{try{m(!0);const u=await k.auth.rcloneSettings.query();s(u.remote||""),g(u.availableRemotes||[]),d(u.activeRemote||null)}catch(u){console.error("Failed to fetch Rclone settings",u)}finally{m(!1)}};z(()=>{p()},[]);const v=async()=>{try{await k.auth.saveRclone.mutate({remote:t}),a({show:!0,message:"Rclone configuration saved successfully. You must restart the server for these changes to take effect.",type:"success"}),p()}catch{a({show:!0,message:"Failed to save Rclone configuration.",type:"error"})}};return S?e("div",{style:{color:"var(--text-secondary)",padding:"1.5rem"},children:"Loading..."}):e("div",{className:T.sectionCard,children:[e("h3",{className:b.title,children:"Rclone Cloud Sync"}),e("p",{className:b.signIn,children:"Configure which Rclone remote to use for database synchronization."}),f?e("div",{className:b.userInfo,children:e("p",{children:["Current Active Remote: ",e("strong",{children:f})]})}):e("p",{className:b.warning,style:{marginBottom:"1.5rem"},children:"Rclone sync is not currently active. Ensure rclone is installed and a remote is configured."}),e("div",{className:b.formGroup,children:[e("label",{className:b.label,children:"Remote Name"}),e("div",{className:b.inputWrapper,children:e("select",{className:b.select,value:t,onChange:u=>s(u.currentTarget.value),children:[e("option",{value:"",children:"(Disabled / None)"}),c.map(u=>e("option",{value:u,children:u},u)),t&&!c.includes(t)&&e("option",{value:t,children:[t," (Manual)"]})]})}),e("p",{className:b.warning,style:{marginTop:"12px"},children:[e("strong",{children:"Note:"})," You can choose which provider is active using the selector at the top of the page."]})]}),e("div",{className:b.actions,children:e(C,{onClick:v,children:"Save Rclone Settings"})}),e(E,{isOpen:i.show,onClose:()=>a(u=>({...u,show:!1})),width:"sm",children:[e(E.Body,{children:e("p",{children:i.message})}),e(E.Actions,{children:e(C,{onClick:()=>a(u=>({...u,show:!1})),children:"OK"})})]})]})},ga=()=>{const t=te(),[s,c]=r(null),[g,f]=r(!0),d=async()=>{try{const a=await k.auth.syncSettings.query();c(a)}catch(a){console.error("Failed to fetch sync settings",a)}finally{f(!1)}};z(()=>{d()},[]);const S=async a=>{const p=a.currentTarget.value;try{const v=await k.auth.saveSyncProvider.mutate({provider:p});c(u=>u?{...u,activeProvider:v.activeProvider}:null),await d(),await t.invalidateQueries({queryKey:ee.queryKey}),Ne.success(`Sync provider updated to ${p==="default"?"Default Order":p}`)}catch{Ne.error("Failed to update sync provider")}};if(g||!s)return null;const m=[{value:"default",label:"Default (Priority Based)"}];s.authenticatedProviders.github&&m.push({value:"github",label:"GitHub"}),s.authenticatedProviders.google&&m.push({value:"google",label:"Google Drive"}),s.authenticatedProviders.rclone&&m.push({value:"rclone",label:"Rclone"}),m.push({value:"none",label:"None (Local Only)"});const i=a=>a==="none"?"Local Only (No Sync)":a==="google"?"Google Drive":a==="github"?"GitHub":a==="rclone"?"Rclone":a;return e("div",{className:T.sectionCard,children:[e("h3",{children:"Active Sync Provider"}),e("p",{children:'Choose which provider to use for synchronization. "Default" uses the first available provider you are logged into.'}),e("div",{style:{marginBottom:"1.5rem",padding:"0.75rem",background:"rgba(255, 255, 255, 0.03)",borderRadius:"var(--radius-md)",borderLeft:"4px solid var(--accent)",fontSize:"var(--font-size-sm)"},children:["Current Status:"," ",e("strong",{style:{color:"var(--accent-light)",textTransform:"capitalize"},children:i(s.actualActiveProvider)})]}),e("div",{className:T.settingRow,children:[e("label",{htmlFor:"sync-provider-select",children:"Selected Preference"}),e("select",{id:"sync-provider-select",value:s.activeProvider,onChange:S,style:{padding:"0.5rem",borderRadius:"var(--radius-md)",background:"rgba(255, 255, 255, 0.05)",color:"var(--text-primary)",border:"1px solid var(--glass-border)",fontSize:"var(--font-size-sm)",minWidth:"220px",outline:"none",cursor:"pointer"},children:m.map(a=>e("option",{value:a.value,children:a.label},a.value))})]})]})};function ma(){return"javascript:"+encodeURIComponent(`(function(){
2
- if(!/(^|\\.)discord\\.com$/.test(location.hostname)){alert('Dango: use this bookmarklet while on discord.com');return}
3
- var t=null;
4
- try{
5
- window.webpackChunkdiscord_app.push([[Symbol()],{},function(req){
6
- if(!req.c)return;
7
- var ms=Object.values(req.c);
8
- for(var i=0;i<ms.length;i++){var m=ms[i];
9
- try{
10
- if(!m.exports||m.exports===window)continue;
11
- if(typeof m.exports.getToken==='function'){var x=m.exports.getToken();if(x){t=x;return}}
12
- for(var k in m.exports){try{var ex=m.exports[k];if(ex&&typeof ex.getToken==='function'&&ex[Symbol.toStringTag]!=='IntlMessagesProxy'){var y=ex.getToken();if(y){t=y;return}}}catch(e1){}}
13
- }catch(e2){}}
14
- }]);
15
- window.webpackChunkdiscord_app.pop();
16
- }catch(e3){}
17
- if(!t){alert('Dango: could not grab your token. Make sure you are logged in to Discord in this tab, then run the bookmarklet again.');return}
18
- function copyFallback(){var a=document.createElement('textarea');a.value=t;a.style.position='fixed';a.style.opacity='0';document.body.appendChild(a);a.select();try{document.execCommand('copy')}catch(e4){}document.body.removeChild(a)}
19
- var done=function(){window.close();setTimeout(function(){if(!window.closed){alert('Dango: token copied to clipboard! Could not close this tab, so just close it, go back to Dango Settings, paste the token and press Save.')}},250)};
20
- if(navigator.clipboard&&navigator.clipboard.writeText){navigator.clipboard.writeText(t).then(done,function(){copyFallback();done()})}else{copyFallback();done()}
21
- })()`)}const pa=()=>{const t=Ke(ma,[]);return e("div",{style:{marginTop:"0.9rem",paddingTop:"0.9rem",borderTop:"1px dashed var(--border-color)"},children:[e("h4",{style:{margin:"0 0 0.35rem",fontSize:"0.95rem"},children:"Grab the token automatically (bookmarklet)"}),e("p",{style:{margin:"0 0 0.6rem",fontSize:"0.85rem",color:"var(--text-secondary)"},children:"Set this up once and you never have to dig through DevTools: the bookmarklet copies your Discord token to the clipboard and closes the Discord tab - then you just paste it above and press Save."}),e("ol",{style:{margin:"0 0 0.75rem",paddingLeft:"1.25rem",fontSize:"0.85rem",color:"var(--text-secondary)",display:"grid",gap:"0.3rem"},children:[e("li",{children:["Drag the ",e("strong",{style:{color:"var(--text-primary)"},children:"Dango Token Grabber"})," ","button below onto your bookmarks bar (press ",e("kbd",{children:"Ctrl"}),"+",e("kbd",{children:"Shift"}),"+",e("kbd",{children:"B"})," ","first if the bar is hidden)."]}),e("li",{children:["Click ",e("strong",{style:{color:"var(--text-primary)"},children:"Open Discord"})," and log in (skip this if you are already logged in)."]}),e("li",{children:["On the Discord tab, click the"," ",e("strong",{style:{color:"var(--text-primary)"},children:"Dango Token Grabber"})," bookmark. The token lands in your clipboard and the tab closes on its own - come back here, paste it above and press ",e("strong",{children:"Save"}),"."]})]}),e("div",{style:{display:"flex",gap:"0.5rem",alignItems:"center",flexWrap:"wrap"},children:[e("a",{href:t,onClick:g=>{g.preventDefault(),alert("Drag this button onto your bookmarks bar instead of clicking it, then click it while you are on discord.com.")},title:"Drag me to your bookmarks bar",draggable:!0,style:{display:"inline-flex",alignItems:"center",padding:"0.4rem 0.8rem",borderRadius:"999px",border:"1px dashed var(--accent)",background:"var(--bg-secondary)",color:"var(--text-primary)",fontSize:"0.85rem",textDecoration:"none",cursor:"grab",userSelect:"none"},children:[e(j,{name:"bookmark",style:{marginRight:"0.45rem",color:"var(--accent)"}}),"Dango Token Grabber"]}),e("a",{className:"btn btn-secondary btn-sm",href:"https://discord.com/channels/@me",target:"_blank",rel:"noopener noreferrer",children:"Open Discord"}),e(C,{variant:"ghost",size:"sm",onClick:async()=>{try{await navigator.clipboard.writeText(t),alert('Bookmarklet code copied. Create a new bookmark on your bookmarks bar, name it "Dango Token" and paste the code as its URL.')}catch{alert(`Could not copy automatically. Right-click the "Dango Token Grabber" button and choose "Copy link address" instead, then paste that into a new bookmark's URL.`)}},children:"Copy code"})]}),e("p",{style:{margin:"0.5rem 0 0",fontSize:"0.75rem",color:"var(--text-tertiary)"},children:`"Copy code" is a fallback for browsers that won't drag bookmarklets: create any bookmark, then paste the copied code as its URL.`})]})},fa="_settingItem_68mz3_1",ya="_field_68mz3_6",va="_input_68mz3_19",wa="_actions_68mz3_39",ba="_status_68mz3_45",q={settingItem:fa,field:ya,input:va,actions:wa,status:ba},Ca=()=>{const[t,s]=r(!1),[c,g]=r(""),[f,d]=r(""),[S,m]=r(!0),[i,a]=r(!1),[p,v]=r("");z(()=>{(async()=>{try{const P=await(await X("/api/auth/app-status")).json();s(P.hasPassword)}catch{console.error("Failed to fetch LAN auth status")}finally{m(!1)}})()},[]);const u=async()=>{if(v(""),c!==f){v("Passwords do not match");return}if(c.length<4){v("Password must be at least 4 characters");return}a(!0);try{const y=await X("/api/auth/app-setup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:c})}),_=await y.json();if(!y.ok){v(_.error||"Failed to update password");return}s(_.hasPassword),g(""),d(""),v(_.hasPassword?"Password set successfully":"Password removed")}catch{v("Network error")}finally{a(!1)}},I=async()=>{a(!0);try{const y=await X("/api/auth/app-setup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:""})}),_=await y.json();if(!y.ok){v(_.error||"Failed to remove password");return}s(!1),g(""),d(""),v("Password removed")}catch{v("Network error")}finally{a(!1)}},l=async()=>{a(!0);try{await X("/api/auth/app-logout",{method:"POST"}),v("Logged out"),window.location.reload()}catch{v("Logout failed")}finally{a(!1)}};return S?e("div",{className:T.sectionCard,children:e("p",{children:"Loading..."})}):e("div",{className:T.sectionCard,children:[e("h3",{children:"LAN Lock"}),e("p",{children:"Require a password to access this instance from any device, including this one. Sessions persist across server restarts until logout or password change."}),e("div",{className:q.settingItem,children:[e("div",{className:q.field,children:[e("label",{htmlFor:"lan-password",children:"New Password"}),e("input",{id:"lan-password",type:"password",value:c,onChange:y=>g(y.currentTarget.value),placeholder:t?"Leave empty to keep current password":"Enter a password...",className:q.input})]}),e("div",{className:q.field,children:[e("label",{htmlFor:"lan-confirm-password",children:"Confirm Password"}),e("input",{id:"lan-confirm-password",type:"password",value:f,onChange:y=>d(y.currentTarget.value),placeholder:"Confirm password...",className:q.input})]}),e("div",{className:q.actions,children:[e(C,{variant:"primary",onClick:u,loading:i,disabled:i,children:t?"Update Password":"Set Password"}),t&&e(C,{variant:"danger",onClick:l,loading:i,disabled:i,children:"Logout"}),t&&e(C,{variant:"secondary",onClick:I,loading:i,disabled:i,children:"Remove Password"})]}),p&&e("p",{className:q.status,children:p})]})]})},ka=()=>{const[t,s]=r(""),[c,g]=r(!0),[f,d]=r(!1),[S,m]=r("");z(()=>{V("/api/auth/app-status").then(a=>s(String(a.port??3e3))).catch(()=>m("Failed to load current port")).finally(()=>g(!1))},[]);const i=async()=>{const a=Number(t);if(!Number.isInteger(a)||a<1||a>65535){m("Enter a port between 1 and 65535");return}d(!0),m("");try{await k.auth.setServerPort.mutate({port:a}),m(`Saved. Restart dango, then open http://localhost:${a} - this overrides the PORT environment variable.`)}catch(p){m(p.message)}finally{d(!1)}};return c?e("div",{className:T.sectionCard,children:e("p",{children:"Loading..."})}):e("div",{className:T.sectionCard,children:[e("h3",{children:"Server Port"}),e("p",{children:"Port the backend listens on. Takes effect after a restart. Google and AniList sign-in need the matching redirect URI registered with the provider."}),e("div",{className:q.settingItem,children:[e("div",{className:q.field,children:[e("label",{htmlFor:"server-port",children:"Port"}),e("input",{id:"server-port",type:"number",min:1,max:65535,value:t,onChange:a=>s(a.currentTarget.value),className:q.input})]}),e("div",{className:q.actions,children:e(C,{variant:"primary",onClick:i,loading:f,disabled:f,children:"Save Port"})}),S&&e("p",{className:q.status,children:S})]})]})},Sa=()=>{const[t,s]=r(""),[c,g]=r(!0),[f,d]=r(!1),[S,m]=r("");z(()=>{k.auth.allowedOrigins.query().then(a=>s(a.origins.join(", "))).catch(()=>m("Failed to load allowed origins")).finally(()=>g(!1))},[]);const i=async()=>{d(!0),m("");try{const a=await k.auth.setAllowedOrigins.mutate({origins:t});s(a.origins.join(", ")),m("Saved.")}catch(a){m(a.message)}finally{d(!1)}};return c?e("div",{className:T.sectionCard,children:e("p",{children:"Loading..."})}):e("div",{className:T.sectionCard,children:[e("h3",{children:"Allowed Origins"}),e("p",{children:["Extra browser origins allowed to call the API, comma-separated. Include the scheme (e.g."," ",e("code",{children:"https://example.com"}),"). Same-origin access and reverse proxies that forward X-Forwarded-Host/X-Forwarded-Proto work automatically."]}),e("div",{className:q.settingItem,children:[e("div",{className:q.field,children:[e("label",{htmlFor:"allowed-origins",children:"Origins"}),e("input",{id:"allowed-origins",value:t,onChange:a=>s(a.currentTarget.value),className:q.input,placeholder:"https://example.com"})]}),e("div",{className:q.actions,children:e(C,{variant:"primary",onClick:i,loading:f,disabled:f,children:"Save Origins"})}),S&&e("p",{className:q.status,children:S})]})]})},Na=()=>{const{theme:t,setTheme:s,loading:c}=He();return e("div",{children:[e("h4",{style:{margin:"0 0 0.25rem",fontSize:"1rem"},children:"Palette"}),e("p",{style:{margin:"0 0 0.75rem",fontSize:"0.85rem",color:"var(--text-secondary)"},children:"Taro is the default. Pick a palette that suits you."}),e("div",{role:"radiogroup","aria-label":"Palette",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(150px, 1fr))",gap:"0.6rem"},children:Be.map(g=>{const f=t===g.id;return e("button",{role:"radio","aria-checked":f,disabled:c,onClick:()=>s(g.id),style:{display:"flex",gap:"0.6rem",alignItems:"center",textAlign:"left",padding:"0.65rem 0.75rem",borderRadius:"10px",cursor:"pointer",background:f?"var(--accent-subtle)":"var(--bg-tertiary)",border:f?"1px solid var(--accent)":"1px solid var(--border-primary)",color:"var(--text-primary)"},children:[e("span",{"aria-hidden":!0,style:{width:26,height:26,borderRadius:"50%",flex:"none",background:g.swatch,border:"1px solid rgba(0,0,0,0.35)"}}),e("span",{style:{minWidth:0},children:[e("span",{style:{display:"block",fontSize:"0.85rem",fontWeight:700},children:g.label}),e("span",{style:{display:"block",fontSize:"0.75rem",color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:g.blurb})]})]},g.id)})})]})};function _a({variant:t="info",children:s,className:c=""}){return e("div",{className:`alert alert-${t} ${c}`,children:s})}const Ta={anime:"Watchlist",manga:"Reading List",tv:"TV Watchlist",asmr:"Listening List"},Te=["general","presence","server","sync","watchlist","database"],Aa=()=>{const{data:t}=fe(ee),[s,c]=Ue(),{contentType:g}=Ie(),f=s.get("tab"),[d,S]=r(f&&Te.includes(f)?f:"general"),[m,i]=r(""),a=Z(null),p=Z(null),v=Z(new Map),[u,I]=r({top:0,height:0,left:0,width:0}),{lowEndMode:l,setLowEndMode:y}=je(),{hasConsent:_,grant:P,revoke:M}=Qe(),[L,w]=r(!1),[x,O]=r(Ve),[G,o]=r(Ze),[R,A]=r(!0),{data:$}=de("discordRPCEnabled"),Q=Pe(),[N,ye]=r(!1),{data:ie}=de("frozenMode"),[Le,ve]=r(!0),{data:ae}=de("discordRPCHideMature"),[we,oe]=r(""),[ne,ce]=r(null);z(()=>{t?.owner&&k.discord.gatewayStatus.query().then(n=>{ce(n),n.masked&&n.masked!=="none"&&oe(n.masked)}).catch(()=>{})},[t?.owner]),z(()=>{$!==void 0&&A($==="true"||$===!0||$===null)},[$]),z(()=>{ae!==void 0&&ve(ae==="true"||ae===!0||ae===null)},[ae]);const xe=n=>{A(n),Q.mutate({key:"discordRPCEnabled",value:String(n)})};z(()=>{ie!==void 0&&ye(ie==="true"||ie===!0)},[ie]);const Re=n=>{ye(n),Q.mutate({key:"frozenMode",value:String(n)})},De=n=>{ve(n),Q.mutate({key:"discordRPCHideMature",value:String(n)})},Oe=n=>{O(n),Ye.setItem(Je,String(n)),window.dispatchEvent(new CustomEvent(Xe))},Ae=n=>{o(n),et(n)};Ce.useEffect(()=>{document.title="Settings - dango"},[]),Ce.useEffect(()=>{const n=s.get("tab");n&&Te.includes(n)&&S(n)},[s]);const Y=n=>{S(n),c(n==="general"?{}:{tab:n})},re=pe(()=>{const n=v.current.get(d),U=p.current;if(n&&U){const J=U.getBoundingClientRect(),W=n.getBoundingClientRect(),se=window.matchMedia("(max-width: 900px)").matches;I(se?{top:W.top-J.top,height:W.height,left:W.left-J.left,width:W.width}:{top:W.top-J.top,height:W.height,left:0,width:0})}},[d]);Ee(()=>{re()},[d,re]),z(()=>{const n=()=>re();window.addEventListener("resize",n);let U=!1;return document.fonts?.ready&&document.fonts.ready.then(()=>{U||re()}),()=>{U=!0,window.removeEventListener("resize",n)}},[d,re]);const Ge=()=>{i("Exporting databases...");const n=window.DangoBridge;if(n?.downloadFile){n.downloadFile("/api/backup-db","dango-backup.json"),setTimeout(()=>{i("Databases exported successfully!")},1500);return}const U=document.createElement("a");U.href="/api/backup-db",U.download="dango-backup.json",document.body.appendChild(U),U.click(),U.remove(),setTimeout(()=>{i("Databases exported successfully!")},1500)},Me=async n=>{const U=n.currentTarget.files?.[0];if(!U)return;i("Importing databases...");const J=new FormData;J.append("dbfile",U);try{const W=await X("/api/restore-db",{method:"POST",body:J}),se=await W.json();if(W.ok){const be=Array.isArray(se.restored)?se.restored.join(", "):null;i(be?`Databases imported successfully (${be})!`:"Database imported successfully!"),setTimeout(()=>window.location.reload(),2e3)}else i(`Import failed: ${se.error}`)}catch{i("Import failed: An unexpected error occurred.")}finally{n.currentTarget.value=""}},qe=()=>{a.current?.click()},ze=()=>{switch(d){case"general":return e("div",{className:h.tabContent,children:[e(st,{}),e("div",{className:T.sectionCard,children:[e("h3",{children:"Appearance & Preferences"}),e("p",{children:"Configure how titles are displayed and other general preferences."}),e("div",{className:h.settingItem,children:e(it,{})}),e("div",{className:h.settingItem,style:{marginTop:"1.5rem"},children:e(Na,{})}),e("div",{className:h.settingItem,style:{marginTop:"1.5rem"},children:e("div",{className:T.settingRow,children:[e("div",{style:{minWidth:0},children:[e("h4",{style:{margin:0,fontSize:"1rem"},children:"Low End Mode"}),e("p",{style:{margin:"0.25rem 0 0",fontSize:"0.85rem",color:"var(--text-secondary)"},children:"Disables animations and heavy visual effects for better performance on older hardware."})]}),e(F,{isChecked:l,onChange:n=>y(n.currentTarget.checked),id:"low-end-mode"})]})}),e("div",{className:h.settingItem,style:{marginTop:"1.5rem"},children:e("div",{className:T.settingRow,children:[e("div",{style:{minWidth:0},children:[e("h4",{style:{margin:0,fontSize:"1rem"},children:"Watched Episode Overlay"}),e("p",{style:{margin:"0.25rem 0 0",fontSize:"0.85rem",color:"var(--text-secondary)"},children:"Shows watched and completed episodes as an overlay on the player. Turn this off to use a popup instead."})]}),e(F,{isChecked:G,onChange:n=>Ae(n.currentTarget.checked),id:"watched-overlay-enabled"})]})}),e("div",{className:h.settingItem,style:{marginTop:"1.5rem"},children:e("div",{className:T.settingRow,children:[e("div",{style:{minWidth:0},children:[e("h4",{style:{margin:0,fontSize:"1rem"},children:"Virtual Keyboard"}),e("p",{style:{margin:"0.25rem 0 0",fontSize:"0.85rem",color:"var(--text-secondary)"},children:"Shows an on-screen keyboard when text search fields are focused."})]}),e(F,{isChecked:x,onChange:n=>Oe(n.currentTarget.checked),id:"virtual-keyboard-enabled"})]})}),e("div",{className:h.settingItem,style:{marginTop:"1.5rem"},children:e("div",{className:T.settingRow,children:[e("div",{style:{minWidth:0},children:[e("h4",{style:{margin:0,fontSize:"1rem"},children:"Frozen Mode"}),e("p",{style:{margin:"0.25rem 0 0",fontSize:"0.85rem",color:"var(--text-secondary)"},children:"When on, nothing is saved or synced: no watchlist, progress, resume, or settings changes, and no cloud sync (GitHub/Google/rclone) or tracker push. Useful for experimentation and private sessions."})]}),e(F,{isChecked:N,onChange:n=>Re(n.currentTarget.checked),id:"frozen-mode"})]})})]}),e("section",{className:T.sectionCard,children:[e("h3",{children:"Keyboard Shortcuts"}),e("p",{children:"Use S or Ctrl+K to focus search anywhere, or use player keys while watching."}),e("div",{className:h.shortcutContainer,children:[e("div",{className:h.shortcutGroup,children:[e("h4",{className:h.shortcutGroupTitle,children:"Search"}),e("div",{className:h.shortcutGrid,children:[e("div",{className:h.shortcutCard,children:[e("kbd",{children:"S"}),e("span",{children:"Focus search"})]}),e("div",{className:h.shortcutCard,children:[e("kbd",{children:"Ctrl + K / ⌘ + K"}),e("span",{children:"Focus search"})]})]})]}),e("div",{className:h.shortcutGroup,children:[e("h4",{className:h.shortcutGroupTitle,children:"Player"}),e("div",{className:h.shortcutGrid,children:[e("div",{className:h.shortcutCard,children:[e("kbd",{children:"Space / K"}),e("span",{children:"Play / pause"})]}),e("div",{className:h.shortcutCard,children:[e("kbd",{children:"J / L · ← / →"}),e("span",{children:"Seek back / fwd"})]}),e("div",{className:h.shortcutCard,children:[e("kbd",{children:"↑ / ↓"}),e("span",{children:"Adjust volume"})]}),e("div",{className:h.shortcutCard,children:[e("kbd",{children:"M / F"}),e("span",{children:"Mute / fullscreen"})]}),e("div",{className:h.shortcutCard,children:[e("kbd",{children:"N / P"}),e("span",{children:"Next / prev episode"})]}),e("div",{className:h.shortcutCard,children:[e("kbd",{children:"T"}),e("span",{children:"Theater mode"})]})]})]})]})]})]});case"presence":return e("div",{className:h.tabContent,children:e("div",{className:T.sectionCard,children:[e("h3",{children:"Presence & Content"}),e("p",{children:"Control what Dango shares on Discord and your mature-content preference."}),t?.owner&&e("div",{className:h.settingItem,style:{marginTop:"1.5rem"},children:e("div",{className:T.settingRow,children:[e("div",{style:{minWidth:0},children:[e("h4",{style:{margin:0,fontSize:"1rem"},children:"Discord Rich Presence"}),e("p",{style:{margin:"0.25rem 0 0",fontSize:"0.85rem",color:"var(--text-secondary)"},children:"Show your current anime and watch progress on your Discord profile status."})]}),e(F,{isChecked:R,onChange:n=>xe(n.currentTarget.checked),id:"discord-rpc-enabled"})]})}),t?.owner&&R&&e("div",{className:h.settingItem,style:{marginTop:"1rem"},children:e("div",{className:T.settingRow,children:[e("div",{style:{minWidth:0},children:[e("h4",{style:{margin:0,fontSize:"1rem"},children:"Hide Mature Content"}),e("p",{style:{margin:"0.25rem 0 0",fontSize:"0.85rem",color:"var(--text-secondary)"},children:"Hide mature content (18+) from Discord Rich Presence."})]}),e(F,{isChecked:Le,onChange:n=>De(n.currentTarget.checked),id:"discord-hide-mature"})]})}),t?.owner&&e("div",{className:h.settingItem,style:{marginTop:"1.5rem",background:"var(--bg-tertiary)",padding:"1rem",borderRadius:"8px",border:"1px solid var(--border-color)"},children:[e("div",{className:T.settingRow,children:e("div",{style:{minWidth:0},children:[e("h4",{style:{margin:0,fontSize:"1rem"},children:"Discord Mobile Presence (Gateway)"}),e("p",{style:{margin:"0.25rem 0 0.75rem",fontSize:"0.85rem",color:"var(--text-secondary)"},children:"Paste your Discord authentication token to enable presence on mobile devices. If no token is saved, the default desktop Rich Presence is used. The token is stored locally in your configuration and never shared."})]})}),e(_a,{variant:"warning",style:{marginTop:"1.25rem",paddingTop:"1.25rem"},children:[e("strong",{children:"Use at your own risk."})," This feature uses the Discord Gateway API with your user token, which violates Discord's Terms of Service. Discord may detect this usage and take action against your account, including phone number locks, temporary suspensions, or permanent bans. While the risk is generally low, it is not zero. Only use this if you understand and accept the risks."]}),e("div",{style:{marginTop:"0.75rem",display:"flex",gap:"0.5rem",alignItems:"center",flexWrap:"wrap"},children:[e("input",{type:"password",value:we,onChange:n=>oe(n.currentTarget.value),placeholder:"Paste Discord token here...",style:{flex:"1 1 200px",padding:"0.5rem",borderRadius:"4px",border:"1px solid var(--border-color)",background:"var(--bg-primary)",color:"var(--text-primary)",fontFamily:"monospace",minWidth:0}}),e(C,{variant:"primary",size:"sm",onClick:async()=>{try{const n=await k.discord.gatewaySave.mutate({token:we});ce({hasToken:!0,masked:n.masked,enabled:!0}),oe(n.masked)}catch(n){alert(n instanceof Error?n.message:"Failed to save token")}},children:"Save"}),e(C,{variant:"secondary",size:"sm",onClick:async()=>{await k.discord.gatewayRemove.mutate().catch(()=>{}),oe(""),ce({hasToken:!1,masked:null,enabled:!1})},children:"Remove"})]}),ne&&e("p",{style:{marginTop:"0.5rem",fontSize:"0.8rem",color:ne.hasToken?"green":"var(--text-secondary)"},children:["Status:"," ",ne.hasToken?`Token saved (${ne.masked})`:"No token saved",ne.enabled?" - Gateway active":""]}),t?.owner&&e(pa,{})]}),e("div",{className:h.settingItem,style:{marginTop:"1.5rem"},children:e("div",{className:T.settingRow,children:[e("div",{style:{minWidth:0},children:[e("h4",{style:{margin:0,fontSize:"1rem"},children:"Mature Content"}),e("p",{style:{margin:"0.25rem 0 0",fontSize:"0.85rem",color:"var(--text-secondary)"},children:"Allow mature content intended for adults 18 and older. Turning this off restores filtering and blur gates."})]}),e(F,{isChecked:_,onChange:n=>{n.currentTarget.checked?w(!0):(M(),window.location.reload())},id:"mature-content-enabled"})]})})]})});case"server":return e("div",{className:h.tabContent,children:[t?.owner&&e(Ca,{}),t?.owner&&e(ka,{}),t?.owner&&e(Sa,{})]});case"sync":return e("div",{className:h.tabContent,children:[e(ga,{}),e(Mt,{}),e(qt,{}),t?.owner&&e(ha,{})]});case"watchlist":return e("div",{className:h.tabContent,children:e(Bt,{})});case"database":return e("div",{className:h.tabContent,children:[e("div",{className:T.sectionCard,children:[e("h3",{children:"Database Management"}),e("p",{children:"Download a backup of all databases (anime, manga, TV and ASMR) or restore from a backup file. Legacy single-file anime (.db) backups can still be restored."}),e("div",{className:h.controls,children:[e(C,{onClick:Ge,children:"Backup Database"}),e(C,{variant:"secondary",onClick:qe,children:"Restore Database"})]}),e("input",{type:"file",ref:a,onChange:Me,style:{position:"absolute",width:1,height:1,opacity:0,overflow:"hidden"},accept:".json,.db,application/octet-stream"}),m&&e("p",{className:h.status,children:m})]}),t?.owner&&e(oa,{}),e(ua,{})]});default:return null}};return e("div",{className:"page-container",children:[e("div",{className:h.settingsHeader,children:[e("h1",{className:h.pageTitle,children:"Settings"}),e("p",{className:h.pageSubtitle,children:"Manage your preferences and data synchronization"})]}),e("div",{className:h.settingsLayout,children:[e("aside",{className:h.sidebar,ref:p,children:[e("div",{className:h.sidebarIndicator,style:{top:u.top,height:u.height,left:u.left,...u.width?{width:u.width}:{}}}),e("button",{ref:n=>{n&&v.current.set("general",n)},className:`${h.sidebarItem} ${d==="general"?h.active:""}`,onClick:()=>Y("general"),children:[e(j,{name:"cog"})," ",e("span",{children:"General"})]}),e("button",{ref:n=>{n&&v.current.set("presence",n)},className:`${h.sidebarItem} ${d==="presence"?h.active:""}`,onClick:()=>Y("presence"),children:[e(j,{name:"discord"})," ",e("span",{children:"Presence"})]}),e("button",{ref:n=>{n&&v.current.set("server",n)},className:`${h.sidebarItem} ${d==="server"?h.active:""}`,onClick:()=>Y("server"),children:[e(j,{name:"server"})," ",e("span",{children:"Server"})]}),e("button",{ref:n=>{n&&v.current.set("sync",n)},className:`${h.sidebarItem} ${d==="sync"?h.active:""}`,onClick:()=>Y("sync"),children:[e(j,{name:"cloud"})," ",e("span",{children:"Synchronization"})]}),e("button",{ref:n=>{n&&v.current.set("watchlist",n)},className:`${h.sidebarItem} ${d==="watchlist"?h.active:""}`,onClick:()=>Y("watchlist"),children:[e(j,{name:"list"})," ",e("span",{children:Ta[g]})]}),e("button",{ref:n=>{n&&v.current.set("database",n)},className:`${h.sidebarItem} ${d==="database"?h.active:""}`,onClick:()=>Y("database"),children:[e(j,{name:"database"})," ",e("span",{children:"Database"})]})]}),e("main",{className:h.mainContent,children:e("div",{className:h.tabContent,children:ze()},d)})]}),e(tt,{isOpen:L,onClose:()=>w(!1),onGrant:()=>{P(),w(!1)},scope:"section"})]})};export{Aa as default};
@@ -1 +0,0 @@
1
- ._fadeImage_1bp3x_1{opacity:0;transition:opacity .4s ease}._fadeImage_1bp3x_1._loaded_1bp3x_6{opacity:1}._overlay_5hzq9_1{position:fixed;inset:0;background-color:#0009;z-index:var(--z-modal);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);animation:_fadeIn_5hzq9_1 .2s ease-out}._content_5hzq9_11{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:calc(var(--z-modal) + 1);background-color:var(--bg-secondary);padding:var(--space-6);border-radius:var(--radius-lg);width:100%;max-width:min(500px,calc(100vw - 2 * var(--space-4)));max-height:calc(100vh - 2 * var(--space-4));overflow-y:auto;box-shadow:var(--shadow-xl);border:1px solid var(--border-primary);animation:_modalIn_5hzq9_1 .2s var(--ease-smooth)}._sm_5hzq9_29{max-width:min(400px,calc(100vw - 2 * var(--space-4)))}._md_5hzq9_33{max-width:min(500px,calc(100vw - 2 * var(--space-4)))}._lg_5hzq9_37{max-width:min(700px,calc(100vw - 2 * var(--space-4)))}._title_5hzq9_41{margin:0 0 var(--space-4);font-size:var(--font-size-xl);font-weight:var(--font-weight-bold);color:var(--text-primary)}._closeButton_5hzq9_48{position:absolute;top:var(--space-3);right:var(--space-3);display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:none;border-radius:var(--radius-md);background:transparent;color:var(--text-secondary);cursor:pointer;opacity:.6;transition:opacity .15s ease,background-color .15s ease}._closeButton_5hzq9_48:hover{opacity:1;background-color:var(--bg-tertiary)}._body_5hzq9_74{color:var(--text-secondary)}._footer_5hzq9_78{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--space-3);margin-top:var(--space-6);padding-top:var(--space-4);border-top:1px solid var(--border-primary)}._footer_5hzq9_78>*{flex:0 1 auto;min-width:0;max-width:100%}@media(max-width:480px){._content_5hzq9_11{padding:var(--space-4)}._footer_5hzq9_78{flex-direction:column;align-items:stretch;justify-content:flex-start}._footer_5hzq9_78>*{flex:1 1 auto;width:100%}}@keyframes _fadeIn_5hzq9_1{0%{opacity:0}to{opacity:1}}@keyframes _modalIn_5hzq9_1{0%{opacity:0;transform:translate(-50%,-50%) scale(.95)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}._container_jzirm_1{position:relative;display:flex;align-items:center}._bellBtn_jzirm_7{background:var(--header-btn-bg, rgba(255, 255, 255, .05));backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--header-control-border, rgba(255, 255, 255, .08));color:var(--text-primary);font-size:1.25rem;cursor:pointer;padding:var(--space-2);display:flex;align-items:center;justify-content:center;transition:transform var(--transition-fast),background var(--transition-fast);position:relative;width:50px;height:50px;border-radius:50%}._bellBtn_jzirm_7:hover{background:var(--header-btn-bg-hover, rgba(0, 0, 0, .25));border-color:#ffffff59;transform:translateY(-1px)}._bellBtn_jzirm_7:focus-visible{outline:none;box-shadow:var(--shadow-focus)}._badge_jzirm_39{position:absolute;top:6px;right:6px;background-color:var(--color-danger);color:#fff;font-size:.62rem;font-weight:700;min-width:18px;height:18px;padding:0 4px;border-radius:999px;display:flex;align-items:center;justify-content:center;text-align:center;border:none;pointer-events:none;animation:_badgePulse_jzirm_1 1.8s ease-in-out 2;line-height:1}@keyframes _badgePulse_jzirm_1{50%{box-shadow:0 0 0 4px var(--accent-subtle)}}._dropdown_jzirm_67{position:fixed;top:calc(var(--vv-top, 0px) + var(--header-height, 64px) + var(--space-3));right:max(var(--space-4),calc((100vw - var(--max-width)) / 2 + var(--space-8)));width:min(420px,calc(100vw - 2rem));max-height:min(620px,calc(100vh - var(--header-height, 64px) - 2rem));background:var(--glass-bg);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--border-secondary);border-radius:var(--radius-lg);box-shadow:var(--shadow-xl);z-index:var(--z-header);overflow:hidden;display:flex;flex-direction:column;animation:_slideIn_jzirm_1 .18s ease-out}@keyframes _slideIn_jzirm_1{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}._dropdownHeader_jzirm_98{padding:var(--space-4);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border-primary)}._headerSubtitle_jzirm_106{display:block;margin-top:2px;font-size:var(--font-size-xs);color:var(--text-muted)}._headerActions_jzirm_113{display:flex;align-items:center;gap:var(--space-2)}._closeBtn_jzirm_119{display:none;align-items:center;justify-content:center;width:36px;height:36px;border:0;border-radius:var(--radius-full);color:var(--text-secondary);background:#ffffff0f;cursor:pointer}._sectionHeading_jzirm_132{margin:0;padding:var(--space-3) var(--space-4) var(--space-2);color:var(--text-muted);font-size:var(--font-size-xs);font-weight:700;letter-spacing:.06em;text-transform:uppercase}._dropdownHeader_jzirm_98 h4{margin:0;font-size:1rem;color:var(--text-primary)}._clearAllBtn_jzirm_148{background:none;border:1px solid var(--border-secondary);color:var(--accent-light);font-size:var(--font-size-xs);font-weight:600;cursor:pointer;padding:var(--space-1) var(--space-3);border-radius:var(--radius-full);transition:all var(--transition-fast)}._clearAllBtn_jzirm_148:hover{background:var(--accent-subtle);border-color:var(--border-accent);color:var(--accent-lighter)}._discoveryStatusRow_jzirm_166{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-4);font-size:.72rem;color:var(--text-muted);background:#ffffff08;border-bottom:1px solid var(--border-primary)}._statusDot_jzirm_177{width:8px;height:8px;border-radius:50%;flex-shrink:0}._statusDotRunning_jzirm_184{background:var(--accent);animation:_statusPulse_jzirm_1 1.2s ease-in-out infinite}._statusDotOk_jzirm_189{background:var(--color-success)}._statusDotInfo_jzirm_193{background:var(--color-info)}._statusDotError_jzirm_197{background:var(--color-danger)}._statusDotIdle_jzirm_201{background:var(--text-muted)}@keyframes _statusPulse_jzirm_1{0%,to{opacity:1}50%{opacity:.35}}._list_jzirm_216{overflow-y:auto;flex:1}._list_jzirm_216::-webkit-scrollbar{width:4px}._list_jzirm_216::-webkit-scrollbar-thumb{background:var(--border-secondary);border-radius:2px}._item_jzirm_230{display:flex;align-items:center;padding:var(--space-3) var(--space-4);gap:var(--space-3);text-decoration:none;transition:background var(--transition-fast);border-bottom:1px solid var(--border-primary);position:relative}._itemTitleLink_jzirm_241{display:block;text-decoration:none;border-radius:var(--radius-sm)}._itemTitleLink_jzirm_241:focus-visible,._systemItemMeta_jzirm_248:focus-visible,._removeItem_jzirm_249:focus-visible,._clearAllBtn_jzirm_148:focus-visible,._modalButton_jzirm_251:focus-visible{outline:none;box-shadow:var(--shadow-focus)}._item_jzirm_230:hover{background:#ffffff0d}._systemItem_jzirm_248{background:#ffffff06}._systemIcon_jzirm_264{width:42px;height:42px;display:grid;place-items:center;border-radius:var(--radius-md);color:var(--accent-light);background:var(--accent-subtle);flex-shrink:0}._thumbWrap_jzirm_275{width:48px;height:64px;border-radius:var(--radius-sm);background:var(--bg-tertiary);flex-shrink:0;overflow:hidden}._thumbnail_jzirm_284{width:48px;height:64px;border-radius:var(--radius-sm);object-fit:cover;flex-shrink:0;box-shadow:0 2px 8px #0000004d}._itemInfo_jzirm_293{flex:1;min-width:0}._itemTitle_jzirm_241{display:block;font-size:.85rem;font-weight:600;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:var(--space-1)}._itemMeta_jzirm_309{display:inline-block;font-size:.7rem;background:var(--accent);color:var(--accent-text);padding:1px 6px;border-radius:var(--radius-sm);font-weight:600}._systemItemMeta_jzirm_248{display:inline-block;font-size:.7rem;background:none;color:var(--text-muted);padding:0;text-align:left;font:inherit;font-size:var(--font-size-xs);line-height:1.5;border:0;cursor:pointer;transition:background var(--transition-fast)}._systemItemMeta_jzirm_248:hover{color:var(--text-primary)}._systemItemMeta_jzirm_248 span{color:var(--accent-light);white-space:nowrap}._removeItem_jzirm_249{background:none;border:none;color:var(--text-muted);font-size:var(--font-size-xs);cursor:pointer;padding:var(--space-2);display:flex;align-items:center;justify-content:center;opacity:0;border-radius:var(--radius-sm);transition:opacity var(--transition-fast),color var(--transition-fast)}._item_jzirm_230:hover ._removeItem_jzirm_249{opacity:1}@media(hover:none),(pointer:coarse){._removeItem_jzirm_249{opacity:1}}._removeItem_jzirm_249:hover{color:var(--color-danger)}._queueItem_jzirm_374:hover{color:var(--color-success)}._modalButton_jzirm_251{background:var(--accent);color:var(--accent-text);border:0;padding:var(--space-2) var(--space-4);border-radius:var(--radius-md);cursor:pointer;font-weight:600}._fullMessage_jzirm_388{margin:0;line-height:1.6;white-space:pre-wrap}._emptyState_jzirm_394{min-height:260px;padding:var(--space-10) var(--space-6);text-align:center;color:var(--text-muted);font-size:var(--font-size-sm);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-2)}._emptyState_jzirm_394 strong{color:var(--text-primary);font-size:var(--font-size-base)}._emptyIcon_jzirm_412{width:48px;height:48px;margin-bottom:var(--space-2);border-radius:var(--radius-full);display:grid;place-items:center;color:var(--accent-light);background:var(--accent-subtle)}@media(max-width:768px){._dropdown_jzirm_67{position:fixed;top:calc(var(--header-height, 64px) + env(safe-area-inset-top,0px));left:env(safe-area-inset-left,0px);right:env(safe-area-inset-right,0px);width:auto;height:calc(100dvh - var(--header-height, 64px) - env(safe-area-inset-top,0px));max-height:none;border-radius:0 0 var(--radius-lg) var(--radius-lg);animation:_mobileSheetIn_jzirm_1 .2s ease-out;padding-bottom:env(safe-area-inset-bottom,0px)}._removeItem_jzirm_249{padding:var(--space-2);min-width:36px;min-height:36px}._badge_jzirm_39{top:5px;right:6px;font-size:.58rem;min-width:16px;height:16px;padding:0 3px}._list_jzirm_216{overscroll-behavior:contain}._dropdownHeader_jzirm_98,._discoveryStatusRow_jzirm_166{flex-shrink:0}._closeBtn_jzirm_119{display:flex}}@media(max-width:480px){._bellBtn_jzirm_7{width:42px;height:42px}}@keyframes _mobileSheetIn_jzirm_1{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){._dropdown_jzirm_67,._bellBtn_jzirm_7,._badge_jzirm_39,._statusDotRunning_jzirm_184{animation:none;transition:none}}._notificationDivider_jzirm_495{height:1px;flex-shrink:0;margin:var(--space-2) 0;background:var(--border-primary)}.skeleton{position:relative;overflow:hidden;background-color:var(--bg-tertiary);border-radius:var(--radius-sm)}.skeleton:after{position:absolute;inset:0;transform:translate(-100%);background-image:linear-gradient(90deg,#fff0 0,#ffffff0d 20%,#ffffff1f 60%,#fff0);animation:shimmer 1.8s infinite ease-in-out;content:""}.skeleton-text{border-radius:var(--radius-sm);height:1em}.skeleton-circular{border-radius:50%}.skeleton-rectangular{border-radius:var(--radius-md)}.skeleton-card{display:flex;flex-direction:column;background:var(--bg-secondary);border:1px solid var(--border-primary);border-radius:var(--radius-lg);overflow:hidden}@keyframes shimmer{to{transform:translate(100%)}}._logo_hls4o_1{height:var(--logo-height, 75px);display:inline-flex;align-items:center;gap:calc(var(--logo-height, 75px) * .18);overflow:visible;flex-shrink:0}._img_hls4o_10{height:calc(var(--logo-height, 75px) * var(--logo-scale, 1.9));width:auto;display:block;object-fit:contain;-webkit-user-select:none;user-select:none;align-self:flex-end;margin-bottom:calc(var(--logo-height, 75px) * var(--logo-drop, -.7));flex-shrink:0}._word_hls4o_21{font-family:var(--font-family);font-size:calc(var(--logo-height, 75px) * .68);font-weight:700;letter-spacing:-.03em;line-height:1;color:var(--text-primary);transition:color var(--transition-fast);white-space:nowrap;flex-shrink:0}._logo_hls4o_1:hover ._word_hls4o_21{color:var(--accent)}._header_19a0e_1{height:var(--header-height);--logo-height: 42px;--header-control-bg: rgba(255, 255, 255, .045);--header-control-border: rgba(255, 255, 255, .07);--header-btn-bg: rgba(255, 255, 255, .045);background:transparent;border-bottom:1px solid transparent;position:fixed;top:var(--vv-top, 0px);left:0;right:0;z-index:var(--z-header);display:flex;align-items:center;justify-content:center;transition:transform var(--transition-slow),background-color var(--transition-base),border-color var(--transition-base),box-shadow var(--transition-base)}._header_19a0e_1._hidden_19a0e_24{transform:translateY(-100%)}._header_19a0e_1._scrolled_19a0e_28{background-color:#13151dd9;backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 8px 32px #00000073;--header-btn-bg-hover: rgba(255, 255, 255, .1)}._logo_19a0e_37{display:flex;align-items:center;justify-content:center;padding:6px 12px;background:var(--header-btn-bg, rgba(255, 255, 255, .05));border:1px solid var(--header-control-border, rgba(255, 255, 255, .08));border-radius:var(--radius-full);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);transition:opacity var(--transition-base),transform var(--transition-fast)}._logo_19a0e_37:hover{opacity:.9;transform:translate(2px)}._logoCollapsed_19a0e_57{display:none}._logoFull_19a0e_61,._logoCollapsed_19a0e_57{--logo-scale: 1.7;--logo-drop: -.29}._headerInner_19a0e_67{width:100%;max-width:var(--max-width);margin:0 auto;padding:0 var(--space-8);display:flex;align-items:center;justify-content:space-between}._leftSection_19a0e_77{display:flex;align-items:center;gap:var(--space-2)}._desktopNav_19a0e_83{display:flex;align-items:center;gap:var(--space-1);margin-left:var(--space-6);padding:4px 6px;background:var(--header-btn-bg, rgba(255, 255, 255, .05));backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--header-control-border, rgba(255, 255, 255, .08));border-radius:var(--radius-full)}._navLink_19a0e_96{color:var(--text-muted);font-weight:500;font-size:var(--font-size-sm);padding:var(--space-2) var(--space-3);border-radius:var(--radius-full);text-decoration:none;transition:all var(--transition-fast);position:relative;letter-spacing:.01em;background:none;z-index:1}._navLink_19a0e_96:hover{color:var(--text-primary);background:#ffffff08}._navLinkActive_19a0e_115{color:#fff;font-weight:600;background:transparent}._navPill_19a0e_121{position:absolute;top:4px;bottom:4px;background:#ffffff12;border-radius:var(--radius-full);transition:left .25s cubic-bezier(.22,1,.36,1),width .25s cubic-bezier(.22,1,.36,1),opacity .2s ease;pointer-events:none;z-index:0}._navLinkActive_19a0e_115:after{display:none}._rightSection_19a0e_139{display:flex;align-items:center;gap:var(--space-3)}._searchWrapper_19a0e_145{position:relative;display:flex;align-items:center;background:var(--header-btn-bg, rgba(255, 255, 255, .05));backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--header-control-border, rgba(255, 255, 255, .08));border-radius:var(--radius-full);height:50px;padding:0 10px 0 14px;gap:8px;transition:all var(--transition-base);cursor:text}._searchWrapper_19a0e_145:hover{background:var(--header-btn-bg-hover, rgba(255, 255, 255, .08));border-color:#ffffff38}._searchWrapper_19a0e_145:focus-within{background:#0f1118f2;border-color:#ffffff59;box-shadow:0 4px 20px #00000059}._searchIconButton_19a0e_172{display:inline-flex;align-items:center;justify-content:center;padding:0;border:none;background:none;color:inherit;cursor:pointer;flex-shrink:0}._searchIcon_19a0e_172{font-size:.95rem;color:#fff9;flex-shrink:0;transition:color var(--transition-fast)}._searchIconButton_19a0e_172:hover ._searchIcon_19a0e_172{color:var(--accent)}._searchWrapper_19a0e_145:focus-within ._searchIcon_19a0e_172{color:#fff}._searchInput_19a0e_199{width:160px;opacity:1;padding:0;border:none;background:transparent;color:var(--text-primary);font-size:var(--font-size-sm);font-family:inherit;height:100%;pointer-events:auto;outline:none;transition:width var(--transition-base)}._searchInput_19a0e_199:focus,._searchInput_19a0e_199:focus-visible,input._searchInput_19a0e_199:focus,input._searchInput_19a0e_199:focus-visible{outline:none!important;outline-offset:0!important;box-shadow:none!important;border:none!important}._searchInput_19a0e_199::placeholder{color:#ffffff8c}._searchWrapper_19a0e_145:focus-within ._searchInput_19a0e_199{width:230px}._searchKbd_19a0e_232{display:inline-flex;align-items:center;justify-content:center;padding:3px 6px;font-size:.68rem;font-weight:700;color:var(--text-muted);background:#ffffff14;border:1px solid rgba(255,255,255,.12);border-radius:var(--radius-sm);letter-spacing:.02em;white-space:nowrap;pointer-events:none;-webkit-user-select:none;user-select:none;transition:opacity var(--transition-fast)}._searchKbdHidden_19a0e_250{opacity:0;pointer-events:none}._searchButton_19a0e_255{display:none;cursor:pointer}._searchButton_19a0e_255:hover{opacity:.9;transform:translateY(-1px)}._profileBtn_19a0e_265{height:50px;border-radius:var(--radius-full);gap:var(--space-2);padding-right:var(--space-3);text-decoration:none;overflow:hidden;border:1px solid var(--header-control-border, rgba(255, 255, 255, .08));cursor:pointer;transition:all var(--transition-base);display:flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--header-btn-bg, rgba(255, 255, 255, .05));backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:var(--text-primary)}._profileBtn_19a0e_265:hover{border-color:#ffffff59;transform:translateY(-1px);background:var(--header-btn-bg-hover, rgba(0, 0, 0, .25))}._profileBtn_19a0e_265:active{transform:scale(.95)}._profileBtn_19a0e_265 svg{color:var(--text-primary);font-size:1.1rem}._profileAvatar_19a0e_300{width:50px;height:50px;display:flex;flex-shrink:0}._profileName_19a0e_307{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--font-size-sm);font-weight:500}._hamburgerBtn_19a0e_316{background:transparent;border:none;color:var(--text-primary);font-size:1.25rem;padding:var(--space-2);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;height:40px;width:40px;flex-shrink:0}._hamburgerBtn_19a0e_316:hover{background:var(--header-btn-bg-hover, rgba(255, 255, 255, .08))}._searchButton_19a0e_255:focus-visible,._profileBtn_19a0e_265:focus-visible,._hamburgerBtn_19a0e_316:focus-visible,._logo_19a0e_37:focus-visible{outline:none;box-shadow:var(--shadow-focus)}._searchDropdown_19a0e_344{position:absolute;top:calc(100% + var(--space-8));left:0;right:0;width:auto;max-height:min(520px,calc(100vh - var(--header-height, 64px) - 2rem));background:var(--glass-bg);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--border-secondary);border-radius:var(--radius-lg);box-shadow:var(--shadow-xl);z-index:var(--z-header);overflow:hidden;display:flex;flex-direction:column;animation:_slideIn_19a0e_1 .18s ease-out}@media(max-width:1200px){._searchDropdown_19a0e_344{position:fixed;top:calc(var(--header-height, 64px) + env(safe-area-inset-top,0px) + 56px);left:env(safe-area-inset-left,0px);right:env(safe-area-inset-right,0px);width:auto;max-height:calc(100dvh - var(--header-height, 64px) - env(safe-area-inset-top,0px) - 56px);border-radius:0 0 var(--radius-lg) var(--radius-lg);padding-bottom:env(safe-area-inset-bottom,0px)}._searchDropdownNoBar_19a0e_376{top:calc(var(--header-height, 64px) + env(safe-area-inset-top,0px) + var(--space-3));max-height:calc(100dvh - var(--header-height, 64px) - env(safe-area-inset-top,0px) - var(--space-3))}}._searchDropdownHeader_19a0e_384{padding:var(--space-4);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border-primary)}._searchDropdownQuery_19a0e_392{font-size:.85rem;font-weight:600;color:var(--text-primary)}._searchDropdownSeeAll_19a0e_398{background:none;border:none;color:var(--accent-light);font-size:var(--font-size-xs);font-weight:600;cursor:pointer;padding:var(--space-1) var(--space-3);border-radius:var(--radius-full);transition:all var(--transition-fast)}._searchDropdownSeeAll_19a0e_398:hover{background:var(--accent-subtle);color:var(--accent-lighter)}._searchDropdownList_19a0e_415{overflow-y:auto;flex:1}._searchDropdownList_19a0e_415::-webkit-scrollbar{width:4px}._searchDropdownList_19a0e_415::-webkit-scrollbar-thumb{background:var(--border-secondary);border-radius:2px}._searchDropdownItem_19a0e_429{display:flex;align-items:center;padding:var(--space-3) var(--space-4);gap:var(--space-3);background:none;border:none;border-bottom:1px solid var(--border-primary);cursor:pointer;text-align:left;transition:background var(--transition-fast);width:100%}._searchDropdownItem_19a0e_429:hover{background:#ffffff0d}._searchDropdownThumb_19a0e_447{width:48px;height:64px;border-radius:var(--radius-sm);object-fit:cover;flex-shrink:0;box-shadow:0 2px 8px #0000004d}._searchDropdownItemInfo_19a0e_456{display:flex;flex-direction:column;gap:2px;min-width:0}._searchDropdownItemTitle_19a0e_463{font-size:.85rem;font-weight:600;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._searchDropdownItemMeta_19a0e_472{font-size:.7rem;color:var(--text-muted);white-space:nowrap}@keyframes _slideIn_19a0e_1{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}._logo_19a0e_37:active,._searchButton_19a0e_255:active,._profileBtn_19a0e_265:active,._hamburgerBtn_19a0e_316:active{transform:scale(.97)}@media(prefers-reduced-motion:reduce){._logo_19a0e_37,._searchButton_19a0e_255,._profileBtn_19a0e_265,._hamburgerBtn_19a0e_316,._searchIcon_19a0e_172{transition:none}}._hamburgerBtn_19a0e_316:active{transform:scale(.95)}._mobileSearchBar_19a0e_511{display:none}@media(max-width:1200px){._searchWrapper_19a0e_145{background:transparent;border:1px solid transparent;padding:0;height:auto;cursor:default;backdrop-filter:none;-webkit-backdrop-filter:none}._searchWrapper_19a0e_145:hover{background:transparent;border-color:transparent}._searchWrapper_19a0e_145:focus-within{background:transparent;box-shadow:none;border-color:transparent}._searchIconButton_19a0e_172,._searchIcon_19a0e_172,._searchInput_19a0e_199{display:none}._searchWrapper_19a0e_145:focus-within ._searchInput_19a0e_199{display:none}._searchKbd_19a0e_232{display:none}._searchButton_19a0e_255{display:flex;background:var(--header-btn-bg, rgba(255, 255, 255, .05));backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid transparent;color:var(--text-primary);padding:0;align-items:center;justify-content:center;cursor:pointer;pointer-events:auto;width:50px;height:50px;border-radius:50%;transition:all var(--transition-base);flex-shrink:0}._searchButton_19a0e_255:hover{background:var(--header-btn-bg-hover, rgba(0, 0, 0, .25));border-color:#ffffff59;transform:translateY(-1px)}._searchIconMobile_19a0e_582{font-size:1rem;color:#fff;transition:all var(--transition-base)}._searchButton_19a0e_255:hover ._searchIconMobile_19a0e_582{color:var(--accent)}._mobileSearchBar_19a0e_511{display:block;position:absolute;top:100%;left:0;right:0;background:#0c0c0feb;backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);border-bottom:1px solid rgba(255,255,255,.07);padding:var(--space-2) var(--space-3);animation:_slideDown_19a0e_1 .2s ease;transition:transform var(--transition-base),opacity var(--transition-base)}._mobileSearchBarHidden_19a0e_609{transform:translateY(-100%);opacity:0;pointer-events:none}@keyframes _slideDown_19a0e_1{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}._mobileSearchInner_19a0e_627{display:flex;align-items:center;background:#ffffff14;border:none;border-radius:var(--radius-full);padding:0 var(--space-4);height:40px}._mobileSearchInner_19a0e_627:focus-within{border:none;outline:none;box-shadow:0 0 0 2px var(--accent)}._mobileSearchIcon_19a0e_643{color:#ffffff80;font-size:.85rem;flex-shrink:0;margin-right:var(--space-2)}._mobileSearchInput_19a0e_650{flex:1;background:transparent;border:none;outline:none;color:var(--text-primary);font-size:var(--font-size-sm);font-family:inherit;height:100%}._mobileSearchInput_19a0e_650::placeholder{color:#ffffff80}._mobileSearchInput_19a0e_650:focus,input._mobileSearchInput_19a0e_650:focus,._mobileSearchInput_19a0e_650:focus-visible,input._mobileSearchInput_19a0e_650:focus-visible{outline:none!important;box-shadow:none!important;border:none}}@media(max-width:920px){._profileBtn_19a0e_265{width:50px;height:50px;padding:0}._profileName_19a0e_307{display:none}}@media(max-width:805px){._desktopNav_19a0e_83{display:none}}@media(max-width:542px){._rightSection_19a0e_139{gap:4px}._hamburgerBtn_19a0e_316{height:38px;width:38px;font-size:1rem}}@media(max-width:480px){._logoFull_19a0e_61{display:none}._logoCollapsed_19a0e_57{display:inline-flex}._logo_19a0e_37{padding:6px 12px;border-radius:var(--radius-full)}._searchButton_19a0e_255,._profileBtn_19a0e_265,._profileAvatar_19a0e_300{width:42px;height:42px}}._sidebar_1wvzm_1{position:fixed;top:0;left:0;width:280px;max-width:85vw;height:100%;transition:transform var(--transition-normal);z-index:var(--z-sidebar);padding:var(--space-8) var(--space-6);display:flex;flex-direction:column;overflow-y:auto;transform:translate(-100%);background-color:#0a0a0cf2;color:var(--text-primary);border-right:1px solid var(--border-primary)}._sidebar_1wvzm_1._open_1wvzm_20{transform:translate(0);box-shadow:20px 0 60px #00000080}._sidebarHeader_1wvzm_25{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--space-10);position:relative}._closeBtn_1wvzm_33{position:absolute;top:0;right:0;background:none;border:none;font-size:1.25rem;line-height:1;cursor:pointer;color:var(--text-tertiary);transition:color var(--transition-base);display:flex;align-items:center;justify-content:center;padding:var(--space-1);width:32px;height:32px;border-radius:var(--radius-sm)}._closeBtn_1wvzm_33:hover{color:var(--text-primary)}._logo_1wvzm_57{display:flex;align-items:center;text-decoration:none;--logo-height: 50px;--logo-scale: 1.7;--logo-drop: -.5;transition:opacity var(--transition-base)}._logo_1wvzm_57:hover{opacity:.8}._navSection_1wvzm_71{display:flex;flex-direction:column;gap:var(--space-1)}._navLink_1wvzm_77{display:flex;align-items:center;gap:var(--space-4);padding:var(--space-3) var(--space-4);border-radius:var(--radius-md);text-decoration:none;transition:all var(--transition-base);color:var(--text-secondary);font-weight:var(--font-weight-medium);font-size:var(--font-size-base);border-left:2px solid transparent;margin-left:var(--space-2)}._navLink_1wvzm_77 svg{font-size:1rem;width:20px;text-align:center;flex-shrink:0;transition:color var(--transition-base)}._navLink_1wvzm_77:hover{background-color:#ffffff0a;color:var(--text-primary);border-left-color:#ffffff26}._navLink_1wvzm_77:hover svg{color:var(--text-primary)}._navLink_1wvzm_77._active_1wvzm_110{background-color:color-mix(in srgb,var(--accent) 10%,transparent);color:var(--accent-light);border-left-color:var(--accent)}._navLink_1wvzm_77._active_1wvzm_110 svg{color:var(--accent)}._overlay_1wvzm_120{position:fixed;inset:0;background-color:#0009;z-index:calc(var(--z-sidebar) - 1);animation:_fadeIn_1wvzm_1 .3s ease-out}@keyframes _fadeIn_1wvzm_1{0%{opacity:0}to{opacity:1}}._versionInfo_1wvzm_140{margin-top:auto;padding-top:var(--space-8);font-size:1rem;color:var(--text-secondary);text-align:left;display:flex;align-items:center;gap:var(--space-2)}._versionInfo_1wvzm_140:before{content:"";display:block;width:5px;height:5px;border-radius:50%;background-color:var(--color-success)}@media(max-width:768px){._sidebar_1wvzm_1{width:260px;padding:var(--space-6) var(--space-4)}._sidebarHeader_1wvzm_25{margin-bottom:var(--space-8)}._logo_1wvzm_57{--logo-height: 48px}._navLink_1wvzm_77{padding:var(--space-3) var(--space-3)}}._footer_n8m6y_1{width:100%;position:relative;z-index:2;padding:0 var(--space-8) var(--space-8);overflow:visible;border-top:1px solid rgba(255,255,255,.08);margin-top:auto;background:linear-gradient(180deg,#0a0a0c99,#050507f2);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);color:var(--text-tertiary);font-size:var(--font-size-sm)}._footerInner_n8m6y_16{width:100%;max-width:var(--max-width);margin:0 auto;display:grid;grid-template-columns:1fr auto;align-items:start;gap:var(--space-12);padding-bottom:var(--space-8);border-bottom:1px solid rgba(255,255,255,.06)}._brandSection_n8m6y_28{grid-column:1;display:flex;flex-direction:column;align-items:flex-start;text-align:left;max-width:320px;position:relative;padding-top:0;margin-top:-30px}._logoRow_n8m6y_40{display:flex;align-items:center;gap:14px;--logo-height: 60px}._logoRow_n8m6y_40 a{display:flex;align-items:flex-end;height:calc(var(--logo-height) * 1.9);margin-top:calc(var(--logo-height) * -.9)}._logoText_n8m6y_54{--logo-height: 60px;--logo-scale: 1.5;--logo-drop: -.075;width:auto}._brandMeta_n8m6y_61{display:flex;align-items:center;justify-content:flex-start;gap:var(--space-2);flex-wrap:wrap;margin-top:10px}._brandTagline_n8m6y_70{color:var(--text-secondary);font-size:.88rem;line-height:1.5;margin:0}._statusPill_n8m6y_77{display:inline-flex;align-items:center;gap:var(--space-2);padding:4px 12px;background:#ffffff0a;border:1px solid rgba(255,255,255,.08);border-radius:var(--radius-full);font-size:.78rem;color:var(--text-secondary);width:fit-content}._statusDot_n8m6y_90{width:7px;height:7px;border-radius:50%;background:var(--color-success);box-shadow:0 0 8px var(--color-success)}._linksGrid_n8m6y_98{grid-column:2;display:flex;gap:var(--space-8);justify-content:flex-end;padding-top:var(--space-8)}._linkColumn_n8m6y_106{display:flex;flex-direction:column;gap:var(--space-2)}._columnTitle_n8m6y_112{color:var(--text-primary);font-size:.9rem;font-weight:700;margin:0 0 var(--space-2);text-transform:uppercase;letter-spacing:.05em}._footer_n8m6y_1 a{color:var(--text-secondary);text-decoration:none;font-weight:500;font-size:.88rem;transition:all var(--transition-fast);display:inline-flex;align-items:center}._footer_n8m6y_1 a:hover{color:var(--accent);transform:translate(2px)}._bottomBar_n8m6y_136{position:relative;width:100%;max-width:var(--max-width);margin:var(--space-6) auto 0;display:flex;align-items:center;justify-content:center}._copyright_n8m6y_146{margin:0;color:var(--text-muted);font-size:.85rem;display:flex;align-items:center;justify-content:center;gap:4px;text-align:center}._brand_n8m6y_28{color:var(--accent);font-weight:700}._heartIcon_n8m6y_162{color:var(--color-danger);margin:0 2px}._backToTop_n8m6y_167{position:absolute;right:0;display:inline-flex;align-items:center;gap:var(--space-2);padding:6px 14px;background:#ffffff0d;border:1px solid rgba(255,255,255,.12);border-radius:var(--radius-full);color:var(--text-secondary);font-size:.8rem;font-weight:600;cursor:pointer;transition:all var(--transition-base)}._backToTop_n8m6y_167:hover{background:#ffffff1f;color:#fff;border-color:var(--accent);transform:translateY(-2px)}@media(max-width:768px){._footer_n8m6y_1{padding:0 var(--space-4) var(--space-6)}._footerInner_n8m6y_16{grid-template-columns:1fr;gap:var(--space-5);align-items:center;justify-items:center}._brandSection_n8m6y_28{grid-column:1;align-items:center;text-align:center;padding-top:0;justify-content:center;margin-top:-26px}._logoRow_n8m6y_40{flex-direction:column;align-items:center;gap:6px;--logo-height: 52px}._logoText_n8m6y_54{--logo-height: 52px}._brandMeta_n8m6y_61{flex-direction:column;align-items:center;gap:var(--space-1);justify-content:center;margin-top:8px}._linksGrid_n8m6y_98{grid-column:1;display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-4);text-align:center}._linkColumn_n8m6y_106{align-items:center;gap:var(--space-1)}._columnTitle_n8m6y_112{margin:0 0 var(--space-1);font-size:.78rem}._footer_n8m6y_1 a{font-size:.82rem}._bottomBar_n8m6y_136{flex-direction:column;gap:var(--space-3);text-align:center}._copyright_n8m6y_146{font-size:.78rem}._backToTop_n8m6y_167{position:static}}._container_e96gf_1{display:flex;flex-direction:column;gap:1rem;color:var(--text-primary);max-width:400px}._field_e96gf_9{display:flex;flex-direction:column;gap:.5rem}._field_e96gf_9 label{font-size:.9rem;opacity:.8}._textarea_e96gf_20{background:var(--bg-secondary);border:1px solid var(--border-primary);color:var(--text-primary);padding:.5rem;border-radius:4px;resize:vertical;font-family:inherit}._textarea_e96gf_20:hover{border-color:var(--border-secondary)}._textarea_e96gf_20:focus{outline:none;border-color:var(--accent);box-shadow:var(--shadow-input-focus)}._input_e96gf_40{background:var(--bg-secondary);border:1px solid var(--border-primary);color:var(--text-primary);padding:.6rem;border-radius:4px}._input_e96gf_40:hover{border-color:var(--border-secondary)}._input_e96gf_40:focus{outline:none;border-color:var(--accent);box-shadow:var(--shadow-input-focus)}._button_e96gf_58{background:var(--accent);color:var(--text-primary);border:none;padding:.7rem;border-radius:4px;cursor:pointer;font-weight:600;transition:opacity .2s}._button_e96gf_58:hover{opacity:.9}._button_e96gf_58:disabled{opacity:.5;cursor:not-allowed}._secondaryButton_e96gf_78{background:transparent;border:1px solid var(--border-primary);color:var(--text-primary);padding:.7rem;border-radius:4px;cursor:pointer;transition:background .2s,border-color .2s}._secondaryButton_e96gf_78:hover{background:#ffffff0d;border-color:var(--border-secondary)}._actions_e96gf_95{display:flex;gap:.5rem}._actions_e96gf_95 ._button_e96gf_58{flex:1}._hint_e96gf_104{background:var(--bg-secondary);border:1px solid var(--border-primary);border-radius:4px;padding:.6rem;font-size:.85rem;line-height:1.5}._hint_e96gf_104 ._actions_e96gf_95{margin-top:.6rem}._link_e96gf_117{color:var(--accent);text-decoration:underline;font-weight:600}._link_e96gf_117:hover{opacity:.85}.top-progress-bar{position:fixed;top:0;left:0;right:0;height:3px;z-index:9999;overflow:hidden;pointer-events:none;background:transparent}.top-progress-bar:after{content:"";position:absolute;top:0;bottom:0;left:0;width:40%;border-radius:0 3px 3px 0;background:linear-gradient(90deg,transparent,var(--accent),var(--accent-light),transparent);animation:top-progress-slide 1.1s infinite ease-in-out}@keyframes top-progress-slide{0%{transform:translate(-100%)}to{transform:translate(280%)}}@media(prefers-reduced-motion:reduce){.top-progress-bar:after{animation:none;width:100%;border-radius:0}}._screen_1pca0_1{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;width:100%;background-color:var(--bg-secondary);color:var(--text-primary);text-align:center;padding:2rem}._icon_1pca0_14{font-size:4rem;color:var(--color-danger);margin-bottom:1rem}._title_1pca0_20{margin-bottom:1rem}._text_1pca0_24{color:var(--text-secondary);margin-bottom:2rem}._button_1pca0_29{padding:.8rem 1.5rem;background-color:var(--accent);color:var(--accent-text);border:none;border-radius:var(--radius-md);cursor:pointer;display:flex;align-items:center;gap:.5rem;font-size:1rem;transition:background-color .2s}._button_1pca0_29:hover{background-color:var(--accent-light)}._container_88bss_1{display:flex;flex-direction:column;gap:1rem;color:var(--text-primary)}._field_88bss_8{display:flex;flex-direction:column;gap:.5rem}._field_88bss_8 label{font-size:.9rem;opacity:.8}._input_88bss_19{background:var(--bg-secondary);border:1px solid var(--border-primary);color:var(--text-primary);padding:.6rem;border-radius:4px}._input_88bss_19:hover{border-color:var(--border-secondary)}._input_88bss_19:focus{outline:none;border-color:var(--accent);box-shadow:var(--shadow-input-focus)}._actions_88bss_37{display:flex;gap:.5rem;justify-content:flex-end}.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);border-radius:var(--radius-md);font-weight:var(--font-weight-medium);cursor:pointer;border:none;outline:none;font-family:inherit;position:relative;white-space:nowrap;font-size:var(--font-size-base);background:transparent;color:var(--text-primary);padding:var(--space-3) var(--space-6);min-height:44px;transition:background-color .15s ease,color .15s ease,transform .1s ease}.btn:disabled{opacity:.5;cursor:not-allowed}.btn:focus-visible{outline:2px solid var(--accent-light);outline-offset:2px}.btn-primary{background:linear-gradient(135deg,var(--accent) 0%,var(--accent-dark) 100%);color:var(--accent-text);box-shadow:0 4px 12px var(--accent-glow)}.btn-primary:hover:not(:disabled){background:linear-gradient(135deg,var(--accent-light) 0%,var(--accent) 100%);transform:translateY(-1px);box-shadow:0 6px 16px var(--accent-glow)}.btn-primary:active:not(:disabled){transform:translateY(0)}.btn-secondary{background:#ffffff14;border:1px solid var(--border-secondary);color:var(--text-primary)}.btn-secondary:hover:not(:disabled){background:#ffffff1f;border-color:#ffffff40}.btn-ghost{background:transparent;color:var(--text-secondary)}.btn-ghost:hover:not(:disabled){background:#ffffff14;color:var(--text-primary)}.btn-danger{background:var(--color-danger);color:var(--color-danger-text)}.btn-danger:hover:not(:disabled){background:var(--color-danger-dark)}.btn-sm{min-height:36px;padding:var(--space-2) var(--space-4);font-size:var(--font-size-sm);border-radius:var(--radius-sm)}.btn-lg{min-height:52px;padding:var(--space-4) var(--space-8);font-size:var(--font-size-md);border-radius:var(--radius-lg)}.btn-block{width:100%}.btn-loading{color:transparent;pointer-events:none}.btn-spinner{position:absolute;width:16px;height:16px;border:2px solid rgba(128,128,128,.35);border-top-color:var(--accent-text);border-radius:50%;animation:spin .6s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}._notice_1d75r_1{position:fixed;right:max(var(--space-4),env(safe-area-inset-right));bottom:max(var(--space-4),env(safe-area-inset-bottom));z-index:10000;display:flex;align-items:center;gap:var(--space-2);max-width:calc(100vw - 2 * var(--space-4));padding:var(--space-2-5) var(--space-3);border:1px solid var(--glass-border);border-radius:var(--radius-md);background:var(--glass-bg);color:var(--text-secondary);box-shadow:0 4px 16px #00000029;font-family:var(--font-family);font-size:var(--font-size-xs);font-weight:400;line-height:1.5;pointer-events:none;animation:_appear_1d75r_1 2.6s ease both}._notice_1d75r_1 svg{color:var(--text-tertiary);flex-shrink:0}@keyframes _appear_1d75r_1{0%{opacity:0;transform:translateY(4px)}8%,88%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(2px)}}@media(prefers-reduced-motion:reduce){._notice_1d75r_1{animation:none}}:root{--accent: #6d5dfc;--logo-ink: #140f15;--accent-light: #897cff;--accent-lighter: #b3a8ff;--accent-dark: #5646db;--accent-text: #ffffff;--accent-subtle: rgba(109, 93, 252, .12);--accent-glow: rgba(109, 93, 252, .18);--accent-h: 245;--accent-s: 96%;--accent-l: 68%;--color-danger: #ef4444;--color-error: var(--color-danger);--color-danger-dark: #dc2626;--color-danger-text: #ffffff;--color-success: #10b981;--color-success-text: #ffffff;--color-warning: #f59e0b;--color-warning-text: #17171c;--color-info: #3b82f6;--color-info-text: #ffffff;--badge-info-bg: var(--accent);--badge-info-text: var(--accent-text);--palette-gold: #d8b56b;--palette-silver: #c3c9d1;--palette-bronze: #c08d5f;--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: #0c0d12;--bg-primary: #13151d;--bg-secondary: #13151d;--bg-tertiary: #191c27;--bg-elevated: #202433;--header-bg: rgba(12, 13, 18, .85);--text-primary: #ffffff;--text-secondary: #b4b4bd;--text-tertiary: #8f8f98;--text-muted: #b4b4bd;--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);--control-border: #4b5570;--control-border-hover: #647093;--control-text: #ffffff;--card-radius: var(--radius-lg);--border-light: var(--border-secondary);--danger-color: var(--color-danger);--shadow-input-focus: 0 0 0 2px var(--accent-subtle);--shadow-focus: 0 0 0 2px var(--accent-subtle);--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);--bg-hover: rgba(255, 255, 255, .08);--bg-hover-strong: rgba(255, 255, 255, .1);--bg-overlay: rgba(0, 0, 0, .55);--bg-overlay-strong: rgba(0, 0, 0, .6);--bg-overlay-heavy: rgba(0, 0, 0, .7);--bg-scrim: rgba(10, 10, 12, .55);--bg-scrim-strong: rgba(10, 10, 12, .8);--bg-dark: #0a0a0c;--bg-black: #000000;--border-strong: rgba(255, 255, 255, .14);--track-bg: rgba(255, 255, 255, .1);--track-buffered: rgba(255, 255, 255, .25);--shimmer-highlight: rgba(255, 255, 255, .07);--bg-selected: rgba(255, 255, 255, .06);--shadow-scrim: 0 4px 16px rgba(0, 0, 0, .45);--shadow-panel: 0 12px 32px rgba(0, 0, 0, .5);--color-danger-bg: rgba(153, 42, 42, .9);--font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--font-size-2xs: .4375rem;--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-px: 1px;--space-2px: 2px;--space-1: .25rem;--space-1-5: .375rem;--space-2: .5rem;--space-2-5: .625rem;--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;--size-22: 22px;--size-42: 42px;--size-44: 44px;--size-48: 48px;--size-34: 34px;--size-36: 36px;--size-140: 140px;--size-180: 180px;--size-220: 220px;--size-250: 250px;--size-440: 440px;--size-480: 480px;--size-720: 720px;--size-84: 84px;--size-52: 52px;--size-90: 90px;--size-240: 240px;--size-320: 320px;--size-420: 420px;--size-900: 900px;--layout-asmr-max-width: 1400px;--layout-page-offset: 120px;--layout-player-mobile: 175px;--radius-xs: 6px;--radius-sm: 8px;--radius-md: 12px;--radius-lg: 20px;--radius-xl: 28px;--radius-full: 9999px;--shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);--shadow-md: 0 4px 12px rgba(0, 0, 0, .4);--shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, .6);--shadow-active: 0 0 0 1px var(--border-accent), 0 8px 24px -4px rgba(0, 0, 0, .5);--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .4), 0 10px 10px -5px rgba(0, 0, 0, .2);--shadow-thumb: 0 0 5px rgba(0, 0, 0, .5);--blur-sm: 4px;--blur-md: 6px;--blur-lg: 12px;--z-base: 1;--z-dropdown: 100;--z-sticky: 200;--z-drawer: 300;--z-sidebar: 500;--z-header: 400;--z-modal: 600;--z-popover: 700;--z-toast: 800;--z-overlay: 900;--header-height: 80px;--max-width: 1600px;--sidebar-width: 280px;--ease-spring: cubic-bezier(.175, .885, .32, 1.275);--ease-smooth: cubic-bezier(.4, 0, .2, 1);--ease-emphasized: cubic-bezier(.32, .72, 0, 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);--transition-emphasized: .42s var(--ease-emphasized);--transition-quick: .09s var(--ease-smooth);--duration-shimmer: 1.6s;--duration-spin: .9s;--focus-ring-color: var(--accent-light);--focus-ring-glow: 0 0 0 3px rgba(109, 93, 252, .35);--focus-scale: scale(1.05)}@media(min-width:1920px){:root{--font-size-base: 1.125rem;--max-width: 2000px}}html[data-theme=mochi]{--accent: #e3e1ee;--accent-light: #f4f3fa;--accent-lighter: #ffffff;--accent-dark: #b3b1c6;--accent-text: #17171c;--accent-subtle: rgba(227, 225, 238, .12);--accent-glow: rgba(227, 225, 238, 0);--accent-h: 248;--accent-s: 18%;--accent-l: 89%;--bg-main: #131316;--bg-primary: #1b1b1f;--bg-secondary: #1b1b1f;--bg-tertiary: #232329;--bg-elevated: #2b2b32;--header-bg: rgba(19, 19, 22, .88);--text-primary: #f2f2f5;--text-secondary: #a9a9b3;--text-tertiary: #85858f;--text-muted: #a9a9b3;--border-primary: #2c2c33;--border-secondary: #3a3a43;--control-border: #4c4c59;--control-border-hover: #666675;--control-text: #f2f2f5;--glass-bg: rgba(27, 27, 31, .96);--badge-info-bg: var(--accent);--badge-info-text: var(--accent-text);--shadow-sm: none;--shadow-md: none;--shadow-lg: none;--shadow-active: 0 0 0 1px var(--border-secondary);--shadow-xl: none;--focus-ring-color: var(--accent);--focus-ring-glow: 0 0 0 3px rgba(227, 225, 238, .25)}html[data-theme=sakura]{--accent: #d9a3d9;--accent-light: #eccbec;--accent-lighter: #f9e8f9;--accent-dark: #a978a9;--accent-text: #fff;--accent-subtle: rgba(217, 163, 217, .12);--accent-glow: rgba(217, 163, 217, 0);--accent-h: 300;--accent-s: 45%;--accent-l: 74%;--bg-main: #141116;--bg-primary: #1c171e;--bg-secondary: #1c171e;--bg-tertiary: #241e26;--bg-elevated: #2e262f;--header-bg: rgba(20, 17, 22, .88);--text-primary: #f3eaf3;--text-secondary: #b3a3b5;--text-tertiary: #8d7c8f;--text-muted: #b3a3b5;--border-primary: #322a34;--border-secondary: #403640;--control-border: #524458;--control-border-hover: #6b5872;--control-text: #f3eaf3;--glass-bg: rgba(28, 23, 30, .96);--badge-info-bg: var(--accent-dark);--badge-info-text: #ffffff;--shadow-sm: none;--shadow-md: none;--shadow-lg: none;--shadow-active: 0 0 0 1px var(--border-secondary);--shadow-xl: none;--focus-ring-color: var(--accent);--focus-ring-glow: 0 0 0 3px rgba(217, 163, 217, .25)}*,*:before,*:after{box-sizing:border-box}html{scroll-behavior:smooth;color-scheme:dark;scrollbar-gutter:stable;overflow-x:hidden;overflow-x:clip;max-width:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}html:has(:fullscreen),html:has(:-webkit-full-screen){scrollbar-gutter:auto}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;overflow-x:clip;max-width:100%;color-scheme:dark}html,body,.app-container,.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{overflow-x:hidden;overflow-x:clip}body:before{display:none!important}h1,h2,h3,h4,h5,h6{margin:0;font-weight:var(--font-weight-semibold);letter-spacing:-.02em}a{color:inherit;text-decoration:none}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--focus-ring-color)!important;outline-offset:3px!important;box-shadow:var(--focus-ring-glow)!important;transition:outline-offset var(--transition-fast),transform var(--transition-fast)}a:focus:not(:focus-visible),button:focus:not(:focus-visible),input:focus:not(:focus-visible),select:focus:not(:focus-visible),[tabindex]:focus:not(:focus-visible){outline:none!important;box-shadow:none!important}a,button,input,select,textarea,[tabindex]{-webkit-tap-highlight-color:transparent}@media(min-width:1200px){a:focus-visible,button:focus-visible{transform:var(--focus-scale)}}::-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-16);position:relative;z-index:1}.main-content{padding-top:var(--header-height)}@media(max-width:1024px){.main-content{padding-top:calc(var(--header-height) + 52px)}}@media(max-width:848px){main{padding:0 var(--space-4) var(--space-12)}.main-content{padding-top:116px}}.badge{display:inline-flex;align-items:center;gap:var(--space-1-5);padding:var(--space-1) var(--space-2-5);border-radius:var(--radius-full);border:1px solid var(--border-primary);background:var(--bg-tertiary);color:var(--text-secondary);font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);line-height:var(--line-height-tight);white-space:nowrap}.badge-primary{border-color:color-mix(in srgb,var(--accent) 35%,transparent);background:var(--accent-subtle);color:var(--accent-light)}.badge-secondary{border-color:var(--border-secondary);background:var(--bg-secondary);color:var(--text-secondary)}.badge-danger{border-color:color-mix(in srgb,var(--color-danger) 35%,transparent);background:color-mix(in srgb,var(--color-danger) 12%,transparent);color:var(--color-danger)}.section-title{font-size:1.75rem;font-weight:800;margin-bottom:var(--space-8);color:var(--text-primary);letter-spacing:-.02em;line-height:1}.section-eyebrow{display:flex;align-items:center;gap:8px;font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--accent-light);margin:0;line-height:1.4}.section-eyebrow:before{content:"";width:18px;height:3px;border-radius:999px;background:linear-gradient(90deg,var(--accent) 0%,var(--accent-light) 100%);box-shadow:0 0 10px var(--accent-glow);flex:none}.title-stack{display:flex;flex-direction:column;gap:4px;min-width:0;justify-content:center}html[data-theme=mochi] .section-eyebrow,html[data-theme=sakura] .section-eyebrow{color:var(--accent)}@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)}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}.skeleton{position:relative;overflow:hidden;background-color:var(--bg-tertiary)}.skeleton:after{content:"";position:absolute;inset:0;transform:translate(-100%);background-image:linear-gradient(90deg,#fff0 0,#ffffff0d 20%,#ffffff1f 60%,#fff0);animation:skeleton-wave 1.8s infinite ease-in-out}@keyframes skeleton-wave{to{transform:translate(100%)}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.page-container{width:100%;animation:page-fade-in var(--transition-smooth)}@keyframes page-fade-in{0%{opacity:0}to{opacity:1}}.error-message{padding:var(--space-4);text-align:center;color:var(--color-danger)}._gate_1ex8w_1{min-height:100dvh;min-height:100svh;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;overflow-y:auto;padding:max(env(safe-area-inset-top),var(--space-5)) max(env(safe-area-inset-right),var(--space-4)) max(env(safe-area-inset-bottom),var(--space-5)) max(env(safe-area-inset-left),var(--space-4));background:radial-gradient(circle at 50% 0%,var(--accent-subtle),transparent 55%),var(--bg-main);color:var(--text-primary);animation:_gateFadeIn_1ex8w_1 .35s var(--ease-smooth);transition:opacity var(--transition-base),transform var(--transition-base)}._gateExiting_1ex8w_21{opacity:0;transform:translateY(-8px);pointer-events:none}._appEntering_1ex8w_27{animation:_appEnter_1ex8w_27 .4s var(--ease-smooth)}@keyframes _gateFadeIn_1ex8w_1{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes _appEnter_1ex8w_27{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes _panelSlideIn_1ex8w_1{0%{opacity:0;transform:translateY(14px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes _cardIn_1ex8w_1{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes _dotPulse_1ex8w_1{0%,60%,to{opacity:.25;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}@keyframes _breathe_1ex8w_1{0%,to{transform:scale(1);opacity:.9}50%{transform:scale(1.04);opacity:1}}._gateInner_1ex8w_100{width:min(100%,880px);margin:clamp(2rem,12vh,7rem) auto auto;display:flex;flex-direction:column;align-items:center;gap:var(--space-6);animation:_gateFadeIn_1ex8w_1 .35s var(--ease-smooth)}._connecting_1ex8w_110{display:flex;flex-direction:column;align-items:center;gap:var(--space-4);padding-top:clamp(2rem,8vh,4rem)}._connectingLogo_1ex8w_118{width:72px;height:72px;border-radius:var(--radius-full);background:radial-gradient(circle at 35% 30%,var(--accent-light, var(--accent)),transparent 60%),var(--accent);animation:_breathe_1ex8w_1 1.6s ease-in-out infinite}._connectingDots_1ex8w_128{display:inline-flex;gap:6px}._connectingDots_1ex8w_128 span{width:7px;height:7px;border-radius:var(--radius-full);background:var(--text-secondary);animation:_dotPulse_1ex8w_1 1.1s ease-in-out infinite}._connectingDots_1ex8w_128 span:nth-child(2){animation-delay:.15s}._connectingDots_1ex8w_128 span:nth-child(3){animation-delay:.3s}._gateTitle_1ex8w_149{margin:0;font-size:clamp(1.75rem,5vw,3rem);font-weight:700;letter-spacing:-.02em;text-align:center}._profileGrid_1ex8w_157{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(104px,100%),148px));justify-content:center;gap:var(--space-5) var(--space-4);width:100%}._profileCard_1ex8w_165{display:flex;flex-direction:column;align-items:center;gap:var(--space-3);min-width:0;min-height:44px;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;animation:_cardIn_1ex8w_1 .35s var(--ease-smooth) backwards}._profileCard_1ex8w_165:nth-child(1){animation-delay:.03s}._profileCard_1ex8w_165:nth-child(2){animation-delay:.07s}._profileCard_1ex8w_165:nth-child(3){animation-delay:.11s}._profileCard_1ex8w_165:nth-child(4){animation-delay:.15s}._profileCard_1ex8w_165:nth-child(5){animation-delay:.19s}._profileCard_1ex8w_165:nth-child(6){animation-delay:.23s}._profileCard_1ex8w_165:nth-child(7){animation-delay:.27s}._profileCard_1ex8w_165:nth-child(8){animation-delay:.31s}._profileCard_1ex8w_165:disabled{cursor:default;opacity:.6}._profileCard_1ex8w_165:focus-visible{outline:none}._profileCardAvatar_1ex8w_216{position:relative;display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1;overflow:hidden;border:2px solid transparent;border-radius:var(--radius-sm);background:var(--bg-tertiary);color:var(--text-tertiary);transition:transform var(--transition-fast),border-color var(--transition-fast),box-shadow var(--transition-fast)}._profileCard_1ex8w_165:hover ._profileCardAvatar_1ex8w_216,._profileCard_1ex8w_165:focus-visible ._profileCardAvatar_1ex8w_216{transform:translateY(-3px) scale(1.02);border-color:var(--accent);box-shadow:0 12px 32px var(--accent-glow)}._profileCard_1ex8w_165:active ._profileCardAvatar_1ex8w_216{transform:scale(.98)}._addAvatar_1ex8w_245{border:2px dashed var(--border-secondary);background:var(--bg-tertiary)}._profileCard_1ex8w_165:hover ._addAvatar_1ex8w_245{border-color:var(--accent);color:var(--accent)}._profileCardName_1ex8w_255{max-width:100%;overflow:hidden;font-size:var(--font-size-sm);font-weight:600;text-align:center;text-overflow:ellipsis;white-space:nowrap}._ownerTag_1ex8w_265{display:block;margin-top:var(--space-1);font-size:var(--font-size-xs);font-weight:500;color:var(--text-tertiary)}._lockBadge_1ex8w_273{position:absolute;right:var(--space-2);bottom:var(--space-2);display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:var(--radius-full);background:#000000a6;color:#fff;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}._gatePanel_1ex8w_288{width:min(100%,420px);margin:auto;display:flex;flex-direction:column;gap:var(--space-4);padding:var(--space-6);border:1px solid var(--border-secondary);border-radius:var(--radius-lg);background:var(--bg-tertiary);box-shadow:0 24px 64px #00000059;animation:_panelSlideIn_1ex8w_1 .35s var(--ease-smooth)}._panelAvatar_1ex8w_302{align-self:center;width:96px;height:96px}._panelTitle_1ex8w_308{margin:0;font-size:var(--font-size-lg);text-align:center}._gateForm_1ex8w_314{display:flex;flex-direction:column;gap:var(--space-4)}._gateField_1ex8w_320{display:flex;flex-direction:column;gap:var(--space-2);font-size:var(--font-size-sm);font-weight:600;color:var(--text-secondary)}._gateField_1ex8w_320 input{width:100%;min-height:44px;padding:var(--space-3);border:1px solid var(--border-secondary);border-radius:var(--radius-md);background:var(--bg-primary);color:var(--text-primary);font-size:16px}._gateField_1ex8w_320 input:focus{outline:none;border-color:var(--accent);box-shadow:var(--shadow-input-focus)}._gateHint_1ex8w_346{max-width:42ch;margin:0;color:var(--text-secondary);text-align:center}._gateError_1ex8w_353{margin:0;color:var(--danger-color);text-align:center}._backButton_1ex8w_359{display:inline-flex;align-items:center;align-self:flex-start;gap:var(--space-2);min-height:44px;padding:var(--space-2) var(--space-3);border:0;border-radius:var(--radius-md);background:none;color:var(--text-secondary);font:inherit;cursor:pointer;touch-action:manipulation}._backButton_1ex8w_359:hover{background:var(--bg-hover);color:var(--text-primary)}._backButton_1ex8w_359:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media(max-width:640px){._gateInner_1ex8w_100{gap:var(--space-5)}._profileGrid_1ex8w_157{grid-template-columns:repeat(auto-fit,minmax(min(96px,100%),128px));gap:var(--space-4) var(--space-3)}._profileCard_1ex8w_165{min-height:44px}._gatePanel_1ex8w_288{padding:var(--space-5);gap:var(--space-3)}._panelAvatar_1ex8w_302{width:80px;height:80px}}@media(max-width:380px){._profileGrid_1ex8w_157{grid-template-columns:repeat(auto-fit,minmax(min(86px,100%),108px));gap:var(--space-4) var(--space-2)}._gatePanel_1ex8w_288{padding:var(--space-4)}}@media(prefers-reduced-motion:reduce){._gate_1ex8w_1,._gateInner_1ex8w_100,._gatePanel_1ex8w_288,._profileCard_1ex8w_165,._appEntering_1ex8w_27,._connectingLogo_1ex8w_118,._connectingDots_1ex8w_128 span{animation:none;transition:none}._profileCardAvatar_1ex8w_216{transition:none}._profileCard_1ex8w_165:hover ._profileCardAvatar_1ex8w_216,._profileCard_1ex8w_165:focus-visible ._profileCardAvatar_1ex8w_216,._profileCard_1ex8w_165:active ._profileCardAvatar_1ex8w_216{transform:none}}._form_1ex8w_444{display:flex;flex-wrap:wrap;align-items:end;gap:var(--space-3);margin:var(--space-4) 0}._form_1ex8w_444 h3,._form_1ex8w_444 p{flex-basis:100%}._field_1ex8w_457{display:flex;flex-direction:column;gap:var(--space-2);max-width:100%}._field_1ex8w_457 input,._field_1ex8w_457 select{padding:var(--space-3);color:var(--text-primary);background:var(--bg-primary);border:1px solid var(--border-secondary);border-radius:var(--radius-md);min-width:0}._avatarRow_1ex8w_474{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-4)}._avatarRow_1ex8w_474>:first-child{width:72px;height:72px}._uploadButton_1ex8w_486{position:relative;display:inline-flex;align-items:center;gap:var(--space-2);padding:var(--space-3) var(--space-4);border:1px solid var(--border-secondary);border-radius:var(--radius-md);color:var(--text-primary);background:var(--bg-primary);font-size:var(--font-size-sm);font-weight:600;cursor:pointer;transition:background var(--transition-fast),border-color var(--transition-fast),color var(--transition-fast)}._uploadButton_1ex8w_486:hover{background:var(--bg-elevated);border-color:var(--accent)}._uploadButton_1ex8w_486:focus-within{outline:2px solid var(--accent);outline-offset:2px}._fileInput_1ex8w_515{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}._fileInput_1ex8w_515:disabled{cursor:not-allowed}._profileList_1ex8w_528{list-style:none;padding:0}._profileList_1ex8w_528 li{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-3) 0;border-bottom:1px solid var(--border-secondary)}._smallAvatar_1ex8w_541{width:36px;height:36px;flex-shrink:0}._profileName_1ex8w_546{flex:1;min-width:0;overflow-wrap:anywhere}