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 n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.APIStatus=t.ErrorType=t.USPStatus=t.GDPRStatus=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=n(8);t.Utility=r.default;var i=n(10);t.Constant=i.default;var o=n(11);t.CallbackType=o.default;var a=n(12);t.DocumentType=a.default;var s=n(13);t.FrequencyCapUnit=s.default;var u=n(14);t.FrequencyType=u.default;var c=n(15);t.InsertionType=c.default;var l=n(16);t.LoadType=l.default;var d=n(17);t.PageType=d.default;var p=n(18);t.PlacementState=p.default;var f=n(19);t.PlacementType=f.default;var m=n(20);t.ReferrerType=m.default;var g=n(21);t.TagType=g.default;var h=n(22);t.DFPTemplateParams=h.default;var y=n(23);t.DFPPlacementParams=y.default;var b=n(24);t.DeviceType=b.default;var v=n(25);t.RefreshType=v.default;var S=n(26);t.TemplateConfig=S.default;var T=n(27);t.PlacementConfig=T.default;var I=n(2);t.GDPRStatus=I.default;var A=n(3);t.USPStatus=A.default;var E=n(28);t.ErrorType=E.default;var P=n(29);t.APIStatus=P.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Site=t.Template=t.Placement=t.Targeting=t.Tag=t.Selector=t.Frequency=t.CustomVariable=t.Callback=void 0;var r=n(7);t.Callback=r.default;var i=n(30);t.CustomVariable=i.default;var o=n(31);t.Frequency=o.default;var a=n(32);t.Selector=a.default;var s=n(33);t.Tag=s.default;var u=n(34);t.Targeting=u.default;var c=n(4);t.Placement=c.default;var l=n(41);t.Template=l.default;var d=n(42);t.Site=d.default},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.GDPRStatus=void 0,function(e){e.APPLICABLE="APPLICABLE",e.NOT_APPLICABLE="NOT_APPLICABLE",e.INPROGRESS="INPROGRESS"}(r=t.GDPRStatus||(t.GDPRStatus={})),t.default=r},function(e,t,n){"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,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=1||"fluid"==r||"oop"==r))return!1}return!0},e.prototype.createDAT=function(e){var t=e.getTargetName(),n=e.getSiteDFPKeyName()+"/"+t;this.mSelector.getIdentifier();for(var r=[],i=function(e){if(e.indexOf("x")>=1){var t=e.split("x");if(t.length>2)return"continue";var n=!1;if(t.forEach(function(e){Number(e)||(n=!0)}),n)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.getGDPRStatus()==u.GDPRStatus.NOT_APPLICABLE&&this.mTemplate.getUSPStatus()==u.USPStatus.NOT_APPLICABLE?e.replace(a,r.getFromCookie(u.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,u.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())}else if(a.indexOf("CUSTOM")>-1){var s=a.replace("%%CUSTOM:","").replace("%%",""),c="";i[s]&&void 0!=i[s].getValue()?c=i[s].getValue():u.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,c)}}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){u.Utility.getInstance().ic_ga_event("placement.prepareCustomDiv",u.Utility.getInstance().prepareGALabel(c.Template.getAPIKey(),this.mTemplate.getPageId(),t+") "+e.message+" PlacementId: "+this.mId))}return e},e.prototype.dropCustomDiv=function(e){var t="0";try{var n=this.mTemplate.getElementForThePlacement(this.mRandomNumber),r=void 0;if(t="1",!n)return;switch(r=u.Utility.ICJQuery(n),t="2",this.mSelector.getInsertionType()){case u.InsertionType.AFTER:r.after(e);break;case u.InsertionType.BEFORE:r.before(e);break;case u.InsertionType.FIRST_CHILD:r.prepend(e);break;case u.InsertionType.LAST_CHILD:r.append(e);break;case u.InsertionType.REPEAT:r.prepend(e)}}catch(e){u.Utility.getInstance().ic_ga_event("placement.dropCustomDiv",u.Utility.getInstance().prepareGALabel(c.Template.getAPIKey(),this.mTemplate.getPageId(),t+") "+e.message+" $# "+this.mId+" $# "+this.mSelector.getInsertionType()))}},e.prototype.setTargetToDFPParams=function(e){if(this.mType!=u.PlacementType.PIXEL&&e.getType()==u.TagType.DISPLAY){this.mDFPParams.setTarget(e.getTargetName());var t=[];if(null==e.getTargetKval()){var n=this.mTemplate.getTargetData(e.getTargetName());null!=n&&(t=n.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=u.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!=u.PlacementType.PIXEL&&e.getType()==u.TagType.DISPLAY){var t=this.prepareAdPositionsParams();null!=t.browserSize&&this.mTemplate.getDocumentType()==u.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!=u.PlacementType.PIXEL&&e.getType()==u.TagType.DISPLAY)if(this.mTemplate.getDocumentType()==u.DocumentType.FRIENDLYFRAME&&parent==top||this.mTemplate.getDocumentType()==u.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!=u.PlacementType.PIXEL&&e.getType()==u.TagType.DISPLAY&&this.mTemplate.isAdomikEnable()){this.mDFPParams.setAdomikRandomNumber(u.Utility.getInstance().adomikRandomAdGroup()),this.mDFPParams.setAdomikHour((new Date).getUTCHours().toString());var t=Math.random(),n=t<.1?t<.09?"e"+Math.floor(200*t):"b":"o";this.mDFPParams.setAdxRandomNumber(n),this.mDFPParams.setAdxHour((new Date).getUTCHours().toString())}},e.prototype.getLogParams=function(e,t){var n=e.getId(),i=this.mId;"ADVANCE"==this.mPublisherType&&(n=null,i=null);var o={publisherType:this.mPublisherType,pageId:""+this.mTemplate.getPageId(),rnd:""+this.mRandomNumber,apiKey:c.Template.getAPIKey(),placementId:""+i,placementType:this.mType,tagId:""+n,tagType:e.getType(),logType:t,documentType:this.mTemplate.getDocumentType(),device:this.mTemplate.getDeviceType(),sitename:"",adsize:"",dfpKval:encodeURIComponent("bs:"+u.Utility.getInstance().getBrowserSize()),atStatus:this.mTemplate.getAutoTargetStatus(),version:u.Constant.VERSION,uspstring:this.mTemplate.getUSPString(),refererUrl:encodeURIComponent(this.mTemplate.getReferer()),pageUrl:encodeURIComponent(this.mTemplate.getUrl()),renderType:""};if(this.mType==u.PlacementType.HTML&&(o.renderType=this.mSelector.getInsertionType(),e.getType()==u.TagType.DISPLAY)){this.updateViewabilityAttributesToDFPParams(e),this.updateAdPositionParametersToDFPParams(e),o.sitename=e.getSiteDFPKeyName()+"/"+e.getTargetName(),o.adsize=e.getAdSize();var a={},s=this.getTickerValues(e),l=this.mTemplate.getParametersForDFP();a=s.length>0?r(r(r(r(r(r({},this.mPublisherKval),this.mDFPParams),this.mDFPDMPParams),this.mDFPSSPParams),l),{t:s}):r(r(r(r(r({},this.mPublisherKval),this.mDFPParams),this.mDFPDMPParams),this.mDFPSSPParams),l);var d="";for(var p in a)"tl"!=p&&"rnd"!=p&&"pageId"!=p&&"dt"!=p&&"d"!=p&&"referer"!=p&&(d+=p+":"+a[p]+";");o.dfpKval=d.length>0?encodeURIComponent(d.replace(/;\s*$/,"")):d}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=u.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!=l.SSP.getInstance()){var n=void 0;if(n=this.mIsSortableV2Enable?l.SSP.getInstance().getBids(this.mICDivId,this.sspCallback.bind(this)):l.SSP.getInstance().getBids(this.mICDivId)){if(n.a9)for(var r in n.a9)this.mDFPSSPParams[r]=""+n.a9[r];if(n.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 i=-2,o="",a="",c="",d="",p=this.mTemplate.getSSPPrebidIgnoreList();for(var r in n.prebid){var f=n.prebid[r];if(p.indexOf(r)>=0)for(var m in f)this.mDFPSSPParams[m]=""+f[m];else for(var m in f)if(!m.endsWith("_id")&&!m.endsWith("_d")&&i=-1&&(this.mDFPSSPParams["pb_"+c]=""+i,i>0&&(this.mDFPSSPParams.pb_v=o,a&&(this.mDFPSSPParams["pb_"+c+"_id"]=a),d&&(this.mDFPSSPParams["pb_"+c+"_d"]=d)))}if(n.markit)for(var r in n.markit)this.mDFPSSPParams[r]=""+n.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()&&u.Utility.window.Krux&&(u.Utility.window.Krux.user||u.Utility.window.ic_krux_getuserid(),this.mDFPDMPParams.kuid=u.Utility.window.Krux.user,!u.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;u.Utility.window.ic_krux_getuserid(),u.Utility.window.Krux.user?(this.mDFPDMPParams.kuid=u.Utility.window.Krux.user,clearInterval(this.mKruxTimeoutInstance)):this.mKruxTimeoutInstance=setTimeout(function(){return e.getKruxData()},this.mTemplate.getKruxTimeout())},e.prototype.validateSSP=function(e,t){var n=this;if(this.mTemplate.getGDPRStatus()==u.GDPRStatus.NOT_APPLICABLE&&this.mTemplate.getUSPStatus()==u.USPStatus.NOT_APPLICABLE){var r=(new Date).valueOf()-this.mTemplate.getLastDFPCallTime();if(r0){var a=this.mTemplate.getPredictiveValue(this,this.mDATRefreshType,o);i=this.mTemplate.isSspHVPlacement(a)}}l.SSP.getInstance().refreshBids(this.mICDivId,this.mDATRefreshType,i),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,n,r){var i=this,o=t-((new Date).getTime()-this.mSSPFetchBidsStartTime);if((!l.SSP.getInstance()||"RECEIVED"!=l.SSP.getInstance().getStatus(this.mICDivId)&&"NOT_APPLICABLE"!=l.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(){i.waitForSSP(e,t,n,!1)},a)}else clearInterval(this.mWaitForSSPTimeout),this.mSSPFetchBidsStartTime=0,n?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 n=this.mTemplate.getParametersForDFP();"t"in n&&(t=t.concat(n.t.toUpperCase().split(",")))}catch(e){}return t=u.Utility.getInstance().removeDuplicateFromArray(t)},e.prototype.renderDisplayTag=function(e){var t=this;if(this.mDATRefreshType=u.RefreshType.ONLOAD,e.getTargetName().indexOf(".bottom")>0&&!this.mTemplate.eligibleForBottomZoning(this)){if(e.disableBottomZoning(),e.getDAT()){var n=e.getDAT(),i=n.getTargeting();n.destroy(),n=this.createDAT(e),e.setDAT(n),e.getSizeMapping()&&e.getDAT().defineSizeMapping(e.getSizeMapping()),n.setTargeting(i)}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(),c=r(r({},this.mTemplate.getPublisherKval()),this.mPublisherKval),d={};if(d=a.length>0?r(r(r(r(r(r({},c),this.mDFPParams),this.mDFPDMPParams),this.mDFPSSPParams),s),{t:a}):r(r(r(r(r({},c),this.mDFPParams),this.mDFPDMPParams),this.mDFPSSPParams),s),o.setTargeting(d),this.mTemplate.getDocumentType()==u.DocumentType.IFRAME){o.setTargetingByKey("rft",[""])}try{this.mTemplate.isDebugModeEnabled()&&u.Utility.getInstance().debugConsoleMessage("Calling DFP for "+e.getAdSize()+" with the parameters ",[d])}catch(e){}if(this.mIsSortableV2Enable){var p=l.SortableV2.getInstance(),f=l.DATManager.getInstance();p&&f&&(p.display(o),p.refresh([o],!0))}else this.mTemplate.isSingleRequestEnabled()?this.mLoadType==u.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 n=this.getTickerValues(e),o=this.mTemplate.getParametersForDFP(),a=r(r({},this.mTemplate.getPublisherKval()),this.mPublisherKval),s={};s=n.length>0?r(r(r(r(r(r({},a),this.mDFPParams),this.mDFPDMPParams),this.mDFPSSPParams),o),{t:n}):r(r(r(r(r({},a),this.mDFPParams),this.mDFPDMPParams),this.mDFPSSPParams),o),t.setTargeting(s);try{this.mTemplate.isDebugModeEnabled()&&u.Utility.getInstance().debugConsoleMessage("Refreshing the tag "+e.getAdSize(),[s])}catch(e){}if(this.mIsSortableV2Enable){var c=l.SortableV2.getInstance();c&&c.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=i.STOP,this.mIsDATAdIndirectAdvertiser=!1,this.mDATAdRefreshTimerInstance},e.prototype.dropTag=function(e,t){t&&u.Utility.ICJQuery(document).trigger("Callback_Preload_"+this.mRandomNumber);var n=this.replaceMacros(e.getScript(),e);if(this.mType==u.PlacementType.PIXEL)u.Utility.ICJQuery("head").prepend(n),u.Utility.getInstance().pushToReportLog(this.getLogParams(e,a.SERVED));else{if(void 0==this.mSelector)return;switch(e.getType()){case u.TagType.CUSTOM:u.Utility.ICJQuery("#"+this.mICDivId).append(n),u.Utility.getInstance().pushToReportLog(this.getLogParams(e,a.SERVED));break;case u.TagType.DISPLAY:t?this.mIsSortableV2Enable?this.renderDisplayTag(e):this.validateSSP(e,!1):this.mIsSortableV2Enable?this.refreshDisplayTag(e):this.validateSSP(e,!0);break;case u.TagType.NATIVE:case u.TagType.VIDEO:}}t&&(u.Utility.ICJQuery(document).trigger("Callback_Postload_"+this.mRandomNumber),u.Utility.ICJQuery(document).trigger("Callback_OnViewport_"+this.mRandomNumber,[this.mICDivId])),this.mState=u.PlacementState.LOADED},e.prototype.saveToStorage=function(e,t){var n=u.Utility.getInstance();n.isLocalStorageSupported()?n.saveToLocalStorage(e,t):n.saveToCookie(e,t)},e.prototype.getFromStorage=function(e){var t=u.Utility.getInstance();return t.isLocalStorageSupported()?t.getFromLocalStorage(e):t.getFromCookie(e)},e.prototype.deleteFromStorage=function(e){var t=u.Utility.getInstance();t.isLocalStorageSupported()?t.deleteFromLocalStorage(e):t.deleteFromCookie(e)},e.prototype.displayTag=function(e){var t=this;if(this.mState=u.PlacementState.INITIALIZED,this.mLastRenderedTagType=this.mTagToRender.getType(),this.mType==u.PlacementType.HTML){if(e&&!u.Utility.ICJQuery("#"+this.mICDivId).length){var n=this.prepareCustomDiv();this.dropCustomDiv(n)}this.mTagToRender.getType()!=u.TagType.DISPLAY||!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&&u.Utility.getInstance().pushToReportLog(this.getLogParams(this.mTagToRender,a.PROBABLE)),this.mLoadType){case u.LoadType.ON_LOAD:"complete"==document.readyState?this.dropTag(this.mTagToRender,e):u.Utility.ICJQuery(window).on("load",function(){t.dropTag(t.mTagToRender,e)});break;case u.LoadType.ON_VIEW:var r=u.Utility.getInstance(),i=this.mTemplate.getOnViewBufferPercentage();r.isInViewport("#"+this.mICDivId,0)?this.dropTag(this.mTagToRender,e):u.Utility.ICJQuery(document).on("scroll."+this.mRandomNumber,function(n){r.isInViewport("#"+t.mICDivId,i)&&(u.Utility.ICJQuery(document).off("scroll."+t.mRandomNumber),t.dropTag(t.mTagToRender,e))});break;case u.LoadType.ON_REALTIME:case u.LoadType.CUSTOM:this.dropTag(this.mTagToRender,e)}},e.prototype.getAbsolutePosition=function(e){var t=0,n=0;if(this.mTemplate.getDocumentType()==u.DocumentType.FRIENDLYFRAME){var r=u.Utility.window.frameElement.getBoundingClientRect();null==r||void 0==r||0==r.top&&0==r.left&&0==r.right&&0==r.bottom||(void 0!==u.Utility.window.top.pageXOffset?(t=Math.round(r.left+u.Utility.window.top.pageXOffset),n=Math.round(r.top+u.Utility.window.top.pageYOffset)):(t=Math.round(r.left+u.Utility.window.top.document.documentElement.scrollLeft),n=Math.round(r.top+u.Utility.window.top.document.documentElement.scrollTop)))}var i=e.getBoundingClientRect();return null==i||void 0==i||0==i.top&&0==i.left&&0==i.right&&0==i.bottom?null:void 0!==pageXOffset?(t+=Math.round(i.left+pageXOffset))+"x"+(n+=Math.round(i.top+pageYOffset)):(t+=Math.round(i.left+document.documentElement.scrollLeft))+"x"+(n+=Math.round(i.top+document.documentElement.scrollTop))},e.prototype.getRelativePosition=function(e){var t=0,n=0;if(this.mTemplate.getDocumentType()==u.DocumentType.FRIENDLYFRAME){var r=u.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),n=Math.round(r.top))}var i=e.getBoundingClientRect();return null==i||void 0==i||0==i.top&&0==i.left&&0==i.right&&0==i.bottom?null:(t+=Math.round(i.left))+"x"+(n+=Math.round(i.top))},e.prototype.prepareAdPositionsParams=function(){var e=null,t=null,n=null;if(this.mTemplate.getDocumentType()==u.DocumentType.FRIENDLYFRAME&&parent==top||this.mTemplate.getDocumentType()==u.DocumentType.PAGE){e=u.Utility.getInstance().getBrowserSize();var r=document.getElementById(this.mICDivId),i=this.getAbsolutePosition(r),o=this.getRelativePosition(r);i&&(t=i),o&&(n=o)}return{browserSize:e,absolutePosition:t,relativePosition:n}},e.prototype.getVisibleAreaPercentage=function(e,t,n){try{if(!u.Utility.ICJQuery(e).is(":visible"))return-2}catch(e){}var r=e.getBoundingClientRect(),i=u.Utility.getInstance().clientWindowHeight(),o=u.Utility.getInstance().clientWindowWidth(),a=r.top,s=r.left,c=0,l=0;if(this.mTemplate.getDocumentType()==u.DocumentType.FRIENDLYFRAME){var d=u.Utility.window.frameElement.getBoundingClientRect(),p=u.Utility.window.top.innerHeight,f=u.Utility.window.top.innerWidth;if(d.top>p||d.left>f||d.bottom<0||d.right<0||d.top+r.top>p||d.left+r.left>f||r.bottom<0||r.right<0)return 0;d.top<0&&(a+=d.top),d.left<0&&(s+=d.left),pi?i:h,y=y>o?o:y;var b=m<0?0:m,v=g<0?0:g;return((b=b>i?i:b)-h)*((v=v>o?o:v)-y)/(Number(n)*Number(t))*100},e.prototype.calculateViewabilityAttributes=function(){var e="300x250",t=this.getNonNullPrimaryAdSize(),n=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],i=e.split("x")[1];n.setAttribute("style","display: block; min-width: "+r+"px; min-height: "+i+"px;");var o=this.getVisibleAreaPercentage(n,+r,+i);o>=0&&(o=10*Math.ceil(o/10)),n.setAttribute("style","");var a=0;return o<=-1?a=o:o>=u.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.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=u.PlacementState.UNKNOWN,t="3",this.mDFPParams=new u.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 n=0;n1&&r.getType()==u.TagType.DISPLAY&&r.enableBottomZoning(),t="9."+n,t="11."+n,r.getPublisherKVal()){var i=r.getPublisherKVal().split("&");t="12."+n;for(var o=0;o0?this.mDATAdRefreshTimerStartTime-this.mDATAdRefreshTimerStopTime:0;this.mDATNotInViewTime+=t;var n=this.mTemplate.getAutoRefreshConfig().RefreshTime,r=this.mTemplate.getAutoRefreshConfig().OutOfViewTime;this.mIsDATAdIndirectAdvertiser&&(n=this.mTemplate.getAutoRefreshConfig().RefreshTimeIndirect,r=this.mTemplate.getAutoRefreshConfig().OutOfViewTimeIndirect),t>r?(this.mDATRefreshType=u.RefreshType.ACTIVEWINDOW,this.displayTag(!1)):this.mDATAdRefreshTimerInstance=setTimeout(function(){e.mDATRefreshType=u.RefreshType.TIME,e.displayTag(!1)},n-this.mDATInViewTime),this.mDATAdRefreshState=i.START}},e.prototype.stopRefreshTimer=function(){this.mDATAdRefreshState==i.START&&(this.mDATAdRefreshTimerStopTime=(new Date).valueOf(),this.mDATInViewTime=this.mDATInViewTime+(this.mDATAdRefreshTimerStopTime-this.mDATAdRefreshTimerStartTime),clearInterval(this.mDATAdRefreshTimerInstance),this.mDATAdRefreshState=i.STOP)},e.prototype.evaluateAdRefresh=function(e){if(this.mIsAutoRefreshEnabled&&2==this.mDATRenderedAdSize.length){var t=this.mDATRenderedAdSize[0]+"x"+this.mDATRenderedAdSize[1];if(!(this.mDFPParams.getAdRefreshCount()>=this.mTemplate.getAutoRefreshConfig().MaxRefreshCount||0!=this.mTemplate.getAutoRefreshConfig().EnabledAdSizes.length&&-1===this.mTemplate.getAutoRefreshConfig().EnabledAdSizes.indexOf(t))){var n=this.mTemplate.getAutoRefreshConfig().ViewabilityThresholdPercentage;if(this.mIsDATAdIndirectAdvertiser&&(n=this.mTemplate.getAutoRefreshConfig().ViewabilityThresholdPercentageIndirect),"300x1050"==t){if(!this.mIsDATAdIndirectAdvertiser)return void(this.mIsAutoRefreshEnabled=!1);n*=.6}e>=n?this.startRefreshTimer():this.stopRefreshTimer()}}},e.prototype.windowEventHandler=function(e){if(this.mIsAutoRefreshEnabled){var t=document.getElementById(this.mICDivId);if(t)if(e==o.BLUR)this.mTemplate.getDocumentType()!=u.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 n=this.getVisibleAreaPercentage(t,this.mDATRenderedAdSize[0],this.mDATRenderedAdSize[1]);this.evaluateAdRefresh(n)}}},e.prototype.registerWindowEvent=function(){var e=this;this.mTemplate.getDocumentType()!=u.DocumentType.IFRAME&&this.mTemplate.getAutoRefreshConfig().IsEnabled&&(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)},u.Utility.window.attachEvent?(u.Utility.window.attachEvent("onscroll",this.mScrollEvent,!0),u.Utility.window.attachEvent("onresize",this.mResizeEvent,!1),u.Utility.window.attachEvent("onfocus",this.mFocusEvent,!1),u.Utility.window.attachEvent("onblur",this.mBlurEvent,!1),this.mTemplate.getDocumentType()!=u.DocumentType.PAGE&&(u.Utility.window.top.attachEvent("onscroll",this.mScrollEvent,!0),u.Utility.window.top.attachEvent("onresize",this.mResizeEvent,!1),u.Utility.window.top.attachEvent("onfocus",this.mFocusEvent,!1),u.Utility.window.top.attachEvent("onblur",this.mBlurEvent,!1))):(u.Utility.window.addEventListener("scroll",this.mScrollEvent,!0),u.Utility.window.addEventListener("resize",this.mResizeEvent,!1),u.Utility.window.addEventListener("focus",this.mFocusEvent,!1),u.Utility.window.addEventListener("blur",this.mBlurEvent,!1),this.mTemplate.getDocumentType()!=u.DocumentType.PAGE&&(u.Utility.window.top.addEventListener("scroll",this.mScrollEvent,!0),u.Utility.window.top.addEventListener("resize",this.mResizeEvent,!1),u.Utility.window.top.addEventListener("focus",this.mFocusEvent,!1),u.Utility.window.top.addEventListener("blur",this.mBlurEvent,!1))))},e.prototype.unregisterWindowEvent=function(){this.mTemplate.getDocumentType()!=u.DocumentType.IFRAME&&this.mTemplate.getAutoRefreshConfig().IsEnabled&&(u.Utility.window.detachEvent?(u.Utility.window.detachEvent("onscroll",this.mScrollEvent,!0),u.Utility.window.detachEvent("onresize",this.mResizeEvent,!1),u.Utility.window.detachEvent("onfocus",this.mFocusEvent,!1),u.Utility.window.detachEvent("onblur",this.mBlurEvent,!1),this.mTemplate.getDocumentType()!=u.DocumentType.PAGE&&(u.Utility.window.top.detachEvent("onscroll",this.mScrollEvent,!0),u.Utility.window.top.detachEvent("onresize",this.mResizeEvent,!1),u.Utility.window.top.detachEvent("onfocus",this.mFocusEvent,!1),u.Utility.window.top.detachEvent("onblur",this.mBlurEvent,!1))):(u.Utility.window.removeEventListener("scroll",this.mScrollEvent,!0),u.Utility.window.removeEventListener("resize",this.mResizeEvent,!1),u.Utility.window.removeEventListener("focus",this.mFocusEvent,!1),u.Utility.window.removeEventListener("blur",this.mBlurEvent,!1),this.mTemplate.getDocumentType()!=u.DocumentType.PAGE&&(u.Utility.window.top.removeEventListener("scroll",this.mScrollEvent,!0),u.Utility.window.top.removeEventListener("resize",this.mResizeEvent,!1),u.Utility.window.top.removeEventListener("focus",this.mFocusEvent,!1),u.Utility.window.top.removeEventListener("blur",this.mBlurEvent,!1))))},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.eventDATSlotRenderEnded=function(e){this.mDATSlotRendered=!e.isEmpty,this.mDATRenderedAdSize=e.size,this.mTemplate.getDocumentType()!=u.DocumentType.IFRAME&&this.mTemplate.getAutoRefreshConfig().IsEnabled?(this.mIsDATAdIndirectAdvertiser=this.mTemplate.getAutoRefreshConfig().AdvertisersIndirect.indexOf(e.advertiserId)>=0,this.mTemplate.getAutoRefreshConfig().DisabledCampaigns.indexOf(e.campaignId)>=0&&(this.mIsAutoRefreshEnabled=!1)):this.mIsAutoRefreshEnabled=!1,this.mDATSlotRendered||u.Utility.ICJQuery(document).trigger("Callback_Blank_"+this.mRandomNumber)},e.prototype.eventDATImpressionViewable=function(e,t){var n=document.getElementById(this.mICDivId);if(n&&(u.Utility.getInstance().pushToReportLog(this.getLogParams(e,a.VIEWED)),!e.isOOPUnit()&&this.mDATSlotRendered&&this.mActiveBrowserWindow&&void 0!==this.mDATRenderedAdSize&&this.mDATRenderedAdSize.length>1)){var r=n.querySelectorAll("iframe[id^=google_ads_iframe_]");if(!r||r.length<1)return;var i=r[0];if(i){var o=this.getVisibleAreaPercentage(i,this.mDATRenderedAdSize[0],this.mDATRenderedAdSize[1]);this.evaluateAdRefresh(Math.round(o))}}},e.prototype.eventDATSlotVisibilityChanged=function(e){this.mDATSlotRendered&&this.mActiveBrowserWindow&&this.evaluateAdRefresh(e.inViewPercentage)},e.prototype.eventDATSlotRequested=function(e,t){u.Utility.getInstance().pushToReportLog(this.getLogParams(e,a.SERVED)),this.mKruxTimeoutInstance&&clearInterval(this.mKruxTimeoutInstance)},e.prototype.getId=function(){return this.mId},e.prototype.getState=function(){return this.mState},e.prototype.getSelector=function(){return this.mSelector},e.prototype.isParent=function(){return this.mIsParent},e.prototype.makeChild=function(){this.mIsParent=!1},e.prototype.getPriority=function(){return this.mPriority},e.prototype.getLoadType=function(){return this.mLoadType},e.prototype.getDivId=function(){return this.mICDivId},e.prototype.getPublisherType=function(){return this.mPublisherType},e.prototype.getTagToRender=function(){return this.mTagToRender},e.prototype.isEligibleForRendering=function(e){if(this.mState!=u.PlacementState.UNKNOWN&&this.mState!=u.PlacementState.SELECTOR_NOT_LOADED&&this.mState!=u.PlacementState.SELECTOR_LOADED)return!1;if(e&&this.mLoadType==u.LoadType.CUSTOM)return!1;if(void 0!=this.mTargeting&&!this.mTargeting.isIsPlacementEligibleForRendering())return!1;if(this.mFrequency){var t=this.getFromStorage(this.mStorageKey);if(t){t=JSON.parse(t);var n=new Date(t.dateTime);switch(this.mFrequency.getUnit()){case u.FrequencyCapUnit.MILLISECONDS:n.setMilliseconds(n.getMilliseconds()+this.mFrequency.getDuration());break;case u.FrequencyCapUnit.SECONDS:n.setSeconds(n.getSeconds()+this.mFrequency.getDuration());break;case u.FrequencyCapUnit.MINUTES:n.setMinutes(n.getMinutes()+this.mFrequency.getDuration());break;case u.FrequencyCapUnit.HOURS:n.setHours(n.getHours()+this.mFrequency.getDuration());break;case u.FrequencyCapUnit.DAYS:n.setDate(n.getDate()+this.mFrequency.getDuration());break;case u.FrequencyCapUnit.WEEKS:n.setDate(n.getDate()+7*this.mFrequency.getDuration());break;case u.FrequencyCapUnit.MONTHS:n.setMonth(n.getMonth()+this.mFrequency.getDuration());break;case u.FrequencyCapUnit.YEARS:n.setFullYear(n.getFullYear()+this.mFrequency.getDuration())}if(n>new Date){if(Number(t.count)>=this.mFrequency.getCap())return this.mState=u.PlacementState.CAPPING_EXPIRED,!1}else this.deleteFromStorage(this.mStorageKey)}}if(this.mType!=u.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()==u.TagType.DISPLAY&&""==this.mTagToRender.getAdSize())return this.mState=u.PlacementState.TAG_NOT_AVAILABLE,!1;if(!this.mIsParent)return!0;var r=u.Utility.getInstance();if(void 0!=this.mSelector&&r.isSelectorLoaded(this.mSelector.getIdentifier(),this.mTemplate.getPageId(),this.mId,this.mRandomNumber)){if(this.mState=u.PlacementState.SELECTOR_LOADED,!u.Utility.ICJQuery("#"+this.mICDivId).length){var i=this.prepareCustomDiv();this.dropCustomDiv(i)}return!0}return this.mState=u.PlacementState.SELECTOR_NOT_LOADED,this.mLoadType==u.LoadType.CUSTOM&&this.mTemplate.pushPlacementErrorLog(this.mId,this.mType,this.mRandomNumber,this.getPublisherType(),u.ErrorType.SELECTOR_NOT_FOUND),!1},e.prototype.isEligibleForRefreshing=function(){return(this.mState==u.PlacementState.LOADED||this.mState==u.PlacementState.VIEWED)&&this.mType==u.PlacementType.HTML},e.prototype.render=function(){var e=l.DATManager.getInstance();if(null!=e&&e.initialLoadDisabled()&&this.mTagToRender.getType()==u.TagType.DISPLAY&&(this.mTagToRender.setDAT(this.createDAT(this.mTagToRender)),this.mTagToRender.getSizeMapping()&&this.mTagToRender.getDAT().defineSizeMapping(this.mTagToRender.getSizeMapping())),this.mLoadType==u.LoadType.CUSTOM&&this.mTemplate.addTagToRenderArray(this.mICDivId,this.mTagToRender,this.mLoadType),this.mSSPFetchBidsStartTime=this.mTemplate.getSSPFetchBidsStartTime(),this.mFrequency){var t=this.getFromStorage(this.mStorageKey),n={};if(t){t=JSON.parse(decodeURIComponent(t));var r=new Date(t.dateTime),i=Number(t.count);++i,n.count=i,n.dateTime=r}else n.count=1,n.dateTime=new Date;this.saveToStorage(this.mStorageKey,JSON.stringify(n))}this.displayTag(!0)},e.prototype.getLastRenderedTagType=function(){return this.mLastRenderedTagType},e.prototype.refresh=function(){this.mDATRefreshType=u.RefreshType.MANUAL,this.displayTag(!1)},e.prototype.clear=function(){u.Utility.ICJQuery("#"+this.mICDivId).length&&u.Utility.ICJQuery("#"+this.mICDivId).remove()},e.prototype.destroy=function(){for(var e=0,t=this.mTags;e=0||(e=e.concat(n.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=d,function(e){e.STOP="STOPPED",e.START="STARTED"}(i||(i={})),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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SortableV2=t.DATManager=t.DMP=t.SSP=t.DAT=void 0;var r=n(35);t.DAT=r.default;var i=n(36);t.SSP=i.default;var o=n(38);t.DMP=o.default;var a=n(39);t.DATManager=a.default;var s=n(40);t.SortableV2=s.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UAT=t.gaElems=t.gaNewElem=void 0;var r=n(1),i=n(0);function o(e,t,n){n?(ga("create",n,"auto","UAT5JS"),ga("UAT5JS.send",{hitType:"event",eventCategory:"UAT 5 v1.9",eventAction:e,eventLabel:t})):(ga("create","UA-136075674-1","auto","UAT5UATJS"),ga("UAT5UATJS.send",{hitType:"event",eventCategory:"UAT 5 v1.9",eventAction:e,eventLabel:t}))}function a(){return!!document.querySelector("[alt='ZeroHedge']")}t.gaNewElem={},t.gaElems={},function(){var e=new Date;!function(t,n,r,i,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=n.createElement(r),s=n.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,u,c,l=[];function d(e,t){try{var n=[];if(n.push("%c IC UAT ","border-radius:4px;background:#8bc43f;color:#fff;font-weight: bold;"),n.push(e),t)for(var r=0;r0)for(var s=0;s0)for(var a=0;a0&&this.mTemplate.renderAdvancePlacements(t)}catch(e){s=this.mTemplate?this.mTemplate.getPageId():"null";r.Template.pushAPILog(i.ErrorType.PAGE_RENDERTAG_FAILED,"("+e.message+")",s)}else r.Template.pushAPILog(i.ErrorType.PAGE_OBJECT_NOT_FOUND,"(page.renderTags())")},e.prototype.refreshTags=function(e){if(p&&d("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=c.Page.getAPIStatus();if("NOT_READY"==e||"READY"==e)InvestingChannelQueue.shift()();else if("INPROGRESS"==e){c.Page.apiReady(m);break}}!function(e,t){e.push=function(n){Array.prototype.push.call(e,n),t(e)}}(InvestingChannelQueue,function(e){m()})}var g=document.currentScript||function(){for(var e=document.getElementsByTagName("script"),t=null,n=0;n-1&&-1!==r.indexOf(".js",r.length-".js".length))return e[n]}catch(e){o("uat.js","Error while parcing the script src on "+(a()?"ZeroHedge":"Other"))}return null}();null!=g?g.addEventListener("load",function(){p&&d("Script loaded."),m()}):(console.warn("IC: Not able to add load event...."),o("uat.js","Not able to add load event "+(a()?"ZeroHedge":"Other")))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=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(n,i){var o=r.Utility.getInstance();o.isInViewport("#"+i,null)?t.loadScript():r.Utility.ICJQuery(document).on("resize scroll."+e,function(){o.isInViewport("#"+i,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()})}},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=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gaElems=t.gaNewElem=void 0;var r=n(9),i=n(0),o=n(2),a=n(3);t.gaNewElem={},t.gaElems={};var s=function(){function e(){var e=this;this.mErrors=[],this.mReports=[],this.mAPIs=[],this.mGDPRStatus=o.GDPRStatus.NOT_APPLICABLE,this.mUSPStatus=a.USPStatus.NOT_APPLICABLE,i.Utility.ICJQuery(window).on("unload",function(){return e.postLogsToServer()}),setInterval(function(){e.postLogsToServer()},1e3)}return e.getInstance=function(){return this.mUtil||(this.mUtil=new e),this.mUtil},e.prototype.setGDPRStatus=function(e){this.mGDPRStatus=e},e.prototype.setUSPStatus=function(e){this.mUSPStatus=e},e.prototype.executeJS=function(t){e.ICJQuery.globalEval(t)},e.prototype.isSelectorLoaded=function(t,n,r,i){return!!e.ICJQuery("#investingchannel_div_"+i).length||this.getEmptyElementsForSelector(t,n,r).length>0},e.prototype.getEmptyElementsForSelector=function(e,t,n){var r="0";try{var o=[],a=document.querySelectorAll(e);r="1";for(var s=0;s-1){if(u[l].getAttribute("ic_pageId")!=t){c=!0;break}if(u[l].getAttribute("ic_placementid")==""+n){c=!0;break}}c||(r="2."+s,o.push(a[s]))}return o}catch(e){i.Utility.getInstance().ic_ga_event("Utility.getEmptyElementsForSelector",this.prepareGALabel("",t,r+") "+e.message+" $# "+n))}},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 n=0;n0&&(u+=a*(n/100),c+=s*(n/100),l-=a*(n/100),d-=s*(n/100)),u>=0&&c>=0&&l<=a&&d<=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){if(navigator.cookieEnabled){var t=("; "+document.cookie).split("; "+e+"=");if(2==t.length)return t.pop().split(";").shift()}return""},e.prototype.isCookieExists=function(e){if(navigator.cookieEnabled&&2==("; "+document.cookie).split("; "+e+"=").length)return!0;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){navigator.cookieEnabled&&(document.cookie=e+"=;expires=Fri, 02-Jan-1970 00:00:00 GMT;path=/")},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,n){navigator.cookieEnabled&&(document.cookie=void 0==n?e+"="+t+";path=/":e+"="+t+"; max-age="+n+";path=/")},e.prototype.getFromQueryString=function(e,t){var n=window.location.href;e=e.replace(/[\[\]]/g,"\\$&");var r=new RegExp("[?&]"+e+"(=([^&]*)|&|$)").exec(n);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 n=this.getFromLocalStorage(e);if(n)return n}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.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=[],n=[],r=0;r=0||(t.push(e[r].toLowerCase()),n.push(e[r]));return n},e.prototype.getTopWindowDomain=function(){try{return i.Utility.window.top.location.hostname}catch(e){}try{return document.referrer.match(/:\/\/(.[^/]+)/)[1]}catch(e){}return""},e.prototype.prepareGALabel=function(e,t,n){return(e||"")+" $# "+(t||"")+" $# "+n},e.prototype.initializeGA=function(){var e=new Date;!function(t,n,r,i,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=n.createElement(r),s=n.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,n){n?(ga("create",n,"auto","UAT5Data"),ga("UAT5Data.send",{hitType:"event",eventCategory:"UAT 5 v1.9",eventAction:e,eventLabel:t})):(ga("create","UA-44058249-9","auto","UAT5"),ga("UAT5.send",{hitType:"event",eventCategory:"UAT 5 v1.9",eventAction:e,eventLabel:t}))},e.prototype.postLogsToServer=function(){if(this.mReports.length>0){var t=this.mReports;this.mReports=[],e.ICJQuery.post({url:i.Constant.UAT_LOG_REPORT_URL+"?gdprstatus="+this.mGDPRStatus+"&uspstatus="+this.mUSPStatus,async:!0,data:JSON.stringify(t),contentType:"application/json; charset=UTF-8",xhrFields:{withCredentials:!0}})}if(this.mErrors.length>0){var n=this.mErrors;this.mErrors=[],e.ICJQuery.post({url:i.Constant.UAT_LOG_ERROR_URL+"?gdprstatus="+this.mGDPRStatus+"&uspstatus="+this.mUSPStatus,async:!0,data:JSON.stringify(n),contentType:"application/json; charset=UTF-8",xhrFields:{withCredentials:!0}})}if(this.mAPIs.length>0){var r=this.mAPIs;this.mAPIs=[],e.ICJQuery.post({url:i.Constant.UAT_LOG_API_URL+"?gdprstatus="+this.mGDPRStatus+"&uspstatus="+this.mUSPStatus,async:!0,data:JSON.stringify(r),contentType:"application/json; charset=UTF-8",xhrFields:{withCredentials:!0}})}},e.prototype.pushAPILog=function(t,n,r,i,o,a){var s=i.toString();s+=o;var u=e.window.location.href,c=this.updateUrlIfTranslator(t,u);c&&(u=c),a||(a="null"),this.mAPIs.push({apiKey:n,placementId:"null",placementType:"null",publisherType:"ADVANCE",pageId:a,rnd:"null",documentType:t,errorCode:e.getInstance().getErrorTypeKeyFromValue(i),errorDetail:s,kval:encodeURIComponent("bs:"+this.getBrowserSize()),refererUrl:encodeURIComponent(r),pageUrl:encodeURIComponent(u)})},e.prototype.getErrorTypeKeyFromValue=function(e){switch(e){case i.ErrorType.ADSIZE_INVALID:return"ADSIZE_INVALID";case i.ErrorType.CUSTOM_TARGETING_FAILED:return"CUSTOM_TARGETING_FAILED";case i.ErrorType.DEVICE_TARGETING_FAILED:return"DEVICE_TARGETING_FAILED";case i.ErrorType.GDPR_TARGETING_FAILED:return"GDPR_TARGETING_FAILED";case i.ErrorType.GEO_TARGETING_FAILED:return"GEO_TARGETING_FAILED";case i.ErrorType.SELECTOR_INVALID:return"SELECTOR_INVALID";case i.ErrorType.SELECTOR_NOT_FOUND:return"SELECTOR_NOT_FOUND";case i.ErrorType.TAG_NOT_CONFIGURED:return"TAG_NOT_CONFIGURED";case i.ErrorType.TARGET_INVALID:return"TARGET_INVALID";case i.ErrorType.ADSIZEMAPPING_INVALID:return"ADSIZEMAPPING_INVALID";case i.ErrorType.ADSIZEMAPPING_TARGETING_FAILED:return"ADSIZEMAPPING_TARGETING_FAILED";case i.ErrorType.NO_ADS:return"NO_ADS";case i.ErrorType.UNKNOW_ERROR:return"UNKNOW_ERROR";case i.ErrorType.PAGE_OBJECT_NOT_FOUND:return"PAGE_OBJECT_NOT_FOUND";case i.ErrorType.PAGE_DESTROY_TEMPLATE_NOT_FOUND:return"PAGE_DESTROY_TEMPLATE_NOT_FOUND";case i.ErrorType.PAGE_DESTROY_FAILED:return"PAGE_DESTROY_FAILED";case i.ErrorType.PAGE_REFRESHTAG_TAG_NOT_FOUND:return"PAGE_REFRESHTAG_TAG_NOT_FOUND";case i.ErrorType.PAGE_REFRESHTAG_FAILED:return"PAGE_REFRESHTAG_FAILED";case i.ErrorType.ADD_SIZEMAPPING_FAILED:return"ADD_SIZEMAPPING_FAILED";case i.ErrorType.BUILD_SIZEMAPPING_FAILED:return"BUILD_SIZEMAPPING_FAILED";case i.ErrorType.PAGE_DEFINETAG_SITE_MISMATCH:return"PAGE_DEFINETAG_SITE_MISMATCH";case i.ErrorType.PAGE_DEFINETAG_TARGET_NOT_FOUND:return"PAGE_DEFINETAG_TARGET_NOT_FOUND";case i.ErrorType.PAGE_DEFINETAG_INVALID_SIZE:return"PAGE_DEFINETAG_INVALID_SIZE";case i.ErrorType.PAGE_DEFINETAG_FAILED:return"PAGE_DEFINETAG_FAILED";case i.ErrorType.PAGE_DEFINETAG_INVALID_DIVID:return"PAGE_DEFINETAG_INVALID_DIVID";case i.ErrorType.PAGE_DEFINEOOPTAG_SITE_MISMATCH:return"PAGE_DEFINEOOPTAG_SITE_MISMATCH";case i.ErrorType.PAGE_DEFINEOOPTAG_TARGET_NOT_FOUND:return"PAGE_DEFINEOOPTAG_TARGET_NOT_FOUND";case i.ErrorType.PAGE_DEFINEOOPTAG_FAILED:return"PAGE_DEFINEOOPTAG_FAILED";case i.ErrorType.PAGE_DEFINEOOPTAG_INVALID_DIVID:return"PAGE_DEFINEOOPTAG_INVALID_DIVID";case i.ErrorType.PAGE_GETPUBTAG_TAG_NOT_FOUND:return"PAGE_GETPUBTAG_TAG_NOT_FOUND";case i.ErrorType.PAGE_GETPUBTAG_FAILED:return"PAGE_GETPUBTAG_FAILED";case i.ErrorType.PAGE_SETKVAL_FAILED:return"PAGE_SETKVAL_FAILED";case i.ErrorType.PAGE_CLEARKVAL_FAILED:return"PAGE_CLEARKVAL_FAILED";case i.ErrorType.PAGE_RENDERTAG_TAG_NOT_FOUND:return"PAGE_RENDERTAG_TAG_NOT_FOUND";case i.ErrorType.PAGE_RENDERTAG_FAILED:return"PAGE_RENDERTAG_FAILED";case i.ErrorType.TAG_DEFINESIZEMAPPING_FAILED:return"TAG_DEFINESIZEMAPPING_FAILED";case i.ErrorType.TAG_SETKVAL_FAILED:return"TAG_SETKVAL_FAILED";case i.ErrorType.TAG_CLEARKVAL_FAILED:return"TAG_CLEARKVAL_FAILED";case i.ErrorType.TAG_RENDER_FAILED:return"TAG_RENDER_FAILED";case i.ErrorType.TAG_REFRESH_FAILED:return"TAG_REFRESH_FAILED";case i.ErrorType.TAG_CLEAR_FAILED:return"TAG_CLEAR_FAILED";case i.ErrorType.TAG_DESTROY_FAILED:return"TAG_DESTROY_FAILED"}},e.prototype.updateUrlIfTranslator=function(e,t){if(e==i.DocumentType.IFRAME){var n=i.Utility.ICJQuery("").prop("href",t).prop("hostname");if("translate.google.com"==n.toLowerCase()||"translate.googleusercontent.com"==n.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 n=[];if(n.push("%c IC UAT ","border-radius:4px;background:#8bc43f;color:#fff;font-weight: bold;"),n.push(e),t)for(var r=0;r0&&t-1 in e)}A.fn=A.prototype={jquery:"3.5.1",constructor:A,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=A.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return A.each(this,e)},map:function(e){return this.pushStack(A.map(this,function(t,n){return e.call(t,n,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(A.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(A.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n+~]|"+j+")"+j+"*"),W=new RegExp(j+"|>"),H=new RegExp(M),K=new RegExp("^"+F+"$"),Y={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+M),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},J=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,$=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=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{N.apply(x=U.call(T.childNodes),T.childNodes),x[T.childNodes.length].nodeType}catch(e){N={apply:x.length?function(e,t){w.apply(e,U.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var o,s,c,l,d,m,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(!i&&(p(t),t=t||f,g)){if(11!==T&&(d=Z.exec(e)))if(o=d[1]){if(9===T){if(!(c=t.getElementById(o)))return r;if(c.id===o)return r.push(c),r}else if(b&&(c=b.getElementById(o))&&v(t,c)&&c.id===o)return r.push(c),r}else{if(d[2])return N.apply(r,t.getElementsByTagName(e)),r;if((o=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return N.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!_[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&&n.scope||((l=t.getAttribute("id"))?l=l.replace(re,ie):t.setAttribute("id",l=S)),s=(m=a(e)).length;s--;)m[s]=(l?"#"+l:":scope")+" "+ve(m[s]);y=m.join(",")}try{return N.apply(r,b.querySelectorAll(y)),r}catch(t){_(e,!0)}finally{l===S&&t.removeAttribute("id")}}}return u(e.replace(G,"$1"),t,r,i)}function ue(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ce(e){return e[S]=!0,e}function le(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function me(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&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 ce(function(t){return t=+t,ce(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!J.test(t||n&&n.nodeName||"HTML")},p=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:T;return a!=f&&9===a.nodeType&&a.documentElement?(m=(f=a).documentElement,g=!o(f),T!=f&&(i=f.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.scope=le(function(e){return m.appendChild(e).appendChild(f.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),n.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=le(function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=X.test(f.getElementsByClassName),n.getById=le(function(e){return m.appendChild(e).id=S,!f.getElementsByName||!f.getElementsByName(S).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},y=[],h=[],(n.qsa=X.test(f.querySelectorAll))&&(le(function(e){var t;m.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&h.push("[*^$]="+j+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||h.push("\\["+j+"*(?:value|"+L+")"),e.querySelectorAll("[id~="+S+"-]").length||h.push("~="),(t=f.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+j+"*name"+j+"*="+j+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||h.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll("\\\f"),h.push("[\\r\\n\\f]")}),le(function(e){e.innerHTML="";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&h.push("name"+j+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&h.push(":enabled",":disabled"),m.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),h.push(",.*:")})),(n.matchesSelector=X.test(b=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&le(function(e){n.disconnectedMatch=b.call(e,"*"),b.call(e,"[s!='']:x"),y.push("!=",M)}),h=h.length&&new RegExp(h.join("|")),y=y.length&&new RegExp(y.join("|")),t=X.test(m.compareDocumentPosition),v=t||X.test(m.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.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 d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==f||e.ownerDocument==T&&v(T,e)?-1:t==f||t.ownerDocument==T&&v(T,t)?1:l?k(l,e)-k(l,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==f?-1:t==f?1:i?-1:o?1:l?k(l,e)-k(l,t):0;if(i===o)return pe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?pe(a[r],s[r]):a[r]==T?-1:s[r]==T?1:0},f):f},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(p(e),n.matchesSelector&&g&&!_[t+" "]&&(!y||!y.test(t))&&(!h||!h.test(t)))try{var r=b.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){_(t,!0)}return se(t,f,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=f&&p(e),v(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=f&&p(e);var i=r.attrHandle[t.toLowerCase()],o=i&&O.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,o=0;if(d=!n.detectDuplicates,l=!n.sortStable&&e.slice(0),e.sort(D),d){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return l=null,e},i=se.getText=function(e){var t,n="",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)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=se.selectors={cacheLength:50,createPseudo:ce,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,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===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,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&H.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+j+")"+e+"("+j+"|$)"))&&E(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(B," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var c,l,d,p,f,m,g=o!==a?"nextSibling":"previousSibling",h=t.parentNode,y=s&&t.nodeName.toLowerCase(),b=!u&&!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;m=g="only"===e&&!m&&"nextSibling"}return!0}if(m=[a?h.firstChild:h.lastChild],a&&b){for(v=(f=(c=(l=(d=(p=h)[S]||(p[S]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===I&&c[1])&&c[2],p=f&&h.childNodes[f];p=++f&&p&&p[g]||(v=f=0)||m.pop();)if(1===p.nodeType&&++v&&p===t){l[e]=[I,f,v];break}}else if(b&&(v=f=(c=(l=(d=(p=t)[S]||(p[S]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===I&&c[1]),!1===v)for(;(p=++f&&p&&p[g]||(v=f=0)||m.pop())&&((s?p.nodeName.toLowerCase()!==y:1!==p.nodeType)||!++v||(b&&((l=(d=p[S]||(p[S]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]=[I,v]),p!==t)););return(v-=i)===r||v%r==0&&v/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[S]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce(function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=k(e,o[a])]=!(n[r]=o[a])}):function(e){return i(e,0,n)}):i}},pseudos:{not:ce(function(e){var t=[],n=[],r=s(e.replace(G,"$1"));return r[S]?ce(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:ce(function(e){return function(t){return se(e,t).length>0}}),contains:ce(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}}),lang:ce(function(e){return K.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===m},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.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 $.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,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;nt?t:n;--r>=0;)e.push(r);return e}),gt:he(function(e,t,n){for(var r=n<0?n+t:n;++r1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Ie(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,c=null!=t;s-1&&(o[c]=!(a[c]=d))}}else y=Ie(y===a?y.splice(m,y.length):y),i?i(null,a,y,u):N.apply(a,y)})}function Ee(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,l=Se(function(e){return e===t},s,!0),d=Se(function(e){return k(t,e)>-1},s,!0),p=[function(e,n,r){var i=!a&&(r||n!==c)||((t=n).nodeType?l(e,n,r):d(e,n,r));return t=null,i}];u1&&Te(p),u>1&&ve(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(G,"$1"),n,u0,i=e.length>0,o=function(o,a,s,u,l){var d,m,h,y=0,b="0",v=o&&[],S=[],T=c,A=o||i&&r.find.TAG("*",l),E=I+=null==T?1:Math.random()||.1,P=A.length;for(l&&(c=a==f||a||l);b!==P&&null!=(d=A[b]);b++){if(i&&d){for(m=0,a||d.ownerDocument==f||(p(d),s=!g);h=e[m++];)if(h(d,a||f,s)){u.push(d);break}l&&(I=E)}n&&((d=!h&&d)&&y--,o&&v.push(d))}if(y+=b,n&&b!==y){for(m=0;h=t[m++];)h(v,S,a,s);if(o){if(y>0)for(;b--;)v[b]||S[b]||(S[b]=R.call(u));S=Ie(S)}N.apply(u,S),l&&!o&&S.length>0&&y+t.length>1&&se.uniqueSort(u)}return l&&(I=E,c=T),v};return n?ce(o):o}(o,i))).selector=e}return s},u=se.select=function(e,t,n,i){var o,u,c,l,d,p="function"==typeof e&&e,f=!i&&a(e=p.selector||e);if(n=n||[],1===f.length){if((u=f[0]=f[0].slice(0)).length>2&&"ID"===(c=u[0]).type&&9===t.nodeType&&g&&r.relative[u[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(o=Y.needsContext.test(e)?0:u.length;o--&&(c=u[o],!r.relative[l=c.type]);)if((d=r.find[l])&&(i=d(c.matches[0].replace(te,ne),ee.test(u[0].type)&&ye(t.parentNode)||t))){if(u.splice(o,1),!(e=i.length&&ve(u)))return N.apply(n,i),n;break}}return(p||s(e,f))(i,t,!g,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},n.sortStable=S.split("").sort(D).join("")===S,n.detectDuplicates=!!d,p(),n.sortDetached=le(function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))}),le(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||de("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&le(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||de("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),le(function(e){return null==e.getAttribute("disabled")})||de(L,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(n);A.find=P,A.expr=P.selectors,A.expr[":"]=A.expr.pseudos,A.uniqueSort=A.unique=P.uniqueSort,A.text=P.getText,A.isXMLDoc=P.isXML,A.contains=P.contains,A.escapeSelector=P.escape;var C=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&A(e).is(n))break;r.push(e)}return r},_=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},D=A.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 R(e,t,n){return y(t)?A.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?A.grep(e,function(e){return e===t!==n}):"string"!=typeof t?A.grep(e,function(e){return l.call(t,e)>-1!==n}):A.filter(t,e,n)}A.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?A.find.matchesSelector(r,e)?[r]:[]:A.find.matches(e,A.grep(t,function(e){return 1===e.nodeType}))},A.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(A(e).filter(function(){for(t=0;t1?A.uniqueSort(n):n},filter:function(e){return this.pushStack(R(this,e||[],!1))},not:function(e){return this.pushStack(R(this,e||[],!0))},is:function(e){return!!R(this,"string"==typeof e&&D.test(e)?A(e):e||[],!1).length}});var w,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(A.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||w,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:N.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof A?t[0]:t,A.merge(this,A.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:v,!0)),x.test(r[1])&&A.isPlainObject(t))for(r in t)y(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=v.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(A):A.makeArray(e,this)}).prototype=A.fn,w=A(v);var U=/^(?: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}A.fn.extend({has:function(e){var t=A(e,this),n=t.length;return this.filter(function(){for(var e=0;e-1:1===n.nodeType&&A.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?A.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?l.call(A(e),this[0]):l.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(A.uniqueSort(A.merge(this.get(),A(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),A.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return C(e,"parentNode")},parentsUntil:function(e,t,n){return C(e,"parentNode",n)},next:function(e){return L(e,"nextSibling")},prev:function(e){return L(e,"previousSibling")},nextAll:function(e){return C(e,"nextSibling")},prevAll:function(e){return C(e,"previousSibling")},nextUntil:function(e,t,n){return C(e,"nextSibling",n)},prevUntil:function(e,t,n){return C(e,"previousSibling",n)},siblings:function(e){return _((e.parentNode||{}).firstChild,e)},children:function(e){return _(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(O(e,"template")&&(e=e.content||e),A.merge([],e.childNodes))}},function(e,t){A.fn[e]=function(n,r){var i=A.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=A.filter(r,i)),this.length>1&&(k[e]||A.uniqueSort(i),U.test(e)&&i.reverse()),this.pushStack(i)}});var j=/[^\x20\t\r\n\f]+/g;function F(e){return e}function z(e){throw e}function M(e,t,n,r){var i;try{e&&y(i=e.promise)?i.call(e).done(t).fail(n):e&&y(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}A.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return A.each(e.match(j)||[],function(e,n){t[n]=!0}),t}(e):A.extend({},e);var t,n,r,i,o=[],a=[],s=-1,u=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s-1;)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?A.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},A.extend({Deferred:function(e){var t=[["notify","progress",A.Callbacks("memory"),A.Callbacks("memory"),2],["resolve","done",A.Callbacks("once memory"),A.Callbacks("once memory"),0,"resolved"],["reject","fail",A.Callbacks("once memory"),A.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return A.Deferred(function(n){A.each(t,function(t,r){var i=y(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(e,r,i){var o=0;function a(e,t,r,i){return function(){var s=this,u=arguments,c=function(){var n,c;if(!(e=o&&(r!==z&&(s=void 0,u=[n]),t.rejectWith(s,u))}};e?l():(A.Deferred.getStackHook&&(l.stackTrace=A.Deferred.getStackHook()),n.setTimeout(l))}}return A.Deferred(function(n){t[0][3].add(a(0,n,y(i)?i:F,n.notifyWith)),t[1][3].add(a(0,n,y(e)?e:F)),t[2][3].add(a(0,n,y(r)?r:z))}).promise()},promise:function(e){return null!=e?A.extend(e,i):i}},o={};return A.each(t,function(e,n){var a=n[2],s=n[5];i[n[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(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith}),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),o=A.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(M(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||y(i[n]&&i[n].then)))return o.then();for(;n--;)M(i[n],a(n),o.reject);return o.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;A.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&B.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},A.readyException=function(e){n.setTimeout(function(){throw e})};var G=A.Deferred();function V(){v.removeEventListener("DOMContentLoaded",V),n.removeEventListener("load",V),A.ready()}A.fn.ready=function(e){return G.then(e).catch(function(e){A.readyException(e)}),this},A.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--A.readyWait:A.isReady)||(A.isReady=!0,!0!==e&&--A.readyWait>0||G.resolveWith(v,[A]))}}),A.ready.then=G.then,"complete"===v.readyState||"loading"!==v.readyState&&!v.documentElement.doScroll?n.setTimeout(A.ready):(v.addEventListener("DOMContentLoaded",V),n.addEventListener("load",V));var q=function(e,t,n,r,i,o,a){var s=0,u=e.length,c=null==n;if("object"===I(n))for(s in i=!0,n)q(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,y(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(A(e),n)})),t))for(;s1,null,!0)},removeData:function(e){return this.each(function(){X.remove(this,e)})}}),A.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=$.get(e,t),n&&(!r||Array.isArray(n)?r=$.access(e,t,A.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=A.queue(e,t),r=n.length,i=n.shift(),o=A._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){A.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return $.get(e,n)||$.access(e,n,{empty:A.Callbacks("once memory").add(function(){$.remove(e,[t+"queue",n])})})}}),A.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),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 n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&O(e,t)?A.merge([e],n):n}function be(e,t){for(var n=0,r=e.length;n",""]);var ve=/<|&#?\w+;/;function Se(e,t,n,r,i){for(var o,a,s,u,c,l,d=t.createDocumentFragment(),p=[],f=0,m=e.length;f-1)i&&i.push(o);else if(c=ae(o),a=ye(d.appendChild(o),"script"),c&&be(a),n)for(l=0;o=a[l++];)ge.test(o.type||"")&&n.push(o);return d}var Te=/^key/,Ie=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ae=/^([^.]*)(?:\.(.+)|)/;function Ee(){return!0}function Pe(){return!1}function Ce(e,t){return e===function(){try{return v.activeElement}catch(e){}}()==("focus"===t)}function _e(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)_e(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Pe;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return A().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=A.guid++)),e.each(function(){A.event.add(this,t,i,r,n)})}function De(e,t,n){n?($.set(e,t,!1),A.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=$.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(A.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=s.call(arguments),$.set(this,t,o),r=n(this,t),this[t](),o!==(i=$.get(this,t))||r?$.set(this,t,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else o.length&&($.set(this,t,{value:A.event.trigger(A.extend(o[0],A.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===$.get(e,t)&&A.event.add(e,t,Ee)}A.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,c,l,d,p,f,m,g,h=$.get(e);if(J(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&A.find.matchesSelector(oe,i),n.guid||(n.guid=A.guid++),(u=h.events)||(u=h.events=Object.create(null)),(a=h.handle)||(a=h.handle=function(t){return void 0!==A&&A.event.triggered!==t.type?A.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(j)||[""]).length;c--;)f=g=(s=Ae.exec(t[c])||[])[1],m=(s[2]||"").split(".").sort(),f&&(d=A.event.special[f]||{},f=(i?d.delegateType:d.bindType)||f,d=A.event.special[f]||{},l=A.extend({type:f,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&A.expr.match.needsContext.test(i),namespace:m.join(".")},o),(p=u[f])||((p=u[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,m,a)||e.addEventListener&&e.addEventListener(f,a)),d.add&&(d.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,l):p.push(l),A.event.global[f]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,c,l,d,p,f,m,g,h=$.hasData(e)&&$.get(e);if(h&&(u=h.events)){for(c=(t=(t||"").match(j)||[""]).length;c--;)if(f=g=(s=Ae.exec(t[c])||[])[1],m=(s[2]||"").split(".").sort(),f){for(d=A.event.special[f]||{},p=u[f=(r?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)l=p[o],!i&&g!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(p.splice(o,1),l.selector&&p.delegateCount--,d.remove&&d.remove.call(e,l));a&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,m,h.handle)||A.removeEvent(e,f,h.handle),delete u[f])}else for(f in u)A.event.remove(e,f+t[c],n,r,!0);A.isEmptyObject(u)&&$.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=A.event.fix(e),c=($.get(this,"events")||Object.create(null))[u.type]||[],l=A.event.special[u.type]||{};for(s[0]=u,t=1;t=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],a={},n=0;n-1:A.find(i,this,null,[c]).length),a[i]&&o.push(r);o.length&&s.push({elem:c,handlers:o})}return c=this,u\s*$/g;function we(e,t){return O(e,"table")&&O(11!==t.nodeType?t:t.firstChild,"tr")&&A(e).children("tbody")[0]||e}function Ne(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ue(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function ke(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if($.hasData(e)&&(s=$.get(e).events))for(i in $.remove(t,"handle events"),s)for(n=0,r=s[i].length;n1&&"string"==typeof m&&!h.checkClone&&xe.test(m))return e.each(function(i){var o=e.eq(i);g&&(t[0]=m.call(this,i,o.html())),je(o,t,n,r)});if(p&&(o=(i=Se(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=A.map(ye(i,"script"),Ne)).length;d0&&be(a,!u&&ye(e,"script")),s},cleanData:function(e){for(var t,n,r,i=A.event.special,o=0;void 0!==(n=e[o]);o++)if(J(n)){if(t=n[$.expando]){if(t.events)for(r in t.events)i[r]?A.event.remove(n,r):A.removeEvent(n,r,t.handle);n[$.expando]=void 0}n[X.expando]&&(n[X.expando]=void 0)}}}),A.fn.extend({detach:function(e){return Fe(this,e,!0)},remove:function(e){return Fe(this,e)},text:function(e){return q(this,function(e){return void 0===e?A.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 je(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||we(this,e).appendChild(e)})},prepend:function(){return je(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=we(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return je(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return je(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&&(A.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 A.clone(this,e,t)})},html:function(e){return q(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!he[(me.exec(e)||["",""])[1].toLowerCase()]){e=A.htmlPrefilter(e);try{for(;n3,oe.removeChild(e)),s}}))}();var We=["Webkit","Moz","ms"],He=v.createElement("div").style,Ke={};function Ye(e){var t=A.cssProps[e]||Ke[e];return t||(e in He?e:Ke[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=We.length;n--;)if((e=We[n]+t)in He)return e}(e)||e)}var Je=/^(none|table(?!-c[ea]).+)/,Qe=/^--/,$e={position:"absolute",visibility:"hidden",display:"block"},Xe={letterSpacing:"0",fontWeight:"400"};function Ze(e,t,n){var r=re.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function et(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=A.css(e,n+ie[a],!0,i)),r?("content"===n&&(u-=A.css(e,"padding"+ie[a],!0,i)),"margin"!==n&&(u-=A.css(e,"border"+ie[a]+"Width",!0,i))):(u+=A.css(e,"padding"+ie[a],!0,i),"padding"!==n?u+=A.css(e,"border"+ie[a]+"Width",!0,i):s+=A.css(e,"border"+ie[a]+"Width",!0,i));return!r&&o>=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function tt(e,t,n){var r=Me(e),i=(!h.boxSizingReliable()||n)&&"border-box"===A.css(e,"boxSizing",!1,r),o=i,a=Ve(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(ze.test(a)){if(!n)return a;a="auto"}return(!h.boxSizingReliable()&&i||!h.reliableTrDimensions()&&O(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===A.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===A.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+et(e,t,n||(i?"border":"content"),o,r,a)+"px"}function nt(e,t,n,r,i){return new nt.prototype.init(e,t,n,r,i)}A.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ve(e,"opacity");return""===n?"1":n}}}},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,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=Y(t),u=Qe.test(t),c=e.style;if(u||(t=Ye(s)),a=A.cssHooks[t]||A.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:c[t];"string"===(o=typeof n)&&(i=re.exec(n))&&i[1]&&(n=ce(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(A.cssNumber[s]?"":"px")),h.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,o,a,s=Y(t);return Qe.test(t)||(t=Ye(s)),(a=A.cssHooks[t]||A.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ve(e,t,r)),"normal"===i&&t in Xe&&(i=Xe[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),A.each(["height","width"],function(e,t){A.cssHooks[t]={get:function(e,n,r){if(n)return!Je.test(A.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?tt(e,t,r):Be(e,$e,function(){return tt(e,t,r)})},set:function(e,n,r){var i,o=Me(e),a=!h.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===A.css(e,"boxSizing",!1,o),u=r?et(e,t,r,s,o):0;return s&&a&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-et(e,t,"border",!1,o)-.5)),u&&(i=re.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=A.css(e,t)),Ze(0,n,u)}}}),A.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"}),A.each({margin:"",padding:"",border:"Width"},function(e,t){A.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ie[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(A.cssHooks[e+t].set=Ze)}),A.fn.extend({css:function(e,t){return q(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Me(e),i=t.length;a1)}}),A.Tween=nt,nt.prototype={constructor:nt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||A.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(A.cssNumber[n]?"":"px")},cur:function(){var e=nt.propHooks[this.prop];return e&&e.get?e.get(this):nt.propHooks._default.get(this)},run:function(e){var t,n=nt.propHooks[this.prop];return this.options.duration?this.pos=t=A.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),n&&n.set?n.set(this):nt.propHooks._default.set(this),this}},nt.prototype.init.prototype=nt.prototype,nt.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=A.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){A.fx.step[e.prop]?A.fx.step[e.prop](e):1!==e.elem.nodeType||!A.cssHooks[e.prop]&&null==e.elem.style[Ye(e.prop)]?e.elem[e.prop]=e.now:A.style(e.elem,e.prop,e.now+e.unit)}}},nt.propHooks.scrollTop=nt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},A.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},A.fx=nt.prototype.init,A.fx.step={};var rt,it,ot=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function st(){it&&(!1===v.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(st):n.setTimeout(st,A.fx.interval),A.fx.tick())}function ut(){return n.setTimeout(function(){rt=void 0}),rt=Date.now()}function ct(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ie[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function lt(e,t,n){for(var r,i=(dt.tweeners[t]||[]).concat(dt.tweeners["*"]),o=0,a=i.length;o1)},removeAttr:function(e){return this.each(function(){A.removeAttr(this,e)})}}),A.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?A.prop(e,t,n):(1===o&&A.isXMLDoc(e)||(i=A.attrHooks[t.toLowerCase()]||(A.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void A.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=A.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&O(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(j);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?A.removeAttr(e,n):e.setAttribute(n,n),n}},A.each(A.expr.match.bool.source.match(/\w+/g),function(e,t){var n=ft[t]||A.find.attr;ft[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=ft[a],ft[a]=i,i=null!=n(e,t,r)?a:null,ft[a]=o),i}});var mt=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function ht(e){return(e.match(j)||[]).join(" ")}function yt(e){return e.getAttribute&&e.getAttribute("class")||""}function bt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(j)||[]}A.fn.extend({prop:function(e,t){return q(this,A.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[A.propFix[e]||e]})}}),A.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&A.isXMLDoc(e)||(t=A.propFix[t]||t,i=A.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=A.find.attr(e,"tabindex");return t?parseInt(t,10):mt.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(A.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)}}),A.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){A.propFix[this.toLowerCase()]=this}),A.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(y(e))return this.each(function(t){A(this).addClass(e.call(this,t,yt(this)))});if((t=bt(e)).length)for(;n=this[u++];)if(i=yt(n),r=1===n.nodeType&&" "+ht(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=ht(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(y(e))return this.each(function(t){A(this).removeClass(e.call(this,t,yt(this)))});if(!arguments.length)return this.attr("class","");if((t=bt(e)).length)for(;n=this[u++];)if(i=yt(n),r=1===n.nodeType&&" "+ht(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=ht(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):y(e)?this.each(function(n){A(this).toggleClass(e.call(this,n,yt(this),t),t)}):this.each(function(){var t,i,o,a;if(r)for(i=0,o=A(this),a=bt(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=yt(this))&&$.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":$.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+ht(yt(n))+" ").indexOf(t)>-1)return!0;return!1}});var vt=/\r/g;A.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=y(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,A(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=A.map(i,function(e){return null==e?"":e+""})),(t=A.valHooks[this.type]||A.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=A.valHooks[i.type]||A.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(vt,""):null==n?"":n:void 0}}),A.extend({valHooks:{option:{get:function(e){var t=A.find.attr(e,"value");return null!=t?t:ht(A.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),A.each(["radio","checkbox"],function(){A.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=A.inArray(A(e).val(),t)>-1}},h.checkOn||(A.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),h.focusin="onfocusin"in n;var St=/^(?:focusinfocus|focusoutblur)$/,Tt=function(e){e.stopPropagation()};A.extend(A.event,{trigger:function(e,t,r,i){var o,a,s,u,c,l,d,p,m=[r||v],g=f.call(e,"type")?e.type:e,h=f.call(e,"namespace")?e.namespace.split("."):[];if(a=p=s=r=r||v,3!==r.nodeType&&8!==r.nodeType&&!St.test(g+A.event.triggered)&&(g.indexOf(".")>-1&&(g=(h=g.split(".")).shift(),h.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[A.expando]?e:new A.Event(g,"object"==typeof e&&e)).isTrigger=i?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]:A.makeArray(t,[e]),d=A.event.special[g]||{},i||!d.trigger||!1!==d.trigger.apply(r,t))){if(!i&&!d.noBubble&&!b(r)){for(u=d.delegateType||g,St.test(u+g)||(a=a.parentNode);a;a=a.parentNode)m.push(a),s=a;s===(r.ownerDocument||v)&&m.push(s.defaultView||s.parentWindow||n)}for(o=0;(a=m[o++])&&!e.isPropagationStopped();)p=a,e.type=o>1?u:d.bindType||g,(l=($.get(a,"events")||Object.create(null))[e.type]&&$.get(a,"handle"))&&l.apply(a,t),(l=c&&a[c])&&l.apply&&J(a)&&(e.result=l.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,i||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(m.pop(),t)||!J(r)||c&&y(r[g])&&!b(r)&&((s=r[c])&&(r[c]=null),A.event.triggered=g,e.isPropagationStopped()&&p.addEventListener(g,Tt),r[g](),e.isPropagationStopped()&&p.removeEventListener(g,Tt),A.event.triggered=void 0,s&&(r[c]=s)),e.result}},simulate:function(e,t,n){var r=A.extend(new A.Event,n,{type:e,isSimulated:!0});A.event.trigger(r,null,t)}}),A.fn.extend({trigger:function(e,t){return this.each(function(){A.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return A.event.trigger(e,t,n,!0)}}),h.focusin||A.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){A.event.simulate(t,e.target,A.event.fix(e))};A.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=$.access(r,t);i||r.addEventListener(e,n,!0),$.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=$.access(r,t)-1;i?$.access(r,t,i):(r.removeEventListener(e,n,!0),$.remove(r,t))}}});var It=n.location,At={guid:Date.now()},Et=/\?/;A.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||A.error("Invalid XML: "+e),t};var Pt=/\[\]$/,Ct=/\r?\n/g,_t=/^(?:submit|button|image|reset|file)$/i,Dt=/^(?:input|select|textarea|keygen)/i;function Ot(e,t,n,r){var i;if(Array.isArray(t))A.each(t,function(t,i){n||Pt.test(e)?r(e,i):Ot(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==I(t))r(e,t);else for(i in t)Ot(e+"["+i+"]",t[i],n,r)}A.param=function(e,t){var n,r=[],i=function(e,t){var n=y(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!A.isPlainObject(e))A.each(e,function(){i(this.name,this.value)});else for(n in e)Ot(n,e[n],t,i);return r.join("&")},A.fn.extend({serialize:function(){return A.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=A.prop(this,"elements");return e?A.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!A(this).is(":disabled")&&Dt.test(this.nodeName)&&!_t.test(e)&&(this.checked||!fe.test(e))}).map(function(e,t){var n=A(this).val();return null==n?null:Array.isArray(n)?A.map(n,function(e){return{name:t.name,value:e.replace(Ct,"\r\n")}}):{name:t.name,value:n.replace(Ct,"\r\n")}}).get()}});var xt=/%20/g,Rt=/#.*$/,wt=/([?&])_=[^&]*/,Nt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ut=/^(?:GET|HEAD)$/,kt=/^\/\//,Lt={},jt={},Ft="*/".concat("*"),zt=v.createElement("a");function Mt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(j)||[];if(y(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Bt(e,t,n,r){var i={},o=e===jt;function a(s){var u;return i[s]=!0,A.each(e[s]||[],function(e,s){var c=s(t,n,r);return"string"!=typeof c||o||i[c]?o?!(u=c):void 0:(t.dataTypes.unshift(c),a(c),!1)}),u}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Gt(e,t){var n,r,i=A.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&A.extend(!0,e,r),e}zt.href=It.href,A.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:It.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(It.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ft,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":A.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,A.ajaxSettings),t):Gt(A.ajaxSettings,e)},ajaxPrefilter:Mt(Lt),ajaxTransport:Mt(jt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,a,s,u,c,l,d,p,f=A.ajaxSetup({},t),m=f.context||f,g=f.context&&(m.nodeType||m.jquery)?A(m):A.event,h=A.Deferred(),y=A.Callbacks("once memory"),b=f.statusCode||{},S={},T={},I="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=Nt.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 c?o:null},setRequestHeader:function(e,t){return null==c&&(e=T[e.toLowerCase()]=T[e.toLowerCase()]||e,S[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)E.always(e[E.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||I;return r&&r.abort(t),P(0,t),this}};if(h.promise(E),f.url=((e||f.url||It.href)+"").replace(kt,It.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(j)||[""],null==f.crossDomain){u=v.createElement("a");try{u.href=f.url,u.href=u.href,f.crossDomain=zt.protocol+"//"+zt.host!=u.protocol+"//"+u.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=A.param(f.data,f.traditional)),Bt(Lt,f,t,E),c)return E;for(d in(l=A.event&&f.global)&&0==A.active++&&A.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ut.test(f.type),i=f.url.replace(Rt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(xt,"+")):(p=f.url.slice(i.length),f.data&&(f.processData||"string"==typeof f.data)&&(i+=(Et.test(i)?"&":"?")+f.data,delete f.data),!1===f.cache&&(i=i.replace(wt,"$1"),p=(Et.test(i)?"&":"?")+"_="+At.guid+++p),f.url=i+p),f.ifModified&&(A.lastModified[i]&&E.setRequestHeader("If-Modified-Since",A.lastModified[i]),A.etag[i]&&E.setRequestHeader("If-None-Match",A.etag[i])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&E.setRequestHeader("Content-Type",f.contentType),E.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ft+"; q=0.01":""):f.accepts["*"]),f.headers)E.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(m,E,f)||c))return E.abort();if(I="abort",y.add(f.complete),E.done(f.success),E.fail(f.error),r=Bt(jt,f,t,E)){if(E.readyState=1,l&&g.trigger("ajaxSend",[E,f]),c)return E;f.async&&f.timeout>0&&(s=n.setTimeout(function(){E.abort("timeout")},f.timeout));try{c=!1,r.send(S,P)}catch(e){if(c)throw e;P(-1,e)}}else P(-1,"No Transport");function P(e,t,a,u){var d,p,v,S,T,I=t;c||(c=!0,s&&n.clearTimeout(s),r=void 0,o=u||"",E.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(S=function(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(f,E,a)),!d&&A.inArray("script",f.dataTypes)>-1&&(f.converters["text script"]=function(){}),S=function(e,t,n,r){var i,o,a,s,u,c={},l=e.dataTypes.slice();if(l[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=l.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=c[u+" "+o]||c["* "+o]))for(i in c)if((s=i.split(" "))[1]===o&&(a=c[u+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],l.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 "+u+" to "+o}}}return{state:"success",data:t}}(f,S,E,d),d?(f.ifModified&&((T=E.getResponseHeader("Last-Modified"))&&(A.lastModified[i]=T),(T=E.getResponseHeader("etag"))&&(A.etag[i]=T)),204===e||"HEAD"===f.type?I="nocontent":304===e?I="notmodified":(I=S.state,p=S.data,d=!(v=S.error))):(v=I,!e&&I||(I="error",e<0&&(e=0))),E.status=e,E.statusText=(t||I)+"",d?h.resolveWith(m,[p,I,E]):h.rejectWith(m,[E,I,v]),E.statusCode(b),b=void 0,l&&g.trigger(d?"ajaxSuccess":"ajaxError",[E,f,d?p:v]),y.fireWith(m,[E,I]),l&&(g.trigger("ajaxComplete",[E,f]),--A.active||A.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return A.get(e,t,n,"json")},getScript:function(e,t){return A.get(e,void 0,t,"script")}}),A.each(["get","post"],function(e,t){A[t]=function(e,n,r,i){return y(n)&&(i=i||r,r=n,n=void 0),A.ajax(A.extend({url:e,type:t,dataType:i,data:n,success:r},A.isPlainObject(e)&&e))}}),A.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),A._evalUrl=function(e,t,n){return A.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){A.globalEval(e,t,n)}})},A.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=A(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){A(this).wrapInner(e.call(this,t))}):this.each(function(){var t=A(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=y(e);return this.each(function(n){A(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){A(this).replaceWith(this.childNodes)}),this}}),A.expr.pseudos.hidden=function(e){return!A.expr.pseudos.visible(e)},A.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},A.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Vt={0:200,1223:204},qt=A.ajaxSettings.xhr();h.cors=!!qt&&"withCredentials"in qt,h.ajax=qt=!!qt,A.ajaxTransport(function(e){var t,r;if(h.cors||qt&&!e.crossDomain)return{send:function(i,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||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[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&&n.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()}}}),A.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),A.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 A.globalEval(e),e}}}),A.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),A.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=A("