function e(){import.meta.url,import("_").catch((()=>1))}import"./modulepreload-polyfill.llesylov4abee2a4.js";/* empty css */import{d as t,n as i,u as n,e as o,w as a,j as s,o as r,A as d,a as c,b as l,P as p,m as _,c as m,f as u,B as h,g,L as f,h as y,i as b,s as v,K as x,k,l as A,p as I,q as T,r as C,V as S,t as E,v as j,x as R,y as B,z as N,C as P,D,E as q,F as L,G as O,H as z,I as W,J as M,M as $,N as H}from"./index.llesylov1c4820d9.js";import{W as U,m as F,M as J,B as V,C as X,R as G,i as K,a as Q,g as Y,b as Z,s as ee,c as te,d as ie,f as ne,P as oe,e as ae,h as se,w as re,A as de,p as ce}from"./wxwork_hidden.llesylov9abd7fc4.js";import{u as le,a as pe,$ as _e,U as me,L as ue,j as we,b as he,g as ge}from"./comm_utils.llesylov9d322289.js";import{A as fe}from"./appmsgext.llesylova7797e01.js";import{D as ye,m as be,J as ve}from"./event.llesylov7737af2f.js";import{C as xe,T as ke}from"./tmpl.llesylovc4b48556.js";import{w as Ae}from"./comm_report.llesylov4970f718.js";import{c as Ie,P as Te,r as Ce,a as Se,V as Ee,q as je,k as Re}from"./set_custom_ele.llesylovcfb18bd9.js";import{p as Be,A as Ne,I as Pe,V as De}from"./page_utils.llesylov17cc2253.js";import{O as qe}from"./outer_link.llesylov61fbd291.js";import{D as Le,N as Oe,I as ze}from"./dom.llesylov63712c3f.js";import{R as We}from"./review_image.llesylov8c6ee672.js";import{b as Me,s as $e}from"./set_article_read.llesylov10f44614.js";import{B as He,l as Ue,d as Fe}from"./background_color.llesylov805d61a3.js";import{n as Je}from"./_plugin-vue2_normalizer.llesylovfc2fb13f.js";import{R as Ve,F as Xe,V as Ge,a as Ke}from"./intersection-observer.llesylov0a59e8c4.js";import{L as Qe,D as Ye,a as Ze}from"./like_and_share.llesylov4cfb4706.js";import{V as et,T as tt}from"./controller.llesylov24020c8f.js";import{h as it}from"./moment.llesylov07db360f.js";import"./modal.llesylov18091a90.js";import"./range_close.llesylovb7410c76.js";import"./loadscript.llesylovad20b648.js";import"./_commonjsHelpers.llesylov02d3be64.js";const nt=document.getElementById("js_tags_preview_toast");let ot=null;const at=(e,t)=>{Ae.report(20158,{bizuin:window.biz,msgid:1*window.mid,itemidx:1*window.idx,Scene:1*window.source,Subscene:1*window.subscene,SessionId:window.sessionid+"",EnterId:1*window.enterid,Actiontype:1*e,PublicTagList:t+""})};let st=!1;const rt={init(e){if(1===window.reprint_style||2===window.reprint_style||3===window.reprint_style||st||1*e.dataset.len==0)return;st=!0;const t=e=>{if(window.is_temp_url)nt&&(nt.style.display="",ot&&clearTimeout(ot),ot=setTimeout((()=>{nt.style.display="none",ot=null}),3e3));else{const t={};let i=e.url;if(e.tag_id)at(2,e.tag_id),t.scene=window.source,t.subscene=window.subscene,t.sessionid=window.sessionid,t.enterid=window.enterid;else{let t=0;window.isPayTopic&&(t=0===window.isPaid?1:2),Ie({eventType:2,albumId:e.album_id,albumType:0,tagSrc:e.tag_source,canPaid:window.isPayTopic,price:window.isPayTopic?window.payTopicPrice:0,ifPaid:t})}Be.goUrl(i,Object.assign({},t,{scene:173,from_msgid:window.mid,from_itemidx:window.idx,count:3,nolastread:1}))}};if(xe.hasClass(e,"js_single")){const i=e.querySelector(".js_tag").dataset;ye.on(e,"click",(()=>t(i)))}else ye.on(e,"click",(i=>{let n=i.target;n&&n!==e&&!xe.hasClass(n,"js_tag")&&(n=n.parentNode),n&&xe.hasClass(n,"js_tag")&&t(n.dataset)}));const i=t=>{const n=le.getInnerHeight()+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop);if(e.offsetTop <#=leftAnswerCnt#> <#=content#> \n <#=leftReplyTips#>\n <#=content#>
/g,"\n"),idx>1&&document.getElementById("js_content")&&ct<1446652800&&(Hn=document.getElementById("js_content").innerHTML.replace(/<\/?[^>]*\/?>/g,"").htmlDecode().replace(/^(\s*)|(\s*)$/g,"").substr(0,54)),window.isPayTopic&&(Hn="收录于付费合集"+window.payTopicTitle||""),Wn=Wn.compressCDNImgSize(),Mn=Mn.compressCDNImgSize(),malicious_title_reason_id&&(On=J.maliciousTitleMap[malicious_content_type][malicious_title_reason_id]||On,Hn=J.maliciousDescMap[malicious_content_type][malicious_title_reason_id]||Hn,1!=malicious_content_type&&(Wn="https://mmbiz.qlogo.cn/mmbiz_png/cVgP5bCElFiayFgbgEB9iaDt7hLicfz9RrXGM0LpaQ0TUic2gP7lbbqU3jCD8ibonicgIa3p99yjx1f1P26HChraeRUg/0?wx_fmt=png")),"1"==is_limit_user&&ve.call("hideOptionMenu"),window.is_temp_url&&ve.invoke("hideMenuItems",{menuList:["menuItem:share:timeline","menuItem:share:qq","menuItem:share:weiboApp","menuItem:share:facebook","menuItem:share:qzone","menuitem:share:weibo","menuItem:share:WeiboApp","menuItem:share:QZone","menuitem:facebook","menuItem:copyUrl","menuItem:share:email","menuitem:copy_url","menuitem:share:haokan"]},(function(e){}));let Jn="https://res.wx.qq.com/op_res/Fwh9olR917lxUMxpJVM5sCCyrQOJSm68IEt-HfL7vpc5-_etzmyuLg1kPdU6RNRX";function Vn(){if(window.is_wash){let e=Date.now();return{img_url:Jn,img_width:"640",img_height:"640",link:Ln($n,2,e),desc:"",title:"Article constitutes content laundering. You can read the content of the original author below."}}{let e=Wn;be.isioses||(e=Fn(Wn,"2"));let t=Date.now(),i={img_url:e,img_width:"640",img_height:"640",link:$n,desc:Hn,title:On};if(window.customShareInfo&&"object"==typeof window.customShareInfo&&Object.assign(i,window.customShareInfo),"string"==typeof i.forbid_msg){let e=i.forbid_msg.replace("#op#","Share");return void(window.weui||window).alert(e)}return i.link=Ln(i.link,2,t),i}}function Xn(){const e=function(){if(window.is_wash){let e=Date.now();return{img_url:Jn,img_width:"640",img_height:"640",link:Ln($n,type,e),desc:"You can read the content of the original author below.",title:"Article constitutes content laundering."}}{let e=1,t=Fn(Wn,"1");1==malicious_content_type&&(t="https://mmbiz.qlogo.cn/mmbiz_png/cVgP5bCElFiayFgbgEB9iaDt7hLicfz9RrXGM0LpaQ0TUic2gP7lbbqU3jCD8ibonicgIa3p99yjx1f1P26HChraeRUg/0?wx_fmt=png");let i=Date.now(),n={appid:zn,img_url:t,img_width:"640",img_height:"640",link:$n,desc:Hn,title:On};if(window.customShareInfo&&"object"==typeof window.customShareInfo&&Object.assign(n,window.customShareInfo),"string"==typeof n.forbid_msg){let e=n.forbid_msg.replace("#op#","Share");return void(window.weui||window).alert(e)}return n.link=Ln(n.link,e,i),n}}();e&&ve.invoke("shareCustomContent",{friend:e,timeline:Vn()},(t=>{console.info("shareCustomContent res",t),v.commit("mp-related-article/setSources","share"),e.vid&&(qn=Object.assign(qn,{vid:e.vid,share_type:2}),x.reportKanData(qn))}))}ve.on("menu:share:appmessage",(function(e){if(window.is_wash){let t=Date.now();ve.invoke("sendAppMessage",{img_url:Jn,img_width:"640",img_height:"640",link:Ln($n,type,t),desc:"You can read the content of the original author below.",title:"Article constitutes content laundering."},(function(i){Un($n,fakeid,type,t,e.shareScene)}))}else{let t=1,i=Fn(Wn,"1");if(e&&"favorite"==e.scene&&(t=24,i=Fn(Wn,"4"),v.commit("mp-related-article/setSources",["favorite"]),be.isWindowsWechat&&"207"===me.getQuery("subscene"))){const e=be.getWindows();if(e&&parseInt(e,16)>=parseInt("0x63090500",16)&&parseInt(e,16)<=parseInt("0x630905FF",16))return void ve.invoke("handleMPPageAction",{action:"doFavorite"},(function(e){e.err_msg&&e.err_msg.indexOf("ok")>0?weui.toast("已收藏"):weui.toast("收藏失败")}))}1==malicious_content_type&&(i="https://mmbiz.qlogo.cn/mmbiz_png/cVgP5bCElFiayFgbgEB9iaDt7hLicfz9RrXGM0LpaQ0TUic2gP7lbbqU3jCD8ibonicgIa3p99yjx1f1P26HChraeRUg/0?wx_fmt=png");let n=Date.now(),o={appid:zn,img_url:i,img_width:"640",img_height:"640",link:$n,desc:Hn,title:On};if(window.customShareInfo&&"object"==typeof window.customShareInfo&&Object.assign(o,window.customShareInfo),"string"==typeof o.forbid_msg){let t=o.forbid_msg.replace("#op#","favorite"===e.scene?"Favorite":"Share");return void(window.weui||window).alert(t)}o.link=Ln(o.link,t,n),ve.invoke("sendAppMessage",o,(function(i){Un($n,fakeid,t,n,e.shareScene),v.commit("mp-related-article/setSources",[24===t?"favorite":"share"]),o.vid&&(qn=Object.assign(qn,{vid:o.vid,share_type:2}),x.reportKanData(qn))}))}})),ve.on("menu:share:timeline",(function(e){if(window.is_wash){let t=Date.now();ve.invoke("shareTimeline",{img_url:Jn,img_width:"640",img_height:"640",link:Ln($n,2,t),desc:"",title:"Article constitutes content laundering. You can read the content of the original author below."},(function(i){Un($n,fakeid,2,t,e.shareScene)}))}else{let t=Wn;be.isioses||(t=Fn(Wn,"2"));let i=Date.now(),n={img_url:t,img_width:"640",img_height:"640",link:$n,desc:Hn,title:On};if(window.customShareInfo&&"object"==typeof window.customShareInfo&&Object.assign(n,window.customShareInfo),"string"==typeof n.forbid_msg){let e=n.forbid_msg.replace("#op#","Share");return void(window.weui||window).alert(e)}n.link=Ln(n.link,2,i),ve.invoke("shareTimeline",n,(function(t){Un($n,fakeid,2,i,e.shareScene),v.commit("mp-related-article/setSources",["share"]),n.vid&&(qn=Object.assign(qn,{vid:n.vid,share_type:1}),x.reportKanData(qn))}))}})),ve.on("menu:share:weiboApp",(function(e){let t=Date.now();ve.invoke("shareWeiboApp",{img_url:Wn,link:Ln($n,3,t),title:On},(function(e){Un($n,fakeid,3,t)}))})),ve.on("menu:share:facebook",(function(e){let t=Date.now();Un($n,fakeid,7,t),ve.invoke("shareFB",{img_url:Mn,img_width:"640",img_height:"640",link:Ln($n,43,t),desc:Hn,title:On},(function(e){}))})),ve.on("menu:share:QZone",(function(e){let t=Fn(Wn,"6"),i=Date.now();Un($n,fakeid,5,i),ve.invoke("shareQZone",{img_url:t,img_width:"640",img_height:"640",link:Ln($n,22,i),desc:Hn,title:On},(function(e){}))})),ve.on("menu:share:qq",(function(e){let t=Fn(Wn,"7"),i=Date.now();Un($n,fakeid,5,i),ve.invoke("shareQQ",{img_url:t,img_width:"640",img_height:"640",link:Ln($n,23,i),desc:Hn,title:On},(function(e){}))})),ve.on("menu:share:email",(function(e){let t=Date.now();Un($n,fakeid,5,t),ve.invoke("sendEmail",{content:Ln($n,5,t),title:On},(function(e){}))})),ve.on("sys:record",(function(e){ve.invoke("recordHistory",{link:$n,title:On,source:nickname,img_url:Wn},(function(e){}))}));const Gn=Je({components:{[dn.name]:dn,[Ve.name]:Ve,[In.name]:In,[Qe.name]:Qe,[k.name]:k,[Rn.name]:Rn},computed:{..._(["cgiData"]),..._({statStyle:e=>{var t;return 3===(null==(t=e.extRes.appmsgstat)?void 0:t.style)?1:0}}),reprintStyle(){return this.cgiData.reprint_style},showReward(){return 0===this.cgiData.is_pay_subscribe||1===this.cgiData.isPaid},isPaySubscribe(){return 1*this.cgiData.is_pay_subscribe==1}},methods:{onShare(){Xn()}}},(function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"content_bottom_area"}},[e.reprintStyle?e._e():[t("mp-sponsor-ad"),e.showReward?t("mp-reward",{attrs:{"show-author":""}}):e._e(),e.isPaySubscribe?t("mp-pay-read"):e._e()],t("mp-keep-read"),t("div",{staticClass:"rich_media_tool_area",style:e.statStyle?"padding-bottom:20px":""},[t("mp-like-read-area",{attrs:{"stat-style":e.statStyle},on:{share:e.onShare}})],1),e.statStyle?e._e():t("mp-like-profile")],2)}),[],!1,null,null,null,null).exports,Kn=window.Vue;const Qn=(Yn=["157","169","262"],1===window.show_related_article||Yn.indexOf(window.source)>-1||Yn.indexOf(window.subscene)>-1);var Yn;const Zn=le.getInnerHeight(),eo=100*Math.random()<1,to=_e.os.ipads||!be.isioses&&!be.isandroids;let io=0;be.isioses?io=1:be.isandroids&&(io=2);const no=[{name:"内容质量低",value:1},{name:"不看此公众号",value:2}],oo=(()=>{let e=!1;const t=[],i=n=>{e=!0,pe({url:"/mp/relatedarticle?action=expose",type:"POST",dataType:"json",data:n,complete(){t.length?i(t.shift()):e=!1}})};return n=>{e?t.push(n):i(n)}})(),ao=window.matchMedia("(prefers-color-scheme: dark)"),so=(e="")=>{if(!e)return"";const t=parseInt(`0x${e.slice(1,3)}`,16);return`rgba(${parseInt(`0x${e.slice(3,5)}`,16)}, ${parseInt(`0x${e.slice(5,7)}`,16)}, ${parseInt(`0x${e.slice(7,9)}`,16)}, ${t/255})`};const ro=Je({name:"mp-related-article",data(){const e=this.$store.state.cgiData;return{list:[],reason:[],reportInfo:"",showRecReason:!1,showList:!be.isMpapp&&1*e.item_show_type==0&&""!==e.item_show_type,unbindTransition:!1,lineHeightPx:0,listStyle:{overflow:"hidden",opacity:1,height:0,margin:0},feedbackIdx:-1,feedbackPos:"bottom",feedbackReasonTacitly:{},feedbackReasonKeyword:{},darkModeMatches:ao.matches}},computed:{..._(["extRes"]),..._("mp-related-article",["sources"]),...u("mp-like-and-share",["hasExtAppmsgStat"]),commonReportData(){const e=this.$store.state.cgiData;let t=parseInt(e.enterid,10)||0;return!be.isWp&&-1==navigator.userAgent.indexOf("MicroMessenger")&&document.body.offsetWidth>=1024&&(t=1024,we.setSum(223326,18,1)),{Bizuin_from:e.biz,Msgid_from:parseInt(e.mid,10)||0,Itemidx_from:parseInt(e.idx,10)||0,Scene:parseInt(e.source,10)||0,Subscene:e.related_article_scene||parseInt(e.source,10)||0,Sessionid:e.sessionid||"",Enterid:t,ItemShowType:parseInt(e.item_show_type,10)||0}},type(){return this.sources[0]},isPageInit(){return this.sources[1]},isFromPay(){return"pay"===this.type?1:0},loadType(){switch(this.type){case"default":default:return 0;case"favorite":return 1;case"share":return 2;case"praise":return 3;case"like":return 4;case"pay":return 5;case"reward":return 6;case"favorited":return 7;case"shared":return 8;case"praised":return 9;case"liked":return 10;case"paid":return 11;case"rewarded":return 12;case"recommend":return 13;case"force":return 14;case"subscribe":return 15}},hasFeedbackReason(){return!!(Object.keys(this.feedbackReasonTacitly).length+Object.keys(this.feedbackReasonKeyword).length)}},watch:{sources(){this.sourcesChange()}},created(){this.hasReported29433=!1,this.exposeHeight=0},mounted(){if(eo&&window.WX_BJ_REPORT){const e=this.$store.state.cgiData;window.WX_BJ_REPORT.BadJs.report("relatedArticleFlag","value:"+e.relatedArticleFlag,{mid:"mmbizwap:related_monitor",uin:e.user_uin})}ao.addListener((({matches:e})=>{this.darkModeMatches=!!e})),this.sourcesChange()},beforeDestroy(){this.destroy()},methods:{loadData(){const e=this.$store.state.cgiData;this.isPageInit&&(this.listStyle.transition="none"),this.__placeholderTimer=setTimeout((()=>this.showCard(3)),500),ye.on(window,"scroll",this.exposeHandler),pe({url:`/mp/relatedarticle?action=getlist&article_url=${window.encodeURIComponent(locations.href)}&__biz=${e.biz}&mid=${e.mid}&idx=${e.idx}&has_related_article_info=${e.hasRelatedArticleInfo}&is_pay=${this.isFromPay}&is_from_recommand=${Qn?1:0}&scene=${this.commonReportData.Scene}&subscene=${parseInt(e.subscene,10)||0}&is_open_comment=${this.extRes.comment_enabled}${"subscribe"===this.type?"&is_from_subscribe=1":""}`,type:"GET",dataType:"json",success:t=>{if(t&&t.base_resp&&1*t.base_resp.ret==0&&t.list&&t.list.length){const i=t.list.map((e=>(Qn&&(e.url=e.url.replace(/#wechat_redirect/,`&show_related_article=1&related_article_scene=${this.commonReportData.Subscene}$&`)),e.like_num_wording=e.old_like_num?Be.formatReadNum(e.old_like_num):"",e.read_num_wording=e.read_num?Be.formatReadNum(e.read_num):"",e.pay_cnt_wording=e.pay_cnt?Be.formatReadNum(e.pay_cnt):"",e)));eo&&window.WX_BJ_REPORT&&window.WX_BJ_REPORT.BadJs.report("list.length","list.length:"+i.length,{mid:"mmbizwap:related_monitor",_info:{relatedArticleFlag:e.relatedArticleFlag,isPc:to},uin:e.user_uin}),this.list=i,this.list.forEach((({url:e,ext_info:i})=>{Ae.report(29139,Object.assign({Bizuin:me.getQuery("__biz",e),Msgid:parseInt(me.getQuery("mid",e),10)||0,Itemidx:parseInt(me.getQuery("idx",e),10)||0,ExtInfo:i,RecInfo:t.report_info},this.commonReportData))})),this.reason=no,this.reportInfo=t.report_info||"",this.showRecReason=1===t.show_rec_reason,this.clearPlaceholderTimeout((e=>{e?this.showCard(t.list.length):this.setLines(t.list.length),this.listStyle.opacity=1,this.listStyle.overflow="visible",this.$nextTick((()=>{this.exposeHandler(),window.ipadsos13_font_scale&&A(this.$refs.jsRelatedArea,window.ipadsos13_font_scale/100),!this.isPageInit&&I.setCompRenderInfo({compEle:this.$refs.jsRelatedArea,compType:"mp-related-article",compIdx:1,wrapper:document.querySelector("#page_bottom_area")},this.$refs.jsRelatedArea.offsetHeight+parseInt(getComputedStyle(this.$refs.jsRelatedArea).marginTop,10))}))}))}else this.clearPlaceholderTimeout((e=>{!e&&this.setLines(0),this.destroy()}))},error:e=>{console.error(e),this.clearPlaceholderTimeout((e=>{!e&&this.setLines(0),this.destroy()}))}})},showCard(e){if(!this.isPageInit&&this.hasExtAppmsgStat){const t=24,i=parseFloat(window.getComputedStyle(this.$refs.jsRelatedMain).marginTop),n=this.$refs.jsRelatedArea.getBoundingClientRect().top;this.setLines(e),this.$nextTick((()=>{const o=this.getHeight(e)+t+i,a=Be.getId("js_bottom_opr_right").getBoundingClientRect().top,s=n+o;if(!(a>Zn||s<0)){const e=n-t;if(!(e>0&&s
");if(t.isDecodeEnter)return e.replace(/<br>/g,"
")}return e}function Ca(){let e=document.getElementById("js_content");if(!e)return;Ko=Array.from(e.getElementsByTagName("mpvideosnap"))||[];const t=Array.from(e.getElementsByTagName("mp-common-videosnap"))||[],i=Ko.concat(t);console.log(i);let n=null;function o(e){if("MPVIDEOSNAP"===e.tagName){const t=document.createElement("mp-common-videosnap");return e.parentNode.insertBefore(t,e),e.parentNode.removeChild(e),t}return e}for(let a=0;aNs.isPaySubscribe?{forbidForward:1}:{forbidForward:0}}var Ns;export{e as __vite_legacy_guard};