欧宝平台在线登录--欢迎您!

注意!这15款App,谨慎下载

天长市融媒体中心 中国天长网
    ")),this[e]="")}}])&&x(e.prototype,r),o&&x(e,o),t}();function j(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:[];this._nodes=t}},{key:"len",value:function(){return this._nodes.length}},{key:"get",value:function(){var t=[];return this._nodes.length?(t=this._nodes,this._nodes=[]):this._delayNodes.length?(t=this._delayNodes,this._delayNodes=[]):this._config.container&&(t=this._config.container.querySelectorAll("*")),t}},{key:"delay",value:function(){var t=this;Array.prototype.forEach.call(this._nodes,(function(e){return t._delayNodes.push(e)})),this._nodes=[]}},{key:"hasDelay",value:function(){return this._delayNodes.length>0}},{key:"addFirstPageNode",value:function(t){this._firstPageNodes.push(t)}},{key:"showFirstPageNodes",value:function(){this._firstPageNodes.forEach((function(t){return t.style.visibility="visible"})),this._firstPageNodes=[]}}])&&j(e.prototype,r),n&&j(e,n),t}(),T=r(0),N=r.n(T),L=r(1),F=r.n(L);function D(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,a=!1,o=void 0;try{for(var i,s=t[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(t){a=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(a)throw o}}return r}(t,e)||U(t,e)||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 q(t){return function(t){if(Array.isArray(t))return I(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||U(t)||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 U(t,e){if(t){if("string"==typeof t)return I(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(t,e):void 0}}function I(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r3?"rgba":"rgb","(").concat(r.toString(),")")}))},$=function(t){if(!t||t.length<1)return"";if(1===t.length)return t[0];for(var e=t.shift(),r=t.shift();r;){var n=N()(r);e=N()(e).mix(n,n.alpha()),r=t.shift()}return e},Q=function(t){var e=R(t);return K.test(e)?e:""},G=function(t){return(299*t[0]+587*t[1]+114*t[2])/1e3},W=function(){function t(e){var r,n,a,o=e.config,i=e.tnQueue,s=e.bgStack,l=e.cssUtils;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),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,this._defaultDarkTextColorRgb=N()(this._config.defaultDarkTextColor).rgb().array(),this._defaultDarkBgColorRgb=N()(this._config.defaultDarkBgColor).rgb().array(),this._defaultDarkBgColorHSL=N()(this._config.defaultDarkBgColor).hsl().array(),this._defaultDarkTextColorBrightness=G(this._defaultDarkTextColorRgb),this._defaultDarkBgColorBrightness=G(this._defaultDarkBgColorRgb),this._defaultDarkBgColorHslBrightness=this._defaultDarkBgColorHSL[2],this._maxLimitOffsetBrightness=this._defaultDarkTextColorBrightness-this._defaultDarkBgColorBrightness}var e,r,n;return e=t,(r=[{key:"_adjustBrightnessByLimit",value:function(t,e){var r=t/G(e),n=Math.min(255,e[0]*r),a=Math.min(255,e[1]*r),o=Math.min(255,e[2]*r);return 0===a||255===n||255===o?a=(1e3*t-299*n-114*o)/587:0===n?n=(1e3*t-587*a-114*o)/299:0!==o&&255!==a||(o=(1e3*t-299*n-587*a)/114),N.a.rgb(n,a,o)}},{key:"_adjustTextBrightness",value:function(t,e){var r=e.rgb().array(),n=e.alpha(),a=G(r)*n+this._defaultDarkBgColorBrightness*(1-n),o=t.rgb().array(),i=t.hsl().array(),s=t.alpha(),l=G(o),c=Math.abs(a-l);if(l>=250)return t;if(c>this._maxLimitOffsetBrightness&&a<=this._defaultDarkBgColorBrightness+2)return this._adjustBrightnessByLimit(this._maxLimitOffsetBrightness+a,o).alpha(s);if(c>=65)return t;if(a>=100){if(i[2]>50){i[2]=90-i[2];var u=N.a.hsl.apply(N.a,q(i)).alpha(s);return this._adjustTextBrightness(u,e)}return this._adjustBrightnessByLimit(Math.min(this._maxLimitOffsetBrightness,a-65),o).alpha(s)}if(i[2]<=40){i[2]=90-i[2];var h=N.a.hsl.apply(N.a,q(i)).alpha(s);return this._adjustTextBrightness(h,e)}return this._adjustBrightnessByLimit(Math.min(this._maxLimitOffsetBrightness,a+65),o).alpha(s)}},{key:"_adjustBackgroundBrightness",value:function(t){var e=t.rgb().array(),r=t.hsl().array(),n=t.alpha(),a=G(e),o=t;return 0===r[1]&&r[2]>40||a>250?o=N.a.hsl(0,0,Math.min(100,100+this._defaultDarkBgColorHslBrightness-r[2])):a>190?o=this._adjustBrightnessByLimit(190,e).alpha(n):r[2]<22&&(r[2]=22,o=N.a.hsl.apply(N.a,q(r))),o.alpha(n).rgb()}},{key:"_adjustBrightness",value:function(t,e,r){var n,a=t.alpha(),o="";if(r.isBgColor){if(e.getAttribute(u)&&a>=.05&&e.removeAttribute(u),n=this._adjustBackgroundBrightness(t),!r.hasInlineColor){var l=e.getAttribute(i)||this._config.defaultLightTextColor,c=n||t,h=this._adjustBrightness(N()(l),e,{isTextColor:!0,parentElementBgColorStr:c});h.newColor?o+=this._cssUtils.genCssKV("color",h.newColor):o+=this._cssUtils.genCssKV("color",l)}}else if(r.isTextColor||r.isBorderColor){var f=r.parentElementBgColorStr||r.isTextColor&&e.getAttribute(s)||this._config.defaultDarkBgColor,g=N()(f);e.getAttribute(u)||(n=this._adjustTextBrightness(t,g))}else r.isTextShadow&&(n=this._adjustBackgroundBrightness(t));return{newColor:n&&t.toString()!==n.toString()&&n.alpha(a).rgb(),extStyle:o}}},{key:"_try",value:function(t){try{return t()}catch(t){console.log("An error occurred when running the dark mode conversion algorithm\n",t),"function"==typeof this._config.error&&this._config.error(t)}}},{key:"convert",value:function(t){var e=this,r=t.nodeName;if(this._config.whitelist.tagName.indexOf(r)>-1)return"";var n,a,o=t.style,h="",g="",p=!1,y=!1,m=!1,v=(o.cssText&&o.cssText.split(";")||[]).map((function(t){var e=t.indexOf(":");return[t.slice(0,e).toLowerCase(),t.slice(e+1)].map((function(t){return(t||"").replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}))})).filter((function(t){var e=D(t,2),r=e[0],o=e[1];return"color"===r?p=!0:/background/i.test(r)&&(y=!0,"background-position"===r?n=o:"background-size"===r&&(a=o)),(/background/i.test(r)||/^(-webkit-)?border-image/.test(r))&&/url\([^)]*\)/i.test(o)&&(m=!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","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","text-shadow"].indexOf(r)>-1})).sort((function(t,e){var r=D(t,1)[0],n=D(e,1)[0];return"color"===r||"background-image"===r&&"background-color"===n||0===n.indexOf("-webkit-text")?1:-1}));f.indexOf(r)>-1&&!y&&this._try((function(){var e=function(t){var e=null;return Array.prototype.some.call(t.classList,(function(t){return!!P[t]&&(e=P[t],!0)})),e}(t);e||(e=t.getAttribute("bgcolor")),e&&(v.unshift(["background-color",N()(e).toString()]),y=!0)})),"FONT"!==r||p||this._try((function(){var e=t.getAttribute("color");e&&(v.push(["color",N()(e).toString()]),p=!0)}));var k,w,_="",x="",M=0;if(v.some((function(t,r){var n=D(t,2),a=n[0],o=n[1];return e._try((function(){if(0!==a.indexOf("-webkit-text"))return M=r,!0;switch(a){case"-webkit-text-fill-color":_=Q(o);break;case"-webkit-text-stroke":var t=o.split(" ");2===t.length&&(x=Q(t[1]));break;case"-webkit-text-stroke-color":x=Q(o)}return!1}))})),_&&(p?v[v.length-1]=["-webkit-text-fill-color",_]:(v.push(["-webkit-text-fill-color",_]),p=!0)),M&&(v.splice(0,M),x&&v.unshift(["-webkit-text-stroke-color",x])),v.forEach((function(r){var f=D(r,2),g=f[0],d=f[1];return e._try((function(){var r,f=d,v=!1,k=/^background/.test(g),w="text-shadow"===g,_=["-webkit-text-stroke-color","color","-webkit-text-fill-color"].indexOf(g),x=/^border/.test(g),M=/gradient/.test(d),C=[],j="";if(d=R(d,M),K.test(d)){if(M){for(var S=J.exec(d);S;)C.push(S[0]),S=J.exec(d);r=$(C)}var B=0;d=d.replace(J,(function(n){M&&(n=r,v=!0);var a=e._adjustBrightness(N()(n),t,{isBgColor:k,isTextShadow:w,isTextColor:_>-1,isBorderColor:x,hasInlineColor:p}),o=!m&&a.newColor;if(j+=a.extStyle,k||_>0){var h=k?s:i,f=k?c:l,g=o?o.toString():n;0===B&&O(t).forEach((function(t){var r=t.getAttribute(f)||e._config.defaultLightBgColor;t.setAttribute(h,g),t.setAttribute(f,r.split("|").concat(n).join("|")),k&&N()(g).alpha()>=.05&&t.getAttribute(u)&&t.removeAttribute(u)}))}return o&&(v=!0),B+=1,o||n})).replace(/\s?!\s?important/gi,"")}if(j&&(h+=j),!(t instanceof SVGElement)){var A=/^background/.test(g),P=/^(-webkit-)?border-image/.test(g);if((A||P)&&/url\([^)]*\)/i.test(d)){v=!0;var E=$((t.getAttribute(c)||e._config.defaultLightBgColor).split("|"));if(d=d.replace(/^(.*?)url\(([^)]*)\)(.*)$/i,(function(r){var o=r,i="",s="",l="";return"1"!==t.getAttribute(u)&&O(t).forEach((function(t){return t.setAttribute(u,"1")})),A?(o="linear-gradient(".concat("rgba(0,0,0,0.1)",", ").concat("rgba(0,0,0,0.1)","),").concat(r),l=e._cssUtils.genCssKV(g,"".concat(o,",linear-gradient(").concat(E,", ").concat(E,")")),n&&(i="top left,".concat(n),h+=e._cssUtils.genCssKV("background-position","".concat(i)),l+=e._cssUtils.genCssKV("background-position","".concat(i,",top left"))),a&&(s="100%,".concat(a),h+=e._cssUtils.genCssKV("background-size","".concat(s)),l+=e._cssUtils.genCssKV("background-size","".concat(s,",100%"))),e._bgStack.push(t,l)):!y&&e._bgStack.push(t,e._cssUtils.genCssKV("background-image","linear-gradient(".concat("rgba(0,0,0,0.1)",", ").concat("rgba(0,0,0,0.1)","),linear-gradient(").concat(E,", ").concat(E,")"))),o})),!p){var T=$((t.getAttribute(l)||e._config.defaultLightTextColor).split("|"));h+=e._cssUtils.genCssKV("color",T),O(t).forEach((function(t){return t.setAttribute(i,T)}))}}}v&&(b.test(f)&&(o[g]=H(f)),M?e._bgStack.push(t,e._cssUtils.genCssKV(g,d)):h+=e._cssUtils.genCssKV(g,d))}))})),h){d&&t.setAttribute("data-style",o.cssText);var C="".concat("js_darkmode__").concat(this._idx++);t.classList.add(C),g+=h?this._cssUtils.genCss(C,h):""}return k=t,w="",Array.prototype.forEach.call(k.childNodes,(function(t){3===t.nodeType&&(w+=t.nodeValue.replace(/\s/g,""))})),w.length>0&&(this._config.delayBgJudge?this._tnQueue.push(t):this._bgStack.contains(t,(function(t){g+=e._cssUtils.genCss(t.className,t.cssKV)}))),g}}])&&z(e.prototype,r),n&&z(e,n),t}(),X=new RegExp("".concat("js_darkmode__","[^ ]+"),"g"),Y={hasInit:!1,begin:null,error:null,mode:"",whitelist:{tagName:["MPCPS","IFRAME"]},needJudgeFirstPage:!0,delayBgJudge:!1,container:null,cssSelectorsPrefix:"",defaultLightTextColor:"#191919",defaultLightBgColor:"#fff",defaultDarkTextColor:"#a3a3a3",defaultDarkBgColor:"#191919"},Z=function(t,e,r){var n=e[r];switch(t){case"boolean":"boolean"==typeof n&&(Y[r]=n);break;case"string":"string"==typeof n&&""!==n&&(Y[r]=n);break;case"function":"function"==typeof n&&(Y[r]=n);break;case"dom":n instanceof HTMLElement&&(Y[r]=n)}},tt=new v(Y,"".concat("js_darkmode__","text__")),et=new _(Y,"".concat("js_darkmode__","bg__")),rt=new C(Y),nt=new E(Y),at=new W({config:Y,tnQueue:tt,bgStack:et,cssUtils:rt}),ot=null,it=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{type:"dom"};if(e.force&&(rt.isFinish=!1),!rt.isFinish)try{(Y.mode?"dark"===Y.mode:t.matches)?("dom"===e.type?("function"==typeof Y.begin&&Y.begin(nt.hasDelay()),Array.prototype.forEach.call(nt.get(),(function(t){if(t.className&&"string"==typeof t.className&&(t.className=t.className.replace(X,"")),Y.needJudgeFirstPage){var e=t.getBoundingClientRect(),r=e.top,n=e.bottom;r<=0&&n<=0?rt.addCss(at.convert(t),!1):r>0&&r0&&n0&&void 0!==arguments[0]?arguments[0]:{};if(!Y.hasInit){Y.hasInit=!0;var e=Y.whitelist.tagName;t.whitelist&&t.whitelist.tagName instanceof Array&&t.whitelist.tagName.forEach((function(t){t=t.toUpperCase(),-1===e.indexOf(t)&&e.push(t)})),["dark","light"].indexOf(t.mode)>-1&&(Z("string",t,"mode"),document.getElementsByTagName("html")[0].classList.add(a)),Z("function",t,"begin"),Z("function",t,"error"),Z("boolean",t,"needJudgeFirstPage"),Z("boolean",t,"delayBgJudge"),Z("dom",t,"container"),Z("string",t,"cssSelectorsPrefix"),Z("string",t,"defaultLightTextColor"),Z("string",t,"defaultLightBgColor"),Z("string",t,"defaultDarkTextColor"),Z("string",t,"defaultDarkBgColor"),Y.mode||null!==ot||(ot=window.matchMedia(n)).addListener(it)}}function ct(t){nt.set(t),null!==Y.container&&(et.update(t),tt.update(t)),it(ot,{force:!0,type:"bg"})}}])})); 视频 小程序 ,轻点两下取消赞 在看 ,轻点两下取消在看