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{const t=e.dataset;if(t.tag_id)""!==n&&(n+="_"),n+=t.tag_id;else{let e=0;window.isPayTopic&&(e=0===window.isPaid?1:2),Ie({eventType:1,albumId:t.album_id,albumType:0,tagSrc:t.tag_source,canPaid:window.isPayTopic,price:window.isPayTopic?window.payTopicPrice:0,ifPaid:e})}})),n&&at(1,n)}else"function"==typeof t&&t()};i((()=>{ye.on(window,"scroll",i)}))}},dt=[];function lt(){try{!function(){window.locations.href.indexOf("clearStorage=1")>=0&&(localStorage.removeItem("max-age-storage-test"),console.log("clear localStorage"));var e=window.user_uin||0;if(0!==e&&Math.floor(e/100)%1e3<1&&(pe({type:"GET",url:"/mp/reportcache?type=1&random="+Math.random()}),(new Image).src="/mp/reportcache?type=2&uin="+uin,localStorage&&null==localStorage.getItem("max-age-storage-test"))){console.log("localStorage empty");try{localStorage.setItem("max-age-storage-test",!0),console.log("localStorage set success")}catch(t){}pe({type:"GET",url:"/mp/reportcache?type=3&random="+Math.random()})}}(),"undefined"==typeof getComputedStyle&&document.body.currentStyle&&(window.getComputedStyle=function(e){return e.currentStyle}),function(){let e=window.user_uin||0;if(!(0!==e&&Math.floor(e/100)%1e3<10))return;let t=document.getElementsByTagName("img"),i=t.length,n=document.getElementById("img-content"),o=n.offsetWidth,a=0,s=0,r=getComputedStyle(n);a=parseInt(r.paddingLeft)+parseInt(r.paddingRight),o-=a,o||(o=window.innerWidth-30);for(let d=0;d0&&e>o&&s++}s>0&&dt.push({idkey:28307,order:22,num:s})}(),function(){let e="/mp/jsmonitor?idkey=",t=[];for(let i=0,n=dt.length;i0&&((new Image).src=e)}()}catch(e){console.error(e)}}let pt=!1;const _t=navigator.userAgent.match(/MicroMessenger\/(\d+)\.(\d+)\.(\d+)/);if(_t){const e=Number(_t[1]),t=Number(_t[2]),i=Number(_t[3]);(e>6||6===e&&t>5||6===e&&5===t&&i>=3)&&(pt=!0)}const mt={tagName:"mp-wxaproduct",isWechat:(be.isandroids||be.isioses)&&be.isWechat&&!be.isWxWork,isPcWechat:be.isWindowsWechat||be.isMacWechat,screen_height:le.getInnerHeight(),canJumpOnTap:pt,commonReportData:{},minishopDom:[],appmsgType:1*window.appmsg_type||9},ut=(e={})=>{const t=e.dom,i=e.minishopInfo;ye.on(t,"tap",(function(e){e.stopPropagation(),e.preventDefault(),Ae.report(22042,Object.assign({},mt.commonReportData,{ActionType:2,toWxaAppId:i.appid,CardType:"large"===i.cardtype?1:0,ProductId:i.productId,isMassSend:mt.appmsgType})),((e={})=>{mt.isWechat||mt.isPcWechat?mt.canJumpOnTap?U.jumpUrl({options:{userName:e.username,scene:1058,sceneNote:encodeURIComponent(locations.href),relativeURL:e.path},beforeJumpBackupPage:function(){},onJsapiCallback:function(e){"openWeApp:ok"===e.err_msg||console.error(e.err_msg)}}):console.log("cant jumpOnTap"):new Te({msg:"请使用微信打开。"})})(i)}),!0),ye.on(t,"click",(e=>{e.preventDefault(),e.stopPropagation()}),!0)},wt=()=>{for(let e=0;e=e+t.clientHeight/2&&t.clientHeight+t.offsetTop<=e+t.clientHeight/2+mt.screen_height&&(t.setAttribute("data-hasreport",1),Ae.report(22042,Object.assign({},mt.commonReportData,{ActionType:1,toWxaAppId:n,CardType:"large"===o?1:0,ProductId:i,isMassSend:mt.appmsgType})))}}};ye.on(window,"scroll",wt);const ht=(e={})=>{if(e.node&&e.data&&e.data.headimg){const t=function(e){let t=e.node,i=e.data;return function(){let e=document.createElement("div");e.innerHTML=ke.tmpl('<# if(cardtype === \'mini\') {#>\n
\n
\n \n
\n
\n
\n <#=title#>\n <# if(avatar && nickname) { #>\n
\n \n <#=nickname#>\n
\n <# } #>\n
\n
\n <#=price#>\n \n
\n
\n
\n<#} else { #>\n
\n
\n \n
\n
\n
\n <#=title#>\n <# if(avatar && nickname) { #>\n
\n \n <#=nickname#>\n
\n <# } #>\n
\n
\n <#=price#>\n \n
\n
\n
\n<# } #>',i,!0).replace(/>\s*<").replace(/^\s+/,"").replace(/\s+$/,"");let n=e.firstChild;t.parentNode.insertBefore(n,t.nextSibling);let o=t.parentNode.querySelector('[data-preloadingid="'+i.productId+'"]');o&&o.parentNode.removeChild(o),ut({dom:n,minishopInfo:i}),mt.minishopDom.push(n),wt()}}(e),i=function(){this.onload=null,this.onerror=null,t()};let n=new Image;n.onload=i,n.onerror=i,n.src=e.data.headimg}},gt=e=>{pe({url:`/mp/wapwxaproduct?action=batch_get_product&product_ids=${JSON.stringify({list:e})}`,type:"GET",dataType:"json",success(e){e&&e.base_resp&&1*e.base_resp.ret==0&&"[object Array]"===Object.prototype.toString.call(e.product_list)&&((e=[])=>{const t=document.querySelectorAll(mt.tagName);for(let i=0,n=t.length;ie.product_id===o))||{},s={productId:o,title:n.getAttribute("data-wxaproduct-title")||"",price:decodeURIComponent(n.getAttribute("data-wxaproduct-price")||""),headimg:decodeURIComponent(n.getAttribute("data-wxaproduct-headimg")||""),cardtype:decodeURIComponent(n.getAttribute("data-wxaproduct-cardtype")||""),avatar:a.avatar||"",nickname:a.nickname||"",appid:a.appid||decodeURIComponent(n.getAttribute("data-wxaproduct-appid")||""),path:a.path||"",username:a.username||""};ht({data:s,node:n})}})(e.product_list)},error(t){mt.retry?(mt.retry--,gt(e)):console.error(t)}})},ft=(e={})=>{e.minishopCards&&(mt.commonReportData={BizUin:1*t(e.biz),MsgId:window.parseInt(e.mid,10)||0,ItemIdx:window.parseInt(e.idx,10)||0,Scene:window.parseInt(e.source,10)||0,SubScene:window.parseInt(e.subscene,10)||0,EnterId:window.parseInt(e.enterid,10)||0},gt(e.minishopCards.list),wt())},yt='\n <# if (qaDeleted) { #>\n 讨论内容已被删除\n <# } else { #>\n \n \n <#=nickname#> 发起了一个读者讨论\n <#==title#>\n \n <# if (!answerCount) { #>\n <# if (isLogin) { #>\n \x3c!-- <# if (disableAnswerWord) { #>\n <#=disableAnswerWord#>\n <# } else { #>\n 参与讨论\n <# } #> --\x3e\n 讨论已结束\n <# } #>\n <# } else { #>\n \n \n 精选讨论内容\n \x3c!-- <# if (isLogin) { #>\n <# if (disableAnswerWord) { #>\n <#=disableAnswerWord#>\n <# } else { #>\n 参与讨论\n <# } #>\n <# } #> --\x3e\n \n <#==answerListStr#>\n <# if (leftAnswerCnt) { #>\n

<#=leftAnswerCnt#>

\n <# } #>\n
\n <# } #>\n
\n <# } #>\n
',bt='
\n \x3c!-- 层主头像 --\x3e\n
\n \n
\n
\n
\n \x3c!-- 层主昵称 --\x3e\n
\n <#=user_info.nickname#>\n
\n \x3c!-- 点赞 --\x3e\n
\n \x3c!-- span加praised点赞 --\x3e\n <# if (is_my_answer && canOp) { #>\n
\n <# } #>\n \x3c!-- 精选之后的才能点赞 --\x3e\n <# if (answer_status && isLogin) { #>\n
\n \n \n <#=likeNumFormated#>\n \n
\n <# } #>\n <# if (!answer_status) { #>\n
Not approved
\n <# } #>\n
\n
\n\n \x3c!-- 回答内容 --\x3e\n

<#=content#>

\n \x3c!-- <# if (is_my_answer && canOp) { #>\n
style="display: none;"<# } #>>Reply
\n <# } #> --\x3e\n\n \x3c!-- 回复 --\x3e\n
\n
\n <#=replyListHtml#>\n
\n <# if (replyListHtml && leftReplyCount) { #>\n

\n <#=leftReplyTips#>\n

\n <# } #>\n \x3c!-- <# if (is_my_answer && canOp) { #>\n
style="display: none;"<# } #>>Reply
\n <# } #> --\x3e\n
\n
\n
',vt='
\n
\n
\n <# if (is_biz_reply) { #>\n Author\n <# } else { #>\n <#=user_info.nickname#>\n <# } #>\n
\n
\n <# if (is_my_reply && canOp) { #>\n
\n <# } #>\n \x3c!-- 精选之后的才能点赞 --\x3e\n <# if (replyStatus && isLogin) { #>\n
\n \n \n <#=likeNumFormated#>\n \n
\n <# } #>\n <# if (!replyStatus) { #>\n
Not approved
\n <# } #>\n
\n
\n

<#=content#>

\n
',xt='
\n
\n
\n \n
\n \n
\n
\n \n \n \n \n \n \n \n
\n
\n
\n
\n \n \n \n \n
\n
    \n
    \n
    \n
    \n \n
    \n
    \n\n\n\n\n\n',kt="weui-btn_disabled",At="page_no_scroll",It=screen.height/4*3+"px",Tt={top:_e.os.pc?"20%":screen.height/4-(screen.height-window.innerHeight)+"px",btnText:"Submit",hasHeader:!0,clickMask2Hide:!0,animationType:"bottom",scroll2Hide:!0};function Ct(e,t,i,n){i=n?`${i}px`:i,e.style[t]=i}class St{constructor(e,t={}){t=Object.assign({},Tt,t);const i=document.createElement("div");i.innerHTML=ke.tmpl('
    \n
    \n <# if (hasMask) { #>\n \x3c!-- 透明mask,用于防止点透 --\x3e\n
    \n\n \x3c!-- 有底色的mask --\x3e\n
    \n <# } #>\n',{hasBtn:t.hasBtn,btnText:t.btnText,extClass:t.extClass||"",hasMask:!t.removeMask,isTopic:!!t.isTopic,hasHeader:t.hasHeader,hasFooter:!!t.footerEl,btnSlot:t.btnSlot,autoHeight:t.autoHeight,maxHeight:It});const n=i.firstChild;this.scrollLock=!1,this.curScrollTop=0,this.touches={startX:0,startY:0,curX:0,curY:0,isScreenLeft:!1,direction:"",times:0},this.opt=t,this.rootEle=n,this.contentEle=e,this.contentAreaWrp=n.getElementsByClassName("js_bottom_modal_bd")[0],this.contentAreaWrp.appendChild(e),this.contentArea=n.getElementsByClassName("js_bottom_modal_content")[0],this.loading=this.rootEle.getElementsByClassName("js_modal_loading")[0],this.pullLoading=this.rootEle.getElementsByClassName("js_pull_loading")[0],this.endLine=this.rootEle.getElementsByClassName("js_modal_end_line")[0],this.enableGesture=!1,this.triggerEl=null,this.isAutoFocus=!0,t.removeMask||(this.maskEle=n.getElementsByClassName("js_bottom_modal_mask")[0],this.maskNotClick=n.getElementsByClassName("js_bottom_modal_mask_not_click")[0],t.transparentMask&&Ct(this.maskEle,"opacity",0)),t.hasHeader&&(this.headAreaWrp=n.getElementsByClassName("js_bottom_modal_hd")[0],this.submitBtn=this.headAreaWrp.getElementsByClassName("js_submit_bottom_modal")[0],this.closeBtn=this.headAreaWrp.getElementsByClassName("js_close_bottom_modal")[0],this.setTitle(t.title)),t.footerEl&&(this.footAreaWrp=n.querySelector(".js_bottom_modal_ft"),this.footAreaWrp.appendChild(t.footerEl)),"right"===t.animationType&&this.rootEle.classList.add("wx_bottom_modal_right"),document.body.appendChild(n),t.cb&&t.cb(),this.bindEvent()}bindEvent(){this.maskEle&&(this.opt.clickMask2Hide&&ye.tap(this.maskEle,(()=>{this.hide()})),ye.on(this.contentArea,"transitionend",(e=>{e.target!==this.contentArea||"transform"!==e.propertyName&&"-ms-transform"!==e.propertyName||(""!==this.contentArea.style.transform?this.contentArea.style.removeProperty("transform"):this.getShowStatus()?"function"==typeof this.opt.onShowAfterAnimation&&this.opt.onShowAfterAnimation():(Ct(this.maskNotClick,"visibility","hidden"),!this.opt.autoHeight&&Ct(this.contentArea,"top",this.opt.top)))})),ye.tap(this.maskNotClick,(()=>setTimeout((()=>{this.hide(),Ct(this.maskNotClick,"visibility","hidden"),!this.opt.autoHeight&&Ct(this.contentArea,"top",this.opt.top)}),300))),ye.on(this.maskEle,"touchmove",(e=>{e.preventDefault()}))),this.headAreaWrp&&(ye.on(this.headAreaWrp,"touchstart",(e=>this.onTouchStart(e))),ye.on(this.headAreaWrp,"touchmove",(e=>{e.preventDefault();const t=e.changedTouches[0];this.getTouchDirection(t)&&this.moveByDirection(t)})),ye.on(this.headAreaWrp,"touchend",(e=>this.onTouchEnd(e)))),this.footAreaWrp&&(ye.on(this.footAreaWrp,"touchstart",(e=>this.onTouchStart(e))),ye.on(this.footAreaWrp,"touchmove",(e=>{e.preventDefault();const t=e.changedTouches[0];this.getTouchDirection(t)&&this.moveByDirection(t)})),ye.on(this.footAreaWrp,"touchend",(e=>this.onTouchEnd(e)))),this.closeBtn&&ye.on(this.closeBtn,"click",(()=>{this.hide()})),this.submitBtn&&ye.on(this.submitBtn,"click",(()=>{xe.hasClass(this.submitBtn,kt)||this.opt.btnClickCb&&this.opt.btnClickCb()})),ye.on(this.contentAreaWrp,"scroll",(()=>{this.checkReachBoundary(),this.contentAreaWrp.scrollTop>0?xe.addClass(this.contentArea,"weui-half-screen-dialog_headline"):xe.removeClass(this.contentArea,"weui-half-screen-dialog_headline")})),this.headAreaWrp&&ye.tap(this.headAreaWrp.getElementsByClassName("js_bottom_modal_title")[0],(()=>{this.opt.titleClickCb&&this.opt.titleClickCb()})),ye.on(this.contentAreaWrp,"touchstart",(e=>this.onTouchStart(e))),ye.on(this.contentAreaWrp,"touchmove",(e=>{const t=e.changedTouches[0];if(this.getTouchDirection(t)){if("Y"===this.touches.direction){const n=this.contentAreaWrp,o=t.pageY,a=o-this.touches.startY,s=n.scrollTop<=0&&a>0,r=(i=n,Math.ceil(i.scrollTop+i.offsetHeight)>=i.scrollHeight&&a<0);s||r?(s&&!this.opt.onPullDownLoad&&this.move(o),e.preventDefault()):this.resetMovement(),this.touches.curY=o}else e.preventDefault(),this.moveByDirection(t)}var i})),ye.on(this.contentAreaWrp,"touchend",(e=>this.onTouchEnd(e))),ye.on(window,"unload",(()=>{this.opt.removeMask||i.hide()}))}checkReachBoundary(e=!0,t=!0){this.scrollLock&&0!==this.contentAreaWrp.scrollTop||(this.scrollLock=!0,setTimeout((()=>{this.scrollLock=!1}),50),e&&!this.pullingDownLock&&this.contentAreaWrp.scrollTop<=0&&(this.opt.onPullDownLoad&&this.opt.onPullDownLoad(),this.pullingDownLock=!0),setTimeout((()=>{t&&!this.pullingUpLock&&this.contentAreaWrp.scrollTop+this.contentAreaWrp.offsetHeight+100>this.contentEle.offsetHeight&&(this.opt.onPullUpLoad&&this.opt.onPullUpLoad(),this.pullingUpLock=!0)}),100),this.opt.onScroll&&this.opt.onScroll(this.contentAreaWrp.scrollTop>this.curScrollTop?"up":"down"),this.curScrollTop=this.contentAreaWrp.scrollTop)}onTouchStart(e){const t=e.touches[0];this.touches={startX:t.pageX,startY:t.pageY,curX:t.pageX,curY:t.pageY,isScreenLeft:this.enableGesture&&t.pageX<=30,direction:"",times:0},this.contentArea.style.transition="none"}onTouchEnd(e){const t=this.touches.direction,i="X"===t?100:this.contentArea.offsetHeight/4,n=e.changedTouches[0][`page${t}`]-this.touches[`start${t}`],o=this.contentArea.dataset;this.contentArea.style.removeProperty("transition"),o.distance&&(n>i?this.hide():this.contentArea.style.transform="translateY(0)",delete o.distance)}getTouchDirection(e){if(this.touches.direction)return!0;if(!this.touches.isScreenLeft)return this.touches.direction="Y",!0;this.touches.times++;const t=Math.abs(e.pageX-this.touches.startX),i=Math.abs(e.pageY-this.touches.startY);return this.touches.times>=3?(this.touches.direction=t>=i?"X":"Y",!0):t>=5&&t>=i?(this.touches.direction="X",!0):i>=5&&(this.touches.direction="Y",!0)}moveByDirection(e){const t=this.touches.direction,i=e[`page${t}`];i-this.touches[`start${t}`]>0?this.move(i):this.resetMovement(),this.touches[`cur${t}`]=i}move(e){if(this.opt.sideslip2Hide&&"X"===this.touches.direction||this.opt.scroll2Hide&&"Y"===this.touches.direction){const t=this.contentArea.dataset;t.distance=1*(t.distance||0)+e-this.touches[`cur${this.touches.direction}`],this.contentArea.style.transform=`translateY(${t.distance}px)`}}resetMovement(){delete this.contentArea.dataset.distance,this.contentArea.style.removeProperty("transform")}show(e,t,o,a=!0){if(xe.addClass(document.body,At),this.triggerEl=o||window.event&&window.event.target,this.isAutoFocus=a,this.getShowStatus())return;e||this.opt.autoHeight||(Ct(this.contentArea,"top",this.opt.top),console.log(this.contentArea.offsetHeight)),Ct(this.contentArea,"visibility","visible"),xe.addClass(this.rootEle,"wx_bottom_modal_show");const s=document.getElementById("img-content");s&&s.setAttribute("aria-hidden","true"),this.setAriaHidden(!1),this.contentArea.focus(),this.maskEle&&this.opt.clickMask2Hide&&Ct(this.maskNotClick,"visibility","visible"),this.opt.removeMask||i.show({alpha:this.opt.transparentMask?0:.6,callback:e=>{e&&"function"==typeof this.opt.onShowNavShadow&&this.opt.onShowNavShadow()},onClick:()=>{this.hide()}}),this.opt.sideslip2Hide&&(_e.os.ioses?ve.invoke("handleDeviceInfo",{action:"disableInteractivePop",disable:!0},(e=>{/:ok$/.test(e.err_msg)&&(this.enableGesture=!0)})):n.disable({onGoBack:()=>{this.hide()},onDisable:()=>{this.enableGesture=!0},onEnable:()=>{this.enableGesture=!1}})),e&&(xe.addClass(this.rootEle,"wx_bottom_modal_form"),Ct(this.contentArea,"top","25px")),setTimeout((()=>{e||"right"===this.opt.animationType&&(Ct(this.contentArea,"-ms-transform","translateX(0)"),Ct(this.contentArea,"transform","translateX(0)"))})),e&&(setTimeout((()=>{"bottom"===this.opt.animationType?Ct(this.contentArea,"top","100%"):Ct(this.contentArea,"top",this.opt.top),console.log(this.contentArea.offsetHeight),xe.removeClass(this.rootEle,"wx_bottom_modal_form"),setTimeout((()=>{Ct(this.contentArea,"top",this.opt.top),"right"===this.opt.animationType&&(Ct(this.contentArea,"-ms-transform","translateX(0)"),Ct(this.contentArea,"transform","translateX(0)"))}))}),50),_e.os.ioses?t.focus():(this.tmpInputEle||(this.tmpInputEle=t.cloneNode(!0)),this.tmpInputEle.style.opacity=0,this.tmpInputEle.style.position="fixed",this.tmpInputEle.style.top=0,this.tmpInputEle.style.zIndex="-1",document.body.appendChild(this.tmpInputEle),setTimeout((()=>{t.focus(),this.opt.makeInputEleBigger&&this.opt.makeInputEleBigger(),document.body.removeChild(this.tmpInputEle)}),300),this.tmpInputEle.focus()),_e.os.ioses&&!this.hasBindInputEvent&&this.opt.makeFakeInputEle&&this.opt.removeInputEle&&(this.hasBindInputEvent=!0,ye.on(t,"focus",(()=>{setTimeout((()=>{t.style.opacity=1,this.opt.removeInputEle()}),50)})),ye.on(t,"blur",(()=>{this.opt.makeFakeInputEle(),t.style.opacity=0})))),this.opt.onShow&&this.opt.onShow()}hide(e){if(xe.removeClass(document.body,At),e&&Ct(this.maskNotClick,"visibility","hidden"),!this.getShowStatus())return;this.contentArea.style.removeProperty("-ms-transform"),this.contentArea.style.removeProperty("transform"),xe.removeClass(this.rootEle,"wx_bottom_modal_show");const t=document.getElementById("img-content");t&&t.setAttribute("aria-hidden","false"),this.setAriaHidden(!0),this.isAutoFocus&&function(e){if(!(e&&e instanceof HTMLElement))return!1;const t=window.getComputedStyle(e);return 0!==t.width&&0!==t.height&&0!==t.opacity&&"none"!==t.display&&"hidden"!==t.visibility&&null!==e.offsetParent}(this.triggerEl)&&(this.triggerEl.setAttribute("tabindex","0"),this.triggerEl.focus()),this.opt.removeMask||i.hide(),this.opt.sideslip2Hide&&(_e.os.ioses?ve.invoke("handleDeviceInfo",{action:"disableInteractivePop",disable:!1},(e=>{/:ok$/.test(e.err_msg)&&(this.enableGesture=!1)})):n.enable({onEnable:()=>{this.enableGesture=!1}})),this.opt.onHide&&this.opt.onHide()}disableBtn(){this.submitBtn&&xe.addClass(this.submitBtn,kt)}enableBtn(){this.submitBtn&&xe.removeClass(this.submitBtn,kt)}finishPullUpLoad(){this.pullingUpLock=!1}finishPullDownLoad(){this.pullingDownLock=!1}setTitle(e){this.headAreaWrp&&("string"==typeof e?this.headAreaWrp.getElementsByClassName("js_bottom_modal_title")[0].innerHTML=e:"object"==typeof e&&e.innerHTML&&(this.headAreaWrp.getElementsByClassName("js_bottom_modal_title")[0].innerHTML=e.innerHTML))}scrollTo(...e){this.contentAreaWrp.scrollTo(...e)}getRootEle(){return this.rootEle}getBdEle(){return this.contentAreaWrp}getScrollEle(){return this.contentAreaWrp}setCloseBtnStyle(e){if(this.closeBtn){const t=this.closeBtn.getElementsByTagName("i")[0],i="weui-icon-close-thin",n="weui-icon-back-arrow-thin";"back"===e?(xe.removeClass(t,i),xe.addClass(t,n)):(xe.removeClass(t,n),xe.addClass(t,i))}}getShowStatus(){return xe.hasClass(this.rootEle,"wx_bottom_modal_show")}showLoading(){Ct(this.loading,"display","block")}hideLoading(){Ct(this.loading,"display","none")}showPullUpLoading(){this.contentAreaWrp.appendChild(this.pullLoading),Ct(this.pullLoading,"display","block")}hidePullUpLoading(){Ct(this.pullLoading,"display","none")}showPullDownLoading(){this.contentAreaWrp.insertBefore(this.pullLoading,this.contentAreaWrp.firstChild),Ct(this.pullLoading,"display","block")}hidePullDownLoading(){Ct(this.pullLoading,"display","none")}showEndLine(){this.contentAreaWrp.appendChild(this.endLine),Ct(this.endLine,"display","block")}setAriaHidden(e){this.contentArea.setAttribute("aria-hidden",e.toString())}disablePullDownLoad(){this.opt.onPullDownLoad=null}}function Et(e,t,i=0){return e.getElementsByClassName(t)[i]}const jt=document.getElementsByTagName("mp-qa")[0];let Rt,Bt,Nt,Pt,Dt,qt,Lt,Ot,zt,Wt,Mt={},$t=0,Ht=0,Ut=0,Ft="";const Jt=10,Vt="answerList",Xt="myAnswerList",Gt="praised",Kt="modalWriteAnswerClass",Qt="25px",Yt={__biz:jt&&jt.dataset.bizuin,question_id:jt&&jt.dataset.id,qna_sn:jt&&function(e){let t;if(window.qnaCardData)try{t=JSON.parse(window.qnaCardData);const i=t.list;if(i&&i.length)for(let t=0;t{e.canOp=i,e.content=e.content.htmlEncode(),e.content=o.encode(e.content),e.likeNumFormated=Be.formatReadNum(e.like_num),e.replyStatus=void 0===e.reply_status?1:e.reply_status,e.isLogin=Rt;const t=document.createElement("div");t.innerHTML=ke.tmpl(vt,e,!1),n.replyListHtml+=t.innerHTML,n.replyList.appendChild(t.firstChild)}))),n}function si(e,t,i=""){const n={answerListHtml:"",fragment:document.createDocumentFragment()};return e.forEach((e=>{e.likeNumFormated=Be.formatReadNum(e.like_num),e.canOp=t,e.answer_sn=e.answer_sn||"",e.content=e.content.htmlEncode(),e.oriContent=e.content,e.content=o.encode(e.content),e.isLogin=Rt;const i=ai(e.reply_info,e.answer_id,t);Object.assign(e,i);const a=document.createElement("div");a.innerHTML=ke.tmpl(bt,e,!1),n.answerListHtml+=a.innerHTML,n.fragment.appendChild(a.firstChild)})),i===Xt?Ht+=Jt:i===Vt&&($t+=Jt),n}function ri(e={}){const t=Object.assign({action:e.action,limit:Jt,offset:e.offset},Yt);pe({url:me.join("/mp/qna",t),dataType:"json",success(t){let i;t&&(i=t.qna_info?t.qna_info.answer_info:t.answer_info,e.successCb(i,t))},complete(){e.complete&&e.complete()}})}function di(e,t){let i=0;for(;e.offsetParent&&e!==t;)i+=e.offsetTop,e=e.offsetParent;return i}function ci(e,t,i){const n=e.dataset.answerid,o=i?di(e,Nt.getScrollEle()):0;pe({url:me.join("/mp/qna",Object.assign({action:"get_more_reply",answer_id:n,answer_sn:e.dataset.answersn,limit:10},Yt)),dataType:"json",success(t){if(t&&t.reply_info&&t.reply_info.reply_list&&t.reply_info.reply_list.length){const n=ai(t.reply_info,0,!0);n.replyListHtml?(Et(e.parentNode,"js_qa_reply_list").appendChild(n.replyList),n.leftReplyCount?e.innerHTML=n.leftReplyTips:ei(e),i&&Nt.scrollTo(0,o-48)):ei(e)}}})}function li(e){const t=Et(Pt,`js_get_more_reply_${e}`);t&&ci(t,0,!0)}function pi(){return Et(qt,"js_qa_input")}function _i(){const e=pi();return(e.value||e.innerHTML).trim()}function mi(){_i()?Dt.enableBtn():Dt.disableBtn()}function ui(e={}){ri({action:e.action,offset:e.offset,successCb(t,i){if(t&&t.answer_list&&t.answer_list.length){let i,n;"get_my_answer"===e.action?(i=Xt,n=qt,ti(Et(qt,"js_qa_write_head"))):(i=Vt,n=Pt);Et(n,"js_qa_qna_answer_list").appendChild(si(t.answer_list,!0,i).fragment)}e.cb&&e.cb(t,i)}})}function wi(){if(!qt)return;const e="回复: #value#".replace("#value#",o.encode(Ft)),t=Et(qt,"js_reply_top_content");Lt?(t.innerHTML=e,ti(t)):ei(t)}function hi(e){Et(qt,"js_alert_toast_word").innerHTML=e,ti(Et(qt,"js_alert_toast")),setTimeout((()=>{ei(Et(qt,"js_alert_toast"))}),800)}function gi(){let e=0;const t=Pt.getElementsByClassName("js_qa_list_item");for(let i=0;iUt&&(Ut=e)}function fi(e,t){if(Nt)return Nt.show(),void(e&&t&&li(t));let i;Pt=jt.firstChild.cloneNode(!0);const n=Et(Pt,"qa__list-more"),o=Et(Pt,"js_qa_write_answer");n&&ei(n),o&&xe.addClass(o,Kt),Et(Pt,"js_qa_qna_answer_list").innerHTML="",Nt=new St(Pt,{title:"读者讨论",extClass:"qa__card",onPullUpLoad(){i>0&&(Nt.showPullUpLoading(),ui({action:"get_more_answer",offset:$t,cb(e,t){Nt.hidePullUpLoading(),e.left_answer_cnt||0!==t.base_resp.ret?Nt.finishPullUpLoad():Nt.showEndLine()}}))},cb(){ui({action:"get_more_answer",offset:$t,cb(n){if(e&&t)li(t);else{const e=Bt.dataset.count,t=di(Et(Pt,"js_qa_list_item",e),Nt.getScrollEle());Nt.scrollTo(0,t-96)}i=n.left_answer_cnt,i||Nt.showEndLine()}})},onScroll(){gi()},onHide(){gi(),oi({EventType:3,Exposure:Ut}),Ut=0}}),Nt.show(),ye.on(Pt,"tap",".js_get_more_reply",(e=>{ci(e.delegatedTarget)}))}function yi(e){let t;const i=Lt?"Reply":"参与讨论";if(Dt)return wi(),Dt.setTitle(i),e?Dt.setCloseBtnStyle("back"):Dt.setCloseBtnStyle("close"),void Dt.show(!0,pi());qt=document.createElement("div"),qt.innerHTML=ke.tmpl(xt,{}),Dt=new St(qt,{title:i,top:Qt,extClass:"qa__card qa__card_write",hasBtn:!0,disableTransition:!0,onPullUpLoad(){t>0&&(Dt.showPullUpLoading(),ui({action:"get_my_answer",offset:Ht,cb(e,t){Dt.hidePullUpLoading(),e.left_answer_cnt||0!==t.base_resp.ret?Dt.finishPullUpLoad():Dt.showEndLine()}}))},onHide(){pi().blur()},onScroll(e){"up"===e&&pi().blur()},cb(){ui({action:"get_my_answer",offset:Ht,cb(e){t=e.left_answer_cnt,t||Dt.showEndLine()}})},btnClickCb(){Dt.disableBtn();const e=Lt?"add_reply":"add_answer";ti(Et(qt,"js_loading_toast")),pe({url:`/mp/qna?action=${e}`,type:"POST",dataType:"json",data:Object.assign({answer_id:zt,answer_sn:Wt,content:_i(),my_reply_cnt:Ot+1,ignore_tips:1},Yt),success(e){if(e&&e.base_resp&&0===e.base_resp.ret){if(ti(Et(qt,"js_sended_toast")),setTimeout((()=>{ei(Et(qt,"js_sended_toast"))}),800),pi().value="",Dt.disableBtn(),Lt&&e.reply_info&&e.reply_info.reply_list){const t=ai(e.reply_info,0,!0).replyList,i=Et(qt,`js_qa_reply_list_${zt}`);i.appendChild(t.cloneNode(!0)),ti(Et(i.parentNode,"js_write_reply")),ei(Et(i.parentNode.parentNode,"js_write_reply"))}else if(!Lt&&e.answer_info&&e.answer_info.answer_list){const t=Et(qt,"js_qa_qna_answer_list");t.insertBefore(si(e.answer_info.answer_list,!0).fragment,t.firstChild),ti(Et(qt,"js_qa_write_head"))}}else Dt.enableBtn(),168003===e.base_resp.ret||168007===e.base_resp.ret?hi("内容涉嫌违反平台协议或法规政策"):168004===e.base_resp.ret?hi("关注该公众号才能参与讨论"):168005===e.base_resp.ret?hi("关注该公众号3天及以上才能参与讨论"):168008===e.base_resp.ret||168009===e.base_resp.ret?hi("字数不能多于"+(Lt?140:600)):ni()},error(){ni(),Dt.enableBtn()},complete(){ei(Et(qt,"js_loading_toast")),pi().blur()}})},makeFakeInputEle(){const e=pi(),t=e.cloneNode();t.id="tmp_input",t.style.top=0,t.style.position="absolute",e.parentNode.insertBefore(t,e),t.value=e.value,t.scrollTop=e.scrollTop},removeInputEle(){const e=document.getElementById("tmp_input");e&&e.parentNode.removeChild(e)},makeInputEleBigger(){const e=pi(),t="1000px";e.style.borderTop=`solid ${t} transparent`,e.style.position="relative",e.style.top=`-${t}`}}),wi(),Dt.disableBtn(),e?Dt.setCloseBtnStyle("back"):Dt.setCloseBtnStyle("close"),Dt.show(!0,pi()),function(){const e=pi();ye.on(qt,"tap",".js_get_more_reply",(e=>{ci(e.delegatedTarget)})),ye.on(e,"input",mi),ye.on(e,"tap",(()=>{Dt.scrollTo(0,0)}))}(),new o.Emotion({emotionPanel:s("#js_qa_emotion_panel"),inputArea:s(pi()),emotionPanelArrowWrp:s("#js_qa_emotion_panel_arrow_wrp"),emotionSwitcher:s("#js_qa_emotion_switch"),emotionSlideWrapper:s("#js_qa_emotion_slide_wrapper"),emotionNavBar:s("#js_qa_emotion_navbar"),inputEmotion(){mi()}})}const bi={renderQaCard:function(e={}){jt&&(Yt.mid=e.mid,Yt.idx=e.idx,Mt.userUin=e.userUin,Mt.biz=e.biz,Mt.itemShowType=e.itemShowType,Mt.enterId=e.enterId,Mt.scene=e.scene,Mt.subScene=e.subScene,Mt.sessionId=e.sessionId,Rt=e.isLogin,ri({action:"get_qna_info",successCb(e,t){let i,n,a,s;const d=t.base_resp.ret,c=168001===d,l=t.qna_info&&t.qna_info.question_info;c?jt.innerHTML=ke.tmpl(yt,{qaDeleted:c}):0===d&&("1"===me.getQuery("js_my_answer")&&(yi(),ii(4)),e&&e.answer_list&&e.answer_list.length&&(a=si(e.answer_list,!1).answerListHtml,n=e.answer_list.length,e.left_answer_cnt&&(i="余下#value#条讨论内容".replace("#value#",e.left_answer_cnt))),1===l.can_answer_type&&0===t.qna_info.is_fans?s="作者已设置关注后才可参与讨论":2===l.can_answer_type&&0===t.qna_info.is_fans_days&&(s="作者已设置关注7天后才可参与讨论"),jt.innerHTML=ke.tmpl(yt,{qaDeleted:c,answerCount:n,leftAnswerCnt:i,answerListStr:a,disableAnswerWord:s,title:o.encode(l.question_title.htmlEncode()),nickname:l.biz_info.nickname,isLogin:Rt}),Bt=Et(jt,"js_more_answer_entry"),function(){let e;function t(){if(e)return;const t=jt.firstChild,i=r.getOffset(t).offsetTop,n=le.getScrollTop();n+le.getInnerHeight()>=i&&n<=i+t.offsetHeight&&(oi({EventType:1}),ii("0"),e=!0)}ye.on(jt,"tap",".js_get_more_reply",(e=>{const t=e.delegatedTarget.dataset.answerid;Zt[t]?fi():(fi(!0,t),Zt[t]=!0)})),ye.on(document.body,"click",".js_qa_write_answer",(e=>{Lt=!1,yi(xe.hasClass(e.delegatedTarget,Kt)),ii(2)})),ye.on(document.body,"click",".js_write_reply",(e=>{const t=e.delegatedTarget,i=t.parentNode.parentNode;if(zt=t.dataset.answerid,Wt=t.dataset.answersn,i){const e=i.getElementsByClassName("js_qa_reply_content");Ot=i.getElementsByClassName("js_qa_my_reply").length,Ft=e.length?e[e.length-1].innerHTML:Et(i,"js_qa_item_content").innerHTML}Lt=zt,Lt&&(yi(!0),ii(3))})),ye.on(Bt,"click",(()=>{fi(),oi({EventType:2}),ii(1)})),ye.on(document.body,"tap",".js_qa_like",(e=>{const t=e.delegatedTarget,i=xe.hasClass(t,Gt);xe.toggleClass(t,Gt);const n=Et(t,"js_like_num");let o=(parseInt(n.dataset.num,10)||0)+(i?-1:1);o=o>=0?o:0,n.innerHTML=Be.formatReadNum(o),n.dataset.num=o,ii("2"===t.dataset.type?6:5),pe({url:"/mp/qna?action=like",type:"POST",data:Object.assign({like_type:t.dataset.type,op:i?2:1,answer_id:t.dataset.id,reply_id:t.dataset.id},Yt)})})),ye.on(document.body,"tap",".js_delete_answer",(e=>{const t=e.delegatedTarget;ii(7),setTimeout((()=>{window.weui.confirm("确定删除讨论内容吗?",{buttons:[{label:"Cancel",type:"default"},{label:"Delete",type:"primary",onClick(){pe({url:"/mp/qna?action=del_answer",type:"POST",dataType:"json",data:Object.assign({answer_id:t.dataset.id},Yt),success(e){if(e&&e.base_resp&&0===e.base_resp.ret){const e=t.parentNode.parentNode.parentNode.parentNode;e&&xe.hasClass(e,"js_qa_list_item")&&e.parentNode.removeChild(e)}else ni()}})}}]})}),50)})),ye.on(document.body,"tap",".js_delete_reply",(e=>{const t=e.delegatedTarget;ii(8),setTimeout((()=>{window.weui.confirm("Delete this reply?",{buttons:[{label:"Cancel",type:"default"},{label:"Delete",type:"primary",onClick(){pe({url:"/mp/qna?action=del_reply",type:"POST",dataType:"json",data:Object.assign({reply_id:t.dataset.id},Yt),success(e){if(e&&e.base_resp&&0===e.base_resp.ret){const e=t.parentNode.parentNode.parentNode;if(e&&xe.hasClass(e,"js_qa_reply_item")){const t=e.parentNode;t.removeChild(e),t.children.length||(ei(t.parentNode),ei(Et(t.parentNode,"js_write_reply")),ti(Et(t.parentNode.parentNode,"js_write_reply")))}}else ni()}})}}]})}),50)})),le.bindDebounceScrollEvent(t),t()}())}}))}};let vi=[],xi=0;const ki={auditing:1,ban:2};function Ai(e,t){const i="object"==typeof e?e:vi[e];if(i.dataset.hasBanner)return;const n=document.createElement("div");n.dataset.hasBanner=1,n.style="background-color: var(--weui-BG-1);font-size: 14px;color: var(--weui-FG-2);text-align: left;margin-top: 20px;margin-bottom: 4px;padding: 4px 8px 6px 8px;border-radius:4px;";const o=document.createElement("span");o.style="color: var(--weui-FG-0);padding: 2px;display: inline-block;vertical-align: middle; width: 20px;height: 20px;margin-right: 4px; background-size: cover;background-position: center center;-webkit-mask: url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E %3Cpath fill-opacity='.3' fill-rule='evenodd' d='M10 1.667a8.333 8.333 0 1 1 0 16.666 8.333 8.333 0 0 1 0-16.666zm-.004 11.115a.732.732 0 0 0-.746.735c0 .416.33.735.746.735a.73.73 0 0 0 .752-.735.73.73 0 0 0-.752-.735zm.638-7.669h-1.27l.091 6.33h1.088l.091-6.33z'/%3E%3C/svg%3E\") no-repeat 50% 50%;mask: url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E %3Cpath fill-opacity='.3' fill-rule='evenodd' d='M10 1.667a8.333 8.333 0 1 1 0 16.666 8.333 8.333 0 0 1 0-16.666zm-.004 11.115a.732.732 0 0 0-.746.735c0 .416.33.735.746.735a.73.73 0 0 0 .752-.735.73.73 0 0 0-.752-.735zm.638-7.669h-1.27l.091 6.33h1.088l.091-6.33z'/%3E%3C/svg%3E\") no-repeat 50% 50%;background-color: currentColor;";const a=document.createElement("span");a.style="display: inline-block;line-height: 14px;vertical-align: middle;",a.innerHTML=t,n.appendChild(o),n.appendChild(a),i.parentNode.insertBefore(n,i,null),i.dataset.hasBanner=1}function Ii(e,t,i){const n=e.length,o=[...Array(n)].map((()=>"〇")).join(""),{childNodes:a}=t;let s=i;for(let r=0;re.data.length?s-=e.data.length:e.data=e.data.slice(0,s).concat(o).concat(e.data.slice(s+n)):1===e.nodeText&&(s-=e.innerText&&e.innerText.length||0)}}function Ti(e,t,i){const n=e.length,{$node:o,realOffset:a}=Le.findChildIndex(t,i);try{o.splitText(a)}catch(d){"undefined"!=typeof WX_BJ_REPORT&&WX_BJ_REPORT.BadJs&&WX_BJ_REPORT.BadJs.report("ArticleMask:Error","splitText Error",{mid:"mmbizwap:articlemask_Monitor",view:"wap_business",_info:{type:"disputeText textNode",data:e,cursor:i}})}const s=o.nextSibling;try{s.splitText(n)}catch(d){"undefined"!=typeof WX_BJ_REPORT&&WX_BJ_REPORT.BadJs&&WX_BJ_REPORT.BadJs.report("ArticleMask:Error","splitText Error",{mid:"mmbizwap:articlemask_Monitor",view:"wap_business",_info:{type:"disputeText nextSibling",data:e,cursor:i}})}const r=document.createElement("span");r.style="background-color: rgba(0,0,0,0.10);",r.appendChild(s.cloneNode(!0)),s.parentNode.replaceChild(r,s)}function Ci(e,t){const i=document.createElement("span");i.style="position:relative;display: inline-block;";const n=document.createElement("span");n.style="\n position: absolute;\n top: 4px;\n left: 4px;\n display: inline-block;\n vertical-align: middle;\n width: 24px;\n height: 24px;\n background-size: cover;\n background-image: url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E %3Cpath fill='%23FFF' fill-rule='evenodd' d='M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm-.004 13.339a.878.878 0 0 0-.896.882c0 .499.396.882.896.882.512 0 .902-.383.902-.882 0-.5-.39-.882-.902-.882zm.765-9.203h-1.524l.11 7.596h1.305l.11-7.596z'/%3E%3C/svg%3E\");\n ";const o=t.parentNode;i.appendChild(t.cloneNode(!1)),o.replaceChild(i,t),i.appendChild(n)}function Si(e,t){t.style.filter="blur(10px)",t.style["-webkit-filter"]="blur(10px)"}function Ei(e,t){const{data:i,meta:n,index:o,idx:a}=e,s=t.data,r=(n||"")+i;if(-1===s.indexOf(r))return{hit:!1};const d=Le.getNodeByIndex(vi[a],o);d?xi++:"undefined"!=typeof WX_BJ_REPORT&&WX_BJ_REPORT.BadJs&&WX_BJ_REPORT.BadJs.report("ArticleMask:Error","text node cannot find",{mid:"mmbizwap:articlemask_Monitor",view:"wap_business",_info:{anchor:e,wholeText:s}});const c=d&&d.innerText.indexOf(r)+(n||"").length;return{hit:!!d,$hitDom:d,cursor:c}}function ji(e,t){const{index:i,idx:n,data:o}=e,a=vi[n].querySelectorAll("img")[i];return(a&&(a.getAttribute("data-src")||a.getAttribute("src")))===o?(xi++,{hit:!0,$hitDom:t,cursor:0}):{hit:!1}}function Ri(e,t){return(i,n,o)=>{const{hit:a,$hitDom:s,cursor:r}=i(e,t);a&&(n(e.data,s,r),o())}}function Bi(e,t){if(!e)return null;const{type:i,data:n,meta:o}=t;if(i===Oe.text){const t=e.innerText||"",i=((o||"")+n).replace(/&/g,"&");if(-1!==t.indexOf(i)){return{cursor:t.indexOf(i)+(o||"").length,node:e}}}if(i===Oe.img){if((e&&(e.getAttribute("data-src")||e.getAttribute("src")))===n.replace(/&/g,"&"))return{cursor:0,node:e}}return null}function Ni(e,t){vi=Le.getParaList(e,{getNestedStructure:!0,removeIgoreEle:!1});const i=(n="idx",t.reduce(((e,t)=>(void 0===t[n]||(e[t[n]]||(e[t[n]]=[]),e[t[n]].push(t)),e)),{}));var n;vi&&((vi||[]).forEach(((e,t)=>{const n=i[t];n&&n.length>0&&(Ai(t,(n[0],'以下内容存在争议 了解更多')),function(e,t){const i=[],n=[...e];i.push(t);let o=null;const a=()=>{o=n.shift()};for(a();i.length>0&&n.length>=0&&o;){const e=i.pop();if(!e)continue;if(!o)continue;const{nodeType:t,tagName:n}=e,s=Ri(o,e);if(3===t){o.type===Oe.text&&s(Ei,o.status===ki.ban?Ii:Ti,a);continue}if(1===t&&n===ze){o.type===Oe.img&&s(ji,o.status===ki.ban?Si:Ci,a);continue}const r=e.childNodes;for(let o=r.length-1;o>=0;o--)i.push(r[o])}}(n,e))})),t&&t.length!==xi&&"undefined"!=typeof WX_BJ_REPORT&&WX_BJ_REPORT.BadJs&&WX_BJ_REPORT.BadJs.report("ArticleMask:Error","totalHit",{mid:"mmbizwap:articlemask_Monitor",view:"wap_business",_info:{totalHit:xi,anchors:t}}))}function Pi(e,t){const i=[],n=[],o=[],a={};t.forEach(((t,s)=>{const{selector:r,index:d,total:c}=function(e){if(!e)return{};const[t,i]=e.split("|"),[n,o]=i.split(" ");return{selector:t.replace(/>/g,">"),total:1*n,index:1*o}}(t.selector);let l=a[r]||[];if(0===l.length)try{l=e.querySelectorAll(r),a[r]=l}catch(g){"undefined"!=typeof WX_BJ_REPORT&&WX_BJ_REPORT.BadJs&&WX_BJ_REPORT.BadJs.report("ArticleMask:Error","splitText Error",{mid:"mmbizwap:articlemask_Monitor",view:"wap_business",_info:{anchor:t}})}let p=d,_=d;const m=[];let u=null,w=0,h=0;for(m.push(l[d]);m.length;){const e=Bi(m.pop(),t);if(h++,e&&e.node){u=e.node,w=e.cursor;break}p-1>=0&&l[p-1]&&(m.push(l[p-1]),p-=1),_+1了解更多')}(u)):r&&-1!==r.lastIndexOf(">")&&i.push({...t,selector:r&&r.slice(0,r.lastIndexOf(">"))+`|${c} ${d}`}),n[s]=h})),o.forEach((e=>{!function(e,t,i){const{type:n,data:o,status:a}=e;a===ki.ban&&(n===Oe.text&&Ii(o,t,i),n===Oe.img&&Si(0,t))}(e.anchor,e.node,e.cursor)})),i.length&&(Pi(e,i),"undefined"!=typeof WX_BJ_REPORT&&WX_BJ_REPORT.BadJs&&WX_BJ_REPORT.BadJs.report("ArticleMask:Error","missNodes",{mid:"mmbizwap:articlemask_Monitor",view:"wap_business",_info:{missNodes:i}})),"undefined"!=typeof WX_BJ_REPORT&&WX_BJ_REPORT.BadJs&&WX_BJ_REPORT.BadJs.report("ArticleMask:Info","querycount",{mid:"mmbizwap:articlemask_Monitor",view:"wap_business",_info:{countList:n}})}const Di={init:function(e,t){let i=[],n=[];t.forEach((e=>{e.selector?n.push(e):i.push(e)})),function(e,t){Pi(e,t)}(e,n),i.length>0&&Ni(e,i)}},qi=function(e,t){let i=!1,n=e;if(e===t)i=!0;else for(;n.parentNode&&(n=n.parentNode,1!==n.nodeType||"body"!==n.tagName.toLowerCase());)if(n===t){i=!0;break}return i},Li=function(e){this.biz=e.biz,this.logid=e.logid,this.baseData=e.baseData,this.isPaySubscribe=e.isPaySubscribe,this.container=e.container,this.totalLength=this.container.innerText.length,this.initEvent()};Li.prototype.initEvent=function(){ye.on(document,"copy",(()=>{const e=[].concat(this.baseData),t=this.getContentData().trim();t.length&&(e.push(this.totalLength),e.push(""),e.push(t.length),e.push(this.isPaySubscribe),this.report(e.join(",")))}))},Li.prototype.getContentData=function(){const e=document.getSelection(),t=this.container;let i="";if(e&&e.rangeCount){const n=e.getRangeAt(0);if(!n.collapsed){const o=n.startContainer,a=n.startOffset,s=n.endContainer,r=n.endOffset,d=qi(o,t),c=qi(s,t);if(d&&c)i=n.toString();else if(d||c){const e=document.createRange();e.setStart(o,a),e.setEnd(s,r),!c&&e.setEndAfter(t),!d&&e.setStartBefore(t),i=e.toString()}else if(e.containsNode&&e.containsNode(t,!0)){const e=document.createRange();e.setEndAfter(t),e.setStartBefore(t),i=e.toString()}}}return i},Li.prototype.report=function(e){const t=this.biz,i=this.logid;pe({url:"/mp/webcommreport?action=report&report_useruin=1&__biz="+t,type:"POST",data:{logid:i,buffer:e},async:!1,timeout:2e3})};let Oi=null;if(window.parent!==window){let e=function(e){let t;console.log("[IFRAME RECEIVE MESSAGE]: ",e),e.origin?t=e.origin:e.originalEvent&&(t=e.originalEvent.origin),/^http(s)?\:\/\/finance\.qq\.com$/.test(t)&&/^http(s)?\:\/\/gu\.qq\.com$/.test(t)&&/^http(s)?\:\/\/wzq\.tenpay\.com$/.test(t)&&e.source&&(e.data,document.getElementsByTagName("body")[0],document.getElementById("activity-name"),document.getElementById("meta_content"),document.getElementById("page-content"))};document.getElementsByTagName("html")[0].style.width="1px",document.getElementsByTagName("html")[0].style.minWidth="100%",document.getElementById("js_content"),document.getElementById("img-content");let t=document.getElementById("page-content");document.getElementsByClassName("rich_media_area_extra")[0].style.display="none",Oi=function(e){console.info("postPageHeightMessage");let i=getComputedStyle(t);window.parent.postMessage({name:e,data:parseFloat(i.height)},"http://finance.qq.com"),window.parent.postMessage({name:e,data:parseFloat(i.height)},"http://gu.qq.com"),window.parent.postMessage({name:e,data:parseFloat(i.height)},"https://gu.qq.com"),window.parent.postMessage({name:e,data:parseFloat(i.height)},"https://wzq.tenpay.com"),window.parent.postMessage({name:e,data:parseFloat(i.height)},"https://www.tentrees.cn/")},Oi("pageHeight"),window.addEventListener("message",e,!1)}const zi=Oi,Wi={copyright_top:0};function Mi(e){let t=["/mp/copyrightreport?action=report&biz=",biz,"&scene=",e.scene,"&user_uin=",user_uin,"&uin=",uin,"&key=",key,"&pass_ticket=",pass_ticket,"&mid=",window.mid,"&idx=",window.idx,"&source_biz=",window.source_biz,"&source_mid=",window.source_mid,"&source_idx=",window.source_idx,"&card_version=2","&show_appmsg_scene=",window.source,"&session_id=",window.sessionid,"&has_recommend_msg=",window.hasRecommendMsg,"&reprint_type=",window.reprint_type,"&t=",Math.random()].join("");window.isSg&&(t+="&from=sougou"),(new Image).src=t.substr(0,1024)}function $i(){(window.pageYOffset||document.documentElement.scrollTop)+le.getInnerHeight()>Wi.copyright_top&&(Mi({scene:"1",card_pos:"0"}),ye.off(window,"scroll",$i),$i=Wi.copyright_top=null)}function Hi(e){return document.getElementById(e)}const Ui={card_click_report:Mi,card_pv_report:function(){if("2"==__appmsgCgiData.copyright_stat){let e=Hi("copyright_info"),t=Hi("js_article");for(;e&&t!==e;)Wi.copyright_top+=e.offsetTop,e=e.offsetParent;ye.on(window,"scroll",$i),$i()}}};const Fi={oldTagName:"redpacketcover",tagName:"mp-common-redpacket",isWechat:be.isOnlyWechat,domMap:{},dataMap:{},startTime:window.page_begintime||0,screen_height:le.getInnerHeight(),screen_num:0,pvData:[],request_id:encodeURIComponent(window.biz+";"+window.mid+";"+window.idx+";"+window.page_begintime||0),hasBindVisibility:!1,hasBindScroll:!1,needReportNum:0,reportedNum:0},Ji=Object.prototype.hasOwnProperty,Vi=(e={})=>{const t=window.pageYOffset||document.documentElement.scrollTop,i=(window.logs.read_height||t)+Fi.screen_height,n={BizUin:window.biz,MsgId:1*window.mid,Idx:1*window.idx,CoverUri:e.coverUri,Scene:1*window.source,Subscene:1*window.subscene,CoverStatus:1*e.coverStatus,EventType:1*e.eventType,EventScreenNum:Math.ceil(i/Fi.screen_height)||1,ScreenNum:Fi.screen_num,StartTimeMs:Fi.startTime};Ae.report(19119,n)};let Xi=()=>{const e=(window.pageYOffset||document.documentElement.scrollTop)+Fi.screen_height;for(let t=0;t=i.start&&e<=i.end&&(Fi.reportedNum++,Fi.dataMap&&Fi.dataMap[i.coverUri]&&(Fi.dataMap[i.coverUri].reported=!0),Vi({eventType:2,coverUri:i.coverUri,coverStatus:Fi.dataMap[i.coverUri].status}),Fi.pvData.splice(t,1),t--)}Fi.reportedNum>=Fi.needReportNum&&(ye.off(window,"scroll",Xi),Fi.pvData=[],Xi=null)};const Gi=(e={})=>{if(!Fi.isWechat)return;Fi.scroll_height=document.body.scrollHeight||document.body.offsetHeight,Fi.screen_num=Math.ceil(Fi.scroll_height/Fi.screen_height);let t=e.node;if(Fi.dataMap[e.coveruri]&&1*Fi.dataMap[e.coveruri].status!=-1&&!Fi.dataMap[e.coveruri].reported){let i=t.getBoundingClientRect();Fi.pvData.push({start:i.top+i.height/2,end:i.top+i.height/2+Fi.screen_height,coverUri:e.coveruri})}Fi.pvData.length>0&&(!Fi.hasBindScroll&&Xi&&(Fi.hasBindScroll=!0,ye.on(window,"scroll",Xi)),Xi())};let Ki=null;Ki=(e={})=>{if(!e.node||!e.data||!e.data.coveruri)return;const{data:t={},node:i=null,isUpdate:n}=e;for(let o in t)Ji.call(t,o)&&i.setAttribute(`data-${o}`,encodeURIComponent(t[o]));if(i.classList.add("js_wx_tap_highlight"),!n&&t.receiveimg){let e=i.parentNode.querySelector('[data-preloadingid="'+t.coveruri+'"]');e&&e.parentNode.removeChild(e),Fi.domMap[t.coveruri]=i,((e={})=>{Fi.dataMap[e.coveruri]&&ye.on(e.dom,"click",(function(){if(window.is_temp_url)new Te({msg:"预览时不支持领取红包封面"});else if(Fi.isWechat){let t=e.dom.getAttribute("data-coveruri")||"",i=t&&Fi.dataMap[t]?Fi.dataMap[t].redirect_url:"";i&&(Vi({eventType:1,coverUri:t,coverStatus:Fi.dataMap[t].status}),ve.invoke("openUrlWithExtraWebview",{url:i,openType:1},(function(e){-1===e.err_msg.indexOf("ok")&&(locations.href=i)})))}else new Te({msg:"请在微信客户端打开"})})),!Fi.hasBindVisibility&&Fi.isWechat&&(Fi.hasBindVisibility=!0,le.listenStateChange({cb:function(e){"onResume"!==e.state_change&&"onResume"!==e.state||pe({type:"GET",dataType:"json",url:"/mp/wapredpacketcover?action=get_red_packet_cover_data&__biz="+window.biz+"&mid="+window.mid+"&idx="+window.idx+"&sn="+window.sn+"&send_time="+window.send_time,timeout:1e4,success:e=>{if(e&&e.base_resp&&1*e.base_resp.ret==0&&e.red_packet_cover_data&&e.red_packet_cover_data.cover_uri_data&&e.red_packet_cover_data.cover_uri_data.length>0){const t=e.red_packet_cover_data.cover_uri_data;for(let e=0,i=t.length;e{const t={receive_image:"receiveimg",cover_uri:"coveruri",is_synthetic:"synthetic"};for(let i in t)Ji.call(t,i)&&(e[t[i]]=e[i],delete e[i])},Yi={init:()=>{const e=document.querySelectorAll(Fi.tagName);if(window.__appmsgCgiData&&1*window.__appmsgCgiData.has_red_packet_cover==1){if(!Fi.isWechat)for(let t=0,i=e.length;t0&&window.__addIdKeyReport&&window.__addIdKeyReport("27613","51",1)},render:(e={})=>{if(!e.list||0===e.list.length)return;for(let o=0,a=e.list.length;o=t&&r<=i&&d>=n&&d<=o&&c>=a&&c<=s}const tn=e=>{const{backgroundColor:t,color:i}=window.getComputedStyle(e),n=Zi(t),o=Zi(i);return!!(en(o,210,230,40,60,40,60)&&o[3]>.2)||!!((en(n,0,360,0,20,15,85)||en(n,0,360,20,100,15,100))&&n[3]>.2)},nn=(e,t,i,n)=>{e||(e="");const o=document.createElement("span");if(t<=i){const a=e.slice(t,i+1);n&&(o.className="js_search_highlight wx_search_highlight"),o.innerText=a}return o},on=(e,t,i,n)=>{if(!e||!t)return;if(i>n)return;let o=t.textContent,a=o.length;i>0&&e.insertBefore(nn(o,0,i-1,!1),t),n{if(!e||!t)return;if(i>n)return;let o=t.textContent,a=o.length;i>0&&e.insertBefore(nn(o,0,i-1,!1),t),n{e||(e="");const n=document.createElement("a");if(t<=i){const o=e.slice(t,i+1);n.innerText=o}return n})(o,i,n);return e.replaceChild(s,t),s};function rn(e,t,i){let n,o=t,a=i;const s=e=>{const t=e.childNodes.length;for(let i=0;ia);i++){let r=e.childNodes[i];if(!r)break;if(1===r.nodeType&&s(r),3===r.nodeType){let i=r.textContent,s=i.length,d=e;if(t>1&&(d=nn(i,0,s-1,!1),e.replaceChild(d,r),r=d.childNodes[0]),o>=0&&a<=s-1){on(d,r,o,a),o=0,a=-1,n=d;break}a>s-1&&(on(d,r,o,s-1),o<=s?(a-=s,o=0):(a-=s,o-=s))}}};return s(e),n}const dn=Je({name:"mp-sponsor-ad",components:{[d.name]:d},data:()=>({posType:c.AD_POS.POS_SPONSOR}),methods:{handleAdFrameMessage(e){e===c.FRAME_READY&&l.report115849(63)}}},(function(){var e=this;return(0,e._self._c)("mp-ad-frame",{attrs:{"pos-type":e.posType},on:{"ad-frame-message":e.handleAdFrameMessage}})}),[],!1,null,null,null,null).exports;const cn=Je({name:"mp-pay-wall",filters:{formatNum:e=>e>=1e4?"en"===window.LANG?"10k+":"1万+":e},data:()=>({perLine:p.getCountPerLine()}),computed:{..._(["cgiData","extRes"]),..._("mp-pay-read",["paySubscribeInfo"]),total(){return 3*this.perLine},wrapWidth(){return 40*this.perLine-8},avatarList(){var e,t,i,n;return this.paySubscribeInfo?this.cgiData.isPaid&&!this.cgiData.payFreeGift?[null==(e=this.paySubscribeInfo)?void 0:e.my_head_img_info,...((null==(t=this.paySubscribeInfo)?void 0:t.pay_head_img_infos)||[]).slice(0,this.total-1)]:(null==(n=null==(i=this.paySubscribeInfo)?void 0:i.pay_head_img_infos)?void 0:n.slice(0,this.total))||[]:[]}},methods:{onPayNumClick(){p.goUrl(`/mp/paysub?action=evalsuate_show_page&__biz=${this.cgiData.biz}&product_type=${this.cgiData.productPayPackage.product_type}&product_id=${this.cgiData.productPayPackage.product_id}&sn=${this.cgiData.sn}&link=${encodeURIComponent(this.cgiData.msg_link)}&from_scene=${this.cgiData.source}&from_subscene=${this.cgiData.subscene}&is_fans=${this.cgiData.isFans}`)},onRewardNumClick(){const e=(Math.ceil((le.getInnerHeight()-188)/42)+1)*Math.floor((innerWidth-15)/42);p.goUrl(`/mp/reward?act=getrewardheads&__biz=${this.cgiData.biz}&appmsgid=${this.cgiData.mid}&idx=${this.cgiData.idx}&sn=${this.cgiData.sn}&offset=0&count=${e}&source=1`)}}},(function(){var e=this,t=e._self._c;return e.paySubscribeInfo&&e.paySubscribeInfo.pay_cnt?t("div",{staticClass:"pay__detail-wrp pay__detail-wrp_inner pay__detail-wrp_v2",attrs:{id:"js_pay_wall_wrap"}},[t("div",{staticClass:"pay__detail"},[t("div",{staticClass:"pay__detail-content"},[t("div",{staticClass:"pay__detail-summary"},[t("span",[t("a",{attrs:{id:"js_pay_num","aria-labelledby":"js_pay_num js_pay_num_txt",href:"javascript:;"},on:{click:e.onPayNumClick}},[e._v(e._s(e._f("formatNum")(e.paySubscribeInfo&&e.paySubscribeInfo.pay_cnt)))]),e._v(" 人付费")]),e.extRes.reward_total_count?t("span",[e._v(","),t("a",{attrs:{"aria-labelledby":"js_pay_reward_num js_pay_reward_num_txt",id:"js_pay_reward_num",href:"javascript:;"},on:{click:e.onRewardNumClick}},[e._v(e._s(e._f("formatNum")(e.extRes.reward_total_count)))]),e._v(" 人赞赏")]):e._e()]),t("div",{staticClass:"pay__detail-wall-wrp",style:{width:`${e.wrapWidth}px`}},[t("div",{staticClass:"pay__detail-wall",attrs:{id:"js_pay_wall"}},e._l(e.avatarList,(function(e){return t("div",{key:e.head_img_url,class:"pay__avatar-wrp "+(e.hide_status>0?"pay__avatar-mask":"")},[t("img",{attrs:{alt:"",src:e.head_img_url}})])})),0)])])])]):e._e()}),[],!1,null,null,null,null).exports;const ln=Je({name:"mp-pay-btn",computed:{..._(["cgiData"]),..._("mp-pay-read",["loading","isInMiniProgram"])},methods:{...m("mp-pay-read",["payFunc"])}},(function(){var e=this,t=e._self._c;return t("button",{ref:"payPanelBtn",staticClass:"js_pay_btn js_article_bottom weui-btn weui-btn_loading",class:{btn_disabled:e.isInMiniProgram},on:{click:e.payFunc}},[e.loading?t("div",{staticClass:"js_button_loading"},[e._m(0),e._v(" Loading... ")]):t("div",[t("i",{staticClass:"pay__icon-wecoin"}),t("span",{staticClass:"price js_pay_fee",attrs:{id:"js_pay_fee_normal"}},[e._v(e._s(e.cgiData.wecoin_amount))]),e._v(" 微信豆兑换 ")])])}),[function(){var e=this._self._c;return e("span",{staticClass:"weui-primary-loading weui-primary-loading_transparent"},[e("i",{staticClass:"weui-primary-loading__dot"})])}],!1,null,null,null,null).exports,pn=8+window.parseInt(window.getComputedStyle(document.documentElement).getPropertyValue("--sab"));let _n=0,mn=0,un=!1,wn=0;const hn=window.scrollY,gn=window.innerHeight/3;const fn=Je({name:"mp-pay-gift",data:()=>({giftBarTitleText:"可赠送给一位朋友免费阅读"}),computed:{..._(["cgiData"]),..._("mp-pay-read",["paySubscribeInfo"])},mounted(){const e=window.localStorage.getItem("paySuc"),t=this.$refs.giftBar.getBoundingClientRect().top;"1"===e&&t>window.innerHeight?(window.localStorage.setItem("paySuc","0"),this.$refs.giftBar.className="pay__gift-send show",this.giftBarTitleText="已兑换,可赠送给一位朋友",p.reportSend(2),ye.on(window,"scroll",this.scrollHandler),ye.on(this.$refs.giftBar,"touchstart",this.touchStartHandler),ye.on(this.$refs.giftBar,"touchmove",this.touchMoveHandler),ye.on(this.$refs.giftBar,"touchend",this.touchEndHandler)):!xe.hasClass(this.$refs.giftBar,"show")&&t<=window.innerHeight&&(this.$refs.giftBar.className="pay__gift-send pay__gift-send_static",p.reportSend(4))},beforeDestroy(){ye.off(window,"scroll",this.scrollHandler)},methods:{present(){if(_e.os.iphoness||_e.os.ipads||_e.os.androids){let e=this.paySubscribeInfo.gift_url.html(),t="";const i=e.indexOf("#");-1!==i&&(t=e.substring(i),e=e.substring(0,i)),xe.hasClass(this.$refs.giftBar,"pay__gift-send_static")?p.reportSend(5):p.reportSend(3),p.goUrl(`${e}&sessionid=${this.cgiData.sessionid}&enterid=${this.cgiData.enterid}&scene=${this.cgiData.source}&subscene=${this.cgiData.subscene}&biz=${this.cgiData.biz}&mid=${this.cgiData.mid}&idx=${this.cgiData.idx}${t}`)}else window.weui.alert("请使用移动端微信打开")},touchStartHandler(e){xe.hasClass(this.$refs.giftBar,"show")&&(un=!0,wn=e.touches[0].clientY,_n=mn)},touchMoveHandler(e){e.preventDefault();const t=e.touches[0].clientY-wn;xe.hasClass(this.$refs.giftBar,"show")&&un&&(t+_n>=0&&t+_n<=pn?(this.$refs.giftBar.style.transform=`translate3d(0, ${t+_n}px, 0)`,mn=t+_n):t+_n>pn?(this.$refs.giftBar.style.transform=`translate3d(0, ${pn}px, 0)`,mn=pn):t+_n<0&&(this.$refs.giftBar.style.transform="translate3d(0, 0, 0)",mn=0))},touchEndHandler(){un=!1,xe.hasClass(this.$refs.giftBar,"show")&&mn===pn&&(this.$refs.giftBar.className="pay__gift-send",ye.off(this.$refs.giftBar,"touchstart",this.touchStartHandler),ye.off(this.$refs.giftBar,"touchmove",this.touchMoveHandler),ye.off(this.$refs.giftBar,"touchend",this.touchEndHandler))},scrollHandler(){const e=document.getElementById("js_pay_wall_wrap").getBoundingClientRect();e.top+e.height-48<=window.innerHeight?(this.giftBarTitleText="可赠送给一位朋友免费阅读",this.$refs.giftBar.className="pay__gift-send pay__gift-send_static",this.$refs.giftBar.style.transform="translate3d(0, 0, 0)",ye.off(this.$refs.giftBar,"touchstart",this.touchStartHandler),ye.off(this.$refs.giftBar,"touchmove",this.touchMoveHandler),ye.off(this.$refs.giftBar,"touchend",this.touchEndHandler),ye.off(window,"scroll",this.scrollHandler),p.reportSend(4)):window.scrollY-hn>gn&&(this.$refs.giftBar.className="pay__gift-send")}}},(function(){var e=this,t=e._self._c;return t("div",{ref:"giftBar",staticClass:"pay__gift-send_static pay__gift-send",attrs:{id:"js_pay_gift_bar"}},[t("div",{staticClass:"pay__gift-send-content"},[t("div",{staticClass:"pay__gift-send-title",attrs:{id:"js_pay_gift_bar_title"}},[e._v(" "+e._s(e.giftBarTitleText)+" ")])]),t("div",{staticClass:"pay__gift-send-btn",attrs:{id:"js_send_pay_gift"},on:{click:e.present}},[e._v("去赠送")])])}),[],!1,null,null,null,null).exports;const yn=Je({name:"mp-pay-read-qrcode",computed:{src(){if(be.isWindows||be.isMac&&!be.isioses){return`/mp/paysubqrcode?action=get_article_qrcode&__biz=${window.biz}&mid=${window.mid}&idx=${window.idx}&sn=${window.sn}#wechat_redirect`}return""}}},(function(){var e=this,t=e._self._c;return t("div",{staticClass:"pay__notice-qrcode js_pay_qrcode_wrap js_pay_fee_display"},[t("div",{staticClass:"pay__qrcode-wrp"},[t("img",{staticClass:"js_pay_qrcode",attrs:{src:e.src}})]),t("div",{staticClass:"pay__qrcode-title"},[e._v("微信扫一扫付费阅读本文")])])}),[],!1,null,null,null,null).exports;const bn=Je({name:"mp-pay-read-bottom",components:{[yn.name]:yn,[ln.name]:ln},props:{payTopicNoticeText:{type:String,default:""},visible:{type:Boolean}},data:()=>({addLargeFontStyle:!1}),computed:{..._(["cgiData"]),..._("mp-pay-read",["wecoinText","loading"]),...u("mp-pay-read",["topicLink"])},created(){this.unwatchVisible=this.$watch("visible",(e=>{if(e){const e=this.$refs.button.$el.getBoundingClientRect().height,t=this.$refs.content.getBoundingClientRect().height;this.addLargeFontStyle=t/e>108/52,this.unwatchVisible()}}))},methods:{...m("mp-pay-read",["payFunc","goBuyTopic"])}},(function(){var e=this,t=e._self._c;return 1!==e.cgiData.isPayTopic?t("div",{staticClass:"pay pay__notice",class:{pay__notice_largeFont:e.addLargeFontStyle},attrs:{id:"js_pay_panel_bottom"}},[t("div",{staticClass:"pay__notice-intro"},[t("div",{ref:"content",staticClass:"pay__intro-content"},[t("p",{staticClass:"pay__notice-title"},[e._v(" 可试读"+e._s(e.cgiData.preview_percent)+"% ")]),t("div",{staticClass:"pay__notice-desc",attrs:{id:"js_pay_panel_bottom_wecoin_tips"}},[e._v(" "+e._s(e.wecoinText)+" ")])]),t("div",{staticClass:"pay__notice-btn-wrp"},[t("mp-pay-btn",{ref:"button"}),t("mp-pay-read-qrcode")],1)])]):t("div",{staticClass:"pay pay__notice pay__topic-notice",attrs:{id:"js_pay_topic_panel_bottom"}},[t("div",{staticClass:"pay__notice-intro"},[t("div",{staticClass:"pay__intro-content"},[t("div",{staticClass:"pay__notice-desc"},[e._v(" "+e._s(e.payTopicNoticeText)+" ")]),t("p",{staticClass:"pay__notice-title"},[e._v(e._s(e.cgiData.payTopicTitle))])]),t("div",{staticClass:"pay__notice-btn-wrp"},[t("button",{staticClass:"js_pay_topic_btn weui-btn",class:{btn_disabled:e.cgiData.payTopicRemoveFlag>0},attrs:{"data-url":e.topicLink},on:{click:e.goBuyTopic}},[e._v(" 合集详情 ")]),t("mp-pay-read-qrcode")],1)])])}),[],!1,null,null,null,null).exports;const vn=Je({name:"mp-buy-wecoin-btn",computed:{..._("mp-pay-read",["wecoinRemain"])}},(function(){var e=this,t=e._self._c;return t("div",{staticClass:"pay__wecoin-entry"},[t("i",{staticClass:"pay__icon-wecoin"}),t("span",{staticClass:"price",attrs:{id:"js_wecoin_remain"}},[e._v(e._s(e.wecoinRemain))])])}),[],!1,null,null,null,null).exports;const xn=Je({name:"mp-pay-edu-tips",components:{[h.name]:h},computed:{..._(["cgiData"]),..._("mp-pay-read",["payEduTips"]),top:()=>window.innerHeight-467},methods:{...g("mp-pay-read",["setWecoinRemain","setPayLock","setPayEduTips"]),hideEduTipsCb(){this.$refs.bottomModal.hide(),f.show(),ve.invoke("getWCCoinBalance",{},(e=>{f.hide(),e&&e.err_msg&&e.err_msg.indexOf("ok")>-1?(this.setWecoinRemain(e.balance),this.$emit("show-confirm")):this.setPayLock(!1)})),this.setPayEduTips({...this.payEduTips,firstWecoinRecharge:0})},show(){this.$refs.bottomModal.show()}}},(function(){var e=this,t=e._self._c;return t("mp-bottom-modal",{ref:"bottomModal",attrs:{"ext-class":"pay__edu-modal","has-header":!1,top:`${e.top}px`},on:{hide:e.hideEduTipsCb},scopedSlots:e._u([{key:"footer",fn:function(){return[t("a",{staticClass:"weui-btn weui-btn_default",on:{click:e.hideEduTipsCb}},[e._v("OK")])]},proxy:!0}])},[t("div",{staticClass:"pay__wecoin-edu-profile"},[t("div",{staticClass:"pay__wecoin-edu-title"},[e._v(" 可在「我>个人信息>微信豆」页面,查看微信豆消费明细。 ")]),t("div",{staticClass:"pay__wecoin-edu-pic"},[t("div",{staticClass:"pay__wecoin-edu-avatar"},[t("img",{attrs:{src:e.payEduTips&&e.payEduTips.userImgUrl}})]),t("div",{staticClass:"pay__wecoin-edu-nic"},[e._v(" "+e._s(e.payEduTips&&e.payEduTips.userNickname)+" ")])])])])}),[],!1,null,null,null,null).exports;const kn=Je({name:"mp-pay-confirm",components:{[h.name]:h,[xn.name]:xn,[vn.name]:vn},props:{title:{type:String,default:""}},data:()=>({agreeStat:!1}),computed:{..._(["cgiData"]),..._("mp-pay-read",["wecoinRemain","payEduTips","encodeRespBuff"]),needTopup(){return this.wecoinRemain{y.reportPayAppmsg(19),ue.log("[Appmsg] pay process 6.1 buyWCCoin");const e=e=>{f.hide(),e&&e.err_msg&&e.err_msg.indexOf("ok")>-1&&(this.setWecoinRemain(e.balance),this.needTopup?this.show():this.consumeWCCoin())},t={businessId:2,scene:4,panelShowType:"present",diffWecoinCount:this.cgiData.wecoin_amount>this.wecoinRemain?this.cgiData.wecoin_amount-this.wecoinRemain:0};be.isandroids&&be.gtVersion("8.0.18",!0)&&(t.mode=2,t.agreementVersion=this.cgiData.paySubscribeInfo.agreement_version,t.customCount=this.cgiData.wecoin_amount-this.wecoinRemain,t.productId=this.cgiData.paySubscribeInfo.recharge_product_id),ve.invoke("buyWCCoin",t,(t=>{console.log(t),t&&t.err_msg&&(t.err_msg.indexOf("ok")>-1?be.isioses&&be.ltVersion("8.0.17")||be.isandroids&&be.ltVersion("8.0.17")?this.payEduTips.firstWecoinRecharge?this.$refs.eduTipsModal.show():(f.show(),ve.invoke("getWCCoinBalance",{},e)):ve.invoke("showWCCoinFirstBuyCoinTips",{alwaysDarkMode:!1},(()=>{f.show(),ve.invoke("getWCCoinBalance",{},e)})):t.err_msg.indexOf("cancel")>-1&&this.show())}))}),250)):(this.hide(),this.consumeWCCoin())},consumeWCCoin(){const{encodeRespBuff:e}=this;ue.log(`[Appmsg] pay process 3 can_use_wecoin=${this.cgiData.can_use_wecoin}`),ue.log("[Appmsg] pay process 4 on payBtn tap"),f.show();const t=Math.round(new Date/1e3);ve.invoke("consumeWCCoin",{buff:e,businessId:2},(i=>{console.log("consumeWCCoin res",i),this.setPayLock(!1),i&&i.err_msg&&i.err_msg.indexOf("ok")>-1?(y.reportPay(t,1,e),this.pollCheck()):i&&i.err_msg&&i.err_msg.indexOf("fail")>-1&&(y.reportPay(t,3,e,i.err_msg,i.err_code,i.err_domain),weui.alert("兑换失败,请稍后再试"))}))},buyWecoin(){this.hide();const e=e=>{f.hide(),e&&e.err_msg&&e.err_msg.indexOf("ok")>-1&&(this.setWecoinRemain(e.balance),this.show())};setTimeout((()=>{y.reportPayAppmsg(14);const t=this.needTopup?this.cgiData.wecoin_amount-this.wecoinRemain:0;ve.invoke("buyWCCoin",{businessId:2,scene:3,panelShowType:"present",diffWecoinCount:t},(t=>{console.log(t),t&&t.err_msg&&(t.err_msg.indexOf("ok")>-1?be.isioses&&be.ltVersion("8.0.17")||be.isandroids&&be.ltVersion("8.0.17")?this.payEduTips.firstWecoinRecharge?this.$refs.eduTipsModal.show():(f.show(),ve.invoke("getWCCoinBalance",{},e)):ve.invoke("showWCCoinFirstBuyCoinTips",{alwaysDarkMode:!1},(()=>{f.show(),ve.invoke("getWCCoinBalance",{},e)})):t.err_msg.indexOf("cancel")>-1&&this.show())}))}),250)}}},(function(){var e=this,t=e._self._c;return t("div",[t("mp-bottom-modal",{ref:"bottomModal",attrs:{"ext-class":"pay__bottom-modal","has-btn":"","auto-height":""},on:{submit:e.buyWecoin,hide:function(t){return e.setPayLock(!1)}},scopedSlots:e._u([{key:"btn",fn:function(){return[t("mp-buy-wecoin-btn")]},proxy:!0},{key:"footer",fn:function(){return[t("div",[e.needTopup?t("div",{ref:"footerTerm",staticClass:"pay__wecoin-term weui-cells_checkbox",attrs:{id:"js_wecoin_term"},on:{click:e.onTermClick}},[t("label",{attrs:{for:"js_wecoin_term_check"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.agreeStat,expression:"agreeStat"}],ref:"wecoinCheck",staticClass:"weui-check",attrs:{id:"js_wecoin_term_check",type:"checkbox"},domProps:{checked:Array.isArray(e.agreeStat)?e._i(e.agreeStat,null)>-1:e.agreeStat},on:{change:function(t){var i=e.agreeStat,n=t.target,o=!!n.checked;if(Array.isArray(i)){var a=e._i(i,null);n.checked?a<0&&(e.agreeStat=i.concat([null])):a>-1&&(e.agreeStat=i.slice(0,a).concat(i.slice(a+1)))}else e.agreeStat=o}}}),t("i",{staticClass:"weui-icon-checked"}),e._v("同意"),t("a",{attrs:{href:"javascript:;"}},[e._v("《微信豆充值协议》")])])]):e._e(),t("div",{staticClass:"weui-half-screen-dialog__btn-area"},[t("a",{ref:"footerBtn",staticClass:"weui-btn weui-btn_primary",attrs:{disabled:e.btnDisabled},on:{click:e.onFooterBtnClick}},[e._v(e._s(e.needTopup?"去充值":"兑换"))])]),t("div",{staticClass:"weui-half-screen-dialog__attachment-wrp",on:{click:e.onLinkClick}},[t("a",{staticClass:"weui-half-screen-dialog__attachment-link",attrs:{href:"javascript:;"}},[e._v("常见问题")])])])]},proxy:!0}])},[t("div",{staticClass:"pay__wecoin"},[t("div",{staticClass:"pay__wecoin-title",staticStyle:{"font-weight":"normal"},attrs:{id:"js_wecoin_title"}},[e._v(" "+e._s(e.wecoinTitle)+" ")]),t("div",{staticClass:"pay__wecoin-content pay__wecoin-content-price"},[t("i",{staticClass:"pay__icon-wecoin"}),t("span",{staticClass:"price",attrs:{id:"js_wecoin_price"}},[e._v(e._s(e.wecoinPrice))])]),t("div",{ref:"wecoinTipsDom",staticClass:"pay__wecoin-tips",attrs:{id:"js_wecoin_tips"}},[e._v(" "+e._s(e.wecoinTips)+" ")])])]),t("mp-pay-edu-tips",{ref:"eduTipsModal",on:{"show-confirm":function(t){return e.$refs.bottomModal.show()}}})],1)}),[],!1,null,null,null,null).exports;const An=Je({name:"mp-wecoin-tips",components:{[h.name]:h},computed:{..._("mp-pay-read",["wecoinText"]),top:()=>innerHeight-375},methods:{onQuestionClick(e){e&&e.preventDefault(),y.reportPayAppmsg(17),ve.invoke("openUrlWithExtraWebview",{url:"https://kf.qq.com/touch/product/WXDB_app.html",openType:1}),this.$refs.bottomModal.hide()},show(){this.$refs.bottomModal.show()}}},(function(){var e=this,t=e._self._c;return t("mp-bottom-modal",{ref:"bottomModal",attrs:{"ext-class":"pay__wecoin-edu-modal",top:`${e.top}px`},scopedSlots:e._u([{key:"footer",fn:function(){return[t("a",{staticClass:"pay__wecoin-edu-link",on:{click:e.onQuestionClick}},[e._v("常见问题")])]},proxy:!0}])},[t("div",{staticClass:"pay__wecoin-edu"},[t("div",{staticClass:"pay__wecoin-title"},[t("div",{staticClass:"pay__icon-wecoin"}),t("div",[e._v("付费内容需用微信豆兑换")])]),t("div",{staticClass:"pay__wecoin-edu-desc"},[e._v(" 微信豆是用于兑换微信内虚拟物品和服务的道具。 "),t("span",[e._v(e._s(e.wecoinText))]),e._v(" 微信豆还可用于兑换直播间的虚拟礼物等。 ")])])])}),[],!1,null,null,null,null).exports;const In=Je({name:"mp-pay-read",components:{[cn.name]:cn,[bn.name]:bn,[yn.name]:yn,[kn.name]:kn,[ln.name]:ln,[An.name]:An,[fn.name]:fn},data:()=>({iapPriceInfo:null,payReadBottomVisible:!1}),computed:{..._(["cgiData","extRes"]),..._("mp-pay-read",["wecoinText","payLock","wecoinRemain","loading","isInMiniProgram","paySubscribeInfo"]),...u("mp-pay-read",["isPaidLSKey","topicLink"]),contentTextLen(){var e;return 1*(null==(e=this.cgiData.payforread_info)?void 0:e.content_plain_text_len)},canGift(){return!!this.paySubscribeInfo&&this.cgiData.payGiftsCount-this.paySubscribeInfo.gifted_count>0},payFee(){var e;return(1*(null==(e=this.cgiData.payforread_info)?void 0:e.fee)/100).toFixed(2)},isPaid(){return this.cgiData.isPaid},previewPercent(){return this.cgiData.preview_percent},payTopicNoticeText(){return 0===this.previewPercent?"兑换合集后可阅读全文":`兑换合集后可阅读剩余${100-this.previewPercent}%`},payTopicFreqText(){const e=this.cgiData.payTopicCount,t=this.cgiData.payTopicTotalCount;return e/(iphoness|ipads|ipods|ioses)/i.test(navigator.userAgent)?"付费后可赠送给一位朋友免费阅读 (1元 = 7微信豆)":"付费后可赠送给一位朋友免费阅读 (1元 = 10微信豆)",tempkey(){return this.cgiData.tempkey},payFeeNormalText(){const{wecoin_amount:e,fee:t}=this.cgiData;return e>0?e:t/10}},watch:{extRes(e){e.pay_subscribe_info&&(this.setPayEduTips({firstWecoinRecharge:1*e.pay_subscribe_info.first_wecoin_recharge,userImgUrl:e.pay_subscribe_info.user_img_url,userNickname:e.pay_subscribe_info.user_nick_name}),this.setPayGlobal({enable_custom_recharge:e.pay_subscribe_info.enable_custom_recharge,agreement_url:e.pay_subscribe_info.agreement_url,agreement_version:e.pay_subscribe_info.agreement_version,agreement_status:e.pay_subscribe_info.agreement_status,recharge_product_id:e.pay_subscribe_info.recharge_product_id,price:e.pay_subscribe_info.price}),e.pay_subscribe_info.wecoin_tips&&(be.isioses||be.isandroids)&&!be.isWxWork&&this.$refs.wecoinTipsModal.show())}},created(){this.iapPriceInfo=this.cgiData.iapPriceInfo},mounted(){ve.on("onScreenShot",(()=>{we.setSum(114217,15,1)})),ue.log(`[Appmsg] pay process 1 isPaySubscribe=${this.cgiData.isPaySubscribe}`),ve.on("onScreenShot",(()=>{y.reportPayAppmsg(6)}));const e=be.isWindows||be.isMac&&!be.isioses,t=document.getElementById("js_content"),i=e=>{"IMG"===e.target.tagName&&e.preventDefault()};e&&(t.addEventListener("dragstart",i),be.isWechat||t.addEventListener("contextmenu",i)),ue.log(`[Appmsg] pay process 2 isPaid=${this.isPaid}`),this.isPaid||this.initPay()},beforeDestroy(){ye.off(this.cgiData,"scroll",this.togglePayPanelBottom)},methods:{...g("mp-pay-read",["setPayEduTips","setPayGlobal","setConfirmModal"]),...m("mp-pay-read",["payFunc","goBuyTopic"]),initPay(){const e=document.getElementById("js_pay_panel");be.isandroids&&"1"===localStorage.getItem(this.isPaidLSKey)&&y.report110809(30),this.cgiData.jump2pay&&ye.on(window,"load",(()=>{window.scrollTo(0,e.getBoundingClientRect().top-le.getInnerHeight()/3)})),this.setConfirmModal(this.$refs.payConfirm),this.togglePayPanelBottom(),ye.on(window,"scroll",this.togglePayPanelBottom)},togglePayPanelBottom(){const e=this.$refs.payReadBottom.$el,t=this.cgiData.isPayTopic?document.getElementById("js_pay_topic_btn"):this.$refs.payBtn.$el,{top:i}=t.getBoundingClientRect(),n=window.getComputedStyle(e);if(i+(40+parseInt(n.paddingTop,10)+parseInt(n.paddingBottom,10))>this.cgiData.innerHeight){if(1*this.cgiData.previewPercent==0)return;if(this.cgiData.isRemovedFromPayTopic&&!this.cgiData.isPaid)return;this.payReadBottomVisible=!0,this.$nextTick((()=>{Array.from(document.getElementsByClassName("js_pay_btn")).forEach((e=>{e.style.width=`${e.getBoundingClientRect().width}px`}))}))}else this.payReadBottomVisible=!1,window.is_finished_preview=1}}},(function(){var e=this,t=e._self._c;return t("div",[e.isPaid?[t("mp-pay-wall"),e.canGift?t("mp-pay-gift"):e._e()]:[e.previewPercent>0?t("div",{staticClass:"pay__mask_static"}):e._e(),t("div",{staticClass:"pay pay__static",attrs:{id:"js_pay_panel"}},[1===e.cgiData.isPayTopic&&e.cgiData.payTopicRemoveFlag>0?t("div",{staticClass:"pay__topic-tips"},[e._v(" "+e._s(1===e.cgiData.payTopicRemoveFlag?"此内容已从合集中移除,不支持付费":"付费合集已被作者删除,不支持付费")+" ")]):e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:!(1!==e.cgiData.isPayTopic||2===e.cgiData.payTopicRemoveFlag),expression:"!(cgiData.isPayTopic !== 1 || cgiData.payTopicRemoveFlag === 2)"}],staticClass:"pay__topic"},[t("div",{staticClass:"pay__topic-hd"},[e._v(" "+e._s(e.payTopicNoticeText)+" ")]),t("div",{staticClass:"pay__topic-bd"},[t("div",{staticClass:"pay__topic-main"},[t("div",{staticClass:"pay__topic-main-wrp"},[t("div",{staticClass:"pay__topic-title"},[e._v(e._s(e.cgiData.payTopicTitle))]),t("div",{staticClass:"pay__topic-meta"},[t("span",{attrs:{id:"js_pay_topic_freq"}},[e._v(" "+e._s(e.payTopicFreqText)+" ")])])]),t("a",{class:`weui-btn weui-btn_mini ${e.cgiData.payTopicRemoveFlag>0&&!e.isPaid?"weui-btn_disabled":"weui-btn_primary"} weui-wa-hotarea pay__topic-btn`,attrs:{id:"js_pay_topic_btn","data-url":e.topicLink,href:"javascript:;"},on:{click:e.goBuyTopic}},[e._v(" 合集详情 ")])]),t("ul",{staticClass:"pay__topic-list"},e._l(e.payTopicList,(function(i,n){return t("li",{key:i},[e._v(e._s(n+1)+". "+e._s(i))])})),0)])]),t("div",{directives:[{name:"show",rawName:"v-show",value:1!==e.cgiData.isPayTopic,expression:"cgiData.isPayTopic !== 1"}],staticClass:"pay__main"},[e.cgiData.payDesc&&0===e.previewPercent?t("div",{staticClass:"pay__head-notice"},[e._v(" 正文需付费后才可阅读 ")]):e._e(),t("div",{staticClass:"pay__notice-btn-wrp"},[t("mp-pay-btn",{ref:"payBtn"}),0!==e.cgiData.payGiftsCount?t("div",{staticClass:"pay__preview-tips",attrs:{id:"js_pay_preview_tips"}},[e._v(" "+e._s(e.previewTipsText)+" ")]):t("div",{staticClass:"pay__preview-tips",attrs:{id:"js_pay_wecoin_tips"}},[e._v(" "+e._s(e.wecoinText)+" ")]),e.tempkey?t("div",{staticClass:"pay__preview-tips js_pay_fee_display"},[e._v(" 预览状态下不会扣费 ")]):e._e(),t("mp-pay-read-qrcode")],1)]),t("mp-pay-wall")],1),t("transition",{attrs:{name:"fade"}},[t("mp-pay-read-bottom",{directives:[{name:"show",rawName:"v-show",value:e.payReadBottomVisible,expression:"payReadBottomVisible"}],ref:"payReadBottom",attrs:{visible:e.payReadBottomVisible,"pay-topic-notice-text":e.payTopicNoticeText}})],1),t("mp-pay-confirm",{ref:"payConfirm"})],t("mp-wecoin-tips",{ref:"wecoinTipsModal"})],2)}),[],!1,null,"da3d9318",null,null).exports,Tn={itemClassName:"album_read_directory_item",albumId:window.appmsg_album_info.id,pageCount:10};let Cn;const Sn=`&cur_album_id=${Tn.albumId}`;function En(){const e=document.createElement("div"),t=document.createElement("span");return t.setAttribute("role","option"),t.innerHTML=`#${window.appmsg_album_info.title}`,e.appendChild(t),e.innerHTML}function jn(){const e=document.createElement("div");e.style.position="relative",e.setAttribute("role","listbox");let t,i,n,o,a,s=[],r=!0,d=!0,c=1;function l(e,s=!1,r=!0){const d=document.createDocumentFragment();if(i)if(s){c=1;for(let t=0;t{e.index=n?t-(i-c):t+(i-c)}))}else r?e.forEach(((e,t)=>{e.index=n?a.index-t-1:a.index+t+1})):e.forEach(((t,i)=>{t.index=n?o.index+(e.length-i):o.index-(e.length-i)}));return e.forEach((e=>{const t=document.createElement("div");if(xe.addClass(t,Tn.itemClassName),e.msgid.toString()===window.mid.toString()&&e.itemidx.toString()===window.idx.toString()?xe.addClass(t,"album_read_directory_current"):1===e.user_read_status&&(xe.addClass(t,"album_read_directory_disabled"),xe.addClass(t,"js_wx_tap_highlight"),xe.addClass(t,"wx_tap_cell")),i){const i=document.createElement("span");i.className="album_read_directory_item_index",i.innerText=`${e.index}.`,t.appendChild(i)}const n=document.createElement("span");n.className="album_read_directory_title_wrp";const o=document.createElement("span");o.className="album_read_directory_title_wrp",o.innerText=e.title,n.appendChild(o),t.setAttribute("data-url",e.url),t.setAttribute("role","option");const a=document.createElement("span");if(e.is_paid){const e="Paid";xe.addClass(a,"wx_icon_pay_tag"),xe.addClass(a,"wx_icon_pay_tag_paid"),a.innerText=e,n.appendChild(a)}else if(e.is_pay_subscribe){const e="Pay";xe.addClass(a,"wx_icon_pay_tag"),a.innerText=e,n.appendChild(a)}t.appendChild(n),d.appendChild(t)})),d}function p(e){1*e.reverse_continue_flag||(r=!1,Cn.disablePullDownLoad()),1*e.continue_flag||(d=!1)}const _={extClass:"album_read_directory weui-half-screen-dialog_fold",hasBtn:!0,btnSlot:'
    \n Details\n \n
    ',title:En(),btnClickCb(){Ce({ActionType:6}),Se(15),function(){const e=window.appmsg_album_info;if(e.link){const t=e.link.replace("#wechat_redirect",`&subscene=159&subscene=${window.source}&scenenote=${encodeURIComponent(window.locations.href)}&nolastread=1#wechat_redirect`);b.openUrlWithExtraWebview(t.htmlDecode())}}()},cb(){var s;s=s=>{Cn.hideLoading(),n=s.base_info.is_reverse,t=s.base_info.cur_article_num,i=s.base_info.is_numbered,e.appendChild(l(s.article_list,!0)),o=s.article_list[0],a=s.article_list[s.article_list.length-1],p(s),d||Cn.showEndLine();const r=e.childNodes[c];setTimeout((()=>{r.offsetTop+r.clientHeight>Cn.contentAreaWrp.clientHeight&&Cn.scrollTo(0,e.offsetHeight)}),200)},pe({type:"GET",url:`/mp/appmsgalbum?action=paging&__biz=${window.biz}&album_id=${Tn.albumId}&cur_msgid=${window.appmsgid}&cur_itemidx=${window.idx}&count=${Tn.pageCount}`,timeout:5e3,dataType:"json",success:function(e){e.base_resp&&0===e.base_resp.ret&&s(e.getalbum_resp)},error(){console.log("[error]")}})},onShow(){Ce({ActionType:4}),Se(14)},onPullUpLoad(){d&&(Cn.showPullUpLoading(),pe({type:"GET",url:`/mp/appmsgalbum?action=paging&__biz=${window.biz}&album_id=${Tn.albumId}&begin_msgid=${a.msgid}&begin_itemidx=${a.itemidx}&count=${Tn.pageCount}`,timeout:5e3,dataType:"json",success:function(t){Cn.hidePullUpLoading();if(0===(t.base_resp&&1*t.base_resp.ret)){const i=t.getalbum_resp.article_list;p(t.getalbum_resp),e.appendChild(l(i,!1,!0)),s=s.concat(i),Cn.finishPullUpLoad(),a=s[s.length-1],1*t.getalbum_resp.continue_flag||Cn.showEndLine()}},error:function(){}}))},onPullDownLoad(){r&&(Cn.showPullDownLoading(),pe({type:"GET",url:`/mp/appmsgalbum?action=paging&__biz=${window.biz}&album_id=${Tn.albumId}&begin_msgid=${o.msgid}&begin_itemidx=${o.itemidx}&count=${Tn.pageCount}&isbackward=1`,timeout:5e3,dataType:"json",success:function(t){Cn.hidePullDownLoading();if(0===(t.base_resp&&1*t.base_resp.ret)){const i=t.getalbum_resp.article_list,n=t.getalbum_resp.continue_flag;t.getalbum_resp.continue_flag=t.getalbum_resp.reverse_continue_flag,t.getalbum_resp.reverse_continue_flag=n,p(t.getalbum_resp);const a=l(i,!1,!1),r=e.firstChild;e.insertBefore(a,r),s=i.concat(s),Cn.scrollTo(0,r.offsetTop-62),setTimeout((()=>{Cn.finishPullDownLoad()}),500),o=s[0]}},error:function(){}}))}};var m;window.appmsg_album_info.size<=4&&(_.top=screen.height/2-(screen.height-window.innerHeight)+"px"),Cn=new St(e,_),Cn.showLoading(),Cn.show(),(m=e)&&ye.on(m,"click",`.${Tn.itemClassName}`,(e=>{const t=e.delegatedTarget;if(xe.hasClass(t,"album_read_directory_current"))return;let i;i=t.dataset.url.includes("#")?t.dataset.url.replace("#",`${Sn}&scene=190#`):t.dataset.url+`${Sn}&scene=190`,Ce({ActionType:5,Url:i}),Be.jumpUrl(i,!0,{useFastLoad:!0}),xe.addClass(t,"album_read_directory_disabled")}))}const Rn=Je({name:"mp-keep-read",computed:{..._({appmsgAlbumInfo:e=>e.cgiData.appmsg_album_info,appmsgAlbumExtInfo:e=>e.extRes.appmsg_album_extinfo}),showCard(){return this.appmsgAlbumExtInfo&&(this.appmsgAlbumExtInfo.pre_article_link||this.appmsgAlbumExtInfo.next_article_link)}},watch:{appmsgAlbumExtInfo:{handler(e){this.showCard&&this.$nextTick((()=>{this.initExposeReport()}))},immediate:!0}},methods:{showBottomModal(){Cn?Cn.show():jn()},jumpPrev(){let e;Ce({ActionType:2,SubActionType:1}),Se(12),e=this.appmsgAlbumExtInfo.pre_article_link.includes("#")?this.appmsgAlbumExtInfo.pre_article_link.replace("#",`${Sn}&scene=189#`):this.appmsgAlbumExtInfo.pre_article_link+`${Sn}&scene=189`,locations.href=e.replace(/&/g,"&")},jumpNext(){let e;Ce({ActionType:2,SubActionType:2}),Se(13),e=this.appmsgAlbumExtInfo.next_article_link.includes("#")?this.appmsgAlbumExtInfo.next_article_link.replace("#",`${Sn}&scene=189#`):this.appmsgAlbumExtInfo.next_article_link+`${Sn}&scene=189`,locations.href=e.replace(/&/g,"&")},initExposeReport(){let e;const t=this.$refs.albumKeepRead,i=t&&t.offsetHeight/2||0;function n(){if(e)return;const n=r.getOffset(t).offsetTop||0,o=le.getScrollTop();o+le.getInnerHeight()>=n+i&&o<=n+i&&(Ce({ActionType:1}),Se(11),e=!0)}le.bindDebounceScrollEvent(n),n()}}},(function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.showCard,expression:"showCard"}],ref:"albumKeepRead",staticClass:"appmsg_card_context album_read_card"},[e.showCard?[t("div",{staticClass:"album_read_hd weui-flex",attrs:{role:"button"},on:{click:e.showBottomModal}},[t("div",{staticClass:"album_read_source"},[e._v("收录于合集 "),t("span",{staticClass:"weui-link wx_tap_link js_album_directory__name"},[e._v("#"),t("span",{domProps:{innerHTML:e._s(e.appmsgAlbumInfo.title)}})])]),t("span",{staticClass:"weui-btn__word-wrp wx_tap_link js_album_directory__size"},[e._v(" "+e._s(e.appmsgAlbumInfo.size)),t("span",{staticClass:"weui-hidden_abs"},[e._v("个")])])]),t("div",{staticClass:"album_read_bd weui-flex"},[e.appmsgAlbumExtInfo.pre_article_link?t("span",{staticClass:"album_read_nav_item album_read_nav_prev weui-flex__item wx_tap_link js_wx_tap_highlight",attrs:{role:"button"},on:{click:e.jumpPrev}},[t("span",{staticClass:"album_read_nav_inner"},[t("span",{staticClass:"album_read_nav_btn"},[e._v("上一篇")]),t("span",{staticClass:"album_read_nav_title"},[t("span",{staticClass:"album_read_nav_title_inner"},[e._v(e._s(e.appmsgAlbumExtInfo.pre_article_title.htmlDecode()||""))])])])]):e._e(),e.appmsgAlbumExtInfo.next_article_link?t("span",{staticClass:"album_read_nav_item album_read_nav_next weui-flex__item wx_tap_link js_wx_tap_highlight",attrs:{role:"button"},on:{click:e.jumpNext}},[t("span",{staticClass:"album_read_nav_inner"},[t("span",{staticClass:"album_read_nav_btn"},[e._v("下一篇")]),t("span",{staticClass:"album_read_nav_title"},[t("span",{staticClass:"album_read_nav_title_inner"},[e._v(e._s(e.appmsgAlbumExtInfo.next_article_title.htmlDecode()||""))])])])]):e._e()])]:e._e()],2)}),[],!1,null,null,null,null).exports,Bn=[2390745668,3099420829,3872121626,3203738065,3072206507,3566970574,3002803029,3099387730,3559965496,3525314097,2390323860,3084276724,3289028514,3003793452,3003972371,2398512110,3071748654,3233018348,3095049467,3076061592,3273032305,3264278949,3086344434,3014829842,3294546013,2058310401,2397841479,2397640820,3282179238,3072107639,3521076442,3554888231,2397274880,2394106525,3077726226,2103095721,3593723769,2395186785,2393698643,3944000110,2397445840,2394144447,3082139483,3070806332,3016714421,3006879186,3213574124,3221398587,3078448935,3591999034,3551390431],Nn=F(window.user_uin),Pn=["testrd","otherrd"];let Dn=0;try{Dn=1*window.atob(window.biz)}catch(Ps){}let qn={report_action:2,share_type:5};function Ln(e,t,i){let n="",o="";try{""!=tid&&(o="tid="+tid+"&aid=54");let a=e.split("?")[1]||"";if(a=a.split("#")[0],""==a);else{let s=[a,"mpshare=1","scene="+t,"srcid="+srcid,"sharer_sharetime="+i,"sharer_shareid="+Nn];if(window.ecsource&&s.push("ecsource="+window.ecsource),""!=o&&s.push(o),a=s.join("&"),2===t&&Bn&&Bn.indexOf(Dn)>-1){let t=Math.floor(Math.random()*Pn.length),i=Pn[t];n=e.split("?")[0]+"?"+a+`&testtype=${i}#`+(e.split("#")[1]||"")}else n=e.split("?")[0]+"?"+a+"#"+(e.split("#")[1]||"")}}catch(Ps){n=""}return n||(n=locations.href+"#wechat_redirect",we.setLogs({id:28307,key:47,value:1,lc:1,log0:"[share_link]["+encodeURIComponent(locations.href)+"]["+encodeURIComponent(e)+"]["+encodeURIComponent(msg_link)+"]"})),n}ve.call("hideToolbar"),ve.call("showOptionMenu");let On=msg_title.htmlDecode(),zn="",Wn=cdn_url_1_1||msg_cdn_url||ori_head_img_url||round_head_img,Mn=Wn,$n=msg_link.htmlDecode(),Hn=msg_desc.htmlDecode();function Un(e,t,i,n,o=0){Ne.shareReport({link:e,action_type:i,sharer_sharetime:n,sharer_shareid:Nn,share_source:window.customShareSource||(0===o?1:2)})}function Fn(e,t){return e.isCDN()&&(e=me.addParam(e,"wxfrom",t,!0)),e}Hn=Hn||" ",Hn=Hn.replace(//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&&sn?T.start({distance:e,duration:.5,end:this.exposeHandler}):T.start({distance:t,duration:.5,end:this.exposeHandler})}}}))}else this.setLines(e);delete this.__placeholderTimer},setLines(e){const t=this.$refs.jsRelatedTitle;let i=2.25,n=0;if(t){const e=t.getBoundingClientRect().height;e>0&&(i=e/Be.getDefaultFontSize())}0===e?(this.listStyle.overflow="hidden",this.listStyle.margin="0",this.unbindTransition=!0):(window.is_like_profile_gray,this.listStyle.margin="8px 0 0",n=6.5*e+i);const o={compEle:this.$refs.jsRelatedArea,compType:"mp-related-article",compIdx:1,wrapper:document.querySelector("#page_bottom_area")};this.setLinesTimes=this.setLinesTimes?this.setLinesTimes+1:1,1!==this.setLinesTimes&&(o.subCompType=`setLine-${this.setLinesTimes}`),this.isPageInit&&I.renderCompSilentlyPreHandler(o),this.listStyle.height=`${n}em`,this.isPageInit&&this.$nextTick((()=>{I.renderCompSilently(o)})),this.isPageInit&&e&&this.transitionEndHandler({propertyName:"height"})},getHeight(e){return this.lineHeightPx||(this.$refs.relatedPlaceholder?this.lineHeightPx=this.$refs.relatedPlaceholder.getBoundingClientRect().height:this.lineHeightPx=Be.qs(".js_related_item",this.$refs.jsRelatedList).getBoundingClientRect().height),e*this.lineHeightPx+Be.qs(".js_related_title",this.$refs.jsRelatedMain).getBoundingClientRect().height},clearPlaceholderTimeout(e){this.__placeholderTimer?(clearTimeout(this.__placeholderTimer),delete this.__placeholderTimer,"function"==typeof e&&e(!0)):"function"==typeof e&&e(!1)},jumpArticle(e){const t=e.currentTarget.dataset,i=t.url;we.setSum(110809,23,1),Ae.report(18832,Object.assign({LoadType:this.loadType,Actiontype:2,Type:1,Bizuin:me.getQuery("__biz",i),Msgid:parseInt(me.getQuery("mid",i),10)||0,Itemidx:parseInt(me.getQuery("idx",i),10)||0,Sendtimestamp:parseInt(t.time)||0,Pos:(1*t.index||0)+1,Recalltype:1*t.recalltype,Isreaded:1*t.isreaded,Mmversion:io,ExpType:t.exptype,ExtInfo:t.ext_info,RecInfo:t.report_info},this.commonReportData)),be.isOnlyWechat&&!be.isMpapp?ve.invoke("openWebViewUseFastLoad",{url:i,item_show_type:t.item_show_type,scene:132,subscene:this.commonReportData.Subscene,openType:0},(e=>{console.log("openWebViewUseFastLoad res: ",e),e&&e.err_msg&&-1===e.err_msg.indexOf("ok")&&C(i)})):locations.href=i},exposeHandler(){const e=this.$refs.jsRelatedArticleItem;if(!e)return;const{top:t,bottom:i}=this.$refs.jsRelatedArea.getBoundingClientRect();if(!(t>Zn||i<0)){let n=0;n=t<0?i:i>Zn?Zn-t:i-t,this.exposeHeight=Math.max(this.exposeHeight,n);const o=Be.getScrollTop(),a=[];for(let t=0;t=o+i.clientHeight/2&&i.clientHeight+i.offsetTop<=o+i.clientHeight/2+le.getInnerHeight()&&((e,t)=>{const i=e.dataset,n=i.url;i.hasreport=1,we.setSum(110809,21,1),Ae.report(18832,Object.assign({LoadType:this.loadType,Actiontype:1,Type:1,Bizuin:me.getQuery("__biz",n),Msgid:parseInt(me.getQuery("mid",n),10)||0,Itemidx:parseInt(me.getQuery("idx",n),10)||0,Sendtimestamp:parseInt(i.time)||0,Pos:t+1,Recalltype:1*i.recalltype,Mmversion:io,Isreaded:1*i.isreaded,ExpType:i.exptype,ExtInfo:i.ext_info,RecInfo:i.report_info},this.commonReportData)),oo({bizuin:i.bizuin,mid:i.mid,idx:i.idx}),a.push({item_show_type:i.item_show_type,url:n})})(i,t)}a.length&&ve.invoke("downloadPageDataForFastLoad",{itemList:a},(e=>{console.log("downloadPageDataForFastLoad",e)})),this.report29433()}},transitionEndHandler(e){this.unbindTransition||"height"!==e.propertyName||(this.unbindTransition=!0)},destroy(){this.showList=!1,ye.off(window,"scroll",this.exposeHandler)},showFeedback(e){const t=this.$refs.jsRelatedArticleItem[e];this.feedbackIdx=e,this.feedbackPos=le.getInnerHeight()-t.getBoundingClientRect().bottom<268?"top":"bottom",this.$nextTick((()=>{this.$refs.feedbackBd[e].focus()})),i.show({alpha:.3,onClick:()=>{this.hideFeedback()}})},hideFeedback(){this.feedbackIdx=-1,this.feedbackPos="bottom",this.feedbackReasonTacitly={},this.feedbackReasonKeyword={},i.hide()},submitFeedback(e){if(this.hasFeedbackReason){const t={tacitly:Object.keys(this.feedbackReasonTacitly).map((e=>1*e)),keyword:Object.keys(this.feedbackReasonKeyword)},i=this.$store.state.cgiData,n={biz_from:i.biz,mid_from:i.mid,idx_from:i.idx,recommended_biz:me.getQuery("__biz",e.url),mid:me.getQuery("mid",e.url),idx:me.getQuery("idx",e.url),reason:JSON.stringify(t)};pe({type:"POST",url:"/mp/relatedarticle?action=dislike",dataType:"json",data:n,success:t=>{if(console.log(t),t&&t.base_resp&&0===t.base_resp.ret){this.hideFeedback();const t=this.list.indexOf(e);t>-1&&(this.list.splice(t,1),this.setLines(this.list.length))}else window.weui.alert("System error. Try again later")}})}},chooseFeedbackReason(e){const t=e.currentTarget,i=xe.hasClass(t,"js_reason")?this.feedbackReasonTacitly:this.feedbackReasonKeyword,n=t.dataset.value;i[n]?this.$delete(i,n):this.$set(i,n,1)},sourcesChange(){!this.__lock&&this.showList&&this.type&&(this.__lock=!0,this.$nextTick(this.loadData))},report29433(){if(this.hasReported29433)return;this.hasReported29433=!0;const e=this.$store.state.cgiData,t={bizuin_from1:e.biz,Msgid_from:parseInt(e.mid,10)||0,Itemidx_from:parseInt(e.idx,10)||0,ItemShowType:parseInt(e.item_show_type,10)||0};Ae.report(29433,Object.assign({Type:0},t)),Ae.leaveReport(29433,(()=>Object({Type:1,Pos_Height:this.exposeHeight,Is_article_exposed:Array.prototype.some.call(this.$refs.jsRelatedArticleItem,(e=>1*e.dataset.hasreport==1))?1:0},t)))}},filters:{getRecTagStyle(e,t){if(!e)return{};return{color:so(t?e.dark_mode_text_color:e.text_color),backgroundColor:so(t?e.dark_mode_background_color:e.background_color)}}}},(function(){var e=this,t=e._self._c;return t("div",{staticClass:"related_container"},[e.showList&&e.type?t("div",{ref:"jsRelatedArea",staticClass:"relate_mod_transition function_mod js_related_area",style:e.listStyle,on:{transitionend:e.transitionEndHandler}},[t("div",{ref:"jsRelatedMain",staticClass:"function_mod_index js_related_main"},["share"===e.type||"shared"===e.type?t("div",{ref:"jsRelatedTitle",staticClass:"function_hd js_related_title"},[e._v("People who shared this content also liked")]):"favorite"===e.type||"favorited"===e.type?t("div",{ref:"jsRelatedTitle",staticClass:"function_hd js_related_title"},[e._v("People who favorited this content also liked")]):"subscribe"===e.type?t("div",{ref:"jsRelatedTitle",staticClass:"function_hd js_related_title"},[e._v("关注此账号的人还喜欢")]):t("div",{ref:"jsRelatedTitle",staticClass:"function_hd js_related_title"},[e._v("People who liked this content also liked")]),t("div",{staticClass:"function_bd"},[e.list.length?t("div",{ref:"jsRelatedList",staticClass:"relate_article_index_list relate_article_list js_related_list",staticStyle:{height:"auto"}},e._l(e.list,(function(i,n){return t("div",{key:n,ref:"jsRelatedArticleItem",refInFor:!0,staticClass:"weui-media-box weui-media-box_appmsg js_related_item js_wx_tap_highlight wx_tap_cell",attrs:{"data-index":n,"data-url":i.url,"data-time":i.send_time,"data-recalltype":i.recall_type,"data-isreaded":i.is_readed,"data-bizuin":i.bizuin,"data-mid":i.mid,"data-idx":i.idx,"data-item_show_type":i.item_show_type,"data-exptype":i.exptype,"data-ext_info":i.ext_info,"data-report_info":e.reportInfo},on:{click:e.jumpArticle}},[t("div",{staticClass:"weui-media-box__bd"},[t("div",{class:["ellipsis_relate_title mask_ellipsis_wrp mask_ellipsis_auto_height",i.is_pay_subscribe?i.is_paid?"relate_article_paid":"relate_article_pay":"relate_article_default",e.showRecReason?"relate_article_tag_before":""],attrs:{role:"link",tabindex:"0","aria-labelledby":"relate_article_title_"+i.mid+"_"+i.idx+" js_a11y_comma relate_article_tag_"+i.mid+" js_a11y_comma relate_article_nickname_"+i.mid+"_"+i.idx+" js_a11y_comma relate_article_num_"+i.mid+"_"+i.idx}},[t("div",{staticClass:"mask_ellipsis_text",attrs:{"aria-hidden":"true"}},[e._v(" "+e._s(i.title)+" "),i.is_pay_subscribe&&i.is_paid?t("span",{staticClass:"pay__tag"},[e._v("Paid")]):i.is_pay_subscribe?t("span",{staticClass:"unpay__tag"},[e._v("Pay")]):e._e()]),t("div",{staticClass:"mask_ellipsis",attrs:{"aria-hidden":"true"}},[t("div",{staticClass:"mask_ellipsis_text",attrs:{id:"relate_article_title_"+i.mid+"_"+i.idx}},[e._v(" "+e._s(i.title)+" "),i.is_pay_subscribe&&i.is_paid?t("span",{staticClass:"pay__tag"},[e._v("Paid")]):i.is_pay_subscribe?t("span",{staticClass:"unpay__tag"},[e._v("Pay")]):e._e()]),t("div",{staticClass:"mask_ellipsis_placeholder"}),t("div",{staticClass:"mask_ellipsis_extra"},[e._v("   "),i.is_pay_subscribe&&i.is_paid?t("span",{staticClass:"pay__tag"},[e._v("Paid")]):i.is_pay_subscribe?t("span",{staticClass:"unpay__tag"},[e._v("Pay")]):e._e()])])]),t("div",{staticClass:"weui-media-box__info weui-flex"},[t("div",{staticClass:"weui-media-box__info__inner weui-flex weui-flex_align-center weui-flex__item"},[e.showRecReason&&i.rec_reason&&i.rec_reason.wording?t("div",{staticClass:"weui-media-box__info__meta relate_profile_tag",attrs:{"aria-hidden":"true",id:"relate_article_tag_"+i.mid+"_"+i.idx}},[t("span",{staticClass:"icon_appmsg_tag",style:e._f("getRecTagStyle")(i.rec_reason,e.darkModeMatches)},[e._v(e._s(i.rec_reason.wording))])]):e._e(),t("div",{staticClass:"js_profile relate_profile_nickname weui-media-box__info__meta",attrs:{"aria-hidden":"true",id:"relate_article_nickname_"+i.mid+"_"+i.idx,"data-username":i.username}},[e._v(" "+e._s(i.nickname)+" ")]),e.showRecReason?e._e():t("div",{staticClass:"weui-media-box__info__meta",attrs:{"aria-hidden":"true",id:"relate_article_num_"+i.mid+"_"+i.idx}},[i.old_like_num>=10?[e._v("Like "+e._s(i.like_num_wording))]:i.is_pay_subscribe&&i.pay_cnt?[e._v("Pay "+e._s(i.pay_cnt_wording))]:i.read_num?[e._v("Reads "+e._s(i.read_num_wording))]:e._e()],2)]),t("div",{staticClass:"relate_article_opr"},[t("button",{ref:"feedbackBtn",refInFor:!0,staticClass:"reset_btn dislike_btn js_feedback_btn weui-wa-hotarea",attrs:{type:"button"},on:{touchstart:function(e){e.stopPropagation()},touchend:function(e){e.stopPropagation()},click:function(t){return t.stopPropagation(),e.showFeedback(n)}}},[e._v("不喜欢")])]),t("div",{ref:"feedbackBd",refInFor:!0,class:["feedback_dialog_wrp js_feedback_dialog",e.feedbackIdx===n?"feedback_dialog_show":""],attrs:{role:"dialog","aria-modal":"true",tabindex:"0","aria-hidden":e.feedbackIdx!==n},on:{click:function(e){e.stopPropagation()},touchstart:function(e){e.stopPropagation()},touchmove:function(e){e.preventDefault()},touchend:function(e){e.stopPropagation()}}},[t("div",{staticClass:"weui-mask js_mask",attrs:{role:"button","aria-label":"Close"},on:{click:e.hideFeedback}}),t("div",{class:["feedback_dialog js_dialog_wrp","top"===e.feedbackPos?"feedback_dialog_pos_top":""]},[t("div",{staticClass:"feedback_dialog_hd weui-flex"},[t("div",{staticClass:"weui-flex__item feedback_dialog_title"},[e._v("不看的原因")]),t("button",{class:["weui-btn weui-btn_primary weui-btn_mini js_submit",e.hasFeedbackReason?"":"weui-btn_disabled"],attrs:{type:"button"},on:{click:function(t){return e.submitFeedback(i)}}},[e._v("OK")])]),t("div",{staticClass:"feedback_dialog_bd"},[t("ul",{staticClass:"feedback_tag_list"},[e._l(e.reason,(function(i){return t("li",{key:i.value,class:["feedback_tag_item js_reason js_tag_item",e.feedbackReasonTacitly[i.value]?"feedback_tag_selected":""],attrs:{role:"checkbox","aria-checked":!!e.feedbackReasonTacitly[i.value],"data-value":i.value},on:{click:e.chooseFeedbackReason}},[e._v(e._s(i.name))])})),e._l(i.keyword,(function(i,n){return[n<2?t("li",{key:i,class:["feedback_tag_item js_keyword js_tag_item",e.feedbackReasonKeyword[i]?"feedback_tag_selected":""],attrs:{role:"checkbox","aria-checked":!!e.feedbackReasonKeyword[i],"data-value":i},on:{click:e.chooseFeedbackReason}},[e._v("对"+e._s(i)+"不感兴趣")]):e._e()]}))],2)])])])])]),t("div",{staticClass:"weui-media-box__ft"},[t("img",{directives:[{name:"wxpic-src",rawName:"v-wxpic-src",value:i.cover,expression:"item.cover"}],staticClass:"relate_article_cover"})])])})),0):[e._m(0),t("div",{staticClass:"relate_article_list relate_article_placeholder"},[t("div",{ref:"relatedPlaceholder",staticClass:"weui-media-box weui-media-box_appmsg"},[t("div",{staticClass:"weui-media-box_placeholder"})])])]],2)])]):e._e()])}),[function(){var e=this._self._c;return e("div",{staticClass:"relate_list_loading"},[e("span",{staticClass:"weui-primary-loading",attrs:{role:"img","aria-label":"Loading..."}},[e("span",{staticClass:"weui-primary-loading__dot"})])])}],!1,null,null,null,null).exports,co="  ";const lo=Je({name:"mp-profile-recommend",data(){return{profileRecList:[],profileRecommendLargeClass:this.computeProfileRecommendLargeClass(),loading:!1,showList:!1,modStyle:{},defaultHeadImgUrl:"http://mmbiz.qpic.cn/mmbiz/a5icZrUmbV8p5jb6RZ8aYfjfS2AVle8URwBt8QIu6XbGewB9wiaWYWkPwq4R7pfdsFibuLkic16UcxDSNYtB8HnC1Q/0"}},computed:{..._("mp-profile-recommend",["profileRecListTmp","moreRecProfilePageUrl","sessionId","bizUin","dataReady","loadData","isPageInit","subscribeStatus"])},watch:{profileRecListTmp(){this.$nextTick((()=>{this.profileRecList=this.profileRecListTmp}))},profileRecList(){if(this.profileRecList.length){if(1===this.profileRecList.length&&this.profileRecList[0].recommend_wording===co&&this.profileRecList[0].biz_info.headimgurl===co&&this.profileRecList[0].biz_info.nickname===co)return;const e={compEle:this.$refs.profileRecList,compType:"mp-profile-recommend",compIdx:1,wrapper:document.querySelector("#page_bottom_area")};this.isPageInit&&I.renderCompSilentlyPreHandler(e),this.$nextTick((()=>{this.isPageInit?I.renderCompSilently(e):I.setCompRenderInfo({compEle:this.$refs.profileRecList,compType:"mp-profile-recommend",compIdx:1,wrapper:document.querySelector("#page_bottom_area")},this.$refs.head.offsetHeight+this.$refs.bodyEle.offsetHeight+parseInt(getComputedStyle(this.$refs.profileRecList).marginTop,10)),this.handleExpose(),this.handleNicknameEllipsis()}))}},dataReady(){this.showList=this.profileRecListTmp&&this.profileRecListTmp.length,this.loading=!1},subscribeStatus(){let e;const t=!this.profileRecList.length,i=[{biz_info:{headimgurl:co,nickname:co},recommend_wording:co}];t&&(this.profileRecList=i,this.loading=!0),this.$nextTick((()=>{t&&this.profileRecList===i&&(this.profileRecList=[]),e=this.$refs.head.offsetHeight+this.$refs.bodyEle.offsetHeight,requestAnimationFrame((()=>{this.modStyle={height:`${e}px`,marginTop:"8px"},setTimeout((()=>{this.modStyle={}}),400)}))}))},loadData(){this.isPageInit?this.modStyle={transition:"none"}:this.modStyle={height:0,marginTop:0}}},mounted(){ye.on(window,"scroll","",Be.throttle((e=>{this.handleExpose()}),50),!0),ye.on(window,"resize","",(()=>{setTimeout((()=>{this.profileRecommendLargeClass=this.computeProfileRecommendLargeClass()}),100)})),ve.on("menu:setfont",(()=>{this.handleNicknameEllipsis()}))},methods:{computeProfileRecommendLargeClass:()=>window.innerWidth>=704,goMoreProfileRecPage(){this.moreRecProfilePageUrl&&!this.loading&&C(this.moreRecProfilePageUrl)},report25574(e,t){Ae.report(25574,{BizUin:this.bizUin||0,EventType:t.eventType,Rec_BizUin:e.biz_info.bizuin||0,RecReason:e.recommend_wording||"",Pos:t.pos||0,RecInfo:e.rec_info||"",sessionid_:this.sessionId||"",style:2,subscene:3})},handleExpose(){if(this.$refs.profileRecList){const e=document.querySelectorAll(".js_profile_recommend_item");for(let t=0;t-i.height&&i.top=-i.width&&i.left<=window.innerWidth&&!this.profileRecList[t].exposed&&(this.report25574(this.profileRecList[t],{eventType:5,pos:t}),this.profileRecList[t].exposed=!0)}}},openProfile(e,t){Be.goProfile({biz:e.biz_info.bizuin},{username:e.biz_info.username,scene:259}),this.report25574(e,{pos:t,eventType:2})},handleNicknameEllipsis(){this.$refs.bodyEle&&Array.from(this.$refs.bodyEle.querySelectorAll(".js_profile_recommend_nickname")).forEach((e=>{e.scrollWidth>e.offsetWidth?e.parentNode.classList.add("profile_recommend_nickname_wrap"):e.parentNode.classList.remove("profile_recommend_nickname_wrap")}))}}},(function(){var e=this,t=e._self._c;return e.showList||e.loading?t("div",{ref:"profileRecList",staticClass:"function_profile_recommend",class:{function_mod:e.profileRecList&&e.profileRecList.length||e.loading},style:e.modStyle},[e.profileRecList&&e.profileRecList.length||e.loading?t("div",{ref:"head",staticClass:"function_hd weui-flex"},[t("strong",{staticClass:"weui-flex__item function_title"},[e._v("其他关注的人还喜欢")]),t("span",{staticClass:"function_hd_extra"},[t("a",{staticClass:"js_wx_tap_highlight wx_tap_link profile_recommend_more",style:{visibility:e.loading?"hidden":"visible"},attrs:{href:"javascript:;"},on:{click:e.goMoreProfileRecPage}},[e._v("更多")])])]):e._e(),t("div",{staticClass:"function_bd"},[e.profileRecList&&e.profileRecList.length?t("div",{ref:"bodyEle",staticClass:"profile_recommend_list",class:{profile_recommend_large:e.profileRecommendLargeClass}},e._l(e.profileRecList,(function(i,n){return t("div",{key:i.biz_info.bizuin,staticClass:"profile_recommend_item js_wx_tap_highlight js_profile_recommend_item",attrs:{role:"link",tabindex:"0"},on:{click:function(t){return e.openProfile(i,n)}}},[t("div",{staticClass:"profile_recommend_inner",attrs:{role:"option"}},[t("div",{staticClass:"wx_border_avatar profile_recommend_avatar",style:{"background-image":`url(${i.biz_info.headimgurl||e.defaultHeadImgUrl})`}}),t("div",{staticClass:"profile_recommend_nickname_wrp"},[t("div",{staticClass:"profile_recommend_nickname js_profile_recommend_nickname"},[e._v(e._s(i.biz_info.nickname))]),t("span",{staticClass:"weui-hidden_abs"},[e._v(",")]),1===i.biz_info.verify_type?t("i",{staticClass:"weui-icon-certification",attrs:{role:"img","aria-label":"企业认证"}}):2===i.biz_info.verify_type?t("i",{staticClass:"weui-icon-certification personal",attrs:{role:"img","aria-label":"个人认证"}}):e._e(),t("span",{staticClass:"weui-hidden_abs"},[e._v(",")])]),t("div",{staticClass:"profile_recommend_tips"},[e._v(e._s(i.recommend_wording))])])])})),0):e.loading?t("div",{staticClass:"profile_recommend_loading_wrp"},[t("i",{staticClass:"weui-loading",attrs:{role:"alert","aria-label":"Loading..."}})]):e._e()])]):e._e()}),[],!1,null,null,null,null).exports;const po=Je({components:{[ro.name]:ro,[V.name]:V,[X.name]:X,[lo.name]:lo},data:()=>({relatedArticlePos:""}),computed:{..._(["extRes"]),..._("mp-related-article",["sources"])},watch:{sources(e){this.relatedArticlePos||(e[1]?this.relatedArticlePos=1===this.extRes.related_article_under_ad?"down":"up":e[0]&&(this.relatedArticlePos="up"))}}},(function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"page_bottom_area"}},[t("div",{staticStyle:{"font-size":"0",height:"0"}},[e._v("​")]),t("mp-profile-recommend"),"up"===e.relatedArticlePos?t("mp-related-article"):e._e(),t("mp-bottom-ad"),"down"===e.relatedArticlePos?t("mp-related-article"):e._e(),t("mp-comment",{attrs:{"fetch-before-ext-resp":""}})],1)}),[],!1,null,null,null,null).exports,_o=window.Vue;const mo='
    \n \x3c!--S 全屏播放 full_screen_mv--\x3e\n
    \n
    \n \n
    \n
    \n
    \n \x3c!--E 视频播放器--\x3e\n \x3c!-- S 视频社交--\x3e\n \n
    ';function uo(){let e={hasShowBotbar:!1,mpVideoBotH:37,showComment:!0,loverCount:{}},t={};function i(e,t){const i=t||window.locations.search,n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),o=i.substr(i.indexOf("?")+1).match(n);return null!=o?o[2]:""}function n(t){return document.querySelector(`#js_mp_video_container_${e.iframeIdx} #${t}`)}function o(){!function(){let i=e.ratio;t.vw&&t.vh&&(i=t.vw/t.vh);const o=t.vw||e.dom.js_mpvedio.offsetWidth,a=Math.ceil(o/i),s=[Ke];be.isWechat&&(_e.os.iphoness||_e.os.androids)&&new Date(1e3*window.ct)>new Date("2022/01/12 19:00:00 GMT+0800")&&s.push(et);const r={cgiData:t,preview:!(1*t.preview!=1),isInIframe:!0,hitBizuin:t.hit_bizuin,hitVid:t.hit_vid,fromid:e.scene,oriStatus:e.ori_status,isMpVideo:t.txvideo_vid?0:t.is_mp_video,plugins:s,oriVid:e.vid,vid:t.txvideo_vid?t.txvideo_vid:e.vid,ckey:t.txvideo_vid?"":e.ckey,ckey_ad:e.ckey_ad,width:o,height:a,__biz:e.__biz,uin:e.uin,mid:e.mid,idx:e.idx,coverFit:"contain",vtitle:window.msg_title,videoTitle:window.msg_title,useFeFullscreen:!0,comment_id:e.comment_id,scene_type:0,autoplay:e.autoplay,videoMd5:t.video_md5,headImgUrl:window.round_head_img,canShareVideo:!t.isPaySubscribe,bizUserName:window.user_name,bizNickName:window.nickname,profileTabType:1,leaveReport12710Type:1,storeFactory:e=>{const t=new S.Store({modules:{[E.name]:E},state:{...j(),cgiData:e},mutations:R()});return t.registerModule([E.name,B.name],B),t.registerModule([E.name,N.name],N),t}},d=Xe();e.myPlayer=new Ge({el:"#js_vue_player_"+e.iframeIdx,opt:r,store:d}),e.myPlayer.$on("player-ready",(()=>{if(e.dom.js_mpvedio.style.height="100%",(P.showVideoDetail()||P.showReprint())&&!e.hasShowBotbar){const i=n("bottom_bar");i&&(i.style.display="",e.hasShowBotbar=!0,Pe.postMessage({type:"addVideoIframeHeight",data:{vid:t.txvideo_vid||e.id,height:e.mpVideoBotH}}))}Pe.postMessage({type:"videoInited",data:{vid:e.id,ori_status:e.ori_status,hit_bizuin:t.hit_bizuin,hit_vid:t.hit_vid}})})),e.myPlayer.$on("video-ready",(()=>{Pe.postMessage({type:"removeVideoLoading",data:{vid:e.vid}})})),e.myPlayer.$on("fullscreenchange",(t=>{"frontend"===t.type&&(t.state&&e.dom.js_mpvedio.parentNode!==document.body?(e.dom.js_mpvedio.style="position: fixed; top: 0; width: 100%; height: 100%",e.dom.js_article.style.opacity=0,window.requestAnimationFrame((()=>{document.body.appendChild(e.dom.js_mpvedio),t.supportSwipeBack||(e.dom.js_article.style.transition="opacity .1s")}))):t.state||e.dom.js_mpvedio.parentNode===e.dom.page_content||(e.dom.page_content.appendChild(e.dom.js_mpvedio),t.supportSwipeBack?(e.dom.js_mpvedio.style="position: relative; height: 100%",e.dom.js_article.style.opacity=1):(e.dom.js_mpvedio.style="",setTimeout((()=>{e.dom.js_article.style.opacity=1}),150))))}))}()}function a(a,s){pe({url:s,type:"GET",f:"json",success:function(s){let r={};try{r=JSON.parse(s),we.setSum(110644,51,1)}catch(Ps){we.setSum(110644,53,1)}const{vid:d,vh:c,vw:l,ratio:p,index:_}=a;t={hit_bizuin:r.hit_bizuin,hit_vid:r.hit_vid,txvideo_vid:r.txvideo_vid,txvideo_openid:r.txvideo_openid,ckey:r.ckey,ckey_ad:r.ckey_ad,video_title:r.video_title,ori_status:r.ori_status,nick_name:window.nickname,hit_username:r.hit_username,is_mp_video:r.is_mp_video,is_login:r.is_login,user_uin:r.user_uin,vh:c,vw:l,scene:window.source||window.scene||i("scene",window.locations.href)||0,ratio:p,openid:r.openid,show_comment:window.show_comment,comment_id:window.comment_id,vid:d,__biz:window.biz,biz:window.biz,mid:window.mid,idx:window.idx,uin:window.uin,create_time:window.create_time,media_source:r.media_source,vidsn:r.vidsn,username:r.biz_user_name,preview:!!window.is_temp_url,sn:window.sn||i("sign",window.locations.href)||"",source_encode_biz:window.source_encode_biz,video_md5:r.video_md5,isPaySubscribe:1*window.isPaySubscribe||0,bizNickname:window.nickname,roundHeadImg:window.round_head_img,subscene:window.subscene,enterid:1*window.enterid,sessionid:window.sessionid,channel_session_id:window.channel_session_id,real_item_show_type:window.real_item_show_type,item_show_type:window.item_show_type,clientversion:window.clientversion,devicetype:window.devicetype,isprofileblock:window.isprofileblock,iframeIdx:_},1*t.ori_status==1?e.ori_status=1:1*t.ori_status==2?e.ori_status=2:e.ori_status=3,e.showComment=1*t.show_comment==1,e.comment_id=t.comment_id,e.vid=t.vid,e.ckey=t.ckey,e.ckey_ad=t.ckey_ad,e.__biz=t.__biz,e.uin=t.uin,e.mid=t.mid,e.idx=t.idx,e.scene=t.scene||i("scene",window.locations.href)||0,e.autoplay=!!e.container.getAttribute("__sec_open_auto_play__"),e.iframeIdx=t.iframeIdx,e.dom={js_article:document.getElementById("js_article"),js_mpvedio:n("js_mpvedio_wrapper_"+e.vid),page_content:n("page-content")},o(),function(){const o=n("h5_profile_btn");o&&2===t.ori_status&&ye.tap(o,(function(){const e="https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz="+t.source_encode_biz+"&scene=111#wechat_redirect";be.isWindowsWechat||be.isMacWechat?locations.href=e:ve.invoke("openUrlWithExtraWebview",{url:e,openType:1},(function(t){-1===t.err_msg.indexOf("ok")&&(locations.href=e)}))}));const a=n("video_detail_btn");a&&1===t.media_source&&ye.tap(a,(function(){const n=["https://mp.weixin.qq.com/mp/video?t=pages/video_detail_new","&vid=",e.vid,"&mid=",e.mid,"&__biz=",e.__biz,"&idx=",e.idx,"&sn=",window.sn||i("sign",window.locations.href)||"","&vidsn=",t&&t.vidsn?t.vidsn:"","&scene=100#wechat_redirect"];e.myPlayer&&e.myPlayer.extendMpReportData({detail_click:1}),window.locations.href=n.join("")}))}()},error:function(){we.setSum(110644,52,1)}})}return{createMpVideoDom:function(t,i,n){const o=me.getQuery("vid",n),s=t.getAttribute("data-vw"),r=t.getAttribute("data-vh"),d=t.getAttribute("data-ratio"),c=document.createElement("span"),l=t.attributes;for(let e=l.length-1;e>=0;e--)c.setAttribute(l[e].name,l[e].value);c.id="js_mp_video_container_"+i,c.setAttribute("vid",o),c.classList.add("video_iframe"),c.style.cssText=t.style.cssText,c.style.display="none";let p=ke.tmpl(mo,{vid:o,index:i,video_h:r},!1);c.innerHTML=p;const _=t.parentNode;return _?(_.lastChild===t?_.appendChild(c):_.insertBefore(c,t.nextSibling),_.removeChild(t),e.container=c,a({iframe:c,vid:o,vh:r,vw:s,ratio:d,index:i},n),c):null}}}function wo(){let e={txVideoReg:/^http(s)*\:\/\/v\.qq\.com\/iframe\/(preview|player)\.html\?/,mpVideoReg:/^http(s)*\:\/\/mp\.weixin\.qq\.com\/mp\/readtemplate\?t=pages\/video_player_tmpl/,video_iframe:[],video_top:[]};function t(e){console.info("iframe_onload");let t=0;try{const i=document.getElementsByTagName("html").item(0).style["-webkit-text-size-adjust"],n=e.contentDocument;if(n){const e=n.getElementsByTagName("html").item(0);e&&(e.style["-webkit-text-size-adjust"]=i)}if(ve.on("menu:setfont",(function(t){const i=function(e){let t=0;return e.contentDocument&&e.contentDocument.body.offsetHeight?t=e.contentDocument.body.offsetHeight:e.Document&&e.Document.body&&e.Document.body.scrollHeight?t=e.Document.body.scrollHeight:e.document&&e.document.body&&e.document.body.scrollHeight&&(t=e.document.body.scrollHeight),t}(e);e.parentElement&&0!==i&&(e.style.height=`${i}px`)})),e.contentDocument&&e.contentDocument.body.offsetHeight?t=e.contentDocument.body.offsetHeight:e.Document&&e.Document.body&&e.Document.body.scrollHeight?t=e.Document.body.scrollHeight:e.document&&e.document.body&&e.document.body.scrollHeight&&(t=e.document.body.scrollHeight),e.parentElement&&(e.style.height=t+"px"),/MSIE\s(7|8)/.test(navigator.userAgent)&&e.contentWindow&&e.contentWindow.document){let t=e.contentWindow.document.getElementsByTagName("html");t&&t.length&&(t[0].style.overflow="hidden")}const o=e.contentWindow.document,a=o.querySelectorAll(".vote_option_title .img_panel img"),s="data-prevent-longtap";for(const e of a){if("1"===e.getAttribute(s))continue;e.setAttribute(s,"1"),e.style["pointer-events"]="none",e.addEventListener("touchstart",(function(e){e.preventDefault()}));const t=e.parentNode,i=t.parentNode,n=o.createElement("div");n.setAttribute("style","\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n "),i.style.position="relative",i.removeChild(t),n.appendChild(t),i.appendChild(n),n.addEventListener("touchstart",(()=>{e.dispatchEvent(new MouseEvent("click"))}),!0)}zi&&zi.postPageHeightMessage&&zi.postPageHeightMessage("updatePageHeight"),console.log("financeUtils done"),I.emitRenderNewHeightEvt()}catch(Ps){}}let i=[].slice.call(document.getElementsByTagName("iframe")),n=[],o=Math.ceil(1e4*Math.random());window.reportVid=[];for(let s=0,r=i.length;s1&&(r=i.join("&")+"#wechat_redirect")}}if(c&&(e.txVideoReg.test(c)||e.mpVideoReg.test(c))||i.getAttribute("data-mpvid")&&i.getAttribute("data-mpvid").startsWith("wxv_")){if(D.isShowMpVideo()||e.mpVideoReg.test(c)){let t=me.getQuery("vid",r)||i.getAttribute("data-mpvid");if(!t)return;let n=i.getAttribute("data-vw"),s=i.getAttribute("data-vh");"qq.com"==document.domain&&((new Image).src="https://badjs.weixinbridge.com/badjs?id=139&level=4&from="+window.encodeURIComponent(window.locations.host)+"&msg="+window.encodeURIComponent(window.locations.href),we.setLogs({id:27302,key:100,value:1,lc:1,log0:"[beforeD]"+window.encodeURIComponent(window.locations.href)})),window.reportVid.push(t),c=["/mp/videoplayer?video_h=",s,"&video_w=",n,"&scene=",window.source,"&random_num=",o,"&article_title=",encodeURIComponent(window.msg_title.htmlDecode()),"&source=4&vid=",t,"&mid=",appmsgid,"&idx=",itemidx||idx,"&__biz=",biz,"&nodetailbar=",window.is_temp_url?1:0,"&uin=",uin,"&key=",key,"&pass_ticket=",pass_ticket,"&version=",version,"&devicetype=",window.devicetype||"","&wxtoken=",window.wxtoken||"","&sessionid=",window.sessionid||"","&preview=",window.is_temp_url?1:0,"&is_in_pay_subscribe=",window.isPaySubscribe,`&nickname=${window.nickname}`,`&roundHeadImg=${window.round_head_img}`,`&enterid=${window.enterid}`,`&subscene=${window.subscene}`].join("");const d=uo().createMpVideoDom(i,a,c);e.video_iframe.push({dom:d,vid:t})}}else if(r&&(r.indexOf("newappmsgvote")>-1&&(d.indexOf("js_editor_vote_card")>=0||d.indexOf("vote_iframe")>=0)||0==r.indexOf("http://mp.weixin.qq.com/bizmall/appmsgcard")&&(d.indexOf("card_iframe")>=0||d.indexOf("js_editor_card")>=0)||r.indexOf("appmsgvote")>-1||r.indexOf("mp.weixin.qq.com/mp/getcdnvideourl")>-1)){if(window.is_transfer_msg&&!window.reprint_ticket&&r.indexOf(window.biz)<0)return void n.push(i);if(window.__second_open__||(r=r.replace(/^http:/,locations.protocol)),d.indexOf("card_iframe")>=0||d.indexOf("js_editor_card")>=0){-1===d.indexOf("card_iframe")&&(i.className+=" card_iframe"),-1===d.indexOf("res_iframe")&&(i.className+=" res_iframe");let e=r.replace("#wechat_redirect",["&pass_ticket=",pass_ticket,"&scene=",source,"&msgid=",appmsgid,"&msgidx=",itemidx||idx,"&version=",version,"&devicetype=",window.devicetype||"","&child_biz=",biz,"&wxtoken=",window.wxtoken||""].join(""));reprint_ticket&&(e+=["&mid=",mid,"&idx=",idx,"&reprint_ticket=",reprint_ticket,"&source_mid=",source_mid,"&source_idx=",source_idx].join("")),window.__second_open__?pe({url:e,type:"GET",f:"html",success:function(n){i.setAttribute("src",e),i.contentWindow.document.open("text/html","replace"),i.contentWindow.document.write(n),i.contentWindow.document.close(),i.contentWindow.history.replaceState(null,null,e),-1==r.indexOf("mp.weixin.qq.com/mp/getcdnvideourl")&&(i.onload=function(){t(i)})}}):(i.setAttribute("src",e),-1==r.indexOf("mp.weixin.qq.com/mp/getcdnvideourl")&&(i.onload=function(){t(i)}))}else{let e=r.indexOf("#wechat_redirect")>-1,n=["&uin=",uin,"&key=",key,"&pass_ticket=",pass_ticket,"&wxtoken=",window.wxtoken||""].join("");reprint_ticket?n+=["&mid=",mid,"&idx=",idx,"&reprint_ticket=",reprint_ticket,"&source_mid=",source_mid,"&source_idx=",source_idx,"&appmsg_token=",appmsg_token].join(""):(d.indexOf("vote_iframe")>=0||d.indexOf("js_editor_vote_card")>=0)&&(n+=["&mid=",mid,"&idx=",idx,"&appmsg_token=",appmsg_token].join(""),-1===d.indexOf("vote_iframe")&&(i.className+=" vote_iframe"));let o=e?r.replace("#wechat_redirect",n):r+n;window.__second_open__?pe({url:o,type:"GET",f:"html",success:function(e){i.contentWindow.Ajax=pe,i.setAttribute("src",o),i.contentWindow.document.open("text/html","replace"),i.contentWindow.document.write(e),i.contentWindow.document.close(),i.contentWindow.history.replaceState(null,null,o),-1==r.indexOf("mp.weixin.qq.com/mp/getcdnvideourl")&&(i.onload=function(){t(i)})}}):(i.setAttribute("src",o),-1==r.indexOf("mp.weixin.qq.com/mp/getcdnvideourl")&&(i.onload=function(){t(i)}))}i.appmsg_idx=s}if(r&&r.indexOf("mp.weixin.qq.com/mp/getcdnvideourl")>-1&&w>0){let e=w,t=3*e/4;i.width=e,i.height=t,i.style.setProperty&&(i.style.setProperty("width",e+"px","important"),i.style.setProperty("height",t+"px","important"))}}(i[s],s);for(let s=0;s=t.start&&n<=t.end&&(t.reported=!0,setTimeout(function(e,t,i){return function(){let n=De.getVideoInfo(),o="",a="",s=3;n[e]&&(n[e].hit_bizuin&&(o=n[e].hit_bizuin),n[e].hit_vid&&(a=n[e].hit_vid),n[e].ori_status&&(s=n[e].ori_status)),P.report({step:1,hit_vid:a,hit_bizuin:o,ori_status:s,vid:e,screen_num:Math.ceil(t/i),screen_height:i})}}(t.vid,n,le.getInnerHeight()),1e4))}o==i&&(ye.off(window,"scroll",a),e.video_top=e.video_iframe=a=null)}if(window.iframe_reload=function(){for(let e=0,n=i.length;e-1||o.indexOf("appmsgvote")>-1)&&t(n)}},"getElementsByClassName"in document){let e=document.getElementsByClassName("video_iframe");for(let t,i=0;t=e.item(i++);)t.setAttribute("scrolling","no"),t.style.overflow="hidden"}e.video_iframe.length>0&&setTimeout((function(){let t=e.video_iframe,i=document.getElementById("js_article");for(let n=0,o=t.length;n\nFrom : <#=source_nickname#>\n';function fo(e){let t=e.getAttribute("data-src")||e.getAttribute("src"),i=me.getQuery("vid",t),n=e.getAttribute("data-vw"),o=e.getAttribute("data-vh"),a=e.getAttribute("data-ratio"),s=document.createElement("span");s.setAttribute("data-ratio",a),s.id="js_tx_video_container_"+Math.random(),s.className="js_tx_video_container",s.style.cssText=e.style.cssText,s.style.display="none";let r=e.parentNode;if(r)return r.lastChild===e?r.appendChild(s):r.insertBefore(s,e.nextSibling),tt.createTxVideo({containerId:s.id,vid:i,width:n,height:o,autoplay:!1,allowFullScreen:!0,onSuccess:function(e){s.playerObj=e.player,function(e,t){if(!t||!e)return;let i=e.parentNode;if(!i)return;let n=[];for(let o=0,a=i.children.length;o=0&&e.getAttribute("data-vid")==t&&n.push(e)}for(let o=0,a=n.length;o0?1:0,is_need_ad:0,comment_id:comment_id,is_need_reward:is_need_reward,both_ad:0,reward_uin_count:is_need_reward?3*G.getCountPerLine({can_reward:!0})-1:0,send_time:window.send_time||"",msg_daily_idx:msg_daily_idx,item_show_type:window.item_show_type,is_original:0,is_only_read:is_only_read,req_id:window.req_id||"",pass_ticket:pass_ticket,is_temp_url:window.is_temp_url||0,rtId:e,rtKey:"50",appmsg_like_type:window.appmsg_like_type,is_pay_subscribe:window.isPaySubscribe,pay_subscribe_uin_count:window.isPaySubscribe?3*p.getCountPerLine():0,has_red_packet_cover:window.__appmsgCgiData.has_red_packet_cover,export_key:me.getQuery("exportkey"),export_key_extinfo:"",onSuccess:function(t){if(t){window.ext_complete_success=!0;try{if(window.__second_open__&&t&&1*!!t.bizfile_ret==1&&(window.localStorage&&window.localStorage.setItem&&window.localStorage.setItem(`isBanned-${window.biz}-${window.mid}-${window.idx}`,"1"),window.locations.href.indexOf("?")>-1?window.locations.href=window.locations.href+"&r="+Math.random()+"#wechat_redirect":window.locations.href=window.locations.href+"?r="+Math.random()+"#wechat_redirect"),v.commit("SET_EXT_RES",t),window.__second_open__&&t.pay_subscribe_info&&1*t.pay_subscribe_info.is_paid!=isPaid)return y.report110809(11),(new Image).src="https://badjs.weixinbridge.com/badjs?id=244&level=4&from="+window.encodeURIComponent(window.locations.host)+"&msg="+window.encodeURIComponent(window.locations.href),void ve.invoke("handleMPPageAction",{action:"paySuccess",fullUrl:window.locations.href,itemShowType:window.item_show_type,url:locations.href},(e=>{e.err_msg.indexOf("ok")>-1?y.report110809(19):y.report110809(20),window.localStorage&&window.localStorage.setItem&&window.localStorage.setItem(`isPaid-${window.biz}-${window.mid}-${window.idx}`,"1"),window.locations.href=window.locations.href+"&r="+Math.random()+"#wechat_redirect"}));if(t&&t.base_resp&&t.base_resp.wxtoken&&(window.wxtoken=t.base_resp.wxtoken),window.fromWeixinCached&&wo(),function(e){if(!e||!e.img_copy_info||!e.img_copy_info.list)return;let t={},i=e.img_copy_info.list,n=window.__appmsgCgiData.copyright_stat,o=window.__appmsgCgiData.source_biz;for(let s=0,r=i.length;s0&&(Yi.init(),Yi.render({list:t.red_packet_cover_data.cover_uri_data})),t&&yo.forEach((e=>{t.wap_export_token&&e.setAttribute("data-wap_export_token",t.wap_export_token),e.setAttribute("data-loaded",1)})),window.isFans=t.is_fans,function(e){let t=e.appmsgstat||{};const i=e.appmsgact||{},n=e.paySubscribeInfo||{};window.paySubscribeInfo=n,window.isFans=e.is_fans,window.hitBizRecommendX=e.hit_bizrecommend,window.appmsgstat||(window.appmsgstat=t),Me(),l.setBackgroundClass(),G.initAuthorName(e.reward,{reward_entrance_enable_for_preview:e.reward_entrance_enable_for_preview}),window.isPaySubscribe&&p.init(n,v);let o=[];const{old_liked_before:a,seen_before:s,favorite_before:r,share_before:d,reward_before:c,pay_before:_}=i,{old_liked:m,liked:u}=t;(m||a)&&o.push("like"),(u||s)&&o.push("zaikan"),r&&o.push("collect"),d&&o.push("share"),c&&o.push("reward"),_&&o.push("pay"),window.is_like_profile_gray=e.show_biz_banner,window.is_like_profile_gray&&o.push("gray"),(o.length>0||Qn)&&v.commit("mp-like-profile/setSources",o),t.old_liked||i.old_liked_before?v.commit("mp-related-article/setSources",["praised",!0]):t.liked||i.seen_before?v.commit("mp-related-article/setSources",["liked",!0]):i.favorite_before?v.commit("mp-related-article/setSources",["favorited",!0]):i.share_before?v.commit("mp-related-article/setSources",["shared",!0]):Qn?v.commit("mp-related-article/setSources",["recommend",!0]):e.show_related_article?v.commit("mp-related-article/setSources",["force",!0]):window.is_login?i.reward_before?v.commit("mp-related-article/setSources",["rewarded",!0]):i.pay_before&&v.commit("mp-related-article/setSources",["paid",!0]):v.commit("mp-related-article/setSources",["default",!0]),i.follow_before&&L&&!be.isMac&&!be.isWindows&&v.commit("mp-profile-recommend/loadRecProfileList",{isPageInit:!0})}({show_biz_banner:t.show_biz_banner,appmsgstat:t.appmsgstat,appmsgact:t.appmsgact,comment_enabled:t.comment_enabled,comment_count:t.comment_count,only_fans_can_comment:t.only_fans_can_comment,only_fans_days_can_comment:t.only_fans_days_can_comment,is_fans_days:t.is_fans_days,reward:{reward_total:t.reward_total_count,is_reward_total_count_cut:t.is_reward_total_count_cut,reward_head_img_infos:t.reward_head_img_infos||[],can_reward:t.can_reward,user_can_reward:t.user_can_reward,reward_qrcode_ticket:t.reward_qrcode_ticket,timestamp:t.timestamp,reward_author_head:t.reward_author_head,rewardsn:t.rewardsn,scene:source,is_need_reward:is_need_reward,title:msg_title,author_id:author_id,appmsgextRtId:e,appmsgextRtKey:"50",can_whisper:t.can_whisper},reward_entrance_enable_for_preview:t.reward_entrance_enable_for_preview,reward_wording:t.reward_wording,reward_author_head:t.reward_author_head,comment_entrance_enable_for_preview:t.comment_entrance_enable_for_preview,share_redirect_url:t.share_redirect_url||"",logo_url:t.logo_url,nick_name:t.nick_name,is_fans:t.is_fans,paySubscribeInfo:t.pay_subscribe_info,share_flag:t.share_flag,test_flag:t.test_flag,show_related_article:t.show_related_article,hit_bizrecommend:t.hit_bizrecommend})}catch(Ps){return ue.log("[Appmsg] error parse async data, biz="+biz+", mid="+mid),(new Image).src=("http://mp.weixin.qq.com/mp/jsreport?1=1&key=1&content=biz:"+biz+",mid:"+mid+",uin:"+uin+"[key1]"+encodeURIComponent(Ps.toString())+"&r="+Math.random()).substr(0,1024),console&&console.error(Ps),void(void 0!==window.WX_BJ_REPORT&&window.WX_BJ_REPORT.BadJs&&WX_BJ_REPORT.BadJs.onError(Ps))}}},onError:function(){(new Image).src="http://mp.weixin.qq.com/mp/jsreport?1=1&key=2&content=biz:"+biz+",mid:"+mid+",uin:"+uin+"[key2]ajax_err&r="+Math.random()},onComplete:function(){window.ext_complete=!0,be.isOnlyWechat||(console.warn("window.ext_complete_success:",window.ext_complete_success),window.ext_complete_success=!0),q.emit("ext-complete"),yo.forEach((e=>{e.setAttribute("data-loaded",1)}))}})}function vo(){!function(){let e=document.getElementsByTagName("iframe"),t=[];for(let o=0,a=e.length;o0&&"function"==typeof window.__getVideoWh&&ye.on(window,"resize",(function(){try{for(let e=0,t=ho.length;e(window.__addIdKeyReport("28307",66),r(n),function(e){!e||(e.width<40||e.height<40)&&(o(e.style.width)<40||o(e.style.height)<40)||(e.querySelector("span.weui-primary-loading").style.opacity=null)}(n),e=e.https2http(),t.__retryload++,t.src=he(e,"retryload",t.__retryload,!0),!1))))))}function r(e){e&&e.classList.remove("img_loadederror")}window.logs.outer_pic=0;const d=document.getElementsByTagName("img");for(let a=0,_=d.length;a<_;a++){const e=d[a].getAttribute("data-src");e&&e.isGif()&&d[a].classList.add("__bg_gif")}const c=document.getElementsByClassName("__bg_gif");for(let a=0,_=c.length;a<_;++a)c[a].setAttribute("data-order",a);const l=function(e){try{let t=e.childNodes,i=getComputedStyle(e);(i.backgroundImage.match(/https\:\/\/mmbiz\.qpic\.cn/)||i.backgroundImage.match(/http\:\/\/mmbiz\.qpic\.cn/))&&window.__addIdKeyReport("111535",2);for(let e=0;e=2&&s(e,t,i),!e||a>2)return;if(!e.isCDN()){if(!ee())return;if(!ie(e))return}const r=0==e.indexOf("https://")?7:0;window.__addIdKeyReport("28307",72+r),a<=1&&window.__addIdKeyReport("28307",75+1*a+r),e.isWxpic()?(window.__addIdKeyReport("28307",93),window.WX_BJ_REPORT&&WX_BJ_REPORT.BadJs.report("imgError:hevc",e,{mid:"mmbizwap:imgMonitor",view:"wap_appmsg"}),a<=1&&window.__addIdKeyReport("28307",96+1*a)):e.isWebp()?(window.__addIdKeyReport("28307",86),window.WX_BJ_REPORT&&WX_BJ_REPORT.BadJs.report("imgError:webp",e,{mid:"mmbizwap:imgMonitor",view:"wap_appmsg"}),a<=1&&window.__addIdKeyReport("28307",89+1*a)):window.WX_BJ_REPORT&&WX_BJ_REPORT.BadJs.report("imgError",e,{mid:"mmbizwap:imgMonitor",view:"wap_appmsg"}),ie(e)&&window.__addIdKeyReport("28307",108),"img"===n&&a<2&&(a++,t.__retryload=a,1==a&&e.indexOf("http://")>-1?(e=e.http2https(),window.__addIdKeyReport("28307",60),window.__addIdKeyReport("28307",77)):1==a&&e.indexOf("https://")>-1?(window.__addIdKeyReport("28307",61),window.__addIdKeyReport("28307",77)):2==a&&e.indexOf("mmbiz.qpic.cn")>-1&&(e=e.replace("mmbiz.qpic.cn","mmbiz.qlogo.cn")).indexOf(!1)&&(e=e.http2https()),ie(e)&&(e=ne(e)),t.start_load_time=+new Date,o=e=he(e,"retryload",a,!0)),window.__has_imgfailed||(window.__has_imgfailed=!0,window.__addIdKeyReport("28307",65)),ue.log("[Appmsg] image_load_event_on_error. src:"+e),t.setAttribute("data-fail",1);try{if("[object Array]"==Object.prototype.toString.call(t.lazyLoadOnerror))for(let e=0,i=t.lazyLoadOnerror.length;e2)return;ue.log("[Appmsg] image_load_event_onload_image. src:"+t+" ^^^ retryloadtimes: "+o),i.setAttribute("data-fail",0),"img"===n&&function(e){try{const t=e.getAttribute("data-src");if(!/^https?\:\/\/mmbiz\.qpic\.cn/.test(t))return;let i=e.parentNode,n=!1;xe.hasClass(i,"js_jump_icon")&&(n=!0);let o=!1;for(;i.tagName&&"body"!=i.tagName.toLowerCase();){if("a"==i.tagName.toLowerCase()){null!=(i.getAttribute("href")||"").match(/^http/)&&(o=!0);break}i=i.parentNode}if(n&&!o){let t=e.parentNode,i=t.parentNode;if(i){let e=document.createDocumentFragment();for(;t.firstChild;)e.appendChild(t.firstChild);i.insertBefore(e,t),i.removeChild(t)}}else if(!n&&o){let t=document.createElement("span"),i=getComputedStyle(e);"static"!=i.positon&&(t.style.position=i.positon),t.style.left=i.left,t.style.top=i.top,t.style.right=i.right,t.style.bottom=i.bottom,t.style.margin=i.margin,xe.addClass(t,"js_jump_icon"),xe.addClass(t,"h5_image_link"),e.style.position="static",e.style.margin="0px",e.parentNode.insertBefore(t,e),t.appendChild(e),window.__addIdKeyReport("111535",0)}}catch(Ps){}}(i);try{if("[object Array]"==Object.prototype.toString.call(i.lazyLoadOnload))for(let e=0,t=i.lazyLoadOnload.length;e-1&&window.__addIdKeyReport("28307",50),1==o&&t.indexOf("https://")>-1&&window.__addIdKeyReport("28307",52);const d=Math.random(),c=+new Date-i.start_load_time;c&&0==t.indexOf("https://")&&d<.5?(window.__addIdKeyReport("27822",121,c),window.__addIdKeyReport("27822",122)):c&&d<5e-4&&(window.__addIdKeyReport("27822",124,c),window.__addIdKeyReport("27822",125)),"img"!==n||""===i.style.filter||"none"===i.style.filter||/translate(Z|3d)\(/.test(i.style.transform)||(i.style.transform+=" translateZ(0)",i.style.webkitTransform+=" translateZ(0)")},detect(e){if(!e||!e.time||!e.loadList)return;const t=e.time,i=e.loadList;window.logs&&window.logs.img&&window.logs.img.download&&(window.logs.img.download[t]=i)},container:document.getElementById("page-content")})}function To(){const e=document.getElementById("js_read_container"),t={player:null,srcId:`__wxtag__${window.biz}-${window.mid}-${window.idx}`,mediaId:"",tag:"===mediaId-sep===",playDuration:0,playTime:0,maxNum:5,curNum:0,format:"",type:6,speed:100,voiceInfo:{title:"",nickname:"",appmsgUrl:"",duration:0},voiceOpt:null,lock:!1,status:"stop",currentTime:0,beginTime:0,leaveNeedReport:!1,pause2PlayNeedReport:!1,isSeek:!1,loadingTimer:null},i=e=>`${e}&uin=${window.uin}&key=${window.key}&pass_ticket=${encodeURIComponent(window.pass_ticket)}`,n=()=>{if(t.curNum>10)return(e=>{if(!e&&null!==t.loadingTimer)return clearTimeout(t.loadingTimer),void(t.loadingTimer=null);ve.invoke("handleMPPageAction",{action:"showToast",status:e?"loading":"dismissloading"})})(!1),t.lock=!1,void weui.alert("System busy. Try again later.");t.curNum++;const e=t.curNum>t.maxNum?5e3:1e3;pe({url:`/mp/msgvoice?action=getvoiceinfo&__biz=${window.biz}&mid=${window.mid}&idx=${window.idx}&sn=${window.sn}&type=${t.type}&speed=${t.speed}`,type:"GET",dataType:"json",async:!0,success:a=>{if(a&&a.base_resp&&0===a.base_resp.ret)if(a.mediaid){t.mediaId=a.mediaid;const e=encodeURIComponent(`__biz=${window.biz}&mid=${window.mid}&idx=${window.idx}`),n=t.voiceInfo;t.voiceOpt={protocol:2===a.format?"hls":"",src:i(`https://mp.weixin.qq.com/mp/msgvoice?action=get_voice&mediaid=${a.mediaid}&devicetype=${window.devicetype}&_type=${t.type}&speed=${t.speed}&encodeurl=${e}`),lowbandUrl:i(`https://mp.weixin.qq.com/mp/msgvoice?action=get_voice&mediaid=${a.mediaid}&devicetype=${window.devicetype}&_type=${t.type}&speed=${t.speed}&encodeurl=${e}`),title:n.title,epname:"Source Article",singer:n.nickname?`${n.nickname}的语音`:"Official Account audio",srcId:t.srcId+t.tag+t.mediaId,coverImgUrl:"",webUrl:n.appmsgUrl,musicbar_url:`https://mp.weixin.qq.com/mp/msgvoice?action=ttspage&__biz=${window.biz}&mid=${window.mid}&idx=${window.idx}&sn=${window.sn}&type=${t.type}#wechat_redirect`,needStartMusicUI:0},o()}else setTimeout(n,1e3);else console.log("getvoiceinfo err",a),setTimeout(n,e)},error:t=>{console.log("getvoiceinfo err",t),setTimeout(n,e)}})},o=()=>{t.player=Ee.init({protocal:"hls",wxIndex:t.voiceOpt.srcId,type:7,comment_id:"",src:t.voiceOpt.src,jsapi2Src:t.voiceOpt.src+"&voice_type=1",allowPause:!0,duration:t.voiceInfo.duration,title:t.voiceOpt.title,singer:t.voiceOpt.singer,epname:t.voiceOpt.epname,coverImgUrl:t.voiceOpt.coverImgUrl,playingCss:"share_audio_playing",playCssDom:e.getElementsByClassName("js_read_main")[0],playArea:e.getElementsByClassName("js_read_play")[0],progress:e.getElementsByClassName("js_read_progress")[0],fileSize:0,playtimeDom:e.getElementsByClassName("js_read_playtime")[0],bufferDom:e.getElementsByClassName("js_read_buffer")[0],playdotDom:e.getElementsByClassName("js_read_playdot")[0],seekRange:e.getElementsByClassName("js_read_seekRange")[0],seekContainer:e.getElementsByClassName("js_read_main")[0],loadingDom:e.getElementsByClassName("js_read_loading")[0],detailArea:"",detailUrl:t.voiceOpt.musicbar_url,webUrl:t.voiceOpt.musicbar_url})};pe({url:`/mp/msgvoice?action=ttspage&__biz=${window.biz}&mid=${window.mid}&idx=${window.idx}&sn=${window.sn}&type=${t.type}&f=json`,type:"GET",dataType:"json",async:!0,success:i=>{i&&i.base_resp&&0===i.base_resp.ret?(t.voiceInfo={title:i.title,nickname:i.nickname,appmsgUrl:i.appmsg_url,duration:1*i.voice_info.duration},n(),e.getElementsByClassName("js_read_duration")[0].innerHTML=(e=>{const t=e=>e>=10?e:`0${e}`;return`${t(Math.floor(e/60))}:${t(e%60)}`})(1*i.voice_info.duration)):weui.alert("System busy. Try again later.")},error:e=>{console.log("ttspage err: ",e),weui.alert("网络不可用,请检查网络设置")}})}const Co='\n style="display:none;"<#}#>>\n This browser does not support music or audio playback. Please play it in Weixin or another browser.\n \n \n \n <#=music_name#>\n \n \n \n \n \n \n \n \n \n \n \n';function So(e,t){let i=e.parentNode.querySelector(`[data-preloadingid="${t}"]`);i&&(i.parentNode.removeChild(i),I.emitRenderNewHeightEvt())}const Eo={adapter:{1:je,2:Re},musicList:{},musicLen:0};function jo(e,t,i){if(t.media_id=Ee.encodeStr(e.getAttribute("mid")||"").replace(/^\s/,"").replace(/\s$/,""),t.musictype=parseInt(e.getAttribute("musictype"))||1,t.musictype>2&&(t.musictype=2),t.albumid=Ee.encodeStr(e.getAttribute("albumid")||"").replace(/^\s/,"").replace(/\s$/,""),t.otherid=Ee.encodeStr(e.getAttribute("otherid")||"").replace(/^\s/,"").replace(/\s$/,""),t.jumpurlkey=Ee.encodeStr(e.getAttribute("jumpurlkey")||"").replace(/^\s/,"").replace(/\s$/,""),t.duration=parseInt(e.getAttribute("play_length")||0,10),t.posIndex=i,t.albumurl=Ee.encodeStr(e.getAttribute("albumurl")||"").replace(/^\s/,"").replace(/\s$/,""),t.audiourl=Ee.encodeStr(e.getAttribute("audiourl")||"").replace(/^\s/,"").replace(/\s$/,""),t.singer=Ee.encodeStr(e.getAttribute("singer")||"").replace(/^\s/,"").replace(/\s$/,""),!t.singer||"undefined"==t.singer){let i=e.getAttribute("src")||"",n=decodeURIComponent(me.getQuery("singer",i)||"");t.singer=Ee.encodeStr(n).replace(/^\s/,"").replace(/\s$/,""),t.singer&&"undefined"!=t.singer||(t.singer="")}t.music_name=Ee.encodeStr(e.getAttribute("music_name")||"").replace(/^\s/,"").replace(/\s$/,""),Eo.adapter[t.musictype]&&"function"==typeof Eo.adapter[t.musictype].initData&&(t=Eo.adapter[t.musictype].initData(t,{scene:0})),Ee.renderPlayer(Co,t,e),So(e,t.musicid+"_"+t.posIndex),function(e){let t=e.musicid+"_"+e.posIndex;ue.log("[Music] init "+e.detailUrl);let i=Ee.decodeStr(e.music_name);e.player=Ee.init({allowPause:!0===e.allowPause,wxIndex:e.posIndex,type:e.type||0,comment_id:"",mid:e.media_id,otherid:e.otherid,albumid:e.albumid,songId:e.musicid,jumpurlkey:e.jumpurlkey,duration:e.duration,title:i,singer:e.singer,epname:"Music",coverImgUrl:e.albumurl,playingCss:"qqmusic_playing",pauseCss:e.pauseCss||"",playCssDom:Ro("qqmusic_main_"+t),playArea:Ro("qqmusic_play_"+t),detailUrl:e.detailUrl||"",webUrl:e.webUrl||"",detailArea:Ro("qqmusic_home_"+t)})}(t),Eo.musicList[t.musicid+"_"+t.posIndex]=t}function Ro(e){return document.getElementById(e)}function Bo(){(function(){let e=Ro("js_content");return!(!e||(Eo._oElements=e.getElementsByTagName("qqmusic")||[],Eo._oElements.length<=0))})()&&(Eo.musicLen=Eo._oElements.length,function(){let e=0;for(let t=0;t{if(!e.length)return void t();const i={video_snap_num:e.length};e.forEach(((e,t)=>{i[`exportid_${t}`]=e.dataset.id,i[`username_${t}`]=e.dataset.username})),pe({url:"/mp/appmsg_video_snap?action=batch_get_video_snap",type:"POST",dataType:"json",async:!0,data:i,success:function(e){e&&e.base_resp&&0===e.base_resp.ret&&(No.channelsInfo=e.video_snap_info),t()},error:function(){t()}})}))}function qo(e,t,i){t.duration=parseInt((1*e.getAttribute("play_length")||0)/1e3,10),t.posIndex=i;var n=e.getAttribute("name")||"";try{n=decodeURIComponent(n)}catch(Ps){}let o;t.title=Ee.encodeStr(n).replace(/^\s/,"").replace(/\s$/,""),t.fileSize=1*e.getAttribute("high_size")||0,t.nickname=window.nickname,t.voiceTag="v",t.isShowListenLater=1===No.isSupportListenLater&&!window.is_pay_subscribe&&!window.tts_is_ban;const a=()=>{setTimeout((()=>{if(t.playArea=o.shadowRoot.querySelector(".js_voice_play"),t.progress=o.shadowRoot.querySelector(".js_audio_card_progress_inner"),t.bufferDom=o.shadowRoot.querySelector(".js_audio_card_progress_buffer"),t.loadingDom=o.shadowRoot.querySelector(".js_audio_card_progress_loading"),t.playdotDom=o.shadowRoot.querySelector(".js_audio_card_progress_handle"),t.seekRange=o.shadowRoot.querySelector(".js_audio_card_progress_wrp"),t.audioProgressBarDom=o.shadowRoot.querySelector(".js_audio_progress_bar"),t.playpercent=o.shadowRoot.querySelector(".js_voice_percent"),t.playpercentDesc=o.shadowRoot.querySelector(".js_voice_percent_desc"),t.listenLaterDom=o.shadowRoot.querySelector(".js_audio_listen_later"),t.albumDom=o.shadowRoot.querySelector(".js_voice_album"),t.playtimeDom=o.shadowRoot.querySelector(".js_duration"),"MP-COMMON-CLAUDIO"===o.tagName){if(!be.isWechat||be.isWindowsWechat||be.isMacWechat)return void ye.on(t.detailArea,"click",(()=>{(window.weui||window).alert("请在手机微信内操作")}));if(be.isandroids&&window.clientversion<"28002655"||be.isioses&&window.clientversion<"18002725"){const e=()=>{ve.invoke("confirmDialog",{title:"当前版本暂不支持,请更新至微信最新版本",confirmText:"Update Now",cancelText:"Cancel"},(e=>{-1!==e.err_msg.indexOf(":ok")?locations.href=be.isioses?"https://itunes.apple.com/cn/app/id414478124?mt=8&ls=1":"https://support.weixin.qq.com/update/":-1!==e.err_msg.indexOf("system:")&&(window.weui||window).alert("当前版本暂不支持,请更新至微信最新版本")}))};return void ye.on(t.detailArea,"click",e)}}!function(e){var t=e.voiceid+"_"+e.posIndex,i="";if(window.voice_in_appmsg&&window.voice_in_appmsg[e.voiceid]){var n=window.voice_in_appmsg[e.voiceid],o=window.biz||"",a=window.mid||"",s=window.idx||"";n.bizuin&&n.appmsgid&&n.idx&&(o=n.bizuin,a=n.appmsgid,s=n.idx),i=(window.locations.protocol||"https:")+"http://mp.weixin.qq.com/mp/audio?_wxindex_=#_wxindex_#&scene=104&__biz=#biz#&mid=#mid#&idx=#idx#&voice_id=#voice_id#&sn=#sn##wechat_redirect".replace("#_wxindex_#",e.posIndex).replace("#biz#",o).replace("#mid#",a).replace("#idx#",s).replace("#voice_id#",e.voiceid).replace("#sn#",n.sn||"")}ue.log("[Voice] init"+i);var r=Ee.decodeStr(e.title);e.player=Ee.init({wxIndex:e.posIndex,type:2,songId:e.voiceid,comment_id:"",src:e.src,jsapi2Src:e.jsapi2Src,allowPause:!0,duration:e.duration,title:r,singer:window.nickname?window.nickname+"'s audio":"Official Account audio",epname:"Source Article",coverImgUrl:window.__appmsgCgiData.hd_head_img,playingCss:"share_audio_playing",pauseCss:"share_audio_pause",playCssDom:e.detailArea||Po("voice_main_"+t),playArea:e.playArea||Po("voice_play_"+t),progress:e.progress||Po("voice_progress_"+t),fileSize:e.fileSize,playtimeDom:e.playtimeDom||Po("voice_playtime_"+t),bufferDom:e.bufferDom||Po("voice_buffer_"+t),playdotDom:e.playdotDom||Po("voice_playdot_"+t),playpercent:e.playpercent||Po("voice_percent_"+t),playpercentDesc:e.playpercentDesc||Po("voice_percent_desc_"+t),seekRange:e.seekRange||Po("voice_seekRange_"+t),seekContainer:e.detailArea||Po("voice_main_"+t),loadingDom:e.loadingDom||Po("voice_loading_"+t),detailArea:e.detailArea||Po("voice_main_"+t)||"",albumDom:e.albumDom||Po("voice_album_"+t),detailUrl:i,webUrl:window.msg_link,speedList:[.75,1,1.25,1.5,2],audioCardBody:Po(`audio_card_bd_${t}`),ctrlArea:Po(`audio_card_control_${t}`),fastBackBtn:Po(`audio_fast_back_${t}`),fastForwardBtn:Po(`audio_fast_forward_${t}`),doubleSpeedBtn:Po(`audio_double_speed_${t}`),isAudio:!0,userName:window.user_name||"",articleCoverCdnUrl1_1:window.cdn_url_1_1,tingExtInfo:{bizuin:1*window.atob(window.biz)||0,appmsgid:1*window.mid||0,idx:1*window.idx||0,audio_id:e.voiceid||"",is_album_page:!1},albumInfo:{albumId:e.albumid||"",albumName:e.albumTitle||"",albumUrl:e.albumLink||""},finderInfo:e.finderInfo||{},cover:e.cover||"",author:e.author||"",listenId:e.listenId||"",isTingOpen:No.isTingOpen,isSupportListenLater:No.isSupportListenLater,audioDurationDom:Po(`audio_duration_${t}`),listenLaterDom:e.listenLaterDom||Po(`audio_listen_later_${t}`),audioRealTimeDom:Po(`audio_real_playtime_${t}`),audioProgressBarDom:e.audioProgressBarDom||Po(`audio_progress_bar_${t}`)})}(t)}),0)};if("MP-COMMON-CLAUDIO"===e.tagName){o=e,(t={posIndex:i,voiceTag:"v"}).type=4,t.listenId=o.getAttribute("listen_id"),t.duration=1*o.getAttribute("duration"),t.cover=o.getAttribute("cover").html(!1),t.title=o.getAttribute("name"),t.author=o.getAttribute("author"),t.finderInfo={nonceId:o.getAttribute("data-nonceid"),tid:o.getAttribute("data-tid")},t.isShowListenLater=1===No.isSupportListenLater&&!window.is_pay_subscribe&&!window.tts_is_ban;const{flag:n}=No.channelsInfo.find((e=>e.export_id===o.dataset.id));switch(n){case 1:o.setAttribute("err_tips","当前音频已被作者删除");break;case 2:case 4:o.setAttribute("err_tips","当前音频暂时无法播放");break;case 3:o.setAttribute("err_tips","当前音频已被设置私密")}o.setAttribute("name",t.title),o.setAttribute("cover",t.cover),o.setAttribute("author",t.author),o.setAttribute("pos_index",t.posIndex),o.setAttribute("show-listen-later",t.isShowListenLater?1:0),o.setAttribute("listen_id",t.listenId);const s={compEle:o.parentNode,compType:"clAudio",compIdx:t.posIndex,wrapper:o.parentNode};I.renderCompSilentlyPreHandler(s),So(o,t.listenId),o.removeAttribute("style"),I.renderCompSilently(s),t.detailArea=o.shadowRoot.querySelector(".js_wx_claudio_card"),No.musicList[t.listenId+"_"+t.posIndex]=t,xe.addClass(o,"js_wx_tap_highlight"),xe.addClass(o,"mp_common_channel"),a()}else{if(1===window.is_temp_url&&window.voice_in_appmsg[t.voiceid]){const{transState:e,voiceVerifyState:i}=window.voice_in_appmsg[t.voiceid];t.transState=e,t.voiceVerifyState=i}if("MPVOICE"===e.tagName){o=document.createElement("mp-common-mpaudio"),o.style.display="none";const t=e.getAttributeNames().reduce(((t,i)=>"voice_encode_fileid"===i?t:{...t,[i]:e.getAttribute(i)}),{});for(let e in t)o.setAttribute(e,t[e]);e.parentNode.replaceChild(o,e)}else o=e;(s=t.voiceid,new Promise((e=>{pe({url:`/voice/getvoicestatus?mediaid=${s}`,dataType:"json",timeout:3e3,success(t){t&&t.base_resp&&0===t.base_resp.ret?e(t):e()},error(){e()}})}))).then((e=>{e&&(t.transState=e.voice_trans_state,t.voiceVerifyState=e.voice_verify_state),o.setAttribute("name",Ee.decodeStr(t.title)||""),o.setAttribute("author",t.nickname||""),o.setAttribute("pos_index",t.posIndex),o.setAttribute("duration",t.duration),o.setAttribute("show-listen-later",t.isShowListenLater?1:0),o.setAttribute("data-topic_name",t.albumTitle||""),o.setAttribute("data-topic_link",t.albumLink),o.setAttribute("data-topic_num",t.albumNum||0),o.setAttribute("data-trans_state",t.transState||1),o.setAttribute("data-verify_state",t.voiceVerifyState||3),o.setAttribute("voice_encode_fileid",t.voiceid);const i={compEle:o.parentNode,compType:"mpAudio",compIdx:t.posIndex,wrapper:o.parentNode};I.renderCompSilentlyPreHandler(i),So(o,t.voiceid),o.removeAttribute("style"),I.renderCompSilently(i),t.detailArea=o.shadowRoot.querySelector(".js_wx_mpaudio_card"),No.musicList[t.voiceid+"_"+t.posIndex]=t,xe.addClass(o,"js_wx_tap_highlight"),xe.addClass(o,"mp_common_audio"),a()}))}var s}async function Lo(e){var t;if((t=Po("js_content"))&&(No._oElements=[...t.getElementsByTagName("mpvoice"),...t.getElementsByTagName("mp-common-mpaudio"),...t.getElementsByTagName("mp-common-claudio")],!(No._oElements.length<=0||(No._oElements.forEach((e=>{e.style.display="none"})),0))))try{await Promise.all([new Promise((e=>{No.inWechat?ve.invoke("getTingAudiosestate",{},(t=>{/:ok$/.test(t.err_msg)?No.isTingOpen=1:-9999!==t.err_code&&-1===t.err_msg.indexOf("function_not_exist")||(No.isTingOpen=0),e()})):e()})),new Promise((e=>{let t=null;t=setTimeout((()=>{No.isSupportListenLater=0,e()}),3e3),No.inWechat?ve.invoke("handleMPPageAction",{action:"isSupportAddToTingPlayList"},(i=>{t&&clearTimeout(t),/:ok$/.test(i.err_msg)?No.isSupportListenLater=1:No.isSupportListenLater=0,e()})):e()})),Do()]),No.musicLen=No._oElements.length,function(e){for(var t=0,i=0;i0&&e.forEach((e=>{if(e.voice_id===a)return e.appmsgalbuminfo&&(o.albumTitle=e.appmsgalbuminfo.title||"",o.albumLink=e.appmsgalbuminfo.link.html(!1).replace("#wechat_redirect","")+"#wechat_redirect",o.albumNum=e.appmsgalbuminfo.tag_content_num||0,o.albumid=e.appmsgalbuminfo.album_id||0),!1})),qo(n,o,t),"undefined"!=typeof voiceid&&a&&voiceid&&a===voiceid){let e=n.offsetTop+122-40;setTimeout((()=>{window.scrollTo(0,e)}),0)}t++}}}(e)}catch(i){console.error(i)}}const Oo='\x3c!-- 发表留言 --\x3e\n<#if(window.new_appmsg){#>\n \n<#}else{#>\n \n<#}#>\n';const zo={tagName:"mp-common-poi",oldTagName:"mppoi",isWechat:(be.isandroids||be.isioses)&&be.isWechat&&!be.isWxWork,screen_height:le.getInnerHeight(),commonReportData:{bizuin:1*t(window.biz),msgid:1*window.mid,itemidx:1*window.idx,sessionidnew:window.sessionid,enterid:1*window.enterid},poiDom:[]},Wo=e=>{zo.isWechat?ve.invoke("openlocations",{latitude:1*e.latitude,longitude:1*e.longitude,name:e.name,address:e.address,poiCardExpand:!0,infoUrl:""},(function(e){-1!==e.err_msg.indexOf("ok")?we.setSum(110809,53,1):we.setSum(110809,54,1)})):new Te({msg:"请使用移动端微信打开。"})},Mo=(e={})=>{const t=e.dom,i=e.poiInfo;ye.on(t,"tap",(function(e){O.highlightEle(t),e.stopPropagation(),e.preventDefault(),Ae.report(19937,Object.assign({},zo.commonReportData,{type:2,actiontype:2})),we.setSum(110809,55,1),Wo(i)}),!0),ye.on(t,"click",(e=>{e.preventDefault(),e.stopPropagation()}),!0)},$o=()=>{for(let e=0;e=e+t.clientHeight/2&&t.clientHeight+t.offsetTop<=e+t.clientHeight/2+zo.screen_height&&("A"===t.tagName?(Ae.report(19937,Object.assign({},zo.commonReportData,{type:1,actiontype:1})),we.setSum(110809,58,1)):(Ae.report(19937,Object.assign({},zo.commonReportData,{type:2,actiontype:1})),we.setSum(110809,56,1)))}}},Ho={oldTagName:"mpsearch",tagName:"mp-common-search",isWechat:(be.isandroids||be.isioses)&&be.isWechat&&!be.isWxWork,keywords:[],screen_height:le.getInnerHeight(),exposeHasReport:0,commonReportData:{BizUin:window.biz,MsgId:1*window.mid,ItemIdx:1*window.idx,SearchKeyWord:"",SessionId:window.sessionid,EnterId:1*window.enterid,Scene:1*window.source,SubScene:1*window.subscene}},Uo=(e={})=>{ye.on(e.dom,"click",(function(){let e=Ho.keywords.map((e=>e.label)).join(";");if(Ae.report(19453,Object.assign({},Ho.commonReportData,{SearchKeyWord:e,EventType:2})),we.setSum(110809,47,1),Ho.isWechat){if(be.isioses&&be.ltVersion("7.0.12")||be.isandroids&&be.ltVersion("7.0.12"))return void new Te({msg:"当前微信版本不支持展示该内容,请升级至最新版本。"});const e=[];for(let t=0;t{if(!Ho.exposeHasReport){Ho.exposeHasReport=1;const t=document.documentElement.scrollTop||document.body.scrollTop;if(e.dom.clientHeight+e.dom.offsetTop>=t+e.dom.clientHeight/2&&e.dom.clientHeight+e.dom.offsetTop<=t+e.dom.clientHeight/2+Ho.screen_height){let e=Ho.keywords.map((e=>e.label)).join(";");Ae.report(19453,Object.assign({},Ho.commonReportData,{SearchKeyWord:e,EventType:1})),we.setSum(110809,46,1)}}};ye.on(window,"scroll",t),t()},Fo=e=>{const t=e+"";return t.length>=2?t:"0"+t},Jo=e=>{const t=new Date(1e3*e);return t.getFullYear()<=(new Date).getFullYear()?`${Fo(t.getMonth()+1)}月${Fo(t.getDate())}日 ${Fo(t.getHours())}:${Fo(t.getMinutes())}`:`${t.getFullYear()}年${Fo(t.getMonth()+1)}月${Fo(t.getDate())}日 ${Fo(t.getHours())}:${Fo(t.getMinutes())}`},Vo={getFullTime:Jo,getStatusWording:(e,t)=>{let i;switch(e=parseInt(e,10),t=parseInt(t,10),e){case 0:i=0===t?"Reserve":"Reserved";break;case 1:i="已失效";break;case 2:i="观看直播";break;case 3:case 4:i="Ended";break;case 5:i="观看回放";break;default:i="Reserve"}return i},getStatusDesc:(e,t)=>{let i;switch(t=parseInt(t,10)){case 0:i=`将在${Jo(e)} 直播`;break;case 1:case 3:i=`${Jo(e)} 直播`;break;case 2:default:i="正在直播";break;case 4:i="已结束直播,正在生成回放";break;case 5:i="已结束直播,可观看回放"}return i}},Xo={report:(e,t,i,n)=>{let o=0;try{o=1*window.atob(window.biz)}catch(Ps){}Ae.report(22035,{BizUin:o,AppMsgID:window.parseInt(window.mid,10)||0,ItemIndex:window.parseInt(window.idx,10)||0,Scene:window.parseInt(window.scene,10)||0,Enterid:window.parseInt(window.enterid,10)||0,Action:e,Status:n||"",ActionTS:Math.ceil(Date.now()/1e3),Noticeid:t||"",Username:i||""})}},Go={report:(e,t)=>{let i=0;try{i=1*window.atob(window.biz)}catch(Ps){}Ae.report(24980,{BizUin:i,AppMsgID:window.parseInt(window.mid,10)||0,ItemIndex:window.parseInt(window.idx,10)||0,Scene:window.parseInt(window.scene,10)||0,Enterid:window.parseInt(window.enterid,10)||0,Action:e,ActionTS:Math.ceil(Date.now()/1e3),EventId:t+""||""})}};let Ko=[],Qo=[],Yo=[],Zo=[],ea=[],ta=[],ia=[],na=1,oa=0;const aa={maxWidth:document.getElementById("img-content").getBoundingClientRect().width};try{oa=1*window.atob(window.biz)}catch(Ps){}function sa(){return!!_e.os.pc&&(!(!be.isMac||!be.cpVersion("3.1.0",1,!0,"mac"))||!!(be.isWindows&&be.getWindows()>="63030000"))}function ra(e,t,i){Ae.report(21146,{BizUin:oa,AppMsgID:window.parseInt(window.mid,10)||0,ItemIndex:window.parseInt(window.idx,10)||0,ExportId:t||"",Action:e,Username:i||"",Scene:window.parseInt(window.scene,10)||0,Subscene:window.parseInt(window.subscene,10)||0,EnterId:window.parseInt(window.enterid,10)||0})}function da(e){"live"!==e&&"topic"!==e?("1"!==e&&0!==e||be.isInMiniProgram&&window.weui.alert("暂不支持从小程序进入视频号"),be.isandroids&&window.clientversion>"2700135F"&&window.clientversion<"27001400"?window.weui.alert("当前版本暂不支持查看"):(be.isWechat&&_e.os.pc?window.weui.alert("当前版本暂不支持查看,请在手机上查看"):be.isWechat||alert("请使用微信手机客户端打开"),!be.isWechat||_e.os.pc||be.isWxWork||Be.jumpUrl("https://support.weixin.qq.com/update/",!0))):be.isandroids&&window.clientversion<"2700143c"||be.isioses&&window.clientversion<"17001228"?window.weui.alert("请升级微信客户端版本后查看"):be.isWechat&&_e.os.pc?window.weui.alert("当前版本暂不支持查看,请在手机上查看"):be.isInMiniProgram?window.weui.alert("暂不支持从小程序进入直播间"):be.isWechat||alert("请使用微信手机客户端打开")}function ca(e){if(!be.isWechat||_e.os.pc||be.isWxWork||be.isandroids&&window.clientversion<"2700143c"||be.isioses&&window.clientversion<"17001228")da("profile");else{let t={action:"openFinderProfile",finderUserName:e,commentScene:5,reportExtraInfo:JSON.stringify({scenenote:{bizUin:oa,msgid:window.parseInt(window.mid,10)||0,idx:window.parseInt(window.idx,10)||0,scene:window.parseInt(window.scene,10)||0,enterid:window.parseInt(window.enterid,10)||0,action:5,status:na,actionTS:Math.ceil(Date.now()/1e3),url:window.msg_link},biz_enter_id:window.finder_biz_enter_id})};ve.invoke("openFinderView",{extInfo:t},(e=>{console.log("openFinderView",e)}))}}function la(e,t){let i;if(t){i=(window.locations.protocol||"https:")+`//channels.weixin.qq.com/web/pages/live?eid=${t=encodeURIComponent(t)}`}be.isWxWork&&be.cpVersion("4.1.6",1,!0,"wxwork")||!(!be.isWechat||_e.os.pc||be.isandroids&&window.clientversion<"2700143c"||be.isioses&&window.clientversion<"17001228"||window.is_teenager&&(window.weui.alert("青少年模式下,不支持观看直播"),1))?ve.invoke("openFinderView",{extInfo:{action:"autoOpenFinderLive",finderUserName:e,commentScene:5,wxworkUrl:i,reportExtraInfo:JSON.stringify({scenenote:{bizUin:oa,msgid:window.parseInt(window.mid,10)||0,idx:window.parseInt(window.idx,10)||0,scene:window.parseInt(window.scene,10)||0,enterid:window.parseInt(window.enterid,10)||0,action:4,status:na,actionTS:Math.ceil(Date.now()/1e3),url:window.msg_link},biz_enter_id:window.finder_biz_enter_id})}},(e=>{console.log("openFinderLive",e)})):sa()?t?ve.invoke("openUrlWithExtraWebview",{url:i,openType:1},(e=>{console.log("openUrlWithExtraWebview",e)})):da():da("live")}function pa(e,t,i){!be.isWechat||_e.os.pc||be.isWxWork||be.isandroids&&window.clientversion<"2700143c"||be.isioses&&window.clientversion<"17001228"||ve.invoke("openFinderView",{extInfo:{action:"autoOpenFinderLive",finderUserName:e,commentScene:5,feedID:t,nonceID:i,exportId:t,enableReplay:!0,reportExtraInfo:JSON.stringify({biz_enter_id:window.finder_biz_enter_id})}})}function _a(e,t,i,n,o){ra(2,e,i);let a="";if(o){a=(window.locations.protocol||"https:")+`//channels.weixin.qq.com/web/pages/feed?eid=${o=encodeURIComponent(o)}`}if(be.isWxWork&&be.cpVersion("4.1.6",1,!0,"wxwork")||!(!be.isWechat||_e.os.pc||be.isioses&&be.ltVersion("7.0.15",!1)||be.isandroids&&window.clientversion<="27001337"||be.isandroids&&window.clientversion>"2700135F"&&window.clientversion<"27001400")){let i={action:"openFinderFeed",feedID:e,nonceID:t,notGetReleatedList:9===n?"1":0,shareScene:11,requestScene:34,wxworkUrl:a,reportExtraInfo:JSON.stringify({mp:{scene:1},bizUin:oa,url:window.msg_link,biz_enter_id:window.finder_biz_enter_id})};ve.invoke("openFinderView",{extInfo:i},(e=>{console.log("openFinderDetailView",e)}))}else sa()?o?ve.invoke("openUrlWithExtraWebview",{url:a,openType:1},(e=>{console.log("openUrlWithExtraWebview",e)})):da(n):(ra(3,e,i),da(n))}function ma(e,t){!be.isWechat||_e.os.pc||be.isWxWork||be.isandroids&&window.clientversion<"28000130"||be.isioses&&window.clientversion<"18000622"||window.is_teenager&&(window.weui.alert("青少年模式下,不支持观看直播"),1)?da("topic"):ve.invoke("openFinderTopicView",{extInfo:{title:e,topicType:7,eventEncryptedTopicId:t,entryScene:5}},(e=>{console.log("openFinderTopicView",e)}))}function ua(e){if(!e)return 0;const t=1e4;return e1e5?"100k+":(e/t).toFixed(1)/1+"万"}function wa(e){return Qo.filter((t=>t.export_id===e))}function ha(e){return Yo.filter((t=>t.notice_id===e))}function ga(e){return ea.filter((t=>t.event_id===e))}function fa(e){let t=e;if(t){let e,i=t.getAttribute("data-id"),n=wa(i);n&&n.length>0&&(e=n[0]);let o=e&&e.nonce_id?e.nonce_id:t.getAttribute("data-nonceid"),a=e&&e.flag||0,s=e&&e.username?e.username:t.getAttribute("data-username"),r=e&&e.media_type?e.media_type:t.getAttribute("data-mediatype"),d=e&&e.export_id;0===a&&_a(i,o,s,r,d)}}function ya(e){if(e){let t=e.getAttribute("data-eventid")||"event/UzFfAgtgekIEAQAAAAAA8PsgAc-cEgAAAAstQy6ubaLX4KHWvLEZgBPE8KNsXHhHYfj-zNPgMI5VOd7tKLpk98zswwl8bF9v",i=ga(t),n=i.length>0?i[0]:{event_info:{}};0===n.event_info.flag?(ma(n.event_info.name,t),Go.report(2,t)):Go.report(3,t)}}function ba(e){let t=ha(e);t&&t.length>0&&(t=t[0]);let i=t.status,n=t.reservation;return 0===i?0===n?1:2:1===i?5:2===i?3:3===i?4:1}function va(e,t,i){!be.isWxWork&&be.isWechat?window.is_teenager?window.weui.alert("青少年模式下,不支持预约直播"):pe({url:"/mp/appmsg_video_snap?action=reserve_live",type:"POST",dataType:"json",async:!0,data:{username:e,notice_id:t,reserve_status:i},success:function(e){if(e&&e.base_resp&&0===e.base_resp.ret){let e=document.querySelectorAll(`.js_wechannel_live_card[data-noticeid="${t}"]`);for(let t=0;t0&&n.forEach((e=>{e.reservation=1===i?1:0}))}else window.weui.alert("System busy. Try again later.")},error:function(){window.weui.alert("Operation failed")}}):window.weui.alert("请在微信内操作")}function xa(){if(Zo&&Zo.length&&ta.length===Zo.length)ye.off(window,"scroll",xa);else for(let e=0;e0&&i.getBoundingClientRect().top+i.getBoundingClientRect().height/2<=le.getInnerHeight()){let e=t.getAttribute("data-id")||t.getAttribute("data-noticeid")||t.getAttribute("data-eventid"),i=t.getAttribute("data-username"),n=t.getAttribute("data-type");-1===ta.indexOf(e)&&(ta.push(e),"live"===n?Xo.report(1,e,i,ba(e)):"topic"===n?Go.report(1,e):ra(1,e,i))}}}function ka(e,t,i,n){let o=document.querySelectorAll(`.js_wechannel_live_card[data-noticeid="${e}"]`);for(let a=0;a{e&&function(){let e={__biz:window.biz||"",mid:window.mid||"",idx:window.idx||"",uin:window.uin||"",key:window.key||"",pass_ticket:window.pass_ticket||"",video_snap_num:Yo.length};for(let i=0;i0))for(let t=0;t0){let e=n[0];i.status===e.status&&i.reservation===e.reservation||(e.reservation=i.reservation,e.status=i.status,ka(i.notice_id,i.status,i.reservation,e.start_time))}}},error:function(){}})}()}))}function Ia(){!function(){let e=document.getElementsByClassName("js_wechannel_img_card");for(let t=0;t{O.highlightEle(i),fa(i)}))}}(),function(){let e=document.getElementsByClassName("js_wechannel_video_card");for(let t=0;t{O.highlightEle(i),fa(i)}))}}(),setTimeout((()=>{let e=e=>{let t=e.currentTarget,i=t.getAttribute("data-noticeid"),n=t.getAttribute("data-username"),o="";return Yo instanceof Array&&Yo.forEach((e=>{e.notice_id===i&&(o=e.export_id)})),Xo.report(4,i,n,ba(i)),na=ba(i),la(n,o),!1},t=document.getElementsByClassName("js_wechannel_live_card");if(console.log(t),t.length>0)for(let i=0;i{if(O.highlightEle(n),window.is_temp_url)return window.weui.alert("Unable to do this in preview"),!1;let e=n.getAttribute("data-noticeid"),t=n.getAttribute("data-reservation"),i=n.getAttribute("data-username");return"0"===t?Xo.report(2,e,i,ba(e)):Xo.report(3,e,i,ba(e)),va(i,e,"0"===t?1:2),!1}));else if(5===o){const e=n.getAttribute("data-noticeid"),t=n.getAttribute("data-username"),i=ha(e)||[],o=i[0]&&i[0].export_id;ye.on(n,"click",(()=>{pa(t,o,e)}))}}}),0),function(){let e=document.getElementsByClassName("js_wechannel_live_card");const t=e=>{let t=e.currentTarget,i=t.getAttribute("data-username"),n=t.getAttribute("data-noticeid");Xo.report(5,n,i,ba(n)),na=ba(n),O.highlightEle(t),ca(i)};for(let i=0;i{O.highlightEle(i),ya(i)}))}}(),Aa(),ye.on(window,"scroll",xa)}function Ta(e,t){if(t){if(t.isSaveEnter)return e.replace(/\n/g,"
    ");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;a0?e[0]:{};s={snapType:"live",headImgUrl:i.head_url||t.getAttribute("data-headimgurl")||"",nickname:i.nickname||t.getAttribute("data-nickname")||"",desc:Vo.getStatusDesc(i.start_time,i.status)||t.getAttribute("data-desc")||"",reservation:i.reservation||0,status:i.status||0,username:i.username||t.getAttribute("data-username")||"",noticeid:i.notice_id||t.getAttribute("data-noticeid")||"",flag:1===i.spam_flag||2===i.spam_flag?1:0,intro:Ta(i.introduction||"",{isSaveEnter:!0})},ia.push({noticeid:i.notice_id||t.getAttribute("data-noticeid")||"",status:i.status||0});const{snapType:n,headImgUrl:r,nickname:d,desc:c,reservation:l,status:p,username:_,noticeid:m,flag:u,intro:w}=s;t=o(t),t.setAttribute("data-index",a),t.setAttribute("data-headimgurl",r),t.setAttribute("data-username",_),t.setAttribute("data-nickname",d),t.setAttribute("data-desc",c),t.setAttribute("data-intro",w),t.setAttribute("data-type",n),t.setAttribute("data-status",p),t.setAttribute("data-flag",u),t.setAttribute("data-reservation",l),t.setAttribute("data-noticeid",m),t.classList.add("js_wechannel_live_card"),t.classList.add("js_wx_tap_highlight"),Zo.push(t)}else if("video"===d||"image"===d){let e=wa(r),i=e.length>0?e[0]:{},c=ua(1*i.feed_like_num),l=4===i.media_type||9===i.media_type?"video":"image",p=((1*t.getAttribute("data-ratio")||1)>1?i.feed_full_cover_url||i.feed_thumb_url:i.feed_cover_url||i.feed_thumb_url)||t.getAttribute("data-url")||"";"image"===d&&(p=i.feed_thumb_url||t.getAttribute("data-url")||""),s={snapType:i&&i.media_type?l:t.getAttribute("data-type"),url:p,headImgUrl:i.head_url||t.getAttribute("data-headimgurl")||"",authiconUrl:i.auth_info&&i.auth_info.auth_icon_url||"",nickname:i.nickname||t.getAttribute("data-nickname")||"",desc:i.feed_desc||t.getAttribute("data-desc")||"",flag:i.flag||0,likenum:c,feedFullCoverUrl:i.feed_full_cover_url,feedThumbUrl:i.feed_thumb_url,feedCoverUrl:i.feed_cover_url,id:t.getAttribute("data-id"),username:i.username||t.getAttribute("data-username"),nonceid:i.nonce_id||t.getAttribute("data-nonceid"),width:t.getAttribute("data-width"),height:t.getAttribute("data-height"),isNews:i.is_news},"image"===s.snapType&&(s=Object.assign(s,{imgCount:parseInt(i.media_num||"0",10)||parseInt(t.getAttribute("data-imgcount")||"0",10)||0}));const{url:_,headImgUrl:m,authiconUrl:u,nickname:w,desc:h,flag:g,likenum:f,id:y,username:b,nonceid:v,width:x,height:k,isNews:A,feedFullCoverUrl:I,feedThumbUrl:T,feedCoverUrl:C}=s;t=o(t),t.setAttribute("data-index",a),t.setAttribute("data-url",_),t.setAttribute("data-headimgurl",m),t.setAttribute("data-username",b),t.setAttribute("data-nickname",w),t.setAttribute("data-desc",h),t.setAttribute("data-flag",g),t.setAttribute("data-nonceid",v),t.setAttribute("data-type",s.snapType),t.setAttribute("data-authiconurl",u),t.setAttribute("data-feedfullcoverurl",I),t.setAttribute("data-feedthumburl",T),t.setAttribute("data-feedcoverurl",C),t.setAttribute("data-width",x),t.setAttribute("data-height",k),t.setAttribute("data-isnews",A?1:0),t.setAttribute("data-likenum",f),t.setAttribute("data-parentwidth",n),t.setAttribute("data-maxwidth",aa.maxWidth),t.setAttribute("data-id",y),"video"===s.snapType?t.classList.add("js_wechannel_video_card"):(t.classList.add("js_wechannel_img_card"),t.classList.add("js_wechannel_img_context")),t.classList.add("js_wx_tap_highlight"),Zo.push(t)}else if("topic"===d){let e=ga(t.getAttribute("data-eventid")||"event/UzFfAgtgekIEAQAAAAAA8PsgAc-cEgAAAAstQy6ubaLX4KHWvLEZgBPE8KNsXHhHYfj-zNPgMI5VOd7tKLpk98zswwl8bF9v"),i=e.length>0?e[0]:{event_info:{}},n=it.unix(i.event_info.end_time).format("YYYY年MM月DD日 HH:mm");s={snapType:"topic",headImgUrl:i.event_info.head_url,nickname:i.event_info.nickname,desc:i.event_info.desc,flag:i.event_info.flag,endTime:n,eventId:i.event_id,closeFlag:i.event_info.close_flag,title:i.event_info.name};const{snapType:r,headImgUrl:d,nickname:c,desc:l,flag:p,endTime:_,closeFlag:m,title:u,eventId:w}=s;t=o(t),t.setAttribute("data-index",a),t.setAttribute("data-headimgurl",d),t.setAttribute("data-nickname",c),t.setAttribute("data-desc",l),t.setAttribute("data-endtime",_),t.setAttribute("data-flag",p),t.setAttribute("data-name",u),t.setAttribute("data-closeflag",m),t.setAttribute("data-type",r),t.setAttribute("data-eventid",w),t.classList.add("js_wechannel_topic_card"),t.classList.add("js_wx_tap_highlight"),Zo.push(t)}So(t,r);const c=z({startElem:t,endElem:e},{rules:["CSS[Opacity<1]","CSS[Height=0]"]});if(c.length>0){we.setSum(299174,4,1),console.log("isCovered",c);const e=`biz=${window.biz}&mid=${window.mid}&idx=${window.idx}`;window.WX_BJ_REPORT&&window.WX_BJ_REPORT.BadJs&&window.WX_BJ_REPORT.BadJs.report("videoSnapCoverDetect",`${e}`,{mid:"mmbizwap:appmsg_covertest",view:"wap_business",_info:{url:locations.href,hitArr:c}})}}xa(),Ia()}function Sa(){!function(){let e=[];try{e=JSON.parse(window.video_snap_json).list}catch(Ps){console.log(Ps)}let t={},i={__biz:window.biz||"",mid:window.mid||"",idx:window.idx||"",uin:window.uin||"",key:window.key||"",pass_ticket:window.pass_ticket||""},n=0;for(let o=0;o0&&(!function(e){try{for(let t=0,i=e.length;t=0){let e=i.querySelector("img.js_cover");if(e){let t=e.parentNode.getBoundingClientRect();e.style.setProperty("width",t.width+"px","important"),e.style.setProperty("height",t.height+"px","important"),e.style.setProperty("background-size","unset","important"),"0"==e.getAttribute("data-fail")?Ra.call(e):e.getAttribute("data-fail")||(e.lazyLoadOnload=e.lazyLoadOnload||[],e.lazyLoadOnload.push(Ra))}}}}catch(Ps){}}(e),U.getAppidInfo({onSuccess:function(t){Ea.data=t.data,function(e){for(let i=0,n=e.length;i0&&le.getInnerHeight()){for(let e=0;e0&&n.top0){let n=i.getAttribute("data-pid");if(n){let o=1;2==i.getAttribute("data-pidtype")&&(o=3),e.push({wxa_appid:i.getAttribute("data-wxaappid"),pid:n,type:o,absolute_order:t+1,appid:i.getAttribute("data-appid")||"",templateid:i.getAttribute("data-templateid")||"",relative_order:1*i.getAttribute("data-order"),packid:i.getAttribute("data-packid")||""})}Ea.pvele.splice(t--,1)}}Na(e),0==Ea.pvele.length&&(ye.off(window,"scroll",Ba),Ba=null)}),100)}function Na(e){if(!e||0==e.length)return;let t={batch_no:me.getQuery("batch_no")||"",bizuin:window.biz||"",biz:window.biz||"",mid:window.mid||"",idx:window.idx||"",total:e.length};for(let i=0;i{let e=document.getElementsByTagName("wx-open-subscribe")||[];for(let t=0;t{window.uin&&window.key&&be.isWechat&&!be.isWindowsWechat&&!be.isMacWechat?document.getElementById("js_update_dialog").style.display="block":window.weui.alert("请在手机微信内操作")}))}ye.on(document.getElementById("js_update_cancel"),"click",(()=>{document.getElementById("js_update_dialog").style.display="none"})),ye.on(document.getElementById("js_update_confirm"),"click",(()=>{Be.jumpUrl(Pa,!0)}))}()}function Wa(){if(!networkType)return;let e=window.performance||window.msPerformance||window.webkitPerformance;if(!e||void 0===e.getEntries)return;let t,i=document.getElementsByTagName("img"),n=i.length;function o(e){let t=[];for(let i in e)t.push(i+"="+encodeURIComponent(e[i]||""));return t.join("&")}let a,s=!1;a=RegExp.$1;for(let r=0,d=i.length;r100)continue;let d=i[r].getAttribute("src");if(!d||d.indexOf("mp.weixin.qq.com")>=0)continue;let c,l=e.getEntries();for(let e=0;e100?100:n,delay_time:parseInt(c.duration),from:window.isSg?"sougou":"",fail:e})}),s=!0;break}if(s)break}}let Ma={"network_type:fail":"fail","network_type:edge":"2g/3g","network_type:wwan":"2g/3g","network_type:wifi":"wifi"};const $a='';let Ha=[],Ua=[];function Fa(e){try{return 1*window.atob(e)}catch(Ps){}return 0}function Ja(e,t,i,n){Ae.report(22316,{BizUin:Fa(window.biz),AppMsgID:window.parseInt(window.mid,10)||0,ItemIndex:window.parseInt(window.idx,10)||0,Itemshowtype:0,SessionId:window.sessionid+"",EnterId:window.parseInt(window.enterid,10)||0,Scene:1*window.source,Subscene:1*window.subscene,ActionType:e,toBizuin:Fa(t),isBizBan:1*i,isMassSend:1*window.appmsg_type,CardType:n})}function Va(){if(Ha&&Ha.length&&Ua.length===Ha.length)ye.off(window,"scroll",Va);else for(let e=0;e0&&i.getBoundingClientRect().top+i.getBoundingClientRect().height/2<=le.getInnerHeight()){let e=i.getAttribute("data-id"),n=i.getAttribute("data-index");if(-1===Ua.indexOf(n)){Ua.push(n),Ja(0,e,i.getAttribute("data-isban"),1*t.getAttribute("data-from"))}}}}function Xa(e,t,i,n,o,a){e.addEventListener("click",(()=>{if(Ja(1,i,n,a),n){let e=document.getElementById("js_profile_ban");"none"===e.style.display&&(e.style.display="block",setTimeout((()=>{e.style.display="none"}),2e3))}else!be.isWechat||be.isWxWork?window.weui.alert("请在微信内打开"):1===o||5===o?locations.rel="nofollow" href="https://mp.weixin.qq.com/mp/getprofiletransferpage?__biz="+i+"#wechat_redirect":Be.goProfile({biz:i,scene:124},{username:t,scene:"200"})}))}function Ga(e){return window.mp_profile.find((t=>t.fakeid===e))}function Ka(){!function(){let e=document.getElementById("js_content");if(!e)return;Ha=Array.from(document.getElementsByTagName("mpprofile"))||[];const t=Array.from(document.getElementsByTagName("mp-common-profile"))||[],i=Ha.concat(t);for(let o=0;o0){we.setSum(299174,3,1),console.log("isCovered",g);const e=`biz=${window.biz}&mid=${window.mid}&idx=${window.idx}`;window.WX_BJ_REPORT&&window.WX_BJ_REPORT.BadJs&&window.WX_BJ_REPORT.BadJs.report("profileCoverDetect",`${e}`,{mid:"mmbizwap:appmsg_covertest",view:"wap_business",_info:{url:locations.href,hitArr:g}})}}Va();let n=document.createElement("div");n.innerHTML=ke.tmpl($a,{}),document.body.appendChild(n)}(),ye.on(window,"scroll",Va)}const Qa=[],Ya=document.getElementsByTagName("mp-common-sticker"),Za=new Map,es=[],ts=[];for(const w of Ya){es.push(w.dataset.md5);const e=Za.get(w.dataset.md5);e?(e.push(w),Za.set(w.dataset.md5,e)):(Za.set(w.dataset.md5,[w]),w.dataset.buf||ts.push(w.dataset.md5))}const is={EXPOSE:0,CLICK:1,LONGTAP:2};function ns(e,t){const i=t.dataset.md5,n=Number(t.dataset.type),o=t.dataset.emoji_url,a=Number(t.dataset.is_ban),s=t.dataset.buf;Ae.report(29377,{bizuin:Number(window.atob(window.biz))||0,msgid:window.parseInt(window.mid,10)||0,itemidx:window.parseInt(window.idx,10)||0,SessionId:window.sessionid+"",EnterId:window.parseInt(window.enterid,10)||0,scene:1*window.source,Subscene:1*window.subscene,action:e,md5:i,type:n,url:o,isBan:a,buf:s})}function os(){var e;!function(){for(const e of Ya)ye.longtap(e,(function(t){if(t.stopPropagation(),1===parseInt(e.dataset.is_ban,10))return;ns(is.LONGTAP,e);as(e.dataset.emoji_url,e.dataset.md5,1,e.dataset.buf||"",!0)}),!0),ye.tap(e,(function(t){if(t.stopPropagation(),1===parseInt(e.dataset.is_ban,10))return;ns(is.CLICK,e);as(e.dataset.emoji_url,e.dataset.md5,0,e.dataset.buf||"",!0)}))}(),e=es,pe({type:"POST",url:"/mp/checkemoticon?action=checkmd5batch",data:{action:"checkmd5batch",md5ListJson:JSON.stringify({list:e})},dataType:"json",timeout:3e3,success:e=>{e&&e.base_resp&&-1!==e.base_resp.ret&&e.is_ban_list&&Array.isArray(e.is_ban_list)&&e.is_ban_list.forEach(((e,t)=>{Ya[t].dataset.is_ban=e}))},complete:()=>{for(const e of Ya){let t=e.getAttribute("data-id"),i=null;e.parentNode&&(i=e.parentNode.querySelector(`[data-preloadingid="${t}"]`)),i&&e.parentNode.removeChild(i),e.dataset.can_show=1}}}),function(e){if(0===e.length)return;pe({type:"POST",url:"/mp/getemojibuf?action=getbuf",data:{action:"getbuf",md5ListJson:JSON.stringify({list:e})},dataType:"json",timeout:3e3,success:e=>{if(e&&e.base_resp&&-1!==e.base_resp.ret&&e.emoji_info&&Array.isArray(e.emoji_info)){e.emoji_info.forEach((e=>{if(e.md5){Za.get(e.md5).forEach((t=>{t.dataset.buf=e.buf}))}}))}},complete:()=>{}})}(ts),function(){let e=null;e=new IntersectionObserver((function(t,i){t.forEach((t=>{if(t.isIntersecting){const i=t.target;ns(is.EXPOSE,i),e.unobserve(i)}}))}),{threshold:.5}),Ya.forEach((t=>{e.observe(t)}))}()}function as(e,t,i,n,o){let a=new XMLHttpRequest;a.open("GET",e,!0),a.responseType="arraybuffer",a.onload=function(e){let s=new Uint8Array(a.response),r=s.length,d=new Array(r);for(;r--;)d[r]=String.fromCharCode(s[r]);let c=d.join(""),l=window.btoa(c);if(o)ve.invoke("emoticonAPICollection",{md5:t,opType:i,imageDataString:l,emojiInfoBuf:n},(function(e){}));else{if(!Qa)return;Qa.push({md5:t,emojiInfoBuf:n,opType:i,imgDataString:l})}return l},a.onerror=function(e){console.log("xmlHttp.onerror",e)},a.onabort=function(e){console.log("xmlHttp.onabort",e)},a.send()}function ss(e){if(!e)return 0;const t=e.textContent||"",i=new RegExp("​","g"),n=new RegExp("‍","g");return t.replace(i,"").replace(n,"").replace(/(\b|^)\w+(\b|$)/g,"#").replace(/\s/g,"").length}const rs={tagName:"mp-common-product",CHANNEL_PRODUCT_DOMAIN:"https://mp.weixin.qq.com",isWechat:(be.isandroids||be.isioses)&&be.isWechat&&!be.isWxWork,exposureInit:!1};function ds(e,t,i,n){try{e.postMessage(JSON.stringify({action:t,value:i}),n||"*")}catch(o){console.log("postMessage error",o)}}const cs=document.querySelectorAll(rs.tagName);function ls(e){setTimeout((function(){window.weui&&window.weui.alert(e)}),0)}function ps(e,t,i){if(e){if(i){i.parentNode.style.margin="0 auto 24px";const e={compEle:i,compType:"channelProduct",compIdx:Array.from(document.querySelectorAll("mp-common-product")).indexOf(i)};I.renderCompSilentlyPreHandler(e),So(i,i.getAttribute("data-windowproduct")),I.renderCompSilently(e)}ds(e,"setPageData",{darkMode:window.matchMedia("(prefers-color-scheme: dark)").matches}),function(){if(rs.exposureInit)return;rs.exposureInit=!0;let e=null;e=new IntersectionObserver((function(t,i){t.forEach((t=>{if(t.isIntersecting){const n=t.target;try{const t=n.shadowRoot.querySelector("iframe");t&&t.contentWindow&&(ds(t.contentWindow,"webEvent",{type:"expose"}),e.unobserve(n))}catch(i){console.error(i)}}}))}),{threshold:1}),cs.forEach((t=>{e.observe(t)}))}()}}function _s(e,t){rs.isWechat?ve.invoke("openFinderProduct",t,(t=>{-1===t.err_msg.indexOf(":ok")&&ve.invoke("confirmDialog",{title:"请更新至微信最新版本再打开",confirmText:"Update Now",cancelText:"Cancel"},(e=>{if(-1!==e.err_msg.indexOf(":ok")){const e="https://itunes.apple.com/cn/app/id414478124?mt=8&ls=1",t="https://support.weixin.qq.com/update/";locations.href=be.isioses?e:t}else-1!==e.err_msg.indexOf("system:")&&ls("请更新至微信最新版本再打开")})),function(e,t,i){ds(e,"openWeAppCallback",{data:t},i||"*")}(e,t)})):ls("请在微信手机端打开")}ve.on("menu:setfont",Be.debounce((e=>{for(let t of cs){const i=t.shadowRoot.querySelector("iframe");i&&i.contentWindow&&ds(i.contentWindow,"setPageData",{fontSize:e.fontSize||"1"})}}),100));const ms="/mp/c_psmaterial_info?action=get_windowproduct";function us(e,t){const i={base_req:{action:e},ext_info:JSON.stringify(t)};return{data:JSON.stringify(i)}}function ws(){if(cs.length){const e=me.getQuery("ecsource"),t=me.getQuery("exportkey");cs.forEach((i=>{e&&i.setAttribute("data-ecsource",e),t&&i.setAttribute("data-exportkey",t)})),pe({type:"POST",url:ms,timeout:5e3,dataType:"json",data:us("GenWxaEcSource",{share_scene:6}),success:function(e){const{ret:t,extInfo:i}=function(e){const t=e&&e.base_resp&&e.base_resp.ret;let i={};if(e.ext_info)try{i=JSON.parse(e.ext_info)}catch(n){console.error(n)}return{ret:t,extInfo:i}}(e);i.ec_source&&(window.ecsource=e.ec_source)},error(){console.log("[error]")}})}}const hs={init:function(){ws(),window.addEventListener("message",(e=>{const{iframeEle:t,productEle:i}=function(e){let t,i;for(let n=0;n=10);++e)r.push("log"+e+"="+encodeURIComponent(i[e]));if(0==o.length&&r.length<=1)return;let d,c="idkey="+o.join(";")+"&lc="+(r.length-1)+"&"+r.join("&");if(window.ActiveXObject)try{d=new ActiveXObject("Msxml2.XMLHTTP")}catch(Ps){try{d=new ActiveXObject("Microsoft.XMLHTTP")}catch(l){d=!1}}else window.XMLHttpRequest&&(d=new XMLHttpRequest);d&&(d.open("POST",locations.protocol+"http://mp.weixin.qq.com/mp/jsmonitor?",!0),d.setRequestHeader("cache-control","no-cache"),d.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),d.setRequestHeader("X-Requested-With","XMLHttpRequest"),d.onreadystatechange=function(){4===d.readyState&&(i.length>10?(i=i.slice(10),a()):(i=[],n={}))},i=[],n={},d.send(c))};try{if(!window.__observer)return;let e=window.__observer_data;if(window.__observer.takeRecords){let t=window.__observer.takeRecords();if(t&&t.length){e.count++;let i=new Date;t.forEach((function(t){let i=t.addedNodes;for(let n=0;ne&&(Ae.report(20801,{Bizuin:window.biz,MsgId:1*window.mid,ItemIdx:1*window.idx,Url:window.msg_source_url||"",Title:window.msg_title||""}),window.localStorage.removeItem(t))}const fs=function(){let e=window.locations.href.split("?")[1];if(e){let t=e.split("&");for(let e=0;ee.length)return;const t=ys(e[fs]);window.scroll(0,t)}function vs(){let e=!1,t=window.performance||window.msPerformance||window.webkitPerformance;if(!(t&&t.timing&&t.timing.navigationStart))return!1;e=t.timing.navigationStart,function(){let t=window.performance&&window.performance.timing,i=window.write_sceen_time-e,n=window.first_sceen__time-e,o=window.page_endtime-e,a=(window.onload_endtime||+new Date)-e;-1!=navigator.userAgent.indexOf("MicroMessenger")&&(i=real_show_page_time-e,n=real_show_page_time-e);let s=window.logs.jsapi_ready_time?window.logs.jsapi_ready_time-e:void 0,r=window.logs.a8key_ready_time?window.logs.a8key_ready_time-e:void 0,d=t&&t.connectEnd-t.connectStart,c=t&&t.secureConnectionStart&&t.connectEnd-t.secureConnectionStart,l=t&&t.domainLookupEnd&&t.domainLookupStart&&t.domainLookupEnd-t.domainLookupStart;if(window.logs.pagetime.wtime=i,window.logs.pagetime.ftime=n,window.logs.pagetime.ptime=o,window.logs.pagetime.onload_time=a,window.logs.pagetime.jsapi_ready_time=s,window.logs.pagetime.a8key_ready_time=r,need_report_cost?pe({url:"/mp/report_cost",type:"post",data:{id_key_list:["1|1|"+o,"1|2|"+n,"1|3|"+a,"1|4|"+s,"1|5|"+r,"1|6|"+d,"1|7|"+c,"1|8|"+l].join(";")}}):Math.random()<.01&&pe({url:"/mp/report_cost",type:"post",data:{id_key_list:["#1|1|"+o,"1|2|"+n,"1|3|"+a,"1|4|"+s,"1|5|"+r,"1|6|"+d,"1|7|"+c,"1|8|"+l].join(";")}}),need_report_cost&&n>3e3){let e=new Image,t=(new Date).getTime();e.onload=function(){let e=(new Date).getTime()-t,i=(new Date).getTime(),n=new Image;n.onload=function(){let t=(new Date).getTime()-i;pe({url:"/mp/report_cost",type:"post",data:{id_key_list:["^2|1|"+e,"2|2|"+t].join(";")}})},n.src="http://ugc.qpic.cn/adapt/0/7d8963bb-aace-df23-0569-f8a4e388eacb/100?r="+Math.random()},e.src="http://ugc.qpic.cn/adapt/0/7d8963bb-aace-df23-0569-f8a4e388eacb/100?r="+Math.random()}function p(){if(-1==navigator.userAgent.indexOf("NetType/"))return!1;let e=["2G","cmwap","cmnet","uninet","uniwap","ctwap","ctnet"];for(let t=0,i=e.length;t.2||a<0||i<0||n<0||o<0||(s&&we.setAvg(27822,15,s),r&&we.setAvg(27822,17,r),o>=15e3?we.setAvg(27822,29,o):(we.setAvg(27822,1,o).setAvg(27822,3,a).setAvg(27822,5,n),window.isWeixinCached&&we.setAvg(27822,19,o),p()?(we.setAvg(27822,9,o),window.isWeixinCached&&we.setAvg(27822,23,o)):"wifi"==networkType?(we.setAvg(27822,7,o),window.isWeixinCached&&we.setAvg(27822,21,o)):"2g/3g"==networkType?(we.setAvg(27822,11,o),window.isWeixinCached&&we.setAvg(27822,25,o)):"4g"==networkType?(we.setAvg(27822,14,o),window.isWeixinCached&&we.setAvg(27822,26,o)):(we.setAvg(27822,13,o),window.isWeixinCached&&we.setAvg(27822,28,o)),window.moon&&moon.clearSample&&(we.setAvg(27822,71,o),p()?we.setAvg(27822,73,o):"wifi"==networkType?we.setAvg(27822,75,o):"2g/3g"==networkType?we.setAvg(27822,77,o):"4g"==networkType?we.setAvg(27822,78,o):we.setAvg(27822,79,o)),d&&we.setAvg(27822,65,d),c&&we.setAvg(27822,67,c),l&&we.setAvg(27822,69,l)))}(),window.logs.jsapi_ready_fail&&we.setSum(24729,55,window.logs.jsapi_ready_fail),function(){const e=document.getElementById("page-content");if(!e||Math.random()>.1)return;const i=function(){const n=document.getElementById("js_toobar3"),o=window.pageYOffset||document.documentElement.scrollTop,a=n.offsetTop;if(o+le.getInnerHeight()>=a){let n,o,a=e.getElementsByTagName("img"),s={},r=[],d=0,c=0,l=0;for(let e=0,t=a.length;e0&&d>0&&(n[2]=n[0]/d),o[0]>0&&c>0&&(o[2]=o[0]/c);for(let t in i)if(i.hasOwnProperty(t)){let e=i[t],a=0,r=0,d=0,c=0;for(let t=0,i=e.length;t0&&(r.push(a+t+"="+n[t]),"wifi"==networkType?r.push(a+t+6+"="+n[t]):"2g/3g"!=networkType&&"4g"!=networkType||r.push(a+t+12+"="+n[t])),o[t]>0&&(r.push(l+t+"="+o[t]),"wifi"==networkType?r.push(l+t+6+"="+o[t]):"2g/3g"!=networkType&&"4g"!=networkType||r.push(l+t+12+"="+o[t]))}ye.off(window,"scroll",i,!1)}};ye.on(window,"scroll",i,!1)}(),function(){if(Math.random()>.001)return;const e=document.createElement("iframe"),t=Math.ceil(10*Math.random())-1,i=uin+mid+idx+Math.ceil(1e3*Math.random())+(new Date).getTime();e.style.display="none",e.id="js_ajax",e.setAttribute("data-time",t),e.src="/mp/iframetest?action=page&traceid="+i+"&devicetype="+devicetype+"&timeout="+[600,800,1e3,1200,1500,2e3,3e3,5e3,1e4,18e3][t];document.getElementById("js_article").appendChild(e)}()}""!==fs&&"scrollRestoration"in history&&(history.scrollRestoration="manual"),"loading"!==document.readyState?bs():window.addEventListener("DOMContentLoaded",(function(){bs()})),ye.on(window,"load",(function(){if(""==networkType&&window.isInWeixinApp()){let e={"network_type:fail":"fail","network_type:edge":"2g/3g","network_type:wwan":"2g/3g","network_type:wifi":"wifi"};JSAPI.invoke("getNetworkType",{},(function(t){networkType=e[t.err_msg],"network_type:edge"!=t.err_msg&&"network_type:wwan"!=t.err_msg||(t.detailtype&&"4g"==t.detailtype||t.subtype&&"4g"==t.subtype)&&(networkType="4g"),vs()}))}else vs()}),!1),window.page_endtime=+new Date;const xs=e=>{const{keyword:t,s1s_stat_info:i,s1s_context_info:n,s1s_jsapi_paras:o,s1s_jsapi_name:a,preRenderData:s}=e,r=JSON.parse(o);let d={};return d="openWXSearchHalfPage"===a&&r?{name:"openWXSearchHalfPage",param:{...r}}:{name:"openWXSearchPage",param:{query:t,scene:132}},d.param.thirdExtParam=encodeURIComponent(JSON.stringify({s1sKeywordsData:{s1sStatInfo:i,s1sContextInfo:n,sessionId:window.sessionid,enterId:window.enterid,preRenderData:s}})),d},ks=(e,{query:t,s1s_status_info:i,expinfo:n})=>{const o=Object.assign({actiontype:e,query:t,s1s_status_info:i},{log_id:28660,scene:1*window.source,enterid:1*window.enterid,sessionid:window.sessionid,actiontimestamp:Math.trunc(Date.now()/1e3),devicetype:window.devicetype,clientversion:parseInt(window.clientversion,16)});n&&(o.expinfo=n),pe({type:"POST",dataType:"json",url:"/mp/searchkeywordreport",data:{reportjson:JSON.stringify(o)}})},As=(e,t)=>{const{idx_range_list:i}=e,{begin_idx:n,end_idx:o,section_idx:a}=i[0],s=t[a];if(!s)return[];const r=function(e,t,i){let n=t,o=i;const a=[],s=e=>{const t=e.childNodes.length;for(let i=0;io);i++){let r=e.childNodes[i];if(!r)break;if(1===r.nodeType){if(("A"===r.tagName||tn(r))&&n1&&(d=nn(i,0,s-1,!1),e.replaceChild(d,r),r=d.childNodes[0]),n>=0&&o<=s-1){const e=an(d,r,n,o);e&&a.push(e),n=0,o=-1;break}if(o>s-1){const e=an(d,r,n,s-1);e&&a.push(e),n<=s?(o-=s,n=0):(o-=s,n-=s)}}}};return s(e),a}(s,1*n,1*o);if(r.length>0){if(((e,t)=>{let i=!1;const n=e.map((e=>e.textContent)).join(""),{keyword:o,idx_range_list:a}=t;return n!==o&&(window.WX_BJ_REPORT&&window.WX_BJ_REPORT.BadJs&&window.WX_BJ_REPORT.BadJs.report("s1s_keywords",`biz=${window.biz}&mid=${window.mid}&idx=${window.idx}`,{mid:"mmbizwap:search_business",view:"wap_business",_info:{keyWordsHTML:e.map((e=>e.outerHTML)).join(""),keyWordInfo:{keyword:o,idx_range_list:a},url:locations.href}}),i=!0),i})(r,e))return r.forEach((e=>{(e=>{if(!e)return;const t=document.createTextNode(e.textContent);e.parentNode&&e.parentNode.replaceChild(t,e)})(e)})),[];r.forEach((t=>{t.keywordsData=e}));r[r.length-1].className="wx_search_keyword"}return r};const Is=e=>{const{keyword:t,s1s_stat_info:i}=e.keywordsData;e.addEventListener("click",(n=>{n.stopPropagation(),(e=>{const t=e.keywordsData,i=xs(t),n=xs(Object.assign({},t,{s1s_jsapi_name:"openWXSearchPage"}));if(be.isMac){const e=`weixin://resourceid/Search/app.html?isHomePage=1&lang=zh_CN&scene=132&type=0&query=${t.keyword}`;ve.invoke("openUrlWithExtraWebview",{url:e})}else be.isWindows?ve.invoke(n.name,n.param):ve.invoke(i.name,i.param,(function(e){e&&e.err_msg&&-1===e.err_msg.indexOf("ok")&&"openWXSearchHalfPage"===i.name&&ve.invoke(n.name,n.param)}))})(e),ks(1004,{query:t,s1s_status_info:i})}),!0)},Ts=e=>{const t={bizuin:parseInt(window.atob(window.biz)),mid:window.mid,idx:window.idx,scene:132,request_id:Date.now().toString(),items:e};return new Promise(((e,i)=>{pe({type:"POST",url:"/mp/searchwordbaike",dataType:"json",data:{data:JSON.stringify(t)},success(t){e(t)},error(e,t){i(t)}})}))};const Cs=(be.isandroids||be.isioses||be.isWindows||be.isMac&&be.cpVersion("3.8.2",1,!0,"mac"))&&be.isWechat&&!be.isWxWork,Ss=(be.isandroids||be.isioses)&&be.isWechat&&!be.isWxWork&&window.need_baike_preload;function Es(e){if(Cs&&(e&&"firstScreen"===e.type&&(window.copyright_stat=e.data.copyright_info.copyright_stat,window.reprint_style=e.data.copyright_info.reprint_style),2!==window.copyright_stat||2===window.copyright_stat&&0===window.reprint_style))try{e&&"firstScreen"===e.type?function(e){e.data.user_info.search_keyword&&e.data.user_info.search_keyword.item_list?window.search_keywords=e.data.user_info.search_keyword.item_list:window.search_keywords=[];const t=document.getElementById("js_content"),i=M(t,{ignorePreloadNode:!0,ignoreNotWriteableChildren:!0});window.search_keywords.forEach((e=>{window.keywordNodes||(window.keywordNodes=[]),window.keywordNodes=window.keywordNodes.concat(As(e,i))}))}(e):function(){const e=document.getElementById("js_content"),t=M(e,{ignorePreloadNode:!0,ignoreNotWriteableChildren:!0}),i=new IntersectionObserver(((e,t)=>{e.forEach((e=>{const i=e.target;if(e.isIntersecting){const{keyword:e,s1s_stat_info:n}=i.keywordsData;ks(1003,{query:e,s1s_status_info:n}),t.unobserve(i)}}))}));window.keywordNodes||(window.keywordNodes=[]);if(window.search_keywords.forEach((e=>{window.keywordNodes=window.keywordNodes.concat(As(e,t))})),window.search_keywords.length>0&&Ss){!async function(e){var t,i;if(0!==e.length)try{const n=await Ts(e);if(0===(null==(t=n.base_resp)?void 0:t.ret)&&n.comm_resp){const e=(null==(i=JSON.parse(n.comm_resp))?void 0:i.items)||[];window.keywordNodes.forEach((t=>{const i=e.find((e=>e.query===t.keywordsData.keyword));i&&(t.keywordsData.preRenderData=i.preRenderData)}))}}catch(n){console.error("setPreRenderData error:",n)}}(window.search_keywords.map((e=>({query:e.keyword,extinfo:e.s1s_context_info}))))}window.keywordNodes.forEach((e=>{const t=e.keywordsData,{keyword:n,s1s_stat_info:o}=t;ks(1002,{query:n,s1s_status_info:o}),Is(e),i.observe(e)})),window.s1s_keywords_exp_info&&ks(1005,{query:"",s1s_status_info:"",expinfo:window.s1s_keywords_exp_info})}()}catch(t){}}const js=window.Vue;try{_e.os.ioses&&_e.os.getNumVersion()>=16&&(we.setSum(110809,78,1),_e.isLockdownMode()&&we.setSum(110809,79,1)),window.customElements?we.setSum(110809,70,1):we.setSum(110809,71,1),document.head.createShadowRoot||document.head.attachShadow?we.setSum(110809,72,1):we.setSum(110809,73,1)}catch(Ds){console.log(Ds)}y.setGvar({payType:0,pageType:0,albumId:window.appmsg_album_info.id||""}),js.config.errorHandler=(e,t,i)=>{e._info=i,window.WX_BJ_REPORT&&window.WX_BJ_REPORT.BadJs&&window.WX_BJ_REPORT.BadJs.onError(e),console.error("Vue errorHandler",i,e)},console.info("[图文信息] 三元组:",window.biz,window.mid,window.idx),console.info("[用户信息] 设备信息: 是否安卓",_e.os.androids,"是否ioses",_e.os.ioses,"是否秒开场景",window.__second_open__,"系统版本",_e.os.version,"用户uin",window.user_uin,"是否小程序内打开",be.isInMiniProgram),He.set({bottom:[Ue["BG-0"],Fe["BG-0"]]}),oe.initHtmlMinHeight();let Rs=-1,Bs=!1;if(window.logs.pagetime.jsapi_ready_time=+new Date,window.logs.idkeys={},ue.log("[Appmsg] start run index.js init"),function(){let e=(new Date).getHours(),t=function(e,t){t=t||"",window.isSg?(t=["uin:sougou","resp:"+t].join("|"),(new Image).src="/mp/jsreport?key="+e+"&content="+t+"&r="+Math.random()+"&from=sougou"):(t=["uin:"+window.user_uin,"resp:"+t].join("|"),(new Image).src="/mp/jsreport?key="+e+"&content="+t+"&r="+Math.random())},i=e>=11&&e<=17&&Math.random()<1;window.__report=t,window.__commonVideoReport=function(e,n){i&&t(e,n)},window.__addIdKeyReport=function(e,t,i){let n=e+"_"+t;i=i||1,window.logs.idkeys[n]||(window.logs.idkeys[n]={val:0}),window.logs.idkeys[n].val+=i}}(),le.initWebCompt(["wxOpen"],(e=>{window.__is_support_wxOpen=e.err_msg&&e.err_msg.indexOf(":ok")>-1,(document.getElementsByTagName("mpsubscribe")&&document.getElementsByTagName("mpsubscribe").length||document.getElementsByTagName("mp-common-subscribe")&&document.getElementsByTagName("mp-common-subscribe").length)&&za()})),function(){setTimeout((()=>{let e=document.getElementsByClassName("wx-edui-video_source_link");e=Array.prototype.slice.call(e),e.forEach((e=>{e&&e.addEventListener("click",(()=>{const t=e.dataset.hitUsername,i=e.dataset.hitBiz;Be.goProfile({biz:i},{username:t})}))}))}),500);try{rt.init(document.getElementById("js_tags"))}catch(Ps){console.log(Ps)}let e=!1;if((()=>{try{const t=le.getParam("anchor_list");let i=!1;if(t&&2!==window.copyright_stat){e=!0;const n=document.getElementById("js_content"),o=M(n,{ignoreNotWriteableChildren:!0});let a=decodeURIComponent(t).split("#");for(let e=0;e0&&ae.getCpsData(e)}(),hs.init(),window.is_new_msg&&-1!=navigator.userAgent.indexOf("MicroMessenger")){window.title&&(window.title=window.title.replace(/'/g,"'").replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/&/g,"&")),window.msg_title&&(window.msg_title=window.msg_title.replace(/'/g,"'").replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/&/g,"&")),hd_head_img||a.jsmonitor({id:115849,key:26,value:1});const e=document.querySelectorAll("mp-common-product, mp-common-videosnap");let t={userName:window.user_name,bizNickName:window.nickname,bizNickNameBackup:window.title,cover:"",title:window.msg_title,headImg:window.hd_head_img,roundHeadImg:window.round_head_img,digest:window.msg_desc,reportData:{BizUin:window.biz,AppMsgID:1*window.mid,ItemIndex:1*window.idx,Scene:1*window.source,SubScene:1*window.subscene,EnterId:1*window.enterid,SessionId:window.sessionid,ItemShowType:1*window.item_show_type},hasFinderElement:e.length>0?1:0,canReadArticle:window.tts_is_show&&ss(document.querySelector("#js_content"))>300};if(be.isandroids){t.cover="",$.init(t);let e=window.cdn_url_1_1||window.cdn_url_235_1||"",i=new Image;e&&(i.src=e,i.onload=()=>{i.width<2048&&i.height<2048&&(t.cover=e,$.init(t)),window.topbarInited=!0},i.onerror=()=>{window.topbarInited=!0})}else t.cover=window.cdn_url_1_1||window.cdn_url_235_1||window.msg_cdn_url,$.init(t);ye.on(window,"scroll",(()=>{Bs||be.isandroids&&!window.topbarInited||($e(0),Bs=!0)})),ve.invoke("createWebViewForFastLoad",{scene:1},(function(e){console.log(e)}))}let t=document.getElementsByTagName("body");if(!t||!t[0])return!1;t=t[0];(function(){let e=[],t=document.getElementById("js_content").getElementsByTagName("a");for(let s=0;s0&&i.push(e)}));let n=[];Array.prototype.map.call(document.getElementById("js_content").getElementsByClassName("weapp_image_link"),(function(e){n.push(e)}));let o=window.innerHeight||document.documentElement.clientHeight;function a(){!function(){if(e.length){let t=document.documentElement.scrollTop||document.body.scrollTop;for(let i=0;it||n.top+n.height>t&&n.top+n.height0&&(e[i].setAttribute("hasload",1),ve.invoke("downloadPageDataForFastLoad",{itemList:[{item_show_type:e[i].getAttribute("data-itemshowtype"),url:e[i].getAttribute("href")}]},(function(e){console.log(e)})),e.splice(i,1),i--)}}}(),function(){for(let e=0;e=0||n.top>0&&n.top=0||i.top>0&&i.top{const e=document.querySelector("#js_ting_heard");if(e){new IntersectionObserver(((e,t)=>{e.forEach((e=>{e.isIntersecting&&(t.unobserve(e.target),$.topbarReport(4),we.setSum(293511,4,1))}))}),{threshold:.5}).observe(e),ye.on(e,"click",(function(e){$.topbarReport(5),we.setSum(293511,5,1);const t={openPlayerUI:!0,itemList:[{type:2,startTime:0,duration:123,srcId:locations.href,title:window.msg_title||"",webUrl:window.msg_link||locations.href,author:window.nickname||window.cgiData.nick_name||"",cover:window.cdn_url_1_1||window.__appmsgCgiData.hd_head_img||"",mpInfo:{username:window.user_name||"",name:window.nickname||window.cgiData.nick_name||"",bizUin:parseInt(window.atob(window.biz)),webUrl:window.msg_link||locations.href}}]};console.log("+++++++++++++++ tingReadOpt",t),ve.invoke("setTingAudiosestate",t,(function(e){console.log("+++++++++++++++ tingReadRes",e),-1===e.err_msg.indexOf("ok")&&(window.weui.alert("暂无法朗读,请重试"),we.setSum(293511,6,1),window.WX_BJ_REPORT&&window.WX_BJ_REPORT.BadJs&&window.WX_BJ_REPORT.BadJs.report("t1t read fail",`res: ${JSON.stringify(e)} | url: ${locations.href}`,{mid:"mmbizwap:t1t_read_fail",view:"wap_business"}))}))}))}})(),(()=>{try{if(anchor_tree_msg){const e=Date.now(),t=document.getElementById("js_content"),i=anchor_tree_msg?JSON.parse(anchor_tree_msg).anchor_tree:[],n=window.locations.protocol;Di.init(t,i),a.saveSpeeds({sample:1,uin:uin,pid:"https:"==n?462:417,speeds:{sid:38,time:Date.now()-e}}),a.send()}}catch(e){"undefined"!=typeof WX_BJ_REPORT&&WX_BJ_REPORT.BadJs&&WX_BJ_REPORT.BadJs.onError(e,{anchor_tree_msg:anchor_tree_msg})}})();let i=/^http(s)?:\/\/mp\.weixin\.qq\.com\//g;try{if(top!=window&&(!top||top&&locations.href&&i.test(locations.href))&&!window.isSg)throw new Error("in iframe")}catch(Ps){let t="";(new Image).src=("http://mp.weixin.qq.com/mp/jsreport?key=4&content=biz:"+biz+",mid:"+mid+",uin:"+uin+"[key4]"+t+"&r="+Math.random()).substr(0,1024)}if(window.isInWeixinApp()&&/#rd$/.test(locations.href)&&!window.isWeixinCached&&!window.__second_open__&&!be.isWxWork){let e=-1!=locations.href.indexOf("?")?"&":"?";locations.replace(locations.href.replace(/#rd$/,e+"rd2werd=1#wechat_redirect"))}const n=!be.isWp&&-1==navigator.userAgent.indexOf("MicroMessenger"),r=!n||/wxwork\/([\d.]+)/i.test(navigator.userAgent)?new We({isHttpsRes:is_https_res}):null,d=!isNaN(parseInt(ge("start")))&&!isNaN(parseInt(ge("end")));if(function(e){const t=document.getElementById("js_content");let i=!1;const n=t.getElementsByTagName("img");for(let o=0,a=n.length;o{Io(e,t,!1)})):Io(e,!1,!1),Q()}(r),r){const e=document.getElementById("js_cover");r.add({container:document.getElementById("js_content"),imgs:e?[e]:[]})}vo(),new Kn({store:v,render:e=>e(Gn)}).$mount("#content_bottom_area"),new _o({store:v,render:e=>e(po)}).$mount("#page_bottom_area"),se(v),function(){let e=document.getElementById("profileBt"),t=document.getElementById("copyright_info"),i=[];if(e){let t="57";"28"==window.source&&(t="96"),"31"===window.source&&(t="103"),"30"===window.source&&(t="102"),"29"==window.source&&(t="39"),"15"==window.source&&(t="121"),i.push({dom:e,username:user_name,profileReportInfo:window.profileReportInfo||"",scene:t})}t&&source_encode_biz&&i.push({dom:t,source_encode_biz:source_encode_biz,scene:"161"});for(let n=0,o=i.length;n=i&&(e.isReport=!0,(new Image).src="/mp/appmsgreport?action=appmsg_recom&type=1&__biz="+biz+"&ascene="+(window.ascene||-1)+"&mid="+mid+"&idx="+idx+"&sn="+sn+"&product_id="+e.product_id+"&order="+e.order+"&r="+Math.random())}}}for(let o=0;o0&&(ye.on(window,"scroll",n),n());for(let o=0;o0&&(c=voiceList.voice_in_appmsg);Lo(c),Bo(),Es(),(()=>{const e=document.querySelectorAll(Ho.oldTagName);for(let i=0;i{const e=document.querySelectorAll(zo.oldTagName);for(const n of e){const e=document.createElement(zo.tagName);n.parentNode.appendChild(e),n.parentNode.removeChild(n);const t=["pluginname","id","poiid","districtid","name","address","img","longitude","latitude","provice","city","hasreport","type"];for(const i of t){const t=`data-${i}`;e.setAttribute(t,n.getAttribute(t))}}const t=document.querySelectorAll(zo.tagName);for(let n=0,o=t.length;n{const t=i[e];xe.removeClass(t,"ct_geography_loc_tip"),xe.addClass(t,"wx_poi_link"),xe.addClass(t,"js_wx_tap_highlight"),zo.poiDom.push(t),ye.on(t,"tap",(e=>{e.stopPropagation(),e.preventDefault(),xe.addClass(t,"wx_tap_link"),O.highlightEle(t);const i={id:decodeURIComponent(t.getAttribute("data-id")||""),name:decodeURIComponent(t.getAttribute("data-name")||""),address:decodeURIComponent(t.getAttribute("data-address")||""),img:decodeURIComponent(t.getAttribute("data-img")||""),longitude:decodeURIComponent(t.getAttribute("data-longitude")||""),latitude:decodeURIComponent(t.getAttribute("data-latitude")||""),type:decodeURIComponent(t.getAttribute("data-type")||"")};return i.longitude&&i.latitude&&i.name&&i.address&&(Ae.report(19937,Object.assign({},zo.commonReportData,{type:1,actiontype:2})),we.setSum(110809,57,1),Wo(i)),!1}),!0),ye.on(t,"click",(e=>{e.preventDefault(),e.stopPropagation()}),!0)})(n);$o(),ye.on(window,"scroll",$o)})(),Yi.init(),1===window.show_msg_voice&&(To(),console.log("load voicemsg"));!window.__appmsgCgiData||1!=window.__appmsgCgiData.wxa_product&&1!=window.__appmsgCgiData.wxa_cps||ja();re.init(),document.getElementsByTagName("mp-qa").length&&bi.renderQaCard({mid:window.mid,idx:window.idx,isLogin:!!window.is_login,userUin:window.user_uin,biz:window.biz,itemShowType:window.item_show_type,sessionId:window.sessionid,enterId:window.enterid,scene:window.source,subScene:window.subscene});const l=document.getElementsByTagName("mp-common-videosnap");(document.getElementsByTagName("mpvideosnap")&&document.getElementsByTagName("mpvideosnap").length||l&&l.length)&&Sa();const p=document.getElementsByTagName("mp-common-profile");(document.getElementsByTagName("mpprofile")&&document.getElementsByTagName("mpprofile").length||p&&p.length)&&Ka();document.getElementsByTagName("mp-common-sticker")&&document.getElementsByTagName("mp-common-sticker").length&&os();if(document.getElementsByTagName("mp-wxaproduct").length){const e=window.__appmsgCgiData.minishopCardData?JSON.parse(decodeURIComponent(window.__appmsgCgiData.minishopCardData)):"";ft({biz:window.biz,mid:window.mid,idx:window.idx,source:1*window.source,subscene:1*window.subscene,enterid:1*window.enterid,minishopCards:e})}function _(){const e=window.performance||window.msPerformance||window.webkitPerformance;if(e.timing){let t=e.timing;ue.log("[Appmsg] dns:"+(t.domainLookupEnd-t.domainLookupStart)+"^^^ ssl:"+(0==t.secureConnectionStart?0:t.connectEnd-t.secureConnectionStart)+"^^^ tcp:"+(t.connectEnd-t.connectStart)+"^^^ request:"+(t.responseStart-t.requestStart)+"^^^ getPackageTime:"+(t.responseEnd-t.responseStart)+"^^^ domCententLoaded:"+(t.domContentLoadedEventStart-t.domLoading)+"^^^ domComplete:"+(t.domComplete-t.domLoading)+"^^^ firstViewTime:"+(real_show_page_time-t.navigationStart)+"^^^ interactiveTime:"+(window.page_endtime-t.navigationStart)),window.navigator.userAgent,setTimeout((function(){t.loadEventEnd&&ue.log("[Appmsg] onload:"+(t.loadEventEnd-t.loadEventStart))}),100)}"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),""==document.getElementById("js_content").innerHTML.trim()&&we.setSum(24729,94,1);Math.random()<.001&&document.getElementById("js_read_area3")&&document.getElementById("js_read_area3").innerText&&document.getElementById("js_read_area3").innerText.indexOf("Pageview")>-1&&we.setSum(24729,95,1),window.__wxjs_is_wkwebview&&we.setSum(28307,67,1)}ve.invoke("getNetworkType",{},(function(e){networkType=Ma[e.err_msg],"network_type:edge"!=e.err_msg&&"network_type:wwan"!=e.err_msg||(e.detailtype&&"4g"==e.detailtype||e.subtype&&"4g"==e.subtype)&&(networkType="4g"),Wa()})),void ye.on(window,"load",Wa,!1),new Li({biz:window.biz,isPaySubscribe:window.isPaySubscribe,container:document.getElementById("js_content"),logid:18504,baseData:["",window.biz,window.mid,window.idx,window.locations.href,window.msg_title]}),setTimeout((function(){ye.tap(document.getElementById("copyright_logo"),(function(){const e="http://kf.qq.com/touch/sappfaq/150211YfyMVj150326iquI3e.html";window.__second_open__?ve.invoke("openUrlWithExtraWebview",{url:e,openType:1},(function(t){-1==t.err_msg.indexOf("ok")&&(locations.href=e)})):locations.href=e})),lt(),de.init({dom:document.getElementById("js_report_article3"),title:window.msg_title.htmlDecode(),link:window.msg_link}),function(){if(n){document.title=window.msg_title.htmlDecode(),xe.addClass(t,"not_in_mm");let e=document.getElementById("js_pc_qr_code_img");if(e){let t=10000004,i=document.referrer;if(0==i.indexOf("http://weixin.sogou.com")?t=10000001:0==i.indexOf("https://wx.qq.com")&&(t=10000003),window.isSg)e.setAttribute("src",sg_qr_code.htmlDecode());else{e.setAttribute("src","/mp/qrcode?scene="+t+"&size=102&__biz="+biz+"&mid="+mid+"&idx="+idx+"&sn="+sn+"&send_time="+send_time),(new Image).src="/mp/report?action=pcclick&__biz="+biz+"&uin="+uin+"&scene="+t+"&r="+Math.random()}document.getElementById("js_pc_qr_code").style.display="block"}let i=document.getElementById("js_profile_qrcode"),n=document.getElementById("js_profile_arrow_wrp"),o=document.getElementById("profileBt");if(i&&o&&n){let e=function(){let e=10000005,t=document.referrer;0==t.indexOf("http://weixin.sogou.com")?e=10000006:0==t.indexOf("https://wx.qq.com")&&(e=10000007);let a=document.getElementById("js_profile_qrcode_img");if(a)if(window.isSg)a.setAttribute("src",sg_qr_code.htmlDecode());else{a.setAttribute("src","/mp/qrcode?scene="+e+"&size=102&__biz="+biz+"&mid="+mid+"&idx="+idx+"&sn="+sn+"&send_time="+send_time),(new Image).src="/mp/report?action=pcclick&__biz="+biz+"&uin="+uin+"&scene="+e+"&r="+Math.random()}return i.style.display="block",n.style.left=o.offsetWidth/2-8+"px",!1};ye.on(o,"click",e),ye.on(i,"click",e),ye.on(document,"click",(function(e){let t=e.target||e.srcElement;t!=o&&t!=i&&(i.style.display="none")}))}}else{const e=document.getElementById("js_report_article3");e&&(e.style.display="")}}();const e=document.getElementsByTagName("map");for(let t=0,n=e.length;t=0){const i=e[t];e[e.length-1].istouchmove||(o>=11&&o<=17&&window.__report(63),setTimeout((function(){window.scrollTo(0,i.scroll)}),100))}e.push({ori:a,scroll:window.pageYOffset||document.documentElement.scrollTop,istouchmove:!1}),1!==a||i||(y.report110809(63),window.WX_BJ_REPORT&&window.WX_BJ_REPORT.BadJs&&window.WX_BJ_REPORT.BadJs.report("horizontal screen report",`biz: ${"function"==typeof window.atob?window.atob(window.biz):window.biz} | mid: ${window.mid} | idx: ${window.idx} | url: ${locations.href}`,{mid:"mmbizwap:horizontal_screen",view:"wap_business"}),i=!0)})),ye.on(window,"scroll",(function(){const t=e.length-1,i=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,o=Date.now();if(-1!=Rs){if(console.log("[横屏滚动检测]",o-Rs),o-Rs<500)return void(Rs=-1)}else Rs=-1;e[t].ori==n()&&(e[t].scroll=i,e[t].istouchmove=!0)}))}(),ue.log("[Appmsg] href:"+locations.href+"^^^ ua:"+window.navigator.userAgent),window.addEventListener?window.addEventListener("load",_,!1):window.attachEvent&&window.attachEvent("onload",_);void(window.addEventListener&&document.getElementsByTagName("body")[0].addEventListener("copy",(function(){we.setSum(28307,18,1),be.isioses&&we.setSum(28307,19,1),be.isandroids&&we.setSum(28307,20,1)}),!1)),window.__observer&&window.__observer_data&&gs();"undefined"!=typeof isSg&&function(){if(document.getElementById("js_report_article3")&&(document.getElementById("js_report_article3").style.display="none"),document.getElementById("js_toobar3")&&(document.getElementById("js_toobar3").style.display="none"),function(){let e=document.createElement("div");e&&(e.innerHTML=ke.tmpl(Oo,{}),document.body.appendChild(e))}(),new o.Emotion({emotionPanel:s("#js_emotion_panel"),inputArea:s("#js_cmt_input"),emotionPanelArrowWrp:s("#js_emotion_panel_arrow_wrp"),emotionSwitcher:s("#js_emotion_switch"),emotionSlideWrapper:s("#js_slide_wrapper"),emotionNavBar:s("#js_navbar"),submitBtn:s("#js_cmt_submit")}),navigator.userAgent.toLowerCase().match(/ioses/)){let t=navigator.userAgent.toLowerCase().match(/(?:sogousearch\/ioses\/)(.*)/);if(t&&t[1]){let i=t[1].replace(/\./g,"");parseInt(i)>422&&e("ioses")}}else e("androids");function e(e){let t=document.getElementById("js_cover"),i=[];t&&i.push(t);let n=document.getElementById("js_content");if(n){let e=n.getElementsByTagName("img")||[];for(let t=0,n=e.length;t0){e();for(let e=0;e16||Math.random()<.99)return;const i=new Image;i.onload=function(){const e=i.naturalWidth||i.width,t=i.naturalHeight||i.height;640===e&&407===t||window.__addIdKeyReport("28307","wifi"===window.networkType?120:123),window.__addIdKeyReport("28307","wifi"===window.networkType?121:124)},i.src="http:"+e;const n=new Image;n.onload=function(){const e=n.naturalWidth||n.width,t=n.naturalHeight||n.height;640===e&&407===t||window.__addIdKeyReport("28307",126),window.__addIdKeyReport("28307",127)},n.src="https:"+e}),3e3);if(Math.random()<2e-4)try{const e=document.getElementsByTagName("img"),t=window.screen.height,i=window.screen.width,n=window.devicePixelRatio;let o="";for(let a=0,s=e.length;aNs.isPaySubscribe?{forbidForward:1}:{forbidForward:0}}var Ns;export{e as __vite_legacy_guard};