(function(){"use strict";var wO=Object.defineProperty;var bO=($e,be,Le)=>be in $e?wO($e,be,{enumerable:!0,configurable:!0,writable:!0,value:Le}):$e[be]=Le;var X=($e,be,Le)=>(bO($e,typeof be!="symbol"?be+"":be,Le),Le);const $e=!!{APP_REGION:'"us1"',APP_ENV:'"prod"',APP_FV_REGION:'"us1"',APP_VERSION:'"1.980.0"',APP_NAME:'"sdk-loader"'}.APP_LOCAL,be=["dev","stage","prod"],Le=["eu","eu2","us1"],no=["APP_LOCAL"];function yt(e){let a;if(typeof e=="string")try{a=JSON.parse(e)}catch{a=e}else a=e;return typeof a=="string"&&(["true","false"].includes(a)?a=!!a:isNaN(+a)||(a=+a)),a}function oo(){return Object.keys({APP_REGION:'"us1"',APP_ENV:'"prod"',APP_FV_REGION:'"us1"',APP_VERSION:'"1.980.0"',APP_NAME:'"sdk-loader"'}).filter(e=>/^APP_/.test(e)&&!no.includes(e)).reduce((e,a)=>{const t={APP_REGION:'"us1"',APP_ENV:'"prod"',APP_FV_REGION:'"us1"',APP_VERSION:'"1.980.0"',APP_NAME:'"sdk-loader"'}[a],s=a.split("_").slice(1).map((r,n)=>`${r[0][n===0?"toLowerCase":"toUpperCase"]()}${r.slice(1).toLowerCase()}`).join("");return Object.assign(e,{[s]:yt(t)})},{})}function cs(){let e='"us1"'.toLowerCase();return Le.indexOf(e)===-1&&(e=yt(e)),Le.indexOf(e)===-1&&(e="eu"),e}function io(){if(cs()!=="eu")return"prod";let a='"prod"'.toLowerCase();return be.indexOf(a)===-1&&(a=yt(a)),be.indexOf(a)===-1&&(a="dev"),a}const hs=["dev","stage","eu1","eu2","us1"];function lo(){let e='"us1"'.toLowerCase();return hs.indexOf(e)===-1&&(e=yt(e)),hs.indexOf(e)===-1&&(e="dev"),e}function St(){const e=io(),a=cs(),t=lo();return{...oo(),env:e,region:a,fvRegion:t,isLocalProcess:!!{APP_REGION:'"us1"',APP_ENV:'"prod"',APP_FV_REGION:'"us1"',APP_VERSION:'"1.980.0"',APP_NAME:'"sdk-loader"'}.APP_LOCAL,isDev:e==="dev",isStage:e==="stage",isProd:e==="prod"}}class oe{constructor(a){X(this,"ws");X(this,"http");this.ws=new pt(a,"ws",a.sameOnAllRegions),this.http=new pt(a,"http",a.sameOnAllRegions)}}class pt{constructor(a,t,s=!1){X(this,"map");X(this,"protocol");X(this,"locked");X(this,"runtime",St());X(this,"urls");this.map=a,this.protocol=t,this.locked=s;const r={local:a.local?new URL(a.local):void 0,dev:new URL(a.dev),stage:new URL(a.stage),prod:new URL(a.prod)};this.adaptProtocol(r),this.adaptToRegion(r),this.urls={local:this.prettyURL(r.local),dev:this.prettyURL(r.dev),stage:this.prettyURL(r.stage),prod:this.prettyURL(r.prod)}}get local(){return this.urls.local}get dev(){return this.urls.dev}get stage(){return this.urls.stage}get prod(){return this.urls.prod}get url(){return this.runtime.isLocalProcess&&this.local?this.local:this[this.runtime.env]}region(a){switch(a){case"eu":return new pt(this.map,this.protocol,!0);case"eu2":case"us1":{const t=new URL(this.map.prod);t.hostname=this.regionalize(t.hostname,a);const s=this.prettyURL(t);return new pt({dev:s,stage:s,prod:s},this.protocol,!0)}}}regionalize(a,t){const[s,...r]=a.split(".");return`${s}.${t}.${r.join(".")}`}adaptProtocol(a){const t=this.protocol==="ws"?/^http/:/^ws/;a.local&&(a.local.protocol=a.local.protocol.replace(t,this.protocol)),a.dev.protocol=a.dev.protocol.replace(t,this.protocol),a.stage.protocol=a.stage.protocol.replace(t,this.protocol),a.prod.protocol=a.prod.protocol.replace(t,this.protocol)}adaptToRegion(a){if(!this.locked)switch(this.runtime.region){case"eu":break;case"eu2":case"us1":a.prod.hostname=this.regionalize(a.prod.hostname,this.runtime.region);break}}prettyURL(a){return a==null?void 0:a.toString().replace(/\/$/,"")}}class H{static expand(a,t){return H.expandImpl(a,t)}static validateLiteral(a,t){switch(a){case"+":case"#":case"/":case";":case"?":case"&":case" ":case"!":case"=":case"$":case"|":case"*":case":":case"~":case"-":throw new Error(`Illegal character identified in the token at col: ${t}`)}}static getMaxChar(a,t){if(a){const s=a.join("");if(s.length===0)return-1;try{return parseInt(s,10)}catch{throw new Error(`Cannot parse max chars at col: ${t}`)}}else return-1}static getOperator(a,t,s){switch(a){case"+":return 1;case"#":return 2;case".":return 3;case"/":return 4;case";":return 5;case"?":return 6;case"&":return 7;default:return H.validateLiteral(a,s),t.push(a),0}}static expandImpl(a,t){const s=[];let r=null,n=null,o=!1,i=null,l=!0;for(let c=0;c<a.length;c++){const d=a.charAt(c);switch(d){case"{":r=[],l=!0;break;case"}":if(r!==null)H.expandToken(n,r.join(""),o,H.getMaxChar(i,c),l,t,s,c)&&l&&(l=!1),r=null,n=null,o=!1,i=null;else throw new Error(`Failed to expand token, invalid at col: ${c}`);break;case",":if(r!==null){H.expandToken(n,r.join(""),o,H.getMaxChar(i,c),l,t,s,c)&&l&&(l=!1),r=[],o=!1,i=null;break}default:if(r!==null)if(n===null)n=H.getOperator(d,r,c);else if(i!==null)if(d.match(/^\d$/))i.push(d);else throw new Error(`Illegal character identified in the token at col: ${c}`);else d===":"?i=[]:d==="*"?o=!0:(H.validateLiteral(d,c),r.push(d));else s.push(d);break}}if(r===null)return s.join("");throw new Error("Unterminated token")}static addPrefix(a,t){switch(a){case 2:t.push("#");break;case 3:t.push(".");break;case 4:t.push("/");break;case 5:t.push(";");break;case 6:t.push("?");break;case 7:t.push("&");break;default:return}}static addSeparator(a,t){switch(a){case 3:t.push(".");break;case 4:t.push("/");break;case 5:t.push(";");break;case 6:case 7:t.push("&");break;default:t.push(",");return}}static addValue(a,t,s,r,n){switch(a){case 1:case 2:H.addExpandedValue(null,s,r,n,!1);break;case 6:case 7:r.push(`${t}=`),H.addExpandedValue(null,s,r,n,!0);break;case 5:r.push(t),H.addExpandedValue("=",s,r,n,!0);break;case 3:case 4:case 0:H.addExpandedValue(null,s,r,n,!0);break}}static addValueElement(a,t,s,r,n){switch(a){case 1:case 2:H.addExpandedValue(null,s,r,n,!1);break;case 6:case 7:case 5:case 3:case 4:case 0:H.addExpandedValue(null,s,r,n,!0);break}}static isSurrogate(a){const t=a.charCodeAt(0);return t>=55296&&t<=56319}static isIprivate(a){return 57344<=a.charCodeAt(0)&&a.charCodeAt(0)<=63743}static isUcschar(a){const t=a.codePointAt(0)||0;return 160<=t&&t<=55295||63744<=t&&t<=64975||65008<=t&&t<=65519}static addExpandedValue(a,t,s,r,n){const o=H.convertNativeTypes(t),i=r!==-1?Math.min(r,o.length):o.length;let l;i>0&&a!=null&&s.push(a);for(let c=0;c<i;c++){const d=o.charAt(c);d==="%"&&!n&&(l=[]);let p=d;if(H.isSurrogate(d)?(p=encodeURIComponent(o.charAt(c)+o.charAt(c+1)),c++):(n||H.isUcschar(d)||H.isIprivate(d))&&(d==="!"?p="%21":p=encodeURIComponent(p)),l){if(l.push(p),l.length===3){let w=!1;try{const C=l.join(""),O=decodeURIComponent(l.join(""));w=C!==O}catch{}w?s.push(l.join("")):(s.push("%25"),s.push(l.slice(1).join(""))),l=void 0}}else d===" "?s.push("%20"):d==="%"?s.push("%25"):s.push(p)}l&&(s.push("%25"),s.push(l.slice(1).join("")))}static isList(a){return Array.isArray(a)||a instanceof Set}static isMap(a){return a instanceof Map||typeof a=="object"}static getSubstitutionType(a,t){if(a==null)return 0;if(H.isNativeType(a))return 1;if(H.isList(a))return 2;if(H.isMap(a))return 3;throw new Error(`Illegal class passed as substitution, found ${typeof a} at col: ${t}`)}static isEmpty(a,t){if(t==null)return!0;switch(a){case 1:return!1;case 2:return t.length===0;case 3:return Object.keys(t).length===0;default:return!0}}static isNativeType(a){return typeof a=="string"||typeof a=="number"||typeof a=="boolean"}static convertNativeTypes(a){if(typeof a=="string")return a;if(typeof a=="number"||typeof a=="boolean")return a.toString();throw new Error(`Illegal class passed as substitution, found ${typeof a}`)}static expandToken(a,t,s,r,n,o,i,l){if(t.length===0)throw new Error(`Found an empty token at col: ${l}`);const c=o[t],d=H.getSubstitutionType(c,l);if(d===0||H.isEmpty(d,c))return!1;switch(n?H.addPrefix(a,i):H.addSeparator(a,i),d){case 1:H.addStringValue(a,t,c,i,r);break;case 2:H.addListValue(a,t,c,i,r,s);break;case 3:H.addMapValue(a,t,c,i,r,s);break}return!0}static addStringValue(a,t,s,r,n){H.addValue(a,t,s,r,n)}static addListValue(a,t,s,r,n,o){let i=!0;for(const l of s)i?(H.addValue(a,t,l,r,n),i=!1):o?(H.addSeparator(a,r),H.addValue(a,t,l,r,n)):(r.push(","),H.addValueElement(a,t,l,r,n))}static addMapValue(a,t,s,r,n,o){let i=!0;if(n!==-1)throw new Error("Value trimming is not allowed on Maps");for(const l in s){const c=s[l];o?(i||H.addSeparator(a,r),H.addValueElement(a,t,l,r,n),r.push("=")):(i?H.addValue(a,t,l,r,n):(r.push(","),H.addValueElement(a,t,l,r,n)),r.push(",")),H.addValueElement(a,t,c,r,n),i=!1}}}class vt{constructor(a,t){X(this,"runtime",St());X(this,"ws");X(this,"http");const s=(t==null?void 0:t[this.runtime.fvRegion])??a,r=this.runtime.isLocalProcess?(t==null?void 0:t.local)??s:s;this.ws=new ds(r,"ws"),this.http=new ds(r,"http")}}class ds{constructor(a,t){X(this,"runtime",St());X(this,"template");this.template=a.replace(/^(http|ws)/,t)}get(a){return H.expand(this.template,{...a,fvRegion:a.fvRegion??this.runtime.fvRegion,version:a.version??this.runtime.version})}}new oe({dev:"https://api.dev.fullview.io/v4/log",stage:"https://api.stage.fullview.io/v4/log",prod:"https://api.fullview.io/v4/log"}),new oe({local:"http://localhost:3003",dev:"https://call.dev.fullview.io",stage:"https://call.stage.fullview.io",prod:"https://call.fullview.io"});const co=new oe({dev:"https://api.dev.fullview.io/v1/assets",stage:"https://api.stage.fullview.io/v1/assets",prod:"https://api.fullview.io/v1/assets"}),ho=new vt("https://install.{fvRegion}.fullview.io",{local:"http://localhost:3001/src/index.ts{?o,w,s}"});new vt("https://api.{fvRegion}.fullview.io/v1/install");const uo=new vt("https://install.{fvRegion}.fullview.io/v{version}/sdk.js",{local:"http://localhost:3002/src/index.tsx{?o,w,s}"});new vt("https://install.{fvRegion}.fullview.io/v{version}/sdkWorker.js",{local:"http://localhost:3004/build/sdkWorker.js"}),new oe({local:"http://localhost:3005/build/dashboardWorker.js",dev:"https://dev.fullview.io/dashboardWorker.js",stage:"https://stage.fullview.io/dashboardWorker.js",prod:"https://app.fullview.io/dashboardWorker.js"}),new oe({dev:"https://api.dev.fullview.io/v1/daily",stage:"https://api.stage.fullview.io/v1/daily",prod:"https://api.fullview.io/v1/daily"}),new oe({dev:"https://api.dev.fullview.io/v1/fonts",stage:"https://api.stage.fullview.io/v1/fonts",prod:"https://api.fullview.io/v1/fonts"});const Te=new oe({dev:"https://api.dev.fullview.io/nexus",stage:"https://api.stage.fullview.io/nexus",prod:"https://api.fullview.io/nexus"}),fe=new oe({dev:"https://api.dev.fullview.io/citadel",stage:"https://api.stage.fullview.io/citadel",prod:"https://api.fullview.io/citadel"}),me=new oe({dev:"https://api.dev.fullview.io/access",stage:"https://api.stage.fullview.io/access",prod:"https://api.fullview.io/access"}),po=new oe({dev:"https://api.dev.fullview.io/v1/collector",stage:"https://api.stage.fullview.io/v1/collector",prod:"https://api.fullview.io/v1/collector"}),Tt=new oe({dev:"https://api.dev.fullview.io/ai-agent",stage:"https://api.stage.fullview.io/ai-agent",prod:"https://api.fullview.io/ai-agent"});new oe({local:"http://localhost:3000",dev:"https://dev.fullview.io",stage:"https://stage.fullview.io",prod:"https://app.fullview.io"});const us=new oe({sameOnAllRegions:!0,dev:"https://api.dev.fullview.io/v1/connect",stage:"https://api.stage.fullview.io/v1/connect",prod:"https://api.fullview.io/v1/connect"}),ps=new oe({dev:"https://api.dev.fullview.io/integrations",stage:"https://api.stage.fullview.io/integrations",prod:"https://api.fullview.io/integrations"});new oe({sameOnAllRegions:!0,local:"http://localhost:5175",dev:"https://demo.fullview.io",stage:"https://demo.fullview.io",prod:"https://demo.fullview.io"});const Oo=()=>{},Ut="fvDebug",mo=e=>!((!$e||e!=="error")&&(!globalThis.localStorage||localStorage.getItem(Ut)!=="true"));function It(e,a,t){const s=t.value,r=function(...n){if(mo(a))return s.apply(this,n)};return t.value=r,t}var Po=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,Ct=(e,a,t,s)=>{for(var r=s>1?void 0:s?Ro(a,t):a,n=e.length-1,o;n>=0;n--)(o=e[n])&&(r=(s?o(a,t,r):o(r))||r);return s&&r&&Po(a,t,r),r};class Xe{get logger(){return self.console}debug(a,...t){this.logger.debug(this.cookArea(a),...t)}log(a,...t){this.logger.log(this.cookArea(a),...t)}warn(a,...t){this.logger.warn(this.cookArea(a),...t)}error(a,...t){this.logger.error(this.cookArea(a),...t)}clone(){return Object.assign(Object.create(Object.getPrototypeOf(this)),this)}cookArea(a){return`[fv/${a}]`}}Ct([It],Xe.prototype,"debug",1),Ct([It],Xe.prototype,"log",1),Ct([It],Xe.prototype,"warn",1),Ct([It],Xe.prototype,"error",1);class Ao{constructor(){X(this,"sinks",[])}addLogger(a){this.sinks.push(a)}debug(a,t,...s){this.sinks.forEach(r=>r.debug(a,t,...s))}log(a,t,...s){this.sinks.forEach(r=>r.log(a,t,...s))}warn(a,t,...s){this.sinks.forEach(r=>r.warn(a,t,...s))}error(a,t,s,...r){s instanceof Error?r.unshift({error:{message:s.message,stack:s.stack}}):s&&r.unshift(s),this.sinks.forEach(n=>n.error(a,t,...r))}setMeta(a){this.sinks.forEach(t=>{var s;return(s=t.setMeta)==null?void 0:s.call(t,a)})}setIgnoreFilter(a){this.sinks.forEach(t=>{var s;return(s=t.setIgnoreFilter)==null?void 0:s.call(t,a)})}clone(){return Object.assign(Object.create(Object.getPrototypeOf(this)),this,{sinks:this.sinks.map(a=>a.clone())})}with(a){var s;const t=this.clone();return(s=t.setMeta)==null||s.call(t,a),t}removeConsoleLogger(){this.sinks=this.sinks.filter(a=>!(a instanceof Xe))}}const Ve=new Ao;Ve.addLogger(new Xe);class Eo{constructor(a){this.audio=a,this.isPlaying=!1}get raw(){return this.audio}play({loop:a=!1,throttle:t=!1}={}){if(this.isPlaying&&t)return;this.audio.pause(),this.audio.currentTime=0,this.audio.loop=a,this.isPlaying=!0;const s=()=>{this.isPlaying=!1,this.audio.removeEventListener("ended",s)};this.audio.addEventListener("ended",s),this.audio.play().catch(()=>{this.isPlaying=!1})}pause(){this.audio.pause(),this.isPlaying=!1}}const fo={blank:"/tones/blank.mp3",chatMessage:"/tones/chatMessage.mp3",supportRequest:"/tones/supportRequest.ogg",incomingCall:"/tones/incomingCall.mp3",participantJoined:"/tones/participantJoined.ogg"};class _t{static tone(a){var t,s;return(t=this.toneInstances)[a]??(t[a]=new Audio(`${co.http.url}${this.tonePaths[a]}`)),(s=this.toneControllerInstances)[a]??(s[a]=new Eo(this.toneInstances[a])),this.toneControllerInstances[a]}}_t.tonePaths=fo,_t.toneInstances={},_t.toneControllerInstances={};var ta=function(e,a){return ta=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,s){t.__proto__=s}||function(t,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(t[r]=s[r])},ta(e,a)};function Ue(e,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");ta(e,a);function t(){this.constructor=e}e.prototype=a===null?Object.create(a):(t.prototype=a.prototype,new t)}function Vo(e,a,t,s){function r(n){return n instanceof t?n:new t(function(o){o(n)})}return new(t||(t=Promise))(function(n,o){function i(d){try{c(s.next(d))}catch(p){o(p)}}function l(d){try{c(s.throw(d))}catch(p){o(p)}}function c(d){d.done?n(d.value):r(d.value).then(i,l)}c((s=s.apply(e,a||[])).next())})}function Os(e,a){var t={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},s,r,n,o;return o={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function i(c){return function(d){return l([c,d])}}function l(c){if(s)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(t=0)),t;)try{if(s=1,r&&(n=c[0]&2?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[c[0]&2,n.value]),c[0]){case 0:case 1:n=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,r=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(n=t.trys,!(n=n.length>0&&n[n.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!n||c[1]>n[0]&&c[1]<n[3])){t.label=c[1];break}if(c[0]===6&&t.label<n[1]){t.label=n[1],n=c;break}if(n&&t.label<n[2]){t.label=n[2],t.ops.push(c);break}n[2]&&t.ops.pop(),t.trys.pop();continue}c=a.call(e,t)}catch(d){c=[6,d],r=0}finally{s=n=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Ke(e){var a=typeof Symbol=="function"&&Symbol.iterator,t=a&&e[a],s=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&s>=e.length&&(e=void 0),{value:e&&e[s++],done:!e}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}function Fe(e,a){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var s=t.call(e),r,n=[],o;try{for(;(a===void 0||a-- >0)&&!(r=s.next()).done;)n.push(r.value)}catch(i){o={error:i}}finally{try{r&&!r.done&&(t=s.return)&&t.call(s)}finally{if(o)throw o.error}}return n}function Me(e,a,t){if(t||arguments.length===2)for(var s=0,r=a.length,n;s<r;s++)(n||!(s in a))&&(n||(n=Array.prototype.slice.call(a,0,s)),n[s]=a[s]);return e.concat(n||Array.prototype.slice.call(a))}function Ze(e){return this instanceof Ze?(this.v=e,this):new Ze(e)}function wo(e,a,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=t.apply(e,a||[]),r,n=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(w){s[w]&&(r[w]=function(C){return new Promise(function(O,j){n.push([w,C,O,j])>1||i(w,C)})})}function i(w,C){try{l(s[w](C))}catch(O){p(n[0][3],O)}}function l(w){w.value instanceof Ze?Promise.resolve(w.value.v).then(c,d):p(n[0][2],w)}function c(w){i("next",w)}function d(w){i("throw",w)}function p(w,C){w(C),n.shift(),n.length&&i(n[0][0],n[0][1])}}function bo(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=e[Symbol.asyncIterator],t;return a?a.call(e):(e=typeof Ke=="function"?Ke(e):e[Symbol.iterator](),t={},s("next"),s("throw"),s("return"),t[Symbol.asyncIterator]=function(){return this},t);function s(n){t[n]=e[n]&&function(o){return new Promise(function(i,l){o=e[n](o),r(i,l,o.done,o.value)})}}function r(n,o,i,l){Promise.resolve(l).then(function(c){n({value:c,done:i})},o)}}typeof SuppressedError=="function"&&SuppressedError;function K(e){return typeof e=="function"}function aa(e){var a=function(s){Error.call(s),s.stack=new Error().stack},t=e(a);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var sa=aa(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
`+t.map(function(s,r){return r+1+") "+s.toString()}).join(`
  `):"",this.name="UnsubscriptionError",this.errors=t}});function xt(e,a){if(e){var t=e.indexOf(a);0<=t&&e.splice(t,1)}}var Ot=function(){function e(a){this.initialTeardown=a,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var a,t,s,r,n;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var i=Ke(o),l=i.next();!l.done;l=i.next()){var c=l.value;c.remove(this)}}catch(j){a={error:j}}finally{try{l&&!l.done&&(t=i.return)&&t.call(i)}finally{if(a)throw a.error}}else o.remove(this);var d=this.initialTeardown;if(K(d))try{d()}catch(j){n=j instanceof sa?j.errors:[j]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var w=Ke(p),C=w.next();!C.done;C=w.next()){var O=C.value;try{Rs(O)}catch(j){n=n??[],j instanceof sa?n=Me(Me([],Fe(n)),Fe(j.errors)):n.push(j)}}}catch(j){s={error:j}}finally{try{C&&!C.done&&(r=w.return)&&r.call(w)}finally{if(s)throw s.error}}}if(n)throw new sa(n)}},e.prototype.add=function(a){var t;if(a&&a!==this)if(this.closed)Rs(a);else{if(a instanceof e){if(a.closed||a._hasParent(this))return;a._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(a)}},e.prototype._hasParent=function(a){var t=this._parentage;return t===a||Array.isArray(t)&&t.includes(a)},e.prototype._addParent=function(a){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(a),t):t?[t,a]:a},e.prototype._removeParent=function(a){var t=this._parentage;t===a?this._parentage=null:Array.isArray(t)&&xt(t,a)},e.prototype.remove=function(a){var t=this._finalizers;t&&xt(t,a),a instanceof e&&a._removeParent(this)},e.EMPTY=function(){var a=new e;return a.closed=!0,a}(),e}(),ms=Ot.EMPTY;function Ps(e){return e instanceof Ot||e&&"closed"in e&&K(e.remove)&&K(e.add)&&K(e.unsubscribe)}function Rs(e){K(e)?e():e.unsubscribe()}var As={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ra={setTimeout:function(e,a){for(var t=[],s=2;s<arguments.length;s++)t[s-2]=arguments[s];var r=ra.delegate;return r!=null&&r.setTimeout?r.setTimeout.apply(r,Me([e,a],Fe(t))):setTimeout.apply(void 0,Me([e,a],Fe(t)))},clearTimeout:function(e){var a=ra.delegate;return((a==null?void 0:a.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Es(e){ra.setTimeout(function(){throw e})}function na(){}function Lt(e){e()}var oa=function(e){Ue(a,e);function a(t){var s=e.call(this)||this;return s.isStopped=!1,t?(s.destination=t,Ps(t)&&t.add(s)):s.destination=vo,s}return a.create=function(t,s,r){return new Ft(t,s,r)},a.prototype.next=function(t){this.isStopped||this._next(t)},a.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},a.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},a.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},a.prototype._next=function(t){this.destination.next(t)},a.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},a.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},a}(Ot),go=Function.prototype.bind;function ia(e,a){return go.call(e,a)}var yo=function(){function e(a){this.partialObserver=a}return e.prototype.next=function(a){var t=this.partialObserver;if(t.next)try{t.next(a)}catch(s){Nt(s)}},e.prototype.error=function(a){var t=this.partialObserver;if(t.error)try{t.error(a)}catch(s){Nt(s)}else Nt(a)},e.prototype.complete=function(){var a=this.partialObserver;if(a.complete)try{a.complete()}catch(t){Nt(t)}},e}(),Ft=function(e){Ue(a,e);function a(t,s,r){var n=e.call(this)||this,o;if(K(t)||!t)o={next:t??void 0,error:s??void 0,complete:r??void 0};else{var i;n&&As.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=function(){return n.unsubscribe()},o={next:t.next&&ia(t.next,i),error:t.error&&ia(t.error,i),complete:t.complete&&ia(t.complete,i)}):o=t}return n.destination=new yo(o),n}return a}(oa);function Nt(e){Es(e)}function So(e){throw e}var vo={closed:!0,next:na,error:So,complete:na},la=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function fs(e){return e}function To(e){return e.length===0?fs:e.length===1?e[0]:function(t){return e.reduce(function(s,r){return r(s)},t)}}var ue=function(){function e(a){a&&(this._subscribe=a)}return e.prototype.lift=function(a){var t=new e;return t.source=this,t.operator=a,t},e.prototype.subscribe=function(a,t,s){var r=this,n=Io(a)?a:new Ft(a,t,s);return Lt(function(){var o=r,i=o.operator,l=o.source;n.add(i?i.call(n,l):l?r._subscribe(n):r._trySubscribe(n))}),n},e.prototype._trySubscribe=function(a){try{return this._subscribe(a)}catch(t){a.error(t)}},e.prototype.forEach=function(a,t){var s=this;return t=Vs(t),new t(function(r,n){var o=new Ft({next:function(i){try{a(i)}catch(l){n(l),o.unsubscribe()}},error:n,complete:r});s.subscribe(o)})},e.prototype._subscribe=function(a){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(a)},e.prototype[la]=function(){return this},e.prototype.pipe=function(){for(var a=[],t=0;t<arguments.length;t++)a[t]=arguments[t];return To(a)(this)},e.prototype.toPromise=function(a){var t=this;return a=Vs(a),new a(function(s,r){var n;t.subscribe(function(o){return n=o},function(o){return r(o)},function(){return s(n)})})},e.create=function(a){return new e(a)},e}();function Vs(e){var a;return(a=e??As.Promise)!==null&&a!==void 0?a:Promise}function Uo(e){return e&&K(e.next)&&K(e.error)&&K(e.complete)}function Io(e){return e&&e instanceof oa||Uo(e)&&Ps(e)}function Co(e){return K(e==null?void 0:e.lift)}function He(e){return function(a){if(Co(a))return a.lift(function(t){try{return e(t,this)}catch(s){this.error(s)}});throw new TypeError("Unable to lift unknown Observable type")}}function Qe(e,a,t,s,r){return new _o(e,a,t,s,r)}var _o=function(e){Ue(a,e);function a(t,s,r,n,o,i){var l=e.call(this,t)||this;return l.onFinalize=o,l.shouldUnsubscribe=i,l._next=s?function(c){try{s(c)}catch(d){t.error(d)}}:e.prototype._next,l._error=n?function(c){try{n(c)}catch(d){t.error(d)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=r?function(){try{r()}catch(c){t.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,l}return a.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var s=this.closed;e.prototype.unsubscribe.call(this),!s&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},a}(oa),xo=aa(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Dt=function(e){Ue(a,e);function a(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return a.prototype.lift=function(t){var s=new ws(this,this);return s.operator=t,s},a.prototype._throwIfClosed=function(){if(this.closed)throw new xo},a.prototype.next=function(t){var s=this;Lt(function(){var r,n;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var o=Ke(s.currentObservers),i=o.next();!i.done;i=o.next()){var l=i.value;l.next(t)}}catch(c){r={error:c}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},a.prototype.error=function(t){var s=this;Lt(function(){if(s._throwIfClosed(),!s.isStopped){s.hasError=s.isStopped=!0,s.thrownError=t;for(var r=s.observers;r.length;)r.shift().error(t)}})},a.prototype.complete=function(){var t=this;Lt(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var s=t.observers;s.length;)s.shift().complete()}})},a.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(a.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),a.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},a.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},a.prototype._innerSubscribe=function(t){var s=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?ms:(this.currentObservers=null,i.push(t),new Ot(function(){s.currentObservers=null,xt(i,t)}))},a.prototype._checkFinalizedStatuses=function(t){var s=this,r=s.hasError,n=s.thrownError,o=s.isStopped;r?t.error(n):o&&t.complete()},a.prototype.asObservable=function(){var t=new ue;return t.source=this,t},a.create=function(t,s){return new ws(t,s)},a}(ue),ws=function(e){Ue(a,e);function a(t,s){var r=e.call(this)||this;return r.destination=t,r.source=s,r}return a.prototype.next=function(t){var s,r;(r=(s=this.destination)===null||s===void 0?void 0:s.next)===null||r===void 0||r.call(s,t)},a.prototype.error=function(t){var s,r;(r=(s=this.destination)===null||s===void 0?void 0:s.error)===null||r===void 0||r.call(s,t)},a.prototype.complete=function(){var t,s;(s=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||s===void 0||s.call(t)},a.prototype._subscribe=function(t){var s,r;return(r=(s=this.source)===null||s===void 0?void 0:s.subscribe(t))!==null&&r!==void 0?r:ms},a}(Dt),bs=function(e){Ue(a,e);function a(t){var s=e.call(this)||this;return s._value=t,s}return Object.defineProperty(a.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),a.prototype._subscribe=function(t){var s=e.prototype._subscribe.call(this,t);return!s.closed&&t.next(this._value),s},a.prototype.getValue=function(){var t=this,s=t.hasError,r=t.thrownError,n=t._value;if(s)throw r;return this._throwIfClosed(),n},a.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},a}(Dt),gs={now:function(){return(gs.delegate||Date).now()},delegate:void 0},Lo=function(e){Ue(a,e);function a(t,s){return e.call(this)||this}return a.prototype.schedule=function(t,s){return this},a}(Ot),Bt={setInterval:function(e,a){for(var t=[],s=2;s<arguments.length;s++)t[s-2]=arguments[s];var r=Bt.delegate;return r!=null&&r.setInterval?r.setInterval.apply(r,Me([e,a],Fe(t))):setInterval.apply(void 0,Me([e,a],Fe(t)))},clearInterval:function(e){var a=Bt.delegate;return((a==null?void 0:a.clearInterval)||clearInterval)(e)},delegate:void 0},Fo=function(e){Ue(a,e);function a(t,s){var r=e.call(this,t,s)||this;return r.scheduler=t,r.work=s,r.pending=!1,r}return a.prototype.schedule=function(t,s){var r;if(s===void 0&&(s=0),this.closed)return this;this.state=t;var n=this.id,o=this.scheduler;return n!=null&&(this.id=this.recycleAsyncId(o,n,s)),this.pending=!0,this.delay=s,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(o,this.id,s),this},a.prototype.requestAsyncId=function(t,s,r){return r===void 0&&(r=0),Bt.setInterval(t.flush.bind(t,this),r)},a.prototype.recycleAsyncId=function(t,s,r){if(r===void 0&&(r=0),r!=null&&this.delay===r&&this.pending===!1)return s;s!=null&&Bt.clearInterval(s)},a.prototype.execute=function(t,s){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,s);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},a.prototype._execute=function(t,s){var r=!1,n;try{this.work(t)}catch(o){r=!0,n=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},a.prototype.unsubscribe=function(){if(!this.closed){var t=this,s=t.id,r=t.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,xt(n,this),s!=null&&(this.id=this.recycleAsyncId(r,s,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},a}(Lo),ys=function(){function e(a,t){t===void 0&&(t=e.now),this.schedulerActionCtor=a,this.now=t}return e.prototype.schedule=function(a,t,s){return t===void 0&&(t=0),new this.schedulerActionCtor(this,a).schedule(s,t)},e.now=gs.now,e}(),No=function(e){Ue(a,e);function a(t,s){s===void 0&&(s=ys.now);var r=e.call(this,t,s)||this;return r.actions=[],r._active=!1,r}return a.prototype.flush=function(t){var s=this.actions;if(this._active){s.push(t);return}var r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=s.shift());if(this._active=!1,r){for(;t=s.shift();)t.unsubscribe();throw r}},a}(ys),Ss=new No(Fo),Do=Ss,vs=new ue(function(e){return e.complete()});function Ts(e){return e&&K(e.schedule)}function Us(e){return e[e.length-1]}function Bo(e){return Ts(Us(e))?e.pop():void 0}function jo(e,a){return typeof Us(e)=="number"?e.pop():a}var ca=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Is(e){return K(e==null?void 0:e.then)}function Cs(e){return K(e[la])}function _s(e){return Symbol.asyncIterator&&K(e==null?void 0:e[Symbol.asyncIterator])}function xs(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function qo(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ls=qo();function Fs(e){return K(e==null?void 0:e[Ls])}function Ns(e){return wo(this,arguments,function(){var t,s,r,n;return Os(this,function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,Ze(t.read())];case 3:return s=o.sent(),r=s.value,n=s.done,n?[4,Ze(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,Ze(r)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function Ds(e){return K(e==null?void 0:e.getReader)}function Ne(e){if(e instanceof ue)return e;if(e!=null){if(Cs(e))return $o(e);if(ca(e))return Mo(e);if(Is(e))return Ho(e);if(_s(e))return Bs(e);if(Fs(e))return Qo(e);if(Ds(e))return ko(e)}throw xs(e)}function $o(e){return new ue(function(a){var t=e[la]();if(K(t.subscribe))return t.subscribe(a);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Mo(e){return new ue(function(a){for(var t=0;t<e.length&&!a.closed;t++)a.next(e[t]);a.complete()})}function Ho(e){return new ue(function(a){e.then(function(t){a.closed||(a.next(t),a.complete())},function(t){return a.error(t)}).then(null,Es)})}function Qo(e){return new ue(function(a){var t,s;try{for(var r=Ke(e),n=r.next();!n.done;n=r.next()){var o=n.value;if(a.next(o),a.closed)return}}catch(i){t={error:i}}finally{try{n&&!n.done&&(s=r.return)&&s.call(r)}finally{if(t)throw t.error}}a.complete()})}function Bs(e){return new ue(function(a){Go(e,a).catch(function(t){return a.error(t)})})}function ko(e){return Bs(Ns(e))}function Go(e,a){var t,s,r,n;return Vo(this,void 0,void 0,function(){var o,i;return Os(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),t=bo(e),l.label=1;case 1:return[4,t.next()];case 2:if(s=l.sent(),!!s.done)return[3,4];if(o=s.value,a.next(o),a.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i=l.sent(),r={error:i},[3,11];case 6:return l.trys.push([6,,9,10]),s&&!s.done&&(n=t.return)?[4,n.call(t)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(r)throw r.error;return[7];case 10:return[7];case 11:return a.complete(),[2]}})})}function De(e,a,t,s,r){s===void 0&&(s=0),r===void 0&&(r=!1);var n=a.schedule(function(){t(),r?e.add(this.schedule(null,s)):this.unsubscribe()},s);if(e.add(n),!r)return n}function js(e,a){return a===void 0&&(a=0),He(function(t,s){t.subscribe(Qe(s,function(r){return De(s,e,function(){return s.next(r)},a)},function(){return De(s,e,function(){return s.complete()},a)},function(r){return De(s,e,function(){return s.error(r)},a)}))})}function qs(e,a){return a===void 0&&(a=0),He(function(t,s){s.add(e.schedule(function(){return t.subscribe(s)},a))})}function Wo(e,a){return Ne(e).pipe(qs(a),js(a))}function Yo(e,a){return Ne(e).pipe(qs(a),js(a))}function zo(e,a){return new ue(function(t){var s=0;return a.schedule(function(){s===e.length?t.complete():(t.next(e[s++]),t.closed||this.schedule())})})}function Jo(e,a){return new ue(function(t){var s;return De(t,a,function(){s=e[Ls](),De(t,a,function(){var r,n,o;try{r=s.next(),n=r.value,o=r.done}catch(i){t.error(i);return}o?t.complete():t.next(n)},0,!0)}),function(){return K(s==null?void 0:s.return)&&s.return()}})}function $s(e,a){if(!e)throw new Error("Iterable cannot be null");return new ue(function(t){De(t,a,function(){var s=e[Symbol.asyncIterator]();De(t,a,function(){s.next().then(function(r){r.done?t.complete():t.next(r.value)})},0,!0)})})}function Xo(e,a){return $s(Ns(e),a)}function Ko(e,a){if(e!=null){if(Cs(e))return Wo(e,a);if(ca(e))return zo(e,a);if(Is(e))return Yo(e,a);if(_s(e))return $s(e,a);if(Fs(e))return Jo(e,a);if(Ds(e))return Xo(e,a)}throw xs(e)}function Zo(e,a){return a?Ko(e,a):Ne(e)}var ei=aa(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function ti(e,a){var t=typeof a=="object";return new Promise(function(s,r){var n=new Ft({next:function(o){s(o),n.unsubscribe()},error:r,complete:function(){t?s(a.defaultValue):r(new ei)}});e.subscribe(n)})}function ai(e){return e instanceof Date&&!isNaN(e)}function Ms(e,a){return He(function(t,s){var r=0;t.subscribe(Qe(s,function(n){s.next(e.call(a,n,r++))}))})}var si=Array.isArray;function ri(e,a){return si(a)?e.apply(void 0,Me([],Fe(a))):e(a)}function ni(e){return Ms(function(a){return ri(e,a)})}function oi(e,a,t,s,r,n,o,i){var l=[],c=0,d=0,p=!1,w=function(){p&&!l.length&&!c&&a.complete()},C=function(j){return c<s?O(j):l.push(j)},O=function(j){n&&a.next(j),c++;var U=!1;Ne(t(j,d++)).subscribe(Qe(a,function(W){r==null||r(W),n?C(W):a.next(W)},function(){U=!0},void 0,function(){if(U)try{c--;for(var W=function(){var z=l.shift();o?De(a,o,function(){return O(z)}):O(z)};l.length&&c<s;)W();w()}catch(z){a.error(z)}}))};return e.subscribe(Qe(a,C,function(){p=!0,w()})),function(){i==null||i()}}function ha(e,a,t){return t===void 0&&(t=1/0),K(a)?ha(function(s,r){return Ms(function(n,o){return a(s,n,r,o)})(Ne(e(s,r)))},t):(typeof a=="number"&&(t=a),He(function(s,r){return oi(s,r,e,t)}))}function ii(e){return e===void 0&&(e=1/0),ha(fs,e)}var li=["addListener","removeListener"],ci=["addEventListener","removeEventListener"],hi=["on","off"];function mt(e,a,t,s){if(K(t)&&(s=t,t=void 0),s)return mt(e,a,t).pipe(ni(s));var r=Fe(pi(e)?ci.map(function(i){return function(l){return e[i](a,l,t)}}):di(e)?li.map(Hs(e,a)):ui(e)?hi.map(Hs(e,a)):[],2),n=r[0],o=r[1];if(!n&&ca(e))return ha(function(i){return mt(i,a,t)})(Ne(e));if(!n)throw new TypeError("Invalid event target");return new ue(function(i){var l=function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];return i.next(1<c.length?c:c[0])};return n(l),function(){return o(l)}})}function Hs(e,a){return function(t){return function(s){return e[t](a,s)}}}function di(e){return K(e.addListener)&&K(e.removeListener)}function ui(e){return K(e.on)&&K(e.off)}function pi(e){return K(e.addEventListener)&&K(e.removeEventListener)}function Oi(e,a,t){e===void 0&&(e=0),t===void 0&&(t=Do);var s=-1;return a!=null&&(Ts(a)?t=a:s=a),new ue(function(r){var n=ai(e)?+e-t.now():e;n<0&&(n=0);var o=0;return t.schedule(function(){r.closed||(r.next(o++),0<=s?this.schedule(void 0,s):r.complete())},n)})}function mi(e,a){return e===void 0&&(e=0),a===void 0&&(a=Ss),e<0&&(e=0),Oi(e,e,a)}function Pi(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];var t=Bo(e),s=jo(e,1/0),r=e;return r.length?r.length===1?Ne(r[0]):ii(s)(Zo(r,t)):vs}function Ri(e,a){return He(function(t,s){var r=0;t.subscribe(Qe(s,function(n){return e.call(a,n,r++)&&s.next(n)}))})}function Ai(e){return e<=0?function(){return vs}:He(function(a,t){var s=0;a.subscribe(Qe(t,function(r){++s<=e&&(t.next(r),e<=s&&t.complete())}))})}function Qs(e){return He(function(a,t){Ne(e).subscribe(Qe(t,function(){return t.complete()},na)),!t.closed&&a.subscribe(t)})}class Ei{constructor(){var a;this.$debugEnabled=new bs(((a=self.localStorage)==null?void 0:a.getItem(Ut))==="true")}toggle(){const a=!this.$debugEnabled.value;a?localStorage.setItem(Ut,"true"):localStorage.removeItem(Ut),this.$debugEnabled.next(a)}}new Ei;class fi{constructor(){X(this,"vault",new Map)}get(a,t){let s=this.vault.get(a);return s||(s=t(),this.set(a,s)),s}set(a,t){this.vault.set(a,t)}}const M=new fi;function Vi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var da={exports:{}},ks=function(a,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return a.apply(t,r)}},wi=ks,Be=Object.prototype.toString;function ua(e){return Array.isArray(e)}function pa(e){return typeof e>"u"}function bi(e){return e!==null&&!pa(e)&&e.constructor!==null&&!pa(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Gs(e){return Be.call(e)==="[object ArrayBuffer]"}function gi(e){return Be.call(e)==="[object FormData]"}function yi(e){var a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&Gs(e.buffer),a}function Si(e){return typeof e=="string"}function vi(e){return typeof e=="number"}function Ws(e){return e!==null&&typeof e=="object"}function jt(e){if(Be.call(e)!=="[object Object]")return!1;var a=Object.getPrototypeOf(e);return a===null||a===Object.prototype}function Ti(e){return Be.call(e)==="[object Date]"}function Ui(e){return Be.call(e)==="[object File]"}function Ii(e){return Be.call(e)==="[object Blob]"}function Ys(e){return Be.call(e)==="[object Function]"}function Ci(e){return Ws(e)&&Ys(e.pipe)}function _i(e){return Be.call(e)==="[object URLSearchParams]"}function xi(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Li(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Oa(e,a){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),ua(e))for(var t=0,s=e.length;t<s;t++)a.call(null,e[t],t,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.call(null,e[r],r,e)}function ma(){var e={};function a(r,n){jt(e[n])&&jt(r)?e[n]=ma(e[n],r):jt(r)?e[n]=ma({},r):ua(r)?e[n]=r.slice():e[n]=r}for(var t=0,s=arguments.length;t<s;t++)Oa(arguments[t],a);return e}function Fi(e,a,t){return Oa(a,function(r,n){t&&typeof r=="function"?e[n]=wi(r,t):e[n]=r}),e}function Ni(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var pe={isArray:ua,isArrayBuffer:Gs,isBuffer:bi,isFormData:gi,isArrayBufferView:yi,isString:Si,isNumber:vi,isObject:Ws,isPlainObject:jt,isUndefined:pa,isDate:Ti,isFile:Ui,isBlob:Ii,isFunction:Ys,isStream:Ci,isURLSearchParams:_i,isStandardBrowserEnv:Li,forEach:Oa,merge:ma,extend:Fi,trim:xi,stripBOM:Ni},et=pe;function zs(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Js=function(a,t,s){if(!t)return a;var r;if(s)r=s(t);else if(et.isURLSearchParams(t))r=t.toString();else{var n=[];et.forEach(t,function(l,c){l===null||typeof l>"u"||(et.isArray(l)?c=c+"[]":l=[l],et.forEach(l,function(p){et.isDate(p)?p=p.toISOString():et.isObject(p)&&(p=JSON.stringify(p)),n.push(zs(c)+"="+zs(p))}))}),r=n.join("&")}if(r){var o=a.indexOf("#");o!==-1&&(a=a.slice(0,o)),a+=(a.indexOf("?")===-1?"?":"&")+r}return a},Di=pe;function qt(){this.handlers=[]}qt.prototype.use=function(a,t,s){return this.handlers.push({fulfilled:a,rejected:t,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1},qt.prototype.eject=function(a){this.handlers[a]&&(this.handlers[a]=null)},qt.prototype.forEach=function(a){Di.forEach(this.handlers,function(s){s!==null&&a(s)})};var Bi=qt,ji=pe,qi=function(a,t){ji.forEach(a,function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(a[t]=r,delete a[n])})},Xs=function(a,t,s,r,n){return a.config=t,s&&(a.code=s),a.request=r,a.response=n,a.isAxiosError=!0,a.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},a},Ks={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Pa,Zs;function er(){if(Zs)return Pa;Zs=1;var e=Xs;return Pa=function(t,s,r,n,o){var i=new Error(t);return e(i,s,r,n,o)},Pa}var Ra,tr;function $i(){if(tr)return Ra;tr=1;var e=er();return Ra=function(t,s,r){var n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):s(e("Request failed with status code "+r.status,r.config,null,r.request,r))},Ra}var Aa,ar;function Mi(){if(ar)return Aa;ar=1;var e=pe;return Aa=e.isStandardBrowserEnv()?function(){return{write:function(s,r,n,o,i,l){var c=[];c.push(s+"="+encodeURIComponent(r)),e.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),e.isString(o)&&c.push("path="+o),e.isString(i)&&c.push("domain="+i),l===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(s){var r=document.cookie.match(new RegExp("(^|;\\s*)("+s+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(s){this.write(s,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Aa}var Ea,sr;function Hi(){return sr||(sr=1,Ea=function(a){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(a)}),Ea}var fa,rr;function Qi(){return rr||(rr=1,fa=function(a,t){return t?a.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):a}),fa}var Va,nr;function ki(){if(nr)return Va;nr=1;var e=Hi(),a=Qi();return Va=function(s,r){return s&&!e(r)?a(s,r):r},Va}var wa,or;function Gi(){if(or)return wa;or=1;var e=pe,a=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return wa=function(s){var r={},n,o,i;return s&&e.forEach(s.split(`
`),function(c){if(i=c.indexOf(":"),n=e.trim(c.substr(0,i)).toLowerCase(),o=e.trim(c.substr(i+1)),n){if(r[n]&&a.indexOf(n)>=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([o]):r[n]=r[n]?r[n]+", "+o:o}}),r},wa}var ba,ir;function Wi(){if(ir)return ba;ir=1;var e=pe;return ba=e.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a"),r;function n(o){var i=o;return t&&(s.setAttribute("href",i),i=s.href),s.setAttribute("href",i),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:s.pathname.charAt(0)==="/"?s.pathname:"/"+s.pathname}}return r=n(window.location.href),function(i){var l=e.isString(i)?n(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}(),ba}var ga,lr;function $t(){if(lr)return ga;lr=1;function e(a){this.message=a}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,ga=e,ga}var ya,cr;function hr(){if(cr)return ya;cr=1;var e=pe,a=$i(),t=Mi(),s=Js,r=ki(),n=Gi(),o=Wi(),i=er(),l=Ks,c=$t();return ya=function(p){return new Promise(function(C,O){var j=p.data,U=p.headers,W=p.responseType,z;function Y(){p.cancelToken&&p.cancelToken.unsubscribe(z),p.signal&&p.signal.removeEventListener("abort",z)}e.isFormData(j)&&delete U["Content-Type"];var $=new XMLHttpRequest;if(p.auth){var Ee=p.auth.username||"",fO=p.auth.password?unescape(encodeURIComponent(p.auth.password)):"";U.Authorization="Basic "+btoa(Ee+":"+fO)}var ao=r(p.baseURL,p.url);$.open(p.method.toUpperCase(),s(ao,p.params,p.paramsSerializer),!0),$.timeout=p.timeout;function so(){if($){var we="getAllResponseHeaders"in $?n($.getAllResponseHeaders()):null,ut=!W||W==="text"||W==="json"?$.responseText:$.response,Je={data:ut,status:$.status,statusText:$.statusText,headers:we,config:p,request:$};a(function(is){C(is),Y()},function(is){O(is),Y()},Je),$=null}}if("onloadend"in $?$.onloadend=so:$.onreadystatechange=function(){!$||$.readyState!==4||$.status===0&&!($.responseURL&&$.responseURL.indexOf("file:")===0)||setTimeout(so)},$.onabort=function(){$&&(O(i("Request aborted",p,"ECONNABORTED",$)),$=null)},$.onerror=function(){O(i("Network Error",p,null,$)),$=null},$.ontimeout=function(){var ut=p.timeout?"timeout of "+p.timeout+"ms exceeded":"timeout exceeded",Je=p.transitional||l;p.timeoutErrorMessage&&(ut=p.timeoutErrorMessage),O(i(ut,p,Je.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",$)),$=null},e.isStandardBrowserEnv()){var ro=(p.withCredentials||o(ao))&&p.xsrfCookieName?t.read(p.xsrfCookieName):void 0;ro&&(U[p.xsrfHeaderName]=ro)}"setRequestHeader"in $&&e.forEach(U,function(ut,Je){typeof j>"u"&&Je.toLowerCase()==="content-type"?delete U[Je]:$.setRequestHeader(Je,ut)}),e.isUndefined(p.withCredentials)||($.withCredentials=!!p.withCredentials),W&&W!=="json"&&($.responseType=p.responseType),typeof p.onDownloadProgress=="function"&&$.addEventListener("progress",p.onDownloadProgress),typeof p.onUploadProgress=="function"&&$.upload&&$.upload.addEventListener("progress",p.onUploadProgress),(p.cancelToken||p.signal)&&(z=function(we){$&&(O(!we||we&&we.type?new c("canceled"):we),$.abort(),$=null)},p.cancelToken&&p.cancelToken.subscribe(z),p.signal&&(p.signal.aborted?z():p.signal.addEventListener("abort",z))),j||(j=null),$.send(j)})},ya}var se=pe,dr=qi,Yi=Xs,zi=Ks,Ji={"Content-Type":"application/x-www-form-urlencoded"};function ur(e,a){!se.isUndefined(e)&&se.isUndefined(e["Content-Type"])&&(e["Content-Type"]=a)}function Xi(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=hr()),e}function Ki(e,a,t){if(se.isString(e))try{return(a||JSON.parse)(e),se.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(t||JSON.stringify)(e)}var Mt={transitional:zi,adapter:Xi(),transformRequest:[function(a,t){return dr(t,"Accept"),dr(t,"Content-Type"),se.isFormData(a)||se.isArrayBuffer(a)||se.isBuffer(a)||se.isStream(a)||se.isFile(a)||se.isBlob(a)?a:se.isArrayBufferView(a)?a.buffer:se.isURLSearchParams(a)?(ur(t,"application/x-www-form-urlencoded;charset=utf-8"),a.toString()):se.isObject(a)||t&&t["Content-Type"]==="application/json"?(ur(t,"application/json"),Ki(a)):a}],transformResponse:[function(a){var t=this.transitional||Mt.transitional,s=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,n=!s&&this.responseType==="json";if(n||r&&se.isString(a)&&a.length)try{return JSON.parse(a)}catch(o){if(n)throw o.name==="SyntaxError"?Yi(o,this,"E_JSON_PARSE"):o}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};se.forEach(["delete","get","head"],function(a){Mt.headers[a]={}}),se.forEach(["post","put","patch"],function(a){Mt.headers[a]=se.merge(Ji)});var Sa=Mt,Zi=pe,el=Sa,tl=function(a,t,s){var r=this||el;return Zi.forEach(s,function(o){a=o.call(r,a,t)}),a},va,pr;function Or(){return pr||(pr=1,va=function(a){return!!(a&&a.__CANCEL__)}),va}var mr=pe,Ta=tl,al=Or(),sl=Sa,rl=$t();function Ua(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rl("canceled")}var nl=function(a){Ua(a),a.headers=a.headers||{},a.data=Ta.call(a,a.data,a.headers,a.transformRequest),a.headers=mr.merge(a.headers.common||{},a.headers[a.method]||{},a.headers),mr.forEach(["delete","get","head","post","put","patch","common"],function(r){delete a.headers[r]});var t=a.adapter||sl.adapter;return t(a).then(function(r){return Ua(a),r.data=Ta.call(a,r.data,r.headers,a.transformResponse),r},function(r){return al(r)||(Ua(a),r&&r.response&&(r.response.data=Ta.call(a,r.response.data,r.response.headers,a.transformResponse))),Promise.reject(r)})},Pe=pe,Pr=function(a,t){t=t||{};var s={};function r(d,p){return Pe.isPlainObject(d)&&Pe.isPlainObject(p)?Pe.merge(d,p):Pe.isPlainObject(p)?Pe.merge({},p):Pe.isArray(p)?p.slice():p}function n(d){if(Pe.isUndefined(t[d])){if(!Pe.isUndefined(a[d]))return r(void 0,a[d])}else return r(a[d],t[d])}function o(d){if(!Pe.isUndefined(t[d]))return r(void 0,t[d])}function i(d){if(Pe.isUndefined(t[d])){if(!Pe.isUndefined(a[d]))return r(void 0,a[d])}else return r(void 0,t[d])}function l(d){if(d in t)return r(a[d],t[d]);if(d in a)return r(void 0,a[d])}var c={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l};return Pe.forEach(Object.keys(a).concat(Object.keys(t)),function(p){var w=c[p]||n,C=w(p);Pe.isUndefined(C)&&w!==l||(s[p]=C)}),s},Ia,Rr;function Ar(){return Rr||(Rr=1,Ia={version:"0.26.1"}),Ia}var ol=Ar().version,Ca={};["object","boolean","number","function","string","symbol"].forEach(function(e,a){Ca[e]=function(s){return typeof s===e||"a"+(a<1?"n ":" ")+e}});var Er={};Ca.transitional=function(a,t,s){function r(n,o){return"[Axios v"+ol+"] Transitional option '"+n+"'"+o+(s?". "+s:"")}return function(n,o,i){if(a===!1)throw new Error(r(o," has been removed"+(t?" in "+t:"")));return t&&!Er[o]&&(Er[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),a?a(n,o,i):!0}};function il(e,a,t){if(typeof e!="object")throw new TypeError("options must be an object");for(var s=Object.keys(e),r=s.length;r-- >0;){var n=s[r],o=a[n];if(o){var i=e[n],l=i===void 0||o(i,n,e);if(l!==!0)throw new TypeError("option "+n+" must be "+l);continue}if(t!==!0)throw Error("Unknown option "+n)}}var ll={assertOptions:il,validators:Ca},fr=pe,cl=Js,Vr=Bi,wr=nl,Ht=Pr,br=ll,tt=br.validators;function Pt(e){this.defaults=e,this.interceptors={request:new Vr,response:new Vr}}Pt.prototype.request=function(a,t){typeof a=="string"?(t=t||{},t.url=a):t=a||{},t=Ht(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var s=t.transitional;s!==void 0&&br.assertOptions(s,{silentJSONParsing:tt.transitional(tt.boolean),forcedJSONParsing:tt.transitional(tt.boolean),clarifyTimeoutError:tt.transitional(tt.boolean)},!1);var r=[],n=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(t)===!1||(n=n&&C.synchronous,r.unshift(C.fulfilled,C.rejected))});var o=[];this.interceptors.response.forEach(function(C){o.push(C.fulfilled,C.rejected)});var i;if(!n){var l=[wr,void 0];for(Array.prototype.unshift.apply(l,r),l=l.concat(o),i=Promise.resolve(t);l.length;)i=i.then(l.shift(),l.shift());return i}for(var c=t;r.length;){var d=r.shift(),p=r.shift();try{c=d(c)}catch(w){p(w);break}}try{i=wr(c)}catch(w){return Promise.reject(w)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},Pt.prototype.getUri=function(a){return a=Ht(this.defaults,a),cl(a.url,a.params,a.paramsSerializer).replace(/^\?/,"")},fr.forEach(["delete","get","head","options"],function(a){Pt.prototype[a]=function(t,s){return this.request(Ht(s||{},{method:a,url:t,data:(s||{}).data}))}}),fr.forEach(["post","put","patch"],function(a){Pt.prototype[a]=function(t,s,r){return this.request(Ht(r||{},{method:a,url:t,data:s}))}});var hl=Pt,_a,gr;function dl(){if(gr)return _a;gr=1;var e=$t();function a(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var s;this.promise=new Promise(function(o){s=o});var r=this;this.promise.then(function(n){if(r._listeners){var o,i=r._listeners.length;for(o=0;o<i;o++)r._listeners[o](n);r._listeners=null}}),this.promise.then=function(n){var o,i=new Promise(function(l){r.subscribe(l),o=l}).then(n);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o){r.reason||(r.reason=new e(o),s(r.reason))})}return a.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},a.prototype.subscribe=function(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]},a.prototype.unsubscribe=function(s){if(this._listeners){var r=this._listeners.indexOf(s);r!==-1&&this._listeners.splice(r,1)}},a.source=function(){var s,r=new a(function(o){s=o});return{token:r,cancel:s}},_a=a,_a}var xa,yr;function ul(){return yr||(yr=1,xa=function(a){return function(s){return a.apply(null,s)}}),xa}var La,Sr;function pl(){if(Sr)return La;Sr=1;var e=pe;return La=function(t){return e.isObject(t)&&t.isAxiosError===!0},La}var vr=pe,Ol=ks,Qt=hl,ml=Pr,Pl=Sa;function Tr(e){var a=new Qt(e),t=Ol(Qt.prototype.request,a);return vr.extend(t,Qt.prototype,a),vr.extend(t,a),t.create=function(r){return Tr(ml(e,r))},t}var ge=Tr(Pl);ge.Axios=Qt,ge.Cancel=$t(),ge.CancelToken=dl(),ge.isCancel=Or(),ge.VERSION=Ar().version,ge.all=function(a){return Promise.all(a)},ge.spread=ul(),ge.isAxiosError=pl(),da.exports=ge,da.exports.default=ge;var Rl=da.exports,Al=Rl;const h=Vi(Al),m="http://localhost".replace(/\/+$/,"");let Ae=class{constructor(a,t=m,s=h){X(this,"configuration");this.basePath=t,this.axios=s,a&&(this.configuration=a,this.basePath=a.basePath||this.basePath)}},El=class extends Error{constructor(t,s){super(s);X(this,"name","RequiredError");this.field=t}};const P="https://example.com",Q=function(e,a,t){if(t==null)throw new El(a,`Required parameter ${a} was null or undefined when calling ${e}.`)},b=async function(e,a){if(a&&a.accessToken){const t=typeof a.accessToken=="function"?await a.accessToken():await a.accessToken;e.Authorization="Bearer "+t}},R=function(e,...a){const t=new URLSearchParams(e.search);for(const s of a)for(const r in s)if(Array.isArray(s[r])){t.delete(r);for(const n of s[r])t.append(r,n)}else t.set(r,s[r]);e.search=t.toString()},k=function(e,a,t){const s=typeof e!="string";return(s&&t&&t.isJsonMime?t.isJsonMime(a.headers["Content-Type"]):s)?JSON.stringify(e!==void 0?e:{}):e||""},A=function(e){return e.pathname+e.search+e.hash},E=function(e,a,t,s){return(r=a,n=t)=>{const o={...e.options,url:((s==null?void 0:s.basePath)||n)+e.url};return r.request(o)}},fl=function(e){return{addFeedback:async(a,t,s={})=>{Q("addFeedback","coBrowseId",a);const r="/api/agents/{coBrowseId}/feedback".replace("{coBrowseId}",encodeURIComponent(String(a))),n=new URL(r,P);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...s},l={},c={};await b(l,e),l["Content-Type"]="application/json",R(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=k(t,i,e),{url:A(n),options:i}},cancelCoBrowseRequest:async(a,t={})=>{const s="/api/agents/cancel-co-browse-request",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},cancelMeetingInvitation:async(a,t,s={})=>{Q("cancelMeetingInvitation","meetingId",a),Q("cancelMeetingInvitation","invitationId",t);const r="/api/agents/meetings/{meetingId}/invitation/{invitationId}/cancel".replace("{meetingId}",encodeURIComponent(String(a))).replace("{invitationId}",encodeURIComponent(String(t))),n=new URL(r,P);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...s},l={},c={};await b(l,e),R(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:A(n),options:i}},createOrganisation:async(a,t={})=>{const s="/api/agents",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),a!==void 0&&(l.name=a),R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:A(r),options:o}},deleteFile:async(a,t,s={})=>{Q("deleteFile","coBrowseId",a),Q("deleteFile","fileId",t);const r="/api/agents/co-browse/{coBrowseId}/files/{fileId}".replace("{coBrowseId}",encodeURIComponent(String(a))).replace("{fileId}",encodeURIComponent(String(t))),n=new URL(r,P);let o;e&&(o=e.baseOptions);const i={method:"DELETE",...o,...s},l={},c={};await b(l,e),R(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:A(n),options:i}},endCoBrowse:async(a,t={})=>{const s="/api/agents/end-co-browse",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},getAgentOpenCoBrowses:async(a={})=>{const t="/api/agents/open-co-browses",s=new URL(t,P);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...a},o={},i={};await b(o,e),R(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:A(s),options:n}},getAgents:async(a,t={})=>{const s="/api/agents/search",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},getCoBrowseAudioMetadata:async(a,t={})=>{const s="/api/agents/co-browse-audio-metadata",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await b(i,e),a!==void 0&&(l.cobrowseId=a),R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:A(r),options:o}},getCoBrowseRequests:async(a={})=>{const t="/api/agents/co-browse-requests",s=new URL(t,P);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...a},o={},i={};await b(o,e),R(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:A(s),options:n}},getCobrowseAudioRecording:async(a,t,s={})=>{const r="/api/agents/co-browse-audio-recording",n=new URL(r,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...s},l={},c={};await b(l,e),a!==void 0&&(c.cobrowseId=a),t!==void 0&&(c.fileName=t),R(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:A(n),options:i}},getCustomers:async(a,t={})=>{const s="/api/agents/get-customers",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},getCustomersStatus:async(a,t={})=>{const s="/api/agents/get-customers-status",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},getFile:async(a,t,s={})=>{Q("getFile","coBrowseId",a),Q("getFile","fileId",t);const r="/api/agents/co-browse/{coBrowseId}/files/{fileId}".replace("{coBrowseId}",encodeURIComponent(String(a))).replace("{fileId}",encodeURIComponent(String(t))),n=new URL(r,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...s},l={},c={};await b(l,e),R(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:A(n),options:i}},getMeeting:async(a,t={})=>{Q("getMeeting","meetingId",a);const s="/api/agents/meetings/{meetingId}".replace("{meetingId}",encodeURIComponent(String(a))),r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await b(i,e),R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:A(r),options:o}},getMeetingInvitations:async(a={})=>{const t="/api/agents/meetings/invitations",s=new URL(t,P);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...a},o={},i={};await b(o,e),R(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:A(s),options:n}},getMeetingToken:async(a,t={})=>{Q("getMeetingToken","meetingId",a);const s="/api/agents/meetings/{meetingId}/token".replace("{meetingId}",encodeURIComponent(String(a))),r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await b(i,e),R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:A(r),options:o}},getOrganisationCode:async(a={})=>{const t="/api/agents/organisation-code",s=new URL(t,P);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...a},o={},i={};await b(o,e),R(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:A(s),options:n}},inviteAgentToMeeting:async(a,t,s={})=>{Q("inviteAgentToMeeting","meetingId",a),Q("inviteAgentToMeeting","agentId",t);const r="/api/agents/meetings/{meetingId}/agent/{agentId}".replace("{meetingId}",encodeURIComponent(String(a))).replace("{agentId}",encodeURIComponent(String(t))),n=new URL(r,P);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...s},l={},c={};await b(l,e),R(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:A(n),options:i}},inviteCustomerToMeeting:async(a,t,s,r={})=>{Q("inviteCustomerToMeeting","meetingId",a),Q("inviteCustomerToMeeting","customerId",t);const n="/api/agents/meetings/{meetingId}/customer/{customerId}".replace("{meetingId}",encodeURIComponent(String(a))).replace("{customerId}",encodeURIComponent(String(t))),o=new URL(n,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...r},c={},d={};await b(c,e),c["Content-Type"]="application/json",R(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...c,...p,...r.headers},l.data=k(s,l,e),{url:A(o),options:l}},joinMeeting:async(a,t={})=>{Q("joinMeeting","meetingId",a);const s="/api/agents/meetings/{meetingId}/join".replace("{meetingId}",encodeURIComponent(String(a))),r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:A(r),options:o}},leaveMeeting:async(a,t={})=>{Q("leaveMeeting","meetingId",a);const s="/api/agents/meetings/{meetingId}/leave".replace("{meetingId}",encodeURIComponent(String(a))),r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:A(r),options:o}},notifyCustomer:async(a,t,s={})=>{Q("notifyCustomer","coBrowseId",a);const r="/api/agents/co-browse/{coBrowseId}/notify-customer".replace("{coBrowseId}",encodeURIComponent(String(a))),n=new URL(r,P);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...s},l={},c={};await b(l,e),l["Content-Type"]="application/json",R(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=k(t,i,e),{url:A(n),options:i}},onPaintReceived:async(a,t={})=>{Q("onPaintReceived","coBrowseId",a);const s="/api/agents/co-browse/{coBrowseId}/received-paint".replace("{coBrowseId}",encodeURIComponent(String(a))),r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:A(r),options:o}},respondToAccessRequest:async(a,t,s,r={})=>{Q("respondToAccessRequest","meetingId",a),Q("respondToAccessRequest","requestId",t);const n="/api/agents/meetings/{meetingId}/access-request/{requestId}/respond".replace("{meetingId}",encodeURIComponent(String(a))).replace("{requestId}",encodeURIComponent(String(t))),o=new URL(n,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...r},c={},d={};await b(c,e),s!==void 0&&(d.accept=s),R(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...c,...p,...r.headers},{url:A(o),options:l}},respondToInvitation:async(a,t,s={})=>{Q("respondToInvitation","meetingId",a);const r="/api/agents/meetings/{meetingId}/respond".replace("{meetingId}",encodeURIComponent(String(a))),n=new URL(r,P);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...s},l={},c={};await b(l,e),t!==void 0&&(c.accept=t),R(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:A(n),options:i}},sendCoBrowseEmail:async(a,t={})=>{const s="/api/agents/send-co-browse-email",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},startCoBrowseUsingCode:async(a,t={})=>{const s="/api/agents/start-co-browse-using-code",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},startCoBrowseWithCustomer:async(a,t={})=>{const s="/api/agents/start-co-browse",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},startCoBrowseWithVisitor:async(a={})=>{const t="/api/agents/start-co-browse-with-visitor",s=new URL(t,P);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...a},o={},i={};await b(o,e),R(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:A(s),options:n}},startMeeting:async(a={})=>{const t="/api/agents/meetings",s=new URL(t,P);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...a},o={},i={};await b(o,e),R(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:A(s),options:n}},updateCoBrowseConfig:async(a,t={})=>{const s="/api/agents/org-config/co-browse",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"PUT",...n,...t},i={},l={};await b(i,e),i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},updateContentMaskingConfig:async(a,t={})=>{const s="/api/agents/org-config/content-masking",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"PUT",...n,...t},i={},l={};await b(i,e),i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},updateParticipant:async(a,t,s={})=>{Q("updateParticipant","coBrowseId",a);const r="/api/agents/co-browse/{coBrowseId}/update-participant".replace("{coBrowseId}",encodeURIComponent(String(a))),n=new URL(r,P);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...s},l={},c={};await b(l,e),l["Content-Type"]="application/json",R(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=k(t,i,e),{url:A(n),options:i}},uploadFile:async(a,t,s={})=>{Q("uploadFile","coBrowseId",a);const r="/api/agents/co-browse/{coBrowseId}/files".replace("{coBrowseId}",encodeURIComponent(String(a))),n=new URL(r,P);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...s},l={},c={},d=new(e&&e.formDataCtor||FormData);await b(l,e),t!==void 0&&d.append("file",t),l["Content-Type"]="multipart/form-data",R(n,c);let p=o&&o.headers?o.headers:{};return i.headers={...l,...p,...s.headers},i.data=d,{url:A(n),options:i}}}},G=function(e){const a=fl(e);return{async addFeedback(t,s,r){const n=await a.addFeedback(t,s,r);return E(n,h,m,e)},async cancelCoBrowseRequest(t,s){const r=await a.cancelCoBrowseRequest(t,s);return E(r,h,m,e)},async cancelMeetingInvitation(t,s,r){const n=await a.cancelMeetingInvitation(t,s,r);return E(n,h,m,e)},async createOrganisation(t,s){const r=await a.createOrganisation(t,s);return E(r,h,m,e)},async deleteFile(t,s,r){const n=await a.deleteFile(t,s,r);return E(n,h,m,e)},async endCoBrowse(t,s){const r=await a.endCoBrowse(t,s);return E(r,h,m,e)},async getAgentOpenCoBrowses(t){const s=await a.getAgentOpenCoBrowses(t);return E(s,h,m,e)},async getAgents(t,s){const r=await a.getAgents(t,s);return E(r,h,m,e)},async getCoBrowseAudioMetadata(t,s){const r=await a.getCoBrowseAudioMetadata(t,s);return E(r,h,m,e)},async getCoBrowseRequests(t){const s=await a.getCoBrowseRequests(t);return E(s,h,m,e)},async getCobrowseAudioRecording(t,s,r){const n=await a.getCobrowseAudioRecording(t,s,r);return E(n,h,m,e)},async getCustomers(t,s){const r=await a.getCustomers(t,s);return E(r,h,m,e)},async getCustomersStatus(t,s){const r=await a.getCustomersStatus(t,s);return E(r,h,m,e)},async getFile(t,s,r){const n=await a.getFile(t,s,r);return E(n,h,m,e)},async getMeeting(t,s){const r=await a.getMeeting(t,s);return E(r,h,m,e)},async getMeetingInvitations(t){const s=await a.getMeetingInvitations(t);return E(s,h,m,e)},async getMeetingToken(t,s){const r=await a.getMeetingToken(t,s);return E(r,h,m,e)},async getOrganisationCode(t){const s=await a.getOrganisationCode(t);return E(s,h,m,e)},async inviteAgentToMeeting(t,s,r){const n=await a.inviteAgentToMeeting(t,s,r);return E(n,h,m,e)},async inviteCustomerToMeeting(t,s,r,n){const o=await a.inviteCustomerToMeeting(t,s,r,n);return E(o,h,m,e)},async joinMeeting(t,s){const r=await a.joinMeeting(t,s);return E(r,h,m,e)},async leaveMeeting(t,s){const r=await a.leaveMeeting(t,s);return E(r,h,m,e)},async notifyCustomer(t,s,r){const n=await a.notifyCustomer(t,s,r);return E(n,h,m,e)},async onPaintReceived(t,s){const r=await a.onPaintReceived(t,s);return E(r,h,m,e)},async respondToAccessRequest(t,s,r,n){const o=await a.respondToAccessRequest(t,s,r,n);return E(o,h,m,e)},async respondToInvitation(t,s,r){const n=await a.respondToInvitation(t,s,r);return E(n,h,m,e)},async sendCoBrowseEmail(t,s){const r=await a.sendCoBrowseEmail(t,s);return E(r,h,m,e)},async startCoBrowseUsingCode(t,s){const r=await a.startCoBrowseUsingCode(t,s);return E(r,h,m,e)},async startCoBrowseWithCustomer(t,s){const r=await a.startCoBrowseWithCustomer(t,s);return E(r,h,m,e)},async startCoBrowseWithVisitor(t){const s=await a.startCoBrowseWithVisitor(t);return E(s,h,m,e)},async startMeeting(t){const s=await a.startMeeting(t);return E(s,h,m,e)},async updateCoBrowseConfig(t,s){const r=await a.updateCoBrowseConfig(t,s);return E(r,h,m,e)},async updateContentMaskingConfig(t,s){const r=await a.updateContentMaskingConfig(t,s);return E(r,h,m,e)},async updateParticipant(t,s,r){const n=await a.updateParticipant(t,s,r);return E(n,h,m,e)},async uploadFile(t,s,r){const n=await a.uploadFile(t,s,r);return E(n,h,m,e)}}};class Vl extends Ae{addFeedback(a,t,s){return G(this.configuration).addFeedback(a,t,s).then(r=>r(this.axios,this.basePath))}cancelCoBrowseRequest(a,t){return G(this.configuration).cancelCoBrowseRequest(a,t).then(s=>s(this.axios,this.basePath))}cancelMeetingInvitation(a,t,s){return G(this.configuration).cancelMeetingInvitation(a,t,s).then(r=>r(this.axios,this.basePath))}createOrganisation(a,t){return G(this.configuration).createOrganisation(a,t).then(s=>s(this.axios,this.basePath))}deleteFile(a,t,s){return G(this.configuration).deleteFile(a,t,s).then(r=>r(this.axios,this.basePath))}endCoBrowse(a,t){return G(this.configuration).endCoBrowse(a,t).then(s=>s(this.axios,this.basePath))}getAgentOpenCoBrowses(a){return G(this.configuration).getAgentOpenCoBrowses(a).then(t=>t(this.axios,this.basePath))}getAgents(a,t){return G(this.configuration).getAgents(a,t).then(s=>s(this.axios,this.basePath))}getCoBrowseAudioMetadata(a,t){return G(this.configuration).getCoBrowseAudioMetadata(a,t).then(s=>s(this.axios,this.basePath))}getCoBrowseRequests(a){return G(this.configuration).getCoBrowseRequests(a).then(t=>t(this.axios,this.basePath))}getCobrowseAudioRecording(a,t,s){return G(this.configuration).getCobrowseAudioRecording(a,t,s).then(r=>r(this.axios,this.basePath))}getCustomers(a,t){return G(this.configuration).getCustomers(a,t).then(s=>s(this.axios,this.basePath))}getCustomersStatus(a,t){return G(this.configuration).getCustomersStatus(a,t).then(s=>s(this.axios,this.basePath))}getFile(a,t,s){return G(this.configuration).getFile(a,t,s).then(r=>r(this.axios,this.basePath))}getMeeting(a,t){return G(this.configuration).getMeeting(a,t).then(s=>s(this.axios,this.basePath))}getMeetingInvitations(a){return G(this.configuration).getMeetingInvitations(a).then(t=>t(this.axios,this.basePath))}getMeetingToken(a,t){return G(this.configuration).getMeetingToken(a,t).then(s=>s(this.axios,this.basePath))}getOrganisationCode(a){return G(this.configuration).getOrganisationCode(a).then(t=>t(this.axios,this.basePath))}inviteAgentToMeeting(a,t,s){return G(this.configuration).inviteAgentToMeeting(a,t,s).then(r=>r(this.axios,this.basePath))}inviteCustomerToMeeting(a,t,s,r){return G(this.configuration).inviteCustomerToMeeting(a,t,s,r).then(n=>n(this.axios,this.basePath))}joinMeeting(a,t){return G(this.configuration).joinMeeting(a,t).then(s=>s(this.axios,this.basePath))}leaveMeeting(a,t){return G(this.configuration).leaveMeeting(a,t).then(s=>s(this.axios,this.basePath))}notifyCustomer(a,t,s){return G(this.configuration).notifyCustomer(a,t,s).then(r=>r(this.axios,this.basePath))}onPaintReceived(a,t){return G(this.configuration).onPaintReceived(a,t).then(s=>s(this.axios,this.basePath))}respondToAccessRequest(a,t,s,r){return G(this.configuration).respondToAccessRequest(a,t,s,r).then(n=>n(this.axios,this.basePath))}respondToInvitation(a,t,s){return G(this.configuration).respondToInvitation(a,t,s).then(r=>r(this.axios,this.basePath))}sendCoBrowseEmail(a,t){return G(this.configuration).sendCoBrowseEmail(a,t).then(s=>s(this.axios,this.basePath))}startCoBrowseUsingCode(a,t){return G(this.configuration).startCoBrowseUsingCode(a,t).then(s=>s(this.axios,this.basePath))}startCoBrowseWithCustomer(a,t){return G(this.configuration).startCoBrowseWithCustomer(a,t).then(s=>s(this.axios,this.basePath))}startCoBrowseWithVisitor(a){return G(this.configuration).startCoBrowseWithVisitor(a).then(t=>t(this.axios,this.basePath))}startMeeting(a){return G(this.configuration).startMeeting(a).then(t=>t(this.axios,this.basePath))}updateCoBrowseConfig(a,t){return G(this.configuration).updateCoBrowseConfig(a,t).then(s=>s(this.axios,this.basePath))}updateContentMaskingConfig(a,t){return G(this.configuration).updateContentMaskingConfig(a,t).then(s=>s(this.axios,this.basePath))}updateParticipant(a,t,s){return G(this.configuration).updateParticipant(a,t,s).then(r=>r(this.axios,this.basePath))}uploadFile(a,t,s){return G(this.configuration).uploadFile(a,t,s).then(r=>r(this.axios,this.basePath))}}const wl=function(e){return{deleteFile:async(a,t={})=>{Q("deleteFile","fileId",a);const s="/api/agents/meeting/file/{fileId}".replace("{fileId}",encodeURIComponent(String(a))),r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"DELETE",...n,...t},i={},l={};await b(i,e),R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:A(r),options:o}},getFile:async(a,t={})=>{Q("getFile","fileId",a);const s="/api/agents/meeting/file/{fileId}".replace("{fileId}",encodeURIComponent(String(a))),r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await b(i,e),R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:A(r),options:o}},updateParticipant:async(a,t={})=>{const s="/api/agents/meeting/update-participant",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},uploadFile:async(a,t={})=>{const s="/api/agents/meeting/file",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={},c=new(e&&e.formDataCtor||FormData);await b(i,e),a!==void 0&&c.append("file",a),i["Content-Type"]="multipart/form-data",R(r,l);let d=n&&n.headers?n.headers:{};return o.headers={...i,...d,...t.headers},o.data=c,{url:A(r),options:o}}}},kt=function(e){const a=wl(e);return{async deleteFile(t,s){const r=await a.deleteFile(t,s);return E(r,h,m,e)},async getFile(t,s){const r=await a.getFile(t,s);return E(r,h,m,e)},async updateParticipant(t,s){const r=await a.updateParticipant(t,s);return E(r,h,m,e)},async uploadFile(t,s){const r=await a.uploadFile(t,s);return E(r,h,m,e)}}};class bl extends Ae{deleteFile(a,t){return kt(this.configuration).deleteFile(a,t).then(s=>s(this.axios,this.basePath))}getFile(a,t){return kt(this.configuration).getFile(a,t).then(s=>s(this.axios,this.basePath))}updateParticipant(a,t){return kt(this.configuration).updateParticipant(a,t).then(s=>s(this.axios,this.basePath))}uploadFile(a,t){return kt(this.configuration).uploadFile(a,t).then(s=>s(this.axios,this.basePath))}}const gl=function(e){return{getCoBrowse:async(a,t={})=>{Q("getCoBrowse","id",a);const s="/api/co-browse/{id}".replace("{id}",encodeURIComponent(String(a))),r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await b(i,e),R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:A(r),options:o}}}},yl=function(e){const a=gl(e);return{async getCoBrowse(t,s){const r=await a.getCoBrowse(t,s);return E(r,h,m,e)}}};class Sl extends Ae{getCoBrowse(a,t){return yl(this.configuration).getCoBrowse(a,t).then(s=>s(this.axios,this.basePath))}}const vl=function(e){return{endCoBrowse:async(a={})=>{const t="/api/co-browse-window/end-co-browse",s=new URL(t,P);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...a},o={},i={};await b(o,e),R(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:A(s),options:n}},register:async(a,t={})=>{const s="/api/co-browse-window/register",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},updateParticipant:async(a,t={})=>{const s="/api/co-browse-window/update-participant",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}}}},Fa=function(e){const a=vl(e);return{async endCoBrowse(t){const s=await a.endCoBrowse(t);return E(s,h,m,e)},async register(t,s){const r=await a.register(t,s);return E(r,h,m,e)},async updateParticipant(t,s){const r=await a.updateParticipant(t,s);return E(r,h,m,e)}}};class Tl extends Ae{endCoBrowse(a){return Fa(this.configuration).endCoBrowse(a).then(t=>t(this.axios,this.basePath))}register(a,t){return Fa(this.configuration).register(a,t).then(s=>s(this.axios,this.basePath))}updateParticipant(a,t){return Fa(this.configuration).updateParticipant(a,t).then(s=>s(this.axios,this.basePath))}}const Ul=function(e){return{acceptCoBrowse:async(a,t={})=>{const s="/api/customers/accept-co-browse",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},addFeedback:async(a,t,s={})=>{Q("addFeedback","coBrowseId",a);const r="/api/customers/{coBrowseId}/feedback".replace("{coBrowseId}",encodeURIComponent(String(a))),n=new URL(r,P);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...s},l={},c={};await b(l,e),l["Content-Type"]="application/json",R(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=k(t,i,e),{url:A(n),options:i}},cancelSupportRequest:async(a={})=>{const t="/api/customers/cancel-support-request",s=new URL(t,P);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...a},o={},i={};await b(o,e),R(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:A(s),options:n}},changeWindowPosition:async(a,t={})=>{const s="/api/customers/change-window-position",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},declineCoBrowse:async(a,t={})=>{const s="/api/customers/decline-co-browse",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},deleteFile:async(a,t={})=>{Q("deleteFile","fileId",a);const s="/api/customers/file/{fileId}".replace("{fileId}",encodeURIComponent(String(a))),r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"DELETE",...n,...t},i={},l={};await b(i,e),R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:A(r),options:o}},deleteMeetingFile:async(a,t={})=>{Q("deleteMeetingFile","fileId",a);const s="/api/customers/meeting/file/{fileId}".replace("{fileId}",encodeURIComponent(String(a))),r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"DELETE",...n,...t},i={},l={};await b(i,e),R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:A(r),options:o}},endCoBrowse:async(a={})=>{const t="/api/customers/end-co-browse",s=new URL(t,P);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...a},o={},i={};await b(o,e),R(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:A(s),options:n}},generateIdentificationCode:async(a={})=>{const t="/api/customers/generate-identification-code",s=new URL(t,P);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...a},o={},i={};await b(o,e),R(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:A(s),options:n}},getFile:async(a,t={})=>{Q("getFile","fileId",a);const s="/api/customers/file/{fileId}".replace("{fileId}",encodeURIComponent(String(a))),r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await b(i,e),R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:A(r),options:o}},getMeetingFile:async(a,t={})=>{Q("getMeetingFile","fileId",a);const s="/api/customers/meeting/file/{fileId}".replace("{fileId}",encodeURIComponent(String(a))),r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await b(i,e),R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:A(r),options:o}},joinCoBrowse:async(a,t={})=>{const s="/api/customers/join-co-browse",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},leaveMeeting:async(a={})=>{const t="/api/customers/meeting/leave",s=new URL(t,P);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...a},o={},i={};await b(o,e),R(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:A(s),options:n}},loginCustomer:async(a={})=>{const t="/api/customers/login",s=new URL(t,P);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...a},o={},i={};await b(o,e),R(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:A(s),options:n}},onCoBrowseInvitationReceived:async(a={})=>{const t="/api/customers/received-invitation",s=new URL(t,P);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...a},o={},i={};await b(o,e),R(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:A(s),options:n}},onConnectFailed:async(a={})=>{const t="/api/customers/connect-failed",s=new URL(t,P);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...a},o={},i={};await b(o,e),R(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:A(s),options:n}},onFullSnapshotSent:async(a={})=>{const t="/api/customers/full-snapshot-sent",s=new URL(t,P);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...a},o={},i={};await b(o,e),R(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:A(s),options:n}},registerCustomer:async(a,t={})=>{const s="/api/customers/register",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},registerLobby:async(a,t={})=>{const s="/api/customers/lobby/register",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},requestSupport:async(a,t={})=>{const s="/api/customers/request-support",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},resizeWindow:async(a,t={})=>{const s="/api/customers/resize-window",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},respondToMeetingInvitation:async(a,t={})=>{const s="/api/customers/meeting/respond",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),a!==void 0&&(l.accept=a),R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:A(r),options:o}},updateAnonymousDetails:async(a,t={})=>{const s="/api/customers/update-anonymous-details",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},updateMeetingParticipant:async(a,t={})=>{const s="/api/customers/meeting/update-participant",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},updateParticipant:async(a,t={})=>{const s="/api/customers/update-participant",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},updateParticipantRTC:async(a,t={})=>{const s="/api/customers/update-participant-rtc",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},uploadFile:async(a,t={})=>{const s="/api/customers/file",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={},c=new(e&&e.formDataCtor||FormData);await b(i,e),a!==void 0&&c.append("file",a),i["Content-Type"]="multipart/form-data",R(r,l);let d=n&&n.headers?n.headers:{};return o.headers={...i,...d,...t.headers},o.data=c,{url:A(r),options:o}},uploadMeetingFile:async(a,t={})=>{const s="/api/customers/meeting/file",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={},c=new(e&&e.formDataCtor||FormData);await b(i,e),a!==void 0&&c.append("file",a),i["Content-Type"]="multipart/form-data",R(r,l);let d=n&&n.headers?n.headers:{};return o.headers={...i,...d,...t.headers},o.data=c,{url:A(r),options:o}}}},J=function(e){const a=Ul(e);return{async acceptCoBrowse(t,s){const r=await a.acceptCoBrowse(t,s);return E(r,h,m,e)},async addFeedback(t,s,r){const n=await a.addFeedback(t,s,r);return E(n,h,m,e)},async cancelSupportRequest(t){const s=await a.cancelSupportRequest(t);return E(s,h,m,e)},async changeWindowPosition(t,s){const r=await a.changeWindowPosition(t,s);return E(r,h,m,e)},async declineCoBrowse(t,s){const r=await a.declineCoBrowse(t,s);return E(r,h,m,e)},async deleteFile(t,s){const r=await a.deleteFile(t,s);return E(r,h,m,e)},async deleteMeetingFile(t,s){const r=await a.deleteMeetingFile(t,s);return E(r,h,m,e)},async endCoBrowse(t){const s=await a.endCoBrowse(t);return E(s,h,m,e)},async generateIdentificationCode(t){const s=await a.generateIdentificationCode(t);return E(s,h,m,e)},async getFile(t,s){const r=await a.getFile(t,s);return E(r,h,m,e)},async getMeetingFile(t,s){const r=await a.getMeetingFile(t,s);return E(r,h,m,e)},async joinCoBrowse(t,s){const r=await a.joinCoBrowse(t,s);return E(r,h,m,e)},async leaveMeeting(t){const s=await a.leaveMeeting(t);return E(s,h,m,e)},async loginCustomer(t){const s=await a.loginCustomer(t);return E(s,h,m,e)},async onCoBrowseInvitationReceived(t){const s=await a.onCoBrowseInvitationReceived(t);return E(s,h,m,e)},async onConnectFailed(t){const s=await a.onConnectFailed(t);return E(s,h,m,e)},async onFullSnapshotSent(t){const s=await a.onFullSnapshotSent(t);return E(s,h,m,e)},async registerCustomer(t,s){const r=await a.registerCustomer(t,s);return E(r,h,m,e)},async registerLobby(t,s){const r=await a.registerLobby(t,s);return E(r,h,m,e)},async requestSupport(t,s){const r=await a.requestSupport(t,s);return E(r,h,m,e)},async resizeWindow(t,s){const r=await a.resizeWindow(t,s);return E(r,h,m,e)},async respondToMeetingInvitation(t,s){const r=await a.respondToMeetingInvitation(t,s);return E(r,h,m,e)},async updateAnonymousDetails(t,s){const r=await a.updateAnonymousDetails(t,s);return E(r,h,m,e)},async updateMeetingParticipant(t,s){const r=await a.updateMeetingParticipant(t,s);return E(r,h,m,e)},async updateParticipant(t,s){const r=await a.updateParticipant(t,s);return E(r,h,m,e)},async updateParticipantRTC(t,s){const r=await a.updateParticipantRTC(t,s);return E(r,h,m,e)},async uploadFile(t,s){const r=await a.uploadFile(t,s);return E(r,h,m,e)},async uploadMeetingFile(t,s){const r=await a.uploadMeetingFile(t,s);return E(r,h,m,e)}}};class Il extends Ae{acceptCoBrowse(a,t){return J(this.configuration).acceptCoBrowse(a,t).then(s=>s(this.axios,this.basePath))}addFeedback(a,t,s){return J(this.configuration).addFeedback(a,t,s).then(r=>r(this.axios,this.basePath))}cancelSupportRequest(a){return J(this.configuration).cancelSupportRequest(a).then(t=>t(this.axios,this.basePath))}changeWindowPosition(a,t){return J(this.configuration).changeWindowPosition(a,t).then(s=>s(this.axios,this.basePath))}declineCoBrowse(a,t){return J(this.configuration).declineCoBrowse(a,t).then(s=>s(this.axios,this.basePath))}deleteFile(a,t){return J(this.configuration).deleteFile(a,t).then(s=>s(this.axios,this.basePath))}deleteMeetingFile(a,t){return J(this.configuration).deleteMeetingFile(a,t).then(s=>s(this.axios,this.basePath))}endCoBrowse(a){return J(this.configuration).endCoBrowse(a).then(t=>t(this.axios,this.basePath))}generateIdentificationCode(a){return J(this.configuration).generateIdentificationCode(a).then(t=>t(this.axios,this.basePath))}getFile(a,t){return J(this.configuration).getFile(a,t).then(s=>s(this.axios,this.basePath))}getMeetingFile(a,t){return J(this.configuration).getMeetingFile(a,t).then(s=>s(this.axios,this.basePath))}joinCoBrowse(a,t){return J(this.configuration).joinCoBrowse(a,t).then(s=>s(this.axios,this.basePath))}leaveMeeting(a){return J(this.configuration).leaveMeeting(a).then(t=>t(this.axios,this.basePath))}loginCustomer(a){return J(this.configuration).loginCustomer(a).then(t=>t(this.axios,this.basePath))}onCoBrowseInvitationReceived(a){return J(this.configuration).onCoBrowseInvitationReceived(a).then(t=>t(this.axios,this.basePath))}onConnectFailed(a){return J(this.configuration).onConnectFailed(a).then(t=>t(this.axios,this.basePath))}onFullSnapshotSent(a){return J(this.configuration).onFullSnapshotSent(a).then(t=>t(this.axios,this.basePath))}registerCustomer(a,t){return J(this.configuration).registerCustomer(a,t).then(s=>s(this.axios,this.basePath))}registerLobby(a,t){return J(this.configuration).registerLobby(a,t).then(s=>s(this.axios,this.basePath))}requestSupport(a,t){return J(this.configuration).requestSupport(a,t).then(s=>s(this.axios,this.basePath))}resizeWindow(a,t){return J(this.configuration).resizeWindow(a,t).then(s=>s(this.axios,this.basePath))}respondToMeetingInvitation(a,t){return J(this.configuration).respondToMeetingInvitation(a,t).then(s=>s(this.axios,this.basePath))}updateAnonymousDetails(a,t){return J(this.configuration).updateAnonymousDetails(a,t).then(s=>s(this.axios,this.basePath))}updateMeetingParticipant(a,t){return J(this.configuration).updateMeetingParticipant(a,t).then(s=>s(this.axios,this.basePath))}updateParticipant(a,t){return J(this.configuration).updateParticipant(a,t).then(s=>s(this.axios,this.basePath))}updateParticipantRTC(a,t){return J(this.configuration).updateParticipantRTC(a,t).then(s=>s(this.axios,this.basePath))}uploadFile(a,t){return J(this.configuration).uploadFile(a,t).then(s=>s(this.axios,this.basePath))}uploadMeetingFile(a,t){return J(this.configuration).uploadMeetingFile(a,t).then(s=>s(this.axios,this.basePath))}}const Cl=function(e){return{getMeeting:async(a={})=>{const t="/api/customers/meeting-window/meeting",s=new URL(t,P);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...a},o={},i={};await b(o,e),R(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:A(s),options:n}},leaveMeeting:async(a={})=>{const t="/api/customers/meeting-window/leave-meeting",s=new URL(t,P);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...a},o={},i={};await b(o,e),R(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:A(s),options:n}},register:async(a,t={})=>{const s="/api/customers/meeting-window/register",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},updateParticipant:async(a,t={})=>{const s="/api/customers/meeting-window/update-participant",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}}}},Gt=function(e){const a=Cl(e);return{async getMeeting(t){const s=await a.getMeeting(t);return E(s,h,m,e)},async leaveMeeting(t){const s=await a.leaveMeeting(t);return E(s,h,m,e)},async register(t,s){const r=await a.register(t,s);return E(r,h,m,e)},async updateParticipant(t,s){const r=await a.updateParticipant(t,s);return E(r,h,m,e)}}};class _l extends Ae{getMeeting(a){return Gt(this.configuration).getMeeting(a).then(t=>t(this.axios,this.basePath))}leaveMeeting(a){return Gt(this.configuration).leaveMeeting(a).then(t=>t(this.axios,this.basePath))}register(a,t){return Gt(this.configuration).register(a,t).then(s=>s(this.axios,this.basePath))}updateParticipant(a,t){return Gt(this.configuration).updateParticipant(a,t).then(s=>s(this.axios,this.basePath))}}const xl=function(e){return{getBooleanFlag:async(a,t={})=>{const s="/api/flags",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};a!==void 0&&(l.flagName=a),R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:A(r),options:o}}}},Ll=function(e){const a=xl(e);return{async getBooleanFlag(t,s){const r=await a.getBooleanFlag(t,s);return E(r,h,m,e)}}};class Fl extends Ae{getBooleanFlag(a,t){return Ll(this.configuration).getBooleanFlag(a,t).then(s=>s(this.axios,this.basePath))}}const Nl=function(e){return{increment:async(a,t,s={})=>{Q("increment","metric",a);const r="/api/metrics/{metric}/increment".replace("{metric}",encodeURIComponent(String(a))),n=new URL(r,P);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...s},l={},c={};l["Content-Type"]="application/json",R(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=k(t,i,e),{url:A(n),options:i}}}},Dl=function(e){const a=Nl(e);return{async increment(t,s,r){const n=await a.increment(t,s,r);return E(n,h,m,e)}}};class Bl extends Ae{increment(a,t,s){return Dl(this.configuration).increment(a,t,s).then(r=>r(this.axios,this.basePath))}}const jl=function(e){return{getCoBrowseWindowConfig:async(a,t={})=>{Q("getCoBrowseWindowConfig","organisationId",a);const s="/api/organisations/{organisationId}/config/co-browse-window".replace("{organisationId}",encodeURIComponent(String(a))),r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={};R(r,{});let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:A(r),options:o}},getDashboardConfig:async(a,t={})=>{Q("getDashboardConfig","organisationId",a);const s="/api/organisations/{organisationId}/config/dashboard".replace("{organisationId}",encodeURIComponent(String(a))),r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await b(i,e),R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:A(r),options:o}},getLoaderConfig:async(a,t,s={})=>{Q("getLoaderConfig","organisationId",a);const r="/api/organisations/{organisationId}/config/sdk-loader".replace("{organisationId}",encodeURIComponent(String(a))),n=new URL(r,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...s},l={},c={};t!==void 0&&(c.component=t),R(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:A(n),options:i}},getSdkConfig:async(a,t={})=>{Q("getSdkConfig","organisationId",a);const s="/api/organisations/{organisationId}/config/sdk".replace("{organisationId}",encodeURIComponent(String(a))),r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={};R(r,{});let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:A(r),options:o}}}},Wt=function(e){const a=jl(e);return{async getCoBrowseWindowConfig(t,s){const r=await a.getCoBrowseWindowConfig(t,s);return E(r,h,m,e)},async getDashboardConfig(t,s){const r=await a.getDashboardConfig(t,s);return E(r,h,m,e)},async getLoaderConfig(t,s,r){const n=await a.getLoaderConfig(t,s,r);return E(n,h,m,e)},async getSdkConfig(t,s){const r=await a.getSdkConfig(t,s);return E(r,h,m,e)}}};let ql=class extends Ae{getCoBrowseWindowConfig(a,t){return Wt(this.configuration).getCoBrowseWindowConfig(a,t).then(s=>s(this.axios,this.basePath))}getDashboardConfig(a,t){return Wt(this.configuration).getDashboardConfig(a,t).then(s=>s(this.axios,this.basePath))}getLoaderConfig(a,t,s){return Wt(this.configuration).getLoaderConfig(a,t,s).then(r=>r(this.axios,this.basePath))}getSdkConfig(a,t){return Wt(this.configuration).getSdkConfig(a,t).then(s=>s(this.axios,this.basePath))}};const $l=function(e){return{updateOrganisationConfig:async(a,t,s={})=>{Q("updateOrganisationConfig","organisationId",a);const r="/api/super-admin/organisations/{organisationId}/config".replace("{organisationId}",encodeURIComponent(String(a))),n=new URL(r,P);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...s},l={},c={};await b(l,e),l["Content-Type"]="application/json",R(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=k(t,i,e),{url:A(n),options:i}}}},Ml=function(e){const a=$l(e);return{async updateOrganisationConfig(t,s,r){const n=await a.updateOrganisationConfig(t,s,r);return E(n,h,m,e)}}};let Hl=class extends Ae{updateOrganisationConfig(a,t,s){return Ml(this.configuration).updateOrganisationConfig(a,t,s).then(r=>r(this.axios,this.basePath))}};const Ql=function(e){return{getComponentVersion:async(a,t={})=>{Q("getComponentVersion","component",a);const s="/api/ui/component/{component}/version".replace("{component}",encodeURIComponent(String(a))),r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={};R(r,{});let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:A(r),options:o}},getServerTime:async(a={})=>{const t="/api/ui/server-time",s=new URL(t,P);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...a},o={};R(s,{});let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:A(s),options:n}},setComponentVersion:async(a,t,s,r={})=>{Q("setComponentVersion","component",a),Q("setComponentVersion","version",t);const n="/api/ui/component/{component}/version/{version}".replace("{component}",encodeURIComponent(String(a))).replace("{version}",encodeURIComponent(String(t))),o=new URL(n,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...r},c={},d={};s!==void 0&&(d.forceRefresh=s),R(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...c,...p,...r.headers},{url:A(o),options:l}}}},Na=function(e){const a=Ql(e);return{async getComponentVersion(t,s){const r=await a.getComponentVersion(t,s);return E(r,h,m,e)},async getServerTime(t){const s=await a.getServerTime(t);return E(s,h,m,e)},async setComponentVersion(t,s,r,n){const o=await a.setComponentVersion(t,s,r,n);return E(o,h,m,e)}}};class kl extends Ae{getComponentVersion(a,t){return Na(this.configuration).getComponentVersion(a,t).then(s=>s(this.axios,this.basePath))}getServerTime(a){return Na(this.configuration).getServerTime(a).then(t=>t(this.axios,this.basePath))}setComponentVersion(a,t,s,r){return Na(this.configuration).setComponentVersion(a,t,s,r).then(n=>n(this.axios,this.basePath))}}const Gl=function(e){return{getMeeting:async(a={})=>{const t="/api/visitors/meeting",s=new URL(t,P);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...a},o={},i={};await b(o,e),R(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:A(s),options:n}},joinCoBrowse:async(a,t={})=>{const s="/api/visitors/join-co-browse",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},joinMeeting:async(a,t={})=>{const s="/api/visitors/join-meeting",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},leaveMeeting:async(a={})=>{const t="/api/visitors/leave-meeting",s=new URL(t,P);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...a},o={},i={};await b(o,e),R(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:A(s),options:n}},register:async(a,t={})=>{const s="/api/visitors/register",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}},updateParticipant:async(a,t={})=>{const s="/api/visitors/update-participant",r=new URL(s,P);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await b(i,e),i["Content-Type"]="application/json",R(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=k(a,o,e),{url:A(r),options:o}}}},at=function(e){const a=Gl(e);return{async getMeeting(t){const s=await a.getMeeting(t);return E(s,h,m,e)},async joinCoBrowse(t,s){const r=await a.joinCoBrowse(t,s);return E(r,h,m,e)},async joinMeeting(t,s){const r=await a.joinMeeting(t,s);return E(r,h,m,e)},async leaveMeeting(t){const s=await a.leaveMeeting(t);return E(s,h,m,e)},async register(t,s){const r=await a.register(t,s);return E(r,h,m,e)},async updateParticipant(t,s){const r=await a.updateParticipant(t,s);return E(r,h,m,e)}}};class Wl extends Ae{getMeeting(a){return at(this.configuration).getMeeting(a).then(t=>t(this.axios,this.basePath))}joinCoBrowse(a,t){return at(this.configuration).joinCoBrowse(a,t).then(s=>s(this.axios,this.basePath))}joinMeeting(a,t){return at(this.configuration).joinMeeting(a,t).then(s=>s(this.axios,this.basePath))}leaveMeeting(a){return at(this.configuration).leaveMeeting(a).then(t=>t(this.axios,this.basePath))}register(a,t){return at(this.configuration).register(a,t).then(s=>s(this.axios,this.basePath))}updateParticipant(a,t){return at(this.configuration).updateParticipant(a,t).then(s=>s(this.axios,this.basePath))}}const re="http://localhost".replace(/\/+$/,"");let Da=class{constructor(a,t=re,s=h){X(this,"configuration");this.basePath=t,this.axios=s,a&&(this.configuration=a,this.basePath=a.basePath||this.basePath)}},Yl=class extends Error{constructor(t,s){super(s);X(this,"name","RequiredError");this.field=t}};const ie="https://example.com",te=function(e,a,t){if(t==null)throw new Yl(a,`Required parameter ${a} was null or undefined when calling ${e}.`)},le=function(e,...a){const t=new URLSearchParams(e.search);for(const s of a)for(const r in s)if(Array.isArray(s[r])){t.delete(r);for(const n of s[r])t.append(r,n)}else t.set(r,s[r]);e.search=t.toString()},ke=function(e,a,t){const s=typeof e!="string";return(s&&t&&t.isJsonMime?t.isJsonMime(a.headers["Content-Type"]):s)?JSON.stringify(e!==void 0?e:{}):e||""},ce=function(e){return e.pathname+e.search+e.hash},he=function(e,a,t,s){return(r=a,n=t)=>{const o={...e.options,url:((s==null?void 0:s.basePath)||n)+e.url};return r.request(o)}},zl=function(e){return{createPincode:async(a={})=>{const t="/library/pincodes",s=new URL(t,ie);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...a},o={};le(s,{});let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:ce(s),options:n}},getSessions:async(a,t,s,r={})=>{te("getSessions","topicId",a),te("getSessions","page",t),te("getSessions","size",s);const n="/library/topics/{topicId}/sessions".replace("{topicId}",encodeURIComponent(String(a))),o=new URL(n,ie);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...r},c={},d={};t!==void 0&&(d.page=t),s!==void 0&&(d.size=s),le(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...c,...p,...r.headers},{url:ce(o),options:l}},getStats:async(a={})=>{const t="/library/stats",s=new URL(t,ie);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...a},o={};le(s,{});let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:ce(s),options:n}},getTopic:async(a,t={})=>{te("getTopic","topicId",a);const s="/library/topics/{topicId}".replace("{topicId}",encodeURIComponent(String(a))),r=new URL(s,ie);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={};le(r,{});let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:ce(r),options:o}},getTopics:async(a,t,s={})=>{te("getTopics","page",a),te("getTopics","size",t);const r="/library/topics",n=new URL(r,ie);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...s},l={},c={};a!==void 0&&(c.page=a),t!==void 0&&(c.size=t),le(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},{url:ce(n),options:i}},verifyPincode:async(a,t={})=>{te("verifyPincode","pincode",a);const s="/library/pincodes/{pincode}".replace("{pincode}",encodeURIComponent(String(a))),r=new URL(s,ie);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={};le(r,{});let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:ce(r),options:o}}}},st=function(e){const a=zl(e);return{async createPincode(t){const s=await a.createPincode(t);return he(s,h,re,e)},async getSessions(t,s,r,n){const o=await a.getSessions(t,s,r,n);return he(o,h,re,e)},async getStats(t){const s=await a.getStats(t);return he(s,h,re,e)},async getTopic(t,s){const r=await a.getTopic(t,s);return he(r,h,re,e)},async getTopics(t,s,r){const n=await a.getTopics(t,s,r);return he(n,h,re,e)},async verifyPincode(t,s){const r=await a.verifyPincode(t,s);return he(r,h,re,e)}}};class Jl extends Da{createPincode(a){return st(this.configuration).createPincode(a).then(t=>t(this.axios,this.basePath))}getSessions(a,t,s,r){return st(this.configuration).getSessions(a,t,s,r).then(n=>n(this.axios,this.basePath))}getStats(a){return st(this.configuration).getStats(a).then(t=>t(this.axios,this.basePath))}getTopic(a,t){return st(this.configuration).getTopic(a,t).then(s=>s(this.axios,this.basePath))}getTopics(a,t,s){return st(this.configuration).getTopics(a,t,s).then(r=>r(this.axios,this.basePath))}verifyPincode(a,t){return st(this.configuration).verifyPincode(a,t).then(s=>s(this.axios,this.basePath))}}const Xl=function(e){return{abortSession:async(a,t={})=>{te("abortSession","sessionId",a);const s="/sessions/{sessionId}/abort".replace("{sessionId}",encodeURIComponent(String(a))),r=new URL(s,ie);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={};le(r,{});let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:ce(r),options:o}},createSession:async(a,t={})=>{te("createSession","createSessionDto",a);const s="/sessions",r=new URL(s,ie);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};i["Content-Type"]="application/json",le(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=ke(a,o,e),{url:ce(r),options:o}},generateStep:async(a,t,s={})=>{te("generateStep","sessionId",a),te("generateStep","generateStepDto",t);const r="/sessions/{sessionId}/step".replace("{sessionId}",encodeURIComponent(String(a))),n=new URL(r,ie);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...s},l={},c={};l["Content-Type"]="application/json",le(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=ke(t,i,e),{url:ce(n),options:i}},restartSession:async(a,t,s={})=>{te("restartSession","sessionId",a),te("restartSession","restartSessionDto",t);const r="/sessions/{sessionId}/restart".replace("{sessionId}",encodeURIComponent(String(a))),n=new URL(r,ie);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...s},l={},c={};l["Content-Type"]="application/json",le(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=ke(t,i,e),{url:ce(n),options:i}},sendFeedback:async(a,t,s={})=>{te("sendFeedback","sessionId",a),te("sendFeedback","sendFeedbackDto",t);const r="/sessions/{sessionId}/feedback".replace("{sessionId}",encodeURIComponent(String(a))),n=new URL(r,ie);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...s},l={},c={};l["Content-Type"]="application/json",le(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=ke(t,i,e),{url:ce(n),options:i}},sendFeedbackDetails:async(a,t,s={})=>{te("sendFeedbackDetails","sessionId",a),te("sendFeedbackDetails","sendFeedbackDetailsDto",t);const r="/sessions/{sessionId}/feedback-details".replace("{sessionId}",encodeURIComponent(String(a))),n=new URL(r,ie);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...s},l={},c={};l["Content-Type"]="application/json",le(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=ke(t,i,e),{url:ce(n),options:i}}}},rt=function(e){const a=Xl(e);return{async abortSession(t,s){const r=await a.abortSession(t,s);return he(r,h,re,e)},async createSession(t,s){const r=await a.createSession(t,s);return he(r,h,re,e)},async generateStep(t,s,r){const n=await a.generateStep(t,s,r);return he(n,h,re,e)},async restartSession(t,s,r){const n=await a.restartSession(t,s,r);return he(n,h,re,e)},async sendFeedback(t,s,r){const n=await a.sendFeedback(t,s,r);return he(n,h,re,e)},async sendFeedbackDetails(t,s,r){const n=await a.sendFeedbackDetails(t,s,r);return he(n,h,re,e)}}};let Kl=class extends Da{abortSession(a,t){return rt(this.configuration).abortSession(a,t).then(s=>s(this.axios,this.basePath))}createSession(a,t){return rt(this.configuration).createSession(a,t).then(s=>s(this.axios,this.basePath))}generateStep(a,t,s){return rt(this.configuration).generateStep(a,t,s).then(r=>r(this.axios,this.basePath))}restartSession(a,t,s){return rt(this.configuration).restartSession(a,t,s).then(r=>r(this.axios,this.basePath))}sendFeedback(a,t,s){return rt(this.configuration).sendFeedback(a,t,s).then(r=>r(this.axios,this.basePath))}sendFeedbackDetails(a,t,s){return rt(this.configuration).sendFeedbackDetails(a,t,s).then(r=>r(this.axios,this.basePath))}};const Zl=function(e){return{addEvent:async(a,t,s={})=>{te("addEvent","sequenceId",a),te("addEvent","sequenceEventDto",t);const r="/training/sequences/{sequenceId}/event".replace("{sequenceId}",encodeURIComponent(String(a))),n=new URL(r,ie);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...s},l={},c={};l["Content-Type"]="application/json",le(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=ke(t,i,e),{url:ce(n),options:i}},endSequence:async(a,t={})=>{te("endSequence","sequenceId",a);const s="/training/sequences/{sequenceId}/end".replace("{sequenceId}",encodeURIComponent(String(a))),r=new URL(s,ie);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={};le(r,{});let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:ce(r),options:o}},startSequence:async(a,t={})=>{te("startSequence","startSequenceDto",a);const s="/training/sequences",r=new URL(s,ie);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};i["Content-Type"]="application/json",le(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=ke(a,o,e),{url:ce(r),options:o}}}},Ba=function(e){const a=Zl(e);return{async addEvent(t,s,r){const n=await a.addEvent(t,s,r);return he(n,h,re,e)},async endSequence(t,s){const r=await a.endSequence(t,s);return he(r,h,re,e)},async startSequence(t,s){const r=await a.startSequence(t,s);return he(r,h,re,e)}}};class ec extends Da{addEvent(a,t,s){return Ba(this.configuration).addEvent(a,t,s).then(r=>r(this.axios,this.basePath))}endSequence(a,t){return Ba(this.configuration).endSequence(a,t).then(s=>s(this.axios,this.basePath))}startSequence(a,t){return Ba(this.configuration).startSequence(a,t).then(s=>s(this.axios,this.basePath))}}const g="https://api.us1.fullview.io/citadel".replace(/\/+$/,"");let ye=class{constructor(a,t=g,s=h){X(this,"configuration");this.basePath=t,this.axios=s,a&&(this.configuration=a,this.basePath=a.basePath||this.basePath)}},tc=class extends Error{constructor(t,s){super(s);X(this,"name","RequiredError");this.field=t}};const y="https://example.com",Rt=function(e,a,t){if(t==null)throw new tc(a,`Required parameter ${a} was null or undefined when calling ${e}.`)},_=async function(e,a){if(a&&a.accessToken){const t=typeof a.accessToken=="function"?await a.accessToken():await a.accessToken;e.Authorization="Bearer "+t}},S=function(e,...a){const t=new URLSearchParams(e.search);for(const s of a)for(const r in s)if(Array.isArray(s[r])){t.delete(r);for(const n of s[r])t.append(r,n)}else t.set(r,s[r]);e.search=t.toString()},q=function(e,a,t){const s=typeof e!="string";return(s&&t&&t.isJsonMime?t.isJsonMime(a.headers["Content-Type"]):s)?JSON.stringify(e!==void 0?e:{}):e||""},v=function(e){return e.pathname+e.search+e.hash},T=function(e,a,t,s){return(r=a,n=t)=>{const o={...e.options,url:((s==null?void 0:s.basePath)||n)+e.url};return r.request(o)}},ac=function(e){return{citadelOnlyLogout:async(a,t={})=>{const s="/Account/citadel-only-logout",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},logOut:async(a,t={})=>{const s="/Account/logOut",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}}}},Ur=function(e){const a=ac(e);return{async citadelOnlyLogout(t,s){const r=await a.citadelOnlyLogout(t,s);return T(r,h,g,e)},async logOut(t,s){const r=await a.logOut(t,s);return T(r,h,g,e)}}};class sc extends ye{citadelOnlyLogout(a,t){return Ur(this.configuration).citadelOnlyLogout(a,t).then(s=>s(this.axios,this.basePath))}logOut(a,t){return Ur(this.configuration).logOut(a,t).then(s=>s(this.axios,this.basePath))}}const rc=function(e){return{refreshAuthorization:async(a,t={})=>{const s="/Authorization/refresh",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}}}},nc=function(e){const a=rc(e);return{async refreshAuthorization(t,s){const r=await a.refreshAuthorization(t,s);return T(r,h,g,e)}}};class oc extends ye{refreshAuthorization(a,t){return nc(this.configuration).refreshAuthorization(a,t).then(s=>s(this.axios,this.basePath))}}const ic=function(e){return{exchange:async(a,t,s,r={})=>{Rt("exchange","state",a),Rt("exchange","code",t),Rt("exchange","sessionState",s);const n="/oauth/exchange",o=new URL(n,y);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...r},c={},d={},p=new(e&&e.formDataCtor||FormData);a!==void 0&&p.append("State",a),t!==void 0&&p.append("Code",t),s!==void 0&&p.append("SessionState",s),c["Content-Type"]="multipart/form-data",S(o,d);let w=i&&i.headers?i.headers:{};return l.headers={...c,...w,...r.headers},l.data=p,{url:v(o),options:l}},start:async(a,t,s,r,n,o={})=>{const i="/oauth/start",l=new URL(i,y);let c;e&&(c=e.baseOptions);const d={method:"POST",...c,...o},p={},w={};a!==void 0&&(w.redirectUri=a),t!==void 0&&(w.inviteLinkId=t),s!==void 0&&(w.inviteEmail=s),r!==void 0&&(w.ssoDomain=r),n!==void 0&&(w.organisationId=n),S(l,w);let C=c&&c.headers?c.headers:{};return d.headers={...p,...C,...o.headers},{url:v(l),options:d}}}},Ir=function(e){const a=ic(e);return{async exchange(t,s,r,n){const o=await a.exchange(t,s,r,n);return T(o,h,g,e)},async start(t,s,r,n,o,i){const l=await a.start(t,s,r,n,o,i);return T(l,h,g,e)}}};class lc extends ye{exchange(a,t,s,r){return Ir(this.configuration).exchange(a,t,s,r).then(n=>n(this.axios,this.basePath))}start(a,t,s,r,n,o){return Ir(this.configuration).start(a,t,s,r,n,o).then(i=>i(this.axios,this.basePath))}}const cc=function(e){return{createJoinLink:async(a={})=>{const t="/Organisation/create-join-link",s=new URL(t,y);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...a},o={},i={};await _(o,e),S(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:v(s),options:n}},createOrganisationWithRolesSetup:async(a,t={})=>{const s="/Organisation/create-organisation-reg",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},deleteUser:async(a,t={})=>{Rt("deleteUser","userId",a);const s="/Organisation/users/{userId}".replace("{userId}",encodeURIComponent(String(a))),r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"DELETE",...n,...t},i={},l={};await _(i,e),S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:v(r),options:o}},multiInviteUsersToOrganisation:async(a,t={})=>{const s="/Organisation/multi-invite",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},organisationAcceptAccessRequestsPost:async(a,t={})=>{const s="/Organisation/accept-access-requests",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},organisationRequestSessionReplayAccessPost:async(a={})=>{const t="/Organisation/request-session-replay-access",s=new URL(t,y);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...a},o={},i={};await _(o,e),S(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:v(s),options:n}},organisationRequestSessionReplayUpgradePost:async(a={})=>{const t="/Organisation/request-session-replay-upgrade",s=new URL(t,y);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...a},o={},i={};await _(o,e),S(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:v(s),options:n}},rejectJoinRequest:async(a,t={})=>{const s="/Organisation/reject-request",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},requestAccessToOrganisation:async(a,t={})=>{const s="/Organisation/request-access",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},resendInvite:async(a,t={})=>{const s="/Organisation/resend-invite",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}}}},Se=function(e){const a=cc(e);return{async createJoinLink(t){const s=await a.createJoinLink(t);return T(s,h,g,e)},async createOrganisationWithRolesSetup(t,s){const r=await a.createOrganisationWithRolesSetup(t,s);return T(r,h,g,e)},async deleteUser(t,s){const r=await a.deleteUser(t,s);return T(r,h,g,e)},async multiInviteUsersToOrganisation(t,s){const r=await a.multiInviteUsersToOrganisation(t,s);return T(r,h,g,e)},async organisationAcceptAccessRequestsPost(t,s){const r=await a.organisationAcceptAccessRequestsPost(t,s);return T(r,h,g,e)},async organisationRequestSessionReplayAccessPost(t){const s=await a.organisationRequestSessionReplayAccessPost(t);return T(s,h,g,e)},async organisationRequestSessionReplayUpgradePost(t){const s=await a.organisationRequestSessionReplayUpgradePost(t);return T(s,h,g,e)},async rejectJoinRequest(t,s){const r=await a.rejectJoinRequest(t,s);return T(r,h,g,e)},async requestAccessToOrganisation(t,s){const r=await a.requestAccessToOrganisation(t,s);return T(r,h,g,e)},async resendInvite(t,s){const r=await a.resendInvite(t,s);return T(r,h,g,e)}}};let hc=class extends ye{createJoinLink(a){return Se(this.configuration).createJoinLink(a).then(t=>t(this.axios,this.basePath))}createOrganisationWithRolesSetup(a,t){return Se(this.configuration).createOrganisationWithRolesSetup(a,t).then(s=>s(this.axios,this.basePath))}deleteUser(a,t){return Se(this.configuration).deleteUser(a,t).then(s=>s(this.axios,this.basePath))}multiInviteUsersToOrganisation(a,t){return Se(this.configuration).multiInviteUsersToOrganisation(a,t).then(s=>s(this.axios,this.basePath))}organisationAcceptAccessRequestsPost(a,t){return Se(this.configuration).organisationAcceptAccessRequestsPost(a,t).then(s=>s(this.axios,this.basePath))}organisationRequestSessionReplayAccessPost(a){return Se(this.configuration).organisationRequestSessionReplayAccessPost(a).then(t=>t(this.axios,this.basePath))}organisationRequestSessionReplayUpgradePost(a){return Se(this.configuration).organisationRequestSessionReplayUpgradePost(a).then(t=>t(this.axios,this.basePath))}rejectJoinRequest(a,t){return Se(this.configuration).rejectJoinRequest(a,t).then(s=>s(this.axios,this.basePath))}requestAccessToOrganisation(a,t){return Se(this.configuration).requestAccessToOrganisation(a,t).then(s=>s(this.axios,this.basePath))}resendInvite(a,t){return Se(this.configuration).resendInvite(a,t).then(s=>s(this.axios,this.basePath))}};const dc=function(e){return{addClaimToARoleFromCurrentOrganisation:async(a,t={})=>{const s="/Role/add-claim-to-role",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},assignOrganisationRoleToAnOrganisationUser:async(a,t={})=>{const s="/Role/assign-role-to-user",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},createRoleForCurrentOrganisation:async(a,t={})=>{const s="/Role/create-role",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},getRolesWithClaimsAndUsers:async(a={})=>{const t="/Role/roles-with-claims-and-users",s=new URL(t,y);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...a},o={},i={};await _(o,e),S(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:v(s),options:n}},listDefaultRolesForCurrentOrganisation:async(a={})=>{const t="/Role/list-default-roles",s=new URL(t,y);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...a},o={},i={};await _(o,e),S(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:v(s),options:n}},listRolesForCurrentOrganisation:async(a={})=>{const t="/Role/list-roles",s=new URL(t,y);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...a},o={},i={};await _(o,e),S(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:v(s),options:n}},removeClaimFromOrganisationRole:async(a,t={})=>{const s="/Role/remove-claim-from-role",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},removeOrganisationRole:async(a,t={})=>{const s="/Role/remove-role",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},removeOrganisationRoleFromAnOrganisationUser:async(a,t={})=>{const s="/Role/remove-role-from-user",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},removeRoleWithoutUsers:async(a,t={})=>{const s="/Role/remove-role-without-users",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},updateAUsersRole:async(a,t={})=>{const s="/Role/update-user-role",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},updateAUsersRole_1:async(a,t={})=>{const s="/Role/update-users-role",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},updateRoleForCurrentOrganisation:async(a,t={})=>{const s="/Role/update-role",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},viewRole:async(a,t={})=>{const s="/Role/view-role",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}}}},Oe=function(e){const a=dc(e);return{async addClaimToARoleFromCurrentOrganisation(t,s){const r=await a.addClaimToARoleFromCurrentOrganisation(t,s);return T(r,h,g,e)},async assignOrganisationRoleToAnOrganisationUser(t,s){const r=await a.assignOrganisationRoleToAnOrganisationUser(t,s);return T(r,h,g,e)},async createRoleForCurrentOrganisation(t,s){const r=await a.createRoleForCurrentOrganisation(t,s);return T(r,h,g,e)},async getRolesWithClaimsAndUsers(t){const s=await a.getRolesWithClaimsAndUsers(t);return T(s,h,g,e)},async listDefaultRolesForCurrentOrganisation(t){const s=await a.listDefaultRolesForCurrentOrganisation(t);return T(s,h,g,e)},async listRolesForCurrentOrganisation(t){const s=await a.listRolesForCurrentOrganisation(t);return T(s,h,g,e)},async removeClaimFromOrganisationRole(t,s){const r=await a.removeClaimFromOrganisationRole(t,s);return T(r,h,g,e)},async removeOrganisationRole(t,s){const r=await a.removeOrganisationRole(t,s);return T(r,h,g,e)},async removeOrganisationRoleFromAnOrganisationUser(t,s){const r=await a.removeOrganisationRoleFromAnOrganisationUser(t,s);return T(r,h,g,e)},async removeRoleWithoutUsers(t,s){const r=await a.removeRoleWithoutUsers(t,s);return T(r,h,g,e)},async updateAUsersRole(t,s){const r=await a.updateAUsersRole(t,s);return T(r,h,g,e)},async updateAUsersRole_1(t,s){const r=await a.updateAUsersRole_1(t,s);return T(r,h,g,e)},async updateRoleForCurrentOrganisation(t,s){const r=await a.updateRoleForCurrentOrganisation(t,s);return T(r,h,g,e)},async viewRole(t,s){const r=await a.viewRole(t,s);return T(r,h,g,e)}}};class uc extends ye{addClaimToARoleFromCurrentOrganisation(a,t){return Oe(this.configuration).addClaimToARoleFromCurrentOrganisation(a,t).then(s=>s(this.axios,this.basePath))}assignOrganisationRoleToAnOrganisationUser(a,t){return Oe(this.configuration).assignOrganisationRoleToAnOrganisationUser(a,t).then(s=>s(this.axios,this.basePath))}createRoleForCurrentOrganisation(a,t){return Oe(this.configuration).createRoleForCurrentOrganisation(a,t).then(s=>s(this.axios,this.basePath))}getRolesWithClaimsAndUsers(a){return Oe(this.configuration).getRolesWithClaimsAndUsers(a).then(t=>t(this.axios,this.basePath))}listDefaultRolesForCurrentOrganisation(a){return Oe(this.configuration).listDefaultRolesForCurrentOrganisation(a).then(t=>t(this.axios,this.basePath))}listRolesForCurrentOrganisation(a){return Oe(this.configuration).listRolesForCurrentOrganisation(a).then(t=>t(this.axios,this.basePath))}removeClaimFromOrganisationRole(a,t){return Oe(this.configuration).removeClaimFromOrganisationRole(a,t).then(s=>s(this.axios,this.basePath))}removeOrganisationRole(a,t){return Oe(this.configuration).removeOrganisationRole(a,t).then(s=>s(this.axios,this.basePath))}removeOrganisationRoleFromAnOrganisationUser(a,t){return Oe(this.configuration).removeOrganisationRoleFromAnOrganisationUser(a,t).then(s=>s(this.axios,this.basePath))}removeRoleWithoutUsers(a,t){return Oe(this.configuration).removeRoleWithoutUsers(a,t).then(s=>s(this.axios,this.basePath))}updateAUsersRole(a,t){return Oe(this.configuration).updateAUsersRole(a,t).then(s=>s(this.axios,this.basePath))}updateAUsersRole_1(a,t){return Oe(this.configuration).updateAUsersRole_1(a,t).then(s=>s(this.axios,this.basePath))}updateRoleForCurrentOrganisation(a,t){return Oe(this.configuration).updateRoleForCurrentOrganisation(a,t).then(s=>s(this.axios,this.basePath))}viewRole(a,t){return Oe(this.configuration).viewRole(a,t).then(s=>s(this.axios,this.basePath))}}const pc=function(e){return{changeOrgname:async(a,t={})=>{const s="/SSOConfiguration/change-orgname",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"PUT",...n,...t},i={},l={};await _(i,e),a!==void 0&&(l.newName=a),S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:v(r),options:o}},getSsoConfig:async(a={})=>{const t="/SSOConfiguration/get-sso-config",s=new URL(t,y);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...a},o={},i={};await _(o,e),S(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:v(s),options:n}},setSsoConfig:async(a,t={})=>{const s="/SSOConfiguration/set-sso-config",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}}}},ja=function(e){const a=pc(e);return{async changeOrgname(t,s){const r=await a.changeOrgname(t,s);return T(r,h,g,e)},async getSsoConfig(t){const s=await a.getSsoConfig(t);return T(s,h,g,e)},async setSsoConfig(t,s){const r=await a.setSsoConfig(t,s);return T(r,h,g,e)}}};class Oc extends ye{changeOrgname(a,t){return ja(this.configuration).changeOrgname(a,t).then(s=>s(this.axios,this.basePath))}getSsoConfig(a){return ja(this.configuration).getSsoConfig(a).then(t=>t(this.axios,this.basePath))}setSsoConfig(a,t){return ja(this.configuration).setSsoConfig(a,t).then(s=>s(this.axios,this.basePath))}}const mc=function(e){return{adminOrganisationCreateOrganisationPost:async(a,t={})=>{const s="/super-admin/organisation/create-organisation",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},adminOrganisationDeleteOrganisationPost:async(a,t={})=>{const s="/super-admin/organisation/delete-organisation",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},adminOrganisationDeleteOrganisationsPost:async(a,t={})=>{const s="/super-admin/organisation/delete-organisations",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},adminOrganisationListOrganisationIdPatch:async(a,t={})=>{const s="/super-admin/organisation/list-organisation-id",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"PATCH",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},adminOrganisationListOrganisationNamePatch:async(a,t={})=>{const s="/super-admin/organisation/list-organisation-name",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"PATCH",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},adminOrganisationListOrganisationsFullGet:async(a={})=>{const t="/super-admin/organisation/list-organisations-full",s=new URL(t,y);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...a},o={},i={};await _(o,e),S(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:v(s),options:n}}}},nt=function(e){const a=mc(e);return{async adminOrganisationCreateOrganisationPost(t,s){const r=await a.adminOrganisationCreateOrganisationPost(t,s);return T(r,h,g,e)},async adminOrganisationDeleteOrganisationPost(t,s){const r=await a.adminOrganisationDeleteOrganisationPost(t,s);return T(r,h,g,e)},async adminOrganisationDeleteOrganisationsPost(t,s){const r=await a.adminOrganisationDeleteOrganisationsPost(t,s);return T(r,h,g,e)},async adminOrganisationListOrganisationIdPatch(t,s){const r=await a.adminOrganisationListOrganisationIdPatch(t,s);return T(r,h,g,e)},async adminOrganisationListOrganisationNamePatch(t,s){const r=await a.adminOrganisationListOrganisationNamePatch(t,s);return T(r,h,g,e)},async adminOrganisationListOrganisationsFullGet(t){const s=await a.adminOrganisationListOrganisationsFullGet(t);return T(s,h,g,e)}}};class Pc extends ye{adminOrganisationCreateOrganisationPost(a,t){return nt(this.configuration).adminOrganisationCreateOrganisationPost(a,t).then(s=>s(this.axios,this.basePath))}adminOrganisationDeleteOrganisationPost(a,t){return nt(this.configuration).adminOrganisationDeleteOrganisationPost(a,t).then(s=>s(this.axios,this.basePath))}adminOrganisationDeleteOrganisationsPost(a,t){return nt(this.configuration).adminOrganisationDeleteOrganisationsPost(a,t).then(s=>s(this.axios,this.basePath))}adminOrganisationListOrganisationIdPatch(a,t){return nt(this.configuration).adminOrganisationListOrganisationIdPatch(a,t).then(s=>s(this.axios,this.basePath))}adminOrganisationListOrganisationNamePatch(a,t){return nt(this.configuration).adminOrganisationListOrganisationNamePatch(a,t).then(s=>s(this.axios,this.basePath))}adminOrganisationListOrganisationsFullGet(a){return nt(this.configuration).adminOrganisationListOrganisationsFullGet(a).then(t=>t(this.axios,this.basePath))}}const Rc=function(e){return{addClaimToARole:async(a,t={})=>{const s="/super-admin/rbac/add-claim",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},addClaimsToRole:async(a,t={})=>{const s="/super-admin/rbac/add-claims-to-role",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},createANewClaimForAnyOrganisation:async(a,t={})=>{const s="/super-admin/rbac/create-claim",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},createDefaultRole:async(a,t={})=>{const s="/super-admin/rbac/create-default-role",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},createRoleForAnOrganisation:async(a,t={})=>{const s="/super-admin/rbac/create-organisation-role",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},createsUpdatesDemoRolesForAnOrganisation:async(a,t={})=>{const s="/super-admin/rbac/synchronize-demo-roles-for-organisation",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},forceCreateDefaultRolesForOrganisations:async(a,t={})=>{const s="/super-admin/rbac/force-create-default-roles",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},listAllClaims:async(a,t={})=>{const s="/super-admin/rbac/list-claims",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},listAllRoles:async(a,t={})=>{const s="/super-admin/rbac/list-roles",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},listAllRolesFromAnOrganisation:async(a,t={})=>{const s="/super-admin/rbac/list-organisation-roles",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},listAllUsersForAOrganisation:async(a,t={})=>{const s="/super-admin/rbac/list-organisation-users",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},listAllUsersWithAGivenEmailOrganisation:async(a,t={})=>{const s="/super-admin/rbac/list-users",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},promotesUserToSuperAdmin:async(a,t={})=>{const s="/super-admin/rbac/promote-to-super-admin",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},removeAnyRole:async(a,t={})=>{const s="/super-admin/rbac/remove-role",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},removeClaimFromAnyRole:async(a,t={})=>{const s="/super-admin/rbac/remove-claim-from-role",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},revokeUserAccessToken:async(a,t={})=>{const s="/super-admin/rbac/revoke-user-access-token",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},testSuperAdmin:async(a={})=>{const t="/super-admin/rbac/test",s=new URL(t,y);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...a},o={},i={};await _(o,e),S(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:v(s),options:n}},updateTheRoleOfUsers:async(a,t={})=>{const s="/super-admin/rbac/update-role-for-users",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},viewAnyRoleFromAnyOrganisation:async(a,t={})=>{const s="/super-admin/rbac/view-organisation-role",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}}}},ae=function(e){const a=Rc(e);return{async addClaimToARole(t,s){const r=await a.addClaimToARole(t,s);return T(r,h,g,e)},async addClaimsToRole(t,s){const r=await a.addClaimsToRole(t,s);return T(r,h,g,e)},async createANewClaimForAnyOrganisation(t,s){const r=await a.createANewClaimForAnyOrganisation(t,s);return T(r,h,g,e)},async createDefaultRole(t,s){const r=await a.createDefaultRole(t,s);return T(r,h,g,e)},async createRoleForAnOrganisation(t,s){const r=await a.createRoleForAnOrganisation(t,s);return T(r,h,g,e)},async createsUpdatesDemoRolesForAnOrganisation(t,s){const r=await a.createsUpdatesDemoRolesForAnOrganisation(t,s);return T(r,h,g,e)},async forceCreateDefaultRolesForOrganisations(t,s){const r=await a.forceCreateDefaultRolesForOrganisations(t,s);return T(r,h,g,e)},async listAllClaims(t,s){const r=await a.listAllClaims(t,s);return T(r,h,g,e)},async listAllRoles(t,s){const r=await a.listAllRoles(t,s);return T(r,h,g,e)},async listAllRolesFromAnOrganisation(t,s){const r=await a.listAllRolesFromAnOrganisation(t,s);return T(r,h,g,e)},async listAllUsersForAOrganisation(t,s){const r=await a.listAllUsersForAOrganisation(t,s);return T(r,h,g,e)},async listAllUsersWithAGivenEmailOrganisation(t,s){const r=await a.listAllUsersWithAGivenEmailOrganisation(t,s);return T(r,h,g,e)},async promotesUserToSuperAdmin(t,s){const r=await a.promotesUserToSuperAdmin(t,s);return T(r,h,g,e)},async removeAnyRole(t,s){const r=await a.removeAnyRole(t,s);return T(r,h,g,e)},async removeClaimFromAnyRole(t,s){const r=await a.removeClaimFromAnyRole(t,s);return T(r,h,g,e)},async revokeUserAccessToken(t,s){const r=await a.revokeUserAccessToken(t,s);return T(r,h,g,e)},async testSuperAdmin(t){const s=await a.testSuperAdmin(t);return T(s,h,g,e)},async updateTheRoleOfUsers(t,s){const r=await a.updateTheRoleOfUsers(t,s);return T(r,h,g,e)},async viewAnyRoleFromAnyOrganisation(t,s){const r=await a.viewAnyRoleFromAnyOrganisation(t,s);return T(r,h,g,e)}}};class Ac extends ye{addClaimToARole(a,t){return ae(this.configuration).addClaimToARole(a,t).then(s=>s(this.axios,this.basePath))}addClaimsToRole(a,t){return ae(this.configuration).addClaimsToRole(a,t).then(s=>s(this.axios,this.basePath))}createANewClaimForAnyOrganisation(a,t){return ae(this.configuration).createANewClaimForAnyOrganisation(a,t).then(s=>s(this.axios,this.basePath))}createDefaultRole(a,t){return ae(this.configuration).createDefaultRole(a,t).then(s=>s(this.axios,this.basePath))}createRoleForAnOrganisation(a,t){return ae(this.configuration).createRoleForAnOrganisation(a,t).then(s=>s(this.axios,this.basePath))}createsUpdatesDemoRolesForAnOrganisation(a,t){return ae(this.configuration).createsUpdatesDemoRolesForAnOrganisation(a,t).then(s=>s(this.axios,this.basePath))}forceCreateDefaultRolesForOrganisations(a,t){return ae(this.configuration).forceCreateDefaultRolesForOrganisations(a,t).then(s=>s(this.axios,this.basePath))}listAllClaims(a,t){return ae(this.configuration).listAllClaims(a,t).then(s=>s(this.axios,this.basePath))}listAllRoles(a,t){return ae(this.configuration).listAllRoles(a,t).then(s=>s(this.axios,this.basePath))}listAllRolesFromAnOrganisation(a,t){return ae(this.configuration).listAllRolesFromAnOrganisation(a,t).then(s=>s(this.axios,this.basePath))}listAllUsersForAOrganisation(a,t){return ae(this.configuration).listAllUsersForAOrganisation(a,t).then(s=>s(this.axios,this.basePath))}listAllUsersWithAGivenEmailOrganisation(a,t){return ae(this.configuration).listAllUsersWithAGivenEmailOrganisation(a,t).then(s=>s(this.axios,this.basePath))}promotesUserToSuperAdmin(a,t){return ae(this.configuration).promotesUserToSuperAdmin(a,t).then(s=>s(this.axios,this.basePath))}removeAnyRole(a,t){return ae(this.configuration).removeAnyRole(a,t).then(s=>s(this.axios,this.basePath))}removeClaimFromAnyRole(a,t){return ae(this.configuration).removeClaimFromAnyRole(a,t).then(s=>s(this.axios,this.basePath))}revokeUserAccessToken(a,t){return ae(this.configuration).revokeUserAccessToken(a,t).then(s=>s(this.axios,this.basePath))}testSuperAdmin(a){return ae(this.configuration).testSuperAdmin(a).then(t=>t(this.axios,this.basePath))}updateTheRoleOfUsers(a,t){return ae(this.configuration).updateTheRoleOfUsers(a,t).then(s=>s(this.axios,this.basePath))}viewAnyRoleFromAnyOrganisation(a,t){return ae(this.configuration).viewAnyRoleFromAnyOrganisation(a,t).then(s=>s(this.axios,this.basePath))}}const Ec=function(e){return{deleteUsers:async(a,t={})=>{const s="/super-admin/user/delete-users",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},hardDeleteUser:async(a,t={})=>{Rt("hardDeleteUser","userId",a);const s="/super-admin/user/{userId}".replace("{userId}",encodeURIComponent(String(a))),r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"DELETE",...n,...t},i={},l={};await _(i,e),S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:v(r),options:o}},inviteUsers:async(a,t={})=>{const s="/super-admin/user/invite-users",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},listOrganisationUsers:async(a,t={})=>{const s="/super-admin/user/list-organisation-users",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},listUsers:async(a,t={})=>{const s="/super-admin/user/list-users",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},sendInvitationEmail:async(a,t={})=>{const s="/super-admin/user/send-invitation-email",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}}}},ot=function(e){const a=Ec(e);return{async deleteUsers(t,s){const r=await a.deleteUsers(t,s);return T(r,h,g,e)},async hardDeleteUser(t,s){const r=await a.hardDeleteUser(t,s);return T(r,h,g,e)},async inviteUsers(t,s){const r=await a.inviteUsers(t,s);return T(r,h,g,e)},async listOrganisationUsers(t,s){const r=await a.listOrganisationUsers(t,s);return T(r,h,g,e)},async listUsers(t,s){const r=await a.listUsers(t,s);return T(r,h,g,e)},async sendInvitationEmail(t,s){const r=await a.sendInvitationEmail(t,s);return T(r,h,g,e)}}};class fc extends ye{deleteUsers(a,t){return ot(this.configuration).deleteUsers(a,t).then(s=>s(this.axios,this.basePath))}hardDeleteUser(a,t){return ot(this.configuration).hardDeleteUser(a,t).then(s=>s(this.axios,this.basePath))}inviteUsers(a,t){return ot(this.configuration).inviteUsers(a,t).then(s=>s(this.axios,this.basePath))}listOrganisationUsers(a,t){return ot(this.configuration).listOrganisationUsers(a,t).then(s=>s(this.axios,this.basePath))}listUsers(a,t){return ot(this.configuration).listUsers(a,t).then(s=>s(this.axios,this.basePath))}sendInvitationEmail(a,t){return ot(this.configuration).sendInvitationEmail(a,t).then(s=>s(this.axios,this.basePath))}}const Vc=function(e){return{getUserOrgMembersCount:async(a={})=>{const t="/User/get-members-count",s=new URL(t,y);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...a},o={},i={};await _(o,e),S(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:v(s),options:n}},getUserOrganisations:async(a={})=>{const t="/User/get-user-orgs",s=new URL(t,y);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...a},o={},i={};await _(o,e),S(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:v(s),options:n}},updateOwnPassword:async(a,t={})=>{const s="/User/update-password",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}},updateProfile:async(a,t={})=>{const s="/User/update-profile",r=new URL(s,y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await _(i,e),i["Content-Type"]="application/json",S(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=q(a,o,e),{url:v(r),options:o}}}},Yt=function(e){const a=Vc(e);return{async getUserOrgMembersCount(t){const s=await a.getUserOrgMembersCount(t);return T(s,h,g,e)},async getUserOrganisations(t){const s=await a.getUserOrganisations(t);return T(s,h,g,e)},async updateOwnPassword(t,s){const r=await a.updateOwnPassword(t,s);return T(r,h,g,e)},async updateProfile(t,s){const r=await a.updateProfile(t,s);return T(r,h,g,e)}}};class wc extends ye{getUserOrgMembersCount(a){return Yt(this.configuration).getUserOrgMembersCount(a).then(t=>t(this.axios,this.basePath))}getUserOrganisations(a){return Yt(this.configuration).getUserOrganisations(a).then(t=>t(this.axios,this.basePath))}updateOwnPassword(a,t){return Yt(this.configuration).updateOwnPassword(a,t).then(s=>s(this.axios,this.basePath))}updateProfile(a,t){return Yt(this.configuration).updateProfile(a,t).then(s=>s(this.axios,this.basePath))}}const qa="https://api.fullview.io/v1/connect".replace(/\/+$/,"");let bc=class{constructor(a,t=qa,s=h){X(this,"configuration");this.basePath=t,this.axios=s,a&&(this.configuration=a,this.basePath=a.basePath||this.basePath)}},gc=class extends Error{constructor(t,s){super(s);X(this,"name","RequiredError");this.field=t}};const Cr="https://example.com",_r=function(e,a,t){if(t==null)throw new gc(a,`Required parameter ${a} was null or undefined when calling ${e}.`)},yc=async function(e,a,t){if(t&&t.apiKey){const s=typeof t.apiKey=="function"?await t.apiKey(a):await t.apiKey;e[a]=s}},Sc=async function(e,a){if(a&&a.accessToken){const t=typeof a.accessToken=="function"?await a.accessToken():await a.accessToken;e.Authorization="Bearer "+t}},xr=function(e,...a){const t=new URLSearchParams(e.search);for(const s of a)for(const r in s)if(Array.isArray(s[r])){t.delete(r);for(const n of s[r])t.append(r,n)}else t.set(r,s[r]);e.search=t.toString()},Lr=function(e,a,t){const s=typeof e!="string";return(s&&t&&t.isJsonMime?t.isJsonMime(a.headers["Content-Type"]):s)?JSON.stringify(e!==void 0?e:{}):e||""},Fr=function(e){return e.pathname+e.search+e.hash},Nr=function(e,a,t,s){return(r=a,n=t)=>{const o={...e.options,url:((s==null?void 0:s.basePath)||n)+e.url};return r.request(o)}},vc=function(e){return{linkToClientObsolete:async(a,t={})=>{_r("linkToClientObsolete","linkOrganisationToIntegrationPayloadDto",a);const s="/organisation/link-client",r=new URL(s,Cr);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await yc(i,"api-key",e),i["Content-Type"]="application/json",xr(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=Lr(a,o,e),{url:Fr(r),options:o}},linkToIntegrationClient:async(a,t={})=>{_r("linkToIntegrationClient","linkOrganisationPayloadDto",a);const s="/organisation/link-org-to-client",r=new URL(s,Cr);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await Sc(i,e),i["Content-Type"]="application/json",xr(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=Lr(a,o,e),{url:Fr(r),options:o}}}},Dr=function(e){const a=vc(e);return{async linkToClientObsolete(t,s){const r=await a.linkToClientObsolete(t,s);return Nr(r,h,qa,e)},async linkToIntegrationClient(t,s){const r=await a.linkToIntegrationClient(t,s);return Nr(r,h,qa,e)}}};let Tc=class extends bc{linkToClientObsolete(a,t){return Dr(this.configuration).linkToClientObsolete(a,t).then(s=>s(this.axios,this.basePath))}linkToIntegrationClient(a,t){return Dr(this.configuration).linkToIntegrationClient(a,t).then(s=>s(this.axios,this.basePath))}};const Br="https://api.us1.fullview.io/nexus".replace(/\/+$/,"");let Uc=class{constructor(a,t=Br,s=h){X(this,"configuration");this.basePath=t,this.axios=s,a&&(this.configuration=a,this.basePath=a.basePath||this.basePath)}},Ic=class extends Error{constructor(t,s){super(s);X(this,"name","RequiredError");this.field=t}};const Cc="https://example.com",_c=function(e,a,t){if(t==null)throw new Ic(a,`Required parameter ${a} was null or undefined when calling ${e}.`)},xc=async function(e,a){if(a&&a.accessToken){const t=typeof a.accessToken=="function"?await a.accessToken():await a.accessToken;e.Authorization="Bearer "+t}},Lc=function(e,...a){const t=new URLSearchParams(e.search);for(const s of a)for(const r in s)if(Array.isArray(s[r])){t.delete(r);for(const n of s[r])t.append(r,n)}else t.set(r,s[r]);e.search=t.toString()},Fc=function(e,a,t){const s=typeof e!="string";return(s&&t&&t.isJsonMime?t.isJsonMime(a.headers["Content-Type"]):s)?JSON.stringify(e!==void 0?e:{}):e||""},Nc=function(e){return e.pathname+e.search+e.hash},Dc=function(e,a,t,s){return(r=a,n=t)=>{const o={...e.options,url:((s==null?void 0:s.basePath)||n)+e.url};return r.request(o)}},Bc=function(e){return{linkToIntegrationClient:async(a,t={})=>{_c("linkToIntegrationClient","linkOrganisationPayloadDto",a);const s="/organisation/link-org-to-client",r=new URL(s,Cc);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await xc(i,e),i["Content-Type"]="application/json",Lc(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=Fc(a,o,e),{url:Nc(r),options:o}}}},jc=function(e){const a=Bc(e);return{async linkToIntegrationClient(t,s){const r=await a.linkToIntegrationClient(t,s);return Dc(r,h,Br,e)}}};class qc extends Uc{linkToIntegrationClient(a,t){return jc(this.configuration).linkToIntegrationClient(a,t).then(s=>s(this.axios,this.basePath))}}const I="https://api.us1.fullview.io/nexus".replace(/\/+$/,"");class je{constructor(a,t=I,s=h){X(this,"configuration");this.basePath=t,this.axios=s,a&&(this.configuration=a,this.basePath=a.basePath||this.basePath)}}class $c extends Error{constructor(t,s){super(s);X(this,"name","RequiredError");this.field=t}}const x="https://example.com",L=function(e,a,t){if(t==null)throw new $c(a,`Required parameter ${a} was null or undefined when calling ${e}.`)},F=async function(e,a){if(a&&a.accessToken){const t=typeof a.accessToken=="function"?await a.accessToken():await a.accessToken;e.Authorization="Bearer "+t}},N=function(e,...a){const t=new URLSearchParams(e.search);for(const s of a)for(const r in s)if(Array.isArray(s[r])){t.delete(r);for(const n of s[r])t.append(r,n)}else t.set(r,s[r]);e.search=t.toString()},Z=function(e,a,t){const s=typeof e!="string";return(s&&t&&t.isJsonMime?t.isJsonMime(a.headers["Content-Type"]):s)?JSON.stringify(e!==void 0?e:{}):e||""},D=function(e){return e.pathname+e.search+e.hash},B=function(e,a,t,s){return(r=a,n=t)=>{const o={...e.options,url:((s==null?void 0:s.basePath)||n)+e.url};return r.request(o)}},Mc=function(e){return{getCallRecordingsCountForCustomer:async(a,t={})=>{L("getCallRecordingsCountForCustomer","customerId",a);const s="/v1/customers/{customerId}/recordings/count".replace("{customerId}",encodeURIComponent(String(a))),r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await F(i,e),N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:D(r),options:o}},getCallRecordingsForCustomer:async(a,t,s={})=>{L("getCallRecordingsForCustomer","customerId",a),L("getCallRecordingsForCustomer","getCustomerSessionsPayload",t);const r="/v1/customers/{customerId}/recordings".replace("{customerId}",encodeURIComponent(String(a))),n=new URL(r,x);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...s},l={},c={};await F(l,e),l["Content-Type"]="application/json",N(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=Z(t,i,e),{url:D(n),options:i}},getCustomerDetails:async(a,t={})=>{L("getCustomerDetails","id",a);const s="/v1/customers/{id}/details".replace("{id}",encodeURIComponent(String(a))),r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await F(i,e),N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:D(r),options:o}},getSessionsCountForCustomer:async(a,t={})=>{L("getSessionsCountForCustomer","customerId",a);const s="/v1/customers/{customerId}/sessions/count".replace("{customerId}",encodeURIComponent(String(a))),r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await F(i,e),N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:D(r),options:o}},getSessionsForCustomer:async(a,t,s={})=>{L("getSessionsForCustomer","customerId",a),L("getSessionsForCustomer","getCustomerSessionsPayload",t);const r="/v1/customers/{customerId}/sessions".replace("{customerId}",encodeURIComponent(String(a))),n=new URL(r,x);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...s},l={},c={};await F(l,e),l["Content-Type"]="application/json",N(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=Z(t,i,e),{url:D(n),options:i}}}},At=function(e){const a=Mc(e);return{async getCallRecordingsCountForCustomer(t,s){const r=await a.getCallRecordingsCountForCustomer(t,s);return B(r,h,I,e)},async getCallRecordingsForCustomer(t,s,r){const n=await a.getCallRecordingsForCustomer(t,s,r);return B(n,h,I,e)},async getCustomerDetails(t,s){const r=await a.getCustomerDetails(t,s);return B(r,h,I,e)},async getSessionsCountForCustomer(t,s){const r=await a.getSessionsCountForCustomer(t,s);return B(r,h,I,e)},async getSessionsForCustomer(t,s,r){const n=await a.getSessionsForCustomer(t,s,r);return B(n,h,I,e)}}};class Hc extends je{getCallRecordingsCountForCustomer(a,t){return At(this.configuration).getCallRecordingsCountForCustomer(a,t).then(s=>s(this.axios,this.basePath))}getCallRecordingsForCustomer(a,t,s){return At(this.configuration).getCallRecordingsForCustomer(a,t,s).then(r=>r(this.axios,this.basePath))}getCustomerDetails(a,t){return At(this.configuration).getCustomerDetails(a,t).then(s=>s(this.axios,this.basePath))}getSessionsCountForCustomer(a,t){return At(this.configuration).getSessionsCountForCustomer(a,t).then(s=>s(this.axios,this.basePath))}getSessionsForCustomer(a,t,s){return At(this.configuration).getSessionsForCustomer(a,t,s).then(r=>r(this.axios,this.basePath))}}const Qc=function(e){return{setupOrganisation:async(a={})=>{const t="/v1/demo/setup-organisation",s=new URL(t,x);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...a},o={},i={};await F(o,e),N(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:D(s),options:n}}}},kc=function(e){const a=Qc(e);return{async setupOrganisation(t){const s=await a.setupOrganisation(t);return B(s,h,I,e)}}};class Gc extends je{setupOrganisation(a){return kc(this.configuration).setupOrganisation(a).then(t=>t(this.axios,this.basePath))}}const Wc=function(e){return{getDemoRelatedReplays:async(a,t,s={})=>{L("getDemoRelatedReplays","sessionId",a),L("getDemoRelatedReplays","getRelatedSessionsRequestPayloadDto",t);const r="/v1/demo-sessions/{sessionId}/related".replace("{sessionId}",encodeURIComponent(String(a))),n=new URL(r,x);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...s},l={},c={};await F(l,e),l["Content-Type"]="application/json",N(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=Z(t,i,e),{url:D(n),options:i}},getDemoSessionBounds:async(a,t={})=>{L("getDemoSessionBounds","sessionId",a);const s="/v1/demo-sessions/{sessionId}/bounds".replace("{sessionId}",encodeURIComponent(String(a))),r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await F(i,e),N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:D(r),options:o}},getDemoSessionById:async(a,t={})=>{L("getDemoSessionById","sessionId",a);const s="/v1/demo-sessions/{sessionId}".replace("{sessionId}",encodeURIComponent(String(a))),r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await F(i,e),N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:D(r),options:o}},getDemoSessionEvents:async(a,t,s={})=>{L("getDemoSessionEvents","sessionId",a),L("getDemoSessionEvents","getSessionEventsPayloadRequestDto",t);const r="/v1/demo-sessions/{sessionId}/events".replace("{sessionId}",encodeURIComponent(String(a))),n=new URL(r,x);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...s},l={},c={};await F(l,e),l["Content-Type"]="application/json",N(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=Z(t,i,e),{url:D(n),options:i}},getDemoSessionMetadata:async(a,t={})=>{L("getDemoSessionMetadata","sessionId",a);const s="/v1/demo-sessions/{sessionId}/metadata".replace("{sessionId}",encodeURIComponent(String(a))),r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await F(i,e),N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:D(r),options:o}},getDemoSessionSinkEvents:async(a,t={})=>{L("getDemoSessionSinkEvents","sessionId",a);const s="/v1/demo-sessions/{sessionId}/sink-events".replace("{sessionId}",encodeURIComponent(String(a))),r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await F(i,e),N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:D(r),options:o}},getDemoSessionTimelineDetails:async(a,t={})=>{L("getDemoSessionTimelineDetails","sessionId",a);const s="/v1/demo-sessions/{sessionId}/timeline".replace("{sessionId}",encodeURIComponent(String(a))),r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await F(i,e),N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:D(r),options:o}},getDemoSessions:async(a={})=>{const t="/v1/demo-sessions/byOrg",s=new URL(t,x);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...a},o={},i={};await F(o,e),N(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:D(s),options:n}},getDemoSharedWithUsers:async(a,t={})=>{L("getDemoSharedWithUsers","sessionId",a);const s="/v1/demo-sessions/{sessionId}/shared-with".replace("{sessionId}",encodeURIComponent(String(a))),r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await F(i,e),N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:D(r),options:o}},removeShareWithDemoSession:async(a,t,s={})=>{L("removeShareWithDemoSession","sessionId",a),L("removeShareWithDemoSession","sessionSharePayloadDto",t);const r="/v1/demo-sessions/{sessionId}/remove-share-with".replace("{sessionId}",encodeURIComponent(String(a))),n=new URL(r,x);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...s},l={},c={};await F(l,e),l["Content-Type"]="application/json",N(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=Z(t,i,e),{url:D(n),options:i}},shareDemoSession:async(a,t={})=>{L("shareDemoSession","sessionId",a);const s="/v1/demo-sessions/{sessionId}/share".replace("{sessionId}",encodeURIComponent(String(a))),r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await F(i,e),N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:D(r),options:o}},shareWithDemoSession:async(a,t,s={})=>{L("shareWithDemoSession","sessionId",a),L("shareWithDemoSession","sessionSharePayloadDto",t);const r="/v1/demo-sessions/{sessionId}/share-with".replace("{sessionId}",encodeURIComponent(String(a))),n=new URL(r,x);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...s},l={},c={};await F(l,e),l["Content-Type"]="application/json",N(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=Z(t,i,e),{url:D(n),options:i}},trySelfShareDemoSession:async(a,t={})=>{L("trySelfShareDemoSession","sessionId",a);const s="/v1/demo-sessions/{sessionId}/try-self-share".replace("{sessionId}",encodeURIComponent(String(a))),r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await F(i,e),N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:D(r),options:o}}}},Re=function(e){const a=Wc(e);return{async getDemoRelatedReplays(t,s,r){const n=await a.getDemoRelatedReplays(t,s,r);return B(n,h,I,e)},async getDemoSessionBounds(t,s){const r=await a.getDemoSessionBounds(t,s);return B(r,h,I,e)},async getDemoSessionById(t,s){const r=await a.getDemoSessionById(t,s);return B(r,h,I,e)},async getDemoSessionEvents(t,s,r){const n=await a.getDemoSessionEvents(t,s,r);return B(n,h,I,e)},async getDemoSessionMetadata(t,s){const r=await a.getDemoSessionMetadata(t,s);return B(r,h,I,e)},async getDemoSessionSinkEvents(t,s){const r=await a.getDemoSessionSinkEvents(t,s);return B(r,h,I,e)},async getDemoSessionTimelineDetails(t,s){const r=await a.getDemoSessionTimelineDetails(t,s);return B(r,h,I,e)},async getDemoSessions(t){const s=await a.getDemoSessions(t);return B(s,h,I,e)},async getDemoSharedWithUsers(t,s){const r=await a.getDemoSharedWithUsers(t,s);return B(r,h,I,e)},async removeShareWithDemoSession(t,s,r){const n=await a.removeShareWithDemoSession(t,s,r);return B(n,h,I,e)},async shareDemoSession(t,s){const r=await a.shareDemoSession(t,s);return B(r,h,I,e)},async shareWithDemoSession(t,s,r){const n=await a.shareWithDemoSession(t,s,r);return B(n,h,I,e)},async trySelfShareDemoSession(t,s){const r=await a.trySelfShareDemoSession(t,s);return B(r,h,I,e)}}};class Yc extends je{getDemoRelatedReplays(a,t,s){return Re(this.configuration).getDemoRelatedReplays(a,t,s).then(r=>r(this.axios,this.basePath))}getDemoSessionBounds(a,t){return Re(this.configuration).getDemoSessionBounds(a,t).then(s=>s(this.axios,this.basePath))}getDemoSessionById(a,t){return Re(this.configuration).getDemoSessionById(a,t).then(s=>s(this.axios,this.basePath))}getDemoSessionEvents(a,t,s){return Re(this.configuration).getDemoSessionEvents(a,t,s).then(r=>r(this.axios,this.basePath))}getDemoSessionMetadata(a,t){return Re(this.configuration).getDemoSessionMetadata(a,t).then(s=>s(this.axios,this.basePath))}getDemoSessionSinkEvents(a,t){return Re(this.configuration).getDemoSessionSinkEvents(a,t).then(s=>s(this.axios,this.basePath))}getDemoSessionTimelineDetails(a,t){return Re(this.configuration).getDemoSessionTimelineDetails(a,t).then(s=>s(this.axios,this.basePath))}getDemoSessions(a){return Re(this.configuration).getDemoSessions(a).then(t=>t(this.axios,this.basePath))}getDemoSharedWithUsers(a,t){return Re(this.configuration).getDemoSharedWithUsers(a,t).then(s=>s(this.axios,this.basePath))}removeShareWithDemoSession(a,t,s){return Re(this.configuration).removeShareWithDemoSession(a,t,s).then(r=>r(this.axios,this.basePath))}shareDemoSession(a,t){return Re(this.configuration).shareDemoSession(a,t).then(s=>s(this.axios,this.basePath))}shareWithDemoSession(a,t,s){return Re(this.configuration).shareWithDemoSession(a,t,s).then(r=>r(this.axios,this.basePath))}trySelfShareDemoSession(a,t){return Re(this.configuration).trySelfShareDemoSession(a,t).then(s=>s(this.axios,this.basePath))}}const zc=function(e){return{createOrganisation:async(a,t={})=>{L("createOrganisation","organisationCreatePayloadDto",a);const s="/v1/organisations/create",r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await F(i,e),i["Content-Type"]="application/json",N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=Z(a,o,e),{url:D(r),options:o}},getClickedElementSuggestions:async(a,t={})=>{L("getClickedElementSuggestions","input",a);const s="/v1/organisations/clicked-elements",r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await F(i,e),a!==void 0&&(l.input=a),N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:D(r),options:o}},getContentMaskingConfig:async(a={})=>{const t="/v1/organisations/config/screen-recording/content-masking",s=new URL(t,x);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...a},o={},i={};await F(o,e),N(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:D(s),options:n}},getJoinOrganisationList:async(a={})=>{const t="/v1/organisations/join-organisation-list",s=new URL(t,x);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...a},o={},i={};await F(o,e),N(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:D(s),options:n}},getJoinReasonRequired:async(a,t={})=>{L("getJoinReasonRequired","organisationName",a);const s="/v1/organisations/join-reason-required",r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await F(i,e),a!==void 0&&(l.organisationName=a),N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:D(r),options:o}},getOrganisation:async(a={})=>{const t="/v1/organisations/data",s=new URL(t,x);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...a},o={},i={};await F(o,e),N(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:D(s),options:n}},getOrganisationAccessRequestsCount:async(a={})=>{const t="/v1/organisations/access-requests-count",s=new URL(t,x);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...a},o={},i={};await F(o,e),N(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:D(s),options:n}},getOrganisationSetupStatus:async(a={})=>{const t="/v1/organisations/status",s=new URL(t,x);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...a},o={},i={};await F(o,e),N(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:D(s),options:n}},getVisitedPageSuggestions:async(a,t={})=>{L("getVisitedPageSuggestions","input",a);const s="/v1/organisations/visited-pages",r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await F(i,e),a!==void 0&&(l.input=a),N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:D(r),options:o}},listUsers:async(a,t={})=>{L("listUsers","getPaginatedOrganisationUsersRequestDto",a);const s="/v1/organisations/users",r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await F(i,e),i["Content-Type"]="application/json",N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=Z(a,o,e),{url:D(r),options:o}},requestAccessToOrganisation:async(a,t={})=>{L("requestAccessToOrganisation","requestAccessToOrganisationPayloadDto",a);const s="/v1/organisations/request-access",r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await F(i,e),i["Content-Type"]="application/json",N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=Z(a,o,e),{url:D(r),options:o}},requestEnterprisePlan:async(a={})=>{const t="/v1/organisations/enterprise-plan",s=new URL(t,x);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...a},o={},i={};await F(o,e),N(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:D(s),options:n}},resetContentMaskingConfig:async(a={})=>{const t="/v1/organisations/config/screen-recording/content-masking/reset",s=new URL(t,x);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...a},o={},i={};await F(o,e),N(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:D(s),options:n}},updateContentMaskingConfig:async(a,t={})=>{L("updateContentMaskingConfig","organisationUpdateContentMaskingConfigDto",a);const s="/v1/organisations/config/screen-recording/content-masking",r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await F(i,e),i["Content-Type"]="application/json",N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=Z(a,o,e),{url:D(r),options:o}},updateGettingStartedOrganisationSettings:async(a,t={})=>{L("updateGettingStartedOrganisationSettings","gettingStartedSettingsConfigurationDto",a);const s="/v1/organisations/getting-started-setup",r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await F(i,e),i["Content-Type"]="application/json",N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=Z(a,o,e),{url:D(r),options:o}}}},de=function(e){const a=zc(e);return{async createOrganisation(t,s){const r=await a.createOrganisation(t,s);return B(r,h,I,e)},async getClickedElementSuggestions(t,s){const r=await a.getClickedElementSuggestions(t,s);return B(r,h,I,e)},async getContentMaskingConfig(t){const s=await a.getContentMaskingConfig(t);return B(s,h,I,e)},async getJoinOrganisationList(t){const s=await a.getJoinOrganisationList(t);return B(s,h,I,e)},async getJoinReasonRequired(t,s){const r=await a.getJoinReasonRequired(t,s);return B(r,h,I,e)},async getOrganisation(t){const s=await a.getOrganisation(t);return B(s,h,I,e)},async getOrganisationAccessRequestsCount(t){const s=await a.getOrganisationAccessRequestsCount(t);return B(s,h,I,e)},async getOrganisationSetupStatus(t){const s=await a.getOrganisationSetupStatus(t);return B(s,h,I,e)},async getVisitedPageSuggestions(t,s){const r=await a.getVisitedPageSuggestions(t,s);return B(r,h,I,e)},async listUsers(t,s){const r=await a.listUsers(t,s);return B(r,h,I,e)},async requestAccessToOrganisation(t,s){const r=await a.requestAccessToOrganisation(t,s);return B(r,h,I,e)},async requestEnterprisePlan(t){const s=await a.requestEnterprisePlan(t);return B(s,h,I,e)},async resetContentMaskingConfig(t){const s=await a.resetContentMaskingConfig(t);return B(s,h,I,e)},async updateContentMaskingConfig(t,s){const r=await a.updateContentMaskingConfig(t,s);return B(r,h,I,e)},async updateGettingStartedOrganisationSettings(t,s){const r=await a.updateGettingStartedOrganisationSettings(t,s);return B(r,h,I,e)}}};class Jc extends je{createOrganisation(a,t){return de(this.configuration).createOrganisation(a,t).then(s=>s(this.axios,this.basePath))}getClickedElementSuggestions(a,t){return de(this.configuration).getClickedElementSuggestions(a,t).then(s=>s(this.axios,this.basePath))}getContentMaskingConfig(a){return de(this.configuration).getContentMaskingConfig(a).then(t=>t(this.axios,this.basePath))}getJoinOrganisationList(a){return de(this.configuration).getJoinOrganisationList(a).then(t=>t(this.axios,this.basePath))}getJoinReasonRequired(a,t){return de(this.configuration).getJoinReasonRequired(a,t).then(s=>s(this.axios,this.basePath))}getOrganisation(a){return de(this.configuration).getOrganisation(a).then(t=>t(this.axios,this.basePath))}getOrganisationAccessRequestsCount(a){return de(this.configuration).getOrganisationAccessRequestsCount(a).then(t=>t(this.axios,this.basePath))}getOrganisationSetupStatus(a){return de(this.configuration).getOrganisationSetupStatus(a).then(t=>t(this.axios,this.basePath))}getVisitedPageSuggestions(a,t){return de(this.configuration).getVisitedPageSuggestions(a,t).then(s=>s(this.axios,this.basePath))}listUsers(a,t){return de(this.configuration).listUsers(a,t).then(s=>s(this.axios,this.basePath))}requestAccessToOrganisation(a,t){return de(this.configuration).requestAccessToOrganisation(a,t).then(s=>s(this.axios,this.basePath))}requestEnterprisePlan(a){return de(this.configuration).requestEnterprisePlan(a).then(t=>t(this.axios,this.basePath))}resetContentMaskingConfig(a){return de(this.configuration).resetContentMaskingConfig(a).then(t=>t(this.axios,this.basePath))}updateContentMaskingConfig(a,t){return de(this.configuration).updateContentMaskingConfig(a,t).then(s=>s(this.axios,this.basePath))}updateGettingStartedOrganisationSettings(a,t){return de(this.configuration).updateGettingStartedOrganisationSettings(a,t).then(s=>s(this.axios,this.basePath))}}const Xc=function(e){return{exampleRoute:async(a={})=>{const t="/v1/sessions/example-route",s=new URL(t,x);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...a},o={},i={};await F(o,e),N(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:D(s),options:n}},getCoBrowseRecordings:async(a,t={})=>{L("getCoBrowseRecordings","getCobrowseRecordingsRequestPayloadDto",a);const s="/v1/sessions/cobrowse-recordings",r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await F(i,e),i["Content-Type"]="application/json",N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=Z(a,o,e),{url:D(r),options:o}},getCobrowseRecordingsSink:async(a,t={})=>{L("getCobrowseRecordingsSink","callId",a);const s="/v1/sessions/cobrowse-recordings/{callId}/sink".replace("{callId}",encodeURIComponent(String(a))),r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await F(i,e),N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:D(r),options:o}},getRelatedReplays:async(a,t,s={})=>{L("getRelatedReplays","sessionId",a),L("getRelatedReplays","getRelatedSessionsRequestPayloadDto",t);const r="/v1/sessions/{sessionId}/related".replace("{sessionId}",encodeURIComponent(String(a))),n=new URL(r,x);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...s},l={},c={};await F(l,e),l["Content-Type"]="application/json",N(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=Z(t,i,e),{url:D(n),options:i}},getSessionBounds:async(a,t={})=>{L("getSessionBounds","sessionId",a);const s="/v1/sessions/{sessionId}/bounds".replace("{sessionId}",encodeURIComponent(String(a))),r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await F(i,e),N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:D(r),options:o}},getSessionById:async(a,t={})=>{L("getSessionById","sessionId",a);const s="/v1/sessions/{sessionId}".replace("{sessionId}",encodeURIComponent(String(a))),r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await F(i,e),N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:D(r),options:o}},getSessionEvents:async(a,t,s={})=>{L("getSessionEvents","sessionId",a),L("getSessionEvents","getSessionEventsPayloadRequestDto",t);const r="/v1/sessions/{sessionId}/events".replace("{sessionId}",encodeURIComponent(String(a))),n=new URL(r,x);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...s},l={},c={};await F(l,e),l["Content-Type"]="application/json",N(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=Z(t,i,e),{url:D(n),options:i}},getSessionMetadata:async(a,t={})=>{L("getSessionMetadata","sessionId",a);const s="/v1/sessions/{sessionId}/metadata".replace("{sessionId}",encodeURIComponent(String(a))),r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await F(i,e),N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:D(r),options:o}},getSessionSinkEvents:async(a,t={})=>{L("getSessionSinkEvents","sessionId",a);const s="/v1/sessions/{sessionId}/sink-events".replace("{sessionId}",encodeURIComponent(String(a))),r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await F(i,e),N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:D(r),options:o}},getSessionTimelineDetails:async(a,t={})=>{L("getSessionTimelineDetails","sessionId",a);const s="/v1/sessions/{sessionId}/timeline".replace("{sessionId}",encodeURIComponent(String(a))),r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await F(i,e),N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:D(r),options:o}},getSessions:async(a,t={})=>{L("getSessions","getSessionsByOrgRequestPayloadDto",a);const s="/v1/sessions/byOrg",r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await F(i,e),i["Content-Type"]="application/json",N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=Z(a,o,e),{url:D(r),options:o}},getSharedWithUsers:async(a,t={})=>{L("getSharedWithUsers","sessionId",a);const s="/v1/sessions/{sessionId}/shared-with".replace("{sessionId}",encodeURIComponent(String(a))),r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await F(i,e),N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:D(r),options:o}},removeShareWithSession:async(a,t,s={})=>{L("removeShareWithSession","sessionId",a),L("removeShareWithSession","sessionSharePayloadDto",t);const r="/v1/sessions/{sessionId}/remove-share-with".replace("{sessionId}",encodeURIComponent(String(a))),n=new URL(r,x);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...s},l={},c={};await F(l,e),l["Content-Type"]="application/json",N(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=Z(t,i,e),{url:D(n),options:i}},shareSession:async(a,t={})=>{L("shareSession","sessionId",a);const s="/v1/sessions/{sessionId}/share".replace("{sessionId}",encodeURIComponent(String(a))),r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await F(i,e),N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:D(r),options:o}},shareWithSession:async(a,t,s={})=>{L("shareWithSession","sessionId",a),L("shareWithSession","sessionSharePayloadDto",t);const r="/v1/sessions/{sessionId}/share-with".replace("{sessionId}",encodeURIComponent(String(a))),n=new URL(r,x);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...s},l={},c={};await F(l,e),l["Content-Type"]="application/json",N(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=Z(t,i,e),{url:D(n),options:i}},trySelfShareSession:async(a,t={})=>{L("trySelfShareSession","sessionId",a);const s="/v1/sessions/{sessionId}/try-self-share".replace("{sessionId}",encodeURIComponent(String(a))),r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},i={},l={};await F(i,e),N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:D(r),options:o}}}},ne=function(e){const a=Xc(e);return{async exampleRoute(t){const s=await a.exampleRoute(t);return B(s,h,I,e)},async getCoBrowseRecordings(t,s){const r=await a.getCoBrowseRecordings(t,s);return B(r,h,I,e)},async getCobrowseRecordingsSink(t,s){const r=await a.getCobrowseRecordingsSink(t,s);return B(r,h,I,e)},async getRelatedReplays(t,s,r){const n=await a.getRelatedReplays(t,s,r);return B(n,h,I,e)},async getSessionBounds(t,s){const r=await a.getSessionBounds(t,s);return B(r,h,I,e)},async getSessionById(t,s){const r=await a.getSessionById(t,s);return B(r,h,I,e)},async getSessionEvents(t,s,r){const n=await a.getSessionEvents(t,s,r);return B(n,h,I,e)},async getSessionMetadata(t,s){const r=await a.getSessionMetadata(t,s);return B(r,h,I,e)},async getSessionSinkEvents(t,s){const r=await a.getSessionSinkEvents(t,s);return B(r,h,I,e)},async getSessionTimelineDetails(t,s){const r=await a.getSessionTimelineDetails(t,s);return B(r,h,I,e)},async getSessions(t,s){const r=await a.getSessions(t,s);return B(r,h,I,e)},async getSharedWithUsers(t,s){const r=await a.getSharedWithUsers(t,s);return B(r,h,I,e)},async removeShareWithSession(t,s,r){const n=await a.removeShareWithSession(t,s,r);return B(n,h,I,e)},async shareSession(t,s){const r=await a.shareSession(t,s);return B(r,h,I,e)},async shareWithSession(t,s,r){const n=await a.shareWithSession(t,s,r);return B(n,h,I,e)},async trySelfShareSession(t,s){const r=await a.trySelfShareSession(t,s);return B(r,h,I,e)}}};class Kc extends je{exampleRoute(a){return ne(this.configuration).exampleRoute(a).then(t=>t(this.axios,this.basePath))}getCoBrowseRecordings(a,t){return ne(this.configuration).getCoBrowseRecordings(a,t).then(s=>s(this.axios,this.basePath))}getCobrowseRecordingsSink(a,t){return ne(this.configuration).getCobrowseRecordingsSink(a,t).then(s=>s(this.axios,this.basePath))}getRelatedReplays(a,t,s){return ne(this.configuration).getRelatedReplays(a,t,s).then(r=>r(this.axios,this.basePath))}getSessionBounds(a,t){return ne(this.configuration).getSessionBounds(a,t).then(s=>s(this.axios,this.basePath))}getSessionById(a,t){return ne(this.configuration).getSessionById(a,t).then(s=>s(this.axios,this.basePath))}getSessionEvents(a,t,s){return ne(this.configuration).getSessionEvents(a,t,s).then(r=>r(this.axios,this.basePath))}getSessionMetadata(a,t){return ne(this.configuration).getSessionMetadata(a,t).then(s=>s(this.axios,this.basePath))}getSessionSinkEvents(a,t){return ne(this.configuration).getSessionSinkEvents(a,t).then(s=>s(this.axios,this.basePath))}getSessionTimelineDetails(a,t){return ne(this.configuration).getSessionTimelineDetails(a,t).then(s=>s(this.axios,this.basePath))}getSessions(a,t){return ne(this.configuration).getSessions(a,t).then(s=>s(this.axios,this.basePath))}getSharedWithUsers(a,t){return ne(this.configuration).getSharedWithUsers(a,t).then(s=>s(this.axios,this.basePath))}removeShareWithSession(a,t,s){return ne(this.configuration).removeShareWithSession(a,t,s).then(r=>r(this.axios,this.basePath))}shareSession(a,t){return ne(this.configuration).shareSession(a,t).then(s=>s(this.axios,this.basePath))}shareWithSession(a,t,s){return ne(this.configuration).shareWithSession(a,t,s).then(r=>r(this.axios,this.basePath))}trySelfShareSession(a,t){return ne(this.configuration).trySelfShareSession(a,t).then(s=>s(this.axios,this.basePath))}}const Zc=function(e){return{composeOrganisationStats:async(a,t={})=>{L("composeOrganisationStats","superAdminOrganisationStatsRequestDto",a);const s="/v1/super-admin/compose-organisation-stats",r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await F(i,e),i["Content-Type"]="application/json",N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=Z(a,o,e),{url:D(r),options:o}},downloadSessionEvents:async(a,t={})=>{L("downloadSessionEvents","downloadSessionEventsPayloadDto",a);const s="/v1/super-admin/download-session-events",r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await F(i,e),i["Content-Type"]="application/json",N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=Z(a,o,e),{url:D(r),options:o}},listOrganisations:async(a,t={})=>{L("listOrganisations","getPaginatedOrganisationsRequestDto",a);const s="/v1/super-admin/list-organisations",r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await F(i,e),i["Content-Type"]="application/json",N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=Z(a,o,e),{url:D(r),options:o}},listUsersWithOrganisationId:async(a,t={})=>{L("listUsersWithOrganisationId","getPaginatedUsersRequestDto",a);const s="/v1/super-admin/list-users",r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await F(i,e),i["Content-Type"]="application/json",N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=Z(a,o,e),{url:D(r),options:o}},softDeleteUser:async(a,t={})=>{L("softDeleteUser","softDeleteUserPayloadDto",a);const s="/v1/super-admin/soft-delete-user",r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await F(i,e),i["Content-Type"]="application/json",N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=Z(a,o,e),{url:D(r),options:o}}}},Et=function(e){const a=Zc(e);return{async composeOrganisationStats(t,s){const r=await a.composeOrganisationStats(t,s);return B(r,h,I,e)},async downloadSessionEvents(t,s){const r=await a.downloadSessionEvents(t,s);return B(r,h,I,e)},async listOrganisations(t,s){const r=await a.listOrganisations(t,s);return B(r,h,I,e)},async listUsersWithOrganisationId(t,s){const r=await a.listUsersWithOrganisationId(t,s);return B(r,h,I,e)},async softDeleteUser(t,s){const r=await a.softDeleteUser(t,s);return B(r,h,I,e)}}};class eh extends je{composeOrganisationStats(a,t){return Et(this.configuration).composeOrganisationStats(a,t).then(s=>s(this.axios,this.basePath))}downloadSessionEvents(a,t){return Et(this.configuration).downloadSessionEvents(a,t).then(s=>s(this.axios,this.basePath))}listOrganisations(a,t){return Et(this.configuration).listOrganisations(a,t).then(s=>s(this.axios,this.basePath))}listUsersWithOrganisationId(a,t){return Et(this.configuration).listUsersWithOrganisationId(a,t).then(s=>s(this.axios,this.basePath))}softDeleteUser(a,t){return Et(this.configuration).softDeleteUser(a,t).then(s=>s(this.axios,this.basePath))}}const th=function(e){return{createView:async(a,t={})=>{L("createView","createUserViewPayloadDto",a);const s="/v1/user-views/create",r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await F(i,e),i["Content-Type"]="application/json",N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=Z(a,o,e),{url:D(r),options:o}},deleteUserView:async(a,t={})=>{L("deleteUserView","viewId",a);const s="/v1/user-views/{viewId}/delete".replace("{viewId}",encodeURIComponent(String(a))),r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await F(i,e),N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:D(r),options:o}},getInMemoryUserView:async(a,t={})=>{L("getInMemoryUserView","userViewTypePayloadDto",a);const s="/v1/user-views/in-memory",r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await F(i,e),i["Content-Type"]="application/json",N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=Z(a,o,e),{url:D(r),options:o}},getUserView:async(a,t={})=>{L("getUserView","viewId",a);const s="/v1/user-views/{viewId}".replace("{viewId}",encodeURIComponent(String(a))),r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await F(i,e),N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},{url:D(r),options:o}},getUserViews:async(a,t={})=>{L("getUserViews","userViewTypePayloadDto",a);const s="/v1/user-views/views",r=new URL(s,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...t},i={},l={};await F(i,e),i["Content-Type"]="application/json",N(r,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...t.headers},o.data=Z(a,o,e),{url:D(r),options:o}},updateUserView:async(a,t,s={})=>{L("updateUserView","viewId",a),L("updateUserView","updateUserViewPayloadDto",t);const r="/v1/user-views/{viewId}/update".replace("{viewId}",encodeURIComponent(String(a))),n=new URL(r,x);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...s},l={},c={};await F(l,e),l["Content-Type"]="application/json",N(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...s.headers},i.data=Z(t,i,e),{url:D(n),options:i}}}},it=function(e){const a=th(e);return{async createView(t,s){const r=await a.createView(t,s);return B(r,h,I,e)},async deleteUserView(t,s){const r=await a.deleteUserView(t,s);return B(r,h,I,e)},async getInMemoryUserView(t,s){const r=await a.getInMemoryUserView(t,s);return B(r,h,I,e)},async getUserView(t,s){const r=await a.getUserView(t,s);return B(r,h,I,e)},async getUserViews(t,s){const r=await a.getUserViews(t,s);return B(r,h,I,e)},async updateUserView(t,s,r){const n=await a.updateUserView(t,s,r);return B(n,h,I,e)}}};class ah extends je{createView(a,t){return it(this.configuration).createView(a,t).then(s=>s(this.axios,this.basePath))}deleteUserView(a,t){return it(this.configuration).deleteUserView(a,t).then(s=>s(this.axios,this.basePath))}getInMemoryUserView(a,t){return it(this.configuration).getInMemoryUserView(a,t).then(s=>s(this.axios,this.basePath))}getUserView(a,t){return it(this.configuration).getUserView(a,t).then(s=>s(this.axios,this.basePath))}getUserViews(a,t){return it(this.configuration).getUserViews(a,t).then(s=>s(this.axios,this.basePath))}updateUserView(a,t,s){return it(this.configuration).updateUserView(a,t,s).then(r=>r(this.axios,this.basePath))}}const sh=function(e){return{loggedInUserDetails:async(a={})=>{const t="/v1/users/me",s=new URL(t,x);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...a},o={},i={};await F(o,e),N(s,i);let l=r&&r.headers?r.headers:{};return n.headers={...o,...l,...a.headers},{url:D(s),options:n}}}},rh=function(e){const a=sh(e);return{async loggedInUserDetails(t){const s=await a.loggedInUserDetails(t);return B(s,h,I,e)}}};class nh extends je{loggedInUserDetails(a){return rh(this.configuration).loggedInUserDetails(a).then(t=>t(this.axios,this.basePath))}}function lt(){const e=h.create();return e.interceptors.request.use(a=>ih({config:a})),e.interceptors.response.use(jr,a=>Promise.reject(jr(a))),e}const jr=e=>(delete e.config.headers,e);Te.http,ps.http,us.http,Tt.http,fe.http,me.http,po.http;const qr={get axios(){return M.get("axios",lt)},get axiosForAuth(){return M.get("axiosForAuth",lt)},get axiosForCoBrowseAuth(){return M.get("axiosForCoBrowseAuth",lt)},get axiosForMeetingAuth(){return M.get("axiosForMeetingAuth",lt)},get axiosForVisitorAuth(){return M.get("axiosForVisitorAuth",lt)},get axiosForAiAgentTraining(){return M.get("axiosForAiAgentTraining",lt)},get nexusSessionApi(){return M.get("nexusSessionApi",()=>new Kc(void 0,Te.http.url,this.axios))},get nexusDemoSessionApi(){return M.get("nexusDemoSessionApi",()=>new Yc(void 0,Te.http.url,this.axios))},get nexusOrgApi(){return M.get("nexusOrgApi",()=>new Jc(void 0,Te.http.url,this.axios))},get nexusCustomerApi(){return M.get("nexusCustomerApi",()=>new Hc(void 0,Te.http.url,this.axios))},get nexusUserApi(){return M.get("nexusUserApi",()=>new nh(void 0,Te.http.url,this.axios))},get nexusUserViewsApi(){return M.get("nexusUserViewsApi",()=>new ah(void 0,Te.http.url,this.axios))},get nexusSuperAdminApi(){return M.get("nexusSuperAdminApi",()=>new eh(void 0,Te.http.url,this.axios))},get nexusDemoApi(){return M.get("nexusDemoApi",()=>new Gc(void 0,Te.http.url,this.axios))},get citadelAuthorizationApi(){return M.get("citadelAuthorizationApi",()=>new oc(void 0,fe.http.url,this.axios))},get citadelAccountApi(){return M.get("citadelAccountApi",()=>new sc(void 0,fe.http.url,this.axios))},get citadelOAuthApi(){return M.get("citadelOAuthApi",()=>new lc(void 0,fe.http.url,this.axios))},get citadelRolesApi(){return M.get("citadelRolesApi",()=>new uc(void 0,fe.http.url,this.axios))},get citadelOrgApi(){return M.get("citadelOrgApi",()=>new hc(void 0,fe.http.url,this.axios))},get citadelUser(){return M.get("citadelUser",()=>new wc(void 0,fe.http.url,this.axios))},get citadelSsoConfigurationApi(){return M.get("citadelSSOConfigurationApi",()=>new Oc(void 0,fe.http.url,this.axios))},get connect(){return M.get("connect",()=>new Tc(void 0,us.http.url,this.axios))},get integrations(){return M.get("integrations",()=>new qc(void 0,ps.http.url,this.axios))},get citadelSuperAdminOrgApi(){return M.get("citadelSuperAdminOrgApi",()=>new Pc(void 0,fe.http.url,this.axios))},get citadelSuperAdminUserApi(){return M.get("citadelSuperAdminUserApi",()=>new fc(void 0,fe.http.url,this.axios))},get citadelSuperAdminRoleApi(){return M.get("citadelSuperAdminRoleApi",()=>new Ac(void 0,fe.http.url,this.axios))},get accessVisitor(){return M.get("accessVisitor",()=>new Wl(void 0,me.http.url,this.axiosForVisitorAuth))},get accessCoBrowse(){return M.get("accessCoBrowse",()=>new Sl(void 0,me.http.url,this.axiosForAuth))},get accessCustomer(){return M.get("accessCustomer",()=>new Il(void 0,me.http.url,this.axiosForAuth))},get accessCoBrowseWindow(){return M.get("accessCoBrowseWindow",()=>new Tl(void 0,me.http.url,this.axiosForAuth))},get accessSuperAdmin(){return M.get("accessSuperAdmin",()=>new Hl(void 0,me.http.url,this.axiosForAuth))},get accessAgent(){return M.get("accessAgent",()=>new Vl(void 0,me.http.url,this.axiosForAuth))},get ui(){return M.get("ui",()=>new kl(void 0,me.http.url,this.axiosForAuth))},get organisation(){return M.get("organisation",()=>new ql(void 0,me.http.url,this.axiosForAuth))},get flag(){return M.get("flag",()=>new Fl(void 0,me.http.url,this.axiosForAuth))},get metric(){return M.get("metric",()=>new Bl(void 0,me.http.url,this.axiosForAuth))},get agentMeeting(){return M.get("agentMeeting",()=>new bl(void 0,me.http.url,this.axiosForMeetingAuth))},get customerMeetingWindow(){return M.get("customerMeetingWindow",()=>new _l(void 0,me.http.url,this.axiosForAuth))},get aiAgent(){return M.get("aiAgent",()=>new Kl(void 0,Tt.http.url,this.axiosForAuth))},get aiAgentTraining(){return M.get("aiAgentTraining",()=>new ec(void 0,Tt.http.url,this.axiosForAiAgentTraining))},get aiLibrary(){return M.get("aiLibrary",()=>new Jl(void 0,Tt.http.url,this.axiosForAuth))}};var $r;(function(e){e.Good="good",e.Bad="bad"})($r||($r={}));var Mr;(function(e){e.INCREMENT="increment",e.DECREMENT="decrement"})(Mr||(Mr={}));var Hr;(function(e){e.USERS="users",e.REPLAYS="replays",e.REPLAYS_TOTAL_WITH_INVALID="replays_total_with_invalid",e.REPLAYS_WATCHED="replays_watched",e.CUSTOMER_VALID_REPLAYS="customer_valid_replays",e.CUSTOMER_INVALID_REPLAYS="customer_invalid_replays",e.UNDEFINED="undefined"})(Hr||(Hr={}));var Qr;(function(e){e.Presence="presence",e.Replays="replays",e.Generic="generic"})(Qr||(Qr={}));var kr;(function(e){e.ONLINE="0_ONLINE",e.IDLE="1_IDLE",e.OFFLINE="2_OFFLINE"})(kr||(kr={}));var Gr;(function(e){e.SessionReplay="customer-session-replay"})(Gr||(Gr={}));var Wr;(function(e){e.SIGNUP="SIGNUP",e.WEEKLY_REPORT="WEEKLY_REPORT",e.RECOVER_ACCOUNT="RECOVER_ACCOUNT",e.INVITE_USER="INVITE_USER",e.REQUEST_ACCESS="REQUEST_ACCESS",e.SETUP_FULLVIEW="SETUP_FULLVIEW",e.ACCEPT_REQUEST_ACCESS="ACCEPT_REQUEST_ACCESS",e.ACCEPT_INVITATION="ACCEPT_INVITATION",e.ENTERPRISE_PLAN_REQUEST="ENTERPRISE_PLAN_REQUEST",e.SESSION_REPLAY_ACCESS_REQUEST="SESSION_REPLAY_ACCESS_REQUEST",e.SESSION_REPLAY_UPGRADE_REQUEST="SESSION_REPLAY_UPGRADE_REQUEST",e.RECORDED_REPLAYS_THRESHOLD_REACHED="RECORDED_REPLAYS_THRESHOLD_REACHED",e.SESSION_REPLAY_SHARED="SESSION_REPLAY_SHARED",e.USER_ROLE_CHANGED="USER_ROLE_CHANGED",e.BUG_REPORTED="BUG_REPORTED",e.TRIAL_REMINDER_5_DAYS_LEFT="TRIAL_REMINDER_5_DAYS_LEFT",e.TRIAL_REMINDER_2_DAYS_LEFT="TRIAL_REMINDER_2_DAYS_LEFT",e.CO_BROWSE_EMAIL="CO_BROWSE_EMAIL",e.CO_BROWSE_REQUESTED="CO_BROWSE_REQUESTED",e.CUSTOMER_CO_BROWSE_NOTIFICATION="CUSTOMER_CO_BROWSE_NOTIFICATION"})(Wr||(Wr={}));var Yr;(function(e){e.AWS_EVENTS="aws.events",e.FV_EVENT="fv.event"})(Yr||(Yr={}));var zr;(function(e){e.FV_WS_MESSAGE="fv.ws-message",e.FV_SEND_EMAIL="fv.send-email",e.FV_WS_SESSION_LINK_IDENTITY="fv.ws-session-link-identity",e.FV_CUSTOMER_IDENTITY="fv.customer-identity",e.FV_SYNC_ROLES="fv.sync-roles",e.FV_USER_SIGNED_UP="fv.user-signed-up",e.FV_USER_SIGNED_IN="fv.user-signed-in",e.FV_SCRIPT_INJECTED="fv.script-injected",e.FV_SCRIPT_INSTALLED="fv.script-installed",e.FV_API_INTEGRATED="fv.api-integrated",e.FV_CALL_CREATED="fv.call-created",e.FV_CALL_DENIED="fv.call-denied",e.FV_CALL_ENDED="fv.call-ended",e.FV_CALL_IGNORED="fv.call-ignored",e.FV_FIRST_CALL_CREATED="fv.first-call-created",e.FV_USER_FORCE_CHANGED_PASSWORD="fv.user-force-changed-password",e.FV_WS_BROADCAST_MESSAGE="fv.ws-broadcast-message",e.FV_USER_UPDATE="fv.user-update",e.FV_ACCEPT_INVITATION="fv.accept-invitation",e.FV_SESSION_REPLAY_METRIC="fv.session-replay-metric",e.FV_FIRST_WATCHED_SESSION_REPLAY="fv.first-watched-session-replay",e.FV_VALID_SESSION_REPLAY_PROCESSED="fv.valid-session-replay-processed",e.FV_ADMIN_ACCEPTED_ACCESS_REQUEST="fv.admin-accepted-access-request",e.FV_ORGANISATION_CREATED="fv.organisation-created",e.FV_WORKSPACE_ACTIVATED="fv.workspace-activated",e.FV_INBOUND_REQUEST="fv.inbound-request",e.FV_REPLAY_SHARED="fv.replay-shared",e.FV_INTEGRATION_AUTHORIZED="fv.integration-authorized",e.FV_COBROWSE_REQUESTED="fv.cobrowse-requested",e.FV_TRANSCRIPT_CREATED="fv.transcript-created",e.FV_COBROWSE_ACCEPTED="fv.cobrowse-accepted"})(zr||(zr={}));var Jr;(function(e){e.SessionReplay_Data="fv-session-replay-data",e.SessionReplay_EnrichedData="fv-session-replay-enriched-data",e.SessionReplay_SessionCreated="fv-session-replay-created",e.SessionReplay_SessionMerged="fv-session-replay-merged",e.SessionReplay_SessionFinished="fv-session-replay-aggregates",e.SessionReplay_SessionPersisted="fv-session-replay-persisted",e.SessionReplay_ThresholdLimitReached="fv-session-replay-threshold-limit-reached",e.Customer_Activity="fv-customer-activity",e.Customer_Activity_Throttled="fv-customer-activity-throttled",e.Customer_Join_Room="fv-customer-join-room",e.Customer_Replay_Updates="fv-customer-replay-updates",e.SessionReplay_Events="fv-replay-events",e.SessionReplay_EnrichedEvents="fv-replay-events-enriched",e.Counts="fv-counts",e.Counts_Throttled="fv-counts-throttled",e.Interim_Events="fv-replay-interim-events",e.Organisation_Notifications="fv-organisation-notifications",e.Configs_Updated="fv-configs-updated",e.Auditor="fv-auditor"})(Jr||(Jr={}));var Xr;(function(e){e.SINGLE_FIELD="SINGLE_FIELD",e.DATE="DATE",e.RANGE="RANGE",e.RANGE_DATE="RANGE_DATE",e.TRUTHY="TRUTHY"})(Xr||(Xr={}));var Kr;(function(e){e.TICKET_CREATED="TICKET_CREATED"})(Kr||(Kr={}));var Zr;(function(e){e.INTERCOM="intercom",e.ZENDESK="zendesk",e.SALESFORCE="salesforce",e.HUBSPOT="hubspot"})(Zr||(Zr={}));var en;(function(e){e.ACCEPT_INVITATION="ACCEPT_INVITATION"})(en||(en={}));var tn;(function(e){e[e.Unspecified=0]="Unspecified",e[e.Count=1]="Count",e[e.Rate=2]="Rate",e[e.Gauge=3]="Gauge"})(tn||(tn={}));var an;(function(e){e.Weekly="weekly"})(an||(an={}));var sn;(function(e){e.ADMIN="admin",e.USER="user",e.SYSTEM_USERS="system-users",e.SUPER_ADMIN="super-admin"})(sn||(sn={}));var rn;(function(e){e.ASSIGN_ROLE="ASSIGN_ROLE",e.REMOVE_ROLE="REMOVE_ROLE"})(rn||(rn={}));var nn;(function(e){e.WATCHED_REPLAY="WATCHED_REPLAY"})(nn||(nn={}));var on;(function(e){e.sdk="sdk",e.dashboard="dashboard",e.callWindow="call-window"})(on||(on={}));var ln;(function(e){e.REQUESTED="0_REQUESTED",e.INVITED="1_INVITED",e.ACTIVE="2_ACTIVE",e.CREATED="3_CREATED",e.DELETED="4_DELETED"})(ln||(ln={}));var cn;(function(e){e.LAST_ACTIVITY="LAST_ACTIVITY"})(cn||(cn={}));var hn;(function(e){e.GOOGLE="google",e.MICROSOFT="microsoft",e.OKTA="okta"})(hn||(hn={}));var dn;(function(e){e.SUPPORT="ticket_sidebar",e.CHAT="chat_sidebar"})(dn||(dn={}));var f;(function(e){e[e.CONTINUE=100]="CONTINUE",e[e.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",e[e.PROCESSING=102]="PROCESSING",e[e.EARLY_HINTS=103]="EARLY_HINTS",e[e.OK=200]="OK",e[e.CREATED=201]="CREATED",e[e.ACCEPTED=202]="ACCEPTED",e[e.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.RESET_CONTENT=205]="RESET_CONTENT",e[e.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",e[e.MULTI_STATUS=207]="MULTI_STATUS",e[e.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",e[e.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",e[e.MOVED_TEMPORARILY=302]="MOVED_TEMPORARILY",e[e.SEE_OTHER=303]="SEE_OTHER",e[e.NOT_MODIFIED=304]="NOT_MODIFIED",e[e.USE_PROXY=305]="USE_PROXY",e[e.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",e[e.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",e[e.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.CONFLICT=409]="CONFLICT",e[e.GONE=410]="GONE",e[e.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",e[e.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",e[e.REQUEST_TOO_LONG=413]="REQUEST_TOO_LONG",e[e.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",e[e.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",e[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",e[e.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",e[e.IM_A_TEAPOT=418]="IM_A_TEAPOT",e[e.INSUFFICIENT_SPACE_ON_RESOURCE=419]="INSUFFICIENT_SPACE_ON_RESOURCE",e[e.METHOD_FAILURE=420]="METHOD_FAILURE",e[e.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST",e[e.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",e[e.LOCKED=423]="LOCKED",e[e.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",e[e.UPGRADE_REQUIRED=426]="UPGRADE_REQUIRED",e[e.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",e[e.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",e[e.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",e[e.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",e[e.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",e[e.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED"})(f||(f={}));var V;(function(e){e.E0000="E0000",e.E0040="E0040",e.E0041="E0041",e.E0050="E0050",e.E0090="E0090",e.E0091="E0091",e.E0092="E0092",e.E0093="E0093",e.E0094="E0094",e.E0095="E0095",e.E0096="E0096",e.E0097="E0097",e.E0098="E0098",e.E2000="E2000",e.E2001="E2001",e.E2002="E2002",e.E2003="E2003",e.E2050="E2050",e.E2051="E2051",e.E2052="E2052",e.E2053="E2053",e.E2054="E2054",e.E2055="E2055",e.E2056="E2056",e.E2057="E2057",e.E2058="E2058",e.E2059="E2059",e.E2060="E2060",e.E2061="E2061",e.E2062="E2062",e.E3000="E3000",e.E4000="E4000",e.E4050="E4050",e.E5000="E5000",e.E5001="E5001",e.E5002="E5002",e.E5003="E5003",e.E5004="E5004",e.E5005="E5005",e.E5006="E5006",e.E5007="E5007",e.E5008="E5008",e.E5009="E5009",e.E5010="E5010",e.E5011="E5011",e.E5012="E5012",e.E5013="E5013",e.E5014="E5014",e.E5015="E5015",e.E5016="E5016",e.E5017="E5017",e.E5055="E5055",e.E5056="E5056",e.E5057="E5057",e.E5058="E5058",e.E6000="E6000",e.E6001="E6001",e.E6002="E6002",e.E6003="E6003",e.E7000="E7000",e.E7001="E7001",e.E7002="E7002",e.E7003="E7003",e.E7004="E7004",e.E7500="E7500",e.E7501="E7501",e.E7502="E7502",e.E7503="E7503",e.E7504="E7504",e.E7505="E7505",e.E7506="E7506",e.E8000="E8000",e.E8001="E8001",e.E8002="E8002",e.E8003="E8003",e.E8004="E8004",e.E8005="E8005",e.E8006="E8006",e.E8030="E8030",e.E8031="E8031",e.E8032="E8032",e.E8033="E8033",e.E8034="E8034",e.E9000="E9000",e.E10000="E10000",e.E15401="E15401",e.E15403="E15403",e.E15404="E15404"})(V||(V={}));var un;(function(e){e.ERROR="Error",e.LOG="LogError",e.ADD_LOG="AddLogError",e.USER_NOT_FOUND="UserNotFoundError",e.USER_EXISTS="UserExistsError",e.USER_CREATION="UserCreationError",e.USER_DELETION="UserDeletionError",e.ORGANISATION_EXISTS="OrganisationExistsError",e.ORGANISATION_NOT_FOUND="OrganisationNotFoundError",e.ORGANISATION_CREATION="OrganisationCreationError",e.ORGANISATION_ACCESS_REQUEST_CREATION="OrganisationAccessRequestCreationError",e.ORGANISATION_ACCESS_REQUEST_EXISTS="OrganisationAccessRequestExists",e.ORGANISATION_ACCESS_REQUEST_NOT_FOUND="OrganisationAccessRequestNotFound",e.ORGANISATION_INVITATION_CREATION="OrganisationInvitationCreationError",e.ORGANISATION_INVITATION_EXISTS="OrganisationInvitationExists",e.ORGANISATION_INVITATION_NOT_FOUND="OrganisationInvitationNotFound",e.ORGANISATION_JOIN_LINK_CREATION="OrganisationJoinLinkCreationError",e.ORGANISATION_JOIN_LINK_NOT_FOUND="OrganisationJoinLinkNotFoundError",e.ORGANISATION_SCRIPT_NOT_INSTALLED="OrganisationScriptNotInstalled",e.ORGANISATION_CONFIG_UPDATES_VALIDATION="OrganisationConfigUpdatesValidationError",e.VALIDATION="ValidationError",e.EMAIL_HANDLER="EmailHandlerError",e.INVALID_USERNAME_PASSWORD="InvalidUsernamePasswordError",e.INVALID_TOKEN="InvalidTokenError",e.TOKEN_NOT_PRESENT_ON_HEADERS="TokenNotPresentOnHeadersError",e.TOKEN_MISSING_CLAIMS="TokenMissingClaimsError",e.FORCE_CHANGE_PASSWORD="ForceChangePasswordError",e.FORGOT_PASSWORD="ForgotPasswordError",e.DAILY_ROOM_CREATION="DailyRoomCreationError",e.ROLE_ASSIGNMENT="AssignRoleError",e.ROLE_REMOVAL="RemoveRoleError",e.GET_USERS_BY_ROLE="GetUsersByRoleError",e.ROLE_REQUIRED="RoleRequiredError",e.LOGIN="LoginError",e.AUTH="AuthError",e.LOGOUT="LogoutError",e.REFRESH_TOKEN="RefreshTokenError",e.SIGNUP="SignupError",e.PASSWORD_RESET_REQUEST="PasswordResetRequestError",e.PASSWORD_RESET_REQUEST_CREATION="PasswordResetRequestCreationError",e.PASSWORD_RESET_REQUEST_NOT_FOUND="PasswordResetRequestNotFoundError",e.PASSWORD_CHANGE="PasswordChangeError",e.WEAK_PASSWORD="WeakPasswordError",e.INVALID_EMAIL_DOMAIN="InvalidEmailDomainError",e.OKTA_DOMAIN_NOT_CONFIGURED="OktaDomainNotConfiguredError",e.ZENDSEK_CLIENT_NOT_AUTHORISED="ZendeskClientNotAuthorisedError",e.SESSION_UNKNOWN="SessionUnknownError",e.SESSION="SessionError",e.SESSION_WORKFLOW="SessionWorkflowError",e.SESSION_NOT_FOUND="SessionNotFoundError",e.WEBSOCKET="WebsocketError",e.WEBSOCKET_CONNECTION="WebsocketConnectionError",e.WEBSOCKET_MESSAGE="WebsocketMessageError",e.WEBSOCKET_STATE="WebsocketStateError",e.WEBSOCKET_STATE_NOT_FOUND="WebsocketStateNotFoundError",e.CUSTOMER="CustomerError",e.CUSTOMER_CREATION="CustomerCreationError",e.CUSTOMER_UPDATE="CustomerUpdateError",e.CUSTOMER_NOT_FOUND="CustomerNotFoundError",e.MULTIPLE_CUSTOMERS_FOUND_FOR_GIVEN_EMAIL_OR_EXTERNAL_ID="MultipleCustomersFoundForGivenEmailOrExternalIdError",e.CUSTOMER_NO_ACTIVE_CONNECTION_FOUND="CustomerNoActiveConnectionFoundError",e.CUSTOMER_IN_ANOTHER_CALL="CustomerInAnotherCallError",e.REPLAY="ReplayError",e.REPLAY_NOT_FOUND="ReplayNotFoundError",e.REPLAY_VIEW_NOT_FOUND="ReplayViewNotFoundError",e.DEFAULT_VIEW_DELETION_ERROR="DefaultViewDeletionError",e.MONGODB_SERVER_ERROR="MongoDbServerError",e.CALL="CallError",e.CALL_NOT_FOUND="CallNotFoundError",e.PARTICIPANT_NOT_INVITED="ParticipantNotInvitedError",e.CALL_ENDED="CallEndedError",e.CALL_NOT_AVAILABLE_FOR_ANONYMOUS="CallNotAvailableForAnonymous",e.PARTICIPANT_ALREADY_JOINED="ParticipantAlreadyJoinedError",e.CALL_DOES_NOT_BELONG_TO_THE_SAME_ORGANISATION="CallDoesNotBelongToTheSameOrganisationError",e.INSUFFICIENT_SCOPE_ERROR="InsufficientScopeError",e.REPLAY_NOT_ACCESSIBLE="ReplayNotAccessibleError"})(un||(un={}));var u=function(){function e(t,s,r){this.code=t,this.description=s,this.status=r}e.get=function(s){var r=Object.entries(e).find(function(n){var o=n[0],i=e[o];return i.code===s});if(r)return r[1];throw new Error("Unknown error code provided: "+s)};var a=e.prototype;return a.toString=function(){return"["+this.code+"]: "+this.description},e}();u.E0000=new u(V.E0000,"An unknown error has occurred.",f.INTERNAL_SERVER_ERROR),u.E0040=new u(V.E0040,"Log Error",f.BAD_REQUEST),u.E0041=new u(V.E0041,"Cannot add log",f.BAD_REQUEST),u.E0050=new u(V.E0050,"Room cannot be created.",f.INTERNAL_SERVER_ERROR),u.E0090=new u(V.E0090,"Role cannot be assigned.",f.BAD_REQUEST),u.E0091=new u(V.E0091,"Role cannot be removed.",f.BAD_REQUEST),u.E0092=new u(V.E0092,"Cannot get users by role.",f.BAD_REQUEST),u.E0093=new u(V.E0093,"User doesn't have the required role.",f.FORBIDDEN),u.E0094=new u(V.E0094,"Role not found.",f.NOT_FOUND),u.E0095=new u(V.E0095,"Role already exists.",f.BAD_REQUEST),u.E0096=new u(V.E0096,"Role cannot be created.",f.BAD_REQUEST),u.E0097=new u(V.E0097,"Cannot add claim to role.",f.BAD_REQUEST),u.E0098=new u(V.E0098,"Invalid claim provided.",f.BAD_REQUEST),u.E2000=new u(V.E2000,"The user could not be found.",f.NOT_FOUND),u.E2001=new u(V.E2001,"The user already exists.",f.BAD_REQUEST),u.E2002=new u(V.E2002,"User cannot be created",f.BAD_REQUEST),u.E2003=new u(V.E2003,"User cannot be deleted",f.BAD_REQUEST),u.E2050=new u(V.E2050,"The organisation already exists.",f.BAD_REQUEST),u.E2051=new u(V.E2051,"The organisation could not be found.",f.NOT_FOUND),u.E2052=new u(V.E2052,"The organisation could not be created.",f.BAD_REQUEST),u.E2053=new u(V.E2053,"Organisation access request cannot be created.",f.BAD_REQUEST),u.E2054=new u(V.E2054,"Organisation access already requested.",f.BAD_REQUEST),u.E2055=new u(V.E2055,"Organisation access request not found.",f.NOT_FOUND),u.E2056=new u(V.E2056,"Organisation invitation cannot be created.",f.BAD_REQUEST),u.E2057=new u(V.E2057,"Organisation invitation already sent.",f.BAD_REQUEST),u.E2058=new u(V.E2058,"Organisation invitation not found.",f.NOT_FOUND),u.E2059=new u(V.E2059,"Organisation join link cannot be created.",f.BAD_REQUEST),u.E2060=new u(V.E2060,"Organisation join link not found.",f.NOT_FOUND),u.E2061=new u(V.E2061,"Organisation doesn't has script installed.",f.BAD_REQUEST),u.E2062=new u(V.E2062,"Organisation validation updates error.",f.BAD_REQUEST),u.E3000=new u(V.E3000,"The data is invalid.",f.BAD_REQUEST),u.E4000=new u(V.E4000,"No email event handler was found to handle the event, this should not have happened!",f.INTERNAL_SERVER_ERROR),u.E4050=new u(V.E4050,"Zendesk client not authorised.",f.UNAUTHORIZED),u.E5000=new u(V.E5000,"The username or password is invalid.",f.UNAUTHORIZED),u.E5001=new u(V.E5001,"The token provided is invalid.",f.UNAUTHORIZED),u.E5002=new u(V.E5002,"Cannot force change password",f.BAD_REQUEST),u.E5003=new u(V.E5003,"Cannot login",f.UNAUTHORIZED),u.E5004=new u(V.E5004,"Cannot proceed on authentication process",f.UNAUTHORIZED),u.E5005=new u(V.E5005,"Cannot logout",f.BAD_REQUEST),u.E5006=new u(V.E5006,"Cannot refresh token",f.UNAUTHORIZED),u.E5007=new u(V.E5007,"Cannot signup",f.BAD_REQUEST),u.E5008=new u(V.E5008,"Cannot move forward with the forgot password flow",f.BAD_REQUEST),u.E5009=new u(V.E5009,"The password reset flow encountered an error",f.INTERNAL_SERVER_ERROR),u.E5010=new u(V.E5010,"Cannot create password reset request",f.BAD_REQUEST),u.E5011=new u(V.E5011,"Password reset request not found",f.NOT_FOUND),u.E5012=new u(V.E5012,"Password cannot be changed",f.INTERNAL_SERVER_ERROR),u.E5013=new u(V.E5013,"Password too weak",f.BAD_REQUEST),u.E5014=new u(V.E5014,"Invalid domain for email",f.BAD_REQUEST),u.E5015=new u(V.E5015,"Okta domain not configured",f.BAD_REQUEST),u.E5016=new u(V.E5016,"Insuficient scope",f.FORBIDDEN),u.E5017=new u(V.E5017,"Token not present on headers",f.UNAUTHORIZED),u.E5055=new u(V.E5055,"The provided token is expired",f.UNAUTHORIZED),u.E5056=new u(V.E5056,"The provided token fails Audience URI validation",f.UNAUTHORIZED),u.E5057=new u(V.E5057,"The provided token is not yet valid: nbf is into the future.",f.UNAUTHORIZED),u.E5058=new u(V.E5058,"The provided token is missing claims to access this resource.",f.UNAUTHORIZED),u.E6000=new u(V.E6000,"Unknown session error occurred: this should not have happened",f.INTERNAL_SERVER_ERROR),u.E6001=new u(V.E6001,"A session error occurred",f.INTERNAL_SERVER_ERROR),u.E6002=new u(V.E6002,"The session workflow encountered an error",f.INTERNAL_SERVER_ERROR),u.E6003=new u(V.E6003,"The session could not be found",f.NOT_FOUND),u.E7000=new u(V.E7000,"A websocket error occurred",f.INTERNAL_SERVER_ERROR),u.E7001=new u(V.E7001,"A websocket connection error occurred",f.INTERNAL_SERVER_ERROR),u.E7002=new u(V.E7002,"A websocket message error occurred",f.INTERNAL_SERVER_ERROR),u.E7003=new u(V.E7003,"A websocket state error occurred",f.INTERNAL_SERVER_ERROR),u.E7004=new u(V.E7004,"The websocket session was not found",f.NOT_FOUND),u.E7500=new u(V.E7500,"A call error occurred",f.INTERNAL_SERVER_ERROR),u.E7501=new u(V.E7501,"The call not found",f.NOT_FOUND),u.E7502=new u(V.E7502,"Participant was not invited to the call",f.BAD_REQUEST),u.E7503=new u(V.E7503,"Call has already ended",f.BAD_REQUEST),u.E7504=new u(V.E7504,"Participant has already joined the call",f.BAD_REQUEST),u.E7505=new u(V.E7505,"Call does not belong to the same organisation",f.BAD_REQUEST),u.E7506=new u(V.E7506,"Call not available for anonymous users",f.BAD_REQUEST),u.E8000=new u(V.E8000,"A customer error occurred",f.INTERNAL_SERVER_ERROR),u.E8001=new u(V.E8001,"Customer cannot be created",f.BAD_REQUEST),u.E8002=new u(V.E8002,"Customer cannot be updated",f.BAD_REQUEST),u.E8003=new u(V.E8003,"Customer could not be found",f.NOT_FOUND),u.E8004=new u(V.E8004,"No active end user connections found",f.BAD_REQUEST),u.E8030=new u(V.E8030,"Generic replay error",f.INTERNAL_SERVER_ERROR),u.E8031=new u(V.E8031,"Replay cannot be found",f.NOT_FOUND),u.E8032=new u(V.E8032,"Replay view cannot be found",f.NOT_FOUND),u.E8033=new u(V.E8033,"Default replay view cannot be deleted",f.BAD_REQUEST),u.E8034=new u(V.E8034,"You don't have access to this replay",f.FORBIDDEN),u.E8005=new u(V.E8005,"Customer is in another call",f.BAD_REQUEST),u.E8006=new u(V.E8006,"Multiple customers found with given email or externalId",f.BAD_REQUEST),u.E9000=new u(V.E9000,"A database error has occurred",f.INTERNAL_SERVER_ERROR),u.E10000=new u(V.E10000,"Missing or invalid customer identity",f.BAD_REQUEST),u.E15401=new u(V.E15401,"You are not authorized to access this resource",f.UNAUTHORIZED),u.E15403=new u(V.E15403,"You are not authorized to access this resource",f.FORBIDDEN),u.E15404=new u(V.E15404,"The resource you are looking for was not found",f.NOT_FOUND);var ft=(e=>(e.RrWebFullSnapshot="RRWebFullSnapshot",e.RrWebMeta="RRWebMeta",e.RrWebUserInteraction="RRWebUserInteraction",e.RrWebOther="RRWebOther",e.RrWebAgentInteraction="RRWebAgentInteraction",e.ConsoleLog="ConsoleLog",e.ConsoleError="ConsoleError",e.ConsoleWarn="ConsoleWarn",e.DomMouseClick="DomMouseClick",e.DomRageClick="DomRageClick",e.Network="Network",e.Navigation="Navigation",e.TabSwitch="TabSwitch",e.TabOpen="TabOpen",e.TabClose="TabClose",e.AgentDomMouseClick="AgentDomMouseClick",e.AgentDomRageClick="AgentDomRageClick",e.HiddenEvents="HiddenEvents",e.HiddenConsoleLog="HiddenConsoleLog",e.HiddenConsoleError="HiddenConsoleError",e.HiddenConsoleWarn="HiddenConsoleWarn",e.HiddenNetwork="HiddenNetwork",e.DeviceInfo="DeviceInfo",e.CoBrowseCameraOn="CoBrowseCameraOn",e))(ft||{});const oh=e=>e===ft.RrWebFullSnapshot||e===ft.RrWebMeta||e===ft.RrWebUserInteraction||e===ft.RrWebOther,ih=e=>{var t;const a=e.config??{};return a.headers??(a.headers={"content-type":"application/json"}),!e.token||(t=a.url)!=null&&t.endsWith("/Authorization/refresh")||(a.headers.authorization=`Bearer ${e.token}`),a};let lh=0;function ch(e,a){return(a.component==="sdk"?uo:ho).http.get({fvRegion:e,version:a.version,o:a.organisationId,w:a.sdkWorkerCustomPath,s:lh++}).toString().replace(/\/$/,"")}function hh(e,a){const t=ch(e,a),s=document.createElement("script");return s.async=!0,s.src=t,s.dataset.org=a.organisationId,a.sdkWorkerCustomPath&&(s.dataset.worker=a.sdkWorkerCustomPath),s}var dh=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis;const pn=dh;var uh=typeof self=="object"&&self&&self.Object===Object&&self,ph=pn||uh||Function("return this")();const Ie=ph;var Oh=Ie.Symbol;const qe=Oh;var On=Object.prototype,mh=On.hasOwnProperty,Ph=On.toString,Vt=qe?qe.toStringTag:void 0;function Rh(e){var a=mh.call(e,Vt),t=e[Vt];try{e[Vt]=void 0;var s=!0}catch{}var r=Ph.call(e);return s&&(a?e[Vt]=t:delete e[Vt]),r}var Ah=Object.prototype,Eh=Ah.toString;function fh(e){return Eh.call(e)}var Vh="[object Null]",wh="[object Undefined]",mn=qe?qe.toStringTag:void 0;function ct(e){return e==null?e===void 0?wh:Vh:mn&&mn in Object(e)?Rh(e):fh(e)}function ht(e){return e!=null&&typeof e=="object"}var bh="[object Symbol]";function $a(e){return typeof e=="symbol"||ht(e)&&ct(e)==bh}function gh(e,a){for(var t=-1,s=e==null?0:e.length,r=Array(s);++t<s;)r[t]=a(e[t],t,e);return r}var yh=Array.isArray;const ve=yh;var Sh=1/0,Pn=qe?qe.prototype:void 0,Rn=Pn?Pn.toString:void 0;function An(e){if(typeof e=="string")return e;if(ve(e))return gh(e,An)+"";if($a(e))return Rn?Rn.call(e):"";var a=e+"";return a=="0"&&1/e==-Sh?"-0":a}function zt(e){var a=typeof e;return e!=null&&(a=="object"||a=="function")}function vh(e){return e}var Th="[object AsyncFunction]",Uh="[object Function]",Ih="[object GeneratorFunction]",Ch="[object Proxy]";function En(e){if(!zt(e))return!1;var a=ct(e);return a==Uh||a==Ih||a==Th||a==Ch}var _h=Ie["__core-js_shared__"];const Ma=_h;var fn=function(){var e=/[^.]+$/.exec(Ma&&Ma.keys&&Ma.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function xh(e){return!!fn&&fn in e}var Lh=Function.prototype,Fh=Lh.toString;function Ge(e){if(e!=null){try{return Fh.call(e)}catch{}try{return e+""}catch{}}return""}var Nh=/[\\^$.*+?()[\]{}|]/g,Dh=/^\[object .+?Constructor\]$/,Bh=Function.prototype,jh=Object.prototype,qh=Bh.toString,$h=jh.hasOwnProperty,Mh=RegExp("^"+qh.call($h).replace(Nh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Hh(e){if(!zt(e)||xh(e))return!1;var a=En(e)?Mh:Dh;return a.test(Ge(e))}function Qh(e,a){return e==null?void 0:e[a]}function dt(e,a){var t=Qh(e,a);return Hh(t)?t:void 0}var kh=dt(Ie,"WeakMap");const Ha=kh;var Gh=9007199254740991,Wh=/^(?:0|[1-9]\d*)$/;function Qa(e,a){var t=typeof e;return a=a??Gh,!!a&&(t=="number"||t!="symbol"&&Wh.test(e))&&e>-1&&e%1==0&&e<a}function ka(e,a){return e===a||e!==e&&a!==a}var Yh=9007199254740991;function Ga(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Yh}function Wa(e){return e!=null&&Ga(e.length)&&!En(e)}function zh(e,a,t){if(!zt(t))return!1;var s=typeof a;return(s=="number"?Wa(t)&&Qa(a,t.length):s=="string"&&a in t)?ka(t[a],e):!1}var Jh=Object.prototype;function Xh(e){var a=e&&e.constructor,t=typeof a=="function"&&a.prototype||Jh;return e===t}function Kh(e,a){for(var t=-1,s=Array(e);++t<e;)s[t]=a(t);return s}var Zh="[object Arguments]";function Vn(e){return ht(e)&&ct(e)==Zh}var wn=Object.prototype,ed=wn.hasOwnProperty,td=wn.propertyIsEnumerable,ad=Vn(function(){return arguments}())?Vn:function(e){return ht(e)&&ed.call(e,"callee")&&!td.call(e,"callee")};const bn=ad;function sd(){return!1}var gn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yn=gn&&typeof module=="object"&&module&&!module.nodeType&&module,rd=yn&&yn.exports===gn,Sn=rd?Ie.Buffer:void 0,nd=Sn?Sn.isBuffer:void 0,od=nd||sd;const Ya=od;var id="[object Arguments]",ld="[object Array]",cd="[object Boolean]",hd="[object Date]",dd="[object Error]",ud="[object Function]",pd="[object Map]",Od="[object Number]",md="[object Object]",Pd="[object RegExp]",Rd="[object Set]",Ad="[object String]",Ed="[object WeakMap]",fd="[object ArrayBuffer]",Vd="[object DataView]",wd="[object Float32Array]",bd="[object Float64Array]",gd="[object Int8Array]",yd="[object Int16Array]",Sd="[object Int32Array]",vd="[object Uint8Array]",Td="[object Uint8ClampedArray]",Ud="[object Uint16Array]",Id="[object Uint32Array]",ee={};ee[wd]=ee[bd]=ee[gd]=ee[yd]=ee[Sd]=ee[vd]=ee[Td]=ee[Ud]=ee[Id]=!0,ee[id]=ee[ld]=ee[fd]=ee[cd]=ee[Vd]=ee[hd]=ee[dd]=ee[ud]=ee[pd]=ee[Od]=ee[md]=ee[Pd]=ee[Rd]=ee[Ad]=ee[Ed]=!1;function Cd(e){return ht(e)&&Ga(e.length)&&!!ee[ct(e)]}function _d(e){return function(a){return e(a)}}var vn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,wt=vn&&typeof module=="object"&&module&&!module.nodeType&&module,xd=wt&&wt.exports===vn,za=xd&&pn.process,Ld=function(){try{var e=wt&&wt.require&&wt.require("util").types;return e||za&&za.binding&&za.binding("util")}catch{}}();const Tn=Ld;var Un=Tn&&Tn.isTypedArray,Fd=Un?_d(Un):Cd;const In=Fd;var Nd=Object.prototype,Dd=Nd.hasOwnProperty;function Bd(e,a){var t=ve(e),s=!t&&bn(e),r=!t&&!s&&Ya(e),n=!t&&!s&&!r&&In(e),o=t||s||r||n,i=o?Kh(e.length,String):[],l=i.length;for(var c in e)(a||Dd.call(e,c))&&!(o&&(c=="length"||r&&(c=="offset"||c=="parent")||n&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Qa(c,l)))&&i.push(c);return i}function jd(e,a){return function(t){return e(a(t))}}var qd=jd(Object.keys,Object);const $d=qd;var Md=Object.prototype,Hd=Md.hasOwnProperty;function Qd(e){if(!Xh(e))return $d(e);var a=[];for(var t in Object(e))Hd.call(e,t)&&t!="constructor"&&a.push(t);return a}function Ja(e){return Wa(e)?Bd(e):Qd(e)}var kd=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gd=/^\w*$/;function Xa(e,a){if(ve(e))return!1;var t=typeof e;return t=="number"||t=="symbol"||t=="boolean"||e==null||$a(e)?!0:Gd.test(e)||!kd.test(e)||a!=null&&e in Object(a)}var Wd=dt(Object,"create");const bt=Wd;function Yd(){this.__data__=bt?bt(null):{},this.size=0}function zd(e){var a=this.has(e)&&delete this.__data__[e];return this.size-=a?1:0,a}var Jd="__lodash_hash_undefined__",Xd=Object.prototype,Kd=Xd.hasOwnProperty;function Zd(e){var a=this.__data__;if(bt){var t=a[e];return t===Jd?void 0:t}return Kd.call(a,e)?a[e]:void 0}var eu=Object.prototype,tu=eu.hasOwnProperty;function au(e){var a=this.__data__;return bt?a[e]!==void 0:tu.call(a,e)}var su="__lodash_hash_undefined__";function ru(e,a){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=bt&&a===void 0?su:a,this}function We(e){var a=-1,t=e==null?0:e.length;for(this.clear();++a<t;){var s=e[a];this.set(s[0],s[1])}}We.prototype.clear=Yd,We.prototype.delete=zd,We.prototype.get=Zd,We.prototype.has=au,We.prototype.set=ru;function nu(){this.__data__=[],this.size=0}function Jt(e,a){for(var t=e.length;t--;)if(ka(e[t][0],a))return t;return-1}var ou=Array.prototype,iu=ou.splice;function lu(e){var a=this.__data__,t=Jt(a,e);if(t<0)return!1;var s=a.length-1;return t==s?a.pop():iu.call(a,t,1),--this.size,!0}function cu(e){var a=this.__data__,t=Jt(a,e);return t<0?void 0:a[t][1]}function hu(e){return Jt(this.__data__,e)>-1}function du(e,a){var t=this.__data__,s=Jt(t,e);return s<0?(++this.size,t.push([e,a])):t[s][1]=a,this}function Ce(e){var a=-1,t=e==null?0:e.length;for(this.clear();++a<t;){var s=e[a];this.set(s[0],s[1])}}Ce.prototype.clear=nu,Ce.prototype.delete=lu,Ce.prototype.get=cu,Ce.prototype.has=hu,Ce.prototype.set=du;var uu=dt(Ie,"Map");const gt=uu;function pu(){this.size=0,this.__data__={hash:new We,map:new(gt||Ce),string:new We}}function Ou(e){var a=typeof e;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?e!=="__proto__":e===null}function Xt(e,a){var t=e.__data__;return Ou(a)?t[typeof a=="string"?"string":"hash"]:t.map}function mu(e){var a=Xt(this,e).delete(e);return this.size-=a?1:0,a}function Pu(e){return Xt(this,e).get(e)}function Ru(e){return Xt(this,e).has(e)}function Au(e,a){var t=Xt(this,e),s=t.size;return t.set(e,a),this.size+=t.size==s?0:1,this}function _e(e){var a=-1,t=e==null?0:e.length;for(this.clear();++a<t;){var s=e[a];this.set(s[0],s[1])}}_e.prototype.clear=pu,_e.prototype.delete=mu,_e.prototype.get=Pu,_e.prototype.has=Ru,_e.prototype.set=Au;var Eu="Expected a function";function Ka(e,a){if(typeof e!="function"||a!=null&&typeof a!="function")throw new TypeError(Eu);var t=function(){var s=arguments,r=a?a.apply(this,s):s[0],n=t.cache;if(n.has(r))return n.get(r);var o=e.apply(this,s);return t.cache=n.set(r,o)||n,o};return t.cache=new(Ka.Cache||_e),t}Ka.Cache=_e;var fu=500;function Vu(e){var a=Ka(e,function(s){return t.size===fu&&t.clear(),s}),t=a.cache;return a}var wu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bu=/\\(\\)?/g,gu=Vu(function(e){var a=[];return e.charCodeAt(0)===46&&a.push(""),e.replace(wu,function(t,s,r,n){a.push(r?n.replace(bu,"$1"):s||t)}),a});const yu=gu;function Su(e){return e==null?"":An(e)}function Cn(e,a){return ve(e)?e:Xa(e,a)?[e]:yu(Su(e))}var vu=1/0;function Kt(e){if(typeof e=="string"||$a(e))return e;var a=e+"";return a=="0"&&1/e==-vu?"-0":a}function _n(e,a){a=Cn(a,e);for(var t=0,s=a.length;e!=null&&t<s;)e=e[Kt(a[t++])];return t&&t==s?e:void 0}function Tu(e,a,t){var s=e==null?void 0:_n(e,a);return s===void 0?t:s}function Uu(e,a){for(var t=-1,s=a.length,r=e.length;++t<s;)e[r+t]=a[t];return e}function Iu(){this.__data__=new Ce,this.size=0}function Cu(e){var a=this.__data__,t=a.delete(e);return this.size=a.size,t}function _u(e){return this.__data__.get(e)}function xu(e){return this.__data__.has(e)}var Lu=200;function Fu(e,a){var t=this.__data__;if(t instanceof Ce){var s=t.__data__;if(!gt||s.length<Lu-1)return s.push([e,a]),this.size=++t.size,this;t=this.__data__=new _e(s)}return t.set(e,a),this.size=t.size,this}function xe(e){var a=this.__data__=new Ce(e);this.size=a.size}xe.prototype.clear=Iu,xe.prototype.delete=Cu,xe.prototype.get=_u,xe.prototype.has=xu,xe.prototype.set=Fu;function Nu(e,a){for(var t=-1,s=e==null?0:e.length,r=0,n=[];++t<s;){var o=e[t];a(o,t,e)&&(n[r++]=o)}return n}function Du(){return[]}var Bu=Object.prototype,ju=Bu.propertyIsEnumerable,xn=Object.getOwnPropertySymbols,qu=xn?function(e){return e==null?[]:(e=Object(e),Nu(xn(e),function(a){return ju.call(e,a)}))}:Du;const $u=qu;function Mu(e,a,t){var s=a(e);return ve(e)?s:Uu(s,t(e))}function Ln(e){return Mu(e,Ja,$u)}var Hu=dt(Ie,"DataView");const Za=Hu;var Qu=dt(Ie,"Promise");const es=Qu;var ku=dt(Ie,"Set");const ts=ku;var Fn="[object Map]",Gu="[object Object]",Nn="[object Promise]",Dn="[object Set]",Bn="[object WeakMap]",jn="[object DataView]",Wu=Ge(Za),Yu=Ge(gt),zu=Ge(es),Ju=Ge(ts),Xu=Ge(Ha),Ye=ct;(Za&&Ye(new Za(new ArrayBuffer(1)))!=jn||gt&&Ye(new gt)!=Fn||es&&Ye(es.resolve())!=Nn||ts&&Ye(new ts)!=Dn||Ha&&Ye(new Ha)!=Bn)&&(Ye=function(e){var a=ct(e),t=a==Gu?e.constructor:void 0,s=t?Ge(t):"";if(s)switch(s){case Wu:return jn;case Yu:return Fn;case zu:return Nn;case Ju:return Dn;case Xu:return Bn}return a});const qn=Ye;var Ku=Ie.Uint8Array;const $n=Ku;var Zu="__lodash_hash_undefined__";function ep(e){return this.__data__.set(e,Zu),this}function tp(e){return this.__data__.has(e)}function Zt(e){var a=-1,t=e==null?0:e.length;for(this.__data__=new _e;++a<t;)this.add(e[a])}Zt.prototype.add=Zt.prototype.push=ep,Zt.prototype.has=tp;function Mn(e,a){for(var t=-1,s=e==null?0:e.length;++t<s;)if(a(e[t],t,e))return!0;return!1}function ap(e,a){return e.has(a)}var sp=1,rp=2;function Hn(e,a,t,s,r,n){var o=t&sp,i=e.length,l=a.length;if(i!=l&&!(o&&l>i))return!1;var c=n.get(e),d=n.get(a);if(c&&d)return c==a&&d==e;var p=-1,w=!0,C=t&rp?new Zt:void 0;for(n.set(e,a),n.set(a,e);++p<i;){var O=e[p],j=a[p];if(s)var U=o?s(j,O,p,a,e,n):s(O,j,p,e,a,n);if(U!==void 0){if(U)continue;w=!1;break}if(C){if(!Mn(a,function(W,z){if(!ap(C,z)&&(O===W||r(O,W,t,s,n)))return C.push(z)})){w=!1;break}}else if(!(O===j||r(O,j,t,s,n))){w=!1;break}}return n.delete(e),n.delete(a),w}function np(e){var a=-1,t=Array(e.size);return e.forEach(function(s,r){t[++a]=[r,s]}),t}function op(e){var a=-1,t=Array(e.size);return e.forEach(function(s){t[++a]=s}),t}var ip=1,lp=2,cp="[object Boolean]",hp="[object Date]",dp="[object Error]",up="[object Map]",pp="[object Number]",Op="[object RegExp]",mp="[object Set]",Pp="[object String]",Rp="[object Symbol]",Ap="[object ArrayBuffer]",Ep="[object DataView]",Qn=qe?qe.prototype:void 0,as=Qn?Qn.valueOf:void 0;function fp(e,a,t,s,r,n,o){switch(t){case Ep:if(e.byteLength!=a.byteLength||e.byteOffset!=a.byteOffset)return!1;e=e.buffer,a=a.buffer;case Ap:return!(e.byteLength!=a.byteLength||!n(new $n(e),new $n(a)));case cp:case hp:case pp:return ka(+e,+a);case dp:return e.name==a.name&&e.message==a.message;case Op:case Pp:return e==a+"";case up:var i=np;case mp:var l=s&ip;if(i||(i=op),e.size!=a.size&&!l)return!1;var c=o.get(e);if(c)return c==a;s|=lp,o.set(e,a);var d=Hn(i(e),i(a),s,r,n,o);return o.delete(e),d;case Rp:if(as)return as.call(e)==as.call(a)}return!1}var Vp=1,wp=Object.prototype,bp=wp.hasOwnProperty;function gp(e,a,t,s,r,n){var o=t&Vp,i=Ln(e),l=i.length,c=Ln(a),d=c.length;if(l!=d&&!o)return!1;for(var p=l;p--;){var w=i[p];if(!(o?w in a:bp.call(a,w)))return!1}var C=n.get(e),O=n.get(a);if(C&&O)return C==a&&O==e;var j=!0;n.set(e,a),n.set(a,e);for(var U=o;++p<l;){w=i[p];var W=e[w],z=a[w];if(s)var Y=o?s(z,W,w,a,e,n):s(W,z,w,e,a,n);if(!(Y===void 0?W===z||r(W,z,t,s,n):Y)){j=!1;break}U||(U=w=="constructor")}if(j&&!U){var $=e.constructor,Ee=a.constructor;$!=Ee&&"constructor"in e&&"constructor"in a&&!(typeof $=="function"&&$ instanceof $&&typeof Ee=="function"&&Ee instanceof Ee)&&(j=!1)}return n.delete(e),n.delete(a),j}var yp=1,kn="[object Arguments]",Gn="[object Array]",ea="[object Object]",Sp=Object.prototype,Wn=Sp.hasOwnProperty;function vp(e,a,t,s,r,n){var o=ve(e),i=ve(a),l=o?Gn:qn(e),c=i?Gn:qn(a);l=l==kn?ea:l,c=c==kn?ea:c;var d=l==ea,p=c==ea,w=l==c;if(w&&Ya(e)){if(!Ya(a))return!1;o=!0,d=!1}if(w&&!d)return n||(n=new xe),o||In(e)?Hn(e,a,t,s,r,n):fp(e,a,l,t,s,r,n);if(!(t&yp)){var C=d&&Wn.call(e,"__wrapped__"),O=p&&Wn.call(a,"__wrapped__");if(C||O){var j=C?e.value():e,U=O?a.value():a;return n||(n=new xe),r(j,U,t,s,n)}}return w?(n||(n=new xe),gp(e,a,t,s,r,n)):!1}function ss(e,a,t,s,r){return e===a?!0:e==null||a==null||!ht(e)&&!ht(a)?e!==e&&a!==a:vp(e,a,t,s,ss,r)}var Tp=1,Up=2;function Ip(e,a,t,s){var r=t.length,n=r,o=!s;if(e==null)return!n;for(e=Object(e);r--;){var i=t[r];if(o&&i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++r<n;){i=t[r];var l=i[0],c=e[l],d=i[1];if(o&&i[2]){if(c===void 0&&!(l in e))return!1}else{var p=new xe;if(s)var w=s(c,d,l,e,a,p);if(!(w===void 0?ss(d,c,Tp|Up,s,p):w))return!1}}return!0}function Yn(e){return e===e&&!zt(e)}function Cp(e){for(var a=Ja(e),t=a.length;t--;){var s=a[t],r=e[s];a[t]=[s,r,Yn(r)]}return a}function zn(e,a){return function(t){return t==null?!1:t[e]===a&&(a!==void 0||e in Object(t))}}function _p(e){var a=Cp(e);return a.length==1&&a[0][2]?zn(a[0][0],a[0][1]):function(t){return t===e||Ip(t,e,a)}}function xp(e,a){return e!=null&&a in Object(e)}function Lp(e,a,t){a=Cn(a,e);for(var s=-1,r=a.length,n=!1;++s<r;){var o=Kt(a[s]);if(!(n=e!=null&&t(e,o)))break;e=e[o]}return n||++s!=r?n:(r=e==null?0:e.length,!!r&&Ga(r)&&Qa(o,r)&&(ve(e)||bn(e)))}function Fp(e,a){return e!=null&&Lp(e,a,xp)}var Np=1,Dp=2;function Bp(e,a){return Xa(e)&&Yn(a)?zn(Kt(e),a):function(t){var s=Tu(t,e);return s===void 0&&s===a?Fp(t,e):ss(a,s,Np|Dp)}}function jp(e){return function(a){return a==null?void 0:a[e]}}function qp(e){return function(a){return _n(a,e)}}function $p(e){return Xa(e)?jp(Kt(e)):qp(e)}function Mp(e){return typeof e=="function"?e:e==null?vh:typeof e=="object"?ve(e)?Bp(e[0],e[1]):_p(e):$p(e)}function Hp(e){return function(a,t,s){for(var r=-1,n=Object(a),o=s(a),i=o.length;i--;){var l=o[e?i:++r];if(t(n[l],l,n)===!1)break}return a}}var Qp=Hp();const kp=Qp;function Gp(e,a){return e&&kp(e,a,Ja)}function Wp(e,a){return function(t,s){if(t==null)return t;if(!Wa(t))return e(t,s);for(var r=t.length,n=a?r:-1,o=Object(t);(a?n--:++n<r)&&s(o[n],n,o)!==!1;);return t}}var Yp=Wp(Gp);const zp=Yp;function Jp(e,a){var t;return zp(e,function(s,r,n){return t=a(s,r,n),!t}),!!t}function Xp(e,a,t){var s=ve(e)?Mn:Jp;return t&&zh(e,a,t)&&(a=void 0),s(e,Mp(a))}typeof window<"u"&&(window.$fvSDKScript=document.currentScript);function Kp({isProd:e,isLocalProcess:a,context:t}){const s="fvOrg",r=Zp({isProd:e,isLocalProcess:a,context:t}),n=eO(r);let o;try{o=n?new URL(n):void 0}catch{}let i;const l=localStorage.getItem(s);l?i=l:window.$fvSDKScript&&window.$fvSDKScript.dataset.org?i=window.$fvSDKScript.dataset.org:o&&(i=o.searchParams.get("o")||void 0);let c;return window.$fvSDKScript&&window.$fvSDKScript.dataset.worker?c=window.$fvSDKScript.dataset.worker:o&&(c=o.searchParams.get("w")||void 0),{organisationId:i,sdkWorkerCustomPath:c}}function Zp({isProd:e,isLocalProcess:a,context:t}){const s=[];switch(t){case"sdkLoader":s.push(/^(https?:)?\/\/install\.(\w+\.)?fullview\.io(\/(main\.js)?)?/i),s.push(/^(https?:)?\/\/api\.(\w+\.)?fullview\.io\/v1\/install(\/(main\.js)?)?/i),(a||!e)&&s.push(/^(https?:)?\/\/localhost:3001\/src\/index\.ts/i);break;case"sdk":s.push(/^(https?:)?\/\/install\.(\w+\.)?fullview\.io\/sdk\.js/i),s.push(/^(https?:)?\/\/api\.(\w+\.)?fullview\.io\/v1\/install\/sdk\.js/i),(a||!e)&&(s.push(/^(https?:)?\/\/localhost:3002\/src\/index\.tsx/i),s.push(/^(https?:)?\/\/localhost:4000\/sdk\.js/i));break}return s}function eO(e){var s;const t=Array.from(document.querySelectorAll("script")).filter(r=>Xp(e,n=>n.test(r.src)));return(s=t==null?void 0:t[0])==null?void 0:s.src}async function tO(e){await new Promise(a=>setTimeout(a,e))}const aO=Symbol("BREAK_RETRY");async function rs(e,a,t=1){const{noOfRetries:s=3,sleepFn:r}=a;return s<t?Promise.reject():e().catch(async n=>t>=s||n===aO?Promise.reject(n):(await tO(r(t)),rs(e,a,t+1)))}async function sO(e,a={}){if("sleepFn"in a)return rs(e,a);{const{sleepTime:t=1e3}=a;return rs(e,{...a,sleepFn:()=>t})}}const rO={noOfRetries:10,sleepTime:2500};var nO=typeof process=="object"&&{APP_REGION:'"us1"',APP_ENV:'"prod"',APP_FV_REGION:'"us1"',APP_VERSION:'"1.980.0"',APP_NAME:'"sdk-loader"'}&&{APP_REGION:'"us1"',APP_ENV:'"prod"',APP_FV_REGION:'"us1"',APP_VERSION:'"1.980.0"',APP_NAME:'"sdk-loader"'}.NODE_DEBUG&&/\bsemver\b/i.test({APP_REGION:'"us1"',APP_ENV:'"prod"',APP_FV_REGION:'"us1"',APP_VERSION:'"1.980.0"',APP_NAME:'"sdk-loader"'}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};const oO="2.0.0",Jn=256,iO=Number.MAX_SAFE_INTEGER||9007199254740991,lO=16,cO=Jn-6;var hO={MAX_LENGTH:Jn,MAX_SAFE_COMPONENT_LENGTH:lO,MAX_SAFE_BUILD_LENGTH:cO,MAX_SAFE_INTEGER:iO,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:oO,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Xn={exports:{}};(function(e,a){const{MAX_SAFE_COMPONENT_LENGTH:t,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:r}=hO,n=nO;a=e.exports={};const o=a.re=[],i=a.safeRe=[],l=a.src=[],c=a.t={};let d=0;const p="[a-zA-Z0-9-]",w=[["\\s",1],["\\d",r],[p,s]],C=j=>{for(const[U,W]of w)j=j.split(`${U}*`).join(`${U}{0,${W}}`).split(`${U}+`).join(`${U}{1,${W}}`);return j},O=(j,U,W)=>{const z=C(U),Y=d++;n(j,Y,U),c[j]=Y,l[Y]=U,o[Y]=new RegExp(U,W?"g":void 0),i[Y]=new RegExp(z,W?"g":void 0)};O("NUMERICIDENTIFIER","0|[1-9]\\d*"),O("NUMERICIDENTIFIERLOOSE","\\d+"),O("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),O("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),O("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),O("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),O("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),O("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),O("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),O("BUILDIDENTIFIER",`${p}+`),O("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),O("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),O("FULL",`^${l[c.FULLPLAIN]}$`),O("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),O("LOOSE",`^${l[c.LOOSEPLAIN]}$`),O("GTLT","((?:<|>)?=?)"),O("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),O("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),O("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),O("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),O("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),O("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),O("COERCEPLAIN",`(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?`),O("COERCE",`${l[c.COERCEPLAIN]}(?:$|[^\\d])`),O("COERCEFULL",l[c.COERCEPLAIN]+`(?:${l[c.PRERELEASE]})?(?:${l[c.BUILD]})?(?:$|[^\\d])`),O("COERCERTL",l[c.COERCE],!0),O("COERCERTLFULL",l[c.COERCEFULL],!0),O("LONETILDE","(?:~>?)"),O("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),a.tildeTrimReplace="$1~",O("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),O("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),O("LONECARET","(?:\\^)"),O("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),a.caretTrimReplace="$1^",O("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),O("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),O("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),O("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),O("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),a.comparatorTrimReplace="$1$2$3",O("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),O("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),O("STAR","(<|>)?=?\\s*\\*"),O("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),O("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Xn,Xn.exports);const Kn=class ls extends EventTarget{constructor(a=1,t){super(),this.timerId=null,this.enabled=!1,this.__interval=a,this.timerObject=t,this.boundTick=this.tick.bind(this),this.last=Date.now()}get interval(){return this.__interval}setInterval(a){this.__interval=a,this.timerId!==null&&(this.stop(),this.enabled&&this.start())}start(){this.enabled=!0,this.timerId===null&&(this.timerId=this.timerObject.setTimeout(this.boundTick,this.__interval),this.last=Date.now())}stop(){this.enabled=!1,this.timerId!==null&&(this.timerObject.clearTimeout(this.timerId),this.timerId=null)}tick(){if(this.enabled){const a=Date.now()-this.last;if(a>0&&a<this.__interval*ls.intervalScale){this.timerId=this.timerObject.setTimeout(this.boundTick,this.__interval-a);return}this.timerId!==null&&(this.timerObject.clearTimeout(this.timerId),this.timerId=null),this.dispatchEvent(new CustomEvent(ls.TICK,{detail:{elapsed:a}})),this.enabled&&(this.stop(),this.start())}}};Kn.TICK="tick",Kn.intervalScale=.8;const dO=1e3*60*10;class uO{constructor(){this.$isReady=new bs(!1),this.offset=0,this.$destroy=new Dt,this.isReady=()=>ti(this.$isReady.pipe(Ri(Boolean)))}initialize(){return this.fetchServerTime(),mi(dO).pipe(Qs(this.$destroy)).subscribe(this.fetchServerTime.bind(this)),()=>this.$destroy.next()}offsetTimestamp(a){return a?a+this.offset:Date.now()+this.offset}offsetDate(a){return a?new Date(a.getTime()+this.offset):new Date(Date.now()+this.offset)}offsetCustomerEventTimestamp(a){oh(a.type)&&(a.payload.timestamp+=this.offset),a.timestamp&&(a.timestamp+=this.offset)}fetchServerTime(){if(this.fetchTimePromise)return;let a;this.fetchTimePromise=sO(()=>(a=Date.now(),qr.ui.getServerTime().catch(t=>{throw this.handleError(t,!0),t})),rO).then(({data:t})=>{const s=Date.now(),r=(s-a)/2;return this.setOffset(Math.trunc(t?t+r-s:0)),!0}).catch(t=>this.handleError(t)).finally(()=>delete this.fetchTimePromise)}setOffset(a){this.offset=a,this.$isReady.next(!0)}handleError(a,t=!1){Ve.error("api","Failed to fetch server time",{error:a,isRetry:t})}}new uO;class pO{constructor(){this.$disable=new Dt}init(){Pi(mt(document,"click"),mt(document,"dblclick"),mt(document,"contextmenu")).pipe(Ai(1),Qs(this.$disable)).subscribe(()=>{const a=_t.tone("blank");a.raw.volume=0,a.play()})}}new pO;var Zn={exports:{}};(function(e){var a=Object.prototype.hasOwnProperty,t="~";function s(){}Object.create&&(s.prototype=Object.create(null),new s().__proto__||(t=!1));function r(l,c,d){this.fn=l,this.context=c,this.once=d||!1}function n(l,c,d,p,w){if(typeof d!="function")throw new TypeError("The listener must be a function");var C=new r(d,p||l,w),O=t?t+c:c;return l._events[O]?l._events[O].fn?l._events[O]=[l._events[O],C]:l._events[O].push(C):(l._events[O]=C,l._eventsCount++),l}function o(l,c){--l._eventsCount===0?l._events=new s:delete l._events[c]}function i(){this._events=new s,this._eventsCount=0}i.prototype.eventNames=function(){var c=[],d,p;if(this._eventsCount===0)return c;for(p in d=this._events)a.call(d,p)&&c.push(t?p.slice(1):p);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(d)):c},i.prototype.listeners=function(c){var d=t?t+c:c,p=this._events[d];if(!p)return[];if(p.fn)return[p.fn];for(var w=0,C=p.length,O=new Array(C);w<C;w++)O[w]=p[w].fn;return O},i.prototype.listenerCount=function(c){var d=t?t+c:c,p=this._events[d];return p?p.fn?1:p.length:0},i.prototype.emit=function(c,d,p,w,C,O){var j=t?t+c:c;if(!this._events[j])return!1;var U=this._events[j],W=arguments.length,z,Y;if(U.fn){switch(U.once&&this.removeListener(c,U.fn,void 0,!0),W){case 1:return U.fn.call(U.context),!0;case 2:return U.fn.call(U.context,d),!0;case 3:return U.fn.call(U.context,d,p),!0;case 4:return U.fn.call(U.context,d,p,w),!0;case 5:return U.fn.call(U.context,d,p,w,C),!0;case 6:return U.fn.call(U.context,d,p,w,C,O),!0}for(Y=1,z=new Array(W-1);Y<W;Y++)z[Y-1]=arguments[Y];U.fn.apply(U.context,z)}else{var $=U.length,Ee;for(Y=0;Y<$;Y++)switch(U[Y].once&&this.removeListener(c,U[Y].fn,void 0,!0),W){case 1:U[Y].fn.call(U[Y].context);break;case 2:U[Y].fn.call(U[Y].context,d);break;case 3:U[Y].fn.call(U[Y].context,d,p);break;case 4:U[Y].fn.call(U[Y].context,d,p,w);break;default:if(!z)for(Ee=1,z=new Array(W-1);Ee<W;Ee++)z[Ee-1]=arguments[Ee];U[Y].fn.apply(U[Y].context,z)}}return!0},i.prototype.on=function(c,d,p){return n(this,c,d,p,!1)},i.prototype.once=function(c,d,p){return n(this,c,d,p,!0)},i.prototype.removeListener=function(c,d,p,w){var C=t?t+c:c;if(!this._events[C])return this;if(!d)return o(this,C),this;var O=this._events[C];if(O.fn)O.fn===d&&(!w||O.once)&&(!p||O.context===p)&&o(this,C);else{for(var j=0,U=[],W=O.length;j<W;j++)(O[j].fn!==d||w&&!O[j].once||p&&O[j].context!==p)&&U.push(O[j]);U.length?this._events[C]=U.length===1?U[0]:U:o(this,C)}return this},i.prototype.removeAllListeners=function(c){var d;return c?(d=t?t+c:c,this._events[d]&&o(this,d)):(this._events=new s,this._eventsCount=0),this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prefixed=t,i.EventEmitter=i,e.exports=i})(Zn);var OO=Zn.exports;class mO{constructor(){this.emitter=new OO.EventEmitter}emit(a,...t){this.emitter.emit(a,...t)}off(a,t){this.emitter.off(a,t)}offPipe(a,t){return this.off(a,t),this}on(a,t){return this.emitter.on(a,t),()=>this.off(a,t)}onPipe(a,t){return this.on(a,t),this}once(a,t){return this.emitter.once(a,t),()=>this.off(a,t)}oncePipe(a,t){return this.once(a,t),this}}class PO extends mO{initialize(){if(!(Storage!=null&&Storage.prototype))return Oo;const a=Storage.prototype.setItem,t=Storage.prototype.removeItem,s=Storage.prototype.clear,r=this;return Storage.prototype.setItem=function(n,o){return r.emit("storageChanged",{key:n,oldValue:localStorage.getItem(n),newValue:o}),a.call(this,n,o)},Storage.prototype.removeItem=function(n){return r.emit("storageChanged",{key:n,oldValue:localStorage.getItem(n),newValue:null}),t.call(this,n)},Storage.prototype.clear=function(){return r.emit("storageCleared"),s.call(this)},()=>{Storage.prototype.setItem=a,Storage.prototype.removeItem=t,Storage.prototype.clear=s}}}new PO;const ze=St();let ns=!1;const RO=e=>{if(ns){Ve.log("runtime","SDK Script is already attached");return}const a=hh(ze.fvRegion,{...e,component:"sdk"});ze.isLocalProcess&&(a.type="module"),document.head.insertBefore(a,document.head.firstChild),ns=!0,window.$fvRemoveSDKScript=()=>{Ve.log("process","Removing SDK Script"),a.remove(),ns=!1}};function eo(e){qr.organisation.getLoaderConfig(e.organisationId,"sdk").then(({data:{version:a,isBlocked:t}={}})=>{if(t||!a){Ve.log("version",`Organisation ${e.organisationId} is blocked or SDK version is not provided`);return}RO({...e,version:a})}).catch(a=>{Ve.error("runtime","No SDK version provided. SDK will not be loaded.",{err:a})})}function AO(){return Ve.setMeta({runtime:ze}),Ve.log("runtime",`v${ze.version}`,ze),()=>{}}const to={isMock:!0,identify(e,a){window.$fvIdentity={...a,id:e}},endSession(){},displayRequestSupportWidget(){},requestSupport(){return Promise.resolve(!1)},displayTriggerButton(){},requestFullSnapshot(){},cancelSupportRequest(){return Promise.resolve()},resizeCoBrowseWindow(e,a){},changeCoBrowseWindowPosition(e){},generateIdentificationCode(){}};function EO(){return window.Fullview=to,()=>{window.Fullview=to}}const os=document.currentScript;try{const{organisationId:e,sdkWorkerCustomPath:a}=Kp({isProd:ze.isProd,isLocalProcess:ze.isLocalProcess,context:"sdkLoader"});if(!e)throw new Error("No organisation ID provided. SDK Loader will not be loaded.");eo({organisationId:e,sdkWorkerCustomPath:a});const t=[EO(),AO()],s=()=>{var r;(r=window.$fvUnloadSDK)==null||r.call(window),t.forEach(n=>n()),os==null||os.remove()};window.$fvUnloadSDKLoader=()=>{Ve.log("process","Unloading SDK Loader"),s()},window.$fvReloadSDKLoader=()=>{Ve.log("process","Reloading SDK Loader"),s(),eo({organisationId:e,sdkWorkerCustomPath:a})}}catch(e){Ve.error("unhandled","Top level error",e)}})();
