UNPKG

@cocalc/static

Version:

CoCalc's static frontend Webpack-based build system and framework

1 lines 83 kB
(self.webpackChunk_cocalc_static=self.webpackChunk_cocalc_static||[]).push([[2339],{42339:function(e,t){function r(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}!function(e){"use strict";var t=function(e,t,n,o){return new(n||(n=Promise))((function(a,i){function u(e){try{c(o.next(e))}catch(e){i(e)}}function s(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,r(t,n)?t:new n((function(e){e(t)}))).then(u,s)}c((o=o.apply(e,t||[])).next())}))},n=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}},o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i},i=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||t)},u=function(e,r,o){return t(this,void 0,void 0,(function(){var t;return n(this,(function(n){switch(n.label){case 0:return[4,fetch(e,{cache:"force-cache",credentials:"omit",referrer:o})];case 1:if(t=n.sent(),Ft&&"text/css"===r&&e.startsWith("moz-extension://")&&e.endsWith(".css"))return[2,t];if(r&&!t.headers.get("Content-Type").startsWith(r))throw new Error("Mime type mismatch when loading "+e);if(!t.ok)throw new Error("Unable to load "+e+" "+t.status+" "+t.statusText);return[2,t]}}))}))},s=function(e,r){return t(this,void 0,void 0,(function(){var t;return n(this,(function(n){switch(n.label){case 0:return[4,u(e,r)];case 1:return t=n.sent(),[4,c(t)];case 2:return[2,n.sent()]}}))}))},c=function(e){return t(this,void 0,void 0,(function(){var t;return n(this,(function(r){switch(r.label){case 0:return[4,e.blob()];case 1:return t=r.sent(),[4,new Promise((function(e){var r=new FileReader;r.onloadend=function(){return e(r.result)},r.readAsDataURL(t)}))];case 2:return[2,r.sent()]}}))}))},l=function(e){return t(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,zt(e)];case 1:return[2,t.sent()]}}))}))},d=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t(this,void 0,void 0,(function(){var t,r,o,a,i,u,s;return n(this,(function(n){switch(n.label){case 0:if(!e[0]||e[0].type!==Lt.CS_FETCH)return[3,8];t=e[0].id,n.label=1;case 1:return n.trys.push([1,7,,8]),r=e[0].data,o=r.url,a=r.responseType,[4,l(o)];case 2:return i=n.sent(),"data-url"!==a?[3,4]:[4,c(i)];case 3:return u=n.sent(),[3,6];case 4:return[4,i.text()];case 5:u=n.sent(),n.label=6;case 6:return $t.forEach((function(e){return e({type:Lt.BG_FETCH_RESPONSE,data:u,error:null,id:t})})),[3,8];case 7:return s=n.sent(),console.error(s),$t.forEach((function(e){return e({type:Lt.BG_FETCH_RESPONSE,data:null,error:s,id:t})})),[3,8];case 8:return[2]}}))}))},f=function(e){$t.add(e)},h=function(e,t){var r,n;if(function(e){return null!=e.length}(e))for(var a=0,i=e.length;a<i;a++)t(e[a]);else try{for(var u=o(e),s=u.next();!s.done;s=u.next())t(s.value)}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}},p=function(e,t){h(t,(function(t){return e.push(t)}))},m=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},v=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},g=function(e){var t,r=!1,n=null;return Object.assign((function(){for(var o=[],u=0;u<arguments.length;u++)o[u]=arguments[u];t=o,n?r=!0:(e.apply(void 0,i([],a(t))),n=requestAnimationFrame((function(){n=null,r&&(e.apply(void 0,i([],a(t))),r=!1)})))}),{cancel:function(){cancelAnimationFrame(n),r=!1,n=null}})},b=function(e){var t=0;return e.seconds&&(t+=1e3*e.seconds),e.minutes&&(t+=60*e.minutes*1e3),e.hours&&(t+=60*e.hours*60*1e3),e.days&&(t+=24*e.days*60*60*1e3),t},y=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},S=function(e,t,r){void 0===r&&(r=Function.prototype);var n=b({seconds:2}),o=b({seconds:10}),a=e.previousSibling,i=e.parentNode;if(!i)throw new Error("Unable to watch for node position: parent element not found");if("prev-sibling"===t&&!a)throw new Error("Unable to watch for node position: there is no previous sibling");var u=0,s=null,c=null,l=g((function(){if(!c){u++;var f=Date.now();if(null==s)s=f;else if(u>=10){if(f-s<o)return v("Node position watcher paused: retry in "+n+"ms",e,a),void(c=setTimeout((function(){s=null,u=0,c=null,l()}),n));s=f,u=1}if("parent"===t&&a&&a.parentNode!==i)return v("Unable to restore node position: sibling parent changed",e,a,i),void h();if("prev-sibling"===t){if(null==a.parentNode)return v("Unable to restore node position: sibling was removed",e,a,i),void h();a.parentNode!==i&&(v("Style was moved to another parent",e,a,i),p(a.parentNode))}v("Restoring node position",e,a,i),i.insertBefore(e,a?a.nextSibling:i.firstChild),d.takeRecords(),r&&r()}})),d=new MutationObserver((function(){("parent"===t&&e.parentNode!==i||"prev-sibling"===t&&e.previousSibling!==a)&&l()})),f=function(){d.observe(i,{childList:!0})},h=function(){clearTimeout(c),d.disconnect(),l.cancel()},p=function(e){i=e,h(),f()};return f(),{run:f,stop:h,skip:function(){d.takeRecords()}}},_=function(){return"complete"===document.readyState||"interactive"===document.readyState},w=function(e){tr.add(e)},k=function(e){tr.delete(e)},E=function(){return"complete"===document.readyState},C=function(e){rr.add(e)},x=function(e,t){var n,o,a;if(ir.has(e))n=ir.get(e),o=ur.get(n);else{var i=!1,u=!1;(n=new MutationObserver((function(t){if(function(e){if(e.length>ar)return!0;for(var t=0,r=0;r<e.length;r++)if((t+=e[r].addedNodes.length)>ar)return!0;return!1}(t))!i||_()?o.forEach((function(t){return(0,t.onHugeMutations)(e)})):u||(w(a=function(){return o.forEach((function(t){return(0,t.onHugeMutations)(e)}))}),u=!0),i=!0;else{var n=function(e){var t=new Set,n=new Set,o=new Set;e.forEach((function(e){h(e.addedNodes,(function(e){r(e,Element)&&e.isConnected&&t.add(e)})),h(e.removedNodes,(function(e){r(e,Element)&&(e.isConnected?o.add(e):n.add(e))}))})),o.forEach((function(e){return t.delete(e)}));var a=[],i=[];return t.forEach((function(e){t.has(e.parentElement)&&a.push(e)})),n.forEach((function(e){n.has(e.parentElement)&&i.push(e)})),a.forEach((function(e){return t.delete(e)})),i.forEach((function(e){return n.delete(e)})),{additions:t,moves:o,deletions:n}}(t);o.forEach((function(e){return(0,e.onMinorMutations)(n)}))}}))).observe(e,{childList:!0,subtree:!0}),ir.set(e,n),o=new Set,ur.set(n,o)}return o.add(t),{disconnect:function(){o.delete(t),a&&k(a),0===o.size&&(n.disconnect(),ur.delete(n),ir.delete(e))}}},T=function(e){return or||(or=document.createElement("a")),or.href=e,or.href},V=function(e,t){void 0===t&&(t=null);var r=e+(t?";"+t:"");if(sr.has(r))return sr.get(r);if(t){var n=new URL(e,T(t));return sr.set(r,n),n}var o=new URL(T(e));return sr.set(e,o),o},R=function(e,t){if(t.match(/^data\\?\:/))return t;var r=V(e);return V(t,r.href).href},A=function(e,t){h(e,(function(r){var n=e.getPropertyValue(r).trim();n&&t(r,n)}));var r=e.cssText;r.includes("var(")&&(Nt?fr.forEach((function(e){var n=a(e,2),o=n[0],i=n[1],u=r.match(i);if(u&&u[1]){var s=u[1].trim();t(o,s)}})):dr.forEach((function(r){var n=e.getPropertyValue(r);n&&n.includes("var(")&&t(r,n)})))},M=function(e){return e.replace(/^url\((.*)\)$/,"$1").replace(/^"(.*)"$/,"$1").replace(/^'(.*)'$/,"$1")},L=function(e){var t=V(e);return""+t.origin+t.pathname.replace(/\?.*$/,"").replace(/(\/)([^\/]+)$/i,"$1")},O=function(e){var t=e.h,r=e.s,n=e.l,o=e.a,i=void 0===o?1:o;if(0===r){var u=a([n,n,n].map((function(e){return Math.round(255*e)})),3),s=u[0],c=u[1];return{r:s,g:u[2],b:c,a:i}}var l=(1-Math.abs(2*n-1))*r,d=l*(1-Math.abs(t/60%2-1)),f=n-l/2,h=a((t<60?[l,d,0]:t<120?[d,l,0]:t<180?[0,l,d]:t<240?[0,d,l]:t<300?[d,0,l]:[l,0,d]).map((function(e){return Math.round(255*(e+f))})),3);return{r:h[0],g:h[1],b:h[2],a:i}},P=function(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=void 0===o?1:o,i=t/255,u=r/255,s=n/255,c=Math.max(i,u,s),l=Math.min(i,u,s),d=c-l,f=(c+l)/2;if(0===d)return{h:0,s:0,l:f,a};var h=60*(c===i?(u-s)/d%6:c===u?(s-i)/d+2:(i-u)/d+4);return h<0&&(h+=360),{h,s:d/(1-Math.abs(2*f-1)),l:f,a}},D=function(e,t){void 0===t&&(t=0);var r=e.toFixed(t);if(0===t)return r;var n=r.indexOf(".");if(n>=0){var o=r.match(/0+$/);if(o)return o.index===n+1?r.substring(0,n):r.substring(0,o.index)}return r},I=function(e){var t=e.h,r=e.s,n=e.l,o=e.a;return null!=o&&o<1?"hsla("+D(t)+", "+D(100*r)+"%, "+D(100*n)+"%, "+D(o,2)+")":"hsl("+D(t)+", "+D(100*r)+"%, "+D(100*n)+"%)"},F=function(e){var t=e.trim().toLowerCase();if(t.match(gr))return j(t);if(t.match(br))return B(t);if(t.match(yr))return U(t);if(xr.has(t))return q(t);if(Tr.has(t))return W(t);if("transparent"===e)return{r:0,g:0,b:0,a:0};throw new Error("Unable to parse "+e)},N=function(e,t,r,n){var o=e.split(t).filter((function(e){return e})),i=Object.entries(n);return o.map((function(e){return e.trim()})).map((function(e,t){var n,o=i.find((function(t){var r=a(t,1)[0];return e.endsWith(r)}));return n=o?parseFloat(e.substring(0,e.length-o[0].length))/o[1]*r[t]:parseFloat(e),r[t]>1?Math.round(n):n}))},j=function(e){var t=a(N(e,Sr,_r,wr),4),r=t[0],n=t[1],o=t[2],i=t[3];return{r,g:n,b:o,a:void 0===i?1:i}},B=function(e){var t=a(N(e,kr,Er,Cr),4),r=t[0],n=t[1],o=t[2],i=t[3];return O({h:r,s:n,l:o,a:void 0===i?1:i})},U=function(e){var t=e.substring(1);switch(t.length){case 3:case 4:var r=a([0,1,2].map((function(e){return parseInt(""+t[e]+t[e],16)})),3);return{r:r[0],g:r[1],b:r[2],a:3===t.length?1:parseInt(""+t[3]+t[3],16)/255};case 6:case 8:var n=a([0,2,4].map((function(e){return parseInt(t.substring(e,e+2),16)})),3);return{r:n[0],g:n[1],b:n[2],a:6===t.length?1:parseInt(t.substring(6,8),16)/255}}throw new Error("Unable to parse "+e)},q=function(e){var t=xr.get(e);return{r:t>>16&255,g:t>>8&255,b:t>>0&255,a:1}},W=function(e){var t=Tr.get(e);return{r:t>>16&255,g:t>>8&255,b:t>>0&255,a:1}},G=function(e,t,r,n,o){return(e-t)*(o-n)/(r-t)+n},H=function(e,t,r){return Math.min(r,Math.max(t,e))},z=function(e,t){for(var r=[],n=0,o=e.length;n<o;n++){r[n]=[];for(var a=0,i=t[0].length;a<i;a++){for(var u=0,s=0,c=e[0].length;s<c;s++)u+=e[n][s]*t[s][a];r[n][a]=u}}return r},$=function(e,t,r){void 0===r&&(r=0);for(var n,o=[];n=e.exec(t);)o.push(n[r]);return o},Q=function(e){var t=Vr.identity();return 0!==e.sepia&&(t=z(t,Vr.sepia(e.sepia/100))),0!==e.grayscale&&(t=z(t,Vr.grayscale(e.grayscale/100))),100!==e.contrast&&(t=z(t,Vr.contrast(e.contrast/100))),100!==e.brightness&&(t=z(t,Vr.brightness(e.brightness/100))),1===e.mode&&(t=z(t,Vr.invertNHue())),t},K=function(e){return e[1===e.mode?"darkSchemeBackgroundColor":"lightSchemeBackgroundColor"]},X=function(e){return e[1===e.mode?"darkSchemeTextColor":"lightSchemeTextColor"]},Y=function(e){if(Ar.has(e))return Ar.get(e);var t=F(e),r=P(t);return Ar.set(e,r),r},Z=function(e,t,r,n,o){var i;Rr.has(r)?i=Rr.get(r):(i=new Map,Rr.set(r,i));var u=function(e,t){return Mr.map((function(t){return e[t]})).concat(Lr.map((function(e){return t[e]}))).join(";")}(e,t);if(i.has(u))return i.get(u);var s=r(P(e),null==n?null:Y(n),null==o?null:Y(o)),c=O(s),l=c.r,d=c.g,f=c.b,h=c.a,p=Q(t),m=a(function(e,t){var r=a(e,3),n=r[0],o=r[1],i=r[2],u=z(t,[[n/255],[o/255],[i/255],[1],[1]]);return[0,1,2].map((function(e){return H(Math.round(255*u[e][0]),0,255)}))}([l,d,f],p),3),v=m[0],g=m[1],b=m[2],y=1===h?function(e){var t=e.r,r=e.g,n=e.b,o=e.a;return"#"+(null!=o&&o<1?[t,r,n,Math.round(255*o)]:[t,r,n]).map((function(e){return(e<16?"0":"")+e.toString(16)})).join("")}({r:v,g,b}):function(e){var t=e.r,r=e.g,n=e.b,o=e.a;return null!=o&&o<1?"rgba("+D(t)+", "+D(r)+", "+D(n)+", "+D(o,2)+")":"rgb("+D(t)+", "+D(r)+", "+D(n)+")"}({r:v,g,b,a:h});return i.set(u,y),y},J=function(e){return e},ee=function(e,t){var r=K(t),n=X(t);return Z(e,t,te,n,r)},te=function(e,t,r){var n=e.h,o=e.s,a=e.l,i=e.a,u=a<.5,s=n,c=a;return(u?a<.2||o<.12:o<.24||a>.8&&n>200&&n<280)&&(u?(s=t.h,c=t.s):(s=r.h,c=r.s)),{h:s,s:c,l:G(a,0,1,t.l,r.l),a:i}},re=function(e,t){var r=e.h,n=e.s,o=e.l,a=e.a,i=n<.12||o>.8&&r>200&&r<280;if(o<.5){var u=G(o,0,.5,0,Or);return i?{h:t.h,s:t.s,l:u,a}:{h:r,s:n,l:u,a}}var s=G(o,.5,1,Or,t.l);if(i)return{h:t.h,s:t.s,l:s,a};var c=r;return r>60&&r<180&&(c=r>120?G(r,120,180,135,180):G(r,60,120,60,105)),{h:c,s:n,l:s,a}},ne=function(e,t){if(0===t.mode)return ee(e,t);var r=K(t);return Z(e,Mt(Mt({},t),{mode:0}),re,r)},oe=function(e){return G(e,205,245,205,220)},ae=function(e,t){var r=e.h,n=e.s,o=e.l,a=e.a,i=o<.2||n<.24,u=!i&&r>205&&r<245;if(o>.5){var s=G(o,.5,1,Pr,t.l);if(i)return{h:t.h,s:t.s,l:s,a};var c=r;return u&&(c=oe(r)),{h:c,s:n,l:s,a}}if(i)return{h:t.h,s:t.s,l:G(o,0,.5,t.l,Pr),a};var l,d=r;return u?(d=oe(r),l=G(o,0,.5,t.l,Math.min(1,Pr+.05))):l=G(o,0,.5,t.l,Pr),{h:d,s:n,l,a}},ie=function(e,t){if(0===t.mode)return ee(e,t);var r=X(t);return Z(e,Mt(Mt({},t),{mode:0}),ae,r)},ue=function(e,t,r){var n=e.h,o=e.s,a=e.l,i=e.a,u=n,s=o;return(a<.2||o<.24)&&(a<.5?(u=t.h,s=t.s):(u=r.h,s=r.s)),{h:u,s,l:G(a,0,1,.5,.2),a:i}},se=function(e,t){if(0===t.mode)return ee(e,t);var r=X(t),n=K(t);return Z(e,Mt(Mt({},t),{mode:0}),ue,r,n)},ce=function(e,t){return ne(e,t)},le=function(e){var t=[];return e.mode===lr.dark&&t.push("invert(100%) hue-rotate(180deg)"),100!==e.brightness&&t.push("brightness("+e.brightness+"%)"),100!==e.contrast&&t.push("contrast("+e.contrast+"%)"),0!==e.grayscale&&t.push("grayscale("+e.grayscale+"%)"),0!==e.sepia&&t.push("sepia("+e.sepia+"%)"),0===t.length?null:t.join(" ")},de=function(e){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,new Promise((function(t,r){var n=++Dr;Ir.set(n,t),Fr.set(n,r),chrome.runtime.sendMessage({type:Lt.CS_FETCH,data:e,id:n})}))]}))}))},fe=function(e){return t(this,void 0,void 0,(function(){var r=this;return n(this,(function(o){return[2,new Promise((function(o,a){return t(r,void 0,void 0,(function(){var t,r,i,u;return n(this,(function(n){switch(n.label){case 0:return e.startsWith("data:")?(t=e,[3,4]):[3,1];case 1:return n.trys.push([1,3,,4]),[4,he(e)];case 2:return t=n.sent(),[3,4];case 3:return r=n.sent(),a(r),[3,4];case 4:return n.trys.push([4,6,,7]),[4,pe(t)];case 5:return i=n.sent(),qr.addToQueue((function(){o(Mt({src:e,dataURL:t,width:i.naturalWidth,height:i.naturalHeight},me(i)))})),[3,7];case 6:return u=n.sent(),a(u),[3,7];case 7:return[2]}}))}))}))]}))}))},he=function(e){return t(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return new URL(e).origin!==location.origin?[3,2]:[4,s(e)];case 1:case 3:return[2,t.sent()];case 2:return[4,de({url:e,responseType:"data-url"})]}}))}))},pe=function(e){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,new Promise((function(t,r){var n=new Image;n.onload=function(){return t(n)},n.onerror=function(){return r("Unable to load image "+e)},n.src=e}))]}))}))},me=function(e){var t,r;Nr||(t=Wr,r=Wr,(Nr=document.createElement("canvas")).width=t,Nr.height=r,(jr=Nr.getContext("2d")).imageSmoothingEnabled=!1);var n=e.naturalWidth,o=e.naturalHeight;if(0===o||0===n)return v("logWarn(Image is empty "+e.currentSrc+")"),null;if(n*o*4>Gr)return m("Skipped large image analyzing(Larger than 5mb in memory)"),{isDark:!1,isLight:!1,isTransparent:!1,isLarge:!1,isTooLarge:!0};var a=n*o,i=Math.min(1,Math.sqrt(Wr/a)),u=Math.ceil(n*i),s=Math.ceil(o*i);jr.clearRect(0,0,u,s),jr.drawImage(e,0,0,n,o,0,0,u,s);var c,l,d,f,h,p,g,b=jr.getImageData(0,0,u,s).data,y=0,S=0,_=0;for(d=0;d<s;d++)for(l=0;l<u;l++)f=b[0+(c=4*(d*u+l))]/255,h=b[c+1]/255,p=b[c+2]/255,b[c+3]/255<.05?y++:((g=.2126*f+.7152*h+.0722*p)<.4&&S++,g>.7&&_++);var w=u*s,k=w-y;return{isDark:S/k>=.7,isLight:_/k>=.7,isTransparent:y/w>=.1,isLarge:a>=48e4,isTooLarge:!1}},ve=function(e,t){var r,n=e.dataURL,o=e.width,a=e.height,i=['<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+o+'" height="'+a+'">',"<defs>",'<filter id="darkreader-image-filter">','<feColorMatrix type="matrix" values="'+(r=t,Q(r).slice(0,4).map((function(e){return e.map((function(e){return e.toFixed(3)})).join(" ")})).join(" ")+'" />'),"</filter>","</defs>",'<image width="'+o+'" height="'+a+'" filter="url(#darkreader-image-filter)" xlink:href="'+n+'" />',"</svg>"].join("");return"data:image/svg+xml;base64,"+btoa(i)},ge=function(){qr&&qr.stopQueue(),Nr=null,jr=null},be=function(e,t){return Boolean(e&&e.getPropertyPriority(t))},ye=function(e,t,r,n,o,a){if(e.startsWith("--")){if(i=Re(n,e,t,r,o,a))return{property:e,value:i,important:be(r.style,e),sourceValue:t}}else if(t.includes("var(")){if(i=Ae(n,e,t))return{property:e,value:i,important:be(r.style,e),sourceValue:t}}else if(e.includes("color")&&"-webkit-print-color-adjust"!==e||"fill"===e||"stroke"===e||"stop-color"===e){if(i=xe(e,t))return{property:e,value:i,important:be(r.style,e),sourceValue:t}}else if("background-image"===e||"list-style-image"===e){if(i=Te(t,r,o,a))return{property:e,value:i,important:be(r.style,e),sourceValue:t}}else if(e.includes("shadow")){var i;if(i=Ve(t))return{property:e,value:i,important:be(r.style,e),sourceValue:t}}return null},Se=function(e){var t,r;if("auto"===e.selectionColor)t=ne({r:0,g:96,b:212},Mt(Mt({},e),{grayscale:0})),r=ie({r:255,g:255,b:255},Mt(Mt({},e),{grayscale:0}));else{var n=F(e.selectionColor),o=P(n);t=e.selectionColor,r=o.l<.5?"#FFF":"#000"}return{backgroundColorSelection:t,foregroundColorSelection:r}},_e=function(e){var t=[],r=Se(e),n=r.backgroundColorSelection,o=r.foregroundColorSelection;return["::selection","::-moz-selection"].forEach((function(e){t.push(e+" {"),t.push(" background-color: "+n+" !important;"),t.push(" color: "+o+" !important;"),t.push("}")})),t.join("\n")},we=function(e){var t,r,n,o,a,i,u=[];if("auto"===e.scrollbarColor)t=ne({r:241,g:241,b:241},e),r=ie({r:96,g:96,b:96},e),n=ne({r:176,g:176,b:176},e),o=ne({r:144,g:144,b:144},e),a=ne({r:96,g:96,b:96},e),i=ne({r:255,g:255,b:255},e);else{var s=F(e.scrollbarColor),c=P(s),l=c.l>.5,d=function(e){return Mt(Mt({},c),{l:H(c.l+e,0,1)})},f=function(e){return Mt(Mt({},c),{l:H(c.l-e,0,1)})};t=I(f(.4)),r=I(l?f(.4):d(.4)),n=I(c),o=I(d(.1)),a=I(d(.2))}return u.push("::-webkit-scrollbar {"),u.push(" background-color: "+t+";"),u.push(" color: "+r+";"),u.push("}"),u.push("::-webkit-scrollbar-thumb {"),u.push(" background-color: "+n+";"),u.push("}"),u.push("::-webkit-scrollbar-thumb:hover {"),u.push(" background-color: "+o+";"),u.push("}"),u.push("::-webkit-scrollbar-thumb:active {"),u.push(" background-color: "+a+";"),u.push("}"),u.push("::-webkit-scrollbar-corner {"),u.push(" background-color: "+i+";"),u.push("}"),Ft&&(u.push("* {"),u.push(" scrollbar-color: "+n+" "+t+";"),u.push("}")),u.join("\n")},ke=function(e,t){var r=t.strict,n=[];return n.push("html, body, "+(r?"body :not(iframe)":"body > :not(iframe)")+" {"),n.push(" background-color: "+ne({r:255,g:255,b:255},e)+" !important;"),n.push(" border-color: "+se({r:64,g:64,b:64},e)+" !important;"),n.push(" color: "+ie({r:0,g:0,b:0},e)+" !important;"),n.push("}"),n.join("\n")},Ee=function(e){if(e=e.trim(),zr.has(e))return zr.get(e);var t=F(e);return zr.set(e,t),t},Ce=function(e){try{return Ee(e)}catch(e){return null}},xe=function(e,t){if(Hr.has(t.toLowerCase()))return t;try{var r=Ee(t);return e.includes("background")?function(e){return ne(r,e)}:e.includes("border")||e.includes("outline")?function(e){return se(r,e)}:function(e){return ie(r,e)}}catch(e){return v("Color parse error",e),null}},Te=function(e,o,a,i){var u=this;try{var s=$($r,e),c=$(hr,e);if(0===c.length&&0===s.length)return e;var l=function(t){var r=0;return t.map((function(t){var n=e.indexOf(t,r);return r=n+t.length,{match:t,index:n}}))},d=l(c).map((function(e){return Mt({type:"url"},e)})).concat(l(s).map((function(e){return Mt({type:"gradient"},e)}))).sort((function(e,t){return e.index-t.index})),f=function(e,t){var r,n=e.isDark,o=e.isLight,a=e.isTransparent,i=e.isLarge,u=e.isTooLarge,s=e.width;return u?r='url("'+e.src+'")':n&&a&&1===t.mode&&!i&&s>2?(m("Inverting dark image "+e.src),r='url("'+ve(e,Mt(Mt({},t),{sepia:H(t.sepia+10,0,100)}))+'")'):o&&!a&&1===t.mode?i?r="none":(m("Dimming light image "+e.src),r='url("'+ve(e,t)+'")'):0===t.mode&&o&&!i?(m("Applying filter to image "+e.src),r='url("'+ve(e,Mt(Mt({},t),{brightness:H(t.brightness-10,5,200),sepia:H(t.sepia+10,0,100)}))+'")'):r=null,r},h=[],p=0;return d.forEach((function(r,s){var c=r.match,l=r.type,m=r.index,g=p,b=m+c.length;p=b,h.push((function(){return e.substring(g,m)})),h.push("url"===l?function(e){var r;if(function(e,t){if(!e||0===t.length)return!1;if(t.some((function(e){return"*"===e})))return!0;for(var r=e.split(/,\s*/g),n=function(e){var n=t[e];if(r.some((function(e){return e===n})))return{value:!0}},o=0;o<t.length;o++){var a=n(o);if("object"==typeof a)return a.value}return!1}(o.selectorText,a))return null;var s=M(e),c=o.parentStyleSheet,l=c&&c.href?L(c.href):(null===(r=c.ownerNode)||void 0===r?void 0:r.baseURI)||location.origin,d='url("'+(s=R(l,s))+'")';return function(e){return t(u,void 0,void 0,(function(){var t,r,o;return n(this,(function(n){switch(n.label){case 0:return Qr.has(s)?(t=Qr.get(s),[3,7]):[3,1];case 1:return n.trys.push([1,6,,7]),Kr.has(s)?(r=Kr.get(s),[4,new Promise((function(e){return r.push(e)}))]):[3,3];case 2:return(t=n.sent())?[3,5]:[2,null];case 3:return Kr.set(s,[]),[4,fe(s)];case 4:t=n.sent(),Qr.set(s,t),Kr.get(s).forEach((function(e){return e(t)})),Kr.delete(s),n.label=5;case 5:return i()?[2,null]:[3,7];case 6:return o=n.sent(),v(o),Kr.has(s)&&(Kr.get(s).forEach((function(e){return e(null)})),Kr.delete(s)),[2,d];case 7:return[2,f(t,e)||d]}}))}))}}(c):function(e){var t=e.match(/^(.*-gradient)\((.*)\)$/),r=t[1],n=t[2],o=/^(from|color-stop|to)\(([^\(\)]*?,\s*)?(.*?)\)$/,a=$(/([^\(\),]+(\([^\(\)]*(\([^\(\)]*\)*[^\(\)]*)?\))?[^\(\),]*),?/g,n,1).map((function(e){e=e.trim();var t=Ce(e);if(t)return function(e){return ce(t,e)};var r=e.lastIndexOf(" ");if(t=Ce(e.substring(0,r)))return function(n){return ce(t,n)+" "+e.substring(r+1)};var n=e.match(o);return n&&(t=Ce(n[3]))?function(e){return n[1]+"("+(n[2]?n[2]+", ":"")+ce(t,e)+")"}:function(){return e}}));return function(e){return r+"("+a.map((function(t){return t(e)})).join(", ")+")"}}(c)),s===d.length-1&&h.push((function(){return e.substring(b)}))})),function(e){var t=h.filter(Boolean).map((function(t){return t(e)}));return t.some((function(e){return r(e,Promise)}))?Promise.all(t).then((function(e){return e.join("")})):t.join("")}}catch(t){return v("Unable to parse gradient "+e,t),null}},Ve=function(e){try{var t=0,r=$(/(^|\s)([a-z]+\(.+?\)|#[0-9a-f]+|[a-z]+)(.*?(inset|outset)?($|,))/gi,e,2),n=r.map((function(n,o){var a=t,i=e.indexOf(n,t),u=i+n.length;t=u;var s=Ce(n);return s?function(t){return""+e.substring(a,i)+function(e,t){return ne(e,t)}(s,t)+(o===r.length-1?e.substring(u):"")}:function(){return e.substring(a,u)}}));return function(e){return n.map((function(t){return t(e)})).join("")}}catch(t){return v("Unable to parse shadow "+e,t),null}},Re=function(e,t,r,n,o,a){return e.getModifierForVariable({varName:t,sourceValue:r,rule:n,ignoredImgSelectors:o,isCancelled:a})},Ae=function(e,t,r){return e.getModifierForVarDependant(t,r)},Me=function(){zr.clear(),Rr.clear(),Ar.clear(),Qr.clear(),ge(),Kr.clear()},Le=function(e,t){void 0===t&&(t=0);var r=e.indexOf("var(",t);if(r>=0){var n=function(e,t){void 0===t&&(t=0);for(var r=e.length,n=0,o=-1,a=t;a<r;a++)if(0===n){if((i=e.indexOf("(",a))<0)break;o=i,n++,a=i}else{var i,u=e.indexOf(")",a);if(u<0)break;if((i=e.indexOf("(",a))<0||u<i){if(0==--n)return{start:o,end:u+1};a=u}else n++,a=i}return null}(e,r+3);return n?{start:r,end:n.end}:null}},Oe=function(e,t){var r=function(e){for(var t,r=[],n=0;t=Le(e,n);){var o=t.start,a=t.end;r.push({start:o,end:a,value:e.substring(o,a)}),n=t.end+1}return r}(e),n=r.length;if(0===n)return e;var o=e.length,a=r.map((function(e){return t(e.value)})),i=[];i.push(e.substring(0,r[0].start));for(var u=0;u<n;u++){i.push(a[u]);var s=r[u].end,c=u<n-1?r[u+1].start:o;i.push(e.substring(s,c))}return i.join("")},Pe=function(e){var t,r,n=e.indexOf(",");return n>=0?(t=e.substring(4,n).trim(),r=e.substring(n+1,e.length-1).trim()):(t=e.substring(4,e.length-1).trim(),r=""),{name:t,fallback:r}},De=function(e){return"--darkreader-bg"+e},Ie=function(e){return"--darkreader-text"+e},Fe=function(e){return"--darkreader-border"+e},Ne=function(e){return"--darkreader-bgimg"+e},je=function(e){return e.startsWith("--")},Be=function(e){return e.includes("var(")},Ue=function(e){return e.match(/^\s*(rgb|hsl)a?\(/)},qe=function(e,t){var r=Ce(e);return r?ne(r,t):e},We=function(e,t){var r=Ce(e);return r?ie(r,t):e},Ge=function(e,t){var r=Ce(e);return r?se(r,t):e},He=function(){return en.map((function(e){var t=e.dataAttr,r=e.customProp;return["["+t+"] {"," "+e.cssProp+": var("+r+") !important;","}"].join("\n")})).join("\n")},ze=function(e,t){return rn.map((function(t){return t+'="'+e.getAttribute(t)+'"'})).concat(cn.map((function(e){return e+'="'+t[e]+'"'}))).join(" ")},$e=function(e,t,n,o){if(ze(e,t)!==sn.get(e)){var a=new Set(Object.keys(Jr));if(n.length>0&&function(e,t){for(var r=0,n=t.length;r<n;r++){var o=t[r];if(e.matches(o))return!0}return!1}(e,n))a.forEach((function(t){e.removeAttribute(Jr[t].dataAttr)}));else{if(e.hasAttribute("bgcolor")&&(((s=e.getAttribute("bgcolor")).match(/^[0-9a-f]{3}$/i)||s.match(/^[0-9a-f]{6}$/i))&&(s="#"+s),c("background-color","background-color",s)),e.hasAttribute("color")&&"mask-icon"!==e.rel&&(((s=e.getAttribute("color")).match(/^[0-9a-f]{3}$/i)||s.match(/^[0-9a-f]{6}$/i))&&(s="#"+s),c("color","color",s)),r(e,SVGElement)){if(e.hasAttribute("fill")){var i=e.getAttribute("fill");if("none"!==i)if(r(e,SVGTextElement))c("fill","color",i);else{var u=function(){var t=e.getBoundingClientRect(),r=t.width,n=t.height;c("fill",r>32||n>32?"background-color":"color",i)};E()?u():C(u)}}e.hasAttribute("stop-color")&&c("stop-color","background-color",e.getAttribute("stop-color"))}if(e.hasAttribute("stroke")){var s=e.getAttribute("stroke");c("stroke",r(e,SVGLineElement)||r(e,SVGTextElement)?"border-color":"color",s)}e.style&&A(e.style,(function(t,r){if("background-image"!==t||!r.includes("url"))if(Jr.hasOwnProperty(t))c(t,t,r);else{var n=tn[t];!n||e.style.getPropertyValue(n)||e.hasAttribute(n)||e.style.setProperty(t,"")}})),e.style&&r(e,SVGTextElement)&&e.style.fill&&c("fill","color",e.style.getPropertyValue("fill")),h(a,(function(t){e.removeAttribute(Jr[t].dataAttr)})),sn.set(e,ze(e,t))}}function c(r,n,i){var u=Jr[r],s=u.customProp,c=u.dataAttr,l=ye(n,i,{},Xr,o,null);if(l){var d=l.value;"function"==typeof d&&(d=d(t)),e.style.setProperty(s,d),e.hasAttribute(c)||e.setAttribute(c,""),a.delete(r)}}},Qe=function(e,t){fn=fn||e.content;try{var r=F(fn);e.content=ne(r,t)}catch(e){v(e)}},Ke=function(){var e=0,t=new Set,n=new Map,o=new Set,u=null,s=!1,c=!1;return{modifySheet:function(l){var d=l.sourceCSSRules,f=l.theme,h=l.ignoreImageAnalysis,p=l.force,m=l.prepareSheet,v=l.isAsyncCancelled,g=0===n.size,b=new Set(n.keys()),y=function(e){return pn.map((function(t){return t+":"+e[t]})).join(";")}(f),S=y!==u;s&&(c=!0);var _=[];if(cr(d,(function(e){var o=e.cssText,a=!1;if(b.delete(o),r(e.parentRule,CSSMediaRule)&&(o+=";"+e.parentRule.media.mediaText),t.has(o)||(t.add(o),a=!0),a){g=!0;var i=[];e.style&&A(e.style,(function(t,r){var n=ye(t,r,e,Xr,h,v);n&&i.push(n)}));var u=null;if(i.length>0){var s=e.parentRule;u={selector:e.selectorText,declarations:i,parentRule:s},_.push(u)}n.set(o,u)}else _.push(n.get(o))}),(function(){s=!0})),b.forEach((function(e){t.delete(e),n.delete(e)})),u=y,p||g||S){e++;var w=new Map,k=new Map,E=0,C=0,x={rule:null,rules:[],isGroup:!0},T=new WeakMap;o.forEach((function(e){return e()})),o.clear(),_.filter((function(e){return e})).forEach((function(t){var n=t.selector,u=t.declarations,s=M(t.parentRule),c={selector:n,declarations:[],isGroup:!1},l=c.declarations;function d(t,r,n,o){var a=++E,i={property:t,value:null,important:n,asyncKey:a,sourceValue:o};l.push(i);var u=e;r.then((function(t){t&&!v()&&u===e&&(i.value=t,mn.add((function(){v()||u!==e||function(e){var t=w.get(e),r=t.rule,n=t.target,o=t.index;n.deleteRule(o),R(n,o,r),w.delete(e)}(a)})))}))}function h(t,n,u,s){var c=n,f=c.declarations,h=c.onTypeChange,p=++C,m=e,g=l.length,b=[];if(0===f.length){var y={property:t,value:s,important:u,sourceValue:s,varKey:p};l.push(y),b=[y]}f.forEach((function(e){if(r(e.value,Promise))d(e.property,e.value,u,s);else{var t={property:e.property,value:e.value,important:u,sourceValue:s,varKey:p};l.push(t),b.push(t)}})),h.addListener((function(t){if(!v()&&m===e){var r=t.map((function(e){return{property:e.property,value:e.value,important:u,sourceValue:s,varKey:p}})),n=l.indexOf(b[0],g);l.splice.apply(l,i([n,b.length],a(r))),b=r,function(e){var t=k.get(e),r=t.rule,n=t.target,o=t.index;n.deleteRule(o),R(n,o,r)}(p)}})),o.add((function(){return h.removeListeners()}))}s.rules.push(c),u.forEach((function(e){var t=e.property,n=e.value,o=e.important,a=e.sourceValue;if("function"==typeof n){var i=n(f);r(i,Promise)?d(t,i,o,a):t.startsWith("--")?h(t,i,o,a):l.push({property:t,value:i,important:o,sourceValue:a})}else l.push({property:t,value:n,important:o,sourceValue:a})}))}));var V=m();!function(){function e(e,t){var n=e.rule;if(r(n,CSSMediaRule)){var o=n.media,a=t.cssRules.length;return t.insertRule("@media "+o.mediaText+" {}",a),t.cssRules[a]}return t}function t(r,n,o){r.rules.forEach((function(r){r.isGroup?t(r,e(r,n),o):o(r,n)}))}t(x,V,(function(e,t){var r=t.cssRules.length;e.declarations.forEach((function(n){var o=n.asyncKey,a=n.varKey;null!=o&&w.set(o,{rule:e,target:t,index:r}),null!=a&&k.set(a,{rule:e,target:t,index:r})})),R(t,r,e)}))}()}function R(e,t,r){var n=r.selector+" { "+r.declarations.map((function(e){var t=e.property,r=e.value,n=e.important,o=e.sourceValue;return t+": "+(null==r?o:r)+(n?" !important":"")+";"})).join(" ")+" }";e.insertRule(n,t)}function M(e){if(null==e)return x;if(T.has(e))return T.get(e);var t={rule:e,rules:[],isGroup:!0};return T.set(e,t),M(e.parentRule).rules.push(t),t}},shouldRebuildStyle:function(){return s&&!c}}},Xe=function(e){return(r(e,HTMLStyleElement)||r(e,SVGStyleElement)||r(e,HTMLLinkElement)&&e.rel&&e.rel.toLowerCase().includes("stylesheet")&&!e.disabled)&&!e.classList.contains("darkreader")&&"print"!==e.media.toLowerCase()&&!e.classList.contains("stylus")},Ye=function(e,o){for(var i=o.update,u=o.loadingStart,s=o.loadingEnd,c=[],l=e;(l=l.nextElementSibling)&&l.matches(".darkreader");)c.push(l);var d=c.find((function(e){return e.matches(".darkreader--cors")&&!bn.has(e)}))||null,f=c.find((function(e){return e.matches(".darkreader--sync")&&!gn.has(e)}))||null,h=null,p=null,g=!1,b=!0,_=Ke(),w=new MutationObserver((function(){i()})),k={attributes:!0,childList:!0,subtree:!0,characterData:!0};function E(){return r(e,HTMLStyleElement)&&e.textContent.trim().match(pr)}function x(e){var t=!1;if(e){var r=void 0;e:for(var n=0,o=e.length;n<o;n++)if((r=e[n]).href&&r.href.startsWith("http")&&!r.href.startsWith(location.origin)){t=!0;break e}}return t}function T(){if(d)return d.sheet.cssRules;if(E())return null;var e=D();return x(e)?null:e}function V(){d?(e.nextSibling!==d&&e.parentNode.insertBefore(d,e.nextSibling),d.nextSibling!==f&&e.parentNode.insertBefore(f,d.nextSibling)):e.nextSibling!==f&&e.parentNode.insertBefore(f,e.nextSibling)}var R=!1,A=!1,M=++Sn;var O=!1;function P(){try{return null==e.sheet?[null,null]:[e.sheet.cssRules,null]}catch(e){return[null,e]}}function D(){var e=a(P(),2),t=e[0],r=e[1];return r?(v(r),null):t}function I(){e.addEventListener("__darkreader__updateSheet",q),It||yn&&e.sheet||function(){F=j(),B();var t=function(){j()!==F&&(F=j(),i()),yn&&e.sheet?B():N=requestAnimationFrame(t)};t()}()}var F=null,N=null;function j(){var e=D();return e?e.length:null}function B(){cancelAnimationFrame(N)}var U=!1;function q(){function e(){U=!1,g||i()}yn=!0,B(),U||(U=!0,"function"==typeof queueMicrotask?queueMicrotask(e):requestAnimationFrame(e))}function W(){e.removeEventListener("__darkreader__updateSheet",q),B()}function G(){w.disconnect(),g=!0,h&&h.stop(),p&&p.stop(),W()}var H=0;return{details:function(){var o=T();return o?{rules:o}:(R||A||(R=!0,u(),function(){return t(this,void 0,void 0,(function(){var t,o,i,u,s,c,l,f,p,b;return n(this,(function(n){switch(n.label){case 0:if(!r(e,HTMLLinkElement))return[3,7];if(i=a(P(),2),u=i[0],(s=i[1])&&v(s),(u||s||Nt)&&(!Nt||e.sheet)&&!((y=s)&&y.message&&y.message.includes("loading")))return[3,5];n.label=1;case 1:return n.trys.push([1,3,,4]),m("Linkelement "+M+" is not loaded yet and thus will be await for",e),[4,Ze(e,M)];case 2:return n.sent(),[3,4];case 3:return c=n.sent(),v(c),A=!0,[3,4];case 4:if(g)return[2,null];b=a(P(),2),u=b[0],(s=b[1])&&v(s),n.label=5;case 5:return l=x(u),null==u||l?[4,Je(e.href)]:[2,u];case 6:return t=n.sent(),o=L(e.href),g?[2,null]:[3,8];case 7:if(!E())return[2,null];t=e.textContent.trim(),o=L(location.href),n.label=8;case 8:if(!t)return[3,13];n.label=9;case 9:return n.trys.push([9,11,,12]),[4,wn(t,o)];case 10:return f=n.sent(),d=et(e,f),[3,12];case 11:return p=n.sent(),v(p),[3,12];case 12:if(d)return h=S(d,"prev-sibling"),[2,d.sheet.cssRules];n.label=13;case 13:return[2,null]}var y}))}))}().then((function(e){R=!1,s(),e&&i()})).catch((function(e){v(e),R=!1,s()}))),null)},render:function(t,n){var o=T();function a(){f||((f=r(e,SVGStyleElement)?document.createElementNS("http://www.w3.org/2000/svg","style"):document.createElement("style")).classList.add("darkreader"),f.classList.add("darkreader--sync"),f.media="screen",!Dt&&e.title&&(f.title=e.title),gn.add(f)),p&&p.stop(),V(),null==f.sheet&&(f.textContent="");for(var t=f.sheet,n=t.cssRules.length-1;n>=0;n--)t.deleteRule(n);return p?p.run():p=S(f,"prev-sibling",(function(){O=!0,u()})),f.sheet}function u(){var e=O;O=!1,_.modifySheet({prepareSheet:a,sourceCSSRules:o,theme:t,ignoreImageAnalysis:n,force:e,isAsyncCancelled:function(){return g}}),b=0===f.sheet.cssRules.length,_.shouldRebuildStyle()&&C((function(){return i()}))}o&&(g=!1,u())},pause:G,destroy:function(){if(G(),y(d),y(f),s(),_n.has(M)){var e=_n.get(M);_n.delete(M),e&&e()}},watch:function(){w.observe(e,k),r(e,HTMLStyleElement)&&I()},restore:function(){f&&(++H>10?v("Style sheet was moved multiple times",e):(v("Restore style",f,e),V(),h&&h.skip(),p&&p.skip(),b||(O=!0,i())))}}},Ze=function(e,r){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,new Promise((function(t,n){var o=function(){e.removeEventListener("load",a),e.removeEventListener("error",i),_n.delete(r)},a=function(){o(),m("Linkelement "+r+" has been loaded"),t()},i=function(){o(),n("Linkelement "+r+" couldn't be loaded. "+e.href)};_n.set(r,(function(){o(),n()})),e.addEventListener("load",a),e.addEventListener("error",i),e.href||i()}))]}))}))},Je=function(e){return t(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return e.startsWith("data:")?[4,fetch(e)]:[3,3];case 1:return[4,t.sent().text()];case 2:case 4:return[2,t.sent()];case 3:return[4,de({url:e,responseType:"text",mimeType:"text/css",origin:window.location.origin})]}}))}))},et=function(e,t){if(!t)return null;var r=document.createElement("style");return r.classList.add("darkreader"),r.classList.add("darkreader--cors"),r.media="screen",r.textContent=t,e.parentNode.insertBefore(r,e.nextSibling),r.sheet.disabled=!0,bn.add(r),r},tt=function(e){Gt&&h(e.querySelectorAll(":not(:defined)"),(function(e){var t=e.tagName.toLowerCase();if(!t.includes("-")){var r=e.getAttribute("is");if(!r)return;t=r}xn.has(t)||(xn.set(t,new Set),nt(t).then((function(){if(En){var e=xn.get(t);xn.delete(t),En(Array.from(e))}}))),xn.get(t).add(e)}))},rt=function(e){Tn=!0,Vn.has(e.detail.tag)&&Vn.get(e.detail.tag)()},nt=function(e){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,new Promise((function(t){if(window.customElements&&"function"==typeof customElements.whenDefined)customElements.whenDefined(e).then(t);else if(Tn)Vn.set(e,t),document.dispatchEvent(new CustomEvent("__darkreader__addUndefinedResolver",{detail:{tag:e}}));else{var r=function(){var n=xn.get(e);n&&n.size>0&&(n.values().next().value.matches(":defined")?t():requestAnimationFrame(r))};requestAnimationFrame(r)}}))]}))}))},ot=function(e,t,n){at();var o=new Set(e),a=new WeakMap,i=new WeakMap;function u(e){a.set(e,e.previousElementSibling),i.set(e,e.nextElementSibling)}function s(e){var r=e.createdStyles,n=e.removedStyles,s=e.movedStyles;r.forEach((function(e){return u(e)})),s.forEach((function(e){return u(e)})),n.forEach((function(e){return t=e,a.delete(t),void i.delete(t);var t})),r.forEach((function(e){return o.add(e)})),n.forEach((function(e){return o.delete(e)})),r.size+n.size+s.size>0&&t({created:Array.from(r),removed:Array.from(n),moved:Array.from(s),updated:[]})}function c(e){var t=e.additions,r=e.moves,n=e.deletions,o=new Set,a=new Set,i=new Set;t.forEach((function(e){return vn(e).forEach((function(e){return o.add(e)}))})),n.forEach((function(e){return vn(e).forEach((function(e){return a.add(e)}))})),r.forEach((function(e){return vn(e).forEach((function(e){return i.add(e)}))})),s({createdStyles:o,removedStyles:a,movedStyles:i}),t.forEach((function(e){er(e,h),tt(e)}))}function l(e){var t=new Set(vn(e)),r=new Set,n=new Set,u=new Set;t.forEach((function(e){o.has(e)||r.add(e)})),o.forEach((function(e){t.has(e)||n.add(e)})),t.forEach((function(e){var t;r.has(e)||n.has(e)||(t=e).previousElementSibling===a.get(t)&&t.nextElementSibling===i.get(t)||u.add(e)})),s({createdStyles:r,removedStyles:n,movedStyles:u}),er(e,h),tt(e)}function d(e){var n=new Set,o=new Set;e.forEach((function(e){var t=e.target;t.isConnected&&(Xe(t)?n.add(t):r(t,HTMLLinkElement)&&t.disabled&&o.add(t))})),n.size+o.size>0&&t({updated:Array.from(n),created:[],removed:Array.from(o),moved:[]})}function f(e){var t=x(e,{onMinorMutations:c,onHugeMutations:l}),r=new MutationObserver(d);r.observe(e,{attributes:!0,attributeFilter:["rel","disabled","media"],subtree:!0}),Cn.push(t,r),kn.add(e)}function h(e){var t=e.shadowRoot;null==t||kn.has(t)||(f(t),n(t))}e.forEach(u),f(document),er(document.documentElement,h),En=function(e){var r=[];e.forEach((function(e){return p(r,vn(e.shadowRoot))})),t({created:r,updated:[],removed:[],moved:[]}),e.forEach((function(e){var t=e.shadowRoot;null!=t&&(h(e),er(t,h),tt(t))}))},document.addEventListener("__darkreader__isDefined",rt),tt(document)},at=function(){Cn.forEach((function(e){return e.disconnect()})),Cn.splice(0,Cn.length),kn=new WeakSet,En=null,xn.clear(),document.removeEventListener("__darkreader__isDefined",rt)},it=function(e){var t=!1;return{render:function(r,n){e.adoptedStyleSheets.forEach((function(o){if(!An.has(o)){var u=o.rules,s=new CSSStyleSheet;Ke().modifySheet({prepareSheet:function(){for(var t=s.cssRules.length-1;t>=0;t--)s.deleteRule(t);return function(t,r){var n=i([],a(e.adoptedStyleSheets)),o=n.indexOf(t),u=n.indexOf(r);o!==u-1&&(u>=0&&n.splice(u,1),n.splice(o+1,0,r),e.adoptedStyleSheets=n)}(o,s),Rn.set(o,s),An.add(s),s},sourceCSSRules:u,theme:r,ignoreImageAnalysis:n,force:!1,isAsyncCancelled:function(){return t}})}}))},destroy:function(){t=!0;var r=i([],a(e.adoptedStyleSheets));e.adoptedStyleSheets.forEach((function(e){if(An.has(e)){var t=r.indexOf(e);t>=0&&r.splice(t,1),Rn.delete(e),An.delete(e)}})),e.adoptedStyleSheets=r}}},ut=function(){document.dispatchEvent(new CustomEvent("__darkreader__inlineScriptsAllowed"));var e=Object.getOwnPropertyDescriptor(CSSStyleSheet.prototype,"addRule"),t=Object.getOwnPropertyDescriptor(CSSStyleSheet.prototype,"insertRule"),r=Object.getOwnPropertyDescriptor(CSSStyleSheet.prototype,"deleteRule"),n=Object.getOwnPropertyDescriptor(CSSStyleSheet.prototype,"removeRule"),o=location.hostname.endsWith("pushbullet.com")||location.hostname.endsWith("ilsole24ore.com")||location.hostname.endsWith("allegro.pl"),u=o?Object.getOwnPropertyDescriptor(Document.prototype,"styleSheets"):null,s=location.hostname.endsWith("baidu.com"),c=s?Object.getOwnPropertyDescriptor(Element.prototype,"getElementsByTagName"):null,l=function(){Object.defineProperty(CSSStyleSheet.prototype,"addRule",e),Object.defineProperty(CSSStyleSheet.prototype,"insertRule",t),Object.defineProperty(CSSStyleSheet.prototype,"deleteRule",r),Object.defineProperty(CSSStyleSheet.prototype,"removeRule",n),document.removeEventListener("__darkreader__cleanUp",l),document.removeEventListener("__darkreader__addUndefinedResolver",d),o&&Object.defineProperty(Document.prototype,"styleSheets",u),s&&Object.defineProperty(Element.prototype,"getElementsByTagName",c)},d=function(e){customElements.whenDefined(e.detail.tag).then((function(){document.dispatchEvent(new CustomEvent("__darkreader__isDefined",{detail:{tag:e.detail.tag}}))}))};document.addEventListener("__darkreader__cleanUp",l),document.addEventListener("__darkreader__addUndefinedResolver",d);var f=new Event("__darkreader__updateSheet");Object.defineProperty(CSSStyleSheet.prototype,"addRule",Object.assign({},e,{value:function(t,r,n){return e.value.call(this,t,r,n),this.ownerNode&&!this.ownerNode.classList.contains("darkreader")&&this.ownerNode.dispatchEvent(f),-1}})),Object.defineProperty(CSSStyleSheet.prototype,"insertRule",Object.assign({},t,{value:function(e,r){var n=t.value.call(this,e,r);return this.ownerNode&&!this.ownerNode.classList.contains("darkreader")&&this.ownerNode.dispatchEvent(f),n}})),Object.defineProperty(CSSStyleSheet.prototype,"deleteRule",Object.assign({},r,{value:function(e){r.value.call(this,e),this.ownerNode&&!this.ownerNode.classList.contains("darkreader")&&this.ownerNode.dispatchEvent(f)}})),Object.defineProperty(CSSStyleSheet.prototype,"removeRule",Object.assign({},n,{value:function(e){n.value.call(this,e),this.ownerNode&&!this.ownerNode.classList.contains("darkreader")&&this.ownerNode.dispatchEvent(f)}})),o&&Object.defineProperty(Document.prototype,"styleSheets",Object.assign({},u,{get:function(){var e=u.get.call(this),t=i([],a(e)).filter((function(e){return!e.ownerNode.classList.contains("darkreader")}));return Object.setPrototypeOf(t,StyleSheetList.prototype)}})),s&&Object.defineProperty(Element.prototype,"getElementsByTagName",Object.assign({},c,{value:function(e){var t=this,r=function(){var r=c.value.call(t,e);return"style"===e&&(r=Object.setPrototypeOf(i([],a(r)).filter((function(e){return!e.classList.contains("darkreader")})),NodeList.prototype)),r},n=r();return new Proxy(n,{get:function(e,t){return r()[t]}})}}))},st=function(e,t){void 0===t&&(t=document.head||document);var r=t.querySelector("."+e);return r||((r=document.createElement("style")).classList.add("darkreader"),r.classList.add(e),r.media="screen",r.textContent=""),r},ct=function(e,t){jn.has(t)&&jn.get(t).stop(),jn.set(t,S(e,"parent"))},lt=function(){var e=st("darkreader--fallback",document);e.textContent=ke(Pn,{strict:!0}),document.head.insertBefore(e,document.head.firstChild),ct(e,"fallback");var t=st("darkreader--user-agent");t.textContent=function(e,t,r){var n=[];return t||(n.push("html {"),n.push(" background-color: "+ne({r:255,g:255,b:255},e)+" !important;"),n.push("}")),n.push((t?"":"html, body, ")+(r?"input, textarea, select, button":"")+" {"),n.push(" background-color: "+ne({r:255,g:255,b:255},e)+";"),n.push("}"),n.push("html, body, "+(r?"input, textarea, select, button":"")+" {"),n.push(" border-color: "+se({r:76,g:76,b:76},e)+";"),n.push(" color: "+ie({r:0,g:0,b:0},e)+";"),n.push("}"),n.push("a {"),n.push(" color: "+ie({r:0,g:64,b:255},e)+";"),n.push("}"),n.push("table {"),n.push(" border-color: "+se({r:128,g:128,b:128},e)+";"),n.push("}"),n.push("::placeholder {"),n.push(" color: "+ie({r:169,g:169,b:169},e)+";"),n.push("}"),n.push("input:-webkit-autofill,"),n.push("textarea:-webkit-autofill,"),n.push("select:-webkit-autofill {"),n.push(" background-color: "+ne({r:250,g:255,b:189},e)+" !important;"),n.push(" color: "+ie({r:0,g:0,b:0},e)+" !important;"),n.push("}"),e.scrollbarColor&&n.push(we(e)),e.selectionColor&&n.push(_e(e)),n.join("\n")}(Pn,In,Pn.styleSystemControls),document.head.insertBefore(t,e.nextSibling),ct(t,"user-agent");var r,n,o=st("darkreader--text");Pn.useFont||Pn.textStroke>0?o.textContent=(r=Pn,(n=[]).push('*:not(pre, pre *, code, .far, .fa, .glyphicon, [class*="vjs-"], .fab, .fa-github, .fas, .material-icons, .icofont, .typcn, mu, [class*="mu-"], .glyphicon, .icon) {'),r.useFont&&r.fontFamily&&n.push(" font-family: "+r.fontFamily+" !important;"),r.textStroke>0&&(n.push(" -webkit-text-stroke: "+r.textStroke+"px !important;"),n.push(" text-stroke: "+r.textStroke+"px !important;")),n.push("}"),n.join("\n")):o.textContent="",document.head.insertBefore(o,e.nextSibling),ct(o,"text");var a=st("darkreader--invert");Dn&&Array.isArray(Dn.invert)&&Dn.invert.length>0?a.textContent=[Dn.invert.join(", ")+" {"," filter: "+le(Mt(Mt({},Pn),{contrast:0===Pn.mode?Pn.contrast:H(Pn.contrast-10,0,100)}))+" !important;","}"].join("\n"):a.textContent="",document.head.insertBefore(a,o.nextSibling),ct(a,"invert");var i=st("darkreader--inline");i.textContent=He(),document.head.insertBefore(i,a.nextSibling),ct(i,"inline");var u=st("darkreader--override");u.textContent=Dn&&Dn.css?ft(Dn.css):"",document.head.appendChild(u),ct(u,"override");var s=st("darkreader--variables"),c=Se(Pn),l=Pn.darkSchemeBackgroundColor,d=Pn.darkSchemeTextColor,f=Pn.lightSchemeBackgroundColor,h=Pn.lightSchemeTextColor,p=Pn.mode,m=0===p?f:l,v=0===p?h:d;m=ne(F(m),Pn),v=ie(F(v),Pn),s.textContent=[":root {"," --darkreader-neutral-background: "+m+";"," --darkreader-neutral-text: "+v+";"," --darkreader-selection-background: "+c.backgroundColorSelection+";"," --darkreader-selection-text: "+c.foregroundColorSelection+";","}"].join("\n"),document.head.insertBefore(s,i.nextSibling),ct(s,"variables");var g=st("darkreader--root-vars");document.head.insertBefore(g,s.nextSibling);var b=function(e,t){void 0===t&&(t=document.head||document);var r=t.querySelector("."+e);return r||((r=document.createElement("script")).classList.add("darkreader"),r.classList.add(e)),r}("darkreader--proxy"),y=new Blob(["("+ut+")()"],{type:"text/javascript"}),S=URL.createObjectURL(y);b.src=S,b.textContent="",document.head.insertBefore(b,g.nextSibling),URL.revokeObjectURL(S),b.remove()},dt=function(e){var t=st("darkreader--inline",e);t.textContent=He(),e.insertBefore(t,e.firstChild);var r=st("darkreader--override",e);r.textContent=Dn&&Dn.css?ft(Dn.css):"",e.insertBefore(r,t.nextSibling);var n=st("darkreader--invert",e);Dn&&Array.isArray(Dn.invert)&&Dn.invert.length>0?n.textContent=[Dn.invert.join(", ")+" {"," filter: "+le(Mt(Mt({},Pn),{contrast:0===Pn.mode?Pn.contrast:H(Pn.contrast-10,0,100)}))+" !important;","}"].join("\n"):n.textContent="",e.insertBefore(n,r.nextSibling),Bn.add(e)},ft=function(e){return e.replace(/\${(.+?)}/g,(function(e,t){try{var r=Ee(t);return Z(r,Pn,J)}catch(e){return v(e),t}}))},ht=function(){var e=document.querySelector(".darkreader--fallback");e&&(e.textContent="")},pt=function(e){var t=++Un;m("New manager for element, with loadingStyleID "+t,e);var r=Ye(e,{update:function(){var e=r.details();e&&(Xr.addRulesForMatching(e.rules),Xr.matchVariablesAndDependants(),r.render(Pn,Fn))},loadingStart:function(){if(!_()||!zn){qn.add(t),m("Current amount of styles loading: "+qn.size);var e=document.querySelector(".darkreader--fallback");e.textContent||(e.textContent=ke(Pn,{strict:!1}))}},loadingEnd:function(){qn.delete(t),m("Removed loadingStyle "+t+", now awaiting: "+qn.size),m("To-do to be loaded",qn),0===qn.size&&_()&&ht()}});return Ln.set(e,r),r},mt=function(e){var t=Ln.get(e);t&&(t.destroy(),Ln.delete(e))},vt=function(){0!==qn.size?v("DOM is ready, but still have styles being loaded.",qn):ht()},gt=function(){document.removeEventListener("visibilitychange",Hn),Hn=null},bt=function(){function e(){(function(){Gn();var e=vn(document).filter((function(e){return!Ln.has(e)})).map((function(e){return pt(e)}));e.map((function(e){return e.details()})).filter((function(e){return e&&e.rules.length>0})).forEach((function(e){Xr.addRulesForMatching(e.rules)})),Xr.matchVariablesAndDependants(),Xr.setOnRootVariableChange((function(){Xr.putRootVars(document.head.querySelector(".darkreader--root-vars"),Pn)})),Xr.putRootVars(document.head.querySelector(".darkreader--root-vars"),Pn),Ln.forEach((function(e){return e.render(Pn,Fn)})),0===qn.size&&ht(),e.forEach((function(e){return e.watch()}));var t=function(e){for(var t=[],r=0,n=e.length;r<n;r++)t.push(e[r]);return t}(document.querySelectorAll(nn));er(document.documentElement,(function(e){dt(e.shadowRoot);var r=e.shadowRoot.querySelectorAll(nn);r.length>0&&p(t,r)})),t.forEach((function(e){return $e(e,Pn,Nn,Fn)})),yt(document)})(),St()}var t,n,o,a;lt(),document.hidden?(o=e,a=Boolean(Hn),Hn=function(){document.hidden||(gt(),o(),zn=!0)},a||document.addEventListener(