PageSourceSearch

https://www.livelib.ru/_next/static/chunks/8929-32e68652b0cae2b3.js

js livelib.ru collected 2026-10-01 08:32:51 UTC 124,921 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3445f9ac-058c-41c1-b0f2-84ae94d5e897",e._sentryDebugIdIdentifier="sentry-dbid-3445f9ac-058c-41c1-b0f2-84ae94d5e897")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8929],{906:e=>{e.exports={wrapper:"SearchInput_wrapper__sF_Tz",label:"SearchInput_label__qjb5r",subLabel:"SearchInput_subLabel__JySBO",inputWrapper:"SearchInput_inputWrapper__gFrDx",input:"SearchInput_input__jywF9",textarea:"SearchInput_textarea__3gRwg",input_state_focus:"SearchInput_input_state_focus__GGNm8",characterCounter:"SearchInput_characterCounter__o2dvE",characterCounter_state_normal:"SearchInput_characterCounter_state_normal__M8tkD",characterCounter_state_warning:"SearchInput_characterCounter_state_warning__2aWTd",characterCounter_state_error:"SearchInput_characterCounter_state_error__boHz4",characterCounter_state_success:"SearchInput_characterCounter_state_success__n7GnT",messageFooter:"SearchInput_messageFooter__EusDB",MessageFooterMaxLengthHint:"SearchInput_MessageFooterMaxLengthHint__gS2_H",MessageFooterMaxLengthHintIcon:"SearchInput_MessageFooterMaxLengthHintIcon__EGFKH",input_size_S:"SearchInput_input_size_S__oSiQT",input_behavior_fixed:"SearchInput_input_behavior_fixed__p2jqL",input_behavior_expandable:"SearchInput_input_behavior_expandable__wHBC_",input_size_M:"SearchInput_input_size_M__mlbet",input_size_L:"SearchInput_input_size_L__6Vig5",searchInput:"SearchInput_searchInput__CTZGB",searchInputIcon:"SearchInput_searchInputIcon__n3vAY",searchInputClearButton:"SearchInput_searchInputClearButton__ANRwp",searchInputClearButton_hidden:"SearchInput_searchInputClearButton_hidden__ur8QV",searchInputClearIcon:"SearchInput_searchInputClearIcon__aDxk_",searchInputMobileWrapper:"SearchInput_searchInputMobileWrapper__ZMSBj",searchInputMobileField:"SearchInput_searchInputMobileField__dZKsh",searchInputCancelButton:"SearchInput_searchInputCancelButton__Ky_uJ"}},1598:e=>{e.exports={wrapper:"TextInput_wrapper__4GAkf",label:"TextInput_label__QZDWm",subLabel:"TextInput_subLabel___2Rz5",inputWrapper:"TextInput_inputWrapper__3PCSS",input:"TextInput_input__CHLY2",textarea:"TextInput_textarea__HDBLH",input_state_focus:"TextInput_input_state_focus___3Hbg",characterCounter:"TextInput_characterCounter__lS3qa",characterCounter_state_normal:"TextInput_characterCounter_state_normal__D3jA3",characterCounter_state_warning:"TextInput_characterCounter_state_warning__KcNFT",characterCounter_state_error:"TextInput_characterCounter_state_error__hxXLq",characterCounter_state_success:"TextInput_characterCounter_state_success___sg4o",messageFooter:"TextInput_messageFooter__mnDxT",MessageFooterMaxLengthHint:"TextInput_MessageFooterMaxLengthHint__oXmTZ",MessageFooterMaxLengthHintIcon:"TextInput_MessageFooterMaxLengthHintIcon__Nu1MF",input_size_S:"TextInput_input_size_S__xZ_5m",input_behavior_fixed:"TextInput_input_behavior_fixed__U4HIo",input_behavior_expandable:"TextInput_input_behavior_expandable___vigE",input_size_M:"TextInput_input_size_M__njydg",input_size_L:"TextInput_input_size_L__C6gHP",textInput:"TextInput_textInput__XAbj9"}},2835:(e,t,a)=>{"use strict";a.d(t,{m:()=>h});var n=a(10749);a(66985);var r=a(66025),i=a.n(r),o=a(47740),l=a(91244),s=a(36825),_=a(26065),c=a(71053),d=a(85108),u=a.n(d);let h=e=>{let{pageCount:t=10,currentPage:a=1,disabledClassName:r,breakClassName:d,onChange:h=l.lQ,onClick:p,hrefBuilder:g,linkScroll:m,isBreakClickEnable:C=!1,ellipsisVariant:x="dots"}=e,{width:b}=(0,_.v)(),v=e=>{h({selected:e-1})},f=(e,t)=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),v(t))};return(0,n.jsx)(o.A,{total:t,current:a,onChange:v,showSizeChanger:!1,showQuickJumper:!1,showTotal:()=>null,pageSize:1,showTitle:!1,showLessItems:!(b>496),className:u().PaginatorContainer,itemRender:(e,r,o)=>{if("prev"===r){let e=g&&a>1?g(a-1):void 0;return e?(0,n.jsx)(c.default,{href:e,...!1===m?{scroll:!1}:{},className:i()(u().PaginatorArrow,{[u().PaginatorArrow_disabled]:1===a}),"aria-disabled":1===a,"aria-label":"Предыдущая страница",onClick:e=>{a>1&&!g&&(e.preventDefault(),v(a-1))},children:(0,n.jsx)(s.h,{name:"arrow-left",size:18,className:u().PaginatorIcon})}):(0,n.jsx)("span",{className:i()(u().PaginatorArrow,{[u().PaginatorArrow_disabled]:1===a}),role:"button","aria-disabled":1===a,"aria-label":"Предыдущая страница",onClick:()=>a>
11&&v(a-1),onKeyDown:e=>f(e,a-1),children:(0,n.jsx)(s.h,{name:"arrow-left",size:18,className:u().PaginatorIcon})})}if("next"===r){let e=g&&a<t?g(a+1):void 0;return e?(0,n.jsx)(c.default,{href:e,...!1===m?{scroll:!1}:{},className:i()(u().PaginatorArrow,{[u().PaginatorArrow_disabled]:a===t}),tabIndex:a===t?-1:0,"aria-disabled":a===t,"aria-label":"Следующая страница",onClick:e=>{a<t&&!g&&(e.preventDefault(),v(a+1))},children:(0,n.jsx)(s.h,{name:"arrow-right",size:18,className:u().PaginatorIcon})}):(0,n.jsx)("span",{className:i()(u().PaginatorArrow,{[u().PaginatorArrow_disabled]:a===t}),role:"button",tabIndex:a===t?-1:0,"aria-disabled":a===t,"aria-label":"Следующая страница",onClick:()=>a<t&&v(a+1),onKeyDown:e=>f(e,a+1),children:(0,n.jsx)(s.h,{name:"arrow-right",size:18,className:u().PaginatorIcon})})}if("jump-prev"===r||"jump-next"===r)return"dash"===x?(0,n.jsx)("span",{className:i()(u().PaginatorPage,u().PaginatorBreak,d,{[u().PaginatorBreak_clickEnable]:C}),"aria-hidden":!0,children:"—"}):(0,n.jsx)("span",{className:i()(u().PaginatorPage,u().PaginatorBreak,d,{[u().PaginatorBreak_clickEnable]:C}),role:"button","aria-label":"Пропустить страницы",children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",children:(0,n.jsx)("path",{d:"M6.57227 9.0918C7.12396 9.09183 7.5791 9.50567 7.5791 10.085C7.57907 10.6642 7.12394 11.0918 6.57227 11.0918C6.03435 11.0918 5.57913 10.6642 5.5791 10.085C5.5791 9.50565 6.03433 9.0918 6.57227 9.0918ZM9.99219 9.0918C10.5438 9.09189 10.999 9.50572 10.999 10.085C10.999 10.6642 10.5438 11.0917 9.99219 11.0918C9.45428 11.0918 8.99906 10.6642 8.99902 10.085C8.99902 9.50565 9.45426 9.0918 9.99219 9.0918ZM13.4141 9.0918C13.9656 9.09196 14.4209 9.50576 14.4209 10.085C14.4209 10.6641 13.9656 11.0916 13.4141 11.0918C12.8762 11.0918 12.4209 10.6642 12.4209 10.085C12.4209 9.50565 12.8761 9.0918 13.4141 9.0918Z",fill:"#13192E"})})});if("page"===r){let t=g?g(e):void 0;return t?(0,n.jsx)(c.default,{href:t,...!1===m?{scroll:!1}:{},className:i()(u().PaginatorPage,{[u().PaginatorPage_active]:e===a}),"aria-label":"Страница ".concat(e),onClick:t=>{g||(t.preventDefault(),v(e))},children:e}):(0,n.jsx)("span",{className:i()(u().PaginatorPage,{[u().PaginatorPage_active]:e===a}),role:"button","aria-label":"Страница ".concat(e),onClick:()=>v(e),onKeyDown:t=>f(t,e),children:e})}return o}})}},3254:(e,t,a)=>{"use strict";a.d(t,{GW:()=>m,Gg:()=>u});var n=a(10749),r=a(66985),i=a(66025),o=a.n(i),l=a(91244),s=a(91893),_=a(60067),c=a(89940),d=a.n(c);let u=e=>{let{size:t=16,fillPercentage:a=100,className:i=""}=e,l=(0,r.useId)(),s=(0,r.useMemo)(()=>"star-".concat(l),[l]),_=(0,r.useMemo)(()=>"gradient-".concat(l),[l]);return(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 12 11",fill:"none",className:o()(d().starIcon,i),"aria-hidden":"true",children:[(0,n.jsxs)("defs",{children:[(0,n.jsxs)("linearGradient",{id:_,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0,n.jsx)("stop",{offset:"0%",stopColor:"#13192E",stopOpacity:"1"}),(0,n.jsx)("stop",{offset:"".concat(a,"%"),stopColor:"#13192E",stopOpacity:"1"}),(0,n.jsx)("stop",{offset:"".concat(a,"%"),stopColor:"#70768C",stopOpacity:"0.5"}),(0,n.jsx)("stop",{offset:"100%",stopColor:"#70768C",stopOpacity:"0.5"})]}),(0,n.jsx)("clipPath",{id:"clip-".concat(s),children:(0,n.jsx)("rect",{width:"12",height:"11",fill:"white"})})]}),(0,n.jsx)("g",{clipPath:"url(#clip-".concat(s,")"),children:(0,n.jsx)("path",{d:"M5.56442 0.93392C5.75568 0.594598 6.24432 0.594598 6.43558 0.93392L7.79206 3.34056C7.86341 3.46715 7.9863 3.55644 8.12874 3.58518L10.8368 4.13158C11.2186 4.20862 11.3696 4.67334 11.106 4.96009L9.2363 6.99388C9.13795 7.10086 9.09101 7.24532 9.1077 7.38967L9.42487 10.134C9.46959 10.5209 9.07427 10.8082 8.72009 10.6461L6.20808 9.49637C6.07595 9.43589 5.92405 9.43589 5.79192 9.49637L3.27991 10.6461C2.92573 10.8082 2.53041 10.5209 2.57513 10.134L2.8923 7.38967C2.90899 7.24532 2.86205 7.10086 2.7637 6.99388L0.894026 4.96009C0.630412 4.67334 0.78141 4.20862 1.16323 4.13158L3.87126 3.58518C4.0137 3.55644 4.13659 3.46715 4.20794 3.34056L5.56442 0.93392Z",fill:"url(#".concat(_,")")})})]})};var h=a(55238);let p=[{label:"Прочитали",value:5},{label:"Хотят прочитать",value:10}],g=[5,4,3,2,1],m=e=>{let{value:t,totalReviews:a,distribution:i,readonly:c=!0,userAvatarUrl:m,userRating:b,userEmotions:v,onRatingChange:f,onEmotionsRatingChange:y,onEmotionRatingDelete:S,className:k="",counters:w=p,emotions:N=[]}=e,j=(0,r.useMemo)(()=>{let e=(0,l.gW)(a),t=(0,s.d6)(a,"rating");return"".concat(e," ").concat(t)},[a]),I=(0,r.useMemo)(()=>w.filter(e=>0!==e.value),[w]),L=v&&v.length>0?v[0]:null;return(0,n.jsxs)("section",{className:o()(d().Rating,k),role:"group","aria-label":"Рейтинг книги",children:[(0,n.jsx)(C,{}),(0,n.jsxs)("div",{className:d().RatingBody,children:[(0,n.jsx)("div",{className:d().RatingSummary,children:(0,n.jsxs)("div",{className:d().RatingScoreSection,children:[(0,n.jsx)("div",{className:d().RatingScore,children:(e=>0===e?"0":e.toFixed(1).replace(".",","))(t)}),(0,n.jsxs)("div",{className:d().RatingReviewCountContainer,children:[(0,n.jsx)("div",{className:d().RatingStars,children:Array.from({length:5},(e,a)=>(0,n.jsx)(u,{fillPercentage:(e=>{let a=t-e;return a<=0?0:a>=1?100:50})(a),className:d().RatingStar},a))}),(0,n.jsx)("span",{className:d().RatingReviewCount,children:j})]})]})}),a>0&&(0,n.jsx)("ul",{className:d().RatingDistribution,children:g.map(e=>{let t=i[e]||0;return(0,n.jsxs)("li",{className:d().RatingDistributionRow,children:[(0,n.jsxs)("div",{className:d().RatingLabelContainer,children:[(0,n.jsx)("span",{className:d().RatingLabel,children:e}),(0,n.jsx)(u,{size:12,fillPercentage:100})]}),(0,n.jsx)("div",{className:d().RatingBarContainer,children:(0,n.jsx)("div",{className:d().RatingBarFill,style:{width:"".concat(t,"%")}})}),(0,n.jsxs)("span",{className:d().RatingPercentage,children:[t,"%"]})]},e)})})]}),0===a&&(0,n.jsx)("span",{className:d().RatingReviewCount,children:"Эту книгу пока никто не оценил, ваша оценка может стать первой"}),(0,n.jsxs)("div",{className:d().RatingCountersContainer,children:[(0,n.jsx)("div",{children:(0,n.jsx)(h.Y,{avatarUrl:m,value:null!=b?b:void 0,userEmotion:L,onChange:f,onSetEmotionsButtonClick:y,onEmotionRatingDelete:S})}),N.length>0&&(0,n.jsxs)("div",{className:d().RatingEmotions,children:[(0,n.jsx)("h4",{className:d().RatingEmotionsTitle,children:"Эмоции читателей от книги"}),(0,n.jsx)("div",{className:d().RatingEmotionsList,children:N.map(e=>{let{emotion:t,count:a}=e;return(0,n.jsx)(_.l,{emotion:t,label:!0,count:a,onEmotionRatingChange:y,hasUserEmotionRating:!!L},t)})})]}),I.length>0&&(0,n.jsx)(x,{counters:I})]})]})},C=()=>(0,n.jsx)("h3",{className:d().RatingHeader,children:"Рейтинг LiveLib"}),x=e=>{let{counters:t}=e;return(0,n.jsx)("div",{className:d().RatingCounters,children:t.map(e=>{let{label:t,value:a}=e;return(0,n.jsx)("span",{className:d().RatingCounter,children:"".concat(t," ").concat(a)},t)})})}},5489:e=>{e.exports={wrapper:"shared_wrapper__3MrIr",label:"shared_label__8fuuK",subLabel:"shared_subLabel__qIuFO",inputWrapper:"shared_
1inputWrapper__UgyuQ",input:"shared_input__3b7to",textarea:"shared_textarea__GMJ8Z",input_state_focus:"shared_input_state_focus__aagm7",characterCounter:"shared_characterCounter__M9698",characterCounter_state_normal:"shared_characterCounter_state_normal__CPa6R",characterCounter_state_warning:"shared_characterCounter_state_warning__QqcFd",characterCounter_state_error:"shared_characterCounter_state_error__0GSqz",characterCounter_state_success:"shared_characterCounter_state_success__6iteQ",messageFooter:"shared_messageFooter__BWpgm",MessageFooterMaxLengthHint:"shared_MessageFooterMaxLengthHint__72Lmr",MessageFooterMaxLengthHintIcon:"shared_MessageFooterMaxLengthHintIcon__trtDv",input_size_S:"shared_input_size_S__g5qgq",input_behavior_fixed:"shared_input_behavior_fixed__LWkz6",input_behavior_expandable:"shared_input_behavior_expandable__NACu2",input_size_M:"shared_input_size_M__2rNT1",input_size_L:"shared_input_size_L__Nt_mn"}},6110:(e,t,a)=>{"use strict";a.d(t,{c:()=>o});var n=a(10749);a(66985);var r=a(66025),i=a.n(r);let o=e=>{let{currentLength:t,maxLength:a,className:r,styles:o,ariaLabel:s}=e,_=l(t,a),c=a?"".concat(t,"/").concat(a):"".concat(t),d=s||"Символов: ".concat(c).concat(a?" из ".concat(a):"");return(0,n.jsx)("div",{className:i()(r,o.characterCounter,o["characterCounter_state_".concat(_)]),"aria-label":d,children:c})},l=(e,t)=>t?e>t?"error":e>=.8*t?"warning":e>0?"success":"normal":"normal"},6220:e=>{e.exports={NotificationLayout:"NotificationLayout_NotificationLayout__hXS7A",NotificationLayout_Info:"NotificationLayout_NotificationLayout_Info__Ub9Nh",NotificationLayoutIcon:"NotificationLayout_NotificationLayoutIcon__p0DoE",NotificationLayout_Error:"NotificationLayout_NotificationLayout_Error__MJv37",NotificationLayout_Warning:"NotificationLayout_NotificationLayout_Warning__SV_TE",NotificationLayout_Success:"NotificationLayout_NotificationLayout_Success__BNiYA",NotificationLayout_FullWidth:"NotificationLayout_NotificationLayout_FullWidth__565JM",NotificationLayout_IsMobile:"NotificationLayout_NotificationLayout_IsMobile___Q1Sl","show-message":"NotificationLayout_show-message__qSxSN",NotificationLayoutTitle:"NotificationLayout_NotificationLayoutTitle__kSKyb",NotificationLayoutContent:"NotificationLayout_NotificationLayoutContent__yDRP9",NotificationLayoutButton:"NotificationLayout_NotificationLayoutButton__THVnu",NotificationLayoutClose:"NotificationLayout_NotificationLayoutClose__3oDfQ"}},6372:e=>{e.exports={QuoteContainer:"Quote_QuoteContainer__oOGIh",QuoteContainerIcon:"Quote_QuoteContainerIcon__ihxVP",QuoteContainerText:"Quote_QuoteContainerText__8MrU9",QuoteContainerTextButton:"Quote_QuoteContainerTextButton__sbQao",QuoteContainerBookCard:"Quote_QuoteContainerBookCard__tNlMs"}},7726:e=>{e.exports={CollectionCard:"CollectionCard_CollectionCard__19Rxs",CollectionCardAbout:"CollectionCard_CollectionCardAbout__b4d0G",CollectionCardStatus:"CollectionCard_CollectionCardStatus__5bOxo",CollectionCardQuantity:"CollectionCard_CollectionCardQuantity__p1dnh",CollectionCardLinkButton:"CollectionCard_CollectionCardLinkButton__3Mxji",CollectionCardCovers:"CollectionCard_CollectionCardCovers__jrXfD",CollectionCardCoverItem:"CollectionCard_CollectionCardCoverItem__0bdaB",CollectionCardCoverItem_empty:"CollectionCard_CollectionCardCoverItem_empty__Ix6aL",CollectionCardCoverImg:"CollectionCard_CollectionCardCoverImg__2KsSL",CollectionCardCoverTrigger:"CollectionCard_CollectionCardCoverTrigger__rYjVd"}},9365:(e,t,a)=>{"use strict";a.d(t,{P:()=>_});var n=a(10749);a(66985);var r=a(77594),i=a.n(r),o=a(3254),l=a(66025),s=a.n(l);let _=e=>{let{starValue:t,classNames:a}=e;return(0,n.jsx)("div",{className:s()(i().StarsRatingContainer,a),children:Array.from({length:5},(e,a)=>(0,n.jsx)(o.Gg,{fillPercentage:(e=>{let a=t-e;return a<=0?0:a>=1?100:50})(a),className:i().RatingStar},a))})}},11164:(e,t,a)=>{"use strict";a.d(t,{o:()=>n.o});var n=a(13891)},12196:e=>{e.exports={SocialButtonIcon_size_lg:"SocialButton_SocialButtonIcon_size_lg__Hto60",SocialButtonIcon_size_md:"SocialButton_SocialButtonIcon_size_md__3BJT8",SocialButtonIcon_size_sm:"SocialButton_SocialButtonIcon_size_sm__TNsPK"}},12230:e=>{e.exports={title1:"QuoteText_title1__yW3kt",title2:"QuoteText_title2__klQ5L",title3:"QuoteText_title3__SCNN1",title4:"QuoteText_title4__bH1QW",title5:"QuoteText_title5__rGnYZ",description:"QuoteText_description__xPoBy",bodyS:"QuoteText_bodyS__pB1jI",bodyM:"QuoteText_bodyM__5Kyxh",bodyL:"QuoteText_bodyL__TJEXZ",QuoteText:"QuoteText_QuoteText__egs6l",QuoteTextAsLink:"QuoteText_QuoteTextAsLink__7uM4j",QuoteTextContent:"QuoteText_QuoteTextContent__nkdmd",QuoteTextContent_Collapsed:"QuoteText_QuoteTextContent_Collapsed__dJ15T",QuoteTextToggleButton:"QuoteText_QuoteTextToggleButton__yxNbL",QuoteTextLinkButton:"QuoteText_QuoteTextLinkButton__hNtq_",QuoteTextSpoilerContent:"QuoteText_QuoteTextSpoilerContent__3et2p",QuoteTextSpoilerBody_Collapsed:"QuoteText_QuoteTextSpoilerBody_Collapsed__ZxmmE"}},13336:e=>
1{e.exports={title1:"AuthorCard_title1__RAKR4",title2:"AuthorCard_title2___BYeM",title3:"AuthorCard_title3__XOGhZ",title4:"AuthorCard_title4__nUrsv",title5:"AuthorCard_title5__4NvQ2",description:"AuthorCard_description__7TuZs",bodyS:"AuthorCard_bodyS__f2vUh",bodyM:"AuthorCard_bodyM__a2FaB",bodyL:"AuthorCard_bodyL__zTgQ3",AuthorCard:"AuthorCard_AuthorCard__mZnX0",AuthorCardAvatarLink:"AuthorCard_AuthorCardAvatarLink__w6WIZ",AuthorCardAvatar:"AuthorCard_AuthorCardAvatar__bfQUZ",AuthorCardInfo:"AuthorCard_AuthorCardInfo__mTIN_",AuthorCardNameLink:"AuthorCard_AuthorCardNameLink__aowfn"}},13664:e=>{e.exports={title1:"SelectionCard_title1__aKevh",title2:"SelectionCard_title2__3p7h9",title3:"SelectionCard_title3__QvF2d",title4:"SelectionCard_title4__lIoF_",title5:"SelectionCard_title5__YIjQY",description:"SelectionCard_description__GzX2K",bodyS:"SelectionCard_bodyS__WjOX9",bodyM:"SelectionCard_bodyM__k5oQD",bodyL:"SelectionCard_bodyL__GaepC",SelectionCard:"SelectionCard_SelectionCard__oLL7n",SelectionCard_share:"SelectionCard_SelectionCard_share__SCXIn",SelectionCardLink:"SelectionCard_SelectionCardLink__NKdYv",SelectionCardInfoItem:"SelectionCard_SelectionCardInfoItem__xUY_7",SelectionCardTitle:"SelectionCard_SelectionCardTitle__A6kV1",SelectionCardCustomCover:"SelectionCard_SelectionCardCustomCover__nhIAj",SelectionCardCovers:"SelectionCard_SelectionCardCovers__N4Q0G",SelectionCardCoverItem:"SelectionCard_SelectionCardCoverItem__sdd7K",SelectionCardCoverItem_empty:"SelectionCard_SelectionCardCoverItem_empty__knRG1",SelectionCardImg:"SelectionCard_SelectionCardImg__91AGl",SelectionCardCoverTrigger:"SelectionCard_SelectionCardCoverTrigger__rTH7X",SelectionCardAbout:"SelectionCard_SelectionCardAbout__8aO72",SelectionCardAbout_without_actions:"SelectionCard_SelectionCardAbout_without_actions___2qug",SelectionCardTitle_size_s:"SelectionCard_SelectionCardTitle_size_s__X2EHv",SelectionCardInfo:"SelectionCard_SelectionCardInfo__8WFqM",SelectionCardInfoItem_type_visibility:"SelectionCard_SelectionCardInfoItem_type_visibility__DH0qD",SelectionCardUserAvatar:"SelectionCard_SelectionCardUserAvatar__SadBp",SelectionCardUserLogin:"SelectionCard_SelectionCardUserLogin__BKMVH",SelectionCardActionMenu:"SelectionCard_SelectionCardActionMenu__ON2ZR",SelectionCardMoreButton:"SelectionCard_SelectionCardMoreButton__cLch7",SelectionCardFavoriteFilledIcon:"SelectionCard_SelectionCardFavoriteFilledIcon__GQ0VN"}},13891:(e,t,a)=>{"use strict";a.d(t,{o:()=>c});var n=a(10749),r=a(66985),i=a(66025),o=a.n(i),l=a(71053),s=a(59108),_=a.n(s);let c=(0,r.forwardRef)((e,t)=>{let{children:a,isActive:i=!1,count:s,countTestId:c,onClick:d,className:u,htmlProps:h,href:p,...g}=e,m=(0,r.useRef)(null),{onClick:C,...x}=null!=h?h:{},b=(0,r.useCallback)(e=>{m.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[t]);(0,r.useEffect)(()=>{var e;if(!i||!m.current)return;let t=m.current,a=t.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight;if(!(a.top>=0&&a.bottom<=n))return;let r=t.parentElement;for(;r&&r!==document.body;){let e=window.getComputedStyle(r),t=r.scrollWidth>r.clientWidth,n="auto"===e.overflowX||"scroll"===e.overflowX||"auto"===e.overflow||"scroll"===e.overflow;if(t&&n){let e=r.getBoundingClientRect(),t=a.left-e.left+r.scrollLeft,n=a.width,i=t-r.clientWidth/2+n/2;r.scrollTo({left:i,behavior:"smooth"});return}r=r.parentElement}null==(e=t.scrollIntoView)||e.call(t,{behavior:"smooth",block:"nearest",inline:"center"})},[i]);let v=(0,r.useCallback)(e=>{null==C||C(e),!e.defaultPrevented&&d&&(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||0!==e.button||(e.preventDefault(),d(e)))},[C,d]);return(0,n.jsx)(l.default,{ref:b,href:null!=p?p:"#",className:o()(_().tab,{[_().active]:i},u),onClick:v,...x,...g,children:(0,n.jsxs)("div",{className:_().tabInner,children:[(0,n.jsxs)("div",{className:_().tabContent,children:[(0,n.jsx)("div",{className:_().tabText,children:a}),(0,n.jsx)("div",{className:_().tabCount,children:s})]}),(0,n.jsx)("div",{className:_().tabLine})]})})});c.displayName="Tab"},14158:e=>{e.exports={wrapper:"TextAreaInput_wrapper__o4a4w",label:"TextAreaInput_label__wa3r
1S",subLabel:"TextAreaInput_subLabel__rldeM",inputWrapper:"TextAreaInput_inputWrapper__HiTfZ",input:"TextAreaInput_input__34it_",textarea:"TextAreaInput_textarea__ho8Lx",input_state_focus:"TextAreaInput_input_state_focus__sr5cW",characterCounter:"TextAreaInput_characterCounter__u_Yx3",characterCounter_state_normal:"TextAreaInput_characterCounter_state_normal__7muye",characterCounter_state_warning:"TextAreaInput_characterCounter_state_warning__tA1gj",characterCounter_state_error:"TextAreaInput_characterCounter_state_error__DcTxm",characterCounter_state_success:"TextAreaInput_characterCounter_state_success__uVgHD",messageFooter:"TextAreaInput_messageFooter__H_OgH",MessageFooterMaxLengthHint:"TextAreaInput_MessageFooterMaxLengthHint__kPQbF",MessageFooterMaxLengthHintIcon:"TextAreaInput_MessageFooterMaxLengthHintIcon__H5sur",input_size_S:"TextAreaInput_input_size_S__1NtCk",input_behavior_fixed:"TextAreaInput_input_behavior_fixed__wm9__",input_behavior_expandable:"TextAreaInput_input_behavior_expandable__EeDPp",input_size_M:"TextAreaInput_input_size_M__yR58O",input_size_L:"TextAreaInput_input_size_L__3YzRV",textAreaInput:"TextAreaInput_textAreaInput__q0Wd4"}},16840:e=>{e.exports={CompactBookCard:"CompactBookCard_CompactBookCard__vh_a8",CompactBookCardCoverOverlay:"CompactBookCard_CompactBookCardCoverOverlay__51QpI",CompactBookCardContent:"CompactBookCard_CompactBookCardContent__MbikX",BookCardInfoContainer:"CompactBookCard_BookCardInfoContainer__GElZs",BookCardImageLink:"CompactBookCard_BookCardImageLink__JzwYR",BookCardImage:"CompactBookCard_BookCardImage__MfZ0f",AboutBookCardInfo:"CompactBookCard_AboutBookCardInfo__4VFgs",BookTitle:"CompactBookCard_BookTitle__vzWDi",BookTitleLink:"CompactBookCard_BookTitleLink__62dTX",BookAuthor:"CompactBookCard_BookAuthor__JSRsT",BookAuthorLink:"CompactBookCard_BookAuthorLink__cLVGx",RatingContainer:"CompactBookCard_RatingContainer___r0vv",RatingStar:"CompactBookCard_RatingStar__msBHZ",CountContainer:"CompactBookCard_CountContainer__mlaxk",RatingStarIcon:"CompactBookCard_RatingStarIcon__Otmui",CompactBookCardAddButton:"CompactBookCard_CompactBookCardAddButton__JRMde"}},21613:(e,t,a)=>{"use strict";a.d(t,{N:()=>g});var n=a(10749),r=a(66985),i=a(64444),o=a(66025),l=a.n(o),s=a(69036),_=a(25153),c=a(96039),d=a(36825),u=a(50504),h=a.n(u);let p=e=>e.stopPropagation(),g=r.forwardRef((e,t)=>{let{isOpen:a,onClose:o,children:u,title:g,titleClassName:m,size:C="s",closeOnOverlayClick:x=!0,showCloseButton:b=!0,showBackButton:v=!1,onBack:f,footer:y,footerClassName:S,hideFooterBorder:k=!1,footerBorderOnScroll:w=!1,customHeader:N,customHeaderClassName:j,containerId:I="modal-root",className:L,contentClassName:T,hideBackdrop:B=!1,testId:M,closeButtonTestId:R,backButtonTestId:A}=e,P=(e=>{let t=(0,s.w)(),a=(0,r.useRef)(null);return((0,r.useEffect)(()=>{if(!t)return;let n=document.querySelector("#".concat(e)),r=n||(e=>{let t=document.createElement("div");return t.setAttribute("id",e),t})(e);return n||(e=>{var t;document.body.insertBefore(e,(null==(t=document.body.lastElementChild)?void 0:t.nextElementSibling)||document.body.lastElementChild)})(r),a.current&&r.appendChild(a.current),()=>{a.current&&a.current.remove()}},[e,t]),t)?(a.current||(a.current=document.createElement("div")),a.current):null})(I);(0,_.Bc)(a);let{scrollRef:F,isScrollable:z}=(e=>{let[t,a]=(0,r.useState)(null),[n,i]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!e||!t)return void i(!1);let a=()=>{i(t.scrollHeight>t.clientHeight)};a();let n=new ResizeObserver(a);return n.observe(t),Array.from(t.children).forEach(e=>n.observe(e)),()=>n.disconnect()},[e,t]),{scrollRef:(0,r.useCallback)(e=>{a(e)},[]),isScrollable:n}})(a&&w),D=(0,r.useCallback)(e=>{F(e),"function"==typeof t?t(e):t&&(t.current=e)},[F,t]);if("undefined"==typeof document||P||(P=document.body),(0,r.useEffect)(()=>{if(!a)return;let e=e=>{"Escape"===e.key&&(o(),document.activeElement instanceof HTMLElement&&document.activeElement.blur())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[a,o]),!a||!P)return null;let E=l()(h().modalHeader,j),U=l()(h().modalContent,h()["modalContent_size_".concat(C)],T);return i.createPortal((0,n.jsx)("div",{className:l()(L,h().modal,{[h().modal_noBackdrop]:B,[h().modal_authLogin]:B}),onClick:()=>{x&&o()},role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:(0,n.jsxs)("div",{className:U,onClick:p,children:[(0,n.jsxs)("div",{className:E,
1children:[v&&(0,n.jsx)(c.$,{className:h().backButton,type:"button",onClick:f,"aria-label":"Назад",children:(0,n.jsx)(d.h,{name:"arrow-left",size:18})}),g&&(0,n.jsx)("h2",{id:"modal-title",className:l()(h().modalTitle,m),children:g}),N&&N,b&&(0,n.jsx)(c.$,{className:h().closeButton,type:"button",onClick:o,"aria-label":"Закрыть",children:(0,n.jsx)(d.h,{name:"close",size:18})})]}),(0,n.jsx)("div",{ref:D,className:h().modalScroll,children:u}),y&&(0,n.jsx)("div",{className:l()(h().modalFooter,(k||w&&!z)&&h().modalFooter_noBorder,S),children:y})]})}),P)});g.displayName="ModalView"},23444:e=>{e.exports={radioWrapper:"Radio_radioWrapper__ssUVq",radioLabel:"Radio_radioLabel__lQhvF",disabled:"Radio_disabled__DVtvt",radioInput:"Radio_radioInput__a9U32",radioControl:"Radio_radioControl__fKgry",labelText:"Radio_labelText__EdoAu",srOnly:"Radio_srOnly__F1T5J"}},26568:e=>{e.exports={RatingStars:"RatingStars_RatingStars__NVTCT",RatingStarsStarsContainer:"RatingStars_RatingStarsStarsContainer__JWdBA",RatingStarsStarsContainer_size_xs:"RatingStars_RatingStarsStarsContainer_size_xs__B6p94",RatingStarsStarButton:"RatingStars_RatingStarsStarButton__hOwAw",RatingStarsStarButton_readonly:"RatingStars_RatingStarsStarButton_readonly__ZZ9j3",RatingStarsStar:"RatingStars_RatingStarsStar__WkF6c"}},27738:e=>
1{e.exports={wrapper:"OTPInput_wrapper__GTxnz",label:"OTPInput_label__d1XsK",subLabel:"OTPInput_subLabel__8LMZm",inputWrapper:"OTPInput_inputWrapper__kmD9H",input:"OTPInput_input__iAhhf",textarea:"OTPInput_textarea__4OYSh",input_state_focus:"OTPInput_input_state_focus__nqeFw",characterCounter:"OTPInput_characterCounter__BJZg6",characterCounter_state_normal:"OTPInput_characterCounter_state_normal__0ba_e",characterCounter_state_warning:"OTPInput_characterCounter_state_warning__Ct2Yl",characterCounter_state_error:"OTPInput_characterCounter_state_error__S9AJz",characterCounter_state_success:"OTPInput_characterCounter_state_success__dcWwV",messageFooter:"OTPInput_messageFooter__bNJOe",MessageFooterMaxLengthHint:"OTPInput_MessageFooterMaxLengthHint__9WqHX",MessageFooterMaxLengthHintIcon:"OTPInput_MessageFooterMaxLengthHintIcon__GTDFc",input_size_S:"OTPInput_input_size_S__Ww_Ju",input_behavior_fixed:"OTPInput_input_behavior_fixed__VjT9I",input_behavior_expandable:"OTPInput_input_behavior_expandable__aDsV0",input_size_M:"OTPInput_input_size_M__72YCo",input_size_L:"OTPInput_input_size_L__f9aBO",otpContainer:"OTPInput_otpContainer__in42W",outerOtpInput:"OTPInput_outerOtpInput__2MC96",otpInput:"OTPInput_otpInput__lzA_U",otpInput_focused:"OTPInput_otpInput_focused__1qeZq",input_error:"OTPInput_input_error__qnE8n",otpInput_error:"OTPInput_otpInput_error__uShrz",input_error_focused:"OTPInput_input_error_focused__m5KUH",otpInput_error_focused:"OTPInput_otpInput_error_focused__PN22J",fakeCaret:"OTPInput_fakeCaret__67gl_","caret-blink":"OTPInput_caret-blink__XBwDb"}},28647:(e,t,a)=>{"use strict";a.d(t,{LE:()=>i,_n:()=>o,fe:()=>l});let n=[{value:"1",label:"январь"},{value:"2",label:"февраль"},{value:"3",label:"март"},{value:"4",label:"апрель"},{value:"5",label:"май"},{value:"6",label:"июнь"},{value:"7",label:"июль"},{value:"8",label:"август"},{value:"9",label:"сентябрь"},{value:"10",label:"октябрь"},{value:"11",label:"ноябрь"},{value:"12",label:"декабрь"}],r=[{value:"1",label:"янв."},{value:"2",label:"февр."},{value:"3",label:"мар."},{value:"4",label:"апр."},{value:"5",label:"мая"},{value:"6",label:"июн."},{value:"7",label:"июл."},{value:"8",label:"авг."},{value:"9",label:"сент."},{value:"10",label:"окт."},{value:"11",label:"нояб."},{value:"12",label:"дек."}],i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"full";return"abbreviated"===e?r:n},o=e=>{var t,a;return null!=(a=null==(t=i("abbreviated").find(t=>t.value===String(e)))?void 0:t.label)?a:null},l=e=>e.charAt(0).toUpperCase()+e.slice(1)},29462:(e,t,a)=>{"use strict";a.d(t,{UR:()=>o,w4:()=>i,xY:()=>r});let n=e=>{if(!e)return null;let t=parseInt(e,10);return Number.isNaN(t)?null:t},r=(e,t)=>{let a=t.getFullYear(),r=t.getMonth()+1,i=t.getDate(),o=n(e.year),l=n(e.month),s=n(e.day),_=e.year,c=e.month,d=e.day;return null!=o&&o>a?{day:d="",month:c="",year:_=String(a)}:o===a&&null!=l&&l>r?{day:d="",month:c="",year:_}:(o===a&&l===r&&null!=s&&s>i&&(d=""),{day:d,month:c,year:_})},i=(e,t,a)=>{let n=new Date(t,e,0).getDate();if(!a)return n;let r=a.getFullYear(),i=a.getMonth()+1,o=a.getDate();return t===r&&e===i?Math.min(n,o):n},o=(e,t,a)=>{if(!t)return e;let r=n(a),i=t.getFullYear();if(null==r||r<i)return e;if(r>i)return[];let o=t.getMonth()+1;return e.filter(e=>{let t=n(e.value);return null==t||t<=o})}},30364:e=>{e.exports={Bookshelf:"Bookshelf_Bookshelf__MTNLO",BookshelfLink:"Bookshelf_BookshelfLink__DNMD7",BookshelfLinkButton:"Bookshelf_BookshelfLinkButton__35xtY",BookshelfStatus:"Bookshelf_BookshelfStatus__vGcj6",BookshelfQuantity:"Bookshelf_BookshelfQuantity__dxqgm",BookshelfCovers:"Bookshelf_BookshelfCovers__jLt36",BookshelfCoverPlaceholder:"Bookshelf_BookshelfCoverPlaceholder__Sh8eJ",BookshelfCoverItem:"Bookshelf_BookshelfCoverItem__8anhj",BookshelfCoverLink:"Bookshelf_BookshelfCoverLink__9_a2y",BookshelfCoverImg:"Bookshelf_BookshelfCoverImg__KwakG",BookshelfCovers_empty:"Bookshelf_BookshelfCovers_empty__cVD6h"}},36346:e=>{e.exports={wrapper:"PasswordInput_wrapper__mjmYC",label:"PasswordInput_label__G9oEm",subLabel:"PasswordInput_subLabel__ed_jf",inputWrapper:"PasswordInput_inputWrapper__FobKz",input:"PasswordInput_input__OKKPj",textarea:"PasswordInput_textarea__9U8Rr",input_state_focus:"PasswordInput_input_state_focus__a3L6z",characterCounter:"PasswordInput_characterCounter__DDI57",characterCounter_state_normal:"PasswordInput_characterCounter_state_normal__1mmxY",characterCounter_state_warning:"PasswordInput_characterCounter_state_warning__0VU7C",characterCounter_state_error:"PasswordInput_characterCounter_state_error__X885u",characterCounter_state_success:"PasswordInput_characterCounter_state_success__FLt7I",messageFooter:"PasswordInput_messageFooter__xY4DO",MessageFooterMaxLengthHint:"PasswordInput_MessageFooterMaxLengthHint__foI8B",MessageFooterMaxLengthHintIcon:"PasswordInput_MessageFooterMaxLengthHintIcon__S0ikp",input_size_S:"PasswordInput_input_size_S__oZtg
1K",input_behavior_fixed:"PasswordInput_input_behavior_fixed__5aCza",input_behavior_expandable:"PasswordInput_input_behavior_expandable__l2TLa",input_size_M:"PasswordInput_input_size_M__D8z3t",input_size_L:"PasswordInput_input_size_L__PZhAV",passwordInput:"PasswordInput_passwordInput__gmYsf",passwordInputVisibilityButton:"PasswordInput_passwordInputVisibilityButton__tjz_X"}},36895:(e,t,a)=>{"use strict";a.d(t,{T:()=>b});var n=a(10749),r=a(66985),i=a(66025),o=a.n(i),l=a(82786),s=a(36825),_=a(79360),c=a(21210),d=a(15831),u=a(99574),h=a(91244),p=a(64106),g=a(71053),m=a(16840),C=a.n(m);function x(e){let{authors:t,onAuthorClick:a}=e;return 0===t.length?(0,n.jsx)("p",{className:C().BookAuthor,children:"Автор неизвестен"}):(0,n.jsx)("p",{className:C().BookAuthor,children:t.map((e,r)=>(0,n.jsxs)("span",{children:[e.url?(0,n.jsx)(g.default,{href:e.url,className:C().BookAuthorLink,onClick:a,children:e.full_name}):e.full_name,r<t.length-1&&", "]},e.id))})}let b=e=>{let t,a,{coverUrl:i,bookUrl:m,title:b,authors:v=[],rating:f=0,ratingCount:y=0,onAddClick:S,isAddDisabled:k=!1,hasAddedToWants:w=!1,addButtonAriaLabel:N,className:j,onCoverClick:I,onTitleClick:L,onAuthorClick:T,isLgbtBlocked:B,isRightholderBlocked:M}=e,R=(0,r.useCallback)(()=>{k||null==S||S()},[k,S]),[A,P]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{P(!1)},[i]),M?t="rightholder":B&&(t="lgbt"),a=t?(0,n.jsx)(c.AM,{trigger:"hover",placement:"bottom",disableArrow:!0,content:(0,n.jsx)(c.n2,{text:u.F[t]}),children:(0,n.jsx)("div",{className:C().BookCardImage,children:(0,n.jsx)(d.v,{reason:t,borderRadius:8})})}):i&&!A?(0,n.jsx)(_.$,{className:C().BookCardImage,src:i,alt:"Обложка книги",onError:()=>P(!0)}):(0,n.jsx)("div",{className:C().BookCardImage,"aria-hidden":"true","data-placeholder":!0}),(0,n.jsxs)("article",{className:o()(C().CompactBookCard,j),children:[(0,n.jsx)("div",{className:C().CompactBookCardCoverOverlay,style:{backgroundImage:!i||t||A?void 0:"url(".concat(i,")")},"aria-hidden":"true"}),(0,n.jsx)("div",{className:C().CompactBookCardContent,children:(0,n.jsxs)("div",{className:C().BookCardInfoContainer,children:[m?(0,n.jsx)(g.default,{href:m,className:C().BookCardImageLink,onClick:I,children:a}):a,(0,n.jsxs)("div",{className:C().AboutBookCardInfo,children:[(0,n.jsx)("h3",{className:C().BookTitle,children:m?(0,n.jsx)(g.default,{href:m,className:C().BookTitleLink,onClick:L,children:b}):b}),(0,n.jsx)(x,{authors:v,onAuthorClick:T}),(0,n.jsxs)("div",{className:C().RatingContainer,children:[(0,n.jsx)(s.h,{className:C().RatingStarIcon,name:"white-star"}),(0,n.jsx)("p",{className:C().RatingStar,children:(0,p.Xq)(f)}),(0,n.jsxs)("p",{className:C().CountContainer,children:["(",void 0!==y&&(0,h.gW)(y),")"]})]})]})]})}),(0,n.jsx)(l.cl,{variant:w?"neutral":"secondary",size:"S",onClick:R,disabled:k,icon:(0,n.jsx)(s.h,{name:w?"check":"plus",size:18}),className:C().CompactBookCardAddButton,"aria-label":null!=N?N:w?"Добавить книгу в коллекцию":"Добавить в подборку"})]})}},37798:e=>{e.exports={title1:"Toggle_title1__x4R0o",title2:"Toggle_title2__doJ_2",title3:"Toggle_title3__DLFa1",title4:"Toggle_title4__T_U88",title5:"Toggle_title5__cj86I",description:"Toggle_description__JQcDI",bodyS:"Toggle_bodyS__TKo_c",bodyM:"Toggle_bodyM__JFzQi",bodyL:"Toggle_bodyL__2y2Ao",Toggle:"Toggle_Toggle__J_Ttb",ToggleThumb:"Toggle_ToggleThumb__EpsDi",Toggle_checked:"Toggle_Toggle_checked__jgMuO",Toggle_disabled:"Toggle_Toggle_disabled__JJ6Rs"}},37916:e=>{e.exports={focusWrapper:"Badge_focusWrapper__PDapy",badge:"Badge_badge__bHml6",badge_variant_gray:"Badge_badge_variant_gray__A7ucN",badge_variant_blue:"Badge_badge_variant_blue__VByog",badge_variant_yellow:"Badge_badge_variant_yellow__1Ra1C",iconContainer:"Badge_iconContainer__tCbc9",textContainer:"Badge_textContainer__LanEp"}},38863:(e,t,a)=>{"use strict";a.d(t,{N:()=>n.N});var n=a(21613)},39804:e=>{e.exports={title1:"AdvertisingMarking_title1__wF9nz",title2:"AdvertisingMarking_title2__e3jlD",title3:"AdvertisingMarking_title3__0rOrm",title4:"AdvertisingMarking_title4__zvdJg",title5:"AdvertisingMarking_title5__wLw5L",description:"AdvertisingMarking_description__cfDgs",bodyS:"AdvertisingMarking_bodyS__bDp2b",bodyM:"AdvertisingMarking_bodyM__9ivwf",bodyL:"AdvertisingMarking_bodyL__1qnYh",Advert
1isingMarking:"AdvertisingMarking_AdvertisingMarking__K7MIw",AdvertisingMarking_static:"AdvertisingMarking_AdvertisingMarking_static__fabx3",AdvertisingMarkingTrigger:"AdvertisingMarking_AdvertisingMarkingTrigger__rhHIl",AdvertisingMarkingTitle:"AdvertisingMarking_AdvertisingMarkingTitle__bPUW8",AdvertisingMarkingIcon:"AdvertisingMarking_AdvertisingMarkingIcon__8c5x6",AdvertisingMarkingPanel:"AdvertisingMarking_AdvertisingMarkingPanel___bwfh",AdvertisingMarkingContent:"AdvertisingMarking_AdvertisingMarkingContent__e0vWm",AdvertisingMarkingText:"AdvertisingMarking_AdvertisingMarkingText__DFzpj",AdvertisingMarkingCloseButton:"AdvertisingMarking_AdvertisingMarkingCloseButton__KF7AS",AdvertisingMarkingCopyLink:"AdvertisingMarking_AdvertisingMarkingCopyLink__Ubs3y"}},41004:e=>{e.exports={Alert:"Alert_Alert__5OOSa",Alert_mode_success:"Alert_Alert_mode_success__sNV3V",Alert_mode_error:"Alert_Alert_mode_error__FqEtf",Alert_mode_warning:"Alert_Alert_mode_warning__VghX9",Alert_mode_info:"Alert_Alert_mode_info__7KSPE",Alert_size_desktop:"Alert_Alert_size_desktop__LeaZr",Alert_size_mobile:"Alert_Alert_size_mobile__2j_8L","Alert_size_with-close":"Alert_Alert_size_with-close__cYwfl",AlertIcon:"Alert_AlertIcon__uvYyp",AlertContent:"Alert_AlertContent__Ej94s",AlertTitle:"Alert_AlertTitle__b83Z7",AlertDescription:"Alert_AlertDescription__RotKB",AlertButtons:"Alert_AlertButtons__z20Ce",AlertCloseButton:"Alert_AlertCloseButton__4eBIv"}},41465:(e,t,a)=>{"use strict";a.d(t,{p:()=>m});var n=a(10749),r=a(66985),i=a(9365),o=a(66025),l=a.n(o),s=a(96039),_=a(36895),c=a(60067),d=a(19210),u=a(88558),h=a.n(u),p=a(11129),g=a(48225);let m=(0,r.memo)(function(e){let{starValue:t,reviewTitle:a,reviewText:r,reviewTextJson:o,reviewLink:u,maxChars:m,isSpoiler:C,onSpoilerClick:x,bookCard:b,emotionalRating:v,onReadMoreClick:f}=e,y=null!=o;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:h().ReviewContainer,children:[(0,n.jsxs)("div",{className:h().ReviewContainerRatingRow,children:[(0,n.jsx)(i.P,{starValue:t/2,classNames:h().StarsRatingPadding}),v&&(0,n.jsx)(c.l,{emotion:v.emotion,label:!0,tooltipText:"".concat(v.authorDisplayName," оценивает эту книгу как ").concat(d.a6[v.emotion].accusative)})]}),a&&(0,n.jsx)("h2",{className:l()(h().ReviewContainerTitle,{[h().ReviewContainerSpoiler]:C}),children:a}),y?(0,n.jsx)(g.W,{textJson:o,maxChars:m,expandLabel:u?"Читать далее":"Ещё",href:u,onReadMoreClick:f,className:l()(h().ReviewContainerText,{[h().ReviewContainerSpoiler]:C})}):(0,n.jsx)(p.i,{text:r,maxChars:m,className:l()(h().ReviewContainerText,{[h().ReviewContainerSpoiler]:C}),showSpoilerOverlay:C,expandLabel:u?"Читать далее":"Ещё",href:u,onReadMoreClick:f}),C&&(0,n.jsxs)("div",{className:h().SpoilerContainer,children:[(0,n.jsx)("span",{className:h().SpoilerContainerText,children:"Содержит спойлеры"}),(0,n.jsx)(s.$,{className:h().SpoilerContainerButton,onClick:x,size:"S","aria-label":"Открыть меню",role:"button",tabIndex:0,children:"Открыть"})]})]}),b&&(0,n.jsx)(_.T,{className:h().ReviewContainerBookCard,...b})]})})},41521:(e,t,a)=>{"use strict";a.d(t,{pd:()=>B,wE:()=>T,No:()=>k});var n=a(10749),r=a(66985),i=a(66025),o=a.n(i),l=a(93606),s=a(5489),_=a.n(s),c=a(1598),d=a.n(c);let u=e=>{var t;let{type:a="text",inputSize:i,className:s,children:c,showCharacterCount:u,maxLength:h,...p}=e,g=(0,r.useRef)(null),{state:m,computedProps:C}=(0,l.p)({...p,inputSize:i,showCharacterCount:u,maxLength:h},g,null),{currentLength:x}=m,{inputProps:b}=C,v=h?"Символов: ".concat(x,"/").concat(h," из ").concat(h):"Символов: ".concat(x);return(0,n.jsx)(l.L,{label:p.label,subLabel:p.subLabel,name:p.name,wrapperClassName:p.wrapperClassName,message:p.message,messageMode:p.messageMode,showCharacterCount:u,currentLength:x,maxLength:h,maxLengthLabel:p.maxLengthLabel,characterCountAriaLabel:v,styles:_(),children:(0,n.jsxs)("div",{className:_().inputWrapper,children:[c,(0,n.jsx)("input",{className:o()(s,_().input,_()["input_size_".concat(i)],d().textInput),...b,type:a,placeholder:p.placeholder,ref:g,id:p.name,"aria-invalid":(null!=(t=p.ariaInvalid)?t:p.error)?"true":"false"})]})})};var h=a(96039),p=a(36825),g=a(906),m=a.n(g);let C=e=>{var t,a;let{onInputClear:i,inputSize:s,className:c,children:d,showCharacterCount:u,maxLength:g,isMobile:C=!1,cancelButtonText:x="Отменить",shouldShowCancelButton:b=!0,...v}=e,f=(0,r.useRef)(null),{state:y,computedProps:S}=(0,l.p)({...v,inputSize:s,showCharacterCount:u,maxLength:g},f,null),{isFilled:k,currentLength:w}=y,{inputProps:N}=S,j=g?"Символов: ".concat(w,"/").concat(g," из ").concat(g):"Символов: ".concat(w);return C?(0,n.jsx)(l.L,{label:v.label,subLabel:v.subLabel,name:v.name,wrapperClassName:v.wrapperClassName,message:v.message,messageMode:v.messageMode,showCharacterCount:u,currentLength:w,maxLength:g,characterCountAriaLabel:j,styles:_(),children:(0,n.jsxs)("div",{className:m().searchInputMobileWrapper,children:[(0,n.jsxs)("div",{className:o()(_().inputWrapper,m().searchInputMobileField),children:[(0,n.jsx)(p.h,{className:m().searchInputIcon,name:"search",size:16}),d,(0,n.jsx)("input",{className:o()(c,_().input,_()["input_size_".concat(s)],m().searchInput),...N,type:"text",placeholder:v.placeholder,ref:f,id:v.name,"aria-invalid":(null!=(t=v.ariaInvalid)?t:v.error)?"true":"false"}),k&&(0,n.jsx)(h.$,{variant:"black",size:"S",className:m().searchInputClearButton,type:"button",onClick:()=>{null==i||i()},icon:(0,n.jsx)(p.h,{className:m().searchInputClearIcon,name:"close",size:18}),"aria-label":"Очистить поле поиска"})]}),b&&(0,n.jsx)(h.$,{variant:"tertiary",size:"S",className:m().searchInputCancelButton,type:"button",onClick:()=>{null==i||i()},"aria-label":"Очистить поле поиска",children:x})]})}):(0,n.jsx)(l.L,{label:v.label,subLabel:v.subLabel,name:v.name,wrapperClassName:v.wrapperClassName,message:v.message,messageMode:v.messageMode,showCharacterCount:u,currentLength:w,maxLength:g,characterCountAriaLabel:j,styles:_(),children:(0,n.jsxs)("div",{className:_().inputWrapper,children:[(0,n.jsx)(p.h,{className:m().searchInputIcon,name:"search",size:16}),d,(0,n.jsx)("input",{className:o()(c,_().input,_()["input_size_".concat(s)],m().searchInput),...N,type:"text",placeholder:v.placeholder,ref:f,id:v.name,"aria-invalid":(null!=(a=v.ariaInvalid)?a:v.error)?"true":"false"}),(0,n.jsx)(h.$,{variant:"black",size:"S",className:o()(m().searchInputClearButton,{[m().searchInputClearButton_hidden]:!k}),type:"button",onClick:()=>{null==i||i()},"aria-hidden":!k,tabIndex:k?0:-1,icon:(0,n.jsx)(p.h,{className:m().searchInputClearIcon,name:"close",size:18}),"aria-label":"Очистить поле поиска"})]})})};var x=a(36346),b=a.n(x);let v=e=>{var t;let{type:a="password",inputSize:i,className:s,children:c,showCharacterCount:d,maxLength:u,...g}=e,m=(0,r.useRef)(null),[C,x]=(0,r.useState)(a),{state:v,computedProps:f}=(0,l.p)({...g,inputSize:i,showCharacterCount:d,maxLength:u},m,null),{isFilled:y,currentLength:S}=v,{inputProps:k}=f,w=u?"Символов: ".concat(S,"/").concat(u," из ").concat(u):"Символов: ".concat(S);return(0,n.jsx)(l.L,{label:g.label,subLabel:g.subLabel,name:g.name,wrapperClassName:g.wrapperClassName,message:g.message,messageMode:g.messageMode,showCharacterCount:d,currentLength:S,maxLength:u,characterCountAriaLabel:w,styles:_(),children:(0,n.jsxs)("div",{className:_().inputWrapper,children:[c,(0,n.jsx)("input",{className:o()(s,_().input,_()["input_size_".concat(i)],b().passwordInput),...k,type:C,placeholder:g.placeholder,ref:m,id:g.name,"aria-invalid":(null!=(t=g.ariaInvalid)?t:g.error)?"true":"false"}),y&&(0,n.jsx)(h.$,{className:b().passwordInputVisibilityButton,onClick:e=>{e.preventDefault(),x("password"===C?"text":"password")},type:"button",variant:"tertiary",size:"M",icon:"password"===C?(0,n.jsx)(p.h,{name:"eye-closed",size:18}):(0,n.jsx)(p.h,{name:"eye-opened",size:18}),"aria-label":"password"===C?"Показать пароль":"Скрыть пароль"})]})})};var f=a(14158),y=a.n(f);let S={S:1,M:3,L:5},k=e=>{var t;let{inputSize:a,behavior:i="expandable",className:s,children:c,showCharacterCount:d,maxLength:u,...h}=e,p=(0,r.useRef)(null),{state:g,computedProps:m}=(0,l.p)({...h,inputSize:a,behavior:i,showCharacterCount:d,maxLength:u},null,p),{currentLength:C}=g,{inputProps:x}=m,b=u?"Символов: ".concat(C,"/").concat(u," из ").concat(u):"Символов: ".concat(C);return(0,n.jsx)(l.L,{label:h.label,subLabel:h.subLabel,name:h.name,wrapperClassName:h.wrapperClassName,message:h.message,messageMode:h.messageMode,showCharacterCount:d,currentLength:C,maxLength:u,maxLengthLabel:h.maxLengthLabel,characterCountAriaLabel:b,styles:_(),children:(0,n.jsxs)("div",{className:_().inputWrapper,children:[c,(0,n.jsx)("textarea",{className:o()(s,_().input,_().textarea,_()["input_size_".concat(a)],_()["input_behavior_".concat(i)],y().textAreaInput),...x,rows:S[a],placeholder:h.placeholder,ref:p,id:h.name,"aria-invalid":(null!=(t=h.ariaInvalid)?t:h.error)?"true":"false"})]})})};var w=a(96584),N=a(27738),j=a.n(N);let I=()=>(0,n.jsx)("div",{className:j().fakeCaret}),L=e=>{let{slot:t,index:a,otpLength:r,label:i,error:l,ariaInvalid:s}=e,_=null;return null!==t.char?_=(0,n.jsx)(n.Fragment,{children:t.char}):t.hasFakeCaret&&(_=(0,n.jsx)(I,{})),(0,n.jsx)("div",{className:o()(j().otpInput,{[j().otpInput_focused]:t.
1isActive,[j().otpInput_error]:l}),"aria-label":"".concat(i?"".concat(i," "):"","код, позиция ").concat(a+1," из ").concat(r),"aria-invalid":(null!=s?s:l)?"true":"false",children:_})},T=e=>{let{otpLength:t=4,otpType:a="numeric",onOtpChange:i,onComplete:o,inputSize:s,value:c="",className:d,children:u,autoFocus:h=!1,disabled:p=!1,...g}=e,m=(0,r.useRef)(null),C=(0,r.useRef)(null),{state:x}=(0,l.p)({...g,inputSize:s,value:c,maxLength:t,showCharacterCount:!1},m,null),b=(0,r.useCallback)(()=>{switch(a){case"numeric":default:return w.UO;case"alphanumeric":return w.Ag}},[a]),v=(0,r.useCallback)(e=>{null==i||i(e)},[i]),f=(0,r.useCallback)(e=>{null==o||o(e)},[o]);return(0,r.useEffect)(()=>{h&&!p&&C.current&&setTimeout(()=>{var e;null==(e=C.current)||e.focus()},0)},[h,p]),(0,n.jsx)(l.L,{label:g.label,subLabel:g.subLabel,name:g.name,wrapperClassName:g.wrapperClassName,message:g.message,messageMode:g.messageMode,showCharacterCount:!1,styles:_(),children:(0,n.jsxs)("div",{className:_().inputWrapper,children:[u,(0,n.jsx)(w.wE,{className:j().outerOtpInput,ref:C,value:c,onChange:v,onComplete:f,maxLength:t,pattern:b(),disabled:p,inputMode:"numeric"===a?"numeric":"text",autoComplete:"one-time-code",onFocus:g.onFocus,render:e=>{let{slots:a}=e;return(0,n.jsx)("div",{className:j().otpContainer,children:a.map((e,a)=>(0,n.jsx)(L,{slot:e,index:a,otpLength:t,label:g.label,error:g.error,ariaInvalid:g.ariaInvalid},a))})}})]})})},B=e=>{let{inputMode:t}=e;switch(t){case"otp":{let{otpLength:t,otpType:a,onOtpChange:r,...i}=e;return(0,n.jsx)(T,{...i,otpLength:t,otpType:a,onOtpChange:r,inputSize:"S"})}case"password":{let{...t}=e;return(0,n.jsx)(v,{...t,type:"password",inputSize:"S"})}case"search":{let{onInputClear:t,...a}=e;return(0,n.jsx)(C,{...a,onInputClear:t,inputSize:"S"})}case"text":{let{inputSize:t="S",behavior:a,type:r="text",...i}=e;if("M"===t||"L"===t||void 0!==a)return(0,n.jsx)(k,{...i,inputSize:t,behavior:null!=a?a:"expandable"});return(0,n.jsx)(u,{...i,type:r,inputSize:"S"})}default:throw Error("Unsupported input mode: ".concat(t))}};a(6110)},47112:e=>{e.exports={title1:"RangeSlider_title1__iLfQq",title2:"RangeSlider_title2__rFPMd",title3:"RangeSlider_title3__H3gOC",title4:"RangeSlider_title4__LAZbm",title5:"RangeSlider_title5__IfaZ9",description:"RangeSlider_description__1WyL2",bodyS:"RangeSlider_bodyS__WlnIf",bodyM:"RangeSlider_bodyM__mjLj9",bodyL:"RangeSlider_bodyL__VhuL6",RangeSlider:"RangeSlider_RangeSlider__9_LxD",RangeSlider_disabled:"RangeSlider_RangeSlider_disabled__u9uex",RangeSliderLabel:"RangeSlider_RangeSliderLabel__kUO2V",RangeSliderInput:"RangeSlider_RangeSliderInput__xiu7I",RangeSliderMinMaxValues:"RangeSlider_RangeSliderMinMaxValues__Cclc0"}},48469:(e,t,a)=>{"use strict";a.d(t,{_:()=>h});var n=a(10749),r=a(66985),i=a(66025),o=a.n(i),l=a(21210),s=a(36825),_=a(96039),c=a(39804),d=a.n(c);let u="Реклама",h=e=>{let{marking:t,forBanner:a=!1,className:i,link:c=null,hasIcon:h=!1,interactive:p=!0}=e,[g,m]=(0,r.useState)(!1),C=(0,r.useCallback)(e=>{if(e.stopPropagation(),c){var t;let e=a?c:window.location.origin+c;null==(t=navigator.clipboard)||t.writeText(e)}m(!1)},[c,a]),x=(0,n.jsxs)("div",{className:d().AdvertisingMarkingContent,children:[(0,n.jsx)("p",{className:d().AdvertisingMarkingText,children:t}),(0,n.jsx)(_.$,{onClick:()=>{m(!1)},className:d().AdvertisingMarkingCloseButton,"aria-label":"Закрыть",children:(0,n.jsx)(s.h,{name:"close",size:18})}),c&&(0,n.jsx)(_.$,{variant:"secondary",type:"button",className:d().AdvertisingMarkingCopyLink,onClick:C,children:"Скопировать ссылку"})]});return p?(0,n.jsx)("div",{onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),children:(0,n.jsx)(l.AM,{trigger:"click",visible:g,onVisibleChange:m,content:x,contentClassName:d().AdvertisingMarkingPanel,baseClassName:o()(d().AdvertisingMarking,i),placement:"top",offset:[2,-65],disableArrow:!0,customCloseTriggers:["lostIntersect"],children:(0,n.jsxs)("div",{className:d().AdvertisingMarkingTrigger,role:"button",tabIndex:0,"aria-label":"".concat(u,". Нажмите, чтобы прочитать информацию"),children:[(0,n.jsx)("p",{className:d().AdvertisingMarkingTitle,children:u}),h&&(0,n.jsx)(s.h,{name:"info",size:16,className:d().AdvertisingMarkingIcon,"aria-hidden":!0})]})})}):(0,n.jsx)("div",{className:o()(d().AdvertisingMarking,d().AdvertisingMarking_static,i),children:(0,n.jsxs)("div",{className:d().AdvertisingMarkingTrigger,children:[(0,n.jsx)("p",{className:d().AdvertisingMarkingTitle,children:u}),h&&(0,n.jsx)(s.h,{name:"info",size:16,className:d().AdvertisingMarkingIcon,"aria-hidden":!0})]})})}},49172:e=>{e.exports={userRating:"RatingForm_userRating__k_wJW",userAvatarContainer:"RatingForm_userAvatarContainer__MVqR_",userAvatar:"RatingForm_userAvatar__oZoaY",caption:"RatingForm_caption__gtkQj"}}
1,49373:(e,t,a)=>{"use strict";a.d(t,{j:()=>c});var n=a(10749);a(66985);var r=a(66025),i=a.n(r),o=a(39808),l=a(36825),s=a(60744),_=a.n(s);let c=e=>{let{mode:t,message:a,className:r}=e;return a?(0,n.jsxs)("div",{className:i()(r,_().message,_()["message_mode_".concat(t)]),role:"alert","aria-live":"assertive",children:["success"===t&&(0,n.jsx)(o.V,{name:"success",path:"statusMode",width:12,height:12}),"error"===t&&(0,n.jsx)(o.V,{name:"error",path:"statusMode",width:12,height:12}),"info"===t&&(0,n.jsx)(l.h,{name:"info",size:12}),a]}):null}},50230:e=>{e.exports={title1:"FriendCard_title1__sAmZg",title2:"FriendCard_title2__0m25u",title3:"FriendCard_title3__0xxqu",title4:"FriendCard_title4__O29Yz",title5:"FriendCard_title5__ExwS7",description:"FriendCard_description__BrwSm",bodyS:"FriendCard_bodyS__J0oWG",bodyM:"FriendCard_bodyM__dge59",bodyL:"FriendCard_bodyL__BiT02",FriendCard:"FriendCard_FriendCard__tLtbT",FriendCard_variant_horizontal:"FriendCard_FriendCard_variant_horizontal__reo5w",FriendCard_variant_vertical:"FriendCard_FriendCard_variant_vertical__qqU96",FriendCardContent:"FriendCard_FriendCardContent__SecO8",FriendCardAvatarWrapper:"FriendCard_FriendCardAvatarWrapper__DV2Bb",FriendCardAvatarLink:"FriendCard_FriendCardAvatarLink__bJEa_",FriendCardAvatar:"FriendCard_FriendCardAvatar__YOWpT",FriendCardBadges:"FriendCard_FriendCardBadges__hppjX",FriendCardBadge:"FriendCard_FriendCardBadge___MksO",FriendCardInfo:"FriendCard_FriendCardInfo__Umgl5",FriendCardUsername:"FriendCard_FriendCardUsername__aFw2d",FriendCardRank:"FriendCard_FriendCardRank__jvMRI",FriendCardStats:"FriendCard_FriendCardStats__K0pGH"}},50504:e=>{e.exports={modal:"ModalView_modal__ShvYd",modal_noBackdrop:"ModalView_modal_noBackdrop__RXMso",modalContent:"ModalView_modalContent__j6_iO",modalContent_size_s:"ModalView_modalContent_size_s__1WL9z",modalContent_size_m:"ModalView_modalContent_size_m__tRaTL",modalContent_size_l:"ModalView_modalContent_size_l__jKq4P",modalHeader:"ModalView_modalHeader__BC6Nm",modalTitle:"ModalView_modalTitle__TXl3K",backButton:"ModalView_backButton__s7clK",closeButton:"ModalView_closeButton__8gbdS",modalScroll:"ModalView_modalScroll__6NJRE",modalFooter:"ModalView_modalFooter__EpiCd",modalFooter_noBorder:"ModalView_modalFooter_noBorder__1qnQK",modal_authLogin:"ModalView_modal_authLogin__CZziV"}},53109:e=>{e.exports={title1:"ImageUpload_title1__9jpaF",title2:"ImageUpload_title2__VQMWr",title3:"ImageUpload_title3__wh1r3",title4:"ImageUpload_title4__ouPWn",title5:"ImageUpload_title5__uOPij",description:"ImageUpload_description___qvpG",bodyS:"ImageUpload_bodyS__Wlezu",bodyM:"ImageUpload_bodyM__2Oi2d",bodyL:"ImageUpload_bodyL__Ud_aV",ImageUpload:"ImageUpload_ImageUpload__FmTtU",ImageUploadPlaceholder:"ImageUpload_ImageUploadPlaceholder__gksha",ImageUploadPlaceholder_disabled:"ImageUpload_ImageUploadPlaceholder_disabled__BxybY",ImageUploadPlaceholder_hasImage:"ImageUpload_ImageUploadPlaceholder_hasImage__7F3Nh",ImageUploadPlaceholder_loading:"ImageUpload_ImageUploadPlaceholder_loading__aNEbv",ImageUploadIcon:"ImageUpload_ImageUploadIcon__5BYkT",ImageUploadLoading:"ImageUpload_ImageUploadLoading__C48eT",ImageUploadRecommendedSize:"ImageUpload_ImageUploadRecommendedSize__XwI7V"}},53444:e=>{e.exports={title1:"ViewportCenter_title1__kLbjq",title2:"ViewportCenter_title2__jHXco",title3:"ViewportCenter_title3__w_qis",title4:"ViewportCenter_title4__7yilV",title5:"ViewportCenter_title5__iOJnK",description:"ViewportCenter_description__lY6U5",bodyS:"ViewportCenter_bodyS__hjvv_",bodyM:"ViewportCenter_bodyM__Iw9Wo",bodyL:"ViewportCenter_bodyL__PKtzg",ViewportCenter:"ViewportCenter_ViewportCenter__N0jDe"}},55238:(e,t,a)=>{"use strict";a.d(t,{Y:()=>g});var n=a(10749);a(66985);var r=a(66025),i=a.n(r),o=a(79360),l=a(96391),s=a(96039),_=a(60067),c=a(88141),d=a.n(c);let u=e=>{let{onSetEmotionsButtonClick:t,onEmotionRatingDelete:a,userEmotion:r,withoutPopover:i=!1}=e;return r?(0,n.jsx)(_.l,{className:i?void 0:d().EmotionBadgeWhite,emotion:r,label:!0,onEmotionRatingChange:t,onEmotionRatingDelete:()=>{r&&a&&a(r)},withoutPopover:i}):(0,n.jsx)(s.$,{className:d().SetEmotionsButton,variant:"secondary",size:"S",onClick:t,children:"Отметить эмоции"})};var h=a(49172),p=a.n(h);let g=e=>{let{value:t=0,onChange:a,size:r="M",className:s,ratingTestIdPrefix:_,avatarUrl:c,userEmotion:d,onSetEmotionsButtonClick:h,onEmotionRatingDelete:g}=e;return(0,n.jsxs)("div",{className:i()(p().userRating,s),children:[(0,n.jsxs)("div",{className:p().userAvatarContainer,children:[(0,n.jsx)(o.$,{src:c||"/profile-photo.png",alt:"User Avatar",className:p().userAvatar}),(0,n.jsx)("span",{className:p().caption,children:"Ваша оценка"})]}),(0,n.jsx)(l.z,{size:r,value:t,onChange:a,testIdPrefix:_}),(0,n.jsx)(u,{onSetEmotionsButtonClick:h,userEmotion:d,onEmotionRatingDelete:g})]})}},55760:e=>{e.exports={title1:"GenreTag_title1__78cud",title2:"GenreTag_title2__IBIxl",title3:"GenreTag_title3__P8_Fh",title4:"GenreTag_title4__6eLs3",title5:"GenreTag_title5__cW34D",description:"GenreTag_description__PqdY8",bodyS:"GenreTag_bodyS__F5lzU",bodyM:"GenreTag_bodyM__TYlqD",bodyL:"GenreTag_bodyL__gRpHz",GenreTag:"GenreTag_GenreTag__ZEEWS",GenreTag_gray:"GenreTag_GenreTag_gray__mHItp",GenreTag_black:"GenreTag_GenreTag_black__2CR21"}},59108:e=>{e.exports={tab:"Tab_tab__OujEk",tabInner:"Tab_tabInner__S_UpX",tabContent:"Tab_tabContent__I6UHM",tabText:"Tab_tabText__nE7fq",tabCount:"Tab_tabCount__TZ9UB",tabLine:"Tab_tabLine__rPj7U",active:"Tab_active__BeBIB"}},60245:(e,t,a)=>{"use strict";a.d(t,{s:()=>_});var n=a(10749),r=a(66985),i=a(66025),o=a.n(i),l=a(23444),s=a.n(l);let _=(0,r.forwardRef)((e,t)=>{let{label:a,className:i,labelClassName:l,id:_,disabled:c,ariaDescription:d,...u}=e,h=(0,r.useId)(),p=(0,r.useId)(),g=_||h;
1return(0,n.jsxs)("div",{className:o()(s().radioWrapper,i),children:[(0,n.jsxs)("label",{className:o()(s().radioLabel,l),htmlFor:g,children:[(0,n.jsx)("input",{...u,ref:t,type:"radio",id:g,disabled:c,className:s().radioInput,"aria-describedby":d?p:void 0}),(0,n.jsx)("div",{className:s().radioControl,"aria-hidden":"true"}),a&&(0,n.jsx)("span",{className:s().labelText,children:a})]}),d&&(0,n.jsx)("div",{id:p,className:s().srOnly,children:d})]})});_.displayName="Radio"},60744:e=>{e.exports={message:"ControlInputMessage_message__Rctrf",message_mode_error:"ControlInputMessage_message_mode_error__tBCLy",message_mode_info:"ControlInputMessage_message_mode_info__jM5CQ"}},63252:e=>{e.exports={title1:"Switcher_title1__GCAVN",title2:"Switcher_title2__tOlU9",title3:"Switcher_title3__socD6",title4:"Switcher_title4__GcSnn",title5:"Switcher_title5__uwwON",description:"Switcher_description__xjw5t",bodyS:"Switcher_bodyS__9UgE8",bodyM:"Switcher_bodyM__Yo_Yq",bodyL:"Switcher_bodyL__vqzny",Switcher:"Switcher_Switcher__nAB4g",SwitcherButton:"Switcher_SwitcherButton__hVHHZ"}},63372:e=>{e.exports={title1:"Lightbox_title1___HkKx",title2:"Lightbox_title2__u8_bz",title3:"Lightbox_title3__3sY8M",title4:"Lightbox_title4__GCGwM",title5:"Lightbox_title5__XML3M",description:"Lightbox_description__dJhyh",bodyS:"Lightbox_bodyS__tvQz8",bodyM:"Lightbox_bodyM__C1SXZ",bodyL:"Lightbox_bodyL__kxCVx",LightboxControls:"Lightbox_LightboxControls__FPJI3",LightboxCloseButton:"Lightbox_LightboxCloseButton__V6pvH",LightboxCloseIcon:"Lightbox_LightboxCloseIcon__j0_Ul",LightboxCounter:"Lightbox_LightboxCounter__dU8KD",LightboxNavButton:"Lightbox_LightboxNavButton__N8dP2",LightboxNavButton_prev:"Lightbox_LightboxNavButton_prev__Di9sG",LightboxNavButton_next:"Lightbox_LightboxNavButton_next__Ydo5w",LightboxNavIcon:"Lightbox_LightboxNavIcon__9rJDh",LightboxNavIcon_disabled:"Lightbox_LightboxNavIcon_disabled__idJJB",LightboxPagination:"Lightbox_LightboxPagination__BQ_40",LightboxPaginationDot:"Lightbox_LightboxPaginationDot__2W3Cr",LightboxPaginationDot_active:"Lightbox_LightboxPaginationDot_active__reKqh"}},64914:e=>{e.exports={title1:"DateSelect_title1__OIxaq",title2:"DateSelect_title2__11Yi_",title3:"DateSelect_title3__qWPro",title4:"DateSelect_title4__y4iY8",title5:"DateSelect_title5__Pg9Fj",description:"DateSelect_description__qbMsL",bodyS:"DateSelect_bodyS__sZ0tp",bodyM:"DateSelect_bodyM__lSFL_",bodyL:"DateSelect_bodyL__iSN82",DateSelectRoot:"DateSelect_DateSelectRoot__xwgja",DateSelectWrapper:"DateSelect_DateSelectWrapper__YrN2R",DateSelectRow:"DateSelect_DateSelectRow__HZZmS"}},65500:e=>{e.exports={title1:"NativeSelect_title1__Vg8mZ",title2:"NativeSelect_title2__oB0yZ",title3:"NativeSelect_title3__dNV2u",title4:"NativeSelect_title4__aguuo",title5:"NativeSelect_title5__5DEmS",description:"NativeSelect_description__vOzWQ",bodyS:"NativeSelect_bodyS__okZ8i",bodyM:"NativeSelect_bodyM__AbRvc",bodyL:"NativeSelect_bodyL__jRqJJ",NativeSelect:"NativeSelect_NativeSelect__Z3umS",NativeSelect_placeholder:"NativeSelect_NativeSelect_placeholder__jG4Tm",NativeSelect_triggerButton:"NativeSelect_NativeSelect_triggerButton__qnMVN",NativeSelectDropdown:"NativeSelect_NativeSelectDropdown__N51VD",NativeSelectDropdownOption:"NativeSelect_NativeSelectDropdownOption__LyiS4",NativeSelectDropdownOption_selected:"NativeSelect_NativeSelectDropdownOption_selected__hRDNV",NativeSelectDropdownOptionCheck:"NativeSelect_NativeSelectDropdownOptionCheck__YRkn8",NativeSelectDropdownOptionCheckIcon:"NativeSelect_NativeSelectDropdownOptionCheckIcon__NjZkm",NativeSelectDropdownOptionLabel:"NativeSelect_NativeSelectDropdownOptionLabel__Vzs_M"}},68929:(e,t,a)=>{"use strict";a.d(t,{_i:()=>n._,Fc:()=>h,u8:()=>eu,Ex:()=>p.E,MY:()=>j.M,wt:()=>j.w,wn:()=>N,BI:()=>z.B,$n:()=>I.$,JQ:()=>_.JQ,Sc:()=>M,Fd:()=>R.F,DQ:()=>F,Vc:()=>s.V,YT:()=>D.Y,$E:()=>x.$,BS:()=>et.B,gf:()=>en.g,dI:()=>c,ly:()=>Q.l,QE:()=>Q.Q,Pc:()=>e_,cl:()=>_.cl,BR:()=>O,pd:()=>V.pd,$b:()=>_.$b,Nb:()=>G.N,hL:()=>l.h,mh:()=>ee.m,mg:()=>eh.m,AM:()=>b.AM,n2:()=>b.n2,Ag:()=>b.Ag,D$:()=>eN.D$,Pk:()=>eA,sx:()=>Z.s,Yq:()=>Y.Y,zB:()=>K.z,p_:()=>eP.p,l6:()=>$.l,JF:()=>eE,Ap:()=>eU.A,yP:()=>X,oz:()=>ea.o,No:()=>V.No,o5:()=>ew,WB:()=>eV});var n=a(48469),r=a(10749),i=a(66025),o=a.n(i),l=a(36825),s=a(39808),_=a(82786),c=function(e){return e.success="success",e.error="error",e.info="info",e.warning="warning",e}({}),d=a(41004),u=a.n(d);let h=e=>{let{mode:t=c.info,size:a="mobile",children:n,title:i,description:d,className:h,onClose:p,buttons:g}=e,m=d||n,C=i&&m;return(0,r.jsxs)("div",{className:o()(h,u().Alert,u()["Alert_mode_".concat(t)],u()["Alert_size_".concat(a)],{[u()["Alert_size_with-close"]]:p}),role:"alert",children:[t===c.success&&(0,r.jsx)(s.V,{className:u().AlertIcon,name:"success",path:"statusMode",width:16,height:16}),t===c.error&&(0,r.jsx)(s.V,{className:u().AlertIcon,name:"error",path:"statusMode",width:16,height:16}),t===c.info&&(0,r.jsx)(s.V,{className:u().AlertIcon,name:"info",path:"statusMode",width:16,height:16}),t===c.warning&&(0,r.jsx)(s.V,{className:u().AlertIcon,name:"warning",path:"statusMode",width:16,height:16}),C?(0,r.jsxs)("div",{className:u().AlertContent,children:[(0,r.jsx)("h3",{className:u().AlertTitle,children:i}),(0,r.jsx)("p",{className:u().AlertDescription,children:m})]}):(0,r.jsxs)(r.Fragment,{children:[i&&(0,r.jsx)("h3",{className:u().AlertTitle,children:i}),m&&(0,r.jsx)("p",{className:u().AlertDescription,children:m})]}),g&&(()=>{let e=Array.isArray(g)?g:[g],t=e.map((e,t)=>(0,r.jsx)(_.JQ,{className:u().AlertButton,variant:e.variant||"primary",size:"S",onClick:e.onClick,children:e.label},t));return 1===e.length?t:(0,r.jsx)("div",{className:u().AlertButtons,children:t})})(),p&&(0,r.jsx)(_.cl,{className:u().AlertCloseButton,variant:"black",size:"XS",icon:(0,r.jsx)(l.h,{name:"close",size:18}),type:"button",onClick:p,"aria-label":"Закрыть"})]})};var p=a(69941),g=a(66985),m=a(91893),C=a(71053),x=a(79360),b=a(21210),v=a(15831),f=a(99574),y=a(30364),S=a.n(y),k=a(40031);let w=e=>{let t,{book:a,onBookCardClick:n}=e,i=function(e){return e.isRightholderBlocked?"rightholder":e.isLgbtBlocked?"lgbt":null}(a),[o,l]=(0,g.useState)(!1);return(0,g.useEffect)(()=>
1{l(!1)},[a.coverUrl]),t=i?(0,r.jsx)(b.AM,{trigger:"hover",placement:"bottom",disableArrow:!0,content:(0,r.jsx)(b.n2,{text:f.F[i]}),children:(0,r.jsx)("div",{className:S().BookshelfCoverImg,children:(0,r.jsx)(v.v,{reason:i,borderRadius:6})})}):o?(0,r.jsx)("div",{className:S().BookshelfCoverPlaceholder,"aria-hidden":"true"}):(0,r.jsx)(x.$,{className:S().BookshelfCoverImg,src:a.coverUrl,alt:a.title,title:a.title,onError:()=>l(!0)}),(0,r.jsx)("li",{className:S().BookshelfCoverItem,children:(0,r.jsx)(C.default,{className:S().BookshelfCoverLink,href:a.url,"aria-label":"Перейти к книге ".concat(a.title),onClick:()=>null==n?void 0:n(a.id),children:t})})},N=e=>{let{status:t,books:a,totalCount:n=0,url:i,className:l="",testId:s,onStatusBlockClick:_,onBookCardClick:c}=e,{displayedBooks:d,isEmpty:u}=(0,g.useMemo)(()=>{let e=a.length;return{displayedBooks:a.slice(0,Math.min(e,10)),isEmpty:0===e}},[a]),h=(0,g.useMemo)(()=>(0,m.oD)(n,"book",{formatNumber:!0,locale:"ru-RU"}),[n]);return(0,r.jsxs)("article",{className:o()(l,S().Bookshelf),onClick:()=>{"Сейчас читаю"===t&&(0,k.b)("reachGoal","my_book_collection")},children:[(0,r.jsxs)(C.default,{className:S().BookshelfLink,href:i,onClick:_,children:[(0,r.jsx)("p",{className:S().BookshelfStatus,children:t}),(0,r.jsx)("span",{className:S().BookshelfQuantity,children:h}),!u&&(0,r.jsx)("span",{className:S().BookshelfLinkButton,children:"Все"})]}),(0,r.jsxs)("ul",{className:o()(S().BookshelfCovers,{[S().BookshelfCovers_empty]:u}),children:[u&&Array.from({length:3}).map((e,t)=>(0,r.jsx)("li",{className:S().BookshelfCoverPlaceholder},t)),d.map(e=>(0,r.jsx)(w,{book:e,onBookCardClick:c},e.id))]})]})};var j=a(43307),I=a(96039);a(466);var L=a(75788),T=a.n(L);let B=()=>(0,r.jsx)("svg",{className:T().checkIcon,xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M18.2321 4.17236C18.5807 3.82375 19.146 3.82371 19.4946 4.17236C19.8432 4.52103 19.8432 5.08626 19.4946 5.43492L9.08376 15.8458C8.73508 16.1945 8.16919 16.1945 7.82051 15.8458L2.34129 10.3666L2.27991 10.2989C1.99382 9.94822 2.01441 9.43092 2.34129 9.104C2.66821 8.77709 3.1855 8.75653 3.53619 9.04262L3.60385 9.104L8.45179 13.9512L18.2321 4.17236Z",fill:"white"})});B.displayName="CheckIcon";let M=(0,g.forwardRef)((e,t)=>{let{label:a,className:n,checked:i,disabled:l,onChange:s,id:_,defaultChecked:c,checkboxPosition:d="left","aria-label":u,"aria-describedby":h,...p}=e,m=(0,g.useId)(),C=null!=_?_:m,[x,b]=(0,g.useState)(null!=c&&c),v=void 0!==i?i:x,f=o()(T().container,{[T().container_disabled]:l,[T().container_reverse]:"right"===d},n),y=o()(T().checkbox,{[T().checkbox_checked]:v,[T().checkbox_disabled]:l}),S=o()(T().label,{[T().label_disabled]:l}),k=(0,r.jsxs)("div",{className:T().inputWrapper,children:[(0,r.jsx)("input",{ref:t,type:"checkbox",id:C,className:T().input,checked:v,disabled:l,onChange:e=>{if(l)return;let t=e.target.checked;void 0===i&&b(t),null==s||s(t,e)},"aria-label":a?void 0:u,"aria-describedby":h,tabIndex:0,...p}),(0,r.jsx)("div",{className:y,"aria-hidden":"true",children:(0,r.jsx)(B,{})})]}),w=a&&(0,r.jsx)("span",{className:S,children:a});return(0,r.jsx)("label",{className:f,htmlFor:C,children:"left"===d?(0,r.jsxs)(r.Fragment,{children:[k,w]}):(0,r.jsxs)(r.Fragment,{children:[w,k]})})});M.displayName="Checkbox";var R=a(99194),A=a(7726),P=a.n(A);let F=e=>{let{status:t,books:a,totalCount:n=0,url:i,className:l="",onNavigate:s=()=>{}}=e,[_,c]=(0,g.useState)(new Set),{displayedBooks:d,isEmpty:u}=(0,g.useMemo)(()=>{let e=a.filter(e=>!_.has(e.id)),t=e.length;return{displayedBooks:e.slice(0,Math.min(t,3)),isEmpty:0===t}},[a,_]),h=(0,g.useMemo)(()=>(0,m.oD)(n,"book",{formatNumber:!0,locale:"ru-RU"}),[n]);return(0,r.jsxs)(C.default,{className:o()(P().CollectionCard,l),href:i,onClick:()=>s("tab"),children:[(0,r.jsxs)("div",{className:P().CollectionCardAbout,children:[(0,r.jsx)("p",{className:P().CollectionCardStatus,children:t}),(0,r.jsx)("span",{className:P().CollectionCardQuantity,children:h})]}),!u&&(0,r.jsx)("span",{className:P().CollectionCardLinkButton,onClick:e=>{e.stopPropagation(),s("all_button")},children:"Все"}),(0,r.jsxs)("ul",{className:P().CollectionCardCovers,children:[u&&Array.from({length:3}).map((e,t)=>(0,r.jsx)("li",{className:o()(P().CollectionCardCoverItem,{[P().CollectionCardCoverItem_empty]:u})},t)),d.map(e=>{let t=function(e){return e.isRightholderBlocked?"rightholder":e.isLgbtBlocked?"lgbt":null}(e);return(0,r.jsx)("li",{className:P().CollectionCardCoverItem,children:t?(0,r.jsx)(b.AM,{trigger:"hover",placement:"bottom",disableArrow:!0,baseClassName:P().CollectionCardCoverTrigger,content:(0,r.jsx)(b.n2,{text:f.F[t]}),children:(0,r.jsx)("div",{className:P().CollectionCardCoverImg,children:(0,r.jsx)(v.v,{reason:t,borderRadius:6})})}):(0,r.jsx)(x.$,{className:P().CollectionCardCoverImg,src:e.coverUrl,alt:e.title,onError:()=>{var t;return t=e.id,void c(e=>new Set(e).add(t))}})},e.id)})]})]})};a(97438);var z=a(57713),D=a(49611),E=a(25871),U=a(53109),H=a.n(U);let W=(0,E.default)(()=>Promise.resolve().then(a.bind(a,80294)).then(e=>({default:e.ImageUploadModal})),{loadableGenerated:{webpack:()=>[80294]},ssr:!1}),O=e=>{let{initialImage:t,title:a="Загрузка изображения",onSave:n,onDelete:i,isLoading:s=!1,className:_,disabled:c=!1,accept:d="image/png,image/jpeg,image/jpg",maxSizeMB:u=5,recommendedSize:h="PNG или JPG до 5 МБ, размер от 200\xd7200 px"}=e,[p,m]=(0,g.useState)(!1),C=()=>{c||s||m(!0)},x=async(e,t)=>{n&&await n(e,t),m(!1)},b=(0,g.useMemo)(()=>({placeholder:o()(H().ImageUploadPlaceholder,_,{[H().ImageUploadPlaceholder_hasImage]:t,[H().ImageUploadPlaceholder_disabled]:c,[H().ImageUploadPlaceholder_loading]:s}),iconContainer:o()(H().ImageUploadIcon),loading:o()(H().ImageUploadLoading)}),[_,t,c,s]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:H().ImageUpload,children:[(0,r.jsx)("div",{className:b.placeholder,style:t?{"--image-url":'url("'.concat(t,'")')}:void 0,onClick:C,onKeyDown:e=>
1{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),C())},tabIndex:c?-1:0,role:"button","aria-label":"Upload image",children:s?(0,r.jsx)("div",{className:b.loading,children:(0,r.jsx)(R.F,{mode:"white",ariaLabel:"Загрузка изображения"})}):(0,r.jsx)("div",{className:b.iconContainer,children:(0,r.jsx)(l.h,{name:"camera",size:24})})}),(0,r.jsx)("p",{className:H().ImageUploadRecommendedSize,children:h})]}),p&&(0,r.jsx)(W,{isOpen:p,onClose:()=>{m(!1)},title:a,imageUrl:t,accept:d,maxSizeMB:u,recommendedSize:h,onSave:x,onImageDelete:()=>{i&&i(),m(!1)},isSaving:s})]})};a(80294);var V=a(41521);a(86287),a(49373);var Q=a(60067),G=a(38863),Z=a(60245);a(3254);var K=a(96391),Y=a(55238),q=a(12196),J=a.n(q);let X=e=>{let{name:t,size:a="md",ariaLabel:n,className:i,onSocialClick:o,onClick:l,..._}=e;return(0,r.jsx)(I.$,{className:i,type:"button","aria-label":null!=n?n:t,onClick:e=>{null==l||l(e),null==o||o(t)},children:(0,r.jsx)(s.V,{className:J()["SocialButtonIcon_size_".concat(a)],name:t,path:"socialNetworks"})})};var $=a(77740),ee=a(99578),et=a(85870);a(72140),a(37798);var ea=a(11164),en=a(48833),er=a(2315),ei=a(50230),eo=a.n(ei);let el=["premium","expert"],es={horizontal:16,vertical:26},e_=e=>{let{avatarUrl:t,userUrl:a,username:n,rank:i,bookCount:l,reviewCount:_,badges:c=[],variant:d="horizontal",actionButton:u,className:h,onUserLinkClick:p=()=>{}}=e;return(0,r.jsx)("article",{className:o()(eo().FriendCard,eo()["FriendCard_variant_".concat(d)],h),children:(0,r.jsxs)("div",{className:eo().FriendCardContent,children:[(0,r.jsxs)("div",{className:eo().FriendCardAvatarWrapper,children:[(0,r.jsx)(C.default,{className:eo().FriendCardAvatarLink,href:a,onClick:p,children:(0,r.jsx)(x.$,{src:t,alt:n,width:62,height:62,className:eo().FriendCardAvatar})}),c.length>0&&(0,r.jsx)("div",{className:eo().FriendCardBadges,"aria-hidden":!0,children:c.filter(e=>el.includes(e)).map(e=>(0,r.jsx)(s.V,{path:"achievements",name:e,width:es[d],height:es[d],className:eo().FriendCardBadge},e))})]}),(0,r.jsxs)("div",{className:eo().FriendCardInfo,children:[(0,r.jsx)(C.default,{className:eo().FriendCardUsername,href:a,onClick:p,children:n}),(0,r.jsx)("p",{className:eo().FriendCardRank,children:i}),(0,r.jsx)("p",{className:eo().FriendCardStats,children:((e,t)=>{let a=(0,er.g)(e),n=(0,er.g)(t),r=(0,m.d6)(e,"book"),i=(0,m.d6)(t,"reviewArticle"),o="".concat(a," ").concat(r),l="".concat(n," ").concat(i);return"".concat(o," • ").concat(l)})(l,_)})]}),u&&(0,r.jsx)(r.Fragment,{children:u})]})})};var ec=a(13336),ed=a.n(ec);let eu=e=>{let{fullName:t,coverUrl:a,authorUrl:n,onClick:i,className:l}=e,s=(null==a?void 0:a.trim())||"/profile-photo.png";return(0,r.jsxs)("article",{className:o()(ed().AuthorCard,l),children:[(0,r.jsx)(C.default,{className:ed().AuthorCardAvatarLink,href:n,onClick:i,children:(0,r.jsx)(x.$,{src:s,alt:t,width:40,height:40,className:ed().AuthorCardAvatar})}),(0,r.jsx)("div",{className:ed().AuthorCardInfo,children:(0,r.jsx)(C.default,{className:ed().AuthorCardNameLink,href:n,onClick:i,children:t})})]})};a(79636);var eh=a(2835),ep=a(69532),eg=a.n(ep);let em=e=>{let{variant:t,size:a,align:n,color:r,className:i}=e,l=(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())(t),s=[eg()[l],a&&eg()["".concat(l,"_").concat(a)],n&&eg()["".concat(l,"_").concat(n)],r&&eg()["".concat(l,"_").concat(r)]];return("text"===t||"link"===t)&&(e.weight&&s.push(eg()["".concat(l,"_").concat(e.weight)]),e.shouldTruncate&&s.push(eg()["".concat(l,"_truncate")])),"heading"===t&&e.isHighlighted&&s.push(eg()["".concat(l,"_highlighted")]),o()(...s,i)},eC=(0,g.forwardRef)((e,t)=>{let{as:a="p",size:n="l",weight:i="normal",align:o="left",color:l,shouldTruncate:s,lineClamp:_,lineHeight:c,letterSpacing:d,children:u,className:h,style:p,e2eId:g,variant:m,...C}=e;return(0,r.jsx)(a,{ref:t,...C,"data-e2e-id":g,style:{...p,lineHeight:c,letterSpacing:d,..._&&{display:"-webkit-box",WebkitLineClamp:_,WebkitBoxOrient:"vertical",overflow:"hidden"}},className:em({variant:"text",size:n,align:o,weight:i,color:l,shouldTruncate:s,lineClamp:_,className:h}),children:u})});eC.displayName="Typography.Text";let ex=(0,g.forwardRef)((e,t)=>{let{as:a,size:n=1,align:i="left",color:o,isHighlighted:l,lineHeight:s,letterSpacing:_,children:c,className:d,style:u,e2eId:h,variant:p,...g}=e;return(0,r.jsx)(null!=a?a:({1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"})[n]||"h1",{ref:t,...g,"data-e2e-id":h,style:{...u,lineHeight:s,letterSpacing:_},className:em({variant:"heading",size:n,align:i,color:o,isHighlighted:l,className:d}),children:c})});ex.displayName="Typography.Heading";let eb=(0,g.forwardRef)((e,t)=>{let{size:a,weight:n="normal",align:i="left",color:o,shouldTruncate:l,lineClamp:s,lineHeight:_,letterSpacing:c,children:d,className:u,style:h,e2eId:p,variant:g,...m}=e;return(0,r.jsx)(C.SmartLink,{ref:t,...m,"data-e2e-id":p,style:{...h,lineHeight:_,letterSpacing:c,...s&&{display:"-webkit-box",WebkitLineClamp:s,WebkitBoxOrient:"vertical",overflow:"hidden"}}
1,className:em({variant:"link",size:a,align:i,weight:n,color:o,shouldTruncate:l,lineClamp:s,className:u}),children:d})});eb.displayName="Typography.Link";let ev=(0,g.forwardRef)((e,t)=>{switch(e.variant){case"heading":return(0,r.jsx)(ex,{...e,ref:t});case"link":return(0,r.jsx)(eb,{...e,ref:t});default:return(0,r.jsx)(eC,{...e,ref:t})}});ev.displayName="Typography";let ef=(0,g.memo)(eC),ey=(0,g.memo)(ex),eS=(0,g.memo)(eb),ek=Object.assign((0,g.memo)(ev),{Text:ef,Heading:ey,Link:eS});ek.displayName="Typography",ef.displayName="Typography.Text",ey.displayName="Typography.Heading",eS.displayName="Typography.Link";let ew=ek;a(85887);var eN=a(45154),ej=a(36895),eI=a(6372),eL=a.n(eI),eT=a(12230),eB=a.n(eT),eM=a(34917);let eR=e=>{let{text:t,maxChars:a=500,className:n,expandLabel:i="Ещё",collapseLabel:l="Свернуть",href:s,onReadMoreClick:_}=e,{html:c,plainText:d}=(0,g.useMemo)(()=>(0,eM.Jl)(t||""),[t]),u=(0,eM.r_)(c),[h,p]=g.useState(!1),m=d.length>a,x=m&&!h;(0,g.useEffect)(()=>{p(!1)},[c]);let b=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{...u,className:o()(eB().QuoteTextContent,x&&eB().QuoteTextContent_Collapsed)}),m&&(s?(0,r.jsx)("span",{className:o()(eB().QuoteTextToggleButton,eB().QuoteTextLinkButton),onClick:_,children:i}):(0,r.jsx)(I.$,{variant:"tertiary",size:"S",className:eB().QuoteTextToggleButton,onClick:()=>{p(e=>!e)},"aria-expanded":h,children:h?l:i}))]});return s?(0,r.jsx)(C.default,{href:s,className:o()(eB().QuoteText,eB().QuoteTextAsLink,n),children:b}):(0,r.jsx)("div",{className:o()(eB().QuoteText,n),children:b})},eA=e=>{let{quoteText:t,quoteLink:a,maxChars:n,expandInPlace:i=!1,bookCard:o,onReadMoreClick:s}=e,_=!!a&&!i;return(0,r.jsxs)("div",{className:eL().QuoteContainer,children:[(0,r.jsx)(l.h,{className:eL().QuoteContainerIcon,name:"quote",size:20}),(0,r.jsx)(eR,{text:t,maxChars:n,className:eL().QuoteContainerText,expandLabel:_||i?"Читать далее":"Ещё",href:_?a:void 0,onReadMoreClick:_?s:void 0}),o&&(0,r.jsx)(ej.T,{className:eL().QuoteContainerBookCard,...o})]})};a(1443);var eP=a(41465),eF=a(48223),ez=a(13664),eD=a.n(ez);let eE=e=>{let{mode:t="default",isActionMenuVisible:a=!0,title:n,totalCount:i,url:s,disableLink:c=!1,titleSize:d="m",visibility:u,avatarUrl:h,login:p,selectionCoverUrl:y,books:S=[],popoverContent:k,showActionMenuInForeignLayout:w=!1,className:N,linkClassName:j,isFavorite:L,onFavoriteClick:T,isFavoritePending:B,onNavigate:M=()=>{},onMenuOpen:R}=e,A=(0,eF.Ub)("(max-width: 767px)"),P=!c&&!!s,{bookCovers:F,stubCoversCount:z}=(0,g.useMemo)(()=>{let e=S.length;return{bookCovers:S.slice(0,Math.min(e,3)),stubCoversCount:3-e}},[S]),D=(0,g.useMemo)(()=>(0,m.oD)(i,"book",{formatNumber:!0,locale:"ru-RU"}),[i]),E=(0,r.jsxs)(r.Fragment,{children:[y?(0,r.jsx)("picture",{className:eD().SelectionCardCustomCover,children:(0,r.jsx)(x.$,{className:eD().SelectionCardImg,src:y,alt:"Обложка подборки ".concat(n)})}):(0,r.jsxs)("ul",{className:eD().SelectionCardCovers,children:[Array.from({length:z}).map((e,t)=>(0,r.jsx)("li",{className:o()(eD().SelectionCardCoverItem,eD().SelectionCardCoverItem_empty)},"stub-".concat(t))),F.map(e=>{let t=function(e){return e.isRightholderBlocked?"rightholder":e.isLgbtBlocked?"lgbt":null}(e);return(0,r.jsx)("li",{className:o()(eD().SelectionCardCoverItem,{[eD().SelectionCardCoverItem_empty]:!t&&!e.coverUrl}),children:t?(0,r.jsx)(b.AM,{trigger:"hover",placement:"bottom",disableArrow:!0,baseClassName:eD().SelectionCardCoverTrigger,content:(0,r.jsx)(b.n2,{text:f.F[t]}),children:(0,r.jsx)("div",{className:eD().SelectionCardImg,children:(0,r.jsx)(v.v,{reason:t,borderRadius:4})})}):e.coverUrl&&(0,r.jsx)(x.$,{className:eD().SelectionCardImg,src:e.coverUrl,alt:e.title})},e.id)})]}),(0,r.jsxs)("div",{className:o()(eD().SelectionCardAbout,{[eD().SelectionCardAbout_without_actions]:"share"===t||c}),children:[(0,r.jsx)("h3",{className:o()(eD().SelectionCardTitle,{[eD().SelectionCardTitle_size_s]:"s"===d}),children:n}),(0,r.jsxs)("ul",{className:eD().SelectionCardInfo,children:["foreign"===t&&(0,r.jsxs)("li",{className:eD().SelectionCardInfoItem,children:[(0,r.jsx)("picture",{className:eD().SelectionCardUserAvatar,children:(0,r.jsx)(x.$,{className:eD().SelectionCardImg,src:h||"/profile-photo.png",alt:"Аватар пользователя ".concat(p)})}),(0,r.jsx)("span",{className:eD().SelectionCardUserLogin,children:p})]}),(0,r.jsx)("li",{className:eD().SelectionCardInfoItem,children:(0,r.jsx)("span",{children:D})}),("own"===t||"share"===t)&&u&&(0,r.jsxs)("li",{className:o()(eD().SelectionCardInfoItem,eD().SelectionCardInfoItem_type_visibility),children:["private"===u&&(0,r.jsx)(l.h,{name:"lock",size:12}),"public"===u&&(0,r.jsx)(l.h,{name:"web",size:12}),"friends"===u&&(0,r.jsx)(l.h,{name:"friends",size:12}),(0,r.jsxs)("span",{children:["private"===u&&"Видна только вам","public"===u&&"Видна всем","friends"===u&&"Видна друзьям"]})]})]})]})]});return(0,r.jsxs)("article",{className:o()(N,eD().SelectionCard,{[eD().SelectionCard_share]:"share"===t}),children:[P?(0,r.jsx)(C.default,{className:o()(j,eD().SelectionCardLink),href:s,onClick:M,children:E}):(0,r.jsx)("div",{className:o()(j,eD().SelectionCardLink),children:E}),(0,r.jsxs)("div",{className:eD().SelectionCardActionMenu,children:[a&&!!k&&("own"===t||w)&&(0,r.jsx)(b.AM,{baseClassName:eD().SelectionCardMoreButton,content:k,trigger:"click",placement:"bottom",offset:[-5,0],hasMask:A,disableArrow:!0,onVisibleChange:e=>{e&&(null==R||R())},children:(0,r.jsx)(I.$,{icon:(0,r.jsx)(l.h,{name:"dots",size:32}),variant:"black",size:"S","aria-label":"Открыть меню"})}),T&&(0,r.jsx)(_.cl,{size:"S",variant:"black",rectangle:!0,disabled:!!B,icon:L?(0,r.jsx)(l.h,{className:eD().SelectionCardFavoriteFilledIcon,name:"bookmark-filled",size:22}):(0,r.jsx)(l.h,{name:"bookmark",size:22}),onClick:T,"aria-label":L?"Удалить из избранного":"Добавить в избранное"})]})]})};var eU=a(9199);a(72885);var eH=a(53444),eW=a.n(eH);let eO=()=>
1{let e=window.visualViewport,t=window.innerHeight;if(!e)return{height:t,offsetTop:0,keyboardVisible:!1};let a=e.height,n=e.offsetTop,r=Math.max(t-(a+n),0);return{height:a,offsetTop:n,keyboardVisible:r>120}},eV=e=>{let{children:t,className:a}=e,[n,i]=(0,g.useState)(()=>eO()),l=(0,g.useRef)(null);(0,g.useEffect)(()=>{let e=window.visualViewport,t=()=>{l.current&&cancelAnimationFrame(l.current),l.current=window.requestAnimationFrame(()=>{i(eO())})};return t(),null==e||e.addEventListener("resize",t),null==e||e.addEventListener("scroll",t),window.addEventListener("resize",t),()=>{l.current&&cancelAnimationFrame(l.current),null==e||e.removeEventListener("resize",t),null==e||e.removeEventListener("scroll",t),window.removeEventListener("resize",t)}},[]);let s=n.height>0?{minHeight:n.height,height:n.height}:void 0;return(0,r.jsx)("div",{className:o()(eW().ViewportCenter,a),style:s,children:t})};a(61733),a(77140)},69532:e=>{e.exports={title1:"Typography_title1__5uZa4",title2:"Typography_title2__oskry",title3:"Typography_title3__N3TU9",title4:"Typography_title4__JCwhe",title5:"Typography_title5__YT9Fw",description:"Typography_description__D5vDZ",bodyS:"Typography_bodyS__GG28f",bodyM:"Typography_bodyM__3JmhR",bodyL:"Typography_bodyL__pYejo",Heading:"Typography_Heading__ettNB",Heading_highlighted:"Typography_Heading_highlighted__06Ejb",Heading_1:"Typography_Heading_1__1XOJM",Heading_2:"Typography_Heading_2__KPR_m",Heading_3:"Typography_Heading_3__4EmKf",Heading_4:"Typography_Heading_4__6qXzu",Heading_5:"Typography_Heading_5___WkFf",Heading_6:"Typography_Heading_6__mp9LV",Text_l:"Typography_Text_l__5_0db",Link_l:"Typography_Link_l__02eHL",Text_m:"Typography_Text_m__IzIzO",Link_m:"Typography_Link_m__zIapD",Text_s:"Typography_Text_s__3KI2r",Link_s:"Typography_Link_s__SCdMu",Text_xs:"Typography_Text_xs__RlL6R",Link_xs:"Typography_Link_xs__XyuC_",Text_light:"Typography_Text_light__wdh8f",Link_light:"Typography_Link_light__X9ogY",Text_normal:"Typography_Text_normal__g1j9h",Link_normal:"Typography_Link_normal__FpOLH",Text_medium:"Typography_Text_medium__cxKzu",Link_medium:"Typography_Link_medium__JGZ5G",Text_semibold:"Typography_Text_semibold__78JwY",Link_semibold:"Typography_Link_semibold__I8n_E",Text_bold:"Typography_Text_bold__9OKTg",Link_bold:"Typography_Link_bold__2_dHf",Link:"Typography_Link__lIgOj",Text_left:"Typography_Text_left__IxB6f",Heading_left:"Typography_Heading_left__aVwAF",Link_left:"Typography_Link_left__AZZsC",Text_center:"Typography_Text_center__FCCvx",Heading_center:"Typography_Heading_center__E9Ewt",Link_center:"Typography_Link_center__DMnur",Text_right:"Typography_Text_right__aOeFz",Heading_right:"Typography_Heading_right__leZss",Link_right:"Typography_Link_right__43KcD",Text_justify:"Typography_Text_justify__opWaV",Heading_justify:"Typography_Heading_justify__8oc53",Link_justify:"Typography_Link_justify__G_xmu",Text_truncate:"Typography_Text_truncate__BvrQE",Heading_truncate:"Typography_Heading_truncate__vTljN",Link_truncate:"Typography_Link_truncate__PQJS2","Text_main-dark":"Typography_Text_main-dark__p35KU","Heading_main-dark":"Typography_Heading_main-dark__m9tpa","Link_main-dark":"Typography_Link_main-dark__xk1bz","Text_main-white":"Typography_Text_main-white__eG9lb","Heading_main-white":"Typography_Heading_main-white__xZIf4","Link_main-white":"Typography_Link_main-white__Tkev0","Text_main-grey":"Typography_Text_main-grey__u52_S","Heading_main-grey":"Typography_Heading_main-grey__kTOJ5","Link_main-grey":"Typography_Link_main-grey__YfyvD","Text_main-blue":"Typography_Text_main-blue__7THDI","Heading_main-blue":"Typography_Heading_main-blue__w8m1G","Link_main-blue":"Typography_Link_main-blue__StxhQ","Text_main-secondary-blue":"Typography_Text_main-secondary-blue__I_axf","Heading_main-secondary-blue":"Typography_Heading_main-secondary-blue__d4KB6","Link_main-secondary-blue":"Typography_Link_main-secondary-blue__20bwT",Text_error:"Typography_Text_error__ovOfC",Heading_error:"Typography_Heading_error__xxT47",Link_error:"Typography_Link_error__ZF7Gf"}},69941:(e,t,a)=>{"use strict";a.d(t,{E:()=>d});var n=a(10749),r=a(66985),i=a(66025),o=a.n(i),l=a(37916),s=a.n(l);let _=()=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,n.jsx)("path",{d:"M7.5 2.28868C7.8094 2.11004 8.1906 2.11004 8.5 2.28868L12.6962 4.71132C13.0056 4.88996 13.1962 5.22008 13.1962 5.57735V10.4226C13.1962 10.7799 13.0056 11.11 12.6962 11.2887L8.5 13.7113C8.1906 13.89 7.8094 13.89 7.5 13.7113L3.30385 11.2887C2.99445 11.11 2.80385 10.7799 2.80385 10.4226V5.57735C2.80385 5.22008 2.99445 4.88996 3.30385 4.71132L7.5 2.28868Z",fill:"url(#paint0_linear_437_7784)"}),(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:"paint0_linear_437_7784",x1:"2.99748",y1:"5.9836",x2:"6.07664",y2:"13.1153",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#8BC7FF"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#036BCD"})]})})]}),c=()=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,n.jsx)("path",{d:"M6.90339 1.81982C7.31602 2.53979 7.43237 3.48889 7.14669 4.42697C6.8642 5.35434 
16.24888 6.07002 5.51611 6.44148C5.23156 6.84425 5.01524 7.29276 4.87102 7.71324C4.84131 7.84105 4.80521 7.96582 4.75997 8.08601C4.59459 8.7436 4.51411 9.64693 4.77225 10.49C5.0102 11.2669 5.53966 12.0112 6.60931 12.4805C6.85072 12.5391 7.07647 12.6323 7.27672 12.7562L7.38163 12.826C7.10092 13.4333 6.50739 13.9406 5.73765 14.1468C4.96806 14.3529 4.20117 14.2099 3.65451 13.8243L3.71087 13.7116C4.01015 13.1548 4.57656 12.6973 5.29792 12.504C5.31558 12.4992 5.33329 12.4949 5.35093 12.4906C5.25827 12.4156 5.17068 12.3385 5.08866 12.2584C4.47867 12.6428 3.69264 12.8291 2.86377 12.7255C1.82625 12.5956 0.963313 12.0438 0.489328 11.3048C1.13082 10.7047 2.10247 10.3819 3.14056 10.5118C3.51176 10.5582 3.86028 10.6593 4.17683 10.8031C4.16333 10.7635 4.14941 10.7241 4.13721 10.6842C4.09163 10.5354 4.05585 10.3855 4.02727 10.2361C3.31366 10.348 2.51623 10.2065 1.79513 9.78132C0.894253 9.24997 0.3215 8.4003 0.180176 7.53355L0.180734 7.53411C1.00756 7.23847 2.02765 7.32832 2.9285 7.85944C3.35104 8.10861 3.70067 8.42824 3.96812 8.78634C3.98975 8.55949 4.02437 8.34444 4.06578 8.14627C3.45578 7.80378 2.92868 7.22878 2.61656 6.48444C2.21233 5.52007 2.26199 4.49741 2.66678 3.71826L2.82247 3.77128C3.5998 4.06181 4.29538 4.71792 4.6746 5.62228C4.7572 5.81929 4.81985 6.01895 4.86544 6.21826C4.92503 6.12699 4.9878 6.03719 5.0535 5.94929C4.81354 5.30288 4.7804 4.53649 5.01165 3.77686C5.31638 2.77637 6.00824 2.02031 6.81745 1.6792L6.90339 1.81982Z",fill:"url(#paint0_linear_437_7867)"}),(0,n.jsx)("path",{d:"M9.18241 1.6792C9.99162 2.02031 10.6835 2.77637 10.9882 3.77686C11.2195 4.53656 11.1858 5.30285 10.9458 5.94929C11.0115 6.0372 11.0743 6.12698 11.1339 6.21826C11.1795 6.01891 11.2426 5.81933 11.3253 5.62228C11.7045 4.71792 12.4001 4.06181 13.1774 3.77128L13.3331 3.71826C13.7379 4.49741 13.7875 5.52006 13.3833 6.48444C13.0711 7.22896 12.5437 7.80381 11.9335 8.14627C11.9749 8.34446 12.0095 8.55947 12.0312 8.78634C12.2987 8.42813 12.6487 8.10867 13.0714 7.85944C13.9722 7.32832 14.9923 7.23847 15.8191 7.53411L15.8197 7.53355C15.6784 8.4003 15.1056 9.24997 14.2047 9.78132C13.4834 10.2066 12.6858 10.3482 11.972 10.2361C11.9435 10.3855 11.9082 10.5354 11.8627 10.6842C11.8504 10.7241 11.836 10.7634 11.8225 10.8031C12.1391 10.6592 12.4879 10.5583 12.8593 10.5118C13.8974 10.3819 14.8696 10.7047 15.5111 11.3048C15.0371 12.0438 14.1736 12.5956 13.1361 12.7255C12.307 12.8292 11.5207 12.643 10.9106 12.2584C10.8286 12.3385 10.741 12.4156 10.6484 12.4906C10.6662 12.495 10.6841 12.4992 10.7019 12.504C11.4233 12.6973 11.9897 13.1549 12.289 13.7116L12.3454 13.8243C11.7987 14.2099 11.0318 14.3529 10.2622 14.1468C9.49247 13.9406 8.89894 13.4334 8.61823 12.826L8.72314 12.7562C8.92324 12.6324 9.14878 12.5391 9.39 12.4805C10.46 12.0112 10.9896 11.267 11.2276 10.49C11.4858 9.64693 11.4053 8.7436 11.2399 8.08601C11.1946 7.96579 11.158 7.84109 11.1283 7.71324C10.984 7.29271 10.7678 6.84426 10.4832 6.44148C9.75062 6.06996 9.1356 5.35416 8.85317 4.42697C8.56749 3.48889 8.68384 2.53979 9.09647 1.81982L9.18241 1.6792Z",fill:"url(#paint1_linear_437_7867)"}),(0,n.jsxs)("defs",{children:[(0,n.jsxs)("linearGradient",{id:"paint0_linear_437_7867",x1:"0.961072",y1:"7.38418",x2:"7.14",y2:"15.9151",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#EFBB60"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#DD9415"})]}),(0,n.jsxs)("linearGradient",{id:"paint1_linear_437_7867",x1:"0.961072",y1:"7.38418",x2:"7.14",y2:"15.9151",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#EFBB60"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#DD9415"})]})]})]}),d=(0,r.forwardRef)((e,t)=>{let{variant:a,children:r,className:i,onClick:l,onMouseEnter:d,onMouseLeave:u,onKeyDown:h,onFocus:p,onBlur:g,...m}=e,C=o()(s().badge,s()["badge_variant_".concat(a)],i),x=!!(l||h||p||g||d||u);return(0,n.jsx)("span",{className:s().focusWrapper,tabIndex:x?0:void 0,ref:t,role:x?"button":"badge","aria-label":"string"==typeof r?r:void 0,onClick:l,onMouseEnter:d,onMouseLeave:u,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),null==l||l(e)),null==h||h(e)},onFocus:e=>{null==d||d(e),null==p||p(e)},onBlur:e=>{null==u||u(e),null==g||g(e)},...m,children:(0,n.jsxs)("span",{className:C,"aria-hidden":"true",children:["gray"!==a?(0,n.jsxs)("div",{className:s().iconContainer,"aria-hidden":"true",children:["blue"===a&&(0,n.jsx)(_,{}),"yellow"===a&&(0,n.jsx)(c,{})]}):null,(0,n.jsx)("span",{className:s().textContainer,children:r})]})})});d.displayName="Badge"},72140:(e,t,a)=>{"use strict";a.d(t,{i:()=>s});var n=a(10749),r=a(66985),i=a(96039),o=a(63252),l=a.n(o);let s=e=>{let{options:t,value:a,onChange:o,size:s="S",className:_}=e,c=(0,r.useRef)(new Map),d=(0,r.useCallback)(e=>{o(e)},[o]);return(0,r.useEffect)(()=>
1{let e=c.current.get(a);e&&e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[a]),(0,n.jsx)("div",{className:_?"".concat(l().Switcher," ").concat(_):l().Switcher,role:"tablist",children:t.map(e=>(0,n.jsx)(i.$,{ref:t=>{t?c.current.set(e.id,t):c.current.delete(e.id)},variant:a===e.id?"primary":"neutral",size:s,onClick:()=>d(e.id),className:l().SwitcherButton,"aria-selected":a===e.id,role:"tab",children:e.label},e.id))})}},72885:(e,t,a)=>{"use strict";a.d(t,{F:()=>_});var n=a(10749),r=a(66985),i=a(66025),o=a.n(i),l=a(47112),s=a.n(l);let _=(0,r.forwardRef)((e,t)=>{let{className:a,"data-testid":i,defaultValue:l,disabled:_=!1,max:c=100,min:d=0,onChange:u,showLabel:h=!1,showMinMaxValues:p=!1,step:g=1,value:m,...C}=e,[x,b]=(0,r.useState)(()=>null!=l?l:(d+c)/2),v=null!=m?m:x,f=((e,t,a)=>{let n=a-t;return n<=0?0:Math.min(Math.max((e-t)/n*100,0),100)})(v,d,c),y={"--range-slider-progress":"".concat(f,"%"),"--range-slider-label-offset":"".concat(8-f/100*16,"px")};return(0,n.jsxs)("div",{className:o()(s().RangeSlider,a,{[s().RangeSlider_disabled]:_}),children:[h&&(0,n.jsx)("span",{"aria-hidden":"true",className:s().RangeSliderLabel,style:y,children:v}),(0,n.jsx)("input",{...C,ref:t,className:s().RangeSliderInput,disabled:_,max:c,min:d,onChange:e=>{let t=e.currentTarget.valueAsNumber;void 0===m&&b(t),null==u||u(t,e)},step:g,style:{...C.style,...y},type:"range",value:v}),p&&(0,n.jsxs)("div",{className:s().RangeSliderMinMaxValues,"aria-hidden":"true",children:[(0,n.jsx)("span",{children:d}),(0,n.jsx)("span",{children:c})]})]})});_.displayName="RangeSlider"},73262:()=>{},75788:e=>{e.exports={container:"Checkbox_container__Z2fVl",container_disabled:"Checkbox_container_disabled__PIZXI",container_reverse:"Checkbox_container_reverse__u4zRZ",inputWrapper:"Checkbox_inputWrapper__585_B",input:"Checkbox_input__if0Kn",checkbox:"Checkbox_checkbox__UkByk",checkbox_checked:"Checkbox_checkbox_checked__SQ308",checkbox_disabled:"Checkbox_checkbox_disabled__cDzUZ",checkIcon:"Checkbox_checkIcon__iDKMR",label:"Checkbox_label__q2mdx",label_disabled:"Checkbox_label_disabled__SfwWn"}},77140:e=>{e.exports={title1:"BookCoverWithRating_title1__sje_s",title2:"BookCoverWithRating_title2___hGVp",title3:"BookCoverWithRating_title3__BpTMk",title4:"BookCoverWithRating_title4__BGfIQ",title5:"BookCoverWithRating_title5__MWa8d",description:"BookCoverWithRating_description___yn46",bodyS:"BookCoverWithRating_bodyS__UPcoz",bodyM:"BookCoverWithRating_bodyM__jTLPM",bodyL:"BookCoverWithRating_bodyL__lBPjM",BookCoverWithRating:"BookCoverWithRating_BookCoverWithRating__GGJEu",BookCoverWithRatingLink:"BookCoverWithRating_BookCoverWithRatingLink__Y2I12",BookCoverWithRatingImage:"BookCoverWithRating_BookCoverWithRatingImage__WgCb2",BookCoverWithRatingButton:"BookCoverWithRating_BookCoverWithRatingButton__hmKbt",BookCoverWithRatingButton_rated:"BookCoverWithRating_BookCoverWithRatingButton_rated__Y59Kw"}},77298:e=>{e.exports={Notification:"Notification_Notification__1z3_e",Notification_IsMobile:"Notification_Notification_IsMobile__KSrKp",Notification_IsShown:"Notification_Notification_IsShown__OOxgV",NotificationWrapper:"Notification_NotificationWrapper__VAU4l"}},77594:e=>{e.exports={StarsRatingContainer:"StarsRating_StarsRatingContainer__VcgIv",RatingStar:"StarsRating_RatingStar__1m2Ht"}},77740:(e,t,a)=>{"use strict";a.d(t,{l:()=>p});var n=a(10749),r=a(66985),i=a(66025),o=a.n(i),l=a(25153),s=a(48223),_=a(96039),c=a(36825),d=function(e){return e.Enter="Enter",e.Space="Space",e.ArrowUp="ArrowUp",e.ArrowDown="ArrowDown",e.Escape="Escape",e.Tab="Tab",e}({}),u=a(95138),h=a.n(u);function p(e){let{mode:t,heading:a,items:i=[],defaultActiveId:u,onChange:p,className:g,menuClassName:m,baseClassName:C,renderContentItem:x,onToggleOpen:b}=e,[v,f]=(0,r.useState)(u),[y,S]=(0,r.useState)(!1),k=(0,r.useRef)(null),w=(0,r.useRef)(null),N=o()(h().SelectButton,h()["SelectButton_mode_".concat(t)],g),j=()=>{S(e=>(e&&(null==b||b(!1,v)),!1))};(0,l.ML)("keydown",e=>{let{key:t}=e;if(!y||![d.ArrowDown,d.ArrowUp,d.Tab].includes(t))return;let a=w.current?Array.from(w.current.querySelectorAll('[role="option"]')):[],n=a.length-1,r=a.findIndex(e=>e===document.activeElement),i=r<=0?n:r-1;t===d.ArrowDown&&a[-1===r||r>=n||-1===r?0:r+1].focus(),t===d.ArrowUp&&((null==k?void 0:k.current)&&(-1===r||i===n)?k.current.focus():a[-1===r?n:i].focus())}),(0,l.ML)("keydown",e=>{let{key:t}=e;if(t===d.Escape){var a,n;j(),null==(n=k.current)||null==(a=n.children[0])||a.focus()}},k),(0,l.ML)("focusout",e=>{var t;let a=e.relatedTarget;null!=(t=k.current)&&t.contains(a)||j()},k),(0,r.useEffect)(()=>{f(u)},[u]);let I=(0,s.Ub)("(max-width: 767px)");(0,l.Bc)(y&&I);let L=(0,r.useMemo)(()=>i.find(e=>e.id===v),[i,v]),T=null==L?void 0:L.value,B=null==L?void 0:L.count;return(0,n.jsxs)("div",{className:o()(h().Select,C),ref:k,children:[(0,n.jsxs)(_.$,{className:N,onClick:()=>{null==b||b(!y,v),S(e=>!e)},"aria-haspopup":"listbox","aria-expanded":y,id:"select-trigger","aria-label":"".concat(T,", ","Выбрать из списка"," (").concat(y?"развернуто":"свернуто",")"),children:["sort"===t&&(0,n.jsx)(c.h,{name:"sort",size:18}),(0,n.jsxs)("span",{className:h().SelectButtonTitle,children:[T,"filter"===t&&(0,n.jsx)("span",{className:h().SelectButtonSubtitle,children:B})]}),"filter"===t&&(0,n.jsx)(c.h,{name:"arrow-down",size:16})]}),y&&(0,n.jsx)("div",{className:h().SelectContainer,children:(0,n.jsxs)("div",{className:h().SelectContent,children:[(0,n.jsx)("h2",{className:h().SelectTitle,children:a}),(0,n.jsx)(_.$,{className:h().SelectCloseButton,type:"button",onClick:j,"aria-label":"Закрыть",children:(0,n.jsx)(c.h,{name:"close",size:18})}),(0,n.jsx)("ul",{className:o()(h().SelectMenu,m),role:"listbox","aria-labelledby":"select-trigger",id:"selectMenu",ref:w,children:i.map(e=>{let{id:a,value:r,count:i}=e;return(0,n.jsx)("li",{className:h().SelectMenuItem,role:"none",children:(0,n.jsxs)(_.$,{className:o()(h().SelectButton,h().SelectMenuButton),onClick:()=>{f(a),p(a),j()},id:"select-item-".concat(a),role:"option","aria-selected":a===v,"aria-label":r,children:[x?x(a):r,"filter"===t&&void 0!==i&&" (".concat(i,")"),a===v&&(0,n.jsx)(c.h,{className:h().SelectMenuItemIcon,name:"check",size:20})]})},a)})})]})})]})}},79636:(e,t,a)=>{"use strict";a.d(t,{q:()=>c});var n=a(10749),r=a(66025),i=a.n(r),o=a(71053),l=a(55760),s=a.n(l);let _={gray:s().GenreTag_gray,black:s().GenreTag_black};function c(e){let{children:t,href:a,className:r,variant:l="default"}=e,c=i()(s().GenreTag,_[l],r);return a?(0,n.jsx)(o.default,{href:a,className:c,children:t}):(0,n.jsx)("span",{className:c,children:t})}},80294:(e,t,a)=>{"use strict";a.r(t),a.d(t,{ImageUploadModal:()=>d});var n=a(10749),r=a(66985),i=a(94911),o=a(21613),l=a(68597),s=a(32781),_=a(93009),c=a.n(_);let d=e=>{let{isOpen:t,onClose:a,title:_="Обложка профиля",imageUrl:d,accept:u="image/png,image/jpeg,image/jpg",maxSizeMB:h=5,recommendedSize:p,onImageSelect:g,onImageDelete:m,onSave:C,isSaving:x=!1,cropConfig:b}=e,v=(0,r.useRef)(null),{addNotification:f}=(0,i.M)(),y=async e=>{var t;let n=null==(t=e.target.files)?void 0:t[0];if(e.target.value="",!n)return;if(!u.split(",").some(e=>n.type.match(e.trim())))return void f({message:"Неподдерживаемый формат файла",showIcon:!0,mode:"error"});if(n.size/1048576>h)return void f({message:"Размер файла превышает ".concat(h," МБ"),showIcon:!0,mode:"error"});let r=new FileReader;r.onload=async e=>{var t;let r=null==(t=e.target)?void 0:t.result;await (null==C?void 0:C(n,r)),a()}
1,r.readAsDataURL(n)},S=async()=>{null==m||m(),a()};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.N,{isOpen:t,onClose:a,title:_,size:"s",closeOnOverlayClick:!x,showCloseButton:!0,children:(0,n.jsx)("div",{className:c().ImageUploadModal,children:(0,n.jsxs)("div",{className:c().ImageUploadModalActions,children:[(0,n.jsx)(l.$,{variant:"secondary",onClick:()=>{var e;null==(e=v.current)||e.click()},disabled:x,size:"M",fullWidth:!0,children:"Выбрать фото"}),(0,n.jsx)(l.$,{variant:"neutral",onClick:S,disabled:x,size:"M",icon:(0,n.jsx)(s.h,{name:"basket",size:18}),fullWidth:!0,children:"Удалить"})]})})}),(0,n.jsx)("input",{ref:v,type:"file",accept:u,onChange:y,style:{display:"none"},"aria-hidden":"true"})]})}},85108:e=>{e.exports={PaginatorContainer:"Paginator_PaginatorContainer__ZaO3m",PaginatorPage:"Paginator_PaginatorPage__nCgfb",PaginatorPage_active:"Paginator_PaginatorPage_active__xwwsb",PaginatorPage_active_disabled:"Paginator_PaginatorPage_active_disabled__3u8S5",PaginatorArrow:"Paginator_PaginatorArrow__qx4uj",PaginatorIcon:"Paginator_PaginatorIcon__Aeg2t",PaginatorArrow_disabled:"Paginator_PaginatorArrow_disabled__A0dJD",PaginatorBreak:"Paginator_PaginatorBreak__1sKTf",PaginatorBreak_clickEnable:"Paginator_PaginatorBreak_clickEnable__Kp_JF"}},85870:(e,t,a)=>{"use strict";a.d(t,{B:()=>C});var n=a(10749),r=a(66025),i=a.n(r),o=a(66985),l=a(93606),s=a(99578),_=a(29462),c=a(28647);let d={value:"",label:"-"},u=(e,t,a)=>((e,t)=>{var a;return void 0===e||("boolean"==typeof e?e:null!=(a=e[t])&&a)})(a,t)?[{...d},...e]:e;var h=a(5489),p=a.n(h),g=a(64914),m=a.n(g);let C=(0,o.forwardRef)((e,t)=>{let{label:a,subLabel:r,message:d,messageMode:h="error",error:g=!1,wrapperClassName:C,value:x={day:"",month:"",year:""},onChange:b,onBlur:v,disabled:f=!1,name:y,placeholders:S={day:"День",month:"Месяц",year:"Год"},allowEmptyOption:k=!0,showDay:w=!0,maxDate:N,monthLabelFormat:j}=e,I=e=>N&&e?(0,_.xY)(e,N):null!=e?e:{day:"",month:"",year:""},L=null!=j?j:"full",T=(0,o.useMemo)(()=>(0,c.LE)(L),[L]),B=(0,o.useMemo)(()=>{let e=x.month?parseInt(x.month,10):null,t=x.year?parseInt(x.year,10):null;return u(Array.from({length:null!=e&&null!=t?(0,_.w4)(e,t,N):N?N.getDate():31},(e,t)=>({value:String(t+1),label:String(t+1)})),"day",k)},[k,N,x.month,x.year]),M=(0,o.useMemo)(()=>u((0,_.UR)(T,N,x.year),"month",k),[T,k,N,x.year]),R=(0,o.useMemo)(()=>{let e=new Date().getFullYear();return u(Array.from({length:100},(t,a)=>{let n=e-a;return{value:String(n),label:String(n)}}),"year",k)},[k]),A=e=>{if(!e.day||!e.year||!e.month)return e;let t=parseInt(e.month,10),a=parseInt(e.year,10),n=(0,_.w4)(t,a,N);return parseInt(e.day,10)>n?{...e,day:""}:e};return(0,n.jsx)("div",{ref:t,className:m().DateSelectRoot,children:(0,n.jsx)(l.L,{label:a,subLabel:r,name:y,wrapperClassName:i()(m().DateSelectWrapper,C),message:d,messageMode:h,showCharacterCount:!1,styles:p(),children:(0,n.jsxs)("div",{className:m().DateSelectRow,role:"group","aria-labelledby":y?"".concat(y,"-label"):void 0,children:[w&&(0,n.jsx)(s.m,{placeholder:S.day,value:x.day,onChange:e=>{null==b||b(I({...x,day:e.target.value}))},onBlur:v,disabled:f,options:B,dropdownPlacement:"bottom","aria-label":"День"}),(0,n.jsx)(s.m,{placeholder:S.month,value:x.month,onChange:e=>{let t=A({...x,month:e.target.value});null==b||b(I(t))},onBlur:v,disabled:f,options:M,dropdownPlacement:"bottom","aria-label":"Месяц"}),(0,n.jsx)(s.m,{placeholder:S.year,value:x.year,onChange:e=>{let t=A({...x,year:e.target.value});null==b||b(I(t))},onBlur:v,disabled:f,options:R,dropdownPlacement:"bottom","aria-label":"Год"})]})})})});C.displayName="DateSelect"},86287:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Lightbox:()=>p});var n=a(10749),r=a(66985),i=a(64444),o=a(9198),l=a(66025),s=a.n(l),_=a(36825),c=a(96039),d=a(63372),u=a.n(d);a(90346),a(73262);let h=e=>{let{currentIndex:t,totalSlides:a,showCounter:r,showPagination:i,onClose:o,onPrev:l,onNext:d,onDotClick:h}=e,p=0===t,g=t===a-1,m=a>1;return(0,n.jsxs)("div",{className:u().LightboxControls,children:[(0,n.jsx)(c.$,{type:"button",className:u().LightboxCloseButton,onClick:o,"aria-label":"Закрыть",children:(0,n.jsx)(_.h,{name:"close",size:18,className:u().LightboxCloseIcon})}),r&&m&&(0,n.jsxs)("div",{className:u().LightboxCounter,children:[t+1," из ",a]}),m&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.$,{type:"button",className:s()(u().LightboxNavButton,u().LightboxNavButton_prev),onClick:l,disabled:p,"aria-label":"Предыдущее изображение",children:(0,n.jsx)(_.h,{name:"arrow-left",size:24,className:s()(u().LightboxNavIcon,{[u().LightboxNavIcon_disabled]:p})})}),(0,n.jsx)(c.$,{type:"button",className:s()(u().LightboxNavButton,u().LightboxNavButton_next),onClick:d,disabled:g,"aria-label":"Следующее изображение",children:(0,n.jsx)(_.h,{name:"arrow-right",size:24,className:s()(u().LightboxNavIcon,{[u().LightboxNavIcon_disabled]:g})})})]}),i&&m&&(0,n.jsx)("div",{className:u().LightboxPagination,role:"tablist","aria-label":"Навигация по изображениям",children:Array.from({length:a}).map((e,a)=>(0,n.jsx)(c.$,{type:"button",className:s()(u().LightboxPaginationDot,{[u().LightboxPaginationDot_active]:a===t}),"data-index":a,onClick:h,role:"tab","aria-selected":a===t,"aria-label":"Изображение ".concat(a+1)},a))})]})},p=e=>{let{open:t,onClose:a,slides:l,index:s=0,onIndexChange:_,className:c,showCounter:d=!0,showPagination:u=!0,closeOnBackdropClick:p=!0}=e,[g,m]=(0,r.useState)(s),[C,x]=(0,r.useState)(null);(0,r.useEffect)(()=>{m(s)},[s]);let b=(0,r.useCallback)(e=>{m(e),null==_||_(e)},[_]);(0,r.useEffect)(()=>
1{if(t){let e=setTimeout(()=>{let e=document.querySelector(".yarl__root");e&&x(e)},50);return()=>clearTimeout(e)}x(null)},[t]),(0,r.useEffect)(()=>{if(!t)return;let e=e=>{"Escape"===e.key&&(e.preventDefault(),a())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[t,a]);let v=(0,r.useCallback)(()=>{g>0&&b(g-1)},[g,b]),f=(0,r.useCallback)(()=>{g<l.length-1&&b(g+1)},[g,l.length,b]),y=(0,r.useCallback)(e=>{b(Number(e.currentTarget.dataset.index))},[b]),S=(0,r.useCallback)(()=>{p&&a()},[p,a]);return(0,n.jsxs)("div",{className:c,children:[(0,n.jsx)(o.Ay,{open:t,close:a,slides:l,index:g,on:{view:e=>{let{index:t}=e;return b(t)},click:S},controller:{closeOnBackdropClick:!1,closeOnPullUp:!1,closeOnPullDown:!1},render:{buttonPrev:()=>null,buttonNext:()=>null,buttonClose:()=>null},carousel:{finite:!0},animation:{fade:250,swipe:250}}),t&&C&&(0,i.createPortal)((0,n.jsx)(h,{currentIndex:g,totalSlides:l.length,showCounter:d,showPagination:u,onClose:a,onPrev:v,onNext:f,onDotClick:y}),C)]})}},88141:e=>{e.exports={SetEmotionsButton:"SetEmotionsButton_SetEmotionsButton__uusLD","hover-gradient-animation":"SetEmotionsButton_hover-gradient-animation__Dtuz7",EmotionBadgeWhite:"SetEmotionsButton_EmotionBadgeWhite__BDyKP"}},88558:e=>{e.exports={ReviewContainer:"Review_ReviewContainer__1KSBS",ReviewContainerRatingRow:"Review_ReviewContainerRatingRow__5Jzls",ReviewContainerSpoiler:"Review_ReviewContainerSpoiler__S_pvV",ReviewContainerTitle:"Review_ReviewContainerTitle__GaNKY",ReviewContainerText:"Review_ReviewContainerText__T_V_m",ReviewContainerTextButton:"Review_ReviewContainerTextButton__T2PRw",ReviewContainerBookCard:"Review_ReviewContainerBookCard___vi_1",SpoilerContainer:"Review_SpoilerContainer__ds7PN",SpoilerContainerText:"Review_SpoilerContainerText__rAH7u",SpoilerContainerButton:"Review_SpoilerContainerButton__mwMn_",StarsRatingPadding:"Review_StarsRatingPadding__rbiwj"}},89940:e=>{e.exports={Rating:"Rating_Rating__oeIHc",RatingBody:"Rating_RatingBody__S5zl3",RatingSummary:"Rating_RatingSummary__d_eVo",RatingScoreSection:"Rating_RatingScoreSection__r3qpm",RatingScore:"Rating_RatingScore__HZh6V",RatingStars:"Rating_RatingStars__tojUY",RatingStar:"Rating_RatingStar__7vm_x",RatingReviewCountContainer:"Rating_RatingReviewCountContainer__qXDdi",RatingReviewCount:"Rating_RatingReviewCount__w21Hf",RatingDistribution:"Rating_RatingDistribution__c3dhq",RatingDistributionRow:"Rating_RatingDistributionRow__Bqh9_",RatingLabelContainer:"Rating_RatingLabelContainer__3f00C",RatingLabel:"Rating_RatingLabel__9TRwl",RatingStarIcon:"Rating_RatingStarIcon__J4CKC",RatingBarContainer:"Rating_RatingBarContainer___vTZN",RatingBarFill:"Rating_RatingBarFill__TADAd",RatingPercentage:"Rating_RatingPercentage__omJEa",RatingHeader:"Rating_RatingHeader__E61sv",RatingCountersContainer:"Rating_RatingCountersContainer__VhCwt",RatingCounters:"Rating_RatingCounters__kgabN",RatingCounter:"Rating_RatingCounter__QRibR",RatingEmotions:"Rating_RatingEmotions__C97FX",RatingEmotionsTitle:"Rating_RatingEmotionsTitle__JwNw5",RatingEmotionsList:"Rating_RatingEmotionsList__LqmE3"}},93009:e=>{e.exports={title1:"ImageUploadModal_title1__DoLqv",title2:"ImageUploadModal_title2__Dp_UL",title3:"ImageUploadModal_title3__hUten",title4:"ImageUploadModal_title4__u1gI1",title5:"ImageUploadModal_title5__VmUI0",description:"ImageUploadModal_description__g0I8x",bodyS:"ImageUploadModal_bodyS__VtTgy",bodyM:"ImageUploadModal_bodyM__9taEp",bodyL:"ImageUploadModal_bodyL___v18a",ImageUploadModal:"ImageUploadModal_ImageUploadModal__0dSQY",ImageUploadModalActions:"ImageUploadModal_ImageUploadModalActions__9KiRT"}},93606:(e,t,a)=>{"use strict";a.d(t,{L:()=>c,p:()=>_});var n=a(10749),r=a(66985),i=a(66025),o=a.n(i),l=a(6110),s=a(49373);let _=(e,t,a)=>
1{let{inputRef:n,value:i,inputSize:o,behavior:l="expandable",onInputChange:s,onChange:_,onFocus:c,onBlur:d,autoFocus:u=!1,maxLength:h,maxLengthLabel:p,showCharacterCount:g,subLabel:m,messageMode:C,error:x,ariaInvalid:b,label:v,message:f,wrapperClassName:y,...S}=e,k="S"===o,w="M"===o,N="L"===o,j=w||N,I=null!==a,[L,T]=(0,r.useState)(!!i),B=(0,r.useCallback)(()=>{let e=null==a?void 0:a.current;if(!e||"expandable"!==l)return;let t=e.scrollTop;e.style.height="auto";let n=e.scrollHeight,r=48;k?r=44:w?r=80:N&&(r=120);let i=Math.max(n,r);e.style.height="".concat(i,"px"),t>0&&(e.scrollTop=t)},[l,k,w,N,a]);(0,r.useImperativeHandle)(n,()=>({focus(){var e,n;j?null==a||null==(e=a.current)||e.focus():null==t||null==(n=t.current)||n.focus()},scrollIntoView(e){var n,r;j?null==a||null==(n=a.current)||n.scrollIntoView(e):null==t||null==(r=t.current)||r.scrollIntoView(e)}}),[j,t,a]);let M=(0,r.useCallback)(e=>{T(!!e),null==s||s(e),I&&"expandable"===l&&setTimeout(B,0)},[s,I,l,B]),R=(0,r.useCallback)(e=>{null==c||c(e)},[c]),A=(0,r.useCallback)(e=>{null==d||d(e)},[d]),P=(null==i?void 0:i.length)||0,F={...S,value:i,onChange:e=>{M(e.target.value),null==_||_(e)},onFocus:R,onBlur:A};return(0,r.useEffect)(()=>{T(!!i),I&&"expandable"===l&&setTimeout(B,0)},[i,I,l,B]),(0,r.useEffect)(()=>{u&&setTimeout(()=>{var e,n;j?null==a||null==(e=a.current)||e.focus():null==t||null==(n=t.current)||n.focus()},0)},[u,j,t,a]),(0,r.useEffect)(()=>{I&&"expandable"===l&&B()},[I,l,B]),{state:{isFilled:L,currentLength:P},handlers:{handleChangeValue:M,handleFocus:R,handleBlur:A,adjustTextareaHeight:B},computedProps:{inputProps:F,isMultiline:j,isSizeS:k,isSizeM:w,isSizeL:N}}},c=e=>{let{children:t,label:a,subLabel:r,name:i,wrapperClassName:_,message:c,messageMode:u,showCharacterCount:h,currentLength:p=0,maxLength:g,characterCountAriaLabel:m,maxLengthLabel:C,styles:x}=e;return(0,n.jsxs)("div",{className:o()(_,x.wrapper),children:[a&&(0,n.jsxs)("label",{className:x.label,htmlFor:null!=i?i:"",children:[a,r&&(0,n.jsx)("span",{className:x.subLabel,children:r})]}),t,(0,n.jsxs)("div",{className:x.messageFooter,children:[c&&(0,n.jsx)(s.j,{mode:null!=u?u:"error",message:null!=c?c:"error"}),C&&(0,n.jsx)(d,{label:C,styles:x}),h&&(0,n.jsx)(l.c,{currentLength:p,maxLength:g,styles:x,ariaLabel:m})]})]})},d=e=>{let{label:t,styles:a}=e;return(0,n.jsxs)("div",{className:a.MessageFooterMaxLengthHint,children:[(0,n.jsx)(u,{className:a.MessageFooterMaxLengthHintIcon}),(0,n.jsx)("span",{children:t})]})},u=e=>(0,n.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",...e,children:[(0,n.jsxs)("g",{clipPath:"url(#clip0_2061_23459)",children:[(0,n.jsx)("circle",{cx:"6",cy:"6",r:"6",fill:"#70768C"}),(0,n.jsx)("path",{d:"M6.0636 4.54883C6.3787 4.58089 6.62463 4.84733 6.62463 5.1709V8.43701L7.42541 8.71338C7.63884 8.7869 7.58621 9.10254 7.36047 9.10254H4.63879C4.41309 9.10254 4.36005 8.78696 4.57336 8.71338L5.37463 8.43701V5.1709C5.37463 5.16441 5.37493 5.15781 5.37512 5.15137L4.86975 4.92871C4.6717 4.84152 4.73391 4.5459 4.95032 4.5459H5.99963L6.0636 4.54883Z",fill:"white"}),(0,n.jsx)("path",{d:"M5.99963 2.77734C6.34478 2.77738 6.62463 3.05719 6.62463 3.40234C6.62453 3.74741 6.34472 4.02731 5.99963 4.02734C5.65452 4.02734 5.37473 3.74744 5.37463 3.40234C5.37463 3.05717 5.65446 2.77734 5.99963 2.77734Z",fill:"white"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_2061_23459",children:(0,n.jsx)("rect",{width:"12",height:"12",fill:"white"})})})]})},94911:(e,t,a)=>{"use strict";a.d(t,{NotificationProvider:()=>T,M:()=>L});var n=a(10749),r=a(66985),i=a(66025),o=a.n(i),l=a(79124),s=a.n(l),_=a(6220),c=a.n(_),d=a(36825),u=a(39808);let h={info:"info",success:"check",error:"attention",warning:"attention"},p=e=>{let{mode:t,onClose:a=s(),showIcon:r,title:i,isClosable:l=!0,message:_,isMobile:p=!1,isFullWidth:g=!1,button:m,buttonClassName:C}=e;return(0,n.jsxs)("div",{className:o()(c().NotificationLayout,{[c().NotificationLayout_Info]:"info"===t,[c().NotificationLayout_Error]:"error"===t,[c().NotificationLayout_Warning]:"warning"===t,[c().NotificationLayout_Success]:"success"===t,[c().NotificationLayout_FullWidth]:g,[c().NotificationLayout_IsMobile]:p}),children:[l&&(0,n.jsx)("div",{role:"button",className:c().NotificationLayoutClose,onClick:a,children:(0,n.jsx)(d.h,{name:"close",size:24})}),(0,n.jsx)("div",{children:r&&(0,n.jsx)("div",{className:c().NotificationLayoutIcon,children:"success"===t?(0,n.jsx)(u.V,{name:"success",path:"statusMode",width:24,height:24}):(0,n.jsx)(d.h,{name:h[t],size:24})})}),(0,n.jsxs)("div",{className:c().NotificationLayoutContent,children:[(0,n.jsx)("h4",{className:c().NotificationLayoutTitle,children:i}),(0,n.jsx)("p",{children:_}),m&&(0,n.jsx)("button",{type:"button",className:o()(c().NotificationLayoutButton,C),onClick:()=>{m.onClick()},children:m.label})]})]})};var g=a(77298),m=a.n(g),C=a(50756),x=a.n(C);let b=(e,t,a,n)=>n?window.innerHeight-(e.y+e.height/2)>=(t||110)/2:window.innerHeight-e.bottom-(a||10)>=(t||110),v=(e,t,a,n)=>n?e.y>(t||110)/2:e.y-(a||10)>(t||110),f=(e,t,a,n,r)=>
1n?window.innerWidth-(e.x+e.width)>=(t||295)+(a||10):r?window.innerWidth-e.x-e.width/2>=(t||295)/2:e.x+e.width>=(t||295),y=(e,t,a,n,r)=>n?e.x>=(t||295)+(a||10):r?e.x+e.width/2>=(t||295)/2:window.innerWidth-e.x>=(t||295),S=(e,t,a,n)=>{if(!("top"===a&&v(e,t,n))&&("bottom"!==a||b(e,t,n)))return((e,t)=>({top:"".concat(e.y+e.height+(t||10),"px"),transform:"none"}))(e,n);return{top:"".concat(e.y-(n||10),"px"),transform:"translateY(-100%)"}},k=(e,t,a)=>v(e,t,a,!0)&&b(e,t,a,!0)?(e=>({top:"".concat(e.y+e.height/2,"px"),transform:"translateY(-50%)"}))(e):S(e,t,"bottom",a),w=(e,t,a,n)=>{if(!("left"===a&&y(e,t,n))&&("right"!==a||f(e,t,n)))return(e=>({left:"auto",right:"".concat(window.innerWidth-e.x-e.width,"px")}))(e);return{right:"auto",left:"".concat(e.x,"px")}},N=e=>{let{horizontalAlign:t="right",verticalAlign:a="bottom",time:i=5e3,closeOnClick:l=!1,margin:_,isOpen:c,onClose:d=s(),alignElRef:u,isMobile:h=!1,className:g,...C}=e,[N,j]=(0,r.useState)(!1),I=(0,r.useRef)(null),L=(0,r.useCallback)(()=>{j(!1),d()},[d]);(e=>{let{horizontalAlign:t,verticalAlign:a,el:n,notice:i,margin:o,isMobile:l}=e,s=(0,r.useCallback)(()=>{!n&&i&&("left"===t&&(i.style.left="".concat(o||30,"px")),"right"===t&&(i.style.right="".concat(o||30,"px")),"top"===a&&(i.style.top="".concat(o||30,"px")),"bottom"===a&&(i.style.bottom="".concat(o||30,"px")),"center"===t&&(i.style.left="50%",i.style.transform="translateX(-50%)"),"center"===a&&(i.style.top="50%",i.style.transform="translateY(-50%)"),"center"===t&&"center"===a&&(i.style.transform="translate(-50%, -50%)"))},[n,t,o,i,a]),_=(0,r.useCallback)(()=>{if(n&&i){let e=i.getBoundingClientRect(),r=n.getBoundingClientRect();if(i.style.bottom="auto","top"===a||"bottom"===a){let{top:t,transform:n}=S(r,e.height,a,o);i.style.top=t,i.style.transform=n}if("left"===t||"right"===t){let{left:a,right:n}=w(r,e.width,t,o);i.style.right=n,i.style.left=a}if("center"===a){let{left:a,right:n}=((e,t,a,n,r)=>{if(!(v(e,a,r,!0)&&b(e,a,r,!0)))return w(e,t,"right"===n?"left":"right");if(!("left"===n&&y(e,t,r,!0))&&("right"!==n||f(e,t,r,!0)))return((e,t)=>({right:"auto",left:"".concat(e.x+e.width+(t||10),"px")}))(e,r);return{left:"auto",right:"".concat(window.innerWidth-e.x+(r||10),"px")}})(r,e.width,e.height,t,o),{top:l,transform:s}=k(r,e.height,o);i.style.top=l,i.style.transform=s,i.style.right=n,i.style.left=a}if("center"===t){let{top:t,transform:n,left:l,right:s}=((e,t,a,n,r)=>{let{top:i,transform:o}="center"===n?k(e,a):S(e,a,n);return y(e,t,r,!1,!0)&&f(e,t,r,!1,!0)?{top:i,transform:"none"===o?"translateX(-50%)":"translateX(-50%) ".concat(o),left:"".concat(e.x+e.width/2,"px"),right:"auto"}:{...S(e,a,"center"===n?"bottom":n),...w(e,t,"right")}})(r,e.width,e.height,a,o);i.style.top=t,i.style.transform=n,i.style.right=s,i.style.left=l}}},[n,t,o,i,a]),c=(0,r.useMemo)(()=>x()(()=>{_()},100),[_]);(0,r.useEffect)(()=>{if(!l)return s(),_(),window.addEventListener("resize",c),window.addEventListener("scroll",c),()=>{var e;window.removeEventListener("resize",c),window.removeEventListener("scroll",c),null==(e=c.cancel)||e.call(c)}},[s,_,l,c])})({horizontalAlign:t,verticalAlign:a,margin:_,el:null==u?void 0:u.current,notice:I.current,isMobile:h});let{offsetX:T}=(e=>{let{isMobile:t,notice:a,handleClose:n}=e,[i,o]=(0,r.useState)(0),l=(0,r.useRef)(0),s=(0,r.useRef)(0),_=(0,r.useRef)(!1),c=(0,r.useCallback)(e=>{let t=e.touches[0].clientX-l.current;0===s.current&&(s.current=e.touches[0].clientX),t>=0&&(o(e=>e+t),_.current=!0,l.current=e.touches[0].clientX)},[]),d=(0,r.useCallback)(()=>{l.current=0,s.current=0,_.current=!1,o(0)},[]),u=(0,r.useCallback)(e=>{l.current=e.touches[0].clientX},[]),h=(0,r.useCallback)(e=>{e.preventDefault(),c(e)},[c]),p=(0,r.useCallback)(()=>{let e=l.current-s.current;_.current&&e>=50?(o(1e3),setTimeout(()=>{n(),d()},500)):d()},[d,n]);return(0,r.useEffect)(()=>{if(t&&a)return a.addEventListener("touchstart",u),a.addEventListener("touchend",p),a.addEventListener("touchmove",h),()=>{a&&(a.removeEventListener("touchstart",u),a.removeEventListener("touchend",p),a.removeEventListener("touchmove",h))}},[p,h,u,t,a]),{offsetX:i}})({isMobile:h,notice:I.current,handleClose:L});return(0,r.useEffect)(()=>{let e;return j(c),c&&!l&&(e=setTimeout(L,i)),()=>{e&&clearTimeout(e)}},[l,L,c,i]),(0,n.jsx)("div",{className:o()(m().Notification,g,{[m().Notification_IsMobile]:h,[m().Notification_IsShown]:N}),ref:I,onClick:e=>{e.stopPropagation()},children:N&&(0,n.jsx)("div",{className:m().NotificationWrapper,style:{transform:"translateX(".concat(T,"px)")},children:(0,n.jsx)(p,{...C,onClose:L,isMobile:h})})})},j={message:"",title:"",mode:"info",horizontalAlign:"right",verticalAlign:"top",isOpen:!0},I=(0,r.createContext)({addNotification:()=>{}}),L=()=>(0,r.useContext)(I),T=e=>{let{children:t}=e,[a,i]=(0,r.useState)(null),o=(0,r.useCallback)(e=>{i({...j,...e,isOpen:!0})},[]),l=(0,r.useCallback)(()=>{i(e=>{var t;return null==e||null==(t=e.onClose)||t.call(e),null})},[]),s=(0,r.useMemo)(()=>({addNotification:o}),[o]);return(0,n.jsxs)(I.Provider,{value:s,children:[t,a&&(0,n.jsx)(N,{...a,onClose:l})]})}},95138:e=>{e.exports={Select:"Select_Select__cuZLf",SelectButton:"Select_SelectButton__Op8T1",SelectButton_mode_sort:"Select_SelectButton_mode_sort__d3Ekv",SelectButton_mode_filter:"Select_SelectButton_mode_filter__gR8fr",SelectButtonTitle:"Select_SelectButtonTitle__FJNu7",SelectButtonSubtitle:"Select_SelectButtonSubtitle__9Yhji",SelectCloseButton:"Select_SelectCloseButton__Mvvhn",SelectContent:"Select_SelectContent__Xa4TG",slideDown:"Select_slideDown__Waq2s",SelectTitle:"Select_SelectTitle__HFF8w",SelectMenu:"Select_SelectMenu__fL8f0",SelectMenuItem:"Select_SelectMenuItem__fn6lH",SelectMenuButton:"Select_SelectMenuButton__G0kWd",SelectMenuItemIcon:"Select_SelectMenuItemIcon__7eqO_",SelectContainer:"Select_SelectContainer___a9Pa",slideUp:"Select_slideUp__dD6Jc"}},96391:(e,t,a)=>{"use strict";a.d(t,{z:()=>u});var n=a(10749),r=a(66985),i=a(66025),o=a.n(i),l=a(26568),s=a.n(l),_=a(40031);let c={M:44,S:32,XS:16},d=e=>{let{fillState:t,index:a,sizePx:i,uniqueId:o}=e,l="".concat(o,"-star-").concat(a),_="".concat(o,"-gradient-").concat(a,"-").concat(t),c=(0,r.useMemo)(()=>{switch(t){case"empty":default:return"0%";
1case"half":return"50%";case"full":return"100%"}},[t]);return(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 44 44",fill:"none",style:{aspectRatio:"1 / 1"},className:s().RatingStarsStar,"aria-hidden":"true",children:[(0,n.jsxs)("defs",{children:[(0,n.jsxs)("linearGradient",{id:_,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0,n.jsx)("stop",{offset:"0%",stopColor:"#0476DF",stopOpacity:"1"}),(0,n.jsx)("stop",{offset:c,stopColor:"#0476DF",stopOpacity:"1"}),(0,n.jsx)("stop",{offset:c,stopColor:"#0476DF",stopOpacity:"0.3"}),(0,n.jsx)("stop",{offset:"100%",stopColor:"#0476DF",stopOpacity:"0.3"})]}),(0,n.jsx)("clipPath",{id:"clip-".concat(l),children:(0,n.jsx)("rect",{width:"44",height:"44",fill:"white"})})]}),(0,n.jsx)("g",{clipPath:"url(#clip-".concat(l,")"),children:(0,n.jsx)("path",{d:"M21.1288 1.54557C21.5114 0.86693 22.4886 0.86693 22.8712 1.54557L28.7582 11.9902C28.9009 12.2433 29.1466 12.4219 29.4315 12.4794L41.1841 14.8507C41.9477 15.0048 42.2497 15.9342 41.7225 16.5077L33.6083 25.3342C33.4116 25.5481 33.3177 25.8371 33.3511 26.1258L34.7276 38.0359C34.817 38.8098 34.0264 39.3842 33.318 39.06L22.4162 34.0705C22.1519 33.9495 21.8481 33.9495 21.5838 34.0705L10.682 39.06C9.97361 39.3842 9.18298 38.8098 9.27242 38.0359L10.6489 26.1258C10.6823 25.8371 10.5884 25.5481 10.3917 25.3342L2.27749 16.5077C1.75026 15.9342 2.05225 15.0048 2.81589 14.8507L14.5685 12.4794C14.8534 12.4219 15.0991 12.2433 15.2418 11.9902L21.1288 1.54557Z",fill:"url(#".concat(_,")")})})]})},u=r.memo(e=>{let{value:t,onChange:a,max:i=5,precision:l=.5,readonly:u=!1,size:h="M","aria-label":p,"data-testid":g,className:m="",testIdPrefix:C,...x}=e,b=(0,r.useId)(),[v,f]=(0,r.useState)(null),[y,S]=(0,r.useState)(-1),k=(0,r.useRef)([]);(0,r.useEffect)(()=>{if(y>=0&&k.current[y]){var e;null==(e=k.current[y])||e.focus()}},[y]);let w=(0,r.useMemo)(()=>Math.round(Math.max(0,Math.min(i,t))/l)*l,[t,i,l]),N=(0,r.useCallback)(e=>{let t=(null!=v?v:w)-e;return t<=0?"empty":t>=1?"full":.5===l&&t<=.5?"half":"full"},[v,w,l]),j=(0,r.useCallback)((e,t)=>{if(!u&&a)if(.5===l){let a=t.currentTarget.getBoundingClientRect();t.clientX-a.left<=a.width/2?f(e+.5):f(e+1)}else f(e+1)},[u,a,l]),I=(0,r.useCallback)(()=>{!u&&a&&f(null)},[u,a]),L=(0,r.useCallback)((e,t)=>{if((0,_.b)("reachGoal","rate_book_card_header_beta"),!u&&a)if(.5===l){let n=t.currentTarget.getBoundingClientRect(),r=t.clientX-n.left;a(r<=n.width/2?e+.5:e+1)}else a(e+1)},[u,a,l]),T=(0,r.useCallback)(e=>{if(u||!a)return;let{key:t}=e;switch(t){case"ArrowRight":case"ArrowDown":{e.preventDefault();let t=w+l;t>i&&(t=l),a(t),S(Math.max(0,Math.ceil(t)-1));break}case"ArrowLeft":case"ArrowUp":{e.preventDefault();let t=w-l;t<l&&(t=i),a(t),S(Math.max(0,Math.ceil(t)-1));break}case" ":{e.preventDefault();let t=y+1;t!==w&&a(t)}}},[u,a,i,w,y,l]),B=(0,r.useCallback)(e=>{let t=e+1,a=t<=w;return"".concat(t," ").concat(1===t?"звезда":"звезд").concat(a?" (выбрана)":"")},[w]),M=(0,r.useMemo)(()=>{let e=c[h];return Array.from({length:i},(t,r)=>{let i=N(r);return(0,n.jsx)("button",{ref:e=>{k.current[r]=e},type:"button",className:o()(s().RatingStarsStarButton,{[s().RatingStarsStarButton_readonly]:u}),disabled:u||!a,onClick:e=>L(r,e),onMouseEnter:e=>j(r,e),onMouseMove:e=>j(r,e),onFocus:()=>S(r),onKeyDown:T,"aria-label":B(r),tabIndex:u?-1:0,children:(0,n.jsx)(d,{fillState:i,index:r,sizePx:e,uniqueId:b})},r)})},[i,N,u,a,L,j,B,T,h,C,b]),R="XS"===h?o()(s().RatingStarsStarsContainer,s().RatingStarsStarsContainer_size_xs):s().RatingStarsStarsContainer;return(0,n.jsx)("div",{...x,className:o()(s().RatingStars,m),role:u?"img":"radiogroup","aria-label":p||"Рейтинг: ".concat(w," из ").concat(i," звезд"),onMouseLeave:I,tabIndex:u?0:-1,children:(0,n.jsx)("div",{className:R,children:M})})});u.displayName="RatingStars"},99578:(e,t,a)=>{"use strict";a.d(t,{m:()=>C});var n=a(10749),r=a(66985),i=a(66025),o=a.n(i),l=a(93606),s=a(15334),_=a(90568),c=a(69356),d=a(36825),u=a(65500),h=a.n(u);let p=(0,r.forwardRef)((e,t)=>{let{value:a,options:i,placeholder:l,disabled:u=!1,name:p,className:g,"aria-label":m,onCh
1ange:C,onBlur:x,"data-testid":b}=e,[v,f]=(0,r.useState)(!1),y=(0,r.useId)(),S=(0,r.useMemo)(()=>{var e,t;return a?null!=(t=null==(e=i.find(e=>String(e.value)===a))?void 0:e.label)?t:a:null},[i,a]),{refs:k,floatingStyles:w,context:N}=(0,s.we)({open:v,onOpenChange:e=>{v&&!e&&queueMicrotask(()=>{let e=k.reference.current;e&&x&&x({currentTarget:e,target:e})}),f(e)},placement:"bottom-start",strategy:"fixed",middleware:[(0,_.cY)(4),(0,_.BN)({padding:8}),(0,_.Ej)({padding:8,apply(e){var t;let{availableHeight:a,availableWidth:n,rects:r,elements:i}=e,o=Math.min(240,Math.max(a,0)),l=null==(t=r.reference)?void 0:t.width;Object.assign(i.floating.style,{...null!=l?{minWidth:"".concat(l,"px")}:{},maxWidth:"".concat(Math.max(n,0),"px"),width:"max-content",maxHeight:"".concat(o,"px"),overflowY:"auto",overflowX:"hidden"})}})],whileElementsMounted:c.ll}),j=(0,s.kp)(N),I=(0,s.s9)(N),{getReferenceProps:L,getFloatingProps:T}=(0,s.bv)([j,I]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{type:"button",ref:e=>{k.setReference(e),"function"==typeof t?t(e):t&&(t.current=e)},disabled:u,name:p,"aria-label":m,"aria-haspopup":"listbox","aria-expanded":v,"aria-controls":v?y:void 0,className:o()(h().NativeSelect,h().NativeSelect_triggerButton,g,{[h().NativeSelect_placeholder]:!u&&!a&&l}),onBlur:x,...L(),children:null!=S?S:l}),v&&(0,n.jsx)(s.XF,{children:(0,n.jsx)("ul",{id:y,ref:k.setFloating,role:"listbox","aria-label":m,style:w,className:h().NativeSelectDropdown,...T(),children:i.map(e=>{let t=String(e.value),r=t===a;return(0,n.jsx)("li",{role:"none",children:(0,n.jsxs)("button",{type:"button",role:"option","aria-selected":r,disabled:e.disabled,className:o()(h().NativeSelectDropdownOption,{[h().NativeSelectDropdownOption_selected]:r}),onClick:()=>{(e=>{null==C||C({target:{value:e,name:null!=p?p:""},currentTarget:{value:e,name:null!=p?p:""}})})(t),f(!1),(()=>{let e=k.reference.current;e&&x&&x({currentTarget:e,target:e})})()},children:[(0,n.jsx)("span",{className:h().NativeSelectDropdownOptionCheck,"aria-hidden":!0,children:r&&(0,n.jsx)(d.h,{className:h().NativeSelectDropdownOptionCheckIcon,name:"check",size:16})}),(0,n.jsx)("span",{className:h().NativeSelectDropdownOptionLabel,children:e.label})]})},t||"empty")})})})]})});p.displayName="NativeSelectDropdown";var g=a(5489),m=a.n(g);let C=(0,r.forwardRef)((e,t)=>{var a;let{label:r,subLabel:i,message:s,messageMode:_="error",error:c=!1,ariaInvalid:d,wrapperClassName:u,className:g,options:C,placeholder:x,children:b,name:v,disabled:f,dropdownPlacement:y,onChange:S,onBlur:k,value:w,defaultValue:N,"data-testid":j,...I}=e,L=c||d,T=String(null!=(a=null!=w?w:N)?a:""),B=""===T&&x,M="bottom"===y&&null!=C?(0,n.jsx)(p,{ref:t,name:v,value:T,options:C,placeholder:x,disabled:f,className:g,"aria-invalid":L?"true":"false","aria-label":I["aria-label"],onChange:S,onBlur:k?e=>{k(e)}:void 0}):(0,n.jsxs)("select",{ref:t,id:v,name:v,className:o()(h().NativeSelect,{[h().NativeSelect_placeholder]:!f&&B},g),"aria-invalid":L?"true":"false",disabled:f,value:w,defaultValue:N,onChange:S,onBlur:k,...I,children:[x&&(0,n.jsx)("option",{value:"",disabled:!0,children:x}),C?C.map(e=>(0,n.jsx)("option",{value:e.value,disabled:e.disabled,children:e.label},e.value)):b]});return(0,n.jsx)(l.L,{label:r,subLabel:i,name:v,wrapperClassName:u,message:s,messageMode:_,showCharacterCount:!1,styles:m(),children:M})});C.displayName="NativeSelect"}}]);

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.