obi-sdk 0.19.47 → 0.19.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -52,5 +52,5 @@ a=extmap-allow-mixed`)!==-1){const s=r.sdp.split(`
52
52
  100% { transform: translateX(344px); }
53
53
  }
54
54
  `}),m("article",{style:n.skeletonContainer,role:"status","aria-label":"Loading content",children:[m("section",{style:n.headerSection,children:[m("div",{style:n.avatar,role:"img","aria-label":"Loading avatar",children:m("div",{style:n.shimmer})}),m("div",{style:n.textLines,children:[m("div",{style:n.textLine,role:"presentation","aria-label":"Loading text line 1",children:m("div",{style:n.shimmer})}),m("div",{style:n.textLine,role:"presentation","aria-label":"Loading text line 2",children:m("div",{style:n.shimmer})})]})]}),m("section",{style:n.contentSection,children:m("div",{style:n.contentBlock,role:"presentation","aria-label":"Loading card content",children:m("div",{style:n.shimmer})})})]})]})}function Wx({}){const n={host:{display:"block",height:"161px"},shareContainer:{width:"480px",height:"240px",borderRadius:"12px",display:"grid",placeItems:"center",overflow:"hidden",position:"relative",backgroundColor:"var(--obi-color-tint)"},controlsRow:{zIndex:10,gridRowStart:1,gridColumnStart:1,display:"flex",alignSelf:"flex-start",marginTop:"36px",alignItems:"center",gap:"8px"},monitorIconContainer:{display:"flex",height:"40px",width:"40px",aspectRatio:"1",alignItems:"center",justifyContent:"center",gap:"8px",borderRadius:"2px",border:"1px solid #E4E4E7",background:"#F8FAFC",padding:"8px"},monitorIcon:{width:"24px",height:"24px",color:"#111827"},tabSelector:{display:"flex",width:"260px",height:"40px",padding:"4px",alignItems:"center",borderRadius:"2px",background:"#E4E4E7"},tabButton:e=>({display:"flex",flex:1,alignSelf:"stretch",alignItems:"center",justifyContent:"center",gap:"10px",borderRadius:"2px",padding:"6px 12px",border:"none",cursor:"pointer",fontFamily:"'Inter', sans-serif",fontSize:"14px",fontWeight:500,opacity:e?1:.4,background:e?"white":"#F8FAFC",boxShadow:e?"0 1px 2px 0 rgba(0, 0, 0, 0.05)":"none"}),skeletonContainer:{marginTop:"104px",gridColumnStart:1,gridRowStart:1,alignSelf:"center"}};return m("div",{style:n.host,children:m("div",{style:n.shareContainer,children:[m("div",{style:n.controlsRow,children:[m("div",{style:n.monitorIconContainer,children:m("svg",{style:n.monitorIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[m("rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",ry:"2"}),m("line",{x1:"8",x2:"16",y1:"21",y2:"21"}),m("line",{x1:"12",x2:"12",y1:"17",y2:"21"})]})}),m("div",{style:n.tabSelector,children:[m("button",{style:n.tabButton(!1),children:"Tab"}),m("button",{style:n.tabButton(!0),children:"Window"})]})]}),m("div",{style:n.skeletonContainer,children:m(Hx,{})})]})})}function qx({session:n,speakingState:e,onAction:t}){return m(Di,{title:"Connect your screen",subtitle:"Watch for the prompt in your browser",agentName:n.agentName||"Obi",buttonText:"Share screen",speakingState:e,description:`${n.agentName||"Obi"} will guide you through ${n.appName||"the app"} by watching your screen.`,centerVisual:m(Wx,{}),actionDisabled:!0,onAction:t})}function Kx({session:n,speakingState:e,spectrum:t,onAction:i}){return m(Di,{title:"Overview",subtitle:`${n.agentName||"Obi"} will start your tutorial in a moment`,agentName:n.agentName||"Obi",speakingState:e,description:`Get ready to explore ${n.appName||"the app"} with ${n.agentName||"Obi"}.`,centerVisual:m(lm,{spectrum:t}),actionDisabled:!0,onAction:i})}function $x({id:n,name:e,description:t,duration:i=10,order:r=0,selected:s=!1,completed:a=!1,onClick:o}){return m("div",{className:`course-container ${s?"selected":""}`,onClick:()=>{o==null||o({id:n,name:e,description:t,duration:i,order:r})},children:[m("div",{className:"header-row",children:[m("h2",{className:"course-title",children:e}),a&&m("span",{className:"duration",children:"Completed"})]}),t&&m("p",{className:"course-description",children:t})]})}function Yx({courses:n=[],selectedCourseId:e=null,loading:t=!1,error:i="",onCourseSelect:r}){const[s,a]=X(""),o=u=>{const d=u.currentTarget;a(d.value)},c=u=>{r==null||r(u)};if(t)return m("div",{className:"loading",children:"Loading..."});if(i)return m("div",{className:"error",children:i});if(!n||n.length===0)return m("div",{className:"empty",children:"No courses available"});const l=n.filter(u=>u.name.toLowerCase().includes(s.toLowerCase())||(u.description||"").toLowerCase().includes(s.toLowerCase()));return m("div",{className:"tour-select",children:[m("div",{className:"controls",children:[m("div",{className:"tabs",children:m("button",{className:"tab active",children:"All"})}),m("div",{className:"filter",children:[m("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m("path",{d:"M10.0417 8.75002H9.42087L9.20004 8.53502C9.96921 7.63585 10.4417 6.47502 10.4417 5.20835C10.4417 2.56085 8.32254 0.441681 5.67504 0.441681C3.02754 0.441681 0.908374 2.56085 0.908374 5.20835C0.908374 7.85585 3.02754 9.97502 5.67504 9.97502C6.94171 9.97502 8.10254 9.50252 9.00171 8.73335L9.22671 8.95418V9.57502L13.2167 13.5592L14.375 12.4008L10.0417 8.75002ZM5.67504 8.75002C3.72754 8.75002 2.15837 7.18085 2.15837 5.20835C2.15837 3.23585 3.72754 1.66668 5.67504 1.66668C7.62254 1.66668 9.19171 3.23585 9.19171 5.20835C9.19171 7.18085 7.62254 8.75002 5.67504 8.75002Z",fill:"#6B7280"})}),m("input",{type:"text",placeholder:"Search...",value:s,onInput:o})]})]}),m("div",{className:"course-grid",children:l.sort((u,d)=>(u.order||0)-(d.order||0)).map(u=>{const d=u.id===e;return m($x,{id:u.id,name:u.name,description:u.description||"",duration:u.duration,order:u.order||0,completed:u.completed,selected:d,onClick:c},u.id)})})]})}function Xx({open:n,courses:e=[],loading:t=!1,error:i="",title:r="AI Coach",productName:s,onClose:a,onCourseSelect:o,onCourseHighlight:c}){const[l,u]=X(null),d=f=>{u(f),c==null||c(f)},h=()=>{l&&o&&o(l)};return m(Ip,{open:n,onClose:a,size:"large",preventOutsideClick:!0,children:m("div",{className:"tour-select-modal-container",children:[m("div",{className:"header",children:[m("div",{className:"icon",style:{color:"white"},children:m(Kp,{})}),m("div",{className:"title-section",children:t?m(Ke,{children:[m("div",{className:"skeleton skeleton-title"}),m("div",{className:"skeleton skeleton-subtitle"})]}):m(Ke,{children:[m("h1",{children:r}),m("p",{className:"subtitle",children:["Start a tutorial and learn how to use ",s," through an interactive conversation."]})]})})]}),m("div",{className:"course-list-wrapper",children:m(Yx,{courses:e,selectedCourseId:(l==null?void 0:l.id)||"",loading:t,error:i,onCourseSelect:d})}),m("div",{className:"footer",children:[m("button",{className:"obi-button footer-button",onClick:h,disabled:!l,children:[m("span",{children:"Get started"}),m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",children:m("path",{d:"M3.83325 8.00065H13.1666M13.1666 8.00065L8.49992 3.33398M13.1666 8.00065L8.49992 12.6673",stroke:l?"#FAFAFA":"#999","stroke-width":"1.33","stroke-linecap":"round","stroke-linejoin":"round"})})]}),m("p",{className:"footer-text",children:"Sessions are securely recorded for quality improvement purposes."})]})]})})}function Jx({session:n,sessionState:e,speakingState:t,spectrum:i,onStart:r,onContinue:s,onShareMicrophone:a,onShareScreen:o,onModalChange:c}){const[l,u]=X(null);function d(f){l!==f&&(c==null||c(f),u(f))}function h(){e==="connecting"||e==="connected"||!e?r==null||r():e==="volume-check"||e==="mic-check"?s==null||s():e==="mic-share"?a==null||a():e==="screen-share"&&(o==null||o())}return pa(()=>{switch(e){case null:case"connecting":case"connected":return d("session-start"),m(Bx,{session:n,speakingState:t,onAction:h});case"volume-check":return d("voice-guidance"),m(zx,{session:n,speakingState:t,spectrum:i,onAction:h});case"mic-check":return d("overview"),m(Kx,{session:n,speakingState:t,spectrum:i,onAction:h});case"mic-share":return d("share-mic"),m(Vx,{session:n,speakingState:t,onAction:h});case"screen-share":return d("share-screen"),m(qx,{session:n,speakingState:t,onAction:h});case"navigate":return d("navigate"),m(px,{session:n,speakingState:t,onAction:h});default:return null}},[e,t,r,s,a,o])}function Qx(n){const{session:e,sessionState:t,speakingState:i,spectrum:r,onClose:s,onStart:a,onContinue:o,onShareMicrophone:c,onShareScreen:l,onModalChange:u}=n,[d,h]=X(null);function f(v){u==null||u(v),h(v)}function g(v){s(v,d),h(null)}const p=(n.open??!0)&&(!t||t==="connecting"||t==="connected"||t==="volume-check"||t==="mic-check"||t==="mic-share"||t==="screen-share"||t==="navigate");return m(lx,{open:p,onClose:g,preventOutsideClick:!0,children:()=>m(Jx,{session:e,sessionState:t,speakingState:i,spectrum:r,onStart:a,onContinue:o,onShareMicrophone:c,onShareScreen:l,onModalChange:f})})}const Zx={identify:()=>{},track:()=>{},page:()=>{},reset:()=>{}};function ni(){return Zx}const ew=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,um="9.23.0",Ui=globalThis;function tw(n,e,t=Ui){const i=t.__SENTRY__=t.__SENTRY__||{},r=i[um]=i[um]||{};return r[n]||(r[n]=e())}const nw="Sentry Logger ",dm=["debug","info","warn","error","log","assert","trace"],hm={};function iw(n){if(!("console"in Ui))return n();const e=Ui.console,t={},i=Object.keys(hm);i.forEach(r=>{const s=hm[r];t[r]=e[r],e[r]=s});try{return n()}finally{i.forEach(r=>{e[r]=t[r]})}}function rw(){let n=!1;const e={enable:()=>{n=!0},disable:()=>{n=!1},isEnabled:()=>n};return ew?dm.forEach(t=>{e[t]=(...i)=>{n&&iw(()=>{Ui.console[t](`${nw}[${t}]:`,...i)})}}):dm.forEach(t=>{e[t]=()=>{}}),e}tw("logger",rw);const fm=1e3;function sw(){return Date.now()/fm}function aw(){const{performance:n}=Ui;if(!(n!=null&&n.now))return sw;const e=Date.now()-n.now(),t=n.timeOrigin==null?e:n.timeOrigin;return()=>(t+n.now())/fm}aw();const pm=50,Bi="?",mm=/\(error: (.*)\)/,gm=/captureMessage|captureException/;function ow(...n){const e=n.sort((t,i)=>t[0]-i[0]).map(t=>t[1]);return(t,i=0,r=0)=>{const s=[],a=t.split(`
