@causalfoundry/js-sdk
Version:
Causal Foundry WEB SDK (JS/TS)
1 lines • 315 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.init=t():e.init=t()}(this,(function(){return(()=>{var e={9669:(e,t,r)=>{e.exports=r(1609)},7970:(e,t,r)=>{"use strict";var n=r(4867),o=r(6026),i=r(4097),a=r(5327),s=r(3685),c=r(5687),u=r(938).http,l=r(938).https,p=r(7310),d=r(9796),f=r(8593),m=r(5061),h=r(481),g=/https:?/;function y(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(e){e.headers.host=e.host,y(e,t,e.href)}}e.exports=function(e){return new Promise((function(t,r){var v=function(e){t(e)},b=function(e){r(e)},w=e.data,_=e.headers;if("User-Agent"in _||"user-agent"in _?_["User-Agent"]||_["user-agent"]||(delete _["User-Agent"],delete _["user-agent"]):_["User-Agent"]="axios/"+f.version,w&&!n.isStream(w)){if(Buffer.isBuffer(w));else if(n.isArrayBuffer(w))w=Buffer.from(new Uint8Array(w));else{if(!n.isString(w))return b(m("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));w=Buffer.from(w,"utf-8")}_["Content-Length"]=w.length}var E=void 0;e.auth&&(E=(e.auth.username||"")+":"+(e.auth.password||""));var S=i(e.baseURL,e.url),T=p.parse(S),C=T.protocol||"http:";if(!E&&T.auth){var A=T.auth.split(":");E=(A[0]||"")+":"+(A[1]||"")}E&&delete _.Authorization;var O=g.test(C),k=O?e.httpsAgent:e.httpAgent,P={path:a(T.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:_,agent:k,agents:{http:e.httpAgent,https:e.httpsAgent},auth:E};e.socketPath?P.socketPath=e.socketPath:(P.hostname=T.hostname,P.port=T.port);var I,x=e.proxy;if(!x&&!1!==x){var R=C.slice(0,-1)+"_proxy",L=process.env[R]||process.env[R.toUpperCase()];if(L){var D=p.parse(L),M=process.env.no_proxy||process.env.NO_PROXY,j=!0;if(M&&(j=!M.split(",").map((function(e){return e.trim()})).some((function(e){return!!e&&("*"===e||"."===e[0]&&T.hostname.substr(T.hostname.length-e.length)===e||T.hostname===e)}))),j&&(x={host:D.hostname,port:D.port,protocol:D.protocol},D.auth)){var N=D.auth.split(":");x.auth={username:N[0],password:N[1]}}}}x&&(P.headers.host=T.hostname+(T.port?":"+T.port:""),y(P,x,C+"//"+T.hostname+(T.port?":"+T.port:"")+P.path));var B=O&&(!x||g.test(x.protocol));e.transport?I=e.transport:0===e.maxRedirects?I=B?c:s:(e.maxRedirects&&(P.maxRedirects=e.maxRedirects),I=B?l:u),e.maxBodyLength>-1&&(P.maxBodyLength=e.maxBodyLength);var F=I.request(P,(function(t){if(!F.aborted){var r=t,i=t.req||F;if(204!==t.statusCode&&"HEAD"!==i.method&&!1!==e.decompress)switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=r.pipe(d.createUnzip()),delete t.headers["content-encoding"]}var a={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:i};if("stream"===e.responseType)a.data=r,o(v,b,a);else{var s=[],c=0;r.on("data",(function(t){s.push(t),c+=t.length,e.maxContentLength>-1&&c>e.maxContentLength&&(r.destroy(),b(m("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,i)))})),r.on("error",(function(t){F.aborted||b(h(t,e,null,i))})),r.on("end",(function(){var t=Buffer.concat(s);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(t=n.stripBOM(t))),a.data=t,o(v,b,a)}))}}}));if(F.on("error",(function(t){F.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==t.code||b(h(t,e,null,F))})),e.timeout){var U=parseInt(e.timeout,10);if(isNaN(U))return void b(m("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",F));F.setTimeout(U,(function(){F.abort(),b(m("timeout of "+U+"ms exceeded",e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",F))}))}e.cancelToken&&e.cancelToken.promise.then((function(e){F.aborted||(F.abort(),b(e))})),n.isStream(w)?w.on("error",(function(t){b(h(t,e,null,F))})).pipe(F):F.end(w)}))}},5448:(e,t,r)=>{"use strict";var n=r(4867),o=r(6026),i=r(4372),a=r(5327),s=r(4097),c=r(4109),u=r(7985),l=r(5061);e.exports=function(e){return new Promise((function(t,r){var p=e.data,d=e.headers,f=e.responseType;n.isFormData(p)&&delete d["Content-Type"];var m=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(h+":"+g)}var y=s(e.baseURL,e.url);function v(){if(m){var n="getAllResponseHeaders"in m?c(m.getAllResponseHeaders()):null,i={data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m};o(t,r,i),m=null}}if(m.open(e.method.toUpperCase(),a(y,e.params,e.paramsSerializer),!0),m.timeout=e.timeout,"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(v)},m.onabort=function(){m&&(r(l("Request aborted",e,"ECONNABORTED",m)),m=null)},m.onerror=function(){r(l("Network Error",e,null,m)),m=null},m.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(l(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",m)),m=null},n.isStandardBrowserEnv()){var b=(e.withCredentials||u(y))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}"setRequestHeader"in m&&n.forEach(d,(function(e,t){void 0===p&&"content-type"===t.toLowerCase()?delete d[t]:m.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),f&&"json"!==f&&(m.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&m.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){m&&(m.abort(),r(e),m=null)})),p||(p=null),m.send(p)}))}},1609:(e,t,r)=>{"use strict";var n=r(4867),o=r(1849),i=r(321),a=r(7185);function s(e){var t=new i(e),r=o(i.prototype.request,t);return n.extend(r,i.prototype,t),n.extend(r,t),r}var c=s(r(5655));c.Axios=i,c.create=function(e){return s(a(c.defaults,e))},c.Cancel=r(5263),c.CancelToken=r(4972),c.isCancel=r(6502),c.all=function(e){return Promise.all(e)},c.spread=r(8713),c.isAxiosError=r(6268),e.exports=c,e.exports.default=c},5263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:(e,t,r)=>{"use strict";var n=r(5263);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,r)=>{"use strict";var n=r(4867),o=r(5327),i=r(782),a=r(3572),s=r(7185),c=r(4875),u=c.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var r=[],n=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(n=n&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!n){var l=[a,void 0];for(Array.prototype.unshift.apply(l,r),l=l.concat(i),o=Promise.resolve(e);l.length;)o=o.then(l.shift(),l.shift());return o}for(var p=e;r.length;){var d=r.shift(),f=r.shift();try{p=d(p)}catch(e){f(e);break}}try{o=a(p)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,r,n){return this.request(s(n||{},{method:e,url:t,data:r}))}})),e.exports=l},782:(e,t,r)=>{"use strict";var n=r(4867);function o(){this.handlers=[]}o.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},4097:(e,t,r)=>{"use strict";var n=r(1793),o=r(7303);e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},5061:(e,t,r)=>{"use strict";var n=r(481);e.exports=function(e,t,r,o,i){var a=new Error(e);return n(a,t,r,o,i)}},3572:(e,t,r)=>{"use strict";var n=r(4867),o=r(8527),i=r(6502),a=r(5655);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e.isAxiosError=!0,e.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}},e}},7185:(e,t,r)=>{"use strict";var n=r(4867);e.exports=function(e,t){t=t||{};var r={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function u(o){n.isUndefined(t[o])?n.isUndefined(e[o])||(r[o]=c(void 0,e[o])):r[o]=c(e[o],t[o])}n.forEach(o,(function(e){n.isUndefined(t[e])||(r[e]=c(void 0,t[e]))})),n.forEach(i,u),n.forEach(a,(function(o){n.isUndefined(t[o])?n.isUndefined(e[o])||(r[o]=c(void 0,e[o])):r[o]=c(void 0,t[o])})),n.forEach(s,(function(n){n in t?r[n]=c(e[n],t[n]):n in e&&(r[n]=c(void 0,e[n]))}));var l=o.concat(i).concat(a).concat(s),p=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===l.indexOf(e)}));return n.forEach(p,u),r}},6026:(e,t,r)=>{"use strict";var n=r(5061);e.exports=function(e,t,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},8527:(e,t,r)=>{"use strict";var n=r(4867),o=r(5655);e.exports=function(e,t,r){var i=this||o;return n.forEach(r,(function(r){e=r.call(i,e,t)})),e}},5655:(e,t,r)=>{"use strict";var n=r(4867),o=r(6016),i=r(481),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:("undefined"!=typeof XMLHttpRequest?c=r(5448):"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(c=r(7970)),c),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,r){if(n.isString(e))try{return(0,JSON.parse)(e),n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,r=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!r&&"json"===this.responseType;if(a||o&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){u.headers[e]=n.merge(a)})),e.exports=u},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},5327:(e,t,r)=>{"use strict";var n=r(4867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var a=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,r)=>{"use strict";var n=r(4867);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},6268:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},7985:(e,t,r)=>{"use strict";var n=r(4867);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},6016:(e,t,r)=>{"use strict";var n=r(4867);e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},4109:(e,t,r)=>{"use strict";var n=r(4867),o=["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"];e.exports=function(e){var t,r,i,a={};return e?(n.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}})),a):a}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4875:(e,t,r)=>{"use strict";var n=r(8593),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var i={},a=n.version.split(".");function s(e,t){for(var r=t?t.split("."):a,n=e.split("."),o=0;o<3;o++){if(r[o]>n[o])return!0;if(r[o]<n[o])return!1}return!1}o.transitional=function(e,t,r){var o=t&&s(t);function a(e,t){return"[Axios v"+n.version+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new Error(a(n," has been removed in "+t));return o&&!i[n]&&(i[n]=!0,console.warn(a(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={isOlderVersion:s,assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),o=n.length;o-- >0;){var i=n[o],a=t[i];if(a){var s=e[i],c=void 0===s||a(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:o}},4867:(e,t,r)=>{"use strict";var n=r(1849),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:c,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return s(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function e(){var t={};function r(r,n){c(t[n])&&c(r)?t[n]=e(t[n],r):c(r)?t[n]=e({},r):i(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)l(arguments[n],r);return t},extend:function(e,t,r){return l(t,(function(t,o){e[o]=r&&"function"==typeof t?n(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},2954:(e,t,r)=>{"use strict";var n,o,i,a,s,c,u;r.r(t),r.d(t,{QuestionType:()=>n,CurrencyCode:()=>o,Country:()=>i,Language:()=>a,CfLogEvents:()=>s,CfLogEventType:()=>c,NudgeScreenType:()=>u}),function(e){e.OpenEnded="open_ended",e.ClosedEnded="closed_ended",e.Nominal="nominal",e.LikertScale="likert_scale",e.RatingScale="rating_scale",e.YesNo="yes_no",e.Interview="interview",e.Other="other"}(n||(n={})),function(e){e.AED="AED",e.AFN="AFN",e.ALL="ALL",e.AMD="AMD",e.ANG="ANG",e.AOA="AOA",e.ARS="ARS",e.AUD="AUD",e.AWG="AWG",e.AZN="AZN",e.BAM="BAM",e.BBD="BBD",e.BDT="BDT",e.BGN="BGN",e.BHD="BHD",e.BIF="BIF",e.BMD="BMD",e.BND="BND",e.BOB="BOB",e.BRL="BRL",e.BSD="BSD",e.BTN="BTN",e.BWP="BWP",e.BYR="BYR",e.BZD="BZD",e.CAD="CAD",e.CDF="CDF",e.CHF="CHF",e.CLP="CLP",e.CNY="CNY",e.COP="COP",e.CRC="CRC",e.CUC="CUC",e.CUP="CUP",e.CVE="CVE",e.CZK="CZK",e.DJF="DJF",e.DKK="DKK",e.DOP="DOP",e.DZD="DZD",e.EGP="EGP",e.ERN="ERN",e.ETB="ETB",e.EUR="EUR",e.FJD="FJD",e.FKP="FKP",e.GBP="GBP",e.GEL="GEL",e.GGP="GGP",e.GHS="GHS",e.GIP="GIP",e.GMD="GMD",e.GNF="GNF",e.GTQ="GTQ",e.GYD="GYD",e.HKD="HKD",e.HNL="HNL",e.HRK="HRK",e.HTG="HTG",e.HUF="HUF",e.IDR="IDR",e.ILS="ILS",e.IMP="IMP",e.INR="INR",e.IQD="IQD",e.IRR="IRR",e.ISK="ISK",e.JEP="JEP",e.JMD="JMD",e.JOD="JOD",e.JPY="JPY",e.KES="KES",e.KGS="KGS",e.KHR="KHR",e.KMF="KMF",e.KPW="KPW",e.KRW="KRW",e.KWD="KWD",e.KYD="KYD",e.KZT="KZT",e.LAK="LAK",e.LBP="LBP",e.LKR="LKR",e.LRD="LRD",e.LSL="LSL",e.LYD="LYD",e.MAD="MAD",e.MDL="MDL",e.MGA="MGA",e.MKD="MKD",e.MMK="MMK",e.MNT="MNT",e.MOP="MOP",e.MRO="MRO",e.MUR="MUR",e.MVR="MVR",e.MWK="MWK",e.MXN="MXN",e.MYR="MYR",e.MZN="MZN",e.NAD="NAD",e.NGN="NGN",e.NIO="NIO",e.NOK="NOK",e.NPR="NPR",e.NZD="NZD",e.OMR="OMR",e.PAB="PAB",e.PEN="PEN",e.PGK="PGK",e.PHP="PHP",e.PKR="PKR",e.PLN="PLN",e.PYG="PYG",e.QAR="QAR",e.RON="RON",e.RSD="RSD",e.RUB="RUB",e.RWF="RWF",e.SAR="SAR",e.SBD="SBD",e.SCR="SCR",e.SDG="SDG",e.SEK="SEK",e.SGD="SGD",e.SHP="SHP",e.SLL="SLL",e.SOS="SOS",e.SPL="SPL",e.SRD="SRD",e.STD="STD",e.SVC="SVC",e.SYP="SYP",e.SZL="SZL",e.THB="THB",e.TJS="TJS",e.TMT="TMT",e.TND="TND",e.TOP="TOP",e.TRY="TRY",e.TTD="TTD",e.TVD="TVD",e.TWD="TWD",e.TZS="TZS",e.UAH="UAH",e.UGX="UGX",e.USD="USD",e.UYU="UYU",e.UZS="UZS",e.VEF="VEF",e.VND="VND",e.VUV="VUV",e.WST="WST",e.XAF="XAF",e.XCD="XCD",e.XDR="XDR",e.XOF="XOF",e.XPF="XPF",e.YER="YER",e.ZAR="ZAR",e.ZMW="ZMW",e.ZWD="ZWD"}(o||(o={})),function(e){e.Ascension_Island="Ascension Island",e.Andorra="Andorra",e.United_Arab_Emirates="United Arab Emirates",e.Afghanistan="Afghanistan",e.Antigua_and_Barbuda="Antigua and Barbuda",e.Anguilla="Anguilla",e.Albania="Albania",e.Armenia="Armenia",e.Netherlands_Antilles="Netherlands Antilles",e.Angola="Angola",e.Antarctica="Antarctica",e.Argentina="Argentina",e.American_Samoa="American Samoa",e.Austria="Austria",e.Australia="Australia",e.Aruba="Aruba",e.Aland_Islands="Aland Islands",e.Azerbaijan="Azerbaijan",e.Bosnia_and_Herzegovina="Bosnia and Herzegovina",e.Barbados="Barbados",e.Bangladesh="Bangladesh",e.Belgium="Belgium",e.Burkina_Faso="Burkina Faso",e.Bulgaria="Bulgaria",e.Bahrain="Bahrain",e.Burundi="Burundi",e.Benin="Benin",e.Saint_Barthelemy="Saint Barthelemy",e.Bermuda="Bermuda",e.Brunei_Darussalam="Brunei Darussalam",e.Bolivia="Bolivia",e.Caribbean_Netherlands="Caribbean Netherlands",e.Brazil="Brazil",e.Bahamas="Bahamas",e.Bhutan="Bhutan",e.Burma="Burma",e.Bouvet_Island="Bouvet Island",e.Botswana="Botswana",e.Belarus="Belarus",e.Belize="Belize",e.Canada="Canada",e.Cocos_Islands="Cocos Islands",e.Democratic_Republic_Congo="Democratic Republic Congo",e.Central_African_Republic="Central African Republic",e.Congo="Congo",e.Switzerland="Switzerland",e.Ivory_Coast="Ivory Coast",e.Cook_Islands="Cook Islands",e.Chile="Chile",e.Cameroon="Cameroon",e.China="China",e.Colombia="Colombia",e.Clipperton_Island="Clipperton Island",e.Costa_Rica="Costa Rica",e.Serbia_and_Montenegro="Serbia and Montenegro",e.Cuba="Cuba",e.Cape_Verde="Cape Verde",e.Curacao="Curacao",e.Christmas_Island="Christmas Island",e.Cyprus="Cyprus",e.Czech_Republic="Czech Republic",e.Germany="Germany",e.Diego_Garcia="Diego Garcia",e.Djibouti="Djibouti",e.Denmark="Denmark",e.Dominica="Dominica",e.Dominican_Republic="Dominican Republic",e.Algeria="Algeria",e.Ceuta_Melilla="Ceuta Melilla",e.Ecuador="Ecuador",e.Estonia="Estonia",e.Egypt="Egypt",e.Western_Sahara="Western Sahara",e.Eritrea="Eritrea",e.Spain="Spain",e.Ethiopia="Ethiopia",e.European_Union="European Union",e.Eurozone="Eurozone",e.Finland="Finland",e.Fiji="Fiji",e.Malvinas="Malvinas",e.Micronesia="Micronesia",e.Faroe_Islands="Faroe Islands",e.France="France",e.France_Metropolitan="France Metropolitan",e.Gabon="Gabon",e.United_Kingdom="United Kingdom",e.Grenada="Grenada",e.Georgia="Georgia",e.French_Guiana="French Guiana",e.Guernsey="Guernsey",e.Ghana="Ghana",e.Gibraltar="Gibraltar",e.Greenland="Greenland",e.Gambia="Gambia",e.Guinea="Guinea",e.Guadeloupe="Guadeloupe",e.Equatorial_Guinea="Equatorial Guinea",e.Greece="Greece",e.South_Georgia_and_South_Sandwich_Islands="South Georgia and South Sandwich Islands",e.Guatemala="Guatemala",e.Guam="Guam",e.Guinea_Bissau="Guinea Bissau",e.Guyana="Guyana",e.Hong_Kong="Hong Kong",e.Heard_Island_and_McDonald_Islands="Heard Island and McDonald Islands",e.Honduras="Honduras",e.Croatia="Croatia",e.Haiti="Haiti",e.Hungary="Hungary",e.Canary_Islands="Canary Islands",e.Indonesia="Indonesia",e.Ireland="Ireland",e.Israel="Israel",e.Isle_of_Man="Isle of Man",e.India="India",e.British_Indian_Ocean_Territory="British Indian Ocean Territory",e.Iraq="Iraq",e.Iran="Iran",e.Iceland="Iceland",e.Italy="Italy",e.Jersey="Jersey",e.Jamaica="Jamaica",e.Jordan="Jordan",e.Japan="Japan",e.Kenya="Kenya",e.Kyrgyzstan="Kyrgyzstan",e.Cambodia="Cambodia",e.Kiribati="Kiribati",e.Comoros="Comoros",e.Saint_Kitts_and_Nevis="Saint Kitts and Nevis",e.North_Korea="North Korea",e.South_Korea="South Korea",e.Kuwait="Kuwait",e.Cayman_Islands="Cayman Islands",e.Kazakhstan="Kazakhstan",e.Lao="Lao",e.Lebanon="Lebanon",e.Saint_Lucia="Saint Lucia",e.Liechtenstein="Liechtenstein",e.Sri_Lanka="Sri Lanka",e.Liberia="Liberia",e.Lesotho="Lesotho",e.Lithuania="Lithuania",e.Luxembourg="Luxembourg",e.Latvia="Latvia",e.Libya="Libya",e.Morocco="Morocco",e.Monaco="Monaco",e.Moldova="Moldova",e.Montenegro="Montenegro",e.Saint_Martin="Saint Martin",e.Madagascar="Madagascar",e.Marshall_Islands="Marshall Islands",e.North_Macedonia="North Macedonia",e.Mali="Mali",e.Myanmar="Myanmar",e.Mongolia="Mongolia",e.Macao="Macao",e.Northern_Mariana_Islands="Northern Mariana Islands",e.Martinique="Martinique",e.Mauritania="Mauritania",e.Montserrat="Montserrat",e.Malta="Malta",e.Mauritius="Mauritius",e.Maldives="Maldives",e.Malawi="Malawi",e.Mexico="Mexico",e.Malaysia="Malaysia",e.Mozambique="Mozambique",e.Namibia="Namibia",e.New_Caledonia="New Caledonia",e.Niger="Niger",e.Norfolk_Island="Norfolk Island",e.Nigeria="Nigeria",e.Nicaragua="Nicaragua",e.Netherlands="Netherlands",e.Norway="Norway",e.Nepal="Nepal",e.Nauru="Nauru",e.Neutral_Zone="Neutral Zone",e.Niue="Niue",e.New_Zealand="New Zealand",e.Oman="Oman",e.Panama="Panama",e.Peru="Peru",e.French_Polynesia="French Polynesia",e.Papua_New_Guinea="Papua New Guinea",e.Philippines="Philippines",e.Pakistan="Pakistan",e.Poland="Poland",e.Saint_Pierre_and_Miquelon="Saint Pierre and Miquelon",e.Pitcairn="Pitcairn",e.Puerto_Rico="Puerto Rico",e.Palestine="Palestine",e.Portugal="Portugal",e.Palau="Palau",e.Paraguay="Paraguay",e.Qatar="Qatar",e.Reunion="Reunion",e.Romania="Romania",e.Serbia="Serbia",e.Russia="Russia",e.Rwanda="Rwanda",e.Saudi_Arabia="Saudi Arabia",e.Solomon_Islands="Solomon Islands",e.Seychelles="Seychelles",e.Sudan="Sudan",e.Sweden="Sweden",e.Singapore="Singapore",e.Saint_Helena="Saint Helena",e.Slovenia="Slovenia",e.Svalbard="Svalbard",e.Slovakia="Slovakia",e.Sierra_Leone="Sierra Leone",e.San_Marino="San Marino",e.Senegal="Senegal",e.Somalia="Somalia",e.Suriname="Suriname",e.South_Sudan="South Sudan",e.Sao_Tome_and_Principe="Sao Tome and Principe",e.USSR="USSR",e.El_Salvador="El Salvador",e.Sint_Maarten="Sint Maarten",e.Syria="Syria",e.Eswatini="Eswatini",e.Turks_and_Caicos_Islands="Turks and Caicos Islands",e.French_Southern_Territories="French Southern Territories",e.Togo="Togo",e.Thailand="Thailand",e.Tajikistan="Tajikistan",e.Tokelau="Tokelau",e.Timor_Leste="Timor Leste",e.Turkmenistan="Turkmenistan",e.Tunisia="Tunisia",e.Tonga="Tonga",e.East_Timor="East Timor",e.Turkey="Turkey",e.Trinidad_and_Tobago="Trinidad and Tobago",e.Tuvalu="Tuvalu",e.Taiwan="Taiwan",e.Tanzania="Tanzania",e.Ukraine="Ukraine",e.Uganda="Uganda",e.United_States_Minor_Outlying_Islands="United States Minor Outlying Islands",e.United_States="United States",e.Uruguay="Uruguay",e.Uzbekistan="Uzbekistan",e.Vatican="Vatican",e.Saint_Vincent_and_Grenadines="Saint Vincent and Grenadines",e.Venezuela="Venezuela",e.British_Virgin_Islands="British Virgin Islands",e.US_Virgin_Islands="US Virgin Islands",e.Vietnam="Vietnam",e.Vanuatu="Vanuatu",e.Wallis_and_Futuna="Wallis and Futuna",e.Samoa="Samoa",e.Northern_Ireland="Northern Ireland",e.Kosovo="Kosovo",e.Yemen="Yemen",e.Mayotte="Mayotte",e.Yugoslavia="Yugoslavia",e.South_Africa="South Africa",e.Zambia="Zambia",e.Zaire="Zaire",e.Zimbabwe="Zimbabwe"}(i||(i={})),function(e){e.Afar="Afar",e.Abkhaz="Abkhaz",e.Avestan="Avestan",e.Afrikaans="Afrikaans",e.Akan="Akan",e.Amharic="Amharic",e.Aragonese="Aragonese",e.Arabic="Arabic",e.Avaric="Avaric",e.Aymara="Aymara",e.Azerbaijani="Azerbaijani",e.Bashkir="Bashkir",e.Belarusian="Belarusian",e.Bulgarian="Bulgarian",e.Bihari="Bihari",e.Bislama="Bislama",e.Bambara="Bambara",e.Bengali="Bengali",e.Tibetan="Tibetan",e.Breton="Breton",e.Bosnian="Bosnian",e.Catalan="Catalan",e.Chechen="Chechen",e.Chamorro="Chamorro",e.Corsican="Corsican",e.Cree="Cree",e.Czech="Czech",e.Slavonic="Slavonic",e.Chuvash="Chuvash",e.Welsh="Welsh",e.Danish="Danish",e.German="German",e.Maldivian="Maldivian",e.Dzongkha="Dzongkha",e.Ewe="Ewe",e.Greek="Greek",e.English="English",e.Esperanto="Esperanto",e.Spanish="Spanish",e.Estonian="Estonian",e.Basque="Basque",e.Persian="Persian",e.Fulah="Fulah",e.Finnish="Finnish",e.Fijian="Fijian",e.Faroese="Faroese",e.French="French",e.Western_Frisian="Western_Frisian",e.Irish="Irish",e.Gaelic="Gaelic",e.Galician="Galician",e.Guarani="Guarani",e.Gujarati="Gujarati",e.Manx="Manx",e.Hausa="Hausa",e.Hebrew="Hebrew",e.Hindi="Hindi",e.Hiri_Motu="Hiri_Motu",e.Croatian="Croatian",e.Haitian="Haitian",e.Hungarian="Hungarian",e.Armenian="Armenian",e.Herero="Herero",e.Interlingua="Interlingua",e.Indonesian="Indonesian",e.Occidental="Occidental",e.Igbo="Igbo",e.Nuosu="Nuosu",e.Inupiaq="Inupiaq",e.Ido="Ido",e.Icelandic="Icelandic",e.Italian="Italian",e.Inuktitut="Inuktitut",e.Japanese="Japanese",e.Javanese="Javanese",e.Georgian="Georgian",e.Kongo="Kongo",e.Kikuyu="Kikuyu",e.Kuanyama="Kuanyama",e.Kazakh="Kazakh",e.Greenlandic="Greenlandic",e.Central_Khmer="Central_Khmer",e.Kannada="Kannada",e.Korean="Korean",e.Kanuri="Kanuri",e.Kashmiri="Kashmiri",e.Kurdish="Kurdish",e.Komi="Komi",e.Cornish="Cornish",e.Kirghiz="Kirghiz",e.Latin="Latin",e.Luxembourgish="Luxembourgish",e.Ganda="Ganda",e.Limburgish="Limburgish",e.Lingala="Lingala",e.Lao="Lao",e.Lithuanian="Lithuanian",e.Luba_katanga="Luba_katanga",e.Latvian="Latvian",e.Malagasy="Malagasy",e.Marshallese="Marshallese",e.Maori="Maori",e.Macedonian="Macedonian",e.Malayalam="Malayalam",e.Mongolian="Mongolian",e.Moldavian="Moldavian",e.Marathi="Marathi",e.Malay="Malay",e.Maltese="Maltese",e.Burmese="Burmese",e.Nauruan="Nauruan",e.Norwegian_Bokmal="Norwegian_Bokmal",e.North_Ndebele="North_Ndebele",e.Nepali="Nepali",e.Ndonga="Ndonga",e.Dutch="Dutch",e.Norwegian_Nynorsk="Norwegian_Nynorsk",e.Norwegian="Norwegian",e.South_Ndebele="South_Ndebele",e.Navajo="Navajo",e.Nyanja="Nyanja",e.Occitan="Occitan",e.Ojibwa="Ojibwa",e.Oromo="Oromo",e.Oriya="Oriya",e.Ossetian="Ossetian",e.Punjabi="Punjabi",e.Pali="Pali",e.Polish="Polish",e.Pushto="Pushto",e.Portuguese="Portuguese",e.Quechua="Quechua",e.Reunionese="Reunionese",e.Romansh="Romansh",e.Rundi="Rundi",e.Romanian="Romanian",e.Russian="Russian",e.Kinyarwanda="Kinyarwanda",e.Sanskrit="Sanskrit",e.Sardinian="Sardinian",e.Sindhi="Sindhi",e.Northern_Sami="Northern Sami",e.Sango="Sango",e.Slavic="Slavic_Languages",e.Sinhalese="Sinhalese",e.Slovak="Slovak",e.Slovenian="Slovenian",e.Samoan="Samoan",e.Shona="Shona",e.Somali="Somali",e.Albanian="Albanian",e.Serbian="Serbian",e.Swati="Swati",e.Southern_Sotho="Southern Sotho",e.Sundanese="Sundanese",e.Swedish="Swedish",e.Swahili="Swahili",e.Tamil="Tamil",e.Telugu="Telugu",e.Tajik="Tajik",e.Thai="Thai",e.Tigrinya="Tigrinya",e.Turkmen="Turkmen",e.Tagalog="Tagalog",e.Tswana="Tswana",e.Tongan="Tongan",e.Turkish="Turkish",e.Tsonga="Tsonga",e.Tatar="Tatar",e.Twi="Twi",e.Tahitian="Tahitian",e.Uighur="Uighur",e.Ukrainian="Ukrainian",e.Urdu="Urdu",e.Uzbek="Uzbek",e.Venda="Venda",e.Vietnamese="Vietnamese",e.Volapuk="Volapuk",e.Walloon="Walloon",e.Wolof="Wolof",e.Xhosa="Xhosa",e.Yiddish="Yiddish",e.Yoruba="Yoruba",e.Zhuang="Zhuang",e.Chinese="Chinese",e.Zulu="Zulu"}(a||(a={})),function(e){e.NudgeAction="nudge-action"}(s||(s={})),function(e){e.Redirect="redirect",e.AddToCart="add_to_cart"}(c||(c={})),function(e){e.None="",e.Home="home",e.Search="search",e.Product="product",e.Cart="cart",e.Checkout="checkout",e.Reminder="reminder",e.Favorite="favorite",e.Other="other"}(u||(u={}))},3226:(e,t,r)=>{"use strict";r.d(t,{CallCenter:()=>Nn,CfLog:()=>un,ECommerce:()=>Ee,ELearning:()=>fn,EmergencyMgmt:()=>Xr,Loyalty:()=>De,Navigation:()=>D,PatientMgmt:()=>Ke,Payments:()=>Tn,ReferenceGuide:()=>Pn,Social:()=>Hn}),r(9601),r(2222),r(489),r(1539),r(2419),r(7941),r(2526),r(7327),r(5003),r(4747),r(9337),r(1817),r(2165),r(6992),r(8783),r(3948);var n=r(1074);const o=require("events");r(5666),r(9826),r(8309),r(8674);var i=r(7860);const a={ECommerceTypes:n.enumtype({CancelCheckout:"cancel_checkout",Cart:"cart",Checkout:"checkout",Delivery:"delivery",Item:"item",ItemReport:"item_report",ItemRequest:"item_request",ItemVerification:"item_verification"}),ItemAction:n.enumtype({View:"view",Detail:"detail",Impression:"impression",TopUp:"top_up",Cancel:"cancel",Update:"update",Remove:"remove",Add:"add",Select:"select",AddFavorite:"add_favorite",RemoveFavorite:"remove_favorite",AddReminder:"add_reminder",RemoveReminder:"remove_reminder",RemoveReminderAuto:"remove_reminder_auto",Other:"other"}),ItemType:n.enumtype({Blood:"blood",Book:"book",Clothing:"clothing",Drug:"drug",Grocery:"grocery",Subscription:"subscription",Facility:"facility",Electronics:"electronics",MedicalEquipment:"medical_equipment",Misc:"misc",Oxygen:"oxygen",ItemVerification:"item_verification",ItemReport:"item_report",Reward:"reward",Survey:"survey",Other:"other"}),StockStatus:n.enumtype({InStock:"in_stock",LowStock:"low_stock",OutOfStock:"out_of_stock"}),SubscriptionStatus:n.enumtype({Active:"active",Inactive:"inactive",Paused:"paused",Other:"other"}),SubscriptionType:n.enumtype({PayAsYouSell:"pay_as_you_sell",PayAsYouGo:"pay_as_you_go",Other:"other"}),ItemMinObject:n.iface([],{id:"string",type:"ItemType"}),ItemInfoObject:n.iface([],{id:"string",type:"ItemType",batch_id:n.opt("string"),reward_id:n.opt("string"),survey_id:n.opt("string"),is_featured:n.opt("boolean"),expiry_date:n.opt("number"),production_date:n.opt("number")}),BaseItemDetail:n.iface([],{id:"string",quantity:"number",price:"number",currency:"CurrencyCode",stock_status:n.opt("StockStatus"),promo_id:n.opt("string"),facility_id:n.opt("string"),discount:n.opt("number")}),SubscriptionItemDetail:n.iface([],{status:"SubscriptionStatus",type:"SubscriptionType",subscription_items:n.array("ItemMinObject")}),MetaBloodItemDetail:n.intersection("BaseItemDetail",n.iface([],{type:n.enumlit("ItemType","Blood"),meta:"BloodMeta"})),MetaOxygenItemDetail:n.intersection("BaseItemDetail",n.iface([],{type:n.enumlit("ItemType","Oxygen"),meta:"OxygenMeta"})),DrugItemDetail:n.intersection("BaseItemDetail",n.iface([],{type:n.enumlit("ItemType","Drug")})),GroceryItemDetail:n.intersection("BaseItemDetail",n.iface([],{type:n.enumlit("ItemType","Grocery")})),BloodItemDetail:n.intersection("BaseItemDetail",n.iface([],{type:n.enumlit("ItemType","Blood")})),OxygenItemDetail:n.intersection("BaseItemDetail",n.iface([],{type:n.enumlit("ItemType","Oxygen")})),MedicalEquipmentDetail:n.intersection("BaseItemDetail",n.iface([],{type:n.enumlit("ItemType","MedicalEquipment")})),SubscriptionDetail:n.intersection("BaseItemDetail",n.iface([],{type:n.enumlit("ItemType","Subscription"),subscription:"SubscriptionItemDetail"})),MetaItemObject:n.union("MetaBloodItemDetail","MetaOxygenItemDetail","DrugItemDetail","MedicalEquipmentDetail","GroceryItemDetail","SubscriptionDetail"),ItemObject:n.union("BloodItemDetail","OxygenItemDetail","DrugItemDetail","MedicalEquipmentDetail","GroceryItemDetail","SubscriptionDetail"),ItemProperties:n.iface([],{action:"ItemAction",item:"ItemObject",search_id:n.opt("string"),meta:n.opt("any")}),ReportObject:n.iface([],{id:"string",remarks:"string",short_desc:n.opt("string")}),StoreObject:n.iface([],{id:"string",lat:n.opt("number"),lon:n.opt("number")}),CartAction:n.enumtype({AddItem:"add_item",RemoveItem:"remove_item"}),CartProperties:n.iface([],{id:"string",action:"CartAction",item:"ItemObject",cart_price:"number",currency:"CurrencyCode",meta:n.opt("any")}),ScanChannel:n.enumtype({App:"app",Ussd:"ussd"}),ScanType:n.enumtype({Pin:"pin",QrCode:"qr_code"}),ListAction:n.enumtype({Add:"add_item",Discard:"discard",Edit:"edit_item",Remove:"remove_item",View:"view",Expired:"expired"}),ListType:n.enumtype({Cart:"cart",Favourite:"favourite",Order:"order",Reminder:"reminder"}),ShopMode:n.enumtype({Delivery:"delivery",Pickup:"pickup"}),CheckoutProperties:n.iface([],{id:"string",is_successful:"boolean",cart_price:"number",currency:"CurrencyCode",items:n.array("MetaItemObject"),cart_id:"string",shop_mode:n.opt("ShopMode"),meta:n.opt("any")}),DeliveryAction:n.enumtype({Schedule:"schedule",Update:"update",Dispatch:"dispatch",Delivered:"delivered"}),DeliveryProperties:n.iface([],{id:"string",order_id:"string",is_urgent:"boolean",action:"DeliveryAction",est_delivery_ts:n.opt(n.union("Date","string")),delivery_coordinates:n.opt("CoordinatesObject"),dispatch_coordinates:n.opt("CoordinatesObject"),meta:n.opt("any")}),DrugProperties:n.iface([],{market_id:"string",name:"string",description:n.opt("string"),supplier_id:"string",supplier_name:"string",producer:n.opt("string"),packaging:n.opt("string"),active_ingredients:n.array("string"),drug_form:n.opt("string"),drug_strength:n.opt("string"),atc_anatomical_group:n.opt("string"),otc_or_ethical:n.opt("string")}),InternalDrugProperties:n.iface(["DrugProperties"],{id:"string"}),GroceryProperties:n.iface([],{name:"string",description:n.opt("string"),category:n.opt("string"),active_ingredients:n.opt(n.array("string")),market_id:n.opt("string"),packaging:n.opt("string"),packaging_size:n.opt("number"),packaging_units:n.opt("string"),producer:n.opt("string"),supplier_id:n.opt("string"),supplier_name:n.opt("string")}),InternalGroceryProperties:n.iface(["GroceryProperties"],{id:"string"}),FacilityProperties:n.iface([],{name:"string",type:n.opt("string"),country:n.opt("string"),region_state:n.opt("string"),city:n.opt("string"),is_active:n.opt("boolean"),has_delivery:n.opt("boolean"),is_sponsored:n.opt("boolean")}),InternalFacilityProperties:n.iface(["FacilityProperties"],{id:"string"}),CancelType:n.enumtype({Cart:"cart",Order:"order"}),CancelCheckoutProperties:n.iface([],{id:"string",type:"CancelType",items:n.array("ItemMinObject"),reason:"string",meta:n.opt("any")}),ItemReportProperties:n.iface([],{item:"ItemMinObject",report_info:"ReportObject",store_info:"StoreObject"}),ItemRequestProperties:n.iface([],{id:"string",item_name:"string",manufacturer:"string"}),ItemVerificationProperties:n.iface([],{scan_channel:"ScanChannel",scan_type:"ScanType",is_successful:"boolean",item_info:"ItemInfoObject"})},s={BloodMeta:n.iface([],{cross_matching:"boolean",temperature_strips:"boolean",extra_tests:"boolean",reason:"string"}),BloodComponent:n.enumtype({Platelets:"Platelets",Cryoprecipitate:"Cryoprecipitate",WholeBlood:"Whole blood",FreshFrozenPlasma:"Fresh frozen plasma",PackedRedBloodCells:"Packed red blood cells",Other:"Other"}),BloodGroup:n.enumtype({A_plus:"A+",A_minus:"A-",B_plus:"B+",B_minus:"B-",AB_plus:"AB+",AB_minus:"AB-",O_plus:"O+",O_minus:"O-",Unsure:"Unsure"}),BloodProperties:n.iface([],{market_id:"string",blood_component:n.union("BloodComponent","string"),blood_group:n.union("BloodGroup","string"),packaging:"string",packaging_size:"number",packaging_units:"string",supplier_id:n.opt("string"),supplier_name:n.opt("string")}),InternalBloodProperties:n.iface(["BloodProperties"],{id:"string"})},c={OxygenMeta:n.iface([],{order_type:"string",reason:"string"}),OxygenProperties:n.iface([],{market_id:"string",packaging:"string",packaging_size:"number",packaging_units:"string",supplier_id:n.opt("string"),supplier_name:n.opt("string")}),InternalOxygenProperties:n.iface(["OxygenProperties"],{id:"string"})};var u,l;const p={SearchFilter:n.iface([],(u={},l=n.indexKey,"any",l in u?Object.defineProperty(u,l,{value:"any",enumerable:!0,configurable:!0,writable:!0}):u[l]="any",u)),AddressObject:n.iface([],{site_id:n.opt("string"),name:n.opt("string"),country:n.opt("string"),region_state:n.opt("string"),district:n.opt("string"),sub_district:n.opt("string"),city_town:n.opt("string"),street_address:n.opt("string"),landmark:n.opt("string"),coordinates:n.opt("CoordinatesObject")}),CoordinatesObject:n.iface([],{lat:n.opt("number"),lon:n.opt("number")}),DiagnosisQuestionItem:n.iface([],{type:"QuestionType",question:"string",reply:"string",score:n.opt("number"),full_score:n.opt("number"),remarks:n.opt("string"),section:n.opt("string")}),QuestionType:n.enumtype({OpenEnded:"open_ended",ClosedEnded:"closed_ended",Nominal:"nominal",LikertScale:"likert_scale",RatingScale:"rating_scale",YesNo:"yes_no",Interview:"interview",Other:"other"}),CurrencyCode:n.enumtype({AED:"AED",AFN:"AFN",ALL:"ALL",AMD:"AMD",ANG:"ANG",AOA:"AOA",ARS:"ARS",AUD:"AUD",AWG:"AWG",AZN:"AZN",BAM:"BAM",BBD:"BBD",BDT:"BDT",BGN:"BGN",BHD:"BHD",BIF:"BIF",BMD:"BMD",BND:"BND",BOB:"BOB",BRL:"BRL",BSD:"BSD",BTN:"BTN",BWP:"BWP",BYR:"BYR",BZD:"BZD",CAD:"CAD",CDF:"CDF",CHF:"CHF",CLP:"CLP",CNY:"CNY",COP:"COP",CRC:"CRC",CUC:"CUC",CUP:"CUP",CVE:"CVE",CZK:"CZK",DJF:"DJF",DKK:"DKK",DOP:"DOP",DZD:"DZD",EGP:"EGP",ERN:"ERN",ETB:"ETB",EUR:"EUR",FJD:"FJD",FKP:"FKP",GBP:"GBP",GEL:"GEL",GGP:"GGP",GHS:"GHS",GIP:"GIP",GMD:"GMD",GNF:"GNF",GTQ:"GTQ",GYD:"GYD",HKD:"HKD",HNL:"HNL",HRK:"HRK",HTG:"HTG",HUF:"HUF",IDR:"IDR",ILS:"ILS",IMP:"IMP",INR:"INR",IQD:"IQD",IRR:"IRR",ISK:"ISK",JEP:"JEP",JMD:"JMD",JOD:"JOD",JPY:"JPY",KES:"KES",KGS:"KGS",KHR:"KHR",KMF:"KMF",KPW:"KPW",KRW:"KRW",KWD:"KWD",KYD:"KYD",KZT:"KZT",LAK:"LAK",LBP:"LBP",LKR:"LKR",LRD:"LRD",LSL:"LSL",LYD:"LYD",MAD:"MAD",MDL:"MDL",MGA:"MGA",MKD:"MKD",MMK:"MMK",MNT:"MNT",MOP:"MOP",MRO:"MRO",MUR:"MUR",MVR:"MVR",MWK:"MWK",MXN:"MXN",MYR:"MYR",MZN:"MZN",NAD:"NAD",NGN:"NGN",NIO:"NIO",NOK:"NOK",NPR:"NPR",NZD:"NZD",OMR:"OMR",PAB:"PAB",PEN:"PEN",PGK:"PGK",PHP:"PHP",PKR:"PKR",PLN:"PLN",PYG:"PYG",QAR:"QAR",RON:"RON",RSD:"RSD",RUB:"RUB",RWF:"RWF",SAR:"SAR",SBD:"SBD",SCR:"SCR",SDG:"SDG",SEK:"SEK",SGD:"SGD",SHP:"SHP",SLL:"SLL",SOS:"SOS",SPL:"SPL",SRD:"SRD",STD:"STD",SVC:"SVC",SYP:"SYP",SZL:"SZL",THB:"THB",TJS:"TJS",TMT:"TMT",TND:"TND",TOP:"TOP",TRY:"TRY",TTD:"TTD",TVD:"TVD",TWD:"TWD",TZS:"TZS",UAH:"UAH",UGX:"UGX",USD:"USD",UYU:"UYU",UZS:"UZS",VEF:"VEF",VND:"VND",VUV:"VUV",WST:"WST",XAF:"XAF",XCD:"XCD",XDR:"XDR",XOF:"XOF",XPF:"XPF",YER:"YER",ZAR:"ZAR",ZMW:"ZMW",ZWD:"ZWD"}),Country:n.enumtype({Ascension_Island:"Ascension Island",Andorra:"Andorra",United_Arab_Emirates:"United Arab Emirates",Afghanistan:"Afghanistan",Antigua_and_Barbuda:"Antigua and Barbuda",Anguilla:"Anguilla",Albania:"Albania",Armenia:"Armenia",Netherlands_Antilles:"Netherlands Antilles",Angola:"Angola",Antarctica:"Antarctica",Argentina:"Argentina",American_Samoa:"American Samoa",Austria:"Austria",Australia:"Australia",Aruba:"Aruba",Aland_Islands:"Aland Islands",Azerbaijan:"Azerbaijan",Bosnia_and_Herzegovina:"Bosnia and Herzegovina",Barbados:"Barbados",Bangladesh:"Bangladesh",Belgium:"Belgium",Burkina_Faso:"Burkina Faso",Bulgaria:"Bulgaria",Bahrain:"Bahrain",Burundi:"Burundi",Benin:"Benin",Saint_Barthelemy:"Saint Barthelemy",Bermuda:"Bermuda",Brunei_Darussalam:"Brunei Darussalam",Bolivia:"Bolivia",Caribbean_Netherlands:"Caribbean Netherlands",Brazil:"Brazil",Bahamas:"Bahamas",Bhutan:"Bhutan",Burma:"Burma",Bouvet_Island:"Bouvet Island",Botswana:"Botswana",Belarus:"Belarus",Belize:"Belize",Canada:"Canada",Cocos_Islands:"Cocos Islands",Democratic_Republic_Congo:"Democratic Republic Congo",Central_African_Republic:"Central African Republic",Congo:"Congo",Switzerland:"Switzerland",Ivory_Coast:"Ivory Coast",Cook_Islands:"Cook Islands",Chile:"Chile",Cameroon:"Cameroon",China:"China",Colombia:"Colombia",Clipperton_Island:"Clipperton Island",Costa_Rica:"Costa Rica",Serbia_and_Montenegro:"Serbia and Montenegro",Cuba:"Cuba",Cape_Verde:"Cape Verde",Curacao:"Curacao",Christmas_Island:"Christmas Island",Cyprus:"Cyprus",Czech_Republic:"Czech Republic",Germany:"Germany",Diego_Garcia:"Diego Garcia",Djibouti:"Djibouti",Denmark:"Denmark",Dominica:"Dominica",Dominican_Republic:"Dominican Republic",Algeria:"Algeria",Ceuta_Melilla:"Ceuta Melilla",Ecuador:"Ecuador",Estonia:"Estonia",Egypt:"Egypt",Western_Sahara:"Western Sahara",Eritrea:"Eritrea",Spain:"Spain",Ethiopia:"Ethiopia",European_Union:"European Union",Eurozone:"Eurozone",Finland:"Finland",Fiji:"Fiji",Malvinas:"Malvinas",Micronesia:"Micronesia",Faroe_Islands:"Faroe Islands",France:"France",France_Metropolitan:"France Metropolitan",Gabon:"Gabon",United_Kingdom:"United Kingdom",Grenada:"Grenada",Georgia:"Georgia",French_Guiana:"French Guiana",Guernsey:"Guernsey",Ghana:"Ghana",Gibraltar:"Gibraltar",Greenland:"Greenland",Gambia:"Gambia",Guinea:"Guinea",Guadeloupe:"Guadeloupe",Equatorial_Guinea:"Equatorial Guinea",Greece:"Greece",South_Georgia_and_South_Sandwich_Islands:"South Georgia and South Sandwich Islands",Guatemala:"Guatemala",Guam:"Guam",Guinea_Bissau:"Guinea Bissau",Guyana:"Guyana",Hong_Kong:"Hong Kong",Heard_Island_and_McDonald_Islands:"Heard Island and McDonald Islands",Honduras:"Honduras",Croatia:"Croatia",Haiti:"Haiti",Hungary:"Hungary",Canary_Islands:"Canary Islands",Indonesia:"Indonesia",Ireland:"Ireland",Israel:"Israel",Isle_of_Man:"Isle of Man",India:"India",British_Indian_Ocean_Territory:"British Indian Ocean Territory",Iraq:"Iraq",Iran:"Iran",Iceland:"Iceland",Italy:"Italy",Jersey:"Jersey",Jamaica:"Jamaica",Jordan:"Jordan",Japan:"Japan",Kenya:"Kenya",Kyrgyzstan:"Kyrgyzstan",Cambodia:"Cambodia",Kiribati:"Kiribati",Comoros:"Comoros",Saint_Kitts_and_Nevis:"Saint Kitts and Nevis",North_Korea:"North Korea",South_Korea:"South Korea",Kuwait:"Kuwait",Cayman_Islands:"Cayman Islands",Kazakhstan:"Kazakhstan",Lao:"Lao",Lebanon:"Lebanon",Saint_Lucia:"Saint Lucia",Liechtenstein:"Liechtenstein",Sri_Lanka:"Sri Lanka",Liberia:"Liberia",Lesotho:"Lesotho",Lithuania:"Lithuania",Luxembourg:"Luxembourg",Latvia:"Latvia",Libya:"Libya",Morocco:"Morocco",Monaco:"Monaco",Moldova:"Moldova",Montenegro:"Montenegro",Saint_Martin:"Saint Martin",Madagascar:"Madagascar",Marshall_Islands:"Marshall Islands",North_Macedonia:"North Macedonia",Mali:"Mali",Myanmar:"Myanmar",Mongolia:"Mongolia",Macao:"Macao",Northern_Mariana_Islands:"Northern Mariana Islands",Martinique:"Martinique",Mauritania:"Mauritania",Montserrat:"Montserrat",Malta:"Malta",Mauritius:"Mauritius",Maldives:"Maldives",Malawi:"Malawi",Mexico:"Mexico",Malaysia:"Malaysia",Mozambique:"Mozambique",Namibia:"Namibia",New_Caledonia:"New Caledonia",Niger:"Niger",Norfolk_Island:"Norfolk Island",Nigeria:"Nigeria",Nicaragua:"Nicaragua",Netherlands:"Netherlands",Norway:"Norway",Nepal:"Nepal",Nauru:"Nauru",Neutral_Zone:"Neutral Zone",Niue:"Niue",New_Zealand:"New Zealand",Oman:"Oman",Panama:"Panama",Peru:"Peru",French_Polynesia:"French Polynesia",Papua_New_Guinea:"Papua New Guinea",Philippines:"Philippines",Pakistan:"Pakistan",Poland:"Poland",Saint_Pierre_and_Miquelon:"Saint Pierre and Miquelon",Pitcairn:"Pitcairn",Puerto_Rico:"Puerto Rico",Palestine:"Palestine",Portugal:"Portugal",Palau:"Palau",Paraguay:"Paraguay",Qatar:"Qatar",Reunion:"Reunion",Romania:"Romania",Serbia:"Serbia",Russia:"Russia",Rwanda:"Rwanda",Saudi_Arabia:"Saudi Arabia",Solomon_Islands:"Solomon Islands",Seychelles:"Seychelles",Sudan:"Sudan",Sweden:"Sweden",Singapore:"Singapore",Saint_Helena:"Saint Helena",Slovenia:"Slovenia",Svalbard:"Svalbard",Slovakia:"Slovakia",Sierra_Leone:"Sierra Leone",San_Marino:"San Marino",Senegal:"Senegal",Somalia:"Somalia",Suriname:"Suriname",South_Sudan:"South Sudan",Sao_Tome_and_Principe:"Sao Tome and Principe",USSR:"USSR",El_Salvador:"El Salvador",Sint_Maarten:"Sint Maarten",Syria:"Syria",Eswatini:"Eswatini",Turks_and_Caicos_Islands:"Turks and Caicos Islands",French_Southern_Territories:"French Southern Territories",Togo:"Togo",Thailand:"Thailand",Tajikistan:"Tajikistan",Tokelau:"Tokelau",Timor_Leste:"Timor Leste",Turkmenistan:"Turkmenistan",Tunisia:"Tunisia",Tonga:"Tonga",East_Timor:"East Timor",Turkey:"Turkey",Trinidad_and_Tobago:"Trinidad and Tobago",Tuvalu:"Tuvalu",Taiwan:"Taiwan",Tanzania:"Tanzania",Ukraine:"Ukraine",Uganda:"Uganda",United_States_Minor_Outlying_Islands:"United States Minor Outlying Islands",United_States:"United States",Uruguay:"Uruguay",Uzbekistan:"Uzbekistan",Vatican:"Vatican",Saint_Vincent_and_Grenadines:"Saint Vincent and Grenadines",Venezuela:"Venezuela",British_Virgin_Islands:"British Virgin Islands",US_Virgin_Islands:"US Virgin Islands",Vietnam:"Vietnam",Vanuatu:"Vanuatu",Wallis_and_Futuna:"Wallis and Futuna",Samoa:"Samoa",Northern_Ireland:"Northern Ireland",Kosovo:"Kosovo",Yemen:"Yemen",Mayotte:"Mayotte",Yugoslavia:"Yugoslavia",South_Africa:"South Africa",Zambia:"Zambia",Zaire:"Zaire",Zimbabwe:"Zimbabwe"}),Language:n.enumtype({Afar:"Afar",Abkhaz:"Abkhaz",Avestan:"Avestan",Afrikaans:"Afrikaans",Akan:"Akan",Amharic:"Amharic",Aragonese:"A