// source --> https://baskettr.com/wp-content/plugins/wp-dark-mode/assets/js/dark-mode.js?ver=5.3.5 
(function(){"use strict";(()=>{function Fr(jt){if(typeof wp_dark_mode_json>"u")return!1;if(jt&&jt.classList&&jt.classList.contains("wp-dark-mode-ignore"))return!0;const Vt=".wp-dark-mode-ignore"+(wp_dark_mode_json.excluded_elements?", "+wp_dark_mode_json.excluded_elements:"");try{const It=document.querySelectorAll(Vt);for(const _t of It)if(_t&&_t.classList.add("wp-dark-mode-ignore"),_t==jt||_t.contains(jt))return!0}catch{}return!1}var No={35:function(jt,Vt){var It,_t,Ir,Wr,Dn;function qr(x,T){var M=Object.keys(x);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(x);T&&(U=U.filter((function(J){return Object.getOwnPropertyDescriptor(x,J).enumerable}))),M.push.apply(M,U)}return M}function tt(x){for(var T=1;T<arguments.length;T++){var M=arguments[T]!=null?arguments[T]:{};T%2?qr(Object(M),!0).forEach((function(U){Fo(x,U,M[U])})):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(M)):qr(Object(M)).forEach((function(U){Object.defineProperty(x,U,Object.getOwnPropertyDescriptor(M,U))}))}return x}function Fo(x,T,M){return(T=Br(T))in x?Object.defineProperty(x,T,{value:M,enumerable:!0,configurable:!0,writable:!0}):x[T]=M,x}function Qe(x,T){if(!(x instanceof T))throw new TypeError("Cannot call a class as a function")}function jo(x,T){for(var M=0;M<T.length;M++){var U=T[M];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(x,Br(U.key),U)}}function Ke(x,T,M){return T&&jo(x.prototype,T),Object.defineProperty(x,"prototype",{writable:!1}),x}function Br(x){var T=(function(M,U){if(Ot(M)!="object"||!M)return M;var J=M[Symbol.toPrimitive];if(J!==void 0){var st=J.call(M,U);if(Ot(st)!="object")return st;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)})(x,"string");return Ot(T)=="symbol"?T:String(T)}function pt(x,T){return(function(M){if(Array.isArray(M))return M})(x)||(function(M,U){var J=M==null?null:typeof Symbol<"u"&&M[Symbol.iterator]||M["@@iterator"];if(J!=null){var st,ut,mt,rt,lt=[],Tt=!0,vt=!1;try{if(mt=(J=J.call(M)).next,U===0){if(Object(J)!==J)return;Tt=!1}else for(;!(Tt=(st=mt.call(J)).done)&&(lt.push(st.value),lt.length!==U);Tt=!0);}catch(te){vt=!0,ut=te}finally{try{if(!Tt&&J.return!=null&&(rt=J.return(),Object(rt)!==rt))return}finally{if(vt)throw ut}}return lt}})(x,T)||Nn(x,T)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function kt(x){return(function(T){if(Array.isArray(T))return Fn(T)})(x)||(function(T){if(typeof Symbol<"u"&&T[Symbol.iterator]!=null||T["@@iterator"]!=null)return Array.from(T)})(x)||Nn(x)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Wt(x,T){var M=typeof Symbol<"u"&&x[Symbol.iterator]||x["@@iterator"];if(!M){if(Array.isArray(x)||(M=Nn(x))||T){M&&(x=M);var U=0,J=function(){};return{s:J,n:function(){return U>=x.length?{done:!0}:{done:!1,value:x[U++]}},e:function(rt){throw rt},f:J}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var st,ut=!0,mt=!1;return{s:function(){M=M.call(x)},n:function(){var rt=M.next();return ut=rt.done,rt},e:function(rt){mt=!0,st=rt},f:function(){try{ut||M.return==null||M.return()}finally{if(mt)throw st}}}}function Nn(x,T){if(x){if(typeof x=="string")return Fn(x,T);var M=Object.prototype.toString.call(x).slice(8,-1);return M==="Object"&&x.constructor&&(M=x.constructor.name),M==="Map"||M==="Set"?Array.from(x):M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M)?Fn(x,T):void 0}}function Fn(x,T){(T==null||T>x.length)&&(T=x.length);for(var M=0,U=new Array(T);M<T;M++)U[M]=x[M];return U}function j(){j=function(){return T};var x,T={},M=Object.prototype,U=M.hasOwnProperty,J=Object.defineProperty||function(S,y,_){S[y]=_.value},st=typeof Symbol=="function"?Symbol:{},ut=st.iterator||"@@iterator",mt=st.asyncIterator||"@@asyncIterator",rt=st.toStringTag||"@@toStringTag";function lt(S,y,_){return Object.defineProperty(S,y,{value:_,enumerable:!0,configurable:!0,writable:!0}),S[y]}try{lt({},"")}catch{lt=function(y,_,H){return y[_]=H}}function Tt(S,y,_,H){var N=y&&y.prototype instanceof Ce?y:Ce,X=Object.create(N.prototype),at=new de(H||[]);return J(X,"_invoke",{value:Xe(S,_,at)}),X}function vt(S,y,_){try{return{type:"normal",arg:S.call(y,_)}}catch(H){return{type:"throw",arg:H}}}T.wrap=Tt;var te="suspendedStart",Ye="suspendedYield",qt="executing",Bt="completed",Ct={};function Ce(){}function zt(){}function Pt(){}var se={};lt(se,ut,(function(){return this}));var Ae=Object.getPrototypeOf,ee=Ae&&Ae(Ae(Te([])));ee&&ee!==M&&U.call(ee,ut)&&(se=ee);var Dt=Pt.prototype=Ce.prototype=Object.create(se);function Re(S){["next","throw","return"].forEach((function(y){lt(S,y,(function(_){return this._invoke(y,_)}))}))}function ne(S,y){function _(N,X,at,dt){var gt=vt(S[N],S,X);if(gt.type!=="throw"){var Nt=gt.arg,Qt=Nt.value;return Qt&&Ot(Qt)=="object"&&U.call(Qt,"__await")?y.resolve(Qt.__await).then((function(Ut){_("next",Ut,at,dt)}),(function(Ut){_("throw",Ut,at,dt)})):y.resolve(Qt).then((function(Ut){Nt.value=Ut,at(Nt)}),(function(Ut){return _("throw",Ut,at,dt)}))}dt(gt.arg)}var H;J(this,"_invoke",{value:function(N,X){function at(){return new y((function(dt,gt){_(N,X,dt,gt)}))}return H=H?H.then(at,at):at()}})}function Xe(S,y,_){var H=te;return function(N,X){if(H===qt)throw new Error("Generator is already running");if(H===Bt){if(N==="throw")throw X;return{value:x,done:!0}}for(_.method=N,_.arg=X;;){var at=_.delegate;if(at){var dt=Je(at,_);if(dt){if(dt===Ct)continue;return dt}}if(_.method==="next")_.sent=_._sent=_.arg;else if(_.method==="throw"){if(H===te)throw H=Bt,_.arg;_.dispatchException(_.arg)}else _.method==="return"&&_.abrupt("return",_.arg);H=qt;var gt=vt(S,y,_);if(gt.type==="normal"){if(H=_.done?Bt:Ye,gt.arg===Ct)continue;return{value:gt.arg,done:_.done}}gt.type==="throw"&&(H=Bt,_.method="throw",_.arg=gt.arg)}}}function Je(S,y){var _=y.method,H=S.iterator[_];if(H===x)return y.delegate=null,_==="throw"&&S.iterator.return&&(y.method="return",y.arg=x,Je(S,y),y.method==="throw")||_!=="return"&&(y.method="throw",y.arg=new TypeError("The iterator does not provide a '"+_+"' method")),Ct;var N=vt(H,S.iterator,y.arg);if(N.type==="throw")return y.method="throw",y.arg=N.arg,y.delegate=null,Ct;var X=N.arg;return X?X.done?(y[S.resultName]=X.value,y.next=S.nextLoc,y.method!=="return"&&(y.method="next",y.arg=x),y.delegate=null,Ct):X:(y.method="throw",y.arg=new TypeError("iterator result is not an object"),y.delegate=null,Ct)}function Ze(S){var y={tryLoc:S[0]};1 in S&&(y.catchLoc=S[1]),2 in S&&(y.finallyLoc=S[2],y.afterLoc=S[3]),this.tryEntries.push(y)}function le(S){var y=S.completion||{};y.type="normal",delete y.arg,S.completion=y}function de(S){this.tryEntries=[{tryLoc:"root"}],S.forEach(Ze,this),this.reset(!0)}function Te(S){if(S||S===""){var y=S[ut];if(y)return y.call(S);if(typeof S.next=="function")return S;if(!isNaN(S.length)){var _=-1,H=function N(){for(;++_<S.length;)if(U.call(S,_))return N.value=S[_],N.done=!1,N;return N.value=x,N.done=!0,N};return H.next=H}}throw new TypeError(Ot(S)+" is not iterable")}return zt.prototype=Pt,J(Dt,"constructor",{value:Pt,configurable:!0}),J(Pt,"constructor",{value:zt,configurable:!0}),zt.displayName=lt(Pt,rt,"GeneratorFunction"),T.isGeneratorFunction=function(S){var y=typeof S=="function"&&S.constructor;return!!y&&(y===zt||(y.displayName||y.name)==="GeneratorFunction")},T.mark=function(S){return Object.setPrototypeOf?Object.setPrototypeOf(S,Pt):(S.__proto__=Pt,lt(S,rt,"GeneratorFunction")),S.prototype=Object.create(Dt),S},T.awrap=function(S){return{__await:S}},Re(ne.prototype),lt(ne.prototype,mt,(function(){return this})),T.AsyncIterator=ne,T.async=function(S,y,_,H,N){N===void 0&&(N=Promise);var X=new ne(Tt(S,y,_,H),N);return T.isGeneratorFunction(y)?X:X.next().then((function(at){return at.done?at.value:X.next()}))},Re(Dt),lt(Dt,rt,"Generator"),lt(Dt,ut,(function(){return this})),lt(Dt,"toString",(function(){return"[object Generator]"})),T.keys=function(S){var y=Object(S),_=[];for(var H in y)_.push(H);return _.reverse(),function N(){for(;_.length;){var X=_.pop();if(X in y)return N.value=X,N.done=!1,N}return N.done=!0,N}},T.values=Te,de.prototype={constructor:de,reset:function(S){if(this.prev=0,this.next=0,this.sent=this._sent=x,this.done=!1,this.delegate=null,this.method="next",this.arg=x,this.tryEntries.forEach(le),!S)for(var y in this)y.charAt(0)==="t"&&U.call(this,y)&&!isNaN(+y.slice(1))&&(this[y]=x)},stop:function(){this.done=!0;var S=this.tryEntries[0].completion;if(S.type==="throw")throw S.arg;return this.rval},dispatchException:function(S){if(this.done)throw S;var y=this;function _(gt,Nt){return X.type="throw",X.arg=S,y.next=gt,Nt&&(y.method="next",y.arg=x),!!Nt}for(var H=this.tryEntries.length-1;H>=0;--H){var N=this.tryEntries[H],X=N.completion;if(N.tryLoc==="root")return _("end");if(N.tryLoc<=this.prev){var at=U.call(N,"catchLoc"),dt=U.call(N,"finallyLoc");if(at&&dt){if(this.prev<N.catchLoc)return _(N.catchLoc,!0);if(this.prev<N.finallyLoc)return _(N.finallyLoc)}else if(at){if(this.prev<N.catchLoc)return _(N.catchLoc,!0)}else{if(!dt)throw new Error("try statement without catch or finally");if(this.prev<N.finallyLoc)return _(N.finallyLoc)}}}},abrupt:function(S,y){for(var _=this.tryEntries.length-1;_>=0;--_){var H=this.tryEntries[_];if(H.tryLoc<=this.prev&&U.call(H,"finallyLoc")&&this.prev<H.finallyLoc){var N=H;break}}N&&(S==="break"||S==="continue")&&N.tryLoc<=y&&y<=N.finallyLoc&&(N=null);var X=N?N.completion:{};return X.type=S,X.arg=y,N?(this.method="next",this.next=N.finallyLoc,Ct):this.complete(X)},complete:function(S,y){if(S.type==="throw")throw S.arg;return S.type==="break"||S.type==="continue"?this.next=S.arg:S.type==="return"?(this.rval=this.arg=S.arg,this.method="return",this.next="end"):S.type==="normal"&&y&&(this.next=y),Ct},finish:function(S){for(var y=this.tryEntries.length-1;y>=0;--y){var _=this.tryEntries[y];if(_.finallyLoc===S)return this.complete(_.completion,_.afterLoc),le(_),Ct}},catch:function(S){for(var y=this.tryEntries.length-1;y>=0;--y){var _=this.tryEntries[y];if(_.tryLoc===S){var H=_.completion;if(H.type==="throw"){var N=H.arg;le(_)}return N}}throw new Error("illegal catch attempt")},delegateYield:function(S,y,_){return this.delegate={iterator:Te(S),resultName:y,nextLoc:_},this.method==="next"&&(this.arg=x),Ct}},T}function Ur(x,T,M,U,J,st,ut){try{var mt=x[st](ut),rt=mt.value}catch(lt){return void M(lt)}mt.done?T(rt):Promise.resolve(rt).then(U,J)}function et(x){return function(){var T=this,M=arguments;return new Promise((function(U,J){var st=x.apply(T,M);function ut(rt){Ur(st,U,J,ut,mt,"next",rt)}function mt(rt){Ur(st,U,J,ut,mt,"throw",rt)}ut(void 0)}))}}function Ot(x){return Ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},Ot(x)}Wr=this,Dn=function(x){var T,M,U,J,st,ut,mt,rt,lt;(function(t){t.GET_DATA="ui-bg-get-data",t.GET_DEVTOOLS_DATA="ui-bg-get-devtools-data",t.SUBSCRIBE_TO_CHANGES="ui-bg-subscribe-to-changes",t.UNSUBSCRIBE_FROM_CHANGES="ui-bg-unsubscribe-from-changes",t.CHANGE_SETTINGS="ui-bg-change-settings",t.SET_THEME="ui-bg-set-theme",t.TOGGLE_ACTIVE_TAB="ui-bg-toggle-active-tab",t.MARK_NEWS_AS_READ="ui-bg-mark-news-as-read",t.MARK_NEWS_AS_DISPLAYED="ui-bg-mark-news-as-displayed",t.LOAD_CONFIG="ui-bg-load-config",t.APPLY_DEV_DYNAMIC_THEME_FIXES="ui-bg-apply-dev-dynamic-theme-fixes",t.RESET_DEV_DYNAMIC_THEME_FIXES="ui-bg-reset-dev-dynamic-theme-fixes",t.APPLY_DEV_INVERSION_FIXES="ui-bg-apply-dev-inversion-fixes",t.RESET_DEV_INVERSION_FIXES="ui-bg-reset-dev-inversion-fixes",t.APPLY_DEV_STATIC_THEMES="ui-bg-apply-dev-static-themes",t.RESET_DEV_STATIC_THEMES="ui-bg-reset-dev-static-themes",t.COLOR_SCHEME_CHANGE="ui-bg-color-scheme-change",t.HIDE_HIGHLIGHTS="ui-bg-hide-highlights"})(T||(T={})),(function(t){t.CHANGES="bg-ui-changes"})(M||(M={})),(function(t){t.CSS_UPDATE="debug-bg-ui-css-update",t.UPDATE="debug-bg-ui-update"})(U||(U={})),(function(t){t.ADD_CSS_FILTER="bg-cs-add-css-filter",t.ADD_DYNAMIC_THEME="bg-cs-add-dynamic-theme",t.ADD_STATIC_THEME="bg-cs-add-static-theme",t.ADD_SVG_FILTER="bg-cs-add-svg-filter",t.CLEAN_UP="bg-cs-clean-up",t.FETCH_RESPONSE="bg-cs-fetch-response",t.UNSUPPORTED_SENDER="bg-cs-unsupported-sender"})(J||(J={})),(function(t){t.RELOAD="debug-bg-cs-reload"})(st||(st={})),(function(t){t.COLOR_SCHEME_CHANGE="cs-bg-color-scheme-change",t.DARK_THEME_DETECTED="cs-bg-dark-theme-detected",t.DARK_THEME_NOT_DETECTED="cs-bg-dark-theme-not-detected",t.FETCH="cs-bg-fetch",t.DOCUMENT_CONNECT="cs-bg-document-connect",t.DOCUMENT_FORGET="cs-bg-document-forget",t.DOCUMENT_FREEZE="cs-bg-document-freeze",t.DOCUMENT_RESUME="cs-bg-document-resume"})(ut||(ut={})),(function(t){t.LOG="debug-cs-bg-log"})(mt||(mt={})),(function(t){t.EXPORT_CSS_RESPONSE="cs-ui-export-css-response"})(rt||(rt={})),(function(t){t.EXPORT_CSS="ui-cs-export-css"})(lt||(lt={}));var Tt=typeof navigator<"u",vt=Tt?navigator.userAgentData&&Array.isArray(navigator.userAgentData.brands)?navigator.userAgentData.brands.map((function(t){return"".concat(t.brand.toLowerCase()," ").concat(t.version)})).join(" "):navigator.userAgent.toLowerCase():"some useragent",te=Tt?navigator.userAgentData&&typeof navigator.userAgentData.platform=="string"?navigator.userAgentData.platform.toLowerCase():navigator.platform.toLowerCase():"some platform",Ye=vt.includes("chrome")||vt.includes("chromium"),qt=vt.includes("firefox")||vt.includes("thunderbird")||vt.includes("librewolf"),Bt=vt.includes("safari")&&!Ye,Ct=te.startsWith("win"),Ce=te.startsWith("mac");Tt&&navigator.userAgentData?navigator.userAgentData.mobile:vt.includes("mobile");var zt,Pt=typeof ShadowRoot=="function",se=typeof MediaQueryList=="function"&&typeof MediaQueryList.prototype.addEventListener=="function";(zt=vt.match(/chrom(?:e|ium)(?:\/| )([^ ]+)/))&&zt[1]&&zt[1],(function(){var t=vt.match(/(?:firefox|librewolf)(?:\/| )([^ ]+)/);t&&t[1]&&t[1]})();var Ae=(function(){try{return document.querySelector(":defined"),!0}catch{return!1}})(),ee=(function(){try{if(typeof document>"u")return!1;var t=document.createElement("div");return!(!t||Ot(t.style)!=="object"||typeof t.style.colorScheme!="string"&&(t.setAttribute("style","color-scheme: dark"),t.style.colorScheme!=="dark"))}catch{return!1}})();function Dt(t,e,n){return Re.apply(this,arguments)}function Re(){return(Re=et(j().mark((function t(e,n,r){var a;return j().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,fetch(e,{cache:"force-cache",credentials:"omit",referrer:r});case 2:if(a=o.sent,!(qt&&n==="text/css"&&e.startsWith("moz-extension://")&&e.endsWith(".css"))){o.next=5;break}return o.abrupt("return",a);case 5:if(!n||a.headers.get("Content-Type").startsWith(n)){o.next=7;break}throw new Error("Mime type mismatch when loading ".concat(e));case 7:if(a.ok){o.next=9;break}throw new Error("Unable to load ".concat(e," ").concat(a.status," ").concat(a.statusText));case 9:return o.abrupt("return",a);case 10:case"end":return o.stop()}}),t)})))).apply(this,arguments)}function ne(t,e){return Xe.apply(this,arguments)}function Xe(){return(Xe=et(j().mark((function t(e,n){var r;return j().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Dt(e,n);case 2:return r=a.sent,a.next=5,le(r);case 5:return a.abrupt("return",a.sent);case 6:case"end":return a.stop()}}),t)})))).apply(this,arguments)}function Je(t,e){return Ze.apply(this,arguments)}function Ze(){return(Ze=et(j().mark((function t(e,n){var r;return j().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Dt(e,n);case 2:return r=a.sent,a.next=5,r.blob();case 5:return a.abrupt("return",a.sent);case 6:case"end":return a.stop()}}),t)})))).apply(this,arguments)}function le(t){return de.apply(this,arguments)}function de(){return(de=et(j().mark((function t(e){var n,r;return j().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,e.blob();case 2:return n=a.sent,a.next=5,new Promise((function(o){var i=new FileReader;i.onloadend=function(){return o(i.result)},i.readAsDataURL(n)}));case 5:return r=a.sent,a.abrupt("return",r);case 7:case"end":return a.stop()}}),t)})))).apply(this,arguments)}function Te(t,e,n){return S.apply(this,arguments)}function S(){return(S=et(j().mark((function t(e,n,r){var a;return j().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Dt(e,n,r);case 2:return a=o.sent,o.next=5,a.text();case 5:return o.abrupt("return",o.sent);case 6:case"end":return o.stop()}}),t)})))).apply(this,arguments)}var y=(function(){var t=et(j().mark((function e(n){return j().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",null);case 1:case"end":return r.stop()}}),e)})));return function(e){return t.apply(this,arguments)}})(),_=y;function H(t){return N.apply(this,arguments)}function N(){return(N=et(j().mark((function t(e){return j().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,_(e);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),t)})))).apply(this,arguments)}window.chrome||(window.chrome={}),chrome.runtime||(chrome.runtime={});var X,at,dt=new Set;function gt(){return Nt.apply(this,arguments)}function Nt(){return Nt=et(j().mark((function t(){var e,n,r,a,o,i,u,d,s,f=arguments;return j().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:for(e=f.length,n=new Array(e),r=0;r<e;r++)n[r]=f[r];if(!n[0]||n[0].type!==ut.FETCH){l.next=23;break}return a=n[0].id,l.prev=3,o=n[0].data,i=o.url,u=o.responseType,l.next=7,H(i);case 7:if(d=l.sent,u!=="data-url"){l.next=14;break}return l.next=11,le(d);case 11:s=l.sent,l.next=17;break;case 14:return l.next=16,d.text();case 16:s=l.sent;case 17:dt.forEach((function(c){return c({type:J.FETCH_RESPONSE,data:s,error:null,id:a})})),l.next=23;break;case 20:l.prev=20,l.t0=l.catch(3),dt.forEach((function(c){return c({type:J.FETCH_RESPONSE,data:null,error:l.t0,id:a})}));case 23:case"end":return l.stop()}}),t,null,[[3,20]])}))),Nt.apply(this,arguments)}function Qt(t){dt.add(t)}if(typeof chrome.runtime.sendMessage=="function"){var Ut=chrome.runtime.sendMessage;chrome.runtime.sendMessage=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];gt.apply(void 0,e),Ut.apply(chrome.runtime,e)}}else chrome.runtime.sendMessage=gt;if(chrome.runtime.onMessage||(chrome.runtime.onMessage={}),typeof chrome.runtime.onMessage.addListener=="function"){var Io=chrome.runtime.onMessage.addListener;chrome.runtime.onMessage.addListener=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];Qt(e[0]),Io.apply(chrome.runtime.onMessage,e)}}else chrome.runtime.onMessage.addListener=function(){return Qt(arguments.length<=0?void 0:arguments[0])};(function(t){t.cssFilter="cssFilter",t.svgFilter="svgFilter",t.staticTheme="staticTheme",t.dynamicTheme="dynamicTheme"})(X||(X={})),(function(t){t.NONE="",t.TIME="time",t.SYSTEM="system",t.LOCATION="location"})(at||(at={}));var Hr={background:"#181a1b",text:"#e8e6e3"},Gr={background:"#dcdad7",text:"#181a1b"},Wo={mode:1,brightness:100,contrast:100,grayscale:0,sepia:0,useFont:!1,fontFamily:Ce?"Helvetica Neue":Ct?"Segoe UI":"Open Sans",textStroke:0,engine:X.dynamicTheme,stylesheet:"",darkSchemeBackgroundColor:Hr.background,darkSchemeTextColor:Hr.text,lightSchemeBackgroundColor:Gr.background,lightSchemeTextColor:Gr.text,scrollbarColor:null,selectionColor:"auto",styleSystemControls:!ee,lightColorScheme:"Default",darkColorScheme:"Default",immediateModify:!0,excludes:".wp-dark-mode-ignore"};function Et(t,e){if((function(i){return i.length!=null})(t))for(var n=0,r=t.length;n<r;n++)e(t[n]);else{var a,o=Wt(t);try{for(o.s();!(a=o.n()).done;)e(a.value)}catch(i){o.e(i)}finally{o.f()}}}function jn(t,e){Et(e,(function(n){return t.push(n)}))}function In(t){var e,n=!1,r=null;return Object.assign((function(){for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];e=o,r?n=!0:(t.apply(void 0,kt(e)),r=requestAnimationFrame((function(){r=null,n&&(t.apply(void 0,kt(e)),n=!1)})))}),{cancel:function(){cancelAnimationFrame(r),n=!1,r=null}})}at.NONE;var Wn=new Set;function $r(t,e){Wn.has(t)||(Wn.add(t),requestAnimationFrame((function(){Wn.delete(t),e()})))}function tn(t){var e=0;return t.seconds&&(e+=1e3*t.seconds),t.minutes&&(e+=60*t.minutes*1e3),t.hours&&(e+=60*t.hours*60*1e3),t.days&&(e+=24*t.days*60*60*1e3),e}function bt(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function qn(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Function.prototype,r=tn({seconds:2}),a=tn({seconds:10}),o=t.previousSibling,i=t.parentNode;if(!i)throw new Error("Unable to watch for node position: parent element not found");if(e==="prev-sibling"&&!o)throw new Error("Unable to watch for node position: there is no previous sibling");var u=0,d=null,s=null,f=In((function(){if(!s){u++;var h=Date.now();if(d==null)d=h;else if(u>=10){if(h-d<a)return void(s=setTimeout((function(){d=null,u=0,s=null,f()}),r));d=h,u=1}if(e==="head"&&o&&o.parentNode!==i)m();else{if(e==="prev-sibling"){if(o.parentNode==null)return void m();o.parentNode!==i&&p(o.parentNode)}e!=="head"||i.isConnected||(i=document.head),i.insertBefore(t,o&&o.isConnected?o.nextSibling:i.firstChild),l.takeRecords(),n&&n()}}})),l=new MutationObserver((function(){(e==="head"&&(t.parentNode!==i||!t.parentNode.isConnected)||e==="prev-sibling"&&t.previousSibling!==o)&&f()})),c=function(){l.observe(i,{childList:!0})},m=function(){clearTimeout(s),l.disconnect(),f.cancel()},p=function(h){i=h,m(),c()};return c(),{run:c,stop:m,skip:function(){l.takeRecords()}}}function fe(t,e){if(t!=null)for(var n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:function(a){return a.shadowRoot==null?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}}),r=t.shadowRoot?n.currentNode:n.nextNode();r!=null;r=n.nextNode())r.classList.contains("surfingkeys_hints_host")||(e(r),fe(r.shadowRoot,e))}var re=function(){return document.readyState==="complete"||document.readyState==="interactive"},en=new Set;function zr(t){re()?t():en.add(t)}function Qr(t){en.delete(t)}function nn(){return document.readyState==="complete"}var rn=new Set;function Bn(t){nn()?t():rn.add(t)}re()||document.addEventListener("readystatechange",(function t(){re()&&(en.forEach((function(e){return e()})),en.clear(),nn()&&(document.removeEventListener("readystatechange",t),rn.forEach((function(e){return e()})),rn.clear()))}));var an,Kr=1e3,on=new Map,Un=new WeakMap;function Yr(t,e){var n,r,a;if(on.has(t))n=on.get(t),r=Un.get(n);else{var o=!1,i=!1;n=new MutationObserver((function(u){if((function(s){if(s.length>Kr)return!0;for(var f=0,l=0;l<s.length;l++)if((f+=s[l].addedNodes.length)>Kr)return!0;return!1})(u))!o||re()?r.forEach((function(s){return(0,s.onHugeMutations)(t)})):i||(zr(a=function(){return r.forEach((function(s){return(0,s.onHugeMutations)(t)}))}),i=!0),o=!0;else{var d=(function(s){var f=new Set,l=new Set,c=new Set;s.forEach((function(h){Et(h.addedNodes,(function(v){v instanceof Element&&v.isConnected&&f.add(v)})),Et(h.removedNodes,(function(v){v instanceof Element&&(v.isConnected?(c.add(v),f.delete(v)):l.add(v))}))}));var m=[],p=[];return f.forEach((function(h){f.has(h.parentElement)&&m.push(h)})),l.forEach((function(h){l.has(h.parentElement)&&p.push(h)})),m.forEach((function(h){return f.delete(h)})),p.forEach((function(h){return l.delete(h)})),{additions:f,moves:c,deletions:l}})(u);r.forEach((function(s){return(0,s.onMinorMutations)(t,d)}))}})),n.observe(t,{childList:!0,subtree:!0}),on.set(t,n),r=new Set,Un.set(n,r)}return r.add(e),{disconnect:function(){r.delete(e),a&&Qr(a),r.size===0&&(n.disconnect(),Un.delete(n),on.delete(t))}}}function Le(t,e){for(var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=[];n=t.exec(e);)a.push(n[r]);return a}function Xr(t){for(var e=t.length,n=0,r=0;r<e;r++)n=(n<<5)-n+t.charCodeAt(r)&4294967295;return n}function Hn(t){return Jr(t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,"(",")",[])}function Jr(t,e,n,r,a){var o;o=a.length===0?function(m,p){return t.indexOf(m,p)}:function(m,p){return Gn(t,m,p,a)};for(var i=t.length,u=0,d=-1,s=e;s<i;s++)if(u===0){var f=o(n,s);if(f<0)break;d=f,u++,s=f}else{var l=o(r,s);if(l<0)break;var c=o(n,s);if(c<0||l<=c){if(--u==0)return{start:d,end:l+1};s=l}else u++,s=c}return null}function Gn(t,e,n,r){var a=t.indexOf(e,n),o=r.find((function(i){return a>=i.start&&a<i.end}));return o?Gn(t,e,o.end,r):a}function Zr(t,e,n){for(var r=[],a=-1,o=0;(a=Gn(t,e,o,n))>=0;)r.push(t.substring(o,a).trim()),o=a+1;return r.push(t.substring(o).trim()),r}var Me=new Map;function ta(t){return an||(an=document.createElement("a")),an.href=t,an.href}function un(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n="".concat(t).concat(e?";".concat(e):"");if(Me.has(n))return Me.get(n);if(e){var r=new URL(t,ta(e));return Me.set(n,r),r}var a=new URL(ta(t));return Me.set(t,a),a}function cn(t,e){if(e.match(/^data\\?\:/))return e;if(/^\/\//.test(e))return"".concat(location.protocol).concat(e);var n=un(t);return un(e,n.href).href}function ae(t,e,n){Et(t,(function(r){if(sa(r))e(r);else if((function(u){return!!u&&!pe.has(u)&&(!!oa.has(u)||!!u.href&&(oa.add(u),!0))})(r))try{ae(r.styleSheet.cssRules,e,n)}catch{n==null||n()}else if(zn(r)){var a=Array.from(r.media),o=a.some((function(u){return u.startsWith("screen")||u.startsWith("all")||u.startsWith("(")})),i=a.some((function(u){return u.startsWith("print")||u.startsWith("speech")}));!o&&i||ae(r.cssRules,e,n)}else(function(u){return!!u&&!pe.has(u)&&(!!ua.has(u)||u instanceof CSSSupportsRule&&(ua.add(u),!0))})(r)?CSS.supports(r.conditionText)&&ae(r.cssRules,e,n):la(r)&&ae(r.cssRules,e,n)}))}var ea=["background","border","border-color","border-bottom","border-left","border-right","border-top","outline","outline-color"],qo=Bt?ea.map((function(t){return[t,new RegExp("".concat(t,":\\s*(.*?)\\s*;"))]})):null;function he(t,e){Et(t,(function(r){var a=t.getPropertyValue(r).trim();a&&e(r,a)}));var n=t.cssText;n.includes("var(")&&(Bt?qo.forEach((function(r){var a=pt(r,2),o=a[0],i=a[1],u=n.match(i);if(u&&u[1]){var d=u[1].trim();e(o,d)}})):ea.forEach((function(r){var a=t.getPropertyValue(r);a&&a.includes("var(")&&e(r,a)}))),n.includes("background-color: ;")&&!t.getPropertyValue("background")&&na("background",t,e),n.includes("border-")&&n.includes("-color: ;")&&!t.getPropertyValue("border")&&na("border",t,e)}function na(t,e,n){var r=e.parentRule;if(sa(r)){var a,o=(a=r.parentStyleSheet)===null||a===void 0||(a=a.ownerNode)===null||a===void 0?void 0:a.textContent;if(o){var i=r.selectorText.replaceAll(/[\^$.*+?\(\)\[\]{}|\-\\]/g,"\\$&");i=(i=i.replaceAll(/\s+/g,"\\s*")).replaceAll(/::/g,"::?");var u=new RegExp("".concat(i,"\\s*{[^}]*?").concat(t,":\\s*([^;}]+)")),d=o.match(u);d&&n(t,d[1])}}}var ra=/url\((('.*?')|(".*?")|([^\)]*?))\)/g,aa=/@import\s*(url\()?(('.+?')|(".+?")|([^\)]*?))\)? ?(screen)?;?/gi;function $n(t){return t.trim().replace(/[\n\r\\]+/g,"").replace(/^url\((.*)\)$/,"$1").trim().replace(/^"(.*)"$/,"$1").replace(/^'(.*)'$/,"$1").replace(/(?:\\(.))/g,"$1")}function sn(t){var e=un(t);return"".concat(e.origin).concat(e.pathname.replace(/\?.*$/,"").replace(/(\/)([^\/]+)$/i,"$1"))}function Bo(t,e){return t.replace(ra,(function(n){var r=$n(n);try{return"url('".concat(cn(e,r),"')")}catch{return n}}))}var Uo=/@font-face\s*{[^}]*}/g,pe=new WeakSet,oa=new WeakSet,ia=new WeakSet,ua=new WeakSet,ca=new WeakSet;function sa(t){return!(!t||!pe.has(t)&&(!t.selectorText||(pe.add(t),0)))}function zn(t){return!(!t||pe.has(t)||!ia.has(t)&&(!t.media||(ia.add(t),0)))}function la(t){return!!t&&!pe.has(t)&&(!!ca.has(t)||t instanceof CSSLayerBlockRule&&(ca.add(t),!0))}function Ho(t){for(var e,n=[],r=[],a=0,o=t.length;a<o;a++){var i=t[a];if(i&&i!==" "){if(Ve.has(i)){for(var u=Ve.get(i);r.length;){var d=Ve.get(r[0]);if(!d||!u.lessOrEqualThan(d))break;n.push(r.shift())}r.unshift(i)}else!e||Ve.has(e)?n.push(i):n[n.length-1]+=i;e=i}}n.push.apply(n,r);for(var s=[],f=0,l=n.length;f<l;f++){var c=Ve.get(n[f]);if(c){var m=s.splice(0,2);s.push(c.exec(m[1],m[0]))}else s.unshift(parseFloat(n[f]))}return s[0]}var ln=(function(){function t(e,n){Qe(this,t),this.precendce=e,this.execMethod=n}return Ke(t,[{key:"exec",value:function(e,n){return this.execMethod(e,n)}},{key:"lessOrEqualThan",value:function(e){return this.precendce<=e.precendce}}]),t})(),Ve=new Map([["+",new ln(1,(function(t,e){return t+e}))],["-",new ln(1,(function(t,e){return t-e}))],["*",new ln(2,(function(t,e){return t*e}))],["/",new ln(2,(function(t,e){return t/e}))]]),Go=function(){return matchMedia("(prefers-color-scheme: dark)").matches},dn=new Map,fn=new Map;function ft(t){if(t=t.trim(),fn.has(t))return fn.get(t);t.includes("calc(")&&(t=(function(n){for(var r=0,a=function(s,f,l){n=n.substring(0,s)+l+n.substring(f)};(r=n.indexOf("calc("))!==-1;){var o=Hn(n,r);if(!o)break;var i=n.slice(o.start+1,o.end-1),u=i.includes("%");i=i.split("%").join("");var d=Math.round(Ho(i));a(o.start-4,o.end,d+(u?"%":""))}return n})(t));var e=ha(t);return e&&fn.set(t,e),e}function da(t){if(dn.has(t))return dn.get(t);var e=ft(t);if(!e)return null;var n=hn(e);return dn.set(t,n),n}function fa(t){var e=t.h,n=t.s,r=t.l,a=t.a,o=a===void 0?1:a;if(n===0){var i=[r,r,r].map((function(p){return Math.round(255*p)})),u=pt(i,3),d=u[0],s=u[1];return{r:d,g:u[2],b:s,a:o}}var f=(1-Math.abs(2*r-1))*n,l=f*(1-Math.abs(e/60%2-1)),c=r-f/2,m=pt((e<60?[f,l,0]:e<120?[l,f,0]:e<180?[0,f,l]:e<240?[0,l,f]:e<300?[l,0,f]:[f,0,l]).map((function(p){return Math.round(255*(p+c))})),3);return{r:m[0],g:m[1],b:m[2],a:o}}function hn(t){var e=t.r,n=t.g,r=t.b,a=t.a,o=a===void 0?1:a,i=e/255,u=n/255,d=r/255,s=Math.max(i,u,d),f=Math.min(i,u,d),l=s-f,c=(s+f)/2;if(l===0)return{h:0,s:0,l:c,a:o};var m=60*(s===i?(u-d)/l%6:s===u?(d-i)/l+2:(i-u)/l+4);return m<0&&(m+=360),{h:m,s:l/(1-Math.abs(2*c-1)),l:c,a:o}}function St(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=t.toFixed(e);if(e===0)return n;var r=n.indexOf(".");if(r>=0){var a=n.match(/0+$/);if(a)return a.index===r+1?n.substring(0,r):n.substring(0,a.index)}return n}function me(t){var e=t.h,n=t.s,r=t.l,a=t.a;return a!=null&&a<1?"hsla(".concat(St(e),", ").concat(St(100*n),"%, ").concat(St(100*r),"%, ").concat(St(a,2),")"):"hsl(".concat(St(e),", ").concat(St(100*n),"%, ").concat(St(100*r),"%)")}var $o=/^rgba?\([^\(\)]+\)$/,zo=/^hsla?\([^\(\)]+\)$/,Qo=/^#[0-9a-f]+$/i;function ha(t){var e,n,r,a,o,i=t.trim().toLowerCase();if(i.match($o))return ma(i);if(i.match(zo))return e=pt(pa(i,Xo,Jo),4),n=e[0],r=e[1],a=e[2],o=e[3],fa({h:n,s:r,l:a,a:o===void 0?1:o});if(i.match(Qo))return(function(d){var s=d.substring(1);switch(s.length){case 3:case 4:var f=pt([0,1,2].map((function(c){return parseInt("".concat(s[c]).concat(s[c]),16)})),3);return{r:f[0],g:f[1],b:f[2],a:s.length===3?1:parseInt("".concat(s[3]).concat(s[3]),16)/255};case 6:case 8:var l=pt([0,2,4].map((function(c){return parseInt(s.substring(c,c+2),16)})),3);return{r:l[0],g:l[1],b:l[2],a:s.length===6?1:parseInt(s.substring(6,8),16)/255}}return null})(i);if(va.has(i))return(function(d){var s=va.get(d);return{r:s>>16&255,g:s>>8&255,b:s>>0&255,a:1}})(i);if(ga.has(i))return(function(d){var s=ga.get(d);return{r:s>>16&255,g:s>>8&255,b:s>>0&255,a:1}})(i);if(t==="transparent")return{r:0,g:0,b:0,a:0};if((i.startsWith("color(")||i.startsWith("color-mix("))&&i.endsWith(")"))return(function(d){Oe||((Qn=document.createElement("canvas")).width=1,Qn.height=1,Oe=Qn.getContext("2d",{willReadFrequently:!0})),Oe.fillStyle=d,Oe.fillRect(0,0,1,1);var s=Oe.getImageData(0,0,1,1).data;return ma("rgba(".concat(s[0],", ").concat(s[1],", ").concat(s[2],", ").concat((s[3]/255).toFixed(2),")"))})(i);if(i.startsWith("light-dark(")&&i.endsWith(")")){var u=i.match(/^light-dark\(\s*([a-z]+(\(.*\))?),\s*([a-z]+(\(.*\))?)\s*\)$/);if(u)return ha(Go()?u[3]:u[1])}return null}function pa(t,e,n){var r=(function(o){var i=[],u=0,d=!1,s=o.indexOf("(");o=o.substring(s+1,o.length-1);for(var f=0;f<o.length;f++){var l=o[f];l>="0"&&l<="9"||l==="."||l==="+"||l==="-"?d=!0:!d||l!==" "&&l!==","&&l!=="/"?d||(u=f+1):(i.push(o.substring(u,f)),d=!1,u=f+1)}return d&&i.push(o.substring(u,o.length)),i})(t),a=Object.entries(n);return r.map((function(o){return o.trim()})).map((function(o,i){var u,d=a.find((function(s){var f=pt(s,1)[0];return o.endsWith(f)}));return u=d?parseFloat(o.substring(0,o.length-d[0].length))/d[1]*e[i]:parseFloat(o),e[i]>1?Math.round(u):u}))}var Ko=[255,255,255,1],Yo={"%":100};function ma(t){var e=pt(pa(t,Ko,Yo),4),n=e[0],r=e[1],a=e[2],o=e[3];return{r:n,g:r,b:a,a:o===void 0?1:o}}var Qn,Oe,Xo=[360,1,1,1],Jo={"%":100,deg:360,rad:2*Math.PI,turn:1},va=new Map(Object.entries({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgrey:11119017,darkgreen:25600,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,grey:8421504,green:32768,greenyellow:11403055,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgrey:13882323,lightgreen:9498256,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074})),ga=new Map(Object.entries({ActiveBorder:3906044,ActiveCaption:0,AppWorkspace:11184810,Background:6513614,ButtonFace:16777215,ButtonHighlight:15329769,ButtonShadow:10461343,ButtonText:0,CaptionText:0,GrayText:8355711,Highlight:11720703,HighlightText:0,InactiveBorder:16777215,InactiveCaption:16777215,InactiveCaptionText:0,InfoBackground:16514245,InfoText:0,Menu:16185078,MenuText:16777215,Scrollbar:11184810,ThreeDDarkShadow:0,ThreeDFace:12632256,ThreeDHighlight:16777215,ThreeDLightShadow:16777215,ThreeDShadow:0,Window:15527148,WindowFrame:11184810,WindowText:0,"-webkit-focus-ring-color":15046400}).map((function(t){var e=pt(t,2),n=e[0],r=e[1];return[n.toLowerCase(),r]})));function Zo(t,e,n){return(.2126*t+.7152*e+.0722*n)/255}function Lt(t,e,n,r,a){return(t-e)*(a-r)/(n-e)+r}function Kt(t,e,n){return Math.min(n,Math.max(e,t))}function ve(t,e){for(var n=[],r=0,a=t.length;r<a;r++){n[r]=[];for(var o=0,i=e[0].length;o<i;o++){for(var u=0,d=0,s=t[0].length;d<s;d++)u+=t[r][d]*e[d][o];n[r][o]=u}}return n}function ba(t){var e=ge.identity();return t.sepia!==0&&(e=ve(e,ge.sepia(t.sepia/100))),t.grayscale!==0&&(e=ve(e,ge.grayscale(t.grayscale/100))),t.contrast!==100&&(e=ve(e,ge.contrast(t.contrast/100))),t.brightness!==100&&(e=ve(e,ge.brightness(t.brightness/100))),t.mode===1&&(e=ve(e,ge.invertNHue())),e}var ge={identity:function(){return[[1,0,0,0,0],[0,1,0,0,0],[0,0,1,0,0],[0,0,0,1,0],[0,0,0,0,1]]},invertNHue:function(){return[[.333,-.667,-.667,0,1],[-.667,.333,-.667,0,1],[-.667,-.667,.333,0,1],[0,0,0,1,0],[0,0,0,0,1]]},brightness:function(t){return[[t,0,0,0,0],[0,t,0,0,0],[0,0,t,0,0],[0,0,0,1,0],[0,0,0,0,1]]},contrast:function(t){var e=(1-t)/2;return[[t,0,0,0,e],[0,t,0,0,e],[0,0,t,0,e],[0,0,0,1,0],[0,0,0,0,1]]},sepia:function(t){return[[.393+.607*(1-t),.769-.769*(1-t),.189-.189*(1-t),0,0],[.349-.349*(1-t),.686+.314*(1-t),.168-.168*(1-t),0,0],[.272-.272*(1-t),.534-.534*(1-t),.131+.869*(1-t),0,0],[0,0,0,1,0],[0,0,0,0,1]]},grayscale:function(t){return[[.2126+.7874*(1-t),.7152-.7152*(1-t),.0722-.0722*(1-t),0,0],[.2126-.2126*(1-t),.7152+.2848*(1-t),.0722-.0722*(1-t),0,0],[.2126-.2126*(1-t),.7152-.7152*(1-t),.0722+.9278*(1-t),0,0],[0,0,0,1,0],[0,0,0,0,1]]}};function Kn(t){return t[t.mode===1?"darkSchemeBackgroundColor":"lightSchemeBackgroundColor"]}function Yn(t){return t[t.mode===1?"darkSchemeTextColor":"lightSchemeTextColor"]}var pn=new Map,ti=["r","g","b","a"],ei=["mode","brightness","contrast","grayscale","sepia","darkSchemeBackgroundColor","darkSchemeTextColor","lightSchemeBackgroundColor","lightSchemeTextColor"];function Pe(t,e,n,r,a){var o;pn.has(n)?o=pn.get(n):(o=new Map,pn.set(n,o));var i=(function(C,A){var V="";return ti.forEach((function(w){V+="".concat(C[w],";")})),ei.forEach((function(w){V+="".concat(A[w],";")})),V})(t,e);if(o.has(i))return o.get(i);var u=fa(n(hn(t),r==null?null:da(r),a==null?null:da(a))),d=u.r,s=u.g,f=u.b,l=u.a,c=(function(C,A){var V=pt(C,3),w=ve(A,[[V[0]/255],[V[1]/255],[V[2]/255],[1],[1]]);return[0,1,2].map((function(D){return Kt(Math.round(255*w[D][0]),0,255)}))})([d,s,f],ba(e)),m=pt(c,3),p=m[0],h=m[1],v=m[2],g=l===1?(function(C){var A=C.r,V=C.g,w=C.b,D=C.a;return"#".concat((D!=null&&D<1?[A,V,w,Math.round(255*D)]:[A,V,w]).map((function(b){return"".concat(b<16?"0":"").concat(b.toString(16))})).join(""))})({r:p,g:h,b:v}):(function(C){var A=C.r,V=C.g,w=C.b,D=C.a;return D!=null&&D<1?"rgba(".concat(St(A),", ").concat(St(V),", ").concat(St(w),", ").concat(St(D,2),")"):"rgb(".concat(St(A),", ").concat(St(V),", ").concat(St(w),")")})({r:p,g:h,b:v,a:l});return o.set(i,g),g}function ni(t){return t}function Xn(t,e){var n=Kn(e);return Pe(t,e,ri,Yn(e),n)}function ri(t,e,n){var r=t.h,a=t.s,o=t.l,i=t.a,u=o<.5,d=r,s=o;return(u?o<.2||a<.12:a<.24||o>.8&&r>200&&r<280)&&(u?(d=e.h,s=e.s):(d=n.h,s=n.s)),{h:d,s,l:Lt(o,0,1,e.l,n.l),a:i}}var ya=.4;function ai(t,e){var n=t.h,r=t.s,a=t.l,o=t.a,i=r<.12||a>.8&&n>200&&n<280;if(a<.5){var u=Lt(a,0,.5,0,ya);return i?{h:e.h,s:e.s,l:u,a:o}:{h:n,s:r,l:u,a:o}}var d=Lt(a,.5,1,ya,e.l);if(i)return{h:e.h,s:e.s,l:d,a:o};var s=n;return n>60&&n<180&&(s=n>120?Lt(n,120,180,135,180):Lt(n,60,120,60,105)),s>40&&s<80&&(d*=.75),{h:s,s:r,l:d,a:o}}function ht(t,e){if(e.mode===0)return Xn(t,e);var n=Kn(e);return Pe(t,tt(tt({},e),{},{mode:0}),ai,n)}var Jn,mn=.55;function wa(t){return Lt(t,205,245,205,220)}function oi(t,e){var n=t.h,r=t.s,a=t.l,o=t.a,i=a<.2||r<.24,u=!i&&n>205&&n<245;if(a>.5){var d=Lt(a,.5,1,mn,e.l);if(i)return{h:e.h,s:e.s,l:d,a:o};var s=n;return u&&(s=wa(n)),{h:s,s:r,l:d,a:o}}if(i)return{h:e.h,s:e.s,l:Lt(a,0,.5,e.l,mn),a:o};var f,l=n;return u?(l=wa(n),f=Lt(a,0,.5,e.l,Math.min(1,mn+.05))):f=Lt(a,0,.5,e.l,mn),{h:l,s:r,l:f,a:o}}function At(t,e){if(e.mode===0)return Xn(t,e);var n=Yn(e);return Pe(t,tt(tt({},e),{},{mode:0}),oi,n)}function ii(t,e,n){var r=t.h,a=t.s,o=t.l,i=t.a,u=r,d=a;return(o<.2||a<.24)&&(o<.5?(u=e.h,d=e.s):(u=n.h,d=n.s)),{h:u,s:d,l:Lt(o,0,1,.5,.2),a:i}}function De(t,e){if(e.mode===0)return Xn(t,e);var n=Yn(e),r=Kn(e);return Pe(t,tt(tt({},e),{},{mode:0}),ii,n,r)}function Zn(t,e){return ht(t,e)}function ka(t){var e=[];return t.mode===Jn.dark&&e.push("invert(100%) hue-rotate(180deg)"),t.brightness!==100&&e.push("brightness(".concat(t.brightness,"%)")),t.contrast!==100&&e.push("contrast(".concat(t.contrast,"%)")),t.grayscale!==0&&e.push("grayscale(".concat(t.grayscale,"%)")),t.sepia!==0&&e.push("sepia(".concat(t.sepia,"%)")),e.length===0?null:e.join(" ")}function Sa(){if("randomUUID"in crypto){var t=crypto.randomUUID();return t.substring(0,8)+t.substring(9,13)+t.substring(14,18)+t.substring(19,23)+t.substring(24)}return"getRandomValues"in crypto?Array.from(crypto.getRandomValues(new Uint8Array(16))).map((function(e){return((n=e)<16?"0":"")+n.toString(16);var n})).join(""):Math.floor(Math.random()*Math.pow(2,55)).toString(36)}(function(t){t[t.light=0]="light",t[t.dark=1]="dark"})(Jn||(Jn={}));var tr=new Map,er=new Map;function Ea(t){return xa.apply(this,arguments)}function xa(){return(xa=et(j().mark((function t(e){return j().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",new Promise((function(r,a){var o=Sa();tr.set(o,r),er.set(o,a),chrome.runtime.sendMessage({type:ut.FETCH,data:e,id:o})})));case 1:case"end":return n.stop()}}),t)})))).apply(this,arguments)}chrome.runtime.onMessage.addListener((function(t){var e=t.type,n=t.data,r=t.error,a=t.id;if(e===J.FETCH_RESPONSE){var o=tr.get(a),i=er.get(a);tr.delete(a),er.delete(a),r?i&&i(r):o&&o(n)}}));var nr=new((function(){function t(){Qe(this,t),this.queue=[],this.timerId=null}return Ke(t,[{key:"addTask",value:function(e){this.queue.push(e),this.scheduleFrame()}},{key:"stop",value:function(){this.timerId!==null&&(cancelAnimationFrame(this.timerId),this.timerId=null),this.queue=[]}},{key:"scheduleFrame",value:function(){var e=this;this.timerId||(this.timerId=requestAnimationFrame((function(){e.timerId=null;for(var n,r=Date.now();n=e.queue.shift();)if(n(),Date.now()-r>=16.666666666666668){e.scheduleFrame();break}})))}}]),t})());function ui(t){return rr.apply(this,arguments)}function rr(){return rr=et(j().mark((function t(e){return j().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",new Promise((function(){var r=et(j().mark((function a(o,i){var u,d,s,f,l;return j().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:if(c.prev=0,!e.startsWith("data:")){c.next=5;break}c.t0=e,c.next=8;break;case 5:return c.next=7,ci(e);case 7:c.t0=c.sent;case 8:if(d=c.t0,(u=Ma(d))===null||u===void 0){c.next=13;break}c.t1=u,c.next=16;break;case 13:return c.next=15,Je(e);case 15:c.t1=c.sent;case 16:if(s=c.t1,!d.startsWith("data:image/svg+xml")){c.next=23;break}return c.next=20,Aa(d);case 20:f=c.sent,c.next=37;break;case 23:return c.next=25,si(s);case 25:if(c.t3=l=c.sent,c.t2=c.t3!==null,!c.t2){c.next=29;break}c.t2=l!==void 0;case 29:if(!c.t2){c.next=33;break}c.t4=l,c.next=36;break;case 33:return c.next=35,Aa(d);case 35:c.t4=c.sent;case 36:f=c.t4;case 37:nr.addTask((function(){var m=hi(f);o(tt({src:e,dataURL:m.isLarge?"":d,width:f.width,height:f.height},m))})),c.next=43;break;case 40:c.prev=40,c.t5=c.catch(0),i(c.t5);case 43:case"end":return c.stop()}}),a,null,[[0,40]])})));return function(a,o){return r.apply(this,arguments)}})()));case 1:case"end":return n.stop()}}),t)}))),rr.apply(this,arguments)}function ci(t){return _a.apply(this,arguments)}function _a(){return(_a=et(j().mark((function t(e){return j().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(new URL(e).origin!==location.origin){n.next=5;break}return n.next=4,ne(e);case 4:case 7:return n.abrupt("return",n.sent);case 5:return n.next=7,Ea({url:e,responseType:"data-url"});case 8:case"end":return n.stop()}}),t)})))).apply(this,arguments)}function si(t){return Ca.apply(this,arguments)}function Ca(){return(Ca=et(j().mark((function t(e){return j().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,createImageBitmap(e);case 3:return n.abrupt("return",n.sent);case 6:return n.prev=6,n.t0=n.catch(0),"Unable to create image bitmap for type ".concat(e.type,": ").concat(String(n.t0)),n.abrupt("return",null);case 10:case"end":return n.stop()}}),t,null,[[0,6]])})))).apply(this,arguments)}var li=256,di=0;function Aa(t){return Ra.apply(this,arguments)}function Ra(){return(Ra=et(j().mark((function t(e){return j().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",new Promise((function(r,a){var o=new Image;o.onload=function(){return r(o)},o.onerror=function(){return a("Unable to load image ".concat(e))},++di<=li||nn()?o.src=e:Bn((function(){return o.src=e}))})));case 1:case"end":return n.stop()}}),t)})))).apply(this,arguments)}var Ne,Fe,ar=1024,fi=262144;function hi(t){var e,n,r,a;if(Ne||(e=ar,n=ar,(Ne=document.createElement("canvas")).width=e,Ne.height=n,(Fe=Ne.getContext("2d",{willReadFrequently:!0})).imageSmoothingEnabled=!1),t instanceof HTMLImageElement?(r=t.naturalWidth,a=t.naturalHeight):(r=t.width,a=t.height),r===0||a===0)return{isDark:!1,isLight:!1,isTransparent:!1,isLarge:!1,isTooLarge:!1};if(r*a>fi)return{isDark:!1,isLight:!1,isTransparent:!1,isLarge:!0};var o=r*a,i=Math.min(1,Math.sqrt(ar/o)),u=Math.ceil(r*i),d=Math.ceil(a*i);Fe.clearRect(0,0,u,d),Fe.drawImage(t,0,0,r,a,0,0,u,d);var s,f,l,c,m,p,h,v=Fe.getImageData(0,0,u,d).data,g=0,C=0,A=0;for(l=0;l<d;l++)for(f=0;f<u;f++)c=v[0+(s=4*(l*u+f))],m=v[s+1],p=v[s+2],v[s+3]/255<.05?g++:((h=Zo(c,m,p))<.4&&C++,h>.7&&A++);var V=u*d,w=V-g;return{isDark:C/w>=.7,isLight:A/w>=.7,isTransparent:g/V>=.1,isLarge:!1}}var je=null,or=!1,Ta=!1,ir=[];function pi(){return La.apply(this,arguments)}function La(){return(La=et(j().mark((function t(){return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(or){e.next=2;break}return e.abrupt("return");case 2:if(!Ta){e.next=6;break}return e.next=5,new Promise((function(n){return ir.push(n)}));case 5:return e.abrupt("return",e.sent);case 6:return Ta=!0,e.next=9,new Promise((function(n){document.addEventListener("__wp_dark_mode__blobURLCheckResponse",(function(r){je=r.detail.blobURLAllowed,n(),ir.forEach((function(a){return a()})),ir.splice(0)}),{once:!0}),document.dispatchEvent(new CustomEvent("__wp_dark_mode__blobURLCheckRequest"))}));case 9:case"end":return e.stop()}}),t)})))).apply(this,arguments)}document.addEventListener("__wp_dark_mode__inlineScriptsAllowed",(function(){return or=!0}),{once:!0}),document.addEventListener("securitypolicyviolation",(function t(e){e.blockedURI==="blob"&&(je=!1,document.removeEventListener("securitypolicyviolation",t))}));var ur=new Set;function cr(t,e){var n=t.dataURL,r=t.width,a=t.height;n.startsWith("data:image/svg+xml")&&(n=n.replace(/[<>&'"]/g,(function(l){var c;return(c=mi[l])!==null&&c!==void 0?c:l})));var o=ba(e).slice(0,4).map((function(l){return l.map((function(c){return c.toFixed(3)})).join(" ")})).join(" "),i=['<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'.concat(r,'" height="').concat(a,'">'),"<defs>",'<filter id="wp-dark-mode-image-filter">','<feColorMatrix type="matrix" values="'.concat(o,'" />'),"</filter>","</defs>",'<image width="'.concat(r,'" height="').concat(a,'" filter="url(#wp-dark-mode-image-filter)" xlink:href="').concat(n,'" />'),"</svg>"].join("");if(!je)return"data:image/svg+xml;base64,".concat(btoa(i));for(var u=new Uint8Array(i.length),d=0;d<i.length;d++)u[d]=i.charCodeAt(d);var s=new Blob([u],{type:"image/svg+xml"}),f=URL.createObjectURL(s);return ur.add(f),f}var mi={"<":"&lt;",">":"&gt;","&":"&amp;","'":"&apos;",'"':"&quot;"},vn=new Map;function Ma(t){var e=t.indexOf(":"),n=t.indexOf(";",e+1),r=t.indexOf(",",n+1),a=t.substring(n+1,r).toLocaleLowerCase(),o=t.substring(e+1,n);if(a!=="base64"||!o)return null;for(var i=atob(t.substring(r+1)),u=new Uint8Array(i.length),d=0;d<i.length;d++)u[d]=i.charCodeAt(d);return new Blob([u],{type:o})}function vi(t){return Va.apply(this,arguments)}function Va(){return(Va=et(j().mark((function t(e){var n,r,a,o;return j().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(je){i.next=2;break}return i.abrupt("return",null);case 2:if(n=Xr(e),!(r=vn.get(n))){i.next=6;break}return i.abrupt("return",r);case 6:if(a=Ma(e)){i.next=14;break}return i.next=10,fetch(e);case 10:return o=i.sent,i.next=13,o.blob();case 13:a=i.sent;case 14:return r=URL.createObjectURL(a),vn.set(n,r),i.abrupt("return",r);case 17:case"end":return i.stop()}}),t)})))).apply(this,arguments)}function gi(){nr&&nr.stop(),Ne=null,Fe=null,ur.forEach((function(t){return URL.revokeObjectURL(t)})),ur.clear(),vn.forEach((function(t){return URL.revokeObjectURL(t)})),vn.clear()}var Oa=8,sr="conic-",bi=sr.length,yi="radial-",wi="linear-";function ki(t,e){return!!(t&&t.getPropertyPriority(e))}function Pa(t,e,n,r,a,o){var i=null;if(t.startsWith("--"))i=(function(s,f,l,c,m,p){return s.getModifierForVariable({varName:f,sourceValue:l,rule:c,ignoredImgSelectors:m,isCancelled:p})})(r,t,e,n,a,o);else if(e.includes("var("))i=(function(s,f,l){return s.getModifierForVarDependant(f,l)})(r,t,e);else if(t==="color-scheme")i=function(s){return s.mode===0?"dark light":"dark"};else if(t==="scrollbar-color")i=(function(s){var f=s.match(/^\s*([a-z]+(\(.*\))?)\s+([a-z]+(\(.*\))?)\s*$/);if(!f)return s;var l=ft(f[1]),c=ft(f[3]);return l&&c?function(m){return"".concat(At(l,m)," ").concat(ht(l,m))}:null})(e);else if(t.includes("color")&&t!=="-webkit-print-color-adjust"||t==="fill"||t==="stroke"||t==="stop-color")if(t.startsWith("border")&&t!=="border-color"&&e==="initial"){var u=t.substring(0,t.length-6),d=n.style.getPropertyValue(u);d.startsWith("0px")||d==="none"?(t=u,i=d):i=e}else i=(function(s,f,l){if(xi.has(f.toLowerCase()))return f;var c=ft(f);return c?s.includes("background")?l.style.webkitMaskImage&&l.style.webkitMaskImage!=="none"||l.style.webkitMask&&!l.style.webkitMask.startsWith("none")||l.style.mask&&l.style.mask!=="none"||l.style.getPropertyValue("mask-image")&&l.style.getPropertyValue("mask-image")!=="none"?function(m){return At(c,m)}:function(m){return ht(c,m)}:s.includes("border")||s.includes("outline")?function(m){return De(c,m)}:function(m){return At(c,m)}:null})(t,e,n);else t==="background-image"||t==="list-style-image"?i=Fa(e,n,a,o):t.includes("shadow")&&(i=(function(s){var f=ja(s);return f?function(l){return f(l).result}:null})(e));return i?{property:t,value:i,important:ki(n.style,t),sourceValue:e}:null}function Da(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter(Boolean).join(", ")}function Si(t,e,n){var r=[];e||(r.push("html {"),r.push("    background-color: ".concat(ht({r:255,g:255,b:255},t)," !important;")),r.push("}")),ee&&t.mode===1&&(r.push("html {"),r.push("    color-scheme: dark !important;"),r.push("}"),r.push("iframe {"),r.push("    color-scheme: initial;"),r.push("}"));var a=Da(e?"":"html, body",n?"input, textarea, select, button, dialog":"");return a&&(r.push("".concat(a," {")),r.push("    background-color: ".concat(ht({r:255,g:255,b:255},t),";")),r.push("}")),r.push("".concat(Da("html, body",n?"input, textarea, select, button":"")," {")),r.push("    border-color: ".concat(De({r:76,g:76,b:76},t),";")),r.push("    color: ".concat(At({r:0,g:0,b:0},t),";")),r.push("}"),r.push("a {"),r.push("    color: ".concat(At({r:0,g:64,b:255},t),";")),r.push("}"),r.push("table {"),r.push("    border-color: ".concat(De({r:128,g:128,b:128},t),";")),r.push("}"),r.push("::placeholder {"),r.push("    color: ".concat(At({r:169,g:169,b:169},t),";")),r.push("}"),r.push("input:-webkit-autofill,"),r.push("textarea:-webkit-autofill,"),r.push("select:-webkit-autofill {"),r.push("    background-color: ".concat(ht({r:250,g:255,b:189},t)," !important;")),r.push("    color: ".concat(At({r:0,g:0,b:0},t)," !important;")),r.push("}"),t.scrollbarColor&&r.push((function(o){var i,u,d,s,f,l,c=[];if(o.scrollbarColor==="auto")i=ht({r:241,g:241,b:241},o),u=At({r:96,g:96,b:96},o),d=ht({r:176,g:176,b:176},o),s=ht({r:144,g:144,b:144},o),f=ht({r:96,g:96,b:96},o),l=ht({r:255,g:255,b:255},o);else{var m=hn(ft(o.scrollbarColor)),p=m.l>.5,h=function(g){return tt(tt({},m),{},{l:Kt(m.l+g,0,1)})},v=function(g){return tt(tt({},m),{},{l:Kt(m.l-g,0,1)})};i=me(v(.4)),u=me(p?v(.4):h(.4)),d=me(m),s=me(h(.1)),f=me(h(.2)),l=me(v(.5))}return c.push("::-webkit-scrollbar {"),c.push("    background-color: ".concat(i,";")),c.push("    color: ".concat(u,";")),c.push("}"),c.push("::-webkit-scrollbar-thumb {"),c.push("    background-color: ".concat(d,";")),c.push("}"),c.push("::-webkit-scrollbar-thumb:hover {"),c.push("    background-color: ".concat(s,";")),c.push("}"),c.push("::-webkit-scrollbar-thumb:active {"),c.push("    background-color: ".concat(f,";")),c.push("}"),c.push("::-webkit-scrollbar-corner {"),c.push("    background-color: ".concat(l,";")),c.push("}"),qt&&(c.push("* {"),c.push("    scrollbar-color: ".concat(d," ").concat(i,";")),c.push("}")),c.join(`
`)})(t)),t.selectionColor&&r.push((function(o){var i=[],u=Na(o),d=u.backgroundColorSelection,s=u.foregroundColorSelection;return["::selection","::-moz-selection"].forEach((function(f){i.push("".concat(f," {")),i.push("    background-color: ".concat(d," !important;")),i.push("    color: ".concat(s," !important;")),i.push("}")})),i.join(`
`)})(t)),r.join(`
`)}function Na(t){var e,n;if(t.selectionColor==="auto")e=ht({r:0,g:96,b:212},tt(tt({},t),{},{grayscale:0})),n=At({r:255,g:255,b:255},tt(tt({},t),{},{grayscale:0}));else{var r=hn(ft(t.selectionColor));e=t.selectionColor,n=r.l<.5?"#FFF":"#000"}return{backgroundColorSelection:e,foregroundColorSelection:n}}function lr(t,e){return Ei(t,{strict:e.strict})}function Ei(t,e){var n=e.strict,r=[];return r.push("html, body, ".concat(n?"body :not(iframe)":"body > :not(iframe)"," {")),r.push("    background-color: ".concat(ht({r:255,g:255,b:255},t)," !important;")),r.push("    border-color: ".concat(De({r:64,g:64,b:64},t)," !important;")),r.push("    color: ".concat(At({r:0,g:0,b:0},t)," !important;")),r.push("}"),r.push('div[style*="background-color: rgb(135, 135, 135)"] {'),r.push("    background-color: #878787 !important;"),r.push("}"),r.join(`
`)}var xi=new Set(["inherit","transparent","initial","currentcolor","none","unset","auto"]),gn=new Map,Ht=new Map;function Fa(t,e,n,r){try{var a=(function(l){for(var c=[],m=0,p=sr.length,h=function(){var v;if([wi,yi,sr].find((function(w){if(m-w.length>=0&&l.substring(m-w.length,m)===w)return l.slice(m-w.length-10,m-w.length-1)==="repeating"?(v="repeating-".concat(w,"gradient"),!0):l.slice(m-w.length-8,m-w.length-1)==="-webkit"?(v="-webkit-".concat(w,"gradient"),!0):(v="".concat(w,"gradient"),!0)})),!v)return 1;var g=Hn(l,m+Oa),C=g.start,A=g.end,V=l.substring(C+1,A-1);p=A+1+bi,c.push({typeGradient:v,match:V,offset:v.length+2,index:m-v.length+Oa,hasComma:!0})};(m=l.indexOf("gradient",p))!==-1&&!h(););return c.length&&(c[c.length-1].hasComma=!1),c})(t),o=Le(ra,t);if(o.length===0&&a.length===0)return t;var i=a.map((function(l){return tt({type:"gradient"},l)})).concat((function(l){var c=0;return l.map((function(m){var p=t.indexOf(m,c);return c=p+m.length,{match:m,index:p}}))})(o).map((function(l){return tt({type:"url",offset:0},l)}))).sort((function(l,c){return l.index>c.index?1:-1})),u=function(l,c){var m,p=l.isDark,h=l.isLight,v=l.isTransparent,g=l.isLarge,C=l.width,A=l.src.startsWith("data:")?"data:":l.src;if(g)"Not modifying too large image ".concat(A),m=null;else if(p&&v&&c.mode===1&&C>2){"Inverting dark image ".concat(A);var V=cr(l,tt(tt({},c),{},{sepia:Kt(c.sepia+10,0,100)}));m='url("'.concat(V,'")')}else if(h&&!v&&c.mode===1){"Dimming light image ".concat(A);var w=cr(l,c);m='url("'.concat(w,'")')}else if(c.mode===0&&h){"Applying filter to image ".concat(A);var D=cr(l,tt(tt({},c),{},{brightness:Kt(c.brightness-10,5,200),sepia:Kt(c.sepia+10,0,100)}));m='url("'.concat(D,'")')}else"Not modifying the image ".concat(A),m=null;return m},d=[],s=0,f=!1;return i.forEach((function(l,c){var m=l.type,p=l.match,h=l.index,v=l.typeGradient,g=l.hasComma,C=l.offset,A=h,V=s,w=A+p.length+C;s=w,V!==A&&(f?d.push((function(){var D=t.substring(V,A);return D[0]===","&&(D=D.substring(1)),D})):d.push((function(){return t.substring(V,A)}))),f=g||!1,m==="url"?d.push((function(D){var b;if((function(F,E){if(!F||E.length===0)return!1;if(E.some((function(q){return q==="*"})))return!0;for(var W,I=F.split(/,\s*/g),Q=function(){var q=E[P];if(I.some((function(R){return R===q})))return{v:!0}},P=0;P<E.length;P++)if(W=Q())return W.v;return!1})(e.selectorText,n))return null;var k=$n(D),L=k.length===0,O=e.parentStyleSheet,B=O&&O.href?sn(O.href):(O==null||(b=O.ownerNode)===null||b===void 0?void 0:b.baseURI)||location.origin;return k=cn(B,k),(function(){var F=et(j().mark((function E(W){var I,Q,P,q;return j().wrap((function(R){for(;;)switch(R.prev=R.next){case 0:if(!L){R.next=2;break}return R.abrupt("return","url('')");case 2:if(I=null,!gn.has(k)){R.next=7;break}I=gn.get(k),R.next=35;break;case 7:if(R.prev=7,je!=null||!or){R.next=11;break}return R.next=11,pi();case 11:if(!Ht.has(k)){R.next=20;break}return Q=Ht.get(k),R.next=15,new Promise((function(z){return Q.push(z)}));case 15:if(I=R.sent){R.next=18;break}return R.abrupt("return",null);case 18:R.next=27;break;case 20:return Ht.set(k,[]),R.next=23,ui(k);case 23:I=R.sent,gn.set(k,I),Ht.get(k).forEach((function(z){return z(I)})),Ht.delete(k);case 27:if(!r()){R.next=29;break}return R.abrupt("return",null);case 29:R.next=35;break;case 31:R.prev=31,R.t0=R.catch(7),R.t0,Ht.has(k)&&(Ht.get(k).forEach((function(z){return z(null)})),Ht.delete(k));case 35:if(!I){R.next=39;break}if(!(P=u(I,W))){R.next=39;break}return R.abrupt("return",P);case 39:if(!k.startsWith("data:")){R.next=45;break}return R.next=42,vi(k);case 42:if(!(q=R.sent)){R.next=45;break}return R.abrupt("return",'url("'.concat(q,'")'));case 45:return R.abrupt("return",'url("'.concat(k,'")'));case 46:case"end":return R.stop()}}),E,null,[[7,31]])})));return function(E){return F.apply(this,arguments)}})()})(p)):m==="gradient"&&d.push((function(D){var b=D.typeGradient,k=D.match,L=D.hasComma,O=/^(from|color-stop|to)\(([^\(\)]*?,\s*)?(.*?)\)$/,B=Le(/([^\(\),]+(\([^\(\)]*(\([^\(\)]*\)*[^\(\)]*)?\))?([^\(\), ]|( (?!calc)))*),?/g,k,1).map((function(F){var E=ft(F=F.trim());if(E)return function(Q){return Zn(E,Q)};var W=F.lastIndexOf(" ");if(E=ft(F.substring(0,W)))return function(Q){return"".concat(Zn(E,Q)," ").concat(F.substring(W+1))};var I=F.match(O);return I&&(E=ft(I[3]))?function(Q){return"".concat(I[1],"(").concat(I[2]?"".concat(I[2],", "):"").concat(Zn(E,Q),")")}:function(){return F}}));return function(F){return"".concat(b,"(").concat(B.map((function(E){return E(F)})).join(", "),")").concat(L?", ":"")}})({match:p,index:h,typeGradient:v,hasComma:g||!1,offset:C})),c===i.length-1&&d.push((function(){return t.substring(w)}))})),function(l){var c=d.filter(Boolean).map((function(p){return p(l)}));if(c.some((function(p){return p instanceof Promise})))return Promise.all(c).then((function(p){return p.filter(Boolean).join("")}));var m=c.join("");return m.endsWith(", initial")?m.slice(0,-9):m}}catch{return null}}function ja(t){try{var e=0,n=Le(/(^|\s)(?!calc)([a-z]+\(.+?\)|#[0-9a-f]+|[a-z]+)(.*?(inset|outset)?($|,))/gi,t,2),r=0,a=n.map((function(o,i){var u=e,d=t.indexOf(o,e),s=d+o.length;e=s;var f=ft(o);return f?function(l){return"".concat(t.substring(u,d)).concat((function(c,m){return ht(c,m)})(f,l)).concat(i===n.length-1?t.substring(s):"")}:(r++,function(){return t.substring(u,s)})}));return function(o){var i=a.map((function(u){return u(o)})).join("");return{matchesLength:n.length,unparseableMatchesLength:r,result:i}}}catch{return null}}function _i(){pn.clear(),gn.clear(),gi(),Ht.clear()}var Ci=(function(){function t(){Qe(this,t),this.varTypes=new Map,this.rulesQueue=[],this.inlineStyleQueue=[],this.definedVars=new Set,this.varRefs=new Map,this.unknownColorVars=new Set,this.unknownBgVars=new Set,this.undefinedVars=new Set,this.initialVarTypes=new Map,this.changedTypeVars=new Set,this.typeChangeSubscriptions=new Map,this.unstableVarValues=new Map}return Ke(t,[{key:"clear",value:function(){this.varTypes.clear(),this.rulesQueue.splice(0),this.inlineStyleQueue.splice(0),this.definedVars.clear(),this.varRefs.clear(),this.unknownColorVars.clear(),this.unknownBgVars.clear(),this.undefinedVars.clear(),this.initialVarTypes.clear(),this.changedTypeVars.clear(),this.typeChangeSubscriptions.clear(),this.unstableVarValues.clear()}},{key:"isVarType",value:function(e,n){return this.varTypes.has(e)&&(this.varTypes.get(e)&n)>0}},{key:"addRulesForMatching",value:function(e){this.rulesQueue.push(e)}},{key:"addInlineStyleForMatching",value:function(e){this.inlineStyleQueue.push(e)}},{key:"matchVariablesAndDependents",value:function(){var e=this;this.rulesQueue.length===0&&this.inlineStyleQueue.length===0||(this.changedTypeVars.clear(),this.initialVarTypes=new Map(this.varTypes),this.collectRootVariables(),this.collectVariablesAndVarDep(),this.collectRootVarDependents(),this.varRefs.forEach((function(n,r){n.forEach((function(a){e.varTypes.has(r)&&e.resolveVariableType(a,e.varTypes.get(r))}))})),this.unknownColorVars.forEach((function(n){e.unknownBgVars.has(n)?(e.unknownColorVars.delete(n),e.unknownBgVars.delete(n),e.resolveVariableType(n,1)):e.isVarType(n,7)?e.unknownColorVars.delete(n):e.undefinedVars.add(n)})),this.unknownBgVars.forEach((function(n){e.findVarRef(n,(function(r){return e.unknownColorVars.has(r)||e.isVarType(r,7)}))!=null?e.iterateVarRefs(n,(function(r){e.resolveVariableType(r,1)})):e.isVarType(n,9)?e.unknownBgVars.delete(n):e.undefinedVars.add(n)})),this.changedTypeVars.forEach((function(n){e.typeChangeSubscriptions.has(n)&&e.typeChangeSubscriptions.get(n).forEach((function(r){r()}))})),this.changedTypeVars.clear())}},{key:"getModifierForVariable",value:function(e){var n=this;return function(r){var a=e.varName,o=e.sourceValue,i=e.rule,u=e.ignoredImgSelectors,d=e.isCancelled,s=function(){var l=[],c=function(v,g,C){if(n.isVarType(a,v)){var A,V=g(a);if(oe(o))if(Ba(o)){var w=mr(o,n.unstableVarValues);w||(w=v===1?"#ffffff":"#000000"),A=C(w,r)}else A=Yt(o,(function(D){return g(D)}),(function(D){return C(D,r)}));else A=C(o,r);l.push({property:V,value:A})}};if(c(1,Ie,be),c(2,dr,yn),c(4,fr,wn),n.isVarType(a,8)){var m=qa(a),p=o;oe(o)&&(p=Yt(o,(function(v){return Ie(v)}),(function(v){return be(v,r)})));var h=Fa(p,i,u,d);p=typeof h=="function"?h(r):h,l.push({property:m,value:p})}return l},f=new Set;return{declarations:s(),onTypeChange:{addListener:function(l){var c=function(){var m=s();l(m)};f.add(c),n.subscribeForVarTypeChange(a,c)},removeListeners:function(){f.forEach((function(l){n.unsubscribeFromVariableTypeChanges(a,l)}))}}}}}},{key:"getModifierForVarDependant",value:function(e,n){var r=this;if(n.match(/^\s*(rgb|hsl)a?\(/)){var a=e.startsWith("background"),o=hr(e);return function(i){var u=mr(n,r.unstableVarValues);return u||(u=a?"#ffffff":"#000000"),(a?be:o?yn:wn)(u,i)}}return e==="background-color"?function(i){return Yt(n,(function(u){return Ie(u)}),(function(u){return be(u,i)}))}:hr(e)?function(i){return Yt(n,(function(u){return dr(u)}),(function(u){return yn(u,i)}))}:e==="background"||e==="background-image"||e==="box-shadow"?function(i){var u=new Set,d=function(){var f=Yt(n,(function(c){return r.isVarType(c,1)?Ie(c):r.isVarType(c,8)?qa(c):(u.add(c),c)}),(function(c){return be(c,i)}));if(e==="box-shadow"){var l=ja(f)(i);if(l.unparseableMatchesLength!==l.matchesLength)return l.result}return f},s=d();return u.size>0?s.match(/^var\(.*?, var\(--wp-dark-mode-bg--.*\)\)$/)?s:new Promise((function(f){var l,c=Wt(u.values());try{var m=function(){var p=l.value;r.subscribeForVarTypeChange(p,(function h(){r.unsubscribeFromVariableTypeChanges(p,h);var v=d();f(v)}))};for(c.s();!(l=c.n()).done;)m()}catch(p){c.e(p)}finally{c.f()}})):s}:e.startsWith("border")||e.startsWith("outline")?function(i){return Yt(n,(function(u){return fr(u)}),(function(u){return wn(u,i)}))}:null}},{key:"subscribeForVarTypeChange",value:function(e,n){this.typeChangeSubscriptions.has(e)||this.typeChangeSubscriptions.set(e,new Set);var r=this.typeChangeSubscriptions.get(e);r.has(n)||r.add(n)}},{key:"unsubscribeFromVariableTypeChanges",value:function(e,n){this.typeChangeSubscriptions.has(e)&&this.typeChangeSubscriptions.get(e).delete(n)}},{key:"collectVariablesAndVarDep",value:function(){var e=this;this.rulesQueue.forEach((function(n){ae(n,(function(r){r.style&&e.collectVarsFromCSSDeclarations(r.style)}))})),this.inlineStyleQueue.forEach((function(n){e.collectVarsFromCSSDeclarations(n)})),this.rulesQueue.splice(0),this.inlineStyleQueue.splice(0)}},{key:"collectVarsFromCSSDeclarations",value:function(e){var n=this;he(e,(function(r,a){bn(r)&&n.inspectVariable(r,a),oe(a)&&n.inspectVarDependant(r,a)}))}},{key:"shouldProcessRootVariables",value:function(){var e;return this.rulesQueue.length>0&&((e=document.documentElement.getAttribute("style"))===null||e===void 0?void 0:e.includes("--"))}},{key:"collectRootVariables",value:function(){var e=this;this.shouldProcessRootVariables()&&he(document.documentElement.style,(function(n,r){bn(n)&&e.inspectVariable(n,r)}))}},{key:"inspectVariable",value:function(e,n){this.unstableVarValues.set(e,n),oe(n)&&Ba(n)&&(this.unknownColorVars.add(e),this.definedVars.add(e)),this.definedVars.has(e)||(this.definedVars.add(e),n.match(Ua)||n.match(Ha)||ft(n)?this.unknownColorVars.add(e):(n.includes("url(")||n.includes("linear-gradient(")||n.includes("radial-gradient("))&&this.resolveVariableType(e,8))}},{key:"resolveVariableType",value:function(e,n){var r=this.initialVarTypes.get(e)||0,a=(this.varTypes.get(e)||0)|n;this.varTypes.set(e,a),(a!==r||this.undefinedVars.has(e))&&(this.changedTypeVars.add(e),this.undefinedVars.delete(e)),this.unknownColorVars.delete(e),this.unknownBgVars.delete(e)}},{key:"collectRootVarDependents",value:function(){var e=this;this.shouldProcessRootVariables()&&he(document.documentElement.style,(function(n,r){oe(r)&&e.inspectVarDependant(n,r)}))}},{key:"inspectVarDependant",value:function(e,n){var r=this;bn(e)?this.iterateVarDeps(n,(function(a){r.varRefs.has(e)||r.varRefs.set(e,new Set),r.varRefs.get(e).add(a)})):e==="background-color"||e==="box-shadow"?this.iterateVarDeps(n,(function(a){return r.resolveVariableType(a,1)})):hr(e)?this.iterateVarDeps(n,(function(a){return r.resolveVariableType(a,2)})):e.startsWith("border")||e.startsWith("outline")?this.iterateVarDeps(n,(function(a){return r.resolveVariableType(a,4)})):e!=="background"&&e!=="background-image"||this.iterateVarDeps(n,(function(a){if(!r.isVarType(a,9)){var o=r.findVarRef(a,(function(i){return r.unknownColorVars.has(i)||r.isVarType(i,7)}))!=null;r.iterateVarRefs(a,(function(i){o?r.resolveVariableType(i,1):r.unknownBgVars.add(i)}))}}))}},{key:"iterateVarDeps",value:function(e,n){var r=new Set;(function(a,o){Yt(a,(function(i){return o(i),i}))})(e,(function(a){return r.add(a)})),r.forEach((function(a){return n(a)}))}},{key:"findVarRef",value:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Set;if(r.has(e))return null;if(r.add(e),n(e))return e;var a=this.varRefs.get(e);if(!a||a.size===0)return null;var o,i=Wt(a);try{for(i.s();!(o=i.n()).done;){var u=o.value,d=this.findVarRef(u,n,r);if(d)return d}}catch(s){i.e(s)}finally{i.f()}return null}},{key:"iterateVarRefs",value:function(e,n){this.findVarRef(e,(function(r){return n(r),!1}))}},{key:"setOnRootVariableChange",value:function(e){this.onRootVariableDefined=e}},{key:"putRootVars",value:function(e,n){var r=this,a=e.sheet;a.cssRules.length>0&&a.deleteRule(0);var o=new Map;he(document.documentElement.style,(function(m,p){bn(m)&&(r.isVarType(m,1)&&o.set(Ie(m),be(p,n)),r.isVarType(m,2)&&o.set(dr(m),yn(p,n)),r.isVarType(m,4)&&o.set(fr(m),wn(p,n)),r.subscribeForVarTypeChange(m,r.onRootVariableDefined))}));var i=[];i.push(":root {");var u,d=Wt(o);try{for(d.s();!(u=d.n()).done;){var s=pt(u.value,2),f=s[0],l=s[1];i.push("    ".concat(f,": ").concat(l,";"))}}catch(m){d.e(m)}finally{d.f()}i.push("}");var c=i.join(`
`);a.insertRule(c)}}]),t})(),nt=new Ci;function Ai(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=t.indexOf("var(",e);if(n>=0){var r=Hn(t,n+3);if(r)return{start:n,end:r.end}}return null}function Ia(t,e){var n=(function(f){for(var l,c=[],m=0;l=Ai(f,m);){var p=l,h=p.start,v=p.end;c.push({start:h,end:v,value:f.substring(h,v)}),m=l.end+1}return c})(t),r=n.length;if(r===0)return t;var a=t.length,o=n.map((function(f){return e(f.value)})),i=[];i.push(t.substring(0,n[0].start));for(var u=0;u<r;u++){i.push(o[u]);var d=n[u].end,s=u<r-1?n[u+1].start:a;i.push(t.substring(d,s))}return i.join("")}function Wa(t){var e,n,r=t.indexOf(",");return r>=0?(e=t.substring(4,r).trim(),n=t.substring(r+1,t.length-1).trim()):(e=t.substring(4,t.length-1).trim(),n=""),{name:e,fallback:n}}function Yt(t,e,n){return Ia(t,(function(r){var a,o=Wa(r),i=o.name,u=o.fallback,d=e(i);return u?(a=oe(u)?Yt(u,e,n):n?n(u):u,"var(".concat(d,", ").concat(a,")")):"var(".concat(d,")")}))}function Ie(t){return"--wp-dark-mode-bg".concat(t)}function dr(t){return"--wp-dark-mode-text".concat(t)}function fr(t){return"--wp-dark-mode-border".concat(t)}function qa(t){return"--wp-dark-mode-bgimg".concat(t)}function bn(t){return t.startsWith("--")}function oe(t){return t.includes("var(")}function Ba(t){return t.match(/^\s*(rgb|hsl)a?\(/)}function hr(t){return t==="color"||t==="caret-color"||t==="-webkit-text-fill-color"}var Ua=/^(\d{1,3})\s+(\d{1,3})\s+(\d{1,3})$/,Ha=/^(\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})$/;function pr(t,e,n){var r=(function(s){var f,l=(f=s.match(Ua))!==null&&f!==void 0?f:s.match(Ha);return l?{isRaw:!0,color:"rgb(".concat(l[1],", ").concat(l[2],", ").concat(l[3],")")}:{isRaw:!1,color:s}})(t),a=r.isRaw,o=r.color,i=ft(o);if(i){var u=n(i,e);if(a){var d=ft(u);return d?"".concat(d.r,", ").concat(d.g,", ").concat(d.b):u}return u}return o}function be(t,e){return pr(t,e,ht)}function yn(t,e){return pr(t,e,At)}function wn(t,e){return pr(t,e,De)}function mr(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Set,r=!1,a=Ia(t,(function(o){var i=Wa(o),u=i.name,d=i.fallback;if(n.has(u))return r=!0,null;n.add(u);var s=e.get(u)||d,f=null;return s&&(f=oe(s)?mr(s,e,n):s),f||(r=!0,null)}));return r?null:a}var ye={"background-color":{customProp:"--wp-dark-mode-inline-bgcolor",cssProp:"background-color",dataAttr:"data-wp-dark-mode-inline-bgcolor"},"background-image":{customProp:"--wp-dark-mode-inline-bgimage",cssProp:"background-image",dataAttr:"data-wp-dark-mode-inline-bgimage"},"border-color":{customProp:"--wp-dark-mode-inline-border",cssProp:"border-color",dataAttr:"data-wp-dark-mode-inline-border"},"border-bottom-color":{customProp:"--wp-dark-mode-inline-border-bottom",cssProp:"border-bottom-color",dataAttr:"data-wp-dark-mode-inline-border-bottom"},"border-left-color":{customProp:"--wp-dark-mode-inline-border-left",cssProp:"border-left-color",dataAttr:"data-wp-dark-mode-inline-border-left"},"border-right-color":{customProp:"--wp-dark-mode-inline-border-right",cssProp:"border-right-color",dataAttr:"data-wp-dark-mode-inline-border-right"},"border-top-color":{customProp:"--wp-dark-mode-inline-border-top",cssProp:"border-top-color",dataAttr:"data-wp-dark-mode-inline-border-top"},"box-shadow":{customProp:"--wp-dark-mode-inline-boxshadow",cssProp:"box-shadow",dataAttr:"data-wp-dark-mode-inline-boxshadow"},color:{customProp:"--wp-dark-mode-inline-color",cssProp:"color",dataAttr:"data-wp-dark-mode-inline-color"},fill:{customProp:"--wp-dark-mode-inline-fill",cssProp:"fill",dataAttr:"data-wp-dark-mode-inline-fill"},stroke:{customProp:"--wp-dark-mode-inline-stroke",cssProp:"stroke",dataAttr:"data-wp-dark-mode-inline-stroke"},"outline-color":{customProp:"--wp-dark-mode-inline-outline",cssProp:"outline-color",dataAttr:"data-wp-dark-mode-inline-outline"},"stop-color":{customProp:"--wp-dark-mode-inline-stopcolor",cssProp:"stop-color",dataAttr:"data-wp-dark-mode-inline-stopcolor"}},Ga={background:{customProp:"--wp-dark-mode-inline-bg",cssProp:"background",dataAttr:"data-wp-dark-mode-inline-bg"}},vr=Object.values(ye),gr={};vr.forEach((function(t){var e=t.cssProp,n=t.customProp;return gr[n]=e}));var kn=["style","fill","stop-color","stroke","bgcolor","color","background"],We=kn.map((function(t){return"[".concat(t,"]")})).join(", ");function $a(){return vr.concat(Object.values(Ga)).map((function(t){var e=t.dataAttr,n=t.customProp,r=t.cssProp;return["[".concat(e,"] {"),"  ".concat(r,": var(").concat(n,") !important;"),"}"].join(`
`)})).join(`
`)}var qe=new Map,Sn=new Map;function br(t,e,n){qe.has(t)&&(qe.get(t).disconnect(),Sn.get(t).disconnect());var r=new WeakSet;function a(p){(function(h){var v=[];return h instanceof Element&&h.matches(We)&&v.push(h),(h instanceof Element||Pt&&h instanceof ShadowRoot||h instanceof Document)&&jn(v,h.querySelectorAll(We)),v})(p).forEach((function(h){r.has(h)||(r.add(h),e(h))})),fe(p,(function(h){r.has(p)||(r.add(p),n(h.shadowRoot),br(h.shadowRoot,e,n))})),nt.matchVariablesAndDependents()}var o=Yr(t,{onMinorMutations:function(p,h){h.additions.forEach((function(v){return a(v)}))},onHugeMutations:function(){a(t)}});qe.set(t,o);var i=0,u=null,d=tn({seconds:10}),s=tn({seconds:2}),f=[],l=null,c=In((function(p){var h=new Set;p.forEach((function(v){var g=v.target;h.has(g)||kn.includes(v.attributeName)&&(h.add(g),e(g))})),nt.matchVariablesAndDependents()})),m=new MutationObserver((function(p){if(l){var h;(h=f).push.apply(h,kt(p))}else{i++;var v=Date.now();if(u==null)u=v;else if(i>=50){var g;if(v-u<d)return l=setTimeout((function(){u=null,i=0,l=null;var C=f;f=[],c(C)}),s),void(g=f).push.apply(g,kt(p));u=v,i=1}c(p)}}));m.observe(t,{attributes:!0,attributeFilter:kn.concat(vr.map((function(p){return p.dataAttr}))),subtree:!0}),Sn.set(t,m)}var yr=new WeakMap,Ri=["brightness","contrast","grayscale","sepia","mode"];function wr(t,e){return kn.map((function(n){return"".concat(n,'="').concat(t.getAttribute(n),'"')})).concat(Ri.map((function(n){return"".concat(n,'="').concat(e[n],'"')}))).join(" ")}function kr(t,e,n,r){var a;if(Fr(t)){t.classList.add("wp-dark-mode-ignore");return}if(wr(t,e)!==yr.get(t)){var o=new Set(Object.keys(ye));if(n.length>0&&(function(p,h){for(var v=0,g=h.length;v<g;v++){var C=h[v];if(p.matches(C))return!0}return!1})(t,n))o.forEach((function(p){t.removeAttribute(ye[p].dataAttr)}));else{if(t.hasAttribute("bgcolor")){var i=t.getAttribute("bgcolor");(i.match(/^[0-9a-f]{3}$/i)||i.match(/^[0-9a-f]{6}$/i))&&(i="#".concat(i)),m("background-color","background-color",i)}if((t===document.documentElement||t===document.body)&&t.hasAttribute("background")){var u,d=cn(location.href,(u=t.getAttribute("background"))!==null&&u!==void 0?u:"");m("background-image","background-image",'url("'.concat(d,'")'))}if(t.hasAttribute("color")&&t.rel!=="mask-icon"){var s=t.getAttribute("color");(s.match(/^[0-9a-f]{3}$/i)||s.match(/^[0-9a-f]{6}$/i))&&(s="#".concat(s)),m("color","color",s)}if(t instanceof SVGElement){if(t.hasAttribute("fill")){var f=t.getAttribute("fill");if(f!=="none")if(t instanceof SVGTextElement)m("fill","color",f);else{var l=function(){var p=t.getBoundingClientRect(),h=p.width,v=p.height;m("fill",h>32||v>32?"background-color":"color",f)};nn()?l():Bn(l)}}t.hasAttribute("stop-color")&&m("stop-color","background-color",t.getAttribute("stop-color"))}if(t.hasAttribute("stroke")){var c=t.getAttribute("stroke");m("stroke",t instanceof SVGLineElement||t instanceof SVGTextElement?"border-color":"color",c)}t.style&&he(t.style,(function(p,h){if(p==="background-image"&&h.includes("url"))t!==document.documentElement&&t!==document.body||m(p,p,h);else if(ye.hasOwnProperty(p)||p.startsWith("--")&&!gr[p])m(p,p,h);else if(p==="background"&&h.includes("var("))m("background","background",h);else{var v=gr[p];if(v&&!t.style.getPropertyValue(v)&&!t.hasAttribute(v)){if(v==="background-color"&&t.hasAttribute("bgcolor"))return;t.style.setProperty(p,"")}}})),t.style&&t instanceof SVGTextElement&&t.style.fill&&m("fill","color",t.style.getPropertyValue("fill")),(a=t.getAttribute("style"))!==null&&a!==void 0&&a.includes("--")&&nt.addInlineStyleForMatching(t.style),Et(o,(function(p){t.removeAttribute(ye[p].dataAttr)})),yr.set(t,wr(t,e))}}function m(p,h,v){var g=Pa(h,v,{style:t.style},nt,r,null);if(g){var C,A=typeof g.value=="function"?g.value(e):g.value;typeof A=="string"?V(A):A instanceof Promise?(C=v,A.then((function(w){w&&p==="background"&&w.startsWith("var(--wp-dark-mode-bg--")&&V(w),w&&p==="background-image"&&(t!==document.documentElement&&t!==document.body||w!==C||(w="none"),V(w)),yr.set(t,wr(t,e))}))):Ot(A)==="object"&&(function(w){var D=[];function b(k){D.forEach((function(L){var O=L.property;t.style.removeProperty(O)})),k.forEach((function(L){var O=L.property,B=L.value;B instanceof Promise||t.style.setProperty(O,B)})),D=k}b(w.declarations),w.onTypeChange.addListener(b)})(A)}function V(w){var D,b=(D=ye[p])!==null&&D!==void 0?D:Ga[p],k=b.customProp,L=b.dataAttr;t.style.setProperty(k,w),t.hasAttribute(L)||t.setAttribute(L,""),o.delete(p)}}}var za="theme-color",Qa='meta[name="'.concat(za,'"]'),En=null,Xt=null;function Ka(t,e){var n=ft(En=En||t.content);n&&(t.content=ht(n,e))}var Ti=/\/\*[\s\S]*?\*\//g;function Sr(t){return t.replace(Ti,"")}var Li=["mode","brightness","contrast","grayscale","sepia","darkSchemeBackgroundColor","darkSchemeTextColor","lightSchemeBackgroundColor","lightSchemeTextColor"],Mi=(function(){var t=[],e=null;function n(){for(var r;r=t.shift();)r();e=null}return{add:function(r){t.push(r),e||(e=requestAnimationFrame(n))},cancel:function(){t.splice(0),cancelAnimationFrame(e),e=null}}})();function Er(){var t=0,e=new Set,n=new Map,r=new Set,a=null,o=!1,i=!1;return{modifySheet:function(u){var d=u.sourceCSSRules,s=u.theme,f=u.ignoreImageAnalysis,l=f===void 0||f,c=u.force,m=u.prepareSheet,p=u.isAsyncCancelled,h=n.size===0,v=new Set(n.keys()),g=(function(E){var W="";return Li.forEach((function(I){W+="".concat(I,":").concat(E[I],";")})),W})(s),C=g!==a;o&&(i=!0);var A=[];if(ae(d,(function(E){var W=(function(R){var z=R.cssText;return zn(R.parentRule)&&(z="".concat(R.parentRule.media.mediaText," { ").concat(z," }")),Xr(z)})(E),I=!1;if(v.delete(W),e.has(W)||(e.add(W),I=!0),I){if(h=!0,E.style.all!=="revert"){var Q=[];E.style&&he(E.style,(function(R,z){var K=Pa(R,z,E,nt,l,p);K&&Q.push(K)}));var P=null;if(Q.length>0){var q=E.parentRule;P={selector:E.selectorText,declarations:Q,parentRule:q},A.push(P)}n.set(W,P)}}else A.push(n.get(W))}),(function(){o=!0})),v.forEach((function(E){e.delete(E),n.delete(E)})),a=g,c||h||C){t++;var V=new Map,w=new Map,D=0,b=0,k={rule:null,rules:[],isGroup:!0},L=new WeakMap;r.forEach((function(E){return E()})),r.clear(),A.filter((function(E){return E})).forEach((function(E){var W=E.selector,I=E.declarations,Q=F(E.parentRule),P={selector:W,declarations:[],isGroup:!1},q=P.declarations;function R(K,Z,Y,it){var ct=++D,G={property:K,value:null,important:Y,asyncKey:ct,sourceValue:it};q.push(G);var wt=t;Z.then((function(_e){_e&&!p()&&wt===t&&(G.value=_e,Mi.add((function(){var ce,Ft,ze,Mt,$t;p()||wt!==t||(ce=ct,Ft=V.get(ce),ze=Ft.rule,Mt=Ft.target,$t=Ft.index,Mt.deleteRule($t),B(Mt,$t,ze),V.delete(ce))})))}))}function z(K,Z,Y,it){var ct=Z.declarations,G=Z.onTypeChange,wt=++b,_e=t,ce=q.length,Ft=[];if(ct.length===0){var ze={property:K,value:it,important:Y,sourceValue:it,varKey:wt};q.push(ze),Ft=[ze]}ct.forEach((function(Mt){if(Mt.value instanceof Promise)R(Mt.property,Mt.value,Y,it);else{var $t={property:Mt.property,value:Mt.value,important:Y,sourceValue:it,varKey:wt};q.push($t),Ft.push($t)}})),G.addListener((function(Mt){if(!p()&&_e===t){var $t=Mt.map((function(Pn){return{property:Pn.property,value:Pn.value,important:Y,sourceValue:it,varKey:wt}})),eu=q.indexOf(Ft[0],ce);q.splice.apply(q,[eu,Ft.length].concat(kt($t))),Ft=$t,(function(Pn){var Nr=w.get(Pn),nu=Nr.rule,Po=Nr.target,Do=Nr.index;Po.deleteRule(Do),B(Po,Do,nu)})(wt)}})),r.add((function(){return G.removeListeners()}))}Q.rules.push(P),I.forEach((function(K){var Z=K.property,Y=K.value,it=K.important,ct=K.sourceValue;if(typeof Y=="function"){var G=Y(s);G instanceof Promise?R(Z,G,it,ct):Z.startsWith("--")?z(Z,G,it,ct):q.push({property:Z,value:G,important:it,sourceValue:ct})}else q.push({property:Z,value:Y,important:it,sourceValue:ct})}))}));var O=m();(function E(W,I,Q){W.rules.forEach((function(P){if(P.isGroup){var q=(function(R,z){var K=R.rule;if(zn(K)){var Z=K.media,Y=z.cssRules.length;return z.insertRule("@media ".concat(Z.mediaText," {}"),Y),z.cssRules[Y]}if(la(K)){var it=K.name,ct=z.cssRules.length;return z.insertRule("@layer ".concat(it," {}"),ct),z.cssRules[ct]}return z})(P,I);E(P,q,Q)}else Q(P,I)}))})(k,O,(function(E,W){var I=W.cssRules.length;E.declarations.forEach((function(Q){var P=Q.asyncKey,q=Q.varKey;P!=null&&V.set(P,{rule:E,target:W,index:I}),q!=null&&w.set(q,{rule:E,target:W,index:I})})),B(W,I,E)}))}function B(E,W,I){var Q=I.selector,P=I.declarations,q=document.querySelector(Q);if(!Fr(q)){var R=Q,z=Ye&&Q.startsWith(":is(")&&(Q.includes(":is()")||Q.includes(":where()")||Q.includes(":where(")&&Q.includes(":-moz")),K=Q.includes("::view-transition-");(z||K)&&(R=".wp-dark-mode-unsupported-selector");var Z,Y=" ".concat(R," {"),it=Wt(P);try{for(it.s();!(Z=it.n()).done;){var ct=Z.value,G=ct.property,wt=ct.value,_e=ct.important;wt&&(Y+=" ".concat(G,": ").concat(wt).concat(_e?" !important":"",";"))}}catch(ce){it.e(ce)}finally{it.f()}Y+=" }",E.insertRule(Y,W)}}function F(E){if(E==null)return k;if(L.has(E))return L.get(E);var W={rule:E,rules:[],isGroup:!0};return L.set(E,W),F(E.parentRule).rules.push(W),W}},shouldRebuildStyle:function(){return o&&!i}}}var xn=!1;function Vi(t,e,n,r){var a=null,o=!1;function i(){var u;xn=!0,(u=a)===null||u===void 0||u.stop(),o||(o=!0,queueMicrotask((function(){o=!1,r()||n()})))}return{start:function(){t.addEventListener("__wp_dark_mode__updateSheet",i),xn&&t.sheet||(a=(function(u,d,s,f){var l=null,c=null;function m(){var g=d();return g?g.length:null}function p(){return m()!==l}function h(){l=m(),v(),(function g(){var C=f();!C&&p()&&(l=m(),s()),C||xn&&u.sheet?v():c=requestAnimationFrame(g)})()}function v(){c&&cancelAnimationFrame(c)}return{start:h,stop:v}})(t,e,n,r),a.start())},stop:function(){var u;t.removeEventListener("__wp_dark_mode__updateSheet",i),(u=a)===null||u===void 0||u.stop()}}}document.addEventListener("__wp_dark_mode__inlineScriptsAllowed",(function(){return xn=!0}),{once:!0});var Oi='style, link[rel*="stylesheet" i]:not([disabled])',Pi=["www.onet.pl"];function Ya(t){return(t instanceof HTMLStyleElement||t instanceof SVGStyleElement&&!Pi.includes(location.hostname)||t instanceof HTMLLinkElement&&!!t.rel&&t.rel.toLowerCase().includes("stylesheet")&&!!t.href&&!t.disabled&&(!qt||!t.href.startsWith("moz-extension://"))&&!(function(e){if(!e.href)return!1;try{return new URL(e.href).hostname==="fonts.googleapis.com"}catch{return"Couldn't construct ".concat(e.href," as URL"),!1}})(t))&&!t.classList.contains("wp-dark-mode")&&t.media.toLowerCase()!=="print"&&!t.classList.contains("stylus")&&!t.id.startsWith("wp-dark-mode-")&&!t.classList.contains("wp-dark-mode")&&!t.matches(".wp-dark-mode-ignore, .wp-dark-mode-ignore *")}function Jt(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];return Ya(t)?e.push(t):(t instanceof Element||Pt&&t instanceof ShadowRoot||t===document)&&(Et(t.querySelectorAll(Oi),(function(r){return Jt(r,e,!1)})),n&&fe(t,(function(r){return Jt(r.shadowRoot,e,!1)}))),e}var Xa=new WeakSet,Ja=new WeakSet,Di=0,we=new Map;function Ni(t,e){for(var n=e.update,r=e.loadingStart,a=e.loadingEnd,o=[],i=t;(i=i.nextElementSibling)&&i.matches(".wp-dark-mode");)o.push(i);var u=o.find((function(P){return P.matches(".wp-dark-mode--cors")&&!Ja.has(P)}))||null,d=o.find((function(P){return P.matches(".wp-dark-mode--sync")&&!Xa.has(P)}))||null,s=null,f=null,l=!1,c=!0,m=function(){return l},p=Er(),h=new MutationObserver((function(P){var q;P.some((function(R){return R.type==="characterData"}))&&g()?L(((q=t.textContent)!==null&&q!==void 0?q:"").trim(),location.href).then(n):n()})),v={attributes:!0,childList:!0,subtree:!0,characterData:!0};function g(){var P;return t instanceof HTMLStyleElement&&Sr((P=t.textContent)!==null&&P!==void 0?P:"").trim().match(aa)}function C(P,q){var R,z=!1;if(P){t:for(var K=0,Z=P.length;K<Z;K++)if((R=P[K]).href){if(!q){z=!0;break t}if(!R.href.startsWith("https://fonts.googleapis.com/")&&R.href.startsWith("http")&&!R.href.startsWith(location.origin)){z=!0;break t}}}return z}function A(){if(u)return u.sheet.cssRules;if(g())return null;var P=E();return t instanceof HTMLLinkElement&&!(function(q){if(q.startsWith("data:"))return!0;var R=un(q);return R.protocol===location.protocol&&R.hostname===location.hostname&&R.port===location.port&&R.pathname===location.pathname})(t.href)&&C(P,!1)||C(P,!0)?null:P}function V(){u?(t.nextSibling!==u&&t.parentNode.insertBefore(u,t.nextSibling),u.nextSibling!==d&&t.parentNode.insertBefore(d,u.nextSibling)):t.nextSibling!==d&&t.parentNode.insertBefore(d,t.nextSibling)}var w=!1,D=!1,b=++Di;function k(){return(k=et(j().mark((function P(){var q,R,z,K,Z,Y,it,ct;return j().wrap((function(G){for(;;)switch(G.prev=G.next){case 0:if(!(t instanceof HTMLLinkElement)){G.next=29;break}if(z=F(),K=pt(z,2),Z=K[0],Y=K[1],!(Bt&&!t.sheet||!Bt&&!Z&&!Y||(wt=Y,wt&&wt.message&&wt.message.includes("loading")))){G.next=18;break}return G.prev=3,G.next=7,Fi(t,b);case 7:G.next=12;break;case 9:G.prev=9,G.t0=G.catch(3),D=!0;case 12:if(!l){G.next=14;break}return G.abrupt("return",null);case 14:it=F(),ct=pt(it,2),Z=ct[0],Y=ct[1];case 18:if(!Z){G.next=21;break}if(C(Z,!1)){G.next=21;break}return G.abrupt("return",Z);case 21:return G.next=23,to(t.href);case 23:if(q=G.sent,R=sn(t.href),!l){G.next=27;break}return G.abrupt("return",null);case 27:G.next=35;break;case 29:if(!g()){G.next=34;break}q=t.textContent.trim(),R=sn(location.href),G.next=35;break;case 34:return G.abrupt("return",null);case 35:return G.next=37,L(q,R);case 37:if(!u){G.next=39;break}return G.abrupt("return",u.sheet.cssRules);case 39:return G.abrupt("return",null);case 40:case"end":return G.stop()}var wt}),P,null,[[3,9]])})))).apply(this,arguments)}function L(P,q){return O.apply(this,arguments)}function O(){return(O=et(j().mark((function P(q,R){var z,K,Z;return j().wrap((function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(!q){Y.next=11;break}return Y.prev=1,Y.next=4,no(q,R);case 4:z=Y.sent,u?((K=(Z=u.textContent)===null||Z===void 0?void 0:Z.length)!==null&&K!==void 0?K:0)<z.length&&(u.textContent=z):u=ji(t,z),Y.next=10;break;case 8:Y.prev=8,Y.t0=Y.catch(1);case 10:u&&(s=qn(u,"prev-sibling"));case 11:case"end":return Y.stop()}}),P,null,[[1,8]])})))).apply(this,arguments)}var B=!1;function F(){try{return t.sheet==null?[null,null]:[t.sheet.cssRules,null]}catch(P){return[null,P]}}function E(){var P=pt(F(),2),q=P[0];return P[1]?null:q}var W=Vi(t,E,n,m);function I(){h.disconnect(),l=!0,s&&s.stop(),f&&f.stop(),W.stop()}var Q=0;return{details:function(P){var q=A();return q?{rules:q}:(P.secondRound||w||D||(w=!0,r(),(function(){return k.apply(this,arguments)})().then((function(R){w=!1,a(),R&&n()})).catch((function(R){w=!1,a()}))),null)},render:function(P){var q=A();function R(){return d||((d=t instanceof SVGStyleElement?document.createElementNS("http://www.w3.org/2000/svg","style"):document.createElement("style")).classList.add("wp-dark-mode"),d.classList.add("wp-dark-mode--sync"),d.media="screen",t.title&&(d.title=t.title),Xa.add(d)),f&&f.stop(),V(),d.sheet==null&&(d.textContent=""),(function(K){if(K)for(var Z=K.cssRules.length-1;Z>=0;Z--)K.deleteRule(Z)})(d.sheet),f?f.run():f=qn(d,"prev-sibling",(function(){B=!0,z()})),d.sheet}function z(){var K=B;B=!1,p.modifySheet({prepareSheet:R,sourceCSSRules:q,theme:P,ignoreImageAnalysis:!0,force:K,isAsyncCancelled:m}),c=d.sheet.cssRules.length===0,p.shouldRebuildStyle()&&Bn((function(){return n()}))}q&&(l=!1,z())},pause:I,destroy:function(){if(I(),bt(u),bt(d),a(),we.has(b)){var P=we.get(b);we.delete(b),P&&P()}},watch:function(){h.observe(t,v),t instanceof HTMLStyleElement&&W.start()},restore:function(){d&&(++Q>10||(V(),s&&s.skip(),f&&f.skip(),c||(B=!0,n())))}}}function Fi(t,e){return Za.apply(this,arguments)}function Za(){return(Za=et(j().mark((function t(e,n){return j().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",new Promise((function(a,o){var i=function(){e.removeEventListener("load",u),e.removeEventListener("error",d),we.delete(n)},u=function(){i(),a()},d=function(){i(),o("Linkelement ".concat(n," couldn't be loaded. ").concat(e.href))};we.set(n,(function(){i(),o()})),e.addEventListener("load",u,{passive:!0}),e.addEventListener("error",d,{passive:!0}),e.href||d()})));case 1:case"end":return r.stop()}}),t)})))).apply(this,arguments)}function to(t){return eo.apply(this,arguments)}function eo(){return(eo=et(j().mark((function t(e){return j().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e.startsWith("data:")){n.next=6;break}return n.next=3,fetch(e);case 3:return n.next=5,n.sent.text();case 5:case 10:case 13:return n.abrupt("return",n.sent);case 6:if(new URL(e).origin!==location.origin){n.next=11;break}return n.next=10,Te(e,"text/css",location.origin);case 11:return n.next=13,Ea({url:e,responseType:"text",mimeType:"text/css",origin:location.origin});case 14:case"end":return n.stop()}}),t)})))).apply(this,arguments)}function no(t,e){return xr.apply(this,arguments)}function xr(){return xr=et(j().mark((function t(e,n){var r,a,o,i,u,d,s,f,l=arguments;return j().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:r=l.length>2&&l[2]!==void 0?l[2]:new Map,e=Bo(e=(e=Sr(e)).replace(Uo,""),n),a=Le(aa,e),o=Wt(a),c.prev=6,o.s();case 8:if((i=o.n()).done){c.next=33;break}if(u=i.value,d=$n(u.substring(7).trim().replace(/;$/,"").replace(/screen$/,"")),s=cn(n,d),f=void 0,!r.has(s)){c.next=17;break}f=r.get(s),c.next=30;break;case 17:return c.prev=17,c.next=20,to(s);case 20:return f=c.sent,r.set(s,f),c.next=24,no(f,sn(s),r);case 24:f=c.sent,c.next=30;break;case 27:c.prev=27,c.t0=c.catch(17),f="";case 30:e=e.split(u).join(f);case 31:c.next=8;break;case 33:c.next=38;break;case 35:c.prev=35,c.t1=c.catch(6),o.e(c.t1);case 38:return c.prev=38,o.f(),c.finish(38);case 41:return e=e.trim(),c.abrupt("return",e);case 43:case"end":return c.stop()}}),t,null,[[6,35,38,41],[17,27]])}))),xr.apply(this,arguments)}function ji(t,e){if(!e)return null;var n=document.createElement("style");return n.classList.add("wp-dark-mode"),n.classList.add("wp-dark-mode--cors"),n.media="screen",n.textContent=e,t.parentNode.insertBefore(n,t.nextSibling),n.sheet.disabled=!0,Ja.add(n),n}var _n,ro=new Set,ie=new Map;function ao(t){var e=t.tagName.toLowerCase();if(!e.includes("-")){var n=t.getAttribute("is");if(!n)return;e=n}ie.has(e)||(ie.set(e,new Set),(function(r){return io.apply(this,arguments)})(e).then((function(){if(_n){var r=ie.get(e);ie.delete(e),_n(Array.from(r))}}))),ie.get(e).add(t)}function Cn(t){Ae&&Et(t.querySelectorAll(":not(:defined)"),ao)}var _r=!1;document.addEventListener("__wp_dark_mode__inlineScriptsAllowed",(function(){_r=!0}),{once:!0,passive:!0});var ke=new Map;function oo(t){_r=!0;var e=t.detail.tag;if(ro.add(e),ke.has(e)){var n=ke.get(e);ke.delete(e),n.forEach((function(r){return r()}))}}function io(){return(io=et(j().mark((function t(e){return j().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!ro.has(e)){n.next=2;break}return n.abrupt("return");case 2:return n.abrupt("return",new Promise((function(r){window.customElements&&typeof customElements.whenDefined=="function"?customElements.whenDefined(e).then((function(){return r()})):_r?(ke.has(e)?ke.get(e).push(r):ke.set(e,[r]),document.dispatchEvent(new CustomEvent("__wp_dark_mode__addUndefinedResolver",{detail:{tag:e}}))):requestAnimationFrame((function a(){var o=ie.get(e);o&&o.size>0&&(o.values().next().value.matches(":defined")?r():requestAnimationFrame(a))}))})));case 3:case"end":return n.stop()}}),t)})))).apply(this,arguments)}var An,Rn=[];function Ii(t,e,n){uo();var r=new WeakMap,a=function(h){return r.has(h)||r.set(h,new Set),r.get(h)};t.forEach((function(h){for(var v=h;v=v.parentNode;)if(v===document||v.nodeType===Node.DOCUMENT_FRAGMENT_NODE){a(v).add(h);break}}));var o=new WeakMap,i=new WeakMap;function u(h){o.set(h,h.previousElementSibling),i.set(h,h.nextElementSibling)}function d(h,v){var g=v.createdStyles,C=v.removedStyles,A=v.movedStyles;g.forEach((function(w){return u(w)})),A.forEach((function(w){return u(w)})),C.forEach((function(w){return D=w,o.delete(D),void i.delete(D);var D}));var V=a(h);g.forEach((function(w){return V.add(w)})),C.forEach((function(w){return V.delete(w)})),g.size+C.size+A.size>0&&e({created:Array.from(g),removed:Array.from(C),moved:Array.from(A),updated:[]})}function s(h,v){var g=v.additions,C=v.moves,A=v.deletions,V=new Set,w=new Set,D=new Set;g.forEach((function(b){return Jt(b).forEach((function(k){return V.add(k)}))})),A.forEach((function(b){return Jt(b).forEach((function(k){return w.add(k)}))})),C.forEach((function(b){return Jt(b).forEach((function(k){return D.add(k)}))})),d(h,{createdStyles:V,removedStyles:w,movedStyles:D}),g.forEach((function(b){p(b),Cn(b)})),g.forEach((function(b){return!(!(k=b).tagName.includes("-")&&!k.getAttribute("is"))&&ao(b);var k}))}function f(h){var v=new Set(Jt(h)),g=new Set,C=new Set,A=new Set,V=a(h);v.forEach((function(w){V.has(w)||g.add(w)})),V.forEach((function(w){v.has(w)||C.add(w)})),v.forEach((function(w){var D;g.has(w)||C.has(w)||(D=w).previousElementSibling===o.get(D)&&D.nextElementSibling===i.get(D)||A.add(w)})),d(h,{createdStyles:g,removedStyles:C,movedStyles:A}),p(h),Cn(h)}function l(h){var v=new Set,g=new Set;h.forEach((function(C){var A=C.target;A.isConnected&&(Ya(A)?v.add(A):A instanceof HTMLLinkElement&&A.disabled&&g.add(A))})),v.size+g.size>0&&e({updated:Array.from(v),created:[],removed:Array.from(g),moved:[]})}function c(h){if(!An.has(h)){var v=Yr(h,{onMinorMutations:s,onHugeMutations:f}),g=new MutationObserver(l);g.observe(h,{attributeFilter:["rel","disabled","media","href"],subtree:!0}),Rn.push(v,g),An.add(h)}}function m(h){var v=h.shadowRoot;v==null||An.has(v)||(c(v),n(v))}function p(h){fe(h,m)}t.forEach(u),c(document),p(document.documentElement),_n=function(h){var v=[];h.forEach((function(g){return jn(v,Jt(g.shadowRoot))})),e({created:v,updated:[],removed:[],moved:[]}),h.forEach((function(g){var C=g.shadowRoot;C!=null&&(m(g),p(C),Cn(C))}))},document.addEventListener("__wp_dark_mode__isDefined",oo),Cn(document)}function uo(){Rn.forEach((function(t){return t.disconnect()})),Rn.splice(0,Rn.length),An=new WeakSet,_n=null,ie.clear(),document.removeEventListener("__wp_dark_mode__isDefined",oo)}var Tn=!1;document.addEventListener("__wp_dark_mode__inlineScriptsAllowed",(function(){return Tn=!0}),{once:!0});var Se=new WeakSet,Cr=new WeakMap;function Wi(t){var e=!1;function n(p,h){var v=kt(t.adoptedStyleSheets),g=v.indexOf(p),C=v.indexOf(h);C>=0&&v.splice(C,1),v.splice(g+1,0,h),t.adoptedStyleSheets=v}function r(){for(var p=kt(t.adoptedStyleSheets),h=p.length-1;h>=0;h--){var v=p[h];Se.has(v)&&(p.splice(h,1),Se.delete(v))}t.adoptedStyleSheets.length!==p.length&&(t.adoptedStyleSheets=p),u=new WeakSet,d=new WeakSet}var a=[],o=0;function i(){var p,h=0;if(p=function(g){h+=g.cssRules.length},t.adoptedStyleSheets.forEach((function(g){Se.has(g)||p(g)})),h===1){var v=t.adoptedStyleSheets[0].cssRules[0];return v instanceof CSSStyleRule?v.style.length:h}return h}var u=new WeakSet,d=new WeakSet,s=!1;function f(p){s||(s=!0,queueMicrotask((function(){s=!1;var h=t.adoptedStyleSheets.filter((function(v){return!Se.has(v)}));h.forEach((function(v){return Cr.delete(v)})),p(h)})))}var l=null;function c(p){l=requestAnimationFrame((function(){Tn||(i()!==o&&f(p),c(p))}))}function m(p,h){t.addEventListener(p,h),a.push((function(){return t.removeEventListener(p,h)}))}return{render:function(p){r();for(var h=function(){var g=t.adoptedStyleSheets[v];if(Se.has(g))return 0;u.add(g);var C=Cr.get(g);if(C)return o=i(),n(g,C),0;var A=g.cssRules,V=new CSSStyleSheet;Cr.set(g,V),ae(A,(function(w){return d.add(w.style)})),Er().modifySheet({prepareSheet:function(){for(var w=V.cssRules.length-1;w>=0;w--)V.deleteRule(w);return V.insertRule("#__wp_dark_mode__adoptedOverride {}"),n(g,V),Se.add(V),V},sourceCSSRules:A,theme:p,ignoreImageAnalysis:!0,force:!1,isAsyncCancelled:function(){return e}})},v=t.adoptedStyleSheets.length-1;v>=0;v--)h();o=i()},destroy:function(){a.forEach((function(p){return p()})),a.splice(0),e=!0,r(),l&&(cancelAnimationFrame(l),l=null)},watch:function(p){var h=function(){Tn=!0,f(p)};m("__wp_dark_mode__adoptedStyleSheetsChange",h),m("__wp_dark_mode__adoptedStyleSheetChange",h),m("__wp_dark_mode__adoptedStyleDeclarationChange",h),Tn||c(p)}}}var qi=(function(){function t(e){Qe(this,t),this.cssRules=[],this.commands=[],this.onChange=e}return Ke(t,[{key:"insertRule",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this.commands.push({type:"insert",index:n,cssText:e}),this.cssRules.splice(n,0,new t(this.onChange)),this.onChange(),n}},{key:"deleteRule",value:function(e){this.commands.push({type:"delete",index:e}),this.cssRules.splice(e,1),this.onChange()}},{key:"replaceSync",value:function(e){if(this.commands.splice(0),this.commands.push({type:"replace",cssText:e}),e!=="")throw new Error("StyleSheetCommandBuilder.replaceSync() is not fully supported");this.cssRules.splice(0),this.onChange()}},{key:"getDeepCSSCommands",value:function(){var e=[];return this.commands.forEach((function(n){e.push({type:n.type,cssText:n.type!=="delete"?n.cssText:"",path:n.type==="replace"?[]:[n.index]})})),this.cssRules.forEach((function(n,r){n.getDeepCSSCommands().forEach((function(a){return a.path.unshift(r)}))})),e}},{key:"clearDeepCSSCommands",value:function(){this.commands.splice(0),this.cssRules.forEach((function(e){return e.clearDeepCSSCommands()}))}}]),t})();function Bi(t,e){document.dispatchEvent(new CustomEvent("__wp_dark_mode__inlineScriptsAllowed"));var n=[];function r(b,k,L){document.addEventListener(b,k,L),n.push((function(){return document.removeEventListener(b,k)}))}function a(b,k,L){var O=b.prototype,B=Object.getOwnPropertyDescriptor(O,k),F=tt({},B);Object.keys(L).forEach((function(E){var W=L[E];F[E]=W(B[E])})),Object.defineProperty(O,k,F),n.push((function(){return Object.defineProperty(O,k,B)}))}function o(b,k,L){a(b,k,{value:L})}function i(b){var k;return b==null||(k=b.classList)===null||k===void 0?void 0:k.contains("wp-dark-mode")}function u(b){return i(b.ownerNode)}r("__wp_dark_mode__cleanUp",(function(){n.forEach((function(b){return b()})),n.splice(0)}));var d=new CustomEvent("__wp_dark_mode__updateSheet"),s=new CustomEvent("__wp_dark_mode__adoptedStyleSheetChange"),f=new WeakMap,l=new WeakMap;function c(b){var k=f.get(b);k==null||k.forEach((function(L){L.isConnected?L.dispatchEvent(s):k.delete(L)}))}function m(b){b.ownerNode&&!u(b)&&b.ownerNode.dispatchEvent(d),f.has(b)&&c(b)}function p(b){customElements.whenDefined(b).then((function(){document.dispatchEvent(new CustomEvent("__wp_dark_mode__isDefined",{detail:{tag:b}}))}))}function h(){return(h=et(j().mark((function b(){var k,L,O,B,F,E,W;return j().wrap((function(I){for(;;)switch(I.prev=I.next){case 0:for(k='<svg xmlns="http://www.w3.org/2000/svg" width="1" height="1"><rect width="1" height="1" fill="transparent"/></svg>',L=new Uint8Array(114),O=0;O<114;O++)L[O]=k.charCodeAt(O);return B=new Blob([L],{type:"image/svg+xml"}),F=URL.createObjectURL(B),I.prev=5,W=new Image,I.next=9,new Promise((function(Q,P){W.onload=function(){return Q()},W.onerror=function(){return P()},W.src=F}));case 9:E=!0,I.next=15;break;case 12:I.prev=12,I.t0=I.catch(5),E=!1;case 15:document.dispatchEvent(new CustomEvent("__wp_dark_mode__blobURLCheckResponse",{detail:{blobURLAllowed:E}}));case 16:case"end":return I.stop()}}),b,null,[[5,12]])})))).apply(this,arguments)}o(CSSStyleSheet,"addRule",(function(b){return function(k,L,O){return b.call(this,k,L,O),m(this),-1}})),o(CSSStyleSheet,"insertRule",(function(b){return function(k,L){var O=b.call(this,k,L);return m(this),O}})),o(CSSStyleSheet,"deleteRule",(function(b){return function(k){b.call(this,k),m(this)}})),o(CSSStyleSheet,"removeRule",(function(b){return function(k){b.call(this,k),m(this)}})),o(CSSStyleSheet,"replace",(function(b){return function(k){var L,O,B,F=b.call(this,k);return O=F,(B=(L=this).ownerNode)&&!u(L)&&O&&O instanceof Promise&&O.then((function(){return B.dispatchEvent(d)})),f.has(L)&&O&&O instanceof Promise&&O.then((function(){return c(L)})),F}})),o(CSSStyleSheet,"replaceSync",(function(b){return function(k){b.call(this,k),m(this)}})),(location.hostname==="baidu.com"||location.hostname.endsWith(".baidu.com"))&&o(Element,"getElementsByTagName",(function(b){return function(k){var L=this;if(k!=="style")return b.call(this,k);var O=function(){var F=b.call(L,k);return Object.setPrototypeOf(kt(F).filter((function(E){return E&&!i(E)})),NodeList.prototype)},B=O();return B=new Proxy(B,{get:function(F,E){return O()[Number(E)||E]}})}})),["brilliant.org","www.vy.no"].includes(location.hostname)&&a(Node,"childNodes",{get:function(b){return function(){var k=b.call(this);return Object.setPrototypeOf(kt(k).filter((function(L){return!i(L)})),NodeList.prototype)}}}),r("__wp_dark_mode__addUndefinedResolver",(function(b){return p(b.detail.tag)})),e&&o(CustomElementRegistry,"define",(function(b){return function(k,L,O){p(k),b.call(this,k,L,O)}})),r("__wp_dark_mode__blobURLCheckRequest",(function(){return h.apply(this,arguments)}),{once:!0}),t&&a(Document,"styleSheets",{get:function(b){return function(){var k=this,L=function(){var B=kt(b.call(k)).filter((function(F){return F.ownerNode&&!u(F)}));return B.item=function(F){return B[F]},Object.setPrototypeOf(B,StyleSheetList.prototype)},O=L();return O=new Proxy(O,{get:function(B,F){return L()[F]}})}}});var v=new WeakMap,g=new WeakMap,C=new CustomEvent("__wp_dark_mode__adoptedStyleSheetsChange"),A=new WeakSet,V=new WeakMap,w=function(b){var k,L,O=V.get(b),B=(b.adoptedStyleSheets||[]).filter((function(F){return!((E=F)&&E.cssRules&&(A.has(E)||E.cssRules.length>0&&E.cssRules[0].cssText.startsWith("#__wp_dark_mode__adoptedOverride")&&(A.add(E),1)));var E}));V.set(b,B),O&&(L=B,(k=O).length===L.length&&k.every((function(F,E){return F===L[E]})))||(B.forEach((function(F){f.has(F)||f.set(F,new Set),f.get(F).add(b);var E,W=Wt(F.cssRules);try{for(W.s();!(E=W.n()).done;){var I=E.value.style;I&&l.set(I,F)}}catch(Q){W.e(Q)}finally{W.f()}})),b.dispatchEvent(C))};[Document,ShadowRoot].forEach((function(b){a(b,"adoptedStyleSheets",{get:function(k){return function(){return(function(L,O){if(g.has(O))return O;if(v.has(O))return v.get(O);var B=new Proxy(O,{deleteProperty:function(F,E){return delete F[E],!0},set:function(F,E,W){return F[E]=W,E==="length"&&w(L),!0}});return v.set(O,B),g.set(B,O),B})(this,k.call(this))}},set:function(k){return function(L){g.has(L)&&(L=g.get(L)),k.call(this,L),w(this)}}})}));var D=new CustomEvent("__wp_dark_mode__adoptedStyleDeclarationChange");["setProperty","removeProperty"].forEach((function(b){o(CSSStyleDeclaration,b,(function(k){return function(){for(var L=arguments.length,O=new Array(L),B=0;B<L;B++)O[B]=arguments[B];var F=k.apply(this,O),E=l.get(this);if(E){var W=f.get(E);W&&W.forEach((function(I){I.dispatchEvent(D)}))}return F}}))}))}var Gt=null,co=!document.hidden,Ee={capture:!0,passive:!0};function Ui(t){var e=!!Gt;Gt=function(){document.hidden||(so(),t(),co=!0)},e||(document.addEventListener("visibilitychange",Gt,Ee),window.addEventListener("pageshow",Gt,Ee),window.addEventListener("focus",Gt,Ee))}function so(){document.removeEventListener("visibilitychange",Gt,Ee),window.removeEventListener("pageshow",Gt,Ee),window.removeEventListener("focus",Gt,Ee),Gt=null}function lo(){return co}var fo=Sa(),Rt=new Map,Ln=[],Mn=new Map,ho=new WeakMap,Ar=new WeakMap,$=null,ot=null,po=null,xt=[],Be=[];function yt(t){var e=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.head||document).querySelector(".".concat(t));return e||((e=document.createElement("style")).classList.add("wp-dark-mode"),e.classList.add(t),e.media="screen",e.textContent=""),e}var Ue=new Map;function ue(t,e){Ue.has(e)&&Ue.get(e).stop(),Ue.set(e,qn(t,"head"))}var xe={};function Hi(){var t=yt("wp-dark-mode--fallback",document);t.textContent=lr($,{strict:!0}),document.head.insertBefore(t,document.head.firstChild),ue(t,"fallback");var e=yt("wp-dark-mode--user-agent");e.textContent=Si($,po,$.styleSystemControls),document.head.insertBefore(e,t.nextSibling),ue(e,"user-agent");var n,r,a=yt("wp-dark-mode--text");$.useFont||$.textStroke>0?a.textContent=(n=$,(r=[]).push('*:not(pre, pre *, code, .far, .fa, .glyphicon, [class*="vjs-"],[class*="fa-"], .fab, .fa-github, .fas, .material-icons, .icofont, .typcn, mu, [class*="mu-"], .glyphicon, .icon, .dashicons, .ab-icon, .wp-dark-mode-ignore *, i) {'),n.useFont&&n.fontFamily&&r.push("  font-family: ".concat(n.fontFamily," !important;")),n.textStroke>0&&(r.push("  -webkit-text-stroke: ".concat(n.textStroke,"px !important;")),r.push("  text-stroke: ".concat(n.textStroke,"px !important;"))),r.push("}"),r.join(`
`)):a.textContent="",document.head.insertBefore(a,t.nextSibling),ue(a,"text");var o=yt("wp-dark-mode--invert");ot&&Array.isArray(ot.invert)&&ot.invert.length>0?o.textContent=["".concat(ot.invert.join(", ")," {"),"    filter: ".concat(ka(tt(tt({},$),{},{contrast:$.mode===0?$.contrast:Kt($.contrast-10,0,100)}))," !important;"),"}"].join(`
`):o.textContent="",document.head.insertBefore(o,a.nextSibling),ue(o,"invert");var i=yt("wp-dark-mode--inline");i.textContent=$a(),document.head.insertBefore(i,o.nextSibling),ue(i,"inline");var u=yt("wp-dark-mode--override");u.textContent=ot&&ot.css?vo(ot.css):"",document.head.appendChild(u),ue(u,"override");var d=yt("wp-dark-mode--variables"),s=Na($),f=$,l=f.darkSchemeBackgroundColor,c=f.darkSchemeTextColor,m=f.lightSchemeBackgroundColor,p=f.lightSchemeTextColor,h=f.mode,v=h===0?m:l,g=h===0?p:c;v=ht(ft(v),$),g=At(ft(g),$),d.textContent=[":root {","  --wp-dark-mode-neutral-background: ".concat(v,";"),"  --wp-dark-mode-neutral-text: ".concat(g,";"),"  --wp-dark-mode-selection-background: ".concat(s.backgroundColorSelection,";"),"  --wp-dark-mode-selection-text: ".concat(s.foregroundColorSelection,";"),"}"].join(`
`),document.head.insertBefore(d,i.nextSibling),ue(d,"variables");var C=yt("wp-dark-mode--root-vars");document.head.insertBefore(C,d.nextSibling);var A=!(ot&&ot.disableStyleSheetsProxy),V=!(ot&&ot.disableCustomElementRegistryProxy);document.dispatchEvent(new CustomEvent("__wp_dark_mode__cleanUp"));var w=(function(D){var b=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.head||document).querySelector(".".concat(D));return b||((b=document.createElement("script")).classList.add("wp-dark-mode"),b.classList.add(D)),b})("wp-dark-mode--proxy");w.append("(".concat(Bi,")(").concat(A,", ").concat(V,")")),w.remove(),xe.background=v,xe.text=g,xe.selectionBackground=s.backgroundColorSelection,xe.selectionText=s.foregroundColorSelection}var Rr=new Set;function mo(t){var e=yt("wp-dark-mode--inline",t);e.textContent=$a(),t.insertBefore(e,t.firstChild);var n=yt("wp-dark-mode--override",t);n.textContent=ot&&ot.css?vo(ot.css):"",t.insertBefore(n,e.nextSibling);var r=yt("wp-dark-mode--invert",t);ot&&Array.isArray(ot.invert)&&ot.invert.length>0?r.textContent=["".concat(ot.invert.join(", ")," {"),"    filter: ".concat(ka(tt(tt({},$),{},{contrast:$.mode===0?$.contrast:Kt($.contrast-10,0,100)}))," !important;"),"}"].join(`
`):r.textContent="",t.insertBefore(r,n.nextSibling),Rr.add(t)}function Tr(t){var e=t.firstChild===null;mo(t),e&&(function(n){new MutationObserver((function(r,a){a.disconnect();var o,i=Wt(r);try{for(i.s();!(o=i.n()).done;){var u=o.value,d=u.type,s=u.removedNodes;if(d==="childList"){var f,l=Wt(s);try{for(l.s();!(f=l.n()).done;){var c=f.value,m=c.nodeName,p=c.className;if(m==="STYLE"&&["wp-dark-mode wp-dark-mode-inline","wp-dark-mode wp-dark-mode-override","wp-dark-mode wp-dark-mode-invert"].includes(p))return void mo(n)}}catch(h){l.e(h)}finally{l.f()}}}}catch(h){i.e(h)}finally{i.f()}})).observe(n,{childList:!0})})(t)}function vo(t){return t.replace(/\${(.+?)}/g,(function(e,n){var r=ft(n);return r?(function(a,o){return Pe(a,o,ni)})(r,$):n}))}function Lr(){var t=document.querySelector(".wp-dark-mode--fallback");t&&(t.textContent="")}var Gi=0,Zt=new Set;function go(t){var e=++Gi,n=Ni(t,{update:function(){var r=n.details({secondRound:!0});r&&(nt.addRulesForMatching(r.rules),nt.matchVariablesAndDependents(),n.render($,xt))},loadingStart:function(){if(!re()||!lo()){Zt.add(e),"Current amount of styles loading: ".concat(Zt.size);var r=document.querySelector(".wp-dark-mode--fallback");r.textContent||(r.textContent=lr($,{strict:!1}))}},loadingEnd:function(){Zt.delete(e),"Removed loadingStyle ".concat(e,", now awaiting: ").concat(Zt.size),Zt.size===0&&re()&&Lr()}});return Rt.set(t,n),n}function bo(t){var e=Rt.get(t);e&&(e.destroy(),Rt.delete(t))}var Vn,$i=In((function(t){Rt.forEach((function(e){return e.render($,xt)})),Ln.forEach((function(e){return e.render($,xt)})),t&&t()})),yo=function(){$i.cancel()};function wo(){Zt.size!==0||Lr()}function ko(){(function(){yo();var t=Jt(document).filter((function(o){return!Rt.has(o)})).map((function(o){return go(o)}));t.map((function(o){return o.details({secondRound:!1})})).filter((function(o){return o&&o.rules.length>0})).forEach((function(o){nt.addRulesForMatching(o.rules)})),nt.matchVariablesAndDependents(),nt.setOnRootVariableChange((function(){var o=yt("wp-dark-mode--root-vars");nt.putRootVars(o,$)}));var e=yt("wp-dark-mode--root-vars");nt.putRootVars(e,$),Rt.forEach((function(o){return o.render($,xt)})),Zt.size===0&&Lr(),t.forEach((function(o){return o.watch()}));var n=(function(o){for(var i=[],u=0,d=o.length;u<d;u++)i.push(o[u]);return i})(document.querySelectorAll(We));if(fe(document.documentElement,(function(o){Tr(o.shadowRoot);var i=o.shadowRoot.querySelectorAll(We);i.length>0&&jn(n,i)})),n.forEach((function(o){return kr(o,$,Be,xt)})),Eo(document),nt.matchVariablesAndDependents(),qt){var r=Symbol(),a=function(o){var i=o.detail,u=i.node,d=i.id,s=i.cssRules,f=i.entries;Array.isArray(f)?(f.forEach((function(l){var c=l[2];nt.addRulesForMatching(c)})),nt.matchVariablesAndDependents()):s&&(nt.addRulesForMatching(s),$r(r,(function(){return nt.matchVariablesAndDependents()}))),(Array.isArray(f)?f:u&&s?[[u,d,s]]:[]).forEach((function(l){var c=pt(l,3),m=c[0],p=c[1],h=c[2];ho.set(m,p),xo(m).updateCSS(h)}))};document.addEventListener("__wp_dark_mode__adoptedStyleSheetsChange",a),Mr.push((function(){return document.removeEventListener("__wp_dark_mode__adoptedStyleSheetsChange",a)})),document.dispatchEvent(new CustomEvent("__wp_dark_mode__startAdoptedStyleSheetsWatcher"))}})(),Ii(Array.from(Rt.keys()),(function(t){var e=t.created,n=t.updated,r=t.removed,a=t.moved,o=r,i=e.concat(n).concat(a).filter((function(s){return!Rt.has(s)})),u=a.filter((function(s){return Rt.has(s)}));o.forEach((function(s){return bo(s)}));var d=i.map((function(s){return go(s)}));d.map((function(s){return s.details({secondRound:!1})})).filter((function(s){return s&&s.rules.length>0})).forEach((function(s){nt.addRulesForMatching(s.rules)})),nt.matchVariablesAndDependents(),d.forEach((function(s){return s.render($,xt)})),d.forEach((function(s){return s.watch()})),u.forEach((function(s){return Rt.get(s).restore()}))}),(function(t){Tr(t),Eo(t)})),(function(t,e){br(document,t,e),fe(document.documentElement,(function(n){br(n.shadowRoot,t,e)}))})((function(t){if(kr(t,$,Be,xt),t===document.documentElement&&(t.getAttribute("style")||"").includes("--")){nt.matchVariablesAndDependents();var e=yt("wp-dark-mode--root-vars");nt.putRootVars(e,$)}}),(function(t){Tr(t);var e=t.querySelectorAll(We);e.length>0&&Et(e,(function(n){return kr(n,$,Be,xt)}))})),zr(wo)}function So(){Hi(),lo()||$.immediateModify?ko():Ui(ko),(function(t){var e=document.querySelector(Qa);e?Ka(e,t):(Xt&&Xt.disconnect(),(Xt=new MutationObserver((function(n){t:for(var r=0;r<n.length;r++)for(var a=n[r].addedNodes,o=0;o<a.length;o++){var i=a[o];if(i instanceof HTMLMetaElement&&i.name===za){Xt.disconnect(),Xt=null,Ka(i,t);break t}}}))).observe(document.head,{childList:!0}))})($)}function Eo(t){if(qt)xo(t).render($,xt);else if((function(n){return Array.isArray(n.adoptedStyleSheets)})(t)){t.adoptedStyleSheets.forEach((function(n){nt.addRulesForMatching(n.cssRules)}));var e=Wi(t);Ln.push(e),e.render($,xt),e.watch((function(n){n.forEach((function(r){nt.addRulesForMatching(r.cssRules)})),nt.matchVariablesAndDependents(),e.render($,xt)}))}}function xo(t){var e=Mn.get(t);return e||(e=(function(n){var r,a=!1,o=[],i=!0,u=new qi(n);function d(s,f){r=s,i=f,Er().modifySheet({prepareSheet:function(){return u.replaceSync(""),u},sourceCSSRules:o,theme:s,ignoreImageAnalysis:!0,force:!1,isAsyncCancelled:function(){return a}})}return{render:d,destroy:function(){a=!0},updateCSS:function(s){o=s,r&&i&&d(r,i)},commands:function(){var s=u.getDeepCSSCommands();return u.clearDeepCSSCommands(),s}}})((function(){var n=(function(r){if(Ar.has(r))return Ar.get(r);var a=Symbol();return Ar.set(r,a),a})(t);$r(n,(function(){var r,a=ho.get(t),o=(r=e)===null||r===void 0?void 0:r.commands();if(a&&o){var i={id:a,commands:o};document.dispatchEvent(new CustomEvent("__wp_dark_mode__adoptedStyleSheetCommands",{detail:JSON.stringify(i)}))}}))})),Mn.set(t,e)),e}function zi(){Rt.forEach((function(t){return t.pause()})),Et(Ue.values(),(function(t){return t.stop()})),Ue.clear(),uo(),qe.forEach((function(t){return t.disconnect()})),Sn.forEach((function(t){return t.disconnect()})),qe.clear(),Sn.clear(),Qr(wo),rn.clear()}function _o(){if(document.querySelector('meta[name="wp-dark-mode-lock"]'))return!0;var t,e=document.querySelector('meta[name="wp-dark-mode"]');return e?e.content!==fo:((t=document.createElement("meta")).name="wp-dark-mode",t.content=fo,document.head.appendChild(t),(Vn=new MutationObserver((function(){document.querySelector('meta[name="wp-dark-mode-lock"]')&&(Vn.disconnect(),On())}))).observe(document.head,{childList:!0,subtree:!0}),!1)}function Qi(t,e,n){if($=t,(ot=e)?(xt=Array.isArray(ot.ignoreImageAnalysis)?ot.ignoreImageAnalysis:[],Be=Array.isArray(ot.ignoreInlineStyle)?ot.ignoreInlineStyle:[]):(xt=[],Be=[]),$.immediateModify&&(re=function(){return!0}),po=n,document.head){if(_o())return void On();document.documentElement.setAttribute("data-wp-dark-mode-scheme","dark"),So()}else{if(!qt){var r=yt("wp-dark-mode--fallback");document.documentElement.appendChild(r),r.textContent=lr($,{strict:!0})}var a=new MutationObserver((function(){if(document.head){if(a.disconnect(),_o())return void On();So()}}));a.observe(document,{childList:!0,subtree:!0})}}var Mr=[];function On(){document.documentElement.removeAttribute("data-wp-dark-mode-mode"),document.documentElement.removeAttribute("data-wp-dark-mode-scheme"),nt.clear(),Me.clear(),so(),yo(),zi(),_i(),dn.clear(),fn.clear(),bt(document.querySelector(".wp-dark-mode--fallback")),document.head&&((function(){Xt&&(Xt.disconnect(),Xt=null);var t=document.querySelector(Qa);t&&En&&(t.content=En)})(),bt(document.head.querySelector(".wp-dark-mode--user-agent")),bt(document.head.querySelector(".wp-dark-mode--text")),bt(document.head.querySelector(".wp-dark-mode--invert")),bt(document.head.querySelector(".wp-dark-mode--inline")),bt(document.head.querySelector(".wp-dark-mode--override")),bt(document.head.querySelector(".wp-dark-mode--variables")),bt(document.head.querySelector(".wp-dark-mode--root-vars")),bt(document.head.querySelector('meta[name="wp-dark-mode"]')),document.dispatchEvent(new CustomEvent("__wp_dark_mode__cleanUp")),bt(document.head.querySelector(".wp-dark-mode--proxy"))),Rr.forEach((function(t){bt(t.querySelector(".wp-dark-mode--inline")),bt(t.querySelector(".wp-dark-mode--override"))})),Rr.clear(),Et(Rt.keys(),(function(t){return bo(t)})),Zt.clear(),we.clear(),Et(document.querySelectorAll(".wp-dark-mode"),bt),Ln.forEach((function(t){return t.destroy()})),Ln.splice(0),Mn.forEach((function(t){return t.destroy()})),Mn.clear(),Vn&&Vn.disconnect(),Mr.forEach((function(t){return t()})),Mr.splice(0)}function Co(t){if(!(t=(t=Sr(t)).trim()))return[];var e=[],n=Vr(t),r=He(t,"{","}",n),a=0;return r.forEach((function(o){var i,u,d,s=t.substring(a,o.start).trim(),f=t.substring(o.start+1,o.end-1);if(s.startsWith("@")){var l=s.search(/[\s\(]/),c={type:l<0?s:s.substring(0,l),query:l<0?"":s.substring(l).trim(),rules:Co(f)};e.push(c)}else{var m={selectors:(d=s,Zr(d,",",Vr(d))),declarations:(i=f,u=[],Zr(i,";",Vr(i)).forEach((function(p){var h=p.indexOf(":");if(h>0){var v=p.indexOf("!important");u.push({property:p.substring(0,h).trim(),value:p.substring(h+1,v>0?v:p.length).trim(),important:v>0})}})),u)};e.push(m)}a=o.end})),e}function He(t,e,n){for(var r,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],o=[],i=0;r=Jr(t,i,e,n,a);)o.push(r),i=r.end;return o}function Vr(t){var e=t.indexOf("'")<t.indexOf('"'),n=e?"'":'"',r=e?'"':"'",a=He(t,n,n);return a.push.apply(a,kt(He(t,r,r,a))),a.push.apply(a,kt(He(t,"[","]",a))),a.push.apply(a,kt(He(t,"(",")",a))),a}function Ao(t){return"selectors"in t}function Ki(t){return(function(e){var n=[],r="    ";function a(u,d){Ao(u)?i(u,d):o(u,d)}function o(u,d){var s=u.type,f=u.query,l=u.rules;n.push("".concat(d).concat(s," ").concat(f," {")),l.forEach((function(c){return a(c,"".concat(d).concat(r))})),n.push("".concat(d,"}"))}function i(u,d){var s=u.selectors,f=u.declarations,l=s.length-1;s.forEach((function(m,p){n.push("".concat(d).concat(m).concat(p<l?",":" {"))}));var c=(function(m){var p=/^-[a-z]-/;return kt(m).sort((function(h,v){var g,C,A,V,w=h.property,D=v.property,b=(g=(C=w.match(p))===null||C===void 0?void 0:C[0])!==null&&g!==void 0?g:"",k=(A=(V=D.match(p))===null||V===void 0?void 0:V[0])!==null&&A!==void 0?A:"",L=b?w.replace(p,""):w,O=k?D.replace(p,""):D;return L===O?b.localeCompare(k):L.localeCompare(O)}))})(f);c.forEach((function(m){var p=m.property,h=m.value,v=m.important;n.push("".concat(d).concat(r).concat(p,": ").concat(h).concat(v?" !important":"",";"))})),n.push("".concat(d,"}"))}return Ro(e),e.forEach((function(u){return a(u,"")})),n.join(`
`)})(Co(t))}function Ro(t){for(var e=t.length-1;e>=0;e--){var n=t[e];Ao(n)?n.declarations.length===0&&t.splice(e,1):(Ro(n.rules),n.rules.length===0&&t.splice(e,1))}}var To=/url\(\"(blob\:.*?)\"\)/g;function Yi(t){return Lo.apply(this,arguments)}function Lo(){return(Lo=et(j().mark((function t(e){var n,r;return j().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n=[],Le(To,e,1).forEach((function(o){var i=ne(o);n.push(i)})),a.next=4,Promise.all(n);case 4:return r=a.sent,a.abrupt("return",e.replace(To,(function(){return'url("'.concat(r.shift(),'")')})));case 6:case"end":return a.stop()}}),t)})))).apply(this,arguments)}var Xi="";function Ji(){return Mo.apply(this,arguments)}function Mo(){return(Mo=et(j().mark((function t(){var e,n,r,a;return j().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(n=function(i,u){var d=document.querySelector(i);d&&d.textContent&&(e.push("/* ".concat(u," */")),e.push(d.textContent),e.push(""))},e=[Xi],n(".wp-dark-mode--fallback","Fallback Style"),n(".wp-dark-mode--user-agent","User-Agent Style"),n(".wp-dark-mode--text","Text Style"),n(".wp-dark-mode--invert","Invert Style"),n(".wp-dark-mode--variables","Variables Style"),r=[],document.querySelectorAll(".wp-dark-mode--sync").forEach((function(i){Et(i.sheet.cssRules,(function(u){u&&u.cssText&&r.push(u.cssText)}))})),!r.length){o.next=18;break}return a=Ki(r.join(`
`)),e.push("/* Modified CSS */"),o.t0=e,o.next=15,Yi(a);case 15:o.t1=o.sent,o.t0.push.call(o.t0,o.t1),e.push("");case 18:return n(".wp-dark-mode--override","Override Style"),o.abrupt("return",e.join(`
`));case 20:case"end":return o.stop()}}),t)})))).apply(this,arguments)}var Or=!1,Zi=(function(){try{return window.self!==window.top}catch{return!0}})();function Vo(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=tt(tt({},Wo),t);if(r.engine!==X.dynamicTheme)throw new Error("Theme engine is not supported.");if(Qi(r,e,Zi),Or=!0,!n){var a=new CustomEvent("wp-dark-mode:enable",{detail:{theme:r,colors:xe}});document.dispatchEvent(a)}}function Pr(){var t=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(On(),Or=!1,!t){var e=new CustomEvent("wp-dark-mode:disable");document.dispatchEvent(e)}}var Ge=matchMedia("(prefers-color-scheme: dark)"),Dr={themeOptions:null,fixes:null};function $e(){Ge.matches?Vo(Dr.themeOptions,Dr.fixes,window.DarkModeAuto==="auto"):Pr()}function Oo(){return(Oo=et(j().mark((function t(){return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ji();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),t)})))).apply(this,arguments)}var tu=function(t){_=t||y};x.auto=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t?(Dr={themeOptions:t,fixes:arguments.length>1&&arguments[1]!==void 0?arguments[1]:null},$e(),se?Ge.addEventListener("change",$e):Ge.addListener($e)):(se?Ge.removeEventListener("change",$e):Ge.removeListener($e),Pr());var e=new CustomEvent("wp-dark-mode:auto");document.dispatchEvent(e)},x.disable=Pr,x.enable=Vo,x.exportGeneratedCSS=function(){return Oo.apply(this,arguments)},x.isEnabled=function(){return Or},x.setFetchMethod=tu,x.colors=xe,Object.defineProperty(x,"__esModule",{value:!0})},window.DarkModeAuto=Wr,Ot(Vt)==="object"?Dn(Vt):(_t=[Vt],(Ir=typeof(It=Dn)=="function"?It.apply(Vt,_t):It)===void 0||(jt.exports=Ir))}},jr={};(function jt(Vt){var It=jr[Vt];if(It!==void 0)return It.exports;var _t=jr[Vt]={exports:{}};return No[Vt].call(_t.exports,_t,_t.exports,jt),_t.exports})(35)})()})();