text: !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).wtf=t()}(this,(function(){"use strict";var e=function(e){var t=new URL(e),i=t.pathname.replace(/^\/(wiki\/)?/,"");return i=decodeURIComponent(i),{domain:t.host,title:i}};function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var i=[],n=!0,a=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(i.push(o.value),!t||i.length!==t);n=!0);}catch(e){a=!0,r=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw r}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(i);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return n(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var a=/(wiktionary|wikinews|wikibooks|wikiquote|wikisource|wikispecies|wikiversity|wikivoyage|wikipedia|wikimedia|foundation|meta)\.org/,r={action:"query",prop:"revisions",rvprop:"content",maxlag:5,rvslots:"main",origin:"*",format:"json",redirects:"true"},o=function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=function(e){return e=(e=e.replace(/ /g,"_")).trim()},c=function(e){var t=Object.assign({},r),n="https://".concat(e.lang,".").concat(e.wiki,".org/w/api.php?");if(e.domain=e.domain||e.wikiUrl,e.domain){var c=e.path;a.test(e.domain)&&(c="w/api.php"),n="https://".concat(e.domain,"/").concat(c,"?")}e.follow_redirects||delete t.redirects;var u,l=e.title;return"number"==typeof l?t.pageids=l:o(l)&&"number"==typeof l[0]?t.pageids=l.join("|"):!0===o(l)?t.titles=l.map(s).join("|"):t.titles=s(l),n+=(u=t,Object.entries(u).map((function(e){var t=i(e,2),n=t[0],a=t[1];return"".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(a))})).join("&"))},u=function(e,t){return t=t||{},Object.keys(e.query.pages).map((function(i){var n=e.query.pages[i]||{};if(n.hasOwnProperty("missing")||n.hasOwnProperty("invalid"))return null;var a=n.revisions[0]["*"];!a&&n.revisions[0].slots&&(a=n.revisions[0].slots.main["*"]);var r=Object.assign({},t,{title:n.title,pageID:n.pageid,namespace:n.ns});try{return{wiki:a,meta:r}}catch(e){throw console.error(e),e}}))},l=function(e,t,i){var n=[];return e.sections().forEach((function(e){("string"==typeof i?e[t](i):e[t]()).forEach((function(e){n.push(e)}))})),"number"==typeof i?n[i]:n},p=function(e,t){return Object.assign({},t,e)},m={title:!0,sections:!0,pageID:!0,categories:!0},d=function(e,t){var i={};return(t=p(t,m)).title&&(i.title=e.title()),t.pageID&&(i.pageID=e.pageID()),t.categories&&(i.categories=e.categories()),t.sections&&(i.sections=e.sections().map((function(e){return e.json(t)}))),!0===e.isRedirect()&&(i.isRedirect=!0,i.redirectTo=e.data.redirectTo,i.sections=[]),t.coordinates&&(i.coordinates=e.coordinates()),t.infoboxes&&(i.infoboxes=e.infoboxes().map((function(e){return e.json(t)}))),t.images&&(i.images=e.images().map((function(e){return e.json(t)}))),t.plaintext&&(i.plaintext=e.text(t)),(t.citations||t.references)&&(i.references=e.references()),i},f=["dab","disamb","disambig","disambiguation","aðgreining","aimai","ałtsʼáʼáztiin","anlam ayrımı","anlam ayrımı","apartigilo","argipen","begriepskloorenge","begriffsklärung","begriffsklärung","begriffsklärung","begriffsklearung","bisongidila","bkl","bokokani","caddayn","clerheans","cudakirin","čvor","db","desambig","desambigación","desambiguação","desambiguació","desambiguación","desambiguáncia","desambiguasion","desambiguassiù","desambigui","dezambiguizare","dəqiqləşdirmə","disambigua","disambigua","disambigua","disambìgua","disambigua","disambiguasi","disambiguasi","discretiva","disheñvelout","disingkek","dixanbigua","dixebra","diżambigwazzjoni","doorverwijspagina","dp","dp","dubbelsinnig","dudalipen","dv","egyért","fleiri týdningar","fleirtyding","flertydig","förgrening","gì-ngiê","giklaro","gwahaniaethu","homonimo","homónimos","homonymie","huaʻōlelo puana like","idirdhealú","khu-pia̍t","kthjellim","kujekesa","maana","maneo bin","mehrdüdig begreep","menm non","muardüüdag artiikel","neibetsjuttings","nozīmju atdalīšana","nuorodinis","nyahkekaburan","omonimeye","omonimia","page dé frouque","paglilinaw","panangilawlawag","pansayod","pejy mitovy anarana","peker","razdvojba","razločitev","razvrstavanje","reddaghey","rozcestník","rozlišovacia stránka","sclerir noziun","selvendyssivu","soilleireachadh","suzmunski","täpsustuslehekülg","täsmennyssivu","telplänov","tlahtolmelahuacatlaliztli","trang định hướng","ujednoznacznienie","verdudeliking","wěcejwóznamowosć","wjacezmyslnosć","zambiguaçon","zeimeibu škiršona","αποσαφήνιση","айрық","аҵакырацәа","вишезначна одредница","ибҳомзудоӣ","кёб магъаналы","күп мәгънәләр","күп мәғәнәлелек","мъногосъмꙑслиѥ","неадназначнасць","неадназначнасьць","неоднозначность","олон удхатай","појаснување","пояснение","са шумуд манавал","салаа утгатай","суолталар","текмаанисиздик","цо магіна гуреб","чеперушка","чолхалла","шуко ончыктымаш-влак","მრავალმნიშვნელოვანი","բազմիմաստութիւն","բազմիմաստություն","באדייטן","פירושונים","ابهام‌زدایی","توضيح","توضيح","دقیقلشدیرمه","ڕوونکردنەوە","سلجهائپ","ضد ابہام","گجگجی بیری","نامبهمېدنه","መንታ","अस्पष्टता","बहुअर्थी","बहुविकल्पी शब्द","দ্ব্যর্থতা নিরসন","ਗੁੰਝਲ-ਖੋਲ੍ਹ","સંદિગ્ધ શીર્ષક","பக்கவழி நெறிப்படுத்தல்","అయోమయ నివృత్తి","ದ್ವಂದ್ವ ನಿವಾರಣೆ","വിവക്ഷകൾ","වක්‍රෝත්ති","แก้ความกำกวม","သံတူကြောင်းကွဲ","ណែនាំ","동음이의","扤清楚","搞清楚","曖昧さ回避","消歧义","釋義","gestion dj'omònim","sut'ichana qillqa"],g=f.reduce((function(e,t){return e[t]=!0,e}),{}),h=" disambiguation",b=["dab","dab","disamb","disambig","geodis","hndis","setindex","ship index","split dab","sport index","wp disambig","disambiguation cleanup","airport"+h,"biology"+h,"call sign"+h,"caselaw"+h,"chinese title"+h,"genus"+h,"hospital"+h,"lake index","letter"+h,"letter-number combination"+h,"mathematical"+h,"military unit"+h,"mountainindex","number"+h,"phonetics"+h,"place name"+h,"portal"+h,"road"+h,"school"+h,"species latin name abbreviation"+h,"species latin name"+h,"station"+h,"synagogue"+h,"taxonomic authority"+h,"taxonomy"+h].reduce((function(e,t){return e[t]=!0,e}),{}),k=function(e){if(e.templates().find((function(e){return b.hasOwnProperty(e.template)||g.hasOwnProperty(e.template)})))return!0;if(e.sentences(0)){var t=e.sentences(0).text();if(null!==t&&t[0]&&!0===/. may refer to ./i.test(t))return!0}return!1},w={caption:!0,alt:!0,links:!0,thumb:!0,url:!0},v=function(e,t){t=p(t,w);var i={file:e.file()};return!1!==t.thumb&&(i.thumb=e.thumbnail()),!1!==t.url&&(i.url=e.url()),!1!==t.caption&&e.data.caption&&(i.caption=e.caption(),!1!==t.links&&e.data.caption.links()&&(i.links=e.links())),!1!==t.alt&&e.data.alt&&(i.alt=e.alt()),i},y="https://wikipedia.org/wiki/Special:Redirect/file/",x=function(e){var t=function(e){var t=e.replace(/^(image|file?)\:/i,"");return t=(t=t.charAt(0).toUpperCase()+t.substring(1)).trim().replace(/ /g,"_")}(e);return t=encodeURIComponent(t)},$=function(e){Object.defineProperty(this,"data",{enumerable:!1,value:e})},j={file:function(){return this.data.file||""},alt:function(){var e=this.data.alt||this.data.file||"";return(e=(e=e.replace(/^(file|image):/i,"")).replace(/\.(jpg|jpeg|png|gif|svg)/i,"")).replace(/_/g," ")},caption:function(){return this.data.caption?this.data.caption.text():""},links:function(){return this.data.caption?this.data.caption.links():[]},url:function(){return y+x(this.file())},thumbnail:function(e){e=e||300;var t=x(this.file());return y+t+"?width="+e},format:function(){var e=this.file().split(".");return e[e.length-1]?e[e.length-1].toLowerCase():null},json:function(e){return v(this,e=e||{})},text:function(){return""}};Object.keys(j).forEach((function(e){$.prototype[e]=j[e]})),$.prototype.src=$.prototype.url,$.prototype.thumb=$.prototype.thumbnail;var z=$,O={tables:!0,lists:!0,paragraphs:!0},E=function(e){Object.defineProperty(this,"data",{enumerable:!1,value:e})},_={title:function(e){if(void 0!==e)return this.data.title=e,e;if(this.data.title)return this.data.title;var t=null,i=this.sentences(0);return i&&(t=i.bolds(0)),t},pageID:function(e){return void 0!==e&&(this.data.pageID=e),this.data.pageID},language:function(e){return void 0!==e&&(this.data.lang=e),this.data.lang},url:function(){var e=this.title();if(!e)return null;var t=this.language()||"en",i=this.data.domain||"wikipedia.org";return e=e.replace(/ /g,"_"),e=encodeURIComponent(e),"https://".concat(t,".").concat(i,"/wiki/").concat(e)},namespace:function(e){return void 0!==e&&(this.data.namespace=e),this.data.namespace},isRedirect:function(){return"redirect"===this.data.type},redirectTo:function(){return this.data.redirectTo},isDisambiguation:function(){return k(this)},categories:function(e){return"number"==typeof e?this.data.categories[e]:this.data.categories||[]},sections:function(e){var t=this,i=this.data.sections||[];if(i.forEach((function(e){return e.doc=t})),"string"==typeof e){var n=e.toLowerCase().trim();return i.find((function(e){return e.title().toLowerCase()===n}))}return"number"==typeof e?i[e]:i},paragraphs:function(e){var t=[];return this.data.sections.forEach((function(e){t=t.concat(e.paragraphs())})),"number"==typeof e?t[e]:t},paragraph:function(e){var t=this.paragraphs()||[];return"number"==typeof e?t[e]:t[0]},sentences:function(e){var t=[];return this.sections().forEach((function(e){t=t.concat(e.sentences())})),"number"==typeof e?t[e]:t},sentence:function(){return this.sentences(0)},images:function(e){var t=l(this,"images",null);return this.infoboxes().forEach((function(e){var i=e.image();i&&t.unshift(i)})),this.templates().forEach((function(e){"gallery"===e.template&&(e.images=e.images||[],e.images.forEach((function(e){e instanceof z==!1&&(e=new z(e)),t.push(e)})))})),"number"==typeof e?t[e]:t},image:function(){return this.images(0)},links:function(e){return l(this,"links",e)},interwiki:function(e){return l(this,"interwiki",e)},lists:function(e){return l(this,"lists",e)},tables:function(e){return l(this,"tables",e)},templates:function(e){return l(this,"templates",e)},references:function(e){return l(this,"references",e)},coordinates:function(e){return l(this,"coordinates",e)},infoboxes:function(e){var t=l(this,"infoboxes");return t=t.sort((function(e,t){return Object.keys(e.data).length>Object.keys(t.data).length?-1:1})),"number"==typeof e?t[e]:t},text:function(e){return e=p(e,O),!0===this.isRedirect()?"":this.sections().map((function(t){return t.text(e)})).join("\n\n")},json:function(e){return e=p(e,O),d(this,e)},debug:function(){return console.log("\n"),this.sections().forEach((function(e){for(var t=" - ",i=0;i<e.depth;i+=1)t=" -"+t;console.log(t+(e.title()||"(Intro)"))})),this}};["sections","infoboxes","sentences","citations","references","coordinates","tables","lists","links","images","templates","categories"].forEach((function(e){var t=e.replace(/ies$/,"y");t=(t=t.replace(/oxes$/,"ox")).replace(/s$/,""),_[t]=function(t){t=t||0;var i,n=this[e](t);return i=n,"[object Array]"===Object.prototype.toString.call(i)?n[0]:n}})),Object.keys(_).forEach((function(e){E.prototype[e]=_[e]})),E.prototype.lang=E.prototype.language,E.prototype.ns=E.prototype.namespace,E.prototype.plaintext=E.prototype.text,E.prototype.isDisambig=E.prototype.isDisambiguation,E.prototype.citations=E.prototype.references,E.prototype.redirectsTo=E.prototype.redirectTo,E.prototype.redirect=E.prototype.redirectTo,E.prototype.redirects=E.prototype.redirectTo;var S=E,C={categories:["category","abdeeling","bólkur","catagóir","categori","categoria","categoria","categoría","categorîa","categorìa","catégorie","categorie","catègorie","category","categuria","catigurìa","class","ẹ̀ka","flocc","flocc","flokkur","grup","jamii","kaarangay","kateggoría","kategooria","kategori","kategorî","kategoria","kategória","kategorie","kategoriija","kategorija","kategorio","kategoriya","kategoriýa","kategoriye","kategory","kategorya","kateqoriya","katiguriya","klad","luokka","ñemohenda","roinn","ronney","rummad","setensele","sokajy","sumut","thể","turkum","категорија","категория","категорія","катэгорыя","төркем","קטגוריה","تصنيف","تۈر","رده","श्रेणी","श्रेणी","বিষয়শ্রেণী","หมวดหมู่","분류","분류","分类"],disambig:f,images:["file","image","चित्र","archivo","attēls","berkas","bestand","datei","dosiero","dosya","fájl","fasciculus","fichier","fil","fitxategi","fitxer","gambar","imagem","imej","immagine","larawan","lêer","plik","restr","slika","wêne","wobraz","выява","податотека","слика","файл","სურათი","պատկեր","קובץ","پرونده","دوتنه","ملف","وێنە","चित्र","ไฟล์","파일","ファイル"],infoboxes:["infobox","anfo","anuāmapa","bilgi kutusu","bilgi","bilgiquti","boaty","boestkelaouiñ","bosca","capsa","diehtokássa","faktamall","ficha","generalni","gwybodlen3","info","infobokis","infoboks","infochascha","infokašćik","infokast","infokutija","infolentelė","infopolje","informkesto","infoskreine","infotaula","inligtingskas","inligtingskas3","inligtingskas4","kishtey","kotak","tertcita","tietolaatikko","yerleşim bilgi kutusu","ynfoboks","πλαίσιο","акарточка","аҥа","инфобокс","инфокутија","инфокутия","інфобокс","канадский","картка","карточка","карточка2","карточкарус","картуш","қуттӣ","ინფოდაფა","տեղեկաքարտ","אינפאקעסטל","תבנית","بطاقة","ڄاڻخانو","خانہ","لغة","ज्ञानसन्दूक","তথ্যছক","ਜਾਣਕਾਰੀਡੱਬਾ","సమాచారపెట్టె","තොරතුරුකොටුව","กล่องข้อมูล","ប្រអប់ព័ត៌មាន","정보상자","明細"],redirects:["adkas","aýdaw","doorverwijzing","ohjaus","patrz","přesměruj","redirección","redireccion","redirección","redirecionamento","redirect","redirection","redirection","rinvia","tilvísun","uudelleenohjaus","weiterleitung","weiterleitung","yönlendi̇r","yönlendirme","yönlendi̇rme","ανακατευθυνση","айдау","перанакіраваньне","перенаправлення","пренасочување","преусмери","преусмјери","تغییر_مسیر","تغییرمسیر","تغییرمسیر","เปลี่ยนทาง","ប្តូរទីតាំងទៅ","転送","重定向"],references:["references","reference","einzelnachweise","referencias","références","notes et références","脚注","referenser","bronnen","примечания"]},q={aa:"Afar",ab:"Аҧсуа",af:"Afrikaans",ak:"Akana",als:"Alemannisch",am:"አማርኛ",an:"Aragonés",ang:"Englisc",ar:"العربية",arc:"ܣܘܪܬ",as:"অসমীয়া",ast:"Asturianu",av:"Авар",ay:"Aymar",az:"Azərbaycanca",ba:"Башҡорт",bar:"Boarisch","bat-smg":"Žemaitėška",bcl:"Bikol",be:"Беларуская","be-x-old":"ltr",bg:"Български",bh:"भोजपुरी",bi:"Bislama",bm:"Bamanankan",bn:"বাংলা",bo:"བོད་ཡིག",bpy:"ltr",br:"Brezhoneg",bs:"Bosanski",bug:"ᨅᨔ",bxr:"ltr",ca:"Català",cdo:"Chinese",ce:"Нохчийн",ceb:"Sinugboanong",ch:"Chamoru",cho:"Choctaw",chr:"ᏣᎳᎩ",chy:"Tsetsêhestâhese",co:"Corsu",cr:"Nehiyaw",cs:"Česky",csb:"Kaszëbsczi",cu:"Slavonic",cv:"Чăваш",cy:"Cymraeg",da:"Dansk",de:"Deutsch",diq:"Zazaki",dsb:"ltr",dv:"ދިވެހިބަސް",dz:"ཇོང་ཁ",ee:"Ɛʋɛ",far:"فارسی",el:"Ελληνικά",en:"English",eo:"Esperanto",es:"Español",et:"Eesti",eu:"Euskara",ext:"Estremeñu",ff:"Fulfulde",fi:"Suomi","fiu-vro":"Võro",fj:"Na",fo:"Føroyskt",fr:"Français",frp:"Arpitan",fur:"Furlan",fy:"ltr",ga:"Gaeilge",gan:"ltr",gd:"ltr",gil:"Taetae",gl:"Galego",gn:"Avañe'ẽ",got:"gutisk",gu:"ગુજરાતી",gv:"Gaelg",ha:"هَوُسَ",hak:"ltr",haw:"Hawai`i",he:"עברית",hi:"हिन्दी",ho:"ltr",hr:"Hrvatski",ht:"Krèyol",hu:"Magyar",hy:"Հայերեն",hz:"Otsiherero",ia:"Interlingua",id:"Bahasa",ie:"Interlingue",ig:"Igbo",ii:"ltr",ik:"Iñupiak",ilo:"Ilokano",io:"Ido",is:"Íslenska",it:"Italiano",iu:"ᐃᓄᒃᑎᑐᑦ",ja:"日本語",jbo:"Lojban",jv:"Basa",ka:"ქართული",kg:"KiKongo",ki:"Gĩkũyũ",kj:"Kuanyama",kk:"Қазақша",kl:"Kalaallisut",km:"ភាសាខ្មែរ",kn:"ಕನ್ನಡ",khw:"کھوار",ko:"한국어",kr:"Kanuri",ks:"कश्मीरी",ksh:"Ripoarisch",ku:"Kurdî",kv:"Коми",kw:"Kernewek",ky:"Kırgızca",la:"Latina",lad:"Dzhudezmo",lan:"Leb",lb:"Lëtzebuergesch",lg:"Luganda",li:"Limburgs",lij:"Líguru",lmo:"Lumbaart",ln:"Lingála",lo:"ລາວ",lt:"Lietuvių",lv:"Latviešu","map-bms":"Basa",mg:"Malagasy",man:"官話",mh:"Kajin",mi:"Māori",min:"Minangkabau",mk:"Македонски",ml:"മലയാളം",mn:"Монгол",mo:"Moldovenească",mr:"मराठी",ms:"Bahasa",mt:"bil-Malti",mus:"Muskogee",my:"Myanmasa",na:"Dorerin",nah:"Nahuatl",nap:"Nnapulitano",nd:"ltr",nds:"Plattdüütsch","nds-nl":"Saxon",ne:"नेपाली",new:"नेपालभाषा",ng:"Oshiwambo",nl:"Nederlands",nn:"ltr",no:"Norsk",nr:"ltr",nso:"ltr",nrm:"Nouormand",nv:"Diné",ny:"Chi-Chewa",oc:"Occitan",oj:"ᐊᓂᔑᓈᐯᒧᐎᓐ",om:"Oromoo",or:"ଓଡ଼ିଆ",os:"Иронау",pa:"ਪੰਜਾਬੀ",pag:"Pangasinan",pam:"Kapampangan",pap:"Papiamentu",pdc:"ltr",pi:"Pāli",pih:"Norfuk",pl:"Polski",pms:"Piemontèis",ps:"پښتو",pt:"Português",qu:"Runa",rm:"ltr",rmy:"Romani",rn:"Kirundi",ro:"Română","roa-rup":"Armâneashti",ru:"Русский",rw:"Kinyarwandi",sa:"संस्कृतम्",sc:"Sardu",scn:"Sicilianu",sco:"Scots",sd:"सिनधि",se:"ltr",sg:"Sängö",sh:"Srpskohrvatski",si:"සිංහල",simple:"ltr",sk:"Slovenčina",sl:"Slovenščina",sm:"Gagana",sn:"chiShona",so:"Soomaaliga",sq:"Shqip",sr:"Српски",ss:"SiSwati",st:"ltr",su:"Basa",sv:"Svenska",sw:"Kiswahili",ta:"தமிழ்",te:"తెలుగు",tet:"Tetun",tg:"Тоҷикӣ",th:"ไทย",ti:"ትግርኛ",tk:"Туркмен",tl:"Tagalog",tlh:"tlhIngan-Hol",tn:"Setswana",to:"Lea",tpi:"ltr",tr:"Türkçe",ts:"Xitsonga",tt:"Tatarça",tum:"chiTumbuka",tw:"Twi",ty:"Reo",udm:"Удмурт",ug:"Uyƣurqə",uk:"Українська",ur:"اردو",uz:"Ўзбек",ve:"Tshivenḓa",vi:"Việtnam",vec:"Vèneto",vls:"ltr",vo:"Volapük",wa:"Walon",war:"Winaray",wo:"Wollof",xal:"Хальмг",xh:"isiXhosa",yi:"ייִדיש",yo:"Yorùbá",za:"Cuengh",zh:"中文","zh-classical":"ltr","zh-min-nan":"Bân-lâm-gú","zh-yue":"粵語",zu:"isiZulu"},N=".wikipedia.org/wiki/$1",A=".wikimedia.org/wiki/$1",L="www.",D={acronym:L+"acronymfinder.com/$1.html",advisory:"advisory"+A,advogato:L+"advogato.org/$1",aew:"wiki.arabeyes.org/$1",appropedia:L+"appropedia.org/$1",aquariumwiki:L+"theaquariumwiki.com/$1",arborwiki:"localwiki.org/ann-arbor/$1",arxiv:"arxiv.org/abs/$1",atmwiki:L+"otterstedt.de/wiki/index.php/$1",baden:L+"stadtwiki-baden-baden.de/wiki/$1/",battlestarwiki:"en.battlestarwiki.org/wiki/$1",bcnbio:"historiapolitica.bcn.cl/resenas_parlamentarias/wiki/$1",beacha:L+"beachapedia.org/$1",betawiki:"translatewiki.net/wiki/$1",bibcode:"adsabs.harvard.edu/abs/$1",bibliowiki:"wikilivres.org/wiki/$1",bluwiki:"bluwiki.com/go/$1",blw:"britainloves"+N,botwiki:"botwiki.sno.cc/wiki/$1",boxrec:L+"boxrec.com/media/index.php?$1",brickwiki:L+"brickwiki.info/wiki/$1",bugzilla:"bugzilla.wikimedia.org/show_bug.cgi?id=$1",bulba:"bulbapedia.bulbagarden.net/wiki/$1",c:"commons"+A,c2:"c2.com/cgi/wiki?$1",c2find:"c2.com/cgi/wiki?FindPage&value=$1",cache:L+"google.com/search?q=cache:$1","ĉej":"esperanto.blahus.cz/cxej/vikio/index.php/$1",cellwiki:"cell.wikia.com/wiki/$1",centralwikia:"community.wikia.com/wiki/$1",chej:"esperanto.blahus.cz/cxej/vikio/index.php/$1",choralwiki:L+"cpdl.org/wiki/index.php/$1",citizendium:"en.citizendium.org/wiki/$1",ckwiss:L+"ck-wissen.de/ckwiki/index.php?title=$1",comixpedia:L+"comixpedia.org/index.php?title=$1",commons:"commons"+A,communityscheme:"community.schemewiki.org/?c=s&key=$1",communitywiki:"communitywiki.org/$1",comune:"rete.comuni-italiani.it/wiki/$1",creativecommons:"creativecommons.org/licenses/$1",creativecommonswiki:"wiki.creativecommons.org/$1",cxej:"esperanto.blahus.cz/cxej/vikio/index.php/$1",dcc:L+"dccwiki.com/$1",dcdatabase:"dc.wikia.com/$1",dcma:"christian-morgenstern.de/dcma/index.php?title=$1",debian:"wiki.debian.org/$1",delicious:L+"delicious.com/tag/$1",devmo:"developer.mozilla.org/en/docs/$1",dictionary:L+"dict.org/bin/Dict?Database=*&Form=Dict1&Strategy=*&Query=$1",dict:L+"dict.org/bin/Dict?Database=*&Form=Dict1&Strategy=*&Query=$1",disinfopedia:"sourcewatch.org/index.php/$1",distributedproofreaders:L+"pgdp.net/wiki/$1",distributedproofreadersca:L+"pgdpcanada.net/wiki/index.php/$1",dmoz:"curlie.org/$1",dmozs:"curlie.org/search?q=$1",doi:"doi.org/$1",donate:"donate"+A,doom_wiki:"doom.wikia.com/wiki/$1",download:"releases.wikimedia.org/$1",dbdump:"dumps.wikimedia.org/$1/latest/",dpd:"lema.rae.es/dpd/?key=$1",drae:"dle.rae.es/?w=$1",dreamhost:"wiki.dreamhost.com/index.php/$1",drumcorpswiki:L+"drumcorpswiki.com/index.php/$1",dwjwiki:L+"suberic.net/cgi-bin/dwj/wiki.cgi?$1","eĉei":L+"ikso.net/cgi-bin/wiki.pl?$1",ecoreality:L+"EcoReality.org/wiki/$1",ecxei:L+"ikso.net/cgi-bin/wiki.pl?$1",elibre:"enciclopedia.us.es/index.php/$1",emacswiki:L+"emacswiki.org/emacs?$1",encyc:"encyc.org/wiki/$1",energiewiki:L+"netzwerk-energieberater.de/wiki/index.php/$1",englyphwiki:"en.glyphwiki.org/wiki/$1",enkol:"enkol.pl/$1",eokulturcentro:"esperanto.toulouse.free.fr/nova/wikini/wakka.php?wiki=$1",esolang:"esolangs.org/wiki/$1",etherpad:"etherpad.wikimedia.org/$1",ethnologue:L+"ethnologue.com/language/$1",ethnologuefamily:L+"ethnologue.com/show_family.asp?subid=$1",evowiki:"wiki.cotch.net/index.php/$1",exotica:L+"exotica.org.uk/wiki/$1",fanimutationwiki:"wiki.animutationportal.com/index.php/$1",fedora:"fedoraproject.org/wiki/$1",finalfantasy:"finalfantasy.wikia.com/wiki/$1",finnix:L+"finnix.org/$1",flickruser:L+"flickr.com/people/$1",flickrphoto:L+"flickr.com/photo.gne?id=$1",floralwiki:L+"floralwiki.co.uk/wiki/$1",foldoc:"foldoc.org/$1",foundation:"foundation"+A,foundationsite:"wikimediafoundation.org/$1",foxwiki:"fox.wikis.com/wc.dll?Wiki~$1",freebio:"freebiology.org/wiki/$1",freebsdman:L+"FreeBSD.org/cgi/man.cgi?apropos=1&query=$1",freeculturewiki:"wiki.freeculture.org/index.php/$1",freedomdefined:"freedomdefined.org/$1",freefeel:"freefeel.org/wiki/$1",freekiwiki:"wiki.freegeek.org/index.php/$1",freesoft:"directory.fsf.org/wiki/$1",ganfyd:"ganfyd.org/index.php?title=$1",gardenology:L+"gardenology.org/wiki/$1",gausswiki:"gauss.ffii.org/$1",gentoo:"wiki.gentoo.org/wiki/$1",genwiki:"wiki.genealogy.net/index.php/$1",gerrit:"gerrit.wikimedia.org/r/$1",git:"gerrit.wikimedia.org/g/$1",google:L+"google.com/search?q=$1",googledefine:L+"google.com/search?q=define:$1",googlegroups:"groups.google.com/groups?q=$1",guildwarswiki:"wiki.guildwars.com/wiki/$1",guildwiki:"guildwars.wikia.com/wiki/$1",guc:"tools.wmflabs.org/guc/?user=$1",gucprefix:"tools.wmflabs.org/guc/?isPrefixPattern=1&src=rc&user=$1",gutenberg:L+"gutenberg.org/etext/$1",gutenbergwiki:L+"gutenberg.org/wiki/$1",hackerspaces:"hackerspaces.org/wiki/$1",h2wiki:"halowiki.net/p/$1",hammondwiki:L+"dairiki.org/HammondWiki/index.php3?$1",hdl:"hdl.handle.net/$1",heraldik:"heraldik-wiki.de/wiki/$1",heroeswiki:"heroeswiki.com/$1",horizonlabs:"horizon.wikimedia.org/$1",hrwiki:L+"hrwiki.org/index.php/$1",hrfwiki:"fanstuff.hrwiki.org/index.php/$1",hupwiki:"wiki.hup.hu/index.php/$1",iarchive:"archive.org/details/$1",imdbname:L+"imdb.com/name/nm$1/",imdbtitle:L+"imdb.com/title/tt$1/",imdbcompany:L+"imdb.com/company/co$1/",imdbcharacter:L+"imdb.com/character/ch$1/",incubator:"incubator"+A,infosecpedia:"infosecpedia.org/wiki/$1",infosphere:"theinfosphere.org/$1","iso639-3":"iso639-3.sil.org/code/$1",issn:L+"worldcat.org/issn/$1",iuridictum:"iuridictum.pecina.cz/w/$1",jaglyphwiki:"glyphwiki.org/wiki/$1",jefo:"esperanto-jeunes.org/wiki/$1",jerseydatabase:"jerseydatabase.com/wiki.php?id=$1",jira:"jira.toolserver.org/browse/$1",jspwiki:L+"ecyrd.com/JSPWiki/Wiki.jsp?page=$1",jstor:L+"jstor.org/journals/$1",kamelo:"kamelopedia.mormo.org/index.php/$1",karlsruhe:"ka.stadtwiki.net/$1",kinowiki:"kino.skripov.com/index.php/$1",komicawiki:"wiki.komica.org/?$1",kontuwiki:"kontu.wiki/$1",wikitech:"wikitech"+A,libreplanet:"libreplanet.org/wiki/$1",linguistlist:"linguistlist.org/forms/langs/LLDescription.cfm?code=$1",linuxwiki:L+"linuxwiki.de/$1",linuxwikide:L+"linuxwiki.de/$1",liswiki:"liswiki.org/wiki/$1",literateprograms:"en.literateprograms.org/$1",livepedia:L+"livepedia.gr/index.php?title=$1",localwiki:"localwiki.org/$1",lojban:"mw.lojban.org/papri/$1",lostpedia:"lostpedia.wikia.com/wiki/$1",lqwiki:"wiki.linuxquestions.org/wiki/$1",luxo:"tools.wmflabs.org/guc/?user=$1",mail:"lists.wikimedia.org/mailman/listinfo/$1",mailarchive:"lists.wikimedia.org/pipermail/$1",mariowiki:L+"mariowiki.com/$1",marveldatabase:L+"marveldatabase.com/wiki/index.php/$1",meatball:"meatballwiki.org/wiki/$1",mw:L+"mediawiki.org/wiki/$1",mediazilla:"bugzilla.wikimedia.org/$1",memoryalpha:"memory-alpha.fandom.com/wiki/$1",metawiki:"meta"+A,metawikimedia:"meta"+A,metawikipedia:"meta"+A,mineralienatlas:L+"mineralienatlas.de/lexikon/index.php/$1",moinmoin:"moinmo.in/$1",monstropedia:L+"monstropedia.org/?title=$1",mosapedia:"mosapedia.de/wiki/index.php/$1",mozcom:"mozilla.wikia.com/wiki/$1",mozillawiki:"wiki.mozilla.org/$1",mozillazinekb:"kb.mozillazine.org/$1",musicbrainz:"musicbrainz.org/doc/$1",mediawikiwiki:L+"mediawiki.org/wiki/$1",mwod:L+"merriam-webster.com/dictionary/$1",mwot:L+"merriam-webster.com/thesaurus/$1",nkcells:L+"nkcells.info/index.php?title=$1",nara:"catalog.archives.gov/id/$1",nosmoke:"no-smok.net/nsmk/$1",nost:"nostalgia."+N,nostalgia:"nostalgia."+N,oeis:"oeis.org/$1",oldwikisource:"wikisource.org/wiki/$1",olpc:"wiki.laptop.org/go/$1",omegawiki:L+"omegawiki.org/Expression:$1",onelook:L+"onelook.com/?ls=b&w=$1",openlibrary:"openlibrary.org/$1",openstreetmap:"wiki.openstreetmap.org/wiki/$1",openwetware:"openwetware.org/wiki/$1",opera7wiki:"operawiki.info/$1",organicdesign:L+"organicdesign.co.nz/$1",orthodoxwiki:"orthodoxwiki.org/$1",osmwiki:"wiki.openstreetmap.org/wiki/$1",otrs:"ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom&TicketID=$1",otrswiki:"otrs-wiki"+A,ourmedia:L+"socialtext.net/ourmedia/index.cgi?$1",outreach:"outreach"+A,outreachwiki:"outreach"+A,owasp:L+"owasp.org/index.php/$1",panawiki:"wiki.alairelibre.net/index.php?title=$1",patwiki:"gauss.ffii.org/$1",personaltelco:"personaltelco.net/wiki/$1",petscan:"petscan.wmflabs.org/?psid=$1",phab:"phabricator.wikimedia.org/$1",phabricator:"phabricator.wikimedia.org/$1",phwiki:L+"pocketheaven.com/ph/wiki/index.php?title=$1",phpwiki:"phpwiki.sourceforge.net/phpwiki/index.php?$1",planetmath:"planetmath.org/node/$1",pmeg:L+"bertilow.com/pmeg/$1",pmid:L+"ncbi.nlm.nih.gov/pubmed/$1?dopt=Abstract",pokewiki:"pokewiki.de/$1","pokéwiki":"pokewiki.de/$1",policy:"policy.wikimedia.org/$1",proofwiki:L+"proofwiki.org/wiki/$1",pyrev:L+"mediawiki.org/wiki/Special:Code/pywikipedia/$1",pythoninfo:"wiki.python.org/moin/$1",pythonwiki:L+"pythonwiki.de/$1",pywiki:"c2.com/cgi/wiki?$1",psycle:"psycle.sourceforge.net/wiki/$1",quality:"quality"+A,quarry:"quarry.wmflabs.org/$1",regiowiki:"regiowiki.at/wiki/$1",rev:L+"mediawiki.org/wiki/Special:Code/MediaWiki/$1",revo:"purl.org/NET/voko/revo/art/$1.html",rfc:"tools.ietf.org/html/rfc$1",rheinneckar:"rhein-neckar-wiki.de/$1",robowiki:"robowiki.net/?$1",rodovid:"en.rodovid.org/wk/$1",reuterswiki:"glossary.reuters.com/index.php/$1",rowiki:"wiki.rennkuckuck.de/index.php/$1",rt:"rt.wikimedia.org/Ticket/Display.html?id=$1",s23wiki:"s23.org/wiki/$1",scholar:"scholar.google.com/scholar?q=$1",schoolswp:"schools-"+N,scores:"imslp.org/wiki/$1",scoutwiki:"en.scoutwiki.org/$1",scramble:L+"scramble.nl/wiki/index.php?title=$1",seapig:L+"seapig.org/$1",seattlewiki:"seattle.wikia.com/wiki/$1",slwiki:"wiki.secondlife.com/wiki/$1","semantic-mw":L+"semantic-mediawiki.org/wiki/$1",senseislibrary:"senseis.xmp.net/?$1",sharemap:"sharemap.org/$1",silcode:L+"sil.org/iso639-3/documentation.asp?id=$1",slashdot:"slashdot.org/article.pl?sid=$1",sourceforge:"sourceforge.net/$1",spcom:"spcom"+A,species:"species"+A,squeak:"wiki.squeak.org/squeak/$1",stats:"stats.wikimedia.org/$1",stewardry:"tools.wmflabs.org/meta/stewardry/?wiki=$1",strategy:"strategy"+A,strategywiki:"strategywiki.org/wiki/$1",sulutil:"meta.wikimedia.org/wiki/Special:CentralAuth/$1",swtrain:"train.spottingworld.com/$1",svn:"svn.wikimedia.org/viewvc/mediawiki/$1?view=log",swinbrain:"swinbrain.ict.swin.edu.au/wiki/$1",tabwiki:L+"tabwiki.com/index.php/$1",tclerswiki:"wiki.tcl.tk/$1",technorati:L+"technorati.com/search/$1",tenwiki:"ten."+N,testwiki:"test."+N,testwikidata:"test.wikidata.org/wiki/$1",test2wiki:"test2."+N,tfwiki:"tfwiki.net/wiki/$1",thelemapedia:L+"thelemapedia.org/index.php/$1",theopedia:L+"theopedia.com/$1",thinkwiki:L+"thinkwiki.org/wiki/$1",ticket:"ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom&TicketNumber=$1",tmbw:"tmbw.net/wiki/$1",tmnet:L+"technomanifestos.net/?$1",tmwiki:L+"EasyTopicMaps.com/?page=$1",toolforge:"tools.wmflabs.org/$1",toollabs:"tools.wmflabs.org/$1",tools:"toolserver.org/$1",tswiki:L+"mediawiki.org/wiki/Toolserver:$1",translatewiki:"translatewiki.net/wiki/$1",tviv:"tviv.org/wiki/$1",tvtropes:L+"tvtropes.org/pmwiki/pmwiki.php/Main/$1",twiki:"twiki.org/cgi-bin/view/$1",tyvawiki:L+"tyvawiki.org/wiki/$1",umap:"umap.openstreetmap.fr/$1",uncyclopedia:"en.uncyclopedia.co/wiki/$1",unihan:L+"unicode.org/cgi-bin/GetUnihanData.pl?codepoint=$1",unreal:"wiki.beyondunreal.com/wiki/$1",urbandict:L+"urbandictionary.com/define.php?term=$1",usej:L+"tejo.org/usej/$1",usemod:L+"usemod.com/cgi-bin/wiki.pl?$1",usability:"usability"+A,utrs:"utrs.wmflabs.org/appeal.php?id=$1",vikidia:"fr.vikidia.org/wiki/$1",vlos:"tusach.thuvienkhoahoc.com/wiki/$1",vkol:"kol.coldfront.net/thekolwiki/index.php/$1",voipinfo:L+"voip-info.org/wiki/view/$1",votewiki:"vote"+A,werelate:L+"werelate.org/wiki/$1",wg:"wg-en."+N,wikia:L+"wikia.com/wiki/w:c:$1",wikiasite:L+"wikia.com/wiki/w:c:$1",wikiapiary:"wikiapiary.com/wiki/$1",wikibooks:"en.wikibooks.org/wiki/$1",wikichristian:L+"wikichristian.org/index.php?title=$1",wikicities:L+"wikia.com/wiki/w:$1",wikicity:L+"wikia.com/wiki/w:c:$1",wikiconference:"wikiconference.org/wiki/$1",wikidata:L+"wikidata.org/wiki/$1",wikif1:L+"wikif1.org/$1",wikifur:"en.wikifur.com/wiki/$1",wikihow:L+"wikihow.com/$1",wikiindex:"wikiindex.org/$1",wikilemon:"wiki.illemonati.com/$1",wikilivres:"wikilivres.org/wiki/$1",wikilivresru:"wikilivres.ru/$1","wikimac-de":"apfelwiki.de/wiki/Main/$1",wikimedia:"foundation"+A,wikinews:"en.wikinews.org/wiki/$1",wikinfo:"wikinfo.org/w/index.php/$1",wikinvest:"meta.wikimedia.org/wiki/Interwiki_map/discontinued#Wikinvest",wikiotics:"wikiotics.org/$1",wikipapers:"wikipapers.referata.com/wiki/$1",wikipedia:"en."+N,wikipediawikipedia:"en.wikipedia.org/wiki/Wikipedia:$1",wikiquote:"en.wikiquote.org/wiki/$1",wikisophia:"wikisophia.org/index.php?title=$1",wikisource:"en.wikisource.org/wiki/$1",wikispecies:"species"+A,wikispot:"wikispot.org/?action=gotowikipage&v=$1",wikiskripta:L+"wikiskripta.eu/index.php/$1",labsconsole:"wikitech"+A,wikiti:"wikiti.denglend.net/index.php?title=$1",wikiversity:"en.wikiversity.org/wiki/$1",wikivoyage:"en.wikivoyage.org/wiki/$1",betawikiversity:"beta.wikiversity.org/wiki/$1",wikiwikiweb:"c2.com/cgi/wiki?$1",wiktionary:"en.wiktionary.org/wiki/$1",wipipedia:"wipipedia.org/index.php/$1",wlug:L+"wlug.org.nz/$1",wmam:"am"+A,wmar:L+"wikimedia.org.ar/wiki/$1",wmat:"mitglieder.wikimedia.at/$1",wmau:"wikimedia.org.au/wiki/$1",wmbd:"bd"+A,wmbe:"be"+A,wmbr:"br"+A,wmca:"ca"+A,wmch:L+"wikimedia.ch/$1",wmcl:L+"wikimediachile.cl/index.php?title=$1",wmcn:"cn"+A,wmco:"co"+A,wmcz:L+"wikimedia.cz/web/$1",wmdc:"wikimediadc.org/wiki/$1",securewikidc:"secure.wikidc.org/$1",wmde:"wikimedia.de/wiki/$1",wmdk:"dk"+A,wmee:"ee"+A,wmec:"ec"+A,wmes:L+"wikimedia.es/wiki/$1",wmet:"ee"+A,wmfdashboard:"outreachdashboard.wmflabs.org/$1",wmfi:"fi"+A,wmfr:"wikimedia.fr/$1",wmge:"ge"+A,wmhi:"hi"+A,wmhk:"meta.wikimedia.org/wiki/Wikimedia_Hong_Kong",wmhu:"wikimedia.hu/wiki/$1",wmid:"id"+A,wmil:L+"wikimedia.org.il/$1",wmin:"wiki.wikimedia.in/$1",wmit:"wiki.wikimedia.it/wiki/$1",wmke:"meta.wikimedia.org/wiki/Wikimedia_Kenya",wmmk:"mk"+A,wmmx:"mx"+A,wmnl:"nl"+A,wmnyc:"nyc"+A,wmno:"no"+A,"wmpa-us":"pa-us"+A,wmph:"meta.wikimedia.org/wiki/Wikimedia_Philippines",wmpl:"pl"+A,wmpt:"pt"+A,wmpunjabi:"punjabi"+A,wmromd:"romd"+A,wmrs:"rs"+A,wmru:"ru"+A,wmse:"se"+A,wmsk:"wikimedia.sk/$1",wmtr:"tr"+A,wmtw:"wikimedia.tw/wiki/index.php5/$1",wmua:"ua"+A,wmuk:"wikimedia.org.uk/wiki/$1",wmve:"wikimedia.org.ve/wiki/$1",wmza:"wikimedia.org.za/wiki/$1",wm2005:"wikimania2005"+A,wm2006:"wikimania2006"+A,wm2007:"wikimania2007"+A,wm2008:"wikimania2008"+A,wm2009:"wikimania2009"+A,wm2010:"wikimania2010"+A,wm2011:"wikimania2011"+A,wm2012:"wikimania2012"+A,wm2013:"wikimania2013"+A,wm2014:"wikimania2014"+A,wm2015:"wikimania2015"+A,wm2016:"wikimania2016"+A,wm2017:"wikimania2017"+A,wm2018:"wikimania2018"+A,wmania:"wikimania"+A,wikimania:"wikimania"+A,wmteam:"wikimaniateam"+A,wmf:"foundation"+A,wmfblog:"blog.wikimedia.org/$1",wmdeblog:"blog.wikimedia.de/$1",wookieepedia:"starwars.wikia.com/wiki/$1",wowwiki:L+"wowwiki.com/$1",wqy:"wqy.sourceforge.net/cgi-bin/index.cgi?$1",wurmpedia:"wurmpedia.com/index.php/$1",viaf:"viaf.org/viaf/$1",zrhwiki:L+"zrhwiki.ch/wiki/$1",zum:"wiki.zum.de/$1",zwiki:L+"zwiki.org/$1",m:"meta"+A,meta:"meta"+A,sep11:"sep11."+N,d:L+"wikidata.org/wiki/$1",minnan:"zh-min-nan."+N,nb:"no."+N,"zh-cfr":"zh-min-nan."+N,"zh-cn":"zh."+N,"zh-tw":"zh."+N,nan:"zh-min-nan."+N,vro:"fiu-vro."+N,cmn:"zh."+N,lzh:"zh-classical."+N,rup:"roa-rup."+N,gsw:"als."+N,"be-tarask":"be-x-old."+N,sgs:"bat-smg."+N,egl:"eml."+N,w:"en."+N,wikt:"en.wiktionary.org/wiki/$1",q:"en.wikiquote.org/wiki/$1",b:"en.wikibooks.org/wiki/$1",n:"en.wikinews.org/wiki/$1",s:"en.wikisource.org/wiki/$1",chapter:"en"+A,v:"en.wikiversity.org/wiki/$1",voy:"en.wikivoyage.org/wiki/$1"};Object.keys(q).forEach((function(e){D[e]=e+".wikipedia.org/wiki/$1"}));var I=function(e){var t=e.page||"";if(-1!==t.indexOf(":")){var i=t.match(/^(.*):(.*)/);if(null===i)return e;var n=i[1]||"";if(n=n.toLowerCase(),!1===D.hasOwnProperty(n))return e;e.wiki=n,e.page=i[2]}return e},T=/^:?(category|catégorie|Kategorie|Categoría|Categoria|Categorie|Kategoria|تصنيف|image|file|image|fichier|datei|media):/i,P=/\[(https?|news|ftp|mailto|gopher|irc)(:\/\/[^\]\| ]{4,1500})([\| ].*?)?\]/g,R=/\[\[(.{0,160}?)\]\]([a-z]+)?(\w{0,10})/gi,M=function(e){var t=[];if(0!==(t=function(e,t){return t.replace(R,(function(t,i,n){var a=null,r=i;if(i.match(/\|/)&&(r=(i=i.replace(/\[\[(.{2,100}?)\]\](\w{0,10})/g,"$1$2")).replace(/(.{2,100})\|.{0,200}/,"$1"),null===(a=i.replace(/.{2,100}?\|/,""))&&r.match(/\|$/)&&(a=r=r.replace(/\|$/,""))),r.match(T))return i;var o={page:r,raw:t};return o.page=o.page.replace(/#(.*)/,(function(e,t){return o.anchor=t,""})),(o=I(o)).wiki&&(o.type="interwiki"),null!==a&&a!==o.page&&(o.text=a),n&&(o.text=o.text||o.page,o.text+=n.trim()),o.page&&!1===/^[A-Z]/.test(o.page)&&(o.text||(o.text=o.page),o.page=o.page),e.push(o),i})),e}(t=function(e,t){return t.replace(P,(function(t,i,n,a){return a=a||"",e.push({type:"external",site:i+n,text:a.trim(),raw:t}),a})),e}(t,e),e)).length)return t},U=new RegExp("^[ \n\t]*?#("+C.redirects.join("|")+") *?(\\[\\[.{2,180}?\\]\\])","i"),F=function(e){return!(!e||e.length>500)&&U.test(e)},K=function(e){var t=e.match(U);return t&&t[2]?(M(t[2])||[])[0]:{}},B=["table","code","score","data","categorytree","charinsert","hiero","imagemap","inputbox","nowiki","poem","references","source","syntaxhighlight","timeline"],W="< ?(".concat(B.join("|"),") ?[^>]{0,200}?>"),Y="< ?/ ?(".concat(B.join("|"),") ?>"),Z=new RegExp("".concat(W,"[").concat("\\s\\S","]+?").concat(Y),"ig"),G=function(e){return(e=(e=(e=(e=(e=(e=(e=e.replace(Z," ")).replace(/ ?< ?(span|div|table|data) [a-zA-Z0-9=%\.#:;'" ]{2,100}\/? ?> ?/g," ")).replace(/ ?< ?(ref) [a-zA-Z0-9=" ]{2,100}\/ ?> ?/g," ")).replace(/ ?<[ \/]?(p|sub|sup|span|nowiki|div|table|br|tr|td|th|pre|pre2|hr)[ \/]?> ?/g," ")).replace(/ ?<[ \/]?(abbr|bdi|bdo|blockquote|cite|del|dfn|em|i|ins|kbd|mark|q|s|small)[ \/]?> ?/g," ")).replace(/ ?<[ \/]?h[0-9][ \/]?> ?/g," ")).replace(/ ?< ?br ?\/> ?/g,"\n")).trim()};var H=function(e){var t=e.wiki;t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(/<!--[\s\S]{0,2000}?-->/g,"")).replace(/__(NOTOC|NOEDITSECTION|FORCETOC|TOC)__/gi,"")).replace(/~~{1,3}/g,"")).replace(/\r/g,"")).replace(/\u3002/g,". ")).replace(/----/g,"")).replace(/\{\{\}\}/g," – ")).replace(/\{\{\\\}\}/g," / ")).replace(/&nbsp;/g," "),t=(t=(t=G(t)).replace(/\([,;: ]+?\)/g,"")).replace(/{{(baseball|basketball) (primary|secondary) (style|color).*?\}\}/i,""),e.wiki=t},V=/[\\\.$]/,J=function(e){return"string"!=typeof e&&(e=""),e=(e=(e=e.replace(/\\/g,"\\\\")).replace(/^\$/,"\\u0024")).replace(/\./g,"\\u002e")},Q=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.keys(e),i=0;i<t.length;i+=1)if(!0===V.test(t[i])){var n=J(t[i]);n!==t[i]&&(e[n]=e[t[i]],delete e[t[i]])}return e},X={headers:!0,depth:!0,paragraphs:!0,images:!0,tables:!0,templates:!0,infoboxes:!0,lists:!0,references:!0},ee=function(e,t){var i={};if(!0===(t=p(t,X)).headers&&(i.title=e.title()),!0===t.depth&&(i.depth=e.depth),!0===t.paragraphs){var n=e.paragraphs().map((function(e){return e.json(t)}));n.length>0&&(i.paragraphs=n)}if(!0===t.images){var a=e.images().map((function(e){return e.json(t)}));a.length>0&&(i.images=a)}if(!0===t.tables){var r=e.tables().map((function(e){return e.json(t)}));r.length>0&&(i.tables=r)}if(!0===t.templates){var o=e.templates();o.length>0&&(i.templates=o,!0===t.encode&&i.templates.forEach((function(e){return Q(e)})))}if(!0===t.infoboxes){var s=e.infoboxes().map((function(e){return e.json(t)}));s.length>0&&(i.infoboxes=s)}if(!0===t.lists){var c=e.lists().map((function(e){return e.json(t)}));c.length>0&&(i.lists=c)}if(!0===t.references||!0===t.citations){var u=e.references().map((function(e){return e.json(t)}));u.length>0&&(i.references=u)}return!0===t.sentences&&(i.sentences=e.sentences().map((function(e){return e.json(t)}))),i},te={tables:!0,references:!0,paragraphs:!0,templates:!0,infoboxes:!0},ie=function(e){this.depth=e.depth,this.doc=null,this._title=e.title||"",Object.defineProperty(this,"doc",{enumerable:!1,value:null}),e.templates=e.templates||[],Object.defineProperty(this,"data",{enumerable:!1,value:e})},ne={title:function(){return this._title||""},index:function(){if(!this.doc)return null;var e=this.doc.sections().indexOf(this);return-1===e?null:e},indentation:function(){return this.depth},sentences:function(e){var t=this.paragraphs().reduce((function(e,t){return e.concat(t.sentences())}),[]);return"number"==typeof e?t[e]:t||[]},paragraphs:function(e){var t=this.data.paragraphs||[];return"number"==typeof e?t[e]:t||[]},paragraph:function(e){var t=this.data.paragraphs||[];return"number"==typeof e?t[e]:t[0]},links:function(e){var t=[];if(this.infoboxes().forEach((function(i){i.links(e).forEach((function(e){return t.push(e)}))})),this.sentences().forEach((function(i){i.links(e).forEach((function(e){return t.push(e)}))})),this.tables().forEach((function(i){i.links(e).forEach((function(e){return t.push(e)}))})),this.lists().forEach((function(i){i.links(e).forEach((function(e){return t.push(e)}))})),"number"==typeof e)return t[e];if("string"==typeof e){e=e.charAt(0).toUpperCase()+e.substring(1);var i=t.find((function(t){return t.page()===e}));return void 0===i?[]:[i]}return t},tables:function(e){var t=this.data.tables||[];return"number"==typeof e?t[e]:t},templates:function(e){var t=this.data.templates||[];return t=t.map((function(e){return e.json()})),"number"==typeof e?t[e]:"string"==typeof e?(e=e.toLowerCase(),t.filter((function(t){return t.template===e||t.name===e}))):t},infoboxes:function(e){var t=this.data.infoboxes||[];return"number"==typeof e?t[e]:t},coordinates:function(e){var t=[].concat(this.templates("coord"),this.templates("coor"));return"number"==typeof e?t[e]?t[e]:[]:t},lists:function(e){var t=[];return this.paragraphs().forEach((function(e){t=t.concat(e.lists())})),"number"==typeof e?t[e]:t},interwiki:function(e){var t=[];return this.paragraphs().forEach((function(e){t=t.concat(e.interwiki())})),"number"==typeof e?t[e]:t||[]},images:function(e){var t=[];return this.paragraphs().forEach((function(e){t=t.concat(e.images())})),"number"==typeof e?t[e]:t||[]},references:function(e){var t=this.data.references||[];return"number"==typeof e?t[e]:t},remove:function(){if(!this.doc)return null;var e={};e[this.title()]=!0,this.children().forEach((function(t){return e[t.title()]=!0}));var t=this.doc.data.sections;return t=t.filter((function(t){return!0!==e.hasOwnProperty(t.title())})),this.doc.data.sections=t,this.doc},nextSibling:function(){if(!this.doc)return null;for(var e=this.doc.sections(),t=this.index()+1;t<e.length;t+=1){if(e[t].depth<this.depth)return null;if(e[t].depth===this.depth)return e[t]}return null},lastSibling:function(){return this.doc&&this.doc.sections()[this.index()-1]||null},children:function(e){if(!this.doc)return null;var t=this.doc.sections(),i=this.index(),n=[];if(t[i+1]&&t[i+1].depth>this.depth)for(var a=i+1;a<t.length&&t[a].depth>this.depth;a+=1)n.push(t[a]);return"string"==typeof e?(e=e.toLowerCase(),n.find((function(t){return t.title().toLowerCase()===e}))):"number"==typeof e?n[e]:n},parent:function(){if(!this.doc)return null;for(var e=this.doc.sections(),t=this.index();t>=0;t-=1)if(e[t]&&e[t].depth<this.depth)return e[t];return null},text:function(e){e=p(e,te);var t=this.paragraphs();return(t=t.map((function(t){return t.text(e)}))).join("\n\n")},json:function(e){return e=p(e,te),ee(this,e)}};ne.next=ne.nextSibling,ne.last=ne.lastSibling,ne.previousSibling=ne.lastSibling,ne.previous=ne.lastSibling,ne.citations=ne.references,ne.sections=ne.children,Object.keys(ne).forEach((function(e){ie.prototype[e]=ne[e]}));var ae=ie,re=function(e){return e&&"string"==typeof e?e=(e=(e=(e=e.replace(/^\s\s*/,"")).replace(/\s\s*$/,"")).replace(/ {2}/," ")).replace(/\s, /,", "):""},oe={type:"internal"},se=function(e){e=e||{},e=Object.assign({},oe,e),Object.defineProperty(this,"data",{enumerable:!1,value:e})},ce={text:function(e){return void 0!==e&&(this.data.text=e),this.data.text},json:function(){var e={text:this.text(),type:this.type()};"internal"===e.type?e.page=this.page():"interwiki"===e.type?e.wiki=this.wiki():e.site=this.site();var t=this.anchor();return t&&(e.anchor=t),e},page:function(e){return void 0!==e&&(this.data.page=e),this.data.page},anchor:function(e){return void 0!==e&&(this.data.anchor=e),this.data.anchor||""},wiki:function(e){return void 0!==e&&(this.data.wiki=e),this.data.wiki},type:function(e){return void 0!==e&&(this.data.type=e),this.data.type},site:function(e){return void 0!==e&&(this.data.site=e),this.data.site},href:function(){var e=this.type();if("external"===e)return this.site();var t=this.page();t=t.replace(/ /g,"_"),t=encodeURIComponent(t);var i="";if("interwiki"===e){var n=this.wiki();i="https://en.wikipedia.org/wiki/$1",D.hasOwnProperty(n)&&(i="http://"+D[this.wiki()]),i=i.replace(/\$1/g,t)}else i="./".concat(this.page());return this.anchor()&&(i+="#"+this.anchor()),i}};Object.keys(ce).forEach((function(e){se.prototype[e]=ce[e]}));var ue=se,le=function(e){var t=e.text,i=M(t)||[];e.links=i.map((function(e){return t=t.replace(e.raw,e.text||e.page||""),delete e.raw,new ue(e)})),t=t.replace(/\[\[File:(.{2,80}?)\|([^\]]+?)\]\](\w{0,5})/g,"$1"),e.text=t},pe=function(e){var t=[],i=[],n=e.text||"";return n=(n=(n=(n=n.replace(/'''''(.{0,200}?)'''''/g,(function(e,n){return t.push(n),i.push(n),n}))).replace(/''''(.{0,200}?)''''/g,(function(e,i){return t.push("'".concat(i,"'")),"'".concat(i,"'")}))).replace(/'''(.{0,200}?)'''/g,(function(e,i){return t.push(i),i}))).replace(/''(.{0,200}?)''/g,(function(e,t){return i.push(t),t})),e.text=n,t.length>0&&(e.fmt=e.fmt||{},e.fmt.bold=t),i.length>0&&(e.fmt=e.fmt||{},e.fmt.italic=i),e},me=/^[0-9,.]+$/,de={text:!0,links:!0,formatting:!0,numbers:!0},fe=function(e,t){t=p(t,de);var i={},n=e.text();if(!0===t.text&&(i.text=n),!0===t.numbers&&me.test(n)){var a=Number(n.replace(/,/g,""));!1===isNaN(a)&&(i.number=a)}return t.links&&e.links().length>0&&(i.links=e.links().map((function(e){return e.json()}))),t.formatting&&e.data.fmt&&(i.formatting=e.data.fmt),i},ge=function(e){Object.defineProperty(this,"data",{enumerable:!1,value:e})},he={links:function(e){var t=this.data.links||[];if("number"==typeof e)return t[e];if("string"==typeof e){e=e.charAt(0).toUpperCase()+e.substring(1);var i=t.find((function(t){return t.page===e}));return void 0===i?[]:[i]}return t},interwiki:function(e){var t=this.links().filter((function(e){return void 0!==e.wiki}));return"number"==typeof e?t[e]:t},bolds:function(e){var t=[];return this.data&&this.data.fmt&&this.data.fmt.bold&&(t=this.data.fmt.bold||[]),"number"==typeof e?t[e]:t},italics:function(e){var t=[];return this.data&&this.data.fmt&&this.data.fmt.italic&&(t=this.data.fmt.italic||[]),"number"==typeof e?t[e]:t},dates:function(e){var t=[];return"number"==typeof e?t[e]:t},text:function(e){return void 0!==e&&"string"==typeof e&&(this.data.text=e),this.data.text||""},json:function(e){return fe(this,e)}};Object.keys(he).forEach((function(e){ge.prototype[e]=he[e]})),ge.prototype.italic=ge.prototype.italics,ge.prototype.bold=ge.prototype.bolds,ge.prototype.plaintext=ge.prototype.text;var be=ge,ke=["ad","adj","adm","adv","al","alta","approx","apr","apt","arc","ariz","assn","asst","atty","aug","ave","ba","bc","bl","bldg","blvd","brig","bros","ca","cal","calif","capt","cca","cg","cl","cm","cmdr","co","col","colo","comdr","conn","corp","cpl","cres","ct","cyn","dak","dec","def","dept","det","dg","dist","dl","dm","dr","ea","eg","eng","esp","esq","est","etc","ex","exp","feb","fem","fig","fl oz","fl","fla","fm","fr","ft","fy","ga","gal","gb","gen","gov","hg","hon","hr","hrs","hwy","hz","ia","ida","ie","inc","inf","jan","jd","jr","jul","jun","kan","kans","kb","kg","km","kmph","lat","lb","lit","llb","lm","lng","lt","ltd","lx","ma","maj","mar","masc","mb","md","messrs","mg","mi","min","minn","misc","mister","ml","mlle","mm","mme","mph","mps","mr","mrs","ms","mstr","mt","neb","nebr","nee","no","nov","oct","okla","ont","op","ord","oz","pa","pd","penn","penna","phd","pl","pp","pref","prob","prof","pron","ps","psa","pseud","pt","pvt","qt","que","rb","rd","rep","reps","res","rev","sask","sec","sen","sens","sep","sept","sfc","sgt","sir","situ","sq ft","sq","sr","ss","st","supt","surg","tb","tbl","tbsp","tce","td","tel","temp","tenn","tex","tsp","univ","usafa","ut","va","vb","ver","vet","vitro","vivo","vol","vs","vt","wis","wisc","wr","wy","wyo","yb","µg"].concat("[^]][^]]"),we=new RegExp("(^| |')("+ke.join("|")+")[.!?] ?$","i"),ve=new RegExp("[ |.|'|[][A-Z].? *?$","i"),ye=new RegExp("\\.\\.\\.* +?$"),xe=/ c\. $/,$e=new RegExp("[a-zа-яぁ-ゟ][a-zа-яぁ-ゟ゠-ヿ]","iu"),je=function(e){var t=[],i=[];if(!e||"string"!=typeof e||0===e.trim().length)return t;for(var n=function(e){var t=e.split(/(\n+)/);return function(e){var t=[];return e.forEach((function(e){t=t.concat(e)})),t}(t=(t=t.filter((function(e){return e.match(/\S/)}))).map((function(e){return e.split(/(\S.+?[.!?]"?)(?=\s+|$)/g)})))}(e),a=0;a<n.length;a++){var r=n[a];if(r&&""!==r){if(!r.match(/\S/)){if(i[i.length-1]){i[i.length-1]+=r;continue}if(n[a+1]){n[a+1]=r+n[a+1];continue}}i.push(r)}}for(var o,s=0;s<i.length;s++)i[s+1]&&((o=i[s]).match(we)||o.match(ve)||o.match(ye)||o.match(xe)||!1===$e.test(o)||!function(e){var t=(e=e||"").split(/\[\[/)||[],i=e.split(/\]\]/)||[];if(t.length>i.length)return!1;var n=e.match(/"/g);return!(n&&n.length%2!=0&&e.length<900)}(o))?i[s+1]=i[s]+(i[s+1]||""):i[s]&&i[s].length>0&&(t.push(i[s]),i[s]="");return 0===t.length?[e]:t};function ze(e){var t,i={text:e};return le(i),i.text=(t=(t=(t=i.text).replace(/\([,;: ]*\)/g,"")).replace(/\( *(; ?)+/g,"("),t=(t=re(t)).replace(/ +\.$/,".")),i=pe(i),new be(i)}var Oe=ze,Ee=function(e){var t=je(e.wiki);(t=t.map(ze))[0]&&t[0].text()&&":"===t[0].text()[0]&&(t=t.slice(1)),e.sentences=t},_e=function(e){return e=(e=e.replace(/^\{\{/,"")).replace(/\}\}$/,"")},Se=function(e){return e=(e=(e=(e||"").trim()).toLowerCase()).replace(/_/g," ")},Ce=function(e){var t=e.split(/\n?\|/);t.forEach((function(e,i){null!==e&&(/\[\[[^\]]+$/.test(e)||/\{\{[^\}]+$/.test(e)||e.split("{{").length!==e.split("}}").length||e.split("[[").length!==e.split("]]").length)&&(t[i+1]=t[i]+"|"+t[i+1],t[i]=null)}));for(var i=(t=(t=t.filter((function(e){return null!==e}))).map((function(e){return(e||"").trim()}))).length-1;i>=0;i-=1){""===t[i]&&t.pop();break}return t},qe=/^[ '-\)\x2D\.0-9_a-z\xC0-\xFF\u0153\u017F\u1E9E\u212A\u212B]+=/i,Ne={template:!0,list:!0,prototype:!0},Ae=function(e,t){var i=0;return e.reduce((function(e,n){if(n=(n||"").trim(),!0===qe.test(n)){var a=function(e){var t=e.split("="),i=t[0]||"";i=i.toLowerCase().trim();var n=t.slice(1).join("=");return Ne.hasOwnProperty(i)&&(i="_"+i),{key:i,val:n.trim()}}(n);if(a.key)return e[a.key]=a.val,e}t&&t[i]?e[t[i]]=n:(e.list=e.list||[],e.list.push(n));return i+=1,e}),{})},Le={classname:!0,style:!0,align:!0,margin:!0,left:!0,break:!0,boxsize:!0,framestyle:!0,item_style:!0,collapsible:!0,list_style_type:!0,"list-style-type":!0,colwidth:!0},De=function(e){return Object.keys(e).forEach((function(t){!0===Le[t.toLowerCase()]&&delete e[t],null!==e[t]&&""!==e[t]||delete e[t]})),e},Ie=Oe,Te=function(e,t){var i=Ie(e);return"json"===t?i.json():"raw"===t?i:i.text()},Pe=function(e,t,i){t=t||[],e=_e(e||"");var n=Ce(e),a=n.shift(),r=Ae(n,t);return(r=De(r))[1]&&t[0]&&!1===r.hasOwnProperty(t[0])&&(r[t[0]]=r[1],delete r[1]),Object.keys(r).forEach((function(e){r[e]="list"!==e?Te(r[e],i):r[e].map((function(e){return Te(e,i)}))})),a&&(r.template=Se(a)),r},Re=function(e){Object.defineProperty(this,"data",{enumerable:!1,value:e})},Me={title:function(){var e=this.data;return e.title||e.encyclopedia||e.author||""},links:function(e){var t=[];if("number"==typeof e)return t[e];if("number"==typeof e)return t[e];if("string"==typeof e){e=e.charAt(0).toUpperCase()+e.substring(1);var i=t.find((function(t){return t.page()===e}));return void 0===i?[]:[i]}return t||[]},text:function(){return""},json:function(){return this.data}};Object.keys(Me).forEach((function(e){Re.prototype[e]=Me[e]}));var Ue=Re,Fe=Oe,Ke=function(e){return/^ *?\{\{ *?(cite|citation)/i.test(e)&&/\}\} *?$/.test(e)&&!1===/citation needed/i.test(e)},Be=function(e){var t=Pe(e);return t.type=t.template.replace(/cite /,""),t.template="citation",t},We=function(e){return{template:"citation",type:"inline",data:{},inline:Fe(e)||{}}},Ye=function(e){var t=[],i=e.wiki;i=(i=(i=(i=i.replace(/ ?<ref>([\s\S]{0,1800}?)<\/ref> ?/gi,(function(e,n){if(Ke(n)){var a=Be(n);a&&t.push(a),i=i.replace(n,"")}else t.push(We(n));return" "}))).replace(/ ?<ref [^>]{0,200}?\/> ?/gi," ")).replace(/ ?<ref [^>]{0,200}?>([\s\S]{0,1800}?)<\/ref> ?/gi,(function(e,n){if(Ke(n)){var a=Be(n);a&&t.push(a),i=i.replace(n,"")}else t.push(We(n));return" "}))).replace(/ ?<[ \/]?[a-z0-9]{1,8}[a-z0-9=" ]{2,20}[ \/]?> ?/g," "),e.references=t.map((function(e){return new Ue(e)})),e.wiki=i},Ze=Oe,Ge=/^(={1,5})(.{1,200}?)={1,5}$/,He=function(e,t){var i=t.match(Ge);if(!i)return e.title="",e.depth=0,e;var n=i[2]||"",a={wiki:n=(n=Ze(n).text()).replace(/\{\{.+?\}\}/,"")};Ye(a),n=re(n=a.wiki);var r=0;return i[1]&&(r=i[1].length-2),e.title=n,e.depth=r,e},Ve=function(e){var t=[],i=[];e=function(e){return e=e.filter((function(e){return e&&!0!==/^\|\+/.test(e)})),!0===/^{\|/.test(e[0])&&e.shift(),!0===/^\|}/.test(e[e.length-1])&&e.pop(),!0===/^\|-/.test(e[0])&&e.shift(),e}(e);for(var n=0;n<e.length;n+=1){var a=e[n];!0===/^\|-/.test(a)?i.length>0&&(t.push(i),i=[]):(!(a=a.split(/(?:\|\||!!)/))[0]&&a[1]&&a.shift(),a.forEach((function(e){e=(e=e.replace(/^\| */,"")).trim(),i.push(e)})))}return i.length>0&&t.push(i),t},Je=/.*rowspan *?= *?["']?([0-9]+)["']?[ \|]*/,Qe=/.*colspan *?= *?["']?([0-9]+)["']?[ \|]*/,Xe=function(e){return e=function(e){return e.forEach((function(t,i){t.forEach((function(n,a){var r=n.match(Je);if(null!==r){var o=parseInt(r[1],10);n=n.replace(Je,""),t[a]=n;for(var s=i+1;s<i+o&&e[s];s+=1)e[s].splice(a,0,n)}}))})),e}(e=function(e){return e.forEach((function(e){e.forEach((function(t,i){var n=t.match(Qe);if(null!==n){var a=parseInt(n[1],10);e[i]=t.replace(Qe,"");for(var r=1;r<a;r+=1)e.splice(i+1,0,"")}}))})),e=e.filter((function(e){return e.length>0}))}(e))},et=Oe,tt=/^!/,it={name:!0,age:!0,born:!0,date:!0,year:!0,city:!0,country:!0,population:!0,count:!0,number:!0},nt=function(e){return(e=et(e).text()).match(/\|/)&&(e=e.replace(/.+\| ?/,"")),e=(e=(e=e.replace(/style=['"].*?["']/,"")).replace(/^!/,"")).trim()},at=function(e){return(e=e||[]).length-e.filter((function(e){return e})).length>3},rt=function(e){if(e.length<=3)return[];var t=e[0].slice(0);t=t.map((function(e){return e=e.replace(/^\! */,""),e=et(e).text(),e=(e=nt(e)).toLowerCase()}));for(var i=0;i<t.length;i+=1)if(it.hasOwnProperty(t[i]))return e.shift(),t;return[]},ot=function(e){var t=e.replace(/\r/g,"").replace(/\n(\s*[^|!{\s])/g," $1").split(/\n/).map((function(e){return e.trim()})),i=Ve(t);if(0===(i=i.filter((function(e){return e}))).length)return[];i=function(e){return e=e.filter((function(e){return 1!==e.length||!e[0]||!tt.test(e[0])||!1!==/rowspan/i.test(e[0])}))}(i);var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[];at(e[0])&&e.shift();var i=e[0];return i&&i[0]&&i[1]&&(/^!/.test(i[0])||/^!/.test(i[1]))&&(t=i.map((function(e){return e=e.replace(/^\! */,""),e=nt(e)})),e.shift()),(i=e[0])&&i[0]&&i[1]&&/^!/.test(i[0])&&/^!/.test(i[1])&&(i.forEach((function(e,i){e=e.replace(/^\! */,""),e=nt(e),!0===Boolean(e)&&(t[i]=e)})),e.shift()),t}(i=Xe(i));if(!n||n.length<=1){n=rt(i);var a=i[i.length-1]||[];n.length<=1&&a.length>2&&(n=rt(i.slice(1))).length>0&&(i=i.slice(2))}return i.map((function(e){return function(e,t){var i={};return e.forEach((function(e,n){var a=t[n]||"col"+(n+1),r=et(e);r.text(nt(r.text())),i[a]=r})),i}(e,n)}))},st=function(e,t){return e.map((function(e){var i={};return Object.keys(e).forEach((function(t){i[t]=e[t].json()})),!0===t.encode&&(i=Q(i)),i}))},ct={},ut=function(e){Object.defineProperty(this,"data",{enumerable:!1,value:e})},lt={links:function(e){var t=[];if(this.data.forEach((function(e){Object.keys(e).forEach((function(i){t=t.concat(e[i].links())}))})),"number"==typeof e)return t[e];if("string"==typeof e){e=e.charAt(0).toUpperCase()+e.substring(1);var i=t.find((function(t){return t.page()===e}));return void 0===i?[]:[i]}return t},keyValue:function(e){var t=this.json(e);return t.forEach((function(e){Object.keys(e).forEach((function(t){e[t]=e[t].text}))})),t},json:function(e){return e=p(e,ct),st(this.data,e)},text:function(){return""}};lt.keyvalue=lt.keyValue,lt.keyval=lt.keyValue,Object.keys(lt).forEach((function(e){ut.prototype[e]=lt[e]}));var pt=ut,mt=/^\s*{\|/,dt=/^\s*\|}/,ft=function(e){for(var t=[],i=e.wiki,n=i.split("\n"),a=[],r=0;r<n.length;r+=1)if(!0!==mt.test(n[r]))if(!0!==dt.test(n[r]))a.length>0&&(a[a.length-1]+="\n"+n[r]);else{a[a.length-1]+="\n"+n[r];var o=a.pop();t.push(o)}else a.push(n[r]);var s=[];t.forEach((function(e){if(e){i=(i=i.replace(e+"\n","")).replace(e,"");var t=ot(e);t&&t.length>0&&s.push(new pt(t))}})),s.length>0&&(e.tables=s),e.wiki=i},gt={sentences:!0},ht=function(e,t){var i={};return!0===(t=p(t,gt)).sentences&&(i.sentences=e.sentences().map((function(e){return e.json(t)}))),i},bt={sentences:!0,lists:!0,images:!0},kt=function(e){Object.defineProperty(this,"data",{enumerable:!1,value:e})},wt={sentences:function(e){return"number"==typeof e?this.data.sentences[e]:this.data.sentences||[]},references:function(e){return"number"==typeof e?this.data.references[e]:this.data.references},lists:function(e){return"number"==typeof e?this.data.lists[e]:this.data.lists},images:function(e){return"number"==typeof e?this.data.images[e]:this.data.images||[]},links:function(e){var t=[];if(this.sentences().forEach((function(i){t=t.concat(i.links(e))})),"number"==typeof e)return t[e];if("string"==typeof e){e=e.charAt(0).toUpperCase()+e.substring(1);var i=t.find((function(t){return t.page()===e}));return void 0===i?[]:[i]}return t||[]},interwiki:function(e){var t=[];return this.sentences().forEach((function(e){t=t.concat(e.interwiki())})),"number"==typeof e?t[e]:t||[]},text:function(e){e=p(e,bt);var t=this.sentences().map((function(t){return t.text(e)})).join(" ");return this.lists().forEach((function(e){t+="\n"+e.text()})),t},json:function(e){return e=p(e,bt),ht(this,e)}};wt.citations=wt.references,Object.keys(wt).forEach((function(e){kt.prototype[e]=wt[e]}));var vt=kt;var yt=function(e){for(var t=[],i=[],n=e.split(""),a=0,r=0;r<n.length;r++){var o=e[r];if("["===o)a+=1;else if("]"===o)(a-=1)<0&&(a=0);else if(0===i.length)continue;if(i.push(o),0===a&&i.length>0){for(var s=0,c=0,u=0;u<i.length;u++)"["===i[u]?s++:"]"===i[u]&&c++;s>c&&i.push("]"),t.push(i.join("")),i=[]}}return t},xt=Oe,$t=new RegExp("("+C.images.join("|")+"):","i"),jt="(".concat(C.images.join("|"),")"),zt=new RegExp(jt+":(.+?)[\\||\\]]","iu"),Ot={thumb:!0,thumbnail:!0,border:!0,right:!0,left:!0,center:!0,top:!0,bottom:!0,none:!0,upright:!0,baseline:!0,middle:!0,sub:!0,super:!0},Et=function(e){var t=e.wiki;yt(t).forEach((function(i){if(!0===$t.test(i)){e.images=e.images||[];var n=function(e){var t=e.match(zt);if(null===t||!t[2])return null;var i="".concat(t[1],":").concat(t[2]||""),n=(i=i.trim()).charAt(0).toUpperCase()+i.substring(1);if(n=n.replace(/ /g,"_")){var a={file:i};e=(e=e.replace(/^\[\[/,"")).replace(/\]\]$/,"");var r=Pe(e),o=r.list||[];return r.alt&&(a.alt=r.alt),(o=o.filter((function(e){return!1===Ot.hasOwnProperty(e)})))[o.length-1]&&(a.caption=xt(o[o.length-1])),new z(a,e)}return null}(i);n&&e.images.push(n),t=t.replace(i,"")}})),e.wiki=t},_t={},St=function(e){Object.defineProperty(this,"data",{enumerable:!1,value:e})},Ct={lines:function(){return this.data},links:function(e){var t=[];if(this.lines().forEach((function(e){t=t.concat(e.links())})),"number"==typeof e)return t[e];if("string"==typeof e){e=e.charAt(0).toUpperCase()+e.substring(1);var i=t.find((function(t){return t.page()===e}));return void 0===i?[]:[i]}return t},json:function(e){return e=p(e,_t),this.lines().map((function(t){return t.json(e)}))},text:function(){return function(e,t){return e.map((function(e){return" * "+e.text(t)})).join("\n")}(this.data)}};Object.keys(Ct).forEach((function(e){St.prototype[e]=Ct[e]}));var qt=St,Nt=Oe,At=/^[#\*:;\|]+/,Lt=/^\*+[^:,\|]{4}/,Dt=/^ ?\#[^:,\|]{4}/,It=/[a-z_0-9\]\}]/i,Tt=function(e){return At.test(e)||Lt.test(e)||Dt.test(e)},Pt=function(e,t){for(var i=[],n=t;n<e.length&&Tt(e[n]);n++)i.push(e[n]);return i=function(e){var t=1;e=e.filter((function(e){return e}));for(var i=0;i<e.length;i++){var n=e[i];n.match(Dt)?(n=n.replace(/^ ?#*/,t+") "),n+="\n",t+=1):n.match(At)&&(t=1,n=n.replace(At,"")),e[i]=Nt(n)}return e}(i=i.filter((function(e){return e&&It.test(e)})))},Rt=Ee,Mt=/\r?\n\r?\n/,Ut={image:Et,list:function(e){for(var t=e.wiki.split(/\n/g),i=[],n=[],a=0;a<t.length;a++)if(Tt(t[a])&&t[a+1]&&Tt(t[a+1])){var r=Pt(t,a);r.length>0&&(i.push(r),a+=r.length-1)}else n.push(t[a]);e.lists=i.map((function(e){return new qt(e)})),e.wiki=n.join("\n")}},Ft=function(e){var t=e.wiki,i=t.split(Mt);i=(i=i.filter((function(e){return e&&e.trim().length>0}))).map((function(e){var t={wiki:e,lists:[],sentences:[],images:[]};return Ut.list(t),Ut.image(t),Rt(t),new vt(t)})),e.wiki=t,e.paragraphs=i},Kt=function(e,t){var i=Object.keys(e.data).reduce((function(t,i){return e.data[i]&&(t[i]=e.data[i].json()),t}),{});return!0===t.encode&&(i=Q(i)),i},Bt=function(e){return(e=(e=e.toLowerCase()).replace(/[-_]/g," ")).trim()},Wt=function(e){this._type=e.type,Object.defineProperty(this,"data",{enumerable:!1,value:e.data})},Yt={type:function(){return this._type},links:function(e){var t=this,i=[];if(Object.keys(this.data).forEach((function(e){t.data[e].links().forEach((function(e){return i.push(e)}))})),"number"==typeof e)return i[e];if("string"==typeof e){e=e.charAt(0).toUpperCase()+e.substring(1);var n=i.find((function(t){return t.page()===e}));return void 0===n?[]:[n]}return i},image:function(){var e=this.get("image")||this.get("image2")||this.get("logo");if(!e)return null;var t=e.json();return t.file=t.text,t.text="",new z(t)},get:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";e=Bt(e);for(var t=Object.keys(this.data),i=0;i<t.length;i+=1){var n=Bt(t[i]);if(e===n)return this.data[t[i]]}return null},text:function(){return""},json:function(e){return Kt(this,e=e||{})},keyValue:function(){var e=this;return Object.keys(this.data).reduce((function(t,i){return e.data[i]&&(t[i]=e.data[i].text()),t}),{})}};Object.keys(Yt).forEach((function(e){Wt.prototype[e]=Yt[e]})),Wt.prototype.data=Wt.prototype.keyValue,Wt.prototype.template=Wt.prototype.type,Wt.prototype.images=Wt.prototype.image;var Zt=Wt,Gt=function(e){for(var t=0,i=[],n=[],a=e.indexOf("{");-1!==a&&a<e.length;t>0?a++:a=e.indexOf("{",a+1)){var r=e[a];if("{"===r&&(t+=1),t>0){if("}"===r&&0===(t-=1)){n.push(r);var o=n.join("");n=[],/\{\{/.test(o)&&/\}\}/.test(o)&&i.push(o);continue}if(1===t&&"{"!==r&&"}"!==r){t=0,n=[];continue}n.push(r)}}return i},Ht=function(e){var t=null;return(t=/^\{\{[^\n]+\|/.test(e)?(e.match(/^\{\{(.+?)\|/)||[])[1]:-1!==e.indexOf("\n")?(e.match(/^\{\{(.+?)\n/)||[])[1]:(e.match(/^\{\{(.+?)\}\}$/)||[])[1])&&(t=t.replace(/:.*/,""),t=Se(t)),t||null},Vt=/\{\{/,Jt=function(e){return{body:e=e.replace(/#invoke:/,""),name:Ht(e),children:[]}},Qt=function e(t){var i=t.body.substr(2);return i=i.replace(/\}\}$/,""),t.children=Gt(i),t.children=t.children.map(Jt),0===t.children.length||t.children.forEach((function(t){var i=t.body.substr(2);return Vt.test(i)?e(t):null})),t},Xt=function(e){var t=Gt(e);return t=(t=t.map(Jt)).map(Qt)},ei=["anchor","defaultsort","use list-defined references","void","pp","pp-move-indef","pp-semi-indef","pp-vandalism","r","#tag","div col","pope list end","shipwreck list end","starbox end","end box","end","s-end"].reduce((function(e,t){return e[t]=!0,e}),{}),ti=new RegExp("^(subst.)?("+C.infoboxes.join("|")+")[: \n]","i"),ii=/^infobox /i,ni=/ infobox$/i,ai=/$Year in [A-Z]/i,ri={"gnf protein box":!0,"automatic taxobox":!0,"chembox ":!0,editnotice:!0,geobox:!0,hybridbox:!0,ichnobox:!0,infraspeciesbox:!0,mycomorphbox:!0,oobox:!0,"paraphyletic group":!0,speciesbox:!0,subspeciesbox:!0,"starbox short":!0,taxobox:!0,nhlteamseason:!0,"asian games bid":!0,"canadian federal election results":!0,"dc thomson comic strip":!0,"daytona 24 races":!0,edencharacter:!0,"moldova national football team results":!0,samurai:!0,protein:!0,"sheet authority":!0,"order-of-approx":!0,"bacterial labs":!0,"medical resources":!0,ordination:!0,"hockey team coach":!0,"hockey team gm":!0,"pro hockey team":!0,"hockey team player":!0,"hockey team start":!0,mlbbioret:!0},oi=function(e){return!0===ri.hasOwnProperty(e)||(!!ti.test(e)||(!(!ii.test(e)&&!ni.test(e))||!!ai.test(e)))},si=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.template.match(ti),i=e.template;t&&t[0]&&(i=i.replace(t[0],""));var n={template:"infobox",type:i=i.trim(),data:e};return delete n.data.template,delete n.data.list,n},ci=[void 0,"January","February","March","April","May","June","July","August","September","October","November","December"],ui=ci.reduce((function(e,t,i){return 0===i||(e[t.toLowerCase()]=i),e}),{}),li=function(e){return e<10?"0"+e:String(e)},pi=function(e){var t=String(e.year||"");if(void 0!==e.month&&!0===ci.hasOwnProperty(e.month))if(void 0===e.date)t="".concat(ci[e.month]," ").concat(e.year);else{if(t="".concat(ci[e.month]," ").concat(e.date,", ").concat(e.year),void 0!==e.hour&&void 0!==e.minute){var i="".concat(li(e.hour),":").concat(li(e.minute));void 0!==e.second&&(i=i+":"+li(e.second)),t=i+", "+t}e.tz&&(t+=" (".concat(e.tz,")"))}return t},mi=function(e){for(var t={},i=["year","month","date","hour","minute","second"],n=0;n<i.length;n+=1)if(e[n]||0===e[1]){var a=parseInt(e[n],10);if(!1===isNaN(a))t[i[n]]=a;else if("month"===i[n]&&ui.hasOwnProperty(e[n])){var r=ui[e[n]];t[i[n]]=r}else delete t[i[n]]}var o=e[e.length-1]||"";return"z"===(o=String(o)).toLowerCase()?t.tz="UTC":/[+-][0-9]+:[0-9]/.test(o)&&(t.tz=e[6]),t},di={reign:function(e){var t=Pe(e,["start","end"]);return"(r. ".concat(t.start," – ").concat(t.end,")")},circa:function(e){var t=Pe(e,["year"]);return"c. ".concat(t.year)},time:function(){var e=new Date,t=mi([e.getFullYear(),e.getMonth(),e.getDate()]);return pi(t)},monthname:0,oldstyledate:function(e){var t=Pe(e,["date","year"]),i=t.date;return t.year&&(i+=" "+t.year),i}},fi=function(e){return new Date("".concat(e.year,"-").concat(e.month||0,"-").concat(e.date||1)).getTime()},gi=function(e,t){e=fi(e);var i=(t=fi(t))-e,n={},a=Math.floor(i/31536e6,10);a>0&&(n.years=a,i-=31536e6*n.years);var r=Math.floor(i/2592e6,10);r>0&&(n.months=r,i-=2592e6*n.months);var o=Math.floor(i/864e5,10);return o>0&&(n.days=o),n},hi=mi,bi=pi,ki=function(e){return{template:"date",data:e}},wi=function(e){var t=(e=_e(e)).split("|"),i=hi(t.slice(1,4)),n=t.slice(4,7);if(0===n.length){var a=new Date;n=[a.getFullYear(),a.getMonth(),a.getDate()]}return{from:i,to:n=hi(n)}},vi={date:function(e,t){var i=Pe(e,["year","month","date","hour","minute","second","timezone"]),n=hi([i.year,i.month,i.date||i.day]);return i.text=bi(n),i.timezone&&("Z"===i.timezone&&(i.timezone="UTC"),i.text+=" (".concat(i.timezone,")")),i.hour&&i.minute&&(i.second?i.text="".concat(i.hour,":").concat(i.minute,":").concat(i.second,", ")+i.text:i.text="".concat(i.hour,":").concat(i.minute,", ")+i.text),i.text&&t.push(ki(i)),i.text},natural_date:function(e,t){var i=Pe(e,["text"]).text||"",n={};if(/^[0-9]{4}$/.test(i))n.year=parseInt(i,10);else{var a=i.replace(/[a-z]+\/[a-z]+/i,"");a=a.replace(/[0-9]+:[0-9]+(am|pm)?/i,"");var r=new Date(a);!1===isNaN(r.getTime())&&(n.year=r.getFullYear(),n.month=r.getMonth()+1,n.date=r.getDate())}return t.push(ki(n)),i.trim()},one_year:function(e,t){var i=Pe(e,["year"]),n=Number(i.year);return t.push(ki({year:n})),String(n)},two_dates:function(e,t){var i=Pe(e,["b","birth_year","birth_month","birth_date","death_year","death_month","death_date"]);if(i.b&&"b"===i.b.toLowerCase()){var n=hi([i.birth_year,i.birth_month,i.birth_date]);return t.push(ki(n)),bi(n)}var a=hi([i.death_year,i.death_month,i.death_date]);return t.push(ki(a)),bi(a)},age:function(e){var t=wi(e);return gi(t.from,t.to).years||0},"diff-y":function(e){var t=wi(e),i=gi(t.from,t.to);return 1===i.years?i.years+" year":(i.years||0)+" years"},"diff-ym":function(e){var t=wi(e),i=gi(t.from,t.to),n=[];return 1===i.years?n.push(i.years+" year"):i.years&&0!==i.years&&n.push(i.years+" years"),1===i.months?n.push("1 month"):i.months&&0!==i.months&&n.push(i.months+" months"),n.join(", ")},"diff-ymd":function(e){var t=wi(e),i=gi(t.from,t.to),n=[];return 1===i.years?n.push(i.years+" year"):i.years&&0!==i.years&&n.push(i.years+" years"),1===i.months?n.push("1 month"):i.months&&0!==i.months&&n.push(i.months+" months"),1===i.days?n.push("1 day"):i.days&&0!==i.days&&n.push(i.days+" days"),n.join(", ")},"diff-yd":function(e){var t=wi(e),i=gi(t.from,t.to),n=[];return 1===i.years?n.push(i.years+" year"):i.years&&0!==i.years&&n.push(i.years+" years"),i.days+=30*(i.months||0),1===i.days?n.push("1 day"):i.days&&0!==i.days&&n.push(i.days+" days"),n.join(", ")},"diff-d":function(e){var t=wi(e),i=gi(t.from,t.to),n=[];return i.days+=365*(i.years||0),i.days+=30*(i.months||0),1===i.days?n.push("1 day"):i.days&&0!==i.days&&n.push(i.days+" days"),n.join(", ")}},yi=function(e){var t=new Date(e);if(isNaN(t.getTime()))return"";var i=(new Date).getTime()-t.getTime(),n="ago";i<0&&(n="from now",i=Math.abs(i));var a=i/1e3/60/60/24;return a<365?parseInt(a,10)+" days "+n:parseInt(a/365,10)+" years "+n},xi=vi.date,$i=vi.natural_date,ji=["January","February","March","April","May","June","July","August","September","October","November","December"],zi=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Oi=Object.assign({},di,{currentday:function(){var e=new Date;return String(e.getDate())},currentdayname:function(){var e=new Date;return zi[e.getDay()]},currentmonth:function(){var e=new Date;return ji[e.getMonth()]},currentyear:function(){var e=new Date;return String(e.getFullYear())},monthyear:function(){var e=new Date;return ji[e.getMonth()]+" "+e.getFullYear()},"monthyear-1":function(){var e=new Date;return e.setMonth(e.getMonth()-1),ji[e.getMonth()]+" "+e.getFullYear()},"monthyear+1":function(){var e=new Date;return e.setMonth(e.getMonth()+1),ji[e.getMonth()]+" "+e.getFullYear()},date:0,"time ago":function(e){var t=Pe(e,["date","fmt"]).date;return yi(t)},"birth date and age":function(e,t){var i=Pe(e,["year","month","day"]);return i.year&&/[a-z]/i.test(i.year)?$i(e,t):(t.push(i),i=mi([i.year,i.month,i.day]),pi(i))},"birth year and age":function(e,t){var i=Pe(e,["birth_year","birth_month"]);if(i.death_year&&/[a-z]/i.test(i.death_year))return $i(e,t);t.push(i);var n=(new Date).getFullYear()-parseInt(i.birth_year,10);i=mi([i.birth_year,i.birth_month]);var a=pi(i);return n&&(a+=" (age ".concat(n,")")),a},"death year and age":function(e,t){var i=Pe(e,["death_year","birth_year","death_month"]);return i.death_year&&/[a-z]/i.test(i.death_year)?$i(e,t):(t.push(i),i=mi([i.death_year,i.death_month]),pi(i))},"birth date and age2":function(e,t){var i=Pe(e,["at_year","at_month","at_day","birth_year","birth_month","birth_day"]);return t.push(i),i=mi([i.birth_year,i.birth_month,i.birth_day]),pi(i)},"birth based on age as of date":function(e,t){var i=Pe(e,["age","year","month","day"]);t.push(i);var n=parseInt(i.age,10),a=parseInt(i.year,10)-n;return a&&n?"".concat(a," (age ").concat(i.age,")"):"(age ".concat(i.age,")")},"death date and given age":function(e,t){var i=Pe(e,["year","month","day","age"]);t.push(i),i=mi([i.year,i.month,i.day]);var n=pi(i);return i.age&&(n+=" (age ".concat(i.age,")")),n},dts:function(e){e=(e=e.replace(/\|format=[ymd]+/i,"")).replace(/\|abbr=(on|off)/i,"");var t=Pe(e,["year","month","date","bc"]);return t.date&&t.month&&t.year?!0===/[a-z]/.test(t.month)?[t.month,t.date,t.year].join(" "):[t.year,t.month,t.date].join("-"):t.month&&t.year?[t.year,t.month].join("-"):t.year?(t.year<0&&(t.year=Math.abs(t.year)+" BC"),t.year):""},start:xi,end:xi,birth:xi,death:xi,"start date":xi,"end date":xi,"birth date":xi,"death date":xi,"start date and age":xi,"end date and age":xi,"start-date":$i,"end-date":$i,"birth-date":$i,"death-date":$i,"birth-date and age":$i,"birth-date and given age":$i,"death-date and age":$i,"death-date and given age":$i,birthdeathage:vi.two_dates,dob:xi,age:vi.age,"age nts":vi.age,"age in years":vi["diff-y"],"age in years and months":vi["diff-ym"],"age in years, months and days":vi["diff-ymd"],"age in years and days":vi["diff-yd"],"age in days":vi["diff-d"]});Oi.localday=Oi.currentday,Oi.localdayname=Oi.currentdayname,Oi.localmonth=Oi.currentmonth,Oi.localyear=Oi.currentyear,Oi.currentmonthname=Oi.currentmonth,Oi.currentmonthabbrev=Oi.currentmonth,Oi["death date and age"]=Oi["birth date and age"],Oi.bda=Oi["birth date and age"],Oi["birth date based on age at death"]=Oi["birth based on age as of date"];var Ei=Oi,_i={tag:function(e){var t=Pe(e,["tag","open"]);return t.open&&"pair"!==t.open?"":{span:!0,div:!0,p:!0}[t.tag]?t.content||"":"<".concat(t.tag," ").concat(t.attribs||"",">").concat(t.content||"","</").concat(t.tag,">")},plural:function(e){e=e.replace(/plural:/,"plural|");var t=Pe(e,["num","word"]),i=Number(t.num),n=t.word;return 1!==i&&(/.y$/.test(n)?n=n.replace(/y$/,"ies"):n+="s"),i+" "+n},"first word":function(e){var t=Pe(e,["text"]),i=t.text;return t.sep?i.split(t.sep)[0]:i.split(" ")[0]},trunc:function(e){var t=Pe(e,["str","len"]);return t.str.substr(0,t.len)},"str mid":function(e){var t=Pe(e,["str","start","end"]),i=parseInt(t.start,10)-1,n=parseInt(t.end,10);return t.str.substr(i,n)},p1:0,p2:1,p3:2,braces:function(e){var t=Pe(e,["text"]),i="";return t.list&&(i="|"+t.list.join("|")),"{{"+(t.text||"")+i+"}}"},nobold:0,noitalic:0,nocaps:0,syntaxhighlight:function(e,t){var i=Pe(e);return t.push(i),i.code||""},samp:function(e,t){var i=Pe(e,["1"]);return t.push(i),i[1]||""},vanchor:0,resize:1,ra:function(e){var t=Pe(e,["hours","minutes","seconds"]);return[t.hours||0,t.minutes||0,t.seconds||0].join(":")},deg2hms:function(e){return(Pe(e,["degrees"]).degrees||"")+"°"},hms2deg:function(e){var t=Pe(e,["hours","minutes","seconds"]);return[t.hours||0,t.minutes||0,t.seconds||0].join(":")},decdeg:function(e){var t=Pe(e,["deg","min","sec","hem","rnd"]);return(t.deg||t.degrees)+"°"},rnd:0,dec:function(e){var t=Pe(e,["degrees","minutes","seconds"]),i=(t.degrees||0)+"°";return t.minutes&&(i+=t.minutes+"′"),t.seconds&&(i+=t.seconds+"″"),i},val:function(e){var t=Pe(e,["number","uncertainty"]),i=t.number;i&&Number(i)&&(i=Number(i).toLocaleString());var n=i||"";return t.p&&(n=t.p+n),t.s&&(n=t.s+n),(t.u||t.ul||t.upl)&&(n=n+" "+(t.u||t.ul||t.upl)),n}};_i.rndfrac=_i.rnd,_i.rndnear=_i.rnd,_i["unité"]=_i.val;["nowrap","nobr","big","cquote","pull quote","small","smaller","midsize","larger","big","kbd","bigger","large","mono","strongbad","stronggood","huge","xt","xt2","!xt","xtn","xtd","dc","dcr","mxt","!mxt","mxtn","mxtd","bxt","!bxt","bxtn","bxtd","delink","pre","var","mvar","pre2","code"].forEach((function(e){_i[e]=function(e){return Pe(e,["text"]).text||""}}));var Si=_i,Ci={plainlist:function(e){var t=(e=_e(e)).split("|");return e=(t=t.slice(1)).join("|"),(t=(t=e.split(/\n ?\* ?/)).filter((function(e){return e}))).join("\n\n")},"collapsible list":function(e,t){var i=Pe(e);t.push(i);var n="";if(i.title&&(n+="'''".concat(i.title,"'''")+"\n\n"),!i.list){i.list=[];for(var a=1;a<10;a+=1)i[a]&&(i.list.push(i[a]),delete i[a])}return i.list=i.list.filter((function(e){return e})),n+=i.list.join("\n\n")},"ordered list":function(e,t){var i=Pe(e);return t.push(i),i.list=i.list||[],i.list.map((function(e,t){return"".concat(t+1,". ").concat(e)})).join("\n\n")},hlist:function(e){var t=Pe(e);return t.list=t.list||[],t.list.join(" · ")},pagelist:function(e){return(Pe(e).list||[]).join(", ")},catlist:function(e){return(Pe(e).list||[]).join(", ")},"br separated entries":function(e){return(Pe(e).list||[]).join("\n\n")},"comma separated entries":function(e){return(Pe(e).list||[]).join(", ")},"anchored list":function(e){var t=Pe(e).list||[];return(t=t.map((function(e,t){return"".concat(t+1,". ").concat(e)}))).join("\n\n")},"bulleted list":function(e){var t=Pe(e).list||[];return(t=(t=t.filter((function(e){return e}))).map((function(e){return"• "+e}))).join("\n\n")},"columns-list":function(e,t){var i=((Pe(e).list||[])[0]||"").split(/\n/);return i=(i=i.filter((function(e){return e}))).map((function(e){return e.replace(/\*/,"")})),t.push({template:"columns-list",list:i}),(i=i.map((function(e){return"• "+e}))).join("\n\n")}};Ci.flatlist=Ci.plainlist,Ci.ublist=Ci.plainlist,Ci["unbulleted list"]=Ci["collapsible list"],Ci.ubl=Ci["collapsible list"],Ci["bare anchored list"]=Ci["anchored list"],Ci["plain list"]=Ci.plainlist,Ci.cmn=Ci["columns-list"],Ci.collist=Ci["columns-list"],Ci["col-list"]=Ci["columns-list"],Ci.columnslist=Ci["columns-list"];var qi=Ci,Ni={convert:function(e){var t=Pe(e,["num","two","three","four"]);return"-"===t.two||"to"===t.two||"and"===t.two?t.four?"".concat(t.num," ").concat(t.two," ").concat(t.three," ").concat(t.four):"".concat(t.num," ").concat(t.two," ").concat(t.three):"".concat(t.num," ").concat(t.two)},term:function(e){var t=Pe(e,["term"]);return"".concat(t.term,":")},defn:0,lino:0,linum:function(e){var t=Pe(e,["num","text"]);return"".concat(t.num,". ").concat(t.text)},ill:function(e){return Pe(e,["text","lan1","text1","lan2","text2"]).text},frac:function(e){var t=Pe(e,["a","b","c"]);return t.c?"".concat(t.a," ").concat(t.b,"/").concat(t.c):t.b?"".concat(t.a,"/").concat(t.b):"1/".concat(t.b)},height:function(e,t){var i=Pe(e);t.push(i);var n=[];return["m","cm","ft","in"].forEach((function(e){!0===i.hasOwnProperty(e)&&n.push(i[e]+e)})),n.join(" ")},"block indent":function(e){var t=Pe(e);return t[1]?"\n"+t[1]+"\n":""},quote:function(e,t){var i=Pe(e,["text","author"]);if(t.push(i),i.text){var n='"'.concat(i.text,'"');return i.author&&(n+="\n\n",n+="    - ".concat(i.author)),n+"\n"}return""},lbs:function(e){var t=Pe(e,["text"]);return"[[".concat(t.text," Lifeboat Station|").concat(t.text,"]]")},lbc:function(e){var t=Pe(e,["text"]);return"[[".concat(t.text,"-class lifeboat|").concat(t.text,"-class]]")},lbb:function(e){var t=Pe(e,["text"]);return"[[".concat(t.text,"-class lifeboat|").concat(t.text,"]]")},own:function(e){var t=Pe(e,["author"]),i="Own work";return t.author&&(i+=" by "+t.author),i},sic:function(e,t){var i=Pe(e,["one","two","three"]),n=(i.one||"")+(i.two||"");return"?"===i.one&&(n=(i.two||"")+(i.three||"")),t.push({template:"sic",word:n}),"y"===i.nolink?n:"".concat(n," [sic]")},formatnum:function(e){e=e.replace(/:/,"|");var t=Pe(e,["number"]).number||"";return t=t.replace(/,/g,""),Number(t).toLocaleString()||""},"#dateformat":function(e){return e=e.replace(/:/,"|"),Pe(e,["date","format"]).date},lc:function(e){return e=e.replace(/:/,"|"),(Pe(e,["text"]).text||"").toLowerCase()},lcfirst:function(e){e=e.replace(/:/,"|");var t=Pe(e,["text"]).text;return t?t[0].toLowerCase()+t.substr(1):""},uc:function(e){return e=e.replace(/:/,"|"),(Pe(e,["text"]).text||"").toUpperCase()},ucfirst:function(e){e=e.replace(/:/,"|");var t=Pe(e,["text"]).text;return t?t[0].toUpperCase()+t.substr(1):""},padleft:function(e){e=e.replace(/:/,"|");var t=Pe(e,["text","num"]);return(t.text||"").padStart(t.num,t.str||"0")},padright:function(e){e=e.replace(/:/,"|");var t=Pe(e,["text","num"]);return(t.text||"").padEnd(t.num,t.str||"0")},abbr:function(e){return Pe(e,["abbr","meaning","ipa"]).abbr},abbrlink:function(e){var t=Pe(e,["abbr","page"]);return t.page?"[[".concat(t.page,"|").concat(t.abbr,"]]"):"[[".concat(t.abbr,"]]")},h:1,finedetail:0,sort:1};Ni["str left"]=Ni.trunc,Ni["str crop"]=Ni.trunc,Ni.tooltip=Ni.abbr,Ni.abbrv=Ni.abbr,Ni.define=Ni.abbr,Ni.cvt=Ni.convert;var Ai=Ni,Li=Object.assign({},Si,qi,Ai);var Di=function(e){var t=e.pop(),i=Number(e[0]||0),n=Number(e[1]||0),a=Number(e[2]||0);if("string"!=typeof t||isNaN(i))return null;var r=1;return/[SW]/i.test(t)&&(r=-1),r*(i+n/60+a/3600)},Ii=function(e){if("number"!=typeof e)return e;return Math.round(1e5*e)/1e5},Ti={s:!0,w:!0},Pi=function(e){var i=Pe(e);i=function(e){return e.list=e.list||[],e.list=e.list.map((function(t){var i=Number(t);if(!isNaN(i))return i;var n=t.split(/:/);return n.length>1?(e.props=e.props||{},e.props[n[0]]=n.slice(1).join(":"),null):t})),e.list=e.list.filter((function(e){return null!==e})),e}(i);var n,a,r=(n=i.list,a=n.map((function(e){return t(e)})).join("|"),2===n.length&&"number|number"===a?{lat:n[0],lon:n[1]}:4===n.length&&"number|string|number|string"===a?(Ti[n[1].toLowerCase()]&&(n[0]*=-1),"w"===n[3].toLowerCase()&&(n[2]*=-1),{lat:n[0],lon:n[2]}):6===n.length?{lat:Di(n.slice(0,3)),lon:Di(n.slice(3))}:8===n.length?{lat:Di(n.slice(0,4)),lon:Di(n.slice(4))}:{});return i.lat=Ii(r.lat),i.lon=Ii(r.lon),i.template="coord",delete i.list,i},Ri={coord:function(e,t){var i=Pi(e);return t.push(i),i.display&&-1===i.display.indexOf("inline")?"":"".concat(i.lat||"","°N, ").concat(i.lon||"","°W")},geo:["lat","lon","zoom"]};Ri.coor=Ri.coord,Ri["coor title dms"]=Ri.coord,Ri["coor title dec"]=Ri.coord,Ri["coor dms"]=Ri.coord,Ri["coor dm"]=Ri.coord,Ri["coor dec"]=Ri.coord;var Mi=Ri,Ui={etyl:1,mention:1,link:1,"la-verb-form":0,"la-ipa":0,sortname:function(e){var t=Pe(e,["first","last","target","sort"]),i="".concat(t.first||""," ").concat(t.last||"");return i=i.trim(),t.nolink?t.target||i:(t.dab&&(i+=" (".concat(t.dab,")"),t.target&&(t.target+=" (".concat(t.dab,")"))),t.target?"[[".concat(t.target,"|").concat(i,"]]"):"[[".concat(i,"]]"))}};["lts","t","tfd links","tiw","tltt","tetl","tsetl","ti","tic","tiw","tlt","ttl","twlh","tl2","tlu","demo","hatnote","xpd","para","elc","xtag","mli","mlix","#invoke","url"].forEach((function(e){Ui[e]=function(e){var t=Pe(e,["first","second"]);return t.second||t.first}})),Ui.m=Ui.mention,Ui["m-self"]=Ui.mention,Ui.l=Ui.link,Ui.ll=Ui.link,Ui["l-self"]=Ui.link;var Fi=Ui,Ki={wikt:"wiktionary",commons:"commons",c:"commons",commonscat:"commonscat",n:"wikinews",q:"wikiquote",s:"wikisource",a:"wikiauthor",b:"wikibooks",voy:"wikivoyage",v:"wikiversity",d:"wikidata",species:"wikispecies",m:"meta",mw:"mediawiki"},Bi={about:function(e,t){var i=Pe(e);return t.push(i),""},main:function(e,t){var i=Pe(e);return t.push(i),""},"main list":function(e,t){var i=Pe(e);return t.push(i),""},see:function(e,t){var i=Pe(e);return t.push(i),""},for:function(e,t){var i=Pe(e);return t.push(i),""},further:function(e,t){var i=Pe(e);return t.push(i),""},"further information":function(e,t){var i=Pe(e);return t.push(i),""},listen:function(e,t){var i=Pe(e);return t.push(i),""},"wide image":["file","width","caption"],redirect:function(e,t){for(var i=Pe(e,["redirect"]),n=i.list||[],a=[],r=0;r<n.length;r+=2)a.push({page:n[r+1],desc:n[r]});var o={template:"redirect",redirect:i.redirect,links:a};return t.push(o),""},"cite gnis":function(e,t){var i=Pe(e,["id","name","type"]);return i.type="gnis",i.template="citation",t.push(i),""},sfn:function(e,t,i){var n=Pe(e,["author","year","location"]);return i&&(n.name=n.template,n.teplate=i),t.push(n),""},audio:["file","text","type"],rp:["page"],"spoken wikipedia":function(e,t){var i=Pe(e,["file","date"]);return i.template="audio",t.push(i),""},"sister project links":function(e,t){var i=Pe(e),n={};Object.keys(Ki).forEach((function(e){!0===i.hasOwnProperty(e)&&(n[Ki[e]]=i[e])}));var a={template:"sister project links",links:n};return t.push(a),""},"subject bar":function(e,t){var i=Pe(e);Object.keys(i).forEach((function(e){Ki.hasOwnProperty(e)&&(i[Ki[e]]=i[e],delete i[e])}));var n={template:"subject bar",links:i};return t.push(n),""},"short description":["description"],"coord missing":["region"],gallery:function(e,t){var i=Pe(e),n=(i.list||[]).filter((function(e){return/^ *File ?:/.test(e)}));return i={template:"gallery",images:n=n.map((function(e){return new z({file:e}).json()}))},t.push(i),""},"see also":function(e,t){var i=Pe(e);return t.push(i),""},unreferenced:["date"]};Bi.cite=Bi.citation,Bi.sfnref=Bi.sfn,Bi.harvid=Bi.sfn,Bi.harvnb=Bi.sfn,Bi["unreferenced section"]=Bi.unreferenced,Bi.redir=Bi.redirect,Bi.sisterlinks=Bi["sister project links"],Bi["main article"]=Bi.main;var Wi=Bi,Yi=function(e){return e.charAt(0).toUpperCase()+e.substring(1)},Zi={};["rh","rh2","yes","no","maybe","eliminated","lost","safe","active","site active","coming soon","good","won","nom","sho","longlisted","tba","success","operational","failure","partial","regional","maybecheck","partial success","partial failure","okay","yes-no","some","nonpartisan","pending","unofficial","unofficial2","usually","rarely","sometimes","any","varies","black","non-album single","unreleased","unknown","perhaps","depends","included","dropped","terminated","beta","table-experimental","free","proprietary","nonfree","needs","nightly","release-candidate","planned","scheduled","incorrect","no result","cmain","calso starring","crecurring","cguest","not yet","optional"].forEach((function(e){Zi[e]=function(e){var t=Pe(e,["text"]);return t.text||Yi(t.template)}}));[["active fire","Active"],["site active","Active"],["site inactive","Inactive"],["yes2",""],["no2",""],["ya","✅"],["na","❌"],["nom","Nominated"],["sho","Shortlisted"],["tba","TBA"],["maybecheck","✔️"],["okay","Neutral"],["n/a","N/A"],["sdash","—"],["dunno","?"],["draw",""],["cnone",""],["nocontest",""]].forEach((function(e){Zi[e[0]]=function(t){return Pe(t,["text"]).text||e[1]}})),Zi.won=function(e){var t=Pe(e,["text"]);return t.place||t.text||Yi(t.template)};var Gi=Zi,Hi=Object.assign({},Fi,Wi,Gi),Vi=function(e){return 1===(e=String(e)).length&&(e="0"+e),e},Ji=function(e,t,i){e["rd".concat(t,"-team").concat(Vi(i))]&&(i=Vi(i));var n=e["rd".concat(t,"-score").concat(i)],a=Number(n);return!1===isNaN(a)&&(n=a),{team:e["rd".concat(t,"-team").concat(i)],score:n,seed:e["rd".concat(t,"-seed").concat(i)]}},Qi={"4teambracket":function(e,t){var i=function(e){for(var t=[],i=Pe(e),n=1;n<7;n+=1){for(var a=[],r=1;r<16;r+=2){var o="rd".concat(n,"-team");if(!i[o+r]&&!i[o+Vi(r)])break;var s=Ji(i,n,r),c=Ji(i,n,r+1);a.push([s,c])}a.length>0&&t.push(a)}return{template:"playoffbracket",rounds:t}}(e);return t.push(i),""}};["2teambracket","4team2elimbracket","8teambracket","16teambracket","32teambracket","cwsbracket","nhlbracket","nhlbracket-reseed","4teambracket-nhl","4teambracket-ncaa","4teambracket-mma","4teambracket-mlb","8teambracket-nhl","8teambracket-mlb","8teambracket-ncaa","8teambracket-afc","8teambracket-afl","8teambracket-tennis3","8teambracket-tennis5","16teambracket-nhl","16teambracket-nhl divisional","16teambracket-nhl-reseed","16teambracket-nba","16teambracket-swtc","16teambracket-afc","16teambracket-tennis3","16teambracket-tennis5"].forEach((function(e){Qi[e]=Qi["4teambracket"]}));var Xi=Qi,en={"£":"GB£","¥":"¥","৳":"৳","₩":"₩","€":"€","₱":"₱","₹":"₹","₽":"₽","cn¥":"CN¥","gb£":"GB£","india rs":"₹","indian rupee symbol":"₹","indian rupee":"₹","indian rupees":"₹","philippine peso":"₱","russian ruble":"₽","SK won":"₩","turkish lira":"TRY",a$:"A$",au$:"A$",aud:"A$",bdt:"BDT",brl:"BRL",ca$:"CA$",cad:"CA$",chf:"CHF",cny:"CN¥",czk:"czk",dkk:"dkk",dkk2:"dkk",euro:"€",gbp:"GB£",hk$:"HK$",hkd:"HK$",ils:"ILS",inr:"₹",jpy:"¥",myr:"MYR",nis:"ILS",nok:"NOK",nok2:"NOK",nz$:"NZ$",nzd:"NZ$",peso:"peso",pkr:"₨",r$:"BRL",rmb:"CN¥",rub:"₽",ruble:"₽",rupee:"₹",s$:"sgd",sek:"SEK",sek2:"SEK",sfr:"CHF",sgd:"sgd",shekel:"ILS",sheqel:"ILS",ttd:"TTD",us$:"US$",usd:"US$",yen:"¥",zar:"R"},tn=function(e,t){var i=Pe(e,["amount","code"]);t.push(i);var n=i.template||"";switch("currency"===n?(n=i.code)||(i.code=n="usd"):""!==n&&"monnaie"!==n&&"unité"!==n&&"nombre"!==n&&"nb"!==n||(n=i.code),n=(n||"").toLowerCase()){case"us":i.code=n="usd";break;case"uk":i.code=n="gbp"}var a="".concat(en[n]||"").concat(i.amount||"");return i.code&&!en[i.code.toLowerCase()]&&(a+=" "+i.code),a},nn={currency:tn,monnaie:tn,"unité":tn,nombre:tn,nb:tn,iso4217:tn,inrconvert:function(e,t){var i=Pe(e,["rupee_value","currency_formatting"]);t.push(i);var n=i.currency_formatting;if(n){var a=1;switch(n){case"k":a=1e3;break;case"m":a=1e6;break;case"b":a=1e9;break;case"t":a=1e12;break;case"l":a=1e5;break;case"c":a=1e7;break;case"lc":a=1e12}i.rupee_value=i.rupee_value*a}return"inr ".concat(i.rupee_value||"")}};Object.keys(en).forEach((function(e){nn[e]=tn}));var an=nn,rn={"election box begin":function(e,t){var i=Pe(e);return t.push(i),""},"election box candidate":function(e,t){var i=Pe(e);return t.push(i),""},"election box hold with party link":function(e,t){var i=Pe(e);return t.push(i),""},"election box gain with party link":function(e,t){var i=Pe(e);return t.push(i),""}};rn["election box begin no change"]=rn["election box begin"],rn["election box begin no party"]=rn["election box begin"],rn["election box begin no party no change"]=rn["election box begin"],rn["election box inline begin"]=rn["election box begin"],rn["election box inline begin no change"]=rn["election box begin"],rn["election box candidate for alliance"]=rn["election box candidate"],rn["election box candidate minor party"]=rn["election box candidate"],rn["election box candidate no party link no change"]=rn["election box candidate"],rn["election box candidate with party link"]=rn["election box candidate"],rn["election box candidate with party link coalition 1918"]=rn["election box candidate"],rn["election box candidate with party link no change"]=rn["election box candidate"],rn["election box inline candidate"]=rn["election box candidate"],rn["election box inline candidate no change"]=rn["election box candidate"],rn["election box inline candidate with party link"]=rn["election box candidate"],rn["election box inline candidate with party link no change"]=rn["election box candidate"],rn["election box inline incumbent"]=rn["election box candidate"];var on=rn,sn=[["🇦🇩","and","andorra"],["🇦🇪","are","united arab emirates"],["🇦🇫","afg","afghanistan"],["🇦🇬","atg","antigua and barbuda"],["🇦🇮","aia","anguilla"],["🇦🇱","alb","albania"],["🇦🇲","arm","armenia"],["🇦🇴","ago","angola"],["🇦🇶","ata","antarctica"],["🇦🇷","arg","argentina"],["🇦🇸","asm","american samoa"],["🇦🇹","aut","austria"],["🇦🇺","aus","australia"],["🇦🇼","abw","aruba"],["🇦🇽","ala","åland islands"],["🇦🇿","aze","azerbaijan"],["🇧🇦","bih","bosnia and herzegovina"],["🇧🇧","brb","barbados"],["🇧🇩","bgd","bangladesh"],["🇧🇪","bel","belgium"],["🇧🇫","bfa","burkina faso"],["🇧🇬","bgr","bulgaria"],["🇧🇬","bul","bulgaria"],["🇧🇭","bhr","bahrain"],["🇧🇮","bdi","burundi"],["🇧🇯","ben","benin"],["🇧🇱","blm","saint barthélemy"],["🇧🇲","bmu","bermuda"],["🇧🇳","brn","brunei darussalam"],["🇧🇴","bol","bolivia"],["🇧🇶","bes","bonaire, sint eustatius and saba"],["🇧🇷","bra","brazil"],["🇧🇸","bhs","bahamas"],["🇧🇹","btn","bhutan"],["🇧🇻","bvt","bouvet island"],["🇧🇼","bwa","botswana"],["🇧🇾","blr","belarus"],["🇧🇿","blz","belize"],["🇨🇦","can","canada"],["🇨🇨","cck","cocos (keeling) islands"],["🇨🇩","cod","congo"],["🇨🇫","caf","central african republic"],["🇨🇬","cog","congo"],["🇨🇭","che","switzerland"],["🇨🇮","civ","côte d'ivoire"],["🇨🇰","cok","cook islands"],["🇨🇱","chl","chile"],["🇨🇲","cmr","cameroon"],["🇨🇳","chn","china"],["🇨🇴","col","colombia"],["🇨🇷","cri","costa rica"],["🇨🇺","cub","cuba"],["🇨🇻","cpv","cape verde"],["🇨🇼","cuw","curaçao"],["🇨🇽","cxr","christmas island"],["🇨🇾","cyp","cyprus"],["🇨🇿","cze","czech republic"],["🇩🇪","deu","germany"],["🇩🇪","ger","germany"],["🇩🇯","dji","djibouti"],["🇩🇰","dnk","denmark"],["🇩🇲","dma","dominica"],["🇩🇴","dom","dominican republic"],["🇩🇿","dza","algeria"],["🇪🇨","ecu","ecuador"],["🇪🇪","est","estonia"],["🇪🇬","egy","egypt"],["🇪🇭","esh","western sahara"],["🇪🇷","eri","eritrea"],["🇪🇸","esp","spain"],["🇪🇹","eth","ethiopia"],["🇫🇮","fin","finland"],["🇫🇯","fji","fiji"],["🇫🇰","flk","falkland islands (malvinas)"],["🇫🇲","fsm","micronesia"],["🇫🇴","fro","faroe islands"],["🇫🇷","fra","france"],["🇬🇦","gab","gabon"],["🇬🇧","gbr","united kingdom"],["🇬🇩","grd","grenada"],["🇬🇫","guf","french guiana"],["🇬🇬","ggy","guernsey"],["🇬🇭","gha","ghana"],["🇬🇮","gib","gibraltar"],["🇬🇱","grl","greenland"],["🇬🇲","gmb","gambia"],["🇬🇳","gin","guinea"],["🇬🇵","glp","guadeloupe"],["🇬🇶","gnq","equatorial guinea"],["🇬🇷","grc","greece"],["🇬🇸","sgs","south georgia"],["🇬🇹","gtm","guatemala"],["🇬🇺","gum","guam"],["🇬🇼","gnb","guinea-bissau"],["🇬🇾","guy","guyana"],["🇭🇰","hkg","hong kong"],["🇭🇲","hmd","heard island and mcdonald islands"],["🇭🇳","hnd","honduras"],["🇭🇷","hrv","croatia"],["🇭🇹","hti","haiti"],["🇭🇺","hun","hungary"],["🇮🇩","idn","indonesia"],["🇮🇪","irl","ireland"],["🇮🇱","isr","israel"],["🇮🇲","imn","isle of man"],["🇮🇳","ind","india"],["🇮🇴","iot","british indian ocean territory"],["🇮🇶","irq","iraq"],["🇮🇷","irn","iran"],["🇮🇸","isl","iceland"],["🇮🇹","ita","italy"],["🇯🇪","jey","jersey"],["🇯🇲","jam","jamaica"],["🇯🇴","jor","jordan"],["🇯🇵","jpn","japan"],["🇰🇪","ken","kenya"],["🇰🇬","kgz","kyrgyzstan"],["🇰🇭","khm","cambodia"],["🇰🇮","kir","kiribati"],["🇰🇲","com","comoros"],["🇰🇳","kna","saint kitts and nevis"],["🇰🇵","prk","north korea"],["🇰🇷","kor","south korea"],["🇰🇼","kwt","kuwait"],["🇰🇾","cym","cayman islands"],["🇰🇿","kaz","kazakhstan"],["🇱🇦","lao","lao people's democratic republic"],["🇱🇧","lbn","lebanon"],["🇱🇨","lca","saint lucia"],["🇱🇮","lie","liechtenstein"],["🇱🇰","lka","sri lanka"],["🇱🇷","lbr","liberia"],["🇱🇸","lso","lesotho"],["🇱🇹","ltu","lithuania"],["🇱🇺","lux","luxembourg"],["🇱🇻","lva","latvia"],["🇱🇾","lby","libya"],["🇲🇦","mar","morocco"],["🇲🇨","mco","monaco"],["🇲🇩","mda","moldova"],["🇲🇪","mne","montenegro"],["🇲🇫","maf","saint martin (french part)"],["🇲🇬","mdg","madagascar"],["🇲🇭","mhl","marshall islands"],["🇲🇰","mkd","macedonia"],["🇲🇱","mli","mali"],["🇲🇲","mmr","myanmar"],["🇲🇳","mng","mongolia"],["🇲🇴","mac","macao"],["🇲🇵","mnp","northern mariana islands"],["🇲🇶","mtq","martinique"],["🇲🇷","mrt","mauritania"],["🇲🇸","msr","montserrat"],["🇲🇹","mlt","malta"],["🇲🇺","mus","mauritius"],["🇲🇻","mdv","maldives"],["🇲🇼","mwi","malawi"],["🇲🇽","mex","mexico"],["🇲🇾","mys","malaysia"],["🇲🇿","moz","mozambique"],["🇳🇦","nam","namibia"],["🇳🇨","ncl","new caledonia"],["🇳🇪","ner","niger"],["🇳🇫","nfk","norfolk island"],["🇳🇬","nga","nigeria"],["🇳🇮","nic","nicaragua"],["🇳🇱","nld","netherlands"],["🇳🇴","nor","norway"],["🇳🇵","npl","nepal"],["🇳🇷","nru","nauru"],["🇳🇺","niu","niue"],["🇳🇿","nzl","new zealand"],["🇴🇲","omn","oman"],["🇵🇦","pan","panama"],["🇵🇪","per","peru"],["🇵🇫","pyf","french polynesia"],["🇵🇬","png","papua new guinea"],["🇵🇭","phl","philippines"],["🇵🇰","pak","pakistan"],["🇵🇱","pol","poland"],["🇵🇲","spm","saint pierre and miquelon"],["🇵🇳","pcn","pitcairn"],["🇵🇷","pri","puerto rico"],["🇵🇸","pse","palestinian territory"],["🇵🇹","prt","portugal"],["🇵🇼","plw","palau"],["🇵🇾","pry","paraguay"],["🇶🇦","qat","qatar"],["🇷🇪","reu","réunion"],["🇷🇴","rou","romania"],["🇷🇸","srb","serbia"],["🇷🇺","rus","russia"],["🇷🇼","rwa","rwanda"],["🇸🇦","sau","saudi arabia"],["🇸🇧","slb","solomon islands"],["🇸🇨","syc","seychelles"],["🇸🇩","sdn","sudan"],["🇸🇪","swe","sweden"],["🇸🇬","sgp","singapore"],["🇸🇭","shn","saint helena, ascension and tristan da cunha"],["🇸🇮","svn","slovenia"],["🇸🇯","sjm","svalbard and jan mayen"],["🇸🇰","svk","slovakia"],["🇸🇱","sle","sierra leone"],["🇸🇲","smr","san marino"],["🇸🇳","sen","senegal"],["🇸🇴","som","somalia"],["🇸🇷","sur","suriname"],["🇸🇸","ssd","south sudan"],["🇸🇹","stp","sao tome and principe"],["🇸🇻","slv","el salvador"],["🇸🇽","sxm","sint maarten (dutch part)"],["🇸🇾","syr","syrian arab republic"],["🇸🇿","swz","swaziland"],["🇹🇨","tca","turks and caicos islands"],["🇹🇩","tcd","chad"],["🇹🇫","atf","french southern territories"],["🇹🇬","tgo","togo"],["🇹🇭","tha","thailand"],["🇹🇯","tjk","tajikistan"],["🇹🇰","tkl","tokelau"],["🇹🇱","tls","timor-leste"],["🇹🇲","tkm","turkmenistan"],["🇹🇳","tun","tunisia"],["🇹🇴","ton","tonga"],["🇹🇷","tur","turkey"],["🇹🇹","tto","trinidad and tobago"],["🇹🇻","tuv","tuvalu"],["🇹🇼","twn","taiwan"],["🇹🇿","tza","tanzania"],["🇺🇦","ukr","ukraine"],["🇺🇬","uga","uganda"],["🇺🇲","umi","united states minor outlying islands"],["🇺🇸","usa","united states"],["🇺🇸","us","united states"],["🇺🇾","ury","uruguay"],["🇺🇿","uzb","uzbekistan"],["🇻🇦","vat","vatican city"],["🇻🇨","vct","saint vincent and the grenadines"],["🇻🇪","ven","venezuela"],["🇻🇬","vgb","virgin islands, british"],["🇻🇮","vir","virgin islands, u.s."],["🇻🇳","vnm","viet nam"],["🇻🇺","vut","vanuatu"],["","win","west indies"],["🇼🇫","wlf","wallis and futuna"],["🇼🇸","wsm","samoa"],["🇾🇪","yem","yemen"],["🇾🇹","myt","mayotte"],["🇿🇦","zaf","south africa"],["🇿🇲","zmb","zambia"],["🇿🇼 ","zwe","zimbabwe"],["🇺🇳","un","united nations"],["🏴󠁧󠁢󠁥󠁮󠁧󠁿󠁧󠁢󠁥󠁮󠁧󠁿","eng","england"],["🏴󠁧󠁢󠁳󠁣󠁴󠁿","sct","scotland"],["🏴󠁧󠁢󠁷󠁬󠁳󠁿","wal","wales"],["🇪🇺","eu","european union"]],cn={flag:function(e){var t=Pe(e,["flag","variant"]),i=t.flag||"";t.flag=(t.flag||"").toLowerCase();var n=sn.find((function(e){return t.flag===e[1]||t.flag===e[2]}))||[],a=n[0]||"";return"".concat(a," [[").concat(n[2],"|").concat(i,"]]")},flagcountry:function(e){var t=Pe(e,["flag","variant"]);t.flag=(t.flag||"").toLowerCase();var i=sn.find((function(e){return t.flag===e[1]||t.flag===e[2]}))||[],n=i[0]||"";return"".concat(n," [[").concat(i[2],"]]")},flagcu:function(e){var t=Pe(e,["flag","variant"]);t.flag=(t.flag||"").toLowerCase();var i=sn.find((function(e){return t.flag===e[1]||t.flag===e[2]}))||[],n=i[0]||"";return"".concat(n," ").concat(i[2])},flagicon:function(e){var t=Pe(e,["flag","variant"]);t.flag=(t.flag||"").toLowerCase();var i=sn.find((function(e){return t.flag===e[1]||t.flag===e[2]}));return i?"[[".concat(i[2],"|").concat(i[0],"]]"):""},flagdeco:function(e){var t=Pe(e,["flag","variant"]);return t.flag=(t.flag||"").toLowerCase(),(sn.find((function(e){return t.flag===e[1]||t.flag===e[2]}))||[])[0]||""},fb:function(e){var t=Pe(e,["flag","variant"]);t.flag=(t.flag||"").toLowerCase();var i=sn.find((function(e){return t.flag===e[1]||t.flag===e[2]}));return i?"".concat(i[0]," [[").concat(i[2]," national football team|").concat(i[2],"]]"):""},fbicon:function(e){var t=Pe(e,["flag","variant"]);t.flag=(t.flag||"").toLowerCase();var i=sn.find((function(e){return t.flag===e[1]||t.flag===e[2]}));return i?" [[".concat(i[2]," national football team|").concat(i[0],"]]"):""},flagathlete:function(e){var t=Pe(e,["name","flag","variant"]);t.flag=(t.flag||"").toLowerCase();var i=sn.find((function(e){return t.flag===e[1]||t.flag===e[2]}));return i?"".concat(i[0]," [[").concat(t.name||"","]] (").concat(i[1].toUpperCase(),")"):"[[".concat(t.name||"","]]")}};sn.forEach((function(e){cn[e[1]]=function(){return e[0]}})),cn.cr=cn.flagcountry,cn["cr-rt"]=cn.flagcountry,cn.cricon=cn.flagicon;var un=cn,ln=function(e){var t=e.match(/ipac?-(.+)/);return null!==t?!0===q.hasOwnProperty(t[1])?q[t[1]].english_title:t[1]:null},pn={ipa:function(e,t){var i=Pe(e,["transcription","lang","audio"]);return i.lang=ln(i.template),i.template="ipa",t.push(i),""},ipac:function(e,t){var i=Pe(e);return i.transcription=(i.list||[]).join(","),delete i.list,i.lang=ln(i.template),i.template="ipac",t.push(i),""},transl:function(e,t){var i=Pe(e,["lang","text","text2"]);return i.text2&&(i.iso=i.text,i.text=i.text2,delete i.text2),t.push(i),i.text||""}};Object.keys(q).forEach((function(e){pn["ipa-"+e]=pn.ipa,pn["ipac-"+e]=pn.ipac}));var mn=pn,dn={lang:1,"lang-de":0,"rtl-lang":1,taste:0,nihongo:function(e,t){var i=Pe(e,["english","kanji","romaji","extra"]);t.push(i);var n=i.english||i.romaji||"";return i.kanji&&(n+=" (".concat(i.kanji,")")),n}};Object.keys(q).forEach((function(e){dn["lang-"+e]=dn["lang-de"]})),dn.nihongo2=dn.nihongo,dn.nihongo3=dn.nihongo,dn["nihongo-s"]=dn.nihongo,dn["nihongo foot"]=dn.nihongo;var fn=dn,gn=function(e){if(!e.numerator&&!e.denominator)return null;var t=Number(e.numerator)/Number(e.denominator);t*=100;var i=Number(e.decimals);return isNaN(i)&&(i=1),t=t.toFixed(i),Number(t)},hn={math:function(e,t){var i=Pe(e,["formula"]);return t.push(i),"\n\n"+(i.formula||"")+"\n\n"},frac:function(e,t){var i=Pe(e,["a","b","c"]),n={template:"sfrac"};return i.c?(n.integer=i.a,n.numerator=i.b,n.denominator=i.c):i.b?(n.numerator=i.a,n.denominator=i.b):(n.numerator=1,n.denominator=i.a),t.push(n),n.integer?"".concat(n.integer," ").concat(n.numerator,"⁄").concat(n.denominator):"".concat(n.numerator,"⁄").concat(n.denominator)},radic:function(e){var t=Pe(e,["after","before"]);return"".concat(t.before||"","√").concat(t.after||"")},percentage:function(e){var t=Pe(e,["numerator","denominator","decimals"]),i=gn(t);return null===i?"":i+"%"},"percent-done":function(e){var t=Pe(e,["done","total","digits"]),i=gn({numerator:t.done,denominator:t.total,decimals:t.digits});return null===i?"":"".concat(t.done," (").concat(i,"%) done")},"winning percentage":function(e,t){var i=Pe(e,["wins","losses","ties"]);t.push(i);var n=Number(i.wins),a=Number(i.losses),r=Number(i.ties)||0,o=n+a+r;"y"===i.ignore_ties&&(r=0),r&&(n+=r/2);var s=gn({numerator:n,denominator:o,decimals:1});return null===s?"":".".concat(10*s)},winlosspct:function(e,t){var i=Pe(e,["wins","losses"]);t.push(i);var n=Number(i.wins),a=Number(i.losses),r=gn({numerator:n,denominator:n+a,decimals:1});return null===r?"":(r=".".concat(10*r),"".concat(n||0," || ").concat(a||0," || ").concat(r||"-"))}};hn.sfrac=hn.frac,hn.sqrt=hn.radic,hn.pct=hn.percentage,hn.percent=hn.percentage,hn.winpct=hn["winning percentage"],hn.winperc=hn["winning percentage"];var bn=hn,kn=function(e,t,i){var n=Pe(e);return i&&(n.name=n.template,n.template=i),t.push(n),""},wn={persondata:kn,taxobox:kn,citation:kn,portal:kn,reflist:kn,"cite book":kn,"cite journal":kn,"cite web":kn,"commons cat":kn,"portuguese name":["first","second","suffix"],uss:["ship","id"],isbn:function(e,t){var i=Pe(e,["id","id2","id3"]);return t.push(i),"ISBN: "+(i.id||"")},marriage:function(e,t){var i=Pe(e,["spouse","from","to","end"]);t.push(i);var n="".concat(i.spouse||"");return i.from&&(i.to?n+=" (m. ".concat(i.from,"-").concat(i.to,")"):n+=" (m. ".concat(i.from,")")),n},"based on":function(e,t){var i=Pe(e,["title","author"]);return t.push(i),"".concat(i.title," by ").concat(i.author||"")},"video game release":function(e,t){for(var i=["region","date","region2","date2","region3","date3","region4","date4"],n=Pe(e,i),a={template:"video game release",releases:[]},r=0;r<i.length;r+=2)n[i[r]]&&a.releases.push({region:n[i[r]],date:n[i[r+1]]});return t.push(a),"\n"+a.releases.map((function(e){return"".concat(e.region,": ").concat(e.date||"")})).join("\n\n")+"\n"},"bbl to t":function(e,t){var i=Pe(e,["barrels"]);return t.push(i),"0"===i.barrels?i.barrels+" barrel":i.barrels+" barrels"},"historical populations":function(e,t){var i=Pe(e);i.list=i.list||[];for(var n=[],a=0;a<i.list.length;a+=2){var r=i.list[a+1];n.push({year:i.list[a],val:Number(r)||r})}return i.data=n,delete i.list,t.push(i),""}},vn={};[["·","·"],["·","·"],["dot","·"],["middot","·"],["•"," • "],[",",","],["1/2","1⁄2"],["1/3","1⁄3"],["2/3","2⁄3"],["1/4","1⁄4"],["3/4","3⁄4"],["–","–"],["ndash","–"],["en dash","–"],["spaced ndash"," – "],["—","—"],["mdash","—"],["em dash","—"],["number sign","#"],["ibeam","I"],["&","&"],[";",";"],["ampersand","&"],["snds"," – "],["snd"," – "],["^"," "],["!","|"],["\\"," /"],["`","`"],["=","="],["bracket","["],["[","["],["*","*"],["asterisk","*"],["long dash","———"],["clear","\n\n"],["h.","ḥ"]].forEach((function(e){vn[e[0]]=e[1]}));var yn=vn,xn={"taxon info":["taxon","item"],mpc:function(e,t){var i=Pe(e,["number","text"]);return t.push(i),"[https://minorplanetcenter.net/db_search/show_object?object_id=P/2011+NO1 ".concat(i.text||i.number,"]")},chem2:function(e,t){var i=Pe(e,["equation"]);return t.push(i),i.equation},sky:function(e,t){var i=Pe(e,["asc_hours","asc_minutes","asc_seconds","dec_sign","dec_degrees","dec_minutes","dec_seconds","distance"]),n={template:"sky",ascension:{hours:i.asc_hours,minutes:i.asc_minutes,seconds:i.asc_seconds},declination:{sign:i.dec_sign,degrees:i.dec_degrees,minutes:i.dec_minutes,seconds:i.dec_seconds},distance:i.distance};return t.push(n),""},"medical cases chart":function(e,t){var i=["date","deaths_expr","recovery_expr","cases_expr","alt_expr_1","4th_expr","5th_expr","alt_expr_2","col_1","col_1_change","show_col_1","col_2","col_2_change","show_col_2","divisor","numwidth","collabsible","collapsed","id"],n=Pe(e);n.data=n.data||"";var a=n.data.split("\n");return n.rows=a.map((function(e){var t=e.split(/;/);return i.reduce((function(e,i,n){return e[i]=t[n]||null,e}),{})})),delete n.data,t.push(n),""},"medical cases chart/row":function(e){return e}},$n={player:function(e,t){var i=Pe(e,["number","country","name","dl"]);t.push(i);var n="[[".concat(i.name,"]]");if(i.country){var a=(i.country||"").toLowerCase(),r=sn.find((function(e){return a===e[1]||a===e[2]}))||[];r&&r[0]&&(n=r[0]+"  "+n)}return i.number&&(n=i.number+" "+n),n},goal:function(e,t){for(var i={template:"goal",data:[]},n=Pe(e).list||[],a=0;a<n.length;a+=2)i.data.push({min:n[a],note:n[a+1]||""});t.push(i);var r="⚽ ";return r+=i.data.map((function(e){var t=e.note;return t&&(t=" (".concat(t,")")),e.min+"'"+t})).join(", ")},yel:function(e,t){var i=Pe(e,["min"]);return t.push(i),i.min?"yellow: ".concat(i.min||"","'"):""},subon:function(e,t){var i=Pe(e,["min"]);return t.push(i),i.min?"sub on: ".concat(i.min||"","'"):""},suboff:function(e,t){var i=Pe(e,["min"]);return t.push(i),i.min?"sub off: ".concat(i.min||"","'"):""},pengoal:function(e,t){return t.push({template:"pengoal"}),"✅"},penmiss:function(e,t){return t.push({template:"penmiss"}),"❌"},"sent off":function(e,t){var i=Pe(e,["cards"]),n={template:"sent off",cards:i.cards,minutes:i.list||[]};return t.push(n),"sent off: "+n.minutes.map((function(e){return e+"'"})).join(", ")}},jn={"baseball secondary style":0,mlbplayer:function(e,t){var i=Pe(e,["number","name","dl"]);return t.push(i),i.name}},zn=Object.assign({},jn,Xi,$n),On={adx:"adx",aim:"aim",bvpasa:"bvpasa",asx:"asx",athex:"athex",bhse:"bhse",bvb:"bvb",bbv:"bbv",bsx:"bsx",b3:"b3","bm&f":"b3","bm&f bovespa":"b3",bwse:"bwse","botswana stock exchange":"botswana stock exchange",bse:"bse","bombay stock exchange":"bombay stock exchange",bpse:"bpse",bcba:"bcba","canadian securities exchange":"canadian securities exchange",bvc:"bvc",cse:"cse",darse:"darse",dse:"dse",dfm:"dfm",euronext:"euronext",fwb:"fwb",fse:"fse",gse:"gse",gtsm:"gtsm",sehk:"sehk",idx:"idx",nse:"nse",ise:"ise",isin:"isin",bist:"bist",bit:"bit",jasdaq:"jasdaq",jse:"jse",kase:"kase",krx:"krx",bvl:"bvl",lse:"lse",luxse:"luxse",bmad:"bmad",myx:"myx",bmv:"bmv",mcx:"mcx",mutf:"mutf",nag:"nag",kn:"kn","nasdaq dubai":"nasdaq dubai",nasdaq:"nasdaq",neeq:"neeq",nepse:"nepse",nyse:"nyse",nzx:"nzx",amex:"amex","nyse arca":"nyse arca",omx:"omx","omx baltic":"omx baltic",ose:"ose","otc pink":"otc pink",otcqb:"otcqb",otcqx:"otcqx","philippine stock exchange":"philippine stock exchange",prse:"prse",qe:"qe",bcs:"bcs","saudi stock exchange":"saudi stock exchange",sgx:"sgx",sse:"sse",szse:"szse",swx:"swx",set:"set",tase:"tase",tyo:"tyo",tsx:"tsx",twse:"twse","tsx-v":"tsx-v",tsxv:"tsxv",nex:"nex",ttse:"ttse","pfts ukraine stock exchange":"pfts ukraine stock exchange",wse:"wse",wbag:"wbag",zse:"zse","zagreb stock exchange":"zagreb stock exchange","zimbabwe stock exchange":"zimbabwe stock exchange"},En=function(e,t){var i=Pe(e,["ticketnumber","code"]);t.push(i);var n=i.template||"";""===n&&(n=i.code),n=(n||"").toLowerCase();var a=On[n]||"";return i.ticketnumber&&(a="".concat(a,": ").concat(i.ticketnumber)),i.code&&!On[i.code.toLowerCase()]&&(a+=" "+i.code),a},_n={};Object.keys(On).forEach((function(e){_n[e]=En}));var Sn=_n,Cn=/^jan /i,qn=/^year /i,Nn=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],An=function(e){e=(e=e.replace(/,/g,"")).replace(/−/g,"-");var t=Number(e);return isNaN(t)?e:t},Ln={"weather box":function(e,t){var i=Pe(e),n={},a=Object.keys(i).filter((function(e){return Cn.test(e)}));(a=a.map((function(e){return e.replace(Cn,"")}))).forEach((function(e){n[e]=[],Nn.forEach((function(t){var a="".concat(t," ").concat(e);if(i.hasOwnProperty(a)){var r=An(i[a]);delete i[a],n[e].push(r)}}))})),i.byMonth=n;var r={};return Object.keys(i).forEach((function(e){if(qn.test(e)){var t=e.replace(qn,"");r[t]=i[e],delete i[e]}})),i.byYear=r,t.push(i),""},"weather box/concise c":function(e,t){var i=Pe(e);return i.list=i.list.map((function(e){return An(e)})),i.byMonth={"high c":i.list.slice(0,12),"low c":i.list.slice(12,24),"rain mm":i.list.slice(24,36)},delete i.list,i.template="weather box",t.push(i),""},"weather box/concise f":function(e,t){var i=Pe(e);return i.list=i.list.map((function(e){return An(e)})),i.byMonth={"high f":i.list.slice(0,12),"low f":i.list.slice(12,24),"rain inch":i.list.slice(24,36)},delete i.list,i.template="weather box",t.push(i),""},"climate chart":function(e,t){var i=Pe(e).list||[],n=i[0],a=i[38];i=(i=i.slice(1)).map((function(e){return e&&"−"===e[0]&&(e=e.replace(/−/,"-")),e}));for(var r=[],o=0;o<36;o+=3)r.push({low:An(i[o]),high:An(i[o+1]),precip:An(i[o+2])});var s={template:"climate chart",data:{title:n,source:a,months:r}};return t.push(s),""}},Dn=["id","title","description","section"],In=["id","name"],Tn={"imdb title":Dn,"imdb name":Dn,"imdb episode":Dn,"imdb event":Dn,"afi film":Dn,"allmovie title":Dn,allgame:Dn,"tcmdb title":Dn,"discogs artist":Dn,"discogs label":Dn,"discogs release":Dn,"discogs master":Dn,"librivox author":Dn,"musicbrainz artist":Dn,"musicbrainz label":Dn,"musicbrainz recording":Dn,"musicbrainz release":Dn,"musicbrainz work":Dn,youtube:Dn,"goodreads author":In,"goodreads book":Dn,twitter:In,facebook:In,instagram:In,tumblr:In,pinterest:In,"espn nfl":In,"espn nhl":In,"espn fc":In,hockeydb:In,"fifa player":In,worldcat:In,"worldcat id":In,"nfl player":In,"ted speaker":In,playmate:In,dmoz:Dn,"find a grave":["id","name","work","last","first","date","accessdate"],congbio:["id","name","date"],"hollywood walk of fame":["name"]};Tn.imdb=Tn["imdb name"],Tn["imdb episodess"]=Tn["imdb episode"];var Pn=Tn,Rn={inflection:function(e,t){var i=Pe(e,["lemma"]);return i.tags=i.list,delete i.list,i.type="form-of",t.push(i),i.lemma||""},"la-verb-form":function(e,t){var i=Pe(e,["word"]);return t.push(i),i.word||""},"feminine plural":function(e,t){var i=Pe(e,["word"]);return t.push(i),i.word||""},"male plural":function(e,t){var i=Pe(e,["word"]);return t.push(i),i.word||""},rhymes:function(e,t){var i=Pe(e,["word"]);return t.push(i),"Rhymes: -"+(i.word||"")}};["abbreviation","abessive plural","abessive singular","accusative plural","accusative singular","accusative","acronym","active participle","agent noun","alternative case form","alternative form","alternative plural","alternative reconstruction","alternative spelling","alternative typography","aphetic form","apocopic form","archaic form","archaic spelling","aspirate mutation","associative plural","associative singular","attributive form","attributive form","augmentative","benefactive plural","benefactive singular","causative plural","causative singular","causative","clipping","combining form","comitative plural","comitative singular","comparative plural","comparative singular","comparative","contraction","dated form","dated spelling","dative plural definite","dative plural indefinite","dative plural","dative singular","dative","definite","deliberate misspelling","diminutive","distributive plural","distributive singular","dual","early form","eclipsis","elative","ellipsis","equative","euphemistic form","euphemistic spelling","exclusive plural","exclusive singular","eye dialect","feminine noun","feminine plural past participle","feminine plural","feminine singular past participle","feminine singular","feminine","form","former name","frequentative","future participle","genitive plural definite","genitive plural indefinite","genitive plural","genitive singular definite","genitive singular indefinite","genitive singular","genitive","gerund","h-prothesis","hard mutation","harmonic variant","imperative","imperfective form","inflected form","inflection","informal form","informal spelling","initialism","ja-form","jyutping reading","late form","lenition","masculine plural past participle","masculine plural","medieval spelling","misconstruction","misromanization","misspelling","mixed mutation","monotonic form","mutation","nasal mutation","negative","neuter plural past participle","neuter plural","neuter singular past participle","neuter singular","nominalization","nominative plural","nominative singular","nonstandard form","nonstandard spelling","oblique plural","oblique singular","obsolete form","obsolete spelling","obsolete typography","official form","participle","passive participle","passive","past active participle","past participle","past passive participle","past tense","perfective form","plural definite","plural indefinite","plural","polytonic form","present active participle","present participle","present tense","pronunciation spelling","rare form","rare spelling","reflexive","second-person singular past","short for","singular definite","singular","singulative","soft mutation","spelling","standard form","standard spelling","substantivisation","superlative","superseded spelling","supine","syncopic form","synonym","terminative plural","terminative singular","uncommon form","uncommon spelling","verbal noun","vocative plural","vocative singular"].forEach((function(e){Rn[e+" of"]=function(e,t){var i=Pe(e,["lemma"]);return i.tags=i.list,delete i.list,i.type="form-of",t.push(i),i.lemma||""}}));var Mn=Rn,Un=Object.assign({},Ei,Li,Mi,Hi,Xi,an,on,un,mn,fn,bn,wn,yn,xn,$n,zn,Sn,Ln,Pn,Mn),Fn=Pe,Kn=["0","1","2","3","4","5","6","7","8"],Bn=function(e,t){var i,n=e.name;if(!0===ei.hasOwnProperty(n))return"";if(!0===oi(n)){var a=Pe(e.body,t,"raw"),r=si(a);return t.push(r),""}if(!0===/^cite [a-z]/.test(n)){var o=Pe(e.body,t);return o.type=o.template,o.template="citation",t.push(o),""}if(!0===Un.hasOwnProperty(n)){if("number"==typeof Un[n])return Fn(e.body,Kn)[String(Un[n])]||"";if("string"==typeof Un[n])return Un[n];if(!0==(i=Un[n],"[object Array]"===Object.prototype.toString.call(i))){var s=Fn(e.body,Un[n]);return t.push(s),""}if("function"==typeof Un[n])return Un[n](e.body,t)}var c=Pe(e.body);return t&&Object.keys(c).length>0&&t.push(c),""},Wn=function(e){Object.defineProperty(this,"data",{enumerable:!1,value:e})},Yn={text:function(){return""},json:function(){return this.data}};Object.keys(Yn).forEach((function(e){Wn.prototype[e]=Yn[e]}));var Zn=Wn,Gn=new RegExp("^(cite |citation)","i"),Hn={citation:!0,refn:!0,harvnb:!0},Vn=function(e){return"infobox"===e.template&&e.data&&function(e){return e&&"[object Object]"===Object.prototype.toString.call(e)}(e.data)},Jn=function(e){var t=e.wiki,i=Xt(t),n=[];i.forEach((function(e){return function e(i,a){i.parent=a,i.children&&i.children.length>0&&i.children.forEach((function(t){return e(t,i)})),i.out=Bn(i,n);!function e(t,i,n){t.parent&&(t.parent.body=t.parent.body.replace(i,n),e(t.parent,i,n))}(i,i.body,i.out),t=t.replace(i.body,i.out)}(e,null)})),e.infoboxes=e.infoboxes||[],e.references=e.references||[],e.templates=e.templates||[],e.templates=e.templates.concat(n),e.templates=e.templates.filter((function(t){return!0===function(e){return!0===Hn[e.template]||!0===Gn.test(e.template)}(t)?(e.references.push(new Ue(t)),!1):!0!==Vn(t)||(e.infoboxes.push(new Zt(t)),!1)})),e.templates=e.templates.map((function(e){return new Zn(e)})),i.forEach((function(e){t=t.replace(e.body,e.out)})),e.wiki=t},Qn=Oe,Xn=function(e){var t=e.wiki;t=t.replace(/<gallery([^>]*?)>([\s\S]+?)<\/gallery>/g,(function(t,i,n){var a=n.split(/\n/g);return(a=(a=a.filter((function(e){return e&&""!==e.trim()}))).map((function(e){var t=e.split(/\|/),i={file:t[0].trim()},n=new z(i).json(),a=t.slice(1).join("|");return""!==a&&(n.caption=Qn(a)),n}))).length>0&&e.templates.push({template:"gallery",images:a,pos:e.title}),""})),e.wiki=t},ea=function(e){var t=e.wiki;t=t.replace(/\{\{election box begin([\s\S]+?)\{\{election box end\}\}/gi,(function(t){var i={wiki:t,templates:[]};Jn(i);var n=i.templates.map((function(e){return e.json()})),a=n.find((function(e){return"election box"===e.template}))||{},r=n.filter((function(e){return"election box candidate"===e.template})),o=n.find((function(e){return"election box gain"===e.template||"election box hold"===e.template}))||{};return(r.length>0||o)&&e.templates.push({template:"election box",title:a.title,candidates:r,summary:o.data}),""})),e.wiki=t},ta={coach:["team","year","g","w","l","w-l%","finish","pg","pw","pl","pw-l%"],player:["year","team","gp","gs","mpg","fg%","3p%","ft%","rpg","apg","spg","bpg","ppg"],roster:["player","gp","gs","mpg","fg%","3fg%","ft%","rpg","apg","spg","bpg","ppg"]},ia=function(e){var t=e.wiki;t=t.replace(/\{\{nba (coach|player|roster) statistics start([\s\S]+?)\{\{s-end\}\}/gi,(function(t,i){t=(t=t.replace(/^\{\{.*?\}\}/,"")).replace(/\{\{s-end\}\}/,""),i=i.toLowerCase().trim();var n="! "+ta[i].join(" !! "),a=ot("{|\n"+n+"\n"+t+"\n|}");return a=a.map((function(e){return Object.keys(e).forEach((function(t){e[t]=e[t].text()})),e})),e.templates.push({template:"NBA "+i+" statistics",data:a}),""})),e.wiki=t},na=function(e){var t=e.wiki;t=t.replace(/\{\{mlb game log (section|month)[\s\S]+?\{\{mlb game log (section|month) end\}\}/gi,(function(t){var i=function(e){var t=["#","date","opponent","score","win","loss","save","attendance","record"];return!0===/\|stadium=y/i.test(e)&&t.splice(7,0,"stadium"),!0===/\|time=y/i.test(e)&&t.splice(7,0,"time"),!0===/\|box=y/i.test(e)&&t.push("box"),t}(t);t=(t=t.replace(/^\{\{.*?\}\}/,"")).replace(/\{\{mlb game log (section|month) end\}\}/i,"");var n="! "+i.join(" !! "),a=ot("{|\n"+n+"\n"+t+"\n|}");return a=a.map((function(e){return Object.keys(e).forEach((function(t){e[t]=e[t].text()})),e})),e.templates.push({template:"mlb game log section",data:a}),""})),e.wiki=t},aa=["res","record","opponent","method","event","date","round","time","location","notes"],ra=function(e){var t=e.wiki;t=t.replace(/\{\{mma record start[\s\S]+?\{\{end\}\}/gi,(function(t){t=(t=t.replace(/^\{\{.*?\}\}/,"")).replace(/\{\{end\}\}/i,"");var i="! "+aa.join(" !! "),n=ot("{|\n"+i+"\n"+t+"\n|}");return n=n.map((function(e){return Object.keys(e).forEach((function(t){e[t]=e[t].text()})),e})),e.templates.push({template:"mma record start",data:n}),""})),e.wiki=t},oa=Oe,sa=function(e){var t=e.wiki;t=(t=t.replace(/<math([^>]*?)>([\s\S]+?)<\/math>/g,(function(t,i,n){var a=oa(n).text();return e.templates.push({template:"math",formula:a,raw:n}),a&&a.length<12?a:""}))).replace(/<chem([^>]*?)>([\s\S]+?)<\/chem>/g,(function(t,i,n){return e.templates.push({template:"chem",data:n}),""})),e.wiki=t},ca=function(e){ea(e),Xn(e),sa(e),na(e),ra(e),ia(e)},ua=new RegExp("^("+C.references.join("|")+"):?","i"),la=/(?:\n|^)(={2,5}.{1,200}?={2,5})/g,pa={heading:He,table:ft,paragraphs:Ft,templates:Jn,references:Ye,startEndTemplates:ca},ma=function(e,t){return pa.startEndTemplates(e),pa.references(e),pa.templates(e),pa.table(e),pa.paragraphs(e,t),e=new ae(e)},da=function(e){for(var t=[],i=e.wiki.split(la),n=0;n<i.length;n+=2){var a=i[n-1]||"",r=i[n]||"";if(""!==r||""!==a){var o={title:"",depth:null,wiki:r,templates:[],tables:[],infoboxes:[],references:[]};pa.heading(o,a);var s=ma(o,e);t.push(s)}}e.sections=function(e){return e.filter((function(t,i){return!0!==ua.test(t.title())||(t.paragraphs().length>0||(t.templates().length>0||(e[i+1]&&e[i+1].depth>t.depth&&(e[i+1].depth-=1),!1)))}))}(t)},fa=new RegExp("\\[\\[:?("+C.categories.join("|")+"):(.{2,178}?)]](w{0,10})","ig"),ga=new RegExp("^\\[\\[:?("+C.categories.join("|")+"):","ig"),ha={section:da,categories:function(e){var t=e.wiki,i=t.match(fa);i&&i.forEach((function(t){(t=(t=(t=t.replace(ga,"")).replace(/\|?[ \*]?\]\]$/i,"")).replace(/\|.*/,""))&&!t.match(/[\[\]]/)&&e.categories.push(t.trim())})),t=t.replace(fa,""),e.wiki=t}},ba=function(e,t){t=t||{};var i=Object.assign(t,{title:t.title||null,pageID:t.pageID||t.id||null,namespace:t.namespace||t.ns||null,type:"page",wiki:e||"",categories:[],sections:[],coordinates:[]});return!0===F(e)?(i.type="redirect",i.redirectTo=K(e),ha.categories(i),new S(i)):(H(i),ha.categories(i),ha.section(i),new S(i))},ka=function(e){var t=(e=e.filter((function(e){return e}))).map((function(e){return ba(e.wiki,e.meta)}));return 0===t.length?null:1===t.length?t[0]:t},wa=function(e,t){return fetch(e,t).then((function(e){return e.json()}))},va=function(e){var t=e.userAgent||e["User-Agent"]||e["Api-User-Agent"]||"User of the wtf_wikipedia library";return{method:"GET",headers:{"Content-Type":"application/json","Api-User-Agent":t,"User-Agent":t,Origin:"*"},redirect:"follow"}},ya=/^https?:\/\//,xa={lang:"en",wiki:"wikipedia",domain:null,follow_redirects:!0,path:"api.php"},$a=function(t,i,n){var a=null;"function"==typeof i&&(a=i,i={}),"function"==typeof n&&(a=n,n={}),"string"==typeof i&&(n=n||{},i=Object.assign({},{lang:i},n)),i=i||{},(i=Object.assign({},xa,i)).title=t,ya.test(t)&&(i=Object.assign(i,e(t)));var r=c(i),o=va(i);return wa(r,o).then((function(e){try{var t=u(e,i);return t=ka(t),a&&a(null,t),t}catch(e){throw e}})).catch((function(e){return console.error(e),a&&a(e,null),null}))},ja={lang:"en",wiki:"wikipedia",domain:null,path:"w/api.php"},za=function(e,t){var i;t=t||{},t=Object.assign({},ja,t),"string"==typeof e?t.lang=e:(i=e)&&"[object Object]"===Object.prototype.toString.call(i)&&(t=Object.assign(t,e));var n="https://".concat(t.lang,".wikipedia.org/").concat(t.path,"?");t.domain&&(n="https://".concat(t.domain,"/").concat(t.path,"?")),n+="format=json&action=query&generator=random&grnnamespace=0&prop=revisions&rvprop=content&grnlimit=1&rvslots=main&origin=*";var a=va(t);return wa(n,a).then((function(e){try{var t=u(e);return ka(t)}catch(e){throw e}})).catch((function(e){return console.error(e),null}))},Oa={lang:"en",wiki:"wikipedia",domain:null,path:"w/api.php"},Ea=function(e,t,i){var n;i=i||{},i=Object.assign({},Oa,i),"string"==typeof t?i.lang=t:(n=t)&&"[object Object]"===Object.prototype.toString.call(n)&&(i=Object.assign(i,t));var a={pages:[],categories:[]};return new Promise((function(t,n){!function r(o){var s=function(e,t,i){e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!1===/^Category/i.test(e)&&(e="Category:"+e),e=e.replace(/ /g,"_")}(e),e=encodeURIComponent(e);var n="https://".concat(t.lang,".wikipedia.org/").concat(t.path,"?");return t.domain&&(n="https://".concat(t.domain,"/").concat(t.path,"?")),n+="action=query&list=categorymembers&cmtitle=".concat(e,"&cmlimit=500&format=json&origin=*&redirects=true&cmtype=page|subcat"),i&&(n+="&cmcontinue="+i),n}(e,i,o),c=va(i);return wa(s,c).then((function(e){a=function(e){var t=e.query.categorymembers||[],i={pages:[],categories:[]};return t.forEach((function(e){14===e.ns?(delete e.ns,i.categories.push(e)):(delete e.ns,i.pages.push(e))})),i}(e),e.continue&&e.continue.cmcontinue?r(e.continue.cmcontinue):t(a)})).catch((function(e){console.error(e),n(e)}))}(null)}))},_a=function(e,t){return ba(e,t)},Sa={Doc:S,Section:ae,Paragraph:vt,Sentence:be,Image:z,Infobox:Zt,Link:ue,List:qt,Reference:Ue,Table:pt,Template:Zn,http:wa,wtf:_a};return _a.fetch=function(e,t,i,n){return $a(e,t,i)},_a.random=function(e,t,i){return za(e,t)},_a.category=function(e,t,i,n){return Ea(e,t,i)},_a.extend=function(e){return e(Sa,Un,this),this},_a.version="8.2.1",_a}));
  