iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: https://static.xingcdn.com/crate/runtime/chunk-08b012896f1f5376.js
(globalThis.webpackChunk_xing_com_crate_runtime_host_browser=globalThis.webpackChunk_xing_com_crate_runtime_host_browser||[]).push([["668"],{4205:function(n,t,e){"use strict";e.r(t),e.d(t,{default:()=>nD});var r,o,i,a,c,s,u,l,d,f=e("6683"),p=e.n(f);let v={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};for(var m=new Uint8Array(16),h=[],g=0;g<256;++g)h.push((g+256).toString(16).slice(1));let w=function(n,t,e){if(v.randomUUID&&!t&&!n)return v.randomUUID();var r=(n=n||{}).random||(n.rng||function(){if(!l&&!(l="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return l(m)})();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){e=e||0;for(var o=0;o<16;++o)t[e+o]=r[o];return t}return function(n){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(h[n[t+0]]+h[n[t+1]]+h[n[t+2]]+h[n[t+3]]+"-"+h[n[t+4]]+h[n[t+5]]+"-"+h[n[t+6]]+h[n[t+7]]+"-"+h[n[t+8]]+h[n[t+9]]+"-"+h[n[t+10]]+h[n[t+11]]+h[n[t+12]]+h[n[t+13]]+h[n[t+14]]+h[n[t+15]]).toLowerCase()}(r)};var b="debug",y="info",_="warn",P="error",O=e.g.console,x=Function.prototype.apply,E={},j=0;["log","debug","info","warn","error","group","groupCollapsed","groupEnd"].forEach(function(n){E[n]=function(){for(var t=[],e=0;e0)for(var r=0;r=200&&e.status<300?r():o(Error("".concat(e.status," ").concat(e.statusText))))},e.open("POST",n,!0),e.withCredentials=!0,e.setRequestHeader("Content-Type","text/plain"),e.send(JSON.stringify(t))})};var ns="1.15.0",nu=function(){return(nu=Object.assign||function(n){for(var t,e=1,r=arguments.length;et.indexOf(r)&&(e[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(n);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(n,r[o])&&(e[r[o]]=n[r[o]]);return e},nS=function(n){if("function"==typeof n)return n;if(!0===n)return function(n){return B.test(n)};if(n instanceof RegExp)return function(t){return n.test(t)};else{if("string"==typeof n)return function(t){return n===t};else return null}},nR=function(n,t){var e=t.clearParams,r=t.host,o=t.sandboxFile,i=t.sandboxUrl,a=nk(t,["clearParams","host","sandboxFile","sandboxUrl"]);return[nC(n,{clearParams:e,host:r,sandboxFile:o,sandboxUrl:i}),nI(n,a)]},nI=function(n,t){var e=(window.location||{}).search;return Object.assign({debug:/debug=true/.test(e)},t,{env:n})},nC=function(n,t){var e=t.clearParams,r=t.host,o=t.sandboxFile,i=void 0===o?"stm-".concat(H,".html"):o,a=t.sandboxUrl;return{clearParams:e,sandboxUrl:void 0===a?"https://".concat(void 0===r?"production"===n?"stan.xing.com":"preview-stan.xing.com":r,"/").concat(i):a}},nN=function(){throw Error("Please call ttt.init first")},nT=function(){},nA=function(){return Promise.resolve()};H=(a={API_VERSION:"v1",TTT_VERSION:ns}).API_VERSION,M=a.TTT_VERSION;let nD=p()?{version:"0.0.0-mock",baseData:{},init:nA,pageview:nA,event:nA,nwtEvent:nA,withPerformanceMetrics:nA,publish:nA,subscribe:nT,assign:nT,_dl:{},_rawPageview:nA,_rawEvent:nA,_unload:nT}:(c=e.g.window,s={version:M,baseData:{},_dl:{},_sandbox:nt(c),_clearParamsFilter:void 0,_initCalled:!1,_env:void 0},u=function(){!s._initCalled&&nN()},s.assign=Object.assign,s.init=function(n,t){if(void 0===t&&(t={}),s._initCalled)return Promise.resolve();s._initCalled=!0,s._env=n;var e=nR(n,t),r=e[0],o=e[1],i=r.clearParams,a=void 0===i||i,c=r.sandboxUrl;return s._sandbox.load(c),a&&(s._clearParamsFilter=nS(a)),s._sandbox.publish("stm:init",o)},s.pageview=function(n,t,e,r){return u(),s.baseData=Object.assign({},e),s._dl=Object.assign({},e,{PropChannel:n,pageName:t,PropDestinationUrl:c.location.href,PropReferringUrl:s._dl&&s._dl.PropDestinationUrl||c.document.referrer}),s._clearParamsFilter&&s._clearParams(s._clearParamsFilter),s._rawEvent("pageview",Object.assign({},s._dl,r))},s.event=function(n,t){u();var e=Object.assign({},s._dl,t);return s._rawEvent(n,e)},s.nwtEvent=function(n){u();var t=Q(s._dl.PropDestinationUrl,c.location.href),e=nj(n,t);nU(e,s._env)},s.withPerformanceMetrics=function(n){return u(),new Promise(function(t){var e=function(){setTimeout(function(){var e=nn(c),r={PropTechnicalPerformance:Object.keys(e).map(function(n){return"".concat(n,"=").concat(e[n])}).join(";")};n&&n(r),t(r)},0)};if(c.document&&"complete"===c.document.readyState||!c.addEventListener)e();else{var r=function(){e(),c.removeEventListener("load",r,!0)};c.addEventListener("load",r,!0)}})},s.publish=function(n,t,e){return void 0===e&&(e={}),u(),s._sandbox.publish(n,t,e)},s.subscribe=function(n,t){return u(),s._sandbox.subscribe(n,t)},s._clearParams=function(n){return u(),function(n){var t,e,r=window.location,o=r.href,i=r.origin,a=r.pathname,c=r.search,s=r.hash;if(!c)return o;var u=(t=c,e=n,L(D(t).filter(function(n){return!1===e(n[0],n[1])})));if(u===c)return o;var l=u&&"?"!==u?"".concat(i).concat(a).concat(u).concat(s):"".concat(i).concat(a).concat(s);return window.history.replaceState({},null,l),l}(n)},s._rawEvent=function(n,t){u();var e,r=ne(t.pageName,"adobe");return t=Object.assign({},t,{PropLastPage:r,PropLastPageCookieSet:1}),X.includes(null===(e=t.pageName)||void 0===e?void 0:e.split("/")[0])&&(t=Object.assign(t,{PropDeduplicationId:w()})),Promise.all([np.track(s._env,n,t),s._sandbox.publish("stm:track",{event:n,props:t})])},s._rawPageview=s._rawEvent.bind(null,"pageview"),s._unload=function(){return s._sandbox.unload()},s)},6683:function(n){n.exports=!1}}]); //# sourceMappingURL=chunk-08b012896f1f5376.js.map