"string"==typeof e?e:e.name)||"",t)?null:r.call(this,e)},enumerable:!0}),e({context:globalThis.CookieStore.prototype,property:"getAll",value:async function(){return a(await n.apply(this,Array.from(arguments)),t)},enumerable:!0}),e({context:globalThis.CookieStore.prototype,property:"set",value:async function(){let e=Array.from(arguments);if(!c(1===e.length?e[0].name:e[0],t))return i.apply(this,e);o&&console.warn(o)},enumerable:!0}),e({context:globalThis.CookieStore.prototype,property:"delete",value:async function(){let e=Array.from(arguments);if(!c(1===e.length?e[0].name:e[0],t))return l.apply(this,e)},enumerable:!0}),e({context:globalThis.cookieStore,property:"prototype",value:globalThis.CookieStore.prototype,enumerable:!1}),e({context:globalThis,property:"cookieStore",value:globalThis.cookieStore,enumerable:!0}),{get:r,getAll:n,set:i,delete:l}}var f=["TextEncoder","TextDecoder","XMLHttpRequestEventTarget","EventTarget","URL","JSON","Reflect","Object","Array","Map","Set","WeakMap","WeakSet","Promise","Symbol","Error"],y=["addEventListener","removeEventListener","dispatchEvent","encodeURI","encodeURIComponent","decodeURI","decodeURIComponent"];const d=(e="",t="",o="/")=>`${e}=; ${t?`domain=${t};`:""} max-age=0; path=${o}; expires=Thu, 01 Jan 1970 00:00:01 GMT`,g="client-session-bind",b=[g,"client-binding","svSession","smSession","server-session-bind","wixSession2","wixSession3"].map(e=>e.toLowerCase()),{cookie:h}=function(t,o){let r=new Set(t);return e({context:document,property:"cookie",set:{func:e=>function(e,t,o,r){let n=u(),i=l(t.split(";")[0]||"")||"";[...o].every(e=>!i.startsWith(e.toLowerCase()))&&n?.set?n.set.call(e,t):r&&console.warn(r)}(document,e,r,o)},get:{func:()=>function(e,t){let o=u();if(!o?.get)throw new Error("Cookie descriptor or getter not available");return a(o.get.call(e),t).join("; ")}(document,r)},enumerable:!0}),{cookieStore:p(r,o),cookie:u()}}(b),m="tbReady",v="security_overrideGlobals",{experiments:w,siteFeaturesConfigs:T,accessTokensUrl:S}=window.viewerModel,k=S,x={},E=(()=>{const e=((e,t)=>{try{const o=t?t.get.call(document):document.cookie;return o.split(";").map(e=>e.trim()).filter(t=>t?.startsWith(e))[0]?.split("=")[1]}catch(e){return""}})(g,h);return(()=>{const e=d(g),t=d(g,location.hostname);h.set.call(document,e),h.set.call(document,t)})(),e})();E&&(x["client-binding"]=E);const C=fetch;addEventListener(m,function e(t){const{logger:o}=t.detail;try{window.tb.init({fetch:C,fetchHeaders:x})}catch(e){const t=new Error("TB003");o.meter(`${v}_${t.message}`,{paramsOverrides:{errorType:v,eventString:t.message}}),window?.viewerModel?.mode.debug&&console.error(e)}finally{removeEventListener(m,e)}}),w["specs.thunderbolt.hardenFetchAndXHR"]||(window.fetchDynamicModel=()=>T.sessionManager.isRunningInDifferentSiteContext?Promise.resolve({}):fetch(k,{credentials:"same-origin",headers:x}).then(function(e){if(!e.ok)throw new Error(`[${e.status}]${e.statusText}`);return e.json()}),window.dynamicModelPromise=window.fetchDynamicModel())})(); //# sourceMappingURL=https://static.parastorage.com/services/wix-thunderbolt/dist/handleAccessTokens.inline.698ac2a0.bundle.min.js.map