“MediaWiki:Gadget-DotsSyntaxHighlighter.js”的版本间的差异

计算器百科,非营利的计算器专业知识百科。
跳到导航 跳到搜索
(安装小工具 DotsSyntaxHighlighter)
 
(origin server will offline now, change to here)
第1行: 第1行:
mw.loader.load('//vps.caoyue.com.cn/DotsSyntaxHighlighter.js');
+
!function(){"use strict";function e(e){return new RegExp("("+e+")\n*|"+b,"gm")}function t(e){return new RegExp("(</"+e+">)\n*|"+x,"gm")}function i(){function t(e,t){t!=a&&(C+="'}#s"+x,b?(C+=":before{",b=!1):(C+=":after{",b=!0,++x),t&&(C+="background-color:"+t+";"),C+="content:'",a=t),C+=e}function o(i,n,r,a){var g;for(n.lastIndex=l;g=n.exec(s);n.lastIndex=l){if(g[1])return t(s.substring(l,n.lastIndex),i),void(l=n.lastIndex);var h=n.lastIndex-g[0].length;switch(h>l&&t(s.substring(l,h),i),l=n.lastIndex,g[0].charAt(0)){case"[":"["==g[0].charAt(1)?(t("[[",syntaxHighlighterConfig.wikilinkColor||i),o(syntaxHighlighterConfig.wikilinkColor||i,H)):(t(g[0],syntaxHighlighterConfig.externalLinkColor||i),o(syntaxHighlighterConfig.externalLinkColor||i,v));break;case"{":"{"==g[0].charAt(1)?3==g[0].length?(t("{{{",syntaxHighlighterConfig.parameterColor||i),o(syntaxHighlighterConfig.parameterColor||i,k)):(t("{{",syntaxHighlighterConfig.templateColor||i),o(syntaxHighlighterConfig.templateColor||i,E)):(t("{|",syntaxHighlighterConfig.tableColor||i),o(syntaxHighlighterConfig.tableColor||i,z));break;case"<":if("!"==g[0].charAt(1)){t(g[0],syntaxHighlighterConfig.commentColor||i);break}var u=s.indexOf(">",l)+1;if(0==u){t("<",i),l=l-g[0].length+1;break}if("/"==s.charAt(u-2))t(s.substring(l-g[0].length,u),syntaxHighlighterConfig.tagColor||i),l=u;else{var d=g[0].substring(1);if(f.test(d)){var m="</"+d+">",c=s.indexOf(m,l);-1==c?c=s.length:c+=m.length,t(s.substring(l-g[0].length,c),syntaxHighlighterConfig.tagColor||i),l=c}else p.test(d)?(t(s.substring(l-g[0].length,u),syntaxHighlighterConfig.tagColor||i),l=u,o(syntaxHighlighterConfig.tagColor||i,L[d])):(t(s.substring(l-g[0].length,u),syntaxHighlighterConfig.tagColor||i),l=u,T[d]||(T[d]=e("</"+d+">")),o(syntaxHighlighterConfig.tagColor||i,T[d]))}break;case"=":/[^=]=+$/.test(s.substring(l,s.indexOf("\n",l)))?(t("=",syntaxHighlighterConfig.headingColor||i),o(syntaxHighlighterConfig.headingColor||i,S)):t("=",i);break;case"*":case"#":case":":t(g[0],syntaxHighlighterConfig.listOrIndentColor||i);break;case";":t(";",syntaxHighlighterConfig.headingColor||i),o(syntaxHighlighterConfig.headingColor||i,S);break;case"-":t(g[0],syntaxHighlighterConfig.hrColor||i);break;case"\\":if(t(g[0],syntaxHighlighterConfig.boldOrItalicColor||i),6==g[0].length)if(r){if(!a)return;r=!1}else a?r=!0:o(syntaxHighlighterConfig.boldOrItalicColor||i,w,!0,!1);else if(a){if(!r)return;a=!1}else r?a=!0:o(syntaxHighlighterConfig.boldOrItalicColor||i,w,!1,!0);break;case"&":t(g[0],syntaxHighlighterConfig.entityColor||i);break;case"~":t(g[0],syntaxHighlighterConfig.signatureColor||i);break;default:t(g[0],syntaxHighlighterConfig.externalLinkColor||i)}}}d=h.value;var a,s=d.replace(/['\\]/g,"\\$&")+"\n",l=0,C="",x=0,b=!0,$=Date.now();o("",w),l<s.length&&t(s.substring(l),"");var F=Date.now();if(F-$>syntaxHighlighterConfig.timeout){clearInterval(m),h.removeEventListener("input",i),h.removeEventListener("scroll",n),h.removeEventListener("scroll",r),c.disconnect(),u.nodeValue="";var I={ca:'S\'ha desactivat el remarcar de sintaxi en aquesta pàgina perquè ha trigat massa temps. El temps màxim permès per a remarcar és $1ms, i el vostre ordinador ha trigat $2ms. Proveu tancar algunes pestanyes i programes i fer clic en "Mostra la previsualització" o "Mostra els canvis". Si no funciona això, proveu un altre navegador web, i si això no funciona, proveu un ordinador més ràpid.',de:'Die Syntaxhervorhebung wurde auf dieser Seite deaktiviert, da diese zu lange gedauert hat. Die maximal erlaubte Zeit zur Hervorhebung beträgt $1ms und dein Computer benötigte $2ms. Versuche einige Tabs und Programme zu schließen und klicke "Vorschau zeigen" oder "Änderungen zeigen". Wenn das nicht funktioniert, probiere einen anderen Webbrowser und wenn immer noch nicht, probiere einen schnelleren Computer.',el:"Η έμφαση σύνταξης έχει απενεργοποιηθεί σε αυτήν τη σελίδα γιατί αργούσε πολύ. Ο μέγιστος επιτρεπτός χρόνος για την έμφαση σύνταξης είναι $1ms και ο υπολογιστής σας έκανε $2ms. Δοκιμάστε να κλείσετε μερικές καρτέλες και προγράμματα και να κάνετε κλικ στην «Εμφάνιση προεπισκόπησης» ή στην «Εμφάνιση αλλαγών». Αν αυτό δεν δουλέψει, δοκιμάστε έναν διαφορετικό περιηγητή και αν ούτε αυτό δουλέψει, δοκιμάστε έναν ταχύτερο υπολογιστή.",en:'Syntax highlighting on this page was disabled because it took too long. The maximum allowed highlighting time is $1ms, and your computer took $2ms. Try closing some tabs and programs and clicking "Show preview" or "Show changes". If that doesn\'t work, try a different web browser, and if that doesn\'t work, try a faster computer.',es:'Se desactivó el resaltar de sintaxis en esta página porque tardó demasiado. El tiempo máximo permitido para resaltar es $1ms, y tu ordenador tardó $2ms. Prueba cerrar algunas pestañas y programas y hacer clic en "Mostrar previsualización" o "Mostrar cambios". Si no funciona esto, prueba otro navegador web, y si eso no funciona, prueba un ordenador más rápido.',fa:"از آنجایی که زمان زیادی صرف آن می‌شد، برجسته‌سازی نحو در این صفحه غیرفعال شده است. بیشینهٔ زمان برجسته‌سازی برای ابزار $1ms تعریف شده در حالی که رایانهٔ شما $2ms زمان نیاز داشت. می‌توانید بستن برخی سربرگ‌ها و برنامه‌ها و سپس کلیک‌کردن دکمهٔ «پیش‌نمایش» یا «نمایش تغییرات» را بیازمایید. اگر جواب نداد مرورگر دیگری را امتحان کنید؛ و اگر باز هم جواب نداد، رایانهٔ سریع‌تری را بیازمایید.",fr:'La coloration syntaxique a été désactivée sur cette page en raison d\'un temps de chargement trop important ($2ms). Le temps maximum autorisé est $1ms. Vous pouvez essayer de fermer certains onglets et programmes et cliquez sur "Prévisualisation" ou "Voir mes modifications". Si cela ne fonctionne pas, essayez un autre navigateur web, et si cela ne fonctionne toujours pas, essayez un ordinateur plus rapide.',io:'Sintaxo-hailaitar en ca pagino esis nekapabligata pro ke konsumis tro multa tempo. La maxima permisata hailaitala tempo es $1ms, e tua ordinatro konsumis $2ms. Probez klozar kelka tabi e programi e kliktar "Previdar" o "Montrez chanji". Se to ne funcionas, probez altra brauzero, e se to ne funcionas, probez plu rapida ordinatro.',pt:'O marcador de sintaxe foi desativado nesta pagina porque demorou demais. O tempo máximo permitido para marcar e $1ms, e seu computador demorou $2ms. Tenta sair de alguns programas e clique em "Mostrar previsão" ou "Mostrar alterações". Se isso não funciona, tenta usar uma outra navegador web, e se ainda não funciona, procura um computador mais rápido.',ru:"Подсветка синтаксиса на этой странице была отключена, так как она очень длинная. Максимально допустимое время отклика - $1мс, а ваш компьютер использует $2мс. Попробуйте закрыть несколько вкладок и программ, затем щёлкнуть по кнопке «Предварительный просмотр» или «Внесённые изменения». Если гаджет по-прежнему не работает, попробуйте использовать другой браузер, и если он также не работает, то попробуйте использовать более быстрый компьютер."},A=mw.config.get("wgUserLanguage");return I=I[A]||I[A.substring(0,A.indexOf("-"))]||I.en,h.style.backgroundColor="",h.style.marginTop=g.style.marginTop,g.removeAttribute("dir"),g.removeAttribute("lang"),g.setAttribute("style","color:red; font-size:small"),void(g.textContent=I.replace("$1",syntaxHighlighterConfig.timeout).replace("$2",F-$))}if(x>y){var O=document.createDocumentFragment();do O.appendChild(document.createElement("span")).id="s"+ ++y;while(x>y);g.appendChild(O)}u.nodeValue=C.substring(2).replace(/\n/g,"\\A ")+"'}"}function n(){g.scrollLeft=h.scrollLeft}function r(){g.scrollTop=h.scrollTop}function o(){g.dir=h.dir}function a(){h.value!=d&&i(),h.scrollLeft!=g.scrollLeft&&n(),h.scrollTop!=g.scrollTop&&r(),h.offsetHeight!=g.offsetHeight&&(g.style.height=h.offsetHeight+"px")}function s(){function e(e,t){if("undefined"==typeof syntaxHighlighterConfig[e]&&(syntaxHighlighterConfig[e]=syntaxHighlighterSiteConfig[e]),"normal"==syntaxHighlighterConfig[e])syntaxHighlighterConfig[e]=t;else{if("undefined"!=typeof syntaxHighlighterConfig[e])return;syntaxHighlighterConfig[e]="undefined"!=typeof syntaxHighlighterConfig.defaultColor?syntaxHighlighterConfig.defaultColor:t}}function s(e){return new RegExp("^(?:"+e.map(function(e){return e.replace(/([\\{}()|.?*+\-\^$\[\]])/g,"\\$1")}).join("|")+")$")}window.syntaxHighlighterSiteConfig=window.syntaxHighlighterSiteConfig||{},window.syntaxHighlighterConfig=window.syntaxHighlighterConfig||{},e("boldOrItalicColor","#EEE"),e("commentColor","#EFE"),e("entityColor","#DFD"),e("externalLinkColor","#EFF"),e("headingColor","#EEE"),e("hrColor","#EEE"),e("listOrIndentColor","#EFE"),e("parameterColor","#FC6"),e("signatureColor","#FC6"),e("tagColor","#FEF"),e("tableColor","#FFC"),e("templateColor","#FFC"),e("wikilinkColor","#EEF"),syntaxHighlighterConfig.nowikiTags=syntaxHighlighterConfig.nowikiTags||syntaxHighlighterSiteConfig.nowikiTags||["nowiki","pre"],syntaxHighlighterConfig.sourceTags=syntaxHighlighterConfig.sourceTags||syntaxHighlighterSiteConfig.sourceTags||["math","syntaxhighlight","source","timeline","hiero"],syntaxHighlighterConfig.timeout=syntaxHighlighterConfig.timeout||syntaxHighlighterSiteConfig.timeout||50,p=s(syntaxHighlighterConfig.nowikiTags),f=s(syntaxHighlighterConfig.sourceTags),syntaxHighlighterConfig.nowikiTags.forEach(function(e){L[e]=t(e)}),g=document.createElement("div"),h=document.getElementById("wpTextbox1");var l=document.createElement("style");u=l.appendChild(document.createTextNode(""));var d=window.getComputedStyle(h);g.dir=h.dir,g.lang=h.lang,g.style.backgroundColor=d.backgroundColor,g.style.border="1px solid transparent",g.style.boxSizing="border-box",g.style.clear=d.clear,g.style.color="transparent",g.style.fontFamily=d.fontFamily,g.style.fontSize=d.fontSize,g.style.lineHeight="normal",g.style.marginBottom="0",g.style.marginLeft="0",g.style.marginRight="0",g.style.marginTop=d.marginTop,g.style.overflowX="auto",g.style.overflowY="scroll",g.style.resize="vertical"==d.resize||"both"==d.resize?"vertical":"none",g.style.tabSize=d.tabSize,g.style.whiteSpace="pre-wrap",g.style.width="100%",g.style.wordWrap="normal",h.style.backgroundColor="transparent",h.style.border="1px inset gray",h.style.boxSizing="border-box",h.style.fontSize=d.fontSize,h.style.lineHeight="normal",h.style.left="0",h.style.marginBottom=d.marginBottom,h.style.marginLeft="0",h.style.marginRight="0",h.style.overflowX="auto",h.style.overflowY="scroll",h.style.padding="0",h.style.resize=g.style.resize,h.style.top="0",h.style.width="100%",h.style.wordWrap="normal",g.style.height=h.offsetHeight+"px",h.style.height=g.style.height,h.style.marginTop=-h.offsetHeight+"px",h.parentNode.insertBefore(g,h),document.head.appendChild(l),h.addEventListener("input",i),h.addEventListener("scroll",n),h.addEventListener("scroll",r),c=new MutationObserver(o),c.observe(h,{attributes:!0}),m=setInterval(a,500),i()}function l(){setTimeout(s,0)}var g,h,u,d,m,c,f,p,y=-1,C=mw.config.get("wgUrlProtocols"),x="&(?:(?:n(?:bsp|dash)|m(?:dash|inus)|lt|e[mn]sp|thinsp|amp|quot|gt|shy|zwn?j|lrm|rlm|Alpha|Beta|Epsilon|Zeta|Eta|Iota|Kappa|[Mm]u|micro|Nu|[Oo]micron|[Rr]ho|Tau|Upsilon|Chi)|#x[0-9a-fA-F]+);\n*",b="\\[(?:\\[|(?:"+C+"))|\\{(?:\\{\\{?|\\|)|<(?:[:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�][:\\wÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�-\\.·̀-ͯ‿-‿-⁀]*(?=/?>| |\n)|!--[^]*?-->\n*)|(?:"+C.replace("|\\/\\/","")+")[^\\s\"<>[\\]{-}]*[^\\s\",\\.:;<>[\\]{-}]\n*|^(?:=|[*#:;]+\n*|-{4,}\n*)|\\\\'\\\\'(?:\\\\')?|~{3,5}\n*|"+x,w=new RegExp(b,"gm"),H=e("]][a-zA-Z]*"),v=e("]"),k=e("}}}"),E=e("}}"),z=e("\\|}"),S=e("\n"),T={},L={},F=mw.config.get("wgAction"),I=$.client.profile().layout;"edit"!=F&&"submit"!=F||"wikitext"!=mw.config.get("wgPageContentModel")||"trident"==I||"edge"==I||("complete"==document.readyState?l():$(window).load(l))}();

