Files
deepdata/my_ops/markitdown_parser/news_files/article-comment-2017_togC.js
沃巴蒂 ff22ed3a8b feat(deepdata): 引入修改密码、文件预览组件与清洗算子增强,deepflow 改名为 deep-flow
本次同步 09-12 至 09-28 的代码变更,主要内容:

新增功能
- 修改密码:后端新增 ChangePasswordRequest DTO 与UserController/UserService
  对应接口,前端新增 ChangePasswordDialog 并在 Header 接入入口
- 文件预览组件重构:file-preview 目录拆分出 VideoPreview(支持 blobUrl 直传)、
  ImagePreview、AudioPreview,index.tsx 统一调度各类型预览器
- 新增 my_ops 算子模块:markitdown_parser、mineru_pdf_parser、text_quality_evaluator
- 新增 tools/minio-file-server MinIO 文件服务

功能增强
- 数据清洗:cleaning_task_service/scheduler/routes 重构,
  data_juicer_executor 与 wrapper 增强,OperatorTable/LogsTable/TaskDetail 同步调整
- 数据标注:annotation sync.py、project.py 接口与schema 更新
- 数据采集、算子市场、首页与菜单路由相关页面调整
- DataJuicer 算子接入(useOperatorOperations、dj_ops_schema)

结构调整
- deepflow/ 更名为 deep-flow/(419 个文件重命名)
- 新增 helm 部署编排、GitHub Actions 之外的自建镜像构建脚本

未纳入本次提交
- scripts-backup/、runtime/python-executor-backup/、components_backup/(备份目录)
- *.backup*、__pycache__ 产物
- zh_core_web_sm-3.8.0-py3-none-any.whl(46MB 构建产物)
- DataX/(内嵌独立仓库,远程亦未收录其源码)
2026-10-03 22:44:56 +08:00

