1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,151017,e=>{"use strict";var a=e.i(843476),s=e.i(500932),n=e.i(618566),t=e.i(160195),i=e.i(975157),l=e.i(575275),o=e.i(35373);e.s(["HeaderLogo",0,function(e){let c,r,m,h,u=(0,s.c)(13),{siteSettings:d,lang:g}=e,f=(0,n.usePathname)();u[0]!==g?(c=(0,t.buildI18nPath)("/",g),u[0]=g,u[1]=c):c=u[1],u[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,l.e2eTestDataAttr)(l.E2E_ELM.HEADER_LOGO_LINK),u[2]=r):r=u[2];let S=d.logoImageUrl||"",N=d.name||"";u[3]!==S||u[4]!==N?(m=(0,a.jsx)("figure",{className:"h-main-logo-fig",children:(0,a.jsx)("img",{className:"h-main-logo-img",src:S,alt:N})}),u[3]=S,u[4]=N,u[5]=m):m=u[5],u[6]!==c||u[7]!==m?(h=(0,a.jsx)(o.PrefetchOnHoverLink,{className:"h-main-logo-link",href:c,...r,children:m}),u[6]=c,u[7]=m,u[8]=h):h=u[8];let _=h;if((0,i.startsWithLangOrSuffix)(f,"/")){let e;return u[9]!==_?(e=(0,a.jsx)("h1",{className:"h-main-logo",children:_}),u[9]=_,u[10]=e):e=u[10],e}{let e;return u[11]!==_?(e=(0,a.jsx)("div",{className:"h-main-logo",children:_}),u[11]=_,u[12]=e):e=u[12],e}}])},787152,e=>{"use strict";var a=e.i(843476),s=e.i(500932),n=e.i(370370),t=e.i(207670),i=e.i(551956),l=e.i(160195),o=e.i(522016);e.s(["default",0,function(e){let c,r,m,h,u,d,g=(0,s.c)(10),{lang:f,hasMissionNotification:S}=e;return g[0]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.default)("h-sub-extra",i.GLOBALS.USING_COMPACT_HEADER&&"mode-compact"),g[0]=c):c=g[0],g[1]!==f?(r=(0,l.buildI18nPath)("/mission",f),g[1]=f,g[2]=r):r=g[2],g[3]===Symbol.for("react.memo_cache_sentinel")?(m=(0,a.jsx)(n.MissionIcon,{size:20,className:"h-sub-extra-icon"}),g[3]=m):m=g[3],g[4]===Symbol.for("react.memo_cache_sentinel")?(h=(0,a.jsx)("span",{className:(0,t.default)("h-sub-extra-text",i.GLOBALS.USING_COMPACT_HEADER&&"mode-compact"),children:"ããã·ã§ã³"}),g[4]=h):h=g[4],g[5]!==S?(u=S&&(0,a.jsx)(n.NotificationBadgeIcon,{size:16,className:"h-sub-extra-notificon"}),g[5]=S,g[6]=u):u=g[6],g[7]!==r||g[8]!==u?(d=(0,a.jsxs)(o.default,{className:c,href:r,children:[m,h,u]}),g[7]=r,g[8]=u,g[9]=d):d=g[9],d}])},962534,e=>{"use strict";var a=e.i(843476),s=e.i(500932),n=e.i(522016),t=e.i(473665),i=e.i(975157),l=e.i(37607),o=e.i(370370),c=e.i(551956),r=e.i(160195);function m(e){let m,h,u,d,g,f,S,N,_,x,b,p,j,I,L,v,A=(0,s.c)(36),{lang:O}=e,{userPoints:E,isLoading:M,error:P}=(0,l.useUserPoints)(!0);if(M||P){let e;return A[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(a.Fragment,{}),A[0]=e):e=A[0],e}A[1]===Symbol.for("react.memo_cache_sentinel")?(m=(0,a.jsx)("span",{className:"h-usermenu-wallet-has-label",children:"ä¿æ"}),A[1]=m):m=A[1],A[2]!==O?(h=(0,r.buildI18nPath)("/point/history",O),A[2]=O,A[3]=h):h=A[3],A[4]===Symbol.for("react.memo_cache_sentinel")?(u=(0,a.jsx)(o.CoinIcon,{size:18,className:"h-usermenu-wallet-has-icon"}),A[4]=u):u=A[4];let T=E?.paidCoin??0;A[5]!==h||A[6]!==T?(d=(0,a.jsxs)(n.default,{href:h,className:"h-usermenu-wallet-has",prefetch:!1,children:[u,T]}),A[5]=h,A[6]=T,A[7]=d):d=A[7],A[8]===Symbol.for("react.memo_cache_sentinel")?(g=(0,a.jsx)("span",{className:"h-usermenu-wallet-has-plus",children:"+"}),A[8]=g):g=A[8],A[9]!==O?(f=(0,r.buildI18nPath)("/point/history",O),A[9]=O,A[10]=f):f=A[10],A[11]===Symbol.for("react.memo_cache_sentinel")?(S=(0,a.jsx)("img",{src:"/images/icons/free-ticket.svg",className:"h-usermenu-wallet-has-icon mode-ticket",alt:"ãã±ãã",loading:"lazy"}),A[11]=S):S=A[11];let y=E?.bonusValue??0;return A[12]!==y?(N=(0,a.jsxs)(a.Fragment,{children:[S,(0,a.jsxs)("span",{className:"h-usermenu-wallet-has-unit",children:[y,"æ"]})]}),A[12]=y,A[13]=N):N=A[13],A[14]!==N||A[15]!==f?(_=(0,a.jsxs)(a.Fragment,{children:[g,(0,a.jsx)(n.default,{href:f,className:"h-usermenu-wallet-has",prefetch:!1,children:N})]}),A[14]=N,A[15]=f,A[16]=_):_=A[16],A[17]!==_||A[18]!==d?(x=(0,a.jsxs)("div",{className:"",children:[m,d,_]}),A[17]=_,A[18]=d,A[19]=x):x=A[19],A[20]!==O||A[21]!==E?(b=!!E?.expireDatetime&&!!E.expireValue&&E.expireCategory&&(0,a.jsxs)(n.default,{href:(0,r.buildI18nPath)("/point/history",O),className:"h-usermenu-wallet-note",prefetch:!1,children:[E?.expireValue,E?.expireCategory==="B"?"æ":"ã³ã¤ã³","ã®æéã",(0,i.formatDateFromNow)(E.expireDatetime,"",O),"以å
ã«åãã¾ã",(0,a.jsx)(t.MdChevronRight,{size:16,className:"h-usermenu-wallet-note-icon"})]}),A[20]=O,A[21]=E,A[22]=b):b=A[22],A[23]!==x||A[24]!==b?(p=(0,a.jsxs)("div",{className:"",children:[x,b]}),A[23]=x,A[24]=b,A[25]=p):p=A[25],A[26]!==O?(j=(0,r.buildI18nPath)("/point/charge",O),A[26]=O,A[27]=j):j=A[27],A[28]!==j?(I=(0,a.jsx)(n.default,{href:j,className:"h-usermenu-wallet-btn",prefetch:!1,children:"ã³ã¤ã³ãã£ã¼ã¸"}),A[28]=j,A[29]=I):I=A[29],A[30]!==O?(L=c.GLOBALS.HAS_MISSION&&(0,a.jsx)(n.default,{href:(0,r.buildI18nPath)("/mission",O),className:"h-usermenu-wallet-btn",prefetch:!1,children:"ããã·ã§ã³"}),A[30]=O,A[31]=L):L=A[31],A[32]!==p||A[33]!==I||A[34]!==L?(v=(0,a.jsxs)("div",{className:"h-usermenu-wallet",children:[p,I,L]}),A[32]=p,A[33]=I,A[34]=L,A[35]=v):v=A[35],v}var h=e.i(575275),u=e.i(217255),d=e.i(618566);let g=e=>{let n,t,l,o,c,m=(0,s.c)(11),{className:g,lang:f}=e,S=(0,d.useRouter)();return m[0]===Symbol.for("react.memo_cache_sentinel")?(n={marginRight:10},m[0]=n):n=m[0],m[1]!==f||m[2]!==S?(t=async()=>{await (0,u.signOut)({redirect:!1}),(0,i.deleteLoginBonusCookie)(),S.push((0,r.buildI18nPath)("/",f))},m[1]=f,m[2]=S,m[3]=t):t=m[3],m[4]===Symbol.for("react.memo_cache_sentinel")?(l=(0,h.e2eTestDataAttr)(h.E2E_ELM.SIGNOUT_BTN),m[4]=l):l=m[4],m[5]!==f?(o=(0,r.getI18nMessage)("signOut",f),m[5]=f,m[6]=o):o=m[6],m[7]!==g||m[8]!==t||m[9]!==o?(c=(0,a.jsx)("button",{style:n,onClick:t,className:g,...l,children:o}),m[7]=g,m[8]=t,m[9]=o,m[10]=c):c=m[10],c};var f=e.i(271645),S=e.i(30132),N=e.i(36508),_=e.i(228986),x=e.i(856437);function b(e){let o,c,m,h,u,d,g,S,N,b,p,j,I,L,v,A,O=(0,s.c)(49),{lang:E}=e,[M,P]=(0,f.useState)(1),{notifications:T,isLoading:y,read:k,readAll:G}=(0,l.useUserNotification)(M),B=T?.notifications?.totalUnreadNotificationNum||0,{mutate:C}=(0,l.useStaticStore)(_.STORE_KEYS.notification,!1),U="h-notification"+(B?" mode-has-unread":"");return O[0]!==E?(o=(0,r.getI18nMessage)("notification",E),O[0]=E,O[1]=o):o=O[1],O[2]!==o?(c=(0,a.jsx)("div",{className:"h-notification-h",children:(0,a.jsx)("h4",{className:"h-notification-h-text",children:o})}),O[2]=o,O[3]=c):c=O[3],O[4]!==G?(m=()=>{G()},O[4]=G,O[5]=m):m=O[5],O[6]!==E?(h=(0,r.getI18nMessage)("markAllAsRead",E),O[6]=E,O[7]=h):h=O[7],O[8]!==m||O[9]!==h?(u=(0,a.jsx)("a",{className:"h-notification-read-all",onClick:m,children:h}),O[8]=m,O[9]=h,O[10]=u):u=O[10],O[11]!==E||O[12]!==T?.notifications?.notifications||O[13]!==k||O[14]!==C?(d=T?.notifications?.notifications?.map((e,s)=>(0,a.jsx)("li",{className:"h-notification-item"+(e.isRead?" mode-read":""),children:(0,a.jsxs)(n.default,{className:"h-notification-item-link",href:(0,i.getExternalUrlOrI18nPath)(e.url||"",E),onClick:()=>
1{k(e.id),C(!1)},children:[e.message,(0,a.jsx)("span",{className:"h-notification-item-date",children:(0,i.formatDateMinimal)(e.createdOn,void 0,void 0,E)})]})},s)),O[11]=E,O[12]=T?.notifications?.notifications,O[13]=k,O[14]=C,O[15]=d):d=O[15],O[16]!==E||O[17]!==M||O[18]!==T?.notifications?.notifications?.length?(g=!T?.notifications?.notifications?.length&&1===M&&(0,a.jsx)("li",{className:"h-notification-item mode-empty",children:(0,a.jsx)("span",{className:"h-notification-item-link",children:(0,r.getI18nMessage)("noNotifications",E)})}),O[16]=E,O[17]=M,O[18]=T?.notifications?.notifications?.length,O[19]=g):g=O[19],O[20]!==d||O[21]!==g?(S=(0,a.jsxs)("ul",{className:"h-notification-items",children:[d,g]}),O[20]=d,O[21]=g,O[22]=S):S=O[22],O[23]!==u||O[24]!==S?(N=(0,a.jsxs)("div",{className:"h-notification-main",children:[u,S]}),O[23]=u,O[24]=S,O[25]=N):N=O[25],O[26]!==y||O[27]!==M||O[28]!==T?.lastPage?(b=T?.lastPage>1&&(0,a.jsxs)("nav",{className:"h-notification-pager"+(y?" mode-loading":""),children:[(0,a.jsx)("button",{className:"h-notification-pager-item mode-prev"+(1==M?" mode-disabled":""),onClick:()=>{P(M-1)},disabled:1==M,children:(0,a.jsx)(t.MdChevronLeft,{size:24})}),(0,a.jsx)("button",{className:"h-notification-pager-item mode-next"+(M==T?.lastPage?" mode-disabled":""),onClick:()=>{P(M+1)},disabled:M==T?.lastPage,children:(0,a.jsx)(t.MdChevronRight,{size:24})})]}),O[26]=y,O[27]=M,O[28]=T?.lastPage,O[29]=b):b=O[29],O[30]!==E?(p=(0,r.buildI18nPath)("/users/info",E),O[30]=E,O[31]=p):p=O[31],O[32]!==C?(j=()=>{C(!1)},O[32]=C,O[33]=j):j=O[33],O[34]!==E?(I=(0,r.getI18nMessage)("settings",E),O[34]=E,O[35]=I):I=O[35],O[36]!==p||O[37]!==j||O[38]!==I?(L=(0,a.jsx)(n.default,{className:"h-notification-h-nav",href:p,prefetch:!1,onClick:j,children:I}),O[36]=p,O[37]=j,O[38]=I,O[39]=L):L=O[39],O[40]!==N||O[41]!==b||O[42]!==L||O[43]!==c?(v=(0,a.jsxs)("section",{className:"h-notification-content",children:[c,N,b,L]}),O[40]=N,O[41]=b,O[42]=L,O[43]=c,O[44]=v):v=O[44],O[45]!==E||O[46]!==U||O[47]!==v?(A=(0,a.jsx)(x.default,{storeKey:_.STORE_KEYS.notification,className:U,lang:E,children:v}),O[45]=E,O[46]=U,O[47]=v,O[48]=A):A=O[48],A}var p=e.i(405506),j=e.i(787152),I=e.i(69287);e.s(["HeaderUserMenu",0,function(e){let u,x,L,v,A,O=(0,s.c)(103),{lang:E}=e,{session:M,sessionStatus:P}=(0,f.useSyncExternalStore)(p.sessionStore.subscribe,p.sessionStore.getSnapshot,p.sessionStore.getServerSnapshot),[T,y]=(0,f.useState)(!1),{mutate:k}=(0,l.useStaticStore)(_.STORE_KEYS.notification,!1),G=(0,d.useParams)(),B=Array.isArray(G.subTopSlug)?G.subTopSlug[0]:G.subTopSlug;O[0]!==B?(u=c.GLOBALS.USING_SUB_TOP&&!!B&&c.GLOBALS.SUB_TOP_ITEMS.some(e=>e.subTopSlug===B),O[0]=B,O[1]=u):u=O[1];let C=u;O[2]!==C||O[3]!==B?(x=C?(0,I.subTopSlugToContentId)(B):void 0,O[2]=C,O[3]=B,O[4]=x):x=O[4];let{userInfo:U}=(0,l.useUserInfo)("authenticated"===P,x),{hasNotification:R}=(0,l.useMissions)("authenticated"===P&&c.GLOBALS.HAS_MISSION,!1);if(O[5]!==T?(L=()=>{if(T){let e=()=>{y(!1),document.removeEventListener("click",e)};document.addEventListener("click",e)}},v=[T],O[5]=T,O[6]=L,O[7]=v):(L=O[6],v=O[7]),(0,f.useEffect)(L,v),"loading"===P){let e;O[8]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)("span",{className:"h-main-user-loading"}),O[8]=e):e=O[8],A=e}else if(M){let e,s,l,u,d,f,S,N,x,p,I,L,v,M,G,C,w,H,D,z,K,F,V,$,W,Y,q,J,Q,X,Z,ee,ea,es;O[9]!==E?(e=(0,a.jsx)(b,{lang:E}),O[9]=E,O[10]=e):e=O[10],O[11]!==E?(s=(0,r.buildI18nPath)("/bookshelf",E),O[11]=E,O[12]=s):s=O[12],O[13]!==E?(l=(0,r.getI18nMessage)("bookshelf",E),O[13]=E,O[14]=l):l=O[14];let en=l;O[15]===Symbol.for("react.memo_cache_sentinel")?(u=(0,a.jsx)("path",{d:"M106.33 42.83v405.19H42.35V42.83zM319.59 42.83v405.19h-63.98V42.83zM402.698 173.221l63.923 259.853-62.128 15.283-63.922-259.853zM212.96 170.79v277.24h-63.98V170.79z"}),O[15]=u):u=O[15],O[16]!==en?(d=(0,a.jsx)("svg",{className:"h-main-nav-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","aria-label":en,children:u}),O[16]=en,O[17]=d):d=O[17],O[18]!==d||O[19]!==s?(f=(0,a.jsx)(n.default,{className:"h-main-nav-link mode-bookshelf",href:s,children:d}),O[18]=d,O[19]=s,O[20]=f):f=O[20],O[21]!==R||O[22]!==E||O[23]!==P?(S=c.GLOBALS.HAS_MISSION&&c.GLOBALS.USING_COMPACT_HEADER&&(0,a.jsx)(j.default,{lang:E,hasMissionNotification:"authenticated"!==P||R}),O[21]=R,O[22]=E,O[23]=P,O[24]=S):S=O[24],O[25]!==T?(N=()=>{y(!T)},O[25]=T,O[26]=N):N=O[26],O[27]===Symbol.for("react.memo_cache_sentinel")?(x=(0,h.e2eTestDataAttr)(h.E2E_ELM.HEADER_USER_MENU_TRIGGER),O[27]=x):x=O[27],O[28]!==U?.user.image?(p=c.GLOBALS.USING_SHUEISHA_ID&&(0,a.jsx)("img",{className:"h-main-nav-icon mode-sid",src:U?.user.image?U?.user.image.url:_.RIMACOMI_DEFAULT_USER_ICON,width:32,height:32,alt:"",...(0,h.e2eTestDataAttr)(h.E2E_ELM.HEADER_USER_ICON)}),O[28]=U?.user.image,O[29]=p):p=O[29],O[30]===Symbol.for("react.memo_cache_sentinel")?(I=c.GLOBALS.USING_COMICI_ID&&(0,a.jsx)(t.MdPerson,{className:"h-main-nav-icon mode-svg mode-comici-id",width:32,height:32,...(0,h.e2eTestDataAttr)(h.E2E_ELM.HEADER_USER_ICON)}),L=!c.GLOBALS.USING_SHUEISHA_ID&&!c.GLOBALS.USING_COMICI_ID&&(0,a.jsx)(t.MdPerson,{className:"h-main-nav-icon mode-svg mode-not-comici-id",width:32,height:32,...(0,h.e2eTestDataAttr)(h.E2E_ELM.HEADER_USER_ICON)}
1),O[30]=I,O[31]=L):(I=O[30],L=O[31]),O[32]!==N||O[33]!==p?(v=(0,a.jsxs)("a",{className:"h-main-nav-link mode-user",onClick:N,...x,children:[p,I,L]}),O[32]=N,O[33]=p,O[34]=v):v=O[34];let et="h-usermenu"+(T?" mode-open":""),ei=U?.user.username;O[35]!==ei?(M=(0,a.jsx)("p",{className:"h-usermenu-user",children:ei}),O[35]=ei,O[36]=M):M=O[36],O[37]!==E?(G=c.GLOBALS.USING_COIN&&(0,a.jsx)(m,{lang:E}),O[37]=E,O[38]=G):G=O[38],O[39]!==E?(C=(0,r.buildI18nPath)("/bookshelf",E),O[39]=E,O[40]=C):C=O[40],O[41]===Symbol.for("react.memo_cache_sentinel")?(w=(0,a.jsx)(o.BookshelfIcon,{size:24,className:"h-usermenu-hnav-icon"}),O[41]=w):w=O[41],O[42]!==E?(H=(0,r.getI18nMessage)("bookshelf",E),O[42]=E,O[43]=H):H=O[43],O[44]!==H?(D=(0,a.jsx)("span",{className:"h-usermenu-hnav-label",children:H}),O[44]=H,O[45]=D):D=O[45],O[46]!==C||O[47]!==D?(z=(0,a.jsxs)(n.default,{href:C,className:"h-usermenu-hnav-item",children:[w,D]}),O[46]=C,O[47]=D,O[48]=z):z=O[48],O[49]!==k?(K=()=>(k(!0),!1),O[49]=k,O[50]=K):K=O[50],O[51]===Symbol.for("react.memo_cache_sentinel")?(F=(0,a.jsx)(t.MdOutlineNotifications,{size:24,className:"h-usermenu-hnav-icon"}),O[51]=F):F=O[51],O[52]!==E?(V=(0,r.getI18nMessage)("notification",E),O[52]=E,O[53]=V):V=O[53],O[54]!==V?($=(0,a.jsx)("span",{className:"h-usermenu-hnav-label",children:V}),O[54]=V,O[55]=$):$=O[55],O[56]!==K||O[57]!==$?(W=(0,a.jsxs)("a",{className:"h-usermenu-hnav-item mode-notif",onClick:K,children:[F,$]}),O[56]=K,O[57]=$,O[58]=W):W=O[58],O[59]!==z||O[60]!==W?(Y=(0,a.jsxs)("div",{className:"h-usermenu-hnav",children:[z,W]}),O[59]=z,O[60]=W,O[61]=Y):Y=O[61],O[62]!==E?(q=(0,r.buildI18nPath)("/users/info",E),O[62]=E,O[63]=q):q=O[63],O[64]!==E?(J=(0,r.getI18nMessage)("settings",E),O[64]=E,O[65]=J):J=O[65],O[66]!==q||O[67]!==J?(Q=(0,a.jsx)("li",{className:"h-usermenu-vnav-item",children:(0,a.jsx)(n.default,{className:"h-usermenu-vnav-link",href:q,prefetch:!1,children:J})}),O[66]=q,O[67]=J,O[68]=Q):Q=O[68],O[69]!==B||O[70]!==U?.isContentAdmin?(X=U?.isContentAdmin&&(0,a.jsx)("li",{className:"h-usermenu-vnav-item",children:(0,a.jsx)(n.default,{className:"h-usermenu-vnav-link",href:(0,i.getDashboardDomain)(B)+"/signin",target:"_blank",children:"éèªããã·ã¥ãã¼ã"})}),O[69]=B,O[70]=U?.isContentAdmin,O[71]=X):X=O[71],O[72]!==E?(Z=(0,a.jsx)("li",{className:"h-usermenu-vnav-item",children:(0,a.jsx)(g,{className:"h-usermenu-vnav-link",lang:E})}),O[72]=E,O[73]=Z):Z=O[73],O[74]!==Q||O[75]!==X||O[76]!==Z?(ee=(0,a.jsxs)("ul",{className:"h-usermenu-vnav",children:[Q,X,Z]}),O[74]=Q,O[75]=X,O[76]=Z,O[77]=ee):ee=O[77],O[78]!==et||O[79]!==M||O[80]!==G||O[81]!==Y||O[82]!==ee?(ea=(0,a.jsxs)("div",{className:et,children:[M,G,Y,ee]}),O[78]=et,O[79]=M,O[80]=G,O[81]=Y,O[82]=ee,O[83]=ea):ea=O[83],O[84]!==f||O[85]!==S||O[86]!==v||O[87]!==ea||O[88]!==e?(es=(0,a.jsxs)(a.Fragment,{children:[e,f,S,v,ea]}),O[84]=f,O[85]=S,O[86]=v,O[87]=ea,O[88]=e,O[89]=es):es=O[89],A=es}else{let e,s,n,t,i;O[90]!==E?(e=(0,r.getI18nMessage)("signInLowercase",E),O[90]=E,O[91]=e):e=O[91],O[92]!==E||O[93]!==e?(s=(0,a.jsx)(S.SigninLink,{className:"h-main-nav-link",lang:E,e2eTestId:h.E2E_ELM.HEADER_SIGN_IN_BTN,children:e}),O[92]=E,O[93]=e,O[94]=s):s=O[94],O[95]!==E?(n=(0,r.getI18nMessage)("signUpLowercase",E),O[95]=E,O[96]=n):n=O[96],O[97]!==E||O[98]!==n?(t=(0,a.jsx)(N.SignupLink,{className:"h-main-nav-btn",lang:E,e2eTestId:h.E2E_ELM.HEADER_SIGN_UP_BTN,children:n}),O[97]=E,O[98]=n,O[99]=t):t=O[99],O[100]!==s||O[101]!==t?(i=(0,a.jsxs)(a.Fragment,{children:[s,t]}),O[100]=s,O[101]=t,O[102]=i):i=O[102],A=i}return A}],962534)},184616,e=>{"use strict";var a=e.i(843476),s=e.i(500932),n=e.i(522016),t=e.i(618566),i=e.i(271645),l=e.i(266097),o=e.i(551956),c=e.i(975157),r=e.i(37607),m=e.i(405506),h=e.i(207670),u=e.i(160195),d=e.i(787152),g=e.i(473665);let f={"/category/manga":["/category/manga"],"/ranking/manga":["/ranking/manga"],"/category/gravure":["/category/gravure"],"/category/column":["/category/column"],"/news":["/news"],"/series/list":["/series/list"],"/store_items":["/store_items"]};o.GLOBALS.HAS_MANGA_SUB_PATH_ON_HEADER&&(f["/category/manga"]?.push("!/category/manga/complete","!/category/manga/oneShot"),f["/category/manga/complete/1"]=["/category/manga/complete/1"],f["/category/manga/oneShot/1"]=["/category/manga/oneShot/1"]);let S=(()=>
1{if(!o.GLOBALS.HOME_URL)return null;try{return new URL(o.GLOBALS.HOME_URL).origin}catch{return null}})();e.s(["HeaderSubMenu",0,function(e){let N,_,x,b,p,j=(0,s.c)(16),{tabs:I,lang:L}=e,v=(0,t.usePathname)(),A=(0,t.useParams)().subTopSlug||void 0,O=(0,i.useRef)(null),E=(0,i.useRef)(null),{sessionStatus:M}=(0,i.useSyncExternalStore)(m.sessionStore.subscribe,m.sessionStore.getSnapshot,m.sessionStore.getServerSnapshot),{hasNotification:P}=(0,r.useMissions)("authenticated"===M&&o.GLOBALS.HAS_MISSION,!1),T="authenticated"!==M||P,y=o.GLOBALS.SUB_TOP_ITEMS;j[0]!==A?(N=y.find(e=>e.subTopSlug===A),j[0]=A,j[1]=N):N=j[1];let k=N;if(j[2]!==T||j[3]!==L||j[4]!==v||j[5]!==k||j[6]!==I){b=Symbol.for("react.early_return_sentinel");e:{let e=[{name:(0,u.getI18nMessage)("mangaKatakana",L),url:`${k?"/"+k.subTopSlug:""}/category/manga/1`,navPath:"category/manga"},{name:(0,u.getI18nMessage)("booksLowercase",L),url:`${k?"/"+k.subTopSlug:""}/store_items/list/1`,navPath:"store_items"}];if(!I.length&&!o.GLOBALS.USING_SUB_TOP_NAV){b=void 0;break e}let s="/"===v&&"mode-home",t=o.GLOBALS.USING_SUB_TOP_NAV&&!k&&"mode-subtop-empty";j[10]!==s||j[11]!==t?(_=(0,h.default)("h-sub",s,o.GLOBALS.HAS_MISSION&&"mode-has-mission",t),j[10]=s,j[11]=t,j[12]=_):_=j[12],x=o.GLOBALS.USING_SUB_TOP_NAV?!!k&&(0,a.jsxs)("div",{className:"h-sub-subtop-content",children:[(0,a.jsx)(n.default,{href:(0,u.buildI18nPath)(`/${k?.subTopSlug??""}`,L),children:(0,a.jsx)("img",{className:"h-sub-subtop-image",src:`/images/logo/${o.GLOBALS.APP_ID}/${k.subTopSlug}/logo.webp`,alt:k?.subTopName,loading:"lazy"})}),(0,a.jsx)("ul",{className:"h-sub-subtop-list",children:e.map(e=>(0,a.jsx)("li",{className:"h-sub-subtop-item",children:(0,a.jsx)(n.default,{className:(0,h.default)("h-sub-subtop-item-link",-1!==v.indexOf(e.navPath)&&"mode-current"),href:(0,u.buildI18nPath)(e.url,L),children:e.name})},e.name))})]}):(0,a.jsxs)("div",{className:"h-sub-content",ref:E,children:[(0,a.jsx)(l.OverlayScrollbarsComponent,{defer:!0,options:{scrollbars:{autoHide:"scroll"}},children:I&&(0,a.jsxs)("ul",{className:"h-sub-items",ref:O,children:[o.GLOBALS.HAS_HEADER_HOME_ICON&&(0,a.jsx)("li",{className:"h-sub-item",children:(0,a.jsx)(n.default,{href:(0,u.buildI18nPath)("/",L),className:"h-sub-link","aria-label":"HOME",children:(0,a.jsx)("span",{className:"h-sub-label mode-icon",children:(0,a.jsx)(g.MdHome,{className:"h-sub-label-icon"})})})}),I.map((e,s)=>e.enabled?(0,a.jsx)("li",{className:"h-sub-item",children:(0,a.jsxs)(n.default,{href:(0,c.getExternalUrlOrI18nPath)((0,c.pathConversion)(e.path),L),className:"h-sub-link"+(!function(e,a){if(a.startsWith("http")){if(!S)return!1;let s=new URL(a);if(s.origin!==S)return!1;let n=s.pathname,t=f[n];return t?(0,c.isMatchedPath)(e,t):(0,c.startsWithLangOrSuffix)(e,n)}let s=a.startsWith("/")?a:`/${a}`,n=f[s];return!!(n&&(0,c.isMatchedPath)(e,n))||e===s}(v,e.path)?"":" mode-active"),target:e.isNewTab?"_blank":"",children:[e.imagePath&&(0,a.jsx)("span",{className:"h-sub-label mode-icon",children:(0,a.jsx)("img",{className:"h-sub-label-icon",src:e.imagePath,alt:e.name,loading:"lazy"})}),!e.imagePath&&(0,a.jsx)("span",{className:"h-sub-label",children:e.name})]})},s):(0,a.jsx)(a.Fragment,{}))]})}),o.GLOBALS.HAS_MISSION&&(0,a.jsx)(d.default,{lang:L,hasMissionNotification:T})]})}j[2]=T,j[3]=L,j[4]=v,j[5]=k,j[6]=I,j[7]=_,j[8]=x,j[9]=b}else _=j[7],x=j[8],b=j[9];return b!==Symbol.for("react.early_return_sentinel")?b:(j[13]!==_||j[14]!==x?(p=(0,a.jsx)("nav",{className:_,children:x}),j[13]=_,j[14]=x,j[15]=p):p=j[15],p)}])},352727,e=>{"use strict";var a=e.i(843476),s=e.i(500932),n=e.i(692925),t=e.i(37607),i=e.i(207670),l=e.i(551956),o=e.i(160195),c=e.i(522016),r=e.i(618566),m=e.i(271645);e.s(["default",0,function(){let e,h,u,d,g,f,S,N,_,x,b,p,j=(0,s.c)(38),I=(0,r.usePathname)(),L=(0,r.useParams)(),v=L.subTopSlug||void 0,A=L.lang||o.DEFAULT_LANG,[O,E]=(0,m.useState)(!1),[M,P]=(0,m.useState)(!1),T=(0,m.useRef)(null),y=(0,m.useRef)(null),k=(0,m.useRef)(null);j[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>E(!1),j[0]=e):e=j[0],(0,t.useClickOutside)(T,O,e),j[1]===Symbol.for("react.memo_cache_sentinel")?(h=()=>P(!1),j[1]=h):h=j[1],(0,t.useClickOutside)(y,M,h,k);let G=l.GLOBALS.SUB_TOP_ITEMS;j[2]!==v?(u=void 0!==v&&v===G.find(e=>e.subTopSlug===v)?.subTopSlug,j[2]=v,j[3]=u):u=j[3];let B=u;j[4]!==B||j[5]!==A||j[6]!==I||j[7]!==v?(d=B&&I===(0,o.buildI18nPath)(`/${v}`,A),j[4]=B,j[5]=A,j[6]=I,j[7]=v,j[8]=d):d=j[8];let C=d,U=l.GLOBALS.COMPACT_HEADER_NAV_SORT;if(j[9]!==O||j[10]!==M||j[11]!==B||j[12]!==C||j[13]!==A||j[14]!==I){let e,s=[{name:"manga",text:(0,o.getI18nMessage)("mangaKatakana",A),url:"/category/manga/1",navPath:"category/manga"},...l.GLOBALS.HAS_MANGA_RANKING?[{name:"ranking",text:(0,o.getI18nMessage)("rankingLowercase",A),url:"/ranking/manga",navPath:"/ranking/manga"}]:[],{name:"magazines",text:(0,o.getI18nMessage)("magazines",A)},{name:"books",text:(0,o.getI18nMessage)("booksLowercase",A),url:"/store_items/list/1",navPath:"store_item"}].filter(e=>U.includes(e.name));s.sort((e,a)=>U.indexOf(e.name)-U.indexOf(a.name)),j[21]!==M?(e=e=>{e?P(!1):P(!M)},j[21]=M,j[22]=e):e=j[22];let t=e,r=e=>{window&&window.innerWidth>=l.GLOBALS.BREAKPOINT_SP&&(e?E(!1):E(!O))};_="h-compact",j[23]!==t?(x=(0,a.jsx)("a",{className:"h-compact-menu-sp-button",onClick:()=>t(),ref:k}),j[23]=t,j[24]=x):x=j[24];let m=M&&"mode-sp-open";j[25]!==m?(g=(0,i.default)("h-compact-menu-list",m),j[25]=m,j[26]=g):g=j[26],f=y,j[27]!==t?(S=e=>{(0,n.closestElm)(e.target,"a")&&setTimeout(()=>{t(!0)},200)},j[27]=t,j[28]=S):S=j[28],N=s.map(e=>(0,a.jsx)("li",{className:"h-compact-menu-item",children:e.url&&e.navPath?(0,a.jsx)(c.default,{className:(0,i.default)("h-compact-menu-link",-1!==I.indexOf(e.navPath)&&!B&&"mode-active"),href:(0,o.buildI18nPath)(e.url,A),children:e.text}):(0,a.jsx)(a.Fragment,{children:"magazines"===e.name&&l.GLOBALS.USING_SUB_TOP&&(0,a.jsxs)("div",{className:"h-compact-menu-label",ref:T,children:[(0,a.jsx)("a",{className:(0,i.default)("h-compact-menu-link mode-label",C&&"mode-active"),onClick:()=>r(),children:e.text}),(0,a.jsx)("ul",{className:(0,i.default)("h-compact-menu-label-list",O&&"mode-open"),onClick:e=>{(0,n.closestElm)(e.target,"a")&&setTimeout(()=>{r(!0)},200)},children:G.map(e=>(0,a.jsx)("li",{className:"h-compact-menu-label-item",children:(0,a.jsx)(c.default,{className:"h-compact-menu-label-item-link",href:(0,o.buildI18nPath)(`/${e.subTopSlug}`,A),children:(0,a.jsx)("img",{className:"h-compact-menu-label-item-image",src:`/images/logo/${l.GLOBALS.APP_ID}/${e.subTopSlug}/logo.webp`,alt:e.subTopName})})},e.subTopName))})]})})},e.name)),j[9]=O,j[10]=M,j[11]=B,j[12]=C,j[13]=A,j[14]=I,j[15]=g,j[16]=f,j[17]=S,j[18]=N,j[19]=_,j[20]=x}else g=j[15],f=j[16],S=j[17],N=j[18],_=j[19],x=j[20];return j[29]!==g||j[30]!==f||j[31]!==S||j[32]!==N?(b=(0,a.jsx)("ul",{className:g,ref:f,onClick:S,children:N}),j[29]=g,j[30]=f,j[31]=S,j[32]=N,j[33]=b):b=j[33],j[34]!==b||j[35]!==_||j[36]!==x?(p=(0,a.jsxs)("nav",{className:_,children:[x,b]}),j[34]=b,j[35]=_,j[36]=x,j[37]=p):p=j[37],p}])}]); 2 3//# sourceMappingURL=0kv1.htttnvf6.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.