PageSourceSearch

https://cdn-web.gettr.com/static/js/5057.06ed98aa.chunk.js

js gettr.com collected 2026-09-24 08:32:40 UTC 200,370 bytes, 2 lines download raw bytes

1/*! For license information please see 5057.06ed98aa.chunk.js.LICENSE.txt */
2(self.webpackChunkgetter_fe=self.webpackChunkgetter_fe||[]).push([[5057],{80941:(e,t,n)=>{"use strict";n.d(t,{r:()=>a});var r=n(68963),o=n(75859);const i=(e,t)=>(0,o.jsx)("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,o.jsx)("path",{d:"M8.33312 12.6452L15.404 5.57359C15.7294 5.24815 16.257 5.24804 16.5825 5.57335V5.57335C16.9082 5.89881 16.9083 6.4267 16.5827 6.75228L8.33312 15.0019L3.61895 10.2877C3.29356 9.96232 3.29356 9.43476 3.61895 9.10937V9.10937C3.94434 8.78399 4.4719 8.78399 4.79729 9.10937L8.33312 12.6452Z",fill:"currentColor"})}),a=(0,r.forwardRef)(i)},5522:(e,t,n)=>{"use strict";n.d(t,{r:()=>a});var r=n(68963),o=n(75859);const i=(e,t)=>(0,o.jsxs)("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,o.jsx)("mask",{id:"8tvjy7whea",fill:"#fff",children:(0,o.jsx)("path",{d:"m14.447 13.488-2.454-2.453a5.975 5.975 0 0 0 1.314-3.74c0-3.307-2.694-6-6-6-3.307 0-6 2.693-6 6s2.693 6 6 6a5.941 5.941 0 0 0 3.74-1.32l2.453 2.453c.133.134.3.194.473.194a.664.664 0 0 0 .473-1.133zM2.713 7.295a4.598 4.598 0 0 1 4.594-4.593A4.598 4.598 0 0 1 11.9 7.295a4.598 4.598 0 0 1-4.593 4.593 4.598 4.598 0 0 1-4.594-4.593z"})}),(0,o.jsx)("path",{d:"m14.447 13.488-2.454-2.453a5.975 5.975 0 0 0 1.314-3.74c0-3.307-2.694-6-6-6-3.307 0-6 2.693-6 6s2.693 6 6 6a5.941 5.941 0 0 0 3.74-1.32l2.453 2.453c.133.134.3.194.473.194a.664.664 0 0 0 .473-1.133zM2.713 7.295a4.598 4.598 0 0 1 4.594-4.593A4.598 4.598 0 0 1 11.9 7.295a4.598 4.598 0 0 1-4.593 4.593 4.598 4.598 0 0 1-4.594-4.593z",fill:"#B1B1B1"}),(0,o.jsx)("path",{d:"m14.447 13.488-.707.707.707-.707zm-2.454-2.453-.781-.624-.558.699.632.632.707-.707zm-.946.94.707-.707-.635-.635-.7.563.628.779zm2.453 2.453-.707.707.707-.707zm.947 0 .688.725.01-.008-.698-.717zm.707-1.647L12.7 10.328l-1.414 1.414 2.454 2.453 1.414-1.414zm-2.38-1.122a6.975 6.975 0 0 0 1.533-4.364h-2c0 1.176-.41 2.258-1.095 3.116l1.563 1.248zm1.533-4.364c0-3.859-3.141-7-7-7v2c2.754 0 5 2.246 5 5h2zm-7-7c-3.86 0-7 3.141-7 7h2c0-2.754 2.245-5 5-5v-2zm-7 7c0 3.859 3.14 7 7 7v-2c-2.755 0-5-2.246-5-5h-2zm7 7c1.65 0 3.17-.577 4.367-1.541l-1.255-1.558a4.942 4.942 0 0 1-3.112 1.099v2zm3.032-1.613 2.454 2.453 1.414-1.414-2.453-2.453-1.415 1.414zm2.454 2.453c.337.337.765.487 1.18.487v-2a.348.348 0 0 1 .234.1l-1.414 1.413zm1.18.487c.438 0 .85-.171 1.162-.469l-1.377-1.45a.318.318 0 0 1 .215-.081v2zm1.171-.477c.668-.651.655-1.718.01-2.364l-1.415 1.414a.336.336 0 0 1 .01-.483l1.396 1.433zm-11.43-7.85a3.598 3.598 0 0 1 3.593-3.593v-2a5.598 5.598 0 0 0-5.594 5.593h2zm3.593-3.593A3.598 3.598 0 0 1 10.9 7.295h2a5.598 5.598 0 0 0-5.593-5.593v2zM10.9 7.295a3.598 3.598 0 0 1-3.593 3.593v2A5.598 5.598 0 0 0 12.9 7.295h-2zm-3.593 3.593a3.598 3.598 0 0 1-3.594-3.593h-2a5.598 5.598 0 0 0 5.594 5.593v-2z",fill:"#B1B1B1",mask:"url(#8tvjy7whea)"})]}),a=(0,r.forwardRef)(i)},20445:(e,t,n)=>{"use strict";n.d(t,{r:()=>a});var r=n(68963),o=n(75859);const i=(e,t)=>(0,o.jsx)("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 12.5c0 5.523 4.477 10 10 10s10-4.477 10-10-4.477-10-10-10-10 4.477-10 10zm7.88-3.535 2.12 2.121 2.12-2.121a1 1 0 1 1 1.415 1.415l-2.121 2.12 2.121 2.12a1 1 0 1 1-1.414 1.415l-2.121-2.12-2.12 2.12a1 1 0 1 1-1.415-1.414l2.121-2.12-2.121-2.121a1 1 0 1 1 1.414-1.415z",fill:"#7F7F7F"})}),a=(0,r.forwardRef)(i)},31580:(e,t,n)=>{"use strict";n.d(t,{r:()=>a});var r=n(68963),o=n(75859);const i=(e,t)=>(0,o.jsxs)("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,o.jsx)("rect",{x:1,y:1,width:18,height:18,rx:4,fill:"#EBF5FF"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.309 7a2.192 2.192 0 0 1 3.725-1.565.525.525 0 1 1-.735.75A1.142 1.142 0 1 0 6.1 8.07c.218.082.35.292.342.512a.525.525 0 0 1-.42.533 2.393 2.393 0 0 0-1.913 2.344.525.525 0 0 1-1.05 0 3.44 3.44 0 0 1 1.788-3.02A2.183 2.183 0 0 1 4.31 7zM13.5 5.86c-.311 0-.592.124-.799.326a.525.525 0 1 1-.735-.75 2.192 2.192 0 0 1 3.187 3.004 3.44 3.44 0 0 1 1.789 3.02.525.525 0 1 1-1.05 0 2.393 2.393 0 0 0-1.913-2.344.525.525 0 0 1-.42-.533.525.525 0 0 1 .34-.512A1.142 1.142 0 0 0 13.5 5.86zM10 7.025a1.808 1.808 0 1 0 0 3.617 1.808 1.808 0 0 0 0-3.617zm1.838 3.998a2.858 2.858 0 1 0-3.675 0 4.61 4.61 0 0 0-2.771 4.227.525.525 0 0 0 1.05 0 3.558 3.558 0 0 1 7.117 0 .525.525 0 1 0 1.05 0 4.61 4.61 0 0 0-2.771-4.227z",fill:"#0066D6"}),(0,o.jsx)("rect",{x:1,y:1,width:18,height:18,rx:4,stroke:"#0066D6"})]}),a=(0,r.forwardRef)(i)},12151:(e,t,n)=>{"use strict";n.d(t,{r:()=>a});var r=n(68963),o=n(75859);const i=(e,t)=>(0,o.jsx)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4a1 1 0 0 0-2 0v16a1 1 0 1 0 2 0v-.75h4.75a1.25 1.25 0 1 0 0-2.5H5v-3.5h14.75a1.25 1.25 0 1 0 0-2.5H5v-3.5h8.75a1.25 1.25 0 1 0 0-2.5H5V4z",fill:"
2currentColor"})}),a=(0,r.forwardRef)(i)},20179:(e,t,n)=>{"use strict";n.d(t,{r:()=>a});var r=n(68963),o=n(75859);const i=(e,t)=>(0,o.jsxs)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 21.5C17.2467 21.5 21.5 17.2467 21.5 12C21.5 6.7533 17.2467 2.5 12 2.5C6.7533 2.5 2.5 6.7533 2.5 12C2.5 17.2467 6.7533 21.5 12 21.5ZM12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23Z",fill:"currentColor"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5595 6C11.6397 6.13531 11.7296 6.26742 11.7991 6.40754C12.0554 6.93452 12.2144 7.50343 12.2687 8.08691C12.3034 8.42867 12.3146 8.7731 12.3371 9.11646C12.3371 9.12288 12.3451 9.1293 12.3601 9.15069C12.5152 8.96928 12.6251 8.75376 12.681 8.52173C12.7505 8.29817 12.7933 8.06659 12.8516 7.82217C12.8821 7.8474 12.9099 7.87572 12.9345 7.90667C13.1684 8.28983 13.336 8.70967 13.4303 9.14855C13.5258 9.59906 13.59 10.0557 13.6223 10.515C13.6268 10.5346 13.6325 10.5539 13.6394 10.5728C13.6715 10.5441 13.7007 10.5124 13.7266 10.4781C13.8725 10.2192 13.96 9.93154 13.9828 9.63525C13.986 9.60369 13.9892 9.57214 13.994 9.54058C13.994 9.53416 14.0031 9.52881 14.0165 9.51224C14.0376 9.52741 14.0565 9.5454 14.0726 9.56572C14.3763 10.0603 14.6152 10.5918 14.7834 11.1472C14.9233 11.5983 15.0033 12.0658 15.0214 12.5378C15.0384 13.2429 14.8429 13.9369 14.4604 14.5295C14.0841 15.0975 13.6455 15.6217 13.1527 16.0923C12.7714 16.4805 12.382 16.8619 12.0167 17.2651C11.8514 17.4706 11.6999 17.6868 11.5632 17.9123C11.5477 17.9348 11.5354 17.9599 11.5097 18C11.4707 17.974 11.4336 17.9455 11.3985 17.9144C10.7701 17.2726 10.1577 16.6191 9.58807 15.9249C9.2243 15.4882 8.89207 15.0262 8.59385 14.5423C8.3805 14.1937 8.21328 13.8189 8.09643 13.4272C7.96159 12.9581 7.9683 12.4597 8.11569 11.9944C8.31808 11.3857 8.62583 10.8172 9.02491 10.315C9.46079 9.7267 9.91701 9.15283 10.3534 8.56452C10.7422 8.06455 11.0524 7.50816 11.2733 6.91456C11.3568 6.67389 11.4054 6.42145 11.4696 6.17382C11.4835 6.12034 11.4958 6.06685 11.5092 6.01337L11.5557 6H11.5595Z",fill:"currentColor"})]}),a=(0,r.forwardRef)(i)},1003:(e,t,n)=>{"use strict";n.d(t,{T:()=>B,U:()=>A});var r=n(68963),o=n(71529),i=n(43e3),a=n(53390),s=n(2295),l=n(1012),d=n(42223),c=n(75859);const p=(e,t)=>(0,c.jsx)("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,c.jsx)("path",{d:"M8.52104 11.7199C8.59096 11.7896 8.64644 11.8724 8.6843 11.9636C8.72215 12.0547 8.74164 12.1525 8.74164 12.2512C8.74164 12.3499 8.72215 12.4476 8.6843 12.5388C8.64644 12.6299 8.59096 12.7127 8.52104 12.7824L8.14979 13.1537C7.44631 13.8572 6.49218 14.2524 5.49729 14.2524C4.50241 14.2524 3.54828 13.8572 2.8448 13.1537C2.14131 12.4502 1.74609 11.496 1.74609 10.5012C1.74609 9.50629 2.14131 8.55216 2.8448 7.84867L4.35229 6.34179C5.02822 5.6642 5.93765 5.27069 6.89431 5.24187C7.85096 5.21305 8.78243 5.55111 9.49792 6.18679C9.57179 6.25246 9.632 6.33202 9.67512 6.42095C9.71824 6.50989 9.74342 6.60644 9.74922 6.7051C9.75502 6.80376 9.74134 6.9026 9.70894 6.99598C9.67655 7.08935 9.62608 7.17543 9.56042 7.24929C9.49476 7.32316 9.41519 7.38338 9.32626 7.42649C9.23733 7.46961 9.14078 7.49479 9.04211 7.5006C8.94345 7.5064 8.84461 7.49271 8.75124 7.46032C8.65787 7.42792 8.57179 7.37746 8.49792 7.31179C8.06887 6.93075 7.51044 6.72803 6.93687 6.74511C6.36329 6.76219 5.81791 6.99777 5.41229 7.40367L3.90604 8.90867C3.48402 9.3307 3.24693 9.90309 3.24693 10.4999C3.24693 11.0968 3.48402 11.6691 3.90604 12.0912C4.32807 12.5132 4.90046 12.7503 5.49729 12.7503C6.09413 12.7503 6.66652 12.5132 7.08854 12.0912L7.45979 11.7199C7.52945 11.6502 7.61217 11.5949 7.70321 11.5571C7.79426 11.5194 7.89186 11.5 7.99042 11.5C8.08898 11.5 8.18658 11.5194 8.27762 11.5571C8.36867 11.5949 8.45139 11.6502 8.52104 11.7199ZM13.151 2.84492C12.447 2.14251 11.4931 1.74805 10.4985 1.74805C9.50402 1.74805 8.55011 2.14251 7.84605 2.84492L7.47479 3.21617C7.3339 3.35707 7.25474 3.54816 7.25474 3.74742C7.25474 3.94668 7.3339 4.13777 7.47479 4.27867C7.61569 4.41957 7.80679 4.49872 8.00604 4.49872C8.2053 4.49872 8.3964 4.41957 8.53729 4.27867L8.90855 3.90742C9.33057 3.48539 9.90296 3.2483 10.4998 3.2483C11.0966 3.2483 11.669 3.48539 12.091 3.90742C12.5131 4.32945 12.7502 4.90183 12.7502 5.49867C12.7502 6.0955 12.5131 6.66789 12.091 7.08992L10.5842 8.59742C10.1782 9.00315 9.63251 9.23839 9.05879 9.25
25C8.48507 9.27162 7.92669 9.06835 7.49792 8.68679C7.42405 8.62113 7.33797 8.57066 7.2446 8.53827C7.15123 8.50588 7.05239 8.49219 6.95373 8.49799C6.85506 8.5038 6.75851 8.52898 6.66958 8.5721C6.58065 8.61521 6.50108 8.67543 6.43542 8.74929C6.36976 8.82316 6.31929 8.90924 6.2869 9.00261C6.2545 9.09599 6.24082 9.19483 6.24662 9.29349C6.25242 9.39215 6.2776 9.4887 6.32072 9.57764C6.36384 9.66657 6.42405 9.74613 6.49792 9.81179C7.21291 10.4473 8.14375 10.7856 9.09996 10.7574C10.0562 10.7291 10.9654 10.3365 11.6417 9.65992L13.1492 8.15305C13.8524 7.44916 14.2476 6.49498 14.2479 5.5C14.2483 4.50501 13.8538 3.55056 13.151 2.84617V2.84492Z",fill:"currentColor"})}),u=(0,r.forwardRef)(p);var h=n(30497);const m=(e,t)=>{e.preventDefault(),e.stopPropagation();const n=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),r=t.toLowerCase();if(n&&-1===navigator.userAgent.indexOf("DuckDuckGo")){const e=window.open();e&&(e.location.href=/https?:\/\//.test(r)?t:"http://".concat(t))}(!n||navigator.userAgent.indexOf("DuckDuckGo")>-1)&&window.open(/https?:\/\//.test(r)?t:"http://".concat(t),"_blank","noopener=yes,noreferrer=yes")};var v=n(87381);const g=(e,t)=>(0,c.jsx)("svg",{width:72,height:72,viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,c.jsx)("path",{d:"M60.0919 23.1581L44.3419 7.40813C44.1328 7.19925 43.8846 7.03362 43.6114 6.92069C43.3383 6.80777 43.0456 6.74977 42.75 6.75H15.75C14.5565 6.75 13.4119 7.22411 12.568 8.06802C11.7241 8.91193 11.25 10.0565 11.25 11.25V60.75C11.25 61.9435 11.7241 63.0881 12.568 63.932C13.4119 64.7759 14.5565 65.25 15.75 65.25H56.25C57.4435 65.25 58.5881 64.7759 59.432 63.932C60.2759 63.0881 60.75 61.9435 60.75 60.75V24.75C60.7502 24.4544 60.6922 24.1617 60.5793 23.8886C60.4664 23.6154 60.3008 23.3672 60.0919 23.1581ZM45 14.4309L53.0691 22.5H45V14.4309ZM56.25 60.75H15.75V11.25H40.5V24.75C40.5 25.3467 40.7371 25.919 41.159 26.341C41.581 26.7629 42.1533 27 42.75 27H56.25V60.75ZM47.25 38.25C47.25 38.8467 47.0129 39.419 46.591 39.841C46.169 40.2629 45.5967 40.5 45 40.5H27C26.4033 40.5 25.831 40.2629 25.409 39.841C24.9871 39.419 24.75 38.8467 24.75 38.25C24.75 37.6533 24.9871 37.081 25.409 36.659C25.831 36.2371 26.4033 36 27 36H45C45.5967 36 46.169 36.2371 46.591 36.659C47.0129 37.081 47.25 37.6533 47.25 38.25ZM47.25 47.25C47.25 47.8467 47.0129 48.419 46.591 48.841C46.169 49.2629 45.5967 49.5 45 49.5H27C26.4033 49.5 25.831 49.2629 25.409 48.841C24.9871 48.419 24.75 47.8467 24.75 47.25C24.75 46.6533 24.9871 46.081 25.409 45.659C25.831 45.2371 26.4033 45 27 45H45C45.5967 45 46.169 45.2371 46.591 45.659C47.0129 46.081 47.25 46.6533 47.25 47.25Z",fill:"currentColor"})}),f=(0,r.forwardRef)(g),x=(0,s.Z)((e=>{let{palette:t,spacing:n}=e;return(0,v.Z)({defaultImage:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:t.colors_v2.base[80]},articleIcon:{color:t.colors_v2.element[20],opacity:"1 !important",height:n(7),width:n(7)}})}),{name:"PrevImage"}),w=e=>{let{url:t,videoLink:n}=e;const o=x(),[i,a]=(0,r.useState)();return(0,r.useEffect)((()=>{if(t){const e=new Image;e.onload=()=>a(t),e.src=t}}),[t]),i?(0,c.jsx)("img",{src:i,alt:"img",onError:e=>e.currentTarget.classList.add("error")}):(0,c.jsx)("div",{className:o.defaultImage,children:n?(0,c.jsx)(c.Fragment,{}):(0,c.jsx)(f,{className:o.articleIcon})})},b=(0,s.Z)((e=>{let{palette:t,spacing:n}=e;return{previewContainer:{position:"relative",border:"1px solid ".concat(t.newColors.neutral[100]),borderRadius:n(1.125),margin:e=>{let{columnFeedContent:t}=e;return t?n(1.5,2.25):n(1.5,0,0)},overflow:"hidden","&:hover":{backgroundColor:t.newColors.backgroundBg[3],"& $previewImg":{borderColor:t.newColors.neutral[100]}},"&.commentDetail":{width:"100%",margin:"16px 0 0"}},previewImg:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:268,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",cursor:"pointer","& .portrait":{objectPosition:"top"},"& > iframe":{height:268}},mainContent:{margin:n(1.75,2),fontSize:"16px",letterSpacing:"0.01em",overflow:"hidden"},url:{color:t.colors_v2.element[60],fontWeight:400,fontSize:15,marginLeft:"4px",lineHeight:"20px","&:hover":{color:t.colors_v2.element[60],textDecoration:"underline"}},smallPreview:{position:"relative",paddingLeft:108,paddingRight:12,minHeight:96,margin:e=>{let{columnFeedContent:t}=e;return n(1.5,t?2.25:0)},border:"1px solid ".concat(t.newColors.neutral[100]),overflow:"hidden",borderRadius:9,display:"flex",justifyContent:"center",flexDirection:"column","&:hover":{backgroundColor:t.newColors.backgroundBg[3]},"&.repost":{marginTop:0,marginBottom:"".concat(n(1.5),"px !important")},"&.comment":{margin:n(1.5,0,0,0)}},smallImage:{width:"96px",height:"96px",position:"absolute",top:0,left:0,borderRadius:"".concat(n(1.25),"px 0 0 ").concat(n(1.25),"px"),"& img":{width:"100%",height:"100%",objectFit:"cover",borderRadius:0}},hasMedia:{margin:0,marginTop:12,"&.postContentView":{margin:"12px 15px"}}
2,smallPreviewTitle:{display:"-webkit-box",overflow:"hidden",whiteSpace:"normal !important",textOverflow:"ellipsis",textAlign:"left",wordWrap:"break-word",color:t.colors_v2.element[80],"-webkit-line-clamp":"2 !important","-webkit-box-orient":"vertical"},metaTitle:{color:t.colors_v2.element[80],textAlign:"left",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontSize:"15px !important",lineHeight:"20px !important"},metaDescription:{marginTop:n(.5),color:t.colors_v2.element[80],fontWeight:400,fontSize:"15px !important",lineHeight:1.33,display:"-webkit-box",overflow:"hidden",whiteSpace:"normal !important",textOverflow:"ellipsis",wordWrap:"break-word",textAlign:"left",letterSpacing:"-0.23px","-webkit-line-clamp":"2 !important","-webkit-box-orient":"vertical"},linkIcon:{color:t.colors_v2.element[20]},noBorder:{border:"none"}}})),y=e=>e.substring(0,250)+(e.length>250?"...":""),C=e=>{var t;let{variant:n="big",url:r,title:o,description:i,media:s=(0,c.jsx)(w,{}),mediaHeight:p,scene:v,noBorder:g,postHasMedia:f,columnFeedContent:x}=e;const C=b({columnFeedContent:!!x}),_=null===(t=r.toLowerCase().match(/(https?:\/\/)?([^/]*)/))||void 0===t?void 0:t[2],j=o&&y(o),k=i&&y(i);return"big"===n?(0,c.jsxs)("div",{className:(0,l.Z)(C.previewContainer,"preview-content",v,"apple-glass-effect_dashboard-news-hover-card",{[C.noBorder]:g&&"repost"===v}),onClick:e=>m(e,r),children:[(0,c.jsx)("div",{className:C.previewImg,style:{height:p,overflow:"hidden"},children:s}),(0,c.jsxs)(a.Z,{className:C.mainContent,children:[(0,c.jsx)(d.Z,{variant:"h4_v2",className:(0,l.Z)(C.metaTitle,"".concat(v,"-meta-title"),"apple-glass-effect_text-main"),children:(0,c.jsx)(h.X,{text:j||""})}),(0,c.jsx)(d.Z,{variant:"p2_v2",className:(0,l.Z)(C.metaDescription,"apple-glass-effect_text-main"),children:(0,c.jsx)(h.X,{text:k||""})}),(0,c.jsxs)(a.Z,{display:"flex",alignItems:"center",mt:1,children:[(0,c.jsx)(u,{className:(0,l.Z)(C.linkIcon,"apple-glass-effect_text-sub")}),(0,c.jsx)("div",{className:(0,l.Z)(C.url,"apple-glass-effect_text-sub"),children:_})]})]})]}):(0,c.jsxs)("div",{className:(0,l.Z)(C.smallPreview,v,f&&C.hasMedia,"smallPreview","apple-glass-effect_dashboard-news-hover-card"),onClick:e=>m(e,r),children:[(0,c.jsx)("div",{className:C.smallImage,children:s}),(0,c.jsxs)("div",{children:[(0,c.jsx)(d.Z,{variant:"p2_v2",className:(0,l.Z)(C.smallPreviewTitle,"apple-glass-effect_text-main"),children:j}),(0,c.jsxs)(a.Z,{display:"flex",alignItems:"center",mt:1,children:[(0,c.jsx)(u,{className:(0,l.Z)(C.linkIcon,"apple-glass-effect_text-sub")}),(0,c.jsx)("a",{href:/https?:\/\//.test(r.toLowerCase())?r:"http://".concat(r),target:"_blank",rel:"noopener noreferrer nofollow",className:(0,l.Z)(C.url,"apple-glass-effect_text-sub"),children:_})]})]})]})},_=e=>{var t;let{metadata:n,scene:o,variant:i="big",postHasMedia:a,noBorder:s,columnFeedContent:l}=e;const[d,p]=(0,r.useState)(!1),u="small"===i||d;(0,r.useEffect)((()=>{if("big"===i){const e=new Image;e.src=n.imageUrl,e.onerror=()=>{p(!0)},e.onload=()=>{p(e.width<200&&e.height<200)}}}),[n,i]);const h="post-detail"===o||"comment-detail"===o,m=h?"333px":"300px",v=h?"high":void 0;return(0,c.jsx)(C,{scene:o,variant:u?"small":"big",url:n.url,title:n.title,description:n.description,noBorder:s,columnFeedContent:l,postHasMedia:a,mediaHeight:m,media:u?(0,c.jsx)(w,{url:n.imageUrl,videoLink:!1}):(0,c.jsx)("img",{alt:"".concat((null===(t=n.title)||void 0===t?void 0:t.substring(0,155))||"image"),src:n.imageUrl,style:{height:m,width:"100%",objectFit:"cover"},onLoad:e=>{const t=e.currentTarget;t.naturalHeight/t.naturalWidth>1.2&&t.classList.add("portrait")},onError:e=>e.currentTarget.classList.add("error"),decoding:"async",...v&&{fetchPriority:v}})})};var j=n(20301),k=n(89013),T=n(90848),I=n(39365);const S=(0,s.Z)((()=>({preview:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",cursor:"pointer","& > iframe":{height:"100%",width:"100%"}},playIcon:{height:50,width:50,position:"absolute"}}))),P=e=>{let{metadata:t,scene:n,columnFeedContent:o}=e;const[i,a]=(0,r.useState)(!1),s=S({isRepost:/postContentView|repost/.test(n)}
2),l=["post-detail","comment-detail","post","timeline","profile"].includes(n),d=i?(0,c.jsx)(I.uW,{id:(0,T.tk)(t.url)[1],className:s.preview}):(0,c.jsx)("div",{className:s.preview,style:{backgroundImage:t.imageUrl?"url('".concat(t.imageUrl,"')"):""},onClick:e=>{e.stopPropagation(),a(!0)},children:(0,c.jsx)(k.r,{className:s.playIcon})}),p=(0,c.jsx)(w,{url:t.imageUrl,videoLink:!0});return(0,c.jsx)(C,{scene:n,variant:l?"big":"small",url:t.url,title:t.title,description:t.description,media:l?d:p,columnFeedContent:o})};var N=n(98927);const R=e=>/&#x?/.test(e);var L=n(69212);function Z(e){return e&&(R(e)?e.replace(/(&#)(\d{1,6});/gi,(function(e){return String.fromCharCode(parseInt(escape(e).replace(/(%26%23)(\d{1,6})(%3B)/g,"$2")))})).replace(/(&#x)(\w{1,4});/gi,(function(e){return String.fromCharCode(parseInt(escape(e).replace(/(%26%23x)(\w{1,4})(%3B)/g,"$2"),16))})):e)}const A=e=>{let{scene:t,previewMetaData:n,hasMediaRepost:r,hasImageOrVideo:a,acceptType:s,hasGif:l,noBorder:d=!0,value:p,columnFeedContent:u,isLoading:h,loadingText:m}=e;if(h)return(0,c.jsx)(i.P,{text:m,textClassName:"apple-glass-effect_text-main",isEmbedded:!0,size:36});const v=((e,t)=>{var n;if(t&&(0,N.Q_)(t))return{type:"invite",url:t};if(!(e=e&&(0,L.k6)(e))||!e.url)return{type:"invalid"};if("invite link"===(null===(n=e.title)||void 0===n?void 0:n.toLowerCase()))return{type:"invite",url:e.url};if((0,T.dw)(e.url)&&(0,T.tk)(e.url)&&e.imageUrl)return{type:"youtube",url:e.url,imageUrl:e.imageUrl,title:Z(e.title),description:Z(e.description)};if(e.imageUrl){var r;let t=e.imageUrl;return null!==(r=e.imageUrl)&&void 0!==r&&r.includes(",http")&&(t=e.imageUrl.split(",")[0]),{type:"image",url:e.url,imageUrl:t,title:Z(e.title),description:Z(e.description)}}return e.title?{type:"text",url:e.url,title:Z(e.title),description:Z(e.description)}:{type:"invalid"}})(n,p),g=r||a;if("invalid"===v.type)return null;if("invite"===v.type&&"repost"!==t)return(0,c.jsx)(j.x,{scene:t,url:v.url,withWrapper:Boolean(p),columnFeedContent:u});if("youtube"===v.type&&!a)return(0,c.jsx)(P,{metadata:v,scene:t,columnFeedContent:u});const f=[o.q.FILE_TYPE_IMAGE,o.q.FILE_TYPE_VIDEO,o.q.FILE_TYPE_GIF].includes(s)||l||a;return"image"!==v.type||f?"text"===v.type?(0,c.jsx)(C,{scene:t,variant:"small",url:v.url,title:v.title,description:v.description,columnFeedContent:u}):null:(0,c.jsx)(_,{metadata:v,scene:t,variant:g?"small":"big",postHasMedia:a,noBorder:d,columnFeedContent:u})},B=A},20301:(e,t,n)=>{"use strict";n.d(t,{x:()=>_});var r=n(2295),o=n(1012),i=n(68963),a=n(55195),s=n(62758),l=n(78344),d=n(59474),c=n(88905),p=n(41176),u=n(43e3),h=n(90848),m=n(39633),v=n(46290),g=n(24776),f=n(42223),x=n(31580),w=n(75859);const b=(e,t)=>(0,w.jsxs)("svg",{width:52,height:52,viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",ref:t,...e,children:[(0,w.jsx)("rect",{width:52,height:52,fill:"url(#pattern0)"}),(0,w.jsxs)("defs",{children:[(0,w.jsx)("pattern",{id:"pattern0",patternContentUnits:"objectBoundingBox",width:1,height:1,children:(0,w.jsx)("use",{xlinkHref:"#image0_2860_235225",transform:"scale(0.0125)"})}),(0,w.jsx)("image",{id:"image0_2860_235225",width:80,height:80,xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAiaSURBVHgB5Z1LjFNVGMe/c9rpgIKWBSizsbiZ6EKqYaULO7rTBIdo4gITNbpwN5BIokCYwSiasJghccFCIyay0ziYyE6nLnBFoLCQsJGyYQhgKMzwmE57j+d/L7fT3r7u4ztnhuGXQG8f09777/c45zuPClpG8hOXsrTwWIFI5FRKbiWlcqREzntW5VpfLSr6sTIJqpAQZeHUL5OURUrPl0oTWyq0TAiyiC+YI0RBkHyrXaS4iDJJKop6/QQN3i3aFNSKgPn9swXlDIzpw4IWLUumkeIYxCx9/dQ0GcaYgLA2p7puTJDYZUW0jmhXJ+cgZeraKjeXyQDsAq4M4YKIsiJ17PyhjQeJGVYB83uvfaBIjvPFNm48iywd2nSMmGARMD8xm1OL6R9IIcY9FEyLTG03h1tLSsgLe/8bU9WBsw+ReGBUVdNn4TGUkNgW6Ma6xXXjQtEueohRgqbOf7VxN8UkloCuyy6kpnWDdiutDkrapXfEcenIArriVQdmVm6iiItOMJnFkagiRoqBtsX75PXHyB7KvTZcY5S/Ci3gclje9hfX0J4315E9oosYSsDlEG94c5qGNkja+fIa99ge0UQMJaCbMCzHvJ0vr20c73nzcbILREz/mp+42bcn1VfAF/Zdn7SdbYc2pGjbloHGfRyvX2O1cATyzmJtvN+LegqIhuZytPPgtnDflsdeWUu2wbXnP7/a8/q7CujGPZKTZBlYX7P7+jRbpE2USI33ioddBdSBdNJ2NQXifffRkx2fC7rx8OaULbfOuv38LnQU0OsjqlGyDJJF0HWb2fZspnE88vygvSaO7ud36zfLzq+XfYMnNxBv5LlMz9fA6hrHT6dp+0uD+m8GyQbQpFNWbhNQV1es1/PQ4+gU94IMZb3ThauPPO+Jba+JozWpVtsSSouACJaC1AdkEYj3yWvhumwQDsDylh6T1hKMtsKxoBW2WmA1VbBpfbCesOKBoWyqY5a22GfOBq2wRUCbse+Lt9eHctsgyNLB7Iuunq2GNqyw+X5DwPz+G6O2rA/iNbthWOCunbI0xLPYX87m918v+HcaZ+Mox3izBRcaV7x+DA8tCWhaTOVQwwpdAREYhRLvk2G+eMeMeGD46aUmDj7DcNev4CcT76uq1QtkGFhev3ZeEoY3L2VitA3h6hev1Oj0pUUyQJYWqgV9O+1aoGn3RZY0ZXk+fhL
2Z/tJSIQJfmrHkokQBN+4nCSVfJUPAlaI0VeKyfq1wmzjNn+UWZA25spKYHKW1gy+rau0mGQAXdPLTDZSU384suD2PftZ05abTlqXn7it699uKfq5O3IhMWn9arZYnQ3SrrETh+Kn7dOCXObo4W+v72m5NHGMeoOOgJMcpkAEQ93pVVsJwcbZOh0/Ou8dJumuIv343kBeVk7ppnSNmcLIYUUsC3HH38dvu8bZnk/d1jSQxIbdKJVPPEDOwliTWB/E+/v5WI25xFAvQbeTOyEoIWCB/1TlJzEHQh+U1B30OAY109xQEJJEjRvzx3Lgc+Hm+LWFwlatQxeZGco97JIlXR/+4SzMXFtjeLwh/3RBJhJltuXgnCfGO/nm3/f0YLzppq6AT7O8Y5yRnLlQ7igc4BTTRrWOv+0RtbyHjHvh5ruvzx0/d61sQgDBxirMcpN1FKoyF1Cjfst9cQebtBqwT/3rRbTDeAhX+oBASiNbc1otLr8F4C5QlCSrTMrD7p9uJxYO1QzwTySEUgippLNpTgu8EYFlh3BjNk37xEu3BXkWEyfeeiCRer1ARB6FUGTGwpI/Zyvlz98IJGKa3guTx8Xe3Oj6HIdGoGRoxlxd1WVJKlomRMGWn8O/V2cXDzmQIcqXCXBOUsigpnSoSI6fLfGMQM/8stD2WpMLN+eW6pNMlWZrYUPGaMjxgIIftvQIXjH72njfiz4U5/S/nAJMqQztvTIScE8QE4hZHsA6+DxLO5M4nKC6If5wjdIJkEbdeCpPeHS6O/32PktIc//y2XpLmCvvwpqq7RuedkRsHBdsyeXS/kuLHP2R0WF7Stl63vnZsBjNF3LhnBV8WVP+LmIDrJRXRj3+Yhdo8sTIOGNXjHJUTJI55uaO5GiPlFDGCbzxuLPTjH8eAPGIfu/U9cF/QELD05cYipxtDANT44oB5gFHnDnYD4vGOCevs27SZRUtgEaSOECNIJnFc2Vvilby6gjHl387cJ050H6tl34XWyJxJT3FaITh88o6pCT49aR5T5kOVyakXmx9pEdBLJrxWCFB5Ye8F9MDrQ/PvvaO1+bH0Tet64rZevzdXZvEs92gdQC/C9JItuC2/5QFVPndo05bgo22NK88KiX1/FQB3PvDLvIGqiJe0Dv9+x5B47bGv6fHObN13Y0YPuhfIAP40NK7pFrC6o3/eYa/3NTF97tDGHZ2e6Cpg/rPZnJIDZ02ul/OFjDMVxG+sI9MbFA5UhFN7MRj7fHpWPvP7ru1SSlhZsQkRUaV2ZzZkpSuuX5iFQCjUXrzqTdk1OHW3DZ04Puy101Hf0nF+740pRWqMHkGEo46UvtkUb71wg0xqQv9fokcN5ZzrJx7oK6CblZ3aDrcR+cigyiLkxPvQo+BeUknNmGgfriwUthcd6ZY0gkSaLLL6RYwmHoi+9dOqFTG6eCBymRcfgA+i1ZRYdMKIIx5INN9rNTRx0FShNXcm4u78m3jC3INtP63v8MFARSh1sPT1pkSVeJ4tQHVcxJCAIm/504pHYM/p2odxXLb9rRjxrJHGV26C0YlCV1VW3Ca0QfJ7r0/o2Pj+ChISJbojlJmf4t7l3NxG3K5bpwrLbJHGhPOxtBX8jVGqO6NKmF8Vr4FQRSHpiDfSaBare8q5P0ZQW1/wxKRX+SwTv+7gnKA0ft1hbvX9GEE3PEHX5bFi1F2zh4WP3tKzHGFZfQsPZpBhSrL+J+rOOXduo2XBgvwPc2utxyrxXlsAAAAASUVORK5CYII="})]})]}),y=(0,i.forwardRef)(b),C=(0,r.Z)((e=>({wrapper:{padding:"8px 0 0",background:e.palette.colors_v2.base[20],borderRadius:e.spacing(1.125),margin:e=>{let{scene:t,isTopic:n}=e;return"post"===t?"6px 0 16px":n?"24px 0 16px":"10px 0 16px"},border:"1px solid ".concat(e.palette.colors_v2.base[40]),"&:hover":{background:e.palette.colors_v2.base[60]}},avatarDefault:{width:"52px",height:"52px",borderRadius:"100%",flex:"0 0 54px",overflow:"hidden","& img":{display:"block",width:"100%",height:"100%"}},avatar:{marginLeft:0,marginRight:0},inviteInfo:{display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",maxWidth:300,"& .topic-groupTitle":{maxWidth:"150px"}},groupTitle:{color:e.palette.colors_v2.element[80],overflow:"hidden",textOverflow:"ellipsis",maxWidth:300,whiteSpace:"nowrap"},groupDesc:{color:e.palette.colors_v2.element[20]},groupPreview:{display:"flex",padding:e.spacing(1,1.5),borderRadius:e.spacing(.75),gap:e.spacing(1.75),background:e.palette.colors_v2.base[40],margin:"0 8px"},InviteFooter:{borderTop:"1px solid ".concat(e.palette.colors_v2.base[40]),display:"flex",justifyContent:"center",alignItems:"center",height:40,wordBreak:"break-all"},joinLink:{alignSelf:"center",color:e.palette.colors_v2.accentLink,cursor:e=>{let{scene:t}=e;return"post"===t?"default":"pointer"},width:"100%",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",height:40,"&:hover":{textDecoration:"underline"}},joinText:{color:e.palette.colors_v2.accentLink},expiredText:{color:e.palette.colors_v2.element[40]},inviteText:{padding:"8px",overflow:"hidden",margin:"0 8px"},textLeft:{textAlign:"left",wordBreak:"break-all"},joinTitle:{display:"inline",color:e.palette.colors_v2.element[80]},urlLength:{display:"inline",maxWidth:"380px",wordBreak:"break-all",textAlign:"left",color:e.palette.colors_v2.accentLink,"&:hover":{textDecoration:"underline"}},urlLengthExpired:{display:"inline-block",wordBreak:"break-all",color:e.palette.colors_v2.element[40],textAlign:"left",padding:"0 8px"},massiveGroupTagIcon:{display:"inline-block",verticalAlign:"top",marginLeft:e.spacing(1)},anotherWrapper:{padding:e=>{let{columnFeedContent:t}=e;return t?"0 18px":0},fontSize:15}})),{name:"PreviewInviteLink"}),_=e=>{let{url:t,scene:n,withWrapper:r,columnFeedContent:b}=e;const{invite_link:_,message:j}=(0,h.gw)(t),[k,T]=(0,i.useState)({content:"",image_url:[],title:"",expired:!1,name:"",image:"",isLoading:!0,is_super:!1}),{pathname:I}=(0,l.TH)(),S=I.includes("hashtag"),P=C({scene:n,isInTopic:S,columnFeedContent:b}),{authenticated:N}=(0,m.E)(),R=(0,v.l)(),L=(0,g.w)(R,"","","","",_.replace(/.+(\/messages\/invitations.+)/,"$1")),Z=(0,s.I0)(),{t:A}=(0,a.$)();(0,i.useEffect)((()=>{(async()=>
2{if(_&&t){var e,n;const t=_.match(/code=([^&#]+)/),r=t?t[1]:"",o=await Z((0,c.AZ)(r)).unwrap();let i=!1;if(400===(null===o||void 0===o||null===(e=o.response)||void 0===e?void 0:e.status))return i=!0,void T({expired:!0,isLoading:!1});const a=await Z((0,c.Gs)(r)).unwrap();T({content:j,name:null===a||void 0===a?void 0:a.name,image_url:null===a||void 0===a||null===(n=a.members)||void 0===n?void 0:n.map((e=>null===e||void 0===e?void 0:e.ico)).filter((e=>e)),is_super:a.is_super,title:null===a||void 0===a?void 0:a.name,image:null===a||void 0===a?void 0:a.image,isLoading:!1})}})()}),[t,_]);const B=!k||null!==k&&void 0!==k&&k.isLoading?(0,w.jsx)("div",{className:P.wrapper,children:(0,w.jsx)(u.P,{wrapperStyle:{display:"flex",justifyContent:"center",alignItems:"center"}})}):(0,w.jsxs)("div",{className:(0,o.Z)(P.wrapper,"inviteLinkWrapper"),children:["post"===n?(0,w.jsxs)("div",{className:P.groupPreview,children:[null!==k&&void 0!==k&&k.image?(0,w.jsx)("div",{className:P.avatarDefault,children:(0,w.jsx)("img",{src:k.image,alt:"group-cover"})}):null===k||void 0===k||!k.image_url||null!==k&&void 0!==k&&k.image?(0,w.jsx)("div",{className:P.avatarDefault,children:(0,w.jsx)(y,{})}):(0,w.jsx)(d._,{avatarUrls:k.image_url,size:54,className:P.avatar}),(0,w.jsxs)("div",{className:(0,o.Z)(P.inviteInfo,"inviteInfo"),children:[(0,w.jsxs)(f.Z,{variant:"h4_v2",className:(0,o.Z)(P.groupTitle,S&&"topic-groupTitle"),children:[k.title||A("getter_fe.directMessage.gettr_group_invite"),k.is_super&&(0,w.jsx)(x.r,{className:P.massiveGroupTagIcon})]}),(0,w.jsx)(f.Z,{variant:"p3_v2",className:P.groupDesc,children:A("getter_fe.directMessage.gettr_group_chat_invite")})]})]}):(0,w.jsx)("a",{href:_,onClick:()=>{N?null!==k&&void 0!==k&&k.expired||(location.href=_):Z((0,p.AR)(L))},children:(0,w.jsxs)("div",{className:P.groupPreview,children:[null!==k&&void 0!==k&&k.image?(0,w.jsx)("div",{className:P.avatarDefault,children:(0,w.jsx)("img",{src:k.image,alt:"group-cover"})}):null===k||void 0===k||!k.image_url||null!==k&&void 0!==k&&k.image?(0,w.jsx)("div",{className:P.avatarDefault,children:(0,w.jsx)(y,{})}):(0,w.jsx)(d._,{avatarUrls:k.image_url,size:54,className:P.avatar}),(0,w.jsxs)("div",{className:(0,o.Z)(P.inviteInfo,"inviteInfo"),children:[(0,w.jsxs)(f.Z,{variant:"h4_v2",className:(0,o.Z)(P.groupTitle,S&&"topic-groupTitle"),children:[k.title||A("getter_fe.directMessage.gettr_group_invite"),k.is_super&&(0,w.jsx)(x.r,{className:P.massiveGroupTagIcon})]}),(0,w.jsx)(f.Z,{variant:"p3_v2",className:P.groupDesc,children:A("getter_fe.directMessage.gettr_group_chat_invite")})]})]})}),(0,w.jsx)("div",{className:(0,o.Z)(P.inviteText),children:null!==k&&void 0!==k&&k.expired?(0,w.jsx)(f.Z,{variant:"p2_v2",className:P.urlLengthExpired,children:_}):(0,w.jsxs)("div",{className:P.textLeft,children:[(0,w.jsxs)(f.Z,{variant:"p2_v2",className:P.joinTitle,children:[A("getter_fe.directMessage.link_join_group_chat"),":"," "]}),(0,w.jsx)(f.Z,{variant:"p2_v2",className:P.urlLength,children:_})]})}),null!==k&&void 0!==k&&k.expired?(0,w.jsx)("div",{className:P.InviteFooter,children:(0,w.jsx)(f.Z,{className:P.expiredText,variant:"p2_v2",children:A("getter_fe.directMessage.invite_link_expired")})}):(0,w.jsx)("div",{className:P.InviteFooter,children:"post"===n?(0,w.jsx)("a",{className:P.joinLink,children:(0,w.jsx)(f.Z,{className:P.joinText,variant:"p2_v2",children:A("getter_fe.directMessage.join_group")})}):(0,w.jsx)("a",{href:_,onClick:()=>{N?location.href=_:Z((0,p.AR)(L))},className:P.joinLink,children:(0,w.jsx)(f.Z,{className:P.joinText,variant:"p2_v2",children:A("getter_fe.directMessage.join_group")})})})]});return r?B:(0,w.jsx)("div",{className:P.anotherWrapper,children:B})}},59474:(e,t,n)=>{"use strict";n.d(t,{_:()=>c});var r=n(68963),o=n(2295),i=n(87381),a=n(1012),s=n(44665),l=n(75859);const d=(0,o.Z)((e=>(0,i.Z)({avatar:{display:"flex",alignItems:"center",justifyContent:"center",height:e=>e+2,minWidth:e=>e+2,maxWidth:e=>e+2,borderRadius:e=>e/2,position:"relative",marginRight:10,marginLeft:16,"& .avatarIconCircle":{height:e=>e,width:e=>e,borderRadius:e=>e/2,border:"1px solid ".concat(e.palette.newColors.avatarBorder)},"& .avatarIconHalf":{height:e=>e,width:e=>e/2},"& .avatarIconQuarter":{height:e=>e/2,width:e=>e/2,border:"none"},"& .avatarIconLeftHalf":{borderTopLeftRadius:e=>e/2,borderBottomLeftRadius:e=>e/2,borderRight:"none"},"& .avatarIconRightHalf":{borderTopRightRadius:e=>e/2,borderBottomRightRadius:e=>e/2},"& .avatarIconTopLeftQuarter":{borderTopLeftRadius:e=>e/2,borderLeft:"1px solid ".concat(e.palette.newColors.avatarBorder),borderTop:"1px solid ".concat(e.palette.newColors.avatarBorder)},"& .avatarIconTopRightQuarter":{borderTopRightRadius:e=>e/2,borderRight:"1px solid ".concat(e.palette.newColors.avatarBorder),borderTop:"1px solid ".concat(e.palette.newColors.avatarBorder)},"& .avatarIconBottomLeftQuarter":{borderBottomLeftRadius:e=>e/2,borderLeft:"1px solid ".concat(e.palette.newColors.avatarBorder),borderBottom:"1px solid ".concat(e.palette.newColors.avatarBorder)},"& .avatarIconBottomRightQuarter":{borderBottomRightRadius:e=>e/2,borderRight:"1px solid ".concat(e.palette.newColors.avatarBorder),borderBottom:"1px solid ".concat(e.palette.newColors.avatarBorder)},[e.breakpoints.down("xs")]:{marginLeft:10}},twoAvatars:{"& > div":{height:"50%","& >
2 span":{verticalAlign:"top"}}}}))),c=r.memo((e=>{let{avatarUrls:t,className:n,size:r=50}=e;const o=d(r);return!t||t.length<1?(0,l.jsx)("div",{className:(0,a.Z)(o.avatar,n),children:(0,l.jsx)(s.N,{styleClasses:"avatarIconCircle",shape:"square"})}):1===t.length?(0,l.jsx)("div",{className:(0,a.Z)(o.avatar,n),children:(0,l.jsx)(s.N,{avatarUrl:t[0],styleClasses:"avatarIconCircle",shape:"square"})}):2===t.length?(0,l.jsxs)("div",{className:(0,a.Z)(o.avatar,n),children:[(0,l.jsx)(s.N,{avatarUrl:t[0],styleClasses:"avatarIconHalf avatarIconLeftHalf",shape:"square",isStraight:!0,isHigher:!0}),(0,l.jsx)(s.N,{avatarUrl:t[1],styleClasses:"avatarIconHalf avatarIconRightHalf",shape:"square",isStraight:!0,isHigher:!0})]}):3===t.length?(0,l.jsxs)("div",{className:(0,a.Z)(o.avatar,n),children:[(0,l.jsx)(s.N,{avatarUrl:t[0],styleClasses:"avatarIconHalf avatarIconLeftHalf",shape:"square",isStraight:!0,isHigher:!0}),(0,l.jsxs)("div",{className:(0,a.Z)(o.twoAvatars,"twoAvatars"),children:[(0,l.jsx)(s.N,{avatarUrl:t[1],styleClasses:"avatarIconQuarter avatarIconTopRightQuarter",shape:"square",isStraight:!0}),(0,l.jsx)(s.N,{avatarUrl:t[2],styleClasses:"avatarIconQuarter avatarIconBottomRightQuarter",shape:"square",isStraight:!0})]})]}):t.length>3?(0,l.jsxs)("div",{className:(0,a.Z)(o.avatar,n),children:[(0,l.jsxs)("div",{className:(0,a.Z)(o.twoAvatars,"twoAvatars"),children:[(0,l.jsx)(s.N,{avatarUrl:t[0],styleClasses:"avatarIconQuarter avatarIconTopLeftQuarter",shape:"square",isStraight:!0}),(0,l.jsx)(s.N,{avatarUrl:t[1],styleClasses:"avatarIconQuarter avatarIconBottomLeftQuarter",shape:"square",isStraight:!0})]}),(0,l.jsxs)("div",{className:(0,a.Z)(o.twoAvatars,"twoAvatars"),children:[(0,l.jsx)(s.N,{avatarUrl:t[2],styleClasses:"avatarIconQuarter avatarIconTopRightQuarter",shape:"square",isStraight:!0}),(0,l.jsx)(s.N,{avatarUrl:t[3],styleClasses:"avatarIconQuarter avatarIconBottomRightQuarter",shape:"square",isStraight:!0})]})]}):void 0}))},53426:(e,t,n)=>{"use strict";n.d(t,{B:()=>oe,e:()=>ie});var r=n(3861),o=n(2295),i=n(1012),a=n(68963),s=n(62758),l=n(78344),d=n(34990),c=n(4365),p=n(13639),u=n(37958),h=n(57711),m=n(93406),v=n(88313),g=n(32495),f=n(31203),x=n(93347),w=n(42223),b=n(84152),y=n(30107),C=n(43003),_=n(23254),j=n(62290),k=n(73650),T=n(98927),I=n(24463),S=n(71710),P=n(20587),N=n(35247),R=n(96581),L=n(98921),Z=n(55195),A=n(23169),B=n(27876),E=n(87031),z=n(29767),O=n(64598),H=n(52657),M=n(92169),D=n(74859),F=n(48089),U=n(70602),W=n(83788),Q=n(26723),G=n(33624),q=n(45040),V=n(55921),X=n(15021),J=n(81557),Y=n(30497),K=n(75859);const $=(e,t)=>(0,K.jsxs)("svg",{width:17,height:18,viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,K.jsx)("path",{d:"M13.3138 9.09141L13.3138 11.4238C13.3138 12.1777 12.6974 12.7944 11.9439 12.7944L4.68351 12.7944L6.25894 11.2182C6.39597 11.0812 6.46442 10.9098 6.46442 10.7385C6.46442 10.5672 6.39597 10.3958 6.25894 10.2588C5.98499 9.98476 5.57402 9.98476 5.29997 10.2588L2.42317 13.1371C2.42317 13.1714 2.38889 13.1714 2.38889 13.2056C2.38889 13.2399 2.38889 13.2399 2.3546 13.2741C2.3546 13.3084 2.3546 13.3084 2.32031 13.3426C2.35471 13.4455 2.35471 13.514 2.35471 13.6168C2.35471 13.6511 2.35471 13.6511 2.389 13.6853C2.389 13.7196 2.389 13.7196 2.42329 13.7538C2.42329 13.7538 2.42317 13.7881 2.45746 13.8224C2.45746 13.8224 2.45746 13.8567 2.49175 13.8567C2.49175 13.8909 2.52592 13.9252 2.5602 13.9595L5.29997 16.7007C5.57391 16.9748 5.98488 16.9748 6.25894 16.7007C6.53288 16.4266 6.53288 16.0154 6.25894 15.74
212L4.68351 14.1651L11.9442 14.1651C13.451 14.1651 14.6839 12.9315 14.6839 11.4239L14.6839 9.09152C14.6839 8.71464 14.3757 8.40625 13.999 8.40625C13.6222 8.40614 13.3138 8.71453 13.3138 9.09141Z",fill:"currentColor"}),(0,K.jsx)("path",{d:"M10.7455 0.885276C10.4716 1.15936 10.4716 1.57054 10.7455 1.84474L12.321 3.42086L5.06014 3.42086C3.55325 3.42086 2.32031 4.65441 2.32031 6.16204L2.32031 8.49442C2.32031 8.8713 2.62855 9.17969 3.00524 9.17969C3.38193 9.17969 3.69017 8.8713 3.69017 8.49442L3.69017 6.16204C3.69017 5.40817 4.30664 4.7914 5.06014 4.7914L12.3207 4.7914L10.7452 6.36764C10.4713 6.64172 10.4713 7.0529 10.7452 7.3271C11.0192 7.60118 11.4302 7.60118 11.7042 7.3271L14.5811 4.44882C14.5811 4.41452 14.6154 4.41452 14.6154 4.38033C14.6154 4.34603 14.6154 4.34603 14.6497 4.31184C14.6497 4.27753 14.6497 4.27753 14.6839 4.24335L14.6839 4.10625L14.6839 3.96915C14.6839 3.93484 14.6839 3.93484 14.6497 3.90066C14.6497 3.86635 14.6497 3.86635 14.6154 3.83216C14.6154 3.79786 14.5811 3.79786 14.5811 3.76367C14.5811 3.76367 14.5811 3.72937 14.5468 3.72937L11.7042 0.885394C11.4303 0.611082 11.0195 0.611194 10.7455 0.885276Z",fill:"currentColor"})]}),ee=(0,a.forwardRef)($),te=(0,o.Z)((e=>({flexDisplay:{flexBasis:e.spacing(3),flexGrow:1,maxWidth:"max-content",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden","&:hover":{textDecoration:"underline"}},multiHeader:{display:"flex",alignItems:"center",color:e.palette.colors_v2.element[20],fontSize:13,lineHeight:"16px",padding:e.spacing(0,0,2,.5),fontWeight:500,"& svg":{minWidth:16,marginRight:e.spacing(1.25),marginLeft:e.spacing(3.125)},"& a":{color:e.palette.colors_v2.element[20],lineHeight:"20px",marginRight:e.spacing(.5),"&:hover":{color:e.palette.colors_v2.element[80]}}},topLine:{display:"flex",alignItems:"center",color:e.palette.colors_v2.element[20],fontSize:13,lineHeight:"16px",padding:e.spacing(0,0,2,.5),fontWeight:500,"& svg":{marginRight:e.spacing(1.25),marginLeft:e.spacing(3.125)},"& a":{color:e.palette.colors_v2.element[20],marginRight:e.spacing(1.25),"&:hover":{color:e.palette.colors_v2.element[80]}}},repostSpacing:{marginRight:e.spacing(.5),borderBottom:"1px solid transparent"},overflowContainer:{lineHeight:"20px",maxWidth:"max-content",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},repostTextContainer:{lineHeight:"20px"},spacing:{height:16,width:4,display:"inline-block",borderBottom:"1px solid transparent",paddingBottom:2},icon:{color:e.palette.colors_v2.element[60]}})),{name:"RepostHeader"}),ne=e=>{var t,n,r;let{user:o,users:a,item:l,scene:d}=e;const c=te({scene:d}),{t:p}=(0,Z.$)(),u=(0,s.I0)(),h=l.uid,m=(null===h||void 0===h?void 0:h.length)>2,v=(0,s.v9)((e=>{var t,n;return null===(t=e.auth)||void 0===t||null===(n=t.session)||void 0===n?void 0:n.userinfo})),g=null===v||void 0===v?void 0:v._id,x=g&&((null===o||void 0===o?void 0:o._id)===g||(null===o||void 0===o?void 0:o.id)===g);return x&&["timeline"].includes(d)?(0,K.jsx)(K.Fragment,{}):(0,K.jsx)(K.Fragment,{children:a?(0,K.jsxs)("div",{className:c.multiHeader,children:[(0,K.jsx)(ee,{className:c.icon}),(0,K.jsx)(J.rU,{className:c.flexDisplay,onClick:e=>e.stopPropagation(),to:"/user/".concat(null===(t=a[h[0]])||void 0===t?void 0:t.id),children:h[0]===g?p("getter_fe.post.text.you"):(0,K.jsx)(Y.X,{ellipsis:!0,text:(0,X.ZP)(a[h[0]]?(0,j.Gf)(a[h[0]]):h[0])})}),m?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)("a",{className:c.flexDisplay,onClick:e=>{e.stopPropagation(),u((0,f.aO)({postId:null===l||void 0===l?void 0:l.id,statsType:"repost",isOpen:!0,handleClose:()=>{u((0,f.aO)({isOpen:!1}))}}))},href:"javascript:void(0)",children:p("getter_fe.post.text.moreRepostedYou",{number:h.length-1})}),p("getter_fe.post.text.reposted")]}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)("span",{className:c.repostSpacing,children:p("getter_fe.notifications.multiUserDivider")}),(0,K.jsx)("span",{className:c.flexDisplay,children:(0,K.jsx)(J.rU,{onClick:e=>e.stopPropagation(),to:"/user/".concat(null!==(n=null===(r=a[h[1]])||void 0===r?void 0:r.id)&&void 0!==n?n:h[1]),children:h[1]===g?p("getter_fe.post.text.you"):(0,K.jsx)(Y.X,{ellipsis:!0,text:(0,X.ZP)(a[h[1]]?(0,j.Gf)(a[h[1]]):h[
21])})})}),p("getter_fe.post.text.reposted")]})]}):(0,K.jsxs)(J.rU,{className:c.topLine,onClick:e=>e.stopPropagation(),to:"/user/".concat((null===o||void 0===o?void 0:o._id)||(null===o||void 0===o?void 0:o.id)),children:[(0,K.jsx)(ee,{className:c.icon}),x?p("getter_fe.post.text.you_reposted"):(0,K.jsx)(K.Fragment,{children:(0,K.jsxs)("span",{className:(0,i.Z)(c.flexDisplay,c.repostSpacing),children:[(0,K.jsx)("span",{className:c.overflowContainer,children:(0,K.jsx)(Y.X,{ellipsis:!0,text:(0,X.ZP)(String(o?(0,j.Gf)(o)||"":Array.isArray(h)?h[0]||"":h||""))})}),(0,K.jsx)("span",{className:c.spacing}),(0,K.jsx)("span",{className:c.repostTextContainer,children:p("getter_fe.post.text.reposted")})]})})]})})},re=(0,o.Z)((e=>{let{palette:t,spacing:n,breakpoints:r}=e;return{wrapper:{width:"100%",paddingBottom:e=>{let{scene:t}=e;return"timeline"===t?0:"repost"===t?9:b.j.FEED_ITEM_MARGIN_BOTTOM},[r.down("xs")]:{paddingBottom:e=>{let{scene:t}=e;return(0,V.a)(t)?0:void 0}}},feedItem:{cursor:e=>{let{scene:t}=e;return"comment"===t?"default":"pointer"},display:"flex",flexDirection:"column","-webkit-tap-highlight-color":"transparent"},replayMediaStack:{display:"flex",flexDirection:"column",minWidth:0,[r.down("xs")]:{gridColumn:e=>{let{scene:t}=e;return(0,V.a)(t)&&"1 / -1"}}},replayMetaSlot:{order:e=>{let{replayMetaAbove:t}=e;return t?0:2},minWidth:0},replayCoverSlot:{order:1,minWidth:0},replaySummarySlot:{order:3,minWidth:0},topLine:{display:"flex",alignItems:"center",gap:n(1),padding:n(0,0,2,.5)},feedItemBody:{padding:e=>{let{scene:t}=e;return n(1.75,"comment"===t?0:2.25)},paddingBottom:e=>{let{scene:t}=e;return"repost"===t&&3},"& .embeddedContentBody":{"& .imageContainer":{margin:0},"& .mediaContainer":{margin:0}},"& .embeddedStream":{padding:n(0,0,1.875),lineHeight:"20px"},"& .imageContainer":{marginTop:n(1.25),borderRadius:n(1.25)},"& .mediaContainer":{marginTop:n(1.25),borderRadius:n(1.25)},[r.down("xs")]:{padding:e=>{let{scene:t}=e;return(0,V.a)(t)?n(1,2.25):void 0}}},feedItemContent:{display:"flex",[r.down("xs")]:{display:e=>{let{scene:t}=e;return(0,V.a)(t)?"grid":"flex"},gridTemplateColumns:e=>{let{scene:t}=e;return(0,V.a)(t)?"48px minmax(0, 1fr)":void 0},columnGap:e=>{let{scene:t}=e;return(0,V.a)(t)?8:void 0},"& > $feedColumn > .timeline-post-stat-line, & > $feedColumn > .profile-post-stat-line":{gridColumn:e=>{let{scene:t}=e;return(0,V.a)(t)&&"1 / -1"}}}},feedColumn:{width:e=>{let{scene:t}=e;return"repost"===t?"calc(100% - 18px)":"calc(100% - 60px)"},display:"flex",flex:1,flexDirection:"column",marginLeft:n(1.75),[r.down("xs")]:{display:e=>{let{scene:t}=e;return(0,V.a)(t)?"contents":"flex"},marginLeft:e=>{let{scene:t}=e;return(0,V.a)(t)?0:n(1.5)}},"& .detailLine":{padding:"5px 10px 7px 0px","& div:first-child":{left:-8},marginLeft:"-8px"},"& .sticker-tip-main-container":{margin:"3px 18px 5px 0"}},headerContent:{height:24,lineHeight:"20px",flexGrow:1,display:"flex",justifyContent:"space-between",fontSize:"16px",flexWrap:"nowrap","& .dropdown-w":{marginRight:0,width:32,height:32},[r.down("xs")]:{gridColumn:e=>{let{scene:t}=e;return(0,V.a)(t)&&2},gridRow:e=>{let{scene:t}=e;return(0,V.a)(t)&&1},height:e=>{let{scene:t}=e;return(0,V.a)(t)?48:24},minWidth:0,"& .dropdown-w":{width:e=>{let{scene:t}=e;return(0,V.a)(t)?20:32},height:e=>{let{scene:t}=e;return(0,V.a)(t)?20:32}}}},moreDropdown:{height:24,[r.down("xs")]:{width:e=>{let{scene:t}=e;return(0,V.a)(t)&&20},height:e=>{let{scene:t}=e;return(0,V.a)(t)?20:24},flexShrink:e=>{let{scene:t}=e;return(0,V.a)(t)&&0}}},avatarColumn:{position:"relative","& > div":{maxWidth:"100%"},"&.comment-line-vl":{"&::after":{content:"''",position:"absolute",top:"60px",left:"50%",bottom:"-10px",width:"3px",backgroundColor:t.newColors.neutral[100],borderRadius:"3px",transform:"translate(-50%, 0)"}},[r.down("xs")]:{gridColumn:e=>{let{scene:t}=e;return(0,V.a)(t)&&1},gridRow:e=>{let{scene:t}=e;return(0,V.a)(t)&&1}}},feedItemTypoText:{color:t.colors_v2.element[20]},editIcon:{color:t.colors_v2.element[20]},topIcon:{color:t.colors_v2.element[60]},topText:{color:t.colors_v2.element[80]},hasMore:{display:"flex",alignItems:"center",gap:n(.5),marginTop:n(1)},emptyItem:{display:"block",height:1,width:"100%"},avatar:{width:n(4),height:n(4),[r.down("xs")]:{width:e=>{let{scene:t}=e;return(0,V.a)(t)?48:n(4)},height:e=>{let{scene:t}=e;return(0,V.a)(t)?48:n(4)},boxSizing:e=>{let{scene:t}=e;return(0,V.a)(t)&&"border-box"}},[r.up("sm")]:{width:n(5.5),height:n(5.5)}},replyContext:{[r.down("xs")]:{gridColumn:e=>{let{scene:t}=e;return(0,V.a)(t)&&"1 / -1"}}},highlightText:{color:t.colors_v2.textBg}}}),{name:"FeedItem"}),oe=(0,s.$j)((e=>{var t,n,r,o;return{userInfo:null===(t=e.auth)||void 0===t||null===(n=t.session)||void 0===n?void 0:n.userinfo,streamData:null===(r=e.post)||void 0===r||null===(o=r.stream)||void 0===o?void 0:o.data}}
2),{getStream:f.MV,getMaStream:f.ar,setStreamData:f.XU,updateSource:N.v0,setWhereLocation:O.P9,setCurrentDisplayPostId:H.Vq})((0,a.memo)(ae)),ie=e=>({search:"SEARCH_RESULT",timeline:U.PU[e],profile:"USER_PROFILE","post-detail":"POST_DETAIL"});function ae(e){var t,n,o,f,b,N,O;let{from:H,scene:X,item:J,user:Y,users:$,originalUser:ee,embededPost:te,embededUser:oe,isPinned:ae,hideMore:se,hidePostStatLine:le,deleteItem:de,insideComposer:ce,removePostFromProfile:pe,removeBookmarkedItem:ue,userInfo:he,isValid:me,usedBy:ve,getStream:ge,getMaStream:fe,setStreamData:xe,streamData:we,onLinkClick:be,preventDefaultScroll:ye,idx:Ce,onSoftDelete:_e,updateSource:je,timelineType:ke,phrase:Te="",setWhereLocation:Ie,setCurrentDisplayPostId:Se,onScrollUpdate:Pe,hideTranslator:Ne,tabIndex:Re,disableScrollUpdate:Le,disableStreamDataFetch:Ze,highlightText:Ae,dataTestid:Be}=e;const Ee=(0,s.v9)((e=>{var t,n;return null===(t=e.auth)||void 0===t||null===(n=t.session)||void 0===n?void 0:n.userinfo})),ze=(0,l.TH)(),{t:Oe}=(0,Z.$)(),He=(0,r.Z)(),Me=(0,R.Z)(He.breakpoints.only("xs")),De=(0,l.s0)(),[Fe,Ue]=(0,a.useState)(!1),{action:We,act_type:Qe,cdate:Ge,id:qe,replyingTo:Ve,p_type:Xe,type:Je,impressionType:Ye}=null!==J&&void 0!==J?J:{},Ke="comment"!==X&&(0,E.ee)(Xe),$e="vi_pst"===Xe,[et,tt]=(0,a.useState)(void 0),[nt,rt]=(0,a.useState)(0),[ot,it]=(0,a.useState)(-1),[at,st]=(0,a.useState)(!1),[lt,dt]=(0,a.useState)(!1),[ct,pt]=(0,a.useState)(null),[ut,ht]=(0,a.useState)(!1),mt=(0,D.B)(qe),vt=(0,j.ol)(We)&&(null===(t=Y)||void 0===t?void 0:t._id)!==(null===Ee||void 0===Ee?void 0:Ee._id),gt="profile"===X&&(!(null!==Ee&&void 0!==Ee&&Ee._id)||J.uid===((null===(n=Y)||void 0===n?void 0:n._id)||(null===(o=Y)||void 0===o?void 0:o.id)))&&(null===J||void 0===J?void 0:J.originUser),ft=mt||vt||gt,xt=ee?"s"===ee.status:"s"===(null===(f=Y)||void 0===f?void 0:f.status),wt=k.k.SinceTimeV5(Ge,Date.now(),(0,y.VQ)(),!1),bt=k.k.SinceTimeV4(Ge,Date.now()),yt=(0,j.DM)(J),Ct=(0,B.Z)(),_t=null!==he&&void 0!==he&&he.pinpsts&&"string"===typeof(null===he||void 0===he?void 0:he.pinpsts)?JSON.parse(null===he||void 0===he?void 0:he.pinpsts):[];ae=ae||(null===_t||void 0===_t?void 0:_t.includes(null===(b=J.id)||void 0===b?void 0:b.toString));const jt=(0,a.useRef)(null),kt=null===Ee||void 0===Ee?void 0:Ee._id,Tt=kt===ee&&ft||(null===ee||void 0===ee?void 0:ee.id)===(null===J||void 0===J?void 0:J.originUser)&&["cm_sharedby","pst_sharedby","shares_cm","shares_pst"].includes(null===J||void 0===J?void 0:J.action)?ee:Y,It=kt===((null===Tt||void 0===Tt?void 0:Tt.id)||(null===Tt||void 0===Tt?void 0:Tt._id))?null===he||void 0===he?void 0:he.ico:(null===Tt||void 0===Tt?void 0:Tt.ico)||(null===Tt||void 0===Tt?void 0:Tt.avatar),St=ct||J,Pt=kt===((null===Tt||void 0===Tt?void 0:Tt.id)||(null===Tt||void 0===Tt?void 0:Tt._id))?he:Tt,Nt=(0,v.ok)({item:St,scene:X,isSuspended:xt,insideComposer:ce,streamIsLive:et}),Rt=Nt?(0,u.y)(null===St||void 0===St?void 0:St.vid_wid,null===St||void 0===St?void 0:St.vid_hgt):null,Lt=re({scene:X,replayMetaAbove:Ke&&!1===et&&Nt}),Zt=we[J.id];(0,a.useEffect)((()=>{Y||(null===J||void 0===J?void 0:J.uid)!==(null===he||void 0===he?void 0:he._id)||(Y=he,!oe&&te&&(oe=null===te||void 0===te?void 0:te.owner))}),[Y,oe]),(0,a.useEffect)((()=>{me&&(Ue(!1),_e&&_e(J.id,"recover"))}),[me,ae]),(0,a.useEffect)((()=>{Ke&&(Zt?Bt(J.id,Zt.broadcast):"liveNowPage"===H||Ze||(async()=>{let e,t=null;var n,r,o,i,a,s,l,d;J.p_type===A.A.STREAM&&(e=await ge(J.id),t=null===(n=(0,L.SI)(e))||void 0===n||null===(r=n.response)||void 0===r?void 0:r.broadcast);J.p_type===A.A.MAESTRO&&(e=await fe(J.id),t=null===(o=(0,L.SI)(e))||void 0===o||null===(i=o.response)||void 0===i||null===(a=i.data)||void 0===a||null===(s=a.cats)||void 0===s?void 0:s[J.id],null!==(l=t)&&void 0!==l&&l.isLive&&(t.viewsCount=(null===(d=t)||void 0===d?void 0:d.concurrents)||0));if(t){Bt(J.id,t);let e={[J.id]:{broadcast:t}};xe(e)}})())}),[Ze,H,fe,ge,J.id,J.p_type,xe,Zt]),(0,a.useEffect)((()=>{if(Le)return;const e=()=>{var e;(null===(e=document.getElementById("el-".concat(qe)))||void 0===e?void 0:e.offsetTop)+170-window.pageYOffset<0&&(Se(Ce),Pe&&Pe())};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[Le]);const At=()=>{$e&&je(null)},Bt=(e,t)=>
2{tt(null===t||void 0===t?void 0:t.isLive),rt(null===t||void 0===t?void 0:t.duration),it(null===t||void 0===t?void 0:t.viewsCount)},Et=e=>{e.preventDefault(),e.stopPropagation(),At(),Ct({post_id:J.id,p_type:null===J||void 0===J?void 0:J.p_type,ma_sslg:null===J||void 0===J?void 0:J.ma_sslg,ma_cslg:null===J||void 0===J?void 0:J.ma_cslg,ma_vid:null===J||void 0===J?void 0:J.ma_vid}),Ie(ie(ke)[X])},zt=()=>{(()=>{if(!ce&&!xt){if(window.getSelection().toString().length>0)return;if("timeline"!==X||ye||S.A.rememberScrollY("post-timeline"),"search"===X){let e="POST";$e&&(e="VISION"),(0,U.jG)(qe,e,(0,T.eC)(Te))}const e=ze.pathname;$e?(st(!0),je(null)):qe&&yt?e!=="/comment/".concat(qe)&&De("/comment/".concat(qe)):qe&&e!=="/post/".concat(qe)&&De("/post/".concat(qe),{state:(0,F.oU)({post:{...J,embededUser:oe,embededPost:te},user:Pt})})}})(),At()},Ot=["comment-feed","comment-detail","profile"].includes(X),Ht=(null===St||void 0===St?void 0:St.ttl)||(null===St||void 0===St?void 0:St.txt)||"",Mt=(0,a.useMemo)((()=>{var e;const t=null===J||void 0===J||null===(e=J.imgs)||void 0===e?void 0:e[0];return Ke&&t?(0,K.jsx)(z.Z,{onClick:Et,variant:"embedded",size:"large",src:(0,I.Jn)(t,I.AI),isLive:et,viewCount:ot,duration:nt,noBorderRadius:Ot,pageIdentifier:"feedItem",imageDataTestid:Be&&Be+"-media",postId:null===J||void 0===J?void 0:J.id,postType:null===J||void 0===J?void 0:J.p_type,enableAutoPlay:!Ot,ownerId:(null===J||void 0===J?void 0:J.originUser)||(null===J||void 0===J?void 0:J.uid),showAudioDownload:!1===et,hasSummaryBelow:Nt,hasSummaryChapters:(0,v.uE)(St)}):null}),[Et,Ke,et,ot,nt,J,Ot,Be,Nt,St]),Dt=(0,K.jsx)(p.Z,{idx:Ce,insideComposer:ce,embeddedPost:te,embeddedUser:oe,item:St,user:Tt,originalUser:ee,isPinnedPost:ae,hidePostStatLine:le,scene:X,hideTranslator:Ne,itemOnClick:At,preventDefaultScroll:ye,isClickTimelineGTok:at,checkMore:e=>{dt(e)},timelineType:ke,isHover:ut,highlightText:Ae,dataTestid:Be,hasSummaryBelow:Nt});return J&&(Y||$)?Fe||"timeline"===X&&xt?(0,K.jsx)("div",{className:Lt.emptyItem}):(0,K.jsx)(K.Fragment,{children:(0,K.jsxs)("div",{className:Ot?"":Lt.wrapper,children:[_.GK.enable&&(0,K.jsx)(C.O,{targetId:qe,scene:X,type:null===J||void 0===J?void 0:J.type,p_type:null===J||void 0===J?void 0:J.p_type,action:null===J||void 0===J?void 0:J.action,act_type:Qe,impressionType:Ye,timelineType:ke,phrase:Te}),(0,K.jsx)(q.y,{borderRadius:!Ot,scene:X,noBorderBottom:"comment-detail"===X,children:(0,K.jsx)("div",{className:(0,i.Z)(Lt.feedItem,X,"hover-class"),ref:jt,onClickCapture:()=>null===be||void 0===be?void 0:be(Ce),onClick:e=>{var t,n;e.preventDefault(),e.stopPropagation(),null!==(t=e.target)&&void 0!==t&&null!==(n=t.dataset)&&void 0!==n&&n.externallink||zt()},onMouseEnter:()=>ht(!0),onMouseLeave:()=>ht(!1),children:(0,K.jsxs)("div",{className:Lt.feedItemBody,children:[ae&&"profile"===X?(0,K.jsxs)("div",{className:Lt.topLine,children:[(0,K.jsx)(M.r,{className:Lt.topIcon}),(0,K.jsx)(w.Z,{variant:"tag_large_v2",className:Lt.topText,children:Oe("getter_fe.post.text.pinnedPost")})]}):ft&&"reply"!==ve&&"repost"!==X&&1!==Re&&(0,K.jsx)(ne,{user:mt&&!gt?Ee:Y,users:$,item:J,scene:X}),(0,K.jsxs)("div",{className:Lt.feedItemContent,children:[(0,K.jsx)("div",{className:(0,i.Z)(Lt.avatarColumn,"comment-detail"===X&&"comment-line-vl"),children:(0,K.jsx)(c.Z,{insideComposer:ce,userId:null===Tt||void 0===Tt?void 0:Tt.id,userInfoTemp:Tt,itemOnClick:At,children:(0,K.jsx)(d._,{userInfo:Tt,avatarUrl:It,userId:null!==(N=null===Tt||void 0===Tt?void 0:Tt.id)&&void 0!==N?N:null===Tt||void 0===Tt?void 0:Tt._id,username:(0,j.Gf)(Tt),insideComposer:ce,preventDefaultScroll:ye,scene:X,timelineType:ke,className:Lt.avatar,showCreatorContent:"comment"!==X,popularStyle:Me&&(0,V.a)(X)?V.V:void 0,dataTestid:Be&&Be+"-header"})})}),(0,K.jsxs)("div",{className:Lt.feedColumn,children:[(0,K.jsxs)("div",{className:Lt.headerContent,children:[(0,K.jsx)(G.f,{mainUser:Tt,insideComposer:ce,handleItemOnClick:At,sinceTimeFormat:bt,userObj:Pt,scene:X,preventDefaultScroll:ye,sinceTime:wt,hideMore:se,showEdited:null===(O=J.txt_hist)||void 0===O?void 0:O.length,sinceTimeLink:$e?"/gtok/".concat(qe):yt?"/comment/".concat(qe):"/post/".concat(qe),highlightText:Ae,dataTestid:Be}),!se&&(0,K.jsx)("div",{className:Lt.moreDropdown,children:(0,K.jsx)(h.w4,{iconType:"version_2",item:ct||J,postId:qe,user:Tt,originalUser:ee,embededPost:te,embededUser:oe,isShared:mt,scene:X,isPinnedPost:ae,onDelete:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(ae)return Ue(!0),_e&&_e(J.id),void(e||pe(qe));"function"===typeof de?de(qe):(Ue(!0),_e&&_e(J.id))},onEdit:e=>{pt(e)},dataTestid:Be})})]}),!!yt&&(0,K.jsx)("div",{className:Lt.replyContext,children:(0,K.jsx)(W.k,{linkTo:"/user/".concat(null!==Ve&&void 0!==Ve?Ve:(null===J||void 0===J?void 0:J.pui
2d)||(null===ee||void 0===ee?void 0:ee.ousername)||(null===J||void 0===J?void 0:J.originUser)),replyingTo:null!==Ve&&void 0!==Ve?Ve:"comment-detail"===X?J.puid:(null===ee||void 0===ee?void 0:ee.ousername)||(null===ee||void 0===ee?void 0:ee.nickname)||(null===J||void 0===J?void 0:J.originUser)})}),xt?(0,K.jsx)(Q.D,{}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)("div",{className:Lt.replayMediaStack,children:[(0,K.jsx)("div",{className:Lt.replayMetaSlot,children:Dt}),(0,K.jsx)("div",{className:Lt.replayCoverSlot,children:Mt}),(0,K.jsx)("div",{className:Lt.replaySummarySlot,style:null===Rt?void 0:{maxWidth:Rt,marginRight:0,marginLeft:0},children:(0,K.jsx)(m.Z,{postId:null===St||void 0===St?void 0:St.id,postTitle:Ht,enabled:Nt,attachedToVideo:!0})})]}),!le&&(0,K.jsx)(g.s,{item:St,user:Y,users:$,skin:"white",originalUser:ee,embededPost:te,embededUser:oe,isPinnedPost:ae,removePostFromProfile:pe,removeBookmarkedItem:ue,clickEvent:zt,streamIsLive:et,type:X,scene:X,timelineType:ke,RenderComponent:x.K,ActionContainer:P.e,avatarUrl:It,dataTestid:Be})]})]})]})]})},qe)})]})}):(0,K.jsx)("div",{className:Lt.emptyItem})}},20587:(e,t,n)=>{"use strict";n.d(t,{e:()=>s});var r=n(2295),o=n(55921),i=n(75859);const a=(0,r.Z)((e=>{let{spacing:t,breakpoints:n}=e;return{actionContainer:{display:"flex",justifyContent:"space-between",marginTop:t(2.5),[n.down("xs")]:{marginTop:e=>{let{scene:n}=e;return(0,o.a)(n)?t(1.5):t(2.5)}}}}})),s=e=>{let{children:t,scene:n}=e;const r=a({scene:n});return(0,i.jsx)("div",{className:r.actionContainer,children:t})}},83788:(e,t,n)=>{"use strict";n.d(t,{k:()=>d});var r=n(2295),o=n(55195),i=n(81557),a=n(42223),s=n(75859);const l=(0,r.Z)((e=>{let{palette:t,spacing:n}=e;return{feedItemReplay:{color:t.colors_v2.element[20],display:"flex",gap:n(.5)},feedItemTypoText:{color:t.colors_v2.element[20]},feedItemReplyingTo:{color:t.colors_v2.accentLink,"&:hover":{color:t.colors_v2.accentHover,textDecoration:"underline"}}}})),d=e=>{let{linkTo:t,replyingTo:n}=e;const r=l(),{t:d}=(0,o.$)();return(0,s.jsxs)("div",{className:r.feedItemReplay,children:[(0,s.jsxs)(a.Z,{variant:"p3_v2",className:r.feedItemTypoText,children:[d("getter_fe.post.tips.replying_to")," "]}),(0,s.jsx)(i.rU,{onClick:e=>e.stopPropagation(),to:t,children:(0,s.jsx)(a.Z,{variant:"p3_v2",className:r.feedItemReplyingTo,children:"@".concat(n)})})]})}},26723:(e,t,n)=>{"use strict";n.d(t,{D:()=>l});var r=n(2295),o=n(55195),i=n(42223),a=n(75859);const s=(0,r.Z)((e=>{let{palette:t,spacing:n}=e;return{unavailablePost:{backgroundColor:t.colors_v2.base[40],borderRadius:n(1.25),padding:n(1.75),marginTop:n(1.75),border:"1px solid ".concat(t.colors_v2.base[60])},unavailableText:{color:t.colors_v2.element[40]}}})),l=()=>{const e=s(),{t:t}=(0,o.$)();return(0,a.jsx)("div",{className:e.unavailablePost,children:(0,a.jsx)(i.Z,{variant:"p2_v2",className:e.unavailableText,children:t("getter_fe.post.tips.unavailable_comment")})})}},33624:(e,t,n)=>{"use strict";n.d(t,{f:()=>b});var r=n(2295),o=n(55195),i=n(81557),a=n(42223),s=n(68963),l=n(3861),d=n(1012),c=n(4365),p=n(47099),u=n(54487),h=n(62290),m=n(18973),v=n(55921),g=n(75859);const f=(0,r.Z)((e=>{let{palette:t,breakpoints:n,typography:r}=e;return{userAndNickname:{display:"flex",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",alignItems:"center",[n.down("xs")]:{display:e=>{let{scene:t}=e;return(0,v.a)(t)?"contents":"flex"}}},primaryRow:{display:"contents",[n.down("xs")]:{display:e=>{let{scene:t}=e;return(0,v.a)(t)?"flex":"contents"},alignItems:e=>{let{scene:t}=e;return(0,v.a)(t)&&"center"},gridColumn:e=>{let{scene:t}=e;return(0,v.a)(t)&&"1 / -1"},gridRow:e=>{let{scene:t}=e;return(0,v.a)(t)&&1},minWidth:e=>{let{scene:t}=e;return(0,v.a)(t)&&0},maxWidth:e=>{let{scene:t}=e;return(0,v.a)(t)&&"100%"}}},hoverPopup:{width:"auto",maxWidth:"100%",display:"flex",alignItems:"center",flexShrink:1,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},userAtNameShort:{color:t.colors_v2.element[80],flexShrink:99,marginRight:"3px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:"400",[n.down("xs")]:{flexShrink:99,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",Display:"block"}},userAtName:{width:"100%",cursor:"pointer"},userNickname:{marginLeft:2.5}
2,truncate:{width:"auto",overflow:"hidden",whiteSpace:"nowrap",marginRight:5,textOverflow:"ellipsis"},feedItemTypoText:{color:t.colors_v2.element[20]},userDisplayName:{marginRight:2.5,color:t.colors_v2.element[80],whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:r.fontWeightBold,fontSize:15,"& a":{color:t.colors_v2.element[80],fontWeight:r.fontWeightBold},"&:hover a":{textDecoration:"underline"},[n.down("xs")]:{fontSize:e=>{let{scene:t}=e;return(0,v.a)(t)?15:14},fontWeight:e=>{let{scene:t}=e;return(0,v.a)(t)&&600},lineHeight:e=>{let{scene:t}=e;return(0,v.a)(t)&&"19.5px"},letterSpacing:e=>{let{scene:t}=e;return(0,v.a)(t)&&"-0.38px"},"& a":{fontWeight:e=>{let{scene:t}=e;return(0,v.a)(t)?600:r.fontWeightBold}}}},accountRow:{[n.down("xs")]:{gridColumn:e=>{let{scene:t}=e;return(0,v.a)(t)&&1},gridRow:e=>{let{scene:t}=e;return(0,v.a)(t)&&2},minWidth:e=>{let{scene:t}=e;return(0,v.a)(t)&&0},marginLeft:e=>{let{scene:t}=e;return(0,v.a)(t)&&0},marginRight:e=>{let{scene:t}=e;return(0,v.a)(t)&&0}}},accountText:{[n.down("xs")]:{fontSize:e=>{let{scene:t}=e;return(0,v.a)(t)&&15},fontWeight:e=>{let{scene:t}=e;return(0,v.a)(t)&&400},lineHeight:e=>{let{scene:t}=e;return(0,v.a)(t)&&"20px"},letterSpacing:e=>{let{scene:t}=e;return(0,v.a)(t)&&"-0.23px"},marginRight:e=>{let{scene:t}=e;return(0,v.a)(t)&&0}}},userIcons:{[n.down("xs")]:{flexShrink:e=>{let{scene:t}=e;return(0,v.a)(t)&&0},marginInline:e=>{let{scene:t}=e;return(0,v.a)(t)&&1},"& > svg:nth-last-child(2)":{width:e=>{let{scene:t}=e;return(0,v.a)(t)&&16},height:e=>{let{scene:t}=e;return(0,v.a)(t)&&16},marginTop:e=>{let{scene:t}=e;return(0,v.a)(t)&&0}}}},highlightText:{color:t.colors_v2.textBg}}})),x=e=>{var t;let{mainUser:n,insideComposer:r,handleItemOnClick:o,onToggleOpen:i,sinceTimeFormat:v,userObj:x,scene:w,preventDefaultScroll:b,highlightText:y,dataTestid:C}=e;const _=(0,l.Z)(),j=f({scene:w}),k=(0,s.useRef)(null);return(0,s.useEffect)((()=>{y&&(0,m.Z)(k.current,y,j.highlightText)}),[_.type]),(0,g.jsxs)("div",{className:j.userAndNickname,children:[(0,g.jsxs)("div",{className:j.primaryRow,children:[(0,g.jsx)(c.Z,{userId:null===n||void 0===n?void 0:n.id,userInfoTemp:n,leftAligned:!0,insideComposer:r,extraClass:j.hoverPopup,itemOnClick:o,onToggleOpen:i,children:(0,g.jsx)("div",{className:v?j.userAtNameShort:j.userAtName,children:(0,g.jsx)("div",{className:(0,d.Z)(j.userDisplayName,"apple-glass-effect_text-main"),"data-testid":C&&C+"-author",children:(0,g.jsx)(u.a,{userId:null!==(t=null===n||void 0===n?void 0:n.username)&&void 0!==t?t:null===n||void 0===n?void 0:n.id,nickname:(0,h.Gf)(x),scene:w,insideComposer:r,preventDefaultScroll:b,userInfo:n,highlightText:y})})})}),(0,g.jsx)(p.d,{userInfo:n,showFlameLogo:!0,showNfscLogo:!0,className:j.userIcons})]}),(0,g.jsx)("div",{className:(0,d.Z)(j.truncate,v?j.userAtNameShort:j.userAtName,j.userNickname,j.accountRow),children:(0,g.jsx)(a.Z,{variant:"p3_v2",className:(0,d.Z)(j.truncate,j.feedItemTypoText,j.accountText,"apple-glass-effect_text-sub"),children:(0,g.jsxs)("span",{ref:k,children:["@",(0,h.vW)(n)]})})})]})},w=(0,r.Z)((e=>{let{spacing:t,palette:n,breakpoints:r}=e;return{userHeader:{display:"flex",width:e=>{let{hideMore:t}=e;return t?"100%":"calc(100% - 40px)"},alignItems:e=>{let{insideComposer:t}=e;return t?"center":"flex-start"},marginRight:e=>{let{hideMore:n}=e;return n?0:t(1.5)},[r.down("xs")]:{display:e=>{let{scene:t}=e;return(0,v.a)(t)?"grid":"flex"},gridTemplateColumns:e=>{let{scene:t}=e;return(0,v.a)(t)?"auto auto auto minmax(0, 1fr)":void 0},gridTemplateRows:e=>{let{scene:t}=e;return(0,v.a)(t)?"20px 20px":void 0},alignContent:e=>{let{scene:t}=e;return(0,v.a)(t)&&"center"},justifyContent:"flex-start",width:e=>{let{scene:t}=e;return(0,v.a)(t)?"auto":void 0},minWidth:e=>{let{scene:t}=e;return(0,v.a)(t)&&0},flex:e=>{let{scene:t}=e;return(0,v.a)(t)&&1},marginRight:e=>{let{scene:n}=e;return(0,v.a)(n)&&t(1)}}},sinceTime:{display:"flex",flexShrink:0,alignItems:"center",[r.down("xs")]:{gridColumn:e=>{let{scene:t}=e;return(0,v.a)(t)&&2},gridRow:e=>{let{scene:t}=e;return(0,v.a)(t)&&2}}},feedItemTypoText:{color:n.colors_v2.element[20],[r.down("xs")]:{fontSize:e=>{let{scene:t}=e;return(0,v.a)(t)&&15},fontWeight:e=>{let{scene:t}=e;return(0,v.a)(t)&&400},lineHeight:e=>{let{scene:t}=e;return(0,v.a)(t)&&"20px"},letterSpacing:e=>{let{scene:t}=e;return(0,v.a)(t)&&"-0.23px"}}},dot:{color:n.newColors.neutral[500],margin:t(0,.75,0,-.5),[r.down("xs")]:{margin:e=>{let{scene:t}=e;return(0,v.a)(t)&&"0 3px"},fontSize:e=>{let{scene:t}=e;return(0,v.a)(t)&&15},lineHeight:e=>{let{scene:t}=e;return(0,v.a)(t)&&"20px"}}},editedFlag:{display:"flex",flexShrink:0,marginLeft:t(1.25),alignItems:"center",[r.down("xs")]:{gridColumn:e=>{let{scene:t}=e;return(0,v.a)(t)&&3},gridRow:e=>{let{scene:t}=e;return(0,v.a)(t)&&2},marginLeft:e=>{let{scene:t}=e;return(0,v.a)(t)&&0}}}}})),b=e=>{let{mainUser:t,insideComposer:n,handleItemOnClick:r,onToggleOpen:s,sinceTimeFormat:l,userObj:c,scene:p,preventDefaultScroll:u,sinceTimeLink:h,sinceTime:m,hideMore:v,showEdited:f,highlightText:b,dataTestid:y}=e;const C=w({insideComposer:n,hideMore:v,scene:p}),{t:_}=(0,o.$)();return(0,g.jsxs)("div",{className:C.userHeader,children:[(0,g.jsx)(x,{mainUser:t,insideComposer:n,handleItemOnClick:r,onToggleOpen:s,sinceTimeFormat:l,userObj:c,scene:p,preventDefaultScroll:u,highlightText:b,dataTestid:y}),(0,g.jsxs)("div",{className:C.sinceTime,children:[(0,g.jsx)("span",{className:C.dot,children:"\xb7"}),h?(0,g.jsx)(i.rU,{to:h,role:"link",dir:"auto",onClick:e=>{e.preventDefault()},"aria-label":m,children:(0,g.jsx)(a.Z,{variant:"p3_v2",className:(0,d.Z)(C.feedItemTypoText,"apple-glass-effect_text-sub"),"data-testid":y&&y+"-timestamp",children:m})}):(0,g.jsx)(a.Z,{variant:"p3_v2",className:(0,d.Z)(C.feedItemTypoText,"apple-glass-effect_text-sub"),"data-testid":y&&y+"-timestamp",children:m})]}),f?(0,g.jsxs)("div",{className:C.editedFlag,children:[(0,g.jsx)("span",{className:C.dot,children:"\xb7"}),(0,g.jsx)(a.Z,{variant:"p3_v2",className:(0,d.Z)(C.feedItemTypoText,"apple-glass-effect_text-sub"),"data-testid":y&&y+"-timestamp",children:_("getter_fe.post.text.editPostEdited")})]}):null]})}},45040:(e,t,n)=>{"use strict";n.d(t,{y:()=>s});var r=n(2295),o=n(1012),i=n(75859);const a=(0,r.Z)((e=>{let{palette:t,mixins:n,breakpoints:r}=e;return{feedItemWrapper:{width:"100%",backgroundColor:e=>{let{scene:n}=e;return"comment"===n?void 0:t.newColors.backgroundBg[0]},boxShadow:e=>{let{scene:n,noBorderBottom:r,noBorderTop:o}=e;
2return"comment"===n?void 0:"timeline"===n?"none":"post-detail"===n||"comment-feed"===n||"profile"===n?((e,t,n)=>n?"0 -1px 0 0 ".concat(e):t?"0 1px 0 0 ".concat(e):"0 -1px 0 0 ".concat(e,", 0 1px 0 0 ").concat(e))(t.newColors.neutral[100],o,r):r?"0 -1px 0 0 ".concat(t.newColors.neutral[100],", -1px 0 0 0 ").concat(t.newColors.neutral[100],", 1px 0 0 0 ").concat(t.newColors.neutral[100]):o?"0 1px 0 0 ".concat(t.newColors.neutral[100],", -1px 0 0 0 ").concat(t.newColors.neutral[100],", 1px 0 0 0 ").concat(t.newColors.neutral[100]):"0 0 0 1px ".concat(t.newColors.neutral[100])},borderBottom:e=>{let{scene:n,noBorderBottom:r}=e;return"timeline"!==n||r?0:"1px solid ".concat(t.newColors.neutral[100])},"&:hover":{backgroundColor:e=>{let{scene:n}=e;return"comment"===n?void 0:"timeline"===n||"profile"===n||"search"===n||"comment-feed"===n?"light"===t.type?"#f5f6f7":"#2b2b2b":t.newColors.backgroundBg[0]}}},feedItemBorderRadius:{boxShadow:e=>{let{scene:t}=e;return"repost"===t||"comment"===t||"comment-detail"===t||"post-detail"===t||"comment-feed"===t||"profile"===t||"timeline"===t?null:n.boxShadow[0]},borderRadius:e=>{let{scene:t}=e;return"timeline"===t?0:10},border:"none",[r.only("xs")]:{borderRadius:0}}}})),s=e=>{let{children:t,borderRadius:n=!0,scene:r,noBorderBottom:s=!1,noBorderTop:l=!1}=e;const d=a({scene:r,noBorderBottom:s,noBorderTop:l});return(0,i.jsx)("div",{className:(0,o.Z)(d.feedItemWrapper,n&&d.feedItemBorderRadius),children:t})}},55921:(e,t,n)=>{"use strict";n.d(t,{V:()=>r,a:()=>o});const r={width:18,height:18},o=e=>"timeline"===e||"profile"===e||"post-detail"===e},13639:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_e});var r=n(2295),o=n(53390),i=n(1012),a=n(68963),s=n(55195),l=n(62758),d=n(78344),c=n(35561),p=n.n(c),u=n(1003),h=n(87381),m=n(30272),v=n(63586),g=n(48354),f=n(20179),x=n(75859);const w=(e,t)=>(0,x.jsxs)("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,x.jsx)("g",{clipPath:"url(#odx0q4wyxa)",children:(0,x.jsx)("path",{d:"M9.37 8.61h1.623v2.84l-.072.053c-.572.42-1.244.633-1.995.633-.988 0-1.69-.33-2.085-.981-.162-.266-.29-.614-.382-1.038l-.045-.213H7.84v.394l.877-.877-.877-.878v.424H6.317l-.014-.16-.016-.181A15.606 15.606 0 0 1 6.28 7.39l.012-.164.013-.162h1.649v-.939H6.387l.046-.212c.091-.433.234-.795.422-1.076.417-.612 1.164-.924 2.22-.924.488 0 .922.069 1.293.203.327.12.686.306 1.068.554l.935-1.084a5.567 5.567 0 0 0-1.436-.
2671c-.55-.166-1.201-.248-1.935-.248-1.62 0-2.845.44-3.64 1.308-.464.506-.796 1.183-.991 2.012l-.032.135H2.879v-.42L2 6.58l.877.877v-.394H3.6l.176-.001h.436l-.021.195-.018.151c-.01.208-.017.417-.017.623 0 .18.005.365.014.562l.017.176.02.194H2.705v.939h1.623l.032.137c.186.814.504 1.482.948 1.989.758.867 1.876 1.306 3.323 1.306a3.73 3.73 0 0 0 1.293-.227 3.84 3.84 0 0 0 .796-.4l.273-.182v.609H12.846V7.413H9.37V8.61z",fill:"currentColor"})}),(0,x.jsx)("defs",{children:(0,x.jsx)("clipPath",{id:"odx0q4wyxa",children:(0,x.jsx)("path",{fill:"#fff",transform:"translate(2 2.667)",d:"M0 0h10.844v10.667H0z"})})})]}),b=(0,a.forwardRef)(w);var y=n(12727);const C=(0,r.Z)((e=>(0,h.Z)({mainContainer:{margin:"3px 18px 5px"},tipAmountBadge:{display:"inline-flex",maxWidth:"80px",minWidth:"fit-content",padding:"4px 6px 4px 4px",height:"28px",borderRadius:"100px",border:"1px solid ".concat(e.palette.newColors.red[200]),backgroundColor:e.palette.newColors.unique.red100,alignItems:"center"},GCoinIcon:{width:"20px",height:"20px",padding:"2px",borderRadius:"100px",backgroundColor:e.palette.newColors.unique.red600,display:"flex",marginRight:4,"& svg":{"& g path":{fill:e.palette.newColors.neutral[25]}}},tipAmountText:{display:"flex",color:e.palette.newColors.unique.red600,fontSize:"12px",lineHeight:"17px",fontWeight:500,"& span":{marginLeft:4}},tipMessage:{color:e.palette.newColors.neutral[900],fontSize:"15px",lineHeight:"20px"},tipConfirm:{color:e.palette.newColors.neutral[500],fontSize:13,marginLeft:5},tipIcon:{width:16.5,height:16.5,"& path:nth-child(2)":{fill:e.palette.newColors.neutral[500]},"& path":{stroke:e.palette.newColors.neutral[500]}},boxPost:{display:"flex",justifyContent:"center",alignItems:"center",margin:"10px 0px 0px 0px","& img":{height:201}},stickerIconPost:{height:"200px"},stickerIconCmt:{height:"95px"},description:{fontSize:15,marginTop:3}}))),_=e=>{var t,n,r;let{item:l,txt:d}=e;const{t:c}=(0,s.$)(),{tipping_stickers:p,originUser:u,uid:h}=l,[w]=(0,a.useMemo)((()=>p||[]),[p]),_=C();if(!w)return null;const j=(0,g.Is)(null===w||void 0===w||null===(t=w.pr)||void 0===t?void 0:t.micro),k="".concat(m.AX,"/").concat(w.pid,"/").concat(w.id,"/").concat(v.Dj.mainMobile).toLowerCase();return(0,x.jsxs)("div",{className:(0,i.Z)(_.mainContainer,"sticker-tip-main-container"),children:[(0,x.jsxs)(o.Z,{className:_.tipAmountBadge,children:[(0,x.jsx)("div",{className:_.GCoinIcon,children:(0,x.jsx)(b,{})}),(0,x.jsxs)("span",{className:_.tipAmountText,children:[j,(0,x.jsx)("span",{children:g.TN.GTR})]})]}),(0,x.jsx)("div",{className:_.description,children:(0,x.jsx)("span",{className:_.tipMessage,children:(0,x.jsx)(y.Z,{text:d})})}),(0,x.jsx)(o.Z,{className:_.boxPost,children:(0,x.jsx)("img",{src:k,className:_.stickerImage,alt:null===w||void 0===w||null===(n=w.n)||void 0===n?void 0:n.value})}),(0,x.jsxs)(o.Z,{mt:"15px",alignItems:"center",display:"flex",children:[(0,x.jsx)(f.r,{className:_.tipIcon}),(0,x.jsx)("span",{className:_.tipConfirm,children:c("getter_fe.gettrTip.common.messages.stickerMszCmt",{stickerName:null===w||void 0===w||null===(r=w.n)||void 0===r?void 0:r.value,receiver:u,amt:"".concat(j," GTR"),sender:h})})]})]})};var j=n(9310),k=n(2696),T=n(32294),I=n(66697),S=n(33739),P=n(3861),N=n(42346);function R(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={loading:!1});var r=(0,a.useRef)(0),o=function(){var e=(0,a.useRef)(!1),t=(0,a.useCallback)((function(){return e.current}),[]);return(0,a.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]),t}(),i=(0,a.useState)(n),s=i[0],l=i[1],d=(0,a.useCallback)((function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=++r.current;return s.loading||l((function(e){return(0,N.__assign)((0,N.__assign)({},e),{loading:!0})})),e.apply(void 0,t).then((function(e){return o()&&i===r.current&&l({value:e,loading:!1}),e}),(function(e){return o()&&i===r.current&&l({error:e,loading:!1}),e}))}),t);return[s,d]}var L=n(43e3),Z=n(52712),A=n(96581),B=n(61548),E=n(75315),z=n(69187);const O=function(e,t,n){if(!z.jU)return[t,z.ZT,z.ZT];if(!e)throw new Error("useLocalStorage key may not be falsy");var r=n?n.raw?function(e){return e}:n.deserializer:JSON.parse,o=(0,a.useRef)((function(e){try{var o=n?n.raw?String:n.serializer:JSON.stringify,a=localStorage.getItem(e);return null!==a?r(a):(t&&localStorage.setItem(e,o(t)),t)}catch(i){return t}})),i=(0,a.useState)((function(){return o.current(e)})),s=i[0],l=i[1];(0,a.useLayoutEffect)((function(){return l(o.current(e))}),[e]);var d=(0,a.useCallback)((function(t){try{var o="function"===typeof t?t(s):t;if("undefined"===typeof o)return;var a=void 0;a=n?n.raw?"string"===typeof o?o:JSON.stringify(o):n.serializer?n.serializer(o):JSON.stringify(o):JSON.stringify(o),localStorage.setItem(e,a),l(r(a))}catch(i){}}),[e,l]),c=(0,a.useCallback)((function(){try{localStorage.removeItem(e),l(void 0)}catch(i){}}),[e,l]);return[s,d,c]};var H=n(3045),M=n(10419),D=n(98560),F=n(65830),U=n(42223),W=n(80941),Q=n(96798),G=n(5522),q=n(20445),V=n(59824),X=n(64986);const J=[{name:"Afrikaans",code:"af",nativeTxt:"Afrikaans"},{name:"Albanian",code:"sq",nativeTxt:"Shqip"},{name:"Arabic",code:"ar",nativeTxt:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"},{name:"Armenian",code:"hy",nativeTxt:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576"},{name:"Assamese",code:"as",nativeTxt:" \u0985\u09b8\u09ae\u09c0\u09af\u09bc\u09be"},{name:"Bangla",code:"bn",nativeTxt:"\u09ac\u09be\u0982\u09b2\u09be"},{name:"Bosnian (Latin)",code:"bs",nativeTxt:"Bosanski"},{name:"Bulgarian",code:"bg",nativeTxt:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438"},{name:"Catalan",code:"ca",nativeTxt:"Catal\xe0"},{name:"Chinese Simplified",code:"zh-Hans",nativeTxt:"\u7b80\u4f53\u4e2d\u6587",languageCode:"zh_cn"},{name:"Chinese Traditional",code:"zh-Hant",nativeTxt:"\u7e41\u9ad4\u4e2d\u6587",languageCode:"zh_hant_tw"},{name:"Croatian",code:"hr",nativeTxt:"Hrvatski"},{name:"Czech",code:"cs",nativeTxt:"\u010ce\u0161tina"},{name:"Danish",code:"da",nativeTxt:"Dansk"},{name:"Dari",code:"prs",nativeTxt:"\u0641\u0627\u0631\u0633\u06cc \u062f\u0631\u06cc"},{name:"Dutch",code:"nl",nativeTxt:"Nederlands"},{name:"English",code:"en",nativeTxt:"English",languageCode:"en_us"},{name:"Estonian",code:"et",nativeTxt:"Eesti"},{name:"Filipino",code:"fil",nativeTxt:"Tagalog"},{name:"Finnish",code:"fi",nativeTxt:"Suomi"},{name:"French",code:"fr",nativeTxt:"Fran\xe7ais",languageCode:"fr_fr"},{name:"German",code:"de",nativeTxt:"Deutsch",languageCode:"de_de"},{name:"Greek",code:"el",nativeTxt:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"},{name:"Gujarati",code:"gu",nativeTxt:" \u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0"},{name:"Haitian Creole",code:"ht",nativeTxt:"Krey\xf2l ayisyen"},{name:"Hebrew",code:"he",nativeTxt:"\u05e2\u05d1\u05e8\u05d9\u05ea"},{name:"Hindi",code:"hi",nativeTxt:"\u0939\u093f\u0928\u094d\u0926\u0940",languageCode:"hi_in"},{name:"Hungarian",code:"hu",nativeTxt:"Magyar",languageCode:"hu_hu"},{name:"Icelandic",code:"is",nativeTxt:"\xcdslenska"},{name:"Indonesian",code:"id",nativeTxt:"Bahasa Indonesia"},{name:"Irish",code:"ga",nativeTxt:"Gaeilge"},{name:"Italian",code:"it",nativeTxt:"Italiano",languageCode:"it_it"},{name:"Japanese",code:"ja",nativeTxt:"\u65e5\u672c\u8a9e",languageCode:"ja_jp"},{name:"Kannada",code:"kn",nativeTxt:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1"},{name:"Khmer",code:"km",nativeTxt:"\u1781\u17d2\u1798\u17c2\u179a"},{name:"Korean",code:"ko",nativeTxt:"\ud55c\uad6d\uc5b4",languageCode:"ko_kr"},{name:"Kurdish (Central)",code:"ku",nativeTxt:"\u06a9\u0648\u0631\u062f\u06cc"},{name:"Lao",code:"lo",nativeTxt:"\u0e9e\u0eb2\u0eaa\u0eb2\u0ea5\u0eb2\u0ea7"},{name:"Latvian",code:"lv",nativeTxt:"Latvie\u0161u"},{name:"Lithuanian",code:"lt",nativeTxt:"Lietuvi\u0173"},{name:"Malay",code:"ms",nativeTxt:"Bahasa Melayu"},{name:"Malayalam",code:"ml",nativeTxt:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02"},{name:"Maltese",code:"mt",nativeTxt:"Malti"},{name:"Marathi",code:"mr",nativeTxt:"\u092e\u0930\u093e\u0920\u0940"},{name:"Myanmar",code:"my",nativeTxt:"\u1019\u103c\u1014\u103a\u1019\u102c\u1018\u102c\u101e\u102c"},{name:"Norwegian",code:"nb",nativeTxt:"Norsk nynorsk"},{name:"Pashto",code:"ps",nativeTxt:" \u067e\u069a\u062a\u0648"},{name:"Persian",code:"fa",nativeTxt:"\u0641\u0627\u0631\u0633\u06cc"},{name:"Polish",code:"pl",nativeTxt:"Polski"},{name:"Portuguese (Brazil)",code:"pt",nativeTxt:"Portugu\xeas(Brasil)",languageCode:"pt_br"},{name:"Portuguese (Portugal)",code:"pt-pt",nativeTxt:"Portugu\xeas",languageCode:"pt_pt"},{name:"Punjabi",code:"pa",nativeTxt:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40"},{name:"Romanian",code:"ro",nativeTxt:"Rom\xe2n\u0103"},{name:"Russian",code:"ru",nativeTxt:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439"},{name:"Serbian (Cyrillic)",code:"sr-Cyrl",nativeTxt:"\u0421\u0440\u043f\u0441\u043a\u0430 \u045b\u0438\u0440\u0438\u043b\u0438\u0446\u0430"},{name:"Serbian (Latin)",code:"sr-Latn",nativeTxt:"srpski"},{name:"Slovak",code:"sk",nativeTxt:"Sloven\u010dina"},{name:"Slovenian",code:"sl",nativeTxt:"Sloven\u0161\u010dina"},{name:"Spanish",code:"es",nativeTxt:"Espa\xf1ol",languageCode:"es_es"}
2,{name:"Swahili",code:"sw",nativeTxt:"Kiswahili"},{name:"Swedish",code:"sv",nativeTxt:"Svenska"},{name:"Tamil",code:"ta",nativeTxt:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd"},{name:"Telugu",code:"te",nativeTxt:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41"},{name:"Thai",code:"th",nativeTxt:"\u0e44\u0e17\u0e22"},{name:"Turkish",code:"tr",nativeTxt:"T\xfcrk\xe7e"},{name:"Ukrainian",code:"uk",nativeTxt:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430"},{name:"Urdu",code:"ur",nativeTxt:"\u0627\u0631\u062f\u0648"},{name:"Vietnamese",code:"vi",nativeTxt:"Ti\u1ebfng Vi\u1ec7t"},{name:"Welsh",code:"cy",nativeTxt:"Cymraeg"}],Y=()=>{const{i18n:e}=(0,s.$)();return(0,a.useMemo)((()=>{var t;return null===(t=J.find((t=>t.languageCode===e.language)))||void 0===t?void 0:t.code}),[e.language])||"en"},K=(0,r.Z)((e=>({popup:{"& .popup-content":{border:"none !important"},"& .popup-overlay.popup-post-overlay .popup-content":{width:"420px !important",height:"630px !important"},"& .popup-overlay.popup-post-overlay .popup-content .content":{padding:e.spacing(0,1),backgroundColor:e.palette.colors_v2.modalWindowBg},"& .popup-overlay":{background:"".concat(e.palette.colors_v2.bannerOverlay," !important")}},popupContainer:{backgroundColor:e.palette.colors_v2.modalWindowBg},header:{position:"relative",paddingTop:e.spacing(4),[e.breakpoints.down("xs")]:{paddingTop:e.spacing(3)}},title:{textAlign:"center",color:e.palette.colors_v2.element[100]},closeIcon:{width:36,height:36,position:"absolute",inset:e.spacing(1.5,1.5,"auto","auto"),color:e.palette.colors_v2.element[60],"&:hover":{color:e.palette.colors_v2.element[80]}},divider:{margin:"".concat(e.spacing(.5),"px ").concat(e.spacing(3),"px"),background:e.palette.colors_v2.element[80]},switcher:{display:"flex",alignItems:"center",cursor:"pointer"},downArrow:{marginLeft:3.2,width:12,height:12,fill:e.palette.colors_v2.accentLink},targetLangListWrapper:{height:"480px",overflowY:"auto",padding:e.spacing(1,2.25),"&::-webkit-scrollbar":{width:"6px"},"&::-webkit-scrollbar-thumb":{background:e.palette.colors_v2.element[60],borderRadius:100},[e.breakpoints.only("xs")]:{height:"calc(100vh - 119px)",padding:e.spacing(1.5,.75)}},targetLangOption:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:e.spacing(2,1.75,0),fontSize:"15px",color:e.palette.colors_v2.element[80],cursor:"pointer","&:hover":{backgroundColor:e.palette.colors_v2.base[80],borderRadius:8,"& > p":{borderColor:"transparent"}}},targetLangOptionChecked:{backgroundColor:e.palette.colors_v2.base[80],borderRadius:8},searchBoxWrapper:{marginTop:"20px",paddingInline:e.spacing(4),width:"100%",position:"relative",[e.breakpoints.down("xs")]:{paddingInline:e.spacing(2.5),marginTop:e.spacing(1.5)}},searchBox:{position:"relative",display:"flex",alignItems:"center",width:"100%",backgroundColor:e.palette.colors_v2.base[40],color:e.palette.colors_v2.element[80],borderRadius:42,height:42,border:"1px solid transparent","& .search-icon":{paddingLeft:e.spacing(2),paddingRight:e.spacing(1.5),fontSize:0,display:"flex",cursor:"pointer","& svg":{width:16,height:16,color:e.palette.colors_v2.element[60]}},"& input#languageSearchInput":{color:"inherit",width:"calc(100% - 45px)",fontSize:"15px !important",paddingRight:e.spacing(0)+" !important",backgroundColor:"transparent",fontWeight:e.typography.fontWeightRegular,borderRadius:"42px !important",minHeight:42,padding:"0 1px",paddingTop:"0px","&::placeholder":{fontWeight:e.typography.fontWeightRegular,color:e.palette.colors_v2.element[20]}},"& .cancel-icon":{paddingLeft:e.spacing(1.75),paddingRight:e.spacing(1.75),transform:"translateY(4px)",height:"100%",marginLeft:"auto",cursor:"pointer",fontSize:1},"& .closeIcon":{width:e.spacing(3),height:e.spacing(3),cursor:"pointer","& path":{fill:e.palette.colors_v2.element[60]}},"& .closeIconBlock":{paddingRight:e.spacing(.5),paddingTop:e.spacing(.5),"&:hover":{color:e.palette.colors_v2.element[80]}}},subGroup:{padding:e.spacing(0,1.75,1),color:e.palette.colors_v2.element[60]},allLanguages:{paddingTop:e.spacing(3.5)},checkMarkIcon:{width:20,height:20,padding:2,backgroundColor:e.palette.colors_v2.accent,borderRadius:"50%",alignSelf:"baseline","& path":{fill:e.palette.colors_v2.universal.white}},linkButton:{color:e.palette.colors_v2.accentLink,fontSize:"15px",lineHeight:"18px",cursor:"pointer",display:"flex",alignItems:"center",gap:"4px","&:hover":{textDecoration:"underline"}},drawerPaper:{maxHeight:"80%"},nativeText:{borderBottom:"1px solid ".concat(e.palette.colors_v2.base[80]),paddingBottom:e.spacing(2),marginBottom:"-1px",
2width:"100%"},hideBorder:{border:"none"}}))),$=e=>{var t;let{type:n,targetLang:r,onChange:d}=e;const c=K(),{t:p}=(0,s.$)(),u=(0,P.Z)(),h=(0,A.Z)(u.breakpoints.only("xs")),m=(0,l.v9)((e=>{var t,n,r;return null===(t=e.auth)||void 0===t||null===(n=t.session)||void 0===n||null===(r=n.userinfo)||void 0===r?void 0:r._id})),[v,g]=(0,a.useState)(!1),[f,w]=(0,a.useState)(""),[b=[],y]=O(H.gp.LOCAL_STORAGE_POST_TRANSLATION_RECENT_TARGET_LANG_CODE(m)),{getInputProps:C,groupedOptions:_}=(0,B.Z)({id:"languageSearchInput",options:J,getOptionLabel:e=>"".concat((null===e||void 0===e?void 0:e.name)||""," ").concat((null===e||void 0===e?void 0:e.nativeTxt)||""),clearOnBlur:!1,disableCloseOnSelect:!0,blurOnSelect:!1,debug:!0,inputValue:f,disableClearable:!1,onInputChange:(e,t)=>w(t)}),j=Y(),k=(0,E.Z)([j,...b]).map((e=>J.find((t=>t.code===e)))).filter(X.$K),T=k.filter((e=>_.some((t=>e.code===t.code)))),I=e=>{d(e),g(!1),e!==j&&y((0,E.Z)([e,...b]).slice(0,4))};(0,a.useEffect)((()=>{v&&w("")}),[]);const S=(0,x.jsxs)("div",{className:c.header,children:[(0,x.jsx)(U.Z,{variant:"h2_v2",className:(0,i.Z)(c.title,"apple-glass-effect_text-main"),children:p("getter_fe.post.translation.select_language")}),(0,x.jsx)(D.h,{"aria-label":"close",className:c.closeIcon,onClick:()=>g(!1),children:(0,x.jsx)("div",{children:(0,x.jsx)(V.r,{className:"apple-glass-effect_text-sub"})})})]}),N=(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(o.Z,{className:c.searchBoxWrapper,children:(0,x.jsxs)(o.Z,{className:(0,i.Z)(c.searchBox,"apple-glass-effect_input-wrapper"),children:[(0,x.jsx)("div",{className:"search-icon",children:(0,x.jsx)(G.r,{})}),(0,x.jsx)("input",{placeholder:p("getter_fe.post.translation.search_language"),...C()}),f&&(0,x.jsx)("div",{className:"cancel-icon",onClick:()=>w(""),children:(0,x.jsx)("div",{className:"closeIconBlock",children:(0,x.jsx)(q.r,{className:"closeIcon"})})})]})}),(0,x.jsxs)(o.Z,{className:c.targetLangListWrapper,children:[(0,x.jsx)(U.Z,{variant:"h4_v2",className:(0,i.Z)(c.subGroup,"apple-glass-effect_text-sub"),children:p("getter_fe.post.translation.recent_language")}),(f?T:k).map((e=>(0,x.jsxs)(o.Z,{className:(0,i.Z)(c.targetLangOption,r===e.code?(0,i.Z)(c.targetLangOptionChecked,"apple-glass-effect_hover-block-checked"):"","apple-glass-effect_hover-block"),onClick:()=>I(e.code),children:[(0,x.jsx)(U.Z,{variant:"h5_v2",className:(0,i.Z)(c.nativeText,"apple-glass-effect_text-main",r===e.code&&c.hideBorder),children:e.nativeTxt}),r===e.code&&(0,x.jsx)(W.r,{className:c.checkMarkIcon})]},e.code))),(0,x.jsx)(U.Z,{variant:"h4_v2",className:(0,i.Z)(c.subGroup,c.allLanguages,"apple-glass-effect_text-sub"),children:p("getter_fe.post.translation.all_languages")}),(f?_:J).map((e=>(0,x.jsxs)(o.Z,{className:(0,i.Z)(c.targetLangOption,r===e.code?(0,i.Z)(c.targetLangOptionChecked,"apple-glass-effect_hover-block-checked"):"","apple-glass-effect_hover-block"),onClick:()=>I(e.code),children:[(0,x.jsx)(U.Z,{variant:"h5_v2",className:(0,i.Z)(c.nativeText,"apple-glass-effect_text-main",r===e.code&&c.hideBorder),children:e.nativeTxt}),r===e.code&&(0,x.jsx)(W.r,{className:c.checkMarkIcon})]},e.code)))]})]});return(0,x.jsxs)("div",{children:[(0,x.jsxs)(o.Z,{onClick:()=>g(!0),display:"flex",alignItems:"center",className:c.switcher,children:[(0,x.jsx)(U.Z,{variant:"p2_v2",className:c.linkButton,component:"span",children:null===(t=J.find((e=>e.code===r)))||void 0===t?void 0:t.nativeTxt}),(0,x.jsx)(Q.r,{className:c.downArrow,fill:u.palette.colors_v2.accentLink})]}),h?(0,x.jsx)(F.u,{open:v,onClose:()=>g(!1),onOpen:()=>g(!0),classes:{paper:c.drawerPaper},hideHeader:!0,hideCancelButton:!0,children:(0,x.jsxs)(x.Fragment,{children:[S,N]})}):(0,x.jsx)("div",{className:c.popup,children:(0,x.jsx)(M._,{lockScroll:!0,open:v,customHeader:S,contentStyle:{minWidth:"420px"},className:"apple-glass-effect_base",customDialogStyle:c.popupContainer,showCloseIcon:!0,closeOnDocumentClick:!0,onClose:()=>g(!1),onCancel:()=>g(!1),scene:n,classes:{root:c.popup},children:N})})]})};var ee=n(96320);const te=(e,t)=>(0,x.jsx)("svg",{width:16,height:14,viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,x.jsx)("path",{d:"M15.1687 12.5628L11.6687 5.56281C11.6063 5.43834 11.5106 5.33366 11.3922 5.26051C11.2737 5.18736 11.1373 5.14861 10.998 5.14861C10.8588 5.
214861 10.7224 5.18736 10.6039 5.26051C10.4855 5.33366 10.3898 5.43834 10.3274 5.56281L9.04492 8.12531C8.1809 8.04978 7.34894 7.76187 6.62305 7.28719C7.50514 6.26137 8.05693 4.9931 8.20617 3.64844H9.49805C9.69696 3.64844 9.88772 3.56942 10.0284 3.42877C10.169 3.28812 10.248 3.09735 10.248 2.89844C10.248 2.69953 10.169 2.50876 10.0284 2.36811C9.88772 2.22746 9.69696 2.14844 9.49805 2.14844H6.24805V1.39844C6.24805 1.19953 6.16903 1.00876 6.02838 0.868107C5.88772 0.727455 5.69696 0.648438 5.49805 0.648438C5.29913 0.648438 5.10837 0.727455 4.96772 0.868107C4.82706 1.00876 4.74805 1.19953 4.74805 1.39844V2.14844H1.49805C1.29913 2.14844 1.10837 2.22746 0.967717 2.36811C0.827065 2.50876 0.748047 2.69953 0.748047 2.89844C0.748047 3.09735 0.827065 3.28812 0.967717 3.42877C1.10837 3.56942 1.29913 3.64844 1.49805 3.64844H6.69367C6.55299 4.62591 6.13846 5.54358 5.49805 6.29531C5.18553 5.9296 4.92475 5.52267 4.72305 5.08594C4.68354 4.99408 4.62607 4.91106 4.554 4.84174C4.48194 4.77243 4.39675 4.71822 4.30343 4.68231C4.21011 4.6464 4.11056 4.62951 4.01062 4.63264C3.91068 4.63576 3.81237 4.65884 3.72148 4.70052C3.63059 4.74219 3.54895 4.80162 3.48137 4.8753C3.41378 4.94899 3.36161 5.03544 3.32792 5.12959C3.29423 5.22373 3.27971 5.32366 3.28521 5.42349C3.2907 5.52333 3.3161 5.62106 3.35992 5.71094C3.62228 6.28152 3.96331 6.81251 4.37305 7.28844C3.51952 7.85026 2.51989 8.14928 1.49805 8.14844C1.29913 8.14844 1.10837 8.22746 0.967717 8.36811C0.827065 8.50876 0.748047 8.69952 0.748047 8.89844C0.748047 9.09735 0.827065 9.28811 0.967717 9.42877C1.10837 9.56942 1.29913 9.64844 1.49805 9.64844C2.93807 9.64961 4.34035 9.18795 5.49805 8.33156C6.33761 8.94941 7.30842 9.3652 8.33492 9.54656L6.8268 12.5628C6.77992 12.6512 6.75119 12.748 6.7423 12.8476C6.7334 12.9472 6.74452 13.0476 6.775 13.1429C6.80548 13.2381 6.85471 13.3263 6.91978 13.4023C6.98485 13.4782 7.06446 13.5404 7.15392 13.5851C7.24337 13.6299 7.34087 13.6562 7.44068 13.6627C7.54048 13.6692 7.64057 13.6557 7.73507 13.6229C7.82956 13.5901 7.91655 13.5388 7.9909 13.4719C8.06526 13.405 8.12549 13.3239 8.16805 13.2334L8.96117 11.6484H13.0343L13.8268 13.2334C13.8708 13.3215 13.9318 13.4001 14.0062 13.4647C14.0806 13.5292 14.167 13.5785 14.2604 13.6097C14.3539 13.6408 14.4525 13.6533 14.5508 13.6463C14.649 13.6393 14.7449 13.6131 14.833 13.5691C14.9212 13.525 14.9997 13.4641 15.0643 13.3897C15.1288 13.3153 15.1781 13.2289 15.2093 13.1354C15.2404 13.042 15.2529 12.9433 15.2459 12.8451C15.239 12.7468 15.2127 12.6509 15.1687 12.5628ZM9.71117 10.1484L10.998 7.57531L12.2843 10.1484H9.71117Z",fill:"currentColor"})}),ne=(0,a.forwardRef)(te);var re=n(43003),oe=n(70602);const ie=(0,r.Z)((e=>{let{palette:t,spacing:n}=e;return{root:{margin:e=>{let{columnFeedContent:t}=e;return n(2,t?2.25:0)},"& .text-content":{lineHeight:1.31,fontSize:"16px",wordBreak:"break-word"}},box:{display:"flex",justifyContent:"space-between",alignItems:"center"},linkButton:{gap:n(.5)},translate:{color:t.colors_v2.accentLink,"&:hover":{color:t.colors_v2.accentHover,textDecoration:"underline"}},autoGeneratedText:{color:t.colors_v2.element[20],marginTop:10},translationBox:{position:"relative",paddingLeft:12,marginTop:12,"&:before":{content:"''",position:"absolute",width:3,height:"100%",backgroundColor:t.colors_v2.base[60],borderRadius:6,top:0,left:0}}}}),{name:"PostTranslator"}),ae=e=>{let{txt:t,type:n,previewUrl:r,skipLink:d,txtLang:c,postId:p,timelineType:u,columnFeedContent:h}=e;const{t:m}=(0,s.$)(),v=ie({columnFeedContent:h}),g=(0,P.Z)(),[f,w]=(0,a.useState)(!1),[b,C]=(0,a.useState)({}),[_,j]=(()=>{const e=Y(),t=(0,l.v9)((e=>{var t,n,r;return null===(t=e.auth)||void 0===t||null===(n=t.session)||void 0===n||null===(r=n.userinfo)||void 0===r?void 0:r._id})),[n,r,o]=O(H.ZP.LOCAL_STORAGE_POST_TRANSLATION_TARGET_LANG_CODE(t));return(0,a.useEffect)((()=>{e===n&&o()}),[e,n,o]),[n||e,r,o]})(),k=Y(),T=["post-detail","comment-detail"].includes(n),I=T?_:k,S=T||I!==c,[{loading:N,value:A},B]=R((async()=>{const e=async e=>{var t,n;return null===(t=fetch(e))||void 0===t||null===(n=t.then((e=>null===e||void 0===e?void 0:e.json())))||void 0===n?void 0:n.then((e=>e.txt))};try{var n,r;return null!==b&&void 0!==b&&b[I]?e(null===b||void 0===b||null===(r=b[I])||void 0===r?void 0:r.translatedPath):I===c?t:null===(n=Z.Q.translatePost(p,I))||void 0===n?void 0:n.then((t=>{var n,r,o;const i=null===t||void 0===t||null===(n=t.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.translates;if(!i)throw new Error("[post-translate] none translations exists");C(i);const a=null===i||void 0===i||null===(o=i[I])||void 0===o?void 0:o.translatedPath;if(a)return e(a)}))}catch(o){throw C(null),new Error(o)}}),[p,c,t,b,C,I]);(0,a.useEffect)((()=>{f&&B()}),[f,B,I]);return S?(0,x.jsxs)(o.Z,{className:(0,i.Z)(v.root,"postTranslatorWrapper"),children:[(0,x.jsxs)(o.Z,{className:v.box,children:[(0,x.jsxs)(ee.z,{className:v.linkButton,onClick:e=>{if(e.stopPropagation(),!f){const e=Object.keys(re.E).includes(n)?"timeline"===n?"forYou"===u?re.E[n][1][1]:re.E[n][1][0]:re.E[n][1]:null!==n&&void 0!==n?n:"NONE";(0,oe.MY)(p,re.E[n][0],e,c,I)}w((e=>!e))},children:[(0,x.jsx)(ne,{className:v.translate}),(0,x.jsx)(U.Z,{variant:"tag_large_v2",className:v.translate,children:m(f?"getter_fe.post.translation.hide_translation":"getter_fe.post.translation.translate_post")})]}),T&&(0,x.jsx)($,{type:n,targetLang:I,onChange:e=>{j(e),(0,oe.MY)(p,re.E[n][0],re.E[n][1],c,e)}})]}),f&&(0,x.jsxs)("div",{className:v.translationBox,children:[N?(0,x.jsx)(L.P,{isEmbedded:!0,color:g.palette.text.grey}):(0,x.jsx)(x.Fragment,{children:A&&(0,x.jsx)(y.Z,{text:A,previewUrl:r,skipLink:d,type:n})}),(0,x.jsx)(U.Z,{variant:"tag_medium_v2",className:v.autoGeneratedText,children:m("getter_fe.post.translation.autoGeneratedText")})]})]}):null};var se=n(9756),le=n(87031),de=n(90848),ce=n(37055),pe=n(98927),ue=n(69212),he=n(24463),me=n(98507),ve=n(12151),ge=n(63164),fe=n(89116),xe=n(15819),we=n(55921);const be=(0,r.Z)((e=>({feedItemContent:{cursor:"pointer",marginTop:3,[e.breakpoints.down("xs")]:{marginTop:t=>{let{scene:n}=t;return(0,we.a)(n)?e.spacing(1):3},"& .preview-content, & .smallPreview":{marginTop:t=>{let{scene:n}=t;return(0,we.a)(n)?e.spacing(1):void 0}}}},pageMainItem:{cursor:"default"},embeddedText:{padding:e.spacing(0,1.5,1.875),"& .text-content":{display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis",wordWrap:"break-word","-webkit-line-clamp":"4 !important","-webkit-box-orient":"vertical"}},repostComposerContentBody:{display:"grid",gridTemplateColumns:"".concat(88,"px 1fr"),marginTop:e.spacing(1.125)},text:{color:e.palette.colors_v2.element[80],fontSize:16,fontWeight:"normal",lineHeight:"24px",wordBreak:"break-word",margin:t=>{let{columnFeedContent:n}=t;return n?e.spacing(0,2.25):0},"& .text-content>span":{display:"inline"},[e.breakpoints.down("xs")]:{fontSize:e=>{let{scene:t}=e;return(0,we.a)(t)?15:16},lineHeight:e=>{let{scene:t}=e;return(0,we.a)(t)?"20px":"24px"},letterSpacing:e=>{let{scene:t}=e;return(0,we.a)(t)?"-0.23px":void 0},"& .text-content":{lineHeight:e=>{let{scene:t}=e;return(0,we.a)(t)?"20px":void 0}}}},postText:{color:e.palette.colors_v2.element[80],fontSize:16,lineHeight:"24px",wordBreak:"break-word",fontWeight:"normal",padding:e=>{let{columnFeedContent:t}=e;return t?"7px 18px 0 18px":"7px 0 0 0"},cursor:"auto","& .text-content>span":{display:"inline"},[e.breakpoints.down("xs")]:{fontSize:e=>{let{scene:t}=e;return(0,we.a)(t)?15:16},lineHeight:e=>{let{scene:t}=e;return(0,we.a)(t)?"20px":"24px"},letterSpacing:e=>{let{scene:t}=e;return(0,we.a)(t)?"-0.23px":void 0},padding:e=>{let{scene:t,columnFeedContent:n}=e;return(0,we.a)(t)?0:n?"7px 18px 0 18px":"7px 0 0 0"},"& .text-content":{lineHeight:e=>{let{scene:t}=e;return(0,we.a)(t)?"20px":void 0}}}},unavailablePost:{backgroundColor:e.palette.colors_v2.base[40],borderRadius:10,padding:e.spacing(1.75),border:"1px solid ".concat(e.palette.colors_v2.base[60]),marginTop:e.spacing(2),display:"flex",alignItems:"center",justifyContent:"space-between"},blockedPostText:{color:e.palette.colors_v2.element[40]},learnMore:{height:26,lineHeight:"26px",fontSize:12,fontWeight:500,padding:"0 10px",marginLeft:8,borderRadius:32,backgroundColor:e.palette.newColors.neutral[200],color:e.palette.newColors.neutral[900],textAlign:"center",flexShrink:0,cursor:"pointer"},pollRepostWrapper:{padding:e.spacing(1.5,0)},pollToggleBtn:{color:e.palette.colors_v2.accentLink,gap:e.spacing(1),"&:hover":{textDecoration:"underline"}}})),{name:"FeedItemContent"}),ye={post:"post",cmt:"comment"},Ce=(e,t)=>e==="/"+ye[t.type]+"/"+t.id,_e=e=>{var t,n,r,c,h,m,v,g,f,w;let{className:b,embeddedPost:y,embeddedUser:C,item:P,hidePostStatLine:N,scene:R,user:L,insideComposer:Z,toggleHover:A,hideTranslator:B,itemOnClick:E,preventDefaultScroll:z,idx:O,isClickTimelineGTok:H,hidePreview:M,checkMore:D,timelineType:F,isHover:W,columnFeedContent:Q,pollLink:G=!1,preventPollExpand:q=!1,showOnlyPreview:V,highlightText:X,dataTestid:J,isPinnedPost:Y,hasSummaryBelow:K=!1,useGlassPanel:$=!1}=e;const{imgs:te,ovid:ne,txt:re,txt_lang:oe,id:ie,vid:we,pvid:ye,vid_hgt:_e,vid_wid:je,p_type:ke,main:Te,stickers:Ie,rich_txt:Se,...Pe}=null!==P&&void 0!==P?P:{},Ne=(0,fe.e)(Se),Re=Se?Ne:re,{t:Le}
2=(0,s.$)(),Ze="comment"===R,Ae=(0,le.ee)(ke),Be=be({scene:R,columnFeedContent:Q}),{pathname:Ee}=(0,d.TH)(),[ze,Oe]=(0,a.useState)(""),[He,Me]=(0,a.useState)(!1),[De,Fe]=(0,a.useState)(!1),Ue=(0,l.v9)((e=>{var t,n;return null===(t=e.auth)||void 0===t||null===(n=t.session)||void 0===n?void 0:n.authenticated})),We=(0,l.v9)((e=>{var t;return null===(t=e.status)||void 0===t?void 0:t.blocked})),Qe=(0,l.v9)((e=>{var t,n;return null===(t=e.auth)||void 0===t||null===(n=t.session)||void 0===n?void 0:n.userinfo})),Ge=null===Qe||void 0===Qe?void 0:Qe._id,qe=[te,ne,we,ye,Ie&&Ie.length>0].some((e=>![void 0,""].includes(e)));(0,a.useEffect)((()=>{if(Ze&&qe)if(te&&te.length){const e=(Re?"\n":"")+(0,he.EA)({url:te[0]});Oe(e)}else if(ne||we){const e=(Re?"\n":"")+(0,he.EA)({url:ne||we});Oe(e)}}),[Ze,qe]);const Ve=(e=>{const t=[];if(p().withinString(e,(e=>t.push(e))),t.length>0){const[e]=t;if((0,de.dw)(e))return e}return null})(Re);let Xe=null;Pe.prevsrc?(Xe={imageUrl:Pe.previmg,url:Pe.prevsrc,title:Pe.ttl,description:Pe.dsc},Xe=Xe?(0,ue.k6)(Xe):null):Ve&&(Xe={url:Ve});const Je=Boolean((0,u.U)({previewMetaData:Xe,hasImageOrVideo:qe,scene:R})),Ye=!(null===(t=null!==(n=P.id)&&void 0!==n?n:P._id)||void 0===t||!t.startsWith("c")),Ke="repost"===R,$e="edit-post"===R,et=!!C&&!(null===P||void 0===P||!P.embedUser)&&!y||!C&&!(null!==P&&void 0!==P&&P.embedUser)&&!!y||"d"===(null===y||void 0===y?void 0:y.vis),tt="poll_pst"===P.p_type,nt=(0,a.useMemo)((()=>{var e,t,n,r;let o=Re;const i=null===Re||void 0===Re?void 0:Re.match(ce.bD);return null===i||void 0===i||i.forEach((e=>{var t;o=null===(t=o)||void 0===t?void 0:t.replace(e,"")})),o=null===(e=o)||void 0===e||null===(t=e.replace(se.UE,""))||void 0===t||null===(n=t.replace(se.fv,""))||void 0===n?void 0:n.replace(ce.pd,""),o=null===(r=o)||void 0===r?void 0:r.trim(),o}),[Re]),rt=Ue&&!B&&Boolean(nt)&&(["post-detail","comment-detail"].includes(R)||["timeline","profile"].includes(R)&&(0,me.xx)(L)),ot=Ye&&Object.keys(P).includes("tipping_stickers");return(0,x.jsx)(o.Z,{mt:.5,className:(0,i.Z)(Be.feedItemContent,Ce(Ee,P)&&Be.pageMainItem,b,"feedItemContent"),children:Ke?(0,x.jsxs)(x.Fragment,{children:[qe?(0,x.jsxs)("div",{className:Be.repostComposerContentBody,children:[(0,x.jsx)(k.t,{imgs:te,mediaHeight:_e,mediaWidth:je,item:P,hidePostStatLine:N,isEmbedded:!0,hasParentMedia:!0,insideComposer:Z,user:L,idx:O,dataTestid:J}),(0,x.jsx)(I.R,{mediaHeight:_e,mediaWidth:je,ovid:ne,vid:we,pvid:ye,isEmbedded:!0,hasParentMedia:!0,videoPreviewImage:Te,item:P,idx:O,isClickTimelineGTok:H,itemOnClick:E,showOnlyPreview:V,user:L,dataTestid:J,hasSummaryBelow:K}),(0,x.jsx)(T.o,{className:(0,i.Z)(Be.text,qe?Be.embeddedText:"",Be.learnMore,"feeditem_text_content"),previewUrl:null===(r=Xe)||void 0===r?void 0:r.url,txt:Re,user:L,item:P,hasMedia:qe,canShowPreview:Je,highlightText:X,dataTestid:J})]}):(0,x.jsx)(T.o,{className:(0,i.Z)(Be.text,qe?Be.embeddedText:"","feeditem_text_content"),previewUrl:null===(c=Xe)||void 0===c?void 0:c.url,txt:Re,user:L,item:P,canShowPreview:Je,highlightText:X,dataTestid:J}),ce.ZP.sanitizeHiddenLink(null===(h=Xe)||void 0===h?void 0:h.url)&&!M&&(0,x.jsx)(u.T,{previewMetaData:Xe,hasImageOrVideo:qe,scene:"repost",columnFeedContent:Q})]}):(0,x.jsxs)(x.Fragment,{children:[!$e&&(0,x.jsx)(x.Fragment,{children:ot?(0,x.jsx)(_,{txt:Ze?(Re||"")+ze:Re,type:R,user:L,item:P,scene:R}):(0,x.jsx)(T.o,{className:(0,i.Z)("".concat("post-detail"===R||"comment-detail"===R&&!B?Be.postText:Be.text),"feeditem_text_content"),previewUrl:!(0,pe.hU)(null===(m=Xe)||void 0===m?void 0:m.url)&&(null===(v=Xe)||void 0===v?void 0:v.url),txt:Ze?(Re||"")+ze:Re,type:R,user:L,item:P,hasMedia:qe,canShowPreview:Je,scene:R,checkMore:D,highlightText:X,dataTestid:J,isPinnedPost:Y})}),rt&&(0,x.jsx)(ae,{previewUrl:null===(g=Xe)||void 0===g?void 0:g.url,txt:(0,ge.rE)(Re,"text"),type:R,txtLang:oe,postId:ie,timelineType:F,columnFeedContent:Q}),!Ze&&!Ae&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(k.t,{insideComposer:Z,imgs:te,stickers:Ie,mediaHeight:_e,mediaWidth:je,item:P,hidePostStatLine:N,user:L,scene:R,idx:O,dataTestid:J}),(0,x.jsx)(I.R,{mediaHeight:_e,mediaWidth:je,ovid:ne,vid:we,pvid:ye,scene:R,videoPreviewImage:Te,item:P,idx:O,isClickTimelineGTok:H,itemOnClick:E,showOnlyPreview:V,user:L,dataTestid:J,hasSummaryBelow:K}),ce.ZP.sanitizeHiddenLink(null===(f=Xe)||void 0===f?void 0:f.url)&&!(0,pe.hU)(null===(w=Xe)||void 0===w?void 0:w.url)&&!M&&(0,x.jsx)(u.T,{previewMetaData:Xe,hasImageOrVideo:qe,scene:R,columnFeedContent:Q})]}),!Ye&&!Ae&&(!He&&We[null===C||void 0===C?void 0:C.id]?(0,x.jsxs)("div",{className:(0,i.Z)(Be.unavailablePost,"unavailable-Post"),children:[(0,x.jsx)(U.Z,{variant:"p2_v2",className:Be.blockedPostText,children:Le("getter_fe.post.tips.blocked_user_post")}),(0,x.jsx)(ee.z,{onClick:e=>{e.stopPropagation(),Me(!0)},children:(0,x.jsx)(U.Z,{variant:"button_medium_v2",className:Be.blockedPostText,children:Le("getter_fe.post.tips.show_blocked_user_post")})})]}):et?(0,x.jsx)("div",{className:(0,i.Z)(Be.unavailablePost,"unavailable-Post"),children:(0,x.jsx)(U.Z,{variant:"p2_v2",className:Be.blockedPostText,children:Le("getter_fe.post.tips.unavailable_post")})}):(y||(null===C||void 0===C?void 0:C._id)&&(null===C||void 0===C?void 0:C.id))&&
2(0,x.jsx)(j.s,{embeddedPost:y,embeddedUser:C,item:P,loggedinUserId:Ge,hidePostStatLine:N,hasParentMedia:qe||Je,toggleHover:A,scene:R,originalUser:L,itemOnClick:E,preventDefaultScroll:z,idx:O,hidePreview:M,timelineType:F,isHover:W,columnFeedContent:Q,highlightText:X,useGlassPanel:$})),tt&&null!==P&&void 0!==P&&P.poll?G?(0,x.jsxs)("div",{className:Be.pollRepostWrapper,children:[(0,x.jsxs)(ee.z,{className:Be.pollToggleBtn,onClick:e=>{q||(e.stopPropagation(),Fe(!De))},children:[(0,x.jsx)(ve.r,{}),(0,x.jsx)(U.Z,{variant:"tag_large_v2",children:Le(De?"getter_fe.pollPost.hidePoll":"getter_fe.pollPost.showPoll")})]}),De&&(0,x.jsx)(S.c,{item:P,user:L,columnFeedContent:Q})]}):(0,x.jsx)(S.c,{item:P,user:L,columnFeedContent:Q}):null,"timeline"===(null===P||void 0===P?void 0:P.promoteType)&&(0,x.jsx)(xe.r,{})]})})}},9310:(e,t,n)=>{"use strict";n.d(t,{s:()=>q});var r=n(68963),o=n(62758),i=n(55195),a=n(98921),s=n(78344),l=n(81557),d=n(2295),c=n(3861),p=n(53390),u=n(1012),h=n(35561),m=n.n(h),v=n(23169),g=n(37055),f=n(23254),x=n(62290),w=n(89116),b=n(87031),y=n(90848),C=n(73650),_=n(24463),j=n(71710),k=n(27876),T=n(30497),I=n(43003),S=n(96320),P=n(42223),N=n(34990),R=n(4365),L=n(29767),Z=n(1003),A=n(47099),B=n(64598),E=n(53426),z=n(2696),O=n(32294),H=n(66697),M=n(15819),D=n(33739),F=n(31203),U=n(12151),W=n(18973),Q=n(75859);const G=(0,d.Z)((e=>({avatar:{width:e.spacing(4),height:e.spacing(4),[e.breakpoints.down("xs")]:{width:e.spacing(3),height:e.spacing(3)}},avgClasses:{width:e.spacing(2),height:e.spacing(2),[e.breakpoints.down("xs")]:{width:e.spacing(1.5),height:e.spacing(1.5)}},embeddedText:{color:e.palette.colors_v2.element[80],"& .text-content":{color:"".concat(e.palette.colors_v2.element[80]," !important"),display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis",wordWrap:"break-word","-webkit-line-clamp":"4 !important","-webkit-box-orient":"vertical",lineHeight:"20px !important",maxHeight:e.spacing(10)}},embeddedContainer:{flex:1,width:e=>{let{scene:t}=e;return"repost"===t?"calc(100% - 18px)":"calc(100% - 60px)"}},embeddedWrapper:{display:"flex",padding:e.spacing(1.5,1.75),alignItems:"flex-start",gap:e.spacing(1.5)},embeddedContent:{border:"0.5px solid ".concat(e.palette.newColors.neutral[100]),backgroundColor:e.palette.newColors.backgroundBg[0],borderRadius:12,overflow:"hidden",margin:e=>{let{columnFeedContent:t,noMargin:n}=e;return n?0:t?"12px 18px 8px":"12px 0px 8px 0px"},cursor:"pointer","&:hover":{backgroundColor:e.palette.newColors.backgroundBg[3]},"& video, .media-content, .without-radius > div:not(.played-seconds)":{borderRadius:"0px 0px 13px 13px"},"& .preview-content":{margin:"12px 0"}},embeddedContentBody:{display:"grid",padding:0,gridTemplateColumns:"none",gap:16,"& .streamImage":{borderRadius:0},"&.with-parent-media":{padding:e.spacing(0,0,1.875),"&.vision-media":{paddingBottom:12,gridTemplateColumns:"".concat(88,"px 1fr"),alignItems:"start",gap:12},"& .embeddedStream":{"& .text-content":{"-webkit-line-clamp":"2 !important"}},"& .streamImage":{borderRadius:14},"& .embeddedTextPadding":{paddingTop:4,paddingBottom:0},"& .media-content":{height:"100% !important"},"& .imageContainer":{width:"88px !important",height:"88px !important",borderRadius:14,"& .sticker_wrapper":{padding:0},"& .singleImage":{width:"88px !important",minWidth:"88px !important",minHeight:"88px !important"}},"& .sticker_name":{display:"none"},"& .sticker_img":{width:"100%"},"& .img_item":{height:43}},"& .imageContainer .sticker_wrapper":{margin:e.spacing(1.25,0,0)}},embeddedContentHeader:{display:"flex",alignItems:"center",marginBottom:e.spacing(1)},isEmbeded:{"& > div:nth-child(1)":{minWidth:26,marginRight:e.spacing(.5)}},embeddedUserName:{width:"auto",overflow:"hidden",whiteSpace:"nowrap",margin:e.spacing(0,.5),textOverflow:"ellipsis",color:e.palette.colors_v2.element[20],minWidth:"75px"},userAndNickNameContainer:{display:"flex",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",marginBottom:2,alignItems:"center"},hoverPopup:{width:"auto",maxWidth:"100%",display:"flex",alignItems:"center",flexShrink:1,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},verificationContainer:{position:"relative"},name:{color:e.palette.colors_v2.element[80],marginRight:e.spacing(.5),...e.mixins.ellipsis},repostComposerContentBody:{display:"grid",gridTemplateColumns:"".concat(88,"px 1fr"),marginTop:e.spacing(1.125)},topAlign:{objectPosition:"top"},text:{fontSize:15,fontWeight:"normal",lineHeight:"130%",wordBreak:"break-word","& .text-content>span":{display:"inline"}},postText:{fontSize:24,lineHeight:"130%",wordBreak:"break-word",fontWeight:"normal",paddingTop:7,cursor:"auto","& .text-content>span":{display:"inline"}},time:{marginBottom:2,whiteSpace:"nowrap",flex:1,textAlign:"right"},visionIconWrapper:{position:"absolute",zIndex:1,"& svg path":{fill:e.palette.common.white}},pollRepostWrapper:{padding:e.spacing(1.5,0)},pollToggleBtn:{color:e.palette.colors_v2.accentLink,gap:e.spacing(1),"&:hover":{textDecoration:"underline"}},sinceTimeTypo:{color:e.palette.colors_v2.element[20]},highlightText:{color:e.palette.colors_v2.textBg}})),{name:"FeedItemEmbeddedContent"}),q=e=>{var t,n,d,h,q,V,X,J,Y,K;
2let{embeddedPost:$,embeddedUser:ee,hasParentMedia:te,scene:ne,insideComposer:re,originalUser:oe,itemOnClick:ie,preventDefaultScroll:ae,idx:se,skipLink:le,hidePreview:de,timelineType:ce,isHover:pe,columnFeedContent:ue,avatarClass:he,noMargin:me=!1,isShare:ve,highlightText:ge,useGlassPanel:fe=!1}=e;const xe=(0,c.Z)(),{t:we,i18n:be}=(0,i.$)(),ye=(0,o.I0)(),Ce=(0,r.useRef)(null),_e=G({isHover:pe,columnFeedContent:ue,noMargin:me}),je=(0,s.s0)(),[ke,Te]=(0,r.useState)(0),[Ie,Se]=(0,r.useState)(!1),[Pe,Ne]=(0,r.useState)(0),[Re,Le]=(0,r.useState)(!1),Ze=(0,k.Z)(),Ae=(0,o.v9)((e=>{var t,n;return null===(t=e.auth)||void 0===t||null===(n=t.session)||void 0===n?void 0:n.userinfo})),{cdate:Be,imgs:Ee,ovid:ze,txt:Oe,vid:He,pvid:Me,stickers:De,vid_hgt:Fe,vid_wid:Ue,p_type:We,main:Qe,rich_txt:Ge,...qe}=$,Ve=(0,w.e)(Ge),Xe=Ge?Ve:Oe;(0,r.useEffect)((()=>{(0,b.ee)(null===$||void 0===$?void 0:$.p_type)&&(async(e,t,n,r)=>{const o=null!==(e=null===$||void 0===$?void 0:$.id)&&void 0!==e?e:null===$||void 0===$?void 0:$._id;let i,s=null;var l,d,c,p,u,h,m,g;(null===$||void 0===$?void 0:$.p_type)===v.A.STREAM&&(i=await ye((0,F.MV)(o)),s=null===(l=(0,a.SI)(i))||void 0===l||null===(d=l.response)||void 0===d?void 0:d.broadcast);(null===$||void 0===$?void 0:$.p_type)===v.A.MAESTRO&&(i=await ye((0,F.ar)(o)),s=null===(c=(0,a.SI)(i))||void 0===c||null===(p=c.response)||void 0===p||null===(u=p.data)||void 0===u||null===(h=u.cats)||void 0===h?void 0:h[o],null!==(m=s)&&void 0!==m&&m.isLive&&(s.viewsCount=(null===(g=s)||void 0===g?void 0:g.concurrents)||0));Ne(null===(t=s)||void 0===t?void 0:t.duration),Se(null===(n=s)||void 0===n?void 0:n.isLive),Te(null===(r=s)||void 0===r?void 0:r.viewsCount)})()}),[]);const Je=(0,b.ee)(We),Ye=(e=>{const t=[];if(m().withinString(e,(e=>t.push(e))),t.length>0){const[e]=t;if((0,y.dw)(e))return e}return null})(Xe);let Ke=null;qe.prevsrc?Ke={imageUrl:qe.previmg,url:qe.prevsrc,title:qe.ttl,description:qe.dsc}:Ye&&(Ke={url:Ye});const $e=null!==Ee&&void 0!==Ee&&Ee.filter?Ee.filter((e=>void 0!==e&&null!==e)):[];$.action&&["pst_sharedby","cm_sharedby","shares_pst","shares_cm"].includes($.action)&&$.originUser!==(null===(t=ee)||void 0===t?void 0:t.id)&&(ee=oe);const{id:et}=null!==(n=ee)&&void 0!==n?n:{},tt=(null===(d=ee)||void 0===d?void 0:d.id)===(null===Ae||void 0===Ae?void 0:Ae._id)?null===Ae||void 0===Ae?void 0:Ae.ico:(null===(h=ee)||void 0===h?void 0:h.ico)||(null===(q=ee)||void 0===q?void 0:q.avatar),nt=(null===(V=ee)||void 0===V?void 0:V.id)===(null===Ae||void 0===Ae?void 0:Ae._id)?Ae:ee,rt=(0,x.vW)(ee),ot=(0,x.Gf)(nt),it=C.k.SinceTimeV5(Be,Date.now(),be.language,!1),at=(null===$e||void 0===$e?void 0:$e.length)||ze||He||De&&De.length>0,st=(null===(X=Ke)||void 0===X?void 0:X.url)===Xe,lt="poll_pst"===$.p_type,dt=(0,Z.U)({previewMetaData:Ke,hasMediaRepost:Boolean(te),hasImageOrVideo:at,scene:ve?"post":"repost"}),ct=Boolean(dt),pt=(0,Q.jsx)("div",{className:(0,u.Z)(_e.text,_e.embeddedText,Je&&"embeddedStream",te&&"embeddedTextPadding","feeditem_text_content"),children:(0,Q.jsx)(O.o,{previewUrl:null===(J=Ke)||void 0===J?void 0:J.url,txt:Xe,skipLink:!!Ke||le,previewTitle:null===(Y=Ke)||void 0===Y?void 0:Y.title,user:ee,item:$,hasMedia:at,canShowPreview:ct,highlightText:ge})});(0,r.useEffect)((()=>{var e;return null===Ce||void 0===Ce||null===(e=Ce.current)||void 0===e||e.addEventListener("click",ie),()=>{var e;null===Ce||void 0===Ce||null===(e=Ce.current)||void 0===e||e.removeEventListener("click",ie)}}),[]);const ut=(0,r.useRef)(null),ht=(0,r.useRef)(null);return(0,r.useEffect)((()=>{ge&&((0,W.Z)(ut.current,ge,_e.highlightText),(0,W.Z)(ht.current,ge,_e.highlightText))}),[xe.type]),(0,Q.jsx)("div",{ref:Ce,className:(0,u.Z)("".concat(_e.embeddedContent," embeddedContent"),fe&&"apple-glass-effect_panel"),onClick:e=>{e.preventDefault(),e.stopPropagation(),re||("timeline"!==ne||ae||j.A.rememberScrollY("post-timeline"),je("/post/".concat((null===$||void 0===$?void 0:$.id)||(null===$||void 0===$?void 0:$._id))))},children:(0,Q.jsxs)("div",{className:_e.embeddedWrapper,children:[(0,Q.jsx)(R.Z,{userId:et,userInfoTemp:ee,insideComposer:re,itemOnClick:ie,children:(0,Q.jsx)(N._,{insideComposer:re,userInfo:ee,avatarUrl:tt,styleClasses:(0,u.Z)(_e.avatar,he),avgClasses:_e.avgClasses,userId:et,username:ot,showCreatorContent:"repost"!==ne})}),(0,Q.jsxs)("div",{className:_e.embeddedContainer,children:[(0,Q.jsxs)("div",{className:"".concat(_e.embeddedContentHeader," ").concat($?_e.isEmbeded:""),children:[(0,Q.jsxs)(p.Z,{className:_e.userAndNickNameContainer,onClick:e=>{e.preventDefault(),e.stopPropagation(),re||je("/user/".concat(et))},children:[(0,Q.jsx)(R.Z,{userId:et,userInfoTemp:ee,leftAligned:!0,insideComposer:re,extraClass:_e.hoverPopup,itemOnClick:ie,children:(0,Q.jsx)(P.Z,{variant:"h4_v2",className:(0,u.Z)(_e.
2name,"apple-glass-effect_text-main"),children:(0,Q.jsx)("span",{ref:ut,children:(0,Q.jsx)(T.X,{text:ot})})})}),(0,Q.jsx)("div",{className:_e.verificationContainer,children:(0,Q.jsx)(A.d,{userInfo:ee,showFlameLogo:!0,showNfscLogo:!0})}),(0,Q.jsx)(P.Z,{variant:"p3_v2",className:(0,u.Z)(_e.embeddedUserName,"apple-glass-effect_text-sub"),children:(0,Q.jsxs)("span",{ref:ht,children:["@",rt]})})]}),(0,Q.jsx)("span",{className:(0,u.Z)(_e.time,"time"),children:(0,Q.jsx)(l.rU,{to:"/post/".concat((null===$||void 0===$?void 0:$.id)||(null===$||void 0===$?void 0:$._id)),role:"link",dir:"auto",onClick:e=>{e.preventDefault()},"aria-label":it,children:(0,Q.jsx)(P.Z,{variant:"p3_v2",className:(0,u.Z)(_e.sinceTimeTypo,"apple-glass-effect_text-sub"),children:it})})})]}),Je&&(0,Q.jsx)(L.Z,{onClick:e=>{e.preventDefault(),e.stopPropagation(),Je&&"repost"!==ne&&(Ze({post_id:(null===$||void 0===$?void 0:$.id)||(null===$||void 0===$?void 0:$._id),p_type:null===$||void 0===$?void 0:$.p_type,ma_sslg:null===$||void 0===$?void 0:$.ma_sslg,ma_cslg:null===$||void 0===$?void 0:$.ma_cslg,ma_vid:null===$||void 0===$?void 0:$.ma_vid}),ye((0,B.P9)((0,E.e)(ce)[ne])))},size:"large",src:$e[0]?(0,_.Jn)($e[0],_.AI):null,variant:"embedded",isLive:Ie,viewCount:ke,duration:Pe,playIcon:"repost"===ne||!te}),at?(0,Q.jsxs)("div",{className:(0,u.Z)(_e.embeddedContentBody,te&&"with-parent-media",!Je&&"vision-media","embeddedContentBody"),children:[!te&&pt,!Je&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(z.t,{stickers:De,imgs:$e,isEmbedded:!0,item:$,mediaHeight:Fe,mediaWidth:Ue,hasParentMedia:te,user:ee,insideComposer:re,idx:se}),(0,Q.jsx)(H.R,{isEmbedded:!0,mediaHeight:Fe,mediaWidth:Ue,ovid:ze,vid:He,pvid:Me,videoPreviewImage:Qe,item:$,idx:se,showOnlyPreview:te,hasParentMedia:te,itemOnClick:ie,scene:ne})]}),(0,Q.jsx)("div",{children:te&&pt})]}):(!st||!ct)&&pt,$&&!at&&g.ZP.sanitizeHiddenLink(null===(K=Ke)||void 0===K?void 0:K.url)&&!de?dt:null,f.GK.enable&&(0,Q.jsx)(I.O,{targetId:null===$||void 0===$?void 0:$._id,scene:ne,type:null===$||void 0===$?void 0:$.type,timelineType:ce}),lt&&null!==$&&void 0!==$&&$.poll?(0,Q.jsxs)("div",{className:_e.pollRepostWrapper,children:[(0,Q.jsxs)(S.z,{className:_e.pollToggleBtn,onClick:e=>{e.stopPropagation(),Le(!Re)},children:[(0,Q.jsx)(U.r,{}),(0,Q.jsx)(P.Z,{variant:"tag_large_v2",children:we(Re?"getter_fe.pollPost.hidePoll":"getter_fe.pollPost.showPoll")})]}),Re&&(0,Q.jsx)(D.c,{item:$,user:ee})]}):null,"timeline"===(null===$||void 0===$?void 0:$.promoteType)&&(0,Q.jsx)(M.r,{})]})]})})}},15819:(e,t,n)=>{"use strict";n.d(t,{r:()=>p});var r=n(2295),o=n(55195),i=n(42223),a=n(68963),s=n(75859);const l=(e,t)=>(0,s.jsx)("svg",{width:9,height:9,viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,s.jsx)("path",{d:"M4.78686 1.12961L5.69428 3.29211C5.71624 3.34459 5.75212 3.39008 5.79803 3.42368C5.84395 3.45727 5.89816 3.47769 5.95483 3.48274L8.27748 3.68352C8.33911 3.68847 8.39788 3.7116 8.44637 3.74996C8.49485 3.78833 8.53086 3.84021 8.54985 3.89905C8.56883 3.95789 8.56994 4.02104 8.55302 4.08051C8.53611 4.13998 8.50194 4.19309 8.45483 4.23313L6.69272 5.77024C6.64989 5.80786 6.61805 5.85638 6.60058 5.91065C6.58311 5.96491 6.58066 6.0229 6.5935 6.07844L7.12162 8.36516C7.13558 8.42489 7.13165 8.4874 7.11033 8.54491C7.08901 8.60242 7.05124 8.65238 7.00172 8.68857C6.9522 8.72476 6.89313 8.74558 6.83186 8.74843C6.77059 8.75129 6.70984 8.73605 6.65717 8.70461L4.66108 7.49368C4.61258 7.46419 4.5569 7.44859 4.50014 7.44859C4.44338 7.44859 4.3877 7.46419 4.3392 7.49368L2.34311 8.70461C2.29044 8.73605 2.22969 8.75129 2.16842 8.74843C2.10715 8.74558 2.04808 8.72476 1.99856 8.68857C1.94904 8.65238 1.91127 8.60242 1.88995 8.54491C1.86863 8.4874 1.8647 8.42489 1.87866 8.36516L2.40678 6.07844C2.41962 6.0229 2.41717 5.96491 2.3997 5.91065C2.38223 5.85638 2.35039 5.80786 2.30756 5.77024L0.545452 4.23313C0.498343 4.19309 0.464169 4.13998 0.447255 4.08051C0.430341 4.02104 0.431447 3.95789 0.450432 3.89905C0.469418 3.84021 0.50543 3.78833 0.553913 3.74996C0.602395 3.7116 0.661169 3.68847 0.722796 3.68352L3.04545 3.48274C3.10212 3.47769 3.15633 3.45727 3.20225 3.42368C3.24816 3.39008 3.28404 3.34459 3.306 3.29211L4.21342 1.12961C4.23766 1.0737 4.27771 1.0261 4.32865 0.992661C4.3796 0.959222 4.4392 0.941406 4.50014 0.941406C4.56108 0.941406 4.62068 0.959222 4.67163 0.992661C4.72257 1.0261 4.76262 1.0737 4.78686 1.12961Z",fill:"currentColor"})}),d=(0,a.forwardRef)(l),c=(0,r.Z)((e=>{let{palette:t,spacing:n}=e;return{sponsoredTipBox:{backgroundColor:t.colors_v2.base[60],borderRadius:n(.625),padding:n(.5,1),display:"flex",alignItems:"center",gap:n(.5),width:"max-content",margin:n(1,0)},sponsoredTip:{width:n(1.625),height:n(1.625),backgroundColor:t.colors_v2.accent,display:"flex",alignItems:"center",justifyContent:"center"},icon:{color:t.colors_v2.bg},title:{color:t.colors_v2.element[40]}}})),p=()=>{const{t:e}=(0,o.$)(),t=c();
2return(0,s.jsxs)("div",{className:t.sponsoredTipBox,children:[(0,s.jsx)("div",{className:t.sponsoredTip,children:(0,s.jsx)(d,{className:t.icon})}),(0,s.jsx)(i.Z,{variant:"tag_small_v2",className:t.title,children:e("getter_fe.post.tips.sponsored")})]})}},32294:(e,t,n)=>{"use strict";n.d(t,{o:()=>m});var r=n(55195),o=n(3861),i=n(96581),a=n(1012),s=n(87031),l=n(63164),d=n(89116),c=n(30497),p=n(12727),u=n(75859);const h=e=>{let{className:t,previewUrl:n,txt:s,skipLink:c,type:h,preventDefaultScroll:m,item:v,hasMedia:g,canShowPreview:f,scene:x,checkMore:w,highlightText:b,dataTestid:y,isPinnedPost:C}=e;const{t:_}=(0,r.$)(),j=(0,o.Z)(),k=(0,i.Z)(j.breakpoints.down("xs")),T=(0,d.e)(v.rich_txt),I=v.rich_txt?T:(0,l.F0)({text:null!==s&&void 0!==s?s:"",ignoreEmoji:!0}).html;let S=!1;const P=I&&(/timeline|hashtag/.test(x)||C&&/profile/.test(x))?(0,l.vj)({text:I,width:k?/hashtag/.test(x)?140:300:/hashtag/.test(x)?274:503,fontSize:15,moreText:'<b className="moreText">...'.concat(_("getter_fe.common.more"),"</b>"),maxRows:/hashtag/.test(x)?5:15,editedTextCallback:e=>(S=e,w&&w(S),"")}):I;return(0,u.jsx)(u.Fragment,{children:I&&(0,u.jsx)("div",{className:(0,a.Z)(t),children:(0,u.jsx)(p.Z,{text:P,previewUrl:n,skipLink:c,type:h,previewTitle:I,preventDefaultScroll:m,hasMedia:g,canShowPreview:f,highlightText:b})})})},m=e=>{const{item:t,className:n,user:o,previewUrl:i,skipLink:l,type:d,preventDefaultScroll:m,highlightText:v,dataTestid:g}=e,{t:f}=(0,r.$)();return t?(0,s.ee)(t.p_type)?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:(0,a.Z)(n),children:(0,u.jsx)(c.X,{text:f("getter_fe.livestream.common.watchlive",{username:null===o||void 0===o?void 0:o.nickname})})}),t.ttl&&(0,u.jsx)("div",{className:(0,a.Z)(n),children:(0,u.jsx)(p.Z,{text:t.ttl,previewUrl:i,skipLink:l,type:d,previewTitle:t.ttl,preventDefaultScroll:m,highlightText:v})})]}):(0,u.jsx)(h,{...e}):null}},66697:(e,t,n)=>{"use strict";n.d(t,{R:()=>b});var r=n(2295),o=n(96581),i=n(3861),a=n(68963),s=n(1012),l=n(51180),d=n(8530),c=n(37958);var p=n(45158),u=n(96589),h=n(31745),m=n(98927),v=n(24463),g=n(50396),f=n(75859);const{isSafari:x}=(0,u.l7)(),w=(0,r.Z)((e=>({mediaStack:{width:"100%",minWidth:0,marginRight:0,marginLeft:0},mediaContainer:{marginTop:t=>{let{isEmbedded:n,scene:r}=t;return n?0:e.spacing(1.25)},width:e=>{let{isEmbedded:t}=e;return t?88:null},height:e=>{let{isEmbedded:t}=e;return t?88:null},overflow:"hidden","-webkit-mask-image":e=>{let{isSafari:t}=e;return t?"-webkit-radial-gradient(white, black)":"unset"},"& .video-js":{height:"100%"},"&.image-c-has-parent-media":{width:"100%",marginBottom:"12px !important"},"&.media-c-has-parent-media":{width:"100%",height:"auto"}},mediaContainerVideo:{position:"relative",minHeight:88,"&.media-c-has-parent-media":{borderRadius:"14px",marginTop:e.spacing(1.25)},"& .video-js, .vjs-tech":{borderRadius:e=>{let{attachedVideoRadius:t}=e;return t},overflow:"hidden"}},vidPrevImgSmall:{display:"flex",width:e.spacing(11),height:e.spacing(11),borderRadius:14,borderColor:["dark","light"].includes(e.type)?"".concat(e.palette.newColors.neutral[600]):"".concat(e.palette.newColors.neutral[200]),"& img":{width:"100%",height:"auto",objectFit:"cover",borderRadius:14}},visionIconWrapper:{position:"absolute",zIndex:7},visionIconWrapperVideo:{right:21,top:21,"& svg":{width:"54px",height:e.spacing(3.625)}},visionIconWrapperPreview:{left:10,bottom:-2,"& svg":{width:e.spacing(4.5),height:e.spacing(4.5)}},processLoadingWrapper:{height:"506px",alignSelf:"stretch",flexGrow:"0",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",padding:"0",backgroundColor:e.palette.newColors.backgroundBg[3]},loadingIconWrapper:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},loadingDot:{display:"table-cell",fontSize:"16px",clipPath:"inset(0 1.2ch 0 0)",animation:"$dot 1s steps(5) infinite",color:e.palette.newColors.neutral[400]},time:{color:e.palette.utility.white,backgroundColor:e.palette.background.black,position:"absolute",bottom:8,right:8,padding:"3px 5px",borderRadius:4,fontSize:14,height:23,display:"flex",justifyContent:"center",alignItems:"center"},"@keyframes dot":{to:{clipPath:"inset(0 -1ch 0 0)"}}})),{name:"FeedItemVideoContent"}),b=e=>{var t;let{isEmbedded:n,pvid:r,ovid:u,vid:b,mediaHeight:y,mediaWidth:C,hasParentMedia:_,scene:j,videoPreviewImage:k,item:T,idx:I,showOnlyPreview:S,disableAutoplay:P,isClickTimelineGTok:N,itemOnClick:R,user:L,dataTestid:Z,hasSummaryBelow:A=!1}=e;const B=(0,i.Z)(),E=(0,o.Z)(B.breakpoints.down("xs")),[z,O]=(0,a.useState)(!0),{mobileChaptersState:H,mobileChapterSeekRequest:M,handlePlayerChaptersStateChange:D,handleSelectChapter:F}=(0,p.u)({isMobile:E}),U=(e=>{let{hasSummaryBelow:t,isMobile:n,mobileChaptersEnabled:r}=e;return Boolean(t||n&&r)})({hasSummaryBelow:A,isMobile:E,mobileChaptersEnabled:H.enabled}),W=U?"".concat(10,"px ").concat(10,"px 0 0"):10;const Q=w({isEmbedded:n,isSafari:x,scene:j,attachedVideoRadius:W}),G=(0,a.useMemo)((()=>({muted:!0,sources:("object"===typeof u?[{src:(0,v.vX)("https://media.gettr.com",u.m3u8),type:"application/x-mpegurl"}]:["string"===typeof r&&{src:(0,v.vX)("https://media.gettr.com",r),type:r.includes(".mp4")?"video/mp4":"application/x-mpegurl"},{src:(0,v.vX)("https://media.gettr.com",b),type:"application/x-mpegurl"}
2,{src:(0,v.vX)("https://media.gettr.com",u),type:"video/mp4"}]).filter((e=>e&&Boolean(e.src)))})),[u,r,b]),q="trending"===j,V="vi_pst"===T.p_type,X=(0,v.vX)("https://media.gettr.com",k),J=_?Q.visionIconWrapperPreview:Q.visionIconWrapperVideo,Y=!_&&!q,K=Y?(0,c.y)(C,y):null,$=null!==K;let ee="number"===typeof T.cdate&&T.cdate-Date.now()>-1e4;if((0,a.useEffect)((()=>{if(!ee||!G.sources[0])return void O(!0);let e,t=0;const n=async()=>{t++;const n=await(0,m.H2)(G.sources[0].src);return O(n),!!(n||t>=4)&&(e&&clearInterval(e),!0)};return n().then((t=>{t||(e=setInterval(n,5e3))})),()=>{e&&clearInterval(e)}}),[ee,G.sources]),!G.sources.length)return null;return(0,f.jsxs)("div",{className:Q.mediaStack,style:null===K?void 0:{maxWidth:K},children:[(0,f.jsxs)("div",{className:(0,s.Z)(Q.mediaContainer,Q.mediaContainerVideo,n&&!_?"media-c-has-parent-media":null,"mediaContainer"),style:_?void 0:{borderRadius:W},"data-testid":Z&&Z+"-media",children:[V&&(0,f.jsx)("div",{className:(0,s.Z)(Q.visionIconWrapper,J,"visionIconWrapper"),children:(0,f.jsx)(g.r,{})}),!V&&(null===T||void 0===T?void 0:T.vid_dur)&&(0,f.jsx)("span",{className:Q.time,children:(0,h.qt)(null===T||void 0===T?void 0:T.vid_dur)}),z?Y?(0,f.jsx)(l.Y,{isEmbedded:n,options:G,_isVertical:$,videoPreviewImage:X,item:T,idx:I,scene:j,showOnlyPreview:S,disableAutoplay:P,isGTokPost:V,isClickTimelineGTok:N,onClickGTok:R,user:L,attachedAiCardBelow:U,onMobileChaptersStateChange:D,mobileChapterSeekRequest:M,dataTestid:-1!==(null===Z||void 0===Z||null===(t=Z.indexOf)||void 0===t?void 0:t.call(Z,"home_post"))&&"home_video"}):(0,f.jsx)("div",{className:(0,s.Z)(Q.vidPrevImgSmall,"".concat(j,"-vid-prev-img-small")),children:(0,f.jsx)("img",{src:X,alt:"img, preview img",onError:e=>{e.target.classList.add("error")}})}):(0,f.jsx)(l.Y,{item:T,user:L,attachedAiCardBelow:U})]}),E&&H.enabled&&(0,f.jsx)(d.ZP,{chapters:H.chapters,activeChapterId:H.activeChapterId,currentChapterDescription:H.currentChapterDescription,isLoading:H.isLoading,onSelectChapter:F,squareTop:!0,squareBottom:A})]})}},33739:(e,t,n)=>{"use strict";n.d(t,{c:()=>P});var r=n(2295),o=n(1012),i=n(29959),a=n(74025);const s=function(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r};var l=n(40573),d=n(66208);const c=function(e,t){return s(e,(0,d.Z)(t,3),l.Z)};var p=n(87048),u=n(7968),h=n(68963),m=n(55195),v=n(62758),g=n(42823),f=n(41600),x=n(31203),w=n(96320),b=n(42223),y=n(64986);var C=n(41176),_=n(46290),j=n(24776),k=n(39633),T=n(39170),I=n(75859);const S=(0,r.Z)((e=>({pollRoot:{margin:t=>{let{columnFeedContent:n}=t;return n?e.spacing(0,2.25):0}},pollPanel:{display:"flex",flexDirection:"column",marginTop:e.spacing(1)},pollButton:{borderRadius:e.spacing(1),height:e.spacing(4.625),marginTop:e.spacing(.5),backgroundColor:"transparent",color:e.palette.newColors.neutral[900],justifyContent:"center","&:hover":{borderColor:e.palette.colors_v2.accentHover,backgroundColor:e.palette.newColors.red[50]},"&:focus":{border:"1px solid ".concat(e.palette.colors_v2.accentLink)}},pollResult:{marginTop:e.spacing(2)},pollResultItem:{position:"relative",height:e.spacing(4.625),marginTop:e.spacing(.5),backgroundColor:e.palette.colors_v2.base[40],borderRadius:e.spacing(1),overflow:"hidden","& .highlight-bg":{position:"absolute",height:"100%",backgroundImage:"linear-gradient(to right, ".concat(e.palette.newColors.neutral[100],", ").concat(e.palette.newColors.neutral[200],")"),zIndex:0,borderTopLeftRadius:e.spacing(1),borderBottomLeftRadius:e.spacing(1),minWidth:e.spacing(1)},"& .poll-info":{width:"100%",height:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",zIndex:1,fontSize:18,padding:e.spacing(0,1.5)},"& .poll-dsc":{color:e.palette.newColors.neutral[900],display:"flex",alignItems:"center",fontWeight:500},"& .poll-dsc-my":{fontWeight:700},"& i":{width:"24px",height:"24px",borderRadius:"9px",marginLeft:e.spacing(.5),display:"flex",alignItems:"center",justifyContent:"center","& svg path":{fill:e.palette.newColors.neutral[900]}}},selectedItem:{"& .poll-dsc":{color:e.palette.colors_v2.element[100]},"& .highlight-bg":{backgroundColor:t=>{let{isExpired:n}=t;return n?e.palette.colors_v2.accent:e.palette.colors_v2.base[80]}},"& i":{"& svg path":{fill:e.palette.colors_v2.element[100]}}},pollResultItemForCreator:{"& .poll-dsc":{color:e.palette.colors_v2.element[100]},"& .highlight-bg":{backgroundImage:"linear-gradient(to right, ".concat(e.palette.newColors.red[100],", ").concat(e.palette.newColors.red[400],")")},"& i":{"& svg path":{fill:e.palette.colors_v2.element[100]}}},pollTotal:{color:e.palette.colors_v2.element[60],marginTop:e.spacing(1)},vatesPrecent:{color:e.palette.colors_v2.element[80],fontWeight:500},vatesPrecentMy:{fontWeight:700}})),{name:"FeedItemPollContent"}),P=(0,v.$j)((e=>({})),{votePoll:x.rZ})((0,h.memo)(N));function N(e){var t,n;let{item:r,user:s,votePoll:l,columnFeedContent:d}=e;const x=(0,v.I0)(),{t:P}=(0,m.$)(),[N,R]=(0,h.useState)(null),{authenticated:L,userInfo:Z}=(0,k.E)(),A=(0,_.l)(),B=(0,j.w)(A),E=(null===r||void 0===r?void 0:r.id)||(null===r||void 0===r?void 0:r._id),z=null===r||void 0===r||null===(t=r.poll)||void 0===t?void 0:t.expire,{pollVotes:O,pollStats:H}=(e=>{const t=(0,v.v9)((t=>(0,y.wY)(t.postStats.postStats[e])));return(0,h.useMemo)((()=>({pollVotes:(null===t||void 0===t?void 0:t.pv)||[],pollStats:(null===t||void 0===t?void 0:t.ps)||{}})),[null===t||void 0===t?void 0:t.pv,null===t||void 0===t?void 0:t.ps])})(E),M=S({isExpired:null===N||void 0===N?void 0:N.isOver,columnFeedContent:d}),D=r.pvotes&&0!==(null===(n=r.pvotes)||void 0===n?void 0:n.length)?r.pvotes:O,F={...r.poll.stats,...H},U=(0,h.useMemo)((()=>{const e=(0,i.Z)((0,a.Z)(F)),t=c(F,(e=>e>0)),n=(0,p.Z)(F,(t=>e?(0,u.Z)(100*t/e,2):0)),r=(0,i.Z)((0,a.Z)(n));return n[t]=(0,u.Z)(100-r+n[t],2),{total:e,...n}}),[F]),W=(0,h.useMemo)((()=>{const e=Object.keys(F).length>0?Object.keys(F).reduce(((e,t)=>F[e]>F[t]?e:t)):null,t=U&&U[e],n=[];
2return t&&U&&Object.keys(U).forEach((function(e){U[e]===t&&n.push(Number(e))})),n||[]}),[U]);(0,h.useEffect)((()=>{if(!z)return;const e=()=>{const e=Math.floor((z-((new Date).getTime()-(null===r||void 0===r?void 0:r.cdate))/1e3)/60),t=Math.floor(e/60),n=Math.floor(t/24);R(e>0?{days:n,hours:t%24,minutes:e%60}:{isOver:!0})};e();let t=setInterval((()=>{e()}),1e3);return()=>{clearInterval(t)}}),[z]);const Q=e=>!(null===U||void 0===U||!U.total)&&-1!==(null===D||void 0===D?void 0:D.indexOf(Number(e)))||!(null===U||void 0===U||!U.total)&&W.includes(Number(e))&&N&&N.isOver&&(null===Z||void 0===Z?void 0:Z.username)===(null===s||void 0===s?void 0:s.username)&&(null===Z||void 0===Z?void 0:Z._id)!==(null===r||void 0===r?void 0:r.uid);return(0,I.jsxs)("div",{className:M.pollRoot,children:[!N||N.isOver||(null===Z||void 0===Z?void 0:Z.username)===(null===s||void 0===s?void 0:s.username)||null!==D&&void 0!==D&&D.length?(0,I.jsx)("div",{className:M.pollResult,children:Object.keys(r.poll.options).map((e=>(0,I.jsxs)("div",{className:(0,o.Z)(M.pollResultItem,!(null===U||void 0===U||!U.total)&&-1!==(null===D||void 0===D?void 0:D.indexOf(Number(e)))&&M.selectedItem,!(null===U||void 0===U||!U.total)&&W.includes(Number(e))&&N&&N.isOver&&M.pollResultItemForCreator),children:[(0,I.jsx)("span",{className:(0,o.Z)("highlight-bg"),style:{width:"".concat(U&&U[e]||0,"%")}}),(0,I.jsxs)("div",{className:"poll-info",children:[(0,I.jsxs)(b.Z,{variant:"h4_v2",className:(0,o.Z)("poll-dsc",Q(e)?"poll-dsc-my":null),children:[r.poll.options[e].dsc,Q(e)?(0,I.jsx)("i",{children:(0,I.jsx)(T.r,{})}):null]}),(0,I.jsxs)(b.Z,{variant:"h4_v2",className:(0,o.Z)(M.vatesPrecent,Q(e)?M.vatesPrecentMy:null),children:[U&&U[e]||0,"%"]})]})]},e)))}):(0,I.jsx)("div",{className:(0,o.Z)(M.pollPanel,"poll-panel"),children:Object.keys(r.poll.options).map((e=>(0,I.jsx)(w.z,{onClick:t=>{t.stopPropagation(),(async e=>{var t,n;if(!L)return void x((0,C.AR)(B));if((null===Z||void 0===Z?void 0:Z.username)===(null===s||void 0===s?void 0:s.username))return void(0,g.Am)((0,I.jsx)(f.r,{message:P("getter_fe.pollPost.authorCantParticipate")}),{position:g.Am.POSITION.TOP_CENTER,type:g.Am.TYPE.WARNING});const r=await l({content:{postId:E,selections:[e]}}),o=null===r||void 0===r||null===(t=r.payload)||void 0===t?void 0:t.response,i=null===r||void 0===r||null===(n=r.payload)||void 0===n?void 0:n.err;o&&(0,g.Am)((0,I.jsx)(f.r,{message:P("getter_fe.pollPost.submitSuccess")}),{position:g.Am.POSITION.TOP_CENTER,type:g.Am.TYPE.SUCCESS}),i&&(0,g.Am)((0,I.jsx)(f.r,{message:P("getter_fe.pollPost.submitFailure")}),{position:g.Am.POSITION.TOP_CENTER,type:g.Am.TYPE.WARNING})})(Number(e))},variant:"primary",className:M.pollButton,children:(0,I.jsx)(b.Z,{variant:"button_medium_v2",children:r.poll.options[e].dsc})},e)))}),(0,I.jsxs)(b.Z,{variant:"p2_v2",className:M.pollTotal,children:[null===U||void 0===U?void 0:U.total," ",P("getter_fe.pollPost.".concat(1===(null===U||void 0===U?void 0:U.total)?"vote":"votes"))," \u2022 ",N&&!N.isOver?P(N.days?"getter_fe.pollPost.daysLeft":!N.days&&N.hours?"getter_fe.pollPost.hoursLeft":"getter_fe.pollPost.".concat(N.minutes>1?"minutesLeft":"minuteLeft"),N):P("getter_fe.pollPost.finalResults")]})]})}},93406:(e,t,n)=>{"use strict";n.d(t,{Z:()=>I});var r=n(2295),o=n(96581),i=n(68963),a=n(55195),s=n(62758),l=n(1012),d=n(3861),c=n(48809),p=n(75859);const u=(e,t)=>(0,p.jsxs)("svg",{width:15,height:15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,p.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.1585 1.492C12.2151 1.43543 12.2576 1.36636 12.2826 1.29036L12.687 0.0607972C12.7137 -0.0202658 12.8283 -0.0202657 12.855 0.0607973L13.2594 1.29036C13.2844 1.36636 13.3269 1.43543 13.3835 1.492C13.4401 1.54857 13.5091 1.59107 13.5851 1.61607L14.8147 2.02049C14.8958 2.04716 14.8958 2.16183 14.8147 2.18849L13.5851 2.59292C13.5091 2.61791 13.4401 2.66041 13.3835 2.71698C13.3269 2.77355 13.2844 2.84262 13.2594 2.91862L12.855 4.14819C12.8283 4.22925 12.7137 4.22925 12.687 4.14819L12.2826 2.91862C12.2576 2.84262 12.2151 2.77355 12.1585 2.71698C12.1019 2.66041 12.0329 2.61791 11.9569 2.59292L10.7273 2.18849C10.6462 2.16183 10.6462 2.04716 10.7273 2.02049L11.9569 1.61607C12.0329 1.59107 12.1019 1.54857 12.1585 1.492ZM12.4086 1.74211C12.5043 1.64637 12.5763 1.52949 12.6186 1.40088L12.771 0.937449L12.9234 1.40088C12.9657 1.52949 13.0376 1.64637 13.1334 1.74211C13.2291 1.83784 13.346 1.90976 13.4746 1.95206L13.938 2.10449L13.4746 2.25692C13.346 2.29922 13.2291 2.37114 13.1334 2.46687C13.0376 2.56261 12.9657 2.6795 12.9234 2.80811L12.771 3.27153L12.6186 2.8081C12.5763 2.67949 12.5043 2.56261 12.4086 2.46687C12.3129 2.37114 12.196 2.29922 12.0674 2.25692L11.604 2.10449L12.0674 1.95206C12.196 1.90976 12.3129 1.83784 12.4086 1.74211Z",fill:"currentColor"}),(0,p.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.27278 5.27278C5.47271 5.07286 5.62289 4.82877 5.71123 4.56019L7.14049 0.214859C7.23471 -0.
20716199 7.63997 -0.0716196 7.73419 0.214859L9.16345 4.56019C9.25179 4.82877 9.40197 5.07286 9.6019 5.27278C9.80182 5.47271 10.0459 5.62289 10.3145 5.71123L14.6598 7.14049C14.9463 7.23471 14.9463 7.63997 14.6598 7.73419L10.3145 9.16345C10.0459 9.25179 9.80182 9.40197 9.6019 9.6019C9.40197 9.80182 9.25179 10.0459 9.16345 10.3145L7.73419 14.6598C7.63997 14.9463 7.23471 14.9463 7.14049 14.6598L5.71123 10.3145C5.62289 10.0459 5.47271 9.80182 5.27278 9.6019C5.07286 9.40197 4.82877 9.25179 4.56019 9.16345L0.214859 7.73419C-0.0716201 7.63997 -0.0716194 7.23471 0.21486 7.14048L4.56019 5.71123C4.82877 5.62289 5.07286 5.47271 5.27278 5.27278ZM6.15667 6.15667C6.495 5.81833 6.74915 5.40527 6.89865 4.95075L7.43734 3.31298L7.97603 4.95075C8.12553 5.40527 8.37968 5.81833 8.71801 6.15667C9.05635 6.495 9.46942 6.74916 9.92395 6.89865L11.5617 7.43734L9.92393 7.97603C9.46941 8.12553 9.05635 8.37968 8.71801 8.71801C8.37968 9.05635 8.12553 9.46942 7.97603 9.92395L7.43734 11.5617L6.89865 9.92393C6.74915 9.46941 6.495 9.05635 6.15667 8.71801C5.81833 8.37968 5.40526 8.12552 4.95074 7.97603L3.31298 7.43734L4.95075 6.89865C5.40527 6.74915 5.81833 6.495 6.15667 6.15667Z",fill:"currentColor"})]}),h=(0,i.forwardRef)(u);var m=n(21376),v=n(94448);const g=()=>{try{return new DOMException("The operation was aborted.","AbortError")}catch(e){const t=new Error("The operation was aborted.");return t.name="AbortError",t}},f=(e,t,n)=>(0,v.VC)(e,{language:t,signal:n,sentry:{feature:"post",action:"getPostSummary"}}),x=(e,t)=>{var n,r;const o=(null===t||void 0===t||null===(n=t.summary)||void 0===n||null===(r=n.trim)||void 0===r?void 0:r.call(n))||"";return"OK"===(null===t||void 0===t?void 0:t.rc)&&(0,m.tD)(null===t||void 0===t?void 0:t.status)&&o?{id:e,title:"Summary",summary:o}:null},w=function(e){let{signal:t,language:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return null;return((e,t)=>t?t.aborted?Promise.reject(g()):new Promise(((n,r)=>{const o=()=>{r(g())};t.addEventListener("abort",o,{once:!0}),e.then(n).catch(r).finally((()=>{t.removeEventListener("abort",o)}))})):e)((async()=>{let r=null;for(const i of(0,m.XP)(n))try{const n=await f(e,i,t),r=x(e,n);if(r)return r}catch(o){r=r||o}if(r)throw r;return null})(),t)};var b=n(88723),y=n(49286),C=n(75403),_=n(55314),j=n(31203);const k=new Map,T=(0,r.Z)((e=>({root:{width:"100%",alignSelf:"flex-start",borderRadius:12,border:"1px solid ".concat(e.palette.newColors.neutral[100]),backgroundColor:e.palette.newColors.backgroundBg[0],display:"flex",flexDirection:"column",overflow:"hidden"},rootSquareTop:{borderTopLeftRadius:0,borderTopRightRadius:0,borderTop:"none"},toggleArea:{width:"100%",border:0,background:"transparent",cursor:"pointer",textAlign:"left",display:"flex",alignItems:"center",justifyContent:"space-between",gap:e.spacing(1),transition:"background-color 0.18s ease","&:hover":{backgroundColor:e.palette.newColors.neutral[100]}},collapsedButton:{padding:e.spacing(1.5,2)},expandedHeader:{padding:e.spacing(1.5,2,1.25)},headerMain:{minWidth:0,display:"flex",alignItems:"center",gap:e.spacing(1),flex:1},collapsedRow:{minWidth:0,display:"flex",alignItems:"center",gap:e.spacing(1),flex:1},titleGroup:{minWidth:0,display:"flex",alignItems:"baseline",gap:e.spacing(.75),flex:1},icon:{flexShrink:0,width:20,height:20,marginTop:2,color:e.palette.colors_v2.element[80]},title:{color:e.palette.colors_v2.element[80],fontSize:18,fontWeight:700,lineHeight:"26px",flexShrink:0},disclaimer:{color:e.palette.newColors.neutral[500],fontSize:13,fontWeight:400,lineHeight:"20px",flex:1,minWidth:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},mobileDisclaimer:{color:e.palette.newColors.neutral[500],fontSize:13,fontWeight:400,lineHeight:"20px",padding:e.spacing(0,2,.75),whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},collapsedPreview:{minWidth:0,color:e.palette.newColors.neutral[900],fontSize:17,fontWeight:400,lineHeight:"24px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},content:{position:"relative",display:"flex",flexDirection:"column",gap:e.spacing(1),padding:e.spacing(1.25,2,2)},summaryText:{margin:0,color:e.palette.colors_v2.element[80],wordBreak:"break-word",fontSize:18,fontWeight:400,lineHeight:"1.42"},toggleButton:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:24,height:24,padding:0,border:0,background:"transparent",color:e.palette.colors_v2.element[60],borderRadius:999,pointerEvents:"none"},toggleIcon:{width:16,height:16,transition:"transform 0.2s ease"},toggleIconExpanded:{transform:"rotate(180deg)"},observerRoot:{position:"relative",width:"100%",height:0,overflow:"visible"},observerSentinel:{position:"absolute",top:0,left:0,width:1,height:1,opacity:0,pointerEvents:"none"},skeletonRoot:{minHeight:50,padding:e.spacing(1.5,2),cursor:"default",pointerEvents:"none",gap:e.spacing(1)},skeletonHeader:{display:"flex",alignItems:"center",gap:e.spacing(1),width:"100%"},skeletonIcon:{width:20,height:20,borderRadius:999,flexShrink:0},skeletonTextGroup:{display:"flex",alignItems:"center",gap:e.spacing(1),flex:1,minWidth:0}
2,skeletonTitle:{width:72,height:18,borderRadius:4,flexShrink:0},skeletonPreview:{maxWidth:360,height:16,borderRadius:4,flex:1},skeletonToggle:{width:24,height:24,borderRadius:999,flexShrink:0},skeletonBlock:{background:"linear-gradient(90deg, rgba(236, 236, 236, 0.72) 0%, rgba(221, 221, 221, 0.92) 45%, rgba(236, 236, 236, 0.72) 90%)",backgroundSize:"240% 100%",animation:"$summarySkeletonPulse 1.2s ease-in-out infinite"},"@keyframes summarySkeletonPulse":{"0%":{backgroundPosition:"100% 0"},"100%":{backgroundPosition:"-100% 0"}}}))),I=e=>{var t,n;let{postId:r,enabled:u=!0,attachedToVideo:m=!1}=e;const v=T(),{t:g}=(0,a.$)(),f=(0,d.Z)(),x=(0,o.Z)(f.breakpoints.down("xs")),I=(0,s.I0)(),{language:S,uiCode:P}=(0,_.f)(),N=(0,j.j1)(r,S),R=(0,s.v9)((e=>e.post.summaryCache.byPostId[N])),[L,Z]=(0,i.useState)(!1),[A,B]=(0,i.useState)(!0),[E,z]=(0,i.useState)(!0),O=(0,i.useRef)(null),H=(0,i.useRef)(null),M=e=>{e.preventDefault(),e.stopPropagation(),Z((e=>!e))},D=e=>{"Enter"!==e.key&&" "!==e.key||M(e)},F=(0,i.useRef)(S);(0,i.useEffect)((()=>{F.current!==S&&(F.current=S,z(!0))}),[S]);const U=(0,j.XX)(R),W=U?null===R||void 0===R?void 0:R.data:null,Q=(null===W||void 0===W||null===(t=W.summary)||void 0===t||null===(n=t.trim)||void 0===n?void 0:n.call(t))||"",G=Boolean(u&&r&&Q),q=(0,i.useRef)(null);(0,i.useEffect)((()=>{G&&(q.current=W)}),[G,W]);const V=U&&"fulfilled"===(null===R||void 0===R?void 0:R.status),X=U&&"rejected"===(null===R||void 0===R?void 0:R.status),J=G&&W||q.current,Y=Boolean(J&&!G&&!X&&!V),K=Boolean(u&&r&&!W&&!X&&!V);return(0,i.useEffect)((()=>{if(!u||!r||G)return B(!1),void z(!1);const e=O.current;if(!e)return;if("function"!==typeof IntersectionObserver)return void B(!0);const t=new IntersectionObserver((e=>{let[t]=e;B(Boolean(null===t||void 0===t?void 0:t.isIntersecting))}));return t.observe(e),()=>{t.disconnect()}}),[u,G,r,N]),(0,i.useEffect)((()=>{if(u&&r&&!G&&!E&&!X){if(A)return H.current=setTimeout((()=>{z(!0),H.current=null}),2e3),()=>{H.current&&(clearTimeout(H.current),H.current=null)};H.current&&(clearTimeout(H.current),H.current=null)}}),[X,u,G,A,r,E]),(0,i.useEffect)((()=>{if(!u||!r||!E||V||X)return;if(k.has(N))return void("loading"!==(null===R||void 0===R?void 0:R.status)&&I((0,j.XO)({postId:r,language:S,requestKey:N})));I((0,j.XO)({postId:r,language:S,requestKey:N}));const e=w(r,{language:S}).then((e=>{I((0,j.dp)({postId:r,language:S,requestKey:N,data:e,updatedAt:Date.now()}))})).catch((e=>{(0,b.X)(e)||I((0,j.oV)({postId:r,language:S,requestKey:N,error:(null===e||void 0===e?void 0:e.message)||"REQUEST_FAILED"}))})).finally((()=>{k.delete(N)}));k.set(N,e)}),[X,I,u,V,U,S,r,E,N]),u&&r?J?(0,p.jsx)("div",{className:(0,l.W)(v.root,m&&v.rootSquareTop),children:L?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("div",{className:(0,l.W)(v.toggleArea,v.expandedHeader),role:"button",tabIndex:0,onClick:M,onKeyDown:D,"aria-expanded":L,"aria-label":g("getter_fe.post.button.less"),"data-testid":"post_summary_card_toggle",children:[(0,p.jsxs)("div",{className:v.headerMain,children:[(0,p.jsx)(h,{className:v.icon}),(0,p.jsxs)("div",{className:v.titleGroup,children:[(0,p.jsx)("span",{className:v.title,children:J.title}),!x&&(0,p.jsx)("span",{className:v.disclaimer,children:g("getter_fe.post.aiMeta.autoGenerated",{lng:P})})]})]}),(0,p.jsx)(C.Z,{}),(0,p.jsx)("span",{className:v.toggleButton,"aria-hidden":"true",children:(0,p.jsx)(c.r,{className:(0,l.W)(v.toggleIcon,v.toggleIconExpanded)})})]}),x&&(0,p.jsx)("div",{className:v.mobileDisclaimer,children:g("getter_fe.post.aiMeta.autoGenerated",{lng:P})}),(0,p.jsxs)("div",{className:v.content,"data-testid":"post_summary_card_content",children:[(0,p.jsx)("p",{className:v.summaryText,children:J.summary}),Y&&(0,p.jsx)(y.Z,{})]})]}):(0,p.jsxs)("div",{className:(0,l.W)(v.toggleArea,v.collapsedButton),role:"button",tabIndex:0,onClick:M,onKeyDown:D,"aria-expanded":L,"aria-label":g("getter_fe.post.button.more"),"data-testid":"post_summary_card_toggle",children:[(0,p.jsxs)("div",{className:v.headerMain,children:[(0,p.jsx)(h,{className:v.icon}),(0,p.jsxs)("div",{className:v.collapsedRow,children:[(0,p.jsx)("span",{className:v.title,children:J.title}),(0,p.jsx)("span",{className:v.collapsedPreview,"data-testid":"post_summary_card_preview",children:J.summary})]})]}),(0,p.jsx)("span",{className:v.toggleButton,"aria-hidden":"true",children:(0,p.jsx)(c.r,{className:v.toggleIcon})})]})}):K?(0,p.jsxs)("div",{className:(0,l.W)(v.root,v.skeletonRoot,m&&v.rootSquareTop),"aria-hidden":"true","data-testid":"post_summary_card_loading",children:[(0,p.jsxs)("div",{className:v.skeletonHeader,children:[(0,p.jsx)("div",{className:(0,l.W)(v.skeletonIcon,v.skeletonBlock)}),(0,p.jsxs)("div",{className:v.skeletonTextGroup,children:[(0,p.jsx)("div",{className:(0,l.W)(v.skeletonTitle,v.skeletonBlock)}),(0,p.jsx)("div",{className:(0,l.W)(v.skeletonPreview,v.skeletonBlock)})]}),(0,p.jsx)("div",{className:(0,l.W)(v.skeletonToggle,v.skeletonBlock)})]}),(0,p.jsx)("div",{ref:O,className:(0,l.W)(v.observerRoot,v.observerSentinel),"data-testid":"post_summary_card_observer"})]}):null:null}},89116:(e,t,n)=>{"use strict";n.d(t,{e:()=>a});var r=n(68963),o=n(63164);const i=()=>Promise.all([n.e(9141),n.e(1517)]).then(n.bind(n,51517)),a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;const n=(0,r.useMemo)((()=>(0,o.MN)(e)),[e]),[a,s]=(0,r.useState)(null),l=Boolean(e)&&("false"==={}.REACT_APP_RICH_TEXT_READ_RENDERER||!n.supported);return(0,r.useEffect)((()=>{let n=!0;return s(null),l&&t().then((t=>{let{legacyDeltaToHtml:r}=t;
2n&&s(r(e))}),(()=>{})),()=>{n=!1}}),[e,t,l]),null!==a&&void 0!==a?a:n.html}},27876:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(78344),o=n(63041),i=n(23169);const a={[i.A.STREAM]:"/streaming",[i.A.MAESTRO]:"/live"},s=()=>{const e=(0,r.s0)();return t=>{const{p_type:n,post_id:r,ma_sslg:s,ma_cslg:l,ma_vid:d,pos:c}=t;if(n===i.A.STREAM&&r&&e("".concat(a[n],"/").concat(r).concat(c?"?pos=".concat(c):"")),n===i.A.MAESTRO&&s){const e="".concat(a[n],"/").concat(s).concat(!d&&l?"/".concat(l):""),t=d?(0,o.stringify)({v:d,...c?{pos:c}:{}}):"";window.open("".concat(e,"?").concat(t))}}}},44665:(e,t,n)=>{"use strict";n.d(t,{N:()=>P});var r=n(17507),o=n(36056),i=n(2295),a=n(87381),s=n(3861),l=n(1012),d=n(68963),c=n(8944),p=n(43267),u=n(32806),h=n(75859);const m=(e,t)=>(0,h.jsxs)("svg",{width:20,height:40,viewBox:"0 0 20 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,h.jsxs)("g",{clipPath:"url(#t0w4jx202a)",children:[(0,h.jsx)("path",{fill:"#505050",d:"M0 0h20v40H0z"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 22.5a8.5 8.5 0 1 0 0-17 8.5 8.5 0 0 0 0 17zm0 0c9.389 0 17 7.387 17 16.5s-7.611 16.5-17 16.5S-7 48.113-7 39 .611 22.5 10 22.5z",fill:"#CBCBCB"})]}),(0,h.jsx)("defs",{children:(0,h.jsx)("clipPath",{id:"t0w4jx202a",children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h20v40H0z"})})})]}),v=(0,d.forwardRef)(m),g=(e,t)=>(0,h.jsxs)("svg",{width:20,height:40,viewBox:"0 0 20 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,h.jsxs)("g",{clipPath:"url(#4mog7uh5ia)",children:[(0,h.jsx)("path",{fill:"#CBCDD6",d:"M0 0h20v40H0z"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 22.5a8.5 8.5 0 1 0 0-17 8.5 8.5 0 0 0 0 17zm0 0c9.389 0 17 7.387 17 16.5s-7.611 16.5-17 16.5S-7 48.113-7 39 .611 22.5 10 22.5z",fill:"#EEEFF3"})]}),(0,h.jsx)("defs",{children:(0,h.jsx)("clipPath",{id:"4mog7uh5ia",children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h20v40H0z"})})})]}),f=(0,d.forwardRef)(g),x=(e,t)=>(0,h.jsxs)("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,h.jsxs)("g",{clipPath:"url(#wkqox8r31a)",children:[(0,h.jsx)("path",{fill:"#505050",d:"M0 0h20v20H0z"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 11.25a4.25 4.25 0 1 0 0-8.5 4.25 4.25 0 0 0 0 8.5zm0 0c4.694 0 8.5 3.694 8.5 8.25s-3.806 8.25-8.5 8.25-8.5-3.694-8.5-8.25 3.806-8.25 8.5-8.25z",fill:"#CBCBCB"})]}),(0,h.jsx)("defs",{children:(0,h.jsx)("clipPath",{id:"wkqox8r31a",children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),w=(0,d.forwardRef)(x),b=(e,t)=>(0,h.jsxs)("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,h.jsxs)("g",{clipPath:"url(#8wg0p73aea)",children:[(0,h.jsx)("path",{fill:"#CBCDD6",d:"M0 0h20v20H0z"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 11.25a4.25 4.25 0 1 0 0-8.5 4.25 4.25 0 0 0 0 8.5zm0 0c4.694 0 8.5 3.694 8.5 8.25s-3.806 8.25-8.5 8.25-8.5-3.694-8.5-8.25 3.806-8.25 8.5-8.25z",fill:"#EEEFF3"})]}),(0,h.jsx)("defs",{children:(0,h.jsx)("clipPath",{id:"8wg0p73aea",children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),y=(0,d.forwardRef)(b);var C=n(4129),_=n(24463),j=n(49288),k=n(6576),T=n(94021),I=n(98507);const S=(0,i.Z)((e=>(0,a.Z)({root:{},avatar:{border:"1px solid ".concat(e.palette.newColors.avatarBorder),boxSizing:"content-box",backgroundColor:"transparent","& svg":{width:"100%",height:"100%"},"& img":{backgroundColor:t=>{let{isPNGBg:n}=t;return n&&"".concat(e.palette.utility.white," !important")}}},premiums:{}}))),P=d.memo((e=>{var t,n;let{avatarUrl:i,userId:a,username:m,isBig:g,styleClasses:x,shape:b,isStraight:P,isHigher:N,userInfo:R,style:L,hideBadge:Z=!1,avgClasses:A=null,showPremiumIcon:B=!1}=e;const E=(0,s.Z)(),z=(null===i||void 0===i?void 0:i.split)&&(null===i||void 0===i||null===(t=i.split(".").pop())||void 0===t?void 0:t.toUpperCase()),O=S({isPNGBg:["PNG"].includes(z||"")}),H=(0,_.wf)(g),M=(0,_.Jn)(i,H,{allowExternal:!0}),D=(0,_.BI)(i,{allowExternal:!0}),[F,U]=d.useState(M),W=m||a||"G",{badgeStyle:Q,type:G,level:q,bio:V,isPopularUser:X,isGoldLevel:J,isSilverLevel:Y}=(0,I.Lz)(R),K=(null===R||void 0===R||null===(n=R.premium)||void 0===n?void 0:n.enabled)&&B;d.useEffect((()=>
2{if(U(M),!M)return;let e=!0;const t=(t,n)=>{if(!t)return void(n&&n());const r=new Image;r.onload=()=>{e&&U(t)},r.onerror=()=>{e&&n&&n()},r.src=t};return t(M,(()=>{D&&D!==M?t(D,(()=>{U("")})):U("")})),()=>{e=!1}}),[D,M]);return(0,h.jsx)("div",{className:O.root,children:(0,h.jsx)(r.Z,{anchorOrigin:Q,overlap:"circular",badgeContent:Z?null:K?(0,h.jsx)(j.r,{className:(0,l.Z)(A,O.premiums)}):X?(()=>{if("dark"===E.palette.type){if(J)return(0,h.jsx)(p.r,{id:"PopularIconDark-"+a,className:(0,l.Z)(A,O.popularCreator)});if(Y)return(0,h.jsx)(T.r,{id:"PopularSilverIconDark-"+a,className:(0,l.Z)(A,O.popularCreator)})}else{if(J)return(0,h.jsx)(c.r,{id:"PopularIcon-"+a,className:(0,l.Z)(A,O.popularCreator)});if(Y)return(0,h.jsx)(k.r,{id:"PopularSilverIcon-"+a,className:(0,l.Z)(A,O.popularCreator)})}})():null,children:(0,h.jsx)(o.Z,{alt:W,src:F||void 0,className:(0,l.Z)(O.avatar,x,"avatar"),variant:b||"circular",style:L,children:E.palette.type.includes("dark")?(0,h.jsx)(h.Fragment,{children:N?(0,h.jsx)(v,{}):P?(0,h.jsx)(w,{}):(0,h.jsx)(u.r,{})}):(0,h.jsx)(h.Fragment,{children:N?(0,h.jsx)(f,{}):P?(0,h.jsx)(y,{}):(0,h.jsx)(C.r,{})})})})})}))},98810:function(e,t,n){var r,o;!function(i,a){"use strict";e.exports?e.exports=a():void 0===(o="function"===typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=o)}(0,(function(e){"use strict";var t=e&&e.IPv6;return{best:function(e){var t,n,r=e.toLowerCase().split(":"),o=r.length,i=8;for(""===r[0]&&""===r[1]&&""===r[2]?(r.shift(),r.shift()):""===r[0]&&""===r[1]?r.shift():""===r[o-1]&&""===r[o-2]&&r.pop(),-1!==r[(o=r.length)-1].indexOf(".")&&(i=7),t=0;t<o&&""!==r[t];t++);if(t<i)for(r.splice(t,1,"0000");r.length<i;)r.splice(t,0,"0000");for(var a=0;a<i;a++){n=r[a].split("");for(var s=0;s<3&&("0"===n[0]&&n.length>1);s++)n.splice(0,1);r[a]=n.join("")}
2var l=-1,d=0,c=0,p=-1,u=!1;for(a=0;a<i;a++)u?"0"===r[a]?c+=1:(u=!1,c>d&&(l=p,d=c)):"0"===r[a]&&(u=!0,p=a,c=1);c>d&&(l=p,d=c),d>1&&r.splice(l,d,""),o=r.length;var h="";for(""===r[0]&&(h=":"),a=0;a<o&&(h+=r[a],a!==o-1);a++)h+=":";return""===r[o-1]&&(h+=":"),h},noConflict:function(){return e.IPv6===this&&(e.IPv6=t),this}}}))},11192:function(e,t,n){var r,o;!function(i,a){"use strict";e.exports?e.exports=a():void 0===(o="function"===typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=o)}(0,(function(e){"use strict";var t=e&&e.SecondLevelDomains,n={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" c
2om edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;var r=e.lastIndexOf(".",t-1);if(r<=0||r>=t-1)return!1;var o=n.list[e.slice(t+1)];return!!o&&o.indexOf(" "+e.slice(r+1,t)+" ")>=0},is:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;if(e.lastIndexOf(".",t-1)>=0)return!1;var r=n.list[e.slice(t+1)];return!!r&&r.indexOf(" "+e.slice(0,t)+" ")>=0},get:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return null;var r=e.lastIndexOf(".",t-1);if(r<=0||r>=t-1)return null;var o=n.list[e.slice(t+1)];return o?o.indexOf(" "+e.slice(r+1,t)+" ")<0?null:e.slice(r+1):null},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return n}))},35561:function(e,t,n){var r,o,i;!function(a,s){"use strict";e.exports?e.exports=s(n(44453),n(98810),n(11192)):(o=[n(44453),n(98810),n(11192)],void 0===(i="function"===typeof(r=s)?r.apply(t,o):r)||(e.exports=i))}(0,(function(e,t,n,r){"use strict";var o=r&&r.URI;function i(e,t){var n=arguments.length>=1;if(!(this instanceof i))return n?arguments.length>=2?new i(e,t):new i(e):new i;if(void 0===e){if(n)throw new TypeError("undefined is not a valid argument for URI");e="undefined"!==typeof location?location.href+"":""}if(null===e&&n)throw new TypeError("null is not a valid argument for URI");return this.href(e),void 0!==t?this.absoluteTo(t):this}i.version="1.19.11";var a=i.prototype,s=Object.prototype.hasOwnProperty;function l(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function d(e){return void 0===e?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function c(e){return"Array"===d(e)}function p(e,t){var n,r,o={};if("RegExp"===d(t))o=null;else if(c(t))for(n=0,r=t.length;n<r;n++)o[t[n]]=!0;else o[t]=!0;for(n=0,r=e.length;n<r;
2n++){(o&&void 0!==o[e[n]]||!o&&t.test(e[n]))&&(e.splice(n,1),r--,n--)}return e}function u(e,t){var n,r;if(c(t)){for(n=0,r=t.length;n<r;n++)if(!u(e,t[n]))return!1;return!0}var o=d(t);for(n=0,r=e.length;n<r;n++)if("RegExp"===o){if("string"===typeof e[n]&&e[n].match(t))return!0}else if(e[n]===t)return!0;return!1}function h(e,t){if(!c(e)||!c(t))return!1;if(e.length!==t.length)return!1;e.sort(),t.sort();for(var n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}function m(e){return e.replace(/^\/+|\/+$/g,"")}function v(e){return escape(e)}function g(e){return encodeURIComponent(e).replace(/[!'()*]/g,v).replace(/\*/g,"%2A")}i._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:i.preventInvalidHostname,duplicateQueryParameters:i.duplicateQueryParameters,escapeQuerySpace:i.escapeQuerySpace}},i.preventInvalidHostname=!1,i.duplicateQueryParameters=!1,i.escapeQuerySpace=!0,i.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,i.idn_expression=/[^a-z0-9\._-]/i,i.punycode_expression=/(xn--)/i,i.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,i.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,i.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?\xab\xbb\u201c\u201d\u2018\u2019]))/gi,i.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?\xab\xbb\u201c\u201d\u201e\u2018\u2019]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},i.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,i.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,i.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},i.hostProtocols=["http","https"],i.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,i.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},i.getDomAttribute=function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();if("input"!==t||"image"===e.type)return i.domAttributes[t]}},i.encode=g,i.decode=decodeURIComponent,i.iso8859=function(){i.encode=escape,i.decode=unescape},i.unicode=function(){i.encode=g,i.decode=decodeURIComponent},i.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},i.encodeQuery=function(e,t){var n=i.encode(e+"");return void 0===t&&(t=i.escapeQuerySpace),t?n.replace(/%20/g,"+"):n},i.decodeQuery=function(e,t){e+="",void 0===t&&(t=i.escapeQuerySpace);try{return i.decode(t?e.replace(/\+/g,"%20"):e)}catch(n){return e}};var f,x={encode:"encode",decode:"decode"},w=function(e,t){return function(n){try{return i[t](n+"").replace(i.characters[e][t].expression,(function(n){return i.characters[e][t].map[n]}))}catch(r){return n}}};for(f in x)i[f+"PathSegment"]=w("pathname",x[f]),i[f+"UrnPathSegment"]=w("ur
2npath",x[f]);var b=function(e,t,n){return function(r){var o;o=n?function(e){return i[t](i[n](e))}:i[t];for(var a=(r+"").split(e),s=0,l=a.length;s<l;s++)a[s]=o(a[s]);return a.join(e)}};function y(e){return function(t,n){return void 0===t?this._parts[e]||"":(this._parts[e]=t||null,this.build(!n),this)}}function C(e,t){return function(n,r){return void 0===n?this._parts[e]||"":(null!==n&&(n+="").charAt(0)===t&&(n=n.substring(1)),this._parts[e]=n,this.build(!r),this)}}i.decodePath=b("/","decodePathSegment"),i.decodeUrnPath=b(":","decodeUrnPathSegment"),i.recodePath=b("/","encodePathSegment","decode"),i.recodeUrnPath=b(":","encodeUrnPathSegment","decode"),i.encodeReserved=w("reserved","encode"),i.parse=function(e,t){var n;return t||(t={preventInvalidHostname:i.preventInvalidHostname}),(n=(e=(e=e.replace(i.leading_whitespace_expression,"")).replace(i.ascii_tab_whitespace,"")).indexOf("#"))>-1&&(t.fragment=e.substring(n+1)||null,e=e.substring(0,n)),(n=e.indexOf("?"))>-1&&(t.query=e.substring(n+1)||null,e=e.substring(0,n)),"//"===(e=(e=e.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://")).replace(/^[/\\]{2,}/i,"//")).substring(0,2)?(t.protocol=null,e=e.substring(2),e=i.parseAuthority(e,t)):(n=e.indexOf(":"))>-1&&(t.protocol=e.substring(0,n)||null,t.protocol&&!t.protocol.match(i.protocol_expression)?t.protocol=void 0:"//"===e.substring(n+1,n+3).replace(/\\/g,"/")?(e=e.substring(n+3),e=i.parseAuthority(e,t)):(e=e.substring(n+1),t.urn=!0)),t.path=e,t},i.parseHost=function(e,t){e||(e="");var n,r,o=(e=e.replace(/\\/g,"/")).indexOf("/");if(-1===o&&(o=e.length),"["===e.charAt(0))n=e.indexOf("]"),t.hostname=e.substring(1,n)||null,t.port=e.substring(n+2,o)||null,"/"===t.port&&(t.port=null);else{var a=e.indexOf(":"),s=e.indexOf("/"),l=e.indexOf(":",a+1);-1!==l&&(-1===s||l<s)?(t.hostname=e.substring(0,o)||null,t.port=null):(r=e.substring(0,o).split(":"),t.hostname=r[0]||null,t.port=r[1]||null)}return t.hostname&&"/"!==e.substring(o).charAt(0)&&(o++,e="/"+e),t.preventInvalidHostname&&i.ensureValidHostname(t.hostname,t.protocol),t.port&&i.ensureValidPort(t.port),e.substring(o)||"/"},i.parseAuthority=function(e,t){return e=i.parseUserinfo(e,t),i.parseHost(e,t)},i.parseUserinfo=function(e,t){var n=e;-1!==e.indexOf("\\")&&(e=e.replace(/\\/g,"/"));var r,o=e.indexOf("/"),a=e.lastIndexOf("@",o>-1?o:e.length-1);return a>-1&&(-1===o||a<o)?(r=e.substring(0,a).split(":"),t.username=r[0]?i.decode(r[0]):null,r.shift(),t.password=r[0]?i.decode(r.join(":")):null,e=n.substring(a+1)):(t.username=null,t.password=null),e},i.parseQuery=function(e,t){if(!e)return{};if(!(e=e.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var n,r,o,a={},l=e.split("&"),d=l.length,c=0;c<d;c++)n=l[c].split("="),r=i.decodeQuery(n.shift(),t),o=n.length?i.decodeQuery(n.join("="),t):null,"__proto__"!==r&&(s.call(a,r)?("string"!==typeof a[r]&&null!==a[r]||(a[r]=[a[r]]),a[r].push(o)):a[r]=o);return a},i.build=function(e){var t="",n=!1;return e.protocol&&(t+=e.protocol+":"),e.urn||!t&&!e.hostname||(t+="//",n=!0),t+=i.buildAuthority(e)||"","string"===typeof e.path&&("/"!==e.path.charAt(0)&&n&&(t+="/"),t+=e.path),"string"===typeof e.query&&e.query&&(t+="?"+e.query),"string"===typeof e.fragment&&e.fragment&&(t+="#"+e.fragment),t},i.buildHost=function(e){var t="";return e.hostname?(i.ip6_expression.test(e.hostname)?t+="["+e.hostname+"]":t+=e.hostname,e.port&&(t+=":"+e.port),t):""},i.buildAuthority=function(e){return i.buildUserinfo(e)+i.buildHost(e)},i.buildUserinfo=function(e){var t="";return e.username&&(t+=i.encode(e.username)),e.password&&(t+=":"+i.encode(e.password)),t&&(t+="@"),t},i.buildQuery=function(e,t,n){var r,o,a,l,d="";for(o in e)if("__proto__"!==o&&s.call(e,o))if(c(e[o]))for(r={},a=0,l=e[o].length;a<l;a++)void 0!==e[o][a]&&void 0===r[e[o][a]+""]&&(d+="&"+i.buildQueryParameter(o,e[o][a],n),!0!==t&&(r[e[o][a]+""]=!0));else void 0!==e[o]&&(d+="&"+i.buildQueryParameter(o,e[o],n));return d.substring(1)},i.buildQueryParameter=function(e,t,n){return i.encodeQuery(e,n)+(null!==t?"="+i.encodeQuery(t,n):"")},i.addQuery=function(e,t,n){if("object"===typeof t)for(var r in t)s.call(t,r)&&i.addQuery(e,r,t[r]);else{if("string"!==typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");if(void 0===e[t])return void(e[t]=n);"string"===typeof e[t]&&(e[t]=[e[t]]),c(n)||(n=[n]),e[t]=(e[t]||[]).concat(n)}},i.setQuery=function(e,t,n){if("object"===typeof t)for(var r in t)s.call(t,r)&&i.setQuery(e,r,t[r]);else{if("string"!==typeof t)throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");e[t]=void 0===n?null:n}},i.removeQuery=function(e,t,n){var r,o,a;if(c(t))for(r=0,o=t.length;r<o;r++)e[t[r]]=void 0;else if("RegExp"===d(t))for(a in e)t.test(a)&&(e[a]=void 0);else if("object"===typeof t)for(a in t)s.call(t,a)&&i.removeQuery(e,a,t[a]);else{if("string"!==typeof t)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==n?"RegExp"===d(n)?!c(e[t])&&n.test(e[t])?e[t]=void 0:e[t]=p(e[t],n):e[t]!==String(n)||c(n)&&1!==n.length?c(e[t])&&(e[t]=p(e[t],n)):e[t]=void 0:e[t]=void 0}},i.hasQuery=function(e,t,n,r){switch(d(t)){case"String":break;case"RegExp":for(var o in e)if(s.call(e,o)&&t.test(o)&&(void 0===n||i.hasQuery(e,o,n)))return!0;return!1;case"Object":for(var a in t)if(s.call(t,a)&&!i.hasQuery(e,a,t[a]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(d(n)){case"Undefined":return t in e;case"Boolean":return n===Boolean(c(e[t])?e[t].length:e[t]);
2case"Function":return!!n(e[t],t,e);case"Array":return!!c(e[t])&&(r?u:h)(e[t],n);case"RegExp":return c(e[t])?!!r&&u(e[t],n):Boolean(e[t]&&e[t].match(n));case"Number":n=String(n);case"String":return c(e[t])?!!r&&u(e[t],n):e[t]===n;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},i.joinPaths=function(){for(var e=[],t=[],n=0,r=0;r<arguments.length;r++){var o=new i(arguments[r]);e.push(o);for(var a=o.segment(),s=0;s<a.length;s++)"string"===typeof a[s]&&t.push(a[s]),a[s]&&n++}if(!t.length||!n)return new i("");var l=new i("").segment(t);return""!==e[0].path()&&"/"!==e[0].path().slice(0,1)||l.path("/"+l.path()),l.normalize()},i.commonPath=function(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n++)if(e.charAt(n)!==t.charAt(n)){n--;break}return n<1?e.charAt(0)===t.charAt(0)&&"/"===e.charAt(0)?"/":"":("/"===e.charAt(n)&&"/"===t.charAt(n)||(n=e.substring(0,n).lastIndexOf("/")),e.substring(0,n+1))},i.withinString=function(e,t,n){n||(n={});var r=n.start||i.findUri.start,o=n.end||i.findUri.end,a=n.trim||i.findUri.trim,s=n.parens||i.findUri.parens,l=/[a-z0-9-]=["']?$/i;for(r.lastIndex=0;;){var d=r.exec(e);if(!d)break;var c=d.index;if(n.ignoreHtml){var p=e.slice(Math.max(c-3,0),c);if(p&&l.test(p))continue}for(var u=c+e.slice(c).search(o),h=e.slice(c,u),m=-1;;){var v=s.exec(h);if(!v)break;var g=v.index+v[0].length;m=Math.max(m,g)}if(!((h=m>-1?h.slice(0,m)+h.slice(m).replace(a,""):h.replace(a,"")).length<=d[0].length)&&(!n.ignore||!n.ignore.test(h))){var f=t(h,c,u=c+h.length,e);void 0!==f?(f=String(f),e=e.slice(0,c)+f+e.slice(u),r.lastIndex=c+f.length):r.lastIndex=u}}return r.lastIndex=0,e},i.ensureValidHostname=function(t,n){var r=!!t,o=!1;if(!!n&&(o=u(i.hostProtocols,n)),o&&!r)throw new TypeError("Hostname cannot be empty, if protocol is "+n);if(t&&t.match(i.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(t).match(i.invalid_hostname_characters))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_]')}},i.ensureValidPort=function(e){if(e){var t=Number(e);if(!(/^[0-9]+$/.test(t)&&t>0&&t<65536))throw new TypeError('Port "'+e+'" is not a valid port')}},i.noConflict=function(e){if(e){var t={URI:this.noConflict()};return r.URITemplate&&"function"===typeof r.URITemplate.noConflict&&(t.URITemplate=r.URITemplate.noConflict()),r.IPv6&&"function"===typeof r.IPv6.noConflict&&(t.IPv6=r.IPv6.noConflict()),r.SecondLevelDomains&&"function"===typeof r.SecondLevelDomains.noConflict&&(t.SecondLevelDomains=r.SecondLevelDomains.noConflict()),t}return r.URI===this&&(r.URI=o),this},a.build=function(e){return!0===e?this._deferred_build=!0:(void 0===e||this._deferred_build)&&(this._string=i.build(this._parts),this._deferred_build=!1),this},a.clone=function(){return new i(this)},a.valueOf=a.toString=function(){return this.build(!1)._string},a.protocol=y("protocol"),a.username=y("username"),a.password=y("password"),a.hostname=y("hostname"),a.port=y("port"),a.query=C("query","?"),a.fragment=C("fragment","#"),a.search=function(e,t){var n=this.query(e,t);return"string"===typeof n&&n.length?"?"+n:n},a.hash=function(e,t){var n=this.fragment(e,t);return"string"===typeof n&&n.length?"#"+n:n},a.pathname=function(e,t){if(void 0===e||!0===e){var n=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?i.decodeUrnPath:i.decodePath)(n):n}return this._parts.urn?this._parts.path=e?i.recodeUrnPath(e):"":this._parts.path=e?i.recodePath(e):"/",this.build(!t),this},a.path=a.pathname,a.href=function(e,t){var n;if(void 0===e)return this.toString();this._string="",this._parts=i._parts();var r=e instanceof i,o="object"===typeof e&&(e.hostname||e.path||e.pathname);e.nodeName&&(e=e[i.getDomAttribute(e)]||"",o=!1);if(!r&&o&&void 0!==e.pathname&&(e=e.toString()),"string"===typeof e||e instanceof String)this._parts=i.parse(String(e),this._parts);else{if(!r&&!o)throw new TypeError("invalid input");var a=r?e._parts:e;for(n in a)"query"!==n&&s.call(this._parts,n)&&(this._parts[n]=a[n]);a.query&&this.query(a.query,!1)}return this.build(!t),this},a.is=function(e){var t=!1,r=!1,o=!1,a=!1,s=!1,l=!1,d=!1,c=!this._parts.urn;switch(this._parts.hostname&&(c=!1,r=i.ip4_expression.test(this._parts.hostname),o=i.ip6_expression.test(this._parts.hostname),s=(a=!(t=r||o))&&n&&n.has(this._parts.hostname),l=a&&i.idn_expression.test(this._parts.hostname),d=a&&i.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return c;case"absolute":return!c;case"domain":case"name":return a;case"sld":return s;case"ip":return t;case"ip4":case"ipv4":case"inet4":return r;case"ip6":case"ipv6":case"inet6":return o;case"idn":return l;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return d}return null};var _=a.protocol,j=a.port,k=a.hostname;a.protocol=function(e,t){if(e&&!(e=e.replace(/:(\/\/)?$/,"")).match(i.protocol_expression))throw new TypeError('Protocol "'+e+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return _.call(this,e,t)},a.scheme=a.protocol,a.port=function(e,t){return this._parts.urn?void 0===e?"":this:(void 0!==e&&(0===e&&(e=null),e&&(":"===(e+="").charAt(0)&&(e=e.substring(1)),i.ensureValidPort(e))),j.call(this,e,t))},a.hostname=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e){var n={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==i.parseHost(e,n))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=n.hostname,this._parts.preventInvalidHostname&&i.ensureValidHostname(e,this._parts.protocol)}return k.call(this,e,t)},a.origin=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var n=this.protocol();return this.authority()?(n?n+"://":"")+this.authority():""}var r=i(e);return this.protocol(r.protocol()).authority(r.authority()).build(!t),this},a.host=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?i.buildHost(this._parts):"";if("/"!==i.parseHost(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},a.authority=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?i.buildAuthority(this._parts):"";if("/"!==i.parseAuthority(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},a.userinfo=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var n=i.buildUserinfo(this._parts);return n?n.substring(0,n.length-1):n}return"@"!==e[e.length-1]&&(e+="@"),i.parseUserinfo(e,this._parts),this.build(!t),this},a.resource=function(e,t){var n;return void 0===e?this.path()+this.search()+this.hash():(n=i.parse(e),this._parts.path=n.path,this._parts.query=n.query,this._parts.fragment=n.fragment,this.build(!t),this)},a.subdomain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,n)||""}var r=this._parts.hostname.length-this.domain().length,o=this._parts.hostname.substring(0,r),a=new RegExp("^"+l(o));if(e&&"."!==e.charAt(e.length-1)&&(e+="."),-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");return e&&i.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(a,e),this.build(!t),this},a.domain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"===typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.match(/\./g);if(n&&n.length<2)return this._parts.hostname;var r=this._parts.hostname.length-this.tld(t).length-1;return r=this._parts.hostname.lastIndexOf(".",r-1)+1,this._parts.hostname.substring(r)||""}if(!e)throw new TypeError("cannot set domain empty");if(-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(i.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=e;else{var o=new RegExp(l(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(o,e)}return this.build(!t),this},a.tld=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"===typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.lastIndexOf("."),o=this._parts.hostname.substring(r+1);return!0!==t&&n&&n.list[o.toLowerCase()]&&n.get(this._parts.hostname)||o}var i;if(!e)throw new TypeError("cannot set TLD empty");if(e.match(/[^a-zA-Z0-9-]/)){if(!n||!n.is(e))throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');
2i=new RegExp(l(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(i,e)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");i=new RegExp(l(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(i,e)}return this.build(!t),this},a.directory=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var n=this._parts.path.length-this.filename().length-1,r=this._parts.path.substring(0,n)||(this._parts.hostname?"/":"");return e?i.decodePath(r):r}var o=this._parts.path.length-this.filename().length,a=this._parts.path.substring(0,o),s=new RegExp("^"+l(a));return this.is("relative")||(e||(e="/"),"/"!==e.charAt(0)&&(e="/"+e)),e&&"/"!==e.charAt(e.length-1)&&(e+="/"),e=i.recodePath(e),this._parts.path=this._parts.path.replace(s,e),this.build(!t),this},a.filename=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("string"!==typeof e){if(!this._parts.path||"/"===this._parts.path)return"";var n=this._parts.path.lastIndexOf("/"),r=this._parts.path.substring(n+1);return e?i.decodePathSegment(r):r}var o=!1;"/"===e.charAt(0)&&(e=e.substring(1)),e.match(/\.?\//)&&(o=!0);var a=new RegExp(l(this.filename())+"$");return e=i.recodePath(e),this._parts.path=this._parts.path.replace(a,e),o?this.normalizePath(t):this.build(!t),this},a.suffix=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path||"/"===this._parts.path)return"";var n,r,o=this.filename(),a=o.lastIndexOf(".");return-1===a?"":(n=o.substring(a+1),r=/^[a-z0-9%]+$/i.test(n)?n:"",e?i.decodePathSegment(r):r)}"."===e.charAt(0)&&(e=e.substring(1));var s,d=this.suffix();if(d)s=e?new RegExp(l(d)+"$"):new RegExp(l("."+d)+"$");else{if(!e)return this;this._parts.path+="."+i.recodePath(e)}return s&&(e=i.recodePath(e),this._parts.path=this._parts.path.replace(s,e)),this.build(!t),this},a.segment=function(e,t,n){var r=this._parts.urn?":":"/",o=this.path(),i="/"===o.substring(0,1),a=o.split(r);if(void 0!==e&&"number"!==typeof e&&(n=t,t=e,e=void 0),void 0!==e&&"number"!==typeof e)throw new Error('Bad segment "'+e+'", must be 0-based integer');if(i&&a.shift(),e<0&&(e=Math.max(a.length+e,0)),void 0===t)return void 0===e?a:a[e];if(null===e||void 0===a[e])if(c(t)){a=[];for(var s=0,l=t.length;s<l;s++)(t[s].length||a.length&&a[a.length-1].length)&&(a.length&&!a[a.length-1].length&&a.pop(),a.push(m(t[s])))}else(t||"string"===typeof t)&&(t=m(t),""===a[a.length-1]?a[a.length-1]=t:a.push(t));else t?a[e]=m(t):a.splice(e,1);return i&&a.unshift(""),this.path(a.join(r),n)},a.segmentCoded=function(e,t,n){var r,o,a;if("number"!==typeof e&&(n=t,t=e,e=void 0),void 0===t){if(c(r=this.segment(e,t,n)))for(o=0,a=r.length;o<a;o++)r[o]=i.decode(r[o]);else r=void 0!==r?i.decode(r):void 0;return r}if(c(t))for(o=0,a=t.length;o<a;o++)t[o]=i.encode(t[o]);else t="string"===typeof t||t instanceof String?i.encode(t):t;return this.segment(e,t,n)};var T=a.query;return a.query=function(e,t){if(!0===e)return i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"===typeof e){var n=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace),r=e.call(this,n);return this._parts.query=i.buildQuery(r||n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this}return void 0!==e&&"string"!==typeof e?(this._parts.query=i.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this):T.call(this,e,t)},a.setQuery=function(e,t,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"===typeof e||e instanceof String)r[e]=void 0!==t?t:null;else{if("object"!==typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var o in e)s.call(e,o)&&(r[o]=e[o])}return this._parts.query=i.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!==typeof e&&(n=t),this.build(!n),this},a.addQuery=function(e,t,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.addQuery(r,e,void 0===t?null:t),this._parts.query=i.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!==typeof e&&(n=t),this.build(!n),this},a.removeQuery=function(e,t,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.removeQuery(r,e,t),this._parts.query=i.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!==typeof e&&(n=t),this.build(!n),this},a.hasQuery=function(e,t,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.hasQuery(r,e,t,n)},a.setSearch=a.setQuery,a.addSearch=a.addQuery,a.removeSearch=a.removeQuery,a.hasSearch=a.hasQuery,a.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},a.normalizeProtocol=function(e){return"string"===typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!e)),this},a.normalizeHostname=function(n){return this._parts.hostname&&(this.is("IDN")&&e?this._parts.hostname=e.toASCII(this._parts.hostname):this.is("IPv6")&&t&&(this._parts.hostname=t.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!n)),this},a.normalizePort=function(e){return"string"===typeof this._parts.protocol&&this._parts.port===i.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!e)),this},a.normalizePath=function(e){var t,n=this._parts.path;if(!n)return this;if(this._parts.urn)return this._parts.path=i.recodeUrnPath(this._parts.path),this.build(!e),this;if("/"===this._parts.path)return this;var r,o,a="";for("/"!==(n=i.recodePath(n)).charAt(0)&&(t=!0,n="/"+n),"/.."!==n.slice(-3)&&"/."!==n.slice(-2)||(n+="/"),n=n.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),t&&(a=n.substring(1).match(/^(\.\.\/)+/)||"")&&(a=a[0]);-1!==(r=n.search(/\/\.\.(\/|$)/));)0!==r?(-1===(o=n.substring(0,r).lastIndexOf("/"))&&(o=r),n=n.substring(0,o)+n.substring(r+3)):n=n.substring(3);return t&&this.is("relative")&&(n=a+n.substring(1)),this._parts.path=n,this.build(!e),this},a.normalizePathname=a.normalizePath,a.normalizeQuery=function(e){return"string"===typeof this._parts.query&&(this._parts.query.length?this.query(i.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!e)),this},a.normalizeFragment=function(e){return this._parts.fragment||(this._parts.fragment=null,this.build(!e)),this},a.normalizeSearch=a.normalizeQuery,a.normalizeHash=a.normalizeFragment,a.iso8859=function(){var e=i.encode,t=i.decode;i.encode=escape,i.decode=decodeURIComponent;try{this.normalize()}finally{i.encode=e,i.decode=t}return this},a.unicode=function(){var e=i.encode,t=i.decode;i.encode=g,i.decode=unescape;try{this.normalize()}finally{i.encode=e,i.decode=t}return this},a.readable=function(){var t=this.clone();t.username("").password("").normalize();var n="";if(t._parts.protocol&&(n+=t._parts.protocol+"://"),t._parts.hostname&&(t.is("punycode")&&e?(n+=e.toUnicode(t._parts.hostname),t._parts.port&&(n+=":"+t._parts.port)):n+=t.host()),t._parts.hostname&&t._parts.path&&"/"!==t._parts.path.
2charAt(0)&&(n+="/"),n+=t.path(!0),t._parts.query){for(var r="",o=0,a=t._parts.query.split("&"),s=a.length;o<s;o++){var l=(a[o]||"").split("=");r+="&"+i.decodeQuery(l[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),void 0!==l[1]&&(r+="="+i.decodeQuery(l[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}n+="?"+r.substring(1)}return n+=i.decodeQuery(t.hash(),!0)},a.absoluteTo=function(e){var t,n,r,o=this.clone(),a=["protocol","username","password","hostname","port"];if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e instanceof i||(e=new i(e)),o._parts.protocol)return o;if(o._parts.protocol=e._parts.protocol,this._parts.hostname)return o;for(n=0;r=a[n];n++)o._parts[r]=e._parts[r];return o._parts.path?(".."===o._parts.path.substring(-2)&&(o._parts.path+="/"),"/"!==o.path().charAt(0)&&(t=(t=e.directory())||(0===e.path().indexOf("/")?"/":""),o._parts.path=(t?t+"/":"")+o._parts.path,o.normalizePath())):(o._parts.path=e._parts.path,o._parts.query||(o._parts.query=e._parts.query)),o.build(),o},a.relativeTo=function(e){var t,n,r,o,a,s=this.clone().normalize();if(s._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e=new i(e).normalize(),t=s._parts,n=e._parts,o=s.path(),a=e.path(),"/"!==o.charAt(0))throw new Error("URI is already relative");if("/"!==a.charAt(0))throw new Error("Cannot calculate a URI relative to another relative URI");if(t.protocol===n.protocol&&(t.protocol=null),t.username!==n.username||t.password!==n.password)return s.build();if(null!==t.protocol||null!==t.username||null!==t.password)return s.build();if(t.hostname!==n.hostname||t.port!==n.port)return s.build();if(t.hostname=null,t.port=null,o===a)return t.path="",s.build();if(!(r=i.commonPath(o,a)))return s.build();var l=n.path.substring(r.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return t.path=l+t.path.substring(r.length)||"./",s.build()},a.equals=function(e){var t,n,r,o,a,l=this.clone(),d=new i(e),p={};if(l.normalize(),d.normalize(),l.toString()===d.toString())return!0;if(r=l.query(),o=d.query(),l.query(""),d.query(""),l.toString()!==d.toString())return!1;if(r.length!==o.length)return!1;for(a in t=i.parseQuery(r,this._parts.escapeQuerySpace),n=i.parseQuery(o,this._parts.escapeQuerySpace),t)if(s.call(t,a)){if(c(t[a])){if(!h(t[a],n[a]))return!1}else if(t[a]!==n[a])return!1;p[a]=!0}for(a in n)if(s.call(n,a)&&!p[a])return!1;return!0},a.preventInvalidHostname=function(e){return this._parts.preventInvalidHostname=!!e,this},a.duplicateQueryParameters=function(e){return this._parts.duplicateQueryParameters=!!e,this},a.escapeQuerySpace=function(e){return this._parts.escapeQuerySpace=!!e,this},i}))},44453:function(e,t,n){var r;e=n.nmd(e),function(o){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof n.g&&n.g;i.global!==i&&i.window!==i&&i.self;var a,s=2147483647,l=36,d=1,c=26,p=38,u=700,h=72,m=128,v="-",g=/^xn--/,f=/[^\x20-\x7E]/,x=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},b=l-d,y=Math.floor,C=String.fromCharCode;function _(e){throw new RangeError(w[e])}function j(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function k(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+j((e=e.replace(x,".")).split("."),t).join(".")}function T(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function I(e){return j(e,(function(e){var t="";return e>65535&&(t+=C((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=C(e)})).join("")}function S(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function P(e,t,n){var r=0;for(e=n?y(e/u):e>>1,e+=y(e/t);e>b*c>>1;r+=l)e=y(e/b);return y(r+(b+1)*e/(e+p))}function N(e){var t,n,r,o,i,a,p,u,g,f,x,w=[],b=e.length,C=0,j=m,k=h;for((n=e.lastIndexOf(v))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&_("not-basic"),w.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<b;){for(i=C,a=1,p=l;o>=b&&_("invalid-input"),((u=(x=e.charCodeAt(o++))-48<10?x-22:x-65<26?x-65:x-97<26?x-97:l)>=l||u>y((s-C)/a))&&_("overflow"),C+=u*a,!(u<(g=p<=k?d:p>=k+c?c:p-k));p+=l)a>y(s/(f=l-g))&&_("overflow"),a*=f;
2k=P(C-i,t=w.length+1,0==i),y(C/t)>s-j&&_("overflow"),j+=y(C/t),C%=t,w.splice(C++,0,j)}return I(w)}function R(e){var t,n,r,o,i,a,p,u,g,f,x,w,b,j,k,I=[];for(w=(e=T(e)).length,t=m,n=0,i=h,a=0;a<w;++a)(x=e[a])<128&&I.push(C(x));for(r=o=I.length,o&&I.push(v);r<w;){for(p=s,a=0;a<w;++a)(x=e[a])>=t&&x<p&&(p=x);for(p-t>y((s-n)/(b=r+1))&&_("overflow"),n+=(p-t)*b,t=p,a=0;a<w;++a)if((x=e[a])<t&&++n>s&&_("overflow"),x==t){for(u=n,g=l;!(u<(f=g<=i?d:g>=i+c?c:g-i));g+=l)k=u-f,j=l-f,I.push(C(S(f+k%j,0))),u=y(k/j);I.push(C(S(u,0))),i=P(n,b,r==o),n=0,++r}++n,++t}return I.join("")}a={version:"1.3.2",ucs2:{decode:T,encode:I},decode:N,encode:R,toASCII:function(e){return k(e,(function(e){return f.test(e)?"xn--"+R(e):e}))},toUnicode:function(e){return k(e,(function(e){return g.test(e)?N(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},7968:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(56722),o=n(26724),i=n(95128),a=n(94894),s=r.Z.isFinite,l=Math.min;const d=function(e){var t=Math[e];return function(e,n){if(e=(0,i.Z)(e),(n=null==n?0:l((0,o.Z)(n),292))&&s(e)){var r=((0,a.Z)(e)+"e").split("e"),d=t(r[0]+"e"+(+r[1]+n));return+((r=((0,a.Z)(d)+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}("round")},29959:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});const r=function(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n};var o=n(24585);const i=function(e){return e&&e.length?r(e,o.Z):0}},42346:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__addDisposableResource:()=>A,__assign:()=>i,__asyncDelegator:()=>k,__asyncGenerator:()=>j,__asyncValues:()=>T,__await:()=>_,__awaiter:()=>m,__classPrivateFieldGet:()=>R,__classPrivateFieldIn:()=>Z,__classPrivateFieldSet:()=>L,__createBinding:()=>g,__decorate:()=>s,__disposeResources:()=>E,__esDecorate:()=>d,__exportStar:()=>f,__extends:()=>o,__generator:()=>v,__importDefault:()=>N,__importStar:()=>
2P,__makeTemplateObject:()=>I,__metadata:()=>h,__param:()=>l,__propKey:()=>p,__read:()=>w,__rest:()=>a,__runInitializers:()=>c,__setFunctionName:()=>u,__spread:()=>b,__spreadArray:()=>C,__spreadArrays:()=>y,__values:()=>x,default:()=>z});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function s(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function d(e,t,n,r,o,i){function a(e){if(void 0!==e&&"function"!==typeof e)throw new TypeError("Function expected");return e}for(var s,l=r.kind,d="getter"===l?"get":"setter"===l?"set":"value",c=!t&&e?r.static?e:e.prototype:null,p=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),u=!1,h=n.length-1;h>=0;h--){var m={};for(var v in r)m[v]="access"===v?{}:r[v];for(var v in r.access)m.access[v]=r.access[v];m.addInitializer=function(e){if(u)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var g=(0,n[h])("accessor"===l?{get:p.get,set:p.set}:p[d],m);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!==typeof g)throw new TypeError("Object expected");(s=a(g.get))&&(p.get=s),(s=a(g.set))&&(p.set=s),(s=a(g.init))&&o.unshift(s)}else(s=a(g))&&("field"===l?o.unshift(s):p[d]=s)}c&&Object.defineProperty(c,r.name,p),u=!0}function c(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0}function p(e){return"symbol"===typeof e?e:"".concat(e)}function u(e,t,n){return"symbol"===typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function h(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function m(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function v(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}var g=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);
2o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function f(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||g(t,e,n)}function x(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function w(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(w(arguments[t]));return e}function y(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function C(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function _(e){return this instanceof _?(this.v=e,this):new _(e)}function j(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof _?Promise.resolve(n.value.v).then(l,d):c(i[0][2],n)}catch(r){c(i[0][3],r)}var n}function l(e){s("next",e)}function d(e){s("throw",e)}function c(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function k(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:_(e[r](t)),done:!1}:o?o(t):t}:o}}function T(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=x(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function I(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var S=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function P(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&g(t,e,n);return S(t,e),t}function N(e){return e&&e.__esModule?e:{default:e}}function R(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function L(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!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"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}function Z(e,t){if(null===t||"object"!==typeof t&&"function"!==typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof e?t===e:e.has(t)}function A(e,t,n){if(null!==t&&void 0!==t){if("object"!==typeof t&&"function"!==typeof t)throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if("function"!==typeof r)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var B="function"===typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function E(e){function t(t){e.error=e.hasError?new B(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var r=e.stack.pop();try{var o=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(o).then(n,(function(e){return t(e),n()}))}catch(i){t(i)}}if(e.hasError)throw e.error}()}const z={__extends:o,__assign:i,__rest:a,__decorate:s,__param:l,__metadata:h,__awaiter:m,__generator:v,__createBinding:g,__exportStar:f,__values:x,__read:w,__spread:b,__spreadArrays:y,__spreadArray:C,__await:_,__asyncGenerator:j,__asyncDelegator:k,__asyncValues:T,__makeTemplateOb
2ject:I,__importStar:P,__importDefault:N,__classPrivateFieldGet:R,__classPrivateFieldSet:L,__classPrivateFieldIn:Z,__addDisposableResource:A,__disposeResources:E}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.