!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof def&&def.amd?def("pcs-common",["vue"],t):(e=e||self).PcsCommon=t(e.Vue)}(this,function(u){"use strict";u=u&&u.hasOwnProperty("default")?u.default:u;var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function e(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var m=function(){return(m=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function t(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s}var i="phApp";function o(){this.phApp={},window&&window[i]&&(this.phApp=window[i],this.phApp.inline=this.phApp.inline,void 0===this.phApp.inline&&(this.phApp.inline=!0),this.phApp.ddo=this.phApp.ddo||{},this.phApp.pageGroup=this.phApp.pageGroup||{},this.phApp.ddoRealPath=this.phApp.ddoRealPath||{},this.phApp.sessionParams=this.phApp.sessionParams||{},this.phApp.widgetSettings=this.phApp.widgetSettings||{},this.phApp.siteSettings=this.phApp.siteSettings||{},this.phApp.translations=this.phApp.translations||{},this.phApp.pageStateData=this.phApp.pageStateData||{}),this.movePhAppInfo()}var l,b=new(o.prototype.hasAbsUrl=function(){return this.phApp.absUrl},o.prototype.useInlineTmpl=function(){return this.phApp.inline},o.prototype.getParam=function(e){return this.phApp[e]},o.prototype.setParam=function(e,t){this.phApp[e]=t},o.prototype.getIsinlinePreview=function(){return this.phApp.inlinePreview},o.prototype.getCommonParams=function(){return{lang:this.phApp.locale,deviceType:this.phApp.deviceType,country:this.phApp.country,pageName:this.phApp.pageName}},o.prototype.getDDOUrl=function(){return this.phApp.widgetApiEndpoint},o.prototype.getDDOFromCache=function(e){var t=this.phApp.ddo,i=this.phApp.pageGroup;return t[e]||i[e]},o.prototype.getRawUrl=function(e){return this.getUrlMap()[e]},o.prototype.getUrlMap=function(){return this.phApp.urlMap},o.prototype.getBaseUrl=function(){return this.phApp.baseUrl},o.prototype.getBaseDomain=function(){return this.phApp.baseDomain},o.prototype.getRefNum=function(){return this.phApp.refNum},o.prototype.getDeviceType=function(){return this.phApp.deviceType},o.prototype.isMobile=function(){return"mobile"===this.phApp.deviceType},o.prototype.getLocale=function(){return this.phApp.locale},o.prototype.getCountry=function(){return this.phApp.country},o.prototype.getTrackingConfig=function(){return this.phApp.trackingConfig},o.prototype.getRecommendedTrackingConfig=function(){return this.phApp.recommendedTrackingConfig},o.prototype.ddoRealPath=function(e){return this.phApp.ddoRealPath[e]},o.prototype.ddoRealData=function(e,t){var i=this.ddoRealPath(e);return i&&(i=i.split(".")).forEach(function(e){t=t&&t[e]}),t},o.prototype.getSessionParams=function(e){if(e&&this.phApp.sessionParams&&this.phApp.sessionParams[e])return decodeURIComponent(this.phApp.sessionParams[e])},o.prototype.getWidgetSettings=function(e){return this.phApp.widgetSettings[e]},o.prototype.getSiteSettings=function(e){return this.phApp.siteSettings[e]},o.prototype.getSiteConfigSettings=function(e){var t=b.getDDOFromCache("siteConfig");if(t&&t.data)return e?t.data.siteSettings&&t.data.siteSettings.hasOwnProperty(e)?t.data.siteSettings[e]:t.data[e]:t.data.siteSettings},o.prototype.getPageType=function(){return this.phApp.pageType},o.prototype.getPageName=function(){return this.phApp.pageName},o.prototype.getPageId=function(){return this.phApp.pageId},o.prototype.setPageState=function(e){this.phApp.pageState=e},o.prototype.getPageState=function(){return this.phApp.pageState},o.prototype.setPageStateData=function(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this.phApp.pageStateData[t]=e[t])},o.prototype.getPageStateData=function(){return this.phApp.pageStateData},o.prototype.clearDDOFromcache=function(e){var t=this.phApp.ddo;e&&t[e]&&delete t[e]},o.prototype.getSiteType=function(){return this.phApp.siteType},o.prototype.getUserSubType=function(){var e=this.phApp.ddo;if(this.phApp.ddo&&e.validateJwtToken&&e.validateJwtToken.data&&e.validateJwtToken.data.userSubType)return e.validateJwtToken.data.userSubType},o.prototype.getExperimentData=function(){return this.phApp.experimentData},o.prototype.getCdnUrl=function(){return this.phApp.cdnUrl},o.prototype.getWidgetScriptUrl=function(){return this.phApp.widgetScriptUrl},o.prototype.getCsrfToken=function(){return this.phApp.csrfToken},o.prototype.getTranslations=function(){return this.phApp.translations&&this.phApp.translations.masterData},o.prototype.getRootDomain=function(){return this.phApp.rootDomain},o.prototype.getSegmentedUserState=function(){return this.phApp.pxSegmentState},o.prototype.getPlatformAssetsBaseUrl=function(){return[this.getCdnUrl(),"common/js/vendor/"].join("/")},o.prototype.movePhAppInfo=function(){var e=this.getDDOFromCache("siteConfig")||{};e=e.data||{},this.phApp.pageNameMap=e.pageNameMap,this.phApp.recommendedTrackingConfig=e.recommendedTrackingConfig,this.phApp.trackingConfig=e.trackingConfig,this.phApp.siteSettings=e.siteSettings,this.phApp.urlMap=e.urlMap},o),d={},r={},c=window;function s(e,t){var i={},n=(t=t||{}).ctx;for(var o in delete t.ctx,d)d.hasOwnProperty(o)&&(i[o]=d[o]);var r,s,a=(b.getTrackingConfig()||{})[e];if(a)for(var o in a)a.hasOwnProperty(o)&&n&&(i[o]=n[a[o]]);if(t)for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o]);for(var o in d)d.hasOwnProperty(o)&&(i[o]=d[o]);r=e,s=i,(l=l||c.phenomevent)&&l.track(r,s)}!function(){d={trait2:b.getRefNum(),trait65:b.getDeviceType(),trait76:b.getPageType()||b.getPageName(),trait79:b.getLocale(),trait253:b.getPageName(),trait258:b.getSiteType(),trait263:b.getUserSubType()};var e=b.getParam("partnerRefNum");e&&(d.trait317=e);var t=b.getParam("pxSegmentState");t&&(d.trait323=t);var i=b.getParam("pxstate");i&&(d.trait324=i);var n=b.getExperimentData();n&&(d.experiment=n),l=c.phenomevent}();var f={category:function(e,t,i,n){var o=b.getDDOFromCache("siteConfig"),r=o&&o.data&&o.data.categoryUrlMap||{};if(r){var s=r;if(s[t.internalId])return[s[t.internalId]];n=[];var a="search-results?category="+encodeURIComponent(t[e]||t.name||"");return n.push(a),n}},job:function(e,t,i,n,o){if("jobSeqNo"==e)return n.push(t.jobSeqNo||t.id),n;if("title"==e){var r=t.title_raw||t[e]||"";return o&&(r=r.toLowerCase()),n.push(h(r)),n}},"search-results":function(e,t,i,n){return"?keyword="+i},event:function(e,t,i,n,o){if("title"==e){var r=t.title||"";return o&&(r=r.toLowerCase()),n.push(h(r)),n}}};function p(e){if(e&&-1!==e.indexOf("://"))return e;var n="";return["cdnUrl","refNum","locale","deviceType"].forEach(function(e,t){var i=b.getParam(e);i&&0<i.trim().length&&(n+=i,"/"!==i[i.length-1]&&(n+="/"))}),n+e}function h(e){var t="";return e&&"-"==(t=e.replace(/[\$_|`$\-+:,\/#&\[\]@\{\}*%.()?–']/g,"-").replace(/ /g,"-").replace(/-+/g,"-")).charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t||""}var g,v,y={getUrl:function(d,c,p,e,u){var h=[],t=e.split("/");if(c){t.forEach(function(e){if(e.startsWith(":")){var t=e.substring(1);c&&c[t];var i=(n=t,r=c,s=p,a=h,l=u,f[o=d]?f[o](n,r,s,a,l):void 0);i?h=i:h.push(c[t])}else h.push(e);var n,o,r,s,a,l});var i=h.join("/");return p&&(i+="?"+p),i}},getImageUrl:p};function w(e,t){if(g)try{g.setItem(e,JSON.stringify(t))}catch(e){x(e)}}function E(e){if(g){var t=g.getItem(e);return t=JSON.parse(t)}}function k(e){g&&g.removeItem(e)}function A(e){if(v){var t=v.getItem(e);try{t=JSON.parse(t)}catch(e){}return t}}function x(e){var t=!1;return e&&(e.code?22===e.code?t=!0:1014===e.code&&"NS_ERROR_DOM_QUOTA_REACHED"===e.name&&(t=!0):-2147024882===e.number&&(t=!0)),t}function I(e,t){if(v)try{"string"==typeof t?v.setItem(e,t):v.setItem(e,JSON.stringify(t))}catch(e){x(e)}}function C(e){v&&v.removeItem(e)}!function(){g=!("undefined"==typeof Storage||!window.localStorage)&&window.localStorage;v=!("undefined"==typeof Storage||!window.sessionStorage)&&window.sessionStorage}();var S={setItem:w,getItem:E,removeItem:k,getSessionStorageItem:A,setSessionStorageItem:I,removeSessionStorageItem:C};function T(e){try{return encodeURIComponent(e)}catch(e){return null}}function _(e){try{return decodeURIComponent(e)}catch(e){return null}}var L,O,M,P={get:function(e){var t=function(e){var t,i={},n=e.split(/ *; */);if(""===n[0])return i;for(var o=0;o<n.length;++o)t=n[o].split("="),i[_(t[0])]=_(t[1]);return i}(document.cookie);return t&&t[e]?t[e]:null},set:function(e,t,i){var n=T(e)+"="+T(t);if(null===t&&(i.expiry=-1),0<=i.expiry&&!i.expires){var o=new Date;o.setHours(o.getHours()+i.expiry),i.expires=o}i.path&&(n+="; path="+i.path),i.domain&&(n+="; domain="+i.domain),i.expires&&(n+="; expires="+i.expires.toUTCString()),i.secure&&(n+="; secure"),document.cookie=n},deleteCookie:function(e){document.cookie=e+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;"},getCookie:function(e){var t=function(){var e,t={},i=document.cookie.split(/ *; */);if(""===i[0])return t;for(var n=0;n<i.length;++n)e=i[n].split("="),t[decodeURIComponent(e[0])]=decodeURIComponent(e[1]);return t}();return t&&t[e]?t[e]:null}},D="_",R="siteConfig",F="jobContext",V={},B="";function N(){if(B&&M){var e=[U(),F].join(D),t=[U(),B].join(D),i=[],n=V[B];n&&n.forEach(function(e){var t={jobSeqNo:e.jobSeqNo,jobId:e.jobId,title:e.title};e.visibilityType&&(t.visibilityType=e.visibilityType),i.push(t)}),w(e,B),w(t,i)}}function j(){var i={},e=b.getRecommendedTrackingConfig()||{};for(var t in e)if(e.hasOwnProperty(t))if(Array.isArray(e[t]))e[t].forEach(function(e){var t=[U(),e.storageKey].join(D);i[e.storageKey]=E(t)});else{var n=[U(),e[t].storageKey].join(D);i[e[t].storageKey]=E(n)}return i}function H(){var e=P.get("PHPPPE_GCC");return!e||"d"!=e&&"s"!=e}function U(){var i,e=b.getDDOFromCache(R);if(e&&e.data.siteSettings.recommendationStoargeKeys){var t=e.data.siteSettings.recommendationStoargeKeys,n=[];t.forEach(function(e,t){n.push(b.getParam(e)),i=n.join(D)})}else i=[b.getCountry(),b.getLocale()].join(D);return i}L=b.getRecommendedTrackingConfig(),V={},function(){var e=[U(),F].join(D);B=E(e);var t=[U(),B].join(D);V[B]=E(t)}(),window&&(window.addEventListener("beforeunload",function(e){O=!0,N()}),window.addEventListener("unload",function(e){O||N()}));var q={getSpecificTrackCtx:function(e,t){var i,n=[U(),e].join(D);return t?A(n)&&(i=A(n)):E(n)&&(i=E(n)),i},getRecommendedTrackCtx:j,setSpecificTrackCtx:function(e,t,i){if(H()){var n=[U(),e].join(D);i?I(n,t):w(n,t)}},getRecommStorageKey:U,addRecommendationTrackCtx:function(e,a){if(H()){var t=(L=L||b.getRecommendedTrackingConfig()||{})[e];t&&(Array.isArray(t)||(t=[t]),t.forEach(function(r){var e=[U(),r.storageKey].join(D);if(r.storageKey){var s=!1,t=E(e);if(t?t.forEach(function(e){var t,i,n,o;t=e,i=a,n=r.ddoKeysToStore,o=!0,n.forEach(function(e){t[e]!=i[e]&&(o=!1)}),o&&(s=!0)}):(w(e,[]),t=E(e)),!s){var i={};r.ddoKeysToStore.forEach(function(e){a[e]&&(i[e]=a[e],i.timeStamp=(new Date).toUTCString())}),t.unshift(i),w(e,t)}}}))}},removeRecomContentFromLocalStorage:function(){U(),Object.keys(j()).forEach(function(e,t){var i,n,o;i=e,o=[U(),i].join(D),n?C(o):k(o)})},addJobContext:function(e,t){V[e]=t},getJobContext:function(e){return V[e]},getNextAndPrevJobData:function(e){var t={},i=V[B],n=-1;if(i)for(var o=0;o<i.length;o++){if(i[o].jobSeqNo==e){n=o;break}}if(-1!=n){var r=n-1,s=n+1;return 0<=r&&(t.prevJob=i[r]),s<i.length&&(t.nextJob=i[s]),t}},jobContext:function(e){if(!e)return B;V[e]&&(B=e)},recommendationTrackingConfig:L,setFlagForHandleUnload:function(e){e&&(M=e)}},W=(K.prototype.renderLiteral=function(e,i,t){return e&&"string"==typeof e?(e=(e=(e=e.replace(/&lt;/g,"<")).replace(/&gt;/g,">")).replace(/\{\{\s*(.*?)\s*\}\}/g,function(e,t){return i[t]||""}),t&&(e=encodeURIComponent(e)),e=e.replace(/\[\[\s*(.*?)\s*\]\]/g,function(e,t){if(!t)return t})):e},K.prototype.parseTemplateAndApplyBundle=function(p,u,h){var f=this;return new Promise(function(e,t){if(u){for(var i="tkey",n=u.querySelectorAll("[tkeys]"),o=0;o<n.length;o++)for(var r=n[o],s=r.attributes,a=0;a<s.length;a++){var l=s[a].name,d=s[a].value;if(l.startsWith(i)){var c=f.renderLiteral(h[d],p);c&&(l.length>i.length?(l=l.replace(i+"-",""),r.setAttribute(l,c)):r.innerHTML=c)}}e(u.innerHTML)}else t({})})},K);function K(){}var J=new W,Y=new u,z={useCaptcha:!1,scriptSrc:"https://www.google.com/recaptcha/api.js?render=explicit&hl={{locale}}",siteKey:"6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI",divId:"ph-custom-captcha",polyfill:"https://cdn.polyfill.io/v2/polyfill.js"},G=window;function Q(e,t){if(G.grecaptcha){var i=ee(t)||{};i.divId||(i.divId="ph-custom-captcha"),i.action||(i.action="submit");var n=function(e,t){G.grecaptcha||e("");var i=document.getElementById(t);if(!i){var n=document.createElement("div");n.setAttribute("id",t),document.body.appendChild(n),i=document.getElementById(t)}i&&i.style&&(i.style.zIndex="100");var o=i&&i.getAttribute("data-captcha-widgetId");if(o)return G.grecaptcha.reset(o),o;return G.grecaptcha.render(t,{sitekey:z.siteKey,size:"invisible",callback:e})}(e,i.divId),o=document.getElementById(i.divId);o&&o.setAttribute("data-captcha-widgetId",n),G.grecaptcha.execute(n,{action:i.action})}else e("")}function X(t,i,n){try{setTimeout(function(){if(!document.querySelector("#"+i)){var e=document.createElement("script");e.setAttribute("type","text/javascript"),e.setAttribute("async",""),e.setAttribute("src",t),e.setAttribute("id",i),n&&e.setAttribute("nomodule",""),document.body.appendChild(e)}},1250)}catch(e){console.warn(e)}}function Z(e,t){var i=e;if(!t)return i||{};var n=Object.keys(t);return t&&n.length&&n.forEach(function(e){i[e]=t[e]}),i}function ee(e){var t=(b.getSiteConfigSettings("captchaEnabledDDO")||{})[e]||{},i="",n=t.action;if(t&&t.divIdSelector){var o=document.querySelector(t.divIdSelector);if(o){var r=document.createElement("div");i=e+"-captcha-div",r.setAttribute("id",i),o.parentElement.appendChild(r)}}return{action:n,divId:i}}!function(){window&&(G.pcc||(G.pcc={}),G.pcc.captchaCallback=Q);var e=b.getSiteConfigSettings("captchaConfig"),t=b.getSiteConfigSettings("captchaConfigTenant");z=Z(z,e),(z=Z(z,t)).scriptSrc=z.scriptSrc.replace("{{locale}}",b.getLocale()),z&&!0===z.useCaptcha&&("complete"===document.readyState?(X(z.scriptSrc,"captcha-script-id",!1),X(z.polyfill,"polyfill",!0)):window.addEventListener("load",function(){X(z.scriptSrc,"captcha-script-id",!1),X(z.polyfill,"polyfill",!0)}))}();var te,ie,ne={captchaCallback:Q,constructCaptchaEle:ee},oe=Object.freeze({__proto__:null,captchaCallback:Q,constructCaptchaEle:ee,default:ne}),re=[],se=[],ae=window,le="ph:ex:trackEvents",de="ph:ex:responseDdoKeys",ce="searchMultiJobCount",pe="ph:jobCount:set",ue=0,he={},fe=!0,ge="siteConfig";function me(i,n,e){var o=this;e.length&&e.forEach(function(e,t){e.call(o,i,n)})}function ve(e,t,i,n){if(me(t,i,re),!n){var o=Ee(e);Object.keys(o).length&&(i.params=o.params)}q.setFlagForHandleUnload(!0),s(t,i),i&&i.videoScreen&&Y.$emit("support-event-raised",{eventName:t,payload:m({},i)})}function ye(e,t,i){!function(e){if(e)(e=e.replace(/(\-\w)/g,function(e){return e[1].toUpperCase()}))[0].toUpperCase(),e.substring(1)}(t);if(ae.phw&&ae.phw.componentExposeName){(i?new ae.phw.kebabCaseToCameCase(t).component({propsData:i,template:i.template}):new ae.phw.kebabCaseToCameCase(t).component()).$mount(e)}}function be(e){if(e){for(var t=e,i=t&&t.getAttribute&&t.getAttribute("data-widget");t&&!i&&"BODY"!==t.nodeName;)i=(t=t.parentElement)&&t.getAttribute&&t.getAttribute("data-widget");if(i)return{elem:t,elemTag:i}}return!1}function we(e,t){var i={};return i.params={widgetId:t,widgetview:function(e){if(e){var t=e.__vue__&&e.__vue__.viewName;return e.getAttribute("view")||t||"default"}}(e),widgetName:function(e,t){if(e&&t){return t.replace(/^.+?(\-)/,"").replace(/-[^-]+$/,"")}return!1}(e,t),instanceId:function(e){if(e)return e.getAttribute("instance-id");return}(e)},e&&e.__vue__&&e.__vue__.block1&&(e.__vue__.block1._cid&&(i.params.cid=e.__vue__.block1._cid),e.__vue__.block1.position&&(i.params.position=e.__vue__.block1.position),i.params.px=function(e){var t={enabled:!1};if(!e||!e.context)return t;var i={},n=e.context;for(;n&&n.$parent;)i=n.bindModel||{},n=n.$parent;return i.px||t}(e.__vue__.$vnode)),i}function Ee(e){if(e){var t=be(e);if(t){var i=we(t.elem,t.elemTag),n=[];return function e(t,i){if(t&&t.parentElement){var n=be(t.parentElement);if(i=i||[],n.elem&&n.elem.__vue__){var o=n.elemTag,r=we(n.elem,o);i.push(r),e(n.elem,i)}}}(t.elem,n),n.length&&(i.params.parent=n),i}}return!1}function ke(e){var t=b.getDDOFromCache(ge);if(t&&t.data)return e?t.data.siteSettings[e]||t.data[e]:t.data.siteSettings}function Ae(e,t){var i;if(e.key&&"queryParams"==e.key){var n="query"+ue++;i=n,he[e.key]=he[e.key]||{},he[e.key][n]=e.value}else e.key&&(i=e.value,he[e.key]=he[e.key]||[],-1==he[e.key].indexOf(e.value)&&he[e.key].push(e.value));i&&t.setAttribute("data-pha-count-idfr",i)}function xe(t,e){if((fe||e)&&Object.keys(he).length){fe=!1;te=setTimeout(function(){Me(ce,he).then(function(e){e&&e[ce]&&e[ce].data&&(t.context&&t.context.$root.$emit(pe,e[ce].data.data),Object.keys(he).length&&xe(!0))}),he={},clearTimeout(te),xe(!0)},250)}}document.addEventListener(le,function(e){var t=e.detail||{};me(t.eventName,t.payload,re)}),document.addEventListener(de,function(e){var t=e.detail||{};me(t.ddoName,t.payload,se)}),Y.$on("geoLocation",function(e){ie=e});var Ie,Ce={debounce:function(i,n){var o;return function(){var e=this,t=arguments;clearTimeout(o),o=setTimeout(function(){return i.apply(e,t)},n)}},widgetTrackData:Ee,trackWidgetClick:ve,bootstrapCassWidget:ye,trackWidgetCallBack:function(e){re.push(e)},responseDdoCallback:function(e){se.push(e)},focusElement:function(e,t,i){setTimeout(function(){e&&"object"==typeof e?e.focus():e&&i.querySelector(e)&&i.querySelector(e).focus()},t||0)},getQueryParam:function(e){for(var t=location.search,i=(t=t.substr(1)).split("&"),n=0;n<i.length;n++){var o=i[n];if(1<(o=o.split("=")).length&&o[0]==e){o.shift();var r=o.join("=");return decodeURIComponent(r)}}},getQueryParams:function(){var e=location.search;return e=e.substr(1)},getQueryParamsMap:function(){for(var e={},t=location.search,i=(t=t.substr(1)).split("&"),n=0;n<i.length;n++){var o=i[n];1<(o=o.split("=")).length&&(e[o[0]]=o[1])}return e},getSiteSettings:ke,isCrawlerUserAgent:function(){var e=window.navigator.userAgent,t=!1,i=ke("crawlerUserAgents");return i&&(t=new RegExp(i,"i").test(e.toLowerCase())),t},getUrl:function(e,t,i){var n=ke("isUrlLowerForSeo");"internal"===b.getSiteType()&&"job"===e&&t&&t.visibilityType&&"EXTERNAL"===t.visibilityType.toUpperCase()&&(i?i+="&vt=e":i="vt=e");var o=b.getRawUrl(e);if(o){var r=y.getUrl(e,t,i||"",o,n);return r&&-1==r.indexOf("http")&&(r=b.getBaseUrl()+r),r||""}return""},setLocalStorageContext:function(e,t){var i=[q.getRecommStorageKey(),e].join("_");S.setItem(i,t)},getLocalStorageContext:function(e){var t=[q.getRecommStorageKey(),e].join("_");return S.getItem(t)},getTranslation:function(e,t,i){return t=t||{},J.renderLiteral(e,t,i)},fetchMaterLiterals:function(){var e=b.getTranslations()||{};return JSON.parse(JSON.stringify(e.masterData||{}))},prepareMultiSearchJobCountObj:Ae,fetchMultiJobCount:xe,fetchCaptchaInjector:function(){return oe},storePageTrackEventData:function(e,t){var i,n;n=t,(i=e)&&(r[i]=n)},setIsGdprConsentClosed:function(e){},askForLocation:function(){return ie||""},getImageUrl:function(e){if(e&&-1!=e.indexOf("://"))return e;var n="";return["cdnUrl","refNum","locale","deviceType"].forEach(function(e,t){var i=b.getParam(e);i&&0<i.trim().length&&(n+=i,"/"!==i[i.length-1]&&(n+="/"))}),n+e},fetchCachedDdo:function(e){return Oe(e)}},Se=function(){var i=this;this.promise=new Promise(function(e,t){i.reject=t,i.resolve=e})},Te={},_e=["fitScoreSettings","jobTagSettings","jobwidgetsettings","imSiteConfig","getIMConfigurations","imVariantsConfigInfo","jobsharewidgetsettings","eventsharewidgetsettings","blogsharewidgetsettings","fitScoreSettingsIM","getPiiConsentConfig","glassdoorReviews","categories","categoryMasterDataV2","recomJobsBrowsingHistory","blogDetail"];function Le(e){var t=new Headers,i=new Request(e,{method:"GET",headers:t,mode:"cors",cache:"default"});return fetch(i).then(function(e){var t;return-1===(null===(t=e.headers.get("Content-Type"))||void 0===t?void 0:t.indexOf("text/html"))?e.json():e.text()})}function Oe(e){var t,i,n=b.getDDOFromCache(e);return n&&((t={})[e]=n,i=t),i}function Me(i,n){var e=b.getSiteSettings("captchaEnabledDDO")||{};if(n=n||{},e[i]&&!n.phCaptchaToken)return new Promise(function(t,e){Ce.fetchCaptchaInjector().captchaCallback(function(e){n.phCaptchaToken=e,Pe(i,n).then(function(e){return t(e)})},i)});var t=Oe(i);if(!Te.hasOwnProperty(i)||t)return-1===_e.indexOf(i)&&!n.isEagerLoad||t||(Te[i]=[]),Pe(i,n);var o=new Se;return Te[i].push(o),o.promise}function Pe(f,g){return new Promise(function(t,e){var i,n,o,r,s,a,l=b.getSiteConfigSettings("cdnConfig")||{},d=b.getSiteConfigSettings("iscdnEnabled"),c=Oe(f);if(c)t(c);else if(d&&l.cdnDdos&&-1!=l.cdnDdos.indexOf(f)){var p=void 0;if(g&&Object.keys(g).length)try{p=JSON.stringify(g)}catch(e){}var u={};p&&(u.payload=p);var h=l.cdnUrl+"/api/"+b.getRefNum()+"/"+f+"?locale="+b.getLocale()+"&siteType="+b.getSiteType()+"&deviceType="+b.getDeviceType();-1!==(l.pageNameLevelDdos||[]).indexOf(f)?h+="&pageName="+b.getPageName():-1!==(l.pageIdlevelDdos||[]).indexOf(f)&&(h+="&pageId="+b.getPageId()),Le(h+="&"+(a=u,Object.keys(a).map(function(e){return e+"="+encodeURIComponent(a[e])}).join("&"))).then(function(e){t(e),De(e,f,g)})}else(g=g||{}).ddoKey=f,(i=g,n=b.getDDOUrl(),o=b.getCommonParams(),r=b.getCsrfToken(),s=m(m({},o),i||{}),fetch(n,{method:"post",credentials:"include",headers:{"X-CSRF-TOKEN":r,"Content-Type":"application/json"},body:JSON.stringify(s||{})}).then(function(e){return e.json()})).then(function(e){t(e),De(e,f,g)})})}function De(t,e,i){i=i||{},-1===_e.indexOf(e)&&!i.isEagerLoad||(Te[e].forEach(function(e){e.resolve(t)}),delete Te[e])}(Ie=Ce.getSiteSettings("configuredMakeEagerLoadDdos")||[]).length&&Ie.forEach(function(e){-1===_e.indexOf(e)&&_e.push(e)});var Re={fetchDdo:Me,fetchCachedDdo:Oe,fetchGetRequest:Le},Fe="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function Ve(i,n,o){(o?Reflect.getOwnMetadataKeys(n,o):Reflect.getOwnMetadataKeys(n)).forEach(function(e){var t=o?Reflect.getOwnMetadata(e,n,o):Reflect.getOwnMetadata(e,n);o?Reflect.defineMetadata(e,t,i,o):Reflect.defineMetadata(e,t,i)})}var Be={__proto__:[]}instanceof Array;function Ne(e){"undefined"!=typeof console&&console.warn("[vue-class-component] "+e)}var je=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function He(e,n){void 0===n&&(n={}),n.name=n.name||e._componentTag||e.name;var o=e.prototype;Object.getOwnPropertyNames(o).forEach(function(t){if("constructor"!==t)if(-1<je.indexOf(t))n[t]=o[t];else{var i=Object.getOwnPropertyDescriptor(o,t);void 0!==i.value?"function"==typeof i.value?(n.methods||(n.methods={}))[t]=i.value:(n.mixins||(n.mixins=[])).push({data:function(){var e;return(e={})[t]=i.value,e}}):(i.get||i.set)&&((n.computed||(n.computed={}))[t]={get:i.get,set:i.set})}}),(n.mixins||(n.mixins=[])).push({data:function(){return function(n,e){var t=e.prototype._init;e.prototype._init=function(){var e=this,t=Object.getOwnPropertyNames(n);if(n.$options.props)for(var i in n.$options.props)n.hasOwnProperty(i)||t.push(i);t.forEach(function(t){"_"!==t.charAt(0)&&Object.defineProperty(e,t,{get:function(){return n[t]},set:function(e){n[t]=e},configurable:!0})})};var i=new e;e.prototype._init=t;var o={};return Object.keys(i).forEach(function(e){void 0!==i[e]&&(o[e]=i[e])}),!(e.prototype instanceof u)&&0<Object.keys(o).length&&Ne("Component class must inherit Vue or its descendant class when class property is used."),o}(this,e)}});var t=e.__decorators__;t&&(t.forEach(function(e){return e(n)}),delete e.__decorators__);var s,a,l,i,r,d=Object.getPrototypeOf(e.prototype),c=d instanceof u?d.constructor:u,p=c.extend(n);return s=p,a=e,l=c,Object.getOwnPropertyNames(a).forEach(function(e){if(!$e[e]){var t=Object.getOwnPropertyDescriptor(s,e);if(!t||t.configurable){var i,n,o=Object.getOwnPropertyDescriptor(a,e);if(!Be){if("cid"===e)return;var r=Object.getOwnPropertyDescriptor(l,e);if(i=o.value,n=typeof i,null!=i&&("object"==n||"function"==n)&&r&&r.value===o.value)return}0<=Ue.indexOf(e)&&Ne("Static property name '"+e+"' declared on class '"+a.name+"' conflicts with reserved property name of Vue internal. It may cause unexpected behavior of the component. Consider renaming the property."),Object.defineProperty(s,e,o)}}}),Fe&&(Ve(i=p,r=e),Object.getOwnPropertyNames(r.prototype).forEach(function(e){Ve(i.prototype,r.prototype,e)}),Object.getOwnPropertyNames(r).forEach(function(e){Ve(i,r,e)})),p}var Ue=["cid","super","options","superOptions","extendOptions","sealedOptions","component","directive","filter"],$e={prototype:!0,arguments:!0,callee:!0,caller:!0};function qe(t){return"function"==typeof t?He(t):function(e){return He(e,t)}}qe.registerHooks=function(e){je.push.apply(je,e)};var We="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function Ke(s){return void 0===s&&(s={}),function(e,t){var i,n,o,r;i=s,n=e,o=t,We&&(Array.isArray(i)||"function"==typeof i||void 0!==i.type||(i.type=Reflect.getMetadata("design:type",n,o))),r=function(e,t){(e.props||(e.props={}))[t]=s},function(e,t,i){var n="function"==typeof e?e:e.constructor;n.__decorators__||(n.__decorators__=[]),"number"!=typeof i&&(i=void 0),n.__decorators__.push(function(e){return r(e,t,i)})}(e,t)}}var Je=window,Ye=(ze.prototype.slickOverrideFun=function(u){var l="button";Je.Slick&&(Slick.prototype.buildDots=function(){var e,t,i=this;if(!0===i.options.dots&&i.slideCount>i.options.slidesToShow){for(i.$slider.addClass("slick-dotted"),t=$("<div />").addClass(i.options.dotsClass),e=0;e<=i.getDotCount();e+=1)t.append(i.options.customPaging.call(this,i,e));i.$dots=t.appendTo(i.options.appendDots),i.$dots.find(l).first().addClass("slick-active")}},Slick.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){$(t).attr("data-slick-index",e).data("originalStyling",$(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?a('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div aria-live="assertive" aria-atomic="true" class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),$("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},Slick.prototype.buildRows=function(){var e,t,i,n,o,r,s,a=this,l=1;if(u.rowsEnabled&&(l=0),n=document.createDocumentFragment(),r=a.$slider.children(),a.options.rows>l){for(s=a.options.slidesPerRow*a.options.rows,o=Math.ceil(r.length/s),e=0;e<o;e++){var d=document.createElement("div");for(t=0;t<a.options.rows;t++){var c=document.createElement("div");for(i=0;i<a.options.slidesPerRow;i++){var p=e*s+(t*a.options.slidesPerRow+i);r.get(p)&&c.appendChild(r.get(p))}d.appendChild(c)}n.appendChild(d)}a.$slider.empty().append(n),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},Slick.prototype.cleanUpRows=function(){var e,t=1;u.rowsEnabled&&(t=0),this.options.rows>t&&((e=this.$slides.children().children()).removeAttr("style"),this.$slider.empty().append(e))},Slick.prototype.initADA=function(){var o=this,r=(Math.ceil(o.slideCount/o.options.slidesToShow),o.getNavigableIndexes().filter(function(e){return 0<=e&&e<o.slideCount}));if(o.$slides){o.$slides.add(o.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),o.$slides.not(o.$slideTrack.find(".slick-cloned")).each(function(e){var t=r.indexOf(e);if(o.$dots&&"tablist"==o.$dots.attr("role"))$(this).attr({role:"tabpanel",id:"slick-slide"+o.instanceUid+e,tabindex:-1});else{var i=o.$slideTrack.find(".slick-active");i&&1<i.length?$(this).attr({role:"listitem",id:"slick-slide"+o.instanceUid+e,tabindex:-1}):$(this).attr({id:"slick-slide"+o.instanceUid+e,tabindex:-1})}if(-1!==t){var n="slick-slide-control"+o.instanceUid+t;$("#"+n).length&&$(this).attr({"aria-describedby":n})}});for(var e=o.currentSlide,t=e+o.options.slidesToShow;e<t;e++)o.options.focusOnChange||o.options.dotNavArrows?o.$slides.eq(e).attr({tabindex:"0"}):o.$slides.eq(e).removeAttr("tabindex")}o.activateADA()},Slick.prototype.activateADA=function(){this.$slideTrack&&this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a:not(.pcs-full-card-link), input, button, select").attr({tabindex:"0"}),this.$slideTrack&&this.$slideTrack.find(".slick-current").attr({"aria-hidden":"false"}).find("a:not(.pcs-full-card-link), input, button, select").attr({tabindex:"0"})},Slick.prototype.keyHandler=function(e){var t=this,i=t.$slider.context||t.$slider[0];e.target.tagName.match("TEXTAREA|INPUT|SELECT")||i.hasAttribute("disable-navigation")||(37===e.keyCode?t.changeSlide({data:{message:!0===t.options.rtl?"next":"previous"}}):39===e.keyCode&&t.changeSlide({data:{message:!0===t.options.rtl?"previous":"next"}}))},Slick.prototype.swipeHandler=function(e){var t=this;if(!(t.$slider.context||t.$slider[0]).hasAttribute("disable-navigation")&&!(!1===t.options.swipe||"ontouchend"in document&&!1===t.options.swipe||!1===t.options.draggable&&-1!==e.type.indexOf("mouse")))switch(t.touchObject.fingerCount=e.originalEvent&&void 0!==e.originalEvent.touches?e.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,!0===t.options.verticalSwiping&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}},Slick.prototype.updateDots=function(){this.$dots},Slick.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&($(l,e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&e.slideCount>e.options.slidesToShow&&$(l,e.$dots).on("mouseenter.slick",$.proxy(e.interrupt,e,!0)).on("mouseleave.slick",$.proxy(e.interrupt,e,!1)).on("focus.slick",$.proxy(e.interrupt,e,!0)).on("blur.slick",$.proxy(e.interrupt,e,!1))},Slick.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&($(l,e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",$.proxy(e.interrupt,e,!0)).off("mouseleave.slick",$.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),$(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&$(e.$slideTrack).children().off("click.slick",e.selectHandler),$(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),$(window).off("resize.slick.slick-"+e.instanceUid,e.resize),$("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),$(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},Slick.prototype.changeSlide=function(e,t){var i,n,o=this,r=$(e.currentTarget);switch(r.is("a")&&e.preventDefault(),r.is(l)||(r=r.closest(l)),i=o.slideCount%o.options.slidesToScroll!=0?0:(o.slideCount-o.currentSlide)%o.options.slidesToScroll,e.data.message){case"previous":n=0==i?o.options.slidesToScroll:o.options.slidesToShow-i,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide-n,!1,t);break;case"next":n=0==i?o.options.slidesToScroll:i,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide+n,!1,t);break;case"index":var s=0===e.data.index?0:e.data.index||r.index()*o.options.slidesToScroll;o.slideHandler(o.checkNavigable(s),!1,t),r.children().trigger("focus");break;default:return}})},ze.prototype.slickOverrideAccessbility=function(l,d){if(d.tabs)for(var e=l&&l.querySelectorAll(".slick-arrow")||[],t=0;t<e.length;t++)e[t]&&e[t].setAttribute("tabindex","-1"),e[t].setAttribute("aria-hidden","true");if(d.dots){var i=" .slick-dots";d.appendDots&&(i=d.appendDots+" .slick-dots");var c=d.appendDots?document.querySelector(i):l.querySelector(i);l.querySelector(d.appendDots),c&&c.children&&0<c.children.length&&setTimeout(function(){d.dotNavArrows&&c.setAttribute("role","tablist");for(var e=0;e<=c.children.length-1;e++){var t=c.children[e],i="",n=d.dotInfoSelector;if(n){var o=l.querySelectorAll(".slick-slide:not(.slick-cloned)"),r=o[e].querySelectorAll(n);r.length||(r=o[e].querySelectorAll('[data-ph-component-name="heading"]'));for(var s=0;s<r.length;s++)i+=r[s].innerText.trim()}var a="aria-current";t&&("tab"==t.getAttribute("role")||t.parentElement&&"tablist"==t.parentElement.getAttribute("role"))&&(a="aria-selected"),-1!=t.className.indexOf("slick-active")?("A"!=t.nodeName&&"BUTTON"!=t.nodeName&&"li"!=t.nodeName||t.setAttribute(a,"true"),"BUTTON"!=t.nodeName&&"li"!=t.nodeName||t.setAttribute(a,"true"),t.setAttribute("aria-label",i+" slide "+(e+1)+" of "+c.children.length),d.dotNavArrows&&t.setAttribute("tabindex","0")):("A"==t.nodeName&&t.removeAttribute(a),"BUTTON"!=t.nodeName&&"li"!=t.nodeName||t.setAttribute(a,"false"),t.setAttribute("aria-label",i+" slide "+(e+1)+" of "+c.children.length),d.dotNavArrows&&t.setAttribute("tabindex","-1"))}},100)}},ze);function ze(){}var Ge=window,Qe="dot_slider_click",Xe="next_slider_click",Ze="previous_slider_click",et="data-pcs-slider-dots-mode";function tt(e){setTimeout(function(){$(e).trigger("resize"),$(e).resize()},150)}var it={init:function(i,e,r){var t,n,s=(n={selector:".ph-slider-container",dotsMode:"default"},(t=e)&&Object.keys(t).forEach(function(e){n[e]=t[e]}),n);Ge.phApp&&"mobile"==Ge.phApp.deviceType&&s.mobileOverride&&Object.keys(s.mobileOverride)&&Object.keys(s.mobileOverride).forEach(function(e){s[e]=s.mobileOverride[e]}),delete s.mobileOverride;var a=new Ye,o=i.querySelector(".ph-a11y-readable-content");return o&&o.parentElement&&o.parentElement.removeChild(o),new Promise(function(t,e){setTimeout(function(){s.customPaging=function(e,t){return function(e,t,i){if(i.dotsMode){var n="["+et+"="+i.dotsMode+"]",o=e.querySelector(n);if(o){var r=o.querySelector('[data-ph-slide-idx="'+(t+1)+'"]');if(r)return r.outerHTML}}}(i,t,s||{})},a.slickOverrideFun(s),s.appendDots&&(s.appendDots='[instance-id="'+i.getAttribute("instance-id")+'"] '+s.appendDots),s.appendArrows&&(s.appendArrows='[instance-id="'+i.getAttribute("instance-id")+'"] '+s.appendArrows);var e=document.querySelector("html");if("rtl"===(e&&e.getAttribute("dir"))&&(s.rtl=!0),$=Ge.jQuery.noConflict(),Ge.$&&$.fn.slick&&i&&i.querySelector(s.selector)){-1!=i.className.indexOf(s.selector)?r.sliderData.totalSlidesCount=i.children.length:r.sliderData.totalSlidesCount=i.querySelector(s.selector).children.length;var o=$(i.querySelector(s.selector));r&&(r.initialLoad=!0),o&&o[0]&&(function(e){if(e&&e.parentElement){var t=document.createElement("div"),i=document.createElement("div");t.classList.add("ph-a11y-readable-content"),t.classList.add("sr-only"),i.classList.add("ph-a11y-readable-sr-elem"),i.setAttribute("role","presentation"),i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true"),t.appendChild(i),e.parentElement.appendChild(t)}}(o[0]),o.on("init",function(e,t){!function(e,t,i,n,o){var r=new Ye;tt(e),r.slickOverrideAccessbility(e,i),function(t,e){var i=t.querySelector(".slick-next"),n=t.querySelector(".slick-prev"),o=t.querySelector(".slick-dots");if(e&&e.appendDots){var r=" .slick-dots";e.appendDots&&(r=e.appendDots+" .slick-dots");var s=e.appendDots?document.querySelector(r):t.querySelector(r);o=s||document.querySelector(r)}i&&i.addEventListener("click",function(e){Ce.trackWidgetClick(t,Xe,{})});n&&n.addEventListener("click",function(e){Ce.trackWidgetClick(t,Ze,{})});o&&o.addEventListener("click",function(e){Ce.trackWidgetClick(t,Qe,{})})}(e,i),function(e,t){if(e.tabs)for(var i=t&&t.querySelectorAll(".slide-tab")||[],n=function(t){i[t]&&i[t].addEventListener("keyup",function(e){37===e.keyCode?t-1<0?i[i.length-1]&&i[i.length-1].focus():i[t-1]&&i[t-1].focus():39===e.keyCode&&(t+1>=i.length?i[0]&&i[0].focus():i[t+1]&&i[t+1].focus())})},o=0;o<i.length;o++)n(o)}(i,o),n.block1&&n.block1.sliderArrows&&n.block1.sliderArrows.ariaText&&e.setAttribute("aria-label",n.block1.sliderArrows.ariaText+(t.currentSlide+1)+"  of "+n.sliderData.totalSlidesCount);if(i.dotsInsideNav&&t.$dots&&t.$nextArrow&&t.$prevArrow){var s,a,l,d,c;s=getComputedStyle(t.$dots[0].querySelector("button")),a=parseInt(s.width)+parseInt(s.marginRight)+parseInt(s.marginLeft),l=parseInt(getComputedStyle(t.$prevArrow[0]).width),d=t.$slides.length*a,c=(d%2==0?d/2:(1+d)/2)+a+l+"px",t.$nextArrow[0].style.transform="translate("+c+",100%)",t.$prevArrow[0].style.transform="translate(-"+c+",100%)"}}(o[0],t,s,r,i)}),o.on("beforeChange",function(e,t,i,n){!function(e,t,i,n,o){if(t.dots){var r,s=" .slick-dots";if(t.appendDots&&(s=t.appendDots+" .slick-dots"),(r=t.appendDots?document.querySelector(s):e.querySelector(s))&&r.children&&0<r.children.length){if($(r).find("button").removeClass("slick-active").end(),o||0==o){var a=$(r).find("button")[o/i.options.slidesToScroll];$(a).addClass("slick-active"),t.dotNavArrows&&$(a).focus()}}}if(n!==o){e&&e.querySelector("[data-pcs-video]")&&Y.$emit("pauseVideo")}}(o[0],s,t,i,n)}),o.on("afterChange",function(e,t,i,n){!function(e,t,i,n,o){if(i&&e&&e.parentElement){var r=o.sliderData.totalSlidesCount,s=o.currentSlideIdx*i.options.slidesToScroll;if(o.block1&&o.block1.sliderArrows&&o.block1.sliderArrows.ariaText&&e.setAttribute("aria-label",o.block1.sliderArrows.ariaText+(i.currentSlide+1)+"  of "+r),1===i.options.slidesToShow?(o.showSliderTab=!0,o.currentSlideIdx=i.currentSlide,o.totalSlidesCount=r):(o.showSliderTab=!1,o.currentSlideIdx=Math.ceil(i.currentSlide/i.options.slidesToScroll)||0,o.totalSlidesCount=t.infinite?Math.ceil(r/i.options.slidesToScroll):Math.ceil((r-i.options.slidesToShow)/i.options.slidesToScroll+1)||r),o&&!o.initialLoad){var a=document.querySelector(".slick-tabs-area"),l='[id="tab-no-'+o.currentSlideIdx+'"]',d=a&&a.querySelector(l);d&&d.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}else o&&(o.initialLoad=!1);var c=i.$slideTrack&&i.$slideTrack.find(".slick-slide");if(c&&c.length)for(var p=0;p<c.length;p++){var u=c[p].querySelector("img");-1==c[p].className.indexOf("slick-active")?u&&u.setAttribute("aria-hidden",!0):u&&u.setAttribute("aria-hidden",!1)}var h=i.$slideTrack.find(".slick-active");h&&!h.length&&(h=i.$slideTrack.find(".slick-current"));var f=t.slidesToScroll||h.length,g=t.slidesToShow||h.length,m=i.$slideTrack.find(".slick-slide");for(p=0;p<m.length;p++)if(m[p].removeAttribute("tabindex"),-1!=m[p].className.indexOf("slick-active"))for(var v=0;v<$(m[p]).find("a:not(.pcs-full-card-link), input, button, select").length;v++)$(m[p]).find("a:not(.pcs-full-card-link), input, button, select")[v].setAttribute("tabindex","0");else for(v=0;v<$(m[p]).find("a, input, button, select").length;v++)$(m[p]).find("a, input, button, select")[v].setAttribute("tabindex","-1");for(var y=[],b=0;b<h.length;b++)if(g-f<=b&&g)for(var w=h[b].querySelectorAll(".ph-a11y-aria-live"),E=0;E<w.length;E++)y.push(w[E]);var k="";for(p=0;p<y.length;p++)if(y[p]){var A=y[p].innerText;A=(A=A.replace(/\n/g," ")).replace(/\r/g," "),k=k+" "+A}var x=e.parentElement.querySelector(".ph-a11y-readable-content .ph-a11y-readable-sr-elem");x&&!t.tabs&&n!==s&&(x.removeAttribute("aria-hidden"),setTimeout(function(){var e=Math.ceil(n/i.options.slidesToScroll)+1;r<e&&(e=1),x.innerText="showing slide "+e+"  of "+(t.infinite?Math.ceil(r/i.options.slidesToScroll):Math.ceil((r-i.options.slidesToShow)/i.options.slidesToScroll+1))+" "+k},50),clearTimeout(o.sliderData.toAccessAttrTimeout),o.sliderData.toAccessAttrTimeout=setTimeout(function(){x.setAttribute("aria-hidden","true"),x.innerHTML=""},300)),(new Ye).slickOverrideAccessbility(e,t);var I=e.querySelector(".slick-list");if(I){I.removeAttribute("aria-atomic"),I.removeAttribute("aria-live");var C=I.querySelectorAll(".slick-active")||[];1<C.length?I.setAttribute("role","list"):(I.setAttribute("role","presentation"),C&&C[0]&&C[0].removeAttribute("role"))}}}(o[0],s,t,i,r)}),o[0].classList.remove("pcs-slide-loader"),o[0].classList.contains("slick-initialized")&&o.slick("unslick"),tt(o),o.slick(s),o.slick("slickGoTo",s.initialSlide||0)),t(o)}},10)})},gotoSlide:function(e,t,i){e&&(e.slick("slickGoTo",t||0),tt(e))},resizeSlick:tt},nt=(ot.prototype.init=function(e){},ot.prototype.next=function(){},ot.prototype.prev=function(){},ot.prototype.pause=function(){},ot);function ot(e){this.sliderOptions=e||{}}var rt,st=window,at=(e(lt,rt=nt),lt.prototype.loadSlider=function(){var e=st.phw,t=e?e.platform:void 0,i=t.loadScriptById("jquery",!1),n=t.loadScriptById("slick",!1);return Promise.all([i,n])},lt.prototype.init=function(e,t){var i=this;rt.prototype.init.call(this,e),this._widgetScope=t;var n=e.querySelector(this.sliderOptions.selector||".ph-slider-container");return n&&n.classList.add("pcs-slide-loader"),this.loadSlider().then(function(){it.init(e,i.sliderOptions,i._widgetScope).then(function(e){i.slickElem=e})})},lt.prototype.gotoSlide=function(e){it.gotoSlide(this.slickElem,e,this.sliderOptions)},lt.prototype.resizeSlick=function(){it.resizeSlick(this.slickElem)},lt);function lt(e){return rt.call(this,e)||this}var dt=(ct.getSliderHandler=function(e,t){return new at(e)},ct);function ct(){}var pt=(ut.prototype.trackEvent=function(){},ut.prototype.init=function(){},ut.prototype.play=function(){var e=this.fetchVideoDetails(),t=this.element.getElementsByTagName("video");t.length&&(e.ctx.startTime=t[0].currentTime),Ce.trackWidgetClick(this.element,"play_click",e)},ut.prototype.pause=function(){var e=this.fetchVideoDetails(),t=this.element.getElementsByTagName("video");t.length&&(e.ctx.endTime=t[0].currentTime),Ce.trackWidgetClick(this.element,"pause_click",e)},ut.prototype.fetchVideoDetails=function(){return{ctx:{videotype:this.playerOptions.provider,videoid:this.playerOptions.videoId||this.playerOptions.src,videoUrl:this.playerOptions.videoUrl,duration:this.playerOptions.duration,startTime:0,endTime:0}}},ut.prototype.stop=function(){},ut.prototype.mute=function(){},ut.prototype.loop=function(){},ut);function ut(e,t,i){this.playerOptions=i,this.element=e}var ht,ft=window,gt="require",mt=["play","progress","current-time","mute","volume","captions","settings","fullscreen"],vt=["play","progress","current-time","mute","volume","captions","settings","fullscreen"],yt=(e(bt,ht=pt),bt.prototype.load=function(){var e=ft.phw,t=e?e.platform:void 0,i=t.loadScriptById("plyrPolyfill",!1),n=t.loadScriptById("plyrScript",!1),o=t.loadScriptById("plyrStyle",!1);return Promise.all([i,n,o])},bt.prototype.init=function(){var u=this;return this.load().then(function(){var e=document.createElement("div"),t=Ce.getSiteSettings("youtubeNoCookie"),i=u.playerOptions.selector||".ph-video-cntr",n=u.element&&u.element.querySelector(i)||u.element;n.innerHTML="",n.appendChild(e),u.playerOptions.provider=u.playerOptions.provider||u.playerOptions.videotype;var o=u.playerOptions.provider,r=u.playerOptions,s=ft.phApp&&ft.phApp.deviceType||"desktop";0!=r.controls&&(r.controls="mobile"==s?vt:mt),r.loop?r.loop={active:!0}:delete r.loop,(r.volume<=0||r.autoplay)&&(r.muted=!0),r.fullscreen={enabled:!1},r.autopause={enabled:!0},"youtube"===o?(r.youtube=r.youtube||{},t||(r.youtube.noCookie=!0),r.youtube.rel=0):"vimeo"===o&&(u.playerOptions.src=u.getVimeoId(u.playerOptions.src));var a=document.querySelector("body");switch(null==a||a.classList.remove("aws-video-plyr"),r.fullscreen={enabled:!1},o){case"youtube":case"vimeo":return u.loadYtdVimeo(function(){return e.setAttribute("data-plyr-provider",o),e.setAttribute("data-plyr-embed-id",u.playerOptions.src),u.player=new ft.Plyr(e,r),u.player.elements&&u.player.elements.poster&&u.player.elements.poster.classList.add("enabled"),u.player.on("ready",function(e){u.onPlayerReady()}),u.player.on("playing",function(e){ht.prototype.play.call(u),u.player.elements&&u.player.elements.controls&&u.player.elements.controls.firstElementChild&&u.player.elements.controls.firstElementChild.setAttribute("aria-label","Pause, "+(u.player.config.title||"")),u.player.elements&&u.player.elements.poster&&u.player.elements.poster.classList.remove("enabled")}),u.player.on("pause",function(e){ht.prototype.pause.call(u),u.player.elements&&u.player.elements.controls&&u.player.elements.controls.firstElementChild&&u.player.elements.controls.firstElementChild.setAttribute("aria-label","Play, "+(u.player.config.title||""))}),u.player},o);case"video":case"mp4":case"amazon":null==a||a.classList.add("aws-video-plyr"),document.querySelector(".on-demand-evaluation");var l=document.createElement("video"),d=document.createElement("source");d.setAttribute("src",u.playerOptions.videoUrl||u.playerOptions.src||u.playerOptions.playerDetails&&u.playerOptions.playerDetails.embedurl),d.setAttribute("type","video/mp4"),l.appendChild(d);var c={controlsList:"nodownload",disablepictureinpicture:!0,controls:u.playerOptions.controls?mt:[],preload:u.playerOptions.preload||"auto",playsinline:""};u.playerOptions.autoplay&&(c.autoplay="",c.muted=""),u.playerOptions.playsinline&&(c.playsinline=u.playerOptions.playsinline);var p=u.playerOptions.poster||u.playerOptions.coverimage||u.playerOptions.cover&&u.playerOptions.cover.src||u.playerOptions.playerDetails&&u.playerOptions.playerDetails.thumbnail;return p&&(c.poster=p),Object.keys(c).forEach(function(e,t){l.setAttribute(e,c[e])}),e.appendChild(l),u.player=new ft.Plyr(l,r),u.onPlayerReady(),u.player.on("playing",function(e){ht.prototype.play.call(u),u.player.elements&&u.player.elements.controls&&u.player.elements.controls.firstElementChild&&u.player.elements.controls.firstElementChild.setAttribute("aria-label","Pause, "+(u.player.config.title||""))}),u.player.on("pause",function(e){ht.prototype.pause.call(u),u.player.elements&&u.player.elements.controls&&u.player.elements.controls.firstElementChild&&u.player.elements.controls.firstElementChild.setAttribute("aria-label","Play, "+(u.player.config.title||""))}),"absolute"==window.getComputedStyle(l).position&&l.parentElement&&(l.parentElement.style.paddingBottom="44.25%"),u.playerOptions.captions&&"string"==typeof u.playerOptions.captions&&(l.setAttribute("crossOrigin","true"),[{src:u.playerOptions.captions,kind:"subtitles",label:"cc"}].forEach(function(e,t){var i=document.createElement("track");for(var n in e)i.setAttribute(n,e[n]);l.appendChild(i);var o=l.querySelector("track");o&&o.setAttribute("default","")})),"static"==window.getComputedStyle(l).position&&(l.offsetHeight>.8*window.innerHeight&&(l.style.height=.8*window.innerHeight+"px"),l.style.maxHeight=.8*window.innerHeight+"px",l.offsetWidth<.8*window.innerWidth&&360<window.innerWidth&&(l.style.minWidth="360px")),u.player}})},bt.prototype.loadYtdVimeo=function(i,n){return new Promise(function(e,t){ft[gt]&&!ft.Vimeo&&"vimeo"==n?ft[gt](["https://player.vimeo.com/api/player.js"],function(e){ft.Vimeo={Player:e},i()}):i(),e({})})},bt.prototype.onPlayerReady=function(){var e=this,t=document.querySelectorAll(".plyr");t&&t.forEach(function(e){e.setAttribute("tabindex","-1")});var i=document.querySelectorAll(".plyr__video-wrapper");i&&i.forEach(function(e){var t=e.querySelector("video");t&&t.setAttribute("tabindex","-1"),t&&t.setAttribute("aria-hidden","true")});var n=document.querySelectorAll(".plyr__video-embed");n&&n.forEach(function(e){var t=e&&e.querySelector("iframe");t&&t.setAttribute("tabindex","-1"),t&&t.setAttribute("aria-hidden","true")});var o=document.querySelectorAll(".plyr__time");if(o&&o.forEach(function(e){e.removeAttribute("aria-label")}),document.querySelectorAll(".plyr__controls").forEach(function(e){var t=e.querySelector('[data-plyr="settings"]');t&&t.setAttribute("aria-haspopup","false")}),this.playerOptions.volume<=0&&this.mute(),this.playerOptions.autoplay&&(this.mute(),this.player&&(this.player.autoplay=!0),this.play(),this.playerOptions.volume&&setTimeout(function(){e.unMute()},250)),this.playerOptions.loop&&this.loop(),this.playerOptions.controls||this.controls(),this.element){var r=this.element.querySelector(".ph-slider-container");r&&r.slick&&r.slick.refresh(),r||this.findSlider(this.element,10)}},bt.prototype.findSlider=function(e,t){e&&e.classList.contains("ph-slider-container")?e.slick&&e.slick.refresh():0<t&&this.findSlider(e&&e.parentElement,t-1)},bt.prototype.play=function(){this.player&&this.player.play()},bt.prototype.mute=function(){this.player&&(this.player.muted=!0)},bt.prototype.unMute=function(){this.player&&(this.player.volume=1,this.player.muted=!1)},bt.prototype.pause=function(){this.player&&this.player.pause()},bt.prototype.loop=function(){this.player&&(this.player.loop=!0)},bt.prototype.controls=function(){if(this.player){this.player.controls=!1,this.element&&this.element.firstElementChild&&this.element.firstElementChild.setAttribute("tabindex","-1");var e=this.element.querySelector("iframe");e&&e.setAttribute("tabindex","-1"),e&&e.setAttribute("aria-hidden","true")}},bt.prototype.preload=function(e){this.player&&(this.player.preload=e)},bt.prototype.changeVideo=function(e){},bt.prototype.getVimeoId=function(e){var t=e.match(/^.+vimeo.com\/(.*\/)?([^#\?]*)/);return t?t[2]||t[1]:null},bt.prototype.unbind=function(){this.player&&this.player.off&&this.player.off("playing",this.playVideo),this.player&&this.player.off&&this.player.off("pause",this.pauseVideo)},bt.prototype.playVideo=function(e){ht.prototype.play.call(this),this.player.elements&&this.player.elements.controls&&this.player.elements.controls.firstElementChild&&this.player.elements.controls.firstElementChild.setAttribute("aria-label","Pause, "+(this.player.config.title||"")),this.player.elements&&this.player.elements.poster&&this.player.elements.poster.classList.remove("enabled")},bt.prototype.pauseVideo=function(e){ht.prototype.pause.call(this),this.player.elements&&this.player.elements.controls&&this.player.elements.controls.firstElementChild&&this.player.elements.controls.firstElementChild.setAttribute("aria-label","Play, "+(this.player.config.title||""))},bt);function bt(e,t,i){var n=ht.call(this,e,t,i)||this;return Y.$on("pauseVideo",function(){n.pause()}),n}var wt,Et="KalturaPlayer",kt="kWidget",At="KALTURASCRIPTADDED",xt="getPlayerDetails",It=window,Ct=(e(St,wt=pt),St.prototype.isApiRequested=function(){return It&&It[At]},St.prototype.isApiLoaded=function(){return It&&It[kt]},St.prototype.checkApiLoaded=function(e){var t=this;It&&It[kt]?e&&e():setTimeout(function(){t.checkApiLoaded(e)},200)},St.prototype.raisePauseEvents=function(){var n=this;if(!this.playerOptions.allowMultiplePlay&&It&&It[Et]){var o=It[Et].getPlayers();o&&Object.keys(o).forEach(function(e){var t=o[e];if(t&&t.getMediaInfo){var i=t.getMediaInfo();i&&i.entryId&&i.entryId!=n.playerDetails.providerReferenceId&&t.pause()}})}},St.prototype.prepareVideoContainer=function(){this.playerContainer=document.createElement("div"),this.playerContainer.id="kaltura-player-"+Date.now()+"-"+this.videoId,this.playerContainer.classList.add("kaltura-player"),this.playerContainer.style.display="none";var e=.8*window.innerHeight,t=this.playerOptions.height;t&&(e=e<=t?e:t),this.playerOptions.externalEmbed||(this.playerContainer.style.height=e+"px");var i=this.playerOptions.selector||".ph-video-cntr",n=this.element.querySelector(i)||this.element;n.innerHTML="",n.appendChild(this.playerContainer)},St.prototype.loadKalturaApi=function(){var r=this;return new Promise(function(t,e){if(r.isApiRequested())r.checkApiLoaded(function(){t({})});else{It[At]=!0;var i=document.createElement("script"),n=r.playerDetails.embedurl;i.src=n,i.onload=function(){It.require&&!It.KalturaPlayer?It.require(["KalturaPlayer"],function(e){It[kt]=e,t({})}):(It[kt]=It.KalturaPlayer,t({}))};var o=document.querySelector("head");o&&o.appendChild(i)}})},St.prototype.preparePlayerDetails=function(){var n=this;return new Promise(function(t,i){n.playerOptions.playerDetails?(n.playerDetails=n.playerOptions.playerDetails,t({})):Me(xt,{videoId:n.videoId}).then(function(e){e&&e[xt]&&e[xt].data?(n.playerDetails=e[xt].data,t({})):i({})})})},St.prototype.loadVideoAndSetupListeners=function(){var a=this;return new Promise(function(i,t){a.playerOptions.playerDetails=a.playerOptions.playerDetails||a.playerDetails;var e=a.playerOptions.playerId||a.playerOptions.playerDetails&&a.playerOptions.playerDetails.playerId,n=a.playerOptions.partnerId||a.playerOptions.playerDetails&&a.playerOptions.playerDetails.partnerId,o={targetId:a.playerContainer?a.playerContainer.id:void 0,provider:{partnerId:n,uiConfId:e},playback:{autoplay:!1,allowMutedAutoPlay:!1}};1===a.playerOptions.autoplay&&(o.playback.autoplay=!0),0===a.playerOptions.volume&&(o.playback.allowMutedAutoPlay=!0);var r=It[kt].setup(o);if(r){r.ready().then(function(e){if(a.element){var t=a.element.querySelector(".ph-slider-container")||a.findSlider(a.element,10);t&&t.slick&&t.slick.refresh()}}),r.addEventListener(r.Event.Core.PROGRESS,function(e){}),r.addEventListener(r.Event.Core.PAUSE,function(e){a.pauseInternal()}),r.addEventListener(r.Event.Core.PLAY,function(e){a.playInternal(),a.raisePauseEvents()});var s={entryId:a.playerDetails.providerReferenceId,ks:a.playerOptions.ks||a.playerOptions.playerDetails.ks||""};r.loadMedia(s).then(function(){if(a.playerOptions.externalEmbed&&a.playerOptions.playerDetails.externalEmbedItemId){var e=a.playerOptions.playerDetails.externalEmbedItemId,t=a.playerOptions.playerDetails.externalEmbedNamespace;It[t]&&It[t][e]&&It[t][e].embedPlayerReady&&It[t][e].embedPlayerReady(a)}a.playerContainer&&(a.playerContainer.style.display="block"),i({})},function(e){t({})})}a.player=r})},St.prototype.play=function(){var e=this;this.player&&setTimeout(function(){wt.prototype.play.call(e),e.player.play?e.player.play():e.player.sendNotification&&e.player.sendNotification("doPlay")},100)},St.prototype.playInternal=function(){wt.prototype.play.call(this)},St.prototype.pauseInternal=function(){wt.prototype.pause.call(this)},St.prototype.pause=function(){this.player&&(wt.prototype.pause.call(this),this.player.pause?this.player.pause():this.player.sendNotification&&this.player.sendNotification("doPause"))},St.prototype.stop=function(){wt.prototype.stop.call(this)},St.prototype.mute=function(){wt.prototype.mute.call(this),this.player.sendNotification&&this.player.sendNotification("changeVolume",0)},St.prototype.autoplay=function(){var e=this;this.player&&this.player.sendNotification&&(It.KWidget&&!It.KWidget.isChrome()&&!It.KWidget.isIOS()&&It.KWidget.isSafari()&&this.player.sendNotification("changeVolume",0),setTimeout(function(){e.player.sendNotification("doPlay")},100))},St.prototype.changeVideo=function(e){this.player.sendNotification&&(e?this.player.sendNotification("changeMedia",{entryId:e}):this.player.sendNotification("changeMedia",{entryId:this.playerOptions.videoId}))},St.prototype.findSlider=function(e,t){return e&&e.classList.contains("ph-slider-container")?e:0<t?void this.findSlider(e&&e.parentElement,t-1):null},St.prototype.init=function(){var i=this;return new Promise(function(t,e){i.videoId=i.playerOptions.kalturaEntryId||i.playerOptions.entryId||i.playerOptions.videoId,i.prepareVideoContainer(),i.preparePlayerDetails().then(function(e){i.loadKalturaApi().then(function(e){i.loadVideoAndSetupListeners().then(function(){t({})})})})})},St.prototype.unbind=function(){},St);function St(e,t,i){var n=wt.call(this,e,t,i)||this;return Y.$on("pauseVideo",function(){n.pause()}),n}var Tt,_t=window,Lt=(e(Ot,Tt=pt),Ot.prototype.isApiLoaded=function(){return _t?_t.YT:void 0},Ot.prototype.init=function(){var r=this;return this.load().then(function(){if(r.player)return r.playerLoaded=!0,r.onPlayerReady(void 0,r.player),r.player;var e=document.createElement("div"),t=r.playerOptions.selector||".ph-video-cntr",i=r.element&&r.element.querySelector(t)||r.element;i.innerHTML="",i.appendChild(e);var n=r.fetchVideoId(r.playerOptions.src)||r.playerOptions.description,o={videoId:n,playerVars:{rel:r.playerOptions.rel||0,modestbranding:r.playerOptions.modestbranding||!0,origin:window.location.href,controls:r.playerOptions.controls||1,loop:r.playerOptions.loop||0,playsinline:r.playerOptions.playsinline||1}};return o.width=o.width||"100%",o.height=o.height||"100%",r.playerOptions.loop&&(o.playerVars.playlist=n),o.events={onReady:r.onPlayerReady},Ce.getSiteSettings("youtubeNoCookie")||(o.host="https://www.youtube-nocookie.com"),e&&(r.player=new _t.YT.Player(e,o)),r.player})},Ot.prototype.fetchVideoId=function(e){if(e)return void 0!==(e=-1!=e.indexOf("watch")?e.replace(/(>|<)/gi,"").split(/(vi\/|v=|\/v\/|youtu\.be\/|\/watch\/)/):e.replace(/(>|<)/gi,"").split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/))[2]?e[2].split(/[^0-9a-z_\-]/i)[0]:e},Ot.prototype.load=function(){var o=this;return new Promise(function(e,t){if(o.isApiLoaded())return o.waitingForPlayer(e);_t.YTSCRIPTADDED=!0;var i=document.createElement("script");i.src="https://www.youtube.com/iframe_api",i.setAttribute("async",""),i.setAttribute("defer",""),i.onload=function(){return o.waitingForPlayer(e)};var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(i,n)})},Ot.prototype.waitingForPlayer=function(t){var i=this,n=10,o=setInterval(function(){var e=i.isApiLoaded();n++,e&&e.Player&&(clearInterval(o),t({})),10==n&&clearInterval(o)},300)},Ot.prototype.play=function(){this.player&&this.player.playVideo()},Ot.prototype.pause=function(){this.player&&this.player.pauseVideo()},Ot.prototype.stop=function(){Tt.prototype.stop.call(this),this.player&&this.player.stopVideo()},Ot.prototype.mute=function(){Tt.prototype.mute.call(this),this.player&&this.player.mute()},Ot.prototype.unMute=function(){this.player&&(this.player.volume=1,this.player.muted=!1)},Ot.prototype.loop=function(){Tt.prototype.loop.call(this),this.player&&this.player.setLoop(!0)},Ot.prototype.changeVideo=function(e){e?this.player.loadVideoById(e):this.player.loadVideoById(this.playerOptions.videoId)},Ot);function Ot(e,t,i){var n=Tt.call(this,e,t,i)||this;return n.playerLoaded=!1,n.onApiReady=function(){},n.onPlayerReady=function(e,t){n.player=t||e.target,setTimeout(function(){n.player.addEventListener("onStateChange",function(e){n.onPlayerStateChange(e)})},500),n.playerOptions.volume<=0&&n.mute(),"1"==n.playerOptions.autoplay&&(n.play(),n.playerOptions.volume&&setTimeout(function(){n.unMute()},250)),"1"==n.playerOptions.loop&&n.loop()},n.onPlayerStateChange=function(e,t){var i=e.data;i==_t.YT.PlayerState.PLAYING?Tt.prototype.play.call(n):i==_t.YT.PlayerState.PAUSED&&Tt.prototype.pause.call(n)},Y.$on("pauseVideo",function(){n.pause()}),_t&&(_t.onYouTubeIframeAPIReady=n.onApiReady),n}var Mt=(Pt.PROVIDER_KALTURA_PLAYER="kaltura",Pt.PROVIDER_YOUTUBE="youtube",Pt.PROVIDER_VIDEO="video",Pt.PROVIDER_PLYR="plyr",Pt.PROVIDER_VIMEO="vimeo",Pt);function Pt(){}var Dt=(Rt.createPlayer=function(e,t,i){var n=Ce.getSiteSettings("ignorePlyrOnYoutube");return Mt.PROVIDER_KALTURA_PLAYER===t?new Ct(e,t,i):Mt.PROVIDER_YOUTUBE===t&&n?new Lt(e,t,i):new yt(e,t,i)},Rt);function Rt(){}var Ft,Vt,Bt,Nt=(jt.prototype.create=function(){this.componentTag.length&&this.dialogContentElem.length&&this.createDialogElements()},jt.prototype.setFocusOnCloseElem=function(e){this.focusOnCloseElem=e||this.focusOnCloseElem||document.activeElement},jt.prototype.setFocusableElements=function(e){e?this.focusableElements=e:(this.focusableElements=this.dialogElem&&this.dialogElem.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable], audio[controls], video[controls], summary'),this.focusableElements=Array.prototype.slice.call(this.focusableElements)),this.firstFocusableElement=this.focusableElements[0],this.lastFocusableElement=this.focusableElements[this.focusableElements.length-1]},jt.prototype.addEventListeners=function(){document.addEventListener("focus",this.handleFocus,!0),document.addEventListener("keyup",this.handleEscapeClick,!0)},jt.prototype.removeEventListeners=function(){document.removeEventListener("focus",this.handleFocus,!0),document.removeEventListener("keyup",this.handleEscapeClick,!0)},jt.prototype.open=function(e){this.dialogElem&&(this.componentTag&&ye(this.dialogElem.firstElementChild,this.componentTag,this.dialogModel),this.setFocusOnCloseElem(),this.setFocusableElements(e),e&&e.length&&(this.anyFocusableElems=e),this.addEventListeners(),this.overFlowValue=document.body.style.overflow||"",document.body.style.overflow="hidden",this.focusEle?this.focusEle.focus():this.firstFocusableElement&&this.firstFocusableElement.focus()),this.moveDialogToBody&&this.dialogElem&&document.body.appendChild(this.dialogElem)},jt.prototype.handleEscapeClick=function(e){e&&27==e.keyCode?Ft.close():e&&9==e.keyCode&&e.shiftKey&&e.target},jt.prototype.close=function(){var e;if(this.dialogElem&&this.dialogElem.parentElement){if(this.removeEventListeners(),document.body.style.overflow=this.overFlowValue||"auto",this.focusOnCloseElem&&this.focusOnCloseElem.focus(),this.moveDialogToBody){var t=this.dialogElem.getAttribute("data-id"),i=t&&document.getElementById(t);i&&(null===(e=i.parentElement)||void 0===e||e.replaceChild(this.dialogElem,i))}return!0}return!1},jt.prototype.createDialogElements=function(){var e=document.createElement("div"),t=document.createElement(this.componentTag),i=document.createElement("div"),n=(document.createElement("div"),this.dialogContentElem);this.dialogContentElem&&"object"==typeof this.dialogContentElem&&(n=this.dialogContentElem.outerHTML),t.appendChild(e),t.innerHTML=n,document.body.appendChild(t),i.className="modal fade in show ph-a11y-modal-area",i.setAttribute("role","dialog"),i.innerHTML=n,this.dialogModel=m(m({},this.dialogModel),{template:i.outerHTML}),this.dialogElem=t},jt);function jt(e,t,i,n,o,r){var s=this;this.isOpen=!1,this.overFlowValue="",this.anyFocusableElems=[],this.moveDialogToBody=!1,this.handleFocus=function(e){e.preventDefault(),s.dialogElem&&e.target&&!s.dialogElem.contains(e.target)&&"TEXTAREA"!=e.target.nodeName?(s.anyFocusableElems&&s.anyFocusableElems.length?s.setFocusableElements(s.anyFocusableElems):s.setFocusableElements(),s.firstFocusableElement&&s.lastFocusableElement&&s.previousFocusableElement===s.lastFocusableElement?(s.firstFocusableElement.focus(),s.previousFocusableElement=s.firstFocusableElement):s.lastFocusableElement&&s.firstFocusableElement&&s.previousFocusableElement===s.firstFocusableElement?(s.lastFocusableElement.focus(),s.previousFocusableElement=s.lastFocusableElement):(s.firstFocusableElement.focus(),s.previousFocusableElement=s.firstFocusableElement)):s.previousFocusableElement=e.target},this.componentTag=e,this.dialogContentElem=t,this.dialogModel=i,this.focusEle=n||null,this.focusOnCloseElem=o||null,this.moveDialogToBody=r||!1,this.create()}function Ht(e){if(Bt&&Bt.length&&(!e||!e.isNonModal)){var i=[];Bt.forEach(function(e,t){e.dialogElem.close()&&i.push(t)}),i.forEach(function(e){Bt.splice(e,1)})}}function Ut(){if(Bt&&Bt.length)return Bt[Bt.length-1]}Vt=Ft=Ft||{},Bt=[],Vt.open=function(e,t,i,n,o,r){var s=new Nt(e,t,i,o,r),a={dialogElem:s,isNonModal:n||!1};Ht(a),Bt.push(a),s.open()},Vt.openDialog=function(e,t,i,n,o,r){var s;document.body.classList.add("modal-open"),i=i||document.activeElement;var a=new Nt("","",{},t,i,r);if(r){var l=document.createElement("div"),d="a"+Math.random().toString(32).slice(2,12);l.setAttribute("id",d),null==e||e.setAttribute("data-id",d),null===(s=null==e?void 0:e.parentNode)||void 0===s||s.insertBefore(l,e)}a.dialogElem=e,a.open(o);var c={dialogElem:a,isNonModal:n||!1};Ht(c),Bt.push(c)},Vt.close=function(){var e=Ut();e&&(Bt.pop(),e.dialogElem.close(),document.body.classList.remove("modal-open"))},Vt.closeAll=function(){},Vt.getOpenDialogs=function(){if(Bt&&Bt.length)return Bt},Vt.getActiveDialog=Ut;var $t=(qt.prototype.triggerPopup=function(e,t,i,n,o){var r=this;this._self.currentData=e,n&&(this._self.bindModel.mediaType=n,this._self.settings.bindables=this._self.settings.bindables||{},this._self.settings.bindables.attrs=this._self.settings.bindables.attrs||{},this._self.settings.bindables.attrs.mediaType=n);var s=this._self.content[this._self.contentId]&&this._self.content[this._self.contentId].list||[];if(this._self.bindModel.mode=this._self.bindModel.mode||"popup","popup"===this._self.bindModel.mode){if(this._self.enablePopup=!0,"video"===this._self.bindModel.mediaType){var a=e.video||e;a&&a.videotype&&(a.provider=a.provider||a.videotype),this._self.playerOptions=m(m({},this._self.bindModel.playerOptions),i||{}),this._self.$nextTick(function(){r._self.initVideoPlayer(r._self.playerOptions,a,1<s.length,o)})}"gallery"===this._self.bindModel.mediaMode&&(this._self.currentData=s,this._self.slickGotoSlide(t)),this._self.openDialog()}if("video-inline"===this._self.bindModel.mediaType){var l=e.video||e;l&&l.videotype&&(l.provider=l.provider||l.videotype),this._self.playerOptions=m(m({},this._self.bindModel.playerOptions),i||{}),this._self.$nextTick(function(){r._self.initVideoPlayer(r._self.playerOptions,l,1<s.length)})}},qt.prototype.handleTranscript=function(){var e=(this._self.currentData.video||this._self.currentData||{}).transcript;window.open(e),this._self.player&&this._self.player.pause&&this._self.player.pause(),this._self.trackWidgetClick("transcript_click",{})},qt.prototype.handleAudiodescription=function(){var e=JSON.parse(JSON.stringify(this._self.currentData.video||this._self.currentData));e.enabledDescription=!e.enabledDescription,e.enabledDescription?(e.src=e.audiodescription,e.videoUrl=e.audiodescription,this._self.trackWidgetClick("enable_description_video_click",{})):(e=this._self.currentData.video||this._self.currentData,this._self.trackWidgetClick("disable_description_video_click",{})),this._self.initVideoPlayer(this._self.playerOptions,e,!0)},qt.prototype.openDialog=function(n){var o=this;this._self.$nextTick(function(){var e=o._self.$el&&o._self.$el.querySelector(".modal"),t=o._self.$el&&o._self.$el.querySelector(".close"),i=document.activeElement||document.querySelector("body");t&&n.openDialog(e,t,i)})},qt.prototype.closePopup=function(){this._self.player&&this._self.player.pause&&this._self.player.pause(),this._self.closeDialog(),this._self.trackWidgetClick("popup_close_click",{}),this._self.enablePopup=!1},qt.prototype.handleHashScrollIntoView=function(){var e=window.location.hash,t=e&&e.substring(1),i=this._self.$el&&this._self.$el.getAttribute("id");i&&i===t&&this._self.$el.scrollIntoView()},qt);function qt(e){this._self=e}var Wt,Kt="pcs-tref",Jt="ph-tmpl-string",Yt=["pcs-card-v1","pcs-component-v1"],zt="caasPageViews",Gt="caasContentV1",Qt=["eagerLoadRefineSearchSession"],Xt="instance-id",Zt=["[",Xt,"]"].join(""),ei=(e(ti,Wt=u),ti.prototype.fetchInstanceIdValue=function(e){if(e&&e[this.instanceId])return e[this.instanceId]},ti.prototype.fetchContentModel=function(i,e){var n=this;return(e=e||{}).pageId=b.getPageId(),Me(i,e).then(function(e){var t=e||{};if(t=t[i]||{},n.handleWidgetImpressionparams(t),"success"===t.status)return t.data;"failure"!=t.status&&500!=t.status||n.onError()},function(e){n.onError()})},ti.prototype.fetchPageContext=function(){var e=Oe(zt);if((e=e[zt])&&"success"===e.status){var t=e.data||{};return this.aliases=t.aliases,this.widgetViews=t.views||{},e.data}},ti.prototype.getAgpMetaData=function(){var e=Oe("getAgpMetaData")||{};(e=e.getAgpMetaData)&&e.status&&"success"==e.status&&e.data&&(this.agpMetaData=e.data)},ti.prototype.fetchInnerTmpl=function(e){return this.innerTmplElems[e]||""},ti.prototype.setTemplate=function(e){var t,i=this,n=e.aliases||{},o=e.views||{};if(n&&n[this.instanceId]||o[this.widgetId]){var r=n[this.instanceId]&&n[this.instanceId]||o[this.widgetId]&&o[this.widgetId],s=document.createElement("div");this.tmplString=r.html||r[0].html||"",this.viewName=o[this.widgetId]&&o[this.widgetId].view,this.themeName=o[this.widgetId]&&o[this.widgetId].theme,this.wdgtClsName=[this.elemTag,this.viewName,this.themeName].join("-"),this.tmplString&&(s.innerHTML=this.tmplString);for(var a=s.querySelectorAll("["+Jt+"]"),l=0;l<a.length;l++){var d=a[l],c=d.getAttribute(Jt);c&&(this.innerTmplElems[c]=d.outerHTML),d.parentElement&&d.parentElement.removeChild(d)}t=s.innerHTML,this.$options.template=this.constructTmplString(t);var p=50;-1!=Yt.indexOf(this.elemTag)&&(p=0),setTimeout(function(){i.$el&&i.$el instanceof HTMLElement&&(i.wgtElem=i.$el,i.wgtElem.style&&(i.wgtElem.style.padding=null),i.widgetViewLoadedLocal(),i.raiseWidgetLoadedCustomEVent(),i.bindModel&&i.bindModel.px&&i.bindModel.px.enabled&&i.contentId&&(Ce.responseDdoCallback(i.fetchRecomContentBasedOnActivity),i.isPxFiedWidgetContent()))},p)}},ti.prototype.constructTmplString=function(e){if(-1==Yt.indexOf(this.elemTag))this.instanceId&&(e='<div instance-id="'+this.instanceId+'">'+e+"</div>"||"<div></div>");else if(this.pinstanceId){var t=document.createElement("div");t.innerHTML=e;for(var i=t.querySelectorAll(Zt),n=0;n<i.length;n++){var o=i[n].getAttribute(Xt);i[n].setAttribute(Xt,this.pinstanceId+"-"+o)}e=t.innerHTML}return e},ti.prototype.raiseWidgetLoadedCustomEVent=function(){!Ce.isCrawlerUserAgent()&&-1==Yt.indexOf(this.elemTag)&&this.wgtElem&&this.wgtElem instanceof HTMLElement&&this.raiseCustomEvent("ph:ex:widgetLoaded",{elem:this.wgtElem})},ti.prototype.raiseCustomEvent=function(e,t){var i=new CustomEvent(e,{bubbles:!0,detail:t});document.dispatchEvent(i)},ti.prototype.created=function(){var e=this;this.baseCompUtil=new $t(this);var t=this.fetchPageContext()||{};this.bindModel=this.bindableModel||{},this.elemTag=this.elementTag||"",this.pxDDoList=Ce.getSiteSettings("pxSupportedDDoList")||Qt,this.deviceType=b.getDeviceType(),this.ignorePlyr=Ce.getSiteSettings("ignorePlyrOnYoutube"),this.handleSctxAndContentCtx(t),!b.getIsinlinePreview()&&"pcs-component-v1"==this.elemTag&&this.sctx&&this.sctx.hidden&&-1==(this.widgetViews[this.widgetId]&&this.widgetViews[this.widgetId].html||"").indexOf("data-ignore-remove")?setTimeout(function(){e.$el&&e.$el.parentElement&&e.$el.parentElement.removeChild&&e.$el.parentElement.removeChild(e.$el)},150):this.setTemplate(t)},ti.prototype.handleSctxAndContentCtx=function(e){var t=e.settings||{};this.settings=t&&t[this.instanceId]||t[this.widgetId]||{},this.sctx&&(this.settings=this.sctx),this.mergeSettings(),this.mergeSiteLevelBindables(),this.mergeSettingsToLocal(),this.settingsLoadedLocal();var i=b.getDDOFromCache(Gt);if(this.pageContent=i&&i.data,this.ctx)this.bindModel&&this.bindModel.px&&this.bindModel.px.enabled?this.isPxFiedWidgetContent():(this.isContentFetched=!0,this.commonCnt=this.fetchCommonContent(),this.content=this.ctx,this.exposeAliasToTemplate("block1",this.contentId,this.commonCnt),this.contentModelLoadedLocal());else if(-1!=Yt.indexOf(this.elemTag)||this.bindModel&&this.bindModel.px&&this.bindModel.px.enabled)this.bindModel&&this.bindModel.px&&this.bindModel.px.enabled&&(this.isContentFetched=!0);else if(i){this.handleWidgetImpressionparams(i);var n=((i=i&&i.data||{}).content?i.content:i)||{},o=this.fetchInstanceIdValue(this.aliases);if(o&&o.length){var r=o[0]["data-ph-content-id"];if(n&&n[r]){if(this.content[r]=JSON.parse(JSON.stringify(n[r].content||{})),this.rawContent[r]=n[r]||{},this.bindModel&&this.bindModel.maxCardsToDisplay){this.content[this.contentId]=this.content[this.contentId]||{};var s=this.content[this.contentId].list||[];if(this.bindModel.maxCardsToDisplay<s.length){try{this.content[this.contentId]._list=JSON.parse(JSON.stringify(s))}catch(e){}this.content[this.contentId].list=s.splice(0,this.bindModel.maxCardsToDisplay)}}this.bindModel.mandateRequiredFields&&this.bindModel.requiredFields&&this.bindModel.requiredFields.length&&this.eliminateMissingRequiredFieldsCards()}}this.isContentFetched=!0,this.contentModelLoadedLocal()}else this.handleError()},ti.prototype.exposeAliasToTemplate=function(e,t,i){if(this[e]={},this.isContentFetched){var n=i||this.commonCnt;n||(this.contentId=t,n=this.content[this.contentId]),this[e]=n||this.ctx}},ti.prototype.fetchCommonContent=function(){var e,t=this.pageContent&&this.pageContent.common||{},i=this.widgetId;if(this.pwidgetId){i=this.pwidgetId+"-"+i;var n=t&&t[i];if(n&&this.pageContent.content&&this.pageContent.content[n]){this.contentId=n;var o=this.compileContentModel(this.pageContent,((e={})[this.instanceId]=[{"data-ph-content-id":n}],e));return o=o&&o.data&&o.data.content&&o.data.content[n]&&o.data.content[n].content}}return""},ti.prototype.trackWidgetClick=function(e,t,i){Ce.trackWidgetClick(this.wgtElem,e,t,i)},ti.prototype.getBaseDomain=function(){return b.getBaseDomain()},ti.prototype.mounted=function(){},ti.prototype.widgetViewLoadedLocal=function(){this.isWidgetViewLoaded=!0,this.widgetViewLoaded(),this.baseCompUtil.handleHashScrollIntoView(),this.isWidgetViewLoaded&&this.isContentModelLoaded&&this.isSettingsModelLoaded&&this.widgetReady()},ti.prototype.contentModelLoadedLocal=function(){this.isContentModelLoaded=!0,this.contentModelLoaded(),this.isWidgetViewLoaded&&this.isContentModelLoaded&&this.isSettingsModelLoaded&&this.widgetReady()},ti.prototype.settingsLoadedLocal=function(){this.isSettingsModelLoaded=!0,this.settingsLoaded(),this.isWidgetViewLoaded&&this.isContentModelLoaded&&this.isSettingsModelLoaded&&this.widgetReady()},ti.prototype.widgetViewLoaded=function(){},ti.prototype.contentModelLoaded=function(){},ti.prototype.settingsLoaded=function(){},ti.prototype.hasContentModelLoaded=function(){return this.isContentModelLoaded},ti.prototype.hasWidgetViewLoaded=function(){return this.isWidgetViewLoaded},ti.prototype.hasSettingsLoaded=function(){return this.isSettingsModelLoaded},ti.prototype.widgetReady=function(){},ti.prototype.mergeSettings=function(){if(this.settings.bindables=this.settings.bindables||{},this.settings.bindables.attrs=this.settings.bindables.attrs||{},this.bindables&&Object.keys(this.bindables).length)for(var e in this.bindables)this.settings.bindables.attrs[e]=this.bindables[e];if(this.settings.bindables.attrs)for(var t in this.settings.bindables.attrs)this.bindModel[t]=this.settings.bindables.attrs[t]},ti.prototype.mergeSiteLevelBindables=function(){var e=Ce.getSiteSettings("siteLevelWidgetBindables");e=e&&e[this.widgetId]||{},this.bindModel=this.bindModel||{},e&&(this.bindModel=m(m({},this.bindModel),e))},ti.prototype.mergeSettingsToLocal=function(){this.bindableModel=m(m({},this.bindableModel),this.bindModel)},ti.prototype.focusElement=function(e,t,i){var n=i||this.wgtElem;Ce.focusElement(e,t,n)},ti.prototype.focusFormError=function(){this.focusElement(".error.sr-only:not(.aurelia-hide)",50)},ti.prototype.initSliderMode=function(e,t){if(this.wgtElem&&this.wgtElem.querySelector){var i=this.wgtElem.querySelector(".slick-buttons-area-templates .slick-prev"),n=this.wgtElem.querySelector(".slick-buttons-area-templates .slick-next");return(e=e||{}).isPrevArrowInnerHtml?i&&(e.prevArrow=i.innerHTML):i&&(e.prevArrow=i.outerHTML),e.isNextArrowInnerHtml?n&&(e.nextArrow=n.innerHTML):n&&(e.nextArrow=n.outerHTML),this.sliderHandler=dt.getSliderHandler(e,t),e.tabs&&(this.showSliderTab=!0),this.sliderHandler.init(this.wgtElem,this)}},ti.prototype.slickGotoSlide=function(e){this.sliderHandler.gotoSlide(e)},ti.prototype.resizeSlick=function(){this.sliderHandler.resizeSlick(this.wgtElem)},ti.prototype.initVideoPlayer=function(t,i,e,n){var o=this;if(n=n||this.wgtElem,!this.player||e)if("kaltura"==i.provider){var r=i.kalturaEntryId||i.entryId||i.videoId,s="getPlayerDetails";Me("getPlayerDetails",{videoId:r}).then(function(e){e&&e[s]&&e[s].data&&e[s].data.provider&&(i.provider=e[s].data.provider,i.src=e[s].data.embedurl),o.initPlayerOnBasisOfProvider(t,i,n)})}else this.initPlayerOnBasisOfProvider(t,i,n);else this.player&&this.player.onPlayerReady()},ti.prototype.initPlayerOnBasisOfProvider=function(e,t,i){var n=this,o=m(m({},t),e),r=Dt.createPlayer(i,o.provider||"",o);r&&r.init().then(function(e){n.player=r})},ti.prototype.fetchRecomContentBasedOnActivity=function(e){this.isPxFiedWidgetContent(e)},ti.prototype.isPxFiedWidgetContent=function(e){var i=this,t=this.constructPxReq();Ce.isCrawlerUserAgent()||e&&-1===Qt.indexOf(e||"")||-1!=Yt.indexOf(this.elemTag)||!t.contentId||(this.globalLookupContent&&(t.globalLookupContent=!0),this.fetchContentModel("recomCaasContent",t).then(function(e){if(e&&e.content&&e.content[i.contentId]){var t=i.compileContentModel(e);t&&t.data&&t.data.content&&t.data.content[i.contentId]&&t.data.content[i.contentId].content&&(i.content[i.contentId]=t.data.content[i.contentId].content||{},i.bindModel.mandateRequiredFields&&i.bindModel.requiredFields&&i.bindModel.requiredFields.length&&i.eliminateMissingRequiredFieldsCards()),i.showContainer()}else i.handleError();i.isContentFetched=!0,i.exposeAliasToTemplate("block1",i.contentId),i.$forceUpdate(),e&&i.contentModelLoadedLocal()},function(e){i.onError()}))},ti.prototype.compileContentModel=function(e,t){var i,n=window.phw;return e&&n&&n.platform&&n.platform.compileContentModel?(t||((i={})[this.instanceId]=this.aliases[this.instanceId],t=i),n.platform.compileContentModel(t,{data:e})):e},ti.prototype.getSettingsMapper=function(){var e,t=this.settings&&this.settings.list&&this.settings.list[0]||{},i=this.bindModel.requireFieldsSettingsMapper||{},n={},o=b.getDDOFromCache(Gt),r=this.getContentMetaData(o);return r&&(e=r.content&&r.content.list&&r.content.length,n=r.mapping),{settings:t,fieldsSettingsMapper:i,size:e,mapping:n}},ti.prototype.constructPxReq=function(){var e=this.getSettingsMapper(),t=e.size,i=e.mapping,n=e.settings,o=e.fieldsSettingsMapper||{},r=this.bindModel.maxCardsToDisplay,s={contentId:this.contentId,pxEnabled:!0,pageName:b.getPageName(),pageType:b.getPageType()};if(this.bindModel.px.type&&(s.type=this.bindModel.px.type),(t||r)&&(s.batchSize=r||t),this.bindModel.priority&&(s.priority=this.bindModel.priority),this.settings["card-container"]&&this.settings["card-container"].custom&&this.settings["card-container"].custom.fixedContainer){s.height=this.settings["card-container"].custom.fixedContainer.ctrH;var a=this.settings["card-container"].custom.fixedContainer.ctrAr;(a=a&&a.split(":"))&&a.length&&(s.aspectRatio=a[0]/a[1])}return this.bindModel.requiredFields&&i&&(s.requiredFields=[],this.bindModel.requiredFields.forEach(function(e){var t=o[e];!i[e]||t&&n[t]&&n[t].hidden||s.requiredFields.push(i[e])})),this.getAgpMetaData(),Object.keys(this.agpMetaData||{}).length&&(s.agpMetaData=this.agpMetaData),this.bindModel.fieldRecomctx&&this.bindModel.fieldRecomctx.length&&(s.contextData=this.constructJobPageFieldBasedRecomObj()),s},ti.prototype.constructJobPageFieldBasedRecomObj=function(){var e,t,i=Oe("jobDetail"),n=null===(t=null===(e=null==i?void 0:i.jobDetail)||void 0===e?void 0:e.data)||void 0===t?void 0:t.job,o={};return n&&this.bindModel.fieldRecomctx.forEach(function(e){n[e]&&(o[e]=o[e]||[],o[e].push(n[e]))}),o},ti.prototype.eliminateMissingRequiredFieldsCards=function(){var a=this,e=this.content[this.contentId].list||[],l=this.getSettingsMapper().fieldsSettingsMapper,d=this.getSettingsMapper().settings,c=[];e.forEach(function(e){for(var t=!0,i=0;i<a.bindModel.requiredFields.length;i++){var n=a.bindModel.requiredFields[i],o=e[n],r=l[e];if(!(o&&Object.keys(o).length||r&&d[r]&&d[r].hidden)){t=!1;break}if("video"==n){if(Object.keys(o).length<=1){t=!1;break}var s=o.videotype;if(s&&"kaltura"==s&&!o.entryId){t=!1;break}if(!o.src){t=!1;break}}}t&&c.push(e)}),this.content[this.contentId].list=c},ti.prototype.getSearchKeyword=function(){for(var e=location.search,t=(e=e.substr(1)).split("&"),i=0;i<t.length;i++){var n=t[i];if(1<(n=n.split("=")).length&&-1!=["keywords","q"].indexOf(n[0]))return decodeURIComponent(n[1])}},ti.prototype.getUrl=function(e,t,i,n,o){var r=this.getUrlQueryString(e,t,i,n,o);return o=o||Ce.getUrl(t,i,r)},ti.prototype.getUrlQueryString=function(e,t,i,n,o){var r=e&&this.$refs&&this.$refs[e]&&this.$refs[e][0];r&&r.setAttribute&&r.setAttribute("pcs-click-ctx",t),r&&r.getAttribute&&r.getAttribute("pcs-track")&&(this.subscribeToTrackingEvents(r),r.setAttribute(Kt,(new Date).getTime()+(65536*(1+Math.random())|0).toString(16).substring(0)),r.setAttribute("pcs-tag",this.elemTag),Ce.storePageTrackEventData(r.getAttribute(Kt),i));var s="";if(n)try{var a="",l="&"+(n=n.trim()),d=/&[a-zA-Z0-9\s]+\=/g,c=l.match(d);if(c){for(var p=l.split(d),u=0;u<c.length;u++){var h=c[u];h&&p[u+1]&&(a+=h+encodeURIComponent(p[u+1]))}a=a.replace("&","")}s=a}catch(e){console.warn("ph-widget:getUrl:"+e)}return s},ti.prototype.subscribeToTrackingEvents=function(e){e&&e.addEventListener("click",function(e){e.phTarget||(e.phTarget=e.currentTarget)})},ti.prototype.dispatchEvent=function(e,t){var i=new CustomEvent(e,{bubbles:!0,detail:t||{}});document.dispatchEvent(i)},ti.prototype.hideLoader=function(){this.showLoader=!1},ti.prototype.unhideLoader=function(){this.showLoader=!0},ti.prototype.onError=function(e){this.hideContainer()},ti.prototype.hideContainer=function(){this.wgtElem&&this.wgtElem instanceof HTMLElement&&this.wgtElem.style&&(this.wgtElem.style.display="none")},ti.prototype.showContainer=function(){this.wgtElem&&this.wgtElem instanceof HTMLElement&&this.wgtElem.style&&(this.wgtElem.style.display="block")},ti.prototype.handleError=function(e){this.hideLoader(),this.bindModel.isErrorMsgReqd?this.showErrorMsg=!0:this.onError("")},ti.prototype.handleWidgetImpressionparams=function(e){if(this.wgtElem&&"object"==typeof this.wgtElem){var t=this.getContentMetaData(e).contentModel;t&&this.wgtElem.setAttribute("data-event-content-type",t),this.contentId&&this.wgtElem.setAttribute("data-event-content-id",this.contentId),this.wgtElem.setAttribute("data-event-px-enabled",this.bindModel&&this.bindModel.px&&this.bindModel.px.enabled||"false")}},ti.prototype.getContentMetaData=function(e){if(e.data&&e.data.modelMappings){var t=e.data.modelMappings||{},i=e.data.origContentItems||e.data.content||{},n=i[this.contentId]||{},o=n.list&&n.list.value&&n.list.value[0],r=i[o]&&i[o].mappingModel;return{modelMappings:t,contentModel:t[r]&&t[r].contentModel,mapping:t[r]&&t[r].mapping,content:n}}return{}},ti.prototype.subscribeEvent=function(e,t){Y.$on(e,t)},ti.prototype.unsubscribeEvent=function(e,t){Y.$off(e,t)},ti.prototype.publishEvent=function(e,t){Y.$emit(e,t||{})},ti.prototype.triggerPopup=function(e,t,i,n,o){this.baseCompUtil.triggerPopup(e,t,i,n,o)},ti.prototype.openDialog=function(){this.baseCompUtil.openDialog(Ft)},ti.prototype.closePopup=function(){this.baseCompUtil.closePopup()},ti.prototype.handleEscapeClick=function(e){27===e.keyCode&&this.closePopup()},ti.prototype.closeDialog=function(){Ft.close()},ti.prototype.destroyed=function(){document.removeEventListener("keyup",this.handleEscapeClick)},ti.prototype.handleTranscript=function(){this.baseCompUtil.handleTranscript()},ti.prototype.handleAudiodescription=function(){this.baseCompUtil.handleAudiodescription()},t([Ke()],ti.prototype,"widgetId",void 0),t([Ke()],ti.prototype,"pwidgetId",void 0),t([Ke()],ti.prototype,"instanceId",void 0),t([Ke()],ti.prototype,"contentId",void 0),t([Ke()],ti.prototype,"pinstanceId",void 0),t([Ke()],ti.prototype,"ctx",void 0),t([Ke()],ti.prototype,"sctx",void 0),t([Ke()],ti.prototype,"uictx",void 0),t([Ke()],ti.prototype,"bindables",void 0),t([Ke()],ti.prototype,"cfield",void 0),t([Ke()],ti.prototype,"cmpid",void 0),t([Ke()],ti.prototype,"globalLookupContent",void 0),ti=t([qe],ti));function ti(){var e=null!==Wt&&Wt.apply(this,arguments)||this;return e.content={},e.pageContent={},e.rawContent={},e.settings={},e.tmplString="",e.viewName="",e.themeName="",e.wdgtClsName="",e.showLoader=!1,e.showErrorMsg=!1,e.sliderData={},e.currentSlideIdx=0,e.totalSlidesCount=0,e.showSliderTab=!1,e.currentData={},e.enablePopup=!1,e.playerOptions={},e.deviceType="",e.commonCnt="",e.ignorePlyr=!1,e.aliases={},e.widgetViews={},e.isContentFetched=!1,e.innerTmplElems={},e.isContentModelLoaded=!1,e.isWidgetViewLoaded=!1,e.isSettingsModelLoaded=!1,e.pxDDoList=[],e}var ii,ni=(e(oi,ii=ei),oi.prototype.created=function(){},oi.prototype.mounted=function(){this.fetchData()},oi.prototype.contentModelLoaded=function(){},oi.prototype.prepareUrlsAndMetadata=function(e){e.jobUrl="http://www.phenompeople.com"},oi.prototype.fetchData=function(){var t=this;this.fetchJobs().then(function(e){t.jobResults=e,t.jobResults.forEach(function(e){t.prepareUrlsAndMetadata(e)})})},oi.prototype.fetchJobs=function(){return new Promise(function(e,t){e({})})},t([Ke()],oi.prototype,"size",void 0),t([Ke()],oi.prototype,"type",void 0),t([Ke()],oi.prototype,"jobId",void 0),oi=t([qe],oi));function oi(){var e=null!==ii&&ii.apply(this,arguments)||this;return e.jobResults=[],e}var ri=(si.prototype.fixedContainer=function(m,e){var v,t;if(e&&e.fixedContainer&&(e.fixedContainer.ctrH||e.fixedContainer.ctrAr)){v=e.fixedContainer.ctrH,t=e.fixedContainer.ctrAr;var y=-999;if(t)if(-1!==t.indexOf(":")||-1!=t.indexOf("/")){var i=[];-1!==t.indexOf(":")&&(i=t.split(":")),-1!==t.indexOf("/")&&(i=t.split(":")),i.length&&2==i.length&&(y=i[1]/i[0])}else y=1/parseFloat(t);setTimeout(function(){var e=-1,t=m.querySelectorAll(".pcs-fit-cntr-image"),i=m.querySelectorAll(".ph-card");if(t){for(var n=0;n<t.length;n++){var o=t[n];if(l=(a=window.getComputedStyle(o)).width){l=l.replace("px","");var r=parseFloat(l);(-1==e||r<e)&&(e=r)}}for(var s=0;s<t.length;s++){var a,l,d=t[s],c=i&&i[s],p=-999;if(l=(a=window.getComputedStyle(d)).width){l=l.replace("px","");var u=(r=parseFloat(l))/e;if(u=parseFloat(u.toFixed(2)),-999!=y)v=(v=a.height||"").replace("px",""),p=y*r/r,p/=u;else if(v){var h=parseFloat(v);if(p=h/r,m.classList.contains("ph-card")){var f=window.getComputedStyle(m);p=(h-(parseFloat(f.width)-r))/r}}}if(p&&-999!=p){p=Math.ceil(100*p),d.classList.add("ph-fixed-img-ctr"),(!(m.classList&&m.classList.contains("ph-card-container")&&c)||c.hasAttribute("ignore-padding")&&"true"==c.getAttribute("ignore-padding"))&&m.classList.contains("ph-card-container")||(d.style.paddingTop=p+"%");var g=d.querySelector("img");g&&!g.classList.contains("ph-fixed-img")&&g.classList.add("ph-fixed-img")}}}},10)}},si);function si(){}var ai=(li.prototype.fullLink=function(e,t){var i=this.fetchCardBlock(e);if(t&&t.fullLink&&(!i||!i.querySelector(".pcs-full-card-link"))){var n=document.createElement("a"),o={class:"pcs-full-card-link","v-pcs-track":"static_content_click",role:"link","aria-hidden":"true",tabindex:"-1"};for(var r in o)n.setAttribute(r,o[r]);if(this.applyStyle(n,{position:"absolute",height:"100%",width:"100%",top:"0px",left:"0px",pointerEvents:"all",zIndex:1}),this.applyAnchorAttrs(n,["title","aria-label","class","href","target"],e,t),i){i.style.position="relative",i.style.display="block";for(var s=i.querySelectorAll("a"),a={zIndex:3,position:"relative",pointerEvents:"all"},l=0;l<s.length;l++)this.applyStyle(s[l],a);i.firstElementChild?i.firstElementChild.parentElement.insertBefore(n,i.firstElementChild):i.appendChild(n),n.addEventListener("click",function(){ve(n,"static_content_click",{})})}}},li.prototype.applyStyle=function(e,t){for(var i in t)e.style[i]=t[i]},li.prototype.applyAnchorAttrs=function(i,e,t,n){var o,r,s=n.ctxKey;t.__vue__?(o=t.__vue__.ctx,s&&o&&(o=o[s])):r="A"===t.nodeName&&t,(o=o||{href:"javascript: void(0)"})&&e.forEach(function(e){var t=o[e]||r&&r.getAttribute(e);t&&i.setAttribute(e,t)})},li.prototype.fetchCardBlock=function(e){if(e){var t=e,i=t&&t.getAttribute&&t.getAttribute("data-ph-component-name");for(i="card-block"==i||t.classList.contains("ph-card-block");t&&!i&&"BODY"!==t.nodeName;)i=(t=t.parentElement)&&t.getAttribute&&t.getAttribute("data-ph-component-name"),i=t&&("card-block"==i||t.classList.contains("ph-card-block"));if(i)return t}return!1},li);function li(){}var di=function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return 0<this.intersectionRatio}});else{var g=window.document;e.prototype.THROTTLE_TIMEOUT=100,e.prototype.POLL_INTERVAL=null,e.prototype.USE_MUTATION_OBSERVER=!0,e.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},e.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},e.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},e.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},e.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,i){if("number"!=typeof e||isNaN(e)||e<0||1<e)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==i[t-1]})},e.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map(function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},e.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(t(window,"resize",this._checkForIntersections,!0),t(g,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(g,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},e.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,i(window,"resize",this._checkForIntersections,!0),i(g,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},e.prototype._checkForIntersections=function(){var a=this._rootIsInDom(),l=a?this._getRootRect():r();this._observationTargets.forEach(function(e){var t=e.element,i=m(t),n=this._rootContainsTarget(t),o=e.entry,r=a&&n&&this._computeTargetAndRootIntersection(t,l),s=e.entry=new d({time:window.performance&&performance.now&&performance.now(),target:t,boundingClientRect:i,rootBounds:l,intersectionRect:r});o?a&&n?this._hasCrossedThreshold(o,s)&&this._queuedEntries.push(s):o&&o.isIntersecting&&this._queuedEntries.push(s):this._queuedEntries.push(s)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},e.prototype._computeTargetAndRootIntersection=function(e,t){if("none"!=window.getComputedStyle(e).display){for(var i,n,o,r,s,a,l,d,c=m(e),p=v(e),u=!1;!u;){var h=null,f=1==p.nodeType?window.getComputedStyle(p):{};if("none"==f.display)return;if(p==this.root||p==g?(u=!0,h=t):p!=g.body&&p!=g.documentElement&&"visible"!=f.overflow&&(h=m(p)),h&&(i=h,n=c,void 0,o=Math.max(i.top,n.top),r=Math.min(i.bottom,n.bottom),s=Math.max(i.left,n.left),a=Math.min(i.right,n.right),d=r-o,!(c=0<=(l=a-s)&&0<=d&&{top:o,bottom:r,left:s,right:a,width:l,height:d})))break;p=v(p)}return c}},e.prototype._getRootRect=function(){var e;if(this.root)e=m(this.root);else{var t=g.documentElement,i=g.body;e={top:0,left:0,right:t.clientWidth||i.clientWidth,width:t.clientWidth||i.clientWidth,bottom:t.clientHeight||i.clientHeight,height:t.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},e.prototype._expandRectByRootMargin=function(i){var e=this._rootMarginValues.map(function(e,t){return"px"==e.unit?e.value:e.value*(t%2?i.width:i.height)/100}),t={top:i.top-e[0],right:i.right+e[1],bottom:i.bottom+e[2],left:i.left-e[3]};return t.width=t.right-t.left,t.height=t.bottom-t.top,t},e.prototype._hasCrossedThreshold=function(e,t){var i=e&&e.isIntersecting?e.intersectionRatio||0:-1,n=t.isIntersecting?t.intersectionRatio||0:-1;if(i!==n)for(var o=0;o<this.thresholds.length;o++){var r=this.thresholds[o];if(r==i||r==n||r<i!=r<n)return!0}},e.prototype._rootIsInDom=function(){return!this.root||n(g,this.root)},e.prototype._rootContainsTarget=function(e){return n(this.root||g,e)},e.prototype._registerInstance=function(){},e.prototype._unregisterInstance=function(){},window.IntersectionObserver=e,window.IntersectionObserverEntry=d}function d(e){this.time=e.time,this.target=e.target,this.rootBounds=e.rootBounds,this.boundingClientRect=e.boundingClientRect,this.intersectionRect=e.intersectionRect||r(),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,i=t.width*t.height,n=this.intersectionRect,o=n.width*n.height;this.intersectionRatio=i?Number((o/i).toFixed(4)):this.isIntersecting?1:0}function e(e,t){var i,n,o,r=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(i=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,o=null,function(){o=o||setTimeout(function(){i(),o=null},n)}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map(function(e){return e.value+e.unit}).join(" ")}function t(e,t,i,n){"function"==typeof e.addEventListener?e.addEventListener(t,i,n||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,i)}function i(e,t,i,n){"function"==typeof e.removeEventListener?e.removeEventListener(t,i,n||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,i)}function m(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):r()}function r(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function n(e,t){for(var i=t;i;){if(i==e)return!0;i=v(i)}return!1}function v(e){var t=e.parentNode;return t&&11==t.nodeType&&t.host?t.host:t&&t.assignedSlot?t.assignedSlot.parentNode:t}}(),ci=Object.freeze({__proto__:null,default:di}),pi=(ui.prototype.handleAnimate=function(e,t){for(var i in t)if("class"==i)this.applyClassesToElem(e,t[i]);else if("delay"==i){var n=void 0,o=1,r="0.8s",s="ease";t.delay&&t.delay.isList&&(e.hasAttribute("data-item-idx")?n=e:e.closest("[data-item-idx]")&&(n=e.closest("[data-item-idx]"))),r=t.delay&&t.delay.animationDelay||r,s=t.delay&&t.delay.animationTimingFunction||s,o=n&&parseInt(n.getAttribute("data-item-idx"))||o,e.style.animationDelay="calc("+r+"*"+o+")",e.style.animationTimingFunction=s}this.observeElem(e,this.triggerAnimate.bind(this,e))},ui.prototype.applyClassesToElem=function(i,e){var n=this;i&&e&&e.length&&e.forEach(function(e,t){i&&i.classList&&e&&!n.isClassExists(e,i)&&i.classList.add(e)})},ui.prototype.triggerAnimate=function(e){e.classList.remove("animation__none")},ui.prototype.isClassExists=function(e,t){return t.classList.contains(e)},ui.prototype.handleLazyIntersection=function(){var i=this;this.lazySetObserver=new IntersectionObserver(function(e,t){e.forEach(function(e){if(e.isIntersecting){var t=e.target;i.callback(),i.lazySetObserver.unobserve(t)}})})},ui.prototype.observeElem=function(e,t){this.callback=t,this.lazySetObserver.observe(e)},ui);function ui(){this.ibo=ci,this.handleLazyIntersection()}var hi=/[^\]\[.]+/g,fi=(gi.prototype.isClassExists=function(e,t){return t.classList.contains(e)},gi.prototype.kebabCaseToCameCase=function(e){return e.replace(/(\-\w)/g,function(e){return e[1].toUpperCase()})},gi.prototype.fetchCompSettings=function(i,e,t,n){var o=n&&n.match(hi)||[];return o.length?(o.forEach(function(e,t){0===t&&"settings"===e||(i=i&&i[e]||{})}),i):i&&i[t]},gi.prototype.applySettingsToView=function(e,i){var n=this;if(e&&i&&Object.keys(i).length){var o=e,t=function(e){var t=i[e];switch(e){case"hidden":setTimeout(function(){n.applyVisibleToggle(o,t)},50);break;case"class":r.applyClassesToElem(o,t);break;case"style":r.applyStylesToElem(o,t);break;case"attrs":r.applyAttrsToElem(o,t);break;case"custom":r.applyCustomSettingsToElem(o,t)}},r=this;for(var s in i)t(s)}},gi.prototype.applyVisibleToggle=function(e,t){e&&void 0!==t&&(!1===t||"false"===t?(e.classList.remove("show"),e.classList.remove("hide")):!0!==t&&"true"!==t||(this.isClassExists("hide",e)||e.classList.add("hide"),e.classList.remove("show"),this.isinlinePreview||e.getAttribute("data-ignore-remove")||e.parentElement&&e.parentElement.removeChild&&e.parentElement.removeChild(e)))},gi.prototype.applyClassesToElem=function(i,e){var n=this;i&&e&&e.length&&e.forEach(function(e,t){i&&i.classList&&e&&!n.isClassExists(e,i)&&i.classList.add(e)})},gi.prototype.applyStylesToElem=function(n,o){var r=this;n&&o&&Object.keys(o).length&&Object.keys(o).forEach(function(t,e){var i=r.kebabCaseToCameCase(t);try{o[t]&&-1==o[t].indexOf("undefined")&&(n.style[i]=o[t])}catch(e){n.style[i]=o[t]}})},gi.prototype.applyAttrsToElem=function(i,n){i&&n&&Object.keys(n).length&&Object.keys(n).forEach(function(e,t){i.setAttribute(e,n[e])})},gi.prototype.applyCustomSettingsToElem=function(e,t){if(t&&Object.keys(t).length&&e)for(var i in t)"flip"==i&&"desktop"==this.device?this.applyCardFlipToElem(e,t[i]):"grid"==i||("fixedContainer"==i?this.settingFixedContainerUtil.fixedContainer(e,t):"fullLink"==i?this.settingFullLinkUtil.fullLink(e,t):"animate"==i&&t.animate.enabled&&(this.isAnimateTriggered||(this.settingAnimateUtil=new pi),this.settingAnimateUtil.handleAnimate(e,t.animate)))},gi.prototype.applyCardFlipToElem=function(e,t){var i=e.querySelector('[ph-col-num="1"]'),n=e.querySelector('[ph-col-num="2"]'),o=(e.querySelector('[ph-col-num="3"]'),null==i?void 0:i.parentElement);if(i&&n&&o){if("h-1-2"===t.value||"v-1-2"===t.value){var r=i.querySelector("[ph-card-block-num]");if("1"===(r&&r.getAttribute("ph-card-block-num")))return}else if("h-2-1"===t.value||"v-2-1"===t.value){var s=n.querySelector("[ph-card-block-num]");if("1"===(s&&s.getAttribute("ph-card-block-num")))return}o.insertBefore(n,i),n.setAttribute("ph-col-num","1"),i.setAttribute("ph-col-num","2")}},gi.prototype.checkWidgetEnhanced=function(e){try{var t=e.nodeName,i=e,n=(i="SECTION"==t?e.firstElementChild:e.closest("[as-element]"))&&i.getAttribute("as-element");if(n&&"ph-html-v1"!==n&&i&&!i.au)return i}catch(e){}},gi.prototype.handleDefaultScroll=function(t){var i=this;setTimeout(function(){var e=i.checkWidgetEnhanced(t);t&&t.offsetHeight&&!e?(t.scrollIntoView(!0),setTimeout(function(){t.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})},425)):setTimeout(function(){i.handleDefaultScroll(t)},250)},250)},gi.prototype.handleAnchorPoint=function(e){var t=this,i=e.closest("a"),n=i&&i.hash,o=i&&i.pathname,r=window.location.pathname;if(n){var s=document.querySelector(n);s&&o===r&&i.addEventListener("click",function(e){t.handleDefaultScroll(s),e.preventDefault()})}},gi);function gi(){this.isinlinePreview=b.getIsinlinePreview(),this.settingFixedContainerUtil=new ri,this.settingFullLinkUtil=new ai,this.device=b.getDeviceType(),this.isAnimateTriggered=!1}var mi={inserted:function(e,t,i){if(i.context._settingsUtils=new fi,e&&e.getAttribute){var n=e.getAttribute("data-pcs-cmpid")||e.getAttribute("data-ph-component-name");e.setAttribute("ph-settings-block",n),t.value&&mi.initSettings(e,t.value,i,!0),i.context._settingsUtils.handleAnchorPoint(e)}},bind:function(e,t,i){},update:function(e,t,i){e&&t.value&&mi.initSettings(e,t.value,i)},initSettings:function(e,t,i,n){i.context._settingsUtils.applySettingsToView(e,t,n)}};u.directive("pcs-settings-block",mi);var vi="img-loader",yi={inserted:function(e,t,i){t.value&&yi.initiate(e,t.value)},bind:function(e,t,i){},update:function(e,t,i){t.value&&yi.initiate(e,t.value)},initiate:function(e,t){var i=t.mode||vi,n=t.showLoader;switch(i){case vi:yi.renderLoaderImage(e,n);break;case"placeholder":yi.handlePlaceholders(e)}},renderLoaderImage:function(e,t){if(t){(o=document.createElement("div")).className="ph-loading";var i=document.createElement("img");i.setAttribute("src",p("assets/images/loader.gif"));var n=(b.getTranslations()||{}).loaderAltText||"loading";i.setAttribute("alt",n),o.appendChild(i),e.querySelector(".ph-loading")||e.appendChild(o)}else{var o;(o=e.querySelector(".ph-loading"))&&o.parentElement.removeChild(o)}},handlePlaceholders:function(e){}};u.directive("pcs-loading-img",yi);var bi={inserted:function(e,t,i){if(e&&t.value)return bi.initiate(e,t.value)},bind:function(e,t,i){},update:function(e,t,i){t.value&&bi.initiate(e,t.value)},initiate:function(e,t){var i=b.getSiteConfigSettings("oneTrust"),n=b.getSiteConfigSettings("trustArc");if(t&&t.href&&-1!==["{{oneTrust}}","{{trustArc}}"].indexOf(t.href)){var o;for(var r in"{{oneTrust}}"===t.href?o=i:"{{trustArc}}"===t.href&&(o=n),o&&o.actionMethod&&e.addEventListener("click",function(){o.actionMethod.call&&o.actionMethod.call()}),t.href="javascript:void(0)",o.attr)e.setAttribute(r,o.attr[r]);for(var s=0;s<o.class.length;s++)e.classList.add(o.class[s])}else if(t&&t.href&&"anchor"==t.linkType){if(b.getPageId()===t.pageId){var a=t.href.split("#");if(a.length&&a[1])return e.setAttribute("href","#"+a[1])}}else if(t&&"string"==typeof t){t={href:t.replace("{{linkDomain}}",b.getBaseUrl())}}return e.setAttribute("href",t.href||"javascript:void(0)")}};u.directive("pcs-href",bi);var wi={inserted:function(v,y,e){if(v){var t=v.getAttribute("data-ignore-track"),i=v.closest("[data-widget]");if("true"===t||i&&"true"===i.getAttribute("data-ignore-track"))return;v.setAttribute("pcs-track",y.value),v.addEventListener("click",function(e){for(var t,i,n,o={},r=y.value,s=v.attributes,a="data-ph-tevent-attr-",l=v,d=0;d<s.length;d++){var c=s[d];if(c.name.startsWith(a)){var p=c.name;o[p=p.replace(a,"")]=c.value}}var u=l.getAttribute("pcs-tag");if(u)wi.handleDynaicTrackEvents(l,o),o.ctx=wi.handleRecommendationTrackCtx(l),q.jobContext(u),q.setFlagForHandleUnload(!0);else if("static_content_click"===r){var h=l.getAttribute("title")||l.getAttribute("aria-label");!o.trait75&&h&&(o.trait75=h,o.trait13||(o.trait13=""));var f=null===(t=l.closest("[instance-id]"))||void 0===t?void 0:t.getAttribute("instance-id");if(f){var g=b.getDDOFromCache("caasPageViews");if(g&&g.data&&g.data.settings){var m=g.data.settings[f];m&&m.list.length&&(o.totalNumberOfVideos=m.list.length,o.inlineVideo=!(null===(i=m.list[0].video1)||void 0===i?void 0:i.hidden)||!1,m.bindables&&m.bindables.attrs&&m.bindables.attrs.sliderOptions&&(o.recommContent=(null===(n=m.bindables.attrs.px)||void 0===n?void 0:n.enabled)||!1,o.carousel=m.bindables.attrs.sliderOptions.slidesToShow<m.list.length))}}}l.getAttribute("video-screen-event")&&(o.videoScreen=!0),ve(l,r,o)})}},bind:function(e,t,i){},update:function(e,t,i){},handleDynaicTrackEvents:function(e,t){},handleRecommendationTrackCtx:function(e){var t=e.getAttribute("pcs-click-ctx");if(t){var i=e.getAttribute("pcs-tref")||"",n=r[i];return q.addRecommendationTrackCtx(t,n),q.setFlagForHandleUnload(!0),n}}};u.directive("pcs-track",wi);var Ei=(ki.prototype.observeVideo=function(e,t){this.callback=t,this.lazyVideoObserver.observe(e)},ki);function ki(){var i=this;this.ibo=ci,this.lazyVideoObserver=new IntersectionObserver(function(e,t){e.forEach(function(e){if(e.isIntersecting){var t=e.target;i.callback(),i.lazyVideoObserver.unobserve(t)}})})}var Ai={inserted:function(e,t,i){e.setAttribute("data-pcs-video","");var n=b.getSiteConfigSettings("videoAssessmentPagesList")||[],o=b.getPageName();-1==n.indexOf(o)?(i.context.videoIntersectionObserver=new Ei,i.context.videoIntersectionObserver.observeVideo(e,Ai.initVideo.bind(this,e,t,i))):Ai.initVideo(e,t,i)},bind:function(e,t,i){},update:function(e,t,i){if(e&&JSON.stringify(t.value.content)!==JSON.stringify(t.oldValue.content)){var n=b.getSiteConfigSettings("videoAssessmentPagesList")||[],o=b.getPageName();-1==n.indexOf(o)?(e.innerHTML="",i.context.player&&i.context.player.pause(),i.context.videoIntersectionObserver.observeVideo(e,Ai.initVideo.bind(this,e,t,i))):Ai.initVideo(e,t,i)}},unbind:function(e,t,i){i.context&&i.context.player&&(i.context.player.pause(),i.context.player.unbind())},initVideo:function(i,e,n){var t=Ai.isCmpHidden(i);if(i&&e.value.content&&!t){var o=m(m({},e.value.content),e.value.settings||{});0!=o.loader&&i.classList.add("pcs-video-loading"),u.nextTick(function(){if("kaltura"==o.provider){var e=o.kalturaEntryId||o.entryId||o.videoId,t="getPlayerDetails";Me("getPlayerDetails",{videoId:e}).then(function(e){e&&e[t]&&e[t].data&&e[t].data.provider&&(o.provider=e[t].data.provider,o.src=e[t].data.embedurl),Ai.initVideoPlayer(i,o,n)})}else Ai.initVideoPlayer(i,o,n)})}},initVideoPlayer:function(t,e,i){var n=Dt.createPlayer(t,e.provider||e.videotype,e);n&&n.init().then(function(e){i.context.player=n,t.classList.remove("pcs-video-loading")})},isCmpHidden:function(e){if(e){var t=e.closest("[data-ph-widget-id]"),i=e.closest("[data-pcs-cmpid]"),n=i&&i.getAttribute("data-pcs-cmpid"),o=i&&i.getAttribute("data-ph-component-name"),r=void 0,s={};return t&&t.__vue__&&((r=t.__vue__.settings&&t.__vue__.settings.hidden||t.__vue__.sctx&&t.__vue__.sctx.hidden)||(s=t.__vue__.settings&&(t.__vue__.settings[n]||t.__vue__.settings[o])||t.__vue__.sctx&&(t.__vue__.sctx[n]||t.__vue__.sctx[o])||{})),r||s.hidden}}};u.directive("pcs-video",Ai);var xi=(Ii.prototype.init=function(e,t){var i=this;this.element=e,this.fitValue=t.fitType;var n=this.element.querySelector("img"),o=window.navigator.userAgent.match(/Edge\/(\d{2})\./);this.edgePartialSupport=!!o&&16<=parseInt(o[1],10);var r="objectFit"in document.documentElement.style!=0;e.classList.add(t.className),r&&!this.edgePartialSupport||!n||(clearTimeout(this.timer),this.timer=setTimeout(function(){i.objectFitPolyfill(n),clearTimeout(i.timer)},3e3))},Ii.prototype.checkParentContainer=function(e){var t=window.getComputedStyle(e,null),i=t.getPropertyValue("position"),n=t.getPropertyValue("overflow"),o=t.getPropertyValue("display");i&&"static"!==i||(e.style.position="relative"),"hidden"!==n&&(e.style.overflow="hidden"),o&&"inline"!==o||(e.style.display="block"),0===e.clientHeight&&(e.style.height="100%"),-1===e.className.indexOf("object-fit-polyfill")&&(e.className=e.className+" object-fit-polyfill")},Ii.prototype.checkMediaProperties=function(e){var t=window.getComputedStyle(e,null),i={"max-width":"none","max-height":"none","min-width":"0px","min-height":"0px",top:"auto",right:"auto",bottom:"auto",left:"auto","margin-top":"0px","margin-right":"0px","margin-bottom":"0px","margin-left":"0px"};for(var n in i)t.getPropertyValue(n)!==i[n]&&(e.style[n]=i[n])},Ii.prototype.setPosition=function(e,t,i){var n,o,r,s,a;if((i=i.split(" ")).length<2&&(i[1]=i[0]),"x"===e)n=i[0],o=i[1],r="left",s="right",a=t.clientWidth;else{if("y"!==e)return;n=i[1],o=i[0],r="top",s="bottom",a=t.clientHeight}if(n!==r&&o!==r){if(n!==s&&o!==s)return"center"===n||"50%"===n?(t.style[r]="50%",void(t.style["margin-"+r]=a/-2+"px")):void(0<=n.indexOf("%")?(n=parseInt(n))<50?(t.style[r]=n+"%",t.style["margin-"+r]=a*(n/-100)+"px"):(n=100-n,t.style[s]=n+"%",t.style["margin-"+s]=a*(n/-100)+"px"):t.style[r]=n);t.style[s]="0"}else t.style[r]="0"},Ii.prototype.objectFit=function(e){var t=e.dataset?e.dataset.objectFit:e.getAttribute("data-object-fit"),i=e.dataset?e.dataset.objectPosition:e.getAttribute("data-object-position");t=t||this.fitValue.fitType||"none",i=i||this.fitValue.position||"50% 50%";var n=e.parentNode;return this.checkParentContainer(n),this.checkMediaProperties(e),e.style.position="absolute",e.style.width="auto",e.style.height="auto",this.handleIe(e),"scale-down"===t&&(t=e.clientWidth<n.clientWidth&&e.clientHeight<n.clientHeight?"none":"contain"),"none"===t?(this.setPosition("x",e,i),void this.setPosition("y",e,i)):"fill"===t?(e.style.width="100%",e.style.height="100%",this.setPosition("x",e,i),void this.setPosition("y",e,i)):(e.style.height="100%",void("cover"===t&&e.clientWidth>n.clientWidth||"contain"===t&&e.clientWidth<n.clientWidth?(e.style.top="0",e.style.marginTop="0",this.setPosition("x",e,i)):(e.style.width="100%",e.style.height="auto",e.style.left="0",e.style.marginLeft="0",this.setPosition("y",e,i))))},Ii.prototype.handleIe=function(e){if(e&&e.parentElement){e.parentElement.classList.add("pcs-ie-img-object-fit");var t=e.src||e.getAttribute("src");e.parentElement.style.backgroundImage="url('"+t+"')"}},Ii);function Ii(){var n=this;this.objectFitPolyfill=function(e){if(void 0===e||e instanceof Event)e=document.querySelectorAll("[data-object-fit]");else if(e&&e.nodeName)e=[e];else{if("object"!=typeof e||!e.length||!e[0].nodeName)return!1;e=e}for(var t=0;t<e.length;t++)if(e[t].nodeName){var i=e[t].nodeName.toLowerCase();"img"!==i||n.edgePartialSupport?"video"===i?0<e[t].readyState?n.objectFit(e[t]):e[t].addEventListener("loadedmetadata",function(){n.objectFit(e[0])}):n.objectFit(e[t]):e[t].complete?n.objectFit(e[t]):e[t].addEventListener("load",function(){n.objectFit(e[0])})}return!0}}var Ci={inserted:function(e,t,i){},bind:function(e,t,i){e&&u.nextTick(function(){i.context._objUtil=new xi,t.value&&t.value.fitType&&i.context._objUtil.init(e,t.value)})},update:function(e,t,i){e&&t.value&&u.nextTick(function(){i.context._objUtil.init(e,t.value)})}};u.directive("pcs-object-fit",Ci);var Si={BACKSPACE:8,TAB:9,RETURN:13,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,SHIFT:16},Ti=(_i.prototype.init=function(e,t){this.element=e,this.name=t&&t.name||this.element.name,this.ignoreExpanded=t&&t.ignoreExpanded,this.initaite();var i=this.validate();i&&i.length&&console.warn("A11y autocomplete setup is improper.Check errors ",i),this.setupEventListeners()},_i.prototype.getWigdetViewModel=function(e){if(e&&e.__vue__&&e.__vue__._vnode)return e.__vue__._vnode.componentInstance||e.__vue__._vnode.context},_i.prototype.initaite=function(){var e,t,i,n,o,r;this.element.type,this.comboBoxElement=this.element.parentElement,this.comboBoxElement&&(this.comboBoxElement.hasAttribute("aria-haspopup")&&(this.element.setAttribute("aria-haspopup",this.comboBoxElement.getAttribute("aria-haspopup")),this.comboBoxElement.getAttribute("role")),this.comboBoxElement.hasAttribute("aria-owns")&&(this.element.setAttribute("aria-owns",this.comboBoxElement.getAttribute("aria-owns")),this.comboBoxElement.removeAttribute("aria-owns")),this.comboBoxElement.hasAttribute("role")&&(this.element.setAttribute("role",this.comboBoxElement.getAttribute("role")),this.comboBoxElement.removeAttribute("role"))),t=this.element.getAttribute("aria-haspopup"),i=this.element.getAttribute("aria-owns"),e=this.element.getAttribute("role"),this.validationInfo.input.ariaHaspopup=t,this.validationInfo.input.ariaOwns=t,this.validationInfo.input.role=e,n=this.element.getAttribute("aria-autocomplete"),o=this.element.getAttribute("aria-controls"),this.isHideListBox=this.element.getAttribute("data-show-listbox")?this.element.getAttribute("data-show-listbox"):"true",this.isShowResultsOnFocus=this.element.getAttribute("showResultsOnFocus")||this.isShowResultsOnFocus,this.isShowNoResults=this.element.getAttribute("showNoResults")||this.isShowNoResults,this.validationInfo.input.ariaAutocomplete=n,this.validationInfo.input.ariaControls=o,this.listBoxElement=this.comboBoxElement.querySelector("[aria-labelledby="+i+"]"),this.listBoxElement||(this.listBoxElement=this.comboBoxElement.parentElement&&this.comboBoxElement.parentElement.querySelector("[aria-labelledby="+i+"]")||document.querySelector("[aria-labelledby="+i+"]")),this.listBoxElement&&(this.validationInfo.listbox.exists=!0,r=this.listBoxElement.getAttribute("aria-labelledby"),this.validationInfo.listbox.ariaLabelledby=r),this.widgetElement=this.findWidget(),this.validationInfo.widget.exists=this.widgetElement,this.widgetViewModel=this.getWigdetViewModel(this.widgetElement),this.validationInfo.widget.viewModelExist=this.widgetViewModel,this.validationInfo.widget.getFieldOptions=this.widgetViewModel?this.widgetViewModel.getFieldOptions:void 0,this.validationInfo.widget.setFieldValue=this.widgetViewModel?this.widgetViewModel.setFieldValue:void 0,this.validationInfo.widget.clearFieldValue=this.widgetViewModel?this.widgetViewModel.clearFieldValue:void 0,this.validationInfo.widget.getActiveIndex=this.widgetViewModel?this.widgetViewModel.getActiveIndex:void 0,this.validationInfo.widget.getActiveIndexOnBlur=this.widgetViewModel?this.widgetViewModel.getActiveIndexOnFocusOut:void 0},_i.prototype.validate=function(){var e=[];return this.validationInfo.input.ariaHaspopup||e.push("Missing aria-haspopup attribute on parent div"),this.validationInfo.input.ariaHaspopup||e.push("Missing  aria-owns attribute on parent div"),this.validationInfo.input.ariaOwns||e.push("Missing  aria-owns attribute on parent div"),this.validationInfo.input.ariaAutocomplete||e.push("Missing aria-autocomplete attribute on input elem"),this.validationInfo.input.ariaControls||e.push("Missing aria-controls attribute on input elem"),this.validationInfo.listbox.ariaLabelledby||e.push("Missing aria-labelledby attribute on listbox elem"),this.validationInfo.widget.exists||e.push("Missing widget elem"),this.validationInfo.widget.viewModelExist||e.push("Missing widget viewmodel on widget elem"),this.validationInfo.widget.getFieldOptions||e.push("Missing getFieldOptions(fieldName) fn on widget elem"),this.validationInfo.widget.setFieldValue||e.push("Missing setFieldValue(fieldName, selectedItemIndex) fn on widget elem"),this.validationInfo.widget.clearFieldValue||e.push("Missing clearFieldValue(fieldName) fn on widget elem"),this.validationInfo.widget.getActiveIndex||e.push("Missing getActiveIndex(fieldName) fn on widget elem"),this.validationInfo.widget.getActiveIndexOnBlur,e},_i.prototype.showListbox=function(){var e=this;setTimeout(function(){e.setActiveListItem(),e.listBoxElement&&(e.listBoxElement.classList.remove("hide"),e.ignoreExpanded||e.listBoxElement.setAttribute("aria-expanded","true")),!e.element||"combobox"==(e.validationInfo&&e.validationInfo.input&&e.validationInfo.input.role||"")&&e.element.setAttribute("aria-expanded","true")},10)},_i.prototype.hideListbox=function(){"true"==this.isHideListBox&&(this.listBoxElement&&(this.activeIndex=-1,this.listBoxElement.classList.add("hide"),this.listBoxElement.removeAttribute("aria-expanded")),!this.element||"combobox"==(this.validationInfo&&this.validationInfo.input&&this.validationInfo.input.role||"")&&this.element.setAttribute("aria-expanded","false"),this.clearActiveListItem())},_i.prototype.isListboxHidden=function(){if(this.listBoxElement)return this.listBoxElement.classList.contains("hide")},_i.prototype.setActiveListItem=function(e){if(this.listBoxElement){for(var t=this.listBoxElement.querySelectorAll('[role="option"]'),i=this.listBoxElement.querySelectorAll(".ph-a11y-header"),n=this.name+"-result-item-",o=0;o<t.length;o++){var r=t[o],s=n+o;r.setAttribute("id",s),e||o!=this.activeIndex?(r.removeAttribute("aria-selected"),r.classList.remove("listitem-focused")):(r.setAttribute("aria-selected","true"),r.classList.add("listitem-focused"),this.element.setAttribute("aria-activedescendant",s))}-1==this.activeIndex&&this.element.setAttribute("aria-activedescendant","");var a=this.listBoxElement,l=this.activeIndex;if(a&&a.querySelector("#"+this.name+"-result-item-"+this.activeIndex)){var d=a.querySelector("#"+this.name+"-result-item-"+this.activeIndex),c=i.length-1;if(a&&a.offsetHeight-d.offsetHeight<d.offsetTop&&d.offsetTop<a.scrollHeight){var p=0;0<c&&(p=i[0].offsetHeight);var u=d.scrollHeight-(d.offsetHeight*l+p*c);a.scrollTop=u<0?-1*u:u}else a.scrollTop=0}"both"==this.validationInfo.input.ariaAutocomplete&&this.widgetViewModel&&this.widgetViewModel.setFieldValue&&this.widgetViewModel.setFieldValue(this.name,this.activeIndex,this.validationInfo.input.ariaAutocomplete)}},_i.prototype.clearActiveListItem=function(){this.setActiveListItem(!0)},_i.prototype.updateResults=function(){var n=this,o=this.widgetViewModel;return new Promise(function(t,e){if(o&&o.getFieldOptions){var i=o.getFieldOptions(n.name);i||i.then?i.then?i.then(function(e){t(e),n.results=e,n.activeIndex=n.widgetViewModel.getActiveIndex(n.name),"false"==n.isShowResultsOnFocus&&0==n.element.value.length?n.hideListbox():document.activeElement===n.element&&n.showListbox(),"false"!=n.isShowNoResults||n.results.length||n.hideListbox()}):(t(i||[]),n.results=i,n.activeIndex=n.widgetViewModel.getActiveIndex(n.name),"false"==n.isShowResultsOnFocus&&0==n.element.value.length?n.hideListbox():document.activeElement===n.element&&n.showListbox(),"false"!=n.isShowNoResults||n.results.length||n.hideListbox()):(console.warn("getFieldOptions(fieldName) is neither returning anything nor defined as a promise"),t([]))}else t([])})},_i.prototype.keyupHandler=function(e){var t,i=e.which||e.keyCode;switch(e.target.name,i){case Si.UP:case Si.DOWN:case Si.ESC:case Si.RETURN:return void e.preventDefault()}if(t=Object.keys(Si).findIndex(function(e){return i==Si[e]}),("true"==this.isShowResultsOnFocus||this.element.value&&this.element.value.length&&-1==t)&&this.updateResults(),"both"==this.validationInfo.input.ariaAutocomplete)switch(i){case Si.BACKSPACE:return;default:this.widgetViewModel&&this.widgetViewModel.setFieldValue&&this.widgetViewModel.setFieldValue(this.name,this.activeIndex)}else Si.BACKSPACE==i&&this.updateResults()},_i.prototype.findWidget=function(){for(var e=this.element.parentElement,t=e?e.getAttribute("data-widget"):void 0;e&&!t;)t=(e=e.parentElement)?e.getAttribute("data-widget"):void 0;return t?e:void 0},_i.prototype.keydownHandler=function(e){var t=this;if(e.target)switch(e.which||e.keyCode){case Si.DOWN:this.isListboxHidden()?this.updateResults().then(function(e){t.moveDown()}):this.moveDown();break;case Si.UP:this.isListboxHidden()?this.updateResults().then(function(e){t.moveUp()}):this.moveUp();break;case Si.ESC:this.clearFieldAndCloseListbox();break;case Si.RETURN:return-1!=this.activeIndex&&e.preventDefault(),void this.onEnter()}return!0},_i.prototype.focusHandler=function(e){var r=this;"true"==this.isShowResultsOnFocus&&this.updateResults().then(function(e){if(r.listBoxElement)for(var t=r.listBoxElement.querySelectorAll('[role="option"]'),i=r.name+"-result-item-",n=0;n<t.length;n++){var o=i+n;t[n].setAttribute("id",o)}})},_i.prototype.listBoxClickHandler=function(e){if(e.target){var t=this.getLIElement(e.target),i=-1;t&&t.id&&(i=parseInt(t.id.split(this.element.name+"-result-item-")[1]),this.activeIndex=i,this.onEnter(),this.hideListbox())}},_i.prototype.blurHandler=function(e,t){var i=this;t?e.target&&"LI"!=e.target.nodeName&&(clearTimeout(this.clearTimer),this.showListbox()):this.clearTimer=setTimeout(function(){i.widgetViewModel.getActiveIndexOnBlur&&i.widgetViewModel.getActiveIndexOnBlur(i.activeIndex,i.name),i.widgetViewModel&&i.widgetViewModel.focusedField==i.name?(i.widgetViewModel.focusedField=void 0,i.activeIndex=-1):i.hideListbox()},300)},_i.prototype.moveDown=function(){this.activeIndex=this.activeIndex+1,this.activeIndex>this.results.length-1&&(this.activeIndex=0),this.setActiveListItem()},_i.prototype.moveUp=function(){this.activeIndex=this.activeIndex-1,this.activeIndex<0&&(this.activeIndex=this.results.length-1),this.setActiveListItem()},_i.prototype.onEnter=function(){return this.widgetViewModel&&this.widgetViewModel.setFieldValue&&this.widgetViewModel.setFieldValue(this.name,this.activeIndex),this.widgetViewModel.onEnterCallBack&&this.widgetViewModel.onEnterCallBack(this.name,this.activeIndex),this.hideListbox(),!1},_i.prototype.clearFieldAndCloseListbox=function(){this.widgetViewModel&&this.widgetViewModel.clearFieldValue&&this.widgetViewModel.clearFieldValue(this.name),this.hideListbox()},_i.prototype.setupEventListeners=function(){var t=this,e=this.element;this.keyupDebounceHandler=Ce.debounce(this.keyupHandler,200),this.keydownDebounceHandler=Ce.debounce(this.keydownHandler,200),e.addEventListener("keyup",this.keyupDebounceHandler.bind(this)),e.addEventListener("keydown",this.keydownDebounceHandler.bind(this)),e.addEventListener("focus",this.focusHandler.bind(this)),e.addEventListener("blur",this.blurHandler.bind(this)),this.listBoxElement&&(this.listBoxElement.addEventListener("click",this.listBoxClickHandler.bind(this)),this.listBoxElement.addEventListener("focus",function(e){t.blurHandler(e,!0)}),this.listBoxElement.addEventListener("blur",this.blurHandler.bind(this)))},_i.prototype.destroyed=function(){var e=this.element;e.removeEventListener("keyup",this.keyupHandler),e.removeEventListener("keydown",this.keydownHandler),e.removeEventListener("keyup",this.keyupDebounceHandler),e.removeEventListener("keydown",this.keydownDebounceHandler),e.removeEventListener("focus",this.focusHandler),e.removeEventListener("blur",this.blurHandler),this.listBoxElement&&this.listBoxElement.removeEventListener("click",this.listBoxClickHandler)},_i);function _i(){this.activeIndex=-1,this.results=[],this.isShowResultsOnFocus="true",this.isShowNoResults="true",this.isHideListBox="true",this.ignoreExpanded=!1,this.validationInfo={listbox:{},input:{},widget:{}},this.getLIElement=function(e){for(var t=e,i=t?"LI"==t.nodeName:void 0;t&&!i;)i=(t=t.parentElement)?"LI"==t.nodeName:void 0;return i?t:void 0}}var Li={inserted:function(e,t,i){e&&u.nextTick(function(){i.context._a11yUtil=new Ti,i.context._a11yUtil.init(e,t.value)})},bind:function(e,t,i){},update:function(e,t,i){}};u.directive("pcs-a11y-autocomplete",Li);var Oi=13,Mi=32,Pi=37,Di=38,Ri=39,Fi=40,Vi=(Bi.prototype.init=function(e,t){this.element=e,this.name=t&&t.name||this.element.name,this.initaite();var i=this.validate();if(i&&i.length&&console.warn("A11y radio attribute setup is improper.Check errors ",i),this.widgetViewModel){var n=this.widgetViewModel.setActiveRadioChecked(this.name);-1!=n&&this.setChecked(this.radioButtons[n])}this.setupEventListeners()},Bi.prototype.getWigdetViewModel=function(e){if(e&&e.__vue__&&e.__vue__._vnode)return e.__vue__._vnode.componentInstance||e.__vue__._vnode.context},Bi.prototype.initaite=function(){if(this.element){this.element.getAttribute("role")||this.element.setAttribute("role","radiogroup"),this.validationInfo.widget.name=this.name;var e=this.name+"-result-item-";this.radioButtons=this.element.querySelectorAll("[role=radio]");for(var t=0;t<this.radioButtons.length;t++){var i=this.radioButtons[t],n=e+t;i.setAttribute("aria-checked","false"),i.setAttribute("id",n),i.addEventListener("click",this.setChecked.bind(this))}this.radioButtons.length&&(this.firstRadioButton=this.radioButtons[0],this.lastRadioButton=this.radioButtons[this.radioButtons.length-1])}this.widgetElement=this.findWidget(),this.validationInfo.widget.exists=this.widgetElement,this.widgetViewModel=this.getWigdetViewModel(this.widgetElement),this.validationInfo.widget.viewModelExist=this.widgetViewModel,this.validationInfo.widget.setRadioCheked=this.widgetViewModel?this.widgetViewModel.setRadioCheked:void 0,this.validationInfo.widget.setActiveRadioChecked=this.widgetViewModel?this.widgetViewModel.setActiveRadioChecked:void 0},Bi.prototype.findWidget=function(){for(var e=this.element.parentElement,t=e?e.getAttribute("data-widget"):void 0;e&&!t;)t=(e=e.parentElement)?e.getAttribute("data-widget"):void 0;return t?e:void 0},Bi.prototype.radioButtonInit=function(e){e.setAttribute("aria-checked","false"),e.addEventListener("click",this.setChecked.bind(this))},Bi.prototype.validate=function(){var e=[];return this.validationInfo.widget.setRadioCheked||e.push("Missing setRadioCheked(fieldName) fn on widget elem"),this.validationInfo.widget.exists||e.push("Missing widget elem"),this.validationInfo.widget.name||e.push("Missing ridio group name"),this.validationInfo.widget.setActiveRadioChecked||e.push("Missing setActiveRadioChecked(fieldName) fn on widget elem"),e},Bi.prototype.setupEventListeners=function(){var e=this.element;e.addEventListener("keydown",this.handleKeydown.bind(this)),e.addEventListener("focus",this.handleFocus.bind(this)),e.addEventListener("blur",this.handleBlur.bind(this))},Bi.prototype.handleKeydown=function(e){e.currentTarget;var t=!1,i=e.which||e.keyCode,n=this.getCurrentRadioButton();switch(i){case Mi:case Oi:this.setChecked(n),t=!0;break;case Di:this.setCheckedToPreviousItem(n),t=!0;break;case Fi:this.setCheckedToNextItem(n),t=!0;break;case Pi:this.setCheckedToPreviousItem(n),t=!0;break;case Ri:this.setCheckedToNextItem(n),t=!0}t&&(e.stopPropagation(),e.preventDefault())},Bi.prototype.handleFocus=function(e){this.getCurrentRadioButton().classList.add("ph-focus")},Bi.prototype.handleBlur=function(e){this.getCurrentRadioButton().classList.remove("ph-focus")},Bi.prototype.setChecked=function(e){e=e instanceof HTMLElement?e:e.currentTarget;for(var t=this.widgetViewModel,i=0;i<this.radioButtons.length;i++)(o=this.radioButtons[i]).setAttribute("aria-checked","false"),o.classList.remove("ph-focus");e.setAttribute("aria-checked","true"),e.classList.add("ph-focus"),this.element.setAttribute("aria-activedescendant",e.id),this.element.focus();var n=-1;for(i=0;i<this.radioButtons.length;i++){var o;(o=this.radioButtons[i]).id===e.id&&"true"==e.getAttribute("aria-checked")&&(n=i)}t.setRadioCheked(n)},Bi.prototype.setCheckedToPreviousItem=function(e){var t;e.id===this.firstRadioButton.id?this.setChecked(this.lastRadioButton):(t=this.getActiveIndex(e),this.setChecked(this.radioButtons[t-1]))},Bi.prototype.setCheckedToNextItem=function(e){var t;e.id===this.lastRadioButton.id?this.setChecked(this.firstRadioButton):(t=this.getActiveIndex(e),this.setChecked(this.radioButtons[t+1]))},Bi.prototype.getCurrentRadioButton=function(){var e=this.element.getAttribute("aria-activedescendant");if(!e)return this.element.setAttribute("aria-activedescendant",this.firstRadioButton.id),this.firstRadioButton;for(var t=0;t<this.radioButtons.length;t++){var i=this.radioButtons[t];if(i.id===e)return i}return this.element.setAttribute("aria-activedescendant",this.firstRadioButton.id),this.firstRadioButton},Bi.prototype.getActiveIndex=function(e){for(var t=-1,i=0;i<this.radioButtons.length;i++)this.radioButtons[i].id===e.id&&(t=i);return t},Bi.prototype.destroyed=function(){var e=this.element;e.removeEventListener("keydown",this.handleKeydown),e.removeEventListener("focus",this.handleFocus),e.removeEventListener("blur",this.handleBlur)},Bi);function Bi(){this.radioButtons=[],this.validationInfo={widget:{}}}var Ni={inserted:function(e,t,i){e&&u.nextTick(function(){i.context._a11yUtil=new Vi,i.context._a11yUtil.init(e,t.value)})},bind:function(e,t,i){},update:function(e,t,i){}};u.directive("pcs-a11y-radio",Ni);var ji=13,Hi=27,Ui=38,$i=40,qi=(Wi.prototype.init=function(e,t){this.elem=e,this.name=t&&t.name||this.elem.name,this.initaite();var i=this.validate();i&&i.length&&console.warn("A11y autocomplete setup is improper.Check errors ",i),this.setupEventListeners()},Wi.prototype.initaite=function(){var e,t,i;if(this.elem.type,i=this.elem.getAttribute("aria-labelledby")){var n=i.split(" ");n&&1<n.length&&(this.spanElement=document.getElementById(n[0]),this.validationInfo.span.exists=!0)}e=this.elem.getAttribute("aria-haspopup"),this.validationInfo.button.ariaHaspopup=e,this.validationInfo.button.ariaLabelledby=i,this.spanElement&&(this.listBoxElement=document.querySelector("[aria-labelledby="+this.spanElement.getAttribute("id")+"]"),this.listBoxElement&&(this.validationInfo.listbox.exists=!0,t=this.listBoxElement.getAttribute("aria-labelledby"),this.validationInfo.listbox.ariaLabelledby=t)),this.widgetElement=this.findWidget(),this.validationInfo.widget.exists=this.widgetElement,this.widgetViewModel=this.getWigdetViewModel(this.widgetElement),this.validationInfo.widget.viewModelExist=this.widgetViewModel,this.validationInfo.widget.getFieldOptions=this.widgetViewModel?this.widgetViewModel.getFieldOptions:void 0,this.validationInfo.widget.setFieldValue=this.widgetViewModel?this.widgetViewModel.setFieldValue:void 0,this.validationInfo.widget.clearFieldValue=this.widgetViewModel?this.widgetViewModel.clearFieldValue:void 0,this.validationInfo.widget.getActiveIndex=this.widgetViewModel?this.widgetViewModel.getActiveIndex:void 0},Wi.prototype.validate=function(){var e=[];return this.validationInfo.span.exists||e.push("Missing span"),this.validationInfo.widget.exists||e.push("Missing widget elem"),this.validationInfo.widget.viewModelExist||e.push("Missing widget viewmodel on widget elem"),this.validationInfo.widget.getFieldOptions||e.push("Missing getFieldOptions(fieldName) fn on widget elem"),this.validationInfo.widget.setFieldValue||e.push("Missing setFieldValue(fieldName, selectedItemIndex) fn on widget elem"),this.validationInfo.widget.clearFieldValue||e.push("Missing clearFieldValue(fieldName) fn on widget elem"),e},Wi.prototype.setupEventListeners=function(){this.elem&&(this.elem.addEventListener("click",this.handleListboxClick.bind(this)),this.elem.addEventListener("keydown",this.keydownHandler),this.listBoxElement&&(this.listBoxElement.addEventListener("keydown",this.keydownHandler),this.listBoxElement.addEventListener("click",this.listBoxClickHandler),this.listBoxElement.addEventListener("blur",this.blurHandler)))},Wi.prototype.findWidget=function(){for(var e=this.elem.parentElement,t=e?e.getAttribute("data-widget"):void 0;e&&!t;)t=(e=e.parentElement)?e.getAttribute("data-widget"):void 0;return t?e:void 0},Wi.prototype.getWigdetViewModel=function(e){if(e&&e.__vue__&&e.__vue__._vnode)return e.__vue__._vnode.componentInstance||e.__vue__._vnode.context},Wi.prototype.updateResults=function(){var n=this,o=this.widgetViewModel;return new Promise(function(t,e){if(o&&o.getFieldOptions){var i=o.getFieldOptions(n.name);i||i.then?i.then?i.then(function(e){t(e),n.results=e,n.activeIndex=n.widgetViewModel.getActiveIndex(n.name),n.showListbox()}):(t(i||[]),n.results=i,n.activeIndex=n.widgetViewModel.getActiveIndex(n.name),n.showListbox()):(console.warn("getFieldOptions(fieldName) is neither returning anything nor defined as a promise"),t([]))}else t([])})},Wi.prototype.moveDown=function(){this.activeIndex=this.activeIndex+1,this.activeIndex>this.results.length-1&&(this.activeIndex=this.results.length-1),this.setActiveListItem()},Wi.prototype.setActiveListItem=function(e){if(this.listBoxElement){for(var t=this.listBoxElement.querySelectorAll('[role="option"]'),i=this.name+"-result-item-",n=0;n<t.length;n++){var o=t[n],r=i+n;o.setAttribute("id",r),e||n!==this.activeIndex?(o.removeAttribute("aria-selected"),o.classList.remove("listitem-focused")):(o.classList.add("listitem-focused"),o.setAttribute("aria-selected","true"),this.listBoxElement.setAttribute("aria-activedescendant",r))}var s=this.listBoxElement,a=this.activeIndex;if(s&&s.querySelector("#"+this.name+"-result-item-"+this.activeIndex)){var l=s.querySelector("#"+this.name+"-result-item-"+this.activeIndex);if(s&&s.offsetHeight-l.offsetHeight<l.offsetTop&&l.offsetTop<s.scrollHeight){var d=l.scrollHeight-l.offsetHeight*a;s.scrollTop=d<0?-1*d:d}else s.scrollTop=0}}},Wi.prototype.moveUp=function(){this.activeIndex=this.activeIndex-1,this.activeIndex<0&&(this.activeIndex=0),this.setActiveListItem()},Wi.prototype.clearFieldAndCloseListbox=function(){this.widgetViewModel&&this.widgetViewModel.clearFieldValue&&this.widgetViewModel.clearFieldValue(this.name),this.hideListbox()},Wi.prototype.hideListbox=function(){this.listBoxElement&&(this.activeIndex=-1,this.listBoxElement.style.display="none"),this.elem&&this.elem.setAttribute("aria-expanded","false"),this.clearActiveListItem()},Wi.prototype.clearActiveListItem=function(){this.setActiveListItem(!0)},Wi.prototype.onEnter=function(){this.widgetViewModel&&this.widgetViewModel.setFieldValue&&(this.widgetViewModel.setFieldValue(this.name,this.activeIndex),this.elem.focus()),this.hideListbox()},Wi);function Wi(){var n=this;this.results=[],this.activeIndex=-1,this.validationInfo={span:{},listbox:{},button:{},widget:{}},this.keydownHandler=function(e){if(e.target)switch(e.which||e.keyCode){case $i:e.preventDefault(),n.isListboxHidden()?n.updateResults().then(function(e){n.moveDown()}):n.moveDown();break;case Ui:e.preventDefault(),n.isListboxHidden()?n.updateResults().then(function(e){n.moveUp()}):n.moveUp();break;case Hi:n.clearFieldAndCloseListbox();break;case ji:return e.preventDefault(),void(n.isListboxHidden()?n.updateResults().then(function(e){n.showListbox()}):n.onEnter())}},this.isListboxHidden=function(){if(n.listBoxElement)return n.listBoxElement&&n.listBoxElement.style&&"none"===n.listBoxElement.style.display},this.showListbox=function(){n.listBoxElement&&(n.listBoxElement.style.display="block"),n.elem&&n.elem.setAttribute("aria-expanded","true"),n.setActiveListItem()},this.blurHandler=function(e){setTimeout(function(){n.elem==e.relatedTarget||n.listBoxElement.contains(e.relatedTarget)||n.hideListbox()},100)},this.handleListboxClick=function(e){n.isListboxHidden()?(setTimeout(function(){n.listBoxElement.focus()},100),n.updateResults(),n.setActiveListItem()):n.hideListbox()},this.listBoxClickHandler=function(e){if(e.target){var t=n.getLIElement(e.target),i=-1;t.id&&(i=parseInt(t.id.split(n.name+"-result-item-")[1])),n.activeIndex=i,n.onEnter()}n.hideListbox()},this.getLIElement=function(e){for(var t=e,i=t?"LI"==t.nodeName:void 0;t&&!i;)i=(t=t.parentElement)?"LI"==t.nodeName:void 0;return i?t:void 0}}var Ki={inserted:function(e,t,i){e&&u.nextTick(function(){i.context._a11yUtil=new qi,i.context._a11yUtil.init(e,t.value)})},bind:function(e,t,i){},update:function(e,t,i){}};u.directive("pcs-a11y-listbox",Ki);var Ji={inserted:function(e,t,i){},bind:function(e,t,i){e&&u.nextTick(function(){t.value&&Ji.setAttributes(e)})},update:function(e,t,i){e&&u.nextTick(function(){t.value&&Ji.setAttributes(e)})},setAttributes:function(o){setTimeout(function(){var e=o;if(e){var t=e&&e.children;if(t&&1===t.length){e.setAttribute("role","presentation");var i=e.firstElementChild&&e.firstElementChild.getAttribute("role");e.firstElementChild&&"presentation"!=i&&e.firstElementChild.removeAttribute("role")}else if(t&&1<=t.length){e.setAttribute("role","list");for(var n=0;n<t.length;n++){i=t[n]&&t[n].getAttribute("role");t[n]&&"presentation"!=i&&t[n].setAttribute("role","listitem")}}}},50)}};u.directive("pcs-role",Ji);var Yi={inserted:function(e,t,i){i.context._translationService=new W,Yi.handleJobCount(e,t.value,i)},update:function(e,t,i){e&&t.value&&JSON.stringify(t.value)!==JSON.stringify(t.oldValue)&&Yi.handleJobCount(e,t.value,i)},unbind:function(e,t,i){},handleJobCount:function(r,e,s){r&&e&&(Ae({key:e.ruleKey,value:e.ruleValue},r),xe(s),s.context.$root.$on("ph:jobCount:set",function(e){var t=b.getTranslations()||Yi.getLocalWidgetBundle(),i=r.getAttribute("data-pha-count-idfr"),n=r.querySelector("[tkey]"),o=n&&n.getAttribute("tkey")||"multiJobCountTotalHits";n&&i&&e&&e[i]&&e[i].counts&&(e[i].counts.totalHits=e[i].counts.totalHits||0,0==e[i].counts.totalHits?o+="NoResults":1==e[i].counts.totalHits?o+="Singular":1<e[i].counts.totalHits&&(o+="Plural"),t[o]||(o="multiJobCountTotalHits"),n.setAttribute("tkey",o),s.context._translationService.parseTemplateAndApplyBundle({totalHits:e[i].counts.totalHits.toString()},r,t),r.style.display="block")}))},getLocalWidgetBundle:function(){return{multiJobCountTotalHits:"{{totalHits}} jobs",multiJobCountTotalHitsSingular:"{{totalHits}} job",multiJobCountTotalHitsPlural:"{{totalHits}} jobs",multiJobCountTotalHitsNoResults:"No results"}}};u.directive("pcs-job-count",Yi);var zi={inserted:function(e,t,i){},bind:function(e,t,i){},update:function(t,e,i){var n=this;t&&e.value&&(i.context.showOnState=e.value,Y.$on("pageState",function(e){n.checkAndRemoveElement(t,e.pageState,i.context.showOnState)}),b.getPageState())},checkAndRemoveElement:function(e,t,i){t&&t!==i?e.parentElement&&e.parentElement.removeChild(e):t&&e.classList.remove("hide")}};u.directive("pcs-page-state",zi);function Gi(e,t,i){if(!e||!t)return"";if("object"!=typeof e)return Qi.renderLiteral(e,t);if(!i)return"";var n,o=t[i];if(e.hasOwnProperty(o)&&(n=o),n||Object.keys(e).forEach(function(e){if(/[-*]/g.test(e)&&(e.replace("*","")<=o&&(n=e),!n)){var t=e.split("-");t&&2===t.length&&o>=t[0]&&o<=t[1]&&(n=e)}}),!n){if(!e.default)return"";n="default"}return Qi.renderLiteral(e[n],t)}var Qi=new W;u.filter("pt",Gi);function Xi(n,o,r,s){return n&&n.length&&o&&0<o.trim().length?n.filter(function(e){var t="string"==typeof e,i=e;return t||r?(!t&&r&&(i=e[r]||""),i=i.toLowerCase(),s?i.startsWith(o.toLowerCase()):-1!=i.indexOf(o.toLowerCase())):n}):n}u.filter("searchFilter",Xi);function Zi(e,t,i){if(en.dayjs){en.dayjs.extend(en.dayjs_plugin_timezone),en.dayjs.extend(en.dayjs_plugin_utc),en.dayjs.extend(en.dayjs_plugin_advancedFormat),en.dayjs.extend(en.dayjs_plugin_duration),en.dayjs.extend(en.dayjs_plugin_localizedFormat),en.dayjs.extend(en.dayjs_plugin_customParseFormat);var n=b.getSiteSettings("ignoreLocaleMomentTranslation");if(t=nn()||tn[t]||t,!n){var o=en.dayjs.locale(),r=b.phApp.locale||"en_us";r="en_us"===r?"en":r.replace("_","-"),en.dayjs.locale(r),o===en.dayjs.locale()&&1!==r.split("-").length&&(r=r.split("-")[0],en.dayjs.locale(r))}return i?en.dayjs.utc(e).tz(i).format(t):en.dayjs.utc?en.dayjs.utc(e).format(t):en.dayjs(e).format(t)}}var en=window,tn={DEFAULT:"MMM Do YYYY",SHORT:"D M YY",MEDIUM:"MMM Do YYYY",LONG:"MMMM Do YYYY",FULL:"MMMM Do YYYY H mm",LOCALE_DEFAULT:"L",MMDDYYYY_SLASH:"MM/DD/YYYY"},nn=function(){var e=b.getSiteConfigSettings("l10n");if(e&&e.dateFormat)return e.dateFormat};u.filter("dateFormat",Zi);var on=(rn.prototype.observeImage=function(e,t){this.callBack=t,this.imgIntersectionObserver.observe(e)},rn);function rn(){var i=this;this.imgIntersectionObserver=new IntersectionObserver(function(e,t){e.forEach(function(e){e.isIntersecting&&(i.callBack(),i.imgIntersectionObserver.unobserve(e.target))})})}var sn=(an.prototype.init=function(e,t){this.ele=e,this.imgSrc=t.src,this.imgObj=t,this.dimensions={},this.ele.onerror=this.fallBackCDN.bind(this),this.checkIEBrowser(),this.getImageKitURL(),this.getImageRelativePath(),this.loadLQIPImage()},an.prototype.checkIEBrowser=function(){var e="";window.navigator&&(e=window.navigator.userAgent),this.isIEBrowser=e.includes("MSIE")||!!document.documentMode},an.prototype.getImageKitURL=function(){var e=b.getDDOFromCache("siteConfig");e&&e.data&&(this.imageKitURL=e.data.navItems.dynamicImageUrl)},an.prototype.getImageRelativePath=function(){if(this.imgSrc){var e=document.createElement("a");e.href=this.imgSrc,this.relativeImagePath=this.imgSrc.split(e.hostname)[1]}},an.prototype.getImgDimensions=function(){var e=this.ele;if(e&&e.parentElement){var t=(e.offsetWidth||e.style.width.replace("px",""))+"px",i=(e.offsetHeight||e.style.height.replace("px",""))+"px",n=(e.offsetTop||0)+"px",o=(e.offsetLeft||0)+"px";return i&&"px"!=i&&parseInt(i)&&!this.isIEBrowser||(i="auto"),t&&"px"!==t&&parseInt(i)&&!this.isIEBrowser||(t="auto"),{width:t,height:i,offsetTop:n,offsetLeft:o}}},an.prototype.setImage=function(){this.ele.src=this.constructImageKitURL()},an.prototype.constructImageKitURL=function(){this.dimensions=this.getImgDimensions();var e=this.dimensions.width&&this.dimensions.height?"?tr=w-"+parseInt(this.dimensions.width)+",h-"+parseInt(this.dimensions.height)+","+this.fetchFocalPoint():"",t=this.imgSrc&&!this.imgSrc.includes("imagekit.io")?""+this.imageKitURL+this.relativeImagePath:this.imgSrc;return this.isFalledBack?this.imgSrc:t+e},an.prototype.getLQIP=function(){this.dimensions=this.getImgDimensions();var e=this.dimensions.width&&this.dimensions.height?"w-"+this.dimensions.width+",h-"+this.dimensions.height+","+this.fetchFocalPoint():"";return this.isFalledBack?this.imgSrc:this.imgSrc&&!this.imgSrc.includes("imagekit.io")?""+this.imageKitURL+this.relativeImagePath+"?tr=bl-6,"+e:this.imgSrc+"?tr=bl-6,"+e},an.prototype.loadLQIPImage=function(){this.ele.src=this.getLQIP(),this.imgObserver=new on,this.imgObserver.observeImage(this.ele,this.setImage.bind(this))},an.prototype.fallBackCDN=function(){this.isFalledBack||(this.ele.src=this.imgSrc,this.isFalledBack=!0)},an.prototype.fetchFocalPoint=function(){var e=this.getXcYc(parseInt(this.dimensions.width),parseInt(this.dimensions.height),this.imgObj.width,this.imgObj.height,this.imgObj.focalPointX,this.imgObj.focalPointY);return"cm-extract,xc-"+e.xc+",yc-"+e.yc},an.prototype.getXcYc=function(e,t,i,n,o,r){var s={},a=i-e/2,l=n-t/2,d=e/2,c=t/2,p=(o+1)/2<0?(o+1)/2*-1:(o+1)/2,u=(r-1)/2<0?(r-1)/2*-1:(r-1)/2,h=i*p<a?i*p<d?d:i*p:a,f=n*u<l?n*u<c?c:n*u:l;return s.xc=Math.floor(h),s.yc=Math.floor(f),s},an);function an(){this.isFalledBack=!1,this.isIEBrowser=!1}var ln="siteConfig";function dn(n,o,r,s){u.nextTick(function(){var e,t,i;n&&o&&(!function(){var e=b.getDDOFromCache(ln);if(e&&e.data)return e.data.navItems.imageKitEnabled}()?(e=n.getBoundingClientRect(),t=0<=e.top,i=e.bottom<=window.innerHeight&&0<e.bottom,t&&i||n.setAttribute("loading","lazy"),n.src=o.src&&o.src.includes("https:")?o.src:""+b.getCdnUrl()+o.src):(s||(r.context.imageKit=new sn,r.context.imageKit.init(n,o)),r.context.imageKit.init(n,o)))})}var cn={bind:function(e,t,i){dn(e,t.value,i)},update:function(e,t,i){var n=t.value;t.oldValue;n.src&&dn(e,n,i,void 0!==i.context.imageKit)}};u.directive("pcs-lazy-load",cn);function pn(e){if(e&&"string"==typeof e){var t=(i=e,(n=document.createElement("div")).innerHTML=i,n);Ce.isCrawlerUserAgent()||setTimeout(function(){!function(e){var t=e.querySelectorAll("link"),i=e.querySelectorAll("script");t.length&&un(t,"link");i.length&&un(i,"script")}(t)},3e3)}var i,n;return e}function un(e,t){var i=document.getElementsByTagName(t)[0];if(i&&i.parentNode)for(var n=0;n<e.length;n++){var o=document.createElement(t),r=e[n];if(r&&r.attributes){for(var s=Array.prototype.slice.call(r.attributes)||[],a=0;a<s.length;a++)o.setAttribute(s[a].name,s[a].value);o.innerHTML=r.innerHTML}i.parentNode.insertBefore(o,i)}}u.filter("ee",pn);function hn(e,t){if(e&&t&&"anchor"==t.linkType&&b.getPageId()===t.pageId){var i=e.split("#");if(i.length&&i[1])return"#"+i[1]}return e}u.filter("lae",hn);var fn={inserted:function(e,t,i){},bind:function(e,n,t){e&&u.nextTick(function(){n.value&&"anchor"==n.value.linkType&&b.getPageId()===n.value.pageId&&n.value.href&&n.value.href.indexOf("#")&&e.addEventListener("click",function(e){e.preventDefault();var t=n.value.href.split("#")[1];if(t){var i=document.getElementById(t);i&&(i.scrollIntoView(),setTimeout(function(){for(var e=document.querySelectorAll(".ph-sticky-block-fixed,.ph-sticky-header,.pcs-sticky-header"),t=0,i=0;i<e.length;i++)t+=e[i]&&e[i].offsetHeight||0;window.scroll(0,scrollY-t)},10))}})})},update:function(e,t,i){e&&t.value}};u.directive("pcs-link-anchor",fn);var gn="jwtLogout",mn=(vn.prototype.getLocale=function(){var e=b.getLocale();return e="/"+(e=e.split("_"))[1]+"/"+e[0]+"/"},vn.prototype.socialLoginUrl=function(e,t,i){var n=Ce.getQueryParam("qpage")||"";n=decodeURIComponent(n);var o=t.name,r=t.profileValidation,s=t.redirectUri||window.location.href;o&&"linkedin"==o.toLocaleLowerCase()&&(o="linkedIn");var a=Ce.getSiteSettings("oauth");if(a&&a[o]){var l=Ce.getQueryParam("page")||"",d=a[o],c=this.getLocale(),p=b.getLocale(),u=window.location.pathname;n||(u+=window.location.search);var h={page:u,protocol:window.location.protocol,localePath:c,qpage:n,pagename:l,locale:p,siteVariant:e,rurl:encodeURIComponent(s)};if(i&&Object.keys(i).length)for(var f in i)h.hasOwnProperty(f)||(h[f]=i[f]);return r&&(h.profileValidation=!0),b.getCsrfToken()&&(h.csrfToken=b.getCsrfToken()),!!d&&(d.redirectUriPath=b.getRootDomain()+d.redirectUri,d.state=JSON.stringify(h),this.redirectToProvider(d,o))}},vn.prototype.redirectToProvider=function(e,t){var i=this.providerKey,n=e.loginUrl+"?response_type="+e.response_type+"&";switch(t){case i.MICROSOFT:case i.LINKEDIN:n+="client_id="+encodeURIComponent(e.clientId)+"&";break;case i.GOOGLE:case i.LOGIN:n+="client_id="+encodeURIComponent(e.clientId)+"&access_type=offline&approval_prompt=auto&";break;case i.FACEBOOK:n+="client_id="+encodeURIComponent(e.clientId)+"&"}return!!t&&(n+="redirect_uri="+encodeURIComponent(e.redirectUriPath),e.scope&&(n+="&scope="+encodeURIComponent(e.scope)),e.state&&(n+="&state="+encodeURIComponent(e.state)),n)},vn.prototype.getMergeProfile=function(t,e){return Re.fetchDdo(t,{}).then(function(e){if((e=e[t])&&"success"==e.status){var i=e.data;if(i&&i.allProfiles&&i.allProfiles.length){var n=[];i.linkedAccountList=[],i.mergeProfilesCount=0,i.allProfiles.forEach(function(e){if(e.hasOwnProperty("merge")||(e.merge=!0),e.hasOwnProperty("validation")&&!i.mergeAuthFlow&&(i.mergeAuthFlow="unsuccessfulMerge",e.validation&&(i.mergeAuthFlow="successfulMerge")),e.merge&&e.linkedAccounts&&e.linkedAccounts.length){for(var t=0;t<e.linkedAccounts.length;t++)-1==n.indexOf(e.linkedAccounts[t].email+""+e.linkedAccounts[t].socialProvider)&&(i.linkedAccountList.push(e.linkedAccounts[t]),n.push(e.linkedAccounts[t].email+""+e.linkedAccounts[t].socialProvider));i.mergeProfilesCount++}})}return i}if("failure"==e.status)return{}})},vn.prototype.doLogout=function(){return Re.fetchDdo(gn,{}).then(function(e){return e[gn]})},vn);function vn(){this.providerKey={FACEBOOK:"facebook",MICROSOFT:"microsoft",LINKEDIN:"linkedIn",GOOGLE:"google",LOGIN:"google-signin"}}return{BaseComponent:ei,JobComponent:ni,FetchService:Re,PhenomAppManager:b,CommonService:Ce,SettingsDirective:mi,LoaderDirective:yi,HrefDirective:bi,A11yAutoCompleteDirective:Li,A11yRadioAttibuteDirective:Ni,A11yListroleAttribute:Ji,A11yListboxDirective:Ki,JobCountDirective:Yi,pcsPageStateDirective:zi,TrackDirective:wi,VideoDirective:Ai,ObjectFitDirective:Ci,TranslationFilter:Gi,LocalStorage:S,LocalStorageContextModel:q,CookieManager:P,DialogManager:Ft,DefaultSliderProvider:it,CandidateLoginService:mn,SearchFilter:Xi,DateFormat:Zi,LazyLoad:cn,ExternalEvaluationFilter:pn,LinkAnchorEvaluationFilter:hn,LinkAnchorDirective:fn,EventBus:Y,CaptchaInjector:oe}});
