User:RedHat AGLC/global.js

mw.loader.implement("ext.CookieWarning@1ixy5",function($,jQuery,require,module){(function(mw,$){function setCookie{mw.cookie.set('cookiewarning_dismissed',true);}$(function{if(mw.cookie.get('cookiewarning_dismissed')){$('.mw-cookiewarning-container').detach;}else{$('.mw-cookiewarning-dismiss').on('click',function(ev){if(!mw.user.isAnon){new mw.Api.saveOption('cookiewarning_dismissed','1').fail(function(code,result){mw.log.warn('Failed to save dismissed CookieWarning: '+code+'\n'+result.error+'. Using cookie now.');setCookie;});}else{setCookie;}$('.mw-cookiewarning-container').detach;ev.preventDefault;});}});}(mediaWiki,jQuery));});mw.loader.implement("ext.DarkMode@1gszw",function($,jQuery,require,module){(function{var darkMode=!1;$('#pt-darkmode-link a').on('click',function(e){e.preventDefault;darkMode=!darkMode;$('html').toggleClass('darkmode',darkMode);$(e.target).text(mw.msg(darkMode?'darkmode-default-link':'darkmode-link'));});});},{"css":[ "#pt-darkmode-link a:before{content:'\\263E'; display:inline-block}html.darkmode{background-color:#000;        }html.darkmode #pt-darkmode-link a:before{content:'\\263C'; }html.darkmode,html.darkmode img,html.darkmode video,html.darkmode svg,html.darkmode iframe,html.darkmode .mw-no-invert,html.darkmode .mw-mmv-overlay,html.darkmode .mw-mmv-pre-image,html.darkmode .mw-kartographer-map,html.darkmode .mw-kartographer-mapDialog-map{filter:invert(1) hue-rotate(180deg);-webkit-filter:invert(1) hue-rotate(180deg)}html.darkmode .toc,html.darkmode .thumbinner,html.darkmode #simpleSearch,html.darkmode #searchInput,html.darkmode #searchButton,html.darkmode #searchGoButton,html.darkmode table,html.darkmode table.toccolours,html.darkmode .wikitable,html.darkmode .mw-notification{background-color:#dddddd}html.darkmode body,html.darkmode #mw-head,html.darkmode #mw-panel,html.darkmode #content.mw-body,html.darkmode h1,html.darkmode h2,html.darkmode h3,html.darkmode h4,html.darkmode h5,html.darkmode h6,html.darkmode .toc,html.darkmode div.thumbinner,html.darkmode #simpleSearch,html.darkmode #searchInput,html.darkmode table.toccolours,html.darkmode .mw-notification{border-color:#cdcbc8}html.darkmode .thumbimage{border:0}html.darkmode a,html.darkmode #mw-panel .portal .body li a,html.darkmode .toctogglelabel,html.darkmode .mw-parser-output a.external,html.darkmode .mw-parser-output a.extiw,html.darkmode .mw-parser-output a.extiw:active{color:#6699ff}html.darkmode a:visited,html.darkmode #mw-panel .portal .body li a:visited{color:#709bbd}html.darkmode a.new,html.darkmode .new a{color:#ff6e6e}html.darkmode .vectorTabs li a{color:#6699ff}html.darkmode .infobox,html.darkmode .infobox_v2{ background-color:#dddddd;border-color:#cdcbc8}html.darkmode .ambox-content{background-color:#dddddd;border-color:#cdcbc8}" ]},{"darkmode-default-link":"Default mode","darkmode-link":"Dark mode"});mw.loader.implement("ext.eventLogging@1hsih",{"main":"subscriber.js","files":{"subscriber.js":function(require,module){(function{'use strict';mw.eventLog=require('./core.js');mw.eventLog.Schema=require('./Schema.js');function titleCase(word){return word[0].toUpperCase+word.slice(1);}function handleTrackedEvent(topic,event){var schema=titleCase(topic.slice(topic.indexOf('.')+1));mw.eventLog.logEvent(schema,event);}function init{mw.trackSubscribe('event.',handleTrackedEvent);}if(document.readyState==='complete'){mw.requestIdleCallback(init);}else{$(window).one('load',init);}});},"core.js":function(require,module){(function{'use strict';var core,debugMode,config=require('./data.json');debugMode=Number(mw.user.options.get('eventlogging-display-web'))===1;core={maxUrlSize:2000,getRevision:function(schemaName){return config.schemaRevision[schemaName]||-1;},prepare:function(schemaName,eventData){return{event:eventData,revision:core.getRevision(schemaName),schema:schemaName,webHost: location.hostname,wiki:mw.config.get('wgDBname')};},makeBeaconUrl:function(data){var queryString=encodeURIComponent(JSON.stringify(data));return config.baseUrl+'?'+queryString+';';},checkUrlSize:function(schemaName,url){var message;if(url.length>core.maxUrlSize){message='Url exceeds maximum length';mw.eventLog.logFailure(schemaName,'urlSize');mw.track('eventlogging.error',mw.format('[$1] $2',schemaName,message));return message;}},sendBeacon:(/1|yes/.test(navigator.doNotTrack)||window.doNotTrack==='1'||!config.baseUrl)?function{}:navigator.sendBeacon?function(url){try{navigator.sendBeacon(url);}catch(e){}}:function(url){document.createElement('img').src=url;},logEvent:function(schemaName,eventData){var event=core.prepare(schemaName,eventData),url=core.makeBeaconUrl(event),sizeError=core.checkUrlSize(schemaName,url),deferred=$.Deferred;if(!sizeError){core.sendBeacon(url);if(debugMode){mw.track('eventlogging.debug',event);}deferred.resolveWith(event,[event]);}else{deferred.rejectWith( event,[event,sizeError]);}return deferred.promise;},logFailure:function(schemaName,errorCode){mw.track('counter.eventlogging.client_errors.'+schemaName+'.'+errorCode);},randomTokenMatch:function(populationSize,explicitToken){var token=explicitToken||mw.user.generateRandomSessionId,rand=parseInt(token.slice(0,8),16);return rand%populationSize===0;},sessionInSample:function(populationSize){return this.randomTokenMatch(populationSize,mw.user.sessionId);},inSample:function(populationSize){return this.eventInSample(populationSize);},eventInSample:function(populationSize){return this.randomTokenMatch(populationSize,mw.user.getPageviewToken);}};if(window.QUnit){core.setOptionsForTest=function(opts){var oldConfig=config;config=$.extend({},config,opts);return oldConfig;};}module.exports=core;});},"Schema.js":function(require,module){(function{'use strict';function Schema(name,samplingRate,defaults){if(!name){throw new Error('name is required');}this.name=name;this.populationSize= samplingRate!==undefined?(1/samplingRate):1;this.defaults=defaults||{};}Schema.prototype.log=function(data,samplingRate){var pop=samplingRate!==undefined?(1/samplingRate):this.populationSize;if(mw.eventLog.eventInSample(pop)){mw.track('event.'+this.name,$.extend({},this.defaults,data));}};module.exports=Schema;});},"data.json":{"baseUrl":!1,"schemaRevision":{"CentralNoticeBannerHistory":19079897,"CentralNoticeImpression":19108542,"MobileWebSearch":12054448,"WebClientError":18340282,"MobileWebShareButton":18923688,"EchoInteraction":15823738}}}});mw.loader.implement("ext.centralNotice.choiceData@y33d7",function($,jQuery,require,module){mw.centralNotice=(mw.centralNotice||{});mw.centralNotice.choiceData=[{"name":"fundraising-miraheze","start":1577569320,"end":1583016120,"preferred":2,"throttle":100,"bucket_count":1,"geotargeted":!1,"banners":[{"name":"Fundraising2020","bucket":0,"weight":25,"category":"fundraising_2020_1","display_anon":!0,"display_account":!0,"devices":["android","desktop","ipad","iphone","unknown"]}],"mixins":[]}];});mw.loader.implement("ext.centralNotice.display@1kao4",{"main":"index.js","files":{"index.js":function(require,module){(function{var cn,Mixin,campaignMixins={},bannerLoadedDeferredObj,requestedBannerName=null,MAX_RECORD_IMPRESSION_DELAY=250,IMPRESSION_EVENT_LOGGING_SCHEMA='CentralNoticeImpression',PREVIEW_STORAGE_KEY_PREFIX='cn-banner-preview-';Mixin=function(name){this.name=name;};Mixin.prototype.setPreBannerHandler=function(handlerFunc){this.preBannerHandler=handlerFunc;};Mixin.prototype.setPostBannerHandler=function(handlerFunc){this.postBannerHandler=handlerFunc;};function runMixinHooks(hookPropertyName){var state=cn.internal.state;$.each(state.getCampaign.mixins,function(mixinName,mixinParams){var handler;if(!(mixinName in campaignMixins)){mw.log.warn('Mixin '+mixinName+' not registered.');return;}if(!(hookPropertyName in campaignMixins[mixinName])){return;}handler=campaignMixins[mixinName][hookPropertyName];if(typeof handler!=='function'){mw.log.warn(hookPropertyName+' for '+ mixinName+' not a function.');return;}handler(mixinParams);});}function runPreBannerMixinHooks{runMixinHooks('preBannerHandler');}function runPostBannerMixinHooks{runMixinHooks('postBannerHandler');}function setUpDataProperty{try{Object.defineProperty(cn,'data',{get:function{return cn.internal.state.getData;}});return;}catch(e){}cn.data=cn.internal.state.getData;}function setUpBannerLoadedPromise{bannerLoadedDeferredObj=$.Deferred;cn.bannerLoadedPromise=bannerLoadedDeferredObj.promise;cn.events={};cn.events.bannerLoaded=cn.bannerLoadedPromise;}function fetchOrRetrieveBanner{var previewBannerContent,data=cn.internal.state.getData;if(data.preview){$(function{previewBannerContent=cn.kvStore.getItem(PREVIEW_STORAGE_KEY_PREFIX+data.banner,cn.kvStore.contexts.GLOBAL);if(previewBannerContent===null){mw.log.warn('Could not retrieve preview banner '+data.banner);}else{injectBannerHTML(previewBannerContent);}});}else{fetchBanner;}}function fetchBanner{var data=cn. internal.state.getData,urlBase=new mw.Uri(mw.config.get('wgCentralNoticeActiveBannerDispatcher')),urlQuery=['banner='+mw.Uri.encode(data.banner),'uselang='+mw.Uri.encode(data.uselang),'debug='+(!!data.debug).toString];if(data.campaign){urlQuery.unshift('campaign='+mw.Uri.encode(data.campaign));}if(urlBase.query.title){urlQuery.unshift('title='+mw.util.wikiUrlencode(urlBase.query.title));}urlBase.query={};urlBase.fragment='';$.ajax({url:urlBase.toString+'?'+urlQuery.join('&'),dataType:'script',cache:!0}).fail(function(jqXHR,status,error){cn.handleBannerLoaderError(status+': '+error);});}function injectBannerHTML(bannerHtml){$('div#centralNotice').attr('class',mw.html.escape('cn-'+cn.internal.state.getData.bannerCategory)).prepend(bannerHtml);if(window.performance&&performance.mark){performance.mark('mwCentralNoticeBanner');}}function resolveRecordImpressionDeferred{cn.recordImpressionDeferredObj.done(reallyRecordImpression);cn.recordImpressionDeferredObj.resolve;}function recordImpression{var timeout,timeoutHasRun=!1;if(cn.recordImpressionDelayPromises.length===0){reallyRecordImpression;return;}timeout=setTimeout(function{timeoutHasRun=!0;resolveRecordImpressionDeferred;},MAX_RECORD_IMPRESSION_DELAY);$.when.apply($,cn.recordImpressionDelayPromises).always(function{if(!timeoutHasRun){clearTimeout(timeout);resolveRecordImpressionDeferred;}});}function reallyRecordImpression{var state=cn.internal.state,random=Math.random,url,dataCopy;if(random<=state.getData.recordImpressionSampleRate){url=new mw.Uri(mw.config.get('wgCentralBannerRecorder'));dataCopy=state.getDataCopy(true);url.extend(dataCopy);sendBeacon(url.toString);}if(random<=state.getData.impressionEventSampleRate){dataCopy=dataCopy||state.getDataCopy(true);mw.eventLog.logEvent(IMPRESSION_EVENT_LOGGING_SCHEMA,dataCopy);}}function sendBeacon(urlStr){if(navigator.sendBeacon){try{navigator.sendBeacon(urlStr);}catch(e){}}else{setTimeout(function{document.createElement('img'). src=urlStr;},0);}}function reallyChooseAndMaybeDisplay{var chooser=cn.internal.chooser,bucketer=cn.internal.bucketer,state=cn.internal.state,hide=cn.internal.hide,campaign=null,banner,i,maxIterations,maxIterationsConfig;state.setUp;setUpDataProperty;if(!chooser.choiceDataSeemsFresh(cn.choiceData)){state.setChoiceDataStale;return;}state.setAvailableCampaigns(chooser.makeAvailableCampaigns(cn.choiceData,state.getData.country,state.getData.anonymous,state.getData.device));maxIterationsConfig=mw.config.get('wgCentralNoticeMaxIterations')||100;maxIterations=Math.min(state.getData.availableCampaigns.length,maxIterationsConfig);for(i=0;i<maxIterations;i++){campaign=chooser.chooseCampaign(state.getData.availableCampaigns,state.getData.randomcampaign);if(campaign===null){break;}state.setCampaign(campaign);bucketer.setCampaign(campaign);hide.setCategory(state.getData.campaignCategory);if(cn.kvStore){cn.kvStore.setCampaignName(state.getData.campaign);cn.kvStore.setCategory (state.getData.campaignCategory);}bucketer.process;state.setBucket(bucketer.getBucket);state.setReducedBucket(bucketer.getReducedBucket);hide.processCookie;if(hide.shouldHide){state.cancelBanner(hide.getReason);runPreBannerMixinHooks;runPostBannerMixinHooks;campaign=null;continue;}runPreBannerMixinHooks;if(state.isBannerCanceled){runPostBannerMixinHooks;campaign=null;continue;}break;}if(campaign===null){if(state.countCampaignsAttempted>0){recordImpression;}return;}if(requestedBannerName){banner=chooser.requestBanner(campaign,state.getData.reducedBucket,state.getData.anonymous,state.getData.device,requestedBannerName);if(!banner){state.setRequestedBannerNotAvailable(requestedBannerName);}}else{banner=chooser.chooseBanner(campaign,state.getData.reducedBucket,state.getData.anonymous,state.getData.device,state.getData.randombanner);if(!banner){state.setNoBannerAvailable;}}if(!banner){runPostBannerMixinHooks;recordImpression;return;}state. setBanner(banner);if(cn.kvStore){cn.kvStore.setBannerName(banner.name);}cn.bannerData.bannerName=banner.name;setUpBannerLoadedPromise;fetchBanner;}function processAfterBannerFetch{if(!cn.internal.state.getData.testingBanner){runPostBannerMixinHooks;recordImpression;}}cn={reallyInsertBanner:function(bannerJson){var state=cn.internal.state,shownAfterLoadingBanner=!0,bannerLoadedButHiddenReason,tmpData;injectBannerHTML(bannerJson.bannerHtml);bannerLoadedDeferredObj.resolve(cn.internal.state.getData);if(state.getData.bannersNotGuaranteedToDisplay){if(typeof cn.bannerData.alterImpressionData==='function'){tmpData=state.getDataCopy;shownAfterLoadingBanner=cn.bannerData.alterImpressionData(tmpData);if(!shownAfterLoadingBanner){bannerLoadedButHiddenReason=tmpData.reason||'';state.setBannerLoadedButHidden(bannerLoadedButHiddenReason);}if(tmpData.banner_count){state.setBannerCount(tmpData.banner_count);}}else{state.setAlterFunctionMissing;}}if(shownAfterLoadingBanner){state .setBannerShown;}processAfterBannerFetch;},recordImpressionDelayPromises:[],recordImpressionDeferredObj:null,internal:{},setBannersNotGuaranteedToDisplay:function{cn.internal.state.setBannersNotGuaranteedToDisplay;},cancelBanner:function(reason){cn.internal.state.cancelBanner(reason);},isBannerCanceled:function{return cn.internal.state.isBannerCanceled;},isBannerShown:function{return cn.internal.state.isBannerShown;},setBannerLoadedButHidden:function(reason){cn.internal.state.setBannerLoadedButHidden(reason);},setMinRecordImpressionSampleRate:function(rate){cn.internal.state.setMinRecordImpressionSampleRate(rate);},setMinImpressionEventSampleRate:function(rate){cn.internal.state.setMinImpressionEventSampleRate(rate);},bannerData:{},Mixin:Mixin,registerCampaignMixin:function(mixin){campaignMixins[mixin.name]=mixin;},chooseAndMaybeDisplay:function{mw.geoIP.getPromise.fail(cn.internal.state.setInvalidGeoData).done(cn.internal.state.setGeoData).always( reallyChooseAndMaybeDisplay);},displayTestingBanner:function{mw.geoIP.getPromise.fail(cn.internal.state.setInvalidGeoData).done(cn.internal.state.setGeoData).always(function{cn.internal.state.setUpForTestingBanner;setUpDataProperty;setUpBannerLoadedPromise;fetchOrRetrieveBanner;});},insertBanner:function(bannerJson){$(function{cn.reallyInsertBanner(bannerJson);});},handleBannerLoaderError:function(msg){cn.internal.state.setBannerLoaderError(msg);bannerLoadedDeferredObj.reject(cn.internal.state.getData);processAfterBannerFetch;},hideBannerWithCloseButton:function{$('#centralNotice').hide;cn.internal.hide.setHideWithCloseButtonCookies;},customHideBanner:function(reason,duration){$('#centralNotice').hide;cn.internal.hide.setHideCookies(reason,duration);},hideBanner:function{cn.hideBannerWithCloseButton;},setBucket:function(bucket){cn.internal.bucketer.setBucket(bucket);cn.internal.state.setBucket(bucket);cn.internal.state.setReducedBucket(cn.internal. bucketer.getReducedBucket);},requestBanner:function(banner){requestedBannerName=banner;},registerTest:function(identifier){cn.internal.state.registerTest(identifier);},setDebugInfo:function(str){cn.internal.state.setDebugInfo(str);},requestRecordImpressionDelay:function(promise){cn.recordImpressionDelayPromises.push(promise);cn.recordImpressionDeferredObj=cn.recordImpressionDeferredObj||$.Deferred;return cn.recordImpressionDeferredObj.promise;},getDataProperty:function(prop){return cn.internal.state.getData[prop];}};if(mw.centralNotice===undefined){mw.centralNotice=cn;}else{$.extend(mw.centralNotice,cn);cn=mw.centralNotice;}mw.log.deprecate(window,'insertBanner',cn.insertBanner,'Use mw.centralNotice method instead');mw.log.deprecate(window,'hideBanner',cn.hideBanner,'Use mw.centralNotice method instead');mw.log.deprecate(window,'toggleNotice',cn.hideBanner,'Use mw.centralNotice method instead');require('./state.js');require('./chooser.js');require('./bucketer.js');require( './hide.js');});},"state.js":function(require,module){(function{var state,status,config=require('./config.json'),impressionEventSampleRateOverridden=!1,UNKNOWN_GEO_CODE='XX',CAMPAIGN_CATEGORY_FOR_MIXED_BANNER_CATEGORIES='mixed_banner_categories',DEVICES={DESKTOP:'desktop',IPHONE:'iphone',IPAD:'ipad',ANDROID:'android',UNKNOWN:'unknown'},STATUSES={CAMPAIGN_NOT_CHOSEN:new Status('campaign_not_chosen',0),CAMPAIGN_CHOSEN:new Status('campaign_chosen',1),BANNER_CANCELED:new Status('banner_canceled',2),NO_BANNER_AVAILABLE:new Status('no_banner_available',3),BANNER_CHOSEN:new Status('banner_chosen',4),BANNER_LOADED_BUT_HIDDEN:new Status('banner_loaded_but_hidden',5),BANNER_SHOWN:new Status('banner_shown',6),BANNER_LOADER_ERROR:new Status('banner_loader_error',7),CHOICE_DATA_STALE:new Status('choice_data_stale',8)},REASONS={other:0,close:1,waitdate:2,waitimps:3,waiterr:4,belowMinEdits:5,viewLimit:6,'seen-fullscreen':7,'cookies-disabled':8,donate:9,cookies:10,seen:11,empty:12,waitnorestart
 * 13,waitnostorage:14,namespace:15,noStorage:16,requestedBannerNotAvailable:17,jsonParamError:18,bannerSequenceEmptyStep:19,bannerSequenceAllStepsSkipped:20};function Status(key,code){this.key=key;this.code=code;}function getDeviceCode{var ua;if(mw.config.get('skin')!=='minerva'){return DEVICES.DESKTOP;}ua=navigator.userAgent;if(ua.match(/iphone/i)){return DEVICES.IPHONE;}if(ua.match(/ipad/i)){return DEVICES.IPAD;}if(ua.match(/android/i)){return DEVICES.ANDROID;}return DEVICES.UNKNOWN;}function setInitialData{var urlParams=$.extend(state.urlParams,(new mw.Uri).query),impressionEventSampleRateFromUrl;state.data.anonymous=(mw.config.get('wgUserName')===null);state.data.project=mw.config.get('wgNoticeProject');state.data.db=mw.config.get('wgDBname');state.data.uselang=mw.config.get('wgUserLanguage');state.data.device=urlParams.device||getDeviceCode;state.data.country=urlParams.country||state.data.country||UNKNOWN_GEO_CODE;state.data.region=urlParams.region||(state.data.region!==

undefined?state.data.region:false)||UNKNOWN_GEO_CODE;state.data.debug=(urlParams.debug!==undefined);state.data.randomcampaign=numericalUrlParamOrVal(urlParams.randomcampaign,Math.random);state.data.randombanner=numericalUrlParamOrVal(urlParams.randombanner,Math.random);state.data.recordImpressionSampleRate=numericalUrlParamOrVal(urlParams.recordImpressionSampleRate,mw.config.get('wgCentralNoticeSampleRate'));impressionEventSampleRateFromUrl=numericalUrlParamOrVal(urlParams.impressionEventSampleRate,null);if(impressionEventSampleRateFromUrl!==null){state.data.impressionEventSampleRate=impressionEventSampleRateFromUrl;impressionEventSampleRateOverridden=!0;}else{state.data.impressionEventSampleRate=mw.config.get('wgCentralNoticeImpressionEventSampleRate');}state.data.getVars=urlParams;state.data.availableCampaigns=[];state.data.campaignStatuses=[];}function numericalUrlParamOrVal(urlParam,val){var urlParamAsFloat=parseFloat(urlParam);return!isNaN(urlParamAsFloat)?urlParamAsFloat: val;}function setTestingBannerData{state.data.campaign=state.urlParams.campaign;state.data.banner=state.urlParams.banner;state.data.testingBanner=!0;state.data.preview=(state.urlParams.preview!==undefined);}function setStatus(s,reason){var cIndex,reasonCodeStr=reason?('.'+state.lookupReasonCode(reason)):'';status=s;state.data.status=s.key;state.data.statusCode=s.code.toString+reasonCodeStr;if(state.data.campaign&&state.data.campaignStatuses.length){cIndex=state.data.campaignStatuses.map(function(c){return c.campaign;}).indexOf(state.data.campaign);state.data.campaignStatuses[cIndex].statusCode=s.key;}}function failCampaign{var cIndex;cIndex=state.data.availableCampaigns.map(function(c){return c.name;}).indexOf(state.data.campaign);state.data.availableCampaigns.splice(cIndex,1);}state=mw.centralNotice.internal.state={STATUSES:STATUSES,urlParams:{},data:{},campaign:null,banner:null,setGeoData:function(geo){if(geo){state.data.country=geo.country;state.data.region=geo.region;}}, setInvalidGeoData:function{state.data.country=UNKNOWN_GEO_CODE;state.data.region=UNKNOWN_GEO_CODE;},setUp:function{setInitialData;setStatus(STATUSES.CAMPAIGN_NOT_CHOSEN);},setUpForTestingBanner:function{setInitialData;setTestingBannerData;setStatus(STATUSES.BANNER_CHOSEN);},getData:function{return state.data;},getDataCopy:function(prepareForLogging){var dataCopy=$.extend(true,{},state.data);if(prepareForLogging){delete dataCopy.getVars;delete dataCopy.mixins;delete dataCopy.tests;delete dataCopy.reducedBucket;delete dataCopy.availableCampaigns;dataCopy.campaignStatuses=JSON.stringify(dataCopy.campaignStatuses);}return dataCopy;},setAvailableCampaigns:function(availableCampaigns){state.data.availableCampaigns=availableCampaigns;},setCampaign:function(c){var prop,i,category,campaignCategory=null,check;check=state.data.availableCampaigns.map(function(availableCampaign){return availableCampaign.name;}).indexOf(c.name);if(check===-1){throw new Error( 'The campaign being set is not in available campaigns list');}delete state.data.result;delete state.data.reason;state.campaign=c;state.data.campaign=state.campaign.name;state.data.campaignStatuses.push({statusCode:null,campaign:state.data.campaign,bannersCount:state.campaign.banners.length});setStatus(STATUSES.CAMPAIGN_CHOSEN);state.data.mixins={};for(prop in state.campaign.mixins){if(Object.prototype.hasOwnProperty.call(state.campaign.mixins,prop)){state.data.mixins[prop]=!0;}}for(i=0;i<state.campaign.banners.length;i++){category=state.campaign.banners[i].category;if(campaignCategory===null){campaignCategory=category;}else if(campaignCategory!==category){campaignCategory=CAMPAIGN_CATEGORY_FOR_MIXED_BANNER_CATEGORIES;break;}}state.data.campaignCategory=campaignCategory;state.data.campaignCategoryUsesLegacy=config.categoriesUsingLegacy.indexOf(campaignCategory)!==-1;},getCampaign:function{return state.campaign;},setBanner:function(b){state.banner=b;state.data.banner=state.banner. name;state.data.bannerCategory=state.banner.category;setStatus(STATUSES.BANNER_CHOSEN);},setBucket:function(bucket){state.data.bucket=bucket;},setReducedBucket:function(reducedBucket){state.data.reducedBucket=reducedBucket;},setBannersNotGuaranteedToDisplay:function{state.data.bannersNotGuaranteedToDisplay=!0;},cancelBanner:function(reason){state.data.bannerCanceledReason=reason;setStatus(STATUSES.BANNER_CANCELED,reason);state.data.result='hide';state.data.reason=reason;failCampaign;},isBannerCanceled:function{return status===STATUSES.BANNER_CANCELED;},isBannerShown:function{return status===STATUSES.BANNER_SHOWN;},setNoBannerAvailable:function{setStatus(STATUSES.NO_BANNER_AVAILABLE);state.data.result='hide';state.data.reason='empty';},setRequestedBannerNotAvailable:function(bannerName){state.data.requestedBanner=bannerName;setStatus(STATUSES.NO_BANNER_AVAILABLE,'requestedBannerNotAvailable');},setBannerLoadedButHidden:function(reason){state.data.bannerLoadedButHiddenReason= reason;setStatus(STATUSES.BANNER_LOADED_BUT_HIDDEN,reason);state.data.result='hide';state.data.reason=reason;},setAlterFunctionMissing:function{state.data.alterFunctionMissing=!0;},setBannerShown:function{setStatus(STATUSES.BANNER_SHOWN);state.data.result='show';},setBannerCount:function(bannerCount){state.data.banner_count=bannerCount;},setMinRecordImpressionSampleRate:function(rate){if(rate>state.data.recordImpressionSampleRate){state.data.recordImpressionSampleRate=rate;}},setMinImpressionEventSampleRate:function(rate){if(!impressionEventSampleRateOverridden&&rate>state.data.impressionEventSampleRate){state.data.impressionEventSampleRate=rate;}},setBannerLoaderError:function(msg){if(msg){state.data.errorMsg=msg;}setStatus(STATUSES.BANNER_LOADER_ERROR);},setChoiceDataStale:function{setStatus(STATUSES.CHOICE_DATA_STALE);},registerTest:function(identifier){var tests=state.data.tests=state.data.tests||[];if(tests.indexOf(identifier)===-1){tests.push(identifier);if(tests.length ===1){state.data.testIdentifiers=identifier;}else{state.data.testIdentifiers+=','+identifier;}}},setDebugInfo:function(str){if(!state.data.debugInfo){state.data.debugInfo=str;}else{state.data.debugInfo+='|'+str;}},lookupReasonCode:function(reasonName){if(reasonName in REASONS){return REASONS[reasonName];}return REASONS.other;},countCampaignsAttempted:function{return state.data.campaignStatuses.length;}};});},"chooser.js":function(require,module){(function{var cn=mw.centralNotice,CAMPAIGN_STALENESS_LEEWAY=15;function setCampaignAllocations(availableCampaigns){var i,campaign,campaignPriority,campaignsByPriority=[],priorities=[],priority,campaignsAtThisPriority,remainingAllocation=1,j,campaignsAtThisPriorityCount,currentFullAllocation,actualAllocation;if(availableCampaigns.length===1){availableCampaigns[0].allocation=availableCampaigns[0].throttle/100;return;}for(i=0;iexpires){expires=Math.ceil(opts.end);}return parts.join('!');}).join('*');kvStore.setItem(STORAGE_KEY,serialized,kvStore.contexts.GLOBAL,Math.ceil((expires-(new Date)/1000)/86400),multiStorageOption);}function getRandomBucket{return Math.floor(Math.random*mw.config.get('wgNoticeNumberOfControllerBuckets'));}function retrieveProcessAndGet{var campaignName=campaign.name,campaignStartDate,bucket,bucketEndDate,retrievedBucketEndDate,val,extension=mw.config.get('wgCentralNoticePerCampaignBucketExtension'),now=new Date,bucketsModified=!1;campaignStartDate=new Date;campaignStartDate.setTime(campaign.start*1000);bucketEndDate=new Date;bucketEndDate.setTime(campaign.end*1000);bucketEndDate.setUTCDate(bucketEndDate.getUTCDate+extension);multiStorageOption=kvStore.getMultiStorageOption(true);if(!possiblyLoadAndMigrateLegacyBuckets){loadBuckets ;}bucket=buckets[campaignName];if(bucket&&bucketEndDate>now){retrievedBucketEndDate=new Date;retrievedBucketEndDate.setTime(bucket.end*1000);if(retrievedBucketEndDate.getTime!==bucketEndDate.getTime){bucket.end=bucketEndDate.getTime/1000;bucketsModified=!0;}}else{val=getRandomBucket;bucket={val:val,start:campaignStartDate.getTime/1000,end:bucketEndDate.getTime/1000};buckets[campaignName]=bucket;bucketsModified=!0;}for(campaignName in buckets){bucketEndDate=new Date;bucketEndDate.setTime(buckets[campaignName].end*1000);if(bucketEndDate<now){delete buckets[campaignName];bucketsModified=!0;}}if(bucketsModified){storeBuckets;}}bucketer=mw.centralNotice.internal.bucketer={setCampaign:function(c){campaign=c;},process:function{retrieveProcessAndGet;},getBucket:function{return buckets[campaign.name].val;},getReducedBucket:function{return bucketer.getBucket%campaign.bucket_count;},setBucket:function(val){buckets[campaign.name].val=val;storeBuckets;}};});} ,"hide.js":function(require,module){(function{var hide,category,cookieName,shouldHide=!1,reason,durations=mw.config.get('wgNoticeCookieDurations'),HIDE_COOKIE_PREFIX='centralnotice_hide_',MAX_CUSTOM_HIDE_DURATION=2592000;function removeCookie{$.cookie(cookieName,null,{path:'/'});}hide=mw.centralNotice.internal.hide={setCategory:function(c){category=c;cookieName=HIDE_COOKIE_PREFIX+category;},processCookie:function{var rawCookieVal=$.cookie(cookieName),hideData,now;if(!rawCookieVal){return;}if(rawCookieVal==='hide'){removeCookie;return;}try{hideData=JSON.parse(rawCookieVal);}catch(e){removeCookie;return;}now=new Date.getTime/1000;if(now<hideData.created+(durations[hideData.reason]||MAX_CUSTOM_HIDE_DURATION)){shouldHide=!0;reason=hideData.reason;}},shouldHide:function{return shouldHide;},getReason:function{return reason;},setHideCookies:function(reason,duration){var date=new Date,hideData={v:1,created:Math.floor(date.getTime/1000),reason:reason};if(!(reason in durations)){duration=Math.min(MAX_CUSTOM_HIDE_DURATION,duration);}date.setSeconds(date.getSeconds+duration);$.cookie(cookieName,JSON.stringify(hideData),{expires:date,path:'/'});mw.config.get('wgNoticeHideUrls').forEach(function(val){var url=new mw.Uri(val);url.extend({duration:duration,category:category,reason:reason});document.createElement('img').src=url.toString;});},setHideWithCloseButtonCookies:function{hide.setHideCookies('close',durations.close);}};});},"config.json":{"categoriesUsingLegacy":["Fundraising","fundraising"]}}},{"css":[ "@media print{#centralNotice{display:none}}.cn-closeButton{display:inline-block;zoom:1;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUBAMAAAB/pwA+AAAAElBMVEUAAAAQEBDPz88AAABAQEDv7+9oe1vvAAAABnRSTlMA3rLe3rJS22KzAAAARElEQVQI12PAAUIUQCSTK5BwFgIxFU1AhKECUFAYKAAioXwwBeZChMGCEGGQIFQYJohgIhQgtCEMQ7ECYTHCOciOxA4AADgJTXIb9s8AAAAASUVORK5CYII=) no-repeat;background:url(/w/extensions/CentralNotice/resources/ext.centralNotice.display/images/close.png?8e3d8) no-repeat!ie;width:20px;height:20px;text-indent:20px;white-space:nowrap;overflow:hidden}"]});mw.loader.implement("ext.centralNotice.geoIP@1k62g",function($,jQuery,require,module){(function{var COOKIE_NAME='GeoIP',geoPromise;function parseCookieValue(cookieValue){var matches=cookieValue.match(/([^:]*):([^:]*):([^:]*):([^:]*):([^:]*):([^;]*)/)||cookieValue.match(/([^:]*):([^:]*):([^:]*):([^:]*):([^;]*)/);if(!matches){return null;}if(matches.length===6){matches=matches.slice(0,2).concat([]).concat(matches.slice(2));}if((typeof matches[1]!=='string')||(matches[1].length===0)){return null;}return{country:matches[1],region:matches[2],city:matches[3],lat:matches[4]&&parseFloat(matches[4]),lon:matches[5]&&parseFloat(matches[5]),af:matches[6]};}function storeGeoInCookie(geo){var parts=[geo.country,geo.region||,(geo.city&&geo.city.replace(/[^a-z]/i,'_'))||,geo.lat||,geo.lon||,geo.af||],cookieValue=parts.join(':');$.cookie(COOKIE_NAME,cookieValue,{path:'/'});}mw.geoIP={makeGeoWithPromise:function{var cookieValue=$.cookie(COOKIE_NAME),geo,lookupModule;if(cookieValue){geo= parseCookieValue(cookieValue);if(geo){geoPromise=$.Deferred.resolve(geo).promise;return;}}lookupModule=mw.config.get('wgCentralNoticeGeoIPBackgroundLookupModule');if(lookupModule){geoPromise=mw.loader.using(lookupModule).then(function{var lookupCallback=require(lookupModule);return lookupCallback;});geoPromise.then(function(geo){storeGeoInCookie(geo);});}else{geoPromise=$.Deferred.reject.promise;}},getPromise:function{return geoPromise;}};mw.geoIP.makeGeoWithPromise;geoPromise.done(function(geo){window.Geo=geo;});});});mw.loader.implement("ext.centralNotice.kvStore@sgn2q",{"main":"index.js","files":{"index.js":function(require,module){mw.centralNotice=(mw.centralNotice||{});mw.centralNotice.kvStore=require('./kvStore.js');},"kvStore.js":function(require,module){(function{var KVStorageContext,kvStore,error=null,campaignName=null,bannerName=null,category=null,cookiesEnabled=null,localStorageAvailable=null,now=Math.round((new Date).getTime/1000),SEPARATOR='|',SEPARATOR_IN_COOKIES='!',FIND_KEY_REGEX=/\|([^|]*)$/,PREFIX='CentralNoticeKV',PREFIX_IN_COOKIES='CN',DEFAULT_ITEM_TTL=15768000;KVStorageContext=function(key,keyInCookies){this.key=key;this.keyInCookies=keyInCookies;};function areCookiesEnabled{if(cookiesEnabled===null){$.cookie('cookieTest','testVal');cookiesEnabled=($.cookie('cookieTest')==='testVal');$.removeCookie('cookieTest');}return cookiesEnabled;}function isLocalStorageAvailable{if(localStorageAvailable===null){try{if(!window.localStorage){localStorageAvailable=!1;}else{ localStorage.setItem('localStorageTest','testVal');localStorageAvailable=(localStorage.getItem('localStorageTest')==='testVal');localStorage.removeItem('localStorageTest');}}catch(e){localStorageAvailable=!1;}}return localStorageAvailable;}function setError(message,key,value,context){error={message:message,key:key,value:value,context:context?context.key:null,time:new Date};error.campaign=campaignName;error.banner=bannerName;mw.log('CentralNotice KV storage error: '+JSON.stringify(error));}function makeKeyForLocalStorage(key,context){var base=PREFIX+SEPARATOR+context.key+SEPARATOR;switch(context.key){case kvStore.contexts.CAMPAIGN.key:return base+campaignName+SEPARATOR+key;case kvStore.contexts.CATEGORY.key:return base+category+SEPARATOR+key;case kvStore.contexts.GLOBAL.key:return base+key;default:setError('Invalid KV storage context',key,null,context);return base+'invalidContext'+SEPARATOR+key;}}function makeKeyForCookie(key,context){var base=PREFIX_IN_COOKIES+SEPARATOR_IN_COOKIES +context.keyInCookies+SEPARATOR_IN_COOKIES;switch(context.key){case kvStore.contexts.CAMPAIGN.key:return base+campaignName+SEPARATOR_IN_COOKIES+key;case kvStore.contexts.CATEGORY.key:return base+category+SEPARATOR_IN_COOKIES+key;case kvStore.contexts.GLOBAL.key:return base+key;default:setError('Invalid KV storage context',key,null,context);return base+'invalidContext'+SEPARATOR_IN_COOKIES+key;}}function setLocalStorageItem(key,value,context,ttl){var lsKey,encodedWrappedValue;lsKey=makeKeyForLocalStorage(key,context);encodedWrappedValue=JSON.stringify({expiry:ttl?(ttl*86400)+now:DEFAULT_ITEM_TTL+now,val:value});try{localStorage.setItem(lsKey,encodedWrappedValue);if(localStorage.getItem(lsKey)!==encodedWrappedValue){setError('Couldn\'t write value',key,value,context);return false;}return true;}catch(e){setError('Couldn\'t write value due to LocalStorage exception '+e.toString,key,value,context);return false;}}function setCookieItem(key,value,context,ttl){return Boolean($.cookie( makeKeyForCookie(key,context),encodeURIComponent(JSON.stringify(value)),{expires:ttl,path:'/'}));}function getLocalStorageItem(key,context){var lsKey=makeKeyForLocalStorage(key,context),rawValue,wrappedValue;try{rawValue=localStorage.getItem(lsKey);}catch(e){setError('Couldn\'t read value due to LocalStorage exception '+e.toString,key,null,context);return null;}if(rawValue===null){return null;}try{wrappedValue=JSON.parse(rawValue);}catch(e){if(e instanceof SyntaxError){setError('Couldn\'t parse value, removing. '+e.message,key,rawValue,context);try{localStorage.removeItem(lsKey);}catch(ex){setError('Couldn\'t remove value due to LocalStorage exception '+ex.toString,key,rawValue,context);}return null;}else{setError('Couldn\'t read value '+e.message,key,rawValue,context);throw e;}}if(!wrappedValue.expiry||wrappedValue.expiry<now){return null;}return wrappedValue.val;}function getCookieItem(key,context){var storageKey=makeKeyForCookie(key,context),rawCookie=$.cookie(storageKey);try{ return JSON.parse(decodeURIComponent(rawCookie));}catch(e){$.removeCookie(storageKey,{path:'/'});return null;}}function removeLocalStorageItem(key,context){try{localStorage.removeItem(makeKeyForLocalStorage(key,context));}catch(e){setError('Couldn\'t remove value due to LocalStorage exception '+e.toString,key,null,context);}}function removeCookieItem(key,context){$.removeCookie(makeKeyForCookie(key,context),{path:'/'});}kvStore={contexts:{CAMPAIGN:new KVStorageContext('campaign','c'),CATEGORY:new KVStorageContext('category','t'),GLOBAL:new KVStorageContext('global','g')},multiStorageOptions:{LOCAL_STORAGE:'kv_store',COOKIE:'cookie',NO_STORAGE:'no_storage'},setItem:function(key,value,context,ttl,multiStorageOption){if((key.indexOf(SEPARATOR)!==-1)||(key.indexOf(SEPARATOR_IN_COOKIES)!==-1)){setError('Invalid key',key,value,context);return false;}multiStorageOption=multiStorageOption||kvStore.multiStorageOptions.LOCAL_STORAGE;switch(multiStorageOption){case kvStore.multiStorageOptions. LOCAL_STORAGE:return setLocalStorageItem(key,value,context,ttl);case kvStore.multiStorageOptions.COOKIE:return setCookieItem(key,value,context,ttl);case kvStore.multiStorageOptions.NO_STORAGE:return false;default:throw new Error('Unexpected multi-storage option');}},getItem:function(key,context,multiStorageOption){multiStorageOption=multiStorageOption||kvStore.multiStorageOptions.LOCAL_STORAGE;switch(multiStorageOption){case kvStore.multiStorageOptions.LOCAL_STORAGE:return getLocalStorageItem(key,context);case kvStore.multiStorageOptions.COOKIE:return getCookieItem(key,context);case kvStore.multiStorageOptions.NO_STORAGE:return null;default:throw new Error('Unexpected multi-storage option');}},removeItem:function(key,context,multiStorageOption){multiStorageOption=multiStorageOption||kvStore.multiStorageOptions.LOCAL_STORAGE;switch(multiStorageOption){case kvStore.multiStorageOptions.LOCAL_STORAGE:removeLocalStorageItem(key,context);return;case kvStore.multiStorageOptions.COOKIE: removeCookieItem(key,context);return;case kvStore.multiStorageOptions.NO_STORAGE:return;default:throw new Error('Unexpected multi-storage option');}},isAvailable:function{return(kvStore.getMultiStorageOption(false)!==kvStore.multiStorageOptions.NO_STORAGE);},getMultiStorageOption:function(cookieAllowed){if(isLocalStorageAvailable){return kvStore.multiStorageOptions.LOCAL_STORAGE;}if(cookieAllowed&&areCookiesEnabled){return kvStore.multiStorageOptions.COOKIE;}return kvStore.multiStorageOptions.NO_STORAGE;},getError:function{return error;},setNotAvailableError:function{setError('LocalStorage not available.',null,null);},setMaintenanceError:function(lsKey){var m=lsKey.match(FIND_KEY_REGEX),key=m?m[1]:null;setError('Error during KVStore maintenance.',key,null);},setCampaignName:function(cName){campaignName=cName;},setBannerName:function(bName){bannerName=bName;},setCategory:function(c){category=c;}};module.exports=kvStore;});}}});mw.loader.implement("ext.centralNotice.startUp@cw8q4",{"main":"index.js","files":{"index.js":function(require,module){(function{var cn=mw.centralNotice,config=require('./config.json'),cookiesToDelete=config.cookiesToDelete,testingBannerName=mw.util.getParamValue('banner'),kvStoreMaintenance=require('./kvStoreMaintenance.js'),NULL_BANNER_NAME='null';cn.kvStoreMaintenance=kvStoreMaintenance;if(cookiesToDelete&&cookiesToDelete.length>0){mw.requestIdleCallback(deleteOldCookies);}$(function{$('#siteNotice').prepend(' ');});if(testingBannerName){if(testingBannerName===NULL_BANNER_NAME){return;}mw.loader.using('ext.centralNotice.display').done(function{cn.displayTestingBanner;});return;}if(cn.choiceData===undefined){mw.log.warn('No choice data set for CentralNotice campaign '+'and banner selection.');return;}mw.requestIdleCallback(kvStoreMaintenance.doMaintenance);if(cn.choiceData.length===0){return;}if(!cn.chooseAndMaybeDisplay){mw.log.warn( 'Possible campaign(s) received in choiceData, but '+'mw.centralNotice.chooseAndMaybeDisplay is not available');return;}cn.chooseAndMaybeDisplay;function deleteOldCookies{mw.loader.using('mediawiki.cookie').done(function{mw.requestIdleCallback(function(deadline){while(cookiesToDelete.length>0&&deadline.timeRemaining>3){mw.cookie.set(cookiesToDelete.shift,null,{path:'/',prefix:''});}});});}});},"kvStoreMaintenance.js":function(require,module){(function{var kvStoreMaintenance,now=new Date.getTime/1000,PREFIX_REGEX=/^CentralNoticeKV/,PREFIX_AND_SEPARATOR_IN_COOKIES='CN!',LEEWAY_FOR_REMOVAL=86400,MIN_WORK_TIME=3;function getKeys{return $.Deferred(function(d){mw.requestIdleCallback(function(deadline){var key,keys=[],index=localStorage.length;while(index-->0&&deadline.timeRemaining>MIN_WORK_TIME){key=localStorage.key(index);if(key!==null&&PREFIX_REGEX.test(key)){keys.push(key);}}d.resolve(keys);});}).promise;}function processKeys(queue){return $.Deferred(function(d){ mw.requestIdleCallback(function iterate(deadline){var key,rawValue,value;while(queue[0]!==undefined&&deadline.timeRemaining>MIN_WORK_TIME){key=queue.shift;try{rawValue=localStorage.getItem(key);if(rawValue){value=JSON.parse(rawValue);if(!value.expiry||(value.expiry+LEEWAY_FOR_REMOVAL)<now){localStorage.removeItem(key);}}}catch(e){localStorage.removeItem(key);mw.log.warn('CentralNotice kvStoreMaintenance error for key '+key,e);}}if(queue[0]!==undefined){mw.requestIdleCallback(iterate);}else{d.resolve;}});}).promise;}function purgeFallbackCookies{var cookies=document.cookie.split(';'),i,matches,r=new RegExp('^'+PREFIX_AND_SEPARATOR_IN_COOKIES+'[^=]*(?==)');for(i=0;i<cookies.length;i++){matches=cookies[i].trim.match(r);if(matches){document.cookie=matches[0]+'=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/';}}}kvStoreMaintenance={doMaintenance:function{try{if(!window.localStorage||!localStorage.length){return $.Deferred.resolve;}}catch(e){return $.Deferred.resolve;} if(document.cookie.indexOf(PREFIX_AND_SEPARATOR_IN_COOKIES)!==-1){purgeFallbackCookies;}return getKeys.then(processKeys);}};module.exports=kvStoreMaintenance;});},"config.json":{"cookiesToDelete":[]}}});mw.loader.implement("ext.centralauth.ForeignApi@ljh2i",function($,jQuery,require,module){(function{var hasOwnProperty=Object.prototype.hasOwnProperty,csrfTokenOldTypes=['csrf','edit','delete','protect','move','block','unblock','email','import','options'];function CentralAuthForeignApi(url,options){CentralAuthForeignApi.parent.call(this,url,options);this.localApi=new mw.Api;this.noTokenNeeded=!1;this.foreignLoginPromise=null;this.csrfToken=null;this.csrfTokenBad=!1;if(mw.config.get('wgUserName')===null||(options&&options.anonymous)){this.noTokenNeeded=!0;}else{this.foreignLoginPromise=this.checkForeignLogin;}}OO.inheritClass(CentralAuthForeignApi,mw.ForeignApi);CentralAuthForeignApi.prototype.getCentralAuthToken=function{var abortable=this.localApi.get({action:'centralauthtoken'});return abortable.then(function(resp){if(resp.error){return $.Deferred.reject(resp.error);}else{return resp.centralauthtoken.centralauthtoken;}}).promise({abort:function{if(abortable&& abortable.abort){abortable.abort;}}});};CentralAuthForeignApi.prototype.checkForeignLogin=function{var foreignApi=this;return CentralAuthForeignApi.parent.prototype.ajax.call(this,{action:'query',meta:'userinfo|tokens'},{type:'GET'}).then(function(resp){var userinfo=resp.query.userinfo;if(userinfo.anon===undefined&&userinfo.name===mw.config.get('wgUserName')){foreignApi.noTokenNeeded=!0;foreignApi.csrfToken=resp.query.tokens.csrftoken;return true;}return $.Deferred.reject;});};CentralAuthForeignApi.prototype.getToken=function(type,assert){var foreignApi=this,parent=CentralAuthForeignApi.parent.prototype.getToken,abortedPromise=$.Deferred.reject('http',{textStatus:'abort',exception:'abort'}).promise,abortable,aborted;if(this.foreignLoginPromise&&csrfTokenOldTypes.indexOf(type)!==-1){return this.foreignLoginPromise.then(function{if(aborted){return abortedPromise;}if(foreignApi.csrfToken&&!foreignApi.csrfTokenBad){return foreignApi.csrfToken;}return(abortable=parent.call( foreignApi,type,assert));},function{if(aborted){return abortedPromise;}return(abortable=parent.call(foreignApi,type,assert));}).promise({abort:function{aborted=!0;if(abortable&&abortable.abort){abortable.abort;}}});}return parent.call(this,type,assert);};CentralAuthForeignApi.prototype.badToken=function(type){this.csrfTokenBad=!0;return CentralAuthForeignApi.parent.prototype.badToken.call(this,type);};CentralAuthForeignApi.prototype.ajax=function(parameters,ajaxOptions){var tokenPromise,foreignApi=this,parent=CentralAuthForeignApi.parent.prototype.ajax,abortedPromise=$.Deferred.reject('http',{textStatus:'abort',exception:'abort'}).promise,abortable,aborted;if(this.noTokenNeeded||hasOwnProperty.call(parameters,'centralauthtoken')){tokenPromise=$.Deferred.reject;}else if(this.foreignLoginPromise){tokenPromise=this.foreignLoginPromise.then(function{return $.Deferred.reject;},function{return(abortable=foreignApi.getCentralAuthToken);});}else{tokenPromise= abortable=this.getCentralAuthToken;}return tokenPromise.then(function(centralAuthToken){var url,newParameters,newAjaxOptions;if(aborted){return abortedPromise;}newParameters=$.extend({centralauthtoken:centralAuthToken},parameters);if(ajaxOptions.type!=='GET'){url=(ajaxOptions&&ajaxOptions.url)||foreignApi.defaults.ajax.url;url+=(url.indexOf('?')!==-1?'&':'?')+'centralauthtoken='+encodeURIComponent(centralAuthToken);newAjaxOptions=$.extend({},ajaxOptions,{url:url});}else{newAjaxOptions=ajaxOptions;}return(abortable=parent.call(foreignApi,newParameters,newAjaxOptions));},function{if(aborted){return abortedPromise;}return(abortable=parent.call(foreignApi,parameters,ajaxOptions));}).promise({abort:function{aborted=!0;if(abortable&&abortable.abort){abortable.abort;}}});};mw.ForeignApi=CentralAuthForeignApi;});});mw.loader.implement("ext.centralauth.centralautologin.clearcookie@zp4ng",function($,jQuery,require,module){(function{if(mw.config.get('wgUserName')!==null){try{localStorage.removeItem('CentralAuthAnon');}catch(e){}if(/(^|; )CentralAuthAnon=1/.test(document.cookie)){document.cookie='CentralAuthAnon=0; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/';}}});});mw.loader.implement("ext.echo.api@1e16v",function($,jQuery,require,module){(function{mw.echo=mw.echo||{};mw.echo.api=mw.echo.api||{};});(function{mw.echo.api.PromisePrioritizer=function MwEchoApiPromisePrioritizer{this.deferred=$.Deferred;this.promise=null;};OO.initClass(mw.echo.api.PromisePrioritizer);mw.echo.api.PromisePrioritizer.prototype.prioritize=function(promise){var previousPromise=this.promise;promise.then(this.setSuccess.bind(this,promise),this.setFailure.bind(this,promise));this.promise=promise;if(previousPromise&&previousPromise.abort){previousPromise.abort;}return this.deferred.promise;};mw.echo.api.PromisePrioritizer.prototype.setSuccess=function(promise){var prioritizer=this;if(this.promise===promise){this.promise.done(function{prioritizer.deferred.resolve.apply(prioritizer.deferred,arguments);prioritizer.promise=null;prioritizer.deferred=$.Deferred;});}};mw.echo.api.PromisePrioritizer.prototype.setFailure=function(promise){var prioritizer=this;if(this .promise===promise){this.promise.fail(function{prioritizer.deferred.reject.apply(prioritizer.deferred,arguments);prioritizer.promise=null;prioritizer.deferred=$.Deferred;});}};});(function{mw.echo.api.EchoApi=function MwEchoApiEchoApi(config){config=config||{};this.network=new mw.echo.api.NetworkHandler(config);this.fetchingPromise=null;this.limit=config.limit||25;this.fetchingPrioritizer=new mw.echo.api.PromisePrioritizer;};OO.initClass(mw.echo.api.EchoApi);mw.echo.api.EchoApi.prototype.registerForeignSources=function(sources,unreadOnly,limit){var s;limit=limit||this.limit;for(s in sources){this.network.setApiHandler(s,new mw.echo.api.ForeignAPIHandler(sources[s].url,{unreadOnly:!!unreadOnly,limit:limit}));}};mw.echo.api.EchoApi.prototype.registerLocalSources=function(sources){var i,localHandler=this.network.getApiHandler('local');for(i=0;i<sources.length;i++){this.network.setApiHandler(sources[i],localHandler);}};mw.echo.api.EchoApi.prototype.fetchUnreadNotificationPages= function(sources){return this.network.getApiHandler('local').fetchUnreadNotificationPages(sources).then(function(data){return OO.getProp(data,'query','unreadnotificationpages');});};mw.echo.api.EchoApi.prototype.fetchFilteredNotifications=function(type,source,filters){source=source||'local';if(source==='local'){return this.fetchNotifications(type,source,true,filters);}else{return this.fetchNotificationsFromRemoteSource(type,source,true,filters);}};mw.echo.api.EchoApi.prototype.convertFiltersToAPIParams=function(filterObject){var titles,overrideParams={};filterObject=filterObject||{};if(filterObject.continue){overrideParams.notcontinue=filterObject.continue;}if(filterObject.unreadFirst){overrideParams.notunreadfirst=1;}if(filterObject.bundle){overrideParams.notbundle=1;}if(filterObject.readState&&filterObject.readState!=='all'){overrideParams.notfilter=filterObject.readState==='read'?'read':'!read';}if(filterObject.titles){titles=Array.isArray(filterObject.titles)?filterObject.titles:[ filterObject.titles];if(titles.indexOf(null)!==-1){titles.splice(titles.indexOf(null),1,'[]');}overrideParams.nottitles=titles.join('|');}return overrideParams;};mw.echo.api.EchoApi.prototype.fetchNotificationsFromRemoteSource=function(type,source,isForced,filters){var handler=this.network.getApiHandler(source);if(!handler){return $.Deferred.reject.promise;}return this.fetchingPrioritizer.prioritize(handler.fetchNotifications(type,'local',!!isForced,this.convertFiltersToAPIParams(filters))).then(function(result){return OO.getProp(result.query,'notifications');});};mw.echo.api.EchoApi.prototype.fetchNotifications=function(type,sources,isForced,filters){sources=Array.isArray(sources)?sources:sources?[sources]:'local';return this.fetchingPrioritizer.prioritize(this.network.getApiHandler('local').fetchNotifications(type,sources,isForced,this.convertFiltersToAPIParams(filters))).then(function(result){return OO.getProp(result.query,'notifications');});};mw.echo.api.EchoApi.prototype. fetchNotificationGroups=function(sourceArray,type,bundle){var overrideParams={notcrosswikisummary:!1,notbundle:bundle};return this.network.getApiHandler('local').fetchNotifications(type,sourceArray,true,overrideParams).then(function(result){var i,items=OO.getProp(result,'query','notifications','list'),groups={};for(i=0;i<items.length;i++){groups[items[i].wiki]=groups[items[i].wiki]||[];groups[items[i].wiki].push(items[i]);}return groups;});};mw.echo.api.EchoApi.prototype.markItemsRead=function(itemIds,source,isRead){return this.network.getApiHandler('local').markItemsRead(source,itemIds,isRead);};mw.echo.api.EchoApi.prototype.markAllRead=function(source,type){return this.network.getApiHandler('local').markAllRead(source,type);};mw.echo.api.EchoApi.prototype.fetchUnreadCount=function(source,type,localOnly){return this.network.getApiHandler(source).fetchUnreadCount(type,localOnly);};mw.echo.api.EchoApi.prototype.updateSeenTime=function(type,source){source=source||'local';type=type||[ 'alert','message'];return this.network.getApiHandler(source).updateSeenTime(type);};mw.echo.api.EchoApi.prototype.queryAPI=function(params,source){source=source||'local';return this.network.getApiHandler(source).queryAPI(params);};mw.echo.api.EchoApi.prototype.isFetchingErrorState=function(source,type){return this.network.getApiHandler(source).isFetchingErrorState(type,[source]);};mw.echo.api.EchoApi.prototype.getFetchNotificationPromise=function(source,type){return this.network.getApiHandler(source).getFetchNotificationPromise(type);};mw.echo.api.EchoApi.prototype.getLimit=function{return this.limit;};});(function{mw.echo.api.APIHandler=function MwEchoApiAPIHandler(api,config){config=config||{};this.fetchNotificationsPromise={};this.apiErrorState={};this.limit=config.limit||25;this.userLang=config.userLang||mw.config.get('wgUserLanguage');this.api=api;this.normalizedType={message:'message',alert:'alert',all:'message|alert'};this.typeParams={message:{},alert:{},all:{}};};OO. initClass(mw.echo.api.APIHandler);mw.echo.api.APIHandler.prototype.fetchNotifications=null;mw.echo.api.APIHandler.prototype.queryAPI=function(data){return this.api.postWithToken(data.tokenType||'csrf',data.params);};mw.echo.api.APIHandler.prototype.fetchUnreadNotificationPages=function(sources){var params={action:'query',meta:'unreadnotificationpages',uselang:this.userLang,unpgrouppages:!0};if(!sources||sources==='*'){params.unpwikis='*';}else{sources=Array.isArray(sources)?sources:[sources];params.unpwikis=sources.join('|');}return this.api.get(params);};mw.echo.api.APIHandler.prototype.isSourceLocal=function(sources){return Array.isArray(sources)?(sources.indexOf('local')!==-1||sources.indexOf(mw.config.get('wgWikiID'))!==-1):(sources==='local'||sources===mw.config.get('wgWikiID'));};mw.echo.api.APIHandler.prototype.createNewFetchNotificationPromise=function(type,sources,overrideParams){var fetchNotifPromise,fetchingSource='local',me=this,params=$.extend({action:'query', formatversion:2,meta:'notifications',notsections:this.normalizedType[type],notformat:'model',notlimit:this.limit,notprop:'list|count|seenTime',uselang:this.userLang},this.getTypeParams(type));if(!this.isSourceLocal(sources)){params.notwikis=sources.join('|');params.notfilter='!read';fetchingSource='foreign';}this.fetchNotificationsPromise[type]=this.fetchNotificationsPromise[type]||{};me.apiErrorState[type]=me.apiErrorState[type]||{};this.fetchNotificationsPromise[type][fetchingSource]=null;this.apiErrorState[type][fetchingSource]=!1;fetchNotifPromise=this.api.get($.extend(true,params,overrideParams));if(!overrideParams){this.fetchNotificationsPromise[type][fetchingSource]=fetchNotifPromise;}return fetchNotifPromise.fail(function{me.apiErrorState[type][fetchingSource]=!0;});};mw.echo.api.APIHandler.prototype.updateSeenTime=null;mw.echo.api.APIHandler.prototype.markAllRead=null;mw.echo.api.APIHandler.prototype.markItemsRead=null;mw.echo.api.APIHandler.prototype.markItemRead= function(itemId,isRead){return this.markItemsRead([itemId],isRead);};mw.echo.api.APIHandler.prototype.fetchUnreadCount=null;mw.echo.api.APIHandler.prototype.isFetchingErrorState=function(type,sources){var fetchingSource='local';if(!this.isSourceLocal(sources)){fetchingSource='foreign';}return!!(this.apiErrorState[type]&&this.apiErrorState[type][fetchingSource]);};mw.echo.api.APIHandler.prototype.getFetchNotificationPromise=function(type,sources,overrideParams){var fetchingSource='local';if(!this.isSourceLocal(sources)){fetchingSource='foreign';}if(overrideParams||!this.fetchNotificationsPromise[type]||!this.fetchNotificationsPromise[type][fetchingSource]){this.createNewFetchNotificationPromise(type,sources,overrideParams);}return this.fetchNotificationsPromise[type][fetchingSource];};mw.echo.api.APIHandler.prototype.getTypeParams=function(type){return this.typeParams[type];};});(function{mw.echo.api.LocalAPIHandler=function MwEchoApiLocalAPIHandler(config){mw.echo.api. LocalAPIHandler.super.call(this,new mw.Api({ajax:{cache:!1}}),config);};OO.inheritClass(mw.echo.api.LocalAPIHandler,mw.echo.api.APIHandler);mw.echo.api.LocalAPIHandler.prototype.fetchNotifications=function(type,source,isForced,overrideParams){if(overrideParams){return this.createNewFetchNotificationPromise(type,source,overrideParams);}else if(isForced||this.isFetchingErrorState(type,source)){return this.createNewFetchNotificationPromise(type,source,overrideParams);}return this.getFetchNotificationPromise(type,source,overrideParams);};mw.echo.api.LocalAPIHandler.prototype.updateSeenTime=function(type){type=Array.isArray(type)?type:[type];return this.api.postWithToken('csrf',{action:'echomarkseen',type:type.length===1?type[0]:'all',timestampFormat:'ISO_8601'}).then(function(data){return data.query.echomarkseen.timestamp;});};mw.echo.api.LocalAPIHandler.prototype.markAllRead=function(source,type){var data;type=Array.isArray(type)?type:[type];data={action:'echomarkread',sections:type. join('|')};if(!this.isSourceLocal(source)){data.wikis=source;}return this.api.postWithToken('csrf',data).then(function(result){return OO.getProp(result.query,'echomarkread',type,'rawcount')||0;});};mw.echo.api.LocalAPIHandler.prototype.markItemsRead=function(source,itemIdArray,isRead){var data={action:'echomarkread'};if(!this.isSourceLocal(source)){data.wikis=source;}if(isRead){data.list=itemIdArray.join('|');}else{data.unreadlist=itemIdArray.join('|');}return this.api.postWithToken('csrf',data);};mw.echo.api.LocalAPIHandler.prototype.fetchUnreadCount=function(type,ignoreCrossWiki){var normalizedType=this.normalizedType[type],apiData={action:'query',meta:'notifications',notsections:normalizedType,notgroupbysection:1,notmessageunreadfirst:1,notlimit:this.limit,notprop:'count',uselang:this.userLang};if(!ignoreCrossWiki){apiData.notcrosswikisummary=1;}return this.api.get(apiData).then(function(result){if(type==='message'||type==='alert'){return OO.getProp(result.query,'notifications', normalizedType,'rawcount')||0;}else{return OO.getProp(result.query,'notifications','rawcount')||0;}});};mw.echo.api.LocalAPIHandler.prototype.getTypeParams=function(type){return $.extend({},this.typeParams[type],{notcrosswikisummary:1});};});(function{mw.echo.api.ForeignAPIHandler=function MwEchoApiForeignAPIHandler(apiUrl,config){config=config||{};mw.echo.api.ForeignAPIHandler.super.call(this,config);this.api=new mw.ForeignApi(apiUrl);this.unreadOnly=config.unreadOnly!==undefined?!!config.unreadOnly:!1;};OO.inheritClass(mw.echo.api.ForeignAPIHandler,mw.echo.api.LocalAPIHandler);mw.echo.api.ForeignAPIHandler.prototype.getTypeParams=function(type){var params={notforn:1};if(this.unreadOnly){params=$.extend({},params,{notfilter:'!read'});}return $.extend({},this.typeParams[type],params);};});(function{mw.echo.api.NetworkHandler=function MwEchoApiNetworkHandler(config){config=config||{};this.handlers={};this.setApiHandler('local',new mw.echo.api.LocalAPIHandler({limit:config. limit}));};OO.initClass(mw.echo.api.NetworkHandler);mw.echo.api.NetworkHandler.static.waitForAllPromises=function(promiseArray){var i,promises=promiseArray.slice(0),counter=0,deferred=$.Deferred,countPromises=function{counter++;if(counter===promises.length){deferred.resolve(promises);}};if(!promiseArray.length){deferred.resolve;}for(i=0;i<promises.length;i++){promises[i].always(countPromises);}return deferred.promise;};mw.echo.api.NetworkHandler.prototype.getApiHandler=function(name){return this.handlers[name];};mw.echo.api.NetworkHandler.prototype.setApiHandler=function(name,handler){this.handlers[name]=handler;};});});mw.loader.implement("ext.echo.init@yjudo",{"main":"ext.echo.init.js","files":{"ext.echo.init.js":function(require,module){(function{'use strict';var uri=new mw.Uri;if(uri.query.markasread!==undefined){delete uri.query.markasread;delete uri.query.markasreadwiki;window.history.replaceState(null,document.title,uri);}mw.echo=mw.echo||{};mw.echo.config=mw.echo.config||{};mw.echo.config.maxPrioritizedActions=2;$(function{var selectedWidget,echoApi,messageController,alertController,messageModelManager,alertModelManager,unreadMessageCounter,unreadAlertCounter,maxNotificationCount=require('./config.json').EchoMaxNotificationCount,pollingRate=require('./config.json').EchoPollForUpdates,documentTitle=document.title,$existingAlertLink=$('#pt-notifications-alert a'),$existingMessageLink=$('#pt-notifications-notice a'),numAlerts=$existingAlertLink.attr('data-counter-num'),numMessages=$existingMessageLink.attr('data-counter-num'),badgeLabelAlerts=$existingAlertLink.attr('data-counter-text'), badgeLabelMessages=$existingMessageLink.attr('data-counter-text'),hasUnseenAlerts=$existingAlertLink.hasClass('mw-echo-unseen-notifications'),hasUnseenMessages=$existingMessageLink.hasClass('mw-echo-unseen-notifications'),latestMessageNotifTime=new Date,latestAlertNotifTime=new Date,alertCount=parseInt(numAlerts),messageCount=parseInt(numMessages),loadingPromise=null,links={notifications:$existingAlertLink.attr('href')||mw.util.getUrl('Special:Notifications'),preferences:($('#pt-preferences a').attr('href')||mw.util.getUrl('Special:Preferences'))+'#mw-prefsection-echo'};function updateDocumentTitleWithNotificationCount(totalAlertCount,totalMessageCount){var totalCount=totalAlertCount+totalMessageCount,convertedTotalCount,newTitle=documentTitle;if(totalCount>0){convertedTotalCount=totalCount<=maxNotificationCount?totalCount:maxNotificationCount+1;convertedTotalCount=mw.msg('echo-badge-count',mw.language.convertNumber(convertedTotalCount));newTitle=mw.msg('parentheses', convertedTotalCount)+' '+documentTitle;}document.title=newTitle;}function showNotificationSnippet(modelManager,highestNotifTime){var timestampAsDate,highestTime=new Date;highestTime=highestNotifTime;modelManager.getLocalNotifications.forEach(function(notificationItem){timestampAsDate=new Date(notificationItem.timestamp);if(timestampAsDate>highestNotifTime){if(timestampAsDate>highestTime){highestTime=timestampAsDate;}if(!notificationItem.seen){mw.notify($.parseHTML(notificationItem.content.header),{title:mw.msg('echo-displaysnippet-title')});}}});return highestTime;}function updateBadgeState(modelManager,badgeWidget){modelManager.getLocalNotifications.forEach(function(notificationItem){if(!notificationItem.isSeen){badgeWidget.updateBadgeSeenState(true);}});}function isLivePollingFeatureEnabledOnWiki{return pollingRate!==0;}function userHasOptedInToLiveNotifications{return mw.user.options.get('echo-show-poll-updates')==='1';}if(isLivePollingFeatureEnabledOnWiki&& userHasOptedInToLiveNotifications){updateDocumentTitleWithNotificationCount(alertCount,messageCount);}function loadEcho{if(loadingPromise!==null){return loadingPromise;}echoApi=new mw.echo.api.EchoApi;loadingPromise=mw.loader.using('ext.echo.ui.desktop').then(function{$('body').append(mw.echo.ui.$overlay);unreadAlertCounter=new mw.echo.dm.UnreadNotificationCounter(echoApi,'alert',maxNotificationCount);alertModelManager=new mw.echo.dm.ModelManager(unreadAlertCounter,{type:'alert'});alertController=new mw.echo.Controller(echoApi,alertModelManager);mw.echo.ui.alertWidget=new mw.echo.ui.NotificationBadgeWidget(alertController,alertModelManager,links,{numItems:Number(numAlerts),convertedNumber:badgeLabelAlerts,hasUnseen:hasUnseenAlerts,badgeIcon:'bell',$overlay:mw.echo.ui.$overlay,href:$existingAlertLink.attr('href')});$existingAlertLink.parent.replaceWith(mw.echo.ui.alertWidget.$element);alertModelManager.on('allTalkRead',function{$('#pt-mytalk a').removeClass('mw-echo-alert'). text(mw.msg('mytalk'));});if(isLivePollingFeatureEnabledOnWiki){alertModelManager.getUnreadCounter.on('countChange',function(count){alertController.fetchLocalNotifications.then(function{updateBadgeState(alertModelManager,mw.echo.ui.alertWidget);if(userHasOptedInToLiveNotifications){latestAlertNotifTime=showNotificationSnippet(alertModelManager,latestAlertNotifTime);alertCount=count;updateDocumentTitleWithNotificationCount(count,messageCount);}});});}if($existingMessageLink.length){unreadMessageCounter=new mw.echo.dm.UnreadNotificationCounter(echoApi,'message',maxNotificationCount);messageModelManager=new mw.echo.dm.ModelManager(unreadMessageCounter,{type:'message'});messageController=new mw.echo.Controller(echoApi,messageModelManager);mw.echo.ui.messageWidget=new mw.echo.ui.NotificationBadgeWidget(messageController,messageModelManager,links,{$overlay:mw.echo.ui.$overlay,numItems:Number(numMessages),hasUnseen:hasUnseenMessages,badgeIcon:'tray',convertedNumber: badgeLabelMessages,href:$existingMessageLink.attr('href')});$existingMessageLink.parent.replaceWith(mw.echo.ui.messageWidget.$element);if(isLivePollingFeatureEnabledOnWiki){messageModelManager.getUnreadCounter.on('countChange',function(count){messageController.fetchLocalNotifications.then(function{updateBadgeState(messageModelManager,mw.echo.ui.messageWidget);if(userHasOptedInToLiveNotifications){latestMessageNotifTime=showNotificationSnippet(messageModelManager,latestMessageNotifTime);messageCount=count;updateDocumentTitleWithNotificationCount(alertCount,count);}});});}}});return loadingPromise;}$('.mw-echo-notification-badge-nojs').on('click',function(e){var timeOfClick=mw.now,$badge=$(this),clickedSection=$badge.parent.prop('id')==='pt-notifications-alert'?'alert':'message';if(e.which!==1||$badge.data('clicked')){return false;}$badge.data('clicked',true);$badge.addClass('mw-echo-notifications-badge-dimmed');echoApi=new mw.echo.api.EchoApi;echoApi.fetchNotifications (clickedSection).then(function(data){mw.track('timing.MediaWiki.echo.overlay.api',mw.now-timeOfClick);return data;});loadEcho.then(function{selectedWidget=clickedSection==='alert'?mw.echo.ui.alertWidget:mw.echo.ui.messageWidget;selectedWidget.once('finishLoading',function{mw.track('timing.MediaWiki.echo.overlay',mw.now-timeOfClick);});selectedWidget.popup.toggle(true);mw.track('timing.MediaWiki.echo.overlay.ooui',mw.now-timeOfClick);if(hasUnseenAlerts||hasUnseenMessages){mw.track('counter.MediaWiki.echo.unseen.click');}},function{$badge.removeClass('mw-echo-notifications-badge-dimmed');});return false;});function pollForNotificationCountUpdates{alertController.refreshUnreadCount;messageController.refreshUnreadCount;setTimeout(pollForNotificationCountUpdates,(document.hidden?5:1)*pollingRate*1000);}function pollStart{if(mw.config.get('skin')!=='minerva'&&isLivePollingFeatureEnabledOnWiki){loadEcho.then(pollForNotificationCountUpdates);}}setTimeout(pollStart,60* 1000);});});},"config.json":{"EchoMaxNotificationCount":99,"EchoPollForUpdates":0}}},{},{"echo-badge-count":"NaN undefineds","echo-displaysnippet-title":"New notification","parentheses":"($1)"});mw.loader.implement("ext.urlShortener.toolbar@11gl5",function($,jQuery,require,module){(function{$(function{var shortenUrlListItem=$('#t-urlshortener'),api=new mw.Api;shortenUrlListItem.on('click',function{var link=$(this).find('a');link.text(mw.msg('urlshortener-url-input-submitting'));api.post({action:'shortenurl',url:window.location.href}).done(function(data){var $input=$(' ').val(data.shortenurl.shorturl);shortenUrlListItem.empty.append($input);$input.trigger('focus').trigger('select');}).fail(function{link.text(mw.msg('urlshortener-failed-try-again'));}).always(function{shortenUrlListItem.off('click');});return false;});});});},{"css":["#t-urlshortener input{width:100%}"]},{"urlshortener-failed-try-again":"Failed. Try again?","urlshortener-ratelimit":"Please wait some time before shortening more URLs.","urlshortener-shortened-url-label":"Shortened URL","urlshortener-url-input-submitting":"Shortening…"});mw.loader.implement("jquery@1noll",function($,jQuery,require,module){(function(global,factory){"use strict";if(typeof module==="object"&&typeof module.exports==="object"){module.exports=global.document?factory(global,true):function(w){if(!w.document){throw new Error("jQuery requires a window with a document");}return factory(w);};}else{factory(global);}})(typeof window!=="undefined"?window:this,function(window,noGlobal){"use strict";var arr=[];var document=window.document;var getProto=Object.getPrototypeOf;var slice=arr.slice;var concat=arr.concat;var push=arr.push;var indexOf=arr.indexOf;var class2type={};var toString=class2type.toString;var hasOwn=class2type.hasOwnProperty;var fnToString=hasOwn.toString;var ObjectFunctionString=fnToString.call(Object);var support={};var isFunction=function isFunction(obj){return typeof obj==="function"&&typeof obj.nodeType!=="number";};var isWindow=function isWindow(obj){return obj!=null&&obj===obj.window;};var preservedScriptAttributes={type:!0, src:!0,noModule:!0};function DOMEval(code,doc,node){doc=doc||document;var i,script=doc.createElement("script");script.text=code;if(node){for(i in preservedScriptAttributes){if(node[i]){script[i]=node[i];}}}doc.head.appendChild(script).parentNode.removeChild(script);}function toType(obj){if(obj==null){return obj+"";}return typeof obj==="object"||typeof obj==="function"?class2type[toString.call(obj)]||"object":typeof obj;}var version="3.3.1",jQuery=function(selector,context){return new jQuery.fn.init(selector,context);},rtrim=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;jQuery.fn=jQuery.prototype={jquery:version,constructor:jQuery,length:0,toArray:function{return slice.call(this);},get:function(num){if(num==null){return slice.call(this);}return num<0?this[num+this.length]:this[num];},pushStack:function(elems){var ret=jQuery.merge(this.constructor,elems);ret.prevObject=this;return ret;},each:function(callback){return jQuery.each(this,callback);},map:function(callback){return this. pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem);}));},slice:function{return this.pushStack(slice.apply(this,arguments));},first:function{return this.eq(0);},last:function{return this.eq(-1);},eq:function(i){var len=this.length,j=+i+(i<0?len:0);return this.pushStack(j>=0&&j<len?[this[j]]:[]);},end:function{return this.prevObject||this.constructor;},push:push,sort:arr.sort,splice:arr.splice};jQuery.extend=jQuery.fn.extend=function{var options,name,src,copy,copyIsArray,clone,target=arguments[0]||{},i=1,length=arguments.length,deep=!1;if(typeof target==="boolean"){deep=target;target=arguments[i]||{};i++;}if(typeof target!=="object"&&!isFunction(target)){target={};}if(i===length){target=this;i--;}for(i<length;i++){if((options=arguments[i])!=null){for(name in options){src=target[name];copy=options[name];if(name==="__proto__"||target===copy){continue;}if(deep&&copy&&(jQuery.isPlainObject(copy)||(copyIsArray=Array.isArray(copy)))){if(copyIsArray){ copyIsArray=!1;clone=src&&Array.isArray(src)?src:[];}else{clone=src&&jQuery.isPlainObject(src)?src:{};}target[name]=jQuery.extend(deep,clone,copy);}else if(copy!==undefined){target[name]=copy;}}}}return target;};jQuery.extend({expando:"jQuery"+(version+Math.random).replace(/\D/g,""),isReady:!0,error:function(msg){throw new Error(msg);},noop:function{},isPlainObject:function(obj){var proto,Ctor;if(!obj||toString.call(obj)!=="[object Object]"){return false;}proto=getProto(obj);if(!proto){return true;}Ctor=hasOwn.call(proto,"constructor")&&proto.constructor;return typeof Ctor==="function"&&fnToString.call(Ctor)===ObjectFunctionString;},isEmptyObject:function(obj){var name;for(name in obj){return false;}return true;},globalEval:function(code){DOMEval(code);},each:function(obj,callback){var length,i=0;if(isArrayLike(obj)){length=obj.length;for(i<length;i++){if(callback.call(obj[i],i,obj[i])===false){break;}}}else{for(i in obj){if(callback.call(obj[i],i,obj[i])===false){break;}}} return obj;},trim:function(text){return text==null?"":(text+"").replace(rtrim,"");},makeArray:function(arr,results){var ret=results||[];if(arr!=null){if(isArrayLike(Object(arr))){jQuery.merge(ret,typeof arr==="string"?[arr]:arr);}else{push.call(ret,arr);}}return ret;},inArray:function(elem,arr,i){return arr==null?-1:indexOf.call(arr,elem,i);},merge:function(first,second){var len=+second.length,j=0,i=first.length;for(j<len;j++){first[i++]=second[j];}first.length=i;return first;},grep:function(elems,callback,invert){var callbackInverse,matches=[],i=0,length=elems.length,callbackExpect=!invert;for(i<length;i++){callbackInverse=!callback(elems[i],i);if(callbackInverse!==callbackExpect){matches.push(elems[i]);}}return matches;},map:function(elems,callback,arg){var length,value,i=0,ret=[];if(isArrayLike(elems)){length=elems.length;for(i<length;i++){value=callback(elems[i],i,arg);if(value!=null){ret.push(value);}}}else{for(i in elems){value=callback(elems[i],i,arg);if(value!=null){ret.push (value);}}}return concat.apply([],ret);},guid:1,support:support});if(typeof Symbol==="function"){jQuery.fn[Symbol.iterator]=arr[Symbol.iterator];}jQuery.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(i,name){class2type["[object "+name+"]"]=name.toLowerCase;});function isArrayLike(obj){var length=!!obj&&"length"in obj&&obj.length,type=toType(obj);if(isFunction(obj)||isWindow(obj)){return false;}return type==="array"||length===0||typeof length==="number"&&length>0&&(length-1)in obj;}var Sizzle=(function(window){var i,support,Expr,getText,isXML,tokenize,compile,select,outermostContext,sortInput,hasDuplicate,setDocument,document,docElem,documentIsHTML,rbuggyQSA,rbuggyMatches,matches,contains,expando="sizzle"+1*new Date,preferredDoc=window.document,dirruns=0,done=0,classCache=createCache,tokenCache=createCache,compilerCache=createCache,sortOrder=function(a,b){if(a===b){hasDuplicate=!0;}return 0;},hasOwn=({}).hasOwnProperty,arr=[], pop=arr.pop,push_native=arr.push,push=arr.push,slice=arr.slice,indexOf=function(list,elem){var i=0,len=list.length;for(i<len;i++){if(list[i]===elem){return i;}}return-1;},booleans="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",whitespace="[\\x20\\t\\r\\n\\f]",identifier="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",attributes="\\["+whitespace+"*("+identifier+")(?:"+whitespace+"*([*^$|!~]?=)"+whitespace+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+identifier+"))|)"+whitespace+"*\\]",pseudos=":("+identifier+")(?:\\(("+"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|"+"((?:\\\\.|[^\\\\[\\]]|"+attributes+")*)|"+".*"+")\\)|)",rwhitespace=new RegExp(whitespace+"+","g"),rtrim=new RegExp("^"+whitespace+"+|((?:^|[^\\\\])(?:\\\\.)*)"+whitespace+"+$","g"),rcomma=new RegExp("^"+whitespace+"*,"+whitespace+"*"),rcombinators=new RegExp("^"+whitespace+"*([>+~]|"+whitespace+")"+whitespace+"*"),rattributeQuotes=new RegExp("="+whitespace+"*([^\\]'\"]*?)"+whitespace+"*\\]","g"),rpseudo=new RegExp(pseudos),ridentifier=new RegExp("^"+identifier+"$"),matchExpr={"ID":new RegExp("^#("+identifier+")"),"CLASS":new RegExp("^\\.("+identifier+")"),"TAG":new RegExp("^("+identifier+"|[*])"),"ATTR":new RegExp("^"+attributes),"PSEUDO":new RegExp("^"+pseudos),"CHILD":new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+whitespace+"*(even|odd|(([+-]|)(\\d*)n|)"+whitespace+"*(?:([+-]|)"+whitespace+"*(\\d+)|))"+whitespace+"*\\)|)","i"),"bool":new RegExp("^(?:"+booleans+")$","i"),"needsContext":new RegExp("^"+whitespace+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+whitespace+"*((?:-\\d)?\\d*)"+whitespace+"*\\)|)(?=[^-]|$)","i")},rinputs=/^(?:input|select|textarea|button)$/i,rheader=/^h\d$/i,rnative=/^[^{]+\{\s*\[native \w/,rquickExpr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,rsibling=/[+~]/,runescape=new RegExp("\\\\([\\da-f]{1,6}"+whitespace+"?|("+whitespace+")|.)","ig"),funescape=function(_,escaped, escapedWhitespace){var high="0x"+escaped-0x10000;return high!==high||escapedWhitespace?escaped:high<0?String.fromCharCode(high+0x10000):String.fromCharCode(high>>10|0xD800,high&0x3FF|0xDC00);},rcssescape=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,fcssescape=function(ch,asCodePoint){if(asCodePoint){if(ch==="\0"){return"\uFFFD";}return ch.slice(0,-1)+"\\"+ch.charCodeAt(ch.length-1).toString(16)+" ";}return"\\"+ch;},unloadHandler=function{setDocument;},disabledAncestor=addCombinator(function(elem){return elem.disabled===!0&&("form"in elem||"label"in elem);},{dir:"parentNode",next:"legend"});try{push.apply((arr=slice.call(preferredDoc.childNodes)),preferredDoc.childNodes);arr[preferredDoc.childNodes.length].nodeType;}catch(e){push={apply:arr.length?function(target,els){push_native.apply(target,slice.call(els));}:function(target,els){var j=target.length,i=0;while((target[j++]=els[i++])){}target.length=j-1;}};}function Sizzle(selector,context,results,seed){var m,i,elem,nid, match,groups,newSelector,newContext=context&&context.ownerDocument,nodeType=context?context.nodeType:9;results=results||[];if(typeof selector!=="string"||!selector||nodeType!==1&&nodeType!==9&&nodeType!==11){return results;}if(!seed){if((context?context.ownerDocument||context:preferredDoc)!==document){setDocument(context);}context=context||document;if(documentIsHTML){if(nodeType!==11&&(match=rquickExpr.exec(selector))){if((m=match[1])){if(nodeType===9){if((elem=context.getElementById(m))){if(elem.id===m){results.push(elem);return results;}}else{return results;}}else{if(newContext&&(elem=newContext.getElementById(m))&&contains(context,elem)&&elem.id===m){results.push(elem);return results;}}}else if(match[2]){push.apply(results,context.getElementsByTagName(selector));return results;}else if((m=match[3])&&support.getElementsByClassName&&context.getElementsByClassName){push.apply(results,context.getElementsByClassName(m));return results;}}if(support.qsa&&!compilerCache[selector+" "]&&(! rbuggyQSA||!rbuggyQSA.test(selector))){if(nodeType!==1){newContext=context;newSelector=selector;}else if(context.nodeName.toLowerCase!=="object"){if((nid=context.getAttribute("id"))){nid=nid.replace(rcssescape,fcssescape);}else{context.setAttribute("id",(nid=expando));}groups=tokenize(selector);i=groups.length;while(i--){groups[i]="#"+nid+" "+toSelector(groups[i]);}newSelector=groups.join(",");newContext=rsibling.test(selector)&&testContext(context.parentNode)||context;}if(newSelector){try{push.apply(results,newContext.querySelectorAll(newSelector));return results;}catch(qsaError){}finally{if(nid===expando){context.removeAttribute("id");}}}}}}return select(selector.replace(rtrim,"$1"),context,results,seed);}function createCache{var keys=[];function cache(key,value){if(keys.push(key+" ")>Expr.cacheLength){delete cache[keys.shift];}return(cache[key+" "]=value);}return cache;}function markFunction(fn){fn[expando]=!0;return fn;}function assert(fn){var el=document.createElement( "fieldset");try{return!!fn(el);}catch(e){return false;}finally{if(el.parentNode){el.parentNode.removeChild(el);}el=null;}}function addHandle(attrs,handler){var arr=attrs.split("|"),i=arr.length;while(i--){Expr.attrHandle[arr[i]]=handler;}}function siblingCheck(a,b){var cur=b&&a,diff=cur&&a.nodeType===1&&b.nodeType===1&&a.sourceIndex-b.sourceIndex;if(diff){return diff;}if(cur){while((cur=cur.nextSibling)){if(cur===b){return-1;}}}return a?1:-1;}function createInputPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase;return name==="input"&&elem.type===type;};}function createButtonPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase;return(name==="input"||name==="button")&&elem.type===type;};}function createDisabledPseudo(disabled){return function(elem){if("form"in elem){if(elem.parentNode&&elem.disabled===false){if("label"in elem){if("label"in elem.parentNode){return elem.parentNode.disabled===disabled;}else{return elem.disabled===disabled;}}return elem .isDisabled===disabled||elem.isDisabled!==!disabled&&disabledAncestor(elem)===disabled;}return elem.disabled===disabled;}else if("label"in elem){return elem.disabled===disabled;}return false;};}function createPositionalPseudo(fn){return markFunction(function(argument){argument=+argument;return markFunction(function(seed,matches){var j,matchIndexes=fn([],seed.length,argument),i=matchIndexes.length;while(i--){if(seed[(j=matchIndexes[i])]){seed[j]=!(matches[j]=seed[j]);}}});});}function testContext(context){return context&&typeof context.getElementsByTagName!=="undefined"&&context;}support=Sizzle.support={};isXML=Sizzle.isXML=function(elem){var documentElement=elem&&(elem.ownerDocument||elem).documentElement;return documentElement?documentElement.nodeName!=="HTML":!1;};setDocument=Sizzle.setDocument=function(node){var hasCompare,subWindow,doc=node?node.ownerDocument||node:preferredDoc;if(doc===document||doc.nodeType!==9||!doc.documentElement){return document;}document=doc;docElem= document.documentElement;documentIsHTML=!isXML(document);if(preferredDoc!==document&&(subWindow=document.defaultView)&&subWindow.top!==subWindow){if(subWindow.addEventListener){subWindow.addEventListener("unload",unloadHandler,false);}else if(subWindow.attachEvent){subWindow.attachEvent("onunload",unloadHandler);}}support.attributes=assert(function(el){el.className="i";return!el.getAttribute("className");});support.getElementsByTagName=assert(function(el){el.appendChild(document.createComment(""));return!el.getElementsByTagName("*").length;});support.getElementsByClassName=rnative.test(document.getElementsByClassName);support.getById=assert(function(el){docElem.appendChild(el).id=expando;return!document.getElementsByName||!document.getElementsByName(expando).length;});if(support.getById){Expr.filter["ID"]=function(id){var attrId=id.replace(runescape,funescape);return function(elem){return elem.getAttribute("id")===attrId;};};Expr.find["ID"]=function(id,context){if(typeof context. getElementById!=="undefined"&&documentIsHTML){var elem=context.getElementById(id);return elem?[elem]:[];}};}else{Expr.filter["ID"]=function(id){var attrId=id.replace(runescape,funescape);return function(elem){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return node&&node.value===attrId;};};Expr.find["ID"]=function(id,context){if(typeof context.getElementById!=="undefined"&&documentIsHTML){var node,i,elems,elem=context.getElementById(id);if(elem){node=elem.getAttributeNode("id");if(node&&node.value===id){return[elem];}elems=context.getElementsByName(id);i=0;while((elem=elems[i++])){node=elem.getAttributeNode("id");if(node&&node.value===id){return[elem];}}}return[];}};}Expr.find["TAG"]=support.getElementsByTagName?function(tag,context){if(typeof context.getElementsByTagName!=="undefined"){return context.getElementsByTagName(tag);}else if(support.qsa){return context.querySelectorAll(tag);}}:function(tag,context){var elem,tmp=[],i=0,results=context. getElementsByTagName(tag);if(tag==="*"){while((elem=results[i++])){if(elem.nodeType===1){tmp.push(elem);}}return tmp;}return results;};Expr.find["CLASS"]=support.getElementsByClassName&&function(className,context){if(typeof context.getElementsByClassName!=="undefined"&&documentIsHTML){return context.getElementsByClassName(className);}};rbuggyMatches=[];rbuggyQSA=[];if((support.qsa=rnative.test(document.querySelectorAll))){assert(function(el){docElem.appendChild(el).innerHTML=""+""+" ";if(el.querySelectorAll("[msallowcapture^=]").length){rbuggyQSA.push("[*^$]="+whitespace+"*(?:|\"\")");}if(!el.querySelectorAll("[selected]").length){rbuggyQSA.push("\\["+whitespace+"*(?:value|"+booleans+")");}if(!el.querySelectorAll("[id~="+expando+"-]").length){rbuggyQSA.push("~=");}if(!el.querySelectorAll(":checked").length){rbuggyQSA.push(":checked");}if(!el.querySelectorAll("a#"+expando+ "+*").length){rbuggyQSA.push(".#.+[+~]");}});assert(function(el){el.innerHTML=""+" ";var input=document.createElement("input");input.setAttribute("type","hidden");el.appendChild(input).setAttribute("name","D");if(el.querySelectorAll("[name=d]").length){rbuggyQSA.push("name"+whitespace+"*[*^$|!~]?=");}if(el.querySelectorAll(":enabled").length!==2){rbuggyQSA.push(":enabled",":disabled");}docElem.appendChild(el).disabled=!0;if(el.querySelectorAll(":disabled").length!==2){rbuggyQSA.push(":enabled",":disabled");}el.querySelectorAll("*,:x");rbuggyQSA.push(",.*:");});}if((support.matchesSelector=rnative.test((matches=docElem.matches||docElem.webkitMatchesSelector||docElem.mozMatchesSelector||docElem.oMatchesSelector||docElem.msMatchesSelector)))){assert(function(el){support.disconnectedMatch=matches.call(el,"*");matches.call(el,"[s!=]:x");rbuggyMatches.push("!=",pseudos);});}rbuggyQSA=rbuggyQSA.length&&new RegExp(rbuggyQSA.join("|"));rbuggyMatches=rbuggyMatches.length&&new RegExp(rbuggyMatches.join("|"));hasCompare=rnative.test(docElem.compareDocumentPosition);contains=hasCompare||rnative.test(docElem.contains)?function(a,b){var adown=a.nodeType===9?a.documentElement:a,bup=b&&b.parentNode;return a===bup||!!(bup&&bup.nodeType===1&&(adown.contains?adown.contains(bup):a.compareDocumentPosition&&a.compareDocumentPosition(bup)&16));}:function(a,b){if(b){while((b=b.parentNode)){if(b===a){return true;}}}return false;};sortOrder=hasCompare?function(a,b){if(a===b){hasDuplicate=!0;return 0;}var compare=!a.compareDocumentPosition-!b.compareDocumentPosition;if(compare){return compare;}compare=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1;if(compare&1||(!support.sortDetached&&b.compareDocumentPosition(a)===compare)){if(a===document||a.ownerDocument===preferredDoc&&contains(preferredDoc,a)){return-1;}if(b===document||b.ownerDocument===preferredDoc&&contains(preferredDoc, b)){return 1;}return sortInput?(indexOf(sortInput,a)-indexOf(sortInput,b)):0;}return compare&4?-1:1;}:function(a,b){if(a===b){hasDuplicate=!0;return 0;}var cur,i=0,aup=a.parentNode,bup=b.parentNode,ap=[a],bp=[b];if(!aup||!bup){return a===document?-1:b===document?1:aup?-1:bup?1:sortInput?(indexOf(sortInput,a)-indexOf(sortInput,b)):0;}else if(aup===bup){return siblingCheck(a,b);}cur=a;while((cur=cur.parentNode)){ap.unshift(cur);}cur=b;while((cur=cur.parentNode)){bp.unshift(cur);}while(ap[i]===bp[i]){i++;}return i?siblingCheck(ap[i],bp[i]):ap[i]===preferredDoc?-1:bp[i]===preferredDoc?1:0;};return document;};Sizzle.matches=function(expr,elements){return Sizzle(expr,null,null,elements);};Sizzle.matchesSelector=function(elem,expr){if((elem.ownerDocument||elem)!==document){setDocument(elem);}expr=expr.replace(rattributeQuotes,"='$1']");if(support.matchesSelector&&documentIsHTML&&!compilerCache[expr+" "]&&(!rbuggyMatches||!rbuggyMatches.test(expr))&&(!rbuggyQSA||!rbuggyQSA.test(expr))){try{ var ret=matches.call(elem,expr);if(ret||support.disconnectedMatch||elem.document&&elem.document.nodeType!==11){return ret;}}catch(e){}}return Sizzle(expr,document,null,[elem]).length>0;};Sizzle.contains=function(context,elem){if((context.ownerDocument||context)!==document){setDocument(context);}return contains(context,elem);};Sizzle.attr=function(elem,name){if((elem.ownerDocument||elem)!==document){setDocument(elem);}var fn=Expr.attrHandle[name.toLowerCase],val=fn&&hasOwn.call(Expr.attrHandle,name.toLowerCase)?fn(elem,name,!documentIsHTML):undefined;return val!==undefined?val:support.attributes||!documentIsHTML?elem.getAttribute(name):(val=elem.getAttributeNode(name))&&val.specified?val.value:null;};Sizzle.escape=function(sel){return(sel+"").replace(rcssescape,fcssescape);};Sizzle.error=function(msg){throw new Error("Syntax error, unrecognized expression: "+msg);};Sizzle.uniqueSort=function(results){var elem,duplicates=[],j=0,i=0;hasDuplicate=!support.detectDuplicates;sortInput=! support.sortStable&&results.slice(0);results.sort(sortOrder);if(hasDuplicate){while((elem=results[i++])){if(elem===results[i]){j=duplicates.push(i);}}while(j--){results.splice(duplicates[j],1);}}sortInput=null;return results;};getText=Sizzle.getText=function(elem){var node,ret="",i=0,nodeType=elem.nodeType;if(!nodeType){while((node=elem[i++])){ret+=getText(node);}}else if(nodeType===1||nodeType===9||nodeType===11){if(typeof elem.textContent==="string"){return elem.textContent;}else{for(elem=elem.firstChild;elem;elem=elem.nextSibling){ret+=getText(elem);}}}else if(nodeType===3||nodeType===4){return elem.nodeValue;}return ret;};Expr=Sizzle.selectors={cacheLength:50,createPseudo:markFunction,match:matchExpr,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{"ATTR":function(match){match[1]=match[1].replace(runescape,funescape);match[3]=(match[3]||match[4]||match[5]||""). replace(runescape,funescape);if(match[2]==="~="){match[3]=" "+match[3]+" ";}return match.slice(0,4);},"CHILD":function(match){match[1]=match[1].toLowerCase;if(match[1].slice(0,3)==="nth"){if(!match[3]){Sizzle.error(match[0]);}match[4]=+(match[4]?match[5]+(match[6]||1):2*(match[3]==="even"||match[3]==="odd"));match[5]=+((match[7]+match[8])||match[3]==="odd");}else if(match[3]){Sizzle.error(match[0]);}return match;},"PSEUDO":function(match){var excess,unquoted=!match[6]&&match[2];if(matchExpr["CHILD"].test(match[0])){return null;}if(match[3]){match[2]=match[4]||match[5]||"";}else if(unquoted&&rpseudo.test(unquoted)&&(excess=tokenize(unquoted,true))&&(excess=unquoted.indexOf(")",unquoted.length-excess)-unquoted.length)){match[0]=match[0].slice(0,excess);match[2]=unquoted.slice(0,excess);}return match.slice(0,3);}},filter:{"TAG":function(nodeNameSelector){var nodeName=nodeNameSelector.replace(runescape,funescape).toLowerCase;return nodeNameSelector==="*"?function{return true;}: function(elem){return elem.nodeName&&elem.nodeName.toLowerCase===nodeName;};},"CLASS":function(className){var pattern=classCache[className+" "];return pattern||(pattern=new RegExp("(^|"+whitespace+")"+className+"("+whitespace+"|$)"))&&classCache(className,function(elem){return pattern.test(typeof elem.className==="string"&&elem.className||typeof elem.getAttribute!=="undefined"&&elem.getAttribute("class")||"");});},"ATTR":function(name,operator,check){return function(elem){var result=Sizzle.attr(elem,name);if(result==null){return operator==="!=";}if(!operator){return true;}result+="";return operator==="="?result===check:operator==="!="?result!==check:operator==="^="?check&&result.indexOf(check)===0:operator==="*="?check&&result.indexOf(check)>-1:operator==="$="?check&&result.slice(-check.length)===check:operator==="~="?(" "+result.replace(rwhitespace," ")+" ").indexOf(check)>-1:operator==="|="?result===check||result.slice(0,check.length+1)===check+"-":!1;};},"CHILD":function(type, what,argument,first,last){var simple=type.slice(0,3)!=="nth",forward=type.slice(-4)!=="last",ofType=what==="of-type";return first===1&&last===0?function(elem){return!!elem.parentNode;}:function(elem,context,xml){var cache,uniqueCache,outerCache,node,nodeIndex,start,dir=simple!==forward?"nextSibling":"previousSibling",parent=elem.parentNode,name=ofType&&elem.nodeName.toLowerCase,useCache=!xml&&!ofType,diff=!1;if(parent){if(simple){while(dir){node=elem;while((node=node[dir])){if(ofType?node.nodeName.toLowerCase===name:node.nodeType===1){return false;}}start=dir=type==="only"&&!start&&"nextSibling";}return true;}start=[forward?parent.firstChild:parent.lastChild];if(forward&&useCache){node=parent;outerCache=node[expando]||(node[expando]={});uniqueCache=outerCache[node.uniqueID]||(outerCache[node.uniqueID]={});cache=uniqueCache[type]||[];nodeIndex=cache[0]===dirruns&&cache[1];diff=nodeIndex&&cache[2];node=nodeIndex&&parent.childNodes[nodeIndex];while((node=++nodeIndex&&node&&node[dir ]||(diff=nodeIndex=0)||start.pop)){if(node.nodeType===1&&++diff&&node===elem){uniqueCache[type]=[dirruns,nodeIndex,diff];break;}}}else{if(useCache){node=elem;outerCache=node[expando]||(node[expando]={});uniqueCache=outerCache[node.uniqueID]||(outerCache[node.uniqueID]={});cache=uniqueCache[type]||[];nodeIndex=cache[0]===dirruns&&cache[1];diff=nodeIndex;}if(diff===false){while((node=++nodeIndex&&node&&node[dir]||(diff=nodeIndex=0)||start.pop)){if((ofType?node.nodeName.toLowerCase===name:node.nodeType===1)&&++diff){if(useCache){outerCache=node[expando]||(node[expando]={});uniqueCache=outerCache[node.uniqueID]||(outerCache[node.uniqueID]={});uniqueCache[type]=[dirruns,diff];}if(node===elem){break;}}}}}diff-=last;return diff===first||(diff%first===0&&diff/first>=0);}};},"PSEUDO":function(pseudo,argument){var args,fn=Expr.pseudos[pseudo]||Expr.setFilters[pseudo.toLowerCase]||Sizzle.error("unsupported pseudo: "+pseudo);if(fn[expando]){return fn(argument);}if(fn.length>1){args=[pseudo ,pseudo,"",argument];return Expr.setFilters.hasOwnProperty(pseudo.toLowerCase)?markFunction(function(seed,matches){var idx,matched=fn(seed,argument),i=matched.length;while(i--){idx=indexOf(seed,matched[i]);seed[idx]=!(matches[idx]=matched[i]);}}):function(elem){return fn(elem,0,args);};}return fn;}},pseudos:{"not":markFunction(function(selector){var input=[],results=[],matcher=compile(selector.replace(rtrim,"$1"));return matcher[expando]?markFunction(function(seed,matches,context,xml){var elem,unmatched=matcher(seed,null,xml,[]),i=seed.length;while(i--){if((elem=unmatched[i])){seed[i]=!(matches[i]=elem);}}}):function(elem,context,xml){input[0]=elem;matcher(input,null,xml,results);input[0]=null;return!results.pop;};}),"has":markFunction(function(selector){return function(elem){return Sizzle(selector,elem).length>0;};}),"contains":markFunction(function(text){text=text.replace(runescape,funescape);return function(elem){return(elem.textContent||elem.innerText||getText(elem)).indexOf( text)>-1;};}),"lang":markFunction(function(lang){if(!ridentifier.test(lang||"")){Sizzle.error("unsupported lang: "+lang);}lang=lang.replace(runescape,funescape).toLowerCase;return function(elem){var elemLang;do{if((elemLang=documentIsHTML?elem.lang:elem.getAttribute("xml:lang")||elem.getAttribute("lang"))){elemLang=elemLang.toLowerCase;return elemLang===lang||elemLang.indexOf(lang+"-")===0;}}while((elem=elem.parentNode)&&elem.nodeType===1);return false;};}),"target":function(elem){var hash=window.location&&window.location.hash;return hash&&hash.slice(1)===elem.id;},"root":function(elem){return elem===docElem;},"focus":function(elem){return elem===document.activeElement&&(!document.hasFocus||document.hasFocus)&&!!(elem.type||elem.href||~elem.tabIndex);},"enabled":createDisabledPseudo(false),"disabled":createDisabledPseudo(true),"checked":function(elem){var nodeName=elem.nodeName.toLowerCase;return(nodeName==="input"&&!!elem.checked)||(nodeName==="option"&&!!elem.selected);}, "selected":function(elem){if(elem.parentNode){elem.parentNode.selectedIndex;}return elem.selected===!0;},"empty":function(elem){for(elem=elem.firstChild;elem;elem=elem.nextSibling){if(elem.nodeType<6){return false;}}return true;},"parent":function(elem){return!Expr.pseudos["empty"](elem);},"header":function(elem){return rheader.test(elem.nodeName);},"input":function(elem){return rinputs.test(elem.nodeName);},"button":function(elem){var name=elem.nodeName.toLowerCase;return name==="input"&&elem.type==="button"||name==="button";},"text":function(elem){var attr;return elem.nodeName.toLowerCase==="input"&&elem.type==="text"&&((attr=elem.getAttribute("type"))==null||attr.toLowerCase==="text");},"first":createPositionalPseudo(function{return[0];}),"last":createPositionalPseudo(function(matchIndexes,length){return[length-1];}),"eq":createPositionalPseudo(function(matchIndexes,length,argument){return[argument<0?argument+length:argument];}),"even":createPositionalPseudo(function( matchIndexes,length){var i=0;for(i=0;){matchIndexes.push(i);}return matchIndexes;}),"gt":createPositionalPseudo(function(matchIndexes,length,argument){var i=argument<0?argument+length:argument;for(++i<length;){matchIndexes.push(i);}return matchIndexes;})}};Expr.pseudos["nth"]=Expr.pseudos["eq"];for(i in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0}){Expr.pseudos[i]=createInputPseudo(i);}for(i in{submit:!0,reset:!0}){Expr.pseudos[i]=createButtonPseudo(i);}function setFilters{}setFilters.prototype=Expr.filters=Expr.pseudos;Expr.setFilters=new setFilters;tokenize=Sizzle.tokenize=function(selector,parseOnly){var matched,match,tokens,type,soFar,groups,preFilters, cached=tokenCache[selector+" "];if(cached){return parseOnly?0:cached.slice(0);}soFar=selector;groups=[];preFilters=Expr.preFilter;while(soFar){if(!matched||(match=rcomma.exec(soFar))){if(match){soFar=soFar.slice(match[0].length)||soFar;}groups.push((tokens=[]));}matched=!1;if((match=rcombinators.exec(soFar))){matched=match.shift;tokens.push({value:matched,type:match[0].replace(rtrim," ")});soFar=soFar.slice(matched.length);}for(type in Expr.filter){if((match=matchExpr[type].exec(soFar))&&(!preFilters[type]||(match=preFilters[type](match)))){matched=match.shift;tokens.push({value:matched,type:type,matches:match});soFar=soFar.slice(matched.length);}}if(!matched){break;}}return parseOnly?soFar.length:soFar?Sizzle.error(selector):tokenCache(selector,groups).slice(0);};function toSelector(tokens){var i=0,len=tokens.length,selector="";for(i<len;i++){selector+=tokens[i].value;}return selector;}function addCombinator(matcher,combinator,base){var dir=combinator.dir,skip=combinator.next, key=skip||dir,checkNonElements=base&&key==="parentNode",doneName=done++;return combinator.first?function(elem,context,xml){while((elem=elem[dir])){if(elem.nodeType===1||checkNonElements){return matcher(elem,context,xml);}}return false;}:function(elem,context,xml){var oldCache,uniqueCache,outerCache,newCache=[dirruns,doneName];if(xml){while((elem=elem[dir])){if(elem.nodeType===1||checkNonElements){if(matcher(elem,context,xml)){return true;}}}}else{while((elem=elem[dir])){if(elem.nodeType===1||checkNonElements){outerCache=elem[expando]||(elem[expando]={});uniqueCache=outerCache[elem.uniqueID]||(outerCache[elem.uniqueID]={});if(skip&&skip===elem.nodeName.toLowerCase){elem=elem[dir]||elem;}else if((oldCache=uniqueCache[key])&&oldCache[0]===dirruns&&oldCache[1]===doneName){return(newCache[2]=oldCache[2]);}else{uniqueCache[key]=newCache;if((newCache[2]=matcher(elem,context,xml))){return true;}}}}}return false;};}function elementMatcher(matchers){return matchers.length>1?function(elem, context,xml){var i=matchers.length;while(i--){if(!matchers[i](elem,context,xml)){return false;}}return true;}:matchers[0];}function multipleContexts(selector,contexts,results){var i=0,len=contexts.length;for(i<len;i++){Sizzle(selector,contexts[i],results);}return results;}function condense(unmatched,map,filter,context,xml){var elem,newUnmatched=[],i=0,len=unmatched.length,mapped=map!=null;for(i<len;i++){if((elem=unmatched[i])){if(!filter||filter(elem,context,xml)){newUnmatched.push(elem);if(mapped){map.push(i);}}}}return newUnmatched;}function setMatcher(preFilter,selector,matcher,postFilter,postFinder,postSelector){if(postFilter&&!postFilter[expando]){postFilter=setMatcher(postFilter);}if(postFinder&&!postFinder[expando]){postFinder=setMatcher(postFinder,postSelector);}return markFunction(function(seed,results,context,xml){var temp,i,elem,preMap=[],postMap=[],preexisting=results.length,elems=seed||multipleContexts(selector||"*",context.nodeType?[context]:context,[]),matcherIn= preFilter&&(seed||!selector)?condense(elems,preMap,preFilter,context,xml):elems,matcherOut=matcher?postFinder||(seed?preFilter:preexisting||postFilter)?[]:results:matcherIn;if(matcher){matcher(matcherIn,matcherOut,context,xml);}if(postFilter){temp=condense(matcherOut,postMap);postFilter(temp,[],context,xml);i=temp.length;while(i--){if((elem=temp[i])){matcherOut[postMap[i]]=!(matcherIn[postMap[i]]=elem);}}}if(seed){if(postFinder||preFilter){if(postFinder){temp=[];i=matcherOut.length;while(i--){if((elem=matcherOut[i])){temp.push((matcherIn[i]=elem));}}postFinder(null,(matcherOut=[]),temp,xml);}i=matcherOut.length;while(i--){if((elem=matcherOut[i])&&(temp=postFinder?indexOf(seed,elem):preMap[i])>-1){seed[temp]=!(results[temp]=elem);}}}}else{matcherOut=condense(matcherOut===results?matcherOut.splice(preexisting,matcherOut.length):matcherOut);if(postFinder){postFinder(null,results,matcherOut,xml);}else{push.apply(results,matcherOut);}}});}function matcherFromTokens(tokens){var checkContext, matcher,j,len=tokens.length,leadingRelative=Expr.relative[tokens[0].type],implicitRelative=leadingRelative||Expr.relative[" "],i=leadingRelative?1:0,matchContext=addCombinator(function(elem){return elem===checkContext;},implicitRelative,true),matchAnyContext=addCombinator(function(elem){return indexOf(checkContext,elem)>-1;},implicitRelative,true),matchers=[function(elem,context,xml){var ret=(!leadingRelative&&(xml||context!==outermostContext))||((checkContext=context).nodeType?matchContext(elem,context,xml):matchAnyContext(elem,context,xml));checkContext=null;return ret;}];for(i1&&elementMatcher(matchers),i>1&&toSelector(tokens.slice(0,i-1).concat({value:tokens[i-2].type===" "?"*":""})).replace( rtrim,"$1"),matcher,i0,byElement=elementMatchers.length>0,superMatcher=function(seed,context,xml,results,outermost){var elem,j,matcher,matchedCount=0,i="0",unmatched=seed&&[],setMatched=[],contextBackup=outermostContext,elems=seed||byElement&&Expr.find["TAG"]("*",outermost),dirrunsUnique=(dirruns+=contextBackup==null?1:Math.random||0.1),len=elems.length;if(outermost){outermostContext=context===document||context||outermost;}for(i!==len&&(elem=elems[i])!=null;i++){if(byElement&&elem){j=0;if(!context&&elem.ownerDocument!==document){setDocument(elem);xml=!documentIsHTML;}while((matcher=elementMatchers[j++])){if(matcher(elem,context||document,xml)){results.push(elem);break;}}if(outermost){dirruns=dirrunsUnique;}}if(bySet){ if((elem=!matcher&&elem)){matchedCount--;}if(seed){unmatched.push(elem);}}}matchedCount+=i;if(bySet&&i!==matchedCount){j=0;while((matcher=setMatchers[j++])){matcher(unmatched,setMatched,context,xml);}if(seed){if(matchedCount>0){while(i--){if(!(unmatched[i]||setMatched[i])){setMatched[i]=pop.call(results);}}}setMatched=condense(setMatched);}push.apply(results,setMatched);if(outermost&&!seed&&setMatched.length>0&&(matchedCount+setMatchers.length)>1){Sizzle.uniqueSort(results);}}if(outermost){dirruns=dirrunsUnique;outermostContext=contextBackup;}return unmatched;};return bySet?markFunction(superMatcher):superMatcher;}compile=Sizzle.compile=function(selector,match){var i,setMatchers=[],elementMatchers=[],cached=compilerCache[selector+" "];if(!cached){if(!match){match=tokenize(selector);}i=match.length;while(i--){cached=matcherFromTokens(match[i]);if(cached[expando]){setMatchers.push(cached);}else{elementMatchers.push(cached);}}cached=compilerCache(selector,matcherFromGroupMatchers( elementMatchers,setMatchers));cached.selector=selector;}return cached;};select=Sizzle.select=function(selector,context,results,seed){var i,tokens,token,type,find,compiled=typeof selector==="function"&&selector,match=!seed&&tokenize((selector=compiled.selector||selector));results=results||[];if(match.length===1){tokens=match[0]=match[0].slice(0);if(tokens.length>2&&(token=tokens[0]).type==="ID"&&context.nodeType===9&&documentIsHTML&&Expr.relative[tokens[1].type]){context=(Expr.find["ID"](token.matches[0].replace(runescape,funescape),context)||[])[0];if(!context){return results;}else if(compiled){context=context.parentNode;}selector=selector.slice(tokens.shift.value.length);}i=matchExpr["needsContext"].test(selector)?0:tokens.length;while(i--){token=tokens[i];if(Expr.relative[(type=token.type)]){break;}if((find=Expr.find[type])){if((seed=find(token.matches[0].replace(runescape,funescape),rsibling.test(tokens[0].type)&&testContext(context.parentNode)||context))){tokens.splice(i,1); selector=seed.length&&toSelector(tokens);if(!selector){push.apply(results,seed);return results;}break;}}}}(compiled||compile(selector,match))(seed,context,!documentIsHTML,results,!context||rsibling.test(selector)&&testContext(context.parentNode)||context);return results;};support.sortStable=expando.split("").sort(sortOrder).join("")===expando;support.detectDuplicates=!!hasDuplicate;setDocument;support.sortDetached=assert(function(el){return el.compareDocumentPosition(document.createElement("fieldset"))&1;});if(!assert(function(el){el.innerHTML="";return el.firstChild.getAttribute("href")==="#";})){addHandle("type|href|height|width",function(elem,name,isXML){if(!isXML){return elem.getAttribute(name,name.toLowerCase==="type"?1:2);}});}if(!support.attributes||!assert(function(el){el.innerHTML=" ";el.firstChild.setAttribute("value","");return el.firstChild.getAttribute("value")==="";})){addHandle("value",function(elem,name,isXML){if(!isXML&&elem.nodeName. toLowerCase==="input"){return elem.defaultValue;}});}if(!assert(function(el){return el.getAttribute("disabled")==null;})){addHandle(booleans,function(elem,name,isXML){var val;if(!isXML){return elem[name]===!0?name.toLowerCase:(val=elem.getAttributeNode(name))&&val.specified?val.value:null;}});}return Sizzle;})(window);jQuery.find=Sizzle;jQuery.expr=Sizzle.selectors;jQuery.expr[":"]=jQuery.expr.pseudos;jQuery.uniqueSort=jQuery.unique=Sizzle.uniqueSort;jQuery.text=Sizzle.getText;jQuery.isXMLDoc=Sizzle.isXML;jQuery.contains=Sizzle.contains;jQuery.escapeSelector=Sizzle.escape;var dir=function(elem,dir,until){var matched=[],truncate=until!==undefined;while((elem=elem[dir])&&elem.nodeType!==9){if(elem.nodeType===1){if(truncate&&jQuery(elem).is(until)){break;}matched.push(elem);}}return matched;};var siblings=function(n,elem){var matched=[];for(n;n=n.nextSibling){if(n.nodeType===1&&n!==elem){matched.push(n);}}return matched;};var rneedsContext=jQuery.expr.match.needsContext;function nodeName(elem,name){return elem.nodeName&&elem.nodeName.toLowerCase===name.toLowerCase;};var rsingleTag=(/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i);function winnow(elements,qualifier,not){if(isFunction(qualifier)){return jQuery.grep(elements,function(elem,i){return!!qualifier.call(elem,i,elem)!==not;});}if(qualifier.nodeType){return jQuery.grep(elements,function(elem){return(elem===qualifier)!==not;});}if(typeof qualifier!=="string"){return jQuery.grep(elements,function(elem){return(indexOf.call(qualifier,elem)>-1)!==not;});}return jQuery.filter(qualifier,elements,not);}jQuery.filter=function(expr,elems,not){var elem=elems[0];if(not){expr=":not("+expr+")";}if(elems.length===1&&elem.nodeType===1){return jQuery.find.matchesSelector(elem,expr)?[elem]:[];}return jQuery.find.matches(expr,jQuery.grep(elems,function(elem){return elem.nodeType===1;}));};jQuery.fn.extend({find:function(selector){var i,ret,len=this.length,self=this;if(typeof selector!=="string"){ return this.pushStack(jQuery(selector).filter(function{for(i=0;i1?jQuery.uniqueSort(ret):ret;},filter:function(selector){return this.pushStack(winnow(this,selector||[],false));},not:function(selector){return this.pushStack(winnow(this,selector||[],true));},is:function(selector){return!!winnow(this,typeof selector==="string"&&rneedsContext.test(selector)?jQuery(selector):selector||[],false).length;}});var rootjQuery,rquickExpr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,init=jQuery.fn.init=function(selector,context,root){var match,elem;if(!selector){return this;}root=root||rootjQuery;if(typeof selector==="string"){if(selector[0]==="<"&&selector[selector.length-1]===">"&&selector.length>=3){match=[null,selector,null];}else{match=rquickExpr.exec(selector);}if(match&&(match[1]||!context)){if(match[1]){context=context instanceof jQuery?context[0]
 * context;jQuery.merge(this,jQuery.parseHTML(match[1],context&&context.nodeType?context.ownerDocument||context:document,true));if(rsingleTag.test(match[1])&&jQuery.isPlainObject(context)){for(match in context){if(isFunction(this[match])){this[match](context[match]);}else{this.attr(match,context[match]);}}}return this;}else{elem=document.getElementById(match[2]);if(elem){this[0]=elem;this.length=1;}return this;}}else if(!context||context.jquery){return(context||root).find(selector);}else{return this.constructor(context).find(selector);}}else if(selector.nodeType){this[0]=selector;this.length=1;return this;}else if(isFunction(selector)){return root.ready!==undefined?root.ready(selector):selector(jQuery);}return jQuery.makeArray(selector,this);};init.prototype=jQuery.fn;rootjQuery=jQuery(document);var rparentsprev=/^(?:parents|prev(?:Until|All))/,guaranteedUnique={children:!0,contents:!0,next:!0,prev:!0};jQuery.fn.extend({has:function(target){var targets=jQuery(target,this),l=

targets.length;return this.filter(function{var i=0;for(i-1:cur.nodeType===1&&jQuery.find.matchesSelector(cur,selectors))){matched.push(cur);break;}}}}return this.pushStack(matched.length>1?jQuery.uniqueSort(matched):matched);},index:function(elem){if(!elem){return(this[0]&&this[0].parentNode)?this.first.prevAll.length:-1;}if(typeof elem==="string"){return indexOf.call(jQuery(elem),this[0]);}return indexOf.call(this,elem.jquery?elem[0]:elem);},add:function(selector,context){return this.pushStack(jQuery.uniqueSort(jQuery.merge(this.get,jQuery(selector,context))));},addBack:function(selector){return this.add(selector==null?this.prevObject: this.prevObject.filter(selector));}});function sibling(cur,dir){while((cur=cur[dir])&&cur.nodeType!==1){}return cur;}jQuery.each({parent:function(elem){var parent=elem.parentNode;return parent&&parent.nodeType!==11?parent:null;},parents:function(elem){return dir(elem,"parentNode");},parentsUntil:function(elem,i,until){return dir(elem,"parentNode",until);},next:function(elem){return sibling(elem,"nextSibling");},prev:function(elem){return sibling(elem,"previousSibling");},nextAll:function(elem){return dir(elem,"nextSibling");},prevAll:function(elem){return dir(elem,"previousSibling");},nextUntil:function(elem,i,until){return dir(elem,"nextSibling",until);},prevUntil:function(elem,i,until){return dir(elem,"previousSibling",until);},siblings:function(elem){return siblings((elem.parentNode||{}).firstChild,elem);},children:function(elem){return siblings(elem.firstChild);},contents:function(elem){if(nodeName(elem,"iframe")){return elem.contentDocument;}if(nodeName(elem,"template")){elem=elem .content||elem;}return jQuery.merge([],elem.childNodes);}},function(name,fn){jQuery.fn[name]=function(until,selector){var matched=jQuery.map(this,fn,until);if(name.slice(-5)!=="Until"){selector=until;}if(selector&&typeof selector==="string"){matched=jQuery.filter(selector,matched);}if(this.length>1){if(!guaranteedUnique[name]){jQuery.uniqueSort(matched);}if(rparentsprev.test(name)){matched.reverse;}}return this.pushStack(matched);};});var rnothtmlwhite=(/[^\x20\t\r\n\f]+/g);function createOptions(options){var object={};jQuery.each(options.match(rnothtmlwhite)||[],function(_,flag){object[flag]=!0;});return object;}jQuery.Callbacks=function(options){options=typeof options==="string"?createOptions(options):jQuery.extend({},options);var firing,memory,fired,locked,list=[],queue=[],firingIndex=-1,fire=function{locked=locked||options.once;fired=firing=!0;for(queue.length;firingIndex=-1){memory=queue.shift;while(++firingIndex<list.length){if(list[firingIndex].apply(memory[0],memory[ 1])===false&&options.stopOnFalse){firingIndex=list.length;memory=!1;}}}if(!options.memory){memory=!1;}firing=!1;if(locked){if(memory){list=[];}else{list="";}}},self={add:function{if(list){if(memory&&!firing){firingIndex=list.length-1;queue.push(memory);}(function add(args){jQuery.each(args,function(_,arg){if(isFunction(arg)){if(!options.unique||!self.has(arg)){list.push(arg);}}else if(arg&&arg.length&&toType(arg)!=="string"){add(arg);}});})(arguments);if(memory&&!firing){fire;}}return this;},remove:function{jQuery.each(arguments,function(_,arg){var index;while((index=jQuery.inArray(arg,list,index))>-1){list.splice(index,1);if(index<=firingIndex){firingIndex--;}}});return this;},has:function(fn){return fn?jQuery.inArray(fn,list)>-1:list.length>0;},empty:function{if(list){list=[];}return this;},disable:function{locked=queue=[];list=memory="";return this;},disabled:function{return!list;},lock:function{locked=queue=[];if(!memory&&!firing){list=memory="";}return this; },locked:function{return!!locked;},fireWith:function(context,args){if(!locked){args=args||[];args=[context,args.slice?args.slice:args];queue.push(args);if(!firing){fire;}}return this;},fire:function{self.fireWith(this,arguments);return this;},fired:function{return!!fired;}};return self;};function Identity(v){return v;}function Thrower(ex){throw ex;}function adoptValue(value,resolve,reject,noValue){var method;try{if(value&&isFunction((method=value.promise))){method.call(value).done(resolve).fail(reject);}else if(value&&isFunction((method=value.then))){method.call(value,resolve,reject);}else{resolve.apply(undefined,[value].slice(noValue));}}catch(value){reject.apply(undefined,[value]);}}jQuery.extend({Deferred:function(func){var tuples="notify","progress",jQuery.Callbacks("memory"),jQuery.Callbacks("memory"),2],["resolve","done",jQuery.Callbacks("once memory"),jQuery.Callbacks("once memory"),0,"resolved"],["reject","fail",jQuery.Callbacks("once memory"),jQuery.Callbacks( "once memory"),1,"rejected",state="pending",promise={state:function{return state;},always:function{deferred.done(arguments).fail(arguments);return this;},"catch":function(fn){return promise.then(null,fn);},pipe:function{var fns=arguments;return jQuery.Deferred(function(newDefer){jQuery.each(tuples,function(i,tuple){var fn=isFunction(fns[tuple[4]])&&fns[tuple[4]];deferred[tuple[1]](function{var returned=fn&&fn.apply(this,arguments);if(returned&&isFunction(returned.promise)){returned.promise.progress(newDefer.notify).done(newDefer.resolve).fail(newDefer.reject);}else{newDefer[tuple[0]+"With"](this,fn?[returned]:arguments);}});});fns=null;}).promise;},then:function(onFulfilled,onRejected,onProgress){var maxDepth=0;function resolve(depth,deferred,handler,special){return function{var that=this,args=arguments,mightThrow=function{var returned,then;if(depth<maxDepth){return;}returned=handler.apply(that,args);if(returned===deferred.promise){throw new TypeError( "Thenable self-resolution");}then=returned&&(typeof returned==="object"||typeof returned==="function")&&returned.then;if(isFunction(then)){if(special){then.call(returned,resolve(maxDepth,deferred,Identity,special),resolve(maxDepth,deferred,Thrower,special));}else{maxDepth++;then.call(returned,resolve(maxDepth,deferred,Identity,special),resolve(maxDepth,deferred,Thrower,special),resolve(maxDepth,deferred,Identity,deferred.notifyWith));}}else{if(handler!==Identity){that=undefined;args=[returned];}(special||deferred.resolveWith)(that,args);}},process=special?mightThrow:function{try{mightThrow;}catch(e){if(jQuery.Deferred.exceptionHook){jQuery.Deferred.exceptionHook(e,process.stackTrace);}if(depth+1>=maxDepth){if(handler!==Thrower){that=undefined;args=[e];}deferred.rejectWith(that,args);}}};if(depth){process;}else{if(jQuery.Deferred.getStackHook){process.stackTrace=jQuery.Deferred.getStackHook;}window.setTimeout(process);}};}return jQuery.Deferred(function(newDefer){tuples[0][3]. add(resolve(0,newDefer,isFunction(onProgress)?onProgress:Identity,newDefer.notifyWith));tuples[1][3].add(resolve(0,newDefer,isFunction(onFulfilled)?onFulfilled:Identity));tuples[2][3].add(resolve(0,newDefer,isFunction(onRejected)?onRejected:Thrower));}).promise;},promise:function(obj){return obj!=null?jQuery.extend(obj,promise):promise;}},deferred={};jQuery.each(tuples,function(i,tuple){var list=tuple[2],stateString=tuple[5];promise[tuple[1]]=list.add;if(stateString){list.add(function{state=stateString;},tuples[3-i][2].disable,tuples[3-i][3].disable,tuples[0][2].lock,tuples[0][3].lock);}list.add(tuple[3].fire);deferred[tuple[0]]=function{deferred[tuple[0]+"With"](this===deferred?undefined:this,arguments);return this;};deferred[tuple[0]+"With"]=list.fireWith;});promise.promise(deferred);if(func){func.call(deferred,deferred);}return deferred;},when:function(singleValue){var remaining=arguments.length,i=remaining,resolveContexts=Array(i),resolveValues=slice.call(arguments),master= jQuery.Deferred,updateFunc=function(i){return function(value){resolveContexts[i]=this;resolveValues[i]=arguments.length>1?slice.call(arguments):value;if(!(--remaining)){master.resolveWith(resolveContexts,resolveValues);}};};if(remaining<=1){adoptValue(singleValue,master.done(updateFunc(i)).resolve,master.reject,!remaining);if(master.state==="pending"||isFunction(resolveValues[i]&&resolveValues[i].then)){return master.then;}}while(i--){adoptValue(resolveValues[i],updateFunc(i),master.reject);}return master.promise;}});var rerrorNames=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;jQuery.Deferred.exceptionHook=function(error,stack){if(window.console&&window.console.warn&&error&&rerrorNames.test(error.name)){window.console.warn("jQuery.Deferred exception: "+error.message,error.stack,stack);}};jQuery.readyException=function(error){window.setTimeout(function{throw error;});};var readyList=jQuery.Deferred;jQuery.fn.ready=function(fn){readyList.then(fn).catch(function( error){jQuery.readyException(error);});return this;};jQuery.extend({isReady:!1,readyWait:1,ready:function(wait){if(wait===true?--jQuery.readyWait:jQuery.isReady){return;}jQuery.isReady=!0;if(wait!==true&&--jQuery.readyWait>0){return;}readyList.resolveWith(document,[jQuery]);}});jQuery.ready.then=readyList.then;function completed{document.removeEventListener("DOMContentLoaded",completed);window.removeEventListener("load",completed);jQuery.ready;}if(document.readyState==="complete"||(document.readyState!=="loading"&&!document.documentElement.doScroll)){window.setTimeout(jQuery.ready);}else{document.addEventListener("DOMContentLoaded",completed);window.addEventListener("load",completed);}var access=function(elems,fn,key,value,chainable,emptyGet,raw){var i=0,len=elems.length,bulk=key==null;if(toType(key)==="object"){chainable=!0;for(i in key){access(elems,fn,i,key[i],true,emptyGet,raw);}}else if(value!==undefined){chainable=!0;if(!isFunction(value)){raw=!0;}if(bulk){if(raw){ fn.call(elems,value);fn=null;}else{bulk=fn;fn=function(elem,key,value){return bulk.call(jQuery(elem),value);};}}if(fn){for(i<len;i++){fn(elems[i],key,raw?value:value.call(elems[i],i,fn(elems[i],key)));}}}if(chainable){return elems;}if(bulk){return fn.call(elems);}return len?fn(elems[0],key):emptyGet;};var rmsPrefix=/^-ms-/,rdashAlpha=/-([a-z])/g;function fcamelCase(all,letter){return letter.toUpperCase;}function camelCase(string){return string.replace(rmsPrefix,"ms-").replace(rdashAlpha,fcamelCase);}var acceptData=function(owner){return owner.nodeType===1||owner.nodeType===9||!(+owner.nodeType);};function Data{this.expando=jQuery.expando+Data.uid++;}Data.uid=1;Data.prototype={cache:function(owner){var value=owner[this.expando];if(!value){value={};if(acceptData(owner)){if(owner.nodeType){owner[this.expando]=value;}else{Object.defineProperty(owner,this.expando,{value:value,configurable:!0});}}}return value;},set:function(owner,data,value){var prop,cache=this.cache(owner);if(typeof data==="string"){cache[camelCase(data)]=value;}else{for(prop in data){cache[camelCase(prop)]=data[prop];}}return cache;},get:function(owner,key){return key===undefined?this.cache(owner):owner[this.expando]&&owner[this.expando][camelCase(key)];},access:function(owner,key,value){if(key===undefined||((key&&typeof key==="string")&&value===undefined)){return this.get(owner,key);}this.set(owner,key,value);return value!==undefined?value:key;},remove:function(owner,key){var i,cache=owner[this.expando];if(cache===undefined){return;}if(key!==undefined){if(Array.isArray(key)){key=key.map(camelCase);}else{key=camelCase(key);key=key in cache?[key]:(key.match(rnothtmlwhite)||[]);}i=key.length;while(i--){delete cache[key[i]];}}if(key===undefined||jQuery.isEmptyObject(cache)){if(owner.nodeType){owner[this.expando]=undefined;}else{delete owner[this.expando];}}},hasData:function(owner){var cache=owner[this.expando];return cache!==undefined&&!jQuery.isEmptyObject(cache);}};var dataPriv=new Data;var dataUser=new Data;var rbrace=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,rmultiDash=/[A-Z]/g;function getData(data){if(data==="true"){return true;}if(data==="false"){return false;}if(data==="null"){return null;}if(data===+data+""){return+data;}if(rbrace.test(data)){return JSON.parse(data);}return data;}function dataAttr(elem,key,data){var name;if(data===undefined&&elem.nodeType===1){name="data-"+key.replace(rmultiDash,"-$&").toLowerCase;data=elem.getAttribute(name);if(typeof data==="string"){try{data=getData(data);}catch(e){}dataUser.set(elem,key,data);}else{data=undefined;}}return data;}jQuery.extend({hasData:function(elem){return dataUser.hasData(elem)||dataPriv.hasData(elem);},data:function(elem,name,data){return dataUser.access(elem,name,data);},removeData:function(elem,name){dataUser.remove(elem,name);},_data:function(elem,name,data){return dataPriv.access(elem,name,data);},_removeData:function(elem,name){dataPriv.remove(elem,name);}});jQuery.fn.extend({data:function(key,value){var i,name ,data,elem=this[0],attrs=elem&&elem.attributes;if(key===undefined){if(this.length){data=dataUser.get(elem);if(elem.nodeType===1&&!dataPriv.get(elem,"hasDataAttrs")){i=attrs.length;while(i--){if(attrs[i]){name=attrs[i].name;if(name.indexOf("data-")===0){name=camelCase(name.slice(5));dataAttr(elem,name,data[name]);}}}dataPriv.set(elem,"hasDataAttrs",true);}}return data;}if(typeof key==="object"){return this.each(function{dataUser.set(this,key);});}return access(this,function(value){var data;if(elem&&value===undefined){data=dataUser.get(elem,key);if(data!==undefined){return data;}data=dataAttr(elem,key);if(data!==undefined){return data;}return;}this.each(function{dataUser.set(this,key,value);});},null,value,arguments.length>1,null,true);},removeData:function(key){return this.each(function{dataUser.remove(this,key);});}});jQuery.extend({queue:function(elem,type,data){var queue;if(elem){type=(type||"fx")+"queue";queue=dataPriv.get(elem,type);if(data){if(!queue||Array.isArray(data)){ queue=dataPriv.access(elem,type,jQuery.makeArray(data));}else{queue.push(data);}}return queue||[];}},dequeue:function(elem,type){type=type||"fx";var queue=jQuery.queue(elem,type),startLength=queue.length,fn=queue.shift,hooks=jQuery._queueHooks(elem,type),next=function{jQuery.dequeue(elem,type);};if(fn==="inprogress"){fn=queue.shift;startLength--;}if(fn){if(type==="fx"){queue.unshift("inprogress");}delete hooks.stop;fn.call(elem,next,hooks);}if(!startLength&&hooks){hooks.empty.fire;}},_queueHooks:function(elem,type){var key=type+"queueHooks";return dataPriv.get(elem,key)||dataPriv.access(elem,key,{empty:jQuery.Callbacks("once memory").add(function{dataPriv.remove(elem,[type+"queue",key]);})});}});jQuery.fn.extend({queue:function(type,data){var setter=2;if(typeof type!=="string"){data=type;type="fx";setter--;}if(arguments.length<setter){return jQuery.queue(this[0],type);}return data===undefined?this:this.each(function{var queue=jQuery.queue(this,type,data);jQuery._queueHooks( this,type);if(type==="fx"&&queue[0]!=="inprogress"){jQuery.dequeue(this,type);}});},dequeue:function(type){return this.each(function{jQuery.dequeue(this,type);});},clearQueue:function(type){return this.queue(type||"fx",[]);},promise:function(type,obj){var tmp,count=1,defer=jQuery.Deferred,elements=this,i=this.length,resolve=function{if(!(--count)){defer.resolveWith(elements,[elements]);}};if(typeof type!=="string"){obj=type;type=undefined;}type=type||"fx";while(i--){tmp=dataPriv.get(elements[i],type+"queueHooks");if(tmp&&tmp.empty){count++;tmp.empty.add(resolve);}}resolve;return defer.promise(obj);}});var pnum=(/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source;var rcssNum=new RegExp("^(?:([+-])=|)("+pnum+")([a-z%]*)$","i");var cssExpand=["Top","Right","Bottom","Left"];var isHiddenWithinTree=function(elem,el){elem=el||elem;return elem.style.display==="none"||elem.style.display===""&&jQuery.contains(elem.ownerDocument,elem)&&jQuery.css(elem,"display")==="none";};var swap=function( elem,options,callback,args){var ret,name,old={};for(name in options){old[name]=elem.style[name];elem.style[name]=options[name];}ret=callback.apply(elem,args||[]);for(name in options){elem.style[name]=old[name];}return ret;};function adjustCSS(elem,prop,valueParts,tween){var adjusted,scale,maxIterations=20,currentValue=tween?function{return tween.cur;}:function{return jQuery.css(elem,prop,"");},initial=currentValue,unit=valueParts&&valueParts[3]||(jQuery.cssNumber[prop]?"":"px"),initialInUnit=(jQuery.cssNumber[prop]||unit!=="px"&&+initial)&&rcssNum.exec(jQuery.css(elem,prop));if(initialInUnit&&initialInUnit[3]!==unit){initial=initial/2;unit=unit||initialInUnit[3];initialInUnit=+initial||1;while(maxIterations--){jQuery.style(elem,prop,initialInUnit+unit);if((1-scale)*(1-(scale=currentValue/initial||0.5))<=0){maxIterations=0;}initialInUnit=initialInUnit/scale;}initialInUnit=initialInUnit*2;jQuery.style(elem,prop,initialInUnit+unit);valueParts=valueParts||[];}if(valueParts){ initialInUnit=+initialInUnit||+initial||0;adjusted=valueParts[1]?initialInUnit+(valueParts[1]+1)*valueParts[2]:+valueParts[2];if(tween){tween.unit=unit;tween.start=initialInUnit;tween.end=adjusted;}}return adjusted;}var defaultDisplayMap={};function getDefaultDisplay(elem){var temp,doc=elem.ownerDocument,nodeName=elem.nodeName,display=defaultDisplayMap[nodeName];if(display){return display;}temp=doc.body.appendChild(doc.createElement(nodeName));display=jQuery.css(temp,"display");temp.parentNode.removeChild(temp);if(display==="none"){display="block";}defaultDisplayMap[nodeName]=display;return display;}function showHide(elements,show){var display,elem,values=[],index=0,length=elements.length;for(index<length;index++){elem=elements[index];if(!elem.style){continue;}display=elem.style.display;if(show){if(display==="none"){values[index]=dataPriv.get(elem,"display")||null;if(!values[index]){elem.style.display="";}}if(elem.style.display===""&&isHiddenWithinTree(elem)){values[index]= getDefaultDisplay(elem);}}else{if(display!=="none"){values[index]="none";dataPriv.set(elem,"display",display);}}}for(index=0;index<length;index++){if(values[index]!=null){elements[index].style.display=values[index];}}return elements;}jQuery.fn.extend({show:function{return showHide(this,true);},hide:function{return showHide(this);},toggle:function(state){if(typeof state==="boolean"){return state?this.show:this.hide;}return this.each(function{if(isHiddenWithinTree(this)){jQuery(this).show;}else{jQuery(this).hide;}});}});var rcheckableType=(/^(?:checkbox|radio)$/i);var rtagName=(/<([a-z][^\/\0>\x20\t\r\n\f]+)/i);var rscriptType=(/^$|^module$|\/(?:java|ecma)script/i);var wrapMap={option:[1,"<select multiple='multiple'>"," "],thead:[1," "],col:[2," "],tr:[2," "],td:[3," "],_default:[0,"",""]};wrapMap.optgroup=wrapMap.option;wrapMap.tbody= wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead;wrapMap.th=wrapMap.td;function getAll(context,tag){var ret;if(typeof context.getElementsByTagName!=="undefined"){ret=context.getElementsByTagName(tag||"*");}else if(typeof context.querySelectorAll!=="undefined"){ret=context.querySelectorAll(tag||"*");}else{ret=[];}if(tag===undefined||tag&&nodeName(context,tag)){return jQuery.merge([context],ret);}return ret;}function setGlobalEval(elems,refElements){var i=0,l=elems.length;for(i<l;i++){dataPriv.set(elems[i],"globalEval",!refElements||dataPriv.get(refElements[i],"globalEval"));}}var rhtml=/<|&#?\w+;/;function buildFragment(elems,context,scripts,selection,ignored){var elem,tmp,tag,wrap,contains,j,fragment=context.createDocumentFragment,nodes=[],i=0,l=elems.length;for(i<l;i++){elem=elems[i];if(elem||elem===0){if(toType(elem)==="object"){jQuery.merge(nodes,elem.nodeType?[elem]:elem);}else if(!rhtml.test(elem)){nodes.push(context.createTextNode(elem));}else{tmp=tmp||fragment. appendChild(context.createElement("div"));tag=(rtagName.exec(elem)||["",""])[1].toLowerCase;wrap=wrapMap[tag]||wrapMap._default;tmp.innerHTML=wrap[1]+jQuery.htmlPrefilter(elem)+wrap[2];j=wrap[0];while(j--){tmp=tmp.lastChild;}jQuery.merge(nodes,tmp.childNodes);tmp=fragment.firstChild;tmp.textContent="";}}}fragment.textContent="";i=0;while((elem=nodes[i++])){if(selection&&jQuery.inArray(elem,selection)>-1){if(ignored){ignored.push(elem);}continue;}contains=jQuery.contains(elem.ownerDocument,elem);tmp=getAll(fragment.appendChild(elem),"script");if(contains){setGlobalEval(tmp);}if(scripts){j=0;while((elem=tmp[j++])){if(rscriptType.test(elem.type||"")){scripts.push(elem);}}}}return fragment;}(function{var fragment=document.createDocumentFragment,div=fragment.appendChild(document.createElement("div")),input=document.createElement("input");input.setAttribute("type","radio");input.setAttribute("checked","checked");input.setAttribute("name","t");div.appendChild(input);support.checkClone= div.cloneNode(true).cloneNode(true).lastChild.checked;div.innerHTML=" x ";support.noCloneChecked=!!div.cloneNode(true).lastChild.defaultValue;});var documentElement=document.documentElement;var rkeyEvent=/^key/,rmouseEvent=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,rtypenamespace=/^([^.]*)(?:\.(.+)|)/;function returnTrue{return true;}function returnFalse{return false;}function safeActiveElement{try{return document.activeElement;}catch(err){}}function on(elem,types,selector,data,fn,one){var origFn,type;if(typeof types==="object"){if(typeof selector!=="string"){data=data||selector;selector=undefined;}for(type in types){on(elem,type,selector,data,types[type],one);}return elem;}if(data==null&&fn==null){fn=selector;data=selector=undefined;}else if(fn==null){if(typeof selector==="string"){fn=data;data=undefined;}else{fn=data;data=selector;selector=undefined;}}if(fn===false){fn=returnFalse;}else if(!fn){return elem;}if(one===1){origFn=fn;fn=function(event){ jQuery.off(event);return origFn.apply(this,arguments);};fn.guid=origFn.guid||(origFn.guid=jQuery.guid++);}return elem.each(function{jQuery.event.add(this,types,fn,data,selector);});}jQuery.event={global:{},add:function(elem,types,handler,data,selector){var handleObjIn,eventHandle,tmp,events,t,handleObj,special,handlers,type,namespaces,origType,elemData=dataPriv.get(elem);if(!elemData){return;}if(handler.handler){handleObjIn=handler;handler=handleObjIn.handler;selector=handleObjIn.selector;}if(selector){jQuery.find.matchesSelector(documentElement,selector);}if(!handler.guid){handler.guid=jQuery.guid++;}if(!(events=elemData.events)){events=elemData.events={};}if(!(eventHandle=elemData.handle)){eventHandle=elemData.handle=function(e){return typeof jQuery!=="undefined"&&jQuery.event.triggered!==e.type?jQuery.event.dispatch.apply(elem,arguments):undefined;};}types=(types||"").match(rnothtmlwhite)||[""];t=types.length;while(t--){tmp=rtypenamespace.exec(types[t])||[];type=origType=tmp[1]; namespaces=(tmp[2]||"").split(".").sort;if(!type){continue;}special=jQuery.event.special[type]||{};type=(selector?special.delegateType:special.bindType)||type;special=jQuery.event.special[type]||{};handleObj=jQuery.extend({type:type,origType:origType,data:data,handler:handler,guid:handler.guid,selector:selector,needsContext:selector&&jQuery.expr.match.needsContext.test(selector),namespace:namespaces.join(".")},handleObjIn);if(!(handlers=events[type])){handlers=events[type]=[];handlers.delegateCount=0;if(!special.setup||special.setup.call(elem,data,namespaces,eventHandle)===false){if(elem.addEventListener){elem.addEventListener(type,eventHandle);}}}if(special.add){special.add.call(elem,handleObj);if(!handleObj.handler.guid){handleObj.handler.guid=handler.guid;}}if(selector){handlers.splice(handlers.delegateCount++,0,handleObj);}else{handlers.push(handleObj);}jQuery.event.global[type]=!0;}},remove:function(elem,types,handler,selector,mappedTypes){var j,origCount,tmp,events,t, handleObj,special,handlers,type,namespaces,origType,elemData=dataPriv.hasData(elem)&&dataPriv.get(elem);if(!elemData||!(events=elemData.events)){return;}types=(types||"").match(rnothtmlwhite)||[""];t=types.length;while(t--){tmp=rtypenamespace.exec(types[t])||[];type=origType=tmp[1];namespaces=(tmp[2]||"").split(".").sort;if(!type){for(type in events){jQuery.event.remove(elem,type+types[t],handler,selector,true);}continue;}special=jQuery.event.special[type]||{};type=(selector?special.delegateType:special.bindType)||type;handlers=events[type]||[];tmp=tmp[2]&&new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)");origCount=j=handlers.length;while(j--){handleObj=handlers[j];if((mappedTypes||origType===handleObj.origType)&&(!handler||handler.guid===handleObj.guid)&&(!tmp||tmp.test(handleObj.namespace))&&(!selector||selector===handleObj.selector||selector==="**"&&handleObj.selector)){handlers.splice(j,1);if(handleObj.selector){handlers.delegateCount--;}if(special.remove){special. remove.call(elem,handleObj);}}}if(origCount&&!handlers.length){if(!special.teardown||special.teardown.call(elem,namespaces,elemData.handle)===false){jQuery.removeEvent(elem,type,elemData.handle);}delete events[type];}}if(jQuery.isEmptyObject(events)){dataPriv.remove(elem,"handle events");}},dispatch:function(nativeEvent){var event=jQuery.event.fix(nativeEvent);var i,j,ret,matched,handleObj,handlerQueue,args=new Array(arguments.length),handlers=(dataPriv.get(this,"events")||{})[event.type]||[],special=jQuery.event.special[event.type]||{};args[0]=event;for(i=1;i=1)){for(cur!==this;cur=cur.parentNode||this){if(cur.nodeType===1&&!(event.type==="click"&&cur.disabled===true)){matchedHandlers=[];matchedSelectors={};for(i=0;i<delegateCount;i++){handleObj=handlers[i];sel=handleObj.selector+" ";if(matchedSelectors[sel]===undefined){matchedSelectors[sel]=handleObj.needsContext?jQuery(sel,this).index(cur)>-1:jQuery.find(sel,this,null,[cur]).length;}if( matchedSelectors[sel]){matchedHandlers.push(handleObj);}}if(matchedHandlers.length){handlerQueue.push({elem:cur,handlers:matchedHandlers});}}}}cur=this;if(delegateCount<handlers.length){handlerQueue.push({elem:cur,handlers:handlers.slice(delegateCount)});}return handlerQueue;},addProp:function(name,hook){Object.defineProperty(jQuery.Event.prototype,name,{enumerable:!0,configurable:!0,get:isFunction(hook)?function{if(this.originalEvent){return hook(this.originalEvent);}}:function{if(this.originalEvent){return this.originalEvent[name];}},set:function(value){Object.defineProperty(this,name,{enumerable:!0,configurable:!0,writable:!0,value:value});}});},fix:function(originalEvent){return originalEvent[jQuery.expando]?originalEvent:new jQuery.Event(originalEvent);},special:{load:{noBubble:!0},focus:{trigger:function{if(this!==safeActiveElement&&this.focus){this.focus;return false;}},delegateType:"focusin"},blur:{trigger:function{if(this===safeActiveElement&&this. blur){this.blur;return false;}},delegateType:"focusout"},click:{trigger:function{if(this.type==="checkbox"&&this.click&&nodeName(this,"input")){this.click;return false;}},_default:function(event){return nodeName(event.target,"a");}},beforeunload:{postDispatch:function(event){if(event.result!==undefined&&event.originalEvent){event.originalEvent.returnValue=event.result;}}}}};jQuery.removeEvent=function(elem,type,handle){if(elem.removeEventListener){elem.removeEventListener(type,handle);}};jQuery.Event=function(src,props){if(!(this instanceof jQuery.Event)){return new jQuery.Event(src,props);}if(src&&src.type){this.originalEvent=src;this.type=src.type;this.isDefaultPrevented=src.defaultPrevented||src.defaultPrevented===undefined&&src.returnValue===!1?returnTrue:returnFalse;this.target=(src.target&&src.target.nodeType===3)?src.target.parentNode:src.target;this.currentTarget=src.currentTarget;this.relatedTarget=src.relatedTarget;}else{this.type=src;}if(props){jQuery.extend(this, props);}this.timeStamp=src&&src.timeStamp||Date.now;this[jQuery.expando]=!0;};jQuery.Event.prototype={constructor:jQuery.Event,isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse,isSimulated:!1,preventDefault:function{var e=this.originalEvent;this.isDefaultPrevented=returnTrue;if(e&&!this.isSimulated){e.preventDefault;}},stopPropagation:function{var e=this.originalEvent;this.isPropagationStopped=returnTrue;if(e&&!this.isSimulated){e.stopPropagation;}},stopImmediatePropagation:function{var e=this.originalEvent;this.isImmediatePropagationStopped=returnTrue;if(e&&!this.isSimulated){e.stopImmediatePropagation;}this.stopPropagation;}};jQuery.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0, offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(event){var button=event.button;if(event.which==null&&rkeyEvent.test(event.type)){return event.charCode!=null?event.charCode:event.keyCode;}if(!event.which&&button!==undefined&&rmouseEvent.test(event.type)){if(button&1){return 1;}if(button&2){return 3;}if(button&4){return 2;}return 0;}return event.which;}},jQuery.event.addProp);jQuery.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(orig,fix){jQuery.event.special[orig]={delegateType:fix,bindType:fix,handle:function(event){var ret,target=this,related=event.relatedTarget,handleObj=event.handleObj;if(!related||(related!==target&&!jQuery.contains(target,related))){event.type=handleObj.origType;ret=handleObj.handler.apply(this,arguments);event.type=fix;}return ret;}};});jQuery.fn.extend({on:function(types,selector,data,fn){return on(this,types, selector,data,fn);},one:function(types,selector,data,fn){return on(this,types,selector,data,fn,1);},off:function(types,selector,fn){var handleObj,type;if(types&&types.preventDefault&&types.handleObj){handleObj=types.handleObj;jQuery(types.delegateTarget).off(handleObj.namespace?handleObj.origType+"."+handleObj.namespace:handleObj.origType,handleObj.selector,handleObj.handler);return this;}if(typeof types==="object"){for(type in types){this.off(type,selector,types[type]);}return this;}if(selector===false||typeof selector==="function"){fn=selector;selector=undefined;}if(fn===false){fn=returnFalse;}return this.each(function{jQuery.event.remove(this,types,fn,selector);});}});var rxhtmlTag=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,rnoInnerhtml=/<script|<style|<link/i,rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i,rcleanScript=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function manipulationTarget(elem,content){if(nodeName(elem,"table")&& nodeName(content.nodeType!==11?content:content.firstChild,"tr")){return jQuery(elem).children("tbody")[0]||elem;}return elem;}function disableScript(elem){elem.type=(elem.getAttribute("type")!==null)+"/"+elem.type;return elem;}function restoreScript(elem){if((elem.type||"").slice(0,5)==="true/"){elem.type=elem.type.slice(5);}else{elem.removeAttribute("type");}return elem;}function cloneCopyEvent(src,dest){var i,l,type,pdataOld,pdataCur,udataOld,udataCur,events;if(dest.nodeType!==1){return;}if(dataPriv.hasData(src)){pdataOld=dataPriv.access(src);pdataCur=dataPriv.set(dest,pdataOld);events=pdataOld.events;if(events){delete pdataCur.handle;pdataCur.events={};for(type in events){for(i=0,l=events[type].length;i<l;i++){jQuery.event.add(dest,type,events[type][i]);}}}}if(dataUser.hasData(src)){udataOld=dataUser.access(src);udataCur=jQuery.extend({},udataOld);dataUser.set(dest,udataCur);}}function fixInput(src,dest){var nodeName=dest.nodeName.toLowerCase;if(nodeName==="input"&&rcheckableType. test(src.type)){dest.checked=src.checked;}else if(nodeName==="input"||nodeName==="textarea"){dest.defaultValue=src.defaultValue;}}function domManip(collection,args,callback,ignored){args=concat.apply([],args);var fragment,first,scripts,hasScripts,node,doc,i=0,l=collection.length,iNoClone=l-1,value=args[0],valueIsFunction=isFunction(value);if(valueIsFunction||(l>1&&typeof value==="string"&&!support.checkClone&&rchecked.test(value))){return collection.each(function(index){var self=collection.eq(index);if(valueIsFunction){args[0]=value.call(this,index,self.html);}domManip(self,args,callback,ignored);});}if(l){fragment=buildFragment(args,collection[0].ownerDocument,false,collection,ignored);first=fragment.firstChild;if(fragment.childNodes.length===1){fragment=first;}if(first||ignored){scripts=jQuery.map(getAll(fragment,"script"),disableScript);hasScripts=scripts.length;for(i<l;i++){node=fragment;if(i!==iNoClone){node=jQuery.clone(node,true,true);if(hasScripts){jQuery.merge(scripts, getAll(node,"script"));}}callback.call(collection[i],node,i);}if(hasScripts){doc=scripts[scripts.length-1].ownerDocument;jQuery.map(scripts,restoreScript);for(i=0;i<hasScripts;i++){node=scripts[i];if(rscriptType.test(node.type||"")&&!dataPriv.access(node,"globalEval")&&jQuery.contains(doc,node)){if(node.src&&(node.type||"").toLowerCase!=="module"){if(jQuery._evalUrl){jQuery._evalUrl(node.src);}}else{DOMEval(node.textContent.replace(rcleanScript,""),doc,node);}}}}}}return collection;}function remove(elem,selector,keepData){var node,nodes=selector?jQuery.filter(selector,elem):elem,i=0;for((node=nodes[i])!=null;i++){if(!keepData&&node.nodeType===1){jQuery.cleanData(getAll(node));}if(node.parentNode){if(keepData&&jQuery.contains(node.ownerDocument,node)){setGlobalEval(getAll(node,"script"));}node.parentNode.removeChild(node);}}return elem;}jQuery.extend({htmlPrefilter:function(html){return html.replace(rxhtmlTag,"<$1></$2>");},clone:function(elem,dataAndEvents,deepDataAndEvents){var i,l ,srcElements,destElements,clone=elem.cloneNode(true),inPage=jQuery.contains(elem.ownerDocument,elem);if(!support.noCloneChecked&&(elem.nodeType===1||elem.nodeType===11)&&!jQuery.isXMLDoc(elem)){destElements=getAll(clone);srcElements=getAll(elem);for(i=0,l=srcElements.length;i<l;i++){fixInput(srcElements[i],destElements[i]);}}if(dataAndEvents){if(deepDataAndEvents){srcElements=srcElements||getAll(elem);destElements=destElements||getAll(clone);for(i=0,l=srcElements.length;i<l;i++){cloneCopyEvent(srcElements[i],destElements[i]);}}else{cloneCopyEvent(elem,clone);}}destElements=getAll(clone,"script");if(destElements.length>0){setGlobalEval(destElements,!inPage&&getAll(elem,"script"));}return clone;},cleanData:function(elems){var data,elem,type,special=jQuery.event.special,i=0;for((elem=elems[i])!==undefined;i++){if(acceptData(elem)){if((data=elem[dataPriv.expando])){if(data.events){for(type in data.events){if(special[type]){jQuery.event.remove(elem,type);}else{jQuery.removeEvent(elem,type, data.handle);}}}elem[dataPriv.expando]=undefined;}if(elem[dataUser.expando]){elem[dataUser.expando]=undefined;}}}}});jQuery.fn.extend({detach:function(selector){return remove(this,selector,true);},remove:function(selector){return remove(this,selector);},text:function(value){return access(this,function(value){return value===undefined?jQuery.text(this):this.empty.each(function{if(this.nodeType===1||this.nodeType===11||this.nodeType===9){this.textContent=value;}});},null,value,arguments.length);},append:function{return domManip(this,arguments,function(elem){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var target=manipulationTarget(this,elem);target.appendChild(elem);}});},prepend:function{return domManip(this,arguments,function(elem){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var target=manipulationTarget(this,elem);target.insertBefore(elem,target.firstChild);}});},before:function{return domManip(this,arguments,function(elem){if(this.parentNode) {this.parentNode.insertBefore(elem,this);}});},after:function{return domManip(this,arguments,function(elem){if(this.parentNode){this.parentNode.insertBefore(elem,this.nextSibling);}});},empty:function{var elem,i=0;for((elem=this[i])!=null;i++){if(elem.nodeType===1){jQuery.cleanData(getAll(elem,false));elem.textContent="";}}return this;},clone:function(dataAndEvents,deepDataAndEvents){dataAndEvents=dataAndEvents==null?false:dataAndEvents;deepDataAndEvents=deepDataAndEvents==null?dataAndEvents:deepDataAndEvents;return this.map(function{return jQuery.clone(this,dataAndEvents,deepDataAndEvents);});},html:function(value){return access(this,function(value){var elem=this[0]||{},i=0,l=this.length;if(value===undefined&&elem.nodeType===1){return elem.innerHTML;}if(typeof value==="string"&&!rnoInnerhtml.test(value)&&!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase]){value=jQuery.htmlPrefilter(value);try{for(i<l;i++){elem=this[i]||{};if(elem.nodeType===1){jQuery.cleanData(getAll( elem,false));elem.innerHTML=value;}}elem=0;}catch(e){}}if(elem){this.empty.append(value);}},null,value,arguments.length);},replaceWith:function{var ignored=[];return domManip(this,arguments,function(elem){var parent=this.parentNode;if(jQuery.inArray(this,ignored)<0){jQuery.cleanData(getAll(this));if(parent){parent.replaceChild(elem,this);}}},ignored);}});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(selector){var elems,ret=[],insert=jQuery(selector),last=insert.length-1,i=0;for(i<=last;i++){elems=i===last?this:this.clone(true);jQuery(insert[i])[original](elems);push.apply(ret,elems.get);}return this.pushStack(ret);};});var rnumnonpx=new RegExp("^("+pnum+")(?!px)[a-z%]+$","i");var getStyles=function(elem){var view=elem.ownerDocument.defaultView;if(!view||!view.opener){view=window;}return view.getComputedStyle(elem);};var rboxStyle=new RegExp(cssExpand.join("|" ),"i");(function{function computeStyleTests{if(!div){return;}container.style.cssText="position:absolute;left:-11111px;width:60px;"+"margin-top:1px;padding:0;border:0";div.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;"+"margin:auto;border:1px;padding:1px;"+"width:60%;top:1%";documentElement.appendChild(container).appendChild(div);var divStyle=window.getComputedStyle(div);pixelPositionVal=divStyle.top!=="1%";reliableMarginLeftVal=roundPixelMeasures(divStyle.marginLeft)===12;div.style.right="60%";pixelBoxStylesVal=roundPixelMeasures(divStyle.right)===36;boxSizingReliableVal=roundPixelMeasures(divStyle.width)===36;div.style.position="absolute";scrollboxSizeVal=div.offsetWidth===36||"absolute";documentElement.removeChild(container);div=null;}function roundPixelMeasures(measure){return Math.round(parseFloat(measure));}var pixelPositionVal,boxSizingReliableVal,scrollboxSizeVal,pixelBoxStylesVal,reliableMarginLeftVal,container=document.createElement( "div"),div=document.createElement("div");if(!div.style){return;}div.style.backgroundClip="content-box";div.cloneNode(true).style.backgroundClip="";support.clearCloneStyle=div.style.backgroundClip==="content-box";jQuery.extend(support,{boxSizingReliable:function{computeStyleTests;return boxSizingReliableVal;},pixelBoxStyles:function{computeStyleTests;return pixelBoxStylesVal;},pixelPosition:function{computeStyleTests;return pixelPositionVal;},reliableMarginLeft:function{computeStyleTests;return reliableMarginLeftVal;},scrollboxSize:function{computeStyleTests;return scrollboxSizeVal;}});});function curCSS(elem,name,computed){var width,minWidth,maxWidth,ret,style=elem.style;computed=computed||getStyles(elem);if(computed){ret=computed.getPropertyValue(name)||computed[name];if(ret===""&&!jQuery.contains(elem.ownerDocument,elem)){ret=jQuery.style(elem,name);}if(!support.pixelBoxStyles&&rnumnonpx.test(ret)&&rboxStyle.test(name)){width=style.width;minWidth=style. minWidth;maxWidth=style.maxWidth;style.minWidth=style.maxWidth=style.width=ret;ret=computed.width;style.width=width;style.minWidth=minWidth;style.maxWidth=maxWidth;}}return ret!==undefined?ret+"":ret;}function addGetHookIf(conditionFn,hookFn){return{get:function{if(conditionFn){delete this.get;return;}return(this.get=hookFn).apply(this,arguments);}};}var rdisplayswap=/^(none|table(?!-c[ea]).+)/,rcustomProp=/^--/,cssShow={position:"absolute",visibility:"hidden",display:"block"},cssNormalTransform={letterSpacing:"0",fontWeight:"400"},cssPrefixes=["Webkit","Moz","ms"],emptyStyle=document.createElement("div").style;function vendorPropName(name){if(name in emptyStyle){return name;}var capName=name[0].toUpperCase+name.slice(1),i=cssPrefixes.length;while(i--){name=cssPrefixes[i]+capName;if(name in emptyStyle){return name;}}}function finalPropName(name){var ret=jQuery.cssProps[name];if(!ret){ret=jQuery.cssProps[name]=vendorPropName(name)||name;}return ret;}function setPositiveNumber(elem ,value,subtract){var matches=rcssNum.exec(value);return matches?Math.max(0,matches[2]-(subtract||0))+(matches[3]||"px"):value;}function boxModelAdjustment(elem,dimension,box,isBorderBox,styles,computedVal){var i=dimension==="width"?1:0,extra=0,delta=0;if(box===(isBorderBox?"border":"content")){return 0;}for(i<4;i+=2){if(box==="margin"){delta+=jQuery.css(elem,box+cssExpand[i],true,styles);}if(!isBorderBox){delta+=jQuery.css(elem,"padding"+cssExpand[i],true,styles);if(box!=="padding"){delta+=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles);}else{extra+=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles);}}else{if(box==="content"){delta-=jQuery.css(elem,"padding"+cssExpand[i],true,styles);}if(box!=="margin"){delta-=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles);}}}if(!isBorderBox&&computedVal>=0){delta+=Math.max(0,Math.ceil(elem["offset"+dimension[0].toUpperCase+dimension.slice(1)]-computedVal-delta-extra-0.5));}return delta;}function getWidthOrHeight(elem, dimension,extra){var styles=getStyles(elem),val=curCSS(elem,dimension,styles),isBorderBox=jQuery.css(elem,"boxSizing",false,styles)==="border-box",valueIsBorderBox=isBorderBox;if(rnumnonpx.test(val)){if(!extra){return val;}val="auto";}valueIsBorderBox=valueIsBorderBox&&(support.boxSizingReliable||val===elem.style[dimension]);if(val==="auto"||!parseFloat(val)&&jQuery.css(elem,"display",false,styles)==="inline"){val=elem["offset"+dimension[0].toUpperCase+dimension.slice(1)];valueIsBorderBox=!0;}val=parseFloat(val)||0;return(val+boxModelAdjustment(elem,dimension,extra||(isBorderBox?"border":"content"),valueIsBorderBox,styles,val))+"px";}jQuery.extend({cssHooks:{opacity:{get:function(elem,computed){if(computed){var ret=curCSS(elem,"opacity");return ret===""?"1":ret;}}}},cssNumber:{"animationIterationCount":!0,"columnCount":!0,"fillOpacity":!0,"flexGrow":!0,"flexShrink":!0,"fontWeight":!0,"lineHeight":!0,"opacity":!0,"order":!0,"orphans":!0,"widows":!0,"zIndex": !0,"zoom":!0},cssProps:{},style:function(elem,name,value,extra){if(!elem||elem.nodeType===3||elem.nodeType===8||!elem.style){return;}var ret,type,hooks,origName=camelCase(name),isCustomProp=rcustomProp.test(name),style=elem.style;if(!isCustomProp){name=finalPropName(origName);}hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName];if(value!==undefined){type=typeof value;if(type==="string"&&(ret=rcssNum.exec(value))&&ret[1]){value=adjustCSS(elem,name,ret);type="number";}if(value==null||value!==value){return;}if(type==="number"){value+=ret&&ret[3]||(jQuery.cssNumber[origName]?"":"px");}if(!support.clearCloneStyle&&value===""&&name.indexOf("background")===0){style[name]="inherit";}if(!hooks||!("set"in hooks)||(value=hooks.set(elem,value,extra))!==undefined){if(isCustomProp){style.setProperty(name,value);}else{style[name]=value;}}}else{if(hooks&&"get"in hooks&&(ret=hooks.get(elem,false,extra))!==undefined){return ret;}return style[name];}},css:function(elem,name,extra,styles){var val, num,hooks,origName=camelCase(name),isCustomProp=rcustomProp.test(name);if(!isCustomProp){name=finalPropName(origName);}hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName];if(hooks&&"get"in hooks){val=hooks.get(elem,true,extra);}if(val===undefined){val=curCSS(elem,name,styles);}if(val==="normal"&&name in cssNormalTransform){val=cssNormalTransform[name];}if(extra===""||extra){num=parseFloat(val);return extra===!0||isFinite(num)?num||0:val;}return val;}});jQuery.each(["height","width"],function(i,dimension){jQuery.cssHooks[dimension]={get:function(elem,computed,extra){if(computed){return rdisplayswap.test(jQuery.css(elem,"display"))&&(!elem.getClientRects.length||!elem.getBoundingClientRect.width)?swap(elem,cssShow,function{return getWidthOrHeight(elem,dimension,extra);}):getWidthOrHeight(elem,dimension,extra);}},set:function(elem,value,extra){var matches,styles=getStyles(elem),isBorderBox=jQuery.css(elem,"boxSizing",false,styles)==="border-box",subtract=extra&& boxModelAdjustment(elem,dimension,extra,isBorderBox,styles);if(isBorderBox&&support.scrollboxSize===styles.position){subtract-=Math.ceil(elem["offset"+dimension[0].toUpperCase+dimension.slice(1)]-parseFloat(styles[dimension])-boxModelAdjustment(elem,dimension,"border",false,styles)-0.5);}if(subtract&&(matches=rcssNum.exec(value))&&(matches[3]||"px")!=="px"){elem.style[dimension]=value;value=jQuery.css(elem,dimension);}return setPositiveNumber(elem,value,subtract);}};});jQuery.cssHooks.marginLeft=addGetHookIf(support.reliableMarginLeft,function(elem,computed){if(computed){return(parseFloat(curCSS(elem,"marginLeft"))||elem.getBoundingClientRect.left-swap(elem,{marginLeft:0},function{return elem.getBoundingClientRect.left;}))+"px";}});jQuery.each({margin:"",padding:"",border:"Width"},function(prefix,suffix){jQuery.cssHooks[prefix+suffix]={expand:function(value){var i=0,expanded={},parts=typeof value==="string"?value.split(" "):[value];for(i<4;i++){expanded[prefix+cssExpand[i]+ suffix]=parts[i]||parts[i-2]||parts[0];}return expanded;}};if(prefix!=="margin"){jQuery.cssHooks[prefix+suffix].set=setPositiveNumber;}});jQuery.fn.extend({css:function(name,value){return access(this,function(elem,name,value){var styles,len,map={},i=0;if(Array.isArray(name)){styles=getStyles(elem);len=name.length;for(i<len;i++){map[name[i]]=jQuery.css(elem,name[i],false,styles);}return map;}return value!==undefined?jQuery.style(elem,name,value):jQuery.css(elem,name);},name,value,arguments.length>1);}});function Tween(elem,options,prop,end,easing){return new Tween.prototype.init(elem,options,prop,end,easing);}jQuery.Tween=Tween;Tween.prototype={constructor:Tween,init:function(elem,options,prop,end,easing,unit){this.elem=elem;this.prop=prop;this.easing=easing||jQuery.easing._default;this.options=options;this.start=this.now=this.cur;this.end=end;this.unit=unit||(jQuery.cssNumber[prop]?"":"px");},cur:function{var hooks=Tween.propHooks[this.prop];return hooks&&hooks.get?hooks.get(this)
 * Tween.propHooks._default.get(this);},run:function(percent){var eased,hooks=Tween.propHooks[this.prop];if(this.options.duration){this.pos=eased=jQuery.easing[this.easing](percent,this.options.duration*percent,0,1,this.options.duration);}else{this.pos=eased=percent;}this.now=(this.end-this.start)*eased+this.start;if(this.options.step){this.options.step.call(this.elem,this.now,this);}if(hooks&&hooks.set){hooks.set(this);}else{Tween.propHooks._default.set(this);}return this;}};Tween.prototype.init.prototype=Tween.prototype;Tween.propHooks={_default:{get:function(tween){var result;if(tween.elem.nodeType!==1||tween.elem[tween.prop]!=null&&tween.elem.style[tween.prop]==null){return tween.elem[tween.prop];}result=jQuery.css(tween.elem,tween.prop,"");return!result||result==="auto"?0:result;},set:function(tween){if(jQuery.fx.step[tween.prop]){jQuery.fx.step[tween.prop](tween);}else if(tween.elem.nodeType===1&&(tween.elem.style[jQuery.cssProps[tween.prop]]!=null||jQuery.cssHooks[tween.prop])){

jQuery.style(tween.elem,tween.prop,tween.now+tween.unit);}else{tween.elem[tween.prop]=tween.now;}}}};Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={set:function(tween){if(tween.elem.nodeType&&tween.elem.parentNode){tween.elem[tween.prop]=tween.now;}}};jQuery.easing={linear:function(p){return p;},swing:function(p){return 0.5-Math.cos(p*Math.PI)/2;},_default:"swing"};jQuery.fx=Tween.prototype.init;jQuery.fx.step={};var fxNow,inProgress,rfxtypes=/^(?:toggle|show|hide)$/,rrun=/queueHooks$/;function schedule{if(inProgress){if(document.hidden===false&&window.requestAnimationFrame){window.requestAnimationFrame(schedule);}else{window.setTimeout(schedule,jQuery.fx.interval);}jQuery.fx.tick;}}function createFxNow{window.setTimeout(function{fxNow=undefined;});return(fxNow=Date.now);}function genFx(type,includeWidth){var which,i=0,attrs={height:type};includeWidth=includeWidth?1:0;for(i<4;i+=2-includeWidth){which=cssExpand[i];attrs["margin"+which]=attrs["padding"+which]=type;}if( includeWidth){attrs.opacity=attrs.width=type;}return attrs;}function createTween(value,prop,animation){var tween,collection=(Animation.tweeners[prop]||[]).concat(Animation.tweeners["*"]),index=0,length=collection.length;for(index<length;index++){if((tween=collection[index].call(animation,prop,value))){return tween;}}}function defaultPrefilter(elem,props,opts){var prop,value,toggle,hooks,oldfire,propTween,restoreDisplay,display,isBox="width"in props||"height"in props,anim=this,orig={},style=elem.style,hidden=elem.nodeType&&isHiddenWithinTree(elem),dataShow=dataPriv.get(elem,"fxshow");if(!opts.queue){hooks=jQuery._queueHooks(elem,"fx");if(hooks.unqueued==null){hooks.unqueued=0;oldfire=hooks.empty.fire;hooks.empty.fire=function{if(!hooks.unqueued){oldfire;}};}hooks.unqueued++;anim.always(function{anim.always(function{hooks.unqueued--;if(!jQuery.queue(elem,"fx").length){hooks.empty.fire;}});});}for(prop in props){value=props[prop];if(rfxtypes.test(value)){delete props[prop]; toggle=toggle||value==="toggle";if(value===(hidden?"hide":"show")){if(value==="show"&&dataShow&&dataShow[prop]!==undefined){hidden=!0;}else{continue;}}orig[prop]=dataShow&&dataShow[prop]||jQuery.style(elem,prop);}}propTween=!jQuery.isEmptyObject(props);if(!propTween&&jQuery.isEmptyObject(orig)){return;}if(isBox&&elem.nodeType===1){opts.overflow=[style.overflow,style.overflowX,style.overflowY];restoreDisplay=dataShow&&dataShow.display;if(restoreDisplay==null){restoreDisplay=dataPriv.get(elem,"display");}display=jQuery.css(elem,"display");if(display==="none"){if(restoreDisplay){display=restoreDisplay;}else{showHide([elem],true);restoreDisplay=elem.style.display||restoreDisplay;display=jQuery.css(elem,"display");showHide([elem]);}}if(display==="inline"||display==="inline-block"&&restoreDisplay!=null){if(jQuery.css(elem,"float")==="none"){if(!propTween){anim.done(function{style.display=restoreDisplay;});if(restoreDisplay==null){display=style.display;restoreDisplay=display==="none"?"": display;}}style.display="inline-block";}}}if(opts.overflow){style.overflow="hidden";anim.always(function{style.overflow=opts.overflow[0];style.overflowX=opts.overflow[1];style.overflowY=opts.overflow[2];});}propTween=!1;for(prop in orig){if(!propTween){if(dataShow){if("hidden"in dataShow){hidden=dataShow.hidden;}}else{dataShow=dataPriv.access(elem,"fxshow",{display:restoreDisplay});}if(toggle){dataShow.hidden=!hidden;}if(hidden){showHide([elem],true);}anim.done(function{if(!hidden){showHide([elem]);}dataPriv.remove(elem,"fxshow");for(prop in orig){jQuery.style(elem,prop,orig[prop]);}});}propTween=createTween(hidden?dataShow[prop]:0,prop,anim);if(!(prop in dataShow)){dataShow[prop]=propTween.start;if(hidden){propTween.end=propTween.start;propTween.start=0;}}}}function propFilter(props,specialEasing){var index,name,easing,value,hooks;for(index in props){name=camelCase(index);easing=specialEasing[name];value=props[index];if(Array.isArray(value)){easing=value[1];value=props[index]= value[0];}if(index!==name){props[name]=value;delete props[index];}hooks=jQuery.cssHooks[name];if(hooks&&"expand"in hooks){value=hooks.expand(value);delete props[name];for(index in value){if(!(index in props)){props[index]=value[index];specialEasing[index]=easing;}}}else{specialEasing[name]=easing;}}}function Animation(elem,properties,options){var result,stopped,index=0,length=Animation.prefilters.length,deferred=jQuery.Deferred.always(function{delete tick.elem;}),tick=function{if(stopped){return false;}var currentTime=fxNow||createFxNow,remaining=Math.max(0,animation.startTime+animation.duration-currentTime),temp=remaining/animation.duration||0,percent=1-temp,index=0,length=animation.tweens.length;for(index<length;index++){animation.tweens[index].run(percent);}deferred.notifyWith(elem,[animation,percent,remaining]);if(percent<1&&length){return remaining;}if(!length){deferred.notifyWith(elem,[animation,1,0]);}deferred.resolveWith(elem,[animation]);return false;},animation= deferred.promise({elem:elem,props:jQuery.extend({},properties),opts:jQuery.extend(true,{specialEasing:{},easing:jQuery.easing._default},options),originalProperties:properties,originalOptions:options,startTime:fxNow||createFxNow,duration:options.duration,tweens:[],createTween:function(prop,end){var tween=jQuery.Tween(elem,animation.opts,prop,end,animation.opts.specialEasing[prop]||animation.opts.easing);animation.tweens.push(tween);return tween;},stop:function(gotoEnd){var index=0,length=gotoEnd?animation.tweens.length:0;if(stopped){return this;}stopped=!0;for(index<length;index++){animation.tweens[index].run(1);}if(gotoEnd){deferred.notifyWith(elem,[animation,1,0]);deferred.resolveWith(elem,[animation,gotoEnd]);}else{deferred.rejectWith(elem,[animation,gotoEnd]);}return this;}}),props=animation.props;propFilter(props,animation.opts.specialEasing);for(index<length;index++){result=Animation.prefilters[index].call(animation,elem,props,animation.opts);if(result){if(isFunction(result. stop)){jQuery._queueHooks(animation.elem,animation.opts.queue).stop=result.stop.bind(result);}return result;}}jQuery.map(props,createTween,animation);if(isFunction(animation.opts.start)){animation.opts.start.call(elem,animation);}animation.progress(animation.opts.progress).done(animation.opts.done,animation.opts.complete).fail(animation.opts.fail).always(animation.opts.always);jQuery.fx.timer(jQuery.extend(tick,{elem:elem,anim:animation,queue:animation.opts.queue}));return animation;}jQuery.Animation=jQuery.extend(Animation,{tweeners:{"*":[function(prop,value){var tween=this.createTween(prop,value);adjustCSS(tween.elem,prop,rcssNum.exec(value),tween);return tween;}]},tweener:function(props,callback){if(isFunction(props)){callback=props;props=["*"];}else{props=props.match(rnothtmlwhite);}var prop,index=0,length=props.length;for(index<length;index++){prop=props[index];Animation.tweeners[prop]=Animation.tweeners[prop]||[];Animation.tweeners[prop].unshift(callback);}},prefilters:[ defaultPrefilter],prefilter:function(callback,prepend){if(prepend){Animation.prefilters.unshift(callback);}else{Animation.prefilters.push(callback);}}});jQuery.speed=function(speed,easing,fn){var opt=speed&&typeof speed==="object"?jQuery.extend({},speed):{complete:fn||!fn&&easing||isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&!isFunction(easing)&&easing};if(jQuery.fx.off){opt.duration=0;}else{if(typeof opt.duration!=="number"){if(opt.duration in jQuery.fx.speeds){opt.duration=jQuery.fx.speeds[opt.duration];}else{opt.duration=jQuery.fx.speeds._default;}}}if(opt.queue==null||opt.queue===true){opt.queue="fx";}opt.old=opt.complete;opt.complete=function{if(isFunction(opt.old)){opt.old.call(this);}if(opt.queue){jQuery.dequeue(this,opt.queue);}};return opt;};jQuery.fn.extend({fadeTo:function(speed,to,easing,callback){return this.filter(isHiddenWithinTree).css("opacity",0).show.end.animate({opacity:to},speed,easing,callback);},animate:function(prop,speed,easing, callback){var empty=jQuery.isEmptyObject(prop),optall=jQuery.speed(speed,easing,callback),doAnimation=function{var anim=Animation(this,jQuery.extend({},prop),optall);if(empty||dataPriv.get(this,"finish")){anim.stop(true);}};doAnimation.finish=doAnimation;return empty||optall.queue===!1?this.each(doAnimation):this.queue(optall.queue,doAnimation);},stop:function(type,clearQueue,gotoEnd){var stopQueue=function(hooks){var stop=hooks.stop;delete hooks.stop;stop(gotoEnd);};if(typeof type!=="string"){gotoEnd=clearQueue;clearQueue=type;type=undefined;}if(clearQueue&&type!==false){this.queue(type||"fx",[]);}return this.each(function{var dequeue=!0,index=type!=null&&type+"queueHooks",timers=jQuery.timers,data=dataPriv.get(this);if(index){if(data[index]&&data[index].stop){stopQueue(data[index]);}}else{for(index in data){if(data[index]&&data[index].stop&&rrun.test(index)){stopQueue(data[index]);}}}for(index=timers.length;index--;){if(timers[index].elem===this&&(type==null||timers[index]. queue===type)){timers[index].anim.stop(gotoEnd);dequeue=!1;timers.splice(index,1);}}if(dequeue||!gotoEnd){jQuery.dequeue(this,type);}});},finish:function(type){if(type!==false){type=type||"fx";}return this.each(function{var index,data=dataPriv.get(this),queue=data[type+"queue"],hooks=data[type+"queueHooks"],timers=jQuery.timers,length=queue?queue.length:0;data.finish=!0;jQuery.queue(this,type,[]);if(hooks&&hooks.stop){hooks.stop.call(this,true);}for(index=timers.length;index--;){if(timers[index].elem===this&&timers[index].queue===type){timers[index].anim.stop(true);timers.splice(index,1);}}for(index=0;index<length;index++){if(queue[index]&&queue[index].finish){queue[index].finish.call(this);}}delete data.finish;});}});jQuery.each(["toggle","show","hide"],function(i,name){var cssFn=jQuery.fn[name];jQuery.fn[name]=function(speed,easing,callback){return speed==null||typeof speed==="boolean"?cssFn.apply(this,arguments):this.animate(genFx(name,true),speed,easing,callback);};});jQuery .each({slideDown:genFx("show"),slideUp:genFx("hide"),slideToggle:genFx("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(name,props){jQuery.fn[name]=function(speed,easing,callback){return this.animate(props,speed,easing,callback);};});jQuery.timers=[];jQuery.fx.tick=function{var timer,i=0,timers=jQuery.timers;fxNow=Date.now;for(i<timers.length;i++){timer=timers[i];if(!timer&&timers[i]===timer){timers.splice(i--,1);}}if(!timers.length){jQuery.fx.stop;}fxNow=undefined;};jQuery.fx.timer=function(timer){jQuery.timers.push(timer);jQuery.fx.start;};jQuery.fx.interval=13;jQuery.fx.start=function{if(inProgress){return;}inProgress=!0;schedule;};jQuery.fx.stop=function{inProgress=null;};jQuery.fx.speeds={slow:600,fast:200,_default:400};jQuery.fn.delay=function(time,type){time=jQuery.fx?jQuery.fx.speeds[time]||time:time;type=type||"fx";return this.queue(type,function(next,hooks){var timeout=window.setTimeout(next,time);hooks.stop =function{window.clearTimeout(timeout);};});};(function{var input=document.createElement("input"),select=document.createElement("select"),opt=select.appendChild(document.createElement("option"));input.type="checkbox";support.checkOn=input.value!=="";support.optSelected=opt.selected;input=document.createElement("input");input.value="t";input.type="radio";support.radioValue=input.value==="t";});var boolHook,attrHandle=jQuery.expr.attrHandle;jQuery.fn.extend({attr:function(name,value){return access(this,jQuery.attr,name,value,arguments.length>1);},removeAttr:function(name){return this.each(function{jQuery.removeAttr(this,name);});}});jQuery.extend({attr:function(elem,name,value){var ret,hooks,nType=elem.nodeType;if(nType===3||nType===8||nType===2){return;}if(typeof elem.getAttribute==="undefined"){return jQuery.prop(elem,name,value);}if(nType!==1||!jQuery.isXMLDoc(elem)){hooks=jQuery.attrHooks[name.toLowerCase]||(jQuery.expr.match.bool.test(name)?boolHook:undefined);}if(value!== undefined){if(value===null){jQuery.removeAttr(elem,name);return;}if(hooks&&"set"in hooks&&(ret=hooks.set(elem,value,name))!==undefined){return ret;}elem.setAttribute(name,value+"");return value;}if(hooks&&"get"in hooks&&(ret=hooks.get(elem,name))!==null){return ret;}ret=jQuery.find.attr(elem,name);return ret==null?undefined:ret;},attrHooks:{type:{set:function(elem,value){if(!support.radioValue&&value==="radio"&&nodeName(elem,"input")){var val=elem.value;elem.setAttribute("type",value);if(val){elem.value=val;}return value;}}}},removeAttr:function(elem,value){var name,i=0,attrNames=value&&value.match(rnothtmlwhite);if(attrNames&&elem.nodeType===1){while((name=attrNames[i++])){elem.removeAttribute(name);}}}});boolHook={set:function(elem,value,name){if(value===false){jQuery.removeAttr(elem,name);}else{elem.setAttribute(name,name);}return name;}};jQuery.each(jQuery.expr.match.bool.source.match(/\w+/g),function(i,name){var getter=attrHandle[name]||jQuery.find.attr;attrHandle[name]=function( elem,name,isXML){var ret,handle,lowercaseName=name.toLowerCase;if(!isXML){handle=attrHandle[lowercaseName];attrHandle[lowercaseName]=ret;ret=getter(elem,name,isXML)!=null?lowercaseName:null;attrHandle[lowercaseName]=handle;}return ret;};});var rfocusable=/^(?:input|select|textarea|button)$/i,rclickable=/^(?:a|area)$/i;jQuery.fn.extend({prop:function(name,value){return access(this,jQuery.prop,name,value,arguments.length>1);},removeProp:function(name){return this.each(function{delete this[jQuery.propFix[name]||name];});}});jQuery.extend({prop:function(elem,name,value){var ret,hooks,nType=elem.nodeType;if(nType===3||nType===8||nType===2){return;}if(nType!==1||!jQuery.isXMLDoc(elem)){name=jQuery.propFix[name]||name;hooks=jQuery.propHooks[name];}if(value!==undefined){if(hooks&&"set"in hooks&&(ret=hooks.set(elem,value,name))!==undefined){return ret;}return(elem[name]=value);}if(hooks&&"get"in hooks&&(ret=hooks.get(elem,name))!==null){return ret;}return elem[name];},propHooks:{tabIndex:{ get:function(elem){var tabindex=jQuery.find.attr(elem,"tabindex");if(tabindex){return parseInt(tabindex,10);}if(rfocusable.test(elem.nodeName)||rclickable.test(elem.nodeName)&&elem.href){return 0;}return-1;}}},propFix:{"for":"htmlFor","class":"className"}});if(!support.optSelected){jQuery.propHooks.selected={get:function(elem){var parent=elem.parentNode;if(parent&&parent.parentNode){parent.parentNode.selectedIndex;}return null;},set:function(elem){var parent=elem.parentNode;if(parent){parent.selectedIndex;if(parent.parentNode){parent.parentNode.selectedIndex;}}}};}jQuery.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function{jQuery.propFix[this.toLowerCase]=this;});function stripAndCollapse(value){var tokens=value.match(rnothtmlwhite)||[];return tokens.join(" ");}function getClass(elem){return elem.getAttribute&&elem.getAttribute("class")||"";}function classesToArray(value){if(Array.isArray(value)){ return value;}if(typeof value==="string"){return value.match(rnothtmlwhite)||[];}return[];}jQuery.fn.extend({addClass:function(value){var classes,elem,cur,curValue,clazz,j,finalValue,i=0;if(isFunction(value)){return this.each(function(j){jQuery(this).addClass(value.call(this,j,getClass(this)));});}classes=classesToArray(value);if(classes.length){while((elem=this[i++])){curValue=getClass(elem);cur=elem.nodeType===1&&(" "+stripAndCollapse(curValue)+" ");if(cur){j=0;while((clazz=classes[j++])){if(cur.indexOf(" "+clazz+" ")<0){cur+=clazz+" ";}}finalValue=stripAndCollapse(cur);if(curValue!==finalValue){elem.setAttribute("class",finalValue);}}}}return this;},removeClass:function(value){var classes,elem,cur,curValue,clazz,j,finalValue,i=0;if(isFunction(value)){return this.each(function(j){jQuery(this).removeClass(value.call(this,j,getClass(this)));});}if(!arguments.length){return this.attr("class","");}classes=classesToArray(value);if(classes.length){while((elem=this[i++])){curValue=getClass( elem);cur=elem.nodeType===1&&(" "+stripAndCollapse(curValue)+" ");if(cur){j=0;while((clazz=classes[j++])){while(cur.indexOf(" "+clazz+" ")>-1){cur=cur.replace(" "+clazz+" "," ");}}finalValue=stripAndCollapse(cur);if(curValue!==finalValue){elem.setAttribute("class",finalValue);}}}}return this;},toggleClass:function(value,stateVal){var type=typeof value,isValidValue=type==="string"||Array.isArray(value);if(typeof stateVal==="boolean"&&isValidValue){return stateVal?this.addClass(value):this.removeClass(value);}if(isFunction(value)){return this.each(function(i){jQuery(this).toggleClass(value.call(this,i,getClass(this),stateVal),stateVal);});}return this.each(function{var className,i,self,classNames;if(isValidValue){i=0;self=jQuery(this);classNames=classesToArray(value);while((className=classNames[i++])){if(self.hasClass(className)){self.removeClass(className);}else{self.addClass(className);}}}else if(value===undefined||type==="boolean"){className=getClass(this);if(className){dataPriv.set (this,"__className__",className);}if(this.setAttribute){this.setAttribute("class",className||value===false?"":dataPriv.get(this,"__className__")||"");}}});},hasClass:function(selector){var className,elem,i=0;className=" "+selector+" ";while((elem=this[i++])){if(elem.nodeType===1&&(" "+stripAndCollapse(getClass(elem))+" ").indexOf(className)>-1){return true;}}return false;}});var rreturn=/\r/g;jQuery.fn.extend({val:function(value){var hooks,ret,valueIsFunction,elem=this[0];if(!arguments.length){if(elem){hooks=jQuery.valHooks[elem.type]||jQuery.valHooks[elem.nodeName.toLowerCase];if(hooks&&"get"in hooks&&(ret=hooks.get(elem,"value"))!==undefined){return ret;}ret=elem.value;if(typeof ret==="string"){return ret.replace(rreturn,"");}return ret==null?"":ret;}return;}valueIsFunction=isFunction(value);return this.each(function(i){var val;if(this.nodeType!==1){return;}if(valueIsFunction){val=value.call(this,i,jQuery(this).val);}else{val=value;}if(val==null){val="";}else if(typeof val=== "number"){val+="";}else if(Array.isArray(val)){val=jQuery.map(val,function(value){return value==null?"":value+"";});}hooks=jQuery.valHooks[this.type]||jQuery.valHooks[this.nodeName.toLowerCase];if(!hooks||!("set"in hooks)||hooks.set(this,val,"value")===undefined){this.value=val;}});}});jQuery.extend({valHooks:{option:{get:function(elem){var val=jQuery.find.attr(elem,"value");return val!=null?val:stripAndCollapse(jQuery.text(elem));}},select:{get:function(elem){var value,option,i,options=elem.options,index=elem.selectedIndex,one=elem.type==="select-one",values=one?null:[],max=one?index+1:options.length;if(index<0){i=max;}else{i=one?index:0;}for(i<max;i++){option=options[i];if((option.selected||i===index)&&!option.disabled&&(!option.parentNode.disabled||!nodeName(option.parentNode,"optgroup"))){value=jQuery(option).val;if(one){return value;}values.push(value);}}return values;},set:function(elem,value){var optionSet,option,options=elem.options,values=jQuery.makeArray(value),i=options .length;while(i--){option=options[i];if(option.selected=jQuery.inArray(jQuery.valHooks.option.get(option),values)>-1){optionSet=!0;}}if(!optionSet){elem.selectedIndex=-1;}return values;}}}});jQuery.each(["radio","checkbox"],function{jQuery.valHooks[this]={set:function(elem,value){if(Array.isArray(value)){return(elem.checked=jQuery.inArray(jQuery(elem).val,value)>-1);}}};if(!support.checkOn){jQuery.valHooks[this].get=function(elem){return elem.getAttribute("value")===null?"on":elem.value;};}});support.focusin="onfocusin"in window;var rfocusMorph=/^(?:focusinfocus|focusoutblur)$/,stopPropagationCallback=function(e){e.stopPropagation;};jQuery.extend(jQuery.event,{trigger:function(event,data,elem,onlyHandlers){var i,cur,tmp,bubbleType,ontype,handle,special,lastElement,eventPath=[elem||document],type=hasOwn.call(event,"type")?event.type:event,namespaces=hasOwn.call(event,"namespace")?event.namespace.split("."):[];cur=lastElement=tmp=elem=elem||document;if(elem.nodeType===3||elem. nodeType===8){return;}if(rfocusMorph.test(type+jQuery.event.triggered)){return;}if(type.indexOf(".")>-1){namespaces=type.split(".");type=namespaces.shift;namespaces.sort;}ontype=type.indexOf(":")<0&&"on"+type;event=event[jQuery.expando]?event:new jQuery.Event(type,typeof event==="object"&&event);event.isTrigger=onlyHandlers?2:3;event.namespace=namespaces.join(".");event.rnamespace=event.namespace?new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;event.result=undefined;if(!event.target){event.target=elem;}data=data==null?[event]:jQuery.makeArray(data,[event]);special=jQuery.event.special[type]||{};if(!onlyHandlers&&special.trigger&&special.trigger.apply(elem,data)===false){return;}if(!onlyHandlers&&!special.noBubble&&!isWindow(elem)){bubbleType=special.delegateType||type;if(!rfocusMorph.test(bubbleType+type)){cur=cur.parentNode;}for(cur;cur=cur.parentNode){eventPath.push(cur);tmp=cur;}if(tmp===(elem.ownerDocument||document)){eventPath.push(tmp.defaultView||tmp. parentWindow||window);}}i=0;while((cur=eventPath[i++])&&!event.isPropagationStopped){lastElement=cur;event.type=i>1?bubbleType:special.bindType||type;handle=(dataPriv.get(cur,"events")||{})[event.type]&&dataPriv.get(cur,"handle");if(handle){handle.apply(cur,data);}handle=ontype&&cur[ontype];if(handle&&handle.apply&&acceptData(cur)){event.result=handle.apply(cur,data);if(event.result===false){event.preventDefault;}}}event.type=type;if(!onlyHandlers&&!event.isDefaultPrevented){if((!special._default||special._default.apply(eventPath.pop,data)===false)&&acceptData(elem)){if(ontype&&isFunction(elem[type])&&!isWindow(elem)){tmp=elem[ontype];if(tmp){elem[ontype]=null;}jQuery.event.triggered=type;if(event.isPropagationStopped){lastElement.addEventListener(type,stopPropagationCallback);}elem[type];if(event.isPropagationStopped){lastElement.removeEventListener(type,stopPropagationCallback);}jQuery.event.triggered=undefined;if(tmp){elem[ontype]=tmp;}}}}return event.result;},simulate
 * function(type,elem,event){var e=jQuery.extend(new jQuery.Event,event,{type:type,isSimulated:!0});jQuery.event.trigger(e,null,elem);}});jQuery.fn.extend({trigger:function(type,data){return this.each(function{jQuery.event.trigger(type,data,this);});},triggerHandler:function(type,data){var elem=this[0];if(elem){return jQuery.event.trigger(type,data,elem,true);}}});if(!support.focusin){jQuery.each({focus:"focusin",blur:"focusout"},function(orig,fix){var handler=function(event){jQuery.event.simulate(fix,event.target,jQuery.event.fix(event));};jQuery.event.special[fix]={setup:function{var doc=this.ownerDocument||this,attaches=dataPriv.access(doc,fix);if(!attaches){doc.addEventListener(orig,handler,true);}dataPriv.access(doc,fix,(attaches||0)+1);},teardown:function{var doc=this.ownerDocument||this,attaches=dataPriv.access(doc,fix)-1;if(!attaches){doc.removeEventListener(orig,handler,true);dataPriv.remove(doc,fix);}else{dataPriv.access(doc,fix,attaches);}}};});}var location=window.

location;var nonce=Date.now;var rquery=(/\?/);jQuery.parseXML=function(data){var xml;if(!data||typeof data!=="string"){return null;}try{xml=(new window.DOMParser).parseFromString(data,"text/xml");}catch(e){xml=undefined;}if(!xml||xml.getElementsByTagName("parsererror").length){jQuery.error("Invalid XML: "+data);}return xml;};var rbracket=/\[\]$/,rCRLF=/\r?\n/g,rsubmitterTypes=/^(?:submit|button|image|reset|file)$/i,rsubmittable=/^(?:input|select|textarea|keygen)/i;function buildParams(prefix,obj,traditional,add){var name;if(Array.isArray(obj)){jQuery.each(obj,function(i,v){if(traditional||rbracket.test(prefix)){add(prefix,v);}else{buildParams(prefix+"["+(typeof v==="object"&&v!=null?i:"")+"]",v,traditional,add);}});}else if(!traditional&&toType(obj)==="object"){for(name in obj){buildParams(prefix+"["+name+"]",obj[name],traditional,add);}}else{add(prefix,obj);}}jQuery.param=function(a,traditional){var prefix,s=[],add=function(key,valueOrFunction){var value=isFunction(valueOrFunction )?valueOrFunction:valueOrFunction;s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(value==null?"":value);};if(Array.isArray(a)||(a.jquery&&!jQuery.isPlainObject(a))){jQuery.each(a,function{add(this.name,this.value);});}else{for(prefix in a){buildParams(prefix,a[prefix],traditional,add);}}return s.join("&");};jQuery.fn.extend({serialize:function{return jQuery.param(this.serializeArray);},serializeArray:function{return this.map(function{var elements=jQuery.prop(this,"elements");return elements?jQuery.makeArray(elements):this;}).filter(function{var type=this.type;return this.name&&!jQuery(this).is(":disabled")&&rsubmittable.test(this.nodeName)&&!rsubmitterTypes.test(type)&&(this.checked||!rcheckableType.test(type));}).map(function(i,elem){var val=jQuery(this).val;if(val==null){return null;}if(Array.isArray(val)){return jQuery.map(val,function(val){return{name:elem.name,value:val.replace(rCRLF,"\r\n")};});}return{name:elem.name,value:val.replace(rCRLF,"\r\n")};}). get;}});var r20=/%20/g,rhash=/#.*$/,rantiCache=/([?&])_=[^&]*/,rheaders=/^(.*?):[ \t]*([^\r\n]*)$/mg,rlocalProtocol=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,rnoContent=/^(?:GET|HEAD)$/,rprotocol=/^\/\//,prefilters={},transports={},allTypes="*/".concat("*"),originAnchor=document.createElement("a");originAnchor.href=location.href;function addToPrefiltersOrTransports(structure){return function(dataTypeExpression,func){if(typeof dataTypeExpression!=="string"){func=dataTypeExpression;dataTypeExpression="*";}var dataType,i=0,dataTypes=dataTypeExpression.toLowerCase.match(rnothtmlwhite)||[];if(isFunction(func)){while((dataType=dataTypes[i++])){if(dataType[0]==="+"){dataType=dataType.slice(1)||"*";(structure[dataType]=structure[dataType]||[]).unshift(func);}else{(structure[dataType]=structure[dataType]||[]).push(func);}}}};}function inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR){var inspected={},seekingTransport=(structure===transports);function inspect(dataType){var selected;inspected[dataType]=!0;jQuery.each(structure[dataType]||[],function(_,prefilterOrFactory){var dataTypeOrTransport=prefilterOrFactory(options,originalOptions,jqXHR);if(typeof dataTypeOrTransport==="string"&&!seekingTransport&&!inspected[dataTypeOrTransport]){options.dataTypes.unshift(dataTypeOrTransport);inspect(dataTypeOrTransport);return false;}else if(seekingTransport){return!(selected=dataTypeOrTransport);}});return selected;}return inspect(options.dataTypes[0])||!inspected["*"]&&inspect("*");}function ajaxExtend(target,src){var key,deep,flatOptions=jQuery.ajaxSettings.flatOptions||{};for(key in src){if(src[key]!==undefined){(flatOptions[key]?target:(deep||(deep={})))[key]=src[key];}}if(deep){jQuery.extend(true,target,deep);}return target;}function ajaxHandleResponses(s,jqXHR,responses){var ct,type,finalDataType,firstDataType,contents=s.contents,dataTypes=s.dataTypes;while(dataTypes[0]==="*"){dataTypes.shift;if(ct===undefined){ct=s.mimeType||jqXHR. getResponseHeader("Content-Type");}}if(ct){for(type in contents){if(contents[type]&&contents[type].test(ct)){dataTypes.unshift(type);break;}}}if(dataTypes[0]in responses){finalDataType=dataTypes[0];}else{for(type in responses){if(!dataTypes[0]||s.converters[type+" "+dataTypes[0]]){finalDataType=type;break;}if(!firstDataType){firstDataType=type;}}finalDataType=finalDataType||firstDataType;}if(finalDataType){if(finalDataType!==dataTypes[0]){dataTypes.unshift(finalDataType);}return responses[finalDataType];}}function ajaxConvert(s,response,jqXHR,isSuccess){var conv2,current,conv,tmp,prev,converters={},dataTypes=s.dataTypes.slice;if(dataTypes[1]){for(conv in s.converters){converters[conv.toLowerCase]=s.converters[conv];}}current=dataTypes.shift;while(current){if(s.responseFields[current]){jqXHR[s.responseFields[current]]=response;}if(!prev&&isSuccess&&s.dataFilter){response=s.dataFilter(response,s.dataType);}prev=current;current=dataTypes.shift;if(current){if(current==="*"){current =prev;}else if(prev!=="*"&&prev!==current){conv=converters[prev+" "+current]||converters["* "+current];if(!conv){for(conv2 in converters){tmp=conv2.split(" ");if(tmp[1]===current){conv=converters[prev+" "+tmp[0]]||converters["* "+tmp[0]];if(conv){if(conv===true){conv=converters[conv2];}else if(converters[conv2]!==true){current=tmp[0];dataTypes.unshift(tmp[1]);}break;}}}}if(conv!==true){if(conv&&s.throws){response=conv(response);}else{try{response=conv(response);}catch(e){return{state:"parsererror",error:conv?e:"No conversion from "+prev+" to "+current};}}}}}}return{state:"success",data:response};}jQuery.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:location.href,type:"GET",isLocal:rlocalProtocol.test(location.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":allTypes,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/, html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":jQuery.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(target,settings){return settings?ajaxExtend(ajaxExtend(target,jQuery.ajaxSettings),settings):ajaxExtend(jQuery.ajaxSettings,target);},ajaxPrefilter:addToPrefiltersOrTransports(prefilters),ajaxTransport:addToPrefiltersOrTransports(transports),ajax:function(url,options){if(typeof url==="object"){options=url;url=undefined;}options=options||{};var transport,cacheURL,responseHeadersString,responseHeaders,timeoutTimer,urlAnchor,completed,fireGlobals,i,uncached,s=jQuery.ajaxSetup({},options),callbackContext=s.context||s,globalEventContext=s.context&&(callbackContext.nodeType||callbackContext.jquery)?jQuery(callbackContext):jQuery.event,deferred=jQuery.Deferred,completeDeferred=jQuery.Callbacks("once memory"),statusCode=s.statusCode||{}, requestHeaders={},requestHeadersNames={},strAbort="canceled",jqXHR={readyState:0,getResponseHeader:function(key){var match;if(completed){if(!responseHeaders){responseHeaders={};while((match=rheaders.exec(responseHeadersString))){responseHeaders[match[1].toLowerCase]=match[2];}}match=responseHeaders[key.toLowerCase];}return match==null?null:match;},getAllResponseHeaders:function{return completed?responseHeadersString:null;},setRequestHeader:function(name,value){if(completed==null){name=requestHeadersNames[name.toLowerCase]=requestHeadersNames[name.toLowerCase]||name;requestHeaders[name]=value;}return this;},overrideMimeType:function(type){if(completed==null){s.mimeType=type;}return this;},statusCode:function(map){var code;if(map){if(completed){jqXHR.always(map[jqXHR.status]);}else{for(code in map){statusCode[code]=[statusCode[code],map[code]];}}}return this;},abort:function(statusText){var finalText=statusText||strAbort;if(transport){transport.abort(finalText);}done(0, finalText);return this;}};deferred.promise(jqXHR);s.url=((url||s.url||location.href)+"").replace(rprotocol,location.protocol+"//");s.type=options.method||options.type||s.method||s.type;s.dataTypes=(s.dataType||"*").toLowerCase.match(rnothtmlwhite)||[""];if(s.crossDomain==null){urlAnchor=document.createElement("a");try{urlAnchor.href=s.url;urlAnchor.href=urlAnchor.href;s.crossDomain=originAnchor.protocol+"//"+originAnchor.host!==urlAnchor.protocol+"//"+urlAnchor.host;}catch(e){s.crossDomain=!0;}}if(s.data&&s.processData&&typeof s.data!=="string"){s.data=jQuery.param(s.data,s.traditional);}inspectPrefiltersOrTransports(prefilters,s,options,jqXHR);if(completed){return jqXHR;}fireGlobals=jQuery.event&&s.global;if(fireGlobals&&jQuery.active++===0){jQuery.event.trigger("ajaxStart");}s.type=s.type.toUpperCase;s.hasContent=!rnoContent.test(s.type);cacheURL=s.url.replace(rhash,"");if(!s.hasContent){uncached=s.url.slice(cacheURL.length);if(s.data&&(s.processData||typeof s.data==="string")) {cacheURL+=(rquery.test(cacheURL)?"&":"?")+s.data;delete s.data;}if(s.cache===false){cacheURL=cacheURL.replace(rantiCache,"$1");uncached=(rquery.test(cacheURL)?"&":"?")+"_="+(nonce++)+uncached;}s.url=cacheURL+uncached;}else if(s.data&&s.processData&&(s.contentType||"").indexOf("application/x-www-form-urlencoded")===0){s.data=s.data.replace(r20,"+");}if(s.ifModified){if(jQuery.lastModified[cacheURL]){jqXHR.setRequestHeader("If-Modified-Since",jQuery.lastModified[cacheURL]);}if(jQuery.etag[cacheURL]){jqXHR.setRequestHeader("If-None-Match",jQuery.etag[cacheURL]);}}if(s.data&&s.hasContent&&s.contentType!==false||options.contentType){jqXHR.setRequestHeader("Content-Type",s.contentType);}jqXHR.setRequestHeader("Accept",s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+(s.dataTypes[0]!=="*"?", "+allTypes+"; q=0.01":""):s.accepts["*"]);for(i in s.headers){jqXHR.setRequestHeader(i,s.headers[i]);}if(s.beforeSend&&(s.beforeSend.call(callbackContext,jqXHR,s)===false||completed)){ return jqXHR.abort;}strAbort="abort";completeDeferred.add(s.complete);jqXHR.done(s.success);jqXHR.fail(s.error);transport=inspectPrefiltersOrTransports(transports,s,options,jqXHR);if(!transport){done(-1,"No Transport");}else{jqXHR.readyState=1;if(fireGlobals){globalEventContext.trigger("ajaxSend",[jqXHR,s]);}if(completed){return jqXHR;}if(s.async&&s.timeout>0){timeoutTimer=window.setTimeout(function{jqXHR.abort("timeout");},s.timeout);}try{completed=!1;transport.send(requestHeaders,done);}catch(e){if(completed){throw e;}done(-1,e);}}function done(status,nativeStatusText,responses,headers){var isSuccess,success,error,response,modified,statusText=nativeStatusText;if(completed){return;}completed=!0;if(timeoutTimer){window.clearTimeout(timeoutTimer);}transport=undefined;responseHeadersString=headers||"";jqXHR.readyState=status>0?4:0;isSuccess=status>=200&&status<300||status===304;if(responses){response=ajaxHandleResponses(s,jqXHR,responses);}response=ajaxConvert(s,response,jqXHR, isSuccess);if(isSuccess){if(s.ifModified){modified=jqXHR.getResponseHeader("Last-Modified");if(modified){jQuery.lastModified[cacheURL]=modified;}modified=jqXHR.getResponseHeader("etag");if(modified){jQuery.etag[cacheURL]=modified;}}if(status===204||s.type==="HEAD"){statusText="nocontent";}else if(status===304){statusText="notmodified";}else{statusText=response.state;success=response.data;error=response.error;isSuccess=!error;}}else{error=statusText;if(status||!statusText){statusText="error";if(status<0){status=0;}}}jqXHR.status=status;jqXHR.statusText=(nativeStatusText||statusText)+"";if(isSuccess){deferred.resolveWith(callbackContext,[success,statusText,jqXHR]);}else{deferred.rejectWith(callbackContext,[jqXHR,statusText,error]);}jqXHR.statusCode(statusCode);statusCode=undefined;if(fireGlobals){globalEventContext.trigger(isSuccess?"ajaxSuccess":"ajaxError",[jqXHR,s,isSuccess?success:error]);}completeDeferred.fireWith(callbackContext,[jqXHR,statusText]);if(fireGlobals){ globalEventContext.trigger("ajaxComplete",[jqXHR,s]);if(!(--jQuery.active)){jQuery.event.trigger("ajaxStop");}}}return jqXHR;},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json");},getScript:function(url,callback){return jQuery.get(url,undefined,callback,"script");}});jQuery.each(["get","post"],function(i,method){jQuery[method]=function(url,data,callback,type){if(isFunction(data)){type=type||callback;callback=data;data=undefined;}return jQuery.ajax(jQuery.extend({url:url,type:method,dataType:type,data:data,success:callback},jQuery.isPlainObject(url)&&url));};});jQuery._evalUrl=function(url){return jQuery.ajax({url:url,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0});};jQuery.fn.extend({wrapAll:function(html){var wrap;if(this[0]){if(isFunction(html)){html=html.call(this[0]);}wrap=jQuery(html,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){wrap.insertBefore(this[0]);}wrap.map(function{var elem=this;while(elem. firstElementChild){elem=elem.firstElementChild;}return elem;}).append(this);}return this;},wrapInner:function(html){if(isFunction(html)){return this.each(function(i){jQuery(this).wrapInner(html.call(this,i));});}return this.each(function{var self=jQuery(this),contents=self.contents;if(contents.length){contents.wrapAll(html);}else{self.append(html);}});},wrap:function(html){var htmlIsFunction=isFunction(html);return this.each(function(i){jQuery(this).wrapAll(htmlIsFunction?html.call(this,i):html);});},unwrap:function(selector){this.parent(selector).not("body").each(function{jQuery(this).replaceWith(this.childNodes);});return this;}});jQuery.expr.pseudos.hidden=function(elem){return!jQuery.expr.pseudos.visible(elem);};jQuery.expr.pseudos.visible=function(elem){return!!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects.length);};jQuery.ajaxSettings.xhr=function{try{return new window.XMLHttpRequest;}catch(e){}};var xhrSuccessStatus={0:200,1223:204},xhrSupported=jQuery. ajaxSettings.xhr;support.cors=!!xhrSupported&&("withCredentials"in xhrSupported);support.ajax=xhrSupported=!!xhrSupported;jQuery.ajaxTransport(function(options){var callback,errorCallback;if(support.cors||xhrSupported&&!options.crossDomain){return{send:function(headers,complete){var i,xhr=options.xhr;xhr.open(options.type,options.url,options.async,options.username,options.password);if(options.xhrFields){for(i in options.xhrFields){xhr[i]=options.xhrFields[i];}}if(options.mimeType&&xhr.overrideMimeType){xhr.overrideMimeType(options.mimeType);}if(!options.crossDomain&&!headers["X-Requested-With"]){headers["X-Requested-With"]="XMLHttpRequest";}for(i in headers){xhr.setRequestHeader(i,headers[i]);}callback=function(type){return function{if(callback){callback=errorCallback=xhr.onload=xhr.onerror=xhr.onabort=xhr.ontimeout=xhr.onreadystatechange=null;if(type==="abort"){xhr.abort;}else if(type==="error"){if(typeof xhr.status!=="number"){complete(0,"error");}else{complete(xhr.status,xhr .statusText);}}else{complete(xhrSuccessStatus[xhr.status]||xhr.status,xhr.statusText,(xhr.responseType||"text")!=="text"||typeof xhr.responseText!=="string"?{binary:xhr.response}:{text:xhr.responseText},xhr.getAllResponseHeaders);}}};};xhr.onload=callback;errorCallback=xhr.onerror=xhr.ontimeout=callback("error");if(xhr.onabort!==undefined){xhr.onabort=errorCallback;}else{xhr.onreadystatechange=function{if(xhr.readyState===4){window.setTimeout(function{if(callback){errorCallback;}});}};}callback=callback("abort");try{xhr.send(options.hasContent&&options.data||null);}catch(e){if(callback){throw e;}}},abort:function{if(callback){callback;}}};}});jQuery.ajaxPrefilter(function(s){if(s.crossDomain){s.contents.script=!1;}});jQuery.ajaxSetup({accepts:{script:"text/javascript, application/javascript, "+"application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(text){jQuery.globalEval(text);return text;}}}); jQuery.ajaxPrefilter("script",function(s){if(s.cache===undefined){s.cache=!1;}if(s.crossDomain){s.type="GET";}});jQuery.ajaxTransport("script",function(s){if(s.crossDomain){var script,callback;return{send:function(_,complete){script=jQuery(" ").prop({charset:s.scriptCharset,src:s.url}).on("load error",callback=function(evt){script.remove;callback=null;if(evt){complete(evt.type==="error"?404:200,evt.type);}});document.head.appendChild(script[0]);},abort:function{if(callback){callback;}}};}});var oldCallbacks=[],rjsonp=/(=)\?(?=&|$)|\?\?/;jQuery.ajaxSetup({jsonp:"callback",jsonpCallback:function{var callback=oldCallbacks.pop||(jQuery.expando+"_"+(nonce++));this[callback]=!0;return callback;}});jQuery.ajaxPrefilter("json jsonp",function(s,originalSettings,jqXHR){var callbackName,overwritten,responseContainer,jsonProp=s.jsonp!==!1&&(rjsonp.test(s.url)?"url":typeof s.data==="string"&&(s.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&rjsonp.test(s .data)&&"data");if(jsonProp||s.dataTypes[0]==="jsonp"){callbackName=s.jsonpCallback=isFunction(s.jsonpCallback)?s.jsonpCallback:s.jsonpCallback;if(jsonProp){s[jsonProp]=s[jsonProp].replace(rjsonp,"$1"+callbackName);}else if(s.jsonp!==false){s.url+=(rquery.test(s.url)?"&":"?")+s.jsonp+"="+callbackName;}s.converters["script json"]=function{if(!responseContainer){jQuery.error(callbackName+" was not called");}return responseContainer[0];};s.dataTypes[0]="json";overwritten=window[callbackName];window[callbackName]=function{responseContainer=arguments;};jqXHR.always(function{if(overwritten===undefined){jQuery(window).removeProp(callbackName);}else{window[callbackName]=overwritten;}if(s[callbackName]){s.jsonpCallback=originalSettings.jsonpCallback;oldCallbacks.push(callbackName);}if(responseContainer&&isFunction(overwritten)){overwritten(responseContainer[0]);}responseContainer=overwritten=undefined;});return"script";}});support.createHTMLDocument=(function{var body=document. implementation.createHTMLDocument("").body;body.innerHTML="   ";return body.childNodes.length===2;});jQuery.parseHTML=function(data,context,keepScripts){if(typeof data!=="string"){return[];}if(typeof context==="boolean"){keepScripts=context;context=!1;}var base,parsed,scripts;if(!context){if(support.createHTMLDocument){context=document.implementation.createHTMLDocument("");base=context.createElement("base");base.href=document.location.href;context.head.appendChild(base);}else{context=document;}}parsed=rsingleTag.exec(data);scripts=!keepScripts&&[];if(parsed){return[context.createElement(parsed[1])];}parsed=buildFragment([data],context,scripts);if(scripts&&scripts.length){jQuery(scripts).remove;}return jQuery.merge([],parsed.childNodes);};jQuery.fn.load=function(url,params,callback){var selector,type,response,self=this,off=url.indexOf(" ");if(off>-1){selector=stripAndCollapse(url.slice(off));url=url.slice(0,off);}if(isFunction(params)){callback=params; params=undefined;}else if(params&&typeof params==="object"){type="POST";}if(self.length>0){jQuery.ajax({url:url,type:type||"GET",dataType:"html",data:params}).done(function(responseText){response=arguments;self.html(selector?jQuery(" ").append(jQuery.parseHTML(responseText)).find(selector):responseText);}).always(callback&&function(jqXHR,status){self.each(function{callback.apply(this,response||[jqXHR.responseText,status,jqXHR]);});});}return this;};jQuery.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(i,type){jQuery.fn[type]=function(fn){return this.on(type,fn);};});jQuery.expr.pseudos.animated=function(elem){return jQuery.grep(jQuery.timers,function(fn){return elem===fn.elem;}).length;};jQuery.offset={setOffset:function(elem,options,i){var curPosition,curLeft,curCSSTop,curTop,curOffset,curCSSLeft,calculatePosition,position=jQuery.css(elem,"position"),curElem=jQuery(elem),props={};if(position==="static"){elem.style.position="relative";} curOffset=curElem.offset;curCSSTop=jQuery.css(elem,"top");curCSSLeft=jQuery.css(elem,"left");calculatePosition=(position==="absolute"||position==="fixed")&&(curCSSTop+curCSSLeft).indexOf("auto")>-1;if(calculatePosition){curPosition=curElem.position;curTop=curPosition.top;curLeft=curPosition.left;}else{curTop=parseFloat(curCSSTop)||0;curLeft=parseFloat(curCSSLeft)||0;}if(isFunction(options)){options=options.call(elem,i,jQuery.extend({},curOffset));}if(options.top!=null){props.top=(options.top-curOffset.top)+curTop;}if(options.left!=null){props.left=(options.left-curOffset.left)+curLeft;}if("using"in options){options.using.call(elem,props);}else{curElem.css(props);}}};jQuery.fn.extend({offset:function(options){if(arguments.length){return options===undefined?this:this.each(function(i){jQuery.offset.setOffset(this,options,i);});}var rect,win,elem=this[0];if(!elem){return;}if(!elem.getClientRects.length){return{top:0,left:0};}rect=elem.getBoundingClientRect;win=elem.ownerDocument. defaultView;return{top:rect.top+win.pageYOffset,left:rect.left+win.pageXOffset};},position:function{if(!this[0]){return;}var offsetParent,offset,doc,elem=this[0],parentOffset={top:0,left:0};if(jQuery.css(elem,"position")==="fixed"){offset=elem.getBoundingClientRect;}else{offset=this.offset;doc=elem.ownerDocument;offsetParent=elem.offsetParent||doc.documentElement;while(offsetParent&&(offsetParent===doc.body||offsetParent===doc.documentElement)&&jQuery.css(offsetParent,"position")==="static"){offsetParent=offsetParent.parentNode;}if(offsetParent&&offsetParent!==elem&&offsetParent.nodeType===1){parentOffset=jQuery(offsetParent).offset;parentOffset.top+=jQuery.css(offsetParent,"borderTopWidth",true);parentOffset.left+=jQuery.css(offsetParent,"borderLeftWidth",true);}}return{top:offset.top-parentOffset.top-jQuery.css(elem,"marginTop",true),left:offset.left-parentOffset.left-jQuery.css(elem,"marginLeft",true)};},offsetParent:function{return this.map(function{var offsetParent= this.offsetParent;while(offsetParent&&jQuery.css(offsetParent,"position")==="static"){offsetParent=offsetParent.offsetParent;}return offsetParent||documentElement;});}});jQuery.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(method,prop){var top="pageYOffset"===prop;jQuery.fn[method]=function(val){return access(this,function(elem,method,val){var win;if(isWindow(elem)){win=elem;}else if(elem.nodeType===9){win=elem.defaultView;}if(val===undefined){return win?win[prop]:elem[method];}if(win){win.scrollTo(!top?val:win.pageXOffset,top?val:win.pageYOffset);}else{elem[method]=val;}},method,val,arguments.length);};});jQuery.each(["top","left"],function(i,prop){jQuery.cssHooks[prop]=addGetHookIf(support.pixelPosition,function(elem,computed){if(computed){computed=curCSS(elem,prop);return rnumnonpx.test(computed)?jQuery(elem).position[prop]+"px":computed;}});});jQuery.each({Height:"height",Width:"width"},function(name,type){jQuery.each({padding:"inner"+name,content:type,"": "outer"+name},function(defaultExtra,funcName){jQuery.fn[funcName]=function(margin,value){var chainable=arguments.length&&(defaultExtra||typeof margin!=="boolean"),extra=defaultExtra||(margin===true||value===true?"margin":"border");return access(this,function(elem,type,value){var doc;if(isWindow(elem)){return funcName.indexOf("outer")===0?elem["inner"+name]:elem.document.documentElement["client"+name];}if(elem.nodeType===9){doc=elem.documentElement;return Math.max(elem.body["scroll"+name],doc["scroll"+name],elem.body["offset"+name],doc["offset"+name],doc["client"+name]);}return value===undefined?jQuery.css(elem,type,extra):jQuery.style(elem,type,value,extra);},type,chainable?margin:undefined,chainable);};});});jQuery.each(("blur focus focusin focusout resize scroll click dblclick "+"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave "+"change select submit keydown keypress keyup contextmenu").split(" "),function(i,name){jQuery.fn[name]=function(data,fn){return arguments .length>0?this.on(name,null,data,fn):this.trigger(name);};});jQuery.fn.extend({hover:function(fnOver,fnOut){return this.mouseenter(fnOver).mouseleave(fnOut||fnOver);}});jQuery.fn.extend({bind:function(types,data,fn){return this.on(types,null,data,fn);},unbind:function(types,fn){return this.off(types,null,fn);},delegate:function(selector,types,data,fn){return this.on(types,selector,data,fn);},undelegate:function(selector,types,fn){return arguments.length===1?this.off(selector,"**"):this.off(types,selector||"**",fn);}});jQuery.proxy=function(fn,context){var tmp,args,proxy;if(typeof context==="string"){tmp=fn[context];context=fn;fn=tmp;}if(!isFunction(fn)){return undefined;}args=slice.call(arguments,2);proxy=function{return fn.apply(context||this,args.concat(slice.call(arguments)));};proxy.guid=fn.guid=fn.guid||jQuery.guid++;return proxy;};jQuery.holdReady=function(hold){if(hold){jQuery.readyWait++;}else{jQuery.ready(true);}};jQuery.isArray=Array.isArray;jQuery.parseJSON=JSON.parse; jQuery.nodeName=nodeName;jQuery.isFunction=isFunction;jQuery.isWindow=isWindow;jQuery.camelCase=camelCase;jQuery.type=toType;jQuery.now=Date.now;jQuery.isNumeric=function(obj){var type=jQuery.type(obj);return(type==="number"||type==="string")&&!isNaN(obj-parseFloat(obj));};if(typeof define==="function"&&define.amd){define("jquery",[],function{return jQuery;});}var _jQuery=window.jQuery,_$=window.$;jQuery.noConflict=function(deep){if(window.$===jQuery){window.$=_$;}if(deep&&window.jQuery===jQuery){window.jQuery=_jQuery;}return jQuery;};if(!noGlobal){window.jQuery=window.$=jQuery;}return jQuery;});;(function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],window,factory);}else if(typeof module==="object"&&module.exports){module.exports=factory(require("jquery"),window);}else{factory(window.jQuery,window);}})(function(jQuery,window){"use strict";jQuery.migrateVersion="3.0.1";(function{var rbadVersions=/^[12]\./;if(!window.console||!window.console.log){return;}if( !jQuery||rbadVersions.test(jQuery.fn.jquery)){window.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED");}if(jQuery.migrateWarnings){window.console.log("JQMIGRATE: Migrate plugin loaded multiple times");}window.console.log("JQMIGRATE: Migrate is installed"+(jQuery.migrateMute?"":" with logging active")+", version "+jQuery.migrateVersion);});var warnedAbout={};jQuery.migrateWarnings=[];if(jQuery.migrateTrace===undefined){jQuery.migrateTrace=!1;}jQuery.migrateReset=function{warnedAbout={};jQuery.migrateWarnings.length=0;};function migrateWarn(msg){var console=window.console;if(!warnedAbout[msg]){warnedAbout[msg]=!0;jQuery.migrateWarnings.push(msg);if(window.mw&&window.mw.track){window.mw.track("mw.deprecate","jquery-migrate");}if(console&&console.warn&&!jQuery.migrateMute){console.warn("JQMIGRATE: "+msg);if(jQuery.migrateTrace&&console.trace){console.trace;}}}}function migrateWarnProp(obj,prop,value,msg){Object.defineProperty(obj,prop,{configurable:!0,enumerable:!0,get: function{migrateWarn(msg);return value;},set:function(newValue){migrateWarn(msg);value=newValue;}});}function migrateWarnFunc(obj,prop,newFunc,msg){obj[prop]=function{migrateWarn(msg);return newFunc.apply(this,arguments);};}if(window.document.compatMode==="BackCompat"){migrateWarn("jQuery is not compatible with Quirks Mode");}var oldInit=jQuery.fn.init,oldIsNumeric=jQuery.isNumeric,oldFind=jQuery.find,rattrHashTest=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,rattrHashGlob=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g;jQuery.fn.init=function(arg1){var args=Array.prototype.slice.call(arguments);if(typeof arg1==="string"&&arg1==="#"){migrateWarn("jQuery( '#' ) is not a valid selector");args[0]=[];}return oldInit.apply(this,args);};jQuery.fn.init.prototype=jQuery.fn;jQuery.find=function(selector){var args=Array.prototype.slice.call(arguments);if(typeof selector==="string"&&rattrHashTest.test(selector)){try{window.document.querySelector(selector);}catch(err1){ selector=selector.replace(rattrHashGlob,function(_,attr,op,value){return"["+attr+op+"\""+value+"\"]";});try{window.document.querySelector(selector);migrateWarn("Attribute selector with '#' must be quoted: "+args[0]);args[0]=selector;}catch(err2){migrateWarn("Attribute selector with '#' was not fixed: "+args[0]);}}}return oldFind.apply(this,args);};var findProp;for(findProp in oldFind){if(Object.prototype.hasOwnProperty.call(oldFind,findProp)){jQuery.find[findProp]=oldFind[findProp];}}jQuery.fn.size=function{migrateWarn("jQuery.fn.size is deprecated and removed; use the .length property");return this.length;};jQuery.parseJSON=function{migrateWarn("jQuery.parseJSON is deprecated; use JSON.parse");return JSON.parse.apply(null,arguments);};jQuery.isNumeric=function(val){function isNumeric2(obj){var realStringObj=obj&&obj.toString;return!jQuery.isArray(obj)&&(realStringObj-parseFloat(realStringObj)+1)>=0;}var newValue=oldIsNumeric(val),oldValue=isNumeric2(val);if(newValue!==oldValue ){migrateWarn("jQuery.isNumeric should not be called on constructed objects");}return oldValue;};migrateWarnFunc(jQuery,"holdReady",jQuery.holdReady,"jQuery.holdReady is deprecated");migrateWarnFunc(jQuery,"unique",jQuery.uniqueSort,"jQuery.unique is deprecated; use jQuery.uniqueSort");migrateWarnProp(jQuery.expr,"filters",jQuery.expr.pseudos,"jQuery.expr.filters is deprecated; use jQuery.expr.pseudos");migrateWarnProp(jQuery.expr,":",jQuery.expr.pseudos,"jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos");var oldAjax=jQuery.ajax;jQuery.ajax=function{var jQXHR=oldAjax.apply(this,arguments);if(jQXHR.promise){migrateWarnFunc(jQXHR,"success",jQXHR.done,"jQXHR.success is deprecated and removed");migrateWarnFunc(jQXHR,"error",jQXHR.fail,"jQXHR.error is deprecated and removed");migrateWarnFunc(jQXHR,"complete",jQXHR.always,"jQXHR.complete is deprecated and removed");}return jQXHR;};var oldRemoveAttr=jQuery.fn.removeAttr,oldToggleClass=jQuery.fn.toggleClass,rmatchNonSpace=/\S+/g; jQuery.fn.removeAttr=function(name){var self=this;jQuery.each(name.match(rmatchNonSpace),function(i,attr){if(jQuery.expr.match.bool.test(attr)){migrateWarn("jQuery.fn.removeAttr no longer sets boolean properties: "+attr);self.prop(attr,false);}});return oldRemoveAttr.apply(this,arguments);};jQuery.fn.toggleClass=function(state){if(state!==undefined&&typeof state!=="boolean"){return oldToggleClass.apply(this,arguments);}migrateWarn("jQuery.fn.toggleClass( boolean ) is deprecated");return this.each(function{var className=this.getAttribute&&this.getAttribute("class")||"";if(className){jQuery.data(this,"__className__",className);}if(this.setAttribute){this.setAttribute("class",className||state===false?"":jQuery.data(this,"__className__")||"");}});};var internalSwapCall=!1;if(jQuery.swap){jQuery.each(["height","width","reliableMarginRight"],function(_,name){var oldHook=jQuery.cssHooks[name]&&jQuery.cssHooks[name].get;if(oldHook){jQuery.cssHooks[name].get=function{var ret; internalSwapCall=!0;ret=oldHook.apply(this,arguments);internalSwapCall=!1;return ret;};}});}jQuery.swap=function(elem,options,callback,args){var ret,name,old={};if(!internalSwapCall){migrateWarn("jQuery.swap is undocumented and deprecated");}for(name in options){old[name]=elem.style[name];elem.style[name]=options[name];}ret=callback.apply(elem,args||[]);for(name in options){elem.style[name]=old[name];}return ret;};var oldData=jQuery.data;jQuery.data=function(elem,name,value){var curData;if(name&&typeof name==="object"&&arguments.length===2){curData=jQuery.hasData(elem)&&oldData.call(this,elem);var sameKeys={};for(var key in name){if(key!==jQuery.camelCase(key)){migrateWarn("jQuery.data always sets/gets camelCased names: "+key);curData[key]=name[key];}else{sameKeys[key]=name[key];}}oldData.call(this,elem,sameKeys);return name;}if(name&&typeof name==="string"&&name!==jQuery.camelCase(name)){curData=jQuery.hasData(elem)&&oldData.call(this,elem);if(curData&&name in curData){ migrateWarn("jQuery.data always sets/gets camelCased names: "+name);if(arguments.length>2){curData[name]=value;}return curData[name];}}return oldData.apply(this,arguments);};var oldTweenRun=jQuery.Tween.prototype.run;var linearEasing=function(pct){return pct;};jQuery.Tween.prototype.run=function{if(jQuery.easing[this.easing].length>1){migrateWarn("'jQuery.easing."+this.easing.toString+"' should use only one argument");jQuery.easing[this.easing]=linearEasing;}oldTweenRun.apply(this,arguments);};jQuery.fx.interval=jQuery.fx.interval||13;if(window.requestAnimationFrame){migrateWarnProp(jQuery.fx,"interval",jQuery.fx.interval,"jQuery.fx.interval is deprecated");}var oldLoad=jQuery.fn.load,oldEventAdd=jQuery.event.add,originalFix=jQuery.event.fix;jQuery.event.props=[];jQuery.event.fixHooks={};migrateWarnProp(jQuery.event.props,"concat",jQuery.event.props.concat,"jQuery.event.props.concat is deprecated and removed");jQuery.event.fix=function(originalEvent){var event,type= originalEvent.type,fixHook=this.fixHooks[type],props=jQuery.event.props;if(props.length){migrateWarn("jQuery.event.props are deprecated and removed: "+props.join);while(props.length){jQuery.event.addProp(props.pop);}}if(fixHook&&!fixHook._migrated_){fixHook._migrated_=!0;migrateWarn("jQuery.event.fixHooks are deprecated and removed: "+type);if((props=fixHook.props)&&props.length){while(props.length){jQuery.event.addProp(props.pop);}}}event=originalFix.call(this,originalEvent);return fixHook&&fixHook.filter?fixHook.filter(event,originalEvent):event;};jQuery.event.add=function(elem,types){if(elem===window&&types==="load"&&window.document.readyState==="complete"){migrateWarn("jQuery(window).on('load'...) called after load event occurred");}return oldEventAdd.apply(this,arguments);};jQuery.each(["load","unload","error"],function(_,name){jQuery.fn[name]=function{var args=Array.prototype.slice.call(arguments,0);if(name==="load"&&typeof args[0]==="string"){return oldLoad.apply(this, args);}migrateWarn("jQuery.fn."+name+" is deprecated");args.splice(0,0,name);if(arguments.length){return this.on.apply(this,args);}this.triggerHandler.apply(this,args);return this;};});jQuery(function{jQuery(window.document).triggerHandler("ready");});jQuery.event.special.ready={setup:function{if(this===window.document){migrateWarn("'ready' event is deprecated");}}};jQuery.fn.extend({bind:function(types,data,fn){migrateWarn("jQuery.fn.bind is deprecated");return this.on(types,null,data,fn);},unbind:function(types,fn){migrateWarn("jQuery.fn.unbind is deprecated");return this.off(types,null,fn);},delegate:function(selector,types,data,fn){migrateWarn("jQuery.fn.delegate is deprecated");return this.on(types,selector,data,fn);},undelegate:function(selector,types,fn){migrateWarn("jQuery.fn.undelegate is deprecated");return arguments.length===1?this.off(selector,"**"):this.off(types,selector||"**",fn);},hover:function(fnOver,fnOut){migrateWarn("jQuery.fn.hover is deprecated"); return this.on("mouseenter",fnOver).on("mouseleave",fnOut||fnOver);}});var oldOffset=jQuery.fn.offset;jQuery.fn.offset=function{var docElem,elem=this[0],origin={top:0,left:0};if(!elem||!elem.nodeType){migrateWarn("jQuery.fn.offset requires a valid DOM element");return origin;}docElem=(elem.ownerDocument||window.document).documentElement;if(!jQuery.contains(docElem,elem)){migrateWarn("jQuery.fn.offset requires an element connected to a document");return origin;}return oldOffset.apply(this,arguments);};var oldParam=jQuery.param;jQuery.param=function(data,traditional){var ajaxTraditional=jQuery.ajaxSettings&&jQuery.ajaxSettings.traditional;if(traditional===undefined&&ajaxTraditional){migrateWarn("jQuery.param no longer uses jQuery.ajaxSettings.traditional");traditional=ajaxTraditional;}return oldParam.call(this,data,traditional);};var oldSelf=jQuery.fn.andSelf||jQuery.fn.addBack;jQuery.fn.andSelf=function{migrateWarn( "jQuery.fn.andSelf is deprecated and removed, use jQuery.fn.addBack");return oldSelf.apply(this,arguments);};var oldDeferred=jQuery.Deferred,tuples="resolve","done",jQuery.Callbacks("once memory"),jQuery.Callbacks("once memory"),"resolved"],["reject","fail",jQuery.Callbacks("once memory"),jQuery.Callbacks("once memory"),"rejected"],["notify","progress",jQuery.Callbacks("memory"),jQuery.Callbacks("memory");jQuery.Deferred=function(func){var deferred=oldDeferred,promise=deferred.promise;deferred.pipe=promise.pipe=function{var fns=arguments;migrateWarn("deferred.pipe is deprecated");return jQuery.Deferred(function(newDefer){jQuery.each(tuples,function(i,tuple){var fn=jQuery.isFunction(fns[i])&&fns[i];deferred[tuple[1]](function{var returned=fn&&fn.apply(this,arguments);if(returned&&jQuery.isFunction(returned.promise)){returned.promise.done(newDefer.resolve).fail(newDefer.reject).progress(newDefer.notify);}else{newDefer[tuple[0]+"With"](this===promise?newDefer.promise
 * this,fn?[returned]:arguments);}});});fns=null;}).promise;};if(func){func.call(deferred,deferred);}return deferred;};jQuery.Deferred.exceptionHook=oldDeferred.exceptionHook;return jQuery;});});mw.loader.implement("oojs@1czp8",function($,jQuery,require,module){(function(global){'use strict';var OO={},hasOwn=OO.hasOwnProperty,slice=Array.prototype.slice,toString=OO.toString;OO.initClass=function(fn){fn.static=fn.static||{};};OO.inheritClass=function(targetFn,originFn){var targetConstructor;if(!originFn){throw new Error('inheritClass: Origin is not a function (actually '+originFn+')');}if(targetFn.prototype instanceof originFn){throw new Error('inheritClass: Target already inherits from origin');}targetConstructor=targetFn.prototype.constructor;targetFn.super=targetFn.parent=originFn;targetFn.prototype=Object.create(originFn.prototype,{constructor:{value:targetConstructor,enumerable:!1,writable:!0,configurable:!0}});OO.initClass(originFn);targetFn.static=Object.create(originFn.static);};OO.mixinClass=function(targetFn,originFn){var key;if(!originFn){throw new Error('mixinClass: Origin is not a function (actually '+originFn+')');}for(key in originFn.prototype){if(key!==

'constructor'&&hasOwn.call(originFn.prototype,key)){targetFn.prototype[key]=originFn.prototype[key];}}OO.initClass(targetFn);if(originFn.static){for(key in originFn.static){if(hasOwn.call(originFn.static,key)){targetFn.static[key]=originFn.static[key];}}}else{OO.initClass(originFn);}};OO.isSubclass=function(testFn,baseFn){return testFn===baseFn||testFn.prototype instanceof baseFn;};OO.getProp=function(obj){var i,retval=obj;for(i=1;i1&&(prop=props.pop)&&OO.isPlainObject(prop)&&!Object.keys(prop).length){delete props[props.length-1][arguments[props.length]];}};OO.cloneObject=function(origin){var key,r;r=Object.create(origin.constructor.prototype);for(key in origin){if(hasOwn.call(origin,key)){r[key]=origin[key];}}return r;};OO.getObjectValues=function(obj){var key,values;if(obj!==Object(obj)){throw new TypeError('Called on non-object');}values=[];for(key in obj){if(hasOwn.call(obj,key)){values[values.length]=obj[key];}}return values;};OO.binarySearch=function(arr,searchFunc,forInsertion){var mid,cmpResult,left=0,right=arr.length;while(left<right){mid=(left+right)>>1;cmpResult=searchFunc(arr[mid]);if(cmpResult<0){right=mid;}else if(cmpResult>0){left=mid+1;}else{return mid;}}return forInsertion?right:null source.cloneNode(true)):source.cloneNode(true);}else if(OO.isPlainObject(source)){destination={};}else{return leafCallback?leafCallback(source):source;}for(key in source){destination[key]=OO.copy(source[key],leafCallback,nodeCallback);}return destination;};OO.getHash=function(val){return JSON.stringify(val,OO.getHash.keySortReplacer);};OO.getHash.keySortReplacer=function(key,val){var normalized,keys,i,len;if(val&&typeof val.getHashObject==='function'){val=val.getHashObject;}if(!Array.isArray(val)&&Object(val)===val){normalized={};keys=Object.keys(val).sort;i=0;len=keys.length;for(i<len;i+=1){normalized[keys[i]]=val[keys[i]];}return normalized;}else{return val;}};OO.unique=function(arr){return arr.reduce(function(result,current){if(result.indexOf(current)===-1){result.push(current);}return result;},[]);};OO.simpleArrayUnion=function{var i,ilen,arr,j,jlen,obj={},result=[];for(i=0,ilen=arguments.length;i<ilen;i++){arr=arguments[i];for(j=0,jlen=arr.length;j<jlen;j++){if(!obj[arr[j]] ){obj[arr[j]]=!0;result.push(arr[j]);}}}return result;};function simpleArrayCombine(a,b,includeB){var i,ilen,isInB,bObj={},result=[];for(i=0,ilen=b.length;i<ilen;i++){bObj[b[i]]=!0;}for(i=0,ilen=a.length;i<ilen;i++){isInB=!!bObj[a[i]];if(isInB===includeB){result.push(a[i]);}}return result;}OO.simpleArrayIntersection=function(a,b){return simpleArrayCombine(a,b,true);};OO.simpleArrayDifference=function(a,b){return simpleArrayCombine(a,b,false);};OO.isPlainObject=$.isPlainObject;(function{OO.EventEmitter=function OoEventEmitter{this.bindings={};};OO.initClass(OO.EventEmitter);function validateMethod(method,context){if(typeof method==='string'){if(context===undefined||context===null){throw new Error('Method name "'+method+'" has no context.');}if(typeof context[method]!=='function'){throw new Error('Property "'+method+'" is not a function');}}else if(typeof method!=='function'){throw new Error('Invalid callback. Function or method name expected.');}}function addBinding(eventEmitter ,event,binding){var bindings;if(hasOwn.call(eventEmitter.bindings,event)){bindings=eventEmitter.bindings[event];}else{bindings=eventEmitter.bindings[event]=[];}bindings.push(binding);}OO.EventEmitter.prototype.on=function(event,method,args,context){validateMethod(method,context);addBinding(this,event,{method:method,args:args,context:(arguments.length<4)?null:context,once:!1});return this;};OO.EventEmitter.prototype.once=function(event,listener){validateMethod(listener);addBinding(this,event,{method:listener,args:undefined,context:null,once:!0});return this;};OO.EventEmitter.prototype.off=function(event,method,context){var i,bindings;if(arguments.length===1){delete this.bindings[event];return this;}validateMethod(method,context);if(!hasOwn.call(this.bindings,event)||!this.bindings[event].length){return this;}if(arguments.length<3){context=null;}bindings=this.bindings[event];i=bindings.length;while(i--){if(bindings[i].method===method&&bindings[i].context===context){bindings.splice(i ,1);}}if(bindings.length===0){delete this.bindings[event];}return this;};OO.EventEmitter.prototype.emit=function(event){var bindings,args,i,binding,method;if(!hasOwn.call(this.bindings,event)){return false;}bindings=this.bindings[event].slice;args=slice.call(arguments,1);for(i=0;i<bindings.length;i++){binding=bindings[i];if(typeof binding.method==='string'){method=binding.context[binding.method];}else{method=binding.method;}if(binding.once){this.off(event,method);}try{method.apply(binding.context,binding.args?binding.args.concat(args):args);}catch(e){setTimeout((function(error){throw error;}).bind(null,e));}}return true;};OO.EventEmitter.prototype.emitThrow=function(event){var bindings,args,i,binding,method,firstError;if(!hasOwn.call(this.bindings,event)){return false;}bindings=this.bindings[event].slice;args=slice.call(arguments,1);for(i=0;i<bindings.length;i++){binding=bindings[i];if(typeof binding.method==='string'){method=binding.context[binding.method];}else{method=binding. method;}if(binding.once){this.off(event,method);}try{method.apply(binding.context,binding.args?binding.args.concat(args):args);}catch(e){if(firstError===undefined){firstError=e;}else{setTimeout((function(error){throw error;}).bind(null,e));}}}if(firstError!==undefined){throw firstError;}return true;};OO.EventEmitter.prototype.connect=function(context,methods){var method,args,event;for(event in methods){method=methods[event];if(Array.isArray(method)){args=method.slice(1);method=method[0];}else{args=[];}this.on(event,method,args,context);}return this;};OO.EventEmitter.prototype.disconnect=function(context,methods){var i,event,method,bindings;if(methods){for(event in methods){method=methods[event];if(Array.isArray(method)){method=method[0];}this.off(event,method,context);}}else{for(event in this.bindings){bindings=this.bindings[event];i=bindings.length;while(i--){if(bindings[i]&&bindings[i].context===context){this.off(event,bindings[i].method,context);}}}}return this;};});(function{OO .EmitterList=function OoEmitterList{this.items=[];this.aggregateItemEvents={};};function normalizeArrayIndex(arr,index){return(index===undefined||index<0||index>=arr.length)?arr.length:index;}OO.EmitterList.prototype.getItems=function{return this.items.slice(0);};OO.EmitterList.prototype.getItemIndex=function(item){return this.items.indexOf(item);};OO.EmitterList.prototype.getItemCount=function{return this.items.length;};OO.EmitterList.prototype.isEmpty=function{return!this.items.length;};OO.EmitterList.prototype.aggregate=function(events){var i,item,add,remove,itemEvent,groupEvent;for(itemEvent in events){groupEvent=events[itemEvent];if(Object.prototype.hasOwnProperty.call(this.aggregateItemEvents,itemEvent)){if(groupEvent){throw new Error('Duplicate item event aggregation for '+itemEvent);}for(i=0;i<this.items.length;i++){item=this.items[i];if(item.connect&&item.disconnect){remove={};remove[itemEvent]=['emit',this.aggregateItemEvents[itemEvent],item];item.disconnect(this, remove);}}delete this.aggregateItemEvents[itemEvent];}if(groupEvent){this.aggregateItemEvents[itemEvent]=groupEvent;for(i=0;i<this.items.length;i++){item=this.items[i];if(item.connect&&item.disconnect){add={};add[itemEvent]=['emit',groupEvent,item];item.connect(this,add);}}}}};OO.EmitterList.prototype.addItems=function(items,index){var i,oldIndex;if(!Array.isArray(items)){items=[items];}if(items.length===0){return this;}index=normalizeArrayIndex(this.items,index);for(i=0;i<items.length;i++){oldIndex=this.items.indexOf(items[i]);if(oldIndex!==-1){index=this.moveItem(items[i],index);this.emit('move',items[i],index,oldIndex);}else{index=this.insertItem(items[i],index);this.emit('add',items[i],index);}index++;}return this;};OO.EmitterList.prototype.moveItem=function(item,newIndex){var existingIndex=this.items.indexOf(item);if(existingIndex===-1){throw new Error('Item cannot be moved, because it is not in the list.');}newIndex=normalizeArrayIndex(this.items,newIndex);this.items.splice( existingIndex,1);if(existingIndex<newIndex){newIndex--;}this.items.splice(newIndex,0,item);return newIndex;};OO.EmitterList.prototype.insertItem=function(item,index){var events,event;if(item===null||typeof item!=='object'){throw new Error('Expected object, but item is '+typeof item);}if(item.connect&&item.disconnect){events={};for(event in this.aggregateItemEvents){events[event]=['emit',this.aggregateItemEvents[event],item];}item.connect(this,events);}index=normalizeArrayIndex(this.items,index);this.items.splice(index,0,item);return index;};OO.EmitterList.prototype.removeItems=function(items){var i,item,index;if(!Array.isArray(items)){items=[items];}if(items.length===0){return this;}for(i=0;i<items.length;i++){item=items[i];index=this.items.indexOf(item);if(index!==-1){if(item.connect&&item.disconnect){item.disconnect(this);}this.items.splice(index,1);this.emit('remove',item,index);}}return this;};OO.EmitterList.prototype.clearItems=function{var i,item,cleared=this.items.splice(0, this.items.length);for(i=0;i<cleared.length;i++){item=cleared[i];if(item.connect&&item.disconnect){item.disconnect(this);}}this.emit('clear');return this;};});OO.SortedEmitterList=function OoSortedEmitterList(sortingCallback){OO.EmitterList.call(this);this.sortingCallback=sortingCallback;this.aggregate({sortChange:'itemSortChange'});this.connect(this,{itemSortChange:'onItemSortChange'});};OO.mixinClass(OO.SortedEmitterList,OO.EmitterList);OO.SortedEmitterList.prototype.onItemSortChange=function(item){this.removeItems(item);this.addItems(item);};OO.SortedEmitterList.prototype.setSortingCallback=function(sortingCallback){var items=this.getItems;this.sortingCallback=sortingCallback;this.clearItems;this.addItems(items);};OO.SortedEmitterList.prototype.addItems=function(items){var index,i,insertionIndex;if(!Array.isArray(items)){items=[items];}if(items.length===0){return this;}for(i=0;i<items.length;i++){insertionIndex=this.findInsertionIndex(items[i]);if(insertionIndex<=this.items. length&&this.items[insertionIndex]&&this.sortingCallback(this.items[insertionIndex],items[i])===0){this.removeItems(this.items[insertionIndex]);}index=this.insertItem(items[i],insertionIndex);this.emit('add',items[i],index);}return this;};OO.SortedEmitterList.prototype.findInsertionIndex=function(item){var list=this;return OO.binarySearch(this.items,function(otherItem){return list.sortingCallback(item,otherItem);},true);};OO.Registry=function OoRegistry{OO.EventEmitter.call(this);this.registry={};};OO.mixinClass(OO.Registry,OO.EventEmitter);OO.Registry.prototype.register=function(name,data){var i,len;if(typeof name==='string'){this.registry[name]=data;this.emit('register',name,data);}else if(Array.isArray(name)){for(i=0,len=name.length;i<len;i++){this.register(name[i],data);}}else{throw new Error('Name must be a string or array, cannot be a '+typeof name);}};OO.Registry.prototype.unregister=function(name){var i,len,data;if(typeof name==='string'){data=this.lookup(name);if(data!== undefined){delete this.registry[name];this.emit('unregister',name,data);}}else if(Array.isArray(name)){for(i=0,len=name.length;i<len;i++){this.unregister(name[i]);}}else{throw new Error('Name must be a string or array, cannot be a '+typeof name);}};OO.Registry.prototype.lookup=function(name){if(hasOwn.call(this.registry,name)){return this.registry[name];}};OO.Factory=function OoFactory{OO.Factory.super.call(this);};OO.inheritClass(OO.Factory,OO.Registry);OO.Factory.prototype.register=function(constructor,name){if(typeof constructor!=='function'){throw new Error('constructor must be a function, got '+typeof constructor);}if(arguments.length<=1){name=constructor.static&&constructor.static.name;}if(typeof name!=='string'||name===''){throw new Error('name must be a non-empty string');}OO.Factory.super.prototype.register.call(this,name,constructor);};OO.Factory.prototype.unregister=function(name){if(typeof name==='function'){name=name.static&&name.static.name;}if(typeof name!=='string'|| name===){throw new Error('name must be a non-empty string');}OO.Factory.super.prototype.unregister.call(this,name);};OO.Factory.prototype.create=function(name){var obj,i,args=[],constructor=this.lookup(name);if(!constructor){throw new Error('No class registered by that name: '+name);}for(i=1;i400){version='2.0';}if(name==='opera'&&version>=9.8){match=ua.match(/\bversion\/([0-9.]*)/);if(match&&match[1]){version=match[1];}else{version='10';}}if(name==='chrome'&&(match=ua.match(/\bopr\/([0-9.]*)/))){if(match[1]){name='opera';version=match[1];}}if(layout==='trident'&&layoutversion>=7&&(match=ua.match(/\brv[ :/]([0-9.]*)/))){if(match[1]){name='msie';version=match[1];}}if(name==='chrome'&&(match=ua.match(/\bedge\/([0-9.]*)/))){name='edge';version=match[1];layout='edge';layoutversion=parseInt(match[1],10);}if((match=ua.match(/\bsilk\/([0-9.\-_]*)/))) {if(match[1]){name='silk';version=match[1];}}versionNumber=parseFloat(version,10)||0.0;profileCache[key]={name:name,layout:layout,layoutVersion:layoutversion,platform:platform,version:version,versionBase:(version!==x?Math.floor(versionNumber).toString:x),versionNumber:versionNumber};return profileCache[key];},test:function(map,profile,exactMatchOnly){var conditions,dir,i,op,val,j,pieceVersion,pieceVal,compare;profile=$.isPlainObject(profile)?profile:$.client.profile;if(map.ltr&&map.rtl){dir=$(document.body).is('.rtl')?'rtl':'ltr';map=map[dir];}if(typeof map!=='object'||map[profile.name]===undefined){return!exactMatchOnly;}conditions=map[profile.name];if(conditions===false){return false;}if(conditions===null){return true;}for(i=0;i<conditions.length;i++){op=conditions[i][0];val=conditions[i][1];if(typeof val==='string'){pieceVersion=profile.version.toString.split('.');pieceVal=val.split('.');while(pieceVersion.length<pieceVal.length){pieceVersion.push('0');}while(pieceVal.length< pieceVersion.length){pieceVal.push('0');}compare=0;for(j=0;j<pieceVersion.length;j++){if(Number(pieceVersion[j])<Number(pieceVal[j])){compare=-1;break;}else if(Number(pieceVersion[j])>Number(pieceVal[j])){compare=1;break;}}if(!(eval(String(compare+op+'0')))){return false;}}else if(typeof val==='number'){if(!(eval('profile.versionNumber'+op+val))){return false;}}}return true;}};});});mw.loader.implement("jquery.cookie@1fdv0",function($,jQuery,require,module){(function($,document,undefined){var pluses=/\+/g;function raw(s){return s;}function decoded(s){return unRfc2068(decodeURIComponent(s.replace(pluses,' ')));}function unRfc2068(value){if(value.indexOf('"')===0){value=value.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,'\\');}return value;}function fromJSON(value){return config.json?JSON.parse(value):value;}var config=$.cookie=function(key,value,options){if(value!==undefined){options=$.extend({},config.defaults,options);if(value===null){options.expires=-1;}if(typeof options.expires==='number'){var days=options.expires,t=options.expires=new Date;t.setDate(t.getDate+days);}value=config.json?JSON.stringify(value):String(value);return(document.cookie=[encodeURIComponent(key),'=',config.raw?value:encodeURIComponent(value),options.expires?'; expires='+options.expires.toUTCString:,options.path?'; path='+options.path:,options.domain?'; domain='+options.domain: ,options.secure?'; secure':].join(''));}var decode=config.raw?raw:decoded;var cookies=document.cookie.split('; ');var result=key?null:{};for(var i=0,l=cookies.length;i<l;i++){var parts=cookies[i].split('=');var name=decode(parts.shift);var cookie=decode(parts.join('='));if(key&&key===name){result=fromJSON(cookie);break;}if(!key){result[name]=fromJSON(cookie);}}return result;};config.defaults={};$.removeCookie=function(key,options){if($.cookie(key)!==null){$.cookie(key,null,options);return true;}return false;};})(jQuery,document);});mw.loader.implement("jquery.getAttrs@8wtj2",function($,jQuery,require,module){(function{function serializeControls(controls){var i,data={},len=controls.length;for(i=0;i<len;i++){data[controls[i].name]=controls[i].value;}return data;}$.fn.getAttrs=function{return serializeControls(this[0].attributes);};$.fn.serializeObject=function{return serializeControls(this.serializeArray);};});});mw.loader.implement("jquery.highlightText@57m83",function($,jQuery,require,module){(function{$.highlightText={splitAndHighlight:function(node,text){var i,words=text.split(' ');for(i=0;i<words.length;i++){if(words[i].length===0){continue;}$.highlightText.innerHighlight(node,new RegExp('(^|\\s)'+mw.util.escapeRegExp(words[i]),'i'));}return node;},prefixHighlight:function(node,prefix){$.highlightText.innerHighlight(node,new RegExp('(^)'+mw.util.escapeRegExp(prefix),'i'));},prefixPlusComboHighlight:function(node,prefix){var comboMarks= '[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]' $el=$(this);$el.data('highlightText',{originalText:$el.text});$.highlightText[options.method](this,matchString);});};});});mw.loader.implement("jquery.suggestions@1jf1r",function($,jQuery,require,module){(function{function cancel(context){if(context.data.timerID!==null){clearTimeout(context.data.timerID);}if(typeof context.config.cancel==='function'){context.config.cancel.call(context.data.$textbox);}}function hide(context){context.data.$container.find('.suggestions-result-current').removeClass('suggestions-result-current');context.data.$container.hide;}function restore(context){context.data.$textbox.val(context.data.prevText);}function special(context){if(typeof context.config.special.render==='function'){setTimeout(function{var $special=context.data.$container.find('.suggestions-special');context.config.special.render.call($special,context.data.$textbox.val,context);},1);}}function update(context,delayed){function maybeFetch{var val=context.data.$textbox.val,cache=context.data.cache,cacheHit;if(typeof context.config.update.before==='function'){context.config.update.before.call(context.data. $textbox);}if(val.length===0){hide(context);context.data.prevText='';}else if(val!==context.data.prevText||!context.data.$container.is(':visible')){context.data.prevText=val;if(context.config.cache&&val in cache){if(mw.now-cache[val].timestamp<context.config.cacheMaxAge){context.data.$textbox.suggestions('suggestions',cache[val].suggestions);if(typeof context.config.update.after==='function'){context.config.update.after.call(context.data.$textbox,cache[val].metadata);}cacheHit=!0;}else{delete cache[val];}}if(!cacheHit&&typeof context.config.fetch==='function'){context.config.fetch.call(context.data.$textbox,val,function(suggestions,metadata){suggestions=suggestions.slice(0,context.config.maxRows);context.data.$textbox.suggestions('suggestions',suggestions);if(typeof context.config.update.after==='function'){context.config.update.after.call(context.data.$textbox,metadata);}if(context.config.cache){cache[val]={suggestions:suggestions,metadata:metadata,timestamp:mw.now};}},context. config.maxRows);}}special(context);}cancel(context);if(delayed){context.data.timerID=setTimeout(maybeFetch,context.config.delay);}else{maybeFetch;}}function highlight(context,result,updateTextbox){var selected=context.data.$container.find('.suggestions-result-current');if(!result.get||selected.get(0)!==result.get(0)){if(result==='prev'){if(selected.hasClass('suggestions-special')){result=context.data.$container.find('.suggestions-result').last;}else{result=selected.prev;if(!(result.length&&result.hasClass('suggestions-result'))){result=selected.parents('.suggestions-results > *').prev.find('.suggestions-result').eq(0);}if(selected.length===0){if(context.data.$container.find('.suggestions-special').html!==''){result=context.data.$container.find('.suggestions-special');}else{result=context.data.$container.find('.suggestions-results .suggestions-result').last;}}}}else if(result==='next'){if(selected.length===0){result=context.data.$container.find( '.suggestions-results .suggestions-result').first;if(result.length===0&&context.data.$container.find('.suggestions-special').html!==){result=context.data.$container.find('.suggestions-special');}}else{result=selected.next;if(!(result.length&&result.hasClass('suggestions-result'))){result=selected.parents('.suggestions-results > *').next.find('.suggestions-result').eq(0);}if(selected.hasClass('suggestions-special')){result=$([]);}else if(result.length===0&&context.data.$container.find('.suggestions-special').html!==){result=context.data.$container.find('.suggestions-special');}}}selected.removeClass('suggestions-result-current');result.addClass('suggestions-result-current');}if(updateTextbox){if(result.length===0||result.is('.suggestions-special')){restore(context);}else{context.data.$textbox.val(result.data('text'));context.data.$textbox.trigger('change');}context.data.$textbox.trigger('change');}}function configure(context,property,value){var newCSS,$result,$results, $spanForWidth,childrenWidth,regionIsFixed,regionPosition,i,expWidth,maxWidth,text;switch(property){case'fetch':case'cancel':case'special':case'result':case'update':case'$region':case'expandFrom':context.config[property]=value;break;case'suggestions':context.config[property]=value;if(context.data!==undefined){if(context.data.$textbox.val.length===0){hide(context);}else{context.data.$container.show;regionIsFixed=(function{var $el=context.config.$region;do{if($el.css('position')==='fixed'){return true;}$el=$($el[0].offsetParent);}while($el.length);return false;});regionPosition=regionIsFixed?context.config.$region[0].getBoundingClientRect:context.config.$region.offset;newCSS={position:regionIsFixed?'fixed':'absolute',top:regionPosition.top+context.config.$region.outerHeight,bottom:'auto',width:context.config.$region.outerWidth,height:'auto'};context.config.expandFrom=(function(expandFrom){var regionWidth,docWidth,regionCenter,docCenter,isRTL=$(document.documentElement).css ('direction')==='rtl',$region=context.config.$region;if(context.config.positionFromLeft){expandFrom='left';}else if(['left','right','start','end','auto'].indexOf(expandFrom)===-1){expandFrom='auto';}if(expandFrom==='auto'){if($region.data('searchsuggest-expand-dir')){expandFrom=$region.data('searchsuggest-expand-dir');}else{regionWidth=$region.outerWidth;docWidth=$(document).width;if(regionWidth>(0.85*docWidth)){expandFrom='start';}else{regionCenter=regionPosition.left+regionWidth/2;docCenter=docWidth/2;if(Math.abs(regionCenter-docCenter)<(0.10*docCenter)){expandFrom='start';}else{expandFrom=regionCenter>docCenter?'right':'left';}}}}if(expandFrom==='start'){expandFrom=isRTL?'right':'left';}else if(expandFrom==='end'){expandFrom=isRTL?'left':'right';}return expandFrom;}(context.config.expandFrom));if(context.config.expandFrom==='left'){newCSS.left=regionPosition.left;newCSS.right='auto';}else{newCSS.left='auto';newCSS.right=document.documentElement.clientWidth-(regionPosition.left+ context.config.$region.outerWidth);}context.data.$container.css(newCSS);$results=context.data.$container.children('.suggestions-results');$results.empty;expWidth=-1;for(i=0;i<context.config.suggestions.length;i++){text=context.config.suggestions[i];$result=$(' ').addClass('suggestions-result').attr('rel',i).data('text',context.config.suggestions[i]).on('mousemove',function{context.data.selectedWithMouse=!0;highlight(context,$(this).closest('.suggestions-results .suggestions-result'),false);}).appendTo($results);if(typeof context.config.result.render==='function'){context.config.result.render.call($result,context.config.suggestions[i],context);}else{$result.text(text);}if(context.config.highlightInput){$result.highlightText(context.data.prevText,{method:'prefixPlusComboHighlight'});}$spanForWidth=$result.wrapInner(' ').children;childrenWidth=$spanForWidth.css('position','absolute').outerWidth;$spanForWidth.contents.unwrap;if(childrenWidth>$result.width&& childrenWidth>expWidth){expWidth=childrenWidth+(context.data.$container.width-$result.width);}}if(expWidth>context.data.$container.width){maxWidth=context.config.maxExpandFactor*context.data.$textbox.width;context.data.$container.width(Math.min(expWidth,maxWidth));}}}break;case'maxRows':context.config[property]=Math.max(1,Math.min(100,value));break;case'delay':context.config[property]=Math.max(0,Math.min(1200,value));break;case'cacheMaxAge':context.config[property]=Math.max(1,value);break;case'maxExpandFactor':context.config[property]=Math.max(1,value);break;case'cache':case'submitOnClick':case'positionFromLeft':case'highlightInput':context.config[property]=!!value;break;}}function keypress(e,context,key){var selected,wasVisible=context.data.$container.is(':visible'),preventDefault=!1;switch(key){case 40:if(wasVisible){highlight(context,'next',true);context.data.selectedWithMouse=!1;}else{update(context,false);}preventDefault=!0;break;case 38:if(wasVisible){highlight( context,'prev',true);context.data.selectedWithMouse=!1;}preventDefault=wasVisible;break;case 27:hide(context);restore(context);cancel(context);context.data.$textbox.trigger('change');preventDefault=wasVisible;break;case 13:preventDefault=wasVisible;selected=context.data.$container.find('.suggestions-result-current');hide(context);if(selected.length===0||context.data.selectedWithMouse){cancel(context);preventDefault=!1;}else if(selected.is('.suggestions-special')){if(typeof context.config.special.select==='function'){if(context.config.special.select.call(selected,context.data.$textbox,'keyboard')===true){preventDefault=!1;}}}else{if(typeof context.config.result.select==='function'){if(context.config.result.select.call(selected,context.data.$textbox,'keyboard')===true){preventDefault=!1;}}}break;default:update(context,true);break;}if(preventDefault){e.preventDefault;e.stopPropagation;}}$.fn.suggestions=function{var args=arguments;$(this).each(function{var context,key; context=$(this).data('suggestions-context');if(context===undefined||context===null){context={config:{fetch:function{},cancel:function{},special:{},result:{},update:{},$region:$(this),suggestions:[],maxRows:10,delay:120,cache:!1,cacheMaxAge:60000,submitOnClick:!1,maxExpandFactor:3,expandFrom:'auto',highlightInput:!1}};}if(args.length>0){if(typeof args[0]==='object'){for(key in args[0]){configure(context,key,args[0][key]);}}else if(typeof args[0]==='string'){if(args.length>1){configure(context,args[0],args[1]);}}}if(context.data===undefined){context.data={timerID:null,prevText:null,cache:Object.create(null),visibleResults:0,mouseDownOn:$([]),$textbox:$(this),selectedWithMouse:!1};context.data.$container=$(' ').css('display','none').addClass('suggestions').append($(' ').addClass('suggestions-results').on('mousedown',function(e){context.data.mouseDownOn=$(e.target).closest('.suggestions-results .suggestions-result');}).on('mouseup',function(e){var $result=$(e.target ).closest('.suggestions-results .suggestions-result'),$other=context.data.mouseDownOn;context.data.mouseDownOn=$([]);if($result.get(0)!==$other.get(0)){return;}highlight(context,$result,true);if(typeof context.config.result.select==='function'){context.config.result.select.call($result,context.data.$textbox,'mouse');}if(!(e.which!==1||e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)){setTimeout(function{hide(context);});}context.data.$textbox.trigger('focus');})).append($(' ').addClass('suggestions-special').on('mousedown',function(e){context.data.mouseDownOn=$(e.target).closest('.suggestions-special');}).on('mouseup',function(e){var $special=$(e.target).closest('.suggestions-special'),$other=context.data.mouseDownOn;context.data.mouseDownOn=$([]);if($special.get(0)!==$other.get(0)){return;}if(typeof context.config.special.select==='function'){context.config.special.select.call($special,context.data.$textbox,'mouse');}if(!(e.which!==1||e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)){ setTimeout(function{hide(context);});}context.data.$textbox.trigger('focus');}).on('mousemove',function(e){context.data.selectedWithMouse=!0;highlight(context,$(e.target).closest('.suggestions-special'),false);})).appendTo(document.body);$(this).attr('autocomplete','off').on('keydown',function(e){context.data.keypressed=e.which;context.data.keypressedCount=0;}).on('keypress',function(e){context.data.keypressedCount++;keypress(e,context,context.data.keypressed);}).on('keyup',function(e){var allowed=[40,38,27,13,46,8];if(context.data.keypressedCount===0&&e.which===context.data.keypressed&&allowed.indexOf(e.which)!==-1){keypress(e,context,context.data.keypressed);}}).on('blur',function{if(context.data.mouseDownOn.length>0){return;}hide(context);cancel(context);});if($(this).is(':focus')&&this.value!==this.defaultValue){update(context,false);}}$(this).data('suggestions-context',context);});return this;};});},{"css":[ ".suggestions{overflow:hidden;position:absolute;top:0;left:0;width:0;border:0;z-index:1099;padding:0;margin:-1px 0 0 0}.suggestions-special{position:relative;background-color:#fff;cursor:pointer;border:1px solid #a2a9b1;margin:0;margin-top:-2px;display:none;padding:0.25em 0.25em;line-height:1.25em}.suggestions-results{background-color:#fff;cursor:pointer;border:1px solid #a2a9b1;padding:0;margin:0}.suggestions-result{color:#000;margin:0;line-height:1.5em;padding:0.01em 0.25em;text-align:left; overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.suggestions-result-current{background-color:#2a4b8d;color:#fff}.suggestions-special .special-label{color:#72777d;text-align:left}.suggestions-special .special-query{color:#000;font-style:italic;text-align:left}.suggestions-special .special-hover{background-color:#c8ccd1}.suggestions-result-current .special-label,.suggestions-result-current .special-query{color:#fff}.highlight{font-weight:bold}"]});mw.loader.implement("jquery.tabIndex@240we",function($,jQuery,require,module){mw.log.warn("This page is using the deprecated ResourceLoader module \"jquery.tabIndex\".");(function{$.fn.firstTabIndex=function{var minTabIndex=null;$(this).find('[tabindex]').each(function{var tabIndex=parseInt($(this).prop('tabindex'),10);if(tabIndex>0&&!isNaN(tabIndex)){if(minTabIndex===null){minTabIndex=tabIndex;}else if(tabIndex<minTabIndex){minTabIndex=tabIndex;}}});return minTabIndex;};$.fn.lastTabIndex=function{var maxTabIndex=null;$(this).find('[tabindex]').each(function{var tabIndex=parseInt($(this).prop('tabindex'),10);if(tabIndex>0&&!isNaN(tabIndex)){if(maxTabIndex===null){maxTabIndex=tabIndex;}else if(tabIndex>maxTabIndex){maxTabIndex=tabIndex;}}});return maxTabIndex;};});});mw.loader.implement("jquery.textSelection@1fsnd",function($,jQuery,require,module){(function{$.fn.textSelection=function(command,options){var fn,alternateFn,retval;fn={getContents:function{return this.val;},setContents:function(content){return this.each(function{var scrollTop=this.scrollTop;$(this).val(content);this.scrollTop=scrollTop;});},getSelection:function{var retval,el=this.get(0);if(!el){retval='';}else{retval=el.value.substring(el.selectionStart,el.selectionEnd);}return retval;},replaceSelection:function(value){return this.each(function{var allText,currSelection,startPos,endPos;allText=$(this).textSelection('getContents');currSelection=$(this).textSelection('getCaretPosition',{startAndEnd:!0});startPos=currSelection[0];endPos=currSelection[1];$(this).textSelection('setContents',allText.slice(0,startPos)+value+allText.slice(endPos));$(this).textSelection('setSelection',{start:startPos,end:startPos+value.length});});},encapsulateSelection:function(options){return this .each(function{var selText,allText,currSelection,insertText,combiningCharSelectionBug=!1,isSample,startPos,endPos,pre=options.pre,post=options.post;function checkSelectedText{if(!selText){selText=options.peri;isSample=!0;}else if(options.replace){selText=options.peri;}else{while(selText.charAt(selText.length-1)===' '){selText=selText.slice(0,-1);post+=' ';}while(selText.charAt(0)===' '){selText=selText.slice(1);pre=' '+pre;}}}function doSplitLines(selText,pre,post){var i,insertText='',selTextArr=selText.split('\n');for(i=0;i<selTextArr.length;i++){insertText+=pre+selTextArr[i]+post;if(i!==selTextArr.length-1){insertText+='\n';}}return insertText;}isSample=!1;$(this).trigger('focus');if(options.selectionStart!==undefined){$(this).textSelection('setSelection',{start:options.selectionStart,end:options.selectionEnd});}selText=$(this).textSelection('getSelection');allText=$(this).textSelection('getContents');currSelection=$(this).textSelection('getCaretPosition',{startAndEnd: !0});startPos=currSelection[0];endPos=currSelection[1];checkSelectedText;if(options.selectionStart!==undefined&&endPos-startPos!==options.selectionEnd-options.selectionStart){startPos=options.selectionStart;combiningCharSelectionBug=!0;}insertText=pre+selText+post;if(options.splitlines){insertText=doSplitLines(selText,pre,post);}if(options.ownline){if(startPos!==0&&allText.charAt(startPos-1)!=='\n'&&allText.charAt(startPos-1)!=='\r'){insertText='\n'+insertText;pre+='\n';}if(allText.charAt(endPos)!=='\n'&&allText.charAt(endPos)!=='\r'){insertText+='\n';post+='\n';}}if(combiningCharSelectionBug){$(this).textSelection('setContents',allText.slice(0,startPos)+insertText+allText.slice(endPos));}else{$(this).textSelection('replaceSelection',insertText);}if(isSample&&options.selectPeri&&(!options.splitlines||(options.splitlines&&selText.indexOf('\n')===-1))){$(this).textSelection('setSelection',{start:startPos+pre.length,end:startPos+pre.length+selText.length});}else{$(this). textSelection('setSelection',{start:startPos+insertText.length});}$(this).trigger('encapsulateSelection',[options.pre,options.peri,options.post,options.ownline,options.replace,options.splitlines]);});},getCaretPosition:function(options){function getCaret(e){var caretPos=0,endPos=0;if(e){caretPos=e.selectionStart;endPos=e.selectionEnd;}return options.startAndEnd?[caretPos,endPos]:caretPos;}return getCaret(this.get(0));},setSelection:function(options){return this.each(function{if(options.start>this.selectionEnd){this.selectionEnd=options.end;this.selectionStart=options.start;}else{this.selectionStart=options.start;this.selectionEnd=options.end;}});},scrollToCaretPosition:function(options){return this.each(function{var clientHeight=this.clientHeight,origValue=this.value,origSelectionStart=this.selectionStart,origSelectionEnd=this.selectionEnd,origScrollTop=this.scrollTop,calcScrollTop;this.value=this.value.slice(0,this.selectionEnd);this.scrollTop=this.scrollHeight;calcScrollTop=this. scrollTop;this.value=origValue;this.selectionStart=origSelectionStart;this.selectionEnd=origSelectionEnd;if(!options.force){if(calcScrollTop<origScrollTop&&origScrollTop-calcScrollTop<clientHeight){calcScrollTop=origScrollTop;}}this.scrollTop=calcScrollTop;$(this).trigger('scrollToPosition');});}};alternateFn=$(this).data('jquery.textSelection');switch(command){case'encapsulateSelection':options=$.extend({pre:,peri:,post:'',ownline:!1,replace:!1,selectPeri:!0,splitlines:!1,selectionStart:undefined,selectionEnd:undefined},options);break;case'getCaretPosition':options=$.extend({startAndEnd:!1},options);break;case'setSelection':options=$.extend({start:undefined,end:undefined},options);if(options.end===undefined){options.end=options.start;}break;case'scrollToCaretPosition':options=$.extend({force:!1},options);break;case'register':if(alternateFn){throw new Error('Another textSelection API was already registered');}$(this).data('jquery.textSelection',options);return;case 'unregister':$(this).removeData('jquery.textSelection');return;}retval=(alternateFn&&alternateFn[command]||fn[command]).call(this,options);return retval;};});});mw.loader.implement("mediawiki.ForeignApi@11qqf");mw.loader.implement("mediawiki.String@152v5",function($,jQuery,require,module){(function{function byteLength(str){return str.replace(/[\u0080-\u07FF\uD800-\uDFFF]/g,'**').replace(/[\u0800-\uD7FF\uE000-\uFFFF]/g,'***').length;}function codePointLength(str){return str.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,'*').length;}function codePointAt(string,offset,backwards){var maybePair=backwards?string.slice(offset-1,offset+1):string.slice(offset,offset+2);if(/^[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(maybePair)){return maybePair;}else{return string.charAt(offset);}}function trimLength(safeVal,newVal,length,lengthFn){var startMatches,endMatches,matchesLen,inpParts,chopOff,oldChar,newChar,oldVal=safeVal;if(lengthFn(newVal)<=length){return{newVal:newVal,trimmed:!1};}startMatches=0;endMatches=0;matchesLen=Math.min(newVal.length,oldVal.length);while(startMatches<matchesLen){oldChar=codePointAt(oldVal,startMatches,false);newChar=codePointAt(newVal,startMatches,false);if(oldChar!==newChar){break; }startMatches+=oldChar.length;}while(endMatches<(matchesLen-startMatches)){oldChar=codePointAt(oldVal,oldVal.length-1-endMatches,true);newChar=codePointAt(newVal,newVal.length-1-endMatches,true);if(oldChar!==newChar){break;}endMatches+=oldChar.length;}inpParts=[newVal.slice(0,startMatches),newVal.slice(startMatches,newVal.length-endMatches),newVal.slice(newVal.length-endMatches)];while(lengthFn(inpParts.join())>length&&inpParts[1].length>0){chopOff=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(inpParts[1])?2:1;inpParts[1]=inpParts[1].slice(0,-chopOff);}return{newVal:inpParts.join(),trimmed:newVal!==inpParts.join('')};}function trimByteLength(safeVal,newVal,byteLimit,filterFunction){var lengthFn;if(filterFunction){lengthFn=function(val){return byteLength(filterFunction(val));};}else{lengthFn=byteLength;}return trimLength(safeVal,newVal,byteLimit,lengthFn);}function trimCodePointLength(safeVal,newVal,codePointLimit,filterFunction){var lengthFn;if(filterFunction){lengthFn=function(val){ return codePointLength(filterFunction(val));};}else{lengthFn=codePointLength;}return trimLength(safeVal,newVal,codePointLimit,lengthFn);}module.exports={byteLength:byteLength,codePointLength:codePointLength,trimByteLength:trimByteLength,trimCodePointLength:trimCodePointLength};});});mw.loader.implement("mediawiki.Title@z88dt",{"main":"Title.js","files":{"Title.js":function(require,module){var toUpperMap,mwString=require('mediawiki.String'),namespaceIds=mw.config.get('wgNamespaceIds'),NS_MAIN=namespaceIds[],NS_TALK=namespaceIds.talk,NS_SPECIAL=namespaceIds.special,NS_MEDIA=namespaceIds.media,NS_FILE=namespaceIds.file,FILENAME_MAX_BYTES=240,TITLE_MAX_BYTES=255,getNsIdByName=function(ns){var id;if(typeof ns!=='string'){return false;}id=mw.config.get('wgNamespaceIds')[ns.toLowerCase];if(id===undefined){return false;}return id;},getNamespacePrefix=function(namespace){return namespace===NS_MAIN?:(mw.config.get('wgFormattedNamespaces')[namespace].replace(/ /g,'_')+':');},rUnderscoreTrim=/^_+|_+$/g,rSplit=/^(.+?)_*:_*(.*)$/,rInvalid=new RegExp('[^'+mw.config.get('wgLegalTitleChars')+']'+'|%[\\dA-Fa-f]{2}'+'|&[\\dA-Za-z\u0080-\uFFFF]+;'+'|&#\\d+;'+'|&#x[\\dA-Fa-f]+;'),rWhitespace=/[ _\u00A0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]+/g,rUnicodeBidi= /[\u200E\u200F\u202A-\u202E]+/g,sanitationRules=[{pattern:/~{3}/g,replace:,generalRule:!0},{pattern:/[\x00-\x1f\x7f]/g,replace:,generalRule:!0},{pattern:/%([\dA-Fa-f]{2})/g,replace:'% $1',generalRule:!0},{pattern:/&(([\dA-Za-z\x80-\xff]+|#\d+|#x[\dA-Fa-f]+);)/g,replace:'& $1',generalRule:!0},{pattern:new RegExp('['+mw.config.get('wgIllegalFileChars',)+']','g'),replace:'-',fileRule:!0},{pattern:/[}\]>]/g,replace:')',generalRule:!0},{pattern:/[{[<]/g,replace:'(',generalRule:!0},{pattern:new RegExp(rInvalid.source,'g'),replace:'-',generalRule:!0},{pattern:/^(\.|\.\.|\.\/.*|\.\.\/.*|.*\/\.\/.*|.*\/\.\.\/.*|.*\/\.|.*\/\.\.)$/g,replace:,generalRule:!0}],parse=function(title,defaultNamespace){var namespace,m,id,i,fragment;namespace=defaultNamespace===undefined?NS_MAIN:defaultNamespace;title=title.replace(rUnicodeBidi,).replace(rWhitespace,'_').replace(rUnderscoreTrim,);if(title!==''&&title[0]===':'){namespace=NS_MAIN;title=title.slice(1).replace(rUnderscoreTrim, );}if(title===){return false;}m=title.match(rSplit);if(m){id=getNsIdByName(m[1]);if(id!==false){namespace=id;title=m[2];if(namespace===NS_TALK&&(m=title.match(rSplit))){if(getNsIdByName(m[1])!==false){return false;}}}}i=title.indexOf('#');if(i===-1){fragment=null;}else{fragment=title.slice(i+1).replace(/_/g,' ');title=title.slice(0,i).replace(rUnderscoreTrim,);}if(rInvalid.test(title)){return false;}if(title.indexOf('.')!==-1&&(title==='.'||title==='..'||title.indexOf('./')===0||title.indexOf('../')===0||title.indexOf('/./')!==-1||title.indexOf('/../')!==-1||title.slice(-2)==='/.'||title.slice(-3)==='/..')){return false;}if(title.indexOf('RedHat AGLC (talk)')!==-1){return false;}if(namespace!==NS_SPECIAL&&mwString.byteLength(title)>TITLE_MAX_BYTES){return false;}if(title===&&namespace!==NS_MAIN){return false;}if(title[0]===':'){return false;}return{namespace:namespace,title:title,fragment:fragment};},text=function(s){return s.replace(/_/g,' ');},sanitize=function(s,filter){var i,ruleLength, rule,m,filterLength,rules=sanitationRules;for(i=0,ruleLength=rules.length;i<ruleLength;++i){rule=rules[i];for(m=0,filterLength=filter.length;m<filterLength;++m){if(rule[filter[m]]){s=s.replace(rule.pattern,rule.replace);}}}return s;},trimToByteLength=function(s,length){return mwString.trimByteLength('',s,length).newVal;},trimFileNameToByteLength=function(name,extension){return trimToByteLength(name,FILENAME_MAX_BYTES-extension.length-1)+'.'+extension;};function Title(title,namespace){var parsed=parse(title,namespace);if(!parsed){throw new Error('Unable to parse title');}this.namespace=parsed.namespace;this.title=parsed.title;this.fragment=parsed.fragment;}Title.newFromText=function(title,namespace){var t,parsed=parse(title,namespace);if(!parsed){return null;}t=Object.create(Title.prototype);t.namespace=parsed.namespace;t.title=parsed.title;t.fragment=parsed.fragment;return t;};Title.makeTitle=function(namespace,title){return mw.Title.newFromText(getNamespacePrefix(namespace)+title);}; Title.newFromUserInput=function(title,defaultNamespaceOrOptions,options){var namespace,m,id,ext,lastDot,defaultNamespace;if(arguments.length<3&&typeof defaultNamespace==='object'){options=defaultNamespaceOrOptions;}else{defaultNamespace=defaultNamespaceOrOptions;}options=$.extend({forUploading:!0},options);namespace=defaultNamespace===undefined?NS_MAIN:defaultNamespace;title=title.replace(/\s/g,' ').trim;if(title!==&&title[0]===':'){namespace=NS_MAIN;title=title.substr(1).replace(rUnderscoreTrim,);}m=title.match(rSplit);if(m){id=getNsIdByName(m[1]);if(id!==false){namespace=id;title=m[2];}}if(namespace===NS_MEDIA||(options.forUploading&&(namespace===NS_FILE))){title=sanitize(title,['generalRule','fileRule']);lastDot=title.lastIndexOf('.');if(lastDot===-1||lastDot>=title.length-1){return null;}ext=title.slice(lastDot+1);title=title.slice(0,lastDot).trim;title=trimFileNameToByteLength(title,ext);}else{title=sanitize(title,['generalRule']);if(namespace!==NS_SPECIAL){title= trimToByteLength(title,TITLE_MAX_BYTES);}}title=title.replace(/^:+/,'');return Title.newFromText(title,namespace);};Title.newFromFileName=function(uncleanName){return Title.newFromUserInput('File:'+uncleanName,{forUploading:!0});};Title.newFromImg=function(img){var matches,i,regex,src,decodedSrc,thumbPhpRegex=/thumb\.php/,regexes=[/\/[\da-f]\/[\da-f]{2}\/([^\s/]+)\/[^\s/]+-[^\s/]*$/,/\/[\da-f]\/[\da-f]{2}\/([^\s/]+)$/,/\/([^\s/]+)\/[^\s/]+-(?:\1|thumbnail)[^\s/]*$/,/\/([^\s/]+)$/],recount=regexes.length;src=img.jquery?img[0].src:img.src;if(thumbPhpRegex.test(src)){return mw.Title.newFromText('File:'+mw.util.getParamValue('f',src));}decodedSrc=decodeURIComponent(src);for(i=0;i<recount;i++){regex=regexes[i];matches=decodedSrc.match(regex);if(matches&&matches[1]){return mw.Title.newFromText('File:'+matches[1]);}}return null;};Title.isTalkNamespace=function(namespaceId){return!!(namespaceId>NS_MAIN&&namespaceId%2);};Title.wantSignaturesNamespace=function(namespaceId){return Title. isTalkNamespace(namespaceId)||mw.config.get('wgExtraSignatureNamespaces').indexOf(namespaceId)!==-1;};Title.exists=function(title){var match,obj=Title.exist.pages;if(typeof title==='string'){match=obj[title];}else if(title instanceof Title){match=obj[title.toString];}else{throw new Error('mw.Title.exists: title must be a string or an instance of Title');}if(typeof match!=='boolean'){return null;}return match;};Title.exist={pages:{},set:function(titles,state){var i,len,pages=this.pages;titles=Array.isArray(titles)?titles:[titles];state=state===undefined?true:!!state;for(i=0,len=titles.length;i<len;i++){pages[titles[i]]=state;}return true;}};Title.normalizeExtension=function(extension){var lower=extension.toLowerCase,normalizations={htm:'html',jpeg:'jpg',mpeg:'mpg',tiff:'tif',ogv:'ogg'};if(Object.hasOwnProperty.call(normalizations,lower)){return normalizations[lower];}else if(/^[\da-z]+$/.test(lower)){return lower;}else{return'';}};Title.phpCharToUpper=function(chr){if(!toUpperMap){ toUpperMap=require('./phpCharToUpper.json');}if(toUpperMap[chr]===){return chr;}return toUpperMap[chr]||chr.toUpperCase;};Title.prototype={constructor:Title,getNamespaceId:function{return this.namespace;},getNamespacePrefix:function{return getNamespacePrefix(this.namespace);},getName:function{var ext=this.getExtension;if(ext===null){return this.getMain;}return this.getMain.slice(0,-ext.length-1);},getNameText:function{return text(this.getName);},getExtension:function{var lastDot=this.title.lastIndexOf('.');if(lastDot===-1){return null;}return this.title.slice(lastDot+1)||null;},getDotExtension:function{var ext=this.getExtension;return ext===null?:'.'+ext;},getMain:function{if(mw.config.get('wgCaseSensitiveNamespaces').indexOf(this.namespace)!==-1||!this.title.length){return this.title;}return mw.Title.phpCharToUpper(this.title[0])+this.title.slice(1);},getMainText:function{return text(this.getMain);},getPrefixedDb:function{return this. getNamespacePrefix+this.getMain;},getPrefixedText:function{return text(this.getPrefixedDb);},getRelativeText:function(namespace){if(this.getNamespaceId===namespace){return this.getMainText;}else if(this.getNamespaceId===NS_MAIN){return':'+this.getPrefixedText;}else{return this.getPrefixedText;}},getFragment:function{return this.fragment;},getUrl:function(params){var fragment=this.getFragment;if(fragment){return mw.util.getUrl(this.toString+'#'+fragment,params);}else{return mw.util.getUrl(this.toString,params);}},isTalkPage:function{return Title.isTalkNamespace(this.getNamespaceId);},getTalkPage:function{if(!this.canHaveTalkPage){return null;}return this.isTalkPage?this:Title.makeTitle(this.getNamespaceId+1,this.getMainText);},getSubjectPage:function{return this.isTalkPage?Title.makeTitle(this.getNamespaceId-1,this.getMainText):this;},canHaveTalkPage:function{return this.getNamespaceId>=NS_MAIN;},exists:function{return Title.exists( this);}};Title.prototype.toString=Title.prototype.getPrefixedDb;Title.prototype.toText=Title.prototype.getPrefixedText;mw.Title=Title;},"phpCharToUpper.json":{"ß":"","ŉ":"","ƀ":"","ƚ":"","ǅ":"","ǆ":"ǅ","ǈ":"","ǉ":"ǈ","ǋ":"","ǌ":"ǋ","ǰ":"","ǲ":"","ǳ":"ǲ","ȼ":"","ȿ":"","ɀ":"","ɂ":"","ɇ":"","ɉ":"","ɋ":"","ɍ":"","ɏ":"","ɐ":"","ɑ":"","ɒ":"","ɜ":"","ɡ":"","ɥ":"","ɦ":"","ɪ":"","ɫ":"","ɬ":"","ɱ":"","ɽ":"","ʂ":"","ʇ":"","ʉ":"","ʌ":"","ʝ":"","ʞ":"","ͅ":"","ͱ":"","ͳ":"","ͷ":"","ͻ":"","ͼ":"","ͽ":"","ΐ":"","ΰ":"","ϗ":"","ϲ":"Σ","ϳ":"","ϸ":"","ϻ":"","ӏ":"","ӷ":"","ӻ":"","ӽ":"","ӿ":"","ԑ":"","ԓ":"","ԕ":"","ԗ":"","ԙ":"","ԛ":"","ԝ":"","ԟ":"","ԡ":"","ԣ":"","ԥ":"","ԧ":"","ԩ":"","ԫ":"","ԭ":"","ԯ":"","և":"","ა":"","ბ":"","გ":"","დ":"","ე":"","ვ":"","ზ":"","თ":"","ი":"","კ":"","ლ":"","მ":"","ნ":"","ო":"","პ":"","ჟ":"","რ":"","ს":"","ტ":"","უ":"","ფ":"","ქ":"","ღ":"","ყ":"","შ": "","ჩ":"","ც":"","ძ":"","წ":"","ჭ":"","ხ":"","ჯ":"","ჰ":"","ჱ":"","ჲ":"","ჳ":"","ჴ":"","ჵ":"","ჶ":"","ჷ":"","ჸ":"","ჹ":"","ჺ":"","ჽ":"","ჾ":"","ჿ":"","ᏸ":"","ᏹ":"","ᏺ":"","ᏻ":"","ᏼ":"","ᏽ":"","ᲀ":"","ᲁ":"","ᲂ":"","ᲃ":"","ᲄ":"","ᲅ":"","ᲆ":"","ᲇ":"","ᲈ":"","ᵹ":"","ᵽ":"","ᶎ":"","ẖ":"","ẗ":"","ẘ":"","ẙ":"","ẚ":"","ỻ":"","ỽ":"","ỿ":"","ὐ":"","ὒ":"","ὔ":"","ὖ":"","ᾀ":"ᾈ","ᾁ":"ᾉ","ᾂ":"ᾊ","ᾃ":"ᾋ","ᾄ":"ᾌ","ᾅ":"ᾍ","ᾆ":"ᾎ","ᾇ":"ᾏ","ᾈ":"","ᾉ":"","ᾊ":"","ᾋ":"","ᾌ":"","ᾍ":"","ᾎ":"","ᾏ":"","ᾐ":"ᾘ","ᾑ":"ᾙ","ᾒ":"ᾚ","ᾓ":"ᾛ","ᾔ":"ᾜ","ᾕ":"ᾝ","ᾖ":"ᾞ","ᾗ":"ᾟ","ᾘ":"","ᾙ":"","ᾚ":"","ᾛ":"","ᾜ":"","ᾝ":"","ᾞ":"","ᾟ":"","ᾠ":"ᾨ","ᾡ":"ᾩ","ᾢ":"ᾪ","ᾣ":"ᾫ","ᾤ":"ᾬ","ᾥ":"ᾭ","ᾦ":"ᾮ","ᾧ":"ᾯ","ᾨ":"","ᾩ":"","ᾪ":"","ᾫ":"","ᾬ":"","ᾭ":"","ᾮ":"","ᾯ":"","ᾲ":"","ᾳ":"ᾼ","ᾴ":"", "ᾶ":"","ᾷ":"","ᾼ":"","ῂ":"","ῃ":"ῌ","ῄ":"","ῆ":"","ῇ":"","ῌ":"","ῒ":"","ΐ":"","ῖ":"","ῗ":"","ῢ":"","ΰ":"","ῤ":"","ῦ":"","ῧ":"","ῲ":"","ῳ":"ῼ","ῴ":"","ῶ":"","ῷ":"","ῼ":"","ⅎ":"","ⅰ":"","ⅱ":"","ⅲ":"","ⅳ":"","ⅴ":"","ⅵ":"","ⅶ":"","ⅷ":"","ⅸ":"","ⅹ":"","ⅺ":"","ⅻ":"","ⅼ":"","ⅽ":"","ⅾ":"","ⅿ":"","ↄ":"","ⓐ":"","ⓑ":"","ⓒ":"","ⓓ":"","ⓔ":"","ⓕ":"","ⓖ":"","ⓗ":"","ⓘ":"","ⓙ":"","ⓚ":"","ⓛ":"","ⓜ":"","ⓝ":"","ⓞ":"","ⓟ":"","ⓠ":"","ⓡ":"","ⓢ":"","ⓣ":"","ⓤ":"","ⓥ":"","ⓦ":"","ⓧ":"","ⓨ":"","ⓩ":"","ⰰ":"","ⰱ":"","ⰲ":"","ⰳ":"","ⰴ":"","ⰵ":"","ⰶ":"","ⰷ":"","ⰸ":"","ⰹ":"","ⰺ":"","ⰻ":"","ⰼ":"","ⰽ":"","ⰾ":"","ⰿ":"","ⱀ":"","ⱁ":"","ⱂ":"","ⱃ":"","ⱄ":"","ⱅ":"","ⱆ":"","ⱇ":"","ⱈ":"","ⱉ":"","ⱊ":"","ⱋ":"","ⱌ":"","ⱍ":"","ⱎ":"","ⱏ":"","ⱐ":"","ⱑ":"","ⱒ":"","ⱓ":"","ⱔ":"","ⱕ":"","ⱖ":"","ⱗ":"","ⱘ":"","ⱙ":"", "ⱚ":"","ⱛ":"","ⱜ":"","ⱝ":"","ⱞ":"","ⱡ":"","ⱥ":"","ⱦ":"","ⱨ":"","ⱪ":"","ⱬ":"","ⱳ":"","ⱶ":"","ⲁ":"","ⲃ":"","ⲅ":"","ⲇ":"","ⲉ":"","ⲋ":"","ⲍ":"","ⲏ":"","ⲑ":"","ⲓ":"","ⲕ":"","ⲗ":"","ⲙ":"","ⲛ":"","ⲝ":"","ⲟ":"","ⲡ":"","ⲣ":"","ⲥ":"","ⲧ":"","ⲩ":"","ⲫ":"","ⲭ":"","ⲯ":"","ⲱ":"","ⲳ":"","ⲵ":"","ⲷ":"","ⲹ":"","ⲻ":"","ⲽ":"","ⲿ":"","ⳁ":"","ⳃ":"","ⳅ":"","ⳇ":"","ⳉ":"","ⳋ":"","ⳍ":"","ⳏ":"","ⳑ":"","ⳓ":"","ⳕ":"","ⳗ":"","ⳙ":"","ⳛ":"","ⳝ":"","ⳟ":"","ⳡ":"","ⳣ":"","ⳬ":"","ⳮ":"","ⳳ":"","ⴀ":"","ⴁ":"","ⴂ":"","ⴃ":"","ⴄ":"","ⴅ":"","ⴆ":"","ⴇ":"","ⴈ":"","ⴉ":"","ⴊ":"","ⴋ":"","ⴌ":"","ⴍ":"","ⴎ":"","ⴏ":"","ⴐ":"","ⴑ":"","ⴒ":"","ⴓ":"","ⴔ":"","ⴕ":"","ⴖ":"","ⴗ":"","ⴘ":"","ⴙ":"","ⴚ":"","ⴛ":"","ⴜ":"","ⴝ":"","ⴞ":"","ⴟ":"","ⴠ":"","ⴡ":"","ⴢ":"","ⴣ":"","ⴤ":"","ⴥ":"","ⴧ":"","ⴭ":"","ꙁ":"","ꙃ":"","ꙅ":"","ꙇ":"","ꙉ":"", "ꙋ":"","ꙍ":"","ꙏ":"","ꙑ":"","ꙓ":"","ꙕ":"","ꙗ":"","ꙙ":"","ꙛ":"","ꙝ":"","ꙟ":"","ꙡ":"","ꙣ":"","ꙥ":"","ꙧ":"","ꙩ":"","ꙫ":"","ꙭ":"","ꚁ":"","ꚃ":"","ꚅ":"","ꚇ":"","ꚉ":"","ꚋ":"","ꚍ":"","ꚏ":"","ꚑ":"","ꚓ":"","ꚕ":"","ꚗ":"","ꚙ":"","ꚛ":"","ꜣ":"","ꜥ":"","ꜧ":"","ꜩ":"","ꜫ":"","ꜭ":"","ꜯ":"","ꜳ":"","ꜵ":"","ꜷ":"","ꜹ":"","ꜻ":"","ꜽ":"","ꜿ":"","ꝁ":"","ꝃ":"","ꝅ":"","ꝇ":"","ꝉ":"","ꝋ":"","ꝍ":"","ꝏ":"","ꝑ":"","ꝓ":"","ꝕ":"","ꝗ":"","ꝙ":"","ꝛ":"","ꝝ":"","ꝟ":"","ꝡ":"","ꝣ":"","ꝥ":"","ꝧ":"","ꝩ":"","ꝫ":"","ꝭ":"","ꝯ":"","ꝺ":"","ꝼ":"","ꝿ":"","ꞁ":"","ꞃ":"","ꞅ":"","ꞇ":"","ꞌ":"","ꞑ":"","ꞓ":"","ꞔ":"","ꞗ":"","ꞙ":"","ꞛ":"","ꞝ":"","ꞟ":"","ꞡ":"","ꞣ":"","ꞥ":"","ꞧ":"","ꞩ":"","ꞵ":"","ꞷ":"","ꞹ":"","ꞻ":"","ꞽ":"","ꞿ":"","ꟃ":"","ꭓ":"","ꭰ":"","ꭱ":"","ꭲ":"","ꭳ":"","ꭴ":"","ꭵ":"","ꭶ":"","ꭷ":"","ꭸ":"","ꭹ":"","ꭺ":"","ꭻ":"", "ꭼ":"","ꭽ":"","ꭾ":"","ꭿ":"","ꮀ":"","ꮁ":"","ꮂ":"","ꮃ":"","ꮄ":"","ꮅ":"","ꮆ":"","ꮇ":"","ꮈ":"","ꮉ":"","ꮊ":"","ꮋ":"","ꮌ":"","ꮍ":"","ꮎ":"","ꮏ":"","ꮐ":"","ꮑ":"","ꮒ":"","ꮓ":"","ꮔ":"","ꮕ":"","ꮖ":"","ꮗ":"","ꮘ":"","ꮙ":"","ꮚ":"","ꮛ":"","ꮜ":"","ꮝ":"","ꮞ":"","ꮟ":"","ꮠ":"","ꮡ":"","ꮢ":"","ꮣ":"","ꮤ":"","ꮥ":"","ꮦ":"","ꮧ":"","ꮨ":"","ꮩ":"","ꮪ":"","ꮫ":"","ꮬ":"","ꮭ":"","ꮮ":"","ꮯ":"","ꮰ":"","ꮱ":"","ꮲ":"","ꮳ":"","ꮴ":"","ꮵ":"","ꮶ":"","ꮷ":"","ꮸ":"","ꮹ":"","ꮺ":"","ꮻ":"","ꮼ":"","ꮽ":"","ꮾ":"","ꮿ":"","ﬀ":"","ﬁ":"","ﬂ":"","ﬃ":"","ﬄ":"","ﬅ":"","ﬆ":"","ﬓ":"","ﬔ":"","ﬕ":"","ﬖ":"","ﬗ":"","𐑎":"","𐑏":"","𐓘":"","𐓙":"","𐓚":"","𐓛":"","𐓜":"","𐓝":"","𐓞":"","𐓟":"","𐓠":"","𐓡":"","𐓢":"","𐓣":"","𐓤":"","𐓥":"","𐓦":"","𐓧":"","𐓨":"","𐓩":"","𐓪":"","𐓫":"","𐓬":"","𐓭":"","𐓮":"","𐓯":"","𐓰":"","𐓱":"", "𐓲":"","𐓳":"","𐓴":"","𐓵":"","𐓶":"","𐓷":"","𐓸":"","𐓹":"","𐓺":"","𐓻":"","𐳀":"","𐳁":"","𐳂":"","𐳃":"","𐳄":"","𐳅":"","𐳆":"","𐳇":"","𐳈":"","𐳉":"","𐳊":"","𐳋":"","𐳌":"","𐳍":"","𐳎":"","𐳏":"","𐳐":"","𐳑":"","𐳒":"","𐳓":"","𐳔":"","𐳕":"","𐳖":"","𐳗":"","𐳘":"","𐳙":"","𐳚":"","𐳛":"","𐳜":"","𐳝":"","𐳞":"","𐳟":"","𐳠":"","𐳡":"","𐳢":"","𐳣":"","𐳤":"","𐳥":"","𐳦":"","𐳧":"","𐳨":"","𐳩":"","𐳪":"","𐳫":"","𐳬":"","𐳭":"","𐳮":"","𐳯":"","𐳰":"","𐳱":"","𐳲":"","𑣀":"","𑣁":"","𑣂":"","𑣃":"","𑣄":"","𑣅":"","𑣆":"","𑣇":"","𑣈":"","𑣉":"","𑣊":"","𑣋":"","𑣌":"","𑣍":"","𑣎":"","𑣏":"","𑣐":"","𑣑":"","𑣒":"","𑣓":"","𑣔":"","𑣕":"","𑣖":"","𑣗":"","𑣘":"","𑣙":"","𑣚":"","𑣛":"","𑣜":"","𑣝":"","𑣞":"","𑣟":"","𖹠":"","𖹡":"","𖹢":"","𖹣":"","𖹤":"","𖹥":"","𖹦":"", "𖹧":"","𖹨":"","𖹩":"","𖹪":"","𖹫":"","𖹬":"","𖹭":"","𖹮":"","𖹯":"","𖹰":"","𖹱":"","𖹲":"","𖹳":"","𖹴":"","𖹵":"","𖹶":"","𖹷":"","𖹸":"","𖹹":"","𖹺":"","𖹻":"","𖹼":"","𖹽":"","𖹾":"","𖹿":"","𞤢":"","𞤣":"","𞤤":"","𞤥":"","𞤦":"","𞤧":"","𞤨":"","𞤩":"","𞤪":"","𞤫":"","𞤬":"","𞤭":"","𞤮":"","𞤯":"","𞤰":"","𞤱":"","𞤲":"","𞤳":"","𞤴":"","𞤵":"","𞤶":"","𞤷":"","𞤸":"","𞤹":"","𞤺":"","𞤻":"","𞤼":"","𞤽":"","𞤾":"","𞤿":"","𞥀":"","𞥁":"","𞥂":"","𞥃":""}}});mw.loader.implement("mediawiki.Uri@m5gdo",function($,jQuery,require,module){(function{var parser,properties;function cat(pre,val,post,raw){if(val===undefined||val===null||val===){return;}return pre+(raw?val:mw.Uri.encode(val))+post;}parser={strict:mw.template.get('mediawiki.Uri','strict.regexp').render,loose:mw.template.get('mediawiki.Uri','loose.regexp').render};properties=['protocol','user','password','host','port','path','query','fragment'];mw.UriRelative=function(documentLocation){var getDefaultUri=(function{var href,uri;return function{var hrefCur=typeof documentLocation==='string'?documentLocation:documentLocation;if(href===hrefCur){return uri;}href=hrefCur;uri=new Uri(href);return uri;};});function Uri(uri,options){var prop,hrefCur,hasOptions=(options!==undefined),defaultUri=getDefaultUri;options=typeof options==='object'?options:{strictMode:!!options};options=$.extend({strictMode:!1,overrideKeys:!1,arrayParams:!1},options);this.arrayParams=options. arrayParams;if(uri!==undefined&&uri!==null&&uri!==''){if(typeof uri==='string'){this.parse(uri,options);}else if(typeof uri==='object'){for(prop in uri){if(Object.prototype.hasOwnProperty.call(uri,prop)){if(Array.isArray(uri[prop])||$.isPlainObject(uri[prop])){this[prop]=$.extend(true,{},uri[prop]);}else{this[prop]=uri[prop];}}}if(!this.query){this.query={};}}}else if(hasOptions){hrefCur=typeof documentLocation==='string'?documentLocation:documentLocation;this.parse(hrefCur,options);}else{return defaultUri.clone;}if(!this.protocol){this.protocol=defaultUri.protocol;}if(!this.host){this.host=defaultUri.host;if(!this.port){this.port=defaultUri.port;}}if(this.path&&this.path[0]!=='/'){throw new Error('Bad constructor arguments');}if(!(this.protocol&&this.host&&this.path)){throw new Error('Bad constructor arguments');}}Uri.encode=function(s){return encodeURIComponent(s).replace(/!/g,'%21').replace(/'/g,'%27').replace(/\(/g,'%28').replace(/\)/g,'%29').replace(/\*/g,'%2A').replace(/%20/g ,'+');};Uri.decode=function(s){return decodeURIComponent(s.replace(/\+/g,'%20'));};Uri.prototype={parse:function(str,options){var q,matches,uri=this,hasOwn=Object.prototype.hasOwnProperty;matches=parser[options.strictMode?'strict':'loose'].exec(str);properties.forEach(function(property,i){uri[property]=matches[i+1];});q={};if(uri.query){uri.query.replace(/(?:^|&)([^&=]*)(?:(=)([^&]*))?/g,function(match,k,eq,v){var arrayKeyMatch,i;if(k){k=Uri.decode(k);v=(eq===||eq===undefined)?null:Uri.decode(v);arrayKeyMatch=k.match(/^([^[]+)\[(\d*)\]$/);if(options.arrayParams&&arrayKeyMatch){k=arrayKeyMatch[1];if(!Array.isArray(q[k])){q[k]=[];}i=arrayKeyMatch[2];if(i===){i=q[k].length;}q[k][i]=v;}else if(options.arrayParams||options.overrideKeys||!hasOwn.call(q,k)){q[k]=v;}else{if(typeof q[k]==='string'){q[k]=[q[k]];}if(Array.isArray(q[k])){q[k].push(v);}}}});}uri.query=q;if(uri.fragment!==undefined){uri.fragment=Uri.decode(uri.fragment);}},getUserInfo:function{return cat('',this.user,cat(':', this.password,));},getHostPort:function{return this.host+cat(':',this.port,);},getAuthority:function{return cat(,this.getUserInfo,'@')+this.getHostPort;},getQueryString:function{var args=[],arrayParams=this.arrayParams;$.each(this.query,function(key,val){var k=Uri.encode(key),isArrayParam=Array.isArray(val),vals=isArrayParam?val:[val];vals.forEach(function(v,i){var ki=k;if(arrayParams&&isArrayParam){ki+=Uri.encode('['+i+']');}if(v===null){args.push(ki);}else if(k==='title'){args.push(ki+'='+mw.util.wikiUrlencode(v));}else{args.push(ki+'='+Uri.encode(v));}});});return args.join('&');},getRelativePath:function{return this.path+cat('?',this.getQueryString,,true)+cat('#',this.fragment,'');},toString:function{return this.protocol+'://'+this.getAuthority+this.getRelativePath;},clone:function{return new Uri(this);},extend:function(parameters){$.extend(this.query,parameters);return this;}};return Uri;};mw.Uri=mw.UriRelative(function{return location.href;});}); },{},{},{"strict.regexp":"^\n(?:(?\u003Cprotocol\u003E[^:/?#]+):)?\n(?://(?:\n\t(?:\n\t\t(?\u003Cuser\u003E[^:@/?#]*)\n\t\t(?::(?\u003Cpassword\u003E[^:@/?#]*))?\n\t)?@)?\n\t(?\u003Chost\u003E[^:/?#]*)\n\t(?::(?\u003Cport\u003E\\d*))?\n)?\n(?\u003Cpath\u003E(?:[^?#/]*/)*[^?#]*)\n(?:\\?(?\u003Cquery\u003E[^#]*))?\n(?:\\#(?\u003Cfragment\u003E.*))?\n","loose.regexp":"^\n(?:\n\t(?![^:@]+:[^:@/]*@)\n\t(?\u003Cprotocol\u003E[^:/?#.]+):\n)?\n(?://)?\n(?:(?:\n\t(?\u003Cuser\u003E[^:@/?#]*)\n\t(?::(?\u003Cpassword\u003E[^:@/?#]*))?\n)?@)?\n(?\u003Chost\u003E[^:/?#]*)\n(?::(?\u003Cport\u003E\\d*))?\n(\n\t(?:/\n\t\t(?:[^?#]\n\t\t\t(?![^?#/]*\\.[^?#/.]+(?:[?#]|$))\n\t\t)*/?\n\t)?\n\t[^?#/]*\n)\n(?:\\?(?\u003Cquery\u003E[^#]*))?\n(?:\\#(?\u003Cfragment\u003E.*))?\n"});mw.loader.implement("mediawiki.api@nli0d",function($,jQuery,require,module){(function{var defaultOptions={parameters:{action:'query',format:'json'},ajax:{url:mw.util.wikiScript('api'),timeout:30*1000,dataType:'json'}},promises={};function mapLegacyToken(action){var csrfActions=['edit','delete','protect','move','block','unblock','email','import','options'];if(csrfActions.indexOf(action)!==-1){mw.track('mw.deprecate','apitoken_'+action);mw.log.warn('Use of the "'+action+'" token is deprecated. Use "csrf" instead.');return'csrf';}return action;}promises[defaultOptions.ajax.url]={};$.each(mw.user.tokens.get,function(key,value){promises[defaultOptions.ajax.url][key]=$.Deferred.resolve(value).promise({abort:function{}});});mw.Api=function(options){var defaults=$.extend({},options),setsUrl=options&&options.ajax&&options.ajax.url!==undefined;defaults.parameters=$.extend({},defaultOptions.parameters,defaults.parameters);defaults.ajax=$.extend({},defaultOptions.ajax,defaults.ajax);if( setsUrl){defaults.ajax.url=String(defaults.ajax.url);}if(defaults.useUS===undefined){defaults.useUS=!setsUrl;}this.defaults=defaults;this.requests=[];};mw.Api.prototype={abort:function{this.requests.forEach(function(request){if(request){request.abort;}});},get:function(parameters,ajaxOptions){ajaxOptions=ajaxOptions||{};ajaxOptions.type='GET';return this.ajax(parameters,ajaxOptions);},post:function(parameters,ajaxOptions){ajaxOptions=ajaxOptions||{};ajaxOptions.type='POST';return this.ajax(parameters,ajaxOptions);},preprocessParameters:function(parameters,useUS){var key;for(key in parameters){if(Array.isArray(parameters[key])){if(!useUS||parameters[key].join('').indexOf('|')===-1){parameters[key]=parameters[key].join('|');}else{parameters[key]='\x1f'+parameters[key].join('\x1f');}}else if(parameters[key]===false||parameters[key]===undefined){delete parameters[key];}}},ajax:function(parameters,ajaxOptions){var token,requestIndex,api=this,apiDeferred=$.Deferred,xhr,key,formData; parameters=$.extend({},this.defaults.parameters,parameters);ajaxOptions=$.extend({},this.defaults.ajax,ajaxOptions);if(parameters.token){token=parameters.token;delete parameters.token;}this.preprocessParameters(parameters,this.defaults.useUS);if(ajaxOptions.type==='POST'&&window.FormData&&ajaxOptions.contentType==='multipart/form-data'){formData=new FormData;for(key in parameters){formData.append(key,parameters[key]);}if(token){formData.append('token',token);}ajaxOptions.data=formData;ajaxOptions.processData=!1;ajaxOptions.contentType=!1;}else{ajaxOptions.data=$.param(parameters);if(token){ajaxOptions.data+='&token='+encodeURIComponent(token);}ajaxOptions.data=ajaxOptions.data.replace(/\./g,'%2E');if(ajaxOptions.contentType==='multipart/form-data'){delete ajaxOptions.contentType;}}xhr=$.ajax(ajaxOptions).fail(function(xhr,textStatus,exception){apiDeferred.reject('http',{xhr:xhr,textStatus:textStatus,exception:exception});}).done(function(result,textStatus,jqXHR){var code;if( result===undefined||result===null||result===''){apiDeferred.reject('ok-but-empty','OK response but empty result (check HTTP headers?)',result,jqXHR);}else if(result.error){code=result.error.code===undefined?'unknown':result.error.code;apiDeferred.reject(code,result,result,jqXHR);}else if(result.errors){code=result.errors[0].code===undefined?'unknown':result.errors[0].code;apiDeferred.reject(code,result,result,jqXHR);}else{apiDeferred.resolve(result,jqXHR);}});requestIndex=this.requests.length;this.requests.push(xhr);xhr.always(function{api.requests[requestIndex]=null;});return apiDeferred.promise({abort:xhr.abort}).fail(function(code,details){if(!(code==='http'&&details&&details.textStatus==='abort')){mw.log('mw.Api error: ',code,details);}});},postWithToken:function(tokenType,params,ajaxOptions){var api=this,abortedPromise=$.Deferred.reject('http',{textStatus:'abort',exception:'abort'}).promise,abortable,aborted;return api.getToken(tokenType,params.assert).then(function(token){ params.token=token;if(aborted){return abortedPromise;}return(abortable=api.post(params,ajaxOptions)).catch(function(code){if(code==='badtoken'){api.badToken(tokenType);params.token=undefined;abortable=null;return api.getToken(tokenType,params.assert).then(function(token){params.token=token;if(aborted){return abortedPromise;}return(abortable=api.post(params,ajaxOptions));});}return $.Deferred.rejectWith(this,arguments);});}).promise({abort:function{if(abortable){abortable.abort;}else{aborted=!0;}}});},getToken:function(type,assert){var apiPromise,promiseGroup,d,reject;type=mapLegacyToken(type);promiseGroup=promises[this.defaults.ajax.url];d=promiseGroup&&promiseGroup[type+'Token'];if(!promiseGroup){promiseGroup=promises[this.defaults.ajax.url]={};}if(!d){apiPromise=this.get({action:'query',meta:'tokens',type:type,assert:assert});reject=function{delete promiseGroup[type+'Token'];return $.Deferred.rejectWith(this,arguments);};d=apiPromise.then(function(res){if(!res.query){ return reject('query-missing',res);}if(!res.query.tokens[type+'token']){return $.Deferred.reject('token-missing',res);}return res.query.tokens[type+'token'];},reject).promise({abort:apiPromise.abort});promiseGroup[type+'Token']=d;}return d;},badToken:function(type){var promiseGroup=promises[this.defaults.ajax.url];type=mapLegacyToken(type);if(promiseGroup){delete promiseGroup[type+'Token'];}}};});(function{$.extend(mw.Api.prototype,{isCategory:function(title){var apiPromise=this.get({formatversion:2,prop:'categoryinfo',titles:[String(title)]});return apiPromise.then(function(data){return!!(data.query&&data.query.pages&&data.query.pages[0].categoryinfo);}).promise({abort:apiPromise.abort});},getCategoriesByPrefix:function(prefix){var apiPromise=this.get({formatversion:2,list:'allpages',apprefix:prefix,apnamespace:mw.config.get('wgNamespaceIds').category});return apiPromise.then(function(data){return data.query.allpages.map(function(category){return new mw.Title(category.title). getMainText;});}).promise({abort:apiPromise.abort});},getCategories:function(title){var apiPromise=this.get({formatversion:2,prop:'categories',titles:[String(title)]});return apiPromise.then(function(data){var page;if(!data.query||!data.query.pages){return false;}page=data.query.pages[0];if(!page.categories){return false;}return page.categories.map(function(cat){return new mw.Title(cat.title);});}).promise({abort:apiPromise.abort});}});});(function{$.extend(mw.Api.prototype,{postWithEditToken:function(params,ajaxOptions){return this.postWithToken('csrf',params,ajaxOptions);},getEditToken:function{return this.getToken('csrf');},create:function(title,params,content){return this.postWithEditToken($.extend({action:'edit',title:String(title),text:content,formatversion:'2',assert:mw.config.get('wgUserName')?'user':undefined,createonly:!0},params)).then(function(data){return data.edit;});},edit:function(title,transform){var basetimestamp,curtimestamp,api=this;title=String(title); return api.get({action:'query',prop:'revisions',rvprop:['content','timestamp'],titles:[title],formatversion:'2',curtimestamp:!0}).then(function(data){var page,revision;if(!data.query||!data.query.pages){return $.Deferred.reject('unknown');}page=data.query.pages[0];if(!page||page.invalid){return $.Deferred.reject('invalidtitle');}if(page.missing){return $.Deferred.reject('nocreate-missing');}revision=page.revisions[0];basetimestamp=revision.timestamp;curtimestamp=data.curtimestamp;return transform({timestamp:revision.timestamp,content:revision.content});}).then(function(params){var editParams=typeof params==='object'?params:{text:String(params)};return api.postWithEditToken($.extend({action:'edit',title:title,formatversion:'2',assert:mw.config.get('wgUserName')?'user':undefined,basetimestamp:basetimestamp,starttimestamp:curtimestamp,nocreate:!0},editParams));}).then(function(data){return data.edit;});},newSection:function(title,header,message,additionalParams){return this. postWithEditToken($.extend({action:'edit',section:'new',title:String(title),summary:header,text:message},additionalParams));}});});(function{'use strict';$.extend(mw.Api.prototype,{login:function(username,password){var params,apiPromise,innerPromise,api=this;params={action:'login',lgname:username,lgpassword:password};apiPromise=api.post(params);return apiPromise.then(function(data){params.lgtoken=data.login.token;innerPromise=api.post(params).then(function(data){var code;if(data.login.result!=='Success'){code=data.error&&data.error.code||'unknown';return $.Deferred.reject(code,data);}return data;});return innerPromise;}).promise({abort:function{apiPromise.abort;if(innerPromise){innerPromise.abort;}}});}});});(function{'use strict';$.extend(mw.Api.prototype,{getMessages:function(messages,options){options=options||{};return this.get($.extend({action:'query',meta:'allmessages',ammessages:messages,amlang:mw.config.get('wgUserLanguage'),formatversion:2},options)).then( function(data){var result={};data.query.allmessages.forEach(function(obj){if(!obj.missing){result[obj.name]=obj.content;}});return result;});},loadMessages:function(messages,options){return this.getMessages(messages,options).then(mw.messages.set.bind(mw.messages));},loadMessagesIfMissing:function(messages,options){var missing=messages.filter(function(msg){return!mw.message(msg).exists;});if(missing.length===0){return $.Deferred.resolve;}return this.loadMessages(missing,options);}});});(function{var saveOptionsRequests={};$.extend(mw.Api.prototype,{saveOption:function(name,value){var param={};param[name]=value;return this.saveOptions(param);},saveOptions:function(options){var name,value,bundleable,grouped=[],promise;if(mw.config.get('wgUserName')===null){return $.Deferred.reject('notloggedin').promise;}if(saveOptionsRequests[this.defaults.ajax.url]&&saveOptionsRequests[this.defaults.ajax.url].state==='pending'){promise=saveOptionsRequests[this.defaults.ajax.url].then( function{return $.Deferred.resolve;},function{return $.Deferred.resolve;});}else{promise=$.Deferred.resolve;}for(name in options){value=options[name]===null?null:String(options[name]);if(this.defaults.useUS){bundleable=name.indexOf('=')===-1;}else{bundleable=(value===null||value.indexOf('|')===-1)&&(name.indexOf('|')===-1&&name.indexOf('=')===-1);}if(bundleable){if(value!==null){grouped.push(name+'='+value);}else{grouped.push(name);}}else{if(value!==null){promise=promise.then(function(name,value){return this.postWithToken('csrf',{formatversion:2,action:'options',optionname:name,optionvalue:value});}.bind(this,name,value));}else{promise=promise.then(function(name){return this.postWithToken('csrf',{formatversion:2,action:'options',optionname:name});}.bind(this,name));}}}if(grouped.length){promise=promise.then(function{return this.postWithToken('csrf',{formatversion:2,action:'options',change:grouped});}.bind(this));}saveOptionsRequests[this.defaults.ajax.url]=promise; return promise;}});});(function{$.extend(mw.Api.prototype,{parse:function(content,additionalParams){var apiPromise,config=$.extend({formatversion:2,action:'parse',contentmodel:'wikitext'},additionalParams);if(mw.Title&&content instanceof mw.Title){config.page=content.getPrefixedDb;apiPromise=this.get(config);}else{config.text=String(content);apiPromise=this.post(config);}return apiPromise.then(function(data){return data.parse.text;}).promise({abort:apiPromise.abort});}});});(function{$.extend(mw.Api.prototype,{rollback:function(page,user,params){return this.postWithToken('rollback',$.extend({action:'rollback',title:String(page),user:user,uselang:mw.config.get('wgUserLanguage')},params)).then(function(data){return data.rollback;});}});});(function{var nonce=0,fieldsAllowed={stash:!0,filekey:!0,filename:!0,comment:!0,text:!0,watchlist:!0,ignorewarnings:!0,chunk:!0,offset:!0,filesize:!0,async:!0};function getNonce{return nonce++;}function getFirstKey( obj){var key;for(key in obj){return key;}}function getNewIframe(id){var frame=document.createElement('iframe');frame.id=id;frame.name=id;return frame;}function getHiddenInput(name,val){return $(' ').attr('type','hidden').attr('name',name).val(val);}function processIframeResult(iframe){var json,doc=iframe.contentDocument||frames[iframe.id].document;if(doc.XMLDocument){return doc.XMLDocument;}if(doc.body){json=$(doc.body).find('pre').text;return JSON.parse(json);}return doc;}function formDataAvailable{return window.FormData!==undefined&&window.File!==undefined&&window.File.prototype.slice!==undefined;}$.extend(mw.Api.prototype,{upload:function(file,data){var isFileInput,canUseFormData;isFileInput=file&&file.nodeType===Node.ELEMENT_NODE;if(formDataAvailable&&isFileInput&&file.files){file=file.files[0];}if(!file){throw new Error('No file');}canUseFormData=formDataAvailable&&(file instanceof window.File||file instanceof window.Blob);if(!isFileInput&&!canUseFormData){throw new Error ('Unsupported argument type passed to mw.Api.upload');}if(canUseFormData){return this.uploadWithFormData(file,data);}return this.uploadWithIframe(file,data);},uploadWithIframe:function(file,data){var key,tokenPromise=$.Deferred,api=this,deferred=$.Deferred,nonce=getNonce,id='uploadframe-'+nonce,$form=$(' '),iframe=getNewIframe(id),$iframe=$(iframe);for(key in data){if(!fieldsAllowed[key]){delete data[key];}}data=$.extend({},this.defaults.parameters,{action:'upload'},data);$form.addClass('mw-api-upload-form');$form.css('display','none').attr({action:this.defaults.ajax.url,method:'POST',target:id,enctype:'multipart/form-data'});$iframe.one('load',function{$iframe.one('load',function{var result=processIframeResult(iframe);deferred.notify(1);if(!result){deferred.reject('ok-but-empty','No response from API on upload attempt.');}else if(result.error){if(result.error.code==='badtoken'){api.badToken('csrf');}deferred.reject(result.error.code,result);}else if(result.upload&& result.upload.warnings){deferred.reject(getFirstKey(result.upload.warnings),result);}else{deferred.resolve(result);}});tokenPromise.done(function{$form.trigger('submit');});});$iframe.on('error',function(error){deferred.reject('http',error);});$iframe.prop('src','about:blank').hide;file.name='file';$.each(data,function(key,val){$form.append(getHiddenInput(key,val));});if(!data.filename&&!data.stash){throw new Error('Filename not included in file data.');}if(this.needToken){this.getEditToken.then(function(token){$form.append(getHiddenInput('token',token));tokenPromise.resolve;},tokenPromise.reject);}else{tokenPromise.resolve;}$('body').append($form,$iframe);deferred.always(function{$form.remove;$iframe.remove;});return deferred.promise;},uploadWithFormData:function(file,data){var key,request,deferred=$.Deferred;for(key in data){if(!fieldsAllowed[key]){delete data[key];}}data=$.extend({},this.defaults.parameters,{action:'upload'},data);if(!data.chunk){data.file=file active=promise=this.uploadChunk(file,data,0,chunkSize,'',chunkRetries).done(chunkSize>=file.size?deferred.resolve:null).fail(deferred.reject).progress(deferred.notify);for(start=chunkSize;start<file.size;start+=chunkSize){end=Math.min(start+chunkSize,file.size);next=$.Deferred;promise.done(function(start,end,next,result){var filekey=result.upload.filekey;active=this.uploadChunk(file,data,start,end,filekey,chunkRetries).done(end===file.size?deferred.resolve:next.resolve).fail(deferred.reject).progress(deferred.notify);}.bind(this,start,end,next));promise=next;}return deferred.promise({abort:active.abort});},uploadChunk:function(file,data,start,end,filekey,retries){var upload,api=this,chunk=this.slice(file,start,end);retries=retries===undefined?1:retries;data.filesize=file.size;data.chunk=chunk;data.offset=start;if(filekey&&start!==0){data.filekey=filekey;}upload=this.uploadWithFormData(file,data);return upload.then(null,function(code,result){var retry;if(result.upload&&result.upload. warnings&&code in result.upload.warnings){if(end===file.size){return $.Deferred.reject(code,result);}else{return $.Deferred.resolve(result);}}if(retries===0){return $.Deferred.reject(code,result);}retry=api.uploadChunk.bind(api,file,data,start,end,filekey,retries-1);return api.retry(code,result,retry);},function(fraction){return(start+fraction*(end-start))/file.size;}).promise({abort:upload.abort});},retry:function(code,result,callable){var uploadPromise,retryTimer,deferred=$.Deferred,retry=function{uploadPromise=callable;uploadPromise.then(deferred.resolve,deferred.reject);};if(code!=='http'||result.textStatus==='abort'){return deferred.reject(code,result);}retryTimer=setTimeout(retry,1000);return deferred.promise({abort:function{if(retryTimer){clearTimeout(retryTimer);}if(uploadPromise.abort){uploadPromise.abort;}}});},slice:function(file,start,stop){if(file.mozSlice){return file.mozSlice(start,stop,file.type);}else if(file.webkitSlice){return file.webkitSlice(start, stop,file.type);}else{return file.slice(start,stop,file.type);}},finishUploadToStash:function(uploadPromise,data){var filekey,api=this;function finishUpload(moreData){return api.uploadFromStash(filekey,$.extend(data,moreData));}return uploadPromise.then(function(result){filekey=result.upload.filekey;return finishUpload;},function(errorCode,result){if(result&&result.upload&&result.upload.result==='Success'&&result.upload.filekey){filekey=result.upload.filekey;return $.Deferred.resolve(finishUpload);}return $.Deferred.reject(errorCode,result);});},uploadToStash:function(file,data){var promise;if(!data.filename){throw new Error('Filename not included in file data.');}promise=this.upload(file,{stash:!0,filename:data.filename});return this.finishUploadToStash(promise,data);},chunkedUploadToStash:function(file,data,chunkSize,chunkRetries){var promise;if(!data.filename){throw new Error('Filename not included in file data.');}promise=this.chunkedUpload(file,{stash:!0,filename:data. filename},chunkSize,chunkRetries);return this.finishUploadToStash(promise,data);},uploadFromStash:function(filekey,data){data.filekey=filekey;data.action='upload';data.format='json';if(!data.filename){throw new Error('Filename not included in file data.');}return this.postWithEditToken(data).then(function(result){if(result.upload&&result.upload.warnings){return $.Deferred.reject(getFirstKey(result.upload.warnings),result).promise;}return result;});},needToken:function{return true;}});});(function{$.extend(mw.Api.prototype,{getUserInfo:function{return this.get({action:'query',meta:'userinfo',uiprop:['groups','rights']}).then(function(data){if(data.query&&data.query.userinfo){return data.query.userinfo;}return $.Deferred.reject.promise;});}});});(function{function doWatchInternal(pages,addParams){var apiPromise=this.postWithToken('watch',$.extend({formatversion:2,action:'watch',titles:Array.isArray(pages)?pages:String(pages)},addParams));return apiPromise.then( function(data){return Array.isArray(pages)?data.watch:data.watch[0];}).promise({abort:apiPromise.abort});}$.extend(mw.Api.prototype,{watch:function(pages){return doWatchInternal.call(this,pages);},unwatch:function(pages){return doWatchInternal.call(this,pages,{unwatch:1});}});});});mw.loader.implement("mediawiki.base@uupor",function($,jQuery,require,module){mw.errorLogger={installGlobalHandler:function(window){var oldHandler=window.onerror||function{return false;};window.onerror=function(errorMessage,url,lineNumber,columnNumber,errorObject){mw.track('global.error',{errorMessage:errorMessage,url:url,lineNumber:lineNumber,columnNumber:columnNumber,errorObject:errorObject});return oldHandler.apply(this,arguments);};}};mw.errorLogger.installGlobalHandler(window);(function{'use strict';var slice=Array.prototype.slice,mwLoaderTrack=mw.track,trackCallbacks=$.Callbacks('memory'),trackHandlers=[],queue;function Message(map,key,parameters){this.format='text';this.map=map;this.key=key;this.parameters=parameters===undefined?[]:slice.call(parameters);return this;}Message.prototype={parser:function{var text=this.map.get(this.key);if(mw.config.get('wgUserLanguage')==='qqx'&&(!text||text==='('+this.key+')')){text='('+this.key+'$*)';}return mw.format.apply(null,[text]. concat(this.parameters));},params:function(parameters){var i;for(i=0;i<parameters.length;i++){this.parameters.push(parameters[i]);}return this;},toString:function{var text;if(!this.exists){return'⧼'+mw.html.escape(this.key)+'⧽';}if(this.format==='plain'||this.format==='text'||this.format==='parse'){text=this.parser;}if(this.format==='escaped'){text=this.parser;text=mw.html.escape(text);}return text;},parse:function{this.format='parse';return this.toString;},plain:function{this.format='plain';return this.toString;},text:function{this.format='text';return this.toString;},escaped:function{this.format='escaped';return this.toString;},exists:function{if(mw.config.get('wgUserLanguage')==='qqx'){return true;}return this.map.exists(this.key);}};mw.libs={};mw.widgets={};mw.inspect=function{var args=arguments;mw.loader.using('mediawiki.inspect',function{mw.inspect.runReports.apply(mw.inspect,args);});};mw.internalDoTransformFormatForQqx=function(formatString, parameters){var parametersString;if(formatString.indexOf('$*')!==-1){parametersString='';if(parameters.length){parametersString=': '+parameters.map(function(_,i){return'$'+(i+1);}).join(', ');}return formatString.replace('$*',parametersString);}return formatString;};mw.format=function(formatString){var parameters=slice.call(arguments,1);formatString=mw.internalDoTransformFormatForQqx(formatString,parameters);return formatString.replace(/\$(\d+)/g,function(str,match){var index=parseInt(match,10)-1;return parameters[index]!==undefined?parameters[index]:'$'+match;});};mw.Message=Message;mw.message=function(key){var parameters=slice.call(arguments,1);return new Message(mw.messages,key,parameters);};mw.msg=function{return mw.message.apply(mw.message,arguments).toString;};mw.track=function(topic,data){mwLoaderTrack(topic,data);trackCallbacks.fire(mw.trackQueue);};mw.trackSubscribe=function(topic,callback){var seen=0;function handler(trackQueue){var event;for(seen<trackQueue.length;seen++ ){event=trackQueue[seen];if(event.topic.indexOf(topic)===0){callback.call(event,event.topic,event.data);}}}trackHandlers.push([handler,callback]);trackCallbacks.add(handler);};mw.trackUnsubscribe=function(callback){trackHandlers=trackHandlers.filter(function(fns){if(fns[1]===callback){trackCallbacks.remove(fns[0]);return false;}return true;});};trackCallbacks.fire(mw.trackQueue);mw.hook=(function{var lists=Object.create(null);return function(name){var list=lists[name]||(lists[name]=$.Callbacks('memory'));return{add:list.add,remove:list.remove,fire:function{return list.fireWith.call(this,null,slice.call(arguments));}};};});mw.html=(function{function escapeCallback(s){switch(s){case'\'':return'&#039;';case'"':return'&quot;';case'<':return'&lt;';case'>':return'&gt;';case'&':return'&amp;';}}return{escape:function(s){return s.replace(/['"<>&]/g,escapeCallback);},element:function(name,attrs,contents){var v,attrName,s='<'+name;if(attrs){for(attrName in attrs){v=attrs[attrName];if(v=== true){v=attrName;}else if(v===false){continue;}s+=' '+attrName+'="'+this.escape(String(v))+'"';}}if(contents===undefined||contents===null){s+='/>';return s;}s+='>';switch(typeof contents){case'string':s+=this.escape(contents);break;case'number':case'boolean':s+=String(contents);break;default:if(contents instanceof this.Raw){s+=contents.value;}else if(contents instanceof this.Cdata){if(/<\/[a-zA-z]/.test(contents.value)){throw new Error('Illegal end tag found in CDATA');}s+=contents.value;}else{throw new Error('Invalid type of contents');}}s+='</'+name+'>';return s;},Raw:function(value){this.value=value;},Cdata:function(value){this.value=value;}};});mw.loader.using=function(dependencies,ready,error){var deferred=$.Deferred;if(!Array.isArray(dependencies)){dependencies=[dependencies];}if(ready){deferred.done(ready);}if(error){deferred.fail(error);}try{dependencies=mw.loader.resolve(dependencies);}catch(e){return deferred.reject(e).promise;}mw.loader.enqueue(dependencies,function{ deferred.resolve(mw.loader.require);},deferred.reject);return deferred.promise;};mw.loader.getScript=function(url){return $.ajax(url,{dataType:'script',cache:!0}).catch(function{throw new Error('Failed to load script');});};mw.user={options:new mw.Map,tokens:new mw.Map};mw.log.deprecate(window,'$j',$,'Use $ or jQuery instead.');queue=window.RLQ;window.RLQ={push:function(entry){if(typeof entry==='function'){entry;}else{mw.loader.using(entry[0],entry[1]);}}};while(queue[0]){window.RLQ.push(queue.shift);}});});mw.loader.implement("mediawiki.cldr@tc5i3",function($,jQuery,require,module){(function{'use strict';mw.cldr={getPluralForm:function(number,pluralRules){var i,pluralRuleParser=require('mediawiki.libs.pluralruleparser');for(i=0;i<pluralRules.length;i++){if(pluralRuleParser(pluralRules[i],number)){break;}}return i;}};});});mw.loader.implement("mediawiki.cookie@1acl8",{"main":"index.js","files":{"index.js":function(require,module){'use strict';var config=require('./config.json'),defaults={prefix:config.prefix,domain:config.domain,path:config.path,expires:config.expires,secure:!1};mw.cookie={set:function(key,value,options){var date;if(arguments.length>2&&(!options||options instanceof Date||typeof options==='number')){options={expires:options};}options=$.extend({},defaults,options);key=options.prefix+key;delete options.prefix;if(!options.expires){delete options.expires;}else if(typeof options.expires==='number'){date=new Date;date.setTime(Number(date)+(options.expires*1000));options.expires=date;}if(value!==null){value=String(value);}$.cookie(key,value,options);},get:function(key,prefix,defaultValue){var result;if(prefix===undefined||prefix===null){prefix=defaults.prefix;}if(arguments.length<3){defaultValue=null;}result=$.cookie(prefix+key);return result!==null?result:defaultValue;}};if(window.QUnit){ module.exports={setDefaults:function(value){var prev=defaults;defaults=value;return prev;}};}},"config.json":{"prefix":"toxicgachafandomwiki","domain":"","path":"/","expires":2592000}}});mw.loader.implement("mediawiki.jqueryMsg@qp8sr",{"main":"mediawiki.jqueryMsg.js","files":{"mediawiki.jqueryMsg.js":function(require,module){var oldParser,slice=Array.prototype.slice,parserDefaults={magic:{PAGENAME:mw.config.get('wgPageName'),PAGENAMEE:mw.util.wikiUrlencode(mw.config.get('wgPageName'))},allowedHtmlElements:[],allowedHtmlCommonAttributes:['id','class','style','lang','dir','title','role'],allowedHtmlAttributesByElement:{},messages:mw.messages,language:mw.language,format:'parse'};$.extend(true,parserDefaults,require('./parserDefaults.json'));function appendWithoutParsing($parent,children){var i,len;if(!Array.isArray(children)){children=[children];}for(i=0,len=children.length;i<len;i++){if(typeof children[i]!=='object'){children[i]=document.createTextNode(children[i]);}if(children[i]instanceof $&&children[i].hasClass('mediaWiki_htmlEmitter')){children[i]=children[i].contents;}}return $parent.append(children);}function decodePrimaryHtmlEntities(encoded){return encoded. replace(/&#039;/g,'\'').replace(/&quot;/g,'"').replace(/&lt;/g,'<').replace(/&gt;/g,'>').replace(/&amp;/g,'&');}function textify(input){if(input instanceof $){input=input.text;}return String(input);}function getFailableParserFn(options){return function(args){var fallback,parser=new mw.jqueryMsg.Parser(options),key=args[0],argsArray=Array.isArray(args[1])?args[1]:slice.call(args,1);try{return parser.parse(key,argsArray);}catch(e){fallback=parser.settings.messages.get(key);mw.log.warn('mediawiki.jqueryMsg: '+key+': '+e.message);mw.track('mediawiki.jqueryMsg.error',{messageKey:key,errorMessage:e.message});return $(' ').text(fallback);}};}mw.jqueryMsg={};mw.jqueryMsg.setParserDefaults=function(data,deep){if(deep){$.extend(true,parserDefaults,data);}else{$.extend(parserDefaults,data);}};mw.jqueryMsg.getParserDefaults=function{return $.extend({},parserDefaults);};mw.jqueryMsg.getMessageFunction=function(options){var failableParserFn,format;if(options&&options.format!==undefined){ format=options.format;}else{format=parserDefaults.format;}return function{var failableResult;if(!failableParserFn){failableParserFn=getFailableParserFn(options);}failableResult=failableParserFn(arguments);if(format==='text'||format==='escaped'){return failableResult.text;}else{return failableResult.html;}};};mw.jqueryMsg.getPlugin=function(options){var failableParserFn;return function{var $target;if(!failableParserFn){failableParserFn=getFailableParserFn(options);}$target=this.empty;appendWithoutParsing($target,failableParserFn(arguments));return $target;};};mw.jqueryMsg.Parser=function(options){this.settings=$.extend({},parserDefaults,options);this.settings.onlyCurlyBraceTransform=(this.settings.format==='text'||this.settings.format==='escaped');this.astCache={};this.emitter=new mw.jqueryMsg.HtmlEmitter(this.settings.language,this.settings.magic);};mw.jqueryMsg.parser=mw.jqueryMsg.Parser;mw.jqueryMsg.Parser.prototype={parse:function(key,replacements){var ast=this.getAst(key, replacements);return this.emitter.emit(ast,replacements);},getAst:function(key,replacements){var wikiText;if(!Object.prototype.hasOwnProperty.call(this.astCache,key)){wikiText=this.settings.messages.get(key);if(mw.config.get('wgUserLanguage')==='qqx'&&(!wikiText||wikiText==='('+key+')')){wikiText='('+key+'$*)';}else if(typeof wikiText!=='string'){wikiText='⧼'+key+'⧽';}wikiText=mw.internalDoTransformFormatForQqx(wikiText,replacements);this.astCache[key]=this.wikiTextToAst(wikiText);}return this.astCache[key];},wikiTextToAst:function(input){var pos,regularLiteral,regularLiteralWithoutBar,regularLiteralWithoutSpace,regularLiteralWithSquareBrackets,doubleQuote,singleQuote,backslash,anyCharacter,asciiAlphabetLiteral,escapedOrLiteralWithoutSpace,escapedOrLiteralWithoutBar,escapedOrRegularLiteral,whitespace,dollar,digits,htmlDoubleQuoteAttributeValue,htmlSingleQuoteAttributeValue,htmlAttributeEquals,openHtmlStartTag,optionalForwardSlash,openHtmlEndTag,closeHtmlTag,openExtlink,closeExtlink ,wikilinkContents,openWikilink,closeWikilink,templateName,pipe,colon,templateContents,openTemplate,closeTemplate,nonWhitespaceExpression,paramExpression,expression,curlyBraceTransformExpression,result,settings=this.settings,concat=Array.prototype.concat;pos=0;function choice(ps){return function{var i,result;for(i=0;i<ps.length;i++){result=ps[i];if(result!==null){return result;}}return null;};}function sequence(ps){var i,res,originalPos=pos,result=[];for(i=0;i<ps.length;i++){res=ps[i];if(res===null){pos=originalPos;return null;}result.push(res);}return result;}function nOrMore(n,p){return function{var originalPos=pos,result=[],parsed=p;while(parsed!==null){result.push(parsed);parsed=p;}if(result.length<n){pos=originalPos;return null;}return result;};}function transform(p,fn){return function{var result=p;return result===null?null:fn(result);};}function makeStringParser(s){var len=s.length;return function{var result=null;if(input.substr(pos,len)===s){result=s;pos+=len;} return result;};}function makeRegexParser(regex){return function{var matches=input.slice(pos).match(regex);if(matches===null){return null;}pos+=matches[0].length;return matches[0];};}regularLiteral=makeRegexParser(/^[^{}\[\]$<\\]/);regularLiteralWithoutBar=makeRegexParser(/^[^{}\[\]$\\|]/);regularLiteralWithoutSpace=makeRegexParser(/^[^{}\[\]$\s]/);regularLiteralWithSquareBrackets=makeRegexParser(/^[^{}$\\]/);backslash=makeStringParser('\\');doubleQuote=makeStringParser('"');singleQuote=makeStringParser('\'');anyCharacter=makeRegexParser(/^./);openHtmlStartTag=makeStringParser('<');optionalForwardSlash=makeRegexParser(/^\/?/);openHtmlEndTag=makeStringParser('</');htmlAttributeEquals=makeRegexParser(/^\s*=\s*/);closeHtmlTag=makeRegexParser(/^\s*>/);function escapedLiteral{var result=sequence([backslash,anyCharacter]);return result===null?null:result[1];}escapedOrLiteralWithoutSpace=choice([escapedLiteral,regularLiteralWithoutSpace]);escapedOrLiteralWithoutBar=choice([escapedLiteral, regularLiteralWithoutBar]);escapedOrRegularLiteral=choice([escapedLiteral,regularLiteral]);function literalWithoutSpace{var result=nOrMore(1,escapedOrLiteralWithoutSpace);return result===null?null:result.join();}function literalWithoutBar{var result=nOrMore(1,escapedOrLiteralWithoutBar);return result===null?null:result.join();}function literal{var result=nOrMore(1,escapedOrRegularLiteral);return result===null?null:result.join();}function curlyBraceTransformExpressionLiteral{var result=nOrMore(1,regularLiteralWithSquareBrackets);return result===null?null:result.join();}asciiAlphabetLiteral=makeRegexParser(/^[A-Za-z]+/);htmlDoubleQuoteAttributeValue=makeRegexParser(/^[^"]*/);htmlSingleQuoteAttributeValue=makeRegexParser(/^[^']*/);whitespace=makeRegexParser(/^\s+/);dollar=makeStringParser('$');digits=makeRegexParser(/^\d+/);function replacement{var result=sequence([dollar,digits]);if(result===null){return null;}return['REPLACE',parseInt(result[1],10)-1];} openExtlink=makeStringParser('[');closeExtlink=makeStringParser(']');function extlink{var result,parsedResult,target;result=null;parsedResult=sequence([openExtlink,nOrMore(1,nonWhitespaceExpression),whitespace,nOrMore(1,expression),closeExtlink]);if(parsedResult!==null){target=parsedResult[1].length===1?parsedResult[1][0]:['CONCAT'].concat(parsedResult[1]);result=['EXTLINK',target,['CONCAT'].concat(parsedResult[3])];}return result;}openWikilink=makeStringParser();closeWikilink=makeStringParser();pipe=makeStringParser('|');function template{var result=sequence([openTemplate,templateContents,closeTemplate]);return result===null?null:result[1];}function pipedWikilink{var result=sequence([nOrMore(1,paramExpression),pipe,nOrMore(1,expression)]);return result===null?null:'CONCAT'].concat(result[0]),['CONCAT'].concat(result[2])];}function unpipedWikilink{var result=sequence([nOrMore(1,paramExpression)]);return result===null?null:[['CONCAT'].concat(result[0])];} wikilinkContents=choice([pipedWikilink,unpipedWikilink]);function wikilink{var result,parsedResult,parsedLinkContents;result=null;parsedResult=sequence([openWikilink,wikilinkContents,closeWikilink]);if(parsedResult!==null){parsedLinkContents=parsedResult[1];result=['WIKILINK'].concat(parsedLinkContents);}return result;}function doubleQuotedHtmlAttributeValue{var parsedResult=sequence([doubleQuote,htmlDoubleQuoteAttributeValue,doubleQuote]);return parsedResult===null?null:parsedResult[1];}function singleQuotedHtmlAttributeValue{var parsedResult=sequence([singleQuote,htmlSingleQuoteAttributeValue,singleQuote]);return parsedResult===null?null:parsedResult[1];}function htmlAttribute{var parsedResult=sequence([whitespace,asciiAlphabetLiteral,htmlAttributeEquals,choice([doubleQuotedHtmlAttributeValue,singleQuotedHtmlAttributeValue])]);return parsedResult===null?null:[parsedResult[1],parsedResult[3;}function isAllowedHtml(startTagName,endTagName,attributes){var i,len,attributeName; startTagName=startTagName.toLowerCase;endTagName=endTagName.toLowerCase;if(startTagName!==endTagName||settings.allowedHtmlElements.indexOf(startTagName)===-1){return false;}for(i=0,len=attributes.length;i<len;i+=2){attributeName=attributes[i];if(settings.allowedHtmlCommonAttributes.indexOf(attributeName)===-1&&(settings.allowedHtmlAttributesByElement[startTagName]||[]).indexOf(attributeName)===-1){return false;}}return true;}function htmlAttributes{var parsedResult=nOrMore(0,htmlAttribute);return concat.apply(['HTMLATTRIBUTES'],parsedResult);}function html{var parsedOpenTagResult,parsedHtmlContents,parsedCloseTagResult,wrappedAttributes,attributes,startTagName,endTagName,startOpenTagPos,startCloseTagPos,endOpenTagPos,endCloseTagPos,result=null;startOpenTagPos=pos;parsedOpenTagResult=sequence([openHtmlStartTag,asciiAlphabetLiteral,htmlAttributes,optionalForwardSlash,closeHtmlTag]);if(parsedOpenTagResult===null){return null;}endOpenTagPos=pos;startTagName=parsedOpenTagResult[1] makeRegexParser(/^[ !"$&'*,./0-9;=?@A-Z^_`a-z~\x80-\xFF+-]+/),function(result){return result.toString;});function templateParam{var expr,result;result=sequence([pipe,nOrMore(0,paramExpression)]);if(result===null){return null;}expr=result[1];return expr.length>1?['CONCAT'].concat(expr):expr[0];}function templateWithReplacement{var result=sequence([templateName,colon,replacement]);return result===null?null:[result[0],result[2]];}function templateWithOutReplacement{var result=sequence([templateName,colon,paramExpression]);return result===null?null:[result[0],result[2]];}function templateWithOutFirstParameter{var result=sequence([templateName,colon]);return result===null?null:[result[0],''];}colon=makeStringParser(':');templateContents=choice([function{var res=sequence([choice([templateWithReplacement,templateWithOutReplacement,templateWithOutFirstParameter]),nOrMore(0,templateParam)]);return res===null?null:res[0].concat(res[1]);},function{var res=sequence([templateName, nOrMore(0,templateParam)]);if(res===null){return null;}return[res[0]].concat(res[1]);}]);openTemplate=makeStringParser('');nonWhitespaceExpression=choice([template,wikilink,extlink,replacement,literalWithoutSpace]);paramExpression=choice([template,wikilink,extlink,replacement,literalWithoutBar]);expression=choice([template,wikilink,extlink,replacement,nowiki,html,literal]);curlyBraceTransformExpression=choice([template,replacement,curlyBraceTransformExpressionLiteral]);function start(rootExpression){var result=nOrMore(0,rootExpression);if(result===null){return null;}return['CONCAT'].concat(result);}result=start(this.settings.onlyCurlyBraceTransform?curlyBraceTransformExpression:expression);if(result===null||pos!==input.length){throw new Error('Parse error at position '+pos.toString+' in input: '+input);}return result;}};mw.jqueryMsg.HtmlEmitter=function(language,magic){var jmsg=this;this.language=language;$.each(magic,function(key,val){jmsg[ key.toLowerCase]=function{return val;};});this.emit=function(node,replacements){var ret,subnodes,operation,jmsg=this;switch(typeof node){case'string':case'number':ret=node;break;case'object':subnodes=$.map(node.slice(1),function(n){return jmsg.emit(n,replacements);});operation=node[0].toLowerCase;if(typeof jmsg[operation]==='function'){ret=jmsg[operation](subnodes,replacements);}else{throw new Error('Unknown operation "'+operation+'"');}break;case'undefined':ret='';break;default:throw new Error('Unexpected type in AST: '+typeof node);}return ret;};};mw.jqueryMsg.HtmlEmitter.prototype={concat:function(nodes){var $span=$(' ').addClass('mediaWiki_htmlEmitter');$.each(nodes,function(i,node){appendWithoutParsing($span,node);});return $span;},replace:function(nodes,replacements){var index=parseInt(nodes[0],10);if(index<replacements.length){return replacements[index];}else{return'$'+(index+1);}},wikilink:function(nodes){var page,anchor,url,$el;page=textify(nodes[0]);if(page.charAt( 0)===':'){page=page.slice(1);}url=mw.util.getUrl(page);if(nodes.length===1){anchor=page;}else{anchor=nodes[1];}$el=$('').attr({title:page,href:url});return appendWithoutParsing($el,anchor);},htmlattributes:function(nodes){var i,len,mapping={};for(i=0,len=nodes.length;i<len;i+=2){mapping[nodes[i]]=decodePrimaryHtmlEntities(nodes[i+1]);}return mapping;},htmlelement:function(nodes){var tagName,attributes,contents,$element;tagName=nodes.shift;attributes=nodes.shift;contents=nodes;$element=$(document.createElement(tagName)).attr(attributes);return appendWithoutParsing($element,contents);},extlink:function(nodes){var $el,arg=nodes[0],contents=nodes[1];if(arg instanceof $&&!arg.hasClass('mediaWiki_htmlEmitter')){$el=arg;}else{$el=$('');if(typeof arg==='function'){$el.attr({role:'button',tabindex:0}).on('click keypress',function(e){if(e.type==='click'||e.type==='keypress'&&e.which===13){arg.call(this,e);}});}else{$el.attr('href',textify(arg));}}return appendWithoutParsing($el.empty ,contents);},plural:function(nodes){var forms,firstChild,firstChildText,explicitPluralFormNumber,formIndex,form,count,explicitPluralForms={};count=parseFloat(this.language.convertNumber(textify(nodes[0]),true));forms=nodes.slice(1);for(formIndex=0;formIndex<forms.length;formIndex++){form=forms[formIndex];if(form instanceof $&&form.hasClass('mediaWiki_htmlEmitter')){firstChild=form.contents.get(0);if(firstChild&&firstChild.nodeType===Node.TEXT_NODE){firstChildText=firstChild.textContent;if(/^\d+=/.test(firstChildText)){explicitPluralFormNumber=parseInt(firstChildText.split(/=/)[0],10);firstChild.textContent=firstChildText.slice(firstChildText.indexOf('=')+1);explicitPluralForms[explicitPluralFormNumber]=form;forms[formIndex]=undefined;}}}else if(/^\d+=/.test(form)){explicitPluralFormNumber=parseInt(form.split(/=/)[0],10);explicitPluralForms[explicitPluralFormNumber]=form.slice(form.indexOf('=')+1);forms[formIndex]=undefined;}}forms=$.map(forms,function(form){return form;});return this .language.convertPlural(count,forms,explicitPluralForms);},gender:function(nodes){var gender,maybeUser=nodes[0],forms=nodes.slice(1);if(maybeUser===){maybeUser=mw.user;}if(maybeUser&&maybeUser.options instanceof mw.Map){gender=maybeUser.options.get('gender');}else{gender=textify(maybeUser);}return this.language.gender(gender,forms);},grammar:function(nodes){var form=nodes[0],word=nodes[1];if(typeof form==='string'&&typeof word==='string'){return this.language.convertGrammar(word,form);}return word;},int:function(nodes){var msg=textify(nodes[0]);return mw.jqueryMsg.getMessageFunction(msg.charAt(0).toLowerCase+msg.slice(1));},ns:function(nodes){var ns=textify(nodes[0]).trim;if(!/^\d+$/.test(ns)){ns=mw.config.get('wgNamespaceIds')[ns.replace(/ /g,'_').toLowerCase];}ns=mw.config.get('wgFormattedNamespaces')[ns];return ns||;},formatnum:function(nodes){var isInteger=!!nodes[1]&&nodes[1]==='R',number=nodes[0];if(typeof number==='string'||typeof number==='number'){return this. language.convertNumber(number,isInteger);}return number;},lc:function(nodes){return textify(nodes[0]).toLowerCase;},uc:function(nodes){return textify(nodes[0]).toUpperCase;},lcfirst:function(nodes){var text=textify(nodes[0]);return text.charAt(0).toLowerCase+text.slice(1);},ucfirst:function(nodes){var text=textify(nodes[0]);return text.charAt(0).toUpperCase+text.slice(1);}};$.fn.msg=mw.jqueryMsg.getPlugin;oldParser=mw.Message.prototype.parser;mw.Message.prototype.parser=function{if(this.format==='plain'||(!/\{\{|[<>[&]/.test(this.map.get(this.key))&&!this.parameters.some(function(param){return param instanceof $||(param&&param.nodeType!==undefined);}))){return oldParser.apply(this);}if(!Object.prototype.hasOwnProperty.call(this.map,this.format)){this.map[this.format]=mw.jqueryMsg.getMessageFunction({messages:this.map,format:this.format});}return this.map[this.format](this.key,this.parameters);};mw.Message.prototype.parseDom=(function{var $wrapper=$(' ');return function {return $wrapper.msg(this.key,this.parameters).contents.detach;};});},"parserDefaults.json":{"allowedHtmlElements":["b","bdi","del","i","ins","u","font","big","small","sub","sup","h1","h2","h3","h4","h5","h6","cite","code","em","s","strike","strong","tt","var","div","center","blockquote","ol","ul","dl","table","caption","pre","ruby","rb","rp","rt","rtc","p","span","abbr","dfn","kbd","samp","data","time","mark","li","dt","dd"],"magic":{"SITENAME":"The Toxic Gacha Fandom Wiki"}}}});mw.loader.implement("mediawiki.language@aytd5",function($,jQuery,require,module){(function{mw.language={data:{},getData:function(langCode,dataKey){var langData=mw.language.data;langCode=langCode.toLowerCase;if(langData&&langData[langCode]instanceof mw.Map){return langData[langCode].get(dataKey);}return undefined;},setData:function(langCode,dataKey,value){var langData=mw.language.data;langCode=langCode.toLowerCase;if(!(langData[langCode]instanceof mw.Map)){langData[langCode]=new mw.Map;}if(arguments.length>2){langData[langCode].set(dataKey,value);}else{langData[langCode].set(dataKey);}}};});(function{$.extend(mw.language,{convertPlural:function(count,forms,explicitPluralForms){var pluralRules,pluralFormIndex=0;if(explicitPluralForms&&(explicitPluralForms[count]!==undefined)){return explicitPluralForms[count];}if(!forms||forms.length===0){return'';}pluralRules=mw.language.getData(mw.config.get('wgUserLanguage'),'pluralRules');if(!pluralRules){return(count===1)?forms[0]:forms[ 1];}pluralFormIndex=mw.cldr.getPluralForm(count,pluralRules);pluralFormIndex=Math.min(pluralFormIndex,forms.length-1);return forms[pluralFormIndex];},preConvertPlural:function(forms,count){while(forms.length<count){forms.push(forms[forms.length-1]);}return forms;},gender:function(gender,forms){if(!forms||forms.length===0){return'';}forms=mw.language.preConvertPlural(forms,2);if(gender==='male'){return forms[0];}if(gender==='female'){return forms[1];}return(forms.length===3)?forms[2]:forms[0];},convertGrammar:function(word,form){var userLanguage,forms,transformations,patterns,i,rule,sourcePattern,regexp,replacement;userLanguage=mw.config.get('wgUserLanguage');forms=mw.language.getData(userLanguage,'grammarForms');if(forms&&forms[form]){return forms[form][word];}transformations=mw.language.getData(userLanguage,'grammarTransformations');if(!(transformations&&transformations[form])){return word;}patterns=transformations[form];if(typeof patterns==='string'){patterns=transformations[patterns ];}for(i=0;i<patterns.length;i++){rule=patterns[i];sourcePattern=rule[0];if(sourcePattern==='@metadata'){continue;}regexp=new RegExp(sourcePattern);replacement=rule[1];if(word.match(regexp)){return word.replace(regexp,replacement);}}return word;},listToText:function(list){var text='',i=0;for(i<list.length;i++){text+=list[i];if(list.length-2===i){text+=mw.msg('and')+mw.msg('word-separator');}else if(list.length-1!==i){text+=mw.msg('comma-separator');}}return text;},bcp47:function(languageTag){var bcp47Map,formatted,segments,isFirstSegment=!0,isPrivate=!1;languageTag=languageTag.toLowerCase;bcp47Map=mw.language.getData(mw.config.get('wgUserLanguage'),'bcp47Map');if(bcp47Map&&Object.prototype.hasOwnProperty.call(bcp47Map,languageTag)){languageTag=bcp47Map[languageTag];}segments=languageTag.split('-');formatted=segments.map(function(segment){var newSegment;if(isPrivate){newSegment=segment.toLowerCase;}else if(segment.length===2&&!isFirstSegment){newSegment=segment.toUpperCase;} else if(segment.length===4&&!isFirstSegment){newSegment=segment.charAt(0).toUpperCase+segment.substring(1).toLowerCase;}else{newSegment=segment.toLowerCase;}isPrivate=segment.toLowerCase==='x';isFirstSegment=!1;return newSegment;});return formatted.join('-');}});});(function{function replicate(str,num){var buf=[];if(num<=0||!str){return;}while(num--){buf.push(str);}return buf.join();}function pad(text,size,ch,end){var out,padStr;if(!ch){ch='0';}out=String(text);padStr=replicate(ch,Math.ceil((size-out.length)/ch.length));return end?out+padStr:padStr+out;}function commafyNumber(value,pattern,options){var padLength,patternDigits,index,whole,off,remainder,patternParts=pattern.split('.'),maxPlaces=(patternParts[1]||[]).length,valueParts=String(Math.abs(value)).split('.'),fractional=valueParts[1]||'',groupSize=0,groupSize2=0,pieces=[];options=options||{group:',',decimal:'.'};if(isNaN(value)){return value;}if(patternParts[1]){padLength=(patternParts[1]&&patternParts[1]. lastIndexOf('0')+1);if(padLength>fractional.length){valueParts[1]=pad(fractional,padLength,'0',true);}if(maxPlaces<fractional.length){valueParts[1]=fractional.slice(0,maxPlaces);}}else{if(valueParts[1]){valueParts.pop;}}patternDigits=patternParts[0].replace(',','');padLength=patternDigits.indexOf('0');if(padLength!==-1){padLength=patternDigits.length-padLength;if(padLength>valueParts[0].length){valueParts[0]=pad(valueParts[0],padLength);}if(patternDigits.indexOf('#')===-1){valueParts[0]=valueParts[0].slice(valueParts[0].length-padLength);}}index=patternParts[0].lastIndexOf(',');if(index!==-1){groupSize=patternParts[0].length-index-1;remainder=patternParts[0].slice(0,index);index=remainder.lastIndexOf(',');if(index!==-1){groupSize2=remainder.length-index-1;}}if(options.minimumGroupingDigits===null||valueParts[0].length>=groupSize+options.minimumGroupingDigits){for(whole=valueParts[0];whole;){off=groupSize?whole.length-groupSize:0;pieces.push((off>0)?whole.slice(off):whole);whole=(off> 0)?whole.slice(0,off):;if(groupSize2){groupSize=groupSize2;groupSize2=null;}}valueParts[0]=pieces.reverse.join(options.group);}return valueParts.join(options.decimal);}function flipTransform{var i,key,table,flipped={};flipped[',']=;for(i=0;i=0&&mw.user.options.get('searchNs'+nsID)){return Number(nsID);}});mw.searchSuggest={request:function(api,query,response,maxRows,namespace){return api.get({formatversion:2,action:'opensearch',search:query,namespace:namespace||searchNS,limit:maxRows,suggest:!0}).done(function(data,jqXHR){response(data[1],{type:jqXHR.getResponseHeader('X-OpenSearch-Type'),searchId:jqXHR.getResponseHeader('X-Search-ID'),query:query});});}};$(function{var api,searchboxesSelectors,$searchRegion=$('#simpleSearch, #searchInput').first,$searchInput=$('#searchInput'),previousSearchText=$searchInput.val;function getFormData(context){var $form,baseHref,linkParams;if(!context.formData){$form=context.config.$region.closest('form');baseHref=$form.attr('action');baseHref+=baseHref.indexOf('?')>-1?'&':'?';linkParams=$form. serializeObject;context.formData={textParam:context.data.$textbox.attr('name'),linkParams:linkParams,baseHref:baseHref};}return context.formData;}function onBeforeUpdate{var searchText=this.val;if(searchText&&searchText!==previousSearchText){mw.track('mediawiki.searchSuggest',{action:'session-start'});}previousSearchText=searchText;}function getInputLocation(context){return context.config.$region.closest('form').find('[data-search-loc]').data('search-loc')||'header';}function onAfterUpdate(metadata){var context=this.data('suggestionsContext');mw.track('mediawiki.searchSuggest',{action:'impression-results',numberOfResults:context.config.suggestions.length,resultSetType:metadata.type||'unknown',searchId:metadata.searchId||null,query:metadata.query,inputLocation:getInputLocation(context)});}function renderFunction(text,context){var formData=getFormData(context),textboxConfig=context.data.$textbox.data('mw-searchsuggest')||{};formData.linkParams[formData.textParam]=text;mw.track( 'mediawiki.searchSuggest',{action:'render-one',formData:formData,index:context.config.suggestions.indexOf(text)});this.text(text);if(textboxConfig.wrapAsLink!==false){this.wrap($('').attr('href',formData.baseHref+$.param(formData.linkParams)).attr('title',text).addClass('mw-searchSuggest-link'));}}function selectFunction($input,source){var context=$input.data('suggestionsContext'),text=$input.val;if(source!=='keyboard'){mw.track('mediawiki.searchSuggest',{action:'click-result',numberOfResults:context.config.suggestions.length,index:context.config.suggestions.indexOf(text)});}return true;}function specialRenderFunction(query,context){var $el=this,formData=getFormData(context);formData.linkParams[formData.textParam]=query;mw.track('mediawiki.searchSuggest',{action:'render-one',formData:formData,index:context.config.suggestions.indexOf(query)});if($el.children.length===0){$el.append($(' ').addClass('special-label').text(mw.msg('searchsuggest-containing')),$(' ').addClass( 'special-query').text(query)).show;}else{$el.find('.special-query').text(query);}if($el.parent.hasClass('mw-searchSuggest-link')){$el.parent.attr('href',formData.baseHref+$.param(formData.linkParams)+'&fulltext=1');}else{$el.wrap($('').attr('href',formData.baseHref+$.param(formData.linkParams)+'&fulltext=1').addClass('mw-searchSuggest-link'));}}searchboxesSelectors=['#searchInput','.mw-searchInput'];$(searchboxesSelectors.join(', ')).suggestions({fetch:function(query,response,maxRows){var node=this[0];api=api||new mw.Api;$.data(node,'request',mw.searchSuggest.request(api,query,response,maxRows));},cancel:function{var node=this[0],request=$.data(node,'request');if(request){request.abort;$.removeData(node,'request');}},result:{render:renderFunction,select:function{return true;}},update:{before:onBeforeUpdate,after:onAfterUpdate},cache:!0,highlightInput:!0}).on('paste cut drop',function{$(this).trigger('keypress');}).each(function{var $this=$(this);$this.data( 'suggestions-context').data.$container.css('fontSize',$this.css('fontSize'));});if($searchRegion.length===0){return;}$searchInput.suggestions({update:{before:onBeforeUpdate,after:onAfterUpdate},result:{render:renderFunction,select:selectFunction},special:{render:specialRenderFunction,select:function($input,source){var context=$input.data('suggestionsContext'),text=$input.val;if(source==='mouse'){mw.track('mediawiki.searchSuggest',{action:'click-result',numberOfResults:context.config.suggestions.length,index:context.config.suggestions.indexOf(text)});}else{$input.closest('form').append($(' ').prop({type:'hidden',value:1}).attr('name','fulltext'));}return true;}},$region:$searchRegion});$searchInput.closest('form').on('submit',function{var context=$searchInput.data('suggestionsContext');mw.track('mediawiki.searchSuggest',{action:'submit-form',numberOfResults:context.config.suggestions.length,$form:context.config.$region.closest('form'),inputLocation:getInputLocation(context), index:context.config.suggestions.indexOf(context.data.$textbox.val)});}).find('.mw-fallbackSearchButton').remove;});});},{"css":[".suggestions a.mw-searchSuggest-link,.suggestions a.mw-searchSuggest-link:hover,.suggestions a.mw-searchSuggest-link:active,.suggestions a.mw-searchSuggest-link:focus{color:#000;text-decoration:none}.suggestions-result-current a.mw-searchSuggest-link,.suggestions-result-current a.mw-searchSuggest-link:hover,.suggestions-result-current a.mw-searchSuggest-link:active,.suggestions-result-current a.mw-searchSuggest-link:focus{color:#fff}.suggestions a.mw-searchSuggest-link .special-query{ overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"]},{"searchsuggest-containing":"containing...","searchsuggest-search":"Search "});mw.loader.implement("mediawiki.storage@1r040",function($,jQuery,require,module){(function{'use strict';var localStorage=(function{try{return window.localStorage;}catch(e){}}),sessionStorage=(function{try{return window.sessionStorage;}catch(e){}});function SafeStorage(store){this.store=store;}SafeStorage.prototype.get=function(key){try{return this.store.getItem(key);}catch(e){}return false;};SafeStorage.prototype.set=function(key,value){try{this.store.setItem(key,value);return true;}catch(e){}return false;};SafeStorage.prototype.remove=function(key){try{this.store.removeItem(key);return true;}catch(e){}return false;};SafeStorage.prototype.getObject=function(key){var json=this.get(key);if(json===false){return false;}try{return JSON.parse(json);}catch(e){}return null;};SafeStorage.prototype.setObject=function(key,value){var json;try{json=JSON.stringify(value);return this.set(key,json);}catch(e){}return false;};mw.storage=new SafeStorage(localStorage);mw.storage.session=new SafeStorage(sessionStorage);});});mw.loader.implement("mediawiki.template@1oeb3",function($,jQuery,require,module){(function{var compiledTemplates={},compilers={};mw.template={registerCompiler:function(name,compiler){if(!compiler.compile){throw new Error('Compiler must implement a compile method');}compilers[name]=compiler;},getCompilerName:function(templateName){var nameParts=templateName.split('.');if(nameParts.length<2){throw new Error('Template name must have a suffix');}return nameParts[nameParts.length-1];},getCompiler:function(name){var compiler=compilers[name];if(!compiler){throw new Error('Unknown compiler '+name);}return compiler;},add:function(moduleName,templateName,templateBody){var compiled=this.compile(templateBody,this.getCompilerName(templateName));if(!compiledTemplates[moduleName]){compiledTemplates[moduleName]={};}compiledTemplates[moduleName][templateName]=compiled;return compiled;},get:function(moduleName,templateName){var moduleTemplates;if(compiledTemplates[moduleName]&&compiledTemplates[ moduleName][templateName]){return compiledTemplates[moduleName][templateName];}moduleTemplates=mw.templates.get(moduleName);if(!moduleTemplates||!moduleTemplates[templateName]){throw new Error('Template '+templateName+' not found in module '+moduleName);}return this.add(moduleName,templateName,moduleTemplates[templateName]);},compile:function(templateBody,compilerName){return this.getCompiler(compilerName).compile(templateBody);}};mw.template.registerCompiler('html',{compile:function(src){return{render:function{return $($.parseHTML(src.trim));}};}});});});mw.loader.implement("mediawiki.user@1qvt5",function($,jQuery,require,module){(function{var userInfoPromise,pageviewRandomId;function getUserInfo{if(!userInfoPromise){userInfoPromise=new mw.Api.getUserInfo;}return userInfoPromise;}$.extend(mw.user,{generateRandomSessionId:function{var rnds,i,crypto=window.crypto||window.msCrypto;if(crypto&&crypto.getRandomValues&&typeof Uint16Array==='function'){rnds=new Uint16Array(5);crypto.getRandomValues(rnds);}else{rnds=new Array(5);for(i=0;i<5;i++){rnds[i]=Math.floor(Math.random*0x10000);}}return(rnds[0]+0x10000).toString(16).slice(1)+(rnds[1]+0x10000).toString(16).slice(1)+(rnds[2]+0x10000).toString(16).slice(1)+(rnds[3]+0x10000).toString(16).slice(1)+(rnds[4]+0x10000).toString(16).slice(1);},getPageviewToken:function{if(!pageviewRandomId){pageviewRandomId=mw.user.generateRandomSessionId;}return pageviewRandomId;},getId:function{return mw.config.get('wgUserId')||0;},getName:function{return mw.config.get('wgUserName');}, getRegistration:function{var registration;if(mw.user.isAnon){return false;}registration=mw.config.get('wgUserRegistration');return!registration?null:new Date(registration);},isAnon:function{return mw.user.getName===null;},sessionId:function{var sessionId=mw.storage.session.get('mwuser-sessionId');if(!sessionId){sessionId=mw.user.generateRandomSessionId;mw.storage.session.set('mwuser-sessionId',sessionId);}return sessionId;},id:function{return mw.user.getName||mw.user.sessionId;},getGroups:function(callback){var userGroups=mw.config.get('wgUserGroups',[]);return $.Deferred.resolve(userGroups).then(callback);},getRights:function(callback){return getUserInfo.then(function(userInfo){return userInfo.rights;},function{return[];}).then(callback);}});});});mw.loader.implement("mediawiki.util@yatlx",{"main":"util.js","files":{"util.js":function(require,module){'use strict';var util,config=require('./config.json');require('./jquery.accessKeyLabel.js');function rawurlencode(str){return encodeURIComponent(String(str)).replace(/!/g,'%21').replace(/'/g,'%27').replace(/\(/g,'%28').replace(/\)/g,'%29').replace(/\*/g,'%2A').replace(/~/g,'%7E');}function escapeIdInternal(str,mode){str=String(str);switch(mode){case'html5':return str.replace(/ /g,'_');case'legacy':return rawurlencode(str.replace(/ /g,'_')).replace(/%3A/g,':').replace(/%/g,'.');default:throw new Error('Unrecognized ID escaping mode '+mode);}}util={rawurlencode:rawurlencode,escapeIdForAttribute:function(str){return escapeIdInternal(str,config.FragmentMode[0]);},escapeIdForLink:function(str){return escapeIdInternal(str,config.FragmentMode[0]);},debounce:function(delay,callback){var timeout;return function{clearTimeout(timeout);timeout=setTimeout(Function.prototype.apply.bind(callback ,this,arguments),delay);};},wikiUrlencode:function(str){return util.rawurlencode(str).replace(/%20/g,'_').replace(/%3B/g,';').replace(/%40/g,'@').replace(/%24/g,'$').replace(/%21/g,'!').replace(/%2A/g,'*').replace(/%28/g,'(').replace(/%29/g,')').replace(/%2C/g,',').replace(/%2F/g,'/').replace(/%7E/g,'~').replace(/%3A/g,':');},getUrl:function(pageName,params){var fragmentIdx,url,query,fragment,title=typeof pageName==='string'?pageName:mw.config.get('wgPageName');fragmentIdx=title.indexOf('#');if(fragmentIdx!==-1){fragment=title.slice(fragmentIdx+1);title=title.slice(0,fragmentIdx);}if(params){query=$.param(params);}if(query){url=title?util.wikiScript+'?title='+util.wikiUrlencode(title)+'&'+query:util.wikiScript+'?'+query;}else{url=mw.config.get('wgArticlePath').replace('$1',util.wikiUrlencode(title).replace(/\$/g,'$$$$'));}if(fragment&&fragment.length){url+='#'+util.escapeIdForLink(fragment);}return url;},wikiScript:function(str){if(!str||str==='index'){return mw.config.get( 'wgScript');}else if(str==='load'){return config.LoadScript;}else{return mw.config.get('wgScriptPath')+'/'+str+'.php';}},addCSS:function(text){var s=mw.loader.addStyleTag(text);return s.sheet;},getParamValue:function(param,url){var re=new RegExp('^[^#]*[&?]'+util.escapeRegExp(param)+'=([^&#]*)'),m=re.exec(url!==undefined?url:location.href);if(m){return decodeURIComponent(m[1].replace(/\+/g,'%20'));}return null;},$content:null,addPortletLink:function(portletId,href,text,id,tooltip,accesskey,nextnode){var item,link,$portlet,portlet,portletDiv,ul,next;if(!portletId){return null;}portlet=document.getElementById(portletId);if(!portlet){return null;}link=document.createElement('a');link.href=href;link.textContent=text;if(tooltip){link.title=tooltip;}if(accesskey){link.accessKey=accesskey;}$portlet=$(portlet);$portlet.removeClass('emptyPortlet');if($portlet.hasClass('vectorTabs')){item=$('<li>').append($(' ').append(link)[0])[0];}else{item=$('<li>').append(link)[0];}if(id){item.id=id;}ul =portlet.querySelector('ul');if(!ul){ul=document.createElement('ul');portletDiv=portlet.querySelector('div');if(portletDiv){portletDiv.appendChild(ul);}else{portlet.appendChild(ul);}}if(nextnode&&(typeof nextnode==='string'||nextnode.nodeType||nextnode.jquery)){nextnode=$(ul).find(nextnode);if(nextnode.length===1&&nextnode[0].parentNode===ul){nextnode.before(item);next=!0;}}if(!next){ul.appendChild(item);}if(accesskey){$(link).updateTooltipAccessKeys;}return item;},validateEmail:function(mailtxt){var rfc5322Atext,rfc1034LdhStr,html5EmailRegexp;if(mailtxt===''){return null;}rfc5322Atext='a-z0-9!#$%&\'*+\\-/=?^_`{|}~';rfc1034LdhStr='a-z0-9\\-';html5EmailRegexp=new RegExp('^'+'['+rfc5322Atext+'\\.]+'+'@'+'['+rfc1034LdhStr+']+'+'(?:\\.['+rfc1034LdhStr+']+)*'+'$','i');return(mailtxt.match(html5EmailRegexp)!==null);},isIPv4Address:function(address,allowBlock){var block,RE_IP_BYTE='(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|0?[0-9]?[0-9])',RE_IP_ADD='(?:'+RE_IP_BYTE+'\\.){3}'+RE_IP_BYTE;if(typeof address!=='string'){return false;}block=allowBlock?'(?:\\/(?:3[0-2]|[12]?\\d))?':;return(new RegExp('^'+RE_IP_ADD+block+'$').test(address));},isIPv6Address:function(address,allowBlock){var block,RE_IPV6_ADD;if(typeof address!=='string'){return false;}block=allowBlock?'(?:\\/(?:12[0-8]|1[01][0-9]|[1-9]?\\d))?':;RE_IPV6_ADD='(?:'+':(?::|(?::'+'[0-9A-Fa-f]{1,4}'+'){1,7})'+'|'+'[0-9A-Fa-f]{1,4}'+'(?::'+'[0-9A-Fa-f]{1,4}'+'){0,6}::'+'|'+'[0-9A-Fa-f]{1,4}'+'(?::'+'[0-9A-Fa-f]{1,4}'+'){7}'+')';if(new RegExp('^'+RE_IPV6_ADD+block+'$').test(address)){return true;}RE_IPV6_ADD='[0-9A-Fa-f]{1,4}'+'(?:::?'+'[0-9A-Fa-f]{1,4}'+'){1,6}';return(new RegExp('^'+RE_IPV6_ADD+block+'$').test(address)&&/::/.test(address)&&!/::.*::/.test(address));},isIPAddress:function(address,allowBlock){return util.isIPv4Address(address,allowBlock)||util.isIPv6Address(address,allowBlock);},escapeRegExp:function(str){return str.replace(/([\\{}|.?*+\-^$\[\]])/g,'\\$1');}};mw.RegExp={};mw.log.deprecate(mw.RegExp, 'escape',util.escapeRegExp,'Use mw.util.escapeRegExp instead.','mw.RegExp.escape');if(window.QUnit){util.setOptionsForTest=function(opts){var oldConfig=config;config=$.extend({},config,opts);return oldConfig;};}function init{util.$content=(function{var i,l,$node,selectors;selectors=['.mw-body-primary','.mw-body','#mw-content-text'];for(i=0,l=selectors.length;i<l;i++){$node=$(selectors[i]);if($node.length){return $node.first;}}return $('body');});}$(init);mw.util=util;module.exports=util;},"jquery.accessKeyLabel.js":function(require,module){var cachedAccessKeyModifiers,useTestPrefix=!1,labelable='button, input, textarea, keygen, meter, output, progress, select';function getAccessKeyModifiers(ua){var profile,accessKeyModifiers;if(!ua&&cachedAccessKeyModifiers){return cachedAccessKeyModifiers;}profile=$.client.profile(ua);switch(profile.name){case'chrome':case'opera':if(profile.name==='opera'&&profile.versionNumber<15){accessKeyModifiers=['shift','esc'];}else if(profile. platform==='mac'){accessKeyModifiers=['ctrl','option'];}else{accessKeyModifiers=['alt','shift'];}break;case'firefox':case'iceweasel':if(profile.versionBase<2){accessKeyModifiers=['alt'];}else{if(profile.platform==='mac'){if(profile.versionNumber<14){accessKeyModifiers=['ctrl'];}else{accessKeyModifiers=['ctrl','option'];}}else{accessKeyModifiers=['alt','shift'];}}break;case'safari':case'konqueror':if(profile.platform==='win'){accessKeyModifiers=['alt'];}else{if(profile.layoutVersion>526){accessKeyModifiers=['ctrl',profile.platform==='mac'?'option':'alt'];}else{accessKeyModifiers=['ctrl'];}}break;case'msie':case'edge':accessKeyModifiers=['alt'];break;default:accessKeyModifiers=profile.platform==='mac'?['ctrl']:['alt'];break;}if(!ua){cachedAccessKeyModifiers=accessKeyModifiers;}return accessKeyModifiers;}function getAccessKeyLabel(element){if(!element.accessKey){return'';}if(!useTestPrefix&&element.accessKeyLabel){return element.accessKeyLabel;}return(useTestPrefix?'test': getAccessKeyModifiers.join('-'))+'-'+element.accessKey;}function updateTooltipOnElement(element,titleElement){var oldTitle,parts,regexp,newTitle,accessKeyLabel,separatorMsg=mw.message('word-separator').plain;oldTitle=titleElement.title;if(!oldTitle){return;}parts=(separatorMsg+mw.message('brackets').plain).split('$1');regexp=new RegExp(parts.map(mw.util.escapeRegExp).join('.*?')+'$');newTitle=oldTitle.replace(regexp,'');accessKeyLabel=getAccessKeyLabel(element);if(accessKeyLabel){newTitle+=separatorMsg+mw.message('brackets',accessKeyLabel).plain;}if(oldTitle!==newTitle){titleElement.title=newTitle;}}function updateTooltip(element){var id,$element,$label,$labelParent;updateTooltipOnElement(element,element);$element=$(element);if($element.is(labelable)){id=element.id.replace(/"/g,'\\"');if(id){$label=$('label[for="'+id+'"]');if($label.length===1){updateTooltipOnElement(element,$label[0]);}}$labelParent=$element.parents('label');if($labelParent.length===1){updateTooltipOnElement( element,$labelParent[0]);}}}$.fn.updateTooltipAccessKeys=function{return this.each(function{updateTooltip(this);});};$.fn.updateTooltipAccessKeys.getAccessKeyModifiers=getAccessKeyModifiers;$.fn.updateTooltipAccessKeys.getAccessKeyLabel=getAccessKeyLabel;$.fn.updateTooltipAccessKeys.getAccessKeyPrefix=function(ua){return getAccessKeyModifiers(ua).join('-')+'-';};$.fn.updateTooltipAccessKeys.setTestMode=function(mode){useTestPrefix=mode;};},"config.json":{"FragmentMode":["legacy","html5"],"LoadScript":"/w/load.php"}}},{},{"brackets":"[$1]","word-separator":" "});mw.loader.implement("mediawiki.ForeignApi.core@aehp7",function($,jQuery,require,module){(function{function CoreForeignApi(url,options){if(!url||$.isPlainObject(url)){throw new Error('mw.ForeignApi requires a `url` parameter');}this.apiUrl=String(url);this.anonymous=options&&options.anonymous;options=$.extend(true,{ajax:{url:this.apiUrl,xhrFields:{withCredentials:!this.anonymous}},parameters:{origin:this.getOrigin}},options);CoreForeignApi.parent.call(this,options);}OO.inheritClass(CoreForeignApi,mw.Api);CoreForeignApi.prototype.getOrigin=function{var origin,apiUri,apiOrigin;if(this.anonymous){return'*';}origin=location.protocol+'//'+location.hostname;if(location.port){origin+=':'+location.port;}apiUri=new mw.Uri(this.apiUrl);apiOrigin=apiUri.protocol+'://'+apiUri.getAuthority;if(origin===apiOrigin){return undefined;}return origin;};CoreForeignApi.prototype.ajax=function(parameters,ajaxOptions){var url,origin,newAjaxOptions;if(ajaxOptions.type==='POST'){url=(ajaxOptions&& ajaxOptions.url)||this.defaults.ajax.url;origin=(parameters&&parameters.origin)||this.defaults.parameters.origin;if(origin!==undefined){url+=(url.indexOf('?')!==-1?'&':'?')+'origin='+encodeURIComponent(origin).replace(/\./g,'%2E');}newAjaxOptions=$.extend({},ajaxOptions,{url:url});}else{newAjaxOptions=ajaxOptions;}return CoreForeignApi.parent.prototype.ajax.call(this,parameters,newAjaxOptions);};mw.ForeignApi=CoreForeignApi;});});mw.loader.implement("mediawiki.editfont.styles@r52rc",null,{"css":[".mw-editfont-monospace{font-family:monospace,monospace}.mw-editfont-sans-serif{font-family:sans-serif}.mw-editfont-serif{font-family:serif} .mw-editfont-monospace,.mw-editfont-sans-serif,.mw-editfont-serif{font-size:13px; }.mw-editfont-monospace.oo-ui-textInputWidget,.mw-editfont-sans-serif.oo-ui-textInputWidget,.mw-editfont-serif.oo-ui-textInputWidget{font-size:inherit}.mw-editfont-monospace \u003E .oo-ui-inputWidget-input,.mw-editfont-sans-serif \u003E .oo-ui-inputWidget-input,.mw-editfont-serif \u003E .oo-ui-inputWidget-input{font-size:13px}"]});mw.loader.implement("mediawiki.libs.pluralruleparser@zqfng",function($,jQuery,require,module){(function(root,factory){if(typeof define==='function'&&define.amd){define(factory);}else if(typeof exports==='object'){module.exports=factory;}else{root.pluralRuleParser=factory;}}(this,function{function pluralRuleParser(rule,number){'use strict';rule=rule.split('@')[0].replace(/^\s*/,).replace(/\s*$/,);if(!rule.length){return true;}var pos=0,operand,expression,relation,result,whitespace=makeRegexParser(/^\s+/),value=makeRegexParser(/^\d+/),_n_=makeStringParser('n'),_i_=makeStringParser('i'),_f_=makeStringParser('f'),_t_=makeStringParser('t'),_v_=makeStringParser('v'),_w_=makeStringParser('w'),_is_=makeStringParser('is'),_isnot_=makeStringParser('is not'),_isnot_sign_=makeStringParser('!='),_equal_=makeStringParser('='),_mod_=makeStringParser('mod'),_percent_=makeStringParser('%'),_not_=makeStringParser('not'),_in_=makeStringParser('in'),_within_=makeStringParser('within'),_range_= makeStringParser('..'),_comma_=makeStringParser(','),_or_=makeStringParser('or'),_and_=makeStringParser('and');function debug{}debug('pluralRuleParser',rule,number);function choice(parserSyntax){return function{var i,result;for(i=0;i<parserSyntax.length;i++){result=parserSyntax[i];if(result!==null){return result;}}return null;};}function sequence(parserSyntax){var i,parserRes,originalPos=pos,result=[];for(i=0;i<parserSyntax.length;i++){parserRes=parserSyntax[i];if(parserRes===null){pos=originalPos;return null;}result.push(parserRes);}return result;}function nOrMore(n,p){return function{var originalPos=pos,result=[],parsed=p;while(parsed!==null){result.push(parsed);parsed=p;}if(result.length<n){pos=originalPos;return null;}return result;};}function makeStringParser(s){var len=s.length;return function{var result=null;if(rule.substr(pos,len)===s){result=s;pos+=len;}return result;};}function makeRegexParser(regex){return function{var matches=rule.substr(pos).match(regex); if(matches===null){return null;}pos+=matches[0].length;return matches[0];};}function i{var result=_i_;if(result===null){debug(' -- failed i',parseInt(number,10));return result;}result=parseInt(number,10);debug(' -- passed i ',result);return result;}function n{var result=_n_;if(result===null){debug(' -- failed n ',number);return result;}result=parseFloat(number,10);debug(' -- passed n ',result);return result;}function f{var result=_f_;if(result===null){debug(' -- failed f ',number);return result;}result=(number+'.').split('.')[1]||0;debug(' -- passed f ',result);return result;}function t{var result=_t_;if(result===null){debug(' -- failed t ',number);return result;}result=(number+'.').split('.')[1].replace(/0$/,'')||0;debug(' -- passed t ',result);return result;}function v{var result=_v_;if(result===null){debug(' -- failed v ',number);return result;}result=(number+'.').split('.')[1].length||0;debug(' -- passed v ',result);return result;}function w{var result=_w_; if(result===null){debug(' -- failed w ',number);return result;}result=(number+'.').split('.')[1].replace(/0$/,'').length||0;debug(' -- passed w ',result);return result;}operand=choice([n,i,f,t,v,w]);expression=choice([mod,operand]);function mod{var result=sequence([operand,whitespace,choice([_mod_,_percent_]),whitespace,value]);if(result===null){debug(' -- failed mod');return null;}debug(' -- passed ',parseInt(result[0],10),result[2],parseInt(result[4],10));return parseFloat(result[0])%parseInt(result[4],10);}function not{var result=sequence([whitespace,_not_]);if(result===null){debug(' -- failed not');return null;}return result[1];}function is{var result=sequence([expression,whitespace,choice([_is_]),whitespace,value]);if(result!==null){debug(' -- passed is :',result[0],' == ',parseInt(result[4],10));return result[0]===parseInt(result[4],10);}debug(' -- failed is');return null;}function isnot{var result=sequence([expression,whitespace,choice([_isnot_,_isnot_sign_]),whitespace, value]);if(result!==null){debug(' -- passed isnot: ',result[0],' != ',parseInt(result[4],10));return result[0]!==parseInt(result[4],10);}debug(' -- failed isnot');return null;}function not_in{var i,range_list,result=sequence([expression,whitespace,_isnot_sign_,whitespace,rangeList]);if(result!==null){debug(' -- passed not_in: ',result[0],' != ',result[4]);range_list=result[4];for(i=0;i<range_list.length;i++){if(parseInt(range_list[i],10)===parseInt(result[0],10)){return false;}}return true;}debug(' -- failed not_in');return null;}function rangeList{var result=sequence([choice([range,value]),nOrMore(0,rangeTail)]),resultList=[];if(result!==null){resultList=resultList.concat(result[0]);if(result[1][0]){resultList=resultList.concat(result[1][0]);}return resultList;}debug(' -- failed rangeList');return null;}function rangeTail{var result=sequence([_comma_,rangeList]);if(result!==null){return result[1];}debug(' -- failed rangeTail');return null;}function range{var i,array,left,right ,result=sequence([value,_range_,value]);if(result!==null){debug(' -- passed range');array=[];left=parseInt(result[0],10);right=parseInt(result[2],10);for(i=left;i<=right;i++){array.push(i);}return array;}debug(' -- failed range');return null;}function _in{var result,range_list,i;result=sequence([expression,nOrMore(0,not),whitespace,choice([_in_,_equal_]),whitespace,rangeList]);if(result!==null){debug(' -- passed _in:',result);range_list=result[5];for(i=0;i<range_list.length;i++){if(parseInt(range_list[i],10)===parseFloat(result[0])){return(result[1][0]!=='not');}}return(result[1][0]==='not');}debug(' -- failed _in ');return null;}function within{var range_list,result;result=sequence([expression,nOrMore(0,not),whitespace,_within_,whitespace,rangeList]);if(result!==null){debug(' -- passed within');range_list=result[5];if((result[0]>=parseInt(range_list[0],10))&&(result[0]<parseInt(range_list[range_list.length-1],10))){return(result[1][0]!=='not');}return(result[1][0]==='not');}debug( ' -- failed within ');return null;}relation=choice([is,not_in,isnot,_in,within]);function and{var i,result=sequence([relation,nOrMore(0,andTail)]);if(result){if(!result[0]){return false;}for(i=0;i<result[1].length;i++){if(!result[1][i]){return false;}}return true;}debug(' -- failed and');return null;}function andTail{var result=sequence([whitespace,_and_,whitespace,relation]);if(result!==null){debug(' -- passed andTail',result);return result[3];}debug(' -- failed andTail');return null;}function orTail{var result=sequence([whitespace,_or_,whitespace,and]);if(result!==null){debug(' -- passed orTail: ',result[3]);return result[3];}debug(' -- failed orTail');return null;}function condition{var i,result=sequence([and,nOrMore(0,orTail)]);if(result){for(i=0;i<result[1].length;i++){if(result[1][i]){return true;}}return result[0];}return false;}result=condition;if(result===null){throw new Error('Parse error at position '+pos.toString+' for rule: '+rule);}if(pos!==rule.length){debug( 'Warning: Rule not parsed completely. Parser stopped at ',rule.substr(0,pos),' for rule: ',rule);}return result;}return pluralRuleParser;}));module.exports=window.pluralRuleParser;mw.libs.pluralRuleParser=window.pluralRuleParser;});mw.loader.implement("mediawiki.page.ready@8g6ej",{"main":"ready.js","files":{"ready.js":function(require,module){var checkboxShift=require('./checkboxShift.js');mw.hook('wikipage.content').add(function($content){var $sortable,$collapsible;$collapsible=$content.find('.mw-collapsible');if($collapsible.length){mw.loader.using('jquery.makeCollapsible',function{$collapsible.makeCollapsible;});}$sortable=$content.find('table.sortable');if($sortable.length){mw.loader.using('jquery.tablesorter',function{$sortable.tablesorter;});}checkboxShift($content.find('input[type="checkbox"]:not(.noshiftselect)'));});$(function{var $nodes;$('[accesskey]').updateTooltipAccessKeys;$nodes=$('.catlinks[data-mw="interface"]');if($nodes.length){mw.hook('wikipage.categories').fire($nodes);}$('#t-print a').on('click',function(e){window.print;e.preventDefault;});$('#pt-logout a').on('click',function(e){var api=new mw.Api,url=this.href;mw.notify(mw.message('logging-out-notify'),{tag:'logout', autoHide:!1});api.postWithToken('csrf',{action:'logout'}).then(function{location.href=url;},function(err){mw.notify(mw.message('logout-failed',err),{type:'error',tag:'logout',autoHide:!1});});e.preventDefault;});});},"checkboxShift.js":function(require,module){module.exports=function($box){var prev;$box.on('click',function(e){if(prev&&e.shiftKey){$box.slice(Math.min($box.index(prev),$box.index(e.target)),Math.max($box.index(prev),$box.index(e.target))+1).filter(function{return!this.disabled;}).prop('checked',e.target.checked);}prev=e.target;});};}}},{},{"logging-out-notify":"You are being logged out, please wait.","logout-failed":"Cannot log out now: $1"});mw.loader.implement("mediawiki.page.startup@aw03i",function($,jQuery,require,module){(function{if(mw.config.get('wgBreakFrames')){if(window.top!==window.self){window.top.location.href=location.href;}}$(function{var $diff;mw.hook('wikipage.content').fire($('#mw-content-text'));$diff=$('table.diff[data-mw="interface"]');if($diff.length){mw.hook('wikipage.diff').fire($diff.eq(0));}});});});mw.loader.implement("mediawiki.page.watch.ajax@1m0yf",function($,jQuery,require,module){(function{var watch,title=mw.config.get('wgRelevantPageName');function updateWatchLink($link,action,state){var msgKey,$li,otherAction;if(!$link.length){return;}if(action!=='watch'&&action!=='unwatch'){throw new Error('Invalid action');}msgKey=state==='loading'?action+'ing':action;otherAction=action==='watch'?'unwatch':'watch';$li=$link.closest('li');if(state===undefined){$li.trigger('watchpage.mw',otherAction);}$link.text(mw.msg(msgKey)).attr('title',mw.msg('tooltip-ca-'+action)).updateTooltipAccessKeys.attr('href',mw.util.getUrl(title,{action:action}));if($li.prop('id')==='ca-'+otherAction){$li.prop('id','ca-'+action);}if(state==='loading'){$link.addClass('loading');}else{$link.removeClass('loading');}}function mwUriGetAction(url){var action,actionPaths,key,m,parts;action=mw.util.getParamValue('action',url);if(action!==null){return action;}actionPaths=mw.config.get('wgActionPaths');for(key in actionPaths){parts=actionPaths[key].split('$1');parts=parts.map(mw.util.escapeRegExp);m=new RegExp(parts.join('(.+)')).exec(url);if(m&&m[1]){return key;}}return'view';}watch={updateWatchLink:updateWatchLink};module.exports=watch;$(function{var $links=$('.mw-watchlink a[data-mw="interface"], a.mw-watchlink[data-mw="interface"]');if(!$links.length){$links=$('.mw-watchlink a, a.mw-watchlink');$links=$links.filter(':not( #bodyContent *, #content * )');}$links.on('click',function(e){var mwTitle,action,api,$link;mwTitle=mw.Title.newFromText(title);action=mwUriGetAction(this.href);if(!mwTitle||(action!=='watch'&&action!=='unwatch')){return true;}e.preventDefault;e.stopPropagation;$link=$(this);if($link.hasClass('loading')){return;}updateWatchLink($link,action,'loading');mw.loader.load('mediawiki.notification');api=new mw.Api;api[action](title).done(function(watchResponse){var message,otherAction=action==='watch'?'unwatch':'watch';if(mwTitle.isTalkPage){message=action==='watch'? 'addedwatchtext-talk':'removedwatchtext-talk';}else{message=action==='watch'?'addedwatchtext':'removedwatchtext';}mw.notify(mw.message(message,mwTitle.getPrefixedText).parseDom,{tag:'watch-self'});updateWatchLink($link,otherAction);$('#wpWatchthis').prop('checked',watchResponse.watched===true);}).fail(function{var msg,link;updateWatchLink($link,action);link=mw.html.element('a',{href:mw.util.getUrl(title),title:mwTitle.getPrefixedText},mwTitle.getPrefixedText);msg=mw.message('watcherrortext',link);mw.notify(msg,{tag:'watch-self',type:'error'});});});});});},{},{"addedwatchtext":"\"$1\" and its discussion page have been added to your watchlist.","addedwatchtext-talk":"\"$1\" and its associated page have been added to your watchlist.","removedwatchtext":"\"$1\" and its discussion page have been removed from your watchlist.","removedwatchtext-talk": "\"$1\" and its associated page have been removed from your watchlist.","tooltip-ca-unwatch":"Remove this page from your watchlist","tooltip-ca-watch":"Add this page to your watchlist","unwatch":"Unwatch","unwatching":"Unwatching...","watch":"Watch","watcherrortext":"An error occurred while changing your watchlist settings for \"$1\".","watching":"Watching..."});mw.loader.implement("mediawiki.template.regexp@1h7vj",function($,jQuery,require,module){mw.template.registerCompiler('regexp',{compile:function(src){return{render:function{return new RegExp(src.replace(/\s+/g,).replace(/\?<\w+?>/g,));}};}});});mw.loader.implement("skins.timeless.js@xjojp",function($,jQuery,require,module){$(function{var $dropdowns=$('#personal, #p-variants-desktop, .sidebar-chunk');$('#searchInput').attr('tabindex',$(document).lastTabIndex+1);function closeOpen{$dropdowns.removeClass('dropdown-active');}$dropdowns.on('click',function(e){if($(this).hasClass('dropdown-active')){if($(e.target).closest($('h2, #p-variants-desktop h3')).length>0){closeOpen;}}else{closeOpen;e.stopPropagation;$(this).addClass('dropdown-active');}});$(document).on('click',function(e){if($(e.target).closest($dropdowns).length>0){}else{closeOpen;}});});});mw.loader.implement("skins.timeless.mobile@b70vy",function($,jQuery,require,module){$(function{var toggleTime=200;$('#user-tools h2').on('click',function{if($(window).width<851){$('#personal-inner, #menus-cover').fadeToggle(toggleTime);}});$('#site-navigation h2').on('click',function{if($(window).width<851){$('#site-navigation .sidebar-inner, #menus-cover').fadeToggle(toggleTime);}});$('#site-tools h2').on('click',function{if($(window).width<851){$('#site-tools .sidebar-inner, #menus-cover').fadeToggle(toggleTime);}});$('#ca-more').on('click',function{$('#page-tools .sidebar-inner').css('top',$('#ca-more').offset.top+25);if($(window).width<851){$('#page-tools .sidebar-inner, #menus-cover').fadeToggle(toggleTime);}});$('#ca-languages').on('click',function{$('#other-languages .sidebar-inner').css('top',$('#ca-languages').offset.top+25);if($(window).width<851){$('#other-languages .sidebar-inner, #menus-cover').fadeToggle(toggleTime);}});$(document).on( 'click touchstart',function(e){if($(e.target).closest('#menus-cover').length>0){$('#personal-inner').fadeOut(toggleTime);$('.sidebar-inner').fadeOut(toggleTime);$('#menus-cover').fadeOut(toggleTime);}});});});mw.loader.implement("user.defaults@g4kve",function($,jQuery,require,module){mw.user.options.set({"monobook-responsive":!0,"echo-email-frequency":0,"eventlogging-display-web":0,"echo-subscriptions-web-login-fail":!0,"echo-subscriptions-email-login-fail":!0,"echo-subscriptions-web-login-success":!1,"echo-subscriptions-email-login-success":!0,"managewikisidebar":0,"echo-subscriptions-web-oauth-owner":!0,"echo-subscriptions-email-oauth-owner":!0,"echo-subscriptions-web-oauth-admin":!0,"echo-subscriptions-email-oauth-admin":!0,"usebetatoolbar":1,"globaluserpage":!0,"visualeditor-enable":1,"visualeditor-betatempdisable":0,"visualeditor-newwikitext":0,"visualeditor-visualdiffpage":0,"visualeditor-enable-experimental":0,"visualeditor-enable-language":0,"visualeditor-hidebetawelcome":0,"visualeditor-autodisable":0,"visualeditor-tabs":"remember-last","visualeditor-editor":"visualeditor","visualeditor-hidetabdialog":0,"ccmeonemails":0,"cols":80,"date":"default","diffonly":0, "disablemail":0,"editfont":"monospace","editondblclick":0,"editsectiononrightclick":0,"email-allow-new-users":1,"enotifminoredits":0,"enotifrevealaddr":0,"enotifusertalkpages":1,"enotifwatchlistpages":0,"extendwatchlist":1,"fancysig":0,"forceeditsummary":0,"gender":"unknown","hideminor":0,"hidepatrolled":0,"hidecategorization":1,"imagesize":2,"minordefault":0,"newpageshidepatrolled":0,"nickname":"","norollbackdiff":0,"numberheadings":0,"previewonfirst":0,"previewontop":1,"rcdays":7,"rcenhancedfilters-disable":0,"rclimit":50,"rows":25,"showhiddencats":0,"shownumberswatching":1,"showrollbackconfirmation":0,"skin":"vector","stubthreshold":0,"thumbsize":5,"underline":2,"uselivepreview":0,"usenewrc":1,"watchcreations":1,"watchdefault":1,"watchdeletion":0,"watchuploads":1,"watchlistdays":7,"watchlisthideanons":0,"watchlisthidebots":0,"watchlisthideliu":0,"watchlisthideminor":0,"watchlisthideown":0,"watchlisthidepatrolled":0,"watchlisthidecategorization":1,"watchlistreloadautomatically":0, "watchlistunwatchlinks":0,"watchmoves":0,"watchrollback":0,"wlenhancedfilters-disable":0,"wllimit":250,"useeditwarning":1,"prefershttps":1,"requireemail":0,"usebetatoolbar-cgd":1,"math":"mathml","timecorrection":"System|0","language":"en","variant":"en","variant-crh":"crh","variant-gan":"gan","variant-iu":"iu","variant-kk":"kk","variant-ku":"ku","variant-shi":"shi","variant-sr":"sr","variant-tg":"tg","variant-uz":"uz","variant-zh":"zh","searchNs4":!0,"searchNs0":!0,"echo-email-format":"plain-text","echo-subscriptions-email-system":!0,"echo-subscriptions-web-system":!0,"echo-subscriptions-email-system-noemail":!1,"echo-subscriptions-web-system-noemail":!0,"echo-subscriptions-email-user-rights":!0,"echo-subscriptions-web-user-rights":!0,"echo-subscriptions-email-other":!1,"echo-subscriptions-web-other":!0,"echo-subscriptions-email-edit-user-talk":!1,"echo-subscriptions-web-edit-user-talk":!0,"echo-subscriptions-email-reverted":!1, "echo-subscriptions-web-reverted":!0,"echo-subscriptions-email-article-linked":!1,"echo-subscriptions-web-article-linked":!1,"echo-subscriptions-email-mention":!1,"echo-subscriptions-web-mention":!0,"echo-subscriptions-email-mention-failure":!1,"echo-subscriptions-web-mention-failure":!1,"echo-subscriptions-email-mention-success":!1,"echo-subscriptions-web-mention-success":!1,"echo-subscriptions-email-emailuser":!1,"echo-subscriptions-web-emailuser":!0,"echo-subscriptions-email-thank-you-edit":!1,"echo-subscriptions-web-thank-you-edit":!0,"echo-subscriptions-email-wiki-creation":!1,"echo-subscriptions-web-wiki-creation":!0,"echo-subscriptions-email-wiki-rename":!1,"echo-subscriptions-web-wiki-rename":!0,"echo-subscriptions-email-request-declined":!1,"echo-subscriptions-web-request-declined":!0,"mf_amc_optin":"0"});});
 * };OO.compare=function(a,b,asymmetrical){var aValue,bValue,aType,bType,k;if(a===b){return true;}a=a||{};b=b||{};if(typeof a.nodeType==='number'&&typeof a.isEqualNode==='function'){return a.isEqualNode(b);}for(k in a){if(!hasOwn.call(a,k)||a[k]===undefined||a[k]===b[k]){continue;}aValue=a[k];bValue=b[k];aType=typeof aValue;bType=typeof bValue;if(aType!==bType||((aType==='string'||aType==='number'||aType==='boolean')&&aValue!==bValue)||(aValue===Object(aValue)&&!OO.compare(aValue,bValue,true))){return false;}}return asymmetrical?true:OO.compare(b,a,true);};OO.copy=function(source,leafCallback,nodeCallback){var key,destination;if(nodeCallback){destination=nodeCallback(source);if(destination!==undefined){return destination;}}if(Array.isArray(source)){destination=new Array(source.length);}else if(source&&typeof source.clone==='function'){return leafCallback?leafCallback(source.clone):source.clone;}else if(source&&typeof source.cloneNode==='function'){return leafCallback?leafCallback(
 * $.highlightText.innerHighlight(node,new RegExp('(^)'+mw.util.escapeRegExp(prefix)+comboMarks+'*','i'));},innerHighlight:function(node,pat){var i,match,pos,spannode,middlebit,middleclone;if(node.nodeType===Node.TEXT_NODE){match=node.data.match(pat);if(match){pos=match.index+match[1].length;spannode=document.createElement('span');spannode.className='highlight';middlebit=node.splitText(pos);middlebit.splitText(match[0].length-match[1].length);middleclone=middlebit.cloneNode(true);spannode.appendChild(middleclone);middlebit.parentNode.replaceChild(spannode,middlebit);}}else if(node.nodeType===Node.ELEMENT_NODE&&node.childNodes&&!/(script|style)/i.test(node.tagName)&&!(node.tagName.toLowerCase==='span'&&node.className.match(/\bhighlight/))){for(i=0;i<node.childNodes.length;++i){$.highlightText.innerHighlight(node.childNodes[i],pat);}}}};$.fn.highlightText=function(matchString,options){options=options||{};options.method=options.method||'splitAndHighlight';return this.each(function{var
 * }if(!data.filename&&!data.stash){throw new Error('Filename not included in file data.');}request=this[this.needToken?'postWithEditToken':'post'](data,{contentType:'multipart/form-data',timeout:0,xhr:function{var xhr=$.ajaxSettings.xhr;if(xhr.upload){xhr.upload.addEventListener('progress',function(ev){if(ev.lengthComputable){deferred.notify(ev.loaded/ev.total);}});}return xhr;}}).done(function(result){deferred.notify(1);if(result.upload&&result.upload.warnings){deferred.reject(getFirstKey(result.upload.warnings),result);}else{deferred.resolve(result);}}).fail(function(errorCode,result){deferred.notify(1);deferred.reject(errorCode,result);});return deferred.promise({abort:request.abort});},chunkedUpload:function(file,data,chunkSize,chunkRetries){var start,end,promise,next,active,deferred=$.Deferred;chunkSize=chunkSize===undefined?5*1024*1024:chunkSize;chunkRetries=chunkRetries===undefined?1:chunkRetries;if(!data.filename){throw new Error('Filename not included in file data.');}
 * parsedHtmlContents=nOrMore(0,expression);startCloseTagPos=pos;parsedCloseTagResult=sequence([openHtmlEndTag,asciiAlphabetLiteral,closeHtmlTag]);if(parsedCloseTagResult===null){return['CONCAT',input.slice(startOpenTagPos,endOpenTagPos)].concat(parsedHtmlContents);}endCloseTagPos=pos;endTagName=parsedCloseTagResult[1];wrappedAttributes=parsedOpenTagResult[2];attributes=wrappedAttributes.slice(1);if(isAllowedHtml(startTagName,endTagName,attributes)){result=['HTMLELEMENT',startTagName,wrappedAttributes].concat(parsedHtmlContents);}else{result=['CONCAT',input.slice(startOpenTagPos,endOpenTagPos)].concat(parsedHtmlContents,input.slice(startCloseTagPos,endCloseTagPos));}return result;}function nowiki{var parsedResult,plainText,result=null;parsedResult=sequence([makeStringParser(' '),makeRegexParser(/^.*?(?=<\/nowiki>)/),makeStringParser(' ')]);if(parsedResult!==null){plainText=parsedResult[1];result=['CONCAT'].concat(plainText);}return result;}templateName=transform(

function(e){e.preventDefault;darkMode=!darkMode;$('html').toggleClass('darkmode',darkMode);$(e.target).text(mw.msg(darkMode?'darkmode-default-link':'darkmode-link'));}