@equinor/echo-base
Advanced tools
Comparing version 0.7.2 to 0.7.3-beta1
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,e=require("lodash");exports.Api=void 0,(t=exports.Api||(exports.Api={})).ProCoSys="ProCoSys",t.Stid="Stid",t.SapOm="SapOm",t.MaintenanceData="MaintenanceData",t.CommonLib="CommonLib",t.Microsoft="Microsoft",t.EchoHub="EchoHub",t.MaintenanceAPI="MaintenanceAPI",t.External="External",t.WorkPermits="WorkPermits",t.Unknown="Unknown",t.FakeErrorForTesting="FakeErrorForTesting";var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=function(t){return t&&t.Math===Math&&t},o=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r&&r)||n("object"==typeof r&&r)||function(){return this}()||Function("return this")(),i={},u=function(t){try{return!!t()}catch(t){return!0}},c=!u((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),a=!u((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),s=a,f=Function.prototype.call,l=s?f.bind(f):function(){return f.apply(f,arguments)},p={},d={}.propertyIsEnumerable,v=Object.getOwnPropertyDescriptor,h=v&&!d.call({1:2},1);p.f=h?function(t){var e=v(this,t);return!!e&&e.enumerable}:d;var m,g,y=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},b=a,E=Function.prototype,w=E.call,O=b&&E.bind.bind(w,w),x=b?O:function(t){return function(){return w.apply(t,arguments)}},S=x,j=S({}.toString),P=S("".slice),T=function(t){return P(j(t),8,-1)},A=u,I=T,R=Object,M=x("".split),C=A((function(){return!R("z").propertyIsEnumerable(0)}))?function(t){return"String"===I(t)?M(t,""):R(t)}:R,L=function(t){return null==t},N=L,k=TypeError,F=function(t){if(N(t))throw new k("Can't call method on "+t);return t},D=C,_=F,U=function(t){return D(_(t))},B="object"==typeof document&&document.all,G=void 0===B&&void 0!==B?function(t){return"function"==typeof t||t===B}:function(t){return"function"==typeof t},z=G,$=function(t){return"object"==typeof t?null!==t:z(t)},W=o,q=G,V=function(t,e){return arguments.length<2?(r=W[t],q(r)?r:void 0):W[t]&&W[t][e];var r},H=x({}.isPrototypeOf),K=o.navigator,Y=K&&K.userAgent,J=Y?String(Y):"",X=o,Z=J,Q=X.process,tt=X.Deno,et=Q&&Q.versions||tt&&tt.version,rt=et&&et.v8;rt&&(g=(m=rt.split("."))[0]>0&&m[0]<4?1:+(m[0]+m[1])),!g&&Z&&(!(m=Z.match(/Edge\/(\d+)/))||m[1]>=74)&&(m=Z.match(/Chrome\/(\d+)/))&&(g=+m[1]);var nt=g,ot=nt,it=u,ut=o.String,ct=!!Object.getOwnPropertySymbols&&!it((function(){var t=Symbol("symbol detection");return!ut(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ot&&ot<41})),at=ct&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,st=V,ft=G,lt=H,pt=Object,dt=at?function(t){return"symbol"==typeof t}:function(t){var e=st("Symbol");return ft(e)&<(e.prototype,pt(t))},vt=String,ht=function(t){try{return vt(t)}catch(t){return"Object"}},mt=G,gt=ht,yt=TypeError,bt=function(t){if(mt(t))return t;throw new yt(gt(t)+" is not a function")},Et=bt,wt=L,Ot=function(t,e){var r=t[e];return wt(r)?void 0:Et(r)},xt=l,St=G,jt=$,Pt=TypeError,Tt={exports:{}},At=o,It=Object.defineProperty,Rt=function(t,e){try{It(At,t,{value:e,configurable:!0,writable:!0})}catch(r){At[t]=e}return e},Mt=o,Ct=Rt,Lt="__core-js_shared__",Nt=Tt.exports=Mt[Lt]||Ct(Lt,{});(Nt.versions||(Nt.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});var kt=Tt.exports,Ft=function(t,e){return kt[t]||(kt[t]=e||{})},Dt=F,_t=Object,Ut=function(t){return _t(Dt(t))},Bt=Ut,Gt=x({}.hasOwnProperty),zt=Object.hasOwn||function(t,e){return Gt(Bt(t),e)},$t=x,Wt=0,qt=Math.random(),Vt=$t(1..toString),Ht=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Vt(++Wt+qt,36)},Kt=Ft,Yt=zt,Jt=Ht,Xt=ct,Zt=at,Qt=o.Symbol,te=Kt("wks"),ee=Zt?Qt.for||Qt:Qt&&Qt.withoutSetter||Jt,re=function(t){return Yt(te,t)||(te[t]=Xt&&Yt(Qt,t)?Qt[t]:ee("Symbol."+t)),te[t]},ne=l,oe=$,ie=dt,ue=Ot,ce=function(t,e){var r,n;if("string"===e&&St(r=t.toString)&&!jt(n=xt(r,t)))return n;if(St(r=t.valueOf)&&!jt(n=xt(r,t)))return n;if("string"!==e&&St(r=t.toString)&&!jt(n=xt(r,t)))return n;throw new Pt("Can't convert object to primitive value")},ae=TypeError,se=re("toPrimitive"),fe=function(t,e){if(!oe(t)||ie(t))return t;var r,n=ue(t,se);if(n){if(void 0===e&&(e="default"),r=ne(n,t,e),!oe(r)||ie(r))return r;throw new ae("Can't convert object to primitive value")}return void 0===e&&(e="number"),ce(t,e)},le=dt,pe=function(t){var e=fe(t,"string");return le(e)?e:e+""},de=$,ve=o.document,he=de(ve)&&de(ve.createElement),me=function(t){return he?ve.createElement(t):{}},ge=me,ye=!c&&!u((function(){return 7!==Object.defineProperty(ge("div"),"a",{get:function(){return 7}}).a})),be=c,Ee=l,we=p,Oe=y,xe=U,Se=pe,je=zt,Pe=ye,Te=Object.getOwnPropertyDescriptor;i.f=be?Te:function(t,e){if(t=xe(t),e=Se(e),Pe)try{return Te(t,e)}catch(t){}if(je(t,e))return Oe(!Ee(we.f,t,e),t[e])};var Ae={},Ie=c&&u((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Re=$,Me=String,Ce=TypeError,Le=function(t){if(Re(t))return t;throw new Ce(Me(t)+" is not an object")},Ne=c,ke=ye,Fe=Ie,De=Le,_e=pe,Ue=TypeError,Be=Object.defineProperty,Ge=Object.getOwnPropertyDescriptor,ze="enumerable",$e="configurable",We="writable";Ae.f=Ne?Fe?function(t,e,r){if(De(t),e=_e(e),De(r),"function"==typeof t&&"prototype"===e&&"value"in r&&We in r&&!r[We]){var n=Ge(t,e);n&&n[We]&&(t[e]=r.value,r={configurable:$e in r?r[$e]:n[$e],enumerable:ze in r?r[ze]:n[ze],writable:!1})}return Be(t,e,r)}:Be:function(t,e,r){if(De(t),e=_e(e),De(r),ke)try{return Be(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new Ue("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var qe=Ae,Ve=y,He=c?function(t,e,r){return qe.f(t,e,Ve(1,r))}:function(t,e,r){return t[e]=r,t},Ke={exports:{}},Ye=c,Je=zt,Xe=Function.prototype,Ze=Ye&&Object.getOwnPropertyDescriptor,Qe=Je(Xe,"name"),tr={EXISTS:Qe,PROPER:Qe&&"something"===function(){}.name,CONFIGURABLE:Qe&&(!Ye||Ye&&Ze(Xe,"name").configurable)},er=x,rr=G,nr=Tt.exports,or=er(Function.toString);rr(nr.inspectSource)||(nr.inspectSource=function(t){return or(t)});var ir,ur,cr,ar=nr.inspectSource,sr=G,fr=o.WeakMap,lr=sr(fr)&&/native code/.test(String(fr)),pr=Ht,dr=Ft("keys"),vr=function(t){return dr[t]||(dr[t]=pr(t))},hr={},mr=lr,gr=o,yr=$,br=He,Er=zt,wr=Tt.exports,Or=vr,xr=hr,Sr="Object already initialized",jr=gr.TypeError,Pr=gr.WeakMap;if(mr||wr.state){var Tr=wr.state||(wr.state=new Pr);Tr.get=Tr.get,Tr.has=Tr.has,Tr.set=Tr.set,ir=function(t,e){if(Tr.has(t))throw new jr(Sr);return e.facade=t,Tr.set(t,e),e},ur=function(t){return Tr.get(t)||{}},cr=function(t){return Tr.has(t)}}else{var Ar=Or("state");xr[Ar]=!0,ir=function(t,e){if(Er(t,Ar))throw new jr(Sr);return e.facade=t,br(t,Ar,e),e},ur=function(t){return Er(t,Ar)?t[Ar]:{}},cr=function(t){return Er(t,Ar)}}var Ir={set:ir,get:ur,has:cr,enforce:function(t){return cr(t)?ur(t):ir(t,{})},getterFor:function(t){return function(e){var r;if(!yr(e)||(r=ur(e)).type!==t)throw new jr("Incompatible receiver, "+t+" required");return r}}},Rr=x,Mr=u,Cr=G,Lr=zt,Nr=c,kr=tr.CONFIGURABLE,Fr=ar,Dr=Ir.enforce,_r=Ir.get,Ur=String,Br=Object.defineProperty,Gr=Rr("".slice),zr=Rr("".replace),$r=Rr([].join),Wr=Nr&&!Mr((function(){return 8!==Br((function(){}),"length",{value:8}).length})),qr=String(String).split("String"),Vr=Ke.exports=function(t,e,r){"Symbol("===Gr(Ur(e),0,7)&&(e="["+zr(Ur(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Lr(t,"name")||kr&&t.name!==e)&&(Nr?Br(t,"name",{value:e,configurable:!0}):t.name=e),Wr&&r&&Lr(r,"arity")&&t.length!==r.arity&&Br(t,"length",{value:r.arity});try{r&&Lr(r,"constructor")&&r.constructor?Nr&&Br(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=Dr(t);return Lr(n,"source")||(n.source=$r(qr,"string"==typeof e?e:"")),t};Function.prototype.toString=Vr((function(){return Cr(this)&&_r(this).source||Fr(this)}),"toString");var Hr=G,Kr=Ae,Yr=Ke.exports,Jr=Rt,Xr=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(Hr(r)&&Yr(r,i,n),n.global)o?t[e]=r:Jr(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:Kr.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},Zr={},Qr=Math.ceil,tn=Math.floor,en=Math.trunc||function(t){var e=+t;return(e>0?tn:Qr)(e)},rn=function(t){var e=+t;return e!=e||0===e?0:en(e)},nn=rn,on=Math.max,un=Math.min,cn=rn,an=Math.min,sn=function(t){var e=cn(t);return e>0?an(e,9007199254740991):0},fn=function(t){return sn(t.length)},ln=U,pn=function(t,e){var r=nn(t);return r<0?on(r+e,0):un(r,e)},dn=fn,vn=function(t){return function(e,r,n){var o=ln(e),i=dn(o);if(0===i)return!t&&-1;var u,c=pn(n,i);if(t&&r!=r){for(;i>c;)if((u=o[c++])!=u)return!0}else for(;i>c;c++)if((t||c in o)&&o[c]===r)return t||c||0;return!t&&-1}},hn={includes:vn(!0),indexOf:vn(!1)},mn=zt,gn=U,yn=hn.indexOf,bn=hr,En=x([].push),wn=function(t,e){var r,n=gn(t),o=0,i=[];for(r in n)!mn(bn,r)&&mn(n,r)&&En(i,r);for(;e.length>o;)mn(n,r=e[o++])&&(~yn(i,r)||En(i,r));return i},On=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xn=wn,Sn=On.concat("length","prototype");Zr.f=Object.getOwnPropertyNames||function(t){return xn(t,Sn)};var jn={};jn.f=Object.getOwnPropertySymbols;var Pn=V,Tn=Zr,An=jn,In=Le,Rn=x([].concat),Mn=Pn("Reflect","ownKeys")||function(t){var e=Tn.f(In(t)),r=An.f;return r?Rn(e,r(t)):e},Cn=zt,Ln=Mn,Nn=i,kn=Ae,Fn=u,Dn=G,_n=/#|\.prototype\./,Un=function(t,e){var r=Gn[Bn(t)];return r===$n||r!==zn&&(Dn(e)?Fn(e):!!e)},Bn=Un.normalize=function(t){return String(t).replace(_n,".").toLowerCase()},Gn=Un.data={},zn=Un.NATIVE="N",$n=Un.POLYFILL="P",Wn=Un,qn=o,Vn=i.f,Hn=He,Kn=Xr,Yn=Rt,Jn=function(t,e,r){for(var n=Ln(e),o=kn.f,i=Nn.f,u=0;u<n.length;u++){var c=n[u];Cn(t,c)||r&&Cn(r,c)||o(t,c,i(e,c))}},Xn=Wn,Zn=function(t,e){var r,n,o,i,u,c=t.target,a=t.global,s=t.stat;if(r=a?qn:s?qn[c]||Yn(c,{}):qn[c]&&qn[c].prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(u=Vn(r,n))&&u.value:r[n],!Xn(a?n:c+(s?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Jn(i,o)}(t.sham||o&&o.sham)&&Hn(i,"sham",!0),Kn(r,n,i,t)}},Qn={},to=wn,eo=On,ro=Object.keys||function(t){return to(t,eo)},no=c,oo=Ie,io=Ae,uo=Le,co=U,ao=ro;Qn.f=no&&!oo?Object.defineProperties:function(t,e){uo(t);for(var r,n=co(e),o=ao(e),i=o.length,u=0;i>u;)io.f(t,r=o[u++],n[r]);return t};var so,fo=V("document","documentElement"),lo=Le,po=Qn,vo=On,ho=hr,mo=fo,go=me,yo="prototype",bo="script",Eo=vr("IE_PROTO"),wo=function(){},Oo=function(t){return"<"+bo+">"+t+"</"+bo+">"},xo=function(t){t.write(Oo("")),t.close();var e=t.parentWindow.Object;return t=null,e},So=function(){try{so=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;So="undefined"!=typeof document?document.domain&&so?xo(so):(e=go("iframe"),r="java"+bo+":",e.style.display="none",mo.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Oo("document.F=Object")),t.close(),t.F):xo(so);for(var n=vo.length;n--;)delete So[yo][vo[n]];return So()};ho[Eo]=!0;var jo=Object.create||function(t,e){var r;return null!==t?(wo[yo]=lo(t),r=new wo,wo[yo]=null,r[Eo]=t):r=So(),void 0===e?r:po.f(r,e)},Po=re,To=jo,Ao=Ae.f,Io=Po("unscopables"),Ro=Array.prototype;void 0===Ro[Io]&&Ao(Ro,Io,{configurable:!0,value:To(null)});var Mo=function(t){Ro[Io][t]=!0},Co=hn.includes,Lo=Mo;Zn({target:"Array",proto:!0,forced:u((function(){return!Array(1).includes()}))},{includes:function(t){return Co(this,t,arguments.length>1?arguments[1]:void 0)}}),Lo("includes");var No,ko,Fo,Do={},_o=!u((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Uo=zt,Bo=G,Go=Ut,zo=_o,$o=vr("IE_PROTO"),Wo=Object,qo=Wo.prototype,Vo=zo?Wo.getPrototypeOf:function(t){var e=Go(t);if(Uo(e,$o))return e[$o];var r=e.constructor;return Bo(r)&&e instanceof r?r.prototype:e instanceof Wo?qo:null},Ho=u,Ko=G,Yo=$,Jo=Vo,Xo=Xr,Zo=re("iterator"),Qo=!1;[].keys&&("next"in(Fo=[].keys())?(ko=Jo(Jo(Fo)))!==Object.prototype&&(No=ko):Qo=!0);var ti=!Yo(No)||Ho((function(){var t={};return No[Zo].call(t)!==t}));ti&&(No={}),Ko(No[Zo])||Xo(No,Zo,(function(){return this}));var ei={IteratorPrototype:No,BUGGY_SAFARI_ITERATORS:Qo},ri=Ae.f,ni=zt,oi=re("toStringTag"),ii=function(t,e,r){t&&!r&&(t=t.prototype),t&&!ni(t,oi)&&ri(t,oi,{configurable:!0,value:e})},ui=ei.IteratorPrototype,ci=jo,ai=y,si=ii,fi=Do,li=function(){return this},pi=x,di=bt,vi=$,hi=function(t){return vi(t)||null===t},mi=String,gi=TypeError,yi=function(t,e,r){try{return pi(di(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},bi=$,Ei=F,wi=function(t){if(hi(t))return t;throw new gi("Can't set "+mi(t)+" as a prototype")},Oi=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=yi(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Ei(r),wi(n),bi(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0),xi=Zn,Si=l,ji=G,Pi=function(t,e,r,n){var o=e+" Iterator";return t.prototype=ci(ui,{next:ai(+!n,r)}),si(t,o,!1),fi[o]=li,t},Ti=Vo,Ai=Oi,Ii=ii,Ri=He,Mi=Xr,Ci=Do,Li=tr.PROPER,Ni=tr.CONFIGURABLE,ki=ei.IteratorPrototype,Fi=ei.BUGGY_SAFARI_ITERATORS,Di=re("iterator"),_i="keys",Ui="values",Bi="entries",Gi=function(){return this},zi=U,$i=Mo,Wi=Do,qi=Ir,Vi=Ae.f,Hi=function(t,e,r,n,o,i,u){Pi(r,e,n);var c,a,s,f=function(t){if(t===o&&h)return h;if(!Fi&&t&&t in d)return d[t];switch(t){case _i:case Ui:case Bi:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",p=!1,d=t.prototype,v=d[Di]||d["@@iterator"]||o&&d[o],h=!Fi&&v||f(o),m="Array"===e&&d.entries||v;if(m&&(c=Ti(m.call(new t)))!==Object.prototype&&c.next&&(Ti(c)!==ki&&(Ai?Ai(c,ki):ji(c[Di])||Mi(c,Di,Gi)),Ii(c,l,!0)),Li&&o===Ui&&v&&v.name!==Ui&&(Ni?Ri(d,"name",Ui):(p=!0,h=function(){return Si(v,this)})),o)if(a={values:f(Ui),keys:i?h:f(_i),entries:f(Bi)},u)for(s in a)(Fi||p||!(s in d))&&Mi(d,s,a[s]);else xi({target:e,proto:!0,forced:Fi||p},a);return d[Di]!==h&&Mi(d,Di,h,{name:o}),Ci[e]=h,a},Ki=function(t,e){return{value:t,done:e}},Yi=c,Ji="Array Iterator",Xi=qi.set,Zi=qi.getterFor(Ji),Qi=Hi(Array,"Array",(function(t,e){Xi(this,{type:Ji,target:zi(t),index:0,kind:e})}),(function(){var t=Zi(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,Ki(void 0,!0);switch(t.kind){case"keys":return Ki(r,!1);case"values":return Ki(e[r],!1)}return Ki([r,e[r]],!1)}),"values"),tu=Wi.Arguments=Wi.Array;if($i("keys"),$i("values"),$i("entries"),Yi&&"values"!==tu.name)try{Vi(tu,"name",{value:"values"})}catch(t){}var eu=$,ru=T,nu=re("match"),ou=function(t){var e;return eu(t)&&(void 0!==(e=t[nu])?!!e:"RegExp"===ru(t))},iu=TypeError,uu={};uu[re("toStringTag")]="z";var cu="[object z]"===String(uu),au=G,su=T,fu=re("toStringTag"),lu=Object,pu="Arguments"===su(function(){return arguments}()),du=cu?su:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=lu(t),fu))?r:pu?su(e):"Object"===(n=su(e))&&au(e.callee)?"Arguments":n},vu=du,hu=String,mu=function(t){if("Symbol"===vu(t))throw new TypeError("Cannot convert a Symbol value to a string");return hu(t)},gu=re("match"),yu=Zn,bu=function(t){if(ou(t))throw new iu("The method doesn't accept regular expressions");return t},Eu=F,wu=mu,Ou=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[gu]=!1,"/./"[t](e)}catch(t){}}return!1},xu=x("".indexOf);yu({target:"String",proto:!0,forced:!Ou("includes")},{includes:function(t){return!!~xu(wu(Eu(this)),wu(bu(t)),arguments.length>1?arguments[1]:void 0)}});var Su=me("span").classList,ju=Su&&Su.constructor&&Su.constructor.prototype,Pu=ju===Object.prototype?void 0:ju,Tu=o,Au={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Iu=Pu,Ru=Qi,Mu=He,Cu=ii,Lu=re("iterator"),Nu=Ru.values,ku=function(t,e){if(t){if(t[Lu]!==Nu)try{Mu(t,Lu,Nu)}catch(e){t[Lu]=Nu}if(Cu(t,e,!0),Au[e])for(var r in Ru)if(t[r]!==Ru[r])try{Mu(t,r,Ru[r])}catch(e){t[r]=Ru[r]}}};for(var Fu in Au)ku(Tu[Fu]&&Tu[Fu].prototype,Fu);ku(Iu,"DOMTokenList");var Du=Le,_u=function(){var t=Du(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Uu=l,Bu=zt,Gu=H,zu=_u,$u=RegExp.prototype,Wu=tr.PROPER,qu=Xr,Vu=Le,Hu=mu,Ku=u,Yu=function(t){var e=t.flags;return void 0!==e||"flags"in $u||Bu(t,"flags")||!Gu($u,t)?e:Uu(zu,t)},Ju="toString",Xu=RegExp.prototype,Zu=Xu[Ju],Qu=Ku((function(){return"/a/b"!==Zu.call({source:"a",flags:"b"})})),tc=Wu&&Zu.name!==Ju;(Qu||tc)&&qu(Xu,Ju,(function(){var t=Vu(this);return"/"+Hu(t.source)+"/"+Hu(Yu(t))}),{unsafe:!0});class ec extends Error{constructor({name:t,message:e,innerError:r}){super(e),this.hasBeenLogged=!1,Error.captureStackTrace&&Error.captureStackTrace(this,ec),Object.setPrototypeOf(this,new.target.prototype),this.innerError=r,this.errorTraceId=this.fixMissingErrorTraceId(r);const n=this.constructor.name;this.name=null!=t?t:n,e||(this.message=this.name)}fixMissingErrorTraceId(t){if(this.errorTraceId)return this.errorTraceId;const e=t?nc(t,"errorTraceId"):void 0;return null!=e?e:`frontEnd_${Math.random().toString(36).substring(2,11)}`}getProperties(){return oc(this)}getInnerError(){return this.innerError}getInnerErrorProperties(){return oc(this.innerError)}findPropertyByName(t,e=!0){return nc(this,t,e)}}const rc=["_value","constructor","prototype","__proto__"];function nc(t,e,r=!0){const n=oc(t);if(Object.prototype.hasOwnProperty.call(n,e)){const t=n[e];if(void 0!==t)return t}let o;if(r){(n?Object.getOwnPropertyNames(n):[]).forEach((r=>{var n;const i=null===(n=Object.entries(t).find((t=>t[0]===r)))||void 0===n?void 0:n[1];o||"object"!==typeof i||rc.includes(r)||(o=nc(i,e))}))}return o}function oc(t,e){if(!t)return{};const r=t?Object.getOwnPropertyNames(t):[];t instanceof Error&&!r.includes("name")&&r.push("name"),t instanceof Error&&!r.includes("message")&&r.push("message");const n=t,o={};return r.forEach((t=>{const r=n[t];rc.includes(t)||"function"==typeof r||function(t,e){if(!e)return!1;if(t=t.toLocaleLowerCase(),e.ignoreIncludes&&e.ignoreIncludes.some((e=>t.includes(e.toLocaleLowerCase()))))return!0;if(e.ignoreEquals&&e.ignoreEquals.some((e=>t===e.toLocaleLowerCase())))return!0}(t,e)||(Array.isArray(r)?o[t]=r:o[t]=r&&"object"==typeof r?oc(r,e):r)})),o}var ic=c,uc=x,cc=l,ac=u,sc=ro,fc=jn,lc=p,pc=Ut,dc=C,vc=Object.assign,hc=Object.defineProperty,mc=uc([].concat),gc=!vc||ac((function(){if(ic&&1!==vc({b:1},vc(hc({},"a",{enumerable:!0,get:function(){hc(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!==vc({},t)[r]||sc(vc({},e)).join("")!==n}))?function(t,e){for(var r=pc(t),n=arguments.length,o=1,i=fc.f,u=lc.f;n>o;)for(var c,a=dc(arguments[o++]),s=i?mc(sc(a),i(a)):sc(a),f=s.length,l=0;f>l;)c=s[l++],ic&&!cc(u,a,c)||(r[c]=a[c]);return r}:vc,yc=gc;Zn({target:"Object",stat:!0,arity:2,forced:Object.assign!==yc},{assign:yc});class bc extends ec{constructor({name:t,message:e,httpStatusCode:r,url:n,exception:o}){super({name:null!=t?t:"NetworkError",message:e||"",innerError:o}),this.getUrl=()=>this.url,this.url=n,this.httpStatusCode=r,!e&&(this.message=`${this.name} ${r} ${n}`)}}class Ec extends bc{constructor(t){var e;super(Object.assign(Object.assign({},t),{name:null!==(e=t.name)&&void 0!==e?e:"BadRequestError"}))}}class wc extends bc{constructor(t){var e;super(Object.assign(Object.assign({},t),{name:null!==(e=t.name)&&void 0!==e?e:"BackendError"}))}}class Oc extends bc{constructor(t){var e;super(Object.assign(Object.assign({},t),{name:null!==(e=t.name)&&void 0!==e?e:"ForbiddenError"}))}}class xc extends Oc{constructor(t){var e;super(Object.assign(Object.assign({},t),{name:null!==(e=t.name)&&void 0!==e?e:"UnauthorizedError"}))}}class Sc extends bc{constructor(t){var e;super(Object.assign(Object.assign({},t),{name:null!==(e=t.name)&&void 0!==e?e:"NotFoundError"}))}}class jc extends bc{constructor(t){var e;super(Object.assign(Object.assign({},t),{name:null!==(e=t.name)&&void 0!==e?e:"ValidationError"}))}}var Pc="\t\n\v\f\r \u2028\u2029\ufeff",Tc=F,Ac=mu,Ic=Pc,Rc=x("".replace),Mc=RegExp("^["+Ic+"]+"),Cc=RegExp("(^|[^"+Ic+"])["+Ic+"]+$"),Lc=function(t){return function(e){var r=Ac(Tc(e));return 1&t&&(r=Rc(r,Mc,"")),2&t&&(r=Rc(r,Cc,"$1")),r}},Nc={start:Lc(1),end:Lc(2),trim:Lc(3)},kc=o,Fc=u,Dc=mu,_c=Nc.trim,Uc=Pc,Bc=x("".charAt),Gc=kc.parseFloat,zc=kc.Symbol,$c=zc&&zc.iterator,Wc=1/Gc(Uc+"-0")!=-1/0||$c&&!Fc((function(){Gc(Object($c))}))?function(t){var e=_c(Dc(t)),r=Gc(e);return 0===r&&"-"===Bc(e,0)?-0:r}:Gc;function qc(t){const e=nc(t,"urlToRole");return Array.isArray(e)?e[0]:e}function Vc(t){const e=nc(t,"errors")||{},r=e.apiError||e.internalError;return Array.isArray(r)&&r.length>0?r:[]}function Hc(t){var e;if(qc(t))return exports.Api.Stid;const r=(null!==(e=nc(t,"url"))&&void 0!==e?e:"").toLowerCase();if(r.includes("workorder")||r.includes("notification"))return exports.Api.SapOm;if(r.includes("work-orders")||r.includes("record"))return exports.Api.MaintenanceData;if(["procosys","punch","checklist","mcpks","commpks"].some((t=>r.includes(t))))return exports.Api.ProCoSys;if(r.includes("work-permit"))return exports.Api.WorkPermits;if(r.includes("fakeerror"))return exports.Api.FakeErrorForTesting;if(r.includes("/maintenance/"))return exports.Api.MaintenanceAPI;const n=Vc(t);if(Array.isArray(n)&&n.length>0){const t=n[0].toLocaleLowerCase();for(const e of Object.keys(exports.Api))if(t.includes(e.toLocaleLowerCase()))return exports.Api[e]}}Zn({global:!0,forced:parseFloat!==Wc},{parseFloat:Wc});var Kc=tr.PROPER,Yc=u,Jc=Pc,Xc=Nc.trim;Zn({target:"String",proto:!0,forced:function(t){return Yc((function(){return!!Jc[t]()||" "!==" "[t]()||Kc&&Jc[t].name!==t}))}("trim")},{trim:function(){return Xc(this)}});class Zc extends ec{constructor(t){super(Object.assign(Object.assign({},t),{name:"ImproperErrorObject"}))}}function Qc(t){var e,r;if(t instanceof ec||t instanceof Error)return t;const n=typeof t;if("string"===n||"number"===n||"boolean"===n||"bigint"===n||"symbol"===n){let e="unknown";switch(n){case"string":e=t;break;case"number":case"boolean":case"bigint":case"symbol":e=t.toString()}return new Zc({message:e,innerError:{argumentType:n}})}if("object"===n){const o=t,i=Object.assign({},o),u=`${null!==(e=i.name)&&void 0!==e?e:""} ${null!==(r=i.message)&&void 0!==r?r:""}`.trim();return new Zc({message:u.length>0?u:"unknown",innerError:Object.assign(Object.assign({},i),{argumentType:n})})}return new Zc({message:"unknown",innerError:{argumentType:n}})}const ta=Object.freeze({error:ra,baseError:function(t){const e=nc(t,"hasBeenLogged");return ra(t)&&void 0!==e},networkError:function(t){return function(t){var e;return(null!==(e=oa(t))&&void 0!==e?e:-1)>=0}(nc(t,"httpStatusCode"))||t.name===bc.name},backendError:function(t){return function(t){var e;return(null!==(e=oa(t))&&void 0!==e?e:-1)>0}(nc(t,"httpStatusCode"))||t.name===wc.name},notFoundError:function(t){return 404===nc(t,"httpStatusCode")||t.name===Sc.name},forbiddenError:na,unauthorizedError:function(t){return 401===nc(t,"httpStatusCode")||t.name===xc.name},forbiddenProCoSys:function(t){if(!t)return!1;const e=Qc(t);return Hc(e)===exports.Api.ProCoSys&&na(e)},forbiddenOrUnauthorized:function(t){return ea.is.forbiddenError(t)||ea.is.unauthorizedError(t)},mediaError:function(t){return t.name.toLowerCase().includes("mediaerror")}}),ea=Object.freeze({toError:Qc,is:ta,findPropertyByName:nc,getAllProperties:oc,extractErrorTexts:Vc,detectApi:Hc,tryToGetStidUrlToRole:qc});function ra(t){return"object"==typeof t&&!!t&&"message"in t&&"name"in t}function na(t){return 403===nc(t,"httpStatusCode")||t.name.toLowerCase().includes("forbidden")}function oa(t){if("number"==typeof t)return t;if("string"==typeof t){const e=parseFloat(t);if(!isNaN(e))return e}}var ia=o,ua=J,ca=T,aa=function(t){return ua.slice(0,t.length)===t},sa=aa("Bun/")?"BUN":aa("Cloudflare-Workers")?"CLOUDFLARE":aa("Deno/")?"DENO":aa("Node.js/")?"NODE":ia.Bun&&"string"==typeof Bun.version?"BUN":ia.Deno&&"object"==typeof Deno.version?"DENO":"process"===ca(ia.process)?"NODE":ia.window&&ia.document?"BROWSER":"REST",fa="NODE"===sa,la=Ke.exports,pa=Ae,da=V,va=function(t,e,r){return r.get&&la(r.get,e,{getter:!0}),r.set&&la(r.set,e,{setter:!0}),pa.f(t,e,r)},ha=c,ma=re("species"),ga=H,ya=TypeError,ba=x,Ea=u,wa=G,Oa=du,xa=ar,Sa=function(){},ja=V("Reflect","construct"),Pa=/^\s*(?:class|function)\b/,Ta=ba(Pa.exec),Aa=!Pa.test(Sa),Ia=function(t){if(!wa(t))return!1;try{return ja(Sa,[],t),!0}catch(t){return!1}},Ra=function(t){if(!wa(t))return!1;switch(Oa(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Aa||!!Ta(Pa,xa(t))}catch(t){return!0}};Ra.sham=!0;var Ma,Ca,La,Na,ka=!ja||Ea((function(){var t;return Ia(Ia.call)||!Ia(Object)||!Ia((function(){t=!0}))||t}))?Ra:Ia,Fa=ka,Da=ht,_a=TypeError,Ua=Le,Ba=function(t){if(Fa(t))return t;throw new _a(Da(t)+" is not a constructor")},Ga=L,za=re("species"),$a=a,Wa=Function.prototype,qa=Wa.apply,Va=Wa.call,Ha="object"==typeof Reflect&&Reflect.apply||($a?Va.bind(qa):function(){return Va.apply(qa,arguments)}),Ka=T,Ya=x,Ja=function(t){if("Function"===Ka(t))return Ya(t)},Xa=bt,Za=a,Qa=Ja(Ja.bind),ts=function(t,e){return Xa(t),void 0===e?t:Za?Qa(t,e):function(){return t.apply(e,arguments)}},es=x([].slice),rs=TypeError,ns=/(?:ipad|iphone|ipod).*applewebkit/i.test(J),os=o,is=Ha,us=ts,cs=G,as=zt,ss=u,fs=fo,ls=es,ps=me,ds=function(t,e){if(t<e)throw new rs("Not enough arguments");return t},vs=ns,hs=fa,ms=os.setImmediate,gs=os.clearImmediate,ys=os.process,bs=os.Dispatch,Es=os.Function,ws=os.MessageChannel,Os=os.String,xs=0,Ss={},js="onreadystatechange";ss((function(){Ma=os.location}));var Ps=function(t){if(as(Ss,t)){var e=Ss[t];delete Ss[t],e()}},Ts=function(t){return function(){Ps(t)}},As=function(t){Ps(t.data)},Is=function(t){os.postMessage(Os(t),Ma.protocol+"//"+Ma.host)};ms&&gs||(ms=function(t){ds(arguments.length,1);var e=cs(t)?t:Es(t),r=ls(arguments,1);return Ss[++xs]=function(){is(e,void 0,r)},Ca(xs),xs},gs=function(t){delete Ss[t]},hs?Ca=function(t){ys.nextTick(Ts(t))}:bs&&bs.now?Ca=function(t){bs.now(Ts(t))}:ws&&!vs?(Na=(La=new ws).port2,La.port1.onmessage=As,Ca=us(Na.postMessage,Na)):os.addEventListener&&cs(os.postMessage)&&!os.importScripts&&Ma&&"file:"!==Ma.protocol&&!ss(Is)?(Ca=Is,os.addEventListener("message",As,!1)):Ca=js in ps("script")?function(t){fs.appendChild(ps("script"))[js]=function(){fs.removeChild(this),Ps(t)}}:function(t){setTimeout(Ts(t),0)});var Rs={set:ms,clear:gs},Ms=o,Cs=c,Ls=Object.getOwnPropertyDescriptor,Ns=function(){this.head=null,this.tail=null};Ns.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var ks,Fs,Ds,_s,Us,Bs=Ns,Gs=/ipad|iphone|ipod/i.test(J)&&"undefined"!=typeof Pebble,zs=/web0s(?!.*chrome)/i.test(J),$s=o,Ws=function(t){if(!Cs)return Ms[t];var e=Ls(Ms,t);return e&&e.value},qs=ts,Vs=Rs.set,Hs=Bs,Ks=ns,Ys=Gs,Js=zs,Xs=fa,Zs=$s.MutationObserver||$s.WebKitMutationObserver,Qs=$s.document,tf=$s.process,ef=$s.Promise,rf=Ws("queueMicrotask");if(!rf){var nf=new Hs,of=function(){var t,e;for(Xs&&(t=tf.domain)&&t.exit();e=nf.get();)try{e()}catch(t){throw nf.head&&ks(),t}t&&t.enter()};Ks||Xs||Js||!Zs||!Qs?!Ys&&ef&&ef.resolve?((_s=ef.resolve(void 0)).constructor=ef,Us=qs(_s.then,_s),ks=function(){Us(of)}):Xs?ks=function(){tf.nextTick(of)}:(Vs=qs(Vs,$s),ks=function(){Vs(of)}):(Fs=!0,Ds=Qs.createTextNode(""),new Zs(of).observe(Ds,{characterData:!0}),ks=function(){Ds.data=Fs=!Fs}),rf=function(t){nf.head||ks(),nf.add(t)}}var uf=rf,cf=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},af=o.Promise,sf=o,ff=af,lf=G,pf=Wn,df=ar,vf=re,hf=sa,mf=nt;ff&&ff.prototype;var gf=vf("species"),yf=!1,bf=lf(sf.PromiseRejectionEvent),Ef=pf("Promise",(function(){var t=df(ff),e=t!==String(ff);if(!e&&66===mf)return!0;if(!mf||mf<51||!/native code/.test(t)){var r=new ff((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((r.constructor={})[gf]=n,!(yf=r.then((function(){}))instanceof n))return!0}return!(e||"BROWSER"!==hf&&"DENO"!==hf||bf)})),wf={CONSTRUCTOR:Ef,REJECTION_EVENT:bf,SUBCLASSING:yf},Of={},xf=bt,Sf=TypeError,jf=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw new Sf("Bad Promise constructor");e=t,r=n})),this.resolve=xf(e),this.reject=xf(r)};Of.f=function(t){return new jf(t)};var Pf,Tf,Af,If=Zn,Rf=fa,Mf=o,Cf=l,Lf=Xr,Nf=Oi,kf=ii,Ff=function(t){var e=da(t);ha&&e&&!e[ma]&&va(e,ma,{configurable:!0,get:function(){return this}})},Df=bt,_f=G,Uf=$,Bf=function(t,e){if(ga(e,t))return t;throw new ya("Incorrect invocation")},Gf=function(t,e){var r,n=Ua(t).constructor;return void 0===n||Ga(r=Ua(n)[za])?e:Ba(r)},zf=Rs.set,$f=uf,Wf=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}},qf=cf,Vf=Bs,Hf=Ir,Kf=af,Yf=Of,Jf="Promise",Xf=wf.CONSTRUCTOR,Zf=wf.REJECTION_EVENT,Qf=wf.SUBCLASSING,tl=Hf.getterFor(Jf),el=Hf.set,rl=Kf&&Kf.prototype,nl=Kf,ol=rl,il=Mf.TypeError,ul=Mf.document,cl=Mf.process,al=Yf.f,sl=al,fl=!!(ul&&ul.createEvent&&Mf.dispatchEvent),ll="unhandledrejection",pl=function(t){var e;return!(!Uf(t)||!_f(e=t.then))&&e},dl=function(t,e){var r,n,o,i=e.value,u=1===e.state,c=u?t.ok:t.fail,a=t.resolve,s=t.reject,f=t.domain;try{c?(u||(2===e.rejection&&yl(e),e.rejection=1),!0===c?r=i:(f&&f.enter(),r=c(i),f&&(f.exit(),o=!0)),r===t.promise?s(new il("Promise-chain cycle")):(n=pl(r))?Cf(n,r,a,s):a(r)):s(i)}catch(t){f&&!o&&f.exit(),s(t)}},vl=function(t,e){t.notified||(t.notified=!0,$f((function(){for(var r,n=t.reactions;r=n.get();)dl(r,t);t.notified=!1,e&&!t.rejection&&ml(t)})))},hl=function(t,e,r){var n,o;fl?((n=ul.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),Mf.dispatchEvent(n)):n={promise:e,reason:r},!Zf&&(o=Mf["on"+t])?o(n):t===ll&&Wf("Unhandled promise rejection",r)},ml=function(t){Cf(zf,Mf,(function(){var e,r=t.facade,n=t.value;if(gl(t)&&(e=qf((function(){Rf?cl.emit("unhandledRejection",n,r):hl(ll,r,n)})),t.rejection=Rf||gl(t)?2:1,e.error))throw e.value}))},gl=function(t){return 1!==t.rejection&&!t.parent},yl=function(t){Cf(zf,Mf,(function(){var e=t.facade;Rf?cl.emit("rejectionHandled",e):hl("rejectionhandled",e,t.value)}))},bl=function(t,e,r){return function(n){t(e,n,r)}},El=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,vl(t,!0))},wl=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new il("Promise can't be resolved itself");var n=pl(e);n?$f((function(){var r={done:!1};try{Cf(n,e,bl(wl,r,t),bl(El,r,t))}catch(e){El(r,e,t)}})):(t.value=e,t.state=1,vl(t,!1))}catch(e){El({done:!1},e,t)}}};if(Xf&&(ol=(nl=function(t){Bf(this,ol),Df(t),Cf(Pf,this);var e=tl(this);try{t(bl(wl,e),bl(El,e))}catch(t){El(e,t)}}).prototype,(Pf=function(t){el(this,{type:Jf,done:!1,notified:!1,parent:!1,reactions:new Vf,rejection:!1,state:0,value:null})}).prototype=Lf(ol,"then",(function(t,e){var r=tl(this),n=al(Gf(this,nl));return r.parent=!0,n.ok=!_f(t)||t,n.fail=_f(e)&&e,n.domain=Rf?cl.domain:void 0,0===r.state?r.reactions.add(n):$f((function(){dl(n,r)})),n.promise})),Tf=function(){var t=new Pf,e=tl(t);this.promise=t,this.resolve=bl(wl,e),this.reject=bl(El,e)},Yf.f=al=function(t){return t===nl||undefined===t?new Tf(t):sl(t)},_f(Kf)&&rl!==Object.prototype)){Af=rl.then,Qf||Lf(rl,"then",(function(t,e){var r=this;return new nl((function(t,e){Cf(Af,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete rl.constructor}catch(t){}Nf&&Nf(rl,ol)}If({global:!0,constructor:!0,wrap:!0,forced:Xf},{Promise:nl}),kf(nl,Jf,!1),Ff(Jf);var Ol=Do,xl=re("iterator"),Sl=Array.prototype,jl=du,Pl=Ot,Tl=L,Al=Do,Il=re("iterator"),Rl=function(t){if(!Tl(t))return Pl(t,Il)||Pl(t,"@@iterator")||Al[jl(t)]},Ml=l,Cl=bt,Ll=Le,Nl=ht,kl=Rl,Fl=TypeError,Dl=l,_l=Le,Ul=Ot,Bl=ts,Gl=l,zl=Le,$l=ht,Wl=function(t){return void 0!==t&&(Ol.Array===t||Sl[xl]===t)},ql=fn,Vl=H,Hl=function(t,e){var r=arguments.length<2?kl(t):e;if(Cl(r))return Ll(Ml(r,t));throw new Fl(Nl(t)+" is not iterable")},Kl=Rl,Yl=function(t,e,r){var n,o;_l(t);try{if(!(n=Ul(t,"return"))){if("throw"===e)throw r;return r}n=Dl(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return _l(n),r},Jl=TypeError,Xl=function(t,e){this.stopped=t,this.result=e},Zl=Xl.prototype,Ql=function(t,e,r){var n,o,i,u,c,a,s,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),d=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),h=Bl(e,f),m=function(t){return n&&Yl(n,"normal",t),new Xl(!0,t)},g=function(t){return l?(zl(t),v?h(t[0],t[1],m):h(t[0],t[1])):v?h(t,m):h(t)};if(p)n=t.iterator;else if(d)n=t;else{if(!(o=Kl(t)))throw new Jl($l(t)+" is not iterable");if(Wl(o)){for(i=0,u=ql(t);u>i;i++)if((c=g(t[i]))&&Vl(Zl,c))return c;return new Xl(!1)}n=Hl(t,o)}for(a=p?t.next:n.next;!(s=Gl(a,n)).done;){try{c=g(s.value)}catch(t){Yl(n,"throw",t)}if("object"==typeof c&&c&&Vl(Zl,c))return c}return new Xl(!1)},tp=re("iterator"),ep=!1;try{var rp=0,np={next:function(){return{done:!!rp++}},return:function(){ep=!0}};np[tp]=function(){return this},Array.from(np,(function(){throw 2}))}catch(t){}var op=af,ip=function(t,e){try{if(!e&&!ep)return!1}catch(t){return!1}var r=!1;try{var n={};n[tp]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},up=wf.CONSTRUCTOR||!ip((function(t){op.all(t).then(void 0,(function(){}))})),cp=l,ap=bt,sp=Of,fp=cf,lp=Ql;Zn({target:"Promise",stat:!0,forced:up},{all:function(t){var e=this,r=sp.f(e),n=r.resolve,o=r.reject,i=fp((function(){var r=ap(e.resolve),i=[],u=0,c=1;lp(t,(function(t){var a=u++,s=!1;c++,cp(r,e,t).then((function(t){s||(s=!0,i[a]=t,--c||n(i))}),o)})),--c||n(i)}));return i.error&&o(i.value),r.promise}});var pp=Zn,dp=wf.CONSTRUCTOR,vp=af,hp=V,mp=G,gp=Xr,yp=vp&&vp.prototype;if(pp({target:"Promise",proto:!0,forced:dp,real:!0},{catch:function(t){return this.then(void 0,t)}}),mp(vp)){var bp=hp("Promise").prototype.catch;yp.catch!==bp&&gp(yp,"catch",bp,{unsafe:!0})}var Ep=l,wp=bt,Op=Of,xp=cf,Sp=Ql;Zn({target:"Promise",stat:!0,forced:up},{race:function(t){var e=this,r=Op.f(e),n=r.reject,o=xp((function(){var o=wp(e.resolve);Sp(t,(function(t){Ep(o,e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var jp=Of;Zn({target:"Promise",stat:!0,forced:wf.CONSTRUCTOR},{reject:function(t){var e=jp.f(this);return(0,e.reject)(t),e.promise}});var Pp=Le,Tp=$,Ap=Of,Ip=Zn,Rp=wf.CONSTRUCTOR,Mp=function(t,e){if(Pp(t),Tp(e)&&e.constructor===t)return e;var r=Ap.f(t);return(0,r.resolve)(e),r.promise};function Cp(t,e,r,n){return new(r||(r=Promise))((function(o,i){function u(t){try{a(n.next(t))}catch(t){i(t)}}function c(t){try{a(n.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(u,c)}a((n=n.apply(t,e||[])).next())}))}function Lp(t,e){try{return t.setup(e)}catch(t){console.warn(t)}}function Np(t,e){return Lp(t,e(t))}function kp(t,e){return!!Fp(t)||(console.warn(e),!1)}function Fp(t){return"function"==typeof t}function Dp(t){return Object.assign(Object.assign({},t),{setup(){}})}function _p(t,e){return e&&e()?t.filter((t=>!0!==t.private)):t}function Up(t){t()}function Bp(t,e){return Cp(this,void 0,void 0,(function*(){const r=[];for(const n of e)r.push(Gp(t,n));return yield Promise.all(r).then((t=>t))}))}function Gp(t,e){return Cp(this,void 0,void 0,(function*(){return kp(t,"Invalid `createAppApi` function. Skipping App installation.")&&(yield Np(e,t)),e}))}V("Promise"),Ip({target:"Promise",stat:!0,forced:Rp},{resolve:function(t){return Mp(this,t)}}),"function"==typeof SuppressedError&&SuppressedError;class zp extends ec{constructor(t){super(Object.assign(Object.assign({},t),{name:"ModuleAppError"}))}}function $p(t){return t instanceof zp?t:new zp({message:t.message,innerError:t})}class Wp extends zp{constructor(t){super(Object.assign({},t)),this.name="ModulesMetaError"}}class qp extends zp{constructor(t){super(Object.assign({},t)),this.name="ModulesEvaluationError"}}var Vp=l,Hp=bt,Kp=Of,Yp=cf,Jp=Ql;Zn({target:"Promise",stat:!0,forced:up},{allSettled:function(t){var e=this,r=Kp.f(e),n=r.resolve,o=r.reject,i=Yp((function(){var r=Hp(e.resolve),o=[],i=0,u=1;Jp(t,(function(t){var c=i++,a=!1;u++,Vp(r,e,t).then((function(t){a||(a=!0,o[c]={status:"fulfilled",value:t},--u||n(o))}),(function(t){a||(a=!0,o[c]={status:"rejected",reason:t},--u||n(o))}))})),--u||n(o)}));return i.error&&o(i.value),r.promise}});var Xp,Zp,Qp=u,td=o.RegExp,ed=Qp((function(){var t=td("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),rd=ed||Qp((function(){return!td("a","y").sticky})),nd={BROKEN_CARET:ed||Qp((function(){var t=td("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:rd,UNSUPPORTED_Y:ed},od=u,id=o.RegExp,ud=od((function(){var t=id(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})),cd=u,ad=o.RegExp,sd=cd((function(){var t=ad("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),fd=l,ld=x,pd=mu,dd=_u,vd=nd,hd=jo,md=Ir.get,gd=ud,yd=sd,bd=Ft("native-string-replace",String.prototype.replace),Ed=RegExp.prototype.exec,wd=Ed,Od=ld("".charAt),xd=ld("".indexOf),Sd=ld("".replace),jd=ld("".slice),Pd=(Zp=/b*/g,fd(Ed,Xp=/a/,"a"),fd(Ed,Zp,"a"),0!==Xp.lastIndex||0!==Zp.lastIndex),Td=vd.BROKEN_CARET,Ad=void 0!==/()??/.exec("")[1];(Pd||Ad||Td||gd||yd)&&(wd=function(t){var e,r,n,o,i,u,c,a=this,s=md(a),f=pd(t),l=s.raw;if(l)return l.lastIndex=a.lastIndex,e=fd(wd,l,f),a.lastIndex=l.lastIndex,e;var p=s.groups,d=Td&&a.sticky,v=fd(dd,a),h=a.source,m=0,g=f;if(d&&(v=Sd(v,"y",""),-1===xd(v,"g")&&(v+="g"),g=jd(f,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==Od(f,a.lastIndex-1))&&(h="(?: "+h+")",g=" "+g,m++),r=new RegExp("^(?:"+h+")",v)),Ad&&(r=new RegExp("^"+h+"$(?!\\s)",v)),Pd&&(n=a.lastIndex),o=fd(Ed,d?r:a,g),d?o?(o.input=jd(o.input,m),o[0]=jd(o[0],m),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:Pd&&o&&(a.lastIndex=a.global?o.index+o[0].length:n),Ad&&o&&o.length>1&&fd(bd,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=u=hd(null),i=0;i<p.length;i++)u[(c=p[i])[0]]=o[c[1]];return o});function Id(t,e){if("string"==typeof e){if(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.{0,1}\d*))(?:Z|(\+|-)([\d|:]*))?$/.exec(e))return new Date(e)}return e}Zn({target:"RegExp",proto:!0,forced:/./.exec!==wd},{exec:wd});const Rd={setItem:(t,e)=>{localStorage.setItem(t,JSON.stringify(e))},getItem:t=>{const e=localStorage.getItem(t);var r;if(e)try{return r=e,JSON.parse(r,Id)}catch(t){return e}},removeItem:t=>{localStorage.removeItem(t)}};function Md(t,e){Rd.setItem(t,e)}function Cd(t){return t instanceof Array?(t.length>0&&Md("EchoModules",t),t):(console.info("No modules awaitable."),[])}function Ld(t){return Cp(this,void 0,void 0,(function*(){if(t&&kp(t,"Could not get the Modules. Provide a valid `fetchModules` function."))try{return Cd(yield t())}catch(t){throw new Wp({message:"[loadMetaData] failed",innerError:Qc(t)})}return Promise.resolve([])}))}function Nd(t,e){return Cp(this,void 0,void 0,(function*(){const r=yield Ld(e);if(r instanceof Array){const e=yield Promise.allSettled(r.map(t));return e.forEach((t=>"rejected"===t.status&&console.error(t.reason))),function(t){return t.filter((t=>"fulfilled"===t.status)).map((t=>"fulfilled"===t.status?t.value:void 0)).filter(kd)}(e)}throw new Wp({message:"Invalid modules meta-data, argument is not an Array"})}))}function kd(t){return"number"==typeof t?!Number.isNaN(t):t instanceof Date?!isNaN(t.getTime()):!e.isEmpty(t)}const Fd={},Dd=()=>!1;function _d(t=Fd,e=Dd){return r=>e(r)||t}function Ud(t,e,r,n,o,i){return Cp(this,void 0,void 0,(function*(){return new Promise(((u,c)=>{const a=document.createElement("script");a.async=!0,a.src=e,a.id=t,i?(a.crossOrigin=o||"anonymous",a.integrity=i):o&&(a.crossOrigin=o),window[r]=Gd(n),a.onload=()=>u(Bd(t,a.module)),a.onerror=()=>c(`Could not load module ${t}`),document.head.appendChild(a)}))}))}function Bd(t,e){return Cp(this,void 0,void 0,(function*(){const r=yield Promise.resolve(e);return function(t,e){if(e){if("function"==typeof e.setup)return e;console.warn("Setup function is missing.",t)}else console.error("Invalid module found.",t);return{setup(){}}}(t,r)}))}function Gd(t={}){return e=>function(t,e){const r=e[t];if(!r){const e=new Error(`Cannot find module '${t}'`);throw e.code="MODULE_NOT_FOUND",e}return r}(e,t)}function zd(t,e,r){return Cp(this,arguments,void 0,(function*({name:t,fileUri:e,requireRef:r,integrity:n},o,i){return Ud(t,e,r,o,i,n)}))}const $d="undefined"!=typeof document;function Wd(t,e,r){return qd(_d(e,r),t)}function qd(t,e={}){return r=>$d&&"requireRef"in r&&r.requireRef?function(t,e,r){return Cp(this,void 0,void 0,(function*(){const n=Object.assign({},e(t)||{}),o=yield r(n);return Object.assign(Object.assign({},o),t)}))}(r,t,(t=>zd(r,t,e.crossOrigin))):(console.warn("Empty Module found!",r.name),Promise.resolve(Dp(r)))}function Vd(){return"production"===process.env.NODE_ENV}function Hd(t,e){return Cp(this,void 0,void 0,(function*(){const r=Wd(t.config,t.dependencies,t.getDependencies);try{const n=yield Nd(r,t.fetchModules),o=yield function(t,e){return Cp(this,arguments,void 0,(function*(t,e,r=[]){try{for(const t of r){const[r]=e.filter((e=>e.name===t.name));r&&e.splice(e.indexOf(r),1)}return Bp(t,_p([...r,...e],Vd))}catch(t){throw new qp({message:"[strategies.evaluateAllModules] failed",innerError:Qc(t)})}}))}(t.createApi,n,t.modules);return e(void 0,o)}catch(t){return e($p(Qc(t)),[])}}))}const Kd=new class{emit(t,e){const r=new CustomEvent(t,{detail:e});window.dispatchEvent(r)}subscribe(t,e){const r=t=>{const r=t.detail;e(r)};return window.addEventListener(t,r),()=>window.removeEventListener(t,r,!1)}subscribeMany(t,e){const r=t.map((t=>this.subscribe(t,e)));return()=>{r.forEach((t=>{t()}))}}};exports.ArgumentError=class extends ec{constructor({argumentName:t}){super({name:"ArgumentError",message:t})}},exports.BackendError=wc,exports.BadRequestError=Ec,exports.BaseError=ec,exports.ForbiddenError=Oc,exports.ImproperErrorObject=Zc,exports.ModuleAppError=zp,exports.ModuleLoadingError=class extends zp{constructor(t){super(Object.assign({},t)),this.name="ModuleLoadingError"}},exports.ModulesEvaluationError=qp,exports.ModulesMetaError=Wp,exports.NetworkError=bc,exports.NotFoundError=Sc,exports.UnauthorizedError=xc,exports.ValidationError=jc,exports.appendScriptTagToDom=Ud,exports.checkFunction=kp,exports.createEmptyModule=Dp,exports.createModule=Gp,exports.createModuleLoader=Wd,exports.createModules=Bp,exports.errorUtils=ea,exports.eventHub=Kd,exports.filterExcludePrivateModulesInProduction=_p,exports.findPropertyByName=nc,exports.fireAndForget=Up,exports.getAllProperties=oc,exports.getDependencyResolver=_d,exports.getLocalRequire=Gd,exports.getModuleLoader=qd,exports.includeModuleWithDependencies=zd,exports.initializeNetworkError=function(t){var e,r;switch(t.httpStatusCode){case 400:if((null===(e=t.exception)||void 0===e?void 0:e.title)&&(null===(r=t.exception)||void 0===r?void 0:r.title).toLowerCase().includes("validation"))return new jc(t);break;case 401:return new xc(t);case 403:return new Oc(t);case 404:return new Sc(t)}return t.httpStatusCode>0&&t.httpStatusCode<550&&t.exception?new wc(t):400===t.httpStatusCode?new Ec(t):new bc(t)},exports.isFunc=Fp,exports.loadLocalModuleMeta=function(t){const e=Rd.getItem(t);return e&&e instanceof Array?e:[]},exports.loadMetaData=Ld,exports.loadModules=Nd,exports.persistLocalModuleMeta=Md,exports.removeElementById=function(t){var e;null===(e=document.getElementById(t))||void 0===e||e.remove()},exports.setupModule=Np,exports.setupSingleModule=Lp,exports.standardStrategy=Hd,exports.startLoadingModules=function(t){const e={loaded:!1,modules:[],error:void 0},r=[],n=t=>t(e.error,e.modules,e.loaded),o=()=>r.forEach(n),i=(t,r)=>{e.error=t,e.modules=r,o()},u=()=>{e.loaded=!0,o()};return Up((()=>Hd(t,i).then(u,u))),{connect(t){Fp(t)&&(r.push(t),n(t))},disconnect(t){const e=r.indexOf(t);-1!==e&&r.splice(e,1)}}},exports.storage=Rd,exports.toError=Qc,exports.toModuleAppError=$p,exports.verifyAppWithModule=Bd,exports.verifyModulesMeta=Cd; | ||
"use strict";var t,e=require("lodash");exports.Api=void 0,(t=exports.Api||(exports.Api={})).ProCoSys="ProCoSys",t.Stid="Stid",t.SapOm="SapOm",t.MaintenanceData="MaintenanceData",t.CommonLib="CommonLib",t.Microsoft="Microsoft",t.EchoHub="EchoHub",t.MaintenanceAPI="MaintenanceAPI",t.External="External",t.WorkPermits="WorkPermits",t.Unknown="Unknown",t.FakeErrorForTesting="FakeErrorForTesting";var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=function(t){return t&&t.Math===Math&&t},o=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r&&r)||n("object"==typeof r&&r)||function(){return this}()||Function("return this")(),i={},u=function(t){try{return!!t()}catch(t){return!0}},c=!u((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),a=!u((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),s=a,f=Function.prototype.call,l=s?f.bind(f):function(){return f.apply(f,arguments)},p={},d={}.propertyIsEnumerable,v=Object.getOwnPropertyDescriptor,h=v&&!d.call({1:2},1);p.f=h?function(t){var e=v(this,t);return!!e&&e.enumerable}:d;var g,y,m=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},b=a,E=Function.prototype,w=E.call,O=b&&E.bind.bind(w,w),x=b?O:function(t){return function(){return w.apply(t,arguments)}},S=x,j=S({}.toString),T=S("".slice),P=function(t){return T(j(t),8,-1)},A=u,R=P,I=Object,C=x("".split),M=A((function(){return!I("z").propertyIsEnumerable(0)}))?function(t){return"String"===R(t)?C(t,""):I(t)}:I,k=function(t){return null==t},L=k,N=TypeError,F=function(t){if(L(t))throw new N("Can't call method on "+t);return t},D=M,_=F,U=function(t){return D(_(t))},B="object"==typeof document&&document.all,G=void 0===B&&void 0!==B?function(t){return"function"==typeof t||t===B}:function(t){return"function"==typeof t},z=G,$=function(t){return"object"==typeof t?null!==t:z(t)},W=o,q=G,V=function(t,e){return arguments.length<2?(r=W[t],q(r)?r:void 0):W[t]&&W[t][e];var r},H=x({}.isPrototypeOf),J=o.navigator,K=J&&J.userAgent,Y=K?String(K):"",X=o,Z=Y,Q=X.process,tt=X.Deno,et=Q&&Q.versions||tt&&tt.version,rt=et&&et.v8;rt&&(y=(g=rt.split("."))[0]>0&&g[0]<4?1:+(g[0]+g[1])),!y&&Z&&(!(g=Z.match(/Edge\/(\d+)/))||g[1]>=74)&&(g=Z.match(/Chrome\/(\d+)/))&&(y=+g[1]);var nt=y,ot=nt,it=u,ut=o.String,ct=!!Object.getOwnPropertySymbols&&!it((function(){var t=Symbol("symbol detection");return!ut(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ot&&ot<41})),at=ct&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,st=V,ft=G,lt=H,pt=Object,dt=at?function(t){return"symbol"==typeof t}:function(t){var e=st("Symbol");return ft(e)&<(e.prototype,pt(t))},vt=String,ht=function(t){try{return vt(t)}catch(t){return"Object"}},gt=G,yt=ht,mt=TypeError,bt=function(t){if(gt(t))return t;throw new mt(yt(t)+" is not a function")},Et=bt,wt=k,Ot=function(t,e){var r=t[e];return wt(r)?void 0:Et(r)},xt=l,St=G,jt=$,Tt=TypeError,Pt={exports:{}},At=o,Rt=Object.defineProperty,It=function(t,e){try{Rt(At,t,{value:e,configurable:!0,writable:!0})}catch(r){At[t]=e}return e},Ct=o,Mt=It,kt="__core-js_shared__",Lt=Pt.exports=Ct[kt]||Mt(kt,{});(Lt.versions||(Lt.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Nt=Pt.exports,Ft=Nt,Dt=function(t,e){return Ft[t]||(Ft[t]=e||{})},_t=F,Ut=Object,Bt=function(t){return Ut(_t(t))},Gt=Bt,zt=x({}.hasOwnProperty),$t=Object.hasOwn||function(t,e){return zt(Gt(t),e)},Wt=x,qt=0,Vt=Math.random(),Ht=Wt(1..toString),Jt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Ht(++qt+Vt,36)},Kt=Dt,Yt=$t,Xt=Jt,Zt=ct,Qt=at,te=o.Symbol,ee=Kt("wks"),re=Qt?te.for||te:te&&te.withoutSetter||Xt,ne=function(t){return Yt(ee,t)||(ee[t]=Zt&&Yt(te,t)?te[t]:re("Symbol."+t)),ee[t]},oe=l,ie=$,ue=dt,ce=Ot,ae=function(t,e){var r,n;if("string"===e&&St(r=t.toString)&&!jt(n=xt(r,t)))return n;if(St(r=t.valueOf)&&!jt(n=xt(r,t)))return n;if("string"!==e&&St(r=t.toString)&&!jt(n=xt(r,t)))return n;throw new Tt("Can't convert object to primitive value")},se=TypeError,fe=ne("toPrimitive"),le=function(t,e){if(!ie(t)||ue(t))return t;var r,n=ce(t,fe);if(n){if(void 0===e&&(e="default"),r=oe(n,t,e),!ie(r)||ue(r))return r;throw new se("Can't convert object to primitive value")}return void 0===e&&(e="number"),ae(t,e)},pe=dt,de=function(t){var e=le(t,"string");return pe(e)?e:e+""},ve=$,he=o.document,ge=ve(he)&&ve(he.createElement),ye=function(t){return ge?he.createElement(t):{}},me=ye,be=!c&&!u((function(){return 7!==Object.defineProperty(me("div"),"a",{get:function(){return 7}}).a})),Ee=c,we=l,Oe=p,xe=m,Se=U,je=de,Te=$t,Pe=be,Ae=Object.getOwnPropertyDescriptor;i.f=Ee?Ae:function(t,e){if(t=Se(t),e=je(e),Pe)try{return Ae(t,e)}catch(t){}if(Te(t,e))return xe(!we(Oe.f,t,e),t[e])};var Re={},Ie=c&&u((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ce=$,Me=String,ke=TypeError,Le=function(t){if(Ce(t))return t;throw new ke(Me(t)+" is not an object")},Ne=c,Fe=be,De=Ie,_e=Le,Ue=de,Be=TypeError,Ge=Object.defineProperty,ze=Object.getOwnPropertyDescriptor,$e="enumerable",We="configurable",qe="writable";Re.f=Ne?De?function(t,e,r){if(_e(t),e=Ue(e),_e(r),"function"==typeof t&&"prototype"===e&&"value"in r&&qe in r&&!r[qe]){var n=ze(t,e);n&&n[qe]&&(t[e]=r.value,r={configurable:We in r?r[We]:n[We],enumerable:$e in r?r[$e]:n[$e],writable:!1})}return Ge(t,e,r)}:Ge:function(t,e,r){if(_e(t),e=Ue(e),_e(r),Fe)try{return Ge(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new Be("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var Ve=Re,He=m,Je=c?function(t,e,r){return Ve.f(t,e,He(1,r))}:function(t,e,r){return t[e]=r,t},Ke={exports:{}},Ye=c,Xe=$t,Ze=Function.prototype,Qe=Ye&&Object.getOwnPropertyDescriptor,tr=Xe(Ze,"name"),er={EXISTS:tr,PROPER:tr&&"something"===function(){}.name,CONFIGURABLE:tr&&(!Ye||Ye&&Qe(Ze,"name").configurable)},rr=G,nr=Nt,or=x(Function.toString);rr(nr.inspectSource)||(nr.inspectSource=function(t){return or(t)});var ir,ur,cr,ar=nr.inspectSource,sr=G,fr=o.WeakMap,lr=sr(fr)&&/native code/.test(String(fr)),pr=Jt,dr=Dt("keys"),vr=function(t){return dr[t]||(dr[t]=pr(t))},hr={},gr=lr,yr=o,mr=$,br=Je,Er=$t,wr=Nt,Or=vr,xr=hr,Sr="Object already initialized",jr=yr.TypeError,Tr=yr.WeakMap;if(gr||wr.state){var Pr=wr.state||(wr.state=new Tr);Pr.get=Pr.get,Pr.has=Pr.has,Pr.set=Pr.set,ir=function(t,e){if(Pr.has(t))throw new jr(Sr);return e.facade=t,Pr.set(t,e),e},ur=function(t){return Pr.get(t)||{}},cr=function(t){return Pr.has(t)}}else{var Ar=Or("state");xr[Ar]=!0,ir=function(t,e){if(Er(t,Ar))throw new jr(Sr);return e.facade=t,br(t,Ar,e),e},ur=function(t){return Er(t,Ar)?t[Ar]:{}},cr=function(t){return Er(t,Ar)}}var Rr={set:ir,get:ur,has:cr,enforce:function(t){return cr(t)?ur(t):ir(t,{})},getterFor:function(t){return function(e){var r;if(!mr(e)||(r=ur(e)).type!==t)throw new jr("Incompatible receiver, "+t+" required");return r}}},Ir=x,Cr=u,Mr=G,kr=$t,Lr=c,Nr=er.CONFIGURABLE,Fr=ar,Dr=Rr.enforce,_r=Rr.get,Ur=String,Br=Object.defineProperty,Gr=Ir("".slice),zr=Ir("".replace),$r=Ir([].join),Wr=Lr&&!Cr((function(){return 8!==Br((function(){}),"length",{value:8}).length})),qr=String(String).split("String"),Vr=Ke.exports=function(t,e,r){"Symbol("===Gr(Ur(e),0,7)&&(e="["+zr(Ur(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!kr(t,"name")||Nr&&t.name!==e)&&(Lr?Br(t,"name",{value:e,configurable:!0}):t.name=e),Wr&&r&&kr(r,"arity")&&t.length!==r.arity&&Br(t,"length",{value:r.arity});try{r&&kr(r,"constructor")&&r.constructor?Lr&&Br(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=Dr(t);return kr(n,"source")||(n.source=$r(qr,"string"==typeof e?e:"")),t};Function.prototype.toString=Vr((function(){return Mr(this)&&_r(this).source||Fr(this)}),"toString");var Hr=Ke.exports,Jr=G,Kr=Re,Yr=Hr,Xr=It,Zr=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(Jr(r)&&Yr(r,i,n),n.global)o?t[e]=r:Xr(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:Kr.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},Qr={},tn=Math.ceil,en=Math.floor,rn=Math.trunc||function(t){var e=+t;return(e>0?en:tn)(e)},nn=function(t){var e=+t;return e!=e||0===e?0:rn(e)},on=nn,un=Math.max,cn=Math.min,an=nn,sn=Math.min,fn=function(t){var e=an(t);return e>0?sn(e,9007199254740991):0},ln=function(t){return fn(t.length)},pn=U,dn=function(t,e){var r=on(t);return r<0?un(r+e,0):cn(r,e)},vn=ln,hn=function(t){return function(e,r,n){var o=pn(e),i=vn(o);if(0===i)return!t&&-1;var u,c=dn(n,i);if(t&&r!=r){for(;i>c;)if((u=o[c++])!=u)return!0}else for(;i>c;c++)if((t||c in o)&&o[c]===r)return t||c||0;return!t&&-1}},gn={includes:hn(!0),indexOf:hn(!1)},yn=$t,mn=U,bn=gn.indexOf,En=hr,wn=x([].push),On=function(t,e){var r,n=mn(t),o=0,i=[];for(r in n)!yn(En,r)&&yn(n,r)&&wn(i,r);for(;e.length>o;)yn(n,r=e[o++])&&(~bn(i,r)||wn(i,r));return i},xn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Sn=On,jn=xn.concat("length","prototype");Qr.f=Object.getOwnPropertyNames||function(t){return Sn(t,jn)};var Tn={};Tn.f=Object.getOwnPropertySymbols;var Pn=V,An=Qr,Rn=Tn,In=Le,Cn=x([].concat),Mn=Pn("Reflect","ownKeys")||function(t){var e=An.f(In(t)),r=Rn.f;return r?Cn(e,r(t)):e},kn=$t,Ln=Mn,Nn=i,Fn=Re,Dn=function(t,e,r){for(var n=Ln(e),o=Fn.f,i=Nn.f,u=0;u<n.length;u++){var c=n[u];kn(t,c)||r&&kn(r,c)||o(t,c,i(e,c))}},_n=u,Un=G,Bn=/#|\.prototype\./,Gn=function(t,e){var r=$n[zn(t)];return r===qn||r!==Wn&&(Un(e)?_n(e):!!e)},zn=Gn.normalize=function(t){return String(t).replace(Bn,".").toLowerCase()},$n=Gn.data={},Wn=Gn.NATIVE="N",qn=Gn.POLYFILL="P",Vn=Gn,Hn=o,Jn=i.f,Kn=Je,Yn=Zr,Xn=It,Zn=Dn,Qn=Vn,to=function(t,e){var r,n,o,i,u,c=t.target,a=t.global,s=t.stat;if(r=a?Hn:s?Hn[c]||Xn(c,{}):Hn[c]&&Hn[c].prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(u=Jn(r,n))&&u.value:r[n],!Qn(a?n:c+(s?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Zn(i,o)}(t.sham||o&&o.sham)&&Kn(i,"sham",!0),Yn(r,n,i,t)}},eo=a,ro=Function.prototype,no=ro.apply,oo=ro.call,io="object"==typeof Reflect&&Reflect.apply||(eo?oo.bind(no):function(){return oo.apply(no,arguments)}),uo=x,co=bt,ao=$,so=function(t){return ao(t)||null===t},fo=String,lo=TypeError,po=function(t,e,r){try{return uo(co(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},vo=$,ho=F,go=function(t){if(so(t))return t;throw new lo("Can't set "+fo(t)+" as a prototype")},yo=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=po(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return ho(r),go(n),vo(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0),mo=Re.f,bo=G,Eo=$,wo=yo,Oo={};Oo[ne("toStringTag")]="z";var xo="[object z]"===String(Oo),So=G,jo=P,To=ne("toStringTag"),Po=Object,Ao="Arguments"===jo(function(){return arguments}()),Ro=xo?jo:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Po(t),To))?r:Ao?jo(e):"Object"===(n=jo(e))&&So(e.callee)?"Arguments":n},Io=Ro,Co=String,Mo=function(t){if("Symbol"===Io(t))throw new TypeError("Cannot convert a Symbol value to a string");return Co(t)},ko=Mo,Lo=$,No=Je,Fo=Error,Do=x("".replace),_o=String(new Fo("zxcasd").stack),Uo=/\n\s*at [^:]*:[^\n]*/,Bo=Uo.test(_o),Go=m,zo=!u((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Go(1,7)),7!==t.stack)})),$o=Je,Wo=function(t,e){if(Bo&&"string"==typeof t&&!Fo.prepareStackTrace)for(;e--;)t=Do(t,Uo,"");return t},qo=zo,Vo=Error.captureStackTrace,Ho=V,Jo=$t,Ko=Je,Yo=H,Xo=yo,Zo=Dn,Qo=function(t,e,r){r in t||mo(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})},ti=function(t,e,r){var n,o;return wo&&bo(n=e.constructor)&&n!==r&&Eo(o=n.prototype)&&o!==r.prototype&&wo(t,o),t},ei=function(t,e){return void 0===t?arguments.length<2?"":e:ko(t)},ri=function(t,e){Lo(e)&&"cause"in e&&No(t,"cause",e.cause)},ni=function(t,e,r,n){qo&&(Vo?Vo(t,e):$o(t,"stack",Wo(r,n)))},oi=c,ii=to,ui=io,ci=function(t,e,r,n){var o="stackTraceLimit",i=n?2:1,u=t.split("."),c=u[u.length-1],a=Ho.apply(null,u);if(a){var s=a.prototype;if(Jo(s,"cause")&&delete s.cause,!r)return a;var f=Ho("Error"),l=e((function(t,e){var r=ei(n?e:t,void 0),o=n?new a(t):new a;return void 0!==r&&Ko(o,"message",r),ni(o,l,o.stack,2),this&&Yo(s,this)&&ti(o,this,l),arguments.length>i&&ri(o,arguments[i]),o}));l.prototype=s,"Error"!==c?Xo?Xo(l,f):Zo(l,f,{name:!0}):oi&&o in a&&(Qo(l,a,o),Qo(l,a,"prepareStackTrace")),Zo(l,a);try{s.name!==c&&Ko(s,"name",c),s.constructor=l}catch(t){}return l}},ai="WebAssembly",si=o[ai],fi=7!==new Error("e",{cause:7}).cause,li=function(t,e){var r={};r[t]=ci(t,e,fi),ii({global:!0,constructor:!0,arity:1,forced:fi},r)},pi=function(t,e){if(si&&si[t]){var r={};r[t]=ci(ai+"."+t,e,fi),ii({target:ai,stat:!0,constructor:!0,arity:1,forced:fi},r)}};li("Error",(function(t){return function(e){return ui(t,this,arguments)}})),li("EvalError",(function(t){return function(e){return ui(t,this,arguments)}})),li("RangeError",(function(t){return function(e){return ui(t,this,arguments)}})),li("ReferenceError",(function(t){return function(e){return ui(t,this,arguments)}})),li("SyntaxError",(function(t){return function(e){return ui(t,this,arguments)}})),li("TypeError",(function(t){return function(e){return ui(t,this,arguments)}})),li("URIError",(function(t){return function(e){return ui(t,this,arguments)}})),pi("CompileError",(function(t){return function(e){return ui(t,this,arguments)}})),pi("LinkError",(function(t){return function(e){return ui(t,this,arguments)}})),pi("RuntimeError",(function(t){return function(e){return ui(t,this,arguments)}}));var di={},vi=On,hi=xn,gi=Object.keys||function(t){return vi(t,hi)},yi=c,mi=Ie,bi=Re,Ei=Le,wi=U,Oi=gi;di.f=yi&&!mi?Object.defineProperties:function(t,e){Ei(t);for(var r,n=wi(e),o=Oi(e),i=o.length,u=0;i>u;)bi.f(t,r=o[u++],n[r]);return t};var xi,Si=V("document","documentElement"),ji=Le,Ti=di,Pi=xn,Ai=hr,Ri=Si,Ii=ye,Ci="prototype",Mi="script",ki=vr("IE_PROTO"),Li=function(){},Ni=function(t){return"<"+Mi+">"+t+"</"+Mi+">"},Fi=function(t){t.write(Ni("")),t.close();var e=t.parentWindow.Object;return t=null,e},Di=function(){try{xi=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;Di="undefined"!=typeof document?document.domain&&xi?Fi(xi):(e=Ii("iframe"),r="java"+Mi+":",e.style.display="none",Ri.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Ni("document.F=Object")),t.close(),t.F):Fi(xi);for(var n=Pi.length;n--;)delete Di[Ci][Pi[n]];return Di()};Ai[ki]=!0;var _i=Object.create||function(t,e){var r;return null!==t?(Li[Ci]=ji(t),r=new Li,Li[Ci]=null,r[ki]=t):r=Di(),void 0===e?r:Ti.f(r,e)},Ui=ne,Bi=_i,Gi=Re.f,zi=Ui("unscopables"),$i=Array.prototype;void 0===$i[zi]&&Gi($i,zi,{configurable:!0,value:Bi(null)});var Wi=function(t){$i[zi][t]=!0},qi=gn.includes,Vi=Wi;to({target:"Array",proto:!0,forced:u((function(){return!Array(1).includes()}))},{includes:function(t){return qi(this,t,arguments.length>1?arguments[1]:void 0)}}),Vi("includes");var Hi,Ji,Ki,Yi={},Xi=!u((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Zi=$t,Qi=G,tu=Bt,eu=Xi,ru=vr("IE_PROTO"),nu=Object,ou=nu.prototype,iu=eu?nu.getPrototypeOf:function(t){var e=tu(t);if(Zi(e,ru))return e[ru];var r=e.constructor;return Qi(r)&&e instanceof r?r.prototype:e instanceof nu?ou:null},uu=u,cu=G,au=$,su=iu,fu=Zr,lu=ne("iterator"),pu=!1;[].keys&&("next"in(Ki=[].keys())?(Ji=su(su(Ki)))!==Object.prototype&&(Hi=Ji):pu=!0);var du=!au(Hi)||uu((function(){var t={};return Hi[lu].call(t)!==t}));du&&(Hi={}),cu(Hi[lu])||fu(Hi,lu,(function(){return this}));var vu={IteratorPrototype:Hi,BUGGY_SAFARI_ITERATORS:pu},hu=Re.f,gu=$t,yu=ne("toStringTag"),mu=function(t,e,r){t&&!r&&(t=t.prototype),t&&!gu(t,yu)&&hu(t,yu,{configurable:!0,value:e})},bu=vu.IteratorPrototype,Eu=_i,wu=m,Ou=mu,xu=Yi,Su=function(){return this},ju=to,Tu=l,Pu=G,Au=function(t,e,r,n){var o=e+" Iterator";return t.prototype=Eu(bu,{next:wu(+!n,r)}),Ou(t,o,!1),xu[o]=Su,t},Ru=iu,Iu=yo,Cu=mu,Mu=Je,ku=Zr,Lu=Yi,Nu=er.PROPER,Fu=er.CONFIGURABLE,Du=vu.IteratorPrototype,_u=vu.BUGGY_SAFARI_ITERATORS,Uu=ne("iterator"),Bu="keys",Gu="values",zu="entries",$u=function(){return this},Wu=U,qu=Wi,Vu=Yi,Hu=Rr,Ju=Re.f,Ku=function(t,e,r,n,o,i,u){Au(r,e,n);var c,a,s,f=function(t){if(t===o&&h)return h;if(!_u&&t&&t in d)return d[t];switch(t){case Bu:case Gu:case zu:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",p=!1,d=t.prototype,v=d[Uu]||d["@@iterator"]||o&&d[o],h=!_u&&v||f(o),g="Array"===e&&d.entries||v;if(g&&(c=Ru(g.call(new t)))!==Object.prototype&&c.next&&(Ru(c)!==Du&&(Iu?Iu(c,Du):Pu(c[Uu])||ku(c,Uu,$u)),Cu(c,l,!0)),Nu&&o===Gu&&v&&v.name!==Gu&&(Fu?Mu(d,"name",Gu):(p=!0,h=function(){return Tu(v,this)})),o)if(a={values:f(Gu),keys:i?h:f(Bu),entries:f(zu)},u)for(s in a)(_u||p||!(s in d))&&ku(d,s,a[s]);else ju({target:e,proto:!0,forced:_u||p},a);return d[Uu]!==h&&ku(d,Uu,h,{name:o}),Lu[e]=h,a},Yu=function(t,e){return{value:t,done:e}},Xu=c,Zu="Array Iterator",Qu=Hu.set,tc=Hu.getterFor(Zu),ec=Ku(Array,"Array",(function(t,e){Qu(this,{type:Zu,target:Wu(t),index:0,kind:e})}),(function(){var t=tc(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,Yu(void 0,!0);switch(t.kind){case"keys":return Yu(r,!1);case"values":return Yu(e[r],!1)}return Yu([r,e[r]],!1)}),"values"),rc=Vu.Arguments=Vu.Array;if(qu("keys"),qu("values"),qu("entries"),Xu&&"values"!==rc.name)try{Ju(rc,"name",{value:"values"})}catch(t){}var nc=P,oc=Array.isArray||function(t){return"Array"===nc(t)},ic=c,uc=oc,cc=TypeError,ac=Object.getOwnPropertyDescriptor,sc=ic&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),fc=TypeError,lc=Bt,pc=ln,dc=sc?function(t,e){if(uc(t)&&!ac(t,"length").writable)throw new cc("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},vc=function(t){if(t>9007199254740991)throw fc("Maximum allowed index exceeded");return t};to({target:"Array",proto:!0,arity:1,forced:u((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=lc(this),r=pc(e),n=arguments.length;vc(r+n);for(var o=0;o<n;o++)e[r]=arguments[o],r++;return dc(e,r),r}});var hc=$,gc=P,yc=ne("match"),mc=function(t){var e;return hc(t)&&(void 0!==(e=t[yc])?!!e:"RegExp"===gc(t))},bc=TypeError,Ec=ne("match"),wc=to,Oc=function(t){if(mc(t))throw new bc("The method doesn't accept regular expressions");return t},xc=F,Sc=Mo,jc=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[Ec]=!1,"/./"[t](e)}catch(t){}}return!1},Tc=x("".indexOf);wc({target:"String",proto:!0,forced:!jc("includes")},{includes:function(t){return!!~Tc(Sc(xc(this)),Sc(Oc(t)),arguments.length>1?arguments[1]:void 0)}});var Pc=ye("span").classList,Ac=Pc&&Pc.constructor&&Pc.constructor.prototype,Rc=Ac===Object.prototype?void 0:Ac,Ic=o,Cc={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Mc=Rc,kc=ec,Lc=Je,Nc=mu,Fc=ne("iterator"),Dc=kc.values,_c=function(t,e){if(t){if(t[Fc]!==Dc)try{Lc(t,Fc,Dc)}catch(e){t[Fc]=Dc}if(Nc(t,e,!0),Cc[e])for(var r in kc)if(t[r]!==kc[r])try{Lc(t,r,kc[r])}catch(e){t[r]=kc[r]}}};for(var Uc in Cc)_c(Ic[Uc]&&Ic[Uc].prototype,Uc);_c(Mc,"DOMTokenList");var Bc=Le,Gc=function(){var t=Bc(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},zc=l,$c=$t,Wc=H,qc=Gc,Vc=RegExp.prototype,Hc=er.PROPER,Jc=Zr,Kc=Le,Yc=Mo,Xc=u,Zc=function(t){var e=t.flags;return void 0!==e||"flags"in Vc||$c(t,"flags")||!Wc(Vc,t)?e:zc(qc,t)},Qc="toString",ta=RegExp.prototype,ea=ta[Qc],ra=Xc((function(){return"/a/b"!==ea.call({source:"a",flags:"b"})})),na=Hc&&ea.name!==Qc;(ra||na)&&Jc(ta,Qc,(function(){var t=Kc(this);return"/"+Yc(t.source)+"/"+Yc(Zc(t))}),{unsafe:!0});class oa extends Error{constructor({name:t,message:e,innerError:r}){super(e),this.hasBeenLogged=!1,Error.captureStackTrace&&Error.captureStackTrace(this,oa),Object.setPrototypeOf(this,new.target.prototype),this.innerError=r,this.errorTraceId=this.fixMissingErrorTraceId(r);const n=this.constructor.name;this.name=null!=t?t:n,e||(this.message=this.name)}fixMissingErrorTraceId(t){if(this.errorTraceId)return this.errorTraceId;const e=t?ua(t,"errorTraceId"):void 0;return null!=e?e:`frontEnd_${Math.random().toString(36).substring(2,11)}`}getProperties(){return ca(this)}getInnerError(){return this.innerError}getInnerErrorProperties(){return ca(this.innerError)}findPropertyByName(t,e=!0){return ua(this,t,e)}}const ia=["_value","constructor","prototype","__proto__"];function ua(t,e,r=!0){const n=ca(t);if(Object.prototype.hasOwnProperty.call(n,e)){const t=n[e];if(void 0!==t)return t}let o;if(r){(n?Object.getOwnPropertyNames(n):[]).forEach((r=>{var n;const i=null===(n=Object.entries(t).find((t=>t[0]===r)))||void 0===n?void 0:n[1];o||"object"!==typeof i||ia.includes(r)||(o=ua(i,e))}))}return o}function ca(t,e){if(!t)return{};const r=t?Object.getOwnPropertyNames(t):[];t instanceof Error&&!r.includes("name")&&r.push("name"),t instanceof Error&&!r.includes("message")&&r.push("message");const n=t,o={};return r.forEach((t=>{const r=n[t];ia.includes(t)||"function"==typeof r||function(t,e){if(!e)return!1;if(t=t.toLocaleLowerCase(),e.ignoreIncludes&&e.ignoreIncludes.some((e=>t.includes(e.toLocaleLowerCase()))))return!0;if(e.ignoreEquals&&e.ignoreEquals.some((e=>t===e.toLocaleLowerCase())))return!0}(t,e)||(Array.isArray(r)?o[t]=r:o[t]=r&&"object"==typeof r?ca(r,e):r)})),o}var aa=c,sa=x,fa=l,la=u,pa=gi,da=Tn,va=p,ha=Bt,ga=M,ya=Object.assign,ma=Object.defineProperty,ba=sa([].concat),Ea=!ya||la((function(){if(aa&&1!==ya({b:1},ya(ma({},"a",{enumerable:!0,get:function(){ma(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!==ya({},t)[r]||pa(ya({},e)).join("")!==n}))?function(t,e){for(var r=ha(t),n=arguments.length,o=1,i=da.f,u=va.f;n>o;)for(var c,a=ga(arguments[o++]),s=i?ba(pa(a),i(a)):pa(a),f=s.length,l=0;f>l;)c=s[l++],aa&&!fa(u,a,c)||(r[c]=a[c]);return r}:ya,wa=Ea;to({target:"Object",stat:!0,arity:2,forced:Object.assign!==wa},{assign:wa});class Oa extends oa{constructor({name:t,message:e,httpStatusCode:r,url:n,exception:o}){super({name:null!=t?t:"NetworkError",message:e||"",innerError:o}),this.getUrl=()=>this.url,this.url=n,this.httpStatusCode=r,!e&&(this.message=`${this.name} ${r} ${n}`)}}class xa extends Oa{constructor(t){var e;super(Object.assign(Object.assign({},t),{name:null!==(e=t.name)&&void 0!==e?e:"BadRequestError"}))}}class Sa extends Oa{constructor(t){var e;super(Object.assign(Object.assign({},t),{name:null!==(e=t.name)&&void 0!==e?e:"BackendError"}))}}class ja extends Oa{constructor(t){var e;super(Object.assign(Object.assign({},t),{name:null!==(e=t.name)&&void 0!==e?e:"ForbiddenError"}))}}class Ta extends ja{constructor(t){var e;super(Object.assign(Object.assign({},t),{name:null!==(e=t.name)&&void 0!==e?e:"UnauthorizedError"}))}}class Pa extends Oa{constructor(t){var e;super(Object.assign(Object.assign({},t),{name:null!==(e=t.name)&&void 0!==e?e:"NotFoundError"}))}}class Aa extends Oa{constructor(t){var e;super(Object.assign(Object.assign({},t),{name:null!==(e=t.name)&&void 0!==e?e:"ValidationError"}))}}var Ra="\t\n\v\f\r \u2028\u2029\ufeff",Ia=F,Ca=Mo,Ma=Ra,ka=x("".replace),La=RegExp("^["+Ma+"]+"),Na=RegExp("(^|[^"+Ma+"])["+Ma+"]+$"),Fa=function(t){return function(e){var r=Ca(Ia(e));return 1&t&&(r=ka(r,La,"")),2&t&&(r=ka(r,Na,"$1")),r}},Da={start:Fa(1),end:Fa(2),trim:Fa(3)},_a=o,Ua=u,Ba=Mo,Ga=Da.trim,za=Ra,$a=x("".charAt),Wa=_a.parseFloat,qa=_a.Symbol,Va=qa&&qa.iterator,Ha=1/Wa(za+"-0")!=-1/0||Va&&!Ua((function(){Wa(Object(Va))}))?function(t){var e=Ga(Ba(t)),r=Wa(e);return 0===r&&"-"===$a(e,0)?-0:r}:Wa;function Ja(t){const e=ua(t,"urlToRole");return Array.isArray(e)?e[0]:e}function Ka(t){const e=ua(t,"errors")||{},r=e.apiError||e.internalError;return Array.isArray(r)&&r.length>0?r:[]}function Ya(t){var e;if(Ja(t))return exports.Api.Stid;const r=(null!==(e=ua(t,"url"))&&void 0!==e?e:"").toLowerCase();if(r.includes("workorder")||r.includes("notification"))return exports.Api.SapOm;if(r.includes("work-orders")||r.includes("record"))return exports.Api.MaintenanceData;if(["procosys","punch","checklist","mcpks","commpks"].some((t=>r.includes(t))))return exports.Api.ProCoSys;if(r.includes("work-permit"))return exports.Api.WorkPermits;if(r.includes("fakeerror"))return exports.Api.FakeErrorForTesting;if(r.includes("/maintenance/"))return exports.Api.MaintenanceAPI;const n=Ka(t);if(Array.isArray(n)&&n.length>0){const t=n[0].toLocaleLowerCase();for(const e of Object.keys(exports.Api))if(t.includes(e.toLocaleLowerCase()))return exports.Api[e]}}to({global:!0,forced:parseFloat!==Ha},{parseFloat:Ha});var Xa=er.PROPER,Za=u,Qa=Ra,ts=Da.trim;to({target:"String",proto:!0,forced:function(t){return Za((function(){return!!Qa[t]()||" "!==" "[t]()||Xa&&Qa[t].name!==t}))}("trim")},{trim:function(){return ts(this)}});class es extends oa{constructor(t){super(Object.assign(Object.assign({},t),{name:"ImproperErrorObject"}))}}function rs(t){var e,r;if(t instanceof oa||t instanceof Error)return t;const n=typeof t;if("string"===n||"number"===n||"boolean"===n||"bigint"===n||"symbol"===n){let e="unknown";switch(n){case"string":e=t;break;case"number":case"boolean":case"bigint":case"symbol":e=t.toString()}return new es({message:e,innerError:{argumentType:n}})}if("object"===n){const o=t,i=Object.assign({},o),u=`${null!==(e=i.name)&&void 0!==e?e:""} ${null!==(r=i.message)&&void 0!==r?r:""}`.trim();return new es({message:u.length>0?u:"unknown",innerError:Object.assign(Object.assign({},i),{argumentType:n})})}return new es({message:"unknown",innerError:{argumentType:n}})}const ns=Object.freeze({error:is,baseError:function(t){const e=ua(t,"hasBeenLogged");return is(t)&&void 0!==e},networkError:function(t){return function(t){var e;return(null!==(e=cs(t))&&void 0!==e?e:-1)>=0}(ua(t,"httpStatusCode"))||t.name===Oa.name},backendError:function(t){return function(t){var e;return(null!==(e=cs(t))&&void 0!==e?e:-1)>0}(ua(t,"httpStatusCode"))||t.name===Sa.name},notFoundError:function(t){return 404===ua(t,"httpStatusCode")||t.name===Pa.name},forbiddenError:us,unauthorizedError:function(t){return 401===ua(t,"httpStatusCode")||t.name===Ta.name},forbiddenProCoSys:function(t){if(!t)return!1;const e=rs(t);return Ya(e)===exports.Api.ProCoSys&&us(e)},forbiddenOrUnauthorized:function(t){return os.is.forbiddenError(t)||os.is.unauthorizedError(t)},mediaError:function(t){return t.name.toLowerCase().includes("mediaerror")}}),os=Object.freeze({toError:rs,is:ns,findPropertyByName:ua,getAllProperties:ca,extractErrorTexts:Ka,detectApi:Ya,tryToGetStidUrlToRole:Ja});function is(t){return"object"==typeof t&&!!t&&"message"in t&&"name"in t}function us(t){return 403===ua(t,"httpStatusCode")||t.name.toLowerCase().includes("forbidden")}function cs(t){if("number"==typeof t)return t;if("string"==typeof t){const e=parseFloat(t);if(!isNaN(e))return e}}var as=o,ss=Y,fs=P,ls=function(t){return ss.slice(0,t.length)===t},ps=ls("Bun/")?"BUN":ls("Cloudflare-Workers")?"CLOUDFLARE":ls("Deno/")?"DENO":ls("Node.js/")?"NODE":as.Bun&&"string"==typeof Bun.version?"BUN":as.Deno&&"object"==typeof Deno.version?"DENO":"process"===fs(as.process)?"NODE":as.window&&as.document?"BROWSER":"REST",ds="NODE"===ps,vs=Hr,hs=Re,gs=V,ys=function(t,e,r){return r.get&&vs(r.get,e,{getter:!0}),r.set&&vs(r.set,e,{setter:!0}),hs.f(t,e,r)},ms=c,bs=ne("species"),Es=H,ws=TypeError,Os=x,xs=u,Ss=G,js=Ro,Ts=ar,Ps=function(){},As=V("Reflect","construct"),Rs=/^\s*(?:class|function)\b/,Is=Os(Rs.exec),Cs=!Rs.test(Ps),Ms=function(t){if(!Ss(t))return!1;try{return As(Ps,[],t),!0}catch(t){return!1}},ks=function(t){if(!Ss(t))return!1;switch(js(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Cs||!!Is(Rs,Ts(t))}catch(t){return!0}};ks.sham=!0;var Ls,Ns,Fs,Ds,_s=!As||xs((function(){var t;return Ms(Ms.call)||!Ms(Object)||!Ms((function(){t=!0}))||t}))?ks:Ms,Us=_s,Bs=ht,Gs=TypeError,zs=Le,$s=function(t){if(Us(t))return t;throw new Gs(Bs(t)+" is not a constructor")},Ws=k,qs=ne("species"),Vs=P,Hs=x,Js=function(t){if("Function"===Vs(t))return Hs(t)},Ks=bt,Ys=a,Xs=Js(Js.bind),Zs=function(t,e){return Ks(t),void 0===e?t:Ys?Xs(t,e):function(){return t.apply(e,arguments)}},Qs=x([].slice),tf=TypeError,ef=/(?:ipad|iphone|ipod).*applewebkit/i.test(Y),rf=o,nf=io,of=Zs,uf=G,cf=$t,af=u,sf=Si,ff=Qs,lf=ye,pf=function(t,e){if(t<e)throw new tf("Not enough arguments");return t},df=ef,vf=ds,hf=rf.setImmediate,gf=rf.clearImmediate,yf=rf.process,mf=rf.Dispatch,bf=rf.Function,Ef=rf.MessageChannel,wf=rf.String,Of=0,xf={},Sf="onreadystatechange";af((function(){Ls=rf.location}));var jf=function(t){if(cf(xf,t)){var e=xf[t];delete xf[t],e()}},Tf=function(t){return function(){jf(t)}},Pf=function(t){jf(t.data)},Af=function(t){rf.postMessage(wf(t),Ls.protocol+"//"+Ls.host)};hf&&gf||(hf=function(t){pf(arguments.length,1);var e=uf(t)?t:bf(t),r=ff(arguments,1);return xf[++Of]=function(){nf(e,void 0,r)},Ns(Of),Of},gf=function(t){delete xf[t]},vf?Ns=function(t){yf.nextTick(Tf(t))}:mf&&mf.now?Ns=function(t){mf.now(Tf(t))}:Ef&&!df?(Ds=(Fs=new Ef).port2,Fs.port1.onmessage=Pf,Ns=of(Ds.postMessage,Ds)):rf.addEventListener&&uf(rf.postMessage)&&!rf.importScripts&&Ls&&"file:"!==Ls.protocol&&!af(Af)?(Ns=Af,rf.addEventListener("message",Pf,!1)):Ns=Sf in lf("script")?function(t){sf.appendChild(lf("script"))[Sf]=function(){sf.removeChild(this),jf(t)}}:function(t){setTimeout(Tf(t),0)});var Rf={set:hf,clear:gf},If=o,Cf=c,Mf=Object.getOwnPropertyDescriptor,kf=function(){this.head=null,this.tail=null};kf.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Lf,Nf,Ff,Df,_f,Uf=kf,Bf=/ipad|iphone|ipod/i.test(Y)&&"undefined"!=typeof Pebble,Gf=/web0s(?!.*chrome)/i.test(Y),zf=o,$f=function(t){if(!Cf)return If[t];var e=Mf(If,t);return e&&e.value},Wf=Zs,qf=Rf.set,Vf=Uf,Hf=ef,Jf=Bf,Kf=Gf,Yf=ds,Xf=zf.MutationObserver||zf.WebKitMutationObserver,Zf=zf.document,Qf=zf.process,tl=zf.Promise,el=$f("queueMicrotask");if(!el){var rl=new Vf,nl=function(){var t,e;for(Yf&&(t=Qf.domain)&&t.exit();e=rl.get();)try{e()}catch(t){throw rl.head&&Lf(),t}t&&t.enter()};Hf||Yf||Kf||!Xf||!Zf?!Jf&&tl&&tl.resolve?((Df=tl.resolve(void 0)).constructor=tl,_f=Wf(Df.then,Df),Lf=function(){_f(nl)}):Yf?Lf=function(){Qf.nextTick(nl)}:(qf=Wf(qf,zf),Lf=function(){qf(nl)}):(Nf=!0,Ff=Zf.createTextNode(""),new Xf(nl).observe(Ff,{characterData:!0}),Lf=function(){Ff.data=Nf=!Nf}),el=function(t){rl.head||Lf(),rl.add(t)}}var ol=el,il=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},ul=o.Promise,cl=o,al=ul,sl=G,fl=Vn,ll=ar,pl=ne,dl=ps,vl=nt;al&&al.prototype;var hl=pl("species"),gl=!1,yl=sl(cl.PromiseRejectionEvent),ml=fl("Promise",(function(){var t=ll(al),e=t!==String(al);if(!e&&66===vl)return!0;if(!vl||vl<51||!/native code/.test(t)){var r=new al((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((r.constructor={})[hl]=n,!(gl=r.then((function(){}))instanceof n))return!0}return!(e||"BROWSER"!==dl&&"DENO"!==dl||yl)})),bl={CONSTRUCTOR:ml,REJECTION_EVENT:yl,SUBCLASSING:gl},El={},wl=bt,Ol=TypeError,xl=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw new Ol("Bad Promise constructor");e=t,r=n})),this.resolve=wl(e),this.reject=wl(r)};El.f=function(t){return new xl(t)};var Sl,jl,Tl,Pl=to,Al=ds,Rl=o,Il=l,Cl=Zr,Ml=yo,kl=mu,Ll=function(t){var e=gs(t);ms&&e&&!e[bs]&&ys(e,bs,{configurable:!0,get:function(){return this}})},Nl=bt,Fl=G,Dl=$,_l=function(t,e){if(Es(e,t))return t;throw new ws("Incorrect invocation")},Ul=function(t,e){var r,n=zs(t).constructor;return void 0===n||Ws(r=zs(n)[qs])?e:$s(r)},Bl=Rf.set,Gl=ol,zl=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}},$l=il,Wl=Uf,ql=Rr,Vl=ul,Hl=El,Jl="Promise",Kl=bl.CONSTRUCTOR,Yl=bl.REJECTION_EVENT,Xl=bl.SUBCLASSING,Zl=ql.getterFor(Jl),Ql=ql.set,tp=Vl&&Vl.prototype,ep=Vl,rp=tp,np=Rl.TypeError,op=Rl.document,ip=Rl.process,up=Hl.f,cp=up,ap=!!(op&&op.createEvent&&Rl.dispatchEvent),sp="unhandledrejection",fp=function(t){var e;return!(!Dl(t)||!Fl(e=t.then))&&e},lp=function(t,e){var r,n,o,i=e.value,u=1===e.state,c=u?t.ok:t.fail,a=t.resolve,s=t.reject,f=t.domain;try{c?(u||(2===e.rejection&&gp(e),e.rejection=1),!0===c?r=i:(f&&f.enter(),r=c(i),f&&(f.exit(),o=!0)),r===t.promise?s(new np("Promise-chain cycle")):(n=fp(r))?Il(n,r,a,s):a(r)):s(i)}catch(t){f&&!o&&f.exit(),s(t)}},pp=function(t,e){t.notified||(t.notified=!0,Gl((function(){for(var r,n=t.reactions;r=n.get();)lp(r,t);t.notified=!1,e&&!t.rejection&&vp(t)})))},dp=function(t,e,r){var n,o;ap?((n=op.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),Rl.dispatchEvent(n)):n={promise:e,reason:r},!Yl&&(o=Rl["on"+t])?o(n):t===sp&&zl("Unhandled promise rejection",r)},vp=function(t){Il(Bl,Rl,(function(){var e,r=t.facade,n=t.value;if(hp(t)&&(e=$l((function(){Al?ip.emit("unhandledRejection",n,r):dp(sp,r,n)})),t.rejection=Al||hp(t)?2:1,e.error))throw e.value}))},hp=function(t){return 1!==t.rejection&&!t.parent},gp=function(t){Il(Bl,Rl,(function(){var e=t.facade;Al?ip.emit("rejectionHandled",e):dp("rejectionhandled",e,t.value)}))},yp=function(t,e,r){return function(n){t(e,n,r)}},mp=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,pp(t,!0))},bp=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new np("Promise can't be resolved itself");var n=fp(e);n?Gl((function(){var r={done:!1};try{Il(n,e,yp(bp,r,t),yp(mp,r,t))}catch(e){mp(r,e,t)}})):(t.value=e,t.state=1,pp(t,!1))}catch(e){mp({done:!1},e,t)}}};if(Kl&&(rp=(ep=function(t){_l(this,rp),Nl(t),Il(Sl,this);var e=Zl(this);try{t(yp(bp,e),yp(mp,e))}catch(t){mp(e,t)}}).prototype,(Sl=function(t){Ql(this,{type:Jl,done:!1,notified:!1,parent:!1,reactions:new Wl,rejection:!1,state:0,value:null})}).prototype=Cl(rp,"then",(function(t,e){var r=Zl(this),n=up(Ul(this,ep));return r.parent=!0,n.ok=!Fl(t)||t,n.fail=Fl(e)&&e,n.domain=Al?ip.domain:void 0,0===r.state?r.reactions.add(n):Gl((function(){lp(n,r)})),n.promise})),jl=function(){var t=new Sl,e=Zl(t);this.promise=t,this.resolve=yp(bp,e),this.reject=yp(mp,e)},Hl.f=up=function(t){return t===ep||undefined===t?new jl(t):cp(t)},Fl(Vl)&&tp!==Object.prototype)){Tl=tp.then,Xl||Cl(tp,"then",(function(t,e){var r=this;return new ep((function(t,e){Il(Tl,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete tp.constructor}catch(t){}Ml&&Ml(tp,rp)}Pl({global:!0,constructor:!0,wrap:!0,forced:Kl},{Promise:ep}),kl(ep,Jl,!1),Ll(Jl);var Ep=Yi,wp=ne("iterator"),Op=Array.prototype,xp=Ro,Sp=Ot,jp=k,Tp=Yi,Pp=ne("iterator"),Ap=function(t){if(!jp(t))return Sp(t,Pp)||Sp(t,"@@iterator")||Tp[xp(t)]},Rp=l,Ip=bt,Cp=Le,Mp=ht,kp=Ap,Lp=TypeError,Np=l,Fp=Le,Dp=Ot,_p=Zs,Up=l,Bp=Le,Gp=ht,zp=function(t){return void 0!==t&&(Ep.Array===t||Op[wp]===t)},$p=ln,Wp=H,qp=function(t,e){var r=arguments.length<2?kp(t):e;if(Ip(r))return Cp(Rp(r,t));throw new Lp(Mp(t)+" is not iterable")},Vp=Ap,Hp=function(t,e,r){var n,o;Fp(t);try{if(!(n=Dp(t,"return"))){if("throw"===e)throw r;return r}n=Np(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return Fp(n),r},Jp=TypeError,Kp=function(t,e){this.stopped=t,this.result=e},Yp=Kp.prototype,Xp=function(t,e,r){var n,o,i,u,c,a,s,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),d=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),h=_p(e,f),g=function(t){return n&&Hp(n,"normal",t),new Kp(!0,t)},y=function(t){return l?(Bp(t),v?h(t[0],t[1],g):h(t[0],t[1])):v?h(t,g):h(t)};if(p)n=t.iterator;else if(d)n=t;else{if(!(o=Vp(t)))throw new Jp(Gp(t)+" is not iterable");if(zp(o)){for(i=0,u=$p(t);u>i;i++)if((c=y(t[i]))&&Wp(Yp,c))return c;return new Kp(!1)}n=qp(t,o)}for(a=p?t.next:n.next;!(s=Up(a,n)).done;){try{c=y(s.value)}catch(t){Hp(n,"throw",t)}if("object"==typeof c&&c&&Wp(Yp,c))return c}return new Kp(!1)},Zp=ne("iterator"),Qp=!1;try{var td=0,ed={next:function(){return{done:!!td++}},return:function(){Qp=!0}};ed[Zp]=function(){return this},Array.from(ed,(function(){throw 2}))}catch(t){}var rd=ul,nd=function(t,e){try{if(!e&&!Qp)return!1}catch(t){return!1}var r=!1;try{var n={};n[Zp]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},od=bl.CONSTRUCTOR||!nd((function(t){rd.all(t).then(void 0,(function(){}))})),id=l,ud=bt,cd=El,ad=il,sd=Xp;to({target:"Promise",stat:!0,forced:od},{all:function(t){var e=this,r=cd.f(e),n=r.resolve,o=r.reject,i=ad((function(){var r=ud(e.resolve),i=[],u=0,c=1;sd(t,(function(t){var a=u++,s=!1;c++,id(r,e,t).then((function(t){s||(s=!0,i[a]=t,--c||n(i))}),o)})),--c||n(i)}));return i.error&&o(i.value),r.promise}});var fd=to,ld=bl.CONSTRUCTOR,pd=ul,dd=V,vd=G,hd=Zr,gd=pd&&pd.prototype;if(fd({target:"Promise",proto:!0,forced:ld,real:!0},{catch:function(t){return this.then(void 0,t)}}),vd(pd)){var yd=dd("Promise").prototype.catch;gd.catch!==yd&&hd(gd,"catch",yd,{unsafe:!0})}var md=l,bd=bt,Ed=El,wd=il,Od=Xp;to({target:"Promise",stat:!0,forced:od},{race:function(t){var e=this,r=Ed.f(e),n=r.reject,o=wd((function(){var o=bd(e.resolve);Od(t,(function(t){md(o,e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var xd=El;to({target:"Promise",stat:!0,forced:bl.CONSTRUCTOR},{reject:function(t){var e=xd.f(this);return(0,e.reject)(t),e.promise}});var Sd=Le,jd=$,Td=El,Pd=to,Ad=bl.CONSTRUCTOR,Rd=function(t,e){if(Sd(t),jd(e)&&e.constructor===t)return e;var r=Td.f(t);return(0,r.resolve)(e),r.promise};function Id(t,e,r,n){return new(r||(r=Promise))((function(o,i){function u(t){try{a(n.next(t))}catch(t){i(t)}}function c(t){try{a(n.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(u,c)}a((n=n.apply(t,e||[])).next())}))}function Cd(t,e){try{return t.setup(e)}catch(t){console.warn(t)}}function Md(t,e){return Cd(t,e(t))}function kd(t,e){return!!Ld(t)||(console.warn(e),!1)}function Ld(t){return"function"==typeof t}function Nd(t){return Object.assign(Object.assign({},t),{setup(){}})}function Fd(t,e){return e&&e()?t.filter((t=>!0!==t.private)):t}function Dd(t){t()}function _d(t,e){return Id(this,void 0,void 0,(function*(){const r=[];for(const n of e)r.push(Ud(t,n));return yield Promise.all(r).then((t=>t))}))}function Ud(t,e){return Id(this,void 0,void 0,(function*(){return kd(t,"Invalid `createAppApi` function. Skipping App installation.")&&(yield Md(e,t)),e}))}V("Promise"),Pd({target:"Promise",stat:!0,forced:Ad},{resolve:function(t){return Rd(this,t)}}),"function"==typeof SuppressedError&&SuppressedError;class Bd extends oa{constructor(t){super(Object.assign(Object.assign({},t),{name:"ModuleAppError"}))}}function Gd(t){return t instanceof Bd?t:new Bd({message:t.message,innerError:t})}class zd extends Bd{constructor(t){super(Object.assign({},t)),this.name="ModulesMetaError"}}class $d extends Bd{constructor(t){super(Object.assign({},t)),this.name="ModulesEvaluationError"}}var Wd=l,qd=bt,Vd=El,Hd=il,Jd=Xp;to({target:"Promise",stat:!0,forced:od},{allSettled:function(t){var e=this,r=Vd.f(e),n=r.resolve,o=r.reject,i=Hd((function(){var r=qd(e.resolve),o=[],i=0,u=1;Jd(t,(function(t){var c=i++,a=!1;u++,Wd(r,e,t).then((function(t){a||(a=!0,o[c]={status:"fulfilled",value:t},--u||n(o))}),(function(t){a||(a=!0,o[c]={status:"rejected",reason:t},--u||n(o))}))})),--u||n(o)}));return i.error&&o(i.value),r.promise}});var Kd=oc,Yd=G,Xd=P,Zd=Mo,Qd=x([].push),tv=to,ev=V,rv=io,nv=l,ov=x,iv=u,uv=G,cv=dt,av=Qs,sv=function(t){if(Yd(t))return t;if(Kd(t)){for(var e=t.length,r=[],n=0;n<e;n++){var o=t[n];"string"==typeof o?Qd(r,o):"number"!=typeof o&&"Number"!==Xd(o)&&"String"!==Xd(o)||Qd(r,Zd(o))}var i=r.length,u=!0;return function(t,e){if(u)return u=!1,e;if(Kd(this))return e;for(var n=0;n<i;n++)if(r[n]===t)return e}}},fv=ct,lv=String,pv=ev("JSON","stringify"),dv=ov(/./.exec),vv=ov("".charAt),hv=ov("".charCodeAt),gv=ov("".replace),yv=ov(1..toString),mv=/[\uD800-\uDFFF]/g,bv=/^[\uD800-\uDBFF]$/,Ev=/^[\uDC00-\uDFFF]$/,wv=!fv||iv((function(){var t=ev("Symbol")("stringify detection");return"[null]"!==pv([t])||"{}"!==pv({a:t})||"{}"!==pv(Object(t))})),Ov=iv((function(){return'"\\udf06\\ud834"'!==pv("\udf06\ud834")||'"\\udead"'!==pv("\udead")})),xv=function(t,e){var r=av(arguments),n=sv(e);if(uv(n)||void 0!==t&&!cv(t))return r[1]=function(t,e){if(uv(n)&&(e=nv(n,this,lv(t),e)),!cv(e))return e},rv(pv,null,r)},Sv=function(t,e,r){var n=vv(r,e-1),o=vv(r,e+1);return dv(bv,t)&&!dv(Ev,o)||dv(Ev,t)&&!dv(bv,n)?"\\u"+yv(hv(t,0),16):t};pv&&tv({target:"JSON",stat:!0,arity:3,forced:wv||Ov},{stringify:function(t,e,r){var n=av(arguments),o=rv(wv?xv:pv,null,n);return Ov&&"string"==typeof o?gv(o,mv,Sv):o}});var jv,Tv,Pv=u,Av=o.RegExp,Rv=Pv((function(){var t=Av("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),Iv=Rv||Pv((function(){return!Av("a","y").sticky})),Cv={BROKEN_CARET:Rv||Pv((function(){var t=Av("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:Iv,UNSUPPORTED_Y:Rv},Mv=u,kv=o.RegExp,Lv=Mv((function(){var t=kv(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})),Nv=u,Fv=o.RegExp,Dv=Nv((function(){var t=Fv("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),_v=l,Uv=x,Bv=Mo,Gv=Gc,zv=Cv,$v=_i,Wv=Rr.get,qv=Lv,Vv=Dv,Hv=Dt("native-string-replace",String.prototype.replace),Jv=RegExp.prototype.exec,Kv=Jv,Yv=Uv("".charAt),Xv=Uv("".indexOf),Zv=Uv("".replace),Qv=Uv("".slice),th=(Tv=/b*/g,_v(Jv,jv=/a/,"a"),_v(Jv,Tv,"a"),0!==jv.lastIndex||0!==Tv.lastIndex),eh=zv.BROKEN_CARET,rh=void 0!==/()??/.exec("")[1];(th||rh||eh||qv||Vv)&&(Kv=function(t){var e,r,n,o,i,u,c,a=this,s=Wv(a),f=Bv(t),l=s.raw;if(l)return l.lastIndex=a.lastIndex,e=_v(Kv,l,f),a.lastIndex=l.lastIndex,e;var p=s.groups,d=eh&&a.sticky,v=_v(Gv,a),h=a.source,g=0,y=f;if(d&&(v=Zv(v,"y",""),-1===Xv(v,"g")&&(v+="g"),y=Qv(f,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==Yv(f,a.lastIndex-1))&&(h="(?: "+h+")",y=" "+y,g++),r=new RegExp("^(?:"+h+")",v)),rh&&(r=new RegExp("^"+h+"$(?!\\s)",v)),th&&(n=a.lastIndex),o=_v(Jv,d?r:a,y),d?o?(o.input=Qv(o.input,g),o[0]=Qv(o[0],g),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:th&&o&&(a.lastIndex=a.global?o.index+o[0].length:n),rh&&o&&o.length>1&&_v(Hv,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=u=$v(null),i=0;i<p.length;i++)u[(c=p[i])[0]]=o[c[1]];return o});function nh(t,e){if("string"==typeof e){if(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.{0,1}\d*))(?:Z|(\+|-)([\d|:]*))?$/.exec(e))return new Date(e)}return e}to({target:"RegExp",proto:!0,forced:/./.exec!==Kv},{exec:Kv});const oh={setItem:(t,e)=>{localStorage.setItem(t,JSON.stringify(e))},getItem:t=>{const e=localStorage.getItem(t);var r;if(e)try{return r=e,JSON.parse(r,nh)}catch(t){return e}},removeItem:t=>{localStorage.removeItem(t)}};function ih(t,e){oh.setItem(t,e)}function uh(t){return t instanceof Array?(t.length>0&&ih("EchoModules",t),t):(console.info("No modules awaitable."),[])}function ch(t){return Id(this,void 0,void 0,(function*(){if(t&&kd(t,"Could not get the Modules. Provide a valid `fetchModules` function."))try{return uh(yield t())}catch(t){throw new zd({message:"[loadMetaData] failed",innerError:rs(t)})}return Promise.resolve([])}))}function ah(t,e){return Id(this,void 0,void 0,(function*(){const r=yield ch(e);if(r instanceof Array){const e=yield Promise.allSettled(r.map(t));return e.forEach((t=>"rejected"===t.status&&console.error(t.reason))),function(t){return t.filter((t=>"fulfilled"===t.status)).map((t=>"fulfilled"===t.status?t.value:void 0)).filter(sh)}(e)}throw new zd({message:"Invalid modules meta-data, argument is not an Array"})}))}function sh(t){return"number"==typeof t?!Number.isNaN(t):t instanceof Date?!isNaN(t.getTime()):!e.isEmpty(t)}const fh={},lh=()=>!1;function ph(t=fh,e=lh){return r=>e(r)||t}function dh(t,e,r,n,o,i){return Id(this,void 0,void 0,(function*(){return new Promise(((u,c)=>{const a=document.createElement("script");a.async=!0,a.src=e,a.id=t,i?(a.crossOrigin=o||"anonymous",a.integrity=i):o&&(a.crossOrigin=o),window[r]=hh(n),a.onload=()=>u(vh(t,a.module)),a.onerror=()=>c(`Could not load module ${t}`),document.head.appendChild(a)}))}))}function vh(t,e){return Id(this,void 0,void 0,(function*(){const r=yield Promise.resolve(e);return function(t,e){if(e){if("function"==typeof e.setup)return e;console.warn("Setup function is missing.",t)}else console.error("Invalid module found.",t);return{setup(){}}}(t,r)}))}function hh(t={}){return e=>function(t,e){const r=e[t];if(!r){const e=new Error(`Cannot find module '${t}'`);throw e.code="MODULE_NOT_FOUND",e}return r}(e,t)}function gh(t,e,r){return Id(this,arguments,void 0,(function*({name:t,fileUri:e,requireRef:r,integrity:n},o,i){return dh(t,e,r,o,i,n)}))}const yh="undefined"!=typeof document;function mh(t,e,r){return bh(ph(e,r),t)}function bh(t,e={}){return r=>yh&&"requireRef"in r&&r.requireRef?function(t,e,r){return Id(this,void 0,void 0,(function*(){const n=Object.assign({},e(t)||{}),o=yield r(n);return Object.assign(Object.assign({},o),t)}))}(r,t,(t=>gh(r,t,e.crossOrigin))):(console.warn("Empty Module found!",r.name),Promise.resolve(Nd(r)))}function Eh(){return"production"===process.env.NODE_ENV}function wh(t,e){return Id(this,void 0,void 0,(function*(){const r=mh(t.config,t.dependencies,t.getDependencies);try{const n=yield ah(r,t.fetchModules),o=yield function(t,e){return Id(this,arguments,void 0,(function*(t,e,r=[]){try{for(const t of r){const[r]=e.filter((e=>e.name===t.name));r&&e.splice(e.indexOf(r),1)}return _d(t,Fd([...r,...e],Eh))}catch(t){throw new $d({message:"[strategies.evaluateAllModules] failed",innerError:rs(t)})}}))}(t.createApi,n,t.modules);return e(void 0,o)}catch(t){return e(Gd(rs(t)),[])}}))}const Oh=new class{emit(t,e){const r=new CustomEvent(t,{detail:e});window.dispatchEvent(r)}subscribe(t,e){const r=t=>{const r=t.detail;e(r)};return window.addEventListener(t,r),()=>window.removeEventListener(t,r,!1)}subscribeMany(t,e){const r=t.map((t=>this.subscribe(t,e)));return()=>{r.forEach((t=>{t()}))}}};exports.ArgumentError=class extends oa{constructor({argumentName:t}){super({name:"ArgumentError",message:t})}},exports.BackendError=Sa,exports.BadRequestError=xa,exports.BaseError=oa,exports.ForbiddenError=ja,exports.ImproperErrorObject=es,exports.ModuleAppError=Bd,exports.ModuleLoadingError=class extends Bd{constructor(t){super(Object.assign({},t)),this.name="ModuleLoadingError"}},exports.ModulesEvaluationError=$d,exports.ModulesMetaError=zd,exports.NetworkError=Oa,exports.NotFoundError=Pa,exports.UnauthorizedError=Ta,exports.ValidationError=Aa,exports.appendScriptTagToDom=dh,exports.checkFunction=kd,exports.createEmptyModule=Nd,exports.createModule=Ud,exports.createModuleLoader=mh,exports.createModules=_d,exports.errorUtils=os,exports.eventHub=Oh,exports.filterExcludePrivateModulesInProduction=Fd,exports.findPropertyByName=ua,exports.fireAndForget=Dd,exports.getAllProperties=ca,exports.getDependencyResolver=ph,exports.getLocalRequire=hh,exports.getModuleLoader=bh,exports.includeModuleWithDependencies=gh,exports.initializeNetworkError=function(t){var e,r;switch(t.httpStatusCode){case 400:if((null===(e=t.exception)||void 0===e?void 0:e.title)&&(null===(r=t.exception)||void 0===r?void 0:r.title).toLowerCase().includes("validation"))return new Aa(t);break;case 401:return new Ta(t);case 403:return new ja(t);case 404:return new Pa(t)}return t.httpStatusCode>0&&t.httpStatusCode<550&&t.exception?new Sa(t):400===t.httpStatusCode?new xa(t):new Oa(t)},exports.isFunc=Ld,exports.loadLocalModuleMeta=function(t){const e=oh.getItem(t);return e&&e instanceof Array?e:[]},exports.loadMetaData=ch,exports.loadModules=ah,exports.persistLocalModuleMeta=ih,exports.removeElementById=function(t){var e;null===(e=document.getElementById(t))||void 0===e||e.remove()},exports.setupModule=Md,exports.setupSingleModule=Cd,exports.standardStrategy=wh,exports.startLoadingModules=function(t){const e={loaded:!1,modules:[],error:void 0},r=[],n=t=>t(e.error,e.modules,e.loaded),o=()=>r.forEach(n),i=(t,r)=>{e.error=t,e.modules=r,o()},u=()=>{e.loaded=!0,o()};return Dd((()=>wh(t,i).then(u,u))),{connect(t){Ld(t)&&(r.push(t),n(t))},disconnect(t){const e=r.indexOf(t);-1!==e&&r.splice(e,1)}}},exports.storage=oh,exports.toError=rs,exports.toModuleAppError=Gd,exports.verifyAppWithModule=vh,exports.verifyModulesMeta=uh; |
{ | ||
"name": "@equinor/echo-base", | ||
"version": "0.7.2", | ||
"version": "0.7.3-beta1", | ||
"license": "MIT", | ||
@@ -9,3 +9,4 @@ "dependencies": { | ||
"main": "./index.cjs.js", | ||
"type": "commonjs" | ||
} | ||
"type": "commonjs", | ||
"types": "./index.cjs.d.ts" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77391
830