/* >>> file start: js/front-bundled/dist/s2.js */
/*! For license information please see s2.js.LICENSE.txt */
(()=>{var e,t={74:(e,t,r)=>{"use strict";r.d(t,{_:()=>n});var n=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(Boolean).join(" ")}},115:e=>{var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var c,l,s,u;if(Array.isArray(e)){if((c=e.length)!=a.length)return!1;for(l=c;0!==l--;)if(!i(e[l],a[l]))return!1;return!0}if(r&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!i(l.value[1],a.get(l.value[0])))return!1;return!0}if(n&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((c=e.length)!=a.length)return!1;for(l=c;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof a.toString)return e.toString()===a.toString();if((c=(s=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=c;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,s[l]))return!1;if(t&&e instanceof Element)return!1;for(l=c;0!==l--;)if(("_owner"!==s[l]&&"__v"!==s[l]&&"__o"!==s[l]||!e.$$typeof)&&!i(e[s[l]],a[s[l]]))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return i(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},158:(e,t,r)=>{"use strict";r(6540)},230:(e,t,r)=>{"use strict";r.d(t,{d:()=>n});var n=r(9056).default.a.withConfig({displayName:"ButtonAction",componentId:"sc-sle5ki-0"})(["display:inline-flex;align-items:center;height:28px;padding-top:0;padding-bottom:0;white-space:nowrap;text-decoration:none;&:hover{font-family:'ProximaNova',Helvetica,sans-serif;font-size:14px;text-decoration:none;}"])},339:(e,t,r)=>{"use strict";r.d(t,{Y:()=>s,f:()=>l});var n=r(6540),o=r(5338),i=r(1206);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var l=i.F,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.targetNode,r=e.initProps,l=void 0===r?{}:r,s=l.targetUserData,u=l.customProps,f=void 0===u?{}:u;if(!t)throw new Error("SubscribeBtn2022:initOnNode:targetNode is not provided");if(!s)throw new Error("SubscribeBtn2022:initOnNode:targetUserData is not provided");t.innerHTML="";var p=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){var n,o,i;n=e,o=t,i=r[t],(o=function(e){var t=function(e){if("object"!==a(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===a(t)?t:String(t)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({targetUserData:s},f);(0,o.H)(t).render(n.createElement(i.F,p))};LJ.define("LJ.Components.SubscribeBtn2022"),LJ.Components.SubscribeBtn2022.initOnNode=s},373:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(6540),o=r(2231);const i=function(e){var t=e.children,r=e.title,i=e.description,a=e.withCloseBtn;return n.createElement(o.Y9,null,r&&n.createElement(o.hE,{$withCloseBtn:a},r),i&&n.createElement(o.VY,null,i),t)}},457:(e,t,r)=>{"use strict";r.d(t,{p:()=>o});var n=r(9056),o=n.default.input.withConfig({displayName:"Input",componentId:"sc-1li98b0-0"})(["height:28px;padding:0 12px;box-sizing:border-box;background-color:#FFFFFF;border:1px solid #D4DCE0;border-radius:4px;vertical-align:middle;font:inherit;font-size:14px;line-height:22px;color:#333333;transition:border-color .2s;&:hover{border-color:#BDC8CD;}&:active{border-color:#0996C5;}&:focus{outline:none;border-color:#00A3D9;}&:disabled{opacity:.5;cursor:not-allowed;}",""],(function(e){var t=e.$size;return{medium:(0,n.css)(["height:32px;font-size:14px;"]),large:(0,n.css)(["height:36px;font-size:16px;"])}[t]}))},489:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(){return Date.now().toString(36)+Math.random().toString(36).slice(2)}},540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},764:(e,t,r)=>{"use strict";r.d(t,{k:()=>n});var n=(0,r(9056).createGlobalStyle)(["body.","{overflow:hidden;}"],(function(e){return e.bodyClassName}))},921:(e,t,r)=>{"use strict";r.d(t,{A:()=>u,D:()=>i.D});var n=r(6540),o=r(961),i=r(3659);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){var n,o,i;n=e,o=t,i=r[t],(o=function(e){var t=function(e){if("object"!==a(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===a(t)?t:String(t)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const u=function(e){var t,r,a=e.anchorEl,c=e.anchorRect,u=e.popoverRef,f=e.containerRef,p=e.placement,d=e.margins,h=e.overflowFixParams,m=e.withArrow,g=e.positioningGetter,y=(t=(0,n.useState)({arrow:null,position:{x:-1e3,y:-1e3}}),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=y[0],b=y[1],w=(0,n.useRef)(null),x=(0,n.useCallback)((function(){var e;w.current&&cancelAnimationFrame(w.current);var t={anchorRect:c||(null==a?void 0:a.getBoundingClientRect()),objectRect:null===(e=u.current)||void 0===e?void 0:e.getBoundingClientRect()},r="function"==typeof g?g(t):(0,i.o)(l(l({},t),{},{container:null==f?void 0:f.current,placement:p,margins:d,overflowFixParams:h,withArrow:m}));w.current=requestAnimationFrame((function(){(0,o.flushSync)((function(){b((function(e){return e.position.x===r.position.x&&e.position.y===r.position.y?e:r})),w.current=null}))}))}),[a,c,u,f,p,d,h,m,g]);return(0,n.useEffect)((function(){return function(){w.current&&cancelAnimationFrame(w.current)}}),[]),[v,x]}},945:(e,t,r)=>{"use strict";function n(e,t){return Number.isInteger(e)&&Number.isInteger(t)?Math.floor(Math.random()*(t-e+1)+e):Math.random()*(t-e)+e}function o(e,t,r){return(1-r)*e+r*t}function i(e){return e[Math.floor(Math.random()*e.length)]}function a(e){return e?{height:e.offsetHeight,width:e.offsetWidth}:{height:0,width:0}}r.d(t,{Cc:()=>o,IQ:()=>i,QC:()=>c,YC:()=>a,yT:()=>n});const c=2*Math.PI},1016:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(6540),o=r(2968),i=r(6508);const a=function(e){var t=e.onClick;return n.createElement(i.n,{className:"svgicon flaticon flaticons-v2--cross","aria-label":"Close","aria-required":"true",onClick:t},n.createElement(o.A,{width:"16",height:"16",xlinkHref:"flaticons-v2--cross"}))}},1113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},1206:(e,t,r)=>{"use strict";r.d(t,{F:()=>d});var n=r(6540),o=r(4554),i=r(5194),a=r(2595),c=r(8936);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){var n,o,i;n=e,o=t,i=r[t],(o=function(e){var t=function(e){if("object"!==l(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===l(t)?t:String(t)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.targetUserData,r=void 0===t?{}:t,l=e.theme,s=void 0===l?"light":l,p=e.gluePopups,d=e.onSubscribe,h=void 0===d?function(){}:d,m=e.id,g=f((0,n.useReducer)(a.F,a.u),2),y=g[0],v=g[1],b=f((0,n.useState)(r),2),w=b[0],x=b[1],S=f((0,n.useState)({componentId:m||Math.random().toString(36).substr(2,9)}),1)[0],E=r.targetId,j=w.targetUsername,C=w.isInSubscriptionList,O=w.friendGroupsData,L=w.isCommunity,_=S.componentId,k=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.username,n=t.data;if(r===j)if(n.is_invite_sent&&void 0===n.is_friend)x(u(u({},w),{},{joinRequestPending:!0}));else{var o=u(u({},w),{},{isInFriendList:n.is_friend,isInSubscriptionList:n.is_subscriber,remoteIsCommunityOwner:"owner"===(null===(e=Site.journal)||void 0===e?void 0:e.community_relation),remoteIsCommunityMember:n.is_member,joinRequestPending:n.is_invite_sent&&n.is_friend,isFollowerOfRemote:!n.is_friend&&!n.is_subscriber&&(n.is_subscriberof||n.is_friendof)});L&&(o.isInSubscriptionList=n.is_friend),x(o)}},P=function(e){(null==e?void 0:e.message)&&LJ.Messages.error(e.message)};if((0,n.useEffect)((function(){return LJ.Event.on("relations.changed",k),function(){LJ.Event.off("relations.changed",k)}})),(0,c.Vw)({targetUserId:E,reducerState:y,dispatch:v}),!j)return console.warn("SubscribeBtn2022: not enough data for render"),null;var A=function(e){LJ.Track.YM.call({method:"reachGoal",argArr:e})},N={onDropdownShow:function(){v({type:"markDropdownAsShown"})}},I=(0,c.ql)({reducerState:y,dispatch:v,targetUserId:E,targetUsername:j}),M=u(u(u({},N),w),{},{miscData:S,requestRelationActionCb:function(e){if("subscribe"===e){var t={target:j,is_subscriber:1,show_recommendations:!0};L&&delete t.is_subscriber,LJ.Api.callP("relations.addfriend",t).then((function(t){LJ.Event.trigger("relations.changed",{username:j,id:E,data:t,source:"SubscribeBtn2022",sourceCompId:_,action:e}),h()})).catch(P)}if("unsubscribe"===e){var r={target:j,is_subscriber:1};L&&delete r.is_subscriber,LJ.Api.call("relations.removefriend",r).then((function(t){LJ.Event.trigger("relations.changed",{username:j,id:E,data:t,source:"SubscribeBtn2022",sourceCompId:_,action:e})})).fail(P)}if("addToFriends"===e){var n={target:j,show_recommendations:!0};LJ.Api.callP("relations.addfriend",n).then((function(t){LJ.Event.trigger("relations.changed",{username:j,id:E,data:t,source:"SubscribeBtn2022",action:e}),A(["COMPLEX_SUBSCRIBE"])})).catch(P)}"removeFromFriends"===e&&LJ.Api.call("relations.removefriend",{target:j}).then((function(t){LJ.Event.trigger("relations.changed",{username:j,id:E,data:t,source:"SubscribeBtn2022",action:e}),A(["COMPLEX_UNSUBSCRIBE"])})).fail(P),"leaveComm"===e&&LJ.Api.call("relations.leave",{target:j}).then((function(t){LJ.Event.trigger("relations.changed",{username:j,id:E,data:t,source:"SubscribeBtn2022",sourceCompId:_,action:e})})).fail(P),"joinComm"===e&&LJ.Api.callP("relations.join",{target:j}).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return C?e:LJ.Api.call("relations.join",{target:j}).then((function(t){return u(u({},e),t)}))})).then((function(t){t.is_invite_sent&&x(u(u({},w),{},{isJoinRequestSent:!0})),A(["COMMUNITY_JOIN"]),LJ.Event.trigger("relations.changed",{username:j,id:E,data:t,source:"SubscribeBtn2022",action:e})})).catch(P)},requestGroupsDataCb:function(){LJ.Api.call("groups.list",{target:j}).then((function(e){x(u(u({},w),{},{friendGroupsData:e.groups}))}))},toggleFriendInGroupCb:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,r=e.shouldBeInGroup,n=O.map((function(e){return e.id===t?u(u({},e),{},{selected:r}):e})),o=n.map((function(e){return e.selected?e.id:null})).filter((function(e){return e}));LJ.Api.call("groups.update_users",{users:[{username:j,groups:o}]},void 0,{silent:!1}).then((function(){x(u(u({},w),{},{friendGroupsData:n}))})).fail((function(e){P(e)}))},gluePopups:p,userNoteProps:I});return n.createElement(o.N,{value:s},n.createElement(i.m,M))}},1537:()=>{function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}LJ.Util.DOM.initPromise.then((function(){!function(){var t,r;if(null!==(t=Site.journal)&&void 0!==t&&t.reposts_disabled){var n=[".js-lj-share",".controls-entryunit__item--share"].join(", ");(r=document.querySelectorAll(n),function(t){if(Array.isArray(t))return e(t)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(t,r){if(t){if("string"==typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).forEach((function(e){e.remove()}))}}()}))},1601:e=>{"use strict";e.exports=function(e){return e[1]}},1834:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>u});var n=r(6540),o=r(2600),i=r(8680),a=r(7723),c=r(4582);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const u=n.forwardRef((function(e,t){var r=e.className,s=e.children,u=e.title,f=e.description,p=e.extraHeaderContent,d=e.footer,h=e.withCloseBtn,m=void 0===h||h,g=e.withOverlay,y=void 0===g||g,v=e.onClose,b=void 0===v?function(){}:v,w=l((0,n.useState)(!1),2),x=w[0],S=w[1],E=l((0,n.useState)(null),2),j=E[0],C=E[1],O=(0,n.useRef)(null),L=(0,n.useRef)(null);return(0,n.useImperativeHandle)(t,(function(){return{elements:{modal:O.current,body:L.current}}})),(0,n.useEffect)((function(){var e=function(e){"Escape"===e.key&&(e.preventDefault(),b({reason:"esc-keydown"}))};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[b]),(0,n.useLayoutEffect)((function(){var e=new ResizeObserver((function(){L.current&&d&&(L.current.clientHeight<L.current.scrollHeight?S(!0):S(!1))}));return e.observe(L.current),function(){e.unobserve(L.current)}}),[L,d]),n.createElement(n.Fragment,null,n.createElement(i.A,null),n.createElement(o.Z,null,n.createElement(c.FQ,null,n.createElement(c.hJ,{show:y,"data-react-overlay":!0,onClick:function(){b({reason:"overlay-click"})}}),n.createElement(c.aF,{className:r,ref:O},n.createElement(c.az,{className:"rfb-components-Modal-box"},n.createElement(a.Y,{title:u,description:f,withCloseBtn:m},p,m&&n.createElement(a.J,{onClick:function(){b({reason:"close-btn-click"})}})),n.createElement(c.nB,{className:"m-scrollbar rfb-components-Modal-body",bodyScrollTop:j,isBodyScrollable:x,ref:L,onScroll:function(e){C(e.target.scrollTop)}},s),d&&n.createElement(c.wi,null,d))))))}))},1987:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(6540);const o=function(e,t){var r=t.anchorEl,o=t.popoverRef,i=t.closeOnScroll,a=t.recalcPositioning,c=t.onClose,l=(e||{}).window;(0,n.useLayoutEffect)((function(){if(!l)return function(){};var e=function(e){!o.current||o.current.contains(e.target)||r&&!e.target.contains(r)||(i?c():a())},t={capture:!0,passive:!0};return window.addEventListener("scroll",e,t),function(){window.removeEventListener("scroll",e,t)}}),[l,r,o,i,a,c])}},2068:(e,t,r)=>{"use strict";r.d(t,{Mn:()=>o,c9:()=>a,jZ:()=>i});var n=r(9056),o=n.default.a.withConfig({displayName:"Userhead",componentId:"sc-7u2ddd-0"})(["margin:0 !important;padding:0 !important;border:0 !important;"]),i=n.default.a.withConfig({displayName:"Username",componentId:"sc-7u2ddd-1"})(["text-decoration:none;color:#00A3D9;"]),a=n.default.span.withConfig({displayName:"LjUser",componentId:"sc-7u2ddd-2"})(["position:static !important;display:inline !important;width:auto !important;height:auto !important;margin:0 !important;padding:0 !important;border:0 !important;background:transparent !important;white-space:nowrap !important;font-style:normal !important;","{margin-right:4px !important;}"],o)},2231:(e,t,r)=>{"use strict";r.d(t,{VY:()=>a,Y9:()=>c,hE:()=>i});var n=r(9056),o=r(3581),i=n.default.h2.withConfig({displayName:"Title",componentId:"sc-kjq3xj-0"})(['margin:0 !important;padding:0 !important;font:bold 24px/1.2 "ProximaNova",Helvetica,sans-serif !important;color:#000 !important;',""],(function(e){return e.$withCloseBtn&&(0,n.css)(["padding-right:30px !important;"])})),a=n.default.p.withConfig({displayName:"Description",componentId:"sc-kjq3xj-1"})(['margin:8px 0 0 !important;padding:0 !important;font:400 16px/1.2 "ProximaNova",Helvetica,sans-serif !important;color:#333333 !important;']),c=n.default.header.withConfig({displayName:"Header",componentId:"sc-kjq3xj-2"})(["position:relative;flex-shrink:0;margin-bottom:0;padding:16px 24px;@media ","{padding:16px;}"],o.j.maxMobileL)},2317:(e,t,r)=>{"use strict";r.d(t,{k:()=>l});var n=r(6540),o=r(2600),i=r(74),a=r(5439),c=function(){};function l(e){var t=e.targetUsername,r=e.isInSubscriptionList,l=void 0!==r&&r,s=e.isInFriendList,u=void 0!==s&&s,f=e.remoteIsCommunityOwner,p=void 0!==f&&f,d=e.isCommunity,h=void 0!==d&&d,m=e.isSyndicated,g=void 0!==m&&m,y=e.friendGroupsData,v=e.requestRelationActionCb,b=e.requestPopupClose,w=void 0===b?c:b,x=e.toggleFriendInGroupCb,S=e.remoteIsCommunityMember,E=e.joinRequestPending,j=e.isBannedInCommunity,C=e.isClosedCommunity,O=e.targetNode,L=e.isGlued,_=e.savedUserNote,k=void 0===_?"":_,P=e.onUserNoteBtnClick,A=void 0===P?function(){}:P,N=LJ.Support.isMobile(),I=(0,n.useRef)(null);(0,n.useEffect)((function(){function e(e){null!=I&&I.current&&!I.current.contains(e.target)&&w()}return N&&(document.body.style.overflow="hidden",setTimeout((function(){document.addEventListener("click",e)}))),function(){N&&(document.removeEventListener("click",e),document.querySelectorAll("[data-react-overlay]").length||(document.body.style.overflow=""))}}),[]);var M,D=[],T=n.createElement(a.Cl,{onClick:function(){w(),v("addToFriends")},key:"addToFriends",className:"basepopup-selector__label"},n.createElement("div",{className:"basepopup-selector__text"},LJ.ml("common.add_to_friends"))),F=n.createElement(a.Cl,{onClick:function(){w(),v("removeFromFriends")},key:"removeFromFriends",className:"basepopup-selector__label"},n.createElement("div",{className:"basepopup-selector__text"},LJ.ml("common.remove_from_friends"))),R=n.createElement(a.Cl,{remoteIsPaid:Site.remote.is_paid,isPaidItem:!0,onClick:function(){Site.remote.is_paid?(A(),w()):window.open("".concat(Site.siteroot,"/shop/profaccount.bml?ila_campaign=inactive_prof_sign&ila_location=reminder"),"_blank")},key:"changeUserNote",className:"basepopup-selector__label"},n.createElement("div",{className:"basepopup-selector__text"},!Site.remote.is_paid&&n.createElement("svg",{width:"22",height:"16"},n.createElement("use",{xlinkHref:"#flaticon--pro-outline-gradient"})),k?LJ.ml("subscribe_button_2022.edit_user_note"):LJ.ml("subscribe_button_2022.add_user_note"))),U=n.createElement(a.Cl,{key:"editFriend",className:"basepopup-selector__label"},n.createElement(a._3,{href:"".concat(Site.siteroot,"/friends/add.bml?user=").concat(t),target:"_blank",className:"basepopup-selector__text"},LJ.ml("subscribe_button_2022.subscribe_settings"))),J=n.createElement(a.Cl,{onClick:function(){w(),v("subscribe")},key:"subscribe",className:"basepopup-selector__label"},n.createElement("div",{className:"basepopup-selector__text"},LJ.ml("common.subscribe"))),z=n.createElement(a.Cl,{onClick:function(){w(),v(g?"removeFromFriends":"unsubscribe")},key:"unsubscribe",className:"basepopup-selector__label"},n.createElement("div",{className:"basepopup-selector__text"},LJ.ml("common.unsubscribe"))),B=n.createElement(a.Cl,{onClick:function(){w(),v("joinComm")},key:"joinComm",className:"basepopup-selector__label"},n.createElement("div",{className:"basepopup-selector__text"},LJ.ml("subscribe_button_2022.join_community"))),q=n.createElement(a.Cl,{onClick:function(){w(),v("leaveComm")},key:"leaveComm",className:"basepopup-selector__label"},n.createElement("div",{className:"basepopup-selector__text"},LJ.ml("subscribe_button_2022.leave_community"))),G=n.createElement(a.Cl,{onClick:function(){w()},className:"lightbutton"},LJ.ml("common.close")),H=n.createElement("span",{key:"joinRequestPending",className:"basepopup-selector__label"},n.createElement("div",{className:"basepopup-selector__text"},LJ.ml("subscribe_button_2022.join_request_is_pending"))),$=[];return y.forEach((function(e){$.push(n.createElement("li",{className:"basepopup__item",key:e.id},n.createElement("label",{className:"lightcheckbox"},n.createElement("input",{className:"lightcheckbox__input",type:"checkbox",value:e.id,checked:!!e.selected,onChange:function(){x({id:e.id,shouldBeInGroup:!e.selected})}}),n.createElement("span",{className:"lightcheckbox__text"},e.name))))})),!h&&!g&&(l&&!u?(D.push(T),D.push(R),D.push(U),D.push(z)):u&&(D.push(F),D.push(R),D.push(U))),g&&(u&&D.push(z),D.push(R),D.push(U)),h&&(!S&&E&&D.push(H),l?(D.push(R),D.push(U),D.push(z)):D.push(J),S&&!p?D.push(q):E||j||C||p||D.push(B)),h&&!l||(M=n.createElement("div",{className:"basepopup__group"},n.createElement("div",{className:"basepopup__content"},n.createElement("div",{className:"basepopup__title"},LJ.ml("common.add_to_group")),n.createElement("ul",{className:"basepopup__list m-scrollbar"},$)))),N?n.createElement(o.Z,null,n.createElement("div",{className:"new-modal-backdrop","data-react-overlay":!0}),n.createElement("div",{className:"new-modal new-modal--popup",style:{display:"block"}},n.createElement("div",{className:"new-modal-dialog new-modal-dialog--centered"},n.createElement("div",{className:"new-modal-content js--subscribe-btn-dropdown",ref:I},n.createElement("div",{className:"basepopup__group"},n.createElement("div",{className:"basepopup__content"},n.createElement("div",{className:"basepopup-selector"},D))),M,n.createElement("div",{className:"basepopup__group",style:{textAlign:"right"}},G))))):n.createElement(a.AM,{className:(0,i._)([L&&"basepopup--glued"]),anchorEl:O,margins:{y:L?0:5},overflowFixParams:{safeEdgePad:5,canUseAltAxis:!1},closeOnScroll:!0,onClose:w},n.createElement("div",{className:"basepopup__group"},n.createElement("div",{className:"basepopup__content"},n.createElement("div",{className:"basepopup-selector"},D))),M)}},2464:(e,t,r)=>{"use strict";r.d(t,{c:()=>u});var n=r(6540),o=r(74),i=r(2068);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){var n,o,i;n=e,o=t,i=r[t],(o=function(e){var t=function(e){if("object"!==a(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===a(t)?t:String(t)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u=function(e){var t,r=e.className,a=e.linksTarget,l=void 0===a?"_self":a,u=e.noCtxPopup,f=void 0===u||u,p=e.userData,d=p.username,h=p.userheadUrl,m=p.displayName,g=p.displayUsername,y=p.profileUrl,v=p.journalUrl,b=p.journalType,w=p.isInvisible,x=s({as:y?"a":"span",className:"i-ljuser-profile"},y?{href:y,target:l}:{}),S=s({as:v?"a":"span",className:"i-ljuser-username"},v?{href:v,target:l,title:g}:{});return n.createElement(i.c9,{className:(0,o._)(["ljuser","i-ljuser",b&&"i-ljuser-type-".concat(b),w&&"i-ljuser-deleted"].concat((t=f?["i-ljuser-nopopup","noctxpopup"]:[],function(e){if(Array.isArray(e))return c(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[r])),"data-ljuser":d},h&&n.createElement(i.Mn,x,n.createElement("img",{className:"i-ljuser-userhead",src:h})),n.createElement(i.jZ,S,m||g))}},2595:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){var o,i,a;o=e,i=t,a=r[t],(i=function(e){var t=function(e){if("object"!==n(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===n(t)?t:String(t)}(i))in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}r.d(t,{F:()=>c,u:()=>a});var a={hasShownDropdown:!1,hasLoadedUserNote:!1,savedUserNote:null,isUserNoteModalShown:!1,userNameDisplayData:{}},c=function(e,t){switch(t.type){case"markDropdownAsShown":return i(i({},e),{},{hasShownDropdown:!0});case"markUserNoteAsLoaded":return i(i({},e),{},{hasLoadedUserNote:!0});case"showUserNoteModal":return i(i({},e),{},{isUserNoteModalShown:!0});case"closeUserNoteModal":return i(i({},e),{},{isUserNoteModalShown:!1});case"setSavedUserNote":return i(i({},e),{},{savedUserNote:t.value});case"setUserNameDisplayData":return i(i({},e),{},{userNameDisplayData:t.value});default:return console.warn('SubscribeBtn2022: Got unknown action type "'.concat(t.type,'"')),e}}},2600:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o}),r(6540);var n=r(961),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.children,r=e.mountRef,o=(void 0===r?{}:r).current||document.body;return(0,n.createPortal)(t,o)}},2799:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case f:case i:case c:case a:case d:return e;default:switch(e=e&&e.$$typeof){case s:case p:case g:case m:case l:return e;default:return t}}case o:return t}}}function S(e){return x(e)===f}t.AsyncMode=u,t.ConcurrentMode=f,t.ContextConsumer=s,t.ContextProvider=l,t.Element=n,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=c,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return S(e)||x(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return x(e)===s},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===p},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===c},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===c||e===a||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===s||e.$$typeof===p||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=x},2833:e=>{e.exports=function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var s=i[l];if(!c(s))return!1;var u=e[s],f=t[s];if(!1===(o=r?r.call(n,u,f,s):void 0)||void 0===o&&u!==f)return!1}return!0}},2968:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(6540),o=["className","xlinkHref"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const a=(0,n.forwardRef)((function(e,t){var r=e.className,a=void 0===r?"":r,c=e.xlinkHref,l=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,o);return n.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",className:"svgicon ".concat(c," ").concat(a),ref:t},l),n.createElement("use",{xlinkHref:"#".concat(c)}))}))},3451:(e,t,r)=>{"use strict";r.d(t,{$:()=>o,a:()=>i});var n=r(9056),o=n.default.button.withConfig({displayName:"Button",componentId:"sc-k30yql-0"})(["position:relative;display:inline-block;padding:6px 16px;box-sizing:border-box;border-radius:4px;vertical-align:middle;text-align:center;font:inherit;font-size:14px;line-height:1;white-space:nowrap;cursor:pointer;transition:border-color .2s,background-color .2s,color .2s;"," "," "," "," "," "," "," "," ",""],(function(e){return e.primary?(0,n.css)(["color:#FFFFFF;background-color:#00A3D9;border:1px solid #00A3D9;&:visited{color:#FFFFFF;}&:hover,&:focus{border-color:#00C0FF;background-color:#00C0FF;color:#FFFFFF;}&:active{border-color:#0996C5;background-color:#0996C5;color:#FFFFFF;}"]):(0,n.css)(["color:#333333;background-color:#FFFFFF;border:1px solid #D4DCE0;&:visited{color:#333333;}&:hover,&:focus{border-color:#00A3D9;background-color:#FFFFFF;}&:active{border-color:#D4DCE0;background-color:#F9FAFA;}"])}),(function(e){return e.isLoading&&(0,n.css)(["color:transparent;&:hover,&:focus,&:active{color:transparent;}"])}),(function(e){var t=e.disabled,r=e.primary;return t&&(0,n.css)(["opacity:.5;cursor:not-allowed;&:hover,&:focus{background-color:",";border-color:",";}"],r?"#00A3D9":"#FFFFFF",r?"#00A3D9":"#D4DCE0")}),(function(e){return e.noBorder&&(0,n.css)(["border:1px solid transparent;color:#00A3D9;background-color:transparent;&:hover,&:focus{border-color:#00A3D9;}&:active{border-color:#0996C5;color:#0996C5;}"])}),(function(e){return e.hasOutline&&(0,n.css)(["border:1px solid #D4DCE0;color:#333;background-color:transparent;&:hover{border-color:#BDC8CD;background-color:transparent;}&:focus{border-color:#00A3D9;background-color:transparent;}&:active{border-color:#F9FAFA;background-color:transparent;}"])}),(function(e){return e.linkType&&(0,n.css)(["padding:0;border:0;background-color:transparent;color:#0099CC;&:hover,&:active,&:focus{color:#0086B3;background-color:transparent;}"])}),(function(e){var t=e.$size;return{medium:(0,n.css)(["padding:8px 16px;"])}[t]}),(function(e){return e.text&&(0,n.css)(["display:flex;align-items:center;justify-content:center;min-height:24px;padding:4px 8px;border:0;border-radius:4px;font-weight:600;letter-spacing:0.24px;color:#2EADDF;text-align:left;background-color:transparent;transition:background-color 0.15s linear;cursor:pointer;&:hover{background-color:rgba(0,0,0,0.08);}&:active{background-color:rgba(0,0,0,0.12);}&:focus{outline:none;}&:focus-visible{outline:2px dashed #2EADDF;outline-offset:2px;}&:disabled{color:rgba(203,218,225,1);pointer-events:none;}"])}),(function(e){return e.sizeL&&(0,n.css)(["min-height:32px;padding:8px 16px;"])})),i=n.default.div.withConfig({displayName:"Loader",componentId:"sc-k30yql-1"})(["position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:#FFFFFF;svg{display:block;animation:svgrotate .57s linear infinite;}@keyframes svgrotate{100%{transform:rotate(360deg);}}"])},3492:(e,t,r)=>{"use strict";r.d(t,{A:()=>c,s:()=>i});var n=r(115),o=r(945);const i={color:"#dee4fd",radius:[.5,3],speed:[1,3],wind:[-.5,2],changeFrequency:200,rotationSpeed:[-1,1],opacity:[1,1]};class a{static createSnowflakes(e,t,r){if(!e)return[];const n=[];for(let o=0;o<t;o++)n.push(new a(e,r));return n}constructor(e,t={}){this.updateConfig(t);const{radius:r,wind:n,speed:i,rotationSpeed:a,opacity:c}=this.config;this.params={x:(0,o.yT)(0,e.offsetWidth),y:(0,o.yT)(-e.offsetHeight,0),rotation:(0,o.yT)(0,360),radius:(0,o.yT)(...r),speed:(0,o.yT)(...i),wind:(0,o.yT)(...n),rotationSpeed:(0,o.yT)(...a),nextSpeed:(0,o.yT)(...i),nextWind:(0,o.yT)(...n),nextRotationSpeed:(0,o.yT)(...a),opacity:(0,o.yT)(...c),hasNextOpacity:!1},this.framesSinceLastUpdate=0}selectImage(){this.config.images&&this.config.images.length>0?this.image=(0,o.IQ)(this.config.images):this.image=void 0}updateConfig(e){const t=this.config;this.config={...i,...e},this.config.changeFrequency=(0,o.yT)(this.config.changeFrequency,1.5*this.config.changeFrequency),this.params&&!n(this.config.radius,null==t?void 0:t.radius)&&(this.params.radius=(0,o.yT)(...this.config.radius)),n(this.config.images,null==t?void 0:t.images)||this.selectImage(),(null==t?void 0:t.opacity)&&!n(this.config.opacity,null==t?void 0:t.opacity)&&(this.params.hasNextOpacity=!0)}updateTargetParams(){this.params.nextSpeed=(0,o.yT)(...this.config.speed),this.params.nextWind=(0,o.yT)(...this.config.wind),this.image&&(this.params.nextRotationSpeed=(0,o.yT)(...this.config.rotationSpeed))}update(e,t,r=1){const{x:n,y:i,rotation:a,rotationSpeed:c,nextRotationSpeed:l,wind:s,speed:u,nextWind:f,nextSpeed:p,radius:d}=this.params;this.params.x=(n+s*r)%(e+2*d),this.params.x>e+d&&(this.params.x=-d),this.params.y=(i+u*r)%(t+2*d),this.params.y>t+d&&(this.params.hasNextOpacity&&(this.params.opacity=(0,o.yT)(...this.config.opacity),this.params.hasNextOpacity=!1),this.params.y=-d),this.image&&(this.params.rotation=(a+c)%360),this.params.speed=(0,o.Cc)(u,p,.01),this.params.wind=(0,o.Cc)(s,f,.01),this.params.rotationSpeed=(0,o.Cc)(c,l,.01),this.framesSinceLastUpdate++>this.config.changeFrequency&&(this.updateTargetParams(),this.framesSinceLastUpdate=0)}getImageOffscreenCanvas(e,t){var r,n;if(e instanceof HTMLImageElement&&e.loading)return e;let o=a.offscreenCanvases.get(e);if(o||(o={},a.offscreenCanvases.set(e,o)),!(t in o)){const n=document.createElement("canvas");n.width=t,n.height=t,null===(r=n.getContext("2d"))||void 0===r||r.drawImage(e,0,0,t,t),o[t]=n}return null!==(n=o[t])&&void 0!==n?n:e}drawCircle(e){e.moveTo(this.params.x,this.params.y),e.arc(this.params.x,this.params.y,this.params.radius,0,o.QC)}drawImage(e){const{x:t,y:r,rotation:n,radius:o}=this.params,i=n*Math.PI/180,a=Math.cos(i),c=Math.sin(i);1!==this.params.opacity&&(e.save(),e.globalAlpha=this.params.opacity),e.setTransform(a,c,-c,a,t,r);const l=this.getImageOffscreenCanvas(this.image,o);e.drawImage(l,-o/2,-o/2,o,o),1!==this.params.opacity&&e.restore()}}a.offscreenCanvases=new WeakMap;const c=a},3581:(e,t,r)=>{"use strict";r.d(t,{j:()=>n});var n={maxMobileS:"(max-width: ".concat(320,"px)"),maxMobileM:"(max-width: ".concat(360,"px)"),maxMobileL:"(max-width: ".concat(576,"px)"),maxTabletS:"(max-width: ".concat(768,"px)"),maxTabletM:"(max-width: ".concat(969.9,"px)"),maxLaptopS:"(max-width: ".concat(1024,"px)"),maxLaptopM:"(max-width: ".concat(1440,"px)"),maxDesktopS:"(max-width: ".concat(1920,"px)")}},3659:(e,t,r)=>{"use strict";r.d(t,{D:()=>o.DD,o:()=>n.A});var n=r(3988),o=r(8228)},3768:(e,t,r)=>{"use strict";r.d(t,{D0:()=>c,KB:()=>u,VY:()=>a,wi:()=>s,yY:()=>l});var n=r(9056),o=r(8081),i=r(6951),a=n.default.p.withConfig({displayName:"Description",componentId:"sc-i2y7sb-0"})(["margin:0 0 12px 0;"]),c=(0,n.default)(i.A).withConfig({displayName:"Field",componentId:"sc-i2y7sb-1"})(["width:100%;text-overflow:ellipsis;"]),l=(0,n.default)(o.A).withConfig({displayName:"SaveButton",componentId:"sc-i2y7sb-2"})(["",""],(function(e){return e.isLoading&&(0,n.css)(["& span{opacity:0;}"])})),s=n.default.div.withConfig({displayName:"Footer",componentId:"sc-i2y7sb-3"})(["display:flex;justify-content:space-between;align-items:center;"]),u=n.default.div.withConfig({displayName:"ButtonsWrap",componentId:"sc-i2y7sb-4"})(["display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-left:auto;"])},3988:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(8228),o=r(5191);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){var n,o,a;n=e,o=t,a=r[t],(o=function(e){var t=function(e){if("object"!==i(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}(o))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const s=function(e){var t=e.anchorRect,r=e.objectRect,i=e.container,c=e.placement,s=void 0===c?n.NT.placement:c,u=e.margins,f=void 0===u?n.NT.margins:u,p=e.overflowFixParams,d=e.withArrow,h=(0,o.hZ)(s),m={placement:s,position:n.NT.position};if(!h||!t||!r)return m;var g,y=l(l({},n.NT.overflowFixParams),p||{}),v=y.enabled,b=y.safeEdgePad,w=y.canUseAltEdge,x=y.canUseAltAxis,S=y.excludePlacements,E=function(e){var o=LJ.Util.Positioning.RectNearRect.calculateCoords({anchorRect:t,objectRect:r,placement:e,margins:f}),a=o.x,c=o.y;if("number"!=typeof a||"number"!=typeof c||Number.isNaN(a)||Number.isNaN(c))return{placement:e,position:n.NT.position};var l,s,u,p,d={x:a,y:c},h=(l=d.y-b<0,s=d.x+r.width+b>window.innerWidth,u=d.y+r.height+b>window.innerHeight,{x:(p=d.x-b<0)||s,y:l||u,top:l,right:s,bottom:u,left:p});if(i){var m=i.getBoundingClientRect();d.x=d.x+i.scrollLeft-m.x,d.y=d.y+i.scrollTop-m.y}else d.x+=document.scrollingElement.scrollLeft,d.y+=document.scrollingElement.scrollTop;return d.x=Math.round(d.x),d.y=Math.round(d.y),{placement:e,position:d,windowOverflow:h,hasWindowOverflow:h.x||h.y}},j=E(s);if(v&&j.hasWindowOverflow){var C,O,L=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return c=e.done,e},e:function(e){l=!0,i=e},f:function(){try{c||null==r.return||r.return()}finally{if(l)throw i}}}}((0,o.nd)(h,{canUseAltAxis:x,canUseAltEdge:w,excludePlacements:S}).map((function(e){return e.placement})));try{for(L.s();!(O=L.n()).done;){var _=E(O.value);if(!_.hasWindowOverflow){C=_;break}var k=j.windowOverflow.x&&!_.windowOverflow.x,P=j.windowOverflow.y&&!_.windowOverflow.y;C||!k&&!P||(C=_)}}catch(e){L.e(e)}finally{L.f()}C&&(j=C),j.windowOverflow.left&&(j.position.x=b)}return m={placement:j.placement,position:j.position},d&&(m.arrow=null===(g=(0,o.hZ)(m.placement))||void 0===g?void 0:g.arrow),m}},4044:(e,t,r)=>{"use strict";r.d(t,{DP:()=>i.D,Wr:()=>n.W,ZC:()=>o.Z});var n=r(5153),o=r(5998),i=(r(7374),r(4054));r(9472),r(158),r(7695)},4054:(e,t,r)=>{"use strict";r.d(t,{D:()=>i});var n=r(6540),o=r(4554),i=function(){return(0,n.useContext)(o.D)}},4146:(e,t,r)=>{"use strict";var n=r(4363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function l(e){return n.isMemo(e)?a:c[e.$$typeof]||o}c[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[n.Memo]=a;var s=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=d(r);o&&o!==h&&e(t,o,n)}var a=u(r);f&&(a=a.concat(f(r)));for(var c=l(t),m=l(r),g=0;g<a.length;++g){var y=a[g];if(!(i[y]||n&&n[y]||m&&m[y]||c&&c[y])){var v=p(r,y);try{s(t,y,v)}catch(e){}}}}return t}},4178:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(6540),o=r(4044);const i=function(e,t){var r=t.anchorEl,i=t.anchorRect,a=t.popoverRef,c=t.recalcPositioning,l=e||{},s=l.anchor,u=l.popover,f=l.window,p=(0,n.useRef)({isFirstRun:!0}),d=(0,o.ZC)(i);(0,n.useLayoutEffect)((function(){var e=new ResizeObserver((function(){p.current.isFirstRun?p.current.isFirstRun=!1:c()}));return s&&r&&e.observe(r),u&&e.observe(a.current),function(){e.disconnect()}}),[s,u,e,a,c,r,i]),(0,n.useLayoutEffect)((function(){return f?(window.addEventListener("resize",c),function(){window.removeEventListener("resize",c)}):function(){}}),[f,c]),(0,n.useLayoutEffect)((function(){s&&i&&d&&(i.width!==d.width||i.height!==d.height||i.x!==d.x||i.y!==d.y)&&c()}),[s,i,d,c])}},4363:(e,t,r)=>{"use strict";e.exports=r(2799)},4536:()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(){"use strict";r=function(){return n};var t,n={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",u=c.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(t){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),c=new N(n||[]);return a(i,"_invoke",{value:_(e,r,c)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}n.wrap=p;var h="suspendedStart",m="suspendedYield",g="executing",y="completed",v={};function b(){}function w(){}function x(){}var S={};f(S,l,(function(){return this}));var E=Object.getPrototypeOf,j=E&&E(E(I([])));j&&j!==o&&i.call(j,l)&&(S=j);var C=x.prototype=b.prototype=Object.create(S);function O(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function L(t,r){function n(o,a,c,l){var s=d(t[o],t,a);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==e(f)&&i.call(f,"__await")?r.resolve(f.__await).then((function(e){n("next",e,c,l)}),(function(e){n("throw",e,c,l)})):r.resolve(f).then((function(e){u.value=e,c(u)}),(function(e){return n("throw",e,c,l)}))}l(s.arg)}var o;a(this,"_invoke",{value:function(e,t){function i(){return new r((function(r,o){n(e,t,r,o)}))}return o=o?o.then(i,i):i()}})}function _(e,r,n){var o=h;return function(i,a){if(o===g)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=k(c,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var s=d(e,r,n);if("normal"===s.type){if(o=n.done?y:m,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=d(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function I(r){if(r||""===r){var n=r[l];if(n)return n.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,a=function e(){for(;++o<r.length;)if(i.call(r,o))return e.value=r[o],e.done=!1,e;return e.value=t,e.done=!0,e};return a.next=a}}throw new TypeError(e(r)+" is not iterable")}return w.prototype=x,a(C,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,u,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,f(e,u,"GeneratorFunction")),e.prototype=Object.create(C),e},n.awrap=function(e){return{__await:e}},O(L.prototype),f(L.prototype,s,(function(){return this})),n.AsyncIterator=L,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new L(p(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(C),f(C,u,"Generator"),f(C,l,(function(){return this})),f(C,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},n.values=I,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},n}function n(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function c(e){n(a,o,i,c,l,"next",e)}function l(e){n(a,o,i,c,l,"throw",e)}c(void 0)}))}}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(t,r,n){return(r=function(t){var r=function(t){if("object"!==e(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===e(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function l(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}LJ.define("LJ.Misc.NotifSubs");var u=!1,f={newEntry:"JournalNewEntry"},p={notifCenter:"NotificationCentre",email:"Email"},d=Object.fromEntries(Object.entries(p).map((function(e){var t,r,n=(r=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,r)||l(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=n[0];return[n[1],o]}))),h={},m=function(e,t,r){var n,o=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).source,i=null===(n=h[e])||void 0===n?void 0:n[t];JSON.stringify(i)===JSON.stringify(r)||(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=a(a({},h[e]),t);h[e]=r}(e,c({},t,r)),LJ.Event.trigger("NotifSubs/".concat(e,"/").concat(t,"/changed"),{value:r,source:o}))},g=function(e,t){var r=h[e]&&a({},h[e]);return t?(null==r?void 0:r[t])||[]:r},y=function(){var e=o(r().mark((function e(t){var n,o,i,a,c,l;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.event,o=t.eventType,i=t.method,a=t.username,c={event:f[n],target_journal:a,method:p[i]},e.next=4,LJ.Api.callP("subscriptions.".concat(o),c);case 4:return l=e.sent,e.abrupt("return",l);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();LJ.Misc.NotifSubs.init=function(){!u&&Site.remote&&(LJ.Misc.NotifSubs.getUserSubs=g,LJ.Misc.NotifSubs.fetchUserSubs=function(){var e=o(r().mark((function e(t){var n,o,i,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.event,o=t.username,i={event:f[n],target_journal:o},e.next=4,LJ.Api.callP("subscriptions.get",i);case 4:r=e.sent.subscriptions,a=r.map((function(e){return d[e.method]})),m(o,n,a);case 7:case"end":return e.stop()}var r}),e)})));return function(t){return e.apply(this,arguments)}}(),LJ.Misc.NotifSubs.requestSubNotifAdd=function(){var e=o(r().mark((function e(n,o,i){var a,c,l=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=(l.length>3&&void 0!==l[3]?l[3]:{}).source,(c=t(g(i,n))).push(o),m(i,n,c,{source:a}),e.next=7,y({event:n,eventType:"create",method:o,username:i});case 7:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),LJ.Misc.NotifSubs.requestSubNotifDelete=function(){var e=o(r().mark((function e(n,o,i){var a,c,l=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=(l.length>3&&void 0!==l[3]?l[3]:{}).source,c=(c=t(g(i,n))).filter((function(e){return e!==o})),m(i,n,c,{source:a}),e.next=7,y({event:n,eventType:"delete",method:o,username:i});case 7:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),LJ.Event.on("relations.changed",(function(e){var t=e.action,r=e.username;["unsubscribe","removeFromFriends","removeFriend"].includes(t)&&m(r,"newEntry",[])})),u=!0)}},4554:(e,t,r)=>{"use strict";r.d(t,{D:()=>n,N:()=>o});var n=r(6540).createContext({}),o=n.Provider},4582:(e,t,r)=>{"use strict";r.d(t,{FQ:()=>u,aF:()=>a,az:()=>c,hJ:()=>i,nB:()=>l,wi:()=>s});var n=r(9056),o=r(3581),i=(r(2231),n.default.div.withConfig({displayName:"Overlay",componentId:"sc-1jopm0p-0"})(["position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:rgba(0,0,0,.4);opacity:",";z-index:5000;&::before{position:fixed;top:-1px;left:-1px;width:1px;height:1px;background-color:rgba(255,255,255,0);content:'';}"],(function(e){return e.show?.5:0}))),a=n.default.div.withConfig({displayName:"Modal",componentId:"sc-1jopm0p-1"})(['position:relative;max-width:650px;display:flex;align-items:center;min-height:calc(100% - 3.5rem);height:calc(100% - 3.5rem);width:100%;margin:1.75rem auto;padding:1rem;font:400 16px/1 "ProximaNova",Helvetica,sans-serif;letter-spacing:0;color:#15374C;-webkit-font-smoothing:antialiased;pointer-events:none;z-index:5000;']),c=n.default.div.withConfig({displayName:"Box",componentId:"sc-1jopm0p-2"})(["overflow:hidden;position:relative;display:flex;flex-direction:column;width:100%;max-height:min(580px,100%);border-radius:8px;background-color:#fff;box-shadow:0px 2px 6px rgba(0,0,0,0.16),0px 4px 16px rgba(0,0,0,0.12);pointer-events:auto;"]),l=n.default.div.withConfig({displayName:"Body",componentId:"sc-1jopm0p-3"})(["display:flex;flex-direction:column;flex:1 1 auto;padding:0 24px 6px;overflow-y:auto;&:last-child{padding-bottom:16px;}@media ","{padding:0 16px 6px;&:last-child{padding-bottom:16px;}}"," "," .modal--iframe &{padding-right:0;}"],o.j.maxMobileL,(function(e){return e.isBodyScrollable&&"border-bottom: 1px solid #E5EBEE;"}),(function(e){return e.bodyScrollTop&&"border-top: 1px solid #E5EBEE;"})),s=n.default.footer.withConfig({displayName:"Footer",componentId:"sc-1jopm0p-4"})(["flex-shrink:0;padding:10px 24px 16px;@media ","{padding:10px 16px 16px;}"],o.j.maxMobileL),u=(n.default.div.withConfig({displayName:"ButtonsRow",componentId:"sc-1jopm0p-5"})(["display:flex;flex-flow:row wrap;justify-content:flex-end;margin:-5px;"]),n.default.div.withConfig({displayName:"ButtonsRowItem",componentId:"sc-1jopm0p-6"})(["padding:5px;"]),n.default.p.withConfig({displayName:"Text",componentId:"sc-1jopm0p-7"})(["margin:0;margin-bottom:0.5rem;"]),n.default.div.withConfig({displayName:"ModalWrapper",componentId:"sc-1jopm0p-8"})(["position:fixed;top:0;left:0;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;z-index:5000;box-sizing:border-box;*{box-sizing:inherit;}&:before{box-sizing:inherit;}&:after{box-sizing:inherit;}.borderTop{border-top:1px solid #E5EBEE;}.borderBottom{border-bottom:1px solid #E5EBEE;}"]))},4599:(e,t,r)=>{"use strict";r.d(t,{A:()=>_}),new Promise((function(e){["complete","loaded","interactive"].includes(document.readyState)&&e(),document.addEventListener("DOMContentLoaded",(function(){e()}))}));var n="\n  ".concat(window.location.protocol,"//\n  ").concat(Site.picsUploadDomain,"\n").replace(/\s*/g,"");function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(){i=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),c=new N(n||[]);return o(a,"_invoke",{value:_(e,r,c)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="suspendedYield",g="executing",y="completed",v={};function b(){}function w(){}function x(){}var S={};f(S,c,(function(){return this}));var E=Object.getPrototypeOf,j=E&&E(E(I([])));j&&j!==r&&n.call(j,c)&&(S=j);var C=x.prototype=b.prototype=Object.create(S);function O(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function r(o,i,a,c){var l=d(e[o],e,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==u(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function _(t,r,n){var o=h;return function(i,a){if(o===g)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=k(c,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var s=d(t,r,n);if("normal"===s.type){if(o=n.done?y:m,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function I(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(u(t)+" is not iterable")}return w.prototype=x,o(C,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,f(e,s,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},O(L.prototype),f(L.prototype,l,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new L(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(C),f(C,s,"Generator"),f(C,c,(function(){return this})),f(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=I,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){var n,o,i;n=e,o=t,i=r[t],(o=function(e){var t=function(e){if("object"!==u(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===u(t)?t:String(t)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function s(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){l(i,n,o,a,c,"next",e)}function c(e){l(i,n,o,a,c,"throw",e)}a(void 0)}))}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}var f,p={accessToken:"at",albumName:"album_name",albumId:"albumid",albumUrl:"album_url",coverUrl:"cover",isAlbumCover:"album_cover",timeUpdated:"timeupdate",size:"filesize",privacyGroupsIds:"groupids",uploadDate:"timecreate",shouldViewAll:"viewall",sourceRecords:"source_records"},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(!t||"object"!==u(e))return e;var r={};return Object.keys(e).forEach((function(n){var o=e[n],i=t[n];r[i||n]=o})),r},h=function(){var e=s(i().mark((function e(t){var r,n,o,a,l,s,u,f,h,m=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(r=m.length>1&&void 0!==m[1]?m[1]:{}).albumId,o=r.privacy,a=r.privacyGroupsIds,l=r.sourceRecords,s={records:t.map((function(e){return d(c(c(c(c({name:e.name,size:e.size},n?{albumId:n}:{}),o?{privacy:o}:{}),a?{privacyGroupsIds:a}:{}),l?{sourceRecords:l}:{}),p)}))},e.next=5,LJ.Api.callP("photo.create_records",s);case 5:if(u=e.sent,f=u.upload_tokens,!(h=u.error)){e.next=10;break}throw new Error(h.message);case 10:return e.abrupt("return",f.map((function(e,r){var n=c(c({},e),{},{file:t[r],id:e.photo_id,uploadToken:e.token});return delete n.photo_id,delete n.token,n})));case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),m=function(){var e=s(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,LJ.Api.callP("photo.delete_record",{id:t});case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(2),console.error("photoUploader/deleteRecord: ".concat(e.t0.message));case 10:case"end":return e.stop()}}),e,null,[[2,7]])})));return function(t){return e.apply(this,arguments)}}(),g=function(){var e=s(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t&&t.length){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,LJ.Api.callP("photo.delete_records",{ids:t});case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(2),console.error("photoUploader/deleteRecords: ".concat(e.t0.message));case 10:case"end":return e.stop()}}),e,null,[[2,7]])})));return function(t){return e.apply(this,arguments)}}(),y=function(){var e=s(i().mark((function e(t){var r,n,a,l,s,u,f,p,d,h=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(r=h.length>1&&void 0!==h[1]?h[1]:{}).uploadToken,a=r.headers,l=void 0===a?{}:a,s=LJ.Misc.PhotoUploader.getUploadUrl({uploadToken:n}),u=new FormData,f=c({form_auth:LJ.get("guid"),file:t},l),Object.entries(f).forEach((function(e){var t,r,n=(r=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=n[0],a=n[1];a&&u.append(i,a)})),e.next=8,fetch(s,{method:"post",body:u});case 8:return p=e.sent,e.next=11,p.json();case 11:if("error"!==(d=e.sent).status){e.next=14;break}throw new Error(d.message);case 14:return e.abrupt("return",d);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function v(){v=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new N(n||[]);return o(a,"_invoke",{value:_(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",g={};function y(){}function b(){}function w(){}var S={};s(S,a,(function(){return this}));var E=Object.getPrototypeOf,j=E&&E(E(I([])));j&&j!==r&&n.call(j,a)&&(S=j);var C=w.prototype=y.prototype=Object.create(S);function O(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==x(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function _(t,r,n){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=k(c,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function I(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(x(t)+" is not iterable")}return b.prototype=w,o(C,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:b,configurable:!0}),b.displayName=s(w,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,s(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},O(L.prototype),s(L.prototype,c,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new L(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(C),s(C,l,"Generator"),s(C,a,(function(){return this})),s(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=I,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function b(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function w(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){b(i,n,o,a,c,"next",e)}function c(e){b(i,n,o,a,c,"throw",e)}a(void 0)}))}}function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function S(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,C(n.key),n)}}function E(e,t,r){return t&&S(e.prototype,t),r&&S(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function j(e,t,r){return(t=C(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C(e){var t=function(e){if("object"!==x(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==x(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===x(t)?t:String(t)}var O,L=E((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));f=L,j(L,"UPLOAD_URL_BASE",n),j(L,"createRecords",h),j(L,"deleteRecord",m),j(L,"deleteRecords",g),j(L,"uploadFileForRecord",y),j(L,"getUploadUrl",(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).uploadToken,t=new URL(e||"",f.UPLOAD_URL_BASE);return Site.stage&&t.searchParams.set("ljstaging",Site.stage),t.href})),j(L,"uploadFiles",w(v().mark((function e(){var t,r,n,o,i,a,c,l,s,u,f,p=arguments;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=p.length>0&&void 0!==p[0]?p[0]:[],n=(r=p.length>1&&void 0!==p[1]?p[1]:{}).albumId,o=r.privacy,i=r.privacyGroupsIds,a=r.sourceRecords,c=r.headers,l=void 0===c?{}:c,t.length){e.next=5;break}return e.abrupt("return",[]);case 5:return e.next=7,h(t,{albumId:n,privacy:o,privacyGroupsIds:i,sourceRecords:a});case 7:return s=e.sent,u=s.map(function(){var e=w(v().mark((function e(r){var n,o,i,a;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.id,o=r.uploadToken,i=t.find((function(e){return e===r.file})),e.prev=2,e.next=5,y(i,{uploadToken:o,headers:l});case 5:return a=e.sent,e.abrupt("return",a);case 9:throw e.prev=9,e.t0=e.catch(2),m(n),new Error(e.t0.message);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t){return e.apply(this,arguments)}}()),e.next=11,Promise.allSettled(u);case 11:return f=e.sent,e.abrupt("return",f);case 13:case"end":return e.stop()}}),e)})))),null!==(O=window.LJ)&&void 0!==O&&null!==(O=O.Misc)&&void 0!==O&&O.PhotoUploader||(function(){for(var e,t="LJ.Misc.PhotoUploader".split("."),r=window;e=t.shift();)r[e]=r[e]||{},r=r[e]}(),LJ.Misc.PhotoUploader=L);const _=L},4816:(e,t,r)=>{"use strict";r.d(t,{x:()=>s});var n,o,i=r(3492),a=r(6204),c=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},l=function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r};class s{get ctx(){return c(this,n,"f")}get canvas(){return c(this,o,"f")}set canvas(e){l(this,o,e,"f"),l(this,n,e.getContext("2d"),"f")}constructor(e,t){this.lastUpdate=Date.now(),this.snowflakes=[],n.set(this,void 0),o.set(this,void 0),l(this,o,e,"f"),l(this,n,e.getContext("2d"),"f"),this.config={snowflakeCount:150,...i.s,...t},this.snowflakes=[],this.snowflakes=i.A.createSnowflakes(e,t.snowflakeCount||150,t),this.play()}updateConfig(e){this.config={...this.config,...e};const t=this.config.snowflakeCount-this.snowflakes.length;t>0&&(this.snowflakes=[...this.snowflakes,...i.A.createSnowflakes(this.canvas,t,e)]),t<0&&(this.snowflakes=this.snowflakes.slice(0,this.config.snowflakeCount));for(const e of this.snowflakes)e.updateConfig(this.config)}render(e=1){const{ctx:t,canvas:r,snowflakes:n}=this;if(!t||!r)return;const{offsetWidth:o,offsetHeight:i}=r;for(const t of n)t.update(o,i,e);if(t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,o,i),this.config.images&&this.config.images.length>0)for(const e of n)e.drawImage(t);else{t.beginPath();for(const e of n)e.drawCircle(t);t.fillStyle=this.config.color,t.fill()}}loop(){const e=Date.now(),t=Date.now()-this.lastUpdate;this.lastUpdate=e;const r=t/a.O;this.render(r),this.animationFrame=requestAnimationFrame((()=>this.loop()))}play(){this.loop()}pause(){this.animationFrame&&(cancelAnimationFrame(this.animationFrame),this.animationFrame=void 0)}}n=new WeakMap,o=new WeakMap},5056:(e,t,r)=>{"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},5072:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var i={},a=[],c=0;c<e.length;c++){var l=e[c],s=n.base?l[0]+n.base:l[0],u=i[s]||0,f="".concat(s," ").concat(u);i[s]=u+1;var p=r(f),d={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(d);else{var h=o(d,n);n.byIndex=c,t.splice(c,0,{identifier:f,updater:h,references:1})}a.push(f)}return a}function o(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,o){var i=n(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var c=r(i[a]);t[c].references--}for(var l=n(e,o),s=0;s<i.length;s++){var u=r(i[s]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=l}}},5153:(e,t,r)=>{"use strict";r.d(t,{W:()=>o});var n=r(6540),o=function(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).startImmediately,o=void 0!==r&&r;(0,n.useEffect)((function(){var r=function(r){e.current&&!e.current.contains(r.target)&&t(r)};return o?document.addEventListener("click",r):setTimeout((function(){document.addEventListener("click",r)})),function(){o?document.removeEventListener("click",r):setTimeout((function(){document.removeEventListener("click",r)}))}}),[e,t,o])}},5191:(e,t,r)=>{"use strict";r.d(t,{hZ:()=>a,nd:()=>c});var n=r(8228);function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a=function(e){return Object.values(n.NM).find((function(t){return t.placement.x===e.x&&t.placement.y===e.y}))},c=function(e,t){var r,i,a=t.canUseAltEdge,c=t.canUseAltAxis,l=t.excludePlacements,s=o(function(e){return n.NM.filter((function(t){var r=t.edge,n=t.align;return r===e.edge&&n!==e.align}))}(e));return a&&((r=s).push.apply(r,o(function(e){return n.NM.reduce((function(t,r){return e.edge===r.edge||e.axis!==r.axis?t:e.align===r.align?[r].concat(o(t)):[].concat(o(t),[r])}),[])}(e))),c&&(i=s).push.apply(i,o(function(e){return n.NM.filter((function(t){return t.axis!==e.axis})).sort((function(e,t){var r=["right","bottom"],n=r.includes(e.edge),o=r.includes(t.edge);return n&&o?0:n?-1:1}))}(e)))),null!=l&&l.length&&(s=s.filter((function(e){return!l.some((function(t){return e.placement.x===t.x&&e.placement.y===t.y}))}))),s}},5194:(e,t,r)=>{"use strict";r.d(t,{m:()=>d});var n=r(6540),o=r(8476),i=r(2317),a=r(230);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){var n,o,i;n=e,o=t,i=r[t],(o=function(e){var t=function(e){if("object"!==c(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===c(t)?t:String(t)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var p=function(){};function d(e){var t,r,c,s,d=e.onDropdownShow,h=void 0===d?function(){}:d,m=e.isCommunity,g=void 0!==m&&m,y=e.isInSubscriptionList,v=void 0!==y&&y,b=e.isInFriendList,w=void 0!==b&&b,x=e.remoteIsCommunityMember,S=e.isFollowerOfRemote,E=void 0!==S&&S,j=e.remoteIsCommunityOwner,C=void 0!==j&&j,O=e.requestRelationActionCb,L=void 0===O?p:O,_=e.requestGroupsDataCb,k=e.joinRequestPending,P=e.isSyndicated,A=void 0!==P&&P,N=e.isNews,I=void 0!==N&&N,M=e.miscData,D=e.gluePopups,T=e.userNoteProps,F=void 0===T?{}:T,R=F.savedUserNote,U=F.onDropdownUserNoteBtnClick,J=F.modal,z=void 0===J?{}:J,B=(c=(0,n.useState)(!1),s=2,function(e){if(Array.isArray(e))return e}(c)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(c,s)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(c,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),q=B[0],G=B[1],H=function(e){G(e),!q&&e&&h()},$=(0,n.useRef)(null);(0,n.useEffect)((function(){LJ.Event.on("controlstrip::dropdownHideRequest",(function(){return H(!1)}))}),[]),(0,n.useEffect)((function(){var e,t=null==$||null===(e=$.current)||void 0===e?void 0:e.dataset;t&&(t.componentId=M.componentId)}),[M.componentId]);var Y=!1,W=[];g||(v||w||!A&&!I?v||w||!E?v||w?v&&!w||w&&(A||I)?(t=LJ.ml("subscribe_button_2022.you_are_subscribed"),r=function(){H(!q),q||_()},Y=!0):w&&(t=LJ.ml("subscribe_button_2022.is_in_friend_list"),r=function(){H(!q),q||_()},Y=!0):(t=LJ.ml("common.subscribe"),r=function(){L("subscribe")},W.push("lightbutton--blue")):(t=LJ.ml("subscribe_button_2022.mutual_subscribe"),r=function(){L("subscribe")},W.push("lightbutton--blue")):(t=LJ.ml("common.subscribe"),r=function(){L("addToFriends")},W.push("lightbutton--blue"))),g&&(C?(t=LJ.ml("subscribe_button_2022.you_are_owner"),r=function(){H(!q),q||_()},Y=!0):!x&&k&&w?(t=LJ.ml("subscribe_button_2022.join_request_is_pending"),r=function(){H(!q),q||_()},Y=!0):v||x?v&&!x?(t=LJ.ml("subscribe_button_2022.you_are_subscribed"),r=function(){H(!q),q||_()},Y=!0):x&&(t=LJ.ml("subscribe_button_2022.you_are_member"),r=function(){H(!q),q||_()},Y=!0):(t=LJ.ml("common.subscribe"),r=function(){L("subscribe")},W.push("lightbutton--blue")));var X=["lightbutton"].concat(W).join(" ");Site.remote||(r=function(){window.setTimeout(LJ.Util.Action.login,0)});var K=u(u({},e),{},{isGlued:D,savedUserNote:R,onUserNoteBtnClick:U});return n.createElement(n.Fragment,null,n.createElement(a.d,{className:X+(q?" lightbutton--toggle-open":"")+(Y?" lightbutton--toggle":""),href:"#",target:"_self",onClick:function(e){e.preventDefault(),r()},ref:$},t,Y&&n.createElement("svg",{className:"lightbutton__dropdown-icon",width:"16",height:"16"},n.createElement("use",{xlinkHref:"#flaticon--arrow-dropdown"}))),q?n.createElement(i.k,l({},K,{requestPopupClose:function(){H(!1)},targetNode:null==$?void 0:$.current})):null,z.isShown?n.createElement(o.A,{onClose:z.onClose,inputValue:F.savedUserNote||"",userData:F.userNameDisplayData}):null)}},5292:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(6540),o=r(4816),i=r(3492),a=r(7968);const c=({color:e=i.s.color,changeFrequency:t=i.s.changeFrequency,radius:r=i.s.radius,speed:c=i.s.speed,wind:l=i.s.wind,rotationSpeed:s=i.s.rotationSpeed,opacity:u=i.s.opacity,snowflakeCount:f=150,images:p,style:d}={})=>{const h=(0,a.ZD)(d),m=(0,n.useRef)(null),g=(0,a.Kt)(m),y=(0,a.k9)({color:e,changeFrequency:t,radius:r,speed:c,wind:l,rotationSpeed:s,images:p,snowflakeCount:f,opacity:u}),v=(0,n.useRef)(y),b=(0,n.useRef)();return(0,n.useEffect)((()=>(!b.current&&m.current&&(b.current=new o.x(m.current,v.current)),()=>{var e;null===(e=b.current)||void 0===e||e.pause(),b.current=void 0})),[]),(0,n.useEffect)((()=>{b.current&&b.current.updateConfig(y)}),[y]),n.createElement("canvas",{ref:m,height:g.height,width:g.width,style:h,"data-testid":"SnowfallCanvas"})}},5439:(e,t,r)=>{"use strict";r.d(t,{AM:()=>i,Cl:()=>a,_3:()=>c});var n=r(9056),o=r(9710),i=(0,n.default)(o.A).withConfig({displayName:"Popover",componentId:"sc-1vwzq8j-0"})(["z-index:5000;width:200px;&.basepopup--fix-bug{font:400 14px/1.6 ProximaNova,Helvetica,sans-serif !important;white-space:normal !important;@media (max-width:400px){position:absolute;}}& .basepopup__list{margin:0 -2px;padding:0 2px;}@media (max-width:400px){position:fixed;}"]),a=(n.default.div.withConfig({displayName:"Modal",componentId:"sc-1vwzq8j-1"})(["font:400 16px/1.2 'ProximaNova',Helvetica,sans-serif;letter-spacing:0;color:#333;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-size-adjust:100%;A,BUTTON,LABEL{font:400 16px/1.2 'ProximaNova',Helvetica,sans-serif;border:0;}"]),n.default.div.withConfig({displayName:"ButtonItem",componentId:"sc-1vwzq8j-2"})(["color:",";.basepopup-selector__text{display:flex;align-items:center;svg{display:block;margin-right:4px;}}"],(function(e){var t=e.remoteIsPaid,r=e.isPaidItem;return t||!r?"":"#a2a2a2"}))),c=n.default.a.withConfig({displayName:"LinkText",componentId:"sc-1vwzq8j-3"})(["border:0 !important;font:inherit;color:inherit !important;text-transform:none !important;text-decoration:none !important;"]);n.default.div.withConfig({displayName:"Footer",componentId:"sc-1vwzq8j-4"})(["text-align:right;"])},5618:(e,t,r)=>{"use strict";r.d(t,{u:()=>n});var n=r(9056).default.div.attrs((function(e){var t=e.$position;return{style:{transform:"translate(".concat(t.x,"px, ").concat(t.y,"px)")}}})).withConfig({displayName:"Component",componentId:"sc-zvb2mg-0"})(["position:absolute;top:0;left:0;-webkit-font-smoothing:antialiased;z-index:5000;&.basepopup--arrow-left-top::before,&.basepopup--arrow-right-top::before{top:10px;}&.basepopup--arrow-top-right::before,&.basepopup--arrow-bottom-right::before{right:10px;}&.basepopup--arrow-top-left::before,&.basepopup--arrow-bottom-left::before{left:10px;}&.basepopup--arrow-left-bottom::before,&.basepopup--arrow-right-bottom::before{bottom:10px;}&.basepopup--arrow-top-center::before,&.basepopup--arrow-bottom-center::before{transform:rotate(45deg) translateX(-50%);transform-origin:left;margin:0;}"])},5849:(e,t,r)=>{"use strict";r.d(t,{l8:()=>o.A,mc:()=>n.A});var n=r(4178),o=r(1987);r(921)},5998:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(6540),o=function(e){var t=(0,n.useRef)();return(0,n.useEffect)((function(){t.current=e}),[e]),t.current}},6204:(e,t,r)=>{"use strict";r.d(t,{F:()=>n,O:()=>o});const n={pointerEvents:"none",backgroundColor:"transparent",position:"absolute",top:0,left:0,width:"100%",height:"100%"},o=1e3/60},6314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var c=0;c<this.length;c++){var l=this[c][0];null!=l&&(a[l]=!0)}for(var s=0;s<e.length;s++){var u=[].concat(e[s]);n&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),r&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=r):u[2]=r),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},6508:(e,t,r)=>{"use strict";r.d(t,{n:()=>i});var n=r(9056),o=r(3581),i=n.default.button.withConfig({displayName:"CloseBtn",componentId:"sc-100e668-0"})(["position:absolute;top:12px;right:16px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;margin:0;padding:4px;border:none;border-radius:4px;background:none;transition:background-color 0.15s linear;cursor:pointer;&:hover{background-color:hsl(197deg 8% 10% / 5%);}&:active{background-color:hsl(197deg 8% 10% / 10%);}&:focus{outline:none;}&:focus-visible{outline:2px solid #00a3d9;border-radius:2px;}svg{width:24px;height:24px;fill:#272C2E !important;}@media ","{right:8px;}"],o.j.maxMobileL)},6832:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(1601),o=r.n(n),i=r(6314),a=r.n(i)()(o());a.push([e.id,'.ReactCrop{position:relative;display:inline-block;cursor:crosshair;overflow:hidden;max-width:100%}.ReactCrop *,.ReactCrop *::before,.ReactCrop *::after{box-sizing:border-box}.ReactCrop--disabled,.ReactCrop--locked{cursor:inherit}.ReactCrop__child-wrapper{max-height:inherit}.ReactCrop__child-wrapper>img,.ReactCrop__child-wrapper>video{display:block;max-width:100%;max-height:inherit}.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper>img,.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper>video{touch-action:none}.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__crop-selection{touch-action:none}.ReactCrop__crop-selection{position:absolute;top:0;left:0;transform:translate3d(0, 0, 0);cursor:move;box-shadow:0 0 0 9999em rgba(0,0,0,.5);border:1px dashed #fff}.ReactCrop--disabled .ReactCrop__crop-selection{cursor:inherit}.ReactCrop--circular-crop .ReactCrop__crop-selection{border-radius:50%;box-shadow:0px 0px 1px 1px #fff,0 0 0 9999em rgba(0,0,0,.5)}.ReactCrop__crop-selection:focus{outline:none;border-color:blue;border-style:solid}.ReactCrop--invisible-crop .ReactCrop__crop-selection{display:none}.ReactCrop__rule-of-thirds-vt::before,.ReactCrop__rule-of-thirds-vt::after,.ReactCrop__rule-of-thirds-hz::before,.ReactCrop__rule-of-thirds-hz::after{content:"";display:block;position:absolute;background-color:rgba(255,255,255,.4)}.ReactCrop__rule-of-thirds-vt::before,.ReactCrop__rule-of-thirds-vt::after{width:1px;height:100%}.ReactCrop__rule-of-thirds-vt::before{left:33.3333%;left:33.3333333333%}.ReactCrop__rule-of-thirds-vt::after{left:66.6666%;left:66.6666666667%}.ReactCrop__rule-of-thirds-hz::before,.ReactCrop__rule-of-thirds-hz::after{width:100%;height:1px}.ReactCrop__rule-of-thirds-hz::before{top:33.3333%;top:33.3333333333%}.ReactCrop__rule-of-thirds-hz::after{top:66.6666%;top:66.6666666667%}.ReactCrop__drag-handle{position:absolute}.ReactCrop__drag-handle::after{position:absolute;content:"";display:block;width:10px;height:10px;background-color:rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.7);outline:1px solid rgba(0,0,0,0)}.ReactCrop__drag-handle:focus::after{border-color:blue;background:#2dbfff}.ReactCrop .ord-nw{top:0;left:0;margin-top:-5px;margin-left:-5px;cursor:nw-resize}.ReactCrop .ord-nw::after{top:0;left:0}.ReactCrop .ord-n{top:0;left:50%;margin-top:-5px;margin-left:-5px;cursor:n-resize}.ReactCrop .ord-n::after{top:0}.ReactCrop .ord-ne{top:0;right:0;margin-top:-5px;margin-right:-5px;cursor:ne-resize}.ReactCrop .ord-ne::after{top:0;right:0}.ReactCrop .ord-e{top:50%;right:0;margin-top:-5px;margin-right:-5px;cursor:e-resize}.ReactCrop .ord-e::after{right:0}.ReactCrop .ord-se{bottom:0;right:0;margin-bottom:-5px;margin-right:-5px;cursor:se-resize}.ReactCrop .ord-se::after{bottom:0;right:0}.ReactCrop .ord-s{bottom:0;left:50%;margin-bottom:-5px;margin-left:-5px;cursor:s-resize}.ReactCrop .ord-s::after{bottom:0}.ReactCrop .ord-sw{bottom:0;left:0;margin-bottom:-5px;margin-left:-5px;cursor:sw-resize}.ReactCrop .ord-sw::after{bottom:0;left:0}.ReactCrop .ord-w{top:50%;left:0;margin-top:-5px;margin-left:-5px;cursor:w-resize}.ReactCrop .ord-w::after{left:0}.ReactCrop__disabled .ReactCrop__drag-handle{cursor:inherit}.ReactCrop__drag-bar{position:absolute}.ReactCrop__drag-bar.ord-n{top:0;left:0;width:100%;height:6px;margin-top:-3px}.ReactCrop__drag-bar.ord-e{right:0;top:0;width:6px;height:100%;margin-right:-3px}.ReactCrop__drag-bar.ord-s{bottom:0;left:0;width:100%;height:6px;margin-bottom:-3px}.ReactCrop__drag-bar.ord-w{top:0;left:0;width:6px;height:100%;margin-left:-3px}.ReactCrop--new-crop .ReactCrop__drag-bar,.ReactCrop--new-crop .ReactCrop__drag-handle,.ReactCrop--fixed-aspect .ReactCrop__drag-bar{display:none}.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-n,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-e,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-s,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-w{display:none}@media(pointer: coarse){.ReactCrop .ord-n,.ReactCrop .ord-e,.ReactCrop .ord-s,.ReactCrop .ord-w{display:none}.ReactCrop__drag-handle{width:24px;height:24px}}\n',""]);const c=a},6951:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(6540),o=r(457),i=["size"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}const c=n.forwardRef((function(e,t){var r=e.size,c=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,i);return n.createElement(o.p,a({ref:t,$size:r},c))}))},7202:(e,t,r)=>{"use strict";r.d(t,{_:()=>C});var n=r(6540),o=r(5338),i=r(1834),a=r(9056),c=a.default.h3.withConfig({displayName:"Title",componentId:"sc-v4x63z-0"})(["margin:0;margin-bottom:1rem;font-family:ProximaNova,Helvetica,sans-serif !important;font-size:14px;font-weight:bold;color:#000000;"]),l=a.default.div.withConfig({displayName:"CategoryContainer",componentId:"sc-v4x63z-1"})(["&:not(:last-child){margin-bottom:1.5rem;}"]),s=a.default.div.withConfig({displayName:"UserContainer",componentId:"sc-v4x63z-2"})(["position:relative;display:flex;justify-content:space-between;width:100%;margin:0px;&:not(:last-child){margin-bottom:1rem;}"]),u=a.default.div.withConfig({displayName:"Userpic",componentId:"sc-v4x63z-3"})(["display:flex;flex-direction:column;justify-content:start;align-items:center;flex-shrink:0;margin-right:16px;border-radius:4px;overflow:hidden;img{width:65px;height:65px;border-radius:0px;object-fit:cover;}"]),f=a.default.div.withConfig({displayName:"UserContent",componentId:"sc-v4x63z-4"})(["display:flex;flex:1 1 0%;@media (max-width:480px){flex-direction:column;align-items:flex-start;}"]),p=a.default.div.withConfig({displayName:"SubscribeBtnContainer",componentId:"sc-v4x63z-5"})(["display:flex;align-items:center;margin-left:auto;@media (max-width:480px){margin-top:6px;margin-left:0;}"]),d=a.default.div.withConfig({displayName:"UserDescription",componentId:"sc-v4x63z-6"})(["margin-right:16px;@media (max-width:480px){margin-right:0;}"]),h=a.default.div.withConfig({displayName:"UserDisplayWrapper",componentId:"sc-v4x63z-7"})(["margin-bottom:4px;.i-ljuser{display:flex;flex-wrap:nowrap;}.i-ljuser-userhead{margin-right:4px!important;opacity:1 !important;}.i-ljuser-username{text-decoration:none !important;font-weight:normal !important;color:#00A3D9 !important;&:hover,&:focus{color:#00C0FF !important;}}.i-ljuser-profile{background-image:none !important;}"]),m=a.default.p.withConfig({displayName:"JournalTitle",componentId:"sc-v4x63z-8"})(["font-size:14px;line-height:17px;"]),g=r(339),y=function(e){var t=e.data,r=void 0===t?{}:t,o=r.name,i=r.users;return n.createElement(l,null,n.createElement(c,null,o),i.map((function(e,t){var r={targetUsername:e.user,targetId:e.userid,isInSubscriptionList:e.is_subscribed,isInFriendList:e.is_friend,friendGroupsData:[],isCommunity:e.is_community,remoteIsCommunityMember:e.is_community&&e.is_member,joinRequestPending:e.is_invite_sent,isBannedInCommunity:e.is_banned,isClosedCommunity:"closed"===e.community_membership};return r.isCommunity&&(r.isInSubscriptionList=e.is_friend),n.createElement(s,{key:"".concat(t,"-").concat(e.userid)},n.createElement(u,null,n.createElement("img",{src:e.userpic,alt:e.user})),n.createElement(f,null,n.createElement(d,null,n.createElement(h,{dangerouslySetInnerHTML:{__html:e.user_display}}),e.journal_title&&n.createElement(m,null,e.journal_title)),n.createElement(p,null,n.createElement(g.f,{targetUserData:r}))))})))};function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){var n,o,i;n=e,o=t,i=r[t],(o=function(e){var t=function(e){if("object"!==v(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===v(t)?t:String(t)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}LJ.define("LJ.Page.SubRecommendModal");var S={isShown:!1,recommendations:[]},E=function(){var e,t,r=(e=(0,n.useState)(S),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],a=r[1];(0,n.useEffect)((function(){return LJ.Page.SubRecommendModal.setState=function(e){a(e)},function(){LJ.Page.SubRecommendModal=null}}),[]),(0,n.useEffect)((function(){return LJ.Event.on("SubRecommendModal.requestShow",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!o.isShown){var t=e.recommendations;if(0!==(void 0===t?[]:t).length){LJ.Track.YM.call({method:"reachGoal",argArr:["SHOW_FRIENDS_RECOMMENDATIONS"]});var r={isShown:!0};r=w(w({},r),{},{recommendations:e.recommendations}),a(r)}}})),LJ.Page.SubRecommendModal.isMounted=!0,LJ.Event.trigger("SubRecommendModal.mounted"),function(){LJ.Event.off("SubRecommendModal.requestShow")}}),[]);var c=o.isShown,l=o.recommendations,s=(0,n.useCallback)((function(){a(S)}),[]),u=(0,n.useMemo)((function(){return null!=l&&l.length?l.map((function(e){return n.createElement(y,{data:e,key:e.id})})):null}),[c]);return n.createElement(n.Fragment,null,c&&(null==u?void 0:u.length)&&n.createElement(i.Ay,{title:LJ.ml("common.recommended"),description:LJ.ml("common.recommended.description"),onClose:s},n.createElement("div",null,u)))},j=!1,C=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).forceCreateNewModal;if(!j||e){var t=document.createElement("div");t.dataset.subRecommendationModal="",document.body.append(t),(0,o.H)(t).render(n.createElement(E,null)),j=!0}};C()},7374:(e,t,r)=>{"use strict";r(6540)},7463:(e,t)=>{"use strict";function r(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,o=e[n];if(!(0<i(o,t)))break e;e[n]=t,e[r]=o,r=n}}function n(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length,a=o>>>1;n<a;){var c=2*(n+1)-1,l=e[c],s=c+1,u=e[s];if(0>i(l,r))s<o&&0>i(u,l)?(e[n]=u,e[s]=r,n=s):(e[n]=l,e[c]=r,n=c);else{if(!(s<o&&0>i(u,r)))break e;e[n]=u,e[s]=r,n=s}}}return t}function i(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var c=Date,l=c.now();t.unstable_now=function(){return c.now()-l}}var s=[],u=[],f=1,p=null,d=3,h=!1,m=!1,g=!1,y="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=n(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,r(s,t)}t=n(u)}}function x(e){if(g=!1,w(e),!m)if(null!==n(s))m=!0,I(S);else{var t=n(u);null!==t&&M(x,t.startTime-e)}}function S(e,r){m=!1,g&&(g=!1,v(O),O=-1),h=!0;var i=d;try{for(w(r),p=n(s);null!==p&&(!(p.expirationTime>r)||e&&!k());){var a=p.callback;if("function"==typeof a){p.callback=null,d=p.priorityLevel;var c=a(p.expirationTime<=r);r=t.unstable_now(),"function"==typeof c?p.callback=c:p===n(s)&&o(s),w(r)}else o(s);p=n(s)}if(null!==p)var l=!0;else{var f=n(u);null!==f&&M(x,f.startTime-r),l=!1}return l}finally{p=null,d=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,j=!1,C=null,O=-1,L=5,_=-1;function k(){return!(t.unstable_now()-_<L)}function P(){if(null!==C){var e=t.unstable_now();_=e;var r=!0;try{r=C(!0,e)}finally{r?E():(j=!1,C=null)}}else j=!1}if("function"==typeof b)E=function(){b(P)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,N=A.port2;A.port1.onmessage=P,E=function(){N.postMessage(null)}}else E=function(){y(P,0)};function I(e){C=e,j||(j=!0,E())}function M(e,r){O=y((function(){e(t.unstable_now())}),r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,I(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return d},t.unstable_getFirstCallbackNode=function(){return n(s)},t.unstable_next=function(e){switch(d){case 1:case 2:case 3:var t=3;break;default:t=d}var r=d;d=t;try{return e()}finally{d=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=d;d=e;try{return t()}finally{d=r}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,e){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return e={id:f++,callback:o,priorityLevel:e,startTime:i,expirationTime:c=i+c,sortIndex:-1},i>a?(e.sortIndex=i,r(u,e),null===n(s)&&e===n(u)&&(g?(v(O),O=-1):g=!0,M(x,i-a))):(e.sortIndex=c,r(s,e),m||h||(m=!0,I(S))),e},t.unstable_shouldYield=k,t.unstable_wrapCallback=function(e){var t=d;return function(){var r=d;d=t;try{return e.apply(this,arguments)}finally{d=r}}}},7659:e=>{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},7695:(e,t,r)=>{"use strict";r(6540)},7723:(e,t,r)=>{"use strict";r.d(t,{J:()=>o.A,Y:()=>n.A});var n=r(373),o=r(1016)},7825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var o=void 0!==r.layer;o&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,o&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var i=r.sourceMap;i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},7968:(e,t,r)=>{"use strict";r.d(t,{Kt:()=>c,ZD:()=>l,k9:()=>s});var n=r(6540),o=r(115),i=r(6204),a=r(945);const c=e=>{const[t,r]=(0,n.useState)((0,a.YC)(e.current)),o=(0,n.useCallback)((()=>{e.current&&r((0,a.YC)(e.current))}),[e]);return(0,n.useEffect)((()=>{const{ResizeObserver:t}=window;if(e.current){if(o(),"function"==typeof t){const r=new t(o);return r.observe(e.current),()=>r.disconnect()}return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)}}),[e,o]),t},l=e=>(0,n.useMemo)((()=>({...i.F,...e||{}})),[e]);function s(e){const[t,r]=(0,n.useState)(e);return function(t,i){const a=(0,n.useRef)(i);o(i,a.current)||(a.current=i),(0,n.useEffect)((()=>r(e)),a.current)}(0,[e]),t}},8081:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(6540),o=r(3451),i=["children","type","onClick","isLoading","disabled","primary","className","size"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}const c=function(e){var t=e.children,r=e.type,c=void 0===r?"button":r,l=e.onClick,s=e.isLoading,u=e.disabled,f=e.primary,p=e.className,d=e.size,h=void 0===d?"medium":d,m=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,i);return n.createElement(o.$,a({type:c||"button",onClick:l,isLoading:s,disabled:u,primary:f,className:p,$size:h},m),s&&n.createElement(o.a,null,n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"svgicon flaticon flaticon--preloader",width:"14",height:"14"},n.createElement("use",{xlinkHref:"#flaticon--preloader"}))),t)}},8092:(e,t,r)=>{"use strict";var n,o,i,a,c=!(null!==(n=Site.journal)&&void 0!==n&&n.is_friend)&&!(null!==(o=Site.journal)&&void 0!==o&&o.is_subscriber)&&((null===(i=Site.remote)||void 0===i?void 0:i.is_friend)||(null===(a=Site.remote)||void 0===a?void 0:a.is_subscriber));function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){return(t=function(e){var t=function(e){if("object"!==l(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===l(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}LJ.define("LJ.UserRelations");var p=!1,d={},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).silent,n=u(u({},d[e]||{}),t);d[e]=n,r||LJ.Event.trigger("UserRelations/".concat(e,"/changed"),n)},m=function(e){var t=d[e];return t&&u({},t)};LJ.UserRelations.init=function(){if(!p&&Site.remote){if(Site.journal&&Site.journal.username!==Site.remote.username){var e={isInSubscriptionList:Site.journal.is_subscriber,isInFriendList:Site.journal.is_friend,friendGroupsData:[],isCommunity:Site.journal.is_community,isFollowerOfRemote:c,remoteIsCommunityOwner:"owner"===Site.journal.community_relation,remoteIsCommunityMember:Site.journal.is_community&&Site.journal.is_member,joinRequestPending:Site.journal.is_invite_sent&&Site.journal.is_friend,isBannedInCommunity:Site.journal.is_banned};e.isCommunity&&(e.isInSubscriptionList=Site.journal.is_friend),h(Site.journal.username,e,{silent:!0})}LJ.UserRelations.patch=h,LJ.UserRelations.getUserRelations=m,LJ.Event.on("relations.changed",(function(e){var t=e.data,r=e.username,n=t.is_subscriber,o=t.is_friend,i=t.is_member,a=t.is_invite_sent,c=m(r),l={isInSubscriptionList:n,isInFriendList:o,remoteIsCommunityMember:i,joinRequestPending:a&&o,isFollowerOfRemote:!(o||n||!Site.remote.is_friend&&!Site.remote.is_subscriber)};null!=c&&c.isCommunity&&(l.isInSubscriptionList=o),h(r,l)})),p=!0}},r(4536);var g=r(7202),y=r(339),v=r(6540),b=r(5338),w=r(74),x=r(4554),S=r(9710),E=r(1834),j=r(8081),C=r(9056),O=C.default.div.withConfig({displayName:"Wrapper",componentId:"sc-3oa966-0"})(["position:relative;display:flex;align-items:center;justify-content:flex-start;"]),L=C.default.label.withConfig({displayName:"Slider",componentId:"sc-3oa966-1"})(['box-sizing:border-box;display:block;width:40px;height:24px;padding:1px;border:1px solid #DFE6E8;border-radius:12px;background-color:#F5F7F8;transition:border-width .15s,border-color .15s,background-color .15s;cursor:pointer;&:before{content:"";display:block;width:20px;height:20px;box-shadow:0 0 2px 0 rgb(0 0 0 / 8%),0 4px 8px 0 rgb(0 0 0 / 12%);border-radius:10px;background-color:#fff;transition:margin .2s;}']),_=C.default.label.withConfig({displayName:"Label",componentId:"sc-3oa966-2"})(["word-break:break-word;font-size:14px;line-height:16px;color:#000000;"," ",""],(function(e){return"left"===e.labelPosition&&(0,C.css)(["order:0;margin-right:12px;"])}),(function(e){return"right"===e.labelPosition&&(0,C.css)(["order:1;margin-left:12px;"])})),k=C.default.input.withConfig({displayName:"Control",componentId:"sc-3oa966-3"})(["position:absolute;width:1px;height:1px;margin:-1px;border:0;padding:0;white-space:nowrap;clip-path:inset(100%);clip:rect(0 0 0 0);overflow:hidden;&:checked ~ ","{border-color:transparent;background-color:#00A3D9;}&:checked ~ ","::before{margin-left:16px;}&:hover ~ ","{border-color:#BDC8CD;}&:focus ~ ","{border-color:#00C0FF;}&:checked:hover ~ ",",&:checked:focus ~ ","{border-color:transparent;background-color:#00C0FF;}&:disabled{& ~ *{cursor:not-allowed;}& ~ ","{color:#8c969b;}& ~ ","{border:1px solid #DFE6E8;}&:checked ~ ","{background-color:#d5dde0;cursor:not-allowed;}}"],L,L,L,L,L,L,_,L,L),P=["onChange","className","label","checked","id","labelPosition","disabled","autoFocus"];function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},A.apply(this,arguments)}const N=function(e){var t=e.onChange,r=e.className,n=e.label,o=e.checked,i=e.id,a=e.labelPosition,c=void 0===a?"left":a,l=e.disabled,s=e.autoFocus,u=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,P);return v.createElement(O,A({className:r},u),v.createElement(k,{onChange:t,type:"checkbox",id:i,checked:o,disabled:l,autoFocus:s}),n&&v.createElement(_,{htmlFor:i,labelPosition:c},n),v.createElement(L,{htmlFor:i,$disabled:l}))};var I=function(e){var t=e.onChange,r=e.event,n=e.description,o=e.method,i=e.id,a=e.isActive,c=e.isMobile,l=function(e){var n=e.target;t({event:r,method:o,isActive:n.checked})};return v.createElement(v.Fragment,null,!c&&v.createElement("label",{className:"lightcheckbox"},v.createElement("input",{className:"lightcheckbox__input",type:"checkbox",id:i,checked:a,onChange:l}),v.createElement("span",{className:"lightcheckbox__text"},n)),!!c&&v.createElement(N,{checked:a,onChange:l,label:n,id:i}))},M=C.default.ul.withConfig({displayName:"List",componentId:"sc-10wr8u4-0"})(["list-style:none;margin:0;padding:0;",""],(function(e){return e.isMobile&&(0,C.css)(["& li:not(:last-of-type){margin-bottom:15px;}"])})),D=C.default.li.withConfig({displayName:"ListItem",componentId:"sc-10wr8u4-1"})(["display:flex;align-items:center;flex-wrap:wrap;"]),T=(C.default.span.withConfig({displayName:"ItemDescription",componentId:"sc-10wr8u4-2"})(["font-size:14px;line-height:20px;font-weight:400;color:#333333;"]),C.default.span.withConfig({displayName:"PreloaderContainer",componentId:"sc-10wr8u4-3"})(["display:flex;align-items:center;justify-content:center;width:16px;height:16px;margin-right:8px;"]),C.default.div.withConfig({displayName:"ModalFooter",componentId:"sc-10wr8u4-4"})(["display:flex;justify-content:flex-end;"])),F=(C.default.button.withConfig({displayName:"Button",componentId:"sc-10wr8u4-5"})(["cursor:pointer;"]),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,r=e.onSubscriptionChange,n=e.subscriptions,o=e.targetNode,i=e.isGlued,a=LJ.Support.isMobile(),c=n.filter((function(e){return"newEntry"===e.event})).map((function(e){var t=e.event,n=e.method,o=e.description,i=e.isActive,c="".concat(t,"-").concat(n);return v.createElement(D,{className:"basepopup__item",key:c},v.createElement(I,{event:t,method:n,description:o,isMobile:a,onChange:r,isActive:i,id:c}))})),l=v.createElement(T,null,v.createElement(j.A,{onClick:t,type:"button",primary:!0,sizeL:!0},LJ.ml("notif_dropdown_2022.button")));return v.createElement(v.Fragment,null,!a&&v.createElement(S.A,{className:(0,w._)([i&&"basepopup--glued"]),anchorEl:o,placement:i?S.c.bottomStart:S.c.bottom,margins:{y:i?0:5},closeOnScroll:!0,withArrow:!i,onClose:t},v.createElement("div",{className:"basepopup__title"},LJ.ml("notif_dropdown_2022.title")),v.createElement(M,null,c)),!!a&&v.createElement(E.Ay,{title:LJ.ml("notif_dropdown_2022.title"),onClose:t,footer:l,withCloseBtn:!1},v.createElement("div",{className:"basepopup__group"},v.createElement(M,{isMobile:a},c))))}),R=r(2968),U=(0,C.keyframes)(["from{transform:translateY(0);opacity:1;}to{transform:translateY(10px);opacity:0;}"]),J=(0,C.default)(S.A).withConfig({displayName:"Popover",componentId:"sc-128wtuh-0"})(["",""],(function(e){var t=e.$animationDuration,r=e.$animationDelay;return(0,C.css)(["animation:"," ","ms linear ","ms forwards;"],U,t,r)})),z=C.default.button.withConfig({displayName:"CloseButton",componentId:"sc-128wtuh-1"})(["display:inline-flex;.svgicon{width:12px;height:12px;}"]),B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,r=e.targetNode,n=e.isGlued;return(0,v.useEffect)((function(){var e=setTimeout((function(){t()}),3500);return function(){clearTimeout(e)}}),[t]),v.createElement(J,{className:(0,w._)([n&&"basepopup--glued"]),$animationDuration:500,$animationDelay:3e3,anchorEl:r,placement:n?S.c.bottomStart:S.c.bottom,margins:{y:n?0:5},withArrow:!n,onClose:t},v.createElement(z,{onClick:t,className:"basepopup__close",type:"button"},v.createElement(R.A,{className:"basepopup__close-icon",xlinkHref:"flaticon--cross-2"})),v.createElement("p",null,LJ.ml("notif_dropdown_tip")))};function q(e){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(e)}function G(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G(Object(r),!0).forEach((function(t){$(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $(e,t,r){return(t=function(e){var t=function(e){if("object"!==q(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===q(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y(){Y=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:O(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",g={};function y(){}function v(){}function b(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(A([])));S&&S!==r&&n.call(S,a)&&(w=S);var E=b.prototype=y.prototype=Object.create(w);function j(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==q(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,r,n){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=L(c,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function L(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,L(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function A(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(q(t)+" is not iterable")}return v.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=s(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},j(C.prototype),s(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new C(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(E),s(E,l,"Generator"),s(E,a,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=A,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function W(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function X(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){W(i,n,o,a,c,"next",e)}function c(e){W(i,n,o,a,c,"throw",e)}a(void 0)}))}}function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Z(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Z(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var V={active:"flaticon--bell-active",inactive:"flaticon--bell"},Q=function e(t){var r=t.targetUsername,n=t.className,o=t.isShown,i=t.text,a=t.theme,c=void 0===a?"light":a,l=t.gluePopups,s=t.id,u=K((0,v.useState)(o),2),f=u[0],p=u[1],d=(0,v.useState)((function(){return function(e){var t=LJ.Misc.NotifSubs.getUserSubs(e,"newEntry");return[{event:"newEntry",method:"notifCenter",description:LJ.ml("notif_dropdown_2022.notify.in.notif.center"),isActive:null==t?void 0:t.includes("notifCenter"),requestTimeout:null},{event:"newEntry",method:"email",description:LJ.ml("notif_dropdown_2022.notify.in.email"),isActive:null==t?void 0:t.includes("email"),requestTimeout:null}]}(r)})),h=K(d,2),m=h[0],g=h[1],y=K((0,v.useState)(null),2),b=y[0],S=y[1],E=K((0,v.useState)(!1),2),j=E[0],C=E[1],O=K((0,v.useState)(!1),2),L=O[0],_=O[1],k=(0,v.useRef)(s||"".concat(e.name,":").concat(+new Date)),P=function(){_(!1)},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};C(!1);var t={type:"error",body:e.message||LJ.ml("common.something_went_wrong")};LJ.Messages.add(t)};if((0,v.useEffect)((function(){j&&P()}),[j]),(0,v.useEffect)((function(){var e=function(e){var t=e.value;if(e.source!==k.current){var r=m.map((function(e){return"newEntry"!==e.event?e:H(H({},e),{},{isActive:t.includes(e.method)})}));g(r)}};return LJ.Event.on("NotifSubs/".concat(r,"/newEntry/changed"),e),function(){LJ.Event.off("NotifSubs/".concat(r,"/newEntry/changed"),e)}}),[m,r]),(0,v.useEffect)((function(){return LJ.Event.on("NotifSubBtn2022.requestShow",(function(){p(!0)})),LJ.Event.on("NotifSubBtn2022.requestHide",(function(){p(!1)})),function(){LJ.Event.off("NotifSubBtn2022.requestShow"),LJ.Event.off("NotifSubBtn2022.requestHide")}}),[]),(0,v.useEffect)((function(){var e=function(){C(!1)};return LJ.Event.on("controlstrip::dropdownHideRequest",e),LJ.Event.on("notificationCenter::dropdownHideRequest",e),function(){LJ.Event.off("controlstrip::dropdownHideRequest",e),LJ.Event.off("notificationCenter::dropdownHideRequest",e)}}),[]),(0,v.useEffect)((function(){var e=function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).compId===k.current&&_(!0)};return LJ.Event.on("NotifSubBtn2022.notifTip.requestShow",e),function(){LJ.Event.off("NotifSubBtn2022.notifTip.requestShow",e)}}),[]),!f)return null;var N=m.some((function(e){return e.isActive})),I=V[N?"active":"inactive"];return v.createElement(x.N,{value:c},v.createElement("button",{type:"button","aria-haspopup":"true","aria-expanded":j?"true":"false",ref:function(e){S(e)},onClick:function(){C((function(e){return!e}))},className:(0,w._)(["notification-button",n])},v.createElement("svg",{className:(0,w._)(["svgicon","flaticon",I])},v.createElement("use",{xlinkHref:"#".concat(I)})),i&&v.createElement("span",null,i)),b&&j&&v.createElement(F,{subscriptions:m,onSubscriptionChange:function(e){var t=e.event,n=e.method,o=e.isActive,i=m.find((function(e){return e.event===t&&e.method===n})),a=i.requestTimeout;a&&clearTimeout(a);var c=setTimeout(X(Y().mark((function e(){var i;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=o?LJ.Misc.NotifSubs.requestSubNotifAdd:LJ.Misc.NotifSubs.requestSubNotifDelete,e.prev=1,e.next=4,i(t,n,r,{source:k.current});case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),A();case 9:case"end":return e.stop()}}),e,null,[[1,6]])}))),500),l=m.map((function(e){return e===i?H(H({},i),{},{isActive:o,requestTimeout:c}):e}));g(l)},onClose:function(){C(!1)},isGlued:l,targetNode:b,targetUsername:r}),b&&L&&v.createElement(B,{onClose:P,isGlued:l,targetNode:b}))};function ee(e){return ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ee(e)}function te(){te=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:O(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",g={};function y(){}function v(){}function b(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(A([])));S&&S!==r&&n.call(S,a)&&(w=S);var E=b.prototype=y.prototype=Object.create(w);function j(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==ee(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,r,n){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=L(c,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function L(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,L(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function A(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(ee(t)+" is not iterable")}return v.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=s(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},j(C.prototype),s(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new C(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(E),s(E,l,"Generator"),s(E,a,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=A,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ne(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?re(Object(r),!0).forEach((function(t){oe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):re(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function oe(e,t,r){return(t=function(e){var t=function(e){if("object"!==ee(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==ee(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ee(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ae(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}var ce=!1,le=null,se=function(e){var t=LJ.Misc.NotifSubs.getUserSubs(e),r=[];return null!=t&&t.newEntry||r.push(LJ.Misc.NotifSubs.fetchUserSubs({event:"newEntry",username:e})),Promise.all(r)},ue=function(e){LJ.Event.on("UserRelations/".concat(e,"/changed"),(function(e){var t=e.isInSubscriptionList,r=e.isInFriendList;t||r?LJ.Event.trigger("NotifSubBtn2022.requestShow"):LJ.Event.trigger("NotifSubBtn2022.requestHide")})),ce=!0},fe=function(){var e,t=(e=te().mark((function e(t,r){var n,o,i,a,c,l,s,u,f;return te().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=Site.journal.username,c=null===(n=LJ.UserRelations)||void 0===n||null===(o=n.getUserRelations)||void 0===o?void 0:o.call(n,a),t&&a&&c){e.next=4;break}return e.abrupt("return");case 4:return le||(le=se(a)),e.next=7,le;case 7:l=c.isInSubscriptionList,s=c.isInFriendList,u=document.createElement("div"),(i=u.classList).add.apply(i,function(e){if(Array.isArray(e))return ie(e)}(p=t.classList)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(p)||function(e,t){if(e){if("string"==typeof e)return ie(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ie(e,t):void 0}}(p)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=ne({targetUsername:a,isShown:!(!l&&!s),text:t.dataset.text,theme:t.dataset.theme,gluePopups:t.dataset.hasOwnProperty("gluePopups"),className:t.dataset.className||"",id:t.getAttribute("id")},r),t.replaceWith(u),(0,b.H)(u).render(v.createElement(Q,f)),ce||ue(a);case 15:case"end":return e.stop()}var p}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){ae(i,n,o,a,c,"next",e)}function c(e){ae(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(e,r){return t.apply(this,arguments)}}(),pe=r(961),de=("".concat(Site.statprefix,"/img/air-awesome/cover-image/personal.jpg"),"".concat(Site.statprefix,"/img/air-awesome/cover-image/community.jpg"),"".concat(Site.statprefix,"/img/air-awesome/cover-image/broadcast.jpg"),"".concat(Site.statprefix,"/img/air-awesome/cover-image/default-1.jpg")),he="".concat(Site.statprefix,"/img/air-awesome/cover-image/default-2.jpg"),me="".concat(Site.statprefix,"/img/air-awesome/cover-image/default-3.jpg"),ge="".concat(Site.statprefix,"/img/air-awesome/cover-image/default-4.jpg"),ye="".concat(Site.statprefix,"/img/air-awesome/cover-image/default-5.jpg"),ve="".concat(Site.statprefix,"/img/air-awesome/cover-image/default-6.jpg"),be="".concat(Site.statprefix,"/img/air-awesome/cover-image/default-7.jpg"),we="".concat(Site.statprefix,"/img/air-awesome/cover-image/default-8.jpg"),xe="".concat(Site.statprefix,"/img/air-awesome/cover-image/default-9.jpg"),Se="".concat(Site.statprefix,"/img/air-awesome/cover-image/default-10.jpg"),Ee="".concat(Site.statprefix,"/img/air-awesome/cover-image/default-preview-1.jpg"),je="".concat(Site.statprefix,"/img/air-awesome/cover-image/default-preview-2.jpg"),Ce="".concat(Site.statprefix,"/img/air-awesome/cover-image/default-preview-3.jpg"),Oe="".concat(Site.statprefix,"/img/air-awesome/cover-image/default-preview-4.jpg"),Le="".concat(Site.statprefix,"/img/air-awesome/cover-image/default-preview-5.jpg"),_e="".concat(Site.statprefix,"/img/air-awesome/cover-image/default-preview-6.jpg"),ke="".concat(Site.statprefix,"/img/air-awesome/cover-image/default-preview-7.jpg"),Pe="".concat(Site.statprefix,"/img/air-awesome/cover-image/default-preview-8.jpg"),Ae="".concat(Site.statprefix,"/img/air-awesome/cover-image/default-preview-9.jpg"),Ne="".concat(Site.statprefix,"/img/air-awesome/cover-image/default-preview-10.jpg"),Ie=[xe,Se,de,he,me,ge,ye,ve,be,we],Me=[Ae,Ne,Ee,je,Ce,Oe,Le,_e,ke,Pe],De="journal covers",Te="showSettings",Fe="pro";function Re(e,t){if(e){if("string"==typeof e)return Ue(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ue(e,t):void 0}}function Ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Je=function(e){var t=document.querySelector(".js--journal-container .js--image-cover"),r=document.querySelector(".js--userpic-wrapper");if(t.classList.remove("j-page-cover-image-stub"),e){r.classList.add("j-user-userpic"),r.classList.remove("j-user-userpic-base-position"),r.parentElement.classList.remove("j-header-user-top-padding"),t.parentElement.style.display="",t&&!t.style.backgroundImage.includes(e)&&(t.style.backgroundImage="url(".concat(e,")"));var n=document.querySelector(".js--journal-container .js--image-cover-blur");n&&!n.style.backgroundImage.includes(e)&&(n.style.backgroundImage="url(".concat(e,")"))}else r&&(r.classList.add("j-user-userpic-base-position"),r.classList.remove("j-user-userpic"),r.parentElement.classList.add("j-header-user-top-padding"),t.parentElement.style.display="none",t.style.backgroundImage="")},ze=function(e){var t={controlstrip:document.querySelector(".s-header-extra__user .ljuser"),blockHeader:document.querySelector(".j-user-hgroup__left .ljuser")},r={controlstrip:{fill:"#ffffff"},blockHeader:{fill:"#0099CC"}};Object.entries(t).forEach((function(t){var n,o,i=(o=2,function(e){if(Array.isArray(e))return e}(n=t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(n,o)||Re(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],c=i[1];if(c){var l=c.querySelector(".i-ljuser-badge--pro");if(l&&!e&&l.remove(),!l&&e===Fe){var s=c.querySelector(".i-ljuser-username"),u=function(e){var t=e.fill,r=document.createElement("a"),n=document.createElement("span"),o=document.createElementNS("http://www.w3.org/2000/svg","svg"),i=document.createElementNS("http://www.w3.org/2000/svg","use");return o.append(i),n.append(o),r.append(n),r.className="i-ljuser-badge i-ljuser-badge--pro",r.hidden=!0,r.href="#",r.dataset.badgeType="pro",r.dataset.placement="bottom",r.dataset.proBadge="",r.dataset.proBadgeType="1",r.dataset.isRaw="",n.className="i-ljuser-badge__icon",o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("class","svgicon flaticon"),o.setAttribute("width",25),o.setAttribute("height",16),o.setAttribute("viewBox","0 0 33 24"),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#flaticons-v2--icon-pro-outline"),i.setAttribute("fill",t),r}(r[a]);c.insertBefore(u,s.nextSibling)}}})),LJ.Misc.ProBadge.requestInitAll()};function Be(e){return Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Be(e)}function qe(){qe=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:O(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",g={};function y(){}function v(){}function b(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(A([])));S&&S!==r&&n.call(S,a)&&(w=S);var E=b.prototype=y.prototype=Object.create(w);function j(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==Be(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,r,n){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=L(c,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function L(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,L(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function A(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(Be(t)+" is not iterable")}return v.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=s(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},j(C.prototype),s(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new C(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(E),s(E,l,"Generator"),s(E,a,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=A,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function Ge(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function He(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(r),!0).forEach((function(t){$e(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ge(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $e(e,t,r){return(t=function(e){var t=function(e){if("object"!==Be(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Be(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Be(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ye(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function We(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Ye(i,n,o,a,c,"next",e)}function c(e){Ye(i,n,o,a,c,"throw",e)}a(void 0)}))}}var Xe=function(){var e=We(qe().mark((function e(){var t,r;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return null===(r=He({},null===(t=Site.page)||void 0===t?void 0:t.journal_header_settings)).settingShowPostCount?r.settingShowPostCount=!1:void 0===r.settingShowPostCount&&(r.settingShowPostCount=!0),null===r.settingShowMemberCount?r.settingShowMemberCount=!1:void 0===r.settingShowMemberCount&&(r.settingShowMemberCount=!0),e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ke=function(){var e=We(qe().mark((function e(){var t,r,n,o,i,a,c,l,s;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={userpics:[],defaultUserpic:null},o=(null===(t=Site.remote)||void 0===t?void 0:t.id)===Site.journal.id,i="owner"===Site.journal.community_relation,a="maintainer"===Site.journal.community_relation,o||i||a){e.next=6;break}return e.abrupt("return",n);case 6:return c=i||a?Site.journal.username:null===(r=Site.remote)||void 0===r?void 0:r.username,e.prev=7,e.next=10,LJ.Api.callP("userpic.get_all_userpics",{user:c});case 10:l=e.sent,s=l.userpics,Array.isArray(l.userpics)&&(n.userpics=s.sort((function(e,t){return+t.id-+e.id})),n.defaultUserpic=s.find((function(e){return e.is_default}))),e.next=17;break;case 15:e.prev=15,e.t0=e.catch(7);case 17:return e.abrupt("return",n);case 18:case"end":return e.stop()}}),e,null,[[7,15]])})));return function(){return e.apply(this,arguments)}}(),Ze=r(4599);function Ve(e){return Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ve(e)}function Qe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function et(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(r),!0).forEach((function(t){tt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function tt(e,t,r){return(t=function(e){var t=function(e){if("object"!==Ve(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Ve(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ve(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return nt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?nt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ot(){ot=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:O(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",g={};function y(){}function v(){}function b(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(A([])));S&&S!==r&&n.call(S,a)&&(w=S);var E=b.prototype=y.prototype=Object.create(w);function j(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==Ve(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,r,n){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=L(c,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function L(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,L(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function A(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(Ve(t)+" is not iterable")}return v.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=s(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},j(C.prototype),s(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new C(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(E),s(E,l,"Generator"),s(E,a,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=A,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function it(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function at(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){it(i,n,o,a,c,"next",e)}function c(e){it(i,n,o,a,c,"throw",e)}a(void 0)}))}}var ct=function(){var e=at(ot().mark((function e(){var t,r,n,o,i,a,c,l=arguments;return ot().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=l.length>0&&void 0!==l[0]?l[0]:{},e.next=3,LJ.Api.call("photo.get_albums",{user:null===(t=Site)||void 0===t||null===(t=t.remote)||void 0===t?void 0:t.username});case 3:if(n=e.sent,o=n.albums,i=(void 0===o?[]:o).find((function(e){return(null==e?void 0:e.name)===De}))){e.next=14;break}return e.next=10,LJ.Api.call("photo.create_album",{name:De,description:"",privacy:"public"});case 10:a=e.sent,c=a.album,i=void 0===c?null:c;case 14:if(i){e.next=16;break}return e.abrupt("return");case 16:return e.next=18,LJ.Api.call("photo.update_record",{id:null==r?void 0:r.id,albumid:i.id,privacy:"public",name:null==r?void 0:r.name});case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),lt=function(){var e=at(ot().mark((function e(){var t,r,n,o,i,a,c,l,s,u,f=arguments;return ot().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(t=f.length>0&&void 0!==f[0]?f[0]:{}).previewCanvasRef,n=t.coverImageSourceType,o=void 0===n?"image/jpeg":n,r.current){e.next=4;break}return e.abrupt("return",Promise.resolve());case 4:return i="image/jpeg","image/png"===o&&(i="image/png"),e.next=8,new Promise((function(e){var t;null==r||null===(t=r.current)||void 0===t||t.toBlob(e,i,.9)}));case 8:return a=e.sent,e.next=11,Ze.A.uploadFiles([a],{headers:{name:"newCoverImage","Content-Type":i,"Content-Disposition":'attachment; filename="newCoverImage"'}});case 11:if(c=e.sent,l=rt(c,1),"rejected"!==(s=l[0]).status){e.next=16;break}throw new Error(s.reason.message);case 16:return u=s.value,ct(u),e.abrupt("return",{coverImageUrl:u.url,coverImageId:u.id});case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),st=function(e,t){var r=["coverImageId","coverImageUrl","isCoverImageUrlAvailable","settingShowMemberCount","settingShowPostCount","settingShowingAudience","userBadgeType"],n=Object.fromEntries(Object.entries(t).filter((function(e){var t=rt(e,1)[0];return r.includes(t)})));return LJ.Api.callP("user.set_journal_header_settings",{settings:n,journal:e})},ut=function(){var e=at(ot().mark((function e(){var t,r,n,o,i,a,c,l,s,u,f,p,d,h,m,g,y,v,b,w,x,S,E=arguments;return ot().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(r=E.length>0&&void 0!==E[0]?E[0]:{}).settingsModalState,o=void 0===n?{}:n,i=r.previewCanvasRef,a=r.savedSettings,c=(void 0===a?{}:a).coverImageUrl,l=o.journalTitle,s=o.journalSubtitle,u=o.defaultUserpic,f=o.settingShowingAudience,p=o.userBadgeType,d=o.settingShowPostCount,h=o.settingShowMemberCount,m=o.coverImageUrl,g=o.coverImageSourceType,y=[],v=et({},Site.page.journal_header_settings)||{},b=et(et({},v),{},{coverImageUrl:c,settingShowPostCount:d}),e.prev=7,e.next=10,lt({previewCanvasRef:i,coverImageSourceType:g});case 10:(w=e.sent)?b=et(et({},v),{},{coverImageUrl:w.coverImageUrl,coverImageId:w.coverImageId,isCoverImageUrlAvailable:!!w.coverImageUrl}):m?m!==c&&(b=et(et({},v),{},{coverImageUrl:m,coverImageId:"",isCoverImageUrlAvailable:!!m})):b=et(et({},v),{},{coverImageUrl:"",coverImageId:"",isCoverImageUrlAvailable:!1}),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(7),y.push(e.t0);case 17:return f&&(b=et(et({},b),{},{settingShowingAudience:f})),b=et(et({},b),{},{userBadgeType:p}),"boolean"==typeof h&&(b=et(et({},b),{},{settingShowMemberCount:h})),"boolean"==typeof d&&(b=et(et({},b),{},{settingShowPostCount:d})),x=Site.remote.username,["owner","maintainer"].includes(null===(t=Site.journal)||void 0===t?void 0:t.community_relation)&&(x=Site.journal.username),S=[st(x,b),LJ.Api.callP("settings.set_journal_title",{name:"journal_header_settings",which:"journaltitle",value:l,authas:x}),LJ.Api.callP("settings.set_journal_title",{name:"journal_header_settings",which:"journalsubtitle",value:s,authas:x})],null!=u&&u.id&&S.push(LJ.Api.callP("userpic.set_default_userpic",{user:x,defaultpic:u.id})),Site.remote.is_paid&&S.push(LJ.Api.callP("settings.save_setting",{setting:"BadgePro",args:{badgepro:p===Fe?1:0}})),e.next=28,Promise.all(S);case 28:return y.length&&y.forEach((function(e){var t=e.message;t&&LJ.Messages.add({type:"error",body:t})})),e.abrupt("return",et(et({},o),b));case 30:case"end":return e.stop()}}),e,null,[[7,14]])})));return function(){return e.apply(this,arguments)}}(),ft=r(8093),pt=r.n(ft),dt=r(5072),ht=r.n(dt),mt=r(7825),gt=r.n(mt),yt=r(7659),vt=r.n(yt),bt=r(5056),wt=r.n(bt),xt=r(540),St=r.n(xt),Et=r(1113),jt=r.n(Et),Ct=r(6832),Ot={};function Lt(e,t,r){(0,v.useEffect)((function(){var n=setTimeout((function(){e.apply(void 0,r)}),t);return function(){clearTimeout(n)}}),r)}Ot.styleTagTransform=jt(),Ot.setAttributes=wt(),Ot.insert=vt().bind(null,"head"),Ot.domAPI=gt(),Ot.insertStyleElement=St(),ht()(Ct.A,Ot),Ct.A&&Ct.A.locals&&Ct.A.locals;var _t=C.default.div.withConfig({displayName:"DefaultCoverSelect",componentId:"sc-iiwjtm-0"})(["display:flex;max-width:100%;flex-direction:column;position:absolute;top:0;left:0;z-index:",";"],(function(e){return e.isShown?"":-1})),kt=C.default.ul.withConfig({displayName:"CoversList",componentId:"sc-iiwjtm-1"})(["list-style:none;display:flex;max-width:100%;overflow-x:scroll;li{cursor:pointer;}"]),Pt=C.default.a.withConfig({displayName:"BtnHideDefaultCoverSelect",componentId:"sc-iiwjtm-2"})(["margin-left:auto;font-size:14px;"]),At=C.default.button.withConfig({displayName:"BtnNavCoverSelect",componentId:"sc-iiwjtm-3"})(["position:absolute;top:50%;left:",";right:",";display:flex;justify-content:center;align-items:center;width:32px;height:32px;border:none;border-radius:50%;background:#F9FAFA;box-shadow:0 0 2px 0 rgb(0 0 0 / 8%),0 6px 8px 0 rgb(0 0 0 / 6%);text-align:center;cursor:pointer;transition:background .2s;transform:translate(0,-50%);&:hover{background:#E5EBEE;}svg{fill:#7A9199;width:10px;height:16px;}&[disabled]{opacity:0.6;cursor:not-allowed;&:hover{background:#F9FAFA;}}"],(function(e){return e.isPositionLeft?"8px":"auto"}),(function(e){return e.isPositionRight?"8px":"auto"})),Nt=C.default.div.withConfig({displayName:"CoversListWrapper",componentId:"sc-iiwjtm-4"})(["position:relative;margin-bottom:4px;background:#FFFFFF;LI{display:block;margin-right:8px;border-radius:4px;&:last-child{margin-right:0;}}IMG{display:block;width:160px;border-radius:4px;}"]);function It(e){return It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},It(e)}function Mt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Dt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(r),!0).forEach((function(t){Tt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Tt(e,t,r){return(t=function(e){var t=function(e){if("object"!==It(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==It(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===It(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Rt=160,Ut=function(e){var t,r,n=e.isShown,o=e.onSelectCover,i=e.onCancelBtnClick,a=(0,v.useRef)(null),c=(t=(0,v.useState)({}),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return Ft(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ft(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=c[0],s=c[1],u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s((function(t){return Dt(Dt({},t),e)}))},f=l.isActiveRightNavButton,p=void 0===f||f,d=l.isActiveLeftNavButton,h=void 0!==d&&d,m=(0,v.useCallback)((function(){var e=a.current.lastChild.getBoundingClientRect(),t=e.left,r=e.width,n=a.current.firstChild.getBoundingClientRect().left,o=a.current.getBoundingClientRect(),i=o.left,c=o.width;if(i+c>=t+r-1)u({isActiveRightNavButton:!1});else if(i+c<t+r){var l={isActiveRightNavButton:!0};i>n?l.isActiveLeftNavButton=!0:n<=i&&(l.isActiveLeftNavButton=!1),u(l)}}),[]);return v.createElement(_t,{isShown:n},v.createElement(Nt,null,v.createElement(kt,{ref:a,onScroll:m},Me.map((function(e,t){return v.createElement("li",{key:"default-preview-cover-".concat(t),onClick:function(){return o(t)}},v.createElement("img",{src:e,alt:"default-preview-cover-".concat(t)}))}))),v.createElement(At,{disabled:!h,isPositionLeft:!0,onClick:function(){var e=a.current.scrollLeft;a.current.scroll({left:(Math.trunc(e/Rt)-1)*Rt,behavior:"smooth"})}},v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"svgicon flaticon flaticon--arrow-left",width:"20",height:"16"},v.createElement("use",{xlinkHref:"#flaticon--arrow-left"}))),v.createElement(At,{disabled:!p,isPositionRight:!0,onClick:function(){var e=a.current.scrollLeft;a.current.scroll({left:(Math.trunc(e/Rt)+1)*Rt,behavior:"smooth"})}},v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"svgicon flaticon flaticon--arrow-right",width:"20",height:"16"},v.createElement("use",{xlinkHref:"#flaticon--arrow-right"})))),v.createElement(Pt,{href:"",onClick:function(e){e.preventDefault(),i()}},LJ.ml("blog_settings_form.cover_select.hide")))};function Jt(e){return Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jt(e)}function zt(){zt=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:O(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",g={};function y(){}function v(){}function b(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(A([])));S&&S!==r&&n.call(S,a)&&(w=S);var E=b.prototype=y.prototype=Object.create(w);function j(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==Jt(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,r,n){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=L(c,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function L(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,L(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function A(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(Jt(t)+" is not iterable")}return v.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=s(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},j(C.prototype),s(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new C(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(E),s(E,l,"Generator"),s(E,a,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=A,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function Bt(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function qt(e,t,r){return Gt.apply(this,arguments)}function Gt(){var e;return e=zt().mark((function e(t,r,n){var o,i,a,c,l,s,u,f,p,d=arguments;return zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(d.length>3&&void 0!==d[3]?d[3]:{}).maxWidth,i=void 0===o?2e3:o,a=r.getContext("2d")){e.next=5;break}throw new Error("No 2d context");case 5:c=t.naturalWidth/t.width,l=t.naturalHeight/t.height,s=Math.floor(n.width*c),u=1,s>i&&(u=s/i),r.width=Math.floor(n.width*c)/u,r.height=Math.floor(n.height*l)/u,a.imageSmoothingQuality="high",f=n.x*c/u,p=n.y*l/u,a.save(),a.translate(-f,-p),a.drawImage(t,0,0,t.naturalWidth,t.naturalHeight,0,0,t.naturalWidth/u,t.naturalHeight/u),a.restore();case 19:case"end":return e.stop()}}),e)})),Gt=function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Bt(i,n,o,a,c,"next",e)}function c(e){Bt(i,n,o,a,c,"throw",e)}a(void 0)}))},Gt.apply(this,arguments)}var Ht=(0,C.css)(["display:flex;justify-content:center;align-items:center;position:relative;width:32px;height:32px;border:none;border-radius:50%;margin:4px;padding:5px;background:#F9FAFA;text-align:center;cursor:pointer;transition:background .2s;&:hover{background:#E5EBEE;}svg{fill:#7A9199;}"]),$t=C.default.div.withConfig({displayName:"UploadIcon",componentId:"sc-5ij5u5-0"})(["display:flex;justify-content:center;align-items:center;position:absolute;top:29px;left:calc(50% - 32px / 2);width:32px;height:32px;border:none;border-radius:50%;margin:0 auto;padding:5px;background:#F9FAFA;text-align:center;cursor:pointer;"]),Yt=C.default.div.withConfig({displayName:"SectionContainer",componentId:"sc-5ij5u5-1"})(["position:relative;margin:0 0 32px;"]),Wt=C.default.label.withConfig({displayName:"CoverWrapper",componentId:"sc-5ij5u5-2"})(["display:block;height:100px;margin-bottom:8px;cursor:pointer;"]),Xt=C.default.div.withConfig({displayName:"ExistingCoverPreview",componentId:"sc-5ij5u5-3"})(["height:98px;border-radius:2px;background-size:cover;background-position:center;background-repeat:no-repeat;flex-shrink:0;transition:border .3s;"," ",""],(function(e){var t=e.existingImgSrc;return t&&(0,C.css)(["background-image:url(",");"],t)}),(function(e){return!e.existingImgSrc&&(0,C.css)(["border:1px dashed #D4DCE0;cursor:pointer;&:hover,&:focus{border:1px dashed #999999;}"])})),Kt=C.default.canvas.withConfig({displayName:"CanvasPreview",componentId:"sc-5ij5u5-4"})(["object-fit:cover;width:100%;height:100%;"]),Zt=C.default.div.withConfig({displayName:"ReactCropWrapper",componentId:"sc-5ij5u5-5"})([".ReactCrop__crop-selection{border:none;}"]),Vt=C.default.div.withConfig({displayName:"InvisibleImgOverlay",componentId:"sc-5ij5u5-6"})(["position:absolute;top:",";left:50%;transform:translate(-50%,-50%);display:flex;justify-content:center;align-items:center;"],(function(e){return e.imageIsSet?"50%":"65%"})),Qt=C.default.div.withConfig({displayName:"CoverAction",componentId:"sc-5ij5u5-7"})(["",""],Ht),er=C.default.button.withConfig({displayName:"CoverActionButton",componentId:"sc-5ij5u5-8"})(["",""],Ht),tr=C.default.p.withConfig({displayName:"PromptText",componentId:"sc-5ij5u5-9"})(["margin:0 auto;padding:24px 12px 12px;text-align:center;font-size:14px;line-height:1.2;color:#7A9199;"]),rr=(r(3581),C.default.div.withConfig({displayName:"Wrapper",componentId:"sc-rsmut0-0"})(["display:inline-flex;svg{display:block;width:",";height:",";animation:svgrotate .57s linear infinite;}@keyframes svgrotate{100%{transform:rotate(360deg);}}"],(function(e){var t=e.$size;return"".concat(t,"px")}),(function(e){var t=e.$size;return"".concat(t,"px")})));r(4582),C.default.div.withConfig({displayName:"SuccessMsgPadder",componentId:"sc-10a837t-0"})(["margin:200px auto;font-size:1.25rem;text-align:center;"]),C.default.div.withConfig({displayName:"UploadInfo",componentId:"sc-10a837t-1"})(["display:flex;align-items:center;margin-top:10px;"]),C.default.span.withConfig({displayName:"UploadText",componentId:"sc-10a837t-2"})(["display:inline-flex;margin-right:10px;margin-top:2px;margin-left:6px;font-size:16px;"]);var nr=(0,C.default)(j.A).withConfig({displayName:"UploadCancel",componentId:"sc-10a837t-3"})(["display:inline-flex;margin-left:auto;"]),or=C.default.p.withConfig({displayName:"UploadMessage",componentId:"sc-10a837t-4"})(["margin:8px 0 0;font-size:14px;color:#FF4C44;"]),ir=(0,C.default)((function(e){var t=e.className,r=e.size,n=void 0===r?16:r;return v.createElement(rr,{className:t,$size:n},v.createElement("svg",{viewBox:"0 0 31 31",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v.createElement("g",{fillRule:"evenodd"},v.createElement("path",{d:"M15.5,31 C24.0604136,31 31,24.0604136 31,15.5 C31,6.93958638 24.0604136,0 15.5,0 C6.93958638,0 0,6.93958638 0,15.5 C0,24.0604136 6.93958638,31 15.5,31 Z M15.5,24 C20.1944204,24 24,20.1944204 24,15.5 C24,10.8055796 20.1944204,7 15.5,7 C10.8055796,7 7,10.8055796 7,15.5 C7,20.1944204 10.8055796,24 15.5,24 Z",fill:"#00AFEA"}),v.createElement("path",{d:"M15.7960584,7.00505942 L15.8509795,0.00389541322 C20.1020367,0.0983450811 23.9309467,1.90428116 26.675877,4.7598713 L26.675877,4.7598713 L21.7412314,9.72958246 C20.2508535,8.11838542 18.1443589,7.08544079 15.7960584,7.00505942 Z",fill:"#346B7C"}))))})).withConfig({displayName:"CustomLoader",componentId:"sc-10a837t-5"})(["display:inline-flex;"]),ar=(C.default.div.withConfig({displayName:"SuccessMsgIcon",componentId:"sc-10a837t-6"})(["margin-bottom:6px;svg{width:24px;height:24px;fill:#39BF71;}"]),C.default.div.withConfig({displayName:"GroupBtn",componentId:"sc-10a837t-7"})(["display:flex;justify-content:space-between;align-items:center;"])),cr=C.default.a.withConfig({displayName:"SettingBtn",componentId:"sc-10a837t-8"})(["font-size:14px;color:#00A3D9;&:hover,&:focus{color:#0086B3;}@media (max-width:450px){display:none;}"]),lr=C.default.ul.withConfig({displayName:"SettingUserpicRowList",componentId:"sc-10a837t-9"})(["display:flex;align-items:center;flex-flow:row wrap;margin:-8px -8px 0;padding:0;list-style:none;li{position:relative;flex-shrink:0;width:50px;height:50px;margin:8px;border-radius:4px;border:1px solid #C7D4DA;overflow:hidden;cursor:pointer;}li.active{border-color:#00A3D9;}li.active::before{position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border-radius:4px;border:2px solid #00A3D9;content:'';}li.active::after{position:absolute;right:0;bottom:0;display:flex;align-items:center;justify-content:center;width:12px;height:12px;background:#00A3D9 url(\"data:image/svg+xml,%3Csvg width='8' height='6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.312.11a.5.5 0 0 1 .078.702l-3.6 4.5a.5.5 0 0 1-.749.036l-2.4-2.475a.5.5 0 1 1 .718-.696l2.005 2.068L6.61.188A.5.5 0 0 1 7.312.11Z' fill='%23fff'/%3E%3C/svg%3E\") center no-repeat;border-radius:4px 0;content:'';}IMG{display:block;width:48px;height:48px;object-fit:cover;object-position:center;}"]),sr=C.default.div.withConfig({displayName:"ActionsWrapper",componentId:"sc-10a837t-10"})(["display:flex;justify-content:flex-end;"]),ur=C.default.div.withConfig({displayName:"BtnWrap",componentId:"sc-10a837t-11"})(["display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-left:auto;"]),fr=(C.default.a.withConfig({displayName:"CancelBtn",componentId:"sc-10a837t-12"})(["margin-right:18px;"]),C.default.button.withConfig({displayName:"SubmitBtn",componentId:"sc-10a837t-13"})(["padding:8px 16px;background-color:#00A3D9;text-transform:none;"]),C.default.div.withConfig({displayName:"Section",componentId:"sc-10a837t-14"})(["margin:0px 0px 16px;"])),pr=C.default.div.withConfig({displayName:"SectionUserpics",componentId:"sc-10a837t-15"})(["display:flex;overflow:hidden;"]),dr=(0,C.css)(["display:flex;justify-content:center;align-items:center;flex-shrink:0;width:50px;height:50px;border-radius:4px;border:2px solid #f4f4f4;margin:8px;padding:0;background:#f4f4f4;text-align:center;transition:all .5s;SVG.flaticon--plus,SVG.flaticon--points{fill:#00A3D9;transition:all .15s;&:hover{transition:all .15s;}}",""],(function(e){return e.isUploading?"\n      pointer-events: none;\n    ":"\n      cursor: pointer;\n\n      &:hover {\n        border: 2px solid #00A3D9;\n        transition: all .15s;\n      }\n\n    "})),hr=C.default.label.withConfig({displayName:"UserpicButtonUpload",componentId:"sc-10a837t-16"})(["",""],dr),mr=C.default.button.withConfig({displayName:"UserpicButtonMore",componentId:"sc-10a837t-17"})(["",""],dr),gr=C.default.div.withConfig({displayName:"CoverImg",componentId:"sc-10a837t-18"})([""]),yr=C.default.h2.withConfig({displayName:"SectionHeading",componentId:"sc-10a837t-19"})(["margin-bottom:12px;font-size:18px;font-weight:600;"]),vr=C.default.input.withConfig({displayName:"SectionInput",componentId:"sc-10a837t-20"})(["width:100%;"]),br=C.default.textarea.withConfig({displayName:"SectionTextarea",componentId:"sc-10a837t-21"})(["width:100%;min-height:62px;padding:12px;resize:none;"]),wr=C.default.div.withConfig({displayName:"SectionHint",componentId:"sc-10a837t-22"})(["margin-top:8px;font-size:14px;line-height:16px;color:#7A9199;"]),xr=C.default.select.withConfig({displayName:"SectionSelect",componentId:"sc-10a837t-23"})(["max-width:100%;height:36px;padding:0px 28px 0 8px;border:1px solid #D4DCE0;border-radius:4px;font-size:14px;appearance:none;text-overflow:ellipsis;background-color:#FFFFFF;background-image:url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMiAxMiI+CiAgPHBhdGggZmlsbD0iIzQ0NCIgZD0iTTEwLjM1NCAyLjE0NmEuNS41IDAgMCAwLS43MDggMEw2IDUuNzkzIDIuMzU0IDIuMTQ2YS41LjUgMCAwIDAtLjcwOCAwbC0xLjUgMS41YS41LjUgMCAwIDAgMCAuNzA4bDUuNSA1LjVhLjUuNSAwIDAgMCAuNzA4IDBsNS41LTUuNWEuNS41IDAgMCAwIDAtLjcwOFoiLz4KPC9zdmc+Cg==');background-repeat:no-repeat;background-size:12px;background-position:calc(100% - 8px) center;&::-ms-expand{display:none;}&:hover{border-color:#BDC8CD}&:active,&:focus{outline:none;border-color:#0996C5;}"]),Sr=C.default.canvas.withConfig({displayName:"UserpicCrop",componentId:"sc-10a837t-24"})(["visibility:hidden;position:absolute;"]),Er=(0,C.default)(j.A).withConfig({displayName:"UserpicAction",componentId:"sc-10a837t-25"})(["display:inline-flex;margin-left:12px;"]),jr=C.default.div.withConfig({displayName:"ReactCropWrapper",componentId:"sc-10a837t-26"})(["margin:8px 0;.ReactCrop__crop-selection{border:none;}"]),Cr=C.default.input.withConfig({displayName:"HiddenControl",componentId:"sc-10a837t-27"})(["position:absolute;width:1px;height:1px;margin:-1px;border:0;padding:0;white-space:nowrap;clip-path:inset(100%);clip:rect(0 0 0 0);overflow:hidden;"]),Or=(C.default.div.withConfig({displayName:"TempLoader",componentId:"sc-10a837t-28"})(["color:#FFFFFF;svg{display:block;animation:svgrotate .57s linear infinite;}@keyframes svgrotate{100%{transform:rotate(360deg);}}"]),C.default.div.withConfig({displayName:"ControlWrapper",componentId:"sc-10a837t-29"})(["position:relative;margin-bottom:16px;::after{content:'';position:absolute;top:-8px;left:-8px;width:calc(100% + 16px);height:calc(100% + 16px);border-radius:4px;opacity:0;pointer-events:none;transition:opacity .3s;background:#00A3D9;}",""],(function(e){return e.isHighlighted&&(0,C.css)(["&::after{opacity:0.12;}"])}))),Lr=C.default.label.withConfig({displayName:"ControlLabel",componentId:"sc-10a837t-30"})(["margin-right:12px;font-size:14px;line-height:16px;color:#000000;"]),_r=(C.default.div.withConfig({displayName:"PostCountSection",componentId:"sc-10a837t-31"})(['margin:0px 0px 16px;.switch{position:relative;display:inline-block;width:39px;height:21px;}.switch input{opacity:0;width:0;height:0;}.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.15s;transition:.15s;border-radius:100px;}.slider:before{position:absolute;content:"";height:15px;width:15px;left:4px;bottom:3px;border-radius:50%;background-color:white;-webkit-transition:.15s;transition:.15s;}input:checked + .slider{background-color:#00A3D9;}input:checked:hover + .slider{background-color:#00C0FF;}input:focus + .slider{box-shadow:0 0 1px #00A3D9;}input:checked + .slider:before{transform:translateX(16px);}']),(0,C.default)(N).withConfig({displayName:"CustomSwitcher",componentId:"sc-10a837t-32"})(["margin-bottom:16px;"])),kr=(0,C.default)(E.Ay).withConfig({displayName:"Modal",componentId:"sc-10a837t-33"})([""]);function Pr(e){return Pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pr(e)}function Ar(){Ar=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:O(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",g={};function y(){}function v(){}function b(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(A([])));S&&S!==r&&n.call(S,a)&&(w=S);var E=b.prototype=y.prototype=Object.create(w);function j(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==Pr(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,r,n){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=L(c,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function L(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,L(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function A(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(Pr(t)+" is not iterable")}return v.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=s(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},j(C.prototype),s(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new C(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(E),s(E,l,"Generator"),s(E,a,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=A,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function Nr(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function Ir(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Nr(i,n,o,a,c,"next",e)}function c(e){Nr(i,n,o,a,c,"throw",e)}a(void 0)}))}}function Mr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Dr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mr(Object(r),!0).forEach((function(t){Tr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Tr(e,t,r){return(t=function(e){var t=function(e){if("object"!==Pr(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Pr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Pr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Rr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Rr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ur=LJ.Support.isMobile(),Jr=Ur?5.75:5.68,zr=C.default.div.withConfig({displayName:"Tooltip",componentId:"sc-nyk7rp-0"})(["top:",";left:",";position:fixed;opacity:",";visibility:",";background-color:#00A3D9;color:#FFFFFF;border:1px solid #00A3D9;padding:8px 16px;border-radius:4px;box-sizing:border-box;user-select:none;z-index:",";"],(function(e){var t=e.top;return t?"".concat(t,"px"):0}),(function(e){var t=e.left;return t?"".concat(t,"px"):0}),(function(e){return e.isShown?1:0}),(function(e){return e.isShown?"visible":"hidden"}),(function(e){return e.zIndex}));function Br(e){return Br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Br(e)}function qr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Gr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(r),!0).forEach((function(t){Hr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Hr(e,t,r){return(t=function(e){var t=function(e){if("object"!==Br(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Br(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Br(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Yr=(0,v.forwardRef)((function(e,t){var r=e.top,n=void 0===r?0:r,o=e.left,i=void 0===o?0:o,a=e.isShown,c=void 0!==a&&a,l=e.zIndex,s=void 0===l?"":l,u=e.tooltipMessage,f=void 0===u?"":u;return v.createElement(zr,{ref:t,top:n,left:i,isShown:c,zIndex:s,dangerouslySetInnerHTML:{__html:f}})})),Wr=function(e){var t,r,n=e.children,o=e.tooltipMessage,i=e.zIndex,a=e.placement,c=void 0===a?{x:"alignCenters",y:"above"}:a,l=e.margins,s=void 0===l?{y:15}:l,u=(0,v.useRef)(null),f=(0,v.useRef)(null),p=(t=(0,v.useState)({topPosition:0,leftPosition:0,isShown:!1}),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return $r(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$r(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=p[0],h=p[1],m=d.topPosition,g=d.leftPosition,y=d.isShown,b=(0,v.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h((function(t){return Gr(Gr({},t),e)}))}),[h]),w=(0,v.useCallback)((function(e){var t,r=e.currentTarget,n=null==r?void 0:r.getBoundingClientRect(),o=null===(t=f.current)||void 0===t?void 0:t.getBoundingClientRect();if(n&&o){var i={anchorRect:n,popoverRect:o,placement:c,margins:s},a=LJ.Util.Positioning.Popover.calculateCoords(i),l=a.x,u=a.y;b({isShown:!0,leftPosition:l,topPosition:u})}}),[f,b]),x=(0,v.useCallback)((function(){b({isShown:!1})}),[b]);return(0,v.useEffect)((function(){var e,t;return null===(e=u.current)||void 0===e||e.firstChild.addEventListener("mouseover",w),null===(t=u.current)||void 0===t||t.firstChild.addEventListener("mouseout",x),document.addEventListener("scroll",x,!0),function(){var e,t;null===(e=u.current)||void 0===e||e.firstChild.removeEventListener("mouseover",w),null===(t=u.current)||void 0===t||t.firstChild.removeEventListener("mouseout",x),document.removeEventListener("scroll",x,!0)}}),[u]),v.createElement("div",null,v.createElement("div",{ref:u},n),v.createElement(Yr,{top:m,left:g,ref:f,isShown:y,zIndex:i,tooltipMessage:o}))},Xr=(0,v.forwardRef)((function(e,t){var r=e.disabled,n=e.isUploading,o=e.tooltipMessage,i=e.onFilesAdd,a=(0,v.useRef)(null);(0,v.useImperativeHandle)(t,(function(){return{input:a.current}}));var c=v.createElement(hr,{htmlFor:"userpicUpload",isUploading:n},n&&v.createElement(ir,{width:"16",height:"16"}),!n&&v.createElement(R.A,{width:"16",height:"16",xlinkHref:"flaticon--plus"}),v.createElement(Cr,{type:"file",accept:"image/*",disabled:r,id:"userpicUpload",ref:a,onChange:function(e){var t=e.target.files;null!=t&&t.length&&i(t)}}));return o?v.createElement(Wr,{tooltipMessage:o},c):c}));function Kr(e){return Kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kr(e)}function Zr(){Zr=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:O(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",g={};function y(){}function v(){}function b(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(A([])));S&&S!==r&&n.call(S,a)&&(w=S);var E=b.prototype=y.prototype=Object.create(w);function j(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==Kr(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,r,n){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=L(c,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function L(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,L(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function A(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(Kr(t)+" is not iterable")}return v.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=s(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},j(C.prototype),s(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new C(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(E),s(E,l,"Generator"),s(E,a,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=A,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function Vr(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function Qr(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Vr(i,n,o,a,c,"next",e)}function c(e){Vr(i,n,o,a,c,"throw",e)}a(void 0)}))}}function en(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function tn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?en(Object(r),!0).forEach((function(t){rn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):en(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function rn(e,t,r){return(t=function(e){var t=function(e){if("object"!==Kr(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Kr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Kr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return on(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?on(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function on(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var an=LJ.Support.isMobile(),cn=function(e){var t=e.userpic,r=e.onClick,n=e.isSelected;return v.createElement("li",{onClick:r,className:"noctxpopup".concat(n?" active":"")},v.createElement("img",{src:t.url,alt:"",width:"46",height:"46"}))},ln=function(e){var t,r=e.userpics,n=void 0===r?[]:r,o=e.defaultUserpic,i=e.onFieldChange,a=e.onUploadStart,c=void 0===a?function(){}:a,l=e.onUploadEnd,s=void 0===l?function(){}:l,u=nn((0,v.useState)({isUploading:!1,allUserpicsAreShown:!1,userCancelledCurrentUpload:!1,showCropper:!1,showAlreadyLoadedMsg:!1,userpicUploadLimitExceededError:""}),2),f=u[0],p=u[1],d=(0,v.useRef)();d.current=f;var h=(0,v.useRef)(null),m=f.allUserpicsAreShown,g=void 0!==m&&m,y=f.pickedFileSrc,b=f.isUploading,w=f.showCropper,x=f.showAlreadyLoadedMsg,S=f.userpicUploadLimitExceededError,E=(0,v.useRef)(null),j=(0,v.useRef)(null),C=nn((0,v.useState)(),2),O=C[0],L=C[1],_=nn((0,v.useState)(),2),k=_[0],P=_[1],A=(0,v.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p((function(t){return tn(tn({},t),e)}))}),[p]);function N(e){var t,r,n,o,i=e.currentTarget,a=i.width,c=i.height;L((r=(t={mediaHeight:c,mediaWidth:a,aspect:1}).mediaWidth,n=t.mediaHeight,o=t.aspect,(0,ft.centerCrop)((0,ft.makeAspectCrop)({unit:"%",width:an?100:90},o,r,n),r,n)))}(0,v.useEffect)((function(){n.indexOf(o)>=6&&A({allUserpicsAreShown:!0})}),[n,o,A]);var I=n,M=n.length>6;g||(I=n.slice(0,6));var D=I.map((function(e){return v.createElement(cn,{key:e.id,userpic:e,onClick:function(){i({defaultUserpic:e})},isSelected:o.id===e.id})})),T=!(null!==(t=Site.journal)&&void 0!==t&&t.is_paid)&&n.length>=15,F=function(){h.current.input&&(h.current.input.value=null),A({isUploading:!1,newFileIsPicked:!1,pickedFileSrc:null})},U=function(){var e=function(){var e=Qr(Zr().mark((function e(){var t,r,o,a,c,l,s,u,f,p,h,m;return Zr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A({isUploading:!0,userCancelledCurrentUpload:!1,showCropper:!1}),e.next=3,new Promise((function(e){var t;null==j||null===(t=j.current)||void 0===t||t.toBlob(e)}));case 3:return a=e.sent,c=new File([a],"userpic"),(l=new FormData).append("form_auth",LJ.get("guid")),l.append("userpic",c),l.append("Content-Type","multipart/form-data"),s="owner"===(null===(t=Site)||void 0===t||null===(t=t.journal)||void 0===t?void 0:t.community_relation)?null===(r=Site)||void 0===r||null===(r=r.journal)||void 0===r?void 0:r.username:null===(o=Site)||void 0===o||null===(o=o.remote)||void 0===o?void 0:o.username,e.next=12,fetch("/manage/userpic/upload/?authas=".concat(s),{method:"post",body:l});case 12:return u=e.sent,e.next=15,u.json();case 15:if(!(f=e.sent).error){e.next=21;break}F(),A({userpicUploadLimitExceededError:f.error}),e.next=24;break;case 21:if("OK"===f.status){e.next=24;break}return F(),e.abrupt("return");case 24:if(!d.current.userCancelledCurrentUpload){e.next=26;break}return e.abrupt("return");case 26:if(!n.some((function(e){return e.url===f.url}))){e.next=31;break}return F(),A({showAlreadyLoadedMsg:!0}),e.abrupt("return");case 31:return e.next=33,Ke();case 33:p=e.sent,h=p.userpics,m=p.defaultUserpic,F(),h.length>6&&A({allUserpicsAreShown:!0}),i({userpics:h,defaultUserpic:h[0]||m});case 39:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();c(),e().finally((function(){s()}))};return Lt(Qr(Zr().mark((function e(){return Zr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:null!=k&&k.width&&null!=k&&k.height&&E.current&&j.current&&(qt(E.current,j.current,k),an&&y&&U());case 1:case"end":return e.stop()}}),e)}))),100,[k,y]),(0,v.useEffect)((function(){if(an&&O){var e=E.current,t=e.width,r=e.height;P((0,ft.convertToPixelCrop)(O,t,r))}}),[O]),v.createElement(fr,{className:"userpic"},v.createElement(yr,null,LJ.ml("blog_settings_form.userpic")),v.createElement(pr,null,v.createElement("div",{style:{minWidth:0}},v.createElement(lr,null,v.createElement(Xr,{disabled:T,isUploading:b,tooltipMessage:T?LJ.ml("blog_settings_form.userpic.tooltip.message.hit.limit.unpaid.user"):null,ref:h,onFilesAdd:function(e){var t=new FileReader;L(null),P(null),A({showCropper:!an,showAlreadyLoadedMsg:!1}),t.addEventListener("load",Qr(Zr().mark((function e(){return Zr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:A({pickedFileSrc:t.result.toString()||""});case 1:case"end":return e.stop()}}),e)})))),t.readAsDataURL(e[0])}}),D,M&&!g&&v.createElement(mr,{onClick:function(){A({allUserpicsAreShown:!0})}},v.createElement(R.A,{width:"16",height:"16",xlinkHref:"flaticon--points"}))))),x&&v.createElement(or,null,LJ.ml("blog_settings_form.userpic.is_already_uploaded")),S&&v.createElement(or,null,S),y&&w&&v.createElement(jr,null,v.createElement(pt(),{crop:O,onChange:function(e,t){L(t)},onComplete:function(e){P(e)},aspect:1},v.createElement("img",{ref:E,alt:"Crop me",src:y,onLoad:N}))),an&&v.createElement("img",{ref:E,src:y,onLoad:N,style:{display:"none"}}),!an&&y&&!b&&v.createElement(sr,null,v.createElement(nr,{onClick:function(){A({userCancelledCurrentUpload:!0}),F()},type:"button"},LJ.ml("common.cancel")),v.createElement(Er,{type:"button",primary:!0,isLoading:f.isUploading,onClick:U},LJ.ml("blog_settings_form.userpic.action"))),k&&v.createElement(Sr,{ref:j}))};function sn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var un=function(e){var t,r,n,o,i,a,c=e.settingShowingAudience,l=void 0===c?"":c,s=e.setSettingShowingAudience,u=e.isHighlightedAudienceSetting,f=void 0!==u&&u,p=(i=(0,v.useState)(f),a=2,function(e){if(Array.isArray(e))return e}(i)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(i,a)||function(e,t){if(e){if("string"==typeof e)return sn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sn(e,t):void 0}}(i,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=p[0],h=p[1],m=(0,v.useRef)(null);return(0,v.useEffect)((function(){d&&(m.current.focus(),setTimeout((function(){h(!1)}),2e3))}),[d]),v.createElement(Or,{isHighlighted:d},v.createElement(Lr,{htmlFor:"stat-audience",ref:m},null!==(t=Site.journal)&&void 0!==t&&t.is_community?LJ.ml("journal.audience.section.heading.community"):LJ.ml("journal.audience.section.heading")),v.createElement(xr,{id:"stat-audience",className:"lightselect",value:l||"",onChange:s},Site.page.hasOwnProperty("opt_hidefriendofs")&&!(null!==(r=Site)&&void 0!==r&&null!==(r=r.page)&&void 0!==r&&r.opt_hidefriendofs)&&v.createElement("option",{value:"number-followers"},null!==(n=Site.journal)&&void 0!==n&&n.is_community?LJ.ml("journal.audience.section.select.members"):LJ.ml("journal.audience.section.select.followers")),v.createElement("option",{value:"all-audience"},LJ.ml("journal.audience.section.select.readers")),v.createElement("option",{value:"no"},LJ.ml("journal.audience.section.select.no.show"))),"all-audience"===l&&v.createElement(wr,null,LJ.ml("journal.audience.section.hint.readers")),"number-followers"===l&&v.createElement(wr,null,null!==(o=Site.journal)&&void 0!==o&&o.is_community?LJ.ml("journal.audience.section.hint.members"):LJ.ml("journal.audience.section.hint.followers")))};function fn(e){return fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fn(e)}var pn,dn,hn,mn=(pn={no:LJ.ml("setting.badgepro.option.no")},dn=Fe,hn=LJ.ml("setting.badgepro.option.yes"),(dn=function(e){var t=function(e){if("object"!==fn(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==fn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===fn(t)?t:String(t)}(dn))in pn?Object.defineProperty(pn,dn,{value:hn,enumerable:!0,configurable:!0,writable:!0}):pn[dn]=hn,pn),gn=function(e){var t=e.onChange,r=e.value;return v.createElement(fr,null,v.createElement(yr,null,LJ.ml("setting.style.label")),v.createElement(Or,null,v.createElement(Lr,{htmlFor:"show-account-status"},LJ.ml("setting.badgepro.text")),v.createElement(xr,{onChange:t,className:"lightselect",value:r||mn.no,id:"show-account-status"},Object.keys(mn).map((function(e){return v.createElement("option",{value:e,key:e},mn[e])})))))};function yn(e){return yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yn(e)}function vn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bn(e,t,r){return(t=function(e){var t=function(e){if("object"!==yn(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==yn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===yn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wn(){wn=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:O(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",g={};function y(){}function v(){}function b(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(A([])));S&&S!==r&&n.call(S,a)&&(w=S);var E=b.prototype=y.prototype=Object.create(w);function j(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==yn(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,r,n){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=L(c,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function L(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,L(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function A(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(yn(t)+" is not iterable")}return v.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=s(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},j(C.prototype),s(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new C(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(E),s(E,l,"Generator"),s(E,a,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=A,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function xn(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}var Sn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.previewCanvasRef,r=e.existingImgSrc,n=e.patchSettingsModalState,o=(0,v.useRef)(null),i=Fr((0,v.useState)(),2),a=i[0],c=i[1],l=Fr((0,v.useState)(),2),s=l[0],u=l[1],f=Fr((0,v.useState)({}),2),p=f[0],d=f[1],h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d(Dr(Dr({},p),e))},m=p.imgSrc,g=p.isShowDefaultCoverSelect,y=void 0!==g&&g;function b(e){var t,r,n,o=e.currentTarget,i=o.width,a=o.height;c((t=i,r=a,n=Jr,(0,ft.centerCrop)((0,ft.makeAspectCrop)({unit:"%",width:Ur?100:90},n,t,r),t,r)))}return Lt(Ir(Ar().mark((function e(){return Ar().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:null!=s&&s.width&&null!=s&&s.height&&o.current&&t.current&&qt(o.current,t.current,s);case 1:case"end":return e.stop()}}),e)}))),100,[s]),(0,v.useEffect)((function(){if(Ur&&a){var e=o.current,t=e.width,r=e.height;u((0,ft.convertToPixelCrop)(a,t,r))}}),[a]),v.createElement(Yt,null,v.createElement("div",null,v.createElement(Wt,{htmlFor:"coverImageUpload"},Boolean(s)&&v.createElement(Kt,{ref:t}),!m&&v.createElement(Xt,{existingImgSrc:r},!r&&v.createElement(tr,null,LJ.ml("blog_settings_form.prompt.text"))),!s&&v.createElement(Vt,{imageIsSet:r},v.createElement(Qt,null,v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"svgicon flaticon flaticon--upload",width:"20",height:"16"},v.createElement("use",{xlinkHref:"#flaticon--upload"}))),v.createElement(er,{type:"button",onClick:function(){h({isShowDefaultCoverSelect:!0})}},v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"svgicon flaticon flaticon--image-selection",width:"16",height:"16"},v.createElement("use",{xlinkHref:"#flaticon--image-selection"}))),r&&v.createElement(er,{type:"button",onClick:function(e){e.preventDefault(),n({existingImgSrc:null})}},v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"svgicon flaticon flaticon--trash-2",width:"16",height:"16"},v.createElement("use",{xlinkHref:"#flaticon--trash-2"})))),s&&v.createElement($t,null,v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"svgicon flaticon flaticon--image-air",width:"16",height:"16"},v.createElement("use",{xlinkHref:"#flaticon--image-selection"})))),v.createElement(Ut,{isShown:y,onSelectCover:function(e){h({isShowDefaultCoverSelect:!1}),n({coverImageUrl:Ie[e]||""})},onCancelBtnClick:function(){h({isShowDefaultCoverSelect:!1})}})),v.createElement(Cr,{type:"file",accept:"image/*",onChange:function(e){if(e.target.files&&e.target.files.length>0){c(void 0);var t=new FileReader;t.addEventListener("load",(function(){h({imgSrc:t.result.toString()||""}),n({coverImageUrl:t.result.toString()||"",coverImageSourceType:e.target.files[0].type})})),t.readAsDataURL(e.target.files[0])}},id:"coverImageUpload"}),Boolean(m)&&(Ur?v.createElement("img",{ref:o,src:m,onLoad:b,style:{display:"none"}}):v.createElement(Zt,null,v.createElement(pt(),{crop:a,onChange:function(e,t){return c(t)},onComplete:function(e){return u(e)},aspect:Jr},v.createElement("img",{ref:o,alt:"Crop me",src:m,onLoad:b})))))};function En(e){var t,r,n=e.isShown,o=e.isFetchSettings,i=void 0!==o&&o,a=e.isLoading,c=void 0!==a&&a,l=e.coverImageUrl,s=e.journalTitle,u=void 0===s?"":s,f=e.journalSubtitle,p=void 0===f?"":f,d=e.userpics,h=void 0===d?[]:d,m=e.defaultUserpic,g=void 0===m?{}:m,y=e.settingShowingAudience,b=e.settingShowPostCount,w=e.settingShowMemberCount,x=e.userBadgeType,S=e.onSubmitBtnClick,E=void 0===S?function(){}:S,C=e.onFieldChange,O=void 0===C?function(){}:C,L=e.onCancelBtnClick,_=void 0===L?function(){}:L,k=e.handleCloseModal,P=void 0===k?function(){}:k,A=e.patchState,I=void 0===A?function(){}:A,M=e.submitIsAllowed,D=e.isScrollToAudienceSetting,T=Site.current_journal.is_comm,F=(null===(t=Site.remote)||void 0===t?void 0:t.is_paid)&&"verified"!==Site.journal.badge,R=(0,v.useRef)(null),U=function(){var e,t=(e=wn().mark((function e(){return wn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i){e.next=2;break}return e.abrupt("return");case 2:E({previewCanvasRef:R});case 3:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){xn(i,n,o,a,c,"next",e)}function c(e){xn(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();if(!n)return null;var J=v.createElement(v.Fragment,null,v.createElement(gr,null,v.createElement(yr,null,LJ.ml("blog_settings_form.cover_select.title")),v.createElement(Sn,{existingImgSrc:l,previewCanvasRef:R,patchSettingsModalState:function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vn(Object(r),!0).forEach((function(t){bn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e);"existingImgSrc"in e&&(delete t.existingImgSrc,t.coverImageUrl=e.coverImageUrl),O(t)}})),v.createElement(ln,{userpics:h,defaultUserpic:g,onFieldChange:O,onUploadStart:function(){I({submitIsAllowed:!1})},onUploadEnd:function(){I({submitIsAllowed:!0})}}),F&&v.createElement(gn,{onChange:function(e){O({userBadgeType:"no"===e.target.value?null:e.target.value})},value:x}),v.createElement(fr,null,T?v.createElement(yr,null,LJ.ml("community.title.section.heading")):v.createElement(yr,null,LJ.ml("journal.title.section.heading")),v.createElement(vr,{value:u||"",type:"text",maxLength:"100",className:"lightinput lightinput--big",onChange:function(e){O({journalTitle:e.target.value})}}),T?v.createElement(wr,null,LJ.ml("community.title.section.hint")):v.createElement(wr,null,LJ.ml("journal.title.section.hint"))),v.createElement(fr,null,T?v.createElement(yr,null,LJ.ml("community.magazine.section.heading")):v.createElement(yr,null,LJ.ml("journal.magazine.section.heading")),v.createElement(br,{value:p||"",rows:"2",maxLength:"180",className:"lightinput lightinput--big",onChange:function(e){O({journalSubtitle:e.target.value})}}),T?v.createElement(wr,null,LJ.ml("community.magazine.section.hint")):v.createElement(wr,null,LJ.ml("journal.magazine.section.hint"))),v.createElement(fr,null,v.createElement(yr,null,LJ.ml("blog_settings_form.stat_info.title")),v.createElement(un,{settingShowingAudience:y,setSettingShowingAudience:function(e){O({settingShowingAudience:e.target.value})},isHighlightedAudienceSetting:D}),v.createElement(_r,{id:"post_count",label:LJ.ml("blog_settings_form.show_post_count_section.title"),checked:!!b,onChange:function(e){O({settingShowPostCount:e.target.checked})}}),"owner"===(null===(r=Site.journal)||void 0===r?void 0:r.community_relation)?v.createElement(N,{id:"member_count",label:LJ.ml("blog_settings_form.show_member_count_section.title"),checked:!!w,onChange:function(e){O({settingShowMemberCount:e.target.checked})}}):null)),z=v.createElement(ar,null,T?v.createElement(cr,{href:"".concat(Site.siteroot,"/settings/?authas=").concat(Site.journal.username)},LJ.ml("journal.section.settings")):v.createElement(cr,{href:"".concat(Site.siteroot,"/settings/")},LJ.ml("journal.section.settings")),v.createElement(ur,null,v.createElement(j.A,{type:"button",onClick:_,text:!0,sizeL:!0},LJ.ml("journal.section.cancel.btn")),v.createElement(j.A,{type:"button",onClick:U,isLoading:i,disabled:!M,primary:!0,sizeL:!0},LJ.ml("journal.section.submit.btn"))));return T?v.createElement(kr,{title:LJ.ml("blog_settings_form.community.title"),onClose:P,footer:z},J):v.createElement(kr,{title:LJ.ml("blog_settings_form.title"),onClose:P,footer:z},c?v.createElement("div",{style:{minHeight:"500px"}},"Loading..."):J)}var jn=r(2464),Cn=(C.default.div.withConfig({displayName:"SuccessMsgPadder",componentId:"sc-152dpkr-0"})(["margin:200px auto;text-align:center;"]),C.default.div.withConfig({displayName:"SuccessMsgIcon",componentId:"sc-152dpkr-1"})(["font-size:30px;margin-bottom:25px;"]),(0,C.default)(jn.c).withConfig({displayName:"LjUser",componentId:"sc-152dpkr-2"})(["font-weight:inherit !important;text-transform:inherit !important;"])),On=C.default.p.withConfig({displayName:"AboveInputHint",componentId:"sc-152dpkr-3"})(["margin:0px 4px 16px 0px;","{margin-left:4px !important;}"],Cn),Ln=C.default.textarea.withConfig({displayName:"Input",componentId:"sc-152dpkr-4"})(['margin:0px 0px 16px;padding:12px 16px;min-height:100px;font:400 16px/1.2 "ProximaNova",Helvetica,sans-serif;background:#F5F7F8;border-radius:2px;resize:none;']),_n=C.default.div.withConfig({displayName:"BtnWrap",componentId:"sc-152dpkr-5"})(["display:flex;justify-content:right;align-items:center;"]),kn=(C.default.a.withConfig({displayName:"CancelButton",componentId:"sc-152dpkr-6"})(["margin-right:20px;font-weight:600;font-size:13px;line-height:16px;"]),C.default.div.withConfig({displayName:"ErrorMessage",componentId:"sc-152dpkr-7"})(["padding:0 8px 8px;font-size:12px;text-align:end;color:#CB1427;"]));function Pn(e){return Pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pn(e)}function An(){An=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:O(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",g={};function y(){}function v(){}function b(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(A([])));S&&S!==r&&n.call(S,a)&&(w=S);var E=b.prototype=y.prototype=Object.create(w);function j(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==Pn(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,r,n){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=L(c,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function L(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,L(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function A(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(Pn(t)+" is not iterable")}return v.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=s(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},j(C.prototype),s(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new C(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(E),s(E,l,"Generator"),s(E,a,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=A,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function Nn(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function In(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Mn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?In(Object(r),!0).forEach((function(t){Dn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):In(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Dn(e,t,r){return(t=function(e){var t=function(e){if("object"!==Pn(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Pn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Pn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Fn={error:null,message:"",isFetchMessage:!1};function Rn(e){var t,r,n=e.isShown,o=e.afterSubmitCb,i=void 0===o?function(){}:o,a=e.handleCloseModal,c=void 0===a?function(){}:a,l=(t=(0,v.useState)(Fn),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return Tn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Tn(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=l[0],u=l[1],f=(0,v.useRef)(null),p=s.message,d=(0,v.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u((function(t){return Mn(Mn({},t),e)}))}),[]),h=(0,v.useCallback)((function(){d(Fn)}),[d]);(0,v.useEffect)((function(){n||h(),n&&f.current&&f.current.focus()}),[n,h]);var m=function(){var e,t=(e=An().mark((function e(){var t,r;return An().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(p){e.next=2;break}return e.abrupt("return");case 2:return d({isFetchMessage:!0,error:null}),e.prev=3,e.next=6,LJ.Api.callP("inbox.send_message",{recipients:Site.journal.username,body:p});case 6:h(),d({isFetchMessage:!1}),i(),t={type:"success",body:LJ.ml("send_message_form.successfully_sent")},LJ.Messages.add(t),setTimeout((function(){LJ.Messages.fadeOut(t)}),3e3),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(3),d({isFetchMessage:!1,error:Array.isArray(e.t0.data)&&null!==(r=e.t0.data[0])&&void 0!==r&&r.error?e.t0.data[0].error:e.t0.message});case 17:case"end":return e.stop()}}),e,null,[[3,14]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Nn(i,n,o,a,c,"next",e)}function c(e){Nn(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();if(!n)return null;var g=v.createElement(v.Fragment,null,v.createElement(On,null,LJ.ml("send_message_form.send_to_user"),v.createElement(Cn,{userData:{username:Site.journal.display_username,userheadUrl:Site.journal.userhead_url,displayUsername:Site.journal.display_username,profileUrl:Site.journal.profile_url,journalUrl:Site.journal.journal_url}})),v.createElement(Ln,{value:p,className:"lightinput",placeholder:LJ.ml("send_message_form.placeholder"),onChange:function(e){d({message:e.target.value})},onKeyDown:function(e){"Enter"===e.key&&e.ctrlKey&&m()},ref:f}),s.error&&v.createElement(kn,{dangerouslySetInnerHTML:{__html:s.error}})),y=v.createElement(_n,null,v.createElement(j.A,{sizeL:!0,primary:!0,type:"button",onClick:m,disabled:!s.message.length,isLoading:s.isFetchMessage},LJ.ml("send_message_form.submit")));return v.createElement(E.Ay,{title:LJ.ml("send_message_form.title"),onClose:c,footer:y},g)}var Un=C.default.div.withConfig({displayName:"Bages",componentId:"sc-1w0kwv2-0"})(["display:flex;flex-flow:row wrap;justify-content:space-around;flex-wrap:nowrap;margin:0 -8px;@media (max-width:450px){flex-direction:column;align-items:center;}"]),Jn=C.default.div.withConfig({displayName:"Bage",componentId:"sc-1w0kwv2-1"})(["width:100%;max-width:210px;margin:0 8px;padding:14px;border-radius:8px;font-size:14px;color:#7A9199;text-align:center;background-color:#F5F7F8;cursor:pointer;transition:background-color .2s;@media (max-width:450px){:first-child{margin-bottom:8px;}}:hover{background-color:#D9EDF7;}"]),zn=C.default.p.withConfig({displayName:"BageTitle",componentId:"sc-1w0kwv2-2"})(["font-weight:700;"]),Bn=C.default.p.withConfig({displayName:"BageValue",componentId:"sc-1w0kwv2-3"})(["margin-top:6px;font-size:32px;color:#333333;font-weight:700;"]),qn=C.default.p.withConfig({displayName:"BageDescr",componentId:"sc-1w0kwv2-4"})(["margin-top:6px;"]),Gn=(C.default.div.withConfig({displayName:"SectionFooter",componentId:"sc-1w0kwv2-5"})(["display:flex;justify-content:end;gap:8px;margin-top:16px;"]),(0,C.default)(S.A).withConfig({displayName:"Popover",componentId:"sc-1w0kwv2-6"})(["max-height:580px;width:200px;padding:8px;font-size:14px;line-height:1.2;box-shadow:0px 0px 6px rgba(0,0,0,0.16),0px 0px 12px rgba(0,0,0,0.12);overflow:hidden;"])),Hn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.settingValue,r=void 0===t?"number-followers":t,n=e.isShown,o=e.anchorRect,i=e.handleCloseModal,a=void 0===i?function(){}:i,c=e.onShowAudienceSetting,l=void 0===c?function(){}:c,s="number-followers"===r,u="all-audience"===r,f=Site.current_journal.is_comm?v.createElement("span",{dangerouslySetInnerHTML:{__html:LJ.ml("audience.settings.modal.paid.comm.message",{comm_username:Site.current_journal.username})}}):v.createElement("span",{dangerouslySetInnerHTML:{__html:LJ.ml("audience.settings.modal.paid.user.message")}}),p=v.createElement("span",{dangerouslySetInnerHTML:{__html:LJ.ml("audience.settings.modal.unpaid.user.message")}});return!!n&&v.createElement(v.Fragment,null,s&&Site.page.subscribers_count&&Site.page.visitors_count?v.createElement(E.Ay,{title:LJ.ml("audience.settings.modal.show.all.audience.title"),description:LJ.ml("audience.settings.modal.show.all.audience.message"),onClose:a,withCloseBtn:!0},v.createElement(Un,null,v.createElement(Jn,{onClick:l},v.createElement(zn,null,LJ.ml("audience.settings.modal.show.all.audience.now.title")),v.createElement(Bn,null,Site.page.subscribers_count),v.createElement(qn,null,LJ.ml("audience.settings.modal.show.all.audience.now.descr",{count:Site.page.subscribers_count}))),v.createElement(Jn,{onClick:l},v.createElement(zn,null,LJ.ml("audience.settings.modal.show.all.audience.will.title",{count:Site.page.visitors_count})),v.createElement(Bn,null,Site.page.visitors_count),v.createElement(qn,null,LJ.ml("audience.settings.modal.show.all.audience.will.descr",{count:Site.page.visitors_count}))))):null,o&&u?v.createElement(Gn,{positioningGetter:function(e){var t=e.objectRect,r=LJ.Util.Positioning.RectNearRect.calculateCoords({anchorRect:o,objectRect:t,placement:{x:"right",y:"alignTopEdges"},margins:{x:10,y:0}}),n={x:r.x,y:r.y},i=n.x+t.width+25-window.innerWidth;return i>0&&(n.x-=i,n.y+=o.height+13),{position:n}},onClose:a},Site.remote.is_paid?f:p):null)},$n=C.default.div.withConfig({displayName:"BtnWrap",componentId:"sc-1yx7wnv-0"})(["display:flex;justify-content:right;align-items:center;gap:8px;margin-top:16px;"]);function Yn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Wn={title:LJ.ml("blog_header.journal_theme_change_prompt.title"),description:LJ.ml("blog_header.journal_theme_change_prompt.description"),cancel:LJ.ml("blog_header.journal_theme_change_prompt.cancel"),submit:LJ.ml("blog_header.journal_theme_change_prompt.submit")},Xn=function(e){var t,r,n=e.handleCloseModal,o=void 0===n?function(){}:n,i=e.targetTheme,a=void 0===i?"air/default_theme":i,c=e.isShown,l=e.journalId,s=(t=(0,v.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return Yn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Yn(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],f=s[1];return l&&c?v.createElement(E.Ay,{onClose:o,title:Wn.title,description:Wn.description},v.createElement($n,null,v.createElement(j.A,{type:"button",onClick:function(){o()},text:!0,sizeL:!0},Wn.cancel),v.createElement(j.A,{type:"button",onClick:function(){f(!0);var e={theme:a,userid:l};LJ.Api.callP("settings.set_journal_theme",e).then((function(){window.location.reload()})).finally((function(){o()}))},isLoading:u,disabled:u,primary:!0,sizeL:!0},Wn.submit))):null};function Kn(e){return Kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kn(e)}function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zn.apply(this,arguments)}function Vn(){Vn=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:O(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",g={};function y(){}function v(){}function b(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(A([])));S&&S!==r&&n.call(S,a)&&(w=S);var E=b.prototype=y.prototype=Object.create(w);function j(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==Kn(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,r,n){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=L(c,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function L(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,L(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function A(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(Kn(t)+" is not iterable")}return v.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=s(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},j(C.prototype),s(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new C(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(E),s(E,l,"Generator"),s(E,a,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=A,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function Qn(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function eo(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Qn(i,n,o,a,c,"next",e)}function c(e){Qn(i,n,o,a,c,"throw",e)}a(void 0)}))}}function to(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ro(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?to(Object(r),!0).forEach((function(t){no(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):to(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function no(e,t,r){return(t=function(e){var t=function(e){if("object"!==Kn(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Kn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Kn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var io=function(){var e,t,r,n,o,i=(n=(0,v.useState)({coverImageUrl:null,coverImageId:null,isCoverImageUrlAvailable:null===(e=Site.page)||void 0===e?void 0:e.journal_header_settings.isCoverImageUrlAvailable,journalTitle:null,journalSubtitle:null,defaultUserpic:null,settingShowingAudience:"number-followers",userBadgeType:Site.journal.badge,settingShowPostCount:!0,settingShowMemberCount:(null===(t=Site.journal)||void 0===t?void 0:t.is_community)||!1,settingsModal:{isRequestedToOpen:!1,isShown:!1,successMessageIsShown:!1,coverImageUrl:null,journalTitle:null,journalSubtitle:null,settingShowingAudience:null,userBadgeType:Site.journal.badge,settingShowPostCount:!0,settingShowMemberCount:(null===(r=Site.journal)||void 0===r?void 0:r.is_community)||!1,submitIsAllowed:!0,isScrollToAudienceSetting:!1,coverImageSourceType:null},messageModal:{isShown:!1},audiencePopover:{isShown:!1,top:0,left:0},journalThemeChangePrompt:{isShown:!1}}),o=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(n,o)||function(e,t){if(e){if("string"==typeof e)return oo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oo(e,t):void 0}}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],c=i[1],l=a.stateIsInited,s=a.audiencePopover,u=(0,v.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c((function(t){return ro(ro({},t),e)}))}),[c]),f=(0,v.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c((function(t){return ro(ro({},t),{},{settingsModal:ro(ro({},t.settingsModal),e)})}))}),[c]),p=Site.current_journal.is_comm,d=Site.journal.id;return(0,v.useEffect)((function(){var e=function(){u(ro(ro({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{stateIsInited:!0}))};return LJ.Event.on("BlogHeader.initState",e),function(){LJ.Event.off("BlogHeader.initState",e)}}),[u]),(0,v.useEffect)((function(){var e=function(){f({isRequestedToOpen:!0})},t=new URLSearchParams(window.location.search);if(null!==t.get(Te)){t.delete(Te);var r=t.toString().length?"".concat(window.location.origin,"?").concat(t.toString()):"".concat(window.location.origin);window.history.pushState("","",r),e()}return LJ.Event.on("SettingsModal.showRequest",e),function(){LJ.Event.off("SettingsModal.showRequest",e)}}),[f]),(0,v.useEffect)((function(){if(a.settingsModal.isRequestedToOpen&&!a.settingsModal.isShown&&a.stateIsInited){var e,t;null!==(e=Site)&&void 0!==e&&e.page.hasOwnProperty("opt_hidefriendofs")&&null!==(t=Site)&&void 0!==t&&null!==(t=t.page)&&void 0!==t&&t.opt_hidefriendofs&&"number-followers"===a.settingShowingAudience&&(a.settingShowingAudience="no");var r={coverImageUrl:a.coverImageUrl,defaultCoverImageUrl:a.defaultCoverImageUrl,journalTitle:a.journalTitle,journalSubtitle:a.journalSubtitle,defaultUserpic:a.defaultUserpic,settingShowingAudience:a.settingShowingAudience,userBadgeType:a.userBadgeType,settingShowPostCount:a.settingShowPostCount,settingShowMemberCount:a.settingShowMemberCount,userpics:a.userpics};f(ro(ro({},r),{},{isShown:!0,isRequestedToOpen:!1}))}}),[a,f]),(0,v.useEffect)((function(){var e=function(){var e;null!==(e=Site)&&void 0!==e&&e.remote?u({messageModal:ro(ro({},a.messageModal),{},{isShown:!0})}):LJ.Util.Action.login()};return LJ.Event.on("SendMessageModal.showRequest",e),function(){LJ.Event.off("SendMessageModal.showRequest",e)}}),[a,u]),(0,v.useEffect)((function(){var e=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).triggerBtnNode;u({audiencePopover:ro(ro({},s),{},{isShown:!0,anchorNode:e})})};return LJ.Event.on("AudiencePopover.showRequest",e),function(){LJ.Event.off("AudiencePopover.showRequest",e)}}),[u,s]),(0,v.useEffect)((function(){var e=function(){var e=s.isShown,t=s.anchorNode,r=s.anchorRect,n=void 0===r?{}:r;if(e&&t){var o=s.anchorNode.getBoundingClientRect(),i=document.scrollingElement,a=i.scrollLeft,c=i.scrollTop,l={x:o.left+a,y:o.top+c,width:o.width,height:o.height};n.x===l.x&&n.y===l.y||u({audiencePopover:ro(ro({},s),{},{anchorRect:l})})}};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[s,u]),(0,v.useEffect)((function(){var e=function(){LJ.Components.ReportModal.setComplaintData({journalId:Site.journal.id,photoId:a.coverImageId,targetType:"photo"}),LJ.Components.ReportModal.show()};return LJ.Event.on("CoverReportControl.click",e),function(){LJ.Event.off("CoverReportControl.click",e)}}),[a]),(0,v.useEffect)((function(){a.stateIsInited&&LJ.Event.trigger("BlogHeader.rerendered",{compState:a})}),[a]),l?v.createElement(v.Fragment,null,v.createElement(En,Zn({},a.settingsModal,{onSubmitBtnClick:eo(Vn().mark((function e(){var t,r,n,o,i=arguments;return Vn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(i.length>0&&void 0!==i[0]?i[0]:{}).previewCanvasRef,u({settingsModal:ro(ro({},a.settingsModal),{},{isFetchSettings:!0})}),r=a.coverImageUrl!==a.settingsModal.coverImageUrl,e.next=6,ut({savedSettings:{coverImageUrl:a.coverImageUrl},settingsModalState:ro({},a.settingsModal),previewCanvasRef:t});case 6:n=e.sent,o=ro(ro({},n),{},{settingsModal:ro(ro({},a.settingsModal),{},{isShown:!1,isScrollToAudienceSetting:!1})}),!a.isCoverImageUrlAvailable&&r&&(o.isCoverImageUrlAvailable=!0),p&&"Air"===Site.page.styleLayout&&Site.page.journalStyleLayout!==Site.page.styleLayout&&(o.journalThemeChangePrompt=ro(ro({},a.journalThemeChangePrompt),{},{isShown:!0})),u(o);case 11:case"end":return e.stop()}}),e)}))),onFieldChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u({settingsModal:ro(ro({},a.settingsModal),e)})},onCancelBtnClick:function(){u({settingsModal:ro(ro({},a.settingsModal),{},{isShown:!1,isScrollToAudienceSetting:!1})})},handleCloseModal:function(){u({settingsModal:ro(ro({},a.settingsModal),{},{isShown:!1,submitIsAllowed:!0,isScrollToAudienceSetting:!1})})},patchState:f})),v.createElement(Rn,Zn({},a.messageModal,{afterSubmitCb:function(){u({messageModal:ro(ro({},a.messageModal),{},{isShown:!1})})},handleCloseModal:function(){u({messageModal:ro(ro({},a.messageModal),{},{isShown:!1})})}})),v.createElement(Hn,Zn({},a.audiencePopover,{settingValue:a.settingShowingAudience,onShowAudienceSetting:function(){u({audiencePopover:ro(ro({},a.audiencePopover),{},{isShown:!1}),settingsModal:ro(ro({},a.settingsModal),{},{isRequestedToOpen:!0,isScrollToAudienceSetting:!0})})},handleCloseModal:function(){u({audiencePopover:ro(ro({},a.audiencePopover),{},{isShown:!1})})}})),v.createElement(Xn,Zn({},a.journalThemeChangePrompt,{handleCloseModal:function(){u({journalThemeChangePrompt:ro(ro({},a.journalThemeChangePrompt),{},{isShown:!1})})},journalId:d}))):null};function ao(e){return ao="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ao(e)}function co(){co=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:O(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",g={};function y(){}function v(){}function b(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(A([])));S&&S!==r&&n.call(S,a)&&(w=S);var E=b.prototype=y.prototype=Object.create(w);function j(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==ao(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,r,n){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=L(c,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function L(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,L(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function A(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(ao(t)+" is not iterable")}return v.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=s(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},j(C.prototype),s(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new C(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(E),s(E,l,"Generator"),s(E,a,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=A,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function lo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function so(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lo(Object(r),!0).forEach((function(t){uo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function uo(e,t,r){return(t=function(e){var t=function(e){if("object"!==ao(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==ao(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ao(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fo(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function po(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){fo(i,n,o,a,c,"next",e)}function c(e){fo(i,n,o,a,c,"throw",e)}a(void 0)}))}}var ho=function(){var e,t,r,n,o,i,a,c,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=l.coverImageUrl,f=l.coverImageId,p=l.isCoverImageUrlAvailable,d=l.journalTitle,h=l.journalSubtitle,m=l.defaultUserpic,g=l.settingShowingAudience,y=l.userBadgeType,v=l.settingShowPostCount,b=l.settingShowMemberCount;u?p&&Je(u):Je(""),d&&function(e){if(e){var t=document.querySelector(".js--journal-container .js--journal-title");t&&(t.textContent=e)}}(d),h&&function(e){if(e){var t=e.split("\n"),r=document.querySelector(".js--journal-container .js--journal-subtitle");if(r){var n=document.createElement("div");t.forEach((function(e,r){var o=document.createElement("span");o.textContent=e,n.appendChild(o),r<t.length-1&&n.insertAdjacentHTML("beforeend","<br>")})),r.innerHTML=n.innerHTML}}}(h),null!=m&&m.url&&(null===(e=Site)||void 0===e||null===(e=e.journal)||void 0===e?void 0:e.username)===(null===(t=Site)||void 0===t||null===(t=t.remote)||void 0===t?void 0:t.username)&&function(e){if(e){var t=document.querySelector(".js--userpic-image"),r=document.querySelector(".js--userpic-wrapper img");t&&((n=t.classList,function(e){if(Array.isArray(e))return Ue(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||Re(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).includes("s-userpic-empty")&&(t.innerHTML="",t.classList.remove("s-userpic-empty")),t.setAttribute("style","background-image:url(".concat(e,") !important"))),r&&(r.src=e)}var n}(m.url),null!=m&&m.url&&["owner","maintainer"].includes(Site.journal.community_relation)&&(n=m.url,(o=document.querySelector(".js--userpic-wrapper img"))&&(o.src=n)),g&&function(e){var t,r,n=document.querySelector(".js--journal-container .js--header .js--number-followers-btn-wrapper"),o=document.querySelector(".js--journal-container .js--header .js--all-audience-btn-wrapper");if(n&&o){var i=n.querySelector(".js--number-followers-btn"),a=o.querySelector(".js--all-audience-btn");(Site.journal.username===(null===(t=Site.remote)||void 0===t?void 0:t.username)||"owner"===(null===(r=Site.journal)||void 0===r?void 0:r.community_relation))&&i&&a&&(i.style.display="",a.style.display=""),"number-followers"===e?(n.style.display="",n.style.opacity=1,n.style.visibility="visible",o.style.display="none",o.style.opacity=0,o.style.visibility="hidden"):"all-audience"===e?function(){var e=document.querySelector(".js--journal-container .js--header .js--all-audience-btn-wrapper"),t=document.querySelector(".js--journal-container .js--header .js--number-followers-btn-wrapper");e&&t&&(t.style.display="none",t.style.opacity=0,t.style.visibility="hidden",e.style.display="",e.style.opacity=1,e.style.visibility="visible")}():(n.style.display="none",o.style.display="none")}}(g),"verified"!==Site.journal.badge&&y!==s.userBadgeType&&ze(y),i=v,(a=document.querySelector(".js--journal-container .js--header .js--post-counter"))&&(a.style.display=i?"":"none"),null!==(r=Site.journal)&&void 0!==r&&r.is_community&&(c=b,document.querySelector(".js--journal-container .js--header .js--member-counter").style.display=c?"":"none"),function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).coverId,t=document.querySelector(".js--cover-report-control");t&&(t.style.display=e?"block":"none")}({coverId:f})},mo=function(){var e=po(co().mark((function e(){var t,r,n,o,i;return co().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xe();case 2:return n=e.sent,e.next=5,Ke();case 5:return o=e.sent,i=so(so(so({},n),o),{},{journalTitle:(void 0,c=document.querySelector(".js--journal-container .js--journal-title"),(c?c.textContent:"")||(null===(t=Site.journal)||void 0===t?void 0:t.journal_title)),journalSubtitle:(void 0,a=document.querySelector(".js--journal-container .js--journal-subtitle"),(a?Array.from(a.childNodes).map((function(e){return"BR"===e.tagName?"\n":e.textContent})).join(""):"")||(null===(r=Site.journal)||void 0===r?void 0:r.journal_subtitle))}),e.abrupt("return",i);case 8:case"end":return e.stop()}var a,c}),e)})));return function(){return e.apply(this,arguments)}}(),go=function(){var e=po(co().mark((function e(){var t,r,n;return co().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=document.querySelector(".js--header")){e.next=3;break}return e.abrupt("return");case 3:return LJ.Util.DOM.initPromise.then((function(){var e,t,r,n;null===(e=document.querySelector(".js--journal-container .js--header .js--settings-btn"))||void 0===e||e.addEventListener("click",(function(e){e.preventDefault(),LJ.Event.trigger("SettingsModal.showRequest")})),null===(t=document.querySelector(".js--journal-container .js--header .js--send-message-btn"))||void 0===t||t.addEventListener("click",(function(e){e.preventDefault(),LJ.Event.trigger("SendMessageModal.showRequest"),e.stopPropagation()})),null===(r=document.querySelector(".js--journal-container .js--header .js--all-audience-btn"))||void 0===r||r.addEventListener("click",(function(e){LJ.Event.trigger("AudiencePopover.showRequest",{top:e.clientY+document.scrollingElement.scrollTop,left:e.clientX,triggerBtnNode:e.target})})),null===(n=document.querySelector(".js--journal-container .js--header .js--number-followers-btn"))||void 0===n||n.addEventListener("click",(function(e){LJ.Event.trigger("AudiencePopover.showRequest",{top:e.clientY+document.scrollingElement.scrollTop,left:e.clientX,triggerBtnNode:e.target})}));var o=document.querySelector(".js--cover-report-control");o&&o.addEventListener("click",(function(e){e.preventDefault(),LJ.Event.trigger("CoverReportControl.click",e)}))})),e.next=6,LJ.Util.DOM.initPromise.then((function(){var e=document.createElement("div");t.appendChild(e),(0,pe.flushSync)((function(){(0,b.H)(e).render(v.createElement(io,null))}))}));case 6:return r={},LJ.Event.on("BlogHeader.rerendered",(function(){var e,t,n=so({},(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).compState);delete n.settingsModal,delete n.messageModal,delete n.audiencePopover,null!==(e=Site)&&void 0!==e&&e.page.hasOwnProperty("opt_hidefriendofs")&&null!==(t=Site)&&void 0!==t&&null!==(t=t.page)&&void 0!==t&&t.opt_hidefriendofs&&"number-followers"===n.settingShowingAudience&&(n.settingShowingAudience="no"),JSON.stringify(n)!==JSON.stringify(r)&&ho(n,r),r=n})),e.next=10,mo();case 10:n=e.sent,LJ.Event.trigger("BlogHeader.initState",n);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();const yo=e=>{const{message:t,fontSize:r}=e;return v.createElement("div",{style:{fontSize:r}},t)};var vo=C.default.div.withConfig({displayName:"Wrapper",componentId:"sc-1vx2hu8-0"})(["border-bottom:1px solid rgb(218,227,230) !important;"]),bo=C.default.a.withConfig({displayName:"Link",componentId:"sc-1vx2hu8-1"})(["display:flex;align-items:center;width:100%;padding:4px 18px !important;border-radius:4px !important;font-size:13px !important;line-height:1.4 !important;font-weight:400 !important;font-family:'ProximaNova',Helvetica,sans-serif !important;text-decoration:none !important;color:#3B4246 !important;background-color:#F7F9FF;text-decoration:none !important;box-sizing:border-box !important;cursor:pointer;svg{flex-shrink:0;width:32px;height:32px;}svg + span{margin-left:10px;}"]);const wo=function(){return v.createElement(vo,null,v.createElement(bo,{href:Site.journal.rkn_license,target:"_blank"},v.createElement(R.A,{width:"32",height:"32",xlinkHref:"flaticons-v2--rkn-license"}),v.createElement("span",null,LJ.ml("journal.rkn_license"))))};r(1537),r(8422);var xo,So=new CustomEvent("frontBundledS2Ready");window.dispatchEvent(So),LJ.UserRelations.init(),LJ.Misc.NotifSubs.init(),go(),(document.querySelectorAll(".j-user-subscribe-btn")||[]).forEach((function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Site.journal){var t=e.targetNode,r=e.initialUserData,n=e.initProps,o=void 0===n?{}:n;if(!t)throw new Error("SubscribeBtn2022:initSubscribeButton2022:targetNode is not provided");var i,a=o.targetUserData,l=void 0===a?r||((i={targetId:Site.journal.id,targetUsername:Site.journal.username,isInSubscriptionList:Site.journal.is_subscriber,isInFriendList:Site.journal.is_friend,friendGroupsData:[],isCommunity:Site.journal.is_community,isFollowerOfRemote:c,remoteIsCommunityOwner:"owner"===Site.journal.community_relation,remoteIsCommunityMember:Site.journal.is_community&&Site.journal.is_member,joinRequestPending:Site.journal.is_invite_sent&&Site.journal.is_friend,isBannedInCommunity:Site.journal.is_banned,isClosedCommunity:"closed"===Site.journal.community_membership,isSyndicated:Site.journal.is_syndicated,isNews:Site.journal.is_news}).isCommunity&&(i.isInSubscriptionList=Site.journal.is_friend),i):a,s={id:t.getAttribute("id")};t.closest(".js--controlstrip")&&(s.theme="dark",s.gluePopups=!0),t.removeAttribute("id"),t.classList.remove("lightbutton","lightbutton--blue"),y.Y({targetNode:t,initProps:{targetUserData:l,customProps:s}})}}({targetNode:e})})),(0,g._)(),(xo=document.querySelectorAll("[data-notif-sub-btn-mount-point]")).length&&xo.forEach(fe),function(){var e,t=document.querySelector("[data-react-mark-10k-subscribers]");if(null!==(e=Site.journal)&&void 0!==e&&e.rkn_license&&t){var r=window.location,n=r.origin,o=r.pathname,i=Site.journal.journal_url,a=Site.remote_is_sup;i&&"".concat(n,"/")===i&&"/"===o&&a&&(0,b.H)(t).render(v.createElement(wo,null))}}(),LJ.Event.on("relations.changed",(function(e){var t,r=e.action,n=e.username,o=e.source,i=e.sourceCompId,a=e.data;if("SubscribeBtn2022"===o)if(Site.journal.is_community&&Site.journal.username===n&&["subscribe","unsubscribe","leaveComm"].includes(r))window.location.reload();else{var c=["subscribe","addToFriends"].includes(r)&&(null===(t=a.recommendations)||void 0===t?void 0:t.length);c&&setTimeout((function(){LJ.Event.trigger("SubRecommendModal.requestShow",{recommendations:a.recommendations})}),700),c||"subscribe"!==r||"blog-header-sub-btn"!==i||setTimeout((function(){LJ.Event.trigger("NotifSubBtn2022.notifTip.requestShow",{compId:"blog-header-notif-sub-btn"})}))}})),LJ.Page.testTS=()=>(console.log("Hello TypeScript from htdocs/front-bundled"),(()=>{const e=document.createElement("div");document.body.prepend(e),(0,b.H)(e).render(v.createElement(yo,Object.assign({},{message:"Hello World from .tsx component from htdocs/front-bundled",fontSize:30})))})(),98798798898)},8093:function(e,t,r){var n;n=e=>(()=>{"use strict";var t={899:t=>{t.exports=e}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{n.r(o),n.d(o,{Component:()=>m,areCropsEqual:()=>c,centerCrop:()=>s,clamp:()=>a,containCrop:()=>p,convertToPercentCrop:()=>u,convertToPixelCrop:()=>f,default:()=>m,defaultCrop:()=>i,makeAspectCrop:()=>l,nudgeCrop:()=>d});var e=n(899),t=n.n(e);function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}const i={x:0,y:0,width:0,height:0,unit:"px"};function a(e,t,r){return Math.min(Math.max(e,t),r)}function c(e,t){return e.width===t.width&&e.height===t.height&&e.x===t.x&&e.y===t.y&&e.unit===t.unit}function l(e,t,r,n){const o=f(e,r,n);return e.width&&(o.height=o.width/t),e.height&&(o.width=o.height*t),o.y+o.height>n&&(o.height=n-o.y,o.width=o.height*t),o.x+o.width>r&&(o.width=r-o.x,o.height=o.width/t),"%"===e.unit?u(o,r,n):o}function s(e,t,r){const n=f(e,t,r);return n.x=(t-n.width)/2,n.y=(r-n.height)/2,"%"===e.unit?u(n,t,r):n}function u(e,t,r){return"%"===e.unit?{...i,...e,unit:"%"}:{unit:"%",x:e.x?e.x/t*100:0,y:e.y?e.y/r*100:0,width:e.width?e.width/t*100:0,height:e.height?e.height/r*100:0}}function f(e,t,r){return e.unit?"px"===e.unit?{...i,...e,unit:"px"}:{unit:"px",x:e.x?e.x*t/100:0,y:e.y?e.y*r/100:0,width:e.width?e.width*t/100:0,height:e.height?e.height*r/100:0}:{...i,...e,unit:"px"}}function p(e,t,r,n,o,i=0,a=0,c=n,l=o){const s={...e};let u=Math.min(i,n),f=Math.min(a,o),p=Math.min(c,n),d=Math.min(l,o);t&&(t>1?(u=a?a*t:u,f=u/t,p=c*t):(f=i?i/t:f,u=f*t,d=l/t)),s.y<0&&(s.height=Math.max(s.height+s.y,f),s.y=0),s.x<0&&(s.width=Math.max(s.width+s.x,u),s.x=0);const h=n-(s.x+s.width);h<0&&(s.x=Math.min(s.x,n-u),s.width+=h);const m=o-(s.y+s.height);if(m<0&&(s.y=Math.min(s.y,o-f),s.height+=m),s.width<u&&("sw"!==r&&"nw"!=r||(s.x-=u-s.width),s.width=u),s.height<f&&("nw"!==r&&"ne"!=r||(s.y-=f-s.height),s.height=f),s.width>p&&("sw"!==r&&"nw"!=r||(s.x-=p-s.width),s.width=p),s.height>d&&("nw"!==r&&"ne"!=r||(s.y-=d-s.height),s.height=d),t){const e=s.width/s.height;if(e<t){const e=Math.max(s.width/t,f);"nw"!==r&&"ne"!=r||(s.y-=e-s.height),s.height=e}else if(e>t){const e=Math.max(s.height*t,u);"sw"!==r&&"nw"!=r||(s.x-=e-s.width),s.width=e}}return s}function d(e,t,r,n){const o={...e};return"ArrowLeft"===t?"nw"===n?(o.x-=r,o.y-=r,o.width+=r,o.height+=r):"w"===n?(o.x-=r,o.width+=r):"sw"===n?(o.x-=r,o.width+=r,o.height+=r):"ne"===n?(o.y+=r,o.width-=r,o.height-=r):"e"===n?o.width-=r:"se"===n&&(o.width-=r,o.height-=r):"ArrowRight"===t&&("nw"===n?(o.x+=r,o.y+=r,o.width-=r,o.height-=r):"w"===n?(o.x+=r,o.width-=r):"sw"===n?(o.x+=r,o.width-=r,o.height-=r):"ne"===n?(o.y-=r,o.width+=r,o.height+=r):"e"===n?o.width+=r:"se"===n&&(o.width+=r,o.height+=r)),"ArrowUp"===t?"nw"===n?(o.x-=r,o.y-=r,o.width+=r,o.height+=r):"n"===n?(o.y-=r,o.height+=r):"ne"===n?(o.y-=r,o.width+=r,o.height+=r):"sw"===n?(o.x+=r,o.width-=r,o.height-=r):"s"===n?o.height-=r:"se"===n&&(o.width-=r,o.height-=r):"ArrowDown"===t&&("nw"===n?(o.x+=r,o.y+=r,o.width-=r,o.height-=r):"n"===n?(o.y+=r,o.height-=r):"ne"===n?(o.y+=r,o.width-=r,o.height-=r):"sw"===n?(o.x-=r,o.width+=r,o.height+=r):"s"===n?o.height+=r:"se"===n&&(o.width+=r,o.height+=r)),o}const h={capture:!0,passive:!1};class m extends e.PureComponent{constructor(){super(...arguments),this.docMoveBound=!1,this.mouseDownOnCrop=!1,this.dragStarted=!1,this.evData={startClientX:0,startClientY:0,startCropX:0,startCropY:0,clientX:0,clientY:0,isResize:!0},this.componentRef=(0,e.createRef)(),this.mediaRef=(0,e.createRef)(),this.initChangeCalled=!1,this.state={cropIsActive:!1,newCropIsBeingDrawn:!1},this.onCropPointerDown=e=>{const{crop:t,disabled:r}=this.props,n=this.getBox();if(!t)return;const o=f(t,n.width,n.height);if(r)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const i=e.target.dataset.ord,a=Boolean(i);let c=e.clientX,l=e.clientY,s=o.x,u=o.y;if(i){const t=e.clientX-n.x,r=e.clientY-n.y;let a=0,f=0;"ne"===i||"e"==i?(a=t-(o.x+o.width),f=r-o.y,s=o.x,u=o.y+o.height):"se"===i||"s"===i?(a=t-(o.x+o.width),f=r-(o.y+o.height),s=o.x,u=o.y):"sw"===i||"w"==i?(a=t-o.x,f=r-(o.y+o.height),s=o.x+o.width,u=o.y):"nw"!==i&&"n"!=i||(a=t-o.x,f=r-o.y,s=o.x+o.width,u=o.y+o.height),c=s+n.x+a,l=u+n.y+f}this.evData={startClientX:c,startClientY:l,startCropX:s,startCropY:u,clientX:e.clientX,clientY:e.clientY,isResize:a,ord:i},this.mouseDownOnCrop=!0,this.setState({cropIsActive:!0})},this.onComponentPointerDown=e=>{const{crop:t,disabled:r,locked:n,keepSelection:o,onChange:i}=this.props,a=this.getBox();if(r||n||o&&t)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const c=e.clientX-a.x,l=e.clientY-a.y,s={unit:"px",x:c,y:l,width:0,height:0};this.evData={startClientX:e.clientX,startClientY:e.clientY,startCropX:c,startCropY:l,clientX:e.clientX,clientY:e.clientY,isResize:!0},this.mouseDownOnCrop=!0,i(f(s,a.width,a.height),u(s,a.width,a.height)),this.setState({cropIsActive:!0,newCropIsBeingDrawn:!0})},this.onDocPointerMove=e=>{const{crop:t,disabled:r,onChange:n,onDragStart:o}=this.props,i=this.getBox();if(r||!t||!this.mouseDownOnCrop)return;e.cancelable&&e.preventDefault(),this.dragStarted||(this.dragStarted=!0,o&&o(e));const{evData:a}=this;let l;a.clientX=e.clientX,a.clientY=e.clientY,l=a.isResize?this.resizeCrop():this.dragCrop(),c(t,l)||n(f(l,i.width,i.height),u(l,i.width,i.height))},this.onComponentKeyDown=e=>{const{crop:t,disabled:r,onChange:n,onComplete:o}=this.props,i=this.getBox();if(r)return;const c=e.key;let l=!1;if(!t)return;const s=this.makePixelCrop(),p=(navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)?m.nudgeStepLarge:e.shiftKey?m.nudgeStepMedium:m.nudgeStep;if("ArrowLeft"===c?(s.x-=p,l=!0):"ArrowRight"===c?(s.x+=p,l=!0):"ArrowUp"===c?(s.y-=p,l=!0):"ArrowDown"===c&&(s.y+=p,l=!0),l){e.cancelable&&e.preventDefault(),s.x=a(s.x,0,i.width-s.width),s.y=a(s.y,0,i.height-s.height);const t=f(s,i.width,i.height),r=u(s,i.width,i.height);n(t,r),o&&o(t,r)}},this.onHandlerKeyDown=(e,t)=>{const{aspect:r=0,crop:n,disabled:o,minWidth:i=0,minHeight:a=0,maxWidth:l,maxHeight:s,onChange:h,onComplete:g}=this.props,y=this.getBox();if(o||!n)return;if("ArrowUp"!==e.key&&"ArrowDown"!==e.key&&"ArrowLeft"!==e.key&&"ArrowRight"!==e.key)return;e.stopPropagation(),e.preventDefault();const v=(navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)?m.nudgeStepLarge:e.shiftKey?m.nudgeStepMedium:m.nudgeStep,b=p(d(f(n,y.width,y.height),e.key,v,t),r,t,y.width,y.height,i,a,l,s);if(!c(n,b)){const e=u(b,y.width,y.height);h(b,e),g&&g(b,e)}},this.onDocPointerDone=e=>{const{crop:t,disabled:r,onComplete:n,onDragEnd:o}=this.props,i=this.getBox();this.unbindDocMove(),!r&&t&&this.mouseDownOnCrop&&(this.mouseDownOnCrop=!1,this.dragStarted=!1,o&&o(e),n&&n(f(t,i.width,i.height),u(t,i.width,i.height)),this.setState({cropIsActive:!1,newCropIsBeingDrawn:!1}))},this.onDragFocus=e=>{var t;null===(t=this.componentRef.current)||void 0===t||t.scrollTo(0,0)}}get document(){return document}getBox(){const e=this.mediaRef.current;if(!e)return{x:0,y:0,width:0,height:0};const{x:t,y:r,width:n,height:o}=e.getBoundingClientRect();return{x:t,y:r,width:n,height:o}}componentDidUpdate(e){const{crop:t,onComplete:r}=this.props;if(r&&!e.crop&&t){const{width:e,height:n}=this.getBox();e&&n&&r(f(t,e,n),u(t,e,n))}}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}bindDocMove(){this.docMoveBound||(this.document.addEventListener("pointermove",this.onDocPointerMove,h),this.document.addEventListener("pointerup",this.onDocPointerDone,h),this.document.addEventListener("pointercancel",this.onDocPointerDone,h),this.docMoveBound=!0)}unbindDocMove(){this.docMoveBound&&(this.document.removeEventListener("pointermove",this.onDocPointerMove,h),this.document.removeEventListener("pointerup",this.onDocPointerDone,h),this.document.removeEventListener("pointercancel",this.onDocPointerDone,h),this.docMoveBound=!1)}getCropStyle(){const{crop:e}=this.props;if(e)return{top:`${e.y}${e.unit}`,left:`${e.x}${e.unit}`,width:`${e.width}${e.unit}`,height:`${e.height}${e.unit}`}}dragCrop(){const{evData:e}=this,t=this.getBox(),r=this.makePixelCrop(),n=e.clientX-e.startClientX,o=e.clientY-e.startClientY;return r.x=a(e.startCropX+n,0,t.width-r.width),r.y=a(e.startCropY+o,0,t.height-r.height),r}getPointRegion(e){const{evData:t}=this,r=t.clientX-e.x,n=t.clientY-e.y<t.startCropY;return r<t.startCropX?n?"nw":"sw":n?"ne":"se"}resizeCrop(){const{evData:e}=this,t=this.getBox(),{aspect:r=0,minWidth:n=0,minHeight:o=0,maxWidth:i,maxHeight:a}=this.props,c=this.getPointRegion(t),l=this.makePixelCrop(),s=e.ord?e.ord:c,u=e.clientX-e.startClientX,f=e.clientY-e.startClientY,d={unit:"px",x:0,y:0,width:0,height:0};"ne"===c?(d.x=e.startCropX,d.width=u,r?(d.height=d.width/r,d.y=e.startCropY-d.height):(d.height=Math.abs(f),d.y=e.startCropY-d.height)):"se"===c?(d.x=e.startCropX,d.y=e.startCropY,d.width=u,d.height=r?d.width/r:f):"sw"===c?(d.x=e.startCropX+u,d.y=e.startCropY,d.width=Math.abs(u),d.height=r?d.width/r:f):"nw"===c&&(d.x=e.startCropX+u,d.width=Math.abs(u),r?(d.height=d.width/r,d.y=e.startCropY-d.height):(d.height=Math.abs(f),d.y=e.startCropY+f));const h=p(d,r,c,t.width,t.height,n,o,i,a);return r||m.xyOrds.indexOf(s)>-1?(l.x=h.x,l.y=h.y,l.width=h.width,l.height=h.height):m.xOrds.indexOf(s)>-1?(l.x=h.x,l.width=h.width):m.yOrds.indexOf(s)>-1&&(l.y=h.y,l.height=h.height),l}createCropSelection(){const{ariaLabels:e=m.defaultProps.ariaLabels,disabled:r,locked:n,renderSelectionAddon:o,ruleOfThirds:i,crop:a}=this.props,c=this.getCropStyle();if(a)return t().createElement("div",{style:c,className:"ReactCrop__crop-selection",onPointerDown:this.onCropPointerDown,"aria-label":e.cropArea,tabIndex:0,onKeyDown:this.onComponentKeyDown,role:"group"},!r&&!n&&t().createElement("div",{className:"ReactCrop__drag-elements",onFocus:this.onDragFocus},t().createElement("div",{className:"ReactCrop__drag-bar ord-n","data-ord":"n"}),t().createElement("div",{className:"ReactCrop__drag-bar ord-e","data-ord":"e"}),t().createElement("div",{className:"ReactCrop__drag-bar ord-s","data-ord":"s"}),t().createElement("div",{className:"ReactCrop__drag-bar ord-w","data-ord":"w"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-nw","data-ord":"nw",tabIndex:0,"aria-label":e.nwDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"nw"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-n","data-ord":"n",tabIndex:0,"aria-label":e.nDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"n"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-ne","data-ord":"ne",tabIndex:0,"aria-label":e.neDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"ne"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-e","data-ord":"e",tabIndex:0,"aria-label":e.eDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"e"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-se","data-ord":"se",tabIndex:0,"aria-label":e.seDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"se"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-s","data-ord":"s",tabIndex:0,"aria-label":e.sDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"s"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-sw","data-ord":"sw",tabIndex:0,"aria-label":e.swDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"sw"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-w","data-ord":"w",tabIndex:0,"aria-label":e.wDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"w"),role:"button"})),o&&t().createElement("div",{className:"ReactCrop__selection-addon",onMouseDown:e=>e.stopPropagation()},o(this.state)),i&&t().createElement(t().Fragment,null,t().createElement("div",{className:"ReactCrop__rule-of-thirds-hz"}),t().createElement("div",{className:"ReactCrop__rule-of-thirds-vt"})))}makePixelCrop(){const e={...i,...this.props.crop||{}},t=this.getBox();return f(e,t.width,t.height)}render(){const{aspect:e,children:n,circularCrop:o,className:i,crop:a,disabled:c,locked:l,style:s,ruleOfThirds:u}=this.props,{cropIsActive:f,newCropIsBeingDrawn:p}=this.state,d=a?this.createCropSelection():null,h=function(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}("ReactCrop",i,{"ReactCrop--active":f,"ReactCrop--disabled":c,"ReactCrop--locked":l,"ReactCrop--new-crop":p,"ReactCrop--fixed-aspect":a&&e,"ReactCrop--circular-crop":a&&o,"ReactCrop--rule-of-thirds":a&&u,"ReactCrop--invisible-crop":!this.dragStarted&&a&&!a.width&&!a.height});return t().createElement("div",{ref:this.componentRef,className:h,style:s},t().createElement("div",{ref:this.mediaRef,className:"ReactCrop__child-wrapper",onPointerDown:this.onComponentPointerDown},n),d)}}m.xOrds=["e","w"],m.yOrds=["n","s"],m.xyOrds=["nw","ne","se","sw"],m.nudgeStep=1,m.nudgeStepMedium=10,m.nudgeStepLarge=100,m.defaultProps={ariaLabels:{cropArea:"Use the arrow keys to move the crop selection area",nwDragHandle:"Use the arrow keys to move the north west drag handle to change the crop selection area",nDragHandle:"Use the up and down arrow keys to move the north drag handle to change the crop selection area",neDragHandle:"Use the arrow keys to move the north east drag handle to change the crop selection area",eDragHandle:"Use the up and down arrow keys to move the east drag handle to change the crop selection area",seDragHandle:"Use the arrow keys to move the south east drag handle to change the crop selection area",sDragHandle:"Use the up and down arrow keys to move the south drag handle to change the crop selection area",swDragHandle:"Use the arrow keys to move the south west drag handle to change the crop selection area",wDragHandle:"Use the up and down arrow keys to move the west drag handle to change the crop selection area"}}})(),o})(),e.exports=n(r(6540))},8228:(e,t,r)=>{"use strict";r.d(t,{DD:()=>o,NM:()=>n,NT:()=>i});var n=[{name:"topStart",edge:"top",align:"start",axis:"x",placement:{x:"alignLeftEdges",y:"above"},arrow:{edge:"bottom",align:"left"}},{name:"top",edge:"top",align:"center",axis:"x",placement:{x:"alignCenters",y:"above"},arrow:{edge:"bottom",align:"center"}},{name:"topEnd",edge:"top",align:"end",axis:"x",placement:{x:"alignRightEdges",y:"above"},arrow:{edge:"bottom",align:"right"}},{name:"bottomStart",edge:"bottom",align:"start",axis:"x",placement:{x:"alignLeftEdges",y:"below"},arrow:{edge:"top",align:"left"}},{name:"bottom",edge:"bottom",align:"center",axis:"x",placement:{x:"alignCenters",y:"below"},arrow:{edge:"top",align:"center"}},{name:"bottomEnd",edge:"bottom",align:"end",axis:"x",placement:{x:"alignRightEdges",y:"below"},arrow:{edge:"top",align:"right"}},{name:"leftStart",edge:"left",align:"start",axis:"y",placement:{x:"left",y:"alignTopEdges"},arrow:{edge:"right",align:"top"}},{name:"left",edge:"left",align:"center",axis:"y",placement:{x:"left",y:"alignCenters"},arrow:{edge:"right",align:"center"}},{name:"leftEnd",edge:"left",align:"end",axis:"y",placement:{x:"left",y:"alignBottomEdges"},arrow:{edge:"right",align:"bottom"}},{name:"rightStart",edge:"right",align:"start",axis:"y",placement:{x:"right",y:"alignTopEdges"},arrow:{edge:"left",align:"top"}},{name:"right",edge:"right",align:"center",axis:"y",placement:{x:"right",y:"alignCenters"},arrow:{edge:"left",align:"center"}},{name:"rightEnd",edge:"right",align:"end",axis:"y",placement:{x:"right",y:"alignBottomEdges"},arrow:{edge:"left",align:"bottom"}}],o=Object.fromEntries(n.map((function(e){return[e.name,e.placement]}))),i={placement:o.bottomStart,position:{x:-1e3,y:-1e3},margins:{},overflowFixParams:{enabled:!0,safeEdgePad:25,canUseAltEdge:!0,canUseAltAxis:!0,excludePlacements:[]}}},8422:(e,t,r)=>{"use strict";var n,o=r(6540),i=r(5338);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){var n,o,i;n=e,o=t,i=r[t],(o=function(e){var t=function(e){if("object"!==a(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===a(t)?t:String(t)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(){s=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),c=new N(n||[]);return o(a,"_invoke",{value:_(e,r,c)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="suspendedYield",g="executing",y="completed",v={};function b(){}function w(){}function x(){}var S={};f(S,c,(function(){return this}));var E=Object.getPrototypeOf,j=E&&E(E(I([])));j&&j!==r&&n.call(j,c)&&(S=j);var C=x.prototype=b.prototype=Object.create(S);function O(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function r(o,i,c,l){var s=d(e[o],e,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==a(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,c,l)}),(function(e){r("throw",e,c,l)})):t.resolve(f).then((function(e){u.value=e,c(u)}),(function(e){return r("throw",e,c,l)}))}l(s.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function _(t,r,n){var o=h;return function(i,a){if(o===g)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=k(c,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var s=d(t,r,n);if("normal"===s.type){if(o=n.done?y:m,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function I(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(a(t)+" is not iterable")}return w.prototype=x,o(C,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,f(e,u,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},O(L.prototype),f(L.prototype,l,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new L(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(C),f(C,u,"Generator"),f(C,c,(function(){return this})),f(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=I,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function u(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){u(i,n,o,a,c,"next",e)}function c(e){u(i,n,o,a,c,"throw",e)}a(void 0)}))}}var p=function(){var e=f(s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n){e.next=2;break}return e.abrupt("return",n);case 2:return e.prev=2,e.next=5,LJ.Prop.get("friendsfeed_tour");case 5:t=e.sent,e.next=11;break;case 8:e.prev=8,e.t0=e.catch(2),console.warn('Couldn\'t get "friendsfeed_tour" prop value');case 11:return n=t,e.abrupt("return",t);case 13:case"end":return e.stop()}}),e,null,[[2,8]])})));return function(){return e.apply(this,arguments)}}(),d=function(){var e=f(s().mark((function e(){var t,r,o,i=arguments;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},e.next=3,p();case 3:return r=e.sent,o="function"==typeof t?t(r):l(l({},r),t),LJ.Prop.set("friendsfeed_tour",o),n=o,e.abrupt("return",o);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),h="newYear26PromoBanner",m={wasClosedByUser:!1,linkWasClicked:!1,timesSeen:0},g=r(5292),y=r(4044),v=r(2600),b=r(2968),w=r(9056),x=w.default.div.withConfig({displayName:"BannerWrapper",componentId:"sc-bc8igl-0"})(["position:fixed;right:",";bottom:",";box-sizing:border-box;z-index:5000;*{box-sizing:inherit;}@media (max-width:420px){bottom:15px;right:15px;left:0;}@media (max-width:380px){left:calc(50% - 175px);}"],(function(e){var t=e.$right;return"".concat(t,"px")}),(function(e){var t=e.$bottom;return"".concat(t,"px")})),S=w.default.div.withConfig({displayName:"Content",componentId:"sc-bc8igl-1"})(["position:relative;display:flex;flex-direction:column;align-items:center;max-width:40%;gap:16px;text-align:center;z-index:10;"]),E=w.default.div.withConfig({displayName:"ImageYear",componentId:"sc-bc8igl-2"})(["width:147px;height:38px;background-image:url(\"data:image/svg+xml,%3Csvg width='147' height='38' viewBox='0 0 147 38' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M141.873 12.8888C140.891 12.4355 139.805 12.0862 138.615 11.8407C137.444 11.5763 136.189 11.4441 134.848 11.4441C133.979 11.4441 133.148 11.5102 132.355 11.6424C131.562 11.7746 130.863 11.9445 130.259 12.1523C129.654 12.36 129.173 12.5961 128.814 12.8604C128.455 13.1248 128.276 13.3892 128.276 13.6536C128.276 13.8613 128.342 14.0691 128.474 14.2768C129.267 13.918 130.183 13.5686 131.222 13.2287C132.279 12.8888 133.488 12.7188 134.848 12.7188C137.019 12.7188 138.87 13.0493 140.4 13.7102C141.948 14.3523 143.204 15.2305 144.167 16.3447C145.149 17.44 145.867 18.7241 146.32 20.1971C146.773 21.6512 147 23.1809 147 24.7861C147 26.9578 146.566 28.8652 145.697 30.5081C144.847 32.1511 143.714 33.5297 142.298 34.6439C140.9 35.7392 139.304 36.5701 137.51 37.1366C135.716 37.6843 133.894 37.9581 132.043 37.9581C129.777 37.9581 127.596 37.5899 125.5 36.8534C123.423 36.098 121.591 34.9649 120.004 33.4541C118.418 31.9245 117.153 30.0077 116.209 27.7038C115.264 25.3998 114.792 22.6805 114.792 19.5456C114.792 17.9026 114.943 16.2786 115.245 14.6734C115.567 13.0682 116.048 11.5385 116.69 10.0844C117.332 8.63028 118.144 7.28947 119.126 6.06197C120.108 4.83447 121.26 3.77693 122.582 2.88935C123.923 1.98289 125.434 1.27471 127.114 0.764828C128.814 0.254943 130.693 0 132.752 0C135.037 0 137.152 0.273827 139.097 0.821482C141.061 1.35025 142.723 2.23783 144.082 3.48422C144.101 3.71083 144.111 3.98466 144.111 4.3057C144.111 4.62674 144.111 4.90056 144.111 5.12718C144.111 5.82591 144.063 6.54353 143.969 7.28003C143.875 8.01653 143.733 8.73415 143.544 9.43288C143.355 10.1127 143.119 10.7548 142.836 11.3591C142.553 11.9445 142.232 12.4544 141.873 12.8888ZM129.579 23.1998C129.579 23.823 129.758 24.3423 130.117 24.7578C130.476 25.1543 130.976 25.3526 131.618 25.3526C132.053 25.3526 132.402 25.2582 132.667 25.0694C132.931 24.8616 133.063 24.5689 133.063 24.1912C133.063 23.7002 132.893 23.3603 132.553 23.1715C132.232 22.9637 131.807 22.8599 131.279 22.8599C130.957 22.8599 130.636 22.8976 130.315 22.9732C130.013 23.0298 129.768 23.1054 129.579 23.1998Z' fill='%23FF0004'/%3E%3Cpath d='M107.943 13.5686C107.943 15.0038 107.725 16.373 107.291 17.676C106.857 18.9602 106.167 20.131 105.223 21.1885C104.298 22.2272 103.108 23.1431 101.654 23.9363C100.2 24.7105 98.4437 25.3054 96.3852 25.7209C96.3852 26.1174 96.4797 26.4007 96.6685 26.5707C96.8574 26.7217 97.084 26.7973 97.3484 26.7973C97.8394 26.7973 98.4342 26.7123 99.133 26.5423C99.8506 26.3724 100.578 26.1269 101.314 25.8058C102.07 25.4848 102.797 25.1071 103.495 24.6728C104.213 24.2195 104.827 23.7191 105.337 23.1714C106.243 24.0779 106.913 25.1638 107.348 26.429C107.801 27.6943 108.028 28.9973 108.028 30.3382C108.028 31.6412 107.82 32.897 107.404 34.1056C106.989 35.3143 106.356 36.3435 105.507 37.1933H80.0406C78.5865 35.0404 77.8594 32.5949 77.8594 29.8566C77.8594 28.7235 77.9822 27.5904 78.2277 26.4574C78.4732 25.3054 78.8603 24.2667 79.3891 23.3414C81.1453 23.0015 82.8922 22.501 84.6295 21.8401C86.3858 21.1602 87.9532 20.3859 89.3318 19.5173C90.7293 18.6297 91.8624 17.6571 92.7311 16.5996C93.5998 15.542 94.0341 14.4562 94.0341 13.342C94.0341 12.7943 93.9114 12.3411 93.6658 11.9823C93.4204 11.6046 93.0615 11.4157 92.5894 11.4157C92.0607 11.4157 91.6924 11.5857 91.4847 11.9256C91.2958 12.2467 91.2014 12.596 91.2014 12.9737C91.2014 13.3514 91.2864 13.7291 91.4563 14.1068C91.6263 14.4845 91.8718 14.7866 92.1928 15.0133C91.683 15.7686 91.0409 16.4768 90.2666 17.1378C89.4923 17.7799 88.652 18.3747 87.7455 18.9224C86.8579 19.4512 85.9326 19.9233 84.9695 20.3387C84.0252 20.7353 83.1188 21.0563 82.2501 21.3018C80.626 20.2254 79.3796 18.9224 78.5109 17.3927C77.6422 15.8442 77.2079 14.0974 77.2079 12.1522C77.2079 10.226 77.6139 8.51695 78.4259 7.02506C79.238 5.51429 80.3333 4.24902 81.7119 3.22925C83.0905 2.20948 84.6956 1.43521 86.5275 0.906436C88.3593 0.377666 90.2855 0.113281 92.3062 0.113281C94.4401 0.113281 96.4513 0.405993 98.3398 0.991417C100.247 1.57684 101.909 2.44553 103.325 3.5975C104.742 4.73058 105.865 6.13748 106.696 7.81821C107.527 9.48006 107.943 11.3969 107.943 13.5686Z' fill='%23FF0004'/%3E%3Cpath d='M54.1559 37.9298C51.7197 37.9298 49.5008 37.5332 47.499 36.7401C45.4973 35.928 43.7788 34.7289 42.3435 33.1425C40.9272 31.5562 39.8224 29.5922 39.0293 27.2505C38.255 24.9088 37.8679 22.1895 37.8679 19.0924C37.8679 16.1275 38.2739 13.4647 39.0859 11.1042C39.898 8.74359 41.031 6.74182 42.4852 5.09885C43.9393 3.45589 45.6578 2.20006 47.6407 1.33137C49.6235 0.443789 51.7953 0 54.1559 0C56.4976 0 58.6598 0.443789 60.6427 1.33137C62.6445 2.20006 64.3725 3.45589 65.8266 5.09885C67.2807 6.74182 68.4138 8.74359 69.2258 11.1042C70.0378 13.4647 70.4439 16.1275 70.4439 19.0924C70.4439 22.1895 70.0473 24.9088 69.2541 27.2505C68.4799 29.5922 67.3751 31.5562 65.9399 33.1425C64.5235 34.7289 62.8145 35.928 60.8127 36.7401C58.8109 37.5332 56.592 37.9298 54.1559 37.9298ZM59.8213 25.7492C59.5946 25.5792 59.2736 25.3054 58.8581 24.9277C58.4427 24.55 57.98 24.1062 57.4701 23.5964C56.9791 23.0865 56.4598 22.5294 55.9121 21.9251C55.3834 21.3019 54.8829 20.6692 54.4108 20.0272C54.0142 19.4795 53.6082 18.8658 53.1927 18.1859C52.7773 17.5061 52.3901 16.8451 52.0313 16.203C51.6725 15.5421 51.3609 14.9472 51.0965 14.4184C50.8322 13.8897 50.6622 13.4931 50.5867 13.2287C50.0012 13.2287 49.7085 13.5686 49.7085 14.2485C49.7085 14.5128 49.7841 14.8717 49.9351 15.3249C50.1051 15.7592 50.3317 16.2597 50.615 16.8262C50.8983 17.3928 51.2382 17.9971 51.6348 18.6391C52.0313 19.2812 52.4657 19.9233 52.9378 20.5654L53.3344 21.1036C53.9387 21.9345 54.5241 22.6805 55.0907 23.3414C55.6761 24.0024 56.2143 24.5595 56.7053 25.0127C57.2152 25.4659 57.6684 25.8153 58.065 26.0608C58.4616 26.3063 58.792 26.4291 59.0564 26.4291C59.2075 26.4291 59.3586 26.3818 59.5097 26.2874C59.6796 26.193 59.7835 26.0136 59.8213 25.7492Z' fill='%23FF0004'/%3E%3Cpath d='M30.7348 13.5686C30.7348 15.0038 30.5176 16.373 30.0832 17.676C29.6489 18.9602 28.9596 20.131 28.0154 21.1885C27.09 22.2272 25.9003 23.1431 24.4462 23.9363C22.9921 24.7105 21.2358 25.3054 19.1774 25.7209C19.1774 26.1174 19.2718 26.4007 19.4606 26.5707C19.6495 26.7217 19.8761 26.7973 20.1405 26.7973C20.6315 26.7973 21.2263 26.7123 21.9251 26.5423C22.6427 26.3724 23.3697 26.1269 24.1062 25.8058C24.8616 25.4848 25.5887 25.1071 26.2874 24.6728C27.005 24.2195 27.6188 23.7191 28.1287 23.1714C29.0351 24.0779 29.7055 25.1638 30.1399 26.429C30.5931 27.6943 30.8197 28.9973 30.8197 30.3382C30.8197 31.6412 30.612 32.897 30.1965 34.1056C29.7811 35.3143 29.1484 36.3435 28.2986 37.1933H2.8327C1.37858 35.0404 0.65152 32.5949 0.65152 29.8566C0.65152 28.7235 0.77427 27.5904 1.01977 26.4574C1.26527 25.3054 1.65241 24.2667 2.18118 23.3414C3.93745 23.0015 5.68428 22.501 7.42166 21.8401C9.17794 21.1602 10.7454 20.3859 12.1239 19.5173C13.5214 18.6297 14.6545 17.6571 15.5232 16.5996C16.3919 15.542 16.8262 14.4562 16.8262 13.342C16.8262 12.7943 16.7035 12.3411 16.458 11.9823C16.2125 11.6046 15.8537 11.4157 15.3815 11.4157C14.8528 11.4157 14.4845 11.5857 14.2768 11.9256C14.0879 12.2467 13.9935 12.596 13.9935 12.9737C13.9935 13.3514 14.0785 13.7291 14.2485 14.1068C14.4184 14.4845 14.6639 14.7866 14.985 15.0133C14.4751 15.7686 13.833 16.4768 13.0587 17.1378C12.2845 17.7799 11.4441 18.3747 10.5376 18.9224C9.65005 19.4512 8.7247 19.9233 7.76159 20.3387C6.81736 20.7353 5.91089 21.0563 5.0422 21.3018C3.41812 20.2254 2.17173 18.9224 1.30304 17.3927C0.434347 15.8442 0 14.0974 0 12.1522C0 10.226 0.40602 8.51695 1.21806 7.02506C2.0301 5.51429 3.12541 4.24902 4.50399 3.22925C5.88257 2.20948 7.48776 1.43521 9.31957 0.906436C11.1514 0.377666 13.0776 0.113281 15.0983 0.113281C17.2322 0.113281 19.2435 0.405993 21.1319 0.991417C23.0393 1.57684 24.7011 2.44553 26.1175 3.5975C27.5338 4.73058 28.6574 6.13748 29.4884 7.81821C30.3193 9.48006 30.7348 11.3969 30.7348 13.5686Z' fill='%23FF0004'/%3E%3C/svg%3E%0A\");background-position:center;background-size:contain;"]),j=w.default.p.withConfig({displayName:"Text",componentId:"sc-bc8igl-3"})(["margin:0;font-size:16px;line-height:1.4;font-weight:600;color:#fff;"]),C=w.default.div.withConfig({displayName:"Button",componentId:"sc-bc8igl-4"})(["display:flex;align-items:center;justify-content:center;min-height:38px;padding:8px;border-radius:3px;font-size:16px;color:#fff;background-color:#09C;transition:background-color .2s;&:hover{background-color:#00ACE6;}&:active{background-color:#0086B3;}"]),O=w.default.div.withConfig({displayName:"ImageHorse",componentId:"sc-bc8igl-5"})(["position:absolute;right:30px;bottom:10px;width:70px;height:70px;transform:translateY(-30px) rotate(10deg);aspect-ratio:1 / 1;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='75' height='77' fill='none' viewBox='0 0 75 77'%3E%3Cmask id='a' width='75' height='77' x='0' y='0' maskUnits='userSpaceOnUse' style='mask-type:luminance'%3E%3Cpath fill='%23fff' d='m9.644 0 65.245 9.382-9.644 67.065L0 67.066z'/%3E%3C/mask%3E%3Cg mask='url(%23a)'%3E%3Cpath fill='%23c50003' d='M45.73 49.19c-.006.03-.015.072 0 0-.257 1.212-.414 2.093-.344 2.259-4.772-.01-9.524-.992-13.767-3.217-1.498 6.918-3.901 14.266-5.595 21.304-.075.31-.256.583-.51.772a1.33 1.33 0 0 1-.883.26c-1.53-.1-3.002-.499-4.532-.785a1.35 1.35 0 0 1-1.078-1.558c1.795-10.49 3.29-20.737 1.179-31.41a98 98 0 0 1-.241-1.27q.322-.04.646-.078c-.001-.015.491-.112.489-.126 3.637-.419 7.08-.563 10.71-.797 1.715-.11 3.496.023 5.18-.378 1.18 1.662 4.539 1.605 6.102.836 1.144-.563 2.023-1.47 2.944-2.33-2.081 2.606-2.989 8.212 1.302 9.112-.245 1.351-.654 3.162-1.035 4.852l-.008.032-.138.616c-.13.581-.311 1.398-.42 1.906'/%3E%3Cpath fill='%23ff0004' d='M38.602 21.419c.668-.319 1.34-.59 1.667-1.306-.169-.923-.493-1.754-.827-2.625-.22-.573-.436-1.2-.876-1.73-2.286 1.749-2.71 4.734-3.365 7.375 1.028-.78 2.238-1.16 3.401-1.715m1.891 5.155c.668-.318 1.34-.59 1.667-1.306-.168-.922-.493-1.754-.826-2.624-.22-.574-.437-1.202-.877-1.73-2.285 1.748-2.71 4.733-3.365 7.374 1.028-.78 2.239-1.16 3.401-1.715'/%3E%3Cpath fill='%23e66048' d='M60.084 32.05c.32.218.719.402 1.113.31.41-.094.539-.54.407-.904-.142-.39-.427-.685-.806-.796a12 12 0 0 0-2.247-.426c.42.692.859 1.353 1.533 1.817'/%3E%3Cpath fill='%23c50003' d='M7.883 25.478c.33.542.75 1.014 1.286 1.37 1.051.698 2.354.619 3.664.249-.37-1.218-.805-2.824-1.123-4.004-1.38.998-2.822 1.875-3.828 2.385m40.903 2.995c5.203.859 12.717 1.01 16.827 4.116 3.64 2.75 3.754 7.706 3.673 11.936l.002-.001c-.178 9.23-2.916 20.794-3.86 30.01a1.61 1.61 0 0 1-1.55 1.447c-1.28.04-2.662-.2-3.986-.432a1.6 1.6 0 0 1-.917-.514 1.6 1.6 0 0 1-.4-.98c-.145-2.735.12-6.122-.062-8.623-.376-5.145-1.384-10.388-3.077-15.342a38.6 38.6 0 0 1-8.446 1.325c.036-.186.248-1.31.513-2.745.1-.547.284-1.555.388-2.14l.07-.392c.306-1.72.59-3.4.69-4.24 3.535-.138 5.194-4.005 5.316-7.395.227 2.256.909 4.69 2.755 5.872.707.452 1.607.873 2.473.727 1.336-.224 1.929-1.39 2.14-2.621.06-.346.087-.687.082-1.038-.055-.53-.211-1.645-.384-2.154l-.144-.39a10 10 0 0 0-1.47-2.509c.598.633 1.086 1.288 1.616 1.88l.2.22s1.157 1.085 1.983 1.43l.53.2c.39.13.796.208 1.208.128.827-.162 1.194-.776 1.245-1.488l-.03-.62c-.129-.807-.588-1.608-1.19-1.94-.747-.396-1.62-.877-2.419-1.162-4.217-1.506-8.47-1.74-12.936-2.382q-.42-.085-.84-.183m-34.302-7.708c-.554.57-1.24 1.162-1.976 1.732.568 2.072 1.163 4.092 1.191 4.317 1.128-.411 2.22-.96 3.118-1.331q.067.105.131.212c1.897-3.973 3.335-8.656 4.158-12.766-1.793 2.901-4.311 5.451-6.622 7.836m-1.146-.255c2.006-1.75 4.21-3.87 5.977-6.24a.3.3 0 0 1-.1.059c-.077.025-.227-.065-.296-.097-.282-.121-.544-.277-.818-.413-1.168-.578-2.337-1.48-3.253-2.462q.069-.088.148-.166c-1.157 1.082-2.958 2.882-4.295 4.243.206 1.208.908 3.753 1.51 5.973.46-.349.855-.66 1.126-.897m1.136-6.547a.78.78 0 0 1 .65.59q.037.151.016.309a.79.79 0 0 1-.893.674.78.78 0 0 1-.517-.31.8.8 0 0 1 .16-1.112.78.78 0 0 1 .584-.15M11.419 22c-.5-1.895-1.01-3.811-1.551-5.711-.251.26-.463.48-.62.646q-.75.796-1.5 1.594c-.371.396-.791.838-.945 1.375-.167.58-.088 1.245-.023 1.835.117 1.064.341 2.17.779 3.128.65-.55 2.39-1.785 3.859-2.867'/%3E%3Cpath fill='%23c50003' d='M22.275 33.286c1.745-.173 3.866-.372 5.533-.442 2.876-.12 5.754-.333 8.62-.596-.008-3.463 5.287-5.494 7.921-5.09q.114.062.32.142a4 4 0 0 1-.653-.434c-1.568-1.296-1.443-3.76-2.287-5.826-1.39-3.403-2.801-6.656-5.524-9.15-2.56-2.344-6.524-5.072-10.019-5.33-.83-.06-3.666.76-3.939.665-.37-.129-2.976-3.369-4.878-5.86-.504-.66-1.55-.305-1.561.529-.034 2.837-.082 5.647.07 8.51-.097.078-.22.183-.36.31 1.099 1.345 2.62 2.304 4.164 3.052 1.32-1.863 2.466-4.447 2.91-6.542 0 0 .468-.07.775-.157-.301 1.59-.95 3.521-1.717 4.926l.045-.07c.378 3.299-3.004 12.846-4.281 14.595 1.163 2.216 1.715 4.596 2.177 7.03.513-.043 1.318-.125 2.265-.22.1-.048.215-.048.418-.042zm19.058-10.641c.333.87.657 1.701.826 2.624-.327.715-.999.987-1.667 1.306-1.162.554-2.373.934-3.4 1.715.654-2.642 1.078-5.627 3.364-7.375.44.528.657 1.156.877 1.73m-2.768-6.886c.44.529.657 1.156.876 1.73.334.871.658 1.702.827 2.624-.327.716-.999.988-1.667 1.307-1.163.554-2.373.934-3.4 1.714.654-2.64 1.078-5.626 3.364-7.374m-4.008-4.308c.93.595 1.594 1.443 2.309 2.149.448.443.914.969 1.114 1.589-1.11 2.423-4.288 2.268-5.843 4.157.26-2.01.063-3.99.883-5.911.317-.744.802-1.603 1.537-1.983m-6.008-.94c.189-.792.384-1.778 1.015-2.34 1.369.721 2.78 1.557 3.878 2.568.056.235.03.427-.009.688-.128.864-.766 1.67-1.442 2.252-1.016.877-2.442 1.283-3.221 2.438-.199.292-.176.624-.285.943-.398-2.181-.447-4.385.065-6.547zm-5.049 4.75q.009-.11.042-.217c.062-.49-.06-1.037-.02-1.52.128-1.613.444-3.157 1.043-4.66.29-.732.667-1.559 1.334-2.009.401.094.737.244 1.106.368.69.232 1.252.462 1.813.945-.219 2.079-1.418 3.59-2.972 4.876-.619.513-2.038 1.114-2.304 2q-.014.112-.041.218'/%3E%3Cpath fill='%23c50003' d='M22.274 33.287c-.203-.007-.318-.006-.418.042zm1.227-18.025q.028-.108.041-.219a1 1 0 0 0-.041.219'/%3E%3Cpath fill='%23ff0004' d='M25.846 13.044c1.554-1.287 2.754-2.798 2.972-4.877-.56-.483-1.123-.712-1.813-.945-.369-.122-.705-.273-1.106-.367-.667.45-1.043 1.276-1.334 2.008-.599 1.503-.914 3.047-1.043 4.66-.039.484.082 1.03.02 1.52.266-.887 1.685-1.488 2.304-2m2.923 3.072c.78-1.155 2.206-1.56 3.223-2.437.675-.583 1.313-1.389 1.441-2.252.039-.262.065-.454.01-.689-1.099-1.011-2.51-1.846-3.88-2.568-.63.562-.825 1.549-1.014 2.341-.512 2.164-.462 4.367-.064 6.548.109-.32.087-.652.284-.944zm3.368 3.228c1.556-1.889 4.734-1.733 5.843-4.157-.2-.62-.665-1.146-1.114-1.589-.715-.705-1.378-1.553-2.309-2.148-.735.381-1.22 1.24-1.537 1.983-.82 1.92-.623 3.901-.883 5.911'/%3E%3Cpath fill='%23c50003' d='m21.695 11.923-.045.07c.767-1.405 1.416-3.336 1.717-4.926-.307.087-.774.157-.774.157-.445 2.095-1.592 4.68-2.911 6.542-1.545-.748-3.065-1.707-4.165-3.053l-.008.009c-.118.122-.239.221-.356.324a3 3 0 0 0-.156.146q-.076.076-.148.166c.916.982 2.086 1.884 3.253 2.462.274.136.537.293.818.414.07.03.22.121.296.096a.3.3 0 0 0 .1-.058c-1.767 2.369-3.97 4.49-5.977 6.24-.271.237-.667.547-1.127.896-.601-2.22-1.303-4.764-1.51-5.973v-.004c-.282.227-.835.854-.835.854l.002.004c.54 1.9 1.05 3.815 1.55 5.71-1.467 1.084-3.209 2.318-3.858 2.868l-.019.015c-.13.113.248.488.331.602l.01-.006c1.006-.509 2.449-1.387 3.829-2.384.317 1.18.752 2.786 1.122 4.004l.005.017c.123-.037.863-.284.863-.284q0-.007-.002-.016c-.028-.225-.623-2.246-1.19-4.317.735-.57 1.422-1.16 1.975-1.733 2.31-2.384 4.83-4.934 6.621-7.835-.822 4.11-2.26 8.793-4.158 12.766l-.008.018s.273.545.448.84l.027-.036c1.277-1.748 4.659-11.295 4.28-14.594'/%3E%3Cpath fill='%23000' d='M14.966 15.257a.8.8 0 0 0-.101-1.118.78.78 0 0 0-1.11.105.8.8 0 0 0 .102 1.118.78.78 0 0 0 1.109-.105'/%3E%3Cpath fill='%23fecfc0' d='M47.58 48.245c.1-.548.206-1.13.31-1.714l.07-.392c.306-1.72.59-3.4.69-4.242a5.5 5.5 0 0 1-1.316-.113c-.248 1.36-.66 3.184-1.043 4.884l-.14.616q-.213.952-.419 1.905c-.257 1.212-.415 2.093-.345 2.259q.01.025.028.028s1.416.172 1.57-.033l.005-.027q.3-1.584.59-3.17M21.033 35.417c3.637-.419 7.142-.64 10.771-.873 1.715-.111 3.496.023 5.18-.378a2.2 2.2 0 0 1-.237-.427 3.9 3.9 0 0 1-.319-1.49c-2.867.263-5.744.475-8.62.595-1.667.07-3.789.269-5.533.442l-.419.042c-.947.095-1.752.178-2.265.221l-.037.003c.056.586.222 1.396.369 1.998l.036-.005a102 102 0 0 1 1.073-.128'/%3E%3Cpath fill='%23fecfc0' d='M36.429 32.248c0 .471.1.97.318 1.491q.095.227.237.427c1.18 1.662 4.54 1.604 6.103.835 1.143-.562 2.022-1.47 2.944-2.329-2.082 2.606-2.989 8.212 1.302 9.112q.196.041.406.069.453.06.91.044c3.536-.137 5.195-4.003 5.316-7.394.227 2.257.909 4.69 2.756 5.872.707.452 1.606.873 2.472.727 1.337-.224 1.93-1.39 2.14-2.621q.09-.515.083-1.038a6 6 0 0 0-.034-.59 7.2 7.2 0 0 0-.35-1.564 8 8 0 0 0-.144-.389 10 10 0 0 0-1.47-2.51c.598.633 1.086 1.288 1.616 1.881l.2.22c.548.58 1.157 1.084 1.983 1.43l.058.025q.233.095.471.176c.39.128.796.207 1.209.127.827-.162 1.194-.776 1.244-1.488a2.7 2.7 0 0 0-.03-.62c-.128-.807-.587-1.608-1.189-1.94-.748-.397-1.621-.877-2.42-1.162-4.216-1.506-8.47-1.74-12.936-2.382a30 30 0 0 1-.84-.183c-.43-.1-.884-.212-1.334-.33l1.668.44c-.67 1.089-2.5 1.971-3.653 2.294-.494.138-1.281.173-1.586-.335-.307-.515.036-1.122.43-1.502.703-.675 2.394-1.096 3.098-.907-1.104-.29-2.168-.61-2.74-.832a3 3 0 0 1-.32-.142c-2.634-.405-7.93 1.627-7.921 5.09zm28.186 2.437c-.684.37-1.367-.73-.434-1.032.651-.165 1.143.647.434 1.032m-3.817-4.025c.38.11.664.406.806.796.132.364.002.81-.407.905-.394.091-.794-.093-1.113-.31-.675-.464-1.113-1.125-1.533-1.817.761.07 1.514.212 2.247.426m-2.577 5.826c.885.029 1.715 1.5.546 1.954-1.276.498-1.907-1.598-.546-1.954m-3.662-7.193 2.021.29c.596.724 1.802 2.523 1.114 3.404-.147.187-.293.42-.544.465-.572.102-1.116-.213-1.53-.567-.834-.716-1.398-2.447-1.06-3.592m-5.806 9.368c-1.248-.019-1.113-1.907.102-1.936 1 .106 1.006 1.951-.102 1.936m1.734-9.885 2.01.28c-.07 1.54-.124 3.89-1.192 5.068-.438.483-.995.93-1.703.73-.66-.185-.852-.86-.99-1.443-.292-1.254.68-4.049 1.875-4.635m-9.604 3.708c-1.266.302-1.865-1.654-.531-1.927 1.082-.038 1.732 1.641.53 1.927'/%3E%3Cpath fill='%231b323e' d='M40.352 30.558c-1.334.272-.735 2.228.531 1.927 1.201-.286.551-1.965-.53-1.927m8.503 6.168c-1.216.029-1.351 1.917-.102 1.935 1.108.016 1.102-1.829.102-1.935m9.912 1.715c1.17-.456.339-1.926-.546-1.955-1.36.357-.73 2.452.546 1.955m5.414-4.788c-.933.302-.25 1.402.434 1.032.71-.385.217-1.198-.434-1.032'/%3E%3Cpath fill='%23e66048' d='M44.312 29.04c-.395.38-.738.987-.43 1.502.304.508 1.09.473 1.585.334 1.152-.323 2.983-1.204 3.653-2.293l-1.668-.44-.04-.01h-.003c-.704-.189-2.395.232-3.097.907m5.29 5.814c.708.2 1.265-.247 1.703-.73 1.069-1.177 1.123-3.529 1.193-5.07l-2.01-.279c-1.196.586-2.167 3.38-1.875 4.635.137.584.33 1.257.989 1.443m6.018-1.969c.413.355.958.67 1.53.568.25-.046.397-.279.543-.465.69-.882-.517-2.68-1.113-3.404l-2.021-.29c-.338 1.145.226 2.876 1.061 3.591'/%3E%3C/g%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:center;background-size:contain;transition:transform 0.2s linear;z-index:1;"]),L=w.default.div.withConfig({displayName:"ImageBottom",componentId:"sc-bc8igl-6"})(["position:absolute;inset:0;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='200' fill='none' viewBox='0 0 380 200'%3E%3Cg clip-path='url(%23a)'%3E%3Cg clip-path='url(%23b)'%3E%3Cpath fill='%23046e4a' d='M282.376 137.556 273 196.926l82.503 13.735 13.292-63.519-85.262-12.691z'/%3E%3Cpath fill='%23046e4a' d='M326.366 204.384c-5.451-3.481-11.229-6.369-17.263-8.715-9.208-2.948-18.732-4.727-28.364-5.644a182 182 0 0 0-6.613-.238L273 196.931l55.72 9.277a81 81 0 0 0-2.354-1.819z' opacity='.51' style='mix-blend-mode:multiply'/%3E%3C/g%3E%3Cpath fill='%23046e4a' d='M363.191 174 369 147.5l-55-8.5 13.5 5 15 4.5c15.5 8 7.833 10.401 22.458 27.496z' opacity='.51' style='mix-blend-mode:multiply'/%3E%3Cpath fill='%23b4d0f4' d='M390 205.745v-6.816c-23.081-.185-51.008-1.269-69.039-15.617-1.782-1.413-3.485-2.955-5.193-4.489-.212-.194-.434-.383-.651-.576-6.689-5.843-14.951-10.696-24.601-8.858-12.232 2.326-23.007 5.262-35.746 3.425-10.805-1.561-21.24-5.486-31.428-9.116-10.424-3.709-20.701-8.941-31.96-9.9-11.98-1.012-24.828 3.842-36.26 6.683-18.727 6.062-38.362 10.309-58.086 6.445-12.488-2.451-21.777-10.688-32.286-16.833-5.982-3.497-12.394-5.282-19.24-6.74-9.255-1.963-21.264 4.785-29.981 7.535-8.456 2.668-16.955 5.225-25.529 7.536v47.317h400z'/%3E%3Cpath fill='%23a5c4ec' d='M390 205.745v-31.166c-8.835-1.883-25.781-3.739-28.155-3.675-1.026.026-2.068.08-3.105.152-11.964.867-24.768 4.785-36.338 7.047a1742 1742 0 0 0-52.213 11.025c-16.11 3.656-32.172 8.718-48.94 7.032-24.679-2.471-45.539-17.501-69.779-21.952-32.721-6.009-64.153.318-96.7 2.523-12.36.841-24.833-.523-36.976-2.663-9.408-1.66-18.618-4.005-27.794-6.544v38.217h400z'/%3E%3Cpath fill='%23fff' d='M390 205.745v-9.07c-1.135.78-2.275 1.538-3.421 2.288-3.889 2.527-7.867 4.861-12.014 6.782zM327.604 205.745c-2.912-.97-5.809-1.974-8.712-2.917-30.859-10.018-59.552-7.79-88.57 2.917zM148.064 205.745a238 238 0 0 0-6.165-3.603c-16.92-9.464-36.96-14.09-56.393-13.245-17.582.765-34.221 6.933-51.685 7.899-16.925.94-30.46-5.948-43.821-14.632v23.585h158.064z'/%3E%3Cpath fill='%23ffb2c7' d='m375.136 189.026 14.439-5.552-38.448-86.315-13.589 6.38z'/%3E%3Cpath fill='%23046e4a' d='m351.127 97.16-8.707 17.485 19.983 7.826-8.888 17.396 20.715 9.162-8.745 18.054 18.366 4.599-8.715 17.345 14.439-5.553z'/%3E%3Cpath fill='%2383baa8' d='m375 189-7.5-17.5s-5-1-6.5-.5c-1.297.432 6.286 13.345 9 15 4.835 2.947 5 3 5 3' opacity='.51' style='mix-blend-mode:multiply'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Crect width='380' height='200' fill='%23fff' rx='5'/%3E%3C/clipPath%3E%3CclipPath id='b'%3E%3Cpath fill='%23fff' d='M273 124.54h101v86.121H273z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E\");background-size:contain;background-position:bottom;background-repeat:no-repeat;z-index:2;"]),_=w.default.div.withConfig({displayName:"ImageTree",componentId:"sc-bc8igl-7"})(["position:absolute;bottom:0;left:0;width:221px;height:176px;aspect-ratio:221 / 176;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='221' height='176' fill='none' viewBox='0 0 221 176'%3E%3Cpath fill='%235f150c' d='M53.609 159.509c-.041.588-.07 1.211.221 1.724.21.367.56.623.91.856 3.923 2.557 9.433 2.412 13.21-.355.59-.431-.257-6.018-.316-6.886a270 270 0 0 0-.53-6.873c-.392-4.323-.841-8.598-1.098-12.926a372 372 0 0 0-2.732-28.113c-1.482-.46-4.727-2.266-6-.6-.531.699-.636 1.626-.712 2.499a231 231 0 0 0-.852 26.039c.198 8.138-1.565 16.497-2.107 24.64z'/%3E%3Cpath fill='%234c0803' d='M63.28 106.936c-1.482-.46-4.728-2.266-6-.6-.531.699-.636 1.626-.712 2.499a231 231 0 0 0-.91 22.375 10.6 10.6 0 0 0 3.25-.985c.368-.18.777-.384 1.162-.244.269.099.45.355.613.594a22.7 22.7 0 0 0 5.393 5.476c-.023-.338-.047-.67-.064-1.008a372 372 0 0 0-2.732-28.112z'/%3E%3Cpath fill='%23008b64' d='M76.98 54.749c3.968 5.277 10.313 9.442 16.19 12.075.684.309 1.46.7 1.623 1.427.158.711-.385 1.422-1.05 1.713s-1.424.256-2.148.221a21.5 21.5 0 0 0 6.922 4.253c1.045.396 2.364 1.083 2.154 2.178-.117.606-.694 1.008-1.243 1.293-1.792.927-3.829 1.381-5.814 1.096.362.425.94.588 1.407.897.467.308.847.932.549 1.404-.129.21-.362.326-.59.419a5.6 5.6 0 0 1-4.103.076c4.138 4.543 10.034 6.407 15.503 8.848.262.117.531.239.729.449 2.533 2.644-4.354 2.633-5.422 2.365 1.325 1.677 3.204 2.83 5.165 3.687 1.962.856 4.022 1.445 6.018 2.22.473.18 1.016.471 1.051.978.023.361-.234.682-.496.926-1.576 1.474-3.806 2.045-5.895 2.226.741-.065 2.702 1.636 3.251 2.021.292.204.624.518.49.85-.765 1.911-5.265.938-6.52.362q.947.646 1.886 1.293c3.653 2.505 7.967 3.856 12.093 5.388.707.262 1.559.775 1.39 1.509-.053.221-.199.407-.345.582-1.564 1.806-3.986 2.715-6.374 2.837-2.404.122-4.646-.542-6.916-1.223.718.81 3.554 4.223 2.048 4.8a5.52 5.52 0 0 1-3.992-.012c.992.39 3.765 1.573 2.282 2.854-3.426 2.965-10.839 1.34-14.551-.122.263 1.858-1.01 3.676-2.668 4.567-1.651.891-3.607 1.025-5.486.973-3.041-.082-6.146-.647-8.901-1.981-1.617-.78-5.726-3.11-5.971-5.138.18 1.492.268 2.995.262 4.498 0 1.159-.128 2.458-1.021 3.198-.84.693-2.113.629-3.082.134-.97-.496-1.705-1.346-2.41-2.173-1.133-1.323-2.318-2.756-2.516-4.486-.765 1.602-1.903 3.449-3.684 3.431-.215 0-.455-.046-.589-.215-.11-.146-.123-.344-.123-.524a8.46 8.46 0 0 1 1.004-3.909c-2.218 1.404-4.226 2.615-6.7 3.495-1.518.542-6.719 2.254-8.02.483-.648-.873 1.786-3.757 2.661-4.578a54.3 54.3 0 0 1-15.473 5.097c-2.09.355-4.67.821-6.613-.233-.31-.169-.625-.385-.76-.717-.21-.506.07-1.077.38-1.537a10.7 10.7 0 0 1 2.177-2.36 5.43 5.43 0 0 1-3.805.239c-.216-.064-.444-.157-.555-.349-.169-.28-.029-.641.134-.921a5.58 5.58 0 0 1 2.394-2.207c-4.174-.006-7.921.809-12.124-.303-1.15-.303-2.317-.723-3.163-1.556s-1.29-2.172-.77-3.238c.396-.81 1.231-1.294 2.03-1.713 5.044-2.627 10.577-4.538 14.855-8.283-2.31.291-4.646.273-6.963-.117-.992-.163-2.253-.868-1.891-1.806.905-.442 1.815-.891 2.72-1.334-1.786.88-8.919-2.842-6.479-4.875.555-.46 1.302-.589 2.014-.705 4.803-.798 9.636-2.091 13.67-4.812-1.973.03-9.38-2.761-5.236-5.108 1.278-.723 2.726-1.067 4.133-1.48a42.4 42.4 0 0 0 9.59-4.142c-.508.146-1.04.291-1.553.175-.514-.117-.992-.588-.916-1.107.035-.245.18-.46.344-.647.408-.477.945-.85 1.535-1.071-2.452.541-4.99.885-7.477.518-2.031-.297-7.938-2.254-6.461-5.353.717-1.509 4.225-2.243 5.638-2.814 2.428-.984 4.821-2.103 6.958-3.629-.794-.052-1.629-.122-2.277-.576-.648-.455-.998-1.44-.508-2.057.228-.285.578-.443.917-.582 4.103-1.725 8.446-3.297 11.65-6.536-.916.25-4.208 2.021-4.757.408-.193-.566.368-1.241.788-1.532-2.773.151-5.101.82-7.944-.076-.49-.158-1.016-.379-1.232-.845-.484-1.06.952-1.916 2.067-2.26a29.2 29.2 0 0 0 6.362-2.831c.227-.134.35-.495.461-.623-1.477.198-2.971.151-4.413-.227-.402-.105-.828-.251-1.08-.583-.385-.507-.216-1.27.21-1.742.427-.472 1.045-.716 1.64-.938 3.264-1.206 6.626-2.167 9.772-3.64 3.152-1.474 6.134-3.525 8.037-6.431a9.4 9.4 0 0 1-4.343 2.068c-.793.145-1.95-.146-1.82-.944.046-.28.256-.495.455-.693l2.86-2.855a10.7 10.7 0 0 1-8.067-.35c-.607-.279-1.267-.75-1.243-1.42.029-.915 1.202-1.241 2.113-1.323 3.525-.314 7.354-.955 9.712-3.588a4.93 4.93 0 0 1-4.506.268c-.443-.204-.916-.588-.834-1.072.075-.454.59-.676 1.027-.81 3.84-1.188 10.635-12.833 13.512-14.423.415-.227 1.033-.367 1.29.03.117.174.111.401.105.605-.11 2.831 4.232 9.979 6.695 10.736.49.151 1.04.35 1.25.815.25.554-.14 1.23-.684 1.51-.542.279-1.179.267-1.792.256 2.376 2.9 6.363 3.757 9.958 4.828.368.111.759.245.969.56.263.39.134.95-.175 1.305-.31.355-.759.553-1.203.716-1.85.676-3.87.915-5.825.682.742.559 1.477 1.118 2.218 1.677 1.565 1.177-2.358.694-2.766.583-1.302-.338-4.775-.722-5.598-1.905 3.006 4.34 8.569 8.697 13.448 10.654.648.262 1.401.583 1.57 1.258.251.962-.852 1.719-1.82 1.934C80.667 47.636 82.331 48.61 84 49.5c1.074.577 4.068 1.288 4.074 2.785 0 1.1-1.15 1.811-2.194 2.167-3.62 1.223-6.38.378-9.766-.88q.405.612.853 1.206z'/%3E%3Cpath fill='%23016043' d='M59.148 66.83c1.973-.117 3.478-1.986 3.84-3.926a8.09 8.09 0 0 0 4.897 3.885c1.5.414 3.263.32 4.425-.716s1.296-3.187 0-4.043c1.278.577 2.644.955 4.039 1.124.607.07 1.354.03 1.646-.506.251-.46.012-1.032-.274-1.474a7.56 7.56 0 0 0-2.656-2.493c.899.14.829 1.648.017 2.062s-1.791.075-2.614-.309a24 24 0 0 1-3.736-2.179c.566.944 1.144 1.928 1.226 3.03.081 1.095-.508 2.324-1.576 2.592-.578.145-1.185 0-1.74-.216a8.48 8.48 0 0 1-4.354-3.716 6.15 6.15 0 0 1-1.05 3.087c-.48.705-1.49 1.334-2.114.757-.35-.32-.361-.862-.35-1.334.03-1.077.053-2.15.082-3.227a13.5 13.5 0 0 1-6.175 3.553c-.322.082-.683.152-.981 0-.397-.197-.537-.687-.601-1.124a9.3 9.3 0 0 1 .099-3.238 23.1 23.1 0 0 1-8.108 4.071c-.525.146-1.085.268-1.599.088s-.904-.787-.665-1.276c-.776.588-1.903 2.202-1.424 3.262.338.757 1.412.752 2.218.553 2.65-.646 5.054-2.01 7.424-3.36a13.2 13.2 0 0 0-2.907 3.617c-1.757 3.204 1.956 3.046 3.923 2.01 2.358-1.241 4.249-2.919 6.245-4.632.234 1.824.088 4.235 2.854 4.072zM40.902 30.702v.023c-.024.67.636 1.142 1.243 1.422a10.7 10.7 0 0 0 8.066.35l-2.86 2.854c-.198.198-.408.413-.455.693-.129.792 1.027 1.09 1.821.944a9.3 9.3 0 0 0 3.053-1.16c1.535-1.089 2.819-2.522 3.665-4.206a4.26 4.26 0 0 1-2.813.898c-.245-.012-.52-.065-.654-.268-.128-.193-.082-.449-.029-.67a9.8 9.8 0 0 1 .695-1.917 15.9 15.9 0 0 1-10.904 1.346c-.286-.07-.577-.152-.823-.303zM40.662 83.641a42.1 42.1 0 0 1-15.397 2.965c-.923 0-1.903-.04-2.68-.535a2.1 2.1 0 0 1-.665-.7c-.111.059-.228.117-.339.175-4.15 2.354 3.257 5.138 5.236 5.109-.554.373-1.12.716-1.704 1.037 5.767-1.282 11.189-4.078 15.55-8.056zM53.503 94.698c.806.105 1.594-.227 2.324-.594a25.7 25.7 0 0 0 6.49-4.637c1.483 1.852 4.068 2.37 6.444 2.446 1.25.041 2.615-.052 3.549-.88 1.29-1.13 1.249-3.11 1.109-4.811a12.5 12.5 0 0 0 7.033 3.752c1.133.186 2.405.174 3.275-.571.87-.746.899-2.43-.17-2.849a12.8 12.8 0 0 0 5.528 1.893 7.5 7.5 0 0 1-3.52-.215c.952.798.76 2.44-.14 3.297-.899.856-2.247 1.072-3.484.99-2.878-.186-5.487-1.666-7.974-3.116 1.15 2.854-1.301 6.337-4.36 6.704-3.064.367-6.058-1.916-7.05-4.829a24.6 24.6 0 0 1-13.21 6.332c-2.871.408-1.931-4.747 0-5.056a11 11 0 0 1-5.498-.542c2.27-.273 7.962-1.386 9.17-3.774-.741 1.462-2.212 6.104.496 6.46zM118.725 113.385c-4.127-1.526-8.434-2.878-12.094-5.388q-.948-.648-1.885-1.294c1.26.577 5.755 1.556 6.519-.361a.44.44 0 0 0-.029-.373c-3.07.519-6.251.373-9.257-.437l5.866 4.771c.584.478 1.22 1.043 1.255 1.8.117 2.622-8.849.152-10.156-.18.887.873 1.803 1.788 2.212 2.959.408 1.177.14 2.685-.934 3.309-.549.32-1.214.367-1.85.378a22.54 22.54 0 0 1-12.147-3.326c.473 1.357.718 2.796.718 4.235 0 .303-.023.647-.25.85-.194.181-.485.204-.754.21-5.55.122-10.495-3.909-13.197-8.749-.374 2.621-.648 7.124-3.829 7.963-1.284.338-2.673-.158-3.706-.985-1.04-.827-1.786-1.951-2.522-3.052-1.862 1.945-4.12 4.048-6.806 3.804-.59-.053-1.202-.245-1.605-.682-1.05-1.13-.152-2.93.759-4.171a57.4 57.4 0 0 1-19.735 6.519c-1.628.221-3.846-.041-4.097-1.66-.076-.484.07-.973.25-1.422a9.3 9.3 0 0 1 3.462-4.275 16.8 16.8 0 0 1-5.767 1.066c-.286 0-.583 0-.84-.134-.619-.309-.712-1.218-.362-1.818.432-.746 1.348-1.165 2.002-1.689-4.751 1.415-9.59 2.231-14.563 2.143-1.442-.023-2.942-.134-4.202-.838a3.9 3.9 0 0 1-.917-.682q-.693.34-1.377.699c-.8.42-1.64.903-2.032 1.713-.52 1.066-.076 2.411.77 3.239.847.833 2.015 1.246 3.164 1.555 4.203 1.112 7.944.297 12.124.303a5.54 5.54 0 0 0-2.393 2.208c-.164.279-.298.64-.135.92.117.192.345.285.555.349a5.43 5.43 0 0 0 3.805-.238 10.8 10.8 0 0 0-2.177 2.359c-.31.454-.59 1.025-.38 1.538.135.326.444.547.76.716 1.95 1.054 4.529.588 6.613.233a54.3 54.3 0 0 0 15.473-5.097c-.875.827-3.303 3.705-2.661 4.579 1.301 1.771 6.502.052 8.02-.484 2.474-.879 4.482-2.091 6.7-3.495a8.3 8.3 0 0 0-1.004 3.909c0 .18.006.378.123.524.134.169.373.216.59.216 1.78.017 2.912-1.83 3.682-3.431.199 1.73 1.384 3.163 2.516 4.485.706.827 1.442 1.672 2.41 2.173.97.495 2.248.559 3.083-.134.893-.74 1.015-2.039 1.021-3.198 0-1.503-.081-3.006-.263-4.497.246 2.021 4.355 4.357 5.972 5.137 2.755 1.334 5.86 1.899 8.9 1.981 1.88.052 3.836-.082 5.487-.973s2.93-2.708 2.668-4.567c3.712 1.462 11.125 3.088 14.551.123 1.483-1.282-1.296-2.464-2.282-2.855a5.52 5.52 0 0 0 3.992.012c1.506-.571-1.33-3.99-2.048-4.8 2.27.682 4.512 1.346 6.916 1.223 2.388-.122 4.81-1.031 6.374-2.837.152-.174.292-.361.345-.582.169-.728-.683-1.247-1.39-1.509z'/%3E%3Cpath fill='%23fff' d='M88.624 85.704a66.8 66.8 0 0 1-13.075.553c-.718-.04-1.75.239-1.593.944.058.262.286.448.496.611 1.325 1.026 2.697 2.068 4.302 2.54a5.58 5.58 0 0 0 4.19-.443c.41 1.41 1.32 2.785 2.72 3.222 1.436.442 2.843-.513 3.48-1.76 2.778 3.111 7.546 5.599 11.766 4.882.392-.064.812-.163 1.086-.454.467-.496.286-1.294.076-1.94 1.278.297 2.615.483 3.899.21 1.284-.28 2.51-1.096 2.977-2.319.076-.81-.8-1.351-1.541-1.69-3.257-1.467-6.456-3.168-9.707-4.566-2.195-.938-2.708-2.08-5.09-.77-1.155.636-2.714.793-3.998.974zM85.484 67.838s.04-.018.064-.024c1.033-.384 2.049-1.001 2.556-1.98 1.074-2.062-.974-3.437-2.381-4.503-.339-.256-.712-.524-1.138-.548-.66-.029-1.173.525-1.646.985-3.52 3.46-9.754 5.243-14.51 5.848-2.761.356-5.435.03-8.202.105-4.22.11-8.235-.547-12.362-1.299-.25-.046-.572-.064-.706.152-.059.099-.064.215-.059.326.17 3.49 6.287 3.28 8.604 2.866-.368.961.035 2.161.91 2.709.794.495 1.85.448 2.709.07.858-.38 1.558-1.043 2.189-1.742.332 1.159 1.844 2.615 2.76 3.36 1.465 1.183 3.613 1.515 5.388.927 2.644-.874 4.097-3.169 4.553-5.767 1.243.944 2.76 1.707 4.313 1.52 1.559-.186 2.825-1.532 2.755-3.104 1.483.536 2.668.652 4.197.099zM11.414 95.041c-.584.134-1.202.28-1.634.7-.637.617-.654 1.689-.234 2.47.42.78 1.185 1.322 1.979 1.724 2.51 1.269 5.568 1.415 8.189.384.315-.122.654-.268.975-.169.24.076.414.268.601.431 1.103.99 2.743 1.2 4.197.891 1.453-.303 2.766-1.054 4.056-1.794.14-.081 2.89 1.206 3.31 1.299a11.6 11.6 0 0 0 3.554.204c2.032-.192 3.8-1.048 4.623-3.046 1.08.425 2.347.535 3.38 0 1.027-.536 1.68-1.847 1.231-2.919-2.02 0-4.056.221-6.047.128-2.072-.099-4.15-.355-6.163-.868-1.833-.472-3.853-1.1-5.405-2.213-1.512-1.084-2.026-2.313-3.993-1.072-3.665 2.313-8.452 2.924-12.619 3.862z'/%3E%3Cpath fill='%23fff' d='M23.56 97.19c1.15 0 1.156-1.787 0-1.787s-1.155 1.788 0 1.788M34.382 105.229c1.15 0 1.156-1.788 0-1.788s-1.156 1.788 0 1.788M46.581 111.888c1.15 0 1.156-1.789 0-1.789s-1.155 1.789 0 1.789M59.703 117.404h.227q.186.002.345-.076a.66.66 0 0 0 .286-.186.66.66 0 0 0 .186-.286.63.63 0 0 0 .076-.343c-.011-.082-.023-.157-.029-.239a.9.9 0 0 0-.227-.396.92.92 0 0 0-.63-.262h-.228a.8.8 0 0 0-.345.075.66.66 0 0 0-.286.187.66.66 0 0 0-.187.285.64.64 0 0 0-.076.344c.012.082.024.157.03.239q.06.228.227.396a.92.92 0 0 0 .63.262M75.123 121.307c1.15 0 1.156-1.788 0-1.788s-1.155 1.788 0 1.788M87.55 124.755c1.15 0 1.156-1.788 0-1.788s-1.155 1.788 0 1.788M101.594 125.903c1.15 0 1.156-1.788 0-1.788s-1.156 1.788 0 1.788M19.189 110.513c1.15 0 1.156-1.789 0-1.789s-1.156 1.789 0 1.789M32.31 110.74c1.15 0 1.156-1.788 0-1.788s-1.156 1.788 0 1.788M59.242 108.445c1.15 0 1.155-1.788 0-1.788s-1.156 1.788 0 1.788M71.213 106.377c1.15 0 1.156-1.788 0-1.788s-1.156 1.788 0 1.788M82.49 103.389c1.15 0 1.155-1.789 0-1.789s-1.156 1.789 0 1.789M94.228 99.486c1.15 0 1.155-1.789 0-1.789s-1.156 1.789 0 1.789M104.127 93.742c1.15 0 1.156-1.788 0-1.788s-1.156 1.788 0 1.788M32.538 81.795c1.15 0 1.155-1.788 0-1.788s-1.156 1.788 0 1.788M43.36 82.255h.227c.122 0 .24-.023.344-.076q.165-.054.286-.186a.66.66 0 0 0 .187-.286.63.63 0 0 0 .076-.343c-.012-.082-.023-.158-.03-.24a.9.9 0 0 0-.227-.395.92.92 0 0 0-.63-.262h-.228a.8.8 0 0 0-.344.075.66.66 0 0 0-.286.187.66.66 0 0 0-.187.285.63.63 0 0 0-.076.344c.012.081.023.157.03.239q.06.228.227.396a.92.92 0 0 0 .63.262M54.636 82.488c1.15 0 1.156-1.788 0-1.788s-1.156 1.788 0 1.788M64.074 79.273c1.15 0 1.156-1.789 0-1.789s-1.155 1.788 0 1.788M73.974 75.597h.227q.186.002.345-.076a.66.66 0 0 0 .286-.186.66.66 0 0 0 .186-.286.63.63 0 0 0 .076-.343c-.011-.082-.023-.158-.029-.24a.9.9 0 0 0-.227-.395.92.92 0 0 0-.63-.263h-.228a.8.8 0 0 0-.345.076.66.66 0 0 0-.286.187.66.66 0 0 0-.187.285.64.64 0 0 0-.076.344c.012.081.024.157.03.239q.06.228.227.396a.92.92 0 0 0 .63.262M84.328 69.853c1.15 0 1.156-1.788 0-1.788s-1.156 1.788 0 1.788M29.608 70.768c1.15 0 1.155-1.789 0-1.789s-1.156 1.789 0 1.789M38.235 75.766c1.15 0 1.155-1.789 0-1.789s-1.156 1.789 0 1.789M66.55 86.45c1.149 0 1.155-1.79 0-1.79-1.157 0-1.157 1.79 0 1.79M76.39 88.86c1.15 0 1.156-1.787 0-1.787s-1.156 1.788 0 1.788M89.336 90.585h.175q.186.002.345-.076a.66.66 0 0 0 .286-.186.66.66 0 0 0 .187-.285.63.63 0 0 0 .075-.344c-.011-.082-.023-.157-.029-.239a.9.9 0 0 0-.228-.396c-.058-.047-.122-.093-.18-.14a.9.9 0 0 0-.45-.122h-.175a.8.8 0 0 0-.344.076.66.66 0 0 0-.286.186.66.66 0 0 0-.187.285.63.63 0 0 0-.076.344c.012.082.023.157.03.239q.06.228.227.396l.18.14c.14.081.293.122.45.122M100.041 90.41c1.15 0 1.156-1.788 0-1.788s-1.156 1.788 0 1.788M37.72 61.64c1.15 0 1.157-1.789 0-1.789-1.155 0-1.155 1.789 0 1.789M47.562 61.465c1.15 0 1.156-1.789 0-1.789s-1.156 1.789 0 1.789M58.092 59.572c1.15 0 1.156-1.789 0-1.789s-1.156 1.789 0 1.789M66.724 56.985c1.15 0 1.156-1.788 0-1.788s-1.155 1.788 0 1.788M74.662 52.68c1.15 0 1.156-1.788 0-1.788s-1.155 1.788 0 1.788M81.568 48.026c1.15 0 1.155-1.788 0-1.788s-1.156 1.788 0 1.788M74.838 59.228c1.15 0 1.155-1.788 0-1.788s-1.156 1.788 0 1.788M81.743 60.259c1.15 0 1.156-1.788 0-1.788s-1.156 1.788 0 1.788M56.54 52.855c1.149 0 1.155-1.788 0-1.788-1.157 0-1.157 1.788 0 1.788M48.075 48.888c1.15 0 1.156-1.788 0-1.788s-1.155 1.788 0 1.788M41.515 43.896c1.15 0 1.155-1.788 0-1.788s-1.156 1.788 0 1.788M47.211 38.036c1.15 0 1.156-1.788 0-1.788s-1.155 1.788 0 1.788M54.951 35.764v.175q-.002.185.076.343c.035.111.1.204.187.286a.66.66 0 0 0 .286.186.64.64 0 0 0 .344.076c.082-.011.158-.023.24-.029a.9.9 0 0 0 .396-.227l.14-.18a.9.9 0 0 0 .123-.45v-.174a.76.76 0 0 0-.076-.344.66.66 0 0 0-.187-.285.66.66 0 0 0-.286-.187.64.64 0 0 0-.344-.075c-.082.011-.157.023-.24.029a.9.9 0 0 0-.396.227l-.14.18a.9.9 0 0 0-.123.45M63.788 34.588c1.15 0 1.156-1.789 0-1.789s-1.155 1.788 0 1.788M71.038 31.488c1.15 0 1.155-1.788 0-1.788s-1.156 1.788 0 1.788M52.22 25.285h.175c.122 0 .24-.024.344-.076a.66.66 0 0 0 .286-.186.66.66 0 0 0 .187-.286.63.63 0 0 0 .076-.344c-.012-.081-.023-.157-.03-.238a.9.9 0 0 0-.227-.396c-.058-.047-.123-.094-.18-.14a.9.9 0 0 0-.45-.123h-.175a.8.8 0 0 0-.345.076.66.66 0 0 0-.286.187.66.66 0 0 0-.187.285.63.63 0 0 0-.075.344c.011.081.023.157.029.238q.06.23.227.396l.181.14q.212.123.45.123M60.508 28.733c1.15 0 1.156-1.788 0-1.788s-1.156 1.788 0 1.788M78.287 29.595c1.15 0 1.156-1.788 0-1.788s-1.156 1.788 0 1.788M37.003 84.69q-.308-.14-.613-.28c.023-.005.04-.011.064-.017.11-.035.222-.064.332-.1.07-.017.111-.092.094-.162s-.094-.11-.163-.093c-.123.035-.252.075-.374.11a2 2 0 0 0-.187.059c-.035.011-.076.017-.11.035q-.264-.13-.526-.268c.187-.117.368-.24.549-.356q.017-.001.035.006.096.019.192.03l.391.063c.07.012.146-.017.164-.093.011-.064-.018-.151-.094-.163l-.338-.052q-.018.001-.035-.006c.18-.129.367-.257.548-.385.135-.099 0-.326-.134-.227q-.272.2-.554.39a.1.1 0 0 1 .011-.046c.03-.11.053-.228.082-.338.018-.064-.023-.146-.093-.163-.065-.018-.146.017-.164.093-.029.128-.064.256-.093.384-.018.064-.03.123-.047.187-.006.035-.017.07-.023.105q-.29.192-.59.384c0-.18-.011-.367-.011-.547q.001.001.011-.006a3 3 0 0 1 .432-.42c.059-.04.047-.14 0-.186-.052-.052-.128-.04-.187 0-.093.07-.175.146-.256.227 0-.274 0-.553.017-.827 0-.169-.257-.169-.262 0q-.01.375-.012.751a9 9 0 0 0-.245-.238c-.053-.047-.135-.053-.187 0a.13.13 0 0 0 0 .186c.146.14.286.28.432.42 0 .197 0 .39.012.588l-.392-.216a3 3 0 0 1-.14-.565c-.011-.07-.099-.11-.163-.093-.076.023-.1.087-.093.163.017.105.035.204.058.309-.234-.134-.461-.274-.695-.414-.146-.087-.274.134-.134.227q.333.202.665.397c-.122.034-.239.07-.361.098a.14.14 0 0 0-.094.164c.023.07.088.11.164.093.204-.058.408-.11.607-.17.163.094.332.187.496.275l-.409.244a3 3 0 0 1-.543-.157c-.064-.023-.146.03-.163.093-.018.076.023.134.093.163q.14.054.286.1-.34.194-.683.378c-.145.082-.017.303.135.227a25 25 0 0 0 .67-.373c-.028.123-.063.25-.093.373-.017.064.024.146.094.163s.14-.017.163-.093q.078-.315.164-.629l.39-.233c.012.192.018.39.036.582-.041.047-.076.094-.117.14-.082.105-.17.204-.25.309-.048.052-.053.134 0 .186.046.047.14.053.186 0 .07-.087.14-.168.21-.256q.025.304.058.618c.018.163.28.169.263 0-.023-.228-.047-.46-.064-.688.023.023.052.047.076.07.081.076.163.157.245.233.052.047.134.053.187 0a.13.13 0 0 0 0-.186q-.14-.13-.28-.268c-.047-.047-.094-.088-.14-.134-.036-.035-.07-.07-.111-.1l-.036-.576c.205.105.403.21.608.309 0 .006 0 .017.005.023l.07.186c.047.123.094.24.14.362.024.064.088.11.164.093.064-.018.117-.093.093-.163l-.122-.315c0-.011-.006-.017-.012-.029.193.093.385.18.584.268.151.07.286-.157.134-.227zM42.81 113.816l-.613-.28.065-.017c.11-.035.221-.064.332-.099a.135.135 0 0 0 .094-.163c-.018-.07-.094-.111-.164-.094-.122.035-.25.076-.373.111a3 3 0 0 0-.187.058c-.035.012-.076.018-.111.035a22 22 0 0 1-.525-.268c.186-.116.367-.239.548-.355q.018-.002.035.006.096.018.193.029c.128.023.263.041.391.064.07.012.146-.017.163-.093.012-.064-.017-.152-.093-.163l-.338-.053q-.018.002-.035-.006c.18-.128.367-.256.548-.384.134-.099 0-.326-.134-.227q-.273.2-.555.39.002-.027.012-.047c.03-.11.053-.227.082-.337.017-.064-.024-.146-.094-.164-.064-.017-.145.018-.163.094-.03.128-.064.256-.093.384-.018.064-.03.122-.047.187-.006.035-.018.069-.023.104q-.291.193-.59.385c0-.181-.012-.367-.012-.548q.001.001.012-.006c.128-.157.274-.291.432-.419.058-.041.047-.14 0-.186-.053-.053-.128-.041-.187 0-.093.07-.175.145-.257.227 0-.274 0-.554.018-.827 0-.169-.257-.169-.263 0q-.01.376-.011.751-.123-.123-.246-.239c-.052-.046-.134-.052-.186 0a.13.13 0 0 0 0 .187l.431.419c0 .198 0 .39.012.588-.128-.069-.262-.145-.39-.215a3 3 0 0 1-.14-.565c-.013-.07-.1-.111-.164-.093-.076.023-.1.087-.094.163.018.105.035.204.059.309-.234-.134-.462-.274-.695-.414-.146-.087-.274.134-.134.227q.332.203.665.396-.181.054-.362.099a.14.14 0 0 0-.093.163c.023.07.087.111.163.094.205-.059.409-.111.607-.169.164.093.333.186.497.273-.135.082-.275.164-.41.245a3 3 0 0 1-.542-.157c-.064-.024-.146.029-.163.093-.018.076.023.134.093.163q.139.054.286.099-.342.193-.683.379c-.146.081-.017.303.134.227q.34-.182.672-.373c-.03.122-.065.251-.094.373-.017.064.024.146.094.163s.14-.017.163-.093q.078-.315.163-.629c.129-.076.263-.158.392-.233.011.192.017.39.035.582-.041.047-.076.093-.117.14-.082.105-.17.204-.251.309-.047.052-.053.134 0 .186.047.047.14.053.187 0 .07-.087.14-.169.21-.256q.025.305.058.617c.018.163.28.169.263 0-.024-.227-.047-.46-.064-.687.023.023.052.047.075.07.082.076.164.157.246.233.052.046.134.052.186 0a.13.13 0 0 0 0-.187 12 12 0 0 1-.28-.267c-.047-.047-.093-.088-.14-.134a1 1 0 0 0-.11-.099l-.036-.577c.204.105.403.21.607.309 0 .005 0 .017.006.023l.07.186.14.361c.024.064.088.111.164.094.064-.018.116-.094.093-.163l-.123-.315c0-.012-.005-.018-.011-.029q.287.138.584.268c.151.07.285-.157.134-.227zM26.403 99.97c-.117.069-.461.262-.922.512-.03.286-.047.559-.065.786a16 16 0 0 0-.052 1.311c.8-.454 1.582-.932 2.358-1.427-.018-.629-.093-1.287-.292-1.87-.338.233-.677.466-1.027.688M25.492 104.653c.076.617.193 1.235.345 1.835a61 61 0 0 0 1.564-.956q.139-1.102.234-2.213c-.403.279-.812.559-1.226.827-.111.07-.456.256-.91.507z'/%3E%3Cpath fill='%23016043' d='M53.807 43.378c-.064.53-.03 1.136.368 1.491.38.344.951.338 1.453.25a6.53 6.53 0 0 0 4.29-2.784c.234 1.177.49 2.394 1.197 3.367.712.967 2.013 1.614 3.14 1.188 1.395-.53 1.786-2.277 1.973-3.757l.28-2.173c.73.478 1.26 1.218 1.979 1.713.718.495 1.815.67 2.393.011.619-.698.233-1.805-.28-2.586a10.9 10.9 0 0 0-2.481-2.662c.473.425.969.897 1.097 1.52.135.624-.31 1.393-.945 1.34-.275-.023-.514-.192-.742-.355a70 70 0 0 1-3.029-2.365 8.88 8.88 0 0 1-.671 5.458c-.158.338-.35.682-.66.891-.881.606-2.13-.192-2.527-1.182-.403-.99-.304-2.109-.572-3.146-.467.746-.934 1.491-1.4 2.243-.223.361-.485.745-.888.868-2.043.617-1.132-3.338-.829-4.09-.21.525-1.553 1.474-1.955 2.08-.584.874-1.057 1.596-1.185 2.68zM90.871 81.789a5.58 5.58 0 0 0 4.103-.076c.228-.093.456-.215.59-.42.298-.471-.082-1.094-.549-1.403s-1.039-.472-1.406-.897c1.99.285 4.021-.169 5.813-1.095.409-.21.829-.484 1.062-.856-3.093 1.176-6.654 1.165-9.689-.17.607.688.963 1.59.987 2.505 0 .181-.006.385-.135.519-.14.157-.379.175-.59.169a7.53 7.53 0 0 1-4.114-1.317c1.109 1.398 2.55 2.523 4.156 3.303l-.245-.262z'/%3E%3Cpath fill='%23fff' d='M30.798 120.299c-.356-.145-.712-.326-1.091-.39-.712-.122-1.436.152-2.096.454a28 28 0 0 0-2.988 1.573c-1.267.769-2.498 1.666-3.333 2.89-.31.454-.566.972-.572 1.52-.006.827.578 1.573 1.296 1.975.724.407 1.564.53 2.387.617 5.34.542 11.826-.344 16.542-3.058-.111.961.59 1.876 1.47 2.278.882.401 1.892.39 2.855.279 2.078-.245 4.413-.431 6.07-1.841 2.224-1.893 2.895-5.609 2.066-8.33-.052-.169-.11-.349-.233-.477-.391-.396-1.045-.035-1.5.291a8.86 8.86 0 0 1-5.253 1.619c.403-.728 1.698-3.728.11-4.025-.472-.087-.91.251-1.283.554-3.713 2.988-9.66 6.064-14.447 4.083zM76.688 21.295c-.362-.03-.765-.088-.981-.373a1.2 1.2 0 0 1-.175-.437c-.1-.39-.175-.78-.234-1.177l-.122 1.049c-.03.244-.035.576-.228.763-.1.093-.233.128-.362.163-.373.099-.747.204-1.12.303l1.243.314c.105.03.222.059.297.134.07.065.1.158.129.25.157.49.24 1.02.368 1.521q.062-.444.116-.897c.047-.35.111-.728.368-.961.129-.116.298-.18.461-.245.304-.116.736-.174 1.004-.35-.257-.022-.513-.04-.764-.063z'/%3E%3Cpath fill='%2365ba81' d='M72.018 55.36c-1.821 0-3.625-.623-5.382-1.235a49 49 0 0 0-1.564-.524 25.4 25.4 0 0 0-11.463-.862c-.648.099-1.308.233-1.95.355-1.908.373-3.881.758-5.843.484-4.138-.583-7.588-4.445-7.693-8.616 0-.134.105-.25.24-.25.134 0 .25.105.25.239.1 3.937 3.357 7.59 7.268 8.137 1.88.262 3.811-.11 5.679-.477a53 53 0 0 1 1.967-.361 26 26 0 0 1 11.691.873c.525.163 1.057.35 1.576.53 2.183.758 4.436 1.538 6.637 1.06 3.508-.763 5.55-4.287 7.243-7.974.058-.122.204-.18.327-.122a.247.247 0 0 1 .123.326c-1.74 3.81-3.864 7.444-7.588 8.254a7 7 0 0 1-1.524.157z'/%3E%3Cpath fill='%23c50003' d='M41.824 54.813c-.689 1.299-1.623 2.155-2.09 1.91s-.286-1.503.403-2.802 1.623-2.155 2.09-1.91.286 1.503-.403 2.802M48.064 56.403c-.105 1.491-.625 2.668-1.162 2.627-.537-.04-.881-1.276-.776-2.767s.624-2.668 1.161-2.627c.537.04.882 1.276.777 2.767M75.153 57.486c.338 1.457.186 2.732-.333 2.855-.52.122-1.22-.962-1.559-2.418s-.186-2.732.333-2.854c.52-.123 1.22.961 1.559 2.417'/%3E%3Cpath fill='%2365ba81' d='M72.199 114.998c-2.288 0-4.845-.448-7.722-1.351-1.18-.367-2.358-.786-3.502-1.188-2.925-1.031-5.948-2.097-9.053-2.418-2.48-.256-5.032-.041-7.506.169-2.907.245-5.92.501-8.855 0-4.01-.687-8.037-2.854-11.656-6.256-3.251-3.058-5.878-6.786-8.289-10.346a.345.345 0 0 1 .572-.384c2.388 3.524 4.985 7.217 8.19 10.229 3.52 3.309 7.424 5.412 11.3 6.076 2.848.489 5.813.238 8.68 0 2.503-.21 5.089-.431 7.634-.169 3.187.332 6.251 1.409 9.216 2.452 1.138.402 2.317.816 3.479 1.183 5.224 1.636 9.362 1.747 12.643.337 2.801-1.205 4.868-3.413 7.05-5.755 1.647-1.765 3.35-3.582 5.388-4.922 1.634-1.072 3.467-1.812 5.236-2.534 1.074-.437 2.177-.885 3.222-1.398 2.329-1.148 5.253-3.175 5.959-6.32a.347.347 0 0 1 .677.151c-.77 3.414-3.864 5.575-6.327 6.786-1.068.525-2.189.979-3.269 1.422-1.74.705-3.537 1.433-5.119 2.47-1.973 1.293-3.642 3.081-5.265 4.817-2.136 2.289-4.348 4.654-7.284 5.918-1.605.688-3.397 1.037-5.399 1.037z'/%3E%3Cpath fill='%23c50003' d='M74.937 117.521c.011 1.491-.415 2.708-.952 2.708s-.98-1.205-.986-2.697c-.012-1.491.414-2.708.951-2.708s.98 1.205.986 2.697M26.98 109.395c-.665 1.34-1.593 2.231-2.071 1.992s-.333-1.515.332-2.854c.666-1.34 1.594-2.231 2.072-1.993.479.239.333 1.515-.332 2.855M94.496 104.303c.52 1.399.537 2.686.035 2.872-.502.187-1.33-.798-1.856-2.196-.52-1.398-.537-2.685-.035-2.872s1.33.798 1.856 2.196M21.815 105.725c-.91 1.182-1.996 1.881-2.422 1.555s-.03-1.55.881-2.732c.91-1.183 1.996-1.882 2.423-1.555.426.326.029 1.549-.882 2.732M84.707 83.587c.514-.148.594-1.43.178-2.865-.416-1.434-1.169-2.476-1.683-2.328s-.594 1.432-.178 2.866c.415 1.434 1.169 2.476 1.683 2.327M72.859 84.166c-.088 1.49-.59 2.673-1.121 2.644-.537-.029-.899-1.264-.817-2.755.087-1.491.59-2.674 1.12-2.645.537.03.9 1.264.818 2.756'/%3E%3Cpath fill='%2365ba81' d='M74.207 81.684c-3.17 0-6.339-.897-9.432-1.776-3.106-.88-6.322-1.795-9.503-1.795-1.868 0-3.759.315-5.591.624-2.16.36-4.396.734-6.631.6-7.01-.414-12.637-5.657-16.127-9.979a.34.34 0 0 1 .052-.483.344.344 0 0 1 .485.052c3.397 4.217 8.866 9.326 15.625 9.722 2.16.128 4.354-.239 6.473-.594 1.862-.309 3.782-.629 5.708-.629 3.28 0 6.544.926 9.695 1.817 4.337 1.23 8.429 2.395 12.573 1.364 3.747-.933 6.584-3.542 8.306-5.57 2.224-2.615 3.899-5.696 5.51-8.679a.343.343 0 0 1 .467-.14c.17.093.233.303.14.466-1.634 3.012-3.321 6.123-5.592 8.796-1.786 2.103-4.74 4.812-8.667 5.79a14.3 14.3 0 0 1-3.497.414z'/%3E%3Cpath fill='%23c50003' d='M32.993 77.997c-.473 1.415-1.273 2.429-1.78 2.26s-.537-1.456-.065-2.872 1.273-2.429 1.78-2.26c.509.169.538 1.456.065 2.872'/%3E%3Cpath fill='%23fbcf09' d='M46.86 25.862a4 4 0 0 1-.618-1.224s-.152.588-.618 1.223c-.392.443-1.185.577-1.185.577s.793.134 1.185.577a4 4 0 0 1 .618 1.223s.152-.588.619-1.223c.391-.443 1.185-.577 1.185-.577s-.794-.134-1.185-.576M7.048 101.333c-.467-.635-.619-1.224-.619-1.224s-.152.589-.619 1.224c-.39.442-1.185.576-1.185.576s.794.134 1.185.577a4 4 0 0 1 .619 1.223s.152-.588.619-1.223c.39-.443 1.185-.577 1.185-.577s-.794-.134-1.185-.576M92.406 54.405a4 4 0 0 1-.619-1.223s-.151.588-.618 1.223c-.391.443-1.185.577-1.185.577s.794.134 1.185.576a4 4 0 0 1 .618 1.224s.152-.589.62-1.224c.39-.442 1.184-.576 1.184-.576s-.794-.134-1.185-.577M42.623 28.64c-.741-1.008-.98-1.94-.98-1.94s-.24.932-.98 1.94c-.62.705-1.88.915-1.88.915s1.26.21 1.88.914c.74 1.008.98 1.94.98 1.94s.239-.932.98-1.94c.619-.705 1.88-.914 1.88-.914s-1.261-.21-1.88-.915M8.974 108.783c-.741-1.008-.98-1.94-.98-1.94s-.24.932-.981 1.94c-.619.705-1.88.914-1.88.914s1.261.21 1.88.915c.741 1.008.98 1.94.98 1.94s.24-.932.981-1.94c.619-.705 1.88-.915 1.88-.915s-1.261-.209-1.88-.914M94.116 60.778c-.583-.793-.77-1.526-.77-1.526s-.187.733-.77 1.526c-.485.553-1.477.722-1.477.722s.992.163 1.476.722c.584.792.77 1.526.77 1.526s.188-.733.771-1.526c.485-.553 1.477-.722 1.477-.722s-.992-.163-1.477-.722M87.316 50.91c-.741-1.008-.98-1.94-.98-1.94s-.24.932-.98 1.94c-.62.705-1.88.914-1.88.914s1.26.21 1.88.915c.74 1.008.98 1.94.98 1.94s.239-.932.98-1.94c.619-.705 1.88-.915 1.88-.915s-1.261-.21-1.88-.914M12.044 97.587c-.74-1.008-.98-1.94-.98-1.94s-.24.932-.98 1.94c-.62.705-1.88.915-1.88.915s1.26.21 1.88.914c.74 1.008.98 1.94.98 1.94s.24-.932.98-1.94c.62-.705 1.88-.914 1.88-.914s-1.26-.21-1.88-.915M116.402 105.801c-.742-1.008-.981-1.94-.981-1.94s-.239.932-.981 1.94c-.618.704-1.879.914-1.879.914s1.261.21 1.879.915c.742 1.007.981 1.939.981 1.939s.239-.932.981-1.939c.618-.705 1.879-.915 1.879-.915s-1.261-.21-1.879-.914M112.73 97.086c-.881-1.2-1.167-2.313-1.167-2.313s-.286 1.107-1.168 2.313c-.735.839-2.235 1.09-2.235 1.09s1.5.25 2.235 1.089c.882 1.2 1.168 2.312 1.168 2.312s.286-1.107 1.167-2.312c.736-.84 2.236-1.09 2.236-1.09s-1.5-.25-2.236-1.089M107.582 102.428c-.584-.792-.77-1.526-.77-1.526s-.187.734-.771 1.526c-.484.553-1.477.716-1.477.716s.993.163 1.477.717c.584.792.771 1.526.771 1.526s.186-.734.77-1.526c.484-.554 1.477-.717 1.477-.717s-.993-.163-1.477-.716M40.902 35.619c-.607-.822-.8-1.585-.8-1.585s-.198.758-.8 1.585c-.502.576-1.529.745-1.535.745 0 0 1.028.17 1.535.746.608.821.8 1.584.8 1.584s.199-.757.8-1.584c.502-.577 1.529-.746 1.535-.746 0 0-1.027-.169-1.535-.745M56.65 90.678a4 4 0 0 1-.62-1.223s-.151.588-.618 1.223c-.391.443-1.185.577-1.185.577s.794.134 1.185.577c.467.635.619 1.223.619 1.223s.151-.588.618-1.223c.391-.443 1.185-.577 1.185-.577s-.794-.134-1.185-.577M51.037 77.416c-1.463-1.954-1.935-3.76-1.935-3.76s-.473 1.806-1.935 3.76c-1.221 1.366-3.71 1.773-3.71 1.773s2.489.406 3.71 1.773c1.462 1.954 1.935 3.76 1.935 3.76s.472-1.806 1.935-3.76c1.22-1.367 3.709-1.773 3.709-1.773s-2.488-.407-3.71-1.773M90.211 111.288c-.583-.792-.77-1.526-.77-1.526s-.187.734-.77 1.526c-.485.553-1.477.722-1.477.722s.992.163 1.477.723c.583.792.77 1.526.77 1.526s.187-.734.77-1.526c.485-.554 1.477-.723 1.477-.723s-.992-.163-1.477-.722M84.894 115.191c-.741-1.008-.98-1.94-.98-1.94s-.24.932-.981 1.94c-.619.705-1.88.914-1.88.914s1.261.21 1.88.915c.741 1.008.98 1.94.98 1.94s.24-.932.981-1.94c.619-.705 1.88-.915 1.88-.915s-1.261-.209-1.88-.914M63.107 35.105l2.958 2.788c.16.146.388.214.594.169l3.998-.824a.665.665 0 0 1 .742.937l-1.77 3.634a.67.67 0 0 0 .022.62l2.034 3.51c.274.475-.126 1.062-.674.983l-4.055-.542a.64.64 0 0 0-.582.214l-2.753 2.991a.67.67 0 0 1-1.154-.327l-.73-3.973a.65.65 0 0 0-.39-.485l-3.723-1.66a.661.661 0 0 1-.045-1.184l3.598-1.919a.69.69 0 0 0 .354-.508l.445-4.018c.057-.541.731-.79 1.13-.406M71.743 93.335l1.512 1.438c.082.076.199.111.304.088l2.043-.425a.342.342 0 0 1 .379.483l-.905 1.876a.35.35 0 0 0 .012.32l1.039 1.812a.342.342 0 0 1-.344.506l-2.073-.28a.33.33 0 0 0-.297.112l-1.407 1.543a.342.342 0 0 1-.59-.169l-.373-2.05a.33.33 0 0 0-.199-.25l-1.902-.857a.343.343 0 0 1-.024-.611l1.839-.99a.36.36 0 0 0 .18-.263l.229-2.074a.343.343 0 0 1 .577-.21M60.638 106.894l.599 4.251c.036.228.18.433.383.529l3.832 1.921a.704.704 0 0 1 0 1.261l-3.856 1.886a.7.7 0 0 0-.383.528l-.635 4.252a.7.7 0 0 1-1.197.384l-2.982-3.086a.7.7 0 0 0-.623-.204l-4.227.708a.706.706 0 0 1-.742-1.021l2.012-3.795a.71.71 0 0 0 0-.66l-1.976-3.808a.706.706 0 0 1 .742-1.021l4.227.745a.71.71 0 0 0 .623-.204l3.005-3.063c.408-.42 1.114-.18 1.198.397M62.3.354l1.728 3.49c.094.186.275.32.479.349l3.858.559a.638.638 0 0 1 .356 1.09l-2.79 2.714a.62.62 0 0 0-.18.565l.659 3.839a.638.638 0 0 1-.928.67l-3.45-1.812a.63.63 0 0 0-.595 0l-3.45 1.812a.64.64 0 0 1-.928-.67l.66-3.84a.65.65 0 0 0-.181-.564l-2.79-2.715a.639.639 0 0 1 .356-1.09l3.858-.558a.63.63 0 0 0 .479-.35l1.727-3.49a.64.64 0 0 1 1.144 0z'/%3E%3Cpath fill='%23fff' d='M190.848 169.85c.169 1.658-1.95 3.367-5.175 4.289-5.999 1.719-15.354.715-22.178.663-45.764-.321-91.47 1.077-137.234 1.543-7.705.083-15.767.094-22.628-1.45-10.818-2.434-15.974-8.639-12.618-13.808 1.088-1.658 2.869-3.211 3.131-4.858.169-1.036-1.78-.798.113-2.207 2.306-1.73 8.211-2.538 12.28-2.973 9.617-1.036 20.022-.632 29.658-.394 13.817.332 27.747 1.886 39.277 5.283 4.78 1.409 9.13 3.129 14.267 4.279 11.849 2.651 25.909 1.906 39.145 1.44 18.561-.653 39.802-.746 55.85 4.236 2.231.694 4.368 1.523 5.437 2.631.412.425.619.871.675 1.326'/%3E%3Cpath fill='%23d2e4f7' d='M-.192 168.338c-.45-2.735-1.518-7.893 4.537-9.654 6.45-1.865 13.161-2.31 20.848-2.331 8.024-.01 16.217.891 22.629 3.035 5.361 1.792 9.392 4.392 15.466 5.646 5.7 1.18 12.299.994 18.58.808 16.329-.487 32.696-.808 49.062-.974a2482 2482 0 0 1 24.86-.114c2.081 0 18.241-.611 13.142 2.434-.956.57-6.374 1.689-7.818 1.668 10.761.186 21.504-.3 32.228-.611 4.443-.125 27.334-1.564 26.996 1.574-.093.798-1.368 1.502-2.924 1.917-3.525.942-8.68.88-12.655 1.16-4.893.342-9.786.632-14.698.901-9.824.528-19.685.912-29.565 1.181-19.817.559-39.689.694-59.543.715-27.466.02-54.931-.176-82.378.186-4.874.062-10.255.073-13.948-1.346-3.844-1.471-4.481-3.968-4.856-6.216z'/%3E%3C/svg%3E\");background-size:contain;background-position:bottom;background-repeat:no-repeat;z-index:3;"]),k=(0,w.keyframes)(["0%{background-color:#C50003;box-shadow:0 0 2px #C50003,0 0 4px #C50003,0 0 6px rgba(197,0,3,0.3);transform:scale(0.9);}70%{background-color:#FF0000;box-shadow:0 0 8px #FF0000,0 0 16px #FF0000,0 0 24px #FF0000,0 0 32px #FF0000,0 0 48px #FF0000;transform:scale(1.2);}100%{background-color:#FF3333;box-shadow:0 0 12px #FF3333,0 0 24px #FF3333,0 0 36px #FF3333,0 0 48px #FF3333,0 0 60px #FF3333;transform:scale(1.15);}"]),P=(0,w.keyframes)(["0%{opacity:0.3;transform:scale(0.8);filter:blur(5px);}50%{opacity:0.8;transform:scale(1.2);filter:blur(10px);}100%{opacity:0.5;transform:scale(1);filter:blur(8px);}"]),A=w.default.div.withConfig({displayName:"StarPulse",componentId:"sc-bc8igl-8"})(["position:absolute;top:-12px;left:42px;width:40px;height:40px;background:radial-gradient( circle at center,#FBCF09 0%,rgba(251,207,9,0.8) 20%,rgba(251,207,9,0.4) 40%,rgba(251,207,9,0.2) 60%,transparent 80% );border-radius:50%;animation:"," 3s ease-in-out infinite alternate;"],P),N=w.default.div.withConfig({displayName:"ChristmasLight",componentId:"sc-bc8igl-9"})(["position:absolute;top:54px;left:45px;width:4px;height:8px;background-color:#C50003;border-radius:50%;position:absolute;box-shadow:0 0 2px #C50003,0 0 4px #C50003;animation:"," 0.8s ease-in-out infinite alternate;",""],k,(function(e){switch(e.$index){case 1:return(0,w.css)(["top:52px;left:37px;rotate:29deg;"]);case 2:return(0,w.css)(["top:54px;left:45px;rotate:5deg;animation-delay:0.2s;"]);case 3:return(0,w.css)(["top:55px;left:73px;rotate:-16deg;animation-delay:0.4s;"]);case 4:return(0,w.css)(["top:75px;left:29px;rotate:24deg;animation-delay:0.6s;"]);case 5:return(0,w.css)(["top:80px;left:69px;rotate:1deg;animation-delay:0.8s;"]);case 6:return(0,w.css)(["top:78px;left:82px;rotate:-19deg;animation-delay:1s;"]);case 7:return(0,w.css)(["top:103px;left:18px;rotate:31deg;animation-delay:1.2s;"]);case 8:return(0,w.css)(["top:106px;left:24px;rotate:15deg;animation-delay:1.4s;"]);case 9:return(0,w.css)(["top:115px;left:72px;rotate:-9deg;animation-delay:1.6s;"]);case 10:return(0,w.css)(["top:102px;left:92px;rotate:-29deg;animation-delay:1.8s;"]);default:return(0,w.css)([""])}})),I=w.default.a.withConfig({displayName:"Banner",componentId:"sc-bc8igl-10"})(["position:relative;display:flex;align-items:center;justify-content:center;width:380px;height:200px;border-radius:10px;font-family:'ProximaNova',Helvetica,sans-serif;color:#fff;background-image:linear-gradient(rgb(0,45,96),rgb(2,41,88),rgb(4,36,80),rgb(5,32,73),rgb(5,28,65));text-decoration:none;cursor:pointer;&:hover ","{background-color:#00ACE6;}"],C),M=w.default.button.withConfig({displayName:"ButtonClose",componentId:"sc-bc8igl-11"})(["position:absolute;top:-12px;right:-12px;display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:0;border-radius:50%;box-shadow:0px 0px 4px 0px rgba(0,0,0,0.16),0px 0px 24px 0px rgba(0,0,0,0.08);color:#333333;background-color:#fff;transition:color 0.15s linear;cursor:pointer;z-index:4;&:hover{color:#09C;}&:active{color:#0086B3;}&:focus{outline:none;}&:focus-visible{outline:2px solid rgb(0,95,204);outline-offset:2px;}svg{width:18px;height:18px;}@media (max-width:420px){top:-22px;right:-10px;width:38px;height:38px;}"]);function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function F(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?T(Object(r),!0).forEach((function(t){var n,o,i;n=e,o=t,i=r[t],(o=function(e){var t=function(e){if("object"!==D(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==D(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===D(t)?t:String(t)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return U(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?U(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const J=function(e){var t=e.initialState,r=e.position,n=e.onStateUpdate,i=R((0,o.useState)(t),2),a=i[0],c=i[1],l=R((0,o.useState)(window.innerWidth>1025),2),s=l[0],u=l[1],f=(0,y.ZC)(a),p=function(e){c((function(t){return F(F({},t),e)}))};return(0,o.useEffect)((function(){var e=function(){u(window.innerWidth>1025)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),(0,o.useEffect)((function(){var e=t.timesSeen+1;p({timesSeen:e})}),[t]),(0,o.useEffect)((function(){f&&f!==a&&n(a)}),[a,f,n]),s?o.createElement(v.Z,null,o.createElement(x,{$right:r.right,$bottom:r.bottom},o.createElement(g.A,{snowflakeCount:20,radius:[.2,3],color:"#fff",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:"1",pointerEvents:"none"}}),o.createElement(I,{href:LJ.ml("newyear2026.banner_main.advent_refund.link"),onClick:function(){p({linkWasClicked:!0})}},o.createElement(O,null),o.createElement(L,null),o.createElement(_,null,o.createElement(A,null),Array.from({length:10}).map((function(e,t){return o.createElement(N,{key:t,$index:t+1})}))),o.createElement(S,null,o.createElement(E,{alt:"2026"}),o.createElement(j,null,LJ.ml("newyear2026.banner_main.advent_refund.text")),o.createElement(C,null,LJ.ml("newyear2026.banner_main.advent_refund.button")))),o.createElement(M,{type:"button",onClick:function(){p({wasClosedByUser:!0})}},o.createElement(b.A,{xlinkHref:"flaticons-v2--cross"})))):null};function z(e){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(e)}function B(){B=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:O(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",g={};function y(){}function v(){}function b(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(A([])));S&&S!==r&&n.call(S,a)&&(w=S);var E=b.prototype=y.prototype=Object.create(w);function j(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==z(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,r,n){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=L(c,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function L(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,L(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function A(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(z(t)+" is not iterable")}return v.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=s(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},j(C.prototype),s(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new C(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(E),s(E,l,"Generator"),s(E,a,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=A,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function q(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function G(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){q(i,n,o,a,c,"next",e)}function c(e){q(i,n,o,a,c,"throw",e)}a(void 0)}))}}var H,$=function(){var e=G(B().mark((function e(){var t;return B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(e.t0=e.sent,e.t0){e.next=5;break}e.t0={};case 5:return t=e.t0,e.abrupt("return",t[h]);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Y=function(){var e=G(B().mark((function e(){var t,r=arguments;return B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:m,e.abrupt("return",d((n={},i=t,(o=function(e){var t=function(e){if("object"!==z(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===z(t)?t:String(t)}(o=h))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i,n)));case 2:case"end":return e.stop()}var n,o,i}),e)})));return function(){return e.apply(this,arguments)}}();!LJ.Components.NewYear26PromoBanner&&!LJ.Page.isEmbed&&Site.remote&&Site.flags.newyear26_promo&&(LJ.define("LJ.Components.NewYear26PromoBanner"),LJ.Components.NewYear26PromoBanner={initPromise:new Promise((function(e){H=e})),resetSavedState:function(){return Y()}},LJ.Util.DOM.initPromise.then(G(B().mark((function e(){var t,r,n,a,c,l;return B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!LJ.Components.Advent26Banner){e.next=7;break}return e.next=3,LJ.Components.Advent26Banner.initPromise;case 3:if(!e.sent.willBeShown){e.next=7;break}return H({willBeShown:!1}),e.abrupt("return");case 7:return e.next=9,$();case 9:if(!(t=e.sent)||!(t.wasClosedByUser||t.linkWasClicked||t.timesSeen>=3)){e.next=13;break}return H({willBeShown:!1}),e.abrupt("return");case 13:r=document.createElement("div"),document.body.appendChild(r),n=(0,i.H)(r),a=t||m,s=void 0,s={right:30,bottom:51},document.querySelector(".b-discoverytimes-wrapper")&&(s.bottom+=10),c=s,l=function(e){var t=e.wasClosedByUser,r=e.linkWasClicked;(t||r)&&setTimeout((function(){n.unmount()})),Y(e)},n.render(o.createElement(J,{initialState:a,position:c,onStateUpdate:l})),H({willBeShown:!0});case 21:case"end":return e.stop()}var s}),e)})))))},8476:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(6540),o=(r(5338),r(8081)),i=r(1834),a=r(2464),c=r(3768);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){var n,o,i;n=e,o=t,i=r[t],(o=function(e){var t=function(e){if("object"!==l(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===l(t)?t:String(t)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const d=function(e){var t=e.onClose,r=void 0===t?function(){}:t,l=e.inputValue,s=e.userData,p=f((0,n.useState)(l||""),2),d=p[0],h=p[1],m=f((0,n.useState)(!1),2),g=m[0],y=m[1],v=(0,n.useRef)(null),b=function(){window.location.reload()},w=function(e){y(!1),null!=e&&e.code&&null!=e&&e.message&&LJ.Messages.error(e.message)},x=(0,n.useCallback)((function(){y(!0),LJ.Api.callP("user.alias_set",{aliases:[{id:s.id,alias:d}]}).then(b).catch(w)}),[d,s]);(0,n.useEffect)((function(){var e=function(e){13===e.which?x():27===e.which&&r()};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[r,x]),(0,n.useEffect)((function(){v.current.focus()}),[]);var S=!!l,E={title:LJ.ml(S?"user_note_modal.title.edit":"user_note_modal.title.add"),description:LJ.ml(S?"user_note_modal.edit_note_for":"user_note_modal.add_note_for")},j=!!d&&d!==l;return n.createElement(i.Ay,{onClose:g?void 0:r,title:E.title,withCloseBtn:!g,footer:n.createElement(c.wi,null,n.createElement(c.KB,null,S&&n.createElement(o.A,{onClick:function(){y(!0),LJ.Api.callP("user.alias_delete",{user_ids:[s.id]}).then(b).catch(w)},disabled:g,sizeL:!0},LJ.ml("common.delete")),n.createElement(c.yY,{onClick:j?x:void 0,disabled:!j||g,isLoading:g,primary:!0,sizeL:!0},n.createElement("span",null,LJ.ml("common.save")))))},n.createElement(c.VY,null,"".concat(E.description," "),n.createElement(a.c,{userData:u(u({},s),{},{displayUsername:s.username})}),":"),n.createElement(c.D0,{onChange:function(e){h(e.currentTarget.value)},className:"lightinput lightinput--big",value:d,maxLength:400,disabled:g,ref:v,type:"text",size:"large"}))}},8680:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(6540),o=r(489),i=r(764);const a=function(e){var t=e.id,r=(0,n.useRef)(t||(0,o.A)()),a="js--scroll-lock-".concat(r.current);return(0,n.useEffect)((function(){var e=document.body;return e.classList.add(a),function(){e.classList.remove(a)}}),[a]),n.createElement(i.k,{bodyClassName:a})}},8887:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(e){function t(e,n,l,s,p){for(var d,h,m,g,w,S=0,E=0,j=0,C=0,O=0,N=0,M=m=d=0,T=0,F=0,R=0,U=0,J=l.length,z=J-1,B="",q="",G="",H="";T<J;){if(h=l.charCodeAt(T),T===z&&0!==E+C+j+S&&(0!==E&&(h=47===E?10:47),C=j=S=0,J++,z++),0===E+C+j+S){if(T===z&&(0<F&&(B=B.replace(f,"")),0<B.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:B+=l.charAt(T)}h=59}switch(h){case 123:for(d=(B=B.trim()).charCodeAt(0),m=1,U=++T;T<J;){switch(h=l.charCodeAt(T)){case 123:m++;break;case 125:m--;break;case 47:switch(h=l.charCodeAt(T+1)){case 42:case 47:e:{for(M=T+1;M<z;++M)switch(l.charCodeAt(M)){case 47:if(42===h&&42===l.charCodeAt(M-1)&&T+2!==M){T=M+1;break e}break;case 10:if(47===h){T=M+1;break e}}T=M}}break;case 91:h++;case 40:h++;case 34:case 39:for(;T++<z&&l.charCodeAt(T)!==h;);}if(0===m)break;T++}if(m=l.substring(U,T),0===d&&(d=(B=B.replace(u,"").trim()).charCodeAt(0)),64===d){switch(0<F&&(B=B.replace(f,"")),h=B.charCodeAt(1)){case 100:case 109:case 115:case 45:F=n;break;default:F=A}if(U=(m=t(n,F,m,h,p+1)).length,0<I&&(w=c(3,m,F=r(A,B,R),n,_,L,U,h,p,s),B=F.join(""),void 0!==w&&0===(U=(m=w.trim()).length)&&(h=0,m="")),0<U)switch(h){case 115:B=B.replace(x,a);case 100:case 109:case 45:m=B+"{"+m+"}";break;case 107:m=(B=B.replace(y,"$1 $2"))+"{"+m+"}",m=1===P||2===P&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=B+m,112===s&&(q+=m,m="")}else m=""}else m=t(n,r(n,B,R),m,s,p+1);G+=m,m=R=F=M=d=0,B="",h=l.charCodeAt(++T);break;case 125:case 59:if(1<(U=(B=(0<F?B.replace(f,""):B).trim()).length))switch(0===M&&(d=B.charCodeAt(0),45===d||96<d&&123>d)&&(U=(B=B.replace(" ",":")).length),0<I&&void 0!==(w=c(1,B,n,e,_,L,q.length,s,p,s))&&0===(U=(B=w.trim()).length)&&(B="\0\0"),d=B.charCodeAt(0),h=B.charCodeAt(1),d){case 0:break;case 64:if(105===h||99===h){H+=B+l.charAt(T);break}default:58!==B.charCodeAt(U-1)&&(q+=o(B,d,h,B.charCodeAt(2)))}R=F=M=d=0,B="",h=l.charCodeAt(++T)}}switch(h){case 13:case 10:47===E?E=0:0===1+d&&107!==s&&0<B.length&&(F=1,B+="\0"),0<I*D&&c(0,B,n,e,_,L,q.length,s,p,s),L=1,_++;break;case 59:case 125:if(0===E+C+j+S){L++;break}default:switch(L++,g=l.charAt(T),h){case 9:case 32:if(0===C+S+E)switch(O){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===C+E+S&&(F=R=1,g="\f"+g);break;case 108:if(0===C+E+S+k&&0<M)switch(T-M){case 2:112===O&&58===l.charCodeAt(T-3)&&(k=O);case 8:111===N&&(k=N)}break;case 58:0===C+E+S&&(M=T);break;case 44:0===E+j+C+S&&(F=1,g+="\r");break;case 34:case 39:0===E&&(C=C===h?0:0===C?h:C);break;case 91:0===C+E+j&&S++;break;case 93:0===C+E+j&&S--;break;case 41:0===C+E+S&&j--;break;case 40:0===C+E+S&&(0===d&&(2*O+3*N==533||(d=1)),j++);break;case 64:0===E+j+C+S+M+m&&(m=1);break;case 42:case 47:if(!(0<C+S+j))switch(E){case 0:switch(2*h+3*l.charCodeAt(T+1)){case 235:E=47;break;case 220:U=T,E=42}break;case 42:47===h&&42===O&&U+2!==T&&(33===l.charCodeAt(U+2)&&(q+=l.substring(U,T+1)),g="",E=0)}}0===E&&(B+=g)}N=O,O=h,T++}if(0<(U=q.length)){if(F=n,0<I&&void 0!==(w=c(2,q,F,e,_,L,U,s,p,s))&&0===(q=w).length)return H+q+G;if(q=F.join(",")+"{"+q+"}",0!==P*k){switch(2!==P||i(q,2)||(k=0),k){case 111:q=q.replace(b,":-moz-$1")+q;break;case 112:q=q.replace(v,"::-webkit-input-$1")+q.replace(v,"::-moz-$1")+q.replace(v,":-ms-input-$1")+q}k=0}}return H+q+G}function r(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var c=0;for(e=0===a?"":e[0]+" ";c<i;++c)t[c]=n(e,t[c],r).trim();break;default:var l=c=0;for(t=[];c<i;++c)for(var s=0;s<a;++s)t[l++]=n(e[s]+" ",o[c],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",c=2*t+3*r+4*n;if(944===c){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===P||2===P&&i(l,1)?"-webkit-"+l+l:l}if(0===P||2===P&&!i(a,1))return a;switch(c){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(O,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return d.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(w,"tb");break;case 232:l=a.replace(w,"tb-rl");break;case 220:l=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,c=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<c?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(E,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(E,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===C.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),M(2!==t?n:n.replace(j,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(S," or ($1)").substring(4):"("+t+")"}function c(e,t,r,n,o,i,a,c,l,u){for(var f,p=0,d=t;p<I;++p)switch(f=N[p].call(s,e,d,r,n,o,i,a,c,l,u)){case void 0:case!1:case!0:case null:break;default:d=f}if(d!==t)return d}function l(e){return void 0!==(e=e.prefix)&&(M=null,e?"function"!=typeof e?P=1:(P=2,M=e):P=0),l}function s(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<I){var o=c(-1,r,n,n,_,L,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(A,n,r,0,0);return 0<I&&void 0!==(o=c(-2,i,n,n,_,L,i.length,0,0,0))&&(i=o),k=0,L=_=1,i}var u=/^\0+/g,f=/[\0\r\f]/g,p=/: */g,d=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,E=/-self|flex-/g,j=/[^]*?(:[rp][el]a[\w-]+)[^]*/,C=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,L=1,_=1,k=0,P=1,A=[],N=[],I=0,M=null,D=0;return s.use=function e(t){switch(t){case void 0:case null:I=N.length=0;break;default:if("function"==typeof t)N[I++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else D=0|!!t}return e},s.set=l,void 0!==e&&l(e),s}},8936:(e,t,r)=>{"use strict";r.d(t,{Vw:()=>s,ql:()=>l});var n=r(6540);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(){i=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",u=c.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),c=new N(n||[]);return a(i,"_invoke",{value:_(e,r,c)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="suspendedYield",g="executing",y="completed",v={};function b(){}function w(){}function x(){}var S={};f(S,l,(function(){return this}));var E=Object.getPrototypeOf,j=E&&E(E(I([])));j&&j!==r&&n.call(j,l)&&(S=j);var C=x.prototype=b.prototype=Object.create(S);function O(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function r(i,a,c,l){var s=d(e[i],e,a);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==o(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,c,l)}),(function(e){r("throw",e,c,l)})):t.resolve(f).then((function(e){u.value=e,c(u)}),(function(e){return r("throw",e,c,l)}))}l(s.arg)}var i;a(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function _(t,r,n){var o=h;return function(i,a){if(o===g)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=k(c,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var s=d(t,r,n);if("normal"===s.type){if(o=n.done?y:m,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function I(t){if(t||""===t){var r=t[l];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(o(t)+" is not iterable")}return w.prototype=x,a(C,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,f(e,u,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},O(L.prototype),f(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new L(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(C),f(C,u,"Generator"),f(C,l,(function(){return this})),f(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=I,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function a(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}var c=function(){var e,t=(e=i().mark((function e(){var t,r,n,o,a,c,l,s,u,f,p,d,h,m,g=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(t=g.length>0&&void 0!==g[0]?g[0]:{}).reducerState,n=t.targetUserId,o=t.targetUsername,a=t.dispatch,!r.userNameDisplayData.isLoaded){e.next=4;break}return e.abrupt("return");case 4:if(c={fields:{display_username:!0,userhead_url:!0,profile_url:!0,journal_url:!0}},!n){e.next=9;break}c.targetid=n,e.next=14;break;case 9:if(!o){e.next=13;break}c.target=o,e.next=14;break;case 13:throw new Error("user.get target is not provided");case 14:return e.next=16,LJ.Api.callP("user.get",c);case 16:l=e.sent,s=l.user,u=s.username,f=s.display_username,p=s.userhead_url,d=s.profile_url,h=s.journal_url,m=s.id,a({type:"setUserNameDisplayData",value:{isLoaded:!0,username:u,displayUsername:f,userheadUrl:p,profileUrl:d,journalUrl:h,id:m}});case 21:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function c(e){a(i,n,o,c,l,"next",e)}function l(e){a(i,n,o,c,l,"throw",e)}c(void 0)}))});return function(){return t.apply(this,arguments)}}(),l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.reducerState,r=e.dispatch,n=e.targetUserId,o=e.targetUsername;return{userNameDisplayData:t.userNameDisplayData,savedUserNote:t.savedUserNote,onDropdownUserNoteBtnClick:function(){c({reducerState:t,targetUserId:n,targetUsername:o,dispatch:r}).then((function(){r({type:"showUserNoteModal"})})).catch((function(e){var t=e.message;LJ.Messages.error(LJ.ml("common.something_went_wrong")),console.error("SubscribeBtn2022/userNote/loadUserNameDisplayData: ".concat(t).trim())}))},modal:{onClose:function(){r({type:"closeUserNoteModal"})},isShown:t.isUserNoteModalShown}}},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.targetUserId,r=e.reducerState,o=e.dispatch;(0,n.useEffect)((function(){t&&r.hasShownDropdown&&!r.hasLoadedUserNote&&LJ.Api.callP("user.alias_get",{user_id:t}).then((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).alias;o({type:"markUserNoteAsLoaded"}),o({type:"setSavedUserNote",value:e})}))}),[r.hasLoadedUserNote,r.hasShownDropdown,t,o])}},9316:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const o=function(){var e=Object.create(null);return function(t){return void 0===e[t]&&(e[t]=(r=t,n.test(r)||111===r.charCodeAt(0)&&110===r.charCodeAt(1)&&r.charCodeAt(2)<91)),e[t];var r}}()},9472:(e,t,r)=>{"use strict";r(6540)},9710:(e,t,r)=>{"use strict";r.d(t,{A:()=>f,c:()=>l.D});var n=r(6540),o=r(961),i=r(4044),a=r(74),c=r(5849),l=r(921),s=r(5618);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const f=n.forwardRef((function(e,t){var r,f,p=e.className,d=e.children,h=e.anchorEl,m=e.anchorRect,g=e.containerRef,y=e.placement,v=e.margins,b=e.overflowFixParams,w=e.withArrow,x=e.positioningGetter,S=e.updateOnScroll,E=void 0===S?{window:!0}:S,j=e.updateOnResize,C=void 0===j?{window:!0,anchor:!0,popover:!0}:j,O=e.closeOnScroll,L=void 0!==O&&O,_=e.onMouseEnter,k=e.onMouseLeave,P=e.onClose,A=void 0===P?function(){}:P,N=(0,n.useRef)(null),I=(0,i.DP)(),M=(r=(0,l.A)({anchorEl:h,anchorRect:m,popoverRef:N,placement:y,margins:v,overflowFixParams:b,containerRef:g,withArrow:w,positioningGetter:x}),f=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(r,f)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(r,f)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),D=M[0],T=M[1],F=D.arrow,R=D.position;return(0,n.useImperativeHandle)(t,(function(){return N.current}),[]),(0,i.Wr)(N,A),(0,n.useLayoutEffect)((function(){T()}),[]),(0,c.mc)(C,{anchorEl:h,anchorRect:m,popoverRef:N,recalcPositioning:T}),(0,c.l8)(E,{anchorEl:h,popoverRef:N,closeOnScroll:L,recalcPositioning:T,onClose:A}),(0,n.useEffect)((function(){return LJ.Event.on("react::CommonPopover::closeAll",A),function(){LJ.Event.off("react::CommonPopover::closeAll",A)}}),[A]),(0,o.createPortal)(n.createElement(s.u,{className:(0,a._)(["basepopup","basepopup--fix-bug","dark"===I&&"basepopup--dark",F&&"basepopup--arrow-".concat(F.edge,"-").concat(F.align),p]),$position:R,ref:N,onMouseEnter:_,onMouseLeave:k},d),(null==g?void 0:g.current)||document.body)}))},9982:(e,t,r)=>{"use strict";e.exports=r(7463)}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={id:e,exports:{}};return t[e].call(i.exports,i,i.exports,n),i.exports}n.m=t,e=[],n.O=(t,r,o,i)=>{if(!r){var a=1/0;for(u=0;u<e.length;u++){for(var[r,o,i]=e[u],c=!0,l=0;l<r.length;l++)(!1&i||a>=i)&&Object.keys(n.O).every((e=>n.O[e](r[l])))?r.splice(l--,1):(c=!1,i<a&&(a=i));if(c){e.splice(u--,1);var s=o();void 0!==s&&(t=s)}}return t}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[r,o,i]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={202:0,475:0,568:0,958:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var o,i,[a,c,l]=r,s=0;if(a.some((t=>0!==e[t]))){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);if(l)var u=l(n)}for(t&&t(r);s<a.length;s++)i=a[s],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(u)},r=self.webpackChunkfrontend_bundled=self.webpackChunkfrontend_bundled||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),n.nc=void 0;var o=n.O(void 0,[35],(()=>n(8092)));o=n.O(o)})();
/* <<< file end: js/front-bundled/dist/s2.js */

//# map link was there [s2.js.map]
