中文版
window.logs = { | |
pagetime: {} | |
}; | |
window.logs.pagetime['html_begin'] = (+new Date()); | |
window.LANG= 'zh_CN'; | |
window.isOldVideoPage = false; | |
var biz = 'MzA5NzIwMDM1NA=='||''; | |
var sn = '84b6c24124e431cbe64438451847d9c9' || ''|| ''; | |
var mid = '2651919882' || ''|| ''; | |
var idx = '2' || '' || ''; | |
window.__allowLoadResFromMp = true; | |
var page_begintime=+new Date,is_rumor='',norumor=''; | |
1*is_rumor&&!(1*norumor)&&biz&&mid&&(document.referrer&&-1!=document.referrer.indexOf('mp.weixin.qq.com/mp/rumor')||(location.href='http://mp.weixin.qq.com/mp/rumor?action=info&__biz='+biz+'&mid='+mid+'&idx='+idx+'&sn='+sn+'#wechat_redirect')); | |
var MutationObserver=window.WebKitMutationObserver||window.MutationObserver||window.MozMutationObserver,isDangerSrc=function(t){ | |
if(t){ | |
var e=t.match(/http(?:s)?:\/\/([^\/]+?)(\/|$)/); | |
if(e&&!/qq\.com(\:8080)?$/.test(e[1])&&!/weishi\.com$/.test(e[1]))return!0; | |
} | |
return!1; | |
},ishttp=0==location.href.indexOf('http://'); | |
-1==location.href.indexOf('safe=0')&&ishttp&&'function'==typeof MutationObserver&&'mp.weixin.qq.com'==location.host&&(window.__observer_data={ | |
count:0, | |
exec_time:0, | |
list:[] | |
},window.__observer=new MutationObserver(function(t){ | |
window.__observer_data.count++; | |
var e=new Date,r=[]; | |
t.forEach(function(t){ | |
for(var e=t.addedNodes,o=0;o | |
var n=e[o]; | |
if('SCRIPT'===n.tagName){ | |
var i=n.src; | |
isDangerSrc(i)&&(window.__observer_data.list.push(i),r.push(n)),!i&&window.__nonce_str&&n.getAttribute('nonce')!=window.__nonce_str&&(window.__observer_data.list.push('inlinescript_without_nonce'), | |
r.push(n)); | |
} | |
} | |
}); | |
for(var o=0;o | |
var n=r[o]; | |
n.parentNode&&n.parentNode.removeChild(n); | |
} | |
window.__observer_data.exec_time+=new Date-e; | |
}),window.__observer.observe(document,{ | |
subtree:!0, | |
childList:!0 | |
})),function(){ | |
if(-1==location.href.indexOf('safe=0')&&Math.random()<.01&&ishttp&&HTMLScriptElement.prototype.__lookupSetter__&&'undefined'!=typeof Object.defineProperty){ | |
window.__danger_src={ | |
xmlhttprequest:[], | |
script_src:[], | |
script_setAttribute:[] | |
}; | |
var t='$'+Math.random(); | |
HTMLScriptElement.prototype.__old_method_script_src=HTMLScriptElement.prototype.__lookupSetter__('src'), | |
HTMLScriptElement.prototype.__defineSetter__('src',function(t){ | |
t&&isDangerSrc(t)&&window.__danger_src.script_src.push(t),this.__old_method_script_src(t); | |
}); | |
var e='element_setAttribute'+t; | |
Object.defineProperty(Element.prototype,e,{ | |
value:Element.prototype.setAttribute, | |
enumerable:!1 | |
}),Element.prototype.setAttribute=function(t,r){ | |
'SCRIPT'==this.tagName&&'src'==t&&isDangerSrc(r)&&window.__danger_src.script_setAttribute.push(r), | |
this[e](t,r); | |
}; | |
} | |
}(); | |
String.prototype.html = function(encode) { | |
var replace =[''', ''', '"', ''', ' ', ' ', '>', '>', '<', '<', '¥', '¥', '&', '&']; | |
var replaceReverse = ['&', '&', '¥', '¥', '<', '<', '>', '>', ' ', ' ', ''', '"', ''', ''']; | |
var target; | |
if (encode) { | |
target = replaceReverse; | |
} else { | |
target = replace; | |
} | |
for (var i=0,str=this;i< target.length;i+= 2) { | |
str=str.replace(new RegExp(target[i],'g'),target[i+1]); | |
} | |
return str; | |
}; | |
window.isInWeixinApp = function() { | |
return /MicroMessenger/.test(navigator.userAgent); | |
}; | |
window.getQueryFromURL = function(url) { | |
url = url || 'http://qq.com/s?a=b#rd'; | |
var tmp = url.split('?'), | |
query = (tmp[1] || '').split('#')[0].split('&'), | |
params = {}; | |
for (var i=0; i | |
var arg = query[i].split('='); | |
params[arg[0]] = arg[1]; | |
} | |
if (params['pass_ticket']) { | |
params['pass_ticket'] = encodeURIComponent(params['pass_ticket'].html(false).html(false).replace(/\s/g,'+')); | |
} | |
return params; | |
}; | |
(function() { | |
var params = getQueryFromURL(location.href); | |
window.uin = params['uin'] || 'MTE4NTYyNjMxNw==' || ''; | |
window.key = params['key'] || '860acfd2aadc7418422bd632fbd3d9abcca4dc96441850a56711c0070575cafb2bc9377811a4448ad84c85c1f588e783277cbdef8cce918ef20708d2a87db90b7c8813b1396a0139832c97573280a968' || ''; | |
window.wxtoken = params['wxtoken'] || ''; | |
window.pass_ticket = params['pass_ticket'] || ''; | |
window.appmsg_token = '1058_tdlwgKzCaf54NZy4VXBstFnE7na97sAWVJplGrzIR72cth0e8RE_eexZczb8HKIqGlrM7kJKWJARpo-t'; | |
})(); | |
function wx_loaderror() { | |
if (location.pathname === '/bizmall/reward') { | |
new Image().src = '/mp/jsreport?key=96&content=reward_res_load_err&r=' + Math.random(); | |
} | |
} | |
window.__moon_report_uin = '1185626317'; | |
window.no_moon_ls = 0; | |
var write_sceen_time = (+new Date()); | |
激光产品速递0424 | |
湖北省激光行业协会 | |
湖北省激光行业协会 | |
昨天 | |
点击蓝字 关注我们 武汉华工激光工程有限责任公司 光刃LK300/400D全自动玻璃激光单头/双头切割机 产品简介 MOPA纳秒系列激光器 产品简介 本公司推出的MOPA脉冲光纤激光器具有脉宽可调范围大(1ns-500fs)、峰值功率高(10kw-60kw)、单脉冲能量大(0.5mj-10mj)、首脉冲可用、响应速度快等特点。 MOPA产品系列覆盖 低功率段:20W/30W 中功率段:60W/70W/100W/120W 高功率段:150W/200W/350W及以上 ,200W以上产品包括风冷和水冷两种结构 了解更多:www.gzlasertech.com 产品简介 御拓激光的光纤激光切割机是采用进口国际先进的光纤激光器输出高能量密度的激光束,并聚焦在工件表面上,使工件上被超细焦点光斑照射的区域瞬间融化和气化,通过数控机械系统移动光斑照射位置而实现自动切割。它是集先进的光纤激光技术、数控技术、精密机械技术于一体的高新技术设备。可用于切割多种金属板材、管材(切管另加切管装置即可),主要适用于不锈钢、碳钢、镀锌板、电解板、黄铜板、铝板、锰钢、各种合金板、稀有金属等材质的快速切割。广泛应用于电力电气、汽车制造、机械设备、电器设备、酒店厨房设备、电梯设备、广告标识、汽车装饰、钣金制作、灯饰五金、展示器材、精密零件、五金制品等行业。 产品简介 湖北省激光行业协会 如果您喜欢我们的资讯,点击右上角图标,可以: 1、转发给朋友; 2、分享到朋友圈; 3、查看“湖北省激光行业协会”公众号往期内容。 座 机:027-87900300 网 址:www.laserunion.cn 扫描或长按二维码即可关注我们哦! | |
var first_sceen__time = (+new Date()); | |
if ('' == 1 && document.getElementById('js_content')) { | |
document.getElementById('js_content').addEventListener('selectstart',function(e){ e.preventDefault(); }); | |
} | |
(function(){ | |
if (navigator.userAgent.indexOf('WindowsWechat') != -1){ | |
var link = document.createElement('link'); | |
var head = document.getElementsByTagName('head')[0]; | |
link.rel = 'stylesheet'; | |
link.type = 'text/css'; | |
link.href = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/style/page/appmsg_new/winwx4c4161.css'; | |
head.appendChild(link); | |
} | |
})(); | |
阅读 | |
在看 | |
已同步到看一看写下你的想法 | |
前往“发现”-“看一看”浏览“朋友在看” | |
![]() | |
看一看入口已关闭 | |
在“设置”-“通用”-“发现页管理”打开“看一看”入口 | |
我知道了 | |
已发送 | |
取消 | |
发送到看一看 | |
激光产品速递0424 | |
最多200字,当前共字 | |
发送中 | |
相关阅读 | |
更多文章 | |
查看更多相关内容 | |
更多文章 | |
查看更多相关内容 | |
正在加载 | |
以上推荐为优质及原创文章 | |
微信扫一扫 | |
微信扫一扫 使用小程序 | |
取消 | |
允许 | |
取消 | |
允许 | |
微信版本过低 | |
当前微信版本不支持该功能,请升级至最新版本。 | |
我知道了 | |
前往更新 | |
确定删除回复吗? | |
取消 | |
删除 | |
知道了 | |
长按识别前往小程序 | |
var PAGE_MID='mmbizwap:appmsg/newindex.html'; | |
window.logs.pagetime.page_begin = Date.now(); | |
(function () { | |
var ajaxWhiteList = { | |
1: { | |
reg: /^https?:\/\/mp\.weixin\.qq\.com\/mp\/appmsg_like/, | |
times: 0 | |
}, | |
2: { | |
reg: /^https?:\/\/mp\.weixin\.qq\.com\/mp\/appmsg_comment((\?|&)[^=]*?=[^&]*?)*?(\?|&)action=likecomment/, | |
times: 0 | |
}, | |
3: { | |
reg: /^https?:\/\/mp\.weixin\.qq\.com\/mp\/appmsg_comment((\?|&)[^=]*?=[^&]*?)*?(\?|&)action=addcomment/, | |
times: 0 | |
}, | |
4: { | |
reg: /^https?:\/\/mp\.weixin\.qq\.com\/mp\/authorreward/, | |
times: 0 | |
} | |
}; | |
if (!performance || !performance.getEntries) return; | |
var hasReported = false; | |
var reportResLoadTime = function () { | |
if (hasReported) return; | |
var notSupport = false; | |
var ajaxEntries = []; | |
var entries = performance.getEntries().map(function (entry) { | |
if (typeof entry !== 'object') { | |
notSupport = true; | |
} else if (entry.entryType === undefined) { | |
notSupport = true; | |
} else if ( | |
entry.entryType !== 'navigation' && | |
entry.entryType !== 'resource' | |
) { | |
return null; | |
} else if (entry.initiatorType === undefined) { | |
notSupport = true; | |
} else if (entry.initiatorType === 'xmlhttprequest') { | |
if (entry.name === undefined || entry.duration === undefined) { | |
notSupport = true; | |
} else { | |
for (var scene in ajaxWhiteList) { | |
if (Object.prototype.hasOwnProperty.call(ajaxWhiteList, scene)) { | |
var ajaxItem = ajaxWhiteList[scene]; | |
if (ajaxItem.times < 10 && ajaxItem.reg.test(entry.name)) { | |
ajaxEntries.push({ | |
scene: scene, | |
protocol: entry.nextHopProtocol, | |
is_https: isHttps(entry), | |
time: entry.duration | |
}); | |
ajaxItem.times++; | |
} | |
} | |
} | |
} | |
return null; | |
} | |
return entry; | |
}); | |
if (notSupport || ajaxEntries.length === 0) return; | |
var data = { | |
stat_list: ajaxEntries | |
}; | |
var img = new Image(); | |
img.src = 'https://mp.weixin.qq.com/mp/timereport?data=' + JSON.stringify(data); | |
hasReported = true; | |
}; | |
window.addEventListener('beforeunload', reportResLoadTime, false); | |
window.addEventListener('unload', reportResLoadTime, false); | |
function isHttps(entry) { | |
if (/^https/.test(entry.name)) return 1; | |
else return 0; | |
} | |
})(); | |
var __DEBUGINFO = { | |
debug_js : '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/debug/console42f400.js', | |
safe_js : '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/safe/moonsafe42f400.js', | |
res_list: [] | |
}; | |
(function() { | |
var totalCount = 0, | |
finishCount = 0; | |
function _loadVConsolePlugin() { | |
window.vConsole = new window.VConsole(); | |
while (window.vConsolePlugins.length > 0) { | |
var p = window.vConsolePlugins.shift(); | |
window.vConsole.addPlugin(p); | |
} | |
} | |
function _addVConsole(uri, cb) { | |
totalCount++; | |
var node = document.createElement('SCRIPT'); | |
node.type = 'text/javascript'; | |
node.src = uri; | |
node.setAttribute('nonce', '1427377157'); | |
if (cb) { | |
node.onload = cb; | |
} | |
document.getElementsByTagName('head')[0].appendChild(node); | |
} | |
if ( | |
(document.cookie && document.cookie.indexOf('vconsole_open=1') > -1) | |
|| location.href.indexOf('vconsole=1') > -1 | |
) { | |
window.vConsolePlugins = []; | |
_addVConsole('//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/vconsole/3.2.2/vconsole.min440203.js', function() { | |
_addVConsole('//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/vconsole/plugin/vconsole-mpopt/1.0.1/vconsole-mpopt42f400.js', _loadVConsolePlugin); | |
}); | |
} | |
try { | |
var adIframeUrl = localStorage.getItem('__WXLS_ad_iframe_url'); | |
if (window === top) { | |
if (adIframeUrl) { | |
if (navigator.userAgent.indexOf('iPhone') > -1) { | |
var img = new Image(); | |
img.src = adIframeUrl; | |
} else { | |
var link = document.createElement('link'); | |
link.rel = 'prefetch'; | |
link.href = adIframeUrl; | |
document.getElementsByTagName('head')[0].appendChild(link); | |
} | |
} | |
} | |
} catch (err) { | |
} | |
})(); | |
function _typeof(e){ | |
return e&&'undefined'!=typeof Symbol&&e.constructor===Symbol?'symbol':typeof e; | |
} | |
!function(e){ | |
if('object'===('undefined'==typeof module?'undefined':_typeof(module)))module.exports=e;else{ | |
if(window.__second_open__)return; | |
var t='1587860492',n='1587779495',s='2020-04-25'; | |
e(t,n,s,document.getElementById('publish_time')); | |
} | |
}(function(e,t,n,s){ | |
var i='',o=86400,f=new Date(1e3*e),r=1*t,l=n||''; | |
f.setHours(0),f.setMinutes(0),f.setSeconds(0); | |
var c=f.getTime()/1e3; | |
f.setDate(1),f.setMonth(0); | |
var u=f.getTime()/1e3; | |
if(r>=c)i='今天';else if(r>=c-o)i='昨天';else if(r>=c-2*o)i='前天';else if(r>=c-3*o)i='3天前';else if(r>=c-4*o)i='4天前';else if(r>=c-5*o)i='5天前';else if(r>=c-6*o)i='6天前';else if(r>=c-14*o)i='1周前';else if(r>=u){ | |
var d=l.split('-'); | |
i='%s月%s日'.replace('%s',parseInt(d[1],10)).replace('%s',parseInt(d[2],10)); | |
}else i=l; | |
s&&(s.innerText=i,setTimeout(function(){ | |
s.onclick=function(){ | |
s.innerText=l; | |
}; | |
},10)); | |
}); | |
if (!window.console) window.console = { log: function() {} }; | |
if (typeof getComputedStyle == 'undefined') { | |
if (document.body.currentStyle) { | |
window.getComputedStyle = function(el) { | |
return el.currentStyle; | |
} | |
} else { | |
window.getComputedStyle = {}; | |
} | |
} | |
(function(){ | |
window.__zoom = 1; | |
(function(){ | |
var validArr = ','+([0.875, 1, 1.125, 1.25, 1.375]).join(',')+','; | |
var match = window.location.href.match(/winzoom=(\d+(?:\.\d+)?)/); | |
if (match && match[1]) { | |
var winzoom = parseFloat(match[1]); | |
if (validArr.indexOf(','+winzoom+',')>=0) { | |
window.__zoom = winzoom; | |
} | |
} | |
})(); | |
var ua = navigator.userAgent.toLowerCase(); | |
var re = new RegExp('msie ([0-9]+[\.0-9]*)'); | |
var version; | |
if (re.exec(ua) != null) { | |
version = parseInt(RegExp.$1); | |
} | |
var isIE = false; | |
if (typeof version != 'undefined' && version >= 6 && version <= 9) { | |
isIE = true; | |
} | |
var getMaxWith=function(){ | |
var container = document.getElementById('img-content'); | |
var max_width = container.offsetWidth; | |
var container_padding = 0; | |
var container_style = getComputedStyle(container); | |
container_padding = parseFloat(container_style.paddingLeft) + parseFloat(container_style.paddingRight); | |
max_width -= container_padding; | |
if (!max_width) { | |
max_width = window.innerWidth - 30; | |
} | |
return max_width; | |
}; | |
var getParentWidth = function(dom){ | |
var parent_width = 0; | |
var parent = dom.parentNode; | |
var outerWidth = 0; | |
while (true) { | |
if(!parent||parent.nodeType!=1) break; | |
var parent_style = getComputedStyle(parent); | |
if (!parent_style) break; | |
parent_width = parent.clientWidth - parseFloat(parent_style.paddingLeft) - parseFloat(parent_style.paddingRight) - outerWidth; | |
if (parent_width > 0) break; | |
outerWidth += parseFloat(parent_style.paddingLeft) + parseFloat(parent_style.paddingRight) + parseFloat(parent_style.marginLeft) + parseFloat(parent_style.marginRight) + parseFloat(parent_style.borderLeftWidth) + parseFloat(parent_style.borderRightWidth); | |
parent = parent.parentNode; | |
} | |
return parent_width; | |
} | |
var getOuterW=function(dom){ | |
var style=getComputedStyle(dom), | |
w=0; | |
if(!!style){ | |
w = parseFloat(style.paddingLeft) + parseFloat(style.paddingRight) + parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth); | |
} | |
return w; | |
}; | |
var getOuterH =function(dom){ | |
var style=getComputedStyle(dom), | |
h=0; | |
if(!!style){ | |
h = parseFloat(style.paddingTop) + parseFloat(style.paddingBottom) + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth); | |
} | |
return h; | |
}; | |
var insertAfter = function(dom,afterDom){ | |
var _p = afterDom.parentNode; | |
if(!_p){ | |
return; | |
} | |
if(_p.lastChild === afterDom){ | |
_p.appendChild(dom); | |
}else{ | |
_p.insertBefore(dom,afterDom.nextSibling); | |
} | |
}; | |
var getQuery = function(name,url){ | |
var u = arguments[1] || window.location.search, | |
reg = new RegExp('(^|&)'+ name +'=([^&]*)(&|$)'), | |
r = u.substr(u.indexOf('\?')+1).match(reg); | |
return r!=null?r[2]:''; | |
}; | |
function setImgSize(item, widthNum, widthUnit, ratio, breakParentWidth) { | |
setTimeout(function () { | |
var img_padding_border = getOuterW(item) || 0; | |
var img_padding_border_top_bottom = getOuterH(item) || 0; | |
if (widthNum > getParentWidth(item) && !breakParentWidth) { | |
widthNum = getParentWidth(item); | |
} | |
height = (widthNum - img_padding_border) * ratio + img_padding_border_top_bottom; | |
if (isIE) { | |
var url = item.getAttribute('data-src'); | |
item.src = url; | |
} else { | |
if(parseFloat(widthNum, 10) > 40 && height > 40 && breakParentWidth) { | |
item.className += ' img_loading'; | |
} | |
item.src = 'data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg=='; | |
} | |
item.style.cssText += ';width: ' + widthNum + widthUnit + ' !important;'; | |
item.style.cssText += ';height: ' + height + widthUnit + ' !important;'; | |
}, 10); | |
} | |
(function(){ | |
var images = document.getElementsByTagName('img'); | |
var length = images.length; | |
var max_width = getMaxWith(); | |
for (var i = 0; i < length; ++i) { | |
if (window.__second_open__ && images[i].getAttribute('__sec_open_place_holder__')) { | |
continue; | |
} | |
var imageItem = images[i]; | |
var src_ = imageItem.getAttribute('data-src'); | |
var realSrc = imageItem.getAttribute('src'); | |
if (!src_ || realSrc) continue; | |
var originWidth = imageItem.getAttribute('data-w'); | |
var ratio_ = 1 * imageItem.getAttribute('data-ratio'); | |
var height = 100; | |
if (ratio_ && ratio_ > 0) { | |
var parent_width = getParentWidth(imageItem) || max_width; | |
var initWidth = imageItem.style.width || imageItem.getAttribute('width') || originWidth || parent_width; | |
initWidth = parseFloat(initWidth, 10) > max_width ? max_width : initWidth; | |
if (initWidth) { | |
imageItem.setAttribute('_width', !isNaN(initWidth * 1) ? initWidth + 'px' : initWidth); | |
} | |
if (typeof initWidth === 'string' && initWidth.indexOf('%') !== -1) { | |
initWidth = parseFloat(initWidth.replace('%', ''), 10) / 100 * parent_width; | |
} | |
if (initWidth === 'auto') { | |
initWidth = originWidth; | |
} | |
var res = /^(\d+(?:\.\d+)?)([a-zA-Z%]+)?$/.exec(initWidth); | |
var widthNum = res && res.length >= 2 ? res[1] : 0; | |
var widthUnit = res && res.length >= 3 && res[2] ? res[2] : 'px'; | |
setImgSize(imageItem, widthNum, widthUnit, ratio_, true); | |
(function (item, widthNumber, unit, ratio) { | |
setTimeout(function () { | |
setImgSize(item, widthNumber, unit, ratio, false); | |
}); | |
})(imageItem, widthNum, widthUnit, ratio_); | |
} else { | |
imageItem.style.cssText += ';visibility: hidden !important;'; | |
} | |
} | |
})(); | |
window.__videoDefaultRatio=16/9; | |
window.__getVideoWh = function(dom){ | |
var max_width = getMaxWith(), | |
width = max_width, | |
ratio_ = dom.getAttribute('data-ratio')*1, | |
arr = [4/3, 16/9], | |
ret = arr[0], | |
abs = Math.abs(ret - ratio_); | |
if (!ratio_) { | |
if (dom.getAttribute('data-mpvid')) { | |
ratio_ = 16/9; | |
} else { | |
ratio_ = 4/3; | |
} | |
} else { | |
for (var j = 1, jl = arr.length; j < jl; j++) { | |
var _abs = Math.abs(arr[j] - ratio_); | |
if (_abs < abs) { | |
abs = _abs; | |
ret = arr[j]; | |
} | |
} | |
ratio_ = ret; | |
} | |
var parent_width = getParentWidth(dom)||max_width, | |
width = width > parent_width ? parent_width : width, | |
outerW = getOuterW(dom)||0, | |
outerH = getOuterH(dom)||0, | |
videoW = width - outerW, | |
videoH = videoW/ratio_, | |
height = videoH + outerH; | |
return {w:Math.ceil(width),h:Math.ceil(height),vh:videoH,vw:videoW,ratio:ratio_}; | |
}; | |
(function(){ | |
var iframe = document.getElementsByTagName('iframe'); | |
for (var i=0,il=iframe.length;i | |
if (window.__second_open__ && iframe[i].getAttribute('__sec_open_place_holder__')) { | |
continue; | |
} | |
var a = iframe[i]; | |
var src_ = a.getAttribute('src')||a.getAttribute('data-src')||''; | |
if(!/^http(s)*\:\/\/v\.qq\.com\/iframe\/(preview|player)\.html\?/.test(src_) | |
&& !/^http(s)*\:\/\/mp\.weixin\.qq\.com\/mp\/readtemplate\?t=pages\/video_player_tmpl/.test(src_) | |
){ | |
continue; | |
} | |
var vid = getQuery('vid',src_); | |
if(!vid){ | |
continue; | |
} | |
vid=vid.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,''); | |
a.removeAttribute('src'); | |
a.style.display = 'none'; | |
var obj = window.__getVideoWh(a), | |
videoPlaceHolderSpan = document.createElement('span'), | |
videoPlayerIconSpan = document.createElement('span'), | |
mydiv = document.createElement('img'); | |
videoPlaceHolderSpan.className = 'js_img_loading db'; | |
videoPlaceHolderSpan.setAttribute('data-vid', vid); | |
videoPlayerIconSpan.className = 'wx_video_context db'; | |
videoPlayerIconSpan.style.display = 'none'; | |
videoPlayerIconSpan.innerHTML = ''; | |
mydiv.className = 'img_loading'; | |
mydiv.src='data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg=='; | |
videoPlaceHolderSpan.style.cssText = 'width: ' + obj.w + 'px !important;'; | |
mydiv.style.cssText += ';width: ' + obj.w + 'px'; | |
videoPlaceHolderSpan.appendChild(videoPlayerIconSpan); | |
videoPlaceHolderSpan.appendChild(mydiv); | |
insertAfter(videoPlaceHolderSpan, a); | |
const parentNode = a.parentNode; | |
const copyIframe = a; | |
const index = i; | |
function ajax(obj){ | |
var url = obj.url; | |
var xhr = new XMLHttpRequest(); | |
var data = null; | |
if (typeof obj.data == 'object'){ | |
var d = obj.data; | |
data = []; | |
for(var k in d) { | |
if (d.hasOwnProperty(k)){ | |
data.push(k + '=' + encodeURIComponent(d[k])); | |
} | |
} | |
data = data.join('&'); | |
}else{ | |
data = typeof obj.data == 'string' ? obj.data : null; | |
} | |
xhr.open('POST', url, true); | |
xhr.onreadystatechange = function(){ | |
if( xhr.readyState == 4 ){ | |
if( xhr.status >= 200 && xhr.status < 400 ){ | |
obj.success && obj.success(xhr.responseText); | |
} else { | |
obj.error && obj.error(xhr); | |
} | |
obj.complete && obj.complete(); | |
obj.complete = null; | |
} | |
}; | |
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); | |
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest'); | |
xhr.send(data); | |
} | |
var mid = '2651919882' || ''|| ''; | |
var biz = 'MzA5NzIwMDM1NA=='||''; | |
var sessionid = ''||'svr_6c395084af5'; | |
var idx = '2'; | |
ajax({ | |
url: `mp/videoplayer?vid=${vid}&mid=${mid}&idx=1&__biz=${biz}&sessionid=${sessionid}&f=json`, | |
type: 'GET', | |
dataType: 'json', | |
success: function(json = '{}') { | |
console.log('DD') | |
var ret = JSON.parse(json); | |
console.log(ret) | |
var ori = ret.ori_status; | |
var hit_biz_headimg = ret.hit_biz_headimg + '/64'; | |
var hit_nickname = ret.hit_nickname; | |
var hit_username = ret.hit_username; | |
console.log(ori) | |
if(ori === 2) { | |
var videoBar = document.createElement('div'); | |
videoBar.innerHTML = ` | |
以下视频来源于 | |
${hit_nickname} | |
` | |
parentNode.insertBefore(videoBar, copyIframe); | |
let avatorEle = document.getElementById(hit_biz_headimg+index); | |
const avatorSrc = avatorEle.dataset.src; | |
console.log('avatorSrc' + avatorSrc); | |
if(ret.hit_biz_headimg) { | |
avatorEle.style.backgroundImage = `url(${avatorSrc})`; | |
} | |
} | |
}, | |
error: function(xhr) { | |
} | |
}); | |
a.style.cssText += ';width: ' + obj.w + 'px !important;'; | |
a.setAttribute('width',obj.w); | |
if(window.__zoom!=1){ | |
a.style.display = 'block'; | |
videoPlaceHolderSpan.style.display = 'none'; | |
a.setAttribute('_ratio',obj.ratio); | |
a.setAttribute('_vid',vid); | |
}else{ | |
videoPlaceHolderSpan.style.cssText += 'height: ' + obj.h + 'px !important;'; | |
mydiv.style.cssText += 'height: ' + obj.h + 'px !important;'; | |
a.style.cssText += 'height: ' + obj.h + 'px !important;'; | |
a.setAttribute('height',obj.h); | |
} | |
a.setAttribute('data-vh',obj.vh); | |
a.setAttribute('data-vw',obj.vw); | |
if(a.getAttribute('data-mpvid')){ | |
a.setAttribute('data-src',location.protocol+'//mp.weixin.qq.com/mp/readtemplate?t=pages/video_player_tmpl&auto=0&vid='+vid); | |
}else{ | |
a.setAttribute('data-src',location.protocol+'//v.qq.com/iframe/player.html?vid='+ vid + '&width='+obj.vw+'&height='+obj.vh+'&auto=0'); | |
} | |
} | |
})(); | |
(function(){ | |
if(window.__zoom!=1){ | |
if (!window.__second_open__) { | |
document.getElementById('page-content').style.zoom = window.__zoom; | |
var a = document.getElementById('activity-name'); | |
var b = document.getElementById('meta_content'); | |
if(!!a){ | |
a.style.zoom = 1/window.__zoom; | |
} | |
if(!!b){ | |
b.style.zoom = 1/window.__zoom; | |
} | |
} | |
var images = document.getElementsByTagName('img'); | |
for (var i = 0,il=images.length;i | |
if (window.__second_open__ && images[i].getAttribute('__sec_open_place_holder__')) { | |
continue; | |
} | |
images[i].style.zoom = 1/window.__zoom; | |
} | |
var iframe = document.getElementsByTagName('iframe'); | |
for (var i = 0,il=iframe.length;i | |
if (window.__second_open__ && iframe[i].getAttribute('__sec_open_place_holder__')) { | |
continue; | |
} | |
var a = iframe[i]; | |
a.style.zoom = 1/window.__zoom; | |
var src_ = a.getAttribute('data-src')||''; | |
if(!/^http(s)*\:\/\/v\.qq\.com\/iframe\/(preview|player)\.html\?/.test(src_) | |
&& !/^http(s)*\:\/\/mp\.weixin\.qq\.com\/mp\/readtemplate\?t=pages\/video_player_tmpl/.test(src_) | |
){ | |
continue; | |
} | |
var ratio = a.getAttribute('_ratio'); | |
var vid = a.getAttribute('_vid'); | |
a.removeAttribute('_ratio'); | |
a.removeAttribute('_vid'); | |
var vw = a.offsetWidth - (getOuterW(a)||0); | |
var vh = vw/ratio; | |
var h = vh + (getOuterH(a)||0) | |
a.style.cssText += 'height: ' + h + 'px !important;' | |
a.setAttribute('height',h); | |
if (/^http(s)*\:\/\/v\.qq\.com\/iframe\/(preview|player)\.html\?/.test(src_)) { | |
a.setAttribute('data-src', location.protocol + '//v.qq.com/iframe/player.html?vid=' + vid + '&width=' + vw + '&height=' + vh + '&auto=0'); | |
} | |
a.style.display = 'none'; | |
var parent = a.parentNode; | |
if(!parent){ | |
continue; | |
} | |
for(var j=0,jl=parent.children.length;j | |
var child = parent.children[j]; | |
if(child.className.indexOf('img_loading')>=0 && child.getAttribute('data-vid')==vid){ | |
child.style.cssText += 'height: ' + h + 'px !important;'; | |
child.style.display = ''; | |
} | |
} | |
} | |
} | |
})(); | |
})(); | |
!function(e){ | |
var t={ | |
defaultContentTpl:' | |
config:[{ | |
querySelector:'redpacketcover', | |
genId:function(){ | |
var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0]; | |
return decodeURIComponent(e.node.getAttribute('data-coveruri')||''); | |
}, | |
calW:function(){ | |
var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0]; | |
return.7854*e.parentWidth; | |
}, | |
calH:function(){ | |
var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0]; | |
return this.calW({ | |
parentWidth:e.parentWidth | |
})/.73346+27+37; | |
}, | |
replaceContentCssText:'', | |
appendContentCssText:'display: inline-block;position: relative;', | |
outerContainerLeft:' | |
outerContainerRight:'' | |
},{ | |
querySelector:'qqmusic', | |
genId:function(){ | |
var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0]; | |
return(e.node.getAttribute('musicid')||'').replace(/^\s/,'').replace(/\s$/,'')+'_'+e.index; | |
}, | |
calW:function(){ | |
var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0]; | |
return 1*e.parentWidth; | |
}, | |
calH:function(){ | |
return 88; | |
}, | |
replaceContentCssText:'', | |
appendContentCssText:'margin:16px 0;diplay:block;', | |
outerContainerLeft:'', | |
outerContainerRight:'' | |
},{ | |
querySelector:'mpvoice', | |
genId:function(){ | |
var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=decodeURIComponent(e.node.getAttribute('voice_encode_fileid')||'').replace(/^\s/,'').replace(/\s$/,''); | |
return t+'_'+e.index; | |
}, | |
calW:function(){ | |
var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0]; | |
return 1*e.parentWidth; | |
}, | |
calH:function(){ | |
return 122; | |
}, | |
replaceContentCssText:'', | |
appendContentCssText:'margin:16px 0;diplay:block;', | |
outerContainerLeft:'', | |
outerContainerRight:'' | |
},{ | |
querySelector:'mpsearch', | |
genId:function(){ | |
return decodeURIComponent('mpsearch'); | |
}, | |
calW:function(){ | |
var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0]; | |
return 1*e.parentWidth; | |
}, | |
calH:function(){ | |
return 100; | |
}, | |
replaceContentCssText:'', | |
appendContentCssText:'margin:16px 0;diplay:block;', | |
outerContainerLeft:'', | |
outerContainerRight:'' | |
}] | |
}; | |
e(t); | |
}(function(){ | |
var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0]; | |
if('function'==typeof document.querySelectorAll)for(var t={ | |
maxWith:document.getElementById('img-content').getBoundingClientRect().width, | |
idAttr:'data-preloadingid' | |
},n=0,r=e.config.length;r>n;n++)for(var i=e.config[n],a=document.querySelectorAll(i.querySelector),o=0,g=a.length;g>o;o++){ | |
var s=a[o],l=s.parentNode.getBoundingClientRect().width; | |
l=Math.min(l,t.maxWith); | |
var u=i.calW({ | |
parentWidth:l | |
}),c=i.calH({ | |
parentWidth:l | |
}),d=i.genId({ | |
index:o, | |
node:s | |
}),p=e.defaultContentTpl.replace(/#height#/g,c).replace(/#width#/g,u),m=document.createElement('div'); | |
if(m.innerHTML=p,i.replaceContentCssText){ | |
var h=i.replaceContentCssText.replace(/#height#/g,c).replace(/#width#/g,u); | |
m.firstChild.style.cssText=h; | |
}else i.appendContentCssText&&(m.firstChild.style.cssText+=i.appendContentCssText); | |
var C=i.outerContainerLeft+m.innerHTML+i.outerContainerRight; | |
m.innerHTML=C,m.firstChild.setAttribute(t.idAttr,d),s.parentNode.insertBefore(m.firstChild,s.nextSibling); | |
} | |
}); | |
var whiteList = 'rich_pages,blockquote_info,blockquote_biz,blockquote_other,blockquote_article,js_jump_icon,h5_image_link,js_banner_container,js_list_container,js_cover,js_tx_video_container,js_product_err_container,js_product_loop_content,js_product_container,img_loading,list-paddingleft-1,list-paddingleft-2,list-paddingleft-3,selectTdClass,noBorderTable,ue-table-interlace-color-single,ue-table-interlace-color-double,__bg_gif,weapp_text_link,weapp_image_link,js_img_loading,wx_video_context,db,wx_video_thumb_primary,wx_video_play_btn,wx_video_mask,qqmusic_area,tc,tips_global,unsupport_tips,qqmusic_wrp,appmsg_card_context,appmsg_card_active,qqmusic_bd,play_area,icon_qqmusic_switch,pic_qqmusic_default,qqmusic_thumb,access_area,qqmusic_songname,qqmusic_singername,qqmusic_source,js_audio_frame,share_audio_context,flex_context,pages_reset,share_audio_switch,icon_share_audio_switch,share_audio_info,flex_bd,share_audio_title,share_audio_tips,share_audio_progress_wrp,share_audio_progress,share_audio_progress_inner,share_audio_progress_buffer,share_audio_progress_loading,share_audio_progress_loading_inner,share_audio_progress_handle,share_audio_desc,share_audio_length_current,share_audio_length_total,video_iframe,vote_iframe,js_editor_vote_card,res_iframe,card_iframe,js_editor_card,weapp_display_element,js_weapp_display_element,weapp_card,app_context,weapp_card_bd,weapp_card_profile,radius_avatar,weapp_card_avatar,weapp_card_nickname,weapp_card_info,weapp_card_title,weapp_card_thumb_wrp,weapp_card_ft,weapp_card_logo,js_pay_btn,pay,pay__mask,wx_video_loading,js_redpacketcover,js_uneditable,js_uneditablemouseover,js_editor_qqmusic,js_editor_audio'.split(','); | |
var qaClassPrefix = 'qa__'; | |
var whiteListReg = [ | |
new RegExp('^weui'), | |
new RegExp('^appmsg'), | |
new RegExp('^audio'), | |
new RegExp('^music'), | |
new RegExp('^cps_inner'), | |
new RegExp('^bizsvr_'), | |
new RegExp('^code-snippet'), | |
new RegExp('^' + qaClassPrefix), | |
new RegExp('^wx-edui-'), | |
new RegExp('^wx_'), | |
new RegExp('^wx-'), | |
new RegExp('^js_darkmode__'), | |
]; | |
var new_appmsg = 1; | |
var item_show_type = '0'; | |
var can_see_complaint = '1'; | |
var not_in_mm_css = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/style/page/appmsg_new/not_in_mm4ceffd.css'; | |
var windowwx_css = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/style/page/appmsg_new/winwx4c4161.css'; | |
var article_improve_combo_css = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/style/page/appmsg_new/combo4d546f.css'; | |
var tid = ''; | |
var aid = ''; | |
var clientversion = '62080079'; | |
var appuin = 'MzA5NzIwMDM1NA=='||''; | |
var source = '1'; | |
var ascene = '1'; | |
var subscene = ''; | |
var sessionid = ''||'svr_6c395084af5'; | |
var abtest_cookie = ''; | |
var scene = 75; | |
var itemidx = ''; | |
var appmsg_token = '1058_tdlwgKzCaf54NZy4VXBstFnE7na97sAWVJplGrzIR72cth0e8RE_eexZczb8HKIqGlrM7kJKWJARpo-t'; | |
var _copyright_stat = '0'; | |
var _ori_article_type = ''; | |
var is_follow = ''; | |
var nickname = '湖北省激光行业协会'; | |
var appmsg_type = '9'; | |
var ct = '1587779495'; | |
var user_name = 'gh_24f8af942316'; | |
var fakeid = ''; | |
var version = ''; | |
var is_limit_user = '0'; | |
var round_head_img = 'http://mmbiz.qpic.cn/mmbiz_png/HqTUKV66UfkdhDaLnUug07xVIsDOW5Yu22nR0KOSyMybDZib4uFUIVFsx78o2ZJL1ZZpU3ia7Oo3HOdahPwU59ow/0?wx_fmt=png'; | |
var hd_head_img = 'http://wx.qlogo.cn/mmhead/Q3auHgzwzM6wOcjkxCMqF06DugBKSTvN6aUKDaAVpDXqZfEA9Q1sRw/0'||''; | |
var ori_head_img_url = 'http://wx.qlogo.cn/mmhead/Q3auHgzwzM6wOcjkxCMqF06DugBKSTvN6aUKDaAVpDXqZfEA9Q1sRw/132'; | |
var msg_title = '激光产品速递0424'.html(false); | |
var msg_desc = '武汉企业专场(一):华工激光、光至科技、御拓激光、松盛光电'; | |
var msg_cdn_url = 'http://mmbiz.qpic.cn/sz_mmbiz_jpg/HqTUKV66UfmYOY5dZX40tYoicIDz3QxeXoBwGmFlia20taXJM09NjJKzP08t7qs15va0LVTABTcpOIptYXGCz8Qg/0?wx_fmt=jpeg'; | |
var cdn_url_1_1 = 'https://mmbiz.qlogo.cn/sz_mmbiz_jpg/HqTUKV66UfmYOY5dZX40tYoicIDz3QxeXoBwGmFlia20taXJM09NjJKzP08t7qs15va0LVTABTcpOIptYXGCz8Qg/0?wx_fmt=jpeg'; | |
var cdn_url_235_1 = 'https://mmbiz.qlogo.cn/sz_mmbiz_jpg/HqTUKV66UfmYOY5dZX40tYoicIDz3QxeXoBwGmFlia20taXJM09NjJKzP08t7qs15va0LVTABTcpOIptYXGCz8Qg/0?wx_fmt=jpeg'; | |
var msg_link = 'http://mp.weixin.qq.com/s?__biz=MzA5NzIwMDM1NA==&mid=2651919882&idx=2&sn=84b6c24124e431cbe64438451847d9c9&chksm=8b41c787bc364e911a12dd8e94367ada99ec12cd82f9e08251765f6e4dcfb65d1745711f2803#rd'; | |
var user_uin = '1185626317'*1; | |
var msg_source_url = ''; | |
var img_format = 'jpeg'; | |
var srcid = '0426h3sQLyZPYulSrVjmQR2W'; | |
var req_id = '2608JlHUKDDD40fryhk1TK2T'; | |
var networkType; | |
var appmsgid = '' || '2651919882'|| ''; | |
var comment_id = '1311763949314048000' || '1311763949314048000' * 1; | |
var comment_enabled = '' * 1; | |
var is_https_res = ('' * 1) && (location.protocol == 'https:'); | |
var msg_daily_idx = '1' || ''; | |
var profileReportInfo = '' || ''; | |
var devicetype = 'Windows\x26nbsp;7'; | |
var source_encode_biz = ''; | |
var source_username = ''; | |
var reprint_ticket = ''; | |
var source_mid = ''; | |
var source_idx = ''; | |
var source_biz = ''; | |
var author_id = ''; | |
var optimizing_flag = '0' * 1; | |
var show_comment = '0'; | |
var __appmsgCgiData = { | |
wxa_product : ''*1, | |
wxa_cps : ''*1, | |
show_msg_voice: '0'*1, | |
can_use_page : '0'*1, | |
is_wxg_stuff_uin : '0'*1, | |
card_pos : '', | |
copyright_stat : '0', | |
source_biz : '', | |
hd_head_img : 'http://wx.qlogo.cn/mmhead/Q3auHgzwzM6wOcjkxCMqF06DugBKSTvN6aUKDaAVpDXqZfEA9Q1sRw/0'||(window.location.protocol+'//'+window.location.host + '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/pic/appmsg/pic_rumor_link.2x42f400.jpg'), | |
has_red_packet_cover: '0' * 1 || 0 | |
}; | |
var _empty_v = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/pic/pages/voice/empty42f400.mp3'; | |
var copyright_stat = '0' * 1; | |
var hideSource = '' * 1; | |
var pay_fee = '' * 1; | |
var pay_timestamp = ''; | |
var need_pay = '' * 1; | |
var need_report_cost = '0' * 1; | |
var use_tx_video_player = '0' * 1; | |
var appmsg_fe_filter = 'contenteditable'; | |
var friend_read_source = '' || ''; | |
var friend_read_version = '' || ''; | |
var friend_read_class_id = '' || ''; | |
var is_only_read = '1' * 1; | |
var read_num = '' * 1; | |
var like_num = '' * 1; | |
var liked = '' == 'true' ? true : false; | |
var is_temp_url = '' ? 1 : 0; | |
var send_time = ''; | |
var icon_emotion_switch = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/emotion/icon_emotion_switch46b604.svg'; | |
var icon_emotion_switch_active = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/emotion/icon_emotion_switch_active46b604.svg'; | |
var icon_emotion_switch_primary = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/emotion/icon_emotion_switch_primary46b604.svg'; | |
var icon_emotion_switch_active_primary = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/emotion/icon_emotion_switch_active_primary46b604.svg'; | |
var icon_loading_white = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/common/icon_loading_white42f400.gif'; | |
var icon_audio_unread = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/audio/icon_audio_unread42f400.png'; | |
var icon_qqmusic_default = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/qqmusic/icon_qqmusic_default.2x42f400.png'; | |
var icon_qqmusic_source = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/qqmusic/icon_qqmusic_source4abca9.svg'; | |
var icon_kugou_source = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/kugou/icon_kugou_source42f400.png'; | |
var topic_default_img = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/topic/pic_book_thumb.2x42f400.png'; | |
var comment_edit_icon = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg_new/icon_edit42f400.png'; | |
var comment_loading_img = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/common/icon_loading_white42f400.gif'; | |
var voice_in_appmsg = { | |
'1':'1' | |
}; | |
var reprint_style = ''*1; | |
var wxa_img_alert = '' != 'false'; | |
var img_popup = 1; | |
var more_read_type = '0'*1; | |
var weapp_sn_arr_json = '' || ''; | |
var ban_scene = '0' * 1; | |
var svr_time = '1587860492' * 1; | |
var is_transfer_msg = ''*1||0; | |
var malicious_title_reason_id = '0' * 1; | |
var malicious_content_type = '0' * 1; | |
var modify_time = ''; | |
var isprofileblock = '0'; | |
var hotspotInfoList = [ | |
]; | |
var jumpInfo = [ | |
]; | |
var hasRelatedArticleInfo = '0' * 1 || 0; | |
var relatedArticleFlag = '0' * 1 || 0; | |
window.wxtoken = '777'; | |
window.is_login = '1' * 1; | |
window.__moon_initcallback = function(){ | |
if(!!window.__initCatch){ | |
window.__initCatch({ | |
idkey : 27611+2, | |
startKey : 0, | |
limit : 128, | |
badjsId: 43, | |
reportOpt : { | |
uin : uin, | |
biz : biz, | |
mid : mid, | |
idx : idx, | |
sn : sn | |
}, | |
extInfo : { | |
network_rate : 0.01, | |
badjs_rate: 0.1 | |
} | |
}); | |
} | |
} | |
var title ='湖北省激光行业协会'; | |
var is_new_msg=true; | |
var is_wash = '' * 1; | |
var topbarEnable = false; | |
var enterid = '' * 1 || '' * 1 || parseInt(Date.now() / 1000); | |
var appid_list = ''; | |
var miniprogram_appid = ''; | |
var defaultAvatarUrl = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/pic/common/avatar_default46e3e2.svg'; | |
document.addEventListener('DOMContentLoaded', function () { | |
window.domCompleteTime = Date.now(); | |
}); | |
var hasRecommendMsg = 0; | |
; | |
var isPaySubscribe = '0' * 1; | |
var isPaid = '0' * 1; | |
var payShowIAPPrice = 1; | |
var payProductId = '' || ''; | |
var previewPercent = '0' || ''; | |
var is_finished_preview = 0; | |
var jump2pay = '' * 1; | |
var isFans; | |
var is_need_reward = (isPaySubscribe && !isPaid) ? 0 : '0' * 1; | |
!function(e,t){ | |
'object'==typeof exports&&'object'==typeof module?module.exports=t():'function'==typeof define&&define.amd?define('Darkmode',[],t):'object'==typeof exports?exports.Darkmode=t():e.Darkmode=t(); | |
}(window,function(){ | |
return function(e){ | |
function t(n){ | |
if(r[n])return r[n].exports; | |
var a=r[n]={ | |
i:n, | |
l:!1, | |
exports:{} | |
}; | |
return e[n].call(a.exports,a,a.exports,t),a.l=!0,a.exports; | |
} | |
var r={}; | |
return t.m=e,t.c=r,t.d=function(e,r,n){ | |
t.o(e,r)||Object.defineProperty(e,r,{ | |
enumerable:!0, | |
get:n | |
}); | |
},t.r=function(e){ | |
'undefined'!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{ | |
value:'Module' | |
}),Object.defineProperty(e,'__esModule',{ | |
value:!0 | |
}); | |
},t.t=function(e,r){ | |
if(1&r&&(e=t(e)),8&r)return e; | |
if(4&r&&'object'==typeof e&&e&&e.__esModule)return e; | |
var n=Object.create(null); | |
if(t.r(n),Object.defineProperty(n,'default',{ | |
enumerable:!0, | |
value:e | |
}),2&r&&'string'!=typeof e)for(var a in e)t.d(n,a,function(t){ | |
return e[t]; | |
}.bind(null,a)); | |
return n; | |
},t.n=function(e){ | |
var r=e&&e.__esModule?function(){ | |
return e.default; | |
}:function(){ | |
return e; | |
}; | |
return t.d(r,'a',r),r; | |
},t.o=function(e,t){ | |
return Object.prototype.hasOwnProperty.call(e,t); | |
},t.p='',t(t.s=9); | |
}([function(e,t,r){ | |
'use strict'; | |
function n(e,t){ | |
if(!(this instanceof n))return new n(e,t); | |
if(t&&t in h&&(t=null),t&&!(t in u))throw new Error('Unknown model: '+t); | |
var r,a; | |
if(null==e)this.model='rgb',this.color=[0,0,0],this.valpha=1;else if(e instanceof n)this.model=e.model, | |
this.color=e.color.slice(),this.valpha=e.valpha;else if('string'==typeof e){ | |
var o=l.get(e); | |
if(null===o)throw new Error('Unable to parse color from string: '+e); | |
this.model=o.model,a=u[this.model].channels,this.color=o.value.slice(0,a),this.valpha='number'==typeof o.value[a]?o.value[a]:1; | |
}else if(e.length){ | |
this.model=t||'rgb',a=u[this.model].channels; | |
var i=c.call(e,0,a); | |
this.color=s(i,a),this.valpha='number'==typeof e[a]?e[a]:1; | |
}else if('number'==typeof e)e&=16777215,this.model='rgb',this.color=[e>>16&255,e>>8&255,255&e], | |
this.valpha=1;else{ | |
this.valpha=1; | |
var d=Object.keys(e); | |
'alpha'in e&&(d.splice(d.indexOf('alpha'),1),this.valpha='number'==typeof e.alpha?e.alpha:0); | |
var b=d.sort().join(''); | |
if(!(b in f))throw new Error('Unable to parse color from object: '+JSON.stringify(e)); | |
this.model=f[b]; | |
var p=u[this.model].labels,m=[]; | |
for(r=0;r | |
this.color=s(m); | |
} | |
if(g[this.model])for(a=u[this.model].channels,r=0;a>r;r++){ | |
var y=g[this.model][r]; | |
y&&(this.color[r]=y(this.color[r])); | |
} | |
this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this); | |
} | |
function a(e,t,r){ | |
return(e=Array.isArray(e)?e:[e]).forEach(function(e){ | |
(g[e]||(g[e]=[]))[t]=r; | |
}),e=e[0],function(n){ | |
var a; | |
return arguments.length?(r&&(n=r(n)),(a=this[e]()).color[t]=n,a):(a=this[e]().color[t], | |
r&&(a=r(a)),a); | |
}; | |
} | |
function o(e){ | |
return function(t){ | |
return Math.max(0,Math.min(e,t)); | |
}; | |
} | |
function i(e){ | |
return Array.isArray(e)?e:[e]; | |
} | |
function s(e,t){ | |
for(var r=0;t>r;r++)'number'!=typeof e[r]&&(e[r]=0); | |
return e; | |
} | |
var l=r(3),u=r(6),c=[].slice,h=['keyword','gray','hex'],f={}; | |
Object.keys(u).forEach(function(e){ | |
f[c.call(u[e].labels).sort().join('')]=e; | |
}); | |
var g={}; | |
n.prototype={ | |
toString:function(){ | |
return this.string(); | |
}, | |
toJSON:function(){ | |
return this[this.model](); | |
}, | |
string:function(e){ | |
var t=this.model in l.to?this:this.rgb(),r=1===(t=t.round('number'==typeof e?e:1)).valpha?t.color:t.color.concat(this.valpha); | |
return l.to[t.model](r); | |
}, | |
percentString:function(e){ | |
var t=this.rgb().round('number'==typeof e?e:1),r=1===t.valpha?t.color:t.color.concat(this.valpha); | |
return l.to.rgb.percent(r); | |
}, | |
array:function(){ | |
return 1===this.valpha?this.color.slice():this.color.concat(this.valpha); | |
}, | |
object:function(){ | |
for(var e={},t=u[this.model].channels,r=u[this.model].labels,n=0;t>n;n++)e[r[n]]=this.color[n]; | |
return 1!==this.valpha&&(e.alpha=this.valpha),e; | |
}, | |
unitArray:function(){ | |
var e=this.rgb().color; | |
return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e; | |
}, | |
unitObject:function(){ | |
var e=this.rgb().object(); | |
return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e; | |
}, | |
round:function(e){ | |
return e=Math.max(e||0,0),new n(this.color.map(function(e){ | |
return function(t){ | |
return function(e,t){ | |
return Number(e.toFixed(t)); | |
}(t,e); | |
}; | |
}(e)).concat(this.valpha),this.model); | |
}, | |
alpha:function(e){ | |
return arguments.length?new n(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha; | |
}, | |
red:a('rgb',0,o(255)), | |
green:a('rgb',1,o(255)), | |
blue:a('rgb',2,o(255)), | |
hue:a(['hsl','hsv','hsl','hwb','hcg'],0,function(e){ | |
return(e%360+360)%360; | |
}), | |
saturationl:a('hsl',1,o(100)), | |
lightness:a('hsl',2,o(100)), | |
saturationv:a('hsv',1,o(100)), | |
value:a('hsv',2,o(100)), | |
chroma:a('hcg',1,o(100)), | |
gray:a('hcg',2,o(100)), | |
white:a('hwb',1,o(100)), | |
wblack:a('hwb',2,o(100)), | |
cyan:a('cmyk',0,o(100)), | |
magenta:a('cmyk',1,o(100)), | |
yellow:a('cmyk',2,o(100)), | |
black:a('cmyk',3,o(100)), | |
x:a('xyz',0,o(100)), | |
y:a('xyz',1,o(100)), | |
z:a('xyz',2,o(100)), | |
l:a('lab',0,o(100)), | |
a:a('lab',1), | |
b:a('lab',2), | |
keyword:function(e){ | |
return arguments.length?new n(e):u[this.model].keyword(this.color); | |
}, | |
hex:function(e){ | |
return arguments.length?new n(e):l.to.hex(this.rgb().round().color); | |
}, | |
rgbNumber:function(){ | |
var e=this.rgb().color; | |
return(255&e[0])<<16|(255&e[1])<<8|255&e[2]; | |
}, | |
luminosity:function(){ | |
for(var e=this.rgb().color,t=[],r=0;r | |
var n=e[r]/255; | |
t[r]=.03928>=n?n/12.92:Math.pow((n+.055)/1.055,2.4); | |
} | |
return.2126*t[0]+.7152*t[1]+.0722*t[2]; | |
}, | |
contrast:function(e){ | |
var t=this.luminosity(),r=e.luminosity(); | |
return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05); | |
}, | |
level:function(e){ | |
var t=this.contrast(e); | |
return t>=7.1?'AAA':t>=4.5?'AA':''; | |
}, | |
isDark:function(){ | |
var e=this.rgb().color; | |
return(299*e[0]+587*e[1]+114*e[2])/1e3<128; | |
}, | |
isLight:function(){ | |
return!this.isDark(); | |
}, | |
negate:function(){ | |
for(var e=this.rgb(),t=0;3>t;t++)e.color[t]=255-e.color[t]; | |
return e; | |
}, | |
lighten:function(e){ | |
var t=this.hsl(); | |
return t.color[2]+=t.color[2]*e,t; | |
}, | |
darken:function(e){ | |
var t=this.hsl(); | |
return t.color[2]-=t.color[2]*e,t; | |
}, | |
saturate:function(e){ | |
var t=this.hsl(); | |
return t.color[1]+=t.color[1]*e,t; | |
}, | |
desaturate:function(e){ | |
var t=this.hsl(); | |
return t.color[1]-=t.color[1]*e,t; | |
}, | |
whiten:function(e){ | |
var t=this.hwb(); | |
return t.color[1]+=t.color[1]*e,t; | |
}, | |
blacken:function(e){ | |
var t=this.hwb(); | |
return t.color[2]+=t.color[2]*e,t; | |
}, | |
grayscale:function(){ | |
var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2]; | |
return n.rgb(t,t,t); | |
}, | |
fade:function(e){ | |
return this.alpha(this.valpha-this.valpha*e); | |
}, | |
opaquer:function(e){ | |
return this.alpha(this.valpha+this.valpha*e); | |
}, | |
rotate:function(e){ | |
var t=this.hsl(),r=t.color[0]; | |
return r=(r=(r+e)%360)<0?360+r:r,t.color[0]=r,t; | |
}, | |
mix:function(e,t){ | |
if(!e||!e.rgb)throw new Error('Argument to 'mix' was not a Color instance, but rather an instance of '+typeof e); | |
var r=e.rgb(),a=this.rgb(),o=void 0===t?.5:t,i=2*o-1,s=r.alpha()-a.alpha(),l=((i*s==-1?i:(i+s)/(1+i*s))+1)/2,u=1-l; | |
return n.rgb(l*r.red()+u*a.red(),l*r.green()+u*a.green(),l*r.blue()+u*a.blue(),r.alpha()*o+a.alpha()*(1-o)); | |
} | |
},Object.keys(u).forEach(function(e){ | |
if(-1===h.indexOf(e)){ | |
var t=u[e].channels; | |
n.prototype[e]=function(){ | |
if(this.model===e)return new n(this); | |
if(arguments.length)return new n(arguments,e); | |
var r='number'==typeof arguments[t]?t:this.valpha; | |
return new n(i(u[this.model][e].raw(this.color)).concat(r),e); | |
},n[e]=function(r){ | |
return'number'==typeof r&&(r=s(c.call(arguments),t)),new n(r,e); | |
}; | |
} | |
}),e.exports=n; | |
},function(e){ | |
'use strict'; | |
e.exports={ | |
aliceblue:[240,248,255], | |
antiquewhite:[250,235,215], | |
aqua:[0,255,255], | |
aquamarine:[127,255,212], | |
azure:[240,255,255], | |
beige:[245,245,220], | |
bisque:[255,228,196], | |
black:[0,0,0], | |
blanchedalmond:[255,235,205], | |
blue:[0,0,255], | |
blueviolet:[138,43,226], | |
brown:[165,42,42], | |
burlywood:[222,184,135], | |
cadetblue:[95,158,160], | |
chartreuse:[127,255,0], | |
chocolate:[210,105,30], | |
coral:[255,127,80], | |
cornflowerblue:[100,149,237], | |
cornsilk:[255,248,220], | |
crimson:[220,20,60], | |
cyan:[0,255,255], | |
darkblue:[0,0,139], | |
darkcyan:[0,139,139], | |
darkgoldenrod:[184,134,11], | |
darkgray:[169,169,169], | |
darkgreen:[0,100,0], | |
darkgrey:[169,169,169], | |
darkkhaki:[189,183,107], | |
darkmagenta:[139,0,139], | |
darkolivegreen:[85,107,47], | |
darkorange:[255,140,0], | |
darkorchid:[153,50,204], | |
darkred:[139,0,0], | |
darksalmon:[233,150,122], | |
darkseagreen:[143,188,143], | |
darkslateblue:[72,61,139], | |
darkslategray:[47,79,79], | |
darkslategrey:[47,79,79], | |
darkturquoise:[0,206,209], | |
darkviolet:[148,0,211], | |
deeppink:[255,20,147], | |
deepskyblue:[0,191,255], | |
dimgray:[105,105,105], | |
dimgrey:[105,105,105], | |
dodgerblue:[30,144,255], | |
firebrick:[178,34,34], | |
floralwhite:[255,250,240], | |
forestgreen:[34,139,34], | |
fuchsia:[255,0,255], | |
gainsboro:[220,220,220], | |
ghostwhite:[248,248,255], | |
gold:[255,215,0], | |
goldenrod:[218,165,32], | |
gray:[128,128,128], | |
green:[0,128,0], | |
greenyellow:[173,255,47], | |
grey:[128,128,128], | |
honeydew:[240,255,240], | |
hotpink:[255,105,180], | |
indianred:[205,92,92], | |
indigo:[75,0,130], | |
ivory:[255,255,240], | |
khaki:[240,230,140], | |
lavender:[230,230,250], | |
lavenderblush:[255,240,245], | |
lawngreen:[124,252,0], | |
lemonchiffon:[255,250,205], | |
lightblue:[173,216,230], | |
lightcoral:[240,128,128], | |
lightcyan:[224,255,255], | |
lightgoldenrodyellow:[250,250,210], | |
lightgray:[211,211,211], | |
lightgreen:[144,238,144], | |
lightgrey:[211,211,211], | |
lightpink:[255,182,193], | |
lightsalmon:[255,160,122], | |
lightseagreen:[32,178,170], | |
lightskyblue:[135,206,250], | |
lightslategray:[119,136,153], | |
lightslategrey:[119,136,153], | |
lightsteelblue:[176,196,222], | |
lightyellow:[255,255,224], | |
lime:[0,255,0], | |
limegreen:[50,205,50], | |
linen:[250,240,230], | |
magenta:[255,0,255], | |
maroon:[128,0,0], | |
mediumaquamarine:[102,205,170], | |
mediumblue:[0,0,205], | |
mediumorchid:[186,85,211], | |
mediumpurple:[147,112,219], | |
mediumseagreen:[60,179,113], | |
mediumslateblue:[123,104,238], | |
mediumspringgreen:[0,250,154], | |
mediumturquoise:[72,209,204], | |
mediumvioletred:[199,21,133], | |
midnightblue:[25,25,112], | |
mintcream:[245,255,250], | |
mistyrose:[255,228,225], | |
moccasin:[255,228,181], | |
navajowhite:[255,222,173], | |
navy:[0,0,128], | |
oldlace:[253,245,230], | |
olive:[128,128,0], | |
olivedrab:[107,142,35], | |
orange:[255,165,0], | |
orangered:[255,69,0], | |
orchid:[218,112,214], | |
palegoldenrod:[238,232,170], | |
palegreen:[152,251,152], | |
paleturquoise:[175,238,238], | |
palevioletred:[219,112,147], | |
papayawhip:[255,239,213], | |
peachpuff:[255,218,185], | |
peru:[205,133,63], | |
pink:[255,192,203], | |
plum:[221,160,221], | |
powderblue:[176,224,230], | |
purple:[128,0,128], | |
rebeccapurple:[102,51,153], | |
red:[255,0,0], | |
rosybrown:[188,143,143], | |
royalblue:[65,105,225], | |
saddlebrown:[139,69,19], | |
salmon:[250,128,114], | |
sandybrown:[244,164,96], | |
seagreen:[46,139,87], | |
seashell:[255,245,238], | |
sienna:[160,82,45], | |
silver:[192,192,192], | |
skyblue:[135,206,235], | |
slateblue:[106,90,205], | |
slategray:[112,128,144], | |
slategrey:[112,128,144], | |
snow:[255,250,250], | |
springgreen:[0,255,127], | |
steelblue:[70,130,180], | |
tan:[210,180,140], | |
teal:[0,128,128], | |
thistle:[216,191,216], | |
tomato:[255,99,71], | |
turquoise:[64,224,208], | |
violet:[238,130,238], | |
wheat:[245,222,179], | |
white:[255,255,255], | |
whitesmoke:[245,245,245], | |
yellow:[255,255,0], | |
yellowgreen:[154,205,50] | |
}; | |
},function(e,t,r){ | |
var n=r(7),a={}; | |
for(var o in n)n.hasOwnProperty(o)&&(a[n[o]]=o); | |
var i=e.exports={ | |
rgb:{ | |
channels:3, | |
labels:'rgb' | |
}, | |
hsl:{ | |
channels:3, | |
labels:'hsl' | |
}, | |
hsv:{ | |
channels:3, | |
labels:'hsv' | |
}, | |
hwb:{ | |
channels:3, | |
labels:'hwb' | |
}, | |
cmyk:{ | |
channels:4, | |
labels:'cmyk' | |
}, | |
xyz:{ | |
channels:3, | |
labels:'xyz' | |
}, | |
lab:{ | |
channels:3, | |
labels:'lab' | |
}, | |
lch:{ | |
channels:3, | |
labels:'lch' | |
}, | |
hex:{ | |
channels:1, | |
labels:['hex'] | |
}, | |
keyword:{ | |
channels:1, | |
labels:['keyword'] | |
}, | |
ansi16:{ | |
channels:1, | |
labels:['ansi16'] | |
}, | |
ansi256:{ | |
channels:1, | |
labels:['ansi256'] | |
}, | |
hcg:{ | |
channels:3, | |
labels:['h','c','g'] | |
}, | |
apple:{ | |
channels:3, | |
labels:['r16','g16','b16'] | |
}, | |
gray:{ | |
channels:1, | |
labels:['gray'] | |
} | |
}; | |
for(var s in i)if(i.hasOwnProperty(s)){ | |
if(!('channels'in i[s]))throw new Error('missing channels property: '+s); | |
if(!('labels'in i[s]))throw new Error('missing channel labels property: '+s); | |
if(i[s].labels.length!==i[s].channels)throw new Error('channel and label counts mismatch: '+s); | |
var l=i[s].channels,u=i[s].labels; | |
delete i[s].channels,delete i[s].labels,Object.defineProperty(i[s],'channels',{ | |
value:l | |
}),Object.defineProperty(i[s],'labels',{ | |
value:u | |
}); | |
} | |
i.rgb.hsl=function(e){ | |
var t,r,n=e[0]/255,a=e[1]/255,o=e[2]/255,i=Math.min(n,a,o),s=Math.max(n,a,o),l=s-i; | |
return s===i?t=0:n===s?t=(a-o)/l:a===s?t=2+(o-n)/l:o===s&&(t=4+(n-a)/l),(t=Math.min(60*t,360))<0&&(t+=360), | |
r=(i+s)/2,[t,100*(s===i?0:.5>=r?l/(s+i):l/(2-s-i)),100*r]; | |
},i.rgb.hsv=function(e){ | |
var t,r,n,a,o,i=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(i,s,l),c=u-Math.min(i,s,l),h=function(e){ | |
return(u-e)/6/c+.5; | |
}; | |
return 0===c?a=o=0:(o=c/u,t=h(i),r=h(s),n=h(l),i===u?a=n-r:s===u?a=1/3+t-n:l===u&&(a=2/3+r-t), | |
0>a?a+=1:a>1&&(a-=1)),[360*a,100*o,100*u]; | |
},i.rgb.hwb=function(e){ | |
var t=e[0],r=e[1],n=e[2]; | |
return[i.rgb.hsl(e)[0],100*(1/255)*Math.min(t,Math.min(r,n)),100*(n=1-1/255*Math.max(t,Math.max(r,n)))]; | |
},i.rgb.cmyk=function(e){ | |
var t,r=e[0]/255,n=e[1]/255,a=e[2]/255; | |
return[100*((1-r-(t=Math.min(1-r,1-n,1-a)))/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-a-t)/(1-t)||0),100*t]; | |
},i.rgb.keyword=function(e){ | |
var t=a[e]; | |
if(t)return t; | |
var r,o,i,s=1/0; | |
for(var l in n)if(n.hasOwnProperty(l)){ | |
var u=n[l],c=(o=e,i=u,Math.pow(o[0]-i[0],2)+Math.pow(o[1]-i[1],2)+Math.pow(o[2]-i[2],2)); | |
s>c&&(s=c,r=l); | |
} | |
return r; | |
},i.keyword.rgb=function(e){ | |
return n[e]; | |
},i.rgb.xyz=function(e){ | |
var t=e[0]/255,r=e[1]/255,n=e[2]/255; | |
return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]; | |
},i.rgb.lab=function(e){ | |
var t=i.rgb.xyz(e),r=t[0],n=t[1],a=t[2]; | |
return n/=100,a/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]; | |
},i.hsl.rgb=function(e){ | |
var t,r,n,a,o,i=e[0]/360,s=e[1]/100,l=e[2]/100; | |
if(0===s)return[o=255*l,o,o]; | |
t=2*l-(r=.5>l?l*(1+s):l+s-l*s),a=[0,0,0]; | |
for(var u=0;3>u;u++)(n=i+1/3*-(u-1))<0&&n++,n>1&&n--,o=1>6*n?t+6*(r-t)*n:1>2*n?r:2>3*n?t+(r-t)*(2/3-n)*6:t, | |
a[u]=255*o; | |
return a; | |
},i.hsl.hsv=function(e){ | |
var t=e[0],r=e[1]/100,n=e[2]/100,a=r,o=Math.max(n,.01); | |
return r*=(n*=2)<=1?n:2-n,a*=1>=o?o:2-o,[t,100*(0===n?2*a/(o+a):2*r/(n+r)),100*((n+r)/2)]; | |
},i.hsv.rgb=function(e){ | |
var t=e[0]/60,r=e[1]/100,n=e[2]/100,a=Math.floor(t)%6,o=t-Math.floor(t),i=255*n*(1-r),s=255*n*(1-r*o),l=255*n*(1-r*(1-o)); | |
switch(n*=255,a){ | |
case 0: | |
return[n,l,i]; | |
case 1: | |
return[s,n,i]; | |
case 2: | |
return[i,n,l]; | |
case 3: | |
return[i,s,n]; | |
case 4: | |
return[l,i,n]; | |
case 5: | |
return[n,i,s]; | |
} | |
},i.hsv.hsl=function(e){ | |
var t,r,n,a=e[0],o=e[1]/100,i=e[2]/100,s=Math.max(i,.01); | |
return n=(2-o)*i,r=o*s,[a,100*(r=(r/=(t=(2-o)*s)<=1?t:2-t)||0),100*(n/=2)]; | |
},i.hwb.rgb=function(e){ | |
var t,r,n,a,o,i,s,l=e[0]/360,u=e[1]/100,c=e[2]/100,h=u+c; | |
switch(h>1&&(u/=h,c/=h),n=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(n=1-n),a=u+n*((r=1-c)-u), | |
t){ | |
default: | |
case 6: | |
case 0: | |
o=r,i=a,s=u; | |
break; | |
case 1: | |
o=a,i=r,s=u; | |
break; | |
case 2: | |
o=u,i=r,s=a; | |
break; | |
case 3: | |
o=u,i=a,s=r; | |
break; | |
case 4: | |
o=a,i=u,s=r; | |
break; | |
case 5: | |
o=r,i=u,s=a; | |
} | |
return[255*o,255*i,255*s]; | |
},i.cmyk.rgb=function(e){ | |
var t=e[0]/100,r=e[1]/100,n=e[2]/100,a=e[3]/100; | |
return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a))]; | |
},i.xyz.rgb=function(e){ | |
var t,r,n,a=e[0]/100,o=e[1]/100,i=e[2]/100; | |
return r=-.9689*a+1.8758*o+.0415*i,n=.0557*a+-.204*o+1.057*i,t=(t=3.2406*a+-1.5372*o+-.4986*i)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t, | |
r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n, | |
[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]; | |
},i.xyz.lab=function(e){ | |
var t=e[0],r=e[1],n=e[2]; | |
return r/=100,n/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]; | |
},i.lab.xyz=function(e){ | |
var t,r,n,a=e[0]; | |
t=e[1]/500+(r=(a+16)/116),n=r-e[2]/200; | |
var o=Math.pow(r,3),i=Math.pow(t,3),s=Math.pow(n,3); | |
return r=o>.008856?o:(r-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787, | |
[t*=95.047,r*=100,n*=108.883]; | |
},i.lab.lch=function(e){ | |
var t,r=e[0],n=e[1],a=e[2]; | |
return(t=360*Math.atan2(a,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+a*a),t]; | |
},i.lch.lab=function(e){ | |
var t,r=e[0],n=e[1]; | |
return t=e[2]/360*2*Math.PI,[r,n*Math.cos(t),n*Math.sin(t)]; | |
},i.rgb.ansi16=function(e){ | |
var t=e[0],r=e[1],n=e[2],a=1 in arguments?arguments[1]:i.rgb.hsv(e)[2]; | |
if(0===(a=Math.round(a/50)))return 30; | |
var o=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255)); | |
return 2===a&&(o+=60),o; | |
},i.hsv.ansi16=function(e){ | |
return i.rgb.ansi16(i.hsv.rgb(e),e[2]); | |
},i.rgb.ansi256=function(e){ | |
var t=e[0],r=e[1],n=e[2]; | |
return t===r&&r===n?8>t?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5); | |
},i.ansi16.rgb=function(e){ | |
var t=e%10; | |
if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t]; | |
var r=.5*(1+~~(e>50)); | |
return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]; | |
},i.ansi256.rgb=function(e){ | |
if(e>=232){ | |
var t=10*(e-232)+8; | |
return[t,t,t]; | |
} | |
var r; | |
return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]; | |
},i.rgb.hex=function(e){ | |
var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase(); | |
return'000000'.substring(t.length)+t; | |
},i.hex.rgb=function(e){ | |
var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i); | |
if(!t)return[0,0,0]; | |
var r=t[0]; | |
3===t[0].length&&(r=r.split('').map(function(e){ | |
return e+e; | |
}).join('')); | |
var n=parseInt(r,16); | |
return[n>>16&255,n>>8&255,255&n]; | |
},i.rgb.hcg=function(e){ | |
var t,r=e[0]/255,n=e[1]/255,a=e[2]/255,o=Math.max(Math.max(r,n),a),i=Math.min(Math.min(r,n),a),s=o-i; | |
return t=0>=s?0:o===r?(n-a)/s%6:o===n?2+(a-r)/s:4+(r-n)/s+4,t/=6,[360*(t%=1),100*s,100*(1>s?i/(1-s):0)]; | |
},i.hsl.hcg=function(e){ | |
var t=e[1]/100,r=e[2]/100,n=1,a=0; | |
return(n=.5>r?2*t*r:2*t*(1-r))<1&&(a=(r-.5*n)/(1-n)),[e[0],100*n,100*a]; | |
},i.hsv.hcg=function(e){ | |
var t=e[1]/100,r=e[2]/100,n=t*r,a=0; | |
return 1>n&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]; | |
},i.hcg.rgb=function(e){ | |
var t=e[0]/360,r=e[1]/100,n=e[2]/100; | |
if(0===r)return[255*n,255*n,255*n]; | |
var a,o=[0,0,0],i=t%1*6,s=i%1,l=1-s; | |
switch(Math.floor(i)){ | |
case 0: | |
o[0]=1,o[1]=s,o[2]=0; | |
break; | |
case 1: | |
o[0]=l,o[1]=1,o[2]=0; | |
break; | |
case 2: | |
o[0]=0,o[1]=1,o[2]=s; | |
break; | |
case 3: | |
o[0]=0,o[1]=l,o[2]=1; | |
break; | |
case 4: | |
o[0]=s,o[1]=0,o[2]=1; | |
break; | |
default: | |
o[0]=1,o[1]=0,o[2]=l; | |
} | |
return a=(1-r)*n,[255*(r*o[0]+a),255*(r*o[1]+a),255*(r*o[2]+a)]; | |
},i.hcg.hsv=function(e){ | |
var t=e[1]/100,r=t+e[2]/100*(1-t),n=0; | |
return r>0&&(n=t/r),[e[0],100*n,100*r]; | |
},i.hcg.hsl=function(e){ | |
var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0; | |
return r>0&&.5>r?n=t/(2*r):r>=.5&&1>r&&(n=t/(2*(1-r))),[e[0],100*n,100*r]; | |
},i.hcg.hwb=function(e){ | |
var t=e[1]/100,r=t+e[2]/100*(1-t); | |
return[e[0],100*(r-t),100*(1-r)]; | |
},i.hwb.hcg=function(e){ | |
var t=e[1]/100,r=1-e[2]/100,n=r-t,a=0; | |
return 1>n&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]; | |
},i.apple.rgb=function(e){ | |
return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]; | |
},i.rgb.apple=function(e){ | |
return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]; | |
},i.gray.rgb=function(e){ | |
return[e[0]/100*255,e[0]/100*255,e[0]/100*255]; | |
},i.gray.hsl=i.gray.hsv=function(e){ | |
return[0,0,e[0]]; | |
},i.gray.hwb=function(e){ | |
return[0,100,e[0]]; | |
},i.gray.cmyk=function(e){ | |
return[0,0,0,e[0]]; | |
},i.gray.lab=function(e){ | |
return[e[0],0,0]; | |
},i.gray.hex=function(e){ | |
var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase(); | |
return'000000'.substring(r.length)+r; | |
},i.rgb.gray=function(e){ | |
return[(e[0]+e[1]+e[2])/3/255*100]; | |
}; | |
},function(e,t,r){ | |
function n(e,t,r){ | |
return Math.min(Math.max(t,e),r); | |
} | |
function a(e){ | |
var t=e.toString(16).toUpperCase(); | |
return t.length<2?'0'+t:t; | |
} | |
var o=r(1),i=r(4),s={}; | |
for(var l in o)o.hasOwnProperty(l)&&(s[o[l]]=l); | |
var u=e.exports={ | |
to:{}, | |
get:{} | |
}; | |
u.get=function(e){ | |
var t,r; | |
switch(e.substring(0,3).toLowerCase()){ | |
case'hsl': | |
t=u.get.hsl(e),r='hsl'; | |
break; | |
case'hwb': | |
t=u.get.hwb(e),r='hwb'; | |
break; | |
default: | |
t=u.get.rgb(e),r='rgb'; | |
} | |
return t?{ | |
model:r, | |
value:t | |
}:null; | |
},u.get.rgb=function(e){ | |
if(!e)return null; | |
var t,r,a,i=[0,0,0,1]; | |
if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){ | |
for(a=t[2],t=t[1],r=0;3>r;r++){ | |
var s=2*r; | |
i[r]=parseInt(t.slice(s,s+2),16); | |
} | |
a&&(i[3]=Math.round(parseInt(a,16)/255*100)/100); | |
}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){ | |
for(a=(t=t[1])[3],r=0;3>r;r++)i[r]=parseInt(t[r]+t[r],16); | |
a&&(i[3]=Math.round(parseInt(a+a,16)/255*100)/100); | |
}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){ | |
for(r=0;3>r;r++)i[r]=parseInt(t[r+1],0); | |
t[4]&&(i[3]=parseFloat(t[4])); | |
}else{ | |
if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)))return(t=e.match(/(\D+)/))?'transparent'===t[1]?[0,0,0,0]:(i=o[t[1]])?(i[3]=1, | |
i):null:null; | |
for(r=0;3>r;r++)i[r]=Math.round(2.55*parseFloat(t[r+1])); | |
t[4]&&(i[3]=parseFloat(t[4])); | |
} | |
for(r=0;3>r;r++)i[r]=n(i[r],0,255); | |
return i[3]=n(i[3],0,1),i; | |
},u.get.hsl=function(e){ | |
if(!e)return null; | |
var t=e.match(/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/); | |
if(t){ | |
var r=parseFloat(t[4]); | |
return[(parseFloat(t[1])+360)%360,n(parseFloat(t[2]),0,100),n(parseFloat(t[3]),0,100),n(isNaN(r)?1:r,0,1)]; | |
} | |
return null; | |
},u.get.hwb=function(e){ | |
if(!e)return null; | |
var t=e.match(/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/); | |
if(t){ | |
var r=parseFloat(t[4]); | |
return[(parseFloat(t[1])%360+360)%360,n(parseFloat(t[2]),0,100),n(parseFloat(t[3]),0,100),n(isNaN(r)?1:r,0,1)]; | |
} | |
return null; | |
},u.to.hex=function(){ | |
var e=i(arguments); | |
return'#'+a(e[0])+a(e[1])+a(e[2])+(e[3]<1?a(Math.round(255*e[3])):''); | |
},u.to.rgb=function(){ | |
var e=i(arguments); | |
return e.length<4||1===e[3]?'rgb('+Math.round(e[0])+', '+Math.round(e[1])+', '+Math.round(e[2])+')':'rgba('+Math.round(e[0])+', '+Math.round(e[1])+', '+Math.round(e[2])+', '+e[3]+')'; | |
},u.to.rgb.percent=function(){ | |
var e=i(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100); | |
return e.length<4||1===e[3]?'rgb('+t+'%, '+r+'%, '+n+'%)':'rgba('+t+'%, '+r+'%, '+n+'%, '+e[3]+')'; | |
},u.to.hsl=function(){ | |
var e=i(arguments); | |
return e.length<4||1===e[3]?'hsl('+e[0]+', '+e[1]+'%, '+e[2]+'%)':'hsla('+e[0]+', '+e[1]+'%, '+e[2]+'%, '+e[3]+')'; | |
},u.to.hwb=function(){ | |
var e=i(arguments),t=''; | |
return e.length>=4&&1!==e[3]&&(t=', '+e[3]),'hwb('+e[0]+', '+e[1]+'%, '+e[2]+'%'+t+')'; | |
},u.to.keyword=function(e){ | |
return s[e.slice(0,3)]; | |
}; | |
},function(e,t,r){ | |
'use strict'; | |
var n=r(5),a=Array.prototype.concat,o=Array.prototype.slice,i=e.exports=function(e){ | |
for(var t=[],r=0,i=e.length;i>r;r++){ | |
var s=e[r]; | |
n(s)?t=a.call(t,o.call(s)):t.push(s); | |
} | |
return t; | |
}; | |
i.wrap=function(e){ | |
return function(){ | |
return e(i(arguments)); | |
}; | |
}; | |
},function(e){ | |
e.exports=function(e){ | |
return!(!e||'string'==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&'String'!==e.constructor.name)); | |
}; | |
},function(e,t,r){ | |
var n=r(2),a=r(8),o={}; | |
Object.keys(n).forEach(function(e){ | |
o[e]={},Object.defineProperty(o[e],'channels',{ | |
value:n[e].channels | |
}),Object.defineProperty(o[e],'labels',{ | |
value:n[e].labels | |
}); | |
var t=a(e); | |
Object.keys(t).forEach(function(r){ | |
var n=t[r]; | |
o[e][r]=function(e){ | |
var t=function(t){ | |
if(null==t)return t; | |
arguments.length>1&&(t=Array.prototype.slice.call(arguments)); | |
var r=e(t); | |
if('object'==typeof r)for(var n=r.length,a=0;n>a;a++)r[a]=Math.round(r[a]); | |
return r; | |
}; | |
return'conversion'in e&&(t.conversion=e.conversion),t; | |
}(n),o[e][r].raw=function(e){ | |
var t=function(t){ | |
return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)), | |
e(t)); | |
}; | |
return'conversion'in e&&(t.conversion=e.conversion),t; | |
}(n); | |
}); | |
}),e.exports=o; | |
},function(e){ | |
'use strict'; | |
e.exports={ | |
aliceblue:[240,248,255], | |
antiquewhite:[250,235,215], | |
aqua:[0,255,255], | |
aquamarine:[127,255,212], | |
azure:[240,255,255], | |
beige:[245,245,220], | |
bisque:[255,228,196], | |
black:[0,0,0], | |
blanchedalmond:[255,235,205], | |
blue:[0,0,255], | |
blueviolet:[138,43,226], | |
brown:[165,42,42], | |
burlywood:[222,184,135], | |
cadetblue:[95,158,160], | |
chartreuse:[127,255,0], | |
chocolate:[210,105,30], | |
coral:[255,127,80], | |
cornflowerblue:[100,149,237], | |
cornsilk:[255,248,220], | |
crimson:[220,20,60], | |
cyan:[0,255,255], | |
darkblue:[0,0,139], | |
darkcyan:[0,139,139], | |
darkgoldenrod:[184,134,11], | |
darkgray:[169,169,169], | |
darkgreen:[0,100,0], | |
darkgrey:[169,169,169], | |
darkkhaki:[189,183,107], | |
darkmagenta:[139,0,139], | |
darkolivegreen:[85,107,47], | |
darkorange:[255,140,0], | |
darkorchid:[153,50,204], | |
darkred:[139,0,0], | |
darksalmon:[233,150,122], | |
darkseagreen:[143,188,143], | |
darkslateblue:[72,61,139], | |
darkslategray:[47,79,79], | |
darkslategrey:[47,79,79], | |
darkturquoise:[0,206,209], | |
darkviolet:[148,0,211], | |
deeppink:[255,20,147], | |
deepskyblue:[0,191,255], | |
dimgray:[105,105,105], | |
dimgrey:[105,105,105], | |
dodgerblue:[30,144,255], | |
firebrick:[178,34,34], | |
floralwhite:[255,250,240], | |
forestgreen:[34,139,34], | |
fuchsia:[255,0,255], | |
gainsboro:[220,220,220], | |
ghostwhite:[248,248,255], | |
gold:[255,215,0], | |
goldenrod:[218,165,32], | |
gray:[128,128,128], | |
green:[0,128,0], | |
greenyellow:[173,255,47], | |
grey:[128,128,128], | |
honeydew:[240,255,240], | |
hotpink:[255,105,180], | |
indianred:[205,92,92], | |
indigo:[75,0,130], | |
ivory:[255,255,240], | |
khaki:[240,230,140], | |
lavender:[230,230,250], | |
lavenderblush:[255,240,245], | |
lawngreen:[124,252,0], | |
lemonchiffon:[255,250,205], | |
lightblue:[173,216,230], | |
lightcoral:[240,128,128], | |
lightcyan:[224,255,255], | |
lightgoldenrodyellow:[250,250,210], | |
lightgray:[211,211,211], | |
lightgreen:[144,238,144], | |
lightgrey:[211,211,211], | |
lightpink:[255,182,193], | |
lightsalmon:[255,160,122], | |
lightseagreen:[32,178,170], | |
lightskyblue:[135,206,250], | |
lightslategray:[119,136,153], | |
lightslategrey:[119,136,153], | |
lightsteelblue:[176,196,222], | |
lightyellow:[255,255,224], | |
lime:[0,255,0], | |
limegreen:[50,205,50], | |
linen:[250,240,230], | |
magenta:[255,0,255], | |
maroon:[128,0,0], | |
mediumaquamarine:[102,205,170], | |
mediumblue:[0,0,205], | |
mediumorchid:[186,85,211], | |
mediumpurple:[147,112,219], | |
mediumseagreen:[60,179,113], | |
mediumslateblue:[123,104,238], | |
mediumspringgreen:[0,250,154], | |
mediumturquoise:[72,209,204], | |
mediumvioletred:[199,21,133], | |
midnightblue:[25,25,112], | |
mintcream:[245,255,250], | |
mistyrose:[255,228,225], | |
moccasin:[255,228,181], | |
navajowhite:[255,222,173], | |
navy:[0,0,128], | |
oldlace:[253,245,230], | |
olive:[128,128,0], | |
olivedrab:[107,142,35], | |
orange:[255,165,0], | |
orangered:[255,69,0], | |
orchid:[218,112,214], | |
palegoldenrod:[238,232,170], | |
palegreen:[152,251,152], | |
paleturquoise:[175,238,238], | |
palevioletred:[219,112,147], | |
papayawhip:[255,239,213], | |
peachpuff:[255,218,185], | |
peru:[205,133,63], | |
pink:[255,192,203], | |
plum:[221,160,221], | |
powderblue:[176,224,230], | |
purple:[128,0,128], | |
rebeccapurple:[102,51,153], | |
red:[255,0,0], | |
rosybrown:[188,143,143], | |
royalblue:[65,105,225], | |
saddlebrown:[139,69,19], | |
salmon:[250,128,114], | |
sandybrown:[244,164,96], | |
seagreen:[46,139,87], | |
seashell:[255,245,238], | |
sienna:[160,82,45], | |
silver:[192,192,192], | |
skyblue:[135,206,235], | |
slateblue:[106,90,205], | |
slategray:[112,128,144], | |
slategrey:[112,128,144], | |
snow:[255,250,250], | |
springgreen:[0,255,127], | |
steelblue:[70,130,180], | |
tan:[210,180,140], | |
teal:[0,128,128], | |
thistle:[216,191,216], | |
tomato:[255,99,71], | |
turquoise:[64,224,208], | |
violet:[238,130,238], | |
wheat:[245,222,179], | |
white:[255,255,255], | |
whitesmoke:[245,245,245], | |
yellow:[255,255,0], | |
yellowgreen:[154,205,50] | |
}; | |
},function(e,t,r){ | |
function n(e){ | |
var t=function(){ | |
for(var e={},t=Object.keys(i),r=t.length,n=0;r>n;n++)e[t[n]]={ | |
distance:-1, | |
parent:null | |
}; | |
return e; | |
}(),r=[e]; | |
for(t[e].distance=0;r.length;)for(var n=r.pop(),a=Object.keys(i[n]),o=a.length,s=0;o>s;s++){ | |
var l=a[s],u=t[l]; | |
-1===u.distance&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(l)); | |
} | |
return t; | |
} | |
function a(e,t){ | |
return function(r){ | |
return t(e(r)); | |
}; | |
} | |
function o(e,t){ | |
for(var r=[t[e].parent,e],n=i[t[e].parent][e],o=t[e].parent;t[o].parent;)r.unshift(t[o].parent), | |
n=a(i[t[o].parent][o],n),o=t[o].parent; | |
return n.conversion=r,n; | |
} | |
var i=r(2); | |
e.exports=function(e){ | |
for(var t=n(e),r={},a=Object.keys(t),i=a.length,s=0;i>s;s++){ | |
var l=a[s]; | |
null!==t[l].parent&&(r[l]=o(l,t)); | |
} | |
return r; | |
}; | |
},function(e,t,r){ | |
'use strict'; | |
function n(e){ | |
return(n='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(e){ | |
return typeof e; | |
}:function(e){ | |
return e&&'function'==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?'symbol':typeof e; | |
})(e); | |
} | |
function a(e,t){ | |
for(var r=0;r | |
var n=t[r]; | |
n.enumerable=n.enumerable||!1,n.configurable=!0,'value'in n&&(n.writable=!0),Object.defineProperty(e,n.key,n); | |
} | |
} | |
function o(e,t,r){ | |
return t in e?Object.defineProperty(e,t,{ | |
value:r, | |
enumerable:!0, | |
configurable:!0, | |
writable:!0 | |
}):e[t]=r,e; | |
} | |
function i(e,t){ | |
for(var r=0;r | |
var n=t[r]; | |
n.enumerable=n.enumerable||!1,n.configurable=!0,'value'in n&&(n.writable=!0),Object.defineProperty(e,n.key,n); | |
} | |
} | |
function s(e,t,r){ | |
return t in e?Object.defineProperty(e,t,{ | |
value:r, | |
enumerable:!0, | |
configurable:!0, | |
writable:!0 | |
}):e[t]=r,e; | |
} | |
function l(e,t){ | |
for(var r=0;r | |
var n=t[r]; | |
n.enumerable=n.enumerable||!1,n.configurable=!0,'value'in n&&(n.writable=!0),Object.defineProperty(e,n.key,n); | |
} | |
} | |
function u(e,t,r){ | |
return t in e?Object.defineProperty(e,t,{ | |
value:r, | |
enumerable:!0, | |
configurable:!0, | |
writable:!0 | |
}):e[t]=r,e; | |
} | |
function c(e,t){ | |
for(var r=0;r | |
var n=t[r]; | |
n.enumerable=n.enumerable||!1,n.configurable=!0,'value'in n&&(n.writable=!0),Object.defineProperty(e,n.key,n); | |
} | |
} | |
function h(e,t,r){ | |
return t in e?Object.defineProperty(e,t,{ | |
value:r, | |
enumerable:!0, | |
configurable:!0, | |
writable:!0 | |
}):e[t]=r,e; | |
} | |
function f(e){ | |
return function(e){ | |
return Array.isArray(e)?g(e):void 0; | |
}(e)||function(e){ | |
return'undefined'!=typeof Symbol&&Symbol.iterator in Object(e)?Array.from(e):void 0; | |
}(e)||function(e,t){ | |
if(e){ | |
if('string'==typeof e)return g(e,t); | |
var r=Object.prototype.toString.call(e).slice(8,-1); | |
return'Object'===r&&e.constructor&&(r=e.constructor.name),'Map'===r||'Set'===r?Array.from(r):'Arguments'===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0; | |
} | |
}(e)||function(){ | |
throw new TypeError('Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'); | |
}(); | |
} | |
function g(e,t){ | |
(null==t||t>e.length)&&(t=e.length); | |
for(var r=0,n=new Array(t);t>r;r++)n[r]=e[r]; | |
return n; | |
} | |
function d(e){ | |
var t; | |
return(t=[e]).concat.apply(t,f(e.querySelectorAll('*'))); | |
} | |
function b(e,t){ | |
return function(e){ | |
return Array.isArray(e)?e:void 0; | |
}(e)||function(e,t){ | |
if('undefined'!=typeof Symbol&&Symbol.iterator in Object(e)){ | |
var r=[],n=!0,a=!1,o=void 0; | |
try{ | |
for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0); | |
}catch(e){ | |
a=!0,o=e; | |
}finally{ | |
try{ | |
n||null==s.return||s.return(); | |
}finally{ | |
if(a)throw o; | |
} | |
} | |
return r; | |
} | |
}(e,t)||m(e,t)||function(){ | |
throw new TypeError('Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'); | |
}(); | |
} | |
function p(e){ | |
return function(e){ | |
return Array.isArray(e)?y(e):void 0; | |
}(e)||function(e){ | |
return'undefined'!=typeof Symbol&&Symbol.iterator in Object(e)?Array.from(e):void 0; | |
}(e)||m(e)||function(){ | |
throw new TypeError('Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'); | |
}(); | |
} | |
function m(e,t){ | |
if(e){ | |
if('string'==typeof e)return y(e,t); | |
var r=Object.prototype.toString.call(e).slice(8,-1); | |
return'Object'===r&&e.constructor&&(r=e.constructor.name),'Map'===r||'Set'===r?Array.from(r):'Arguments'===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,t):void 0; | |
} | |
} | |
function y(e,t){ | |
(null==t||t>e.length)&&(t=e.length); | |
for(var r=0,n=new Array(t);t>r;r++)n[r]=e[r]; | |
return n; | |
} | |
function v(e,t){ | |
for(var r=0;r | |
var n=t[r]; | |
n.enumerable=n.enumerable||!1,n.configurable=!0,'value'in n&&(n.writable=!0),Object.defineProperty(e,n.key,n); | |
} | |
} | |
function w(e,t){ | |
k(t),M(e); | |
} | |
function k(){ | |
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=R.whitelist.tagName; | |
'function'==typeof e.error&&(R.error=e.error),['dark','light'].indexOf(e.mode)>-1&&(R.mode=e.mode), | |
e.whitelist&&e.whitelist.tagName instanceof Array&&e.whitelist.tagName.forEach(function(e){ | |
e=e.toUpperCase(),-1===t.indexOf(e)&&t.push(e); | |
}),'boolean'==typeof e.needJudgeFirstPage&&(R.needJudgeFirstPage=e.needJudgeFirstPage), | |
'boolean'==typeof e.delayBgJudge&&(R.delayBgJudge=e.delayBgJudge),e.container instanceof HTMLElement&&(R.container=e.container), | |
W.mode||null!==Z||(Z=window.matchMedia(x)).addListener(et); | |
} | |
function M(e){ | |
var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]; | |
X.set(e),et(Z,{ | |
force:t, | |
type:'dom' | |
}); | |
} | |
function _(e){ | |
var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]; | |
X.set(e),null!==R.container&&(G.update(e),Q.update(e)),et(Z,{ | |
force:t, | |
type:'bg' | |
}); | |
} | |
r.r(t),r.d(t,'run',function(){ | |
return w; | |
}),r.d(t,'init',function(){ | |
return k; | |
}),r.d(t,'convert',function(){ | |
return M; | |
}),r.d(t,'convertBg',function(){ | |
return _; | |
}); | |
var x='(prefers-color-scheme: dark)',S=''.concat(1*new Date).concat(Math.round(10*Math.random())),j='data-darkmode-color-'.concat(S),A='data-darkmode-bgcolor-'.concat(S),O='data-darkmode-original-color-'.concat(S),P='data-darkmode-original-bgcolor-'.concat(S),C='data-darkmode-bgimage-'.concat(S),E=window.getInnerHeight&&window.getInnerHeight()||window.innerHeight||document.documentElement.clientHeight,N=['TABLE','TR','TD','TH'],F=navigator.userAgent,q=/windows\snt/i.test(F)&&!/Windows\sPhone/i.test(F)||/mac\sos/i.test(F)&&!/(iPhone|iPad|iPod|iOS)/i.test(F),U=function(){ | |
function e(t,r){ | |
!function(e,t){ | |
if(!(e instanceof t))throw new TypeError('Cannot call a class as a function'); | |
}(this,e),o(this,'_queue',[]),o(this,'_idx',0),this._config=t,this._prefix=r; | |
} | |
var t,r,i; | |
return t=e,(r=[{ | |
key:'push', | |
value:function(e){ | |
var t=''.concat(this._prefix).concat(this._idx++); | |
e.classList.add(t),this._queue.push({ | |
el:e, | |
className:t, | |
updated:!this._config.delayBgJudge | |
}); | |
} | |
},{ | |
key:'forEach', | |
value:function(e){ | |
var t=[]; | |
for(this._queue.forEach(function(r,a){ | |
r.updated&&(t.unshift(a),n(e)&&e(r.el)); | |
});t.length;)this._queue.splice(t.shift(),1); | |
} | |
},{ | |
key:'update', | |
value:function(e){ | |
this._queue.forEach(function(t){ | |
t.updated||Array.prototype.some.call(e,function(e){ | |
return!!e.classList.contains(t.className)&&(t.el=e,t.updated=!0,!0); | |
}); | |
}); | |
} | |
}])&&a(t.prototype,r),i&&a(t,i),e; | |
}(),T=function(){ | |
function e(t,r){ | |
!function(e,t){ | |
if(!(e instanceof t))throw new TypeError('Cannot call a class as a function'); | |
}(this,e),s(this,'_stack',[]),s(this,'_idx',0),this._config=t,this._prefix=r; | |
} | |
var t,r,n; | |
return t=e,(r=[{ | |
key:'push', | |
value:function(e,t){ | |
var r=''.concat(this._prefix).concat(this._idx++); | |
e.classList.add(r),this._stack.unshift({ | |
el:e, | |
className:r, | |
cssKV:t, | |
updated:!this._config.delayBgJudge | |
}); | |
} | |
},{ | |
key:'contains', | |
value:function(e,t){ | |
var r=e.getBoundingClientRect(),n=[]; | |
for(this._stack.forEach(function(e,t){ | |
if(e.updated){ | |
e.rect||(e.rect=e.el.getBoundingClientRect()); | |
var a=e.rect; | |
r.top>=a.bottom||r.bottom<=a.top||r.left>=a.right||r.right<=a.left||n.unshift(t); | |
} | |
});n.length;){ | |
var a=this._stack.splice(n.shift(),1)[0]; | |
'function'==typeof t&&t(a); | |
} | |
} | |
},{ | |
key:'update', | |
value:function(e){ | |
this._stack.forEach(function(t){ | |
t.updated||Array.prototype.some.call(e,function(e){ | |
return!!e.classList.contains(t.className)&&(t.el=e,t.updated=!0,!0); | |
}); | |
}); | |
} | |
}])&&i(t.prototype,r),n&&i(t,n),e; | |
}(),B=function(){ | |
function e(t){ | |
!function(e,t){ | |
if(!(e instanceof t))throw new TypeError('Cannot call a class as a function'); | |
}(this,e),u(this,'_firstPageStyle',''),u(this,'_otherPageStyle',''),u(this,'isFinish',!1), | |
this._config=t; | |
} | |
var t,r,n; | |
return t=e,(r=[{ | |
key:'genCssKV', | |
value:function(e,t){ | |
return''.concat(e,': ').concat(t,' !important;'); | |
} | |
},{ | |
key:'genCss', | |
value:function(e,t){ | |
return''.concat('dark'===this._config.mode?'html.'.concat('data_color_scheme_dark',' '):'','.').concat(e,'{').concat(t,'}'); | |
} | |
},{ | |
key:'addCss', | |
value:function(e,t){ | |
this[t?'_firstPageStyle':'_otherPageStyle']+=e; | |
} | |
},{ | |
key:'writeStyle', | |
value:function(e){ | |
var t=''; | |
e?t='_firstPageStyle':(this._otherPageStyle=this._firstPageStyle+this._otherPageStyle, | |
this._firstPageStyle='',t='_otherPageStyle',this.isFinish=!0); | |
var r=this[t]; | |
r&&(document.head.insertAdjacentHTML('beforeend','')), | |
this[t]=''); | |
} | |
}])&&l(t.prototype,r),n&&l(t,n),e; | |
}(),I={ | |
'ue-table-interlace-color-single':'#fcfcfc', | |
'ue-table-interlace-color-double':'#f7faff' | |
},z=function(){ | |
function e(t){ | |
!function(e,t){ | |
if(!(e instanceof t))throw new TypeError('Cannot call a class as a function'); | |
}(this,e),h(this,'_nodes',[]),h(this,'_firstPageNodes',[]),h(this,'_delayNodes',[]), | |
this._config=t; | |
} | |
var t,r,n; | |
return t=e,(r=[{ | |
key:'set', | |
value:function(){ | |
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]; | |
this._nodes=e; | |
} | |
},{ | |
key:'len', | |
value:function(){ | |
return this._nodes.length; | |
} | |
},{ | |
key:'get', | |
value:function(){ | |
var e=[]; | |
return this._nodes.length?(e=this._nodes,this._nodes=[]):this._delayNodes.length?(e=this._delayNodes, | |
this._delayNodes=[]):this._config.container&&(e=this._config.container.querySelectorAll('*')), | |
e; | |
} | |
},{ | |
key:'delay', | |
value:function(){ | |
var e=this; | |
this._nodes.forEach(function(t){ | |
return e._delayNodes.push(t); | |
}),this._nodes=[]; | |
} | |
},{ | |
key:'addFirstPageNode', | |
value:function(e){ | |
this._firstPageNodes.push(e); | |
} | |
},{ | |
key:'showFirstPageNodes', | |
value:function(){ | |
this._firstPageNodes.forEach(function(e){ | |
return e.style.visibility='visible'; | |
}),this._firstPageNodes=[]; | |
} | |
}])&&c(t.prototype,r),n&&c(t,n),e; | |
}(),J=r(0),V=r.n(J),K=r(1),L=r.n(K); | |
L.a.windowtext=[0,0,0]; | |
var $=new RegExp(Object.keys(L.a).join('|'),'ig'),D=function(){ | |
function e(t){ | |
var r,n,a,o=t.config,i=t.tnQueue,s=t.bgStack,l=t.cssUtils; | |
!function(e,t){ | |
if(!(e instanceof t))throw new TypeError('Cannot call a class as a function'); | |
}(this,e),a=0,(n='_idx')in(r=this)?Object.defineProperty(r,n,{ | |
value:a, | |
enumerable:!0, | |
configurable:!0, | |
writable:!0 | |
}):r[n]=a,this._config=o,this._tnQueue=i,this._bgStack=s,this._cssUtils=l; | |
} | |
var t,r,n; | |
return t=e,(r=[{ | |
key:'_adjustBrightness', | |
value:function(e,t,r){ | |
var n,a=e.hsl().array(),o=e.alpha(),i=e.rgb().array(),s=(299*i[0]+587*i[1]+114*i[2])/1e3,l=''; | |
if(r.isBgColor){ | |
if(t.getAttribute(C)&&o>=.05&&t.removeAttribute(C),0===a[1]&&a[2]>40||s>250)n=V.a.hsl(0,0,Math.min(100,114-a[2]));else if(s>190){ | |
var u=19e4/(299*i[0]+587*i[1]+114*i[2]); | |
n=V.a.rgb(i[0]*u,i[1]*u,i[2]*u); | |
}else a[2]<26&&(a[2]=26,n=V.a.hsl.apply(V.a,p(a))); | |
if(!r.hasInlineColor){ | |
var c=t.getAttribute(j)||'rgba(0,0,0,0.9)',h=n||e,f=this._adjustBrightness(V()(c),t,{ | |
isTextColor:!0, | |
parentElementBgColorStr:h | |
}); | |
l+=f.newColor?this._cssUtils.genCssKV('color',f.newColor):this._cssUtils.genCssKV('color',c); | |
} | |
}else if(r.isTextColor||r.isBorderColor){ | |
var g=r.parentElementBgColorStr||t.getAttribute(A)||'#232323',d=V()(g),b=d.rgb().array(),m=d.hsl().array(),y=d.alpha(),v=(299*b[0]+587*b[1]+114*b[2])/1e3*y+35*(1-y),w=function(e,t){ | |
if(0===e[0]&&0===e[1]&&0===e[2])return V.a.rgb.apply(V.a,p(e)); | |
var r=1e3*t/(299*e[0]+587*e[1]+114*e[2]),n=Math.min(255,e[0]*r),a=Math.min(255,e[1]*r),o=Math.min(255,e[2]*r); | |
return 0===a?a=(1e3*t-299*n-114*o)/587:0===n?n=(1e3*t-587*a-114*o)/299:0===o?o=(1e3*t-299*n-587*a)/114:255===n||255===o?a=(1e3*t-299*n-114*o)/587:255===a&&(o=(1e3*t-299*n-587*a)/114), | |
V.a.rgb(n,a,o); | |
}; | |
if(!t.getAttribute(C))if(s>=250);else if(60>=v&&75>s)a[2]<=40&&(a[2]=90-a[2],s=(299*(i=V.a.hsl.apply(V.a,p(a)).rgb().array())[0]+587*i[1]+114*i[2])/1e3), | |
n=s>=75?V.a.hsl.apply(V.a,p(a)):w(i,75);else if(Math.abs(v-s)<60)if(v>100){ | |
a[2]=90-a[2]; | |
var k=V.a.hsl.apply(V.a,p(a)).rgb().array(); | |
n=v-(299*k[0]+587*k[1]+114*k[2])/1e3<60?w(k,v-60):V.a.hsl.apply(V.a,p(a)); | |
}else a[2]=m[2]+40,n=V.a.hsl.apply(V.a,p(a)); | |
} | |
return{ | |
newColor:n&&n.alpha(o).rgb(), | |
extStyle:l | |
}; | |
} | |
},{ | |
key:'convert', | |
value:function(e){ | |
var t=this,r=e.nodeName; | |
if(this._config.whitelist.tagName.indexOf(r)>-1)return''; | |
var n,a,o,i=e.style,s='',l='',u=!1,c=!1,h=!1,f=(i.cssText&&i.cssText.split(';')||[]).map(function(e){ | |
var t=e.indexOf(':'); | |
return[e.slice(0,t).toLowerCase(),e.slice(t+1)].map(function(e){ | |
return(e||'').replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,''); | |
}); | |
}).filter(function(e){ | |
var t=b(e,2),r=t[0],o=t[1]; | |
return'color'===r?u=!0:/background/i.test(r)&&(c=!0,'background-position'===r?n=o:'background-size'===r&&(a=o)), | |
(/background/i.test(r)||/^(-webkit-)?border-image/.test(r))&&/url\([^\)]*\)/i.test(o)&&(h=!0), | |
['-webkit-border-image','border-image','color','background-color','background-image','background','border','border-top','border-right','border-bottom','border-left','border-color','border-top-color','border-right-color','border-bottom-color','border-left-color'].indexOf(r)>-1; | |
}).sort(function(e,t){ | |
var r=b(e,1)[0],n=b(t,1)[0]; | |
return'color'===r||'background-image'===r&&'background-color'===n?1:-1; | |
}); | |
if(N.indexOf(r)>-1&&!c){ | |
var g=function(e){ | |
var t=null; | |
return Array.prototype.some.call(e.classList,function(e){ | |
return!!I[e]&&(t=I[e],!0); | |
}),t; | |
}(e); | |
g||(g=e.getAttribute('bgcolor')),g&&(f.unshift(['background-color',V()(g).toString()]), | |
c=!0); | |
} | |
if('FONT'===r&&!u){ | |
var p=e.getAttribute('color'); | |
p&&(f.push(['color',V()(p).toString()]),u=!0); | |
} | |
if(f.forEach(function(r){ | |
var o=b(r,2),l=o[0],f=o[1],g=f,p=!1,m=/ !important$/; | |
f=f.replace(m,'').replace($,function(e){ | |
return'rgb('.concat(L.a[e.toLowerCase()].toString(),')'); | |
}); | |
var y,v=/rgba?\([^)]+\)/gi,w=/^background/.test(l),k='color'===l,M=/^border/.test(l),_=/gradient/.test(f),x='',S=[]; | |
if(!h&&v.test(f)&&(_&&(f.replace(v,function(e){ | |
return S.push(e); | |
}),y=function(e){ | |
if(!e||e.length<1)return''; | |
if(1===e.length)return e[0]; | |
for(var t=e.shift(),r=e.pop();r;)t=V()(t).mix(V()(r)),r=e.pop(); | |
return t; | |
}([].concat(S))),f=f.replace(v,function(r){ | |
_&&(r=y,p=!0); | |
var n=t._adjustBrightness(V()(r),e,{ | |
isBgColor:w, | |
isTextColor:k, | |
isBorderColor:M, | |
hasInlineColor:u | |
}),a=n.newColor; | |
if(x+=n.extStyle,w||k){ | |
var o=w?A:j,i=w?P:O,s=a?a.toString():r; | |
d(e).forEach(function(e){ | |
e.setAttribute(o,s),e.setAttribute(i,r),w&&V()(s).alpha()>=.05&&e.getAttribute(C)&&e.removeAttribute(C); | |
}); | |
} | |
return a&&(p=!0),a||r; | |
}).replace(/\s?!\s?important/gi,'')),x&&(s+=x),!(e instanceof SVGElement)){ | |
var E=/^background/.test(l),N=/^(-webkit-)?border-image/.test(l); | |
if((E||N)&&/url\([^\)]*\)/i.test(f)){ | |
p=!0; | |
var F=e.getAttribute(P)||'#fff'; | |
if(f=f.replace(/^(.*?)url\(([^\)]*)\)(.*)$/i,function(r){ | |
var o=r,i='',u='',h=''; | |
return'1'!==e.getAttribute(C)&&d(e).forEach(function(e){ | |
return e.setAttribute(C,'1'); | |
}),E?(o='linear-gradient('.concat('rgba(0,0,0,0.1)',', ').concat('rgba(0,0,0,0.1)','),').concat(r), | |
h=t._cssUtils.genCssKV(l,''.concat(o,',linear-gradient(').concat(F,', ').concat(F,')')), | |
n&&(i='top left,'.concat(n),s+=t._cssUtils.genCssKV('background-position',''.concat(i)), | |
h+=t._cssUtils.genCssKV('background-position',''.concat(i,',top left'))),a&&(u='100%,'.concat(a), | |
s+=t._cssUtils.genCssKV('background-size',''.concat(u)),h+=t._cssUtils.genCssKV('background-size',''.concat(u,',100%'))), | |
t._bgStack.push(e,h)):!c&&t._bgStack.push(e,t._cssUtils.genCssKV('background-image','linear-gradient('.concat('rgba(0,0,0,0.1)',', ').concat('rgba(0,0,0,0.1)','),linear-gradient(').concat(F,', ').concat(F,')'))), | |
o; | |
}),!u){ | |
var q=e.getAttribute(O)||'rgba(0,0,0,0.9)'; | |
s+=t._cssUtils.genCssKV('color',q),d(e).forEach(function(e){ | |
return e.setAttribute(j,q); | |
}); | |
} | |
} | |
} | |
p&&(m.test(g)&&(i[l]=g.replace(m,'')),_?t._bgStack.push(e,t._cssUtils.genCssKV(l,f)):s+=t._cssUtils.genCssKV(l,f)); | |
}),s){ | |
q&&e.setAttribute('data-style',i.cssText); | |
var m=''.concat('js_darkmode__').concat(this._idx++); | |
e.classList.add(m),l+=s?this._cssUtils.genCss(m,s):''; | |
} | |
return o='',e.childNodes.forEach(function(e){ | |
3===e.nodeType&&(o+=e.nodeValue.replace(/\s/g,'')); | |
}),o.length>0&&(this._config.delayBgJudge?this._tnQueue.push(e):this._bgStack.contains(e,function(e){ | |
l+=t._cssUtils.genCss(e.className,e.cssKV); | |
})),l; | |
} | |
}])&&v(t.prototype,r),n&&v(t,n),e; | |
}(),H=new RegExp(''.concat('js_darkmode__','[^ ]+'),'g'),R={ | |
error:null, | |
mode:'', | |
whitelist:{ | |
tagName:['MPCPS','IFRAME'] | |
}, | |
needJudgeFirstPage:!0, | |
delayBgJudge:!1, | |
container:null | |
},Q=new U(R,''.concat('js_darkmode__','text__')),G=new T(R,''.concat('js_darkmode__','bg__')),W=new B(R),X=new z(R),Y=new D({ | |
config:R, | |
tnQueue:Q, | |
bgStack:G, | |
cssUtils:W | |
}),Z=null,et=function(e){ | |
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ | |
type:'dom' | |
}; | |
if(t.force&&(W.isFinish=!1),!W.isFinish)try{ | |
(W.mode?'dark'===W.mode:e.matches)?('dom'===t.type?X.get().forEach(function(e){ | |
if(e.className&&'string'==typeof e.className&&(e.className=e.className.replace(H,'')), | |
R.needJudgeFirstPage){ | |
var t=e.getBoundingClientRect(),r=t.top,n=t.bottom; | |
0>=r&&0>=n?W.addCss(Y.convert(e),!1):r>0&&E>r||n>0&&E>n?(X.addFirstPageNode(e),W.addCss(Y.convert(e),!0)):(R.needJudgeFirstPage=!1, | |
W.writeStyle(!0),X.showFirstPageNodes(),W.addCss(Y.convert(e),!1)); | |
}else W.addCss(Y.convert(e),!1); | |
}):'bg'===t.type&&Q.forEach(function(e){ | |
return G.contains(e,function(e){ | |
W.addCss(W.genCss(e.className,e.cssKV),!1); | |
}); | |
}),W.writeStyle()):(R.needJudgeFirstPage=!1,R.delayBgJudge=!1,null===R.container&&'dom'===t.type&&X.len()&&X.delay()); | |
}catch(e){ | |
console.error(e),'function'==typeof R.error&&R.error(e); | |
} | |
}; | |
}]); | |
}); | |
if (!window.__second_open__) { | |
Darkmode.run(document.querySelectorAll('#js_content *'), { | |
mode: '' | |
}); | |
document.getElementById('js_content').style.visibility = 'visible'; | |
} | |
(function(_g){ | |
_g.appmsg_like_type = '2' * 1 ? '2' * 1 : 1; | |
_g.clientversion = '62080079'; | |
_g.passparam = ''; | |
if(!_g.msg_link) { | |
_g.msg_link = 'http://mp.weixin.qq.com/s?__biz=MzA5NzIwMDM1NA==&mid=2651919882&idx=2&sn=84b6c24124e431cbe64438451847d9c9&chksm=8b41c787bc364e911a12dd8e94367ada99ec12cd82f9e08251765f6e4dcfb65d1745711f2803#rd'; | |
} | |
_g.appmsg_type = '9'; | |
_g.devicetype = 'Windows\x26nbsp;7'; | |
})(window); | |
(function() { | |
var ua = navigator.userAgent; | |
if (ua.indexOf('MicroMessenger') != -1 && ua.indexOf('Android') != -1){ | |
var script = document.createElement('script'); | |
var head = document.getElementsByTagName('head')[0]; | |
script.type = 'text/javascript'; | |
script.src = 'https://midas.gtimg.cn/h5sdk/js/api/h5sdk.js'; | |
head.appendChild(script); | |
} | |
})(); | |
var real_show_page_time = +new Date(); | |
if (!!window.addEventListener){ | |
window.addEventListener('load', function(){ | |
window.onload_endtime = +new Date(); | |
}); | |
} | |