Билгалдаккхар: Ӏалашйинчул тӀаьхьа браузеран кеш дӀайаккха йезаш хила мега, хийцамаш ган.

  • Firefox / Safari: ГӀирсийн панелехь Shift-дӀа а лаьцна Керладаккхар тӀетаӀайе, йа Ctrl+F5 йаCtrl+R (Mac-хь ⌘+R) тӀетаӀайе.
  • Google Chrome:Ctrl+Shift+R тӀетаӀайе (⌘+Shift+R Mac тӀехь)
  • Edge: Ctrl дӀа а лаьцна, Refresh тӀе Ӏоттало йа Ctrl+F5 тӀе Ӏоттало.
  • Opera: Ctrl+F5 тӀетаӀайе.
/**
 * Quick Wikidata Infobox Export.
 * See [[Help:Infobox export gadget]].
 *
 * Gadget for export information from infoboxes to Wikidata.
 * The export window is shown by double clicking.
 */
!function(){"use strict";var e={562:function(e,t,n){var r=n(81),a=n.n(r),i=n(645),o=n.n(i),l=n(667),s=n.n(l),u=new URL(n(576),n.b),c=o()(a()),d=s()(u);c.push([e.id,".infobox:not(.vertical-navbox, .ve-ce-leafNode):not([data-from]) .no-wikidata {\n    display: block !important;\n    background-color: #fee7e6;\n    border: 1px solid #f6bab9;\n    border-radius: 2px;\n    padding: 3px 6px;\n}\n\n.infobox:not(.vertical-navbox, .ve-ce-leafNode):not([data-from]) .no-wikidata.partial-wikidata {\n    background-color: #fef6e7;\n    border-color: #ffd760;\n}\n\n.infobox:not(.vertical-navbox, .ve-ce-leafNode):not([data-from]) .no-wikidata .no-wikidata {\n    margin: -3px -6px;\n    border: 0;\n    background: transparent;\n}\n\n.infobox-export-dialog .wb-monolingualtext-value {\n    font-weight: bold;\n}\n\n.infobox-export-dialog .wb-monolingualtext-language-name {\n    color: #54595d;\n    font-weight: normal;\n}\n\n.infobox-export-calendar {\n    margin-left: .25em;\n    color: #54595d;\n}\n\n.infobox-export-calendar::before {\n    display: inline-block;\n    content: '(';\n}\n\n.infobox-export-calendar::after {\n    display: inline-block;\n    content: ')';\n}\n\n.infobox-export-statement .infobox-export-main-label {\n    font-weight: bold;\n}\n\n.infobox-export-statement .infobox-export-main-label .commons-media-caption,\n.infobox-export-statement .infobox-export-main-label .wb-unit,\n.infobox-export-statement .infobox-export-main-label .infobox-export-sup {\n    font-weight: normal;\n}\n\n.infobox-export-sup {\n    margin-left: .1em;\n}\n\n.infobox-export-qualifiers {\n    margin-left: 0;\n    list-style: disc;\n}\n\n.infobox-export-dialog .commons-media-caption,\n.infobox-export-qualifiers .wb-monolingualtext-language-name,\n.infobox-export-qualifiers .infobox-export-calendar {\n    display: none;\n}\n\n.infobox-export-dialog .wikibase-kartographer-caption {\n    float: left;\n}\n\n@keyframes infobox-export-spin {\n    from {\n        transform: rotate(0deg);\n    } to {\n        transform: rotate(360deg);\n    }\n}\n\n.infobox-export-novalue,\n.infobox-export-somevalue {\n    font-style: italic;\n    color: #54595d;\n}\n\n.infobox-export-external-link {\n    display: inline-block;\n    width: 1em;\n    height: 1em;\n    background: url( 'https://www.wikidata.org/w/skins/Vector/resources/common/images/external-link-ltr-icon.svg' );\n    background-size: cover;\n    vertical-align: text-top;\n    margin-left: .1em;\n}\n\n.infobox-export-deprecated {}\n.infobox-export-deprecated::before {\n    display: block;\n    float: left;\n    margin-right: .35em;\n    content: \" \";\n    width: 8px;\n    height: 20px;\n    background: url("+d+");\n}\n\n@keyframes infobox-export-loader {\n    from {\n        background-position-x: -22px;\n    }\n    to {\n        background-position-x: 0;\n    }\n}\n\n.infobox-export-loader {\n    background-size: 200% 100%;\n    background-image: repeating-linear-gradient(135deg, transparent, transparent 8px, #fafbfb 8px, #fafbfb 16px );\n    animation: infobox-export-loader 1s linear infinite;\n}\n\n.partial-wikidata.infobox-export-loader {\n    background-image: repeating-linear-gradient(135deg, transparent, transparent 8px, #fff 8px, #fff 16px );\n}\n",""]),t.Z=c},645:function(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,a,i){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(r)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(o[s]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);r&&o[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),a&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=a):c[4]="".concat(a)),t.push(c))}},t}},667:function(e){e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},81:function(e){e.exports=function(e){return e[1]}},389:function(e,t,n){var r=n(379),a=n.n(r),i=n(795),o=n.n(i),l=n(569),s=n.n(l),u=n(565),c=n.n(u),d=n(216),p=n.n(d),f=n(589),v=n.n(f),h=n(562),b={};b.styleTagTransform=v(),b.setAttributes=c(),b.insert=s().bind(null,"head"),b.domAPI=o(),b.insertStyleElement=p();a()(h.Z,b),h.Z&&h.Z.locals&&h.Z.locals},379:function(e){var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},o=[],l=0;l<e.length;l++){var s=e[l],u=r.base?s[0]+r.base:s[0],c=i[u]||0,d="".concat(u," ").concat(c);i[u]=c+1;var p=n(d),f={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var v=a(f,r);r.byIndex=l,t.splice(l,0,{identifier:d,updater:v,references:1})}o.push(d)}return o}function a(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,a){var i=r(e=e||[],a=a||{});return function(e){e=e||[];for(var o=0;o<i.length;o++){var l=n(i[o]);t[l].references--}for(var s=r(e,a),u=0;u<i.length;u++){var c=n(i[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}i=s}}},569:function(e){var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},216:function(e){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:function(e,t,n){e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:function(e){e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var a=void 0!==n.layer;a&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,a&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:function(e){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},576:function(e){e.exports="data:image/svg+xml,%3Csvg fill=%27none%27 height=%2720%27 viewBox=%270 0 8 20%27 width=%278%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27m0 14v2.2l3.1 3.8h1.8l3.1-3.8v-2.2z%27 fill=%27%23d33%27/%3E%3Cpath d=%27m.5 10.75v-1.5l2-1.75h3l2 1.75v1.5l-2 1.75h-3zm0-6.75v1.5h7v-1.5l-2.875-3.5h-1.25z%27 stroke=%27%23d33%27/%3E%3C/svg%3E"},311:function(e){e.exports=jQuery},119:function(e){e.exports=mw},366:function(e){e.exports=OO.ui},170:function(e){e.exports=JSON.parse('{"re-circa":"(?:~|≈|təq\\\\.|təqribən|təx\\\\.|təxminən)","re-century":"^([IVXivx]{1,5})\\\\s*(əsr?|ə\\\\.)?$","re-text-date":"(\\\\d{1,2})\\\\s+(%months-gen%)[,\\\\s]+([12]\\\\d{3})\\\\.?$","re-decade":"(\\\\d{3,4})-[lər]","re-since-year":"(\\\\d{4})","re-bce":"b\\\\.\\\\e\\\\.\\\\ə\\\\.?\\\\s*$","re-ce":"b\\\\.\\\\s\\\\e\\\\.?\\\\s*$","re-present":"^(?:hazırkı\\\\.|hazırkı|indiki)\\\\s+vaxt$","re-unknown":"^(?:\\\\?|bilinmir|naməlum)$","re-min-sec":"^(\\\\d+)\\\\s*(?:d|dəq|dəqiqə)\\\\.?\\\\s*(\\\\d+)\\\\s*(?:s|san|saniyə?)\\\\.?$","re-10_3":"min","re-10_6":"mln|\\\\dM(?:\\\\s|$)|milyon|million","re-10_9":"mlrd|milyard","re-10_12":"trln|trilyon","mark-checked":"Yoxlanılıb","mark-archived":"Arxivləşdirilib","mark-julian":"yuli təqvimi ilə","units":{},"fixed-values":[]}')},300:function(e){e.exports=JSON.parse('{"re-circa":"(?:~|≈|к\\\\.|каля|прык\\\\.|прыкладна|прыб\\\\.|прыблізна)","re-century":"^([IVXivx]{1,5})\\\\s*(стагоддз[ея]?|ст\\\\.?)?$","re-text-date":"(\\\\d{1,2})\\\\s+(%months-gen%)[,\\\\s]+([12]\\\\d{3})\\\\.?$","re-decade":"(\\\\d{3,4})-[ех]","re-since-year":"(\\\\d{4})\\\\s*(?:год|г\\\\.?)","re-bce":"да\\\\s+н\\\\.*э\\\\.?\\\\s*$","re-ce":"н\\\\.*э\\\\.?\\\\s*$","re-present":"^(?:наш|цяперашні)\\\\s+час$","re-unknown":"^(?:\\\\?|невядома)$","re-10_3":"тыс","re-10_6":"млн|\\\\dM(?:\\\\s|$)|мільён|million","re-10_9":"млрд|мільярд|billion","re-10_12":"трлн|трыльён","mark-checked":"Праверана","mark-archived":"Архівавана","mark-julian":"па юліянскім","units":{},"fixed-values":[]}')},622:function(e){e.exports=JSON.parse('{"re-circa":"(?:~|≈|ca\\\\.|circa)","re-century":"^([IVXivx]{1,5})\\\\s*(Jahrhundert|Jhd\\\\.)?$","re-text-date":"(\\\\d{1,2})\\\\s+(%months-gen%)[,\\\\s]+([12]\\\\d{3})\\\\.?$","re-decade":"(\\\\d{3,4})er","re-bce":"v\\\\.\\\\Chr\\\\.\\\\s*$","re-ce":"n\\\\.\\\\Chr\\\\.\\\\s*$","re-present":"^heute$","re-unknown":"^unbekannt$","re-min-sec":"^(\\\\d+)\\\\s*(?:m|min|Minuten?)\\\\.?\\\\s*(\\\\d+)\\\\s*(?:s|sek|Sekunden?)\\\\.?$","re-10_3":"Tausend","re-10_6":"Millionen","re-10_9":"Milliarden","re-10_12":"Billionen","mark-checked":"Überprüft","mark-archived":"Archiviert","mark-julian":"Julianisch","units":{},"fixed-values":[]}')},686:function(e){e.exports=JSON.parse('{"re-circa":"(?:~|≈|c\\\\.|circa)","re-century":"^([IVXivx]{1,5})\\\\s*(century|c\\\\.)?$","re-iso-date":"^(\\\\d{4})-(\\\\d{1,2})-(\\\\d{1,2})","re-month-year":"^(%months%)\\\\s+([12]\\\\d{3})$","re-month-dot-year":"^(\\\\d{1,2})\\\\.(\\\\d{3,4})$","re-text-date":"(\\\\d{1,2})\\\\s+(%months%|%months-gen%)[,\\\\s]+([12]\\\\d{3})\\\\.?$","re-dot-date":"^(\\\\d{1,2})\\\\.(\\\\d{1,2})\\\\.(\\\\d{2,4})$","re-decade":"(\\\\d{3,4})s","re-year":"(\\\\d{3,4})","re-year-postfix":"\\\\s*$","re-since-year":"(\\\\d{4})","re-until-year":"\\\\s*[-—]*(\\\\d{4})","re-bce":"BCE\\\\s*$","re-ce":"CE\\\\s*$","re-present":"^present$","re-unknown":"^unknown$","re-min-sec":"^(\\\\d+)\\\\s*(?:m|min|minutes?)\\\\.?\\\\s*(\\\\d+)\\\\s*(?:s|sec|seconds?)\\\\.?$","re-10_3":"thousand","re-10_6":"million","re-10_9":"billion","re-10_12":"trillion","mark-checked":"Checked","mark-archived":"Archived","mark-julian":"Julian","units":{},"fixed-values":[]}')},209:function(e){e.exports=JSON.parse('{"re-circa":"(?:~|≈|մոտ\\\\.|մոտավորապես)","re-century":"^([IVXivx]{1,5})\\\\s*(դարեր?|դդ\\\\.)?$","re-text-date":"(\\\\d{1,2})\\\\s+(%months-gen%)[,\\\\s]+([12]\\\\d{3})\\\\.?$","re-decade":"(\\\\d{3,4})ներ","re-since-year":"(\\\\d{4})\\\\s*(?:տարի|տ\\\\.?)","re-bce":"մ\\\\.\\\\թ\\\\.\\\\ա\\\\.?\\\\s*$","re-ce":"մ\\\\.\\\\s*թ\\\\.?\\\\s*$","re-present":"^(?:ներկա\\\\.|ներկա|մեր)\\\\s+ժամանակ$","re-unknown":"^(?:\\\\?|անհայտ)$","re-min-sec":"^(\\\\d+)\\\\s*(?:ր|րոպ|րոպե[ներ]?)\\\\.?\\\\s*(\\\\d+)\\\\s*(?:վ|վրկ|վայրկյան[ներ]?)\\\\.?$","re-10_3":"հազար","re-10_6":"մլն|միլիոն","re-10_9":"մլրդ|միլիարդ","re-10_12":"տրիլիոն","mark-checked":"Ստուգված է","mark-archived":"Արխիվացված է","mark-julian":"Հուլյան","units":{},"fixed-values":[]}')},443:function(e){e.exports=JSON.parse('{"re-circa":"(?:~|≈|[Aa]pie)","re-century":"^([IVXivx]{1,5})\\\\s*(?:amžius)?$","re-month-dot-year":"^(\\\\d{1,2})\\\\.(\\\\d{3,4})(?:\\\\s*m\\\\.)?$","re-text-date":["(?<y>\\\\d{2,4})\\\\s*m\\\\.\\\\s+(?<m>%months-gen%)\\\\s+(?<d>\\\\d{1,2})\\\\s*d\\\\.","i"],"re-dot-date":"^(\\\\d{1,2})\\\\.(\\\\d{1,2})\\\\.(\\\\d{2,4})(?:\\\\s*г\\\\.?)?$","re-decade":"(\\\\d{3,4})-as","re-year-postfix":"\\\\s+(m\\\\.?)$","re-since-year":"(\\\\d{4})\\\\s*(?:m\\\\.)?","re-bce":"pr\\\\.\\\\s+Kr\\\\.?\\\\s*e\\\\.?\\\\s*$","re-ce":"Kr\\\\.?\\\\s*e\\\\.?\\\\s*$","re-present":"^(?:iki )?(?:(?:esamasis|šiais)\\\\s+laikai?s|dabar|nau)$","re-unknown":"^(?:\\\\?|nežinomas)$","re-min-sec":"^(\\\\d+)\\\\s*(?:m|min|minutės)\\\\.?\\\\s*(\\\\d+)\\\\s*(?:s|sek|sekundes)\\\\.?$","re-10_3":"tūkstantis","re-10_6":"\\\\dM(?:\\\\s|$)|milijonas","re-10_9":"milijardo","re-10_12":"trilijonas","mark-checked":"Patikrinta","mark-archived":"Suarchyvuota","mark-julian":"Julijone","units":{}}')},816:function(e){e.exports=JSON.parse('{"re-circa":"(?:~|≈|[Оо]к\\\\.|[Оо]коло|[Пп]рим\\\\.|[Пп]римерно)","re-century":"^(?:[Нн]ач(?:\\\\.|ало)|[Сс]ер(?:\\\\.|едина)|[Кк]он(?:\\\\.|ец))?\\\\s*([IVXivx]{1,5})\\\\s*(?:века?|в\\\\.)?$","re-month-dot-year":"^(\\\\d{1,2})\\\\.(\\\\d{3,4})(?:\\\\s*г\\\\.?)?$","re-text-date":"(\\\\d{1,2})\\\\s+(%months-gen%)[,\\\\s]+([12]\\\\d{3})(?:\\\\s?год|\\\\s?г\\\\.?$|\\\\.?$)","re-dot-date":"^(\\\\d{1,2})\\\\.(\\\\d{1,2})\\\\.(\\\\d{2,4})(?:\\\\s*г\\\\.?)?$","re-decade":"(\\\\d{3,4})-[ех]","re-year-postfix":"\\\\s+(года?|г\\\\.?)$","re-since-year":"(\\\\d{4})\\\\s*(?:год|г\\\\.?)","re-bce":"до\\\\s+н\\\\.\\\\s*э\\\\.?\\\\s*$","re-ce":"н\\\\.\\\\s*э\\\\.?\\\\s*$","re-present":"^(?:по )?(?:(?:наст\\\\.|настоящее|наше)\\\\s+время|н\\\\.\\\\s*в\\\\.?)$","re-unknown":"^(?:\\\\?|неизвестно)$","re-min-sec":"^(\\\\d+)\\\\s*(?:м|мин|минут[аы]?)\\\\.?\\\\s*(\\\\d+)\\\\s*(?:с|сек|секунд[аы]?)\\\\.?$","re-10_3":"тыс","re-10_6":"млн|\\\\dM(?:\\\\s|$)|миллион|million","re-10_9":"млрд|billion","re-10_12":"трлн","mark-checked":"Проверено","mark-archived":"Архивировано","mark-julian":"по юлианскому","units":{"Q531":["св(?:\\\\.|етовых)\\\\s*(?:лет|года?)"],"Q4916":["^€","^EUR"],"Q4917":["^(?:-|US)?\\\\$","долларов(?:\\\\sСША)?","долл.","\\\\$"],"Q7727":["минут"],"Q8146":["иен"],"Q11573":["метр(?:а|ов)"],"Q25344":["^CHF"],"Q41044":["рублей"],"Q81292":["акр(?:а|ов)"],"Q21074767":["(?:в[её]рст²|кв\\\\.\\\\s*в[её]рст)"]},"fixed-values":[{"property":"P21","search":"жен","item":"Q6581072","label":"женский"},{"property":"P21","search":"муж","item":"Q6581097","label":"мужской"},{"property":"P423","search":"прав","item":"Q10927630","label":"праворукий удар"},{"property":"P423","search":"лев","item":"Q10927615","label":"леворукий удар"},{"property":"P552","search":"прав","item":"Q3039938","label":"правша"},{"property":"P552","search":"лев","item":"Q789447","label":"левша"},{"property":"P741","search":"прав","item":"Q3039938","label":"правша"},{"property":"P741","search":"лев","item":"Q789447","label":"левша"}]}')},385:function(e){e.exports=JSON.parse('{"re-circa":"(?:~|тақр(?:ибан)?|тахм(?:инан)?)\\\\.?","re-unknown":"^(?:\\\\?|номаълум)$","mark-checked":"Тафтишшуда","mark-archived":"Бойгонишуда","units":{},"fixed-values":[]}')},594:function(e){e.exports=JSON.parse('{"re-circa":"(?:~|≈|y\\\\.|yaklaşık)","re-century":"^([IVXivx]{1,5})\\\\s*(yüzyıl|y\\\\.)?$","re-10_3":"bin","re-10_6":"milyon","re-10_9":"milyar","re-10_12":"trilyon","mark-checked":"Kontrol edildi","mark-archived":"Arşivlendi","units":{},"fixed-values":[]}')},45:function(e){e.exports=JSON.parse('{"window-header":"Vikiverilənlərə ixrac et","version-string":"Versiya $1","export-button-label":"İxrac et","cancel-button-label":"İmtina et","export-confirmation":"Şablondan bu parametrin göstəricisi Vikiverilənlərə ixrac olunsunmu?","license-cc0":"«Dəyişiklikləri yayımla» düyməsini basarkən siz <a $terms>istifadə şərtləri</a> ilə razılaşdığınızı və redaktələrinizin <a $license>Creative Commons CC0 License</a> lisenziyası əsasında dərcinə razı olduğunuzu bildirmiş olursunuz.","more-precise-value":"Göstəricisi nəzərə alınmayacaq, çünki göstəricisi daha dəqiqdir: $1","already-used-in":" artıq istifadə olunur ","bce-postfix":" b. e. ə.","age-postfix":" əsr","decade-postfix":"-cı illər","no-description":"Təsvirin yüklənməsi mümkün deyil","no-property-data":"$1 parametrinin göstəricisinin verilənləri yoxdur","circa-prefix":"təq.","circa-title":"mənbənin vəziyyəti = təqribən","all-values-saved":"göstəricilər Vikiverilənlərə uğurla əlavə olundu","value-saved":"göstəricisi Vikiverilənlərə uğurla əlavə olundu","value-failed":"Yadda saxlanılarkən xəta yarandı","values-left":" ($1 qalıb)","parsing-error":"Göstəricinin dəyərini təyin etmək mümkün olmadı","unknown-datatype":"Bilinməyən parametr göstəricisi tipi: $1","value-prefix":"Dəyər ","no-value":"mövcud deyil","unknown-value":"bilinmir","grigorian-calendar":"Qriqori","julian-calendar":"Yuli","unit-sec":" san."}')},626:function(e){e.exports=JSON.parse('{"window-header":"Экспарт у Вікідадзеныя","version-string":"Версія $1","export-button-label":"Экспарт","cancel-button-label":"Адмена","export-confirmation":"Экспартаваць значэнне ўласцівасці з карткі ў Вікідадзеныя?","license-cc0":"Націснуўшы на кнопку «$button», вы згаджаецеся з <a $terms>умовамі выкарыстання</a> і згаджаецеся публікаваць свой унёсак без магчымасці адклікання на ўмовах <a $license>Creative Commons CC0 License</a>.","more-precise-value":"Значэнне выключана, бо ужо маецца больш дакладнае: $1","already-used-in":" ўжо выкарыстоўваецца ў ","bce-postfix":" да н.э.","age-postfix":" стагоддзе","decade-postfix":"-е","no-description":"Немагчыма падгрузіць апісанне","no-property-data":"Адсутнічаюць дадзеныя для ўласцівасці $1","circa-prefix":"каля","circa-title":"акалічнасці крыніцы = каля","all-values-saved":"Усе значэнні паспяхова дададзены ў Вікідадзеныя","value-saved":"Значэнне паспяхова дададзена ў Вікідадзеныя","value-failed":"Памылка пры захаванні","values-left":" (засталося $1)","parsing-error":"Не атрымалася вызначыць значэнне ўласцівасці","unknown-datatype":"Невядомы тып дадзеных ўласцівасці: $1","value-prefix":"Значэнне ","no-value":"адсутнічае","unknown-value":"невядома","unit-sec":" сек."}')},837:function(e){e.exports=JSON.parse('{"window-header":"Schneller Wikidata-Export","version-string":"Version $1","export-button-label":"Exportieren","cancel-button-label":"Abbrechen","export-confirmation":"Eigenschafts-Wert aus einer Infobox nach Wikidta exportieren?","license-cc0":"Durch Klicken auf \\"$button\\" stimmst du den <a $terms>Nutzungsbedingungen</a> zu und stimmst unwiderruflich der Veröffentlichung deines Beitrags unter der <a $license>Creative Commons CC0 Lizenz</a> zu.","more-precise-value":"Der Wert wird ausgelassen, da der genauere Wert bevorzugt wird: $1","already-used-in":" bereits genutzt in ","bce-postfix":" v. Chr.","age-postfix":" Jahrhundert","decade-postfix":"er","no-description":"Laden der Beschreibung nicht möglich","no-property-data":"Keine Daten für Eigenschaft $1 verfügbar","circa-prefix":"ca.","circa-title":"Nachweisumstände = circa","all-values-saved":"Alle Werte erfolgreich zu Wikidata hinzugefügt","value-saved":"Wert erfolgreich zu Wikidata hinzugefügt","value-failed":"Speichern fehlgeschlagen","values-left":" ($1 verbleiben)","parsing-error":"Eigenschaftswert konnte nicht bestimmt werden","unknown-datatype":"Unbekannter Datentyp: $1","value-prefix":"","no-value":"Kein Wert","unknown-value":"Unbekannter Wert","grigorian-calendar":"gregorianisch","julian-calendar":"julianisch","unit-sec":" sek."}')},52:function(e){e.exports=JSON.parse('{"window-header":"Quick Wikidata Export","version-string":"Version $1","export-button-label":"Export","cancel-button-label":"Cancel","export-confirmation":"Export property value from an infobox to Wikidata?","license-cc0":"By clicking \\"$button\\", you agree to the <a $terms>terms of use</a>, and you irrevocably agree to release your contribution under the <a $license>Creative Commons CC0 License</a>.","more-precise-value":"The value is excluded in favor of a more accurate value: $1","already-used-in":" already used in ","bce-postfix":" BCE","age-postfix":" century","decade-postfix":"s","no-description":"Unable to load description","no-property-data":"No data available for property $1","circa-prefix":"c.","circa-title":"sourcing circumstances = circa","all-values-saved":"All values have been successfully added to Wikidata","value-saved":"Value has been successfully added to Wikidata","value-failed":"Save failed","values-left":" ($1 left)","parsing-error":"Could not determine property value","unknown-datatype":"Unknown datatype: $1","value-prefix":"","no-value":"No value","unknown-value":"Unknown value","grigorian-calendar":"Grigorian","julian-calendar":"Julian","unit-sec":" sec","export-all":"Export all values to Wikidata"}')},678:function(e){e.exports=JSON.parse('{"window-header":"Տեղափոխում Վիքիտվյալներ","version-string":"Տարբերակ $1","export-button-label":"Տեղափոխում","cancel-button-label":"Չեղարկել","export-confirmation":"Տեղեկաքարտի հասկացության նշանակությունը տեղափոխե՞լ Վիքիտվյալներ","license-cc0":"Սեղմելով «$button» կոճակին՝ դուք համաձայնվում եք <a $terms> օգտագործման պայմանների հետ</a> և անդառնալիորեն համաձայնվում եք հրապարակել ձեր ներդրումը <a $license>Creative Commons CC0 License</a> արտոնագրի ներքո:","more-precise-value":"նշանակությունը հեռացվել է, արդեն կա ավելի հստակը՝: $1","already-used-in":" արդեն օգտագործվում է ","bce-postfix":" մ թ. ա.","age-postfix":" դար","decade-postfix":"-ականներ","no-description":"Անհնար է բեռնել նկարագրությունը","no-property-data":"$1 հատկության համար տվյալները բացակայում են","circa-prefix":"մոտ.","circa-title":"աղբյուրի հանգամանքները = մոտավորապես","all-values-saved":"Բոլոր արժեքները բարեհաջող ավելացված է Վիքիտվյալներում","value-saved":"արժեքը բարեհաջող ավելացված է Վիքիտվյալներում","value-failed":"Պահպանման սխալ","values-left":" (մնաց $1)","parsing-error":"Չհաջողվեց որոշել հասկացության նշանակությունը","unknown-datatype":"Հասկացության տվյալների անհայտ տեսակ. $1","value-prefix":"Նշանակություն ","no-value":"բացակայում է","unknown-value":"անհայտ","grigorian-calendar":"Գրիգորյան","julian-calendar":"Հուլյան"}')},39:function(e){e.exports=JSON.parse('{"window-header":"Eksportuoti prie Vikiduomenų","version-string":"Versija $1","export-button-label":"Eksportuoti","cancel-button-label":"Atšaukti","export-confirmation":"Eksportuoti nuosavybės vertę iš kortelės prie Vikiduomenų?","license-cc0":"Spustelėdami mygtuką „$button“, sutinkate su <a $terms>naudojimo sąlygomis</a> ir neatšaukiamai sutinkate skelbti savo indėlį pagal sąlygas <a $license>Creative Commons CC0 License</a>.","more-precise-value":"Vertė neįtraukta, nes jau yra tikslesnis: $1","already-used-in":" jau naudojamas ","bce-postfix":" pr. Kr. e.","age-postfix":" amžiaus","decade-postfix":"-as","no-description":"Nepavyko įkelti aprašo","no-property-data":"Trūksta duomenų apie nuosavybę $1","circa-prefix":"apie","circa-title":"šaltinio aplinkybės = apie","all-values-saved":"Vertės sėkmingai pridėtos prie Vikiduomenų","value-saved":"Vertė sėkmingai pridėta prie Vikiduomenų","value-failed":"Klaida išsaugont","values-left":" (paliko $1)","parsing-error":"Nepavyko nustatyti turto vertės","unknown-datatype":"Nežinomas nuosavybės duomenų tipas: $1","value-prefix":"Reikšmė ","no-value":"nėra","unknown-value":"nežinomas","grigorian-calendar":"Grigaliaus","julian-calendar":"Julianas","unit-sec":" sek.","export-all":"Eksportuokite visas vertes prie Vikiduomenų"}')},482:function(e){e.exports=JSON.parse('{"window-header":"Экспорт в Викиданные","version-string":"Версия $1","export-button-label":"Экспорт","cancel-button-label":"Отмена","export-confirmation":"Экспортировать значение свойства из карточки в Викиданные?","license-cc0":"Нажав на кнопку «$button», вы соглашаетесь с <a $terms>условиями использования</a> и безотзывно соглашаетесь публиковать свой вклад на условиях <a $license>Creative Commons CC0 License</a>.","more-precise-value":"Значение исключено, так как уже имеется более точное: $1","already-used-in":" уже используется в ","bce-postfix":" до н. э.","age-postfix":" век","decade-postfix":"-е","no-description":"Невозможно подгрузить описание","no-property-data":"Отсутствуют данные для свойства $1","circa-prefix":"ок.","circa-title":"обстоятельства источника = около","all-values-saved":"Все значения успешно добавлены в Викиданные","value-saved":"Значение успешно добавлено в Викиданные","value-failed":"Ошибка при сохранении","values-left":" (осталось $1)","parsing-error":"Не удалось определить значение свойства","unknown-datatype":"Неизвестный тип данных свойства: $1","value-prefix":"Значение ","no-value":"отсутствует","unknown-value":"неизвестно","grigorian-calendar":"Григорианский","julian-calendar":"Юлианский","unit-sec":" сек.","export-all":"Экспортировать все значения в Викиданные"}')},425:function(e){e.exports=JSON.parse('{"more-precise-value":"Мазмуни хориҷ карда шуд, алкай дақиқтар мавҷуд аст: $1","no-description":"Боргирии тавзеҳот имконпазир нест","circa-title":"ҳолати сарчашма = назди","all-values-saved":"Арзиши бомуваффақият ба Викидода илова шуд","value-saved":"Арзиши бомуваффақият ба Викидода илова шуд","value-failed":"Хато дар ҳангоми захира","value-prefix":"Арзиши ","unknown-value":"номаълум"}')}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var i=t[r]={id:r,exports:{}};return e[r](i,i.exports,n),i.exports}n.m=e,n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.b=document.baseURI||self.location.href,n.nc=void 0,function(){var e=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}s((r=r.apply(e,t||[])).next())}))},t=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},r=null,a=null;function i(){if(null===r){var e=n(119);r=new e.Api}return r}function o(){if(null===a){var e=n(119);a=new e.ForeignApi("//www.wikidata.org/w/api.php")}return a}function l(n){return e(this,void 0,void 0,(function(){return t(this,(function(e){return n.titles&&n.titles.length>20?[2,i().post(n)]:[2,i().get(n)]}))}))}function s(n){return e(this,void 0,void 0,(function(){return t(this,(function(e){return n.titles&&n.titles.length>20?[2,o().post(n)]:[2,o().get(n)]}))}))}function u(n,r){return e(this,void 0,void 0,(function(){return t(this,(function(e){return[2,i().getMessages(n,{amlang:r})]}))}))}function c(r){return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){return e=n(311),"https://query.wikidata.org/sparql?format=json",[2,e.post("https://query.wikidata.org/sparql?format=json",{query:r})]}))}))}var d=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}s((r=r.apply(e,t||[])).next())}))},p=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}};function f(e){var t=n(311);return t.grep(e,(function(n,r){return r===t.inArray(n,e)}))}function v(e,t){return(Math.floor(Math.random()*(t-e+1))+e).toString(16)}function h(e){return e.slice(0,1).toLowerCase()+e.slice(1)}function b(e){return e.slice(0,1).toUpperCase()+e.slice(1)}function m(e,t){return t.split(".").reduce((function(e,t){return null==e?void 0:e[t]}),e)}function y(e,t,n){for(var r in t.push("en"),t){var a=t[r];if(e[a])return e[a].value}return Object.values(e).length?Object.values(e).shift().value:n||""}function g(e){return d(this,void 0,void 0,(function(){return p(this,(function(t){return[2,new Promise((function(t){return setTimeout(t,e)}))]}))}))}function w(e){return!e||/^\s+$/.test(e)?"":(e=e.trim(),/\d/.test(e[0])&&(e=" "+e),e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&"))}function x(e,t,n){return d(this,void 0,void 0,(function(){return p(this,(function(r){return[2,new Promise((function(r,a){var i=indexedDB.open(e,2);i.onerror=function(){a(Error("IndexedDB error: "+i.error))},i.onupgradeneeded=function(){var t=i.result;t.objectStoreNames.contains(e)&&t.deleteObjectStore(e);t.createObjectStore(e,{keyPath:"id"})},i.onsuccess=function(){var o,l=i.result.transaction([e],"readwrite").objectStore(e);(o=n?l.put(n):l.get(t)).onerror=function(){a(Error("IDBObjectStore error: "+o.error))},o.onsuccess=function(){r(o.result)}}}))]}))}))}var k=n(119),I=k.config.get("wgContentLanguage"),P=k.user.options.get("language")||I,S=f([P,I,"en"]),C={ain:"Q20968488",akk:"Q32332",atv:"Q2640863",bua:"Q33120",chm:"Q973685",dar:"Q32332",enf:"Q29942",evn:"Q30004",izh:"Q33559",jdt:"Q56495",jmy:"Q53493410",orv:"Q35228",phn:"Q36734",sga:"Q35308",yrk:"Q36452"};function E(e){var t=e.mainsnak.datavalue.value;return t.language in C&&("qualifiers"in e||(e.qualifiers={}),e.qualifiers.P407=[L("P407",C[t.language])],e.mainsnak.datavalue.value.language="mis"),e}var _,q=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}s((r=r.apply(e,t||[])).next())}))},j=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},O=n(311),T=n(119),Q=T.config.get("wgWikibaseItemId"),N={};function V(){for(var e="xx-x-x-x-xxx",t="",n=0;n<e.length;n++)if("-"!==e.charAt(n)){var r=void 0;for(r=3===n?v(16384,20479):4===n?v(32768,49151):v(0,65535);r.length<4;)r="0"+r;t+=r}else t+="-";return Q+"$"+t}function D(e){var t,n=(t=e,JSON.parse(JSON.stringify(t)));return n.meta=null,JSON.stringify(n)}function L(e,t){return{snaktype:"value",property:e,datavalue:{type:"wikibase-entityid",value:{"entity-type":"item","numeric-id":parseInt(t.replace("Q",""),10),id:t}},datatype:"wikibase-item"}}function A(e,t){return{mainsnak:e,type:"statement",id:V(),rank:"normal",references:t,meta:{}}}function U(e,t){N[e]={label:y(null==t?void 0:t.labels,[P,I],e),description:y(null==t?void 0:t.descriptions,[P,I])}}function z(e){return q(this,void 0,void 0,(function(){var t,n,r,a;return j(this,(function(i){switch(i.label){case 0:return t=e.filter((function(e){return!N[e]})),t.length?[4,s({action:"wbgetentities",ids:t,languages:S,props:["labels","descriptions"]})]:[2];case 1:for(n=i.sent(),r=0;r<t.length;r++)U(a=e[r],n.entities[a]);return[2]}}))}))}function W(e){return q(this,void 0,void 0,(function(){return j(this,(function(t){switch(t.label){case 0:return N[e]?[3,2]:[4,z([e])];case 1:t.sent(),t.label=2;case 2:return[2,N[e]]}}))}))}function J(e,t,n){var r,a,i,o,l,u,c,d;return q(this,void 0,void 0,(function(){var p,v,h,b,m,g,w,x,k;return j(this,(function($){switch($.label){case 0:return t.length?(p=t.map((function(e){return e.language})),p=f(p=O.merge(p,S)),[4,s({action:"wbgetentities",sites:v=t.map((function(e){return e.project})),languages:p,props:["labels","descriptions","claims","sitelinks"],titles:t.map((function(e){return e.label})),sitefilter:v})]):[2,[]];case 1:if(!(h=$.sent()).success)return[2,[]];for(g in b=[],m=function(s){if(!h.entities.hasOwnProperty(s)||!s.match(/^Q/))return"continue";var c=h.entities[s];if("Q4167410"===(null===(u=null===(l=null===(o=null===(i=null===(a=null===(r=null==c?void 0:c.claims)||void 0===r?void 0:r.P31)||void 0===a?void 0:a[0])||void 0===i?void 0:i.mainsnak)||void 0===o?void 0:o.datavalue)||void 0===l?void 0:l.value)||void 0===u?void 0:u.id))return"continue";U(s,c);var d,p,f=!1,v=["P17","P31","P131","P279","P361"],m=function(e){return h.entities.hasOwnProperty(e)&&e.match(/^Q/)&&s!==e?(f=v.find((function(t){var n,r;return((null===(r=null===(n=h.entities[e])||void 0===n?void 0:n.claims)||void 0===r?void 0:r[t])||[]).find((function(t){var n,r,a=((null===(r=null===(n=t.mainsnak)||void 0===n?void 0:n.datavalue)||void 0===r?void 0:r.value)||{}).id===s;return a&&(p=e,d=h.entities[e]),a}))})),f?"break":void 0):"continue"};for(var g in h.entities){if("break"===m(g))break}var w=A(L(e,s),n);f&&d&&(w.meta.subclassItem={"entity-type":"item","numeric-id":parseInt(p.replace("Q",""),10),id:p});var x=y(c.labels,[I,P]).toLowerCase(),k=t.filter((function(e){if(e.label.toLowerCase()===x)return!0;for(var t in c.sitelinks)if(c.sitelinks.hasOwnProperty(t)&&e.label.toLowerCase()===c.sitelinks[t].title.toLowerCase())return!0;return!1}));1===k.length&&(w.meta.title=k.shift(),w.qualifiers=w.meta.title.qualifiers),b.push(w)},h.entities)m(g);for(w=[],x=function(e){var t=null===(d=null===(c=b[e])||void 0===c?void 0:c.meta)||void 0===d?void 0:d.title;if(!(null==t?void 0:t.redirect))return"continue";b.forEach((function(e){var n,r,a,i;(null===(r=null===(n=null==e?void 0:e.meta)||void 0===n?void 0:n.title)||void 0===r?void 0:r.label)===(null==t?void 0:t.redirect)&&(null===(i=null===(a=null==e?void 0:e.meta)||void 0===a?void 0:a.title)||void 0===i?void 0:i.project)===t.project&&"value"===e.mainsnak.snaktype&&w.push(e.mainsnak.datavalue.value.id)}))},k=0;k<b.length;k++)x(k);return[2,b=b.filter((function(e){return!w.includes(e.mainsnak.datavalue.value.id)}))]}}))}))}function F(e){return q(this,void 0,void 0,(function(){return j(this,(function(t){return[2,o().postWithToken("csrf",{action:"wbsetclaim",claim:D(e),baserevid:_,tags:"InfoboxExport gadget"}).then((function(e,t){var n;return(null===(n=null==t?void 0:t.pageinfo)||void 0===n?void 0:n.lastrevid)&&(_=t.pageinfo.lastrevid),null})).catch((function(e,t){var n;return(null===(n=null==t?void 0:t.error)||void 0===n?void 0:n.info)||"Network error"}))]}))}))}function M(e){return q(this,void 0,void 0,(function(){var t,n;return j(this,(function(r){switch(r.label){case 0:return[4,s({action:"wbformatvalue",generate:"text/html; disposition=verbose",datavalue:JSON.stringify(e.datavalue),datatype:e.datatype,uselang:P})];case 1:return(t=r.sent()).errors?(n=t.errors[0]["*"],[2,O("<span>").addClass("error").text(n)]):[2,O("<span>").addClass("infobox-export-main-label").html(t.result)]}}))}))}function R(e){return{snaktype:"novalue",property:e}}var X=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}s((r=r.apply(e,t||[])).next())}))},B=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},G=["january","february","march","april","may","june","july","august","september","october","november","december"],H=G;function K(){return G}function Z(){return H}function Y(){return X(this,void 0,void 0,(function(){var e,t,n,r,a,i,o;return B(this,(function(l){switch(l.label){case 0:for(t in e=[],G)e.push(G[t]),e.push(G[t]+"-gen");return[4,u(e,I)];case 1:for(i in n=l.sent(),r=[],a=[],G)o=G[i],r.push(n[o]),a.push(n[o+"-gen"]);return G=r,H=a,[2]}}))}))}var ee=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}s((r=r.apply(e,t||[])).next())}))},te=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},ne={version:"3.5.0",project:n(119).config.get("wgDBname"),references:{},units:{},fixedValues:[],centuries:["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII","XIII","XIV","XV","XVI","XVII","XVIII","XIX","XX","XXI","XXII"],properties:{}},re={az:n(170),be:n(300),de:n(622),en:n(686),hy:n(209),lt:n(443),ru:n(816),tg:n(385),tr:n(594)},ae=["Q47574","Q29479187"],ie="infoboxExportProperties",oe="infoboxExportUnits",le="infoboxExportConfig";function se(e){var t;if(I in re&&(t=m(re[I],e)),void 0===t&&(t=m(re.en,e)),void 0!==t){if(e.match(/^re-/)){""===t&&(t="^@{999}$");var n="";return Array.isArray(t)&&(n=t[1],t=t[0]),t=(t=t.replace("%months%",K().join("|"))).replace("%months-gen%",Z().join("|")),new RegExp(t,n)}return t}}function ue(e){var t=m(ne,e);return void 0!==t?t:se(e)}function ce(e,t){!function(e,t,n){var r=t.split(".");r.reduce((function(e,t,a){return a<r.length-1?"object"==typeof e[t]&&null!==e[t]||(e[t]={}):e[t]=n,e[t]}),e)}(ne,e,t)}function de(e){return ee(this,void 0,void 0,(function(){return te(this,(function(t){switch(t.label){case 0:return[4,x(ie,e)];case 1:return[2,t.sent()]}}))}))}function pe(e,t){return ee(this,void 0,void 0,(function(){return te(this,(function(n){switch(n.label){case 0:return[4,x(ie,e,t)];case 1:return n.sent(),[2]}}))}))}function fe(e){return ee(this,void 0,void 0,(function(){var t;return te(this,(function(n){switch(n.label){case 0:return[4,x(oe,e)];case 1:return[2,null==(t=n.sent())?void 0:t.search]}}))}))}function ve(e,t){return ee(this,void 0,void 0,(function(){return te(this,(function(n){switch(n.label){case 0:return[4,x(oe,e,{id:e,search:t})];case 1:return n.sent(),[2]}}))}))}function he(e,t){var n;return ee(this,void 0,void 0,(function(){var r,a,i;return te(this,(function(o){switch(o.label){case 0:if((r=(null===(n=null==ne?void 0:ne.units)||void 0===n?void 0:n[e])||[]).length)return[2];if(se("units.".concat(e))&&(r=se("units.".concat(e))),t.labels&&t.labels[I]&&r.push(w(t.labels[I].value)),t.aliases&&t.aliases[I])for(a in t.aliases[I])r.push(w(t.aliases[I][a].value));if(t.claims&&t.claims.P5061)for(a in t.claims.P5061)(i=t.claims.P5061[a]).mainsnak&&i.mainsnak.datavalue&&i.mainsnak.datavalue.value&&r.push(w(i.mainsnak.datavalue.value.text));return[4,ve(e,f(r))];case 1:return o.sent(),[2]}}))}))}function be(e){return ee(this,void 0,void 0,(function(){var t,n,r,a,i,o;return te(this,(function(l){switch(l.label){case 0:t=0,l.label=1;case 1:return t<f(e).length?[4,s({action:"wbgetentities",languages:I,props:["labels","aliases","claims"],ids:f(e).slice(t,t+50)})]:[3,7];case 2:if(!(n=l.sent()).success)return[2];for(a in r=[],n.entities)r.push(a);i=0,l.label=3;case 3:return i<r.length?[4,he(o=r[i],n.entities[o])]:[3,6];case 4:l.sent(),l.label=5;case 5:return i++,[3,3];case 6:return t+=50,[3,1];case 7:return[2]}}))}))}function me(e,t){var n,r,a,i,o,l;return ee(this,void 0,void 0,(function(){var s,u,d,p;return te(this,(function(v){switch(v.label){case 0:return[4,c("SELECT DISTINCT ?unit ?unitLabel ?unitAltLabel ?code WITH {\n\tSELECT DISTINCT ?unit {\n\t\t".concat((null==t?void 0:t.length)?"VALUES ?unit {wd:".concat(t.join(" wd:"),"}."):"","\n\t\tVALUES ?type {wd:").concat(e.join(" wd:"),'}.\n\t\t?unit wdt:P31?/wdt:P279* ?type.\n\t}} AS %Q {\n\t\tINCLUDE %Q\n\t\tOPTIONAL { ?unit wdt:P5061 ?code. FILTER(lang(?code) IN ("').concat(I,'","mul")) }.\n\t\tSERVICE wikibase:label { bd:serviceParam wikibase:language "').concat(I,'" }\n\t}'))];case 1:if(s=v.sent(),!(null===(r=null===(n=null==s?void 0:s.results)||void 0===n?void 0:n.bindings)||void 0===r?void 0:r.length))return[2,[]];u=[],d=function(e){var t,n,r;return te(this,(function(c){switch(c.label){case 0:return t=s.results.bindings[e],[4,fe(n=t.unit.value.replace("http://www.wikidata.org/entity/",""))];case 1:return void 0!==(r=c.sent())?(r.length&&u.push(n),[2,"continue"]):(r=se("units.".concat(n))||[],(null===(a=t.unitLabel)||void 0===a?void 0:a.value)!==n&&r.push(w(null===(i=t.unitLabel)||void 0===i?void 0:i.value)),r.push(w(null===(o=t.code)||void 0===o?void 0:o.value)),(null===(l=t.unitAltLabel)||void 0===l?void 0:l.value)&&t.unitAltLabel.value.split(",").forEach((function(e){r.push(w(e))})),r=f(r.filter((function(e){return e}))),[4,ve(n,r)]);case 2:return c.sent(),r.length&&u.push(n),[2]}}))},p=0,v.label=2;case 2:return p<s.results.bindings.length?[5,d(p)]:[3,5];case 3:v.sent(),v.label=4;case 4:return p++,[3,2];case 5:return[2,u]}}))}))}function ye(e){var t;for(var n in e){var r=e[n];if("deprecated"!==r.rank&&"value"===r.mainsnak.snaktype)if(t){if("preferred"===r.rank){t=r;break}}else t=r}return t}function ge(e){var t,n,r,a,i,o,l,u,c,d,p,v,h,m,g,w,x,k,$,C,E,_,q,j,O,T,Q,N,V,D,L,A,U,z,W,J,F,M;return ee(this,void 0,void 0,(function(){var R,X,B,G,H,K,Z,Y,ee,ne,re,ie,oe,le,se,ue,ce,de,fe,ve,he,be,ge;return te(this,(function(te){switch(te.label){case 0:return e&&e.length?(R=[],[4,s({action:"wbgetentities",languages:S,props:["labels","datatype","claims"],ids:e})]):[2];case 1:if(!(X=te.sent()).success)return[2];for(G in B=[],X.entities)B.push(G);H=0,te.label=2;case 2:if(!(H<B.length))return[3,7];if(K=B[H],!X.entities.hasOwnProperty(K))return[3,6];if(Z=K,Y=X.entities[Z],ee=y(Y.labels,[P,I],Z),ne={id:Z,datatype:Y.datatype,label:b(ee),constraints:{integer:!1,noneOfValues:{},oneOfValues:[],unique:!1,unitOptional:!1,valueType:[],qualifier:[]},formatter:"",units:[]},(null===(t=Y.claims)||void 0===t?void 0:t.P1630)&&(re=ye(Y.claims.P1630))&&(ne.formatter=re.mainsnak.datavalue.value),(null===(n=Y.claims)||void 0===n?void 0:n.P1793)&&(re=ye(Y.claims.P1793))&&(ne.constraints.format=re.mainsnak.datavalue.value),null===(r=Y.claims)||void 0===r?void 0:r.P2302)for(ve in Y.claims.P2302)if(void 0!==(ie=Y.claims.P2302[ve])&&"deprecated"!==ie.rank&&"value"===ie.mainsnak.snaktype)switch(he=ie.mainsnak.datavalue.value.id,oe=void 0,he){case"Q19474404":case"Q21502410":ne.constraints.unique=!0;break;case"Q21510856":for(oe=(null===(a=ie.qualifiers)||void 0===a?void 0:a.P2306)||[],ce=0;ce<oe.length;ce++)(de=null===(l=null===(o=null===(i=oe[ce])||void 0===i?void 0:i.datavalue)||void 0===o?void 0:o.value)||void 0===l?void 0:l.id)&&ne.constraints.qualifier.push(de);break;case"Q21514353":for(oe=(null===(u=ie.qualifiers)||void 0===u?void 0:u.P2305)||[],ce=0;ce<oe.length;ce++)(le=null===(p=null===(d=null===(c=oe[ce])||void 0===c?void 0:c.datavalue)||void 0===d?void 0:d.value)||void 0===p?void 0:p.id)?(ne.units.push(le),R.push(le)):"novalue"===(null===(v=oe[ce])||void 0===v?void 0:v.snaktype)&&(ne.constraints.unitOptional=!0);break;case"Q21502404":(oe=(null===(h=ie.qualifiers)||void 0===h?void 0:h.P1793)||[]).length&&(ne.constraints.format=null===(m=oe[0].datavalue)||void 0===m?void 0:m.value);break;case"Q21510859":for(oe=(null===(g=ie.qualifiers)||void 0===g?void 0:g.P2305)||[],ce=0;ce<oe.length;ce++)(de=null===(k=null===(x=null===(w=oe[ce])||void 0===w?void 0:w.datavalue)||void 0===x?void 0:x.value)||void 0===k?void 0:k.id)&&ne.constraints.oneOfValues.push(de);break;case"Q21510865":for(oe=(null===($=ie.qualifiers)||void 0===$?void 0:$.P2308)||[],ce=0;ce<oe.length;ce++)(se=null===(_=null===(E=null===(C=oe[ce])||void 0===C?void 0:C.datavalue)||void 0===E?void 0:E.value)||void 0===_?void 0:_.id)&&ne.constraints.valueType.push(se);break;case"Q52558054":for(ue=null===(Q=null===(T=null===(O=null===(j=null===(q=ie.qualifiers)||void 0===q?void 0:q.P9729)||void 0===j?void 0:j[0])||void 0===O?void 0:O.datavalue)||void 0===T?void 0:T.value)||void 0===Q?void 0:Q.id,oe=(null===(N=ie.qualifiers)||void 0===N?void 0:N.P2305)||[],ce=0;ce<oe.length;ce++)(de=null===(L=null===(D=null===(V=oe[ce])||void 0===V?void 0:V.datavalue)||void 0===D?void 0:D.value)||void 0===L?void 0:L.id)&&(ne.constraints.noneOfValues[de]=ue);break;case"Q52848401":ne.constraints.integer=!0}if(!(null===(A=Y.claims)||void 0===A?void 0:A.P2876))return[3,4];for(ve in fe=[],Y.claims.P2876)(he=null===(J=null===(W=null===(z=null===(U=Y.claims.P2876[ve])||void 0===U?void 0:U.mainsnak)||void 0===z?void 0:z.datavalue)||void 0===W?void 0:W.value)||void 0===J?void 0:J.id)?fe.push(he):"novalue"===(null===(M=null===(F=Y.claims.P2302[ve])||void 0===F?void 0:F.mainsnak)||void 0===M?void 0:M.snaktype)&&(ne.constraints.unitOptional=!0);return fe.length?[4,me(fe)]:[3,4];case 3:be=te.sent(),(ge=ne.units).push.apply(ge,be),te.label=4;case 4:return ne.units=f(ne.units),[4,pe(Z,ne)];case 5:te.sent(),te.label=6;case 6:return H++,[3,2];case 7:return R.length?[4,me(ae,R)]:[3,9];case 8:te.sent(),te.label=9;case 9:return[2]}}))}))}function we(e){return ee(this,void 0,void 0,(function(){var t,n,r,a,i,o;return te(this,(function(l){switch(l.label){case 0:if(!e||!e.length)return[2];for(r in t=[],n=[],e)n.push(r);a=0,l.label=1;case 1:return a<n.length?(i=n[a],(o=e[i])?[4,de(o)]:[3,3]):[3,4];case 2:void 0===l.sent()&&t.push(o),l.label=3;case 3:return a++,[3,1];case 4:return t.length?[4,ge(t)]:[3,6];case 5:l.sent(),l.label=6;case 6:return[2]}}))}))}function xe(e){return ee(this,void 0,void 0,(function(){var t;return te(this,(function(n){switch(n.label){case 0:return[4,de(e)];case 1:return void 0!==(t=n.sent())?[3,4]:[4,ge([e])];case 2:return n.sent(),[4,de(e)];case 3:if(void 0===(t=n.sent()))return[2,void 0];n.label=4;case 4:return[2,t]}}))}))}function ke(e){return ee(this,void 0,void 0,(function(){var t;return te(this,(function(n){switch(n.label){case 0:return[4,fe(e)];case 1:return void 0!==(t=n.sent())?[3,4]:[4,be([e])];case 2:return n.sent(),[4,fe(e)];case 3:t=n.sent(),n.label=4;case 4:return[2,t]}}))}))}function $e(e){return ee(this,void 0,void 0,(function(){var t,n,r,a,i,o;return te(this,(function(l){switch(l.label){case 0:for(r in t=[],n=[],e)n.push(r);a=0,l.label=1;case 1:return a<n.length?(i=n[a],[4,fe(o=parseInt(i,10)>=0?e[i]:i)]):[3,4];case 2:l.sent()||t.push(o),l.label=3;case 3:return a++,[3,1];case 4:return t.length?[4,me(ae,t)]:[3,6];case 5:l.sent(),l.label=6;case 6:return[2]}}))}))}var Ie={az:n(45),be:n(626),de:n(837),en:n(52),hy:n(678),lt:n(39),ru:n(482),tg:n(425)};function Pe(e){var t=e;return P in Ie&&e in Ie[P]?t=Ie[P][e]:e in Ie.en&&(t=Ie.en[e]),"license-cc0"===e&&(t=t.replace("$button",Pe("export-button-label")).replace("$terms",'href="https://foundation.wikimedia.org/wiki/Terms_of_Use" class="extiw" title="wikimedia:Terms of Use"').replace("$license",'rel="nofollow" class="external text" href="https://creativecommons.org/publicdomain/zero/1.0/"')),t}function Se(e){for(var t=[],n=e.find("sup.reference a"),r=0;r<n.length;r++)for(var a=$(decodeURIComponent(n[r].hash).replace(/[!"$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g,"\\$&")+' a[rel="nofollow"]'),i=0;i<a.length;i++){var o=$(a.get(i));if(!o.attr("href").match(/(wikipedia.org|webcitation.org|archive.is)/)){var l={snaks:{P854:[{property:"P854",datatype:"url",snaktype:"value",datavalue:{type:"string",value:o.attr("href").replace(/^\/\//,"https://")}}]}};if(""!==ue("mark-checked")){var s=a.parent().find('small:contains("'+ue("mark-checked")+'")');if(s.length){var u=qe(s.first().text());u&&(l.snaks.P813=[{property:"P813",datatype:"time",snaktype:"value",datavalue:{type:"time",value:u}}])}}if(""!==ue("mark-archived")){var c=a.filter('a:contains("'+ue("mark-archived")+'")');if(c.length){var d=c.first();l.snaks.P1065=[{property:"P1065",datatype:"url",snaktype:"value",datavalue:{type:"string",value:d.attr("href").replace(/^\/\//,"https://")}}];var p=qe(d.parent().text().replace(ue("mark-archived"),"").trim());p&&(l.snaks.P2960=[{property:"P2960",datatype:"time",snaktype:"value",datavalue:{type:"time",value:p}}])}}t.push(l);break}}return t.push({snaks:ue("references")}),t}var Ce={P571:"P576",P580:"P582",P2031:"P2032"};function Ee(e,t){if(t<=8){var n=e.getFullYear();n-=n%Math.pow(10,9-t),e.setFullYear(n)}e.setUTCHours(0),e.setUTCMinutes(0),e.setUTCSeconds(0);var r=e.toISOString().replace(/\.000Z/,"Z");return t<=10&&(r=r.replace(/-\d\dT/,"-00T")),t<=9&&(r=r.replace(/-\d\d-/,"-00-")),r}function _e(e,t,n,r){var a={time:(t?"-":"+")+Ee(e,n||11),precision:n||11,timezone:0,before:0,after:0,calendarmodel:"http://www.wikidata.org/entity/Q1985727"};return(r||t||e<new Date(Date.UTC(1582,9,15)))&&(a.calendarmodel="http://www.wikidata.org/entity/Q1985786"),a}function qe(e,t){if(e){e.match(/\s\([^)]*\)\s/)&&(t=!0);var n=!1,r=(e=e.replace(/\([^)]*\)/,"").trim()).match(ue("re-bce"));if(r)n=!0,e=e.replace(r[0],"").trim();else{var a=e.match(ue("re-ce"));a&&(e=e.replace(a[0],"").trim())}var i=function(e){var t,n,r,a=e.match(ue("re-century"));return a?((r=new Date(0)).setFullYear(100*ue("centuries").indexOf(a[1].toUpperCase())+100),r.setUTCHours(0),r.setUTCMinutes(0),r.setUTCSeconds(0),{type:"value",isoDate:r,precision:7}):(a=e.match(ue("re-month-year")))?{type:"value",isoDate:r=new Date(Date.UTC(parseInt(a[2],10),K().indexOf(a[1]))),precision:10}:(a=e.match(ue("re-month-dot-year")))?{type:"value",isoDate:r=new Date(Date.UTC(parseInt(a[2],10),parseInt(a[1],10)-1)),precision:10}:(a=e.match(ue("re-text-date")))?{type:"value",isoDate:r=new Date(Date.UTC(parseInt((null===(t=a.groups)||void 0===t?void 0:t.y)||a[3],10),Z().findIndex((function(e){var t;return e.toLowerCase()===((null===(t=a.groups)||void 0===t?void 0:t.m)||a[2]).toLowerCase()})),parseInt((null===(n=a.groups)||void 0===n?void 0:n.d)||a[1],10))),precision:11}:(a=e.match(ue("re-dot-date")))?{type:"value",isoDate:r=new Date(Date.UTC(parseInt(a[3],10)<100?1900+parseInt(a[3],10):parseInt(a[3],10),parseInt(a[2],10)-1,parseInt(a[1],10))),precision:11}:(a=e.match(ue("re-iso-date")))?{type:"value",isoDate:r=new Date(Date.UTC(parseInt(a[1],10)<100?1900+parseInt(a[1],10):parseInt(a[1],10),parseInt(a[2],10)-1,parseInt(a[3],10))),precision:11}:(a=e.match(ue("re-decade")))?{type:"value",isoDate:r=new Date(Date.UTC(parseInt(a[1],10),0)),precision:8}:(a=e.match(ue("re-year")))?{type:"value",isoDate:r=new Date(Date.UTC(parseInt(a[1],10),0)),precision:9}:e.match(ue("re-present"))?{type:"novalue"}:(e.match(ue("re-unknown")),{type:"somevalue"})}(e);if("novalue"===i.type)return null;if("value"===i.type)return _e(i.isoDate,n,i.precision,t)}}function je(e,t){return{snaktype:"value",property:t,datavalue:{value:e,type:"time"},datatype:"time"}}function Oe(e){var t=[],n=e.text.toLowerCase().trim().replace(ue("re-year-postfix"),""),r=e.text.includes(ue("mark-julian"));if(n.match(/.{4,}[-−–—].{4,}/)&&Ce[e.propertyId]){var a=n.split(/[-−–—]/);if(2===a.length){var i=qe(a[0],r),o=qe(a[1],r);if(void 0!==i&&void 0!==o){var l=Se(e.$wrapper),s=A(i?je(i,e.propertyId):R(e.propertyId),l);t.push(s);var u=A(o?je(o,Ce[e.propertyId]):R(Ce[e.propertyId]),l);return t.push(u),t}}}var c=qe(n,r);if(c){var d=A(je(c,e.propertyId),l=Se(e.$wrapper));t.push(d)}return t}var Te=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}s((r=r.apply(e,t||[])).next())}))},Qe=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}};function Ne(e,t,n,r){var a=parseFloat("1e-"+t.toString()),i=parseFloat("1e"+n.toString()),o=parseFloat("1e"+r.toString());return r>=0?r<=n?(o*e).toFixed(n-r):(i*e).toFixed(0).replace(/$/,new Array(r-n+1).join("0")):r>=-t?(o*e).toFixed(n-r):(a*e).toFixed(t+n).replace(/0\./,"0."+new Array(-r-t+1).join("0"))}function Ve(e,t,n){e=e.replace(/,/g,".").replace(/[−–—]/g,"-").trim();var r=function(e,t,n){var r={amount:"0",unit:"1"},a=0;if((t=t.replace(/,/g,".").replace(/[−–—]/g,"-").trim()).match(e["re-10_3"]))a+=3;else if(t.match(e["re-10_6"]))a+=6;else if(t.match(e["re-10_9"]))a+=9;else if(t.match(e["re-10_12"]))a+=12;else{var i=/ *[*·⋅×] *10(-?\d+)/,o=t.match(i);o&&(t=t.replace(i,""),a+=parseInt(o[1]))}var l=t.split("±");0===a&&n&&(l[0]=l[0].replace(/\./g,"").trim());var s=l[0].split("-");if(1===l.length&&2===s.length&&0!==s[0].replace(/[^\d]/g,"").length&&0!==s[1].replace(/[^\d]/g,"").length){r.lowerBound=s[0].replace(/[^0-9.+-]/g,""),r.upperBound=s[1].replace(/[^0-9.+-]/g,"");var u=r.lowerBound.match(/(\d+)\.(\d+)/),c=u?u[2].length:0,d=parseFloat(r.upperBound),p=parseFloat(r.lowerBound),f=(d+p)/2,v=u?u[1].length:f.toString().length;return r.lowerBound=Ne(p,v,c,a),r.upperBound=Ne(d,v,c,a),d%2!=p%2&&(c+=1),r.amount=Ne(f,v,c,a),r}var h,b=parseFloat(l[0].replace(/[^0-9.+-]/g,""));if(isNaN(b))return null;var m=b.toString().match(/(\d+)\.(\d+)/),y=m?m[1].length:b.toString().length,g=m?m[2].length:0;return r.amount=Ne(b,y,g,a),l.length>1&&(h=parseFloat(l[1].replace(/[^0-9.+-]/g,""))),isNaN(h)||(l.length>1&&l[1].indexOf("%")>0?h=b*h/100:(y=(m=h.toString().match(/(\d+)\.(\d+)/))?m[1].length:b.toString().length,g=m?m[2].length:0),r.lowerBound=Ne(b-h,y,g,a),r.upperBound=Ne(b+h,y,g,a)),r}({"re-10_3":ue("re-10_3"),"re-10_6":ue("re-10_6"),"re-10_9":ue("re-10_9"),"re-10_12":ue("re-10_12")},e,n);if(null===r)return null;var a={mainsnak:{property:t,snaktype:"value",datatype:"quantity",datavalue:{type:"quantity",value:r}},type:"statement",id:V(),rank:"normal"};return e.match(ue("re-circa"))&&(a.qualifiers={P1480:[L("P1480","Q5727902")]}),a}function De(e,t,n){return Te(this,void 0,void 0,(function(){var r,a,i,o,l,s,u,c,d,p;return Qe(this,(function(f){switch(f.label){case 0:return Array.isArray(t)&&0===t.length?[2,[]]:[4,$e(t)];case 1:for(i in f.sent(),r=[],a=[],t)a.push(i);o=0,f.label=2;case 2:return o<a.length?(l=a[o],t.hasOwnProperty(l)?[4,ke(s=parseInt(l,10)>=0?t[l]:l)]:[3,4]):[3,5];case 3:if(!(null==(u=f.sent())?void 0:u.length))return[3,4];for(c=0;c<u.length;c++){if(d=u[c],"^"!==u[c].charAt(0)&&(d=u[c].length<5?"^".concat(d,"|[\\d\\s\\.]").concat(d,"\\.?$"):"[\\d\\s\\.]".concat(d)),e.match(new RegExp(d))){r.push("http://www.wikidata.org/entity/".concat(s));break}if("^"!==u[c].charAt(0)&&void 0!==n&&(p=new RegExp("\\s".concat(u[c],":?$")),n.match(p))){r.push("http://www.wikidata.org/entity/".concat(s));break}}f.label=4;case 4:return o++,[3,2];case 5:return[2,r]}}))}))}function Le(e,t){return Te(this,void 0,void 0,(function(){return Qe(this,(function(n){switch(n.label){case 0:return"1"===t?[2,e]:[4,ke(t.replace(/^.+\/(Q\d+)$/,"$1"))];case 1:return n.sent().forEach((function(t){e=e.replace(t,"")})),[2,e]}}))}))}function Ae(e){var t,n,r;return Te(this,void 0,void 0,(function(){var a,i,o,l,s,u,c,d,p,f,v,h,b,m,y,g,w,x,k,$,I,P,S;return Qe(this,(function(C){switch(C.label){case 0:if(a=[],i=e.$wrapper.closest("tr").find("th").first().text().trim(),o=e.text.replace(/[\u00a0\u25bc\u25b2]/g," ").replace(/\s*\(([^)]*\))/g,"").trim(),l=o.replace(ue("re-min-sec"),"$1:$2").match(/^(?:(\d+):)?(\d+):(\d+)$/)){for(s=0,u=1;u<l.length;u++)void 0!==l[u]&&(s=60*s+parseInt(l[u],10));o=s+Pe("unit-sec")}return[4,xe(e.propertyId)];case 1:return c=C.sent(),[4,De(o,(null==c?void 0:c.units)||[],i)];case 2:d=C.sent(),((null===(t=null==c?void 0:c.constraints)||void 0===t?void 0:t.unitOptional)||!1)&&d.push("1"),p=(null===(n=null==c?void 0:c.constraints)||void 0===n?void 0:n.integer)||!1,f=0,C.label=3;case 3:return f<d.length?[4,Le(o,d[f])]:[3,11];case 4:return v=C.sent(),(h=Ve(v,e.propertyId,p))?(h.mainsnak.datavalue.value.unit=d[f],(b=Se(e.$wrapper)).length&&(h.references=b),[4,nt(e.$field,h)]):[3,10];case 5:if(h=C.sent(),((null===(r=null==c?void 0:c.constraints)||void 0===r?void 0:r.qualifier)||[]).includes("P585")&&((m=e.text.match(/\(([^)]*[12]\s?\d\d\d)[,)\s]/))||(m=i.match(/\(([^)]*[12]\s?\d\d\d)[,)\s]/)),m&&(y=qe(m[1].replace(/(\d)\s(\d)/,"$1$2")))&&(h.qualifiers={P585:[{snaktype:"value",property:"P585",datavalue:{type:"time",value:y},datatype:"time"}]})),!(g=e.text.match(/\(([^)]*)/)))return[3,9];if(!(w=Ve(g[1],"P0")))return[3,9];x=w.mainsnak,k=x.datavalue.value,$=["P2076","P2077"],I=0,C.label=6;case 6:return I<$.length?[4,xe($[I])]:[3,9];case 7:P=C.sent(),1===(S=(null==P?void 0:P.units)||[]).length&&(k.unit="http://www.wikidata.org/entity/".concat(S[0]),h.qualifiers||(h.qualifiers={}),h.qualifiers[$[I]]=[{snaktype:"value",property:$[I],datavalue:{type:"quantity",value:k},datatype:"quantity"}]),C.label=8;case 8:return I++,[3,6];case 9:a.push(h),C.label=10;case 10:return f++,[3,3];case 11:return[2,a]}}))}))}function Ue(e,t){for(var n,r=0;r<Object.keys(e).length;r++){var a=qe((t.text().match(/\(([^)]*\d\d\d\d)[,)\s]/)||[])[1]);if(a&&(null===(n=e[r].qualifiers)||void 0===n?void 0:n.P585)){var i=e[r].qualifiers.P585[0].datavalue.value;a.precision<i.precision?e[r].qualifiers.P585[0].datavalue.value.precision=a.precision:a.precision>i.precision&&(a.precision=i.precision)}return!1}return!0}var ze={commonsMedia:"string","external-id":"string","geo-shape":"string","globe-coordinate":"globecoordinate",math:"string",monolingualtext:"monolingualtext","musical-notation":"string",quantity:"quantity",string:"string","tabular-data":"string",time:"time",url:"string","wikibase-form":"wikibase-entityid","wikibase-item":"wikibase-entityid","wikibase-lexeme":"wikibase-entityid","wikibase-property":"wikibase-entityid","wikibase-sense":"wikibase-entityid"},We=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}s((r=r.apply(e,t||[])).next())}))},Je=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},Fe={},Me="P580",Re="P582",Xe="P585";function Be(e){var t,n,r={},a=Oe({propertyId:Me,text:e,$field:$("<span>").text(e),$wrapper:$("<span>").text(e)});for(var i in a){var o=a[i];o.mainsnak.property===Me?t=o.mainsnak:o.mainsnak.property===Re&&(n=o.mainsnak)}return t&&n?(r.P580=[t],r.P582=[n]):t&&(t.property=Xe,r.P585=[t]),r}function Ge(e,t){return We(this,void 0,void 0,(function(){var n,r,a,i,o,l;return Je(this,(function(s){switch(s.label){case 0:return[4,de(e)];case 1:return void 0===(n=s.sent())?[2,[]]:(n.constraints.noneOfValues&&(t=t.map((function(t){var r=t.mainsnak.datavalue.value.id;return void 0===n.constraints.noneOfValues[r]?t:null===n.constraints.noneOfValues[r]?null:(t.mainsnak=L(e,n.constraints.noneOfValues[r]),t)})).filter((function(e){return null!==e}))),n.constraints.oneOfValues&&n.constraints.oneOfValues.length&&(t=t.filter((function(e){return n.constraints.oneOfValues.includes(e.mainsnak.datavalue.value.id)}))),n.constraints.valueType&&n.constraints.valueType.length?(r=t.map((function(e){return e.mainsnak.datavalue.value.id})),[4,c("SELECT DISTINCT ?item { VALUES ?item {wd:".concat(r.join(" wd:"),"}.\n\t\t\tVALUES ?class {wd:").concat(n.constraints.valueType.join(" wd:"),"}.\n\t\t\t?item wdt:P31?/wdt:P279* ?class }"))]):[3,3]);case 2:for(a=s.sent(),i=[],o=0;o<a.results.bindings.length;o++)l=a.results.bindings[o].item.value.replace(/^.+\/(Q\d+)$/,"$1"),i.push(l);t=t.filter((function(e){return i.includes(e.mainsnak.datavalue.value.id)})),s.label=3;case 3:return[2,t]}}))}))}function He(e){return We(this,void 0,void 0,(function(){var t,r,a,i,o,s,u,c,d,p,v,m,y,g,w,x,k,$,P,S,C,E,_,q,j,O,T,Q;return Je(this,(function(N){switch(N.label){case 0:for(t=n(311),r=[],a=ue("fixed-values"),i=Se(e.$wrapper),o=0;o<a.length;o++)if(s=a[o],u=new RegExp(s.search),e.$field.attr("data-wikidata-property-id")===s.property&&e.$field.text().match(u))return c=L(e.propertyId,s.item),[2,[A(c,i)]];if(d=e.$field.find("a[title][class!=image][class!=new]"),p=[],d.length)for(C=0;C<d.length;C++)(v=t(d[C])).parents("[data-wikidata-qualifier-id]").length||(m=decodeURIComponent(v.attr("href")).replace(/^.*\/wiki\//,""))&&(m=m.replace(/_/g," ").trim(),y="",d[C].nextSibling&&(g=d[C].nextSibling.textContent.match(/^['"»]?\s*\((.+)\)\s*$/))&&(y=g[1]),w={label:b(m),language:I,project:ue("project"),qualifiers:Be(y)},v.hasClass("extiw")&&(x=d[C].getAttribute("href").match(/^https:\/\/([a-z-]+)\.(wik[^.]+)\./))&&"wikimedia"!==x[2]&&(w.language=x[1],w.project=x[1]+x[2].replace("wikipedia","wiki")),v.hasClass("mw-redirect")&&p.push(m),r.push(w),t(d[C]).find("img")&&p.push(m));else if(e.$field.text().trim()){for(S in k=e.$field.text().split(/[\n,;]+/),$=function(e){var t="",n=k[e].replace(/\([^)]*\)/,(function(e){return t=e.replace(/\(\)/,""),""})).trim();if(n){var a={label:b(n),language:I,project:ue("project"),qualifiers:Be(t)};r.push(a)}},k)$(S);r=f(r)}return p.length?[4,l({action:"query",redirects:1,titles:p})]:[3,2];case 1:if((P=N.sent()).query&&P.query.redirects)for(S=0;S<P.query.redirects.length;S++)for(C=0;C<r.length;C++)E=h(r[C].label),_=h(P.query.redirects[S].from),E===_&&(r[C].redirect=P.query.redirects[S].to,r.splice(C+1,0,{label:P.query.redirects[S].to,language:I,project:ue("project")}),C++);N.label=2;case 2:return[4,J(e.propertyId,r,i)];case 3:return q=N.sent(),[4,Ge(e.propertyId,q)];case 4:return 1!==(q=N.sent()).length?[3,7]:(j=q,O=0,[4,nt(e.$field,q[0])]);case 5:return j[O]=N.sent(),T=q,Q=0,[4,tt(e.$field,q[0])];case 6:T[Q]=N.sent(),N.label=7;case 7:return[2,q]}}))}))}function Ke(e,t,n){var r;return We(this,void 0,void 0,(function(){var a,i,o,l,s,u;return Je(this,(function(c){switch(c.label){case 0:return[4,He({propertyId:e,text:n.text().trim(),$field:n.clone(),$wrapper:n})];case 1:for(a=c.sent(),Fe[e]=[],i=new Set,o=0;o<a.length;o++)for(l=a[o].mainsnak.datavalue.value,(null===(r=a[o].meta)||void 0===r?void 0:r.subclassItem)&&i.add(l.id),s=0;s<t.length;s++)u=t[s].mainsnak.datavalue.value,Fe[e].push(u.id),l.id===u.id&&i.add(l.id);return i.size<a.length?i.size>0&&"P166"===e&&a.length===t.length||Object.keys(t).length>0&&["P19","P20"].includes(e)?[2,!1]:[2,!0]:[2]}}))}))}var Ze=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}s((r=r.apply(e,t||[])).next())}))},Ye=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}};function et(e,t,n,r){return r?(void 0===e.qualifiers&&(e.qualifiers={}),void 0===e.qualifiers[t]&&(e.qualifiers[t]=[]),e.qualifiers[t].push({snaktype:"value",property:t,datatype:n,datavalue:{type:ze[n],value:r}}),e):e}function tt(e,t){var n;return Ze(this,void 0,void 0,(function(){var r,a,i,o,l;return Ye(this,(function(s){if(null===(n=t.qualifiers)||void 0===n?void 0:n.P585)return[2,t];for(a=/\(([^()]+)\)/g;r=a.exec(e.text());)if(i={propertyId:"P585",text:r[1].trim(),$field:$("<span>"),$wrapper:$("<span>")},(o=Oe(i)).length){if(o.length>1)return[2,t];l=o[0].mainsnak.datavalue.value,t=et(t,"P585","time",l);break}return[2,t]}))}))}function nt(e,t){return Ze(this,void 0,void 0,(function(){var r,a,i,o,l,s,u,c,d,p,f,v;return Ye(this,(function(h){switch(h.label){case 0:r=n(311),a=e.find("[data-wikidata-qualifier-id]"),i={},o=0,h.label=1;case 1:return o<a.length?(l=r(a[o]),s=l.data("wikidata-qualifier-id"),u=l.text().replace(/\n/g," ").trim(),[4,xe(s)]):[3,9];case 2:switch(c=h.sent(),d=null==c?void 0:c.datatype,d){case"monolingualtext":return[3,3];case"string":return[3,4];case"time":return[3,5];case"wikibase-item":return[3,6]}return[3,8];case 3:return u={text:l.text().replace(/\n/g," ").trim(),language:l.attr("lang")||I},t=et(t,s,d,u),[3,8];case 4:return u=l.text().replace(/\n/g," ").trim(),t=et(t,s,d,u),[3,8];case 5:return u=qe(u),t=et(t,s,d,u),[3,8];case 6:return void 0===i[s]&&(i[s]=[]),[4,He({propertyId:s,text:l.text().trim(),$field:l.clone(),$wrapper:l.clone()})];case 7:for(f in p=h.sent())v=p[f].mainsnak.datavalue.value,t=et(t,s,d,v);return[3,8];case 8:return o++,[3,1];case 9:return[2,t]}}))}))}function rt(e){return Ze(this,void 0,void 0,(function(){var t,n,r,a,i,o,l,s,u,c,d,p,f,v,h;return Ye(this,(function(b){switch(b.label){case 0:for(o in t=[],n=e.$field.find("img"),r=[],n.each((function(){r.push($(this))})),a=Se(e.$wrapper),i=[],r)i.push(o);l=0,b.label=1;case 1:return l<i.length?(s=i[l],u=r[s],(c=u.attr("src")).match(/upload\.wikimedia\.org\/wikipedia\/commons/)?(d=c.split("/"),(p=d.pop()).match(/(?:^|-)\d+px-/)&&(p=d.pop()),p=(p=decodeURIComponent(p)).replace(/_/g," "),f={type:"string",value:p},v={snaktype:"value",property:e.propertyId,datavalue:f,datatype:"commonsMedia"},h=A(v,a),[4,nt(e.$field,h)]):[2]):[3,4];case 2:h=b.sent(),t.push(h),b.label=3;case 3:return l++,[3,1];case 4:return[2,t]}}))}))}function at(e){return Ze(this,void 0,void 0,(function(){var t,n,r,a,i,o,l,s;return Ye(this,(function(u){switch(u.label){case 0:if(t=e.$field.data("wikidata-external-id")||e.text,n=[],"P345"===e.propertyId){if(!(t=e.$field.find("a").first().attr("href")))return[2,[]];t=t.slice(t.lastIndexOf("/",t.length-2)).replace(/\//g,"")}else t=t.toString().replace(/^ID\s/,"").replace(/\s/g,"");return[4,c("SELECT ?item WHERE { ?item wdt:".concat(e.propertyId,' "').concat(t,'" } LIMIT 1'))];case 1:return(r=u.sent()).results.bindings.length?(a=r.results.bindings[0].item.value,window.open("".concat(a,"#").concat(e.propertyId),"_blank"),[2,[]]):(i={value:t.toString(),type:"string"},o={snaktype:"value",property:e.propertyId,datavalue:i,datatype:"external-id"},l=Se(e.$wrapper),s=A(o,l),n.push(s),[2,n])}}))}))}function it(e){var t=n(311),r=n(119),a={},i=[],o=e.$field.find("span[lang]");if(o.each((function(){var e=t(this),n=e.attr("lang").trim();a[n]={text:e.text().trim(),language:n}})),!Object.values(a).length){var l=e.$field.text().trim();l&&(o=r.util.$content.find("span[lang]")).each((function(){var e=t(this);if(e.text().trim().startsWith(l)){var n=e.attr("lang").trim();a[n]={text:l,language:n}}}))}a.und&&delete a.und;var s=Se(e.$wrapper);for(var u in a){var c={value:a[u],type:"monolingualtext"},d=A({snaktype:"value",property:e.propertyId,datavalue:c,datatype:"monolingualtext"},s);d=E(d),i.push(d)}return i}function ot(e,t,n){return Ze(this,void 0,void 0,(function(){var r;return Ye(this,(function(a){if(!n||!n.length)return""===t.html().trim()?[2,!1]:[2,!(r=t.find('.image img[src*="/wikipedia/'+I+'/"]')).length||r.width()<80];switch(n[0].mainsnak.datatype){case"quantity":return[2,Ue(n,t)];case"wikibase-item":return[2,Ke(e,n,t)]}return[2,!1]}))}))}var lt=OO,st=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}s((r=r.apply(e,t||[])).next())}))},ut=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}};function ct(e,t){var n=$("<a>").attr("href",e).attr("rel","noopener noreferrer").attr("target","_blank").text("[".concat(t,"]"));return $("<sup>").addClass("infobox-export-sup").append(n)}function dt(e){var t=e.snaks.P854;if(t&&t.length){var n=t[0].datavalue.value,r=n.replace("http://","").replace("https://","").replace("www.","");return r.indexOf("/")>0&&(r=r.slice(0,r.indexOf("/"))),ct(n,r)}}function pt(e,t){return st(this,void 0,void 0,(function(){var n,r,a,i,o;return ut(this,(function(l){switch(l.label){case 0:return n=$("<span>").addClass("infobox-export-main-label").text(e),r=$("<span>").append(n),t?[4,xe(t)]:[3,2];case 1:a=l.sent(),(i=null==a?void 0:a.formatter)&&(o=$("<a>").addClass("infobox-export-external-link").attr("href",i.replace("$1",e)).attr("rel","noopener noreferrer").attr("target","_blank"),r.append(o)),l.label=2;case 2:return[2,r]}}))}))}function ft(e){return st(this,void 0,void 0,(function(){var t,n,r,a;return ut(this,(function(i){switch(i.label){case 0:return[4,W(e.id)];case 1:return t=i.sent(),n=$("<span>").addClass("infobox-export-main-label").text((null==t?void 0:t.label)||""),r=ct("https://wikidata.org/wiki/".concat(e.id),"d"),a=$("<span>").append(n,r),(null==t?void 0:t.description)&&a.append($("<span>").text(" — "+t.description)),[2,a]}}))}))}function vt(e){var t,n=$("<span>"),r="-"===e.time.charAt(0)?Pe("bce-postfix"):"";if(7===e.precision){var a=Math.floor((parseInt(e.time.slice(1,5),10)-1)/100);t=ue("centuries.".concat(a))+Pe("age-postfix")+r}else{var i={timeZone:"UTC"};e.precision>7&&(i.year="numeric"),e.precision>9&&(i.month="long"),e.precision>10&&(i.day="numeric"),t=new Date(Date.parse(e.time.slice(1).replace(/-00/g,"-01"))).toLocaleString(P,i)+(8===e.precision?Pe("decade-postfix"):"")+r}var o=e.calendarmodel.includes("1985727")?Pe("grigorian-calendar"):Pe("julian-calendar");return n.append($("<strong>").text(t)).append($("<span>").text(o).addClass("infobox-export-calendar")),n}function ht(e){return st(this,void 0,void 0,(function(){return ut(this,(function(t){if("novalue"===e.snaktype)return[2,$("<span>").addClass("infobox-export-novalue").text(Pe("value-prefix")+Pe("no-value"))];if("somevalue"===e.snaktype)return[2,$("<span>").addClass("infobox-export-somevalue").text(Pe("value-prefix")+Pe("unknown-value"))];switch(e.datatype){case"external-id":return[2,pt(e.datavalue.value,e.property)];case"time":return[2,vt(e.datavalue.value)];case"wikibase-item":return[2,ft(e.datavalue.value)]}return[2,M(e)]}))}))}var bt,mt=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}s((r=r.apply(e,t||[])).next())}))},yt=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},gt=function(e,t,n){if(n||2===arguments.length)for(var r,a=0,i=t.length;a<i;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))},wt=n(311),xt=n(119);function kt(e){return mt(this,void 0,void 0,(function(){var t,n,r,a,i,o,l,s,u,c,d,p,f,v;return yt(this,(function(h){switch(h.label){case 0:for(r in t=wt("<ul>").addClass("infobox-export-qualifiers"),n=[],e)n.push(r);a=0,h.label=1;case 1:if(!(a<n.length))return[3,7];if(i=n[a],!e.hasOwnProperty(i))return[3,6];for(l in o=[],e[i])o.push(l);s=0,h.label=2;case 2:return s<o.length?(u=o[s],c=e[i][u],[4,xe(i)]):[3,6];case 3:return d=h.sent(),p=(null==d?void 0:d.label)||i,f=wt("<span>").text(p),[4,ht(c)];case 4:v=h.sent(),t.append(wt("<li>").append(f,": ",v)),h.label=5;case 5:return s++,[3,2];case 6:return a++,[3,1];case 7:return[2,t]}}))}))}function $t(e,t){var r,a;return mt(this,void 0,void 0,(function(){var i,o,l,s,u,c,d,p,f,v,h,b;return yt(this,(function(m){switch(m.label){case 0:return i=n(366),o=i.CheckboxInputWidget,l=i.FieldLayout,s=i.FieldsetLayout,u=i.PopupButtonWidget,[4,xe(e)];case 1:c=m.sent(),d=(null==c?void 0:c.label)||e,p=wt("<a>").attr("href","https://wikidata.org/wiki/Property:".concat(e)).attr("rel","noopener noreferrer").attr("target","_blank").text(d),f=new s({label:p}),v=!1,h=function(e){var n,i,s,c,d,p,h,b,m,y,g,w,x,k,I;return yt(this,(function(P){switch(P.label){case 0:return[4,ht((n=t[e]).mainsnak)];case 1:return i=P.sent(),"deprecated"===n.rank&&i.addClass("infobox-export-deprecated"),s=n.mainsnak.property,c=!1,"value"===n.mainsnak.snaktype&&"wikibase-entityid"===n.mainsnak.datavalue.type&&Fe[s]&&Fe[s].includes(n.mainsnak.datavalue.value.id)&&(c=!0),d=void 0!==(null===(r=n.meta)||void 0===r?void 0:r.subclassItem),(p=new o({value:D(n),selected:c,disabled:c,indeterminate:c})).isDisabled()?[3,3]:[4,xe(s)];case 2:h=P.sent(),b=(null===(a=null==h?void 0:h.constraints)||void 0===a?void 0:a.unique)||"quantity"===(null==h?void 0:h.datatype),v&&b||d||(v=!0,p.setSelected(!0)),i[0].innerText.match(new RegExp(Pe("already-used-in")))&&b&&"external-id"===(null==h?void 0:h.datatype)&&p.setSelected(!1),P.label=3;case 3:return n.references&&i.append(function(e){for(var t=$("<span>"),n=0;n<e.length;n++){var r=dt(e[n]);r&&t.append(r)}return t}(n.references)),c||!d?[3,5]:[4,ft(n.meta.subclassItem)];case 4:m=P.sent(),y=wt("<div>"),Pe("more-precise-value").split(/(\$\d+)/).forEach((function(e){"$1"===e?y.append(m):y.append(e)})),g=new u({flags:"warning",framed:!1,icon:"alert",type:"warning",popup:{$content:y,align:"force-left",padded:!0}}),w=wt("<div>").css({float:"right","margin-top":"-.5em"}).append(g.$element),i.prepend(w),P.label=5;case 5:return x={label:i,align:"inline",classes:["infobox-export-statement"],helpInline:!0},n.qualifiers?(k=x,[4,kt(n.qualifiers)]):[3,7];case 6:k.help=P.sent(),P.label=7;case 7:return I=new l(p,x),f.addItems([I]),[2]}}))},b=0,m.label=2;case 2:return b<t.length?[5,h(b)]:[3,5];case 3:m.sent(),m.label=4;case 4:return b++,[3,2];case 5:return[2,f]}}))}))}function It(e){return mt(this,void 0,void 0,(function(){var t,r,a,i,o,l,s,u,c;return yt(this,(function(d){switch(d.label){case 0:for(o in t=function(e){var t={};for(var n in e){var r=e[n],a=r.mainsnak.property;void 0===t[a]&&(t[a]=[]),t[a].push(r)}return t}(e),r=Object.keys(t),a=[],i=[],r)i.push(o);l=0,d.label=1;case 1:return l<i.length?(s=i[l],[4,$t(u=r[s],t[u])]):[3,4];case 2:c=d.sent(),a.push(c),d.label=3;case 3:return l++,[3,1];case 4:return[2,new(0,n(366).PanelLayout)({padded:!0,expanded:!1,content:gt(gt([],a,!0),[wt("<hr>").css("margin-top","1.5em"),wt("<p>").text(Pe("export-confirmation")),wt("<p>").css("font-size","85%").html(Pe("license-cc0"))],!1)})]}}))}))}function Pt(e){return mt(this,void 0,void 0,(function(){var t,r,a,i,o,l,s,u,c,d,p;return yt(this,(function(v){switch(v.label){case 0:t="#c8ccd1",r=[],a=e.length,v.label=1;case 1:return e.length?(i=e.shift(),(o=i.meta.$checkbox).prop("disabled",!0),l=i.meta.$checkbox.parent().find("span"),p=i.mainsnak.property,r.push(p),[4,F(i)]):[3,3];case 2:if(s=v.sent())throw u=n(366).MessageWidget,c=new u({type:"error",label:Pe("value-failed")+": "+s,showClose:!0}),o.prop("disabled",!1),l.closest(".oo-ui-labelElement").append(c.$element),s;return l.css({"background-color":t,"border-color":t}),[3,1];case 3:for(d in r=f(r))p=r[d],wt(".no-wikidata[data-wikidata-property-id=".concat(p,"]")).removeClass("no-wikidata").off("dblclick");return[4,g(450)];case 4:return v.sent(),xt.loader.using("mediawiki.action.view.postEdit",(function(){xt.hook("postEdit").fire({message:Pe(a>1?"all-values-saved":"value-saved")})})),[2]}}))}))}function St(e){return mt(this,void 0,void 0,(function(){var t,r,a,i,o,l,s;return yt(this,(function(u){switch(u.label){case 0:return e&&e.length?(t=n(366),r=t.Process,a=t.ProcessDialog,i=t.WindowManager,o=function(e){o.super.call(this,e)},(0,lt.inheritClass)(o,a),o.static.name=Pe("window-header"),o.static.title=wt("<span>").attr("title",Pe("version-string").replace("$1",ue("version"))).text(o.static.name),o.static.actions=[{action:"export",label:Pe("export-button-label"),flags:["primary","progressive"]},{label:Pe("cancel-button-label"),flags:["safe"]}],[4,It(e)]):(xt.notify(Pe("parsing-error"),{type:"error",tag:"wikidataInfoboxExport-error"}),[2]);case 1:return l=u.sent(),o.prototype.initialize=function(){o.super.prototype.initialize.apply(this,arguments),this.content=l,this.$body.append(this.content.$element),this.$body.css("overflow-x","hidden"),this.$body.css("overflow-y","auto")},o.prototype.getActionProcess=function(e){var t=this;return"export"===e?new r((function(){return mt(this,void 0,void 0,(function(){var n,r;return yt(this,(function(a){switch(a.label){case 0:(n=t.actions.get({actions:"export"})[0]).setDisabled(!0),r=function(e){var t=e.$element.find("input[type=checkbox]:checked:enabled"),n=[];return t.each((function(e,t){var r=wt(t),a=r.attr("value"),i=JSON.parse(a);i.meta={$checkbox:r},n.push(i)})),n}(l),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,Pt(r)];case 2:return a.sent(),[3,4];case 3:return a.sent(),n.setDisabled(!1),[2];case 4:return t.close({action:e}),t.getManager().destroy(),[2]}}))}))}),this):(t.close({action:e}),t.getManager().destroy(),o.super.prototype.getActionProcess.call(this,e))},bt=new i,wt("body").append(bt.$element),s=new o({classes:["infobox-export-dialog"]}),bt.addWindows([s]),bt.openWindow(s),[2]}}))}))}var Ct=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}s((r=r.apply(e,t||[])).next())}))},Et=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},_t=/^https?:\/\/web\.archive\.org\/web\/(\d{4})(\d{2})(\d{2})\d+\//;function qt(e,t){return Ct(this,void 0,void 0,(function(){var n,r,a,i;return Et(this,(function(o){switch(o.label){case 0:return n={},t.$field.find("span[lang]").each((function(){n[$(this).attr("lang")]=!0})),t.$field.find("span[data-lang]").each((function(){n[$(this).data("lang")]=!0})),Object.keys(n).length?[4,c('SELECT ?item WHERE { ?item wdt:P218 ?value . FILTER ( ?value IN ("'.concat(Object.keys(n).join('","'),'") ) }'))]:[2];case 1:for(r=o.sent(),a=0;a<r.results.bindings.length;a++)i={id:r.results.bindings[a].item.value.replace(/^.+\/(Q\d+)$/,"$1")},et(e,"P407","wikibase-item",i);return[2]}}))}))}function jt(e){return Ct(this,void 0,void 0,(function(){var t,n,r;return Et(this,(function(a){switch(a.label){case 0:return t=[],n=e.$field.find("a[href]"),r=Se(e.$wrapper),n.each((function(){var n,a=$(this).attr("href").replace(/^\/\//,"https://");a.match(_t)&&(n=a,a=a.replace(_t,""));var i={type:"string",value:a},o=A({snaktype:"value",property:e.propertyId,datavalue:i,datatype:"url"},r);n&&(o.rank="deprecated",function(e,t){Ct(this,void 0,void 0,(function(){var n,r;return Et(this,(function(a){return et(e,"P2241","wikibase-item",{id:"Q1193907"}),et(e,"P1065","url",t),4===(n=t.match(_t)).length&&(r=new Date(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)),et(e,"P2960","time",_e(r))),[2]}))}))}(o,n)),t.push(o)})),1!==t.length?[3,2]:[4,qt(t[0],e)];case 1:a.sent(),a.label=2;case 2:return[2,t]}}))}))}var Ot=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}s((r=r.apply(e,t||[])).next())}))},Tt=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}};function Qt(e){var t;return Ot(this,void 0,void 0,(function(){var n,r,a,i,o,l,s,u,c,d,p,f,v,h;return Tt(this,(function(b){switch(b.label){case 0:if(n=[],(r=e.$field.data("wikidata-external-id"))||(r=e.text),a=r.toString().trim().split(/[\n,;]+/),"P373"===e.propertyId){if(void 0===(i=function(e){var t=e.find('a[class="extiw"]').first();if(t.length){var n=t.attr("href"),r=n.slice(n.indexOf("/wiki/")+6).replace(/_/g," ").replace(/^[Cc]ategory:/,"").replace(/\?.*$/,"");return decodeURIComponent(r)}}(e.$field)))return[2,[]];a=[i]}for(s in o=Se(e.$wrapper),l=[],a)l.push(s);u=0,b.label=1;case 1:return u<l.length?(c=l[u],d=a[c].replace(/\n/g," ").trim(),"P473"===e.propertyId&&(d=d.replace(/^\+\d+\s+(\d[\d- ]*)$/,"$1")),[4,de(e.propertyId)]):[3,4];case 2:if(p=b.sent(),(null===(t=null==p?void 0:p.constraints)||void 0===t?void 0:t.format)&&!d.match(new RegExp("^"+p.constraints.format+"$")))return[3,3];d&&(f={value:d,type:"string"},v={snaktype:"value",property:e.propertyId,datavalue:f,datatype:"string"},h=A(v,o),n.push(h)),b.label=3;case 3:return u++,[3,1];case 4:return[2,n]}}))}))}var Nt=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}s((r=r.apply(e,t||[])).next())}))},Vt=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}};function Dt(e,t,n,r,a,i,o,l,s){var u=parseFloat(e)+parseFloat(t)/60+parseFloat(n)/3600;"S"===r.toUpperCase()&&(u*=-1);var c=parseFloat(a)+parseFloat(i)/60+parseFloat(o)/3600;return"S"===l.toUpperCase()&&(c*=-1),[u,c,s]}function Lt(e){return Nt(this,void 0,void 0,(function(){var t;return Vt(this,(function(n){return t=[],e.$field.find("a").each((function(){var n,r,a,i=$(this),o=null,l=null,s=1/3600;if(i.attr("data-lat")&&i.attr("data-lon"))o=parseFloat(i.attr("data-lat")),l=parseFloat(i.attr("data-lon"));else{var u=i.attr("href");u&&(u.includes("geohack.toolforge.org")||u.includes("tools.wmflabs.org/geohack"))&&(o=(n=(a=(r=u).match(/params=(\d{1,2})_(\d{1,2})_(\d{1,2})_([NS])_(\d{1,2})_(\d{1,2})_(\d{1,2})_([WE])/i))?Dt(a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],1/3600):(a=r.match(/params=(\d{1,2})_(\d{1,2})_([\d.]+)_([NS])_(\d{1,2})_(\d{1,2})_([\d.]+)_([WE])/i))?Dt(a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],1/36e3):(a=r.match(/params=(\d{1,2})_(\d{1,2})_([NS])_(\d{1,2})_(\d{1,2})_([WE])/i))?Dt(a[1],a[2],"0",a[3],a[4],a[5],"0",a[6],1/60):(a=r.match(/params=(\d{1,2})_([\d.]+)_([NS])_(\d{1,2})_([\d.]+)_([WE])/i))?Dt(a[1],a[2],"0",a[3],a[4],a[5],"0",a[6],1/600):(a=r.match(/params=([\d.]+)_([NS])_([\d.]+)_([WE])/i))?Dt(a[1],"0","0",a[2],a[3],"0","0",a[4],1/3600):(a=r.match(/params=(-?[\d.]+)_(-?[\d.]+)/i))?Dt(a[1],"0","0","N",a[2],"0","0","W",1/3600):[null,null])[0],l=n[1],s=n[2])}if(o&&l){var c=function(e,t,n){return{latitude:e,longitude:t,altitude:null,precision:n,globe:"http://www.wikidata.org/entity/Q2"}}(o,l,s),d=function(e,t){return{snaktype:"value",property:t,datavalue:{value:e,type:"globecoordinate"},datatype:"globe-coordinate"}}(c,e.propertyId),p=A(d,Se($("<span>")));return t.push(p),!1}})),[2,t]}))}))}var At=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}s((r=r.apply(e,t||[])).next())}))},Ut=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},zt=n(311),Wt=n(119),Jt=["P2076","P2077"];function Ft(e){return At(this,void 0,void 0,(function(){var t,n,r,a;return Ut(this,(function(i){switch(i.label){case 0:return[4,xe(t=e.data("wikidata-property-id"))];case 1:if(void 0===(n=i.sent()))return Wt.notify(Pe("no-property-data").replace("$1",t),{type:"error",tag:"wikidataInfoboxExport-error"}),[2,[]];switch((r={propertyId:t,text:"",$field:e.clone(),$wrapper:e}).$field.find("sup.reference").remove(),r.$field.find(".printonly").remove(),r.$field.find('[style*="display:none"]').remove(),r.text=r.$field.text().trim(),1===(a=e.closest("tr")).length&&1===a.find("[data-wikidata-property-id]").length&&(r.$wrapper=a.clone()),n.datatype){case"commonsMedia":return[2,rt(r)];case"external-id":return[2,at(r)];case"globe-coordinate":return[2,Lt(r)];case"monolingualtext":return[2,it(r)];case"quantity":return[2,Ae(r)];case"string":return[2,Qt(r)];case"time":return[2,Oe(r)];case"wikibase-item":return[2,He(r)];case"url":return[2,jt(r)]}return Wt.notify(Pe("unknown-datatype").replace("$1",n.datatype),{type:"error",tag:"wikidataInfoboxExport-error"}),[2,[]]}}))}))}function Mt(){return At(this,void 0,void 0,(function(){var e,t,n,r,a,i,o,l;return Ut(this,(function(s){switch(s.label){case 0:return(e=zt(this)).hasClass("no-wikidata-loader")||e.parents(".no-wikidata[data-wikidata-property-id]").length?[2]:(e.addClass("infobox-export-loader"),[4,Ft(e)]);case 1:for(a in t=s.sent(),n=e.find(".no-wikidata[data-wikidata-property-id]").toArray(),r=[],n)r.push(a);i=0,s.label=2;case 2:return i<r.length?(o=r[i],[4,Ft(zt(n[o]))]):[3,5];case 3:l=s.sent(),t.push.apply(t,l),s.label=4;case 4:return i++,[3,2];case 5:return[4,St(t)];case 6:return s.sent(),e.removeClass("infobox-export-loader"),[2]}}))}))}function Rt(){var e,t;return At(this,void 0,void 0,(function(){var n;return Ut(this,(function(r){switch(r.label){case 0:return[4,c('SELECT ?wiki WHERE { ?wiki wdt:P31/wdt:P279* wd:Q33120876 . ?wiki wdt:P856 ?site . FILTER REGEX(STR(?site), "https://'.concat(location.host,'/") }'))];case 1:return n=r.sent(),(null===(t=null===(e=null==n?void 0:n.results)||void 0===e?void 0:e.bindings)||void 0===t?void 0:t.length)?(ce("references.P143",[{property:"P143",snaktype:"value",datavalue:{type:"wikibase-entityid",value:{id:n.results.bindings[0].wiki.value.replace("http://www.wikidata.org/entity/","")}}}]),ce("references.P4656",[{property:"P4656",datatype:"url",snaktype:"value",datavalue:{type:"string",value:"https://"+location.host+"/?oldid="+Wt.config.get("wgRevisionId")}}]),function(){var e=ne;for(var t in e){var n=ne[t];n instanceof RegExp&&(e[t]=n.source)}localStorage.setItem(le,JSON.stringify(e))}(),[2]):[2]}}))}))}var Xt=n(311),Bt=n(119);Xt.when(Xt.ready,Bt.loader.using(["mediawiki.api","mediawiki.ForeignApi","mediawiki.util","oojs-ui-core","oojs-ui-widgets","oojs-ui-windows"])).done((function(){return At(this,void 0,void 0,(function(){var e,t,r,a;return Ut(this,(function(i){switch(i.label){case 0:return null===Wt.config.get("wgWikibaseItemId")||"view"!==Wt.config.get("wgAction")||null!==Wt.util.getParamValue("veaction")||window.ve&&window.ve.init||Wt.config.get("wgNamespaceNumber")?[2]:(function(){var e;try{e=JSON.parse(localStorage.getItem(le))}catch(e){}for(var t in e)t.match(/^re-/)&&"string"==typeof e[t]&&(e[t]=new RegExp(e[t]));e&&e.version===ue("version")&&(ne=e),void 0===ue("properties")&&(ne.properties={})}(),[4,Rt()]);case 1:return i.sent(),[4,Y()];case 2:return i.sent(),[4,s({action:"wbgetentities",props:["info","claims"],ids:Wt.config.get("wgWikibaseItemId")})];case 3:if(!(e=i.sent()).success)return[2];for(r in e.entities){if(-1==r)return[2];t=e.entities[r].claims,o=e.entities[r].lastrevid,_=o;break}return t?(zt(".infobox:not(.vertical-navbox):not([data-from]) .no-wikidata").each((function(){return At(this,void 0,void 0,(function(){var e,n;return Ut(this,(function(r){switch(r.label){case 0:return e=zt(this),n=e.attr("data-wikidata-property-id"),e.removeClass("no-wikidata").off("dblclick"),Jt.push(n),[4,ot(n,e,t[n])];case 1:return r.sent()&&(e.addClass("no-wikidata"),t[n]&&t[n].length&&e.addClass("partial-wikidata"),e.on("dblclick",Mt)),e.closest("tr").find("[data-wikidata-qualifier-id]").each((function(){Jt.push(zt(this).data("wikidata-qualifier-id"))})),[2]}}))}))})),a=n(389).toString(),Wt.util.addCSS(a),[4,we(Jt)]):[2];case 4:return i.sent(),[2]}var o}))}))}))}()}();