User:Polymeric/global.js

window.syntaxHighlighterConfig = { timeout: 150, };

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:LastEdited/code.js',        "u:dev:MediaWiki:NewImages.js",        'u:dev:MediaWiki:CategoryQuickRemove.js',        'u:dev:MediaWiki:ContribsLink/code.js',        'u:dev:MediaWiki:AnalyticsShortcut.js',        'u:dev:MediaWiki:SyntaxHighlight.js',        'u:dev:MediaWiki:ReadProgressBar.js'    ] });

/*! ie11CustomProperties.js v4.1.0 | MIT License | https://git.io/fjXMN */ !function{"use strict";var e=document.createElement("i");if(e.style.setProperty("--x","y"),"y"!==e.style.getPropertyValue("--x")&&e.msMatchesSelector){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector);var t,r=[],n=document,i=!1;document.addEventListener("DOMContentLoaded",function{i=!0}),"classList"in Element.prototype||M("classList",HTMLElement.prototype,Element.prototype),"innerHTML"in Element.prototype||M("innerHTML",HTMLElement.prototype,Element.prototype),"runtimeStyle"in Element.prototype||M("runtimeStyle",HTMLElement.prototype,Element.prototype),"sheet"in SVGStyleElement.prototype||Object.defineProperty(SVGStyleElement.prototype,"sheet",{get:function{for(var e,t=document.styleSheets,r=0;e=t[r++];)if(e.ownerNode===this)return e}});var s={},o=new Set,l=!1,a=!1,c=/([\s{;])(--([A-Za-z0-9-_]*)\s*:([^;!}{]+)(!important)?)(?=\s*([;}]|$))/g,u=/([{;]\s*)([A-Za-z0-9-_]+\s*:[^;}{]*var\([^!;}{]+)(!important)?(?=\s*([;}$]|$))/g,f=/-ieVar-([^:]+):/g,p=/-ie-([^};]+)/g,v=/:(hover|active|focus|target|visited|link|:before|:after|:first-letter|:first-line)/;w("style:not([iecp-ignore])",k),w("link[rel=stylesheet]:not([iecp-ignore])",k),w("[ie-style]",function(e){var t=q("{"+e.getAttribute("ie-style")).substr(1);e.style.cssText+=";"+t;var r=R(e.style);r.getters&&O(e,r.getters,"%styleAttr"),r.setters&&I(e,r.setters)});var y={hover:{on:"mouseenter",off:"mouseleave"},focus:{on:"focusin",off:"focusout"},active:{on:"CSSActivate",off:"CSSDeactivate"}},d=null;document.addEventListener("mousedown",function(e){setTimeout(function{if(e.target===document.activeElement){var t=document.createEvent("Event");t.initEvent("CSSActivate",!0,!0),(d=e.target).dispatchEvent(t)}})}),document.addEventListener("mouseup",function{if(d){var e=document.createEvent("Event");e.initEvent("CSSDeactivate",!0,!0),d.dispatchEvent(e),d=null}});var h=0,m=new MutationObserver(function(e){if(!a)for(var t,r=0;t=e[r++];)"iecp-needed"!==t.attributeName&&Q(t.target)});setTimeout(function{m.observe(document,{attributes:!0,subtree:!0})});var $=location.hash;addEventListener("hashchange",function(e){var t=document.getElementById(location.hash.substr(1));if(t){var r=document.getElementById($.substr(1));Q(t),Q(r)}else Q(document);$=location.hash});var P=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"style"),g=P.get;P.get=function{let e=g.call(this);return e.owningElement=this,e},Object.defineProperty(HTMLElement.prototype,"style",P);var S=getComputedStyle;window.getComputedStyle=function(e){var t=S.apply(this,arguments);return t.computedFor=e,t};var C=CSSStyleDeclaration.prototype,_=C.getPropertyValue;C.getPropertyValue=function(e){if(this.lastPropertyServedBy=!1,"-"!==(e=e.trim)[0]||"-"!==e[1])return _.apply(this,arguments);let t=e.substr(2),r="-ie-"+t,n="-ie-❗"+t,i=(o=this[n]||this[r],o);if(this.computedFor){if(void 0===i||E[i]){if(E[i]||!T[e]||T[e].inherits){let s=this.computedFor.parentNode;for(s&&1===s.nodeType;){var o,l,a=getComputedStyle(s),c=(l=a[n]||a[r],l);if(void 0!==c){i=W(this,c),this.lastPropertyServedBy=s;break}s=s.parentNode}}}else i=W(this,i),this.lastPropertyServedBy=this.computedFor;if("initial"===i)return""}return(void 0===i&&T[e]&&(i=T[e].initialValue),void 0===i)?"":i};var E={inherit:1,revert:1,unset:1},b=C.setProperty;C.setProperty=function(e,t,r){var n;if("-"!==e[0]||"-"!==e[1])return b.apply(this,arguments);let i=this.owningElement;i&&(i.ieCP_setters||(i.ieCP_setters={}),i.ieCP_setters[e]=1),e="-ie-"+("important"===r?"❗":"")+e.substr(2),this.cssText+="; "+e+":"+(n=t,n)+";",i&&Q(i)},window.CSS||(window.CSS={});var T={};CSS.registerProperty=function(e){T[e.name]=e}}function L(e,t){try{return e.querySelectorAll(t)}catch(r){return[]}}function w(e,i){for(var s,o={selector:e,callback:i,elements:new WeakMap},l=L(n,o.selector),a=0;s=l[a++];)o.elements.set(s,!0),o.callback.call(s,s);r.push(o),t||(t=new MutationObserver(B)).observe(n,{childList:!0,subtree:!0}),A(o)}function A(e,t){var r,s=0,o=[];try{t&&t.matches(e.selector)&&o.push(t)}catch(l){}for(i&&Array.prototype.push.apply(o,L(t||n,e.selector));r=o[s++];)!e.elements.has(r)&&(e.elements.set(r,!0),e.callback.call(r,r))}function V(e){for(var t,n=0;t=r[n++];)A(t,e)}function B(e){for(var t,r,n,i,s=0;r=e[s++];)for(n=r.addedNodes,t=0;i=n[t++];)1===i.nodeType&&V(i)}function M(e,t,r){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n)}function k(e){if(!e.ieCP_polyfilled&&!e.ieCP_elementSheet&&e.sheet){if(e.href){var t,r,n;return t=e.href,r=function(t){var r=q(t);t!==r&&F(e,r)},n=new XMLHttpRequest,void(n.open("GET",t),n.overrideMimeType("text/css"),n.onload=function{n.status>=200&&n.status<400&&r(n.responseText)},n.send)}var i=e.innerHTML,s=q(i);i!==s&&F(e,s)}}function q(e){return e.replace(c,function(e,t,r,n,i,s){var o;return t+"-ie-"+(s?"❗":"")+n+":"+(o=i,o)}).replace(u,function(e,t,r,n){return t+"-ieVar-"+(n?"❗":"")+r+"; "+r})}function D(e){return e}function N(e){return e}function R(e){e["z-index"]===e&&x;let t=e.cssText;var r,n,i=t.match(f);if(i){var o=[];for(r=0;n=i[r++];){let l=n.slice(7,-1);"❗"===l[0]&&(l=l.substr(1)),o.push(l),s[l]||(s[l]=[]),s[l].push(e)}}var a=t.match(p);if(a){var c={};for(r=0;n=a[r++];){let u=n.substr(4).split(":"),v=u[0],y=u[1];"❗"===v[0]&&(v=v.substr(1)),c[v]=y}}return{getters:o,setters:c}}function F(e,t){e.sheet.cssText=t,e.ieCP_polyfilled=!0;for(var r,n=e.sheet.rules,i=0;r=n[i++];){let s=R(r.style);s.getters&&H(r.selectorText,s.getters),s.setters&&z(r.selectorText,s.setters);let o=r.parentRule&&r.parentRule.media&&r.parentRule.media.mediaText;o&&(s.getters||s.setters)&&matchMedia(o).addListener(function{Q(document.documentElement)})}Z}function H(e,t){G(e),w(j(e),function(r){O(r,t,e),J(r)})}function O(e,t,r){var n,i,s=0;let o=r.split(",");for(e.setAttribute("iecp-needed",!0),e.ieCPSelectors||(e.ieCPSelectors={});n=t[s++];)for(i=0;r=o[i++];){let l=r.trim.split("::");e.ieCPSelectors[n]||(e.ieCPSelectors[n]=[]),e.ieCPSelectors[n].push({selector:l[0],pseudo:l[1]?"::"+l[1]:""})}}function z(e,t){G(e),w(j(e),function(e){I(e,t)})}function I(e,t){for(var r in e.ieCP_setters||(e.ieCP_setters={}),t)e.ieCP_setters["--"+r]=1;Q(e)}function Z{for(var e in s){let t=s[e];for(var r,n=0;r=t[n++];){if(!r.owningElement){var i=r["-ieVar-"+e];if(i&&""!==(i=W(getComputedStyle(document.documentElement),i)))try{r[e]=i}catch(o){}}}}}function G(e){for(var t in e=e.split(",")[0],y){var r=e.split(":"+t);if(r.length>1){var n=r[1].match(/^[^\s]*/);let i=j(r[0]+n),s=y[t];w(i,function(e){e.addEventListener(s.on,U),e.addEventListener(s.off,U)})}}}function j(e){return e.replace(v,"").replace(":not","")}function J(e){o.add(e),l||(l=!0,requestAnimationFrame(function{l=!1,a=!0,o.forEach(K),o.clear,setTimeout(function{a=!1})}))}function K(e){e.ieCP_unique||(e.ieCP_unique=++h,e.classList.add("iecp-u"+e.ieCP_unique));var t=getComputedStyle(e);let r="";for(var n in e.runtimeStyle.cssText="",e.ieCPSelectors){var i=t["-ieVar-❗"+n];let s=i||t["-ieVar-"+n];if(s){var o={},l=W(t,s,o);i&&(l+=" !important");for(var a,c=0;a=e.ieCPSelectors[n][c++];)"%styleAttr"===a.selector&&(e.style[n]=l),(i||!1===o.allByRoot)&&(a.pseudo?r+=a.selector+".iecp-u"+e.ieCP_unique+a.pseudo+"{"+n+":"+l+"}\n":e.runtimeStyle[n]=l)}}!function e(t,r){if(!t.ieCP_styleEl&&r){let n=document.createElement("style");n.ieCP_elementSheet=1,document.head.appendChild(n),t.ieCP_styleEl=n}t.ieCP_styleEl&&(t.ieCP_styleEl.innerHTML=r)}(e,r)}function Q(e){if(e){e===document.documentElement&&Z;var t=e.querySelectorAll("[iecp-needed]");e.hasAttribute&&e.hasAttribute("iecp-needed")&&J(e);for(var r,n=0;r=t[n++];)J(r)}}function U(e){Q(e.target)}function W(e,t,r){return function e(t,r){let n=0,i=null,s=0,o="",l=0,a,c;for(a=t[l++];){if("("===a&&(++n,null===i&&t[l-4]+t[l-3]+t[l-2]==="var"&&(i=n,o+=t.substring(s,l-4),s=l),t[l-5]+t[l-4]+t[l-3]+t[l-2]==="calc"&&(c=n)),")"===a&&i===n){let u=t.substring(s,l-1).trim,f,p=u.indexOf(",");-1!==p&&(f=u.slice(p+1),u=u.slice(0,p)),o+=r(u,f,c),s=l,i=null}")"===a&&c===--n&&(c=null)}return o+t.substring(s)}(t,function(t,n,i){var s=e.getPropertyValue(t);return i&&(s=s.replace(/^calc\(/,"(")),r&&e.lastPropertyServedBy!==document.documentElement&&(r.allByRoot=!1),""===s&&n&&(s=W(e,n,r)),s})}};