t.regionsjob.com Open in urlscan Pro
13.93.10.196  Public Scan

URL: http://t.regionsjob.com/javascripts/tracker-2-latest.min.js
Submission: On April 12 via manual from FR — Scanned from NL

Form analysis 0 forms found in the DOM

Text Content

/**
 * HelloWork JS Library
 *
 * Copyright (c) 2022, HelloWork
 * https://www.hellowork.com/ 
 * All Rights Reserved.
 * @author BestTeamEver
 * @version v1.9.8
 **/
String.prototype.endsWith||(String.prototype.endsWith=function(e,t){return(void 0===t||t>this.length)&&(t=this.length),this.substring(t-e.length,t)===e}),function(){"use strict";function e(){if(t=window[_],h.isUndefined(t))return void C.error("'tracker' object not initialized. Ensure you are using the latest version of the Tracker JS Library along with the snippet we provide.");if(t.__loaded||t.config)return void C.error("Tracker library has already been downloaded at least once.");var e=t.__SV||0;return e<1?void C.error("Version mismatch; please ensure you're using the latest version of the tracker code snippet."):(t._c&&(P[_]=I.apply(this,[t._c])),O(),t.init(),h.each(P,function(e){e._loaded()}),void A())}var t,i=Array.prototype,o=Function.prototype,n=Object.prototype,r=i.slice,s=n.toString,a=n.hasOwnProperty,c=window.navigator,d=window.document,u=window.screen,f=c.userAgent,l=window.encodeURIComponent,p=window.decodeURIComponent,h={},g="2.0.0",_="tracker",w=!1,m=window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,y=!m&&f.indexOf("MSIE")==-1&&f.indexOf("Mozilla")==-1,v=!1,k=["ecs","s","debug"],b={isDebug:!1,trackerUrl:"http://t.regionsjob.com/",doNotTrack:!1,track_metas:!0,requestMethod:"POST",trackerSiteId:-1,trackerDomainId:-1,trackerType:"web",store_google:!0,save_referrer:!0,track_pageview:!1,cookieConsent:!1,cookieConsentFeatV2:!1,dataLayerUserIdPropName:"uid",persistence:"localStorage",persistence_name:"_hw_t",old_persistence_name:"_hw_t",cookieDomain:null,cookiePath:null,visitorCookieTimeout:63072e6,sessionCookieTimeout:18e5,loaded:function(){},authenticated:function(){}},S=function(e){if(this.debug={},!window.console)return function(){};if(e)for(var t in console)"function"==typeof console[t]&&(this.debug[t]=console[t].bind(window.console,"[Tracker]"));else for(var t in console)"function"==typeof console[t]&&(this.debug[t]=function(){});return this.debug},C=new S(w);!function(){var e=o.bind,t=i.forEach,n=i.indexOf,c=Array.isArray,d={};h.bind=function(t,i){var o,n;if(e&&t.bind===e)return e.apply(t,r.call(arguments,1));if(!h.isFunction(t))throw new TypeError;return o=r.call(arguments,2),n=function(){if(!(this instanceof n))return t.apply(i,o.concat(r.call(arguments)));ctor.prototype=t.prototype;var e=new ctor;ctor.prototype=null;var s=t.apply(e,o.concat(r.call(arguments)));return Object(s)===s?s:e}},h.bind_instance_methods=function(e){for(var t in e)"function"==typeof e[t]&&(e[t]=h.bind(e[t],e))};var u=h.each=function(e,i,o){if(null!=e)if(t&&e.forEach===t)e.forEach(i,o);else if(e.length===+e.length){for(var n=0,r=e.length;n<r;n++)if(n in e&&i.call(o,e[n],n,e)===d)return}else for(var s in e)if(a.call(e,s)&&i.call(o,e[s],s,e)===d)return};h.escapeHTML=function(e){var t=e;return t&&h.isString(t)&&(t=t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")),t},h.extend=function(e){return u(r.call(arguments,1),function(t){for(var i in t)void 0!==t[i]&&(e[i]=t[i])}),e},h.isArray=c||function(e){return"[object Array]"===s.call(e)},h.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(t){return!1}},h.strip_empty_properties=function(e){var t={};return h.each(e,function(e,i){h.isString(e)&&e.length>0&&(t[i]=e)}),t},h.isArguments=function(e){return!(!e||!a.call(e,"callee"))},h.isString=function(e){return"[object String]"==s.call(e)},h.toArray=function(e){return e?e.toArray?e.toArray():h.isArray(e)?r.call(e):h.isArguments(e)?r.call(e):h.values(e):[]},h.values=function(e){var t=[];return null==e?t:(u(e,function(e){t[t.length]=e}),t)},h.isBlockedUA=function(e){return!!/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp)/i.test(e)},h.identity=function(e){return e},h.include=function(e,t){var i=!1;return null==e?i:n&&e.indexOf===n?e.indexOf(t)!=-1:(u(e,function(e){if(i||(i=e===t))return d}),i)},h.includes=function(e,t){return e.indexOf(t)!==-1}}(),h.JSONEncode=function(){return function(e){var t=e,i=function(e){var t=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,i={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=i[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},o=function(e,t){var n="",r="    ",c=0,d="",u="",f=0,l=n,p=[],h=t[e];switch(h&&"object"==typeof h&&"function"==typeof h.toJSON&&(h=h.toJSON(e)),typeof h){case"string":return i(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(n+=r,p=[],"[object Array]"===s.apply(h)){for(f=h.length,c=0;c<f;c+=1)p[c]=o(c,h)||"null";return u=0===p.length?"[]":n?"[\n"+n+p.join(",\n"+n)+"\n"+l+"]":"["+p.join(",")+"]",n=l,u}for(d in h)a.call(h,d)&&(u=o(d,h),u&&p.push(i(d)+(n?": ":":")+u));return u=0===p.length?"{}":n?"{"+p.join(",")+l+"}":"{"+p.join(",")+"}",n=l,u}};return o("",{"":t})}}(),h.JSONDecode=function(){var e,t,i,o,n={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},r=function(t){throw{name:"SyntaxError",message:t,at:e,text:i}},s=function(o){return o&&o!==t&&r("Expected '"+o+"' instead of '"+t+"'"),t=i.charAt(e),e+=1,t},a=function(){var e,i="";for("-"===t&&(i="-",s("-"));t>="0"&&t<="9";)i+=t,s();if("."===t)for(i+=".";s()&&t>="0"&&t<="9";)i+=t;if("e"===t||"E"===t)for(i+=t,s(),"-"!==t&&"+"!==t||(i+=t,s());t>="0"&&t<="9";)i+=t,s();return e=+i,isFinite(e)?e:void r("Bad number")},c=function(){var e,i,o,a="";if('"'===t)for(;s();){if('"'===t)return s(),a;if("\\"===t)if(s(),"u"===t){for(o=0,i=0;i<4&&(e=parseInt(s(),16),isFinite(e));i+=1)o=16*o+e;a+=String.fromCharCode(o)}else{if("string"!=typeof n[t])break;a+=n[t]}else a+=t}r("Bad string")},d=function(){for(;t&&t<=" ";)s()},u=function(){switch(t){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}r("Unexpected '"+t+"'")},f=function(){var e=[];if("["===t){if(s("["),d(),"]"===t)return s("]"),e;for(;t;){if(e.push(o()),d(),"]"===t)return s("]"),e;s(","),d()}}r("Bad array")},l=function(){var e,i={};if("{"===t){if(s("{"),d(),"}"===t)return s("}"),i;for(;t;){if(e=c(),d(),s(":"),Object.hasOwnProperty.call(i,e)&&r('Duplicate key "'+e+'"'),i[e]=o(),d(),"}"===t)return s("}"),i;s(","),d()}}return r("Bad object")};return o=function(){switch(d(),t){case"{":return l();case"[":return f();case'"':return c();case"-":return a();default:return t>="0"&&t<="9"?a():u()}},function(n){var s;return i=n,e=0,t=" ",s=o(),d(),t&&r("Syntax error"),s}}(),h.utf8_encode=function(e){return unescape(l(e))},h.sha1=function(e){var t,i,o,n,r,s,a,c,d,u,f=function(e,t){return e<<t|e>>>32-t},l=function(e){var t,i,o="";for(t=7;t>=0;t--)i=e>>>4*t&15,o+=i.toString(16);return o},p=[],g=1732584193,_=4023233417,w=2562383102,m=271733878,y=3285377520,v=[];for(e=h.utf8_encode(e),u=e.length,i=0;i<u-3;i+=4)o=e.charCodeAt(i)<<24|e.charCodeAt(i+1)<<16|e.charCodeAt(i+2)<<8|e.charCodeAt(i+3),v.push(o);switch(3&u){case 0:i=2147483648;break;case 1:i=e.charCodeAt(u-1)<<24|8388608;break;case 2:i=e.charCodeAt(u-2)<<24|e.charCodeAt(u-1)<<16|32768;break;case 3:i=e.charCodeAt(u-3)<<24|e.charCodeAt(u-2)<<16|e.charCodeAt(u-1)<<8|128}for(v.push(i);14!==(15&v.length);)v.push(0);for(v.push(u>>>29),v.push(u<<3&4294967295),t=0;t<v.length;t+=16){for(i=0;i<16;i++)p[i]=v[t+i];for(i=16;i<=79;i++)p[i]=f(p[i-3]^p[i-8]^p[i-14]^p[i-16],1);for(n=g,r=_,s=w,a=m,c=y,i=0;i<=19;i++)d=f(n,5)+(r&s|~r&a)+c+p[i]+1518500249&4294967295,c=a,a=s,s=f(r,30),r=n,n=d;for(i=20;i<=39;i++)d=f(n,5)+(r^s^a)+c+p[i]+1859775393&4294967295,c=a,a=s,s=f(r,30),r=n,n=d;for(i=40;i<=59;i++)d=f(n,5)+(r&s|r&a|s&a)+c+p[i]+2400959708&4294967295,c=a,a=s,s=f(r,30),r=n,n=d;for(i=60;i<=79;i++)d=f(n,5)+(r^s^a)+c+p[i]+3395469782&4294967295,c=a,a=s,s=f(r,30),r=n,n=d;g=g+n&4294967295,_=_+r&4294967295,w=w+s&4294967295,m=m+a&4294967295,y=y+c&4294967295}return d=l(g)+l(_)+l(w)+l(m)+l(y),d.toLowerCase()},h.getQueryParam=function(e,t){t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i="[\\?&]"+t+"=([^&#]*)",o=new RegExp(i),n=o.exec(e);return null===n||n&&"string"!=typeof n[1]&&n[1].length?"":p(n[1]).replace(/\+/g," ")},h.getMetaContent=function(e){for(var t=d.getElementsByTagName("meta"),i=0;i<t.length;i++)if(t[i].getAttribute("name")===e)return t[i].getAttribute("content");return null},h.isUndefined=function(e){return void 0===e},h.isObject=function(e){return e===Object(e)&&!h.isArray(e)},h.xhr=function(){try{return window.XMLHttpRequest?new window.XMLHttpRequest:window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null}catch(e){}},h.xhrSuccessStatus={0:200,1223:204},h.xhrSupported=h.xhr(),h.cookie={get:function(e){for(var t=e+"=",i=d.cookie.split(";"),o=0;o<i.length;o++){for(var n=i[o];" "==n.charAt(0);)n=n.substring(1,n.length);if(0==n.indexOf(t))return p(n.substring(t.length,n.length))}return null},parse:function(e){var t;try{t=h.JSONDecode(h.cookie.get(e))||{}}catch(i){}return t},set:function(e,t,i){var o="",n="",r="",s=d.location.hostname.match(/[a-z0-9][a-z0-9\-]+\.[a-z\.]{2,6}$/i),a=s?s[0]:"";if(o=a?"; domain=."+a:"",i){var c=new Date;c.setTime(c.getTime()+24*i*60*60*1e3),n="; expires="+c.toGMTString()}d.cookie=e+"="+l(t)+n+"; path=/"+o+r},remove:function(e){h.cookie.set(e,"",-1)}},h.localStorage={error:function(e){C.error("localStorage error: "+e)},get:function(e){try{return window.localStorage.getItem(e)}catch(t){h.localStorage.error(t)}return null},parse:function(e){try{return h.JSONDecode(h.localStorage.get(e))||{}}catch(t){}return null},set:function(e,t){try{window.localStorage.setItem(e,t)}catch(i){h.localStorage.error(i)}},remove:function(e){try{window.localStorage.removeItem(e)}catch(t){h.localStorage.error(t)}}},h.register_event=function(){function e(e,i,o){var n=function(n){if(n=n||t(window.event)){var r,s,a=!0;return h.isFunction(o)&&(r=o(n)),s=i.call(e,n),!1!==r&&!1!==s||(a=!1),a}};return n}function t(e){return e&&(e.preventDefault=t.preventDefault,e.stopPropagation=t.stopPropagation),e}var i=function(t,i,o,n){if(!t)return void C.error("No valid element provided to register_event");if(t.addEventListener&&!n)t.addEventListener(i,o,!1);else{var r="on"+i,s=t[r];t[r]=e(t,o,s)}};return t.preventDefault=function(){this.returnValue=!1},t.stopPropagation=function(){this.cancelBubble=!0},i}(),h.info={campaignParams:function(){var e="utm_source utm_medium utm_campaign utm_content utm_term".split(" "),t="",i={};return h.each(e,function(e){t=h.getQueryParam(d.URL,e),t.length&&(i[e]=t)}),i},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=h.info.searchEngine(e),i="yahoo"!=t?"q":"p",o={};if(null!==t){o.$search_engine=t;var n=h.getQueryParam(e,i);n.length&&(o.tk_keyword=n)}return o},browser:function(e,t,i){var t=t||"";return i||h.includes(e," OPR/")?h.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":h.includes(e,"IEMobile")||h.includes(e,"WPDesktop")?"Internet Explorer Mobile":h.includes(e,"Edge")?"Microsoft Edge":h.includes(e,"FBIOS")?"Facebook Mobile":h.includes(e,"Chrome")?"Chrome":h.includes(e,"CriOS")?"Chrome iOS":h.includes(t,"Apple")?h.includes(e,"Mobile")?"Mobile Safari":"Safari":h.includes(e,"Android")?"Android Mobile":h.includes(e,"Konqueror")?"Konqueror":h.includes(e,"Firefox")?"Firefox":h.includes(e,"MSIE")||h.includes(e,"Trident/")?"Internet Explorer":h.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,i){var o=h.info.browser(e,t,i),n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/Chrome\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/},r=n[o];if(void 0==r)return null;var s=e.match(r);return s?parseFloat(s[s.length-2]):null},os:function(){var e=f;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},properties:function(){var e=h.extend(h.strip_empty_properties({referrer:d.referrer,referring_domain:h.info.referringDomain(d.referrer)}),{current_url:window.location.href,screen_height:u.height,screen_width:u.width,tk_lib:"web",lib_version:g,browserFeatures:h.info.browserFeatures()});return window.dataLayer&&window.dataLayer.length>0&&(e=h.extend(e,{dataLayer:window.dataLayer[0]})),e},people_properties:function(){return h.extend(h.strip_empty_properties({os:h.info.os(),browser:h.info.browser(f,c.vendor,window.opera)}),{browser_version:h.info.browserVersion(f,c.vendor,window.opera)})},browserFeatures:function(){var e,t,i={},o={pdf:"application/pdf",qt:"video/quicktime",realp:"audio/x-pn-realaudio-plugin",wma:"application/x-mplayer2",dir:"application/x-director",fla:"application/x-shockwave-flash",java:"application/x-java-vm",gears:"application/x-googlegears",ag:"application/x-silverlight"},n=new RegExp("Mac OS X.*Safari/").test(f)?window.devicePixelRatio||1:1;if(!new RegExp("MSIE").test(f)){if(c.mimeTypes&&c.mimeTypes.length)for(e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t=c.mimeTypes[o[e]],i[e]=t&&t.enabledPlugin?"1":"0");"unknown"!=typeof c.javaEnabled&&!h.isUndefined(c.javaEnabled)&&c.javaEnabled()&&(i.java="1"),h.isFunction(window.GearsFactory)&&(i.gears="1");var r="0";c.cookieEnabled?(h.cookie.set("testcookie",1,1),r="1"===h.cookie.get("testcookie")?"1":"0",h.cookie.remove("testcookie")):r=c.cookieEnabled?"1":"0",i.cookie=r,i.ab=!window.noBlocker}return i.storage="undefined"!=typeof Storage,i.res=u.width*n+"x"+u.height*n,i},pageviewInfo:function(e){return h.strip_empty_properties({page:e,referrer:d.referrer})},metasInfo:function(){var e,t=h.getMetaContent("rjtrackaction"),i=h.getMetaContent("rjtrackcontent"),o=h.getMetaContent("rjtrackcontentid"),n=(e=h.getMetaContent("rjtrak"))?h.JSONDecode(e):[];return h.info.actionInfo(n,t,i,o)},actionInfo:function(e,t,i,o){return t=parseInt(t,10),i=parseInt(i,10),o&&(o=parseInt(o,10)),e=e?e:[],{crit:e,ta:t,tc:i,iid:o}}};var x=function(e){this.props={},this.name=e.persistence_name,this.oldname=e.old_persistence_name;var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(C.error('Unknown persistence type "'+t+'"; falling back to "cookie"'),t=e.persistence="cookie");var i=function(){var e=!0;try{var t="__hwlssupport__",i="xyz";h.localStorage.set(t,i),h.localStorage.get(t)!==i&&(e=!1),h.localStorage.remove(t)}catch(o){e=!1}return e||C.error("localStorage unsupported; falling back to cookie store"),e};"localStorage"===t&&i()?this.storage=h.localStorage:this.storage=h.cookie,this.load(),this.update_config(e),this.save()};x.prototype.properties=function(){var e={};return h.each(this.props,function(t,i){h.include(k,i)||(e[i]=t)}),e},x.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e?this.props=h.extend({},e):(e=this.storage.parse(this.oldname),e&&(this.props=h.extend({},e),this.save(),this.storage.remove(this.oldname,!1),this.storage.remove(this.oldname,!0)))}},x.prototype.save=function(){this.disabled||this.storage.set(this.name,h.JSONEncode(this.props),this.expire_days)},x.prototype.remove=function(){this.storage.remove(this.name,!1),this.storage.remove(this.name,!0)},x.prototype.clear=function(){this.remove(),this.props={}},x.prototype.register_once=function(e,t,i){return!!h.isObject(e)&&("undefined"==typeof t&&(t="None"),this.expire_days="undefined"==typeof i?this.default_expiry:i,h.each(e,function(e,i){this.props[i]&&this.props[i]!==t||(this.props[i]=e)},this),this.save(),!0)},x.prototype.register=function(e,t){return!!h.isObject(e)&&(this.expire_days="undefined"==typeof t?this.default_expiry:t,h.extend(this.props,e),this.save(),!0)},x.prototype.unregister=function(e){e in this.props&&(delete this.props[e],this.save())},x.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.visitorCookieTimeout},x.prototype.update_campaign_params=function(){this.campaign_params_saved||(this.register_once(h.info.campaignParams()),this.campaign_params_saved=!0)},x.prototype.update_referrer_info=function(e){this.register_once({initial_referrer:e||"direct",initial_referring_domain:h.info.referringDomain(e)||"direct"},"")};var E=function(){this.identifiers={}};E.prototype._add_token=function(e){return e=e||{},this.identifiers.Cid&&!h.isUndefined(this.identifiers.Cid)&&(e=h.extend({cid:this.identifiers.Cid},e)),e=h.extend({it:this.get_config("trackerType"),did:this.get_config("trackerDomainId"),aid:this.get_config("trackerSiteId"),uid:this.identifiers.Uid,sid:this.identifiers.Sid,gid:this.identifiers.Gid},h.info.properties(),this.persistence.properties(),e)},E.prototype.extract_metas=function(){return this._add_token(h.info.metasInfo())},E.prototype.track_metas=function(){this.autoTracked||(this.autoTracked=!0,this._trackAction(h.info.metasInfo()))},E.prototype.track_pageview=function(e){h.isUndefined(e)&&(e=d.location.href),this.track("page_view",h.info.pageviewInfo(e))},E.prototype._trackAction=function(e,t){return h.isBlockedUA(f)?("function"==typeof t&&t("Blocked"),!1):(!this.get_config("doNotTrack")&&e.crit.length?(C.log("Sending track package"),"POST"===this.get_config("requestMethod")?this._send_data("t",e,"post",function(){C.log("Done !")},function(){C.error("Error with POST retry with GET pixel"),this._send_request_img(e)},function(){C.log("End !"),"function"==typeof t&&t(null,e)}):(this._send_request_img(e),"function"==typeof t&&t(null,e))):(C.log("TRACKING REQUEST: No track criterions"),"function"==typeof t&&t("No criterion found")),e)},E.prototype.getWk=function(e){void 0==this.persistence.props.ds?this._send_data("i/getWk",null,"post",function(t){if(h.isUndefined(t))return e(!1);var i=h.JSONDecode(t);i.r&&this.persistence.register({ds:i.r}),e(i.r)},function(){e(!1)}):e(this.persistence.props.ds)},E.prototype.setDebug=function(e){e?this.persistence.register({debug:!0}):this.persistence.unregister("debug")},E.prototype.whoami=function(e){this._send_data("i/getInfos",null,"post",e,null)},E.prototype.identify=function(e,t,i){this.persistence.unregister("ds"),this.identifiers.Eid=e,this.identifiers.Uid=null,arguments.length>=2&&("function"!=typeof arguments[1]?this.identifiers.Uid=t:i=t),this._send_data("i/getpid",{email:this.identifiers.Eid,uid:this.identifiers.Uid},"post",this._checkCookie,this._continueLoading,i)},E.prototype.track=function(e,t,i){if(h.isUndefined(e))return void C.error("No event name provided to tracker.track");var o={email:this.identifiers.Eid,event:e,properties:t};this._send_data("t/e",o,"post",null,i)},E.prototype.cookieConsentLoad=function(){var e="undefined"!=typeof this.get_config("cookieConsentScriptUrl")?this.get_config("cookieConsentScriptUrl"):"https://ressources.regionsjob.com/hellowork-cookie-consent/tags/1.0.3/embed.js";"maformation-preprod.regionsjob.com"===window.location.hostname||"www.maformation.fr"===window.location.hostname||"www.mon-compte-formation.fr"===window.location.hostname||"jobs-preprod.holeest.com"===window.location.hostname||this.get_config("cookieConsentFeatV2")?e="https://f.hellowork.com/hw-cookie-consent/latest/embed.js":["www.blogdumoderateur.com","blogdumoderateur-bca.dev-hellowork.com","blogdumoderateur-yde.dev-hellowork.com","helloworkplace-bca.dev-hellowork.com","www.helloworkplace.fr","www.hellowork.com"].indexOf(window.location.hostname)>=0?e="https://f.hellowork.com/hw-cookie-consent/tags/3.1.0/embed.js":(window.location.hostname.endsWith("job-preprod.regionsjob.com")||["cadreov2-preprod.regionsjob.com","www.regionsjob.com","www.ouestjob.com","www.parisjob.com","www.cadreo.com","www.rhonealpesjob.com","www.pacajob.com","www.sudouestjob.com","www.estjob.com","www.nordjob.com","www.centrejob.com"].indexOf(window.location.hostname)>=0)&&(window.HelloworkCookieConsentCustomConfig={noticeIntroductionText:"Nous utilisons des cookies pour vous suggérer les offres d'emploi les plus adaptées à votre recherche.",noticeModal:!1,primaryBtnBackgroundColor:"#0A3C80"},e="https://f.hellowork.com/hw-cookie-consent/tags/3.1.0/embed.js");var t=d.createElement("script"),i=this;t.type="text/javascript",t.src=e,t.readyState?t.onreadystatechange=function(){"loaded"!==t.readyState&&"complete"!==t.readyState||(t.onreadystatechange=null,i.cookieConsentInit(i))}:t.onload=function(){i.cookieConsentInit(i)},d.body.appendChild(t)},E.prototype.cookieConsentInit=function(e){window.helloworkCookieConsent=new HelloworkCookieConsent},E.prototype.cookieConsentSet=function(e,t){this._send_data("cookie",e,"post",null,t)},E.prototype.cookieConsentGet=function(e){this._send_data("cookie?_="+(new Date).getTime(),null,"get",function(t){return h.isUndefined(t)?e("Undefined cookie data"):void e(null,h.JSONDecode(t?t:"{}"))},function(t,i){e(i)})},E.prototype.track_action=function(e,t,i,o,n){this._trackAction(h.info.actionInfo(e,t,i,o),n)},E.prototype._loaded=function(){this.get_config("loaded")(this)},E.prototype._authenticiate=function(){var e=new Date,t=h.cookie.get("_rj_email_u")||h.getMetaContent("rjtrackemail")||h.cookie.get("_hw_email_u"),i=h.cookie.get("_rj_pid")||h.cookie.get("_hw_pid"),o=h.cookie.get("_rj_cid")||h.cookie.get("_hw_cid"),n=h.cookie.get("_rj_sid")||h.cookie.get("_hw_sid"),r=h.cookie.get("_ga");if(r){var s=r.split(".");s.length>=4&&(this.identifiers.Gid=s[2]+"."+s[3])}i&&"1"!==i&&"2"!==i&&(this.identifiers.Pid=i),t&&(this.identifiers.Eid=t),o&&(this.identifiers.Cid=o),n?this.identifiers.Sid=n:this.identifiers.Sid=h.sha1((c.userAgent||"")+(c.platform||"")+h.JSONEncode(h.info.properties)+e.getTime()+Math.random()).slice(0,16),h.cookie.set("_hw_sid",this.identifiers.Sid,this.get_config("sessionCookieTimeout"));var a=h.getMetaContent("rjtrackuserid");if(!a||isNaN(a)&&window.dataLayer){var d=this.get_config("useridproperty");for(var u in window.dataLayer)window.dataLayer[u][d]&&(a=window.dataLayer[u][d])}this.identifiers.Uid=a;var f=!i||"1"===i||"2"===i;this.identifiers.Eid&&h.sha1(this.identifiers.Eid+"|"+this.identifiers.Pid)!=this.persistence.props.ecs&&(f=!0),f?(this.persistence.unregister("ds"),C.log("Authenticate"),this._authenticiate2()):this._continueLoading()},E.prototype._authenticiate2=function(){this._send_data("i/getpid",{email:this.identifiers.Eid},"post",this._checkCookie,this._continueLoading)},E.prototype._checkCookie=function(e){var t=e.split("|");this.persistence.register({s:"true"===t[3]}),e=t[0],"true"!==t[1]?(C.log("Check cross cookie"),this._send_data("i/allowcookie",null,"post",function(i){C.log("Cross domain cookie",i),"true"===i?this._setPid(e):2==this.identifiers.Pid&&(this._setPid(e),this._setCid(t[2]))},null,this._continueLoading)):(this._setPid(e),this._continueLoading())},E.prototype._setCid=function(e){this.identifiers.Cid=e,!this.get_config("doNotTrack")&&this.identifiers.Cid&&null!==this.identifiers.Cid&&""!==this.identifiers.Cid&&h.cookie.set("_hw_cid",this.identifiers.Cid,this.get_config("visitorCookieTimeout"))},E.prototype._setPid=function(e){this.identifiers.Pid=e,!this.get_config("doNotTrack")&&this.identifiers.Pid&&null!==this.identifiers.Pid&&""!==this.identifiers.Pid&&"1"!==this.identifiers.Pid&&"2"!==this.identifiers.Pid&&h.cookie.set("_hw_pid",this.identifiers.Pid,this.get_config("visitorCookieTimeout"))},E.prototype._triggerDataLayer=function(){if(window.dataLayer){var e={event:"EventData",EventCat:"Data",EventAction:"Profiling",EventData:this.persistence.props.s===!0?this.identifiers.Pid:null};C.log("Data layer push",e),window.dataLayer.push(e)}},E.prototype._setIdentityCache=function(){this.identifiers.Eid&&h.sha1(this.identifiers.Eid+"|"+this.identifiers.Pid)!=this.persistence.props.ecs?(C.log("Set identity cache",this.identifiers.Eid,this.identifiers.Pid),this.persistence.register({ecs:h.sha1(this.identifiers.Eid+"|"+this.identifiers.Pid)}),this._triggerDataLayer()):this._triggerDataLayer()},E.prototype._continueLoading=function(){C.log("Authenticated! Identifiers",this.identifiers),this._setIdentityCache(),this.get_config("track_metas")&&this.track_metas(),(this.get_config("track_pageview")||3===this.get_config("trackerDomainId")||window.dataLayer&&window.dataLayer[0]&&"LO-Moteur"===window.dataLayer[0].typePage)&&this.track_pageview();var e=this.get_config("authenticated");e&&e(this),this.get_config("cookieConsent")&&this.cookieConsentLoad()},E.prototype.set_config=function(e){h.isObject(e)&&(h.extend(this.config,e),w=w||this.get_config("isDebug"),C=new S(w))},E.prototype.get_config=function(e){return this.config[e]},E.prototype._dom_loaded=function(){h.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__request_queue},E.prototype._send_request_img=function(e){var t=d.createElement("img");d.body.appendChild(t);var i=new Image(1,1),o=this.get_config("trackerUrl");i.src=o+"t"+(o.indexOf("?")<0?"?":"&")+"id="+h.JSONEncode(e)},E.prototype._send_data=function(e,t,i,o,n,r){if(h.isBlockedUA(f))return void C.log("No track (Bot detected)");var s=this._add_token(t||{});return C.log("Request "+e,s),this._send_request(e,h.JSONEncode(s),i,o,n,r)},E.prototype._send_request=function(e,t,i,o,n,r){if(y)return void this.__request_queue.push(arguments);i=h.isUndefined(i)?"POST":i;var s=this;try{var a=h.xhr();a.open(i,s.get_config("trackerUrl")+e,!0),a.withCredentials=!0,a.onreadystatechange=null,a.onreadystatechange=function(){var e=h.xhrSuccessStatus[this.status]||a.status;if(4===this.readyState){if(e>=200&&e<300){var t=a.responseText;"function"==typeof o&&o.call(s,t)}else C.log(a,a.statusText),"function"==typeof n&&n.call(s,a,a.statusText);"function"==typeof r&&r.call(s)}},a.setRequestHeader("Content-Type","application/json; charset=utf-8"),a.send(t)}catch(c){"function"==typeof n&&n(c,c.description),"function"==typeof r&&r.call(s)}},E.prototype._init=function(e){this.__loaded=!0,this.config={},this.set_config(h.extend({},b,e)),this.__request_queue=[];var t=this.get_config("trackerUrl");"/"!==t[t.length-1]&&(C.error("Use url end with '/' for 'trackerUrl' option"),this.set_config({trackerUrl:t+"/"})),this.persistence=new x(this.config),C.log("BaseSettings:",this.config),this.get_config("store_google")&&this.persistence.update_campaign_params(),this.get_config("save_referrer")&&this.persistence.update_referrer_info(d.referrer),this._authenticiate()};var P={},j=function(){t._=h},O=function(){t.init=function(e){var i=t;P[_]?i=P[_]:e&&(i=I(e),i._loaded(),P[_]=i),t=i,window[_]=t,j()}},A=function(){function e(){e.done||(e.done=!0,v=!0,y=!1,h.each(P,function(e){e._dom_loaded()}))}function t(){try{d.documentElement.doScroll("left")}catch(i){return void setTimeout(t,1)}e()}if(d.addEventListener)"complete"==d.readyState?e():d.addEventListener("DOMContentLoaded",e,!1);else if(d.attachEvent){d.attachEvent("onreadystatechange",e);var i=!1;try{i=null==window.frameElement}catch(o){}d.documentElement.doScroll&&i&&t()}h.register_event(window,"load",e,!0)},I=function(e){var i,o=t;if(o&&!h.isArray(o))return void C.error("You have already initialized lib");i=new E,i._init(e);var n=h.getQueryParam(d.URL,"debug");return n&&i.setDebug(!0),w=w||i.get_config("debug")||i.persistence.properties.debug,i};e()}();
//# sourceMappingURL=maps/tracker-2-latest.min.js.map