@elliemae/pui-app-bridge 2.35.4 → 2.35.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/appBridge.js +16 -11
- package/dist/cjs/eventManager.js +48 -19
- package/dist/cjs/microfeHost.js +39 -9
- package/dist/esm/appBridge.js +17 -12
- package/dist/esm/eventManager.js +48 -19
- package/dist/esm/microfeHost.js +39 -9
- package/dist/public/e2e-host.html +1 -1
- package/dist/public/e2e-index.html +1 -1
- package/dist/public/frame.html +1 -1
- package/dist/public/index.html +1 -1
- package/dist/public/js/emuiAppBridge.a2a0a24ba9221b91e9ea.js +17 -0
- package/dist/public/js/emuiAppBridge.a2a0a24ba9221b91e9ea.js.br +0 -0
- package/dist/public/js/emuiAppBridge.a2a0a24ba9221b91e9ea.js.gz +0 -0
- package/dist/public/js/emuiAppBridge.a2a0a24ba9221b91e9ea.js.map +1 -0
- package/dist/types/lib/eventManager.d.ts +22 -4
- package/dist/types/lib/microfeHost.d.ts +18 -3
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/umd/index.js +6 -6
- package/dist/umd/index.js.br +0 -0
- package/dist/umd/index.js.gz +0 -0
- package/dist/umd/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/public/js/emuiAppBridge.d51e198b1c4d4ee0e752.js +0 -17
- package/dist/public/js/emuiAppBridge.d51e198b1c4d4ee0e752.js.br +0 -0
- package/dist/public/js/emuiAppBridge.d51e198b1c4d4ee0e752.js.gz +0 -0
- package/dist/public/js/emuiAppBridge.d51e198b1c4d4ee0e752.js.map +0 -1
package/dist/umd/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
(function(wt,qe){typeof exports=="object"&&typeof module=="object"?module.exports=qe(require("React")):typeof define=="function"&&define.amd?define(["React"],qe):typeof exports=="object"?exports.ice=qe(require("React")):wt.ice=qe(wt.React)})(globalThis,mr=>(()=>{var wt={8054(o,f,n){var a=n(5592),c=n(907),l=a(c,"DataView");o.exports=l},3219(o,f,n){var a=n(2130),c=n(1924),l=n(4743),u=n(1755),p=n(5203);function g(m){var v=-1,w=m==null?0:m.length;for(this.clear();++v<w;){var x=m[v];this.set(x[0],x[1])}}g.prototype.clear=a,g.prototype.delete=c,g.prototype.get=l,g.prototype.has=u,g.prototype.set=p,o.exports=g},7321(o,f,n){var a=n(3044),c=n(4066),l=n(8461),u=n(4417),p=n(2777);function g(m){var v=-1,w=m==null?0:m.length;for(this.clear();++v<w;){var x=m[v];this.set(x[0],x[1])}}g.prototype.clear=a,g.prototype.delete=c,g.prototype.get=l,g.prototype.has=u,g.prototype.set=p,o.exports=g},2565(o,f,n){var a=n(5592),c=n(907),l=a(c,"Map");o.exports=l},111(o,f,n){var a=n(4614),c=n(9504),l=n(9251),u=n(5791),p=n(1511);function g(m){var v=-1,w=m==null?0:m.length;for(this.clear();++v<w;){var x=m[v];this.set(x[0],x[1])}}g.prototype.clear=a,g.prototype.delete=c,g.prototype.get=l,g.prototype.has=u,g.prototype.set=p,o.exports=g},8246(o,f,n){var a=n(5592),c=n(907),l=a(c,"Promise");o.exports=l},4099(o,f,n){var a=n(5592),c=n(907),l=a(c,"Set");o.exports=l},5963(o,f,n){var a=n(7321),c=n(1306),l=n(3180),u=n(5247),p=n(2835),g=n(9179);function m(v){var w=this.__data__=new a(v);this.size=w.size}m.prototype.clear=c,m.prototype.delete=l,m.prototype.get=u,m.prototype.has=p,m.prototype.set=g,o.exports=m},7759(o,f,n){var a=n(907),c=a.Symbol;o.exports=c},9386(o,f,n){var a=n(907),c=a.Uint8Array;o.exports=c},6221(o,f,n){var a=n(5592),c=n(907),l=a(c,"WeakMap");o.exports=l},6047(o){function f(n,a,c){switch(c.length){case 0:return n.call(a);case 1:return n.call(a,c[0]);case 2:return n.call(a,c[0],c[1]);case 3:return n.call(a,c[0],c[1],c[2])}return n.apply(a,c)}o.exports=f},6259(o){function f(n,a){for(var c=-1,l=n==null?0:n.length;++c<l&&a(n[c],c,n)!==!1;);return n}o.exports=f},1840(o){function f(n,a){for(var c=-1,l=n==null?0:n.length,u=0,p=[];++c<l;){var g=n[c];a(g,c,n)&&(p[u++]=g)}return p}o.exports=f},3737(o,f,n){var a=n(5562),c=n(1750),l=n(2619),u=n(3446),p=n(2159),g=n(3133),m=Object.prototype,v=m.hasOwnProperty;function w(x,P){var $=l(x),N=!$&&c(x),H=!$&&!N&&u(x),D=!$&&!N&&!H&&g(x),q=$||N||H||D,oe=q?a(x.length,String):[],ve=oe.length;for(var _ in x)(P||v.call(x,_))&&!(q&&(_=="length"||H&&(_=="offset"||_=="parent")||D&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||p(_,ve)))&&oe.push(_);return oe}o.exports=w},5862(o){function f(n,a){for(var c=-1,l=n==null?0:n.length,u=Array(l);++c<l;)u[c]=a(n[c],c,n);return u}o.exports=f},9130(o){function f(n,a){for(var c=-1,l=a.length,u=n.length;++c<l;)n[u+c]=a[c];return n}o.exports=f},8971(o,f,n){var a=n(3706),c=n(9506);function l(u,p,g){(g!==void 0&&!c(u[p],g)||g===void 0&&!(p in u))&&a(u,p,g)}o.exports=l},3853(o,f,n){var a=n(3706),c=n(9506),l=Object.prototype,u=l.hasOwnProperty;function p(g,m,v){var w=g[m];(!(u.call(g,m)&&c(w,v))||v===void 0&&!(m in g))&&a(g,m,v)}o.exports=p},7831(o,f,n){var a=n(9506);function c(l,u){for(var p=l.length;p--;)if(a(l[p][0],u))return p;return-1}o.exports=c},2183(o,f,n){var a=n(7145),c=n(2096);function l(u,p){return u&&a(p,c(p),u)}o.exports=l},4076(o,f,n){var a=n(7145),c=n(7999);function l(u,p){return u&&a(p,c(p),u)}o.exports=l},3706(o,f,n){var a=n(4665);function c(l,u,p){u=="__proto__"&&a?a(l,u,{configurable:!0,enumerable:!0,value:p,writable:!0}):l[u]=p}o.exports=c},6057(o,f,n){var a=n(5963),c=n(6259),l=n(3853),u=n(2183),p=n(4076),g=n(5196),m=n(3549),v=n(6573),w=n(9934),x=n(6280),P=n(6839),$=n(1663),N=n(143),H=n(7265),D=n(8879),q=n(2619),oe=n(3446),ve=n(7884),_=n(9323),Ce=n(5070),ye=n(2096),Oe=n(7999),ae=1,pe=2,ce=4,le="[object Arguments]",de="[object Array]",G="[object Boolean]",be="[object Date]",J="[object Error]",we="[object Function]",Ue="[object GeneratorFunction]",st="[object Map]",zt="[object Number]",Bt="[object Object]",xt="[object RegExp]",ot="[object Set]",Vt="[object String]",Gt="[object Symbol]",Ht="[object WeakMap]",me="[object ArrayBuffer]",St="[object DataView]",vr="[object Float32Array]",yr="[object Float64Array]",Wt="[object Int8Array]",At="[object Int16Array]",et="[object Int32Array]",Et="[object Uint8Array]",br="[object Uint8ClampedArray]",wr="[object Uint16Array]",_t="[object Uint32Array]",ie={};ie[le]=ie[de]=ie[me]=ie[St]=ie[G]=ie[be]=ie[vr]=ie[yr]=ie[Wt]=ie[At]=ie[et]=ie[st]=ie[zt]=ie[Bt]=ie[xt]=ie[ot]=ie[Vt]=ie[Gt]=ie[Et]=ie[br]=ie[wr]=ie[_t]=!0,ie[J]=ie[we]=ie[Ht]=!1;function tt(Q,Ke,Ge,Kt,it,He){var xe,pt=Ke&ae,Fe=Ke&pe,Yt=Ke&ce;if(Ge&&(xe=it?Ge(Q,Kt,it,He):Ge(Q)),xe!==void 0)return xe;if(!_(Q))return Q;var De=q(Q);if(De){if(xe=N(Q),!pt)return m(Q,xe)}else{var Pe=$(Q),Ct=Pe==we||Pe==Ue;if(oe(Q))return g(Q,pt);if(Pe==Bt||Pe==le||Ct&&!it){if(xe=Fe||Ct?{}:D(Q),!pt)return Fe?w(Q,p(xe,Q)):v(Q,u(xe,Q))}else{if(!ie[Pe])return it?Q:{};xe=H(Q,Pe,pt)}}He||(He=new a);var Ot=He.get(Q);if(Ot)return Ot;He.set(Q,xe),Ce(Q)?Q.forEach(function(We){xe.add(tt(We,Ke,Ge,We,Q,He))}):ve(Q)&&Q.forEach(function(We,Ye){xe.set(Ye,tt(We,Ke,Ge,Ye,Q,He))});var Xt=Yt?Fe?P:x:Fe?Oe:ye,Tt=De?void 0:Xt(Q);return c(Tt||Q,function(We,Ye){Tt&&(Ye=We,We=Q[Ye]),l(xe,Ye,tt(We,Ke,Ge,Ye,Q,He))}),xe}o.exports=tt},8514(o,f,n){var a=n(9323),c=Object.create,l=function(){function u(){}return function(p){if(!a(p))return{};if(c)return c(p);u.prototype=p;var g=new u;return u.prototype=void 0,g}}();o.exports=l},5795(o,f,n){var a=n(3375),c=a();o.exports=c},3208(o,f,n){var a=n(2155),c=n(5155);function l(u,p){p=a(p,u);for(var g=0,m=p.length;u!=null&&g<m;)u=u[c(p[g++])];return g&&g==m?u:void 0}o.exports=l},1405(o,f,n){var a=n(9130),c=n(2619);function l(u,p,g){var m=p(u);return c(u)?m:a(m,g(u))}o.exports=l},1490(o,f,n){var a=n(7759),c=n(4817),l=n(7748),u="[object Null]",p="[object Undefined]",g=a?a.toStringTag:void 0;function m(v){return v==null?v===void 0?p:u:g&&g in Object(v)?c(v):l(v)}o.exports=m},2780(o){var f=Object.prototype,n=f.hasOwnProperty;function a(c,l){return c!=null&&n.call(c,l)}o.exports=a},2960(o,f,n){var a=n(1490),c=n(2292),l="[object Arguments]";function u(p){return c(p)&&a(p)==l}o.exports=u},9694(o,f,n){var a=n(1663),c=n(2292),l="[object Map]";function u(p){return c(p)&&a(p)==l}o.exports=u},4401(o,f,n){var a=n(860),c=n(2958),l=n(9323),u=n(8815),p=/[\\^$.*+?()[\]{}|]/g,g=/^\[object .+?Constructor\]$/,m=Function.prototype,v=Object.prototype,w=m.toString,x=v.hasOwnProperty,P=RegExp("^"+w.call(x).replace(p,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $(N){if(!l(N)||c(N))return!1;var H=a(N)?P:g;return H.test(u(N))}o.exports=$},8172(o,f,n){var a=n(1663),c=n(2292),l="[object Set]";function u(p){return c(p)&&a(p)==l}o.exports=u},5283(o,f,n){var a=n(1490),c=n(5300),l=n(2292),u="[object Arguments]",p="[object Array]",g="[object Boolean]",m="[object Date]",v="[object Error]",w="[object Function]",x="[object Map]",P="[object Number]",$="[object Object]",N="[object RegExp]",H="[object Set]",D="[object String]",q="[object WeakMap]",oe="[object ArrayBuffer]",ve="[object DataView]",_="[object Float32Array]",Ce="[object Float64Array]",ye="[object Int8Array]",Oe="[object Int16Array]",ae="[object Int32Array]",pe="[object Uint8Array]",ce="[object Uint8ClampedArray]",le="[object Uint16Array]",de="[object Uint32Array]",G={};G[_]=G[Ce]=G[ye]=G[Oe]=G[ae]=G[pe]=G[ce]=G[le]=G[de]=!0,G[u]=G[p]=G[oe]=G[g]=G[ve]=G[m]=G[v]=G[w]=G[x]=G[P]=G[$]=G[N]=G[H]=G[D]=G[q]=!1;function be(J){return l(J)&&c(J.length)&&!!G[a(J)]}o.exports=be},2322(o,f,n){var a=n(8861),c=n(9692),l=Object.prototype,u=l.hasOwnProperty;function p(g){if(!a(g))return c(g);var m=[];for(var v in Object(g))u.call(g,v)&&v!="constructor"&&m.push(v);return m}o.exports=p},5045(o,f,n){var a=n(9323),c=n(8861),l=n(1779),u=Object.prototype,p=u.hasOwnProperty;function g(m){if(!a(m))return l(m);var v=c(m),w=[];for(var x in m)x=="constructor"&&(v||!p.call(m,x))||w.push(x);return w}o.exports=g},3912(o,f,n){var a=n(5963),c=n(8971),l=n(5795),u=n(8342),p=n(9323),g=n(7999),m=n(5760);function v(w,x,P,$,N){w!==x&&l(x,function(H,D){if(N||(N=new a),p(H))u(w,x,D,P,v,$,N);else{var q=$?$(m(w,D),H,D+"",w,x,N):void 0;q===void 0&&(q=H),c(w,D,q)}},g)}o.exports=v},8342(o,f,n){var a=n(8971),c=n(5196),l=n(5979),u=n(3549),p=n(8879),g=n(1750),m=n(2619),v=n(1891),w=n(3446),x=n(860),P=n(9323),$=n(1281),N=n(3133),H=n(5760),D=n(4514);function q(oe,ve,_,Ce,ye,Oe,ae){var pe=H(oe,_),ce=H(ve,_),le=ae.get(ce);if(le){a(oe,_,le);return}var de=Oe?Oe(pe,ce,_+"",oe,ve,ae):void 0,G=de===void 0;if(G){var be=m(ce),J=!be&&w(ce),we=!be&&!J&&N(ce);de=ce,be||J||we?m(pe)?de=pe:v(pe)?de=u(pe):J?(G=!1,de=c(ce,!0)):we?(G=!1,de=l(ce,!0)):de=[]:$(ce)||g(ce)?(de=pe,g(pe)?de=D(pe):(!P(pe)||x(pe))&&(de=p(ce))):G=!1}G&&(ae.set(ce,de),ye(de,ce,Ce,Oe,ae),ae.delete(ce)),a(oe,_,de)}o.exports=q},6936(o,f,n){var a=n(4846),c=n(8619),l=n(9599);function u(p,g){return l(c(p,g,a),p+"")}o.exports=u},604(o,f,n){var a=n(3853),c=n(2155),l=n(2159),u=n(9323),p=n(5155);function g(m,v,w,x){if(!u(m))return m;v=c(v,m);for(var P=-1,$=v.length,N=$-1,H=m;H!=null&&++P<$;){var D=p(v[P]),q=w;if(D==="__proto__"||D==="constructor"||D==="prototype")return m;if(P!=N){var oe=H[D];q=x?x(oe,D,H):void 0,q===void 0&&(q=u(oe)?oe:l(v[P+1])?[]:{})}a(H,D,q),H=H[D]}return m}o.exports=g},7680(o,f,n){var a=n(6148),c=n(4665),l=n(4846),u=c?function(p,g){return c(p,"toString",{configurable:!0,enumerable:!1,value:a(g),writable:!0})}:l;o.exports=u},5562(o){function f(n,a){for(var c=-1,l=Array(n);++c<n;)l[c]=a(c);return l}o.exports=f},1978(o,f,n){var a=n(7759),c=n(5862),l=n(2619),u=n(7964),p=1/0,g=a?a.prototype:void 0,m=g?g.toString:void 0;function v(w){if(typeof w=="string")return w;if(l(w))return c(w,v)+"";if(u(w))return m?m.call(w):"";var x=w+"";return x=="0"&&1/w==-p?"-0":x}o.exports=v},6(o,f,n){var a=n(5082),c=/^\s+/;function l(u){return u&&u.slice(0,a(u)+1).replace(c,"")}o.exports=l},1155(o){function f(n){return function(a){return n(a)}}o.exports=f},2155(o,f,n){var a=n(2619),c=n(5304),l=n(4352),u=n(7164);function p(g,m){return a(g)?g:c(g,m)?[g]:l(u(g))}o.exports=p},2859(o,f,n){var a=n(9386);function c(l){var u=new l.constructor(l.byteLength);return new a(u).set(new a(l)),u}o.exports=c},5196(o,f,n){o=n.nmd(o);var a=n(907),c=f&&!f.nodeType&&f,l=c&&!0&&o&&!o.nodeType&&o,u=l&&l.exports===c,p=u?a.Buffer:void 0,g=p?p.allocUnsafe:void 0;function m(v,w){if(w)return v.slice();var x=v.length,P=g?g(x):new v.constructor(x);return v.copy(P),P}o.exports=m},7795(o,f,n){var a=n(2859);function c(l,u){var p=u?a(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.byteLength)}o.exports=c},6899(o){var f=/\w*$/;function n(a){var c=new a.constructor(a.source,f.exec(a));return c.lastIndex=a.lastIndex,c}o.exports=n},4518(o,f,n){var a=n(7759),c=a?a.prototype:void 0,l=c?c.valueOf:void 0;function u(p){return l?Object(l.call(p)):{}}o.exports=u},5979(o,f,n){var a=n(2859);function c(l,u){var p=u?a(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.length)}o.exports=c},3549(o){function f(n,a){var c=-1,l=n.length;for(a||(a=Array(l));++c<l;)a[c]=n[c];return a}o.exports=f},7145(o,f,n){var a=n(3853),c=n(3706);function l(u,p,g,m){var v=!g;g||(g={});for(var w=-1,x=p.length;++w<x;){var P=p[w],$=m?m(g[P],u[P],P,g,u):void 0;$===void 0&&($=u[P]),v?c(g,P,$):a(g,P,$)}return g}o.exports=l},6573(o,f,n){var a=n(7145),c=n(1454);function l(u,p){return a(u,c(u),p)}o.exports=l},9934(o,f,n){var a=n(7145),c=n(6649);function l(u,p){return a(u,c(u),p)}o.exports=l},3703(o,f,n){var a=n(907),c=a["__core-js_shared__"];o.exports=c},2917(o,f,n){var a=n(6936),c=n(9542);function l(u){return a(function(p,g){var m=-1,v=g.length,w=v>1?g[v-1]:void 0,x=v>2?g[2]:void 0;for(w=u.length>3&&typeof w=="function"?(v--,w):void 0,x&&c(g[0],g[1],x)&&(w=v<3?void 0:w,v=1),p=Object(p);++m<v;){var P=g[m];P&&u(p,P,m,w)}return p})}o.exports=l},3375(o){function f(n){return function(a,c,l){for(var u=-1,p=Object(a),g=l(a),m=g.length;m--;){var v=g[n?m:++u];if(c(p[v],v,p)===!1)break}return a}}o.exports=f},4665(o,f,n){var a=n(5592),c=function(){try{var l=a(Object,"defineProperty");return l({},"",{}),l}catch{}}();o.exports=c},6710(o){var f=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis;o.exports=f},6280(o,f,n){var a=n(1405),c=n(1454),l=n(2096);function u(p){return a(p,l,c)}o.exports=u},6839(o,f,n){var a=n(1405),c=n(6649),l=n(7999);function u(p){return a(p,l,c)}o.exports=u},9257(o,f,n){var a=n(7500);function c(l,u){var p=l.__data__;return a(u)?p[typeof u=="string"?"string":"hash"]:p.map}o.exports=c},5592(o,f,n){var a=n(4401),c=n(2490);function l(u,p){var g=c(u,p);return a(g)?g:void 0}o.exports=l},553(o,f,n){var a=n(7937),c=a(Object.getPrototypeOf,Object);o.exports=c},4817(o,f,n){var a=n(7759),c=Object.prototype,l=c.hasOwnProperty,u=c.toString,p=a?a.toStringTag:void 0;function g(m){var v=l.call(m,p),w=m[p];try{m[p]=void 0;var x=!0}catch{}var P=u.call(m);return x&&(v?m[p]=w:delete m[p]),P}o.exports=g},1454(o,f,n){var a=n(1840),c=n(5615),l=Object.prototype,u=l.propertyIsEnumerable,p=Object.getOwnPropertySymbols,g=p?function(m){return m==null?[]:(m=Object(m),a(p(m),function(v){return u.call(m,v)}))}:c;o.exports=g},6649(o,f,n){var a=n(9130),c=n(553),l=n(1454),u=n(5615),p=Object.getOwnPropertySymbols,g=p?function(m){for(var v=[];m;)a(v,l(m)),m=c(m);return v}:u;o.exports=g},1663(o,f,n){var a=n(8054),c=n(2565),l=n(8246),u=n(4099),p=n(6221),g=n(1490),m=n(8815),v="[object Map]",w="[object Object]",x="[object Promise]",P="[object Set]",$="[object WeakMap]",N="[object DataView]",H=m(a),D=m(c),q=m(l),oe=m(u),ve=m(p),_=g;(a&&_(new a(new ArrayBuffer(1)))!=N||c&&_(new c)!=v||l&&_(l.resolve())!=x||u&&_(new u)!=P||p&&_(new p)!=$)&&(_=function(Ce){var ye=g(Ce),Oe=ye==w?Ce.constructor:void 0,ae=Oe?m(Oe):"";if(ae)switch(ae){case H:return N;case D:return v;case q:return x;case oe:return P;case ve:return $}return ye}),o.exports=_},2490(o){function f(n,a){return n?.[a]}o.exports=f},5728(o,f,n){var a=n(2155),c=n(1750),l=n(2619),u=n(2159),p=n(5300),g=n(5155);function m(v,w,x){w=a(w,v);for(var P=-1,$=w.length,N=!1;++P<$;){var H=g(w[P]);if(!(N=v!=null&&x(v,H)))break;v=v[H]}return N||++P!=$?N:($=v==null?0:v.length,!!$&&p($)&&u(H,$)&&(l(v)||c(v)))}o.exports=m},2130(o,f,n){var a=n(9444);function c(){this.__data__=a?a(null):{},this.size=0}o.exports=c},1924(o){function f(n){var a=this.has(n)&&delete this.__data__[n];return this.size-=a?1:0,a}o.exports=f},4743(o,f,n){var a=n(9444),c="__lodash_hash_undefined__",l=Object.prototype,u=l.hasOwnProperty;function p(g){var m=this.__data__;if(a){var v=m[g];return v===c?void 0:v}return u.call(m,g)?m[g]:void 0}o.exports=p},1755(o,f,n){var a=n(9444),c=Object.prototype,l=c.hasOwnProperty;function u(p){var g=this.__data__;return a?g[p]!==void 0:l.call(g,p)}o.exports=u},5203(o,f,n){var a=n(9444),c="__lodash_hash_undefined__";function l(u,p){var g=this.__data__;return this.size+=this.has(u)?0:1,g[u]=a&&p===void 0?c:p,this}o.exports=l},143(o){var f=Object.prototype,n=f.hasOwnProperty;function a(c){var l=c.length,u=new c.constructor(l);return l&&typeof c[0]=="string"&&n.call(c,"index")&&(u.index=c.index,u.input=c.input),u}o.exports=a},7265(o,f,n){var a=n(2859),c=n(7795),l=n(6899),u=n(4518),p=n(5979),g="[object Boolean]",m="[object Date]",v="[object Map]",w="[object Number]",x="[object RegExp]",P="[object Set]",$="[object String]",N="[object Symbol]",H="[object ArrayBuffer]",D="[object DataView]",q="[object Float32Array]",oe="[object Float64Array]",ve="[object Int8Array]",_="[object Int16Array]",Ce="[object Int32Array]",ye="[object Uint8Array]",Oe="[object Uint8ClampedArray]",ae="[object Uint16Array]",pe="[object Uint32Array]";function ce(le,de,G){var be=le.constructor;switch(de){case H:return a(le);case g:case m:return new be(+le);case D:return c(le,G);case q:case oe:case ve:case _:case Ce:case ye:case Oe:case ae:case pe:return p(le,G);case v:return new be;case w:case $:return new be(le);case x:return l(le);case P:return new be;case N:return u(le)}}o.exports=ce},8879(o,f,n){var a=n(8514),c=n(553),l=n(8861);function u(p){return typeof p.constructor=="function"&&!l(p)?a(c(p)):{}}o.exports=u},2159(o){var f=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function a(c,l){var u=typeof c;return l=l??f,!!l&&(u=="number"||u!="symbol"&&n.test(c))&&c>-1&&c%1==0&&c<l}o.exports=a},9542(o,f,n){var a=n(9506),c=n(644),l=n(2159),u=n(9323);function p(g,m,v){if(!u(v))return!1;var w=typeof m;return(w=="number"?c(v)&&l(m,v.length):w=="string"&&m in v)?a(v[m],g):!1}o.exports=p},5304(o,f,n){var a=n(2619),c=n(7964),l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;function p(g,m){if(a(g))return!1;var v=typeof g;return v=="number"||v=="symbol"||v=="boolean"||g==null||c(g)?!0:u.test(g)||!l.test(g)||m!=null&&g in Object(m)}o.exports=p},7500(o){function f(n){var a=typeof n;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?n!=="__proto__":n===null}o.exports=f},2958(o,f,n){var a=n(3703),c=function(){var u=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}();function l(u){return!!c&&c in u}o.exports=l},8861(o){var f=Object.prototype;function n(a){var c=a&&a.constructor,l=typeof c=="function"&&c.prototype||f;return a===l}o.exports=n},3044(o){function f(){this.__data__=[],this.size=0}o.exports=f},4066(o,f,n){var a=n(7831),c=Array.prototype,l=c.splice;function u(p){var g=this.__data__,m=a(g,p);if(m<0)return!1;var v=g.length-1;return m==v?g.pop():l.call(g,m,1),--this.size,!0}o.exports=u},8461(o,f,n){var a=n(7831);function c(l){var u=this.__data__,p=a(u,l);return p<0?void 0:u[p][1]}o.exports=c},4417(o,f,n){var a=n(7831);function c(l){return a(this.__data__,l)>-1}o.exports=c},2777(o,f,n){var a=n(7831);function c(l,u){var p=this.__data__,g=a(p,l);return g<0?(++this.size,p.push([l,u])):p[g][1]=u,this}o.exports=c},4614(o,f,n){var a=n(3219),c=n(7321),l=n(2565);function u(){this.size=0,this.__data__={hash:new a,map:new(l||c),string:new a}}o.exports=u},9504(o,f,n){var a=n(9257);function c(l){var u=a(this,l).delete(l);return this.size-=u?1:0,u}o.exports=c},9251(o,f,n){var a=n(9257);function c(l){return a(this,l).get(l)}o.exports=c},5791(o,f,n){var a=n(9257);function c(l){return a(this,l).has(l)}o.exports=c},1511(o,f,n){var a=n(9257);function c(l,u){var p=a(this,l),g=p.size;return p.set(l,u),this.size+=p.size==g?0:1,this}o.exports=c},3426(o,f,n){var a=n(8590),c=500;function l(u){var p=a(u,function(m){return g.size===c&&g.clear(),m}),g=p.cache;return p}o.exports=l},9444(o,f,n){var a=n(5592),c=a(Object,"create");o.exports=c},9692(o,f,n){var a=n(7937),c=a(Object.keys,Object);o.exports=c},1779(o){function f(n){var a=[];if(n!=null)for(var c in Object(n))a.push(c);return a}o.exports=f},1587(o,f,n){o=n.nmd(o);var a=n(6710),c=f&&!f.nodeType&&f,l=c&&!0&&o&&!o.nodeType&&o,u=l&&l.exports===c,p=u&&a.process,g=function(){try{var m=l&&l.require&&l.require("util").types;return m||p&&p.binding&&p.binding("util")}catch{}}();o.exports=g},7748(o){var f=Object.prototype,n=f.toString;function a(c){return n.call(c)}o.exports=a},7937(o){function f(n,a){return function(c){return n(a(c))}}o.exports=f},8619(o,f,n){var a=n(6047),c=Math.max;function l(u,p,g){return p=c(p===void 0?u.length-1:p,0),function(){for(var m=arguments,v=-1,w=c(m.length-p,0),x=Array(w);++v<w;)x[v]=m[p+v];v=-1;for(var P=Array(p+1);++v<p;)P[v]=m[v];return P[p]=g(x),a(u,this,P)}}o.exports=l},907(o,f,n){var a=n(6710),c=typeof self=="object"&&self&&self.Object===Object&&self,l=a||c||Function("return this")();o.exports=l},5760(o){function f(n,a){if(!(a==="constructor"&&typeof n[a]=="function")&&a!="__proto__")return n[a]}o.exports=f},9599(o,f,n){var a=n(7680),c=n(6101),l=c(a);o.exports=l},6101(o){var f=800,n=16,a=Date.now;function c(l){var u=0,p=0;return function(){var g=a(),m=n-(g-p);if(p=g,m>0){if(++u>=f)return arguments[0]}else u=0;return l.apply(void 0,arguments)}}o.exports=c},1306(o,f,n){var a=n(7321);function c(){this.__data__=new a,this.size=0}o.exports=c},3180(o){function f(n){var a=this.__data__,c=a.delete(n);return this.size=a.size,c}o.exports=f},5247(o){function f(n){return this.__data__.get(n)}o.exports=f},2835(o){function f(n){return this.__data__.has(n)}o.exports=f},9179(o,f,n){var a=n(7321),c=n(2565),l=n(111),u=200;function p(g,m){var v=this.__data__;if(v instanceof a){var w=v.__data__;if(!c||w.length<u-1)return w.push([g,m]),this.size=++v.size,this;v=this.__data__=new l(w)}return v.set(g,m),this.size=v.size,this}o.exports=p},4352(o,f,n){var a=n(3426),c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,u=a(function(p){var g=[];return p.charCodeAt(0)===46&&g.push(""),p.replace(c,function(m,v,w,x){g.push(w?x.replace(l,"$1"):v||m)}),g});o.exports=u},5155(o,f,n){var a=n(7964),c=1/0;function l(u){if(typeof u=="string"||a(u))return u;var p=u+"";return p=="0"&&1/u==-c?"-0":p}o.exports=l},8815(o){var f=Function.prototype,n=f.toString;function a(c){if(c!=null){try{return n.call(c)}catch{}try{return c+""}catch{}}return""}o.exports=a},5082(o){var f=/\s/;function n(a){for(var c=a.length;c--&&f.test(a.charAt(c)););return c}o.exports=n},8313(o,f,n){var a=n(6057),c=1,l=4;function u(p){return a(p,c|l)}o.exports=u},6148(o){function f(n){return function(){return n}}o.exports=f},671(o,f,n){var a=n(9323),c=n(5062),l=n(9480),u="Expected a function",p=Math.max,g=Math.min;function m(v,w,x){var P,$,N,H,D,q,oe=0,ve=!1,_=!1,Ce=!0;if(typeof v!="function")throw new TypeError(u);w=l(w)||0,a(x)&&(ve=!!x.leading,_="maxWait"in x,N=_?p(l(x.maxWait)||0,w):N,Ce="trailing"in x?!!x.trailing:Ce);function ye(J){var we=P,Ue=$;return P=$=void 0,oe=J,H=v.apply(Ue,we),H}function Oe(J){return oe=J,D=setTimeout(ce,w),ve?ye(J):H}function ae(J){var we=J-q,Ue=J-oe,st=w-we;return _?g(st,N-Ue):st}function pe(J){var we=J-q,Ue=J-oe;return q===void 0||we>=w||we<0||_&&Ue>=N}function ce(){var J=c();if(pe(J))return le(J);D=setTimeout(ce,ae(J))}function le(J){return D=void 0,Ce&&P?ye(J):(P=$=void 0,H)}function de(){D!==void 0&&clearTimeout(D),oe=0,P=q=$=D=void 0}function G(){return D===void 0?H:le(c())}function be(){var J=c(),we=pe(J);if(P=arguments,$=this,q=J,we){if(D===void 0)return Oe(q);if(_)return clearTimeout(D),D=setTimeout(ce,w),ye(q)}return D===void 0&&(D=setTimeout(ce,w)),H}return be.cancel=de,be.flush=G,be}o.exports=m},9506(o){function f(n,a){return n===a||n!==n&&a!==a}o.exports=f},2438(o,f,n){var a=n(3208);function c(l,u,p){var g=l==null?void 0:a(l,u);return g===void 0?p:g}o.exports=c},2146(o,f,n){var a=n(2780),c=n(5728);function l(u,p){return u!=null&&c(u,p,a)}o.exports=l},4846(o){function f(n){return n}o.exports=f},1750(o,f,n){var a=n(2960),c=n(2292),l=Object.prototype,u=l.hasOwnProperty,p=l.propertyIsEnumerable,g=a(function(){return arguments}())?a:function(m){return c(m)&&u.call(m,"callee")&&!p.call(m,"callee")};o.exports=g},2619(o){var f=Array.isArray;o.exports=f},644(o,f,n){var a=n(860),c=n(5300);function l(u){return u!=null&&c(u.length)&&!a(u)}o.exports=l},1891(o,f,n){var a=n(644),c=n(2292);function l(u){return c(u)&&a(u)}o.exports=l},3446(o,f,n){o=n.nmd(o);var a=n(907),c=n(9349),l=f&&!f.nodeType&&f,u=l&&!0&&o&&!o.nodeType&&o,p=u&&u.exports===l,g=p?a.Buffer:void 0,m=g?g.isBuffer:void 0,v=m||c;o.exports=v},860(o,f,n){var a=n(1490),c=n(9323),l="[object AsyncFunction]",u="[object Function]",p="[object GeneratorFunction]",g="[object Proxy]";function m(v){if(!c(v))return!1;var w=a(v);return w==u||w==p||w==l||w==g}o.exports=m},5300(o){var f=9007199254740991;function n(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=f}o.exports=n},7884(o,f,n){var a=n(9694),c=n(1155),l=n(1587),u=l&&l.isMap,p=u?c(u):a;o.exports=p},9323(o){function f(n){var a=typeof n;return n!=null&&(a=="object"||a=="function")}o.exports=f},2292(o){function f(n){return n!=null&&typeof n=="object"}o.exports=f},1281(o,f,n){var a=n(1490),c=n(553),l=n(2292),u="[object Object]",p=Function.prototype,g=Object.prototype,m=p.toString,v=g.hasOwnProperty,w=m.call(Object);function x(P){if(!l(P)||a(P)!=u)return!1;var $=c(P);if($===null)return!0;var N=v.call($,"constructor")&&$.constructor;return typeof N=="function"&&N instanceof N&&m.call(N)==w}o.exports=x},5070(o,f,n){var a=n(8172),c=n(1155),l=n(1587),u=l&&l.isSet,p=u?c(u):a;o.exports=p},7964(o,f,n){var a=n(1490),c=n(2292),l="[object Symbol]";function u(p){return typeof p=="symbol"||c(p)&&a(p)==l}o.exports=u},3133(o,f,n){var a=n(5283),c=n(1155),l=n(1587),u=l&&l.isTypedArray,p=u?c(u):a;o.exports=p},2096(o,f,n){var a=n(3737),c=n(2322),l=n(644);function u(p){return l(p)?a(p):c(p)}o.exports=u},7999(o,f,n){var a=n(3737),c=n(5045),l=n(644);function u(p){return l(p)?a(p,!0):c(p)}o.exports=u},8590(o,f,n){var a=n(111),c="Expected a function";function l(u,p){if(typeof u!="function"||p!=null&&typeof p!="function")throw new TypeError(c);var g=function(){var m=arguments,v=p?p.apply(this,m):m[0],w=g.cache;if(w.has(v))return w.get(v);var x=u.apply(this,m);return g.cache=w.set(v,x)||w,x};return g.cache=new(l.Cache||a),g}l.Cache=a,o.exports=l},8970(o,f,n){var a=n(3912),c=n(2917),l=c(function(u,p,g){a(u,p,g)});o.exports=l},5062(o,f,n){var a=n(907),c=function(){return a.Date.now()};o.exports=c},2154(o,f,n){var a=n(604);function c(l,u,p){return l==null?l:a(l,u,p)}o.exports=c},5615(o){function f(){return[]}o.exports=f},9349(o){function f(){return!1}o.exports=f},6712(o,f,n){var a=n(671),c=n(9323),l="Expected a function";function u(p,g,m){var v=!0,w=!0;if(typeof p!="function")throw new TypeError(l);return c(m)&&(v="leading"in m?!!m.leading:v,w="trailing"in m?!!m.trailing:w),a(p,g,{leading:v,maxWait:g,trailing:w})}o.exports=u},9480(o,f,n){var a=n(6),c=n(9323),l=n(7964),u=NaN,p=/^[-+]0x[0-9a-f]+$/i,g=/^0b[01]+$/i,m=/^0o[0-7]+$/i,v=parseInt;function w(x){if(typeof x=="number")return x;if(l(x))return u;if(c(x)){var P=typeof x.valueOf=="function"?x.valueOf():x;x=c(P)?P+"":P}if(typeof x!="string")return x===0?x:+x;x=a(x);var $=g.test(x);return $||m.test(x)?v(x.slice(2),$?2:8):p.test(x)?u:+x}o.exports=w},4514(o,f,n){var a=n(7145),c=n(7999);function l(u){return a(u,c(u))}o.exports=l},7164(o,f,n){var a=n(1978);function c(l){return l==null?"":a(l)}o.exports=c},162(o){o.exports=function(n,a,c,l){var u=c?c.call(l,n,a):void 0;if(u!==void 0)return!!u;if(n===a)return!0;if(typeof n!="object"||!n||typeof a!="object"||!a)return!1;var p=Object.keys(n),g=Object.keys(a);if(p.length!==g.length)return!1;for(var m=Object.prototype.hasOwnProperty.bind(a),v=0;v<p.length;v++){var w=p[v];if(!m(w))return!1;var x=n[w],P=a[w];if(u=c?c.call(l,x,P,w):void 0,u===!1||u===void 0&&x!==P)return!1}return!0}},4883(o){"use strict";o.exports=mr}};const qe={};function Y(o){const f=qe[o];if(f!==void 0)return f.exports;const n=qe[o]={id:o,loaded:!1,exports:{}};return wt[o](n,n.exports,Y),n.loaded=!0,n.exports}Y.n=o=>{const f=o&&o.__esModule?()=>o.default:()=>o;return Y.d(f,{a:f}),f},Y.cw=o=>{var f;return()=>{if(o){var n=o;o=0,f={exports:{}},n.call(f.exports,f,f.exports)}return f.exports}},Y.d=(o,f)=>{for(var n in f)Y.o(f,n)&&!Y.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:f[n]})},Y.o=(o,f)=>Object.hasOwn(o,f),Y.r=o=>{Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},Y.nmd=o=>(o.paths=[],o.children||(o.children=[]),o),(()=>{let o;globalThis.importScripts&&(o=globalThis.location+"");const f=globalThis.document;if(!o&&f&&(f.currentScript?.tagName.toUpperCase()==="SCRIPT"&&(o=f.currentScript.src),!o)){const n=f.getElementsByTagName("script");if(n.length){let a=n.length-1;for(;a>-1&&(!o||!/^https?:/.test(o));)o=n[a--].src}}if(!o)throw new Error("Automatic publicPath is not supported in this browser");o=o.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),Y.p=o})(),Y.nc=void 0;let kt={};return(()=>{"use strict";Y.r(kt),Y.d(kt,{CAppBridge:()=>is,Event:()=>le,LaunchMode:()=>ae,MicroAppManager:()=>pe,ScriptLoader:()=>Br,ScriptingObject:()=>Ue,SecurityContext:()=>a,StyleLoader:()=>Vr});var o=Y.cw(function(r,e){var t=n(),s={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},d={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},h={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},y={};y[t.ForwardRef]=d,y[t.Memo]=h;function S(M){return t.isMemo(M)?h:y[M.$$typeof]||s}var A=Object.defineProperty,E=Object.getOwnPropertyNames,O=Object.getOwnPropertySymbols,k=Object.getOwnPropertyDescriptor,L=Object.getPrototypeOf,F=Object.prototype;function U(M,X,W){if(typeof X!="string"){if(F){var ue=L(X);ue&&ue!==F&&U(M,ue,W)}var ee=E(X);O&&(ee=ee.concat(O(X)));for(var K=S(M),Ie=S(X),T=0;T<ee.length;++T){var fe=ee[T];if(!i[fe]&&!(W&&W[fe])&&!(Ie&&Ie[fe])&&!(K&&K[fe])){var Le=k(X,fe);try{A(M,fe,Le)}catch{}}}}return M}r.exports=U}),f=Y.cw(function(r,e){/** @license React v16.13.1
|
|
1
|
+
(function(wt,qe){typeof exports=="object"&&typeof module=="object"?module.exports=qe(require("React")):typeof define=="function"&&define.amd?define(["React"],qe):typeof exports=="object"?exports.ice=qe(require("React")):wt.ice=qe(wt.React)})(globalThis,vr=>(()=>{var wt={8054(o,f,n){var a=n(5592),c=n(907),l=a(c,"DataView");o.exports=l},3219(o,f,n){var a=n(2130),c=n(1924),l=n(4743),u=n(1755),p=n(5203);function g(m){var y=-1,w=m==null?0:m.length;for(this.clear();++y<w;){var x=m[y];this.set(x[0],x[1])}}g.prototype.clear=a,g.prototype.delete=c,g.prototype.get=l,g.prototype.has=u,g.prototype.set=p,o.exports=g},7321(o,f,n){var a=n(3044),c=n(4066),l=n(8461),u=n(4417),p=n(2777);function g(m){var y=-1,w=m==null?0:m.length;for(this.clear();++y<w;){var x=m[y];this.set(x[0],x[1])}}g.prototype.clear=a,g.prototype.delete=c,g.prototype.get=l,g.prototype.has=u,g.prototype.set=p,o.exports=g},2565(o,f,n){var a=n(5592),c=n(907),l=a(c,"Map");o.exports=l},111(o,f,n){var a=n(4614),c=n(9504),l=n(9251),u=n(5791),p=n(1511);function g(m){var y=-1,w=m==null?0:m.length;for(this.clear();++y<w;){var x=m[y];this.set(x[0],x[1])}}g.prototype.clear=a,g.prototype.delete=c,g.prototype.get=l,g.prototype.has=u,g.prototype.set=p,o.exports=g},8246(o,f,n){var a=n(5592),c=n(907),l=a(c,"Promise");o.exports=l},4099(o,f,n){var a=n(5592),c=n(907),l=a(c,"Set");o.exports=l},5963(o,f,n){var a=n(7321),c=n(1306),l=n(3180),u=n(5247),p=n(2835),g=n(9179);function m(y){var w=this.__data__=new a(y);this.size=w.size}m.prototype.clear=c,m.prototype.delete=l,m.prototype.get=u,m.prototype.has=p,m.prototype.set=g,o.exports=m},7759(o,f,n){var a=n(907),c=a.Symbol;o.exports=c},9386(o,f,n){var a=n(907),c=a.Uint8Array;o.exports=c},6221(o,f,n){var a=n(5592),c=n(907),l=a(c,"WeakMap");o.exports=l},6047(o){function f(n,a,c){switch(c.length){case 0:return n.call(a);case 1:return n.call(a,c[0]);case 2:return n.call(a,c[0],c[1]);case 3:return n.call(a,c[0],c[1],c[2])}return n.apply(a,c)}o.exports=f},6259(o){function f(n,a){for(var c=-1,l=n==null?0:n.length;++c<l&&a(n[c],c,n)!==!1;);return n}o.exports=f},1840(o){function f(n,a){for(var c=-1,l=n==null?0:n.length,u=0,p=[];++c<l;){var g=n[c];a(g,c,n)&&(p[u++]=g)}return p}o.exports=f},3737(o,f,n){var a=n(5562),c=n(1750),l=n(2619),u=n(3446),p=n(2159),g=n(3133),m=Object.prototype,y=m.hasOwnProperty;function w(x,P){var $=l(x),U=!$&&c(x),H=!$&&!U&&u(x),L=!$&&!U&&!H&&g(x),q=$||U||H||L,oe=q?a(x.length,String):[],ve=oe.length;for(var _ in x)(P||y.call(x,_))&&!(q&&(_=="length"||H&&(_=="offset"||_=="parent")||L&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||p(_,ve)))&&oe.push(_);return oe}o.exports=w},5862(o){function f(n,a){for(var c=-1,l=n==null?0:n.length,u=Array(l);++c<l;)u[c]=a(n[c],c,n);return u}o.exports=f},9130(o){function f(n,a){for(var c=-1,l=a.length,u=n.length;++c<l;)n[u+c]=a[c];return n}o.exports=f},8971(o,f,n){var a=n(3706),c=n(9506);function l(u,p,g){(g!==void 0&&!c(u[p],g)||g===void 0&&!(p in u))&&a(u,p,g)}o.exports=l},3853(o,f,n){var a=n(3706),c=n(9506),l=Object.prototype,u=l.hasOwnProperty;function p(g,m,y){var w=g[m];(!(u.call(g,m)&&c(w,y))||y===void 0&&!(m in g))&&a(g,m,y)}o.exports=p},7831(o,f,n){var a=n(9506);function c(l,u){for(var p=l.length;p--;)if(a(l[p][0],u))return p;return-1}o.exports=c},2183(o,f,n){var a=n(7145),c=n(2096);function l(u,p){return u&&a(p,c(p),u)}o.exports=l},4076(o,f,n){var a=n(7145),c=n(7999);function l(u,p){return u&&a(p,c(p),u)}o.exports=l},3706(o,f,n){var a=n(4665);function c(l,u,p){u=="__proto__"&&a?a(l,u,{configurable:!0,enumerable:!0,value:p,writable:!0}):l[u]=p}o.exports=c},6057(o,f,n){var a=n(5963),c=n(6259),l=n(3853),u=n(2183),p=n(4076),g=n(5196),m=n(3549),y=n(6573),w=n(9934),x=n(6280),P=n(6839),$=n(1663),U=n(143),H=n(7265),L=n(8879),q=n(2619),oe=n(3446),ve=n(7884),_=n(9323),Ce=n(5070),ye=n(2096),Oe=n(7999),ae=1,pe=2,ce=4,le="[object Arguments]",de="[object Array]",G="[object Boolean]",be="[object Date]",J="[object Error]",we="[object Function]",Ue="[object GeneratorFunction]",st="[object Map]",Bt="[object Number]",Vt="[object Object]",xt="[object RegExp]",ot="[object Set]",Gt="[object String]",Ht="[object Symbol]",Wt="[object WeakMap]",me="[object ArrayBuffer]",St="[object DataView]",yr="[object Float32Array]",br="[object Float64Array]",_t="[object Int8Array]",At="[object Int16Array]",et="[object Int32Array]",Et="[object Uint8Array]",wr="[object Uint8ClampedArray]",xr="[object Uint16Array]",Kt="[object Uint32Array]",ie={};ie[le]=ie[de]=ie[me]=ie[St]=ie[G]=ie[be]=ie[yr]=ie[br]=ie[_t]=ie[At]=ie[et]=ie[st]=ie[Bt]=ie[Vt]=ie[xt]=ie[ot]=ie[Gt]=ie[Ht]=ie[Et]=ie[wr]=ie[xr]=ie[Kt]=!0,ie[J]=ie[we]=ie[Wt]=!1;function tt(Q,Ke,Ge,Yt,it,He){var xe,pt=Ke&ae,Re=Ke&pe,Xt=Ke&ce;if(Ge&&(xe=it?Ge(Q,Yt,it,He):Ge(Q)),xe!==void 0)return xe;if(!_(Q))return Q;var De=q(Q);if(De){if(xe=U(Q),!pt)return m(Q,xe)}else{var Pe=$(Q),Ct=Pe==we||Pe==Ue;if(oe(Q))return g(Q,pt);if(Pe==Vt||Pe==le||Ct&&!it){if(xe=Re||Ct?{}:L(Q),!pt)return Re?w(Q,p(xe,Q)):y(Q,u(xe,Q))}else{if(!ie[Pe])return it?Q:{};xe=H(Q,Pe,pt)}}He||(He=new a);var Ot=He.get(Q);if(Ot)return Ot;He.set(Q,xe),Ce(Q)?Q.forEach(function(We){xe.add(tt(We,Ke,Ge,We,Q,He))}):ve(Q)&&Q.forEach(function(We,Ye){xe.set(Ye,tt(We,Ke,Ge,Ye,Q,He))});var Zt=Xt?Re?P:x:Re?Oe:ye,Tt=De?void 0:Zt(Q);return c(Tt||Q,function(We,Ye){Tt&&(Ye=We,We=Q[Ye]),l(xe,Ye,tt(We,Ke,Ge,Ye,Q,He))}),xe}o.exports=tt},8514(o,f,n){var a=n(9323),c=Object.create,l=function(){function u(){}return function(p){if(!a(p))return{};if(c)return c(p);u.prototype=p;var g=new u;return u.prototype=void 0,g}}();o.exports=l},5795(o,f,n){var a=n(3375),c=a();o.exports=c},3208(o,f,n){var a=n(2155),c=n(5155);function l(u,p){p=a(p,u);for(var g=0,m=p.length;u!=null&&g<m;)u=u[c(p[g++])];return g&&g==m?u:void 0}o.exports=l},1405(o,f,n){var a=n(9130),c=n(2619);function l(u,p,g){var m=p(u);return c(u)?m:a(m,g(u))}o.exports=l},1490(o,f,n){var a=n(7759),c=n(4817),l=n(7748),u="[object Null]",p="[object Undefined]",g=a?a.toStringTag:void 0;function m(y){return y==null?y===void 0?p:u:g&&g in Object(y)?c(y):l(y)}o.exports=m},2780(o){var f=Object.prototype,n=f.hasOwnProperty;function a(c,l){return c!=null&&n.call(c,l)}o.exports=a},2960(o,f,n){var a=n(1490),c=n(2292),l="[object Arguments]";function u(p){return c(p)&&a(p)==l}o.exports=u},9694(o,f,n){var a=n(1663),c=n(2292),l="[object Map]";function u(p){return c(p)&&a(p)==l}o.exports=u},4401(o,f,n){var a=n(860),c=n(2958),l=n(9323),u=n(8815),p=/[\\^$.*+?()[\]{}|]/g,g=/^\[object .+?Constructor\]$/,m=Function.prototype,y=Object.prototype,w=m.toString,x=y.hasOwnProperty,P=RegExp("^"+w.call(x).replace(p,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $(U){if(!l(U)||c(U))return!1;var H=a(U)?P:g;return H.test(u(U))}o.exports=$},8172(o,f,n){var a=n(1663),c=n(2292),l="[object Set]";function u(p){return c(p)&&a(p)==l}o.exports=u},5283(o,f,n){var a=n(1490),c=n(5300),l=n(2292),u="[object Arguments]",p="[object Array]",g="[object Boolean]",m="[object Date]",y="[object Error]",w="[object Function]",x="[object Map]",P="[object Number]",$="[object Object]",U="[object RegExp]",H="[object Set]",L="[object String]",q="[object WeakMap]",oe="[object ArrayBuffer]",ve="[object DataView]",_="[object Float32Array]",Ce="[object Float64Array]",ye="[object Int8Array]",Oe="[object Int16Array]",ae="[object Int32Array]",pe="[object Uint8Array]",ce="[object Uint8ClampedArray]",le="[object Uint16Array]",de="[object Uint32Array]",G={};G[_]=G[Ce]=G[ye]=G[Oe]=G[ae]=G[pe]=G[ce]=G[le]=G[de]=!0,G[u]=G[p]=G[oe]=G[g]=G[ve]=G[m]=G[y]=G[w]=G[x]=G[P]=G[$]=G[U]=G[H]=G[L]=G[q]=!1;function be(J){return l(J)&&c(J.length)&&!!G[a(J)]}o.exports=be},2322(o,f,n){var a=n(8861),c=n(9692),l=Object.prototype,u=l.hasOwnProperty;function p(g){if(!a(g))return c(g);var m=[];for(var y in Object(g))u.call(g,y)&&y!="constructor"&&m.push(y);return m}o.exports=p},5045(o,f,n){var a=n(9323),c=n(8861),l=n(1779),u=Object.prototype,p=u.hasOwnProperty;function g(m){if(!a(m))return l(m);var y=c(m),w=[];for(var x in m)x=="constructor"&&(y||!p.call(m,x))||w.push(x);return w}o.exports=g},3912(o,f,n){var a=n(5963),c=n(8971),l=n(5795),u=n(8342),p=n(9323),g=n(7999),m=n(5760);function y(w,x,P,$,U){w!==x&&l(x,function(H,L){if(U||(U=new a),p(H))u(w,x,L,P,y,$,U);else{var q=$?$(m(w,L),H,L+"",w,x,U):void 0;q===void 0&&(q=H),c(w,L,q)}},g)}o.exports=y},8342(o,f,n){var a=n(8971),c=n(5196),l=n(5979),u=n(3549),p=n(8879),g=n(1750),m=n(2619),y=n(1891),w=n(3446),x=n(860),P=n(9323),$=n(1281),U=n(3133),H=n(5760),L=n(4514);function q(oe,ve,_,Ce,ye,Oe,ae){var pe=H(oe,_),ce=H(ve,_),le=ae.get(ce);if(le){a(oe,_,le);return}var de=Oe?Oe(pe,ce,_+"",oe,ve,ae):void 0,G=de===void 0;if(G){var be=m(ce),J=!be&&w(ce),we=!be&&!J&&U(ce);de=ce,be||J||we?m(pe)?de=pe:y(pe)?de=u(pe):J?(G=!1,de=c(ce,!0)):we?(G=!1,de=l(ce,!0)):de=[]:$(ce)||g(ce)?(de=pe,g(pe)?de=L(pe):(!P(pe)||x(pe))&&(de=p(ce))):G=!1}G&&(ae.set(ce,de),ye(de,ce,Ce,Oe,ae),ae.delete(ce)),a(oe,_,de)}o.exports=q},6936(o,f,n){var a=n(4846),c=n(8619),l=n(9599);function u(p,g){return l(c(p,g,a),p+"")}o.exports=u},604(o,f,n){var a=n(3853),c=n(2155),l=n(2159),u=n(9323),p=n(5155);function g(m,y,w,x){if(!u(m))return m;y=c(y,m);for(var P=-1,$=y.length,U=$-1,H=m;H!=null&&++P<$;){var L=p(y[P]),q=w;if(L==="__proto__"||L==="constructor"||L==="prototype")return m;if(P!=U){var oe=H[L];q=x?x(oe,L,H):void 0,q===void 0&&(q=u(oe)?oe:l(y[P+1])?[]:{})}a(H,L,q),H=H[L]}return m}o.exports=g},7680(o,f,n){var a=n(6148),c=n(4665),l=n(4846),u=c?function(p,g){return c(p,"toString",{configurable:!0,enumerable:!1,value:a(g),writable:!0})}:l;o.exports=u},5562(o){function f(n,a){for(var c=-1,l=Array(n);++c<n;)l[c]=a(c);return l}o.exports=f},1978(o,f,n){var a=n(7759),c=n(5862),l=n(2619),u=n(7964),p=1/0,g=a?a.prototype:void 0,m=g?g.toString:void 0;function y(w){if(typeof w=="string")return w;if(l(w))return c(w,y)+"";if(u(w))return m?m.call(w):"";var x=w+"";return x=="0"&&1/w==-p?"-0":x}o.exports=y},6(o,f,n){var a=n(5082),c=/^\s+/;function l(u){return u&&u.slice(0,a(u)+1).replace(c,"")}o.exports=l},1155(o){function f(n){return function(a){return n(a)}}o.exports=f},2155(o,f,n){var a=n(2619),c=n(5304),l=n(4352),u=n(7164);function p(g,m){return a(g)?g:c(g,m)?[g]:l(u(g))}o.exports=p},2859(o,f,n){var a=n(9386);function c(l){var u=new l.constructor(l.byteLength);return new a(u).set(new a(l)),u}o.exports=c},5196(o,f,n){o=n.nmd(o);var a=n(907),c=f&&!f.nodeType&&f,l=c&&!0&&o&&!o.nodeType&&o,u=l&&l.exports===c,p=u?a.Buffer:void 0,g=p?p.allocUnsafe:void 0;function m(y,w){if(w)return y.slice();var x=y.length,P=g?g(x):new y.constructor(x);return y.copy(P),P}o.exports=m},7795(o,f,n){var a=n(2859);function c(l,u){var p=u?a(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.byteLength)}o.exports=c},6899(o){var f=/\w*$/;function n(a){var c=new a.constructor(a.source,f.exec(a));return c.lastIndex=a.lastIndex,c}o.exports=n},4518(o,f,n){var a=n(7759),c=a?a.prototype:void 0,l=c?c.valueOf:void 0;function u(p){return l?Object(l.call(p)):{}}o.exports=u},5979(o,f,n){var a=n(2859);function c(l,u){var p=u?a(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.length)}o.exports=c},3549(o){function f(n,a){var c=-1,l=n.length;for(a||(a=Array(l));++c<l;)a[c]=n[c];return a}o.exports=f},7145(o,f,n){var a=n(3853),c=n(3706);function l(u,p,g,m){var y=!g;g||(g={});for(var w=-1,x=p.length;++w<x;){var P=p[w],$=m?m(g[P],u[P],P,g,u):void 0;$===void 0&&($=u[P]),y?c(g,P,$):a(g,P,$)}return g}o.exports=l},6573(o,f,n){var a=n(7145),c=n(1454);function l(u,p){return a(u,c(u),p)}o.exports=l},9934(o,f,n){var a=n(7145),c=n(6649);function l(u,p){return a(u,c(u),p)}o.exports=l},3703(o,f,n){var a=n(907),c=a["__core-js_shared__"];o.exports=c},2917(o,f,n){var a=n(6936),c=n(9542);function l(u){return a(function(p,g){var m=-1,y=g.length,w=y>1?g[y-1]:void 0,x=y>2?g[2]:void 0;for(w=u.length>3&&typeof w=="function"?(y--,w):void 0,x&&c(g[0],g[1],x)&&(w=y<3?void 0:w,y=1),p=Object(p);++m<y;){var P=g[m];P&&u(p,P,m,w)}return p})}o.exports=l},3375(o){function f(n){return function(a,c,l){for(var u=-1,p=Object(a),g=l(a),m=g.length;m--;){var y=g[n?m:++u];if(c(p[y],y,p)===!1)break}return a}}o.exports=f},4665(o,f,n){var a=n(5592),c=function(){try{var l=a(Object,"defineProperty");return l({},"",{}),l}catch{}}();o.exports=c},6710(o){var f=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis;o.exports=f},6280(o,f,n){var a=n(1405),c=n(1454),l=n(2096);function u(p){return a(p,l,c)}o.exports=u},6839(o,f,n){var a=n(1405),c=n(6649),l=n(7999);function u(p){return a(p,l,c)}o.exports=u},9257(o,f,n){var a=n(7500);function c(l,u){var p=l.__data__;return a(u)?p[typeof u=="string"?"string":"hash"]:p.map}o.exports=c},5592(o,f,n){var a=n(4401),c=n(2490);function l(u,p){var g=c(u,p);return a(g)?g:void 0}o.exports=l},553(o,f,n){var a=n(7937),c=a(Object.getPrototypeOf,Object);o.exports=c},4817(o,f,n){var a=n(7759),c=Object.prototype,l=c.hasOwnProperty,u=c.toString,p=a?a.toStringTag:void 0;function g(m){var y=l.call(m,p),w=m[p];try{m[p]=void 0;var x=!0}catch{}var P=u.call(m);return x&&(y?m[p]=w:delete m[p]),P}o.exports=g},1454(o,f,n){var a=n(1840),c=n(5615),l=Object.prototype,u=l.propertyIsEnumerable,p=Object.getOwnPropertySymbols,g=p?function(m){return m==null?[]:(m=Object(m),a(p(m),function(y){return u.call(m,y)}))}:c;o.exports=g},6649(o,f,n){var a=n(9130),c=n(553),l=n(1454),u=n(5615),p=Object.getOwnPropertySymbols,g=p?function(m){for(var y=[];m;)a(y,l(m)),m=c(m);return y}:u;o.exports=g},1663(o,f,n){var a=n(8054),c=n(2565),l=n(8246),u=n(4099),p=n(6221),g=n(1490),m=n(8815),y="[object Map]",w="[object Object]",x="[object Promise]",P="[object Set]",$="[object WeakMap]",U="[object DataView]",H=m(a),L=m(c),q=m(l),oe=m(u),ve=m(p),_=g;(a&&_(new a(new ArrayBuffer(1)))!=U||c&&_(new c)!=y||l&&_(l.resolve())!=x||u&&_(new u)!=P||p&&_(new p)!=$)&&(_=function(Ce){var ye=g(Ce),Oe=ye==w?Ce.constructor:void 0,ae=Oe?m(Oe):"";if(ae)switch(ae){case H:return U;case L:return y;case q:return x;case oe:return P;case ve:return $}return ye}),o.exports=_},2490(o){function f(n,a){return n?.[a]}o.exports=f},5728(o,f,n){var a=n(2155),c=n(1750),l=n(2619),u=n(2159),p=n(5300),g=n(5155);function m(y,w,x){w=a(w,y);for(var P=-1,$=w.length,U=!1;++P<$;){var H=g(w[P]);if(!(U=y!=null&&x(y,H)))break;y=y[H]}return U||++P!=$?U:($=y==null?0:y.length,!!$&&p($)&&u(H,$)&&(l(y)||c(y)))}o.exports=m},2130(o,f,n){var a=n(9444);function c(){this.__data__=a?a(null):{},this.size=0}o.exports=c},1924(o){function f(n){var a=this.has(n)&&delete this.__data__[n];return this.size-=a?1:0,a}o.exports=f},4743(o,f,n){var a=n(9444),c="__lodash_hash_undefined__",l=Object.prototype,u=l.hasOwnProperty;function p(g){var m=this.__data__;if(a){var y=m[g];return y===c?void 0:y}return u.call(m,g)?m[g]:void 0}o.exports=p},1755(o,f,n){var a=n(9444),c=Object.prototype,l=c.hasOwnProperty;function u(p){var g=this.__data__;return a?g[p]!==void 0:l.call(g,p)}o.exports=u},5203(o,f,n){var a=n(9444),c="__lodash_hash_undefined__";function l(u,p){var g=this.__data__;return this.size+=this.has(u)?0:1,g[u]=a&&p===void 0?c:p,this}o.exports=l},143(o){var f=Object.prototype,n=f.hasOwnProperty;function a(c){var l=c.length,u=new c.constructor(l);return l&&typeof c[0]=="string"&&n.call(c,"index")&&(u.index=c.index,u.input=c.input),u}o.exports=a},7265(o,f,n){var a=n(2859),c=n(7795),l=n(6899),u=n(4518),p=n(5979),g="[object Boolean]",m="[object Date]",y="[object Map]",w="[object Number]",x="[object RegExp]",P="[object Set]",$="[object String]",U="[object Symbol]",H="[object ArrayBuffer]",L="[object DataView]",q="[object Float32Array]",oe="[object Float64Array]",ve="[object Int8Array]",_="[object Int16Array]",Ce="[object Int32Array]",ye="[object Uint8Array]",Oe="[object Uint8ClampedArray]",ae="[object Uint16Array]",pe="[object Uint32Array]";function ce(le,de,G){var be=le.constructor;switch(de){case H:return a(le);case g:case m:return new be(+le);case L:return c(le,G);case q:case oe:case ve:case _:case Ce:case ye:case Oe:case ae:case pe:return p(le,G);case y:return new be;case w:case $:return new be(le);case x:return l(le);case P:return new be;case U:return u(le)}}o.exports=ce},8879(o,f,n){var a=n(8514),c=n(553),l=n(8861);function u(p){return typeof p.constructor=="function"&&!l(p)?a(c(p)):{}}o.exports=u},2159(o){var f=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function a(c,l){var u=typeof c;return l=l??f,!!l&&(u=="number"||u!="symbol"&&n.test(c))&&c>-1&&c%1==0&&c<l}o.exports=a},9542(o,f,n){var a=n(9506),c=n(644),l=n(2159),u=n(9323);function p(g,m,y){if(!u(y))return!1;var w=typeof m;return(w=="number"?c(y)&&l(m,y.length):w=="string"&&m in y)?a(y[m],g):!1}o.exports=p},5304(o,f,n){var a=n(2619),c=n(7964),l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;function p(g,m){if(a(g))return!1;var y=typeof g;return y=="number"||y=="symbol"||y=="boolean"||g==null||c(g)?!0:u.test(g)||!l.test(g)||m!=null&&g in Object(m)}o.exports=p},7500(o){function f(n){var a=typeof n;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?n!=="__proto__":n===null}o.exports=f},2958(o,f,n){var a=n(3703),c=function(){var u=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}();function l(u){return!!c&&c in u}o.exports=l},8861(o){var f=Object.prototype;function n(a){var c=a&&a.constructor,l=typeof c=="function"&&c.prototype||f;return a===l}o.exports=n},3044(o){function f(){this.__data__=[],this.size=0}o.exports=f},4066(o,f,n){var a=n(7831),c=Array.prototype,l=c.splice;function u(p){var g=this.__data__,m=a(g,p);if(m<0)return!1;var y=g.length-1;return m==y?g.pop():l.call(g,m,1),--this.size,!0}o.exports=u},8461(o,f,n){var a=n(7831);function c(l){var u=this.__data__,p=a(u,l);return p<0?void 0:u[p][1]}o.exports=c},4417(o,f,n){var a=n(7831);function c(l){return a(this.__data__,l)>-1}o.exports=c},2777(o,f,n){var a=n(7831);function c(l,u){var p=this.__data__,g=a(p,l);return g<0?(++this.size,p.push([l,u])):p[g][1]=u,this}o.exports=c},4614(o,f,n){var a=n(3219),c=n(7321),l=n(2565);function u(){this.size=0,this.__data__={hash:new a,map:new(l||c),string:new a}}o.exports=u},9504(o,f,n){var a=n(9257);function c(l){var u=a(this,l).delete(l);return this.size-=u?1:0,u}o.exports=c},9251(o,f,n){var a=n(9257);function c(l){return a(this,l).get(l)}o.exports=c},5791(o,f,n){var a=n(9257);function c(l){return a(this,l).has(l)}o.exports=c},1511(o,f,n){var a=n(9257);function c(l,u){var p=a(this,l),g=p.size;return p.set(l,u),this.size+=p.size==g?0:1,this}o.exports=c},3426(o,f,n){var a=n(8590),c=500;function l(u){var p=a(u,function(m){return g.size===c&&g.clear(),m}),g=p.cache;return p}o.exports=l},9444(o,f,n){var a=n(5592),c=a(Object,"create");o.exports=c},9692(o,f,n){var a=n(7937),c=a(Object.keys,Object);o.exports=c},1779(o){function f(n){var a=[];if(n!=null)for(var c in Object(n))a.push(c);return a}o.exports=f},1587(o,f,n){o=n.nmd(o);var a=n(6710),c=f&&!f.nodeType&&f,l=c&&!0&&o&&!o.nodeType&&o,u=l&&l.exports===c,p=u&&a.process,g=function(){try{var m=l&&l.require&&l.require("util").types;return m||p&&p.binding&&p.binding("util")}catch{}}();o.exports=g},7748(o){var f=Object.prototype,n=f.toString;function a(c){return n.call(c)}o.exports=a},7937(o){function f(n,a){return function(c){return n(a(c))}}o.exports=f},8619(o,f,n){var a=n(6047),c=Math.max;function l(u,p,g){return p=c(p===void 0?u.length-1:p,0),function(){for(var m=arguments,y=-1,w=c(m.length-p,0),x=Array(w);++y<w;)x[y]=m[p+y];y=-1;for(var P=Array(p+1);++y<p;)P[y]=m[y];return P[p]=g(x),a(u,this,P)}}o.exports=l},907(o,f,n){var a=n(6710),c=typeof self=="object"&&self&&self.Object===Object&&self,l=a||c||Function("return this")();o.exports=l},5760(o){function f(n,a){if(!(a==="constructor"&&typeof n[a]=="function")&&a!="__proto__")return n[a]}o.exports=f},9599(o,f,n){var a=n(7680),c=n(6101),l=c(a);o.exports=l},6101(o){var f=800,n=16,a=Date.now;function c(l){var u=0,p=0;return function(){var g=a(),m=n-(g-p);if(p=g,m>0){if(++u>=f)return arguments[0]}else u=0;return l.apply(void 0,arguments)}}o.exports=c},1306(o,f,n){var a=n(7321);function c(){this.__data__=new a,this.size=0}o.exports=c},3180(o){function f(n){var a=this.__data__,c=a.delete(n);return this.size=a.size,c}o.exports=f},5247(o){function f(n){return this.__data__.get(n)}o.exports=f},2835(o){function f(n){return this.__data__.has(n)}o.exports=f},9179(o,f,n){var a=n(7321),c=n(2565),l=n(111),u=200;function p(g,m){var y=this.__data__;if(y instanceof a){var w=y.__data__;if(!c||w.length<u-1)return w.push([g,m]),this.size=++y.size,this;y=this.__data__=new l(w)}return y.set(g,m),this.size=y.size,this}o.exports=p},4352(o,f,n){var a=n(3426),c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,u=a(function(p){var g=[];return p.charCodeAt(0)===46&&g.push(""),p.replace(c,function(m,y,w,x){g.push(w?x.replace(l,"$1"):y||m)}),g});o.exports=u},5155(o,f,n){var a=n(7964),c=1/0;function l(u){if(typeof u=="string"||a(u))return u;var p=u+"";return p=="0"&&1/u==-c?"-0":p}o.exports=l},8815(o){var f=Function.prototype,n=f.toString;function a(c){if(c!=null){try{return n.call(c)}catch{}try{return c+""}catch{}}return""}o.exports=a},5082(o){var f=/\s/;function n(a){for(var c=a.length;c--&&f.test(a.charAt(c)););return c}o.exports=n},8313(o,f,n){var a=n(6057),c=1,l=4;function u(p){return a(p,c|l)}o.exports=u},6148(o){function f(n){return function(){return n}}o.exports=f},671(o,f,n){var a=n(9323),c=n(5062),l=n(9480),u="Expected a function",p=Math.max,g=Math.min;function m(y,w,x){var P,$,U,H,L,q,oe=0,ve=!1,_=!1,Ce=!0;if(typeof y!="function")throw new TypeError(u);w=l(w)||0,a(x)&&(ve=!!x.leading,_="maxWait"in x,U=_?p(l(x.maxWait)||0,w):U,Ce="trailing"in x?!!x.trailing:Ce);function ye(J){var we=P,Ue=$;return P=$=void 0,oe=J,H=y.apply(Ue,we),H}function Oe(J){return oe=J,L=setTimeout(ce,w),ve?ye(J):H}function ae(J){var we=J-q,Ue=J-oe,st=w-we;return _?g(st,U-Ue):st}function pe(J){var we=J-q,Ue=J-oe;return q===void 0||we>=w||we<0||_&&Ue>=U}function ce(){var J=c();if(pe(J))return le(J);L=setTimeout(ce,ae(J))}function le(J){return L=void 0,Ce&&P?ye(J):(P=$=void 0,H)}function de(){L!==void 0&&clearTimeout(L),oe=0,P=q=$=L=void 0}function G(){return L===void 0?H:le(c())}function be(){var J=c(),we=pe(J);if(P=arguments,$=this,q=J,we){if(L===void 0)return Oe(q);if(_)return clearTimeout(L),L=setTimeout(ce,w),ye(q)}return L===void 0&&(L=setTimeout(ce,w)),H}return be.cancel=de,be.flush=G,be}o.exports=m},9506(o){function f(n,a){return n===a||n!==n&&a!==a}o.exports=f},2438(o,f,n){var a=n(3208);function c(l,u,p){var g=l==null?void 0:a(l,u);return g===void 0?p:g}o.exports=c},2146(o,f,n){var a=n(2780),c=n(5728);function l(u,p){return u!=null&&c(u,p,a)}o.exports=l},4846(o){function f(n){return n}o.exports=f},1750(o,f,n){var a=n(2960),c=n(2292),l=Object.prototype,u=l.hasOwnProperty,p=l.propertyIsEnumerable,g=a(function(){return arguments}())?a:function(m){return c(m)&&u.call(m,"callee")&&!p.call(m,"callee")};o.exports=g},2619(o){var f=Array.isArray;o.exports=f},644(o,f,n){var a=n(860),c=n(5300);function l(u){return u!=null&&c(u.length)&&!a(u)}o.exports=l},1891(o,f,n){var a=n(644),c=n(2292);function l(u){return c(u)&&a(u)}o.exports=l},3446(o,f,n){o=n.nmd(o);var a=n(907),c=n(9349),l=f&&!f.nodeType&&f,u=l&&!0&&o&&!o.nodeType&&o,p=u&&u.exports===l,g=p?a.Buffer:void 0,m=g?g.isBuffer:void 0,y=m||c;o.exports=y},860(o,f,n){var a=n(1490),c=n(9323),l="[object AsyncFunction]",u="[object Function]",p="[object GeneratorFunction]",g="[object Proxy]";function m(y){if(!c(y))return!1;var w=a(y);return w==u||w==p||w==l||w==g}o.exports=m},5300(o){var f=9007199254740991;function n(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=f}o.exports=n},7884(o,f,n){var a=n(9694),c=n(1155),l=n(1587),u=l&&l.isMap,p=u?c(u):a;o.exports=p},9323(o){function f(n){var a=typeof n;return n!=null&&(a=="object"||a=="function")}o.exports=f},2292(o){function f(n){return n!=null&&typeof n=="object"}o.exports=f},1281(o,f,n){var a=n(1490),c=n(553),l=n(2292),u="[object Object]",p=Function.prototype,g=Object.prototype,m=p.toString,y=g.hasOwnProperty,w=m.call(Object);function x(P){if(!l(P)||a(P)!=u)return!1;var $=c(P);if($===null)return!0;var U=y.call($,"constructor")&&$.constructor;return typeof U=="function"&&U instanceof U&&m.call(U)==w}o.exports=x},5070(o,f,n){var a=n(8172),c=n(1155),l=n(1587),u=l&&l.isSet,p=u?c(u):a;o.exports=p},7964(o,f,n){var a=n(1490),c=n(2292),l="[object Symbol]";function u(p){return typeof p=="symbol"||c(p)&&a(p)==l}o.exports=u},3133(o,f,n){var a=n(5283),c=n(1155),l=n(1587),u=l&&l.isTypedArray,p=u?c(u):a;o.exports=p},2096(o,f,n){var a=n(3737),c=n(2322),l=n(644);function u(p){return l(p)?a(p):c(p)}o.exports=u},7999(o,f,n){var a=n(3737),c=n(5045),l=n(644);function u(p){return l(p)?a(p,!0):c(p)}o.exports=u},8590(o,f,n){var a=n(111),c="Expected a function";function l(u,p){if(typeof u!="function"||p!=null&&typeof p!="function")throw new TypeError(c);var g=function(){var m=arguments,y=p?p.apply(this,m):m[0],w=g.cache;if(w.has(y))return w.get(y);var x=u.apply(this,m);return g.cache=w.set(y,x)||w,x};return g.cache=new(l.Cache||a),g}l.Cache=a,o.exports=l},8970(o,f,n){var a=n(3912),c=n(2917),l=c(function(u,p,g){a(u,p,g)});o.exports=l},5062(o,f,n){var a=n(907),c=function(){return a.Date.now()};o.exports=c},2154(o,f,n){var a=n(604);function c(l,u,p){return l==null?l:a(l,u,p)}o.exports=c},5615(o){function f(){return[]}o.exports=f},9349(o){function f(){return!1}o.exports=f},6712(o,f,n){var a=n(671),c=n(9323),l="Expected a function";function u(p,g,m){var y=!0,w=!0;if(typeof p!="function")throw new TypeError(l);return c(m)&&(y="leading"in m?!!m.leading:y,w="trailing"in m?!!m.trailing:w),a(p,g,{leading:y,maxWait:g,trailing:w})}o.exports=u},9480(o,f,n){var a=n(6),c=n(9323),l=n(7964),u=NaN,p=/^[-+]0x[0-9a-f]+$/i,g=/^0b[01]+$/i,m=/^0o[0-7]+$/i,y=parseInt;function w(x){if(typeof x=="number")return x;if(l(x))return u;if(c(x)){var P=typeof x.valueOf=="function"?x.valueOf():x;x=c(P)?P+"":P}if(typeof x!="string")return x===0?x:+x;x=a(x);var $=g.test(x);return $||m.test(x)?y(x.slice(2),$?2:8):p.test(x)?u:+x}o.exports=w},4514(o,f,n){var a=n(7145),c=n(7999);function l(u){return a(u,c(u))}o.exports=l},7164(o,f,n){var a=n(1978);function c(l){return l==null?"":a(l)}o.exports=c},162(o){o.exports=function(n,a,c,l){var u=c?c.call(l,n,a):void 0;if(u!==void 0)return!!u;if(n===a)return!0;if(typeof n!="object"||!n||typeof a!="object"||!a)return!1;var p=Object.keys(n),g=Object.keys(a);if(p.length!==g.length)return!1;for(var m=Object.prototype.hasOwnProperty.bind(a),y=0;y<p.length;y++){var w=p[y];if(!m(w))return!1;var x=n[w],P=a[w];if(u=c?c.call(l,x,P,w):void 0,u===!1||u===void 0&&x!==P)return!1}return!0}},4883(o){"use strict";o.exports=vr}};const qe={};function Y(o){const f=qe[o];if(f!==void 0)return f.exports;const n=qe[o]={id:o,loaded:!1,exports:{}};return wt[o](n,n.exports,Y),n.loaded=!0,n.exports}Y.n=o=>{const f=o&&o.__esModule?()=>o.default:()=>o;return Y.d(f,{a:f}),f},Y.cw=o=>{var f;return()=>{if(o){var n=o;o=0,f={exports:{}},n.call(f.exports,f,f.exports)}return f.exports}},Y.d=(o,f)=>{for(var n in f)Y.o(f,n)&&!Y.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:f[n]})},Y.o=(o,f)=>Object.hasOwn(o,f),Y.r=o=>{Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},Y.nmd=o=>(o.paths=[],o.children||(o.children=[]),o),(()=>{let o;globalThis.importScripts&&(o=globalThis.location+"");const f=globalThis.document;if(!o&&f&&(f.currentScript?.tagName.toUpperCase()==="SCRIPT"&&(o=f.currentScript.src),!o)){const n=f.getElementsByTagName("script");if(n.length){let a=n.length-1;for(;a>-1&&(!o||!/^https?:/.test(o));)o=n[a--].src}}if(!o)throw new Error("Automatic publicPath is not supported in this browser");o=o.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),Y.p=o})(),Y.nc=void 0;let zt={};return(()=>{"use strict";Y.r(zt),Y.d(zt,{CAppBridge:()=>as,Event:()=>le,LaunchMode:()=>ae,MicroAppManager:()=>pe,ScriptLoader:()=>Vr,ScriptingObject:()=>Ue,SecurityContext:()=>a,StyleLoader:()=>Gr});var o=Y.cw(function(r,e){var t=n(),s={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},d={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},h={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},v={};v[t.ForwardRef]=d,v[t.Memo]=h;function S(M){return t.isMemo(M)?h:v[M.$$typeof]||s}var A=Object.defineProperty,E=Object.getOwnPropertyNames,O=Object.getOwnPropertySymbols,k=Object.getOwnPropertyDescriptor,N=Object.getPrototypeOf,F=Object.prototype;function D(M,X,W){if(typeof X!="string"){if(F){var ue=N(X);ue&&ue!==F&&D(M,ue,W)}var ee=E(X);O&&(ee=ee.concat(O(X)));for(var K=S(M),Ie=S(X),T=0;T<ee.length;++T){var fe=ee[T];if(!i[fe]&&!(W&&W[fe])&&!(Ie&&Ie[fe])&&!(K&&K[fe])){var Le=k(X,fe);try{A(M,fe,Le)}catch{}}}}return M}r.exports=D}),f=Y.cw(function(r,e){/** @license React v16.13.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/var t=typeof Symbol=="function"&&Symbol.for,s=t?Symbol.for("react.element"):60103,i=t?Symbol.for("react.portal"):60106,d=t?Symbol.for("react.fragment"):60107,h=t?Symbol.for("react.strict_mode"):60108,y=t?Symbol.for("react.profiler"):60114,S=t?Symbol.for("react.provider"):60109,A=t?Symbol.for("react.context"):60110,E=t?Symbol.for("react.async_mode"):60111,O=t?Symbol.for("react.concurrent_mode"):60111,k=t?Symbol.for("react.forward_ref"):60112,L=t?Symbol.for("react.suspense"):60113,F=t?Symbol.for("react.suspense_list"):60120,U=t?Symbol.for("react.memo"):60115,M=t?Symbol.for("react.lazy"):60116,X=t?Symbol.for("react.block"):60121,W=t?Symbol.for("react.fundamental"):60117,ue=t?Symbol.for("react.responder"):60118,ee=t?Symbol.for("react.scope"):60119;function K(T){if(typeof T=="object"&&T!==null){var fe=T.$$typeof;switch(fe){case s:switch(T=T.type,T){case E:case O:case d:case y:case h:case L:return T;default:switch(T=T&&T.$$typeof,T){case A:case k:case M:case U:case S:return T;default:return fe}}case i:return fe}}}function Ie(T){return K(T)===O}e.AsyncMode=E,e.ConcurrentMode=O,e.ContextConsumer=A,e.ContextProvider=S,e.Element=s,e.ForwardRef=k,e.Fragment=d,e.Lazy=M,e.Memo=U,e.Portal=i,e.Profiler=y,e.StrictMode=h,e.Suspense=L,e.isAsyncMode=function(T){return Ie(T)||K(T)===E},e.isConcurrentMode=Ie,e.isContextConsumer=function(T){return K(T)===A},e.isContextProvider=function(T){return K(T)===S},e.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===s},e.isForwardRef=function(T){return K(T)===k},e.isFragment=function(T){return K(T)===d},e.isLazy=function(T){return K(T)===M},e.isMemo=function(T){return K(T)===U},e.isPortal=function(T){return K(T)===i},e.isProfiler=function(T){return K(T)===y},e.isStrictMode=function(T){return K(T)===h},e.isSuspense=function(T){return K(T)===L},e.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===d||T===O||T===y||T===h||T===L||T===F||typeof T=="object"&&T!==null&&(T.$$typeof===M||T.$$typeof===U||T.$$typeof===S||T.$$typeof===A||T.$$typeof===k||T.$$typeof===W||T.$$typeof===ue||T.$$typeof===ee||T.$$typeof===X)},e.typeOf=K}),n=Y.cw(function(r,e){r.exports=f()}),a=(r=>(r.USER="USER",r.PARTNER="PARTNER",r))(a||{}),c=Y(8313),l=Y.n(c),u=Y(2438),p=Y.n(u),g=Y(2154),m=Y.n(g),v=Y(2146),w=Y.n(v),x=Y(8970),P=Y.n(x);const $=JSON.parse('{"appId":"microfe","activeEnv":"localhost","googleTagManager":true,"sessionTimeoutWarnInterval":"7200000","sessionTimeoutInterval":"9000000","microFrontendApps":{"loanapp":{"name":"Loan","hostUrl":"./loan","development":{"files":["index.js"]},"production":{"files":["index.js"]}},"taskapp":{"name":"Task","hostUrl":"./task","mode":"development","development":{"files":["index.dev.js"]},"production":{"files":["index.js"]}},"travelhub":{"name":"TravelHub","hostUrl":"./travelhub","development":{"files":["app.js","landing.js","app.css","landing.css"]},"production":{"files":["app.js","landing.js","app.css","landing.css"]}},"flights":{"name":"Flights","hostUrl":"./flights","development":{"files":["app.js","app.css"]},"production":{"files":["app.js","app.css"]}},"hotels":{"name":"Hotels","hostUrl":"./hotels","development":{"files":["app.js","app.css"]},"production":{"files":["app.js","app.css"]}},"ssfapp":{"name":"SSF App","hostUrl":"./ssf-app","microappManager":"ssf"}},"serviceEndpoints":{"api":"","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"},"env":{"localhost":{"serviceEndpoints":{"api":"","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"dev":{"serviceEndpoints":{"api":"https://dev.api.puiservice.rd.elliemae.io","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"dev2":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa":{"serviceEndpoints":{"api":"https://dev.api.puiservice.rd.elliemae.io","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa2":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa3":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"int":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-osb1":{"serviceEndpoints":{"api":"https://encompass-peg-api.elliemae.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-osb2":{"serviceEndpoints":{"api":"https://encompass-peg2-api.elliemae.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg":{"serviceEndpoints":{"api":"https://peg2-west.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-oapi-west":{"serviceEndpoints":{"api":"https://peg2-west.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-oapi-east":{"serviceEndpoints":{"api":"https://peg2-east.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg2-oapi-east":{"serviceEndpoints":{"api":"https://peg2-east.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg3":{"serviceEndpoints":{"api":"https://pel1.api.ellielabs.com","idp":"https://peg3.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"stage":{"serviceEndpoints":{"api":"https://stg.api.elliemae.com","idp":"https://stg.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"beta":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"demo":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"epc":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"prod":{"serviceEndpoints":{"api":"https://api.elliemae.com","idp":"https://idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}}}}'),N=r=>r.replace(/([^:]\/)\/+/g,"$1"),H=r=>{const e=document.createElement("a");return e.href=r,e.href},D=r=>r?.replace?.(/\/?$/,"/"),q=(r,e)=>`${r.replace(/\/+$/,"")}/${e.replace(/^\/+/,"")}`,oe=r=>/^(\/|https?:\/\/)/.test(r),ve=(r,e)=>{const t=D(e);if(oe(t)){const{origin:s}=new URL(r,window.location.href);return N(new URL(t,s).href)}return N(new URL(t,D(r)).href)},_=(r,e)=>N(new URL("manifest.json",ve(r,e)).href),Ce=()=>window.navigator.userAgent.includes("jsdom"),ye=r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Oe=r=>{try{if(new URL(r,window.location.href).origin===window.location.origin)return r;const t=window.location.hostname==="localhost"?"latest":window.emui?.version?.match(/^(\d+\.\d+)/)?.[1]??"latest";return`${window.location.origin}/${t}/frame.html`}catch{return r}};var ae=(r=>(r.DEVELOPMENT="development",r.PRODUCTION="production",r))(ae||{}),pe=(r=>(r.SSF="ssf",r.APPSDK="appsdk",r))(pe||{});class ce{#e=$;#t;#r;constructor(e){this.#t=e?.version||"latest",this.#r=D(e?.baseUrl||"")}#i=e=>{const{activeEnv:t,env:s,...i}=e,d=s[t]||{};this.#e=P()({},i,d)};get=(e="",t=null)=>l()(p()(this.#e,e,t));set=(e,t)=>{m()(this.#e,e,t)};has=(e="")=>w()(this.#e,e);setPreloadedConfig=e=>{this.#e=e};#n=()=>{if(!/(?:\/)(\d+\.\d+|latest)(?:\/?)?$/.test(this.#r)){const t=this.#t.match(/^(?:\d+\.\d+)*/g);return D(`${this.#r}${t?.[0]||"latest"}`)}return this.#r};#o=()=>{const e=this.#n();return D(e.replace(/(\/)(\d+\.\d+|latest)\/?$/,"$1latest/"))};load=async e=>{const t=e??`${this.#n()}app.config.json`,s=`${this.#o()}app.config.json`,i=h=>!e&&h!==s;let d;try{d=await fetch(t)}catch(h){if(i(t)){await this.load(s);return}throw new Error("Failed to fetch app config",{cause:h})}if(d.ok)try{const h=await d.json();this.#i(h)}catch(h){if(i(t)){await this.load(s);return}throw new Error("Failed to parse app config",{cause:h})}else if(i(t))await this.load(s);else throw new Error("Failed to load app config")}}class le{name;objectId;id;constructor(e){const{name:t,objectId:s}=e;if(!t)throw new Error("Event name is required");if(!s)throw new Error("Scripting object id is required");this.objectId=s,this.name=t,this.id=`${this.objectId}.${this.name}`.toLowerCase()}}class de{static[Symbol.hasInstance](e){return typeof e=="object"&&e!==null&&"getType"in e&&typeof e.getType=="function"&&e.getType()==="ProxyEvent"}#e;objectId;name;id;getType(){return"ProxyEvent"}constructor(e){const{name:t,objectId:s,eventSrc:i}=e;if(!t)throw new Error("Event name is required");if(!s)throw new Error("Scripting object id is required");if(!i)throw new Error("Event source is required");this.objectId=s,this.name=t,this.#e=i,this.id=`${this.objectId}.${this.name}`.toLowerCase()}subscribe=e=>this.#e.subscribe({eventId:this.id,callback:e});unsubscribe=e=>{this.#e.unsubscribe({eventId:this.id,token:e})}}const G=r=>r instanceof le,be=(r,e)=>`${r.toLowerCase()}.${e.toLowerCase()}`,J="function",we=(r,e)=>typeof r===J&&!!e&&!e.startsWith("_");class Ue{#e;#t="Object";constructor(e,t){this.#e=e,this.#t=t||this.#t}get id(){return this.#e}get objectType(){return this.#t}_toJSON=()=>{const e=[],t=[];return Object.keys(this).forEach(s=>{const i=this[s];G(i)?t.push(s):we(i,s)&&e.push(s)}),{objectId:this.#e,objectType:this.#t,functions:e,events:t}};_dispose=()=>{};dispose=()=>{}}var st=Y(6712),zt=Y.n(st);const xt={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let ot;const Vt=new Uint8Array(16);function Gt(){if(!ot&&(ot=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ot))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ot(Vt)}var Ht;const me=[];for(let r=0;r<256;++r)me.push((r+256).toString(16).slice(1));function St(r,e=0){return me[r[e+0]]+me[r[e+1]]+me[r[e+2]]+me[r[e+3]]+"-"+me[r[e+4]]+me[r[e+5]]+"-"+me[r[e+6]]+me[r[e+7]]+"-"+me[r[e+8]]+me[r[e+9]]+"-"+me[r[e+10]]+me[r[e+11]]+me[r[e+12]]+me[r[e+13]]+me[r[e+14]]+me[r[e+15]]}function vr(r,e=0){const t=St(r,e);if(!Ht(t))throw TypeError("Stringified UUID is invalid");return t}const yr=null;function Wt(r,e,t){if(xt.randomUUID&&!e&&!r)return xt.randomUUID();r=r||{};const s=r.random||(r.rng||Gt)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,e){t=t||0;for(let i=0;i<16;++i)e[t+i]=s[i];return e}return St(s)}const At=Wt;var et=(r=>(r.Analytics="analytics",r.Application="application",r.Auth="auth",r.Form="form",r.Global="global",r.Http="http",r.Loan="loan",r.LoanV2="loanV2",r.MemStorage="memstorage",r.Module="module",r.Service="service",r.Session="session",r.Styling="styling",r.Transaction="transaction",r.TransactionTemplate="transactiontemplate",r.WebSocket="websocket",r))(et||{});const Et="module";var br=null,wr=null;class _t{#e=e=>e.trim().toLowerCase();#t=new Map;#r=new Map;#i=e=>{const{so:t,guestId:s,onDuplicate:i="throw",securityContext:d}=e,h=this.#e(t.id),y={so:t,guestId:s,securityContext:d},S=this.#r.get(s);if(!S){this.#r.set(s,new Map([[h,y]]));return}if(S.has(h)){if(i==="ignore")return;throw new Error(`Scripting Object ${t.id} already exists for guest ${s}`)}S.set(h,y)};#n=({so:e})=>{if(e._dispose&&typeof e._dispose=="function")try{e._dispose()}catch{}};#o=({objectId:e,guestId:t})=>{if(e===Et&&!t)for(const[,i]of this.#r){const d=i.get(e);if(d)return d}const s=t?this.#r.get(t):null;return s?s.get(e)??null:null};#s=({objectId:e,guestId:t}={})=>{if(t){if(!e){const i=this.#r.get(t);i&&i.forEach(this.#n),this.#r.delete(t);return}const s=this.#r.get(t);if(s){const i=s.get(e);i&&this.#n(i),s.delete(e)}}else e&&this.#r.forEach(s=>{const i=s.get(e);i&&this.#n(i),s.delete(e)})};addScriptingObject=(e,t)=>{const{guestId:s,onDuplicate:i="throw",securityContext:d}=t||{};if(!e?.id||!e?._toJSON)throw new Error("Object is not derived from ScriptingObject");const h=this.#e(e.id);if(h===Et&&!s)throw new Error("Guest id is required to add Module scripting object");if(s){this.#i({so:e,...t,guestId:s,onDuplicate:i});return}if(this.#t.has(h)){if(i==="ignore")return;throw new Error(`Scripting Object ${e.id} already exists`)}this.#t.set(h,{so:e,guestId:s,securityContext:d})};getObject=(e,t)=>{const s=this.#e(e);let i=this.#o({objectId:s,guestId:t?.id});i=i??this.#t.get(s)??null;const{so:d}=i||{};return d||null};has=(e,t)=>this.getObject(e,t)!==null;listScriptingObjects=e=>{const t=new Set(this.#t.keys()),s=this.#r.get(e);if(s)for(const i of s.keys())t.add(i);return Array.from(t)};removeScriptingObject=(e,t)=>{const s=this.#e(e);if(t)this.#s({objectId:s,guestId:t});else{this.#s({objectId:s});const i=this.#t.get(s);i&&this.#n(i),this.#t.delete(s)}};removeAllScriptingObjects=e=>{e?this.#s({guestId:e}):(this.#t.forEach(this.#n),this.#t.clear())}}class ie{__TYPE__="Proxy";id;objectType;constructor(e,t){this.id=e,this.objectType=t}}const tt=r=>r?.constructor?.name==="Proxy"||r?.constructor?.name==="ScriptingObjectProxy"||r?.__TYPE__==="Proxy";class Q{#e=new Map;#t=new WeakMap;#r;constructor(e){this.#r=e}#i=(e,t)=>{const s=new Promise(i=>{setTimeout(()=>{i()},t)});return Promise.race([e,s])};#n=(e,t)=>{const s=t?.guestId;return!s||!e.guestId?!0:e.guestId===s};#o=e=>{const{eventName:t,scriptingObject:s,eventParams:i,listeners:d,eventOptions:h}=e;d.forEach(y=>{this.#n(y,h)&&(y.criteria&&!(i&&this.#c(i,y.criteria))||Promise.resolve(y.callback({obj:s,eventName:t,eventParams:i})).catch(S=>{this.#r?.warn(`Error in event listener for "${t}": ${S.message}`)}))})};#s=async({eventId:e,eventName:t,scriptingObject:s,eventParams:i,feedbackWaitTime:d,eventOptions:h})=>{const S=(this.#e.get(e)||[]).map(E=>!this.#n(E,h)||E.criteria&&!(i?this.#c(i,E.criteria):!1)?Promise.resolve():this.#i(E.callback({obj:s,eventName:t,eventParams:i}),d));return(await Promise.all(S)).flat(1/0).filter(E=>E!==void 0)};#c(e,t){return Object.entries(t).every(([s,i])=>{const d=e[s];if("eq"in i)return d===i.eq;if("in"in i)return Array.isArray(i.in)&&i.in.includes(d);if("includes"in i)return Array.isArray(d)&&d.includes(i.includes);if("gt"in i){const h=typeof d=="number"?d:Number(d);return!Number.isNaN(h)&&h>i.gt}if("lt"in i){const h=typeof d=="number"?d:Number(d);return!Number.isNaN(h)&&h<i.lt}if("regex"in i){let h=this.#t.get(i);if(h===void 0){try{h=new RegExp(i.regex)}catch{h=null}this.#t.set(i,h)}return h!==null&&typeof d=="string"&&h.test(d)}return!1})}dispatchEvent=async(e,t)=>{const{event:{id:s,name:i},eventParams:d,eventOptions:h}=t,{timeout:y}=h??{};if(!s)throw new Error("Event Id is required");const S=this.#e.get(s)||[];return!y||y<=0?(this.#o({eventName:i,scriptingObject:e,eventParams:d,listeners:S,eventOptions:h}),Promise.resolve()):this.#s({eventId:s,eventName:i,scriptingObject:e,eventParams:d,feedbackWaitTime:y,eventOptions:h})};subscribe=e=>{const{eventId:t,callback:s,criteria:i,guestId:d}=e;if(!t)throw new Error("eventId is required");if(!s)throw new Error("Callback is required");const h=this.#e.get(t)||[],y=At();return h.push({token:y,criteria:i,guestId:d,callback:s}),this.#e.set(t,h),y};unsubscribe=e=>{const{eventId:t,token:s}=e;if(!t)throw new Error("eventId id is required");if(s){const i=this.#e.get(t)||[],d=i.findIndex(h=>h.token===s);d>-1&&(i.splice(d,1),this.#e.set(t,i))}else this.#e.delete(t)};unsubscribeAll=()=>{this.#e.clear()};unsubscribeByGuestId=e=>{e&&this.#e.forEach((t,s)=>{const i=t.filter(d=>d.guestId!==e);i.length===0?this.#e.delete(s):i.length!==t.length&&this.#e.set(s,i)})}}const Ke=Y.p+"4cbbcfa9ded96b660559.html?resource",Ge="pui-app-container-",Kt=r=>{const e=r.src??Ke.default??Ke,t=Oe(e);if(!r.queryParams)return t;const s=r.queryParams.replace(/[^a-zA-Z0-9&=_.~%+-]/g,"");return`${t}${t.includes("?")?"&":"?"}${s}`},it=({documentEle:r,hostUrl:e,manifestPath:t,guestId:s})=>{const i=r.getElementById(Ge);i&&(i.id=`${i.id}${s}`);const d=ve(e,t);let h=r.getElementsByTagName("base")?.[0];if(h){h.href=d;return}h=r.createElement("base"),h.href=d,r.getElementsByTagName("head")[0].appendChild(h)},He=({id:r,instanceId:e,manifestPath:t,hostUrl:s,options:i})=>new Promise((d,h)=>{const{signal:y}=i;if(y?.aborted){h(new DOMException("iframe creation aborted","AbortError"));return}const S=document.createElement("div");S.setAttribute("style","display: flex;width: 100%;height: 100%;flex-direction: column;overflow: hidden;");const A=document.createElement("iframe");A.setAttribute("id",e),A.setAttribute("data-testid",r),A.setAttribute("title",i.title),A.setAttribute("allowfullscreen","true"),A.setAttribute("allowtransparency","true"),i.permissionPolicy&&A.setAttribute("allow",i.permissionPolicy),i.sandbox&&A.setAttribute("sandbox",i.sandbox),A.setAttribute("style",i.style??"flex-grow: 1;border: none;margin: 0;padding: 0;display: block;min-width: 100%;height: 100%;"),A.setAttribute("src",Kt(i));const E=1e4;let O=!1,k,L;const F=()=>{clearTimeout(k),y?.removeEventListener("abort",L)},U=()=>y?.aborted?(O||(O=!0,F(),S.remove(),h(new DOMException("iframe creation aborted","AbortError"))),!0):!1;if(L=()=>{U()},U())return;y?.addEventListener("abort",L),k=setTimeout(()=>{O||(O=!0,F(),S.remove(),h(new Error(`iframe for ${r} failed to load within ${E}ms`)))},E),A.addEventListener("error",()=>{O||(O=!0,F(),S.remove(),h(new Error(`iframe for ${r} failed to load`)))}),A.addEventListener("load",()=>{O||U()||A.contentDocument&&(O=!0,F(),it({documentEle:A.contentDocument,hostUrl:s,manifestPath:t,guestId:r}),d(A))}),S.appendChild(A);const{containerId:M}=i;(document.getElementById(M??"")??document.body).appendChild(S)}),xe=r=>document.getElementById(r),Fe={create:He,remove:r=>{const e=xe(r);e&&e.parentElement?.remove()},get:xe},Yt=()=>({breakpoints:["512px","768px","1024px","350px"],spaces:["0","4px","8px","12px","16px","32px","48px","56px","64px","72px"],fontSizes:["0.8461rem","0.9230rem","1rem","1.0769rem","1.2307rem","1.3846rem","1.8461rem","2.7692rem"],fontWeights:[100,200,300,400,500,600,700,800,900],lineHeights:["1rem","1.15rem","1.25rem","1.5rem"],letterSpacings:["normal","0.1rem","-0.05rem","0.25rem"],fonts:["proxima-nova, Arial, sans-serif"],colors:{neutral:["#FFFFFF","#F6F7F9","#EBEDF0","#E0E3E8","#CBCFD7","#B0B9C8","#8C93A6","#697489","#464F5C","#353C46","#25292F"],brand:["#F6FBFF","#EBF6FF","#A3D6FF","#52A6EC","#1394E5","#1E79C2","#006AA9","#005181","#C9E7FF"],success:["#E1F4ED","#E1F4ED","#289F6B","#207E56","#185D44"],warning:["#FFEFD8","#E06C29","#B25119","#853C12"],danger:["#FBEBED","#FBEBED","#ED5A64","#C64252","#A11B2B"]},shadows:["0 1px 5px 0 rgba(0, 0, 0, 0.13), 0 2px 4px 0 rgba(0, 0, 0, 0.2)","0 6px 20px 0 rgba(0, 0, 0, 0.24), 0 8px 17px 0 rgba(0, 0, 0, 0.19)","0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19)","0 16px 28px 0 rgba(0, 0, 0, 0.24), 0 25px 55px 0 rgba(0, 0, 0, 0.19)","0 27px 24px 0 rgba(0, 0, 0, 0.24), 0 40px 77px 0 rgba(0, 0, 0, 0.19)"],zIndex:[1e3,2e3,3e3,500,4e3],states:[null,"@media (prefers-reduced-motion: no-preference)","@media (prefers-reduced-motion: reduce)","&:first-child","&:last-child","&:odd","&:even","&:visited","&:checked","&:focus-within","&:hover","&:focus","&:focus-visible","&:active","&:disabled, &[aria-disabled=true]","&::placeholder"]});n();var De=Y(4883),Pe=Y.n(De),Ct=Y(162),Ot=Y.n(Ct);function Xt(r){function e(R,I,j,B,b){for(var te=0,C=0,he=0,re=0,se,V,Se=0,Me=0,Z,Te=Z=se=0,ne=0,Ae=0,yt=0,Ee=0,Ut=j.length,bt=Ut-1,Ve,z="",ge="",hr="",gr="",Qe;ne<Ut;){if(V=j.charCodeAt(ne),ne===bt&&C+re+he+te!==0&&(C!==0&&(V=C===47?10:47),re=he=te=0,Ut++,bt++),C+re+he+te===0){if(ne===bt&&(0<Ae&&(z=z.replace(k,"")),0<z.trim().length)){switch(V){case 32:case 9:case 59:case 13:case 10:break;default:z+=j.charAt(ne)}V=59}switch(V){case 123:for(z=z.trim(),se=z.charCodeAt(0),Z=1,Ee=++ne;ne<Ut;){switch(V=j.charCodeAt(ne)){case 123:Z++;break;case 125:Z--;break;case 47:switch(V=j.charCodeAt(ne+1)){case 42:case 47:e:{for(Te=ne+1;Te<bt;++Te)switch(j.charCodeAt(Te)){case 47:if(V===42&&j.charCodeAt(Te-1)===42&&ne+2!==Te){ne=Te+1;break e}break;case 10:if(V===47){ne=Te+1;break e}}ne=Te}}break;case 91:V++;case 40:V++;case 34:case 39:for(;ne++<bt&&j.charCodeAt(ne)!==V;);}if(Z===0)break;ne++}switch(Z=j.substring(Ee,ne),se===0&&(se=(z=z.replace(O,"").trim()).charCodeAt(0)),se){case 64:switch(0<Ae&&(z=z.replace(k,"")),V=z.charCodeAt(1),V){case 100:case 109:case 115:case 45:Ae=I;break;default:Ae=gt}if(Z=e(I,Ae,Z,V,b+1),Ee=Z.length,0<Ne&&(Ae=t(gt,z,yt),Qe=y(3,Z,Ae,I,ze,$e,Ee,V,b,B),z=Ae.join(""),Qe!==void 0&&(Ee=(Z=Qe.trim()).length)===0&&(V=0,Z="")),0<Ee)switch(V){case 115:z=z.replace(Ie,h);case 100:case 109:case 45:Z=z+"{"+Z+"}";break;case 107:z=z.replace(W,"$1 $2"),Z=z+"{"+Z+"}",Z=je===1||je===2&&d("@"+Z,3)?"@-webkit-"+Z+"@"+Z:"@"+Z;break;default:Z=z+Z,B===112&&(Z=(ge+=Z,""))}else Z="";break;default:Z=e(I,t(I,z,yt),Z,B,b+1)}hr+=Z,Z=yt=Ae=Te=se=0,z="",V=j.charCodeAt(++ne);break;case 125:case 59:if(z=(0<Ae?z.replace(k,""):z).trim(),1<(Ee=z.length))switch(Te===0&&(se=z.charCodeAt(0),se===45||96<se&&123>se)&&(Ee=(z=z.replace(" ",":")).length),0<Ne&&(Qe=y(1,z,I,R,ze,$e,ge.length,B,b,B))!==void 0&&(Ee=(z=Qe.trim()).length)===0&&(z="\0\0"),se=z.charCodeAt(0),V=z.charCodeAt(1),se){case 0:break;case 64:if(V===105||V===99){gr+=z+j.charAt(ne);break}default:z.charCodeAt(Ee-1)!==58&&(ge+=i(z,se,V,z.charCodeAt(2)))}yt=Ae=Te=se=0,z="",V=j.charCodeAt(++ne)}}switch(V){case 13:case 10:C===47?C=0:1+se===0&&B!==107&&0<z.length&&(Ae=1,z+="\0"),0<Ne*ut&&y(0,z,I,R,ze,$e,ge.length,B,b,B),$e=1,ze++;break;case 59:case 125:if(C+re+he+te===0){$e++;break}default:switch($e++,Ve=j.charAt(ne),V){case 9:case 32:if(re+te+C===0)switch(Se){case 44:case 58:case 9:case 32:Ve="";break;default:V!==32&&(Ve=" ")}break;case 0:Ve="\\0";break;case 12:Ve="\\f";break;case 11:Ve="\\v";break;case 38:re+C+te===0&&(Ae=yt=1,Ve="\f"+Ve);break;case 108:if(re+C+te+_e===0&&0<Te)switch(ne-Te){case 2:Se===112&&j.charCodeAt(ne-3)===58&&(_e=Se);case 8:Me===111&&(_e=Me)}break;case 58:re+C+te===0&&(Te=ne);break;case 44:C+he+re+te===0&&(Ae=1,Ve+="\r");break;case 34:case 39:C===0&&(re=re===V?0:re===0?V:re);break;case 91:re+C+he===0&&te++;break;case 93:re+C+he===0&&te--;break;case 41:re+C+te===0&&he--;break;case 40:if(re+C+te===0){if(se===0)switch(2*Se+3*Me){case 533:break;default:se=1}he++}break;case 64:C+he+re+te+Te+Z===0&&(Z=1);break;case 42:case 47:if(!(0<re+te+he))switch(C){case 0:switch(2*V+3*j.charCodeAt(ne+1)){case 235:C=47;break;case 220:Ee=ne,C=42}break;case 42:V===47&&Se===42&&Ee+2!==ne&&(j.charCodeAt(Ee+2)===33&&(ge+=j.substring(Ee,ne+1)),Ve="",C=0)}}C===0&&(z+=Ve)}Me=Se,Se=V,ne++}if(Ee=ge.length,0<Ee){if(Ae=I,0<Ne&&(Qe=y(2,ge,Ae,R,ze,$e,Ee,B,b,B),Qe!==void 0&&(ge=Qe).length===0))return gr+ge+hr;if(ge=Ae.join(",")+"{"+ge+"}",je*_e!==0){switch(je!==2||d(ge,2)||(_e=0),_e){case 111:ge=ge.replace(ee,":-moz-$1")+ge;break;case 112:ge=ge.replace(ue,"::-webkit-input-$1")+ge.replace(ue,"::-moz-$1")+ge.replace(ue,":-ms-input-$1")+ge}_e=0}}return gr+ge+hr}function t(R,I,j){var B=I.trim().split(M);I=B;var b=B.length,te=R.length;switch(te){case 0:case 1:var C=0;for(R=te===0?"":R[0]+" ";C<b;++C)I[C]=s(R,I[C],j).trim();break;default:var he=C=0;for(I=[];C<b;++C)for(var re=0;re<te;++re)I[he++]=s(R[re]+" ",B[C],j).trim()}return I}function s(R,I,j){var B=I.charCodeAt(0);switch(33>B&&(B=(I=I.trim()).charCodeAt(0)),B){case 38:return I.replace(X,"$1"+R.trim());case 58:return R.trim()+I.replace(X,"$1"+R.trim());default:if(0<1*j&&0<I.indexOf("\f"))return I.replace(X,(R.charCodeAt(0)===58?"":"$1")+R.trim())}return R+I}function i(R,I,j,B){var b=R+";",te=2*I+3*j+4*B;if(te===944){R=b.indexOf(":",9)+1;var C=b.substring(R,b.length-1).trim();return C=b.substring(0,R).trim()+C+";",je===1||je===2&&d(C,1)?"-webkit-"+C+C:C}if(je===0||je===2&&!d(b,1))return b;switch(te){case 1015:return b.charCodeAt(10)===97?"-webkit-"+b+b:b;case 951:return b.charCodeAt(3)===116?"-webkit-"+b+b:b;case 963:return b.charCodeAt(5)===110?"-webkit-"+b+b:b;case 1009:if(b.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+b+b;case 978:return"-webkit-"+b+"-moz-"+b+b;case 1019:case 983:return"-webkit-"+b+"-moz-"+b+"-ms-"+b+b;case 883:if(b.charCodeAt(8)===45)return"-webkit-"+b+b;if(0<b.indexOf("image-set(",11))return b.replace(lt,"$1-webkit-$2")+b;break;case 932:if(b.charCodeAt(4)===45)switch(b.charCodeAt(5)){case 103:return"-webkit-box-"+b.replace("-grow","")+"-webkit-"+b+"-ms-"+b.replace("grow","positive")+b;case 115:return"-webkit-"+b+"-ms-"+b.replace("shrink","negative")+b;case 98:return"-webkit-"+b+"-ms-"+b.replace("basis","preferred-size")+b}return"-webkit-"+b+"-ms-"+b+b;case 964:return"-webkit-"+b+"-ms-flex-"+b+b;case 1023:if(b.charCodeAt(8)!==99)break;return C=b.substring(b.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+C+"-webkit-"+b+"-ms-flex-pack"+C+b;case 1005:return F.test(b)?b.replace(L,":-webkit-")+b.replace(L,":-moz-")+b:b;case 1e3:switch(C=b.substring(13).trim(),I=C.indexOf("-")+1,C.charCodeAt(0)+C.charCodeAt(I)){case 226:C=b.replace(K,"tb");break;case 232:C=b.replace(K,"tb-rl");break;case 220:C=b.replace(K,"lr");break;default:return b}return"-webkit-"+b+"-ms-"+C+b;case 1017:if(b.indexOf("sticky",9)===-1)break;case 975:switch(I=(b=R).length-10,C=(b.charCodeAt(I)===33?b.substring(0,I):b).substring(R.indexOf(":",7)+1).trim(),te=C.charCodeAt(0)+(C.charCodeAt(7)|0)){case 203:if(111>C.charCodeAt(8))break;case 115:b=b.replace(C,"-webkit-"+C)+";"+b;break;case 207:case 102:b=b.replace(C,"-webkit-"+(102<te?"inline-":"")+"box")+";"+b.replace(C,"-webkit-"+C)+";"+b.replace(C,"-ms-"+C+"box")+";"+b}return b+";";case 938:if(b.charCodeAt(5)===45)switch(b.charCodeAt(6)){case 105:return C=b.replace("-items",""),"-webkit-"+b+"-webkit-box-"+C+"-ms-flex-"+C+b;case 115:return"-webkit-"+b+"-ms-flex-item-"+b.replace(fe,"")+b;default:return"-webkit-"+b+"-ms-flex-line-pack"+b.replace("align-content","").replace(fe,"")+b}break;case 973:case 989:if(b.charCodeAt(3)!==45||b.charCodeAt(4)===122)break;case 931:case 953:if(Xe.test(R)===!0)return(C=R.substring(R.indexOf(":")+1)).charCodeAt(0)===115?i(R.replace("stretch","fill-available"),I,j,B).replace(":fill-available",":stretch"):b.replace(C,"-webkit-"+C)+b.replace(C,"-moz-"+C.replace("fill-",""))+b;break;case 962:if(b="-webkit-"+b+(b.charCodeAt(5)===102?"-ms-"+b:"")+b,j+B===211&&b.charCodeAt(13)===105&&0<b.indexOf("transform",10))return b.substring(0,b.indexOf(";",27)+1).replace(U,"$1-webkit-$2")+b}return b}function d(R,I){var j=R.indexOf(I===1?":":"{"),B=R.substring(0,I!==3?j:10);return j=R.substring(j+1,R.length-1),mt(I!==2?B:B.replace(Le,"$1"),j,I)}function h(R,I){var j=i(I,I.charCodeAt(0),I.charCodeAt(1),I.charCodeAt(2));return j!==I+";"?j.replace(T," or ($1)").substring(4):"("+I+")"}function y(R,I,j,B,b,te,C,he,re,se){for(var V=0,Se=I,Me;V<Ne;++V)switch(Me=Be[V].call(E,R,Se,j,B,b,te,C,he,re,se)){case void 0:case!1:case!0:case null:break;default:Se=Me}if(Se!==I)return Se}function S(R){switch(R){case void 0:case null:Ne=Be.length=0;break;default:if(typeof R=="function")Be[Ne++]=R;else if(typeof R=="object")for(var I=0,j=R.length;I<j;++I)S(R[I]);else ut=!!R|0}return S}function A(R){return R=R.prefix,R!==void 0&&(mt=null,R?typeof R!="function"?je=1:(je=2,mt=R):je=0),A}function E(R,I){var j=R;if(33>j.charCodeAt(0)&&(j=j.trim()),vt=j,j=[vt],0<Ne){var B=y(-1,I,j,j,ze,$e,0,0,0,0);B!==void 0&&typeof B=="string"&&(I=B)}var b=e(gt,j,I,0,0);return 0<Ne&&(B=y(-2,b,j,j,ze,$e,b.length,0,0,0),B!==void 0&&(b=B)),vt="",_e=0,$e=ze=1,b}var O=/^\0+/g,k=/[\0\r\f]/g,L=/: */g,F=/zoo|gra/,U=/([,: ])(transform)/g,M=/,\r+?/g,X=/([\t\r\n ])*\f?&/g,W=/@(k\w+)\s*(\S*)\s*/,ue=/::(place)/g,ee=/:(read-only)/g,K=/[svh]\w+-[tblr]{2}/,Ie=/\(\s*(.*)\s*\)/g,T=/([\s\S]*?);/g,fe=/-self|flex-/g,Le=/[^]*?(:[rp][el]a[\w-]+)[^]*/,Xe=/stretch|:\s*\w+\-(?:conte|avail)/,lt=/([^-])(image-set\()/,$e=1,ze=1,_e=0,je=1,gt=[],Be=[],Ne=0,mt=null,ut=0,vt="";return E.use=S,E.set=A,r!==void 0&&A(r),E}const Tt=Xt;var We={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};const Ye=We;function Wr(r){var e=Object.create(null);return function(t){return e[t]===void 0&&(e[t]=r(t)),e[t]}}var _r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,xr=Wr(function(r){return _r.test(r)||r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)<91});o();function Zt(){return Zt.c||(Zt.c=Y.n(o()))}var Pt,Kr,It,Yr,Xr,Zr;function Re(){return(Re=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}return r}).apply(this,arguments)}var Sr=function(r,e){for(var t=[r[0]],s=0,i=e.length;s<i;s+=1)t.push(e[s],r[s+1]);return t},Jt=function(r){return r!==null&&typeof r=="object"&&(r.toString?r.toString():Object.prototype.toString.call(r))==="[object Object]"&&!(0,f().typeOf)(r)},jt=Object.freeze([]),Ze=Object.freeze({});function at(r){return typeof r=="function"}function Qt(r){return r.displayName||r.name||"Component"}function qt(r){return r&&typeof r.styledComponentId=="string"}var Je=typeof process<"u"&&!0&&("MISSING_ENV_VAR".REACT_APP_SC_ATTR||"MISSING_ENV_VAR".SC_ATTR)||"data-styled",as="5.3.11",er=typeof window<"u"&&"HTMLElement"in window,Jr=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&("MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY!==void 0&&"MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY!==""?"MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY!=="false"&&"MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY:"MISSING_ENV_VAR".SC_DISABLE_SPEEDY!==void 0&&"MISSING_ENV_VAR".SC_DISABLE_SPEEDY!==""&&"MISSING_ENV_VAR".SC_DISABLE_SPEEDY!=="false"&&"MISSING_ENV_VAR".SC_DISABLE_SPEEDY)),Qr=null,cs=null;function ls(){for(var r=arguments.length<=0?void 0:arguments[0],e=[],t=1,s=arguments.length;t<s;t+=1)e.push(t<0||arguments.length<=t?void 0:arguments[t]);return e.forEach(function(i){r=r.replace(/%[a-z]/,i)}),r}function ke(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),s=1;s<e;s++)t[s-1]=arguments[s];throw new Error("An error occurred. See https://git.io/JUIaE#"+r+" for more information."+(t.length>0?" Args: "+t.join(", "):""))}var qr=function(){function r(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}var e=r.prototype;return e.indexOfGroup=function(t){for(var s=0,i=0;i<t;i++)s+=this.groupSizes[i];return s},e.insertRules=function(t,s){if(t>=this.groupSizes.length){for(var i=this.groupSizes,d=i.length,h=d;t>=h;)(h<<=1)<0&&ke(16,""+t);this.groupSizes=new Uint32Array(h),this.groupSizes.set(i),this.length=h;for(var y=d;y<h;y++)this.groupSizes[y]=0}for(var S=this.indexOfGroup(t+1),A=0,E=s.length;A<E;A++)this.tag.insertRule(S,s[A])&&(this.groupSizes[t]++,S++)},e.clearGroup=function(t){if(t<this.length){var s=this.groupSizes[t],i=this.indexOfGroup(t),d=i+s;this.groupSizes[t]=0;for(var h=i;h<d;h++)this.tag.deleteRule(i)}},e.getGroup=function(t){var s="";if(t>=this.length||this.groupSizes[t]===0)return s;for(var i=this.groupSizes[t],d=this.indexOfGroup(t),h=d+i,y=d;y<h;y++)s+=this.tag.getRule(y)+`/*!sc*/
|
|
9
|
-
`;return s},r}(),Mt=new Map,Rt=new Map,dt=1,$t=function(r){if(Mt.has(r))return Mt.get(r);for(;Rt.has(dt);)dt++;var e=dt++;return Mt.set(r,e),Rt.set(e,r),e},
|
|
10
|
-
`),s=[],i=0,d=t.length;i<d;i++){var h=t[i].trim();if(h){var
|
|
11
|
-
`}}}return d}(this)},r}(),pn=/(a)(d)/gi,Cr=function(r){return String.fromCharCode(r+(r>25?39:97))};function rr(r){var e,t="";for(e=Math.abs(r);e>52;e=e/52|0)t=Cr(e%52)+t;return(Cr(e%52)+t).replace(pn,"$1-$2")}var ct=function(r,e){for(var t=e.length;t;)r=33*r^e.charCodeAt(--t);return r},Or=function(r){return ct(5381,r)};function Tr(r){for(var e=0;e<r.length;e+=1){var t=r[e];if(at(t)&&!qt(t))return!1}return!0}var dn=Or("5.3.11"),fn=function(){function r(e,t,s){this.rules=e,this.staticRulesId="",this.isStatic=(s===void 0||s.isStatic)&&Tr(e),this.componentId=t,this.baseHash=ct(dn,t),this.baseStyle=s,ft.registerId(t)}return r.prototype.generateAndInjectStyles=function(e,t,s){var i=this.componentId,d=[];if(this.baseStyle&&d.push(this.baseStyle.generateAndInjectStyles(e,t,s)),this.isStatic&&!s.hash)if(this.staticRulesId&&t.hasNameForId(i,this.staticRulesId))d.push(this.staticRulesId);else{var h=rt(this.rules,e,t,s).join(""),y=rr(ct(this.baseHash,h)>>>0);if(!t.hasNameForId(i,y)){var S=s(h,"."+y,void 0,i);t.insertRules(i,y,S)}d.push(y),this.staticRulesId=y}else{for(var A=this.rules.length,E=ct(this.baseHash,s.hash),O="",k=0;k<A;k++){var L=this.rules[k];if(typeof L=="string")O+=L;else if(L){var F=rt(L,e,t,s),U=Array.isArray(F)?F.join(""):F;E=ct(E,U+k),O+=U}}if(O){var M=rr(E>>>0);if(!t.hasNameForId(i,M)){var X=s(O,"."+M,void 0,i);t.insertRules(i,M,X)}d.push(M)}}return d.join(" ")},r}(),hn=/^\s*\/\/.*$/gm,gn=[":","[",".","#"];function Pr(r){var e,t,s,i,d=r===void 0?Ze:r,h=d.options,y=h===void 0?Ze:h,S=d.plugins,A=S===void 0?jt:S,E=new Tt(y),O=[],k=function(U){function M(X){if(X)try{U(X+"}")}catch{}}return function(X,W,ue,ee,K,Ie,T,fe,Le,Xe){switch(X){case 1:if(Le===0&&W.charCodeAt(0)===64)return U(W+";"),"";break;case 2:if(fe===0)return W+"/*|*/";break;case 3:switch(fe){case 102:case 112:return U(ue[0]+W),"";default:return W+(Xe===0?"/*|*/":"")}case-2:W.split("/*|*/}").forEach(M)}}}(function(U){O.push(U)}),L=function(U,M,X){return M===0&&gn.indexOf(X[t.length])!==-1||X.match(i)?U:"."+e};function F(U,M,X,W){W===void 0&&(W="&");var ue=U.replace(hn,""),ee=M&&X?X+" "+M+" { "+ue+" }":ue;return e=W,t=M,s=new RegExp("\\"+t+"\\b","g"),i=new RegExp("(\\"+t+"\\b){2,}"),E(X||!M?"":M,ee)}return E.use([].concat(A,[function(U,M,X){U===2&&X.length&&X[0].lastIndexOf(t)>0&&(X[0]=X[0].replace(s,L))},k,function(U){if(U===-2){var M=O;return O=[],M}}])),F.hash=A.length?A.reduce(function(U,M){return M.name||ke(15),ct(U,M.name)},5381).toString():"",F}var nr=Pe().createContext(),us=nr.Consumer,sr=Pe().createContext(),mn=(sr.Consumer,new ft),or=Pr();function ir(){return(0,De.useContext)(nr)||mn}function Ir(){return(0,De.useContext)(sr)||or}function vn(r){var e=(0,De.useState)(r.stylisPlugins),t=e[0],s=e[1],i=ir(),d=(0,De.useMemo)(function(){var y=i;return r.sheet?y=r.sheet:r.target&&(y=y.reconstructWithOptions({target:r.target},!1)),r.disableCSSOMInjection&&(y=y.reconstructWithOptions({useCSSOMInjection:!1})),y},[r.disableCSSOMInjection,r.sheet,r.target]),h=(0,De.useMemo)(function(){return Pr({options:{prefix:!r.disableVendorPrefixes},plugins:t})},[r.disableVendorPrefixes,t]);return(0,De.useEffect)(function(){Ot()(t,r.stylisPlugins)||s(r.stylisPlugins)},[r.stylisPlugins]),Pe().createElement(nr.Provider,{value:d},Pe().createElement(sr.Provider,{value:h},r.children))}var jr=function(){function r(e,t){var s=this;this.inject=function(i,d){d===void 0&&(d=or);var h=s.name+d.hash;i.hasNameForId(s.id,h)||i.insertRules(s.id,h,d(s.rules,h,"@keyframes"))},this.toString=function(){return ke(12,String(s.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return r.prototype.getName=function(e){return e===void 0&&(e=or),this.name+e.hash},r}(),yn=/([A-Z])/,bn=/([A-Z])/g,wn=/^ms-/,xn=function(r){return"-"+r.toLowerCase()};function Mr(r){return yn.test(r)?r.replace(bn,xn).replace(wn,"-ms-"):r}var Rr=function(r){return r==null||r===!1||r===""};function rt(r,e,t,s){if(Array.isArray(r)){for(var i,d=[],h=0,y=r.length;h<y;h+=1)(i=rt(r[h],e,t,s))!==""&&(Array.isArray(i)?d.push.apply(d,i):d.push(i));return d}if(Rr(r))return"";if(qt(r))return"."+r.styledComponentId;if(at(r)){if(typeof(A=r)!="function"||A.prototype&&A.prototype.isReactComponent||!e)return r;var S=r(e);return rt(S,e,t,s)}var A;return r instanceof jr?t?(r.inject(t,s),r.getName(s)):r:Jt(r)?function E(O,k){var L,F,U=[];for(var M in O)O.hasOwnProperty(M)&&!Rr(O[M])&&(Array.isArray(O[M])&&O[M].isCss||at(O[M])?U.push(Mr(M)+":",O[M],";"):Jt(O[M])?U.push.apply(U,E(O[M],M)):U.push(Mr(M)+": "+(L=M,(F=O[M])==null||typeof F=="boolean"||F===""?"":typeof F!="number"||F===0||L in Ye||L.startsWith("--")?String(F).trim():F+"px")+";"));return k?[k+" {"].concat(U,["}"]):U}(r):r.toString()}var $r=function(r){return Array.isArray(r)&&(r.isCss=!0),r};function ht(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),s=1;s<e;s++)t[s-1]=arguments[s];return at(r)||Jt(r)?$r(rt(Sr(jt,[r].concat(t)))):t.length===0&&r.length===1&&typeof r[0]=="string"?r:$r(rt(Sr(r,t)))}var ps=/invalid hook call/i,ds=new Set,fs=function(r,e){if(0)var t,s,i},ar=function(r,e,t){return t===void 0&&(t=Ze),r.theme!==t.theme&&r.theme||e||t.theme},Sn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,An=/(^-|-$)/g;function cr(r){return r.replace(Sn,"-").replace(An,"")}var lr=function(r){return rr(Or(r)>>>0)};function Ft(r){return typeof r=="string"&&!0}var ur=function(r){return typeof r=="function"||typeof r=="object"&&r!==null&&!Array.isArray(r)},En=function(r){return r!=="__proto__"&&r!=="constructor"&&r!=="prototype"};function Cn(r,e,t){var s=r[t];ur(e)&&ur(s)?Fr(s,e):r[t]=e}function Fr(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),s=1;s<e;s++)t[s-1]=arguments[s];for(var i=0,d=t;i<d.length;i++){var h=d[i];if(ur(h))for(var y in h)En(y)&&Cn(r,h[y],y)}return r}var nt=Pe().createContext(),hs=nt.Consumer;function gs(r){var e=Pt(nt),t=Kr(function(){return function(s,i){if(!s)return ke(14);if(at(s)){var d=s(i);return d}return Array.isArray(s)||typeof s!="object"?ke(8):i?Re({},i,{},s):s}(r.theme,e)},[r.theme,e]);return r.children?It.createElement(nt.Provider,{value:t},r.children):null}var pr={};function Dr(r,e,t){var s=qt(r),i=!Ft(r),d=e.attrs,h=d===void 0?jt:d,y=e.componentId,S=y===void 0?function(W,ue){var ee=typeof W!="string"?"sc":cr(W);pr[ee]=(pr[ee]||0)+1;var K=ee+"-"+lr("5.3.11"+ee+pr[ee]);return ue?ue+"-"+K:K}(e.displayName,e.parentComponentId):y,A=e.displayName,E=A===void 0?function(W){return Ft(W)?"styled."+W:"Styled("+Qt(W)+")"}(r):A,O=e.displayName&&e.componentId?cr(e.displayName)+"-"+e.componentId:e.componentId||S,k=s&&r.attrs?Array.prototype.concat(r.attrs,h).filter(Boolean):h,L=e.shouldForwardProp;s&&r.shouldForwardProp&&(L=e.shouldForwardProp?function(W,ue,ee){return r.shouldForwardProp(W,ue,ee)&&e.shouldForwardProp(W,ue,ee)}:r.shouldForwardProp);var F,U=new fn(t,O,s?r.componentStyle:void 0),M=U.isStatic&&h.length===0,X=function(W,ue){return function(ee,K,Ie,T){var fe=ee.attrs,Le=ee.componentStyle,Xe=ee.defaultProps,lt=ee.foldedComponentIds,$e=ee.shouldForwardProp,ze=ee.styledComponentId,_e=ee.target,je=function(B,b,te){B===void 0&&(B=Ze);var C=Re({},b,{theme:B}),he={};return te.forEach(function(re){var se,V,Se,Me=re;for(se in at(Me)&&(Me=Me(C)),Me)C[se]=he[se]=se==="className"?(V=he[se],Se=Me[se],V&&Se?V+" "+Se:V||Se):Me[se]}),[C,he]}(ar(K,(0,De.useContext)(nt),Xe)||Ze,K,fe),gt=je[0],Be=je[1],Ne=function(B,b,te,C){var he=ir(),re=Ir(),se=b?B.generateAndInjectStyles(Ze,he,re):B.generateAndInjectStyles(te,he,re);return se}(Le,T,gt,void 0),mt=Ie,ut=Be.$as||K.$as||Be.as||K.as||_e,vt=Ft(ut),R=Be!==K?Re({},K,{},Be):K,I={};for(var j in R)j[0]!=="$"&&j!=="as"&&(j==="forwardedAs"?I.as=R[j]:($e?$e(j,xr,ut):!vt||xr(j))&&(I[j]=R[j]));return K.style&&Be.style!==K.style&&(I.style=Re({},K.style,{},Be.style)),I.className=Array.prototype.concat(lt,ze,Ne!==ze?Ne:null,K.className,Be.className).filter(Boolean).join(" "),I.ref=mt,(0,De.createElement)(ut,I)}(F,W,ue,M)};return X.displayName=E,(F=Pe().forwardRef(X)).attrs=k,F.componentStyle=U,F.displayName=E,F.shouldForwardProp=L,F.foldedComponentIds=s?Array.prototype.concat(r.foldedComponentIds,r.styledComponentId):jt,F.styledComponentId=O,F.target=s?r.target:r,F.withComponent=function(W){var ue=e.componentId,ee=function(Ie,T){if(Ie==null)return{};var fe,Le,Xe={},lt=Object.keys(Ie);for(Le=0;Le<lt.length;Le++)fe=lt[Le],T.indexOf(fe)>=0||(Xe[fe]=Ie[fe]);return Xe}(e,["componentId"]),K=ue&&ue+"-"+(Ft(W)?W:cr(Qt(W)));return Dr(W,Re({},ee,{attrs:k,componentId:K}),t)},Object.defineProperty(F,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(W){this._foldedDefaultProps=s?Fr({},r.defaultProps,W):W}}),Object.defineProperty(F,"toString",{value:function(){return"."+F.styledComponentId}}),i&&Zt()()(F,r,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),F}var Lr=function(r){return function e(t,s,i){if(i===void 0&&(i=Ze),!(0,f().isValidElementType)(s))return ke(1,String(s));var d=function(){return t(s,i,ht.apply(void 0,arguments))};return d.withConfig=function(h){return e(t,s,Re({},i,{},h))},d.attrs=function(h){return e(t,s,Re({},i,{attrs:Array.prototype.concat(i.attrs,h).filter(Boolean)}))},d}(Dr,r)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(r){Lr[r]=Lr(r)});var On=function(){function r(t,s){this.rules=t,this.componentId=s,this.isStatic=Tr(t),ft.registerId(this.componentId+1)}var e=r.prototype;return e.createStyles=function(t,s,i,d){var h=d(rt(this.rules,s,i,d).join(""),""),y=this.componentId+t;i.insertRules(y,y,h)},e.removeStyles=function(t,s){s.clearRules(this.componentId+t)},e.renderStyles=function(t,s,i,d){t>2&&ft.registerId(this.componentId+t),this.removeStyles(t,i),this.createStyles(t,s,i,d)},r}();function ms(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),s=1;s<e;s++)t[s-1]=arguments[s];var i=ht.apply(void 0,[r].concat(t)),d="sc-global-"+lr(JSON.stringify(i)),h=new On(i,d);function y(A){var E=ir(),O=Ir(),k=Pt(nt),L=Yr(E.allocateGSInstance(d)).current;return E.server&&S(L,A,E,k,O),Xr(function(){if(!E.server)return S(L,A,E,k,O),function(){return h.removeStyles(L,E)}},[L,A,E,k,O]),null}function S(A,E,O,k,L){if(h.isStatic)h.renderStyles(A,Qr,O,L);else{var F=Re({},E,{theme:ar(E,k,y.defaultProps)});h.renderStyles(A,F,O,L)}}return It.memo(y)}function vs(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),s=1;s<e;s++)t[s-1]=arguments[s];var i=ht.apply(void 0,[r].concat(t)).join(""),d=lr(i);return new jr(d,i)}var ys=function(){function r(){var t=this;this._emitSheetCSS=function(){var s=t.instance.toString();if(!s)return"";var i=tr();return"<style "+[i&&'nonce="'+i+'"',Je+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+s+"</style>"},this.getStyleTags=function(){return t.sealed?ke(2):t._emitSheetCSS()},this.getStyleElement=function(){var s;if(t.sealed)return ke(2);var i=((s={})[Je]="",s["data-styled-version"]="5.3.11",s.dangerouslySetInnerHTML={__html:t.instance.toString()},s),d=tr();return d&&(i.nonce=d),[Pe().createElement("style",Re({},i,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new ft({isServer:!0}),this.sealed=!1}var e=r.prototype;return e.collectStyles=function(t){return this.sealed?ke(2):Pe().createElement(vn,{sheet:this.instance},t)},e.interleaveWithNodeStream=function(t){return ke(3)},r}(),bs=function(r){var e=It.forwardRef(function(t,s){var i=Pt(nt),d=r.defaultProps,h=ar(t,i,d);return It.createElement(r,Re({},t,{theme:h,ref:s}))});return Zr(e,r),e.displayName="WithTheme("+Qt(r)+")",e},ws=function(){return Pt(nt)},xs=null;const Ss=null,Tn=r=>Object.keys(r).reduce((e,t)=>(e[t]=(s,...i)=>ht`
|
|
8
|
+
*/var t=typeof Symbol=="function"&&Symbol.for,s=t?Symbol.for("react.element"):60103,i=t?Symbol.for("react.portal"):60106,d=t?Symbol.for("react.fragment"):60107,h=t?Symbol.for("react.strict_mode"):60108,v=t?Symbol.for("react.profiler"):60114,S=t?Symbol.for("react.provider"):60109,A=t?Symbol.for("react.context"):60110,E=t?Symbol.for("react.async_mode"):60111,O=t?Symbol.for("react.concurrent_mode"):60111,k=t?Symbol.for("react.forward_ref"):60112,N=t?Symbol.for("react.suspense"):60113,F=t?Symbol.for("react.suspense_list"):60120,D=t?Symbol.for("react.memo"):60115,M=t?Symbol.for("react.lazy"):60116,X=t?Symbol.for("react.block"):60121,W=t?Symbol.for("react.fundamental"):60117,ue=t?Symbol.for("react.responder"):60118,ee=t?Symbol.for("react.scope"):60119;function K(T){if(typeof T=="object"&&T!==null){var fe=T.$$typeof;switch(fe){case s:switch(T=T.type,T){case E:case O:case d:case v:case h:case N:return T;default:switch(T=T&&T.$$typeof,T){case A:case k:case M:case D:case S:return T;default:return fe}}case i:return fe}}}function Ie(T){return K(T)===O}e.AsyncMode=E,e.ConcurrentMode=O,e.ContextConsumer=A,e.ContextProvider=S,e.Element=s,e.ForwardRef=k,e.Fragment=d,e.Lazy=M,e.Memo=D,e.Portal=i,e.Profiler=v,e.StrictMode=h,e.Suspense=N,e.isAsyncMode=function(T){return Ie(T)||K(T)===E},e.isConcurrentMode=Ie,e.isContextConsumer=function(T){return K(T)===A},e.isContextProvider=function(T){return K(T)===S},e.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===s},e.isForwardRef=function(T){return K(T)===k},e.isFragment=function(T){return K(T)===d},e.isLazy=function(T){return K(T)===M},e.isMemo=function(T){return K(T)===D},e.isPortal=function(T){return K(T)===i},e.isProfiler=function(T){return K(T)===v},e.isStrictMode=function(T){return K(T)===h},e.isSuspense=function(T){return K(T)===N},e.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===d||T===O||T===v||T===h||T===N||T===F||typeof T=="object"&&T!==null&&(T.$$typeof===M||T.$$typeof===D||T.$$typeof===S||T.$$typeof===A||T.$$typeof===k||T.$$typeof===W||T.$$typeof===ue||T.$$typeof===ee||T.$$typeof===X)},e.typeOf=K}),n=Y.cw(function(r,e){r.exports=f()}),a=(r=>(r.USER="USER",r.PARTNER="PARTNER",r))(a||{}),c=Y(8313),l=Y.n(c),u=Y(2438),p=Y.n(u),g=Y(2154),m=Y.n(g),y=Y(2146),w=Y.n(y),x=Y(8970),P=Y.n(x);const $=JSON.parse('{"appId":"microfe","activeEnv":"localhost","googleTagManager":true,"sessionTimeoutWarnInterval":"7200000","sessionTimeoutInterval":"9000000","microFrontendApps":{"loanapp":{"name":"Loan","hostUrl":"./loan","development":{"files":["index.js"]},"production":{"files":["index.js"]}},"taskapp":{"name":"Task","hostUrl":"./task","mode":"development","development":{"files":["index.dev.js"]},"production":{"files":["index.js"]}},"travelhub":{"name":"TravelHub","hostUrl":"./travelhub","development":{"files":["app.js","landing.js","app.css","landing.css"]},"production":{"files":["app.js","landing.js","app.css","landing.css"]}},"flights":{"name":"Flights","hostUrl":"./flights","development":{"files":["app.js","app.css"]},"production":{"files":["app.js","app.css"]}},"hotels":{"name":"Hotels","hostUrl":"./hotels","development":{"files":["app.js","app.css"]},"production":{"files":["app.js","app.css"]}},"ssfapp":{"name":"SSF App","hostUrl":"./ssf-app","microappManager":"ssf"}},"serviceEndpoints":{"api":"","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"},"env":{"localhost":{"serviceEndpoints":{"api":"","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"dev":{"serviceEndpoints":{"api":"https://dev.api.puiservice.rd.elliemae.io","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"dev2":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa":{"serviceEndpoints":{"api":"https://dev.api.puiservice.rd.elliemae.io","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa2":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa3":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"int":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-osb1":{"serviceEndpoints":{"api":"https://encompass-peg-api.elliemae.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-osb2":{"serviceEndpoints":{"api":"https://encompass-peg2-api.elliemae.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg":{"serviceEndpoints":{"api":"https://peg2-west.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-oapi-west":{"serviceEndpoints":{"api":"https://peg2-west.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-oapi-east":{"serviceEndpoints":{"api":"https://peg2-east.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg2-oapi-east":{"serviceEndpoints":{"api":"https://peg2-east.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg3":{"serviceEndpoints":{"api":"https://pel1.api.ellielabs.com","idp":"https://peg3.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"stage":{"serviceEndpoints":{"api":"https://stg.api.elliemae.com","idp":"https://stg.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"beta":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"demo":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"epc":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"prod":{"serviceEndpoints":{"api":"https://api.elliemae.com","idp":"https://idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}}}}'),U=r=>r.replace(/([^:]\/)\/+/g,"$1"),H=r=>{const e=document.createElement("a");return e.href=r,e.href},L=r=>r?.replace?.(/\/?$/,"/"),q=(r,e)=>`${r.replace(/\/+$/,"")}/${e.replace(/^\/+/,"")}`,oe=r=>/^(\/|https?:\/\/)/.test(r),ve=(r,e)=>{const t=L(e);if(oe(t)){const{origin:s}=new URL(r,window.location.href);return U(new URL(t,s).href)}return U(new URL(t,L(r)).href)},_=(r,e)=>U(new URL("manifest.json",ve(r,e)).href),Ce=()=>window.navigator.userAgent.includes("jsdom"),ye=r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Oe=r=>{try{if(new URL(r,window.location.href).origin===window.location.origin)return r;const t=window.location.hostname==="localhost"?"latest":window.emui?.version?.match(/^(\d+\.\d+)/)?.[1]??"latest";return`${window.location.origin}/${t}/frame.html`}catch{return r}};var ae=(r=>(r.DEVELOPMENT="development",r.PRODUCTION="production",r))(ae||{}),pe=(r=>(r.SSF="ssf",r.APPSDK="appsdk",r))(pe||{});class ce{#e=$;#t;#r;constructor(e){this.#t=e?.version||"latest",this.#r=L(e?.baseUrl||"")}#a=e=>{const{activeEnv:t,env:s,...i}=e,d=s[t]||{};this.#e=P()({},i,d)};get=(e="",t=null)=>l()(p()(this.#e,e,t));set=(e,t)=>{m()(this.#e,e,t)};has=(e="")=>w()(this.#e,e);setPreloadedConfig=e=>{this.#e=e};#n=()=>{if(!/(?:\/)(\d+\.\d+|latest)(?:\/?)?$/.test(this.#r)){const t=this.#t.match(/^(?:\d+\.\d+)*/g);return L(`${this.#r}${t?.[0]||"latest"}`)}return this.#r};#i=()=>{const e=this.#n();return L(e.replace(/(\/)(\d+\.\d+|latest)\/?$/,"$1latest/"))};load=async e=>{const t=e??`${this.#n()}app.config.json`,s=`${this.#i()}app.config.json`,i=h=>!e&&h!==s;let d;try{d=await fetch(t)}catch(h){if(i(t)){await this.load(s);return}throw new Error("Failed to fetch app config",{cause:h})}if(d.ok)try{const h=await d.json();this.#a(h)}catch(h){if(i(t)){await this.load(s);return}throw new Error("Failed to parse app config",{cause:h})}else if(i(t))await this.load(s);else throw new Error("Failed to load app config")}}class le{name;objectId;id;constructor(e){const{name:t,objectId:s}=e;if(!t)throw new Error("Event name is required");if(!s)throw new Error("Scripting object id is required");this.objectId=s,this.name=t,this.id=`${this.objectId}.${this.name}`.toLowerCase()}}class de{static[Symbol.hasInstance](e){return typeof e=="object"&&e!==null&&"getType"in e&&typeof e.getType=="function"&&e.getType()==="ProxyEvent"}#e;objectId;name;id;getType(){return"ProxyEvent"}constructor(e){const{name:t,objectId:s,eventSrc:i}=e;if(!t)throw new Error("Event name is required");if(!s)throw new Error("Scripting object id is required");if(!i)throw new Error("Event source is required");this.objectId=s,this.name=t,this.#e=i,this.id=`${this.objectId}.${this.name}`.toLowerCase()}subscribe=e=>this.#e.subscribe({eventId:this.id,callback:e});unsubscribe=e=>{this.#e.unsubscribe({eventId:this.id,token:e})}}const G=r=>r instanceof le,be=(r,e)=>`${r.toLowerCase()}.${e.toLowerCase()}`,J="function",we=(r,e)=>typeof r===J&&!!e&&!e.startsWith("_");class Ue{#e;#t="Object";constructor(e,t){this.#e=e,this.#t=t||this.#t}get id(){return this.#e}get objectType(){return this.#t}_toJSON=()=>{const e=[],t=[];return Object.keys(this).forEach(s=>{const i=this[s];G(i)?t.push(s):we(i,s)&&e.push(s)}),{objectId:this.#e,objectType:this.#t,functions:e,events:t}};_dispose=()=>{};dispose=()=>{}}var st=Y(6712),Bt=Y.n(st);const xt={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let ot;const Gt=new Uint8Array(16);function Ht(){if(!ot&&(ot=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ot))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ot(Gt)}var Wt;const me=[];for(let r=0;r<256;++r)me.push((r+256).toString(16).slice(1));function St(r,e=0){return me[r[e+0]]+me[r[e+1]]+me[r[e+2]]+me[r[e+3]]+"-"+me[r[e+4]]+me[r[e+5]]+"-"+me[r[e+6]]+me[r[e+7]]+"-"+me[r[e+8]]+me[r[e+9]]+"-"+me[r[e+10]]+me[r[e+11]]+me[r[e+12]]+me[r[e+13]]+me[r[e+14]]+me[r[e+15]]}function yr(r,e=0){const t=St(r,e);if(!Wt(t))throw TypeError("Stringified UUID is invalid");return t}const br=null;function _t(r,e,t){if(xt.randomUUID&&!e&&!r)return xt.randomUUID();r=r||{};const s=r.random||(r.rng||Ht)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,e){t=t||0;for(let i=0;i<16;++i)e[t+i]=s[i];return e}return St(s)}const At=_t;var et=(r=>(r.Analytics="analytics",r.Application="application",r.Auth="auth",r.Form="form",r.Global="global",r.Http="http",r.Loan="loan",r.LoanV2="loanV2",r.MemStorage="memstorage",r.Module="module",r.Service="service",r.Session="session",r.Styling="styling",r.Transaction="transaction",r.TransactionTemplate="transactiontemplate",r.WebSocket="websocket",r))(et||{});const Et="module";var wr=null,xr=null;class Kt{#e=e=>e.trim().toLowerCase();#t=new Map;#r=new Map;#a=e=>{const{so:t,guestId:s,onDuplicate:i="throw",securityContext:d}=e,h=this.#e(t.id),v={so:t,guestId:s,securityContext:d},S=this.#r.get(s);if(!S){this.#r.set(s,new Map([[h,v]]));return}if(S.has(h)){if(i==="ignore")return;throw new Error(`Scripting Object ${t.id} already exists for guest ${s}`)}S.set(h,v)};#n=({so:e})=>{if(e._dispose&&typeof e._dispose=="function")try{e._dispose()}catch{}};#i=({objectId:e,guestId:t})=>{if(e===Et&&!t)for(const[,i]of this.#r){const d=i.get(e);if(d)return d}const s=t?this.#r.get(t):null;return s?s.get(e)??null:null};#s=({objectId:e,guestId:t}={})=>{if(t){if(!e){const i=this.#r.get(t);i&&i.forEach(this.#n),this.#r.delete(t);return}const s=this.#r.get(t);if(s){const i=s.get(e);i&&this.#n(i),s.delete(e)}}else e&&this.#r.forEach(s=>{const i=s.get(e);i&&this.#n(i),s.delete(e)})};addScriptingObject=(e,t)=>{const{guestId:s,onDuplicate:i="throw",securityContext:d}=t||{};if(!e?.id||!e?._toJSON)throw new Error("Object is not derived from ScriptingObject");const h=this.#e(e.id);if(h===Et&&!s)throw new Error("Guest id is required to add Module scripting object");if(s){this.#a({so:e,...t,guestId:s,onDuplicate:i});return}if(this.#t.has(h)){if(i==="ignore")return;throw new Error(`Scripting Object ${e.id} already exists`)}this.#t.set(h,{so:e,guestId:s,securityContext:d})};getObject=(e,t)=>{const s=this.#e(e);let i=this.#i({objectId:s,guestId:t?.id});i=i??this.#t.get(s)??null;const{so:d}=i||{};return d||null};has=(e,t)=>this.getObject(e,t)!==null;listScriptingObjects=e=>{const t=new Set(this.#t.keys()),s=this.#r.get(e);if(s)for(const i of s.keys())t.add(i);return Array.from(t)};removeScriptingObject=(e,t)=>{const s=this.#e(e);if(t)this.#s({objectId:s,guestId:t});else{this.#s({objectId:s});const i=this.#t.get(s);i&&this.#n(i),this.#t.delete(s)}};removeAllScriptingObjects=e=>{e?this.#s({guestId:e}):(this.#t.forEach(this.#n),this.#t.clear())}}class ie{__TYPE__="Proxy";id;objectType;constructor(e,t){this.id=e,this.objectType=t}}const tt=r=>r?.constructor?.name==="Proxy"||r?.constructor?.name==="ScriptingObjectProxy"||r?.__TYPE__==="Proxy";class Q{#e=new Map;#t=new WeakMap;#r;constructor(e){this.#r=e}#a=(e,t)=>{const s=new Promise(i=>{setTimeout(()=>{i()},t)});return Promise.race([e,s])};#n=(e,t)=>{const s=t?.guestId;return!s||!e.guestId?!0:e.guestId===s};#i=e=>{const{eventName:t,scriptingObject:s,eventParams:i,listeners:d,eventOptions:h}=e;d.forEach(v=>{this.#n(v,h)&&(v.criteria&&!(i&&this.#c(i,v.criteria))||Promise.resolve(v.callback({obj:s,eventName:t,eventParams:i})).catch(S=>{this.#r?.warn(`Error in event listener for "${t}": ${S.message}`)}))})};#s=async({eventId:e,eventName:t,scriptingObject:s,eventParams:i,feedbackWaitTime:d,eventOptions:h})=>{const S=(this.#e.get(e)||[]).map(E=>!this.#n(E,h)||E.criteria&&!(i?this.#c(i,E.criteria):!1)?Promise.resolve():this.#a(E.callback({obj:s,eventName:t,eventParams:i}),d));return(await Promise.all(S)).flat(1/0).filter(E=>E!==void 0)};#c(e,t){return Object.entries(t).every(([s,i])=>{const d=e[s];if("eq"in i)return d===i.eq;if("in"in i)return Array.isArray(i.in)&&i.in.includes(d);if("includes"in i)return Array.isArray(d)&&d.includes(i.includes);if("gt"in i){const h=typeof d=="number"?d:Number(d);return!Number.isNaN(h)&&h>i.gt}if("lt"in i){const h=typeof d=="number"?d:Number(d);return!Number.isNaN(h)&&h<i.lt}if("regex"in i){let h=this.#t.get(i);if(h===void 0){try{h=new RegExp(i.regex)}catch{h=null}this.#t.set(i,h)}return h!==null&&typeof d=="string"&&h.test(d)}return!1})}dispatchEvent=async(e,t)=>{const{event:{id:s,name:i},eventParams:d,eventOptions:h}=t,{timeout:v}=h??{};if(!s)throw new Error("Event Id is required");const S=this.#e.get(s)||[];return!v||v<=0?(this.#i({eventName:i,scriptingObject:e,eventParams:d,listeners:S,eventOptions:h}),Promise.resolve()):this.#s({eventId:s,eventName:i,scriptingObject:e,eventParams:d,feedbackWaitTime:v,eventOptions:h})};subscribe=e=>{const{eventId:t,callback:s,criteria:i,guestId:d,ownerInstanceId:h}=e;if(!t)throw new Error("eventId is required");if(!s)throw new Error("Callback is required");const v=this.#e.get(t)||[],S=At();return v.push({token:S,criteria:i,guestId:d,...h?{ownerInstanceId:h}:{},callback:s}),this.#e.set(t,v),S};#o=(e,t)=>{const s=this.#e.get(e);if(!s)return;const i=s.filter(d=>!t(d));i.length===0?this.#e.delete(e):i.length!==s.length&&this.#e.set(e,i)};unsubscribe=e=>{const{eventId:t,token:s,ownerInstanceId:i}=e;if(!t)throw new Error("eventId id is required");const d=h=>!i||h.ownerInstanceId===i;if(s!=null){const h=this.#e.get(t)?.find(v=>v.token===s);if(!h)return;if(!d(h)){this.#r?.warn(`Ignoring unsubscribe from ${t} by ${String(i)}: the subscription belongs to another owner`);return}this.#o(t,v=>v.token===s)}else i?this.#o(t,d):this.#e.delete(t)};unsubscribeAll=()=>{this.#e.clear()};unsubscribeByGuestId=e=>{e&&[...this.#e.keys()].forEach(t=>{this.#o(t,s=>s.guestId===e||s.ownerInstanceId===e)})}}const Ke=Y.p+"4cbbcfa9ded96b660559.html?resource",Ge="pui-app-container-",Yt=r=>{const e=r.src??Ke.default??Ke,t=Oe(e);if(!r.queryParams)return t;const s=r.queryParams.replace(/[^a-zA-Z0-9&=_.~%+-]/g,"");return`${t}${t.includes("?")?"&":"?"}${s}`},it=({documentEle:r,hostUrl:e,manifestPath:t,guestId:s})=>{const i=r.getElementById(Ge);i&&(i.id=`${i.id}${s}`);const d=ve(e,t);let h=r.getElementsByTagName("base")?.[0];if(h){h.href=d;return}h=r.createElement("base"),h.href=d,r.getElementsByTagName("head")[0].appendChild(h)},He=({id:r,instanceId:e,manifestPath:t,hostUrl:s,options:i})=>new Promise((d,h)=>{const{signal:v}=i;if(v?.aborted){h(new DOMException("iframe creation aborted","AbortError"));return}const S=document.createElement("div");S.setAttribute("style","display: flex;width: 100%;height: 100%;flex-direction: column;overflow: hidden;");const A=document.createElement("iframe");A.setAttribute("id",e),A.setAttribute("data-testid",r),A.setAttribute("title",i.title),A.setAttribute("allowfullscreen","true"),A.setAttribute("allowtransparency","true"),i.permissionPolicy&&A.setAttribute("allow",i.permissionPolicy),i.sandbox&&A.setAttribute("sandbox",i.sandbox),A.setAttribute("style",i.style??"flex-grow: 1;border: none;margin: 0;padding: 0;display: block;min-width: 100%;height: 100%;"),A.setAttribute("src",Yt(i));const E=1e4;let O=!1,k,N;const F=()=>{clearTimeout(k),v?.removeEventListener("abort",N)},D=()=>v?.aborted?(O||(O=!0,F(),S.remove(),h(new DOMException("iframe creation aborted","AbortError"))),!0):!1;if(N=()=>{D()},D())return;v?.addEventListener("abort",N),k=setTimeout(()=>{O||(O=!0,F(),S.remove(),h(new Error(`iframe for ${r} failed to load within ${E}ms`)))},E),A.addEventListener("error",()=>{O||(O=!0,F(),S.remove(),h(new Error(`iframe for ${r} failed to load`)))}),A.addEventListener("load",()=>{O||D()||A.contentDocument&&(O=!0,F(),it({documentEle:A.contentDocument,hostUrl:s,manifestPath:t,guestId:r}),d(A))}),S.appendChild(A);const{containerId:M}=i;(document.getElementById(M??"")??document.body).appendChild(S)}),xe=r=>document.getElementById(r),Re={create:He,remove:r=>{const e=xe(r);e&&e.parentElement?.remove()},get:xe},Xt=()=>({breakpoints:["512px","768px","1024px","350px"],spaces:["0","4px","8px","12px","16px","32px","48px","56px","64px","72px"],fontSizes:["0.8461rem","0.9230rem","1rem","1.0769rem","1.2307rem","1.3846rem","1.8461rem","2.7692rem"],fontWeights:[100,200,300,400,500,600,700,800,900],lineHeights:["1rem","1.15rem","1.25rem","1.5rem"],letterSpacings:["normal","0.1rem","-0.05rem","0.25rem"],fonts:["proxima-nova, Arial, sans-serif"],colors:{neutral:["#FFFFFF","#F6F7F9","#EBEDF0","#E0E3E8","#CBCFD7","#B0B9C8","#8C93A6","#697489","#464F5C","#353C46","#25292F"],brand:["#F6FBFF","#EBF6FF","#A3D6FF","#52A6EC","#1394E5","#1E79C2","#006AA9","#005181","#C9E7FF"],success:["#E1F4ED","#E1F4ED","#289F6B","#207E56","#185D44"],warning:["#FFEFD8","#E06C29","#B25119","#853C12"],danger:["#FBEBED","#FBEBED","#ED5A64","#C64252","#A11B2B"]},shadows:["0 1px 5px 0 rgba(0, 0, 0, 0.13), 0 2px 4px 0 rgba(0, 0, 0, 0.2)","0 6px 20px 0 rgba(0, 0, 0, 0.24), 0 8px 17px 0 rgba(0, 0, 0, 0.19)","0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19)","0 16px 28px 0 rgba(0, 0, 0, 0.24), 0 25px 55px 0 rgba(0, 0, 0, 0.19)","0 27px 24px 0 rgba(0, 0, 0, 0.24), 0 40px 77px 0 rgba(0, 0, 0, 0.19)"],zIndex:[1e3,2e3,3e3,500,4e3],states:[null,"@media (prefers-reduced-motion: no-preference)","@media (prefers-reduced-motion: reduce)","&:first-child","&:last-child","&:odd","&:even","&:visited","&:checked","&:focus-within","&:hover","&:focus","&:focus-visible","&:active","&:disabled, &[aria-disabled=true]","&::placeholder"]});n();var De=Y(4883),Pe=Y.n(De),Ct=Y(162),Ot=Y.n(Ct);function Zt(r){function e(R,I,j,B,b){for(var te=0,C=0,he=0,re=0,se,V,Se=0,Me=0,Z,Te=Z=se=0,ne=0,Ae=0,yt=0,Ee=0,kt=j.length,bt=kt-1,Ve,z="",ge="",gr="",mr="",Qe;ne<kt;){if(V=j.charCodeAt(ne),ne===bt&&C+re+he+te!==0&&(C!==0&&(V=C===47?10:47),re=he=te=0,kt++,bt++),C+re+he+te===0){if(ne===bt&&(0<Ae&&(z=z.replace(k,"")),0<z.trim().length)){switch(V){case 32:case 9:case 59:case 13:case 10:break;default:z+=j.charAt(ne)}V=59}switch(V){case 123:for(z=z.trim(),se=z.charCodeAt(0),Z=1,Ee=++ne;ne<kt;){switch(V=j.charCodeAt(ne)){case 123:Z++;break;case 125:Z--;break;case 47:switch(V=j.charCodeAt(ne+1)){case 42:case 47:e:{for(Te=ne+1;Te<bt;++Te)switch(j.charCodeAt(Te)){case 47:if(V===42&&j.charCodeAt(Te-1)===42&&ne+2!==Te){ne=Te+1;break e}break;case 10:if(V===47){ne=Te+1;break e}}ne=Te}}break;case 91:V++;case 40:V++;case 34:case 39:for(;ne++<bt&&j.charCodeAt(ne)!==V;);}if(Z===0)break;ne++}switch(Z=j.substring(Ee,ne),se===0&&(se=(z=z.replace(O,"").trim()).charCodeAt(0)),se){case 64:switch(0<Ae&&(z=z.replace(k,"")),V=z.charCodeAt(1),V){case 100:case 109:case 115:case 45:Ae=I;break;default:Ae=gt}if(Z=e(I,Ae,Z,V,b+1),Ee=Z.length,0<Ne&&(Ae=t(gt,z,yt),Qe=v(3,Z,Ae,I,ze,Fe,Ee,V,b,B),z=Ae.join(""),Qe!==void 0&&(Ee=(Z=Qe.trim()).length)===0&&(V=0,Z="")),0<Ee)switch(V){case 115:z=z.replace(Ie,h);case 100:case 109:case 45:Z=z+"{"+Z+"}";break;case 107:z=z.replace(W,"$1 $2"),Z=z+"{"+Z+"}",Z=je===1||je===2&&d("@"+Z,3)?"@-webkit-"+Z+"@"+Z:"@"+Z;break;default:Z=z+Z,B===112&&(Z=(ge+=Z,""))}else Z="";break;default:Z=e(I,t(I,z,yt),Z,B,b+1)}gr+=Z,Z=yt=Ae=Te=se=0,z="",V=j.charCodeAt(++ne);break;case 125:case 59:if(z=(0<Ae?z.replace(k,""):z).trim(),1<(Ee=z.length))switch(Te===0&&(se=z.charCodeAt(0),se===45||96<se&&123>se)&&(Ee=(z=z.replace(" ",":")).length),0<Ne&&(Qe=v(1,z,I,R,ze,Fe,ge.length,B,b,B))!==void 0&&(Ee=(z=Qe.trim()).length)===0&&(z="\0\0"),se=z.charCodeAt(0),V=z.charCodeAt(1),se){case 0:break;case 64:if(V===105||V===99){mr+=z+j.charAt(ne);break}default:z.charCodeAt(Ee-1)!==58&&(ge+=i(z,se,V,z.charCodeAt(2)))}yt=Ae=Te=se=0,z="",V=j.charCodeAt(++ne)}}switch(V){case 13:case 10:C===47?C=0:1+se===0&&B!==107&&0<z.length&&(Ae=1,z+="\0"),0<Ne*ut&&v(0,z,I,R,ze,Fe,ge.length,B,b,B),Fe=1,ze++;break;case 59:case 125:if(C+re+he+te===0){Fe++;break}default:switch(Fe++,Ve=j.charAt(ne),V){case 9:case 32:if(re+te+C===0)switch(Se){case 44:case 58:case 9:case 32:Ve="";break;default:V!==32&&(Ve=" ")}break;case 0:Ve="\\0";break;case 12:Ve="\\f";break;case 11:Ve="\\v";break;case 38:re+C+te===0&&(Ae=yt=1,Ve="\f"+Ve);break;case 108:if(re+C+te+_e===0&&0<Te)switch(ne-Te){case 2:Se===112&&j.charCodeAt(ne-3)===58&&(_e=Se);case 8:Me===111&&(_e=Me)}break;case 58:re+C+te===0&&(Te=ne);break;case 44:C+he+re+te===0&&(Ae=1,Ve+="\r");break;case 34:case 39:C===0&&(re=re===V?0:re===0?V:re);break;case 91:re+C+he===0&&te++;break;case 93:re+C+he===0&&te--;break;case 41:re+C+te===0&&he--;break;case 40:if(re+C+te===0){if(se===0)switch(2*Se+3*Me){case 533:break;default:se=1}he++}break;case 64:C+he+re+te+Te+Z===0&&(Z=1);break;case 42:case 47:if(!(0<re+te+he))switch(C){case 0:switch(2*V+3*j.charCodeAt(ne+1)){case 235:C=47;break;case 220:Ee=ne,C=42}break;case 42:V===47&&Se===42&&Ee+2!==ne&&(j.charCodeAt(Ee+2)===33&&(ge+=j.substring(Ee,ne+1)),Ve="",C=0)}}C===0&&(z+=Ve)}Me=Se,Se=V,ne++}if(Ee=ge.length,0<Ee){if(Ae=I,0<Ne&&(Qe=v(2,ge,Ae,R,ze,Fe,Ee,B,b,B),Qe!==void 0&&(ge=Qe).length===0))return mr+ge+gr;if(ge=Ae.join(",")+"{"+ge+"}",je*_e!==0){switch(je!==2||d(ge,2)||(_e=0),_e){case 111:ge=ge.replace(ee,":-moz-$1")+ge;break;case 112:ge=ge.replace(ue,"::-webkit-input-$1")+ge.replace(ue,"::-moz-$1")+ge.replace(ue,":-ms-input-$1")+ge}_e=0}}return mr+ge+gr}function t(R,I,j){var B=I.trim().split(M);I=B;var b=B.length,te=R.length;switch(te){case 0:case 1:var C=0;for(R=te===0?"":R[0]+" ";C<b;++C)I[C]=s(R,I[C],j).trim();break;default:var he=C=0;for(I=[];C<b;++C)for(var re=0;re<te;++re)I[he++]=s(R[re]+" ",B[C],j).trim()}return I}function s(R,I,j){var B=I.charCodeAt(0);switch(33>B&&(B=(I=I.trim()).charCodeAt(0)),B){case 38:return I.replace(X,"$1"+R.trim());case 58:return R.trim()+I.replace(X,"$1"+R.trim());default:if(0<1*j&&0<I.indexOf("\f"))return I.replace(X,(R.charCodeAt(0)===58?"":"$1")+R.trim())}return R+I}function i(R,I,j,B){var b=R+";",te=2*I+3*j+4*B;if(te===944){R=b.indexOf(":",9)+1;var C=b.substring(R,b.length-1).trim();return C=b.substring(0,R).trim()+C+";",je===1||je===2&&d(C,1)?"-webkit-"+C+C:C}if(je===0||je===2&&!d(b,1))return b;switch(te){case 1015:return b.charCodeAt(10)===97?"-webkit-"+b+b:b;case 951:return b.charCodeAt(3)===116?"-webkit-"+b+b:b;case 963:return b.charCodeAt(5)===110?"-webkit-"+b+b:b;case 1009:if(b.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+b+b;case 978:return"-webkit-"+b+"-moz-"+b+b;case 1019:case 983:return"-webkit-"+b+"-moz-"+b+"-ms-"+b+b;case 883:if(b.charCodeAt(8)===45)return"-webkit-"+b+b;if(0<b.indexOf("image-set(",11))return b.replace(lt,"$1-webkit-$2")+b;break;case 932:if(b.charCodeAt(4)===45)switch(b.charCodeAt(5)){case 103:return"-webkit-box-"+b.replace("-grow","")+"-webkit-"+b+"-ms-"+b.replace("grow","positive")+b;case 115:return"-webkit-"+b+"-ms-"+b.replace("shrink","negative")+b;case 98:return"-webkit-"+b+"-ms-"+b.replace("basis","preferred-size")+b}return"-webkit-"+b+"-ms-"+b+b;case 964:return"-webkit-"+b+"-ms-flex-"+b+b;case 1023:if(b.charCodeAt(8)!==99)break;return C=b.substring(b.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+C+"-webkit-"+b+"-ms-flex-pack"+C+b;case 1005:return F.test(b)?b.replace(N,":-webkit-")+b.replace(N,":-moz-")+b:b;case 1e3:switch(C=b.substring(13).trim(),I=C.indexOf("-")+1,C.charCodeAt(0)+C.charCodeAt(I)){case 226:C=b.replace(K,"tb");break;case 232:C=b.replace(K,"tb-rl");break;case 220:C=b.replace(K,"lr");break;default:return b}return"-webkit-"+b+"-ms-"+C+b;case 1017:if(b.indexOf("sticky",9)===-1)break;case 975:switch(I=(b=R).length-10,C=(b.charCodeAt(I)===33?b.substring(0,I):b).substring(R.indexOf(":",7)+1).trim(),te=C.charCodeAt(0)+(C.charCodeAt(7)|0)){case 203:if(111>C.charCodeAt(8))break;case 115:b=b.replace(C,"-webkit-"+C)+";"+b;break;case 207:case 102:b=b.replace(C,"-webkit-"+(102<te?"inline-":"")+"box")+";"+b.replace(C,"-webkit-"+C)+";"+b.replace(C,"-ms-"+C+"box")+";"+b}return b+";";case 938:if(b.charCodeAt(5)===45)switch(b.charCodeAt(6)){case 105:return C=b.replace("-items",""),"-webkit-"+b+"-webkit-box-"+C+"-ms-flex-"+C+b;case 115:return"-webkit-"+b+"-ms-flex-item-"+b.replace(fe,"")+b;default:return"-webkit-"+b+"-ms-flex-line-pack"+b.replace("align-content","").replace(fe,"")+b}break;case 973:case 989:if(b.charCodeAt(3)!==45||b.charCodeAt(4)===122)break;case 931:case 953:if(Xe.test(R)===!0)return(C=R.substring(R.indexOf(":")+1)).charCodeAt(0)===115?i(R.replace("stretch","fill-available"),I,j,B).replace(":fill-available",":stretch"):b.replace(C,"-webkit-"+C)+b.replace(C,"-moz-"+C.replace("fill-",""))+b;break;case 962:if(b="-webkit-"+b+(b.charCodeAt(5)===102?"-ms-"+b:"")+b,j+B===211&&b.charCodeAt(13)===105&&0<b.indexOf("transform",10))return b.substring(0,b.indexOf(";",27)+1).replace(D,"$1-webkit-$2")+b}return b}function d(R,I){var j=R.indexOf(I===1?":":"{"),B=R.substring(0,I!==3?j:10);return j=R.substring(j+1,R.length-1),mt(I!==2?B:B.replace(Le,"$1"),j,I)}function h(R,I){var j=i(I,I.charCodeAt(0),I.charCodeAt(1),I.charCodeAt(2));return j!==I+";"?j.replace(T," or ($1)").substring(4):"("+I+")"}function v(R,I,j,B,b,te,C,he,re,se){for(var V=0,Se=I,Me;V<Ne;++V)switch(Me=Be[V].call(E,R,Se,j,B,b,te,C,he,re,se)){case void 0:case!1:case!0:case null:break;default:Se=Me}if(Se!==I)return Se}function S(R){switch(R){case void 0:case null:Ne=Be.length=0;break;default:if(typeof R=="function")Be[Ne++]=R;else if(typeof R=="object")for(var I=0,j=R.length;I<j;++I)S(R[I]);else ut=!!R|0}return S}function A(R){return R=R.prefix,R!==void 0&&(mt=null,R?typeof R!="function"?je=1:(je=2,mt=R):je=0),A}function E(R,I){var j=R;if(33>j.charCodeAt(0)&&(j=j.trim()),vt=j,j=[vt],0<Ne){var B=v(-1,I,j,j,ze,Fe,0,0,0,0);B!==void 0&&typeof B=="string"&&(I=B)}var b=e(gt,j,I,0,0);return 0<Ne&&(B=v(-2,b,j,j,ze,Fe,b.length,0,0,0),B!==void 0&&(b=B)),vt="",_e=0,Fe=ze=1,b}var O=/^\0+/g,k=/[\0\r\f]/g,N=/: */g,F=/zoo|gra/,D=/([,: ])(transform)/g,M=/,\r+?/g,X=/([\t\r\n ])*\f?&/g,W=/@(k\w+)\s*(\S*)\s*/,ue=/::(place)/g,ee=/:(read-only)/g,K=/[svh]\w+-[tblr]{2}/,Ie=/\(\s*(.*)\s*\)/g,T=/([\s\S]*?);/g,fe=/-self|flex-/g,Le=/[^]*?(:[rp][el]a[\w-]+)[^]*/,Xe=/stretch|:\s*\w+\-(?:conte|avail)/,lt=/([^-])(image-set\()/,Fe=1,ze=1,_e=0,je=1,gt=[],Be=[],Ne=0,mt=null,ut=0,vt="";return E.use=S,E.set=A,r!==void 0&&A(r),E}const Tt=Zt;var We={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};const Ye=We;function _r(r){var e=Object.create(null);return function(t){return e[t]===void 0&&(e[t]=r(t)),e[t]}}var Kr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Sr=_r(function(r){return Kr.test(r)||r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)<91});o();function Jt(){return Jt.c||(Jt.c=Y.n(o()))}var Pt,Yr,It,Xr,Zr,Jr;function $e(){return($e=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}return r}).apply(this,arguments)}var Ar=function(r,e){for(var t=[r[0]],s=0,i=e.length;s<i;s+=1)t.push(e[s],r[s+1]);return t},Qt=function(r){return r!==null&&typeof r=="object"&&(r.toString?r.toString():Object.prototype.toString.call(r))==="[object Object]"&&!(0,f().typeOf)(r)},jt=Object.freeze([]),Ze=Object.freeze({});function at(r){return typeof r=="function"}function qt(r){return r.displayName||r.name||"Component"}function er(r){return r&&typeof r.styledComponentId=="string"}var Je=typeof process<"u"&&!0&&("MISSING_ENV_VAR".REACT_APP_SC_ATTR||"MISSING_ENV_VAR".SC_ATTR)||"data-styled",cs="5.3.11",tr=typeof window<"u"&&"HTMLElement"in window,Qr=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&("MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY!==void 0&&"MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY!==""?"MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY!=="false"&&"MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY:"MISSING_ENV_VAR".SC_DISABLE_SPEEDY!==void 0&&"MISSING_ENV_VAR".SC_DISABLE_SPEEDY!==""&&"MISSING_ENV_VAR".SC_DISABLE_SPEEDY!=="false"&&"MISSING_ENV_VAR".SC_DISABLE_SPEEDY)),qr=null,ls=null;function us(){for(var r=arguments.length<=0?void 0:arguments[0],e=[],t=1,s=arguments.length;t<s;t+=1)e.push(t<0||arguments.length<=t?void 0:arguments[t]);return e.forEach(function(i){r=r.replace(/%[a-z]/,i)}),r}function ke(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),s=1;s<e;s++)t[s-1]=arguments[s];throw new Error("An error occurred. See https://git.io/JUIaE#"+r+" for more information."+(t.length>0?" Args: "+t.join(", "):""))}var en=function(){function r(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}var e=r.prototype;return e.indexOfGroup=function(t){for(var s=0,i=0;i<t;i++)s+=this.groupSizes[i];return s},e.insertRules=function(t,s){if(t>=this.groupSizes.length){for(var i=this.groupSizes,d=i.length,h=d;t>=h;)(h<<=1)<0&&ke(16,""+t);this.groupSizes=new Uint32Array(h),this.groupSizes.set(i),this.length=h;for(var v=d;v<h;v++)this.groupSizes[v]=0}for(var S=this.indexOfGroup(t+1),A=0,E=s.length;A<E;A++)this.tag.insertRule(S,s[A])&&(this.groupSizes[t]++,S++)},e.clearGroup=function(t){if(t<this.length){var s=this.groupSizes[t],i=this.indexOfGroup(t),d=i+s;this.groupSizes[t]=0;for(var h=i;h<d;h++)this.tag.deleteRule(i)}},e.getGroup=function(t){var s="";if(t>=this.length||this.groupSizes[t]===0)return s;for(var i=this.groupSizes[t],d=this.indexOfGroup(t),h=d+i,v=d;v<h;v++)s+=this.tag.getRule(v)+`/*!sc*/
|
|
9
|
+
`;return s},r}(),Mt=new Map,Rt=new Map,dt=1,$t=function(r){if(Mt.has(r))return Mt.get(r);for(;Rt.has(dt);)dt++;var e=dt++;return Mt.set(r,e),Rt.set(e,r),e},tn=function(r){return Rt.get(r)},rn=function(r,e){e>=dt&&(dt=e+1),Mt.set(r,e),Rt.set(e,r)},nn="style["+Je+'][data-styled-version="5.3.11"]',sn=new RegExp("^"+Je+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),on=function(r,e,t){for(var s,i=t.split(","),d=0,h=i.length;d<h;d++)(s=i[d])&&r.registerName(e,s)},an=function(r,e){for(var t=(e.textContent||"").split(`/*!sc*/
|
|
10
|
+
`),s=[],i=0,d=t.length;i<d;i++){var h=t[i].trim();if(h){var v=h.match(sn);if(v){var S=0|parseInt(v[1],10),A=v[2];S!==0&&(rn(A,S),on(r,A,v[3]),r.getTag().insertRules(S,s)),s.length=0}else s.push(h)}}},rr=function(){return Y.nc},Er=function(r){var e=document.head,t=r||e,s=document.createElement("style"),i=function(v){for(var S=v.childNodes,A=S.length;A>=0;A--){var E=S[A];if(E&&E.nodeType===1&&E.hasAttribute(Je))return E}}(t),d=i!==void 0?i.nextSibling:null;s.setAttribute(Je,"active"),s.setAttribute("data-styled-version","5.3.11");var h=rr();return h&&s.setAttribute("nonce",h),t.insertBefore(s,d),s},cn=function(){function r(t){var s=this.element=Er(t);s.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var d=document.styleSheets,h=0,v=d.length;h<v;h++){var S=d[h];if(S.ownerNode===i)return S}ke(17)}(s),this.length=0}var e=r.prototype;return e.insertRule=function(t,s){try{return this.sheet.insertRule(s,t),this.length++,!0}catch{return!1}},e.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.getRule=function(t){var s=this.sheet.cssRules[t];return s!==void 0&&typeof s.cssText=="string"?s.cssText:""},r}(),ln=function(){function r(t){var s=this.element=Er(t);this.nodes=s.childNodes,this.length=0}var e=r.prototype;return e.insertRule=function(t,s){if(t<=this.length&&t>=0){var i=document.createTextNode(s),d=this.nodes[t];return this.element.insertBefore(i,d||null),this.length++,!0}return!1},e.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},r}(),un=function(){function r(t){this.rules=[],this.length=0}var e=r.prototype;return e.insertRule=function(t,s){return t<=this.length&&(this.rules.splice(t,0,s),this.length++,!0)},e.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.getRule=function(t){return t<this.length?this.rules[t]:""},r}(),Cr=tr,pn={isServer:!tr,useCSSOMInjection:!Qr},ft=function(){function r(t,s,i){t===void 0&&(t=Ze),s===void 0&&(s={}),this.options=$e({},pn,{},t),this.gs=s,this.names=new Map(i),this.server=!!t.isServer,!this.server&&tr&&Cr&&(Cr=!1,function(d){for(var h=document.querySelectorAll(nn),v=0,S=h.length;v<S;v++){var A=h[v];A&&A.getAttribute(Je)!=="active"&&(an(d,A),A.parentNode&&A.parentNode.removeChild(A))}}(this))}r.registerId=function(t){return $t(t)};var e=r.prototype;return e.reconstructWithOptions=function(t,s){return s===void 0&&(s=!0),new r($e({},this.options,{},t),this.gs,s&&this.names||void 0)},e.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.getTag=function(){return this.tag||(this.tag=(i=(s=this.options).isServer,d=s.useCSSOMInjection,h=s.target,t=i?new un(h):d?new cn(h):new ln(h),new en(t)));var t,s,i,d,h},e.hasNameForId=function(t,s){return this.names.has(t)&&this.names.get(t).has(s)},e.registerName=function(t,s){if($t(t),this.names.has(t))this.names.get(t).add(s);else{var i=new Set;i.add(s),this.names.set(t,i)}},e.insertRules=function(t,s,i){this.registerName(t,s),this.getTag().insertRules($t(t),i)},e.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.clearRules=function(t){this.getTag().clearGroup($t(t)),this.clearNames(t)},e.clearTag=function(){this.tag=void 0},e.toString=function(){return function(t){for(var s=t.getTag(),i=s.length,d="",h=0;h<i;h++){var v=tn(h);if(v!==void 0){var S=t.names.get(v),A=s.getGroup(h);if(S&&A&&S.size){var E=Je+".g"+h+'[id="'+v+'"]',O="";S!==void 0&&S.forEach(function(k){k.length>0&&(O+=k+",")}),d+=""+A+E+'{content:"'+O+`"}/*!sc*/
|
|
11
|
+
`}}}return d}(this)},r}(),dn=/(a)(d)/gi,Or=function(r){return String.fromCharCode(r+(r>25?39:97))};function nr(r){var e,t="";for(e=Math.abs(r);e>52;e=e/52|0)t=Or(e%52)+t;return(Or(e%52)+t).replace(dn,"$1-$2")}var ct=function(r,e){for(var t=e.length;t;)r=33*r^e.charCodeAt(--t);return r},Tr=function(r){return ct(5381,r)};function Pr(r){for(var e=0;e<r.length;e+=1){var t=r[e];if(at(t)&&!er(t))return!1}return!0}var fn=Tr("5.3.11"),hn=function(){function r(e,t,s){this.rules=e,this.staticRulesId="",this.isStatic=(s===void 0||s.isStatic)&&Pr(e),this.componentId=t,this.baseHash=ct(fn,t),this.baseStyle=s,ft.registerId(t)}return r.prototype.generateAndInjectStyles=function(e,t,s){var i=this.componentId,d=[];if(this.baseStyle&&d.push(this.baseStyle.generateAndInjectStyles(e,t,s)),this.isStatic&&!s.hash)if(this.staticRulesId&&t.hasNameForId(i,this.staticRulesId))d.push(this.staticRulesId);else{var h=rt(this.rules,e,t,s).join(""),v=nr(ct(this.baseHash,h)>>>0);if(!t.hasNameForId(i,v)){var S=s(h,"."+v,void 0,i);t.insertRules(i,v,S)}d.push(v),this.staticRulesId=v}else{for(var A=this.rules.length,E=ct(this.baseHash,s.hash),O="",k=0;k<A;k++){var N=this.rules[k];if(typeof N=="string")O+=N;else if(N){var F=rt(N,e,t,s),D=Array.isArray(F)?F.join(""):F;E=ct(E,D+k),O+=D}}if(O){var M=nr(E>>>0);if(!t.hasNameForId(i,M)){var X=s(O,"."+M,void 0,i);t.insertRules(i,M,X)}d.push(M)}}return d.join(" ")},r}(),gn=/^\s*\/\/.*$/gm,mn=[":","[",".","#"];function Ir(r){var e,t,s,i,d=r===void 0?Ze:r,h=d.options,v=h===void 0?Ze:h,S=d.plugins,A=S===void 0?jt:S,E=new Tt(v),O=[],k=function(D){function M(X){if(X)try{D(X+"}")}catch{}}return function(X,W,ue,ee,K,Ie,T,fe,Le,Xe){switch(X){case 1:if(Le===0&&W.charCodeAt(0)===64)return D(W+";"),"";break;case 2:if(fe===0)return W+"/*|*/";break;case 3:switch(fe){case 102:case 112:return D(ue[0]+W),"";default:return W+(Xe===0?"/*|*/":"")}case-2:W.split("/*|*/}").forEach(M)}}}(function(D){O.push(D)}),N=function(D,M,X){return M===0&&mn.indexOf(X[t.length])!==-1||X.match(i)?D:"."+e};function F(D,M,X,W){W===void 0&&(W="&");var ue=D.replace(gn,""),ee=M&&X?X+" "+M+" { "+ue+" }":ue;return e=W,t=M,s=new RegExp("\\"+t+"\\b","g"),i=new RegExp("(\\"+t+"\\b){2,}"),E(X||!M?"":M,ee)}return E.use([].concat(A,[function(D,M,X){D===2&&X.length&&X[0].lastIndexOf(t)>0&&(X[0]=X[0].replace(s,N))},k,function(D){if(D===-2){var M=O;return O=[],M}}])),F.hash=A.length?A.reduce(function(D,M){return M.name||ke(15),ct(D,M.name)},5381).toString():"",F}var sr=Pe().createContext(),ps=sr.Consumer,or=Pe().createContext(),vn=(or.Consumer,new ft),ir=Ir();function ar(){return(0,De.useContext)(sr)||vn}function jr(){return(0,De.useContext)(or)||ir}function yn(r){var e=(0,De.useState)(r.stylisPlugins),t=e[0],s=e[1],i=ar(),d=(0,De.useMemo)(function(){var v=i;return r.sheet?v=r.sheet:r.target&&(v=v.reconstructWithOptions({target:r.target},!1)),r.disableCSSOMInjection&&(v=v.reconstructWithOptions({useCSSOMInjection:!1})),v},[r.disableCSSOMInjection,r.sheet,r.target]),h=(0,De.useMemo)(function(){return Ir({options:{prefix:!r.disableVendorPrefixes},plugins:t})},[r.disableVendorPrefixes,t]);return(0,De.useEffect)(function(){Ot()(t,r.stylisPlugins)||s(r.stylisPlugins)},[r.stylisPlugins]),Pe().createElement(sr.Provider,{value:d},Pe().createElement(or.Provider,{value:h},r.children))}var Mr=function(){function r(e,t){var s=this;this.inject=function(i,d){d===void 0&&(d=ir);var h=s.name+d.hash;i.hasNameForId(s.id,h)||i.insertRules(s.id,h,d(s.rules,h,"@keyframes"))},this.toString=function(){return ke(12,String(s.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return r.prototype.getName=function(e){return e===void 0&&(e=ir),this.name+e.hash},r}(),bn=/([A-Z])/,wn=/([A-Z])/g,xn=/^ms-/,Sn=function(r){return"-"+r.toLowerCase()};function Rr(r){return bn.test(r)?r.replace(wn,Sn).replace(xn,"-ms-"):r}var $r=function(r){return r==null||r===!1||r===""};function rt(r,e,t,s){if(Array.isArray(r)){for(var i,d=[],h=0,v=r.length;h<v;h+=1)(i=rt(r[h],e,t,s))!==""&&(Array.isArray(i)?d.push.apply(d,i):d.push(i));return d}if($r(r))return"";if(er(r))return"."+r.styledComponentId;if(at(r)){if(typeof(A=r)!="function"||A.prototype&&A.prototype.isReactComponent||!e)return r;var S=r(e);return rt(S,e,t,s)}var A;return r instanceof Mr?t?(r.inject(t,s),r.getName(s)):r:Qt(r)?function E(O,k){var N,F,D=[];for(var M in O)O.hasOwnProperty(M)&&!$r(O[M])&&(Array.isArray(O[M])&&O[M].isCss||at(O[M])?D.push(Rr(M)+":",O[M],";"):Qt(O[M])?D.push.apply(D,E(O[M],M)):D.push(Rr(M)+": "+(N=M,(F=O[M])==null||typeof F=="boolean"||F===""?"":typeof F!="number"||F===0||N in Ye||N.startsWith("--")?String(F).trim():F+"px")+";"));return k?[k+" {"].concat(D,["}"]):D}(r):r.toString()}var Fr=function(r){return Array.isArray(r)&&(r.isCss=!0),r};function ht(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),s=1;s<e;s++)t[s-1]=arguments[s];return at(r)||Qt(r)?Fr(rt(Ar(jt,[r].concat(t)))):t.length===0&&r.length===1&&typeof r[0]=="string"?r:Fr(rt(Ar(r,t)))}var ds=/invalid hook call/i,fs=new Set,hs=function(r,e){if(0)var t,s,i},cr=function(r,e,t){return t===void 0&&(t=Ze),r.theme!==t.theme&&r.theme||e||t.theme},An=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,En=/(^-|-$)/g;function lr(r){return r.replace(An,"-").replace(En,"")}var ur=function(r){return nr(Tr(r)>>>0)};function Ft(r){return typeof r=="string"&&!0}var pr=function(r){return typeof r=="function"||typeof r=="object"&&r!==null&&!Array.isArray(r)},Cn=function(r){return r!=="__proto__"&&r!=="constructor"&&r!=="prototype"};function On(r,e,t){var s=r[t];pr(e)&&pr(s)?Dr(s,e):r[t]=e}function Dr(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),s=1;s<e;s++)t[s-1]=arguments[s];for(var i=0,d=t;i<d.length;i++){var h=d[i];if(pr(h))for(var v in h)Cn(v)&&On(r,h[v],v)}return r}var nt=Pe().createContext(),gs=nt.Consumer;function ms(r){var e=Pt(nt),t=Yr(function(){return function(s,i){if(!s)return ke(14);if(at(s)){var d=s(i);return d}return Array.isArray(s)||typeof s!="object"?ke(8):i?$e({},i,{},s):s}(r.theme,e)},[r.theme,e]);return r.children?It.createElement(nt.Provider,{value:t},r.children):null}var dr={};function Lr(r,e,t){var s=er(r),i=!Ft(r),d=e.attrs,h=d===void 0?jt:d,v=e.componentId,S=v===void 0?function(W,ue){var ee=typeof W!="string"?"sc":lr(W);dr[ee]=(dr[ee]||0)+1;var K=ee+"-"+ur("5.3.11"+ee+dr[ee]);return ue?ue+"-"+K:K}(e.displayName,e.parentComponentId):v,A=e.displayName,E=A===void 0?function(W){return Ft(W)?"styled."+W:"Styled("+qt(W)+")"}(r):A,O=e.displayName&&e.componentId?lr(e.displayName)+"-"+e.componentId:e.componentId||S,k=s&&r.attrs?Array.prototype.concat(r.attrs,h).filter(Boolean):h,N=e.shouldForwardProp;s&&r.shouldForwardProp&&(N=e.shouldForwardProp?function(W,ue,ee){return r.shouldForwardProp(W,ue,ee)&&e.shouldForwardProp(W,ue,ee)}:r.shouldForwardProp);var F,D=new hn(t,O,s?r.componentStyle:void 0),M=D.isStatic&&h.length===0,X=function(W,ue){return function(ee,K,Ie,T){var fe=ee.attrs,Le=ee.componentStyle,Xe=ee.defaultProps,lt=ee.foldedComponentIds,Fe=ee.shouldForwardProp,ze=ee.styledComponentId,_e=ee.target,je=function(B,b,te){B===void 0&&(B=Ze);var C=$e({},b,{theme:B}),he={};return te.forEach(function(re){var se,V,Se,Me=re;for(se in at(Me)&&(Me=Me(C)),Me)C[se]=he[se]=se==="className"?(V=he[se],Se=Me[se],V&&Se?V+" "+Se:V||Se):Me[se]}),[C,he]}(cr(K,(0,De.useContext)(nt),Xe)||Ze,K,fe),gt=je[0],Be=je[1],Ne=function(B,b,te,C){var he=ar(),re=jr(),se=b?B.generateAndInjectStyles(Ze,he,re):B.generateAndInjectStyles(te,he,re);return se}(Le,T,gt,void 0),mt=Ie,ut=Be.$as||K.$as||Be.as||K.as||_e,vt=Ft(ut),R=Be!==K?$e({},K,{},Be):K,I={};for(var j in R)j[0]!=="$"&&j!=="as"&&(j==="forwardedAs"?I.as=R[j]:(Fe?Fe(j,Sr,ut):!vt||Sr(j))&&(I[j]=R[j]));return K.style&&Be.style!==K.style&&(I.style=$e({},K.style,{},Be.style)),I.className=Array.prototype.concat(lt,ze,Ne!==ze?Ne:null,K.className,Be.className).filter(Boolean).join(" "),I.ref=mt,(0,De.createElement)(ut,I)}(F,W,ue,M)};return X.displayName=E,(F=Pe().forwardRef(X)).attrs=k,F.componentStyle=D,F.displayName=E,F.shouldForwardProp=N,F.foldedComponentIds=s?Array.prototype.concat(r.foldedComponentIds,r.styledComponentId):jt,F.styledComponentId=O,F.target=s?r.target:r,F.withComponent=function(W){var ue=e.componentId,ee=function(Ie,T){if(Ie==null)return{};var fe,Le,Xe={},lt=Object.keys(Ie);for(Le=0;Le<lt.length;Le++)fe=lt[Le],T.indexOf(fe)>=0||(Xe[fe]=Ie[fe]);return Xe}(e,["componentId"]),K=ue&&ue+"-"+(Ft(W)?W:lr(qt(W)));return Lr(W,$e({},ee,{attrs:k,componentId:K}),t)},Object.defineProperty(F,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(W){this._foldedDefaultProps=s?Dr({},r.defaultProps,W):W}}),Object.defineProperty(F,"toString",{value:function(){return"."+F.styledComponentId}}),i&&Jt()()(F,r,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),F}var Nr=function(r){return function e(t,s,i){if(i===void 0&&(i=Ze),!(0,f().isValidElementType)(s))return ke(1,String(s));var d=function(){return t(s,i,ht.apply(void 0,arguments))};return d.withConfig=function(h){return e(t,s,$e({},i,{},h))},d.attrs=function(h){return e(t,s,$e({},i,{attrs:Array.prototype.concat(i.attrs,h).filter(Boolean)}))},d}(Lr,r)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(r){Nr[r]=Nr(r)});var Tn=function(){function r(t,s){this.rules=t,this.componentId=s,this.isStatic=Pr(t),ft.registerId(this.componentId+1)}var e=r.prototype;return e.createStyles=function(t,s,i,d){var h=d(rt(this.rules,s,i,d).join(""),""),v=this.componentId+t;i.insertRules(v,v,h)},e.removeStyles=function(t,s){s.clearRules(this.componentId+t)},e.renderStyles=function(t,s,i,d){t>2&&ft.registerId(this.componentId+t),this.removeStyles(t,i),this.createStyles(t,s,i,d)},r}();function vs(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),s=1;s<e;s++)t[s-1]=arguments[s];var i=ht.apply(void 0,[r].concat(t)),d="sc-global-"+ur(JSON.stringify(i)),h=new Tn(i,d);function v(A){var E=ar(),O=jr(),k=Pt(nt),N=Xr(E.allocateGSInstance(d)).current;return E.server&&S(N,A,E,k,O),Zr(function(){if(!E.server)return S(N,A,E,k,O),function(){return h.removeStyles(N,E)}},[N,A,E,k,O]),null}function S(A,E,O,k,N){if(h.isStatic)h.renderStyles(A,qr,O,N);else{var F=$e({},E,{theme:cr(E,k,v.defaultProps)});h.renderStyles(A,F,O,N)}}return It.memo(v)}function ys(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),s=1;s<e;s++)t[s-1]=arguments[s];var i=ht.apply(void 0,[r].concat(t)).join(""),d=ur(i);return new Mr(d,i)}var bs=function(){function r(){var t=this;this._emitSheetCSS=function(){var s=t.instance.toString();if(!s)return"";var i=rr();return"<style "+[i&&'nonce="'+i+'"',Je+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+s+"</style>"},this.getStyleTags=function(){return t.sealed?ke(2):t._emitSheetCSS()},this.getStyleElement=function(){var s;if(t.sealed)return ke(2);var i=((s={})[Je]="",s["data-styled-version"]="5.3.11",s.dangerouslySetInnerHTML={__html:t.instance.toString()},s),d=rr();return d&&(i.nonce=d),[Pe().createElement("style",$e({},i,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new ft({isServer:!0}),this.sealed=!1}var e=r.prototype;return e.collectStyles=function(t){return this.sealed?ke(2):Pe().createElement(yn,{sheet:this.instance},t)},e.interleaveWithNodeStream=function(t){return ke(3)},r}(),ws=function(r){var e=It.forwardRef(function(t,s){var i=Pt(nt),d=r.defaultProps,h=cr(t,i,d);return It.createElement(r,$e({},t,{theme:h,ref:s}))});return Jr(e,r),e.displayName="WithTheme("+qt(r)+")",e},xs=function(){return Pt(nt)},Ss=null;const As=null,Pn=r=>Object.keys(r).reduce((e,t)=>(e[t]=(s,...i)=>ht`
|
|
12
12
|
@media (max-width: ${r[t]}) {
|
|
13
13
|
${ht(s,...i)};
|
|
14
14
|
}
|
|
15
|
-
`,e),{}),Pn=r=>({space:{...r.spaces,xxxs:r.spaces[1],xxs:r.spaces[2],xxs2:r.spaces[3],xs:r.spaces[4],s:r.spaces[5],m:r.spaces[6],l:r.spaces[7],xl:r.spaces[8],xxl:r.spaces[9]},fontSizes:{...r.fontSizes,title:{500:r.fontSizes[3],600:r.fontSizes[4],700:r.fontSizes[5],800:r.fontSizes[6],900:r.fontSizes[7]},subTitle:{300:r.fontSizes[1],400:r.fontSizes[2]},label:{200:r.fontSizes[0],300:r.fontSizes[1],400:r.fontSizes[2]},value:{300:r.fontSizes[1],400:r.fontSizes[2],500:r.fontSizes[3],600:r.fontSizes[4]},hyperlink:{200:r.fontSizes[0],300:r.fontSizes[1],400:r.fontSizes[2]},microText:{200:r.fontSizes[0]}},fontWeights:{...r.fontWeights,thin:r.fontWeights[0],light:r.fontWeights[1],regular:r.fontWeights[3],semibold:r.fontWeights[5],bold:r.fontWeights[8]},lineHeights:{...r.lineHeights,r:r.lineHeights[0],m:r.lineHeights[1],l:r.lineHeights[2],xl:r.lineHeights[3]},letterSpacings:{normal:r.letterSpacings[0],tracked:r.letterSpacings[1],tight:r.letterSpacings[2],mega:r.letterSpacings[3]},fonts:{...r.fonts,default:r.fonts[0]},colors:{neutral:{"000":r.colors.neutral[0],"050":r.colors.neutral[1],"080":r.colors.neutral[2],100:r.colors.neutral[3],200:r.colors.neutral[4],300:r.colors.neutral[5],400:r.colors.neutral[6],500:r.colors.neutral[7],600:r.colors.neutral[8],700:r.colors.neutral[9],800:r.colors.neutral[10]},brand:{100:r.colors.brand[0],200:r.colors.brand[1],250:r.colors.brand[8],300:r.colors.brand[2],400:r.colors.brand[3],500:r.colors.brand[4],600:r.colors.brand[5],700:r.colors.brand[6],800:r.colors.brand[7]},success:{300:r.colors.success[0],400:r.colors.success[1],600:r.colors.success[2],900:r.colors.success[3],950:r.colors.success[4]},warning:{400:r.colors.warning[0],500:r.colors.warning[1],600:r.colors.warning[1],900:r.colors.warning[2],950:r.colors.warning[3]},danger:{200:r.colors.danger[0],400:r.colors.danger[1],600:r.colors.danger[2],900:r.colors.danger[3],950:r.colors.danger[4]}},shadows:{xs:r.shadows[0],s:r.shadows[1],m:r.shadows[2],l:r.shadows[3],xl:r.shadows[4]},breakpoints:{...r.breakpoints,xsmall:r.breakpoints[3],small:r.breakpoints[0],medium:r.breakpoints[1],large:r.breakpoints[2]},media:Tn({xsmall:r.breakpoints[3],small:r.breakpoints[0],medium:r.breakpoints[1],large:r.breakpoints[2]}),zIndex:{dialog:r.zIndex[0],popper:r.zIndex[1],tooltip:r.zIndex[2],backdrop:r.zIndex[3],loader:r.zIndex[4]},states:{_:r.states[0],motionSafe:r.states[1],motionReduce:r.states[2],first:r.states[3],last:r.states[4],odd:r.states[5],even:r.states[6],visited:r.states[7],checked:r.states[8],focusWithin:r.states[9],hover:r.states[10],focus:r.states[11],focusVisible:r.states[12],active:r.states[13],disabled:r.states[14],placeholder:r.states[15]}}),In=((r=Yt())=>()=>Pn(r))(),Es=()=>{try{return window.parent.document,window.parent}catch{return window}},dr=()=>({width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}),Nr=r=>Number(r.replace("px","")),Ur=()=>{const{width:r}=dr(),{breakpoints:e}=In();return r<=Nr(e.small)?"small":r<=Nr(e.medium)?"medium":"large"},jn="microFrontendApps",Mn=()=>!0,Rn=r=>Mn()?!0:String(r).toLowerCase()===ae.PRODUCTION.toLowerCase(),$n=r=>r?new URL(r).pathname:"",Fn=r=>{const e=document.createElement("a");return e.href=r,e.href},Dn=(r,e)=>{const t=e.match(/^(?:\d+\.\d+)*/g);return r.replace(/{SYSTEM_VERSION}/,t&&t[0]||"latest")},kr=r=>!r||!r.length?!1:r.every(e=>typeof e=="string"),Ln=(r,e)=>{const{mode:t=ae.PRODUCTION}=e;if(String(t).toLowerCase()!==ae.PRODUCTION.toLowerCase()&&String(t).toLowerCase()!==ae.DEVELOPMENT.toLowerCase())throw new Error(`invalid mode '${String(t)}' for ${r}`);const{production:s,development:i,microappManager:d=pe.APPSDK}=e;if(String(d).toLowerCase()===pe.APPSDK.toLowerCase()){if(String(t).toLowerCase()===ae.PRODUCTION.toLowerCase()){if(!s)throw new Error(`microFrontendApps.${r} is missing production section in app.config.json`);if(!kr(s.files))throw new Error("invalid value for production.files")}if(String(t).toLowerCase()===ae.DEVELOPMENT.toLowerCase()){if(!i)throw new Error(`microFrontendApps.${r} is missing development section in app.config.json`);if(!kr(i.files))throw new Error("invalid value for development.files")}}},Nn=({id:r,config:e,version:t="latest"})=>{const{mode:s=ae.PRODUCTION,production:i,development:d,...h}=e,y=Rn(s)?i:d,S=P()({id:r},{name:r,mode:ae.PRODUCTION,manifestPath:"./{SYSTEM_VERSION}/",securityContext:a.USER,isJsModule:!0},h,{mode:s},y);return S.hostUrl=D(Fn(S.hostUrl||"")),S.homeRoute=D(S.homeRoute)||$n(S.hostUrl),S.manifestPath=D(Dn(S.manifestPath,t)),S};class Un{#e=[];init=({version:e,appConfig:t})=>{const s=t.get(jn);s&&(this.#e=Object.keys(s).map(i=>(Ln(i,s[i]),Nn({id:i,config:s[i],version:e}))))};getConfigById=e=>this.#e.find(t=>t.id===e)}const kn=/^https?:\/\//i,zn=(r,e)=>{if(!kn.test(r))return!1;try{return!r.startsWith(new URL(e).href)}catch{return!0}},Bn=(r,e)=>{const t=[],s=[];return r.forEach(i=>{zn(i.href,e)?t.push(i):s.push(i)}),{external:t,local:s}},Vn=r=>{if(!r)return;const e=r,t=e.emui?._ASSET_PATH;t&&(e.__webpack_public_path__=new URL("../",t).href)},Gn=(r,e)=>{if(!(!r||!e))try{const t=r;t.__webpack_public_path__=new URL("./",e).href}catch{}},zr=(r,e)=>{if(!r)return;if(r.emui?._ASSET_PATH){Vn(r);return}Gn(r,e)},Hn="ice-script-";class Br{#e;constructor(e){this.#e=e}#t=({href:e,isESMModule:t=!0,documentEle:s})=>{const i=s.createElement("link");i.rel=t?"modulepreload":"preload",i.href=e,i.crossOrigin="anonymous",t||(i.as="script"),s.head.appendChild(i)};#r=({id:e,documentEle:t,isESMModule:s=!0})=>{const i=t.createElement("script");return i.id=e,i.crossOrigin="anonymous",i.nonce="__CSP_NONCE__",!Ce()&&s&&(i.type="module"),i.async=!1,i};#i=(e,t)=>new Promise((s,i)=>{e.onload=s.bind(null,e.id),e.onerror=d=>{this.#e.error({message:`Error loading script ${e.src}`,exception:new Error(d)}),i(new Error(`Unable to load script ${e.src}`,{cause:new Error(d)}))},e.src=N(t)});#n=async(e,t,s)=>{if(e.length===0)return;const i=e.map(({id:h})=>this.#r({id:h,documentEle:t,isESMModule:s}));i.forEach(h=>{t.head.appendChild(h)});const d=e.map(({href:h},y)=>this.#i(i[y],h));await Promise.all(d)};#o=async({scripts:e,documentEle:t,isESMModule:s,hostUrl:i})=>{if(e.length===0)return;if(!i){await this.#n(e,t,s);return}const{external:d,local:h}=Bn(e,i);await this.#n(d,t,s),zr(t.defaultView,i),await this.#n(h,t,s)};load=async(e,t)=>{const{documentEle:s,isESMModule:i}=t,d=/^https?:\/\//i,h=e.map((y,S)=>{const A=`${Hn}${t.name.toLowerCase()}-${S}`,E=d.test(y)?y:new URL(y,t.hostUrl).href;return this.#t({href:E,documentEle:s,isESMModule:i}),{id:A,href:E}});return await this.#o({scripts:h,documentEle:s,isESMModule:i,hostUrl:t.hostUrl}),zr(s.defaultView,t.hostUrl),h.map(y=>y.id)};remove=(e="",t=document)=>new Promise(s=>{const i=t.getElementById(e);if(!i){this.#e.warn(`script with id ${e} not found`),s();return}i.remove(),s()});removeDynamicImportedScripts=(e,t)=>{const s=new RegExp(ye(e),"i"),i=t.getElementsByTagName("script");for(let d=i.length-1;d>=0;d-=1){const h=i[d],{src:y}=h;s.test(y)&&h.remove()}};removePrefetchLinks=(e,t)=>{const s=new RegExp(ye(e),"i"),i=t.querySelectorAll('[rel="prefetch"]');for(let d=i.length-1;d>=0;d-=1){const h=i[d],{href:y}=h;s.test(y)&&h.remove()}}}const Wn="ice-style-";class Vr{#e;constructor(e){this.#e=e}#t=({id:e,href:t,documentEle:s})=>new Promise((i,d)=>{const h=s.createElement("link");h.id=e,h.nonce="__CSP_NONCE__",h.rel="stylesheet",h.href=N(t),h.onload=i.bind(null,h.id),h.onerror=y=>{this.#e.error({message:`Error loading stylesheet ${h.href}`,exception:new Error(y)}),d(new Error(`Unable to load stylesheet ${h.href}`,{cause:new Error(y)}))},s.head.appendChild(h)});load=async(e,t)=>{const s=[],i=e.map((d,h)=>{const y=new URL(d,t.hostUrl),S=`${Wn}${t.name.toLowerCase()}-${h}`;return s.push(S),this.#t({id:S,href:y.href,documentEle:t.documentEle})});return await Promise.all(i),s};remove=(e="",t=document)=>new Promise(s=>{const i=t.getElementById(e);if(!i){this.#e.warn(`style with id ${e} not found`),s();return}i.remove(),s()});removeDynamicImportedStyles=(e,t)=>{const s=new RegExp(ye(e),"i"),i=t.querySelectorAll('[rel="stylesheet"]');for(let d=i.length-1;d>=0;d-=1){const h=i[d],{href:y}=h;s.test(y)&&h.remove()}}}const _n=r=>r.replace(/\/\d+\.\d+/,"/latest"),Kn=r=>{let e;try{e=new URL(r)}catch{return!1}return e.protocol==="http:"||e.protocol==="https:"},fr=new Map,Dt={get:async({hostUrl:r,manifestPath:e})=>{const t=_(r,e),s=fr.get(t);if(s)return s;const i=async d=>{const h=await fetch(d);if(!h.ok)throw new Error(`unable to get manifest ${d}`);if(!(h.headers?.get?.("content-type")??"").includes("application/json"))throw new Error(`manifest ${d} is not a valid json`);const S=await h.json();return fr.set(d,S),S};try{return await i(t)}catch(d){const h=_n(e);if(e!==h){const y=_(r,h);return await i(y)}throw d}},getFullFileNameofAssets:(r,e=[])=>e.reduce((t,s)=>{const i=r[s];if(i)t.push(i);else if(Kn(s))t.push(s);else throw new Error(`unable to locate ${s} in manifest`);return t},[]),clearCache:()=>fr.clear()},Yn=new Set(["module.unloading","module.unmount"]),Lt=new WeakMap,Xn=(r,e)=>{const t=Lt.get(r);Lt.set(r,{count:(t?.count??0)+1,latestContext:e})},Nt=r=>{const e=Lt.get(r);if(e){if(e.count>1){e.count-=1;return}Lt.delete(r),r.callContext===e.latestContext&&delete r.callContext}},Zn=r=>(typeof r=="object"||typeof r=="function")&&r!==null&&typeof r.then=="function";class Jn{#e;#t;#r;#i;#n;constructor(e){this.#e=e.guest,this.#t=e.instanceId,this.#r=e?.version||"latest",this.#i=e.soManager,this.#n=e.eventManager}get version(){return this.#r}getObject=e=>{try{const t=this.#i.getObject(e,this.#e);if(!t)return Promise.resolve(null);const s=new ie(t.id,t.objectType);return Object.keys(t).forEach(i=>{const d=t[i];d instanceof le?Object.defineProperty(s,i,{value:new le({name:i,objectId:t.id}),enumerable:!0}):we(d,i)&&Object.defineProperty(s,i,{value:(...h)=>{const y=s[i]?.callContext?.callChain,S={guest:{...this.#e,instanceId:this.#t},...y?.length?{callChain:y}:{}};Object.defineProperty(d,"callContext",{value:S,configurable:!0,enumerable:!0,writable:!0});const A=d;Xn(A,S);let E;try{E=t[i](...h)}catch(O){throw Nt(A),O}return Zn(E)?E.then(()=>Nt(A),()=>Nt(A)):Nt(A),E},enumerable:!0})}),Promise.resolve(s)}catch(t){return Promise.reject(t)}};setAppWindowSize=e=>{const{size:t}=e,s=document.getElementById(this.#t);s&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`)};subscribe=e=>this.#n.subscribe({...e,...Yn.has(e.eventId)?{guestId:this.#t}:{}});unsubscribe=e=>{this.#n.unsubscribe(e)}}class Qn{constructor(){window.emui||(window.emui={}),window.emui.registerApp=this.#e}#e=({appId:e,app:t})=>{if(!e)throw new Error("appId is required");if(e==="__proto__"||e==="constructor"||e==="prototype")throw new Error(`Invalid appId: ${e}`);if(!t?.uuid)throw new Error("application uuid is required");if(window.emui[e]=window.emui[e]||[],Array.isArray(window.emui[e])){const s=window.emui[e].findIndex(i=>i.uuid===t.uuid);s>-1?window.emui[e][s]=t:window.emui[e].push(t)}else{let s=window.emui[e];s?.uuid===t.uuid?(s={...s,...t},window.emui[e]=[s]):typeof s.init>"u"?window.emui[e]=[{...s,...t}]:window.emui[e]=[window.emui[e],t]}};get=({id:e,instanceId:t})=>{const s=window.emui?.[e];return Array.isArray(s)?s.find(d=>d.uuid===t)??null:s?.uuid===t?s:null};add=({id:e,instanceId:t,documentEle:s})=>{if(!t)throw new Error(`instanceId (uuid) is required to register application ${e}`);const i={uuid:t,init:null,mount:null,unmount:null},d=window.emui[e];d?Array.isArray(d)?d.push(i):window.emui[e]=[d,i]:window.emui[e]=[i],s.defaultView&&(s.defaultView.emui=s.defaultView.emui??{},s.defaultView.emui.uuid=t)};delete=({id:e,instanceId:t})=>{if(Array.isArray(window.emui[e])){const s=window.emui[e].findIndex(i=>i.uuid===t);s>-1&&window.emui[e].splice(s,1),window.emui[e].length===0&&delete window.emui[e]}else delete window.emui[e]}}const qn=12e4,es="module.unloading",ts="module.unmount",rs=1e3,ns=new Ue(et.Module),ss=r=>Array.isArray(r)&&r.some(e=>e===!1),Gr=["click","scroll","keypress","touchstart"],os=/\.css$/,Hr=r=>os.test(r);class is{#e;#t;#r;#i;#n;#o=new Un;#s;#c;#a=new Map;#u=new Map;#p=new Map;#d=new Set;#l=new Qn;#f=!0;constructor(e){const{logger:t}=e;if(!t)throw new Error("logger is required");this.#e=e.logger,this.#t=e.version,this.#f=e.extendSession??!0,this.#n=new ce({version:e.version,baseUrl:e.appConfigBaseUrl}),this.#r=new Br(t),this.#i=new Vr(t),this.#s=new _t,this.#c=new Q(this.#e)}#w(e){return typeof e=="function"}#x=e=>e instanceof de||typeof e?.subscribe=="function";#S=(e,t)=>`Application ${e} with instance id ${t} is not found. Most probably the appId property of app.config.json is not set to ${e}`;#A=(e,t=document)=>{const{elementIds:s}=this.#a.get(e)||{};s&&s.forEach(i=>{const d=t.getElementById(i);d&&d.remove()})};#E=({id:e,instanceId:t,documentEle:s,elementIds:i,microFEHost:d,selfInitialize:h})=>{const y=this.#l.get({id:e,instanceId:t});if(!y)throw new Error(this.#S(e,t));this.#a.set(t,{id:e,instanceId:t,elementIds:i,guest:{guestWindow:s?.defaultView,...y},microFEHost:d,selfInitialize:h})};#C=async({id:e,instanceId:t,containerId:s,hostUrl:i,manifestPath:d,homeRoute:h,initialRoute:y,history:S,theme:A,microFEHost:E})=>{const O=this.#l.get({id:e,instanceId:t});if(!O)throw new Error(`Application ${e} with instance id ${t} is not found. Most probably the appId property of app.config.json is not set to ${e}`);if(!O.init||typeof O.init!="function")throw new Error(`Application ${e} with instance id ${t} doesn't expose init method`);const k=E??this.#v({id:e,instanceId:t,containerId:s});return O.init({host:k,hostUrl:i,manifestPath:d,homeRoute:h,initialRoute:y,prevState:null,history:S,theme:A,hostBreakpoint:Ur(),hostViewportSize:dr(),logger:this.#e})};#O=async e=>{try{const{id:t,instanceId:s,files:i,name:d,hostUrl:h,documentEle:y,isJsModule:S}=e;this.#e.debug(`Application ${t} with instance id ${s} is loading...`);let A=i;const E=e.manifest??await Dt.get(e);A=Dt.getFullFileNameofAssets(E,i);const O=A.filter(M=>Hr(M)),k=A.filter(M=>!Hr(M)),L={name:d,hostUrl:h,documentEle:y,isESMModule:S},[F,U]=await Promise.all([this.#i.load(O,L),this.#r.load(k,L)]);this.#E({id:t,instanceId:s,documentEle:y,elementIds:[...F,...U],microFEHost:e.microFEHost,selfInitialize:e.selfInitialize}),e.selfInitialize||await this.#C(e),this.#e.audit(`Application ${t} with instance id ${s} loaded`)}catch(t){const s=`Application load failed. Unable to load one or more resources for ${e.id} with instance id ${e.instanceId}. ${t.message}`;throw this.#e.error({message:s,appId:e.id,exception:t}),new Error(s)}};#g=({id:e,instanceId:t,hostUrl:s,documentEle:i})=>{this.#e.debug(`Application ${e} with instance id ${t} unloading...`),this.#l.get({id:e,instanceId:t})&&(this.#A(t,i),this.#r.removeDynamicImportedScripts(s,i),this.#r.removePrefetchLinks(s,i),this.#i.removeDynamicImportedStyles(s,i),this.#l.delete({id:e,instanceId:t}),this.#e.audit(`Application ${e} with instance id ${t} unloaded`))};#m=async({id:e,instanceId:t})=>{const s=this.#l.get({id:e,instanceId:t});if(!s?.mount||typeof s?.mount!="function")throw new Error(`Application ${e} with instance id ${t} doesn't expose mount method`);return s.mount({containerId:`${Ge}${e}`,hostBreakpoint:Ur(),hostViewportSize:dr()})};#T=({id:e,instanceId:t})=>{const s=this.#l.get({id:e,instanceId:t});if(!s?.unmount)return null;if(typeof s.unmount!="function")throw new Error(`Application ${e} with instance id ${t} doesn't expose unmount method`);return s.unmount({containerId:`${Ge}${e}`})};#P=({id:e,instanceId:t})=>{if(this.#f)try{const s=this.#s.getObject(et.Application);if(!s){this.#e.warn({message:`Application scripting object not available for ${e} to manage session`});return}const i=this.#a.get(t);if(!i)return;i.keepAlive=zt()(async()=>{try{await s.keepSessionAlive()}catch(h){this.#e.error(`Error keeping session alive. ${h.message}`)}},qn);const d=Fe.get(t);Gr.forEach(h=>{d?.contentDocument?.addEventListener(h,i.keepAlive)})}catch(s){this.#e.warn({message:`Application scripting object not available for ${e} to manage session`,exception:s})}};#I=(e,t)=>{const s=t?.callContext?.guest;if(s?.instanceId&&this.#a.get(s.instanceId)?.id===e)return s.instanceId;const i=s?.guestWindow,d=Array.from(this.#a.entries()).filter(([,h])=>h.id===e);if(i){const h=d.find(([,y])=>y.guest.guestWindow===i);if(h)return h[0]}return d.length===1?d[0][0]:void 0};#j=(e,t)=>{this.#p.set(t,()=>this.closeApp(t));const s=this.#s.getObject(et.Module,{id:e}),d=s?._setUnloadHandler;typeof d=="function"&&(this.#d.has(e)||(this.#d.add(e),d.call(s,async()=>{const h=s.unload,y=this.#I(e,typeof h=="function"?h:s);if(!y){this.#e.warn(`Cannot resolve instance for module.unload of ${e}`);return}await this.#p.get(y)?.()})))};#h=(e,t)=>{this.#p.delete(e),[...this.#a.entries()].some(([i,d])=>d.id===t&&i!==e)||this.#d.delete(t)};#M=e=>this.#s.getObject(et.Module,{id:e});#v=({id:e,instanceId:t,containerId:s})=>new Jn({guest:{id:e},instanceId:t,version:this.#t,containerId:s,logger:this.#e,soManager:this.#s,eventManager:this.#c});#y=async(e,t,s)=>{const i=this.#M(e.id)??ns;return this.#c.dispatchEvent(i,{event:{id:t,name:s},eventParams:{moduleId:e.id},eventOptions:{timeout:rs,guestId:e.instanceId}})};#R=async e=>{try{const t=await this.#y(e,es,"unloading");if(ss(t))return this.#e.info(`Unload denied by guest ${e.id} via module.unloading event`),!1}catch(t){this.#e.warn({message:`Error dispatching module.unloading event for ${e.id}; proceeding with unload`,exception:t})}return!0};#b=async({id:e,instanceId:t,selfInitialize:s})=>{if(!s){await this.#T({id:e,instanceId:t});return}try{await this.#y({id:e,instanceId:t},ts,"unmount")}catch(i){this.#e.warn({message:`Error dispatching module.unmount event for ${e}`,exception:i})}};#$=e=>{if(!this.#f||!e)return;const{keepAlive:t,instanceId:s}=e;if(t){const d=Fe.get(s)?.contentDocument;d&&Gr.forEach(h=>{d.removeEventListener(h,t)}),e.keepAlive?.cancel()}};addScriptingObject=(e,t)=>{if(tt(e)){const s=this.cloneScriptingObject(e);this.#s.addScriptingObject(s,t)}else this.#s.addScriptingObject(e,t)};cloneScriptingObject=e=>{if(!e)throw new Error("proxy is required");const t=new Ue(e.id,e.objectType);let s=[];return Object.keys(e).forEach(i=>{const d=e[i];if(this.#x(d)){const h=new le({name:d.name||i,objectId:t.id});Object.defineProperty(t,i,{value:h,enumerable:!0});const y=({eventParams:A,eventOptions:E})=>this.dispatchEvent({event:h,eventParams:A,eventOptions:E}),S=d.subscribe(y);s.push(()=>{d.unsubscribe(S)})}else if(this.#w(d)&&(Object.defineProperty(t,i,{value:async(...h)=>{const y=t[i]?.callContext;if(y?.guest){const A=y.callChain??[],E=y.guest,O=E.instanceId??E.id,k=this.#u.get(O),L={id:E.id};k&&(L.metadata=k),Object.defineProperty(d,"callContext",{value:{callChain:[...A,L]},configurable:!0,enumerable:!0,writable:!0})}const S=await d(...h);return tt(S)?this.cloneScriptingObject(S):S},enumerable:!0}),i==="dispose")){const h=t.dispose;Object.defineProperty(t,i,{value:()=>(t._dispose(),h.apply(t)),enumerable:!0})}}),t._dispose=()=>{s.forEach(i=>{i?.()}),s=[]},t};closeAllApps=async()=>{await Promise.all([...this.#a.keys()].map(this.closeApp))};closeApp=async e=>{if(!e)throw new Error("instanceId is required");const t=this.#a.get(e);if(!t){this.#e.warn(`Application with instance id ${e} is not found`);return}const{id:s,selfInitialize:i}=t;if(!await this.#R({id:s,instanceId:e}))return;const d=this.#o.getConfigById(s);if(!d){this.#e.warn(`Configuration for application ${s} is not found`),this.removeAllScriptingObjects(e),this.#c.unsubscribeByGuestId(e),this.#a.delete(e),this.#u.delete(e),this.#h(e,s),Fe.remove(e);return}const{hostUrl:h}=d,y=Fe.get(e);try{this.#$(t),await this.#b({id:s,instanceId:e,selfInitialize:i})}finally{y?.contentDocument&&this.#g({id:s,instanceId:e,hostUrl:h,documentEle:y.contentDocument}),y&&(y.src="about:blank"),this.removeAllScriptingObjects(e),this.#c.unsubscribeByGuestId(e),this.#a.delete(e),this.#u.delete(e),this.#h(e,s),Fe.remove(e)}};dispatchEvent=async e=>{const{event:{id:t,name:s},eventOptions:i={}}=e,{guestId:d}=i;if(!t)throw new Error("Event Id is required");const h=t.split(".")?.[0],y=d?this.#s.getObject(h,{id:d}):this.#s.getObject(h);return y?this.#c.dispatchEvent(y,e):(this.#e.warn(`Attempt to dispatch event ${s} on unknown object ${h}`),Promise.resolve())};getApp=e=>this.#a.get(e)?.guest;getApps=()=>[...this.#a.values()].map(e=>e.guest);init=async e=>{e?this.#n.setPreloadedConfig(e):await this.#n.load(),this.#o.init({version:this.#t,appConfig:this.#n}),this.#F()};#F=()=>{const e=this.#n.get("microFrontendApps")??{},t=new Set;Object.keys(e).forEach(s=>{const i=this.#o.getConfigById(s);if(i?.hostUrl)try{t.add(new URL(i.hostUrl).origin)}catch{}}),t.forEach(s=>{const i=document.createElement("link");i.rel="preconnect",i.href=s,i.crossOrigin="anonymous",document.head.appendChild(i)})};mountApp=async e=>{if(!e)throw new Error("instanceId is required");const{id:t}=this.#a.get(e)||{};if(!t)throw new Error(`Application with instance id ${e} is not found`);const s=this.#o.getConfigById(t);if(!s)throw new Error(`Application with id ${t} is not found`);await this.#m({...s,instanceId:e})};#D=(e,t,s)=>{const i=this.#v(s),d=e.defaultView;d&&(d.emui=d.emui??{},d.emui.__host=i,d.emui.getHost=()=>d.emui?.__host??null);const h=e.createElement("link");return h.rel="preconnect",h.href=t.hostUrl,h.crossOrigin="anonymous",e.head.appendChild(h),i};openApp=async e=>{const{id:t,frameOptions:s,history:i,theme:d,homeRoute:h,initialRoute:y,metadata:S,selfInitialize:A}=e,E=At();S&&this.#u.set(E,S);const O=this.#o.getConfigById(t);if(!O)throw new Error(`Application ${t} is not found in app config`);const k=Dt.get(O);k.catch(()=>{});const L=await Fe.create({id:t,instanceId:E,manifestPath:O.manifestPath,hostUrl:O.hostUrl,options:{title:O.name,...s}});if(!L?.contentDocument)throw new Error("unable to create iframe for the microapp");try{this.#l.add({id:t,instanceId:E,documentEle:L.contentDocument});const F=this.#D(L.contentDocument,O,{id:t,instanceId:E,containerId:s?.containerId}),U=await k;return await this.#O({instanceId:E,history:i,theme:d,documentEle:L.contentDocument,containerId:s?.containerId,...O,homeRoute:h??O.homeRoute,initialRoute:y,microFEHost:F,selfInitialize:A,manifest:U}),A||await this.#m({instanceId:E,...O}),this.#P({id:t,instanceId:E}),this.#j(t,E),E}catch(F){throw this.#u.delete(E),this.#h(E,t),this.#g({id:t,instanceId:E,hostUrl:O.hostUrl,documentEle:L.contentDocument}),Fe.remove(E),F}};removeAllEventSubscriptions=()=>{this.#c.unsubscribeAll()};removeAllScriptingObjects=e=>{this.#s.removeAllScriptingObjects(e)};removeScriptingObject=(e,t)=>{this.#s.removeScriptingObject(e,t)};warmUp=e=>{const t=this.#o.getConfigById(e);t&&Dt.get(t).catch(()=>{})};unmountApp=async e=>{if(!e)throw new Error("instanceId is required");const t=this.#a.get(e),{id:s,selfInitialize:i}=t||{};if(!s)throw new Error(`Application with instance id ${e} is not found`);if(!this.#o.getConfigById(s))throw new Error(`Application with id ${s} is not found`);await this.#b({id:s,instanceId:e,selfInitialize:i})}}})(),kt})());
|
|
15
|
+
`,e),{}),In=r=>({space:{...r.spaces,xxxs:r.spaces[1],xxs:r.spaces[2],xxs2:r.spaces[3],xs:r.spaces[4],s:r.spaces[5],m:r.spaces[6],l:r.spaces[7],xl:r.spaces[8],xxl:r.spaces[9]},fontSizes:{...r.fontSizes,title:{500:r.fontSizes[3],600:r.fontSizes[4],700:r.fontSizes[5],800:r.fontSizes[6],900:r.fontSizes[7]},subTitle:{300:r.fontSizes[1],400:r.fontSizes[2]},label:{200:r.fontSizes[0],300:r.fontSizes[1],400:r.fontSizes[2]},value:{300:r.fontSizes[1],400:r.fontSizes[2],500:r.fontSizes[3],600:r.fontSizes[4]},hyperlink:{200:r.fontSizes[0],300:r.fontSizes[1],400:r.fontSizes[2]},microText:{200:r.fontSizes[0]}},fontWeights:{...r.fontWeights,thin:r.fontWeights[0],light:r.fontWeights[1],regular:r.fontWeights[3],semibold:r.fontWeights[5],bold:r.fontWeights[8]},lineHeights:{...r.lineHeights,r:r.lineHeights[0],m:r.lineHeights[1],l:r.lineHeights[2],xl:r.lineHeights[3]},letterSpacings:{normal:r.letterSpacings[0],tracked:r.letterSpacings[1],tight:r.letterSpacings[2],mega:r.letterSpacings[3]},fonts:{...r.fonts,default:r.fonts[0]},colors:{neutral:{"000":r.colors.neutral[0],"050":r.colors.neutral[1],"080":r.colors.neutral[2],100:r.colors.neutral[3],200:r.colors.neutral[4],300:r.colors.neutral[5],400:r.colors.neutral[6],500:r.colors.neutral[7],600:r.colors.neutral[8],700:r.colors.neutral[9],800:r.colors.neutral[10]},brand:{100:r.colors.brand[0],200:r.colors.brand[1],250:r.colors.brand[8],300:r.colors.brand[2],400:r.colors.brand[3],500:r.colors.brand[4],600:r.colors.brand[5],700:r.colors.brand[6],800:r.colors.brand[7]},success:{300:r.colors.success[0],400:r.colors.success[1],600:r.colors.success[2],900:r.colors.success[3],950:r.colors.success[4]},warning:{400:r.colors.warning[0],500:r.colors.warning[1],600:r.colors.warning[1],900:r.colors.warning[2],950:r.colors.warning[3]},danger:{200:r.colors.danger[0],400:r.colors.danger[1],600:r.colors.danger[2],900:r.colors.danger[3],950:r.colors.danger[4]}},shadows:{xs:r.shadows[0],s:r.shadows[1],m:r.shadows[2],l:r.shadows[3],xl:r.shadows[4]},breakpoints:{...r.breakpoints,xsmall:r.breakpoints[3],small:r.breakpoints[0],medium:r.breakpoints[1],large:r.breakpoints[2]},media:Pn({xsmall:r.breakpoints[3],small:r.breakpoints[0],medium:r.breakpoints[1],large:r.breakpoints[2]}),zIndex:{dialog:r.zIndex[0],popper:r.zIndex[1],tooltip:r.zIndex[2],backdrop:r.zIndex[3],loader:r.zIndex[4]},states:{_:r.states[0],motionSafe:r.states[1],motionReduce:r.states[2],first:r.states[3],last:r.states[4],odd:r.states[5],even:r.states[6],visited:r.states[7],checked:r.states[8],focusWithin:r.states[9],hover:r.states[10],focus:r.states[11],focusVisible:r.states[12],active:r.states[13],disabled:r.states[14],placeholder:r.states[15]}}),jn=((r=Xt())=>()=>In(r))(),Cs=()=>{try{return window.parent.document,window.parent}catch{return window}},fr=()=>({width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}),Ur=r=>Number(r.replace("px","")),kr=()=>{const{width:r}=fr(),{breakpoints:e}=jn();return r<=Ur(e.small)?"small":r<=Ur(e.medium)?"medium":"large"},Mn="microFrontendApps",Rn=()=>!0,$n=r=>Rn()?!0:String(r).toLowerCase()===ae.PRODUCTION.toLowerCase(),Fn=r=>r?new URL(r).pathname:"",Dn=r=>{const e=document.createElement("a");return e.href=r,e.href},Ln=(r,e)=>{const t=e.match(/^(?:\d+\.\d+)*/g);return r.replace(/{SYSTEM_VERSION}/,t&&t[0]||"latest")},zr=r=>!r||!r.length?!1:r.every(e=>typeof e=="string"),Nn=(r,e)=>{const{mode:t=ae.PRODUCTION}=e;if(String(t).toLowerCase()!==ae.PRODUCTION.toLowerCase()&&String(t).toLowerCase()!==ae.DEVELOPMENT.toLowerCase())throw new Error(`invalid mode '${String(t)}' for ${r}`);const{production:s,development:i,microappManager:d=pe.APPSDK}=e;if(String(d).toLowerCase()===pe.APPSDK.toLowerCase()){if(String(t).toLowerCase()===ae.PRODUCTION.toLowerCase()){if(!s)throw new Error(`microFrontendApps.${r} is missing production section in app.config.json`);if(!zr(s.files))throw new Error("invalid value for production.files")}if(String(t).toLowerCase()===ae.DEVELOPMENT.toLowerCase()){if(!i)throw new Error(`microFrontendApps.${r} is missing development section in app.config.json`);if(!zr(i.files))throw new Error("invalid value for development.files")}}},Un=({id:r,config:e,version:t="latest"})=>{const{mode:s=ae.PRODUCTION,production:i,development:d,...h}=e,v=$n(s)?i:d,S=P()({id:r},{name:r,mode:ae.PRODUCTION,manifestPath:"./{SYSTEM_VERSION}/",securityContext:a.USER,isJsModule:!0},h,{mode:s},v);return S.hostUrl=L(Dn(S.hostUrl||"")),S.homeRoute=L(S.homeRoute)||Fn(S.hostUrl),S.manifestPath=L(Ln(S.manifestPath,t)),S};class kn{#e=[];init=({version:e,appConfig:t})=>{const s=t.get(Mn);s&&(this.#e=Object.keys(s).map(i=>(Nn(i,s[i]),Un({id:i,config:s[i],version:e}))))};getConfigById=e=>this.#e.find(t=>t.id===e)}const zn=/^https?:\/\//i,Bn=(r,e)=>{if(!zn.test(r))return!1;try{return!r.startsWith(new URL(e).href)}catch{return!0}},Vn=(r,e)=>{const t=[],s=[];return r.forEach(i=>{Bn(i.href,e)?t.push(i):s.push(i)}),{external:t,local:s}},Gn=r=>{if(!r)return;const e=r,t=e.emui?._ASSET_PATH;t&&(e.__webpack_public_path__=new URL("../",t).href)},Hn=(r,e)=>{if(!(!r||!e))try{const t=r;t.__webpack_public_path__=new URL("./",e).href}catch{}},Br=(r,e)=>{if(!r)return;if(r.emui?._ASSET_PATH){Gn(r);return}Hn(r,e)},Wn="ice-script-";class Vr{#e;constructor(e){this.#e=e}#t=({href:e,isESMModule:t=!0,documentEle:s})=>{const i=s.createElement("link");i.rel=t?"modulepreload":"preload",i.href=e,i.crossOrigin="anonymous",t||(i.as="script"),s.head.appendChild(i)};#r=({id:e,documentEle:t,isESMModule:s=!0})=>{const i=t.createElement("script");return i.id=e,i.crossOrigin="anonymous",i.nonce="__CSP_NONCE__",!Ce()&&s&&(i.type="module"),i.async=!1,i};#a=(e,t)=>new Promise((s,i)=>{e.onload=s.bind(null,e.id),e.onerror=d=>{this.#e.error({message:`Error loading script ${e.src}`,exception:new Error(d)}),i(new Error(`Unable to load script ${e.src}`,{cause:new Error(d)}))},e.src=U(t)});#n=async(e,t,s)=>{if(e.length===0)return;const i=e.map(({id:h})=>this.#r({id:h,documentEle:t,isESMModule:s}));i.forEach(h=>{t.head.appendChild(h)});const d=e.map(({href:h},v)=>this.#a(i[v],h));await Promise.all(d)};#i=async({scripts:e,documentEle:t,isESMModule:s,hostUrl:i})=>{if(e.length===0)return;if(!i){await this.#n(e,t,s);return}const{external:d,local:h}=Vn(e,i);await this.#n(d,t,s),Br(t.defaultView,i),await this.#n(h,t,s)};load=async(e,t)=>{const{documentEle:s,isESMModule:i}=t,d=/^https?:\/\//i,h=e.map((v,S)=>{const A=`${Wn}${t.name.toLowerCase()}-${S}`,E=d.test(v)?v:new URL(v,t.hostUrl).href;return this.#t({href:E,documentEle:s,isESMModule:i}),{id:A,href:E}});return await this.#i({scripts:h,documentEle:s,isESMModule:i,hostUrl:t.hostUrl}),Br(s.defaultView,t.hostUrl),h.map(v=>v.id)};remove=(e="",t=document)=>new Promise(s=>{const i=t.getElementById(e);if(!i){this.#e.warn(`script with id ${e} not found`),s();return}i.remove(),s()});removeDynamicImportedScripts=(e,t)=>{const s=new RegExp(ye(e),"i"),i=t.getElementsByTagName("script");for(let d=i.length-1;d>=0;d-=1){const h=i[d],{src:v}=h;s.test(v)&&h.remove()}};removePrefetchLinks=(e,t)=>{const s=new RegExp(ye(e),"i"),i=t.querySelectorAll('[rel="prefetch"]');for(let d=i.length-1;d>=0;d-=1){const h=i[d],{href:v}=h;s.test(v)&&h.remove()}}}const _n="ice-style-";class Gr{#e;constructor(e){this.#e=e}#t=({id:e,href:t,documentEle:s})=>new Promise((i,d)=>{const h=s.createElement("link");h.id=e,h.nonce="__CSP_NONCE__",h.rel="stylesheet",h.href=U(t),h.onload=i.bind(null,h.id),h.onerror=v=>{this.#e.error({message:`Error loading stylesheet ${h.href}`,exception:new Error(v)}),d(new Error(`Unable to load stylesheet ${h.href}`,{cause:new Error(v)}))},s.head.appendChild(h)});load=async(e,t)=>{const s=[],i=e.map((d,h)=>{const v=new URL(d,t.hostUrl),S=`${_n}${t.name.toLowerCase()}-${h}`;return s.push(S),this.#t({id:S,href:v.href,documentEle:t.documentEle})});return await Promise.all(i),s};remove=(e="",t=document)=>new Promise(s=>{const i=t.getElementById(e);if(!i){this.#e.warn(`style with id ${e} not found`),s();return}i.remove(),s()});removeDynamicImportedStyles=(e,t)=>{const s=new RegExp(ye(e),"i"),i=t.querySelectorAll('[rel="stylesheet"]');for(let d=i.length-1;d>=0;d-=1){const h=i[d],{href:v}=h;s.test(v)&&h.remove()}}}const Kn=r=>r.replace(/\/\d+\.\d+/,"/latest"),Yn=r=>{let e;try{e=new URL(r)}catch{return!1}return e.protocol==="http:"||e.protocol==="https:"},hr=new Map,Dt={get:async({hostUrl:r,manifestPath:e})=>{const t=_(r,e),s=hr.get(t);if(s)return s;const i=async d=>{const h=await fetch(d);if(!h.ok)throw new Error(`unable to get manifest ${d}`);if(!(h.headers?.get?.("content-type")??"").includes("application/json"))throw new Error(`manifest ${d} is not a valid json`);const S=await h.json();return hr.set(d,S),S};try{return await i(t)}catch(d){const h=Kn(e);if(e!==h){const v=_(r,h);return await i(v)}throw d}},getFullFileNameofAssets:(r,e=[])=>e.reduce((t,s)=>{const i=r[s];if(i)t.push(i);else if(Yn(s))t.push(s);else throw new Error(`unable to locate ${s} in manifest`);return t},[]),clearCache:()=>hr.clear()},Lt=Symbol("pui-app-bridge.disposeMicroFEHost"),Xn=new Set(["module.unloading","module.unmount"]),Nt=new WeakMap,Zn=(r,e)=>{const t=Nt.get(r);Nt.set(r,{count:(t?.count??0)+1,latestContext:e})},Ut=r=>{const e=Nt.get(r);if(e){if(e.count>1){e.count-=1;return}Nt.delete(r),r.callContext===e.latestContext&&delete r.callContext}},Jn=r=>(typeof r=="object"||typeof r=="function")&&r!==null&&typeof r.then=="function";class Qn{#e;#t;#r;#a;#n;#i;#s=!1;constructor(e){this.#e=e.guest,this.#t=e.instanceId,this.#r=e?.version||"latest",this.#a=e.soManager,this.#n=e.eventManager,this.#i=e.logger}get version(){return this.#r}getObject=e=>{try{const t=this.#a.getObject(e,this.#e);if(!t)return Promise.resolve(null);const s=new ie(t.id,t.objectType);return Object.keys(t).forEach(i=>{const d=t[i];d instanceof le?Object.defineProperty(s,i,{value:new le({name:i,objectId:t.id}),enumerable:!0}):we(d,i)&&Object.defineProperty(s,i,{value:(...h)=>{const v=s[i]?.callContext?.callChain,S={guest:{...this.#e,instanceId:this.#t},...v?.length?{callChain:v}:{}};Object.defineProperty(d,"callContext",{value:S,configurable:!0,enumerable:!0,writable:!0});const A=d;Zn(A,S);let E;try{E=t[i](...h)}catch(O){throw Ut(A),O}return Jn(E)?E.then(()=>Ut(A),()=>Ut(A)):Ut(A),E},enumerable:!0})}),Promise.resolve(s)}catch(t){return Promise.reject(t)}};setAppWindowSize=e=>{const{size:t}=e,s=document.getElementById(this.#t);s&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`)};subscribe=e=>this.#s?(this.#i?.warn(`Ignoring subscribe to ${e?.eventId} from guest ${this.#e.id} with instance id ${this.#t}: the guest is closed`),""):this.#n.subscribe({...e,...Xn.has(e.eventId)?{guestId:this.#t}:{},ownerInstanceId:this.#t});unsubscribe=e=>{this.#n.unsubscribe({...e,ownerInstanceId:this.#t})};[Lt](){this.#s=!0}}class qn{constructor(){window.emui||(window.emui={}),window.emui.registerApp=this.#e}#e=({appId:e,app:t})=>{if(!e)throw new Error("appId is required");if(e==="__proto__"||e==="constructor"||e==="prototype")throw new Error(`Invalid appId: ${e}`);if(!t?.uuid)throw new Error("application uuid is required");if(window.emui[e]=window.emui[e]||[],Array.isArray(window.emui[e])){const s=window.emui[e].findIndex(i=>i.uuid===t.uuid);s>-1?window.emui[e][s]=t:window.emui[e].push(t)}else{let s=window.emui[e];s?.uuid===t.uuid?(s={...s,...t},window.emui[e]=[s]):typeof s.init>"u"?window.emui[e]=[{...s,...t}]:window.emui[e]=[window.emui[e],t]}};get=({id:e,instanceId:t})=>{const s=window.emui?.[e];return Array.isArray(s)?s.find(d=>d.uuid===t)??null:s?.uuid===t?s:null};add=({id:e,instanceId:t,documentEle:s})=>{if(!t)throw new Error(`instanceId (uuid) is required to register application ${e}`);const i={uuid:t,init:null,mount:null,unmount:null},d=window.emui[e];d?Array.isArray(d)?d.push(i):window.emui[e]=[d,i]:window.emui[e]=[i],s.defaultView&&(s.defaultView.emui=s.defaultView.emui??{},s.defaultView.emui.uuid=t)};delete=({id:e,instanceId:t})=>{if(Array.isArray(window.emui[e])){const s=window.emui[e].findIndex(i=>i.uuid===t);s>-1&&window.emui[e].splice(s,1),window.emui[e].length===0&&delete window.emui[e]}else delete window.emui[e]}}const es=12e4,ts="module.unloading",rs="module.unmount",ns=1e3,ss=new Ue(et.Module),os=r=>Array.isArray(r)&&r.some(e=>e===!1),Hr=["click","scroll","keypress","touchstart"],is=/\.css$/,Wr=r=>is.test(r);class as{#e;#t;#r;#a;#n;#i=new kn;#s;#c;#o=new Map;#u=new Map;#p=new Map;#d=new Set;#l=new qn;#f=!0;constructor(e){const{logger:t}=e;if(!t)throw new Error("logger is required");this.#e=e.logger,this.#t=e.version,this.#f=e.extendSession??!0,this.#n=new ce({version:e.version,baseUrl:e.appConfigBaseUrl}),this.#r=new Vr(t),this.#a=new Gr(t),this.#s=new Kt,this.#c=new Q(this.#e)}#w(e){return typeof e=="function"}#x=e=>e instanceof de||typeof e?.subscribe=="function";#S=(e,t)=>`Application ${e} with instance id ${t} is not found. Most probably the appId property of app.config.json is not set to ${e}`;#A=(e,t=document)=>{const{elementIds:s}=this.#o.get(e)||{};s&&s.forEach(i=>{const d=t.getElementById(i);d&&d.remove()})};#E=({id:e,instanceId:t,documentEle:s,elementIds:i,microFEHost:d,selfInitialize:h})=>{const v=this.#l.get({id:e,instanceId:t});if(!v)throw new Error(this.#S(e,t));this.#o.set(t,{id:e,instanceId:t,elementIds:i,guest:{guestWindow:s?.defaultView,...v},microFEHost:d,selfInitialize:h})};#C=async({id:e,instanceId:t,containerId:s,hostUrl:i,manifestPath:d,homeRoute:h,initialRoute:v,history:S,theme:A,microFEHost:E})=>{const O=this.#l.get({id:e,instanceId:t});if(!O)throw new Error(`Application ${e} with instance id ${t} is not found. Most probably the appId property of app.config.json is not set to ${e}`);if(!O.init||typeof O.init!="function")throw new Error(`Application ${e} with instance id ${t} doesn't expose init method`);const k=E??this.#v({id:e,instanceId:t,containerId:s});return O.init({host:k,hostUrl:i,manifestPath:d,homeRoute:h,initialRoute:v,prevState:null,history:S,theme:A,hostBreakpoint:kr(),hostViewportSize:fr(),logger:this.#e})};#O=async e=>{try{const{id:t,instanceId:s,files:i,name:d,hostUrl:h,documentEle:v,isJsModule:S}=e;this.#e.debug(`Application ${t} with instance id ${s} is loading...`);let A=i;const E=e.manifest??await Dt.get(e);A=Dt.getFullFileNameofAssets(E,i);const O=A.filter(M=>Wr(M)),k=A.filter(M=>!Wr(M)),N={name:d,hostUrl:h,documentEle:v,isESMModule:S},[F,D]=await Promise.all([this.#a.load(O,N),this.#r.load(k,N)]);this.#E({id:t,instanceId:s,documentEle:v,elementIds:[...F,...D],microFEHost:e.microFEHost,selfInitialize:e.selfInitialize}),e.selfInitialize||await this.#C(e),this.#e.audit(`Application ${t} with instance id ${s} loaded`)}catch(t){const s=`Application load failed. Unable to load one or more resources for ${e.id} with instance id ${e.instanceId}. ${t.message}`;throw this.#e.error({message:s,appId:e.id,exception:t}),new Error(s)}};#g=({id:e,instanceId:t,hostUrl:s,documentEle:i})=>{this.#e.debug(`Application ${e} with instance id ${t} unloading...`),this.#l.get({id:e,instanceId:t})&&(this.#A(t,i),this.#r.removeDynamicImportedScripts(s,i),this.#r.removePrefetchLinks(s,i),this.#a.removeDynamicImportedStyles(s,i),this.#l.delete({id:e,instanceId:t}),this.#e.audit(`Application ${e} with instance id ${t} unloaded`))};#m=async({id:e,instanceId:t})=>{const s=this.#l.get({id:e,instanceId:t});if(!s?.mount||typeof s?.mount!="function")throw new Error(`Application ${e} with instance id ${t} doesn't expose mount method`);return s.mount({containerId:`${Ge}${e}`,hostBreakpoint:kr(),hostViewportSize:fr()})};#T=({id:e,instanceId:t})=>{const s=this.#l.get({id:e,instanceId:t});if(!s?.unmount)return null;if(typeof s.unmount!="function")throw new Error(`Application ${e} with instance id ${t} doesn't expose unmount method`);return s.unmount({containerId:`${Ge}${e}`})};#P=({id:e,instanceId:t})=>{if(this.#f)try{const s=this.#s.getObject(et.Application);if(!s){this.#e.warn({message:`Application scripting object not available for ${e} to manage session`});return}const i=this.#o.get(t);if(!i)return;i.keepAlive=Bt()(async()=>{try{await s.keepSessionAlive()}catch(h){this.#e.error(`Error keeping session alive. ${h.message}`)}},es);const d=Re.get(t);Hr.forEach(h=>{d?.contentDocument?.addEventListener(h,i.keepAlive)})}catch(s){this.#e.warn({message:`Application scripting object not available for ${e} to manage session`,exception:s})}};#I=(e,t)=>{const s=t?.callContext?.guest;if(s?.instanceId&&this.#o.get(s.instanceId)?.id===e)return s.instanceId;const i=s?.guestWindow,d=Array.from(this.#o.entries()).filter(([,h])=>h.id===e);if(i){const h=d.find(([,v])=>v.guest.guestWindow===i);if(h)return h[0]}return d.length===1?d[0][0]:void 0};#j=(e,t)=>{this.#p.set(t,()=>this.closeApp(t));const s=this.#s.getObject(et.Module,{id:e}),d=s?._setUnloadHandler;typeof d=="function"&&(this.#d.has(e)||(this.#d.add(e),d.call(s,async()=>{const h=s.unload,v=this.#I(e,typeof h=="function"?h:s);if(!v){this.#e.warn(`Cannot resolve instance for module.unload of ${e}`);return}await this.#p.get(v)?.()})))};#h=(e,t)=>{this.#p.delete(e),[...this.#o.entries()].some(([i,d])=>d.id===t&&i!==e)||this.#d.delete(t)};#M=e=>this.#s.getObject(et.Module,{id:e});#v=({id:e,instanceId:t,containerId:s})=>new Qn({guest:{id:e},instanceId:t,version:this.#t,containerId:s,logger:this.#e,soManager:this.#s,eventManager:this.#c});#y=async(e,t,s)=>{const i=this.#M(e.id)??ss;return this.#c.dispatchEvent(i,{event:{id:t,name:s},eventParams:{moduleId:e.id},eventOptions:{timeout:ns,guestId:e.instanceId}})};#R=async e=>{try{const t=await this.#y(e,ts,"unloading");if(os(t))return this.#e.info(`Unload denied by guest ${e.id} via module.unloading event`),!1}catch(t){this.#e.warn({message:`Error dispatching module.unloading event for ${e.id}; proceeding with unload`,exception:t})}return!0};#b=async({id:e,instanceId:t,selfInitialize:s})=>{if(!s){await this.#T({id:e,instanceId:t});return}try{await this.#y({id:e,instanceId:t},rs,"unmount")}catch(i){this.#e.warn({message:`Error dispatching module.unmount event for ${e}`,exception:i})}};#$=e=>{if(!this.#f||!e)return;const{keepAlive:t,instanceId:s}=e;if(t){const d=Re.get(s)?.contentDocument;d&&Hr.forEach(h=>{d.removeEventListener(h,t)}),e.keepAlive?.cancel()}};addScriptingObject=(e,t)=>{if(tt(e)){const s=this.cloneScriptingObject(e);this.#s.addScriptingObject(s,t)}else this.#s.addScriptingObject(e,t)};cloneScriptingObject=e=>{if(!e)throw new Error("proxy is required");const t=new Ue(e.id,e.objectType);let s=[];return Object.keys(e).forEach(i=>{const d=e[i];if(this.#x(d)){const h=new le({name:d.name||i,objectId:t.id});Object.defineProperty(t,i,{value:h,enumerable:!0});const v=({eventParams:A,eventOptions:E})=>this.dispatchEvent({event:h,eventParams:A,eventOptions:E}),S=d.subscribe(v);s.push(()=>{d.unsubscribe(S)})}else if(this.#w(d)&&(Object.defineProperty(t,i,{value:async(...h)=>{const v=t[i]?.callContext;if(v?.guest){const A=v.callChain??[],E=v.guest,O=E.instanceId??E.id,k=this.#u.get(O),N={id:E.id};k&&(N.metadata=k),Object.defineProperty(d,"callContext",{value:{callChain:[...A,N]},configurable:!0,enumerable:!0,writable:!0})}const S=await d(...h);return tt(S)?this.cloneScriptingObject(S):S},enumerable:!0}),i==="dispose")){const h=t.dispose;Object.defineProperty(t,i,{value:()=>(t._dispose(),h.apply(t)),enumerable:!0})}}),t._dispose=()=>{s.forEach(i=>{i?.()}),s=[]},t};closeAllApps=async()=>{await Promise.all([...this.#o.keys()].map(this.closeApp))};closeApp=async e=>{if(!e)throw new Error("instanceId is required");const t=this.#o.get(e);if(!t){this.#e.warn(`Application with instance id ${e} is not found`);return}const{id:s,selfInitialize:i}=t;if(!await this.#R({id:s,instanceId:e}))return;const d=this.#i.getConfigById(s);if(!d){this.#e.warn(`Configuration for application ${s} is not found`),t.microFEHost?.[Lt](),this.removeAllScriptingObjects(e),this.#c.unsubscribeByGuestId(e),this.#o.delete(e),this.#u.delete(e),this.#h(e,s),Re.remove(e);return}const{hostUrl:h}=d,v=Re.get(e);try{this.#$(t),await this.#b({id:s,instanceId:e,selfInitialize:i})}finally{v?.contentDocument&&this.#g({id:s,instanceId:e,hostUrl:h,documentEle:v.contentDocument}),v&&(v.src="about:blank"),t.microFEHost?.[Lt](),this.removeAllScriptingObjects(e),this.#c.unsubscribeByGuestId(e),this.#o.delete(e),this.#u.delete(e),this.#h(e,s),Re.remove(e)}};dispatchEvent=async e=>{const{event:{id:t,name:s},eventOptions:i={}}=e,{guestId:d}=i;if(!t)throw new Error("Event Id is required");const h=t.split(".")?.[0],v=d?this.#s.getObject(h,{id:d}):this.#s.getObject(h);return v?this.#c.dispatchEvent(v,e):(this.#e.warn(`Attempt to dispatch event ${s} on unknown object ${h}`),Promise.resolve())};getApp=e=>this.#o.get(e)?.guest;getApps=()=>[...this.#o.values()].map(e=>e.guest);init=async e=>{e?this.#n.setPreloadedConfig(e):await this.#n.load(),this.#i.init({version:this.#t,appConfig:this.#n}),this.#F()};#F=()=>{const e=this.#n.get("microFrontendApps")??{},t=new Set;Object.keys(e).forEach(s=>{const i=this.#i.getConfigById(s);if(i?.hostUrl)try{t.add(new URL(i.hostUrl).origin)}catch{}}),t.forEach(s=>{const i=document.createElement("link");i.rel="preconnect",i.href=s,i.crossOrigin="anonymous",document.head.appendChild(i)})};mountApp=async e=>{if(!e)throw new Error("instanceId is required");const{id:t}=this.#o.get(e)||{};if(!t)throw new Error(`Application with instance id ${e} is not found`);const s=this.#i.getConfigById(t);if(!s)throw new Error(`Application with id ${t} is not found`);await this.#m({...s,instanceId:e})};#D=(e,t,s)=>{const i=this.#v(s),d=e.defaultView;d&&(d.emui=d.emui??{},d.emui.__host=i,d.emui.getHost=()=>d.emui?.__host??null);const h=e.createElement("link");return h.rel="preconnect",h.href=t.hostUrl,h.crossOrigin="anonymous",e.head.appendChild(h),i};openApp=async e=>{const{id:t,frameOptions:s,history:i,theme:d,homeRoute:h,initialRoute:v,metadata:S,selfInitialize:A}=e,E=At(),O=this.#i.getConfigById(t);if(!O)throw new Error(`Application ${t} is not found in app config`);const k=Dt.get(O);k.catch(()=>{});const N=await Re.create({id:t,instanceId:E,manifestPath:O.manifestPath,hostUrl:O.hostUrl,options:{title:O.name,...s}});if(!N?.contentDocument)throw Re.remove(E),new Error("unable to create iframe for the microapp");let F;try{S&&this.#u.set(E,S),this.#l.add({id:t,instanceId:E,documentEle:N.contentDocument}),F=this.#D(N.contentDocument,O,{id:t,instanceId:E,containerId:s?.containerId});const D=await k;return await this.#O({instanceId:E,history:i,theme:d,documentEle:N.contentDocument,containerId:s?.containerId,...O,homeRoute:h??O.homeRoute,initialRoute:v,microFEHost:F,selfInitialize:A,manifest:D}),A||await this.#m({instanceId:E,...O}),this.#P({id:t,instanceId:E}),this.#j(t,E),E}catch(D){throw F?.[Lt](),this.#c.unsubscribeByGuestId(E),this.#u.delete(E),this.#h(E,t),this.#g({id:t,instanceId:E,hostUrl:O.hostUrl,documentEle:N.contentDocument}),this.#o.delete(E),this.removeAllScriptingObjects(E),Re.remove(E),D}};removeAllEventSubscriptions=()=>{this.#c.unsubscribeAll()};removeAllScriptingObjects=e=>{this.#s.removeAllScriptingObjects(e)};removeScriptingObject=(e,t)=>{this.#s.removeScriptingObject(e,t)};warmUp=e=>{const t=this.#i.getConfigById(e);t&&Dt.get(t).catch(()=>{})};unmountApp=async e=>{if(!e)throw new Error("instanceId is required");const t=this.#o.get(e),{id:s,selfInitialize:i}=t||{};if(!s)throw new Error(`Application with instance id ${e} is not found`);if(!this.#i.getConfigById(s))throw new Error(`Application with id ${s} is not found`);await this.#b({id:s,instanceId:e,selfInitialize:i})}}})(),zt})());
|
|
16
16
|
|
|
17
17
|
//# sourceMappingURL=index.js.map
|
package/dist/umd/index.js.br
CHANGED
|
Binary file
|
package/dist/umd/index.js.gz
CHANGED
|
Binary file
|