@interopio/home-ui-react 1.1.0 → 1.1.1

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/index.js CHANGED
@@ -1,12 +1,12 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),y=require("react"),lt=require("react-dom"),ne=require("@interopio/react-hooks"),Rr=require("@interopio/workspaces-ui-react");function Ir(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Me=Ir(y),Lo=Ir(lt);var Gn=function(t){return t.reduce(function(n,r){var o=r[0],i=r[1];return n[o]=i,n},{})},Yn=typeof window<"u"&&window.document&&window.document.createElement?Me.useLayoutEffect:Me.useEffect,de="top",ye="bottom",be="right",pe="left",Lt="auto",gt=[de,ye,be,pe],Xe="start",mt="end",Fo="clippingParents",Mr="viewport",st="popper",$o="reference",Kn=gt.reduce(function(e,t){return e.concat([t+"-"+Xe,t+"-"+mt])},[]),Dr=[].concat(gt,[Lt]).reduce(function(e,t){return e.concat([t,t+"-"+Xe,t+"-"+mt])},[]),Bo="beforeRead",Ho="read",Vo="afterRead",Uo="beforeMain",Wo="main",Zo="afterMain",qo="beforeWrite",zo="write",Go="afterWrite",tn=[Bo,Ho,Vo,Uo,Wo,Zo,qo,zo,Go];function Se(e){return e?(e.nodeName||"").toLowerCase():null}function xe(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ue(e){var t=xe(e).Element;return e instanceof t||e instanceof Element}function me(e){var t=xe(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Pn(e){if(typeof ShadowRoot>"u")return!1;var t=xe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Yo(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!me(i)||!Se(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var c=o[a];c===!1?i.removeAttribute(a):i.setAttribute(a,c===!0?"":c)}))})}function Ko(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),c=a.reduce(function(l,f){return l[f]="",l},{});!me(o)||!Se(o)||(Object.assign(o.style,c),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const Xo={name:"applyStyles",enabled:!0,phase:"write",fn:Yo,effect:Ko,requires:["computeStyles"]};function we(e){return e.split("-")[0]}var Ve=Math.max,kt=Math.min,Je=Math.round;function nn(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Lr(){return!/^((?!chrome|android).)*safari/i.test(nn())}function Qe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&me(e)&&(o=e.offsetWidth>0&&Je(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Je(r.height)/e.offsetHeight||1);var a=Ue(e)?xe(e):window,c=a.visualViewport,l=!Lr()&&n,f=(r.left+(l&&c?c.offsetLeft:0))/o,p=(r.top+(l&&c?c.offsetTop:0))/i,g=r.width/o,u=r.height/i;return{width:g,height:u,top:p,right:f+g,bottom:p+u,left:f,x:f,y:p}}function kn(e){var t=Qe(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Fr(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Pn(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ce(e){return xe(e).getComputedStyle(e)}function Jo(e){return["table","td","th"].indexOf(Se(e))>=0}function De(e){return((Ue(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ft(e){return Se(e)==="html"?e:e.assignedSlot||e.parentNode||(Pn(e)?e.host:null)||De(e)}function Xn(e){return!me(e)||Ce(e).position==="fixed"?null:e.offsetParent}function Qo(e){var t=/firefox/i.test(nn()),n=/Trident/i.test(nn());if(n&&me(e)){var r=Ce(e);if(r.position==="fixed")return null}var o=Ft(e);for(Pn(o)&&(o=o.host);me(o)&&["html","body"].indexOf(Se(o))<0;){var i=Ce(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function yt(e){for(var t=xe(e),n=Xn(e);n&&Jo(n)&&Ce(n).position==="static";)n=Xn(n);return n&&(Se(n)==="html"||Se(n)==="body"&&Ce(n).position==="static")?t:n||Qo(e)||t}function Tn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function dt(e,t,n){return Ve(e,kt(t,n))}function ei(e,t,n){var r=dt(e,t,n);return r>n?n:r}function $r(){return{top:0,right:0,bottom:0,left:0}}function Br(e){return Object.assign({},$r(),e)}function Hr(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ti=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Br(typeof t!="number"?t:Hr(t,gt))};function ni(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,c=we(n.placement),l=Tn(c),f=[pe,be].indexOf(c)>=0,p=f?"height":"width";if(!(!i||!a)){var g=ti(o.padding,n),u=kn(i),h=l==="y"?de:pe,m=l==="y"?ye:be,d=n.rects.reference[p]+n.rects.reference[l]-a[l]-n.rects.popper[p],v=a[l]-n.rects.reference[l],E=yt(i),P=E?l==="y"?E.clientHeight||0:E.clientWidth||0:0,O=d/2-v/2,w=g[h],x=P-u[p]-g[m],k=P/2-u[p]/2+O,V=dt(w,k,x),X=l;n.modifiersData[r]=(t={},t[X]=V,t.centerOffset=V-k,t)}}function ri(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;if(o!=null&&!(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o))){if(process.env.NODE_ENV!=="production"&&(me(o)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!Fr(t.elements.popper,o)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}t.elements.arrow=o}}const oi={name:"arrow",enabled:!0,phase:"main",fn:ni,effect:ri,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function et(e){return e.split("-")[1]}var ii={top:"auto",right:"auto",bottom:"auto",left:"auto"};function si(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Je(t*o)/o||0,y:Je(n*o)/o||0}}function Jn(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,c=e.position,l=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,g=e.isFixed,u=a.x,h=u===void 0?0:u,m=a.y,d=m===void 0?0:m,v=typeof p=="function"?p({x:h,y:d}):{x:h,y:d};h=v.x,d=v.y;var E=a.hasOwnProperty("x"),P=a.hasOwnProperty("y"),O=pe,w=de,x=window;if(f){var k=yt(n),V="clientHeight",X="clientWidth";if(k===xe(n)&&(k=De(n),Ce(k).position!=="static"&&c==="absolute"&&(V="scrollHeight",X="scrollWidth")),k=k,o===de||(o===pe||o===be)&&i===mt){w=ye;var G=g&&k===x&&x.visualViewport?x.visualViewport.height:k[V];d-=G-r.height,d*=l?1:-1}if(o===pe||(o===de||o===ye)&&i===mt){O=be;var W=g&&k===x&&x.visualViewport?x.visualViewport.width:k[X];h-=W-r.width,h*=l?1:-1}}var H=Object.assign({position:c},f&&ii),te=p===!0?si({x:h,y:d}):{x:h,y:d};if(h=te.x,d=te.y,l){var Q;return Object.assign({},H,(Q={},Q[w]=P?"0":"",Q[O]=E?"0":"",Q.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+d+"px)":"translate3d("+h+"px, "+d+"px, 0)",Q))}return Object.assign({},H,(t={},t[w]=P?d+"px":"",t[O]=E?h+"px":"",t.transform="",t))}function ai(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,c=n.roundOffsets,l=c===void 0?!0:c;if(process.env.NODE_ENV!=="production"){var f=Ce(t.elements.popper).transitionProperty||"";a&&["transform","top","right","bottom","left"].some(function(g){return f.indexOf(g)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),y=require("react"),ut=require("react-dom"),ne=require("@interopio/react-hooks"),Ir=require("@interopio/workspaces-ui-react");function Mr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Me=Mr(y),Fo=Mr(ut);var Yn=function(t){return t.reduce(function(n,r){var o=r[0],i=r[1];return n[o]=i,n},{})},Kn=typeof window<"u"&&window.document&&window.document.createElement?Me.useLayoutEffect:Me.useEffect,de="top",ye="bottom",be="right",pe="left",Ft="auto",yt=[de,ye,be,pe],Je="start",vt="end",$o="clippingParents",Dr="viewport",at="popper",Bo="reference",Xn=yt.reduce(function(e,t){return e.concat([t+"-"+Je,t+"-"+vt])},[]),Lr=[].concat(yt,[Ft]).reduce(function(e,t){return e.concat([t,t+"-"+Je,t+"-"+vt])},[]),Ho="beforeRead",Vo="read",Uo="afterRead",Wo="beforeMain",Zo="main",qo="afterMain",zo="beforeWrite",Go="write",Yo="afterWrite",nn=[Ho,Vo,Uo,Wo,Zo,qo,zo,Go,Yo];function Se(e){return e?(e.nodeName||"").toLowerCase():null}function xe(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function We(e){var t=xe(e).Element;return e instanceof t||e instanceof Element}function me(e){var t=xe(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Nn(e){if(typeof ShadowRoot>"u")return!1;var t=xe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ko(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!me(i)||!Se(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var c=o[a];c===!1?i.removeAttribute(a):i.setAttribute(a,c===!0?"":c)}))})}function Xo(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),c=a.reduce(function(l,f){return l[f]="",l},{});!me(o)||!Se(o)||(Object.assign(o.style,c),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const Jo={name:"applyStyles",enabled:!0,phase:"write",fn:Ko,effect:Xo,requires:["computeStyles"]};function we(e){return e.split("-")[0]}var Ue=Math.max,Tt=Math.min,Qe=Math.round;function rn(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Fr(){return!/^((?!chrome|android).)*safari/i.test(rn())}function et(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&me(e)&&(o=e.offsetWidth>0&&Qe(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Qe(r.height)/e.offsetHeight||1);var a=We(e)?xe(e):window,c=a.visualViewport,l=!Fr()&&n,f=(r.left+(l&&c?c.offsetLeft:0))/o,p=(r.top+(l&&c?c.offsetTop:0))/i,g=r.width/o,u=r.height/i;return{width:g,height:u,top:p,right:f+g,bottom:p+u,left:f,x:f,y:p}}function Tn(e){var t=et(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function $r(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Nn(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Oe(e){return xe(e).getComputedStyle(e)}function Qo(e){return["table","td","th"].indexOf(Se(e))>=0}function De(e){return((We(e)?e.ownerDocument:e.document)||window.document).documentElement}function $t(e){return Se(e)==="html"?e:e.assignedSlot||e.parentNode||(Nn(e)?e.host:null)||De(e)}function Jn(e){return!me(e)||Oe(e).position==="fixed"?null:e.offsetParent}function ei(e){var t=/firefox/i.test(rn()),n=/Trident/i.test(rn());if(n&&me(e)){var r=Oe(e);if(r.position==="fixed")return null}var o=$t(e);for(Nn(o)&&(o=o.host);me(o)&&["html","body"].indexOf(Se(o))<0;){var i=Oe(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function bt(e){for(var t=xe(e),n=Jn(e);n&&Qo(n)&&Oe(n).position==="static";)n=Jn(n);return n&&(Se(n)==="html"||Se(n)==="body"&&Oe(n).position==="static")?t:n||ei(e)||t}function kn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function pt(e,t,n){return Ue(e,Tt(t,n))}function ti(e,t,n){var r=pt(e,t,n);return r>n?n:r}function Br(){return{top:0,right:0,bottom:0,left:0}}function Hr(e){return Object.assign({},Br(),e)}function Vr(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ni=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Hr(typeof t!="number"?t:Vr(t,yt))};function ri(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,c=we(n.placement),l=kn(c),f=[pe,be].indexOf(c)>=0,p=f?"height":"width";if(!(!i||!a)){var g=ni(o.padding,n),u=Tn(i),h=l==="y"?de:pe,m=l==="y"?ye:be,d=n.rects.reference[p]+n.rects.reference[l]-a[l]-n.rects.popper[p],v=a[l]-n.rects.reference[l],E=bt(i),P=E?l==="y"?E.clientHeight||0:E.clientWidth||0:0,C=d/2-v/2,w=g[h],x=P-u[p]-g[m],N=P/2-u[p]/2+C,V=pt(w,N,x),X=l;n.modifiersData[r]=(t={},t[X]=V,t.centerOffset=V-N,t)}}function oi(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;if(o!=null&&!(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o))){if(process.env.NODE_ENV!=="production"&&(me(o)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!$r(t.elements.popper,o)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}t.elements.arrow=o}}const ii={name:"arrow",enabled:!0,phase:"main",fn:ri,effect:oi,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function tt(e){return e.split("-")[1]}var si={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ai(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Qe(t*o)/o||0,y:Qe(n*o)/o||0}}function Qn(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,c=e.position,l=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,g=e.isFixed,u=a.x,h=u===void 0?0:u,m=a.y,d=m===void 0?0:m,v=typeof p=="function"?p({x:h,y:d}):{x:h,y:d};h=v.x,d=v.y;var E=a.hasOwnProperty("x"),P=a.hasOwnProperty("y"),C=pe,w=de,x=window;if(f){var N=bt(n),V="clientHeight",X="clientWidth";if(N===xe(n)&&(N=De(n),Oe(N).position!=="static"&&c==="absolute"&&(V="scrollHeight",X="scrollWidth")),N=N,o===de||(o===pe||o===be)&&i===vt){w=ye;var G=g&&N===x&&x.visualViewport?x.visualViewport.height:N[V];d-=G-r.height,d*=l?1:-1}if(o===pe||(o===de||o===ye)&&i===vt){C=be;var W=g&&N===x&&x.visualViewport?x.visualViewport.width:N[X];h-=W-r.width,h*=l?1:-1}}var H=Object.assign({position:c},f&&si),te=p===!0?ai({x:h,y:d}):{x:h,y:d};if(h=te.x,d=te.y,l){var Q;return Object.assign({},H,(Q={},Q[w]=P?"0":"",Q[C]=E?"0":"",Q.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+d+"px)":"translate3d("+h+"px, "+d+"px, 0)",Q))}return Object.assign({},H,(t={},t[w]=P?d+"px":"",t[C]=E?h+"px":"",t.transform="",t))}function ci(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,c=n.roundOffsets,l=c===void 0?!0:c;if(process.env.NODE_ENV!=="production"){var f=Oe(t.elements.popper).transitionProperty||"";a&&["transform","top","right","bottom","left"].some(function(g){return f.indexOf(g)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
2
2
 
3
3
  `,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
4
4
 
5
- `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var p={placement:we(t.placement),variation:et(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Jn(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Jn(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const ci={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ai,data:{}};var Ot={passive:!0};function li(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,c=a===void 0?!0:a,l=xe(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(p){p.addEventListener("scroll",n.update,Ot)}),c&&l.addEventListener("resize",n.update,Ot),function(){i&&f.forEach(function(p){p.removeEventListener("scroll",n.update,Ot)}),c&&l.removeEventListener("resize",n.update,Ot)}}const ui={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:li,data:{}};var fi={left:"right",right:"left",bottom:"top",top:"bottom"};function St(e){return e.replace(/left|right|bottom|top/g,function(t){return fi[t]})}var di={start:"end",end:"start"};function Qn(e){return e.replace(/start|end/g,function(t){return di[t]})}function Nn(e){var t=xe(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function An(e){return Qe(De(e)).left+Nn(e).scrollLeft}function pi(e,t){var n=xe(e),r=De(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,c=0,l=0;if(o){i=o.width,a=o.height;var f=Lr();(f||!f&&t==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:c+An(e),y:l}}function hi(e){var t,n=De(e),r=Nn(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Ve(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Ve(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+An(e),l=-r.scrollTop;return Ce(o||n).direction==="rtl"&&(c+=Ve(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:l}}function _n(e){var t=Ce(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Vr(e){return["html","body","#document"].indexOf(Se(e))>=0?e.ownerDocument.body:me(e)&&_n(e)?e:Vr(Ft(e))}function pt(e,t){var n;t===void 0&&(t=[]);var r=Vr(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=xe(r),a=o?[i].concat(i.visualViewport||[],_n(r)?r:[]):r,c=t.concat(a);return o?c:c.concat(pt(Ft(a)))}function rn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function mi(e,t){var n=Qe(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function er(e,t,n){return t===Mr?rn(pi(e,n)):Ue(t)?mi(t,n):rn(hi(De(e)))}function vi(e){var t=pt(Ft(e)),n=["absolute","fixed"].indexOf(Ce(e).position)>=0,r=n&&me(e)?yt(e):e;return Ue(r)?t.filter(function(o){return Ue(o)&&Fr(o,r)&&Se(o)!=="body"}):[]}function gi(e,t,n,r){var o=t==="clippingParents"?vi(e):[].concat(t),i=[].concat(o,[n]),a=i[0],c=i.reduce(function(l,f){var p=er(e,f,r);return l.top=Ve(p.top,l.top),l.right=kt(p.right,l.right),l.bottom=kt(p.bottom,l.bottom),l.left=Ve(p.left,l.left),l},er(e,a,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Ur(e){var t=e.reference,n=e.element,r=e.placement,o=r?we(r):null,i=r?et(r):null,a=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,l;switch(o){case de:l={x:a,y:t.y-n.height};break;case ye:l={x:a,y:t.y+t.height};break;case be:l={x:t.x+t.width,y:c};break;case pe:l={x:t.x-n.width,y:c};break;default:l={x:t.x,y:t.y}}var f=o?Tn(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(i){case Xe:l[f]=l[f]-(t[p]/2-n[p]/2);break;case mt:l[f]=l[f]+(t[p]/2-n[p]/2);break}}return l}function vt(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,c=n.boundary,l=c===void 0?Fo:c,f=n.rootBoundary,p=f===void 0?Mr:f,g=n.elementContext,u=g===void 0?st:g,h=n.altBoundary,m=h===void 0?!1:h,d=n.padding,v=d===void 0?0:d,E=Br(typeof v!="number"?v:Hr(v,gt)),P=u===st?$o:st,O=e.rects.popper,w=e.elements[m?P:u],x=gi(Ue(w)?w:w.contextElement||De(e.elements.popper),l,p,a),k=Qe(e.elements.reference),V=Ur({reference:k,element:O,strategy:"absolute",placement:o}),X=rn(Object.assign({},O,V)),G=u===st?X:k,W={top:x.top-G.top+E.top,bottom:G.bottom-x.bottom+E.bottom,left:x.left-G.left+E.left,right:G.right-x.right+E.right},H=e.modifiersData.offset;if(u===st&&H){var te=H[o];Object.keys(W).forEach(function(Q){var oe=[be,ye].indexOf(Q)>=0?1:-1,he=[de,ye].indexOf(Q)>=0?"y":"x";W[Q]+=te[he]*oe})}return W}function yi(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,c=n.flipVariations,l=n.allowedAutoPlacements,f=l===void 0?Dr:l,p=et(r),g=p?c?Kn:Kn.filter(function(m){return et(m)===p}):gt,u=g.filter(function(m){return f.indexOf(m)>=0});u.length===0&&(u=g,process.env.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var h=u.reduce(function(m,d){return m[d]=vt(e,{placement:d,boundary:o,rootBoundary:i,padding:a})[we(d)],m},{});return Object.keys(h).sort(function(m,d){return h[m]-h[d]})}function bi(e){if(we(e)===Lt)return[];var t=St(e);return[Qn(e),t,Qn(t)]}function xi(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!0:a,l=n.fallbackPlacements,f=n.padding,p=n.boundary,g=n.rootBoundary,u=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,d=n.allowedAutoPlacements,v=t.options.placement,E=we(v),P=E===v,O=l||(P||!m?[St(v)]:bi(v)),w=[v].concat(O).reduce(function(T,_){return T.concat(we(_)===Lt?yi(t,{placement:_,boundary:p,rootBoundary:g,padding:f,flipVariations:m,allowedAutoPlacements:d}):_)},[]),x=t.rects.reference,k=t.rects.popper,V=new Map,X=!0,G=w[0],W=0;W<w.length;W++){var H=w[W],te=we(H),Q=et(H)===Xe,oe=[de,ye].indexOf(te)>=0,he=oe?"width":"height",Y=vt(t,{placement:H,boundary:p,rootBoundary:g,altBoundary:u,padding:f}),ee=oe?Q?be:pe:Q?ye:de;x[he]>k[he]&&(ee=St(ee));var ve=St(ee),le=[];if(i&&le.push(Y[te]<=0),c&&le.push(Y[ee]<=0,Y[ve]<=0),le.every(function(T){return T})){G=H,X=!1;break}V.set(H,le)}if(X)for(var C=m?3:1,S=function(_){var N=w.find(function(I){var L=V.get(I);if(L)return L.slice(0,_).every(function(B){return B})});if(N)return G=N,"break"},A=C;A>0;A--){var R=S(A);if(R==="break")break}t.placement!==G&&(t.modifiersData[r]._skip=!0,t.placement=G,t.reset=!0)}}const wi={name:"flip",enabled:!0,phase:"main",fn:xi,requiresIfExists:["offset"],data:{_skip:!1}};function tr(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function nr(e){return[de,be,ye,pe].some(function(t){return e[t]>=0})}function Ci(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=vt(t,{elementContext:"reference"}),c=vt(t,{altBoundary:!0}),l=tr(a,r),f=tr(c,o,i),p=nr(l),g=nr(f);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":g})}const Oi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ci};function Ei(e,t,n){var r=we(e),o=[pe,de].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[pe,be].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}function ji(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=Dr.reduce(function(p,g){return p[g]=Ei(g,t.rects,i),p},{}),c=a[t.placement],l=c.x,f=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=a}const Si={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ji};function Pi(e){var t=e.state,n=e.name;t.modifiersData[n]=Ur({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ki={name:"popperOffsets",enabled:!0,phase:"read",fn:Pi,data:{}};function Ti(e){return e==="x"?"y":"x"}function Ni(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!1:a,l=n.boundary,f=n.rootBoundary,p=n.altBoundary,g=n.padding,u=n.tether,h=u===void 0?!0:u,m=n.tetherOffset,d=m===void 0?0:m,v=vt(t,{boundary:l,rootBoundary:f,padding:g,altBoundary:p}),E=we(t.placement),P=et(t.placement),O=!P,w=Tn(E),x=Ti(w),k=t.modifiersData.popperOffsets,V=t.rects.reference,X=t.rects.popper,G=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,W=typeof G=="number"?{mainAxis:G,altAxis:G}:Object.assign({mainAxis:0,altAxis:0},G),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,te={x:0,y:0};if(k){if(i){var Q,oe=w==="y"?de:pe,he=w==="y"?ye:be,Y=w==="y"?"height":"width",ee=k[w],ve=ee+v[oe],le=ee-v[he],C=h?-X[Y]/2:0,S=P===Xe?V[Y]:X[Y],A=P===Xe?-X[Y]:-V[Y],R=t.elements.arrow,T=h&&R?kn(R):{width:0,height:0},_=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$r(),N=_[oe],I=_[he],L=dt(0,V[Y],T[Y]),B=O?V[Y]/2-C-L-N-W.mainAxis:S-L-N-W.mainAxis,$=O?-V[Y]/2+C+L+I+W.mainAxis:A+L+I+W.mainAxis,re=t.elements.arrow&&yt(t.elements.arrow),j=re?w==="y"?re.clientTop||0:re.clientLeft||0:0,ce=(Q=H?.[w])!=null?Q:0,ge=ee+B-ce-j,We=ee+$-ce,Ze=dt(h?kt(ve,ge):ve,ee,h?Ve(le,We):le);k[w]=Ze,te[w]=Ze-ee}if(c){var Ae,it=w==="x"?de:pe,Zt=w==="x"?ye:be,Oe=k[x],Le=x==="y"?"height":"width",fe=Oe+v[it],Pe=Oe-v[Zt],_e=[de,pe].indexOf(E)!==-1,F=(Ae=H?.[x])!=null?Ae:0,U=_e?fe:Oe-V[Le]-X[Le]-F+W.altAxis,M=_e?Oe+V[Le]+X[Le]-F-W.altAxis:Pe,K=h&&_e?ei(U,Oe,M):dt(h?U:fe,Oe,h?M:Pe);k[x]=K,te[x]=K-Oe}t.modifiersData[r]=te}}const Ai={name:"preventOverflow",enabled:!0,phase:"main",fn:Ni,requiresIfExists:["offset"]};function _i(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ri(e){return e===xe(e)||!me(e)?Nn(e):_i(e)}function Ii(e){var t=e.getBoundingClientRect(),n=Je(t.width)/e.offsetWidth||1,r=Je(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Mi(e,t,n){n===void 0&&(n=!1);var r=me(t),o=me(t)&&Ii(t),i=De(t),a=Qe(e,o,n),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Se(t)!=="body"||_n(i))&&(c=Ri(t)),me(t)?(l=Qe(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=An(i))),{x:a.left+c.scrollLeft-l.x,y:a.top+c.scrollTop-l.y,width:a.width,height:a.height}}function Di(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(c){if(!n.has(c)){var l=t.get(c);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Li(e){var t=Di(e);return tn.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Fi(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ie(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(o,i){return o.replace(/%s/,i)},e)}var Fe='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',$i='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',rr=["name","enabled","phase","fn","effect","requires","options"];function Bi(e){e.forEach(function(t){[].concat(Object.keys(t),rr).filter(function(n,r,o){return o.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(Ie(Fe,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(Ie(Fe,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":tn.indexOf(t.phase)<0&&console.error(Ie(Fe,t.name,'"phase"',"either "+tn.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(Ie(Fe,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(Ie(Fe,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(Ie(Fe,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Ie(Fe,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+rr.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(r){e.find(function(o){return o.name===r})==null&&console.error(Ie($i,String(t.name),r,r))})})})}function Hi(e,t){var n=new Set;return e.filter(function(r){var o=t(r);if(!n.has(o))return n.add(o),!0})}function Vi(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var or="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Ui="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",ir={placement:"bottom",modifiers:[],strategy:"absolute"};function sr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Wi(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?ir:o;return function(c,l,f){f===void 0&&(f=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},ir,i),modifiersData:{},elements:{reference:c,popper:l},attributes:{},styles:{}},g=[],u=!1,h={state:p,setOptions:function(E){var P=typeof E=="function"?E(p.options):E;d(),p.options=Object.assign({},i,p.options,P),p.scrollParents={reference:Ue(c)?pt(c):c.contextElement?pt(c.contextElement):[],popper:pt(l)};var O=Li(Vi([].concat(r,p.options.modifiers)));if(p.orderedModifiers=O.filter(function(H){return H.enabled}),process.env.NODE_ENV!=="production"){var w=Hi([].concat(O,p.options.modifiers),function(H){var te=H.name;return te});if(Bi(w),we(p.options.placement)===Lt){var x=p.orderedModifiers.find(function(H){var te=H.name;return te==="flip"});x||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var k=Ce(l),V=k.marginTop,X=k.marginRight,G=k.marginBottom,W=k.marginLeft;[V,X,G,W].some(function(H){return parseFloat(H)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return m(),h.update()},forceUpdate:function(){if(!u){var E=p.elements,P=E.reference,O=E.popper;if(!sr(P,O)){process.env.NODE_ENV!=="production"&&console.error(or);return}p.rects={reference:Mi(P,yt(O),p.options.strategy==="fixed"),popper:kn(O)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(H){return p.modifiersData[H.name]=Object.assign({},H.data)});for(var w=0,x=0;x<p.orderedModifiers.length;x++){if(process.env.NODE_ENV!=="production"&&(w+=1,w>100)){console.error(Ui);break}if(p.reset===!0){p.reset=!1,x=-1;continue}var k=p.orderedModifiers[x],V=k.fn,X=k.options,G=X===void 0?{}:X,W=k.name;typeof V=="function"&&(p=V({state:p,options:G,name:W,instance:h})||p)}}},update:Fi(function(){return new Promise(function(v){h.forceUpdate(),v(p)})}),destroy:function(){d(),u=!0}};if(!sr(c,l))return process.env.NODE_ENV!=="production"&&console.error(or),h;h.setOptions(f).then(function(v){!u&&f.onFirstUpdate&&f.onFirstUpdate(v)});function m(){p.orderedModifiers.forEach(function(v){var E=v.name,P=v.options,O=P===void 0?{}:P,w=v.effect;if(typeof w=="function"){var x=w({state:p,name:E,instance:h,options:O}),k=function(){};g.push(x||k)}})}function d(){g.forEach(function(v){return v()}),g=[]}return h}}var Zi=[ui,ki,ci,Xo,Si,wi,Ai,oi,Oi],qi=Wi({defaultModifiers:Zi}),zi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Gi=typeof Element<"u",Yi=typeof Map=="function",Ki=typeof Set=="function",Xi=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Pt(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Pt(e[r],t[r]))return!1;return!0}var i;if(Yi&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Pt(r.value[1],t.get(r.value[0])))return!1;return!0}if(Ki&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Xi&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(Gi&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Pt(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var Ji=function(t,n){try{return Pt(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}},Qi=[],es=function(t,n,r){r===void 0&&(r={});var o=Me.useRef(null),i={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Qi},a=Me.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=a[0],l=a[1],f=Me.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(h){var m=h.state,d=Object.keys(m.elements);Lo.flushSync(function(){l({styles:Gn(d.map(function(v){return[v,m.styles[v]||{}]})),attributes:Gn(d.map(function(v){return[v,m.attributes[v]]}))})})},requires:["computeStyles"]}},[]),p=Me.useMemo(function(){var u={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[f,{name:"applyStyles",enabled:!1}])};return Ji(o.current,u)?o.current||u:(o.current=u,u)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,f]),g=Me.useRef();return Yn(function(){g.current&&g.current.setOptions(p)},[p]),Yn(function(){if(!(t==null||n==null)){var u=r.createPopper||qi,h=u(t,n,p);return g.current=h,function(){h.destroy(),g.current=null}}},[t,n,r.createPopper]),{state:g.current?g.current.state:null,styles:c.styles,attributes:c.attributes,update:g.current?g.current.update:null,forceUpdate:g.current?g.current.forceUpdate:null}},on={},ts={get exports(){return on},set exports(e){on=e}};/*!
5
+ `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var p={placement:we(t.placement),variation:tt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Qn(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Qn(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const li={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ci,data:{}};var Et={passive:!0};function ui(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,c=a===void 0?!0:a,l=xe(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(p){p.addEventListener("scroll",n.update,Et)}),c&&l.addEventListener("resize",n.update,Et),function(){i&&f.forEach(function(p){p.removeEventListener("scroll",n.update,Et)}),c&&l.removeEventListener("resize",n.update,Et)}}const fi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ui,data:{}};var di={left:"right",right:"left",bottom:"top",top:"bottom"};function Pt(e){return e.replace(/left|right|bottom|top/g,function(t){return di[t]})}var pi={start:"end",end:"start"};function er(e){return e.replace(/start|end/g,function(t){return pi[t]})}function An(e){var t=xe(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function _n(e){return et(De(e)).left+An(e).scrollLeft}function hi(e,t){var n=xe(e),r=De(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,c=0,l=0;if(o){i=o.width,a=o.height;var f=Fr();(f||!f&&t==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:c+_n(e),y:l}}function mi(e){var t,n=De(e),r=An(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Ue(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Ue(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+_n(e),l=-r.scrollTop;return Oe(o||n).direction==="rtl"&&(c+=Ue(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:l}}function Rn(e){var t=Oe(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ur(e){return["html","body","#document"].indexOf(Se(e))>=0?e.ownerDocument.body:me(e)&&Rn(e)?e:Ur($t(e))}function ht(e,t){var n;t===void 0&&(t=[]);var r=Ur(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=xe(r),a=o?[i].concat(i.visualViewport||[],Rn(r)?r:[]):r,c=t.concat(a);return o?c:c.concat(ht($t(a)))}function on(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function vi(e,t){var n=et(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function tr(e,t,n){return t===Dr?on(hi(e,n)):We(t)?vi(t,n):on(mi(De(e)))}function gi(e){var t=ht($t(e)),n=["absolute","fixed"].indexOf(Oe(e).position)>=0,r=n&&me(e)?bt(e):e;return We(r)?t.filter(function(o){return We(o)&&$r(o,r)&&Se(o)!=="body"}):[]}function yi(e,t,n,r){var o=t==="clippingParents"?gi(e):[].concat(t),i=[].concat(o,[n]),a=i[0],c=i.reduce(function(l,f){var p=tr(e,f,r);return l.top=Ue(p.top,l.top),l.right=Tt(p.right,l.right),l.bottom=Tt(p.bottom,l.bottom),l.left=Ue(p.left,l.left),l},tr(e,a,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Wr(e){var t=e.reference,n=e.element,r=e.placement,o=r?we(r):null,i=r?tt(r):null,a=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,l;switch(o){case de:l={x:a,y:t.y-n.height};break;case ye:l={x:a,y:t.y+t.height};break;case be:l={x:t.x+t.width,y:c};break;case pe:l={x:t.x-n.width,y:c};break;default:l={x:t.x,y:t.y}}var f=o?kn(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(i){case Je:l[f]=l[f]-(t[p]/2-n[p]/2);break;case vt:l[f]=l[f]+(t[p]/2-n[p]/2);break}}return l}function gt(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,c=n.boundary,l=c===void 0?$o:c,f=n.rootBoundary,p=f===void 0?Dr:f,g=n.elementContext,u=g===void 0?at:g,h=n.altBoundary,m=h===void 0?!1:h,d=n.padding,v=d===void 0?0:d,E=Hr(typeof v!="number"?v:Vr(v,yt)),P=u===at?Bo:at,C=e.rects.popper,w=e.elements[m?P:u],x=yi(We(w)?w:w.contextElement||De(e.elements.popper),l,p,a),N=et(e.elements.reference),V=Wr({reference:N,element:C,strategy:"absolute",placement:o}),X=on(Object.assign({},C,V)),G=u===at?X:N,W={top:x.top-G.top+E.top,bottom:G.bottom-x.bottom+E.bottom,left:x.left-G.left+E.left,right:G.right-x.right+E.right},H=e.modifiersData.offset;if(u===at&&H){var te=H[o];Object.keys(W).forEach(function(Q){var oe=[be,ye].indexOf(Q)>=0?1:-1,he=[de,ye].indexOf(Q)>=0?"y":"x";W[Q]+=te[he]*oe})}return W}function bi(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,c=n.flipVariations,l=n.allowedAutoPlacements,f=l===void 0?Lr:l,p=tt(r),g=p?c?Xn:Xn.filter(function(m){return tt(m)===p}):yt,u=g.filter(function(m){return f.indexOf(m)>=0});u.length===0&&(u=g,process.env.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var h=u.reduce(function(m,d){return m[d]=gt(e,{placement:d,boundary:o,rootBoundary:i,padding:a})[we(d)],m},{});return Object.keys(h).sort(function(m,d){return h[m]-h[d]})}function xi(e){if(we(e)===Ft)return[];var t=Pt(e);return[er(e),t,er(t)]}function wi(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!0:a,l=n.fallbackPlacements,f=n.padding,p=n.boundary,g=n.rootBoundary,u=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,d=n.allowedAutoPlacements,v=t.options.placement,E=we(v),P=E===v,C=l||(P||!m?[Pt(v)]:xi(v)),w=[v].concat(C).reduce(function(T,_){return T.concat(we(_)===Ft?bi(t,{placement:_,boundary:p,rootBoundary:g,padding:f,flipVariations:m,allowedAutoPlacements:d}):_)},[]),x=t.rects.reference,N=t.rects.popper,V=new Map,X=!0,G=w[0],W=0;W<w.length;W++){var H=w[W],te=we(H),Q=tt(H)===Je,oe=[de,ye].indexOf(te)>=0,he=oe?"width":"height",Y=gt(t,{placement:H,boundary:p,rootBoundary:g,altBoundary:u,padding:f}),ee=oe?Q?be:pe:Q?ye:de;x[he]>N[he]&&(ee=Pt(ee));var ve=Pt(ee),ue=[];if(i&&ue.push(Y[te]<=0),c&&ue.push(Y[ee]<=0,Y[ve]<=0),ue.every(function(T){return T})){G=H,X=!1;break}V.set(H,ue)}if(X)for(var O=m?3:1,S=function(_){var k=w.find(function(I){var L=V.get(I);if(L)return L.slice(0,_).every(function(B){return B})});if(k)return G=k,"break"},A=O;A>0;A--){var R=S(A);if(R==="break")break}t.placement!==G&&(t.modifiersData[r]._skip=!0,t.placement=G,t.reset=!0)}}const Oi={name:"flip",enabled:!0,phase:"main",fn:wi,requiresIfExists:["offset"],data:{_skip:!1}};function nr(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function rr(e){return[de,be,ye,pe].some(function(t){return e[t]>=0})}function Ci(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=gt(t,{elementContext:"reference"}),c=gt(t,{altBoundary:!0}),l=nr(a,r),f=nr(c,o,i),p=rr(l),g=rr(f);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":g})}const Ei={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ci};function ji(e,t,n){var r=we(e),o=[pe,de].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[pe,be].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}function Si(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=Lr.reduce(function(p,g){return p[g]=ji(g,t.rects,i),p},{}),c=a[t.placement],l=c.x,f=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=a}const Pi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Si};function Ni(e){var t=e.state,n=e.name;t.modifiersData[n]=Wr({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Ti={name:"popperOffsets",enabled:!0,phase:"read",fn:Ni,data:{}};function ki(e){return e==="x"?"y":"x"}function Ai(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!1:a,l=n.boundary,f=n.rootBoundary,p=n.altBoundary,g=n.padding,u=n.tether,h=u===void 0?!0:u,m=n.tetherOffset,d=m===void 0?0:m,v=gt(t,{boundary:l,rootBoundary:f,padding:g,altBoundary:p}),E=we(t.placement),P=tt(t.placement),C=!P,w=kn(E),x=ki(w),N=t.modifiersData.popperOffsets,V=t.rects.reference,X=t.rects.popper,G=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,W=typeof G=="number"?{mainAxis:G,altAxis:G}:Object.assign({mainAxis:0,altAxis:0},G),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,te={x:0,y:0};if(N){if(i){var Q,oe=w==="y"?de:pe,he=w==="y"?ye:be,Y=w==="y"?"height":"width",ee=N[w],ve=ee+v[oe],ue=ee-v[he],O=h?-X[Y]/2:0,S=P===Je?V[Y]:X[Y],A=P===Je?-X[Y]:-V[Y],R=t.elements.arrow,T=h&&R?Tn(R):{width:0,height:0},_=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Br(),k=_[oe],I=_[he],L=pt(0,V[Y],T[Y]),B=C?V[Y]/2-O-L-k-W.mainAxis:S-L-k-W.mainAxis,$=C?-V[Y]/2+O+L+I+W.mainAxis:A+L+I+W.mainAxis,re=t.elements.arrow&&bt(t.elements.arrow),j=re?w==="y"?re.clientTop||0:re.clientLeft||0:0,ce=(Q=H?.[w])!=null?Q:0,ge=ee+B-ce-j,Ze=ee+$-ce,qe=pt(h?Tt(ve,ge):ve,ee,h?Ue(ue,Ze):ue);N[w]=qe,te[w]=qe-ee}if(c){var Ae,st=w==="x"?de:pe,qt=w==="x"?ye:be,Ce=N[x],Le=x==="y"?"height":"width",fe=Ce+v[st],Pe=Ce-v[qt],_e=[de,pe].indexOf(E)!==-1,F=(Ae=H?.[x])!=null?Ae:0,U=_e?fe:Ce-V[Le]-X[Le]-F+W.altAxis,M=_e?Ce+V[Le]+X[Le]-F-W.altAxis:Pe,K=h&&_e?ti(U,Ce,M):pt(h?U:fe,Ce,h?M:Pe);N[x]=K,te[x]=K-Ce}t.modifiersData[r]=te}}const _i={name:"preventOverflow",enabled:!0,phase:"main",fn:Ai,requiresIfExists:["offset"]};function Ri(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ii(e){return e===xe(e)||!me(e)?An(e):Ri(e)}function Mi(e){var t=e.getBoundingClientRect(),n=Qe(t.width)/e.offsetWidth||1,r=Qe(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Di(e,t,n){n===void 0&&(n=!1);var r=me(t),o=me(t)&&Mi(t),i=De(t),a=et(e,o,n),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Se(t)!=="body"||Rn(i))&&(c=Ii(t)),me(t)?(l=et(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=_n(i))),{x:a.left+c.scrollLeft-l.x,y:a.top+c.scrollTop-l.y,width:a.width,height:a.height}}function Li(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(c){if(!n.has(c)){var l=t.get(c);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Fi(e){var t=Li(e);return nn.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function $i(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ie(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(o,i){return o.replace(/%s/,i)},e)}var Fe='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Bi='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',or=["name","enabled","phase","fn","effect","requires","options"];function Hi(e){e.forEach(function(t){[].concat(Object.keys(t),or).filter(function(n,r,o){return o.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(Ie(Fe,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(Ie(Fe,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":nn.indexOf(t.phase)<0&&console.error(Ie(Fe,t.name,'"phase"',"either "+nn.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(Ie(Fe,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(Ie(Fe,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(Ie(Fe,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Ie(Fe,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+or.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(r){e.find(function(o){return o.name===r})==null&&console.error(Ie(Bi,String(t.name),r,r))})})})}function Vi(e,t){var n=new Set;return e.filter(function(r){var o=t(r);if(!n.has(o))return n.add(o),!0})}function Ui(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var ir="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Wi="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",sr={placement:"bottom",modifiers:[],strategy:"absolute"};function ar(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Zi(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?sr:o;return function(c,l,f){f===void 0&&(f=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},sr,i),modifiersData:{},elements:{reference:c,popper:l},attributes:{},styles:{}},g=[],u=!1,h={state:p,setOptions:function(E){var P=typeof E=="function"?E(p.options):E;d(),p.options=Object.assign({},i,p.options,P),p.scrollParents={reference:We(c)?ht(c):c.contextElement?ht(c.contextElement):[],popper:ht(l)};var C=Fi(Ui([].concat(r,p.options.modifiers)));if(p.orderedModifiers=C.filter(function(H){return H.enabled}),process.env.NODE_ENV!=="production"){var w=Vi([].concat(C,p.options.modifiers),function(H){var te=H.name;return te});if(Hi(w),we(p.options.placement)===Ft){var x=p.orderedModifiers.find(function(H){var te=H.name;return te==="flip"});x||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var N=Oe(l),V=N.marginTop,X=N.marginRight,G=N.marginBottom,W=N.marginLeft;[V,X,G,W].some(function(H){return parseFloat(H)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return m(),h.update()},forceUpdate:function(){if(!u){var E=p.elements,P=E.reference,C=E.popper;if(!ar(P,C)){process.env.NODE_ENV!=="production"&&console.error(ir);return}p.rects={reference:Di(P,bt(C),p.options.strategy==="fixed"),popper:Tn(C)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(H){return p.modifiersData[H.name]=Object.assign({},H.data)});for(var w=0,x=0;x<p.orderedModifiers.length;x++){if(process.env.NODE_ENV!=="production"&&(w+=1,w>100)){console.error(Wi);break}if(p.reset===!0){p.reset=!1,x=-1;continue}var N=p.orderedModifiers[x],V=N.fn,X=N.options,G=X===void 0?{}:X,W=N.name;typeof V=="function"&&(p=V({state:p,options:G,name:W,instance:h})||p)}}},update:$i(function(){return new Promise(function(v){h.forceUpdate(),v(p)})}),destroy:function(){d(),u=!0}};if(!ar(c,l))return process.env.NODE_ENV!=="production"&&console.error(ir),h;h.setOptions(f).then(function(v){!u&&f.onFirstUpdate&&f.onFirstUpdate(v)});function m(){p.orderedModifiers.forEach(function(v){var E=v.name,P=v.options,C=P===void 0?{}:P,w=v.effect;if(typeof w=="function"){var x=w({state:p,name:E,instance:h,options:C}),N=function(){};g.push(x||N)}})}function d(){g.forEach(function(v){return v()}),g=[]}return h}}var qi=[fi,Ti,li,Jo,Pi,Oi,_i,ii,Ei],zi=Zi({defaultModifiers:qi}),Gi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Yi=typeof Element<"u",Ki=typeof Map=="function",Xi=typeof Set=="function",Ji=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Nt(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Nt(e[r],t[r]))return!1;return!0}var i;if(Ki&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Nt(r.value[1],t.get(r.value[0])))return!1;return!0}if(Xi&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Ji&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(Yi&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Nt(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var Qi=function(t,n){try{return Nt(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}},es=[],ts=function(t,n,r){r===void 0&&(r={});var o=Me.useRef(null),i={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||es},a=Me.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=a[0],l=a[1],f=Me.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(h){var m=h.state,d=Object.keys(m.elements);Fo.flushSync(function(){l({styles:Yn(d.map(function(v){return[v,m.styles[v]||{}]})),attributes:Yn(d.map(function(v){return[v,m.attributes[v]]}))})})},requires:["computeStyles"]}},[]),p=Me.useMemo(function(){var u={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[f,{name:"applyStyles",enabled:!1}])};return Qi(o.current,u)?o.current||u:(o.current=u,u)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,f]),g=Me.useRef();return Kn(function(){g.current&&g.current.setOptions(p)},[p]),Kn(function(){if(!(t==null||n==null)){var u=r.createPopper||zi,h=u(t,n,p);return g.current=h,function(){h.destroy(),g.current=null}}},[t,n,r.createPopper]),{state:g.current?g.current.state:null,styles:c.styles,attributes:c.attributes,update:g.current?g.current.update:null,forceUpdate:g.current?g.current.forceUpdate:null}},sn={},ns={get exports(){return sn},set exports(e){sn=e}};/*!
6
6
  Copyright (c) 2018 Jed Watson.
7
7
  Licensed under the MIT License (MIT), see
8
8
  http://jedwatson.github.io/classnames
9
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var a=typeof i;if(a==="string"||a==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var c=n.apply(null,i);c&&r.push(c)}}else if(a==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var l in i)t.call(i,l)&&i[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(ts);const J=on;const Wr=e=>e.key==="Enter"||e.key===" ",tt=(e,t)=>typeof e>"u"?{}:{tabIndex:0,onClick:e,onKeyDown:n=>{Wr(n)&&(n.preventDefault(),e?.(n)),t?.(n)}},Zr=({event:e,currentIndex:t,moveFocus:n,min:r,max:o,onClose:i})=>{switch(e.key){case"ArrowUp":{n(Math.max(t-1,r));break}case"ArrowDown":{n(Math.min(t+1,o));break}case"Home":{n(r);break}case"End":{n(o);break}case"Escape":{if(i){i();break}return}default:return}e.stopPropagation(),e.preventDefault()},ue=y.forwardRef((e,t)=>{const{name:n,size:r=16,className:o,handleClick:i,...a}=e;return s.jsx("span",{...tt(i),className:J(o,"icon",{[`icon-box-${r}`]:r}),ref:t,...a,children:s.jsx("i",{className:J({[`icon-${n}`]:n})})})}),qr=y.forwardRef((e,t)=>{const{actions:n,className:r,onClose:o,onActionItemClick:i,...a}=e,c=y.useRef({}),[l,f]=y.useState(0),p=g=>{c.current[g]?.focus(),f(g)};return y.useEffect(()=>{c.current[l]?.focus()},[]),s.jsx("ul",{className:J(r,"g42-context-menu"),ref:t,...a,"data-testid":"context-menu",onKeyDown:g=>Zr({event:g,currentIndex:l,min:0,max:n.length-1,moveFocus:p,onClose:o}),children:n.map((g,u)=>s.jsx("li",{className:J("g42-list-item",g.disabled&&"disabled"),...tt(h=>i(h,g)),ref:h=>c.current[u]=h,tabIndex:-1,children:g.displayName||g.name},g.name))})});function Rn(e){const{iconName:t,iconSize:n,actions:r,onActionItemClick:o,isTabStop:i}=e,[a,c]=y.useState(!1),[l,f]=y.useState(null),[p,g]=y.useState(null),{styles:u,attributes:h}=es(l,p,{placement:"bottom-end"});y.useEffect(()=>{if(!a)return;const v=P=>{l?.contains(P.target)||p?.contains(P.target)||c(!1)},E=()=>{document.activeElement?.nodeName==="IFRAME"&&c(!1)};return document.body.addEventListener("click",v,!0),window.addEventListener("blur",E),()=>{document.body.removeEventListener("click",v,!0),window.removeEventListener("blur",E)}},[p,l,a,c]);const m=v=>{v.stopPropagation(),c(E=>!E),p?.focus()},d=(v,E)=>{v.stopPropagation(),o(v,E),c(!1)};return s.jsxs(s.Fragment,{children:[s.jsx(ue,{tabIndex:i?0:-1,size:n,name:t,handleClick:m,ref:f,"data-testid":"context-menu-icon"}),a&&s.jsx(qr,{actions:r,style:u.popper,ref:g,onActionItemClick:d,onClose:()=>{l?.focus(),c(!1)},...h.popper})]})}const ht=e=>"items"in e,Te={APPLICATION:"application",WORKSPACE:"workspace",LAYOUT:"layout"},zr=[{name:"openInNewWindow",displayName:"Open in New Window"},{name:"openInNewWorkspace",displayName:"Open in New Workspace"}],Gr=[{name:"openInNewFrame",displayName:"Open in New Frame"},{name:"delete",displayName:"Delete"}],sn=(e,t,n)=>{const r="/",[o,...i]=n.split(r),a=e.findIndex(l=>ht(l)&&l.title===o),c=a!==-1?e[a]:null;return c?[...e.slice(0,a),{...c,items:i.length>0?sn(c.items,t,i.join(r)):[...c.items,t]},...e.slice(a+1)]:[...e,{id:o,title:o,items:i.length>0?sn([],t,i.join(r)):[t]}]},ns=(e,t)=>({id:"applications-section",title:"All Applications",items:e.reduce((r,o)=>{const i={id:o.name,title:o.title||o.name,description:o.caption,type:Te.APPLICATION,iconSrc:o.icon,isOpen:t[o.name]?.length>0,contextMenuActions:zr},a=o.userProperties.folder;return a?sn(r,i,a):[...r,i]},[])});function In(e){const{size:t=16,alt:n="Image icon",className:r,...o}=e;return s.jsx("img",{alt:n,className:J(r,"icon",{[`icon-box-${t}`]:t}),...o})}const Yr=e=>{const{className:t,iconSrc:n,iconName:r="folder",title:o,...i}=e;return s.jsxs("h4",{className:J(t,"g42-list-header"),"data-testid":"base-section-header",...i,children:[n?s.jsx(In,{src:n,alt:`${o} icon`,size:14,"data-testid":"img-icon"}):s.jsx(ue,{name:r,"data-testid":"icon"}),o]})},rs=()=>{const[e,t]=y.useState([]),n=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=n.appManager.onAppAdded(c=>{c.userProperties.hidden||t(l=>[...l,c])}),o=n.appManager.onAppChanged(c=>{t(l=>[...l.filter(f=>f.name!==c.name),c])}),i=n.appManager.onAppRemoved(c=>{t(l=>l.filter(f=>f.name!==c.name))}),a=[r,i,o];return()=>a.forEach(c=>c())},[n]),e},os=()=>{const[e,t]=y.useState({}),n=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=n.appManager.onInstanceStarted(a=>{t(c=>{const l=c[a.application.name]??[];return{...c,[a.application.name]:[...l,a.id]}})}),o=n.appManager.onInstanceStopped(a=>{t(c=>({...c,[a.application.name]:c[a.application.name].filter(l=>l!==a.id)}))}),i=[r,o];return()=>i.forEach(a=>a())},[n]),e},Kr="interop_home_ui_selected_layout",is="interop_home_ui_favorite_entities",Mn=(e,t,n)=>{const[r,o]=y.useState(()=>{try{const c=window[e].getItem(t);return c?JSON.parse(c):null}catch(c){return console.log(c),null}}),i=`${e}-${t}`;y.useEffect(()=>{const c=l=>{o(l.detail)};return window.addEventListener(i,c),()=>{window.removeEventListener(i,c)}},[i]);const a=y.useCallback(c=>{try{if(!c){window[e].removeItem(t),o(null);return}const l=n.run(c);if(!l.ok){console.warn(`Error validating the value to be stored: ${l.error.message}`);return}const f=l.result;o(f),window[e].setItem(t,JSON.stringify(f)),window.dispatchEvent(new CustomEvent(i,{detail:f}))}catch(l){console.log(l)}},[t,e,i,n]);return[r,a]};var ae=function(e){return{ok:!0,result:e}},ie=function(e){return{ok:!1,error:e}},ss=function(e){return e.ok===!0?Promise.resolve(e.result):Promise.reject(e.error)},as=function(e,t){return t.ok===!0?t.result:e},cs=function(e){if(e.ok===!0)return e.result;throw e.error},ls=function(e,t){return t.ok===!0?ae(e(t.result)):t},ar=function(e,t,n){return t.ok===!1?t:n.ok===!1?n:ae(e(t.result,n.result))},zt=function(e,t){return t.ok===!0?t:ie(e(t.error))},us=function(e,t){return t.ok===!0?e(t.result):t};/*! *****************************************************************************
9
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var a=typeof i;if(a==="string"||a==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var c=n.apply(null,i);c&&r.push(c)}}else if(a==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var l in i)t.call(i,l)&&i[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(ns);const J=sn;const Zr=e=>e.key==="Enter"||e.key===" ",nt=(e,t)=>typeof e>"u"?{}:{tabIndex:0,onClick:e,onKeyDown:n=>{Zr(n)&&(n.preventDefault(),e?.(n)),t?.(n)}},qr=({event:e,currentIndex:t,moveFocus:n,min:r,max:o,onClose:i})=>{switch(e.key){case"ArrowUp":{n(Math.max(t-1,r));break}case"ArrowDown":{n(Math.min(t+1,o));break}case"Home":{n(r);break}case"End":{n(o);break}case"Escape":{if(i){i();break}return}default:return}e.stopPropagation(),e.preventDefault()},le=y.forwardRef((e,t)=>{const{name:n,size:r=16,className:o,handleClick:i,...a}=e;return s.jsx("span",{...nt(i),className:J(o,"icon",{[`icon-box-${r}`]:r}),ref:t,...a,children:s.jsx("i",{className:J({[`icon-${n}`]:n})})})}),zr=y.forwardRef((e,t)=>{const{actions:n,className:r,onClose:o,onActionItemClick:i,...a}=e,c=y.useRef({}),[l,f]=y.useState(0),p=g=>{c.current[g]?.focus(),f(g)};return y.useEffect(()=>{c.current[l]?.focus()},[]),s.jsx("ul",{className:J(r,"g42-context-menu"),ref:t,...a,"data-testid":"context-menu",onKeyDown:g=>qr({event:g,currentIndex:l,min:0,max:n.length-1,moveFocus:p,onClose:o}),children:n.map((g,u)=>s.jsx("li",{className:J("g42-list-item",g.disabled&&"disabled"),...nt(h=>i(h,g)),ref:h=>c.current[u]=h,tabIndex:-1,children:g.displayName||g.name},g.name))})});function In(e){const{iconName:t,iconSize:n,actions:r,onActionItemClick:o,isTabStop:i}=e,[a,c]=y.useState(!1),[l,f]=y.useState(null),[p,g]=y.useState(null),{styles:u,attributes:h}=ts(l,p,{placement:"bottom-end"});y.useEffect(()=>{if(!a)return;const v=P=>{l?.contains(P.target)||p?.contains(P.target)||c(!1)},E=()=>{document.activeElement?.nodeName==="IFRAME"&&c(!1)};return document.body.addEventListener("click",v,!0),window.addEventListener("blur",E),()=>{document.body.removeEventListener("click",v,!0),window.removeEventListener("blur",E)}},[p,l,a,c]);const m=v=>{v.stopPropagation(),c(E=>!E),p?.focus()},d=(v,E)=>{v.stopPropagation(),o(v,E),c(!1)};return s.jsxs(s.Fragment,{children:[s.jsx(le,{tabIndex:i?0:-1,size:n,name:t,handleClick:m,ref:f,"data-testid":"context-menu-icon"}),a&&s.jsx(zr,{actions:r,style:u.popper,ref:g,onActionItemClick:d,onClose:()=>{l?.focus(),c(!1)},...h.popper})]})}const mt=e=>"items"in e,Te={APPLICATION:"application",WORKSPACE:"workspace",LAYOUT:"layout"},Gr=[{name:"openInNewWindow",displayName:"Open in New Window"},{name:"openInNewWorkspace",displayName:"Open in New Workspace"}],Yr=[{name:"openInNewFrame",displayName:"Open in New Frame"},{name:"delete",displayName:"Delete"}],an=(e,t,n)=>{const r="/",[o,...i]=n.split(r),a=e.findIndex(l=>mt(l)&&l.title===o),c=a!==-1?e[a]:null;return c?[...e.slice(0,a),{...c,items:i.length>0?an(c.items,t,i.join(r)):[...c.items,t]},...e.slice(a+1)]:[...e,{id:o,title:o,items:i.length>0?an([],t,i.join(r)):[t]}]},rs=(e,t)=>({id:"applications-section",title:"All Applications",items:e.reduce((r,o)=>{const i={id:o.name,title:o.title||o.name,description:o.caption,type:Te.APPLICATION,iconSrc:o.icon,isOpen:t[o.name]?.length>0,contextMenuActions:Gr},a=o.userProperties.folder;return a?an(r,i,a):[...r,i]},[])});function Mn(e){const{size:t=16,alt:n="Image icon",className:r,...o}=e;return s.jsx("img",{alt:n,className:J(r,"icon",{[`icon-box-${t}`]:t}),...o})}const Kr=e=>{const{className:t,iconSrc:n,iconName:r="folder",title:o,...i}=e;return s.jsxs("h4",{className:J(t,"g42-list-header"),"data-testid":"base-section-header",...i,children:[n?s.jsx(Mn,{src:n,alt:`${o} icon`,size:14,"data-testid":"img-icon"}):s.jsx(le,{name:r,"data-testid":"icon"}),o]})},os=()=>{const[e,t]=y.useState([]),n=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=n.appManager.onAppAdded(c=>{c.userProperties.hidden||t(l=>[...l,c])}),o=n.appManager.onAppChanged(c=>{t(l=>[...l.filter(f=>f.name!==c.name),c])}),i=n.appManager.onAppRemoved(c=>{t(l=>l.filter(f=>f.name!==c.name))}),a=[r,i,o];return()=>a.forEach(c=>c())},[n]),e},is=()=>{const[e,t]=y.useState({}),n=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=n.appManager.onInstanceStarted(a=>{t(c=>{const l=c[a.application.name]??[];return{...c,[a.application.name]:[...l,a.id]}})}),o=n.appManager.onInstanceStopped(a=>{t(c=>({...c,[a.application.name]:c[a.application.name].filter(l=>l!==a.id)}))}),i=[r,o];return()=>i.forEach(a=>a())},[n]),e},Xr="interop_home_ui_selected_layout",ss="interop_home_ui_favorite_entities",Dn=(e,t,n)=>{const[r,o]=y.useState(()=>{try{const c=window[e].getItem(t);return c?JSON.parse(c):null}catch(c){return console.log(c),null}}),i=`${e}-${t}`;y.useEffect(()=>{const c=l=>{o(l.detail)};return window.addEventListener(i,c),()=>{window.removeEventListener(i,c)}},[i]);const a=y.useCallback(c=>{try{if(!c){window[e].removeItem(t),o(null);return}const l=n.run(c);if(!l.ok){console.warn(`Error validating the value to be stored: ${l.error.message}`);return}const f=l.result;o(f),window[e].setItem(t,JSON.stringify(f)),window.dispatchEvent(new CustomEvent(i,{detail:f}))}catch(l){console.log(l)}},[t,e,i,n]);return[r,a]};var ae=function(e){return{ok:!0,result:e}},ie=function(e){return{ok:!1,error:e}},as=function(e){return e.ok===!0?Promise.resolve(e.result):Promise.reject(e.error)},cs=function(e,t){return t.ok===!0?t.result:e},ls=function(e){if(e.ok===!0)return e.result;throw e.error},us=function(e,t){return t.ok===!0?ae(e(t.result)):t},cr=function(e,t,n){return t.ok===!1?t:n.ok===!1?n:ae(e(t.result,n.result))},Gt=function(e,t){return t.ok===!0?t:ie(e(t.error))},fs=function(e,t){return t.ok===!0?e(t.result):t};/*! *****************************************************************************
10
10
  Copyright (c) Microsoft Corporation.
11
11
 
12
12
  Permission to use, copy, modify, and/or distribute this software for any
@@ -19,25 +19,25 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
19
19
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
20
20
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21
21
  PERFORMANCE OF THIS SOFTWARE.
22
- ***************************************************************************** */var an=function(){return an=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},an.apply(this,arguments)};function fs(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function cn(e,t){if(e===t||e===null&&t===null)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="object"){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!cn(e[n],t[n]))return!1;return!0}var r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(var n=0;n<r.length;n++)if(!t.hasOwnProperty(r[n])||!cn(e[r[n]],t[r[n]]))return!1;return!0}}var ut=function(e){return Array.isArray(e)},Et=function(e){return typeof e=="object"&&e!==null&&!ut(e)},ds=function(e){switch(typeof e){case"string":return"a string";case"number":return"a number";case"boolean":return"a boolean";case"undefined":return"undefined";case"object":return e instanceof Array?"an array":e===null?"null":"an object";default:return JSON.stringify(e)}},ke=function(e,t){return"expected "+e+", got "+ds(t)},at=function(e){return e.map(function(t){return typeof t=="string"?"."+t:"["+t+"]"}).join("")},ct=function(e,t){var n=t.at,r=fs(t,["at"]);return an({at:e+(n||"")},r)},se=function(){function e(t){var n=this;this.decode=t,this.run=function(r){return zt(function(o){return{kind:"DecoderError",input:r,at:"input"+(o.at||""),message:o.message||""}},n.decode(r))},this.runPromise=function(r){return ss(n.run(r))},this.runWithException=function(r){return cs(n.run(r))},this.map=function(r){return new e(function(o){return ls(r,n.decode(o))})},this.andThen=function(r){return new e(function(o){return us(function(i){return r(i).decode(o)},n.decode(o))})},this.where=function(r,o){return n.andThen(function(i){return r(i)?e.succeed(i):e.fail(o)})}}return e.string=function(){return new e(function(t){return typeof t=="string"?ae(t):ie({message:ke("a string",t)})})},e.number=function(){return new e(function(t){return typeof t=="number"?ae(t):ie({message:ke("a number",t)})})},e.boolean=function(){return new e(function(t){return typeof t=="boolean"?ae(t):ie({message:ke("a boolean",t)})})},e.constant=function(t){return new e(function(n){return cn(n,t)?ae(t):ie({message:"expected "+JSON.stringify(t)+", got "+JSON.stringify(n)})})},e.object=function(t){return new e(function(n){if(Et(n)&&t){var r={};for(var o in t)if(t.hasOwnProperty(o)){var i=t[o].decode(n[o]);if(i.ok===!0)i.result!==void 0&&(r[o]=i.result);else return n[o]===void 0?ie({message:"the key '"+o+"' is required but was not present"}):ie(ct("."+o,i.error))}return ae(r)}else return Et(n)?ae(n):ie({message:ke("an object",n)})})},e.array=function(t){return new e(function(n){if(ut(n)&&t){var r=function(o,i){return zt(function(a){return ct("["+i+"]",a)},t.decode(o))};return n.reduce(function(o,i,a){return ar(function(c,l){return c.concat([l])},o,r(i,a))},ae([]))}else return ut(n)?ae(n):ie({message:ke("an array",n)})})},e.tuple=function(t){return new e(function(n){if(ut(n)){if(n.length!==t.length)return ie({message:"expected a tuple of length "+t.length+", got one of length "+n.length});for(var r=[],o=0;o<t.length;o++){var i=t[o].decode(n[o]);if(i.ok)r[o]=i.result;else return ie(ct("["+o+"]",i.error))}return ae(r)}else return ie({message:ke("a tuple of length "+t.length,n)})})},e.union=function(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return e.oneOf.apply(e,[t,n].concat(r))},e.intersection=function(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return new e(function(i){return[t,n].concat(r).reduce(function(a,c){return ar(Object.assign,a,c.decode(i))},ae({}))})},e.anyJson=function(){return new e(function(t){return ae(t)})},e.unknownJson=function(){return new e(function(t){return ae(t)})},e.dict=function(t){return new e(function(n){if(Et(n)){var r={};for(var o in n)if(n.hasOwnProperty(o)){var i=t.decode(n[o]);if(i.ok===!0)r[o]=i.result;else return ie(ct("."+o,i.error))}return ae(r)}else return ie({message:ke("an object",n)})})},e.optional=function(t){return new e(function(n){return n==null?ae(void 0):t.decode(n)})},e.oneOf=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new e(function(r){for(var o=[],i=0;i<t.length;i++){var a=t[i].decode(r);if(a.ok===!0)return a;o[i]=a.error}var c=o.map(function(l){return"at error"+(l.at||"")+": "+l.message}).join('", "');return ie({message:'expected a value matching one of the decoders, got the errors ["'+c+'"]'})})},e.withDefault=function(t,n){return new e(function(r){return ae(as(t,n.decode(r)))})},e.valueAt=function(t,n){return new e(function(r){for(var o=r,i=0;i<t.length;i++){if(o===void 0)return ie({at:at(t.slice(0,i+1)),message:"path does not exist"});if(typeof t[i]=="string"&&!Et(o))return ie({at:at(t.slice(0,i+1)),message:ke("an object",o)});if(typeof t[i]=="number"&&!ut(o))return ie({at:at(t.slice(0,i+1)),message:ke("an array",o)});o=o[t[i]]}return zt(function(a){return o===void 0?{at:at(t),message:"path does not exist"}:ct(at(t),a)},n.decode(o))})},e.succeed=function(t){return new e(function(n){return ae(t)})},e.fail=function(t){return new e(function(n){return ie({message:t})})},e.lazy=function(t){return new e(function(n){return t().decode(n)})},e}(),ln=se.string;se.number;var ps=se.boolean;se.anyJson;se.unknownJson;se.constant;var Dn=se.object,Xr=se.array;se.tuple;se.dict;var Ye=se.optional;se.oneOf;se.union;se.intersection;se.withDefault;se.valueAt;se.succeed;se.fail;se.lazy;const He=ln().where(e=>e.length>0,"Expected a non-empty string"),hs=Dn({name:He,displayName:Ye(He),disabled:Ye(ps())}),ms=Dn({id:He,title:He,description:Ye(He),icon:Ye(ln()),iconSrc:Ye(ln()),contextMenuActions:Ye(Xr(hs)),type:He}),vs=Xr(ms),$t=()=>{const[e,t]=Mn("localStorage",is,vs),n=y.useMemo(()=>e||[],[e]);return{favoriteEntities:n,toggleFavorite:({isOpen:i,...a})=>{const c=n.find(f=>f.title===a.title&&f.type===a.type),l=c?n.filter(f=>f!==c):[...n,a];t(l)},removeFavorite:i=>{t(n.filter(a=>a.id!==i))}}},Jr=()=>{const[e,t]=y.useState(),n=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=Rr.getFrameId();n.workspaces?.waitForFrame(r).then(t).catch(o=>console.error("Failed to get current frame",{error:o}))},[n]),e},gs=()=>{const e=y.useContext(ne.IOConnectContext);return async t=>e.interop.methods().every(n=>n.name!==t?.method)?console.error("Interop method not found."):await e.interop.invoke(t.method,t.params,t.target).catch(n=>console.error({error:n}))},ys=()=>{const[e,t]=y.useState([]),n=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{if(!n)return;let r=!1;const o=n.layouts.onAdded(a=>{if(a.type!=="Global"||r)return;const{name:c,type:l}=a;t(f=>[...f,{name:c,type:l}])}),i=n.layouts.onRemoved(a=>{a.type!=="Global"||r||t(c=>c.filter(l=>l.name!==a.name))});return()=>{r=!0,o(),i()}},[n]),e},Qr=()=>{const[e,t]=y.useState([]),n=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=n.notifications.onRaised(i=>t(a=>[...a,i])),o=n.notifications.onClosed(i=>t(a=>a.filter(c=>c.id!==i.id)));return n.notifications.list().then(t).catch(console.error),()=>{r(),o()}},[n]),e},Gt=["None","Low","Medium","High","Critical"],bs={None:"#616161",Low:"#7AC70C",Medium:"#E0A900",High:"#E0474C",Critical:"#B8001E"},un={TIMESTAMP:"timestamp",SEVERITY:"severity"},cr={key:un.TIMESTAMP,descending:!0},xs=(e,t)=>[...e].sort((n,r)=>(t?-1:1)*((n.timestamp||0)-(r.timestamp||0))),ws=(e,t)=>{const n=Gt[0];return[...e].sort((r,o)=>{const i=Gt.indexOf(r.severity||n),a=Gt.indexOf(o.severity||n);return(t?-1:1)*(i-a)})},Cs={[un.TIMESTAMP]:xs,[un.SEVERITY]:ws},Os=()=>{const e=Qr(),[t,n]=y.useState(cr),{key:r,descending:o}=t,i=y.useMemo(()=>Cs[r](e,o),[e,r,o]);return{onNotificationsSort:y.useCallback(c=>{n(l=>({key:c,descending:l.key!==c?cr.descending:!l.descending}))},[]),sortedNotifications:i}},eo=()=>{const[e,t]=y.useState([]);return y.useEffect(()=>{const n=({key:i})=>{t(a=>a.includes(i)?a:a.concat(i))},r=i=>{t(a=>a.filter(c=>c!==i.key))},o=()=>{t([])};return document.addEventListener("keydown",n),document.addEventListener("keyup",r),window.addEventListener("blur",o),()=>{document.removeEventListener("keydown",n),document.removeEventListener("keyup",r),window.removeEventListener("blur",o)}},[]),e.length===1?e[0]:null},Bt={CONTROL:"Control",SHIFT:"Shift"},to=()=>{const e=y.useContext(ne.IOConnectContext),t=Jr();return async(n,r)=>{const o=r===Bt.CONTROL?{newFrame:!0}:{frameId:t?.id};return e.workspaces?.restoreWorkspace(n,o)}},Ln=()=>{const e=y.useContext(ne.IOConnectContext);return y.useCallback(async(t,n)=>{if(e)try{await e.layouts.restore({name:t}),n?.({name:t})}catch(r){console.error(r)}},[e])},Es=e=>{const[t,n]=y.useState([]),[r,o]=y.useState(!0),i=y.useRef(null),a=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{const c=a?.search;if(!c)return;const l=[],f=[];return(async g=>{o(!0),n([]);const u=await c.query({search:g.trim(),providerLimits:{maxResults:100,maxResultsPerType:5}});if(u===i.current)return;i.current=u;const h=u.onResults(v=>{v.results.forEach(E=>{f.find(O=>O.id===E.id&&O.type.name===E.type.name)||f.push(E)}),o(!1),n([...f])}),m=u.onCompleted(()=>{o(!1)}),d=u.onError(v=>{console.error(`Query failed. Provider: ${v.provider}; Error: ${v.error}`)});l.push(h,m,d)})(e),()=>{l.forEach(g=>g())}},[a,e]),{resultsToRender:t,isLoading:r}},no=()=>{const e=y.useContext(ne.IOConnectContext);return async(t,n)=>{const r=await e.workspaces?.getWorkspace(c=>c.isSelected===!0),o=r?.children[0];return n===Bt.CONTROL||!r||o?.type==="window"?await e.appManager.application(t).start():await(o?.type==="group"?o:await(o||r).addGroup()).addWindow({appName:t})}},js=()=>{const[e,t]=y.useState([]),n=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{if(!n||!n.workspaces)return;let r=!1;const o=n.workspaces.layouts.onSaved(({name:a})=>{r||e.find(({id:c})=>c===a)||t(c=>[...c,{id:a,title:a}])}),i=n.workspaces.layouts.onRemoved(({name:a})=>{r||t(c=>c.filter(({title:l})=>l!==a))});return()=>{r=!0,[o,i].forEach(async a=>{try{(await a)()}catch(c){console.error(c)}})}},[n,e]),e},Ss=()=>{const[e,t]=y.useState({}),n=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=[];return(async()=>{try{const o=await n.workspaces?.onWorkspaceOpened(a=>t(c=>({...c,[a.title]:[...c[a.title]||[],a.id]})));r.push(o);const i=await n.workspaces?.onWorkspaceClosed(({workspaceId:a})=>t(c=>{const l={...c};for(const f in l)if(l[f].includes(a)){l[f]=l[f].filter(p=>p!==a);break}return l}));r.push(i)}catch(o){console.error(o)}})(),()=>r.forEach(o=>o?.())},[n]),e},Ps=e=>{const{io:t,item:n}=e;t.appManager.application(n.id).start().catch(r=>{console.error("Failed to start application: ",{error:r})})},ks=e=>{const{io:t,item:n,frame:r}=e;if(!t.workspaces)return;const o={type:"workspace",definition:{frame:r?{reuseFrameId:r.id}:{newFrame:!0}}},i=t.workspaces.getBuilder(o);i.addGroup().addWindow({appName:n.id}),i.create().catch(a=>{console.error("Failed to create workspace: ",{error:a})})},Ts={openInNewWindow:Ps,openInNewWorkspace:ks},ro=()=>{const e=y.useContext(ne.IOConnectContext),t=Jr();return(n,r)=>{Ts[r]({io:e,item:n,frame:t})}},Ns=e=>{const{io:t,item:n}=e;t.workspaces&&t.workspaces.restoreWorkspace(n.id,{newFrame:!0}).catch(r=>{console.error("Failed to open workspace in new frame: ",{error:r})})},As=async e=>{const{io:t,item:n,removeFavorite:r}=e;if(t.workspaces)try{await t.workspaces.layouts.delete(n.id),r(n.id)}catch(o){console.error("Failed to delete workspace: ",{error:o})}},_s={openInNewFrame:Ns,delete:As},oo=()=>{const e=y.useContext(ne.IOConnectContext),{removeFavorite:t}=$t();return(n,r)=>{_s[r]({io:e,item:n,removeFavorite:t})}},Rs=e=>{const{layout:t,setDefaultLayout:n}=e;n({name:t.name})},Is=e=>{const{io:t,layout:n}=e;t.layouts.remove("Global",n.name).catch(r=>{console.error("Failed to delete layout: ",{error:r})})},Ms={setAsDefault:Rs,delete:Is},Ds=()=>{const e=y.useContext(ne.IOConnectContext);return y.useCallback((n,r,o)=>{Ms[r]({io:e,layout:n,setDefaultLayout:o})},[e])};var Tt={},Ls={get exports(){return Tt},set exports(e){Tt=e}};(function(e,t){(function(n,r){var o="1.0.35",i="",a="?",c="function",l="undefined",f="object",p="string",g="major",u="model",h="name",m="type",d="vendor",v="version",E="architecture",P="console",O="mobile",w="tablet",x="smarttv",k="wearable",V="embedded",X=350,G="Amazon",W="Apple",H="ASUS",te="BlackBerry",Q="Browser",oe="Chrome",he="Edge",Y="Firefox",ee="Google",ve="Huawei",le="LG",C="Microsoft",S="Motorola",A="Opera",R="Samsung",T="Sharp",_="Sony",N="Xiaomi",I="Zebra",L="Facebook",B="Chromium OS",$="Mac OS",re=function(F,U){var M={};for(var K in F)U[K]&&U[K].length%2===0?M[K]=U[K].concat(F[K]):M[K]=F[K];return M},j=function(F){for(var U={},M=0;M<F.length;M++)U[F[M].toUpperCase()]=F[M];return U},ce=function(F,U){return typeof F===p?ge(U).indexOf(ge(F))!==-1:!1},ge=function(F){return F.toLowerCase()},We=function(F){return typeof F===p?F.replace(/[^\d\.]/g,i).split(".")[0]:r},Ze=function(F,U){if(typeof F===p)return F=F.replace(/^\s\s*/,i),typeof U===l?F:F.substring(0,X)},Ae=function(F,U){for(var M=0,K,Re,Ee,Z,D,je;M<U.length&&!D;){var qt=U[M],zn=U[M+1];for(K=Re=0;K<qt.length&&!D&&qt[K];)if(D=qt[K++].exec(F),D)for(Ee=0;Ee<zn.length;Ee++)je=D[++Re],Z=zn[Ee],typeof Z===f&&Z.length>0?Z.length===2?typeof Z[1]==c?this[Z[0]]=Z[1].call(this,je):this[Z[0]]=Z[1]:Z.length===3?typeof Z[1]===c&&!(Z[1].exec&&Z[1].test)?this[Z[0]]=je?Z[1].call(this,je,Z[2]):r:this[Z[0]]=je?je.replace(Z[1],Z[2]):r:Z.length===4&&(this[Z[0]]=je?Z[3].call(this,je.replace(Z[1],Z[2])):r):this[Z]=je||r;M+=2}},it=function(F,U){for(var M in U)if(typeof U[M]===f&&U[M].length>0){for(var K=0;K<U[M].length;K++)if(ce(U[M][K],F))return M===a?r:M}else if(ce(U[M],F))return M===a?r:M;return F},Zt={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Oe={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Le={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,v],[/opios[\/ ]+([\w\.]+)/i],[v,[h,A+" Mini"]],[/\bopr\/([\w\.]+)/i],[v,[h,A]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[h,v],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[h,"UC"+Q]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[v,[h,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[v,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[v,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+Q],v],[/\bfocus\/([\w\.]+)/i],[v,[h,Y+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[h,A+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[h,A+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[h,"MIUI "+Q]],[/fxios\/([-\w\.]+)/i],[v,[h,Y]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+Q]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+Q],v],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[h,v],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,L],v],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[h,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[v,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[h,oe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,oe+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[h,"Android "+Q]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,v],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[v,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[v,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[v,it,Zt]],[/(webkit|khtml)\/([\w\.]+)/i],[h,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[h,Y+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[h,v],[/(cobalt)\/([\w\.]+)/i],[h,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[E,"amd64"]],[/(ia32(?=;))/i],[[E,ge]],[/((?:i[346]|x)86)[;\)]/i],[[E,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[E,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[E,"armhf"]],[/windows (ce|mobile); ppc;/i],[[E,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[E,/ower/,i,ge]],[/(sun4\w)[;\)]/i],[[E,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[E,ge]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[d,R],[m,w]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[d,R],[m,O]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[d,W],[m,O]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[d,W],[m,w]],[/(macintosh);/i],[u,[d,W]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[d,T],[m,O]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[d,ve],[m,w]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[d,ve],[m,O]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[d,N],[m,O]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[d,N],[m,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[d,"OPPO"],[m,O]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[d,"Vivo"],[m,O]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[u,[d,"Realme"],[m,O]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[d,S],[m,O]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[d,S],[m,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[d,le],[m,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[d,le],[m,O]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[d,"Lenovo"],[m,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[d,"Nokia"],[m,O]],[/(pixel c)\b/i],[u,[d,ee],[m,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[d,ee],[m,O]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[d,_],[m,O]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[d,_],[m,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[d,"OnePlus"],[m,O]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[d,G],[m,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[d,G],[m,O]],[/(playbook);[-\w\),; ]+(rim)/i],[u,d,[m,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[d,te],[m,O]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[d,H],[m,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[d,H],[m,O]],[/(nexus 9)/i],[u,[d,"HTC"],[m,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[u,/_/g," "],[m,O]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[d,"Acer"],[m,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[d,"Meizu"],[m,O]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,u,[m,O]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,u,[m,w]],[/(surface duo)/i],[u,[d,C],[m,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[d,"Fairphone"],[m,O]],[/(u304aa)/i],[u,[d,"AT&T"],[m,O]],[/\bsie-(\w*)/i],[u,[d,"Siemens"],[m,O]],[/\b(rct\w+) b/i],[u,[d,"RCA"],[m,w]],[/\b(venue[\d ]{2,7}) b/i],[u,[d,"Dell"],[m,w]],[/\b(q(?:mv|ta)\w+) b/i],[u,[d,"Verizon"],[m,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[d,"Barnes & Noble"],[m,w]],[/\b(tm\d{3}\w+) b/i],[u,[d,"NuVision"],[m,w]],[/\b(k88) b/i],[u,[d,"ZTE"],[m,w]],[/\b(nx\d{3}j) b/i],[u,[d,"ZTE"],[m,O]],[/\b(gen\d{3}) b.+49h/i],[u,[d,"Swiss"],[m,O]],[/\b(zur\d{3}) b/i],[u,[d,"Swiss"],[m,w]],[/\b((zeki)?tb.*\b) b/i],[u,[d,"Zeki"],[m,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],u,[m,w]],[/\b(ns-?\w{0,9}) b/i],[u,[d,"Insignia"],[m,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[d,"NextBook"],[m,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],u,[m,O]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],u,[m,O]],[/\b(ph-1) /i],[u,[d,"Essential"],[m,O]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[d,"Envizen"],[m,w]],[/\b(trio[-\w\. ]+) b/i],[u,[d,"MachSpeed"],[m,w]],[/\btu_(1491) b/i],[u,[d,"Rotor"],[m,w]],[/(shield[\w ]+) b/i],[u,[d,"Nvidia"],[m,w]],[/(sprint) (\w+)/i],[d,u,[m,O]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[d,C],[m,O]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[d,I],[m,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[d,I],[m,O]],[/smart-tv.+(samsung)/i],[d,[m,x]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[d,R],[m,x]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,le],[m,x]],[/(apple) ?tv/i],[d,[u,W+" TV"],[m,x]],[/crkey/i],[[u,oe+"cast"],[d,ee],[m,x]],[/droid.+aft(\w)( bui|\))/i],[u,[d,G],[m,x]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[d,T],[m,x]],[/(bravia[\w ]+)( bui|\))/i],[u,[d,_],[m,x]],[/(mitv-\w{5}) bui/i],[u,[d,N],[m,x]],[/Hbbtv.*(technisat) (.*);/i],[d,u,[m,x]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,Ze],[u,Ze],[m,x]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[m,x]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,u,[m,P]],[/droid.+; (shield) bui/i],[u,[d,"Nvidia"],[m,P]],[/(playstation [345portablevi]+)/i],[u,[d,_],[m,P]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[d,C],[m,P]],[/((pebble))app/i],[d,u,[m,k]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[d,W],[m,k]],[/droid.+; (glass) \d/i],[u,[d,ee],[m,k]],[/droid.+; (wt63?0{2,3})\)/i],[u,[d,I],[m,k]],[/(quest( 2| pro)?)/i],[u,[d,L],[m,k]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[m,V]],[/(aeobc)\b/i],[u,[d,G],[m,V]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[u,[m,O]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[m,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[m,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[m,O]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[h,he+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[h,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,v],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[h,[v,it,Oe]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[v,it,Oe]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,$],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[v,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,v],[/\(bb(10);/i],[v,[h,te]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[h,Y+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[v,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[v,[h,oe+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,B],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[h,v],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,v]]},fe=function(F,U){if(typeof F===f&&(U=F,F=r),!(this instanceof fe))return new fe(F,U).getResult();var M=typeof n!==l&&n.navigator?n.navigator:r,K=F||(M&&M.userAgent?M.userAgent:i),Re=M&&M.userAgentData?M.userAgentData:r,Ee=U?re(Le,U):Le,Z=M&&M.userAgent==K;return this.getBrowser=function(){var D={};return D[h]=r,D[v]=r,Ae.call(D,K,Ee.browser),D[g]=We(D[v]),Z&&M&&M.brave&&typeof M.brave.isBrave==c&&(D[h]="Brave"),D},this.getCPU=function(){var D={};return D[E]=r,Ae.call(D,K,Ee.cpu),D},this.getDevice=function(){var D={};return D[d]=r,D[u]=r,D[m]=r,Ae.call(D,K,Ee.device),Z&&!D[m]&&Re&&Re.mobile&&(D[m]=O),Z&&D[u]=="Macintosh"&&M&&typeof M.standalone!==l&&M.maxTouchPoints&&M.maxTouchPoints>2&&(D[u]="iPad",D[m]=w),D},this.getEngine=function(){var D={};return D[h]=r,D[v]=r,Ae.call(D,K,Ee.engine),D},this.getOS=function(){var D={};return D[h]=r,D[v]=r,Ae.call(D,K,Ee.os),Z&&!D[h]&&Re&&Re.platform!="Unknown"&&(D[h]=Re.platform.replace(/chrome os/i,B).replace(/macos/i,$)),D},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return K},this.setUA=function(D){return K=typeof D===p&&D.length>X?Ze(D,X):D,this},this.setUA(K),this};fe.VERSION=o,fe.BROWSER=j([h,v,g]),fe.CPU=j([E]),fe.DEVICE=j([u,d,m,P,O,x,w,k,V]),fe.ENGINE=fe.OS=j([h,v]),e.exports&&(t=e.exports=fe),t.UAParser=fe;var Pe=typeof n!==l&&(n.jQuery||n.Zepto);if(Pe&&!Pe.ua){var _e=new fe;Pe.ua=_e.getResult(),Pe.ua.get=function(){return _e.getUA()},Pe.ua.set=function(F){_e.setUA(F);var U=_e.getResult();for(var M in U)Pe.ua[M]=U[M]}}})(typeof window=="object"?window:zi)})(Ls,Tt);const Fs=new Tt.UAParser,io=()=>Me.useMemo(()=>Fs.getBrowser(),[]),so=e=>{const{className:t,isFavoritismEnabled:n=!0,item:r,onClick:o,onKeyDown:i,focused:a,...c}=e,{favoriteEntities:l,toggleFavorite:f}=$t(),{description:p,icon:g="application",iconSrc:u,isOpen:h=!1,title:m,contextMenuActions:d}=r,v=n&&l.some(E=>E.type===r.type&&E.title===r.title);return s.jsxs("div",{tabIndex:a?0:-1,className:J(t,"g42-list-item"),onKeyDown:E=>{if(Wr(E)){o(E),E.preventDefault(),E.stopPropagation();return}i(E)},onClick:o,"data-testid":"base-section-item",...c,children:[s.jsxs("div",{className:"g42-list-row",children:[s.jsx(ue,{size:8,name:h?"check":"","data-testid":"open-check-icon"}),u?s.jsx(In,{src:u,alt:`${m} icon`,size:14,"data-testid":"img-icon"}):s.jsx(ue,{size:14,name:g,"data-testid":"icon"}),s.jsx("span",{className:"title","data-testid":"title",children:m}),h&&s.jsx("span",{className:"opened","data-testid":"opened-label",children:"Opened"}),d&&d.length>0&&s.jsx(Rn,{iconName:"ellipsis",iconSize:16,actions:d,onActionItemClick:o,isTabStop:a}),n&&s.jsx(ue,{tabIndex:a?0:-1,className:J("favorite",v&&"visible"),name:v?"star-full":"star",handleClick:E=>{E.stopPropagation(),f(r)},size:16,"data-testid":"favorite-icon"})]}),p&&s.jsx("div",{className:"g42-list-row",children:s.jsx("span",{className:"description","data-testid":"description",children:p})})]})},ao=Dn({name:He}),co="Welcome",$s=5,Bs=()=>{const[e,t]=y.useState(null),[n,r]=Mn("sessionStorage",Kr,ao),o=y.useRef(!1),i=Ln(),a=y.useContext(ne.IOConnectContext),c=y.useCallback(async({name:l})=>{try{await a.layouts.setDefaultGlobal(l),t({name:l})}catch(f){console.error("Failed to set default layout: ",{error:f})}},[a]);return y.useEffect(()=>{if(!a||o.current)return;(async()=>{o.current=!0;const f=await a.layouts.getDefaultGlobal()||await a.layouts.get(co,"Global");f&&(t({name:f.name}),n||i(f.name,r))})()},[a,n,i,r]),{defaultLayout:e,selectedLayout:n,setDefaultLayout:c,setSelectedLayout:r}},lo=y.createContext(void 0),rt=()=>{const e=y.useContext(lo);if(e===void 0)throw new Error("useLaunchpadAPI must be used within a LaunchpadAPIProvider");return e},Hs=({children:e,setOpen:t,isOpen:n})=>{const{defaultLayout:r,selectedLayout:o,setDefaultLayout:i,setSelectedLayout:a}=Bs(),l={close:y.useCallback(()=>t(!1),[t]),isOpen:n,defaultLayout:r,selectedLayout:o,setDefaultLayout:i,setSelectedLayout:a};return s.jsx(lo.Provider,{value:l,children:e})},Ht=e=>{const{config:t,isFavoritismEnabled:n,level:r=1,onItemClick:o}=e,[i,a]=y.useState(1),c=t.displayCount??$s,l=eo(),f=rt(),[p,g]=y.useState(0),u=y.useRef({}),h=y.useMemo(()=>t.items.filter(P=>ht(P)),[t.items]),m=y.useMemo(()=>t.items.filter(P=>!ht(P)).slice(0,i*c),[t.items,c,i]);y.useEffect(()=>{f.isOpen||a(1)},[f.isOpen]);const d=()=>{a(P=>P+1)},v=[...h,...m],E=P=>{u.current[P]?.querySelector("[tabIndex]")?.focus(),g(P)};return s.jsxs("li",{className:"section",children:[s.jsx(Yr,{iconSrc:t.iconSrc,iconName:t.iconName,style:{paddingLeft:`${(r-1)*12+6}px`},title:t.title}),s.jsxs("ul",{children:[v.map((P,O)=>ht(P)?s.jsx(Ht,{config:P,isFavoritismEnabled:n,level:r+1,onItemClick:o},P.id):s.jsx("li",{ref:w=>u.current[O]=w,children:s.jsx(so,{isFavoritismEnabled:n,item:P,onClick:(w,x)=>o?.(w,{item:P,modifier:l,selectedContextMenuActionName:x?.name}),style:{paddingLeft:`${r*7}px`},onKeyDown:w=>{Zr({event:w,moveFocus:E,currentIndex:p,min:0,max:v.length-1})},focused:p===O},P.id||O)},P.id||O)),t.items.length-h.length>c*i&&s.jsx("li",{"data-testid":"more-li-element",children:s.jsx("div",{className:"g42-list-item more",style:{paddingLeft:`${r*7+8}px`},role:"button","aria-label":"More",...tt(d),children:s.jsxs("div",{className:"g42-list-row",children:[s.jsx("span",{className:"title",children:"More..."}),s.jsx(ue,{size:12,name:"chevron-down","data-testid":"more-chevron"})]})})})]})]})},uo=e=>`${e.type}-${e.id}`,Vs=(e,t)=>fo(e)[t],fo=e=>e.reduce((t,n)=>ht(n)?{...t,...fo(n.items)}:{...t,[uo(n)]:n},{}),po=y.createContext(void 0),Us=()=>{const e=y.useContext(po);if(e===void 0)throw new Error("useSection must be used within a SectionProvider");return e},Ws=({children:e})=>{const[t,n]=y.useState(null);return s.jsx(po.Provider,{value:[t,n],children:e})},Vt=({config:e,onItemClick:t})=>{const[n,r]=Us(),o=rt(),i=eo(),a=(c,l)=>{const{item:f,selectedContextMenuActionName:p}=l;r({itemName:uo(f),selectedContextMenuActionName:p})};return y.useEffect(()=>{if(!t||!n)return;const{itemName:c,selectedContextMenuActionName:l}=n,f=Vs(e.items,c);f&&(t({item:f,modifier:i,selectedContextMenuActionName:l}),r(null),i!==Bt.SHIFT&&o.close())},[n,e.items,o,t,i,r]),s.jsx(Ht,{config:e,onItemClick:a})};function ho(){const e=rs(),t=os(),n=no(),r=ro(),o=ns(e,t),i=a=>{const{item:c,modifier:l,selectedContextMenuActionName:f}=a;if(!f)return n(c.id,l).catch(p=>{console.error("Failed to start application",{error:p})});r(c,f)};return s.jsx(Vt,{config:o,onItemClick:i})}function bt({children:e,className:t,color:n,...r}){return s.jsx("button",{className:J(t,"g42-btn",n),...r,children:e})}function Ut(e){const{className:t,items:n,onItemClick:r,...o}=e;return s.jsx("div",{className:J("g42-btn-group",t),...o,children:n.map((i,a)=>{const{onClick:c,...l}=i;return s.jsx(bt,{onClick:f=>{c&&c(f),r&&r(f,i)},...l},a)})})}const Zs=e=>({id:"favorites-section",title:"Favorites",items:e,iconName:"star"}),mo=()=>{const{favoriteEntities:e}=$t(),t=Zs(e);return e.length>0?s.jsx(Vt,{config:t}):null},vo=e=>{const{initials:t,className:n,...r}=e;return s.jsx("div",{className:J(n,"profile-icon"),...r,children:t})},go=()=>{const e=y.useContext(ne.IOConnectContext),[t,n]=y.useState([]);y.useEffect(()=>{e&&e.themes?.list().then(o=>n(o)).catch(console.warn)},[e]);const r=async(o,i)=>{i.name&&e.themes?.select(i.name).catch(console.warn)};return s.jsxs("div",{className:"info info-middle",children:[s.jsx("h4",{children:"Settings"}),s.jsxs("div",{className:"flex ai-center",children:[s.jsx("label",{style:{textAlign:"right",width:"40%"},children:"Theme"}),s.jsx("div",{style:{width:"60%",marginLeft:"auto"},children:s.jsx(Ut,{onItemClick:r,items:t.map(({name:o,displayName:i})=>({name:o,children:i}))})})]})]})},yo=({title:e,description:t,links:n=[],onLogout:r})=>{const[o,i]=Mn("sessionStorage",Kr,ao),a=()=>{i(null),r?.()};return s.jsxs("div",{className:"info info-bottom flex flex-column",children:[s.jsx("h4",{children:e||"Support"}),s.jsx("p",{children:t||"New set of thoughtfully curated items and the ability to configure them."}),s.jsx("ul",{children:n.map(({children:c,...l})=>s.jsx("li",{children:s.jsx("a",{...l,children:c})},l.href))}),s.jsx("div",{children:s.jsx(bt,{onClick:a,children:"Log Out"})})]})},bo=e=>e?.split(" ").map(t=>t[0]?.toUpperCase()).join(""),qs=({user:e})=>{const t=y.useContext(ne.IOConnectContext),n=e?.name||"N A";return s.jsxs("div",{className:"flex info info-top",children:[s.jsxs("div",{children:[s.jsx("h4",{children:n}),s.jsxs("p",{children:["PROD"," | ","Version "+t.version]})]}),s.jsx("div",{className:"flex badge",children:bo(n)})]})},xo=({onLogout:e,user:t})=>s.jsxs(s.Fragment,{children:[s.jsx(qs,{user:t}),s.jsx(go,{}),s.jsx(yo,{onLogout:e})]});const wo=y.forwardRef((e,t)=>{const{onSearch:n,searchTerm:r,onClear:o}=e,i=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{!i||!i.search||i.search.setDebounceMS(450)},[i]),s.jsxs("div",{className:"search","data-testid":"search-bar",children:[s.jsx("input",{type:"search",ref:t,className:"g42-input",placeholder:"Find anything",value:r,onChange:n}),s.jsx(ue,{name:"delete-left",className:r.length!==0?"active":"",onClick:o,"data-testid":"delete-icon"})]})}),zs=e=>e.reduce((t,n)=>{const{type:r}=n,o=n.id||n.displayName;if(!o||r.name===Te.LAYOUT)return t;let i=[];r.name===Te.APPLICATION?i=zr:r.name===Te.WORKSPACE?i=Gr:n.secondaryActions&&(i=n.secondaryActions.map(({name:f,method:p,params:g,target:u})=>({name:f,interopParams:{method:p,params:g,target:u}})));const a={id:o,title:n.displayName||o,description:n.description,type:r.name,iconSrc:n.iconURL,mainAction:n.action,contextMenuActions:i},c=t.findIndex(({title:f})=>r.displayName?f===r.displayName:f===r.name),l=t[c];return l?[...t.slice(0,c),{...l,items:[...l.items,a]},...t.slice(c+1)]:[...t,{id:r.name,title:r.displayName||r.name,items:[a]}]},[]);function Co(e){const{resultsToRender:t,isLoading:n}=Es(e.searchTerm),r=rt(),o=gs(),i=to(),a=no(),c=zs(t),l=ro(),f=oo(),p=(u,h)=>{const m=u.type===Te.APPLICATION?l:u.type===Te.WORKSPACE?f:null;m&&m(u,h)},g=async(u,h)=>{const{item:m,modifier:d,selectedContextMenuActionName:v}=h,{type:E,id:P,mainAction:O}=m,w=v?m.contextMenuActions?.find(x=>x.name===v):null;w?.interopParams?o(w.interopParams):v?p(m,v):O?o(O):E===Te.APPLICATION?a(P,d).catch(x=>{console.error("Failed to start application",{error:x})}):E===Te.WORKSPACE&&i(P,d).catch(x=>{console.error("Failed to restore workspace",{error:x})}),d!==Bt.SHIFT&&r.close()};return n?s.jsx("p",{style:{padding:"12px 24px"},children:"Loading..."}):t.length===0?s.jsx("p",{style:{padding:"12px 24px"},children:"No results found."}):s.jsx("ul",{children:c.map((u,h)=>s.jsx(Ht,{config:u,isFavoritismEnabled:!1,onItemClick:g},u.id||h))})}const Gs=(e,t)=>({id:"workspaces-section",title:"Workspaces",items:e.map(n=>({...n,type:Te.WORKSPACE,isOpen:t[n.title]?.length>0,contextMenuActions:Gr})).sort((n,r)=>n.title.localeCompare(r.title))}),Oo=()=>{const e=js(),t=Ss(),n=to(),r=oo(),o=Gs(e,t),i=a=>{const{item:c,modifier:l,selectedContextMenuActionName:f}=a;if(!f)return n(c.id,l).catch(p=>{console.error("Failed to restore workspace",{error:p})});r(c,f)};return s.jsx(Vt,{config:o,onItemClick:i})};var b={},lr={get exports(){return b},set exports(e){b=e}},Nt={},Ys={get exports(){return Nt},set exports(e){Nt=e}},q={};/** @license React v16.13.1
22
+ ***************************************************************************** */var cn=function(){return cn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},cn.apply(this,arguments)};function ds(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function ln(e,t){if(e===t||e===null&&t===null)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="object"){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!ln(e[n],t[n]))return!1;return!0}var r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(var n=0;n<r.length;n++)if(!t.hasOwnProperty(r[n])||!ln(e[r[n]],t[r[n]]))return!1;return!0}}var ft=function(e){return Array.isArray(e)},jt=function(e){return typeof e=="object"&&e!==null&&!ft(e)},ps=function(e){switch(typeof e){case"string":return"a string";case"number":return"a number";case"boolean":return"a boolean";case"undefined":return"undefined";case"object":return e instanceof Array?"an array":e===null?"null":"an object";default:return JSON.stringify(e)}},Ne=function(e,t){return"expected "+e+", got "+ps(t)},ct=function(e){return e.map(function(t){return typeof t=="string"?"."+t:"["+t+"]"}).join("")},lt=function(e,t){var n=t.at,r=ds(t,["at"]);return cn({at:e+(n||"")},r)},se=function(){function e(t){var n=this;this.decode=t,this.run=function(r){return Gt(function(o){return{kind:"DecoderError",input:r,at:"input"+(o.at||""),message:o.message||""}},n.decode(r))},this.runPromise=function(r){return as(n.run(r))},this.runWithException=function(r){return ls(n.run(r))},this.map=function(r){return new e(function(o){return us(r,n.decode(o))})},this.andThen=function(r){return new e(function(o){return fs(function(i){return r(i).decode(o)},n.decode(o))})},this.where=function(r,o){return n.andThen(function(i){return r(i)?e.succeed(i):e.fail(o)})}}return e.string=function(){return new e(function(t){return typeof t=="string"?ae(t):ie({message:Ne("a string",t)})})},e.number=function(){return new e(function(t){return typeof t=="number"?ae(t):ie({message:Ne("a number",t)})})},e.boolean=function(){return new e(function(t){return typeof t=="boolean"?ae(t):ie({message:Ne("a boolean",t)})})},e.constant=function(t){return new e(function(n){return ln(n,t)?ae(t):ie({message:"expected "+JSON.stringify(t)+", got "+JSON.stringify(n)})})},e.object=function(t){return new e(function(n){if(jt(n)&&t){var r={};for(var o in t)if(t.hasOwnProperty(o)){var i=t[o].decode(n[o]);if(i.ok===!0)i.result!==void 0&&(r[o]=i.result);else return n[o]===void 0?ie({message:"the key '"+o+"' is required but was not present"}):ie(lt("."+o,i.error))}return ae(r)}else return jt(n)?ae(n):ie({message:Ne("an object",n)})})},e.array=function(t){return new e(function(n){if(ft(n)&&t){var r=function(o,i){return Gt(function(a){return lt("["+i+"]",a)},t.decode(o))};return n.reduce(function(o,i,a){return cr(function(c,l){return c.concat([l])},o,r(i,a))},ae([]))}else return ft(n)?ae(n):ie({message:Ne("an array",n)})})},e.tuple=function(t){return new e(function(n){if(ft(n)){if(n.length!==t.length)return ie({message:"expected a tuple of length "+t.length+", got one of length "+n.length});for(var r=[],o=0;o<t.length;o++){var i=t[o].decode(n[o]);if(i.ok)r[o]=i.result;else return ie(lt("["+o+"]",i.error))}return ae(r)}else return ie({message:Ne("a tuple of length "+t.length,n)})})},e.union=function(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return e.oneOf.apply(e,[t,n].concat(r))},e.intersection=function(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return new e(function(i){return[t,n].concat(r).reduce(function(a,c){return cr(Object.assign,a,c.decode(i))},ae({}))})},e.anyJson=function(){return new e(function(t){return ae(t)})},e.unknownJson=function(){return new e(function(t){return ae(t)})},e.dict=function(t){return new e(function(n){if(jt(n)){var r={};for(var o in n)if(n.hasOwnProperty(o)){var i=t.decode(n[o]);if(i.ok===!0)r[o]=i.result;else return ie(lt("."+o,i.error))}return ae(r)}else return ie({message:Ne("an object",n)})})},e.optional=function(t){return new e(function(n){return n==null?ae(void 0):t.decode(n)})},e.oneOf=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new e(function(r){for(var o=[],i=0;i<t.length;i++){var a=t[i].decode(r);if(a.ok===!0)return a;o[i]=a.error}var c=o.map(function(l){return"at error"+(l.at||"")+": "+l.message}).join('", "');return ie({message:'expected a value matching one of the decoders, got the errors ["'+c+'"]'})})},e.withDefault=function(t,n){return new e(function(r){return ae(cs(t,n.decode(r)))})},e.valueAt=function(t,n){return new e(function(r){for(var o=r,i=0;i<t.length;i++){if(o===void 0)return ie({at:ct(t.slice(0,i+1)),message:"path does not exist"});if(typeof t[i]=="string"&&!jt(o))return ie({at:ct(t.slice(0,i+1)),message:Ne("an object",o)});if(typeof t[i]=="number"&&!ft(o))return ie({at:ct(t.slice(0,i+1)),message:Ne("an array",o)});o=o[t[i]]}return Gt(function(a){return o===void 0?{at:ct(t),message:"path does not exist"}:lt(ct(t),a)},n.decode(o))})},e.succeed=function(t){return new e(function(n){return ae(t)})},e.fail=function(t){return new e(function(n){return ie({message:t})})},e.lazy=function(t){return new e(function(n){return t().decode(n)})},e}(),un=se.string;se.number;var hs=se.boolean;se.anyJson;se.unknownJson;se.constant;var Ln=se.object,Jr=se.array;se.tuple;se.dict;var Ke=se.optional;se.oneOf;se.union;se.intersection;se.withDefault;se.valueAt;se.succeed;se.fail;se.lazy;const He=un().where(e=>e.length>0,"Expected a non-empty string"),ms=Ln({name:He,displayName:Ke(He),disabled:Ke(hs())}),vs=Ln({id:He,title:He,description:Ke(He),icon:Ke(un()),iconSrc:Ke(un()),contextMenuActions:Ke(Jr(ms)),type:He}),gs=Jr(vs),Bt=()=>{const[e,t]=Dn("localStorage",ss,gs),n=y.useMemo(()=>e||[],[e]);return{favoriteEntities:n,toggleFavorite:({isOpen:i,...a})=>{const c=n.find(f=>f.title===a.title&&f.type===a.type),l=c?n.filter(f=>f!==c):[...n,a];t(l)},removeFavorite:i=>{t(n.filter(a=>a.id!==i))}}},Qr=()=>{const[e,t]=y.useState(),n=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=Ir.getFrameId();n.workspaces?.waitForFrame(r).then(t).catch(o=>console.error("Failed to get current frame",{error:o}))},[n]),e},ys=()=>{const e=y.useContext(ne.IOConnectContext);return async t=>e.interop.methods().every(n=>n.name!==t?.method)?console.error("Interop method not found."):await e.interop.invoke(t.method,t.params,t.target).catch(n=>console.error({error:n}))},bs=()=>{const[e,t]=y.useState([]),n=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{if(!n)return;let r=!1;const o=n.layouts.onAdded(a=>{if(a.type!=="Global"||r)return;const{name:c,type:l}=a;t(f=>[...f,{name:c,type:l}])}),i=n.layouts.onRemoved(a=>{a.type!=="Global"||r||t(c=>c.filter(l=>l.name!==a.name))});return()=>{r=!0,o(),i()}},[n]),e},eo=()=>{const[e,t]=y.useState([]),n=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=n.notifications.onRaised(i=>t(a=>[...a,i])),o=n.notifications.onClosed(i=>t(a=>a.filter(c=>c.id!==i.id)));return n.notifications.list().then(t).catch(console.error),()=>{r(),o()}},[n]),e},Yt=["None","Low","Medium","High","Critical"],xs={None:"#616161",Low:"#7AC70C",Medium:"#E0A900",High:"#E0474C",Critical:"#B8001E"},fn={TIMESTAMP:"timestamp",SEVERITY:"severity"},lr={key:fn.TIMESTAMP,descending:!0},ws=(e,t)=>[...e].sort((n,r)=>(t?-1:1)*((n.timestamp||0)-(r.timestamp||0))),Os=(e,t)=>{const n=Yt[0];return[...e].sort((r,o)=>{const i=Yt.indexOf(r.severity||n),a=Yt.indexOf(o.severity||n);return(t?-1:1)*(i-a)})},Cs={[fn.TIMESTAMP]:ws,[fn.SEVERITY]:Os},Es=()=>{const e=eo(),[t,n]=y.useState(lr),{key:r,descending:o}=t,i=y.useMemo(()=>Cs[r](e,o),[e,r,o]);return{onNotificationsSort:y.useCallback(c=>{n(l=>({key:c,descending:l.key!==c?lr.descending:!l.descending}))},[]),sortedNotifications:i}},to=()=>{const[e,t]=y.useState([]);return y.useEffect(()=>{const n=({key:i})=>{t(a=>a.includes(i)?a:a.concat(i))},r=i=>{t(a=>a.filter(c=>c!==i.key))},o=()=>{t([])};return document.addEventListener("keydown",n),document.addEventListener("keyup",r),window.addEventListener("blur",o),()=>{document.removeEventListener("keydown",n),document.removeEventListener("keyup",r),window.removeEventListener("blur",o)}},[]),e.length===1?e[0]:null},Ht={CONTROL:"Control",SHIFT:"Shift"},no=()=>{const e=y.useContext(ne.IOConnectContext),t=Qr();return async(n,r)=>{const o=r===Ht.CONTROL?{newFrame:!0}:{frameId:t?.id};return e.workspaces?.restoreWorkspace(n,o)}},Fn=()=>{const e=y.useContext(ne.IOConnectContext);return y.useCallback(async(t,n)=>{if(e)try{await e.layouts.restore({name:t}),n?.({name:t})}catch(r){console.error(r)}},[e])},js=e=>{const[t,n]=y.useState([]),[r,o]=y.useState(!0),i=y.useRef(null),a=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{const c=a?.search;if(!c)return;const l=[],f=[];return(async g=>{o(!0),n([]);const u=await c.query({search:g.trim(),providerLimits:{maxResults:100,maxResultsPerType:5}});if(u===i.current)return;i.current=u;const h=u.onResults(v=>{v.results.forEach(E=>{f.find(C=>C.id===E.id&&C.type.name===E.type.name)||f.push(E)}),o(!1),n([...f])}),m=u.onCompleted(()=>{o(!1)}),d=u.onError(v=>{console.error(`Query failed. Provider: ${v.provider}; Error: ${v.error}`)});l.push(h,m,d)})(e),()=>{l.forEach(g=>g())}},[a,e]),{resultsToRender:t,isLoading:r}},ro=()=>{const e=y.useContext(ne.IOConnectContext);return async(t,n)=>{const r=await e.workspaces?.getWorkspace(c=>c.isSelected===!0),o=r?.children[0];return n===Ht.CONTROL||!r||o?.type==="window"?await e.appManager.application(t).start():await(o?.type==="group"?o:await(o||r).addGroup()).addWindow({appName:t})}},Ss=()=>{const[e,t]=y.useState([]),n=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{if(!n||!n.workspaces)return;let r=!1;const o=n.workspaces.layouts.onSaved(({name:a})=>{r||e.find(({id:c})=>c===a)||t(c=>[...c,{id:a,title:a}])}),i=n.workspaces.layouts.onRemoved(({name:a})=>{r||t(c=>c.filter(({title:l})=>l!==a))});return()=>{r=!0,[o,i].forEach(async a=>{try{(await a)()}catch(c){console.error(c)}})}},[n,e]),e},Ps=()=>{const[e,t]=y.useState({}),n=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=[];return(async()=>{try{const o=await n.workspaces?.onWorkspaceOpened(a=>t(c=>({...c,[a.title]:[...c[a.title]||[],a.id]})));r.push(o);const i=await n.workspaces?.onWorkspaceClosed(({workspaceId:a})=>t(c=>{const l={...c};for(const f in l)if(l[f].includes(a)){l[f]=l[f].filter(p=>p!==a);break}return l}));r.push(i)}catch(o){console.error(o)}})(),()=>r.forEach(o=>o?.())},[n]),e},Ns=e=>{const{io:t,item:n}=e;t.appManager.application(n.id).start().catch(r=>{console.error("Failed to start application: ",{error:r})})},Ts=e=>{const{io:t,item:n,frame:r}=e;if(!t.workspaces)return;const o={type:"workspace",definition:{frame:r?{reuseFrameId:r.id}:{newFrame:!0}}},i=t.workspaces.getBuilder(o);i.addGroup().addWindow({appName:n.id}),i.create().catch(a=>{console.error("Failed to create workspace: ",{error:a})})},ks={openInNewWindow:Ns,openInNewWorkspace:Ts},oo=()=>{const e=y.useContext(ne.IOConnectContext),t=Qr();return(n,r)=>{ks[r]({io:e,item:n,frame:t})}},As=e=>{const{io:t,item:n}=e;t.workspaces&&t.workspaces.restoreWorkspace(n.id,{newFrame:!0}).catch(r=>{console.error("Failed to open workspace in new frame: ",{error:r})})},_s=async e=>{const{io:t,item:n,removeFavorite:r}=e;if(t.workspaces)try{await t.workspaces.layouts.delete(n.id),r(n.id)}catch(o){console.error("Failed to delete workspace: ",{error:o})}},Rs={openInNewFrame:As,delete:_s},io=()=>{const e=y.useContext(ne.IOConnectContext),{removeFavorite:t}=Bt();return(n,r)=>{Rs[r]({io:e,item:n,removeFavorite:t})}},Is=e=>{const{layout:t,setDefaultLayout:n}=e;n({name:t.name})},Ms=e=>{const{io:t,layout:n}=e;t.layouts.remove("Global",n.name).catch(r=>{console.error("Failed to delete layout: ",{error:r})})},Ds={setAsDefault:Is,delete:Ms},Ls=()=>{const e=y.useContext(ne.IOConnectContext);return y.useCallback((n,r,o)=>{Ds[r]({io:e,layout:n,setDefaultLayout:o})},[e])};var kt={},Fs={get exports(){return kt},set exports(e){kt=e}};(function(e,t){(function(n,r){var o="1.0.35",i="",a="?",c="function",l="undefined",f="object",p="string",g="major",u="model",h="name",m="type",d="vendor",v="version",E="architecture",P="console",C="mobile",w="tablet",x="smarttv",N="wearable",V="embedded",X=350,G="Amazon",W="Apple",H="ASUS",te="BlackBerry",Q="Browser",oe="Chrome",he="Edge",Y="Firefox",ee="Google",ve="Huawei",ue="LG",O="Microsoft",S="Motorola",A="Opera",R="Samsung",T="Sharp",_="Sony",k="Xiaomi",I="Zebra",L="Facebook",B="Chromium OS",$="Mac OS",re=function(F,U){var M={};for(var K in F)U[K]&&U[K].length%2===0?M[K]=U[K].concat(F[K]):M[K]=F[K];return M},j=function(F){for(var U={},M=0;M<F.length;M++)U[F[M].toUpperCase()]=F[M];return U},ce=function(F,U){return typeof F===p?ge(U).indexOf(ge(F))!==-1:!1},ge=function(F){return F.toLowerCase()},Ze=function(F){return typeof F===p?F.replace(/[^\d\.]/g,i).split(".")[0]:r},qe=function(F,U){if(typeof F===p)return F=F.replace(/^\s\s*/,i),typeof U===l?F:F.substring(0,X)},Ae=function(F,U){for(var M=0,K,Re,Ee,Z,D,je;M<U.length&&!D;){var zt=U[M],Gn=U[M+1];for(K=Re=0;K<zt.length&&!D&&zt[K];)if(D=zt[K++].exec(F),D)for(Ee=0;Ee<Gn.length;Ee++)je=D[++Re],Z=Gn[Ee],typeof Z===f&&Z.length>0?Z.length===2?typeof Z[1]==c?this[Z[0]]=Z[1].call(this,je):this[Z[0]]=Z[1]:Z.length===3?typeof Z[1]===c&&!(Z[1].exec&&Z[1].test)?this[Z[0]]=je?Z[1].call(this,je,Z[2]):r:this[Z[0]]=je?je.replace(Z[1],Z[2]):r:Z.length===4&&(this[Z[0]]=je?Z[3].call(this,je.replace(Z[1],Z[2])):r):this[Z]=je||r;M+=2}},st=function(F,U){for(var M in U)if(typeof U[M]===f&&U[M].length>0){for(var K=0;K<U[M].length;K++)if(ce(U[M][K],F))return M===a?r:M}else if(ce(U[M],F))return M===a?r:M;return F},qt={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Ce={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Le={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,v],[/opios[\/ ]+([\w\.]+)/i],[v,[h,A+" Mini"]],[/\bopr\/([\w\.]+)/i],[v,[h,A]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[h,v],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[h,"UC"+Q]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[v,[h,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[v,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[v,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+Q],v],[/\bfocus\/([\w\.]+)/i],[v,[h,Y+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[h,A+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[h,A+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[h,"MIUI "+Q]],[/fxios\/([-\w\.]+)/i],[v,[h,Y]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+Q]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+Q],v],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[h,v],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,L],v],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[h,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[v,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[h,oe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,oe+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[h,"Android "+Q]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,v],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[v,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[v,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[v,st,qt]],[/(webkit|khtml)\/([\w\.]+)/i],[h,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[h,Y+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[h,v],[/(cobalt)\/([\w\.]+)/i],[h,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[E,"amd64"]],[/(ia32(?=;))/i],[[E,ge]],[/((?:i[346]|x)86)[;\)]/i],[[E,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[E,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[E,"armhf"]],[/windows (ce|mobile); ppc;/i],[[E,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[E,/ower/,i,ge]],[/(sun4\w)[;\)]/i],[[E,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[E,ge]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[d,R],[m,w]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[d,R],[m,C]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[d,W],[m,C]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[d,W],[m,w]],[/(macintosh);/i],[u,[d,W]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[d,T],[m,C]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[d,ve],[m,w]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[d,ve],[m,C]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[d,k],[m,C]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[d,k],[m,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[d,"OPPO"],[m,C]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[d,"Vivo"],[m,C]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[u,[d,"Realme"],[m,C]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[d,S],[m,C]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[d,S],[m,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[d,ue],[m,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[d,ue],[m,C]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[d,"Lenovo"],[m,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[d,"Nokia"],[m,C]],[/(pixel c)\b/i],[u,[d,ee],[m,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[d,ee],[m,C]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[d,_],[m,C]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[d,_],[m,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[d,"OnePlus"],[m,C]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[d,G],[m,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[d,G],[m,C]],[/(playbook);[-\w\),; ]+(rim)/i],[u,d,[m,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[d,te],[m,C]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[d,H],[m,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[d,H],[m,C]],[/(nexus 9)/i],[u,[d,"HTC"],[m,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[u,/_/g," "],[m,C]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[d,"Acer"],[m,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[d,"Meizu"],[m,C]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,u,[m,C]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,u,[m,w]],[/(surface duo)/i],[u,[d,O],[m,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[d,"Fairphone"],[m,C]],[/(u304aa)/i],[u,[d,"AT&T"],[m,C]],[/\bsie-(\w*)/i],[u,[d,"Siemens"],[m,C]],[/\b(rct\w+) b/i],[u,[d,"RCA"],[m,w]],[/\b(venue[\d ]{2,7}) b/i],[u,[d,"Dell"],[m,w]],[/\b(q(?:mv|ta)\w+) b/i],[u,[d,"Verizon"],[m,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[d,"Barnes & Noble"],[m,w]],[/\b(tm\d{3}\w+) b/i],[u,[d,"NuVision"],[m,w]],[/\b(k88) b/i],[u,[d,"ZTE"],[m,w]],[/\b(nx\d{3}j) b/i],[u,[d,"ZTE"],[m,C]],[/\b(gen\d{3}) b.+49h/i],[u,[d,"Swiss"],[m,C]],[/\b(zur\d{3}) b/i],[u,[d,"Swiss"],[m,w]],[/\b((zeki)?tb.*\b) b/i],[u,[d,"Zeki"],[m,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],u,[m,w]],[/\b(ns-?\w{0,9}) b/i],[u,[d,"Insignia"],[m,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[d,"NextBook"],[m,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],u,[m,C]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],u,[m,C]],[/\b(ph-1) /i],[u,[d,"Essential"],[m,C]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[d,"Envizen"],[m,w]],[/\b(trio[-\w\. ]+) b/i],[u,[d,"MachSpeed"],[m,w]],[/\btu_(1491) b/i],[u,[d,"Rotor"],[m,w]],[/(shield[\w ]+) b/i],[u,[d,"Nvidia"],[m,w]],[/(sprint) (\w+)/i],[d,u,[m,C]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[d,O],[m,C]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[d,I],[m,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[d,I],[m,C]],[/smart-tv.+(samsung)/i],[d,[m,x]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[d,R],[m,x]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,ue],[m,x]],[/(apple) ?tv/i],[d,[u,W+" TV"],[m,x]],[/crkey/i],[[u,oe+"cast"],[d,ee],[m,x]],[/droid.+aft(\w)( bui|\))/i],[u,[d,G],[m,x]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[d,T],[m,x]],[/(bravia[\w ]+)( bui|\))/i],[u,[d,_],[m,x]],[/(mitv-\w{5}) bui/i],[u,[d,k],[m,x]],[/Hbbtv.*(technisat) (.*);/i],[d,u,[m,x]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,qe],[u,qe],[m,x]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[m,x]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,u,[m,P]],[/droid.+; (shield) bui/i],[u,[d,"Nvidia"],[m,P]],[/(playstation [345portablevi]+)/i],[u,[d,_],[m,P]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[d,O],[m,P]],[/((pebble))app/i],[d,u,[m,N]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[d,W],[m,N]],[/droid.+; (glass) \d/i],[u,[d,ee],[m,N]],[/droid.+; (wt63?0{2,3})\)/i],[u,[d,I],[m,N]],[/(quest( 2| pro)?)/i],[u,[d,L],[m,N]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[m,V]],[/(aeobc)\b/i],[u,[d,G],[m,V]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[u,[m,C]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[m,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[m,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[m,C]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[h,he+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[h,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,v],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[h,[v,st,Ce]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[v,st,Ce]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,$],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[v,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,v],[/\(bb(10);/i],[v,[h,te]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[h,Y+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[v,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[v,[h,oe+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,B],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[h,v],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,v]]},fe=function(F,U){if(typeof F===f&&(U=F,F=r),!(this instanceof fe))return new fe(F,U).getResult();var M=typeof n!==l&&n.navigator?n.navigator:r,K=F||(M&&M.userAgent?M.userAgent:i),Re=M&&M.userAgentData?M.userAgentData:r,Ee=U?re(Le,U):Le,Z=M&&M.userAgent==K;return this.getBrowser=function(){var D={};return D[h]=r,D[v]=r,Ae.call(D,K,Ee.browser),D[g]=Ze(D[v]),Z&&M&&M.brave&&typeof M.brave.isBrave==c&&(D[h]="Brave"),D},this.getCPU=function(){var D={};return D[E]=r,Ae.call(D,K,Ee.cpu),D},this.getDevice=function(){var D={};return D[d]=r,D[u]=r,D[m]=r,Ae.call(D,K,Ee.device),Z&&!D[m]&&Re&&Re.mobile&&(D[m]=C),Z&&D[u]=="Macintosh"&&M&&typeof M.standalone!==l&&M.maxTouchPoints&&M.maxTouchPoints>2&&(D[u]="iPad",D[m]=w),D},this.getEngine=function(){var D={};return D[h]=r,D[v]=r,Ae.call(D,K,Ee.engine),D},this.getOS=function(){var D={};return D[h]=r,D[v]=r,Ae.call(D,K,Ee.os),Z&&!D[h]&&Re&&Re.platform!="Unknown"&&(D[h]=Re.platform.replace(/chrome os/i,B).replace(/macos/i,$)),D},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return K},this.setUA=function(D){return K=typeof D===p&&D.length>X?qe(D,X):D,this},this.setUA(K),this};fe.VERSION=o,fe.BROWSER=j([h,v,g]),fe.CPU=j([E]),fe.DEVICE=j([u,d,m,P,C,x,w,N,V]),fe.ENGINE=fe.OS=j([h,v]),e.exports&&(t=e.exports=fe),t.UAParser=fe;var Pe=typeof n!==l&&(n.jQuery||n.Zepto);if(Pe&&!Pe.ua){var _e=new fe;Pe.ua=_e.getResult(),Pe.ua.get=function(){return _e.getUA()},Pe.ua.set=function(F){_e.setUA(F);var U=_e.getResult();for(var M in U)Pe.ua[M]=U[M]}}})(typeof window=="object"?window:Gi)})(Fs,kt);const $s=new kt.UAParser,so=()=>Me.useMemo(()=>$s.getBrowser(),[]),ao=e=>{const{className:t,isFavoritismEnabled:n=!0,item:r,onClick:o,onKeyDown:i,focused:a,...c}=e,{favoriteEntities:l,toggleFavorite:f}=Bt(),{description:p,icon:g="application",iconSrc:u,isOpen:h=!1,title:m,contextMenuActions:d}=r,v=n&&l.some(E=>E.type===r.type&&E.title===r.title);return s.jsxs("div",{tabIndex:a?0:-1,className:J(t,"g42-list-item"),onKeyDown:E=>{if(Zr(E)){o(E),E.preventDefault(),E.stopPropagation();return}i(E)},onClick:o,"data-testid":"base-section-item",...c,children:[s.jsxs("div",{className:"g42-list-row",children:[s.jsx(le,{size:8,name:h?"check":"","data-testid":"open-check-icon"}),u?s.jsx(Mn,{src:u,alt:`${m} icon`,size:14,"data-testid":"img-icon"}):s.jsx(le,{size:14,name:g,"data-testid":"icon"}),s.jsx("span",{className:"title","data-testid":"title",children:m}),h&&s.jsx("span",{className:"opened","data-testid":"opened-label",children:"Opened"}),d&&d.length>0&&s.jsx(In,{iconName:"ellipsis",iconSize:16,actions:d,onActionItemClick:o,isTabStop:a}),n&&s.jsx(le,{tabIndex:a?0:-1,className:J("favorite",v&&"visible"),name:v?"star-full":"star",handleClick:E=>{E.stopPropagation(),f(r)},size:16,"data-testid":"favorite-icon"})]}),p&&s.jsx("div",{className:"g42-list-row",children:s.jsx("span",{className:"description","data-testid":"description",children:p})})]})},co=Ln({name:He}),lo="Welcome",Bs=5,Hs=()=>{const[e,t]=y.useState(null),[n,r]=Dn("sessionStorage",Xr,co),o=y.useRef(!1),i=Fn(),a=y.useContext(ne.IOConnectContext),c=y.useCallback(async({name:l})=>{try{await a.layouts.setDefaultGlobal(l),t({name:l})}catch(f){console.error("Failed to set default layout: ",{error:f})}},[a]);return y.useEffect(()=>{if(!a||o.current)return;(async()=>{o.current=!0;const f=await a.layouts.getDefaultGlobal()||await a.layouts.get(lo,"Global");f&&(t({name:f.name}),n||i(f.name,r))})()},[a,n,i,r]),{defaultLayout:e,selectedLayout:n,setDefaultLayout:c,setSelectedLayout:r}},uo=y.createContext(void 0),ot=()=>{const e=y.useContext(uo);if(e===void 0)throw new Error("useLaunchpadAPI must be used within a LaunchpadAPIProvider");return e},Vs=({children:e,setOpen:t,isOpen:n})=>{const{defaultLayout:r,selectedLayout:o,setDefaultLayout:i,setSelectedLayout:a}=Hs(),l={close:y.useCallback(()=>t(!1),[t]),isOpen:n,defaultLayout:r,selectedLayout:o,setDefaultLayout:i,setSelectedLayout:a};return s.jsx(uo.Provider,{value:l,children:e})},Vt=e=>{const{config:t,isFavoritismEnabled:n,level:r=1,onItemClick:o}=e,[i,a]=y.useState(1),c=t.displayCount??Bs,l=to(),f=ot(),[p,g]=y.useState(0),u=y.useRef({}),h=y.useMemo(()=>t.items.filter(P=>mt(P)),[t.items]),m=y.useMemo(()=>t.items.filter(P=>!mt(P)).slice(0,i*c),[t.items,c,i]);y.useEffect(()=>{f.isOpen||a(1)},[f.isOpen]);const d=()=>{a(P=>P+1)},v=[...h,...m],E=P=>{u.current[P]?.querySelector("[tabIndex]")?.focus(),g(P)};return s.jsxs("li",{className:"section",children:[s.jsx(Kr,{iconSrc:t.iconSrc,iconName:t.iconName,style:{paddingLeft:`${(r-1)*12+6}px`},title:t.title}),s.jsxs("ul",{children:[v.map((P,C)=>mt(P)?s.jsx(Vt,{config:P,isFavoritismEnabled:n,level:r+1,onItemClick:o},P.id):s.jsx("li",{ref:w=>u.current[C]=w,children:s.jsx(ao,{isFavoritismEnabled:n,item:P,onClick:(w,x)=>o?.(w,{item:P,modifier:l,selectedContextMenuActionName:x?.name}),style:{paddingLeft:`${r*7}px`},onKeyDown:w=>{qr({event:w,moveFocus:E,currentIndex:p,min:0,max:v.length-1})},focused:p===C},P.id||C)},P.id||C)),t.items.length-h.length>c*i&&s.jsx("li",{"data-testid":"more-li-element",children:s.jsx("div",{className:"g42-list-item more",style:{paddingLeft:`${r*7+8}px`},role:"button","aria-label":"More",...nt(d),children:s.jsxs("div",{className:"g42-list-row",children:[s.jsx("span",{className:"title",children:"More..."}),s.jsx(le,{size:12,name:"chevron-down","data-testid":"more-chevron"})]})})})]})]})},fo=e=>`${e.type}-${e.id}`,Us=(e,t)=>po(e)[t],po=e=>e.reduce((t,n)=>mt(n)?{...t,...po(n.items)}:{...t,[fo(n)]:n},{}),ho=y.createContext(void 0),Ws=()=>{const e=y.useContext(ho);if(e===void 0)throw new Error("useSection must be used within a SectionProvider");return e},Zs=({children:e})=>{const[t,n]=y.useState(null);return s.jsx(ho.Provider,{value:[t,n],children:e})},Ut=({config:e,onItemClick:t})=>{const[n,r]=Ws(),o=ot(),i=to(),a=(c,l)=>{const{item:f,selectedContextMenuActionName:p}=l;r({itemName:fo(f),selectedContextMenuActionName:p})};return y.useEffect(()=>{if(!t||!n)return;const{itemName:c,selectedContextMenuActionName:l}=n,f=Us(e.items,c);f&&(t({item:f,modifier:i,selectedContextMenuActionName:l}),r(null),i!==Ht.SHIFT&&o.close())},[n,e.items,o,t,i,r]),s.jsx(Vt,{config:e,onItemClick:a})};function mo(){const e=os(),t=is(),n=ro(),r=oo(),o=rs(e,t),i=a=>{const{item:c,modifier:l,selectedContextMenuActionName:f}=a;if(!f)return n(c.id,l).catch(p=>{console.error("Failed to start application",{error:p})});r(c,f)};return s.jsx(Ut,{config:o,onItemClick:i})}function xt({children:e,className:t,color:n,...r}){return s.jsx("button",{className:J(t,"g42-btn",n),...r,children:e})}function Wt(e){const{className:t,items:n,onItemClick:r,...o}=e;return s.jsx("div",{className:J("g42-btn-group",t),...o,children:n.map((i,a)=>{const{onClick:c,...l}=i;return s.jsx(xt,{onClick:f=>{c&&c(f),r&&r(f,i)},...l},a)})})}const qs=e=>({id:"favorites-section",title:"Favorites",items:e,iconName:"star"}),vo=()=>{const{favoriteEntities:e}=Bt(),t=qs(e);return e.length>0?s.jsx(Ut,{config:t}):null},go=e=>{const{initials:t,className:n,...r}=e;return s.jsx("div",{className:J(n,"profile-icon"),...r,children:t})},yo=()=>{const e=y.useContext(ne.IOConnectContext),[t,n]=y.useState([]);y.useEffect(()=>{e&&e.themes?.list().then(o=>n(o)).catch(console.warn)},[e]);const r=async(o,i)=>{i.name&&e.themes?.select(i.name).catch(console.warn)};return s.jsxs("div",{className:"info info-middle",children:[s.jsx("h4",{children:"Settings"}),s.jsxs("div",{className:"flex ai-center",children:[s.jsx("label",{style:{textAlign:"right",width:"40%"},children:"Theme"}),s.jsx("div",{style:{width:"60%",marginLeft:"auto"},children:s.jsx(Wt,{onItemClick:r,items:t.map(({name:o,displayName:i})=>({name:o,children:i}))})})]})]})},bo=({title:e,description:t,links:n=[],onLogout:r})=>{const[o,i]=Dn("sessionStorage",Xr,co),a=()=>{i(null),r?.()};return s.jsxs("div",{className:"info info-bottom flex flex-column",children:[s.jsx("h4",{children:e||"Support"}),s.jsx("p",{children:t||"New set of thoughtfully curated items and the ability to configure them."}),s.jsx("ul",{children:n.map(({children:c,...l})=>s.jsx("li",{children:s.jsx("a",{...l,children:c})},l.href))}),s.jsx("div",{children:s.jsx(xt,{onClick:a,children:"Log Out"})})]})},xo=e=>e?.split(" ").map(t=>t[0]?.toUpperCase()).join(""),zs=({user:e})=>{const t=y.useContext(ne.IOConnectContext),n=e?.name||"N A";return s.jsxs("div",{className:"flex info info-top",children:[s.jsxs("div",{children:[s.jsx("h4",{children:n}),s.jsxs("p",{children:["PROD"," | ","Version "+t.version]})]}),s.jsx("div",{className:"flex badge",children:xo(n)})]})},wo=({onLogout:e,user:t})=>s.jsxs(s.Fragment,{children:[s.jsx(zs,{user:t}),s.jsx(yo,{}),s.jsx(bo,{onLogout:e})]});const Oo=y.forwardRef((e,t)=>{const{onSearch:n,searchTerm:r,onClear:o}=e,i=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{!i||!i.search||i.search.setDebounceMS(450)},[i]),s.jsxs("div",{className:"search","data-testid":"search-bar",children:[s.jsx("input",{type:"search",ref:t,className:"g42-input",placeholder:"Find anything",value:r,onChange:n}),s.jsx(le,{name:"delete-left",className:r.length!==0?"active":"",onClick:o,"data-testid":"delete-icon"})]})}),Gs=e=>e.reduce((t,n)=>{const{type:r}=n,o=n.id||n.displayName;if(!o||r.name===Te.LAYOUT)return t;let i=[];r.name===Te.APPLICATION?i=Gr:r.name===Te.WORKSPACE?i=Yr:n.secondaryActions&&(i=n.secondaryActions.map(({name:f,method:p,params:g,target:u})=>({name:f,interopParams:{method:p,params:g,target:u}})));const a={id:o,title:n.displayName||o,description:n.description,type:r.name,iconSrc:n.iconURL,mainAction:n.action,contextMenuActions:i},c=t.findIndex(({title:f})=>r.displayName?f===r.displayName:f===r.name),l=t[c];return l?[...t.slice(0,c),{...l,items:[...l.items,a]},...t.slice(c+1)]:[...t,{id:r.name,title:r.displayName||r.name,items:[a]}]},[]);function Co(e){const{resultsToRender:t,isLoading:n}=js(e.searchTerm),r=ot(),o=ys(),i=no(),a=ro(),c=Gs(t),l=oo(),f=io(),p=(u,h)=>{const m=u.type===Te.APPLICATION?l:u.type===Te.WORKSPACE?f:null;m&&m(u,h)},g=async(u,h)=>{const{item:m,modifier:d,selectedContextMenuActionName:v}=h,{type:E,id:P,mainAction:C}=m,w=v?m.contextMenuActions?.find(x=>x.name===v):null;w?.interopParams?o(w.interopParams):v?p(m,v):C?o(C):E===Te.APPLICATION?a(P,d).catch(x=>{console.error("Failed to start application",{error:x})}):E===Te.WORKSPACE&&i(P,d).catch(x=>{console.error("Failed to restore workspace",{error:x})}),d!==Ht.SHIFT&&r.close()};return n?s.jsx("p",{style:{padding:"12px 24px"},children:"Loading..."}):t.length===0?s.jsx("p",{style:{padding:"12px 24px"},children:"No results found."}):s.jsx("ul",{children:c.map((u,h)=>s.jsx(Vt,{config:u,isFavoritismEnabled:!1,onItemClick:g},u.id||h))})}const Ys=(e,t)=>({id:"workspaces-section",title:"Workspaces",items:e.map(n=>({...n,type:Te.WORKSPACE,isOpen:t[n.title]?.length>0,contextMenuActions:Yr})).sort((n,r)=>n.title.localeCompare(r.title))}),Eo=()=>{const e=Ss(),t=Ps(),n=no(),r=io(),o=Ys(e,t),i=a=>{const{item:c,modifier:l,selectedContextMenuActionName:f}=a;if(!f)return n(c.id,l).catch(p=>{console.error("Failed to restore workspace",{error:p})});r(c,f)};return s.jsx(Ut,{config:o,onItemClick:i})};var b={},ur={get exports(){return b},set exports(e){b=e}},At={},Ks={get exports(){return At},set exports(e){At=e}},q={};/** @license React v16.13.1
23
23
  * react-is.production.min.js
24
24
  *
25
25
  * Copyright (c) Facebook, Inc. and its affiliates.
26
26
  *
27
27
  * This source code is licensed under the MIT license found in the
28
28
  * LICENSE file in the root directory of this source tree.
29
- */var ur;function Ks(){if(ur)return q;ur=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function O(x){if(typeof x=="object"&&x!==null){var k=x.$$typeof;switch(k){case t:switch(x=x.type,x){case l:case f:case r:case i:case o:case g:return x;default:switch(x=x&&x.$$typeof,x){case c:case p:case m:case h:case a:return x;default:return k}}case n:return k}}}function w(x){return O(x)===f}return q.AsyncMode=l,q.ConcurrentMode=f,q.ContextConsumer=c,q.ContextProvider=a,q.Element=t,q.ForwardRef=p,q.Fragment=r,q.Lazy=m,q.Memo=h,q.Portal=n,q.Profiler=i,q.StrictMode=o,q.Suspense=g,q.isAsyncMode=function(x){return w(x)||O(x)===l},q.isConcurrentMode=w,q.isContextConsumer=function(x){return O(x)===c},q.isContextProvider=function(x){return O(x)===a},q.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},q.isForwardRef=function(x){return O(x)===p},q.isFragment=function(x){return O(x)===r},q.isLazy=function(x){return O(x)===m},q.isMemo=function(x){return O(x)===h},q.isPortal=function(x){return O(x)===n},q.isProfiler=function(x){return O(x)===i},q.isStrictMode=function(x){return O(x)===o},q.isSuspense=function(x){return O(x)===g},q.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===f||x===i||x===o||x===g||x===u||typeof x=="object"&&x!==null&&(x.$$typeof===m||x.$$typeof===h||x.$$typeof===a||x.$$typeof===c||x.$$typeof===p||x.$$typeof===v||x.$$typeof===E||x.$$typeof===P||x.$$typeof===d)},q.typeOf=O,q}var z={};/** @license React v16.13.1
29
+ */var fr;function Xs(){if(fr)return q;fr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function C(x){if(typeof x=="object"&&x!==null){var N=x.$$typeof;switch(N){case t:switch(x=x.type,x){case l:case f:case r:case i:case o:case g:return x;default:switch(x=x&&x.$$typeof,x){case c:case p:case m:case h:case a:return x;default:return N}}case n:return N}}}function w(x){return C(x)===f}return q.AsyncMode=l,q.ConcurrentMode=f,q.ContextConsumer=c,q.ContextProvider=a,q.Element=t,q.ForwardRef=p,q.Fragment=r,q.Lazy=m,q.Memo=h,q.Portal=n,q.Profiler=i,q.StrictMode=o,q.Suspense=g,q.isAsyncMode=function(x){return w(x)||C(x)===l},q.isConcurrentMode=w,q.isContextConsumer=function(x){return C(x)===c},q.isContextProvider=function(x){return C(x)===a},q.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},q.isForwardRef=function(x){return C(x)===p},q.isFragment=function(x){return C(x)===r},q.isLazy=function(x){return C(x)===m},q.isMemo=function(x){return C(x)===h},q.isPortal=function(x){return C(x)===n},q.isProfiler=function(x){return C(x)===i},q.isStrictMode=function(x){return C(x)===o},q.isSuspense=function(x){return C(x)===g},q.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===f||x===i||x===o||x===g||x===u||typeof x=="object"&&x!==null&&(x.$$typeof===m||x.$$typeof===h||x.$$typeof===a||x.$$typeof===c||x.$$typeof===p||x.$$typeof===v||x.$$typeof===E||x.$$typeof===P||x.$$typeof===d)},q.typeOf=C,q}var z={};/** @license React v16.13.1
30
30
  * react-is.development.js
31
31
  *
32
32
  * Copyright (c) Facebook, Inc. and its affiliates.
33
33
  *
34
34
  * This source code is licensed under the MIT license found in the
35
35
  * LICENSE file in the root directory of this source tree.
36
- */var fr;function Xs(){return fr||(fr=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function O(j){return typeof j=="string"||typeof j=="function"||j===r||j===f||j===i||j===o||j===g||j===u||typeof j=="object"&&j!==null&&(j.$$typeof===m||j.$$typeof===h||j.$$typeof===a||j.$$typeof===c||j.$$typeof===p||j.$$typeof===v||j.$$typeof===E||j.$$typeof===P||j.$$typeof===d)}function w(j){if(typeof j=="object"&&j!==null){var ce=j.$$typeof;switch(ce){case t:var ge=j.type;switch(ge){case l:case f:case r:case i:case o:case g:return ge;default:var We=ge&&ge.$$typeof;switch(We){case c:case p:case m:case h:case a:return We;default:return ce}}case n:return ce}}}var x=l,k=f,V=c,X=a,G=t,W=p,H=r,te=m,Q=h,oe=n,he=i,Y=o,ee=g,ve=!1;function le(j){return ve||(ve=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),C(j)||w(j)===l}function C(j){return w(j)===f}function S(j){return w(j)===c}function A(j){return w(j)===a}function R(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function T(j){return w(j)===p}function _(j){return w(j)===r}function N(j){return w(j)===m}function I(j){return w(j)===h}function L(j){return w(j)===n}function B(j){return w(j)===i}function $(j){return w(j)===o}function re(j){return w(j)===g}z.AsyncMode=x,z.ConcurrentMode=k,z.ContextConsumer=V,z.ContextProvider=X,z.Element=G,z.ForwardRef=W,z.Fragment=H,z.Lazy=te,z.Memo=Q,z.Portal=oe,z.Profiler=he,z.StrictMode=Y,z.Suspense=ee,z.isAsyncMode=le,z.isConcurrentMode=C,z.isContextConsumer=S,z.isContextProvider=A,z.isElement=R,z.isForwardRef=T,z.isFragment=_,z.isLazy=N,z.isMemo=I,z.isPortal=L,z.isProfiler=B,z.isStrictMode=$,z.isSuspense=re,z.isValidElementType=O,z.typeOf=w}()),z}var dr;function Eo(){return dr||(dr=1,function(e){process.env.NODE_ENV==="production"?e.exports=Ks():e.exports=Xs()}(Ys)),Nt}/*
36
+ */var dr;function Js(){return dr||(dr=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function C(j){return typeof j=="string"||typeof j=="function"||j===r||j===f||j===i||j===o||j===g||j===u||typeof j=="object"&&j!==null&&(j.$$typeof===m||j.$$typeof===h||j.$$typeof===a||j.$$typeof===c||j.$$typeof===p||j.$$typeof===v||j.$$typeof===E||j.$$typeof===P||j.$$typeof===d)}function w(j){if(typeof j=="object"&&j!==null){var ce=j.$$typeof;switch(ce){case t:var ge=j.type;switch(ge){case l:case f:case r:case i:case o:case g:return ge;default:var Ze=ge&&ge.$$typeof;switch(Ze){case c:case p:case m:case h:case a:return Ze;default:return ce}}case n:return ce}}}var x=l,N=f,V=c,X=a,G=t,W=p,H=r,te=m,Q=h,oe=n,he=i,Y=o,ee=g,ve=!1;function ue(j){return ve||(ve=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),O(j)||w(j)===l}function O(j){return w(j)===f}function S(j){return w(j)===c}function A(j){return w(j)===a}function R(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function T(j){return w(j)===p}function _(j){return w(j)===r}function k(j){return w(j)===m}function I(j){return w(j)===h}function L(j){return w(j)===n}function B(j){return w(j)===i}function $(j){return w(j)===o}function re(j){return w(j)===g}z.AsyncMode=x,z.ConcurrentMode=N,z.ContextConsumer=V,z.ContextProvider=X,z.Element=G,z.ForwardRef=W,z.Fragment=H,z.Lazy=te,z.Memo=Q,z.Portal=oe,z.Profiler=he,z.StrictMode=Y,z.Suspense=ee,z.isAsyncMode=ue,z.isConcurrentMode=O,z.isContextConsumer=S,z.isContextProvider=A,z.isElement=R,z.isForwardRef=T,z.isFragment=_,z.isLazy=k,z.isMemo=I,z.isPortal=L,z.isProfiler=B,z.isStrictMode=$,z.isSuspense=re,z.isValidElementType=C,z.typeOf=w}()),z}var pr;function jo(){return pr||(pr=1,function(e){process.env.NODE_ENV==="production"?e.exports=Xs():e.exports=Js()}(Ks)),At}/*
37
37
  object-assign
38
38
  (c) Sindre Sorhus
39
39
  @license MIT
40
- */var Yt,pr;function Js(){if(pr)return Yt;pr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var l=Object.getOwnPropertyNames(a).map(function(p){return a[p]});if(l.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(p){f[p]=p}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Yt=o()?Object.assign:function(i,a){for(var c,l=r(i),f,p=1;p<arguments.length;p++){c=Object(arguments[p]);for(var g in c)t.call(c,g)&&(l[g]=c[g]);if(e){f=e(c);for(var u=0;u<f.length;u++)n.call(c,f[u])&&(l[f[u]]=c[f[u]])}}return l},Yt}var Kt,hr;function Fn(){if(hr)return Kt;hr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Kt=e,Kt}var Xt,mr;function jo(){return mr||(mr=1,Xt=Function.call.bind(Object.prototype.hasOwnProperty)),Xt}var Jt,vr;function Qs(){if(vr)return Jt;vr=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Fn(),n={},r=jo();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,c,l,f){if(process.env.NODE_ENV!=="production"){for(var p in i)if(r(i,p)){var g;try{if(typeof i[p]!="function"){var u=Error((l||"React class")+": "+c+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}g=i[p](a,p,l,c,null,t)}catch(m){g=m}if(g&&!(g instanceof Error)&&e((l||"React class")+": type specification of "+c+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var h=f?f():"";e("Failed "+c+" type: "+g.message+(h??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Jt=o,Jt}var Qt,gr;function ea(){if(gr)return Qt;gr=1;var e=Eo(),t=Js(),n=Fn(),r=jo(),o=Qs(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(c){var l="Warning: "+c;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return Qt=function(c,l){var f=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function g(C){var S=C&&(f&&C[f]||C[p]);if(typeof S=="function")return S}var u="<<anonymous>>",h={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:P(),arrayOf:O,element:w(),elementType:x(),instanceOf:k,node:W(),objectOf:X,oneOf:V,oneOfType:G,shape:te,exact:Q};function m(C,S){return C===S?C!==0||1/C===1/S:C!==C&&S!==S}function d(C,S){this.message=C,this.data=S&&typeof S=="object"?S:{},this.stack=""}d.prototype=Error.prototype;function v(C){if(process.env.NODE_ENV!=="production")var S={},A=0;function R(_,N,I,L,B,$,re){if(L=L||u,$=$||I,re!==n){if(l){var j=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw j.name="Invariant Violation",j}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ce=L+":"+I;!S[ce]&&A<3&&(i("You are manually calling a React.PropTypes validation function for the `"+$+"` prop on `"+L+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),S[ce]=!0,A++)}}return N[I]==null?_?N[I]===null?new d("The "+B+" `"+$+"` is marked as required "+("in `"+L+"`, but its value is `null`.")):new d("The "+B+" `"+$+"` is marked as required in "+("`"+L+"`, but its value is `undefined`.")):null:C(N,I,L,B,$)}var T=R.bind(null,!1);return T.isRequired=R.bind(null,!0),T}function E(C){function S(A,R,T,_,N,I){var L=A[R],B=Y(L);if(B!==C){var $=ee(L);return new d("Invalid "+_+" `"+N+"` of type "+("`"+$+"` supplied to `"+T+"`, expected ")+("`"+C+"`."),{expectedType:C})}return null}return v(S)}function P(){return v(a)}function O(C){function S(A,R,T,_,N){if(typeof C!="function")return new d("Property `"+N+"` of component `"+T+"` has invalid PropType notation inside arrayOf.");var I=A[R];if(!Array.isArray(I)){var L=Y(I);return new d("Invalid "+_+" `"+N+"` of type "+("`"+L+"` supplied to `"+T+"`, expected an array."))}for(var B=0;B<I.length;B++){var $=C(I,B,T,_,N+"["+B+"]",n);if($ instanceof Error)return $}return null}return v(S)}function w(){function C(S,A,R,T,_){var N=S[A];if(!c(N)){var I=Y(N);return new d("Invalid "+T+" `"+_+"` of type "+("`"+I+"` supplied to `"+R+"`, expected a single ReactElement."))}return null}return v(C)}function x(){function C(S,A,R,T,_){var N=S[A];if(!e.isValidElementType(N)){var I=Y(N);return new d("Invalid "+T+" `"+_+"` of type "+("`"+I+"` supplied to `"+R+"`, expected a single ReactElement type."))}return null}return v(C)}function k(C){function S(A,R,T,_,N){if(!(A[R]instanceof C)){var I=C.name||u,L=le(A[R]);return new d("Invalid "+_+" `"+N+"` of type "+("`"+L+"` supplied to `"+T+"`, expected ")+("instance of `"+I+"`."))}return null}return v(S)}function V(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function S(A,R,T,_,N){for(var I=A[R],L=0;L<C.length;L++)if(m(I,C[L]))return null;var B=JSON.stringify(C,function(re,j){var ce=ee(j);return ce==="symbol"?String(j):j});return new d("Invalid "+_+" `"+N+"` of value `"+String(I)+"` "+("supplied to `"+T+"`, expected one of "+B+"."))}return v(S)}function X(C){function S(A,R,T,_,N){if(typeof C!="function")return new d("Property `"+N+"` of component `"+T+"` has invalid PropType notation inside objectOf.");var I=A[R],L=Y(I);if(L!=="object")return new d("Invalid "+_+" `"+N+"` of type "+("`"+L+"` supplied to `"+T+"`, expected an object."));for(var B in I)if(r(I,B)){var $=C(I,B,T,_,N+"."+B,n);if($ instanceof Error)return $}return null}return v(S)}function G(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var S=0;S<C.length;S++){var A=C[S];if(typeof A!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ve(A)+" at index "+S+"."),a}function R(T,_,N,I,L){for(var B=[],$=0;$<C.length;$++){var re=C[$],j=re(T,_,N,I,L,n);if(j==null)return null;j.data&&r(j.data,"expectedType")&&B.push(j.data.expectedType)}var ce=B.length>0?", expected one of type ["+B.join(", ")+"]":"";return new d("Invalid "+I+" `"+L+"` supplied to "+("`"+N+"`"+ce+"."))}return v(R)}function W(){function C(S,A,R,T,_){return oe(S[A])?null:new d("Invalid "+T+" `"+_+"` supplied to "+("`"+R+"`, expected a ReactNode."))}return v(C)}function H(C,S,A,R,T){return new d((C||"React class")+": "+S+" type `"+A+"."+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+T+"`.")}function te(C){function S(A,R,T,_,N){var I=A[R],L=Y(I);if(L!=="object")return new d("Invalid "+_+" `"+N+"` of type `"+L+"` "+("supplied to `"+T+"`, expected `object`."));for(var B in C){var $=C[B];if(typeof $!="function")return H(T,_,N,B,ee($));var re=$(I,B,T,_,N+"."+B,n);if(re)return re}return null}return v(S)}function Q(C){function S(A,R,T,_,N){var I=A[R],L=Y(I);if(L!=="object")return new d("Invalid "+_+" `"+N+"` of type `"+L+"` "+("supplied to `"+T+"`, expected `object`."));var B=t({},A[R],C);for(var $ in B){var re=C[$];if(r(C,$)&&typeof re!="function")return H(T,_,N,$,ee(re));if(!re)return new d("Invalid "+_+" `"+N+"` key `"+$+"` supplied to `"+T+"`.\nBad object: "+JSON.stringify(A[R],null," ")+`
41
- Valid keys: `+JSON.stringify(Object.keys(C),null," "));var j=re(I,$,T,_,N+"."+$,n);if(j)return j}return null}return v(S)}function oe(C){switch(typeof C){case"number":case"string":case"undefined":return!0;case"boolean":return!C;case"object":if(Array.isArray(C))return C.every(oe);if(C===null||c(C))return!0;var S=g(C);if(S){var A=S.call(C),R;if(S!==C.entries){for(;!(R=A.next()).done;)if(!oe(R.value))return!1}else for(;!(R=A.next()).done;){var T=R.value;if(T&&!oe(T[1]))return!1}}else return!1;return!0;default:return!1}}function he(C,S){return C==="symbol"?!0:S?S["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&S instanceof Symbol:!1}function Y(C){var S=typeof C;return Array.isArray(C)?"array":C instanceof RegExp?"object":he(S,C)?"symbol":S}function ee(C){if(typeof C>"u"||C===null)return""+C;var S=Y(C);if(S==="object"){if(C instanceof Date)return"date";if(C instanceof RegExp)return"regexp"}return S}function ve(C){var S=ee(C);switch(S){case"array":case"object":return"an "+S;case"boolean":case"date":case"regexp":return"a "+S;default:return S}}function le(C){return!C.constructor||!C.constructor.name?u:C.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},Qt}var en,yr;function ta(){if(yr)return en;yr=1;var e=Fn();function t(){}function n(){}return n.resetWarningCache=t,en=function(){function r(a,c,l,f,p,g){if(g!==e){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},en}if(process.env.NODE_ENV!=="production"){var na=Eo(),ra=!0;lr.exports=ea()(na.isElement,ra)}else lr.exports=ta()();function fn(e){return fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fn(e)}var oa;function ot(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:oa;return t?e.split(" ").map(function(n){return t[n]||n}).join(" "):e}function ia(e,t){var n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function sa(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,o,i={};r>0;)r-=1,o=n[r],i[o]=e[o];return i}var br={};function xr(e){br[e]||(typeof console<"u"&&console.error(e),br[e]=!0)}var aa=(typeof window>"u"?"undefined":fn(window))==="object"&&window.Element||function(){};function ca(e,t,n){if(!(e[t]instanceof aa))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}b.oneOfType([b.string,b.func,ca,b.shape({current:b.any})]);var xt=b.oneOfType([b.func,b.string,b.shape({$$typeof:b.symbol,render:b.func}),b.arrayOf(b.oneOfType([b.func,b.string,b.shape({$$typeof:b.symbol,render:b.func})]))]),la={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},wr=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],jt={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},ua=["className","cssModule","variant","innerRef"];function dn(){return dn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dn.apply(this,arguments)}function fa(e,t){if(e==null)return{};var n=da(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function da(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var pa={active:b.bool,"aria-label":b.string,onClick:b.func,variant:b.oneOf(["white"]),className:b.string,cssModule:b.object,innerRef:b.oneOfType([b.object,b.string,b.func])},ha={"aria-label":"close"};function $n(e){var t=e.className;e.cssModule;var n=e.variant,r=e.innerRef,o=fa(e,ua),i=ot(J(t,"btn-close",n&&"btn-close-".concat(n)));return y.createElement("button",dn({ref:r,type:"button",className:i},o))}$n.propTypes=pa;$n.defaultProps=ha;var ma=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function pn(){return pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pn.apply(this,arguments)}function va(e,t){if(e==null)return{};var n=ga(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ga(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var ya={active:b.bool,"aria-label":b.string,block:b.bool,children:b.node,className:b.string,cssModule:b.object,close:b.bool,color:b.string,disabled:b.bool,innerRef:b.oneOfType([b.object,b.func,b.string]),onClick:b.func,outline:b.bool,size:b.string,tag:xt},ba={color:"secondary",tag:"button"};function wt(e){var t=y.useCallback(function(v){if(e.disabled){v.preventDefault();return}if(e.onClick)return e.onClick(v)},[e.onClick,e.disabled]),n=e.active,r=e["aria-label"],o=e.block,i=e.className,a=e.close,c=e.cssModule,l=e.color,f=e.outline,p=e.size,g=e.tag,u=e.innerRef,h=va(e,ma);if(a)return y.createElement($n,h);var m="btn".concat(f?"-outline":"","-").concat(l),d=ot(J(i,"btn",m,p?"btn-".concat(p):!1,o?"d-block w-100":!1,{active:n,disabled:e.disabled}),c);return h.href&&g==="button"&&(g="a"),y.createElement(g,pn({type:g==="button"&&h.onClick?"button":void 0},h,{className:d,ref:u,onClick:t,"aria-label":r}))}wt.propTypes=ya;wt.defaultProps=ba;function xa(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function hn(e,t){return hn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},hn(e,t)}function wa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hn(e,t)}const Cr={disabled:!1};var Ca=process.env.NODE_ENV!=="production"?b.oneOfType([b.number,b.shape({enter:b.number,exit:b.number,appear:b.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&b.oneOfType([b.string,b.shape({enter:b.string,exit:b.string,active:b.string}),b.shape({enter:b.string,enterDone:b.string,enterActive:b.string,exit:b.string,exitDone:b.string,exitActive:b.string})]);const So=y.createContext(null);var Oa=function(t){return t.scrollTop},ft="unmounted",$e="exited",Be="entering",Ge="entered",mn="exiting",Ne=function(e){wa(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,c=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?c?(l=$e,i.appearStatus=Be):l=Ge:r.unmountOnExit||r.mountOnEnter?l=ft:l=$e,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===ft?{status:$e}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Be&&a!==Ge&&(i=Be):(a===Be||a===Ge)&&(i=mn)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,c;return i=a=c=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,c=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:c}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Be){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:lt.findDOMNode(this);a&&Oa(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===$e&&this.setState({status:ft})},n.performEnter=function(o){var i=this,a=this.props.enter,c=this.context?this.context.isMounting:o,l=this.props.nodeRef?[c]:[lt.findDOMNode(this),c],f=l[0],p=l[1],g=this.getTimeouts(),u=c?g.appear:g.enter;if(!o&&!a||Cr.disabled){this.safeSetState({status:Ge},function(){i.props.onEntered(f)});return}this.props.onEnter(f,p),this.safeSetState({status:Be},function(){i.props.onEntering(f,p),i.onTransitionEnd(u,function(){i.safeSetState({status:Ge},function(){i.props.onEntered(f,p)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),c=this.props.nodeRef?void 0:lt.findDOMNode(this);if(!i||Cr.disabled){this.safeSetState({status:$e},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:mn},function(){o.props.onExiting(c),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:$e},function(){o.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(c){a&&(a=!1,i.nextCallback=null,o(c))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:lt.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!a||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],f=l[0],p=l[1];this.props.addEndListener(f,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===ft)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var c=xa(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return y.createElement(So.Provider,{value:null},typeof a=="function"?a(o,c):y.cloneElement(y.Children.only(a),c))},t}(y.Component);Ne.contextType=So;Ne.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:b.shape({current:typeof Element>"u"?b.any:function(e,t,n,r,o,i){var a=e[t];return b.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:b.oneOfType([b.func.isRequired,b.element.isRequired]).isRequired,in:b.bool,mountOnEnter:b.bool,unmountOnExit:b.bool,appear:b.bool,enter:b.bool,exit:b.bool,timeout:function(t){var n=Ca;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.apply(void 0,[t].concat(o))},addEndListener:b.func,onEnter:b.func,onEntering:b.func,onEntered:b.func,onExit:b.func,onExiting:b.func,onExited:b.func}:{};function qe(){}Ne.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qe,onEntering:qe,onEntered:qe,onExit:qe,onExiting:qe,onExited:qe};Ne.UNMOUNTED=ft;Ne.EXITED=$e;Ne.ENTERING=Be;Ne.ENTERED=Ge;Ne.EXITING=mn;const Bn=Ne;function vn(e){return vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vn(e)}var Ea=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],ze;function At(){return At=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},At.apply(this,arguments)}function ja(e,t){if(e==null)return{};var n=Sa(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Sa(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Pa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Or(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ka(e,t,n){return t&&Or(e.prototype,t),n&&Or(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ta(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gn(e,t)}function gn(e,t){return gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},gn(e,t)}function Na(e){var t=_a();return function(){var r=_t(e),o;if(t){var i=_t(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Aa(this,o)}}function Aa(e,t){if(t&&(vn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Po(e)}function Po(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _a(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _t(e){return _t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_t(e)}function Er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function nt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Er(Object(n),!0).forEach(function(r){Ke(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Er(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ra=nt(nt({},Bn.propTypes),{},{horizontal:b.bool,isOpen:b.bool,children:b.oneOfType([b.arrayOf(b.node),b.node]),tag:xt,className:b.node,navbar:b.bool,cssModule:b.object,innerRef:b.shape({current:b.object})}),Ia=nt(nt({},Bn.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:la.Collapse}),Ma=(ze={},Ke(ze,jt.ENTERING,"collapsing"),Ke(ze,jt.ENTERED,"collapse show"),Ke(ze,jt.EXITING,"collapsing"),Ke(ze,jt.EXITED,"collapse"),ze);function Da(e){return Ma[e]||"collapse"}var Hn=function(e){Ta(n,e);var t=Na(n);function n(r){var o;return Pa(this,n),o=t.call(this,r),o.state={dimension:null},o.nodeRef=r.innerRef||y.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(i){o[i]=o[i].bind(Po(o))}),o}return ka(n,[{key:"onEntering",value:function(o,i){var a=this.getNode();this.setState({dimension:this.getDimension(a)}),this.props.onEntering(a,i)}},{key:"onEntered",value:function(o,i){var a=this.getNode();this.setState({dimension:null}),this.props.onEntered(a,i)}},{key:"onExit",value:function(){var o=this.getNode();this.setState({dimension:this.getDimension(o)}),this.props.onExit(o)}},{key:"onExiting",value:function(){var o=this.getNode();this.getDimension(o),this.setState({dimension:0}),this.props.onExiting(o)}},{key:"onExited",value:function(){var o=this.getNode();this.setState({dimension:null}),this.props.onExited(o)}},{key:"getNode",value:function(){return this.nodeRef.current}},{key:"getDimension",value:function(o){return this.props.horizontal?o.scrollWidth:o.scrollHeight}},{key:"render",value:function(){var o=this,i=this.props,a=i.tag,c=i.horizontal,l=i.isOpen,f=i.className,p=i.navbar,g=i.cssModule,u=i.children;i.innerRef;var h=ja(i,Ea),m=this.state.dimension,d=sa(h,wr),v=ia(h,wr);return y.createElement(Bn,At({},d,{in:l,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(E){var P=Da(E),O=ot(J(f,c&&"collapse-horizontal",P,p&&"navbar-collapse"),g),w=m===null?null:Ke({},c?"width":"height",m);return y.createElement(a,At({},v,{style:nt(nt({},v.style),w),className:O,ref:o.nodeRef}),u)})}}]),n}(y.Component);Hn.propTypes=Ra;Hn.defaultProps=Ia;const La=Hn;function yn(e){return yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yn(e)}var Fa=["className","cssModule","tag","innerRef"];function bn(){return bn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bn.apply(this,arguments)}function $a(e,t){if(e==null)return{};var n=Ba(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ba(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Ha(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Va(e,t,n){return t&&jr(e.prototype,t),n&&jr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ua(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xn(e,t)}function xn(e,t){return xn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},xn(e,t)}function Wa(e){var t=qa();return function(){var r=Rt(e),o;if(t){var i=Rt(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Za(this,o)}}function Za(e,t){if(t&&(yn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wn(e)}function wn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qa(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rt(e){return Rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rt(e)}var za={children:b.node,tag:xt,innerRef:b.oneOfType([b.object,b.func,b.string]),className:b.string,cssModule:b.object},Ga={tag:"form"},Vn=function(e){Ua(n,e);var t=Wa(n);function n(r){var o;return Ha(this,n),o=t.call(this,r),o.getRef=o.getRef.bind(wn(o)),o.submit=o.submit.bind(wn(o)),o}return Va(n,[{key:"getRef",value:function(o){this.props.innerRef&&this.props.innerRef(o),this.ref=o}},{key:"submit",value:function(){this.ref&&this.ref.submit()}},{key:"render",value:function(){var o=this.props,i=o.className,a=o.cssModule,c=o.tag,l=o.innerRef,f=$a(o,Fa),p=ot(i,a);return y.createElement(c,bn({},f,{ref:l,className:p}))}}]),n}(y.Component);Vn.propTypes=za;Vn.defaultProps=Ga;const ko=Vn;var Ya=["className","cssModule","row","disabled","check","inline","floating","tag","switch"];function Cn(){return Cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cn.apply(this,arguments)}function Ka(e,t){if(e==null)return{};var n=Xa(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xa(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Ja={children:b.node,row:b.bool,check:b.bool,switch:b.bool,inline:b.bool,floating:b.bool,disabled:b.bool,tag:xt,className:b.string,cssModule:b.object},Qa={tag:"div"};function It(e){var t=e.className,n=e.cssModule,r=e.row,o=e.disabled,i=e.check,a=e.inline,c=e.floating,l=e.tag,f=e.switch,p=Ka(e,Ya),g=i||f,u=ot(J(t,r?"row":!1,g?"form-check":"mb-3",f?"form-switch":!1,g&&a?"form-check-inline":!1,g&&o?"disabled":!1,c&&"form-floating"),n);return l==="fieldset"&&(p.disabled=o),y.createElement(l,Cn({},p,{className:u}))}It.propTypes=Ja;It.defaultProps=Qa;function On(e){return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},On(e)}var ec=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"];function En(){return En=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},En.apply(this,arguments)}function tc(e,t){if(e==null)return{};var n=nc(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nc(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function rc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oc(e,t,n){return t&&Sr(e.prototype,t),n&&Sr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ic(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jn(e,t)}function jn(e,t){return jn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},jn(e,t)}function sc(e){var t=cc();return function(){var r=Mt(e),o;if(t){var i=Mt(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return ac(this,o)}}function ac(e,t){if(t&&(On(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sn(e)}function Sn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cc(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Mt(e){return Mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mt(e)}var lc={children:b.node,type:b.string,size:b.oneOfType([b.number,b.string]),bsSize:b.string,valid:b.bool,invalid:b.bool,tag:xt,innerRef:b.oneOfType([b.object,b.func,b.string]),plaintext:b.bool,addon:b.bool,className:b.string,cssModule:b.object},uc={type:"text"},Un=function(e){ic(n,e);var t=sc(n);function n(r){var o;return rc(this,n),o=t.call(this,r),o.getRef=o.getRef.bind(Sn(o)),o.focus=o.focus.bind(Sn(o)),o}return oc(n,[{key:"getRef",value:function(o){this.props.innerRef&&this.props.innerRef(o),this.ref=o}},{key:"focus",value:function(){this.ref&&this.ref.focus()}},{key:"render",value:function(){var o=this.props,i=o.className,a=o.cssModule,c=o.type,l=o.bsSize,f=o.valid,p=o.invalid,g=o.tag,u=o.addon,h=o.plaintext,m=o.innerRef,d=tc(o,ec),v=["switch","radio","checkbox"].indexOf(c)>-1,E=/\D/g,P=c==="textarea",O=c==="select",w=c==="range",x=g||(O||P?c:"input"),k="form-control";h?(k="".concat(k,"-plaintext"),x=g||"input"):w?k="form-range":O?k="form-select":v&&(u?k=null:k="form-check-input"),d.size&&E.test(d.size)&&(xr(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),l=d.size,delete d.size);var V=ot(J(i,p&&"is-invalid",f&&"is-valid",l?O?"form-select-".concat(l):"form-control-".concat(l):!1,k),a);return(x==="input"||g&&typeof g=="function")&&(d.type=c==="switch"?"checkbox":c),d.children&&!(h||c==="select"||typeof x!="string"||x==="select")&&(xr('Input with a type of "'.concat(c,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete d.children),y.createElement(x,En({},d,{ref:m,className:V,"aria-invalid":p}))}}]),n}(y.Component);Un.propTypes=lc;Un.defaultProps=uc;const Pr=Un,fc={success:"check"},kr={SET_AS_DEFAULT:"setAsDefault",DELETE:"delete"},dc=e=>[{name:kr.SET_AS_DEFAULT,displayName:"Set as Default",disabled:e.isDefault},{name:kr.DELETE,displayName:"Delete",disabled:e.name===co||e.isDefault}],Tr=e=>async t=>{t.stopPropagation();try{await e()}catch(n){console.error("Failed to handle layout action: ",n)}},pc=e=>{const{layouts:t}=e,{setSelectedLayout:n,setDefaultLayout:r}=rt(),o=Ds(),i=Ln();return s.jsxs(s.Fragment,{children:[s.jsx("h6",{children:"Available Layouts"}),t.map(a=>s.jsxs("div",{className:J("layouts-item flex ai-center",a.isSelected&&"active"),children:[s.jsx("div",{className:"loaded me-8",children:a.isSelected&&s.jsx(ue,{size:12,name:"check"})}),s.jsx("div",{className:J("name",{bold:a.isSelected}),onClick:()=>{i(a.name,n)},children:a.name}),s.jsxs("div",{className:"type",children:[a.type,a.isDefault?"/Default":""]}),s.jsx(Rn,{iconSize:16,iconName:"ellipsis",actions:dc(a),onActionItemClick:(c,l)=>o(a,l.name,r)})]},a.name))]})},Nr=e=>{const{inputValue:t,setNotification:n,className:r=""}=e,{selectedLayout:o,setSelectedLayout:i}=rt(),a=Ln(),c=y.useContext(ne.IOConnectContext),l=[{label:"Save",type:"save",onClick:Tr(async()=>{await c.layouts.save({name:t,type:"Global"}),i({name:t}),n({message:"Saved",type:"success"})})},{label:"Restore",type:"restore",onClick:Tr(()=>{o&&a(o.name)})}];return s.jsx("div",{className:J("layout-actions",r),children:l.map(({label:f,type:p,disabled:g,onClick:u})=>s.jsx("button",{onClick:u,disabled:g,className:"g42-btn",children:f},p))})},hc=({className:e,message:t,type:n})=>s.jsxs("div",{className:J("layout-notification",`layout-notification-${n}`,e),children:[s.jsx(ue,{size:12,name:fc[n]}),s.jsx("span",{children:t})]}),To=()=>{const e=y.useRef(null),[t,n]=y.useState(!1),[r,o]=y.useState(null),i=ys(),{defaultLayout:a,selectedLayout:c}=rt(),[l,f]=y.useState("");y.useEffect(()=>{if(!t)return;const g=h=>{e.current?.contains(h.target)||n(!1)},u=()=>{document.activeElement?.nodeName==="IFRAME"&&n(!1)};return document.addEventListener("click",g,!0),window.addEventListener("blur",u,!0),()=>{document.removeEventListener("click",g,!0),window.removeEventListener("blur",u,!0)}},[t]),y.useEffect(()=>{if(!r)return;const g=setTimeout(()=>o(null),3e3);return()=>clearTimeout(g)},[r]),y.useEffect(()=>{c&&f(c.name)},[c]);const p=()=>{n(g=>!g),c&&f(c.name)};return s.jsxs("footer",{className:"footer",ref:e,children:[s.jsxs("div",{"aria-label":"Layouts panel","aria-expanded":t,role:"button",...tt(p),className:"selected-layout flex ai-center",children:[s.jsx("span",{className:J("name",{hidden:t}),children:c?.name||"No selected layout"}),s.jsxs("div",{className:"flex ai-center",children:[!t&&s.jsx(Nr,{inputValue:l,setNotification:o}),s.jsx(ue,{className:J("ms-8","layouts-panel-toggle-button",{"layouts-panel-toggle-button-rotated":t}),name:"chevron-up"})]})]}),s.jsx(La,{isOpen:t,children:s.jsxs("div",{className:"layouts-container",children:[s.jsxs("div",{className:"layouts-settings",children:[s.jsx("input",{className:"g42-input",onChange:g=>f(g.target.value),value:l}),s.jsx(Nr,{className:"group",inputValue:l,setNotification:o})]}),s.jsx("div",{children:s.jsx(pc,{layouts:i.map(g=>({...g,isSelected:g.name===c?.name,isDefault:g.name===a?.name}))})})]})}),r?s.jsx(hc,{className:J({"ms-8 me-8":t}),message:r.message,type:r.type}):s.jsx("div",{className:"powered-by",children:"Powered by io.Connect Browser"})]})},mc=e=>{const t=new Date(e),n=t.getHours(),r=t.getMinutes().toString().padStart(2,"0"),o=t.getSeconds().toString().padStart(2,"0"),i=n>=12?"PM":"AM",a=t.getMonth()+1,c=t.getDate(),l=t.getFullYear();return`${n%12}:${r}:${o} ${i} ${a}/${c}/${l}`},No=e=>{const{severity:t="None",id:n,timestamp:r,title:o,body:i,actions:a}=e.notificationData,c=y.useContext(ne.IOConnectContext),l=()=>{c&&c.notifications.clear(n).catch(console.error)},f=async g=>{g.stopPropagation();try{await c.notifications.click(n),l()}catch(u){console.error(u)}},p=a?.map(({action:g,title:u})=>({children:u,onClick:async h=>{h.stopPropagation();try{await c.notifications.click(n,g),l()}catch(m){console.error(m)}}}));return s.jsxs("div",{className:"notifications-list-item",style:{borderLeftColor:bs[t]},onClick:f,"data-testid":"notification-container",children:[s.jsxs("div",{className:"notification-header","data-testid":"notification-header",children:[s.jsx("h4",{children:o}),s.jsx(ue,{onClick:g=>{g.stopPropagation(),l()},className:"g42-btn close-btn",size:16,name:"close","data-testid":"close-icon"})]}),i&&s.jsx("p",{"data-testid":"notification-body",children:i}),r&&s.jsx("p",{"data-testid":"notification-timestamp",children:mc(r)}),p&&s.jsx(Ut,{className:"notification-actions","data-testid":"notification-actions",items:p})]})},Wn=e=>{const{className:t}=e,n=Qr().length;return n>0?s.jsx("span",{className:J("notifications-badge",t),"data-testid":"notifications-badge",children:n<10?n:"9+"}):null},Ao=e=>{const{className:t,iconSize:n=24,...r}=e;return s.jsxs("div",{className:J(t,"notifications-icon"),"data-testid":"notifications-icon",...r,children:[s.jsx(ue,{size:n,name:"bell"}),s.jsx(Wn,{})]})},_o=()=>{const{onNotificationsSort:e,sortedNotifications:t}=Os(),n=y.useContext(ne.IOConnectContext),r=y.useCallback(()=>{n&&n.notifications.clearAll().catch(console.error)},[n]);return s.jsxs("div",{className:"notifications-panel","data-testid":"notifications-panel",children:[s.jsxs("div",{className:"header","data-testid":"notifications-panel-header",children:[s.jsx("div",{className:"header-caption",children:s.jsxs("div",{children:["Notifications (",t.length,")"]})}),s.jsx(Ut,{items:[{children:"Latest",onClick:()=>e("timestamp")},{children:"By Priority",onClick:()=>e("severity")}]})]}),t.length?s.jsx("div",{className:"notifications-list","data-testid":"notifications-list",children:t.map(o=>s.jsx(No,{notificationData:o},o.id))}):s.jsx("div",{className:"no-notifications",children:"No notifications"}),s.jsx("div",{className:"footer","data-testid":"notifications-panel-footer",children:s.jsx(bt,{children:"Clear All",onClick:r})})]})},Ar=({children:e,closeFn:t,open:n=!1,showCloseButton:r=!0})=>{const o=y.useRef(null);return y.useEffect(()=>{n?o.current?.showModal():o.current?.close()},[n]),s.jsx("dialog",{ref:o,onClose:()=>{n&&t()},onClick:i=>{i.target.nodeName==="DIALOG"&&t()},children:s.jsxs("div",{className:"dialog-backer",children:[r&&s.jsx(ue,{onClick:t,className:"btn-close g42-btn g42-btn-icon",size:16,name:"close"}),e]})})};function Ro(e){const{open:t,setOpen:n,onLogout:r,className:o,components:i,user:a,...c}=e,[l,f]=y.useState(""),[p,g]=y.useState(!1),[u,h]=y.useState(!1),m=y.useRef(null);y.useEffect(()=>{if(t){m.current?.focus();return}f("")},[t]);const d=P=>{f(P.target.value)},v=()=>{f("")},E=s.jsx(Ws,{children:s.jsx("ul",{children:i?.sections||s.jsxs(s.Fragment,{children:[s.jsx(mo,{}),s.jsx(Oo,{}),s.jsx(ho,{})]})})});return s.jsxs(Hs,{setOpen:n,isOpen:t,children:[s.jsxs("div",{className:J(o),...c,children:[s.jsxs("header",{children:[s.jsx(wo,{ref:m,searchTerm:l,onSearch:d,onClear:v}),s.jsxs("div",{className:"action-area",children:[s.jsx(Ao,{"aria-label":"Notifications",role:"button",...tt(()=>g(!0))}),a&&s.jsx(vo,{initials:bo(a.name||"N A"),"aria-label":"Profile and Settings",role:"button",...tt(()=>h(!0))})]}),s.jsx(ue,{className:"btn-close g42-btn g42-btn-icon",size:16,name:"close",handleClick:()=>n(!1)})]}),s.jsx("main",{children:l.trim().length<3?E:s.jsx(Co,{searchTerm:l})}),s.jsx(To,{})]}),s.jsx(Ar,{open:p,closeFn:()=>g(!1),children:s.jsx(_o,{})}),s.jsx(Ar,{open:u,closeFn:()=>h(!1),children:s.jsx(xo,{onLogout:r,user:a})})]})}const vc=({email:e,password:t,canSubmit:n,errorMessage:r,onSubmit:o,onChange:i})=>{const a=c=>{c.key==="Enter"&&(c.preventDefault(),o())};return s.jsxs(ko,{onKeyUp:a,onSubmit:o,children:[s.jsx(It,{children:s.jsx(Pr,{autoFocus:!0,autoComplete:"off",type:"text",placeholder:"Email",value:e,onChange:i,className:"g42-input"})}),s.jsx(It,{children:s.jsx(Pr,{autoComplete:"off",type:"password",placeholder:"Password",value:t,onChange:i})}),s.jsx("div",{className:"pb-2 login-error-feedback",children:r??""}),s.jsx(wt,{disabled:!n,onClick:o,children:"SIGN IN"})]})},Zn=({className:e="welcome-text text-center mb-3",text:t="Making Your Work Flow"})=>s.jsxs(s.Fragment,{children:[s.jsx("h1",{className:e,children:t}),s.jsx("p",{children:"Integrate apps, simplify user experiences and accelerate digital transformation."})]}),gc={value:"data:image/svg+xml,%3Csvg width='5041' height='1232' viewBox='0 0 5041 1232' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_879_362)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M548.6 178H439.6C368.7 178 310 199.5 269.3 244.5C228.6 289.3 206.7 356 206.7 444.3C206.7 532.6 228.6 599.5 269.3 644.2C310.2 689.2 368.7 710.7 439.6 710.7H548.6C619 710.7 677.6 689.2 718.6 644.2C759.5 599.4 781.6 532.6 781.6 444.2C781.6 355.8 759.5 289 718.6 244.2C677.7 199.3 619 177.7 548.6 177.7V178ZM449.5 293.8H538.9C582.2 293.8 611.9 305.2 631.1 328.3C650.5 351.8 660.5 389.2 660.5 444.4C660.5 499.6 650.5 536.7 631.1 560C612 583 582.2 594.1 538.9 594.1H449.5C405.6 594.1 375.9 583 356.9 560C337.6 536.8 327.7 499.7 327.7 444.5C327.7 389.3 337.4 351.9 356.8 328.4C375.9 305.2 405.6 293.8 449.5 293.8Z' fill='white'/%3E%3Cpath d='M0.700195 189.8C0.700195 183.1 6.10017 177.7 12.8002 177.7H108.6C115.3 177.7 120.7 183.1 120.7 189.8V698.6C120.7 705.3 115.3 710.7 108.6 710.7H12.8002C6.10017 710.7 0.700195 705.3 0.700195 698.6V189.8Z' fill='white'/%3E%3Cpath d='M0.700195 11.9002C0.700195 5.7002 5.70018 0.700195 11.9002 0.700195H109.6C115.7 0.700195 120.7 5.7002 120.7 11.9002V109.5C120.7 115.7 115.7 120.7 109.5 120.7H11.9002C5.70018 120.7 0.700195 115.7 0.700195 109.5V11.9002Z' fill='%23007BE5'/%3E%3Cpath d='M827.7 601.9C827.7 595.7 832.7 590.7 838.9 590.7H936.6C942.8 590.7 947.8 595.7 947.8 601.9V699.5C947.8 705.7 942.8 710.7 936.6 710.7H838.9C832.7 710.7 827.7 705.7 827.7 699.5V601.9Z' fill='%23007BE5'/%3E%3Cpath d='M4363.9 293.2C4320.2 293.2 4290.6 304.6 4271.6 327.8C4252.3 351.4 4242.5 388.8 4242.5 444C4242.5 499.2 4252.3 536.4 4271.5 559.7C4290.5 582.6 4320 593.8 4363.8 593.8H4614.7C4622.4 593.8 4628.7 600.1 4628.7 607.8V696.7C4628.7 704.4 4622.4 710.7 4614.7 710.7H4354.1C4283.3 710.7 4224.9 689.1 4184.1 644.1C4143.5 599.3 4121.6 532.4 4121.6 444C4121.6 355.6 4143.5 288.7 4184.1 243.9C4224.8 199 4283.3 177.3 4354.1 177.3H4614.7C4622.4 177.3 4628.7 183.6 4628.7 191.3V279.3C4628.7 287 4622.4 293.3 4614.7 293.3H4363.9V293.2Z' fill='white'/%3E%3Cpath d='M1302.6 165.3C1240.1 165.3 1197 180.9 1169.3 213.3C1141.3 246 1127.4 297.6 1127.4 372.9C1127.4 447.7 1141.1 499 1169 531.6C1196.6 563.9 1239.7 579.5 1302.7 579.5H1552.5C1560.2 579.5 1566.5 585.8 1566.5 593.5V697.1C1566.5 704.8 1560.2 711.1 1552.5 711.1H1302.7C1204.7 711.1 1127.5 683.4 1075 626.4C1022.4 569.7 995.7 484.8 995.7 372.9C995.7 260.5 1022.7 175.4 1075.2 118.4C1127.9 61.3001 1205 33.6001 1302.6 33.6001H1552.4C1560.1 33.6001 1566.4 39.9001 1566.4 47.6001V151.2C1566.4 158.9 1560.1 165.2 1552.4 165.2H1302.6V165.3Z' fill='white'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1953.6 177.7H1844.8C1774 177.7 1715.6 199.3 1674.8 244.3C1634.2 289.1 1612.3 356 1612.3 444.4C1612.3 532.8 1634.2 599.7 1674.8 644.5C1715.5 689.4 1774 711.1 1844.8 711.1H1953.6C2023.9 711.1 2082.4 689.5 2123.2 644.5C2163.9 599.7 2186 532.8 2186 444.3C2186 355.8 2163.9 289 2123.2 244.1C2082.3 199.3 2023.9 177.7 1953.6 177.7ZM1854.6 293.7H1943.8C1987 293.7 2016.6 305.1 2035.8 328.3C2055.2 351.9 2065.2 389.3 2065.2 444.5C2065.2 499.7 2055.2 536.8 2035.8 560.2C2016.7 583.2 1987.1 594.3 1943.8 594.3H1854.6C1810.8 594.3 1781.3 583.1 1762.3 560.2C1743 536.9 1733.3 499.8 1733.3 444.5C1733.3 389.3 1743.1 351.9 1762.4 328.3C1781.3 305 1810.9 293.7 1854.6 293.7Z' fill='white'/%3E%3Cpath d='M2679.7 411.6C2679.7 372.5 2668.5 343.5 2645.4 324C2622.1 304.3 2585.3 293.2 2531.9 293.2H2378.4C2375.5 293.2 2374.9 293.9 2374.8 294C2374.5 294.4 2373.6 295.8 2373.6 299.8V696.7C2373.6 704.4 2367.3 710.7 2359.6 710.7H2267.7C2260 710.7 2253.7 704.4 2253.7 696.7V265.6C2253.7 234.7 2258.8 212 2272.6 197.2C2286.5 182.2 2307.5 177.3 2334.2 177.3H2531.8C2620.7 177.3 2688 198.4 2733.3 238.9C2778.7 279.5 2800.5 338.6 2800.5 411.7V696.7C2800.5 704.4 2794.2 710.7 2786.5 710.7H2693.7C2686 710.7 2679.7 704.4 2679.7 696.7V411.6Z' fill='white'/%3E%3Cpath d='M3304.7 411.6C3304.7 372.5 3293.5 343.5 3270.4 324C3247.1 304.3 3210.3 293.2 3156.9 293.2H3003.4C3000.5 293.2 2999.9 293.9 2999.8 294C2999.5 294.4 2998.6 295.8 2998.6 299.8V696.7C2998.6 704.4 2992.3 710.7 2984.6 710.7H2892.7C2885 710.7 2878.7 704.4 2878.7 696.7V265.6C2878.7 234.7 2883.8 212 2897.6 197.2C2911.5 182.2 2932.5 177.3 2959.2 177.3H3156.8C3245.7 177.3 3313 198.4 3358.3 238.9C3403.7 279.5 3425.5 338.6 3425.5 411.7V696.7C3425.5 704.4 3419.2 710.7 3411.5 710.7H3318.7C3311 710.7 3304.7 704.4 3304.7 696.7V411.6Z' fill='white'/%3E%3Cpath d='M4906.1 292.2C4898.4 292.2 4892.1 298.5 4892.1 306.2V529.2C4892.1 557.5 4897.2 574.3 4906.4 584.1C4915.4 593.8 4930 598.6 4953.7 598.6H5019.2C5026.9 598.6 5033.2 604.9 5033.2 612.6V695.7C5033.2 703.4 5026.9 709.7 5019.2 709.7H4932.1C4877.9 709.7 4836.8 698.8 4809.7 668.6C4782.8 638.6 4771.3 591.5 4771.3 523.4V306.2C4771.3 298.5 4765 292.2 4757.3 292.2H4714.7C4707 292.2 4700.7 285.9 4700.7 278.2V190.2C4700.7 182.5 4707 176.2 4714.7 176.2H4757.3C4765 176.2 4771.3 169.9 4771.3 162.2V67.7002C4771.3 60.0002 4777.6 53.7002 4785.3 53.7002H4878.2C4885.9 53.7002 4892.2 60.0002 4892.2 67.7002V162.2C4892.2 169.9 4898.5 176.2 4906.2 176.2H5021.3C5029 176.2 5035.3 182.5 5035.3 190.2V278.2C5035.3 285.9 5029 292.2 5021.3 292.2H4906.1Z' fill='white'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4024.4 607.2C4024.4 599.5 4018.1 593.2 4010.4 593.2H3699.9C3672.9 593.2 3655.3 586 3644.6 575.2C3633.8 564.4 3628.6 548.8 3628.6 529.7V514.5C3628.6 506.8 3634.9 500.5 3642.6 500.5H3866.6C3931.2 500.5 3977.4 486.9 4007.5 459.6C4037.7 432.2 4050.1 392.3 4050.1 343.5C4050.1 292.2 4036.8 250.1 4006.4 220.9C3976.1 191.7 3930.1 176.8 3867.7 176.8H3700.1C3633.9 176.8 3586.5 195.4 3555.6 227.8C3524.8 260.1 3511.8 305 3511.8 355.3V531.7C3511.8 582 3524.9 626.9 3555.6 659.2C3586.5 691.6 3633.9 710.2 3700.1 710.2H4010.6C4018.3 710.2 4024.6 703.9 4024.6 696.2V607.2H4024.4ZM3863.5 403.1H3642.5C3634.8 403.1 3628.5 396.8 3628.5 389.1V356.2C3628.5 337.6 3633.7 321.9 3644.6 311C3655.4 300.1 3672.9 292.7 3699.9 292.7H3866.5C3890.7 292.7 3906.9 298.8 3916.9 308.2C3926.9 317.5 3932 331.3 3932 349.4C3932 367.1 3927.3 380 3917.4 388.6C3907.4 397.4 3890.5 403.1 3863.5 403.1Z' fill='white'/%3E%3Cpath d='M2918.9 872.3C3001.9 872.3 3036.9 909.9 3036.9 966.3C3036.9 1012.2 3013.9 1036.8 2973.2 1047.2C3014.4 1058.2 3037.9 1083.7 3037.9 1129.7C3037.9 1186.1 3003.5 1224.7 2920.5 1224.7H2755.6C2741.5 1224.7 2734.2 1217.9 2734.2 1203.8V893.2C2734.2 879.1 2741.5 872.3 2755.6 872.3H2918.9ZM2765.4 1033.1H2918.9C2976.8 1033.1 3005 1014.8 3005 970.5C3005 929.8 2979.4 903.7 2919.4 903.7H2771.2C2767.5 903.7 2765.5 905.3 2765.5 909.4V1033.1H2765.4ZM2765.4 1187.6C2765.4 1191.8 2767.5 1193.3 2771.1 1193.3H2921C2979.5 1193.3 3006.1 1168.2 3006.1 1125.4C3006.1 1081 2976.9 1060.2 2921 1060.2H2765.5V1187.6H2765.4Z' fill='white'/%3E%3Cpath d='M3294 956.9V985.6H3182.8C3148.9 985.6 3135.3 1000.7 3135.3 1033.6V1224.6H3106.1V1029.9C3106.1 979.8 3125.4 956.8 3176.6 956.8H3294V956.9Z' fill='white'/%3E%3Cpath d='M3489.1 956.9C3562.2 956.9 3608.6 1001.3 3608.6 1091C3608.6 1181.3 3562.1 1224.6 3489.1 1224.6H3431.2C3357.6 1224.6 3311.7 1181.3 3311.7 1091C3311.7 1001.2 3357.6 956.9 3431.2 956.9H3489.1ZM3433.3 985.6C3374.3 985.6 3340.9 1019 3340.9 1091C3340.9 1163.5 3374.3 1196.4 3433.3 1196.4H3487.1C3546.1 1196.4 3579.5 1163.5 3579.5 1091C3579.5 1019 3546.1 985.6 3487.1 985.6H3433.3Z' fill='white'/%3E%3Cpath d='M3674.4 956.9L3706.8 1176.6C3709.4 1195.4 3716.2 1204.3 3737.1 1204.3C3758.5 1204.3 3767.4 1195.4 3771.5 1180.3L3821.6 995.5C3829.4 966.8 3849.3 951.7 3884.2 951.7C3919.1 951.7 3937.4 966.8 3945.3 995.5L3994.9 1180.3C3999.1 1195.4 4007.9 1204.3 4029.3 1204.3C4050.2 1204.3 4056.4 1195.4 4059.6 1176.6L4093.5 956.9H4125.3L4089.3 1179.8C4084.6 1210.6 4069.5 1231 4028.2 1231C3992.7 1231 3975 1216.4 3966.6 1185.1L3917 1000.9C3912.8 985.2 3900.8 978.5 3883.6 978.5C3865.9 978.5 3854.9 985.3 3850.7 1000.9L3799.6 1185.1C3790.7 1216.4 3773.5 1231 3737.5 1231C3695.2 1231 3682.2 1210.1 3677.5 1179.8L3643.1 956.9H3674.4Z' fill='white'/%3E%3Cpath d='M4417.6 956.9V985.6H4260C4219.8 985.6 4203.6 1003.3 4203.6 1032.1C4203.6 1057.2 4216.1 1077.5 4263.6 1077.5H4338.8C4410.8 1077.5 4428.6 1110.9 4428.6 1149.5C4428.6 1194.9 4404.6 1224.7 4344 1224.7H4178V1196.5H4344C4384.2 1196.5 4399.8 1178.2 4399.8 1149.5C4399.8 1124.4 4387.8 1103.6 4339.8 1103.6H4264.6C4193.1 1103.6 4174.8 1069.2 4174.8 1030C4174.8 985.1 4198.8 956.9 4259.4 956.9H4417.6Z' fill='white'/%3E%3Cpath d='M4685.4 956.9C4749.1 956.9 4775.7 986.6 4775.7 1036.8C4775.7 1084.8 4751.2 1111.4 4684.9 1111.4H4526.2V1135.9C4526.2 1170.3 4545 1196.4 4593.5 1196.4H4762.1V1224.6H4593.5C4524.6 1224.6 4497.5 1187.5 4497.5 1136.4V1045.1C4497.5 995 4524.6 956.9 4593.5 956.9H4685.4ZM4526.2 1087.4H4684.3C4729.7 1087.4 4746.9 1069.7 4746.9 1037.8C4746.9 1005.4 4728.6 985.6 4685.3 985.6H4593.4C4544.9 985.6 4526.1 1011.2 4526.1 1045.6V1087.4H4526.2Z' fill='white'/%3E%3Cpath d='M5040.3 956.9V985.6H4929.1C4895.2 985.6 4881.6 1000.7 4881.6 1033.6V1224.6H4852.4V1029.9C4852.4 979.8 4871.7 956.8 4922.9 956.8H5040.3V956.9Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_879_362'%3E%3Crect width='5041' height='1231' fill='white' transform='translate(0 0.700195)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A"},yc={loginPageLogo:gc},bc="256px",Wt=({logoSrc:e=yc.loginPageLogo.value,width:t=bc,className:n="logo"})=>s.jsx("img",{width:t,src:e,className:n,alt:"Login logo"}),xc=(e,t)=>{const n=t.value||"",r=n.includes("@"),o=r||!n.length?void 0:"The provided input is not a valid email";return{value:n,isValid:r,validationError:o}},wc=(e,t)=>{const n=t.value||"",r=n.trim().length>3,o=r||!n.length?void 0:"The provided does not meet the length requirement";return{value:n,isValid:r,validationError:o}};const Cc=({onLogin:e,loginErrorMessage:t,components:n})=>{const[r,o]=y.useState(!1),[i,a]=y.useReducer(xc,{value:"",isValid:!1}),[c,l]=y.useReducer(wc,{value:"",isValid:!1}),{isValid:f}=i,{isValid:p}=c;y.useEffect(()=>{const v=setTimeout(()=>{o(f&&p)},250);return()=>clearTimeout(v)},[f,p]);const g=(v,E)=>{(v.target.type==="password"?l:a)({value:E})},u=v=>g(v,v.target.value),h=()=>{if(!f||!p)return;const v=i.value,E=c.value;e(v,E)},m=n?.Logo||Wt,d=n?.Heading||Zn;return s.jsxs(s.Fragment,{children:[s.jsx(m,{}),s.jsx(d,{}),s.jsx(vc,{email:i.value,password:c.value,errorMessage:t??i.validationError??c.validationError,canSubmit:r,onChange:u,onSubmit:h})]})},Oc=({components:e})=>{const t=e?.Logo||Wt,n=e?.Heading||Zn;return s.jsxs(s.Fragment,{children:[s.jsx(t,{}),s.jsx(n,{}),s.jsx("span",{className:"loader"})]})},Ec=({components:e,onLogin:t})=>{const n=e?.Logo||Wt,r=e?.Heading||Zn;return s.jsxs(s.Fragment,{children:[s.jsx(n,{}),s.jsx(r,{}),s.jsx(ko,{children:s.jsx(bt,{onClick:t,className:"g42-btn-primary",children:"Log In"})})]})},jc=()=>s.jsxs(s.Fragment,{children:[s.jsx(Rr.Logo,{}),s.jsx(Wn,{})]}),Sc="_workspaceLogo_t3m7s_1",_r={workspaceLogo:Sc,"launchpad-popup":"_launchpad-popup_t3m7s_9","slide-in":"_slide-in_t3m7s_32"},Io=e=>{const[t,n]=y.useState(!1),r=y.useRef(null),o=y.useRef(null),{icon:i,children:a}=e;return y.useEffect(()=>{if(!t)return;const c=f=>{const p=f.target!==r.current&&!r.current?.contains(f.target);!(f.target===o.current||o.current?.contains(f.target))&&p&&n(!1)},l=()=>{document.activeElement?.nodeName==="IFRAME"&&n(!1)};return document.addEventListener("mouseup",c,!0),window.addEventListener("blur",l,!0),()=>{document.removeEventListener("mouseup",c,!0),window.removeEventListener("blur",l,!0)}},[t]),s.jsxs("div",{ref:r,children:[s.jsx("button",{"aria-label":"Launchpad",onClick:()=>n(c=>!c),className:`g42-logo ${t===!0?"active":""}`,ref:o,children:s.jsx("div",{className:"logo-wrapper",children:i})}),s.jsx("div",{children:s.jsx("div",{className:J(_r["launchpad-popup"],{[_r["slide-in"]]:t}),children:a({open:t,setOpen:n})})})]})},Pc=e=>{const{icon:t,components:n,onLogout:r,user:o}=e;return s.jsx(Io,{icon:t,children:({open:i,setOpen:a})=>s.jsx(Ro,{open:i,setOpen:a,user:o,onLogout:r,components:n})})},kc=e=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:222,height:130,fill:"none",...e,children:[s.jsx("g",{filter:"url(#a)",children:s.jsx("path",{fill:"url(#b)",d:"M16 24h190v98a6 6 0 0 1-6 6H22a6 6 0 0 1-6-6V24Z"})}),s.jsx("path",{fill:"#3C3E3F",d:"M16 24h190V7a6 6 0 0 0-6-6H22a6 6 0 0 0-6 6v17Z"}),s.jsx("path",{stroke:"url(#c)",d:"M16 23.5h189"}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M178.172 15.343a2.171 2.171 0 1 0 0-4.342 2.171 2.171 0 0 0 0 4.342ZM186.258 15.343a2.171 2.171 0 1 0 .001-4.343 2.171 2.171 0 0 0-.001 4.343Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M194.344 15.343a2.171 2.171 0 1 0 .001-4.343 2.171 2.171 0 0 0-.001 4.343Z"}),s.jsx("rect",{width:75,height:75,x:73.5,y:33.5,stroke:"#9DA2A5",strokeDasharray:"1 12",rx:37.5}),s.jsx("rect",{width:69,height:24,x:127,y:64,fill:"#3C3E3F",rx:2}),s.jsx("path",{fill:"#2479E9",d:"M139 72a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z"}),s.jsx("rect",{width:39,height:8,x:148,y:72,fill:"#D9D9D9",fillOpacity:.1,rx:4}),s.jsx("rect",{width:69,height:24,x:127,y:92,fill:"#3C3E3F",rx:2}),s.jsx("path",{fill:"#36A86B",d:"M139 100a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z"}),s.jsx("rect",{width:11,height:8,x:148,y:100,fill:"#D9D9D9",fillOpacity:.1,rx:4}),s.jsx("rect",{width:18,height:8,x:164,y:100,fill:"#D9D9D9",fillOpacity:.1,rx:4}),s.jsx("rect",{width:66,height:66,x:78,y:38,fill:"#36AA6C",rx:33}),s.jsx("path",{fill:"#fff",d:"M110.25 59.75c0-.375.328-.75.75-.75.375 0 .75.375.75.75v.797c3.75.375 6.75 3.562 6.75 7.453v1.406c0 2.016.797 3.985 2.25 5.438l.141.14c.375.375.609.938.609 1.454a2.1 2.1 0 0 1-2.109 2.109h-16.829c-1.171-.047-2.062-.938-2.062-2.11 0-.562.188-1.078.609-1.453l.094-.14c1.453-1.453 2.297-3.422 2.297-5.438V68a7.484 7.484 0 0 1 6.75-7.453v-.797ZM111 62c-3.328 0-6 2.719-6 6v1.406a9.227 9.227 0 0 1-2.719 6.516l-.14.094a.755.755 0 0 0-.141.421c0 .329.234.563.562.563h16.829c.328 0 .609-.234.609-.563 0-.14-.094-.28-.188-.421l-.14-.094a9.258 9.258 0 0 1-2.719-6.563V68c0-3.281-2.672-6-6-6H111Zm-1.453 18.516c.234.609.797.984 1.453.984.609 0 1.172-.375 1.406-.984.141-.375.563-.61.938-.47.375.141.609.563.468.985A2.99 2.99 0 0 1 111 83c-1.312 0-2.438-.797-2.859-1.969a.785.785 0 0 1 .468-.984c.375-.14.797.094.938.469Z"}),s.jsx("rect",{width:191,height:128,x:15.5,y:.5,stroke:"url(#d)",strokeMiterlimit:10,rx:6.5}),s.jsxs("defs",{children:[s.jsxs("linearGradient",{id:"b",x1:39.152,x2:71.862,y1:30.346,y2:129.753,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#383838"}),s.jsx("stop",{offset:1,stopColor:"#1D1D1D"})]}),s.jsxs("linearGradient",{id:"c",x1:9.298,x2:205,y1:24,y2:24,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5F5F5F"}),s.jsx("stop",{offset:1,stopColor:"#5F5F5F",stopOpacity:0})]}),s.jsxs("linearGradient",{id:"d",x1:34.959,x2:127.671,y1:39.954,y2:146.801,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5F5F5F"}),s.jsx("stop",{offset:0,stopColor:"#575757"}),s.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),s.jsxs("filter",{id:"a",width:222,height:136,x:0,y:15,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[s.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.jsx("feOffset",{dy:7}),s.jsx("feGaussianBlur",{stdDeviation:8}),s.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),s.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_816_102831"}),s.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_816_102831",result:"shape"})]})]})]}),Tc=e=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:182,height:121,fill:"none",...e,children:[s.jsx("path",{fill:"url(#a)",d:"M114.092 103.689h-46.36v11.541h46.36v-11.541Z"}),s.jsx("path",{fill:"#828589",d:"M134.371 115.23H47.446v5.771h86.925v-5.771Z"}),s.jsx("rect",{width:180.555,height:103.984,x:.723,fill:"url(#b)",rx:8}),s.jsx("rect",{width:167,height:90,x:7.5,y:7,fill:"#000",fillOpacity:.4,rx:4}),s.jsxs("g",{filter:"url(#c)",children:[s.jsx("rect",{width:102,height:56,x:40,y:24,fill:"url(#d)",rx:6}),s.jsx("rect",{width:86,height:8,x:48,y:44.5,fill:"#D9D9D9",fillOpacity:.1,rx:4}),s.jsx("rect",{width:41,height:8,x:48,y:59.5,fill:"#fff",fillOpacity:.14,rx:4}),s.jsx("rect",{width:41,height:8,x:93,y:59.5,fill:"#fff",fillOpacity:.3,rx:4}),s.jsx("rect",{width:8,height:8,x:126,y:31,fill:"#DE2122",rx:4}),s.jsx("path",{fill:"#fff",d:"m131.878 33.683-1.31 1.31 1.31 1.324a.384.384 0 0 1 0 .561.384.384 0 0 1-.561 0l-1.311-1.31-1.323 1.31a.384.384 0 0 1-.561 0 .384.384 0 0 1 0-.561l1.31-1.323-1.31-1.31a.384.384 0 0 1 0-.562.384.384 0 0 1 .561 0l1.323 1.31 1.311-1.31a.384.384 0 0 1 .561 0 .384.384 0 0 1 0 .561Z"}),s.jsx("rect",{width:101,height:55,x:40.5,y:24.5,stroke:"url(#e)",strokeMiterlimit:10,rx:5.5})]}),s.jsxs("defs",{children:[s.jsxs("linearGradient",{id:"a",x1:90.912,x2:90.912,y1:103.689,y2:115.23,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"gray"}),s.jsx("stop",{offset:1,stopColor:"#56585D"})]}),s.jsxs("linearGradient",{id:"b",x1:91,x2:91,y1:0,y2:103.984,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"gray"}),s.jsx("stop",{offset:1,stopColor:"#56585D"})]}),s.jsxs("linearGradient",{id:"d",x1:52.429,x2:70.085,y1:27.417,y2:80.913,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#313131"}),s.jsx("stop",{offset:1,stopColor:"#1B1B1B"})]}),s.jsxs("linearGradient",{id:"e",x1:50.178,x2:89.211,y1:41.176,y2:95.944,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5F5F5F"}),s.jsx("stop",{offset:0,stopColor:"#575757"}),s.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),s.jsxs("filter",{id:"c",width:134,height:88,x:24,y:15,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[s.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.jsx("feOffset",{dy:7}),s.jsx("feGaussianBlur",{stdDeviation:8}),s.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),s.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2206_37806"}),s.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2206_37806",result:"shape"})]})]})]}),Nc=e=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:196,height:130,fill:"none",...e,children:[s.jsx("g",{filter:"url(#a)",children:s.jsx("path",{fill:"url(#b)",d:"M16 52.406h164v70a6 6 0 0 1-6 6H22a6 6 0 0 1-6-6v-70Z"})}),s.jsx("path",{fill:"#3C3E3F",d:"M16 52.406h164v-17a6 6 0 0 0-6-6H22a6 6 0 0 0-6 6v17Z"}),s.jsx("path",{stroke:"url(#c)",d:"M16 51.906h163"}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M152.172 43.75a2.171 2.171 0 1 0 0-4.343 2.171 2.171 0 0 0 0 4.342ZM160.258 43.75a2.172 2.172 0 1 0 0-4.344 2.172 2.172 0 0 0 0 4.343Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M168.344 43.75a2.172 2.172 0 1 0 0-4.344 2.172 2.172 0 0 0 0 4.343Z"}),s.jsx("rect",{width:165.324,height:99.595,x:15.5,y:28.906,stroke:"url(#d)",strokeMiterlimit:10,rx:6.5}),s.jsx("path",{fill:"url(#e)",d:"M96.469 13.858c1.347-2.334 4.717-2.334 6.064 0l58.373 101.105c1.348 2.335-.337 5.253-3.032 5.253H41.128c-2.696 0-4.38-2.918-3.033-5.253L96.47 13.858Z"}),s.jsx("path",{fill:"#fff",d:"M97.705 88.342a1 1 0 0 1-1-.975l-.826-33.968a1 1 0 0 1 1-1.024h6.267a1 1 0 0 1 1 1.024l-.827 33.968a1 1 0 0 1-1 .975h-4.614Zm2.526 15.54c-1.508 0-2.748-.462-3.72-1.386-.925-.973-1.387-2.116-1.387-3.43 0-1.361.462-2.504 1.386-3.428.973-.973 2.213-1.46 3.721-1.46 1.41 0 2.578.487 3.502 1.46.973.924 1.459 2.067 1.459 3.429 0 1.313-.486 2.456-1.459 3.429-.924.924-2.092 1.386-3.502 1.386Z"}),s.jsx("rect",{width:1,height:3,x:55,y:44,fill:"#9DA2A5",rx:.5}),s.jsx("rect",{width:1,height:3,x:55,y:50,fill:"#9DA2A5",rx:.5}),s.jsx("rect",{width:1,height:3,x:55,y:56,fill:"#9DA2A5",rx:.5}),s.jsx("rect",{width:40.255,height:40.255,x:35,fill:"url(#f)",rx:20.128}),s.jsx("path",{fill:"#fff",d:"M61.128 14.127v8h3v-7c0-.531-.469-1-1-1h-2Zm-1 0h-3v4h3v-4Zm-4 0h-2v8h2v-8Zm-3 0h-3v4h3v-4Zm-4 0h-2c-.563 0-1 .469-1 1v7h3v-8Zm-3 9v2c0 .563.437 1 1 1h7.5v-3h-8.5Zm9.5 3h7.5c.531 0 1-.438 1-1v-2h-8.5v3Zm-10.5-11c0-1.094.875-2 2-2h16c1.094 0 2 .906 2 2v10c0 1.125-.906 2-2 2h-16c-1.125 0-2-.875-2-2v-10Zm8 7v-3h-3v3h3Zm7-3h-3v3h3v-3Z"}),s.jsx("rect",{width:15.096,height:15.096,x:62.676,y:26.418,fill:"#DE2122",rx:7.548}),s.jsx("path",{fill:"#fff",d:"m72.102 32.65-1.31 1.31 1.31 1.323a.385.385 0 0 1 0 .562.385.385 0 0 1-.562 0l-1.31-1.31-1.323 1.31a.385.385 0 0 1-.562 0 .385.385 0 0 1 0-.562l1.31-1.322-1.31-1.31a.385.385 0 0 1 0-.563.385.385 0 0 1 .562 0l1.323 1.31 1.31-1.31a.385.385 0 0 1 .562 0 .385.385 0 0 1 0 .562Z"}),s.jsx("rect",{width:40.255,height:40.255,x:35,y:63,fill:"url(#g)",rx:20.128}),s.jsx("path",{fill:"#fff",d:"M54.628 75.627c0-.25.219-.5.5-.5.25 0 .5.25.5.5v.531c2.5.25 4.5 2.375 4.5 4.969v.938c0 1.343.531 2.656 1.5 3.624l.094.094c.25.25.406.625.406.969a1.4 1.4 0 0 1-1.406 1.406h-11.22c-.78-.031-1.374-.625-1.374-1.406 0-.375.125-.719.406-.969l.063-.094c.968-.968 1.53-2.28 1.53-3.624v-.938a4.99 4.99 0 0 1 4.5-4.969v-.531Zm.5 1.5c-2.219 0-4 1.813-4 4v.938a6.152 6.152 0 0 1-1.813 4.343l-.093.063a.504.504 0 0 0-.094.281c0 .219.156.375.375.375h11.219c.218 0 .406-.156.406-.375 0-.094-.063-.188-.125-.281l-.094-.063a6.17 6.17 0 0 1-1.812-4.375v-.906c0-2.188-1.782-4-4-4h.03Zm-.969 12.344c.156.406.531.656.969.656.406 0 .781-.25.937-.656.094-.25.375-.407.625-.313.25.094.407.375.313.656a1.994 1.994 0 0 1-1.875 1.313 2.005 2.005 0 0 1-1.906-1.313.524.524 0 0 1 .312-.656c.25-.094.531.063.625.313Z"}),s.jsx("rect",{width:15.096,height:15.096,x:62.678,y:89.418,fill:"#DE2122",rx:7.548}),s.jsx("path",{fill:"#fff",d:"m72.104 95.65-1.31 1.31 1.31 1.324a.385.385 0 0 1 0 .561.385.385 0 0 1-.562 0l-1.31-1.31-1.323 1.31a.385.385 0 0 1-.562 0 .385.385 0 0 1 0-.561l1.31-1.323-1.31-1.31a.385.385 0 0 1 0-.563.385.385 0 0 1 .562 0l1.323 1.31 1.31-1.31a.385.385 0 0 1 .562 0 .385.385 0 0 1 0 .562Z"}),s.jsxs("defs",{children:[s.jsxs("linearGradient",{id:"b",x1:35.984,x2:56.797,y1:57.043,y2:131.755,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#383838"}),s.jsx("stop",{offset:1,stopColor:"#1D1D1D"})]}),s.jsxs("linearGradient",{id:"c",x1:10.22,x2:179,y1:52.406,y2:52.406,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5F5F5F"}),s.jsx("stop",{offset:1,stopColor:"#5F5F5F",stopOpacity:0})]}),s.jsxs("linearGradient",{id:"d",x1:32.397,x2:102.886,y1:59.648,y2:150.147,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5F5F5F"}),s.jsx("stop",{offset:0,stopColor:"#575757"}),s.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),s.jsxs("linearGradient",{id:"e",x1:99.501,x2:246.864,y1:8.606,y2:161.85,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#F4B40F"}),s.jsx("stop",{offset:1,stopColor:"#EFAA23"})]}),s.jsxs("linearGradient",{id:"f",x1:55.128,x2:55.128,y1:0,y2:40.255,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"gray"}),s.jsx("stop",{offset:1,stopColor:"#56585D"})]}),s.jsxs("linearGradient",{id:"g",x1:55.128,x2:55.128,y1:63,y2:103.255,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"gray"}),s.jsx("stop",{offset:1,stopColor:"#56585D"})]}),s.jsxs("filter",{id:"a",width:196,height:108,x:0,y:43.406,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[s.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.jsx("feOffset",{dy:7}),s.jsx("feGaussianBlur",{stdDeviation:8}),s.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),s.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_834_102897"}),s.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_834_102897",result:"shape"})]})]})]}),Ac=e=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:247,height:143,fill:"none",...e,children:[s.jsx("path",{fill:"url(#a)",d:"M144.369 125.689h-46.36v11.541h46.36v-11.541Z"}),s.jsx("path",{fill:"#828589",d:"M164.648 137.23H77.724v5.771h86.924v-5.771Z"}),s.jsx("rect",{width:180.555,height:103.984,x:31,y:22,fill:"url(#b)",rx:8}),s.jsx("rect",{width:167,height:90,x:37.777,y:29,fill:"#000",fillOpacity:.4,rx:4}),s.jsxs("g",{filter:"url(#c)",children:[s.jsx("path",{fill:"url(#d)",d:"M187.138 9h-67.22A2.918 2.918 0 0 0 117 11.918v42.756a2.918 2.918 0 0 0 2.918 2.918h67.22a2.918 2.918 0 0 0 2.918-2.918V11.918A2.918 2.918 0 0 0 187.138 9Z"}),s.jsx("path",{stroke:"url(#e)",strokeMiterlimit:10,d:"M119.918 9.5h67.22a2.418 2.418 0 0 1 2.418 2.418v42.756a2.418 2.418 0 0 1-2.418 2.418h-67.22a2.418 2.418 0 0 1-2.418-2.418V11.918a2.418 2.418 0 0 1 2.418-2.418Z"})]}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M161.871 22.42a2.171 2.171 0 1 0 0-4.343 2.171 2.171 0 0 0 0 4.342ZM169.958 22.42a2.171 2.171 0 1 0 0-4.343 2.171 2.171 0 0 0 0 4.342Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M178.043 22.42a2.172 2.172 0 1 0 0-4.345 2.172 2.172 0 0 0 0 4.344Z"}),s.jsx("path",{fill:"#9DA2A5",d:"M153.404 55.547v5.836a.486.486 0 1 1-.972 0v-5.836a.486.486 0 1 1 .972 0ZM152.92 67.827l-3.255-3.255a.486.486 0 0 0-.688.688l3.599 3.6c.191.19.498.19.688 0l3.593-3.594a.485.485 0 1 0-.687-.688l-3.25 3.25ZM153.404 49.322v-5.836a.486.486 0 1 0-.972 0v5.836a.486.486 0 1 0 .972 0Z"}),s.jsx("path",{fill:"#3BB272",d:"M149 35a4 4 0 1 0 8 0 4 4 0 0 0-8 0Z"}),s.jsx("path",{fill:"#fff",fillOpacity:.1,d:"M105.723 39H53.277A2.28 2.28 0 0 0 51 41.282v33.436A2.28 2.28 0 0 0 53.277 77h52.446A2.28 2.28 0 0 0 108 74.718V41.282A2.28 2.28 0 0 0 105.723 39Z"}),s.jsx("path",{stroke:"#C8C8C8",strokeDasharray:"9 9",strokeLinecap:"round",strokeMiterlimit:10,strokeOpacity:.2,d:"M100.853 39a.5.5 0 0 0 .5.5h4.37c.98 0 1.777.797 1.777 1.782v4.18a.5.5 0 0 0 .5.5v7.358a.5.5 0 0 0-.5.5v8.36a.5.5 0 0 0 .5.5v7.358a.5.5 0 0 0-.5.5v4.18a1.78 1.78 0 0 1-1.777 1.782h-4.37a.5.5 0 0 0-.5.5h-7.741a.5.5 0 0 0-.5-.5H83.87a.5.5 0 0 0-.5.5h-7.742a.5.5 0 0 0-.5-.5h-8.74a.5.5 0 0 0-.5.5h-7.742a.5.5 0 0 0-.5-.5h-4.37a1.78 1.78 0 0 1-1.777-1.782v-4.18a.5.5 0 0 0-.5-.5V62.68a.5.5 0 0 0 .5-.5v-8.36a.5.5 0 0 0-.5-.5v-7.358a.5.5 0 0 0 .5-.5v-4.18a1.78 1.78 0 0 1 1.777-1.782h4.37a.5.5 0 0 0 .5-.5h7.741a.5.5 0 0 0 .5.5h8.741a.5.5 0 0 0 .5-.5h7.742a.5.5 0 0 0 .5.5h8.74a.5.5 0 0 0 .5-.5h7.742Z"}),s.jsx("path",{fill:"#fff",fillOpacity:.1,d:"M194.843 75h-49.686A2.16 2.16 0 0 0 143 77.162v31.676a2.16 2.16 0 0 0 2.157 2.162h49.686a2.16 2.16 0 0 0 2.157-2.162V77.162A2.16 2.16 0 0 0 194.843 75Z"}),s.jsx("path",{stroke:"#C8C8C8",strokeDasharray:"9 9",strokeLinecap:"round",strokeMiterlimit:10,strokeOpacity:.2,d:"M190.203 75a.5.5 0 0 0 .5.5h4.14a1.66 1.66 0 0 1 1.657 1.662v3.96a.5.5 0 0 0 .5.5v6.918a.5.5 0 0 0-.5.5v7.92a.5.5 0 0 0 .5.5v6.919a.5.5 0 0 0-.5.5v3.959a1.66 1.66 0 0 1-1.657 1.662h-4.14a.5.5 0 0 0-.5.5h-7.281a.5.5 0 0 0-.5-.5h-8.281a.5.5 0 0 0-.5.5h-7.282a.5.5 0 0 0-.5-.5h-8.281a.5.5 0 0 0-.5.5h-7.281a.5.5 0 0 0-.5-.5h-4.14a1.66 1.66 0 0 1-1.657-1.662v-3.959a.5.5 0 0 0-.5-.5v-6.92a.5.5 0 0 0 .5-.5V89.04a.5.5 0 0 0-.5-.5v-6.919a.5.5 0 0 0 .5-.5v-3.96a1.66 1.66 0 0 1 1.657-1.661h4.14a.5.5 0 0 0 .5-.5h7.281a.5.5 0 0 0 .5.5h8.281a.5.5 0 0 0 .5-.5h7.282a.5.5 0 0 0 .5.5h8.281a.5.5 0 0 0 .5-.5h7.281Z"}),s.jsxs("g",{filter:"url(#f)",children:[s.jsx("path",{fill:"url(#g)",d:"M228.294 65h-53.951a2.342 2.342 0 0 0-2.342 2.342v34.316a2.343 2.343 0 0 0 2.342 2.342h53.951a2.343 2.343 0 0 0 2.342-2.342V67.342A2.342 2.342 0 0 0 228.294 65Z"}),s.jsx("path",{stroke:"url(#h)",strokeMiterlimit:10,d:"M174.343 65.5h53.951c1.017 0 1.842.825 1.842 1.842v34.316a1.842 1.842 0 0 1-1.842 1.842h-53.951a1.842 1.842 0 0 1-1.842-1.842V67.342c0-1.017.825-1.842 1.842-1.842Z"})]}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M208.014 75.77a1.743 1.743 0 1 0 0-3.484 1.743 1.743 0 0 0 0 3.485ZM214.505 75.77a1.743 1.743 0 1 0 0-3.484 1.743 1.743 0 0 0 0 3.485Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M220.995 75.77a1.743 1.743 0 1 0 0-3.486 1.743 1.743 0 0 0 0 3.487Z"}),s.jsx("path",{fill:"#9DA2A5",d:"M172.454 86.568h-5.836a.486.486 0 1 1 0-.972h5.836a.486.486 0 1 1 0 .972ZM160.175 86.084l3.255-3.255a.486.486 0 1 0-.688-.688l-3.599 3.6a.486.486 0 0 0 0 .687l3.593 3.594a.486.486 0 1 0 .688-.688l-3.249-3.25ZM176.486 86.568h5.836a.487.487 0 1 0 0-.972h-5.836a.486.486 0 1 0 0 .972ZM186.486 86.568h5.836a.487.487 0 1 0 0-.972h-5.836a.486.486 0 1 0 0 .972Z"}),s.jsx("path",{fill:"url(#i)",d:"M200.891 82.242a3.89 3.89 0 1 0 0 7.782 3.89 3.89 0 0 0 0-7.782Z"}),s.jsxs("g",{filter:"url(#j)",children:[s.jsx("path",{fill:"url(#k)",d:"M86.138 62h-67.22A2.918 2.918 0 0 0 16 64.918v42.756a2.918 2.918 0 0 0 2.918 2.918h67.22a2.918 2.918 0 0 0 2.918-2.918V64.918A2.918 2.918 0 0 0 86.138 62Z"}),s.jsx("path",{stroke:"url(#l)",strokeMiterlimit:10,d:"M18.918 62.5h67.22a2.418 2.418 0 0 1 2.418 2.418v42.756a2.418 2.418 0 0 1-2.418 2.418h-67.22a2.418 2.418 0 0 1-2.418-2.418V64.918a2.418 2.418 0 0 1 2.418-2.418Z"})]}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M60.87 75.42a2.172 2.172 0 1 0 0-4.344 2.172 2.172 0 0 0 0 4.343ZM68.958 75.42a2.172 2.172 0 1 0 0-4.344 2.172 2.172 0 0 0 0 4.343Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M77.043 75.42a2.172 2.172 0 1 0 0-4.344 2.172 2.172 0 0 0 0 4.343Z"}),s.jsx("path",{fill:"#9DA2A5",d:"M101.546 88.596h5.836a.486.486 0 1 1 0 .972h-5.836a.486.486 0 1 1 0-.972ZM80.158 88.596h5.836a.486.486 0 1 1 0 .972h-5.836a.486.486 0 1 1 0-.972ZM96.71 88.596h-5.836a.486.486 0 1 0 0 .972h5.836a.486.486 0 1 0 0-.972ZM59.158 88.596h5.836a.486.486 0 1 1 0 .972h-5.836a.486.486 0 1 1 0-.972ZM113.825 89.08l-3.255 3.255a.486.486 0 1 0 .688.688l3.599-3.6a.486.486 0 0 0 0-.687l-3.593-3.593a.486.486 0 1 0-.688.687l3.249 3.25ZM75.322 88.596h-5.836a.486.486 0 1 0 0 .972h5.836a.486.486 0 1 0 0-.972Z"}),s.jsx("path",{fill:"#2479E9",d:"M50 93a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z"}),s.jsxs("defs",{children:[s.jsxs("linearGradient",{id:"a",x1:121.189,x2:121.189,y1:125.689,y2:137.23,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"gray"}),s.jsx("stop",{offset:1,stopColor:"#56585D"})]}),s.jsxs("linearGradient",{id:"b",x1:121.277,x2:121.277,y1:22,y2:125.984,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"gray"}),s.jsx("stop",{offset:1,stopColor:"#56585D"})]}),s.jsxs("linearGradient",{id:"d",x1:125.902,x2:143.647,y1:11.965,y2:56.345,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#383838"}),s.jsx("stop",{offset:1,stopColor:"#1D1D1D"})]}),s.jsxs("linearGradient",{id:"e",x1:124.29,x2:159.738,y1:23.904,y2:64.958,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5F5F5F"}),s.jsx("stop",{offset:0,stopColor:"#575757"}),s.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),s.jsxs("linearGradient",{id:"g",x1:179.146,x2:193.388,y1:67.38,y2:102.999,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#383838"}),s.jsx("stop",{offset:1,stopColor:"#1D1D1D"})]}),s.jsxs("linearGradient",{id:"h",x1:177.852,x2:206.302,y1:76.962,y2:109.912,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5F5F5F"}),s.jsx("stop",{offset:0,stopColor:"#575757"}),s.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),s.jsxs("linearGradient",{id:"i",x1:200.891,x2:193.185,y1:90.023,y2:82.01,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#F4B40F"}),s.jsx("stop",{offset:1,stopColor:"#EFAA23"})]}),s.jsxs("linearGradient",{id:"k",x1:24.902,x2:42.647,y1:64.965,y2:109.345,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#383838"}),s.jsx("stop",{offset:1,stopColor:"#1D1D1D"})]}),s.jsxs("linearGradient",{id:"l",x1:23.29,x2:58.738,y1:76.904,y2:117.958,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5F5F5F"}),s.jsx("stop",{offset:0,stopColor:"#575757"}),s.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),s.jsxs("filter",{id:"c",width:105.056,height:80.592,x:101,y:0,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[s.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.jsx("feOffset",{dy:7}),s.jsx("feGaussianBlur",{stdDeviation:8}),s.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),s.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_807_102718"}),s.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_807_102718",result:"shape"})]}),s.jsxs("filter",{id:"f",width:90.635,height:71,x:156.001,y:56,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[s.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.jsx("feOffset",{dy:7}),s.jsx("feGaussianBlur",{stdDeviation:8}),s.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),s.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_807_102718"}),s.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_807_102718",result:"shape"})]}),s.jsxs("filter",{id:"j",width:105.056,height:80.592,x:0,y:53,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[s.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.jsx("feOffset",{dy:7}),s.jsx("feGaussianBlur",{stdDeviation:8}),s.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),s.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_807_102718"}),s.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_807_102718",result:"shape"})]})]})]}),Dt={"window-management":{heading:"Allow Window Management",description:"io.Connect Browser requires permission to arrange windows on your desktop.",guidelines:{default:"To allow window management, click the icon to the left of the address bar."},label:"Allow window management",Image:Ac,openPermissionsPrompt:({handleDeferredPermission:e,handlePermissionsPromptClose:t})=>{window.getScreenDetails().catch(async()=>{const{state:n}=await navigator.permissions.query({name:"window-management"});n==="prompt"&&e()}).finally(t)}},notifications:{heading:"Allow Browser Notifications",description:`io.Connect Browser requires permission to send notifications to the desktop.
42
- This won't allow any other browser notifications.`,guidelines:{default:"To allow browser notifications, click the icon to the left of the address bar.",edge:'To allow browser notifications, click the icon to the left of the address bar, or the "Bell" icon to the right of the address bar.'},label:"Allow browser notifications",Image:kc,openPermissionsPrompt:({handleDeferredPermission:e,handlePermissionsPromptClose:t})=>{Notification.requestPermission().then(async()=>{const{state:n}=await navigator.permissions.query({name:"notifications"});n==="prompt"&&e()}).finally(t)}}},_c={edgeNotificationsPermissionTimeout:15e3};const qn=({children:e,description:t,heading:n,Image:r,title:o})=>s.jsxs("div",{className:"permissions-card",children:[o&&s.jsx("h1",{className:"permissions-card-title",children:o}),r&&s.jsx("div",{className:"permissions-card-image",children:s.jsx(r,{})}),n&&s.jsx("h3",{className:"permissions-card-heading",children:n}),s.jsx("p",{className:"permissions-card-description",children:t}),e]}),Rc=({isActiveItem:e=()=>!1,permissionStatuses:t})=>s.jsx("ul",{className:"permissions-list",children:Object.entries(Dt).map(([n,r],o)=>{const i=e(n),a=t.find(({name:c})=>c===n);return s.jsxs("li",{className:J("permissions-list-item",i&&"active"),children:[s.jsx("div",{children:a?.state==="granted"?s.jsx("span",{className:"icon-check"}):s.jsxs(s.Fragment,{children:[s.jsx("span",{className:i?"icon-arrow":""}),s.jsxs("span",{children:[o+1,"."]})]})}),r.label]},n)})}),Ic=({onReopenPromptClick:e})=>{const t=s.jsxs(s.Fragment,{children:['Please, click "Allow" when the browser prompt appears.',s.jsx("br",{}),s.jsxs("strong",{children:["If a browser prompt doesn't appear, click the icon to the left of the",s.jsx("br",{}),"address bar to manually grant the permission."]})]});return s.jsx(qn,{description:t,Image:Tc,title:"Something went wrong!",children:s.jsx(wt,{className:"g42-btn-primary permissions-prompt-button",onClick:e,children:"Reopen the Prompt"})})},Mc=["window-management","notifications"],Dc=()=>Promise.all(Mc.map(e=>navigator.permissions.query({name:e}))),Mo=y.createContext(void 0),Ct=()=>{const e=y.useContext(Mo);if(e===void 0)throw new Error("useIOConnectHome must be used within an IOConnectHomeProvider");return e},Lc=({children:e})=>{const[t,n]=y.useState([]),r=t.length===0,o={isDenied:!r&&t.some(({state:a})=>a==="denied"),isLoading:r,isSetupCompleted:!r&&t.every(({state:a})=>a==="granted"),statuses:t},i=y.useRef(!1);return y.useEffect(()=>{let a=!1;const c=Dc().then(l=>{if(a)return;n(l);const f=[];let p=!1;return l.forEach((g,u)=>{const h=m=>{if(a||!m.target||p)return;const d=m.target;if(d.state==="prompt"||d.state==="denied"&&i.current)return p=!0,window.location.reload();n(E=>[...E.slice(0,u),d,...E.slice(u+1)])};g.addEventListener("change",h),f.push(()=>g.removeEventListener("change",h))}),f});return()=>{a=!0,c.then(l=>{l?.forEach(f=>f())})}},[]),y.useEffect(()=>{i.current=o.isSetupCompleted},[o.isSetupCompleted]),s.jsx(Mo.Provider,{value:{permission:o},children:e})},Do=({deniedPermissionName:e})=>{const{permission:t}=Ct(),r=io().name?.toLowerCase()||"",o=Object.values(t.statuses).filter(a=>a.name===e||a.state==="denied"),i=s.jsxs(s.Fragment,{children:["The current browser settings block critical functionalities of io.Connect Browser.",s.jsx("br",{}),"To enable io.Connect Browser to operate properly, you must grant browser permissions manually."]});return s.jsx(qn,{description:i,Image:Nc,title:"Setup Was Unsuccessful",children:s.jsx("ul",{className:"permissions-guidelines-list",children:o.map((a,c)=>s.jsx("li",{children:Dt[a.name].guidelines[r]||Dt[a.name].guidelines.default},c))})})},Fc=({edgeNotificationsPermissionTimeout:e,isNotificationsPermissionPromptOpen:t})=>{const{name:n}=io(),{permission:r}=Ct(),[o,i]=y.useState(!1);return y.useEffect(()=>{if(!t||n!=="Edge")return;const a=setTimeout(()=>i(!0),e);return()=>clearTimeout(a)},[n,e,t]),y.useEffect(()=>{if(!o)return;r.statuses.some(({name:c,state:l})=>c==="notifications"&&l==="granted")&&i(!1)},[o,r.statuses]),{hasEdgeNotificationsPermissionError:o}},$c=({settings:e})=>{const{permission:t}=Ct(),[n,r]=y.useState(!1),[o,i]=y.useState(!1),a=t.statuses.find(({state:g})=>g==="prompt"),{hasEdgeNotificationsPermissionError:c}=Fc({edgeNotificationsPermissionTimeout:e.edgeNotificationsPermissionTimeout,isNotificationsPermissionPromptOpen:o&&a?.name==="notifications"});if(!a||t.isDenied)throw new Error('The "PermissionSteps" component should not be used in case there is no pending permission or there is a denied permission.');if(c)return s.jsx(Do,{deniedPermissionName:"notifications"});const l=Dt[a.name],f=()=>{i(!0),l.openPermissionsPrompt({handleDeferredPermission:()=>r(!0),handlePermissionsPromptClose:()=>i(!1)})},p=()=>{r(!1),f()};return n?s.jsx(Ic,{onReopenPromptClick:p}):s.jsxs(qn,{description:l.description,heading:l.heading,Image:l.Image,title:"First-Time User Setup",children:[s.jsx(Rc,{isActiveItem:g=>g===a.name,permissionStatuses:t.statuses}),s.jsx("p",{className:"mb-12 description",children:'Click "Allow" when the prompt appears.'}),s.jsx(wt,{className:"g42-btn-primary permissions-prompt-button",disabled:o,onClick:f,children:"Open Permission Prompt"}),o&&s.jsx("span",{className:"loader"})]})},Bc=({settings:e})=>{const{permission:t}=Ct();return t.isLoading?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"mb-32",children:"Checking browser permissions ..."}),s.jsx("div",{className:"loader"})]}):t.isDenied?s.jsx(Do,{}):s.jsx($c,{settings:e})},Hc=({components:{Logo:e=Wt}={},settings:t={}})=>s.jsx("div",{className:"permissions-setup",children:s.jsxs("div",{className:"permissions-wrapper",children:[s.jsx(e,{className:"mb-32"}),s.jsx(Bc,{settings:{..._c,...t}})]})});exports.ApplicationsSection=ho;exports.BaseSection=Ht;exports.BaseSectionHeader=Yr;exports.BaseSectionItem=so;exports.Button=bt;exports.ButtonGroup=Ut;exports.ContextMenu=qr;exports.DropdownButton=Rn;exports.FavoritesSection=mo;exports.IOConnectHomeProvider=Lc;exports.Icon=ue;exports.ImgIcon=In;exports.Launchpad=Ro;exports.LaunchpadSlidePanel=Pc;exports.LayoutsPanel=To;exports.Login=Cc;exports.LoginAuth0=Ec;exports.LoginLoader=Oc;exports.Logo=jc;exports.Notification=No;exports.NotificationsBadge=Wn;exports.NotificationsIcon=Ao;exports.NotificationsPanel=_o;exports.PermissionsSetup=Hc;exports.ProfileIcon=vo;exports.ProfileSettings=xo;exports.SearchBar=wo;exports.SearchResults=Co;exports.Section=Vt;exports.SettingsCard=go;exports.SlidePanel=Io;exports.SupportCard=yo;exports.WorkspacesSection=Oo;exports.useFavoriteEntities=$t;exports.useIOConnectHome=Ct;
40
+ */var Kt,hr;function Qs(){if(hr)return Kt;hr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var l=Object.getOwnPropertyNames(a).map(function(p){return a[p]});if(l.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(p){f[p]=p}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Kt=o()?Object.assign:function(i,a){for(var c,l=r(i),f,p=1;p<arguments.length;p++){c=Object(arguments[p]);for(var g in c)t.call(c,g)&&(l[g]=c[g]);if(e){f=e(c);for(var u=0;u<f.length;u++)n.call(c,f[u])&&(l[f[u]]=c[f[u]])}}return l},Kt}var Xt,mr;function $n(){if(mr)return Xt;mr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Xt=e,Xt}var Jt,vr;function So(){return vr||(vr=1,Jt=Function.call.bind(Object.prototype.hasOwnProperty)),Jt}var Qt,gr;function ea(){if(gr)return Qt;gr=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=$n(),n={},r=So();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,c,l,f){if(process.env.NODE_ENV!=="production"){for(var p in i)if(r(i,p)){var g;try{if(typeof i[p]!="function"){var u=Error((l||"React class")+": "+c+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}g=i[p](a,p,l,c,null,t)}catch(m){g=m}if(g&&!(g instanceof Error)&&e((l||"React class")+": type specification of "+c+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var h=f?f():"";e("Failed "+c+" type: "+g.message+(h??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Qt=o,Qt}var en,yr;function ta(){if(yr)return en;yr=1;var e=jo(),t=Qs(),n=$n(),r=So(),o=ea(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(c){var l="Warning: "+c;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return en=function(c,l){var f=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function g(O){var S=O&&(f&&O[f]||O[p]);if(typeof S=="function")return S}var u="<<anonymous>>",h={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:P(),arrayOf:C,element:w(),elementType:x(),instanceOf:N,node:W(),objectOf:X,oneOf:V,oneOfType:G,shape:te,exact:Q};function m(O,S){return O===S?O!==0||1/O===1/S:O!==O&&S!==S}function d(O,S){this.message=O,this.data=S&&typeof S=="object"?S:{},this.stack=""}d.prototype=Error.prototype;function v(O){if(process.env.NODE_ENV!=="production")var S={},A=0;function R(_,k,I,L,B,$,re){if(L=L||u,$=$||I,re!==n){if(l){var j=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw j.name="Invariant Violation",j}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ce=L+":"+I;!S[ce]&&A<3&&(i("You are manually calling a React.PropTypes validation function for the `"+$+"` prop on `"+L+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),S[ce]=!0,A++)}}return k[I]==null?_?k[I]===null?new d("The "+B+" `"+$+"` is marked as required "+("in `"+L+"`, but its value is `null`.")):new d("The "+B+" `"+$+"` is marked as required in "+("`"+L+"`, but its value is `undefined`.")):null:O(k,I,L,B,$)}var T=R.bind(null,!1);return T.isRequired=R.bind(null,!0),T}function E(O){function S(A,R,T,_,k,I){var L=A[R],B=Y(L);if(B!==O){var $=ee(L);return new d("Invalid "+_+" `"+k+"` of type "+("`"+$+"` supplied to `"+T+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return v(S)}function P(){return v(a)}function C(O){function S(A,R,T,_,k){if(typeof O!="function")return new d("Property `"+k+"` of component `"+T+"` has invalid PropType notation inside arrayOf.");var I=A[R];if(!Array.isArray(I)){var L=Y(I);return new d("Invalid "+_+" `"+k+"` of type "+("`"+L+"` supplied to `"+T+"`, expected an array."))}for(var B=0;B<I.length;B++){var $=O(I,B,T,_,k+"["+B+"]",n);if($ instanceof Error)return $}return null}return v(S)}function w(){function O(S,A,R,T,_){var k=S[A];if(!c(k)){var I=Y(k);return new d("Invalid "+T+" `"+_+"` of type "+("`"+I+"` supplied to `"+R+"`, expected a single ReactElement."))}return null}return v(O)}function x(){function O(S,A,R,T,_){var k=S[A];if(!e.isValidElementType(k)){var I=Y(k);return new d("Invalid "+T+" `"+_+"` of type "+("`"+I+"` supplied to `"+R+"`, expected a single ReactElement type."))}return null}return v(O)}function N(O){function S(A,R,T,_,k){if(!(A[R]instanceof O)){var I=O.name||u,L=ue(A[R]);return new d("Invalid "+_+" `"+k+"` of type "+("`"+L+"` supplied to `"+T+"`, expected ")+("instance of `"+I+"`."))}return null}return v(S)}function V(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function S(A,R,T,_,k){for(var I=A[R],L=0;L<O.length;L++)if(m(I,O[L]))return null;var B=JSON.stringify(O,function(re,j){var ce=ee(j);return ce==="symbol"?String(j):j});return new d("Invalid "+_+" `"+k+"` of value `"+String(I)+"` "+("supplied to `"+T+"`, expected one of "+B+"."))}return v(S)}function X(O){function S(A,R,T,_,k){if(typeof O!="function")return new d("Property `"+k+"` of component `"+T+"` has invalid PropType notation inside objectOf.");var I=A[R],L=Y(I);if(L!=="object")return new d("Invalid "+_+" `"+k+"` of type "+("`"+L+"` supplied to `"+T+"`, expected an object."));for(var B in I)if(r(I,B)){var $=O(I,B,T,_,k+"."+B,n);if($ instanceof Error)return $}return null}return v(S)}function G(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var S=0;S<O.length;S++){var A=O[S];if(typeof A!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ve(A)+" at index "+S+"."),a}function R(T,_,k,I,L){for(var B=[],$=0;$<O.length;$++){var re=O[$],j=re(T,_,k,I,L,n);if(j==null)return null;j.data&&r(j.data,"expectedType")&&B.push(j.data.expectedType)}var ce=B.length>0?", expected one of type ["+B.join(", ")+"]":"";return new d("Invalid "+I+" `"+L+"` supplied to "+("`"+k+"`"+ce+"."))}return v(R)}function W(){function O(S,A,R,T,_){return oe(S[A])?null:new d("Invalid "+T+" `"+_+"` supplied to "+("`"+R+"`, expected a ReactNode."))}return v(O)}function H(O,S,A,R,T){return new d((O||"React class")+": "+S+" type `"+A+"."+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+T+"`.")}function te(O){function S(A,R,T,_,k){var I=A[R],L=Y(I);if(L!=="object")return new d("Invalid "+_+" `"+k+"` of type `"+L+"` "+("supplied to `"+T+"`, expected `object`."));for(var B in O){var $=O[B];if(typeof $!="function")return H(T,_,k,B,ee($));var re=$(I,B,T,_,k+"."+B,n);if(re)return re}return null}return v(S)}function Q(O){function S(A,R,T,_,k){var I=A[R],L=Y(I);if(L!=="object")return new d("Invalid "+_+" `"+k+"` of type `"+L+"` "+("supplied to `"+T+"`, expected `object`."));var B=t({},A[R],O);for(var $ in B){var re=O[$];if(r(O,$)&&typeof re!="function")return H(T,_,k,$,ee(re));if(!re)return new d("Invalid "+_+" `"+k+"` key `"+$+"` supplied to `"+T+"`.\nBad object: "+JSON.stringify(A[R],null," ")+`
41
+ Valid keys: `+JSON.stringify(Object.keys(O),null," "));var j=re(I,$,T,_,k+"."+$,n);if(j)return j}return null}return v(S)}function oe(O){switch(typeof O){case"number":case"string":case"undefined":return!0;case"boolean":return!O;case"object":if(Array.isArray(O))return O.every(oe);if(O===null||c(O))return!0;var S=g(O);if(S){var A=S.call(O),R;if(S!==O.entries){for(;!(R=A.next()).done;)if(!oe(R.value))return!1}else for(;!(R=A.next()).done;){var T=R.value;if(T&&!oe(T[1]))return!1}}else return!1;return!0;default:return!1}}function he(O,S){return O==="symbol"?!0:S?S["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&S instanceof Symbol:!1}function Y(O){var S=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":he(S,O)?"symbol":S}function ee(O){if(typeof O>"u"||O===null)return""+O;var S=Y(O);if(S==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return S}function ve(O){var S=ee(O);switch(S){case"array":case"object":return"an "+S;case"boolean":case"date":case"regexp":return"a "+S;default:return S}}function ue(O){return!O.constructor||!O.constructor.name?u:O.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},en}var tn,br;function na(){if(br)return tn;br=1;var e=$n();function t(){}function n(){}return n.resetWarningCache=t,tn=function(){function r(a,c,l,f,p,g){if(g!==e){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},tn}if(process.env.NODE_ENV!=="production"){var ra=jo(),oa=!0;ur.exports=ta()(ra.isElement,oa)}else ur.exports=na()();function dn(e){return dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dn(e)}var ia;function it(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ia;return t?e.split(" ").map(function(n){return t[n]||n}).join(" "):e}function sa(e,t){var n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function aa(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,o,i={};r>0;)r-=1,o=n[r],i[o]=e[o];return i}var xr={};function wr(e){xr[e]||(typeof console<"u"&&console.error(e),xr[e]=!0)}var ca=(typeof window>"u"?"undefined":dn(window))==="object"&&window.Element||function(){};function la(e,t,n){if(!(e[t]instanceof ca))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}b.oneOfType([b.string,b.func,la,b.shape({current:b.any})]);var wt=b.oneOfType([b.func,b.string,b.shape({$$typeof:b.symbol,render:b.func}),b.arrayOf(b.oneOfType([b.func,b.string,b.shape({$$typeof:b.symbol,render:b.func})]))]),ua={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},Or=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],St={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},fa=["className","cssModule","variant","innerRef"];function pn(){return pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pn.apply(this,arguments)}function da(e,t){if(e==null)return{};var n=pa(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pa(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var ha={active:b.bool,"aria-label":b.string,onClick:b.func,variant:b.oneOf(["white"]),className:b.string,cssModule:b.object,innerRef:b.oneOfType([b.object,b.string,b.func])},ma={"aria-label":"close"};function Bn(e){var t=e.className;e.cssModule;var n=e.variant,r=e.innerRef,o=da(e,fa),i=it(J(t,"btn-close",n&&"btn-close-".concat(n)));return y.createElement("button",pn({ref:r,type:"button",className:i},o))}Bn.propTypes=ha;Bn.defaultProps=ma;var va=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function hn(){return hn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hn.apply(this,arguments)}function ga(e,t){if(e==null)return{};var n=ya(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ya(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var ba={active:b.bool,"aria-label":b.string,block:b.bool,children:b.node,className:b.string,cssModule:b.object,close:b.bool,color:b.string,disabled:b.bool,innerRef:b.oneOfType([b.object,b.func,b.string]),onClick:b.func,outline:b.bool,size:b.string,tag:wt},xa={color:"secondary",tag:"button"};function Ot(e){var t=y.useCallback(function(v){if(e.disabled){v.preventDefault();return}if(e.onClick)return e.onClick(v)},[e.onClick,e.disabled]),n=e.active,r=e["aria-label"],o=e.block,i=e.className,a=e.close,c=e.cssModule,l=e.color,f=e.outline,p=e.size,g=e.tag,u=e.innerRef,h=ga(e,va);if(a)return y.createElement(Bn,h);var m="btn".concat(f?"-outline":"","-").concat(l),d=it(J(i,"btn",m,p?"btn-".concat(p):!1,o?"d-block w-100":!1,{active:n,disabled:e.disabled}),c);return h.href&&g==="button"&&(g="a"),y.createElement(g,hn({type:g==="button"&&h.onClick?"button":void 0},h,{className:d,ref:u,onClick:t,"aria-label":r}))}Ot.propTypes=ba;Ot.defaultProps=xa;function wa(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function mn(e,t){return mn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},mn(e,t)}function Oa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,mn(e,t)}const Cr={disabled:!1};var Ca=process.env.NODE_ENV!=="production"?b.oneOfType([b.number,b.shape({enter:b.number,exit:b.number,appear:b.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&b.oneOfType([b.string,b.shape({enter:b.string,exit:b.string,active:b.string}),b.shape({enter:b.string,enterDone:b.string,enterActive:b.string,exit:b.string,exitDone:b.string,exitActive:b.string})]);const Po=y.createContext(null);var Ea=function(t){return t.scrollTop},dt="unmounted",$e="exited",Be="entering",Ye="entered",vn="exiting",ke=function(e){Oa(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,c=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?c?(l=$e,i.appearStatus=Be):l=Ye:r.unmountOnExit||r.mountOnEnter?l=dt:l=$e,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===dt?{status:$e}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Be&&a!==Ye&&(i=Be):(a===Be||a===Ye)&&(i=vn)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,c;return i=a=c=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,c=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:c}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Be){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:ut.findDOMNode(this);a&&Ea(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===$e&&this.setState({status:dt})},n.performEnter=function(o){var i=this,a=this.props.enter,c=this.context?this.context.isMounting:o,l=this.props.nodeRef?[c]:[ut.findDOMNode(this),c],f=l[0],p=l[1],g=this.getTimeouts(),u=c?g.appear:g.enter;if(!o&&!a||Cr.disabled){this.safeSetState({status:Ye},function(){i.props.onEntered(f)});return}this.props.onEnter(f,p),this.safeSetState({status:Be},function(){i.props.onEntering(f,p),i.onTransitionEnd(u,function(){i.safeSetState({status:Ye},function(){i.props.onEntered(f,p)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),c=this.props.nodeRef?void 0:ut.findDOMNode(this);if(!i||Cr.disabled){this.safeSetState({status:$e},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:vn},function(){o.props.onExiting(c),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:$e},function(){o.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(c){a&&(a=!1,i.nextCallback=null,o(c))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:ut.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!a||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],f=l[0],p=l[1];this.props.addEndListener(f,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===dt)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var c=wa(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return y.createElement(Po.Provider,{value:null},typeof a=="function"?a(o,c):y.cloneElement(y.Children.only(a),c))},t}(y.Component);ke.contextType=Po;ke.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:b.shape({current:typeof Element>"u"?b.any:function(e,t,n,r,o,i){var a=e[t];return b.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:b.oneOfType([b.func.isRequired,b.element.isRequired]).isRequired,in:b.bool,mountOnEnter:b.bool,unmountOnExit:b.bool,appear:b.bool,enter:b.bool,exit:b.bool,timeout:function(t){var n=Ca;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.apply(void 0,[t].concat(o))},addEndListener:b.func,onEnter:b.func,onEntering:b.func,onEntered:b.func,onExit:b.func,onExiting:b.func,onExited:b.func}:{};function ze(){}ke.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ze,onEntering:ze,onEntered:ze,onExit:ze,onExiting:ze,onExited:ze};ke.UNMOUNTED=dt;ke.EXITED=$e;ke.ENTERING=Be;ke.ENTERED=Ye;ke.EXITING=vn;const Hn=ke;function gn(e){return gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gn(e)}var ja=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],Ge;function _t(){return _t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_t.apply(this,arguments)}function Sa(e,t){if(e==null)return{};var n=Pa(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pa(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Na(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Er(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ta(e,t,n){return t&&Er(e.prototype,t),n&&Er(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ka(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yn(e,t)}function yn(e,t){return yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},yn(e,t)}function Aa(e){var t=Ra();return function(){var r=Rt(e),o;if(t){var i=Rt(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return _a(this,o)}}function _a(e,t){if(t&&(gn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return No(e)}function No(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ra(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rt(e){return Rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rt(e)}function jr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function rt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jr(Object(n),!0).forEach(function(r){Xe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jr(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ia=rt(rt({},Hn.propTypes),{},{horizontal:b.bool,isOpen:b.bool,children:b.oneOfType([b.arrayOf(b.node),b.node]),tag:wt,className:b.node,navbar:b.bool,cssModule:b.object,innerRef:b.shape({current:b.object})}),Ma=rt(rt({},Hn.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:ua.Collapse}),Da=(Ge={},Xe(Ge,St.ENTERING,"collapsing"),Xe(Ge,St.ENTERED,"collapse show"),Xe(Ge,St.EXITING,"collapsing"),Xe(Ge,St.EXITED,"collapse"),Ge);function La(e){return Da[e]||"collapse"}var Vn=function(e){ka(n,e);var t=Aa(n);function n(r){var o;return Na(this,n),o=t.call(this,r),o.state={dimension:null},o.nodeRef=r.innerRef||y.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(i){o[i]=o[i].bind(No(o))}),o}return Ta(n,[{key:"onEntering",value:function(o,i){var a=this.getNode();this.setState({dimension:this.getDimension(a)}),this.props.onEntering(a,i)}},{key:"onEntered",value:function(o,i){var a=this.getNode();this.setState({dimension:null}),this.props.onEntered(a,i)}},{key:"onExit",value:function(){var o=this.getNode();this.setState({dimension:this.getDimension(o)}),this.props.onExit(o)}},{key:"onExiting",value:function(){var o=this.getNode();this.getDimension(o),this.setState({dimension:0}),this.props.onExiting(o)}},{key:"onExited",value:function(){var o=this.getNode();this.setState({dimension:null}),this.props.onExited(o)}},{key:"getNode",value:function(){return this.nodeRef.current}},{key:"getDimension",value:function(o){return this.props.horizontal?o.scrollWidth:o.scrollHeight}},{key:"render",value:function(){var o=this,i=this.props,a=i.tag,c=i.horizontal,l=i.isOpen,f=i.className,p=i.navbar,g=i.cssModule,u=i.children;i.innerRef;var h=Sa(i,ja),m=this.state.dimension,d=aa(h,Or),v=sa(h,Or);return y.createElement(Hn,_t({},d,{in:l,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(E){var P=La(E),C=it(J(f,c&&"collapse-horizontal",P,p&&"navbar-collapse"),g),w=m===null?null:Xe({},c?"width":"height",m);return y.createElement(a,_t({},v,{style:rt(rt({},v.style),w),className:C,ref:o.nodeRef}),u)})}}]),n}(y.Component);Vn.propTypes=Ia;Vn.defaultProps=Ma;const Fa=Vn;function bn(e){return bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bn(e)}var $a=["className","cssModule","tag","innerRef"];function xn(){return xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xn.apply(this,arguments)}function Ba(e,t){if(e==null)return{};var n=Ha(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ha(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Va(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ua(e,t,n){return t&&Sr(e.prototype,t),n&&Sr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wa(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wn(e,t)}function wn(e,t){return wn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},wn(e,t)}function Za(e){var t=za();return function(){var r=It(e),o;if(t){var i=It(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return qa(this,o)}}function qa(e,t){if(t&&(bn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return On(e)}function On(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function za(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function It(e){return It=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},It(e)}var Ga={children:b.node,tag:wt,innerRef:b.oneOfType([b.object,b.func,b.string]),className:b.string,cssModule:b.object},Ya={tag:"form"},Un=function(e){Wa(n,e);var t=Za(n);function n(r){var o;return Va(this,n),o=t.call(this,r),o.getRef=o.getRef.bind(On(o)),o.submit=o.submit.bind(On(o)),o}return Ua(n,[{key:"getRef",value:function(o){this.props.innerRef&&this.props.innerRef(o),this.ref=o}},{key:"submit",value:function(){this.ref&&this.ref.submit()}},{key:"render",value:function(){var o=this.props,i=o.className,a=o.cssModule,c=o.tag,l=o.innerRef,f=Ba(o,$a),p=it(i,a);return y.createElement(c,xn({},f,{ref:l,className:p}))}}]),n}(y.Component);Un.propTypes=Ga;Un.defaultProps=Ya;const To=Un;var Ka=["className","cssModule","row","disabled","check","inline","floating","tag","switch"];function Cn(){return Cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cn.apply(this,arguments)}function Xa(e,t){if(e==null)return{};var n=Ja(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ja(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Qa={children:b.node,row:b.bool,check:b.bool,switch:b.bool,inline:b.bool,floating:b.bool,disabled:b.bool,tag:wt,className:b.string,cssModule:b.object},ec={tag:"div"};function Mt(e){var t=e.className,n=e.cssModule,r=e.row,o=e.disabled,i=e.check,a=e.inline,c=e.floating,l=e.tag,f=e.switch,p=Xa(e,Ka),g=i||f,u=it(J(t,r?"row":!1,g?"form-check":"mb-3",f?"form-switch":!1,g&&a?"form-check-inline":!1,g&&o?"disabled":!1,c&&"form-floating"),n);return l==="fieldset"&&(p.disabled=o),y.createElement(l,Cn({},p,{className:u}))}Mt.propTypes=Qa;Mt.defaultProps=ec;function En(e){return En=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},En(e)}var tc=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"];function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jn.apply(this,arguments)}function nc(e,t){if(e==null)return{};var n=rc(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rc(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function oc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ic(e,t,n){return t&&Pr(e.prototype,t),n&&Pr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function sc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sn(e,t)}function Sn(e,t){return Sn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Sn(e,t)}function ac(e){var t=lc();return function(){var r=Dt(e),o;if(t){var i=Dt(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return cc(this,o)}}function cc(e,t){if(t&&(En(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pn(e)}function Pn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lc(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Dt(e){return Dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dt(e)}var uc={children:b.node,type:b.string,size:b.oneOfType([b.number,b.string]),bsSize:b.string,valid:b.bool,invalid:b.bool,tag:wt,innerRef:b.oneOfType([b.object,b.func,b.string]),plaintext:b.bool,addon:b.bool,className:b.string,cssModule:b.object},fc={type:"text"},Wn=function(e){sc(n,e);var t=ac(n);function n(r){var o;return oc(this,n),o=t.call(this,r),o.getRef=o.getRef.bind(Pn(o)),o.focus=o.focus.bind(Pn(o)),o}return ic(n,[{key:"getRef",value:function(o){this.props.innerRef&&this.props.innerRef(o),this.ref=o}},{key:"focus",value:function(){this.ref&&this.ref.focus()}},{key:"render",value:function(){var o=this.props,i=o.className,a=o.cssModule,c=o.type,l=o.bsSize,f=o.valid,p=o.invalid,g=o.tag,u=o.addon,h=o.plaintext,m=o.innerRef,d=nc(o,tc),v=["switch","radio","checkbox"].indexOf(c)>-1,E=/\D/g,P=c==="textarea",C=c==="select",w=c==="range",x=g||(C||P?c:"input"),N="form-control";h?(N="".concat(N,"-plaintext"),x=g||"input"):w?N="form-range":C?N="form-select":v&&(u?N=null:N="form-check-input"),d.size&&E.test(d.size)&&(wr(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),l=d.size,delete d.size);var V=it(J(i,p&&"is-invalid",f&&"is-valid",l?C?"form-select-".concat(l):"form-control-".concat(l):!1,N),a);return(x==="input"||g&&typeof g=="function")&&(d.type=c==="switch"?"checkbox":c),d.children&&!(h||c==="select"||typeof x!="string"||x==="select")&&(wr('Input with a type of "'.concat(c,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete d.children),y.createElement(x,jn({},d,{ref:m,className:V,"aria-invalid":p}))}}]),n}(y.Component);Wn.propTypes=uc;Wn.defaultProps=fc;const Nr=Wn,dc={success:"check"},Tr={SET_AS_DEFAULT:"setAsDefault",DELETE:"delete"},pc=e=>[{name:Tr.SET_AS_DEFAULT,displayName:"Set as Default",disabled:e.isDefault},{name:Tr.DELETE,displayName:"Delete",disabled:e.name===lo||e.isDefault}],kr=e=>async t=>{t.stopPropagation();try{await e()}catch(n){console.error("Failed to handle layout action: ",n)}},hc=e=>{const{layouts:t}=e,{setSelectedLayout:n,setDefaultLayout:r}=ot(),o=Ls(),i=Fn();return s.jsxs(s.Fragment,{children:[s.jsx("h6",{children:"Available Layouts"}),t.map(a=>s.jsxs("div",{className:J("layouts-item flex ai-center",a.isSelected&&"active"),children:[s.jsx("div",{className:"loaded me-8",children:a.isSelected&&s.jsx(le,{size:12,name:"check"})}),s.jsx("div",{className:J("name",{bold:a.isSelected}),onClick:()=>{i(a.name,n)},children:a.name}),s.jsxs("div",{className:"type",children:[a.type,a.isDefault?"/Default":""]}),s.jsx(In,{iconSize:16,iconName:"ellipsis",actions:pc(a),onActionItemClick:(c,l)=>o(a,l.name,r)})]},a.name))]})},Ar=e=>{const{inputValue:t,setNotification:n,className:r=""}=e,{selectedLayout:o,setSelectedLayout:i}=ot(),a=Fn(),c=y.useContext(ne.IOConnectContext),l=[{label:"Save",type:"save",onClick:kr(async()=>{await c.layouts.save({name:t,type:"Global"}),i({name:t}),n({message:"Saved",type:"success"})})},{label:"Restore",type:"restore",onClick:kr(()=>{o&&a(o.name)})}];return s.jsx("div",{className:J("layout-actions",r),children:l.map(({label:f,type:p,disabled:g,onClick:u})=>s.jsx("button",{onClick:u,disabled:g,className:"g42-btn",children:f},p))})},mc=({className:e,message:t,type:n})=>s.jsxs("div",{className:J("layout-notification",`layout-notification-${n}`,e),children:[s.jsx(le,{size:12,name:dc[n]}),s.jsx("span",{children:t})]}),ko=()=>{const e=y.useRef(null),[t,n]=y.useState(!1),[r,o]=y.useState(null),i=bs(),{defaultLayout:a,selectedLayout:c}=ot(),[l,f]=y.useState("");y.useEffect(()=>{if(!t)return;const g=h=>{e.current?.contains(h.target)||n(!1)},u=()=>{document.activeElement?.nodeName==="IFRAME"&&n(!1)};return document.addEventListener("click",g,!0),window.addEventListener("blur",u,!0),()=>{document.removeEventListener("click",g,!0),window.removeEventListener("blur",u,!0)}},[t]),y.useEffect(()=>{if(!r)return;const g=setTimeout(()=>o(null),3e3);return()=>clearTimeout(g)},[r]),y.useEffect(()=>{c&&f(c.name)},[c]);const p=()=>{n(g=>!g),c&&f(c.name)};return s.jsxs("footer",{className:"footer",ref:e,children:[s.jsxs("div",{"aria-label":"Layouts panel","aria-expanded":t,role:"button",...nt(p),className:"selected-layout flex ai-center",children:[s.jsx("span",{className:J("name",{hidden:t}),children:c?.name||"No selected layout"}),s.jsxs("div",{className:"flex ai-center",children:[!t&&s.jsx(Ar,{inputValue:l,setNotification:o}),s.jsx(le,{className:J("ms-8","layouts-panel-toggle-button",{"layouts-panel-toggle-button-rotated":t}),name:"chevron-up"})]})]}),s.jsx(Fa,{isOpen:t,children:s.jsxs("div",{className:"layouts-container",children:[s.jsxs("div",{className:"layouts-settings",children:[s.jsx("input",{className:"g42-input",onChange:g=>f(g.target.value),value:l}),s.jsx(Ar,{className:"group",inputValue:l,setNotification:o})]}),s.jsx("div",{children:s.jsx(hc,{layouts:i.map(g=>({...g,isSelected:g.name===c?.name,isDefault:g.name===a?.name}))})})]})}),r?s.jsx(mc,{className:J({"ms-8 me-8":t}),message:r.message,type:r.type}):s.jsx("div",{className:"powered-by",children:"Powered by io.Connect Browser"})]})},vc=e=>{const t=new Date(e),n=t.getHours(),r=t.getMinutes().toString().padStart(2,"0"),o=t.getSeconds().toString().padStart(2,"0"),i=n>=12?"PM":"AM",a=t.getMonth()+1,c=t.getDate(),l=t.getFullYear();return`${n%12}:${r}:${o} ${i} ${a}/${c}/${l}`},Ao=e=>{const{severity:t="None",id:n,timestamp:r,title:o,body:i,actions:a}=e.notificationData,c=y.useContext(ne.IOConnectContext),l=()=>{c&&c.notifications.clear(n).catch(console.error)},f=async g=>{g.stopPropagation();try{await c.notifications.click(n),l()}catch(u){console.error(u)}},p=a?.map(({action:g,title:u})=>({children:u,onClick:async h=>{h.stopPropagation();try{await c.notifications.click(n,g),l()}catch(m){console.error(m)}}}));return s.jsxs("div",{className:"notifications-list-item",style:{borderLeftColor:xs[t]},onClick:f,"data-testid":"notification-container",children:[s.jsxs("div",{className:"notification-header","data-testid":"notification-header",children:[s.jsx("h4",{children:o}),s.jsx(le,{onClick:g=>{g.stopPropagation(),l()},className:"g42-btn close-btn",size:16,name:"close","data-testid":"close-icon"})]}),i&&s.jsx("p",{"data-testid":"notification-body",children:i}),r&&s.jsx("p",{"data-testid":"notification-timestamp",children:vc(r)}),p&&s.jsx(Wt,{className:"notification-actions","data-testid":"notification-actions",items:p})]})},Zn=e=>{const{className:t}=e,n=eo().length;return n>0?s.jsx("span",{className:J("notifications-badge",t),"data-testid":"notifications-badge",children:n<10?n:"9+"}):null},_o=e=>{const{className:t,iconSize:n=24,...r}=e;return s.jsxs("div",{className:J(t,"notifications-icon"),"data-testid":"notifications-icon",...r,children:[s.jsx(le,{size:n,name:"bell"}),s.jsx(Zn,{})]})},Ro=()=>{const{onNotificationsSort:e,sortedNotifications:t}=Es(),n=y.useContext(ne.IOConnectContext),r=y.useCallback(()=>{n&&n.notifications.clearAll().catch(console.error)},[n]);return s.jsxs("div",{className:"notifications-panel","data-testid":"notifications-panel",children:[s.jsxs("div",{className:"header","data-testid":"notifications-panel-header",children:[s.jsx("div",{className:"header-caption",children:s.jsxs("div",{children:["Notifications (",t.length,")"]})}),s.jsx(Wt,{items:[{children:"Latest",onClick:()=>e("timestamp")},{children:"By Priority",onClick:()=>e("severity")}]})]}),t.length?s.jsx("div",{className:"notifications-list","data-testid":"notifications-list",children:t.map(o=>s.jsx(Ao,{notificationData:o},o.id))}):s.jsx("div",{className:"no-notifications",children:"No notifications"}),s.jsx("div",{className:"footer","data-testid":"notifications-panel-footer",children:s.jsx(xt,{children:"Clear All",onClick:r})})]})},_r=({children:e,closeFn:t,open:n=!1,showCloseButton:r=!0})=>{const o=y.useRef(null);return y.useEffect(()=>{n?o.current?.showModal():o.current?.close()},[n]),s.jsx("dialog",{ref:o,onClose:()=>{n&&t()},onClick:i=>{i.target.nodeName==="DIALOG"&&t()},children:s.jsxs("div",{className:"dialog-backer",children:[r&&s.jsx(le,{onClick:t,className:"btn-close g42-btn g42-btn-icon",size:16,name:"close"}),e]})})};function Io(e){const{open:t,setOpen:n,onLogout:r,className:o,components:i,user:a,...c}=e,[l,f]=y.useState(""),[p,g]=y.useState(!1),[u,h]=y.useState(!1),m=y.useRef(null);y.useEffect(()=>{if(t){m.current?.focus();return}f("")},[t]);const d=P=>{f(P.target.value)},v=()=>{f("")},E=s.jsx(Zs,{children:s.jsx("ul",{children:i?.sections||s.jsxs(s.Fragment,{children:[s.jsx(vo,{}),s.jsx(Eo,{}),s.jsx(mo,{})]})})});return s.jsxs(Vs,{setOpen:n,isOpen:t,children:[s.jsxs("div",{className:J(o),...c,children:[s.jsxs("header",{children:[s.jsx(Oo,{ref:m,searchTerm:l,onSearch:d,onClear:v}),s.jsxs("div",{className:"action-area",children:[s.jsx(_o,{"aria-label":"Notifications",role:"button",...nt(()=>g(!0))}),a&&s.jsx(go,{initials:xo(a.name||"N A"),"aria-label":"Profile and Settings",role:"button",...nt(()=>h(!0))})]}),s.jsx(le,{className:"btn-close g42-btn g42-btn-icon",size:16,name:"close",handleClick:()=>n(!1)})]}),s.jsx("main",{children:l.trim().length<3?E:s.jsx(Co,{searchTerm:l})}),s.jsx(ko,{})]}),s.jsx(_r,{open:p,closeFn:()=>g(!1),children:s.jsx(Ro,{})}),s.jsx(_r,{open:u,closeFn:()=>h(!1),children:s.jsx(wo,{onLogout:r,user:a})})]})}const gc=({email:e,password:t,canSubmit:n,errorMessage:r,onSubmit:o,onChange:i})=>{const a=c=>{c.key==="Enter"&&(c.preventDefault(),o())};return s.jsxs(To,{onKeyUp:a,onSubmit:o,children:[s.jsx(Mt,{children:s.jsx(Nr,{autoFocus:!0,autoComplete:"off",type:"text",placeholder:"Email",value:e,onChange:i,className:"g42-input"})}),s.jsx(Mt,{children:s.jsx(Nr,{autoComplete:"off",type:"password",placeholder:"Password",value:t,onChange:i})}),s.jsx("div",{className:"pb-2 login-error-feedback",children:r??""}),s.jsx(Ot,{disabled:!n,onClick:o,children:"SIGN IN"})]})},qn=({className:e="welcome-text text-center mb-3",text:t="Making Your Work Flow"})=>s.jsxs(s.Fragment,{children:[s.jsx("h1",{className:e,children:t}),s.jsx("p",{children:"Integrate apps, simplify user experiences and accelerate digital transformation."})]}),yc={value:"data:image/svg+xml,%3Csvg width='5041' height='1232' viewBox='0 0 5041 1232' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_879_362)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M548.6 178H439.6C368.7 178 310 199.5 269.3 244.5C228.6 289.3 206.7 356 206.7 444.3C206.7 532.6 228.6 599.5 269.3 644.2C310.2 689.2 368.7 710.7 439.6 710.7H548.6C619 710.7 677.6 689.2 718.6 644.2C759.5 599.4 781.6 532.6 781.6 444.2C781.6 355.8 759.5 289 718.6 244.2C677.7 199.3 619 177.7 548.6 177.7V178ZM449.5 293.8H538.9C582.2 293.8 611.9 305.2 631.1 328.3C650.5 351.8 660.5 389.2 660.5 444.4C660.5 499.6 650.5 536.7 631.1 560C612 583 582.2 594.1 538.9 594.1H449.5C405.6 594.1 375.9 583 356.9 560C337.6 536.8 327.7 499.7 327.7 444.5C327.7 389.3 337.4 351.9 356.8 328.4C375.9 305.2 405.6 293.8 449.5 293.8Z' fill='white'/%3E%3Cpath d='M0.700195 189.8C0.700195 183.1 6.10017 177.7 12.8002 177.7H108.6C115.3 177.7 120.7 183.1 120.7 189.8V698.6C120.7 705.3 115.3 710.7 108.6 710.7H12.8002C6.10017 710.7 0.700195 705.3 0.700195 698.6V189.8Z' fill='white'/%3E%3Cpath d='M0.700195 11.9002C0.700195 5.7002 5.70018 0.700195 11.9002 0.700195H109.6C115.7 0.700195 120.7 5.7002 120.7 11.9002V109.5C120.7 115.7 115.7 120.7 109.5 120.7H11.9002C5.70018 120.7 0.700195 115.7 0.700195 109.5V11.9002Z' fill='%23007BE5'/%3E%3Cpath d='M827.7 601.9C827.7 595.7 832.7 590.7 838.9 590.7H936.6C942.8 590.7 947.8 595.7 947.8 601.9V699.5C947.8 705.7 942.8 710.7 936.6 710.7H838.9C832.7 710.7 827.7 705.7 827.7 699.5V601.9Z' fill='%23007BE5'/%3E%3Cpath d='M4363.9 293.2C4320.2 293.2 4290.6 304.6 4271.6 327.8C4252.3 351.4 4242.5 388.8 4242.5 444C4242.5 499.2 4252.3 536.4 4271.5 559.7C4290.5 582.6 4320 593.8 4363.8 593.8H4614.7C4622.4 593.8 4628.7 600.1 4628.7 607.8V696.7C4628.7 704.4 4622.4 710.7 4614.7 710.7H4354.1C4283.3 710.7 4224.9 689.1 4184.1 644.1C4143.5 599.3 4121.6 532.4 4121.6 444C4121.6 355.6 4143.5 288.7 4184.1 243.9C4224.8 199 4283.3 177.3 4354.1 177.3H4614.7C4622.4 177.3 4628.7 183.6 4628.7 191.3V279.3C4628.7 287 4622.4 293.3 4614.7 293.3H4363.9V293.2Z' fill='white'/%3E%3Cpath d='M1302.6 165.3C1240.1 165.3 1197 180.9 1169.3 213.3C1141.3 246 1127.4 297.6 1127.4 372.9C1127.4 447.7 1141.1 499 1169 531.6C1196.6 563.9 1239.7 579.5 1302.7 579.5H1552.5C1560.2 579.5 1566.5 585.8 1566.5 593.5V697.1C1566.5 704.8 1560.2 711.1 1552.5 711.1H1302.7C1204.7 711.1 1127.5 683.4 1075 626.4C1022.4 569.7 995.7 484.8 995.7 372.9C995.7 260.5 1022.7 175.4 1075.2 118.4C1127.9 61.3001 1205 33.6001 1302.6 33.6001H1552.4C1560.1 33.6001 1566.4 39.9001 1566.4 47.6001V151.2C1566.4 158.9 1560.1 165.2 1552.4 165.2H1302.6V165.3Z' fill='white'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1953.6 177.7H1844.8C1774 177.7 1715.6 199.3 1674.8 244.3C1634.2 289.1 1612.3 356 1612.3 444.4C1612.3 532.8 1634.2 599.7 1674.8 644.5C1715.5 689.4 1774 711.1 1844.8 711.1H1953.6C2023.9 711.1 2082.4 689.5 2123.2 644.5C2163.9 599.7 2186 532.8 2186 444.3C2186 355.8 2163.9 289 2123.2 244.1C2082.3 199.3 2023.9 177.7 1953.6 177.7ZM1854.6 293.7H1943.8C1987 293.7 2016.6 305.1 2035.8 328.3C2055.2 351.9 2065.2 389.3 2065.2 444.5C2065.2 499.7 2055.2 536.8 2035.8 560.2C2016.7 583.2 1987.1 594.3 1943.8 594.3H1854.6C1810.8 594.3 1781.3 583.1 1762.3 560.2C1743 536.9 1733.3 499.8 1733.3 444.5C1733.3 389.3 1743.1 351.9 1762.4 328.3C1781.3 305 1810.9 293.7 1854.6 293.7Z' fill='white'/%3E%3Cpath d='M2679.7 411.6C2679.7 372.5 2668.5 343.5 2645.4 324C2622.1 304.3 2585.3 293.2 2531.9 293.2H2378.4C2375.5 293.2 2374.9 293.9 2374.8 294C2374.5 294.4 2373.6 295.8 2373.6 299.8V696.7C2373.6 704.4 2367.3 710.7 2359.6 710.7H2267.7C2260 710.7 2253.7 704.4 2253.7 696.7V265.6C2253.7 234.7 2258.8 212 2272.6 197.2C2286.5 182.2 2307.5 177.3 2334.2 177.3H2531.8C2620.7 177.3 2688 198.4 2733.3 238.9C2778.7 279.5 2800.5 338.6 2800.5 411.7V696.7C2800.5 704.4 2794.2 710.7 2786.5 710.7H2693.7C2686 710.7 2679.7 704.4 2679.7 696.7V411.6Z' fill='white'/%3E%3Cpath d='M3304.7 411.6C3304.7 372.5 3293.5 343.5 3270.4 324C3247.1 304.3 3210.3 293.2 3156.9 293.2H3003.4C3000.5 293.2 2999.9 293.9 2999.8 294C2999.5 294.4 2998.6 295.8 2998.6 299.8V696.7C2998.6 704.4 2992.3 710.7 2984.6 710.7H2892.7C2885 710.7 2878.7 704.4 2878.7 696.7V265.6C2878.7 234.7 2883.8 212 2897.6 197.2C2911.5 182.2 2932.5 177.3 2959.2 177.3H3156.8C3245.7 177.3 3313 198.4 3358.3 238.9C3403.7 279.5 3425.5 338.6 3425.5 411.7V696.7C3425.5 704.4 3419.2 710.7 3411.5 710.7H3318.7C3311 710.7 3304.7 704.4 3304.7 696.7V411.6Z' fill='white'/%3E%3Cpath d='M4906.1 292.2C4898.4 292.2 4892.1 298.5 4892.1 306.2V529.2C4892.1 557.5 4897.2 574.3 4906.4 584.1C4915.4 593.8 4930 598.6 4953.7 598.6H5019.2C5026.9 598.6 5033.2 604.9 5033.2 612.6V695.7C5033.2 703.4 5026.9 709.7 5019.2 709.7H4932.1C4877.9 709.7 4836.8 698.8 4809.7 668.6C4782.8 638.6 4771.3 591.5 4771.3 523.4V306.2C4771.3 298.5 4765 292.2 4757.3 292.2H4714.7C4707 292.2 4700.7 285.9 4700.7 278.2V190.2C4700.7 182.5 4707 176.2 4714.7 176.2H4757.3C4765 176.2 4771.3 169.9 4771.3 162.2V67.7002C4771.3 60.0002 4777.6 53.7002 4785.3 53.7002H4878.2C4885.9 53.7002 4892.2 60.0002 4892.2 67.7002V162.2C4892.2 169.9 4898.5 176.2 4906.2 176.2H5021.3C5029 176.2 5035.3 182.5 5035.3 190.2V278.2C5035.3 285.9 5029 292.2 5021.3 292.2H4906.1Z' fill='white'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4024.4 607.2C4024.4 599.5 4018.1 593.2 4010.4 593.2H3699.9C3672.9 593.2 3655.3 586 3644.6 575.2C3633.8 564.4 3628.6 548.8 3628.6 529.7V514.5C3628.6 506.8 3634.9 500.5 3642.6 500.5H3866.6C3931.2 500.5 3977.4 486.9 4007.5 459.6C4037.7 432.2 4050.1 392.3 4050.1 343.5C4050.1 292.2 4036.8 250.1 4006.4 220.9C3976.1 191.7 3930.1 176.8 3867.7 176.8H3700.1C3633.9 176.8 3586.5 195.4 3555.6 227.8C3524.8 260.1 3511.8 305 3511.8 355.3V531.7C3511.8 582 3524.9 626.9 3555.6 659.2C3586.5 691.6 3633.9 710.2 3700.1 710.2H4010.6C4018.3 710.2 4024.6 703.9 4024.6 696.2V607.2H4024.4ZM3863.5 403.1H3642.5C3634.8 403.1 3628.5 396.8 3628.5 389.1V356.2C3628.5 337.6 3633.7 321.9 3644.6 311C3655.4 300.1 3672.9 292.7 3699.9 292.7H3866.5C3890.7 292.7 3906.9 298.8 3916.9 308.2C3926.9 317.5 3932 331.3 3932 349.4C3932 367.1 3927.3 380 3917.4 388.6C3907.4 397.4 3890.5 403.1 3863.5 403.1Z' fill='white'/%3E%3Cpath d='M2918.9 872.3C3001.9 872.3 3036.9 909.9 3036.9 966.3C3036.9 1012.2 3013.9 1036.8 2973.2 1047.2C3014.4 1058.2 3037.9 1083.7 3037.9 1129.7C3037.9 1186.1 3003.5 1224.7 2920.5 1224.7H2755.6C2741.5 1224.7 2734.2 1217.9 2734.2 1203.8V893.2C2734.2 879.1 2741.5 872.3 2755.6 872.3H2918.9ZM2765.4 1033.1H2918.9C2976.8 1033.1 3005 1014.8 3005 970.5C3005 929.8 2979.4 903.7 2919.4 903.7H2771.2C2767.5 903.7 2765.5 905.3 2765.5 909.4V1033.1H2765.4ZM2765.4 1187.6C2765.4 1191.8 2767.5 1193.3 2771.1 1193.3H2921C2979.5 1193.3 3006.1 1168.2 3006.1 1125.4C3006.1 1081 2976.9 1060.2 2921 1060.2H2765.5V1187.6H2765.4Z' fill='white'/%3E%3Cpath d='M3294 956.9V985.6H3182.8C3148.9 985.6 3135.3 1000.7 3135.3 1033.6V1224.6H3106.1V1029.9C3106.1 979.8 3125.4 956.8 3176.6 956.8H3294V956.9Z' fill='white'/%3E%3Cpath d='M3489.1 956.9C3562.2 956.9 3608.6 1001.3 3608.6 1091C3608.6 1181.3 3562.1 1224.6 3489.1 1224.6H3431.2C3357.6 1224.6 3311.7 1181.3 3311.7 1091C3311.7 1001.2 3357.6 956.9 3431.2 956.9H3489.1ZM3433.3 985.6C3374.3 985.6 3340.9 1019 3340.9 1091C3340.9 1163.5 3374.3 1196.4 3433.3 1196.4H3487.1C3546.1 1196.4 3579.5 1163.5 3579.5 1091C3579.5 1019 3546.1 985.6 3487.1 985.6H3433.3Z' fill='white'/%3E%3Cpath d='M3674.4 956.9L3706.8 1176.6C3709.4 1195.4 3716.2 1204.3 3737.1 1204.3C3758.5 1204.3 3767.4 1195.4 3771.5 1180.3L3821.6 995.5C3829.4 966.8 3849.3 951.7 3884.2 951.7C3919.1 951.7 3937.4 966.8 3945.3 995.5L3994.9 1180.3C3999.1 1195.4 4007.9 1204.3 4029.3 1204.3C4050.2 1204.3 4056.4 1195.4 4059.6 1176.6L4093.5 956.9H4125.3L4089.3 1179.8C4084.6 1210.6 4069.5 1231 4028.2 1231C3992.7 1231 3975 1216.4 3966.6 1185.1L3917 1000.9C3912.8 985.2 3900.8 978.5 3883.6 978.5C3865.9 978.5 3854.9 985.3 3850.7 1000.9L3799.6 1185.1C3790.7 1216.4 3773.5 1231 3737.5 1231C3695.2 1231 3682.2 1210.1 3677.5 1179.8L3643.1 956.9H3674.4Z' fill='white'/%3E%3Cpath d='M4417.6 956.9V985.6H4260C4219.8 985.6 4203.6 1003.3 4203.6 1032.1C4203.6 1057.2 4216.1 1077.5 4263.6 1077.5H4338.8C4410.8 1077.5 4428.6 1110.9 4428.6 1149.5C4428.6 1194.9 4404.6 1224.7 4344 1224.7H4178V1196.5H4344C4384.2 1196.5 4399.8 1178.2 4399.8 1149.5C4399.8 1124.4 4387.8 1103.6 4339.8 1103.6H4264.6C4193.1 1103.6 4174.8 1069.2 4174.8 1030C4174.8 985.1 4198.8 956.9 4259.4 956.9H4417.6Z' fill='white'/%3E%3Cpath d='M4685.4 956.9C4749.1 956.9 4775.7 986.6 4775.7 1036.8C4775.7 1084.8 4751.2 1111.4 4684.9 1111.4H4526.2V1135.9C4526.2 1170.3 4545 1196.4 4593.5 1196.4H4762.1V1224.6H4593.5C4524.6 1224.6 4497.5 1187.5 4497.5 1136.4V1045.1C4497.5 995 4524.6 956.9 4593.5 956.9H4685.4ZM4526.2 1087.4H4684.3C4729.7 1087.4 4746.9 1069.7 4746.9 1037.8C4746.9 1005.4 4728.6 985.6 4685.3 985.6H4593.4C4544.9 985.6 4526.1 1011.2 4526.1 1045.6V1087.4H4526.2Z' fill='white'/%3E%3Cpath d='M5040.3 956.9V985.6H4929.1C4895.2 985.6 4881.6 1000.7 4881.6 1033.6V1224.6H4852.4V1029.9C4852.4 979.8 4871.7 956.8 4922.9 956.8H5040.3V956.9Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_879_362'%3E%3Crect width='5041' height='1231' fill='white' transform='translate(0 0.700195)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A"},bc={loginPageLogo:yc},xc="256px",Zt=({logoSrc:e=bc.loginPageLogo.value,width:t=xc,className:n="logo"})=>s.jsx("img",{width:t,src:e,className:n,alt:"Login logo"}),wc=(e,t)=>{const n=t.value||"",r=n.includes("@"),o=r||!n.length?void 0:"The provided input is not a valid email";return{value:n,isValid:r,validationError:o}},Oc=(e,t)=>{const n=t.value||"",r=n.trim().length>3,o=r||!n.length?void 0:"The provided does not meet the length requirement";return{value:n,isValid:r,validationError:o}};const Cc=({onLogin:e,loginErrorMessage:t,components:n})=>{const[r,o]=y.useState(!1),[i,a]=y.useReducer(wc,{value:"",isValid:!1}),[c,l]=y.useReducer(Oc,{value:"",isValid:!1}),{isValid:f}=i,{isValid:p}=c;y.useEffect(()=>{const v=setTimeout(()=>{o(f&&p)},250);return()=>clearTimeout(v)},[f,p]);const g=(v,E)=>{(v.target.type==="password"?l:a)({value:E})},u=v=>g(v,v.target.value),h=()=>{if(!f||!p)return;const v=i.value,E=c.value;e(v,E)},m=n?.Logo||Zt,d=n?.Heading||qn;return s.jsxs(s.Fragment,{children:[s.jsx(m,{}),s.jsx(d,{}),s.jsx(gc,{email:i.value,password:c.value,errorMessage:t??i.validationError??c.validationError,canSubmit:r,onChange:u,onSubmit:h})]})},Ec=({components:e})=>{const t=e?.Logo||Zt,n=e?.Heading||qn;return s.jsxs(s.Fragment,{children:[s.jsx(t,{}),s.jsx(n,{}),s.jsx("span",{className:"loader"})]})},jc=({components:e,onLogin:t})=>{const n=e?.Logo||Zt,r=e?.Heading||qn;return s.jsxs(s.Fragment,{children:[s.jsx(n,{}),s.jsx(r,{}),s.jsx(To,{children:s.jsx(xt,{onClick:t,className:"g42-btn-primary",children:"Log In"})})]})},Sc=()=>s.jsxs(s.Fragment,{children:[s.jsx(Ir.Logo,{}),s.jsx(Zn,{})]}),Pc="_workspaceLogo_t3m7s_1",Rr={workspaceLogo:Pc,"launchpad-popup":"_launchpad-popup_t3m7s_9","slide-in":"_slide-in_t3m7s_32"},Mo=e=>{const[t,n]=y.useState(!1),r=y.useRef(null),o=y.useRef(null),{icon:i,children:a}=e;return y.useEffect(()=>{if(!t)return;const c=f=>{const p=f.target!==r.current&&!r.current?.contains(f.target);!(f.target===o.current||o.current?.contains(f.target))&&p&&n(!1)},l=()=>{document.activeElement?.nodeName==="IFRAME"&&n(!1)};return document.addEventListener("mouseup",c,!0),window.addEventListener("blur",l,!0),()=>{document.removeEventListener("mouseup",c,!0),window.removeEventListener("blur",l,!0)}},[t]),s.jsxs("div",{ref:r,children:[s.jsx("button",{"aria-label":"Launchpad",onClick:()=>n(c=>!c),className:`g42-logo ${t===!0?"active":""}`,ref:o,children:s.jsx("div",{className:"logo-wrapper",children:i})}),s.jsx("div",{children:s.jsx("div",{className:J(Rr["launchpad-popup"],{[Rr["slide-in"]]:t}),children:a({open:t,setOpen:n})})})]})},Nc=e=>{const{icon:t,components:n,onLogout:r,user:o}=e;return s.jsx(Mo,{icon:t,children:({open:i,setOpen:a})=>s.jsx(Io,{open:i,setOpen:a,user:o,onLogout:r,components:n})})},Tc=e=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:222,height:130,fill:"none",...e,children:[s.jsx("g",{filter:"url(#a)",children:s.jsx("path",{fill:"url(#b)",d:"M16 24h190v98a6 6 0 0 1-6 6H22a6 6 0 0 1-6-6V24Z"})}),s.jsx("path",{fill:"#3C3E3F",d:"M16 24h190V7a6 6 0 0 0-6-6H22a6 6 0 0 0-6 6v17Z"}),s.jsx("path",{stroke:"url(#c)",d:"M16 23.5h189"}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M178.172 15.343a2.171 2.171 0 1 0 0-4.342 2.171 2.171 0 0 0 0 4.342ZM186.258 15.343a2.171 2.171 0 1 0 .001-4.343 2.171 2.171 0 0 0-.001 4.343Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M194.344 15.343a2.171 2.171 0 1 0 .001-4.343 2.171 2.171 0 0 0-.001 4.343Z"}),s.jsx("rect",{width:75,height:75,x:73.5,y:33.5,stroke:"#9DA2A5",strokeDasharray:"1 12",rx:37.5}),s.jsx("rect",{width:69,height:24,x:127,y:64,fill:"#3C3E3F",rx:2}),s.jsx("path",{fill:"#2479E9",d:"M139 72a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z"}),s.jsx("rect",{width:39,height:8,x:148,y:72,fill:"#D9D9D9",fillOpacity:.1,rx:4}),s.jsx("rect",{width:69,height:24,x:127,y:92,fill:"#3C3E3F",rx:2}),s.jsx("path",{fill:"#36A86B",d:"M139 100a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z"}),s.jsx("rect",{width:11,height:8,x:148,y:100,fill:"#D9D9D9",fillOpacity:.1,rx:4}),s.jsx("rect",{width:18,height:8,x:164,y:100,fill:"#D9D9D9",fillOpacity:.1,rx:4}),s.jsx("rect",{width:66,height:66,x:78,y:38,fill:"#36AA6C",rx:33}),s.jsx("path",{fill:"#fff",d:"M110.25 59.75c0-.375.328-.75.75-.75.375 0 .75.375.75.75v.797c3.75.375 6.75 3.562 6.75 7.453v1.406c0 2.016.797 3.985 2.25 5.438l.141.14c.375.375.609.938.609 1.454a2.1 2.1 0 0 1-2.109 2.109h-16.829c-1.171-.047-2.062-.938-2.062-2.11 0-.562.188-1.078.609-1.453l.094-.14c1.453-1.453 2.297-3.422 2.297-5.438V68a7.484 7.484 0 0 1 6.75-7.453v-.797ZM111 62c-3.328 0-6 2.719-6 6v1.406a9.227 9.227 0 0 1-2.719 6.516l-.14.094a.755.755 0 0 0-.141.421c0 .329.234.563.562.563h16.829c.328 0 .609-.234.609-.563 0-.14-.094-.28-.188-.421l-.14-.094a9.258 9.258 0 0 1-2.719-6.563V68c0-3.281-2.672-6-6-6H111Zm-1.453 18.516c.234.609.797.984 1.453.984.609 0 1.172-.375 1.406-.984.141-.375.563-.61.938-.47.375.141.609.563.468.985A2.99 2.99 0 0 1 111 83c-1.312 0-2.438-.797-2.859-1.969a.785.785 0 0 1 .468-.984c.375-.14.797.094.938.469Z"}),s.jsx("rect",{width:191,height:128,x:15.5,y:.5,stroke:"url(#d)",strokeMiterlimit:10,rx:6.5}),s.jsxs("defs",{children:[s.jsxs("linearGradient",{id:"b",x1:39.152,x2:71.862,y1:30.346,y2:129.753,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#383838"}),s.jsx("stop",{offset:1,stopColor:"#1D1D1D"})]}),s.jsxs("linearGradient",{id:"c",x1:9.298,x2:205,y1:24,y2:24,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5F5F5F"}),s.jsx("stop",{offset:1,stopColor:"#5F5F5F",stopOpacity:0})]}),s.jsxs("linearGradient",{id:"d",x1:34.959,x2:127.671,y1:39.954,y2:146.801,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5F5F5F"}),s.jsx("stop",{offset:0,stopColor:"#575757"}),s.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),s.jsxs("filter",{id:"a",width:222,height:136,x:0,y:15,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[s.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.jsx("feOffset",{dy:7}),s.jsx("feGaussianBlur",{stdDeviation:8}),s.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),s.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_816_102831"}),s.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_816_102831",result:"shape"})]})]})]}),kc=e=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:182,height:121,fill:"none",...e,children:[s.jsx("path",{fill:"url(#a)",d:"M114.092 103.689h-46.36v11.541h46.36v-11.541Z"}),s.jsx("path",{fill:"#828589",d:"M134.371 115.23H47.446v5.771h86.925v-5.771Z"}),s.jsx("rect",{width:180.555,height:103.984,x:.723,fill:"url(#b)",rx:8}),s.jsx("rect",{width:167,height:90,x:7.5,y:7,fill:"#000",fillOpacity:.4,rx:4}),s.jsxs("g",{filter:"url(#c)",children:[s.jsx("rect",{width:102,height:56,x:40,y:24,fill:"url(#d)",rx:6}),s.jsx("rect",{width:86,height:8,x:48,y:44.5,fill:"#D9D9D9",fillOpacity:.1,rx:4}),s.jsx("rect",{width:41,height:8,x:48,y:59.5,fill:"#fff",fillOpacity:.14,rx:4}),s.jsx("rect",{width:41,height:8,x:93,y:59.5,fill:"#fff",fillOpacity:.3,rx:4}),s.jsx("rect",{width:8,height:8,x:126,y:31,fill:"#DE2122",rx:4}),s.jsx("path",{fill:"#fff",d:"m131.878 33.683-1.31 1.31 1.31 1.324a.384.384 0 0 1 0 .561.384.384 0 0 1-.561 0l-1.311-1.31-1.323 1.31a.384.384 0 0 1-.561 0 .384.384 0 0 1 0-.561l1.31-1.323-1.31-1.31a.384.384 0 0 1 0-.562.384.384 0 0 1 .561 0l1.323 1.31 1.311-1.31a.384.384 0 0 1 .561 0 .384.384 0 0 1 0 .561Z"}),s.jsx("rect",{width:101,height:55,x:40.5,y:24.5,stroke:"url(#e)",strokeMiterlimit:10,rx:5.5})]}),s.jsxs("defs",{children:[s.jsxs("linearGradient",{id:"a",x1:90.912,x2:90.912,y1:103.689,y2:115.23,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"gray"}),s.jsx("stop",{offset:1,stopColor:"#56585D"})]}),s.jsxs("linearGradient",{id:"b",x1:91,x2:91,y1:0,y2:103.984,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"gray"}),s.jsx("stop",{offset:1,stopColor:"#56585D"})]}),s.jsxs("linearGradient",{id:"d",x1:52.429,x2:70.085,y1:27.417,y2:80.913,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#313131"}),s.jsx("stop",{offset:1,stopColor:"#1B1B1B"})]}),s.jsxs("linearGradient",{id:"e",x1:50.178,x2:89.211,y1:41.176,y2:95.944,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5F5F5F"}),s.jsx("stop",{offset:0,stopColor:"#575757"}),s.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),s.jsxs("filter",{id:"c",width:134,height:88,x:24,y:15,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[s.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.jsx("feOffset",{dy:7}),s.jsx("feGaussianBlur",{stdDeviation:8}),s.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),s.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2206_37806"}),s.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2206_37806",result:"shape"})]})]})]}),Ac=e=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:196,height:130,fill:"none",...e,children:[s.jsx("g",{filter:"url(#a)",children:s.jsx("path",{fill:"url(#b)",d:"M16 52.406h164v70a6 6 0 0 1-6 6H22a6 6 0 0 1-6-6v-70Z"})}),s.jsx("path",{fill:"#3C3E3F",d:"M16 52.406h164v-17a6 6 0 0 0-6-6H22a6 6 0 0 0-6 6v17Z"}),s.jsx("path",{stroke:"url(#c)",d:"M16 51.906h163"}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M152.172 43.75a2.171 2.171 0 1 0 0-4.343 2.171 2.171 0 0 0 0 4.342ZM160.258 43.75a2.172 2.172 0 1 0 0-4.344 2.172 2.172 0 0 0 0 4.343Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M168.344 43.75a2.172 2.172 0 1 0 0-4.344 2.172 2.172 0 0 0 0 4.343Z"}),s.jsx("rect",{width:165.324,height:99.595,x:15.5,y:28.906,stroke:"url(#d)",strokeMiterlimit:10,rx:6.5}),s.jsx("path",{fill:"url(#e)",d:"M96.469 13.858c1.347-2.334 4.717-2.334 6.064 0l58.373 101.105c1.348 2.335-.337 5.253-3.032 5.253H41.128c-2.696 0-4.38-2.918-3.033-5.253L96.47 13.858Z"}),s.jsx("path",{fill:"#fff",d:"M97.705 88.342a1 1 0 0 1-1-.975l-.826-33.968a1 1 0 0 1 1-1.024h6.267a1 1 0 0 1 1 1.024l-.827 33.968a1 1 0 0 1-1 .975h-4.614Zm2.526 15.54c-1.508 0-2.748-.462-3.72-1.386-.925-.973-1.387-2.116-1.387-3.43 0-1.361.462-2.504 1.386-3.428.973-.973 2.213-1.46 3.721-1.46 1.41 0 2.578.487 3.502 1.46.973.924 1.459 2.067 1.459 3.429 0 1.313-.486 2.456-1.459 3.429-.924.924-2.092 1.386-3.502 1.386Z"}),s.jsx("rect",{width:1,height:3,x:55,y:44,fill:"#9DA2A5",rx:.5}),s.jsx("rect",{width:1,height:3,x:55,y:50,fill:"#9DA2A5",rx:.5}),s.jsx("rect",{width:1,height:3,x:55,y:56,fill:"#9DA2A5",rx:.5}),s.jsx("rect",{width:40.255,height:40.255,x:35,fill:"url(#f)",rx:20.128}),s.jsx("path",{fill:"#fff",d:"M61.128 14.127v8h3v-7c0-.531-.469-1-1-1h-2Zm-1 0h-3v4h3v-4Zm-4 0h-2v8h2v-8Zm-3 0h-3v4h3v-4Zm-4 0h-2c-.563 0-1 .469-1 1v7h3v-8Zm-3 9v2c0 .563.437 1 1 1h7.5v-3h-8.5Zm9.5 3h7.5c.531 0 1-.438 1-1v-2h-8.5v3Zm-10.5-11c0-1.094.875-2 2-2h16c1.094 0 2 .906 2 2v10c0 1.125-.906 2-2 2h-16c-1.125 0-2-.875-2-2v-10Zm8 7v-3h-3v3h3Zm7-3h-3v3h3v-3Z"}),s.jsx("rect",{width:15.096,height:15.096,x:62.676,y:26.418,fill:"#DE2122",rx:7.548}),s.jsx("path",{fill:"#fff",d:"m72.102 32.65-1.31 1.31 1.31 1.323a.385.385 0 0 1 0 .562.385.385 0 0 1-.562 0l-1.31-1.31-1.323 1.31a.385.385 0 0 1-.562 0 .385.385 0 0 1 0-.562l1.31-1.322-1.31-1.31a.385.385 0 0 1 0-.563.385.385 0 0 1 .562 0l1.323 1.31 1.31-1.31a.385.385 0 0 1 .562 0 .385.385 0 0 1 0 .562Z"}),s.jsx("rect",{width:40.255,height:40.255,x:35,y:63,fill:"url(#g)",rx:20.128}),s.jsx("path",{fill:"#fff",d:"M54.628 75.627c0-.25.219-.5.5-.5.25 0 .5.25.5.5v.531c2.5.25 4.5 2.375 4.5 4.969v.938c0 1.343.531 2.656 1.5 3.624l.094.094c.25.25.406.625.406.969a1.4 1.4 0 0 1-1.406 1.406h-11.22c-.78-.031-1.374-.625-1.374-1.406 0-.375.125-.719.406-.969l.063-.094c.968-.968 1.53-2.28 1.53-3.624v-.938a4.99 4.99 0 0 1 4.5-4.969v-.531Zm.5 1.5c-2.219 0-4 1.813-4 4v.938a6.152 6.152 0 0 1-1.813 4.343l-.093.063a.504.504 0 0 0-.094.281c0 .219.156.375.375.375h11.219c.218 0 .406-.156.406-.375 0-.094-.063-.188-.125-.281l-.094-.063a6.17 6.17 0 0 1-1.812-4.375v-.906c0-2.188-1.782-4-4-4h.03Zm-.969 12.344c.156.406.531.656.969.656.406 0 .781-.25.937-.656.094-.25.375-.407.625-.313.25.094.407.375.313.656a1.994 1.994 0 0 1-1.875 1.313 2.005 2.005 0 0 1-1.906-1.313.524.524 0 0 1 .312-.656c.25-.094.531.063.625.313Z"}),s.jsx("rect",{width:15.096,height:15.096,x:62.678,y:89.418,fill:"#DE2122",rx:7.548}),s.jsx("path",{fill:"#fff",d:"m72.104 95.65-1.31 1.31 1.31 1.324a.385.385 0 0 1 0 .561.385.385 0 0 1-.562 0l-1.31-1.31-1.323 1.31a.385.385 0 0 1-.562 0 .385.385 0 0 1 0-.561l1.31-1.323-1.31-1.31a.385.385 0 0 1 0-.563.385.385 0 0 1 .562 0l1.323 1.31 1.31-1.31a.385.385 0 0 1 .562 0 .385.385 0 0 1 0 .562Z"}),s.jsxs("defs",{children:[s.jsxs("linearGradient",{id:"b",x1:35.984,x2:56.797,y1:57.043,y2:131.755,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#383838"}),s.jsx("stop",{offset:1,stopColor:"#1D1D1D"})]}),s.jsxs("linearGradient",{id:"c",x1:10.22,x2:179,y1:52.406,y2:52.406,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5F5F5F"}),s.jsx("stop",{offset:1,stopColor:"#5F5F5F",stopOpacity:0})]}),s.jsxs("linearGradient",{id:"d",x1:32.397,x2:102.886,y1:59.648,y2:150.147,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5F5F5F"}),s.jsx("stop",{offset:0,stopColor:"#575757"}),s.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),s.jsxs("linearGradient",{id:"e",x1:99.501,x2:246.864,y1:8.606,y2:161.85,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#F4B40F"}),s.jsx("stop",{offset:1,stopColor:"#EFAA23"})]}),s.jsxs("linearGradient",{id:"f",x1:55.128,x2:55.128,y1:0,y2:40.255,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"gray"}),s.jsx("stop",{offset:1,stopColor:"#56585D"})]}),s.jsxs("linearGradient",{id:"g",x1:55.128,x2:55.128,y1:63,y2:103.255,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"gray"}),s.jsx("stop",{offset:1,stopColor:"#56585D"})]}),s.jsxs("filter",{id:"a",width:196,height:108,x:0,y:43.406,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[s.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.jsx("feOffset",{dy:7}),s.jsx("feGaussianBlur",{stdDeviation:8}),s.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),s.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_834_102897"}),s.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_834_102897",result:"shape"})]})]})]}),_c=e=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:247,height:143,fill:"none",...e,children:[s.jsx("path",{fill:"url(#a)",d:"M144.369 125.689h-46.36v11.541h46.36v-11.541Z"}),s.jsx("path",{fill:"#828589",d:"M164.648 137.23H77.724v5.771h86.924v-5.771Z"}),s.jsx("rect",{width:180.555,height:103.984,x:31,y:22,fill:"url(#b)",rx:8}),s.jsx("rect",{width:167,height:90,x:37.777,y:29,fill:"#000",fillOpacity:.4,rx:4}),s.jsxs("g",{filter:"url(#c)",children:[s.jsx("path",{fill:"url(#d)",d:"M187.138 9h-67.22A2.918 2.918 0 0 0 117 11.918v42.756a2.918 2.918 0 0 0 2.918 2.918h67.22a2.918 2.918 0 0 0 2.918-2.918V11.918A2.918 2.918 0 0 0 187.138 9Z"}),s.jsx("path",{stroke:"url(#e)",strokeMiterlimit:10,d:"M119.918 9.5h67.22a2.418 2.418 0 0 1 2.418 2.418v42.756a2.418 2.418 0 0 1-2.418 2.418h-67.22a2.418 2.418 0 0 1-2.418-2.418V11.918a2.418 2.418 0 0 1 2.418-2.418Z"})]}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M161.871 22.42a2.171 2.171 0 1 0 0-4.343 2.171 2.171 0 0 0 0 4.342ZM169.958 22.42a2.171 2.171 0 1 0 0-4.343 2.171 2.171 0 0 0 0 4.342Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M178.043 22.42a2.172 2.172 0 1 0 0-4.345 2.172 2.172 0 0 0 0 4.344Z"}),s.jsx("path",{fill:"#9DA2A5",d:"M153.404 55.547v5.836a.486.486 0 1 1-.972 0v-5.836a.486.486 0 1 1 .972 0ZM152.92 67.827l-3.255-3.255a.486.486 0 0 0-.688.688l3.599 3.6c.191.19.498.19.688 0l3.593-3.594a.485.485 0 1 0-.687-.688l-3.25 3.25ZM153.404 49.322v-5.836a.486.486 0 1 0-.972 0v5.836a.486.486 0 1 0 .972 0Z"}),s.jsx("path",{fill:"#3BB272",d:"M149 35a4 4 0 1 0 8 0 4 4 0 0 0-8 0Z"}),s.jsx("path",{fill:"#fff",fillOpacity:.1,d:"M105.723 39H53.277A2.28 2.28 0 0 0 51 41.282v33.436A2.28 2.28 0 0 0 53.277 77h52.446A2.28 2.28 0 0 0 108 74.718V41.282A2.28 2.28 0 0 0 105.723 39Z"}),s.jsx("path",{stroke:"#C8C8C8",strokeDasharray:"9 9",strokeLinecap:"round",strokeMiterlimit:10,strokeOpacity:.2,d:"M100.853 39a.5.5 0 0 0 .5.5h4.37c.98 0 1.777.797 1.777 1.782v4.18a.5.5 0 0 0 .5.5v7.358a.5.5 0 0 0-.5.5v8.36a.5.5 0 0 0 .5.5v7.358a.5.5 0 0 0-.5.5v4.18a1.78 1.78 0 0 1-1.777 1.782h-4.37a.5.5 0 0 0-.5.5h-7.741a.5.5 0 0 0-.5-.5H83.87a.5.5 0 0 0-.5.5h-7.742a.5.5 0 0 0-.5-.5h-8.74a.5.5 0 0 0-.5.5h-7.742a.5.5 0 0 0-.5-.5h-4.37a1.78 1.78 0 0 1-1.777-1.782v-4.18a.5.5 0 0 0-.5-.5V62.68a.5.5 0 0 0 .5-.5v-8.36a.5.5 0 0 0-.5-.5v-7.358a.5.5 0 0 0 .5-.5v-4.18a1.78 1.78 0 0 1 1.777-1.782h4.37a.5.5 0 0 0 .5-.5h7.741a.5.5 0 0 0 .5.5h8.741a.5.5 0 0 0 .5-.5h7.742a.5.5 0 0 0 .5.5h8.74a.5.5 0 0 0 .5-.5h7.742Z"}),s.jsx("path",{fill:"#fff",fillOpacity:.1,d:"M194.843 75h-49.686A2.16 2.16 0 0 0 143 77.162v31.676a2.16 2.16 0 0 0 2.157 2.162h49.686a2.16 2.16 0 0 0 2.157-2.162V77.162A2.16 2.16 0 0 0 194.843 75Z"}),s.jsx("path",{stroke:"#C8C8C8",strokeDasharray:"9 9",strokeLinecap:"round",strokeMiterlimit:10,strokeOpacity:.2,d:"M190.203 75a.5.5 0 0 0 .5.5h4.14a1.66 1.66 0 0 1 1.657 1.662v3.96a.5.5 0 0 0 .5.5v6.918a.5.5 0 0 0-.5.5v7.92a.5.5 0 0 0 .5.5v6.919a.5.5 0 0 0-.5.5v3.959a1.66 1.66 0 0 1-1.657 1.662h-4.14a.5.5 0 0 0-.5.5h-7.281a.5.5 0 0 0-.5-.5h-8.281a.5.5 0 0 0-.5.5h-7.282a.5.5 0 0 0-.5-.5h-8.281a.5.5 0 0 0-.5.5h-7.281a.5.5 0 0 0-.5-.5h-4.14a1.66 1.66 0 0 1-1.657-1.662v-3.959a.5.5 0 0 0-.5-.5v-6.92a.5.5 0 0 0 .5-.5V89.04a.5.5 0 0 0-.5-.5v-6.919a.5.5 0 0 0 .5-.5v-3.96a1.66 1.66 0 0 1 1.657-1.661h4.14a.5.5 0 0 0 .5-.5h7.281a.5.5 0 0 0 .5.5h8.281a.5.5 0 0 0 .5-.5h7.282a.5.5 0 0 0 .5.5h8.281a.5.5 0 0 0 .5-.5h7.281Z"}),s.jsxs("g",{filter:"url(#f)",children:[s.jsx("path",{fill:"url(#g)",d:"M228.294 65h-53.951a2.342 2.342 0 0 0-2.342 2.342v34.316a2.343 2.343 0 0 0 2.342 2.342h53.951a2.343 2.343 0 0 0 2.342-2.342V67.342A2.342 2.342 0 0 0 228.294 65Z"}),s.jsx("path",{stroke:"url(#h)",strokeMiterlimit:10,d:"M174.343 65.5h53.951c1.017 0 1.842.825 1.842 1.842v34.316a1.842 1.842 0 0 1-1.842 1.842h-53.951a1.842 1.842 0 0 1-1.842-1.842V67.342c0-1.017.825-1.842 1.842-1.842Z"})]}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M208.014 75.77a1.743 1.743 0 1 0 0-3.484 1.743 1.743 0 0 0 0 3.485ZM214.505 75.77a1.743 1.743 0 1 0 0-3.484 1.743 1.743 0 0 0 0 3.485Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M220.995 75.77a1.743 1.743 0 1 0 0-3.486 1.743 1.743 0 0 0 0 3.487Z"}),s.jsx("path",{fill:"#9DA2A5",d:"M172.454 86.568h-5.836a.486.486 0 1 1 0-.972h5.836a.486.486 0 1 1 0 .972ZM160.175 86.084l3.255-3.255a.486.486 0 1 0-.688-.688l-3.599 3.6a.486.486 0 0 0 0 .687l3.593 3.594a.486.486 0 1 0 .688-.688l-3.249-3.25ZM176.486 86.568h5.836a.487.487 0 1 0 0-.972h-5.836a.486.486 0 1 0 0 .972ZM186.486 86.568h5.836a.487.487 0 1 0 0-.972h-5.836a.486.486 0 1 0 0 .972Z"}),s.jsx("path",{fill:"url(#i)",d:"M200.891 82.242a3.89 3.89 0 1 0 0 7.782 3.89 3.89 0 0 0 0-7.782Z"}),s.jsxs("g",{filter:"url(#j)",children:[s.jsx("path",{fill:"url(#k)",d:"M86.138 62h-67.22A2.918 2.918 0 0 0 16 64.918v42.756a2.918 2.918 0 0 0 2.918 2.918h67.22a2.918 2.918 0 0 0 2.918-2.918V64.918A2.918 2.918 0 0 0 86.138 62Z"}),s.jsx("path",{stroke:"url(#l)",strokeMiterlimit:10,d:"M18.918 62.5h67.22a2.418 2.418 0 0 1 2.418 2.418v42.756a2.418 2.418 0 0 1-2.418 2.418h-67.22a2.418 2.418 0 0 1-2.418-2.418V64.918a2.418 2.418 0 0 1 2.418-2.418Z"})]}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M60.87 75.42a2.172 2.172 0 1 0 0-4.344 2.172 2.172 0 0 0 0 4.343ZM68.958 75.42a2.172 2.172 0 1 0 0-4.344 2.172 2.172 0 0 0 0 4.343Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M77.043 75.42a2.172 2.172 0 1 0 0-4.344 2.172 2.172 0 0 0 0 4.343Z"}),s.jsx("path",{fill:"#9DA2A5",d:"M101.546 88.596h5.836a.486.486 0 1 1 0 .972h-5.836a.486.486 0 1 1 0-.972ZM80.158 88.596h5.836a.486.486 0 1 1 0 .972h-5.836a.486.486 0 1 1 0-.972ZM96.71 88.596h-5.836a.486.486 0 1 0 0 .972h5.836a.486.486 0 1 0 0-.972ZM59.158 88.596h5.836a.486.486 0 1 1 0 .972h-5.836a.486.486 0 1 1 0-.972ZM113.825 89.08l-3.255 3.255a.486.486 0 1 0 .688.688l3.599-3.6a.486.486 0 0 0 0-.687l-3.593-3.593a.486.486 0 1 0-.688.687l3.249 3.25ZM75.322 88.596h-5.836a.486.486 0 1 0 0 .972h5.836a.486.486 0 1 0 0-.972Z"}),s.jsx("path",{fill:"#2479E9",d:"M50 93a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z"}),s.jsxs("defs",{children:[s.jsxs("linearGradient",{id:"a",x1:121.189,x2:121.189,y1:125.689,y2:137.23,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"gray"}),s.jsx("stop",{offset:1,stopColor:"#56585D"})]}),s.jsxs("linearGradient",{id:"b",x1:121.277,x2:121.277,y1:22,y2:125.984,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"gray"}),s.jsx("stop",{offset:1,stopColor:"#56585D"})]}),s.jsxs("linearGradient",{id:"d",x1:125.902,x2:143.647,y1:11.965,y2:56.345,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#383838"}),s.jsx("stop",{offset:1,stopColor:"#1D1D1D"})]}),s.jsxs("linearGradient",{id:"e",x1:124.29,x2:159.738,y1:23.904,y2:64.958,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5F5F5F"}),s.jsx("stop",{offset:0,stopColor:"#575757"}),s.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),s.jsxs("linearGradient",{id:"g",x1:179.146,x2:193.388,y1:67.38,y2:102.999,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#383838"}),s.jsx("stop",{offset:1,stopColor:"#1D1D1D"})]}),s.jsxs("linearGradient",{id:"h",x1:177.852,x2:206.302,y1:76.962,y2:109.912,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5F5F5F"}),s.jsx("stop",{offset:0,stopColor:"#575757"}),s.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),s.jsxs("linearGradient",{id:"i",x1:200.891,x2:193.185,y1:90.023,y2:82.01,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#F4B40F"}),s.jsx("stop",{offset:1,stopColor:"#EFAA23"})]}),s.jsxs("linearGradient",{id:"k",x1:24.902,x2:42.647,y1:64.965,y2:109.345,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#383838"}),s.jsx("stop",{offset:1,stopColor:"#1D1D1D"})]}),s.jsxs("linearGradient",{id:"l",x1:23.29,x2:58.738,y1:76.904,y2:117.958,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5F5F5F"}),s.jsx("stop",{offset:0,stopColor:"#575757"}),s.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),s.jsxs("filter",{id:"c",width:105.056,height:80.592,x:101,y:0,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[s.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.jsx("feOffset",{dy:7}),s.jsx("feGaussianBlur",{stdDeviation:8}),s.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),s.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_807_102718"}),s.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_807_102718",result:"shape"})]}),s.jsxs("filter",{id:"f",width:90.635,height:71,x:156.001,y:56,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[s.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.jsx("feOffset",{dy:7}),s.jsx("feGaussianBlur",{stdDeviation:8}),s.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),s.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_807_102718"}),s.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_807_102718",result:"shape"})]}),s.jsxs("filter",{id:"j",width:105.056,height:80.592,x:0,y:53,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[s.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.jsx("feOffset",{dy:7}),s.jsx("feGaussianBlur",{stdDeviation:8}),s.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),s.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_807_102718"}),s.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_807_102718",result:"shape"})]})]})]}),Ve={WINDOW_MANAGEMENT:"window-management",NOTIFICATIONS:"notifications"},Lt={[Ve.WINDOW_MANAGEMENT]:{heading:"Allow Window Management",description:"io.Connect Browser requires permission to arrange windows on your desktop.",guidelines:{default:"To allow window management, click the icon to the left of the address bar."},label:"Allow window management",Image:_c,openPermissionsPrompt:({handleDeferredPermission:e,handlePermissionsPromptClose:t})=>{window.getScreenDetails().catch(async()=>{const{state:n}=await navigator.permissions.query({name:Ve.WINDOW_MANAGEMENT});n==="prompt"&&e()}).finally(t)}},[Ve.NOTIFICATIONS]:{heading:"Allow Browser Notifications",description:`io.Connect Browser requires permission to send notifications to the desktop.
42
+ This won't allow any other browser notifications.`,guidelines:{default:"To allow browser notifications, click the icon to the left of the address bar.",edge:'To allow browser notifications, click the icon to the left of the address bar, or the "Bell" icon to the right of the address bar.'},label:"Allow browser notifications",Image:Tc,openPermissionsPrompt:({handleDeferredPermission:e,handlePermissionsPromptClose:t})=>{Notification.requestPermission().then(async()=>{const{state:n}=await navigator.permissions.query({name:Ve.NOTIFICATIONS});n==="prompt"&&e()}).finally(t)}}},Rc={edgeNotificationsPermissionTimeout:15e3};const zn=({children:e,description:t,heading:n,Image:r,title:o})=>s.jsxs("div",{className:"permissions-card",children:[o&&s.jsx("h1",{className:"permissions-card-title",children:o}),r&&s.jsx("div",{className:"permissions-card-image",children:s.jsx(r,{})}),n&&s.jsx("h3",{className:"permissions-card-heading",children:n}),s.jsx("p",{className:"permissions-card-description",children:t}),e]}),Ic=({isActiveItem:e=()=>!1,permissionStatuses:t})=>s.jsx("ul",{className:"permissions-list",children:Object.entries(Lt).map(([n,r],o)=>{const i=e(n),a=t.find(({stableName:c})=>c===n);return s.jsxs("li",{className:J("permissions-list-item",i&&"active"),children:[s.jsx("div",{children:a?.state==="granted"?s.jsx(le,{name:"check"}):s.jsxs(s.Fragment,{children:[s.jsx("span",{className:i?"icon-arrow":""}),s.jsxs("span",{children:[o+1,"."]})]})}),r.label]},n)})}),Mc=({onReopenPromptClick:e})=>{const t=s.jsxs(s.Fragment,{children:['Please, click "Allow" when the browser prompt appears.',s.jsx("br",{}),s.jsxs("strong",{children:["If a browser prompt doesn't appear, click the icon to the left of the",s.jsx("br",{}),"address bar to manually grant the permission."]})]});return s.jsx(zn,{description:t,Image:kc,title:"Something went wrong!",children:s.jsx(Ot,{className:"g42-btn-primary permissions-prompt-button",onClick:e,children:"Reopen the Prompt"})})},Dc=()=>Promise.all(Object.values(Ve).map(async e=>{const t=await navigator.permissions.query({name:e});return t.stableName=e,t})),Do=y.createContext(void 0),Ct=()=>{const e=y.useContext(Do);if(e===void 0)throw new Error("useIOConnectHome must be used within an IOConnectHomeProvider");return e},Lc=({children:e})=>{const[t,n]=y.useState([]),r=t.length===0,o={isDenied:!r&&t.some(({state:a})=>a==="denied"),isLoading:r,isSetupCompleted:!r&&t.every(({state:a})=>a==="granted"),statuses:t},i=y.useRef(!1);return y.useEffect(()=>{let a=!1;const c=Dc().then(l=>{if(a)return;n(l);const f=[];let p=!1;return l.forEach((g,u)=>{const h=m=>{if(a||!m.target||p)return;const d=m.target;if(d.state==="prompt"||d.state==="denied"&&i.current)return p=!0,window.location.reload();n(E=>[...E.slice(0,u),d,...E.slice(u+1)])};g.addEventListener("change",h),f.push(()=>g.removeEventListener("change",h))}),f});return()=>{a=!0,c.then(l=>{l?.forEach(f=>f())})}},[]),y.useEffect(()=>{i.current=o.isSetupCompleted},[o.isSetupCompleted]),s.jsx(Do.Provider,{value:{permission:o},children:e})},Lo=({deniedPermissionName:e})=>{const{permission:t}=Ct(),r=so().name?.toLowerCase()||"",o=Object.values(t.statuses).filter(a=>a.stableName===e||a.state==="denied"),i=s.jsxs(s.Fragment,{children:["The current browser settings block critical functionalities of io.Connect Browser.",s.jsx("br",{}),"To enable io.Connect Browser to operate properly, you must grant browser permissions manually."]});return s.jsx(zn,{description:i,Image:Ac,title:"Setup Was Unsuccessful",children:s.jsx("ul",{className:"permissions-guidelines-list",children:o.map((a,c)=>s.jsx("li",{children:Lt[a.stableName].guidelines[r]||Lt[a.stableName].guidelines.default},c))})})},Fc=({edgeNotificationsPermissionTimeout:e,isNotificationsPermissionPromptOpen:t})=>{const{name:n}=so(),{permission:r}=Ct(),[o,i]=y.useState(!1);return y.useEffect(()=>{if(!t||n!=="Edge")return;const a=setTimeout(()=>i(!0),e);return()=>clearTimeout(a)},[n,e,t]),y.useEffect(()=>{if(!o)return;r.statuses.some(({stableName:c,state:l})=>c===Ve.NOTIFICATIONS&&l==="granted")&&i(!1)},[o,r.statuses]),{hasEdgeNotificationsPermissionError:o}},$c=({settings:e})=>{const{permission:t}=Ct(),[n,r]=y.useState(!1),[o,i]=y.useState(!1),a=t.statuses.find(({state:g})=>g==="prompt"),{hasEdgeNotificationsPermissionError:c}=Fc({edgeNotificationsPermissionTimeout:e.edgeNotificationsPermissionTimeout,isNotificationsPermissionPromptOpen:o&&a?.stableName===Ve.NOTIFICATIONS});if(!a||t.isDenied)throw new Error('The "PermissionSteps" component should not be used in case there is no pending permission or there is a denied permission.');if(c)return s.jsx(Lo,{deniedPermissionName:"notifications"});const l=Lt[a.stableName],f=()=>{i(!0),l.openPermissionsPrompt({handleDeferredPermission:()=>r(!0),handlePermissionsPromptClose:()=>i(!1)})},p=()=>{r(!1),f()};return n?s.jsx(Mc,{onReopenPromptClick:p}):s.jsxs(zn,{description:l.description,heading:l.heading,Image:l.Image,title:"First-Time User Setup",children:[s.jsx(Ic,{isActiveItem:g=>g===a.stableName,permissionStatuses:t.statuses}),s.jsx("p",{className:"mb-12 description",children:'Click "Allow" when the prompt appears.'}),s.jsx(Ot,{className:"g42-btn-primary permissions-prompt-button",disabled:o,onClick:f,children:"Open Permission Prompt"}),o&&s.jsx("span",{className:"loader"})]})},Bc=({settings:e})=>{const{permission:t}=Ct();return t.isLoading?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"mb-32",children:"Checking browser permissions ..."}),s.jsx("div",{className:"loader"})]}):t.isDenied?s.jsx(Lo,{}):s.jsx($c,{settings:e})},Hc=({components:{Logo:e=Zt}={},settings:t={}})=>s.jsx("div",{className:"permissions-setup",children:s.jsxs("div",{className:"permissions-wrapper",children:[s.jsx(e,{className:"mb-32"}),s.jsx(Bc,{settings:{...Rc,...t}})]})});exports.ApplicationsSection=mo;exports.BaseSection=Vt;exports.BaseSectionHeader=Kr;exports.BaseSectionItem=ao;exports.Button=xt;exports.ButtonGroup=Wt;exports.ContextMenu=zr;exports.DropdownButton=In;exports.FavoritesSection=vo;exports.IOConnectHomeProvider=Lc;exports.Icon=le;exports.ImgIcon=Mn;exports.Launchpad=Io;exports.LaunchpadSlidePanel=Nc;exports.LayoutsPanel=ko;exports.Login=Cc;exports.LoginAuth0=jc;exports.LoginLoader=Ec;exports.Logo=Sc;exports.Notification=Ao;exports.NotificationsBadge=Zn;exports.NotificationsIcon=_o;exports.NotificationsPanel=Ro;exports.PermissionsSetup=Hc;exports.ProfileIcon=go;exports.ProfileSettings=wo;exports.SearchBar=Oo;exports.SearchResults=Co;exports.Section=Ut;exports.SettingsCard=yo;exports.SlidePanel=Mo;exports.SupportCard=bo;exports.WorkspacesSection=Eo;exports.useFavoriteEntities=Bt;exports.useIOConnectHome=Ct;
43
43
  //# sourceMappingURL=index.js.map