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