2017年6月24日 (六) 23:48的版本

!function(){"use strict";function e(e){return new RegExp("("+e+")\n*|"+b,"gm")}function t(e){return new RegExp("(</"+e+">)\n*|"+x,"gm")}function i(){function t(e,t){t!=a&&(C+="'}#s"+x,b?(C+=":before{",b=!1):(C+=":after{",b=!0,++x),t&&(C+="background-color:"+t+";"),C+="content:'",a=t),C+=e}function o(i,n,r,a){var g;for(n.lastIndex=l;g=n.exec(s);n.lastIndex=l){if(g[1])return t(s.substring(l,n.lastIndex),i),void(l=n.lastIndex);var h=n.lastIndex-g[0].length;switch(h>l&&t(s.substring(l,h),i),l=n.lastIndex,g[0].charAt(0)){case"[":"["==g[0].charAt(1)?(t("[[",syntaxHighlighterConfig.wikilinkColor||i),o(syntaxHighlighterConfig.wikilinkColor||i,H)):(t(g[0],syntaxHighlighterConfig.externalLinkColor||i),o(syntaxHighlighterConfig.externalLinkColor||i,v));break;case"{":"{"==g[0].charAt(1)?3==g[0].length?(t("{{{",syntaxHighlighterConfig.parameterColor||i),o(syntaxHighlighterConfig.parameterColor||i,k)):(t("{{",syntaxHighlighterConfig.templateColor||i),o(syntaxHighlighterConfig.templateColor||i,E)):(t("{|",syntaxHighlighterConfig.tableColor||i),o(syntaxHighlighterConfig.tableColor||i,z));break;case"<":if("!"==g[0].charAt(1)){t(g[0],syntaxHighlighterConfig.commentColor||i);break}var u=s.indexOf(">",l)+1;if(0==u){t("<",i),l=l-g[0].length+1;break}if("/"==s.charAt(u-2))t(s.substring(l-g[0].length,u),syntaxHighlighterConfig.tagColor||i),l=u;else{var d=g[0].substring(1);if(f.test(d)){var m="</"+d+">",c=s.indexOf(m,l);-1==c?c=s.length:c+=m.length,t(s.substring(l-g[0].length,c),syntaxHighlighterConfig.tagColor||i),l=c}else p.test(d)?(t(s.substring(l-g[0].length,u),syntaxHighlighterConfig.tagColor||i),l=u,o(syntaxHighlighterConfig.tagColor||i,L[d])):(t(s.substring(l-g[0].length,u),syntaxHighlighterConfig.tagColor||i),l=u,T[d]||(T[d]=e("</"+d+">")),o(syntaxHighlighterConfig.tagColor||i,T[d]))}break;case"=":/[^=]=+$/.test(s.substring(l,s.indexOf("\n",l)))?(t("=",syntaxHighlighterConfig.headingColor||i),o(syntaxHighlighterConfig.headingColor||i,S)):t("=",i);break;case"*":case"#":case":":t(g[0],syntaxHighlighterConfig.listOrIndentColor||i);break;case";":t(";",syntaxHighlighterConfig.headingColor||i),o(syntaxHighlighterConfig.headingColor||i,S);break;case"-":t(g[0],syntaxHighlighterConfig.hrColor||i);break;case"\\":if(t(g[0],syntaxHighlighterConfig.boldOrItalicColor||i),6==g[0].length)if(r){if(!a)return;r=!1}else a?r=!0:o(syntaxHighlighterConfig.boldOrItalicColor||i,w,!0,!1);else if(a){if(!r)return;a=!1}else r?a=!0:o(syntaxHighlighterConfig.boldOrItalicColor||i,w,!1,!0);break;case"&":t(g[0],syntaxHighlighterConfig.entityColor||i);break;case"~":t(g[0],syntaxHighlighterConfig.signatureColor||i);break;default:t(g[0],syntaxHighlighterConfig.externalLinkColor||i)}}}d=h.value;var a,s=d.replace(/['\\]/g,"\\$&")+"\n",l=0,C="",x=0,b=!0,$=Date.now();o("",w),l<s.length&&t(s.substring(l),"");var F=Date.now();if(F-$>syntaxHighlighterConfig.timeout){clearInterval(m),h.removeEventListener("input",i),h.removeEventListener("scroll",n),h.removeEventListener("scroll",r),c.disconnect(),u.nodeValue="";var I={ca:'S\'ha desactivat el remarcar de sintaxi en aquesta pàgina perquè ha trigat massa temps. El temps màxim permès per a remarcar és $1ms, i el vostre ordinador ha trigat $2ms. Proveu tancar algunes pestanyes i programes i fer clic en "Mostra la previsualització" o "Mostra els canvis". Si no funciona això, proveu un altre navegador web, i si això no funciona, proveu un ordinador més ràpid.',de:'Die Syntaxhervorhebung wurde auf dieser Seite deaktiviert, da diese zu lange gedauert hat. Die maximal erlaubte Zeit zur Hervorhebung beträgt $1ms und dein Computer benötigte $2ms. Versuche einige Tabs und Programme zu schließen und klicke "Vorschau zeigen" oder "Änderungen zeigen". Wenn das nicht funktioniert, probiere einen anderen Webbrowser und wenn immer noch nicht, probiere einen schnelleren Computer.',el:"Η έμφαση σύνταξης έχει απενεργοποιηθεί σε αυτήν τη σελίδα γιατί αργούσε πολύ. Ο μέγιστος επιτρεπτός χρόνος για την έμφαση σύνταξης είναι $1ms και ο υπολογιστής σας έκανε $2ms. Δοκιμάστε να κλείσετε μερικές καρτέλες και προγράμματα και να κάνετε κλικ στην «Εμφάνιση προεπισκόπησης» ή στην «Εμφάνιση αλλαγών». Αν αυτό δεν δουλέψει, δοκιμάστε έναν διαφορετικό περιηγητή και αν ούτε αυτό δουλέψει, δοκιμάστε έναν ταχύτερο υπολογιστή.",en:'Syntax highlighting on this page was disabled because it took too long. The maximum allowed highlighting time is $1ms, and your computer took $2ms. Try closing some tabs and programs and clicking "Show preview" or "Show changes". If that doesn\'t work, try a different web browser, and if that doesn\'t work, try a faster computer.',es:'Se desactivó el resaltar de sintaxis en esta página porque tardó demasiado. El tiempo máximo permitido para resaltar es $1ms, y tu ordenador tardó $2ms. Prueba cerrar algunas pestañas y programas y hacer clic en "Mostrar previsualización" o "Mostrar cambios". Si no funciona esto, prueba otro navegador web, y si eso no funciona, prueba un ordenador más rápido.',fa:"از آنجایی که زمان زیادی صرف آن می‌شد، برجسته‌سازی نحو در این صفحه غیرفعال شده است. بیشینهٔ زمان برجسته‌سازی برای ابزار $1ms تعریف شده در حالی که رایانهٔ شما $2ms زمان نیاز داشت. می‌توانید بستن برخی سربرگ‌ها و برنامه‌ها و سپس کلیک‌کردن دکمهٔ «پیش‌نمایش» یا «نمایش تغییرات» را بیازمایید. اگر جواب نداد مرورگر دیگری را امتحان کنید؛ و اگر باز هم جواب نداد، رایانهٔ سریع‌تری را بیازمایید.",fr:'La coloration syntaxique a été désactivée sur cette page en raison d\'un temps de chargement trop important ($2ms). Le temps maximum autorisé est $1ms. Vous pouvez essayer de fermer certains onglets et programmes et cliquez sur "Prévisualisation" ou "Voir mes modifications". Si cela ne fonctionne pas, essayez un autre navigateur web, et si cela ne fonctionne toujours pas, essayez un ordinateur plus rapide.',io:'Sintaxo-hailaitar en ca pagino esis nekapabligata pro ke konsumis tro multa tempo. La maxima permisata hailaitala tempo es $1ms, e tua ordinatro konsumis $2ms. Probez klozar kelka tabi e programi e kliktar "Previdar" o "Montrez chanji". Se to ne funcionas, probez altra brauzero, e se to ne funcionas, probez plu rapida ordinatro.',pt:'O marcador de sintaxe foi desativado nesta pagina porque demorou demais. O tempo máximo permitido para marcar e $1ms, e seu computador demorou $2ms. Tenta sair de alguns programas e clique em "Mostrar previsão" ou "Mostrar alterações". Se isso não funciona, tenta usar uma outra navegador web, e se ainda não funciona, procura um computador mais rápido.',ru:"Подсветка синтаксиса на этой странице была отключена, так как она очень длинная. Максимально допустимое время отклика - $1мс, а ваш компьютер использует $2мс. Попробуйте закрыть несколько вкладок и программ, затем щёлкнуть по кнопке «Предварительный просмотр» или «Внесённые изменения». Если гаджет по-прежнему не работает, попробуйте использовать другой браузер, и если он также не работает, то попробуйте использовать более быстрый компьютер."},A=mw.config.get("wgUserLanguage");return I=I[A]||I[A.substring(0,A.indexOf("-"))]||I.en,h.style.backgroundColor="",h.style.marginTop=g.style.marginTop,g.removeAttribute("dir"),g.removeAttribute("lang"),g.setAttribute("style","color:red; font-size:small"),void(g.textContent=I.replace("$1",syntaxHighlighterConfig.timeout).replace("$2",F-$))}if(x>y){var O=document.createDocumentFragment();do O.appendChild(document.createElement("span")).id="s"+ ++y;while(x>y);g.appendChild(O)}u.nodeValue=C.substring(2).replace(/\n/g,"\\A ")+"'}"}function n(){g.scrollLeft=h.scrollLeft}function r(){g.scrollTop=h.scrollTop}function o(){g.dir=h.dir}function a(){h.value!=d&&i(),h.scrollLeft!=g.scrollLeft&&n(),h.scrollTop!=g.scrollTop&&r(),h.offsetHeight!=g.offsetHeight&&(g.style.height=h.offsetHeight+"px")}function s(){function e(e,t){if("undefined"==typeof syntaxHighlighterConfig[e]&&(syntaxHighlighterConfig[e]=syntaxHighlighterSiteConfig[e]),"normal"==syntaxHighlighterConfig[e])syntaxHighlighterConfig[e]=t;else{if("undefined"!=typeof syntaxHighlighterConfig[e])return;syntaxHighlighterConfig[e]="undefined"!=typeof syntaxHighlighterConfig.defaultColor?syntaxHighlighterConfig.defaultColor:t}}function s(e){return new RegExp("^(?:"+e.map(function(e){return e.replace(/([\\{}()|.?*+\-\^$\[\]])/g,"\\$1")}).join("|")+")$")}window.syntaxHighlighterSiteConfig=window.syntaxHighlighterSiteConfig||{},window.syntaxHighlighterConfig=window.syntaxHighlighterConfig||{},e("boldOrItalicColor","#EEE"),e("commentColor","#EFE"),e("entityColor","#DFD"),e("externalLinkColor","#EFF"),e("headingColor","#EEE"),e("hrColor","#EEE"),e("listOrIndentColor","#EFE"),e("parameterColor","#FC6"),e("signatureColor","#FC6"),e("tagColor","#FEF"),e("tableColor","#FFC"),e("templateColor","#FFC"),e("wikilinkColor","#EEF"),syntaxHighlighterConfig.nowikiTags=syntaxHighlighterConfig.nowikiTags||syntaxHighlighterSiteConfig.nowikiTags||["nowiki","pre"],syntaxHighlighterConfig.sourceTags=syntaxHighlighterConfig.sourceTags||syntaxHighlighterSiteConfig.sourceTags||["math","syntaxhighlight","source","timeline","hiero"],syntaxHighlighterConfig.timeout=syntaxHighlighterConfig.timeout||syntaxHighlighterSiteConfig.timeout||50,p=s(syntaxHighlighterConfig.nowikiTags),f=s(syntaxHighlighterConfig.sourceTags),syntaxHighlighterConfig.nowikiTags.forEach(function(e){L[e]=t(e)}),g=document.createElement("div"),h=document.getElementById("wpTextbox1");var l=document.createElement("style");u=l.appendChild(document.createTextNode(""));var d=window.getComputedStyle(h);g.dir=h.dir,g.lang=h.lang,g.style.backgroundColor=d.backgroundColor,g.style.border="1px solid transparent",g.style.boxSizing="border-box",g.style.clear=d.clear,g.style.color="transparent",g.style.fontFamily=d.fontFamily,g.style.fontSize=d.fontSize,g.style.lineHeight="normal",g.style.marginBottom="0",g.style.marginLeft="0",g.style.marginRight="0",g.style.marginTop=d.marginTop,g.style.overflowX="auto",g.style.overflowY="scroll",g.style.resize="vertical"==d.resize||"both"==d.resize?"vertical":"none",g.style.tabSize=d.tabSize,g.style.whiteSpace="pre-wrap",g.style.width="100%",g.style.wordWrap="normal",h.style.backgroundColor="transparent",h.style.border="1px inset gray",h.style.boxSizing="border-box",h.style.fontSize=d.fontSize,h.style.lineHeight="normal",h.style.left="0",h.style.marginBottom=d.marginBottom,h.style.marginLeft="0",h.style.marginRight="0",h.style.overflowX="auto",h.style.overflowY="scroll",h.style.padding="0",h.style.resize=g.style.resize,h.style.top="0",h.style.width="100%",h.style.wordWrap="normal",g.style.height=h.offsetHeight+"px",h.style.height=g.style.height,h.style.marginTop=-h.offsetHeight+"px",h.parentNode.insertBefore(g,h),document.head.appendChild(l),h.addEventListener("input",i),h.addEventListener("scroll",n),h.addEventListener("scroll",r),c=new MutationObserver(o),c.observe(h,{attributes:!0}),m=setInterval(a,500),i()}function l(){setTimeout(s,0)}var g,h,u,d,m,c,f,p,y=-1,C=mw.config.get("wgUrlProtocols"),x="&(?:(?:n(?:bsp|dash)|m(?:dash|inus)|lt|e[mn]sp|thinsp|amp|quot|gt|shy|zwn?j|lrm|rlm|Alpha|Beta|Epsilon|Zeta|Eta|Iota|Kappa|[Mm]u|micro|Nu|[Oo]micron|[Rr]ho|Tau|Upsilon|Chi)|#x[0-9a-fA-F]+);\n*",b="\\[(?:\\[|(?:"+C+"))|\\{(?:\\{\\{?|\\|)|<(?:[:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�][:\\wÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�-\\.·̀-ͯ‿-‿-⁀]*(?=/?>| |\n)|!--[^]*?-->\n*)|(?:"+C.replace("|\\/\\/","")+")[^\\s\"<>[\\]{-}]*[^\\s\",\\.:;<>[\\]{-}]\n*|^(?:=|[*#:;]+\n*|-{4,}\n*)|\\\\'\\\\'(?:\\\\')?|~{3,5}\n*|"+x,w=new RegExp(b,"gm"),H=e("]][a-zA-Z]*"),v=e("]"),k=e("}}}"),E=e("}}"),z=e("\\|}"),S=e("\n"),T={},L={},F=mw.config.get("wgAction"),I=$.client.profile().layout;"edit"!=F&&"submit"!=F||"wikitext"!=mw.config.get("wgPageContentModel")||"trident"==I||"edge"==I||("complete"==document.readyState?l():$(window).load(l))}();