@uxland/primary-shell 2.1.2 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -186,7 +186,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
186
186
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(O){return O instanceof this?O:new this(O)}static concat(O,...U){const G=new this(O);return U.forEach(Y=>G.set(Y)),G}static accessor(O){const G=(this[$internals]=this[$internals]={accessors:{}}).accessors,Y=this.prototype;function K(J){const X=normalizeHeader(J);G[X]||(buildAccessors(Y,J),G[X]=!0)}return utils$1.isArray(O)?O.forEach(K):K(O),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:W},O)=>{let U=O[0].toUpperCase()+O.slice(1);return{get:()=>W,set(G){this[U]=G}}}),utils$1.freezeMethods(AxiosHeaders);function transformData(W,O){const U=this||defaults,G=O||U,Y=AxiosHeaders.from(G.headers);let K=G.data;return utils$1.forEach(W,function(X){K=X.call(U,K,Y.normalize(),O?O.status:void 0)}),Y.normalize(),K}function isCancel(W){return!!(W&&W.__CANCEL__)}function CanceledError(W,O,U){AxiosError.call(this,W??"canceled",AxiosError.ERR_CANCELED,O,U),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(W,O,U){const G=U.config.validateStatus;!U.status||!G||G(U.status)?W(U):O(new AxiosError("Request failed with status code "+U.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(U.status/100)-4],U.config,U.request,U))}function parseProtocol(W){const O=/^([-+\w]{1,25})(:?\/\/|:)/.exec(W);return O&&O[1]||""}function speedometer(W,O){W=W||10;const U=new Array(W),G=new Array(W);let Y=0,K=0,J;return O=O!==void 0?O:1e3,function(se){const ee=Date.now(),ne=G[K];J||(J=ee),U[Y]=se,G[Y]=ee;let Q=K,te=0;for(;Q!==Y;)te+=U[Q++],Q=Q%W;if(Y=(Y+1)%W,Y===K&&(K=(K+1)%W),ee-J<O)return;const ie=ne&&ee-ne;return ie?Math.round(te*1e3/ie):void 0}}function throttle(W,O){let U=0;const G=1e3/O;let Y=null;return function(){const J=this===!0,X=Date.now();if(J||X-U>G)return Y&&(clearTimeout(Y),Y=null),U=X,W.apply(null,arguments);Y||(Y=setTimeout(()=>(Y=null,U=Date.now(),W.apply(null,arguments)),G-(X-U)))}}const progressEventReducer=(W,O,U=3)=>{let G=0;const Y=speedometer(50,250);return throttle(K=>{const J=K.loaded,X=K.lengthComputable?K.total:void 0,se=J-G,ee=Y(se),ne=J<=X;G=J;const Q={loaded:J,total:X,progress:X?J/X:void 0,bytes:se,rate:ee||void 0,estimated:ee&&X&&ne?(X-J)/ee:void 0,event:K,lengthComputable:X!=null};Q[O?"download":"upload"]=!0,W(Q)},U)},isURLSameOrigin=platform.hasStandardBrowserEnv?function(){const O=/(msie|trident)/i.test(navigator.userAgent),U=document.createElement("a");let G;function Y(K){let J=K;return O&&(U.setAttribute("href",J),J=U.href),U.setAttribute("href",J),{href:U.href,protocol:U.protocol?U.protocol.replace(/:$/,""):"",host:U.host,search:U.search?U.search.replace(/^\?/,""):"",hash:U.hash?U.hash.replace(/^#/,""):"",hostname:U.hostname,port:U.port,pathname:U.pathname.charAt(0)==="/"?U.pathname:"/"+U.pathname}}return G=Y(window.location.href),function(J){const X=utils$1.isString(J)?Y(J):J;return X.protocol===G.protocol&&X.host===G.host}}():function(){return function(){return!0}}(),cookies=platform.hasStandardBrowserEnv?{write(W,O,U,G,Y,K){const J=[W+"="+encodeURIComponent(O)];utils$1.isNumber(U)&&J.push("expires="+new Date(U).toGMTString()),utils$1.isString(G)&&J.push("path="+G),utils$1.isString(Y)&&J.push("domain="+Y),K===!0&&J.push("secure"),document.cookie=J.join("; ")},read(W){const O=document.cookie.match(new RegExp("(^|;\\s*)("+W+")=([^;]*)"));return O?decodeURIComponent(O[3]):null},remove(W){this.write(W,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(W){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(W)}function combineURLs(W,O){return O?W.replace(/\/?\/$/,"")+"/"+O.replace(/^\/+/,""):W}function buildFullPath(W,O){return W&&!isAbsoluteURL(O)?combineURLs(W,O):O}const headersToObject=W=>W instanceof AxiosHeaders?{...W}:W;function mergeConfig(W,O){O=O||{};const U={};function G(ee,ne,Q){return utils$1.isPlainObject(ee)&&utils$1.isPlainObject(ne)?utils$1.merge.call({caseless:Q},ee,ne):utils$1.isPlainObject(ne)?utils$1.merge({},ne):utils$1.isArray(ne)?ne.slice():ne}function Y(ee,ne,Q){if(utils$1.isUndefined(ne)){if(!utils$1.isUndefined(ee))return G(void 0,ee,Q)}else return G(ee,ne,Q)}function K(ee,ne){if(!utils$1.isUndefined(ne))return G(void 0,ne)}function J(ee,ne){if(utils$1.isUndefined(ne)){if(!utils$1.isUndefined(ee))return G(void 0,ee)}else return G(void 0,ne)}function X(ee,ne,Q){if(Q in O)return G(ee,ne);if(Q in W)return G(void 0,ee)}const se={url:K,method:K,data:K,baseURL:J,transformRequest:J,transformResponse:J,paramsSerializer:J,timeout:J,timeoutMessage:J,withCredentials:J,withXSRFToken:J,adapter:J,responseType:J,xsrfCookieName:J,xsrfHeaderName:J,onUploadProgress:J,onDownloadProgress:J,decompress:J,maxContentLength:J,maxBodyLength:J,beforeRedirect:J,transport:J,httpAgent:J,httpsAgent:J,cancelToken:J,socketPath:J,responseEncoding:J,validateStatus:X,headers:(ee,ne)=>Y(headersToObject(ee),headersToObject(ne),!0)};return utils$1.forEach(Object.keys(Object.assign({},W,O)),function(ne){const Q=se[ne]||Y,te=Q(W[ne],O[ne],ne);utils$1.isUndefined(te)&&Q!==X||(U[ne]=te)}),U}const resolveConfig=W=>{const O=mergeConfig({},W);let{data:U,withXSRFToken:G,xsrfHeaderName:Y,xsrfCookieName:K,headers:J,auth:X}=O;O.headers=J=AxiosHeaders.from(J),O.url=buildURL(buildFullPath(O.baseURL,O.url),W.params,W.paramsSerializer),X&&J.set("Authorization","Basic "+btoa((X.username||"")+":"+(X.password?unescape(encodeURIComponent(X.password)):"")));let se;if(utils$1.isFormData(U)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)J.setContentType(void 0);else if((se=J.getContentType())!==!1){const[ee,...ne]=se?se.split(";").map(Q=>Q.trim()).filter(Boolean):[];J.setContentType([ee||"multipart/form-data",...ne].join("; "))}}if(platform.hasStandardBrowserEnv&&(G&&utils$1.isFunction(G)&&(G=G(O)),G||G!==!1&&isURLSameOrigin(O.url))){const ee=Y&&K&&cookies.read(K);ee&&J.set(Y,ee)}return O},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(W){return new Promise(function(U,G){const Y=resolveConfig(W);let K=Y.data;const J=AxiosHeaders.from(Y.headers).normalize();let{responseType:X}=Y,se;function ee(){Y.cancelToken&&Y.cancelToken.unsubscribe(se),Y.signal&&Y.signal.removeEventListener("abort",se)}let ne=new XMLHttpRequest;ne.open(Y.method.toUpperCase(),Y.url,!0),ne.timeout=Y.timeout;function Q(){if(!ne)return;const ie=AxiosHeaders.from("getAllResponseHeaders"in ne&&ne.getAllResponseHeaders()),oe={data:!X||X==="text"||X==="json"?ne.responseText:ne.response,status:ne.status,statusText:ne.statusText,headers:ie,config:W,request:ne};settle(function(ae){U(ae),ee()},function(ae){G(ae),ee()},oe),ne=null}"onloadend"in ne?ne.onloadend=Q:ne.onreadystatechange=function(){!ne||ne.readyState!==4||ne.status===0&&!(ne.responseURL&&ne.responseURL.indexOf("file:")===0)||setTimeout(Q)},ne.onabort=function(){ne&&(G(new AxiosError("Request aborted",AxiosError.ECONNABORTED,Y,ne)),ne=null)},ne.onerror=function(){G(new AxiosError("Network Error",AxiosError.ERR_NETWORK,Y,ne)),ne=null},ne.ontimeout=function(){let le=Y.timeout?"timeout of "+Y.timeout+"ms exceeded":"timeout exceeded";const oe=Y.transitional||transitionalDefaults;Y.timeoutErrorMessage&&(le=Y.timeoutErrorMessage),G(new AxiosError(le,oe.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,Y,ne)),ne=null},K===void 0&&J.setContentType(null),"setRequestHeader"in ne&&utils$1.forEach(J.toJSON(),function(le,oe){ne.setRequestHeader(oe,le)}),utils$1.isUndefined(Y.withCredentials)||(ne.withCredentials=!!Y.withCredentials),X&&X!=="json"&&(ne.responseType=Y.responseType),typeof Y.onDownloadProgress=="function"&&ne.addEventListener("progress",progressEventReducer(Y.onDownloadProgress,!0)),typeof Y.onUploadProgress=="function"&&ne.upload&&ne.upload.addEventListener("progress",progressEventReducer(Y.onUploadProgress)),(Y.cancelToken||Y.signal)&&(se=ie=>{ne&&(G(!ie||ie.type?new CanceledError(null,W,ne):ie),ne.abort(),ne=null)},Y.cancelToken&&Y.cancelToken.subscribe(se),Y.signal&&(Y.signal.aborted?se():Y.signal.addEventListener("abort",se)));const te=parseProtocol(Y.url);if(te&&platform.protocols.indexOf(te)===-1){G(new AxiosError("Unsupported protocol "+te+":",AxiosError.ERR_BAD_REQUEST,W));return}ne.send(K||null)})},composeSignals=(W,O)=>{let U=new AbortController,G;const Y=function(se){if(!G){G=!0,J();const ee=se instanceof Error?se:this.reason;U.abort(ee instanceof AxiosError?ee:new CanceledError(ee instanceof Error?ee.message:ee))}};let K=O&&setTimeout(()=>{Y(new AxiosError(`timeout ${O} of ms exceeded`,AxiosError.ETIMEDOUT))},O);const J=()=>{W&&(K&&clearTimeout(K),K=null,W.forEach(se=>{se&&(se.removeEventListener?se.removeEventListener("abort",Y):se.unsubscribe(Y))}),W=null)};W.forEach(se=>se&&se.addEventListener&&se.addEventListener("abort",Y));const{signal:X}=U;return X.unsubscribe=J,[X,()=>{K&&clearTimeout(K),K=null}]},streamChunk=function*(W,O){let U=W.byteLength;if(!O||U<O){yield W;return}let G=0,Y;for(;G<U;)Y=G+O,yield W.slice(G,Y),G=Y},readBytes=async function*(W,O,U){for await(const G of W)yield*streamChunk(ArrayBuffer.isView(G)?G:await U(String(G)),O)},trackStream=(W,O,U,G,Y)=>{const K=readBytes(W,O,Y);let J=0;return new ReadableStream({type:"bytes",async pull(X){const{done:se,value:ee}=await K.next();if(se){X.close(),G();return}let ne=ee.byteLength;U&&U(J+=ne),X.enqueue(new Uint8Array(ee))},cancel(X){return G(X),K.return()}},{highWaterMark:2})},fetchProgressDecorator=(W,O)=>{const U=W!=null;return G=>setTimeout(()=>O({lengthComputable:U,total:W,loaded:G}))},isFetchSupported=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",isReadableStreamSupported=isFetchSupported&&typeof ReadableStream=="function",encodeText=isFetchSupported&&(typeof TextEncoder=="function"?(W=>O=>W.encode(O))(new TextEncoder):async W=>new Uint8Array(await new Response(W).arrayBuffer())),supportsRequestStream=isReadableStreamSupported&&(()=>{let W=!1;const O=new Request(platform.origin,{body:new ReadableStream,method:"POST",get duplex(){return W=!0,"half"}}).headers.has("Content-Type");return W&&!O})(),DEFAULT_CHUNK_SIZE=64*1024,supportsResponseStream=isReadableStreamSupported&&!!(()=>{try{return utils$1.isReadableStream(new Response("").body)}catch{}})(),resolvers={stream:supportsResponseStream&&(W=>W.body)};isFetchSupported&&(W=>{["text","arrayBuffer","blob","formData","stream"].forEach(O=>{!resolvers[O]&&(resolvers[O]=utils$1.isFunction(W[O])?U=>U[O]():(U,G)=>{throw new AxiosError(`Response type '${O}' is not supported`,AxiosError.ERR_NOT_SUPPORT,G)})})})(new Response);const getBodyLength=async W=>{if(W==null)return 0;if(utils$1.isBlob(W))return W.size;if(utils$1.isSpecCompliantForm(W))return(await new Request(W).arrayBuffer()).byteLength;if(utils$1.isArrayBufferView(W))return W.byteLength;if(utils$1.isURLSearchParams(W)&&(W=W+""),utils$1.isString(W))return(await encodeText(W)).byteLength},resolveBodyLength=async(W,O)=>{const U=utils$1.toFiniteNumber(W.getContentLength());return U??getBodyLength(O)},fetchAdapter=isFetchSupported&&(async W=>{let{url:O,method:U,data:G,signal:Y,cancelToken:K,timeout:J,onDownloadProgress:X,onUploadProgress:se,responseType:ee,headers:ne,withCredentials:Q="same-origin",fetchOptions:te}=resolveConfig(W);ee=ee?(ee+"").toLowerCase():"text";let[ie,le]=Y||K||J?composeSignals([Y,K],J):[],oe,re;const ae=()=>{!oe&&setTimeout(()=>{ie&&ie.unsubscribe()}),oe=!0};let ce;try{if(se&&supportsRequestStream&&U!=="get"&&U!=="head"&&(ce=await resolveBodyLength(ne,G))!==0){let me=new Request(O,{method:"POST",body:G,duplex:"half"}),ge;utils$1.isFormData(G)&&(ge=me.headers.get("content-type"))&&ne.setContentType(ge),me.body&&(G=trackStream(me.body,DEFAULT_CHUNK_SIZE,fetchProgressDecorator(ce,progressEventReducer(se)),null,encodeText))}utils$1.isString(Q)||(Q=Q?"cors":"omit"),re=new Request(O,{...te,signal:ie,method:U.toUpperCase(),headers:ne.normalize().toJSON(),body:G,duplex:"half",withCredentials:Q});let ue=await fetch(re);const de=supportsResponseStream&&(ee==="stream"||ee==="response");if(supportsResponseStream&&(X||de)){const me={};["status","statusText","headers"].forEach(we=>{me[we]=ue[we]});const ge=utils$1.toFiniteNumber(ue.headers.get("content-length"));ue=new Response(trackStream(ue.body,DEFAULT_CHUNK_SIZE,X&&fetchProgressDecorator(ge,progressEventReducer(X,!0)),de&&ae,encodeText),me)}ee=ee||"text";let he=await resolvers[utils$1.findKey(resolvers,ee)||"text"](ue,W);return!de&&ae(),le&&le(),await new Promise((me,ge)=>{settle(me,ge,{data:he,headers:AxiosHeaders.from(ue.headers),status:ue.status,statusText:ue.statusText,config:W,request:re})})}catch(ue){throw ae(),ue&&ue.name==="TypeError"&&/fetch/i.test(ue.message)?Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,W,re),{cause:ue.cause||ue}):AxiosError.from(ue,ue&&ue.code,W,re)}}),knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,(W,O)=>{if(W){try{Object.defineProperty(W,"name",{value:O})}catch{}Object.defineProperty(W,"adapterName",{value:O})}});const renderReason=W=>`- ${W}`,isResolvedHandle=W=>utils$1.isFunction(W)||W===null||W===!1,adapters={getAdapter:W=>{W=utils$1.isArray(W)?W:[W];const{length:O}=W;let U,G;const Y={};for(let K=0;K<O;K++){U=W[K];let J;if(G=U,!isResolvedHandle(U)&&(G=knownAdapters[(J=String(U)).toLowerCase()],G===void 0))throw new AxiosError(`Unknown adapter '${J}'`);if(G)break;Y[J||"#"+K]=G}if(!G){const K=Object.entries(Y).map(([X,se])=>`adapter ${X} `+(se===!1?"is not supported by the environment":"is not available in the build"));let J=O?K.length>1?`since :
187
187
  `+K.map(renderReason).join(`
188
188
  `):" "+renderReason(K[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+J,"ERR_NOT_SUPPORT")}return G},adapters:knownAdapters};function throwIfCancellationRequested(W){if(W.cancelToken&&W.cancelToken.throwIfRequested(),W.signal&&W.signal.aborted)throw new CanceledError(null,W)}function dispatchRequest(W){return throwIfCancellationRequested(W),W.headers=AxiosHeaders.from(W.headers),W.data=transformData.call(W,W.transformRequest),["post","put","patch"].indexOf(W.method)!==-1&&W.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(W.adapter||defaults.adapter)(W).then(function(G){return throwIfCancellationRequested(W),G.data=transformData.call(W,W.transformResponse,G),G.headers=AxiosHeaders.from(G.headers),G},function(G){return isCancel(G)||(throwIfCancellationRequested(W),G&&G.response&&(G.response.data=transformData.call(W,W.transformResponse,G.response),G.response.headers=AxiosHeaders.from(G.response.headers))),Promise.reject(G)})}const VERSION="1.7.2",validators$1={};["object","boolean","number","function","string","symbol"].forEach((W,O)=>{validators$1[W]=function(G){return typeof G===W||"a"+(O<1?"n ":" ")+W}});const deprecatedWarnings={};validators$1.transitional=function(O,U,G){function Y(K,J){return"[Axios v"+VERSION+"] Transitional option '"+K+"'"+J+(G?". "+G:"")}return(K,J,X)=>{if(O===!1)throw new AxiosError(Y(J," has been removed"+(U?" in "+U:"")),AxiosError.ERR_DEPRECATED);return U&&!deprecatedWarnings[J]&&(deprecatedWarnings[J]=!0,console.warn(Y(J," has been deprecated since v"+U+" and will be removed in the near future"))),O?O(K,J,X):!0}};function assertOptions(W,O,U){if(typeof W!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const G=Object.keys(W);let Y=G.length;for(;Y-- >0;){const K=G[Y],J=O[K];if(J){const X=W[K],se=X===void 0||J(X,K,W);if(se!==!0)throw new AxiosError("option "+K+" must be "+se,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(U!==!0)throw new AxiosError("Unknown option "+K,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(O){this.defaults=O,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(O,U){try{return await this._request(O,U)}catch(G){if(G instanceof Error){let Y;Error.captureStackTrace?Error.captureStackTrace(Y={}):Y=new Error;const K=Y.stack?Y.stack.replace(/^.+\n/,""):"";try{G.stack?K&&!String(G.stack).endsWith(K.replace(/^.+\n.+\n/,""))&&(G.stack+=`
189
- `+K):G.stack=K}catch{}}throw G}}_request(O,U){typeof O=="string"?(U=U||{},U.url=O):U=O||{},U=mergeConfig(this.defaults,U);const{transitional:G,paramsSerializer:Y,headers:K}=U;G!==void 0&&validator.assertOptions(G,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),Y!=null&&(utils$1.isFunction(Y)?U.paramsSerializer={serialize:Y}:validator.assertOptions(Y,{encode:validators.function,serialize:validators.function},!0)),U.method=(U.method||this.defaults.method||"get").toLowerCase();let J=K&&utils$1.merge(K.common,K[U.method]);K&&utils$1.forEach(["delete","get","head","post","put","patch","common"],le=>{delete K[le]}),U.headers=AxiosHeaders.concat(J,K);const X=[];let se=!0;this.interceptors.request.forEach(function(oe){typeof oe.runWhen=="function"&&oe.runWhen(U)===!1||(se=se&&oe.synchronous,X.unshift(oe.fulfilled,oe.rejected))});const ee=[];this.interceptors.response.forEach(function(oe){ee.push(oe.fulfilled,oe.rejected)});let ne,Q=0,te;if(!se){const le=[dispatchRequest.bind(this),void 0];for(le.unshift.apply(le,X),le.push.apply(le,ee),te=le.length,ne=Promise.resolve(U);Q<te;)ne=ne.then(le[Q++],le[Q++]);return ne}te=X.length;let ie=U;for(Q=0;Q<te;){const le=X[Q++],oe=X[Q++];try{ie=le(ie)}catch(re){oe.call(this,re);break}}try{ne=dispatchRequest.call(this,ie)}catch(le){return Promise.reject(le)}for(Q=0,te=ee.length;Q<te;)ne=ne.then(ee[Q++],ee[Q++]);return ne}getUri(O){O=mergeConfig(this.defaults,O);const U=buildFullPath(O.baseURL,O.url);return buildURL(U,O.params,O.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function(O){Axios.prototype[O]=function(U,G){return this.request(mergeConfig(G||{},{method:O,url:U,data:(G||{}).data}))}}),utils$1.forEach(["post","put","patch"],function(O){function U(G){return function(K,J,X){return this.request(mergeConfig(X||{},{method:O,headers:G?{"Content-Type":"multipart/form-data"}:{},url:K,data:J}))}}Axios.prototype[O]=U(),Axios.prototype[O+"Form"]=U(!0)});class CancelToken{constructor(O){if(typeof O!="function")throw new TypeError("executor must be a function.");let U;this.promise=new Promise(function(K){U=K});const G=this;this.promise.then(Y=>{if(!G._listeners)return;let K=G._listeners.length;for(;K-- >0;)G._listeners[K](Y);G._listeners=null}),this.promise.then=Y=>{let K;const J=new Promise(X=>{G.subscribe(X),K=X}).then(Y);return J.cancel=function(){G.unsubscribe(K)},J},O(function(K,J,X){G.reason||(G.reason=new CanceledError(K,J,X),U(G.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(O){if(this.reason){O(this.reason);return}this._listeners?this._listeners.push(O):this._listeners=[O]}unsubscribe(O){if(!this._listeners)return;const U=this._listeners.indexOf(O);U!==-1&&this._listeners.splice(U,1)}static source(){let O;return{token:new CancelToken(function(Y){O=Y}),cancel:O}}}function spread(W){return function(U){return W.apply(null,U)}}function isAxiosError(W){return utils$1.isObject(W)&&W.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([W,O])=>{HttpStatusCode[O]=W});function createInstance(W){const O=new Axios(W),U=bind(Axios.prototype.request,O);return utils$1.extend(U,Axios.prototype,O,{allOwnKeys:!0}),utils$1.extend(U,O,null,{allOwnKeys:!0}),U.create=function(Y){return createInstance(mergeConfig(W,Y))},U}const axios=createInstance(defaults);axios.Axios=Axios,axios.CanceledError=CanceledError,axios.CancelToken=CancelToken,axios.isCancel=isCancel,axios.VERSION=VERSION,axios.toFormData=toFormData,axios.AxiosError=AxiosError,axios.Cancel=axios.CanceledError,axios.all=function(O){return Promise.all(O)},axios.spread=spread,axios.isAxiosError=isAxiosError,axios.mergeConfig=mergeConfig,axios.AxiosHeaders=AxiosHeaders,axios.formToJSON=W=>formDataToJSON(utils$1.isHTMLForm(W)?new FormData(W):W),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode,axios.default=axios;const token="eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJ1S2hQbXhscHB4d2sxUDVfWmQ5am9CeTV6N2p5MHFPd0ZWY3RwZjBDa0E4In0.eyJleHAiOjE3MjEzMDc3MTcsImlhdCI6MTcyMTMwNzQxNywianRpIjoiNWRkMDE1YzgtNTQ5Yy00ZGM2LWE4YWItMTUzNDJiMWRhNThmIiwiaXNzIjoiaHR0cHM6Ly9pbnRlZ3JhY2lvLnBkcy5oZXMuY2F0c2FsdXQuaW50cmFuZXQuZ2VuY2F0LmNhdC9hdXRoL3JlYWxtcy9FVEMiLCJzdWIiOiJlMjRlMzFlMC01NWZiLTRhZmEtYTQzNi0yYmRhOGYyYWQ0ZWUiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJldGMtY2NmLWludCIsInNlc3Npb25fc3RhdGUiOiJhY2M2ZDBlYi1iMTBjLTQ3ZDEtYjFlOC0xYWQ5ODU5NTAyNTkiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiZGVmYXVsdC1yb2xlcy1oZXMtY2FtIl19LCJzY29wZSI6IiIsInNpZCI6ImFjYzZkMGViLWIxMGMtNDdkMS1iMWU4LTFhZDk4NTk1MDI1OSIsImNsaWVudEhvc3QiOiIxMC41My4yNTQuMTUwIiwiYWNjZXNzX3J1bGVzIjp7fSwiYWNjZXNzX2luZm8iOnsicGF0aWVudF9nZW5kZXIiOiIxIiwicGF0aWVudF9iaXJ0aGRhdGUiOiIxOTk5MDEwMSIsInByb2Zlc3Npb25hbF9yb2xlIjoiQURNIiwicHJvZmVzc2lvbmFsX2lkIjoiMTIzNDU2Nzg5MCIsInVwX2NvZGUiOiIwNzczMyIsInBhdGllbnRfZ2l2ZW5fbmFtZSI6ImNhc3RhbnkiLCJwYXRpZW50X2lkIjoiMTIzNDU2Nzg5MCIsInByb2Zlc3Npb25hbF9zcGVjaWFsaXR5IjoiU1BFQzAxIiwicHJvZmVzc2lvbmFsX3NlcnZpY2UiOiJTRVJWMDEiLCJwYXRpZW50X2xhc3RfbmFtZSI6IkFSRUdBTEwiLCJlcF9jb2RlIjoiMDIwOCJ9LCJjbGllbnRBZGRyZXNzIjoiMTAuNTMuMjU0LjE1MCIsImNsaWVudF9pZCI6ImV0Yy1jY2YtaW50In0.NiDKnMchNB4zqL9zOdq15G8y2BYGOyjk8n1xofB2WyxhVpbTXhXAgApS-4DCqczmdPt4sOwtt-FVVxcYku2gKcQQ1Leapb7CmHoUT_ak5ovOE8ZrD5Ryz6rfC_O1lO8Ut4M_J-KzMxj7WvUNYhkIqcHFSMwDdNC6xxc4ZYMOUI4bOif_Tiy7CxvMIpFGm1YS_jiGS2PGI8Y1o_1DApqMs88MxK9ItO-DIfQgKcR3wV6J-QZueaKVtih-kLma33TZc0jz7xG1EyOMJ5cC4r1Sxp877b9ut4JCmMaWOfWNf2tldLcpXTvV_BWg53YpwYOl4pvZdg3lFWEb009DofTQbQ";let instance=axios.create({headers:{Authorization:"Bearer "+token}});const createHttpClient=()=>({request:instance.request}),broker=createBroker(),regionManager=u$4("primaria"),PrimariaRegionHost=l$2(regionManager),primariaApiFactory=W=>({pluginInfo:W,regionManager:createRegionManagerProxy(W,regionManager),httpClient:createHttpClient(),interactionManager:{...createInteractionManager()},broker,createLocaleManager:createLocaleManager(W.pluginId),globalStateManager:createGlobalStateManager(broker)}),shellApi=primariaApiFactory({pluginId:"primaria-shell"});var __defProp$b=Object.defineProperty,__getOwnPropDesc$b=Object.getOwnPropertyDescriptor,__decorateClass$b=(W,O,U,G)=>{for(var Y=G>1?void 0:G?__getOwnPropDesc$b(O,U):O,K=W.length-1,J;K>=0;K--)(J=W[K])&&(Y=(G?J(O,U,Y):J(Y))||Y);return G&&Y&&__defProp$b(O,U,Y),Y};let ClinicalMonitoring=class extends PrimariaRegionHost(s$8){render(){return x$1`${template$6()}`}};ClinicalMonitoring.styles=i$9`
189
+ `+K):G.stack=K}catch{}}throw G}}_request(O,U){typeof O=="string"?(U=U||{},U.url=O):U=O||{},U=mergeConfig(this.defaults,U);const{transitional:G,paramsSerializer:Y,headers:K}=U;G!==void 0&&validator.assertOptions(G,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),Y!=null&&(utils$1.isFunction(Y)?U.paramsSerializer={serialize:Y}:validator.assertOptions(Y,{encode:validators.function,serialize:validators.function},!0)),U.method=(U.method||this.defaults.method||"get").toLowerCase();let J=K&&utils$1.merge(K.common,K[U.method]);K&&utils$1.forEach(["delete","get","head","post","put","patch","common"],le=>{delete K[le]}),U.headers=AxiosHeaders.concat(J,K);const X=[];let se=!0;this.interceptors.request.forEach(function(oe){typeof oe.runWhen=="function"&&oe.runWhen(U)===!1||(se=se&&oe.synchronous,X.unshift(oe.fulfilled,oe.rejected))});const ee=[];this.interceptors.response.forEach(function(oe){ee.push(oe.fulfilled,oe.rejected)});let ne,Q=0,te;if(!se){const le=[dispatchRequest.bind(this),void 0];for(le.unshift.apply(le,X),le.push.apply(le,ee),te=le.length,ne=Promise.resolve(U);Q<te;)ne=ne.then(le[Q++],le[Q++]);return ne}te=X.length;let ie=U;for(Q=0;Q<te;){const le=X[Q++],oe=X[Q++];try{ie=le(ie)}catch(re){oe.call(this,re);break}}try{ne=dispatchRequest.call(this,ie)}catch(le){return Promise.reject(le)}for(Q=0,te=ee.length;Q<te;)ne=ne.then(ee[Q++],ee[Q++]);return ne}getUri(O){O=mergeConfig(this.defaults,O);const U=buildFullPath(O.baseURL,O.url);return buildURL(U,O.params,O.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function(O){Axios.prototype[O]=function(U,G){return this.request(mergeConfig(G||{},{method:O,url:U,data:(G||{}).data}))}}),utils$1.forEach(["post","put","patch"],function(O){function U(G){return function(K,J,X){return this.request(mergeConfig(X||{},{method:O,headers:G?{"Content-Type":"multipart/form-data"}:{},url:K,data:J}))}}Axios.prototype[O]=U(),Axios.prototype[O+"Form"]=U(!0)});class CancelToken{constructor(O){if(typeof O!="function")throw new TypeError("executor must be a function.");let U;this.promise=new Promise(function(K){U=K});const G=this;this.promise.then(Y=>{if(!G._listeners)return;let K=G._listeners.length;for(;K-- >0;)G._listeners[K](Y);G._listeners=null}),this.promise.then=Y=>{let K;const J=new Promise(X=>{G.subscribe(X),K=X}).then(Y);return J.cancel=function(){G.unsubscribe(K)},J},O(function(K,J,X){G.reason||(G.reason=new CanceledError(K,J,X),U(G.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(O){if(this.reason){O(this.reason);return}this._listeners?this._listeners.push(O):this._listeners=[O]}unsubscribe(O){if(!this._listeners)return;const U=this._listeners.indexOf(O);U!==-1&&this._listeners.splice(U,1)}static source(){let O;return{token:new CancelToken(function(Y){O=Y}),cancel:O}}}function spread(W){return function(U){return W.apply(null,U)}}function isAxiosError(W){return utils$1.isObject(W)&&W.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([W,O])=>{HttpStatusCode[O]=W});function createInstance(W){const O=new Axios(W),U=bind(Axios.prototype.request,O);return utils$1.extend(U,Axios.prototype,O,{allOwnKeys:!0}),utils$1.extend(U,O,null,{allOwnKeys:!0}),U.create=function(Y){return createInstance(mergeConfig(W,Y))},U}const axios=createInstance(defaults);axios.Axios=Axios,axios.CanceledError=CanceledError,axios.CancelToken=CancelToken,axios.isCancel=isCancel,axios.VERSION=VERSION,axios.toFormData=toFormData,axios.AxiosError=AxiosError,axios.Cancel=axios.CanceledError,axios.all=function(O){return Promise.all(O)},axios.spread=spread,axios.isAxiosError=isAxiosError,axios.mergeConfig=mergeConfig,axios.AxiosHeaders=AxiosHeaders,axios.formToJSON=W=>formDataToJSON(utils$1.isHTMLForm(W)?new FormData(W):W),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode,axios.default=axios;const token="eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJ1S2hQbXhscHB4d2sxUDVfWmQ5am9CeTV6N2p5MHFPd0ZWY3RwZjBDa0E4In0.eyJleHAiOjE3MjEzMDc3MTcsImlhdCI6MTcyMTMwNzQxNywianRpIjoiNWRkMDE1YzgtNTQ5Yy00ZGM2LWE4YWItMTUzNDJiMWRhNThmIiwiaXNzIjoiaHR0cHM6Ly9pbnRlZ3JhY2lvLnBkcy5oZXMuY2F0c2FsdXQuaW50cmFuZXQuZ2VuY2F0LmNhdC9hdXRoL3JlYWxtcy9FVEMiLCJzdWIiOiJlMjRlMzFlMC01NWZiLTRhZmEtYTQzNi0yYmRhOGYyYWQ0ZWUiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJldGMtY2NmLWludCIsInNlc3Npb25fc3RhdGUiOiJhY2M2ZDBlYi1iMTBjLTQ3ZDEtYjFlOC0xYWQ5ODU5NTAyNTkiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiZGVmYXVsdC1yb2xlcy1oZXMtY2FtIl19LCJzY29wZSI6IiIsInNpZCI6ImFjYzZkMGViLWIxMGMtNDdkMS1iMWU4LTFhZDk4NTk1MDI1OSIsImNsaWVudEhvc3QiOiIxMC41My4yNTQuMTUwIiwiYWNjZXNzX3J1bGVzIjp7fSwiYWNjZXNzX2luZm8iOnsicGF0aWVudF9nZW5kZXIiOiIxIiwicGF0aWVudF9iaXJ0aGRhdGUiOiIxOTk5MDEwMSIsInByb2Zlc3Npb25hbF9yb2xlIjoiQURNIiwicHJvZmVzc2lvbmFsX2lkIjoiMTIzNDU2Nzg5MCIsInVwX2NvZGUiOiIwNzczMyIsInBhdGllbnRfZ2l2ZW5fbmFtZSI6ImNhc3RhbnkiLCJwYXRpZW50X2lkIjoiMTIzNDU2Nzg5MCIsInByb2Zlc3Npb25hbF9zcGVjaWFsaXR5IjoiU1BFQzAxIiwicHJvZmVzc2lvbmFsX3NlcnZpY2UiOiJTRVJWMDEiLCJwYXRpZW50X2xhc3RfbmFtZSI6IkFSRUdBTEwiLCJlcF9jb2RlIjoiMDIwOCJ9LCJjbGllbnRBZGRyZXNzIjoiMTAuNTMuMjU0LjE1MCIsImNsaWVudF9pZCI6ImV0Yy1jY2YtaW50In0.NiDKnMchNB4zqL9zOdq15G8y2BYGOyjk8n1xofB2WyxhVpbTXhXAgApS-4DCqczmdPt4sOwtt-FVVxcYku2gKcQQ1Leapb7CmHoUT_ak5ovOE8ZrD5Ryz6rfC_O1lO8Ut4M_J-KzMxj7WvUNYhkIqcHFSMwDdNC6xxc4ZYMOUI4bOif_Tiy7CxvMIpFGm1YS_jiGS2PGI8Y1o_1DApqMs88MxK9ItO-DIfQgKcR3wV6J-QZueaKVtih-kLma33TZc0jz7xG1EyOMJ5cC4r1Sxp877b9ut4JCmMaWOfWNf2tldLcpXTvV_BWg53YpwYOl4pvZdg3lFWEb009DofTQbQ";let instance=axios.create({headers:{Authorization:"Bearer "+token}});const createHttpClient=()=>({request:instance.request}),broker=createBroker(),regionManager=u$4("primaria"),PrimariaRegionHost=l$2(regionManager),globalStateManager=createGlobalStateManager(broker),primariaApiFactory=W=>({pluginInfo:W,regionManager:createRegionManagerProxy(W,regionManager),httpClient:createHttpClient(),interactionManager:{...createInteractionManager()},broker,createLocaleManager:createLocaleManager(W.pluginId),globalStateManager}),shellApi=primariaApiFactory({pluginId:"primaria-shell"});var __defProp$b=Object.defineProperty,__getOwnPropDesc$b=Object.getOwnPropertyDescriptor,__decorateClass$b=(W,O,U,G)=>{for(var Y=G>1?void 0:G?__getOwnPropDesc$b(O,U):O,K=W.length-1,J;K>=0;K--)(J=W[K])&&(Y=(G?J(O,U,Y):J(Y))||Y);return G&&Y&&__defProp$b(O,U,Y),Y};let ClinicalMonitoring=class extends PrimariaRegionHost(s$8){render(){return x$1`${template$6()}`}};ClinicalMonitoring.styles=i$9`
190
190
  ${r$a(styles$9)}
191
191
  `,__decorateClass$b([s$5({targetId:"widgets-sidebar-region",name:clinicalMonitoringRegions.sidebar})],ClinicalMonitoring.prototype,"sidebarRegion",2),__decorateClass$b([s$5({targetId:"header-widgets-region",name:clinicalMonitoringRegions.header})],ClinicalMonitoring.prototype,"headerRegion",2),__decorateClass$b([s$5({targetId:"content-widgets-region",name:clinicalMonitoringRegions.content})],ClinicalMonitoring.prototype,"contentRegion",2),ClinicalMonitoring=__decorateClass$b([t$7("clinical-monitoring")],ClinicalMonitoring);const styles$5="*[hidden]{display:none!important}:host{width:100%;overflow:hidden}.container{width:100%;height:100%;display:flex;flex-direction:column;background:#fff}.header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0 16px;height:60px;background-color:#fff;color:#000;z-index:1;box-shadow:#0000001f 4px -1px 3px,#0000003d 0 1px 2px}.header__left{display:flex;flex-direction:row;align-items:center;gap:24px}.header .header-logo{align-self:center}.header #actions-toolbar-region-container{display:flex;flex-direction:row}.main-container{min-height:1px;height:100%;display:flex}.main-container .sidebar{display:flex;flex-direction:column;justify-content:space-between;background:var(--color-primary-800);width:15%;height:100%;color:#fff}.main-container .content{display:flex;height:100%;width:85%}.main-container #main-region-container{min-height:1px;height:100%;flex:1}.main-container #floating-region-container{position:fixed;z-index:200}.footer{display:flex;height:50px;padding:0 16px}.footer .footer-logo{align-self:center}";function __decorate(W,O,U,G){var Y=arguments.length,K=Y<3?O:G===null?G=Object.getOwnPropertyDescriptor(O,U):G,J;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")K=Reflect.decorate(W,O,U,G);else for(var X=W.length-1;X>=0;X--)(J=W[X])&&(K=(Y<3?J(K):Y>3?J(O,U,K):J(O,U))||K);return Y>3&&K&&Object.defineProperty(O,U,K),K}typeof SuppressedError=="function"&&SuppressedError;const symbolStyles=i$5`
192
192
  .dss-icon,