MSN=0)return this.storage.key(e)}setObject(e,t){void 0!==t?this.setItem(e,JSON.stringify(t)):this.removeItem(e)}removeObject(e){const t=this.removeItem(e);if(null!=t)return o(t)}setItem(e,t){if(this.supported)try{this.storage.setItem(e,t)}catch(e){a.logError(e)}}get length(){if(this.supported)return this.storage.length}removeItem(e){if(this.supported){const t=this.getItem(e);return this.storage.removeItem(e),t}}removeSubstringKeys(e){if(!this.supported||!e)return;const t=[];for(let n=0;n{const e=b();return e&&”1″===e.getItem(v)||s()&&location.search&&location.search.includes(“uxlogin=1″)}));const q=y((()=>{const e=function(){try{return sessionStorage}catch(e){return null}}();return e&&!!e.getItem(S)}));let C;function I(e){if(!e)return null;if(!C){const e=”undefined”!=typeof document&&document.cookie.split(“; “);C={};const t=e&&e.length;for(let n=0;n(s()&&r()||{}).apptype));const E=y((()=>{const e=I(_),t=e&&o(decodeURIComponent(e)),{login_hint:n}=t||{};return n&&t})),O=y((()=>!!I(_))),L=y((()=>T()&&(E()||!I(“ace”)))),x=y((()=>{var e;return s()&&!(N()in A)&&(e=/bprg-nodualauth($|;|,)/,!(s()&&(document.head.dataset.info||””).match(e)))})),T=y((()=>x()&&!(N()in H)));y((()=>x()&&(!(N()in H)||!O()))),y((()=>x()&&!R()));function P(e,t){const n={};return e&&(n[h]=`Bearer ${e}`),t&&(n[p]=t),n}function R(){return T()&&k()||L()&&(L()&&!k()&&E()&&”expired”==function(){if(d=g(),!d)return”notAvailable”;const e=d&&d.expiresOn,t=new Date(e);return t&&t.getTime()&&t>new Date?”valid”:”expired”}()||q())}class D{constructor(e){this.url=new URL(e.href),this.innerHeight=e.innerHeight,this.devicePixelRatio=e.devicePixelRatio,this.canUseCssGrid=e.canUseCssGrid,this.requestId=e.requestId,this.cookie=e.cookie,this.referer=e.referer,this.userAgent=e.userAgent,this.oneServiceHeaders=function(e){try{if(e)return JSON.parse(e)}catch(e){}}(e.oneServiceHeaders)||{}}static getInstance(){return i.g.TEST_ENV&&!D._instance&&U({href:”http://localhost:8080/”,innerHeight:768,devicePixelRatio:1,canUseCssGrid:!1,requestId:”0″,cookie:””,userAgent:””,referer:””,oneServiceHeaders:””}),D._instance||U({href:”http://localhost:8080/”,innerHeight:0,devicePixelRatio:0,canUseCssGrid:!1,requestId:”0″,cookie:””,userAgent:””,referer:””,oneServiceHeaders:””}),D._instance}static resetInstance(e){return D._instance=new D(e),D._instance}}D._instance=null;const U=D.resetInstance;function F(){return s()?window.devicePixelRatio:D.getInstance().devicePixelRatio}function…
Like this:
Like Loading...