55
- `);for(let o=i;o<a.length;o++){const c=a[o];if(c.length>1024)continue;const l=mm.test(c)?c.replace(mm,"$1"):c;if(!l.match(/\S*Error: /)){for(const u of e){const d=u(l);if(d){s.push(d);break}}if(s.length>=pm+r)break}}return cw(s.slice(r))}}function cw(n){if(!n.length)return[];const e=Array.from(n);return/sentryWrapped/.test(Sa(e).function||"")&&e.pop(),e.reverse(),gm.test(Sa(e).function||"")&&(e.pop(),gm.test(Sa(e).function||"")&&e.pop()),e.slice(0,pm).map(t=>({...t,filename:t.filename||Sa(e).filename,function:t.function||Bi}))}function Sa(n){return n[n.length-1]||{}}var vm;(function(n){n[n.PENDING=0]="PENDING";const e=1;n[n.RESOLVED=e]="RESOLVED";const t=2;n[n.REJECTED=t]="REJECTED"})(vm||(vm={})),Ui._sentryClientToLogBufferMap=new WeakMap,typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;const lw=30,uw=50;function Zc(n,e,t,i){const r={filename:n,function:e==="<anonymous>"?Bi:e,in_app:!0};return t!==void 0&&(r.lineno=t),i!==void 0&&(r.colno=i),r}const dw=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,hw=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,fw=/\((\S*)(?::(\d+))(?::(\d+))\)/,pw=n=>{const e=dw.exec(n);if(e){const[,i,r,s]=e;return Zc(i,Bi,+r,+s)}const t=hw.exec(n);if(t){if(t[2]&&t[2].indexOf("eval")===0){const s=fw.exec(t[2]);s&&(t[2]=s[1],t[3]=s[2],t[4]=s[3])}const[i,r]=bm(t[1]||Bi,t[2]);return Zc(r,i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},mw=[lw,pw],gw=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,vw=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;ow(...[mw,[uw,n=>{const e=gw.exec(n);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const r=vw.exec(e[3]);r&&(e[1]=e[1]||"eval",e[3]=r[1],e[4]=r[2],e[5]="")}let t=e[3],i=e[1]||Bi;return[i,t]=bm(i,t),Zc(t,i,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}]]);const bm=(n,e)=>{const t=n.indexOf("safari-extension")!==-1,i=n.indexOf("safari-web-extension")!==-1;return t||i?[n.indexOf("@")!==-1?n.split("@")[0]:Bi,t?`safari-extension:${e}`:`safari-web-extension:${e}`]:[n,e]};typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function bw(n){let e=n.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*\*/g,"__DOUBLE_STAR__").replace(/\*/g,"[^/]*").replace(/__DOUBLE_STAR__/g,".*").replace(/\?/g,"[^/]");return new RegExp(`^${e}$`,"i")}function yw(n,e){if(!e||e.length===0)return!1;const t=n.replace(/^https?:\/\//,"").replace(/\/$/,"");return e.some(i=>{try{const r=bw(i);return r.test(t)||r.test(n)}catch(r){return console.warn(`Invalid URL pattern: ${i}`,r),!1}})}function Ca(n){if(!n||n.length===0)return!1;const e=window.location.origin+window.location.pathname;return yw(e,n)}function Tw(n,e,t,i){function r(s){return s instanceof t?s:new t(function(a){a(s)})}return new(t||(t=Promise))(function(s,a){function o(u){try{l(i.next(u))}catch(d){a(d)}}function c(u){try{l(i.throw(u))}catch(d){a(d)}}function l(u){u.done?s(u.value):r(u.value).then(o,c)}l((i=i.apply(n,e||[])).next())})}function kw(n,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=o(0),a.throw=o(1),a.return=o(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(l){return function(u){return c([l,u])}}function c(l){if(i)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(t=0)),t;)try{if(i=1,r&&(s=l[0]&2?r.return:l[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,l[1])).done)return s;switch(r=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,r=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){t.label=l[1];break}if(l[0]===6&&t.label<s[1]){t.label=s[1],s=l;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(l);break}s[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(n,t)}catch(u){l=[6,u],r=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;for(var ym="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wr=typeof Uint8Array>"u"?[]:new Uint8Array(256),xa=0;xa<ym.length;xa++)wr[ym.charCodeAt(xa)]=xa;for(var Sw=function(n){var e=n.length*.75,t=n.length,i,r=0,s,a,o,c;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),u=Array.isArray(l)?l:new Uint8Array(l);for(i=0;i<t;i+=4)s=wr[n.charCodeAt(i)],a=wr[n.charCodeAt(i+1)],o=wr[n.charCodeAt(i+2)],c=wr[n.charCodeAt(i+3)],u[r++]=s<<2|a>>4,u[r++]=(a&15)<<4|o>>2,u[r++]=(o&3)<<6|c&63;return l},Cw=function(n){for(var e=n.length,t=[],i=0;i<e;i+=2)t.push(n[i+1]<<8|n[i]);return t},xw=function(n){for(var e=n.length,t=[],i=0;i<e;i+=4)t.push(n[i+3]<<24|n[i+2]<<16|n[i+1]<<8|n[i]);return t},ii=5,el=6+5,tl=2,ww=el-ii,Tm=65536>>ii,_w=1<<ii,nl=_w-1,Ew=1024>>ii,Rw=Tm+Ew,Pw=Rw,Iw=32,Ow=Pw+Iw,Aw=65536>>el,Nw=1<<ww,Mw=Nw-1,km=function(n,e,t){return n.slice?n.slice(e,t):new Uint16Array(Array.prototype.slice.call(n,e,t))},Lw=function(n,e,t){return n.slice?n.slice(e,t):new Uint32Array(Array.prototype.slice.call(n,e,t))},Dw=function(n,e){var t=Sw(n),i=Array.isArray(t)?xw(t):new Uint32Array(t),r=Array.isArray(t)?Cw(t):new Uint16Array(t),s=24,a=km(r,s/2,i[4]/2),o=i[5]===2?km(r,(s+i[4])/2):Lw(i,Math.ceil((s+i[4])/4));return new Uw(i[0],i[1],i[2],i[3],a,o)},Uw=function(){function n(e,t,i,r,s,a){this.initialValue=e,this.errorValue=t,this.highStart=i,this.highValueIndex=r,this.index=s,this.data=a}return n.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>ii],t=(t<<tl)+(e&nl),this.data[t];if(e<=65535)return t=this.index[Tm+(e-55296>>ii)],t=(t<<tl)+(e&nl),this.data[t];if(e<this.highStart)return t=Ow-Aw+(e>>el),t=this.index[t],t+=e>>ii&Mw,t=this.index[t],t=(t<<tl)+(e&nl),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},n}(),Sm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Bw=typeof Uint8Array>"u"?[]:new Uint8Array(256),wa=0;wa<Sm.length;wa++)Bw[Sm.charCodeAt(wa)]=wa;var Cm=null;function Fw(n){return Tw(this,void 0,void 0,function(){var e;return kw(this,function(t){switch(t.label){case 0:return Cm!==null?[3,2]:[4,n()];case 1:if(e=t.sent(),!e.base64||!e.byte_length)throw new Error("Invalid graphemes response");Cm=Dw(e.base64,e.byte_length),t.label=2;case 2:return[2]}})})}for(var xm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",jw=typeof Uint8Array>"u"?[]:new Uint8Array(256),_a=0;_a<xm.length;_a++)jw[xm.charCodeAt(_a)]=_a;function Vw(n,e,t,i){function r(s){return s instanceof t?s:new t(function(a){a(s)})}return new(t||(t=Promise))(function(s,a){function o(u){try{l(i.next(u))}catch(d){a(d)}}function c(u){try{l(i.throw(u))}catch(d){a(d)}}function l(u){u.done?s(u.value):r(u.value).then(o,c)}l((i=i.apply(n,e||[])).next())})}function Gw(n,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=o(0),a.throw=o(1),a.return=o(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(l){return function(u){return c([l,u])}}function c(l){if(i)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(t=0)),t;)try{if(i=1,r&&(s=l[0]&2?r.return:l[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,l[1])).done)return s;switch(r=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,r=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){t.label=l[1];break}if(l[0]===6&&t.label<s[1]){t.label=s[1],s=l;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(l);break}s[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(n,t)}catch(u){l=[6,u],r=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;for(var wm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_r=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ea=0;Ea<wm.length;Ea++)_r[wm.charCodeAt(Ea)]=Ea;for(var zw=function(n){var e=n.length*.75,t=n.length,i,r=0,s,a,o,c;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),u=Array.isArray(l)?l:new Uint8Array(l);for(i=0;i<t;i+=4)s=_r[n.charCodeAt(i)],a=_r[n.charCodeAt(i+1)],o=_r[n.charCodeAt(i+2)],c=_r[n.charCodeAt(i+3)],u[r++]=s<<2|a>>4,u[r++]=(a&15)<<4|o>>2,u[r++]=(o&3)<<6|c&63;return l},Hw=function(n){for(var e=n.length,t=[],i=0;i<e;i+=2)t.push(n[i+1]<<8|n[i]);return t},Ww=function(n){for(var e=n.length,t=[],i=0;i<e;i+=4)t.push(n[i+3]<<24|n[i+2]<<16|n[i+1]<<8|n[i]);return t},ri=5,il=6+5,rl=2,qw=il-ri,_m=65536>>ri,Kw=1<<ri,sl=Kw-1,$w=1024>>ri,Yw=_m+$w,Xw=Yw,Jw=32,Qw=Xw+Jw,Zw=65536>>il,e_=1<<qw,t_=e_-1,Em=function(n,e,t){return n.slice?n.slice(e,t):new Uint16Array(Array.prototype.slice.call(n,e,t))},n_=function(n,e,t){return n.slice?n.slice(e,t):new Uint32Array(Array.prototype.slice.call(n,e,t))},i_=function(n,e){var t=zw(n),i=Array.isArray(t)?Ww(t):new Uint32Array(t),r=Array.isArray(t)?Hw(t):new Uint16Array(t),s=24,a=Em(r,s/2,i[4]/2),o=i[5]===2?Em(r,(s+i[4])/2):n_(i,Math.ceil((s+i[4])/4));return new r_(i[0],i[1],i[2],i[3],a,o)},r_=function(){function n(e,t,i,r,s,a){this.initialValue=e,this.errorValue=t,this.highStart=i,this.highValueIndex=r,this.index=s,this.data=a}return n.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>ri],t=(t<<rl)+(e&sl),this.data[t];if(e<=65535)return t=this.index[_m+(e-55296>>ri)],t=(t<<rl)+(e&sl),this.data[t];if(e<this.highStart)return t=Qw-Zw+(e>>il),t=this.index[t],t+=e>>ri&t_,t=this.index[t],t=(t<<rl)+(e&sl),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},n}(),Rm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s_=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ra=0;Ra<Rm.length;Ra++)s_[Rm.charCodeAt(Ra)]=Ra;var Pm=null;function a_(n){return Vw(this,void 0,void 0,function(){var e;return Gw(this,function(t){switch(t.label){case 0:return Pm!==null?[3,2]:[4,n()];case 1:if(e=t.sent(),!e.base64||!e.byte_length)throw console.error("invalid graphemes response",e),new Error("Invalid graphemes response");Pm=i_(e.base64,e.byte_length),t.label=2;case 2:return[2]}})})}const o_=`:root,:host{--obi-modal-padding: 32px 48px;--obi-modal-background-color: #FFFFFF;--obi-modal-border-radius: 24px;--obi-modal-shadow: 0px 1px 2px rgba(0, 0, 0, .05);--obi-modal-xsmall-width: 320px;--obi-modal-xsmall-height: 240px;--obi-modal-small-width: 480px;--obi-modal-small-height: 400px;--obi-modal-medium-width: 640px;--obi-modal-medium-height: 372px;--obi-modal-large-width: 1200px;--obi-modal-large-height: 700px;--obi-font-family: "Satoshi", sans-serif;--obi-color-primary: #9500FF;--obi-color-primary-50: color-mix(in srgb, var(--obi-color-primary) 50%, white 50%);--obi-color-primary-30: color-mix(in srgb, var(--obi-color-primary) 30%, white 70%);--obi-color-tint: color-mix(in srgb, var(--obi-color-primary) 5%, white 95%);--obi-color-text: #18181B;--obi-course-color-selected: var(--obi-color-primary-50);--obi-course-color-tint: var(--obi-color-tint);--obi-course-progress-step-completed: #B3B3B3;--obi-course-progress-step-incomplete: #D9D9D9;--obi-course-progress-text-color: #757575;font-family:var(--obi-font-family);color:var(--obi-color-text)}.obi-button{font-family:var(--obi-font-family);color:var(--obi-color-text)}dialog{margin:auto;padding:0;border:none;border-radius:var(--obi-modal-border-radius);box-shadow:var(--obi-modal-shadow);background:var(--obi-modal-background-color);box-sizing:border-box}dialog>.modal-content{padding:var(--obi-modal-padding);box-sizing:border-box}dialog,dialog.modal-medium,dialog>.modal-content,dialog.modal-medium>.modal-content{width:var(--obi-modal-medium-width);min-height:var(--obi-modal-medium-height)}dialog.modal-xsmall,dialog.modal-xsmall>.modal-content{width:var(--obi-modal-xsmall-width);min-height:var(--obi-modal-xsmall-height)}dialog.modal-small,dialog.modal-small>.modal-content{width:var(--obi-modal-small-width);min-height:var(--obi-modal-small-height)}dialog.modal-large,dialog.modal-large>.modal-content{width:var(--obi-modal-large-width);min-height:var(--obi-modal-large-height)}dialog::backdrop{background:rgba(0,0,0,.5)}.tour-content{display:block;width:100%;height:100%}.tour-content .container{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;padding:0;width:100%;height:100%}.tour-content .header{display:block;flex-grow:1;flex-direction:column;align-items:center;padding:0;width:100%;margin-bottom:16px}.tour-content .title{width:100%;font-family:Inter,sans-serif;font-style:normal;font-weight:700;font-size:24px;line-height:30px;text-align:center;color:#18181b;margin:0;padding:0}.tour-content .subtitle{width:100%;font-family:Inter,sans-serif;font-style:normal;font-weight:400;font-size:16px;line-height:140%;text-align:center;letter-spacing:-.01em;color:#18181b;margin:0}.tour-content .visual{flex-grow:0;flex-shrink:0;display:flex;align-items:center;justify-content:center;position:relative;margin-bottom:24px}.tour-content .visual.glow{width:390px;border-radius:15px;background-color:var(--obi-color-tint)}.tour-content .description{height:45px;width:100%;font-family:Inter,sans-serif;font-style:normal;font-weight:400;font-size:16px;color:#757575!important;line-height:140%;text-align:center;letter-spacing:-.01em;color:#18181b;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.tour-content .button-container{flex-grow:0;display:flex;flex-direction:column;align-items:center;gap:16px;width:100%}.tour-content .action-button{box-sizing:border-box;display:flex;flex-direction:row;justify-content:center;align-items:center;padding:12px;gap:8px;height:40px;background:#303030;border:1px solid #303030;border-radius:4px;cursor:pointer;text-decoration:none}.tour-content .action-button.disabled{opacity:.6;cursor:not-allowed}.tour-content .button-text{height:16px;font-family:Inter,sans-serif;font-style:normal;font-weight:500;font-size:16px;line-height:100%;color:#fbf3ff}.tour-content.voice-guidance-content .visual .voice-guidance-visual-mobile{display:none}.tour-content.voice-guidance-content .description{height:auto;min-height:45px;display:block;overflow:visible;text-overflow:unset;-webkit-line-clamp:unset;-webkit-box-orient:unset}.tour-content.voice-guidance-content .voice-guidance-copy,.tour-content.voice-guidance-content .voice-guidance-copy-desktop,.tour-content.voice-guidance-content .voice-guidance-copy-mobile{display:block}.tour-content.voice-guidance-content .voice-guidance-copy-mobile,.tour-content.share-mic-content .visual .share-mic-visual-mobile{display:none}.tour-content.share-mic-content .description{height:auto;min-height:45px;display:block;overflow:visible;text-overflow:unset;-webkit-line-clamp:unset;-webkit-box-orient:unset}.tour-content.share-mic-content .share-mic-copy,.tour-content.share-mic-content .share-mic-copy-desktop,.tour-content.share-mic-content .share-mic-copy-mobile{display:block}.tour-content.share-mic-content .share-mic-copy-mobile{display:none}.tour.content-area{height:100%;flex:1;display:flex;flex-direction:column}.tour-footer{width:100%!important;text-align:center;display:flex;align-items:flex-end;justify-content:center;font-family:Inter,sans-serif;font-size:8px;font-weight:200;margin-top:20px}.session-start-content .description{height:48px}@media (max-width: 600px){dialog,dialog.modal-xsmall,dialog.modal-small,dialog.modal-medium,dialog.modal-large,dialog>.modal-content,dialog.modal-xsmall>.modal-content,dialog.modal-small>.modal-content,dialog.modal-medium>.modal-content,dialog.modal-large>.modal-content{width:min(280px,100vw - 32px);max-width:100vw}dialog>.modal-content{padding:32px;min-height:412px;display:flex;flex-direction:column}dialog>.modal-content>.tour.content-area{flex:1}.session-start-content .description{margin-top:18px}.tour-content .title{font-size:20px}.tour-content .subtitle{font-size:14px}.tour-content .description{font-size:13px;height:auto;overflow:visible;text-overflow:unset;display:block;-webkit-line-clamp:unset;-webkit-box-orient:unset}.tour-content .button-text{font-size:14px}.tour-content .visual{display:none}.tour-content.session-start-content .visual{display:flex;flex-shrink:0}.tour-content.session-start-content .obi-static-voice{height:auto}.tour-content.session-start-content .obi-static-voice-visual-title{margin-bottom:8px}.tour-content.session-start-content .obi-static-voice .obi-pill.container{display:none}.tour-content.session-start-content{display:flex;flex-direction:column;flex:1}.tour-content.session-start-content .container{flex:1;width:100%;display:flex;flex-direction:column;align-items:center;min-height:0}.tour-content.session-start-content .header{width:100%;flex:1;display:flex;flex-direction:column;margin-bottom:16px;min-height:0}.tour-content.session-start-content .description{flex:1;width:100%;min-height:0}.tour-content.session-start-content .button-container,.tour-content.session-start-content .tour-footer{width:100%}.tour-content.voice-guidance-content .visual{display:flex;justify-content:center;margin-bottom:24px}.tour-content.voice-guidance-content .visual.glow{width:auto;padding:0;border-radius:0;background:transparent}.tour-content.voice-guidance-content .visual .voice-guidance-visual-desktop{display:none}.tour-content.voice-guidance-content .visual .voice-guidance-visual-mobile{display:flex;justify-content:center;align-items:center}.tour-content.voice-guidance-content .voice-guidance-copy-desktop{display:none}.tour-content.voice-guidance-content .voice-guidance-copy-mobile{display:block}.tour-content.voice-guidance-content .header{display:flex;flex-direction:column;flex-grow:1;justify-content:flex-start;margin-bottom:0}.tour-content.voice-guidance-content .header .description{flex-grow:1;display:flex;text-align:center;justify-content:center}.tour-content.voice-guidance-content .button-container{margin-top:0;flex:0 0 25%;height:auto;min-height:auto;width:100%;align-items:center;justify-content:flex-start}.tour-content.voice-guidance-content .button-container button{align-self:center!important}.tour-content.voice-guidance-content .button-container .action-button{align-self:flex-start}.tour-content.share-mic-content .visual{display:flex;justify-content:center;margin-bottom:24px}.tour-content.share-mic-content .visual.glow{width:auto;padding:0;border-radius:0;background:transparent}.tour-content.share-mic-content .visual .share-mic-visual-desktop{display:none}.tour-content.share-mic-content .visual .share-mic-visual-mobile{display:flex;justify-content:center;align-items:center}.tour-content.share-mic-content .share-mic-copy-desktop{display:none}.tour-content.share-mic-content .share-mic-copy-mobile{display:block}.tour-content.share-mic-content .title{margin-bottom:4px}.tour-content.share-mic-content .header{display:flex;flex-direction:column;flex-grow:1;justify-content:flex-start;margin-bottom:0}.tour-content.share-mic-content .header .description{flex-grow:1;display:flex;text-align:center;justify-content:center}.tour-content.share-mic-content .button-container{margin-top:0;flex:0 0 20%;height:auto;min-height:auto;width:100%;align-items:center;justify-content:flex-start}.tour-content.share-mic-content .button-container button{align-self:center!important}.tour-content.share-mic-content .button-container .action-button{align-self:flex-start}}.obi-close-button{position:absolute;top:24px;right:24px;width:24px;height:24px;cursor:pointer;border:none;background:none;padding:0;display:flex;align-items:center;justify-content:center;z-index:1;outline:none}.obi-close-button:focus{outline:none!important}@media (max-width: 600px){.obi-close-button{top:10px;right:10px}}.obi-pill.container{width:96px;height:30px;display:flex;align-items:center;justify-content:center}.obi-pill.container .pill{display:flex;align-items:center;justify-content:center;width:48px;height:6px;opacity:.7;border-radius:3px;background-color:var(--obi-color-primary);transition:width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out}.obi-pill.container .pill.button{cursor:pointer}.obi-pill.container.user-speaking .pill{background-color:var(--obi-color-primary-30)}.obi-pill.container.active .pill{width:96px;height:30px;border-radius:15px;opacity:1}.obi-pill.container.busy,.obi-pill.container.busy .pill{width:220px}.obi-pill2.container{display:flex;align-items:center;justify-content:center}.obi-pill2.container .pill{display:flex;align-items:center;justify-content:center;min-width:48px;max-width:48px;height:6px;opacity:.7;border-radius:3px;border:1px solid #FFFFFF1F;background-color:var(--obi-color-primary);transform:translateY(0);overflow:hidden;white-space:nowrap;flex:0 0 auto;box-sizing:border-box;padding-left:0;padding-right:0;transition:max-width .15s ease-in-out,min-width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out,padding-left .15s ease-in-out,padding-right .15s ease-in-out}.obi-pill2.container .pill.button{cursor:pointer}.obi-pill2.container:not(.active){transition:height 0s linear .15s;height:6px}.obi-pill2.container:not(.active) .pill{transform:translateY(12px);transition:transform 0s linear .15s,max-width .15s ease-in-out,min-width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out,padding-left .15s ease-in-out,padding-right .15s ease-in-out}.obi-pill2.container.active{transition:none;height:30px}.obi-pill2.container.active .pill{transition:transform 0s,max-width .15s ease-in-out,min-width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out,padding-left .15s ease-in-out,padding-right .15s ease-in-out;max-width:1000px;height:30px;border-radius:15px;opacity:1;padding-left:14px;padding-right:14px}.obi-pill2.container.user-speaking .pill{background-color:var(--obi-color-primary-30)}.obi-pill2.container:not(.active) .pill .text{opacity:0;animation:none}.obi-pill-up.container{display:flex;align-items:flex-end;justify-content:center}.obi-pill-up.container .pill{display:flex;align-items:center;justify-content:center;min-width:48px;max-width:48px;height:6px;opacity:.7;border-radius:3px;border:1px solid #FFFFFF1F;background-color:var(--obi-color-primary);overflow:hidden;white-space:nowrap;flex:0 0 auto;box-sizing:border-box;padding-left:0;padding-right:0;transition:max-width .15s ease-in-out,min-width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out,padding-left .15s ease-in-out,padding-right .15s ease-in-out}.obi-pill-up.container .pill.button{cursor:pointer}.obi-pill-up.container:not(.active){transition:height 0s linear .15s;height:6px}.obi-pill-up.container:not(.active) .pill{transition:max-width .15s ease-in-out,min-width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out,padding-left .15s ease-in-out,padding-right .15s ease-in-out}.obi-pill-up.container.active{transition:none;height:30px}.obi-pill-up.container.active .pill{transition:max-width .15s ease-in-out,min-width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out,padding-left .15s ease-in-out,padding-right .15s ease-in-out;max-width:1000px;height:30px;border-radius:15px;opacity:1;padding-left:14px;padding-right:14px}.obi-pill-up.container.user-speaking .pill{background-color:var(--obi-color-primary-30)}.obi-pill-up.container:not(.active) .pill .text{opacity:0;animation:none}.obi-equaliser{display:flex;align-items:center;gap:2px;height:32px}.obi-equaliser .column{position:relative;display:flex;align-items:center;justify-content:center;width:5px;height:100%}.obi-equaliser .bar{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:3px;border-radius:2px;z-index:1}.obi-panel{box-sizing:border-box;padding:24px;background-color:#fff;box-shadow:0 16px 32px -4px #0000001f,0 4px 8px -2px #00000014,inset 0 1px #fff9;border-radius:12px}.obi-popout{position:relative;display:inline-block}.obi-popout .obi-popout-target{cursor:pointer;display:inline-block}.obi-popout .content{position:absolute;background-color:#fff0;z-index:100;animation:popout-appear .15s ease-out}@keyframes popout-appear{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.obi-round-button-popout{z-index:600}.obi-round-button{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;padding:0;box-sizing:border-box;background-color:#fff;border:1px solid #D9D9D9;box-shadow:none}.obi-round-button:hover{cursor:pointer}.obi-round-button:disabled{box-shadow:none;background-color:#f0f0f0;color:#999;cursor:not-allowed!important;pointer-events:none}.obi-round-button-title{padding:8px 16px;border-radius:12px;background-color:#fff;color:#000;font-size:14px;font-weight:400;white-space:nowrap;box-shadow:0 4px 12px #00000026,0 2px 4px #0000001a;border:1px solid rgba(0,0,0,.08);z-index:5000;pointer-events:none;-webkit-user-select:none;user-select:none;position:relative}.obi-round-button-title:after{content:"";position:absolute;top:100%;left:50%;transform:translate(-50%);width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid white;filter:drop-shadow(0 2px 2px rgba(0,0,0,.1))}.obi-message{display:inline-flex;align-items:center;justify-content:center;padding:0 15px;text-wrap:nowrap;font-size:16px;font-weight:400;height:30px;box-sizing:border-box;background-color:#fff;border-radius:15px;border:1px solid #D9D9D9}.obi-message.clickable{box-shadow:0 4px 6px #0000001a;cursor:pointer}.obi-loading-dots{display:flex;align-items:center;gap:2px;height:32px}.obi-loading-dots .column{position:relative;display:flex;align-items:center;justify-content:center;width:5px;height:100%}.obi-loading-dots .dot{width:3px;height:3px;border-radius:2px;position:relative;z-index:2}.obi-loading-dots .bar{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:3px;border-radius:2px;z-index:1;height:0px;animation:bounce .9s ease-in-out infinite}@keyframes bounce{0%,60%,to{height:0px}30%{height:16px}}.obi-exit-survey{position:relative;width:320px;margin:0 auto;-webkit-backdrop-filter:none;backdrop-filter:none;background:white;z-index:9999}.obi-exit-survey-container{display:flex;flex-direction:column;align-items:center;padding:0;gap:16px;width:272px;flex:none;align-self:stretch}.obi-exit-survey-header{display:flex;flex-direction:column;align-items:flex-start;padding:0;gap:4px;width:272px;flex:none;align-self:stretch}.obi-exit-survey-title{width:272px;height:22px;margin:0;font-family:Satoshi,sans-serif;font-size:16px;font-weight:600;line-height:140%;text-align:center;color:#1e1e1e;flex:none;align-self:stretch}.obi-exit-survey-subtitle{width:272px;height:20px;margin:0;font-family:Satoshi,sans-serif;font-style:normal;font-weight:400;font-size:14px;line-height:140%;text-align:center;color:#757575;flex:none;align-self:stretch}.obi-exit-survey-options{display:flex;flex-direction:column;align-items:flex-start;padding:0;gap:4px;width:272px;flex:none;align-self:stretch}.obi-exit-survey-options textarea{height:80px;resize:none;outline:none}.obi-exit-survey-button{box-sizing:border-box;display:flex;flex-direction:row;justify-content:center;align-items:center;padding:12px;gap:8px;width:272px;height:44px;border-radius:12px;cursor:pointer;font-family:Satoshi,sans-serif;font-style:normal;font-weight:400;font-size:14px;line-height:140%;flex:none;align-self:stretch;transition:all .2s ease}.obi-exit-survey-button:hover{transform:translateY(-1px);box-shadow:0 4px 8px #0000001a}.obi-exit-survey-button:active{transform:translateY(0)}.obi-exit-survey-button-continue{background:rgba(255,255,255);border:1px solid rgba(217,217,217);color:#1e1e1e}.obi-exit-survey-button-continue:hover{background:rgba(255,255,255);border-color:#d9d9d9}.obi-exit-survey-button-wrap-up{background:#303030;border:1px solid rgba(217,217,217);color:#fff;font-weight:500}.obi-exit-survey-button-wrap-up:hover{background:#404040;border-color:#d9d9d9}.obi-exit-survey-reason-button{background:rgba(255,255,255);border:1px solid rgba(217,217,217);color:#1e1e1e}.obi-exit-survey-reason-button:hover{background:rgba(255,255,255);border-color:#d9d9d9}.obi-exit-survey-reason-button-secondary{display:flex;flex-direction:row;justify-content:center;align-items:center;padding:4px 6px;gap:8px;width:272px;height:28px;border-radius:4px;cursor:pointer;border:none;background:transparent;font-family:Satoshi,sans-serif;font-style:normal;font-weight:400;font-size:14px;line-height:140%;color:#5a5a5a;flex:none;align-self:stretch;transition:all .2s ease}.obi-exit-survey-reason-button-secondary:hover{background:rgba(0,0,0,.05);color:#3a3a3a}.obi-message-input{display:inline-block;position:relative}.obi-message-input .container{width:212px;height:30px;box-sizing:border-box;background:#FFFFFF;border:1px solid var(--obi-color-primary-30);border-radius:15px;display:flex;align-items:center;flex:none;order:2;flex-grow:0;transition:height .3s ease,border-radius .3s ease;animation:expandMessageInput .2s cubic-bezier(.4,0,.2,1) 0s 1 normal both}.obi-message-input.expanded .container{height:auto;min-height:140px;border-radius:15px;align-items:flex-start;padding:8px 0;animation:expandMessageInputWide .2s cubic-bezier(.4,0,.2,1) 0s 1 normal both}.obi-message-input .field{flex:1 1 0;border:none;background:transparent;outline:none;font-family:Satoshi,sans-serif;font-style:normal;font-weight:400;font-size:14px;line-height:18px;color:#000;padding:4px 3px 0 16px;height:100%;box-sizing:border-box;min-width:0;resize:none;overflow:hidden;scrollbar-width:none;transition:padding .3s ease;animation:fadeInInputField .2s cubic-bezier(.4,0,.2,1) 0s 1 normal both}.obi-message-input.expanded .field{height:auto;min-height:120px;padding:4px 16px;overflow-y:auto;line-height:18px}.obi-message-input .field::placeholder{color:#999}.obi-message-input .field:disabled{cursor:not-allowed;opacity:.6}.obi-message-input .send{position:absolute;bottom:3px;right:4px;flex-shrink:0;width:24px;height:24px;background:var(--obi-color-primary);border:none;border-radius:9999px;display:flex;justify-content:center;align-items:center;cursor:pointer;transition:all .3s ease;color:#fff}.obi-message-input.expanded .send{width:28px;height:28px;position:relative;top:0;bottom:0;margin-right:0}.obi-message-input.expanded .button-container{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:8px}.obi-message-input .send:disabled{background:#CCCCCC;cursor:not-allowed;transform:none}.obi-message-input .container:focus-within{border-color:var(--obi-color-primary);box-shadow:0 0 0 2px #9008ff1a}@keyframes expandMessageInput{0%{width:32px}to{width:212px}}@keyframes expandMessageInputWide{0%{width:212px}to{width:340px}}@keyframes fadeInInputField{0%{opacity:0}60%{opacity:0}to{opacity:1}}.obi-course-progress{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:6px;width:100%;min-width:0;height:24px;flex:none;order:1;align-self:stretch;flex-grow:0}.obi-course-progress-steps{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0;gap:2px;width:100%;height:14px;flex:none;order:0;align-self:stretch;flex-grow:0}.obi-course-progress-container{display:flex;flex-direction:column;justify-content:center;align-items:stretch;padding:6px 0;height:100%;flex:1;min-width:0;cursor:pointer}.obi-course-progress-step{width:100%;height:2px;background:var(--obi-course-progress-step-incomplete);border-radius:24px;flex:none;order:0;align-self:stretch;flex-grow:0;cursor:pointer}.obi-course-progress-step.completed{background:var(--obi-course-progress-step-completed)}.obi-course-progress-description{width:100%;height:14px;font-family:var(--obi-font-family);font-style:normal;font-weight:500;font-size:14px;line-height:100%;color:var(--obi-course-progress-text-color);flex:none;order:1;flex-grow:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.obi-course-progress .obi-widget-popout,.obi-course-progress .obi-widget-popout .content{z-index:800}.obi-widget-popout{z-index:400}.obi-widget-panel{display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;min-width:222px;width:min-content;padding:12px;box-sizing:border-box;border-radius:27px;background:white;transition:background .1s ease-out .1s,box-shadow .1s ease-out .1s}.obi-widget-panel:not(.messaging){width:256px}.obi-widget-panel.tool-usage{width:384px}.obi-widget-panel:not(.expanded){background:transparent;border:none;box-shadow:none;transition:background .1s ease-out .1s,border .1s ease-out .1s,box-shadow .1s ease-out .1s}.obi-widget-panel.maximized{transform:translateY(-110px)}.obi-widget-panel .obi-widget{display:flex;align-items:center;min-width:192px;padding-left:58px;box-sizing:border-box;gap:4px}.obi-widget-panel .obi-widget.active.in-plan{padding-left:0}.obi-widget-panel .obi-widget.active.in-plan .obi-round-button{animation:fade-in-button .2s ease-out .15s both}.obi-widget-panel .obi-widget.active .obi-equaliser{animation:fade-in-equaliser .2s ease-out .15s both}@keyframes fade-in-button{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes fade-in-equaliser{0%{opacity:0}to{opacity:1}}.obi-widget-panel .obi-widget-course-progress{display:block;width:100%;max-width:220px;max-height:40px;opacity:1;transform:translateY(0);overflow:visible;position:relative;z-index:800;transition:max-height .3s ease-in-out,opacity .3s ease-in-out,transform .3s ease-in-out}.obi-widget-panel .obi-widget-course-progress.expanded{max-width:330px}@keyframes expand-course-progress{0%{max-height:0;opacity:0;transform:translateY(-10px)}to{max-height:40px;opacity:1;transform:translateY(0)}}.obi-widget-pill-text{font-size:16px;font-weight:400;color:#fff;opacity:0;animation:fade-in-pill-text .3s ease-in-out forwards}@keyframes fade-in-pill-text{0%{opacity:0}40%{opacity:0}to{opacity:1}}.obi-widget-buttons{display:flex;flex-direction:row;gap:4px}.obi-widget-out-of-plan{display:flex;align-items:center;gap:0}.obi-widget-out-of-plan .text{font-size:16px;color:#fff;display:inline-flex;align-items:center;gap:8px;animation:fade-in-pill-text .3s ease-in-out forwards}.obi-widget-out-of-plan .round-button{display:none;animation:fade-in-button .2s ease-out .15s both}.obi-widget-out-of-plan .message{display:none}.obi-widget-out-of-plan.active{gap:0}.obi-widget-out-of-plan.active:hover,.obi-widget-out-of-plan.active.hover{gap:4px}.obi-widget-out-of-plan.active:hover .round-button,.obi-widget-out-of-plan.active:hover .message,.obi-widget-out-of-plan.active.hover .round-button,.obi-widget-out-of-plan.active.hover .message{display:flex}.obi-widget-draggable .obi-widget-panel{cursor:grab}.obi-widget-draggable.dragging .obi-widget-panel{cursor:grabbing;-webkit-user-select:none;user-select:none}.obi-static-voice{height:96px;display:flex;flex-direction:column;align-items:center;justify-content:center}.obi-static-voice-visual-title{font-family:Inter,sans-serif;font-style:normal;font-weight:600;font-size:14px;color:var(--obi-color-primary);background-color:var(--obi-color-tint);padding:8px 12px;border-radius:20px;margin-bottom:24px}.obi-static-voice-visual{display:flex;align-items:center;gap:2px;height:32px}.obi-static-voice-visual .column{position:relative;display:flex;align-items:center;justify-content:center;width:5px;height:100%}.obi-static-voice-visual .bar{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:3px;background-color:#fff;border-radius:2px;z-index:1}.obi-static-voice-visual .bar-1{height:2px}.obi-static-voice-visual .bar-2{height:6px}.obi-static-voice-visual .bar-3{height:10px}.obi-static-voice-visual .bar-4,.obi-static-voice-visual .bar-5{height:16px}.obi-static-voice-visual .bar-6{height:10px}.obi-static-voice-visual .bar-7{height:6px}.obi-static-voice-visual .bar-8{height:2px}@layer components{.share-mic-mobile-visual{width:216px;height:103px;border-radius:12px;background:var(--obi-course-color-tint, var(--obi-color-tint, #F3E3FF));display:flex;align-items:center;justify-content:center}.share-mic-mobile-controls{display:flex;align-items:center;gap:12px;padding:0 12px}.share-mic-mobile-icon{width:52px;height:52px;border-radius:12px;background:#FFFFFF;border:1px solid #E4E4E7;box-shadow:0 2px 4px #0f172a14;display:flex;align-items:center;justify-content:center;color:#111827}.share-mic-mobile-allow{min-width:96px;height:44px;border-radius:10px;border:1px solid #D4D4D8;background:#FFFFFF;box-shadow:0 2px 4px #0f172a14;display:flex;align-items:center;justify-content:center;font-family:Inter,sans-serif;font-size:16px;font-weight:500;color:#111827}}@layer components{.voice-guidance-mobile-visual{width:216px;height:103px;border-radius:12px;background:var(--obi-course-color-tint, var(--obi-color-tint, #F3E3FF));display:flex;align-items:center;justify-content:center}.voice-guidance-mobile-pill{display:flex;align-items:center;justify-content:center;transform:scale(1.25);filter:drop-shadow(0px 12px 25px var(--obi-color-primary-30, rgba(149, 0, 255, .35)))}.voice-guidance-mobile-pill .obi-pill.container{display:flex;align-items:center;justify-content:center}}.tour-select{display:block;font-family:Inter,sans-serif}.course-container{display:flex;padding:20px;align-items:flex-start;gap:8px;height:180px;border-radius:6px;border:1px solid rgba(0,0,0,.6);background:#fff;cursor:pointer;transition:all .2s;flex-direction:column;box-sizing:border-box;overflow:hidden}.course-container:hover{background-color:#f9fafb;border-color:#d1d5db;box-shadow:0 1px 2px #0000000d}.course-container:active{transform:scale(.98)}.course-container.selected{border-radius:6px;border:1px solid var(--obi-course-color-selected);background:var(--obi-course-color-tint)}.course-container.selected:hover{background:var(--obi-course-color-tint)}.header-row{display:flex;justify-content:space-between;align-items:flex-start;align-self:stretch;flex-shrink:0;text-align:left}.course-title{color:#000;font-family:Inter,sans-serif;font-size:20px;font-style:normal;font-weight:500;line-height:100%;letter-spacing:-.2px;margin:0}.duration{display:flex;padding:4px 12px;justify-content:center;align-items:center;gap:8px;border-radius:9999px;background:var(--obi-course-color-tint);color:#000;font-family:Inter,sans-serif;font-size:14px;font-style:normal;font-weight:500;line-height:100%;letter-spacing:-.14px;flex-shrink:0}.course-container.selected .duration{background:#fff}.course-description{flex:1 0 0;color:#0009;font-family:Inter,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:140%;letter-spacing:-.16px;margin:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;text-align:left}.course-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:4px;padding:0;flex:1 0 0;align-self:stretch;min-height:364px}.controls{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.tabs{display:flex;gap:10px}.tab{display:flex;padding:6px 12px;justify-content:center;align-items:center;align-self:stretch;border:none;background:none;cursor:pointer;font-family:Inter,sans-serif;font-size:16px;font-weight:500;color:#0006;border-bottom:2px solid transparent;transition:all .2s}.tab.active{color:#000;border-bottom:2px solid var(--obi-color-primary)}.tab:hover{color:#000}.filter{position:relative;display:flex;align-items:center;width:336px;height:40px}.filter input{color:var(--obi-color-text);caret-color:var(--obi-color-text);padding:8px 12px 8px 36px;border-radius:6px;border:1px solid rgba(0,0,0,.1);background:#fff;font-family:Inter,sans-serif;font-size:14px;line-height:20px;width:100%;height:100%;box-sizing:border-box;outline:none}.filter input:focus{outline:1px solid var(--obi-color-primary);outline-offset:-1px}.filter input::placeholder{color:#0006}.filter svg{position:absolute;left:12px;pointer-events:none}@media (max-width: 767px){.course-grid{grid-template-columns:1fr}}.loading,.error,.empty{display:flex;justify-content:center;align-items:center;margin-top:16px}.error{color:#ef4444}.tour-select-modal-container{display:flex;flex-direction:column;align-items:center;gap:24px;flex:1 0 0;align-self:stretch;font-family:Satoshi,sans-serif;color:#000;text-align:center;max-width:1200px;width:100%;min-height:600px;box-sizing:border-box}.course-list-wrapper{flex:1;overflow-y:auto;width:100%;min-height:0;max-height:424px;padding-right:3px;box-sizing:border-box}.course-list-wrapper::-webkit-scrollbar{width:3px}.course-list-wrapper::-webkit-scrollbar-track{background:transparent}.course-list-wrapper::-webkit-scrollbar-thumb{background-color:#000;border-radius:2px;min-height:20px}.course-list-wrapper::-webkit-scrollbar-thumb:hover{background-color:#333}.header{display:flex;align-items:flex-start;gap:16px;width:100%;text-align:left}.icon{display:flex;width:56px;height:56px;padding:12px;justify-content:center;align-items:center;border-radius:12px;border:1px solid var(--obi-color-primary);background:var(--obi-color-primary);box-sizing:border-box}.icon img{width:32px;height:32px;color:#fff;fill:#fff}.title-section{align-self:stretch;flex:1}.tour-select-modal-container h1{color:#18181b;font-family:Satoshi;font-size:32px;font-style:normal;font-weight:700;line-height:90%;letter-spacing:-.96px;margin:0 0 8px}.subtitle{color:#18181b;font-family:Satoshi;font-size:20px;font-style:normal;font-weight:500;line-height:90%;letter-spacing:-.6px;margin:0}.footer{display:flex;width:360px;flex-direction:column;align-items:center;gap:12px}.footer-button{display:flex;height:48px;padding:16px;justify-content:center;align-items:center;gap:8px;align-self:stretch;border-radius:6px;background:#18181b;border:none;cursor:pointer;color:#fafafa;font-family:Satoshi;font-weight:500;transition:opacity .2s ease}.footer-button:disabled{opacity:.5;cursor:not-allowed}.footer-button:not(:disabled){opacity:1}.footer-button:not(:disabled):hover{background:#27272a}.footer-text{color:#18181b;font-family:Satoshi;font-size:12px;font-style:normal;font-weight:400;line-height:100%;letter-spacing:-.12px;margin:0;text-align:center}.skeleton{background:linear-gradient(90deg,#e5e7eb 25%,#f3f4f6 50%,#e5e7eb 75%);background-size:200% 100%;animation:loading 1.5s infinite;border-radius:4px}@keyframes loading{0%{background-position:200% 0}to{background-position:-200% 0}}.skeleton-title{height:32px;width:60%;margin-bottom:12px}.skeleton-subtitle{height:20px;width:80%}
55
+ `);for(let o=i;o<a.length;o++){const c=a[o];if(c.length>1024)continue;const l=mm.test(c)?c.replace(mm,"$1"):c;if(!l.match(/\S*Error: /)){for(const u of e){const d=u(l);if(d){s.push(d);break}}if(s.length>=pm+r)break}}return cw(s.slice(r))}}function cw(n){if(!n.length)return[];const e=Array.from(n);return/sentryWrapped/.test(Sa(e).function||"")&&e.pop(),e.reverse(),gm.test(Sa(e).function||"")&&(e.pop(),gm.test(Sa(e).function||"")&&e.pop()),e.slice(0,pm).map(t=>({...t,filename:t.filename||Sa(e).filename,function:t.function||Bi}))}function Sa(n){return n[n.length-1]||{}}var vm;(function(n){n[n.PENDING=0]="PENDING";const e=1;n[n.RESOLVED=e]="RESOLVED";const t=2;n[n.REJECTED=t]="REJECTED"})(vm||(vm={})),Ui._sentryClientToLogBufferMap=new WeakMap,typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;const lw=30,uw=50;function Zc(n,e,t,i){const r={filename:n,function:e==="<anonymous>"?Bi:e,in_app:!0};return t!==void 0&&(r.lineno=t),i!==void 0&&(r.colno=i),r}const dw=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,hw=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,fw=/\((\S*)(?::(\d+))(?::(\d+))\)/,pw=n=>{const e=dw.exec(n);if(e){const[,i,r,s]=e;return Zc(i,Bi,+r,+s)}const t=hw.exec(n);if(t){if(t[2]&&t[2].indexOf("eval")===0){const s=fw.exec(t[2]);s&&(t[2]=s[1],t[3]=s[2],t[4]=s[3])}const[i,r]=bm(t[1]||Bi,t[2]);return Zc(r,i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},mw=[lw,pw],gw=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,vw=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;ow(...[mw,[uw,n=>{const e=gw.exec(n);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const r=vw.exec(e[3]);r&&(e[1]=e[1]||"eval",e[3]=r[1],e[4]=r[2],e[5]="")}let t=e[3],i=e[1]||Bi;return[i,t]=bm(i,t),Zc(t,i,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}]]);const bm=(n,e)=>{const t=n.indexOf("safari-extension")!==-1,i=n.indexOf("safari-web-extension")!==-1;return t||i?[n.indexOf("@")!==-1?n.split("@")[0]:Bi,t?`safari-extension:${e}`:`safari-web-extension:${e}`]:[n,e]};typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function bw(n){let e=n.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*\*/g,"__DOUBLE_STAR__").replace(/\*/g,"[^/]*").replace(/__DOUBLE_STAR__/g,".*").replace(/\?/g,"[^/]");return new RegExp(`^${e}$`,"i")}function yw(n,e){if(!e||e.length===0)return!1;const t=n.replace(/^https?:\/\//,"").replace(/\/$/,"");return e.some(i=>{try{const r=bw(i);return r.test(t)||r.test(n)}catch(r){return console.warn(`Invalid URL pattern: ${i}`,r),!1}})}function Ca(n){if(!n||n.length===0)return!1;const e=window.location.origin+window.location.pathname;return yw(e,n)}function Tw(n,e,t,i){function r(s){return s instanceof t?s:new t(function(a){a(s)})}return new(t||(t=Promise))(function(s,a){function o(u){try{l(i.next(u))}catch(d){a(d)}}function c(u){try{l(i.throw(u))}catch(d){a(d)}}function l(u){u.done?s(u.value):r(u.value).then(o,c)}l((i=i.apply(n,e||[])).next())})}function kw(n,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=o(0),a.throw=o(1),a.return=o(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(l){return function(u){return c([l,u])}}function c(l){if(i)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(t=0)),t;)try{if(i=1,r&&(s=l[0]&2?r.return:l[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,l[1])).done)return s;switch(r=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,r=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){t.label=l[1];break}if(l[0]===6&&t.label<s[1]){t.label=s[1],s=l;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(l);break}s[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(n,t)}catch(u){l=[6,u],r=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;for(var ym="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wr=typeof Uint8Array>"u"?[]:new Uint8Array(256),xa=0;xa<ym.length;xa++)wr[ym.charCodeAt(xa)]=xa;for(var Sw=function(n){var e=n.length*.75,t=n.length,i,r=0,s,a,o,c;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),u=Array.isArray(l)?l:new Uint8Array(l);for(i=0;i<t;i+=4)s=wr[n.charCodeAt(i)],a=wr[n.charCodeAt(i+1)],o=wr[n.charCodeAt(i+2)],c=wr[n.charCodeAt(i+3)],u[r++]=s<<2|a>>4,u[r++]=(a&15)<<4|o>>2,u[r++]=(o&3)<<6|c&63;return l},Cw=function(n){for(var e=n.length,t=[],i=0;i<e;i+=2)t.push(n[i+1]<<8|n[i]);return t},xw=function(n){for(var e=n.length,t=[],i=0;i<e;i+=4)t.push(n[i+3]<<24|n[i+2]<<16|n[i+1]<<8|n[i]);return t},ii=5,el=6+5,tl=2,ww=el-ii,Tm=65536>>ii,_w=1<<ii,nl=_w-1,Ew=1024>>ii,Rw=Tm+Ew,Pw=Rw,Iw=32,Ow=Pw+Iw,Aw=65536>>el,Nw=1<<ww,Mw=Nw-1,km=function(n,e,t){return n.slice?n.slice(e,t):new Uint16Array(Array.prototype.slice.call(n,e,t))},Lw=function(n,e,t){return n.slice?n.slice(e,t):new Uint32Array(Array.prototype.slice.call(n,e,t))},Dw=function(n,e){var t=Sw(n),i=Array.isArray(t)?xw(t):new Uint32Array(t),r=Array.isArray(t)?Cw(t):new Uint16Array(t),s=24,a=km(r,s/2,i[4]/2),o=i[5]===2?km(r,(s+i[4])/2):Lw(i,Math.ceil((s+i[4])/4));return new Uw(i[0],i[1],i[2],i[3],a,o)},Uw=function(){function n(e,t,i,r,s,a){this.initialValue=e,this.errorValue=t,this.highStart=i,this.highValueIndex=r,this.index=s,this.data=a}return n.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>ii],t=(t<<tl)+(e&nl),this.data[t];if(e<=65535)return t=this.index[Tm+(e-55296>>ii)],t=(t<<tl)+(e&nl),this.data[t];if(e<this.highStart)return t=Ow-Aw+(e>>el),t=this.index[t],t+=e>>ii&Mw,t=this.index[t],t=(t<<tl)+(e&nl),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},n}(),Sm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Bw=typeof Uint8Array>"u"?[]:new Uint8Array(256),wa=0;wa<Sm.length;wa++)Bw[Sm.charCodeAt(wa)]=wa;var Cm=null;function Fw(n){return Tw(this,void 0,void 0,function(){var e;return kw(this,function(t){switch(t.label){case 0:return Cm!==null?[3,2]:[4,n()];case 1:if(e=t.sent(),!e.base64||!e.byte_length)throw new Error("Invalid graphemes response");Cm=Dw(e.base64,e.byte_length),t.label=2;case 2:return[2]}})})}for(var xm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",jw=typeof Uint8Array>"u"?[]:new Uint8Array(256),_a=0;_a<xm.length;_a++)jw[xm.charCodeAt(_a)]=_a;function Vw(n,e,t,i){function r(s){return s instanceof t?s:new t(function(a){a(s)})}return new(t||(t=Promise))(function(s,a){function o(u){try{l(i.next(u))}catch(d){a(d)}}function c(u){try{l(i.throw(u))}catch(d){a(d)}}function l(u){u.done?s(u.value):r(u.value).then(o,c)}l((i=i.apply(n,e||[])).next())})}function Gw(n,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=o(0),a.throw=o(1),a.return=o(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(l){return function(u){return c([l,u])}}function c(l){if(i)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(t=0)),t;)try{if(i=1,r&&(s=l[0]&2?r.return:l[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,l[1])).done)return s;switch(r=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,r=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){t.label=l[1];break}if(l[0]===6&&t.label<s[1]){t.label=s[1],s=l;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(l);break}s[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(n,t)}catch(u){l=[6,u],r=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;for(var wm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_r=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ea=0;Ea<wm.length;Ea++)_r[wm.charCodeAt(Ea)]=Ea;for(var zw=function(n){var e=n.length*.75,t=n.length,i,r=0,s,a,o,c;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),u=Array.isArray(l)?l:new Uint8Array(l);for(i=0;i<t;i+=4)s=_r[n.charCodeAt(i)],a=_r[n.charCodeAt(i+1)],o=_r[n.charCodeAt(i+2)],c=_r[n.charCodeAt(i+3)],u[r++]=s<<2|a>>4,u[r++]=(a&15)<<4|o>>2,u[r++]=(o&3)<<6|c&63;return l},Hw=function(n){for(var e=n.length,t=[],i=0;i<e;i+=2)t.push(n[i+1]<<8|n[i]);return t},Ww=function(n){for(var e=n.length,t=[],i=0;i<e;i+=4)t.push(n[i+3]<<24|n[i+2]<<16|n[i+1]<<8|n[i]);return t},ri=5,il=6+5,rl=2,qw=il-ri,_m=65536>>ri,Kw=1<<ri,sl=Kw-1,$w=1024>>ri,Yw=_m+$w,Xw=Yw,Jw=32,Qw=Xw+Jw,Zw=65536>>il,e_=1<<qw,t_=e_-1,Em=function(n,e,t){return n.slice?n.slice(e,t):new Uint16Array(Array.prototype.slice.call(n,e,t))},n_=function(n,e,t){return n.slice?n.slice(e,t):new Uint32Array(Array.prototype.slice.call(n,e,t))},i_=function(n,e){var t=zw(n),i=Array.isArray(t)?Ww(t):new Uint32Array(t),r=Array.isArray(t)?Hw(t):new Uint16Array(t),s=24,a=Em(r,s/2,i[4]/2),o=i[5]===2?Em(r,(s+i[4])/2):n_(i,Math.ceil((s+i[4])/4));return new r_(i[0],i[1],i[2],i[3],a,o)},r_=function(){function n(e,t,i,r,s,a){this.initialValue=e,this.errorValue=t,this.highStart=i,this.highValueIndex=r,this.index=s,this.data=a}return n.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>ri],t=(t<<rl)+(e&sl),this.data[t];if(e<=65535)return t=this.index[_m+(e-55296>>ri)],t=(t<<rl)+(e&sl),this.data[t];if(e<this.highStart)return t=Qw-Zw+(e>>il),t=this.index[t],t+=e>>ri&t_,t=this.index[t],t=(t<<rl)+(e&sl),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},n}(),Rm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s_=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ra=0;Ra<Rm.length;Ra++)s_[Rm.charCodeAt(Ra)]=Ra;var Pm=null;function a_(n){return Vw(this,void 0,void 0,function(){var e;return Gw(this,function(t){switch(t.label){case 0:return Pm!==null?[3,2]:[4,n()];case 1:if(e=t.sent(),!e.base64||!e.byte_length)throw console.error("invalid graphemes response",e),new Error("Invalid graphemes response");Pm=i_(e.base64,e.byte_length),t.label=2;case 2:return[2]}})})}const o_=`:root,:host{--obi-modal-padding: 32px 48px;--obi-modal-background-color: #FFFFFF;--obi-modal-border-radius: 24px;--obi-modal-shadow: 0px 1px 2px rgba(0, 0, 0, .05);--obi-modal-xsmall-width: 320px;--obi-modal-xsmall-height: 240px;--obi-modal-small-width: 480px;--obi-modal-small-height: 400px;--obi-modal-medium-width: 640px;--obi-modal-medium-height: 372px;--obi-modal-large-width: 1200px;--obi-modal-large-height: 700px;--obi-font-family: "Satoshi", sans-serif;--obi-color-primary: #9500FF;--obi-color-primary-50: color-mix(in srgb, var(--obi-color-primary) 50%, white 50%);--obi-color-primary-30: color-mix(in srgb, var(--obi-color-primary) 30%, white 70%);--obi-color-tint: color-mix(in srgb, var(--obi-color-primary) 5%, white 95%);--obi-color-text: #18181B;--obi-course-color-selected: var(--obi-color-primary-50);--obi-course-color-tint: var(--obi-color-tint);--obi-course-progress-step-completed: #B3B3B3;--obi-course-progress-step-incomplete: #D9D9D9;--obi-course-progress-text-color: #757575;font-family:var(--obi-font-family);color:var(--obi-color-text)}.obi-button{font-family:var(--obi-font-family);color:var(--obi-color-text)}dialog{margin:auto;padding:0;border:none;border-radius:var(--obi-modal-border-radius);box-shadow:var(--obi-modal-shadow);background:var(--obi-modal-background-color);box-sizing:border-box}dialog>.modal-content{padding:var(--obi-modal-padding);box-sizing:border-box}dialog,dialog.modal-medium,dialog>.modal-content,dialog.modal-medium>.modal-content{width:var(--obi-modal-medium-width);min-height:var(--obi-modal-medium-height)}dialog.modal-xsmall,dialog.modal-xsmall>.modal-content{width:var(--obi-modal-xsmall-width);min-height:var(--obi-modal-xsmall-height)}dialog.modal-small,dialog.modal-small>.modal-content{width:var(--obi-modal-small-width);min-height:var(--obi-modal-small-height)}dialog.modal-large,dialog.modal-large>.modal-content{width:var(--obi-modal-large-width);min-height:var(--obi-modal-large-height)}dialog::backdrop{background:rgba(0,0,0,.5)}.tour-content{display:block;width:100%;height:100%}.tour-content .container{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;padding:0;width:100%;height:100%}.tour-content .header{display:block;flex-grow:1;flex-direction:column;align-items:center;padding:0;width:100%;margin-bottom:16px}.tour-content .title{width:100%;font-family:Inter,sans-serif;font-style:normal;font-weight:700;font-size:24px;line-height:30px;text-align:center;color:#18181b;margin:0;padding:0}.tour-content .subtitle{width:100%;font-family:Inter,sans-serif;font-style:normal;font-weight:400;font-size:16px;line-height:140%;text-align:center;letter-spacing:-.01em;color:#18181b;margin:0}.tour-content .visual{flex-grow:0;flex-shrink:0;display:flex;align-items:center;justify-content:center;position:relative;margin-bottom:24px}.tour-content .visual.glow{width:390px;border-radius:15px;background-color:var(--obi-color-tint)}.tour-content .description{height:45px;width:100%;font-family:Inter,sans-serif;font-style:normal;font-weight:400;font-size:16px;color:#757575!important;line-height:140%;text-align:center;letter-spacing:-.01em;color:#18181b;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.tour-content .button-container{flex-grow:0;display:flex;flex-direction:column;align-items:center;gap:16px;width:100%}.tour-content .action-button{box-sizing:border-box;display:flex;flex-direction:row;justify-content:center;align-items:center;padding:12px;gap:8px;height:40px;background:#303030;border:1px solid #303030;border-radius:4px;cursor:pointer;text-decoration:none}.tour-content .action-button.disabled{opacity:.6;cursor:not-allowed}.tour-content .button-text{height:16px;font-family:Inter,sans-serif;font-style:normal;font-weight:500;font-size:16px;line-height:100%;color:#fbf3ff}.tour-content.voice-guidance-content .visual .voice-guidance-visual-mobile{display:none}.tour-content.voice-guidance-content .description{height:auto;min-height:45px;display:block;overflow:visible;text-overflow:unset;-webkit-line-clamp:unset;-webkit-box-orient:unset}.tour-content.voice-guidance-content .voice-guidance-copy,.tour-content.voice-guidance-content .voice-guidance-copy-desktop,.tour-content.voice-guidance-content .voice-guidance-copy-mobile{display:block}.tour-content.voice-guidance-content .voice-guidance-copy-mobile,.tour-content.share-mic-content .visual .share-mic-visual-mobile{display:none}.tour-content.share-mic-content .description{height:auto;min-height:45px;display:block;overflow:visible;text-overflow:unset;-webkit-line-clamp:unset;-webkit-box-orient:unset}.tour-content.share-mic-content .share-mic-copy,.tour-content.share-mic-content .share-mic-copy-desktop,.tour-content.share-mic-content .share-mic-copy-mobile{display:block}.tour-content.share-mic-content .share-mic-copy-mobile{display:none}.tour.content-area{height:100%;flex:1;display:flex;flex-direction:column}.tour-footer{width:100%!important;text-align:center;display:flex;align-items:flex-end;justify-content:center;font-family:Inter,sans-serif;font-size:8px;font-weight:200;margin-top:20px}.session-start-content .description{height:48px}@media (max-width: 600px){dialog,dialog.modal-xsmall,dialog.modal-small,dialog.modal-medium,dialog.modal-large,dialog>.modal-content,dialog.modal-xsmall>.modal-content,dialog.modal-small>.modal-content,dialog.modal-medium>.modal-content,dialog.modal-large>.modal-content{width:min(280px,100vw - 32px);max-width:100vw}dialog>.modal-content{padding:32px;min-height:412px;display:flex;flex-direction:column;min-height:412px!important}dialog>.modal-content>.tour.content-area{flex:1}.session-start-content .description{margin-top:18px}.tour-content{flex:1;display:flex;flex-direction:column}.tour-content .title{font-size:20px}.tour-content .subtitle{font-size:14px}.tour-content .description{font-size:13px;height:auto;overflow:visible;text-overflow:unset;display:block;-webkit-line-clamp:unset;-webkit-box-orient:unset}.tour-content .button-text{font-size:14px}.tour-content .visual{display:none}.tour-content.session-start-content .visual{display:flex;flex-shrink:0;margin-bottom:18px}.tour-content.session-start-content .obi-static-voice{height:auto}.tour-content.session-start-content .obi-static-voice-visual-title{margin-bottom:8px}.tour-content.session-start-content .obi-static-voice .obi-pill.container{display:none}.tour-content.session-start-content{display:flex;flex-direction:column;flex:1}.tour-content.session-start-content .container{flex:1;width:100%;display:flex;flex-direction:column;align-items:center;min-height:0}.tour-content.session-start-content .header{gap:0;width:100%;flex:1;display:flex;flex-direction:column;margin-bottom:16px;min-height:0}.tour-content.session-start-content .description{flex:1;width:100%;min-height:0}.tour-content.session-start-content .button-container,.tour-content.session-start-content .tour-footer{width:100%}.tour-content.voice-guidance-content .visual{display:flex;justify-content:center;margin-bottom:24px}.tour-content.voice-guidance-content .visual.glow{width:auto;padding:0;border-radius:0;background:transparent}.tour-content.voice-guidance-content .visual .voice-guidance-visual-desktop{display:none}.tour-content.voice-guidance-content .visual .voice-guidance-visual-mobile{display:flex;justify-content:center;align-items:center}.tour-content.voice-guidance-content .voice-guidance-copy-desktop{display:none}.tour-content.voice-guidance-content .voice-guidance-copy-mobile{display:block}.tour-content.voice-guidance-content .container{flex:1;padding-bottom:20px}.tour-content.voice-guidance-content .header{display:flex;flex-direction:column;flex-grow:1;justify-content:flex-start;margin-bottom:0}.tour-content.voice-guidance-content .header .description{flex-grow:1;display:flex;text-align:center;justify-content:center}.tour-content.voice-guidance-content .button-container{margin-top:0;flex:0 0 25%;height:auto;min-height:auto;width:100%;align-items:center;justify-content:flex-start}.tour-content.voice-guidance-content .button-container button{align-self:center!important}.tour-content.voice-guidance-content .button-container .action-button{align-self:flex-start}.tour-content.share-mic-content .visual{display:flex;justify-content:center;margin-bottom:24px}.tour-content.share-mic-content .visual.glow{width:auto;padding:0;border-radius:0;background:transparent}.tour-content.share-mic-content .visual .share-mic-visual-desktop{display:none}.tour-content.share-mic-content .visual .share-mic-visual-mobile{display:flex;justify-content:center;align-items:center}.tour-content.share-mic-content .share-mic-copy-desktop{display:none}.tour-content.share-mic-content .share-mic-copy-mobile{display:block}.tour-content.share-mic-content .title{margin-bottom:4px}.tour-content.share-mic-content .header{display:flex;flex-direction:column;flex-grow:1;justify-content:flex-start;margin-bottom:0}.tour-content.share-mic-content .header .description{flex-grow:1;display:flex;text-align:center;justify-content:center}.tour-content.share-mic-content .container{flex:1;padding-bottom:20px}.tour-content.share-mic-content .button-container{margin-top:0;flex:0 0 20%;height:auto;min-height:auto;width:100%;align-items:center;justify-content:flex-start}.tour-content.share-mic-content .button-container button{align-self:center!important}.tour-content.share-mic-content .button-container .action-button{align-self:flex-start}}.obi-close-button{position:absolute;top:24px;right:24px;width:24px;height:24px;cursor:pointer;border:none;background:none;padding:0;display:flex;align-items:center;justify-content:center;z-index:1;outline:none}.obi-close-button:focus{outline:none!important}@media (max-width: 600px){.obi-close-button{top:10px;right:10px}}.obi-pill.container{width:96px;height:30px;display:flex;align-items:center;justify-content:center}.obi-pill.container .pill{display:flex;align-items:center;justify-content:center;width:48px;height:6px;opacity:.7;border-radius:3px;background-color:var(--obi-color-primary);transition:width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out}.obi-pill.container .pill.button{cursor:pointer}.obi-pill.container.user-speaking .pill{background-color:var(--obi-color-primary-30)}.obi-pill.container.active .pill{width:96px;height:30px;border-radius:15px;opacity:1}.obi-pill.container.busy,.obi-pill.container.busy .pill{width:220px}.obi-pill2.container{display:flex;align-items:center;justify-content:center}.obi-pill2.container .pill{display:flex;align-items:center;justify-content:center;min-width:48px;max-width:48px;height:6px;opacity:.7;border-radius:3px;border:1px solid #FFFFFF1F;background-color:var(--obi-color-primary);transform:translateY(0);overflow:hidden;white-space:nowrap;flex:0 0 auto;box-sizing:border-box;padding-left:0;padding-right:0;transition:max-width .15s ease-in-out,min-width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out,padding-left .15s ease-in-out,padding-right .15s ease-in-out}.obi-pill2.container .pill.button{cursor:pointer}.obi-pill2.container:not(.active){transition:height 0s linear .15s;height:6px}.obi-pill2.container:not(.active) .pill{transform:translateY(12px);transition:transform 0s linear .15s,max-width .15s ease-in-out,min-width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out,padding-left .15s ease-in-out,padding-right .15s ease-in-out}.obi-pill2.container.active{transition:none;height:30px}.obi-pill2.container.active .pill{transition:transform 0s,max-width .15s ease-in-out,min-width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out,padding-left .15s ease-in-out,padding-right .15s ease-in-out;max-width:1000px;height:30px;border-radius:15px;opacity:1;padding-left:14px;padding-right:14px}.obi-pill2.container.user-speaking .pill{background-color:var(--obi-color-primary-30)}.obi-pill2.container:not(.active) .pill .text{opacity:0;animation:none}.obi-pill-up.container{display:flex;align-items:flex-end;justify-content:center}.obi-pill-up.container .pill{display:flex;align-items:center;justify-content:center;min-width:48px;max-width:48px;height:6px;opacity:.7;border-radius:3px;border:1px solid #FFFFFF1F;background-color:var(--obi-color-primary);overflow:hidden;white-space:nowrap;flex:0 0 auto;box-sizing:border-box;padding-left:0;padding-right:0;transition:max-width .15s ease-in-out,min-width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out,padding-left .15s ease-in-out,padding-right .15s ease-in-out}.obi-pill-up.container .pill.button{cursor:pointer}.obi-pill-up.container:not(.active){transition:height 0s linear .15s;height:6px}.obi-pill-up.container:not(.active) .pill{transition:max-width .15s ease-in-out,min-width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out,padding-left .15s ease-in-out,padding-right .15s ease-in-out}.obi-pill-up.container.active{transition:none;height:30px}.obi-pill-up.container.active .pill{transition:max-width .15s ease-in-out,min-width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out,padding-left .15s ease-in-out,padding-right .15s ease-in-out;max-width:1000px;height:30px;border-radius:15px;opacity:1;padding-left:14px;padding-right:14px}.obi-pill-up.container.user-speaking .pill{background-color:var(--obi-color-primary-30)}.obi-pill-up.container:not(.active) .pill .text{opacity:0;animation:none}.obi-equaliser{display:flex;align-items:center;gap:2px;height:32px}.obi-equaliser .column{position:relative;display:flex;align-items:center;justify-content:center;width:5px;height:100%}.obi-equaliser .bar{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:3px;border-radius:2px;z-index:1}.obi-panel{box-sizing:border-box;padding:24px;background-color:#fff;box-shadow:0 16px 32px -4px #0000001f,0 4px 8px -2px #00000014,inset 0 1px #fff9;border-radius:12px}.obi-popout{position:relative;display:inline-block}.obi-popout .obi-popout-target{cursor:pointer;display:inline-block}.obi-popout .content{position:absolute;background-color:#fff0;z-index:100;animation:popout-appear .15s ease-out}@keyframes popout-appear{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.obi-round-button-popout{z-index:600}.obi-round-button{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;padding:0;box-sizing:border-box;background-color:#fff;border:1px solid #D9D9D9;box-shadow:none}.obi-round-button:hover{cursor:pointer}.obi-round-button:disabled{box-shadow:none;background-color:#f0f0f0;color:#999;cursor:not-allowed!important;pointer-events:none}.obi-round-button-title{padding:8px 16px;border-radius:12px;background-color:#fff;color:#000;font-size:14px;font-weight:400;white-space:nowrap;box-shadow:0 4px 12px #00000026,0 2px 4px #0000001a;border:1px solid rgba(0,0,0,.08);z-index:5000;pointer-events:none;-webkit-user-select:none;user-select:none;position:relative}.obi-round-button-title:after{content:"";position:absolute;top:100%;left:50%;transform:translate(-50%);width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid white;filter:drop-shadow(0 2px 2px rgba(0,0,0,.1))}.obi-message{display:inline-flex;align-items:center;justify-content:center;padding:0 15px;text-wrap:nowrap;font-size:16px;font-weight:400;height:30px;box-sizing:border-box;background-color:#fff;border-radius:15px;border:1px solid #D9D9D9}.obi-message.clickable{box-shadow:0 4px 6px #0000001a;cursor:pointer}.obi-loading-dots{display:flex;align-items:center;gap:2px;height:32px}.obi-loading-dots .column{position:relative;display:flex;align-items:center;justify-content:center;width:5px;height:100%}.obi-loading-dots .dot{width:3px;height:3px;border-radius:2px;position:relative;z-index:2}.obi-loading-dots .bar{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:3px;border-radius:2px;z-index:1;height:0px;animation:bounce .9s ease-in-out infinite}@keyframes bounce{0%,60%,to{height:0px}30%{height:16px}}.obi-exit-survey{position:relative;width:320px;margin:0 auto;-webkit-backdrop-filter:none;backdrop-filter:none;background:white;z-index:9999}.obi-exit-survey-container{display:flex;flex-direction:column;align-items:center;padding:0;gap:16px;width:272px;flex:none;align-self:stretch}.obi-exit-survey-header{display:flex;flex-direction:column;align-items:flex-start;padding:0;gap:4px;width:272px;flex:none;align-self:stretch}.obi-exit-survey-title{width:272px;height:22px;margin:0;font-family:Satoshi,sans-serif;font-size:16px;font-weight:600;line-height:140%;text-align:center;color:#1e1e1e;flex:none;align-self:stretch}.obi-exit-survey-subtitle{width:272px;height:20px;margin:0;font-family:Satoshi,sans-serif;font-style:normal;font-weight:400;font-size:14px;line-height:140%;text-align:center;color:#757575;flex:none;align-self:stretch}.obi-exit-survey-options{display:flex;flex-direction:column;align-items:flex-start;padding:0;gap:4px;width:272px;flex:none;align-self:stretch}.obi-exit-survey-options textarea{height:80px;resize:none;outline:none}.obi-exit-survey-button{box-sizing:border-box;display:flex;flex-direction:row;justify-content:center;align-items:center;padding:12px;gap:8px;width:272px;height:44px;border-radius:12px;cursor:pointer;font-family:Satoshi,sans-serif;font-style:normal;font-weight:400;font-size:14px;line-height:140%;flex:none;align-self:stretch;transition:all .2s ease}.obi-exit-survey-button:hover{transform:translateY(-1px);box-shadow:0 4px 8px #0000001a}.obi-exit-survey-button:active{transform:translateY(0)}.obi-exit-survey-button-continue{background:rgba(255,255,255);border:1px solid rgba(217,217,217);color:#1e1e1e}.obi-exit-survey-button-continue:hover{background:rgba(255,255,255);border-color:#d9d9d9}.obi-exit-survey-button-wrap-up{background:#303030;border:1px solid rgba(217,217,217);color:#fff;font-weight:500}.obi-exit-survey-button-wrap-up:hover{background:#404040;border-color:#d9d9d9}.obi-exit-survey-reason-button{background:rgba(255,255,255);border:1px solid rgba(217,217,217);color:#1e1e1e}.obi-exit-survey-reason-button:hover{background:rgba(255,255,255);border-color:#d9d9d9}.obi-exit-survey-reason-button-secondary{display:flex;flex-direction:row;justify-content:center;align-items:center;padding:4px 6px;gap:8px;width:272px;height:28px;border-radius:4px;cursor:pointer;border:none;background:transparent;font-family:Satoshi,sans-serif;font-style:normal;font-weight:400;font-size:14px;line-height:140%;color:#5a5a5a;flex:none;align-self:stretch;transition:all .2s ease}.obi-exit-survey-reason-button-secondary:hover{background:rgba(0,0,0,.05);color:#3a3a3a}.obi-message-input{display:inline-block;position:relative}.obi-message-input .container{width:212px;height:30px;box-sizing:border-box;background:#FFFFFF;border:1px solid var(--obi-color-primary-30);border-radius:15px;display:flex;align-items:center;flex:none;order:2;flex-grow:0;transition:height .3s ease,border-radius .3s ease;animation:expandMessageInput .2s cubic-bezier(.4,0,.2,1) 0s 1 normal both}.obi-message-input.expanded .container{height:auto;min-height:140px;border-radius:15px;align-items:flex-start;padding:8px 0;animation:expandMessageInputWide .2s cubic-bezier(.4,0,.2,1) 0s 1 normal both}.obi-message-input .field{flex:1 1 0;border:none;background:transparent;outline:none;font-family:Satoshi,sans-serif;font-style:normal;font-weight:400;font-size:14px;line-height:18px;color:#000;padding:4px 3px 0 16px;height:100%;box-sizing:border-box;min-width:0;resize:none;overflow:hidden;scrollbar-width:none;transition:padding .3s ease;animation:fadeInInputField .2s cubic-bezier(.4,0,.2,1) 0s 1 normal both}.obi-message-input.expanded .field{height:auto;min-height:120px;padding:4px 16px;overflow-y:auto;line-height:18px}.obi-message-input .field::placeholder{color:#999}.obi-message-input .field:disabled{cursor:not-allowed;opacity:.6}.obi-message-input .send{position:absolute;bottom:3px;right:4px;flex-shrink:0;width:24px;height:24px;background:var(--obi-color-primary);border:none;border-radius:9999px;display:flex;justify-content:center;align-items:center;cursor:pointer;transition:all .3s ease;color:#fff}.obi-message-input.expanded .send{width:28px;height:28px;position:relative;top:0;bottom:0;margin-right:0}.obi-message-input.expanded .button-container{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:8px}.obi-message-input .send:disabled{background:#CCCCCC;cursor:not-allowed;transform:none}.obi-message-input .container:focus-within{border-color:var(--obi-color-primary);box-shadow:0 0 0 2px #9008ff1a}@keyframes expandMessageInput{0%{width:32px}to{width:212px}}@keyframes expandMessageInputWide{0%{width:212px}to{width:340px}}@keyframes fadeInInputField{0%{opacity:0}60%{opacity:0}to{opacity:1}}.obi-course-progress{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:6px;width:100%;min-width:0;height:24px;flex:none;order:1;align-self:stretch;flex-grow:0}.obi-course-progress-steps{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0;gap:2px;width:100%;height:14px;flex:none;order:0;align-self:stretch;flex-grow:0}.obi-course-progress-container{display:flex;flex-direction:column;justify-content:center;align-items:stretch;padding:6px 0;height:100%;flex:1;min-width:0;cursor:pointer}.obi-course-progress-step{width:100%;height:2px;background:var(--obi-course-progress-step-incomplete);border-radius:24px;flex:none;order:0;align-self:stretch;flex-grow:0;cursor:pointer}.obi-course-progress-step.completed{background:var(--obi-course-progress-step-completed)}.obi-course-progress-description{width:100%;height:14px;font-family:var(--obi-font-family);font-style:normal;font-weight:500;font-size:14px;line-height:100%;color:var(--obi-course-progress-text-color);flex:none;order:1;flex-grow:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.obi-course-progress .obi-widget-popout,.obi-course-progress .obi-widget-popout .content{z-index:800}.obi-widget-popout{z-index:400}.obi-widget-panel{display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;min-width:222px;width:min-content;padding:12px;box-sizing:border-box;border-radius:27px;background:white;transition:background .1s ease-out .1s,box-shadow .1s ease-out .1s}.obi-widget-panel:not(.messaging){width:256px}.obi-widget-panel.tool-usage{width:384px}.obi-widget-panel:not(.expanded){background:transparent;border:none;box-shadow:none;transition:background .1s ease-out .1s,border .1s ease-out .1s,box-shadow .1s ease-out .1s}.obi-widget-panel.maximized{transform:translateY(-110px)}.obi-widget-panel .obi-widget{display:flex;align-items:center;min-width:192px;padding-left:58px;box-sizing:border-box;gap:4px}.obi-widget-panel .obi-widget.active.in-plan{padding-left:0}.obi-widget-panel .obi-widget.active.in-plan .obi-round-button{animation:fade-in-button .2s ease-out .15s both}.obi-widget-panel .obi-widget.active .obi-equaliser{animation:fade-in-equaliser .2s ease-out .15s both}@keyframes fade-in-button{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes fade-in-equaliser{0%{opacity:0}to{opacity:1}}.obi-widget-panel .obi-widget-course-progress{display:block;width:100%;max-width:220px;max-height:40px;opacity:1;transform:translateY(0);overflow:visible;position:relative;z-index:800;transition:max-height .3s ease-in-out,opacity .3s ease-in-out,transform .3s ease-in-out}.obi-widget-panel .obi-widget-course-progress.expanded{max-width:330px}@keyframes expand-course-progress{0%{max-height:0;opacity:0;transform:translateY(-10px)}to{max-height:40px;opacity:1;transform:translateY(0)}}.obi-widget-pill-text{font-size:16px;font-weight:400;color:#fff;opacity:0;animation:fade-in-pill-text .3s ease-in-out forwards}@keyframes fade-in-pill-text{0%{opacity:0}40%{opacity:0}to{opacity:1}}.obi-widget-buttons{display:flex;flex-direction:row;gap:4px}.obi-widget-out-of-plan{display:flex;align-items:center;gap:0}.obi-widget-out-of-plan .text{font-size:16px;color:#fff;display:inline-flex;align-items:center;gap:8px;animation:fade-in-pill-text .3s ease-in-out forwards}.obi-widget-out-of-plan .round-button{display:none;animation:fade-in-button .2s ease-out .15s both}.obi-widget-out-of-plan .message{display:none}.obi-widget-out-of-plan.active{gap:0}.obi-widget-out-of-plan.active:hover,.obi-widget-out-of-plan.active.hover{gap:4px}.obi-widget-out-of-plan.active:hover .round-button,.obi-widget-out-of-plan.active:hover .message,.obi-widget-out-of-plan.active.hover .round-button,.obi-widget-out-of-plan.active.hover .message{display:flex}.obi-widget-draggable .obi-widget-panel{cursor:grab}.obi-widget-draggable.dragging .obi-widget-panel{cursor:grabbing;-webkit-user-select:none;user-select:none}.obi-static-voice{height:96px;display:flex;flex-direction:column;align-items:center;justify-content:center}.obi-static-voice-visual-title{font-family:Inter,sans-serif;font-style:normal;font-weight:600;font-size:14px;color:var(--obi-color-primary);background-color:var(--obi-color-tint);padding:8px 12px;border-radius:20px;margin-bottom:24px}.obi-static-voice-visual{display:flex;align-items:center;gap:2px;height:32px}.obi-static-voice-visual .column{position:relative;display:flex;align-items:center;justify-content:center;width:5px;height:100%}.obi-static-voice-visual .bar{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:3px;background-color:#fff;border-radius:2px;z-index:1}.obi-static-voice-visual .bar-1{height:2px}.obi-static-voice-visual .bar-2{height:6px}.obi-static-voice-visual .bar-3{height:10px}.obi-static-voice-visual .bar-4,.obi-static-voice-visual .bar-5{height:16px}.obi-static-voice-visual .bar-6{height:10px}.obi-static-voice-visual .bar-7{height:6px}.obi-static-voice-visual .bar-8{height:2px}@layer components{.share-mic-mobile-visual{width:216px;height:103px;border-radius:12px;background:var(--obi-course-color-tint, var(--obi-color-tint, #F3E3FF));display:flex;align-items:center;justify-content:center}.share-mic-mobile-controls{display:flex;align-items:center;gap:12px;padding:0 12px}.share-mic-mobile-icon{width:52px;height:52px;border-radius:12px;background:#FFFFFF;border:1px solid #E4E4E7;box-shadow:0 2px 4px #0f172a14;display:flex;align-items:center;justify-content:center;color:#111827}.share-mic-mobile-allow{min-width:96px;height:44px;border-radius:10px;border:1px solid #D4D4D8;background:#FFFFFF;box-shadow:0 2px 4px #0f172a14;display:flex;align-items:center;justify-content:center;font-family:Inter,sans-serif;font-size:16px;font-weight:500;color:#111827}}@layer components{.voice-guidance-mobile-visual{width:216px;height:103px;border-radius:12px;background:var(--obi-course-color-tint, var(--obi-color-tint, #F3E3FF));display:flex;align-items:center;justify-content:center}.voice-guidance-mobile-pill{display:flex;align-items:center;justify-content:center;transform:scale(1.25);filter:drop-shadow(0px 12px 25px var(--obi-color-primary-30, rgba(149, 0, 255, .35)))}.voice-guidance-mobile-pill .obi-pill.container{display:flex;align-items:center;justify-content:center}}.tour-select{display:block;font-family:Inter,sans-serif}.course-container{display:flex;padding:20px;align-items:flex-start;gap:8px;height:180px;border-radius:6px;border:1px solid rgba(0,0,0,.6);background:#fff;cursor:pointer;transition:all .2s;flex-direction:column;box-sizing:border-box;overflow:hidden}.course-container:hover{background-color:#f9fafb;border-color:#d1d5db;box-shadow:0 1px 2px #0000000d}.course-container:active{transform:scale(.98)}.course-container.selected{border-radius:6px;border:1px solid var(--obi-course-color-selected);background:var(--obi-course-color-tint)}.course-container.selected:hover{background:var(--obi-course-color-tint)}.header-row{display:flex;justify-content:space-between;align-items:flex-start;align-self:stretch;flex-shrink:0;text-align:left}.course-title{color:#000;font-family:Inter,sans-serif;font-size:20px;font-style:normal;font-weight:500;line-height:100%;letter-spacing:-.2px;margin:0}.duration{display:flex;padding:4px 12px;justify-content:center;align-items:center;gap:8px;border-radius:9999px;background:var(--obi-course-color-tint);color:#000;font-family:Inter,sans-serif;font-size:14px;font-style:normal;font-weight:500;line-height:100%;letter-spacing:-.14px;flex-shrink:0}.course-container.selected .duration{background:#fff}.course-description{flex:1 0 0;color:#0009;font-family:Inter,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:140%;letter-spacing:-.16px;margin:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;text-align:left}.course-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:4px;padding:0;flex:1 0 0;align-self:stretch;min-height:364px}.controls{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.tabs{display:flex;gap:10px}.tab{display:flex;padding:6px 12px;justify-content:center;align-items:center;align-self:stretch;border:none;background:none;cursor:pointer;font-family:Inter,sans-serif;font-size:16px;font-weight:500;color:#0006;border-bottom:2px solid transparent;transition:all .2s}.tab.active{color:#000;border-bottom:2px solid var(--obi-color-primary)}.tab:hover{color:#000}.filter{position:relative;display:flex;align-items:center;width:336px;height:40px}.filter input{color:var(--obi-color-text);caret-color:var(--obi-color-text);padding:8px 12px 8px 36px;border-radius:6px;border:1px solid rgba(0,0,0,.1);background:#fff;font-family:Inter,sans-serif;font-size:14px;line-height:20px;width:100%;height:100%;box-sizing:border-box;outline:none}.filter input:focus{outline:1px solid var(--obi-color-primary);outline-offset:-1px}.filter input::placeholder{color:#0006}.filter svg{position:absolute;left:12px;pointer-events:none}@media (max-width: 767px){.course-grid{grid-template-columns:1fr}}.loading,.error,.empty{display:flex;justify-content:center;align-items:center;margin-top:16px}.error{color:#ef4444}.tour-select-modal-container{display:flex;flex-direction:column;align-items:center;gap:24px;flex:1 0 0;align-self:stretch;font-family:Satoshi,sans-serif;color:#000;text-align:center;max-width:1200px;width:100%;min-height:600px;box-sizing:border-box}.course-list-wrapper{flex:1;overflow-y:auto;width:100%;min-height:0;max-height:424px;padding-right:3px;box-sizing:border-box}.course-list-wrapper::-webkit-scrollbar{width:3px}.course-list-wrapper::-webkit-scrollbar-track{background:transparent}.course-list-wrapper::-webkit-scrollbar-thumb{background-color:#000;border-radius:2px;min-height:20px}.course-list-wrapper::-webkit-scrollbar-thumb:hover{background-color:#333}.header{display:flex;align-items:flex-start;gap:16px;width:100%;text-align:left}.icon{display:flex;width:56px;height:56px;padding:12px;justify-content:center;align-items:center;border-radius:12px;border:1px solid var(--obi-color-primary);background:var(--obi-color-primary);box-sizing:border-box}.icon img{width:32px;height:32px;color:#fff;fill:#fff}.title-section{align-self:stretch;flex:1}.tour-select-modal-container h1{color:#18181b;font-family:Satoshi;font-size:32px;font-style:normal;font-weight:700;line-height:90%;letter-spacing:-.96px;margin:0 0 8px}.subtitle{color:#18181b;font-family:Satoshi;font-size:20px;font-style:normal;font-weight:500;line-height:90%;letter-spacing:-.6px;margin:0}.footer{display:flex;width:360px;flex-direction:column;align-items:center;gap:12px}.footer-button{display:flex;height:48px;padding:16px;justify-content:center;align-items:center;gap:8px;align-self:stretch;border-radius:6px;background:#18181b;border:none;cursor:pointer;color:#fafafa;font-family:Satoshi;font-weight:500;transition:opacity .2s ease}.footer-button:disabled{opacity:.5;cursor:not-allowed}.footer-button:not(:disabled){opacity:1}.footer-button:not(:disabled):hover{background:#27272a}.footer-text{color:#18181b;font-family:Satoshi;font-size:12px;font-style:normal;font-weight:400;line-height:100%;letter-spacing:-.12px;margin:0;text-align:center}.skeleton{background:linear-gradient(90deg,#e5e7eb 25%,#f3f4f6 50%,#e5e7eb 75%);background-size:200% 100%;animation:loading 1.5s infinite;border-radius:4px}@keyframes loading{0%{background-position:200% 0}to{background-position:-200% 0}}.skeleton-title{height:32px;width:60%;margin-bottom:12px}.skeleton-subtitle{height:20px;width:80%}
56
56
  `;function c_(n){var Er,Rr,Pa,Vi,Fn,fn,pn,Pr,Ir,Or,Gi;const[e,t]=X(!1),[i,r]=X(!1),[s,a]=X(!1),[o,c]=X(!1),[l,u]=X(null),[d,h]=X(!1),[f,g]=X(null),[p,v]=X(null),[b,C]=X(null),[w,T]=X(!1),k=Oe(null),x=Oe(0),_=Oe(0),R=Oe(0),O=Oe(0),B=Oe({width:0,height:0}),N=Oe(null),W=Oe(!1),K=6,M=l_(n.sdk,Q,n.shadowHost,v,A=>{var V,$;a(A),A&&(($=(V=M.client.session)==null?void 0:V.muteMicrophone)==null||$.call(V))},A=>{if(!A){u(null);return}if(gt&&(u(A),!me&&ge==="minimized")){h(!0);const V=Math.max(0,A.autoCloseMs??3e3);f&&window.clearTimeout(f);const $=window.setTimeout(()=>h(!1),V);g($)}});function Q(A){var V;(V=M.client)!=null&&V.session||(A?si():t(!1))}if(!M.client)return null;const J=M.client.planIsCompleted.filter(Boolean).length===M.client.plans.length,ye=u_((Er=M.client.product)==null?void 0:Er.widget_url_blacklist),ge=J?M.completedWidgetDisplay||((Rr=M.client.product)==null?void 0:Rr.completed_widget_display):M.widgetDisplay||((Pa=M.client.product)==null?void 0:Pa.widget_display),we=M.widgetPosition||((Vi=M.client.product)==null?void 0:Vi.widget_position);let ze=M.isActive;((fn=(Fn=M.client)==null?void 0:Fn.product)==null?void 0:fn.name)==="Canibuild"&&(ze=!0);const z=M.client.session,me=!!z,se=d_(),He=h_(se),Y=me&&!se;Ge(()=>{c(!1)},[z]);const Te=me&&!e;let ke;switch(z==null?void 0:z.speakingState){case"listening":ke="user-speaking";break;case"speaking":ke="agent-speaking";break;case"thinking":ke="thinking";break;case"busy":ke="busy";break}const yt=z==null?void 0:z.isPaused,gt=me||M.client.state==="ready"&&ze&&!ye&&(ge!=="invisible"||M.client.selectedPlan),Fi=()=>{var A,V,$,oe,_e,vt,jn;return{name:(A=M.client.selectedPlan)==null?void 0:A.name,description:(V=M.client.selectedPlan)==null?void 0:V.description,appName:($=M.client.product)==null?void 0:$.name,appLogoUrl:((oe=M.client.product)==null?void 0:oe.logo_url)||"",url:(_e=M.client.product)==null?void 0:_e.url,agentName:((vt=M.client.product)==null?void 0:vt.agent_name)||"Obi",legalFooter:((jn=M.client.product)==null?void 0:jn.legal_footer_text)||void 0}};function ji(){const A=we==="bottom-right"?{position:"fixed",right:"250px",width:"max-content",transform:"translateX(50%)"}:{position:"fixed",left:"50%",transform:"translateX(-50%)",width:"max-content"};if(Te){const V=se?He:"vh";A.top=`calc(100${V} - 100px)`}else A.bottom="20px";return A}const te=(()=>{if(Y&&b)return{position:"fixed",left:`${Math.round(b.left)}px`,top:`${Math.round(b.top)}px`,width:"max-content",right:void 0,bottom:void 0,transform:void 0,touchAction:"none"};const A=ji();return Y&&(A.touchAction="none"),A})();Ge(()=>{Y||(C(null),T(!1),k.current=null,W.current=!1,N.current&&(cancelAnimationFrame(N.current),N.current=null))},[Y]);function Ue(A,V,$){return Math.max(V,Math.min($,A))}function Ze(A){var vt;if(!Y)return;const V=A.currentTarget;if(!V)return;const $=A.target;if((vt=$==null?void 0:$.closest)==null?void 0:vt.call($,'button, a[href], input, textarea, select, [role="button"], [contenteditable="true"], [data-no-drag]'))return;k.current=A.pointerId;const _e=V.getBoundingClientRect();x.current=A.clientX,_.current=A.clientY,R.current=_e.left,O.current=_e.top,B.current={width:_e.width,height:_e.height},W.current=!1,C({left:_e.left,top:_e.top})}function Ft(A){var oi;if(!Y||k.current!==A.pointerId)return;const V=A.clientX-x.current,$=A.clientY-_.current;if(!w){if(Math.hypot(V,$)<K)return;const Vt=A.currentTarget;try{(oi=Vt==null?void 0:Vt.setPointerCapture)==null||oi.call(Vt,A.pointerId)}catch{}T(!0),W.current=!0,b||C({left:R.current,top:O.current})}const oe=8,_e=oe,vt=oe,jn=Math.max(oe,window.innerWidth-B.current.width-oe),al=Math.max(oe,window.innerHeight-B.current.height-oe),ai={left:Ue(R.current+V,_e,jn),top:Ue(O.current+$,vt,al)};if(N.current==null){const Ia=ai;N.current=requestAnimationFrame(()=>{C(Ia),N.current=null})}else C(ai)}function dn(A){var V,$;if(k.current!==null)try{($=(V=A.currentTarget)==null?void 0:V.releasePointerCapture)==null||$.call(V,k.current)}catch{}k.current=null,T(!1)}function jt(A){Y&&k.current===A.pointerId&&dn(A)}function hn(A){Y&&k.current===A.pointerId&&dn(A)}const si=()=>{const A=M.client;if(!A)return;const V=A.plans||[];if(V.length===1){const[$]=V;A.selectedPlanUuid!==$.uuid&&(A.selectPlan($),ni().track("course-get-started",{courseName:$.name,courseUuid:$.uuid})),t(!1),r(!0);return}t(!0)};return m("div",{children:[e&&m(Xx,{open:e,courses:M.client.plans.map((A,V)=>{var $,oe;return{id:A.uuid,name:A.name,description:A.description||"",duration:A.duration||0,completed:((oe=($=M.client)==null?void 0:$.planIsCompleted)==null?void 0:oe[V])||!1}}),loading:!1,title:((pn=M.client.product)==null?void 0:pn.assistant_subtitle)||void 0,productName:((Pr=M.client.product)==null?void 0:Pr.name)||"",onCourseHighlight:A=>{A&&ni().track("course-selected",{courseName:A.name,courseUuid:A.id})},onCourseSelect:A=>{const V=M.client.plans.find($=>$.uuid===A.id)||null;V&&(V==null?void 0:V.uuid)!==M.client.selectedPlanUuid&&(M.client.selectPlan(V),t(!1),r(!0),ni().track("course-get-started",{courseName:A.name,courseUuid:A.id}))},onClose:A=>{A==="user-initiated"&&M.client.selectPlan(null),t(!1)}}),gt&&m(Ke,{children:[m("div",{className:Y?`obi-widget-draggable${w?" dragging":""}`:void 0,style:te,onPointerDown:Ze,onPointerMove:Ft,onPointerUp:jt,onPointerCancel:hn,onClickCapture:A=>{var V,$;W.current&&((V=A.preventDefault)==null||V.call(A),($=A.stopPropagation)==null||$.call(A),W.current=!1)},children:m(ax,{inPlan:me,isActive:i?!1:d?!0:void 0,defaultIsActive:ge!=="minimized",isPaused:yt,toastMessage:l,messaging:(z==null?void 0:z.isMicShared)===!1||s?!0:void 0,speakingStatus:ke,spectrum:()=>(z==null?void 0:z.audioSpectrum())||null,courseProgress:p,onOpen:si,onCancelClick:()=>{var A,V,$;o&&(c(!1),(A=M.client.session)!=null&&A.isPaused||($=(V=M.client.session)==null?void 0:V.unmuteMicrophone)==null||$.call(V))},onCancelAbort:()=>{},onCancel:()=>{var A;(A=M.client.session)==null||A.stop()},onCancelReason:(A,V)=>{},onPause:()=>{var A,V;(V=(A=M.client.session)==null?void 0:A.pause)==null||V.call(A)},onUnpause:()=>{var A,V,$,oe;(V=(A=M.client.session)==null?void 0:A.unpause)==null||V.call(A),(o||s)&&((oe=($=M.client.session)==null?void 0:$.muteMicrophone)==null||oe.call($))},onMessagingChange:A=>{var V,$,oe,_e,vt;a(!1),c(A),A?($=(V=M.client.session)==null?void 0:V.muteMicrophone)==null||$.call(V):(oe=M.client.session)!=null&&oe.isPaused||(vt=(_e=M.client.session)==null?void 0:_e.unmuteMicrophone)==null||vt.call(_e)},onMessageChange:A=>{ni().track("chat-input-provided",{message:A,length:A.length})},onMessage:A=>{var V,$;M.say(A),a(!1),!o&&!(z!=null&&z.isPaused)&&(z==null?void 0:z.isMicShared)!==!1&&(($=(V=M.client.session)==null?void 0:V.unmuteMicrophone)==null||$.call(V)),ni().track("chat-message-sent",{message:A,length:A.length})},onHover:A=>{},onOneClickAction:A=>{a(!1)},onMinimize:()=>{var A,V,$;o&&(c(!1),(A=M.client.session)!=null&&A.isPaused||($=(V=M.client.session)==null?void 0:V.unmuteMicrophone)==null||$.call(V))},agentName:((Ir=M.client.product)==null?void 0:Ir.agent_name)||"Obi",completedTutorials:((Or=M.client.product)==null?void 0:Or.widget_show_progress)===!1?void 0:M.client.planIsCompleted.filter(Boolean).length,totalTutorials:((Gi=M.client.product)==null?void 0:Gi.widget_show_progress)===!1?void 0:M.client.plans.length})}),!!M.client.selectedPlan&&m(Qx,{open:!0,session:Fi(),sessionState:(z==null?void 0:z.state)||null,speakingState:(z==null?void 0:z.speakingState)||null,spectrum:()=>(z==null?void 0:z.audioSpectrum())||null,onModalChange:A=>{},onClose:(A,V)=>{var $,oe;A==="user-initiated"&&((($=M.client.session)==null?void 0:$.state)==="mic-share"?(oe=M.client.session)==null||oe.shareMicrophoneFailed():M.client.stopSession()),r(!1)},onStart:()=>{M.client.selectedPlanUuid&&M.startSession()},onContinue:()=>{z==null||z.continue()},onShareMicrophone:()=>{z==null||z.shareMicrophone()}})]})]})}function l_(n,e,t,i,r,s){const[a,o]=X(0),[c,l]=X(()=>{var p;return((p=n.client)==null?void 0:p.session)||null}),u=Oe(s),d=Oe(null),h=Oe(null);Ge(()=>{u.current=s},[s]);const f=p=>{var v;(v=u.current)==null||v.call(u,p)},g=p=>{if(!p||d.current===p)return;h.current&&(h.current(),h.current=null);const v=()=>{o(R=>R+1)},b=()=>{o(R=>R+1)},C=()=>{o(R=>R+1)},w=()=>{o(R=>R+1)},T=R=>{},k=(R,O)=>{},x=()=>{r==null||r(!0),o(R=>R+1)},_=R=>{i(R)};p.on("stateChanged",v),p.on("speakingStateChanged",b),p.on("paused",C),p.on("unpaused",w),p.on("micCheckComplete",T),p.on("transcript",k),p.on&&p.on("textInputRequested",x),p.on&&p.on("courseProgress",_),d.current=p,h.current=()=>{p.off&&p.off("stateChanged",v),p.off&&p.off("speakingStateChanged",b),p.off&&p.off("paused",C),p.off&&p.off("unpaused",w),p.off&&p.off("micCheckComplete",T),p.off&&p.off("transcript",k),p.off&&p.off("courseProgress",_),p.off&&p.off("textInputRequested",x)}};return Ge(()=>{const p=b=>{e(b)};n.on("showMenu",p);const v=()=>{o(b=>b+1)};return n.on("configUpdated",v),n.on("showMessage",f),()=>{var b,C,w;(b=n.off)==null||b.call(n,"showMenu",p),(C=n.off)==null||C.call(n,"configUpdated",v),(w=n.off)==null||w.call(n,"showMessage",f)}},[n]),Ge(()=>{var p;n.client&&(n.client.state==="ready"&&t.style.setProperty("--obi-color-primary",((p=n.client.product)==null?void 0:p.primary_color)||"#9500FF"),n.client.session&&(l(n.client.session),g(n.client.session)),n.client.on("sessionStarted",v=>{l(v),r==null||r(!1),o(b=>b+1),g(v)}),n.client.on("sessionStopped",()=>{h.current&&(h.current(),h.current=null),d.current=null,l(null),r==null||r(!1),o(v=>v+1)}),n.client.on("sessionShutdown",()=>{o(v=>v+1)}),n.client.on("sessionResumed",()=>{o(v=>v+1)}),n.client.on("stateChanged",()=>{var v;n.client.state==="ready"&&t.style.setProperty("--obi-color-primary",((v=n.client.product)==null?void 0:v.primary_color)||"#9500FF"),o(b=>b+1)}),n.client.on("planSelected",()=>{o(v=>v+1)}))},[n,n.client]),yr(()=>{if(c)return g(c),()=>{d.current===c&&h.current&&(h.current(),h.current=null,d.current=null)}},[c]),n}function u_(n){const[e,t]=X(()=>Ca(n));return Ge(()=>{t(Ca(n))},[n]),Ge(()=>{f_();const i=()=>{t(Ca(n))};return window.addEventListener("locationchange",i),window.addEventListener("popstate",i),window.addEventListener("hashchange",i),()=>{window.removeEventListener("locationchange",i),window.removeEventListener("popstate",i),window.removeEventListener("hashchange",i)}},[n]),e}function d_(n=768){const[e,t]=X(()=>typeof window>"u"?!1:window.innerWidth<=n);return Ge(()=>{if(typeof window>"u")return;if(typeof window.matchMedia=="function"){const r=window.matchMedia(`(max-width: ${n}px)`),s=a=>t(a.matches);return t(r.matches),typeof r.addEventListener=="function"?(r.addEventListener("change",s),()=>r.removeEventListener("change",s)):typeof r.addListener=="function"?(r.addListener(s),()=>r.removeListener(s)):void 0}const i=()=>t(window.innerWidth<=n);return i(),window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[n]),e}function h_(n){const[e,t]=X("vh");return Ge(()=>{var i;if(!n){t("vh");return}if(typeof window>"u"||!((i=window.CSS)!=null&&i.supports)){t("vh");return}if(window.CSS.supports("height","100dvh")){t("dvh");return}if(window.CSS.supports("height","100svh")){t("svh");return}t("vh")},[n]),e}function f_(){const n=window;if(n.__obi_history_patched)return;const{pushState:e,replaceState:t}=window.history,i=r=>function(...s){const a=r.apply(this,s);return window.dispatchEvent(new Event("locationchange")),a};window.history.pushState=i(e),window.history.replaceState=i(t),n.__obi_history_patched=!0}function p_(n){if(document.querySelector("obi-widget"))return;m_();const e=document.createElement("div");e.id="obi-host",e.style.position="fixed",e.style.zIndex="9999",document.body.appendChild(e);const t=e.attachShadow({mode:"open"}),i=document.createElement("div");i.id="obi-container",t.appendChild(i);const r=new CSSStyleSheet;r.replaceSync(o_),t.adoptedStyleSheets=[r],x1(m(c_,{sdk:n,shadowHost:e}),i),console.log("[obi-sdk] widget mounted")}function m_(){Im("https://fonts.cdnfonts.com/css/satoshi"),Im("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap")}function Im(n){const e=document.createElement("link");e.href=n,e.rel="stylesheet",document.head.appendChild(e)}const Om="49206C6F7665204F6269_session",Am="obi-url-params";class g_ extends Oa{constructor(e){super(),this.client=null,this.isActive=!1,this.primaryColour="#9500FF",this.passivePlanUuid=null,this.commandLog=[],this.commandQueue=[],this._resumed=!1,this.dispatchCommand=(t,i)=>{var r,s,a,o,c;switch(this.commandLog.push({commandType:t,args:i}),t){case"update":this.updateConfig(i);break;case"startSession":if(!(i!=null&&i.planUuid)){console.warn("[obi] startSession command requires a planUuid",i);return}const l=(((r=this.client)==null?void 0:r.plans)||[]).find(u=>u.uuid===i.planUuid)||null;if(!l){console.warn("[obi] startSession command requires a valid planUuid",i);return}this.updateActive(!0),(a=(s=this.client)==null?void 0:s.selectPlan)==null||a.call(s,l);break;case"stopSession":(c=(o=this.client)==null?void 0:o.stopSession)==null||c.call(o);break;case"say":this.say(i);break;default:console.warn("[obi] unknown command",{commandType:t,args:i})}},e&&this.createClient(e),this.parsePassiveParams()}async createClient(e){if(this.client){this.client.appToken!==e&&console.warn("[obi] client already exists with different app token");return}let t=null;const i=this.load();if(i)try{t=ca.deserialise(i,e,"sdk",{apiBaseUrl:"https://app.coragents.ai",captureScreen:this.captureScreen.bind(this)}),t?this._resumed=!0:localStorage.removeItem("obi-client")}catch(r){console.error("[obi] error loading cached client",r),localStorage.removeItem("obi-client")}t||(t=new ca(e,"sdk",{apiBaseUrl:"https://app.coragents.ai",captureScreen:this.captureScreen.bind(this)})),this.client=t,this.client.on("stateChanged",r=>{var s,a,o,c,l,u,d,h,f,g;r==="ready"&&this.updateConfig({isActive:((s=window==null?void 0:window.obiWidgetConfig)==null?void 0:s.isActive)??((a=this.client)==null?void 0:a.showWidget),primaryColour:((c=(o=this.client)==null?void 0:o.product)==null?void 0:c.primary_color)||"#9500FF",widgetDisplay:((l=window==null?void 0:window.obiWidgetConfig)==null?void 0:l.widgetDisplay)||((d=(u=this.client)==null?void 0:u.product)==null?void 0:d.widget_display)||"regular",completedWidgetDisplay:((h=window==null?void 0:window.obiWidgetConfig)==null?void 0:h.completedWidgetDisplay)||((g=(f=this.client)==null?void 0:f.product)==null?void 0:g.completed_widget_display)||"regular"})}),this.client.on("sessionStarted",()=>{this.save(),this.passivePlanUuid=null}),this.client.on("sessionStopped",()=>{localStorage.removeItem("obi-client"),this.passivePlanUuid=null}),this.client.on("sessionShutdown",()=>{localStorage.removeItem("obi-client")}),this.client.on("trackEvent",(r,s)=>{}),this.client.session&&(this.client.session.isPaused,this.client.resumeSession(r=>{r.on("stateChanged",s=>{s!=="disconnecting"&&s!=="disconnected"&&s!=="error"&&s!=="connecting"&&this.save()}),r.on("paused",()=>{this.save()}),r.on("unpaused",()=>{this.save()})}))}_maybeActOnServerEngagement(){var o;const e=this.client;if(!e||e.state!=="ready")return;const t=e.product,i=(o=e.engagement)==null?void 0:o.style;if(!i||t&&Ca(t.widget_url_blacklist||[])||!e.showWidget)return;const r=e.plans||[],s=e.planIsCompleted||[],a=r.length>0&&s.filter(Boolean).length===r.length;if(!(r.length===0||a)){if(i==="modal"){const c=s.findIndex(u=>!u),l=c>=0?r[c]:null;l&&e.selectPlan(l)}else i==="popover"&&setTimeout(()=>{this.showMessage("Don't forget to complete your onboarding",{autoCloseMs:1e4})},1e3);try{ni().track("engagement-prompt-shown",{style:i})}catch{}}}async initialise(e={}){var t;this.commandQueue=e.queuedCommands||[],this._resumed?(this._resumed=!1,this.dispatchCommandQueue()):this.client?this.client.initialise({planUuid:this.passivePlanUuid||void 0,identity:((t=window==null?void 0:window.obiWidgetConfig)==null?void 0:t.user)||void 0}).then(()=>{this.emit("initialised");try{this._maybeActOnServerEngagement()}catch{}this.dispatchCommandQueue()}).catch(i=>{console.error("[obi] error initialising client",i),this.emit("error",i)}):this.dispatchCommandQueue()}async updateConfig(e){await this.updateAppToken(e.apiKey),this.updateActive(e.isActive),this.updatePrimaryColour(e.primaryColour),this.updateWidgetDisplay(e.widgetDisplay),this.updateCompletedWidgetDisplay(e.completedWidgetDisplay),this.updateWidgetPosition(e.widgetPosition),await this.updateIdentity(e.user),this.updateShowMenu(e.showMenu),this.emit("configUpdated")}async updateAppToken(e){var t;e===void 0||e==((t=this.client)==null?void 0:t.appToken)||(this.passivePlanUuid,await this.createClient(e),this.client&&await this.client.initialise({planUuid:this.passivePlanUuid||void 0}).then(()=>{this.emit("initialised");try{this._maybeActOnServerEngagement()}catch{}}).catch(i=>{console.error("[obi] error initialising client",i),this.emit("error",i)}))}updateActive(e){e===void 0||e==this.isActive||(this.isActive=e)}updatePrimaryColour(e){e===void 0||e==this.primaryColour||(this.primaryColour=e)}updateWidgetDisplay(e){e===void 0||e==this.widgetDisplay||(this.widgetDisplay=e)}updateCompletedWidgetDisplay(e){e===void 0||e==this.completedWidgetDisplay||(this.completedWidgetDisplay=e)}updateWidgetPosition(e){e===void 0||e==this.widgetPosition||(this.widgetPosition=e)}async updateIdentity(e){var i,r;if(e===void 0||e==((i=this.client)==null?void 0:i.identity))return;(r=this.client)==null||r.identity;let t=e?{...e,extra:{...e,...(e==null?void 0:e.extra)||{}}}:void 0;await this.client.initialise({identity:t,planUuid:this.passivePlanUuid||void 0}).then(()=>{this.emit("initialised");try{this._maybeActOnServerEngagement()}catch{}}).catch(s=>{console.error("[obi] error initialising client",s),this.emit("error",s)}),e!=null&&e.email&&ni().identify((e==null?void 0:e.email)||"",t)}updateShowMenu(e){e!==void 0&&this.emit("showMenu",e)}async say(e){var t,i,r;await((r=(i=(t=this.client)==null?void 0:t.session)==null?void 0:i.say)==null?void 0:r.call(i,e))}async startSession(){await this.client.startSession(this.client.selectedPlanUuid,e=>{e.on("stateChanged",t=>{t!=="disconnecting"&&t!=="disconnected"&&t!=="error"&&t!=="connecting"&&this.save()}),e.on("paused",()=>{this.save()}),e.on("unpaused",()=>{this.save()})})}dispatchCommandQueue(){const e=this.commandQueue;this.commandQueue=[],e.forEach(t=>{try{this.dispatchCommand(t[0],t[1]||[])}catch(i){console.error("[obi] error dispatching command",i)}})}parsePassiveParams(){if(this.passivePlanUuid){this.passivePlanUuid;return}let e={};e=JSON.parse(localStorage.getItem(Am)||"{}"),Object.keys(e).length===0&&new URLSearchParams(window.location.search).forEach((s,a)=>{e[a]=s});const t=e[Om];if(!t)return null;const i=new URL(window.location.href);i.searchParams.delete(Om),window.history.replaceState({},"",i.toString()),i.toString(),localStorage.removeItem(Am),this.passivePlanUuid=t}mountWidget(){p_(this)}showMessage(e,t){try{this.emit("showMessage",{text:e,autoCloseMs:t==null?void 0:t.autoCloseMs})}catch{}}async captureScreen(){try{await Fw(async()=>(this.graphemes||(this.graphemes=await this.client.api.getGraphemes()),this.graphemes.data.text_segmentation)),await a_(async()=>(this.graphemes||(this.graphemes=await this.client.api.getGraphemes()),this.graphemes.data.css_line_breaks))}catch(e){throw console.error("[obi] error initialising unicode trie",e),e}try{return(await IT(document.documentElement,{useCORS:!0,allowTaint:!0,foreignObjectRendering:!0})).toDataURL("image/png")}catch(e){throw console.error("[obi] error capturing screen",e),e}}save(){var t;const e=((t=this.client)==null?void 0:t.serialise())||"";localStorage.setItem("obi-client",e)}load(){return localStorage.getItem("obi-client")}}async function Nm(n,e){let t;try{t=window}catch{console.warn("[obi] no window object found"),t={}}return v_({appToken:n,window:t,init:e})}async function v_({appToken:n,window:e,init:t}){var s,a;if(e.obi){console.warn("[obi] obi object already found on window, skipping");return}t&&t(),n||(n=(s=e==null?void 0:e.obiWidgetConfig)==null?void 0:s.apiKey);let i;try{i=((a=e.ObiSDK)==null?void 0:a.q)||[]}catch{i=[]}const r=new g_(n);return e.ObiSDK=r.dispatchCommand,await r.initialise({queuedCommands:i}),e.obi=r,r.mountWidget(),r}function Mm(){}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{Nm(void 0,Mm)}):Nm(void 0,Mm)})();
@@ -52,5 +52,5 @@ a=extmap-allow-mixed`)!==-1){const s=r.sdp.split(`
52
52
  100% { transform: translateX(344px); }
53
53
  }
54
54
  `}),m("article",{style:n.skeletonContainer,role:"status","aria-label":"Loading content",children:[m("section",{style:n.headerSection,children:[m("div",{style:n.avatar,role:"img","aria-label":"Loading avatar",children:m("div",{style:n.shimmer})}),m("div",{style:n.textLines,children:[m("div",{style:n.textLine,role:"presentation","aria-label":"Loading text line 1",children:m("div",{style:n.shimmer})}),m("div",{style:n.textLine,role:"presentation","aria-label":"Loading text line 2",children:m("div",{style:n.shimmer})})]})]}),m("section",{style:n.contentSection,children:m("div",{style:n.contentBlock,role:"presentation","aria-label":"Loading card content",children:m("div",{style:n.shimmer})})})]})]})}function Wx({}){const n={host:{display:"block",height:"161px"},shareContainer:{width:"480px",height:"240px",borderRadius:"12px",display:"grid",placeItems:"center",overflow:"hidden",position:"relative",backgroundColor:"var(--obi-color-tint)"},controlsRow:{zIndex:10,gridRowStart:1,gridColumnStart:1,display:"flex",alignSelf:"flex-start",marginTop:"36px",alignItems:"center",gap:"8px"},monitorIconContainer:{display:"flex",height:"40px",width:"40px",aspectRatio:"1",alignItems:"center",justifyContent:"center",gap:"8px",borderRadius:"2px",border:"1px solid #E4E4E7",background:"#F8FAFC",padding:"8px"},monitorIcon:{width:"24px",height:"24px",color:"#111827"},tabSelector:{display:"flex",width:"260px",height:"40px",padding:"4px",alignItems:"center",borderRadius:"2px",background:"#E4E4E7"},tabButton:e=>({display:"flex",flex:1,alignSelf:"stretch",alignItems:"center",justifyContent:"center",gap:"10px",borderRadius:"2px",padding:"6px 12px",border:"none",cursor:"pointer",fontFamily:"'Inter', sans-serif",fontSize:"14px",fontWeight:500,opacity:e?1:.4,background:e?"white":"#F8FAFC",boxShadow:e?"0 1px 2px 0 rgba(0, 0, 0, 0.05)":"none"}),skeletonContainer:{marginTop:"104px",gridColumnStart:1,gridRowStart:1,alignSelf:"center"}};return m("div",{style:n.host,children:m("div",{style:n.shareContainer,children:[m("div",{style:n.controlsRow,children:[m("div",{style:n.monitorIconContainer,children:m("svg",{style:n.monitorIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[m("rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",ry:"2"}),m("line",{x1:"8",x2:"16",y1:"21",y2:"21"}),m("line",{x1:"12",x2:"12",y1:"17",y2:"21"})]})}),m("div",{style:n.tabSelector,children:[m("button",{style:n.tabButton(!1),children:"Tab"}),m("button",{style:n.tabButton(!0),children:"Window"})]})]}),m("div",{style:n.skeletonContainer,children:m(Hx,{})})]})})}function qx({session:n,speakingState:e,onAction:t}){return m(Di,{title:"Connect your screen",subtitle:"Watch for the prompt in your browser",agentName:n.agentName||"Obi",buttonText:"Share screen",speakingState:e,description:`${n.agentName||"Obi"} will guide you through ${n.appName||"the app"} by watching your screen.`,centerVisual:m(Wx,{}),actionDisabled:!0,onAction:t})}function Kx({session:n,speakingState:e,spectrum:t,onAction:i}){return m(Di,{title:"Overview",subtitle:`${n.agentName||"Obi"} will start your tutorial in a moment`,agentName:n.agentName||"Obi",speakingState:e,description:`Get ready to explore ${n.appName||"the app"} with ${n.agentName||"Obi"}.`,centerVisual:m(lm,{spectrum:t}),actionDisabled:!0,onAction:i})}function $x({id:n,name:e,description:t,duration:i=10,order:r=0,selected:s=!1,completed:a=!1,onClick:o}){return m("div",{className:`course-container ${s?"selected":""}`,onClick:()=>{o==null||o({id:n,name:e,description:t,duration:i,order:r})},children:[m("div",{className:"header-row",children:[m("h2",{className:"course-title",children:e}),a&&m("span",{className:"duration",children:"Completed"})]}),t&&m("p",{className:"course-description",children:t})]})}function Yx({courses:n=[],selectedCourseId:e=null,loading:t=!1,error:i="",onCourseSelect:r}){const[s,a]=X(""),o=u=>{const d=u.currentTarget;a(d.value)},c=u=>{r==null||r(u)};if(t)return m("div",{className:"loading",children:"Loading..."});if(i)return m("div",{className:"error",children:i});if(!n||n.length===0)return m("div",{className:"empty",children:"No courses available"});const l=n.filter(u=>u.name.toLowerCase().includes(s.toLowerCase())||(u.description||"").toLowerCase().includes(s.toLowerCase()));return m("div",{className:"tour-select",children:[m("div",{className:"controls",children:[m("div",{className:"tabs",children:m("button",{className:"tab active",children:"All"})}),m("div",{className:"filter",children:[m("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m("path",{d:"M10.0417 8.75002H9.42087L9.20004 8.53502C9.96921 7.63585 10.4417 6.47502 10.4417 5.20835C10.4417 2.56085 8.32254 0.441681 5.67504 0.441681C3.02754 0.441681 0.908374 2.56085 0.908374 5.20835C0.908374 7.85585 3.02754 9.97502 5.67504 9.97502C6.94171 9.97502 8.10254 9.50252 9.00171 8.73335L9.22671 8.95418V9.57502L13.2167 13.5592L14.375 12.4008L10.0417 8.75002ZM5.67504 8.75002C3.72754 8.75002 2.15837 7.18085 2.15837 5.20835C2.15837 3.23585 3.72754 1.66668 5.67504 1.66668C7.62254 1.66668 9.19171 3.23585 9.19171 5.20835C9.19171 7.18085 7.62254 8.75002 5.67504 8.75002Z",fill:"#6B7280"})}),m("input",{type:"text",placeholder:"Search...",value:s,onInput:o})]})]}),m("div",{className:"course-grid",children:l.sort((u,d)=>(u.order||0)-(d.order||0)).map(u=>{const d=u.id===e;return m($x,{id:u.id,name:u.name,description:u.description||"",duration:u.duration,order:u.order||0,completed:u.completed,selected:d,onClick:c},u.id)})})]})}function Xx({open:n,courses:e=[],loading:t=!1,error:i="",title:r="AI Coach",productName:s,onClose:a,onCourseSelect:o,onCourseHighlight:c}){const[l,u]=X(null),d=f=>{u(f),c==null||c(f)},h=()=>{l&&o&&o(l)};return m(Ip,{open:n,onClose:a,size:"large",preventOutsideClick:!0,children:m("div",{className:"tour-select-modal-container",children:[m("div",{className:"header",children:[m("div",{className:"icon",style:{color:"white"},children:m(Kp,{})}),m("div",{className:"title-section",children:t?m(Ke,{children:[m("div",{className:"skeleton skeleton-title"}),m("div",{className:"skeleton skeleton-subtitle"})]}):m(Ke,{children:[m("h1",{children:r}),m("p",{className:"subtitle",children:["Start a tutorial and learn how to use ",s," through an interactive conversation."]})]})})]}),m("div",{className:"course-list-wrapper",children:m(Yx,{courses:e,selectedCourseId:(l==null?void 0:l.id)||"",loading:t,error:i,onCourseSelect:d})}),m("div",{className:"footer",children:[m("button",{className:"obi-button footer-button",onClick:h,disabled:!l,children:[m("span",{children:"Get started"}),m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",children:m("path",{d:"M3.83325 8.00065H13.1666M13.1666 8.00065L8.49992 3.33398M13.1666 8.00065L8.49992 12.6673",stroke:l?"#FAFAFA":"#999","stroke-width":"1.33","stroke-linecap":"round","stroke-linejoin":"round"})})]}),m("p",{className:"footer-text",children:"Sessions are securely recorded for quality improvement purposes."})]})]})})}function Jx({session:n,sessionState:e,speakingState:t,spectrum:i,onStart:r,onContinue:s,onShareMicrophone:a,onShareScreen:o,onModalChange:c}){const[l,u]=X(null);function d(f){l!==f&&(c==null||c(f),u(f))}function h(){e==="connecting"||e==="connected"||!e?r==null||r():e==="volume-check"||e==="mic-check"?s==null||s():e==="mic-share"?a==null||a():e==="screen-share"&&(o==null||o())}return pa(()=>{switch(e){case null:case"connecting":case"connected":return d("session-start"),m(Bx,{session:n,speakingState:t,onAction:h});case"volume-check":return d("voice-guidance"),m(zx,{session:n,speakingState:t,spectrum:i,onAction:h});case"mic-check":return d("overview"),m(Kx,{session:n,speakingState:t,spectrum:i,onAction:h});case"mic-share":return d("share-mic"),m(Vx,{session:n,speakingState:t,onAction:h});case"screen-share":return d("share-screen"),m(qx,{session:n,speakingState:t,onAction:h});case"navigate":return d("navigate"),m(px,{session:n,speakingState:t,onAction:h});default:return null}},[e,t,r,s,a,o])}function Qx(n){const{session:e,sessionState:t,speakingState:i,spectrum:r,onClose:s,onStart:a,onContinue:o,onShareMicrophone:c,onShareScreen:l,onModalChange:u}=n,[d,h]=X(null);function f(v){u==null||u(v),h(v)}function g(v){s(v,d),h(null)}const p=(n.open??!0)&&(!t||t==="connecting"||t==="connected"||t==="volume-check"||t==="mic-check"||t==="mic-share"||t==="screen-share"||t==="navigate");return m(lx,{open:p,onClose:g,preventOutsideClick:!0,children:()=>m(Jx,{session:e,sessionState:t,speakingState:i,spectrum:r,onStart:a,onContinue:o,onShareMicrophone:c,onShareScreen:l,onModalChange:f})})}const Zx={identify:()=>{},track:()=>{},page:()=>{},reset:()=>{}};function ni(){return Zx}const ew=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,um="9.23.0",Ui=globalThis;function tw(n,e,t=Ui){const i=t.__SENTRY__=t.__SENTRY__||{},r=i[um]=i[um]||{};return r[n]||(r[n]=e())}const nw="Sentry Logger ",dm=["debug","info","warn","error","log","assert","trace"],hm={};function iw(n){if(!("console"in Ui))return n();const e=Ui.console,t={},i=Object.keys(hm);i.forEach(r=>{const s=hm[r];t[r]=e[r],e[r]=s});try{return n()}finally{i.forEach(r=>{e[r]=t[r]})}}function rw(){let n=!1;const e={enable:()=>{n=!0},disable:()=>{n=!1},isEnabled:()=>n};return ew?dm.forEach(t=>{e[t]=(...i)=>{n&&iw(()=>{Ui.console[t](`${nw}[${t}]:`,...i)})}}):dm.forEach(t=>{e[t]=()=>{}}),e}tw("logger",rw);const fm=1e3;function sw(){return Date.now()/fm}function aw(){const{performance:n}=Ui;if(!(n!=null&&n.now))return sw;const e=Date.now()-n.now(),t=n.timeOrigin==null?e:n.timeOrigin;return()=>(t+n.now())/fm}aw();const pm=50,Bi="?",mm=/\(error: (.*)\)/,gm=/captureMessage|captureException/;function ow(...n){const e=n.sort((t,i)=>t[0]-i[0]).map(t=>t[1]);return(t,i=0,r=0)=>{const s=[],a=t.split(`
55
- `);for(let o=i;o<a.length;o++){const c=a[o];if(c.length>1024)continue;const l=mm.test(c)?c.replace(mm,"$1"):c;if(!l.match(/\S*Error: /)){for(const u of e){const d=u(l);if(d){s.push(d);break}}if(s.length>=pm+r)break}}return cw(s.slice(r))}}function cw(n){if(!n.length)return[];const e=Array.from(n);return/sentryWrapped/.test(Sa(e).function||"")&&e.pop(),e.reverse(),gm.test(Sa(e).function||"")&&(e.pop(),gm.test(Sa(e).function||"")&&e.pop()),e.slice(0,pm).map(t=>({...t,filename:t.filename||Sa(e).filename,function:t.function||Bi}))}function Sa(n){return n[n.length-1]||{}}var vm;(function(n){n[n.PENDING=0]="PENDING";const e=1;n[n.RESOLVED=e]="RESOLVED";const t=2;n[n.REJECTED=t]="REJECTED"})(vm||(vm={})),Ui._sentryClientToLogBufferMap=new WeakMap,typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;const lw=30,uw=50;function Zc(n,e,t,i){const r={filename:n,function:e==="<anonymous>"?Bi:e,in_app:!0};return t!==void 0&&(r.lineno=t),i!==void 0&&(r.colno=i),r}const dw=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,hw=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,fw=/\((\S*)(?::(\d+))(?::(\d+))\)/,pw=n=>{const e=dw.exec(n);if(e){const[,i,r,s]=e;return Zc(i,Bi,+r,+s)}const t=hw.exec(n);if(t){if(t[2]&&t[2].indexOf("eval")===0){const s=fw.exec(t[2]);s&&(t[2]=s[1],t[3]=s[2],t[4]=s[3])}const[i,r]=bm(t[1]||Bi,t[2]);return Zc(r,i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},mw=[lw,pw],gw=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,vw=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;ow(...[mw,[uw,n=>{const e=gw.exec(n);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const r=vw.exec(e[3]);r&&(e[1]=e[1]||"eval",e[3]=r[1],e[4]=r[2],e[5]="")}let t=e[3],i=e[1]||Bi;return[i,t]=bm(i,t),Zc(t,i,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}]]);const bm=(n,e)=>{const t=n.indexOf("safari-extension")!==-1,i=n.indexOf("safari-web-extension")!==-1;return t||i?[n.indexOf("@")!==-1?n.split("@")[0]:Bi,t?`safari-extension:${e}`:`safari-web-extension:${e}`]:[n,e]};typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function bw(n){let e=n.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*\*/g,"__DOUBLE_STAR__").replace(/\*/g,"[^/]*").replace(/__DOUBLE_STAR__/g,".*").replace(/\?/g,"[^/]");return new RegExp(`^${e}$`,"i")}function yw(n,e){if(!e||e.length===0)return!1;const t=n.replace(/^https?:\/\//,"").replace(/\/$/,"");return e.some(i=>{try{const r=bw(i);return r.test(t)||r.test(n)}catch(r){return console.warn(`Invalid URL pattern: ${i}`,r),!1}})}function Ca(n){if(!n||n.length===0)return!1;const e=window.location.origin+window.location.pathname;return yw(e,n)}function Tw(n,e,t,i){function r(s){return s instanceof t?s:new t(function(a){a(s)})}return new(t||(t=Promise))(function(s,a){function o(u){try{l(i.next(u))}catch(d){a(d)}}function c(u){try{l(i.throw(u))}catch(d){a(d)}}function l(u){u.done?s(u.value):r(u.value).then(o,c)}l((i=i.apply(n,e||[])).next())})}function kw(n,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=o(0),a.throw=o(1),a.return=o(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(l){return function(u){return c([l,u])}}function c(l){if(i)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(t=0)),t;)try{if(i=1,r&&(s=l[0]&2?r.return:l[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,l[1])).done)return s;switch(r=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,r=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){t.label=l[1];break}if(l[0]===6&&t.label<s[1]){t.label=s[1],s=l;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(l);break}s[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(n,t)}catch(u){l=[6,u],r=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;for(var ym="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wr=typeof Uint8Array>"u"?[]:new Uint8Array(256),xa=0;xa<ym.length;xa++)wr[ym.charCodeAt(xa)]=xa;for(var Sw=function(n){var e=n.length*.75,t=n.length,i,r=0,s,a,o,c;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),u=Array.isArray(l)?l:new Uint8Array(l);for(i=0;i<t;i+=4)s=wr[n.charCodeAt(i)],a=wr[n.charCodeAt(i+1)],o=wr[n.charCodeAt(i+2)],c=wr[n.charCodeAt(i+3)],u[r++]=s<<2|a>>4,u[r++]=(a&15)<<4|o>>2,u[r++]=(o&3)<<6|c&63;return l},Cw=function(n){for(var e=n.length,t=[],i=0;i<e;i+=2)t.push(n[i+1]<<8|n[i]);return t},xw=function(n){for(var e=n.length,t=[],i=0;i<e;i+=4)t.push(n[i+3]<<24|n[i+2]<<16|n[i+1]<<8|n[i]);return t},ii=5,el=6+5,tl=2,ww=el-ii,Tm=65536>>ii,_w=1<<ii,nl=_w-1,Ew=1024>>ii,Rw=Tm+Ew,Pw=Rw,Iw=32,Ow=Pw+Iw,Aw=65536>>el,Nw=1<<ww,Mw=Nw-1,km=function(n,e,t){return n.slice?n.slice(e,t):new Uint16Array(Array.prototype.slice.call(n,e,t))},Lw=function(n,e,t){return n.slice?n.slice(e,t):new Uint32Array(Array.prototype.slice.call(n,e,t))},Dw=function(n,e){var t=Sw(n),i=Array.isArray(t)?xw(t):new Uint32Array(t),r=Array.isArray(t)?Cw(t):new Uint16Array(t),s=24,a=km(r,s/2,i[4]/2),o=i[5]===2?km(r,(s+i[4])/2):Lw(i,Math.ceil((s+i[4])/4));return new Uw(i[0],i[1],i[2],i[3],a,o)},Uw=function(){function n(e,t,i,r,s,a){this.initialValue=e,this.errorValue=t,this.highStart=i,this.highValueIndex=r,this.index=s,this.data=a}return n.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>ii],t=(t<<tl)+(e&nl),this.data[t];if(e<=65535)return t=this.index[Tm+(e-55296>>ii)],t=(t<<tl)+(e&nl),this.data[t];if(e<this.highStart)return t=Ow-Aw+(e>>el),t=this.index[t],t+=e>>ii&Mw,t=this.index[t],t=(t<<tl)+(e&nl),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},n}(),Sm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Bw=typeof Uint8Array>"u"?[]:new Uint8Array(256),wa=0;wa<Sm.length;wa++)Bw[Sm.charCodeAt(wa)]=wa;var Cm=null;function Fw(n){return Tw(this,void 0,void 0,function(){var e;return kw(this,function(t){switch(t.label){case 0:return Cm!==null?[3,2]:[4,n()];case 1:if(e=t.sent(),!e.base64||!e.byte_length)throw new Error("Invalid graphemes response");Cm=Dw(e.base64,e.byte_length),t.label=2;case 2:return[2]}})})}for(var xm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",jw=typeof Uint8Array>"u"?[]:new Uint8Array(256),_a=0;_a<xm.length;_a++)jw[xm.charCodeAt(_a)]=_a;function Vw(n,e,t,i){function r(s){return s instanceof t?s:new t(function(a){a(s)})}return new(t||(t=Promise))(function(s,a){function o(u){try{l(i.next(u))}catch(d){a(d)}}function c(u){try{l(i.throw(u))}catch(d){a(d)}}function l(u){u.done?s(u.value):r(u.value).then(o,c)}l((i=i.apply(n,e||[])).next())})}function Gw(n,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=o(0),a.throw=o(1),a.return=o(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(l){return function(u){return c([l,u])}}function c(l){if(i)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(t=0)),t;)try{if(i=1,r&&(s=l[0]&2?r.return:l[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,l[1])).done)return s;switch(r=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,r=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){t.label=l[1];break}if(l[0]===6&&t.label<s[1]){t.label=s[1],s=l;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(l);break}s[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(n,t)}catch(u){l=[6,u],r=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;for(var wm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_r=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ea=0;Ea<wm.length;Ea++)_r[wm.charCodeAt(Ea)]=Ea;for(var zw=function(n){var e=n.length*.75,t=n.length,i,r=0,s,a,o,c;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),u=Array.isArray(l)?l:new Uint8Array(l);for(i=0;i<t;i+=4)s=_r[n.charCodeAt(i)],a=_r[n.charCodeAt(i+1)],o=_r[n.charCodeAt(i+2)],c=_r[n.charCodeAt(i+3)],u[r++]=s<<2|a>>4,u[r++]=(a&15)<<4|o>>2,u[r++]=(o&3)<<6|c&63;return l},Hw=function(n){for(var e=n.length,t=[],i=0;i<e;i+=2)t.push(n[i+1]<<8|n[i]);return t},Ww=function(n){for(var e=n.length,t=[],i=0;i<e;i+=4)t.push(n[i+3]<<24|n[i+2]<<16|n[i+1]<<8|n[i]);return t},ri=5,il=6+5,rl=2,qw=il-ri,_m=65536>>ri,Kw=1<<ri,sl=Kw-1,$w=1024>>ri,Yw=_m+$w,Xw=Yw,Jw=32,Qw=Xw+Jw,Zw=65536>>il,e_=1<<qw,t_=e_-1,Em=function(n,e,t){return n.slice?n.slice(e,t):new Uint16Array(Array.prototype.slice.call(n,e,t))},n_=function(n,e,t){return n.slice?n.slice(e,t):new Uint32Array(Array.prototype.slice.call(n,e,t))},i_=function(n,e){var t=zw(n),i=Array.isArray(t)?Ww(t):new Uint32Array(t),r=Array.isArray(t)?Hw(t):new Uint16Array(t),s=24,a=Em(r,s/2,i[4]/2),o=i[5]===2?Em(r,(s+i[4])/2):n_(i,Math.ceil((s+i[4])/4));return new r_(i[0],i[1],i[2],i[3],a,o)},r_=function(){function n(e,t,i,r,s,a){this.initialValue=e,this.errorValue=t,this.highStart=i,this.highValueIndex=r,this.index=s,this.data=a}return n.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>ri],t=(t<<rl)+(e&sl),this.data[t];if(e<=65535)return t=this.index[_m+(e-55296>>ri)],t=(t<<rl)+(e&sl),this.data[t];if(e<this.highStart)return t=Qw-Zw+(e>>il),t=this.index[t],t+=e>>ri&t_,t=this.index[t],t=(t<<rl)+(e&sl),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},n}(),Rm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s_=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ra=0;Ra<Rm.length;Ra++)s_[Rm.charCodeAt(Ra)]=Ra;var Pm=null;function a_(n){return Vw(this,void 0,void 0,function(){var e;return Gw(this,function(t){switch(t.label){case 0:return Pm!==null?[3,2]:[4,n()];case 1:if(e=t.sent(),!e.base64||!e.byte_length)throw console.error("invalid graphemes response",e),new Error("Invalid graphemes response");Pm=i_(e.base64,e.byte_length),t.label=2;case 2:return[2]}})})}const o_=`:root,:host{--obi-modal-padding: 32px 48px;--obi-modal-background-color: #FFFFFF;--obi-modal-border-radius: 24px;--obi-modal-shadow: 0px 1px 2px rgba(0, 0, 0, .05);--obi-modal-xsmall-width: 320px;--obi-modal-xsmall-height: 240px;--obi-modal-small-width: 480px;--obi-modal-small-height: 400px;--obi-modal-medium-width: 640px;--obi-modal-medium-height: 372px;--obi-modal-large-width: 1200px;--obi-modal-large-height: 700px;--obi-font-family: "Satoshi", sans-serif;--obi-color-primary: #9500FF;--obi-color-primary-50: color-mix(in srgb, var(--obi-color-primary) 50%, white 50%);--obi-color-primary-30: color-mix(in srgb, var(--obi-color-primary) 30%, white 70%);--obi-color-tint: color-mix(in srgb, var(--obi-color-primary) 5%, white 95%);--obi-color-text: #18181B;--obi-course-color-selected: var(--obi-color-primary-50);--obi-course-color-tint: var(--obi-color-tint);--obi-course-progress-step-completed: #B3B3B3;--obi-course-progress-step-incomplete: #D9D9D9;--obi-course-progress-text-color: #757575;font-family:var(--obi-font-family);color:var(--obi-color-text)}.obi-button{font-family:var(--obi-font-family);color:var(--obi-color-text)}dialog{margin:auto;padding:0;border:none;border-radius:var(--obi-modal-border-radius);box-shadow:var(--obi-modal-shadow);background:var(--obi-modal-background-color);box-sizing:border-box}dialog>.modal-content{padding:var(--obi-modal-padding);box-sizing:border-box}dialog,dialog.modal-medium,dialog>.modal-content,dialog.modal-medium>.modal-content{width:var(--obi-modal-medium-width);min-height:var(--obi-modal-medium-height)}dialog.modal-xsmall,dialog.modal-xsmall>.modal-content{width:var(--obi-modal-xsmall-width);min-height:var(--obi-modal-xsmall-height)}dialog.modal-small,dialog.modal-small>.modal-content{width:var(--obi-modal-small-width);min-height:var(--obi-modal-small-height)}dialog.modal-large,dialog.modal-large>.modal-content{width:var(--obi-modal-large-width);min-height:var(--obi-modal-large-height)}dialog::backdrop{background:rgba(0,0,0,.5)}.tour-content{display:block;width:100%;height:100%}.tour-content .container{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;padding:0;width:100%;height:100%}.tour-content .header{display:block;flex-grow:1;flex-direction:column;align-items:center;padding:0;width:100%;margin-bottom:16px}.tour-content .title{width:100%;font-family:Inter,sans-serif;font-style:normal;font-weight:700;font-size:24px;line-height:30px;text-align:center;color:#18181b;margin:0;padding:0}.tour-content .subtitle{width:100%;font-family:Inter,sans-serif;font-style:normal;font-weight:400;font-size:16px;line-height:140%;text-align:center;letter-spacing:-.01em;color:#18181b;margin:0}.tour-content .visual{flex-grow:0;flex-shrink:0;display:flex;align-items:center;justify-content:center;position:relative;margin-bottom:24px}.tour-content .visual.glow{width:390px;border-radius:15px;background-color:var(--obi-color-tint)}.tour-content .description{height:45px;width:100%;font-family:Inter,sans-serif;font-style:normal;font-weight:400;font-size:16px;color:#757575!important;line-height:140%;text-align:center;letter-spacing:-.01em;color:#18181b;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.tour-content .button-container{flex-grow:0;display:flex;flex-direction:column;align-items:center;gap:16px;width:100%}.tour-content .action-button{box-sizing:border-box;display:flex;flex-direction:row;justify-content:center;align-items:center;padding:12px;gap:8px;height:40px;background:#303030;border:1px solid #303030;border-radius:4px;cursor:pointer;text-decoration:none}.tour-content .action-button.disabled{opacity:.6;cursor:not-allowed}.tour-content .button-text{height:16px;font-family:Inter,sans-serif;font-style:normal;font-weight:500;font-size:16px;line-height:100%;color:#fbf3ff}.tour-content.voice-guidance-content .visual .voice-guidance-visual-mobile{display:none}.tour-content.voice-guidance-content .description{height:auto;min-height:45px;display:block;overflow:visible;text-overflow:unset;-webkit-line-clamp:unset;-webkit-box-orient:unset}.tour-content.voice-guidance-content .voice-guidance-copy,.tour-content.voice-guidance-content .voice-guidance-copy-desktop,.tour-content.voice-guidance-content .voice-guidance-copy-mobile{display:block}.tour-content.voice-guidance-content .voice-guidance-copy-mobile,.tour-content.share-mic-content .visual .share-mic-visual-mobile{display:none}.tour-content.share-mic-content .description{height:auto;min-height:45px;display:block;overflow:visible;text-overflow:unset;-webkit-line-clamp:unset;-webkit-box-orient:unset}.tour-content.share-mic-content .share-mic-copy,.tour-content.share-mic-content .share-mic-copy-desktop,.tour-content.share-mic-content .share-mic-copy-mobile{display:block}.tour-content.share-mic-content .share-mic-copy-mobile{display:none}.tour.content-area{height:100%;flex:1;display:flex;flex-direction:column}.tour-footer{width:100%!important;text-align:center;display:flex;align-items:flex-end;justify-content:center;font-family:Inter,sans-serif;font-size:8px;font-weight:200;margin-top:20px}.session-start-content .description{height:48px}@media (max-width: 600px){dialog,dialog.modal-xsmall,dialog.modal-small,dialog.modal-medium,dialog.modal-large,dialog>.modal-content,dialog.modal-xsmall>.modal-content,dialog.modal-small>.modal-content,dialog.modal-medium>.modal-content,dialog.modal-large>.modal-content{width:min(280px,100vw - 32px);max-width:100vw}dialog>.modal-content{padding:32px;min-height:412px;display:flex;flex-direction:column}dialog>.modal-content>.tour.content-area{flex:1}.session-start-content .description{margin-top:18px}.tour-content .title{font-size:20px}.tour-content .subtitle{font-size:14px}.tour-content .description{font-size:13px;height:auto;overflow:visible;text-overflow:unset;display:block;-webkit-line-clamp:unset;-webkit-box-orient:unset}.tour-content .button-text{font-size:14px}.tour-content .visual{display:none}.tour-content.session-start-content .visual{display:flex;flex-shrink:0}.tour-content.session-start-content .obi-static-voice{height:auto}.tour-content.session-start-content .obi-static-voice-visual-title{margin-bottom:8px}.tour-content.session-start-content .obi-static-voice .obi-pill.container{display:none}.tour-content.session-start-content{display:flex;flex-direction:column;flex:1}.tour-content.session-start-content .container{flex:1;width:100%;display:flex;flex-direction:column;align-items:center;min-height:0}.tour-content.session-start-content .header{width:100%;flex:1;display:flex;flex-direction:column;margin-bottom:16px;min-height:0}.tour-content.session-start-content .description{flex:1;width:100%;min-height:0}.tour-content.session-start-content .button-container,.tour-content.session-start-content .tour-footer{width:100%}.tour-content.voice-guidance-content .visual{display:flex;justify-content:center;margin-bottom:24px}.tour-content.voice-guidance-content .visual.glow{width:auto;padding:0;border-radius:0;background:transparent}.tour-content.voice-guidance-content .visual .voice-guidance-visual-desktop{display:none}.tour-content.voice-guidance-content .visual .voice-guidance-visual-mobile{display:flex;justify-content:center;align-items:center}.tour-content.voice-guidance-content .voice-guidance-copy-desktop{display:none}.tour-content.voice-guidance-content .voice-guidance-copy-mobile{display:block}.tour-content.voice-guidance-content .header{display:flex;flex-direction:column;flex-grow:1;justify-content:flex-start;margin-bottom:0}.tour-content.voice-guidance-content .header .description{flex-grow:1;display:flex;text-align:center;justify-content:center}.tour-content.voice-guidance-content .button-container{margin-top:0;flex:0 0 25%;height:auto;min-height:auto;width:100%;align-items:center;justify-content:flex-start}.tour-content.voice-guidance-content .button-container button{align-self:center!important}.tour-content.voice-guidance-content .button-container .action-button{align-self:flex-start}.tour-content.share-mic-content .visual{display:flex;justify-content:center;margin-bottom:24px}.tour-content.share-mic-content .visual.glow{width:auto;padding:0;border-radius:0;background:transparent}.tour-content.share-mic-content .visual .share-mic-visual-desktop{display:none}.tour-content.share-mic-content .visual .share-mic-visual-mobile{display:flex;justify-content:center;align-items:center}.tour-content.share-mic-content .share-mic-copy-desktop{display:none}.tour-content.share-mic-content .share-mic-copy-mobile{display:block}.tour-content.share-mic-content .title{margin-bottom:4px}.tour-content.share-mic-content .header{display:flex;flex-direction:column;flex-grow:1;justify-content:flex-start;margin-bottom:0}.tour-content.share-mic-content .header .description{flex-grow:1;display:flex;text-align:center;justify-content:center}.tour-content.share-mic-content .button-container{margin-top:0;flex:0 0 20%;height:auto;min-height:auto;width:100%;align-items:center;justify-content:flex-start}.tour-content.share-mic-content .button-container button{align-self:center!important}.tour-content.share-mic-content .button-container .action-button{align-self:flex-start}}.obi-close-button{position:absolute;top:24px;right:24px;width:24px;height:24px;cursor:pointer;border:none;background:none;padding:0;display:flex;align-items:center;justify-content:center;z-index:1;outline:none}.obi-close-button:focus{outline:none!important}@media (max-width: 600px){.obi-close-button{top:10px;right:10px}}.obi-pill.container{width:96px;height:30px;display:flex;align-items:center;justify-content:center}.obi-pill.container .pill{display:flex;align-items:center;justify-content:center;width:48px;height:6px;opacity:.7;border-radius:3px;background-color:var(--obi-color-primary);transition:width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out}.obi-pill.container .pill.button{cursor:pointer}.obi-pill.container.user-speaking .pill{background-color:var(--obi-color-primary-30)}.obi-pill.container.active .pill{width:96px;height:30px;border-radius:15px;opacity:1}.obi-pill.container.busy,.obi-pill.container.busy .pill{width:220px}.obi-pill2.container{display:flex;align-items:center;justify-content:center}.obi-pill2.container .pill{display:flex;align-items:center;justify-content:center;min-width:48px;max-width:48px;height:6px;opacity:.7;border-radius:3px;border:1px solid #FFFFFF1F;background-color:var(--obi-color-primary);transform:translateY(0);overflow:hidden;white-space:nowrap;flex:0 0 auto;box-sizing:border-box;padding-left:0;padding-right:0;transition:max-width .15s ease-in-out,min-width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out,padding-left .15s ease-in-out,padding-right .15s ease-in-out}.obi-pill2.container .pill.button{cursor:pointer}.obi-pill2.container:not(.active){transition:height 0s linear .15s;height:6px}.obi-pill2.container:not(.active) .pill{transform:translateY(12px);transition:transform 0s linear .15s,max-width .15s ease-in-out,min-width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out,padding-left .15s ease-in-out,padding-right .15s ease-in-out}.obi-pill2.container.active{transition:none;height:30px}.obi-pill2.container.active .pill{transition:transform 0s,max-width .15s ease-in-out,min-width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out,padding-left .15s ease-in-out,padding-right .15s ease-in-out;max-width:1000px;height:30px;border-radius:15px;opacity:1;padding-left:14px;padding-right:14px}.obi-pill2.container.user-speaking .pill{background-color:var(--obi-color-primary-30)}.obi-pill2.container:not(.active) .pill .text{opacity:0;animation:none}.obi-pill-up.container{display:flex;align-items:flex-end;justify-content:center}.obi-pill-up.container .pill{display:flex;align-items:center;justify-content:center;min-width:48px;max-width:48px;height:6px;opacity:.7;border-radius:3px;border:1px solid #FFFFFF1F;background-color:var(--obi-color-primary);overflow:hidden;white-space:nowrap;flex:0 0 auto;box-sizing:border-box;padding-left:0;padding-right:0;transition:max-width .15s ease-in-out,min-width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out,padding-left .15s ease-in-out,padding-right .15s ease-in-out}.obi-pill-up.container .pill.button{cursor:pointer}.obi-pill-up.container:not(.active){transition:height 0s linear .15s;height:6px}.obi-pill-up.container:not(.active) .pill{transition:max-width .15s ease-in-out,min-width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out,padding-left .15s ease-in-out,padding-right .15s ease-in-out}.obi-pill-up.container.active{transition:none;height:30px}.obi-pill-up.container.active .pill{transition:max-width .15s ease-in-out,min-width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out,padding-left .15s ease-in-out,padding-right .15s ease-in-out;max-width:1000px;height:30px;border-radius:15px;opacity:1;padding-left:14px;padding-right:14px}.obi-pill-up.container.user-speaking .pill{background-color:var(--obi-color-primary-30)}.obi-pill-up.container:not(.active) .pill .text{opacity:0;animation:none}.obi-equaliser{display:flex;align-items:center;gap:2px;height:32px}.obi-equaliser .column{position:relative;display:flex;align-items:center;justify-content:center;width:5px;height:100%}.obi-equaliser .bar{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:3px;border-radius:2px;z-index:1}.obi-panel{box-sizing:border-box;padding:24px;background-color:#fff;box-shadow:0 16px 32px -4px #0000001f,0 4px 8px -2px #00000014,inset 0 1px #fff9;border-radius:12px}.obi-popout{position:relative;display:inline-block}.obi-popout .obi-popout-target{cursor:pointer;display:inline-block}.obi-popout .content{position:absolute;background-color:#fff0;z-index:100;animation:popout-appear .15s ease-out}@keyframes popout-appear{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.obi-round-button-popout{z-index:600}.obi-round-button{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;padding:0;box-sizing:border-box;background-color:#fff;border:1px solid #D9D9D9;box-shadow:none}.obi-round-button:hover{cursor:pointer}.obi-round-button:disabled{box-shadow:none;background-color:#f0f0f0;color:#999;cursor:not-allowed!important;pointer-events:none}.obi-round-button-title{padding:8px 16px;border-radius:12px;background-color:#fff;color:#000;font-size:14px;font-weight:400;white-space:nowrap;box-shadow:0 4px 12px #00000026,0 2px 4px #0000001a;border:1px solid rgba(0,0,0,.08);z-index:5000;pointer-events:none;-webkit-user-select:none;user-select:none;position:relative}.obi-round-button-title:after{content:"";position:absolute;top:100%;left:50%;transform:translate(-50%);width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid white;filter:drop-shadow(0 2px 2px rgba(0,0,0,.1))}.obi-message{display:inline-flex;align-items:center;justify-content:center;padding:0 15px;text-wrap:nowrap;font-size:16px;font-weight:400;height:30px;box-sizing:border-box;background-color:#fff;border-radius:15px;border:1px solid #D9D9D9}.obi-message.clickable{box-shadow:0 4px 6px #0000001a;cursor:pointer}.obi-loading-dots{display:flex;align-items:center;gap:2px;height:32px}.obi-loading-dots .column{position:relative;display:flex;align-items:center;justify-content:center;width:5px;height:100%}.obi-loading-dots .dot{width:3px;height:3px;border-radius:2px;position:relative;z-index:2}.obi-loading-dots .bar{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:3px;border-radius:2px;z-index:1;height:0px;animation:bounce .9s ease-in-out infinite}@keyframes bounce{0%,60%,to{height:0px}30%{height:16px}}.obi-exit-survey{position:relative;width:320px;margin:0 auto;-webkit-backdrop-filter:none;backdrop-filter:none;background:white;z-index:9999}.obi-exit-survey-container{display:flex;flex-direction:column;align-items:center;padding:0;gap:16px;width:272px;flex:none;align-self:stretch}.obi-exit-survey-header{display:flex;flex-direction:column;align-items:flex-start;padding:0;gap:4px;width:272px;flex:none;align-self:stretch}.obi-exit-survey-title{width:272px;height:22px;margin:0;font-family:Satoshi,sans-serif;font-size:16px;font-weight:600;line-height:140%;text-align:center;color:#1e1e1e;flex:none;align-self:stretch}.obi-exit-survey-subtitle{width:272px;height:20px;margin:0;font-family:Satoshi,sans-serif;font-style:normal;font-weight:400;font-size:14px;line-height:140%;text-align:center;color:#757575;flex:none;align-self:stretch}.obi-exit-survey-options{display:flex;flex-direction:column;align-items:flex-start;padding:0;gap:4px;width:272px;flex:none;align-self:stretch}.obi-exit-survey-options textarea{height:80px;resize:none;outline:none}.obi-exit-survey-button{box-sizing:border-box;display:flex;flex-direction:row;justify-content:center;align-items:center;padding:12px;gap:8px;width:272px;height:44px;border-radius:12px;cursor:pointer;font-family:Satoshi,sans-serif;font-style:normal;font-weight:400;font-size:14px;line-height:140%;flex:none;align-self:stretch;transition:all .2s ease}.obi-exit-survey-button:hover{transform:translateY(-1px);box-shadow:0 4px 8px #0000001a}.obi-exit-survey-button:active{transform:translateY(0)}.obi-exit-survey-button-continue{background:rgba(255,255,255);border:1px solid rgba(217,217,217);color:#1e1e1e}.obi-exit-survey-button-continue:hover{background:rgba(255,255,255);border-color:#d9d9d9}.obi-exit-survey-button-wrap-up{background:#303030;border:1px solid rgba(217,217,217);color:#fff;font-weight:500}.obi-exit-survey-button-wrap-up:hover{background:#404040;border-color:#d9d9d9}.obi-exit-survey-reason-button{background:rgba(255,255,255);border:1px solid rgba(217,217,217);color:#1e1e1e}.obi-exit-survey-reason-button:hover{background:rgba(255,255,255);border-color:#d9d9d9}.obi-exit-survey-reason-button-secondary{display:flex;flex-direction:row;justify-content:center;align-items:center;padding:4px 6px;gap:8px;width:272px;height:28px;border-radius:4px;cursor:pointer;border:none;background:transparent;font-family:Satoshi,sans-serif;font-style:normal;font-weight:400;font-size:14px;line-height:140%;color:#5a5a5a;flex:none;align-self:stretch;transition:all .2s ease}.obi-exit-survey-reason-button-secondary:hover{background:rgba(0,0,0,.05);color:#3a3a3a}.obi-message-input{display:inline-block;position:relative}.obi-message-input .container{width:212px;height:30px;box-sizing:border-box;background:#FFFFFF;border:1px solid var(--obi-color-primary-30);border-radius:15px;display:flex;align-items:center;flex:none;order:2;flex-grow:0;transition:height .3s ease,border-radius .3s ease;animation:expandMessageInput .2s cubic-bezier(.4,0,.2,1) 0s 1 normal both}.obi-message-input.expanded .container{height:auto;min-height:140px;border-radius:15px;align-items:flex-start;padding:8px 0;animation:expandMessageInputWide .2s cubic-bezier(.4,0,.2,1) 0s 1 normal both}.obi-message-input .field{flex:1 1 0;border:none;background:transparent;outline:none;font-family:Satoshi,sans-serif;font-style:normal;font-weight:400;font-size:14px;line-height:18px;color:#000;padding:4px 3px 0 16px;height:100%;box-sizing:border-box;min-width:0;resize:none;overflow:hidden;scrollbar-width:none;transition:padding .3s ease;animation:fadeInInputField .2s cubic-bezier(.4,0,.2,1) 0s 1 normal both}.obi-message-input.expanded .field{height:auto;min-height:120px;padding:4px 16px;overflow-y:auto;line-height:18px}.obi-message-input .field::placeholder{color:#999}.obi-message-input .field:disabled{cursor:not-allowed;opacity:.6}.obi-message-input .send{position:absolute;bottom:3px;right:4px;flex-shrink:0;width:24px;height:24px;background:var(--obi-color-primary);border:none;border-radius:9999px;display:flex;justify-content:center;align-items:center;cursor:pointer;transition:all .3s ease;color:#fff}.obi-message-input.expanded .send{width:28px;height:28px;position:relative;top:0;bottom:0;margin-right:0}.obi-message-input.expanded .button-container{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:8px}.obi-message-input .send:disabled{background:#CCCCCC;cursor:not-allowed;transform:none}.obi-message-input .container:focus-within{border-color:var(--obi-color-primary);box-shadow:0 0 0 2px #9008ff1a}@keyframes expandMessageInput{0%{width:32px}to{width:212px}}@keyframes expandMessageInputWide{0%{width:212px}to{width:340px}}@keyframes fadeInInputField{0%{opacity:0}60%{opacity:0}to{opacity:1}}.obi-course-progress{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:6px;width:100%;min-width:0;height:24px;flex:none;order:1;align-self:stretch;flex-grow:0}.obi-course-progress-steps{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0;gap:2px;width:100%;height:14px;flex:none;order:0;align-self:stretch;flex-grow:0}.obi-course-progress-container{display:flex;flex-direction:column;justify-content:center;align-items:stretch;padding:6px 0;height:100%;flex:1;min-width:0;cursor:pointer}.obi-course-progress-step{width:100%;height:2px;background:var(--obi-course-progress-step-incomplete);border-radius:24px;flex:none;order:0;align-self:stretch;flex-grow:0;cursor:pointer}.obi-course-progress-step.completed{background:var(--obi-course-progress-step-completed)}.obi-course-progress-description{width:100%;height:14px;font-family:var(--obi-font-family);font-style:normal;font-weight:500;font-size:14px;line-height:100%;color:var(--obi-course-progress-text-color);flex:none;order:1;flex-grow:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.obi-course-progress .obi-widget-popout,.obi-course-progress .obi-widget-popout .content{z-index:800}.obi-widget-popout{z-index:400}.obi-widget-panel{display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;min-width:222px;width:min-content;padding:12px;box-sizing:border-box;border-radius:27px;background:white;transition:background .1s ease-out .1s,box-shadow .1s ease-out .1s}.obi-widget-panel:not(.messaging){width:256px}.obi-widget-panel.tool-usage{width:384px}.obi-widget-panel:not(.expanded){background:transparent;border:none;box-shadow:none;transition:background .1s ease-out .1s,border .1s ease-out .1s,box-shadow .1s ease-out .1s}.obi-widget-panel.maximized{transform:translateY(-110px)}.obi-widget-panel .obi-widget{display:flex;align-items:center;min-width:192px;padding-left:58px;box-sizing:border-box;gap:4px}.obi-widget-panel .obi-widget.active.in-plan{padding-left:0}.obi-widget-panel .obi-widget.active.in-plan .obi-round-button{animation:fade-in-button .2s ease-out .15s both}.obi-widget-panel .obi-widget.active .obi-equaliser{animation:fade-in-equaliser .2s ease-out .15s both}@keyframes fade-in-button{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes fade-in-equaliser{0%{opacity:0}to{opacity:1}}.obi-widget-panel .obi-widget-course-progress{display:block;width:100%;max-width:220px;max-height:40px;opacity:1;transform:translateY(0);overflow:visible;position:relative;z-index:800;transition:max-height .3s ease-in-out,opacity .3s ease-in-out,transform .3s ease-in-out}.obi-widget-panel .obi-widget-course-progress.expanded{max-width:330px}@keyframes expand-course-progress{0%{max-height:0;opacity:0;transform:translateY(-10px)}to{max-height:40px;opacity:1;transform:translateY(0)}}.obi-widget-pill-text{font-size:16px;font-weight:400;color:#fff;opacity:0;animation:fade-in-pill-text .3s ease-in-out forwards}@keyframes fade-in-pill-text{0%{opacity:0}40%{opacity:0}to{opacity:1}}.obi-widget-buttons{display:flex;flex-direction:row;gap:4px}.obi-widget-out-of-plan{display:flex;align-items:center;gap:0}.obi-widget-out-of-plan .text{font-size:16px;color:#fff;display:inline-flex;align-items:center;gap:8px;animation:fade-in-pill-text .3s ease-in-out forwards}.obi-widget-out-of-plan .round-button{display:none;animation:fade-in-button .2s ease-out .15s both}.obi-widget-out-of-plan .message{display:none}.obi-widget-out-of-plan.active{gap:0}.obi-widget-out-of-plan.active:hover,.obi-widget-out-of-plan.active.hover{gap:4px}.obi-widget-out-of-plan.active:hover .round-button,.obi-widget-out-of-plan.active:hover .message,.obi-widget-out-of-plan.active.hover .round-button,.obi-widget-out-of-plan.active.hover .message{display:flex}.obi-widget-draggable .obi-widget-panel{cursor:grab}.obi-widget-draggable.dragging .obi-widget-panel{cursor:grabbing;-webkit-user-select:none;user-select:none}.obi-static-voice{height:96px;display:flex;flex-direction:column;align-items:center;justify-content:center}.obi-static-voice-visual-title{font-family:Inter,sans-serif;font-style:normal;font-weight:600;font-size:14px;color:var(--obi-color-primary);background-color:var(--obi-color-tint);padding:8px 12px;border-radius:20px;margin-bottom:24px}.obi-static-voice-visual{display:flex;align-items:center;gap:2px;height:32px}.obi-static-voice-visual .column{position:relative;display:flex;align-items:center;justify-content:center;width:5px;height:100%}.obi-static-voice-visual .bar{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:3px;background-color:#fff;border-radius:2px;z-index:1}.obi-static-voice-visual .bar-1{height:2px}.obi-static-voice-visual .bar-2{height:6px}.obi-static-voice-visual .bar-3{height:10px}.obi-static-voice-visual .bar-4,.obi-static-voice-visual .bar-5{height:16px}.obi-static-voice-visual .bar-6{height:10px}.obi-static-voice-visual .bar-7{height:6px}.obi-static-voice-visual .bar-8{height:2px}@layer components{.share-mic-mobile-visual{width:216px;height:103px;border-radius:12px;background:var(--obi-course-color-tint, var(--obi-color-tint, #F3E3FF));display:flex;align-items:center;justify-content:center}.share-mic-mobile-controls{display:flex;align-items:center;gap:12px;padding:0 12px}.share-mic-mobile-icon{width:52px;height:52px;border-radius:12px;background:#FFFFFF;border:1px solid #E4E4E7;box-shadow:0 2px 4px #0f172a14;display:flex;align-items:center;justify-content:center;color:#111827}.share-mic-mobile-allow{min-width:96px;height:44px;border-radius:10px;border:1px solid #D4D4D8;background:#FFFFFF;box-shadow:0 2px 4px #0f172a14;display:flex;align-items:center;justify-content:center;font-family:Inter,sans-serif;font-size:16px;font-weight:500;color:#111827}}@layer components{.voice-guidance-mobile-visual{width:216px;height:103px;border-radius:12px;background:var(--obi-course-color-tint, var(--obi-color-tint, #F3E3FF));display:flex;align-items:center;justify-content:center}.voice-guidance-mobile-pill{display:flex;align-items:center;justify-content:center;transform:scale(1.25);filter:drop-shadow(0px 12px 25px var(--obi-color-primary-30, rgba(149, 0, 255, .35)))}.voice-guidance-mobile-pill .obi-pill.container{display:flex;align-items:center;justify-content:center}}.tour-select{display:block;font-family:Inter,sans-serif}.course-container{display:flex;padding:20px;align-items:flex-start;gap:8px;height:180px;border-radius:6px;border:1px solid rgba(0,0,0,.6);background:#fff;cursor:pointer;transition:all .2s;flex-direction:column;box-sizing:border-box;overflow:hidden}.course-container:hover{background-color:#f9fafb;border-color:#d1d5db;box-shadow:0 1px 2px #0000000d}.course-container:active{transform:scale(.98)}.course-container.selected{border-radius:6px;border:1px solid var(--obi-course-color-selected);background:var(--obi-course-color-tint)}.course-container.selected:hover{background:var(--obi-course-color-tint)}.header-row{display:flex;justify-content:space-between;align-items:flex-start;align-self:stretch;flex-shrink:0;text-align:left}.course-title{color:#000;font-family:Inter,sans-serif;font-size:20px;font-style:normal;font-weight:500;line-height:100%;letter-spacing:-.2px;margin:0}.duration{display:flex;padding:4px 12px;justify-content:center;align-items:center;gap:8px;border-radius:9999px;background:var(--obi-course-color-tint);color:#000;font-family:Inter,sans-serif;font-size:14px;font-style:normal;font-weight:500;line-height:100%;letter-spacing:-.14px;flex-shrink:0}.course-container.selected .duration{background:#fff}.course-description{flex:1 0 0;color:#0009;font-family:Inter,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:140%;letter-spacing:-.16px;margin:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;text-align:left}.course-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:4px;padding:0;flex:1 0 0;align-self:stretch;min-height:364px}.controls{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.tabs{display:flex;gap:10px}.tab{display:flex;padding:6px 12px;justify-content:center;align-items:center;align-self:stretch;border:none;background:none;cursor:pointer;font-family:Inter,sans-serif;font-size:16px;font-weight:500;color:#0006;border-bottom:2px solid transparent;transition:all .2s}.tab.active{color:#000;border-bottom:2px solid var(--obi-color-primary)}.tab:hover{color:#000}.filter{position:relative;display:flex;align-items:center;width:336px;height:40px}.filter input{color:var(--obi-color-text);caret-color:var(--obi-color-text);padding:8px 12px 8px 36px;border-radius:6px;border:1px solid rgba(0,0,0,.1);background:#fff;font-family:Inter,sans-serif;font-size:14px;line-height:20px;width:100%;height:100%;box-sizing:border-box;outline:none}.filter input:focus{outline:1px solid var(--obi-color-primary);outline-offset:-1px}.filter input::placeholder{color:#0006}.filter svg{position:absolute;left:12px;pointer-events:none}@media (max-width: 767px){.course-grid{grid-template-columns:1fr}}.loading,.error,.empty{display:flex;justify-content:center;align-items:center;margin-top:16px}.error{color:#ef4444}.tour-select-modal-container{display:flex;flex-direction:column;align-items:center;gap:24px;flex:1 0 0;align-self:stretch;font-family:Satoshi,sans-serif;color:#000;text-align:center;max-width:1200px;width:100%;min-height:600px;box-sizing:border-box}.course-list-wrapper{flex:1;overflow-y:auto;width:100%;min-height:0;max-height:424px;padding-right:3px;box-sizing:border-box}.course-list-wrapper::-webkit-scrollbar{width:3px}.course-list-wrapper::-webkit-scrollbar-track{background:transparent}.course-list-wrapper::-webkit-scrollbar-thumb{background-color:#000;border-radius:2px;min-height:20px}.course-list-wrapper::-webkit-scrollbar-thumb:hover{background-color:#333}.header{display:flex;align-items:flex-start;gap:16px;width:100%;text-align:left}.icon{display:flex;width:56px;height:56px;padding:12px;justify-content:center;align-items:center;border-radius:12px;border:1px solid var(--obi-color-primary);background:var(--obi-color-primary);box-sizing:border-box}.icon img{width:32px;height:32px;color:#fff;fill:#fff}.title-section{align-self:stretch;flex:1}.tour-select-modal-container h1{color:#18181b;font-family:Satoshi;font-size:32px;font-style:normal;font-weight:700;line-height:90%;letter-spacing:-.96px;margin:0 0 8px}.subtitle{color:#18181b;font-family:Satoshi;font-size:20px;font-style:normal;font-weight:500;line-height:90%;letter-spacing:-.6px;margin:0}.footer{display:flex;width:360px;flex-direction:column;align-items:center;gap:12px}.footer-button{display:flex;height:48px;padding:16px;justify-content:center;align-items:center;gap:8px;align-self:stretch;border-radius:6px;background:#18181b;border:none;cursor:pointer;color:#fafafa;font-family:Satoshi;font-weight:500;transition:opacity .2s ease}.footer-button:disabled{opacity:.5;cursor:not-allowed}.footer-button:not(:disabled){opacity:1}.footer-button:not(:disabled):hover{background:#27272a}.footer-text{color:#18181b;font-family:Satoshi;font-size:12px;font-style:normal;font-weight:400;line-height:100%;letter-spacing:-.12px;margin:0;text-align:center}.skeleton{background:linear-gradient(90deg,#e5e7eb 25%,#f3f4f6 50%,#e5e7eb 75%);background-size:200% 100%;animation:loading 1.5s infinite;border-radius:4px}@keyframes loading{0%{background-position:200% 0}to{background-position:-200% 0}}.skeleton-title{height:32px;width:60%;margin-bottom:12px}.skeleton-subtitle{height:20px;width:80%}
55
+ `);for(let o=i;o<a.length;o++){const c=a[o];if(c.length>1024)continue;const l=mm.test(c)?c.replace(mm,"$1"):c;if(!l.match(/\S*Error: /)){for(const u of e){const d=u(l);if(d){s.push(d);break}}if(s.length>=pm+r)break}}return cw(s.slice(r))}}function cw(n){if(!n.length)return[];const e=Array.from(n);return/sentryWrapped/.test(Sa(e).function||"")&&e.pop(),e.reverse(),gm.test(Sa(e).function||"")&&(e.pop(),gm.test(Sa(e).function||"")&&e.pop()),e.slice(0,pm).map(t=>({...t,filename:t.filename||Sa(e).filename,function:t.function||Bi}))}function Sa(n){return n[n.length-1]||{}}var vm;(function(n){n[n.PENDING=0]="PENDING";const e=1;n[n.RESOLVED=e]="RESOLVED";const t=2;n[n.REJECTED=t]="REJECTED"})(vm||(vm={})),Ui._sentryClientToLogBufferMap=new WeakMap,typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;const lw=30,uw=50;function Zc(n,e,t,i){const r={filename:n,function:e==="<anonymous>"?Bi:e,in_app:!0};return t!==void 0&&(r.lineno=t),i!==void 0&&(r.colno=i),r}const dw=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,hw=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,fw=/\((\S*)(?::(\d+))(?::(\d+))\)/,pw=n=>{const e=dw.exec(n);if(e){const[,i,r,s]=e;return Zc(i,Bi,+r,+s)}const t=hw.exec(n);if(t){if(t[2]&&t[2].indexOf("eval")===0){const s=fw.exec(t[2]);s&&(t[2]=s[1],t[3]=s[2],t[4]=s[3])}const[i,r]=bm(t[1]||Bi,t[2]);return Zc(r,i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},mw=[lw,pw],gw=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,vw=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;ow(...[mw,[uw,n=>{const e=gw.exec(n);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const r=vw.exec(e[3]);r&&(e[1]=e[1]||"eval",e[3]=r[1],e[4]=r[2],e[5]="")}let t=e[3],i=e[1]||Bi;return[i,t]=bm(i,t),Zc(t,i,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}]]);const bm=(n,e)=>{const t=n.indexOf("safari-extension")!==-1,i=n.indexOf("safari-web-extension")!==-1;return t||i?[n.indexOf("@")!==-1?n.split("@")[0]:Bi,t?`safari-extension:${e}`:`safari-web-extension:${e}`]:[n,e]};typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function bw(n){let e=n.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*\*/g,"__DOUBLE_STAR__").replace(/\*/g,"[^/]*").replace(/__DOUBLE_STAR__/g,".*").replace(/\?/g,"[^/]");return new RegExp(`^${e}$`,"i")}function yw(n,e){if(!e||e.length===0)return!1;const t=n.replace(/^https?:\/\//,"").replace(/\/$/,"");return e.some(i=>{try{const r=bw(i);return r.test(t)||r.test(n)}catch(r){return console.warn(`Invalid URL pattern: ${i}`,r),!1}})}function Ca(n){if(!n||n.length===0)return!1;const e=window.location.origin+window.location.pathname;return yw(e,n)}function Tw(n,e,t,i){function r(s){return s instanceof t?s:new t(function(a){a(s)})}return new(t||(t=Promise))(function(s,a){function o(u){try{l(i.next(u))}catch(d){a(d)}}function c(u){try{l(i.throw(u))}catch(d){a(d)}}function l(u){u.done?s(u.value):r(u.value).then(o,c)}l((i=i.apply(n,e||[])).next())})}function kw(n,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=o(0),a.throw=o(1),a.return=o(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(l){return function(u){return c([l,u])}}function c(l){if(i)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(t=0)),t;)try{if(i=1,r&&(s=l[0]&2?r.return:l[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,l[1])).done)return s;switch(r=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,r=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){t.label=l[1];break}if(l[0]===6&&t.label<s[1]){t.label=s[1],s=l;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(l);break}s[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(n,t)}catch(u){l=[6,u],r=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;for(var ym="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wr=typeof Uint8Array>"u"?[]:new Uint8Array(256),xa=0;xa<ym.length;xa++)wr[ym.charCodeAt(xa)]=xa;for(var Sw=function(n){var e=n.length*.75,t=n.length,i,r=0,s,a,o,c;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),u=Array.isArray(l)?l:new Uint8Array(l);for(i=0;i<t;i+=4)s=wr[n.charCodeAt(i)],a=wr[n.charCodeAt(i+1)],o=wr[n.charCodeAt(i+2)],c=wr[n.charCodeAt(i+3)],u[r++]=s<<2|a>>4,u[r++]=(a&15)<<4|o>>2,u[r++]=(o&3)<<6|c&63;return l},Cw=function(n){for(var e=n.length,t=[],i=0;i<e;i+=2)t.push(n[i+1]<<8|n[i]);return t},xw=function(n){for(var e=n.length,t=[],i=0;i<e;i+=4)t.push(n[i+3]<<24|n[i+2]<<16|n[i+1]<<8|n[i]);return t},ii=5,el=6+5,tl=2,ww=el-ii,Tm=65536>>ii,_w=1<<ii,nl=_w-1,Ew=1024>>ii,Rw=Tm+Ew,Pw=Rw,Iw=32,Ow=Pw+Iw,Aw=65536>>el,Nw=1<<ww,Mw=Nw-1,km=function(n,e,t){return n.slice?n.slice(e,t):new Uint16Array(Array.prototype.slice.call(n,e,t))},Lw=function(n,e,t){return n.slice?n.slice(e,t):new Uint32Array(Array.prototype.slice.call(n,e,t))},Dw=function(n,e){var t=Sw(n),i=Array.isArray(t)?xw(t):new Uint32Array(t),r=Array.isArray(t)?Cw(t):new Uint16Array(t),s=24,a=km(r,s/2,i[4]/2),o=i[5]===2?km(r,(s+i[4])/2):Lw(i,Math.ceil((s+i[4])/4));return new Uw(i[0],i[1],i[2],i[3],a,o)},Uw=function(){function n(e,t,i,r,s,a){this.initialValue=e,this.errorValue=t,this.highStart=i,this.highValueIndex=r,this.index=s,this.data=a}return n.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>ii],t=(t<<tl)+(e&nl),this.data[t];if(e<=65535)return t=this.index[Tm+(e-55296>>ii)],t=(t<<tl)+(e&nl),this.data[t];if(e<this.highStart)return t=Ow-Aw+(e>>el),t=this.index[t],t+=e>>ii&Mw,t=this.index[t],t=(t<<tl)+(e&nl),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},n}(),Sm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Bw=typeof Uint8Array>"u"?[]:new Uint8Array(256),wa=0;wa<Sm.length;wa++)Bw[Sm.charCodeAt(wa)]=wa;var Cm=null;function Fw(n){return Tw(this,void 0,void 0,function(){var e;return kw(this,function(t){switch(t.label){case 0:return Cm!==null?[3,2]:[4,n()];case 1:if(e=t.sent(),!e.base64||!e.byte_length)throw new Error("Invalid graphemes response");Cm=Dw(e.base64,e.byte_length),t.label=2;case 2:return[2]}})})}for(var xm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",jw=typeof Uint8Array>"u"?[]:new Uint8Array(256),_a=0;_a<xm.length;_a++)jw[xm.charCodeAt(_a)]=_a;function Vw(n,e,t,i){function r(s){return s instanceof t?s:new t(function(a){a(s)})}return new(t||(t=Promise))(function(s,a){function o(u){try{l(i.next(u))}catch(d){a(d)}}function c(u){try{l(i.throw(u))}catch(d){a(d)}}function l(u){u.done?s(u.value):r(u.value).then(o,c)}l((i=i.apply(n,e||[])).next())})}function Gw(n,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=o(0),a.throw=o(1),a.return=o(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(l){return function(u){return c([l,u])}}function c(l){if(i)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(t=0)),t;)try{if(i=1,r&&(s=l[0]&2?r.return:l[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,l[1])).done)return s;switch(r=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,r=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){t.label=l[1];break}if(l[0]===6&&t.label<s[1]){t.label=s[1],s=l;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(l);break}s[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(n,t)}catch(u){l=[6,u],r=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;for(var wm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_r=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ea=0;Ea<wm.length;Ea++)_r[wm.charCodeAt(Ea)]=Ea;for(var zw=function(n){var e=n.length*.75,t=n.length,i,r=0,s,a,o,c;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),u=Array.isArray(l)?l:new Uint8Array(l);for(i=0;i<t;i+=4)s=_r[n.charCodeAt(i)],a=_r[n.charCodeAt(i+1)],o=_r[n.charCodeAt(i+2)],c=_r[n.charCodeAt(i+3)],u[r++]=s<<2|a>>4,u[r++]=(a&15)<<4|o>>2,u[r++]=(o&3)<<6|c&63;return l},Hw=function(n){for(var e=n.length,t=[],i=0;i<e;i+=2)t.push(n[i+1]<<8|n[i]);return t},Ww=function(n){for(var e=n.length,t=[],i=0;i<e;i+=4)t.push(n[i+3]<<24|n[i+2]<<16|n[i+1]<<8|n[i]);return t},ri=5,il=6+5,rl=2,qw=il-ri,_m=65536>>ri,Kw=1<<ri,sl=Kw-1,$w=1024>>ri,Yw=_m+$w,Xw=Yw,Jw=32,Qw=Xw+Jw,Zw=65536>>il,e_=1<<qw,t_=e_-1,Em=function(n,e,t){return n.slice?n.slice(e,t):new Uint16Array(Array.prototype.slice.call(n,e,t))},n_=function(n,e,t){return n.slice?n.slice(e,t):new Uint32Array(Array.prototype.slice.call(n,e,t))},i_=function(n,e){var t=zw(n),i=Array.isArray(t)?Ww(t):new Uint32Array(t),r=Array.isArray(t)?Hw(t):new Uint16Array(t),s=24,a=Em(r,s/2,i[4]/2),o=i[5]===2?Em(r,(s+i[4])/2):n_(i,Math.ceil((s+i[4])/4));return new r_(i[0],i[1],i[2],i[3],a,o)},r_=function(){function n(e,t,i,r,s,a){this.initialValue=e,this.errorValue=t,this.highStart=i,this.highValueIndex=r,this.index=s,this.data=a}return n.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>ri],t=(t<<rl)+(e&sl),this.data[t];if(e<=65535)return t=this.index[_m+(e-55296>>ri)],t=(t<<rl)+(e&sl),this.data[t];if(e<this.highStart)return t=Qw-Zw+(e>>il),t=this.index[t],t+=e>>ri&t_,t=this.index[t],t=(t<<rl)+(e&sl),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},n}(),Rm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s_=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ra=0;Ra<Rm.length;Ra++)s_[Rm.charCodeAt(Ra)]=Ra;var Pm=null;function a_(n){return Vw(this,void 0,void 0,function(){var e;return Gw(this,function(t){switch(t.label){case 0:return Pm!==null?[3,2]:[4,n()];case 1:if(e=t.sent(),!e.base64||!e.byte_length)throw console.error("invalid graphemes response",e),new Error("Invalid graphemes response");Pm=i_(e.base64,e.byte_length),t.label=2;case 2:return[2]}})})}const o_=`:root,:host{--obi-modal-padding: 32px 48px;--obi-modal-background-color: #FFFFFF;--obi-modal-border-radius: 24px;--obi-modal-shadow: 0px 1px 2px rgba(0, 0, 0, .05);--obi-modal-xsmall-width: 320px;--obi-modal-xsmall-height: 240px;--obi-modal-small-width: 480px;--obi-modal-small-height: 400px;--obi-modal-medium-width: 640px;--obi-modal-medium-height: 372px;--obi-modal-large-width: 1200px;--obi-modal-large-height: 700px;--obi-font-family: "Satoshi", sans-serif;--obi-color-primary: #9500FF;--obi-color-primary-50: color-mix(in srgb, var(--obi-color-primary) 50%, white 50%);--obi-color-primary-30: color-mix(in srgb, var(--obi-color-primary) 30%, white 70%);--obi-color-tint: color-mix(in srgb, var(--obi-color-primary) 5%, white 95%);--obi-color-text: #18181B;--obi-course-color-selected: var(--obi-color-primary-50);--obi-course-color-tint: var(--obi-color-tint);--obi-course-progress-step-completed: #B3B3B3;--obi-course-progress-step-incomplete: #D9D9D9;--obi-course-progress-text-color: #757575;font-family:var(--obi-font-family);color:var(--obi-color-text)}.obi-button{font-family:var(--obi-font-family);color:var(--obi-color-text)}dialog{margin:auto;padding:0;border:none;border-radius:var(--obi-modal-border-radius);box-shadow:var(--obi-modal-shadow);background:var(--obi-modal-background-color);box-sizing:border-box}dialog>.modal-content{padding:var(--obi-modal-padding);box-sizing:border-box}dialog,dialog.modal-medium,dialog>.modal-content,dialog.modal-medium>.modal-content{width:var(--obi-modal-medium-width);min-height:var(--obi-modal-medium-height)}dialog.modal-xsmall,dialog.modal-xsmall>.modal-content{width:var(--obi-modal-xsmall-width);min-height:var(--obi-modal-xsmall-height)}dialog.modal-small,dialog.modal-small>.modal-content{width:var(--obi-modal-small-width);min-height:var(--obi-modal-small-height)}dialog.modal-large,dialog.modal-large>.modal-content{width:var(--obi-modal-large-width);min-height:var(--obi-modal-large-height)}dialog::backdrop{background:rgba(0,0,0,.5)}.tour-content{display:block;width:100%;height:100%}.tour-content .container{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;padding:0;width:100%;height:100%}.tour-content .header{display:block;flex-grow:1;flex-direction:column;align-items:center;padding:0;width:100%;margin-bottom:16px}.tour-content .title{width:100%;font-family:Inter,sans-serif;font-style:normal;font-weight:700;font-size:24px;line-height:30px;text-align:center;color:#18181b;margin:0;padding:0}.tour-content .subtitle{width:100%;font-family:Inter,sans-serif;font-style:normal;font-weight:400;font-size:16px;line-height:140%;text-align:center;letter-spacing:-.01em;color:#18181b;margin:0}.tour-content .visual{flex-grow:0;flex-shrink:0;display:flex;align-items:center;justify-content:center;position:relative;margin-bottom:24px}.tour-content .visual.glow{width:390px;border-radius:15px;background-color:var(--obi-color-tint)}.tour-content .description{height:45px;width:100%;font-family:Inter,sans-serif;font-style:normal;font-weight:400;font-size:16px;color:#757575!important;line-height:140%;text-align:center;letter-spacing:-.01em;color:#18181b;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.tour-content .button-container{flex-grow:0;display:flex;flex-direction:column;align-items:center;gap:16px;width:100%}.tour-content .action-button{box-sizing:border-box;display:flex;flex-direction:row;justify-content:center;align-items:center;padding:12px;gap:8px;height:40px;background:#303030;border:1px solid #303030;border-radius:4px;cursor:pointer;text-decoration:none}.tour-content .action-button.disabled{opacity:.6;cursor:not-allowed}.tour-content .button-text{height:16px;font-family:Inter,sans-serif;font-style:normal;font-weight:500;font-size:16px;line-height:100%;color:#fbf3ff}.tour-content.voice-guidance-content .visual .voice-guidance-visual-mobile{display:none}.tour-content.voice-guidance-content .description{height:auto;min-height:45px;display:block;overflow:visible;text-overflow:unset;-webkit-line-clamp:unset;-webkit-box-orient:unset}.tour-content.voice-guidance-content .voice-guidance-copy,.tour-content.voice-guidance-content .voice-guidance-copy-desktop,.tour-content.voice-guidance-content .voice-guidance-copy-mobile{display:block}.tour-content.voice-guidance-content .voice-guidance-copy-mobile,.tour-content.share-mic-content .visual .share-mic-visual-mobile{display:none}.tour-content.share-mic-content .description{height:auto;min-height:45px;display:block;overflow:visible;text-overflow:unset;-webkit-line-clamp:unset;-webkit-box-orient:unset}.tour-content.share-mic-content .share-mic-copy,.tour-content.share-mic-content .share-mic-copy-desktop,.tour-content.share-mic-content .share-mic-copy-mobile{display:block}.tour-content.share-mic-content .share-mic-copy-mobile{display:none}.tour.content-area{height:100%;flex:1;display:flex;flex-direction:column}.tour-footer{width:100%!important;text-align:center;display:flex;align-items:flex-end;justify-content:center;font-family:Inter,sans-serif;font-size:8px;font-weight:200;margin-top:20px}.session-start-content .description{height:48px}@media (max-width: 600px){dialog,dialog.modal-xsmall,dialog.modal-small,dialog.modal-medium,dialog.modal-large,dialog>.modal-content,dialog.modal-xsmall>.modal-content,dialog.modal-small>.modal-content,dialog.modal-medium>.modal-content,dialog.modal-large>.modal-content{width:min(280px,100vw - 32px);max-width:100vw}dialog>.modal-content{padding:32px;min-height:412px;display:flex;flex-direction:column;min-height:412px!important}dialog>.modal-content>.tour.content-area{flex:1}.session-start-content .description{margin-top:18px}.tour-content{flex:1;display:flex;flex-direction:column}.tour-content .title{font-size:20px}.tour-content .subtitle{font-size:14px}.tour-content .description{font-size:13px;height:auto;overflow:visible;text-overflow:unset;display:block;-webkit-line-clamp:unset;-webkit-box-orient:unset}.tour-content .button-text{font-size:14px}.tour-content .visual{display:none}.tour-content.session-start-content .visual{display:flex;flex-shrink:0;margin-bottom:18px}.tour-content.session-start-content .obi-static-voice{height:auto}.tour-content.session-start-content .obi-static-voice-visual-title{margin-bottom:8px}.tour-content.session-start-content .obi-static-voice .obi-pill.container{display:none}.tour-content.session-start-content{display:flex;flex-direction:column;flex:1}.tour-content.session-start-content .container{flex:1;width:100%;display:flex;flex-direction:column;align-items:center;min-height:0}.tour-content.session-start-content .header{gap:0;width:100%;flex:1;display:flex;flex-direction:column;margin-bottom:16px;min-height:0}.tour-content.session-start-content .description{flex:1;width:100%;min-height:0}.tour-content.session-start-content .button-container,.tour-content.session-start-content .tour-footer{width:100%}.tour-content.voice-guidance-content .visual{display:flex;justify-content:center;margin-bottom:24px}.tour-content.voice-guidance-content .visual.glow{width:auto;padding:0;border-radius:0;background:transparent}.tour-content.voice-guidance-content .visual .voice-guidance-visual-desktop{display:none}.tour-content.voice-guidance-content .visual .voice-guidance-visual-mobile{display:flex;justify-content:center;align-items:center}.tour-content.voice-guidance-content .voice-guidance-copy-desktop{display:none}.tour-content.voice-guidance-content .voice-guidance-copy-mobile{display:block}.tour-content.voice-guidance-content .container{flex:1;padding-bottom:20px}.tour-content.voice-guidance-content .header{display:flex;flex-direction:column;flex-grow:1;justify-content:flex-start;margin-bottom:0}.tour-content.voice-guidance-content .header .description{flex-grow:1;display:flex;text-align:center;justify-content:center}.tour-content.voice-guidance-content .button-container{margin-top:0;flex:0 0 25%;height:auto;min-height:auto;width:100%;align-items:center;justify-content:flex-start}.tour-content.voice-guidance-content .button-container button{align-self:center!important}.tour-content.voice-guidance-content .button-container .action-button{align-self:flex-start}.tour-content.share-mic-content .visual{display:flex;justify-content:center;margin-bottom:24px}.tour-content.share-mic-content .visual.glow{width:auto;padding:0;border-radius:0;background:transparent}.tour-content.share-mic-content .visual .share-mic-visual-desktop{display:none}.tour-content.share-mic-content .visual .share-mic-visual-mobile{display:flex;justify-content:center;align-items:center}.tour-content.share-mic-content .share-mic-copy-desktop{display:none}.tour-content.share-mic-content .share-mic-copy-mobile{display:block}.tour-content.share-mic-content .title{margin-bottom:4px}.tour-content.share-mic-content .header{display:flex;flex-direction:column;flex-grow:1;justify-content:flex-start;margin-bottom:0}.tour-content.share-mic-content .header .description{flex-grow:1;display:flex;text-align:center;justify-content:center}.tour-content.share-mic-content .container{flex:1;padding-bottom:20px}.tour-content.share-mic-content .button-container{margin-top:0;flex:0 0 20%;height:auto;min-height:auto;width:100%;align-items:center;justify-content:flex-start}.tour-content.share-mic-content .button-container button{align-self:center!important}.tour-content.share-mic-content .button-container .action-button{align-self:flex-start}}.obi-close-button{position:absolute;top:24px;right:24px;width:24px;height:24px;cursor:pointer;border:none;background:none;padding:0;display:flex;align-items:center;justify-content:center;z-index:1;outline:none}.obi-close-button:focus{outline:none!important}@media (max-width: 600px){.obi-close-button{top:10px;right:10px}}.obi-pill.container{width:96px;height:30px;display:flex;align-items:center;justify-content:center}.obi-pill.container .pill{display:flex;align-items:center;justify-content:center;width:48px;height:6px;opacity:.7;border-radius:3px;background-color:var(--obi-color-primary);transition:width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out}.obi-pill.container .pill.button{cursor:pointer}.obi-pill.container.user-speaking .pill{background-color:var(--obi-color-primary-30)}.obi-pill.container.active .pill{width:96px;height:30px;border-radius:15px;opacity:1}.obi-pill.container.busy,.obi-pill.container.busy .pill{width:220px}.obi-pill2.container{display:flex;align-items:center;justify-content:center}.obi-pill2.container .pill{display:flex;align-items:center;justify-content:center;min-width:48px;max-width:48px;height:6px;opacity:.7;border-radius:3px;border:1px solid #FFFFFF1F;background-color:var(--obi-color-primary);transform:translateY(0);overflow:hidden;white-space:nowrap;flex:0 0 auto;box-sizing:border-box;padding-left:0;padding-right:0;transition:max-width .15s ease-in-out,min-width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out,padding-left .15s ease-in-out,padding-right .15s ease-in-out}.obi-pill2.container .pill.button{cursor:pointer}.obi-pill2.container:not(.active){transition:height 0s linear .15s;height:6px}.obi-pill2.container:not(.active) .pill{transform:translateY(12px);transition:transform 0s linear .15s,max-width .15s ease-in-out,min-width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out,padding-left .15s ease-in-out,padding-right .15s ease-in-out}.obi-pill2.container.active{transition:none;height:30px}.obi-pill2.container.active .pill{transition:transform 0s,max-width .15s ease-in-out,min-width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out,padding-left .15s ease-in-out,padding-right .15s ease-in-out;max-width:1000px;height:30px;border-radius:15px;opacity:1;padding-left:14px;padding-right:14px}.obi-pill2.container.user-speaking .pill{background-color:var(--obi-color-primary-30)}.obi-pill2.container:not(.active) .pill .text{opacity:0;animation:none}.obi-pill-up.container{display:flex;align-items:flex-end;justify-content:center}.obi-pill-up.container .pill{display:flex;align-items:center;justify-content:center;min-width:48px;max-width:48px;height:6px;opacity:.7;border-radius:3px;border:1px solid #FFFFFF1F;background-color:var(--obi-color-primary);overflow:hidden;white-space:nowrap;flex:0 0 auto;box-sizing:border-box;padding-left:0;padding-right:0;transition:max-width .15s ease-in-out,min-width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out,padding-left .15s ease-in-out,padding-right .15s ease-in-out}.obi-pill-up.container .pill.button{cursor:pointer}.obi-pill-up.container:not(.active){transition:height 0s linear .15s;height:6px}.obi-pill-up.container:not(.active) .pill{transition:max-width .15s ease-in-out,min-width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out,padding-left .15s ease-in-out,padding-right .15s ease-in-out}.obi-pill-up.container.active{transition:none;height:30px}.obi-pill-up.container.active .pill{transition:max-width .15s ease-in-out,min-width .15s ease-in-out,height .15s ease-in-out,border-radius .15s ease-in-out,padding-left .15s ease-in-out,padding-right .15s ease-in-out;max-width:1000px;height:30px;border-radius:15px;opacity:1;padding-left:14px;padding-right:14px}.obi-pill-up.container.user-speaking .pill{background-color:var(--obi-color-primary-30)}.obi-pill-up.container:not(.active) .pill .text{opacity:0;animation:none}.obi-equaliser{display:flex;align-items:center;gap:2px;height:32px}.obi-equaliser .column{position:relative;display:flex;align-items:center;justify-content:center;width:5px;height:100%}.obi-equaliser .bar{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:3px;border-radius:2px;z-index:1}.obi-panel{box-sizing:border-box;padding:24px;background-color:#fff;box-shadow:0 16px 32px -4px #0000001f,0 4px 8px -2px #00000014,inset 0 1px #fff9;border-radius:12px}.obi-popout{position:relative;display:inline-block}.obi-popout .obi-popout-target{cursor:pointer;display:inline-block}.obi-popout .content{position:absolute;background-color:#fff0;z-index:100;animation:popout-appear .15s ease-out}@keyframes popout-appear{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.obi-round-button-popout{z-index:600}.obi-round-button{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;padding:0;box-sizing:border-box;background-color:#fff;border:1px solid #D9D9D9;box-shadow:none}.obi-round-button:hover{cursor:pointer}.obi-round-button:disabled{box-shadow:none;background-color:#f0f0f0;color:#999;cursor:not-allowed!important;pointer-events:none}.obi-round-button-title{padding:8px 16px;border-radius:12px;background-color:#fff;color:#000;font-size:14px;font-weight:400;white-space:nowrap;box-shadow:0 4px 12px #00000026,0 2px 4px #0000001a;border:1px solid rgba(0,0,0,.08);z-index:5000;pointer-events:none;-webkit-user-select:none;user-select:none;position:relative}.obi-round-button-title:after{content:"";position:absolute;top:100%;left:50%;transform:translate(-50%);width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid white;filter:drop-shadow(0 2px 2px rgba(0,0,0,.1))}.obi-message{display:inline-flex;align-items:center;justify-content:center;padding:0 15px;text-wrap:nowrap;font-size:16px;font-weight:400;height:30px;box-sizing:border-box;background-color:#fff;border-radius:15px;border:1px solid #D9D9D9}.obi-message.clickable{box-shadow:0 4px 6px #0000001a;cursor:pointer}.obi-loading-dots{display:flex;align-items:center;gap:2px;height:32px}.obi-loading-dots .column{position:relative;display:flex;align-items:center;justify-content:center;width:5px;height:100%}.obi-loading-dots .dot{width:3px;height:3px;border-radius:2px;position:relative;z-index:2}.obi-loading-dots .bar{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:3px;border-radius:2px;z-index:1;height:0px;animation:bounce .9s ease-in-out infinite}@keyframes bounce{0%,60%,to{height:0px}30%{height:16px}}.obi-exit-survey{position:relative;width:320px;margin:0 auto;-webkit-backdrop-filter:none;backdrop-filter:none;background:white;z-index:9999}.obi-exit-survey-container{display:flex;flex-direction:column;align-items:center;padding:0;gap:16px;width:272px;flex:none;align-self:stretch}.obi-exit-survey-header{display:flex;flex-direction:column;align-items:flex-start;padding:0;gap:4px;width:272px;flex:none;align-self:stretch}.obi-exit-survey-title{width:272px;height:22px;margin:0;font-family:Satoshi,sans-serif;font-size:16px;font-weight:600;line-height:140%;text-align:center;color:#1e1e1e;flex:none;align-self:stretch}.obi-exit-survey-subtitle{width:272px;height:20px;margin:0;font-family:Satoshi,sans-serif;font-style:normal;font-weight:400;font-size:14px;line-height:140%;text-align:center;color:#757575;flex:none;align-self:stretch}.obi-exit-survey-options{display:flex;flex-direction:column;align-items:flex-start;padding:0;gap:4px;width:272px;flex:none;align-self:stretch}.obi-exit-survey-options textarea{height:80px;resize:none;outline:none}.obi-exit-survey-button{box-sizing:border-box;display:flex;flex-direction:row;justify-content:center;align-items:center;padding:12px;gap:8px;width:272px;height:44px;border-radius:12px;cursor:pointer;font-family:Satoshi,sans-serif;font-style:normal;font-weight:400;font-size:14px;line-height:140%;flex:none;align-self:stretch;transition:all .2s ease}.obi-exit-survey-button:hover{transform:translateY(-1px);box-shadow:0 4px 8px #0000001a}.obi-exit-survey-button:active{transform:translateY(0)}.obi-exit-survey-button-continue{background:rgba(255,255,255);border:1px solid rgba(217,217,217);color:#1e1e1e}.obi-exit-survey-button-continue:hover{background:rgba(255,255,255);border-color:#d9d9d9}.obi-exit-survey-button-wrap-up{background:#303030;border:1px solid rgba(217,217,217);color:#fff;font-weight:500}.obi-exit-survey-button-wrap-up:hover{background:#404040;border-color:#d9d9d9}.obi-exit-survey-reason-button{background:rgba(255,255,255);border:1px solid rgba(217,217,217);color:#1e1e1e}.obi-exit-survey-reason-button:hover{background:rgba(255,255,255);border-color:#d9d9d9}.obi-exit-survey-reason-button-secondary{display:flex;flex-direction:row;justify-content:center;align-items:center;padding:4px 6px;gap:8px;width:272px;height:28px;border-radius:4px;cursor:pointer;border:none;background:transparent;font-family:Satoshi,sans-serif;font-style:normal;font-weight:400;font-size:14px;line-height:140%;color:#5a5a5a;flex:none;align-self:stretch;transition:all .2s ease}.obi-exit-survey-reason-button-secondary:hover{background:rgba(0,0,0,.05);color:#3a3a3a}.obi-message-input{display:inline-block;position:relative}.obi-message-input .container{width:212px;height:30px;box-sizing:border-box;background:#FFFFFF;border:1px solid var(--obi-color-primary-30);border-radius:15px;display:flex;align-items:center;flex:none;order:2;flex-grow:0;transition:height .3s ease,border-radius .3s ease;animation:expandMessageInput .2s cubic-bezier(.4,0,.2,1) 0s 1 normal both}.obi-message-input.expanded .container{height:auto;min-height:140px;border-radius:15px;align-items:flex-start;padding:8px 0;animation:expandMessageInputWide .2s cubic-bezier(.4,0,.2,1) 0s 1 normal both}.obi-message-input .field{flex:1 1 0;border:none;background:transparent;outline:none;font-family:Satoshi,sans-serif;font-style:normal;font-weight:400;font-size:14px;line-height:18px;color:#000;padding:4px 3px 0 16px;height:100%;box-sizing:border-box;min-width:0;resize:none;overflow:hidden;scrollbar-width:none;transition:padding .3s ease;animation:fadeInInputField .2s cubic-bezier(.4,0,.2,1) 0s 1 normal both}.obi-message-input.expanded .field{height:auto;min-height:120px;padding:4px 16px;overflow-y:auto;line-height:18px}.obi-message-input .field::placeholder{color:#999}.obi-message-input .field:disabled{cursor:not-allowed;opacity:.6}.obi-message-input .send{position:absolute;bottom:3px;right:4px;flex-shrink:0;width:24px;height:24px;background:var(--obi-color-primary);border:none;border-radius:9999px;display:flex;justify-content:center;align-items:center;cursor:pointer;transition:all .3s ease;color:#fff}.obi-message-input.expanded .send{width:28px;height:28px;position:relative;top:0;bottom:0;margin-right:0}.obi-message-input.expanded .button-container{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:8px}.obi-message-input .send:disabled{background:#CCCCCC;cursor:not-allowed;transform:none}.obi-message-input .container:focus-within{border-color:var(--obi-color-primary);box-shadow:0 0 0 2px #9008ff1a}@keyframes expandMessageInput{0%{width:32px}to{width:212px}}@keyframes expandMessageInputWide{0%{width:212px}to{width:340px}}@keyframes fadeInInputField{0%{opacity:0}60%{opacity:0}to{opacity:1}}.obi-course-progress{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:6px;width:100%;min-width:0;height:24px;flex:none;order:1;align-self:stretch;flex-grow:0}.obi-course-progress-steps{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0;gap:2px;width:100%;height:14px;flex:none;order:0;align-self:stretch;flex-grow:0}.obi-course-progress-container{display:flex;flex-direction:column;justify-content:center;align-items:stretch;padding:6px 0;height:100%;flex:1;min-width:0;cursor:pointer}.obi-course-progress-step{width:100%;height:2px;background:var(--obi-course-progress-step-incomplete);border-radius:24px;flex:none;order:0;align-self:stretch;flex-grow:0;cursor:pointer}.obi-course-progress-step.completed{background:var(--obi-course-progress-step-completed)}.obi-course-progress-description{width:100%;height:14px;font-family:var(--obi-font-family);font-style:normal;font-weight:500;font-size:14px;line-height:100%;color:var(--obi-course-progress-text-color);flex:none;order:1;flex-grow:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.obi-course-progress .obi-widget-popout,.obi-course-progress .obi-widget-popout .content{z-index:800}.obi-widget-popout{z-index:400}.obi-widget-panel{display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;min-width:222px;width:min-content;padding:12px;box-sizing:border-box;border-radius:27px;background:white;transition:background .1s ease-out .1s,box-shadow .1s ease-out .1s}.obi-widget-panel:not(.messaging){width:256px}.obi-widget-panel.tool-usage{width:384px}.obi-widget-panel:not(.expanded){background:transparent;border:none;box-shadow:none;transition:background .1s ease-out .1s,border .1s ease-out .1s,box-shadow .1s ease-out .1s}.obi-widget-panel.maximized{transform:translateY(-110px)}.obi-widget-panel .obi-widget{display:flex;align-items:center;min-width:192px;padding-left:58px;box-sizing:border-box;gap:4px}.obi-widget-panel .obi-widget.active.in-plan{padding-left:0}.obi-widget-panel .obi-widget.active.in-plan .obi-round-button{animation:fade-in-button .2s ease-out .15s both}.obi-widget-panel .obi-widget.active .obi-equaliser{animation:fade-in-equaliser .2s ease-out .15s both}@keyframes fade-in-button{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes fade-in-equaliser{0%{opacity:0}to{opacity:1}}.obi-widget-panel .obi-widget-course-progress{display:block;width:100%;max-width:220px;max-height:40px;opacity:1;transform:translateY(0);overflow:visible;position:relative;z-index:800;transition:max-height .3s ease-in-out,opacity .3s ease-in-out,transform .3s ease-in-out}.obi-widget-panel .obi-widget-course-progress.expanded{max-width:330px}@keyframes expand-course-progress{0%{max-height:0;opacity:0;transform:translateY(-10px)}to{max-height:40px;opacity:1;transform:translateY(0)}}.obi-widget-pill-text{font-size:16px;font-weight:400;color:#fff;opacity:0;animation:fade-in-pill-text .3s ease-in-out forwards}@keyframes fade-in-pill-text{0%{opacity:0}40%{opacity:0}to{opacity:1}}.obi-widget-buttons{display:flex;flex-direction:row;gap:4px}.obi-widget-out-of-plan{display:flex;align-items:center;gap:0}.obi-widget-out-of-plan .text{font-size:16px;color:#fff;display:inline-flex;align-items:center;gap:8px;animation:fade-in-pill-text .3s ease-in-out forwards}.obi-widget-out-of-plan .round-button{display:none;animation:fade-in-button .2s ease-out .15s both}.obi-widget-out-of-plan .message{display:none}.obi-widget-out-of-plan.active{gap:0}.obi-widget-out-of-plan.active:hover,.obi-widget-out-of-plan.active.hover{gap:4px}.obi-widget-out-of-plan.active:hover .round-button,.obi-widget-out-of-plan.active:hover .message,.obi-widget-out-of-plan.active.hover .round-button,.obi-widget-out-of-plan.active.hover .message{display:flex}.obi-widget-draggable .obi-widget-panel{cursor:grab}.obi-widget-draggable.dragging .obi-widget-panel{cursor:grabbing;-webkit-user-select:none;user-select:none}.obi-static-voice{height:96px;display:flex;flex-direction:column;align-items:center;justify-content:center}.obi-static-voice-visual-title{font-family:Inter,sans-serif;font-style:normal;font-weight:600;font-size:14px;color:var(--obi-color-primary);background-color:var(--obi-color-tint);padding:8px 12px;border-radius:20px;margin-bottom:24px}.obi-static-voice-visual{display:flex;align-items:center;gap:2px;height:32px}.obi-static-voice-visual .column{position:relative;display:flex;align-items:center;justify-content:center;width:5px;height:100%}.obi-static-voice-visual .bar{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:3px;background-color:#fff;border-radius:2px;z-index:1}.obi-static-voice-visual .bar-1{height:2px}.obi-static-voice-visual .bar-2{height:6px}.obi-static-voice-visual .bar-3{height:10px}.obi-static-voice-visual .bar-4,.obi-static-voice-visual .bar-5{height:16px}.obi-static-voice-visual .bar-6{height:10px}.obi-static-voice-visual .bar-7{height:6px}.obi-static-voice-visual .bar-8{height:2px}@layer components{.share-mic-mobile-visual{width:216px;height:103px;border-radius:12px;background:var(--obi-course-color-tint, var(--obi-color-tint, #F3E3FF));display:flex;align-items:center;justify-content:center}.share-mic-mobile-controls{display:flex;align-items:center;gap:12px;padding:0 12px}.share-mic-mobile-icon{width:52px;height:52px;border-radius:12px;background:#FFFFFF;border:1px solid #E4E4E7;box-shadow:0 2px 4px #0f172a14;display:flex;align-items:center;justify-content:center;color:#111827}.share-mic-mobile-allow{min-width:96px;height:44px;border-radius:10px;border:1px solid #D4D4D8;background:#FFFFFF;box-shadow:0 2px 4px #0f172a14;display:flex;align-items:center;justify-content:center;font-family:Inter,sans-serif;font-size:16px;font-weight:500;color:#111827}}@layer components{.voice-guidance-mobile-visual{width:216px;height:103px;border-radius:12px;background:var(--obi-course-color-tint, var(--obi-color-tint, #F3E3FF));display:flex;align-items:center;justify-content:center}.voice-guidance-mobile-pill{display:flex;align-items:center;justify-content:center;transform:scale(1.25);filter:drop-shadow(0px 12px 25px var(--obi-color-primary-30, rgba(149, 0, 255, .35)))}.voice-guidance-mobile-pill .obi-pill.container{display:flex;align-items:center;justify-content:center}}.tour-select{display:block;font-family:Inter,sans-serif}.course-container{display:flex;padding:20px;align-items:flex-start;gap:8px;height:180px;border-radius:6px;border:1px solid rgba(0,0,0,.6);background:#fff;cursor:pointer;transition:all .2s;flex-direction:column;box-sizing:border-box;overflow:hidden}.course-container:hover{background-color:#f9fafb;border-color:#d1d5db;box-shadow:0 1px 2px #0000000d}.course-container:active{transform:scale(.98)}.course-container.selected{border-radius:6px;border:1px solid var(--obi-course-color-selected);background:var(--obi-course-color-tint)}.course-container.selected:hover{background:var(--obi-course-color-tint)}.header-row{display:flex;justify-content:space-between;align-items:flex-start;align-self:stretch;flex-shrink:0;text-align:left}.course-title{color:#000;font-family:Inter,sans-serif;font-size:20px;font-style:normal;font-weight:500;line-height:100%;letter-spacing:-.2px;margin:0}.duration{display:flex;padding:4px 12px;justify-content:center;align-items:center;gap:8px;border-radius:9999px;background:var(--obi-course-color-tint);color:#000;font-family:Inter,sans-serif;font-size:14px;font-style:normal;font-weight:500;line-height:100%;letter-spacing:-.14px;flex-shrink:0}.course-container.selected .duration{background:#fff}.course-description{flex:1 0 0;color:#0009;font-family:Inter,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:140%;letter-spacing:-.16px;margin:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;text-align:left}.course-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:4px;padding:0;flex:1 0 0;align-self:stretch;min-height:364px}.controls{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.tabs{display:flex;gap:10px}.tab{display:flex;padding:6px 12px;justify-content:center;align-items:center;align-self:stretch;border:none;background:none;cursor:pointer;font-family:Inter,sans-serif;font-size:16px;font-weight:500;color:#0006;border-bottom:2px solid transparent;transition:all .2s}.tab.active{color:#000;border-bottom:2px solid var(--obi-color-primary)}.tab:hover{color:#000}.filter{position:relative;display:flex;align-items:center;width:336px;height:40px}.filter input{color:var(--obi-color-text);caret-color:var(--obi-color-text);padding:8px 12px 8px 36px;border-radius:6px;border:1px solid rgba(0,0,0,.1);background:#fff;font-family:Inter,sans-serif;font-size:14px;line-height:20px;width:100%;height:100%;box-sizing:border-box;outline:none}.filter input:focus{outline:1px solid var(--obi-color-primary);outline-offset:-1px}.filter input::placeholder{color:#0006}.filter svg{position:absolute;left:12px;pointer-events:none}@media (max-width: 767px){.course-grid{grid-template-columns:1fr}}.loading,.error,.empty{display:flex;justify-content:center;align-items:center;margin-top:16px}.error{color:#ef4444}.tour-select-modal-container{display:flex;flex-direction:column;align-items:center;gap:24px;flex:1 0 0;align-self:stretch;font-family:Satoshi,sans-serif;color:#000;text-align:center;max-width:1200px;width:100%;min-height:600px;box-sizing:border-box}.course-list-wrapper{flex:1;overflow-y:auto;width:100%;min-height:0;max-height:424px;padding-right:3px;box-sizing:border-box}.course-list-wrapper::-webkit-scrollbar{width:3px}.course-list-wrapper::-webkit-scrollbar-track{background:transparent}.course-list-wrapper::-webkit-scrollbar-thumb{background-color:#000;border-radius:2px;min-height:20px}.course-list-wrapper::-webkit-scrollbar-thumb:hover{background-color:#333}.header{display:flex;align-items:flex-start;gap:16px;width:100%;text-align:left}.icon{display:flex;width:56px;height:56px;padding:12px;justify-content:center;align-items:center;border-radius:12px;border:1px solid var(--obi-color-primary);background:var(--obi-color-primary);box-sizing:border-box}.icon img{width:32px;height:32px;color:#fff;fill:#fff}.title-section{align-self:stretch;flex:1}.tour-select-modal-container h1{color:#18181b;font-family:Satoshi;font-size:32px;font-style:normal;font-weight:700;line-height:90%;letter-spacing:-.96px;margin:0 0 8px}.subtitle{color:#18181b;font-family:Satoshi;font-size:20px;font-style:normal;font-weight:500;line-height:90%;letter-spacing:-.6px;margin:0}.footer{display:flex;width:360px;flex-direction:column;align-items:center;gap:12px}.footer-button{display:flex;height:48px;padding:16px;justify-content:center;align-items:center;gap:8px;align-self:stretch;border-radius:6px;background:#18181b;border:none;cursor:pointer;color:#fafafa;font-family:Satoshi;font-weight:500;transition:opacity .2s ease}.footer-button:disabled{opacity:.5;cursor:not-allowed}.footer-button:not(:disabled){opacity:1}.footer-button:not(:disabled):hover{background:#27272a}.footer-text{color:#18181b;font-family:Satoshi;font-size:12px;font-style:normal;font-weight:400;line-height:100%;letter-spacing:-.12px;margin:0;text-align:center}.skeleton{background:linear-gradient(90deg,#e5e7eb 25%,#f3f4f6 50%,#e5e7eb 75%);background-size:200% 100%;animation:loading 1.5s infinite;border-radius:4px}@keyframes loading{0%{background-position:200% 0}to{background-position:-200% 0}}.skeleton-title{height:32px;width:60%;margin-bottom:12px}.skeleton-subtitle{height:20px;width:80%}
56
56
  `;function c_(n){var Er,Rr,Pa,Vi,Fn,fn,pn,Pr,Ir,Or,Gi;const[e,t]=X(!1),[i,r]=X(!1),[s,a]=X(!1),[o,c]=X(!1),[l,u]=X(null),[d,h]=X(!1),[f,g]=X(null),[p,v]=X(null),[b,C]=X(null),[w,T]=X(!1),k=Oe(null),x=Oe(0),_=Oe(0),R=Oe(0),O=Oe(0),B=Oe({width:0,height:0}),N=Oe(null),W=Oe(!1),K=6,M=l_(n.sdk,Q,n.shadowHost,v,A=>{var V,$;a(A),A&&(($=(V=M.client.session)==null?void 0:V.muteMicrophone)==null||$.call(V))},A=>{if(!A){u(null);return}if(gt&&(u(A),!me&&ge==="minimized")){h(!0);const V=Math.max(0,A.autoCloseMs??3e3);f&&window.clearTimeout(f);const $=window.setTimeout(()=>h(!1),V);g($)}});function Q(A){var V;(V=M.client)!=null&&V.session||(A?si():t(!1))}if(!M.client)return null;const J=M.client.planIsCompleted.filter(Boolean).length===M.client.plans.length,ye=u_((Er=M.client.product)==null?void 0:Er.widget_url_blacklist),ge=J?M.completedWidgetDisplay||((Rr=M.client.product)==null?void 0:Rr.completed_widget_display):M.widgetDisplay||((Pa=M.client.product)==null?void 0:Pa.widget_display),we=M.widgetPosition||((Vi=M.client.product)==null?void 0:Vi.widget_position);let ze=M.isActive;((fn=(Fn=M.client)==null?void 0:Fn.product)==null?void 0:fn.name)==="Canibuild"&&(ze=!0);const z=M.client.session,me=!!z,se=d_(),He=h_(se),Y=me&&!se;Ge(()=>{c(!1)},[z]);const Te=me&&!e;let ke;switch(z==null?void 0:z.speakingState){case"listening":ke="user-speaking";break;case"speaking":ke="agent-speaking";break;case"thinking":ke="thinking";break;case"busy":ke="busy";break}const yt=z==null?void 0:z.isPaused,gt=me||M.client.state==="ready"&&ze&&!ye&&(ge!=="invisible"||M.client.selectedPlan),Fi=()=>{var A,V,$,oe,_e,vt,jn;return{name:(A=M.client.selectedPlan)==null?void 0:A.name,description:(V=M.client.selectedPlan)==null?void 0:V.description,appName:($=M.client.product)==null?void 0:$.name,appLogoUrl:((oe=M.client.product)==null?void 0:oe.logo_url)||"",url:(_e=M.client.product)==null?void 0:_e.url,agentName:((vt=M.client.product)==null?void 0:vt.agent_name)||"Obi",legalFooter:((jn=M.client.product)==null?void 0:jn.legal_footer_text)||void 0}};function ji(){const A=we==="bottom-right"?{position:"fixed",right:"250px",width:"max-content",transform:"translateX(50%)"}:{position:"fixed",left:"50%",transform:"translateX(-50%)",width:"max-content"};if(Te){const V=se?He:"vh";A.top=`calc(100${V} - 100px)`}else A.bottom="20px";return A}const te=(()=>{if(Y&&b)return{position:"fixed",left:`${Math.round(b.left)}px`,top:`${Math.round(b.top)}px`,width:"max-content",right:void 0,bottom:void 0,transform:void 0,touchAction:"none"};const A=ji();return Y&&(A.touchAction="none"),A})();Ge(()=>{Y||(C(null),T(!1),k.current=null,W.current=!1,N.current&&(cancelAnimationFrame(N.current),N.current=null))},[Y]);function Ue(A,V,$){return Math.max(V,Math.min($,A))}function Ze(A){var vt;if(!Y)return;const V=A.currentTarget;if(!V)return;const $=A.target;if((vt=$==null?void 0:$.closest)==null?void 0:vt.call($,'button, a[href], input, textarea, select, [role="button"], [contenteditable="true"], [data-no-drag]'))return;k.current=A.pointerId;const _e=V.getBoundingClientRect();x.current=A.clientX,_.current=A.clientY,R.current=_e.left,O.current=_e.top,B.current={width:_e.width,height:_e.height},W.current=!1,C({left:_e.left,top:_e.top})}function Ft(A){var oi;if(!Y||k.current!==A.pointerId)return;const V=A.clientX-x.current,$=A.clientY-_.current;if(!w){if(Math.hypot(V,$)<K)return;const Vt=A.currentTarget;try{(oi=Vt==null?void 0:Vt.setPointerCapture)==null||oi.call(Vt,A.pointerId)}catch{}T(!0),W.current=!0,b||C({left:R.current,top:O.current})}const oe=8,_e=oe,vt=oe,jn=Math.max(oe,window.innerWidth-B.current.width-oe),al=Math.max(oe,window.innerHeight-B.current.height-oe),ai={left:Ue(R.current+V,_e,jn),top:Ue(O.current+$,vt,al)};if(N.current==null){const Ia=ai;N.current=requestAnimationFrame(()=>{C(Ia),N.current=null})}else C(ai)}function dn(A){var V,$;if(k.current!==null)try{($=(V=A.currentTarget)==null?void 0:V.releasePointerCapture)==null||$.call(V,k.current)}catch{}k.current=null,T(!1)}function jt(A){Y&&k.current===A.pointerId&&dn(A)}function hn(A){Y&&k.current===A.pointerId&&dn(A)}const si=()=>{const A=M.client;if(!A)return;const V=A.plans||[];if(V.length===1){const[$]=V;A.selectedPlanUuid!==$.uuid&&(A.selectPlan($),ni().track("course-get-started",{courseName:$.name,courseUuid:$.uuid})),t(!1),r(!0);return}t(!0)};return m("div",{children:[e&&m(Xx,{open:e,courses:M.client.plans.map((A,V)=>{var $,oe;return{id:A.uuid,name:A.name,description:A.description||"",duration:A.duration||0,completed:((oe=($=M.client)==null?void 0:$.planIsCompleted)==null?void 0:oe[V])||!1}}),loading:!1,title:((pn=M.client.product)==null?void 0:pn.assistant_subtitle)||void 0,productName:((Pr=M.client.product)==null?void 0:Pr.name)||"",onCourseHighlight:A=>{A&&ni().track("course-selected",{courseName:A.name,courseUuid:A.id})},onCourseSelect:A=>{const V=M.client.plans.find($=>$.uuid===A.id)||null;V&&(V==null?void 0:V.uuid)!==M.client.selectedPlanUuid&&(M.client.selectPlan(V),t(!1),r(!0),ni().track("course-get-started",{courseName:A.name,courseUuid:A.id}))},onClose:A=>{A==="user-initiated"&&M.client.selectPlan(null),t(!1)}}),gt&&m(Ke,{children:[m("div",{className:Y?`obi-widget-draggable${w?" dragging":""}`:void 0,style:te,onPointerDown:Ze,onPointerMove:Ft,onPointerUp:jt,onPointerCancel:hn,onClickCapture:A=>{var V,$;W.current&&((V=A.preventDefault)==null||V.call(A),($=A.stopPropagation)==null||$.call(A),W.current=!1)},children:m(ax,{inPlan:me,isActive:i?!1:d?!0:void 0,defaultIsActive:ge!=="minimized",isPaused:yt,toastMessage:l,messaging:(z==null?void 0:z.isMicShared)===!1||s?!0:void 0,speakingStatus:ke,spectrum:()=>(z==null?void 0:z.audioSpectrum())||null,courseProgress:p,onOpen:si,onCancelClick:()=>{var A,V,$;o&&(c(!1),(A=M.client.session)!=null&&A.isPaused||($=(V=M.client.session)==null?void 0:V.unmuteMicrophone)==null||$.call(V))},onCancelAbort:()=>{},onCancel:()=>{var A;(A=M.client.session)==null||A.stop()},onCancelReason:(A,V)=>{},onPause:()=>{var A,V;(V=(A=M.client.session)==null?void 0:A.pause)==null||V.call(A)},onUnpause:()=>{var A,V,$,oe;(V=(A=M.client.session)==null?void 0:A.unpause)==null||V.call(A),(o||s)&&((oe=($=M.client.session)==null?void 0:$.muteMicrophone)==null||oe.call($))},onMessagingChange:A=>{var V,$,oe,_e,vt;a(!1),c(A),A?($=(V=M.client.session)==null?void 0:V.muteMicrophone)==null||$.call(V):(oe=M.client.session)!=null&&oe.isPaused||(vt=(_e=M.client.session)==null?void 0:_e.unmuteMicrophone)==null||vt.call(_e)},onMessageChange:A=>{ni().track("chat-input-provided",{message:A,length:A.length})},onMessage:A=>{var V,$;M.say(A),a(!1),!o&&!(z!=null&&z.isPaused)&&(z==null?void 0:z.isMicShared)!==!1&&(($=(V=M.client.session)==null?void 0:V.unmuteMicrophone)==null||$.call(V)),ni().track("chat-message-sent",{message:A,length:A.length})},onHover:A=>{},onOneClickAction:A=>{a(!1)},onMinimize:()=>{var A,V,$;o&&(c(!1),(A=M.client.session)!=null&&A.isPaused||($=(V=M.client.session)==null?void 0:V.unmuteMicrophone)==null||$.call(V))},agentName:((Ir=M.client.product)==null?void 0:Ir.agent_name)||"Obi",completedTutorials:((Or=M.client.product)==null?void 0:Or.widget_show_progress)===!1?void 0:M.client.planIsCompleted.filter(Boolean).length,totalTutorials:((Gi=M.client.product)==null?void 0:Gi.widget_show_progress)===!1?void 0:M.client.plans.length})}),!!M.client.selectedPlan&&m(Qx,{open:!0,session:Fi(),sessionState:(z==null?void 0:z.state)||null,speakingState:(z==null?void 0:z.speakingState)||null,spectrum:()=>(z==null?void 0:z.audioSpectrum())||null,onModalChange:A=>{},onClose:(A,V)=>{var $,oe;A==="user-initiated"&&((($=M.client.session)==null?void 0:$.state)==="mic-share"?(oe=M.client.session)==null||oe.shareMicrophoneFailed():M.client.stopSession()),r(!1)},onStart:()=>{M.client.selectedPlanUuid&&M.startSession()},onContinue:()=>{z==null||z.continue()},onShareMicrophone:()=>{z==null||z.shareMicrophone()}})]})]})}function l_(n,e,t,i,r,s){const[a,o]=X(0),[c,l]=X(()=>{var p;return((p=n.client)==null?void 0:p.session)||null}),u=Oe(s),d=Oe(null),h=Oe(null);Ge(()=>{u.current=s},[s]);const f=p=>{var v;(v=u.current)==null||v.call(u,p)},g=p=>{if(!p||d.current===p)return;h.current&&(h.current(),h.current=null);const v=()=>{o(R=>R+1)},b=()=>{o(R=>R+1)},C=()=>{o(R=>R+1)},w=()=>{o(R=>R+1)},T=R=>{},k=(R,O)=>{},x=()=>{r==null||r(!0),o(R=>R+1)},_=R=>{i(R)};p.on("stateChanged",v),p.on("speakingStateChanged",b),p.on("paused",C),p.on("unpaused",w),p.on("micCheckComplete",T),p.on("transcript",k),p.on&&p.on("textInputRequested",x),p.on&&p.on("courseProgress",_),d.current=p,h.current=()=>{p.off&&p.off("stateChanged",v),p.off&&p.off("speakingStateChanged",b),p.off&&p.off("paused",C),p.off&&p.off("unpaused",w),p.off&&p.off("micCheckComplete",T),p.off&&p.off("transcript",k),p.off&&p.off("courseProgress",_),p.off&&p.off("textInputRequested",x)}};return Ge(()=>{const p=b=>{e(b)};n.on("showMenu",p);const v=()=>{o(b=>b+1)};return n.on("configUpdated",v),n.on("showMessage",f),()=>{var b,C,w;(b=n.off)==null||b.call(n,"showMenu",p),(C=n.off)==null||C.call(n,"configUpdated",v),(w=n.off)==null||w.call(n,"showMessage",f)}},[n]),Ge(()=>{var p;n.client&&(n.client.state==="ready"&&t.style.setProperty("--obi-color-primary",((p=n.client.product)==null?void 0:p.primary_color)||"#9500FF"),n.client.session&&(l(n.client.session),g(n.client.session)),n.client.on("sessionStarted",v=>{l(v),r==null||r(!1),o(b=>b+1),g(v)}),n.client.on("sessionStopped",()=>{h.current&&(h.current(),h.current=null),d.current=null,l(null),r==null||r(!1),o(v=>v+1)}),n.client.on("sessionShutdown",()=>{o(v=>v+1)}),n.client.on("sessionResumed",()=>{o(v=>v+1)}),n.client.on("stateChanged",()=>{var v;n.client.state==="ready"&&t.style.setProperty("--obi-color-primary",((v=n.client.product)==null?void 0:v.primary_color)||"#9500FF"),o(b=>b+1)}),n.client.on("planSelected",()=>{o(v=>v+1)}))},[n,n.client]),yr(()=>{if(c)return g(c),()=>{d.current===c&&h.current&&(h.current(),h.current=null,d.current=null)}},[c]),n}function u_(n){const[e,t]=X(()=>Ca(n));return Ge(()=>{t(Ca(n))},[n]),Ge(()=>{f_();const i=()=>{t(Ca(n))};return window.addEventListener("locationchange",i),window.addEventListener("popstate",i),window.addEventListener("hashchange",i),()=>{window.removeEventListener("locationchange",i),window.removeEventListener("popstate",i),window.removeEventListener("hashchange",i)}},[n]),e}function d_(n=768){const[e,t]=X(()=>typeof window>"u"?!1:window.innerWidth<=n);return Ge(()=>{if(typeof window>"u")return;if(typeof window.matchMedia=="function"){const r=window.matchMedia(`(max-width: ${n}px)`),s=a=>t(a.matches);return t(r.matches),typeof r.addEventListener=="function"?(r.addEventListener("change",s),()=>r.removeEventListener("change",s)):typeof r.addListener=="function"?(r.addListener(s),()=>r.removeListener(s)):void 0}const i=()=>t(window.innerWidth<=n);return i(),window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[n]),e}function h_(n){const[e,t]=X("vh");return Ge(()=>{var i;if(!n){t("vh");return}if(typeof window>"u"||!((i=window.CSS)!=null&&i.supports)){t("vh");return}if(window.CSS.supports("height","100dvh")){t("dvh");return}if(window.CSS.supports("height","100svh")){t("svh");return}t("vh")},[n]),e}function f_(){const n=window;if(n.__obi_history_patched)return;const{pushState:e,replaceState:t}=window.history,i=r=>function(...s){const a=r.apply(this,s);return window.dispatchEvent(new Event("locationchange")),a};window.history.pushState=i(e),window.history.replaceState=i(t),n.__obi_history_patched=!0}function p_(n){if(document.querySelector("obi-widget"))return;m_();const e=document.createElement("div");e.id="obi-host",e.style.position="fixed",e.style.zIndex="9999",document.body.appendChild(e);const t=e.attachShadow({mode:"open"}),i=document.createElement("div");i.id="obi-container",t.appendChild(i);const r=new CSSStyleSheet;r.replaceSync(o_),t.adoptedStyleSheets=[r],x1(m(c_,{sdk:n,shadowHost:e}),i),console.log("[obi-sdk] widget mounted")}function m_(){Im("https://fonts.cdnfonts.com/css/satoshi"),Im("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap")}function Im(n){const e=document.createElement("link");e.href=n,e.rel="stylesheet",document.head.appendChild(e)}const Om="49206C6F7665204F6269_session",Am="obi-url-params";class g_ extends Oa{constructor(e){super(),this.client=null,this.isActive=!1,this.primaryColour="#9500FF",this.passivePlanUuid=null,this.commandLog=[],this.commandQueue=[],this._resumed=!1,this.dispatchCommand=(t,i)=>{var r,s,a,o,c;switch(this.commandLog.push({commandType:t,args:i}),t){case"update":this.updateConfig(i);break;case"startSession":if(!(i!=null&&i.planUuid)){console.warn("[obi] startSession command requires a planUuid",i);return}const l=(((r=this.client)==null?void 0:r.plans)||[]).find(u=>u.uuid===i.planUuid)||null;if(!l){console.warn("[obi] startSession command requires a valid planUuid",i);return}this.updateActive(!0),(a=(s=this.client)==null?void 0:s.selectPlan)==null||a.call(s,l);break;case"stopSession":(c=(o=this.client)==null?void 0:o.stopSession)==null||c.call(o);break;case"say":this.say(i);break;default:console.warn("[obi] unknown command",{commandType:t,args:i})}},e&&this.createClient(e),this.parsePassiveParams()}async createClient(e){if(this.client){this.client.appToken!==e&&console.warn("[obi] client already exists with different app token");return}let t=null;const i=this.load();if(i)try{t=ca.deserialise(i,e,"sdk",{apiBaseUrl:"https://app.coragents.ai",captureScreen:this.captureScreen.bind(this)}),t?this._resumed=!0:localStorage.removeItem("obi-client")}catch(r){console.error("[obi] error loading cached client",r),localStorage.removeItem("obi-client")}t||(t=new ca(e,"sdk",{apiBaseUrl:"https://app.coragents.ai",captureScreen:this.captureScreen.bind(this)})),this.client=t,this.client.on("stateChanged",r=>{var s,a,o,c,l,u,d,h,f,g;r==="ready"&&this.updateConfig({isActive:((s=window==null?void 0:window.obiWidgetConfig)==null?void 0:s.isActive)??((a=this.client)==null?void 0:a.showWidget),primaryColour:((c=(o=this.client)==null?void 0:o.product)==null?void 0:c.primary_color)||"#9500FF",widgetDisplay:((l=window==null?void 0:window.obiWidgetConfig)==null?void 0:l.widgetDisplay)||((d=(u=this.client)==null?void 0:u.product)==null?void 0:d.widget_display)||"regular",completedWidgetDisplay:((h=window==null?void 0:window.obiWidgetConfig)==null?void 0:h.completedWidgetDisplay)||((g=(f=this.client)==null?void 0:f.product)==null?void 0:g.completed_widget_display)||"regular"})}),this.client.on("sessionStarted",()=>{this.save(),this.passivePlanUuid=null}),this.client.on("sessionStopped",()=>{localStorage.removeItem("obi-client"),this.passivePlanUuid=null}),this.client.on("sessionShutdown",()=>{localStorage.removeItem("obi-client")}),this.client.on("trackEvent",(r,s)=>{}),this.client.session&&(this.client.session.isPaused,this.client.resumeSession(r=>{r.on("stateChanged",s=>{s!=="disconnecting"&&s!=="disconnected"&&s!=="error"&&s!=="connecting"&&this.save()}),r.on("paused",()=>{this.save()}),r.on("unpaused",()=>{this.save()})}))}_maybeActOnServerEngagement(){var o;const e=this.client;if(!e||e.state!=="ready")return;const t=e.product,i=(o=e.engagement)==null?void 0:o.style;if(!i||t&&Ca(t.widget_url_blacklist||[])||!e.showWidget)return;const r=e.plans||[],s=e.planIsCompleted||[],a=r.length>0&&s.filter(Boolean).length===r.length;if(!(r.length===0||a)){if(i==="modal"){const c=s.findIndex(u=>!u),l=c>=0?r[c]:null;l&&e.selectPlan(l)}else i==="popover"&&setTimeout(()=>{this.showMessage("Don't forget to complete your onboarding",{autoCloseMs:1e4})},1e3);try{ni().track("engagement-prompt-shown",{style:i})}catch{}}}async initialise(e={}){var t;this.commandQueue=e.queuedCommands||[],this._resumed?(this._resumed=!1,this.dispatchCommandQueue()):this.client?this.client.initialise({planUuid:this.passivePlanUuid||void 0,identity:((t=window==null?void 0:window.obiWidgetConfig)==null?void 0:t.user)||void 0}).then(()=>{this.emit("initialised");try{this._maybeActOnServerEngagement()}catch{}this.dispatchCommandQueue()}).catch(i=>{console.error("[obi] error initialising client",i),this.emit("error",i)}):this.dispatchCommandQueue()}async updateConfig(e){await this.updateAppToken(e.apiKey),this.updateActive(e.isActive),this.updatePrimaryColour(e.primaryColour),this.updateWidgetDisplay(e.widgetDisplay),this.updateCompletedWidgetDisplay(e.completedWidgetDisplay),this.updateWidgetPosition(e.widgetPosition),await this.updateIdentity(e.user),this.updateShowMenu(e.showMenu),this.emit("configUpdated")}async updateAppToken(e){var t;e===void 0||e==((t=this.client)==null?void 0:t.appToken)||(this.passivePlanUuid,await this.createClient(e),this.client&&await this.client.initialise({planUuid:this.passivePlanUuid||void 0}).then(()=>{this.emit("initialised");try{this._maybeActOnServerEngagement()}catch{}}).catch(i=>{console.error("[obi] error initialising client",i),this.emit("error",i)}))}updateActive(e){e===void 0||e==this.isActive||(this.isActive=e)}updatePrimaryColour(e){e===void 0||e==this.primaryColour||(this.primaryColour=e)}updateWidgetDisplay(e){e===void 0||e==this.widgetDisplay||(this.widgetDisplay=e)}updateCompletedWidgetDisplay(e){e===void 0||e==this.completedWidgetDisplay||(this.completedWidgetDisplay=e)}updateWidgetPosition(e){e===void 0||e==this.widgetPosition||(this.widgetPosition=e)}async updateIdentity(e){var i,r;if(e===void 0||e==((i=this.client)==null?void 0:i.identity))return;(r=this.client)==null||r.identity;let t=e?{...e,extra:{...e,...(e==null?void 0:e.extra)||{}}}:void 0;await this.client.initialise({identity:t,planUuid:this.passivePlanUuid||void 0}).then(()=>{this.emit("initialised");try{this._maybeActOnServerEngagement()}catch{}}).catch(s=>{console.error("[obi] error initialising client",s),this.emit("error",s)}),e!=null&&e.email&&ni().identify((e==null?void 0:e.email)||"",t)}updateShowMenu(e){e!==void 0&&this.emit("showMenu",e)}async say(e){var t,i,r;await((r=(i=(t=this.client)==null?void 0:t.session)==null?void 0:i.say)==null?void 0:r.call(i,e))}async startSession(){await this.client.startSession(this.client.selectedPlanUuid,e=>{e.on("stateChanged",t=>{t!=="disconnecting"&&t!=="disconnected"&&t!=="error"&&t!=="connecting"&&this.save()}),e.on("paused",()=>{this.save()}),e.on("unpaused",()=>{this.save()})})}dispatchCommandQueue(){const e=this.commandQueue;this.commandQueue=[],e.forEach(t=>{try{this.dispatchCommand(t[0],t[1]||[])}catch(i){console.error("[obi] error dispatching command",i)}})}parsePassiveParams(){if(this.passivePlanUuid){this.passivePlanUuid;return}let e={};e=JSON.parse(localStorage.getItem(Am)||"{}"),Object.keys(e).length===0&&new URLSearchParams(window.location.search).forEach((s,a)=>{e[a]=s});const t=e[Om];if(!t)return null;const i=new URL(window.location.href);i.searchParams.delete(Om),window.history.replaceState({},"",i.toString()),i.toString(),localStorage.removeItem(Am),this.passivePlanUuid=t}mountWidget(){p_(this)}showMessage(e,t){try{this.emit("showMessage",{text:e,autoCloseMs:t==null?void 0:t.autoCloseMs})}catch{}}async captureScreen(){try{await Fw(async()=>(this.graphemes||(this.graphemes=await this.client.api.getGraphemes()),this.graphemes.data.text_segmentation)),await a_(async()=>(this.graphemes||(this.graphemes=await this.client.api.getGraphemes()),this.graphemes.data.css_line_breaks))}catch(e){throw console.error("[obi] error initialising unicode trie",e),e}try{return(await IT(document.documentElement,{useCORS:!0,allowTaint:!0,foreignObjectRendering:!0})).toDataURL("image/png")}catch(e){throw console.error("[obi] error capturing screen",e),e}}save(){var t;const e=((t=this.client)==null?void 0:t.serialise())||"";localStorage.setItem("obi-client",e)}load(){return localStorage.getItem("obi-client")}}async function Nm(n,e){let t;try{t=window}catch{console.warn("[obi] no window object found"),t={}}return v_({appToken:n,window:t,init:e})}async function v_({appToken:n,window:e,init:t}){var s,a;if(e.obi){console.warn("[obi] obi object already found on window, skipping");return}t&&t(),n||(n=(s=e==null?void 0:e.obiWidgetConfig)==null?void 0:s.apiKey);let i;try{i=((a=e.ObiSDK)==null?void 0:a.q)||[]}catch{i=[]}const r=new g_(n);return e.ObiSDK=r.dispatchCommand,await r.initialise({queuedCommands:i}),e.obi=r,r.mountWidget(),r}function Mm(){}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{Nm(void 0,Mm)}):Nm(void 0,Mm)})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "obi-sdk",
3
- "version": "0.19.47",
3
+ "version": "0.19.49",
4
4
  "description": "JavaScript SDK for Obi",
5
5
  "type": "module",
6
6
  "main": "dist/obi-sdk.umd.js",