var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments);};var InvestingChannel=__assign(function(e){var t={};function i(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=e,i.c=t,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=5)}([function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdBlockerStatus=t.APIStatus=t.ErrorType=t.USPStatus=t.PlacementConfig=t.TemplateConfig=t.RefreshType=t.DeviceType=t.DFPPlacementParams=t.DFPTemplateParams=t.TagType=t.ReferrerType=t.PlacementType=t.PlacementState=t.PageType=t.LoadType=t.InsertionType=t.FrequencyType=t.FrequencyCapUnit=t.DocumentType=t.CallbackType=t.Constant=t.Utility=void 0;var r=i(7);t.Utility=r.default;var n=i(9);t.Constant=n.default;var o=i(10);t.CallbackType=o.default;var a=i(11);t.DocumentType=a.default;var s=i(12);t.FrequencyCapUnit=s.default;var c=i(13);t.FrequencyType=c.default;var u=i(14);t.InsertionType=u.default;var d=i(15);t.LoadType=d.default;var l=i(16);t.PageType=l.default;var p=i(17);t.PlacementState=p.default;var m=i(18);t.PlacementType=m.default;var f=i(19);t.ReferrerType=f.default;var g=i(20);t.TagType=g.default;var h=i(21);t.DFPTemplateParams=h.default;var y=i(22);t.DFPPlacementParams=y.default;var b=i(23);t.DeviceType=b.default;var v=i(24);t.RefreshType=v.default;var S=i(25);t.TemplateConfig=S.default;var T=i(26);t.PlacementConfig=T.default;var E=i(2);t.USPStatus=E.default;var I=i(27);t.ErrorType=I.default;var A=i(28);t.APIStatus=A.default;var P=i(29);t.AdBlockerStatus=P.default},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Site=t.Template=t.Placement=t.Targeting=t.Tag=t.NativeLayout=t.Selector=t.Frequency=t.CustomVariable=t.Callback=void 0;var r=i(6);t.Callback=r.default;var n=i(30);t.CustomVariable=n.default;var o=i(31);t.Frequency=o.default;var a=i(32);t.Selector=a.default;var s=i(33);t.Tag=s.default;var c=i(34);t.Targeting=c.default;var u=i(3);t.Placement=u.default;var d=i(42);t.Template=d.default;var l=i(43);t.Site=l.default;var p=i(44);t.NativeLayout=p.default},function(e,t,i){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.USPStatus=void 0,function(e){e.APPLICABLE="APPLICABLE",e.NOT_APPLICABLE="NOT_APPLICABLE",e.INPROGRESS="INPROGRESS"}(r=t.USPStatus||(t.USPStatus={})),t.default=r},function(e,t,i){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,i=1,r=arguments.length;i=1||"fluid"==r||"oop"==r))return!1}return!0},e.prototype.createDAT=function(e){var t=e.getTargetName(),i=e.getSiteDFPKeyName()+"/"+t;this.mSelector.getIdentifier();for(var r=[],n=function(e){if(e.indexOf("x")>=1){var t=e.split("x");if(t.length>2)return"continue";var i=!1;if(t.forEach(function(e){Number(e)||(i=!0)}),i)return"continue";r.push(t.map(function(e){return parseInt(e,10)}))}else"fluid"==e&&r.push(e)},o=0,a=e.getAdSize().replace(/\s/g,"").toLowerCase().split(",");o-1)switch(a.replace("%%SYSTEM:","").replace("%%","")){case"TARGET":e=e.replace(a,t.getTargetName());break;case"TARGET_KVAL":e=e.replace(a,t.getTargetKval());break;case"PAGE_ID":e=e.replace(a,""+this.mTemplate.getPageId());break;case"VIEW_COUNT":e=this.mTemplate.getUSPStatus()==c.USPStatus.NOT_APPLICABLE?e.replace(a,r.getFromCookie(c.Constant.VIEWCOUNTER_COOKIE_NAME_PREFIX+r.getTopWindowDomain())):e.replace(a,"-1");break;case"REFERRER_TYPE":e=e.replace(a,this.mTemplate.getReferrerType());break;case"PAGE_TYPE":e=e.replace(a,this.mTemplate.getPageType());break;case"DOCUMENT_TYPE":e=e.replace(a,this.mTemplate.getDocumentType());break;case"EXELATE_ID":e=e.replace(a,this.mTemplate.getExelateId());break;case"PAGE_URL":e=e.replace(a,c.Utility.window.top.location.href);break;case"AUTO_KVAL":e=e.replace(a,JSON.stringify(this.mTemplate.getAutoKval()));break;case"PIXEL_SEGMENT":e=e.replace(a,JSON.stringify(this.mTemplate.getPixelSegment()));break;case"USER_ID":e=e.replace(a,this.mTemplate.getUserId());break;case"DNT":e=e.replace(a,String(!(this.mTemplate.getUSPStatus()==c.USPStatus.NOT_APPLICABLE)));break;case"COOKIE_TYPE":e=e.replace(a,this.mTemplate.getUserCookieType())}else if(a.indexOf("CUSTOM")>-1){var s=a.replace("%%CUSTOM:","").replace("%%",""),u="";n[s]&&void 0!=n[s].getValue()?u=n[s].getValue():c.Utility.ICJQuery(document).trigger("IC_JSErrorEvent",["Placement with id "+this.mId+": Either the custom variable with the name "+s+" does not exist or can't find the value of variable in a given source."]),e=e.replace(a,u)}}return e},e.prototype.getTagToDrop=function(){Math.floor(Math.random()*this.mTagsTotalWeight);for(var e=0;e.ic_1x1_css_class{width: 1px;height: 1px;}")),t="3",e="
"):(t="4",e="
")}catch(e){c.Utility.getInstance().ic_ga_event("placement.prepareCustomDiv",c.Utility.getInstance().prepareGALabel(u.Template.getAPIKey(),this.mTemplate.getPageId(),t+") "+e.message+" PlacementId: "+this.mId))}return e},e.prototype.dropCustomDiv=function(e){var t="0";try{var i=this.mTemplate.getElementForThePlacement(this.mRandomNumber),r=void 0;if(t="1",!i)return;switch(r=c.Utility.ICJQuery(i),t="2",this.mSelector.getInsertionType()){case c.InsertionType.AFTER:r.after(e);break;case c.InsertionType.BEFORE:r.before(e);break;case c.InsertionType.FIRST_CHILD:r.prepend(e);break;case c.InsertionType.LAST_CHILD:r.append(e);break;case c.InsertionType.REPEAT:r.prepend(e)}}catch(e){c.Utility.getInstance().ic_ga_event("placement.dropCustomDiv",c.Utility.getInstance().prepareGALabel(u.Template.getAPIKey(),this.mTemplate.getPageId(),t+") "+e.message+" $# "+this.mId+" $# "+this.mSelector.getInsertionType()))}},e.prototype.setTargetToDFPParams=function(e){if(this.mType!=c.PlacementType.PIXEL&&(e.getType()==c.TagType.DISPLAY||e.getType()==c.TagType.NATIVE)){this.mDFPParams.setTarget(e.getTargetName());var t=[];if(null==e.getTargetKval()){var i=this.mTemplate.getTargetData(e.getTargetName());null!=i&&(t=i.kval)}else t=e.getTargetKval();if("kval"in this.mPublisherKval){var r=this.mPublisherKval.kval;Array.isArray(r)||(r=[r]),t=t.concat(r)}if("kval"in this.mTemplate.getPublisherKval()){r=this.mTemplate.getPublisherKval().kval;Array.isArray(r)||(r=[r]),t=t.concat(r)}t=c.Utility.getInstance().removeDuplicateFromArray(t),this.mDFPParams.setTargetKval(t)}},e.prototype.setAdRefreshParameters=function(){void 0==this.mDFPParams.getAdRefreshCount()||isNaN(this.mDFPParams.getAdRefreshCount())?this.mDFPParams.setAdRefreshCount(0):this.mDFPParams.setAdRefreshCount(this.mDFPParams.getAdRefreshCount()+1),this.mDFPParams.setAdRefreshType(this.mDATRefreshType)},e.prototype.updateAdPositionParametersToDFPParams=function(e){if(this.mType!=c.PlacementType.PIXEL&&(e.getType()==c.TagType.DISPLAY||e.getType()==c.TagType.NATIVE)){var t=this.prepareAdPositionsParams();null!=t.browserSize&&this.mTemplate.getDocumentType()==c.DocumentType.PAGE&&this.mDFPParams.setBrowserSize(t.browserSize),null!=t.absolutePosition&&this.mDFPParams.setAbsolutePosition(t.absolutePosition),null!=t.relativePosition&&this.mDFPParams.setRelativePosition(t.relativePosition)}},e.prototype.updateViewabilityAttributesToDFPParams=function(e){if(this.mType!=c.PlacementType.PIXEL&&(e.getType()==c.TagType.DISPLAY||e.getType()==c.TagType.NATIVE))if(this.mTemplate.getDocumentType()==c.DocumentType.FRIENDLYFRAME&&parent==top||this.mTemplate.getDocumentType()==c.DocumentType.PAGE){var t=this.calculateViewabilityAttributes();this.mDFPParams.setFoldPosition(""+t.foldPosition),this.mDFPParams.setVisiblePercentage(""+t.visiblePercentage)}else this.mDFPParams.setFoldPosition("-1"),this.mDFPParams.setVisiblePercentage("-1")},e.prototype.updateAdxParametersToDFPParams=function(){var e="e"+Math.floor(10*Math.random());this.mDFPParams.setAdxRandomNumber(e),this.mDFPParams.setAdxHour((new Date).getUTCHours().toString())},e.prototype.updateAdomikParametersToDFPParams=function(e){if(this.mType!=c.PlacementType.PIXEL&&(e.getType()==c.TagType.DISPLAY||e.getType()==c.TagType.NATIVE)&&this.mTemplate.isAdomikEnable()){this.mDFPParams.setAdomikRandomNumber(c.Utility.getInstance().adomikRandomAdGroup()),this.mDFPParams.setAdomikHour((new Date).getUTCHours().toString());var t=Math.random(),i=t<.1?t<.09?"e"+Math.floor(200*t):"b":"o";this.mDFPParams.setAdxRandomNumber(i),this.mDFPParams.setAdxHour((new Date).getUTCHours().toString())}},e.prototype.getLogParams=function(e,t){var i=e.getId(),n=this.mId;"ADVANCE"==this.mPublisherType&&(i=null,n=null);var o={publisherType:this.mPublisherType,pageId:""+this.mTemplate.getPageId(),rnd:""+this.mRandomNumber,apiKey:u.Template.getAPIKey(),placementId:""+n,placementType:this.mType,tagId:""+i,tagType:e.getType(),logType:t,documentType:this.mTemplate.getDocumentType(),device:this.mTemplate.getDeviceType(),sitename:"",adsize:"",dfpKval:encodeURIComponent("bs:"+c.Utility.getInstance().getBrowserSize()),atStatus:this.mTemplate.getAutoTargetStatus(),version:c.Constant.VERSION,uspstring:this.mTemplate.getUSPString(),refererUrl:encodeURIComponent(this.mTemplate.getReferer()),pageUrl:encodeURIComponent(this.mTemplate.getUrl()),renderType:""};if(this.mType==c.PlacementType.HTML&&(o.renderType=this.mSelector.getInsertionType(),e.getType()==c.TagType.DISPLAY||e.getType()==c.TagType.NATIVE)){this.updateViewabilityAttributesToDFPParams(e),this.updateAdPositionParametersToDFPParams(e),o.sitename=e.getSiteDFPKeyName()+"/"+e.getTargetName(),o.adsize=e.getAdSize();var a={},s=this.getTickerValues(e),d=this.mTemplate.getParametersForDFP();a=s.length>0?r(r(r(r(r(r({},this.mPublisherKval),this.mDFPParams),this.mDFPDMPParams),this.mDFPSSPParams),d),{t:s}):r(r(r(r(r({},this.mPublisherKval),this.mDFPParams),this.mDFPDMPParams),this.mDFPSSPParams),d);var l="";for(var p in a)"tl"!=p&&"rnd"!=p&&"pageId"!=p&&"dt"!=p&&"d"!=p&&"referer"!=p&&(l+=p+":"+a[p]+";");o.dfpKval=l.length>0?encodeURIComponent(l.replace(/;\s*$/,"")):l}return o},e.prototype.sspCallback=function(e){if(e&&e.markit)for(var t in e.markit)this.mDFPSSPParams[t]=""+e.markit[t]},e.prototype.prepareUAT5Key=function(){"uat5"in this.mPublisherKval||(this.mPublisherKval.uat5=["true"]);var e=c.Constant.ENVIRONMENT;"prod"!=e&&-1==this.mPublisherKval.uat5.indexOf(e)&&this.mPublisherKval.uat5.push(e),-1==this.mPublisherKval.uat5.indexOf("srt_v2")&&-1==this.mPublisherKval.uat5.indexOf("srt_v1")&&(this.mIsSortableV2Enable?this.mPublisherKval.uat5.push("srt_v2"):this.mTemplate.isSortableV2Enable()&&this.mPublisherKval.uat5.push("srt_v1"))},e.prototype.prepareDFPParams=function(e){var t=this;if(this.mDFPSSPParams={},this.prepareUAT5Key(),"ADVANCE"!=this.mPublisherType&&this.mDFPParams.setTagId(e.getId()),!e.isOOPUnit()){if(this.updateViewabilityAttributesToDFPParams(e),this.updateAdPositionParametersToDFPParams(e),null!=d.SSP.getInstance()){var i=void 0;if(i=this.mIsSortableV2Enable?d.SSP.getInstance().getBids(this.mICDivId,this.sspCallback.bind(this)):d.SSP.getInstance().getBids(this.mICDivId)){if(i.a9)for(var r in i.a9)this.mDFPSSPParams[r]=""+i.a9[r];if(i.prebid){String.prototype.endsWith||(String.prototype.endsWith=function(e,t){return(void 0===t||t>this.length)&&(t=this.length),this.substring(t-e.length,t)===e});var n=-2,o="",a="",u="",l="",p=this.mTemplate.getSSPPrebidIgnoreList();for(var r in i.prebid){var m=i.prebid[r];if(this.mTemplate.isDebugModeEnabled()&&c.Utility.getInstance().debugConsoleMessage("Inside PrepareDFPParam SSP KEY "+r+" - ",[m]),p.indexOf(r)>=0)for(var f in m)this.mDFPSSPParams[f]=""+m[f];else for(var f in m)if(!f.endsWith("_id")&&!f.endsWith("_d")&&n=-1&&(this.mDFPSSPParams["pb_"+u]=""+n,n>0&&(this.mDFPSSPParams.pb_v=o,a&&(this.mDFPSSPParams["pb_"+u+"_id"]=a),l&&(this.mDFPSSPParams["pb_"+u+"_d"]=l)))}if(i.markit)for(var r in i.markit)this.mDFPSSPParams[r]=""+i.markit[r]}}if(this.mTemplate.isPredictiveEnabled()){var h=this.mTemplate.getPredictiveValue(this,this.mDATRefreshType,this.getSSPAdSizes());if(h)for(var r in h)if(h[r]&&h.hasOwnProperty(r)){var y="ml_"+s[r],b=10*Math.round(h[r]/10);this.mDFPSSPParams[y]=""+b}}}try{this.mTemplate.isKruxScriptDropped()&&c.Utility.window.Krux&&(c.Utility.window.Krux.user||c.Utility.window.ic_krux_getuserid(),this.mDFPDMPParams.kuid=c.Utility.window.Krux.user,!c.Utility.window.Krux.user&&this.mIsSortableV2Enable&&(this.mKruxTimeoutInstance=setTimeout(function(){return t.getKruxData()},this.mTemplate.getKruxTimeout())))}catch(e){}},e.prototype.getKruxData=function(){var e=this;c.Utility.window.ic_krux_getuserid(),c.Utility.window.Krux.user?(this.mDFPDMPParams.kuid=c.Utility.window.Krux.user,clearInterval(this.mKruxTimeoutInstance)):this.mKruxTimeoutInstance=setTimeout(function(){return e.getKruxData()},this.mTemplate.getKruxTimeout())},e.prototype.validateSSP=function(e,t){var i=this;if(this.mTemplate.getUSPStatus()==c.USPStatus.NOT_APPLICABLE){var r=(new Date).valueOf()-this.mTemplate.getLastDFPCallTime();if(r0){var a=this.mTemplate.getPredictiveValue(this,this.mDATRefreshType,o);n=this.mTemplate.isSspHVPlacement(a)}}d.SSP.getInstance().refreshBids(this.mICDivId,this.mDATRefreshType,n),this.mSSPFetchBidsStartTime=(new Date).getTime()}var s=t?+this.mTemplate.getSSPConfig().totalDelayRefresh:+this.mTemplate.getSSPConfig().totalDelay;this.waitForSSP(e,s,t,!0)}}else t?this.refreshDisplayTag(e):this.renderDisplayTag(e)},e.prototype.waitForSSP=function(e,t,i,r){var n=this,o=t-((new Date).getTime()-this.mSSPFetchBidsStartTime);if((!d.SSP.getInstance()||"RECEIVED"!=d.SSP.getInstance().getStatus(this.mICDivId)&&"NOT_APPLICABLE"!=d.SSP.getInstance().getStatus(this.mICDivId))&&o>0){var a=+this.mTemplate.getSSPConfig().delayStep;a=r?Math.round(o/2.5):a>o?o:a,this.mWaitForSSPTimeout=setTimeout(function(){n.waitForSSP(e,t,i,!1)},a)}else clearInterval(this.mWaitForSSPTimeout),this.mSSPFetchBidsStartTime=0,i?this.refreshDisplayTag(e):this.renderDisplayTag(e)},e.prototype.getTickerValues=function(e){var t=[];try{"t"in this.mPublisherKval&&(t=t.concat(this.mPublisherKval.t.join().toUpperCase().split(","))),"t"in this.mDFPSSPParams&&(t=t.concat(this.mDFPSSPParams.t.toUpperCase().split(",")));var i=this.mTemplate.getParametersForDFP();"t"in i&&(t=t.concat(i.t.toUpperCase().split(",")))}catch(e){}return t=c.Utility.getInstance().removeDuplicateFromArray(t)},e.prototype.renderDisplayTag=function(e){var t=this;if(this.mDATRefreshType=c.RefreshType.ONLOAD,e.getTargetName().indexOf(".bottom")>0&&!this.mTemplate.eligibleForBottomZoning(this)){if(e.disableBottomZoning(),e.getDAT()){var i=e.getDAT(),n=i.getTargeting();i.destroy(),i=this.createDAT(e),e.setDAT(i),e.getSizeMapping()&&e.getDAT().defineSizeMapping(e.getSizeMapping()),i.setTargeting(n)}this.mDFPParams.setTarget(e.getTargetName())}e.getDAT()||(e.setDAT(this.createDAT(e)),e.getSizeMapping()&&e.getDAT().defineSizeMapping(e.getSizeMapping())),this.prepareDFPParams(e);var o=e.getDAT(),a=this.getTickerValues(e),s=this.mTemplate.getParametersForDFP(),u=r(r({},this.mTemplate.getPublisherKval()),this.mPublisherKval),l={};if(l=a.length>0?r(r(r(r(r(r({},u),this.mDFPParams),this.mDFPDMPParams),this.mDFPSSPParams),s),{t:a}):r(r(r(r(r({},u),this.mDFPParams),this.mDFPDMPParams),this.mDFPSSPParams),s),o.setTargeting(l),this.mTemplate.getDocumentType()==c.DocumentType.IFRAME){o.setTargetingByKey("rft",[""])}try{this.mTemplate.isDebugModeEnabled()&&c.Utility.getInstance().debugConsoleMessage("Calling DFP for "+e.getAdSize()+" with the parameters ",[l])}catch(e){}if(this.mIsSortableV2Enable){var p=d.SortableV2.getInstance(),m=d.DATManager.getInstance();p&&m&&(p.display(o),p.refresh([o],!0))}else this.mTemplate.isSingleRequestEnabled()?this.mLoadType==c.LoadType.ON_VIEW?this.mTemplate.readyToRender(this.mICDivId,this.mLoadType,e):this.mTemplate.readyToRender(this.mICDivId,this.mLoadType):o.render();e.isOOPUnit()||(this.mTargetRuleTimeoutInstance=setTimeout(function(){return t.executeTargetRules(e)},this.mTemplate.getTargetRulesTimeout()))},e.prototype.refreshDisplayTag=function(e){this.prepareDFPParams(e);var t=e.getDAT();t.clearTargeting();var i=this.getTickerValues(e),o=this.mTemplate.getParametersForDFP(),a=r(r({},this.mTemplate.getPublisherKval()),this.mPublisherKval),s={};s=i.length>0?r(r(r(r(r(r({},a),this.mDFPParams),this.mDFPDMPParams),this.mDFPSSPParams),o),{t:i}):r(r(r(r(r({},a),this.mDFPParams),this.mDFPDMPParams),this.mDFPSSPParams),o),t.setTargeting(s);try{this.mTemplate.isDebugModeEnabled()&&c.Utility.getInstance().debugConsoleMessage("Refreshing the tag "+e.getAdSize(),[s])}catch(e){}if(this.mIsSortableV2Enable){var u=d.SortableV2.getInstance();u&&u.refresh([t],!1)}else this.mTemplate.isSingleRequestEnabled()?this.mTemplate.readyToRefresh(this.mICDivId):(this.mTemplate.setLastDFPCallTime((new Date).valueOf()),t.refresh());this.mDATAdRefreshTimerStartTime=0,this.mDATAdRefreshTimerStopTime=0,this.mDATNotInViewTime=0,this.mDATInViewTime=0,this.mDATSlotRendered=!1,this.mDATAdRefreshState=n.STOP,this.mIsDATAdIndirectAdvertiser=!1,this.mDATAdRefreshTimerInstance,this.mIsImpressionViewable=!1},e.prototype.dropTag=function(e,t){t&&c.Utility.ICJQuery(document).trigger("Callback_Preload_"+this.mRandomNumber);var i=this.replaceMacros(e.getScript(),e);if(this.mType==c.PlacementType.PIXEL)c.Utility.ICJQuery("head").prepend(i),c.Utility.getInstance().pushToReportLog(this.getLogParams(e,a.SERVED));else{if(void 0==this.mSelector)return;switch(e.getType()){case c.TagType.CUSTOM:c.Utility.ICJQuery("#"+this.mICDivId).append(i),c.Utility.getInstance().pushToReportLog(this.getLogParams(e,a.SERVED));break;case c.TagType.DISPLAY:case c.TagType.NATIVE:t?this.mIsSortableV2Enable?this.renderDisplayTag(e):this.validateSSP(e,!1):this.mIsSortableV2Enable?this.refreshDisplayTag(e):this.validateSSP(e,!0);break;case c.TagType.VIDEO:}}t&&(c.Utility.ICJQuery(document).trigger("Callback_Postload_"+this.mRandomNumber),c.Utility.ICJQuery(document).trigger("Callback_OnViewport_"+this.mRandomNumber,[this.mICDivId])),this.mState=c.PlacementState.LOADED},e.prototype.saveToStorage=function(e,t){var i=c.Utility.getInstance();i.isLocalStorageSupported()?i.saveToLocalStorage(e,t):i.saveToCookie(e,t)},e.prototype.getFromStorage=function(e){var t=c.Utility.getInstance();return t.isLocalStorageSupported()?t.getFromLocalStorage(e):t.getFromCookie(e)},e.prototype.deleteFromStorage=function(e){var t=c.Utility.getInstance();t.isLocalStorageSupported()?t.deleteFromLocalStorage(e):t.deleteFromCookie(e)},e.prototype.displayTag=function(e){var t=this;if(this.mState=c.PlacementState.INITIALIZED,this.mLastRenderedTagType=this.mTagToRender.getType(),this.mType==c.PlacementType.HTML){if(e&&!c.Utility.ICJQuery("#"+this.mICDivId).length){var i=this.prepareCustomDiv();this.dropCustomDiv(i)}this.mTagToRender.getType()!=c.TagType.DISPLAY&&this.mTagToRender.getType()!=c.TagType.NATIVE||!this.mTemplate.isSingleRequestEnabled()||e||this.mIsSortableV2Enable||this.mTemplate.addTagToRefreshArray(this.mICDivId,this.mTagToRender)}switch(this.setTargetToDFPParams(this.mTagToRender),this.updateAdxParametersToDFPParams(),this.updateAdomikParametersToDFPParams(this.mTagToRender),this.setAdRefreshParameters(),e&&c.Utility.getInstance().pushToReportLog(this.getLogParams(this.mTagToRender,a.PROBABLE)),this.mLoadType){case c.LoadType.ON_LOAD:"complete"==document.readyState?this.dropTag(this.mTagToRender,e):c.Utility.ICJQuery(window).on("load",function(){t.dropTag(t.mTagToRender,e)});break;case c.LoadType.ON_VIEW:var r=c.Utility.getInstance(),n=this.mTemplate.getOnViewBufferPercentage();r.isInViewport("#"+this.mICDivId,0)?this.dropTag(this.mTagToRender,e):c.Utility.ICJQuery(document).on("scroll."+this.mRandomNumber,function(i){r.isInViewport("#"+t.mICDivId,n)&&(c.Utility.ICJQuery(document).off("scroll."+t.mRandomNumber),t.dropTag(t.mTagToRender,e))});break;case c.LoadType.ON_REALTIME:case c.LoadType.CUSTOM:this.dropTag(this.mTagToRender,e)}},e.prototype.getAbsolutePosition=function(e){var t=0,i=0;if(this.mTemplate.getDocumentType()==c.DocumentType.FRIENDLYFRAME){var r=c.Utility.window.frameElement.getBoundingClientRect();null==r||void 0==r||0==r.top&&0==r.left&&0==r.right&&0==r.bottom||(void 0!==c.Utility.window.top.pageXOffset?(t=Math.round(r.left+c.Utility.window.top.pageXOffset),i=Math.round(r.top+c.Utility.window.top.pageYOffset)):(t=Math.round(r.left+c.Utility.window.top.document.documentElement.scrollLeft),i=Math.round(r.top+c.Utility.window.top.document.documentElement.scrollTop)))}var n=e.getBoundingClientRect();return null==n||void 0==n||0==n.top&&0==n.left&&0==n.right&&0==n.bottom?null:void 0!==pageXOffset?(t+=Math.round(n.left+pageXOffset))+"x"+(i+=Math.round(n.top+pageYOffset)):(t+=Math.round(n.left+document.documentElement.scrollLeft))+"x"+(i+=Math.round(n.top+document.documentElement.scrollTop))},e.prototype.getRelativePosition=function(e){var t=0,i=0;if(this.mTemplate.getDocumentType()==c.DocumentType.FRIENDLYFRAME){var r=c.Utility.window.frameElement.getBoundingClientRect();null==r||void 0==r||0==r.top&&0==r.left&&0==r.right&&0==r.bottom||(t=Math.round(r.left),i=Math.round(r.top))}var n=e.getBoundingClientRect();return null==n||void 0==n||0==n.top&&0==n.left&&0==n.right&&0==n.bottom?null:(t+=Math.round(n.left))+"x"+(i+=Math.round(n.top))},e.prototype.prepareAdPositionsParams=function(){var e=null,t=null,i=null;if(this.mTemplate.getDocumentType()==c.DocumentType.FRIENDLYFRAME&&parent==top||this.mTemplate.getDocumentType()==c.DocumentType.PAGE){e=c.Utility.getInstance().getBrowserSize();var r=document.getElementById(this.mICDivId),n=this.getAbsolutePosition(r),o=this.getRelativePosition(r);n&&(t=n),o&&(i=o)}return{browserSize:e,absolutePosition:t,relativePosition:i}},e.prototype.getVisibleAreaPercentage=function(e,t,i){t=0==t?1:t,i=0==i?1:i;try{if(!c.Utility.ICJQuery(e).is(":visible"))return-2}catch(e){}var r=e.getBoundingClientRect(),n=c.Utility.getInstance().clientWindowHeight(),o=c.Utility.getInstance().clientWindowWidth(),a=r.top,s=r.left,u=0,d=0;if(this.mTemplate.getDocumentType()==c.DocumentType.FRIENDLYFRAME){var l=c.Utility.window.frameElement.getBoundingClientRect(),p=c.Utility.window.top.innerHeight,m=c.Utility.window.top.innerWidth;if(l.top>p||l.left>m||l.bottom<0||l.right<0||l.top+r.top>p||l.left+r.left>m||r.bottom<0||r.right<0)return 0;l.top<0&&(a+=l.top),l.left<0&&(s+=l.left),pn?n:h,y=y>o?o:y;var b=f<0?0:f,v=g<0?0:g;return((b=b>n?n:b)-h)*((v=v>o?o:v)-y)/(Number(i)*Number(t))*100},e.prototype.calculateViewabilityAttributes=function(){var e="300x250",t=this.getNonNullPrimaryAdSize(),i=document.getElementById(this.mICDivId);t.indexOf("x")>=0&&!isNaN(+t.split("x")[0])&&!isNaN(+t.split("x")[1])&&(e=t);var r=e.split("x")[0],n=e.split("x")[1];i.setAttribute("style","display: block; min-width: "+r+"px; min-height: "+n+"px;");var o=this.getVisibleAreaPercentage(i,+r,+n);o>=0&&(o=10*Math.ceil(o/10)),i.setAttribute("style","");var a=0;return o<=-1?a=o:o>=c.Constant.FOLDPOSITION_TOLERANCE&&(a=1),{foldPosition:a,visiblePercentage:o}},e.prototype.setWaitingForTarget=function(e){this.mWaitingForTarget=e},e.prototype.getWaitingForTarget=function(){return this.mWaitingForTarget},e.prototype.setWaitingForNativeLayout=function(e){this.mWaitingForNativeLayout=e},e.prototype.getWaitingForNativeLayout=function(){return this.mWaitingForNativeLayout},e.prototype.initialiseObject=function(e){var t="0";try{this.mICDivId="investingchannel_div_"+this.mRandomNumber,t="1",this.mStorageKey="IC_Placement_"+this.mId,t="2",this.mState=c.PlacementState.UNKNOWN,t="3",this.mDFPParams=new c.DFPPlacementParams,t="4",this.mDFPParams.setRandomNumber(this.mRandomNumber),t="5",this.mDFPParams.setTile(e),t="6",this.mDFPParams.setPosition(this.mTemplate.calculatePosition(this.getNonNullPrimaryAdSize(),this.mRandomNumber)),t="7";for(var i=0;i1&&(r.getType()==c.TagType.DISPLAY||r.getType()==c.TagType.NATIVE)&&r.enableBottomZoning(),t="9."+i,t="11."+i,r.getPublisherKVal()){var n=r.getPublisherKVal().split("&");t="12."+i;for(var o=0;o0?this.mDATAdRefreshTimerStartTime-this.mDATAdRefreshTimerStopTime:0;this.mDATNotInViewTime+=t;var i=this.mAutoRefreshConfig.RefreshTime,r=this.mAutoRefreshConfig.OutOfViewTime;this.mIsDATAdIndirectAdvertiser&&(i=this.mAutoRefreshConfig.RefreshTimeIndirect,r=this.mAutoRefreshConfig.OutOfViewTimeIndirect),this.mDATAdRefreshState=n.START,t>r?(this.mDATRefreshType=c.RefreshType.ACTIVEWINDOW,this.mIsImpressionViewable?this.displayTag(!1):(this.mDATAdRefreshState=n.STOP,this.mTemplate.isDebugModeEnabled()&&c.Utility.getInstance().debugConsoleMessage("Placement ==> Imression Viewable not yet tiggered totalOutOfView reached. Placement Id="+this.mId))):this.mDATAdRefreshTimerInstance=setTimeout(function(){e.mTemplate.isDebugModeEnabled()&&c.Utility.getInstance().debugConsoleMessage("User IsInactive =>"+e.mTemplate.getIsUserInActive(e.mAutoRefreshConfig.ActiveUserTimeoutFromLastInteraction)+" , Inactivity Time=>"+e.mTemplate.getUserInactiveTime(e.mAutoRefreshConfig.ActiveUserTimeoutFromLastInteraction)+" Placement Id="+e.mId),e.mDATRefreshType=c.RefreshType.TIME,e.mIsDATAdIndirectAdvertiser&&(e.mLoadType=c.LoadType.ON_VIEW),e.mIsImpressionViewable?!e.mTemplate.getIsUserInActive(e.mAutoRefreshConfig.ActiveUserTimeoutFromLastInteraction)||e.mAutoRefreshConfig.MaxAutoRefreshWithoutInteraction*i>e.mTemplate.getUserInactiveTime(e.mAutoRefreshConfig.ActiveUserTimeoutFromLastInteraction)?e.displayTag(!1):(e.mDATInViewTime=i,e.mDATAdRefreshState=n.STOP,e.mActiveUserEvent||null!=e.mActiveUserEvent||e.registerActiveUserEvent()):(e.mDATInViewTime=i,e.mDATAdRefreshState=n.STOP,e.mTemplate.isDebugModeEnabled()&&c.Utility.getInstance().debugConsoleMessage("Placement ==> Impression Viewable not yet tiggered timebased. Placement Id="+e.mId))},i-this.mDATInViewTime)}},e.prototype.stopRefreshTimer=function(){this.mDATAdRefreshState==n.START&&(this.mDATAdRefreshTimerStopTime=(new Date).valueOf(),this.mDATInViewTime=this.mDATInViewTime+(this.mDATAdRefreshTimerStopTime-this.mDATAdRefreshTimerStartTime),clearInterval(this.mDATAdRefreshTimerInstance),this.mDATAdRefreshState=n.STOP)},e.prototype.evaluateAdRefresh=function(e){if(this.mIsAutoRefreshEnabled&&2==this.mDATRenderedAdSize.length&&!(this.mDFPParams.getAdRefreshCount()>=this.mAutoRefreshConfig.MaxRefreshCount)){var t=this.mAutoRefreshConfig.ViewabilityThresholdPercentage;if(this.mIsDATAdIndirectAdvertiser&&(t=this.mAutoRefreshConfig.ViewabilityThresholdPercentageIndirect),"300x1050"==this.mDATRenderedAdSize[0]+"x"+this.mDATRenderedAdSize[1]){if(!this.mIsDATAdIndirectAdvertiser)return void(this.mIsAutoRefreshEnabled=!1);t*=.6}e>=t?(this.startRefreshTimer(),this.mTemplate.isDebugModeEnabled()&&c.Utility.getInstance().debugConsoleMessage("evaluateAdRefresh event triggered Start Refresh Timer: Counter="+this.mDATInViewTime+" Placement Id="+this.mId)):this.mIsDATAdIndirectAdvertiser?this.mTemplate.isDebugModeEnabled()&&c.Utility.getInstance().debugConsoleMessage("evaluateAdRefresh event triggered No Active Timer: Indirect="+this.mIsDATAdIndirectAdvertiser+" Placement Id="+this.mId):(this.stopRefreshTimer(),this.mTemplate.isDebugModeEnabled()&&c.Utility.getInstance().debugConsoleMessage("evaluateAdRefresh event triggered Stop Refresh Timer: StopCounter="+this.mDATInViewTime+" Placement Id="+this.mId))}},e.prototype.windowEventHandler=function(e){if(this.mIsAutoRefreshEnabled){var t=document.getElementById(this.mICDivId);if(t)if(e==o.BLUR)this.mTemplate.getDocumentType()!=c.DocumentType.PAGE?this.mActiveBrowserWindow=document.hasFocus()||parent.document.hasFocus():this.mActiveBrowserWindow=!1,this.mDATSlotRendered&&!this.mActiveBrowserWindow&&this.evaluateAdRefresh(0);else if(e==o.FOCUS&&(this.mActiveBrowserWindow=!0),this.mDATSlotRendered&&this.mActiveBrowserWindow){var i=this.getVisibleAreaPercentage(t,this.mDATRenderedAdSize[0],this.mDATRenderedAdSize[1]);this.evaluateAdRefresh(i)}}},e.prototype.registerWindowEvent=function(){var e=this;this.mTemplate.getDocumentType()!=c.DocumentType.IFRAME&&this.mTemplate.getAutoRefreshEnabled()&&(this.mScrollEvent=function(){e.windowEventHandler(o.SCROLL)},this.mResizeEvent=function(){e.windowEventHandler(o.RESIZE)},this.mFocusEvent=function(){e.windowEventHandler(o.FOCUS)},this.mBlurEvent=function(){e.windowEventHandler(o.BLUR)},c.Utility.window.attachEvent?(c.Utility.window.attachEvent("onscroll",this.mScrollEvent,!0),c.Utility.window.attachEvent("onresize",this.mResizeEvent,!1),c.Utility.window.attachEvent("onfocus",this.mFocusEvent,!1),c.Utility.window.attachEvent("onblur",this.mBlurEvent,!1),this.mTemplate.getDocumentType()!=c.DocumentType.PAGE&&(c.Utility.window.top.attachEvent("onscroll",this.mScrollEvent,!0),c.Utility.window.top.attachEvent("onresize",this.mResizeEvent,!1),c.Utility.window.top.attachEvent("onfocus",this.mFocusEvent,!1),c.Utility.window.top.attachEvent("onblur",this.mBlurEvent,!1))):(c.Utility.window.addEventListener("scroll",this.mScrollEvent,!0),c.Utility.window.addEventListener("resize",this.mResizeEvent,!1),c.Utility.window.addEventListener("focus",this.mFocusEvent,!1),c.Utility.window.addEventListener("blur",this.mBlurEvent,!1),this.mTemplate.getDocumentType()!=c.DocumentType.PAGE&&(c.Utility.window.top.addEventListener("scroll",this.mScrollEvent,!0),c.Utility.window.top.addEventListener("resize",this.mResizeEvent,!1),c.Utility.window.top.addEventListener("focus",this.mFocusEvent,!1),c.Utility.window.top.addEventListener("blur",this.mBlurEvent,!1))))},e.prototype.unregisterWindowEvent=function(){this.mTemplate.getDocumentType()!=c.DocumentType.IFRAME&&this.mTemplate.getAutoRefreshEnabled()&&(c.Utility.window.detachEvent?(c.Utility.window.detachEvent("onscroll",this.mScrollEvent,!0),c.Utility.window.detachEvent("onresize",this.mResizeEvent,!1),c.Utility.window.detachEvent("onfocus",this.mFocusEvent,!1),c.Utility.window.detachEvent("onblur",this.mBlurEvent,!1),this.mTemplate.getDocumentType()!=c.DocumentType.PAGE&&(c.Utility.window.top.detachEvent("onscroll",this.mScrollEvent,!0),c.Utility.window.top.detachEvent("onresize",this.mResizeEvent,!1),c.Utility.window.top.detachEvent("onfocus",this.mFocusEvent,!1),c.Utility.window.top.detachEvent("onblur",this.mBlurEvent,!1))):(c.Utility.window.removeEventListener("scroll",this.mScrollEvent,!0),c.Utility.window.removeEventListener("resize",this.mResizeEvent,!1),c.Utility.window.removeEventListener("focus",this.mFocusEvent,!1),c.Utility.window.removeEventListener("blur",this.mBlurEvent,!1),this.mTemplate.getDocumentType()!=c.DocumentType.PAGE&&(c.Utility.window.top.removeEventListener("scroll",this.mScrollEvent,!0),c.Utility.window.top.removeEventListener("resize",this.mResizeEvent,!1),c.Utility.window.top.removeEventListener("focus",this.mFocusEvent,!1),c.Utility.window.top.removeEventListener("blur",this.mBlurEvent,!1))))},e.prototype.registerActiveUserEvent=function(){var e=this;this.mTemplate.getDocumentType()!=c.DocumentType.IFRAME&&this.mAutoRefreshConfig.IsEnabled&&(this.mActiveUserEvent=function(){e.mTemplate.isDebugModeEnabled()&&c.Utility.getInstance().debugConsoleMessage("Placemet mActiveUserEvent is called. PlacementId=>"+e.mId),e.unregisterActiveUserEvent(),e.mActiveUserEvent=null,e.displayTag(!1)},this.mTemplate.activateActivityTracker(this.mActiveUserEvent))},e.prototype.unregisterActiveUserEvent=function(){this.mTemplate.deactivateActivityTracker(this.mActiveUserEvent),this.mTemplate.isDebugModeEnabled()&&c.Utility.getInstance().debugConsoleMessage("Plaement unregisterActiveUserEvent called. PlacementId="+this.mId)},e.prototype.executeTargetRules=function(e){if(clearInterval(this.mTargetRuleTimeoutInstance),e.isForcedTargetEnabled()||null==this.mTemplate.getGlobalTarget())if(null!=e.getTargetRule())this.mTemplate.executeTargetRules(e.getTargetName(),e.getTargetRule());else{var t=this.mTemplate.getTargetData(e.getTargetName());null!=t&&this.mTemplate.executeTargetRules(e.getTargetName(),t.rules)}else this.mTemplate.dropGlobalTargetRules()},e.prototype.renderNativeLayout=function(e){for(var t=null,i=null,r=null,n=0,o=this.mTags;n=1&&(f[0].style.position="absolute")}else this.mTemplate.pushPlacementErrorLog(this.mId,this.mType,this.mRandomNumber,this.getPublisherType(),c.ErrorType.NATIVE_LAYOUT_NOT_FOUND,c.ErrorType.NATIVE_LAYOUT_NOT_FOUND.toString()+"("+r.getId()+")")}}},e.prototype.replaceTemplate=function(e,t){this.mTemplate.isDebugModeEnabled()&&c.Utility.getInstance().debugConsoleMessage("replateTemplate - advert ojbect - ",t);var i=this.mTemplate.getSponsorPagePath();for(var r in 0!=t.canvasPageAdId&&null!=i&&void 0!=i&&(0===i.toString().indexOf("http")||0===i.toString().indexOf("//")?t.url=i+"?ic_adid="+t.canvasPageAdId:t.url=window.location.protocol+"//"+window.location.hostname+"/"+i+"?ic_adid="+t.canvasPageAdId),"SCR"!=t.type&&(t.url=t.clickTrackingUrl+t.url),t)if(t.hasOwnProperty(r)){var n=t[r];if(n==t.thumbnail){var o=/pref-\s*(.*?)\s*-ratio/g.exec(e);o&&(n=this.getThumb(n,o[1]))}e=e.replace(new RegExp("{{"+r+"}}","g"),n)}return e},e.prototype.getThumb=function(e,t){var i=t.split("-"),r=[];for(var n in i)for(var o in e)o==i[n]&&""!=e[o]&&r.push(e[o]);if(r[0])var a=r[0];return a},e.prototype.eventDATSlotRenderEnded=function(e){this.mDATSlotRendered=!e.isEmpty,this.mDATRenderedAdSize=e.size;var t=null;e.size&&null!=e.size&&e.size.length>=2&&(t=this.mDATRenderedAdSize[0]+"x"+this.mDATRenderedAdSize[1]),this.mAutoRefreshConfig=this.mTemplate.getAutoRefreshConfig(t),this.mIsAutoRefreshEnabled=this.mAutoRefreshConfig.IsEnabled,this.mTemplate.isDebugModeEnabled()&&c.Utility.getInstance().debugConsoleMessage("Inside SlotRender Ended event ",[e]),this.mDATSlotRendered&&this.renderNativeLayout(e),this.mTemplate.getDocumentType()!=c.DocumentType.IFRAME&&this.mAutoRefreshConfig.IsEnabled?(this.mIsDATAdIndirectAdvertiser=this.mAutoRefreshConfig.AdvertisersIndirect.indexOf(e.advertiserId)>=0,this.mAutoRefreshConfig.DisabledCampaigns.indexOf(e.campaignId)>=0&&(this.mIsAutoRefreshEnabled=!1)):this.mIsAutoRefreshEnabled=!1;try{var i={size:e.size,advertiserId:e.advertiserId,campaignId:e.campaignId,companyIds:e.companyIds,creativeId:e.creativeId,creativeTemplateId:e.creativeTemplateId,isBackfill:e.isBackfill,isEmpty:e.isEmpty,labelIds:e.labelIds,lineItemId:e.lineItemId};if(c.Utility.ICJQuery(document).trigger("Callback_Rendered_"+this.mRandomNumber,[i]),this.mRenderedEventListeners.length>0)for(var r=0;rnew Date){if(Number(t.count)>=this.mFrequency.getCap())return this.mState=c.PlacementState.CAPPING_EXPIRED,!1}else this.deleteFromStorage(this.mStorageKey)}}if(this.mType!=c.PlacementType.HTML)return!0;if("ADVANCE"==this.mPublisherType&&"COMPLETED"!=this.mTemplate.getTargetStatus(this.mTagToRender.getTargetName())&&!this.mTemplate.getGlobalTarget())return console.log("**** Not eligible because of Target"),!1;if((this.mTagToRender.getType()==c.TagType.DISPLAY||this.mTagToRender.getType()==c.TagType.NATIVE)&&""==this.mTagToRender.getAdSize())return this.mState=c.PlacementState.TAG_NOT_AVAILABLE,!1;if(!this.mIsParent)return!0;var r=c.Utility.getInstance();if(void 0!=this.mSelector&&r.isSelectorLoaded(this.mSelector.getIdentifier(),this.mTemplate.getPageId(),this.mId,this.mRandomNumber)){if(this.mState=c.PlacementState.SELECTOR_LOADED,!c.Utility.ICJQuery("#"+this.mICDivId).length){var n=this.prepareCustomDiv();this.dropCustomDiv(n)}return!0}return this.mState=c.PlacementState.SELECTOR_NOT_LOADED,this.mLoadType==c.LoadType.CUSTOM&&this.mTemplate.pushPlacementErrorLog(this.mId,this.mType,this.mRandomNumber,this.getPublisherType(),c.ErrorType.SELECTOR_NOT_FOUND),!1},e.prototype.isEligibleForRefreshing=function(){return(this.mState==c.PlacementState.LOADED||this.mState==c.PlacementState.VIEWED)&&this.mType==c.PlacementType.HTML},e.prototype.render=function(){var e=d.DATManager.getInstance();if(null==e||!e.initialLoadDisabled()||this.mTagToRender.getType()!=c.TagType.DISPLAY&&this.mTagToRender.getType()!=c.TagType.NATIVE||(this.mTagToRender.setDAT(this.createDAT(this.mTagToRender)),this.mTagToRender.getSizeMapping()&&this.mTagToRender.getDAT().defineSizeMapping(this.mTagToRender.getSizeMapping())),this.mLoadType==c.LoadType.CUSTOM&&this.mTemplate.addTagToRenderArray(this.mICDivId,this.mTagToRender,this.mLoadType),this.mSSPFetchBidsStartTime=this.mTemplate.getSSPFetchBidsStartTime(),this.mFrequency){var t=this.getFromStorage(this.mStorageKey),i={};if(t){t=JSON.parse(decodeURIComponent(t));var r=new Date(t.dateTime),n=Number(t.count);++n,i.count=n,i.dateTime=r}else i.count=1,i.dateTime=new Date;this.saveToStorage(this.mStorageKey,JSON.stringify(i))}this.displayTag(!0)},e.prototype.getLastRenderedTagType=function(){return this.mLastRenderedTagType},e.prototype.refresh=function(){this.mDATRefreshType=c.RefreshType.MANUAL,this.displayTag(!1)},e.prototype.clear=function(){c.Utility.ICJQuery("#"+this.mICDivId).length&&c.Utility.ICJQuery("#"+this.mICDivId).remove()},e.prototype.destroy=function(){for(var e=0,t=this.mTags;e=0||(e=e.concat(i.split(",")))}return e},e.prototype.getPosition=function(){return this.mDFPParams?this.mDFPParams.getPosition():null},e.prototype.getTile=function(){return this.mDFPParams?this.mDFPParams.getTile():null},e.prototype.getType=function(){return this.mType},e.prototype.getRandomNumber=function(){return this.mRandomNumber},e.prototype.getRawData=function(){return this.mCorePlacement},e.prototype.isSortableV2Enable=function(){return this.mIsSortableV2Enable},e}();t.default=l,function(e){e.STOP="STOPPED",e.START="STARTED"}(n||(n={})),function(e){e.SCROLL="SCROLL",e.RESIZE="RESIZE",e.FOCUS="FOCUS",e.BLUR="BLUR"}(o||(o={})),function(e){e.SERVED="S",e.VIEWED="V",e.PROBABLE="P"}(a||(a={})),function(e){e["160x600"]="16",e["250x250"]="22",e["320x50"]="35",e["300x250"]="32",e["300x600"]="36",e["300x1050"]="31",e["468x60"]="46",e["728x90"]="79",e["970x90"]="99",e["970x250"]="92",e["320x100"]="30"}(s||(s={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GdprCmp=t.SortableV2=t.DATManager=t.DMP=t.SSP=t.DAT=void 0;var r=i(35);t.DAT=r.default;var n=i(36);t.SSP=n.default;var o=i(38);t.DMP=o.default;var a=i(39);t.DATManager=a.default;var s=i(40);t.SortableV2=s.default;var c=i(41);t.GdprCmp=c.default},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UAT=t.gaElems=t.gaNewElem=void 0;var r=i(1),n=i(0);function o(e,t,i){i?(ga("create",i,"auto","UAT5JS"),ga("UAT5JS.send",{hitType:"event",eventCategory:"UAT_"+n.Constant.ENVIRONMENT+"_v"+n.Constant.VERSION,eventAction:e,eventLabel:t})):(ga("create","UA-136075674-1","auto","UAT5UATJS"),ga("UAT5UATJS.send",{hitType:"event",eventCategory:"UAT_"+n.Constant.ENVIRONMENT+"_v"+n.Constant.VERSION,eventAction:e,eventLabel:t}))}function a(){return!!document.querySelector("[alt='ZeroHedge']")}t.gaNewElem={},t.gaElems={},function(){var e=new Date;!function(t,i,r,n,o,a,s){t.GoogleAnalyticsObject=o,t.ga=t.ga||function(){(t.ga.q=t.ga.q||[]).push(arguments)},t.ga.l=1*e,a=i.createElement(r),s=i.getElementsByTagName(r)[0],a.async=1,a.src="//www.google-analytics.com/analytics.js",s.parentNode.insertBefore(a,s)}(window,document,"script",0,"ga",t.gaNewElem,t.gaElems)}();var s,c,u,d=[];function l(e,t){try{var i=[];if(i.push("%c IC UAT ","border-radius:4px;background:#8bc43f;color:#fff;font-weight: bold;"),i.push(e),t)for(var r=0;r0)for(var s=0;s0)for(var a=0;a0)for(var c=0;c0&&this.mTemplate.renderAdvancePlacements(t)}catch(e){s=this.mTemplate?this.mTemplate.getPageId():"null";r.Template.pushAPILog(n.ErrorType.PAGE_RENDERTAG_FAILED,"("+e.message+")",s)}else r.Template.pushAPILog(n.ErrorType.PAGE_OBJECT_NOT_FOUND,"(page.renderTags())")},e.prototype.refreshTags=function(e){if(p&&l("Invoked global refresh tags command"),this.mTemplate)try{if(e&&Array.isArray(e))for(var t=0;t0?this.mPlacements[0].getRandomNumber():null},e.prototype.render=function(){try{try{if(p)for(var e=0;e0&&this.mTemplate&&this.mTemplate.renderAdvancePlacements(this.mPlacements)}catch(a){for(e=0;e0)for(;InvestingChannelQueue.length>0;){var e=u.Page.getAPIStatus();if("NOT_READY"==e||"READY"==e)InvestingChannelQueue.shift()();else if("INPROGRESS"==e){u.Page.apiReady(f);break}}!function(e,t){e.push=function(i){Array.prototype.push.call(e,i),t(e)}}(InvestingChannelQueue,function(e){f()})}var g=document.currentScript||function(){for(var e=document.getElementsByTagName("script"),t=null,i=0;i-1&&-1!==r.indexOf(".js",r.length-".js".length))return e[i]}catch(e){o("uat.js","Error while parcing the script src on "+(a()?"ZeroHedge":"Other"))}return null}();null!=g?g.addEventListener("load",function(){p&&l("Script loaded."),f()}):(console.warn("IC: Not able to add load event...."),o("uat.js","Not able to add load event "+(a()?"ZeroHedge":"Other")))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),n=function(){function e(e,t){this.mCallbackid=e.callbackid,this.mScript=e.script,this.mType=e.type,this.registerEvent(t)}return e.prototype.registerEvent=function(e){var t=this;switch(this.mType){case r.CallbackType.PRELOAD:r.Utility.ICJQuery(document).on("Callback_Preload_"+e,function(){return t.loadScript()});break;case r.CallbackType.POSTLOAD:r.Utility.ICJQuery(document).on("Callback_Postload_"+e,function(){return t.loadScript()});break;case r.CallbackType.ON_VIEWPORT:r.Utility.ICJQuery(document).on("Callback_OnViewport_"+e,function(i,n){var o=r.Utility.getInstance();o.isInViewport("#"+n,null)?t.loadScript():r.Utility.ICJQuery(document).on("resize scroll."+e,function(){o.isInViewport("#"+n,null)&&(r.Utility.ICJQuery(document).off("resize scroll."+e),t.loadScript())})});break;case r.CallbackType.ON_DOMLOAD:"complete"===document.readyState?this.loadScript():window.onload=function(){t.loadScript()};break;case r.CallbackType.ON_DOMREADY:r.Utility.ICJQuery(document).ready(function(){return t.loadScript()});break;case r.CallbackType.ON_DOMUNLOAD:r.Utility.ICJQuery(window).on("unload",function(){return t.loadScript()});break;case r.CallbackType.ON_BLANK:r.Utility.ICJQuery(document).on("Callback_Blank_"+e,function(){return t.loadScript()});break;case r.CallbackType.ON_RENDERED:r.Utility.ICJQuery(document).on("Callback_Rendered_"+e,function(e,i){t.mScript="(function(adData){"+t.mScript+"}("+JSON.stringify(i)+"))",t.loadScript()})}},e.prototype.loadScript=function(){r.Utility.getInstance().executeJS(this.mScript)},e.prototype.getType=function(){return this.mType},e.prototype.getScript=function(){return this.mScript},e}();t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gaElems=t.gaNewElem=void 0;var r=i(8),n=i(0),o=i(2);t.gaNewElem={},t.gaElems={};var a=function(){function e(){var e=this;this.mErrors=[],this.mReports=[],this.mAPIs=[],this.mPageLog=null,this.mTriggerPageLog=!1,this.mIsGdprApplicable=!1,this.mUSPStatus=o.USPStatus.NOT_APPLICABLE,n.Utility.ICJQuery(window).on("unload",function(){e.destroy()}),setInterval(function(){e.postLogsToServer()},1e3)}return e.getInstance=function(){return this.mUtil||(this.mUtil=new e),this.mUtil},e.prototype.setGDPRStatus=function(e){this.mIsGdprApplicable=e},e.prototype.setUSPStatus=function(e){this.mUSPStatus=e},e.prototype.executeJS=function(t){e.ICJQuery.globalEval(t)},e.prototype.isSelectorLoaded=function(t,i,r,n){return!!e.ICJQuery("#investingchannel_div_"+n).length||this.getEmptyElementsForSelector(t,i,r).length>0},e.prototype.getEmptyElementsForSelector=function(e,t,i){var r="0";try{var o=[],a=document.querySelectorAll(e);r="1";for(var s=0;s-1){if(c[d].getAttribute("ic_pageId")!=t){u=!0;break}if(c[d].getAttribute("ic_placementid")==""+i){u=!0;break}}u||(r="2."+s,o.push(a[s]))}return o}catch(e){n.Utility.getInstance().ic_ga_event("Utility.getEmptyElementsForSelector",this.prepareGALabel("",t,r+") "+e.message+" $# "+i))}},e.prototype.executeOnLoad=function(e){try{var t=document.readyState;if("interactive"==t||"complete"==t)return void this.executeJS(e);window.addEventListener("DOMContentLoaded",this.executeJS(e),!1)}catch(t){this.executeJS(e)}},e.prototype.clientWindowHeight=function(){var e=0;return"number"==typeof window.innerHeight?e=window.innerHeight:document.documentElement&&document.documentElement.clientHeight?e=document.documentElement.clientHeight:document.body&&document.body.clientHeight&&(e=document.body.clientHeight),e},e.prototype.clientWindowWidth=function(){var e=0;return"number"==typeof window.innerWidth?e=window.innerWidth:document.documentElement&&document.documentElement.clientWidth?e=document.documentElement.clientWidth:document.body&&document.body.clientWidth&&(e=document.body.clientWidth),e},e.prototype.getBrowserSize=function(){return this.clientWindowWidth()+"x"+this.clientWindowHeight()},e.prototype.convertAdSize=function(e){var t="";if(e.constructor!==Array&&("fluid"==e.toString()||"oop"==e.toString()))return e.toString();if(2==e.length&&"number"==typeof e[0]&&"number"==typeof e[1])return e.join("x");for(var i=0;i0&&(c+=a*(i/100),u+=s*(i/100),d-=a*(i/100),l-=s*(i/100)),c>=0&&u>=0&&d<=a&&l<=s},e.prototype.isCookieEnabled=function(){try{document.cookie="ic_cookietest=1";var e=-1!=document.cookie.indexOf("ic_cookietest=");return document.cookie="ic_cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(e){}return!1},e.prototype.getFromLocalStorage=function(e){try{if("undefined"!=typeof Storage)return localStorage.getItem(e)}catch(e){}return null},e.prototype.getFromSessionStorage=function(e){try{if("undefined"!=typeof Storage)return sessionStorage.getItem(e)}catch(e){}return null},e.prototype.getFromCookie=function(e){try{if(navigator.cookieEnabled){var t=("; "+document.cookie).split("; "+e+"=");if(2==t.length)return t.pop().split(";").shift()}}catch(e){}return""},e.prototype.isCookieExists=function(e){if(navigator.cookieEnabled)try{if(2==("; "+document.cookie).split("; "+e+"=").length)return!0}catch(e){}return!1},e.prototype.deleteFromLocalStorage=function(e){try{"undefined"!=typeof Storage&&localStorage.removeItem(e)}catch(e){}},e.prototype.deleteFromSessionStorage=function(e){try{"undefined"!=typeof Storage&&sessionStorage.removeItem(e)}catch(e){}},e.prototype.deleteFromCookie=function(e){try{navigator.cookieEnabled&&(document.cookie=e+"=;expires=Fri, 02-Jan-1970 00:00:00 GMT;path=/")}catch(e){}},e.prototype.saveToLocalStorage=function(e,t){try{"undefined"!=typeof Storage&&localStorage.setItem(e,t)}catch(e){}},e.prototype.saveToSessionStorage=function(e,t){try{"undefined"!=typeof Storage&&sessionStorage.setItem(e,t)}catch(e){}},e.prototype.saveToCookie=function(e,t,i){if(navigator.cookieEnabled)try{document.cookie=void 0==i?e+"="+t+";path=/":e+"="+t+"; max-age="+i+";path=/"}catch(e){}},e.prototype.getFromQueryString=function(e,t){var i=window.location.href;e=e.replace(/[\[\]]/g,"\\$&");var r=new RegExp("[?&]"+e+"(=([^&]*)|&|$)").exec(i);return r?r[2]?decodeURIComponent(r[2].replace(/\+/g," ")):"":null},e.prototype.getUspString=function(e,t){if("function"==typeof window.__uspapi&&window.__uspapi("getUSPData",1,function(e,t){return t?"uspString"in e?e.uspString:void 0:null}),t&&this.isLocalStorageSupported()){var i=this.getFromLocalStorage(e);if(i)return i}return this.getFromCookie(e)},e.prototype.pushToErrorLog=function(e){this.mErrors.push(e)},e.prototype.pushToReportLog=function(e){this.mReports.push(e)},e.prototype.pushToAPILog=function(e){this.mAPIs.push(e)},e.prototype.preparePageLog=function(e){this.mPageLog=e},e.prototype.triggerPageLog=function(){this.mTriggerPageLog=!0},e.prototype.isLocalStorageSupported=function(){try{if("undefined"==typeof Storage)return!1}catch(e){return!1}return!0},e.prototype.adomikRandomAdGroup=function(){var e=Math.random();switch(!1){case!(e<.09):return"ad_ex"+Math.floor(100*e);case!(e<.1):return"ad_bc";default:return"ad_opt"}},e.prototype.removeDuplicateFromArray=function(e){if(!e)return e;for(var t=[],i=[],r=0;r=0||(t.push(e[r].toLowerCase()),i.push(e[r]));return i},e.prototype.getTopWindowDomain=function(){try{return n.Utility.window.top.location.hostname}catch(e){}try{return document.referrer.match(/:\/\/(.[^/]+)/)[1]}catch(e){}return""},e.prototype.prepareGALabel=function(e,t,i){return(e||"")+" $# "+(t||"")+" $# "+i},e.prototype.initializeGA=function(){var e=new Date;!function(t,i,r,n,o,a,s){t.GoogleAnalyticsObject=o,t.ga=t.ga||function(){(t.ga.q=t.ga.q||[]).push(arguments)},t.ga.l=1*e,a=i.createElement(r),s=i.getElementsByTagName(r)[0],a.async=1,a.src="//www.google-analytics.com/analytics.js",s.parentNode.insertBefore(a,s)}(window,document,"script",0,"ga",t.gaNewElem,t.gaElems)},e.prototype.ic_ga_event=function(e,t,i){i?(ga("create",i,"auto","UAT5Data"),ga("UAT5Data.send",{hitType:"event",eventCategory:"UAT_"+n.Constant.ENVIRONMENT+"_v"+n.Constant.VERSION,eventAction:e,eventLabel:t})):(ga("create","UA-44058249-9","auto","UAT5"),ga("UAT5.send",{hitType:"event",eventCategory:"UAT_"+n.Constant.ENVIRONMENT+"_v"+n.Constant.VERSION,eventAction:e,eventLabel:t}))},e.prototype.postLogsToServer=function(){if(this.mReports.length>0){var t=this.mReports;this.mReports=[],e.ICJQuery.post({url:n.Constant.UAT_LOG_REPORT_URL+"?gdprapplicable="+this.mIsGdprApplicable+"&uspstatus="+this.mUSPStatus,async:!0,data:JSON.stringify(t),contentType:"application/json; charset=UTF-8",xhrFields:{withCredentials:!0}})}if(this.mErrors.length>0){var i=this.mErrors;this.mErrors=[],e.ICJQuery.post({url:n.Constant.UAT_LOG_ERROR_URL+"?gdprapplicable="+this.mIsGdprApplicable+"&uspstatus="+this.mUSPStatus,async:!0,data:JSON.stringify(i),contentType:"application/json; charset=UTF-8",xhrFields:{withCredentials:!0}})}if(this.mAPIs.length>0){var r=this.mAPIs;this.mAPIs=[],e.ICJQuery.post({url:n.Constant.UAT_LOG_API_URL+"?gdprapplicable="+this.mIsGdprApplicable+"&uspstatus="+this.mUSPStatus,async:!0,data:JSON.stringify(r),contentType:"application/json; charset=UTF-8",xhrFields:{withCredentials:!0}})}if(null!=this.mPageLog&&this.mTriggerPageLog){var o=this.mPageLog;this.mPageLog=null,this.mTriggerPageLog=!1,e.ICJQuery.post({url:n.Constant.UAT_LOG_PAGE_URL+"?gdprapplicable="+this.mIsGdprApplicable+"&uspstatus="+this.mUSPStatus,async:!0,data:JSON.stringify(o),contentType:"application/json; charset=UTF-8",xhrFields:{withCredentials:!0}})}},e.prototype.pushAPILog=function(t,i,r,n,o,a){var s=n.toString();s+=o;var c=e.window.location.href,u=this.updateUrlIfTranslator(t,c);u&&(c=u),a||(a="null"),this.mAPIs.push({apiKey:i,placementId:"null",placementType:"null",publisherType:"ADVANCE",pageId:a,rnd:"null",documentType:t,errorCode:e.getInstance().getErrorTypeKeyFromValue(n),errorDetail:s,kval:encodeURIComponent("bs:"+this.getBrowserSize()),refererUrl:encodeURIComponent(r),pageUrl:encodeURIComponent(c)})},e.prototype.getErrorTypeKeyFromValue=function(e){switch(e){case n.ErrorType.ADSIZE_INVALID:return"ADSIZE_INVALID";case n.ErrorType.CUSTOM_TARGETING_FAILED:return"CUSTOM_TARGETING_FAILED";case n.ErrorType.DEVICE_TARGETING_FAILED:return"DEVICE_TARGETING_FAILED";case n.ErrorType.GDPR_TARGETING_FAILED:return"GDPR_TARGETING_FAILED";case n.ErrorType.GEO_TARGETING_FAILED:return"GEO_TARGETING_FAILED";case n.ErrorType.SELECTOR_INVALID:return"SELECTOR_INVALID";case n.ErrorType.SELECTOR_NOT_FOUND:return"SELECTOR_NOT_FOUND";case n.ErrorType.TAG_NOT_CONFIGURED:return"TAG_NOT_CONFIGURED";case n.ErrorType.TARGET_INVALID:return"TARGET_INVALID";case n.ErrorType.ADSIZEMAPPING_INVALID:return"ADSIZEMAPPING_INVALID";case n.ErrorType.ADSIZEMAPPING_TARGETING_FAILED:return"ADSIZEMAPPING_TARGETING_FAILED";case n.ErrorType.NO_ADS:return"NO_ADS";case n.ErrorType.UNKNOW_ERROR:return"UNKNOW_ERROR";case n.ErrorType.PAGE_OBJECT_NOT_FOUND:return"PAGE_OBJECT_NOT_FOUND";case n.ErrorType.PAGE_DESTROY_TEMPLATE_NOT_FOUND:return"PAGE_DESTROY_TEMPLATE_NOT_FOUND";case n.ErrorType.PAGE_DESTROY_FAILED:return"PAGE_DESTROY_FAILED";case n.ErrorType.PAGE_REFRESHTAG_TAG_NOT_FOUND:return"PAGE_REFRESHTAG_TAG_NOT_FOUND";case n.ErrorType.PAGE_REFRESHTAG_FAILED:return"PAGE_REFRESHTAG_FAILED";case n.ErrorType.ADD_SIZEMAPPING_FAILED:return"ADD_SIZEMAPPING_FAILED";case n.ErrorType.BUILD_SIZEMAPPING_FAILED:return"BUILD_SIZEMAPPING_FAILED";case n.ErrorType.PAGE_DEFINETAG_SITE_MISMATCH:return"PAGE_DEFINETAG_SITE_MISMATCH";case n.ErrorType.PAGE_DEFINETAG_TARGET_NOT_FOUND:return"PAGE_DEFINETAG_TARGET_NOT_FOUND";case n.ErrorType.PAGE_DEFINETAG_INVALID_SIZE:return"PAGE_DEFINETAG_INVALID_SIZE";case n.ErrorType.PAGE_DEFINETAG_FAILED:return"PAGE_DEFINETAG_FAILED";case n.ErrorType.PAGE_DEFINETAG_INVALID_DIVID:return"PAGE_DEFINETAG_INVALID_DIVID";case n.ErrorType.PAGE_DEFINEOOPTAG_SITE_MISMATCH:return"PAGE_DEFINEOOPTAG_SITE_MISMATCH";case n.ErrorType.PAGE_DEFINEOOPTAG_TARGET_NOT_FOUND:return"PAGE_DEFINEOOPTAG_TARGET_NOT_FOUND";case n.ErrorType.PAGE_DEFINEOOPTAG_FAILED:return"PAGE_DEFINEOOPTAG_FAILED";case n.ErrorType.PAGE_DEFINEOOPTAG_INVALID_DIVID:return"PAGE_DEFINEOOPTAG_INVALID_DIVID";case n.ErrorType.PAGE_GETPUBTAG_TAG_NOT_FOUND:return"PAGE_GETPUBTAG_TAG_NOT_FOUND";case n.ErrorType.PAGE_GETPUBTAG_FAILED:return"PAGE_GETPUBTAG_FAILED";case n.ErrorType.PAGE_SETKVAL_FAILED:return"PAGE_SETKVAL_FAILED";case n.ErrorType.PAGE_CLEARKVAL_FAILED:return"PAGE_CLEARKVAL_FAILED";case n.ErrorType.PAGE_RENDERTAG_TAG_NOT_FOUND:return"PAGE_RENDERTAG_TAG_NOT_FOUND";case n.ErrorType.PAGE_RENDERTAG_FAILED:return"PAGE_RENDERTAG_FAILED";case n.ErrorType.TAG_DEFINESIZEMAPPING_FAILED:return"TAG_DEFINESIZEMAPPING_FAILED";case n.ErrorType.TAG_SETKVAL_FAILED:return"TAG_SETKVAL_FAILED";case n.ErrorType.TAG_CLEARKVAL_FAILED:return"TAG_CLEARKVAL_FAILED";case n.ErrorType.TAG_RENDER_FAILED:return"TAG_RENDER_FAILED";case n.ErrorType.TAG_REFRESH_FAILED:return"TAG_REFRESH_FAILED";case n.ErrorType.TAG_CLEAR_FAILED:return"TAG_CLEAR_FAILED";case n.ErrorType.TAG_DESTROY_FAILED:return"TAG_DESTROY_FAILED";case n.ErrorType.TAG_ADDEVENTLISTNER_FAILED:return"TAG_ADDEVENTLISTNER_FAILED";case n.ErrorType.NATIVE_LAYOUT_NOT_FOUND:return"NATIVE_LAYOUT_NOT_FOUND";case n.ErrorType.PAGE_DEFINENATIVETAG_SITE_MISMATCH:return"PAGE_DEFINENATIVETAG_SITE_MISMATCH";case n.ErrorType.PAGE_DEFINENATIVETAG_TARGET_NOT_FOUND:return"PAGE_DEFINENATIVETAG_TARGET_NOT_FOUND";case n.ErrorType.PAGE_DEFINENATIVETAG_FAILED:return"PAGE_DEFINENATIVETAG_FAILED";case n.ErrorType.PAGE_DEFINENATIVETAG_INVALID_DIVID:return"PAGE_DEFINENATIVETAG_INVALID_DIVID";case n.ErrorType.PAGE_DEFINENATIVETAG_LAYOUT_NOT_FOUND:return"PAGE_DEFINENATIVETAG_LAYOUT_NOT_FOUND";default:return"UNKNOWN"}},e.prototype.updateUrlIfTranslator=function(e,t){if(e==n.DocumentType.IFRAME){var i=n.Utility.ICJQuery("").prop("href",t).prop("hostname");if("translate.google.com"==i.toLowerCase()||"translate.googleusercontent.com"==i.toLowerCase()){var r=this.getQueryStringParam("u",t);if(r&&r.length>0)return r[1]}return null}},e.prototype.debugConsoleMessage=function(e,t){try{var i=[];if(i.push("%c IC UAT ","border-radius:4px;background:#8bc43f;color:#fff;font-weight: bold;"),i.push(e),t)for(var r=0;r0&&t-1 in e)}I.fn=I.prototype={jquery:"3.5.1",constructor:I,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=I.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return I.each(this,e)},map:function(e){return this.pushStack(I.map(this,function(t,i){return e.call(t,i,t)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(I.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(I.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i+~]|"+M+")"+M+"*"),W=new RegExp(M+"|>"),K=new RegExp(z),H=new RegExp("^"+j+"$"),Y={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},J=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ie=function(e,t){var i="0x"+e.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){p()},ae=Se(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{U.apply(x=N.call(T.childNodes),T.childNodes),x[T.childNodes.length].nodeType}catch(e){U={apply:x.length?function(e,t){R.apply(e,N.call(t))}:function(e,t){for(var i=e.length,r=0;e[i++]=t[r++];);e.length=i-1}}}function se(e,t,r,n){var o,s,u,d,l,f,y,b=t&&t.ownerDocument,T=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==T&&9!==T&&11!==T)return r;if(!n&&(p(t),t=t||m,g)){if(11!==T&&(l=Z.exec(e)))if(o=l[1]){if(9===T){if(!(u=t.getElementById(o)))return r;if(u.id===o)return r.push(u),r}else if(b&&(u=b.getElementById(o))&&v(t,u)&&u.id===o)return r.push(u),r}else{if(l[2])return U.apply(r,t.getElementsByTagName(e)),r;if((o=l[3])&&i.getElementsByClassName&&t.getElementsByClassName)return U.apply(r,t.getElementsByClassName(o)),r}if(i.qsa&&!C[e+" "]&&(!h||!h.test(e))&&(1!==T||"object"!==t.nodeName.toLowerCase())){if(y=e,b=t,1===T&&(W.test(e)||q.test(e))){for((b=ee.test(e)&&ye(t.parentNode)||t)===t&&i.scope||((d=t.getAttribute("id"))?d=d.replace(re,ne):t.setAttribute("id",d=S)),s=(f=a(e)).length;s--;)f[s]=(d?"#"+d:":scope")+" "+ve(f[s]);y=f.join(",")}try{return U.apply(r,b.querySelectorAll(y)),r}catch(t){C(e,!0)}finally{d===S&&t.removeAttribute("id")}}}return c(e.replace(G,"$1"),t,r,n)}function ce(){var e=[];return function t(i,n){return e.push(i+" ")>r.cacheLength&&delete t[e.shift()],t[i+" "]=n}}function ue(e){return e[S]=!0,e}function de(e){var t=m.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){for(var i=e.split("|"),n=i.length;n--;)r.attrHandle[i[n]]=t}function pe(e,t){var i=t&&e,r=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function me(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function he(e){return ue(function(t){return t=+t,ue(function(i,r){for(var n,o=e([],i.length,t),a=o.length;a--;)i[n=o[a]]&&(i[n]=!(r[n]=i[n]))})})}function ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in i=se.support={},o=se.isXML=function(e){var t=e.namespaceURI,i=(e.ownerDocument||e).documentElement;return!J.test(t||i&&i.nodeName||"HTML")},p=se.setDocument=function(e){var t,n,a=e?e.ownerDocument||e:T;return a!=m&&9===a.nodeType&&a.documentElement?(f=(m=a).documentElement,g=!o(m),T!=m&&(n=m.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),i.scope=de(function(e){return f.appendChild(e).appendChild(m.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),i.attributes=de(function(e){return e.className="i",!e.getAttribute("className")}),i.getElementsByTagName=de(function(e){return e.appendChild(m.createComment("")),!e.getElementsByTagName("*").length}),i.getElementsByClassName=$.test(m.getElementsByClassName),i.getById=de(function(e){return f.appendChild(e).id=S,!m.getElementsByName||!m.getElementsByName(S).length}),i.getById?(r.filter.ID=function(e){var t=e.replace(te,ie);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var i=t.getElementById(e);return i?[i]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ie);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var i,r,n,o=t.getElementById(e);if(o){if((i=o.getAttributeNode("id"))&&i.value===e)return[o];for(n=t.getElementsByName(e),r=0;o=n[r++];)if((i=o.getAttributeNode("id"))&&i.value===e)return[o]}return[]}}),r.find.TAG=i.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):i.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,r=[],n=0,o=t.getElementsByTagName(e);if("*"===e){for(;i=o[n++];)1===i.nodeType&&r.push(i);return r}return o},r.find.CLASS=i.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},y=[],h=[],(i.qsa=$.test(m.querySelectorAll))&&(de(function(e){var t;f.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&h.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||h.push("\\["+M+"*(?:value|"+L+")"),e.querySelectorAll("[id~="+S+"-]").length||h.push("~="),(t=m.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||h.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll("\\\f"),h.push("[\\r\\n\\f]")}),de(function(e){e.innerHTML="";var t=m.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&h.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&h.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),h.push(",.*:")})),(i.matchesSelector=$.test(b=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&de(function(e){i.disconnectedMatch=b.call(e,"*"),b.call(e,"[s!='']:x"),y.push("!=",z)}),h=h.length&&new RegExp(h.join("|")),y=y.length&&new RegExp(y.join("|")),t=$.test(f.compareDocumentPosition),v=t||$.test(f.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(i.contains?i.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!i.sortDetached&&t.compareDocumentPosition(e)===r?e==m||e.ownerDocument==T&&v(T,e)?-1:t==m||t.ownerDocument==T&&v(T,t)?1:d?k(d,e)-k(d,t):0:4&r?-1:1)}:function(e,t){if(e===t)return l=!0,0;var i,r=0,n=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!n||!o)return e==m?-1:t==m?1:n?-1:o?1:d?k(d,e)-k(d,t):0;if(n===o)return pe(e,t);for(i=e;i=i.parentNode;)a.unshift(i);for(i=t;i=i.parentNode;)s.unshift(i);for(;a[r]===s[r];)r++;return r?pe(a[r],s[r]):a[r]==T?-1:s[r]==T?1:0},m):m},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(p(e),i.matchesSelector&&g&&!C[t+" "]&&(!y||!y.test(t))&&(!h||!h.test(t)))try{var r=b.call(e,t);if(r||i.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){C(t,!0)}return se(t,m,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=m&&p(e),v(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=m&&p(e);var n=r.attrHandle[t.toLowerCase()],o=n&&O.call(r.attrHandle,t.toLowerCase())?n(e,t,!g):void 0;return void 0!==o?o:i.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(re,ne)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],n=0,o=0;if(l=!i.detectDuplicates,d=!i.sortStable&&e.slice(0),e.sort(D),l){for(;t=e[o++];)t===e[o]&&(n=r.push(o));for(;n--;)e.splice(r[n],1)}return d=null,e},n=se.getText=function(e){var t,i="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=n(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)i+=n(t);return i},(r=se.selectors={cacheLength:50,createPseudo:ue,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ie),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ie),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&K.test(i)&&(t=a(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ie).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=A[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&A(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,i){return function(r){var n=se.attr(r,e);return null==n?"!="===t:!t||(n+="","="===t?n===i:"!="===t?n!==i:"^="===t?i&&0===n.indexOf(i):"*="===t?i&&n.indexOf(i)>-1:"$="===t?i&&n.slice(-i.length)===i:"~="===t?(" "+n.replace(B," ")+" ").indexOf(i)>-1:"|="===t&&(n===i||n.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,r,n){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===n?function(e){return!!e.parentNode}:function(t,i,c){var u,d,l,p,m,f,g=o!==a?"nextSibling":"previousSibling",h=t.parentNode,y=s&&t.nodeName.toLowerCase(),b=!c&&!s,v=!1;if(h){if(o){for(;g;){for(p=t;p=p[g];)if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;f=g="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?h.firstChild:h.lastChild],a&&b){for(v=(m=(u=(d=(l=(p=h)[S]||(p[S]={}))[p.uniqueID]||(l[p.uniqueID]={}))[e]||[])[0]===E&&u[1])&&u[2],p=m&&h.childNodes[m];p=++m&&p&&p[g]||(v=m=0)||f.pop();)if(1===p.nodeType&&++v&&p===t){d[e]=[E,m,v];break}}else if(b&&(v=m=(u=(d=(l=(p=t)[S]||(p[S]={}))[p.uniqueID]||(l[p.uniqueID]={}))[e]||[])[0]===E&&u[1]),!1===v)for(;(p=++m&&p&&p[g]||(v=m=0)||f.pop())&&((s?p.nodeName.toLowerCase()!==y:1!==p.nodeType)||!++v||(b&&((d=(l=p[S]||(p[S]={}))[p.uniqueID]||(l[p.uniqueID]={}))[e]=[E,v]),p!==t)););return(v-=n)===r||v%r==0&&v/r>=0}}},PSEUDO:function(e,t){var i,n=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return n[S]?n(t):n.length>1?(i=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ue(function(e,i){for(var r,o=n(e,t),a=o.length;a--;)e[r=k(e,o[a])]=!(i[r]=o[a])}):function(e){return n(e,0,i)}):n}},pseudos:{not:ue(function(e){var t=[],i=[],r=s(e.replace(G,"$1"));return r[S]?ue(function(e,t,i,n){for(var o,a=r(e,null,n,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,n,o){return t[0]=e,r(t,null,o,i),t[0]=null,!i.pop()}}),has:ue(function(e){return function(t){return se(e,t).length>0}}),contains:ue(function(e){return e=e.replace(te,ie),function(t){return(t.textContent||n(t)).indexOf(e)>-1}}),lang:ue(function(e){return H.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ie).toLowerCase(),function(t){var i;do{if(i=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===m.activeElement&&(!m.hasFocus||m.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,i){return[i<0?i+t:i]}),even:he(function(e,t){for(var i=0;it?t:i;--r>=0;)e.push(r);return e}),gt:he(function(e,t,i){for(var r=i<0?i+t:i;++r1?function(t,i,r){for(var n=e.length;n--;)if(!e[n](t,i,r))return!1;return!0}:e[0]}function Ee(e,t,i,r,n){for(var o,a=[],s=0,c=e.length,u=null!=t;s-1&&(o[u]=!(a[u]=l))}}else y=Ee(y===a?y.splice(f,y.length):y),n?n(null,a,y,c):U.apply(a,y)})}function Ae(e){for(var t,i,n,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],c=a?1:0,d=Se(function(e){return e===t},s,!0),l=Se(function(e){return k(t,e)>-1},s,!0),p=[function(e,i,r){var n=!a&&(r||i!==u)||((t=i).nodeType?d(e,i,r):l(e,i,r));return t=null,n}];c1&&Te(p),c>1&&ve(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(G,"$1"),i,c0,n=e.length>0,o=function(o,a,s,c,d){var l,f,h,y=0,b="0",v=o&&[],S=[],T=u,I=o||n&&r.find.TAG("*",d),A=E+=null==T?1:Math.random()||.1,P=I.length;for(d&&(u=a==m||a||d);b!==P&&null!=(l=I[b]);b++){if(n&&l){for(f=0,a||l.ownerDocument==m||(p(l),s=!g);h=e[f++];)if(h(l,a||m,s)){c.push(l);break}d&&(E=A)}i&&((l=!h&&l)&&y--,o&&v.push(l))}if(y+=b,i&&b!==y){for(f=0;h=t[f++];)h(v,S,a,s);if(o){if(y>0)for(;b--;)v[b]||S[b]||(S[b]=w.call(c));S=Ee(S)}U.apply(c,S),d&&!o&&S.length>0&&y+t.length>1&&se.uniqueSort(c)}return d&&(E=A,u=T),v};return i?ue(o):o}(o,n))).selector=e}return s},c=se.select=function(e,t,i,n){var o,c,u,d,l,p="function"==typeof e&&e,m=!n&&a(e=p.selector||e);if(i=i||[],1===m.length){if((c=m[0]=m[0].slice(0)).length>2&&"ID"===(u=c[0]).type&&9===t.nodeType&&g&&r.relative[c[1].type]){if(!(t=(r.find.ID(u.matches[0].replace(te,ie),t)||[])[0]))return i;p&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(o=Y.needsContext.test(e)?0:c.length;o--&&(u=c[o],!r.relative[d=u.type]);)if((l=r.find[d])&&(n=l(u.matches[0].replace(te,ie),ee.test(c[0].type)&&ye(t.parentNode)||t))){if(c.splice(o,1),!(e=n.length&&ve(c)))return U.apply(i,n),i;break}}return(p||s(e,m))(n,t,!g,i,!t||ee.test(e)&&ye(t.parentNode)||t),i},i.sortStable=S.split("").sort(D).join("")===S,i.detectDuplicates=!!l,p(),i.sortDetached=de(function(e){return 1&e.compareDocumentPosition(m.createElement("fieldset"))}),de(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||le("type|href|height|width",function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),i.attributes&&de(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||le("value",function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),de(function(e){return null==e.getAttribute("disabled")})||le(L,function(e,t,i){var r;if(!i)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(i);I.find=P,I.expr=P.selectors,I.expr[":"]=I.expr.pseudos,I.uniqueSort=I.unique=P.uniqueSort,I.text=P.getText,I.isXMLDoc=P.isXML,I.contains=P.contains,I.escapeSelector=P.escape;var _=function(e,t,i){for(var r=[],n=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(n&&I(e).is(i))break;r.push(e)}return r},C=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},D=I.expr.match.needsContext;function O(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var x=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function w(e,t,i){return y(t)?I.grep(e,function(e,r){return!!t.call(e,r,e)!==i}):t.nodeType?I.grep(e,function(e){return e===t!==i}):"string"!=typeof t?I.grep(e,function(e){return d.call(t,e)>-1!==i}):I.filter(t,e,i)}I.filter=function(e,t,i){var r=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?I.find.matchesSelector(r,e)?[r]:[]:I.find.matches(e,I.grep(t,function(e){return 1===e.nodeType}))},I.fn.extend({find:function(e){var t,i,r=this.length,n=this;if("string"!=typeof e)return this.pushStack(I(e).filter(function(){for(t=0;t1?I.uniqueSort(i):i},filter:function(e){return this.pushStack(w(this,e||[],!1))},not:function(e){return this.pushStack(w(this,e||[],!0))},is:function(e){return!!w(this,"string"==typeof e&&D.test(e)?I(e):e||[],!1).length}});var R,U=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(I.fn.init=function(e,t,i){var r,n;if(!e)return this;if(i=i||R,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:U.exec(e))||!r[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof I?t[0]:t,I.merge(this,I.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:v,!0)),x.test(r[1])&&I.isPlainObject(t))for(r in t)y(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(n=v.getElementById(r[2]))&&(this[0]=n,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==i.ready?i.ready(e):e(I):I.makeArray(e,this)}).prototype=I.fn,R=I(v);var N=/^(?:parents|prev(?:Until|All))/,k={children:!0,contents:!0,next:!0,prev:!0};function L(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}I.fn.extend({has:function(e){var t=I(e,this),i=t.length;return this.filter(function(){for(var e=0;e-1:1===i.nodeType&&I.find.matchesSelector(i,e))){o.push(i);break}return this.pushStack(o.length>1?I.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?d.call(I(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(I.uniqueSort(I.merge(this.get(),I(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),I.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return _(e,"parentNode")},parentsUntil:function(e,t,i){return _(e,"parentNode",i)},next:function(e){return L(e,"nextSibling")},prev:function(e){return L(e,"previousSibling")},nextAll:function(e){return _(e,"nextSibling")},prevAll:function(e){return _(e,"previousSibling")},nextUntil:function(e,t,i){return _(e,"nextSibling",i)},prevUntil:function(e,t,i){return _(e,"previousSibling",i)},siblings:function(e){return C((e.parentNode||{}).firstChild,e)},children:function(e){return C(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(O(e,"template")&&(e=e.content||e),I.merge([],e.childNodes))}},function(e,t){I.fn[e]=function(i,r){var n=I.map(this,t,i);return"Until"!==e.slice(-5)&&(r=i),r&&"string"==typeof r&&(n=I.filter(r,n)),this.length>1&&(k[e]||I.uniqueSort(n),N.test(e)&&n.reverse()),this.pushStack(n)}});var M=/[^\x20\t\r\n\f]+/g;function j(e){return e}function F(e){throw e}function z(e,t,i,r){var n;try{e&&y(n=e.promise)?n.call(e).done(t).fail(i):e&&y(n=e.then)?n.call(e,t,i):t.apply(void 0,[e].slice(r))}catch(e){i.apply(void 0,[e])}}I.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return I.each(e.match(M)||[],function(e,i){t[i]=!0}),t}(e):I.extend({},e);var t,i,r,n,o=[],a=[],s=-1,c=function(){for(n=n||e.once,r=t=!0;a.length;s=-1)for(i=a.shift();++s-1;)o.splice(i,1),i<=s&&s--}),this},has:function(e){return e?I.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return n=a=[],o=i="",this},disabled:function(){return!o},lock:function(){return n=a=[],i||t||(o=i=""),this},locked:function(){return!!n},fireWith:function(e,i){return n||(i=[e,(i=i||[]).slice?i.slice():i],a.push(i),t||c()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},I.extend({Deferred:function(e){var t=[["notify","progress",I.Callbacks("memory"),I.Callbacks("memory"),2],["resolve","done",I.Callbacks("once memory"),I.Callbacks("once memory"),0,"resolved"],["reject","fail",I.Callbacks("once memory"),I.Callbacks("once memory"),1,"rejected"]],r="pending",n={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return n.then(null,e)},pipe:function(){var e=arguments;return I.Deferred(function(i){I.each(t,function(t,r){var n=y(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=n&&n.apply(this,arguments);e&&y(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[r[0]+"With"](this,n?[e]:arguments)})}),e=null}).promise()},then:function(e,r,n){var o=0;function a(e,t,r,n){return function(){var s=this,c=arguments,u=function(){var i,u;if(!(e=o&&(r!==F&&(s=void 0,c=[i]),t.rejectWith(s,c))}};e?d():(I.Deferred.getStackHook&&(d.stackTrace=I.Deferred.getStackHook()),i.setTimeout(d))}}return I.Deferred(function(i){t[0][3].add(a(0,i,y(n)?n:j,i.notifyWith)),t[1][3].add(a(0,i,y(e)?e:j)),t[2][3].add(a(0,i,y(r)?r:F))}).promise()},promise:function(e){return null!=e?I.extend(e,n):n}},o={};return I.each(t,function(e,i){var a=i[2],s=i[5];n[i[1]]=a.add,s&&a.add(function(){r=s},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(i[3].fire),o[i[0]]=function(){return o[i[0]+"With"](this===o?void 0:this,arguments),this},o[i[0]+"With"]=a.fireWith}),n.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,i=t,r=Array(i),n=s.call(arguments),o=I.Deferred(),a=function(e){return function(i){r[e]=this,n[e]=arguments.length>1?s.call(arguments):i,--t||o.resolveWith(r,n)}};if(t<=1&&(z(e,o.done(a(i)).resolve,o.reject,!t),"pending"===o.state()||y(n[i]&&n[i].then)))return o.then();for(;i--;)z(n[i],a(i),o.reject);return o.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;I.Deferred.exceptionHook=function(e,t){i.console&&i.console.warn&&e&&B.test(e.name)&&i.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},I.readyException=function(e){i.setTimeout(function(){throw e})};var G=I.Deferred();function V(){v.removeEventListener("DOMContentLoaded",V),i.removeEventListener("load",V),I.ready()}I.fn.ready=function(e){return G.then(e).catch(function(e){I.readyException(e)}),this},I.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--I.readyWait:I.isReady)||(I.isReady=!0,!0!==e&&--I.readyWait>0||G.resolveWith(v,[I]))}}),I.ready.then=G.then,"complete"===v.readyState||"loading"!==v.readyState&&!v.documentElement.doScroll?i.setTimeout(I.ready):(v.addEventListener("DOMContentLoaded",V),i.addEventListener("load",V));var q=function(e,t,i,r,n,o,a){var s=0,c=e.length,u=null==i;if("object"===E(i))for(s in n=!0,i)q(e,t,s,i[s],!0,o,a);else if(void 0!==r&&(n=!0,y(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,i){return u.call(I(e),i)})),t))for(;s1,null,!0)},removeData:function(e){return this.each(function(){$.remove(this,e)})}}),I.extend({queue:function(e,t,i){var r;if(e)return t=(t||"fx")+"queue",r=X.get(e,t),i&&(!r||Array.isArray(i)?r=X.access(e,t,I.makeArray(i)):r.push(i)),r||[]},dequeue:function(e,t){t=t||"fx";var i=I.queue(e,t),r=i.length,n=i.shift(),o=I._queueHooks(e,t);"inprogress"===n&&(n=i.shift(),r--),n&&("fx"===t&&i.unshift("inprogress"),delete o.stop,n.call(e,function(){I.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return X.get(e,i)||X.access(e,i,{empty:I.Callbacks("once memory").add(function(){X.remove(e,[t+"queue",i])})})}}),I.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length\x20\t\r\n\f]*)/i,ge=/^$|^module$|\/(?:java|ecma)script/i;!function(){var e=v.createDocumentFragment().appendChild(v.createElement("div")),t=v.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),h.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="",h.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,e.innerHTML="",h.option=!!e.lastChild}();var he={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ye(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&O(e,t)?I.merge([e],i):i}function be(e,t){for(var i=0,r=e.length;i",""]);var ve=/<|&#?\w+;/;function Se(e,t,i,r,n){for(var o,a,s,c,u,d,l=t.createDocumentFragment(),p=[],m=0,f=e.length;m-1)n&&n.push(o);else if(u=ae(o),a=ye(l.appendChild(o),"script"),u&&be(a),i)for(d=0;o=a[d++];)ge.test(o.type||"")&&i.push(o);return l}var Te=/^key/,Ee=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ie=/^([^.]*)(?:\.(.+)|)/;function Ae(){return!0}function Pe(){return!1}function _e(e,t){return e===function(){try{return v.activeElement}catch(e){}}()==("focus"===t)}function Ce(e,t,i,r,n,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof i&&(r=r||i,i=void 0),t)Ce(e,s,i,r,t[s],o);return e}if(null==r&&null==n?(n=i,r=i=void 0):null==n&&("string"==typeof i?(n=r,r=void 0):(n=r,r=i,i=void 0)),!1===n)n=Pe;else if(!n)return e;return 1===o&&(a=n,(n=function(e){return I().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=I.guid++)),e.each(function(){I.event.add(this,t,n,r,i)})}function De(e,t,i){i?(X.set(e,t,!1),I.event.add(e,t,{namespace:!1,handler:function(e){var r,n,o=X.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(I.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=s.call(arguments),X.set(this,t,o),r=i(this,t),this[t](),o!==(n=X.get(this,t))||r?X.set(this,t,!1):n={},o!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else o.length&&(X.set(this,t,{value:I.event.trigger(I.extend(o[0],I.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===X.get(e,t)&&I.event.add(e,t,Ae)}I.event={global:{},add:function(e,t,i,r,n){var o,a,s,c,u,d,l,p,m,f,g,h=X.get(e);if(J(e))for(i.handler&&(i=(o=i).handler,n=o.selector),n&&I.find.matchesSelector(oe,n),i.guid||(i.guid=I.guid++),(c=h.events)||(c=h.events=Object.create(null)),(a=h.handle)||(a=h.handle=function(t){return void 0!==I&&I.event.triggered!==t.type?I.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(M)||[""]).length;u--;)m=g=(s=Ie.exec(t[u])||[])[1],f=(s[2]||"").split(".").sort(),m&&(l=I.event.special[m]||{},m=(n?l.delegateType:l.bindType)||m,l=I.event.special[m]||{},d=I.extend({type:m,origType:g,data:r,handler:i,guid:i.guid,selector:n,needsContext:n&&I.expr.match.needsContext.test(n),namespace:f.join(".")},o),(p=c[m])||((p=c[m]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(e,r,f,a)||e.addEventListener&&e.addEventListener(m,a)),l.add&&(l.add.call(e,d),d.handler.guid||(d.handler.guid=i.guid)),n?p.splice(p.delegateCount++,0,d):p.push(d),I.event.global[m]=!0)},remove:function(e,t,i,r,n){var o,a,s,c,u,d,l,p,m,f,g,h=X.hasData(e)&&X.get(e);if(h&&(c=h.events)){for(u=(t=(t||"").match(M)||[""]).length;u--;)if(m=g=(s=Ie.exec(t[u])||[])[1],f=(s[2]||"").split(".").sort(),m){for(l=I.event.special[m]||{},p=c[m=(r?l.delegateType:l.bindType)||m]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)d=p[o],!n&&g!==d.origType||i&&i.guid!==d.guid||s&&!s.test(d.namespace)||r&&r!==d.selector&&("**"!==r||!d.selector)||(p.splice(o,1),d.selector&&p.delegateCount--,l.remove&&l.remove.call(e,d));a&&!p.length&&(l.teardown&&!1!==l.teardown.call(e,f,h.handle)||I.removeEvent(e,m,h.handle),delete c[m])}else for(m in c)I.event.remove(e,m+t[u],i,r,!0);I.isEmptyObject(c)&&X.remove(e,"handle events")}},dispatch:function(e){var t,i,r,n,o,a,s=new Array(arguments.length),c=I.event.fix(e),u=(X.get(this,"events")||Object.create(null))[c.type]||[],d=I.event.special[c.type]||{};for(s[0]=c,t=1;t=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],a={},i=0;i-1:I.find(n,this,null,[u]).length),a[n]&&o.push(r);o.length&&s.push({elem:u,handlers:o})}return u=this,c\s*$/g;function Re(e,t){return O(e,"table")&&O(11!==t.nodeType?t:t.firstChild,"tr")&&I(e).children("tbody")[0]||e}function Ue(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ne(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function ke(e,t){var i,r,n,o,a,s;if(1===t.nodeType){if(X.hasData(e)&&(s=X.get(e).events))for(n in X.remove(t,"handle events"),s)for(i=0,r=s[n].length;i1&&"string"==typeof f&&!h.checkClone&&xe.test(f))return e.each(function(n){var o=e.eq(n);g&&(t[0]=f.call(this,n,o.html())),Me(o,t,i,r)});if(p&&(o=(n=Se(t,e[0].ownerDocument,!1,e,r)).firstChild,1===n.childNodes.length&&(n=o),o||r)){for(s=(a=I.map(ye(n,"script"),Ue)).length;l0&&be(a,!c&&ye(e,"script")),s},cleanData:function(e){for(var t,i,r,n=I.event.special,o=0;void 0!==(i=e[o]);o++)if(J(i)){if(t=i[X.expando]){if(t.events)for(r in t.events)n[r]?I.event.remove(i,r):I.removeEvent(i,r,t.handle);i[X.expando]=void 0}i[$.expando]&&(i[$.expando]=void 0)}}}),I.fn.extend({detach:function(e){return je(this,e,!0)},remove:function(e){return je(this,e)},text:function(e){return q(this,function(e){return void 0===e?I.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Me(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Re(this,e).appendChild(e)})},prepend:function(){return Me(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Re(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Me(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Me(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(I.cleanData(ye(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return I.clone(this,e,t)})},html:function(e){return q(this,function(e){var t=this[0]||{},i=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!he[(fe.exec(e)||["",""])[1].toLowerCase()]){e=I.htmlPrefilter(e);try{for(;i3,oe.removeChild(e)),s}}))}();var We=["Webkit","Moz","ms"],Ke=v.createElement("div").style,He={};function Ye(e){var t=I.cssProps[e]||He[e];return t||(e in Ke?e:He[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),i=We.length;i--;)if((e=We[i]+t)in Ke)return e}(e)||e)}var Je=/^(none|table(?!-c[ea]).+)/,Qe=/^--/,Xe={position:"absolute",visibility:"hidden",display:"block"},$e={letterSpacing:"0",fontWeight:"400"};function Ze(e,t,i){var r=re.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function et(e,t,i,r,n,o){var a="width"===t?1:0,s=0,c=0;if(i===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===i&&(c+=I.css(e,i+ne[a],!0,n)),r?("content"===i&&(c-=I.css(e,"padding"+ne[a],!0,n)),"margin"!==i&&(c-=I.css(e,"border"+ne[a]+"Width",!0,n))):(c+=I.css(e,"padding"+ne[a],!0,n),"padding"!==i?c+=I.css(e,"border"+ne[a]+"Width",!0,n):s+=I.css(e,"border"+ne[a]+"Width",!0,n));return!r&&o>=0&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-c-s-.5))||0),c}function tt(e,t,i){var r=ze(e),n=(!h.boxSizingReliable()||i)&&"border-box"===I.css(e,"boxSizing",!1,r),o=n,a=Ve(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Fe.test(a)){if(!i)return a;a="auto"}return(!h.boxSizingReliable()&&n||!h.reliableTrDimensions()&&O(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===I.css(e,"display",!1,r))&&e.getClientRects().length&&(n="border-box"===I.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+et(e,t,i||(n?"border":"content"),o,r,a)+"px"}function it(e,t,i,r,n){return new it.prototype.init(e,t,i,r,n)}I.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=Ve(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,i,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var n,o,a,s=Y(t),c=Qe.test(t),u=e.style;if(c||(t=Ye(s)),a=I.cssHooks[t]||I.cssHooks[s],void 0===i)return a&&"get"in a&&void 0!==(n=a.get(e,!1,r))?n:u[t];"string"===(o=typeof i)&&(n=re.exec(i))&&n[1]&&(i=ue(e,t,n),o="number"),null!=i&&i==i&&("number"!==o||c||(i+=n&&n[3]||(I.cssNumber[s]?"":"px")),h.clearCloneStyle||""!==i||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(i=a.set(e,i,r))||(c?u.setProperty(t,i):u[t]=i))}},css:function(e,t,i,r){var n,o,a,s=Y(t);return Qe.test(t)||(t=Ye(s)),(a=I.cssHooks[t]||I.cssHooks[s])&&"get"in a&&(n=a.get(e,!0,i)),void 0===n&&(n=Ve(e,t,r)),"normal"===n&&t in $e&&(n=$e[t]),""===i||i?(o=parseFloat(n),!0===i||isFinite(o)?o||0:n):n}}),I.each(["height","width"],function(e,t){I.cssHooks[t]={get:function(e,i,r){if(i)return!Je.test(I.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?tt(e,t,r):Be(e,Xe,function(){return tt(e,t,r)})},set:function(e,i,r){var n,o=ze(e),a=!h.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===I.css(e,"boxSizing",!1,o),c=r?et(e,t,r,s,o):0;return s&&a&&(c-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-et(e,t,"border",!1,o)-.5)),c&&(n=re.exec(i))&&"px"!==(n[3]||"px")&&(e.style[t]=i,i=I.css(e,t)),Ze(0,i,c)}}}),I.cssHooks.marginLeft=qe(h.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ve(e,"marginLeft"))||e.getBoundingClientRect().left-Be(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),I.each({margin:"",padding:"",border:"Width"},function(e,t){I.cssHooks[e+t]={expand:function(i){for(var r=0,n={},o="string"==typeof i?i.split(" "):[i];r<4;r++)n[e+ne[r]+t]=o[r]||o[r-2]||o[0];return n}},"margin"!==e&&(I.cssHooks[e+t].set=Ze)}),I.fn.extend({css:function(e,t){return q(this,function(e,t,i){var r,n,o={},a=0;if(Array.isArray(t)){for(r=ze(e),n=t.length;a1)}}),I.Tween=it,it.prototype={constructor:it,init:function(e,t,i,r,n,o){this.elem=e,this.prop=i,this.easing=n||I.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(I.cssNumber[i]?"":"px")},cur:function(){var e=it.propHooks[this.prop];return e&&e.get?e.get(this):it.propHooks._default.get(this)},run:function(e){var t,i=it.propHooks[this.prop];return this.options.duration?this.pos=t=I.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):it.propHooks._default.set(this),this}},it.prototype.init.prototype=it.prototype,it.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=I.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){I.fx.step[e.prop]?I.fx.step[e.prop](e):1!==e.elem.nodeType||!I.cssHooks[e.prop]&&null==e.elem.style[Ye(e.prop)]?e.elem[e.prop]=e.now:I.style(e.elem,e.prop,e.now+e.unit)}}},it.propHooks.scrollTop=it.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},I.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},I.fx=it.prototype.init,I.fx.step={};var rt,nt,ot=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function st(){nt&&(!1===v.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(st):i.setTimeout(st,I.fx.interval),I.fx.tick())}function ct(){return i.setTimeout(function(){rt=void 0}),rt=Date.now()}function ut(e,t){var i,r=0,n={height:e};for(t=t?1:0;r<4;r+=2-t)n["margin"+(i=ne[r])]=n["padding"+i]=e;return t&&(n.opacity=n.width=e),n}function dt(e,t,i){for(var r,n=(lt.tweeners[t]||[]).concat(lt.tweeners["*"]),o=0,a=n.length;o1)},removeAttr:function(e){return this.each(function(){I.removeAttr(this,e)})}}),I.extend({attr:function(e,t,i){var r,n,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?I.prop(e,t,i):(1===o&&I.isXMLDoc(e)||(n=I.attrHooks[t.toLowerCase()]||(I.expr.match.bool.test(t)?pt:void 0)),void 0!==i?null===i?void I.removeAttr(e,t):n&&"set"in n&&void 0!==(r=n.set(e,i,t))?r:(e.setAttribute(t,i+""),i):n&&"get"in n&&null!==(r=n.get(e,t))?r:null==(r=I.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&O(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,r=0,n=t&&t.match(M);if(n&&1===e.nodeType)for(;i=n[r++];)e.removeAttribute(i)}}),pt={set:function(e,t,i){return!1===t?I.removeAttr(e,i):e.setAttribute(i,i),i}},I.each(I.expr.match.bool.source.match(/\w+/g),function(e,t){var i=mt[t]||I.find.attr;mt[t]=function(e,t,r){var n,o,a=t.toLowerCase();return r||(o=mt[a],mt[a]=n,n=null!=i(e,t,r)?a:null,mt[a]=o),n}});var ft=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function ht(e){return(e.match(M)||[]).join(" ")}function yt(e){return e.getAttribute&&e.getAttribute("class")||""}function bt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(M)||[]}I.fn.extend({prop:function(e,t){return q(this,I.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[I.propFix[e]||e]})}}),I.extend({prop:function(e,t,i){var r,n,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&I.isXMLDoc(e)||(t=I.propFix[t]||t,n=I.propHooks[t]),void 0!==i?n&&"set"in n&&void 0!==(r=n.set(e,i,t))?r:e[t]=i:n&&"get"in n&&null!==(r=n.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=I.find.attr(e,"tabindex");return t?parseInt(t,10):ft.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(I.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),I.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){I.propFix[this.toLowerCase()]=this}),I.fn.extend({addClass:function(e){var t,i,r,n,o,a,s,c=0;if(y(e))return this.each(function(t){I(this).addClass(e.call(this,t,yt(this)))});if((t=bt(e)).length)for(;i=this[c++];)if(n=yt(i),r=1===i.nodeType&&" "+ht(n)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");n!==(s=ht(r))&&i.setAttribute("class",s)}return this},removeClass:function(e){var t,i,r,n,o,a,s,c=0;if(y(e))return this.each(function(t){I(this).removeClass(e.call(this,t,yt(this)))});if(!arguments.length)return this.attr("class","");if((t=bt(e)).length)for(;i=this[c++];)if(n=yt(i),r=1===i.nodeType&&" "+ht(n)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");n!==(s=ht(r))&&i.setAttribute("class",s)}return this},toggleClass:function(e,t){var i=typeof e,r="string"===i||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):y(e)?this.each(function(i){I(this).toggleClass(e.call(this,i,yt(this),t),t)}):this.each(function(){var t,n,o,a;if(r)for(n=0,o=I(this),a=bt(e);t=a[n++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==i||((t=yt(this))&&X.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":X.get(this,"__className__")||""))})},hasClass:function(e){var t,i,r=0;for(t=" "+e+" ";i=this[r++];)if(1===i.nodeType&&(" "+ht(yt(i))+" ").indexOf(t)>-1)return!0;return!1}});var vt=/\r/g;I.fn.extend({val:function(e){var t,i,r,n=this[0];return arguments.length?(r=y(e),this.each(function(i){var n;1===this.nodeType&&(null==(n=r?e.call(this,i,I(this).val()):e)?n="":"number"==typeof n?n+="":Array.isArray(n)&&(n=I.map(n,function(e){return null==e?"":e+""})),(t=I.valHooks[this.type]||I.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,n,"value")||(this.value=n))})):n?(t=I.valHooks[n.type]||I.valHooks[n.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(n,"value"))?i:"string"==typeof(i=n.value)?i.replace(vt,""):null==i?"":i:void 0}}),I.extend({valHooks:{option:{get:function(e){var t=I.find.attr(e,"value");return null!=t?t:ht(I.text(e))}},select:{get:function(e){var t,i,r,n=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],c=a?o+1:n.length;for(r=o<0?c:a?o:0;r-1)&&(i=!0);return i||(e.selectedIndex=-1),o}}}}),I.each(["radio","checkbox"],function(){I.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=I.inArray(I(e).val(),t)>-1}},h.checkOn||(I.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),h.focusin="onfocusin"in i;var St=/^(?:focusinfocus|focusoutblur)$/,Tt=function(e){e.stopPropagation()};I.extend(I.event,{trigger:function(e,t,r,n){var o,a,s,c,u,d,l,p,f=[r||v],g=m.call(e,"type")?e.type:e,h=m.call(e,"namespace")?e.namespace.split("."):[];if(a=p=s=r=r||v,3!==r.nodeType&&8!==r.nodeType&&!St.test(g+I.event.triggered)&&(g.indexOf(".")>-1&&(g=(h=g.split(".")).shift(),h.sort()),u=g.indexOf(":")<0&&"on"+g,(e=e[I.expando]?e:new I.Event(g,"object"==typeof e&&e)).isTrigger=n?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:I.makeArray(t,[e]),l=I.event.special[g]||{},n||!l.trigger||!1!==l.trigger.apply(r,t))){if(!n&&!l.noBubble&&!b(r)){for(c=l.delegateType||g,St.test(c+g)||(a=a.parentNode);a;a=a.parentNode)f.push(a),s=a;s===(r.ownerDocument||v)&&f.push(s.defaultView||s.parentWindow||i)}for(o=0;(a=f[o++])&&!e.isPropagationStopped();)p=a,e.type=o>1?c:l.bindType||g,(d=(X.get(a,"events")||Object.create(null))[e.type]&&X.get(a,"handle"))&&d.apply(a,t),(d=u&&a[u])&&d.apply&&J(a)&&(e.result=d.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,n||e.isDefaultPrevented()||l._default&&!1!==l._default.apply(f.pop(),t)||!J(r)||u&&y(r[g])&&!b(r)&&((s=r[u])&&(r[u]=null),I.event.triggered=g,e.isPropagationStopped()&&p.addEventListener(g,Tt),r[g](),e.isPropagationStopped()&&p.removeEventListener(g,Tt),I.event.triggered=void 0,s&&(r[u]=s)),e.result}},simulate:function(e,t,i){var r=I.extend(new I.Event,i,{type:e,isSimulated:!0});I.event.trigger(r,null,t)}}),I.fn.extend({trigger:function(e,t){return this.each(function(){I.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];if(i)return I.event.trigger(e,t,i,!0)}}),h.focusin||I.each({focus:"focusin",blur:"focusout"},function(e,t){var i=function(e){I.event.simulate(t,e.target,I.event.fix(e))};I.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,n=X.access(r,t);n||r.addEventListener(e,i,!0),X.access(r,t,(n||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,n=X.access(r,t)-1;n?X.access(r,t,n):(r.removeEventListener(e,i,!0),X.remove(r,t))}}});var Et=i.location,It={guid:Date.now()},At=/\?/;I.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new i.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||I.error("Invalid XML: "+e),t};var Pt=/\[\]$/,_t=/\r?\n/g,Ct=/^(?:submit|button|image|reset|file)$/i,Dt=/^(?:input|select|textarea|keygen)/i;function Ot(e,t,i,r){var n;if(Array.isArray(t))I.each(t,function(t,n){i||Pt.test(e)?r(e,n):Ot(e+"["+("object"==typeof n&&null!=n?t:"")+"]",n,i,r)});else if(i||"object"!==E(t))r(e,t);else for(n in t)Ot(e+"["+n+"]",t[n],i,r)}I.param=function(e,t){var i,r=[],n=function(e,t){var i=y(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!I.isPlainObject(e))I.each(e,function(){n(this.name,this.value)});else for(i in e)Ot(i,e[i],t,n);return r.join("&")},I.fn.extend({serialize:function(){return I.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=I.prop(this,"elements");return e?I.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!I(this).is(":disabled")&&Dt.test(this.nodeName)&&!Ct.test(e)&&(this.checked||!me.test(e))}).map(function(e,t){var i=I(this).val();return null==i?null:Array.isArray(i)?I.map(i,function(e){return{name:t.name,value:e.replace(_t,"\r\n")}}):{name:t.name,value:i.replace(_t,"\r\n")}}).get()}});var xt=/%20/g,wt=/#.*$/,Rt=/([?&])_=[^&]*/,Ut=/^(.*?):[ \t]*([^\r\n]*)$/gm,Nt=/^(?:GET|HEAD)$/,kt=/^\/\//,Lt={},Mt={},jt="*/".concat("*"),Ft=v.createElement("a");function zt(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var r,n=0,o=t.toLowerCase().match(M)||[];if(y(i))for(;r=o[n++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(i)):(e[r]=e[r]||[]).push(i)}}function Bt(e,t,i,r){var n={},o=e===Mt;function a(s){var c;return n[s]=!0,I.each(e[s]||[],function(e,s){var u=s(t,i,r);return"string"!=typeof u||o||n[u]?o?!(c=u):void 0:(t.dataTypes.unshift(u),a(u),!1)}),c}return a(t.dataTypes[0])||!n["*"]&&a("*")}function Gt(e,t){var i,r,n=I.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((n[i]?e:r||(r={}))[i]=t[i]);return r&&I.extend(!0,e,r),e}Ft.href=Et.href,I.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":jt,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":I.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,I.ajaxSettings),t):Gt(I.ajaxSettings,e)},ajaxPrefilter:zt(Lt),ajaxTransport:zt(Mt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,n,o,a,s,c,u,d,l,p,m=I.ajaxSetup({},t),f=m.context||m,g=m.context&&(f.nodeType||f.jquery)?I(f):I.event,h=I.Deferred(),y=I.Callbacks("once memory"),b=m.statusCode||{},S={},T={},E="canceled",A={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=Ut.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){return null==u&&(e=T[e.toLowerCase()]=T[e.toLowerCase()]||e,S[e]=t),this},overrideMimeType:function(e){return null==u&&(m.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)A.always(e[A.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||E;return r&&r.abort(t),P(0,t),this}};if(h.promise(A),m.url=((e||m.url||Et.href)+"").replace(kt,Et.protocol+"//"),m.type=t.method||t.type||m.method||m.type,m.dataTypes=(m.dataType||"*").toLowerCase().match(M)||[""],null==m.crossDomain){c=v.createElement("a");try{c.href=m.url,c.href=c.href,m.crossDomain=Ft.protocol+"//"+Ft.host!=c.protocol+"//"+c.host}catch(e){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=I.param(m.data,m.traditional)),Bt(Lt,m,t,A),u)return A;for(l in(d=I.event&&m.global)&&0==I.active++&&I.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!Nt.test(m.type),n=m.url.replace(wt,""),m.hasContent?m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded")&&(m.data=m.data.replace(xt,"+")):(p=m.url.slice(n.length),m.data&&(m.processData||"string"==typeof m.data)&&(n+=(At.test(n)?"&":"?")+m.data,delete m.data),!1===m.cache&&(n=n.replace(Rt,"$1"),p=(At.test(n)?"&":"?")+"_="+It.guid+++p),m.url=n+p),m.ifModified&&(I.lastModified[n]&&A.setRequestHeader("If-Modified-Since",I.lastModified[n]),I.etag[n]&&A.setRequestHeader("If-None-Match",I.etag[n])),(m.data&&m.hasContent&&!1!==m.contentType||t.contentType)&&A.setRequestHeader("Content-Type",m.contentType),A.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+jt+"; q=0.01":""):m.accepts["*"]),m.headers)A.setRequestHeader(l,m.headers[l]);if(m.beforeSend&&(!1===m.beforeSend.call(f,A,m)||u))return A.abort();if(E="abort",y.add(m.complete),A.done(m.success),A.fail(m.error),r=Bt(Mt,m,t,A)){if(A.readyState=1,d&&g.trigger("ajaxSend",[A,m]),u)return A;m.async&&m.timeout>0&&(s=i.setTimeout(function(){A.abort("timeout")},m.timeout));try{u=!1,r.send(S,P)}catch(e){if(u)throw e;P(-1,e)}}else P(-1,"No Transport");function P(e,t,a,c){var l,p,v,S,T,E=t;u||(u=!0,s&&i.clearTimeout(s),r=void 0,o=c||"",A.readyState=e>0?4:0,l=e>=200&&e<300||304===e,a&&(S=function(e,t,i){for(var r,n,o,a,s=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(n in s)if(s[n]&&s[n].test(r)){c.unshift(n);break}if(c[0]in i)o=c[0];else{for(n in i){if(!c[0]||e.converters[n+" "+c[0]]){o=n;break}a||(a=n)}o=o||a}if(o)return o!==c[0]&&c.unshift(o),i[o]}(m,A,a)),!l&&I.inArray("script",m.dataTypes)>-1&&(m.converters["text script"]=function(){}),S=function(e,t,i,r){var n,o,a,s,c,u={},d=e.dataTypes.slice();if(d[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=d.shift();o;)if(e.responseFields[o]&&(i[e.responseFields[o]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=o,o=d.shift())if("*"===o)o=c;else if("*"!==c&&c!==o){if(!(a=u[c+" "+o]||u["* "+o]))for(n in u)if((s=n.split(" "))[1]===o&&(a=u[c+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[n]:!0!==u[n]&&(o=s[0],d.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+c+" to "+o}}}return{state:"success",data:t}}(m,S,A,l),l?(m.ifModified&&((T=A.getResponseHeader("Last-Modified"))&&(I.lastModified[n]=T),(T=A.getResponseHeader("etag"))&&(I.etag[n]=T)),204===e||"HEAD"===m.type?E="nocontent":304===e?E="notmodified":(E=S.state,p=S.data,l=!(v=S.error))):(v=E,!e&&E||(E="error",e<0&&(e=0))),A.status=e,A.statusText=(t||E)+"",l?h.resolveWith(f,[p,E,A]):h.rejectWith(f,[A,E,v]),A.statusCode(b),b=void 0,d&&g.trigger(l?"ajaxSuccess":"ajaxError",[A,m,l?p:v]),y.fireWith(f,[A,E]),d&&(g.trigger("ajaxComplete",[A,m]),--I.active||I.event.trigger("ajaxStop")))}return A},getJSON:function(e,t,i){return I.get(e,t,i,"json")},getScript:function(e,t){return I.get(e,void 0,t,"script")}}),I.each(["get","post"],function(e,t){I[t]=function(e,i,r,n){return y(i)&&(n=n||r,r=i,i=void 0),I.ajax(I.extend({url:e,type:t,dataType:n,data:i,success:r},I.isPlainObject(e)&&e))}}),I.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),I._evalUrl=function(e,t,i){return I.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){I.globalEval(e,t,i)}})},I.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=I(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return y(e)?this.each(function(t){I(this).wrapInner(e.call(this,t))}):this.each(function(){var t=I(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)})},wrap:function(e){var t=y(e);return this.each(function(i){I(this).wrapAll(t?e.call(this,i):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){I(this).replaceWith(this.childNodes)}),this}}),I.expr.pseudos.hidden=function(e){return!I.expr.pseudos.visible(e)},I.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},I.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(e){}};var Vt={0:200,1223:204},qt=I.ajaxSettings.xhr();h.cors=!!qt&&"withCredentials"in qt,h.ajax=qt=!!qt,I.ajaxTransport(function(e){var t,r;if(h.cors||qt&&!e.crossDomain)return{send:function(n,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)s.setRequestHeader(a,n[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Vt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout(function(){t&&r()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),I.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),I.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return I.globalEval(e),e}}}),I.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),I.ajaxTransport("script",function(e){var t,i;if(e.crossDomain||e.scriptAttrs)return{send:function(r,n){t=I("