6 lines
117 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 2025-5-21 14:12:21
* version v1.0.0
* svn /finance/frontend/common/apps/weiboComment
*/
!function(exports,undefined){var C={U:"undefined"},doc=document,byId=function(e){return"string"==typeof e?doc.getElementById(e):e},byTag=function(e){return"string"==typeof e?doc.getElementsByTagName(e):e},byAttr=function(e,t,n){for(var a,i=[],o=(e="string"==typeof e?byId(e):e).childNodes,s=Array.prototype.slice.call(arguments),r=2===s.length,c=0,l=o.length;c<l;c++)1===(a=o[c]).nodeType&&((r?null!=a.getAttribute(t):a.getAttribute(t)===n)&&i.push(a),0<a.childNodes.length)&&(i=i.concat(byAttr.apply(null,[a].concat(s.slice(1)))));return i},hasClass=function(e,t){return!!e&&e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))},addClass=function(e,t){hasClass(e,t)||(e.className=e.className.replace(/(^\s*)|(\s*$)/g,"")+" "+t)},removeClass=function(e,t){hasClass(e,t)&&(t=new RegExp("(\\s|^)"+t+"(\\s|$)"),e.className=e.className.replace(t," "))},toggleClass=function(e,t){(hasClass(e,t)?removeClass:addClass)(e,t)},preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},stopPropagation=function(e){return e&&e.stopPropagation?e.stopPropagation():window.event.cancelBubble=!0,!1},contains=function(e,t){try{return e.contains?e!=t&&e.contains(t):!!(16&e.compareDocumentPosition(t))}catch(e){}},create=function(e){return"TEXT"==(e=e.toUpperCase())?doc.createTextNode(""):"BUFFER"==e?doc.createDocumentFragment():doc.createElement(e)},insertAfter=function(e,t){var n=t.parentNode;n.lastChild==t?n.appendChild(e):n.insertBefore(e,t.nextSibling)},ua=function(){var e=navigator.userAgent.toLowerCase(),t={};return t.isIE=/msie/.test(e),t.isOPERA=/opera/.test(e),t.isMOZ=/gecko/.test(e),t.isIE6=/msie 6/.test(e),t.isIE7=/msie 7/.test(e),t.isSAFARI=/safari/.test(e),t.iswinXP=/windows nt 5.1/.test(e),t.iswinVista=/windows nt 6.0/.test(e),t.isFF=/firefox/.test(e),t.isIOS=/\((iPhone|iPad|iPod)/i.test(e),t}(),domReady=function(){function t(e){if(!i){if(i=1,a)for(;a.length;)a.shift()();a=null}}function n(){e||(e=1,"complete"===doc.readyState?t():doc.addEventListener?(doc.addEventListener("DOMContentLoaded",function(){doc.removeEventListener("DOMContentLoaded",arguments.callee,!1),t()},!1),window.addEventListener("load",function(){window.removeEventListener("load",arguments.callee,!1),t()},!1)):(doc.attachEvent("onreadystatechange",function(){"complete"==doc.readyState&&(doc.detachEvent("onreadystatechange",arguments.callee),t())}),function(){if(!i){var e=new Image;try{e.doScroll(),e=null}catch(e){return setTimeout(arguments.callee,64)}t()}}()))}var a=[],e=0,i=0;return function(e){n(),"complete"===doc.readyState||i?e.call():a.push(e)}}(),timeoutHandle=function(){var a=[],i={success:function(e){e=a[e];e&&(e.isSuccess=!0,clearTimeout(e.timer))},timeout:function(e,t){var n=a[e];n&&(n.timer=setTimeout(function(){n.isSuccess||"function"==typeof t&&t.call(this)},n.time))}};return function(e,t,n){if(a[e])throw new Error(e+"已经被占用");a[e]={},a[e].time=n||5e3,a[e].isSuccess=!1,"function"==typeof t&&t.call(this,i)}}(),cssSupports=function(){var t=document.createElement("div"),n="Khtml O Moz Webkit".split(" "),a=n.length;return function(e){if(e in t.style)return!0;if("-ms-"+e in t.style)return!0;for(e=e.replace(/^[a-z]/,function(e){return e.toUpperCase()});a--;)if(n[a]+e in t.style)return!0;return!1}}(),getXY=function(){var e=function(e){var t;return null!=e.parentNode&&null!=e.offsetParent&&"none"!=getStyle(e,"display")||e==doc.body?(t=e.getBoundingClientRect(),e=getScrollPos(e.ownerDocument),[t.left+e[1],t.top+e[0]]):[0,0]};return e=ua.isIE?e:function(e){if((null==e.parentNode||null==e.offsetParent||"none"==getStyle(e,"display"))&&e!=doc.body)return!1;var t=null,n=[],a=ua.isSAFARI,n=[e.offsetLeft,e.offsetTop],t=e.offsetParent,i="absolute"==getStyle(e,"position");if(t!=e)for(;t;)n[0]+=t.offsetLeft+parseInt($.getStyle(t,"borderLeftWidth"),10),n[1]+=t.offsetTop+parseInt($.getStyle(t,"borderTopWidth"),10),a&&!i&&"absolute"==getStyle(t,"position")&&(i=!0),t=t.offsetParent;for(a&&i&&(n[0]-=e.ownerDocument.body.offsetLeft,n[1]-=e.ownerDocument.body.offsetTop),t=e.parentNode;t.tagName&&!/^body|html$/i.test(t.tagName);)getStyle(t,"display").search(/^inline|table-row.*$/i)&&(n[0]-=t.scrollLeft,n[1]-=t.scrollTop),t=t.parentNode;return n}}(),getScrollPos=function(){var e=doc.documentElement,t=doc.body;return[Math.max(e.scrollTop,t.scrollTop),Math.max(e.scrollLeft,t.scrollLeft),Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.scrollHeight,t.scrollHeight)]},getPosition=function(e){if(!e)return{left:0,top:0};var t=0,n=0;if("getBoundingClientRect"in document.documentElement)var a=e.getBoundingClientRect(),i=e.ownerDocument,o=i.body,i=i.documentElement,s=i.clientTop||o.clientTop||0,r=i.clientLeft||o.clientLeft||0,t=a.top+(exports.pageYOffset||i&&i.scrollTop||o.scrollTop)-s,n=a.left+(exports.pageXOffset||i&&i.scrollLeft||o.scrollLeft)-r;else for(;t+=e.offsetTop||0,n+=e.offsetLeft||0,e=e.offsetParent;);return{left:n,top:t}},getStyle=function(e,t){var n;return"getComputedStyle"in window?getComputedStyle(e,null)[t]:(t=t.replace(/\-(\w)/g,function(e,t){return t.toUpperCase()}),"auto"!==(n=e.currentStyle[t])&&"100%"!=n||"width"!==t&&"height"!==t?n:(n=e.getBoundingClientRect(),"width"===t?n.right-n.left+"px":n.bottom-n.top+"px"))},getOuterStyle=function(e,t){function n(e,t){var e=getStyle(e,t),n={thin:["1","2"],medium:["3","4"],thick:["5","6"]};return/^(border).+(Width)$/.test(t)&&n[e]&&(e=window.XDomainRequest?n[e][0]:n[e][1]),parseInt(e.replace("px",""),10)}return"width"===t?n(e,t)+n(e,"paddingLeft")+n(e,"paddingRight")+n(e,"borderLeftWidth")+n(e,"borderRightWidth"):n(e,t)+n(e,"paddingTop")+n(e,"paddingBottom")+n(e,"borderTopWidth")+n(e,"borderBottomWidth")},setStyle=function(e,t){if(e)for(var n in t)e.style[n]=t[n]},trim=function(e){return e.replace(/(^\s+)|(\s+$)/g,"")},encodeHTML=function(e){return"string"!=typeof e?e:0===e.length?"":e.replace(/&/g,"&gt;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/ /g,"&nbsp;").replace(/\'/g,"'").replace(/\"/g,"&quot;").replace(/\n/g,"<br>")},decodeHTML=function(e){return"string"!=typeof e?e:0===e.length?"":e.replace(/&gt;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&nbsp;/g," ").replace(/'/g,"'").replace(/&quot;/g,'"').replace(/<br>/g,"\n")},encodeDoubleByte=function(e){return"string"!=typeof e?e:encodeURIComponent(e)},byteLength=function(e){var t;return typeof e==C.U?0:(t=e.match(/[^\x00-\x80]/g),e.length+(t?t.length:0))},strLeft=function(e,t){var n=e.slice(0,t),a=n.replace(/[^\x00-\xff]/g,"**").length,i=e.length,o=n.length;if(a<t)return n;if(a==t)return t==i||o==i?n:e.slice(0,t-2)+"...";switch(a-=n.length){case 0:return n;case t:return t==i?e.slice(0,(t>>1)-1)+"...":e.slice(0,t>>1);default:var s=t-a,r=e.slice(s,t);return(i=r.replace(/[\x00-\xff]/g,"").length)?e.slice(0,s)+arguments.callee(r,i):e.slice(0,s)}},indexOf=function(e,t){if(t.indexOf)return t.indexOf(e);for(var n=0,a=t.length;n<a;){if(t[n]===e)return n;n++}return-1},inArray=function(e,t){return-1<indexOf(e,t)},isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},isEmptyObj=function(e){var t,n=!0;for(t in e)if(e.hasOwnProperty(t)){n=!1;break}return n},isFn=function(e){return"function"==typeof e},extend=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},jsonToQuery=function(){function s(e,t){return e=trim((e=null==e?"":e).toString()),t?encodeURIComponent(e):e}return function(e,t){var n=[];if("object"==typeof e)for(var a in e)if(e[a]instanceof Array)for(var i=0,o=e[a].length;i<o;i++)n.push(a+"="+s(e[a][i],t));else"function"!=typeof e[a]&&n.push(a+"="+s(e[a],t));return n.length?n.join("&"):""}}(),queryToJson=function(e,t){function n(e){return t?decodeURIComponent(e):e}for(var a,i,o,s=trim(e).split("&"),r={},c=0,l=s.length;c<l;c++)s[c]&&(o=(a=s[c].split("="))[0],i=a[1],a.length<2&&(i=o,o="$nullName"),r[o]?(!0!==isArray(r[o])&&(r[o]=[r[o]]),r[o].push(n(i))):r[o]=n(i));return r},addEvent=function(e,t,n,a){var i=byId(e);if(null==i)throw new Error("addEvent 找不到对象:"+e);return typeof a==C.U&&(a=!1),typeof t==C.U&&(t="click"),i.addEventListener?(i.addEventListener(t,n,a),!0):i.attachEvent?(i.attachEvent("on"+t,n),!0):void(i["on"+t]=n)},removeEvent=function(e,t,n){var a=byId(e);if(null==a)throw"removeEvent 找不到对象:"+e;"function"==typeof n&&(typeof t==C.U&&(t="click"),a.addEventListener?a.removeEventListener(t,n,!1):a.attachEvent&&a.detachEvent("on"+t,n),n[t]=null)},fixEvent=function(e){return(e=typeof e==C.U?window.event:e).target||(e.target=e.srcElement,e.pageX=e.x,e.pageY=e.y),typeof e.layerX==C.U&&(e.layerX=e.offsetX),typeof e.layerY==C.U&&(e.layerY=e.offsetY),e},byClass=function(){var e="function"==typeof document.getElementsByClassName?function(e,t){return(t||document).getElementsByClassName(e)}:function(e,t){for(var n=-1,a=[],i=new RegExp("(?:^|\\s)"+e+"(?:\\s|$)"),o=t&&t.getElementsByTagName&&t.getElementsByTagName("*")||document.all||document.getElementsByTagName("*"),s=o.length;++n<s;i.test(o[n].className)&&a.push(o[n]));return o=null,a};return e}(),builder=function(e,t){for(var n,a,i=byAttr(e,t),o={},s={},r=0,c=i.length;r<c;r++)null!=(a=(n=i[r]).getAttribute(t))&&(o[a]===undefined&&(o[a]=[]),o[a].push(n),s[a]===undefined)&&(s[a]=n);return{box:s.wrap=e,list:o,ids:s}},custEvent=function(){function s(e,t){return(e="number"==typeof e?e:e[i])&&r[e]&&{obj:"string"==typeof t?r[e][t]:r[e],key:e}}var i="__custEventKey__",o=1,r={};return{define:function(e,t){if(e&&t){var e="number"==typeof e?e:e[i]||(e[i]=o++),n=r[e]||(r[e]={});t=[].concat(t);for(var a=0;a<t.length;a++)n[t[a]]||(n[t[a]]=[]);return e}},undefine:function(e,t){e&&(e="number"==typeof e?e:e[i])&&r[e]&&("string"==typeof t?t in r[e]&&delete r[e][t]:delete r[e])},add:function(e,t,n,a){if(e&&"string"==typeof t&&n){e=s(e,t);if(e&&e.obj)return e.obj.push({fn:n,data:a}),e.key;throw"custEvent ("+t+") is undefined !"}},remove:function(e,t,n){if(e){var a,i,e=s(e,t);if(e&&(a=e.obj)){if(isArray(a))if(n)for(i=0;i<a.length;i++)a[i].fn===n&&a.splice(i,1);else a.splice(0);else for(i in a)a[i]=[];return e.key}}},fire:function(e,t,n){if(e&&"string"==typeof t){var a,e=s(e,t);if(e&&(a=e.obj)){isArray(n)||(n=n!==undefined?[n]:[]);for(var i=0;i<a.length;i++){var o=a[i].fn;o&&o.apply&&o.apply($,[{type:t,data:a[i].data}].concat(n))}return e.key}}},destroy:function(){r={},o=1}}}(),delegatedEvent=function(o,s,r){isArray(s=s||[])&&(s=[s]);function a(e){var t,n=e||window.event,a=n.target||n.srcElement,i=e.type;if(function(e,t){for(var n=0,a=e.length;n<a;n+=1)if(contains(e[n],t))return!0;return!1}(s,a))return!1;if(!contains(o,a))return!1;for(;a&&a!==o&&a.getAttribute&&(t=a.getAttribute(r),!1!==(!c[i]||!c[i][t]||c[i][t]({evt:n,el:a,e:e,data:queryToJson(a.getAttribute("action-data")||"")})));)a=a.parentNode}var c={},e=(r=r||"action-type",{add:function(e,t,n){c[t]||(c[t]={},addEvent(o,t,a)),c[t][e]=n},remove:function(e,t){c[t]&&(delete c[t][e],function(e){for(var t in e)return!1;return!0}(c[t]))&&(delete c[t],removeEvent(o,t,a))},pushExcept:function(e){s.push(e)},removeExcept:function(e){if(e)for(var t=0,n=s.length;t<n;t+=1)s[t]===e&&s.splice(t,1);else s=[]},clearExcept:function(e){s=[]},destroy:function(){for(var e in c){for(var t in c[e])delete c[e][t];delete c[e],removeEvent(o,a,e)}}});return e},bind2=(Function.prototype.bind2=function(e){var t=this;return function(){return t.apply(e,arguments)}},function(e,t){var n=e;return function(){return n.apply(t,arguments)}}),parseParam=function(e,t){try{if(typeof t!=C.U)for(var n in e)null!=t[n]&&(e[n]=t[n])}finally{return n=null,e}},Url=((Url=function(e){this.url=e=e||"",this.query={},this.parse()}).prototype={parse:function(e){e&&(this.url=e),this.parseAnchor(),this.parseParam()},parseAnchor:function(){var e=(e=this.url.match(/\#(.*)/))?e[1]:null;null!=(this._anchor=e)&&(this.anchor=this.getNameValuePair(e),this.url=this.url.replace(/\#.*/,""))},parseParam:function(){var e=this.url.match(/\?([^\?]*)/);null!=(e=e?e[1]:null)&&(this.url=this.url.replace(/\?([^\?]*)/,""),this.query=this.getNameValuePair(e))},getNameValuePair:function(e){var a={};return e.replace(/([^&=]*)(?:\=([^&]*))?/gim,function(e,t,n){""!==t&&(a[t]=n||"")}),a},getParam:function(e){return this.query[e]||""},clearParam:function(){this.query={}},setParam:function(e,t){if(null==e||""===e||"string"!=typeof e)throw new Error("no param name set");this.query=this.query||{},this.query[e]=t},setParams:function(e){this.query=e},serialize:function(e){var t,n=[];for(t in e)null==e[t]||""===e[t]?n.push(t+"="):n.push(t+"="+e[t]);return n.join("&")},toString:function(){var e=this.serialize(this.query);return this.url+(0<e.length?"?"+e:"")+(this.anchor?"#"+this.serialize(this.anchor):"")},getHashStr:function(e){return this.anchor?"#"+this.serialize(this.anchor):e?"#":""}},Url),placeholder=function(){var s="placeholder"in create("input");return function(e){function t(e){var t,n,a,i,o;s||"1"!==(e.getAttribute("hasPlaceholder")||0)&&(t=function(){""===e.value&&(addClass(e,"gray"),e.value=n),e.onfocus=function(){""!==e.value&&e.value!==n||(this.value="",removeClass(e,"gray"))},e.onblur=function(){""===e.value&&(this.value=n,addClass(e,"gray"))}},(n=e.getAttribute("placeholder"))||e.attributes&&e.attributes.placeholder&&(n=e.attributes.placeholder.value),"INPUT"==(a=e.tagName)?"password"==(i=e.type)&&n?((o=create("input")).type="text",o.className="pwd_placeholder gray "+e.className,o.value=n,o.autocomplete="off",e.style.display="none",e.parentNode.appendChild(o),o.onfocus=function(){o.style.display="none",e.style.display="",e.focus()},e.onblur=function(){""===e.value&&(o.style.display="",e.style.display="none")}):"text"==i&&n&&t():"TEXTAREA"==a&&t(),e.setAttribute("hasPlaceholder","1"))}for(var n=e.length-1;0<=n;n--)t(e[n])}}(),Timer=function(){this.list={},this.refNum=0,this.clock=null,this.allpause=!1,this.delay=25,this.add=function(e){if("function"!=typeof e)throw"The timer needs add a function as a parameters";var t=""+(new Date).getTime()+Math.random()*Math.pow(10,17);return this.list[t]={fun:e,pause:!1},this.refNum<=0&&this.start(),this.refNum++,t},this.remove=function(e){this.list[e]&&(delete this.list[e],this.refNum--),this.refNum<=0&&this.stop()},this.pause=function(e){this.list[e]&&(this.list[e].pause=!0)},this.play=function(e){this.list[e]&&(this.list[e].pause=!1)},this.stop=function(){clearInterval(this.clock),this.clock=null},this.start=function(){var e=this;this.clock=setInterval(function(){e.loop.apply(e)},this.delay)},this.loop=function(){for(var e in this.list)this.list[e].pause||this.list[e].fun()}},throttle=function(e,t){clearTimeout(e.__tId__),e.__tId__=setTimeout(function(){e.call(t)},100)};function _throttle(e,t,n){var a=!1;return function(){a||(a=!0,e.apply(n,arguments),setTimeout(function(){a=!1},t))}}function _debounce(t,n,a){var i;return function(){var e=arguments;i&&clearTimeout(i),i=setTimeout(function(){t.apply(a,e)},n)}}var reachBottom=function(){var n=doc.documentElement,a=doc.body,i=Math.min,o=Math.max;return function(){var e=0,t=0;try{return n&&n.scrollTop?e=n.scrollTop:a&&(e=a.scrollTop),t=(a.clientHeight&&n.clientHeight?i:o)(a.clientHeight,n.clientHeight),o(a.scrollHeight,n.scrollHeight)-150<e+t}catch(e){return!1}}}(),shine=function(){var f=new Timer;return function(e,t){for(var n,a=parseParam({start:"#fff",color:"#fbb",times:2,step:5,length:4},t),i=a.start.split(""),o=a.color.split(""),s=[],r=0;r<a.step;r+=1){for(var c=i[0],l=1;l<a.length;l+=1){var m=parseInt(i[l],16),u=parseInt(o[l],16);c+=Math.floor(parseInt(m+(u-m)*r/a.step,10)).toString(16)}s.push(c)}for(r=0;r<a.times;r+=1)s=(n=s).slice(0,n.length-1).concat(n.concat([]).reverse());var d=!1,p=f.add(function(){s.length?d?d=!1:(d=!0,e.style.backgroundColor=s.pop()):f.remove(p)})}}(),createClass=function(e){var c="instance_private";function a(){this.init.apply(this,arguments)}function t(){}return e&&(t.prototype=e.prototype,a.prototype=new t),a.prototype.init=function(){},a.prototype.set=function(e,t){this[c]||(this[c]={});for(var n,a=0,i=this[c],o=e.split("."),s=o.length,r=s-1;a<s;)n=o[a],a==r&&(i[n]=t),i[n]===undefined&&(i[n]={}),i=i[n],a++},a.prototype.get=function(e){this[c]||(this[c]={});for(var t,n=0,a=this[c],i=e.split("."),o=i.length,s=o-1;n<o;){if(t=i[n],n==s)return a[t];a[t]===undefined&&(a[t]={}),a=a[t],n++}},a.extend=function(e){var t,n=e.extended;for(t in e)e.hasOwnProperty(t)&&(a[t]=e[t]);n&&n(a)},a.include=function(e){var t,n=e.included;for(t in e)e.hasOwnProperty(t)&&(a.prototype[t]=e[t]);n&&n(a)},a},animate=function(){var Tween={Linear:function(e,t,n,a){return n*e/a+t},Quad:{easeIn:function(e,t,n,a){return n*(e/=a)*e+t},easeOut:function(e,t,n,a){return-n*(e/=a)*(e-2)+t},easeInOut:function(e,t,n,a){return(e/=a/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}},Cubic:{easeIn:function(e,t,n,a){return n*(e/=a)*e*e+t},easeOut:function(e,t,n,a){return n*((e=e/a-1)*e*e+1)+t},easeInOut:function(e,t,n,a){return(e/=a/2)<1?n/2*e*e*e+t:n/2*((e-=2)*e*e+2)+t}},Quart:{easeIn:function(e,t,n,a){return n*(e/=a)*e*e*e+t},easeOut:function(e,t,n,a){return-n*((e=e/a-1)*e*e*e-1)+t},easeInOut:function(e,t,n,a){return(e/=a/2)<1?n/2*e*e*e*e+t:-n/2*((e-=2)*e*e*e-2)+t}},Quint:{easeIn:function(e,t,n,a){return n*(e/=a)*e*e*e*e+t},easeOut:function(e,t,n,a){return n*((e=e/a-1)*e*e*e*e+1)+t},easeInOut:function(e,t,n,a){return(e/=a/2)<1?n/2*e*e*e*e*e+t:n/2*((e-=2)*e*e*e*e+2)+t}},Sine:{easeIn:function(e,t,n,a){return-n*Math.cos(e/a*(Math.PI/2))+n+t},easeOut:function(e,t,n,a){return n*Math.sin(e/a*(Math.PI/2))+t},easeInOut:function(e,t,n,a){return-n/2*(Math.cos(Math.PI*e/a)-1)+t}},Expo:{easeIn:function(e,t,n,a){return 0===e?t:n*Math.pow(2,10*(e/a-1))+t},easeOut:function(e,t,n,a){return e==a?t+n:n*(1-Math.pow(2,-10*e/a))+t},easeInOut:function(e,t,n,a){return 0===e?t:e==a?t+n:(e/=a/2)<1?n/2*Math.pow(2,10*(e-1))+t:n/2*(2-Math.pow(2,-10*--e))+t}},Circ:{easeIn:function(e,t,n,a){return-n*(Math.sqrt(1-(e/=a)*e)-1)+t},easeOut:function(e,t,n,a){return n*Math.sqrt(1-(e=e/a-1)*e)+t},easeInOut:function(e,t,n,a){return(e/=a/2)<1?-n/2*(Math.sqrt(1-e*e)-1)+t:n/2*(Math.sqrt(1-(e-=2)*e)+1)+t}},Elastic:{easeIn:function(e,t,n,a,i,o){return 0===e?t:1==(e/=a)?t+n:(o=o||.3*a,n=!i||i<Math.abs(n)?(i=n,o/4):o/(2*Math.PI)*Math.asin(n/i),-(i*Math.pow(2,10*--e)*Math.sin((e*a-n)*(2*Math.PI)/o))+t)},easeOut:function(e,t,n,a,i,o){var s;return 0===e?t:1==(e/=a)?t+n:(o=o||.3*a,s=!i||i<Math.abs(n)?(i=n,o/4):o/(2*Math.PI)*Math.asin(n/i),i*Math.pow(2,-10*e)*Math.sin((e*a-s)*(2*Math.PI)/o)+n+t)},easeInOut:function(e,t,n,a,i,o){var s;return 0===e?t:2==(e/=a/2)?t+n:(o=o||a*(.3*1.5),s=!i||i<Math.abs(n)?(i=n,o/4):o/(2*Math.PI)*Math.asin(n/i),e<1?i*Math.pow(2,10*--e)*Math.sin((e*a-s)*(2*Math.PI)/o)*-.5+t:i*Math.pow(2,-10*--e)*Math.sin((e*a-s)*(2*Math.PI)/o)*.5+n+t)}},Back:{easeIn:function(e,t,n,a,i){return n*(e/=a)*e*(((i=i===undefined?1.70158:i)+1)*e-i)+t},easeOut:function(e,t,n,a,i){return n*((e=e/a-1)*e*(((i=i===undefined?1.70158:i)+1)*e+i)+1)+t},easeInOut:function(e,t,n,a,i){return i===undefined&&(i=1.70158),(e/=a/2)<1?n/2*(e*e*((1+(i*=1.525))*e-i))+t:n/2*((e-=2)*e*((1+(i*=1.525))*e+i)+2)+t}},Bounce:{easeIn:function(e,t,n,a){return n-Tween.Bounce.easeOut(a-e,0,n,a)+t},easeOut:function(e,t,n,a){return(e/=a)<1/2.75?n*(7.5625*e*e)+t:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+t:n*(7.5625*(e-=2.625/2.75)*e+.984375)+t},easeInOut:function(e,t,n,a){return e<a/2?.5*Tween.Bounce.easeIn(2*e,0,n,a)+t:.5*Tween.Bounce.easeOut(2*e-a,0,n,a)+.5*n+t}}},color={sub:function(e,t,n){return n?e.substring(t,t+n):e.substring(t)},hex:function(e){return e<0?"00":255<e?"ff":(e="0"+e.toString(16)).substring(e.length-2)},GetColors:function(e){var t,n,a;return 3<(e=e.replace("#","")).length?(t=color.sub(e,0,2),n=color.sub(e,2,2),a=color.sub(e,4,2)):(t=color.sub(e,0,1),n=color.sub(e,1,1),a=color.sub(e,2,1),t+=t,n+=n,a+=a),[parseInt(t,16),parseInt(n,16),parseInt(a,16)]}},fn={getElement:function(e){return"string"==typeof e?doc.getElementById(e):e},objType:function(e){switch(Object.prototype.toString.call(e)){case"[object Object]":return"Object";case"[object Number]":return"Number";case"[object Array]":return"Array"}},getStyle:function(e,t){var n;return doc.defaultView&&"auto"==(n=(t="borderWidth"==t?"borderLeftWidth":t)in(n=doc.defaultView.getComputedStyle(e,null))?n[t]:n.getPropertyValue(t))&&(n="0px"),e.style[t]||e.currentStyle&&("auto"==e.currentStyle[t]?"0px":e.currentStyle[t])||n},getOriCss:function(e,t){var n,a,i=[];for(n in t)t.hasOwnProperty(n)&&("transparent"==fn.getStyle(e,n)||/^#|rgb\(/.test(fn.getStyle(e,n))?("transparent"==fn.getStyle(e,n)&&i.push([255,255,255]),/^#/.test(fn.getStyle(e,n))&&i.push(color.GetColors(fn.getStyle(e,n))),/^rgb\(/.test(fn.getStyle(e,n))&&(a=fn.getStyle(e,n).replace(/^rgb\(([0-9]{0,3}),\s([0-9]{0,3}),\s([0-9]{0,3})\)/g,"$1 $2 $3").split(" "),i.push([parseInt(a[0],10),parseInt(a[1],10),parseInt(a[2],10)]))):i.push("opacity"==n?100*fn.getStyle(e,n):parseInt(fn.getStyle(e,n),10)));return i},getEndCss:function(e){var t,n=[];for(t in e)e.hasOwnProperty(t)&&("opacity"==t?n.push(100*e[t]):/^#/.test(e[t])?n.push(color.GetColors(e[t])):n.push(parseInt(e[t],10)));return n}};function Anim(){this.init.apply(this,arguments[0])}return Anim.prototype={init:function(){if(this.elem=fn.getElement(arguments[0]),this.cssObj=arguments[1],this.cssOri=fn.getOriCss(this.elem,arguments[1]),this.cssEnd=fn.getEndCss(arguments[1]),this.durtime=arguments[2],this.animType="Tween.Linear",this.funObj=null,this.start=!1,this.complete=!1,this.onPause=!1,this.onRestart=!1,arguments.length<3)throw new Error("至少要传入3个参数");if(4==arguments.length){if("Object"==fn.objType(arguments[3]))for(var e in this.funObj=arguments[3],this.funObj)"start"==e.toString()&&(this.start=!0),"complete"==e.toString()&&(this.complete=!0);"string"==typeof arguments[3]&&(this.animType=arguments[3])}else if(5==arguments.length&&(this.animType=arguments[3],"Object"==fn.objType(arguments[4])))for(e in this.funObj=arguments[4],this.funObj)"start"==e.toString()&&(this.start=!0),"complete"==e.toString()&&(this.complete=!0);this.startAnim()},startAnim:function(){this.start&&this.funObj.start.call(this,this.elem);var that=this,t=0,props=[],pro;for(pro in this.cssObj)this.cssObj.hasOwnProperty(pro)&&props.push(pro);clearInterval(this.timer),this.timer=setInterval(function(){var d,c1,c2,c3,b1,b2,b3,r,g,b,i,c;if(that.onPause)clearInterval(that.timer);else if(t<that.durtime/10)for(t++,i=0;i<props.length;i++){"Array"!=fn.objType(that.cssOri[i])&&(b=that.cssOri[i]),"Array"!=fn.objType(that.cssEnd[i])&&(c=that.cssEnd[i]-that.cssOri[i]),d=that.durtime/10,"Array"==fn.objType(that.cssOri[i])&&"Array"==fn.objType(that.cssEnd[i])?(b1=that.cssOri[i][0],b2=that.cssOri[i][1],b3=that.cssOri[i][2],c1=that.cssEnd[i][0]-that.cssOri[i][0],c2=that.cssEnd[i][1]-that.cssOri[i][1],c3=that.cssEnd[i][2]-that.cssOri[i][2],r=color.hex(Math.ceil(eval(that.animType)(t,b1,c1,d))),g=color.hex(Math.ceil(eval(that.animType)(t,b2,c2,d))),b=color.hex(Math.ceil(eval(that.animType)(t,b3,c3,d))),that.elem.style[props[i]]="#"+r+g+b):"opacity"==props[i].toString()?that.elem.style[props[i]]=Math.ceil(eval(that.animType)(t,b,c,d))/100:that.elem.style[props[i]]=Math.ceil(eval(that.animType)(t,b,c,d))+"px"}else{for(i=0;i<props.length;i++)"Array"==fn.objType(that.cssOri[i])&&"Array"==fn.objType(that.cssEnd[i])?(c1=that.cssEnd[i][0],c2=that.cssEnd[i][1],c3=that.cssEnd[i][2],r=color.hex(Math.ceil(eval(that.animType)(t,b1,c1,d))),g=color.hex(Math.ceil(eval(that.animType)(t,b2,c2,d))),b=color.hex(Math.ceil(eval(that.animType)(t,b3,c3,d))),that.elem.style[props[i]]="#"+r+g+b):"opacity"==props[i].toString()?that.elem.style[props[i]]=that.cssEnd[i]/100:that.elem.style[props[i]]=that.cssEnd[i]+"px";clearInterval(that.timer),that.complete&&that.funObj.complete.call(that,that.elem)}},10)},pause:function(){this.onPause=!0}},function(){return new Anim(arguments)}}(),getGuid=function(){return Math.abs((new Date).getTime())+"_"+Math.round(1e8*Math.random())};function template(a,e,i){var t,n=Object.prototype.toString.call(e),o=0;if("[object Array]"===n){for(t=[],o=0;o<e.length;o++)t.push(s(e[o],o));t=t.join("")}else"[object Object]"===n&&(t=s(e,o++));return t;function s(e,t){var n=i?i(e,t):e;return a.replace(/@@(\w+)@@/g,function(e,t){t=n[t];return void 0===t?e:t})}}function xhr(e){var t=new XMLHttpRequest;t.open("GET",e,!0),t.onreadystatechange=function(){t.readyState===XMLHttpRequest.DONE&&200===t.status&&console.log(t.responseText)},t.send()}function getJsonp(e,t){function n(){s.onreadystatechange=s.onload=null,window[l]=null,o.removeChild(s)}var a,i=Date.now(),o=document.getElementsByTagName("body")[0],s=document.createElement("script"),r=t.data,c="?",l=t.jsonpCallback||"jsonp_"+i,m=t.jsonp||"callback";if(s.charset=t.charset||"utf-8",s.type="text/javascript",window[l]=t.success,r)for(a in r)r.hasOwnProperty(a)&&(c+=a+"="+r[a]+"&");"onreadystatechange"in s?s.onreadystatechange=function(){"loaded"===s.readyState.toLowerCase()&&n()}:s.onload=function(){n()},s.src=e+c+m+"="+l+(t.cache?"":"&_="+i),o.appendChild(s)}function getScript(e,t){var n=document.createElement("script");n.charset="utf-8",n.type="text/javascript",n.src=e,document.getElementsByTagName("body")[0].appendChild(n),"onreadystatechange"in n?n.onreadystatechange=function(){"loaded"===n.readyState.toLowerCase()&&t&&t()}:n.onload=function(){t&&t()}}var jsonp=function(url,cb){var head=byTag("head")[0],ojs=byId(url),fun=(ojs&&head.removeChild(ojs),-1==url.indexOf("&")?url+="?":url+="&",url=url+"_t"+getGuid(),exports.fun="jsonp_"+getGuid()),js=("function"==typeof cb&&eval(fun+"=function(res){cb(res)}"),url=url+"&callback="+fun,create("script"));js.src=url,js.id=url,js.type="text/javascript",js.language="javascript",head.appendChild(js)},jsLoad=function(e,t){var n=byTag("head")[0],a=create("script"),i=!1;a.onload=a.onreadystatechange=function(){i||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(i=!0,a.onload=a.onreadystatechange=null,"function"==typeof t&&t())},a.src=e;try{n.appendChild(a)}catch(e){}},ijax={arrTaskLists:[],createLoadingIframe:function(){if(null!=this.loadFrames)return!1;var e="loadingIframe_thread"+Math.ceil(1e4*Math.random()),t="loadingIframe_thread"+Math.ceil(1e4*(Math.random()+1)),n=(this.loadFrames=[e,t],""),e='<iframe id="'+e+'" name="'+e+'" class="invisible" scrolling="no" src="" allowTransparency="true" style="display:none;" frameborder="0" ></iframe><iframe id="'+t+'" name="'+t+'" class="invisible" scrolling="no" src="'+(n=ua.isIE6?'javascript:void((function(){document.open();document.domain="sina.com.cn";document.close()})())':n)+'" allowTransparency="true" style="display:none;" frameborder="0" ></iframe>',t=create("div"),a=(t.id="ijax_iframes",t.innerHTML=e,doc.body.appendChild(t),setInterval(bind2(function(){null!=byId(this.loadFrames[0])&&null!=byId(this.loadFrames[1])&&(clearInterval(a),a=null,this.loadingIframe={thread1:{container:byId(this.loadFrames[0]),isBusy:!1},thread2:{container:byId(this.loadFrames[1]),isBusy:!1}},this.loadByList())},this),10))},isIjaxReady:function(){if(typeof this.loadingIframe!=C.U)for(var e in this.loadingIframe)if(!this.loadingIframe[e].isBusy)return this.loadingIframe[e].isBusy=!0,this.loadingIframe[e];return!1},request:function(e,t){var n={};n.url=e,n.option=t||{},this.arrTaskLists.push(n),null==this.loadFrames?this.createLoadingIframe():this.loadByList()},loadByList:function(){var e,t;return 0!==this.arrTaskLists.length&&!!(e=this.isIjaxReady())&&(t=this.arrTaskLists[0],this.loadData(t.url,t.option,e),void this.arrTaskLists.shift())},loadData:function(e,a,i){var o=new Url(e);if(a.GET)for(var t in a.GET)o.setParam(t,encodeDoubleByte(a.GET[t]));var o=o.toString(),s=i.container;if(s.listener=bind2(function(){if(a.onComplete||a.onException)try{var e=s.contentWindow.document,t=byTag("textarea")[0],n=typeof t!=C.U?t.value:e.body.innerHTML;a.onComplete?a.onComplete(n):a.onException()}catch(e){a.onException&&a.onException(e.message,o.toString())}i.isBusy=!1,removeEvent(s,"load",s.listener),this.loadByList()},this),addEvent(s,"load",s.listener),a.POST){var n,r=create("form");for(n in r.id="IjaxForm",r.action=o,r.method="post",r.target=s.id,a.POST){var c=create("input");c.type="hidden",c.name=n,c.value=a.POST[n],r.appendChild(c)}doc.body.appendChild(r);try{r.submit()}catch(e){}}else try{window.frames(s.id).location.href=o}catch(e){s.src=o}}},html5Ijax=function(){function o(){}function e(e){this.init(e=e||{})}var s=/^http\s?\:\/\/[a-z\d\-\.]+/i,r="ijax-html5-iframe-";return e.prototype={ready:!1,init:function(e){var n,t,a,i;this.ready||(n=this,i=e.proxyUrl,n.onsuccess=e.onsuccess||o,n.onfailure=e.onfailure||o,i&&(e=function(e){var t;n.ready&&e.origin===n.target?(t=e.data)&&"failure"!==t?(n.onsuccess&&n.onsuccess(e.data),n.destroy()):(n.destroy(),n.onfailure&&n.onfailure()):n.destroy()},addEvent(window,"message",e),a='<iframe id="'+(a=r+Date.parse(new Date))+'" name="'+a+'" src="'+i+'" frameborder="0" style="width:0;height:0;display:none;"></iframe>',(i=create("div")).id=r+"iframes",i.innerHTML=a,t=i.childNodes[0],addEvent(t,"load",a=function(){n.ready=!0;var e=t.src.match(s);n.target=e&&e[0]||"*"}),doc.body.insertBefore(t,doc.body.firstChild),n._iframe=t,n._iframeLoaded=a,n._receiver=e))},send:function(e){var t=this,n=(e=e||{}).url,a=e.data,i=e.onsuccess,o=e.onfailure;n&&"string"==typeof n&&(i&&(t.onsuccess=i),o&&(t.onfailure=o),t.ready?(a?a+="&_url="+window.encodeURIComponent(n):a="_url="+window.encodeURIComponent(n),t._iframe.contentWindow.postMessage(a,t.target)):setTimeout(function(){t.send(e)},50))},destroy:function(){var e=this._iframe;removeEvent(e,"load",this._iframeLoaded),e.parentNode.removeChild(e),removeEvent(window,"message",this._receiver),this._iframe=null,this._iframeLoaded=null,this._receiver=null}},e}(),MessageStorage=function(){if(window.localStorage)return{set:function(e,t){localStorage.setItem(e,t)},get:function(e){return localStorage.getItem(e)},remove:function(e){localStorage.removeItem(e)},clear:function(){localStorage.clear}}}(),$={C:C,doc:doc,byId:byId,byTag:byTag,byAttr:byAttr,hasClass:hasClass,addClass:addClass,removeClass:removeClass,toggleClass:toggleClass,preventDefault:preventDefault,stopPropagation:stopPropagation,contains:contains,create:create,insertAfter:insertAfter,ua:ua,domReady:domReady,timeoutHandle:timeoutHandle,cssSupports:cssSupports,getXY:getXY,getScrollPos:getScrollPos,getPosition:getPosition,getStyle:getStyle,getOuterStyle:getOuterStyle,setStyle:setStyle,trim:trim,encodeHTML:encodeHTML,decodeHTML:decodeHTML,encodeDoubleByte:encodeDoubleByte,byteLength:byteLength,strLeft:strLeft,indexOf:indexOf,inArray:inArray,isArray:isArray,isEmptyObj:isEmptyObj,isFn:isFn,extend:extend,jsonToQuery:jsonToQuery,queryToJson:queryToJson,addEvent:addEvent,removeEvent:removeEvent,fixEvent:fixEvent,byClass:byClass,builder:builder,custEvent:custEvent,delegatedEvent:delegatedEvent,bind2:bind2,parseParam:parseParam,Url:Url,placeholder:placeholder,Timer:Timer,throttle:throttle,_throttle:_throttle,_debounce:_debounce,reachBottom:reachBottom,shine:shine,createClass:createClass,animate:animate,getGuid:getGuid,jsonp:jsonp,jsLoad:jsLoad,ijax:ijax,html5Ijax:html5Ijax,getScript:getScript,getJsonp:getJsonp,xhr:xhr,template:template,messageStorage:MessageStorage,register:function(e,t){for(var n,a=0,i=$,o=e.split("."),s=o.length,r=s-1;a<s;){if(n=o[a],a==r){if(i[n]!==undefined)throw o+":: has registered";i[n]=t($)}i[n]===undefined&&(i[n]={}),i=i[n],a++}}},EXPORTS_NAME="sinacMNT",UGLIFY_NAME="___"+EXPORTS_NAME+"___";exports[EXPORTS_NAME]=exports[UGLIFY_NAME]=$}(window),window.___sinacMNT___.register("msg",function(){var n={I001:"评论成功",I002:"并已转发微博",I003:"请输入评论",I004:"请输入密码",I005:"请先登录再提交评论",I006:"已到最后一页",I007:"发布",I008:"赞",I008d:"已赞",I008e:"您已赞过该评论",I009:"回复",I010:"微博账号/博客/邮箱",I011:"下次自动登录",I012:"注册",I013:"忘记密码?",I014:"点击加载更多",I015:"最热评论",I016:"最新评论",I017:"刷新",I018:"分享到微博",I019:"分享",I020:"分享到新浪微博",I021:"分享到腾讯微博",I022:"月",I023:"日",I024:"今天",I025:"秒前",I026:"分钟前",I027:"更多精彩评论&gt;&gt;",I028:"还有<em><% this.num %></em>条评论",I029:"登录",I030:"退出",I031:"<em><% this.comment %></em>条评论",I032:"<em><% this.person %></em>人参与",I033:"<em><% this.post %></em>条相关帖子",I034:"查看对话",I035:"收起对话",I036:"回复<% this.userLnk %>:",I037:":",I038:"网友评论",I039:'<span class="reply-form-tip"><em>点赞成功!</em>再对TA说点什么吧~</span>',I040:"查看剩余<em><% this.replyNum %></em>条回复",I041:"加载中,请稍候...",I042:"评论超时,请稍候再试",I043:"举报",I045:'根据<a href="http://www.cac.gov.cn/2017-08/25/c_1121541842.htm" target="_blank">《互联网跟帖评论服务管理规定》</a><br>发布评论前请绑定手机号,谢谢!',I046:"绑定手机号",I047:"关闭",I048:"查看全部<em><% this.totalNum %></em>条评论 &gt;",I049:"评论失败,您的账号已被封禁",I050:"评论失败"};return{set:function(e,t){"all"!==e?n[e]=t:n=t},get:function(e){return void 0===e?n:n[e]}}}),!function(r){var c=location.protocol,l=r.___sinacMNT___;if(l.custEvent.define(l,["ce_login","ce_weiboLogin","ce_weiboLogout","ce_loginError","ce_logout","ce_preLogin","ce_layerHide","ce_layerShow","ce_cmnt_new","ce_cmnt_close"]),!r.SINA_OUTLOGIN_LAYER)throw new Error(c+"//i.sso.sina.com.cn/js/outlogin_layer.js not loaded");var m=r.SINA_OUTLOGIN_LAYER,u="https://comment5.news.sina.com.cn/comment/skin/default.html?info_type=1&style=1&user_uid=";l.register("login",function(){function a(e,t){var n=["login","pre_login","weibo_login","logout","weibo_login_security"],a="sinacMNT_",i=(t=t||0,l.byTag("body")[0]);if(i){l.addClass(i,a+e);for(var o=0,s=n.length;o<s;o++){var r=n[o];r==e||t||l.removeClass(i,a+r)}}}function i(t){l.jsonp(c+"//comment5.news.sina.com.cn/user/security",function(e){e&&e.result&&e.result.data&&(e.result.data.is_security||!1)&&"function"==typeof t&&t()})}var e=l.createClass(),o=null,s="";return e.include({init:function(e){this._setOpt(e),this._setLogin()},_setOpt:function(e){this.set("opt",l.extend({loginSuccess:function(){},logoutSuccess:function(){},error:function(e){}},e,!0))},_setLogin:function(){var t=this;m.STK.Ready(function(){m.register("login_success",function(){t.lInSuccess()}).register("logout_success",function(){t.lOutSuccess()}).register("login_error",function(e){t.lInError(e)}).register("layer_hide",function(){l.custEvent.fire(l,"ce_layerHide")}).register("layer_show",function(){l.custEvent.fire(l,"ce_layerShow")}).register("pre_login_state",function(){m.isPreLoginState&&(a("pre_login"),t.getPreLoginWeiboInfo(function(e){e.data?((o=e.data).name=o.name||o.screen_name,l.custEvent.fire(l,"ce_preLogin")):o=null},function(){}))}),m.init(),t.isLogin()||a("logout")})},lOutSuccess:function(){var e=this.get("opt");s="",l.custEvent.fire(l,"ce_logout"),e.logoutSuccess(),a("logout")},lInSuccess:function(t){var e=this.get("opt");s=m.getSinaCookie().uid||"",this.getWeiboInfo(function(e){a("weibo_login"),e.result&&e.result.data?(o=e.result.data,l.custEvent.fire(l,"ce_weiboLogin"),i(function(){a("weibo_login_security",1)})):(o=null,l.custEvent.fire(l,"ce_weiboLogout")),l.custEvent.fire(l,"ce_login"),l.isFn(t)},function(){a("login"),l.isFn(t)}),e.loginSuccess()},lInError:function(e){var t=this.get("opt"),n=(s="",!l.inArray(e.errno,["5024","5025","4049","2070"]));if(!e.result)return l.custEvent.fire(l,"ce_loginError",{validated:n,info:e}),t.error(),!1},isLogin:function(){return m.isLogin()},getWeiboInfo:function(n,e){var t=r.sinaSSOController.getSinaCookie(),a=c+"//api.sina.com.cn/weibo/2/users/show.json?uid="+t.uid+"&source=2835469272",i=l.getGuid();l.timeoutHandle(i,function(t){t.timeout(i,function(){e()}),l.jsonp(a,function(e){n(e),t.success(i)})},3e3)},getPreLoginWeiboInfo:function(t,n){i(function(){a("weibo_login_security",1)}),m.getPreLoginWeiboData({timeout:3e4,onSuccess:function(e){t(e)},onFailure:function(e){n(e)}})},lOut:function(){m.logout()},lIn:function(e,t,n){if(window.SINA_USER_PANEL){var a=window.SINA_USER_PANEL;try{a.setOutLoginMiddle(!0)}catch(e){}a.getOutLogin().show()}else m.show()},getName:function(){var e="",t=m.getSinaCookie();return o?e='<a href="http://weibo.com/u/'+o.id+'/" target="_blank" data-sudaclick="comment_nickname_p">'+(o.screen_name||o.name)+"</a>":t&&(e='<a href="'+u+t.uid+'" target="_blank" data-sudaclick="comment_nickname_p">'+(t.nick||t.name)+"</a>"),e},getFace:function(){var e="",t="//img.t.sinajs.cn/t5/style/images/face/male_180.png",n=m.getSinaCookie(),a=c+"//weibo.com/";return o?(a=c+"//weibo.com/u/"+o.id+"/",e=o.screen_name||o.name,t=o.profile_image_url.replace("/50/","/180/").replace(/^http[s]?\:(?=\/\/)/,"")):n&&(t="//portrait5.sinaimg.cn/"+n.uid+"/blog/50",e=n.nick||n.name,a=u+n.uid),'<a href="'+a+'" target="_blank" title="'+e+'" data-sudaclick="comment_avatar_p"><img src="'+t+'" alt="" /></a>'},getInfo:function(){return{sina:m.getSinaCookie(),weibo:o}},getCommentConfig:function(){var e=this.getInfo(),t="";return t=e.weibo?"&wb_verified="+(e=e.weibo).verified+"&wb_screen_name="+e.screen_name+"&wb_user_id="+e.idstr+"&wb_time=&wb_profile_img="+e.profile_image_url:t},isUidChanged:function(){var e=m.getSinaCookie().uid;return s!==e}}),new e})}(window),!function(exports,undefined){var $=exports.___sinacMNT___,doc=$.doc;$.register("app",function(){var app={};return app.sima={conf:{action:"tydata_fail",data:{},pk:"187522",uk:"ty"},source:location.protocol+"//news.sina.com.cn/js/pctianyi/sima.js",track:function(e){var t=this;e&&(t.conf.data=e),window.SIMA?window.SIMA(t.conf):$.getScript(this.source,function(){window.SIMA(t.conf)})}},app.track=function(e,t){try{exports._S_uaTrack(e,t)}catch(e){}},app.textareaUtils=function(){var s={},r=doc.selection;return s.selectionStart=function(e){if(!r)return e.selectionStart;var t=r.createRange(),n=0,a=doc.body.createTextRange();for(a.moveToElementText(e);a.compareEndPoints("StartToStart",t)<0;n++)a.moveStart("character",1);return n},s.selectionBefore=function(e){return e.value.slice(0,s.selectionStart(e))},s.selectText=function(e,t,n){var a;e.focus(),r?((a=e.createTextRange()).collapse(1),a.moveStart("character",t),a.moveEnd("character",n-t),a.select()):e.setSelectionRange(t,n)},s.insertText=function(e,t,n,a){var i,o;e.focus(),a=a||0,r?((o=r.createRange()).moveStart("character",-a),o.text=t):(o=e.value,i=(a=n-a)+t.length,e.value=o.slice(0,a)+t+o.slice(n,o.length),s.selectText(e,i,i))},s.getCursorPos=function(e){var t,n,a=0;return $.ua.isIE?(e.focus(),t=null,(n=(t=r.createRange()).duplicate()).moveToElementText(e),n.setEndPoint("EndToEnd",t),e.selectionStart=n.text.length-t.text.length,e.selectionEnd=e.selectionStart+t.text.length,a=e.selectionStart):!e.selectionStart&&"0"!==e.selectionStart||(a=e.selectionStart),a},s.getSelectedText=function(e){return window.getSelection?(e=e).selectionStart!==undefined&&e.selectionEnd!==undefined?e.value.substring(e.selectionStart,e.selectionEnd):"":r.createRange().text},s.setCursor=function(e,t,n){var a;t=null===t?e.value.length:t,n=null===n?0:n,e.focus(),e.createTextRange?((a=e.createTextRange()).move("character",t),a.moveEnd("character",n),a.select()):e.setSelectionRange(t,t+n)},s.unCoverInsertText=function(e,t,n){(n=null===n?{}:n).rcs=null===n.rcs?e.value.length:+n.rcs,n.rccl=null===n.rccl?0:+n.rccl;var a=e.value,i=a.slice(0,n.rcs),a=a.slice(n.rcs+n.rccl,""===a?0:a.length);e.value=i+t+a,this.setCursor(e,n.rcs+(null===t?0:t.length))},s}(),app.splitNum=function(e){e+="";for(var t=/(-?\d+)(\d{3})/;t.test(e);)e=e.replace(t,"$1,$2");return e},app.template=function(e,t){function n(e,t){function n(e,t){return s+=t?e.match(o)?e+"\n":"r.push("+e+");\n":e?'r.push("'+e.replace(/"/g,'\\"')+'");\n':"",n}for(var a,i=/<%([^%>]+)?%>/g,o=/(^( )?(if|for|else|switch|case|break|{|}))(.*)?/g,s="var r=[];\n",r=0;a=i.exec(e);)n(e.slice(r,a.index))(a[1],!0),r=i.lastIndex;return n(e.substr(r,e.length-r)),s+='return r.join("");',new Function(s.replace(/[\r\t\n]/g,"")).call(t)}var a;return void 0!==(a=e)&&a.nodeName&&a.nodeType?n(/^(textarea|input)$/i.test(e.nodeName)?e.value:e.innerHTML,t):n(e,t)},app.simCheckbox=function(e){var t="sina-comment-chkbox-selected";$.hasClass(e,t)?($.removeClass(e,t),e.setAttribute("checked",0)):($.addClass(e,t),e.setAttribute("checked",1))},app.textareaAutoGrow=function(){function e(e,t){var n=this,a={clzPrefix:"autogrow-textarea-",minHeight:"auto",maxHeight:1/0,context:e.parentNode,styles:{},realTime:!0,speed:200};"auto"===(t=$.extend(a,t)).minHeight&&(t.minHeight=$.getStyle(e,"height").replace("px","")),e&&(n.stop=!1,n.config=t,n.textarea=e,n._bindEvent(),n.setCloneStyle(),n.grow())}return e.prototype={constructor:e,_bindEvent:function(){var t=this,e=t.textarea;$.addEvent(e,"keyup",function(e){t.throttleGrow()}),$.addEvent(e,"focus",function(e){t.throttleGrow()}),$.addEvent(window,"resize",function(e){t.throttleGrow()})},setCloneStyle:function(){var e=this,t=e.config,n=e.textarea,e=(e.clone||(e.clone=document.createElement("div"),e.clone.className=t.clzPrefix+"clone",t.context.appendChild(e.clone)),e.clone),a={position:"absolute",wordWrap:"break-word",top:0,left:"-9999px"},i={},i=$.isEmptyObj(t.styles)?$.extend(a,{width:$.getStyle(n,"width"),fontSize:$.getStyle(n,"fontSize"),fontFamily:$.getStyle(n,"fontFamily"),lineHeight:$.getStyle(n,"lineHeight")}):$.extend(a,t.styles);$.setStyle(e,i)},throttleGrow:function(){this.stop||$.throttle(this.grow,this,this.config.speed)},grow:function(){var e=this,t=e.config,n=(t.realTime&&e.setCloneStyle(),e.clone.innerHTML=e.textarea.value.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/&/g,"&amp;").replace(/\n$/,"<br/>&nbsp;").replace(/\n/g,"<br/>").replace(/ {2,}/g,function(e){return function(e,t){for(var n=0,a="";n<t;n++)a+=e;return a}("&nbsp;",e.length-1)+" "}),$.getStyle(e.clone,"height").replace("px","")),a="hidden";(n=Math.max(n,t.minHeight))>t.maxHeight&&(n=t.maxHeight,a="auto"),n=Math.min(n,t.maxHeight),$.setStyle(e.textarea,{height:n+"px",overflow:a})},revive:function(){this.stop=!1},destroy:function(){this.stop=!0}},e}(),app.getWinSize=function(e){var t,n,a=e?e.document:document;return"CSS1Compat"===a.compatMode?(t=a.documentElement.clientWidth,n=a.documentElement.clientHeight):window.innerHeight?(t=(a=e?e.self:window).innerWidth,n=a.innerHeight):a.documentElement&&a.documentElement.clientHeight?(t=a.documentElement.clientWidth,n=a.documentElement.clientHeight):a.body&&(t=a.body.clientWidth,n=a.body.clientHeight),{width:t,height:n=navigator.userAgent.match(/iPad;.*CPU.*OS 7_\d/i)&&!window.navigator.standalone&&n<t?672:n}},app.post=function(url,param,cb,timeoutCb,time){var cbName="iJax_"+Date.now();try{doc.domain="sina.com.cn"}catch(e){}param.callback=cbName;var TIMEOUT_NAME="TD_"+(new Date).getTime();$.timeoutHandle(TIMEOUT_NAME,function(handle){var Sender;handle.timeout(TIMEOUT_NAME,function(){"function"==typeof timeoutCb&&timeoutCb()}),window[cbName]=function(m){"string"==typeof m&&(m=eval("("+m+")")),"function"==typeof cb&&cb(m),handle.success(TIMEOUT_NAME)},!$.ua.isFF||param.iframe&&1===param.iframe?$.ijax.request(url,{POST:param}):(param.callback=undefined,param=$.jsonToQuery(param),Sender=new $.html5Ijax({proxyUrl:location.protocol+"//comment5.news.sina.com.cn/comment/postmsg.html"}),Sender.send({url:url,data:param,onsuccess:window[cbName],onfailure:function(){}}))},time||5e3)},app.cmntEncodeHtml=function(e){return $.encodeHTML($.decodeHTML(e))},app})}(window),!function(exports,undefined){var $=exports.___sinacMNT___,doc=$.doc,uaTrack=$.app.track,UNDEFINED=$.C.U,app=$.app,getMsg=$.msg.get,appTemplate=$.app.template,docEle,getPar=($.cssSupports("borderRadius")||(docEle=document.documentElement,$.addClass(docEle,"sinacMNT-no-border-radius")),function(e,t){e=e.parentNode;return e&&e.getAttribute&&e.getAttribute("comment-type")===t||"body"===e.tagName.toLowerCase()?e:getPar(e,t)});$.register("cmnt",function(){var cmnt={config:{encoding:"utf-8",fixFace:!1,comment:{}}};return cmnt.data=function(){var c={},l=$.isArray,m=$.extend;return{set:function(e,t,n){var a,i,o;if(void 0===c[e]&&(c[e]={}),void 0===c[e][t]&&(c[e][t]={}),a=c[e][t],l(n))for(var s=0,r=n.length;s<r;s++)(o=(i=n[s]).mid||i.newsid)&&(a[o]=i);else m(a,n)},get:function(e,t,n){return e?t?n?c[e][t][n]:c[e][t]:c[e]:c}}}(),cmnt.face=function(){var o,t,s="",r="",n=null,a=(d(function(e){p(n=e)}),"//www.sinaimg.cn/dy/deco/2012/1217/face/"),c="//img.t.sinajs.cn/t35/style/images/common/face/ext/normal/",i={"哈哈":"haha","偷笑":"tx","泪":"lei","嘻嘻":"xixi","爱你":"aini","挖鼻屎":"wbs","心":"xin"},l={"国旗":"dc/flag_thumb","走你":"ed/zouni_thumb","笑哈哈":"32/lxhwahaha_thumb","江南style":"67/gangnamstyle_thumb","吐血":"8c/lxhtuxue_thumb","好激动":"ae/lxhjidong_thumb","lt切克闹":"73/ltqiekenao_thumb","moc转发":"cb/moczhuanfa_thumb","ala蹦":"b7/alabeng_thumb","gst耐你":"1b/gstnaini_thumb","xb压力":"e0/xbyali_thumb","din推撞":"dd/dintuizhuang_thumb","草泥马":"7a/shenshou_thumb","神马":"60/horse2_thumb","浮云":"bc/fuyun_thumb","给力":"c9/geili_thumb","围观":"f2/wg_thumb","威武":"70/vw_thumb","熊猫":"6e/panda_thumb","兔子":"81/rabbit_thumb","奥特曼":"bc/otm_thumb","囧":"15/j_thumb","互粉":"89/hufen_thumb","礼物":"c4/liwu_thumb","呵呵":"ac/smilea_thumb","嘻嘻":"0b/tootha_thumb","哈哈":"6a/laugh","可爱":"14/tza_thumb","可怜":"af/kl_thumb","挖鼻屎":"a0/kbsa_thumb","吃惊":"f4/cj_thumb","害羞":"6e/shamea_thumb","挤眼":"c3/zy_thumb","闭嘴":"29/bz_thumb","鄙视":"71/bs2_thumb","爱你":"6d/lovea_thumb","泪":"9d/sada_thumb","偷笑":"19/heia_thumb","亲亲":"8f/qq_thumb","生病":"b6/sb_thumb","太开心":"58/mb_thumb","懒得理你":"17/ldln_thumb","右哼哼":"98/yhh_thumb","左哼哼":"6d/zhh_thumb","嘘":"a6/x_thumb","衰":"af/cry","委屈":"73/wq_thumb","吐":"9e/t_thumb","打哈欠":"f3/k_thumb","抱抱":"27/bba_thumb","怒":"7c/angrya_thumb","疑问":"5c/yw_thumb","馋嘴":"a5/cza_thumb","拜拜":"70/88_thumb","思考":"e9/sk_thumb","汗":"24/sweata_thumb","困":"7f/sleepya_thumb","睡觉":"6b/sleepa_thumb","钱":"90/money_thumb","失望":"0c/sw_thumb","酷":"40/cool_thumb","花心":"8c/hsa_thumb","哼":"49/hatea_thumb","鼓掌":"36/gza_thumb","晕":"d9/dizzya_thumb","悲伤":"1a/bs_thumb","抓狂":"62/crazya_thumb","黑线":"91/h_thumb","阴险":"6d/yx_thumb","怒骂":"89/nm_thumb","心":"40/hearta_thumb","伤心":"ea/unheart","猪头":"58/pig",ok:"d6/ok_thumb","耶":"d9/ye_thumb",good:"d8/good_thumb","不要":"c7/no_thumb","赞":"d0/z2_thumb","来":"40/come_thumb","弱":"d8/sad_thumb","蜡烛":"91/lazu_thumb","蛋糕":"6a/cake","钟":"d3/clock_thumb","话筒":"1b/m_thumb"},m={iniTarget:null,srcInput:null,iconLayer:null,iconText:"",isShow:!1,callback:function(){}};function u(e){m.isShow&&e&&(e=e.target||e.srcElement)!==m.iniTarget&&!$.contains(m.iconLayer,e)&&m.hide()}function d(e){e([{url:"https://comment.sinaimg.cn/emoji/default/face_sina_1.png",phrase:"[→_→]",file_name:"face_sina_1",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_2.png",phrase:"[呵呵]",file_name:"face_sina_2",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_3.png",phrase:"[嘻嘻]",file_name:"face_sina_3",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_4.png",phrase:"[哈哈]",file_name:"face_sina_4",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_5.png",phrase:"[爱你]",file_name:"face_sina_5",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_6.png",phrase:"[挖鼻屎]",file_name:"face_sina_6",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_7.png",phrase:"[吃惊]",file_name:"face_sina_7",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_8.png",phrase:"[晕]",file_name:"face_sina_8",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_9.png",phrase:"[泪]",file_name:"face_sina_9",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_10.png",phrase:"[馋嘴]",file_name:"face_sina_10",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_11.png",phrase:"[抓狂]",file_name:"face_sina_11",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_12.png",phrase:"[哼]",file_name:"face_sina_12",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_13.png",phrase:"[可爱]",file_name:"face_sina_13",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_14.png",phrase:"[怒]",file_name:"face_sina_14",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_15.png",phrase:"[汗]",file_name:"face_sina_15",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_16.png",phrase:"[害羞]",file_name:"face_sina_16",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_17.png",phrase:"[睡觉]",file_name:"face_sina_17",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_18.png",phrase:"[钱]",file_name:"face_sina_18",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_19.png",phrase:"[偷笑]",file_name:"face_sina_19",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_20.png",phrase:"[笑cry]",file_name:"face_sina_20",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_21.png",phrase:"[doge]",file_name:"face_sina_21",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_22.png",phrase:"[喵喵]",file_name:"face_sina_22",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_23.png",phrase:"[酷]",file_name:"face_sina_23",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_24.png",phrase:"[衰]",file_name:"face_sina_24",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_25.png",phrase:"[闭嘴]",file_name:"face_sina_25",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_26.png",phrase:"[鄙视]",file_name:"face_sina_26",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_27.png",phrase:"[花心]",file_name:"face_sina_27",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_28.png",phrase:"[鼓掌]",file_name:"face_sina_28",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_29.png",phrase:"[悲伤]",file_name:"face_sina_29",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_30.png",phrase:"[思考]",file_name:"face_sina_30",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_31.png",phrase:"[生病]",file_name:"face_sina_31",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_32.png",phrase:"[亲亲]",file_name:"face_sina_32",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_33.png",phrase:"[怒骂]",file_name:"face_sina_33",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_34.png",phrase:"[太开心]",file_name:"face_sina_34",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_35.png",phrase:"[懒得理你]",file_name:"face_sina_35",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_36.png",phrase:"[右哼哼]",file_name:"face_sina_36",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_37.png",phrase:"[左哼哼]",file_name:"face_sina_37",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_38.png",phrase:"[嘘]",file_name:"face_sina_38",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_39.png",phrase:"[委屈]",file_name:"face_sina_39",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_40.png",phrase:"[吐]",file_name:"face_sina_40",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_41.png",phrase:"[可怜]",file_name:"face_sina_41",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_42.png",phrase:"[打哈气]",file_name:"face_sina_42",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_43.png",phrase:"[挤眼]",file_name:"face_sina_43",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_44.png",phrase:"[失望]",file_name:"face_sina_44",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_45.png",phrase:"[顶]",file_name:"face_sina_45",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_46.png",phrase:"[疑问]",file_name:"face_sina_46",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_47.png",phrase:"[困]",file_name:"face_sina_47",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_48.png",phrase:"[感冒]",file_name:"face_sina_48",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_49.png",phrase:"[拜拜]",file_name:"face_sina_49",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_50.png",phrase:"[黑线]",file_name:"face_sina_50",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_51.png",phrase:"[阴险]",file_name:"face_sina_51",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_52.png",phrase:"[互粉]",file_name:"face_sina_52",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_53.png",phrase:"[心]",file_name:"face_sina_53",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_54.png",phrase:"[伤心]",file_name:"face_sina_54",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_55.png",phrase:"[猪头]",file_name:"face_sina_55",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_56.png",phrase:"[熊猫]",file_name:"face_sina_56",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_57.png",phrase:"[兔子]",file_name:"face_sina_57",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_58.png",phrase:"[握手]",file_name:"face_sina_58",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_59.png",phrase:"[作揖]",file_name:"face_sina_59",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_60.png",phrase:"[赞]",file_name:"face_sina_60",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_61.png",phrase:"[耶]",file_name:"face_sina_61",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_62.png",phrase:"[good]",file_name:"face_sina_62",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_63.png",phrase:"[弱]",file_name:"face_sina_63",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_64.png",phrase:"[不要]",file_name:"face_sina_64",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_65.png",phrase:"[ok]",file_name:"face_sina_65",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_66.png",phrase:"[haha]",file_name:"face_sina_66",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_67.png",phrase:"[来]",file_name:"face_sina_67",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_68.png",phrase:"[威武]",file_name:"face_sina_68",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_69.png",phrase:"[鲜花]",file_name:"face_sina_69",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_70.png",phrase:"[钟]",file_name:"face_sina_70",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_71.png",phrase:"[浮云]",file_name:"face_sina_71",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_72.png",phrase:"[飞机]",file_name:"face_sina_72",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_73.png",phrase:"[月亮]",file_name:"face_sina_73",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_74.png",phrase:"[太阳]",file_name:"face_sina_74",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_75.png",phrase:"[微风]",file_name:"face_sina_75",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_76.png",phrase:"[下雨]",file_name:"face_sina_76",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_77.png",phrase:"[给力]",file_name:"face_sina_77",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_78.png",phrase:"[神马]",file_name:"face_sina_78",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_79.png",phrase:"[围观]",file_name:"face_sina_79",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_80.png",phrase:"[话筒]",file_name:"face_sina_80",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_81.png",phrase:"[奥特曼]",file_name:"face_sina_81",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_82.png",phrase:"[草泥马]",file_name:"face_sina_82",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_83.png",phrase:"[萌]",file_name:"face_sina_83",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_84.png",phrase:"[囧]",file_name:"face_sina_84",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_85.png",phrase:"[织]",file_name:"face_sina_85",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_86.png",phrase:"[礼物]",file_name:"face_sina_86",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_87.png",phrase:"[喜]",file_name:"face_sina_87",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_88.png",phrase:"[围脖]",file_name:"face_sina_88",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_89.png",phrase:"[音乐]",file_name:"face_sina_89",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_90.png",phrase:"[绿丝带]",file_name:"face_sina_90",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_91.png",phrase:"[蛋糕]",file_name:"face_sina_91",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_93.png",phrase:"[干杯]",file_name:"face_sina_93",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_94.png",phrase:"[男孩儿]",file_name:"face_sina_94",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_95.png",phrase:"[女孩儿]",file_name:"face_sina_95",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_96.png",phrase:"[肥皂]",file_name:"face_sina_96",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_97.png",phrase:"[照相机]",file_name:"face_sina_97",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_98.png",phrase:"[浪]",file_name:"face_sina_98",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_99.png",phrase:"[沙尘暴]",file_name:"face_sina_99",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_100.png",phrase:"[二哈]",file_name:"face_sina_100",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_101.png",phrase:"[抱抱]",file_name:"face_sina_101",online:1},{url:"https://comment.sinaimg.cn/emoji/default/face_sina_102.png",phrase:"[摊手]",file_name:"face_sina_102",online:1}])}function p(e){for(var t,n="",a=[],i=0;i<e.length;i++)n+=i+"="+(t=e[i]).phrase+";",a.push($.template('<li action-type="face-insert" data-text="@@phrase@@" title="@@phrase@@"><img action-type="emoji-img" data-src="@@url@@" alt="@@phrase@@"></li>',t));s=n,r=a.join("")}return t=function(e){p(n=e)},$.getJsonp("https://comment.sina.com.cn/meme",{success:function(e){try{!e.result.status.code&&e.result.data.default.meme.length?t(e.result.data.default.meme):(console.log(e.result.status.msg),d(t))}catch(e){console.log(e),d(t)}}}),m.show=function(e,t,n,a,i,o){var s,r=m.iconLayer;return r&&u(),m.wrap=m.wrap||null,cmnt.config.fixFace&&(n=getPar(e,"form")),r&&m.wrap===n||(r=function(e,t,n,a){t=t||"360px";var i,o=[];for(i in n=n||{})o.push('<li><a href="javascript:void(0)" action-type="face-insert"action-data="text=['+i+']" title="'+i+'"><img src="'+a+n[i]+'.gif" alt="'+i+'" /></a></li>');var s=[];return s.push('<table class="sina-comment-layer">'),s.push('<tbody><tr> <td class="a-l-top-l"></td> <td class="a-l-top-c"></td> <td class="a-l-top-r"></td> </tr> <tr> <td class="a-l-m-l"></td> <td class="a-l-m-c"><div class="a-l-box">'),s.push('<div class="a-l-box-con" style="'+t+'">'),s.push('<div class="sina-comment-face-list clearfix">'),s.push('<div class="a-l-arrow"></div>'),s.push('<div class="a-l-close-wrap">'),s.push('<a action-type="face-close" class="a-l-close" href="javascript:;" title="关闭"></a>'),s.push("</div>"),s.push('<div class="face-list-items">'),s.push("<ul>"),s.push(o.join("")),s.push("</ul>"),s.push("</div>"),s.push("</div>"),s.push("</div>"),s.push('</div></td><td class="a-l-m-r"></td></tr><tr><td class="a-l-btm-l"></td> <td class="a-l-btm-c"></td><td class="a-l-btm-r"></td></tr></tbody></table>'),(t=$.create("div")).innerHTML=s.join(""),t.style.display="none",(e||document.body).appendChild(t),t}(n,o,l,c),m.wrap=n),n&&n!==document.body?s={top:e.offsetTop+e.offsetHeight,left:e.offsetLeft}:(s=$.getPosition(e)).top+=e.offsetHeight,$.ua.isIE&&(s.left+=-10),isNaN(a)||(s.left+=a),isNaN(i)||(s.top+=+i),r.style.cssText="left:"+s.left+"px;top:"+s.top+'px;position:absolute;z-index:1700;display:"";zoom:1;',r.className="sina-comment-layer-wrap",m.iconLayer=r,m.iniTarget=e,m.srcInput=t,m.iconText=null,m.isShow=!0,$.addClass(e,"trigger-active"),$.addEvent(document.body,"click",u,!1),m.iconLayer},m.show_menu=function(e){var t,n,a,i;if(!$.hasClass(e,"trigger-active"))return(t=m.iconLayer)||(t=m.iconLayer=((n=document.createElement("ul")).className="emoji-list clearfix",n.setAttribute("action-type","emoji-list"),n.innerHTML=r.replace(/data-src/g,"src"),(a=document.createElement("a")).className="emoji-panel-close",a.href="javascript:;",a.setAttribute("action-type","face-close"),(i=document.createElement("div")).className="emoji-panel",i.setAttribute("action-type","emoji-panel"),i.setAttribute("data-sudaclick","comment_emoticons_i"),i.appendChild(a),i.appendChild(n),i),$.addEvent(document.body,"click",function(e){e=e.target.getAttribute("action-type");e&&e.match(/(?:emoji-panel)|(?:emoji-list)|(?:face-insert)|(?:emoji-img)|(?:face-toggle)/g)||m.hide_menu()})),e!==o&&(o&&(o.parentNode.removeChild(t),$.removeClass(o,"trigger-active")),e.parentNode.appendChild(t),o=e),$.addClass(e,"trigger-active"),t.style.display="block",m.iniTarget=e,m.srcInput=function e(t){t=t.parentNode;return t&&"form"===t.getAttribute("comment-type")?t.getElementsByTagName("textarea")[0]:e(t)}(e),m.iconText=null,m.isShow=!0,m.iconLayer},m.hide_menu=function(){if(o){if(!$.hasClass(o,"trigger-active"))return;$.removeClass(o,"trigger-active")}var e=m.iconLayer;return e&&(e.style.display="none"),e},m.hide=function(){var e=m.iconLayer;return e&&(e.style.display="none"),m.iniTarget&&$.removeClass(m.iniTarget,"trigger-active"),$.removeEvent(document.body,"click",u),m.isShow=!1,e},m.getFace=function(){return m.iconText},m.insert=function(s,r){var c=m.srcInput;s&&c&&(c.focus(),setTimeout(function(){var e,t,n,a,i,o=c.getAttribute("range");null==o?(e=c,t=s,$.ua.isIE?((a=e.createTextRange()).collapse(!0),e.caretPos?((n=e.caretPos).text=" "==n.text.charAt(n.text.length-1)?t+" ":t,a.moveStart("character",e.value.indexOf(t)+1),a.moveEnd("character",t.length-2)):(n=doc.selection.createRange(),doc.selection.empty(),n.text=t)):e.setSelectionRange?(a=e.selectionStart,n=e.selectionEnd,a=e.value.substring(0,a),n=e.value.substring(n),i=(a=a+t).length,e.value=a+n,e.setSelectionRange(i,i)):e.value+=t):(a=o.split("&"),$.app.textareaUtils.unCoverInsertText(c,s,{rcs:a[0],rccl:a[1]}),n=$.app.textareaUtils.getCursorPos(c,s),c.setAttribute("range",n+"&0")),r&&r()},10))},m.set=function(e,t,n){"all"===e?(c=t,l=n):(a=t,i=n)},m.get=function(e){return"all"===e?{faces:l,base:c}:{faces:i,base:a}},m.filter=function(e){return e=(e=e||"").replace(/\[[^\[\]]+\]/g,function(e){t=(t=e).replace("[","\\[").replace("]","\\]");var t=(t=new RegExp("(\\d+)="+t+";","g").exec(s))?n[t[1]].url:null;return t?'<img class="txt-emoji" title="'+e+'" alt="'+e+'" src="'+t+'" />':e})},m}(),cmnt.commentTip=function(){function i(){var e=$.create("div");return e.className="sina-comment-tip",t.appendChild(e),e}var t=document.body,o={timeout:null,transition:null};return o.show=function(e,t,n,a){a=a||0,o.dom=o.dom||i(),o.dom.style.display="block",o.timeout&&clearTimeout(o.timeout),o.dom.innerHTML='<div class="inner '+t+'"><i></i><div class="txt">'+n+"</div></div>",o.dom.style.marginLeft=-o.dom.offsetWidth/2+"px",a&&(o.timeout=setTimeout(function(){o.hide()},a)),$.addClass(o.dom,"show")},o.hide=function(){o.dom=o.dom||i(),o.timeout&&clearTimeout(o.timeout),$.removeClass(o.dom,"show"),o.transition?(clearTimeout(o.transition),o.dom.style.display="none"):o.transition=setTimeout(function(){o.dom.style.display="none"},300)},o}(),cmnt.truncate=function(){function n(e,t,n,a){var i=document.createElement("a");i.href="javascript:;",i.className=n,i.setAttribute("action-type","txt-toggle"),i.setAttribute("action-data","type="+a),i.innerHTML=t,e.appendChild(i)}var a=!1,i=function(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},m=function(e,t){return(3===e.nodeType?function(e,t){var n=o(e.data);if(a)n=n.replace(/^ /,"");return a=!!n.match(/ $/),n=n.slice(0,t),i(n)}:function(e,t){var n=e.cloneNode(true);if(n.setAttribute("comment-type",""),n.className+=" truncated",n.innerHTML)n.innerHTML="";for(var a,i,o=(document.createDocumentFragment().innerHTML="",e.childNodes),s=0,r=o.length;s<r;s++){var c=o[s];var l=t-u(n).length;if(l===0)return n;i=m(c,l);if(i){if(typeof i==="string")i=document.createTextNode(i);n.appendChild(i)}}return n})(e,t)},u=function(e){if(e.innerText)return e.innerText;var t="";e=e.childNodes||e;for(var n=0;n<e.length;n++)t+=1!==e[n].nodeType?e[n].nodeValue:u(e[n].childNodes);return t},o=function(e){return e.replace(/\s+/g," ")};return{handle:function(e,t){o(u(e)).replace(/(^[\s\u3000]*)|([\s\u3000]*$)/g,"").length<=t||e.__truncated__||(e.__truncated__=!0,t=t-5,t=Math.max(t,0),t=m(e,t),$.addClass(e,"txt-fullText"),e.style.display="none",$.insertAfter(t,e),n(e,"收起全部","txt-less txt-toggle","less"),n(t,"...展开全部","txt-more txt-toggle","more"))},toggle:function(e,t){e=$.byClass("txt",e.parentNode.parentNode);"more"===t?(e[1].style.display="none",e[0].style.display=""):(e[1].style.display="",e[0].style.display="none")}}}(),cmnt.vote=function(e){e=$.extend({channel:"",newsid:"",parent:"",vote:1,callback:function(e){},domain:"sina.com.cn"},e);$.ijax.request("//comment.sina.com.cn/cmnt/vote",{POST:e})},cmnt.voteTip=function(){function i(){var e=$.create("div");return e.className="sina-comment-vote-tip",e.style.display="none",e.style.position="absolute",$.byTag("body")[0].appendChild(e),e}function o(e,t,n){var a=$.getOuterStyle(e,"width"),e=$.getOuterStyle(e,"height"),a=parseFloat(a);return a=isNaN(a)?t:a,e=parseFloat(e),{width:a,height:isNaN(e)?n:e}}var s={timeout:null,animate:null};return s.show=function(e,t){s.dom||(s.dom=i()),clearTimeout(s.timeout),s.animate&&s.animate.pause();var n=$.getPosition(e),a=o(s.dom,100,30),e=o(e,100,40);$.setStyle(s.dom,{top:n.top+"px",left:n.left+e.width/2-a.width/2+"px",opacity:0,display:"block"}),(t=t||0)&&(s.timeout=setTimeout(function(){s.hide()},t)),$.animate(s.dom,{top:n.top-35+"px",opacity:1},200,"Tween.Quad.easeIn",{start:function(e){},complete:function(e){}})},s.hide=function(){s.dom||(s.dom=i()),clearTimeout(s.timeout),s.animate&&s.animate.pause(),$.animate(s.dom,{opacity:0},200,"Tween.Quad.easeOut",{start:function(e){},complete:function(e){$.setStyle(s.dom,{left:"-9999px",opacity:0,display:"none"})}})},s}(),cmnt.shareTip=function(){var encode=encodeURIComponent,getShareName=function(e){var t=typeof(t=e).config!=UNDEFINED&&(t=t.config.match(/wb_screen_name=([^&]*)/i))?t[1]:"",n="",a=e.nick,e=e.usertype;return t?n="@"+t:"wap"==e?(n="新浪手机用户","手机用户"!=a&&(n+=a)):(n="新浪网友",a&&(n+=a)),n},getShareContent=function(e,t,n){t={title:e=e.replace(/<.*?>/gi,""),name:t,content:n},n=$.cmnt.tpls.get("share");return e=appTemplate(n,t),encode(e)},getUrlData=function(data,newWin){var site=data.site,mid=data.mid,sinaAppkey=data.sinaAppkey||"",tencentAppkey=data.tencentAppkey||"",curCmntlist=cmnt.data.get(data.allNewsid,"cmntlist",mid),content=curCmntlist.content,newsid=curCmntlist.newsid,channel=curCmntlist.channel,img="",setWinUrl=function(){var e=location.href,t=getShareName(curCmntlist),n=typeof(n=cmnt.data.get(data.allNewsid,"newsdict",newsid))==UNDEFINED&&curCmntlist.news_info?curCmntlist.news_info:n,e=n.url||e,n=getShareContent(n.title||"",t,content),t={sina:{base:"//v.t.sina.com.cn/share/share.php?",param:["url=",encode(e),"&title=",n,"&source=",encode("新浪新闻评论"),"&sourceUrl=",encode("http://news.sina.com.cn/hotnews/"),"&content=","gb2312","&pic=",encode(img),"&appkey=",sinaAppkey||"445563689"].join("")},tencent:{base:"//share.v.t.qq.com/index.php?",param:["c=","share","&a=","index","&url=",encode(e),"&title=",n,"&content=","gb2312","&pic=",encode(img),"&appkey=",tencentAppkey||"dcba10cb2d574a48a16f24c9b6af610c","&assname=","${RALATEUID}"].join("")}};newWin&&(newWin.location.href=[t[site].base,t[site].param].join(""))},getImgSrc=function(o){var cbName="iJax"+Date.parse(new Date),url="//comment.sina.com.cn/image";try{doc.domain="sina.com.cn"}catch(e){}window[cbName]=function(m){"string"==typeof m&&(m=eval("("+m+")"));var cmntImg=m.result.image||"";img=img?img+"||"+cmntImg:cmntImg,/Firefox/.test(navigator.userAgent)?setTimeout(function(){setWinUrl()},30):setWinUrl()};var param="",param,Sender;$.ua.isFF?(param="channel="+channel+"&newsid="+newsid+"&mid="+mid+"&version=1",Sender=new $.html5Ijax({proxyUrl:"//comment5.news.sina.com.cn/comment/postmsg.html"}),Sender.send({url:url,data:param,onsuccess:window[cbName],onfailure:function(){}})):(param={channel:channel,newsid:newsid,mid:mid,version:"1",format:"js",callback:cbName},$.ijax.request(url,{POST:param}))},maxCmntLen=80;(data.hasReply||$.byteLength(content)>2*maxCmntLen?(content=$.strLeft(content,2*maxCmntLen),getImgSrc):setWinUrl)()},Tip={timeout:null,animate:null,trigger:null},getTip=function(e){e=$.jsonToQuery(e);Tip.dom||(Tip.dom=$.create("div"),Tip.dom.className="sina-comment-share",Tip.dom.style.display="none",Tip.dom.style.position="absolute",$.byTag("body")[0].appendChild(Tip.dom),$.addEvent(Tip.dom,"mouseover",function(){clearTimeout(Tip.timeout)}),$.addEvent(Tip.dom,"mouseout",function(){Tip.hide(2e3)}),$.delegatedEvent(Tip.dom).add("share","click",function(e){var e=e.data,t=window.open("","mb",["toolbar=0,status=0,resizable=1,width=440,height=430,left=",(screen.width-440)/2,",top=",(screen.height-430)/2].join(""));getUrlData(e,t)})),Tip.dom.innerHTML='<a title="'+getMsg("I020")+'" class="sina-comment-share-sina" href="javascript:;" action-type="share" action-data="'+e+'&site=sina">新浪</a><a title="'+getMsg("I021")+'" class="sina-comment-share-qq" href="javascript:;" action-type="share" action-data="'+e+'&site=tencent">腾讯</a>'},hide=function(e){clearTimeout(Tip.timeout),Tip.animate&&Tip.animate.pause(),(e=e||0)&&(Tip.timeout=setTimeout(function(){$.animate(Tip.dom,{opacity:0},200,"Tween.Quad.easeOut",{start:function(e){},complete:function(e){$.setStyle(Tip.dom,{left:"-9999px",opacity:0,display:"none"}),$.removeClass(Tip.trigger,"share-active"),Tip.trigger=null}})},e))},getWH=function(e,t,n){var a=$.getOuterStyle(e,"width"),e=$.getOuterStyle(e,"height"),a=parseFloat(a);return a=isNaN(a)?t:a,e=parseFloat(e),{width:a,height:isNaN(e)?n:e}},show=function(e,t,n){var a,i;Tip.trigger!=e&&(getTip(t),clearTimeout(Tip.timeout),Tip.animate&&Tip.animate.pause(),t=$.getPosition(e),a=getWH(Tip.dom,100,30),i=getWH(e,100,40),$.removeClass(Tip.trigger,"share-active"),Tip.trigger=e,$.setStyle(Tip.dom,{top:t.top+"px",left:t.left+i.width/2-a.width/2+"px",opacity:0,display:"block"}),Tip.hide(n),$.animate(Tip.dom,{top:t.top-37+"px",opacity:1},200,"Tween.Quad.easeIn",{start:function(e){$.addClass(Tip.trigger,"share-active")},complete:function(e){}}))};return Tip.show=show,Tip.hide=hide,Tip}(),cmnt.comment=function(e,t,n){var a=cmnt.config.comment,e=$.extend({channel:"",newsid:"",parent:"",content:"",format:"json",ie:cmnt.config.encoding||"utf-8",oe:cmnt.config.encoding||"utf-8",ispost:0,share_url:location.href.split("#")[0],video_url:"",img_url:"",iframe:1},e);$.extend(e,a),"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0.3) Gecko/20100101 Firefox/10.0.3"!=navigator.userAgent?jQuery.ajax({url:"//comment5.news.sina.com.cn/cmnt/submit",crossDomain:!0,data:e,type:"post",xhrFields:{withCredentials:!0},success:function(e){e=e&&JSON.parse(e),t(e)},error:function(){n()}}):uaTrack("cmntWarning","abnormal_FF1003")},cmnt.formateTime=function(e,t){var n=getMsg("I022"),a=getMsg("I023"),i=getMsg("I024"),o=getMsg("I025"),s=getMsg("I026"),r=e.getFullYear(),c=t.getFullYear(),l=e.getMonth()+1,m=t.getMonth()+1,u=e.getDate(),d=t.getDate(),p=e.getHours(),f=t.getHours(),h=(f<10&&(f="0"+f),t.getMinutes());h<10&&(h="0"+h);e=0<(e=e-t)?e:0;return e/=1e3,r!=c?c+"-"+m+"-"+d+" "+f+":"+h:l!=m||u!=d?m+n+d+a+f+":"+h:p!=f&&3600<e?i+f+":"+h:e<51?(e=e<1?1:e,Math.floor((e-1)/10)+1+"0"+o):Math.floor(e/60+1)+s},cmnt.updateTime=function(){var c=cmnt.formateTime,l=0;return function(t){var n,a=function(e){clearTimeout(n),n=setTimeout(function(){!function(e){var t,n=$.byAttr(e,"comment-type","time"),a=new Date;a.setTime(a.getTime()-l);for(var i=0;i<n.length;i++){var o,s=n[i],r=s.getAttribute("date");/^\s*\d+\s*$/.test(r)&&((o=new Date).setTime(parseInt(r,10)),s.innerHTML=c(a,o),t===undefined)&&(t=a.getTime()-o.getTime()<6e4)}return t}(t)?a(6e4):a(1e3)},e)},e=(a(1e3),{destroy:function(){clearTimeout(n),e=t=n=a=null}});return e}}(),cmnt.getTimeStr=function(){var o=cmnt.formateTime;return function(e,t){t=t||"time";var n,a="刚刚",i="";return e?(n=new Date,e=e.replace(/-/g,"/"),i=Date.parse(e),n.setTime(parseInt(i,10)),(e=new Date).setTime(e.getTime()),a=o(e,n)):i=Date.parse(new Date),'<span class="'+t+'" comment-type="time" date="'+i+'">'+a+"</span>"}}(),cmnt.tpls=function(){function e(e){return"<% this."+e+" %>"}function n(){return{formList:'<div class="sina-comment-form sina-comment-top"'+o+'"form"></div><div class="sina-comment-list"'+o+'"list"></div>',list:["<div"+i+'"hot-wrap"'+o+'"hotWrap">',"<div"+i+'"title"><span'+i+'"name">'+getMsg("I015")+"</span> <a"+a+'"reflash"'+t+'"type=hot"'+i+'"reflash" href="javascript:;"'+o+'"hotReflash" data-sudaclick="comment_refresh_i" style="display:none;">'+getMsg("I017")+"</a> </div>","<div"+i+'"hot-loading loading"><a href="javascript:;"></a></div>',"<div"+i+'"list"'+o+'"hotList"></div>',"</div>","<div"+i+'"latest-wrap"'+o+'"latestWrap">',"<div"+i+'"title"><span'+i+'"name">'+getMsg("I016")+"</span> <a"+a+'"reflash"'+t+'"type=latest"'+i+'"reflash" href="javascript:;"'+o+'"latestReflash" data-sudaclick="comment_refresh_i" style="display:none;">'+getMsg("I017")+"</a> </div>","<div"+i+'"latest-loading loading"><a href="javascript:;"></a></div>',"<div"+i+'"list"'+o+'"latestList"></div>',"<div"+a+'"getMore"'+t+'"type=latest" '+o+'"latestMore" class="list-ft"><a href="javascript:;" class="more" data-sudaclick="comment_allcomment_p">'+getMsg("I014")+"</a></div>","</div>","<div"+i+'"all-loading loading"><a href="javascript:;" data-sudaclick="comment_allcomment_p"></a></div>'].join(""),cont:["\x3c!-- 头像 start --\x3e","<div"+i+'"head">'+e("userFace")+"</div>","\x3c!-- 头像 end --\x3e","\x3c!-- 内容 start --\x3e","<div"+i+'"cont"'+o+'"itemCont">',"<div"+i+'"info">',"<span"+i+'"name '+e("userIco")+'">',e("userLnk"),"</span>","<span"+i+'"area">'+e("area")+"</span>",e("newsLnk"),"</div>","<div"+i+'"txt" comment-type="itemTxt">',e("contWithReply"),"</div>","<div"+i+'"action">',e("time"),"<% if(this.mid) {%>",'<a class="report" href="https://comment5.news.sina.com.cn/comment/skin/feedback_jb.html?mid='+e("mid")+'" target="_blank" data-sudaclick="comment_report_i">'+getMsg("I043")+"</a>","<span"+i+'"btns">',"<% if(this.hasReply) {%>","<a"+i+'"show"'+a+'"dialogShow"'+t+'"channel='+e("channel")+"&allNewsid="+e("allNewsid")+"&newsid="+e("newsid")+"&mid="+e("mid")+"&uid="+e("uid")+"&nick="+e("nick")+"&parent="+e("parent")+"&thread="+e("thread")+"&userLnk="+e("oUserLnk")+"&cont="+e("oCont")+'" href="javascript:;" hidefocus >'+getMsg("I034")+"</a>","<% }%>","<% if(this.isAgreed) {%>","<a"+i+'"vote vote-active" title="'+getMsg("I008d")+'"'+a+'"vote"'+t+'"channel='+e("channel")+"&newsid="+e("newsid")+"&mid="+e("mid")+'" href="javascript:;" data-sudaclick="comment_like_i" voted="true"><span>'+getMsg("I008d"),"<% }else{ %>","<a"+i+'"vote" title="'+getMsg("I008")+'"'+a+'"vote"'+t+'"channel='+e("channel")+"&newsid="+e("newsid")+"&mid="+e("mid")+'" href="javascript:;" data-sudaclick="comment_like_i"><span>'+getMsg("I008"),"<%}%>","<% if(parseInt(this.agree)) {%>","<em "+o+'"voteNum">'+e("agree")+"</em>","<% }else{ %>","<em "+o+'"voteNum"></em>',"<%}%>","</span>","</a>","<a"+i+'"reply"'+a+'"reply"'+t+'"channel='+e("channel")+"&allNewsid="+e("allNewsid")+"&newsid="+e("newsid")+"&mid="+e("mid")+"&uid="+e("uid")+"&nick="+e("nick")+"&parent="+e("parent")+"&thread="+e("thread")+"&userLnk="+e("oUserLnk")+"&cont="+e("oCont")+'" href="javascript:;" hidefocus data-sudaclick="comment_reply_i">'+getMsg("I009")+"</a>","</span>","<%}%>","</div>","</div>","\x3c!-- 内容 end --\x3e"].join(""),contWithUserFrom:["\x3c!-- 头像 start --\x3e","<div"+i+'"head">'+e("userFace")+"</div>","\x3c!-- 头像 end --\x3e","\x3c!-- 内容 start --\x3e","<div"+i+'"cont"'+o+'"itemCont">',"<div"+i+'"info">',"<span"+i+'"name '+e("userIco")+'">',e("userLnk"),"</span>","<span"+i+'"area">'+e("area")+"</span>",e("userFrom"),e("newsLnk"),"</div>","<div"+i+'"txt" comment-type="itemTxt">',e("contWithReply"),"</div>","<div"+i+'"action">',e("time"),"<% if(this.mid) {%>",'<a class="report" href="https://comment5.news.sina.com.cn/comment/skin/feedback_jb.html?mid='+e("mid")+'" target="_blank" data-sudaclick="comment_report_i">'+getMsg("I043")+"</a>","<span"+i+'"btns">',"<% if(this.hasReply) {%>","<a"+i+'"show"'+a+'"dialogShow"'+t+'"channel='+e("channel")+"&allNewsid="+e("allNewsid")+"&newsid="+e("newsid")+"&mid="+e("mid")+"&uid="+e("uid")+"&nick="+e("nick")+"&parent="+e("parent")+"&thread="+e("thread")+"&userLnk="+e("oUserLnk")+"&cont="+e("oCont")+'" href="javascript:;" hidefocus >'+getMsg("I034")+"</a>","<% }%>","<% if(this.isAgreed) {%>","<a"+i+'"vote vote-active" title="'+getMsg("I008d")+'"'+a+'"vote"'+t+'"channel='+e("channel")+"&newsid="+e("newsid")+"&mid="+e("mid")+'" href="javascript:;" data-sudaclick="comment_like_i" voted="true"><span>'+getMsg("I008d"),"<% }else{ %>","<a"+i+'"vote" title="'+getMsg("I008")+'"'+a+'"vote"'+t+'"channel='+e("channel")+"&newsid="+e("newsid")+"&mid="+e("mid")+'" href="javascript:;" data-sudaclick="comment_like_i"><span>'+getMsg("I008"),"<%}%>","<% if(parseInt(this.agree)) {%>","<em "+o+'"voteNum">'+e("agree")+"</em>","<% }else{ %>","<em "+o+'"voteNum"></em>',"<%}%>","</span>","</a>","<a"+i+'"reply"'+a+'"reply"'+t+'"channel='+e("channel")+"&allNewsid="+e("allNewsid")+"&newsid="+e("newsid")+"&mid="+e("mid")+"&uid="+e("uid")+"&nick="+e("nick")+"&parent="+e("parent")+"&thread="+e("thread")+"&userLnk="+e("oUserLnk")+"&cont="+e("oCont")+'" href="javascript:;" hidefocus data-sudaclick="comment_reply_i">'+getMsg("I009")+"</a>","</span>","<%}%>","</div>","</div>","\x3c!-- 内容 end --\x3e"].join(""),floor:["\x3c!-- 头像 start --\x3e","<div"+i+'"head">'+e("userFace")+"</div>","\x3c!-- 头像 end --\x3e","\x3c!-- 内容 start --\x3e","<div"+i+'"cont"'+o+'"itemCont">',"<div"+i+'"info">',"<span"+i+'"num">'+e("floor")+"</span>","<span"+i+'"name '+e("icoClz")+'">'+e("userLnk")+"</span>","<span"+i+'"area">'+e("area")+"</span>","</div>","<div"+i+'"txt">'+e("cont")+"</div>","<div"+i+'"action">'+e("time")+"<span"+i+'"btns">',"<a"+i+'"vote" title="'+getMsg("I008")+'"'+a+'"vote"'+t+'"channel='+e("channel")+"&newsid="+e("newsid")+"&mid="+e("mid")+'" href="javascript:;">',"<span>",getMsg("I008"),"<% if(parseInt(this.agree)) {%>","<em "+o+'"voteNum">'+e("agree")+"</em>","<% }else{ %>","<em "+o+'"voteNum"></em>',"<%}%>","</span>","</a>","<a"+i+'"reply"'+a+'"reply"'+t+'"channel='+e("channel")+"&allNewsid="+e("allNewsid")+"&newsid="+e("newsid")+"&mid="+e("mid")+'" href="javascript:;" hidefocus>回复</a>',"</span>","</div>","</div>"].join(""),dialogItem:["\x3c!-- 内容 start --\x3e","<div"+i+'"cont"'+o+'"itemCont">',"<div"+i+'"txt"><span'+i+'"name '+e("icoClz")+'">'+e("userLnk")+"</span>"+e("lastUserLnk")+e("cont")+"</div>","<div"+i+'"action">'+e("time"),"<% if(this.mid) {%>",'<a class="report" href="https://comment5.news.sina.com.cn/comment/skin/feedback_jb.html?mid='+e("mid")+'" target="_blank" data-sudaclick="comment_report_i">'+getMsg("I043")+"</a>","<span"+i+'"btns">',"<% if(this.isAgreed) {%>","<a"+i+'"vote vote-active" title="'+getMsg("I008d")+'"'+a+'"vote"'+t+'"channel='+e("channel")+"&newsid="+e("newsid")+"&nick="+e("nick")+"&uid="+e("uid")+"&mid="+e("mid")+"&parent="+e("parent")+"&thread="+e("thread")+"&floor="+e("floor")+'" href="javascript:;" data-sudaclick="comment_like_i" voted="true"><span>'+getMsg("I008d"),"<% }else{ %>","<a"+i+'"vote" title="'+getMsg("I008")+'"'+a+'"vote"'+t+'"channel='+e("channel")+"&newsid="+e("newsid")+"&nick="+e("nick")+"&uid="+e("uid")+"&mid="+e("mid")+"&parent="+e("parent")+"&thread="+e("thread")+"&floor="+e("floor")+'" href="javascript:;" data-sudaclick="comment_like_i"><span>'+getMsg("I008"),"<%}%>","<% if(parseInt(this.agree)) {%>","<em "+o+'"voteNum">'+e("agree")+"</em>","<% }else{ %>","<em "+o+'"voteNum"></em>',"<%}%>","</span>","</a>","<a"+i+'"reply"'+a+'"reply"'+t+'"channel='+e("channel")+"&allNewsid="+e("allNewsid")+"&newsid="+e("newsid")+"&mid="+e("mid")+"&uid="+e("uid")+"&nick="+e("nick")+"&parent="+e("parent")+"&thread="+e("thread")+"&pos=dialog&floor="+e("floor")+'" href="javascript:;" hidefocus data-sudaclick="comment_reply_i">回复</a>',"</span>","<%}%>","</div>","</div>"].join(""),comment:["<div "+i+'"hd clearfix">',"<span"+o+'"count" href="#url"'+i+'"count"></span>',"<span"+i+'"wrap-title">'+getMsg("I038")+"</span>","</div>","<div"+i+'"bd">',"<div"+i+'"editor">',"<div"+i+'"inner">',"<textarea"+o+'"cont"'+i+'"box" autocomplete="off" placeholder="'+e("postTip")+'" value="'+e("content")+'" action-type="cmnt-box">'+e("content")+"</textarea>","</div>","</div>","\x3c!-- 用户头像 start --\x3e","<div"+i+'"head user-head" comment-type="head">',e("face"),"</div>","<div"+i+'"head user-head-default">','<a href="https://weibo.com/" target="_blank"><img src="//img.t.sinajs.cn/t5/style/images/face/male_180.png"></a>',"</div>","\x3c!-- 用户头像 end --\x3e","</div>","<div"+i+'"ft clearfix">',"<div"+i+'"face">','<a href="javascript:;"'+i+'"trigger"'+a+'"face-toggle" data-sudaclick="comment_emoticons_i">表情</a>',"</div>","<div"+i+'"right-actions clearfix">',"\x3c!-- 登录与注册 start --\x3e","<div"+i+'"login">',"<a"+a+'"login"'+i+'"login-lnk" href="javascript:;" title="'+getMsg("I029")+'" data-sudaclick="comment_login_i">'+getMsg("I029")+'</a><span class="sep">|</span><a'+i+'"register-lnk" target="_blank" href="https://login.sina.com.cn/signup/signup.php" data-sudaclick="comment_registered_i">'+getMsg("I012")+"</a>","</div>","\x3c!-- 登录与注册前 end --\x3e","<div"+i+'"login-info clearfix">',"<span"+i+'"name"'+o+'"name">',e("name"),"</span>",'<span class="sep">|</span>',"<a"+o+'"logout"'+i+'"logout" href="javascript:;" data-sudaclick="comment_signout_i" title="'+getMsg("I030")+'">'+getMsg("I030")+"</a>","</div>","<div"+o+'"weibo"'+i+'"weibo sina-comment-chkbox"'+a+'"checkbox-toggle"> <i></i>',"<span>"+getMsg("I018")+"</span>","</div>","\x3c!-- 发布 start --\x3e","<a"+o+'"submit" '+a+'"tip-toggle"'+i+'"comment btn btn-disabled" href="javascript:;" target="_self" data-sudaclick="comment_submit_i">'+getMsg("I007")+"</a>","\x3c!-- 发布 end --\x3e","</div>","</div>"].join(""),reply:["<div"+i+'"sina-comment-form reply-form"'+o+'"form">','<div class="hd"'+o+'"hd"></div>','<div class="bd">',"<div"+i+'"editor">',"<div"+i+'"inner">',"<textarea"+o+'"cont"'+i+'"box" autocomplete="off" placeholder="'+e("postTip")+'" value="'+e("content")+'" action-type="cmnt-box">'+e("content")+"</textarea>","<span"+i+'"arrow"></span>',"</div>","</div>","</div>","<div"+i+'"ft clearfix">',"<div"+i+'"face">','<a href="javascript:;"'+i+'"trigger"'+a+'"face-toggle" data-sudaclick="comment_emoticons_i">表情</a>',"</div>","<div"+i+'"right-actions clearfix">',"\x3c!-- 登录与注册 start --\x3e","<div"+i+'"login">',"<a"+a+'"login"'+i+'"login-lnk" href="javascript:;" data-sudaclick="comment_login_i" title="'+getMsg("I029")+'">'+getMsg("I029")+'</a><span class="sep">|</span><a'+i+'"register-lnk" target="_blank" href="https://login.sina.com.cn/signup/signup.php" data-sudaclick="comment_registered_i">'+getMsg("I012")+"</a>","</div>","\x3c!-- 登录与注册 end --\x3e","<div"+o+'"weibo"'+i+'"weibo sina-comment-chkbox"'+a+'"checkbox-toggle"> <i></i>',"<span>"+getMsg("I018")+"</span>","</div>","<a"+o+'"submit" '+a+'"tip-toggle"'+i+'"comment btn btn-disabled" href="javascript:;" target="_self" data-sudaclick="comment_submit_i">'+getMsg("I007")+"</a>","</div>","</div>","</div>"].join(""),share:"#精彩评论#【"+e("title")+"】"+e("name")+":"+e("content"),popup:['<div class="sina-comment-popup sina-comment-popup-'+e("skin")+'" style="display:none;">',"<% if(this.head) {%>",'<div class="popup-hd">'+e("head")+"</div>","<%}%>",'<div class="popup-bd">'+e("body")+"</div>",'<div class="popup-ft">','<% if(this.type === "confirm") {%>','<span class="popup-btn btn-action" popup-type="action">'+e("actionText")+"</span>","<%}%>",'<span class="popup-btn btn-cancel" popup-type="cancel">'+e("cancelText")+"</span>","</div></div>"].join("")}}var t=" action-data=",a=" action-type=",i=" class=",o=" comment-type=",s=null;return{set:function(e,t){(s=s||n())[e]=t},get:function(e){return s=s||n(),typeof e==UNDEFINED?s:s[e]}}}(),cmnt.popup=function(){function o(t,n,a){function e(e){if(e=((e=e||window.event).target||e.srcElement).getAttribute("popup-type"))switch(t.style.display="none",t.parentNode.removeChild(t),e){case"action":"function"==typeof n&&n();break;case"cancel":"function"==typeof a&&a()}}"addEventListener"in t?t.addEventListener("click",e,!1):"attachEvent"in t&&t.attachEvent("onclick",e)}var s=cmnt.tpls.get("popup"),t=document.getElementsByTagName("body")[0];return function(e){var a,i=$.extend({skin:"error",type:"confirm",head:null,body:"",actionText:"确定",cancelText:"取消",parentNode:t,onAction:function(){},onCancel:function(){}},e);return{show:function(){var e,t,n;a||((a=document.createElement("div")).innerHTML=appTemplate(s,i),a=a.firstElementChild,i.parentNode.appendChild(a),o(a,i.onAction,i.onCancel)),a.style.display="block",e=a,t=i.parentNode,"absolute"!==(n=$.getStyle(t,"position"))&&"relative"!==n&&(t.style.position="relative"),e.style.marginLeft=-e.offsetWidth/2+"px",a.style.opacity="1"},hide:function(){a&&(a.style.opacity="0",a.style.display="none")}}}}(),cmnt.popupQR=function(){function o(t,n,a){function e(e){if(e=((e=e||window.event).target||e.srcElement).getAttribute("popup-type"))switch(t.style.display="none",t.parentNode.removeChild(t),e){case"action":"function"==typeof n&&n();break;case"cancel":"function"==typeof a&&a()}}"addEventListener"in t?t.addEventListener("click",e,!1):"attachEvent"in t&&t.attachEvent("onclick",e)}var s=cmnt.tpls.get("popupQR"),t=document.getElementsByTagName("body")[0];return function(e){var a,i=$.extend({skin:"error",type:"confirm",head:null,body:"",actionText:"确定",cancelText:"取消",parentNode:t,onAction:function(){},onCancel:function(){}},e);return{show:function(){var e,t,n;a||((a=document.createElement("div")).innerHTML=appTemplate(s,i),a=a.firstElementChild,i.parentNode.appendChild(a),o(a,i.onAction,i.onCancel)),a.style.display="block",e=a,t=i.parentNode,"absolute"!==(n=$.getStyle(t,"position"))&&"relative"!==n&&(t.style.position="relative"),e.style.marginLeft=-e.offsetWidth/2+"px",a.style.opacity="1"},hide:function(){a&&(a.style.opacity="0",a.style.display="none")}}}}(),cmnt.getWBName=function(e){return typeof e.config!=UNDEFINED&&(e=e.config.match(/wb_screen_name=([^&]*)/i))?e[1]:""},cmnt.getWBV=function(e){var t,n;return typeof e.config==UNDEFINED?"":(t="",n=(e=$.queryToJson(e.config)).wb_verified,e=e.wb_verified_type,typeof n!=UNDEFINED&&"1"==n?"0"==e?"y":"b":t)},cmnt.getUserLnk=function(e,t,n){t=t||"",n=n||"";var a="",i=cmnt.getWBV(e),o="新浪个人认证",i=(i&&(a='<img src="//www.sinaimg.cn/dy/deco/2013/0608/v'+i+'.png" title="'+(o="b"===i?"新浪机构认证":o)+'" style="vertical-align: middle;" />'),cmnt.getWBName(e));return'<span class="sina-comment-user-lnk-wrap">'+(i?'<a target="_blank" href="https://weibo.com/u/'+e.uid+'" title="'+i+'" data-sudaclick="comment_usernickname_p">'+t+i+a+n+"</a>":e.uid&&e.uid+""!="0"?'<a target="_blank" href="https://comment5.news.sina.com.cn/comment/skin/default.html?info_type=1&style=1&user_uid='+e.uid+'" title="'+e.nick+'" data-sudaclick="comment_usernickname_p">'+t+e.nick+n+"</a>":t+e.nick+n)+"</span>"},cmnt.getUserFace=function(e){var t=e.config||"",t=(t=$.queryToJson(t,!0).wb_profile_img||"//www.sinaimg.cn/dy/deco/2012/1018/sina_comment_defaultface.png").replace(/^http[s]?\:(?=\/\/)/,""),n=cmnt.getWBName(e);return n&&e.nick?'<a href="https://weibo.com/u/'+e.uid+'" title="'+n+'" target="_blank" data-sudaclick="comment_useravatar_p"><img src="'+(e.profile_img||t)+'"/></a>':e.uid&&"0"!=e.uid?(t="//portrait5.sinaimg.cn/"+e.uid+"/blog/50",'<a target="_blank" href="https://comment5.news.sina.com.cn/comment/skin/default.html?info_type=1&style=1&user_uid='+e.uid+'" title="'+e.nick+'" data-sudaclick="comment_useravatar_p"><img src="'+(e.profile_img||t)+'"/></a>'):'<img src="'+(e.profile_img||t)+'"/>'},cmnt.getUserIco=function(e){var t={wap:"name-mobile",wb:"name-weibo"},n=t[e.usertype];return n=(n=n||"")||(cmnt.getWBName(e)?t.wb:"")},cmnt.getUserFromType=function(e){var t="",e={financeapp:{txt:"新浪财经APP",url:"//finance.sina.com.cn/mobile/comfinanceweb.shtml"}}[e.usertype];return t=e?'<span class="user-from"><a class="user-from-link" href="'+e.url+'" target="_blank" data-sudaclick="sf_cjapp_userid_p">来自'+e.txt+"</a></span>":t},cmnt.getUserAgreed=function(e){var t="",n=$.login.getInfo(),n=n.sina?n.sina.uid:"unlogin_user",n=$.messageStorage.get(n)?$.messageStorage.get(n):"";return t="1"==e.is_agree||-1<n.indexOf(e.mid)?!0:t},cmnt.setVotedMid=function(e,t){var n=$.messageStorage.get(e);n?((n=n.split(",")).length<100||n.pop(),n.push(t),$.messageStorage.set(e,n.join(","))):$.messageStorage.set(e,t)},cmnt.getVotedMid=function(e){$.messageStorage.get(e)},cmnt.getReplyNameTmpl=function(e){var t=e.thread,n=e.parent,a=e.uid,i=e.parent_uid,o=e.nick,e=e.parent_nick,s='<span class="sina-comment-user-lnk-wrap">@@userLink@@</span>',a=a?'<a href="https://weibo.com/u/'+a+'" title="'+o+'" target="_blank" data-sudaclick="comment_usernickname_p">'+o+":</a>":o+":",o=n===t?"":i?'<a href="https://weibo.com/u/'+i+'" title="'+e+'" target="_blank" data-sudaclick="comment_usernickname_p">@'+e+":</a>":"@"+e+":";return{user:a?s.replace("@@userLink@@",a):"",lastUser:o?"回复"+s.replace("@@userLink@@",o):""}},cmnt.insertList=function(e,t,n){var a;e.firstChild&&"sina-comment-page"===e.firstChild.className?e.firstChild.insertBefore(t,e.firstChild.firstChild):e.appendChild(t),n&&setTimeout(function(){a=$.getPosition(e),a=a.top-80;try{doc.documentElement.scrollTop=a,document.body.scrollTop=a}catch(e){}},1e3)},cmnt.replyListRender=function(){var f=cmnt.getTimeStr,h=$.app.splitNum,g=cmnt.data;return function(e,t,n,a,i){a&&g.set(e,"cmntlist",n);var o="";if(n&&0<n.length)for(var s=0,r=n.length;s<r;s++){var c=n[s],l=c.area||"&nbsp;",m="",u=(0!==s&&(m=1),""),d=cmnt.getUserLnk(c,i?"":"@"),p=$.cmnt.face.filter(app.cmntEncodeHtml(c.content));i&&(d={allNewsid:e,channel:c.channel,newsid:c.newsid,mid:c.mid,floor:s+1,userIco:cmnt.getUserIco(c),userLnk:d,area:l,cont:p,time:f(c.time,"time"),agree:h(c.agree),hasReply:m},u=$.cmnt.tpls.get("floor"),o=o+'<div comment-type="floor" class="floor floor-out clearfix">'+appTemplate(u,d)+"</div>")}return o=""!==o?'<div class="floor-wrap flat-floor-wrap">'+o+"</div>":o}}(),cmnt.getNewsLink=function(e,t){var n="";return n=t.newsdict&&typeof(t=t.newsdict[e])!=UNDEFINED?'<p class="lnk"><a target="_blank" href="'+t.url+'" title="'+t.title+'">《'+t.title+"》</a></p>":n},cmnt.itemInnerRender=function(){var l=cmnt.getTimeStr,m=$.app.splitNum;return function(e,t,n,a,i){var o,s,r,c;return typeof t.mid==UNDEFINED?"":(c=t.newsid,s=t.mid,o=t.area||"&nbsp;",n.threaddict&&(r=n.threaddict[s]),s=!!(a=a||r&&r.list),a=(r=$.cmnt.face.filter(app.cmntEncodeHtml(t.content)))+"",e={channel:t.channel,allNewsid:e,newsid:c,nick:t.nick,uid:t.uid,mid:t.mid,parent:t.parent,thread:t.thread,userFace:cmnt.getUserFace(t),newsLnk:cmnt.getNewsLink(c,n),userIco:cmnt.getUserIco(t),userLnk:cmnt.getUserLnk(t),oUserLnk:cmnt.getUserLnk(t).replace(/<(?:.|\s)*?>/g,""),area:o,reply:"",cont:r,contWithReply:a,oCont:$.encodeHTML(t.content),time:l(t.time,"time"),agree:m(t.agree),hasReply:s,userFrom:cmnt.getUserFromType(t),isAgreed:cmnt.getUserAgreed(t)},c="",c=i&&i.showUserFrom?$.cmnt.tpls.get("contWithUserFrom"):$.cmnt.tpls.get("cont"),appTemplate(c,e))}}(),cmnt.itemRender=function(e,t,n,a){return'<div class="item clearfix" comment-type="item">'+cmnt.itemInnerRender(e,t,n,null,a)+"</div>"},cmnt.dialogInsertList=function(e,t){e.appendChild(t)},cmnt.dialogItemInnerRender=function(){var c=cmnt.getTimeStr,l=$.app.splitNum,m=getMsg("I036"),u=getMsg("I037");return function(e,t,n,a){var i=t.area||"&nbsp;",o="",s=(0!==n&&(o=1),cmnt.getUserLnk(t,"",u)),r=$.cmnt.face.filter(app.cmntEncodeHtml(t.content)),e={allNewsid:e,channel:t.channel,newsid:t.newsid,nick:t.nick,uid:t.uid,mid:t.mid,parent:t.parent,thread:t.thread,userFace:cmnt.getUserFace(t),floor:n+1,userIco:cmnt.getUserIco(t),userLnk:s,lastUserLnk:a?appTemplate(m,{userLnk:a}):"",area:i,cont:r,time:c(t.time,"time"),agree:l(t.agree),hasReply:o,pos:"dialog"},n=$.cmnt.tpls.get("dialogItem");return appTemplate(n,e)}}(),cmnt.dialogItemRender=function(e,t,n,a,i){return'<div class="item clearfix '+(i?"item-hide":"")+'" comment-type="item">'+cmnt.dialogItemInnerRender(e,t,n,a)+"</div>"},cmnt.getDialog=function(e){var t,n=e.mid;return n?(e=e.allNewsid,t=cmnt.data.get(e),n=cmnt.data.get(e,"cmntlist",n),cmnt.dialogListRender(e,n,t)):""},cmnt.layer=function(){function r(){var e=$.create("div");return e.className="sina-comment-list-layer",e.style.visibility="hidden",$.byTag("body")[0].appendChild(e),e}var c={timeout:null,animate:null};return c.show=function(e,t,n){c.dom||(c.dom=r()),clearTimeout(c.timeout),c.animate&&c.animate.pause(),c.dom.innerHTML='<div class="sina-comment-list-layer-hd"><h2>查看对话</h2><a action-type="layerHide" href="javascript:;" class="close"></a></div><div class="sina-comment-list-layer-bd">'+(t||"")+"</div>";var a,i,t=$.app.getWinSize(),o=(a=c.dom,o=648,i=380,s=$.getStyle(a,"width"),a=$.getStyle(a,"height"),s=parseFloat(s),s=isNaN(s)?o:s,a=parseFloat(a),{width:s,height:isNaN(a)?i:a}),s=document.body.scrollTop||document.documentElement.scrollTop;$.setStyle(c.dom,{top:s+(t.height-o.height)/2+"px",left:"50%",marginLeft:-o.width/2+"px",opacity:0,visibility:"visible"}),(n=n||0)&&(c.timeout=setTimeout(function(){c.hide()},n)),$.animate(c.dom,{opacity:1},200,"Tween.Quad.easeIn",{start:function(e){},complete:function(e){}})},c.hide=function(){c.dom||(c.dom=r()),clearTimeout(c.timeout),c.animate&&c.animate.pause(),$.animate(c.dom,{opacity:0},200,"Tween.Quad.easeOut",{start:function(e){},complete:function(e){$.setStyle(c.dom,{left:"-9999px",opacity:0})}})},c}(),cmnt.Dialog=function(){var e=$.createClass();return e.include({init:function(e){var t=this;t.listOpt=e.listOpt,t.set("cfg",e),t.commentItem=getPar(e.trigger,"item"),t.actionData=e.actionData,t.allNewsId=t.actionData.allNewsid,t.commentData=e.commentData,t.commentMid=t.commentData.mid,t.replyData=e.replyData,t.showNum=t.listOpt.replyShowNum,t.maxNum=t.replyData.count,t.showedNum=0,t.page=0,t.totalPage=Math.ceil((t.maxNum-t.showNum)/t.listOpt.replyPageNum)+1,t.maxPage=t.listOpt.replyClickMoreTimes,t.wrap=document.createElement("div"),t.wrap.className="dialog-list-wrap",t.wrap.setAttribute("comment-type","dialogWrap"),t.listWrap=document.createElement("div"),t.listWrap.className="dialog-list",t.listWrap.setAttribute("comment-type","dialogList"),t.wrap.appendChild(t.listWrap),$.insertAfter(t.wrap,t.commentItem),t.dialogItemTmpl=$.cmnt.tpls.get("dialogItem"),t.load()},load:function(){var e=this;e.page+=1,1===e.page?(e.pageNum=e.listOpt.replyShowNum,e.replyList=e.replyData.list,e.onLoaded()):(e.pageNum=e.listOpt.replyPageNum,e.request())},onLoaded:function(){var e,t=this;t.render(),t.page<t.totalPage?t.showClickMore():t.hideClickMore(),e=cmnt.data.get(t.allNewsId,"replydict",t.commentMid),cmnt.data.set(t.allNewsid,"cmntlist",t.replyList),1!==t.page&&"concat"in e.list&&e.list.concat(t.replyList)},request:function(e){var t,n,a,i=this;i.loading||(i.loading=!0,t=i.commentData,n=i.listOpt,a=t.mid,$.getJsonp("//comment.sina.com.cn/cmnt/info",{data:{channel:t.channel,newsid:i.allNewsId,mid:a,ie:n.encoding,oe:n.encoding,format:"json",page_size:n.replyPageNum,page:1,order:0,thread:1,last_mid:i.lastMid},success:function(e){e=e.result;i.loading=!1,0!==e.status.code||e.error||(i.replyList=e.threaddict[a].list,i.onLoaded.call(i))}}))},showClickMore:function(){var e,t,n,a=this,i=a.listOpt;a.clickMore||(e=document.createDocumentFragment(),t=document.createElement("div"),n=document.createElement("a"),t.style.display="none",t.className="dialog-list-ft",n.className="more",n.setAttribute("data-sudaclick","comment_morereply_i"),t.appendChild(n),e.appendChild(t),a.clickMoreA=n,a.clickMore=t,a.bindClickMore(),a.wrap.appendChild(t)),a.page>a.maxPage?(a.clickMoreA.href="https://comment5.news.sina.com.cn/comment/skin/default.html?channel="+i.channel+"&newsid="+i.newsid+"&group="+i.group,a.clickMoreA.target="_blank"):(a.clickMoreA.href="javascript:;",a.clickMoreA.removeAttribute("target")),a.clickMoreA.innerHTML="查看剩余<em>X</em>条回复".replace("X",a.maxNum-a.showedNum),a.clickMore.style.display="block"},bindClickMore:function(){var t=this;$.addEvent(t.clickMoreA,"click",function(e){t.page<=t.maxPage&&t.load()})},hideClickMore:function(){this.clickMore&&(this.clickMore.style.display="none")},render:function(){var e=this.replyList,t=(e=e.filter(t=>t.parent===t.thread||-1<e.findIndex(e=>e.mid===t.parent))).length,n=document.createDocumentFragment();if(0<t){for(var a=0;a<t;a++)n.appendChild(this.itemRender(e[a]));this.lastMid=e[a-1].mid}this.listWrap.appendChild(n)},itemRender:function(e){this.commentData;var t=this.getUserNameTmpl(e),t={allNewsid:e.newsid,channel:e.channel,newsid:e.newsid,nick:e.nick,uid:e.uid,mid:e.mid,parent:e.parent,thread:e.thread,floor:++this.showedNum,userIco:"name-weibo",userLnk:t.user,lastUserLnk:t.lastUser,area:e.area||"&nbsp;",cont:cmnt.face.filter(app.cmntEncodeHtml(e.content)),time:cmnt.getTimeStr(e.time,"time"),agree:e.agree?$.app.splitNum(e.agree):0,hasReply:0,pos:"dialog",isAgreed:cmnt.getUserAgreed(e)},e=document.createElement("div");return e.className="item clearfix",e.setAttribute("comment-type","item"),e.innerHTML=appTemplate(this.dialogItemTmpl,t),e},getUserNameTmpl:function(e){var t=e.parent,n=e.uid,a=e.parent_uid,i=e.nick,e=e.parent_nick,o='<span class="sina-comment-user-lnk-wrap">@@userLink@@</span>',n=n?'<a href="https://weibo.com/u/'+n+'" title="'+i+'" target="_blank" data-sudaclick="comment_usernickname_p">'+i+":</a>":i+":",i=t===this.commentMid?"":a?'<a href="https://weibo.com/u/'+a+'" title="'+e+'" target="_blank" data-sudaclick="comment_usernickname_p">@'+e+":</a>":"@"+e+":";return{user:n?o.replace("@@userLink@@",n):"",lastUser:i?"回复"+o.replace("@@userLink@@",i):""}},getUserFaceTmpl:function(e){var t=e.uid;return t?'<a href="https://weibo.com/u/'+t+'" title="'+e.nick+'" target="_blank" data-sudaclick="comment_useravatar_p"><img src="'+e.profile_img+'"/></a>':'<img src="'+e.profile_img+'"/>'}}),e}(),cmnt.DataLoader=function(){var e=$.createClass();return e.include({init:function(e){this._setOpt(e),this.data=null,this.loading=!1,this.getData()},_setOpt:function(e){this.set("opt",$.extend({url:"",param:{},beforeLoad:function(){},loaded:function(e){},error:function(e,t){}},e))},getData:function(t){var n=this,a=n.get("opt"),e=a.url,i=a.param;n.loading=!0,a.beforeLoad(),$.getJsonp(e,{data:i,success:function(e){e=e.result;0!==e.status.code||e.error?(a.error(e.status.msg,e.status.code),console.log("该评论状态异常! code:"+e.status.code+"; msg:"+e.status.msg),$.app.sima.track({error_type:"timeout error"})):(n.data=e,a.loaded(n)),n.loading=!1,t&&"function"==typeof t&&t(e.status.msg,e.status.code)}})}}),e}(),cmnt.List=function(){var p=function(e,t,n){if(!$.isArray(t))return"";if(!t.length)return"";var a,i=n.pageNum||n.latestPageNum,o=n.hotPageNum,s=[],r=n.type,c=n.data,l=0,m=0,u=0,d=0;if("latest"===r){for(u=0,a=t.length;u<a;u++){d++;var p=l<i,f=t[u];1===d&&(s.push('<div class="sina-comment-page">'),m++,0),s.push(cmnt.itemRender(e,f,c,n)),d===p&&(s.push("</div>"),m++,d=0),l++}m%2&&s.push("</div>")}else if("hot"===r)for(u=0,a=t.length;u<a;u++)f=t[u],l<o&&(s.push(cmnt.itemRender(e,f,c,n)),l++);else for(u=0,a=t.length;u<a;u++)f=t[u],s.push(cmnt.itemRender(e,f,c,n)),(l+1)/o==1&&(s.push("</div>"),m++);return s.join("")},e=$.createClass(cmnt.DataLoader),a=null;return e.include({init:function(e,t,n){var a=this,i=(a.currentDialog=null,a.listWrapper=$.byId(e),$.extend({hideList:0,url:"",channel:"",newsid:"",showReply:0,group:0,hotPageNum:3,latestPageNum:3,replyShowNum:3,replyPageNum:15,replyClickMoreTimes:3,maxWordCount:200,showUserFrom:!1,loaded:function(e){},beforeLoad:function(){},error:function(e,t){}},n)),e=(i.clickMoreTimes=0,a.set("clickMoreTimes",0),a.set("countShowed",0),n.encoding||cmnt.config.encoding||"utf-8"),n=$.login.getInfo(),t={url:t||"//comment.sina.com.cn/page/info",config:i,param:{version:1,format:"json",channel:i.channel,newsid:i.newsid,group:i.group||i.style,compress:0,ie:e,oe:e,page:1,page_size:i.latestPageNum,t_size:i.replyShowNum,h_size:i.hotPageNum,thread:1,uid:n.sina?n.sina.uid:"unlogin_user"},listType:"all",beforeLoad:function(){a.beforeLoad(),"function"==typeof i.beforeLoad&&i.beforeLoad()},loaded:function(e){e.render(e),e.loaded(e),"function"==typeof i.loaded&&i.loaded(e)},error:function(e,t){a.error.apply(a,arguments),"function"==typeof i.error&&i.error.apply(a,arguments)}};a.firstRender=!0,a._setOpt(t),a.loading=!1,a._setDom(),a.getData()},_setDom:function(){var e=this.listWrapper,t=$.cmnt.tpls.get("list"),t=(e.innerHTML=appTemplate(t,{}),$.builder(e,"comment-type"));this.set("dom",t.ids)},beforeLoad:function(){var e=this.get("dom"),t=this.get("opt"),n=t.config,t=t.listType;$.addClass(e.wrap,"sina-comment-list-"+t+"-loading"),n.hideList&&(e.wrap.style.display="none")},loaded:function(){var e,t,n=this,a=n.get("dom"),i=n.get("opt"),o=n.data,s=i.listType;if(o.news&&"N_CLOSE"===o.news.status)n.listWrapper.style.display="none","body"!==(e=n.listWrapper.parentNode).tagName.toLowerCase()&&(e.style.display="none");else if(0===o.cmntlist.length&&(i.config.isBBS?n.setMore(getMsg("I006")):n.setMoreLink(getMsg("I027"))),n.firstRender&&(n.bindEvent(),cmnt.updateTime(a.wrap)),n.firstRender=!1,$.removeClass(a.wrap,"sina-comment-list-"+s+"-loading"),e="all"===s?a.wrap:a[s+"Wrap"],(t=$.byAttr(e,"action-type","dialogShow")).length)for(var r=0;r<t.length;r++)n.showDialog(t[r])},error:function(e,t){var n=this,a=(n.get("dom"),n.get("opt"));n.data,a.listType;-1<e.indexOf("build mc")&&4==t||(n.listWrapper.style.display="none","body"!==(a=n.listWrapper.parentNode).tagName.toLowerCase()&&(a.style.display="none"))},render:function(){var e,t,n,a,i,o,s,r,c=this,l=c.data,m=c.get("dom"),u=c.get("opt"),d=u.config;if(!d.hideList)return r=d.pageNum||d.latestPageNum,e=d.hotPageNum,n=(t=u.param).newsid,u=u.listType,c.setNewsData(n,l),l.count?c.totalNum=l.count.show:c.totalNum=0,a=l.cmntlist,i=l.hot_list,a.length&&(s=o="",l={data:l,pageNum:r,hotPageNum:e,showUserFrom:d.showUserFrom},"all"===u?(l.type="hot",s=p(n,i,l),l.type="latest",o=p(n,a,l),m.hotList&&(m.hotList.innerHTML=s),m.latestList.innerHTML=o,c.set("countShowed",c.get("countShowed")+a.length),c.checkClickTimes(c.get("clickMoreTimes"))):"latest"===u?(l.type="latest",o=p(n,a,l),1===t.page?m.latestList.innerHTML=o:((r=$.create("div")).innerHTML=o,m.latestList.appendChild(r)),c.set("countShowed",c.get("countShowed")+a.length),c.checkClickTimes(c.get("clickMoreTimes"))):(l.type="hot",s=p(n,i,l),m.hotList&&(m.hotList.innerHTML=s)),c.setDataClz(u,s,o),c.loading=!1),c;c.loading=!1},showDialog:function(e){var t=$.queryToJson(e.getAttribute("action-data")),n=t.mid,a=t.newsid,i=this.get("opt").config,o=cmnt.data.get(a,"replydict",n),a=cmnt.data.get(a,"cmntlist",n);return this.Dialogs=this.Dialogs||{},this.Dialogs[n]=new cmnt.Dialog({trigger:e,listOpt:i,actionData:t,commentData:a,replyData:o})},setMoreLink:function(e,t){var n=this.get("opt"),a=n.param.group||"0",t=(t||"")+'<a class="more" target="_blank" href="https://comment5.news.sina.com.cn/comment/skin/default.html?channel='+n.param.channel+"&newsid="+n.param.newsid+"&group="+a+'" data-sudaclick="comment_allcomment_p">'+e+"</a>";this.setMore(t)},setMore:function(e){var t=this.get("dom");t.latestMore&&(t.latestMore.__innerHTML__||(t.latestMore.__innerHTML__=t.latestMore.innerHTML),t.latestMore.setAttribute("action-type",""),t.latestMore.innerHTML=e)},reSetMoreLink:function(e){var t=this.get("dom");t.latestMore&&t.latestMore.__innerHTML__&&(t.latestMore.innerHTML=t.latestMore.__innerHTML__),e&&(t.latestMore.innerHTML=e),t.latestMore.setAttribute("action-type","getMore")},showFirstHidePage:function(){var e,t,n=this.get("dom"),a="sina-comment-page-hide",n=$.byClass(a,n.latestList);return!!(n&&0<n.length)&&(n=n[0],e=this.get("countShowed"),this.set("countShowed",0),n&&(t=$.byClass("item",n),this.set("countShowed",e+t.length),n.style.display="",$.removeClass(n,a),$.addClass(n,"sina-comment-page-show")),!0)},getLestNum:function(){return this.totalNum-this.get("countShowed")},getMoreLatest:function(){var e,t=this,n=t.get("clickMoreTimes");t.showFirstHidePage()||(e=t.get("opt.param.page"),t.setMore('<a href="javascript:;" class="more">'+getMsg("I041")+"</a>"),0<t.getLestNum()&&t.setType("latest").setPage(e+1).getData(function(){t.data&&t.data.cmntlist&&0<t.data.cmntlist.length&&t.reSetMoreLink()})),t.set("clickMoreTimes",n+1),t.checkClickTimes(n+1)},checkClickTimes:function(e){var t=this,n=t.get("opt").config,a=t.getLestNum();e<n.clickMoreTimes?t.reSetMoreLink('<a href="javascript:;" class="more">'+appTemplate(getMsg("I028"),{num:a})+"</a>"):t.setMoreLink(appTemplate(getMsg("I048"),{totalNum:t.totalNum})),a<=0&&(n.isBBS?t.setMore(getMsg("I006")):t.setMoreLink(appTemplate(getMsg("I048"),{totalNum:t.totalNum})))},bindEvent:function(){var e,t=this,c=t.get("dom"),l=t.get("opt");t.firstRender&&((e=$.delegatedEvent(c.wrap)).add("txt-toggle","click",function(e){$.cmnt.truncate.toggle(e.el,e.data.type)}),e.add("vote","click",function(e){var t,s=e.el,r=e.data;"true"!==s.getAttribute("voted")&&(s.getAttribute("posting")||(s.setAttribute("posting","true"),e=s.parentNode,e=$.byAttr(e,"action-type","reply")[0],e=e.getAttribute("action-data"),$.queryToJson(e),$.cmnt.commentTip.hide(),$.cmnt.vote({channel:r.channel,newsid:r.newsid,parent:r.mid,iframe:"1",callback:t="onVoteSuccess"})),window[t]=function(e){var t,n,a,i,o;e&&e.result&&e.result.status&&0==e.result.status.code?($.cmnt.voteTip.show(s,1e3),$.addClass(s,"vote-active"),a=s.title,i=getMsg("I008d"),t=0,(o=$.byAttr(s,"comment-type","voteNum")[0])&&o.innerHTML?(t=parseInt(o.innerHTML.replace(/[^\d]/g,""),10),isNaN(t)&&(t=0)):o.innerHTML=t,o=s.innerHTML,n=t+1,s.innerHTML=o.replace($.app.splitNum(t),$.app.splitNum(n)).replace(a,i),s.title=i,s.setAttribute("voted","true"),cmnt.setVotedMid(l.param.uid,r.mid)):e&&e.result&&e.result.status&&106==e.result.status.code&&(cmnt.commentTip.show(c.cont,"error",getMsg("I008e"),2e3),$.addClass(s,"vote-active"),i="已"+(a=s.title),o=s.innerHTML,s.innerHTML=o.replace(a,i),s.title=i,s.setAttribute("voted","true")),s.setAttribute("posting","false")})}),e.add("reply","click",function(e){t.toggleReply(e),$.cmnt.commentTip.hide()}),e.add("reflash","click",function(e){e=e.data.type;t.setType(e).getData(),t.reSetMoreLink(),t.set("clickMoreTimes",0),t.set("countShowed",0)}),e.add("getMore","click",function(e){t.getMoreLatest()}),e.add("shareHover","mouseover",function(e){var t=e.el,n=e.data;setTimeout(function(){$.cmnt.shareTip.show(t,n)},100)}),e.add("shareHover","mouseout",function(e){$.cmnt.shareTip.hide(1e3)}))},toggleReply:function(e){var t,n=e.data.mid;if(a&&(e.el.innerHTML="回复",t=a.get("opt").parent,a.destroy(),a=null,t===n))return;this.showReply(e)},showReply:function(e){var o=this,s=e.el,r=e.data,c=o.get("opt").config;a&&(s.innerHTML="回复",a.destroy(),a=null),s.innerHTML="收起";e=(a=new cmnt.ReplyForm(s,{allNewsid:r.allNewsid,channel:r.channel,newsid:r.newsid,parent:r.mid,thread:r.thread,nick:r.nick,uid:r.uid,commented:function(e,t,n){var a,i;c.hideList||(o.get("dom").latestList,(a=cmnt.data.get(r.newsid,"replydict"))[i=r.thread||r.mid]=a[i]||{count:1,list:[]},a[i].list.push(n),o.Dialogs=o.Dialogs||{},(a=o.Dialogs[i])?a.listWrap.insertBefore(a.itemRender(n),a.listWrap.firstChild):(a=o.Dialogs[i]=o.showDialog(s)).page=0,"function"==typeof c.commented&&c.commented())},autoGrow:void 0===c.autoGrow||c.autoGrow,postTip:"回复"+r.nick,floor:r.floor,pos:r.pos})).get("dom").cont;$.app.textareaUtils.insertText(e,"",0,0)},setNewsData:function(e,t){var n=cmnt.data;return n.set(e,"all",t),t.news&&n.set(e,"newsdict",[t.news]),t.newsdict&&!$.isEmptyObj(t.newsdict)&&n.set(e,"newsdict",t.newsdict),t.cmntlist&&n.set(e,"cmntlist",t.cmntlist),t.hot_list&&n.set(e,"cmntlist",t.hot_list),t.threaddict&&n.set(e,"replydict",t.threaddict),this},setDataClz:function(e,t,n){var a=this.get("dom").wrap,i="sina-comment-list-has-",o=(t&&($.addClass(a,i+e),"all"===e)&&$.addClass(a,i+"hot"),n&&($.addClass(a,i+e),"all"===e)&&$.addClass(a,i+"latest"),this.get("opt.config.maxWordCount"));if(o!==1/0||o<=0)for(var s=$.byAttr(a,"comment-type","itemTxt"),r=0,c=s.length;r<c;r++){var l=s[r];$.cmnt.truncate.handle(l,o)}},setPage:function(e){return e<1||this.set("opt.param.page",e),this},setType:function(e){return e&&e.match(/^(all|hot|latest)$/)&&(this.get("opt").listType=e),this}}),e}(),cmnt.Form=function(){function c(e){return e.getAttribute("placeholder")||e.placeholder||""}function l(e){"loginWithComment"===(e=e.data).action&&"function"==typeof e.callback&&e.callback()}var m=cmnt.commentTip,u=$.addEvent,d=$.custEvent,p=!1,e=$.createClass();return e.include({init:function(e,t){var n=this;n.commenting=!1,n.commentType="normal",n._setOpt(t),n._setDom(e),n.bindEvent()},_setOpt:function(e){e.allNewsid=e.allNewsid||e.newsid,this.set("opt",$.extend({allNewsid:"",channel:"",newsid:"",parent:"",share_url:location.href.split("#")[0],video_url:"",img_url:"",encoding:cmnt.config.encoding||"utf-8",postTip:getMsg("I003"),autoGrow:!1,content:"",commented:function(){}},e))},_setDom:function(e){var t=this.get("opt"),n=(e=$.byId(e),cmnt.face.get("common")),t={content:t.content,postTip:t.postTip,name:$.login.getName(),face:$.login.getFace(),commonFaces:n.faces,commonFacesBase:n.base},n=$.cmnt.tpls.get("comment"),n=(e.innerHTML=appTemplate(n,t),$.builder(e,"comment-type"));this.set("dom",n.ids)},bindEvent:function(){var t,e,n=this,a=n.get("dom"),i=n.get("opt"),o=a.cont,s=$._throttle(function(){var e=$.trim(o.value),t=c(o);""===e||e===t?(o.focus(),m.show(o,"error",getMsg("I003"),3e3)):6e3<$.byteLength(e)?(o.focus(),m.show(o,"error","您的评论字数超出了上限3000字,请修改后再提交!",3e3)):$.login.isLogin()?n.commenting||($.login.isUidChanged()?$.login.lInSuccess(function(){n.comment()}):n.comment()):(cmnt.loginWithComment=!0,d.remove($,"ce_login",l),d.add($,"ce_login",l,{action:"loginWithComment",callback:function(){d.remove($,"ce_login",l),!n.commenting&&cmnt.loginWithComment&&(n.comment(),cmnt.loginWithComment=!1)}}),n.login())},300,n),r=$._debounce(n.toggleSubmitBtn,300,n),a=(a.logout&&u(a.logout,"click",function(e){$.login.lOut()}),u(a.submit,"click",function(e){$.hasClass(e.target,"btn-disabled")||s()}),u(o,"keyup",function(e){r(),13===e.keyCode&&e.ctrlKey&&($.cmnt.face.hide_menu(),s())}),u(o,"focus",r),a=o,e=r,window.ActiveXObject?a.onpropertychange=e:a.addEventListener("input",e,!1),i.autoGrow&&(n.textareaAugoGrow=new $.app.textareaAutoGrow(o,{maxHeight:72})),[o]);return $.placeholder(a),p||(t=$.cmnt.face,e=$.delegatedEvent($.byTag("body")[0]),e.add("login","click",function(e){cmnt.commentTip.hide(),window.open("https://passport.weibo.com/sso/signin?entry=homepage&source=sinafloatlaver&url="+encodeURIComponent(location.href),"_self")}),e.add("face-toggle","click",function(e){e=e.el;$.hasClass(e,"trigger-active")?t.hide_menu():t.show_menu(e)}),e.add("face-insert","click",function(e){e=e.el.getAttribute("data-text");t.insert(e)}),e.add("face-close","click",function(e){t.hide_menu()}),e.add("checkbox-toggle","click",function(e){e=e.el;$.app.simCheckbox(e)}),p=!0),d.add($,"ce_login",function(){n.setName()}),d.add($,"ce_preLogin",function(){n.setName()}),d.add($,"ce_logout",function(){n.setName()}),d.add($,"ce_weiboLogin",function(){n.setName()}),d.add($,"ce_weiboLogout",function(){n.setName()}),n},setName:function(){var e=this.get("dom");e.name&&(e.name.innerHTML=$.login.getName()),e.head&&(e.head.innerHTML=$.login.getFace())},toggleSubmitBtn:function(){var e=this.get("dom"),t=e.cont,e=e.submit,n=$.trim(t.value),t=c(t),a="btn-disabled";""===n||n===t?$.addClass(e,a):$.removeClass(e,a)},comment:function(){var n,e,a,i=this;i.commenting||(i.commenting=!0,n=i.get("dom"),e=i.get("opt"),a=$.trim(n.cont.value).replace(/\s/g," "),cmnt.comment({channel:e.channel,newsid:e.newsid,parent:e.parent,content:a,ie:e.encoding,oe:e.encoding,ispost:0,usertype:"pc",share_url:e.share_url,video_url:e.video_url,img_url:e.img_url},function(e){var t,e=e.result,e=Number(e.filter_code);4e3<=e||1103<=e&&e<=1106||2e3<=e&&e<=2100?1104==e||1105==e?cmnt.popup({skin:"error",type:"alert",head:null,body:getMsg("I049"),cancelText:getMsg("I047"),parentNode:n.wrap,onCancel:function(){i.commenting=!1}}).show():(t=getMsg("I001"),cmnt.commentTip.show(n.cont,"succ",t,2e3),n.cont.value="",i.commented(a),i.commenting=!1):1005===e?cmnt.popup({skin:"error",type:"confirm",head:null,body:getMsg("I045"),actionText:getMsg("I046"),cancelText:getMsg("I047"),parentNode:n.wrap,onAction:function(){i.commenting=!1,location.href="https://security.weibo.com/mobile/index?entry=sina_shiming&r="+encodeURIComponent(location.href.split("#")[0])},onCancel:function(){i.commenting=!1}}).show():i.commenting=!1},function(){cmnt.commentTip.show(n.cont,"error",getMsg("I042"),3e3),i.commenting=!1}))},commented:function(e){var t=this.get("opt"),n=t.allNewsid,a=$.login.getInfo(),a={newsid:n,mid:"",parent:t.parent,thread:t.thread,parent_nick:t.nick,parent_uid:t.uid,content:e,time:"",agree:0,config:$.login.getCommentConfig(),nick:a.sina.nick,uid:a.sina.uid,usertype:"pc",area:"",pos:t.pos},i=$.create("div");i.className="item item-hack clearfix",i.setAttribute("comment-type","item"),i.innerHTML=cmnt.itemInnerRender(n,a,{},[]),t.commented(e,i,a)},login:function(){$.login.isLogin()||$.login.lIn()},destroy:function(){var e=this.get("dom"),t=e.wrap;e.cont&&e.cont.blur(),t&&t.parentNode&&t.parentNode.removeChild(t),this.set("opt.parent","")}}),e}(),cmnt.ReplyForm=function(){var c=cmnt.data,e=$.createClass(cmnt.Form);return e.include({init:function(e,t){this.commenting=!1,this._setOpt(t),this._setDom(e),this.bindEvent()},_setDom:function(e){var t=this.get("opt"),e=$.byId(e),n=document.createElement("div"),t=(n.className="reply-form-wrap",n.innerHTML=appTemplate($.cmnt.tpls.get("reply"),{content:t.content,postTip:t.postTip}),getPar(e,"itemCont")),a=t.parentNode,n=("item"==a.getAttribute("comment-type")?(this.commentType="out",a.appendChild(n)):(this.commentType="in",$.insertAfter(n,t)),$.builder(n,"comment-type"));n.ids.trigger=e,n.ids.itemCont=t,n.ids.itemWrap=a,this.set("dom",n.ids)},setArrowPos:function(){var e,t,n,a,i,o=this.get("dom");o.replyArrow&&o.trigger&&(e=$.getXY(o.trigger),i=$.getXY(o.wrap),t=$.getOuterStyle(o.replyArrow,"width"),n=$.getOuterStyle(o.trigger,"width"),a=$.getOuterStyle(o.wrap,"width"),i=i[0]+a-e[0]-n/2-t/2+"px",o.replyArrow.style.right=i)},showHdTip:function(e){var t=this.get("dom").hd;t.innerHTML=e,t.style.display="",t.style.height="auto"},hideHdTip:function(){var e=this.get("dom").hd;e.style.display="none",e.style.height="0"},commented:function(e){var t,n=this,a=n.get("opt"),i=a.allNewsid,o=a.parent,s=(a.thread,$.login.getInfo()),o=(c.get(i,"cmntlist",o),c.get(i,"replydict",o)),s=($.isArray(o)||(o=[]),{newsid:i,mid:"",parent:a.parent,thread:a.thread,parent_nick:a.nick,parent_uid:a.uid,content:e,time:"",agree:0,config:$.login.getCommentConfig(),nick:s.sina.nick,uid:s.sina.uid,usertype:"pc",area:""}),r=$.create("div");r.className="item item-hack clearfix",r.setAttribute("comment-type","item"),r.innerHTML=cmnt.itemInnerRender(i,s,{},o);"dialog"===a.pos&&(o=o[a.floor-1],t="",typeof o!==$.C.U&&(t=cmnt.getUserLnk(o,"@")),(o=$.create("div")).className="item item-hack clearfix",o.setAttribute("comment-type","item"),o.innerHTML=cmnt.dialogItemInnerRender(i,s,"new",t)),a.commented(e,r,s),setTimeout(function(){n.destroy(),n.commenting=!1},2e3)}}),e}(),cmnt.FormList=function(){var e=$.createClass();return e.include({init:function(e,t,n,a){this._setOpt(t,n,a),this._setDom(e),this.render()},_setOpt:function(n,t,e){var a=this;a.formOpt=$.extend({},n),a.listOpt=$.extend({},t),a.opt=$.extend({isBBS:0,hideList:0,hideComment:!1},e),a.formOpt.commented=function(e,t){a.commented(e,t),"function"==typeof n.commented&&n.commented(e,t)},a.listOpt.loaded=function(e){a.loaded(e),"function"==typeof t.loaded&&t.loaded(e)}},_setDom:function(e){e=$.byId(e),$.addClass(e,"sina-comment-wrap");var t=$.cmnt.tpls.get("formList"),t=(e.innerHTML=appTemplate(t,{}),$.builder(e,"comment-type"));this.set("domList",t.list),this.set("dom",t.ids)},render:function(){var e=this,t=e.get("domList"),n=e.get("dom"),a=t.form;if(e.commentForms=[],e.commentList=null,e.opt.hideList||(e.commentList=new cmnt.List(n.list,e.listOpt.url,e.listOpt)),e.opt.hideComment){t=$.byClass("page-tools");0<t.length&&($.byAttr(t[0],"node-type","comment")[0].style.display="none");for(var i=a.length-1;0<=i;i--)a[i].style.display="none"}if(a&&!e.opt.hideComment)for(i=a.length-1;0<=i;i--)e.commentForms.push(new cmnt.Form(a[i],e.formOpt))},setCount:function(){for(var e,t=this,n=cmnt.data.get(t.formOpt.allNewsid||t.formOpt.newsid,"all"),a=n.news,i="https://comment5.news.sina.com.cn/comment/skin/default.html",o='<span class="sep">|</span>',s={comment:"",person:"",post:""},r=getMsg("I031")+o+getMsg("I032"),c=(n&&n.count&&(s.comment=$.app.splitNum(n.count.show),s.person=$.app.splitNum(n.count.total)),t.opt.isBBS?!t.listOpt.group&&n.grouplist&&0!==n.grouplist.length&&(n=n.grouplist[0],r+=o+getMsg("I033"),s.post='<a href="'+i+"?channel="+n.news.channel+"&newsid="+n.news.newsid+'&group=1">'+$.app.splitNum(n.count.total)+"</a>"):(o=i+"?channel="+a.channel+"&newsid="+a.newsid,1===t.listOpt.group&&(o+="&style=1"),s.comment='<a href="'+o+'" data-sudaclick="comment_sum_p" target="_blank">'+s.comment+"</a>",s.person='<a href="'+o+'" data-sudaclick="comment_participatesum_p" target="_blank">'+s.person+"</a>"),appTemplate(r,s)),l=t.commentForms,m=l.length-1;0<=m;m--)(e=l[m].get("dom")).count&&(e.count.innerHTML=c)},loaded:function(e){this.setCount()},commented:function(e,t){var n,a,i,o,s=this.opt;this.commentList&&!s.hideList&&(a=(n=this.commentList).get("dom.latestList"),i=n.get("opt.config.hideList"),o=!0,void 0!==s.scrollToLatest&&(o=s.scrollToLatest),typeof i!==UNDEFINED)&&1!==i&&(cmnt.insertList(a,t,o),n.setDataClz("all",n.data.hot_list&&1<n.data.hot_list.length,1))}}),e}(),cmnt})}(window);