import{M as o}from"./p-ecbaf6d8.js";import{M as t}from"./p-c705c477.js";import{U as n}from"./p-56d4255d.js";import{U as e}from"./p-73aa5f56.js";import{C as r}from"./p-138d8bf9.js";import{r as a}from"./p-e929429b.js";const i="https://api.mentornity.com";function m(o){return new a("/:domain(/:page)(/:id)").match(o)}function s(o){const{domain:t}=m(location.pathname),n=(new r).get("mt_at"),e=(new r).get("mt_st"),a={organisationDomain:t,organisationId:(new r).get("mt_oid"),userId:(new r).get("mt_uid"),role:(new r).get("mt_role")},i={Client:"d2ViLWNsaWVu"};return n?(i.Authorization=`Bearer ${n}`,i["Session-Token"]=e):i["Session-Token"]="NTdiMzY3NjBlNjNiY2UxZWViMDAwMDA0",a.groupId=o,{context:a,headers:i}}function c(o,t,n,r){const a=[];return r&&a.push({id:"zoom",name:"Zoom",scope:[]}),e.decode({timeFormat:o,timeZone:t,language:n,authPlatforms:a})}function d(t){return o.decode({config:f(t)})}function f(o){return t.decode({_id:"mentor"===o?"mentors":"mentees",roleName:o})}function p(o){return n.decode({_id:o})}export{f as a,m as b,p as c,c as d,d as e,s as g,i as m}