mw.loader.impl(function(){return["ext.centralauth.ForeignApi@1c3jg",function($,jQuery,require,module){(function(){var hasOwnProperty=Object.prototype.hasOwnProperty,csrfTokenOldTypes=['csrf','edit','delete','protect','move','block','unblock','email','import','options'];function CentralAuthForeignApi(url,options){CentralAuthForeignApi.parent.call(this,url,options);this.localApi=new mw.Api();this.noTokenNeeded=false;this.foreignLoginPromise=null;this.csrfToken=null;this.csrfTokenBad=false;if(mw.config.get('wgUserName')===null||(options&&options.anonymous)){this.noTokenNeeded=true;}else{this.foreignLoginPromise=this.checkForeignLogin();}}OO.inheritClass(CentralAuthForeignApi,mw.ForeignApi);CentralAuthForeignApi.prototype.getCentralAuthToken=function(){var abortable=this.localApi.get({action:'centralauthtoken'});return abortable.then(function(resp){if(resp.error){return $.Deferred().reject(resp.error);}else{return resp.centralauthtoken.centralauthtoken;}}).promise({abort:function(){if(abortable&&abortable.abort){abortable.abort();}}});};CentralAuthForeignApi.prototype.checkForeignLogin= function(){var foreignApi=this;if(this.foreignLoginPromise){return this.foreignLoginPromise;}return CentralAuthForeignApi.parent.prototype.ajax.call(this,{action:'query',meta:'userinfo|tokens'},{type:'GET'}).then(function(resp){var userinfo=resp.query.userinfo;if(userinfo.anon===undefined&&userinfo.name===mw.config.get('wgUserName')){foreignApi.noTokenNeeded=true;foreignApi.csrfToken=resp.query.tokens.csrftoken;return true;}return $.Deferred().reject();});};CentralAuthForeignApi.prototype.getToken=function(type,assert){var foreignApi=this,parent=CentralAuthForeignApi.parent.prototype.getToken,abortedPromise=$.Deferred().reject('http',{textStatus:'abort',exception:'abort'}).promise(),abortable,aborted;if(this.foreignLoginPromise&&csrfTokenOldTypes.indexOf(type)!==-1){return this.foreignLoginPromise.then(function(){if(aborted){return abortedPromise;}if(foreignApi.csrfToken&&!foreignApi.csrfTokenBad){return foreignApi.csrfToken;}return(abortable=parent.call(foreignApi,type,assert));}, function(){if(aborted){return abortedPromise;}return(abortable=parent.call(foreignApi,type,assert));}).promise({abort:function(){aborted=true;if(abortable&&abortable.abort){abortable.abort();}}});}return parent.call(this,type,assert);};CentralAuthForeignApi.prototype.badToken=function(type){this.csrfTokenBad=true;return CentralAuthForeignApi.parent.prototype.badToken.call(this,type);};CentralAuthForeignApi.prototype.ajax=function(parameters,ajaxOptions){var tokenPromise,foreignApi=this,parent=CentralAuthForeignApi.parent.prototype.ajax,abortedPromise=$.Deferred().reject('http',{textStatus:'abort',exception:'abort'}).promise(),abortable,aborted;if(this.noTokenNeeded||hasOwnProperty.call(parameters,'centralauthtoken')){tokenPromise=$.Deferred().reject();}else if(this.foreignLoginPromise){tokenPromise=this.foreignLoginPromise.then(function(){return $.Deferred().reject();},function(){return(abortable=foreignApi.getCentralAuthToken());});}else{tokenPromise=abortable=this.getCentralAuthToken ();}return tokenPromise.then(function(centralAuthToken){var url,newParameters,newAjaxOptions;if(aborted){return abortedPromise;}newParameters=$.extend({centralauthtoken:centralAuthToken},parameters);if(ajaxOptions.type!=='GET'){url=(ajaxOptions&&ajaxOptions.url)||foreignApi.defaults.ajax.url;url+=(url.indexOf('?')!==-1?'&':'?')+'centralauthtoken='+encodeURIComponent(centralAuthToken);newAjaxOptions=$.extend({},ajaxOptions,{url:url});}else{newAjaxOptions=ajaxOptions;}return(abortable=parent.call(foreignApi,newParameters,newAjaxOptions));},function(){if(aborted){return abortedPromise;}return(abortable=parent.call(foreignApi,parameters,ajaxOptions));}).promise({abort:function(){aborted=true;if(abortable&&abortable.abort){abortable.abort();}}});};mw.ForeignApi=CentralAuthForeignApi;}()); (function(){function CentralAuthForeignRest(url,foreignActionApi,options){CentralAuthForeignRest.parent.call(this,url,foreignActionApi,options);if(mw.config.get('wgUserName')===null||(options&&options.anonymous)){this.noTokenNeeded=true;}else{this.foreignLoginPromise=this.foreignActionApi.checkForeignLogin();}}OO.inheritClass(CentralAuthForeignRest,mw.ForeignRest);CentralAuthForeignRest.prototype.abort=function(){this.foreignActionApi.abort();CentralAuthForeignRest.parent.prototype.abort.call(this);};CentralAuthForeignRest.prototype.ajax=function(path,ajaxOptions){var tokenPromise,self=this,parent=CentralAuthForeignRest.parent.prototype.ajax,abortedPromise=$.Deferred().reject('http',{textStatus:'abort',exception:'abort'}).promise(),abortable,aborted;if(this.noTokenNeeded){tokenPromise=$.Deferred().reject();}else if(this.foreignLoginPromise){tokenPromise=this.foreignLoginPromise.then(function(){return $.Deferred().reject();},function(){return(abortable=self.foreignActionApi. getCentralAuthToken());});}else{tokenPromise=abortable=self.foreignActionApi.getCentralAuthToken();}return tokenPromise.then(function(centralAuthToken){var newAjaxOptions;if(aborted){return abortedPromise;}newAjaxOptions=$.extend({},ajaxOptions);newAjaxOptions.headers=$.extend({},newAjaxOptions.headers,{Authorization:'CentralAuthToken '+centralAuthToken});return(abortable=parent.call(self,path,newAjaxOptions));},function(){if(aborted){return abortedPromise;}return(abortable=parent.call(self,path,ajaxOptions));}).promise({abort:function(){aborted=true;if(abortable&&abortable.abort){abortable.abort();}}});};mw.ForeignRest=CentralAuthForeignRest;}()); }];}); mw.loader.impl(function(){return["ext.math.popup@j0yg3",{"main":"ext.math.popup.js","files":{"ext.math.popup.js":function(require,module,exports){(function(){'use strict';var previewType='math';var api=new mw.Rest();var isValidId=function(qid){return qid.match(/Q\d+/g)===null;};var fetch=function(qid){return api.get('/math/v0/popup/html/'+qid,{},{Accept:'application/json; charset=utf-8','Accept-Language':mw.config.language});};var fetchPreviewForTitle=function(title,el){var deferred=$.Deferred();var qidstr=el.parentNode.parentNode.dataset.qid;if(isValidId(qidstr)){return deferred.reject();}qidstr=qidstr.slice(1);fetch(qidstr).then(function(body){var model={title:body.title,url:body.canonicalurl,languageCode:body.pagelanguagehtmlcode,languageDirection:body.pagelanguagedir,extract:body.extract,type:previewType,thumbnail:undefined,pageId:body.pageId};deferred.resolve(model);});return deferred.promise();};[].forEach.call(document.querySelectorAll('.mwe-math-element[data-qid] img'),function(node){if(isValidId(node.parentNode.parentNode.dataset.qid)){node.dataset.title='math-unique-identifier';}});const mathDisabledByUser=mw.user. isNamed()&&mw.user.options.get('math-popups')!=='1';const selector='.mwe-math-element[data-qid] img';const mathAppliesToThisPage=document.querySelectorAll(selector).length>0;module.exports=!mathAppliesToThisPage||mathDisabledByUser?null:{type:previewType,selector,gateway:{fetch,fetchPreviewForTitle}};}()); }}},{},{"popups-settings-option-math":"Math","popups-settings-option-math-description":"Explain mathematical formulae."}];}); mw.loader.impl(function(){return["ext.popups.images@k9v66",null,{"css":[".popups-icon--preview-generic{background-image:url(\"data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E %3Ctitle%3E sad face %3C/title%3E %3Cpath d=%22M2 0a2 2 0 0 0-2 2v18l4-4h14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zm4 4c1.336 0 2.007 1.617 1.06 2.56-.943.947-2.56.276-2.56-1.06A1.5 1.5 0 0 1 6 4m8 0c1.336 0 2.007 1.617 1.06 2.56-.943.947-2.56.276-2.56-1.06A1.5 1.5 0 0 1 14 4m-4 5c2.61 0 4.83.67 5.65 3H4.35C5.17 9.67 7.39 9 10 9%22/%3E %3C/svg%3E\")}.popups-icon--footer{background-image:url(\"data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 xmlns:xlink=%22http://www.w3.org/1999/xlink%22 width=%22230%22 height=%22179%22 viewBox=%220 0 230 179%22%3E %3Cdefs%3E %3Crect id=%22a%22 width=%22201%22 height=%2213%22 rx=%222%22/%3E %3Crect id=%22b%22 width=%22201%22 height=%22169%22 y=%2210%22 rx=%222%22/%3E %3Crect id=%22c%22 width=%2230%22 height=%222%22 x=%22135%22 y=%22158%22 rx=%221%22/%3E %3C/defs%3E %3Cg fill=%22none%22 fill-rule=%22evenodd%22%3E %3Cg transform=%22matrix%281 0 0 -1 0 13%29%22%3E %3Cuse xlink:href=%22%23a%22 fill=%22%23f8f9fa%22/%3E %3Crect width=%22199%22 height=%2211%22 x=%221%22 y=%221%22 stroke=%22%23a2a9b1%22 stroke-width=%222%22 rx=%222%22/%3E %3C/g%3E %3Cuse xlink:href=%22%23b%22 fill=%22%23fff%22/%3E %3Crect width=%22199%22 height=%22167%22 x=%221%22 y=%2211%22 stroke=%22%23a2a9b1%22 stroke-width=%222%22 rx=%222%22/%3E %3Cg fill=%22%2372777d%22 opacity=%22.4%22 transform=%22translate%2867 35%29%22%3E %3Crect width=%2273%22 height=%222%22 y=%227%22 fill=%22%23c8ccd1%22 rx=%221%22/%3E %3Crect width=%2281%22 height=%222%22 y=%2231%22 rx=%221%22/%3E %3Crect width=%2232%22 height=%222%22 y=%2285%22 rx=%221%22/%3E %3Crect width=%2273%22 height=%222%22 x=%2235%22 y=%2285%22 rx=%221%22/%3E %3Crect width=%2217%22 height=%222%22 y=%2245%22 rx=%221%22/%3E %3Crect width=%2217%22 height=%222%22 x=%2291%22 y=%2245%22 rx=%221%22/%3E %3Crect width=%2268%22 height=%222%22 x=%2220%22 y=%2245%22 rx=%221%22/%3E %3Crect width=%2217%22 height=%222%22 y=%2278%22 rx=%221%22/%3E %3Crect width=%2237%22 height=%222%22 x=%2272%22 y=%2278%22 rx=%221%22/%3E %3Crect width=%2249%22 height=%222%22 x=%2220%22 y=%2278%22 rx=%221%22/%3E %3Crect width=%2224%22 height=%222%22 x=%2284%22 y=%2231%22 rx=%221%22 transform=%22matrix%28-1 0 0 1 192 0%29%22/%3E %3Crect width=%2281%22 height=%222%22 y=%2266%22 rx=%221%22/%3E %3Crect width=%2214%22 height=%222%22 x=%2254%22 y=%2224%22 rx=%221%22/%3E %3Crect width=%2237%22 height=%222%22 x=%2271%22 y=%2224%22 rx=%221%22/%3E %3Crect width=%2251%22 height=%222%22 y=%2224%22 rx=%221%22/%3E %3Crect width=%22108%22 height=%222%22 y=%2259%22 rx=%221%22/%3E %3Crect width=%22108%22 height=%222%22 y=%2252%22 rx=%221%22/%3E %3Crect width=%22108%22 height=%222%22 y=%2292%22 rx=%221%22/%3E %3Crect width=%22108%22 height=%222%22 y=%2238%22 rx=%221%22/%3E %3Crect width=%2251%22 height=%222%22 rx=%221%22/%3E %3C/g%3E %3Crect width=%2230%22 height=%222%22 x=%2267%22 y=%22158%22 fill=%22%2372777d%22 opacity=%22.4%22 rx=%221%22/%3E %3Crect width=%2230%22 height=%222%22 x=%2299%22 y=%22158%22 fill=%22%2372777d%22 opacity=%22.4%22 rx=%221%22/%3E %3Cuse xlink:href=%22%23c%22 fill=%22%2336c%22/%3E %3Crect width=%2233%22 height=%225%22 x=%22133.5%22 y=%22156.5%22 stroke=%22%23ffc057%22 stroke-opacity=%22.447%22 stroke-width=%223%22 rx=%222.5%22/%3E %3Ccircle cx=%2234%22 cy=%2249%22 r=%2219%22 fill=%22%23eaecf0%22/%3E %3Cg fill=%22%23a2a9b1%22 transform=%22translate%285 5%29%22%3E %3Ccircle cx=%221.5%22 cy=%221.5%22 r=%221.5%22/%3E %3Ccircle cx=%226%22 cy=%221.5%22 r=%221.5%22/%3E %3Ccircle cx=%2210.5%22 cy=%221.5%22 r=%221.5%22/%3E %3C/g%3E %3Cpath stroke=%22%23ff00af%22 stroke-linecap=%22square%22 d=%22M174.5 159.5h54.01%22/%3E %3C/g%3E %3C/svg%3E\")}"]}];}); mw.loader.impl(function(){return["ext.popups.main@2rtec",function($,jQuery,require,module){(()=>{var e={"./src/canSaveToUserPreferences.js":e=>{e.exports=function(e){return!e.isAnon()&&e.isNamed()}},"./node_modules/redux-thunk/dist/redux-thunk.min.js":function(e){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t){"use strict";function n(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}t.__esModule=!0;var r=n();r.withExtraArgument=n,t.default=r}])},"./node_modules/redux/dist/redux.min.js":function(e,t,n){e=n.nmd(e),function(t){"use strict";var r=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:e),o=function(){return Math. random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function a(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+n+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function s(e,t){return function(){return t(e.apply(this,arguments))}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}t.createStore=function e(t,n,o){var a;if("function"==typeof n&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function");if("function"==typeof n&&void 0===o&&(o=n,n=void 0),void 0!==o){if("function"!=typeof o)throw Error("Expected the enhancer to be a function.");return o(e)(t,n)}if("function"!=typeof t)throw Error("Expected the reducer to be a function.");var s=t,u=n,c=[],p=c,l=!1;function d(){p===c&&(p=c.slice())}function f(){if(l)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return u}function h(e){if("function"!=typeof e)throw Error("Expected the listener to be a function.");if(l)throw Error( "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return d(),p.push(e),function(){if(t){if(l)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,d();var n=p.indexOf(e);p.splice(n,1)}}}function m(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(l)throw Error( "Reducers may not dispatch actions.");try{l=!0,u=s(u,e)}finally{l=!1}for(var t=c=p,n=0;t.length>n;n++)(0,t[n])();return e}return m({type:i.INIT}),(a={dispatch:m,subscribe:h,getState:f,replaceReducer:function(e){if("function"!=typeof e)throw Error("Expected the nextReducer to be a function.");s=e,m({type:i.REPLACE})}})[r]=function(){var e,t=h;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(f())}return n(),{unsubscribe:t(n)}}})[r]=function(){return this},e},a},t.combineReducers=function(e){for(var t=Object.keys(e),n={},r=0;t.length>r;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var s,u=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:i.INIT}))throw Error('Reducer "'+t+ "\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:i.PROBE_UNKNOWN_ACTION()}))throw Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+i.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){s=e}return function(e,t){if(void 0===e&&(e={}),s)throw s;for(var r=!1,o={},i=0;u.length>i;i++){var c=u[i],p=e[c],l=(0,n[c])(p,t);if(void 0===l){var d=a(c,t);throw Error(d)}o[c]=l,r=r||l!==p}return r?o:e}},t.bindActionCreators=function(e,t){if( "function"==typeof e)return s(e,t);if("object"!=typeof e||null===e)throw Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),r={},o=0;n.length>o;o++){var i=n[o],a=e[i];"function"==typeof a&&(r[i]=s(a,t))}return r},t.applyMiddleware=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return function(e){for(var t=1;arguments.length>t;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object. getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){u(e,t,n[t])}))}return e}({},n,{dispatch:r=c.apply(void 0,i)(n.dispatch)})}}},t.compose=c,t.__DO_NOT_USE__ActionTypes=i,Object.defineProperty(t,"__esModule",{value:!0})}(t)},"./src/ui/pointer-mask.svg":e=>{e.exports=''}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=e=>{var t=e&&e.__esModule ?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e={};n.r(e),n.d(e,{abandon:()=>Pe,boot:()=>Se,fetch:()=>Ie,hideSettings:()=>Ce,linkClick:()=>Ae,linkDwell:()=>_e,pageviewLogged:()=>Le,previewDwell:()=>ke,previewShow:()=>Oe,registerSetting:()=>xe,saveSettings:()=>Re,showSettings:()=>Ne,statsvLogged:()=>De});var t=n("./node_modules/redux/dist/redux.min.js"),r=n("./node_modules/redux-thunk/dist/redux-thunk.min.js"),o=n.n(r),i=function(){var e= arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.devicePixelRatio;return e?e>1.5?2:e>1?1.5:1:1}(),a=150,s=350+a,u=1e3,c=300;const p={BRACKETED_DEVICE_PIXEL_RATIO:i,THUMBNAIL_SIZE:320*Math.max(i,1.5),EXTRACT_LENGTH:525};function l(e){return new Promise((function(t){setTimeout((function(){t()}),e)}))}var d=n("./src/ui/pointer-mask.svg"),f=n.n(d),h={portraitImage:{h:250,w:203},landscapeImage:{h:200,w:320}};var m=function(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))};function w(e){return mw.html.escape(e)}var g={};function v(e){if(!g[e]){var t=document.createElement("div");t.innerHTML=e,g[e]=t.firstElementChild}return g[e].cloneNode(!0)}var y='\n\t
\n';function E(e,t){var n=v(y);return n.className="mwe-popups mwe-popups-type-".concat(e),t.className="mwe-popups-container",n.appendChild(t),n}var b= '\n\t
\n\t\t\n \t\t
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\t\t\n\t
\n';function T(e,t,n){var r=E(e.type,v(b));r.querySelector(".popups-icon").classList.add("popups-icon--preview-".concat(e.type)),r.querySelector(".mwe-popups-extract").setAttribute("href",e.url);var o=r.querySelector(".mwe-popups-message");t?o.innerHTML=w(t):o.remove();var i=r.querySelector(".mwe-popups-read-link");return i.innerHTML=w(n),i.setAttribute("href",e.url),r.querySelector(".mwe-popups-title").innerHTML+=w(e.title),r}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n \n \n \n\n\t';function P(e,t,n,r){var o=E(e.type,v(_)),i=o.querySelector(".mwe-popups-discreet"),a=o.querySelector(".mwe-popups-extract");a.setAttribute("href",e.url),i.setAttribute("href",e.url),a.setAttribute("dir",e.languageDirection),a.setAttribute("lang",e.languageCode),o.querySelector(".mwe-popups-settings-button").setAttribute("title" ,r);var s,u=w(mw.msg("popups-settings-icon-gear-title"));if(o.querySelector(".mwe-popups-settings-button-label").textContent=u,t?o.querySelector(".mwe-popups-discreet").appendChild(t.el):i.remove(),e.extract){"string"==typeof e.extract?a.innerHTML=e.extract:a.append.apply(a,function(e){if(Array.isArray(e))return S(e)}(s=e.extract)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||x(s)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var c=function(e){return e&&e.isNarrow?"".concat(I+e.offset,"px"):""}(t);n||(a.style.width=c,o.querySelector("footer").style.width=c)}return o}var A={},k={};function O(e,t,n){A[e]=t||N,k[e]={requireSummary:!n}}function L(){return window.CSS&&"function"==typeof CSS.supports&&CSS.supports("clip-path","polygon(1px 1px)")}function N(e){var t=function(e,t){var n=p. BRACKETED_DEVICE_PIXEL_RATIO;if(!e)return null;var r=e.width/n,o=e.height/n,i=e.height>e.width||r-1||e.source.indexOf("'")>-1||e.source.indexOf('"')>-1)return null;var a,s,u,c,l=r/o,d=l>.7&&l<1.3;i?(a=r>h.portraitImage.w?(r-h.portraitImage.w)/-2:h.portraitImage.w-r,s=o>h.portraitImage.h?(o-h.portraitImage.h)/-2:0,u=h.portraitImage.w,c=h.portraitImage.h,rh.landscapeImage.h?(o-h.landscapeImage.h)/-2:0,u=h.landscapeImage.w,c=o>h.landscapeImage.h?h.landscapeImage.h:o);var f,w,g=i&&ri)&&(o=i,r=n?Math.floor(t.top): Math.ceil(t.bottom))})),r}var H=[],G={TYPE_GENERIC:"generic",TYPE_PAGE:"page",TYPE_DISAMBIGUATION:"disambiguation"};function j(e,t,n,r,o,i,a,s){var u=function(e){if(null!=e&&0!==e.length)return e}(o),c=function(e,t){if(void 0===t&&function(e){return(k[e]||{requireSummary:!0}).requireSummary}(e))return G.TYPE_GENERIC;switch(e){case G.TYPE_GENERIC:case G.TYPE_DISAMBIGUATION:case G.TYPE_PAGE:return e;default:return G.TYPE_PAGE}}(i,u);return{title:e,url:t,languageCode:n,languageDirection:r,extract:u,type:c,thumbnail:a,pageId:s}}function F(e,t){return j(e,t,"","",[],"")}var M=[];function q(e){var t=M.filter((function(t){return n=e,r=t.selector,n.matches(r);var n,r}));return t.length>0?t[t.length-1].name:null}var W={};function Y(e){return W[e]||0}function V(e,t,n){H.push(t),M.push({name:e,selector:t}),n&&function(e,t){W[e]=t}(e,n)}function U(e,t){var n=e;return void 0===e||0===n.length?[]:(n=function(e,t){var n=[],r=""),o="");t=t. replace(/\s+/g," ").trim();var i=mw.util.escapeRegExp(t),a=new RegExp("(^|\\s)(".concat(i,")(|$)"),"i");return(e=(e=(e=e.replace(/\s+/," ")).replace(a,"$1".concat(o).concat(r,"$2").concat(o,"$3"))).split(o)).forEach((function(e){if(0===e.indexOf(r)){var t=document.createElement("b");t.textContent=e.slice(r.length),n.push(t)}else n.push(document.createTextNode(e))})),n}(n,t),n)}function B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return e.promise?e.promise({abort:t}):(e.abort=t,e)}var X={};function K(e,t){X[e]=t}function z(e){if(e.query&&e.query.pages&&e.query.pages.length)return e.query.pages[0];throw new Error("API response `query.pages` is empty.")}function $(e){var t=Object.assign({},e);return t.extract=U(e.extract,e.title),t}function Z(e){return j(e.title,e.canonicalurl,e.pagelanguagehtmlcode,e.pagelanguagedir,e.extract,e.type,e.thumbnail,e.pageid)}var J="https://www.mediawiki.org/wiki/Specs/Summary/1.2.0";function Q(e,t,n){function r(n){var r=t. endpoint;return e({url:r+encodeURIComponent(n),headers:{Accept:'application/json; charset=utf-8; profile="'.concat(J,'"'),"Accept-Language":t.acceptLanguage}})}return{fetch:r,convertPageToModel:ee,fetchPreviewForTitle:function(e){var o=e.getPrefixedDb(),i=r(o);return B(i.then((function(e){return(e=e||{}).title=e.title||o,e.extract=e.extract||"",ee(e,t.THUMBNAIL_SIZE,n)})).catch((function(e,t,n){return Promise.reject("http",{xhr:e,textStatus:t,exception:n})})),(function(){return i.abort()}))}}}function ee(e,t,n){return j(e.title,new mw.Title(e.title).getUrl(),e.lang,e.dir,n(e),e.type,e.thumbnail?function(e,t,n){var r=e.source.split("/"),o=r[r.length-1],i=function(e){return new RegExp(/\.(jpg|jpeg|png|gif)$/i).test(e)}(t.source)||void 0,a=o.indexOf("px-");if(-1===a)return i&&t;var s,u,c=o.slice(a+3);return e.width>e.height?(s=n,u=Math.floor(n/e.width*e.height)):(s=Math.floor(n/e.height*e.width),u=n),s>=t.width&&-1===c.indexOf(".svg")?i&&t:(r[r.length-1]="".concat(s,"px-").concat(c),{ source:r.join("/"),width:s,height:u})}(e.thumbnail,e.originalimage,t):void 0,e.pageid)}function te(e){var t=e.extract_html,n=document.createElement("div");return n.innerHTML=t,0===t.length?[]:n.childNodes}function ne(e){return U(e.extract,e.title)}function re(e){var t=new AbortController,n=t.signal;return B(fetch(e.url,{headers:e.headers,signal:n}).then((function(e){return e.json()})),(function(){t.abort()}))}var oe="reference",ie="mwe-popups-enabled",ae="mwe-popups-referencePreviews-enabled",se=n("./src/canSaveToUserPreferences.js");var ue=function(e,t){var n=function(e){var t=Object.keys(e).map((function(t){return{id:t,name:mw.msg("popups-settings-option-".concat(t)),description:mw.msg("popups-settings-option-".concat(t,"-description")),isChecked:e[t]}}));return function(e){var t=w(e.heading),n=w(e.saveLabel),r=w(e.closeLabel),o=w(e.helpText),i=w(e.okLabel),a=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((function(e){var t=e.id,n=e.name,r=e. description,o=e.isChecked;return{id:w(t),name:w(n),description:r?w(r):"",isChecked:o}}))}(e.choices),s=document.createElement("div");return s.innerHTML="\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t

").concat(t,"

\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t").concat(a.map((function(e){var t=e.id,n=e.name,r=e.description,o=e.isChecked;return'\n\t\t\t\t\t

\n\t\t\t\t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t\t\n\t\t\t\t\t

")})).join(""),"\n\t\t\t\t
\n\t\t\t
\n\t\t\t\n\t\t
\n\t").trim(),s.querySelector("section")}({heading:mw.msg("popups-settings-title"),closeLabel:mw.msg("popups-settings-cancel"),saveLabel:mw.msg("popups-settings-save"),helpText:mw.msg("popups-settings-help"),okLabel:mw.msg("popups-settings-help-ok"),choices:t})}(t);return n.querySelector(".save"). addEventListener("click",(function(){e.saveSettings(Array.from(n.querySelectorAll("input")).reduce((function(e,t){return e[t.value]=t.matches(":checked"),e}),{}))})),n.querySelector(".okay").addEventListener("click",e.hideSettings),n.querySelector(".close").addEventListener("click",e.hideSettings),n};function ce(e){Array.prototype.forEach.call(e,(function(e){e.style.display="none"}))}function pe(e){Array.prototype.forEach.call(e,(function(e){e.style.display=""}))}function le(e,t){var n;e.subscribe((function(){var r=e.getState();n!==r&&(t(n,r),n=r)}))}var de=n("./src/canSaveToUserPreferences.js");function fe(e,t){return t.split(".").reduce((function(e,t){return e&&e[t]}),e)}const he=function(e){var t;return function(n,r){void 0===t&&(t=function(){var e=document.createElement("li"),t=document.createElement("a");t.href="#",t.textContent=mw.message("popups-settings-enable").text(),e.appendChild(t),e.style.display="none";var n=document.querySelector("#footer-places, #f-list");if(!n){var r= document.querySelector("#footer li");r&&(n=r.parentNode)}return n&&n.appendChild(e),e}()).addEventListener("click",(function(t){t.preventDefault(),e.showSettings()})),r.settings.shouldShowFooterLink?t.style.display="":t.style.display="none"}},me=function(){var e;return function(t,n){var r,o=t&&t.preview.activeLink;o!==n.preview.activeLink&&((r=o)&&e&&(r.setAttribute("title",e),e=void 0),n.preview.enabled[n.preview.previewType]&&function(t){t&&!e&&(e=t.getAttribute("title"),t.setAttribute("title",""))}(n.preview.activeLink))}},we=function(e,t){return function(n,r){var o,i;r.pageviews&&r.pageviews.pageview&&r.pageviews.page&&(o=r.pageviews.page,i=r.pageviews.pageview,t("event.VirtualPageView",{source_page_id:o.id,source_namespace:o.namespaceId,source_title:mw.Title.newFromText(o.title).getPrefixedDb(),source_url:o.url,page_id:i.page_id,page_namespace:i.page_namespace,page_title:mw.Title.newFromText(i.page_title).getPrefixedDb()}),e.pageviewLogged())}},ge=function(e){var t;return function (n,r){r.preview.shouldShow&&!t?(t=function(e){var t=function(e){return(A[e.type]||C)(e)}(e);return{show:function(e,n,r){return function(e,t,n,r,o,i,a){var s=function(e,t,n,r){var o,i=!1,a=!1,s=t.pageY?D(t.pageY-t.scrollTop,t.clientRects,!1)+t.scrollTop+8:t.offset.top+t.height+8,u=t.clientY?t.clientY:s;return(o=t.pageX?t.width>28?t.pageX:t.offset.left+t.width/2:t.offset.left)>t.windowWidth/2&&(o+=t.pageX?0:t.width,o-=e?450:320,i=!0),t.pageX&&(o+=i?18:-18),u>t.windowHeight/2&&(a=!0,s=t.offset.top,t.pageY&&(s=D(t.pageY-t.scrollTop,t.clientRects,!0)+t.scrollTop),s-=8),{offset:{top:s,left:o},flippedX:"rtl"===r?!i:i,flippedY:a,dir:r}}(e.isTall,t,0,a);return i.appendChild(e.el),function(e,t,n,r,o,i){var a=e.el,s=e.isTall,u=e.hasThumbnail,c=e.thumbnail,p=t.flippedY;!p&&!s&&u&&c.height-1;i&&i===e&&o&&a&&t({type:be.PREVIEW_SEEN,title:o.title,pageId:o.pageId,namespace:0})}))}}function Le(){return{type:be.PAGEVIEW_LOGGED}}function Ne(){return{type:be.SETTINGS_SHOW}}function Ce(){return{type:be.SETTINGS_HIDE}}function Re(e){return function(t,n){t({type:be.SETTINGS_CHANGE,oldValue:n().preview.enabled,newValue:e})}}function De(){return{type:be.STATSV_LOGGED}}function He(e,t){var n,r=Object.prototype.hasOwnProperty,o={};for(var i in e)r.call(e,i)&&!r.call(t,i)&&(o[i]=e[i]);for(var a in t)if(r.call(t,a))if((n=t[a])&&n.constructor===Object){var s=e[a]?He({},e[a]):{};o[a]=He(s,t[a])}else o[a]=t[a ];return o}function Ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const je={pageviews:function(e,t){switch(void 0===e&&(e={pageview:void 0}),t.type){case be.BOOT:return He(e,{page:t.page});case be.PAGEVIEW_LOGGED:return He(e,{pageview:void 0});case be.PREVIEW_SEEN:return He(e,{pageview:{page_title:t.title,page_id:t.pageId,page_namespace:t.namespace}});default:return e}},preview:function(e,t){switch(void 0===e&&(e={enabled:{},activeLink:void 0,previewType:void 0,measures:void 0,activeToken:"",shouldShow:!1,isUserDwelling:!1,wasClicked:!1}),t.type){case be.BOOT:return He(e,{enabled:t.initiallyEnabled});case be.REGISTER_SETTING:return He(e,{enabled:Object.assign({},e.enabled,Ge({},t.name,t.enabled))});case be.SETTINGS_CHANGE:return He(e,{enabled:t.newValue});case be.LINK_DWELL:return t.el!==e.activeLink?He(e,{activeLink:t.el,previewType:t.previewType,measures:t.measures,activeToken:t.token,shouldShow:!1,isUserDwelling:!0, promise:t.promise}):He(e,{isUserDwelling:!0});case be.FETCH_ABORTED:case be.ABANDON_END:return t.token!==e.activeToken||e.isUserDwelling?e:He(e,{activeLink:void 0,previewType:void 0,activeToken:void 0,measures:void 0,fetchResponse:void 0,shouldShow:!1});case be.PREVIEW_DWELL:return He(e,{isUserDwelling:!0});case be.ABANDON_START:return He(e,{isUserDwelling:!1,wasClicked:!1});case be.FETCH_START:return He(e,{fetchResponse:void 0,promise:t.promise});case be.FETCH_COMPLETE:if(t.token===e.activeToken)return He(e,{fetchResponse:t.result,shouldShow:e.isUserDwelling});default:return e}},settings:function(e,t){switch(void 0===e&&(e={shouldShow:!1,previewTypesEnabled:{},showHelp:!1,shouldShowFooterLink:!1}),t.type){case be.SETTINGS_SHOW:return He(e,{shouldShow:!0,showHelp:!1});case be.SETTINGS_HIDE:return He(e,{shouldShow:!1,showHelp:!1});case be.SETTINGS_CHANGE:var n=Object.keys(t.newValue),r=n.every((function(e){return t.oldValue[e]===t.newValue[e]})),o=n.some((function(e){return t.oldValue[e ]&&!t.newValue[e]})),i=n.some((function(e){return!1===t.newValue[e]}));return He(e,r?{shouldShow:!1}:{shouldShow:o,showHelp:o,shouldShowFooterLink:i});case be.REGISTER_SETTING:return He(e,{previewTypesEnabled:Object.assign({},e.previewTypesEnabled,Ge({},t.name,t.enabled)),shouldShowFooterLink:e.shouldShowFooterLink||!t.enabled});case be.BOOT:var a=Object.keys(t.initiallyEnabled).some((function(e){return!1===t.initiallyEnabled[e]}));return He(e,{previewTypesEnabled:Object.assign({},t.initiallyEnabled),shouldShowFooterLink:t.user.isAnon&&a});default:return e}},statsv:function(e,t){switch(e=e||{},t.type){case be.FETCH_START:return He(e,{fetchStartedAt:t.timestamp});case be.FETCH_END:return He(e,{action:"timing.PagePreviewsApiResponse",data:t.timestamp-e.fetchStartedAt});case be.FETCH_FAILED:return He(e,{action:"counter.PagePreviewsApiFailure",data:1});case be.LINK_DWELL:return He(e,{linkDwellStartedAt:t.timestamp});case be.PREVIEW_SHOW:return He(e,{action:"timing.PagePreviewsPreviewShow", data:t.timestamp-e.linkDwellStartedAt});case be.STATSV_LOGGED:return He(e,{action:null,data:null});default:return e}}};var Fe=[".extiw",".mw-selflink",".image",".new",".internal",".external",".mw-cite-backlink a",".oo-ui-buttonElement-button",".ve-ce-surface a",".cancelLink a",".mw-selflink-fragment",'[href^="#"]'];function Me(e){return function(t){var n=t&&t.target;if(n&&(3===n.nodeType&&(n=n.parentNode),n!==document))if(!n||n.closest){if(null!==(n=function(e){if(H.length){var t=H.join(", ");return e.closest(t)}return null}(n))){var r=function(e,t){if(e.dataset.title)return mw.Title.newFromText(e.dataset.title);if(function(e){return e.hash&&e.host===location.host&&e.pathname===location.pathname&&e.search===location.search}(e))try{return mw.Title.newFromText(t.get("wgPageName")+decodeURIComponent(e.hash))}catch(e){return null}return function(e,t){if(!e)return null;var n=mw.Title.newFromText(e);return n&&t.indexOf(n.namespace)>=0?n:null}(function(e,t){var n;try{n=new mw.Uri(e)}catch(e){ return}if(n.host===location.hostname){var r,o=Object.keys(n.query).length;if(o)1===o&&"title"in n.query&&(r=n.query.title);else{var i=mw.util.escapeRegExp(t.get("wgArticlePath")).replace("\\$1","([^?#]+)"),a=new RegExp(i).exec(n.path);try{r=a&&decodeURIComponent(a[1])}catch(e){}}return r?"".concat(r).concat(n.fragment?"#".concat(n.fragment):""):void 0}}(e.href,t),t.get("wgContentNamespaces"))}(n,mw.config);r&&e(n,r,t)}}else{var o=new Error("T340081: Unexpected DOM element ".concat(n.tagName," with nodeType ").concat(n.nodeType));mw.errorLogger.logError(o,"error.web-team")}}}!function(){var n,r;n=mw.config,r=parseInt(n.get("wgPopupsFlags"),10),n.set("wgPopupsConflictsWithNavPopupGadget",!!(1&r));var i,u,c,l,d=t.compose,h=mw.user.generateRandomSessionId,m=function(e){var t=Object.assign({},p,{acceptLanguage:e.get("wgPageContentLanguage")}),n=Object.assign({},t,{endpoint:e.get("wgPopupsRestGatewayEndpoint")});switch(e.get("wgPopupsGateway")){case"mwApiPlain":return function(e,t){function n (n){return e.get({action:"query",prop:"info|extracts|pageimages|revisions|info",formatversion:2,redirects:!0,exintro:mw.config.get("wgPopupsTextExtractsIntroOnly",!0),exchars:t.EXTRACT_LENGTH,explaintext:!0,exsectionformat:"plain",piprop:"thumbnail",pithumbsize:t.THUMBNAIL_SIZE,pilicense:"any",rvprop:"timestamp",inprop:"url",titles:n,smaxage:300,maxage:300,uselang:"content"},{headers:{"X-Analytics":"preview=1","Accept-Language":t.acceptLanguage}})}return{fetch:n,extractPageFromResponse:z,convertPageToModel:Z,fetchPreviewForTitle:function(e){var t=n(e.getPrefixedDb());return B(t.then((function(e){return Z($(z(e)))})),(function(){return t.abort()}))},formatPlainTextExtract:$}}(new mw.Api,t);case"restbasePlain":return Q(re,n,ne);case"restbaseHTML":return Q(re,n,te);default:throw new Error("Unknown gateway")}}(mw.config),w=(u=mw.storage,{migrateOldPreferences:function(){!!u.get(ie)&&(u.remove(ie),this.storePreviewTypeEnabled(G.TYPE_PAGE,!1)),u.get(ae)&&(u.remove(ae),this. storePreviewTypeEnabled(oe,!1))},isPreviewTypeEnabled:function(e){var t="mwe-popups-".concat(e,"-enabled");return null===u.get(t)},storePreviewTypeEnabled:function(e,t){e===oe&&mw.track("event.ReferencePreviewsPopups",{action:t?"anonymousEnabled":"anonymousDisabled"});var n="mwe-popups-".concat(e,"-enabled");t?u.remove(n):u.set(n,"0")}}),g=function(e,t){return c||((l=document.createElement("div")).classList.add("mwe-popups-overlay"),c=ue(e,t)),{refresh:function(t){var n=c.parentNode;c.remove(),c=ue(e,t),n&&c.appendTo(n)},appendTo:function(e){e.appendChild(l),l.appendChild(c)},show:function(){mw.loader.using("codex-styles").then((function(){mw.requestIdleCallback((function(){l.style.display=""}))}))},hide:function(){l.style.display="none"},toggleHelp:function(e){!function(e,t){var n="main, .save, .close",r=".mwe-popups-settings-help, .okay";t?(ce(e.querySelectorAll(n)),pe(e.querySelectorAll(r))):(pe(e.querySelectorAll(n)),ce(e.querySelectorAll(r)))}(c,e)},setEnabled:function(e){Object. keys(e).forEach((function(t){var n=c.querySelector("#mwe-popups-settings-".concat(t));n&&(n.checked=e[t])}))}}},v=(i=mw.experiments,{weightedBoolean:function(e,t,n){return"true"===i.getBucket({enabled:!0,name:e,buckets:{true:t,false:1-t}},n)}}),y=function(e,t,n){return function(e,t,n){var r=t.get("wgPopupsStatsvSamplingRate",0);return n.weightedBoolean("ext.Popups.statsv",r,e.sessionId())}(e,t,n)?mw.track:function(){}}(mw.user,mw.config,v),E=mw.config.get("wgPopupsVirtualPageViews")?mw.track:function(){},b=function(e,t,n){return mw.config.get("wgPopupsConflictsWithNavPopupGadget")?null:de(e)?"1"===mw.user.options.get("popups")||null:t.isPreviewTypeEnabled(G.TYPE_PAGE)}(mw.user,w);mw.config.get("debug")&&(d=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||d);var T,S,x,I,_,P=t.createStore(t.combineReducers(je),d(t.applyMiddleware(o()))),A=t.bindActionCreators(e,P.dispatch),k=function(e,t){var n,r=function(){};return se(e)?n=mw.Title.newFromText("Special:Preferences#mw-prefsection-rendering") .getUrl():r=function(e){e.preventDefault(),t.showSettings()},{settingsUrl:n,showSettings:r,previewDwell:t.previewDwell,previewAbandon:t.abandon,previewShow:t.previewShow,click:t.linkClick}}(mw.user,A);if(function(e,t,n,r,o,i,a){le(e,he(t)),le(e,me()),le(e,ge(o)),le(e,ye(t,i)),le(e,Ee(n)),le(e,ve(t,r)),le(e,we(t,a))}(P,A,w,g,k,y,E),A.boot({},mw.user,w,mw.config,window.location.href),mw.popups=function(e,t,n,r,o,i){return{isEnabled:function(t){return!!e.getState().preview.enabled[t||G.TYPE_PAGE]},register:function(e){var a=e.type,s=e.selector,u=e.gateway,c=e.renderFn,p=e.subTypes,l=e.delay,d=e.init,f=e.doNotRequireSummary;if(!a||!s||!u)throw new Error('Registration of Popups custom preview type "'.concat(a,'" failed: You must specify a type, a selector, and a gateway.'));t(a,s,l),r(a,u),n(a,c,f),function(e){return mw.message("popups-settings-option-".concat(e)).exists()}(a)?o(a,i.isPreviewTypeEnabled(a)):mw.log.warn("[Popups] No setting for ".concat(a, ' registered.\nPlease create message with key "popups-settings-option-').concat(a,'" if this is a mistake.')),p&&p.forEach((function(e){n(e.type,e.renderFn,e.doNotRequireSummary)})),"function"==typeof d&&d()}}}(P,V,O,K,A.registerSetting,w),w.migrateOldPreferences(),null!==b){var C=Fe.join(", ");mw.popups.register({type:G.TYPE_PAGE,selector:"#mw-content-text a[href][title]:not(".concat(C,")"),delay:s-a,gateway:m,renderFn:N,subTypes:[{type:G.TYPE_DISAMBIGUATION,renderFn:R,doNotRequireSummary:!0}]})}L()||(I=document.body,(_=document.createElement("div")).setAttribute("id","mwe-popups-svg"),_.innerHTML=f(),I.appendChild(_)),T=Me((function(e,t,n){var r=q(e),o=function(e){return X[e]}(r);if(o){var i=window.scrollY,a=e.getBoundingClientRect(),s={top:i+a.y,left:window.scrollX+a.x},u={pageX:n.pageX,pageY:n.pageY,clientY:n.clientY,width:e.offsetWidth,height:e.offsetHeight,offset:s,clientRects:e.getClientRects(),windowWidth:window.innerWidth,windowHeight:window.innerHeight,scrollTop:i};A. linkDwell(t,e,u,o,h,r)}})),S=Me((function(){A.abandon()})),x=Me((function(e){G.TYPE_PAGE===q(e)&&A.linkClick(e)})),document.addEventListener("mouseover",T),document.addEventListener("keyup",T),document.addEventListener("mouseout",S),document.addEventListener("blur",S),document.addEventListener("click",x)}(),window.Redux=t,window.ReduxThunk=r})()})(); },{"css":["@keyframes mwe-popups-fade-in-up{0%{opacity:0;transform:translate(0,20px)}100%{opacity:1;transform:translate(0,0)}}@keyframes mwe-popups-fade-in-down{0%{opacity:0;transform:translate(0,-20px)}100%{opacity:1;transform:translate(0,0)}}@keyframes mwe-popups-fade-out-down{0%{opacity:1;transform:translate(0,0)}100%{opacity:0;transform:translate(0,20px)}}@keyframes mwe-popups-fade-out-up{0%{opacity:1;transform:translate(0,0)}100%{opacity:0;transform:translate(0,-20px)}}.mwe-popups-fade-in-up{animation:mwe-popups-fade-in-up 0.2s ease forwards}.mwe-popups-fade-in-down{animation:mwe-popups-fade-in-down 0.2s ease forwards}.mwe-popups-fade-out-down{animation:mwe-popups-fade-out-down 0.2s ease forwards}.mwe-popups-fade-out-up{animation:mwe-popups-fade-out-up 0.2s ease forwards}.popups-icon--settings{ background-position:center;background-repeat:no-repeat;background-size:calc(max(1.25em,20px));min-width:20px;min-height:20px;width:1.25em;height:1.25em;display:inline-block;vertical-align:text-bottom;background-image:url(\"data:image/svg+xml;utf8,\u003Csvg xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" width=\\\"20\\\" height=\\\"20\\\" viewBox=\\\"0 0 20 20\\\" fill=\\\"%23202122\\\"\u003E\u003Cg transform=\\\"translate(10 10)\\\"\u003E\u003Cpath id=\\\"cdx-icon-settings-a\\\" d=\\\"M1.5-10h-3l-1 6.5h5m0 7h-5l1 6.5h3\\\"/\u003E\u003Cuse xlink:href=\\\"%23cdx-icon-settings-a\\\" transform=\\\"rotate(45)\\\"/\u003E\u003Cuse xlink:href=\\\"%23cdx-icon-settings-a\\\" transform=\\\"rotate(90)\\\"/\u003E\u003Cuse xlink:href=\\\"%23cdx-icon-settings-a\\\" transform=\\\"rotate(135)\\\"/\u003E\u003C/g\u003E\u003Cpath d=\\\"M10 2.5a7.5 7.5 0 000 15 7.5 7.5 0 000-15v4a3.5 3.5 0 010 7 3.5 3.5 0 010-7\\\"/\u003E\u003C/svg\u003E\")}.popups-icon--infoFilled{ background-position:center;background-repeat:no-repeat;background-size:calc(max(1.25em,20px));min-width:20px;min-height:20px;width:1.25em;height:1.25em;display:inline-block;vertical-align:text-bottom;background-image:url(\"data:image/svg+xml;utf8,\u003Csvg xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" width=\\\"20\\\" height=\\\"20\\\" viewBox=\\\"0 0 20 20\\\" fill=\\\"%23202122\\\"\u003E\u003Cpath d=\\\"M10 0C4.477 0 0 4.477 0 10s4.477 10 10 10 10-4.477 10-10S15.523 0 10 0M9 5h2v2H9zm0 4h2v6H9z\\\"/\u003E\u003C/svg\u003E\")}.popups-icon--infoFilled:lang(ar){background-image:url(\"data:image/svg+xml;utf8,\u003Csvg xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" width=\\\"20\\\" height=\\\"20\\\" viewBox=\\\"0 0 20 20\\\" fill=\\\"%23202122\\\"\u003E\u003Cpath d=\\\"M8 19a1 1 0 001 1h2a1 1 0 001-1v-1H8zm9-12a7 7 0 10-12 4.9S7 14 7 15v1a1 1 0 001 1h4a1 1 0 001-1v-1c0-1 2-3.1 2-3.1A7 7 0 0017 7\\\"/\u003E\u003C/svg\u003E\")}.popups-icon--close{ background-position:center;background-repeat:no-repeat;background-size:calc(max(1.25em,20px));min-width:20px;min-height:20px;width:1.25em;height:1.25em;display:inline-block;vertical-align:text-bottom;background-image:url(\"data:image/svg+xml;utf8,\u003Csvg xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" width=\\\"20\\\" height=\\\"20\\\" viewBox=\\\"0 0 20 20\\\" fill=\\\"%23202122\\\"\u003E\u003Cpath d=\\\"m4.34 2.93 12.73 12.73-1.41 1.41L2.93 4.35z\\\"/\u003E\u003Cpath d=\\\"M17.07 4.34 4.34 17.07l-1.41-1.41L15.66 2.93z\\\"/\u003E\u003C/svg\u003E\")}#mwe-popups-settings{z-index:1000;background-color:#ffffff;width:420px;border:1px solid #a2a9b1;box-shadow:0 2px 2px 0 rgba(0,0,0,0.2);border-radius:2px;font-size:14px}#mwe-popups-settings header{box-sizing:border-box;border-bottom:1px solid #c8ccd1;position:relative;display:table;width:100%;padding:5px 7px}#mwe-popups-settings header \u003E div{display:table-cell;width:3.25em;vertical-align:middle;cursor:pointer}#mwe-popups-settings header h1{margin-bottom:0.6em;padding-top:0.5em;border:0;width:100%;font-family:sans-serif;font-size:18px;font-weight:bold;text-align:center}#mwe-popups-settings main#mwe-popups-settings-form{display:block;width:350px;padding:32px 0 24px;margin:0 auto}#mwe-popups-settings main#mwe-popups-settings-form p{color:#54595d;font-size:14px;margin:16px 0 0}#mwe-popups-settings main#mwe-popups-settings-form p:first-child{margin-top:0}#mwe-popups-settings main#mwe-popups-settings-form form img{margin-right:60px}#mwe-popups-settings main#mwe-popups-settings-form form label{font-size:13px;line-height:16px;width:300px;margin-left:10px;flex-direction:column}#mwe-popups-settings main#mwe-popups-settings-form form label \u003E span{color:#000000;font-size:14px;font-weight:bold;display:block;margin-bottom:5px}#mwe-popups-settings main#mwe-popups-settings-form form label::before{top:0.78125em !important}.mwe-popups-settings-help{font-size:13px;font-weight:800;margin:40px;position:relative}.mwe-popups-settings-help .popups-icon{background-size:contain;width:180px;max-width:none;height:140px;margin:0;padding:0}.mwe-popups-settings-help p{left:180px;bottom:20px;position:absolute}.mwe-popups{background:#fff;position:absolute;z-index:110;box-shadow:0 30px 90px -20px rgba(0,0,0,0.3),0 0 1px 1px rgba(0,0,0,0.05);padding:0;display:none;font-size:14px;line-height:20px;min-width:300px;border-radius:2px; }.mwe-popups .mwe-popups-container{color:#202122;text-decoration:none}.mwe-popups .mwe-popups-container footer{padding:0 16px 16px;margin:0;position:absolute;bottom:0;pointer-events:none}.mwe-popups .mwe-popups-container footer a{pointer-events:auto}.mwe-popups .mwe-popups-settings-button{float:right;pointer-events:auto;min-width:32px !important; min-height:32px !important; }.mwe-popups .mwe-popups-extract{margin:16px;display:block;color:#202122;text-decoration:none;position:relative;padding-bottom:4px}.mwe-popups .mwe-popups-extract:hover{text-decoration:none}.mwe-popups .mwe-popups-extract::after,.mwe-popups .mwe-popups-extract blockquote::after{content:' ';position:absolute;bottom:0;width:25%;height:20px;background-color:transparent;pointer-events:none}.mwe-popups .mwe-popups-extract[dir='ltr']::after{ right:0; background-image:linear-gradient(to right,rgba(255,255,255,0),#ffffff 50%)}.mwe-popups .mwe-popups-extract[dir='rtl']::after{ left:0; background-image:linear-gradient(to left,rgba(255,255,255,0),#ffffff 50%)}.mwe-popups .mwe-popups-extract blockquote::after{width:100%;height:25px; bottom:0; background-image:linear-gradient(to bottom,rgba(255,255,255,0),#ffffff 75%)}.mwe-popups .mwe-popups-extract p{margin:0}.mwe-popups .mwe-popups-extract ul,.mwe-popups .mwe-popups-extract ol,.mwe-popups .mwe-popups-extract li,.mwe-popups .mwe-popups-extract dl,.mwe-popups .mwe-popups-extract dd,.mwe-popups .mwe-popups-extract dt{margin-top:0;margin-bottom:0}.mwe-popups svg{overflow:hidden}.mwe-popups.mwe-popups-is-tall{width:450px}.mwe-popups.mwe-popups-is-tall \u003E div \u003E a \u003E svg{vertical-align:middle}.mwe-popups.mwe-popups-is-tall .mwe-popups-extract{width:215px;height:176px;overflow:hidden;float:left}.mwe-popups.mwe-popups-is-tall footer{left:0;right:203px}.mwe-popups.mwe-popups-is-not-tall{width:320px}.mwe-popups.mwe-popups-is-not-tall .mwe-popups-extract{min-height:50px;max-height:136px;overflow:hidden;margin-bottom:50px}.mwe-popups.mwe-popups-is-not-tall footer{left:0;right:0}.mwe-popups.mwe-popups-no-image-pointer::before{content:'';position:absolute;border:8px solid transparent;border-top:0;border-bottom:8px solid rgba(0,0,0,0.07000000000000001);top:-8px;left:10px}.mwe-popups.mwe-popups-no-image-pointer::after{content:'';position:absolute;border:11px solid transparent;border-top:0;border-bottom:11px solid #ffffff;top:-7px;left:7px}.mwe-popups.flipped-x.mwe-popups-no-image-pointer::before{left:auto;right:10px}.mwe-popups.flipped-x.mwe-popups-no-image-pointer::after{left:auto;right:7px}.mwe-popups.mwe-popups-image-pointer::before{content:'';position:absolute;border:9px solid transparent;border-top:0;border-bottom:9px solid #a2a9b1;top:-9px;left:9px;z-index:111}.mwe-popups.mwe-popups-image-pointer::after{content:'';position:absolute;border:12px solid transparent;border-top:0;border-bottom:12px solid #ffffff;top:-8px;left:6px;z-index:112}.mwe-popups.mwe-popups-image-pointer.flipped-x::before{content:'';position:absolute;border:9px solid transparent;border-top:0;border-bottom:9px solid #a2a9b1;top:-9px;left:293px}.mwe-popups.mwe-popups-image-pointer.flipped-x::after{content:'';position:absolute;border:12px solid transparent;border-top:0;border-bottom:12px solid #ffffff;top:-8px;left:290px}.mwe-popups.mwe-popups-image-pointer \u003E div \u003E a \u003E svg{margin-top:-8px;position:absolute;z-index:113;left:0}.mwe-popups.flipped-x.mwe-popups-is-tall{min-height:242px}.mwe-popups.flipped-x.mwe-popups-is-tall::before{content:'';position:absolute;border:9px solid transparent;border-top:0;border-bottom:9px solid #a2a9b1;top:-9px;left:420px;z-index:111}.mwe-popups.flipped-x.mwe-popups-is-tall \u003E div \u003E a \u003E svg{margin:0;margin-top:-8px;margin-bottom:-7px;position:absolute;z-index:113;right:0}.mwe-popups.flipped-x-y::before{content:'';position:absolute;border:9px solid transparent;border-bottom:0;border-top:9px solid #a2a9b1;bottom:-9px;left:293px;z-index:111}.mwe-popups.flipped-x-y::after{content:'';position:absolute;border:12px solid transparent;border-bottom:0;border-top:12px solid #ffffff;bottom:-8px;left:290px;z-index:112}.mwe-popups.flipped-x-y.mwe-popups-is-tall{min-height:242px}.mwe-popups.flipped-x-y.mwe-popups-is-tall::before{content:'';position:absolute;border:9px solid transparent;border-bottom:0;border-top:9px solid #a2a9b1;bottom:-9px;left:420px}.mwe-popups.flipped-x-y.mwe-popups-is-tall::after{content:'';position:absolute;border:12px solid transparent;border-bottom:0;border-top:12px solid #ffffff;bottom:-8px;left:417px}.mwe-popups.flipped-x-y.mwe-popups-is-tall \u003E div \u003E a \u003E svg{margin:0;margin-bottom:-9px;position:absolute;z-index:113;right:0}.mwe-popups.flipped-y::before{content:'';position:absolute;border:8px solid transparent;border-bottom:0;border-top:8px solid #a2a9b1;bottom:-8px;left:10px}.mwe-popups.flipped-y::after{content:'';position:absolute;border:11px solid transparent;border-bottom:0;border-top:11px solid #ffffff;bottom:-7px;left:7px}.mwe-popups-is-tall polyline{transform:translate(0,0)}.mwe-popups-is-tall.flipped-x-y polyline{transform:translate(0,-8px)}.mwe-popups-is-tall.flipped-x polyline{transform:translate(0,8px)}.rtl .mwe-popups-is-tall polyline{transform:translate(-100%,0)}.rtl .mwe-popups-is-tall.flipped-x-y polyline{transform:translate(-100%,-8px)}.rtl .mwe-popups-is-tall.flipped-x polyline{transform:translate(-100%,8px)}@supports (clip-path:polygon(1px 1px)){.mwe-popups .mwe-popups-thumbnail{display:block;object-fit:cover;outline:1px solid rgba(0,0,0,0.1)}.mwe-popups.flipped-y .mwe-popups-container,.mwe-popups.flipped-x-y .mwe-popups-container{--y1:100%;--y2:calc(100% - var(--pointer-height));--y3:calc(100% - var(--pointer-height) - var(--pseudo-radius));--y4:var(--pseudo-radius);--y5:0;margin-bottom:calc(var(--pointer-height) * -1);padding-bottom:var(--pointer-height)}.mwe-popups:not(.flipped-y):not(.flipped-x-y) .mwe-popups-container{margin-top:calc(var(--pointer-height) * -1);padding-top:var(--pointer-height)}.mwe-popups .mwe-popups-discreet{margin-top:calc(var(--pointer-height) * -1)}.mwe-popups.mwe-popups-is-tall.flipped-y .mwe-popups-discreet,.mwe-popups.mwe-popups-is-tall.flipped-x-y .mwe-popups-discreet{margin-top:0;margin-bottom:calc(var(--pointer-height) * -1)}.mwe-popups .mwe-popups-container{--x1:0;--x2:var(--pseudo-radius);--x3:calc(var(--pointer-offset) - (var(--pointer-width) / 2));--x4:var(--pointer-offset);--x5:calc(var(--pointer-offset) + (var(--pointer-width) / 2));--x6:calc(100% - var(--pseudo-radius));--x7:100%;--y1:0;--y2:var(--pointer-height);--y3:calc(var(--pointer-height) + var(--pseudo-radius));--y4:calc(100% - var(--pseudo-radius));--y5:100%;padding-top:0;display:flex;background:#fff;--pseudo-radius:2px;--pointer-height:8px;--pointer-width:16px;--pointer-offset:26px;clip-path:polygon(var(--x2) var(--y2),var(--x3) var(--y2),var(--x4) var(--y1),var(--x5) var(--y2),var(--x6) var(--y2),var(--x7) var(--y3),var(--x7) var(--y4),var(--x6) var(--y5),var(--x2) var(--y5),var(--x1) var(--y4),var(--x1) var(--y3))}.mwe-popups.mwe-popups-is-tall{flex-direction:row}.mwe-popups.mwe-popups-is-tall .mwe-popups-discreet{order:1}.mwe-popups.mwe-popups-is-tall .mwe-popups-discreet .mwe-popups-thumbnail{width:203px;box-sizing:border-box;height:250px}.mwe-popups.mwe-popups-is-not-tall .mwe-popups-thumbnail{width:320px;height:192px}.mwe-popups.mwe-popups-is-not-tall .mwe-popups-container{flex-direction:column}.mwe-popups::before{display:none}.mwe-popups::after{display:none}body.ltr .mwe-popups.flipped-x .mwe-popups-container,body.ltr .mwe-popups.flipped-x-y .mwe-popups-container,body.rtl .mwe-popups:not(.flipped-x):not(.flipped-x-y) .mwe-popups-container{--x3:calc(100% - var(--pointer-offset) - (var(--pointer-width) / 2));--x4:calc(100% - var(--pointer-offset));--x5:calc(100% - var(--pointer-offset) + (var(--pointer-width) / 2))}}.mwe-popups .mwe-popups-title{display:block;margin-bottom:12px}.mwe-popups-type-generic.mwe-popups .mwe-popups-title{font-weight:normal;margin:0}.mwe-popups .mwe-popups-title .popups-icon,.mwe-popups .mw-parser-output .popups-icon{margin:0 8px 0 0}.mwe-popups.mwe-popups-type-generic .mwe-popups-extract,.mwe-popups.mwe-popups-type-disambiguation .mwe-popups-extract{min-height:auto}.mwe-popups.mwe-popups-type-generic .mwe-popups-read-link,.mwe-popups.mwe-popups-type-disambiguation .mwe-popups-read-link{font-weight:bold;font-size:12px;text-decoration:none}.mwe-popups.mwe-popups-type-generic .mwe-popups-extract:hover + footer .mwe-popups-read-link,.mwe-popups.mwe-popups-type-disambiguation .mwe-popups-extract:hover + footer .mwe-popups-read-link,.mwe-popups.mwe-popups-type-generic .mwe-popups-read-link:hover,.mwe-popups.mwe-popups-type-disambiguation .mwe-popups-read-link:hover{text-decoration:underline}.mwe-popups-overlay{background-color:rgba(255,255,255,0.9);z-index:999;position:fixed;height:100%;width:100%;top:0;bottom:0;left:0;right:0;display:flex;justify-content:center;align-items:center}#mwe-popups-svg{position:absolute;top:-1000px}.popups-icon{background-position:center;background-repeat:no-repeat;background-size:calc(max(1.25em,20px));min-width:20px;min-height:20px;width:1.25em;height:1.25em;display:inline-block;vertical-align:text-bottom}.popups-icon--size-small{background-position:center;background-repeat:no-repeat;background-size:calc(max(1em,16px));min-width:16px;min-height:16px;width:1em;height:1em}.mwe-popups-overlay .cdx-button.cdx-button--icon-only span + span,.mwe-popups .cdx-button.cdx-button--icon-only span + span{display:block;position:absolute !important; clip:rect(1px,1px,1px,1px);width:1px;height:1px;margin:-1px;border:0;padding:0;overflow:hidden}"]},{"popups-preview-disambiguation":"This title relates to more than one page","popups-preview-disambiguation-link":"View similar pages","popups-preview-footer-read":"Go to this page","popups-preview-no-preview":"There was an issue displaying this preview","popups-refpreview-book":"Book reference","popups-refpreview-collapsible-placeholder":"This reference includes a figure which does not fit in the preview.","popups-refpreview-journal":"Journal reference","popups-refpreview-news":"News reference","popups-refpreview-note":"Note","popups-refpreview-reference":"Reference","popups-refpreview-web":"Web reference","popups-settings-cancel":"Cancel","popups-settings-enable":"Edit preview settings","popups-settings-help":"You can turn previews back on using a link in the footer of the page.","popups-settings-help-ok":"Done","popups-settings-icon-gear-title":"Change page preview settings","popups-settings-option-page":"Page previews","popups-settings-option-page-description":"Get quick previews of a topic while reading a page.","popups-settings-option-reference":"Reference previews","popups-settings-option-reference-description":"Get quick previews of a reference while reading a page.","popups-settings-save":"Save","popups-settings-title":"Previews"}];}); mw.loader.impl(function(){return["ext.popups.referencePreviews@3x00n",function($,jQuery,require,module){(()=>{"use strict";var e="reference",t=!1,n="event.ReferencePreviewsPopups";function r(){return t}var o=document.createElement("template");o.innerHTML='\n
\n\t
\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t
\n\t\t\n\t
\n
';var c,s,l=function(e,t){"string"==typeof t?e.insertAdjacentHTML("afterend",t):e.parentNode.appendChild(t),e.remove()};function p(e){var t=e.referenceType||"generic",c=mw.message("popups-refpreview-".concat(t));c.exists()||(c=mw.message("popups-refpreview-reference")) ;var s=o.content.cloneNode(!0).children[0];l(s.querySelector(".mwe-popups-title-placeholder"),mw.html.escape(c.text())),s.querySelector(".mwe-popups-title .popups-icon").classList.add("popups-icon--reference-".concat(t)),s.querySelector(".mw-parser-output").innerHTML=e.extract,Array.prototype.forEach.call(s.querySelectorAll('.mwe-popups-extract a[href][class~="external"]:not([target])'),(function(e){e.target="_blank",e.rel="".concat(e.rel?"".concat(e.rel," "):"","noopener")})),Array.prototype.forEach.call(s.querySelectorAll(".mw-collapsible"),(function(e){var t=document.createElement("div");t.classList.add("mwe-collapsible-placeholder");var n=document.createElement("span");n.classList.add("popups-icon","popups-icon--infoFilled");var r=document.createElement("span");r.classList.add("mwe-collapsible-placeholder-label"),r.textContent=mw.msg("popups-refpreview-collapsible-placeholder"),t.appendChild(n),t.appendChild(r),l(e,t)}));var p=function(e){e.classList.remove("headerSort"),e. removeAttribute("tabindex"),e.removeAttribute("title")};Array.prototype.forEach.call(s.querySelectorAll("table.sortable"),(function(e){e.classList.remove("sortable","jquery-tablesorter"),Array.prototype.forEach.call(e.querySelectorAll(".headerSort"),p)}));var a=document.createElement("a");a.classList.add("cdx-button","cdx-button--fake-button","cdx-button--fake-button--enabled","cdx-button--weight-quiet","cdx-button--icon-only","mwe-popups-settings-button");var i=document.createElement("span");i.classList.add("popups-icon","popups-icon--size-small","popups-icon--settings");var u=document.createElement("span");return u.textContent=mw.msg("popups-settings-icon-gear-title"),a.append(i),a.append(u),s.querySelector(".mwe-popups-settings").appendChild(a),r()&&s.querySelector(".mw-parser-output").addEventListener("click",(function(e){e.target.matches("a")&&mw.track(n,{action:"clickedReferencePreviewsContentLink"})})),s.querySelector(".mwe-popups-scroll").addEventListener("scroll",(function(e){ var t=e.target,o=t.scrollTop>=t.scrollHeight-t.clientHeight-1;if(r()&&(t.isOpenRecorded||(mw.track(n,{action:"poppedOpen",scrollbarsPresent:t.scrollHeight>t.clientHeight}),t.isOpenRecorded=!0),t.scrollTop>0&&!t.isScrollRecorded&&(mw.track(n,{action:"scrolled"}),t.isScrollRecorded=!0)),o||!t.isScrolling){var c=t.parentNode,s=t.scrollWidth>t.clientWidth,l=t.offsetHeight-t.clientHeight,p=t.scrollHeight>t.clientHeight,a=t.offsetWidth-t.clientWidth,i=c.querySelector(".mwe-popups-fade");i.style.bottom=s?"".concat(l,"px"):0,i.style.right=p?"".concat(a,"px"):0,t.isScrolling=!o,c.classList.toggle("mwe-popups-fade-out",t.isScrolling),c.setAttribute("lang",mw.config.get("wgPageContentLanguage"))}})),s}c=mw.config,s=parseInt(c.get("wgPopupsFlags"),10),c.set("wgPopupsConflictsWithRefTooltipsGadget",!!(2&s)),c.set("wgPopupsReferencePreviews",!!(4&s));var a=function(t,n,r){return r.get("wgPopupsReferencePreviews")?r.get("wgPopupsConflictsWithRefTooltipsGadget")||r.get( "wgPopupsConflictsWithNavPopupGadget")||"minerva"===r.get("skin")?null:t.isAnon()?n(e):"1"===t.options.get("popups-reference-previews")||null:null}(mw.user,mw.popups.isEnabled,mw.config),i={fetchPreviewForTitle:function(t,n){var r=t.getFragment().replace(/ /g,"_"),o=function(e){var t="#".concat(CSS.escape(e));return document.querySelector("".concat(t," .mw-reference-text, ").concat(t," .reference-text"))}(r);if(!o||!o.textContent.trim()&&!o.children.length)return Promise.reject({textStatus:"abort",textContext:"Footnote not found or empty",xhr:{readyState:0}});var c,s,l,p,a={url:"#".concat(r),extract:o.innerHTML,type:e,referenceType:(c=o,s=["book","journal","news","note","web"],l=null,p=c.querySelectorAll("cite[class]"),Array.prototype.forEach.call(p,(function(e){if(!l)for(var t=e.className.split(/\s+/),n=t.length;n--;)if(-1!==s.indexOf(t[n]))return l=t[n],!1})),l),sourceElementId:n.parentNode.id},i=Promise.resolve(a);return i.abort=function(){},i}};mw.config.set( "wgPopupsReferencePreviewsVisible",!!a),window.refPreviews=null!==a?{type:e,selector:'#mw-content-text .reference a[ href*="#" ]',delay:150,gateway:i,renderFn:function(e){return{el:p(e),hasThumbnail:!1,isTall:!1}},init:function(){mw.config.get("wgPopupsReferencePreviews")&&navigator.sendBeacon&&mw.config.get("wgIsArticle")&&!t&&(t=!0,mw.track(n,{action:"pageview"}))}}:null})(); module.exports=window.refPreviews; },{"css":[".popups-icon--reference-generic{ background-position:center;background-repeat:no-repeat;background-size:calc(max(1.25em,20px));min-width:20px;min-height:20px;width:1.25em;height:1.25em;display:inline-block;vertical-align:text-bottom;background-image:url(\"data:image/svg+xml;utf8,\u003Csvg xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" width=\\\"20\\\" height=\\\"20\\\" viewBox=\\\"0 0 20 20\\\" fill=\\\"%23202122\\\"\u003E\u003Cpath d=\\\"m15 10-2.78-2.78L9.44 10V1H5a2 2 0 00-2 2v14a2 2 0 002 2h10a2 2 0 002-2V3a2 2 0 00-2-2z\\\"/\u003E\u003C/svg\u003E\")}.popups-icon--reference-book{ background-position:center;background-repeat:no-repeat;background-size:calc(max(1.25em,20px));min-width:20px;min-height:20px;width:1.25em;height:1.25em;display:inline-block;vertical-align:text-bottom;background-image:url(\"data:image/svg+xml;utf8,\u003Csvg xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" width=\\\"20\\\" height=\\\"20\\\" viewBox=\\\"0 0 20 20\\\" fill=\\\"%23202122\\\"\u003E\u003Cpath d=\\\"M15 2a7.65 7.65 0 00-5 2 7.65 7.65 0 00-5-2H1v15h4a7.65 7.65 0 015 2 7.65 7.65 0 015-2h4V2zm2.5 13.5H14a4.38 4.38 0 00-3 1V5s1-1.5 4-1.5h2.5z\\\"/\u003E\u003Cpath d=\\\"M9 3.5h2v1H9z\\\"/\u003E\u003C/svg\u003E\")}.popups-icon--reference-book[dir='rtl'],html[dir='rtl'] .popups-icon--reference-book:not([dir='ltr']){transform:scaleX(-1)}.popups-icon--reference-journal{ background-position:center;background-repeat:no-repeat;background-size:calc(max(1.25em,20px));min-width:20px;min-height:20px;width:1.25em;height:1.25em;display:inline-block;vertical-align:text-bottom;background-image:url(\"data:image/svg+xml;utf8,\u003Csvg xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" width=\\\"20\\\" height=\\\"20\\\" viewBox=\\\"0 0 20 20\\\" fill=\\\"%23202122\\\"\u003E\u003Cpath d=\\\"M2 18.5A1.5 1.5 0 003.5 20H5V0H3.5A1.5 1.5 0 002 1.5zM6 0v20h10a2 2 0 002-2V2a2 2 0 00-2-2zm7 8H8V7h5zm3-2H8V5h8z\\\"/\u003E\u003C/svg\u003E\")}.popups-icon--reference-journal[dir='rtl'],html[dir='rtl'] .popups-icon--reference-journal:not([dir='ltr']){transform:scaleX(-1)}.popups-icon--reference-news{ background-position:center;background-repeat:no-repeat;background-size:calc(max(1.25em,20px));min-width:20px;min-height:20px;width:1.25em;height:1.25em;display:inline-block;vertical-align:text-bottom;background-image:url(\"data:image/svg+xml;utf8,\u003Csvg xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" width=\\\"20\\\" height=\\\"20\\\" viewBox=\\\"0 0 20 20\\\" fill=\\\"%23202122\\\"\u003E\u003Cpath d=\\\"M5 2a2 2 0 00-2 2v12a1 1 0 01-1-1V5h-.5A1.5 1.5 0 000 6.5v10A1.5 1.5 0 001.5 18H18a2 2 0 002-2V4a2 2 0 00-2-2zm1 2h11v4H6zm0 6h6v1H6zm0 2h6v1H6zm0 2h6v1H6zm7-4h4v5h-4z\\\"/\u003E\u003C/svg\u003E\")}.popups-icon--reference-news[dir='rtl'],html[dir='rtl'] .popups-icon--reference-news:not([dir='ltr']){transform:scaleX(-1)}.popups-icon--reference-web{ background-position:center;background-repeat:no-repeat;background-size:calc(max(1.25em,20px));min-width:20px;min-height:20px;width:1.25em;height:1.25em;display:inline-block;vertical-align:text-bottom;background-image:url(\"data:image/svg+xml;utf8,\u003Csvg xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" width=\\\"20\\\" height=\\\"20\\\" viewBox=\\\"0 0 20 20\\\" fill=\\\"%23202122\\\"\u003E\u003Cpath d=\\\"M2 2a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V4a2 2 0 00-2-2zm2 1.5A1.5 1.5 0 112.5 5 1.5 1.5 0 014 3.5M18 16H2V8h16z\\\"/\u003E\u003C/svg\u003E\")}.popups-icon--reference-web[dir='rtl'],html[dir='rtl'] .popups-icon--reference-web:not([dir='ltr']){transform:scaleX(-1)}.popups-icon--preview-disambiguation{ background-position:center;background-repeat:no-repeat;background-size:calc(max(1.25em,20px));min-width:20px;min-height:20px;width:1.25em;height:1.25em;display:inline-block;vertical-align:text-bottom;background-image:url(\"data:image/svg+xml;utf8,\u003Csvg xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" width=\\\"20\\\" height=\\\"20\\\" viewBox=\\\"0 0 20 20\\\" fill=\\\"%23202122\\\"\u003E\u003Cpath d=\\\"M7 0a2 2 0 00-2 2h9a2 2 0 012 2v12a2 2 0 002-2V2a2 2 0 00-2-2z\\\"/\u003E\u003Cpath d=\\\"M13 20a2 2 0 002-2V5a2 2 0 00-2-2H4a2 2 0 00-2 2v13a2 2 0 002 2zM9 5h4v5H9zM4 5h4v1H4zm0 2h4v1H4zm0 2h4v1H4zm0 2h9v1H4zm0 2h9v1H4zm0 2h9v1H4z\\\"/\u003E\u003C/svg\u003E\")}.popups-icon--preview-disambiguation[dir='rtl'],html[dir='rtl'] .popups-icon--preview-disambiguation:not([dir='ltr']){transform:scaleX(-1)}#mw-content-text .reference a[href*='#'] *{pointer-events:none}.mwe-popups.mwe-popups-type-reference .mwe-popups-container .mwe-popups-title .popups-icon--reference-note{display:none}.mwe-popups.mwe-popups-type-reference .mwe-popups-container .mwe-popups-extract{margin-right:0;max-height:inherit}.mwe-popups.mwe-popups-type-reference .mwe-popups-container .mwe-popups-extract .mwe-popups-scroll{max-height:343px;overflow:auto;padding-right:16px}.mwe-popups.mwe-popups-type-reference .mwe-popups-container .mwe-popups-extract .mw-parser-output{overflow-wrap:break-word}.mwe-popups.mwe-popups-type-reference .mwe-popups-container .mwe-popups-extract::after{display:none}.mwe-popups.mwe-popups-type-reference .mwe-popups-container .mwe-popups-extract .mwe-popups-fade{position:absolute;width:100%;height:20px;background-color:transparent;background-image:linear-gradient(rgba(255,255,255,0),#ffffff);opacity:0;pointer-events:none;transition:opacity 250ms ease}.mwe-popups.mwe-popups-type-reference .mwe-popups-container .mwe-popups-extract.mwe-popups-fade-out .mwe-popups-fade{opacity:1}.mwe-popups.mwe-popups-type-reference .mwe-popups-container .mwe-collapsible-placeholder{font-weight:bold;margin:1em 0;position:relative}"]}];}); mw.loader.impl(function(){return["mediawiki.ForeignApi@r63m6",null];}); mw.loader.impl(function(){return["mediawiki.ForeignApi.core@rw7qv",{"main":"resources/src/mediawiki.ForeignApi/index.js","files":{"resources/src/mediawiki.ForeignApi/index.js":function(require,module,exports){mw.ForeignApi=require('./mediawiki.ForeignApi.core.js');mw.ForeignRest=require('./mediawiki.ForeignRest.core.js');module.exports={ForeignApi:mw.ForeignApi,ForeignRest:mw.ForeignRest}; },"resources/src/mediawiki.ForeignApi/mediawiki.ForeignApi.core.js":function(require,module,exports){module.exports=(function(){function CoreForeignApi(url,options){if(!url||$.isPlainObject(url)){throw new Error('mw.ForeignApi() requires a `url` parameter');}this.apiUrl=String(url);this.anonymous=options&&options.anonymous;options=$.extend(true,{ajax:{url:this.apiUrl,xhrFields:{withCredentials:!this.anonymous}},parameters:{origin:this.getOrigin()}},options);CoreForeignApi.super.call(this,options);}OO.inheritClass(CoreForeignApi,mw.Api);CoreForeignApi.prototype.getOrigin=function(){var origin,apiUri,apiOrigin;if(this.anonymous){return'*';}origin=location.protocol+'//'+location.hostname;if(location.port){origin+=':'+location.port;}apiUri=new mw.Uri(this.apiUrl);apiOrigin=apiUri.protocol+'://'+apiUri.getAuthority();if(origin===apiOrigin){return undefined;}return origin;};CoreForeignApi.prototype.ajax=function(parameters,ajaxOptions){var url,origin,newAjaxOptions;if(ajaxOptions.type==='POST'){url=(ajaxOptions&&ajaxOptions.url)||this.defaults.ajax.url;origin=(parameters&¶meters.origin) ||this.defaults.parameters.origin;if(origin!==undefined){url+=(url.indexOf('?')!==-1?'&':'?')+'origin='+encodeURIComponent(origin);}newAjaxOptions=$.extend({},ajaxOptions,{url:url});}else{newAjaxOptions=ajaxOptions;}return CoreForeignApi.super.prototype.ajax.call(this,parameters,newAjaxOptions);};return CoreForeignApi;}()); },"resources/src/mediawiki.ForeignApi/mediawiki.ForeignRest.core.js":function(require,module,exports){module.exports=(function(){function CoreForeignRest(url,foreignActionApi,options){this.apiUrl=url;this.anonymous=options&&options.anonymous;this.foreignActionApi=foreignActionApi;options=$.extend(true,{ajax:{url:this.apiUrl,xhrFields:{withCredentials:!this.anonymous}}},options);CoreForeignRest.super.call(this,options);}OO.inheritClass(CoreForeignRest,mw.Rest);return CoreForeignRest;}()); }}}];});