!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.pcs=t():e.pcs=t()}(this,(()=>(()=>{"use strict";var e={354:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(29),r=n(212),a=/(-?\d*\.?\d*)(\D+)?/,c=function(){function e(t,n){(0,i.A)(this,e),this._value=Number(t),this._unit=n||"px"}return(0,r.A)(e,[{key:"value",get:function(){return this._value}},{key:"unit",get:function(){return this._unit}},{key:"toString",value:function(){return isNaN(this.value)?"":"".concat(this.value).concat(this.unit)}}],[{key:"fromElement",value:function(t,n){return t.style.getPropertyValue(n)&&e.fromStyle(t.style.getPropertyValue(n))||t.hasAttribute(n)&&new e(t.getAttribute(n))||void 0}},{key:"fromStyle",value:function(t){var n=t.match(a)||[];return new e(n[1],n[2])}}])}(),o=function(){function e(t,n){(0,i.A)(this,e),this._width=t,this._height=n}return(0,r.A)(e,[{key:"width",get:function(){return this._width}},{key:"widthValue",get:function(){return this._width&&!isNaN(this._width.value)?this._width.value:NaN}},{key:"widthUnit",get:function(){return this._width&&this._width.unit||"px"}},{key:"height",get:function(){return this._height}},{key:"heightValue",get:function(){return this._height&&!isNaN(this._height.value)?this._height.value:NaN}},{key:"heightUnit",get:function(){return this._height&&this._height.unit||"px"}}],[{key:"from",value:function(t){return new e(c.fromElement(t,"width"),c.fromElement(t,"height"))}}])}()},973:(e,t,n)=>{n.d(t,{A:()=>a});var i=n(730),r=function(e,t){var n;for(n=e.parentElement;n&&!i.A.matchesSelector(n,t);n=n.parentElement);return n};const a={findClosestAncestor:r,isNestedInTable:function(e){return Boolean(r(e,"table"))},closestInlineStyle:function(e,t,n){for(var i=e;i;i=i.parentElement){var r=void 0;try{r=i.style[t]}catch(e){continue}if(r){if(void 0===n)return i;if(n===r)return i}}},isVisible:function(e){return Boolean(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},copyAttributesToDataAttributes:function(e,t,n){n.filter((function(t){return e.hasAttribute(t)})).forEach((function(n){return t.setAttribute("data-".concat(n),e.getAttribute(n))}))},copyDataAttributesToAttributes:function(e,t,n){n.filter((function(t){return e.hasAttribute("data-".concat(t))})).forEach((function(n){return t.setAttribute(n,e.getAttribute("data-".concat(n)))}))}}},730:(e,t,n)=>{n.d(t,{A:()=>i});const i={matchesSelector:function(e,t){return e.matches?e.matches(t):e.matchesSelector?e.matchesSelector(t):!!e.webkitMatchesSelector&&e.webkitMatchesSelector(t)},querySelectorAll:function(e,t){return Array.prototype.slice.call(e.querySelectorAll(t))},CustomEvent:"undefined"!=typeof window&&window.CustomEvent||function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{bubbles:!1,cancelable:!1,detail:void 0},n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}}},29:(e,t,n)=>{function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>i})},212:(e,t,n)=>{function i(e){return i="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},i(e)}function r(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}function c(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{A:()=>c})}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i={};return(()=>{n.d(i,{default:()=>tn});var e={ar:"٠١٢٣٤٥٦٧٨٩",fa:"۰۱۲۳۴۵۶۷۸۹",ml:"൦൧൨൩൪൫൬൭൮൯",kn:"೦೧೨೩೪೫೬೭೮೯",lo:"໐໑໒໓໔໕໖໗໘໙",or:"୦୧୨୩୪୫୬୭୮୯",kh:"០១២៣៤៥៦៧៨៩",nqo:"߀߁߂߃߄߅߆߇߈߉",pa:"੦੧੨੩੪੫੬੭੮੯",gu:"૦૧૨૩૪૫૬૭૮૯",hi:"०१२३४५६७८९",my:"၀၁၂၃၄၅၆၇၈၉",ta:"௦௧௨௩௪௫௬௭௮௯",te:"౦౧౨౩౪౫౬౭౮౯",th:"๐๑๒๓๔๕๖๗๘๙",bo:"༠༡༢༣༤༥༦༧༨༩"},t={ab:["ru"],abs:["id"],ace:["id"],ady:["ady-cyrl"],aeb:["aeb-arab"],"aeb-arab":["ar"],aln:["sq"],alt:["ru"],ami:["zh-hant"],an:["es"],anp:["hi"],arn:["es"],arq:["ar"],ary:["ar"],arz:["ar"],ast:["es"],atj:["fr"],av:["ru"],avk:["fr","es","ru"],awa:["hi"],ay:["es"],azb:["fa"],ba:["ru"],ban:["id"],"ban-bali":["ban"],bar:["de"],bbc:["bbc-latn"],"bbc-latn":["id"],bcc:["fa"],"be-tarask":["be"],bgn:["fa"],bh:["bho"],bi:["en"],bjn:["id"],bm:["fr"],bpy:["bn"],bqi:["fa"],br:["fr"],btm:["id"],bug:["id"],bxr:["ru"],ca:["oc"],"cbk-zam":["es"],cdo:["nan","zh-hant"],ce:["ru"],co:["it"],crh:["crh-latn"],"crh-cyrl":["ru"],cs:["sk"],csb:["pl"],cv:["ru"],"de-at":["de"],"de-ch":["de"],"de-formal":["de"],dsb:["hsb","de"],dtp:["ms"],dty:["ne"],egl:["it"],eml:["it"],"en-ca":["en"],"en-gb":["en"],"es-419":["es"],"es-formal":["es"],ext:["es"],ff:["fr"],fit:["fi"],frc:["fr"],frp:["fr"],frr:["de"],fur:["it"],gag:["tr"],gan:["gan-hant","zh-hant","zh-hans"],"gan-hans":["zh-hans"],"gan-hant":["zh-hant","zh-hans"],gcr:["fr"],gl:["pt"],glk:["fa"],gn:["es"],gom:["gom-deva"],"gom-deva":["hi"],gor:["id"],gsw:["de"],guc:["es"],hak:["zh-hant"],hif:["hif-latn"],hrx:["de"],hsb:["dsb","de"],ht:["fr"],"hu-formal":["hu"],hyw:["hy"],ii:["zh-cn","zh-hans"],inh:["ru"],io:["eo"],iu:["ike-cans"],jam:["en"],jut:["da"],jv:["id"],kaa:["kk-latn","kk-cyrl"],kab:["fr"],kbd:["kbd-cyrl"],kbp:["fr"],khw:["ur"],kiu:["tr"],kjp:["my"],kk:["kk-cyrl"],"kk-arab":["kk-cyrl"],"kk-cn":["kk-arab","kk-cyrl"],"kk-kz":["kk-cyrl"],"kk-latn":["kk-cyrl"],"kk-tr":["kk-latn","kk-cyrl"],kl:["da"],"ko-kp":["ko"],koi:["ru"],krc:["ru"],krl:["fi"],ks:["ks-arab"],ksh:["de"],ku:["ku-latn"],"ku-arab":["ckb"],kum:["ru"],kv:["ru"],lad:["es"],lb:["de"],lbe:["ru"],lez:["ru","az"],li:["nl"],lij:["it"],liv:["et"],lki:["fa"],lld:["it","rm","fur"],lmo:["pms","eml","lij","vec","it"],ln:["fr"],lrc:["fa"],ltg:["lv"],luz:["fa"],lzh:["zh-hant"],lzz:["tr"],mad:["id"],mai:["hi"],"map-bms":["jv","id"],mdf:["myv","ru"],mg:["fr"],mhr:["mrj","ru"],min:["id"],mnw:["my"],mo:["ro"],mrj:["mhr","ru"],"ms-arab":["ms"],mwl:["pt"],myv:["mdf","ru"],mzn:["fa"],nah:["es"],nan:["cdo","zh-hant"],nap:["it"],nb:["nn"],nds:["de"],"nds-nl":["nl"],nia:["id"],"nl-informal":["nl"],nn:["nb"],nrm:["fr"],oc:["ca","fr"],olo:["fi"],os:["ru"],pcd:["fr"],pdc:["de"],pdt:["de"],pfl:["de"],pih:["en"],pms:["it"],pnt:["el"],pt:["pt-br"],"pt-br":["pt"],qu:["qug","es"],qug:["qu","es"],rgn:["it"],rmy:["ro"],"roa-tara":["it"],rue:["uk","ru"],rup:["ro"],ruq:["ruq-latn","ro"],"ruq-cyrl":["mk"],"ruq-latn":["ro"],sa:["hi"],sah:["ru"],scn:["it"],sco:["en"],sdc:["it"],sdh:["cbk","fa"],ses:["fr"],sg:["fr"],sgs:["lt"],sh:["bs","sr-el","hr"],shi:["fr"],shy:["shy-latn"],"shy-latn":["fr"],sk:["cs"],skr:["skr-arab"],"skr-arab":["ur","pnb"],sli:["de"],smn:["fi"],sr:["sr-ec"],srn:["nl"],stq:["de"],sty:["ru"],su:["id"],szl:["pl"],szy:["zh-tw","zh-hant","zh-hans"],tay:["zh-tw","zh-hant","zh-hans"],tcy:["kn"],tet:["pt"],tg:["tg-cyrl"],trv:["zh-tw","zh-hant","zh-hans"],tt:["tt-cyrl","ru"],"tt-cyrl":["ru"],ty:["fr"],tyv:["ru"],udm:["ru"],ug:["ug-arab"],vec:["it"],vep:["et"],vls:["nl"],vmf:["de"],vot:["fi"],vro:["et"],wa:["fr"],wo:["fr"],wuu:["zh-hans"],xal:["ru"],xmf:["ka"],yi:["he"],za:["zh-hans"],zea:["nl"],zgh:["kab"],zh:["zh-hans"],"zh-cn":["zh-hans"],"zh-hant":["zh-hans"],"zh-hk":["zh-hant","zh-hans"],"zh-mo":["zh-hk","zh-hant","zh-hans"],"zh-my":["zh-sg","zh-hans"],"zh-sg":["zh-hans"],"zh-tw":["zh-hant","zh-hans"]};let r=class{constructor(e){this.locale=e}convertPlural(e,t){const n=/\d+=/i;if(!t||0===t.length)return"";for(let i=0;i<t.length;i++){const r=t[i];if(n.test(r)){if(parseInt(r.slice(0,r.indexOf("=")),10)===e)return r.slice(r.indexOf("=")+1);t[i]=void 0}}t=t.filter((e=>!!e));let i=this.getPluralForm(e,this.locale);return i=Math.min(i,t.length-1),t[i]}getPluralForm(e,t){const n=new Intl.PluralRules(t),i=n.resolvedOptions().pluralCategories,r=n.select(e);return["zero","one","two","few","many","other"].filter((e=>i.includes(e))).indexOf(r)}convertNumber(e,n=!1){let i=this.digitTransformTable(this.locale),r="";if(n){if(parseFloat(e,10)===e||!i)return e;const t=[];for(const e in i)t[i[e]]=e;i=t;const n=String(e);for(let e=0;e<n.length;e++)r+=i[n[e]]||n[e];return parseFloat(r,10)}if(Intl.NumberFormat){let n;const i=[...t[this.locale]||[],"en"];return n=Intl.NumberFormat.supportedLocalesOf(this.locale).length?[this.locale]:i,r=new Intl.NumberFormat(n).format(e),"NaN"===r&&(r=e),r}}convertGrammar(e){return e}gender(e,t){if(!t||0===t.length)return"";for(;t.length<2;)t.push(t[t.length-1]);return"male"===e?t[0]:"female"===e?t[1]:3===t.length?t[2]:t[0]}digitTransformTable(t){return!!e[t]&&e[t].split("")}};var a={bs:class extends r{convertGrammar(e,t){switch(t){case"instrumental":e="s "+e;break;case"lokativ":e="o "+e}return e}},default:r,dsb:class extends r{convertGrammar(e,t){switch(t){case"instrumental":e="z "+e;break;case"lokatiw":e="wo "+e}return e}},fi:class extends r{convertGrammar(e,t){let n=e.match(/[aou][^äöy]*$/i);const i=e;switch(e.match(/wiki$/i)&&(n=!1),e.match(/[bcdfghjklmnpqrstvwxz]$/i)&&(e+="i"),t){case"genitive":e+="n";break;case"elative":e+=n?"sta":"stä";break;case"partitive":e+=n?"a":"ä";break;case"illative":e+=e.slice(-1)+"n";break;case"inessive":e+=n?"ssa":"ssä";break;default:e=i}return e}},ga:class extends r{convertGrammar(e,t){if("ainmlae"===t)switch(e){case"an Domhnach":e="Dé Domhnaigh";break;case"an Luan":e="Dé Luain";break;case"an Mháirt":e="Dé Mháirt";break;case"an Chéadaoin":e="Dé Chéadaoin";break;case"an Déardaoin":e="Déardaoin";break;case"an Aoine":e="Dé hAoine";break;case"an Satharn":e="Dé Sathairn"}return e}},he:class extends r{convertGrammar(e,t){switch(t){case"prefixed":case"תחילית":"ו"===e.slice(0,1)&&"וו"!==e.slice(0,2)&&(e="ו"+e),"ה"===e.slice(0,1)&&(e=e.slice(1)),(e.slice(0,1)<"א"||e.slice(0,1)>"ת")&&(e="־"+e)}return e}},hsb:class extends r{convertGrammar(e,t){switch(t){case"instrumental":e="z "+e;break;case"lokatiw":e="wo "+e}return e}},hu:class extends r{convertGrammar(e,t){switch(t){case"rol":e+="ról";break;case"ba":e+="ba";break;case"k":e+="k"}return e}},hy:class extends r{convertGrammar(e,t){return"genitive"===t&&("ա"===e.slice(-1)?e=e.slice(0,-1)+"այի":"ո"===e.slice(-1)?e=e.slice(0,-1)+"ոյի":"գիրք"===e.slice(-4)?e=e.slice(0,-4)+"գրքի":e+="ի"),e}},la:class extends r{convertGrammar(e,t){switch(t){case"genitive":e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/u[ms]$/i,"i")).replace(/ommunia$/i,"ommunium")).replace(/a$/i,"ae")).replace(/libri$/i,"librorum")).replace(/nuntii$/i,"nuntiorum")).replace(/tio$/i,"tionis")).replace(/ns$/i,"ntis")).replace(/as$/i,"atis")).replace(/es$/i,"ei");break;case"accusative":e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/u[ms]$/i,"um")).replace(/ommunia$/i,"am")).replace(/a$/i,"ommunia")).replace(/libri$/i,"libros")).replace(/nuntii$/i,"nuntios")).replace(/tio$/i,"tionem")).replace(/ns$/i,"ntem")).replace(/as$/i,"atem")).replace(/es$/i,"em");break;case"ablative":e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/u[ms]$/i,"o")).replace(/ommunia$/i,"ommunibus")).replace(/a$/i,"a")).replace(/libri$/i,"libris")).replace(/nuntii$/i,"nuntiis")).replace(/tio$/i,"tione")).replace(/ns$/i,"nte")).replace(/as$/i,"ate")).replace(/es$/i,"e")}return e}},os:class extends r{convertGrammar(e,t){let n,i,r,a;switch(n="мæ",i="",r="",a="",e.match(/тæ$/i)?(e=e.slice(0,-1),n="æм"):e.match(/[аæеёиоыэюя]$/i)?i="й":e.match(/у$/i)?e.slice(-2,-1).match(/[аæеёиоыэюя]$/i)||(i="й"):e.match(/[бвгджзйклмнопрстфхцчшщьъ]$/i)||(r="-"),t){case"genitive":a=r+i+"ы";break;case"dative":a=r+i+"æн";break;case"allative":a=r+n;break;case"ablative":a="й"===i?r+i+"æ":r+i+"æй";break;case"superessive":a=r+i+"ыл";break;case"equative":a=r+i+"ау";break;case"comitative":a=r+"имæ"}return e+a}},ru:class extends r{convertGrammar(e,t){return"genitive"===t&&("ь"===e.slice(-1)?e=e.slice(0,-1)+"я":"ия"===e.slice(-2)?e=e.slice(0,-2)+"ии":"ка"===e.slice(-2)?e=e.slice(0,-2)+"ки":"ти"===e.slice(-2)?e=e.slice(0,-2)+"тей":"ды"===e.slice(-2)?e=e.slice(0,-2)+"дов":"ник"===e.slice(-3)&&(e=e.slice(0,-3)+"ника")),e}},sl:class extends r{convertGrammar(e,t){switch(t){case"mestnik":e="o "+e;break;case"orodnik":e="z "+e}return e}},uk:class extends r{convertGrammar(e,t){switch(t){case"genitive":"ь"===e.slice(-1)?e=e.slice(0,-1)+"я":"ія"===e.slice(-2)?e=e.slice(0,-2)+"ії":"ка"===e.slice(-2)?e=e.slice(0,-2)+"ки":"ти"===e.slice(-2)?e=e.slice(0,-2)+"тей":"ды"===e.slice(-2)?e=e.slice(0,-2)+"дов":"ник"===e.slice(-3)&&(e=e.slice(0,-3)+"ника");break;case"accusative":"ія"===e.slice(-2)&&(e=e.slice(0,-2)+"ію")}return e}}};const c=new RegExp("(?:([A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁːˑˠ-ˤˮͰ-ͳͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-҂Ҋ-ԯԱ-Ֆՙ-՟ա-և։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ঀংঃঅ-ঌএঐও-নপ-রলশ-হঽ-ীেৈোৌৎৗড়ঢ়য়-ৡ০-ৱ৴-৺ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽ-ીૉોૌૐૠૡ૦-૰ૹଂଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽାୀେୈୋୌୗଡ଼ଢ଼ୟ-ୡ୦-୷ஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹாிுூெ-ைொ-ௌௐௗ௦-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౚౠౡ౦-౯౿ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೄೆ-ೈೊೋೕೖೞೠೡ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ീെ-ൈൊ-ൌൎൗൟ-ൡ൦-൵൹-ൿංඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-෴ก-ะาำเ-ๆ๏-๛ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆ໐-໙ໜ-ໟༀ-༗༚-༴༶༸༾-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿚က-ာေးျြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃႄႇ-ႌႎ-ႜ႞-ჅჇჍა-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፼ᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙿᚁ-ᚚᚠ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះៈ។-៚ៜ០-៩᠐-᠙ᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰᤱᤳ-ᤸ᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧚ᨀ-ᨖᨙᨚ᨞-ᩕᩗᩡᩣᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-ᭋ᭐-᭪᭴-᭼ᮂ-ᮡᮦᮧ᮪ᮮ-ᯥᯧᯪ-ᯬᯮ᯲᯳᯼-ᰫᰴᰵ᰻-᱉ᱍ-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳳᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〮〯〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎ㆐-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿕ꀀ-ꒌꓐ-ꘌꘐ-ꘫꙀ-ꙮꚀ-ꚝꚠ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꞭꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꣽ꤀-ꤥ꤮-ꥆꥒ꥓꥟-ꥼꦃ-ꦲꦴꦵꦺꦻꦽ-꧍ꧏ-꧙꧞-ꧤꧦ-ꧾꨀ-ꨨꨯꨰꨳꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-ꩻꩽ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫫꫮ-ꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭥꭰ-ꯤꯦꯧꯩ-꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-舘並-龎ﬀ-ﬆﬓ-ﬗＡ-Ｚａ-ｚｦ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ]|\ud800[\udc00-\udc0b]|\ud800[\udc0d-\udc26]|\ud800[\udc28-\udc3a]|𐀼|𐀽|\ud800[\udc3f-\udc4d]|\ud800[\udc50-\udc5d]|\ud800[\udc80-\udcfa]|𐄀|𐄂|\ud800[\udd07-\udd33]|\ud800[\udd37-\udd3f]|\ud800[\uddd0-\uddfc]|\ud800[\ude80-\ude9c]|\ud800[\udea0-\uded0]|\ud800[\udf00-\udf23]|\ud800[\udf30-\udf4a]|\ud800[\udf50-\udf75]|\ud800[\udf80-\udf9d]|\ud800[\udf9f-\udfc3]|\ud800[\udfc8-\udfd5]|\ud801[\udc00-\udc9d]|\ud801[\udca0-\udca9]|\ud801[\udd00-\udd27]|\ud801[\udd30-\udd63]|𐕯|\ud801[\ude00-\udf36]|\ud801[\udf40-\udf55]|\ud801[\udf60-\udf67]|𑀀|\ud804[\udc02-\udc37]|\ud804[\udc47-\udc4d]|\ud804[\udc66-\udc6f]|\ud804[\udc82-\udcb2]|𑂷|𑂸|\ud804[\udcbb-\udcc1]|\ud804[\udcd0-\udce8]|\ud804[\udcf0-\udcf9]|\ud804[\udd03-\udd26]|𑄬|\ud804[\udd36-\udd43]|\ud804[\udd50-\udd72]|\ud804[\udd74-\udd76]|\ud804[\udd82-\uddb5]|\ud804[\uddbf-\uddc9]|𑇍|\ud804[\uddd0-\udddf]|\ud804[\udde1-\uddf4]|\ud804[\ude00-\ude11]|\ud804[\ude13-\ude2e]|𑈲|𑈳|𑈵|\ud804[\ude38-\ude3d]|\ud804[\ude80-\ude86]|𑊈|\ud804[\ude8a-\ude8d]|\ud804[\ude8f-\ude9d]|\ud804[\ude9f-\udea9]|\ud804[\udeb0-\udede]|\ud804[\udee0-\udee2]|\ud804[\udef0-\udef9]|𑌂|𑌃|\ud804[\udf05-\udf0c]|𑌏|𑌐|\ud804[\udf13-\udf28]|\ud804[\udf2a-\udf30]|𑌲|𑌳|\ud804[\udf35-\udf39]|\ud804[\udf3d-\udf3f]|\ud804[\udf41-\udf44]|𑍇|𑍈|\ud804[\udf4b-\udf4d]|𑍐|𑍗|\ud804[\udf5d-\udf63]|\ud805[\udc80-\udcb2]|𑒹|\ud805[\udcbb-\udcbe]|𑓁|\ud805[\udcc4-\udcc7]|\ud805[\udcd0-\udcd9]|\ud805[\udd80-\uddb1]|\ud805[\uddb8-\uddbb]|𑖾|\ud805[\uddc1-\udddb]|\ud805[\ude00-\ude32]|𑘻|𑘼|𑘾|\ud805[\ude41-\ude44]|\ud805[\ude50-\ude59]|\ud805[\ude80-\udeaa]|𑚬|𑚮|𑚯|𑚶|\ud805[\udec0-\udec9]|\ud805[\udf00-\udf19]|𑜠|𑜡|𑜦|\ud805[\udf30-\udf3f]|\ud806[\udca0-\udcf2]|𑣿|\ud806[\udec0-\udef8]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e]|\ud809[\udc70-\udc74]|\ud809[\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38]|\ud81a[\ude40-\ude5e]|\ud81a[\ude60-\ude69]|𖩮|𖩯|\ud81a[\uded0-\udeed]|𖫵|\ud81a[\udf00-\udf2f]|\ud81a[\udf37-\udf45]|\ud81a[\udf50-\udf59]|\ud81a[\udf5b-\udf61]|\ud81a[\udf63-\udf77]|\ud81a[\udf7d-\udf8f]|\ud81b[\udf00-\udf44]|\ud81b[\udf50-\udf7e]|\ud81b[\udf93-\udf9f]|𛀀|𛀁|\ud82f[\udc00-\udc6a]|\ud82f[\udc70-\udc7c]|\ud82f[\udc80-\udc88]|\ud82f[\udc90-\udc99]|𛲜|𛲟|\ud834[\udc00-\udcf5]|\ud834[\udd00-\udd26]|\ud834[\udd29-\udd66]|\ud834[\udd6a-\udd72]|𝆃|𝆄|\ud834[\udd8c-\udda9]|\ud834[\uddae-\udde8]|\ud834[\udf60-\udf71]|\ud835[\udc00-\udc54]|\ud835[\udc56-\udc9c]|𝒞|𝒟|𝒢|𝒥|𝒦|\ud835[\udca9-\udcac]|\ud835[\udcae-\udcb9]|𝒻|\ud835[\udcbd-\udcc3]|\ud835[\udcc5-\udd05]|\ud835[\udd07-\udd0a]|\ud835[\udd0d-\udd14]|\ud835[\udd16-\udd1c]|\ud835[\udd1e-\udd39]|\ud835[\udd3b-\udd3e]|\ud835[\udd40-\udd44]|𝕆|\ud835[\udd4a-\udd50]|\ud835[\udd52-\udea5]|\ud835[\udea8-\udeda]|\ud835[\udedc-\udf14]|\ud835[\udf16-\udf4e]|\ud835[\udf50-\udf88]|\ud835[\udf8a-\udfc2]|\ud835[\udfc4-\udfcb]|\ud836[\udc00-\uddff]|\ud836[\ude37-\ude3a]|\ud836[\ude6d-\ude74]|\ud836[\ude76-\ude83]|\ud836[\ude85-\ude8b]|\ud83c[\udd10-\udd2e]|\ud83c[\udd30-\udd69]|\ud83c[\udd70-\udd9a]|\ud83c[\udde6-\ude02]|\ud83c[\ude10-\ude3a]|\ud83c[\ude40-\ude48]|🉐|🉑|[\ud840-\ud868][\udc00-\udfff]|\ud869[\udc00-\uded6]|\ud869[\udf00-\udfff]|[\ud86a-\ud86c][\udc00-\udfff]|\ud86d[\udc00-\udf34]|\ud86d[\udf40-\udfff]|\ud86e[\udc00-\udc1d]|\ud86e[\udc20-\udfff]|[\ud86f-\ud872][\udc00-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]|[\udb80-\udbbe][\udc00-\udfff]|\udbbf[\udc00-\udffd]|[\udbc0-\udbfe][\udc00-\udfff]|\udbff[\udc00-\udffd])|([֐־׀׃׆׈-׿߀-ߪߴߵߺ-ࠕࠚࠤࠨ࠮-ࡘ࡜-࢟‏יִײַ-ﬨשׁ-ﭏ؈؋؍؛-ي٭-ٯٱ-ەۥۦۮۯۺ-ܐܒ-ܯ݋-ޥޱ-޿ࢠ-࣢ﭐ-ﴽ﵀-﷏ﷰ-﷼﷾﷿ﹰ-﻾]|\ud802[\udc00-\udd1e]|\ud802[\udd20-\ude00]|𐨄|\ud802[\ude07-\ude0b]|\ud802[\ude10-\ude37]|\ud802[\ude3b-\ude3e]|\ud802[\ude40-\udee4]|\ud802[\udee7-\udf38]|\ud802[\udf40-\udfff]|\ud803[\udc00-\ude5f]|\ud803[\ude7f-\udfff]|\ud83a[\udc00-\udccf]|\ud83a[\udcd7-\udfff]|\ud83b[\udc00-\uddff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\ude00-\udeef]|\ud83b[\udef2-\udeff]))");let o=class{constructor(e){this.locale=s(e),this.language=new(a[this.locale]||a.default)(this.locale)}emit(e,t){let n,i,r;switch(typeof e){case"string":case"number":n=e;break;case"object":if(i=e.slice(1).map((e=>this.emit(e,t))),r=e[0].toLowerCase(),"function"!=typeof this[r])throw new Error('unknown operation "'+r+'"');n=this[r](i,t);break;case"undefined":n="";break;default:throw new Error("unexpected type in AST: "+typeof e)}return n}concat(e){let t="";return e.forEach((e=>{t+=e})),t}replace(e,t){const n=parseInt(e[0],10);return n<t.length?t[n]:"$"+(n+1)}plural(e){const t=parseFloat(this.language.convertNumber(e[0],10)),n=e.slice(1);return n.length?this.language.convertPlural(t,n):""}gender(e){const t=e[0],n=e.slice(1);return this.language.gender(t,n)}grammar(e){const t=e[0],n=e[1];return n&&t&&this.language.convertGrammar(n,t)}wikilink(e){let t,n=e[0];":"===n.charAt(0)&&(n=n.slice(1));const i=`./${n}`;return t=1===e.length?n:e[1],`<a href="${i}" title="${n}">${t}</a>`}extlink(e){if(2!==e.length)throw new Error("Expected two items in the node");return`<a href="${e[0]}">${e[1]}</a>`}bidi(e){const t=function(e){const t=e.match(c);return t?void 0===t[2]?"ltr":"rtl":null}(e[0]);return"ltr"===t?"‪"+e[0]+"‬":"rtl"===t?"‫"+e[0]+"‬":e[0]}formatnum(e){const t=!!e[1]&&"R"===e[1],n=e[0];return"string"==typeof n||"number"==typeof n?this.language.convertNumber(n,t):n}htmlattributes(e){const t={};for(let n=0,i=e.length;n<i;n+=2)t[e[n]]=e[n+1];return t}htmlelement(e){const t=e.shift(),n=e.shift();let i=e,r="";for(const e in n)r+=` ${e}="${n[e]}"`;Array.isArray(i)||(i=[i]);return`<${t}${r}>${i.join("")}</${t}>`}};function s(e){return"string"==typeof e?e.toLowerCase():e}class u{constructor(e,{wikilinks:t=!1}={}){this.locale=s(e),this.wikilinks=t,this.emitter=new o(this.locale)}parse(e,t){if(e.includes("{{")||e.includes("<")||this.wikilinks&&e.includes("[")){const n=function(e,{wikilinks:t=!1}={}){let n=0;function i(e){return()=>{for(let t=0;t<e.length;t++){const n=e[t]();if(null!==n)return n}return null}}function r(e){const t=n,i=[];for(let r=0;r<e.length;r++){const a=e[r]();if(null===a)return n=t,null;i.push(a)}return i}function a(e,t){return()=>{const i=n,r=[];let a=t();for(;null!==a;)r.push(a),a=t();return r.length<e?(n=i,null):r}}function c(t){const i=t.length;return()=>{let r=null;return e.slice(n,n+i)===t&&(r=t,n+=i),r}}function o(t){return()=>{const i=e.slice(n).match(t);return null===i?null:(n+=i[0].length,i[0])}}const s=o(/^\s+/),u=c("|"),d=c(":"),l=c("\\"),f=o(/^./),h=c("$"),m=o(/^\d+/),p=c('"'),g=c("'"),b=o(t?/^[^{}[\]$<\\]/:/^[^{}$<\\]/),v=o(t?/^[^{}[\]$\\|]/:/^[^{}$\\|]/),y=i([E,o(t?/^[^{}[\]$\s]/:/^[^{}$\s]/)]);function E(){const e=r([l,f]);return null===e?null:e[1]}const A=i([E,v]),k=i([E,b]);function w(){const e=r([h,m]);return null===e?null:["REPLACE",parseInt(e[1],10)-1]}const T=(I=o(/^[ !"$&'()*,./0-9;=?@A-Z^_`a-z~\x80-\xFF+-]+/),S=function(e){return e.toString()},()=>{const e=I();return null===e?null:S(e)});var I,S;function L(){const e=r([u,a(0,X)]);if(null===e)return null;const t=e[1];return t.length>1?["CONCAT"].concat(t):t[0]}function C(){const e=r([T,d,w]);return null===e?null:[e[0],e[2]]}function _(){const e=r([T,d,X]);return null===e?null:[e[0],e[2]]}function N(){const e=r([T,d]);return null===e?null:[e[0],""]}const O=i([function(){const e=r([i([C,_,N]),a(0,L)]);return null===e?null:e[0].concat(e[1])},function(){const e=r([T,a(0,L)]);return null===e?null:[e[0]].concat(e[1])}]),P=c("{{"),D=c("}}"),x=c("[["),R=c("]]"),H=c("["),z=c("]");function B(){const e=r([P,O,D]);return null===e?null:e[1]}const M=i([function(){const e=r([a(1,X),u,a(1,V)]);return null===e?null:[["CONCAT"].concat(e[0]),["CONCAT"].concat(e[2])]},function(){const e=r([a(1,X)]);return null===e?null:[["CONCAT"].concat(e[0])]}]);function $(){let e=null;const t=r([x,M,R]);if(null!==t){const n=t[1];e=["WIKILINK"].concat(n)}return e}function q(){let e=null;const t=r([H,a(1,K),s,a(1,V),z]);return null!==t&&(e=["EXTLINK",1===t[1].length?t[1][0]:["CONCAT"].concat(t[1]),["CONCAT"].concat(t[3])]),e}const F=o(/^[A-Za-z]+/);function j(){const e=o(/^[^"]*/),t=r([p,e,p]);return null===t?null:t[1]}function G(){const e=o(/^[^']*/),t=r([g,e,g]);return null===t?null:t[1]}function U(){const e=o(/^\s*=\s*/),t=r([s,F,e,i([j,G])]);return null===t?null:[t[1],t[3]]}function W(){const e=a(0,U)();return Array.prototype.concat.apply(["HTMLATTRIBUTES"],e)}const K=i([B,w,$,q,function(){const e=a(1,y)();return null===e?null:e.join("")}]),V=i([B,w,$,q,function(){let t=null;const i=n,s=c("<"),u=o(/^\/?/),d=o(/^\s*>/),l=r([s,F,W,u,d]);if(null===l)return null;const f=n,h=l[1],m=a(0,V)(),p=n,g=r([c("</"),F,d]);if(null===g)return["CONCAT",e.slice(i,f)].concat(m);const b=n,v=g[1],y=l[2];if(function(e,t,n,i={allowedHtmlElements:["b","bdi","del","i","ins","u","font","big","small","sub","sup","h1","h2","h3","h4","h5","h6","cite","code","em","s","strike","strong","tt","var","div","center","blockquote","ol","ul","dl","table","caption","pre","ruby","rb","rp","rt","rtc","p","span","abbr","dfn","kbd","samp","data","time","mark","li","dt","dd"],allowedHtmlCommonAttributes:["id","class","style","lang","dir","title","aria-describedby","aria-flowto","aria-hidden","aria-label","aria-labelledby","aria-owns","role","about","property","resource","datatype","typeof","itemid","itemprop","itemref","itemscope","itemtype"],allowedHtmlAttributesByElement:{}}){if((e=e.toLowerCase())!==(t=t.toLowerCase())||-1===i.allowedHtmlElements.indexOf(e))return!1;const r=/[\000-\010\013\016-\037\177]|expression|filter\s*:|accelerator\s*:|-o-link\s*:|-o-link-source\s*:|-o-replace\s*:|url\s*\(|image\s*\(|image-set\s*\(/i;for(let t=0,a=n.length;t<a;t+=2){const a=n[t];if(-1===i.allowedHtmlCommonAttributes.indexOf(a)&&-1===(i.allowedHtmlAttributesByElement[e]||[]).indexOf(a)||"style"===a&&-1!==n[t+1].search(r))return!1}return!0}(h,v,y.slice(1)))t=["HTMLELEMENT",h,y].concat(m);else{const n=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;");t=["CONCAT",n(e.slice(i,f))].concat(m,n(e.slice(p,b)))}return t},function(){const e=a(1,k)();return null===e?null:e.join("")}]),X=i([B,w,function(){const e=a(1,A)();return null===e?null:e.join("")}]),J=function(){const e=a(0,V)();return null===e?null:["CONCAT"].concat(e)}();if(null===J||n!==e.length)throw new Error("Parse error at position "+n.toString()+" in input: "+e);return J}(e,{wikilinks:this.wikilinks});return this.emitter.emit(n,t)}return this.simpleParse(e,t)}simpleParse(e,t){return e.replace(/\$(\d+)/g,((e,n)=>{const i=parseInt(n,10)-1;return void 0!==t[i]?t[i]:"$"+n}))}}class d{constructor(){this.sourceMap=new Map}load(e,t){if("object"!=typeof e)throw new Error("Invalid message source. Must be an object");if(t=s(t)){if(!/^[a-zA-Z0-9-]+$/.test(t))throw new Error(`Invalid locale ${t}`);for(const n in e)if(0!==n.indexOf("@")){if("object"==typeof e[n])return this.load(e);if("string"!=typeof e[n])throw new Error(`Invalid message for message ${n} in ${t} locale.`);break}this.sourceMap.has(t)?this.sourceMap.set(t,Object.assign(this.sourceMap.get(t),e)):this.sourceMap.set(t,e)}else for(t in e)this.load(e[t],t)}getMessage(e,t){const n=this.sourceMap.get(s(t));return n?n[e]:null}hasLocale(e){return this.sourceMap.has(e)}}class l{constructor(e,{finalFallback:t="en",messages:n,wikilinks:i=!1}={}){this.locale=s(e),this.parser=new u(this.locale,{wikilinks:i}),this.messageStore=new d,n&&this.load(n,this.locale),this.finalFallback=t,this.wikilinks=i}load(e,t){return this.messageStore.load(e,t||this.locale)}i18n(e,...t){return this.parser.parse(this.getMessage(e),t)}setLocale(e){this.locale=s(e),this.parser=new u(this.locale,{wikilinks:this.wikilinks})}getFallbackLocales(){return[...t[this.locale]||[],this.finalFallback]}getMessage(e){let t=this.locale,n=0;const i=this.getFallbackLocales(this.locale);for(;t;){const r=t.split("-");let a=r.length;do{const t=r.slice(0,a).join("-"),n=this.messageStore.getMessage(e,t);if("string"==typeof n)return n;a--}while(a);t=i[n],n++}return e}registerParserPlugin(e,t){o.prototype[e]=t}}const f=function(e){var t=e.createDocumentFragment(),n=e.createElement("section");n.id="pcs-footer-container-menu",n.className="pcs-footer-section",n.innerHTML="<h2 id='pcs-footer-container-menu-heading'></h2>\n   <div id='pcs-footer-container-menu-items'></div>",t.appendChild(n);var i=e.createElement("section");i.id="pcs-footer-container-readmore",i.className="pcs-footer-section",i.style.display="none",i.innerHTML="<h2 id='pcs-footer-container-readmore-heading'></h2>\n   <div id='pcs-footer-container-readmore-pages'></div>",t.appendChild(i);var r=e.createElement("section");return r.id="pcs-footer-container-legal",t.appendChild(r),t},h=function(e){return Boolean(e.querySelector("#pcs-footer-container"))};var m="aria-label",p="aria-labelledby",g=function(e){switch(e){case"'":return"&#039;";case'"':return"&quot;";case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return""}};const b=function(e){return e&&e.replace(/['"<>&]/g,g)};const v=function(e,t,n,i,r,a){var c=e.querySelector("#".concat(i));c.innerHTML="<div class='pcs-footer-legal-contents'>\n    <hr class='pcs-footer-legal-divider'>\n    <span class='pcs-footer-legal-license'>\n    ".concat(function(e,t){var n=e.split("$1");return"".concat(b(n[0]),'<a class="external text" rel="mw:ExtLink" href="https://creativecommons.org/licenses/by-sa/4.0/">').concat(b(t),"</a>").concat(b(n[1]))}(t,n),"\n    <br>\n      <div class=\"pcs-footer-browser\">\n        <a class='pcs-footer-browser-link' href='N/A'>\n          ").concat(b(r),"\n        </a>\n      </div>\n    </span>\n  </div>"),c.querySelector(".pcs-footer-browser-link").addEventListener("click",(function(){a()}))};var y=n(29),E=n(212),A=n(730),k=function(e){return e?A.A.querySelectorAll(e,".mbox-text-span").map((function(e){return A.A.querySelectorAll(e,".hide-when-compact, .collapsed").forEach((function(e){return e.remove()})),e})):[]},w=function(e){var t=e.closest("section[data-mw-section-id]"),n=t&&t.querySelector("h1,h2,h3,h4,h5,h6");return{id:t&&parseInt(t.getAttribute("data-mw-section-id"),10),title:n&&n.innerHTML.trim(),anchor:n&&n.getAttribute("id")}};const T=function(e){return e?A.A.querySelectorAll(e,"div.hatnote").map((function(e){var t=A.A.querySelectorAll(e,'div.hatnote a[href]:not([href=""]):not([redlink="1"])').map((function(e){return e.href}));return{html:e.innerHTML.trim(),links:t,section:w(e)}})):[]},I=function(e){return k(e).map((function(e){return{html:e.innerHTML.trim(),section:w(e)}}))};var S={lastEdited:"lastEdited",pageIssues:"pageIssues",disambiguation:"disambiguation",coordinate:"coordinate",talkPage:"talkPage"},L=(0,E.A)((function e(t,n,i,r){(0,y.A)(this,e),this.title=t,this.subtitle=n,this.itemType=i,this.clickHandler=r,this.payload=[]}),[{key:"iconClass",value:function(){switch(this.itemType){case S.lastEdited:return"pcs-footer-menu-icon-last-edited";case S.talkPage:return"pcs-footer-menu-icon-talk-page";case S.pageIssues:return"pcs-footer-menu-icon-page-issues";case S.disambiguation:return"pcs-footer-menu-icon-disambiguation";case S.coordinate:return"pcs-footer-menu-icon-coordinate";default:return""}}},{key:"payloadExtractor",value:function(){switch(this.itemType){case S.pageIssues:return I;case S.disambiguation:return T;default:return}}}]);const C={MenuItemType:S,setHeading:function(e,t,n){var i=n.getElementById(t);i.textContent=e,i.title=b(e)},maybeAddItem:function(e,t,n,i,r,a){if(""!==e){var c=new L(e,t,n,r),o=c.payloadExtractor();o&&(c.payload=o(a),0===c.payload.length)||function(e,t,n){n.getElementById(t).appendChild(function(e,t){var n=t.createElement("div");n.className="pcs-footer-menu-item",n.role="menuitem";var i=t.createElement("a");if(i.addEventListener("click",(function(){e.clickHandler(e.payload)})),n.appendChild(i),e.title){var r=t.createElement("div");r.className="pcs-footer-menu-item-title",r.textContent=e.title,i.title=e.title,i.appendChild(r)}if(e.subtitle){var a=t.createElement("div");a.className="pcs-footer-menu-item-subtitle",a.textContent=e.subtitle,i.appendChild(a)}var c=e.iconClass();return c&&n.classList.add(c),t.createDocumentFragment().appendChild(n)}(e,n))}(c,i,a)}}};var _=(0,E.A)((function e(t,n,i,r){(0,y.A)(this,e),this.title=t,this.displayTitle=n,this.thumbnail=i,this.description=r})),N=/^[a-z]+:/,O=function(e,t,n,i,r){var a=r.getElementById(t),c=r.getElementById(n);e.forEach((function(e,t){var n=e.pageprops?e.pageprops.displaytitle:e.title;e.varianttitles&&i&&(n=e.varianttitles[i]||n);var a=function(e,t,n){var i=n.createElement("a");i.id=t,i.className="pcs-footer-readmore-page";var r=!n.pcsSetupSettings||n.pcsSetupSettings.loadImages;if(e.thumbnail&&e.thumbnail.source&&r){var a=n.createElement("div");a.style.backgroundImage="url(".concat(e.thumbnail.source.replace(N,""),")"),a.classList.add("pcs-footer-readmore-page-image"),i.appendChild(a)}var c,o=n.createElement("div");if(o.classList.add("pcs-footer-readmore-page-container"),i.appendChild(o),i.setAttribute("title",e.title),i.setAttribute("data-pcs-source","read-more"),i.href="./".concat(encodeURI(e.title)),e.displayTitle?c=e.displayTitle:e.title&&(c=e.title),c){var s=n.createElement("div");s.id=t,s.className="pcs-footer-readmore-page-title",s.innerHTML=c.replace(/_/g," "),i.title=e.title.replace(/_/g," "),o.appendChild(s)}if(e.description){var u=n.createElement("div");u.id=t,u.className="pcs-footer-readmore-page-description",u.innerHTML=e.description,o.appendChild(u)}return n.createDocumentFragment().appendChild(i)}(new _(e.title,n,e.thumbnail,e.description),t,r);c.appendChild(a)})),a.style.display="block"};const P=function(e,t,n,i,r,a,c){var o=new XMLHttpRequest;o.open("GET",function(e,t,n){var i={format:"json",formatversion:2,origin:"*",action:"query",prop:"pageimages|description|info",inprop:"varianttitles",piprop:"thumbnail",pithumbsize:160,pilimit:t,generator:"search",gsrsearch:"morelike:".concat(e),gsrnamespace:0,gsrlimit:t,gsrqiprofile:"classic_noboostlinks",uselang:"content",smaxage:86400,maxage:86400};return"".concat(n||"","/w/api.php?").concat(new URLSearchParams(i).toString())}(e,t,r),!0),o.onload=function(){var e;try{e=JSON.parse(o.responseText).query.pages}catch(e){}if(e&&e.length){var r;if(e.length>t){var s=Math.floor(Math.random()*Math.floor(e.length-t));r=e.slice(s,s+t)}else r=e;O(r,n,i,a,c)}},o.send()},D=function(e,t,n){var i=n.getElementById(t);i.textContent=e,i.title=b(e)};var x,R=function(e,t){if(void 0===t||t<0)return"";try{var n=e.i18n("page-last-edited",t);return n&&n.includes("undefined")&&(n=""),n}catch(e){return""}},H=function(e){return decodeURIComponent(e.split("/page/mobile-html/")[1])},z=function(e){var t=e.readMore,n=t.itemCount,i=t.apiBaseURL,r=t.langCode;P(H(window.location.pathname),n,"pcs-footer-container-readmore","pcs-footer-container-readmore-pages",i,r,document)};const B={MenuItemType:C.MenuItemType,add:function(e){var t=e.menu,n=t.items,i=t.editedDaysAgo,r=e.readMore,a=r.itemCount,c=(r.apiBaseURL,r.readMoreLazy);r.langCode;!1===h(document)&&document.getElementById("pcs").appendChild(f(document));var o=function(t){C.setHeading(t.i18n("article-about-title"),"pcs-footer-container-menu-heading",document),n.forEach((function(e){var n="",r="";switch(e){case C.MenuItemType.lastEdited:n=t.i18n("page-edit-history"),r=R(t,i);break;case C.MenuItemType.pageIssues:n=t.i18n("page-issues"),r=t.i18n("page-issues-subtitle");break;case C.MenuItemType.disambiguation:n=t.i18n("page-similar-titles");break;case C.MenuItemType.coordinate:n=t.i18n("page-location");break;case C.MenuItemType.talkPage:n=t.i18n("page-talk-page"),r=t.i18n("page-talk-page-subtitle")}C.maybeAddItem(n,r,e,"pcs-footer-container-menu-items",(function(t){x&&x.footerItemSelected(e,t)}),document)})),a&&a>0&&(D(t.i18n("article-read-more-title"),"pcs-footer-container-readmore-heading",document),c||z(e));v(document,t.i18n("license-footer-text"),t.i18n("license-footer-name-cc4"),"pcs-footer-container-legal",t.i18n("view-in-browser-footer-link"),(function(){x&&x.viewInBrowser()}))},s=new XMLHttpRequest,u=window.location.href||"",d=u.indexOf("/page/mobile-html/"),m=d>=0?u.slice(0,d):"",p="".concat(m,"/data/i18n/pcs");s.open("GET",p,!0);var g={i18n:function(e){return e}};s.onload=function(){var e;try{var t=JSON.parse(s.responseText),n=t&&t.locale||"en",i=document.head.querySelector('meta[property="pcs:locale"]');if(i){var r=i.getAttribute("content");r&&(n=r)}(e=new l(n)).load(t.messages)}catch(t){e=g}o(e)},s.onerror=function(){o(g)},s.send()},appendReadMore:z,_connectHandlers:function(e){x=e},_getPageLastEditedString:R,_getArticleTitleFromPathName:H};var M=n(973);const $=function(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}};var q=n(730).A,F=function(e){return!!e&&!("SECTION"!==e.tagName||!e.getAttribute("data-mw-section-id"))},j={BASE:"pcs-section-control",SHOW:"pcs-section-control-show",HIDE:"pcs-section-control-hide"},G={HIDE:"pcs-section-hidden"},U={HIDEABLE:"pcs-section-hideable-header"},W={CONTENT:"pcs-section-content-",CONTROL:"pcs-section-control-"},K="pcs-section-aria-collapse",V="pcs-section-aria-expand",X=function(e){return W.CONTROL+e},J=function(e){return W.CONTENT+e},Z=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=X(t),r=J(t),a=e.getElementById(i),c=e.getElementById(r);if(a&&c){n?(a.classList.remove(j.HIDE),a.classList.add(j.SHOW),c.classList.add(G.HIDE),a.setAttribute(p,V)):(a.classList.remove(j.SHOW),a.classList.add(j.HIDE),c.classList.remove(G.HIDE),a.setAttribute(p,K));var o=a.parentElement;o&&o.setAttribute("onclick","pcs.c1.Sections.setHidden('".concat(t,"', ").concat(!n,");"))}};const Y={createFoldHR:function(e,t){if(t.parentElement){var n=e.createElement("hr");n.classList.add("pcs-fold-hr"),t.parentElement.insertBefore(n,t)}},expandCollapsedSectionIfItContainsElement:function(e,t){var n=function(e){for(var t=e;t=t.parentElement;)if("SECTION"===t.tagName&&t.parentElement&&"pcs"===t.parentElement.id){var n=t.getAttribute("data-mw-section-id");if(n)return n}}(t);n&&Z(e,n,!1)},getSectionIDOfElement:function(e){var t=function(e){for(var t=e;t;){if(F(t))return t;t=t.parentElement}return null}(e);return t&&t.getAttribute("data-mw-section-id")},getLeadParagraphText:function(e){var t=e.querySelector("#content-block-0>p");return t&&t.innerText||""},getSectionOffsets:function(e){return{sections:q.querySelectorAll(e,"section").reduce((function(e,t){var n=t.getAttribute("data-mw-section-id"),i=t&&t.firstElementChild&&t.firstElementChild.querySelector(".pcs-edit-section-title");return n&&parseInt(n)>=1&&e.push({heading:i&&i.innerHTML,id:parseInt(n),yOffset:t.offsetTop}),e}),[])}},prepareForHiding:function(e,t,n,i,r,a,c){var o=function(e,t){var n=e.createElement("span");return n.id=X(t),n.classList.add(j.BASE),n.classList.add(j.SHOW),n}(e,t);if(null===e.getElementById(V)){var s=e.createElement("span");s.setAttribute("id",V),s.setAttribute(m,a),o.appendChild(s)}if(null===e.getElementById(K)){var u=e.createElement("span");u.setAttribute("id",K),u.setAttribute(m,c),o.appendChild(u)}o.setAttribute("role","button"),o.setAttribute(p,V),i&&o&&(i.appendChild(o),i.classList.add(U.HIDEABLE),i.setAttribute("onclick","pcs.c1.Sections.setHidden('".concat(t,"', false);")));for(var d=n.firstElementChild,l=e.createElement("div");d;){var f=d;d=d.nextElementSibling,f!==r&&(n.removeChild(f),l.appendChild(f))}l.id=J(t),l.classList.add(G.HIDE),n.appendChild(l)},setHidden:Z,getControlIdForSectionId:X,isMediaWikiSectionElement:F};var Q="section-toggled",ee={ICON:"pcs-collapse-table-icon",CONTAINER:"pcs-collapse-table-container",CONTENT:"pcs-collapse-table-content",COLLAPSED_CONTAINER:"pcs-collapse-table-collapsed-container",COLLAPSED:"pcs-collapse-table-collapsed",COLLAPSED_BOTTOM:"pcs-collapse-table-collapsed-bottom",COLLAPSE_TEXT:"pcs-collapse-table-collapse-text",EXPANDED:"pcs-collapse-table-expanded",TABLE_INFOBOX:"pcs-table-infobox",TABLE_OTHER:"pcs-table-other",TABLE:"pcs-collapse-table"},te="pcs-collapse-table-aria-collapse",ne="pcs-collapse-table-aria-expand",ie=function(e,t,n,i){var r=e.children[0],a=e.children[1],c=e.children[2],o=r.querySelector(".pcs-collapse-table-aria"),s=void 0===i?"none"!==a.style.display:!i;return s?(a.style.display="none",r.classList.remove(ee.COLLAPSED),r.classList.remove(ee.ICON),r.classList.add(ee.EXPANDED),o&&o.setAttribute(p,ne),c.style.display="none",t===c&&n&&n(e)):(a.style.display="block",r.classList.remove(ee.EXPANDED),r.classList.add(ee.COLLAPSED),r.classList.add(ee.ICON),o&&o.setAttribute(p,te),c.style.display="block"),s},re=function(e){var t=this.parentNode;return ie(t,this,e)},ae=function(e){A.A.querySelectorAll(e,".".concat(ee.CONTAINER)).forEach((function(e){ie(e)}))},ce=function(e,t,n,i){var r=function(t){return e.dispatchEvent(new A.A.CustomEvent(Q,{collapsed:t}))};A.A.querySelectorAll(t,".".concat(ee.COLLAPSED_CONTAINER)).forEach((function(e){e.onclick=function(){var t=re.bind(e)();r(t)}})),A.A.querySelectorAll(t,".".concat(ee.COLLAPSED_BOTTOM)).forEach((function(e){e.onclick=function(){var t=re.bind(e,i)();r(t)}})),n||ae(t)};const oe=Q,se=function(e,t){A.A.querySelectorAll(e,".".concat(ee.CONTAINER)).forEach((function(e){ie(e,void 0,void 0,t)}))},ue=ce,de=function(e){if(e){var t='[class*="'.concat(ee.CONTAINER,'"]'),n=M.A.findClosestAncestor(e,t);if(n){var i=n.firstElementChild;i&&i.classList.contains(ee.EXPANDED)&&i.click()}}};var le={SECTION_HEADER:"pcs-edit-section-header",TITLE:"pcs-edit-section-title",HEADER_INNER_LEFT:"pcs-header-inner-left",HEADER_INNER_RIGHT:"pcs-header-inner-right",LINK_CONTAINER:"pcs-edit-section-link-container",LINK:"pcs-edit-section-link",PROTECTION:{UNPROTECTED:"",PROTECTED:"page-protected",FORBIDDEN:"no-editing"},TITLE_TALK_BUTTON:"pcs-title-icon-talk-page",TITLE_TALK_BUTTON_WRAPPER:"pcs-title-icon-talk-page-container"},fe={TITLE_DESCRIPTION:"pcs-edit-section-title-description",ADD_TITLE_DESCRIPTION:"pcs-edit-section-add-title-description",DIVIDER:"pcs-edit-section-divider",PRONUNCIATION:"pcs-edit-section-title-pronunciation",ARIA_EDIT_PROTECTED:"pcs-edit-section-aria-protected",ARIA_EDIT_NORMAL:"pcs-edit-section-aria-normal"},he={SECTION_INDEX:"data-id",ACTION:"data-action",PRONUNCIATION_URL:"data-pronunciation-url",DESCRIPTION_SOURCE:"data-description-source",WIKIDATA_ENTITY_ID:"data-wikdata-entity-id"};const me=fe,pe=he,ge=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.documentElement.classList;t?i.remove(le.PROTECTION.FORBIDDEN):i.add(le.PROTECTION.FORBIDDEN),n?i.add(le.PROTECTION.PROTECTED):i.remove(le.PROTECTION.PROTECTED)},be=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getElementsByTagName("header")[0],i=n.getElementsByClassName(le.HEADER_INNER_RIGHT)[0],r=n.getElementsByClassName(le.TITLE_TALK_BUTTON)[0]&&n.getElementsByClassName(le.TITLE_TALK_BUTTON_WRAPPER)[0];if(t){if(!r){var a=e.createElement("span"),c=e.createElement("a");c.setAttribute("href","/"),c.classList.add(le.TITLE_TALK_BUTTON),a.classList.add(le.TITLE_TALK_BUTTON_WRAPPER),i.appendChild(a),a.appendChild(c)}}else r&&n.getElementsByClassName(le.TITLE_TALK_BUTTON_WRAPPER)[0].remove()},ve=function(e){e.documentElement.classList.contains(le.PROTECTION.PROTECTED)&&Array.from(e.getElementsByClassName(le.LINK)).forEach((function(e){return e.setAttribute(p,fe.ARIA_EDIT_PROTECTED)}))};var ye=n(354).A,Ee=n(973).A,Ae=n(730).A,ke="pcs-lazy-load-placeholder",we="pcs-lazy-load-placeholder-pending",Te="pcs-lazy-load-placeholder-loading",Ie="pcs-lazy-load-placeholder-error",Se="pcs-lazy-load-image-loading",Le="pcs-lazy-load-image-loaded",Ce="pcs-no-lazy-load",_e=["class","style","src","srcset","width","height","alt","usemap","data-file-width","data-file-height","data-image-gallery","data-file-original-src"],Ne={px:50,ex:10,em:5},Oe=function(e,t){var n=e.createElement("span");t.hasAttribute("class")&&n.setAttribute("class",t.getAttribute("class")||""),n.classList.add(ke),n.classList.add(we);var i=ye.from(t);i.width&&n.style.setProperty("width","".concat(i.width)),Ee.copyAttributesToDataAttributes(t,n,_e);var r=e.createElement("span");if(i.width&&i.height){var a=i.heightValue/i.widthValue;r.style.setProperty("padding-top","".concat(100*a,"%"))}return n.appendChild(r),t.parentNode&&t.parentNode.replaceChild(n,t),n},Pe=function(e){var t=ye.from(e);if(!t.width||!t.height)return!0;var n=Ne[t.widthUnit]||1/0,i=Ne[t.heightUnit]||1/0;return t.widthValue>=n&&t.heightValue>=i};const De={PLACEHOLDER_CLASS:ke,PLACEHOLDER_PENDING_CLASS:we,PLACEHOLDER_LOADING_CLASS:Te,PLACEHOLDER_ERROR_CLASS:Ie,IMAGE_LOADING_CLASS:Se,IMAGE_LOADED_CLASS:Le,NO_LAZY_LOAD:Ce},xe=ke,Re=function(e){return Ae.querySelectorAll(e,"img").filter((function(e){return Pe(e)}))},He=function(e,t){return t.map((function(t){return Oe(e,t)}))},ze=function(e,t){t.classList.add(Te),t.classList.remove(we);var n=e.createElement("img"),i=function(e){n.setAttribute("src",n.getAttribute("src")||""),e.stopPropagation(),e.preventDefault()},r=function(e){return e.hasAttribute("usemap")};return n.addEventListener("load",(function(){t.removeEventListener("click",i),t.parentNode&&t.parentNode.replaceChild(n,t);var a=n.getAttribute("width"),c=e.createElement("div");if(n.className&&n.className.includes("pcs-widen-image-override"))c.classList.add("pcs-widen-image-wrapper");else{if(r(n))return;c.classList.add("pcs-image-wrapper")}var o=n.parentNode;c.appendChild(n),c.setAttribute("style","width: ".concat(a,"px;")),o&&o.appendChild(c);var s=c.querySelector("img");s&&(s.classList.add(Le),s.classList.remove(Se))}),{once:!0}),n.addEventListener("error",(function(){t.classList.add(Ie),t.classList.remove(Te),t.addEventListener("click",i)}),{once:!0}),Ee.copyDataAttributesToAttributes(t,n,_e),r(n)||n.classList.add(Se),n};var Be=".reference, .mw-ref",Me="#pcs-ref-back-link-",$e="pcs-back-links",qe=function(e,t,n){var i=decodeURIComponent(e),r=decodeURIComponent(t);if(void 0!==n&&"#"!==e[0]){var a=decodeURIComponent(n),c="./".concat(a);return 0===i.indexOf(c)&&e.indexOf(r)===c.length}return i.includes(r)},Fe=function(e,t){return qe(e,"#cite_note-",t)},je=function(e){return Boolean(e)&&e.nodeType===Node.TEXT_NODE&&Boolean(e.textContent.match(/^\s+$/))},Ge=function(e){var t=e.querySelector("a");return t&&Fe(t.hash)},Ue=function(e,t){var n=t.querySelector("A").getAttribute("href").split("#")[1];return e.getElementById(n)||e.getElementById(decodeURIComponent(n))},We=function(e,t){var n=Ue(e,t);if(!n)return"";var i=n.querySelector("span.mw-reference-text,span.reference-text");return i?i.innerHTML.trim():""},Ke=function(e){return A.A.matchesSelector(e,Be)?e:M.A.findClosestAncestor(e,Be)},Ve=(0,E.A)((function e(t,n,i,r,a){(0,y.A)(this,e),this.id=t,this.rect=n,this.text=i,this.html=r,this.href=a})),Xe=((0,E.A)((function e(t,n){(0,y.A)(this,e),this.href=t,this.text=n})),(0,E.A)((function e(t,n){(0,y.A)(this,e),this.selectedIndex=t,this.referencesGroup=n}))),Je=function(e,t){var n=e;do{n=t(n)}while(je(n));return n},Ze=function(e,t,n){for(var i=e;(i=Je(i,t))&&i.nodeType===Node.ELEMENT_NODE&&Ge(i);)n(i)},Ye=function(e){return e.previousSibling},Qe=function(e){return e.nextSibling},et=function(e){var t=[e];return Ze(e,Ye,(function(e){return t.unshift(e)})),Ze(e,Qe,(function(e){return t.push(e)})),t},tt=function(e,t){var n=et(t),i=n.indexOf(t),r=n.map((function(t){return function(e,t){return new Ve(Ke(t).id,$(t),t.textContent,We(e,t),t.querySelector("A").getAttribute("href"))}(e,t)}));return new Xe(i,r)};const nt=function(e,t){var n=t.parentElement;return tt(e,n)},it=function(e,t,n){var i=function(e){var t=e.getAttribute($e);return t?JSON.parse(t):[]}(t);if(!i||0===i.length)return{};for(var r,a=n.split(Me)[1],c=[],o=i[0],s=0;s<i.length;s++){var u=i[s].split("#")[1],d=e.getElementById(u);d&&(r||(r=d.textContent.trim()),c.push({id:u}))}return{referenceId:a,referenceText:r,backLinks:c,href:o}},rt=function(e,t){return qe(e,Me,t)},at=Fe;var ct,ot={InitialSetup:"setup",FinalSetup:"final_setup",LinkClicked:"link",ImageClicked:"image",ReferenceClicked:"reference",BackLink:"back_link",EditSection:"edit_section",HeaderItemSelected:"header_item",AddTitleDescription:"add_title_description",PronunciationClicked:"pronunciation",ScrollToAnchor:"scroll_to_anchor",FooterItemSelected:"footer_item",SaveOtherPage:"save_other_page",ViewInBrowser:"view_in_browser"},st=(0,E.A)((function e(t,n){(0,y.A)(this,e),this.action=t,this.data=n})),ut=0,dt=1,lt=2,ft=3,ht=4,mt=5,pt=(0,E.A)((function e(t,n,i){(0,y.A)(this,e),this.target=t,this.href=n,this.pageLinkTitle=i}),[{key:"type",value:function(){return at(this.href,this.pageLinkTitle)?ht:rt(this.href,this.pageLinkTitle)?mt:"IMG"===this.target.tagName&&(this.target.classList.contains(De.IMAGE_LOADED_CLASS)||this.target.classList.contains(De.IMAGE_LOADING_CLASS))&&(this.target.closest("figure")||this.target.closest("figure-inline")||this.target.closest("span"))?lt:"SPAN"===this.target.tagName&&this.target.classList.contains(De.PLACEHOLDER_CLASS)&&(this.target.closest("figure")||this.target.closest("figure-inline")||this.target.closest("span"))?ft:this.href?dt:ut}}]),gt=function(e){ct&&ct(e)},bt=function(e){switch(e.type()){case dt:t=e.target.closest("a"),"#"===(n=e.href)[0]&&de(document.getElementById(n.slice(1))),gt(new st(ot.LinkClicked,{href:n,text:t.innerText,title:t.title,source:t.getAttribute("data-pcs-source")}));break;case lt:!function(e,t){gt(new st(ot.ImageClicked,{href:t,src:e.getAttribute("src"),"data-file-width":e.getAttribute("data-file-width"),"data-file-height":e.getAttribute("data-file-height")}))}(e.target,e.href);break;case ft:!function(e,t){var n=e.parentElement;gt(new st(ot.ImageClicked,{href:t,src:n.getAttribute("data-src"),"data-file-width":n.getAttribute("data-data-file-width"),"data-file-height":n.getAttribute("data-data-file-height")}))}(e.target,e.href);break;case ht:!function(e,t){var n=nt(document,e);n.href=t,gt(new st(ot.ReferenceClicked,n))}(e.target,e.href);break;case mt:!function(e,t){var n=it(document,e,t);gt(new st(ot.BackLink,n))}(e.target,e.href);break;default:return!1}var t,n;return!0},vt=function(e,t){gt(new st(ot.FooterItemSelected,{itemType:e,payload:t}))},yt=function(e){gt(new st(ot.SaveOtherPage,{title:e}))},Et=function(){gt(new st(ot.ViewInBrowser))};const At={Actions:ot,getSelectionInfo:function(e){var t=(e||window).getSelection(),n=t.toString(),i=t.anchorNode;return{text:n,section:Y.getSectionIDOfElement(i),isTitleDescription:i&&i.parentElement&&"pcs-edit-section-title-description"===i.parentElement.id||!1}},setInteractionHandler:function(e){ct=e,B._connectHandlers({footerItemSelected:vt,saveOtherPage:yt,viewInBrowser:Et}),document.addEventListener("click",(function(e){e.preventDefault(),function(e){var t=e.target;if(t){var n=t.closest("A");if(n&&"pcs-footer-browser-link"!==n.className)if("pcs-title-icon-talk-page"!==n.className)if("edit_section"!==n.getAttribute("data-action"))if("add_title_description"!==n.getAttribute("data-action"))if("title_pronunciation"!==n.getAttribute("data-action")){var i=n.getAttribute("href");if(i){var r,a=document.head.querySelector('link[rel="dc:isVersionOf"]'),c=document.head.querySelector("base");c&&a&&(r=a.href.slice(c.href.length)),bt(new pt(t,i,r))}}else{var o=n.getAttribute(pe.PRONUNCIATION_URL)||void 0;gt(new st(ot.PronunciationClicked,{url:o}))}else gt(new st(ot.AddTitleDescription));else{var s=n.getAttribute("data-id")||void 0,u={sectionId:s};if(s&&"0"===s){var d=document.getElementById(me.TITLE_DESCRIPTION);u.descriptionSource=d&&d.getAttribute(pe.DESCRIPTION_SOURCE)||void 0,u.wikidataEntityID=d&&d.getAttribute(pe.WIKIDATA_ENTITY_ID)||void 0}gt(new st(ot.EditSection,u))}else gt(new st(ot.HeaderItemSelected,{itemType:"talkPage",payload:[]}))}}(e)}),!1)},initialSetupComplete:function(){gt(new st(ot.InitialSetup))},finalSetupComplete:function(){gt(new st(ot.FinalSetup))},scrollToAnchor:function(e,t){gt(new st(ot.ScrollToAnchor,{anchor:e,rect:t,href:"#".concat(e)}))}};const kt=function(e,t){if(t){var n=(100*(Number(t.slice(0,-1))/100*.95)).toString()+"%";e.style["font-size"]=n}};const wt=function(e,t){void 0!==t.top&&(e.style.marginTop=t.top),void 0!==t.right&&(e.style.marginRight=t.right),void 0!==t.bottom&&(e.style.marginBottom=t.bottom),void 0!==t.left&&(e.style.marginLeft=t.left)};const Tt=function(e){var t=e.pathname.split("v1/page/mobile-html/"),n="".concat(e.protocol,"//").concat(e.host).concat(t[0],"v1"),i=t[1];B.add({version:"2",title:i,menu:{items:[B.MenuItemType.languages,B.MenuItemType.lastEdited,B.MenuItemType.pageIssues,B.MenuItemType.disambiguation,B.MenuItemType.talkPage],fragment:"pcs-menu",editedDaysAgo:3},readMore:{itemCount:3,baseURL:n,fragment:"pcs-read-more"}})};var It="pcs-dim-images",St=function(e,t){e.body.classList[t?"add":"remove"](It)};const Lt=St;var Ct=function(){function e(t,n,i){(0,y.A)(this,e),this._window=t,this._period=n,this._function=i,this._context=void 0,this._arguments=void 0,this._result=void 0,this._timeout=0,this._timestamp=0}return(0,E.A)(e,[{key:"queue",value:function(e,t){var n=this;return this._context=e,this._arguments=t,this.pending()||(this._timeout=this._window.setTimeout((function(){n._timeout=0,n._timestamp=Date.now(),n._result=n._function.apply(n._context,n._arguments)}),this.delay())),this.result}},{key:"result",get:function(){return this._result}},{key:"pending",value:function(){return Boolean(this._timeout)}},{key:"delay",value:function(){return this._timestamp?Math.max(0,this._period-(Date.now()-this._timestamp)):0}},{key:"cancel",value:function(){this._timeout&&this._window.clearTimeout(this._timeout),this._timeout=0}},{key:"reset",value:function(){this.cancel(),this._result=void 0,this._timestamp=0}}],[{key:"wrap",value:function(t,n,i){var r=new e(t,n,i),a=function(){return r.queue(this,arguments)};return a.result=function(){return r.result},a.pending=function(){return r.pending()},a.delay=function(){return r.delay()},a.cancel=function(){return r.cancel()},a.reset=function(){return r.reset()},a}}])}(),_t=["scroll","resize",oe,"onBodyEnd"],Nt=(0,E.A)((function e(t,n){var i=this;(0,y.A)(this,e),this._window=t,this._loadDistanceMultiplier=n,this._placeholders=[],this._registered=!1,this._throttledLoadPlaceholders=Ct.wrap(t,100,(function(){return i._loadPlaceholders()}))}),[{key:"convertImagesToPlaceholders",value:function(e){var t=Re(e),n=He(this._window.document,t);this._placeholders=this._placeholders.concat(n),this._register()}},{key:"collectExistingPlaceholders",value:function(e){var t=A.A.querySelectorAll(e,".".concat(xe));this._placeholders=this._placeholders.concat(t),this._register()}},{key:"loadPlaceholders",value:function(){this._throttledLoadPlaceholders()}},{key:"deregister",value:function(){var e=this;this._registered&&(_t.forEach((function(t){return e._window.removeEventListener(t,e._throttledLoadPlaceholders)})),this._throttledLoadPlaceholders.reset(),this._placeholders=[],this._registered=!1)}},{key:"_register",value:function(){var e=this;!this._registered&&this._placeholders.length&&(this._registered=!0,_t.forEach((function(t){return e._window.addEventListener(t,e._throttledLoadPlaceholders)})))}},{key:"_loadPlaceholders",value:function(){var e=this;this._placeholders=this._placeholders.filter((function(t){var n=!0;return e._isPlaceholderEligibleToLoad(t)&&(ze(e._window.document,t),n=!1),n})),0===this._placeholders.length&&this.deregister()}},{key:"_isPlaceholderEligibleToLoad",value:function(e){return M.A.isVisible(e)&&this._isPlaceholderWithinLoadDistance(e)}},{key:"_isPlaceholderWithinLoadDistance",value:function(e){var t=e.getBoundingClientRect(),n=this._window.innerHeight*this._loadDistanceMultiplier;return!(t.top>n||t.bottom<-n)}}]),Ot="pcs-platform-",Pt={ANDROID:"".concat(Ot,"android"),IOS:"".concat(Ot,"ios")};const Dt={CLASS:Pt,CLASS_PREFIX:Ot,classify:function(e){var t=e.document.documentElement;(function(e){return/android/i.test(e.navigator.userAgent)})(e)&&t.classList.add(Pt.ANDROID),function(e){return/ipad|iphone|ipod/i.test(e.navigator.userAgent)}(e)&&t.classList.add(Pt.IOS)},setPlatform:function(e,t){e&&e.documentElement&&e.documentElement.classList.add(t)},setVersion:function(e,t){if(e&&e.documentElement)for(var n=t||1,i=1;i<=2&&(e.documentElement.classList.add("pcs-v"+i),i!==n);i++);}};var xt="pcs-theme-",Rt={DEFAULT:"".concat(xt,"default"),DARK:"".concat(xt,"dark"),SEPIA:"".concat(xt,"sepia"),BLACK:"".concat(xt,"black")},Ht=function(e,t){if(e)for(var n in e.classList.add(t),Rt)Object.prototype.hasOwnProperty.call(Rt,n)&&Rt[n]!==t&&e.classList.remove(Rt[n])};const zt={THEME:Rt,CLASS_PREFIX:xt,setTheme:function(e,t){var n=e.body;Ht(n,t);var i=e.getElementById("pcs");Ht(i,t)},setBodyFont:function(e,t){e.body.style.fontFamily=t}};var Bt=/[^0-9]+$/,Mt="pcs-element-highlight",$t=function(e){e instanceof Function&&(window&&window.requestAnimationFrame?window.requestAnimationFrame((function(){setTimeout((function(){e()}),1)})):e())},qt=function(e,t){var n,i=e||{};if(Dt.setVersion(document,i.version),void 0!==i.platform&&Dt.setPlatform(document,Dt.CLASS_PREFIX+i.platform),void 0!==i.theme&&zt.setTheme(document,zt.CLASS_PREFIX+i.theme),void 0!==i.bodyFont&&zt.setBodyFont(document,i.bodyFont),void 0!==i.dimImages&&Lt(document,i.dimImages),void 0!==i.margins||void 0!==i.leadImageHeight){var r=i.margins||{};if(void 0!==i.leadImageHeight)if(n||(n=Wt()),Vt(n).source)if(r.top){var a=parseFloat(r.top,10),c=parseFloat(i.leadImageHeight,10),o=r.top.match(Bt)||"";r.top=a+c+o}else r.top=i.leadImageHeight;wt(document.body,r)}if(void 0!==i.maxWidth&&Ft(i.maxWidth),void 0!==i.userGroups){n||(n=Wt());var s=Ut(n),u=void 0===i.isEditable||i.isEditable,d=!1;if(s.edit){d=!0;for(var l=0;l<i.userGroups.length;l++){if(i.userGroups[l]===s.edit){d=!1;break}}}jt(u,d)}if(void 0===i.setupTableEventHandling||i.setupTableEventHandling){var f=!0!==i.areTablesInitiallyExpanded;ue(window,document,f,(function(e){window.scrollTo(0,e.offsetTop-window.innerHeight/2)}))}if(void 0!==i.textSizeAdjustmentPercentage&&kt(document.body,i.textSizeAdjustmentPercentage),void 0===i.loadImages||!0===i.loadImages){var h=new Nt(window,2);h.collectExistingPlaceholders(document.body),h.loadPlaceholders()}i.talkPageButton&&Gt(i.talkPageButton),i.footer&&Tt(new URL(document.location)),$t(t)},Ft=function(e){document&&document.body&&(document.body.style.maxWidth=b(e))},jt=function(e,t){ge(document,e,t)},Gt=function(e){be(document,e)},Ut=function(e){var t={},n="mw:pageProtection:";return e.forEach((function(e){var i=e.getAttribute("property");i&&i.startsWith(n)&&(t[i.slice(Math.max(0,18))]=e.getAttribute("content"))})),t},Wt=function(){return document.head.querySelectorAll("meta")},Kt=function(){if(document)for(var e=".".concat(Mt),t=document.querySelector(e);t;)t.classList.remove(Mt),t=document.querySelector(e)},Vt=function(e){for(var t={},n=0;n<e.length;n++){var i=e[n],r=i.getAttribute("property");if(r&&"mw:leadImage"===r){t.source=i.getAttribute("content");var a=i.getAttribute("data-file-width");a&&(t.width=parseInt(a,10));var c=i.getAttribute("data-file-height");c&&(t.height=parseInt(c,10));break}}return t};const Xt={onBodyStart:function(){if(document){if("undefined"!=typeof pcsClient&&pcsClient.getSetupSettings){var e=pcsClient.getSetupSettings();document.pcsSetupSettings=JSON.parse(e)}"undefined"!=typeof pcsClient&&pcsClient.onReceiveMessage&&(document.pcsActionHandler=function(e){pcsClient.onReceiveMessage(JSON.stringify(e))}),document.pcsActionHandler?At.setInteractionHandler(document.pcsActionHandler):At.setInteractionHandler((function(e){return console.log(e)}));var t=function(){At.initialSetupComplete()};if(document.pcsSetupSettings){var n={margins:document.pcsSetupSettings.margins,maxWidth:document.pcsSetupSettings.maxWidth,textSizeAdjustmentPercentage:document.pcsSetupSettings.textSizeAdjustmentPercentage,leadImageHeight:document.pcsSetupSettings.leadImageHeight,userGroups:document.pcsSetupSettings.userGroups,theme:document.pcsSetupSettings.theme,platform:document.pcsSetupSettings.platform,bodyFont:document.pcsSetupSettings.bodyFont,isEditable:document.pcsSetupSettings.isEditable,loadImages:!1,setupTableEventHandling:!1};qt(n,t)}else{var i={loadImages:!1,setupTableEventHandling:!1,maxWidth:"100ex",margins:{top:"2em",bottom:"0"},userGroups:[]};if(document.location&&document.location.search){var r=new URLSearchParams(document.location.search);r.get("theme")&&(i.theme=r.get("theme"))}qt(i,t)}}},onBodyEnd:function(){if(document){var e=100;ve(document);var t=function(){At.finalSetupComplete()};if(document.pcsSetupSettings){var n=document.pcsSetupSettings;delete n.theme,delete n.margins,delete n.maxWidth,delete n.userGroups,delete n.leadImageHeight,delete n.platform,delete n.textSizeAdjustmentPercentage,n.setupTableEventHandling=!0,qt(n,t),e=document.pcsSetupSettings.remainingTimeout||e}else{var i=function(){if(document.location&&document.location.search){var e=new URLSearchParams(document.location.search);return"true"===e.get("footer")||null!==e.get("demo")}return!1}();qt({setupTableEventHandling:!0,areTablesInitiallyExpanded:!0,talkPageButton:!1,footer:i},t)}setTimeout((function(){for(var e=document.querySelectorAll("section"),t=1;t<e.length;t++)e[t].style.display="";window.dispatchEvent(new CustomEvent("onBodyEnd"))}),e)}},setup:qt,setTheme:function(e){zt.setTheme(document,e)},setDimImages:function(e){Lt(document,e)},setMargins:function(e){wt(document.body,e)},setMaxWidth:Ft,setTextSizeAdjustmentPercentage:function(e){kt(document.body,e)},setEditButtons:jt,setTalkPageButton:Gt,getLeadImage:function(){return Vt(Wt())},getProtection:function(){return Ut(Wt())},getRevision:function(){var e=document.documentElement.getAttribute("about");if(e)return e.slice(Math.max(0,e.lastIndexOf("/")+1))},getTableOfContents:function(){var e=document.querySelectorAll("section"),t=[],n=new Array(10).fill(0),i=0;return[].forEach.call(e,(function(e){var r=parseInt(e.getAttribute("data-mw-section-id"),10);if(!(!r||isNaN(r)||r<1)){var a=e.querySelector("h1,h2,h3,h4,h5,h6");if(a){var c=parseInt(a.tagName.charAt(1),10)-1;c<i&&n.fill(0,c),i=c,n[c-1]++,t.push({level:c,id:r,number:n.slice(0,c).map((function(e){return e.toString()})).join("."),anchor:a.getAttribute("id"),title:a.innerHTML.trim()})}}})),t},prepareForScrollToAnchor:function(e,t){if(document){var n=document.getElementById(e);n&&(Y.expandCollapsedSectionIfItContainsElement(document,n),de(n),t&&t.highlight&&(Kt(),n.classList.add(Mt)),$t((function(){var t=$(n);At.scrollToAnchor(e,t)})))}},removeHighlightsFromHighlightedElements:Kt,expandOrCollapseTables:function(e){document&&se(document,e)},waitForNextPaint:$t};var Jt=Dt.CLASS;const Zt={ANDROID:Jt.ANDROID,IOS:Jt.IOS};const Yt={getOffsets:Y.getSectionOffsets,setHidden:function(e,t){document&&Y.setHidden(document,e,t)}};var Qt=zt.THEME;const en={DEFAULT:Qt.DEFAULT,DARK:Qt.DARK,SEPIA:Qt.SEPIA,BLACK:Qt.BLACK},tn={c1:{Footer:B,InteractionHandling:At,Platforms:Zt,Page:Xt,Sections:Yt,Themes:en}}})(),i=i.default})()));