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