@interopio/home-ui-react 1.2.9 → 1.3.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,8 +1,8 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),y=require("react"),ee=require("@interopio/react-hooks"),ht=require("@interopio/workspaces-ui-react"),kt=require("react-dom");function jo(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const Ze=jo(y),Qi=jo(kt);const _t=t=>"items"in t,Ue={APPLICATION:"application",WORKSPACE:"workspace",LAYOUT:"layout"},Eo=[{name:"openInNewWindow",displayName:"Open in New Window"},{name:"openInNewWorkspace",displayName:"Open in New Workspace"}],So=[{name:"openInNewFrame",displayName:"Open in New Frame"},{name:"delete",displayName:"Delete"}],At={ASCENDING:"ascending",DESCENDING:"descending",DISABLED:"disabled"},an=new Intl.Collator(void 0,{sensitivity:"base"}),ko=(t,e)=>an.compare(t.title,e.title),To=(t,e)=>an.compare(e.title,t.title),sr=t=>{const{items:e,sortOrder:n,ascendingCompare:r,descendingCompare:o}=t;if(n===At.DISABLED)return e;const i=n===At.ASCENDING?r:o;return[...e].sort(i)},Ln=(t,e,n,r)=>{const{isFolderCollapsible:o,...i}=r,a="/",[c,...l]=n.split(a),u=t.findIndex(p=>_t(p)&&p.title===c),d=u!==-1?t[u]:null;return d?[...t.slice(0,u),{...d,items:l.length>0?Ln(d.items,e,l.join(a),r):[...d.items,e]},...t.slice(u+1)]:[...t,{id:c,title:c,items:l.length>0?Ln([],e,l.join(a),r):[e],isCollapsible:o,...i}]},Po=t=>t.title||t.name,Xt=t=>{const e=Po(t),n=t.userProperties.folder;return n?`${n}/${e}`:e},es=(t,e)=>an.compare(Xt(t),Xt(e)),ts=(t,e)=>an.compare(Xt(e),Xt(t)),ns=(t,e,n)=>{const{isSectionCollapsible:r,sortOrder:o=At.ASCENDING,...i}=n;return{id:"applications-section",title:"All Applications",items:sr({items:t,sortOrder:o,ascendingCompare:es,descendingCompare:ts}).reduce((l,u)=>{const d={id:u.name,title:Po(u),description:u.caption,type:Ue.APPLICATION,iconSrc:u.icon,isOpen:e[u.name]?.length>0,contextMenuActions:Eo},p=u.userProperties.folder;return p?Ln(l,d,p,n):[...l,d]},[]),isCollapsible:r,...i}};var rs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Mn={},os={get exports(){return Mn},set exports(t){Mn=t}};/*!
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),y=require("react"),ee=require("@interopio/react-hooks"),mt=require("@interopio/workspaces-ui-react"),kt=require("react-dom");function Io(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const $e=Io(y),es=Io(kt);const _t=t=>"items"in t,We={APPLICATION:"application",WORKSPACE:"workspace",LAYOUT:"layout"},_o=[{name:"openInNewWindow",displayName:"Open in New Window"},{name:"openInNewWorkspace",displayName:"Open in New Workspace"}],Po=[{name:"openInNewFrame",displayName:"Open in New Frame"},{name:"delete",displayName:"Delete"}],At={ASCENDING:"ascending",DESCENDING:"descending",DISABLED:"disabled"},ln=new Intl.Collator(void 0,{sensitivity:"base"}),No=(t,e)=>ln.compare(t.title,e.title),Ao=(t,e)=>ln.compare(e.title,t.title),ar=t=>{const{items:e,sortOrder:n,ascendingCompare:r,descendingCompare:o}=t;if(n===At.DISABLED)return e;const i=n===At.ASCENDING?r:o;return[...e].sort(i)},Mn=(t,e,n,r)=>{const{isFolderCollapsible:o,...i}=r,a="/",[c,...l]=n.split(a),u=t.findIndex(p=>_t(p)&&p.title===c),d=u!==-1?t[u]:null;return d?[...t.slice(0,u),{...d,items:l.length>0?Mn(d.items,e,l.join(a),r):[...d.items,e]},...t.slice(u+1)]:[...t,{id:c,title:c,items:l.length>0?Mn([],e,l.join(a),r):[e],isCollapsible:o,...i}]},Ro=t=>t.title||t.name,Qt=t=>{const e=Ro(t),n=t.userProperties.folder;return n?`${n}/${e}`:e},ts=(t,e)=>ln.compare(Qt(t),Qt(e)),ns=(t,e)=>ln.compare(Qt(e),Qt(t)),rs=(t,e,n)=>{const{isSectionCollapsible:r,sortOrder:o=At.ASCENDING,...i}=n;return{id:"applications-section",title:"All Applications",items:ar({items:t,sortOrder:o,ascendingCompare:ts,descendingCompare:ns}).reduce((l,u)=>{const d={id:u.name,title:Ro(u),description:u.caption,type:We.APPLICATION,iconSrc:u.icon,isOpen:e[u.name]?.length>0,contextMenuActions:_o},p=u.userProperties.folder;return p?Mn(l,d,p,n):[...l,d]},[]),isCollapsible:r,...i}};var os=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Dn={},is={get exports(){return Dn},set exports(t){Dn=t}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */(function(t){(function(){var e={}.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)e.call(i,l)&&i[l]&&r.push(l)}}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(os);const G=Mn;const _o=t=>t.key==="Enter"||t.key===" ",mt=(t,e)=>typeof t>"u"?{}:{tabIndex:0,onClick:t,onKeyDown:n=>{_o(n)&&(n.preventDefault(),t?.(n)),e?.(n)}},Io=({event:t,currentIndex:e,moveFocus:n,min:r,max:o,onClose:i})=>{switch(t.key){case"ArrowUp":{n(Math.max(e-1,r));break}case"ArrowDown":{n(Math.min(e+1,o));break}case"Home":{n(r);break}case"End":{n(o);break}case"Escape":{if(i){i();break}return}default:return}t.stopPropagation(),t.preventDefault()},oe=y.forwardRef((t,e)=>{const{name:n,size:r=16,className:o,handleClick:i,...a}=t;return s.jsx("span",{...mt(i),className:G(o,"icon",{[`icon-box-${r}`]:r}),ref:e,...a,children:s.jsx("i",{className:G({[`icon-${n}`]:n})})})});function ar(t){const{size:e=16,alt:n="Image icon",className:r,...o}=t;return s.jsx("img",{alt:n,className:G(r,"icon",{[`icon-box-${e}`]:e}),...o})}const No=t=>{const{className:e,iconSrc:n,iconName:r="folder",title:o,isOpen:i,showCollapseIcon:a,showHoverIndicator:c=!1,...l}=t;return s.jsxs("h4",{className:G(e,"io-list-header"),"data-testid":"base-section-header",...l,children:[c&&s.jsx(oe,{size:8,name:""}),n?s.jsx(ar,{className:"section-img-icon",src:n,alt:`${o} icon`,size:14,"data-testid":"img-icon"}):s.jsx(oe,{className:"section-icon",name:r,"data-testid":"icon"}),o,a&&s.jsx(oe,{className:G("collapse-icon",!i&&"collapsed"),name:"chevron-down",size:14,"data-testid":"collapse-icon"})]})},is=()=>{const[t,e]=y.useState([]),n=y.useContext(ee.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=n.appManager.onAppAdded(c=>{c.userProperties.hidden||e(l=>[...l,c])}),o=n.appManager.onAppChanged(c=>{e(l=>[...l.filter(u=>u.name!==c.name),c])}),i=n.appManager.onAppRemoved(c=>{e(l=>l.filter(u=>u.name!==c.name))}),a=[r,i,o];return()=>a.forEach(c=>c())},[n]),t},ss=()=>{const[t,e]=y.useState({}),n=y.useContext(ee.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=n.appManager.onInstanceStarted(a=>{e(c=>{const l=c[a.application.name]??[];return{...c,[a.application.name]:[...l,a.id]}})}),o=n.appManager.onInstanceStopped(a=>{e(c=>({...c,[a.application.name]:c[a.application.name].filter(l=>l!==a.id)}))}),i=[r,o];return()=>i.forEach(a=>a())},[n]),t},Ao="interopio_home_ui_selected_layout",as="interopio_home_ui_auth0_validation_error",cs="interopio_home_ui_favorite_entities",ls="interopio_home_ui_user",Ft=(t,e,n)=>{const[r,o]=y.useState(()=>{try{const c=window[t].getItem(e);return c?JSON.parse(c):null}catch(c){return console.log(c),null}}),i=`${t}-${e}`;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[t].removeItem(e),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 u=l.result;o(u),window[t].setItem(e,JSON.stringify(u)),window.dispatchEvent(new CustomEvent(i,{detail:u}))}catch(l){console.log(l)}},[e,t,i,n]);return[r,a]};var le=function(t){return{ok:!0,result:t}},ae=function(t){return{ok:!1,error:t}},us=function(t){return t.ok===!0?Promise.resolve(t.result):Promise.reject(t.error)},ds=function(t,e){return e.ok===!0?e.result:t},fs=function(t){if(t.ok===!0)return t.result;throw t.error},ps=function(t,e){return e.ok===!0?le(t(e.result)):e},Ir=function(t,e,n){return e.ok===!1?e:n.ok===!1?n:le(t(e.result,n.result))},Cn=function(t,e){return e.ok===!0?e:ae(t(e.error))},hs=function(t,e){return e.ok===!0?t(e.result):e};/*! *****************************************************************************
5
+ */(function(t){(function(){var e={}.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)e.call(i,l)&&i[l]&&r.push(l)}}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(is);const G=Dn;const Lo=t=>t.key==="Enter"||t.key===" ",vt=(t,e)=>typeof t>"u"?{}:{tabIndex:0,onClick:t,onKeyDown:n=>{Lo(n)&&(n.preventDefault(),t?.(n)),e?.(n)}},Mo=({event:t,currentIndex:e,moveFocus:n,min:r,max:o,onClose:i})=>{switch(t.key){case"ArrowUp":{n(Math.max(e-1,r));break}case"ArrowDown":{n(Math.min(e+1,o));break}case"Home":{n(r);break}case"End":{n(o);break}case"Escape":{if(i){i();break}return}default:return}t.stopPropagation(),t.preventDefault()},oe=y.forwardRef((t,e)=>{const{name:n,size:r=16,className:o,handleClick:i,...a}=t;return s.jsx("span",{...vt(i),className:G(o,"icon",{[`icon-box-${r}`]:r}),ref:e,...a,children:s.jsx("i",{className:G({[`icon-${n}`]:n})})})});function cr(t){const{size:e=16,alt:n="Image icon",className:r,...o}=t;return s.jsx("img",{alt:n,className:G(r,"icon",{[`icon-box-${e}`]:e}),...o})}const Do=t=>{const{className:e,iconSrc:n,iconName:r="folder",title:o,isOpen:i,showCollapseIcon:a,showHoverIndicator:c=!1,...l}=t;return s.jsxs("h4",{className:G(e,"io-list-header"),"data-testid":"base-section-header",...l,children:[c&&s.jsx(oe,{size:8,name:""}),n?s.jsx(cr,{className:"section-img-icon",src:n,alt:`${o} icon`,size:14,"data-testid":"img-icon"}):s.jsx(oe,{className:"section-icon",name:r,"data-testid":"icon"}),o,a&&s.jsx(oe,{className:G("collapse-icon",!i&&"collapsed"),name:"chevron-down",size:14,"data-testid":"collapse-icon"})]})},ss=()=>{const[t,e]=y.useState([]),n=y.useContext(ee.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=n.appManager.onAppAdded(c=>{c.userProperties.hidden||e(l=>[...l,c])}),o=n.appManager.onAppChanged(c=>{e(l=>[...l.filter(u=>u.name!==c.name),c])}),i=n.appManager.onAppRemoved(c=>{e(l=>l.filter(u=>u.name!==c.name))}),a=[r,i,o];return()=>a.forEach(c=>c())},[n]),t},as=()=>{const[t,e]=y.useState({}),n=y.useContext(ee.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=n.appManager.onInstanceStarted(a=>{e(c=>{const l=c[a.application.name]??[];return{...c,[a.application.name]:[...l,a.id]}})}),o=n.appManager.onInstanceStopped(a=>{e(c=>({...c,[a.application.name]:c[a.application.name].filter(l=>l!==a.id)}))}),i=[r,o];return()=>i.forEach(a=>a())},[n]),t},cs=()=>{y.useEffect(()=>{if(!window.iobrowser?.platformStarted)return;const t=e=>{e.preventDefault(),e.returnValue=!0};return window.addEventListener("beforeunload",t),()=>window.removeEventListener("beforeunload",t)},[])},Fo="interopio_home_ui_selected_layout",ls="interopio_home_ui_auth0_validation_error",us="interopio_home_ui_favorite_entities",ds="interopio_home_ui_user",Ft=(t,e,n)=>{const[r,o]=y.useState(()=>{try{const c=window[t].getItem(e);return c?JSON.parse(c):null}catch(c){return console.log(c),null}}),i=`${t}-${e}`;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[t].removeItem(e),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 u=l.result;o(u),window[t].setItem(e,JSON.stringify(u)),window.dispatchEvent(new CustomEvent(i,{detail:u}))}catch(l){console.log(l)}},[e,t,i,n]);return[r,a]};var le=function(t){return{ok:!0,result:t}},ae=function(t){return{ok:!1,error:t}},fs=function(t){return t.ok===!0?Promise.resolve(t.result):Promise.reject(t.error)},ps=function(t,e){return e.ok===!0?e.result:t},hs=function(t){if(t.ok===!0)return t.result;throw t.error},ms=function(t,e){return e.ok===!0?le(t(e.result)):e},Lr=function(t,e,n){return e.ok===!1?e:n.ok===!1?n:le(t(e.result,n.result))},On=function(t,e){return e.ok===!0?e:ae(t(e.error))},vs=function(t,e){return e.ok===!0?t(e.result):e};/*! *****************************************************************************
6
6
  Copyright (c) Microsoft Corporation.
7
7
 
8
8
  Permission to use, copy, modify, and/or distribute this software for any
@@ -15,32 +15,32 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15
15
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
16
16
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17
17
  PERFORMANCE OF THIS SOFTWARE.
18
- ***************************************************************************** */var Dn=function(){return Dn=Object.assign||function(e){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)&&(e[i]=n[i])}return e},Dn.apply(this,arguments)};function ms(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function Fn(t,e){if(t===e||t===null&&e===null)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="object"){if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!Fn(t[n],e[n]))return!1;return!0}var r=Object.keys(t);if(r.length!==Object.keys(e).length)return!1;for(var n=0;n<r.length;n++)if(!e.hasOwnProperty(r[n])||!Fn(t[r[n]],e[r[n]]))return!1;return!0}}var Tt=function(t){return Array.isArray(t)},Bt=function(t){return typeof t=="object"&&t!==null&&!Tt(t)},vs=function(t){switch(typeof t){case"string":return"a string";case"number":return"a number";case"boolean":return"a boolean";case"undefined":return"undefined";case"object":return t instanceof Array?"an array":t===null?"null":"an object";default:return JSON.stringify(t)}},De=function(t,e){return"expected "+t+", got "+vs(e)},Ot=function(t){return t.map(function(e){return typeof e=="string"?"."+e:"["+e+"]"}).join("")},jt=function(t,e){var n=e.at,r=ms(e,["at"]);return Dn({at:t+(n||"")},r)},ce=function(){function t(e){var n=this;this.decode=e,this.run=function(r){return Cn(function(o){return{kind:"DecoderError",input:r,at:"input"+(o.at||""),message:o.message||""}},n.decode(r))},this.runPromise=function(r){return us(n.run(r))},this.runWithException=function(r){return fs(n.run(r))},this.map=function(r){return new t(function(o){return ps(r,n.decode(o))})},this.andThen=function(r){return new t(function(o){return hs(function(i){return r(i).decode(o)},n.decode(o))})},this.where=function(r,o){return n.andThen(function(i){return r(i)?t.succeed(i):t.fail(o)})}}return t.string=function(){return new t(function(e){return typeof e=="string"?le(e):ae({message:De("a string",e)})})},t.number=function(){return new t(function(e){return typeof e=="number"?le(e):ae({message:De("a number",e)})})},t.boolean=function(){return new t(function(e){return typeof e=="boolean"?le(e):ae({message:De("a boolean",e)})})},t.constant=function(e){return new t(function(n){return Fn(n,e)?le(e):ae({message:"expected "+JSON.stringify(e)+", got "+JSON.stringify(n)})})},t.object=function(e){return new t(function(n){if(Bt(n)&&e){var r={};for(var o in e)if(e.hasOwnProperty(o)){var i=e[o].decode(n[o]);if(i.ok===!0)i.result!==void 0&&(r[o]=i.result);else return n[o]===void 0?ae({message:"the key '"+o+"' is required but was not present"}):ae(jt("."+o,i.error))}return le(r)}else return Bt(n)?le(n):ae({message:De("an object",n)})})},t.array=function(e){return new t(function(n){if(Tt(n)&&e){var r=function(o,i){return Cn(function(a){return jt("["+i+"]",a)},e.decode(o))};return n.reduce(function(o,i,a){return Ir(function(c,l){return c.concat([l])},o,r(i,a))},le([]))}else return Tt(n)?le(n):ae({message:De("an array",n)})})},t.tuple=function(e){return new t(function(n){if(Tt(n)){if(n.length!==e.length)return ae({message:"expected a tuple of length "+e.length+", got one of length "+n.length});for(var r=[],o=0;o<e.length;o++){var i=e[o].decode(n[o]);if(i.ok)r[o]=i.result;else return ae(jt("["+o+"]",i.error))}return le(r)}else return ae({message:De("a tuple of length "+e.length,n)})})},t.union=function(e,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return t.oneOf.apply(t,[e,n].concat(r))},t.intersection=function(e,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return new t(function(i){return[e,n].concat(r).reduce(function(a,c){return Ir(Object.assign,a,c.decode(i))},le({}))})},t.anyJson=function(){return new t(function(e){return le(e)})},t.unknownJson=function(){return new t(function(e){return le(e)})},t.dict=function(e){return new t(function(n){if(Bt(n)){var r={};for(var o in n)if(n.hasOwnProperty(o)){var i=e.decode(n[o]);if(i.ok===!0)r[o]=i.result;else return ae(jt("."+o,i.error))}return le(r)}else return ae({message:De("an object",n)})})},t.optional=function(e){return new t(function(n){return n==null?le(void 0):e.decode(n)})},t.oneOf=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new t(function(r){for(var o=[],i=0;i<e.length;i++){var a=e[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 ae({message:'expected a value matching one of the decoders, got the errors ["'+c+'"]'})})},t.withDefault=function(e,n){return new t(function(r){return le(ds(e,n.decode(r)))})},t.valueAt=function(e,n){return new t(function(r){for(var o=r,i=0;i<e.length;i++){if(o===void 0)return ae({at:Ot(e.slice(0,i+1)),message:"path does not exist"});if(typeof e[i]=="string"&&!Bt(o))return ae({at:Ot(e.slice(0,i+1)),message:De("an object",o)});if(typeof e[i]=="number"&&!Tt(o))return ae({at:Ot(e.slice(0,i+1)),message:De("an array",o)});o=o[e[i]]}return Cn(function(a){return o===void 0?{at:Ot(e),message:"path does not exist"}:jt(Ot(e),a)},n.decode(o))})},t.succeed=function(e){return new t(function(n){return le(e)})},t.fail=function(e){return new t(function(n){return ae({message:e})})},t.lazy=function(e){return new t(function(n){return e().decode(n)})},t}(),Un=ce.string,gs=ce.number,Ro=ce.boolean,he=ce.anyJson;ce.unknownJson;var Rt=ce.constant,me=ce.object,Lo=ce.array;ce.tuple;ce.dict;var Z=ce.optional,Jt=ce.oneOf;ce.union;ce.intersection;ce.withDefault;ce.valueAt;ce.succeed;var ys=ce.fail;ce.lazy;const de=Un().where(t=>t.length>0,"Expected a non-empty string"),bs=gs().where(t=>t>=0,"Expected a non-negative number"),ke=(t,e)=>{const n=typeof t;return n==="function"?he():ys(`The provided argument as ${e} should be of type function, provided: ${typeof n}`)},ws=me({name:de,displayName:Z(de),disabled:Z(Ro())}),xs=me({id:de,title:de,description:Z(de),icon:Z(Un()),iconSrc:Z(Un()),contextMenuActions:Z(Lo(ws)),type:de}),Cs=Lo(xs),cn=()=>{const[t,e]=Ft("localStorage",cs,Cs),n=y.useMemo(()=>t||[],[t]);return{favoriteEntities:n,toggleFavorite:({isOpen:i,...a})=>{const c=n.find(u=>u.title===a.title&&u.type===a.type),l=c?n.filter(u=>u!==c):[a,...n];e(l)},removeFavorite:i=>{e(n.filter(a=>a.id!==i))}}},Mo=()=>{const[t,e]=y.useState(),n=y.useContext(ee.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=ht.getFrameId();n.workspaces?.waitForFrame(r).then(e).catch(o=>console.error("Failed to get current frame",{error:o}))},[n]),t},Os=()=>{const t=y.useContext(ee.IOConnectContext);return async e=>t.interop.methods().every(n=>n.name!==e?.method)?console.error("Interop method not found."):await t.interop.invoke(e.method,e.params,e.target).catch(n=>console.error({error:n}))},js=()=>{const[t,e]=y.useState([]),n=y.useContext(ee.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;e(u=>[...u,{name:c,type:l}])}),i=n.layouts.onRemoved(a=>{a.type!=="Global"||r||e(c=>c.filter(l=>l.name!==a.name))});return()=>{r=!0,o(),i()}},[n]),t},Do=()=>{const[t,e]=y.useState([]),n=y.useContext(ee.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=n.notifications.onRaised(i=>e(a=>[...a,i])),o=n.notifications.onClosed(i=>e(a=>a.filter(c=>c.id!==i.id)));return n.notifications.list().then(e).catch(console.error),()=>{r(),o()}},[n]),t},On=["None","Low","Medium","High","Critical"],Es={None:"#616161",Low:"#7AC70C",Medium:"#E0A900",High:"#E0474C",Critical:"#B8001E"},Wn={TIMESTAMP:"timestamp",SEVERITY:"severity"},Nr={key:Wn.TIMESTAMP,descending:!0},Ss=(t,e)=>[...t].sort((n,r)=>(e?-1:1)*((n.timestamp||0)-(r.timestamp||0))),ks=(t,e)=>{const n=On[0];return[...t].sort((r,o)=>{const i=On.indexOf(r.severity||n),a=On.indexOf(o.severity||n);return(e?-1:1)*(i-a)})},Ts={[Wn.TIMESTAMP]:Ss,[Wn.SEVERITY]:ks},Ps=()=>{const t=Do(),[e,n]=y.useState(Nr),{key:r,descending:o}=e,i=y.useMemo(()=>Ts[r](t,o),[t,r,o]);return{onNotificationsSort:y.useCallback(c=>{n(l=>({key:c,descending:l.key!==c?Nr.descending:!l.descending}))},[]),sortedNotifications:i}},Fo=()=>{const[t,e]=y.useState([]);return y.useEffect(()=>{const n=({key:i})=>{e(a=>a.includes(i)?a:a.concat(i))},r=i=>{e(a=>a.filter(c=>c!==i.key))},o=()=>{e([])};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)}},[]),t.length===1?t[0]:null},ln={CONTROL:"Control",SHIFT:"Shift"},Uo=()=>{const t=y.useContext(ee.IOConnectContext),e=Mo();return async(n,r)=>{const o=r===ln.CONTROL?{newFrame:!0}:{frameId:e?.id};return t.workspaces?.restoreWorkspace(n,o)}},cr=()=>{const t=y.useContext(ee.IOConnectContext);return y.useCallback(async(e,n)=>{if(t)try{await t.layouts.restore({name:e}),n?.({name:e})}catch(r){console.error(r)}},[t])},_s=t=>{const[e,n]=y.useState([]),[r,o]=y.useState(!0),i=y.useRef(null),a=y.useContext(ee.IOConnectContext);return y.useEffect(()=>{const c=a?.search;if(!c)return;const l=[],u=[];return(async p=>{o(!0),n([]);const f=await c.query({search:p.trim(),providerLimits:{maxResults:100,maxResultsPerType:5}});if(f===i.current)return;i.current=f;const h=f.onResults(g=>{g.results.forEach(w=>{u.find(O=>O.id===w.id&&O.type.name===w.type.name)||u.push(w)}),o(!1),n([...u])}),m=f.onCompleted(()=>{o(!1)}),v=f.onError(g=>{console.error(`Query failed. Provider: ${g.provider}; Error: ${g.error}`)});l.push(h,m,v)})(t),()=>{l.forEach(p=>p())}},[a,t]),{resultsToRender:e,isLoading:r}},Wo=()=>{const t=y.useContext(ee.IOConnectContext);return async(e,n)=>{const r=await t.workspaces?.getWorkspace(c=>c.isSelected===!0),o=r?.children[0];return n===ln.CONTROL||!r||o?.type==="window"?await t.appManager.application(e).start():await(o?.type==="group"?o:await(o||r).addGroup()).addWindow({appName:e})}},Is=()=>{const[t,e]=y.useState([]),n=y.useContext(ee.IOConnectContext);return y.useEffect(()=>{if(!n||!n.workspaces)return;let r=!1;const o=n.workspaces.layouts.onSaved(({name:a})=>{r||t.find(({id:c})=>c===a)||e(c=>[...c,{id:a,title:a}])}),i=n.workspaces.layouts.onRemoved(({name:a})=>{r||e(c=>c.filter(({title:l})=>l!==a))});return()=>{r=!0,[o,i].forEach(async a=>{try{(await a)()}catch(c){console.error(c)}})}},[n,t]),t},Ns=()=>{const[t,e]=y.useState({}),n=y.useContext(ee.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=[];return(async()=>{try{const o=await n.workspaces?.onWorkspaceOpened(a=>e(c=>({...c,[a.title]:[...c[a.title]||[],a.id]})));r.push(o);const i=await n.workspaces?.onWorkspaceClosed(({workspaceId:a})=>e(c=>{const l={...c};for(const u in l)if(l[u].includes(a)){l[u]=l[u].filter(d=>d!==a);break}return l}));r.push(i)}catch(o){console.error(o)}})(),()=>r.forEach(o=>o?.())},[n]),t},As=t=>{const{io:e,item:n}=t;e.appManager.application(n.id).start().catch(r=>{console.error("Failed to start application: ",{error:r})})},Rs=t=>{const{io:e,item:n,frame:r}=t;if(!e.workspaces)return;const o={type:"workspace",definition:{frame:r?{reuseFrameId:r.id}:{newFrame:!0}}},i=e.workspaces.getBuilder(o);i.addGroup().addWindow({appName:n.id}),i.create().catch(a=>{console.error("Failed to create workspace: ",{error:a})})},Ls={openInNewWindow:As,openInNewWorkspace:Rs},Ho=()=>{const t=y.useContext(ee.IOConnectContext),e=Mo();return(n,r)=>{Ls[r]({io:t,item:n,frame:e})}},Ms=t=>{const{io:e,item:n}=t;e.workspaces&&e.workspaces.restoreWorkspace(n.id,{newFrame:!0}).catch(r=>{console.error("Failed to open workspace in new frame: ",{error:r})})},Ds=async t=>{const{io:e,item:n,removeFavorite:r}=t;if(e.workspaces)try{await e.workspaces.layouts.delete(n.id),r(n.id)}catch(o){console.error("Failed to delete workspace: ",{error:o})}},Fs={openInNewFrame:Ms,delete:Ds},Vo=()=>{const t=y.useContext(ee.IOConnectContext),{removeFavorite:e}=cn();return(n,r)=>{Fs[r]({io:t,item:n,removeFavorite:e})}},Us=t=>{const{layout:e,setDefaultLayout:n}=t;n({name:e.name})},Ws=async t=>{const{io:e,layout:n}=t;try{await e.layouts.remove("Global",n.name)}catch(r){console.error("Failed to delete layout: ",{error:r})}},Hs={setAsDefault:Us,delete:Ws},Vs=()=>{const t=y.useContext(ee.IOConnectContext);return y.useCallback(async(n,r,o)=>{await Hs[r]({io:t,layout:n,setDefaultLayout:o})},[t])},zo=me({name:de}),Bo="Welcome",zs=5,Bs=t=>{const[e,n]=y.useState(null),[r,o]=Ft("sessionStorage",Ao,zo),i=y.useRef(!1),a=cr(),c=y.useContext(ee.IOConnectContext),l=y.useCallback(async({name:u})=>{try{await c.layouts.setDefaultGlobal(u),n({name:u})}catch(d){console.error("Failed to set default layout: ",{error:d})}},[c]);return y.useEffect(()=>{if(!c||!window.iobrowser?.platformStarted||i.current)return;(async()=>{i.current=!0;const d=await c.layouts.getDefaultGlobal()||await c.layouts.get(Bo,"Global");d&&(n({name:d.name}),r||(t(!0),await a(d.name,o),t(!1)))})()},[c,r,a,o,t]),{defaultLayout:e,selectedLayout:r,setDefaultLayout:l,setSelectedLayout:o}},Zo=y.createContext(void 0),rt=()=>{const t=y.useContext(Zo);if(t===void 0)throw new Error("useLaunchpadAPI must be used within a LaunchpadAPIProvider");return t},Zs=({children:t,setOpen:e,isOpen:n})=>{const[r,o]=y.useState(!1),{defaultLayout:i,selectedLayout:a,setDefaultLayout:c,setSelectedLayout:l}=Bs(o),d={close:y.useCallback(()=>e(!1),[e]),isOpen:n,defaultLayout:i,selectedLayout:a,setDefaultLayout:c,setSelectedLayout:l,isLayoutOperationBlocked:r,setIsLayoutOperationBlocked:o};return s.jsx(Zo.Provider,{value:d,children:t})},$o=()=>{const{isLayoutOperationBlocked:t,setIsLayoutOperationBlocked:e}=rt();return async n=>{if(!t){e(!0);try{await n()}catch(r){console.error(r)}e(!1)}}};var Qt={},$s={get exports(){return Qt},set exports(t){Qt=t}};(function(t,e){(function(n,r){var o="1.0.35",i="",a="?",c="function",l="undefined",u="object",d="string",p="major",f="model",h="name",m="type",v="vendor",g="version",w="architecture",j="console",O="mobile",C="tablet",b="smarttv",k="wearable",_="embedded",S=350,I="Amazon",R="Apple",H="ASUS",re="BlackBerry",te="Browser",se="Chrome",be="Edge",J="Firefox",ne="Google",xe="Huawei",pe="LG",E="Microsoft",P="Motorola",L="Opera",D="Samsung",N="Sharp",M="Sony",A="Xiaomi",F="Zebra",V="Facebook",$="Chromium OS",B="Mac OS",ie=function(z,q){var U={};for(var Q in z)q[Q]&&q[Q].length%2===0?U[Q]=q[Q].concat(z[Q]):U[Q]=z[Q];return U},T=function(z){for(var q={},U=0;U<z.length;U++)q[z[U].toUpperCase()]=z[U];return q},fe=function(z,q){return typeof z===d?Ce(q).indexOf(Ce(z))!==-1:!1},Ce=function(z){return z.toLowerCase()},ot=function(z){return typeof z===d?z.replace(/[^\d\.]/g,i).split(".")[0]:r},it=function(z,q){if(typeof z===d)return z=z.replace(/^\s\s*/,i),typeof q===l?z:z.substring(0,S)},He=function(z,q){for(var U=0,Q,ze,Ie,K,W,Ne;U<q.length&&!W;){var xn=q[U],_r=q[U+1];for(Q=ze=0;Q<xn.length&&!W&&xn[Q];)if(W=xn[Q++].exec(z),W)for(Ie=0;Ie<_r.length;Ie++)Ne=W[++ze],K=_r[Ie],typeof K===u&&K.length>0?K.length===2?typeof K[1]==c?this[K[0]]=K[1].call(this,Ne):this[K[0]]=K[1]:K.length===3?typeof K[1]===c&&!(K[1].exec&&K[1].test)?this[K[0]]=Ne?K[1].call(this,Ne,K[2]):r:this[K[0]]=Ne?Ne.replace(K[1],K[2]):r:K.length===4&&(this[K[0]]=Ne?K[3].call(this,Ne.replace(K[1],K[2])):r):this[K]=Ne||r;U+=2}},Ct=function(z,q){for(var U in q)if(typeof q[U]===u&&q[U].length>0){for(var Q=0;Q<q[U].length;Q++)if(fe(q[U][Q],z))return U===a?r:U}else if(fe(q[U],z))return U===a?r:U;return z},wn={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},_e={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"},qe={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,g],[/opios[\/ ]+([\w\.]+)/i],[g,[h,L+" Mini"]],[/\bopr\/([\w\.]+)/i],[g,[h,L]],[/(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,g],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[h,"UC"+te]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[g,[h,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[g,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+te],g],[/\bfocus\/([\w\.]+)/i],[g,[h,J+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[h,L+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[h,L+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[h,"MIUI "+te]],[/fxios\/([-\w\.]+)/i],[g,[h,J]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+te]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+te],g],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[h,g],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,V],g],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[h,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[g,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[h,se+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,se+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[h,"Android "+te]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[g,Ct,wn]],[/(webkit|khtml)\/([\w\.]+)/i],[h,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[h,J+" 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,g],[/(cobalt)\/([\w\.]+)/i],[h,[g,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[w,"amd64"]],[/(ia32(?=;))/i],[[w,Ce]],[/((?:i[346]|x)86)[;\)]/i],[[w,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[w,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[w,"armhf"]],[/windows (ce|mobile); ppc;/i],[[w,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[w,/ower/,i,Ce]],[/(sun4\w)[;\)]/i],[[w,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[w,Ce]]],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],[f,[v,D],[m,C]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[v,D],[m,O]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[v,R],[m,O]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[v,R],[m,C]],[/(macintosh);/i],[f,[v,R]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[v,N],[m,O]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[v,xe],[m,C]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[v,xe],[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],[[f,/_/g," "],[v,A],[m,O]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[v,A],[m,C]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[v,"OPPO"],[m,O]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[v,"Vivo"],[m,O]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[f,[v,"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],[f,[v,P],[m,O]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[v,P],[m,C]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[v,pe],[m,C]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[v,pe],[m,O]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[v,"Lenovo"],[m,C]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[v,"Nokia"],[m,O]],[/(pixel c)\b/i],[f,[v,ne],[m,C]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[v,ne],[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],[f,[v,M],[m,O]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[v,M],[m,C]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[v,"OnePlus"],[m,O]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[v,I],[m,C]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[v,I],[m,O]],[/(playbook);[-\w\),; ]+(rim)/i],[f,v,[m,C]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[v,re],[m,O]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[v,H],[m,C]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[v,H],[m,O]],[/(nexus 9)/i],[f,[v,"HTC"],[m,C]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[v,[f,/_/g," "],[m,O]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[v,"Acer"],[m,C]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[v,"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],[v,f,[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],[v,f,[m,C]],[/(surface duo)/i],[f,[v,E],[m,C]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[v,"Fairphone"],[m,O]],[/(u304aa)/i],[f,[v,"AT&T"],[m,O]],[/\bsie-(\w*)/i],[f,[v,"Siemens"],[m,O]],[/\b(rct\w+) b/i],[f,[v,"RCA"],[m,C]],[/\b(venue[\d ]{2,7}) b/i],[f,[v,"Dell"],[m,C]],[/\b(q(?:mv|ta)\w+) b/i],[f,[v,"Verizon"],[m,C]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[v,"Barnes & Noble"],[m,C]],[/\b(tm\d{3}\w+) b/i],[f,[v,"NuVision"],[m,C]],[/\b(k88) b/i],[f,[v,"ZTE"],[m,C]],[/\b(nx\d{3}j) b/i],[f,[v,"ZTE"],[m,O]],[/\b(gen\d{3}) b.+49h/i],[f,[v,"Swiss"],[m,O]],[/\b(zur\d{3}) b/i],[f,[v,"Swiss"],[m,C]],[/\b((zeki)?tb.*\b) b/i],[f,[v,"Zeki"],[m,C]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[v,"Dragon Touch"],f,[m,C]],[/\b(ns-?\w{0,9}) b/i],[f,[v,"Insignia"],[m,C]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[v,"NextBook"],[m,C]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[v,"Voice"],f,[m,O]],[/\b(lvtel\-)?(v1[12]) b/i],[[v,"LvTel"],f,[m,O]],[/\b(ph-1) /i],[f,[v,"Essential"],[m,O]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[v,"Envizen"],[m,C]],[/\b(trio[-\w\. ]+) b/i],[f,[v,"MachSpeed"],[m,C]],[/\btu_(1491) b/i],[f,[v,"Rotor"],[m,C]],[/(shield[\w ]+) b/i],[f,[v,"Nvidia"],[m,C]],[/(sprint) (\w+)/i],[v,f,[m,O]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[v,E],[m,O]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[v,F],[m,C]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[v,F],[m,O]],[/smart-tv.+(samsung)/i],[v,[m,b]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[v,D],[m,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[v,pe],[m,b]],[/(apple) ?tv/i],[v,[f,R+" TV"],[m,b]],[/crkey/i],[[f,se+"cast"],[v,ne],[m,b]],[/droid.+aft(\w)( bui|\))/i],[f,[v,I],[m,b]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[v,N],[m,b]],[/(bravia[\w ]+)( bui|\))/i],[f,[v,M],[m,b]],[/(mitv-\w{5}) bui/i],[f,[v,A],[m,b]],[/Hbbtv.*(technisat) (.*);/i],[v,f,[m,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[v,it],[f,it],[m,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[m,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[v,f,[m,j]],[/droid.+; (shield) bui/i],[f,[v,"Nvidia"],[m,j]],[/(playstation [345portablevi]+)/i],[f,[v,M],[m,j]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[v,E],[m,j]],[/((pebble))app/i],[v,f,[m,k]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[v,R],[m,k]],[/droid.+; (glass) \d/i],[f,[v,ne],[m,k]],[/droid.+; (wt63?0{2,3})\)/i],[f,[v,F],[m,k]],[/(quest( 2| pro)?)/i],[f,[v,V],[m,k]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[v,[m,_]],[/(aeobc)\b/i],[f,[v,I],[m,_]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[f,[m,O]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[m,C]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[m,C]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[m,O]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[v,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[h,be+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[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,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,g],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[h,[g,Ct,_e]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[g,Ct,_e]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,B],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,g],[/\(bb(10);/i],[g,[h,re]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[h,J+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[g,[h,se+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,$],g],[/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,g],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,g]]},ve=function(z,q){if(typeof z===u&&(q=z,z=r),!(this instanceof ve))return new ve(z,q).getResult();var U=typeof n!==l&&n.navigator?n.navigator:r,Q=z||(U&&U.userAgent?U.userAgent:i),ze=U&&U.userAgentData?U.userAgentData:r,Ie=q?ie(qe,q):qe,K=U&&U.userAgent==Q;return this.getBrowser=function(){var W={};return W[h]=r,W[g]=r,He.call(W,Q,Ie.browser),W[p]=ot(W[g]),K&&U&&U.brave&&typeof U.brave.isBrave==c&&(W[h]="Brave"),W},this.getCPU=function(){var W={};return W[w]=r,He.call(W,Q,Ie.cpu),W},this.getDevice=function(){var W={};return W[v]=r,W[f]=r,W[m]=r,He.call(W,Q,Ie.device),K&&!W[m]&&ze&&ze.mobile&&(W[m]=O),K&&W[f]=="Macintosh"&&U&&typeof U.standalone!==l&&U.maxTouchPoints&&U.maxTouchPoints>2&&(W[f]="iPad",W[m]=C),W},this.getEngine=function(){var W={};return W[h]=r,W[g]=r,He.call(W,Q,Ie.engine),W},this.getOS=function(){var W={};return W[h]=r,W[g]=r,He.call(W,Q,Ie.os),K&&!W[h]&&ze&&ze.platform!="Unknown"&&(W[h]=ze.platform.replace(/chrome os/i,$).replace(/macos/i,B)),W},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 Q},this.setUA=function(W){return Q=typeof W===d&&W.length>S?it(W,S):W,this},this.setUA(Q),this};ve.VERSION=o,ve.BROWSER=T([h,g,p]),ve.CPU=T([w]),ve.DEVICE=T([f,v,m,j,O,b,C,k,_]),ve.ENGINE=ve.OS=T([h,g]),t.exports&&(e=t.exports=ve),e.UAParser=ve;var Me=typeof n!==l&&(n.jQuery||n.Zepto);if(Me&&!Me.ua){var Ve=new ve;Me.ua=Ve.getResult(),Me.ua.get=function(){return Ve.getUA()},Me.ua.set=function(z){Ve.setUA(z);var q=Ve.getResult();for(var U in q)Me.ua[U]=q[U]}}})(typeof window=="object"?window:rs)})($s,Qt);const Gs=new Qt.UAParser,Go=()=>Ze.useMemo(()=>Gs.getBrowser(),[]);var Ar=function(e){return e.reduce(function(n,r){var o=r[0],i=r[1];return n[o]=i,n},{})},Rr=typeof window<"u"&&window.document&&window.document.createElement?Ze.useLayoutEffect:Ze.useEffect,ge="top",je="bottom",Ee="right",ye="left",un="auto",Ut=[ge,je,Ee,ye],vt="start",Lt="end",qs="clippingParents",qo="viewport",Et="popper",Ks="reference",Lr=Ut.reduce(function(t,e){return t.concat([e+"-"+vt,e+"-"+Lt])},[]),Ko=[].concat(Ut,[un]).reduce(function(t,e){return t.concat([e,e+"-"+vt,e+"-"+Lt])},[]),Ys="beforeRead",Xs="read",Js="afterRead",Qs="beforeMain",ea="main",ta="afterMain",na="beforeWrite",ra="write",oa="afterWrite",Hn=[Ys,Xs,Js,Qs,ea,ta,na,ra,oa];function Le(t){return t?(t.nodeName||"").toLowerCase():null}function Se(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function nt(t){var e=Se(t).Element;return t instanceof e||t instanceof Element}function we(t){var e=Se(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function lr(t){if(typeof ShadowRoot>"u")return!1;var e=Se(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function ia(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!we(i)||!Le(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 sa(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),c=a.reduce(function(l,u){return l[u]="",l},{});!we(o)||!Le(o)||(Object.assign(o.style,c),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const aa={name:"applyStyles",enabled:!0,phase:"write",fn:ia,effect:sa,requires:["computeStyles"]};function Te(t){return t.split("-")[0]}var tt=Math.max,en=Math.min,gt=Math.round;function Vn(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Yo(){return!/^((?!chrome|android).)*safari/i.test(Vn())}function yt(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&we(t)&&(o=t.offsetWidth>0&&gt(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&gt(r.height)/t.offsetHeight||1);var a=nt(t)?Se(t):window,c=a.visualViewport,l=!Yo()&&n,u=(r.left+(l&&c?c.offsetLeft:0))/o,d=(r.top+(l&&c?c.offsetTop:0))/i,p=r.width/o,f=r.height/i;return{width:p,height:f,top:d,right:u+p,bottom:d+f,left:u,x:u,y:d}}function ur(t){var e=yt(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function Xo(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&lr(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Pe(t){return Se(t).getComputedStyle(t)}function ca(t){return["table","td","th"].indexOf(Le(t))>=0}function $e(t){return((nt(t)?t.ownerDocument:t.document)||window.document).documentElement}function dn(t){return Le(t)==="html"?t:t.assignedSlot||t.parentNode||(lr(t)?t.host:null)||$e(t)}function Mr(t){return!we(t)||Pe(t).position==="fixed"?null:t.offsetParent}function la(t){var e=/firefox/i.test(Vn()),n=/Trident/i.test(Vn());if(n&&we(t)){var r=Pe(t);if(r.position==="fixed")return null}var o=dn(t);for(lr(o)&&(o=o.host);we(o)&&["html","body"].indexOf(Le(o))<0;){var i=Pe(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Wt(t){for(var e=Se(t),n=Mr(t);n&&ca(n)&&Pe(n).position==="static";)n=Mr(n);return n&&(Le(n)==="html"||Le(n)==="body"&&Pe(n).position==="static")?e:n||la(t)||e}function dr(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function It(t,e,n){return tt(t,en(e,n))}function ua(t,e,n){var r=It(t,e,n);return r>n?n:r}function Jo(){return{top:0,right:0,bottom:0,left:0}}function Qo(t){return Object.assign({},Jo(),t)}function ei(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var da=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Qo(typeof e!="number"?e:ei(e,Ut))};function fa(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,c=Te(n.placement),l=dr(c),u=[ye,Ee].indexOf(c)>=0,d=u?"height":"width";if(!(!i||!a)){var p=da(o.padding,n),f=ur(i),h=l==="y"?ge:ye,m=l==="y"?je:Ee,v=n.rects.reference[d]+n.rects.reference[l]-a[l]-n.rects.popper[d],g=a[l]-n.rects.reference[l],w=Wt(i),j=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,O=v/2-g/2,C=p[h],b=j-f[d]-p[m],k=j/2-f[d]/2+O,_=It(C,k,b),S=l;n.modifiersData[r]=(e={},e[S]=_,e.centerOffset=_-k,e)}}function pa(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;if(o!=null&&!(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o))){if(process.env.NODE_ENV!=="production"&&(we(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(" "))),!Xo(e.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}e.elements.arrow=o}}const ha={name:"arrow",enabled:!0,phase:"main",fn:fa,effect:pa,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bt(t){return t.split("-")[1]}var ma={top:"auto",right:"auto",bottom:"auto",left:"auto"};function va(t){var e=t.x,n=t.y,r=window,o=r.devicePixelRatio||1;return{x:gt(e*o)/o||0,y:gt(n*o)/o||0}}function Dr(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,a=t.offsets,c=t.position,l=t.gpuAcceleration,u=t.adaptive,d=t.roundOffsets,p=t.isFixed,f=a.x,h=f===void 0?0:f,m=a.y,v=m===void 0?0:m,g=typeof d=="function"?d({x:h,y:v}):{x:h,y:v};h=g.x,v=g.y;var w=a.hasOwnProperty("x"),j=a.hasOwnProperty("y"),O=ye,C=ge,b=window;if(u){var k=Wt(n),_="clientHeight",S="clientWidth";if(k===Se(n)&&(k=$e(n),Pe(k).position!=="static"&&c==="absolute"&&(_="scrollHeight",S="scrollWidth")),k=k,o===ge||(o===ye||o===Ee)&&i===Lt){C=je;var I=p&&k===b&&b.visualViewport?b.visualViewport.height:k[_];v-=I-r.height,v*=l?1:-1}if(o===ye||(o===ge||o===je)&&i===Lt){O=Ee;var R=p&&k===b&&b.visualViewport?b.visualViewport.width:k[S];h-=R-r.width,h*=l?1:-1}}var H=Object.assign({position:c},u&&ma),re=d===!0?va({x:h,y:v}):{x:h,y:v};if(h=re.x,v=re.y,l){var te;return Object.assign({},H,(te={},te[C]=j?"0":"",te[O]=w?"0":"",te.transform=(b.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",te))}return Object.assign({},H,(e={},e[C]=j?v+"px":"",e[O]=w?h+"px":"",e.transform="",e))}function ga(t){var e=t.state,n=t.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 u=Pe(e.elements.popper).transitionProperty||"";a&&["transform","top","right","bottom","left"].some(function(p){return u.indexOf(p)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
18
+ ***************************************************************************** */var Fn=function(){return Fn=Object.assign||function(e){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)&&(e[i]=n[i])}return e},Fn.apply(this,arguments)};function gs(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function Un(t,e){if(t===e||t===null&&e===null)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="object"){if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!Un(t[n],e[n]))return!1;return!0}var r=Object.keys(t);if(r.length!==Object.keys(e).length)return!1;for(var n=0;n<r.length;n++)if(!e.hasOwnProperty(r[n])||!Un(t[r[n]],e[r[n]]))return!1;return!0}}var Tt=function(t){return Array.isArray(t)},$t=function(t){return typeof t=="object"&&t!==null&&!Tt(t)},ys=function(t){switch(typeof t){case"string":return"a string";case"number":return"a number";case"boolean":return"a boolean";case"undefined":return"undefined";case"object":return t instanceof Array?"an array":t===null?"null":"an object";default:return JSON.stringify(t)}},Fe=function(t,e){return"expected "+t+", got "+ys(e)},Ot=function(t){return t.map(function(e){return typeof e=="string"?"."+e:"["+e+"]"}).join("")},jt=function(t,e){var n=e.at,r=gs(e,["at"]);return Fn({at:t+(n||"")},r)},ce=function(){function t(e){var n=this;this.decode=e,this.run=function(r){return On(function(o){return{kind:"DecoderError",input:r,at:"input"+(o.at||""),message:o.message||""}},n.decode(r))},this.runPromise=function(r){return fs(n.run(r))},this.runWithException=function(r){return hs(n.run(r))},this.map=function(r){return new t(function(o){return ms(r,n.decode(o))})},this.andThen=function(r){return new t(function(o){return vs(function(i){return r(i).decode(o)},n.decode(o))})},this.where=function(r,o){return n.andThen(function(i){return r(i)?t.succeed(i):t.fail(o)})}}return t.string=function(){return new t(function(e){return typeof e=="string"?le(e):ae({message:Fe("a string",e)})})},t.number=function(){return new t(function(e){return typeof e=="number"?le(e):ae({message:Fe("a number",e)})})},t.boolean=function(){return new t(function(e){return typeof e=="boolean"?le(e):ae({message:Fe("a boolean",e)})})},t.constant=function(e){return new t(function(n){return Un(n,e)?le(e):ae({message:"expected "+JSON.stringify(e)+", got "+JSON.stringify(n)})})},t.object=function(e){return new t(function(n){if($t(n)&&e){var r={};for(var o in e)if(e.hasOwnProperty(o)){var i=e[o].decode(n[o]);if(i.ok===!0)i.result!==void 0&&(r[o]=i.result);else return n[o]===void 0?ae({message:"the key '"+o+"' is required but was not present"}):ae(jt("."+o,i.error))}return le(r)}else return $t(n)?le(n):ae({message:Fe("an object",n)})})},t.array=function(e){return new t(function(n){if(Tt(n)&&e){var r=function(o,i){return On(function(a){return jt("["+i+"]",a)},e.decode(o))};return n.reduce(function(o,i,a){return Lr(function(c,l){return c.concat([l])},o,r(i,a))},le([]))}else return Tt(n)?le(n):ae({message:Fe("an array",n)})})},t.tuple=function(e){return new t(function(n){if(Tt(n)){if(n.length!==e.length)return ae({message:"expected a tuple of length "+e.length+", got one of length "+n.length});for(var r=[],o=0;o<e.length;o++){var i=e[o].decode(n[o]);if(i.ok)r[o]=i.result;else return ae(jt("["+o+"]",i.error))}return le(r)}else return ae({message:Fe("a tuple of length "+e.length,n)})})},t.union=function(e,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return t.oneOf.apply(t,[e,n].concat(r))},t.intersection=function(e,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return new t(function(i){return[e,n].concat(r).reduce(function(a,c){return Lr(Object.assign,a,c.decode(i))},le({}))})},t.anyJson=function(){return new t(function(e){return le(e)})},t.unknownJson=function(){return new t(function(e){return le(e)})},t.dict=function(e){return new t(function(n){if($t(n)){var r={};for(var o in n)if(n.hasOwnProperty(o)){var i=e.decode(n[o]);if(i.ok===!0)r[o]=i.result;else return ae(jt("."+o,i.error))}return le(r)}else return ae({message:Fe("an object",n)})})},t.optional=function(e){return new t(function(n){return n==null?le(void 0):e.decode(n)})},t.oneOf=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new t(function(r){for(var o=[],i=0;i<e.length;i++){var a=e[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 ae({message:'expected a value matching one of the decoders, got the errors ["'+c+'"]'})})},t.withDefault=function(e,n){return new t(function(r){return le(ps(e,n.decode(r)))})},t.valueAt=function(e,n){return new t(function(r){for(var o=r,i=0;i<e.length;i++){if(o===void 0)return ae({at:Ot(e.slice(0,i+1)),message:"path does not exist"});if(typeof e[i]=="string"&&!$t(o))return ae({at:Ot(e.slice(0,i+1)),message:Fe("an object",o)});if(typeof e[i]=="number"&&!Tt(o))return ae({at:Ot(e.slice(0,i+1)),message:Fe("an array",o)});o=o[e[i]]}return On(function(a){return o===void 0?{at:Ot(e),message:"path does not exist"}:jt(Ot(e),a)},n.decode(o))})},t.succeed=function(e){return new t(function(n){return le(e)})},t.fail=function(e){return new t(function(n){return ae({message:e})})},t.lazy=function(e){return new t(function(n){return e().decode(n)})},t}(),Wn=ce.string,bs=ce.number,Uo=ce.boolean,he=ce.anyJson;ce.unknownJson;var Rt=ce.constant,me=ce.object,Wo=ce.array;ce.tuple;ce.dict;var Z=ce.optional,en=ce.oneOf;ce.union;ce.intersection;ce.withDefault;ce.valueAt;ce.succeed;var ws=ce.fail;ce.lazy;const de=Wn().where(t=>t.length>0,"Expected a non-empty string"),xs=bs().where(t=>t>=0,"Expected a non-negative number"),ke=(t,e)=>{const n=typeof t;return n==="function"?he():ws(`The provided argument as ${e} should be of type function, provided: ${typeof n}`)},Cs=me({name:de,displayName:Z(de),disabled:Z(Uo())}),Os=me({id:de,title:de,description:Z(de),icon:Z(Wn()),iconSrc:Z(Wn()),contextMenuActions:Z(Wo(Cs)),type:de}),js=Wo(Os),un=()=>{const[t,e]=Ft("localStorage",us,js),n=y.useMemo(()=>t||[],[t]);return{favoriteEntities:n,toggleFavorite:({isOpen:i,...a})=>{const c=n.find(u=>u.title===a.title&&u.type===a.type),l=c?n.filter(u=>u!==c):[a,...n];e(l)},removeFavorite:i=>{e(n.filter(a=>a.id!==i))}}},Ho=()=>{const[t,e]=y.useState(),n=y.useContext(ee.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=mt.getFrameId();n.workspaces?.waitForFrame(r).then(e).catch(o=>console.error("Failed to get current frame",{error:o}))},[n]),t},Es=()=>{const t=y.useContext(ee.IOConnectContext);return async e=>t.interop.methods().every(n=>n.name!==e?.method)?console.error("Interop method not found."):await t.interop.invoke(e.method,e.params,e.target).catch(n=>console.error({error:n}))},Ss=()=>{const[t,e]=y.useState([]),n=y.useContext(ee.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;e(u=>[...u,{name:c,type:l}])}),i=n.layouts.onRemoved(a=>{a.type!=="Global"||r||e(c=>c.filter(l=>l.name!==a.name))});return()=>{r=!0,o(),i()}},[n]),t},Vo=()=>{const[t,e]=y.useState([]),n=y.useContext(ee.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=n.notifications.onRaised(i=>e(a=>[...a,i])),o=n.notifications.onClosed(i=>e(a=>a.filter(c=>c.id!==i.id)));return n.notifications.list().then(e).catch(console.error),()=>{r(),o()}},[n]),t},jn=["None","Low","Medium","High","Critical"],ks={None:"#616161",Low:"#7AC70C",Medium:"#E0A900",High:"#E0474C",Critical:"#B8001E"},Hn={TIMESTAMP:"timestamp",SEVERITY:"severity"},Mr={key:Hn.TIMESTAMP,descending:!0},Ts=(t,e)=>[...t].sort((n,r)=>(e?-1:1)*((n.timestamp||0)-(r.timestamp||0))),Is=(t,e)=>{const n=jn[0];return[...t].sort((r,o)=>{const i=jn.indexOf(r.severity||n),a=jn.indexOf(o.severity||n);return(e?-1:1)*(i-a)})},_s={[Hn.TIMESTAMP]:Ts,[Hn.SEVERITY]:Is},Ps=()=>{const t=Vo(),[e,n]=y.useState(Mr),{key:r,descending:o}=e,i=y.useMemo(()=>_s[r](t,o),[t,r,o]);return{onNotificationsSort:y.useCallback(c=>{n(l=>({key:c,descending:l.key!==c?Mr.descending:!l.descending}))},[]),sortedNotifications:i}},Bo=()=>{const[t,e]=y.useState([]);return y.useEffect(()=>{const n=({key:i})=>{e(a=>a.includes(i)?a:a.concat(i))},r=i=>{e(a=>a.filter(c=>c!==i.key))},o=()=>{e([])};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)}},[]),t.length===1?t[0]:null},dn={CONTROL:"Control",SHIFT:"Shift"},lr=()=>{const t=y.useContext(ee.IOConnectContext),e=Ho();return async({id:n,modifier:r,reuseWorkspaceId:o})=>{const i=r===dn.CONTROL?{newFrame:!0}:{frameId:e?.id,reuseWorkspaceId:o};return t.workspaces?.restoreWorkspace(n,i)}},ur=()=>{const t=y.useContext(ee.IOConnectContext);return y.useCallback(async(e,n)=>{if(t)try{await t.layouts.restore({name:e}),n?.({name:e})}catch(r){console.error(r)}},[t])},Ns=t=>{const[e,n]=y.useState([]),[r,o]=y.useState(!0),i=y.useRef(null),a=y.useContext(ee.IOConnectContext);return y.useEffect(()=>{const c=a?.search;if(!c)return;const l=[],u=[];return(async p=>{o(!0),n([]);const f=await c.query({search:p.trim(),providerLimits:{maxResults:100,maxResultsPerType:5}});if(f===i.current)return;i.current=f;const h=f.onResults(g=>{g.results.forEach(w=>{u.find(O=>O.id===w.id&&O.type.name===w.type.name)||u.push(w)}),o(!1),n([...u])}),m=f.onCompleted(()=>{o(!1)}),v=f.onError(g=>{console.error(`Query failed. Provider: ${g.provider}; Error: ${g.error}`)});l.push(h,m,v)})(t),()=>{l.forEach(p=>p())}},[a,t]),{resultsToRender:e,isLoading:r}},zo=()=>{const t=y.useContext(ee.IOConnectContext);return async({id:e,modifier:n})=>{const r=await t.workspaces?.getWorkspace(c=>c.isSelected===!0),o=r?.children[0];return n===dn.CONTROL||!r||o?.type==="window"?await t.appManager.application(e).start():await(o?.type==="group"?o:await(o||r).addGroup()).addWindow({appName:e})}},As=()=>{const[t,e]=y.useState([]),n=y.useContext(ee.IOConnectContext);return y.useEffect(()=>{if(!n||!n.workspaces)return;let r=!1;const o=n.workspaces.layouts.onSaved(({name:a})=>{r||t.find(({id:c})=>c===a)||e(c=>[...c,{id:a,title:a}])}),i=n.workspaces.layouts.onRemoved(({name:a})=>{r||e(c=>c.filter(({title:l})=>l!==a))});return()=>{r=!0,[o,i].forEach(async a=>{try{(await a)()}catch(c){console.error(c)}})}},[n,t]),t},Rs=()=>{const[t,e]=y.useState({}),n=y.useContext(ee.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=[];return(async()=>{try{const o=await n.workspaces?.onWorkspaceOpened(a=>e(c=>({...c,[a.title]:[...c[a.title]||[],a.id]})));r.push(o);const i=await n.workspaces?.onWorkspaceClosed(({workspaceId:a})=>e(c=>{const l={...c};for(const u in l)if(l[u].includes(a)){l[u]=l[u].filter(d=>d!==a);break}return l}));r.push(i)}catch(o){console.error(o)}})(),()=>r.forEach(o=>o?.())},[n]),t},Ls=t=>{const{io:e,item:n}=t;e.appManager.application(n.id).start().catch(r=>{console.error("Failed to start application: ",{error:r})})},Ms=t=>{const{io:e,item:n,frame:r}=t;if(!e.workspaces)return;const o={type:"workspace",definition:{frame:r?{reuseFrameId:r.id}:{newFrame:!0}}},i=e.workspaces.getBuilder(o);i.addGroup().addWindow({appName:n.id}),i.create().catch(a=>{console.error("Failed to create workspace: ",{error:a})})},Ds={openInNewWindow:Ls,openInNewWorkspace:Ms},Zo=()=>{const t=y.useContext(ee.IOConnectContext),e=Ho();return(n,r)=>{Ds[r]({io:t,item:n,frame:e})}},Fs=t=>{const{io:e,item:n}=t;e.workspaces&&e.workspaces.restoreWorkspace(n.id,{newFrame:!0}).catch(r=>{console.error("Failed to open workspace in new frame: ",{error:r})})},Us=async t=>{const{io:e,item:n,removeFavorite:r}=t;if(e.workspaces)try{await e.workspaces.layouts.delete(n.id),r(n.id)}catch(o){console.error("Failed to delete workspace: ",{error:o})}},Ws={openInNewFrame:Fs,delete:Us},$o=()=>{const t=y.useContext(ee.IOConnectContext),{removeFavorite:e}=un();return(n,r)=>{Ws[r]({io:t,item:n,removeFavorite:e})}},Hs=t=>{const{layout:e,setDefaultLayout:n}=t;n({name:e.name})},Vs=async t=>{const{io:e,layout:n}=t;try{await e.layouts.remove("Global",n.name)}catch(r){console.error("Failed to delete layout: ",{error:r})}},Bs={setAsDefault:Hs,delete:Vs},zs=()=>{const t=y.useContext(ee.IOConnectContext);return y.useCallback(async(n,r,o)=>{await Bs[r]({io:t,layout:n,setDefaultLayout:o})},[t])},Go=me({name:de}),qo="Welcome",Zs=5,Le={WINDOW_MANAGEMENT:"window-management",NOTIFICATIONS:"notifications"},fn="getScreenDetails"in window,$s=t=>t.components.reduce((n,r)=>{if(r.type==="workspaceFrame"){const o=r.state.workspaces.map(i=>i.config.name);n.push(...o)}return n},[]),Gs=t=>{const[e,n]=y.useState(null),[r,o]=Ft("sessionStorage",Fo,Go),i=y.useRef(!1),a=ur(),c=lr(),l=y.useContext(ee.IOConnectContext),u=y.useCallback(async({name:d})=>{try{await l.layouts.setDefaultGlobal(d),n({name:d})}catch(p){console.error("Failed to set default layout: ",{error:p})}},[l]);return y.useEffect(()=>{if(!l||!window.iobrowser?.platformStarted||i.current)return;(async()=>{i.current=!0;const p=await l.layouts.getDefaultGlobal()||await l.layouts.get(qo,"Global");if(!p||(n({name:p.name}),r))return;if(t(!0),fn){await a(p.name,o),t(!1);return}const f=await l.workspaces?.getWorkspace(m=>m.children.length===0),h=$s(p);Promise.all(h.map((m,v)=>c({id:m,reuseWorkspaceId:v===0?f?.id:void 0}))),o(p),t(!1)})()},[l,r,a,o,t,c]),{defaultLayout:e,selectedLayout:r,setDefaultLayout:u,setSelectedLayout:o}},Ko=y.createContext(void 0),rt=()=>{const t=y.useContext(Ko);if(t===void 0)throw new Error("useLaunchpadAPI must be used within a LaunchpadAPIProvider");return t},qs=({children:t,setOpen:e,isOpen:n})=>{const[r,o]=y.useState(!1),{defaultLayout:i,selectedLayout:a,setDefaultLayout:c,setSelectedLayout:l}=Gs(o),d={close:y.useCallback(()=>e(!1),[e]),isOpen:n,defaultLayout:i,selectedLayout:a,setDefaultLayout:c,setSelectedLayout:l,isLayoutOperationBlocked:r,setIsLayoutOperationBlocked:o};return s.jsx(Ko.Provider,{value:d,children:t})},Yo=()=>{const{isLayoutOperationBlocked:t,setIsLayoutOperationBlocked:e}=rt();return async n=>{if(!t){e(!0);try{await n()}catch(r){console.error(r)}e(!1)}}};var tn={},Ks={get exports(){return tn},set exports(t){tn=t}};(function(t,e){(function(n,r){var o="1.0.35",i="",a="?",c="function",l="undefined",u="object",d="string",p="major",f="model",h="name",m="type",v="vendor",g="version",w="architecture",j="console",O="mobile",C="tablet",b="smarttv",k="wearable",_="embedded",S=350,P="Amazon",R="Apple",H="ASUS",re="BlackBerry",te="Browser",se="Chrome",be="Edge",J="Firefox",ne="Google",xe="Huawei",pe="LG",E="Microsoft",I="Motorola",L="Opera",D="Samsung",N="Sharp",M="Sony",A="Xiaomi",F="Zebra",V="Facebook",$="Chromium OS",z="Mac OS",ie=function(B,q){var U={};for(var Q in B)q[Q]&&q[Q].length%2===0?U[Q]=q[Q].concat(B[Q]):U[Q]=B[Q];return U},T=function(B){for(var q={},U=0;U<B.length;U++)q[B[U].toUpperCase()]=B[U];return q},fe=function(B,q){return typeof B===d?Ce(q).indexOf(Ce(B))!==-1:!1},Ce=function(B){return B.toLowerCase()},it=function(B){return typeof B===d?B.replace(/[^\d\.]/g,i).split(".")[0]:r},st=function(B,q){if(typeof B===d)return B=B.replace(/^\s\s*/,i),typeof q===l?B:B.substring(0,S)},Ve=function(B,q){for(var U=0,Q,ze,Pe,K,W,Ne;U<q.length&&!W;){var Cn=q[U],Rr=q[U+1];for(Q=ze=0;Q<Cn.length&&!W&&Cn[Q];)if(W=Cn[Q++].exec(B),W)for(Pe=0;Pe<Rr.length;Pe++)Ne=W[++ze],K=Rr[Pe],typeof K===u&&K.length>0?K.length===2?typeof K[1]==c?this[K[0]]=K[1].call(this,Ne):this[K[0]]=K[1]:K.length===3?typeof K[1]===c&&!(K[1].exec&&K[1].test)?this[K[0]]=Ne?K[1].call(this,Ne,K[2]):r:this[K[0]]=Ne?Ne.replace(K[1],K[2]):r:K.length===4&&(this[K[0]]=Ne?K[3].call(this,Ne.replace(K[1],K[2])):r):this[K]=Ne||r;U+=2}},Ct=function(B,q){for(var U in q)if(typeof q[U]===u&&q[U].length>0){for(var Q=0;Q<q[U].length;Q++)if(fe(q[U][Q],B))return U===a?r:U}else if(fe(q[U],B))return U===a?r:U;return B},xn={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},_e={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"},Ke={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,g],[/opios[\/ ]+([\w\.]+)/i],[g,[h,L+" Mini"]],[/\bopr\/([\w\.]+)/i],[g,[h,L]],[/(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,g],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[h,"UC"+te]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[g,[h,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[g,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+te],g],[/\bfocus\/([\w\.]+)/i],[g,[h,J+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[h,L+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[h,L+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[h,"MIUI "+te]],[/fxios\/([-\w\.]+)/i],[g,[h,J]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+te]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+te],g],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[h,g],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,V],g],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[h,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[g,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[h,se+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,se+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[h,"Android "+te]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[g,Ct,xn]],[/(webkit|khtml)\/([\w\.]+)/i],[h,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[h,J+" 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,g],[/(cobalt)\/([\w\.]+)/i],[h,[g,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[w,"amd64"]],[/(ia32(?=;))/i],[[w,Ce]],[/((?:i[346]|x)86)[;\)]/i],[[w,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[w,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[w,"armhf"]],[/windows (ce|mobile); ppc;/i],[[w,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[w,/ower/,i,Ce]],[/(sun4\w)[;\)]/i],[[w,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[w,Ce]]],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],[f,[v,D],[m,C]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[v,D],[m,O]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[v,R],[m,O]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[v,R],[m,C]],[/(macintosh);/i],[f,[v,R]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[v,N],[m,O]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[v,xe],[m,C]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[v,xe],[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],[[f,/_/g," "],[v,A],[m,O]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[v,A],[m,C]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[v,"OPPO"],[m,O]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[v,"Vivo"],[m,O]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[f,[v,"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],[f,[v,I],[m,O]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[v,I],[m,C]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[v,pe],[m,C]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[v,pe],[m,O]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[v,"Lenovo"],[m,C]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[v,"Nokia"],[m,O]],[/(pixel c)\b/i],[f,[v,ne],[m,C]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[v,ne],[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],[f,[v,M],[m,O]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[v,M],[m,C]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[v,"OnePlus"],[m,O]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[v,P],[m,C]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[v,P],[m,O]],[/(playbook);[-\w\),; ]+(rim)/i],[f,v,[m,C]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[v,re],[m,O]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[v,H],[m,C]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[v,H],[m,O]],[/(nexus 9)/i],[f,[v,"HTC"],[m,C]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[v,[f,/_/g," "],[m,O]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[v,"Acer"],[m,C]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[v,"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],[v,f,[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],[v,f,[m,C]],[/(surface duo)/i],[f,[v,E],[m,C]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[v,"Fairphone"],[m,O]],[/(u304aa)/i],[f,[v,"AT&T"],[m,O]],[/\bsie-(\w*)/i],[f,[v,"Siemens"],[m,O]],[/\b(rct\w+) b/i],[f,[v,"RCA"],[m,C]],[/\b(venue[\d ]{2,7}) b/i],[f,[v,"Dell"],[m,C]],[/\b(q(?:mv|ta)\w+) b/i],[f,[v,"Verizon"],[m,C]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[v,"Barnes & Noble"],[m,C]],[/\b(tm\d{3}\w+) b/i],[f,[v,"NuVision"],[m,C]],[/\b(k88) b/i],[f,[v,"ZTE"],[m,C]],[/\b(nx\d{3}j) b/i],[f,[v,"ZTE"],[m,O]],[/\b(gen\d{3}) b.+49h/i],[f,[v,"Swiss"],[m,O]],[/\b(zur\d{3}) b/i],[f,[v,"Swiss"],[m,C]],[/\b((zeki)?tb.*\b) b/i],[f,[v,"Zeki"],[m,C]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[v,"Dragon Touch"],f,[m,C]],[/\b(ns-?\w{0,9}) b/i],[f,[v,"Insignia"],[m,C]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[v,"NextBook"],[m,C]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[v,"Voice"],f,[m,O]],[/\b(lvtel\-)?(v1[12]) b/i],[[v,"LvTel"],f,[m,O]],[/\b(ph-1) /i],[f,[v,"Essential"],[m,O]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[v,"Envizen"],[m,C]],[/\b(trio[-\w\. ]+) b/i],[f,[v,"MachSpeed"],[m,C]],[/\btu_(1491) b/i],[f,[v,"Rotor"],[m,C]],[/(shield[\w ]+) b/i],[f,[v,"Nvidia"],[m,C]],[/(sprint) (\w+)/i],[v,f,[m,O]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[v,E],[m,O]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[v,F],[m,C]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[v,F],[m,O]],[/smart-tv.+(samsung)/i],[v,[m,b]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[v,D],[m,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[v,pe],[m,b]],[/(apple) ?tv/i],[v,[f,R+" TV"],[m,b]],[/crkey/i],[[f,se+"cast"],[v,ne],[m,b]],[/droid.+aft(\w)( bui|\))/i],[f,[v,P],[m,b]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[v,N],[m,b]],[/(bravia[\w ]+)( bui|\))/i],[f,[v,M],[m,b]],[/(mitv-\w{5}) bui/i],[f,[v,A],[m,b]],[/Hbbtv.*(technisat) (.*);/i],[v,f,[m,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[v,st],[f,st],[m,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[m,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[v,f,[m,j]],[/droid.+; (shield) bui/i],[f,[v,"Nvidia"],[m,j]],[/(playstation [345portablevi]+)/i],[f,[v,M],[m,j]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[v,E],[m,j]],[/((pebble))app/i],[v,f,[m,k]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[v,R],[m,k]],[/droid.+; (glass) \d/i],[f,[v,ne],[m,k]],[/droid.+; (wt63?0{2,3})\)/i],[f,[v,F],[m,k]],[/(quest( 2| pro)?)/i],[f,[v,V],[m,k]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[v,[m,_]],[/(aeobc)\b/i],[f,[v,P],[m,_]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[f,[m,O]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[m,C]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[m,C]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[m,O]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[v,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[h,be+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[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,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,g],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[h,[g,Ct,_e]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[g,Ct,_e]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,z],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,g],[/\(bb(10);/i],[g,[h,re]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[h,J+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[g,[h,se+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,$],g],[/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,g],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,g]]},ve=function(B,q){if(typeof B===u&&(q=B,B=r),!(this instanceof ve))return new ve(B,q).getResult();var U=typeof n!==l&&n.navigator?n.navigator:r,Q=B||(U&&U.userAgent?U.userAgent:i),ze=U&&U.userAgentData?U.userAgentData:r,Pe=q?ie(Ke,q):Ke,K=U&&U.userAgent==Q;return this.getBrowser=function(){var W={};return W[h]=r,W[g]=r,Ve.call(W,Q,Pe.browser),W[p]=it(W[g]),K&&U&&U.brave&&typeof U.brave.isBrave==c&&(W[h]="Brave"),W},this.getCPU=function(){var W={};return W[w]=r,Ve.call(W,Q,Pe.cpu),W},this.getDevice=function(){var W={};return W[v]=r,W[f]=r,W[m]=r,Ve.call(W,Q,Pe.device),K&&!W[m]&&ze&&ze.mobile&&(W[m]=O),K&&W[f]=="Macintosh"&&U&&typeof U.standalone!==l&&U.maxTouchPoints&&U.maxTouchPoints>2&&(W[f]="iPad",W[m]=C),W},this.getEngine=function(){var W={};return W[h]=r,W[g]=r,Ve.call(W,Q,Pe.engine),W},this.getOS=function(){var W={};return W[h]=r,W[g]=r,Ve.call(W,Q,Pe.os),K&&!W[h]&&ze&&ze.platform!="Unknown"&&(W[h]=ze.platform.replace(/chrome os/i,$).replace(/macos/i,z)),W},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 Q},this.setUA=function(W){return Q=typeof W===d&&W.length>S?st(W,S):W,this},this.setUA(Q),this};ve.VERSION=o,ve.BROWSER=T([h,g,p]),ve.CPU=T([w]),ve.DEVICE=T([f,v,m,j,O,b,C,k,_]),ve.ENGINE=ve.OS=T([h,g]),t.exports&&(e=t.exports=ve),e.UAParser=ve;var De=typeof n!==l&&(n.jQuery||n.Zepto);if(De&&!De.ua){var Be=new ve;De.ua=Be.getResult(),De.ua.get=function(){return Be.getUA()},De.ua.set=function(B){Be.setUA(B);var q=Be.getResult();for(var U in q)De.ua[U]=q[U]}}})(typeof window=="object"?window:os)})(Ks,tn);const Ys=new tn.UAParser,Xo=()=>$e.useMemo(()=>Ys.getBrowser(),[]);var Dr=function(e){return e.reduce(function(n,r){var o=r[0],i=r[1];return n[o]=i,n},{})},Fr=typeof window<"u"&&window.document&&window.document.createElement?$e.useLayoutEffect:$e.useEffect,ge="top",je="bottom",Ee="right",ye="left",pn="auto",Ut=[ge,je,Ee,ye],gt="start",Lt="end",Xs="clippingParents",Jo="viewport",Et="popper",Js="reference",Ur=Ut.reduce(function(t,e){return t.concat([e+"-"+gt,e+"-"+Lt])},[]),Qo=[].concat(Ut,[pn]).reduce(function(t,e){return t.concat([e,e+"-"+gt,e+"-"+Lt])},[]),Qs="beforeRead",ea="read",ta="afterRead",na="beforeMain",ra="main",oa="afterMain",ia="beforeWrite",sa="write",aa="afterWrite",Vn=[Qs,ea,ta,na,ra,oa,ia,sa,aa];function Me(t){return t?(t.nodeName||"").toLowerCase():null}function Se(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function nt(t){var e=Se(t).Element;return t instanceof e||t instanceof Element}function we(t){var e=Se(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function dr(t){if(typeof ShadowRoot>"u")return!1;var e=Se(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function ca(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!we(i)||!Me(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 la(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),c=a.reduce(function(l,u){return l[u]="",l},{});!we(o)||!Me(o)||(Object.assign(o.style,c),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const ua={name:"applyStyles",enabled:!0,phase:"write",fn:ca,effect:la,requires:["computeStyles"]};function Te(t){return t.split("-")[0]}var tt=Math.max,nn=Math.min,yt=Math.round;function Bn(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function ei(){return!/^((?!chrome|android).)*safari/i.test(Bn())}function bt(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&we(t)&&(o=t.offsetWidth>0&&yt(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&yt(r.height)/t.offsetHeight||1);var a=nt(t)?Se(t):window,c=a.visualViewport,l=!ei()&&n,u=(r.left+(l&&c?c.offsetLeft:0))/o,d=(r.top+(l&&c?c.offsetTop:0))/i,p=r.width/o,f=r.height/i;return{width:p,height:f,top:d,right:u+p,bottom:d+f,left:u,x:u,y:d}}function fr(t){var e=bt(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function ti(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&dr(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ie(t){return Se(t).getComputedStyle(t)}function da(t){return["table","td","th"].indexOf(Me(t))>=0}function Ge(t){return((nt(t)?t.ownerDocument:t.document)||window.document).documentElement}function hn(t){return Me(t)==="html"?t:t.assignedSlot||t.parentNode||(dr(t)?t.host:null)||Ge(t)}function Wr(t){return!we(t)||Ie(t).position==="fixed"?null:t.offsetParent}function fa(t){var e=/firefox/i.test(Bn()),n=/Trident/i.test(Bn());if(n&&we(t)){var r=Ie(t);if(r.position==="fixed")return null}var o=hn(t);for(dr(o)&&(o=o.host);we(o)&&["html","body"].indexOf(Me(o))<0;){var i=Ie(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Wt(t){for(var e=Se(t),n=Wr(t);n&&da(n)&&Ie(n).position==="static";)n=Wr(n);return n&&(Me(n)==="html"||Me(n)==="body"&&Ie(n).position==="static")?e:n||fa(t)||e}function pr(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Pt(t,e,n){return tt(t,nn(e,n))}function pa(t,e,n){var r=Pt(t,e,n);return r>n?n:r}function ni(){return{top:0,right:0,bottom:0,left:0}}function ri(t){return Object.assign({},ni(),t)}function oi(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var ha=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,ri(typeof e!="number"?e:oi(e,Ut))};function ma(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,c=Te(n.placement),l=pr(c),u=[ye,Ee].indexOf(c)>=0,d=u?"height":"width";if(!(!i||!a)){var p=ha(o.padding,n),f=fr(i),h=l==="y"?ge:ye,m=l==="y"?je:Ee,v=n.rects.reference[d]+n.rects.reference[l]-a[l]-n.rects.popper[d],g=a[l]-n.rects.reference[l],w=Wt(i),j=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,O=v/2-g/2,C=p[h],b=j-f[d]-p[m],k=j/2-f[d]/2+O,_=Pt(C,k,b),S=l;n.modifiersData[r]=(e={},e[S]=_,e.centerOffset=_-k,e)}}function va(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;if(o!=null&&!(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o))){if(process.env.NODE_ENV!=="production"&&(we(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(" "))),!ti(e.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}e.elements.arrow=o}}const ga={name:"arrow",enabled:!0,phase:"main",fn:ma,effect:va,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function wt(t){return t.split("-")[1]}var ya={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ba(t){var e=t.x,n=t.y,r=window,o=r.devicePixelRatio||1;return{x:yt(e*o)/o||0,y:yt(n*o)/o||0}}function Hr(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,a=t.offsets,c=t.position,l=t.gpuAcceleration,u=t.adaptive,d=t.roundOffsets,p=t.isFixed,f=a.x,h=f===void 0?0:f,m=a.y,v=m===void 0?0:m,g=typeof d=="function"?d({x:h,y:v}):{x:h,y:v};h=g.x,v=g.y;var w=a.hasOwnProperty("x"),j=a.hasOwnProperty("y"),O=ye,C=ge,b=window;if(u){var k=Wt(n),_="clientHeight",S="clientWidth";if(k===Se(n)&&(k=Ge(n),Ie(k).position!=="static"&&c==="absolute"&&(_="scrollHeight",S="scrollWidth")),k=k,o===ge||(o===ye||o===Ee)&&i===Lt){C=je;var P=p&&k===b&&b.visualViewport?b.visualViewport.height:k[_];v-=P-r.height,v*=l?1:-1}if(o===ye||(o===ge||o===je)&&i===Lt){O=Ee;var R=p&&k===b&&b.visualViewport?b.visualViewport.width:k[S];h-=R-r.width,h*=l?1:-1}}var H=Object.assign({position:c},u&&ya),re=d===!0?ba({x:h,y:v}):{x:h,y:v};if(h=re.x,v=re.y,l){var te;return Object.assign({},H,(te={},te[C]=j?"0":"",te[O]=w?"0":"",te.transform=(b.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",te))}return Object.assign({},H,(e={},e[C]=j?v+"px":"",e[O]=w?h+"px":"",e.transform="",e))}function wa(t){var e=t.state,n=t.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 u=Ie(e.elements.popper).transitionProperty||"";a&&["transform","top","right","bottom","left"].some(function(p){return u.indexOf(p)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
19
19
 
20
20
  `,'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.",`
21
21
 
22
- `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var d={placement:Te(e.placement),variation:bt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Dr(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Dr(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const ya={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ga,data:{}};var Zt={passive:!0};function ba(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,c=a===void 0?!0:a,l=Se(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,Zt)}),c&&l.addEventListener("resize",n.update,Zt),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Zt)}),c&&l.removeEventListener("resize",n.update,Zt)}}const wa={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ba,data:{}};var xa={left:"right",right:"left",bottom:"top",top:"bottom"};function qt(t){return t.replace(/left|right|bottom|top/g,function(e){return xa[e]})}var Ca={start:"end",end:"start"};function Fr(t){return t.replace(/start|end/g,function(e){return Ca[e]})}function fr(t){var e=Se(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function pr(t){return yt($e(t)).left+fr(t).scrollLeft}function Oa(t,e){var n=Se(t),r=$e(t),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,c=0,l=0;if(o){i=o.width,a=o.height;var u=Yo();(u||!u&&e==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:c+pr(t),y:l}}function ja(t){var e,n=$e(t),r=fr(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=tt(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=tt(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+pr(t),l=-r.scrollTop;return Pe(o||n).direction==="rtl"&&(c+=tt(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:l}}function hr(t){var e=Pe(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ti(t){return["html","body","#document"].indexOf(Le(t))>=0?t.ownerDocument.body:we(t)&&hr(t)?t:ti(dn(t))}function Nt(t,e){var n;e===void 0&&(e=[]);var r=ti(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=Se(r),a=o?[i].concat(i.visualViewport||[],hr(r)?r:[]):r,c=e.concat(a);return o?c:c.concat(Nt(dn(a)))}function zn(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ea(t,e){var n=yt(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Ur(t,e,n){return e===qo?zn(Oa(t,n)):nt(e)?Ea(e,n):zn(ja($e(t)))}function Sa(t){var e=Nt(dn(t)),n=["absolute","fixed"].indexOf(Pe(t).position)>=0,r=n&&we(t)?Wt(t):t;return nt(r)?e.filter(function(o){return nt(o)&&Xo(o,r)&&Le(o)!=="body"}):[]}function ka(t,e,n,r){var o=e==="clippingParents"?Sa(t):[].concat(e),i=[].concat(o,[n]),a=i[0],c=i.reduce(function(l,u){var d=Ur(t,u,r);return l.top=tt(d.top,l.top),l.right=en(d.right,l.right),l.bottom=en(d.bottom,l.bottom),l.left=tt(d.left,l.left),l},Ur(t,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 ni(t){var e=t.reference,n=t.element,r=t.placement,o=r?Te(r):null,i=r?bt(r):null,a=e.x+e.width/2-n.width/2,c=e.y+e.height/2-n.height/2,l;switch(o){case ge:l={x:a,y:e.y-n.height};break;case je:l={x:a,y:e.y+e.height};break;case Ee:l={x:e.x+e.width,y:c};break;case ye:l={x:e.x-n.width,y:c};break;default:l={x:e.x,y:e.y}}var u=o?dr(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case vt:l[u]=l[u]-(e[d]/2-n[d]/2);break;case Lt:l[u]=l[u]+(e[d]/2-n[d]/2);break}}return l}function Mt(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.strategy,a=i===void 0?t.strategy:i,c=n.boundary,l=c===void 0?qs:c,u=n.rootBoundary,d=u===void 0?qo:u,p=n.elementContext,f=p===void 0?Et:p,h=n.altBoundary,m=h===void 0?!1:h,v=n.padding,g=v===void 0?0:v,w=Qo(typeof g!="number"?g:ei(g,Ut)),j=f===Et?Ks:Et,O=t.rects.popper,C=t.elements[m?j:f],b=ka(nt(C)?C:C.contextElement||$e(t.elements.popper),l,d,a),k=yt(t.elements.reference),_=ni({reference:k,element:O,strategy:"absolute",placement:o}),S=zn(Object.assign({},O,_)),I=f===Et?S:k,R={top:b.top-I.top+w.top,bottom:I.bottom-b.bottom+w.bottom,left:b.left-I.left+w.left,right:I.right-b.right+w.right},H=t.modifiersData.offset;if(f===Et&&H){var re=H[o];Object.keys(R).forEach(function(te){var se=[Ee,je].indexOf(te)>=0?1:-1,be=[ge,je].indexOf(te)>=0?"y":"x";R[te]+=re[be]*se})}return R}function Ta(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,c=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Ko:l,d=bt(r),p=d?c?Lr:Lr.filter(function(m){return bt(m)===d}):Ut,f=p.filter(function(m){return u.indexOf(m)>=0});f.length===0&&(f=p,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=f.reduce(function(m,v){return m[v]=Mt(t,{placement:v,boundary:o,rootBoundary:i,padding:a})[Te(v)],m},{});return Object.keys(h).sort(function(m,v){return h[m]-h[v]})}function Pa(t){if(Te(t)===un)return[];var e=qt(t);return[Fr(t),e,Fr(e)]}function _a(t){var e=t.state,n=t.options,r=t.name;if(!e.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,u=n.padding,d=n.boundary,p=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,v=n.allowedAutoPlacements,g=e.options.placement,w=Te(g),j=w===g,O=l||(j||!m?[qt(g)]:Pa(g)),C=[g].concat(O).reduce(function(N,M){return N.concat(Te(M)===un?Ta(e,{placement:M,boundary:d,rootBoundary:p,padding:u,flipVariations:m,allowedAutoPlacements:v}):M)},[]),b=e.rects.reference,k=e.rects.popper,_=new Map,S=!0,I=C[0],R=0;R<C.length;R++){var H=C[R],re=Te(H),te=bt(H)===vt,se=[ge,je].indexOf(re)>=0,be=se?"width":"height",J=Mt(e,{placement:H,boundary:d,rootBoundary:p,altBoundary:f,padding:u}),ne=se?te?Ee:ye:te?je:ge;b[be]>k[be]&&(ne=qt(ne));var xe=qt(ne),pe=[];if(i&&pe.push(J[re]<=0),c&&pe.push(J[ne]<=0,J[xe]<=0),pe.every(function(N){return N})){I=H,S=!1;break}_.set(H,pe)}if(S)for(var E=m?3:1,P=function(M){var A=C.find(function(F){var V=_.get(F);if(V)return V.slice(0,M).every(function($){return $})});if(A)return I=A,"break"},L=E;L>0;L--){var D=P(L);if(D==="break")break}e.placement!==I&&(e.modifiersData[r]._skip=!0,e.placement=I,e.reset=!0)}}const Ia={name:"flip",enabled:!0,phase:"main",fn:_a,requiresIfExists:["offset"],data:{_skip:!1}};function Wr(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Hr(t){return[ge,Ee,je,ye].some(function(e){return t[e]>=0})}function Na(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,a=Mt(e,{elementContext:"reference"}),c=Mt(e,{altBoundary:!0}),l=Wr(a,r),u=Wr(c,o,i),d=Hr(l),p=Hr(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}const Aa={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Na};function Ra(t,e,n){var r=Te(t),o=[ye,ge].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[ye,Ee].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}function La(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,a=Ko.reduce(function(d,p){return d[p]=Ra(p,e.rects,i),d},{}),c=a[e.placement],l=c.x,u=c.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=a}const Ma={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:La};function Da(t){var e=t.state,n=t.name;e.modifiersData[n]=ni({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Fa={name:"popperOffsets",enabled:!0,phase:"read",fn:Da,data:{}};function Ua(t){return t==="x"?"y":"x"}function Wa(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,d=n.altBoundary,p=n.padding,f=n.tether,h=f===void 0?!0:f,m=n.tetherOffset,v=m===void 0?0:m,g=Mt(e,{boundary:l,rootBoundary:u,padding:p,altBoundary:d}),w=Te(e.placement),j=bt(e.placement),O=!j,C=dr(w),b=Ua(C),k=e.modifiersData.popperOffsets,_=e.rects.reference,S=e.rects.popper,I=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,R=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,re={x:0,y:0};if(k){if(i){var te,se=C==="y"?ge:ye,be=C==="y"?je:Ee,J=C==="y"?"height":"width",ne=k[C],xe=ne+g[se],pe=ne-g[be],E=h?-S[J]/2:0,P=j===vt?_[J]:S[J],L=j===vt?-S[J]:-_[J],D=e.elements.arrow,N=h&&D?ur(D):{width:0,height:0},M=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Jo(),A=M[se],F=M[be],V=It(0,_[J],N[J]),$=O?_[J]/2-E-V-A-R.mainAxis:P-V-A-R.mainAxis,B=O?-_[J]/2+E+V+F+R.mainAxis:L+V+F+R.mainAxis,ie=e.elements.arrow&&Wt(e.elements.arrow),T=ie?C==="y"?ie.clientTop||0:ie.clientLeft||0:0,fe=(te=H?.[C])!=null?te:0,Ce=ne+$-fe-T,ot=ne+B-fe,it=It(h?en(xe,Ce):xe,ne,h?tt(pe,ot):pe);k[C]=it,re[C]=it-ne}if(c){var He,Ct=C==="x"?ge:ye,wn=C==="x"?je:Ee,_e=k[b],qe=b==="y"?"height":"width",ve=_e+g[Ct],Me=_e-g[wn],Ve=[ge,ye].indexOf(w)!==-1,z=(He=H?.[b])!=null?He:0,q=Ve?ve:_e-_[qe]-S[qe]-z+R.altAxis,U=Ve?_e+_[qe]+S[qe]-z-R.altAxis:Me,Q=h&&Ve?ua(q,_e,U):It(h?q:ve,_e,h?U:Me);k[b]=Q,re[b]=Q-_e}e.modifiersData[r]=re}}const Ha={name:"preventOverflow",enabled:!0,phase:"main",fn:Wa,requiresIfExists:["offset"]};function Va(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function za(t){return t===Se(t)||!we(t)?fr(t):Va(t)}function Ba(t){var e=t.getBoundingClientRect(),n=gt(e.width)/t.offsetWidth||1,r=gt(e.height)/t.offsetHeight||1;return n!==1||r!==1}function Za(t,e,n){n===void 0&&(n=!1);var r=we(e),o=we(e)&&Ba(e),i=$e(e),a=yt(t,o,n),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Le(e)!=="body"||hr(i))&&(c=za(e)),we(e)?(l=yt(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=pr(i))),{x:a.left+c.scrollLeft-l.x,y:a.top+c.scrollTop-l.y,width:a.width,height:a.height}}function $a(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.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=e.get(c);l&&o(l)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||o(i)}),r}function Ga(t){var e=$a(t);return Hn.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function qa(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Be(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(o,i){return o.replace(/%s/,i)},t)}var Ke='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Ka='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Vr=["name","enabled","phase","fn","effect","requires","options"];function Ya(t){t.forEach(function(e){[].concat(Object.keys(e),Vr).filter(function(n,r,o){return o.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof e.name!="string"&&console.error(Be(Ke,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(Be(Ke,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Hn.indexOf(e.phase)<0&&console.error(Be(Ke,e.name,'"phase"',"either "+Hn.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(Be(Ke,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(Be(Ke,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(Be(Ke,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(Be(Ke,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+Vr.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}e.requires&&e.requires.forEach(function(r){t.find(function(o){return o.name===r})==null&&console.error(Be(Ka,String(e.name),r,r))})})})}function Xa(t,e){var n=new Set;return t.filter(function(r){var o=e(r);if(!n.has(o))return n.add(o),!0})}function Ja(t){var e=t.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(e).map(function(n){return e[n]})}var zr="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Qa="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Br={placement:"bottom",modifiers:[],strategy:"absolute"};function Zr(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function ec(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,i=o===void 0?Br:o;return function(c,l,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Br,i),modifiersData:{},elements:{reference:c,popper:l},attributes:{},styles:{}},p=[],f=!1,h={state:d,setOptions:function(w){var j=typeof w=="function"?w(d.options):w;v(),d.options=Object.assign({},i,d.options,j),d.scrollParents={reference:nt(c)?Nt(c):c.contextElement?Nt(c.contextElement):[],popper:Nt(l)};var O=Ga(Ja([].concat(r,d.options.modifiers)));if(d.orderedModifiers=O.filter(function(H){return H.enabled}),process.env.NODE_ENV!=="production"){var C=Xa([].concat(O,d.options.modifiers),function(H){var re=H.name;return re});if(Ya(C),Te(d.options.placement)===un){var b=d.orderedModifiers.find(function(H){var re=H.name;return re==="flip"});b||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var k=Pe(l),_=k.marginTop,S=k.marginRight,I=k.marginBottom,R=k.marginLeft;[_,S,I,R].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(!f){var w=d.elements,j=w.reference,O=w.popper;if(!Zr(j,O)){process.env.NODE_ENV!=="production"&&console.error(zr);return}d.rects={reference:Za(j,Wt(O),d.options.strategy==="fixed"),popper:ur(O)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(H){return d.modifiersData[H.name]=Object.assign({},H.data)});for(var C=0,b=0;b<d.orderedModifiers.length;b++){if(process.env.NODE_ENV!=="production"&&(C+=1,C>100)){console.error(Qa);break}if(d.reset===!0){d.reset=!1,b=-1;continue}var k=d.orderedModifiers[b],_=k.fn,S=k.options,I=S===void 0?{}:S,R=k.name;typeof _=="function"&&(d=_({state:d,options:I,name:R,instance:h})||d)}}},update:qa(function(){return new Promise(function(g){h.forceUpdate(),g(d)})}),destroy:function(){v(),f=!0}};if(!Zr(c,l))return process.env.NODE_ENV!=="production"&&console.error(zr),h;h.setOptions(u).then(function(g){!f&&u.onFirstUpdate&&u.onFirstUpdate(g)});function m(){d.orderedModifiers.forEach(function(g){var w=g.name,j=g.options,O=j===void 0?{}:j,C=g.effect;if(typeof C=="function"){var b=C({state:d,name:w,instance:h,options:O}),k=function(){};p.push(b||k)}})}function v(){p.forEach(function(g){return g()}),p=[]}return h}}var tc=[wa,Fa,ya,aa,Ma,Ia,Ha,ha,Aa],nc=ec({defaultModifiers:tc}),rc=typeof Element<"u",oc=typeof Map=="function",ic=typeof Set=="function",sc=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Kt(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,r,o;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(!Kt(t[r],e[r]))return!1;return!0}var i;if(oc&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i=t.entries();!(r=i.next()).done;)if(!e.has(r.value[0]))return!1;for(i=t.entries();!(r=i.next()).done;)if(!Kt(r.value[1],e.get(r.value[0])))return!1;return!0}if(ic&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i=t.entries();!(r=i.next()).done;)if(!e.has(r.value[0]))return!1;return!0}if(sc&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(t[r]!==e[r])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;if(rc&&t instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&t.$$typeof)&&!Kt(t[o[r]],e[o[r]]))return!1;return!0}return t!==t&&e!==e}var ac=function(e,n){try{return Kt(e,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}},cc=[],lc=function(e,n,r){r===void 0&&(r={});var o=Ze.useRef(null),i={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||cc},a=Ze.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=a[0],l=a[1],u=Ze.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(h){var m=h.state,v=Object.keys(m.elements);Qi.flushSync(function(){l({styles:Ar(v.map(function(g){return[g,m.styles[g]||{}]})),attributes:Ar(v.map(function(g){return[g,m.attributes[g]]}))})})},requires:["computeStyles"]}},[]),d=Ze.useMemo(function(){var f={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[u,{name:"applyStyles",enabled:!1}])};return ac(o.current,f)?o.current||f:(o.current=f,f)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,u]),p=Ze.useRef();return Rr(function(){p.current&&p.current.setOptions(d)},[d]),Rr(function(){if(!(e==null||n==null)){var f=r.createPopper||nc,h=f(e,n,d);return p.current=h,function(){h.destroy(),p.current=null}}},[e,n,r.createPopper]),{state:p.current?p.current.state:null,styles:c.styles,attributes:c.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}};const ri=y.forwardRef((t,e)=>{const{actions:n,className:r,onClose:o,onActionItemClick:i,...a}=t,c=y.useRef({}),[l,u]=y.useState(0),d=p=>{c.current[p]?.focus(),u(p)};return y.useEffect(()=>{c.current[l]?.focus()},[]),s.jsx("ul",{className:G(r,"io-dropdown-panel"),ref:e,...a,"data-testid":"context-menu",onKeyDown:p=>Io({event:p,currentIndex:l,min:0,max:n.length-1,moveFocus:d,onClose:o}),children:n.map((p,f)=>s.jsx("li",{className:G("io-list-item",p.disabled&&"disabled"),...mt(h=>i(h,p)),ref:h=>c.current[f]=h,tabIndex:-1,"data-testid":`context-menu-item-${p.name}`,children:s.jsx("span",{className:"io-list-title",children:p.displayName||p.name})},p.name))})});function mr(t){const{iconName:e,iconSize:n,actions:r,onActionItemClick:o,isTabStop:i}=t,[a,c]=y.useState(!1),[l,u]=y.useState(null),[d,p]=y.useState(null),{styles:f,attributes:h}=lc(l,d,{placement:"bottom-end"});y.useEffect(()=>{if(!a)return;const g=j=>{l?.contains(j.target)||d?.contains(j.target)||c(!1)},w=()=>{document.activeElement?.nodeName==="IFRAME"&&c(!1)};return document.body.addEventListener("click",g,!0),window.addEventListener("blur",w),()=>{document.body.removeEventListener("click",g,!0),window.removeEventListener("blur",w)}},[d,l,a,c]);const m=g=>{g.stopPropagation(),c(w=>!w),d?.focus()},v=(g,w)=>{g.stopPropagation(),o(g,w),c(!1)};return s.jsxs(s.Fragment,{children:[s.jsx(oe,{tabIndex:i?0:-1,size:n,name:e,handleClick:m,ref:u,"data-testid":"context-menu-icon"}),a&&s.jsx(ri,{actions:r,style:f.popper,ref:p,onActionItemClick:v,onClose:()=>{l?.focus(),c(!1)},...h.popper})]})}const oi=t=>{const{className:e,isFavoritismEnabled:n=!0,item:r,onClick:o,onKeyDown:i,focused:a,...c}=t,{favoriteEntities:l,toggleFavorite:u}=cn(),{description:d,icon:p="application",iconSrc:f,isOpen:h=!1,title:m,contextMenuActions:v}=r,g=n&&l.some(w=>w.type===r.type&&w.title===r.title);return s.jsxs("div",{tabIndex:a?0:-1,className:G(e,"io-list-item"),onKeyDown:w=>{if(_o(w)){o(w),w.preventDefault(),w.stopPropagation();return}i(w)},onClick:o,"data-testid":"base-section-item",...c,children:[s.jsxs("div",{className:"io-list-row",children:[s.jsx(oe,{size:8,name:h?"check":"","data-testid":"open-check-icon"}),f?s.jsx(ar,{className:"section-img-icon",src:f,alt:`${m} icon`,size:14,"data-testid":"img-icon"}):s.jsx(oe,{className:"section-icon",size:14,name:p,"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"}),v&&v.length>0&&s.jsx(mr,{iconName:"ellipsis",iconSize:16,actions:v,onActionItemClick:o,isTabStop:a}),n&&s.jsx(oe,{tabIndex:a?0:-1,className:G("favorite",g&&"visible"),name:g?"star-full":"star",handleClick:w=>{w.stopPropagation(),u(r)},size:16,"data-testid":"favorite-icon"})]}),d&&s.jsx("div",{className:"io-list-row",children:s.jsx("span",{className:"description","data-testid":"description",children:d})})]})};var x={},$r={get exports(){return x},set exports(t){x=t}},tn={},uc={get exports(){return tn},set exports(t){tn=t}},Y={};/** @license React v16.13.1
22
+ `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var d={placement:Te(e.placement),variation:wt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Hr(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Hr(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const xa={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:wa,data:{}};var Gt={passive:!0};function Ca(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,c=a===void 0?!0:a,l=Se(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,Gt)}),c&&l.addEventListener("resize",n.update,Gt),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Gt)}),c&&l.removeEventListener("resize",n.update,Gt)}}const Oa={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ca,data:{}};var ja={left:"right",right:"left",bottom:"top",top:"bottom"};function Yt(t){return t.replace(/left|right|bottom|top/g,function(e){return ja[e]})}var Ea={start:"end",end:"start"};function Vr(t){return t.replace(/start|end/g,function(e){return Ea[e]})}function hr(t){var e=Se(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function mr(t){return bt(Ge(t)).left+hr(t).scrollLeft}function Sa(t,e){var n=Se(t),r=Ge(t),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,c=0,l=0;if(o){i=o.width,a=o.height;var u=ei();(u||!u&&e==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:c+mr(t),y:l}}function ka(t){var e,n=Ge(t),r=hr(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=tt(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=tt(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+mr(t),l=-r.scrollTop;return Ie(o||n).direction==="rtl"&&(c+=tt(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:l}}function vr(t){var e=Ie(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ii(t){return["html","body","#document"].indexOf(Me(t))>=0?t.ownerDocument.body:we(t)&&vr(t)?t:ii(hn(t))}function Nt(t,e){var n;e===void 0&&(e=[]);var r=ii(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=Se(r),a=o?[i].concat(i.visualViewport||[],vr(r)?r:[]):r,c=e.concat(a);return o?c:c.concat(Nt(hn(a)))}function zn(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ta(t,e){var n=bt(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Br(t,e,n){return e===Jo?zn(Sa(t,n)):nt(e)?Ta(e,n):zn(ka(Ge(t)))}function Ia(t){var e=Nt(hn(t)),n=["absolute","fixed"].indexOf(Ie(t).position)>=0,r=n&&we(t)?Wt(t):t;return nt(r)?e.filter(function(o){return nt(o)&&ti(o,r)&&Me(o)!=="body"}):[]}function _a(t,e,n,r){var o=e==="clippingParents"?Ia(t):[].concat(e),i=[].concat(o,[n]),a=i[0],c=i.reduce(function(l,u){var d=Br(t,u,r);return l.top=tt(d.top,l.top),l.right=nn(d.right,l.right),l.bottom=nn(d.bottom,l.bottom),l.left=tt(d.left,l.left),l},Br(t,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 si(t){var e=t.reference,n=t.element,r=t.placement,o=r?Te(r):null,i=r?wt(r):null,a=e.x+e.width/2-n.width/2,c=e.y+e.height/2-n.height/2,l;switch(o){case ge:l={x:a,y:e.y-n.height};break;case je:l={x:a,y:e.y+e.height};break;case Ee:l={x:e.x+e.width,y:c};break;case ye:l={x:e.x-n.width,y:c};break;default:l={x:e.x,y:e.y}}var u=o?pr(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case gt:l[u]=l[u]-(e[d]/2-n[d]/2);break;case Lt:l[u]=l[u]+(e[d]/2-n[d]/2);break}}return l}function Mt(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.strategy,a=i===void 0?t.strategy:i,c=n.boundary,l=c===void 0?Xs:c,u=n.rootBoundary,d=u===void 0?Jo:u,p=n.elementContext,f=p===void 0?Et:p,h=n.altBoundary,m=h===void 0?!1:h,v=n.padding,g=v===void 0?0:v,w=ri(typeof g!="number"?g:oi(g,Ut)),j=f===Et?Js:Et,O=t.rects.popper,C=t.elements[m?j:f],b=_a(nt(C)?C:C.contextElement||Ge(t.elements.popper),l,d,a),k=bt(t.elements.reference),_=si({reference:k,element:O,strategy:"absolute",placement:o}),S=zn(Object.assign({},O,_)),P=f===Et?S:k,R={top:b.top-P.top+w.top,bottom:P.bottom-b.bottom+w.bottom,left:b.left-P.left+w.left,right:P.right-b.right+w.right},H=t.modifiersData.offset;if(f===Et&&H){var re=H[o];Object.keys(R).forEach(function(te){var se=[Ee,je].indexOf(te)>=0?1:-1,be=[ge,je].indexOf(te)>=0?"y":"x";R[te]+=re[be]*se})}return R}function Pa(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,c=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Qo:l,d=wt(r),p=d?c?Ur:Ur.filter(function(m){return wt(m)===d}):Ut,f=p.filter(function(m){return u.indexOf(m)>=0});f.length===0&&(f=p,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=f.reduce(function(m,v){return m[v]=Mt(t,{placement:v,boundary:o,rootBoundary:i,padding:a})[Te(v)],m},{});return Object.keys(h).sort(function(m,v){return h[m]-h[v]})}function Na(t){if(Te(t)===pn)return[];var e=Yt(t);return[Vr(t),e,Vr(e)]}function Aa(t){var e=t.state,n=t.options,r=t.name;if(!e.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,u=n.padding,d=n.boundary,p=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,v=n.allowedAutoPlacements,g=e.options.placement,w=Te(g),j=w===g,O=l||(j||!m?[Yt(g)]:Na(g)),C=[g].concat(O).reduce(function(N,M){return N.concat(Te(M)===pn?Pa(e,{placement:M,boundary:d,rootBoundary:p,padding:u,flipVariations:m,allowedAutoPlacements:v}):M)},[]),b=e.rects.reference,k=e.rects.popper,_=new Map,S=!0,P=C[0],R=0;R<C.length;R++){var H=C[R],re=Te(H),te=wt(H)===gt,se=[ge,je].indexOf(re)>=0,be=se?"width":"height",J=Mt(e,{placement:H,boundary:d,rootBoundary:p,altBoundary:f,padding:u}),ne=se?te?Ee:ye:te?je:ge;b[be]>k[be]&&(ne=Yt(ne));var xe=Yt(ne),pe=[];if(i&&pe.push(J[re]<=0),c&&pe.push(J[ne]<=0,J[xe]<=0),pe.every(function(N){return N})){P=H,S=!1;break}_.set(H,pe)}if(S)for(var E=m?3:1,I=function(M){var A=C.find(function(F){var V=_.get(F);if(V)return V.slice(0,M).every(function($){return $})});if(A)return P=A,"break"},L=E;L>0;L--){var D=I(L);if(D==="break")break}e.placement!==P&&(e.modifiersData[r]._skip=!0,e.placement=P,e.reset=!0)}}const Ra={name:"flip",enabled:!0,phase:"main",fn:Aa,requiresIfExists:["offset"],data:{_skip:!1}};function zr(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Zr(t){return[ge,Ee,je,ye].some(function(e){return t[e]>=0})}function La(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,a=Mt(e,{elementContext:"reference"}),c=Mt(e,{altBoundary:!0}),l=zr(a,r),u=zr(c,o,i),d=Zr(l),p=Zr(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}const Ma={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:La};function Da(t,e,n){var r=Te(t),o=[ye,ge].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[ye,Ee].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}function Fa(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,a=Qo.reduce(function(d,p){return d[p]=Da(p,e.rects,i),d},{}),c=a[e.placement],l=c.x,u=c.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=a}const Ua={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Fa};function Wa(t){var e=t.state,n=t.name;e.modifiersData[n]=si({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Ha={name:"popperOffsets",enabled:!0,phase:"read",fn:Wa,data:{}};function Va(t){return t==="x"?"y":"x"}function Ba(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,d=n.altBoundary,p=n.padding,f=n.tether,h=f===void 0?!0:f,m=n.tetherOffset,v=m===void 0?0:m,g=Mt(e,{boundary:l,rootBoundary:u,padding:p,altBoundary:d}),w=Te(e.placement),j=wt(e.placement),O=!j,C=pr(w),b=Va(C),k=e.modifiersData.popperOffsets,_=e.rects.reference,S=e.rects.popper,P=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,R=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,re={x:0,y:0};if(k){if(i){var te,se=C==="y"?ge:ye,be=C==="y"?je:Ee,J=C==="y"?"height":"width",ne=k[C],xe=ne+g[se],pe=ne-g[be],E=h?-S[J]/2:0,I=j===gt?_[J]:S[J],L=j===gt?-S[J]:-_[J],D=e.elements.arrow,N=h&&D?fr(D):{width:0,height:0},M=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ni(),A=M[se],F=M[be],V=Pt(0,_[J],N[J]),$=O?_[J]/2-E-V-A-R.mainAxis:I-V-A-R.mainAxis,z=O?-_[J]/2+E+V+F+R.mainAxis:L+V+F+R.mainAxis,ie=e.elements.arrow&&Wt(e.elements.arrow),T=ie?C==="y"?ie.clientTop||0:ie.clientLeft||0:0,fe=(te=H?.[C])!=null?te:0,Ce=ne+$-fe-T,it=ne+z-fe,st=Pt(h?nn(xe,Ce):xe,ne,h?tt(pe,it):pe);k[C]=st,re[C]=st-ne}if(c){var Ve,Ct=C==="x"?ge:ye,xn=C==="x"?je:Ee,_e=k[b],Ke=b==="y"?"height":"width",ve=_e+g[Ct],De=_e-g[xn],Be=[ge,ye].indexOf(w)!==-1,B=(Ve=H?.[b])!=null?Ve:0,q=Be?ve:_e-_[Ke]-S[Ke]-B+R.altAxis,U=Be?_e+_[Ke]+S[Ke]-B-R.altAxis:De,Q=h&&Be?pa(q,_e,U):Pt(h?q:ve,_e,h?U:De);k[b]=Q,re[b]=Q-_e}e.modifiersData[r]=re}}const za={name:"preventOverflow",enabled:!0,phase:"main",fn:Ba,requiresIfExists:["offset"]};function Za(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function $a(t){return t===Se(t)||!we(t)?hr(t):Za(t)}function Ga(t){var e=t.getBoundingClientRect(),n=yt(e.width)/t.offsetWidth||1,r=yt(e.height)/t.offsetHeight||1;return n!==1||r!==1}function qa(t,e,n){n===void 0&&(n=!1);var r=we(e),o=we(e)&&Ga(e),i=Ge(e),a=bt(t,o,n),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Me(e)!=="body"||vr(i))&&(c=$a(e)),we(e)?(l=bt(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=mr(i))),{x:a.left+c.scrollLeft-l.x,y:a.top+c.scrollTop-l.y,width:a.width,height:a.height}}function Ka(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.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=e.get(c);l&&o(l)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||o(i)}),r}function Ya(t){var e=Ka(t);return Vn.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function Xa(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Ze(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(o,i){return o.replace(/%s/,i)},t)}var Ye='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Ja='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',$r=["name","enabled","phase","fn","effect","requires","options"];function Qa(t){t.forEach(function(e){[].concat(Object.keys(e),$r).filter(function(n,r,o){return o.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof e.name!="string"&&console.error(Ze(Ye,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(Ze(Ye,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Vn.indexOf(e.phase)<0&&console.error(Ze(Ye,e.name,'"phase"',"either "+Vn.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(Ze(Ye,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(Ze(Ye,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(Ze(Ye,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(Ze(Ye,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+$r.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}e.requires&&e.requires.forEach(function(r){t.find(function(o){return o.name===r})==null&&console.error(Ze(Ja,String(e.name),r,r))})})})}function ec(t,e){var n=new Set;return t.filter(function(r){var o=e(r);if(!n.has(o))return n.add(o),!0})}function tc(t){var e=t.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(e).map(function(n){return e[n]})}var Gr="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",nc="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",qr={placement:"bottom",modifiers:[],strategy:"absolute"};function Kr(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function rc(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,i=o===void 0?qr:o;return function(c,l,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},qr,i),modifiersData:{},elements:{reference:c,popper:l},attributes:{},styles:{}},p=[],f=!1,h={state:d,setOptions:function(w){var j=typeof w=="function"?w(d.options):w;v(),d.options=Object.assign({},i,d.options,j),d.scrollParents={reference:nt(c)?Nt(c):c.contextElement?Nt(c.contextElement):[],popper:Nt(l)};var O=Ya(tc([].concat(r,d.options.modifiers)));if(d.orderedModifiers=O.filter(function(H){return H.enabled}),process.env.NODE_ENV!=="production"){var C=ec([].concat(O,d.options.modifiers),function(H){var re=H.name;return re});if(Qa(C),Te(d.options.placement)===pn){var b=d.orderedModifiers.find(function(H){var re=H.name;return re==="flip"});b||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var k=Ie(l),_=k.marginTop,S=k.marginRight,P=k.marginBottom,R=k.marginLeft;[_,S,P,R].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(!f){var w=d.elements,j=w.reference,O=w.popper;if(!Kr(j,O)){process.env.NODE_ENV!=="production"&&console.error(Gr);return}d.rects={reference:qa(j,Wt(O),d.options.strategy==="fixed"),popper:fr(O)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(H){return d.modifiersData[H.name]=Object.assign({},H.data)});for(var C=0,b=0;b<d.orderedModifiers.length;b++){if(process.env.NODE_ENV!=="production"&&(C+=1,C>100)){console.error(nc);break}if(d.reset===!0){d.reset=!1,b=-1;continue}var k=d.orderedModifiers[b],_=k.fn,S=k.options,P=S===void 0?{}:S,R=k.name;typeof _=="function"&&(d=_({state:d,options:P,name:R,instance:h})||d)}}},update:Xa(function(){return new Promise(function(g){h.forceUpdate(),g(d)})}),destroy:function(){v(),f=!0}};if(!Kr(c,l))return process.env.NODE_ENV!=="production"&&console.error(Gr),h;h.setOptions(u).then(function(g){!f&&u.onFirstUpdate&&u.onFirstUpdate(g)});function m(){d.orderedModifiers.forEach(function(g){var w=g.name,j=g.options,O=j===void 0?{}:j,C=g.effect;if(typeof C=="function"){var b=C({state:d,name:w,instance:h,options:O}),k=function(){};p.push(b||k)}})}function v(){p.forEach(function(g){return g()}),p=[]}return h}}var oc=[Oa,Ha,xa,ua,Ua,Ra,za,ga,Ma],ic=rc({defaultModifiers:oc}),sc=typeof Element<"u",ac=typeof Map=="function",cc=typeof Set=="function",lc=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Xt(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,r,o;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(!Xt(t[r],e[r]))return!1;return!0}var i;if(ac&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i=t.entries();!(r=i.next()).done;)if(!e.has(r.value[0]))return!1;for(i=t.entries();!(r=i.next()).done;)if(!Xt(r.value[1],e.get(r.value[0])))return!1;return!0}if(cc&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i=t.entries();!(r=i.next()).done;)if(!e.has(r.value[0]))return!1;return!0}if(lc&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(t[r]!==e[r])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;if(sc&&t instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&t.$$typeof)&&!Xt(t[o[r]],e[o[r]]))return!1;return!0}return t!==t&&e!==e}var uc=function(e,n){try{return Xt(e,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}},dc=[],fc=function(e,n,r){r===void 0&&(r={});var o=$e.useRef(null),i={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||dc},a=$e.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=a[0],l=a[1],u=$e.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(h){var m=h.state,v=Object.keys(m.elements);es.flushSync(function(){l({styles:Dr(v.map(function(g){return[g,m.styles[g]||{}]})),attributes:Dr(v.map(function(g){return[g,m.attributes[g]]}))})})},requires:["computeStyles"]}},[]),d=$e.useMemo(function(){var f={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[u,{name:"applyStyles",enabled:!1}])};return uc(o.current,f)?o.current||f:(o.current=f,f)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,u]),p=$e.useRef();return Fr(function(){p.current&&p.current.setOptions(d)},[d]),Fr(function(){if(!(e==null||n==null)){var f=r.createPopper||ic,h=f(e,n,d);return p.current=h,function(){h.destroy(),p.current=null}}},[e,n,r.createPopper]),{state:p.current?p.current.state:null,styles:c.styles,attributes:c.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}};const ai=y.forwardRef((t,e)=>{const{actions:n,className:r,onClose:o,onActionItemClick:i,...a}=t,c=y.useRef({}),[l,u]=y.useState(0),d=p=>{c.current[p]?.focus(),u(p)};return y.useEffect(()=>{c.current[l]?.focus()},[]),s.jsx("ul",{className:G(r,"io-dropdown-panel"),ref:e,...a,"data-testid":"context-menu",onKeyDown:p=>Mo({event:p,currentIndex:l,min:0,max:n.length-1,moveFocus:d,onClose:o}),children:n.map((p,f)=>s.jsx("li",{className:G("io-list-item",p.disabled&&"disabled"),...vt(h=>i(h,p)),ref:h=>c.current[f]=h,tabIndex:-1,"data-testid":`context-menu-item-${p.name}`,children:s.jsx("span",{className:"io-list-title",children:p.displayName||p.name})},p.name))})});function gr(t){const{iconName:e,iconSize:n,actions:r,onActionItemClick:o,isTabStop:i}=t,[a,c]=y.useState(!1),[l,u]=y.useState(null),[d,p]=y.useState(null),{styles:f,attributes:h}=fc(l,d,{placement:"bottom-end"});y.useEffect(()=>{if(!a)return;const g=j=>{l?.contains(j.target)||d?.contains(j.target)||c(!1)},w=()=>{document.activeElement?.nodeName==="IFRAME"&&c(!1)};return document.body.addEventListener("click",g,!0),window.addEventListener("blur",w),()=>{document.body.removeEventListener("click",g,!0),window.removeEventListener("blur",w)}},[d,l,a,c]);const m=g=>{g.stopPropagation(),c(w=>!w),d?.focus()},v=(g,w)=>{g.stopPropagation(),o(g,w),c(!1)};return s.jsxs(s.Fragment,{children:[s.jsx(oe,{tabIndex:i?0:-1,size:n,name:e,handleClick:m,ref:u,"data-testid":"context-menu-icon"}),a&&s.jsx(ai,{actions:r,style:f.popper,ref:p,onActionItemClick:v,onClose:()=>{l?.focus(),c(!1)},...h.popper})]})}const ci=t=>{const{className:e,isFavoritismEnabled:n=!0,item:r,onClick:o,onKeyDown:i,focused:a,...c}=t,{favoriteEntities:l,toggleFavorite:u}=un(),{description:d,icon:p="application",iconSrc:f,isOpen:h=!1,title:m,contextMenuActions:v}=r,g=n&&l.some(w=>w.type===r.type&&w.title===r.title);return s.jsxs("div",{tabIndex:a?0:-1,className:G(e,"io-list-item"),onKeyDown:w=>{if(Lo(w)){o(w),w.preventDefault(),w.stopPropagation();return}i(w)},onClick:o,"data-testid":"base-section-item",...c,children:[s.jsxs("div",{className:"io-list-row",children:[s.jsx(oe,{size:8,name:h?"check":"","data-testid":"open-check-icon"}),f?s.jsx(cr,{className:"section-img-icon",src:f,alt:`${m} icon`,size:14,"data-testid":"img-icon"}):s.jsx(oe,{className:"section-icon",size:14,name:p,"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"}),v&&v.length>0&&s.jsx(gr,{iconName:"ellipsis",iconSize:16,actions:v,onActionItemClick:o,isTabStop:a}),n&&s.jsx(oe,{tabIndex:a?0:-1,className:G("favorite",g&&"visible"),name:g?"star-full":"star",handleClick:w=>{w.stopPropagation(),u(r)},size:16,"data-testid":"favorite-icon"})]}),d&&s.jsx("div",{className:"io-list-row",children:s.jsx("span",{className:"description","data-testid":"description",children:d})})]})};var x={},Yr={get exports(){return x},set exports(t){x=t}},rn={},pc={get exports(){return rn},set exports(t){rn=t}},Y={};/** @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 Gr;function dc(){if(Gr)return Y;Gr=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,j=t?Symbol.for("react.scope"):60119;function O(b){if(typeof b=="object"&&b!==null){var k=b.$$typeof;switch(k){case e:switch(b=b.type,b){case l:case u:case r:case i:case o:case p:return b;default:switch(b=b&&b.$$typeof,b){case c:case d:case m:case h:case a:return b;default:return k}}case n:return k}}}function C(b){return O(b)===u}return Y.AsyncMode=l,Y.ConcurrentMode=u,Y.ContextConsumer=c,Y.ContextProvider=a,Y.Element=e,Y.ForwardRef=d,Y.Fragment=r,Y.Lazy=m,Y.Memo=h,Y.Portal=n,Y.Profiler=i,Y.StrictMode=o,Y.Suspense=p,Y.isAsyncMode=function(b){return C(b)||O(b)===l},Y.isConcurrentMode=C,Y.isContextConsumer=function(b){return O(b)===c},Y.isContextProvider=function(b){return O(b)===a},Y.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Y.isForwardRef=function(b){return O(b)===d},Y.isFragment=function(b){return O(b)===r},Y.isLazy=function(b){return O(b)===m},Y.isMemo=function(b){return O(b)===h},Y.isPortal=function(b){return O(b)===n},Y.isProfiler=function(b){return O(b)===i},Y.isStrictMode=function(b){return O(b)===o},Y.isSuspense=function(b){return O(b)===p},Y.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===u||b===i||b===o||b===p||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===h||b.$$typeof===a||b.$$typeof===c||b.$$typeof===d||b.$$typeof===g||b.$$typeof===w||b.$$typeof===j||b.$$typeof===v)},Y.typeOf=O,Y}var X={};/** @license React v16.13.1
29
+ */var Xr;function hc(){if(Xr)return Y;Xr=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,j=t?Symbol.for("react.scope"):60119;function O(b){if(typeof b=="object"&&b!==null){var k=b.$$typeof;switch(k){case e:switch(b=b.type,b){case l:case u:case r:case i:case o:case p:return b;default:switch(b=b&&b.$$typeof,b){case c:case d:case m:case h:case a:return b;default:return k}}case n:return k}}}function C(b){return O(b)===u}return Y.AsyncMode=l,Y.ConcurrentMode=u,Y.ContextConsumer=c,Y.ContextProvider=a,Y.Element=e,Y.ForwardRef=d,Y.Fragment=r,Y.Lazy=m,Y.Memo=h,Y.Portal=n,Y.Profiler=i,Y.StrictMode=o,Y.Suspense=p,Y.isAsyncMode=function(b){return C(b)||O(b)===l},Y.isConcurrentMode=C,Y.isContextConsumer=function(b){return O(b)===c},Y.isContextProvider=function(b){return O(b)===a},Y.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Y.isForwardRef=function(b){return O(b)===d},Y.isFragment=function(b){return O(b)===r},Y.isLazy=function(b){return O(b)===m},Y.isMemo=function(b){return O(b)===h},Y.isPortal=function(b){return O(b)===n},Y.isProfiler=function(b){return O(b)===i},Y.isStrictMode=function(b){return O(b)===o},Y.isSuspense=function(b){return O(b)===p},Y.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===u||b===i||b===o||b===p||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===h||b.$$typeof===a||b.$$typeof===c||b.$$typeof===d||b.$$typeof===g||b.$$typeof===w||b.$$typeof===j||b.$$typeof===v)},Y.typeOf=O,Y}var X={};/** @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 qr;function fc(){return qr||(qr=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,j=t?Symbol.for("react.scope"):60119;function O(T){return typeof T=="string"||typeof T=="function"||T===r||T===u||T===i||T===o||T===p||T===f||typeof T=="object"&&T!==null&&(T.$$typeof===m||T.$$typeof===h||T.$$typeof===a||T.$$typeof===c||T.$$typeof===d||T.$$typeof===g||T.$$typeof===w||T.$$typeof===j||T.$$typeof===v)}function C(T){if(typeof T=="object"&&T!==null){var fe=T.$$typeof;switch(fe){case e:var Ce=T.type;switch(Ce){case l:case u:case r:case i:case o:case p:return Ce;default:var ot=Ce&&Ce.$$typeof;switch(ot){case c:case d:case m:case h:case a:return ot;default:return fe}}case n:return fe}}}var b=l,k=u,_=c,S=a,I=e,R=d,H=r,re=m,te=h,se=n,be=i,J=o,ne=p,xe=!1;function pe(T){return xe||(xe=!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.")),E(T)||C(T)===l}function E(T){return C(T)===u}function P(T){return C(T)===c}function L(T){return C(T)===a}function D(T){return typeof T=="object"&&T!==null&&T.$$typeof===e}function N(T){return C(T)===d}function M(T){return C(T)===r}function A(T){return C(T)===m}function F(T){return C(T)===h}function V(T){return C(T)===n}function $(T){return C(T)===i}function B(T){return C(T)===o}function ie(T){return C(T)===p}X.AsyncMode=b,X.ConcurrentMode=k,X.ContextConsumer=_,X.ContextProvider=S,X.Element=I,X.ForwardRef=R,X.Fragment=H,X.Lazy=re,X.Memo=te,X.Portal=se,X.Profiler=be,X.StrictMode=J,X.Suspense=ne,X.isAsyncMode=pe,X.isConcurrentMode=E,X.isContextConsumer=P,X.isContextProvider=L,X.isElement=D,X.isForwardRef=N,X.isFragment=M,X.isLazy=A,X.isMemo=F,X.isPortal=V,X.isProfiler=$,X.isStrictMode=B,X.isSuspense=ie,X.isValidElementType=O,X.typeOf=C}()),X}var Kr;function ii(){return Kr||(Kr=1,function(t){process.env.NODE_ENV==="production"?t.exports=dc():t.exports=fc()}(uc)),tn}/*
36
+ */var Jr;function mc(){return Jr||(Jr=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,j=t?Symbol.for("react.scope"):60119;function O(T){return typeof T=="string"||typeof T=="function"||T===r||T===u||T===i||T===o||T===p||T===f||typeof T=="object"&&T!==null&&(T.$$typeof===m||T.$$typeof===h||T.$$typeof===a||T.$$typeof===c||T.$$typeof===d||T.$$typeof===g||T.$$typeof===w||T.$$typeof===j||T.$$typeof===v)}function C(T){if(typeof T=="object"&&T!==null){var fe=T.$$typeof;switch(fe){case e:var Ce=T.type;switch(Ce){case l:case u:case r:case i:case o:case p:return Ce;default:var it=Ce&&Ce.$$typeof;switch(it){case c:case d:case m:case h:case a:return it;default:return fe}}case n:return fe}}}var b=l,k=u,_=c,S=a,P=e,R=d,H=r,re=m,te=h,se=n,be=i,J=o,ne=p,xe=!1;function pe(T){return xe||(xe=!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.")),E(T)||C(T)===l}function E(T){return C(T)===u}function I(T){return C(T)===c}function L(T){return C(T)===a}function D(T){return typeof T=="object"&&T!==null&&T.$$typeof===e}function N(T){return C(T)===d}function M(T){return C(T)===r}function A(T){return C(T)===m}function F(T){return C(T)===h}function V(T){return C(T)===n}function $(T){return C(T)===i}function z(T){return C(T)===o}function ie(T){return C(T)===p}X.AsyncMode=b,X.ConcurrentMode=k,X.ContextConsumer=_,X.ContextProvider=S,X.Element=P,X.ForwardRef=R,X.Fragment=H,X.Lazy=re,X.Memo=te,X.Portal=se,X.Profiler=be,X.StrictMode=J,X.Suspense=ne,X.isAsyncMode=pe,X.isConcurrentMode=E,X.isContextConsumer=I,X.isContextProvider=L,X.isElement=D,X.isForwardRef=N,X.isFragment=M,X.isLazy=A,X.isMemo=F,X.isPortal=V,X.isProfiler=$,X.isStrictMode=z,X.isSuspense=ie,X.isValidElementType=O,X.typeOf=C}()),X}var Qr;function li(){return Qr||(Qr=1,function(t){process.env.NODE_ENV==="production"?t.exports=hc():t.exports=mc()}(pc)),rn}/*
37
37
  object-assign
38
38
  (c) Sindre Sorhus
39
39
  @license MIT
40
- */var jn,Yr;function pc(){if(Yr)return jn;Yr=1;var t=Object.getOwnPropertySymbols,e=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(d){return a[d]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return jn=o()?Object.assign:function(i,a){for(var c,l=r(i),u,d=1;d<arguments.length;d++){c=Object(arguments[d]);for(var p in c)e.call(c,p)&&(l[p]=c[p]);if(t){u=t(c);for(var f=0;f<u.length;f++)n.call(c,u[f])&&(l[u[f]]=c[u[f]])}}return l},jn}var En,Xr;function vr(){if(Xr)return En;Xr=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return En=t,En}var Sn,Jr;function si(){return Jr||(Jr=1,Sn=Function.call.bind(Object.prototype.hasOwnProperty)),Sn}var kn,Qr;function hc(){if(Qr)return kn;Qr=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=vr(),n={},r=si();t=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,c,l,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(r(i,d)){var p;try{if(typeof i[d]!="function"){var f=Error((l||"React class")+": "+c+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}p=i[d](a,d,l,c,null,e)}catch(m){p=m}if(p&&!(p instanceof Error)&&t((l||"React class")+": type specification of "+c+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var h=u?u():"";t("Failed "+c+" type: "+p.message+(h??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},kn=o,kn}var Tn,eo;function mc(){if(eo)return Tn;eo=1;var t=ii(),e=pc(),n=vr(),r=si(),o=hc(),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 Tn=function(c,l){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p(E){var P=E&&(u&&E[u]||E[d]);if(typeof P=="function")return P}var f="<<anonymous>>",h={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:j(),arrayOf:O,element:C(),elementType:b(),instanceOf:k,node:R(),objectOf:S,oneOf:_,oneOfType:I,shape:re,exact:te};function m(E,P){return E===P?E!==0||1/E===1/P:E!==E&&P!==P}function v(E,P){this.message=E,this.data=P&&typeof P=="object"?P:{},this.stack=""}v.prototype=Error.prototype;function g(E){if(process.env.NODE_ENV!=="production")var P={},L=0;function D(M,A,F,V,$,B,ie){if(V=V||f,B=B||F,ie!==n){if(l){var T=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 T.name="Invariant Violation",T}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var fe=V+":"+F;!P[fe]&&L<3&&(i("You are manually calling a React.PropTypes validation function for the `"+B+"` prop on `"+V+"`. 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."),P[fe]=!0,L++)}}return A[F]==null?M?A[F]===null?new v("The "+$+" `"+B+"` is marked as required "+("in `"+V+"`, but its value is `null`.")):new v("The "+$+" `"+B+"` is marked as required in "+("`"+V+"`, but its value is `undefined`.")):null:E(A,F,V,$,B)}var N=D.bind(null,!1);return N.isRequired=D.bind(null,!0),N}function w(E){function P(L,D,N,M,A,F){var V=L[D],$=J(V);if($!==E){var B=ne(V);return new v("Invalid "+M+" `"+A+"` of type "+("`"+B+"` supplied to `"+N+"`, expected ")+("`"+E+"`."),{expectedType:E})}return null}return g(P)}function j(){return g(a)}function O(E){function P(L,D,N,M,A){if(typeof E!="function")return new v("Property `"+A+"` of component `"+N+"` has invalid PropType notation inside arrayOf.");var F=L[D];if(!Array.isArray(F)){var V=J(F);return new v("Invalid "+M+" `"+A+"` of type "+("`"+V+"` supplied to `"+N+"`, expected an array."))}for(var $=0;$<F.length;$++){var B=E(F,$,N,M,A+"["+$+"]",n);if(B instanceof Error)return B}return null}return g(P)}function C(){function E(P,L,D,N,M){var A=P[L];if(!c(A)){var F=J(A);return new v("Invalid "+N+" `"+M+"` of type "+("`"+F+"` supplied to `"+D+"`, expected a single ReactElement."))}return null}return g(E)}function b(){function E(P,L,D,N,M){var A=P[L];if(!t.isValidElementType(A)){var F=J(A);return new v("Invalid "+N+" `"+M+"` of type "+("`"+F+"` supplied to `"+D+"`, expected a single ReactElement type."))}return null}return g(E)}function k(E){function P(L,D,N,M,A){if(!(L[D]instanceof E)){var F=E.name||f,V=pe(L[D]);return new v("Invalid "+M+" `"+A+"` of type "+("`"+V+"` supplied to `"+N+"`, expected ")+("instance of `"+F+"`."))}return null}return g(P)}function _(E){if(!Array.isArray(E))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 P(L,D,N,M,A){for(var F=L[D],V=0;V<E.length;V++)if(m(F,E[V]))return null;var $=JSON.stringify(E,function(ie,T){var fe=ne(T);return fe==="symbol"?String(T):T});return new v("Invalid "+M+" `"+A+"` of value `"+String(F)+"` "+("supplied to `"+N+"`, expected one of "+$+"."))}return g(P)}function S(E){function P(L,D,N,M,A){if(typeof E!="function")return new v("Property `"+A+"` of component `"+N+"` has invalid PropType notation inside objectOf.");var F=L[D],V=J(F);if(V!=="object")return new v("Invalid "+M+" `"+A+"` of type "+("`"+V+"` supplied to `"+N+"`, expected an object."));for(var $ in F)if(r(F,$)){var B=E(F,$,N,M,A+"."+$,n);if(B instanceof Error)return B}return null}return g(P)}function I(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var P=0;P<E.length;P++){var L=E[P];if(typeof L!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+xe(L)+" at index "+P+"."),a}function D(N,M,A,F,V){for(var $=[],B=0;B<E.length;B++){var ie=E[B],T=ie(N,M,A,F,V,n);if(T==null)return null;T.data&&r(T.data,"expectedType")&&$.push(T.data.expectedType)}var fe=$.length>0?", expected one of type ["+$.join(", ")+"]":"";return new v("Invalid "+F+" `"+V+"` supplied to "+("`"+A+"`"+fe+"."))}return g(D)}function R(){function E(P,L,D,N,M){return se(P[L])?null:new v("Invalid "+N+" `"+M+"` supplied to "+("`"+D+"`, expected a ReactNode."))}return g(E)}function H(E,P,L,D,N){return new v((E||"React class")+": "+P+" type `"+L+"."+D+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+N+"`.")}function re(E){function P(L,D,N,M,A){var F=L[D],V=J(F);if(V!=="object")return new v("Invalid "+M+" `"+A+"` of type `"+V+"` "+("supplied to `"+N+"`, expected `object`."));for(var $ in E){var B=E[$];if(typeof B!="function")return H(N,M,A,$,ne(B));var ie=B(F,$,N,M,A+"."+$,n);if(ie)return ie}return null}return g(P)}function te(E){function P(L,D,N,M,A){var F=L[D],V=J(F);if(V!=="object")return new v("Invalid "+M+" `"+A+"` of type `"+V+"` "+("supplied to `"+N+"`, expected `object`."));var $=e({},L[D],E);for(var B in $){var ie=E[B];if(r(E,B)&&typeof ie!="function")return H(N,M,A,B,ne(ie));if(!ie)return new v("Invalid "+M+" `"+A+"` key `"+B+"` supplied to `"+N+"`.\nBad object: "+JSON.stringify(L[D],null," ")+`
41
- Valid keys: `+JSON.stringify(Object.keys(E),null," "));var T=ie(F,B,N,M,A+"."+B,n);if(T)return T}return null}return g(P)}function se(E){switch(typeof E){case"number":case"string":case"undefined":return!0;case"boolean":return!E;case"object":if(Array.isArray(E))return E.every(se);if(E===null||c(E))return!0;var P=p(E);if(P){var L=P.call(E),D;if(P!==E.entries){for(;!(D=L.next()).done;)if(!se(D.value))return!1}else for(;!(D=L.next()).done;){var N=D.value;if(N&&!se(N[1]))return!1}}else return!1;return!0;default:return!1}}function be(E,P){return E==="symbol"?!0:P?P["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&P instanceof Symbol:!1}function J(E){var P=typeof E;return Array.isArray(E)?"array":E instanceof RegExp?"object":be(P,E)?"symbol":P}function ne(E){if(typeof E>"u"||E===null)return""+E;var P=J(E);if(P==="object"){if(E instanceof Date)return"date";if(E instanceof RegExp)return"regexp"}return P}function xe(E){var P=ne(E);switch(P){case"array":case"object":return"an "+P;case"boolean":case"date":case"regexp":return"a "+P;default:return P}}function pe(E){return!E.constructor||!E.constructor.name?f:E.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},Tn}var Pn,to;function vc(){if(to)return Pn;to=1;var t=vr();function e(){}function n(){}return n.resetWarningCache=e,Pn=function(){function r(a,c,l,u,d,p){if(p!==t){var f=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 f.name="Invariant Violation",f}}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:e};return i.PropTypes=i,i},Pn}if(process.env.NODE_ENV!=="production"){var gc=ii(),yc=!0;$r.exports=mc()(gc.isElement,yc)}else $r.exports=vc()();function Bn(t){return Bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bn(t)}var bc;function Ht(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bc;return e?t.split(" ").map(function(n){return e[n]||n}).join(" "):t}function wc(t,e){var n={};return Object.keys(t).forEach(function(r){e.indexOf(r)===-1&&(n[r]=t[r])}),n}function xc(t,e){for(var n=Array.isArray(e)?e:[e],r=n.length,o,i={};r>0;)r-=1,o=n[r],i[o]=t[o];return i}var Cc=(typeof window>"u"?"undefined":Bn(window))==="object"&&window.Element||function(){};function Oc(t,e,n){if(!(t[e]instanceof Cc))return new Error("Invalid prop `"+e+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}x.oneOfType([x.string,x.func,Oc,x.shape({current:x.any})]);var fn=x.oneOfType([x.func,x.string,x.shape({$$typeof:x.symbol,render:x.func}),x.arrayOf(x.oneOfType([x.func,x.string,x.shape({$$typeof:x.symbol,render:x.func})]))]),jc={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},no=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],$t={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},Ec=["className","cssModule","variant","innerRef"];function Zn(){return Zn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Zn.apply(this,arguments)}function ro(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Sc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ro(Object(n),!0).forEach(function(r){kc(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ro(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function kc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Tc(t,e){if(t==null)return{};var n=Pc(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Pc(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}var _c={active:x.bool,"aria-label":x.string,onClick:x.func,variant:x.oneOf(["white"]),className:x.string,cssModule:x.object,innerRef:x.oneOfType([x.object,x.string,x.func])};function ai(t){var e=t.className;t.cssModule;var n=t.variant,r=t.innerRef,o=Tc(t,Ec),i=Ht(G(e,"btn-close",n&&"btn-close-".concat(n)));return y.createElement("button",Zn({ref:r,type:"button",className:i},Sc({"aria-label":"close"},o)))}ai.propTypes=_c;var Ic=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function $n(){return $n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},$n.apply(this,arguments)}function Nc(t,e){if(t==null)return{};var n=Ac(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Ac(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}var Rc={active:x.bool,"aria-label":x.string,block:x.bool,children:x.node,className:x.string,cssModule:x.object,close:x.bool,color:x.string,disabled:x.bool,innerRef:x.oneOfType([x.object,x.func,x.string]),onClick:x.func,outline:x.bool,size:x.string,tag:fn};function pn(t){var e=y.useCallback(function(j){if(t.disabled){j.preventDefault();return}if(t.onClick)return t.onClick(j)},[t.onClick,t.disabled]),n=t.active,r=t["aria-label"],o=t.block,i=t.className,a=t.close,c=t.cssModule,l=t.color,u=l===void 0?"secondary":l,d=t.outline,p=t.size,f=t.tag,h=f===void 0?"button":f,m=t.innerRef,v=Nc(t,Ic);if(a)return y.createElement(ai,v);var g="btn".concat(d?"-outline":"","-").concat(u),w=Ht(G(i,"btn",g,p?"btn-".concat(p):!1,o?"d-block w-100":!1,{active:n,disabled:t.disabled}),c);return v.href&&h==="button"&&(h="a"),y.createElement(h,$n({type:h==="button"&&v.onClick?"button":void 0},v,{className:w,ref:m,onClick:e,"aria-label":r}))}pn.propTypes=Rc;function Lc(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Gn(t,e){return Gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Gn(t,e)}function Mc(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Gn(t,e)}const oo={disabled:!1};var Dc=process.env.NODE_ENV!=="production"?x.oneOfType([x.number,x.shape({enter:x.number,exit:x.number,appear:x.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&x.oneOfType([x.string,x.shape({enter:x.string,exit:x.string,active:x.string}),x.shape({enter:x.string,enterDone:x.string,enterActive:x.string,exit:x.string,exitDone:x.string,exitActive:x.string})]);const ci=y.createContext(null);var Fc=function(e){return e.scrollTop},Pt="unmounted",Ye="exited",Xe="entering",ut="entered",qn="exiting",We=function(t){Mc(e,t);function e(r,o){var i;i=t.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=Ye,i.appearStatus=Xe):l=ut:r.unmountOnExit||r.mountOnEnter?l=Pt:l=Ye,i.state={status:l},i.nextCallback=null,i}e.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Pt?{status:Ye}:null};var n=e.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!==Xe&&a!==ut&&(i=Xe):(a===Xe||a===ut)&&(i=qn)}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===Xe){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:kt.findDOMNode(this);a&&Fc(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ye&&this.setState({status:Pt})},n.performEnter=function(o){var i=this,a=this.props.enter,c=this.context?this.context.isMounting:o,l=this.props.nodeRef?[c]:[kt.findDOMNode(this),c],u=l[0],d=l[1],p=this.getTimeouts(),f=c?p.appear:p.enter;if(!o&&!a||oo.disabled){this.safeSetState({status:ut},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Xe},function(){i.props.onEntering(u,d),i.onTransitionEnd(f,function(){i.safeSetState({status:ut},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),c=this.props.nodeRef?void 0:kt.findDOMNode(this);if(!i||oo.disabled){this.safeSetState({status:Ye},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:qn},function(){o.props.onExiting(c),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Ye},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:kt.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],u=l[0],d=l[1];this.props.addEndListener(u,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Pt)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=Lc(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return y.createElement(ci.Provider,{value:null},typeof a=="function"?a(o,c):y.cloneElement(y.Children.only(a),c))},e}(y.Component);We.contextType=ci;We.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:x.shape({current:typeof Element>"u"?x.any:function(t,e,n,r,o,i){var a=t[e];return x.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(t,e,n,r,o,i)}}),children:x.oneOfType([x.func.isRequired,x.element.isRequired]).isRequired,in:x.bool,mountOnEnter:x.bool,unmountOnExit:x.bool,appear:x.bool,enter:x.bool,exit:x.bool,timeout:function(e){var n=Dc;e.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,[e].concat(o))},addEndListener:x.func,onEnter:x.func,onEntering:x.func,onEntered:x.func,onExit:x.func,onExiting:x.func,onExited:x.func}:{};function st(){}We.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:st,onEntering:st,onEntered:st,onExit:st,onExiting:st,onExited:st};We.UNMOUNTED=Pt;We.EXITED=Ye;We.ENTERING=Xe;We.ENTERED=ut;We.EXITING=qn;const gr=We;function Kn(t){return Kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kn(t)}var Uc=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],at;function nn(){return nn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},nn.apply(this,arguments)}function Wc(t,e){if(t==null)return{};var n=Hc(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Hc(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Vc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function io(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function zc(t,e,n){return e&&io(t.prototype,e),n&&io(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Bc(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Yn(t,e)}function Yn(t,e){return Yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Yn(t,e)}function Zc(t){var e=Gc();return function(){var r=rn(t),o;if(e){var i=rn(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return $c(this,o)}}function $c(t,e){if(e&&(Kn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return li(t)}function li(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Gc(){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 rn(t){return rn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rn(t)}function so(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function wt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?so(Object(n),!0).forEach(function(r){ft(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):so(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ft(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var qc=wt(wt({},gr.propTypes),{},{horizontal:x.bool,isOpen:x.bool,children:x.oneOfType([x.arrayOf(x.node),x.node]),tag:fn,className:x.node,navbar:x.bool,cssModule:x.object,innerRef:x.shape({current:x.object})}),Kc=wt(wt({},gr.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:jc.Collapse}),Yc=(at={},ft(at,$t.ENTERING,"collapsing"),ft(at,$t.ENTERED,"collapse show"),ft(at,$t.EXITING,"collapsing"),ft(at,$t.EXITED,"collapse"),at);function Xc(t){return Yc[t]||"collapse"}var yr=function(t){Bc(n,t);var e=Zc(n);function n(r){var o;return Vc(this,n),o=e.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(li(o))}),o}return zc(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,u=i.className,d=i.navbar,p=i.cssModule,f=i.children;i.innerRef;var h=Wc(i,Uc),m=this.state.dimension,v=xc(h,no),g=wc(h,no);return y.createElement(gr,nn({},v,{in:l,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(w){var j=Xc(w),O=Ht(G(u,c&&"collapse-horizontal",j,d&&"navbar-collapse"),p),C=m===null?null:ft({},c?"width":"height",m);return y.createElement(a,nn({},g,{style:wt(wt({},g.style),C),className:O,ref:o.nodeRef}),f)})}}]),n}(y.Component);yr.propTypes=qc;yr.defaultProps=Kc;const ui=yr;function Xn(t){return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xn(t)}var Jc=["className","cssModule","tag","innerRef"];function Jn(){return Jn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Jn.apply(this,arguments)}function Qc(t,e){if(t==null)return{};var n=el(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function el(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function tl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ao(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function nl(t,e,n){return e&&ao(t.prototype,e),n&&ao(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function rl(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qn(t,e)}function Qn(t,e){return Qn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Qn(t,e)}function ol(t){var e=sl();return function(){var r=on(t),o;if(e){var i=on(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return il(this,o)}}function il(t,e){if(e&&(Xn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return er(t)}function er(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function sl(){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 on(t){return on=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},on(t)}var al={children:x.node,tag:fn,innerRef:x.oneOfType([x.object,x.func,x.string]),className:x.string,cssModule:x.object},di=function(t){rl(n,t);var e=ol(n);function n(r){var o;return tl(this,n),o=e.call(this,r),o.getRef=o.getRef.bind(er(o)),o.submit=o.submit.bind(er(o)),o}return nl(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=c===void 0?"form":c,u=o.innerRef,d=Qc(o,Jc),p=Ht(i,a);return y.createElement(l,Jn({},d,{ref:u,className:p}))}}]),n}(y.Component);di.propTypes=al;const cl=di;var ll=["className","cssModule","row","disabled","check","inline","floating","noMargin","tag","switch"];function tr(){return tr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},tr.apply(this,arguments)}function ul(t,e){if(t==null)return{};var n=dl(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function dl(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}var fl={children:x.node,row:x.bool,check:x.bool,switch:x.bool,inline:x.bool,floating:x.bool,noMargin:x.bool,disabled:x.bool,tag:fn,className:x.string,cssModule:x.object};function nr(t){var e=t.className,n=t.cssModule,r=t.row,o=t.disabled,i=t.check,a=t.inline,c=t.floating,l=t.noMargin,u=t.tag,d=u===void 0?"div":u,p=t.switch,f=ul(t,ll),h=i||p,m=Ht(G(e,r?"row":!1,h?"form-check":!1,p?"form-switch":!1,h||l?!1:"mb-3",h&&a?"form-check-inline":!1,h&&o?"disabled":!1,c&&"form-floating"),n);return d==="fieldset"&&(f.disabled=o),y.createElement(d,tr({},f,{className:m}))}nr.propTypes=fl;const hn=t=>{const{config:e,isFavoritismEnabled:n,level:r=1,onItemClick:o}=t,{isCollapsible:i,showAllItems:a,displayCount:c=zs}=e,l=rt(),u=Fo(),[d,p]=y.useState(1),[f,h]=y.useState(0),[m,v]=y.useState(!1),g=y.useRef({}),w=e.items.filter(S=>_t(S)),j=e.items.filter(S=>!_t(S)),O=a?j:j.slice(0,d*c);y.useEffect(()=>{l.isOpen||p(1)},[l.isOpen]);const C=()=>{p(S=>S+1)},b=[...w,...O],k=S=>{g.current[S]?.querySelector("[tabIndex]")?.focus(),h(S)},_=()=>{i&&v(S=>!S)};return s.jsxs("li",{className:"section",children:[s.jsx(No,{iconSrc:e.iconSrc,iconName:e.iconName,style:{paddingLeft:`${r===1?4:(r-2)*12+6}px`},title:e.title,showCollapseIcon:i,isOpen:m,onClick:_,showHoverIndicator:r!==1}),s.jsxs(ui,{isOpen:i?m:!0,tag:"ul",children:[b.map((S,I)=>_t(S)?s.jsx(hn,{config:S,isFavoritismEnabled:n,level:r+1,onItemClick:o},S.id):s.jsx("li",{ref:R=>g.current[I]=R,children:s.jsx(oi,{isFavoritismEnabled:n,item:S,onClick:(R,H)=>o?.(R,{item:S,modifier:u,selectedContextMenuActionName:H?.name}),style:{paddingLeft:`${r===1?7:r*11}px`},onKeyDown:R=>{Io({event:R,moveFocus:k,currentIndex:f,min:0,max:b.length-1})},focused:f===I},S.id||I)},S.id||I)),!a&&e.items.length-w.length>c*d&&s.jsx("li",{"data-testid":"more-li-element",children:s.jsx("div",{className:"io-list-item more",style:{paddingLeft:`${(r===1?7:r*11)+8}px`},role:"button","aria-label":"More",...mt(C),children:s.jsxs("div",{className:"io-list-row",children:[s.jsx("span",{className:"title",children:"More..."}),s.jsx(oe,{size:12,name:"chevron-down","data-testid":"more-chevron"})]})})})]})]})},fi=t=>`${t.type}-${t.id}`,pl=(t,e)=>pi(t)[e],pi=t=>t.reduce((e,n)=>_t(n)?{...e,...pi(n.items)}:{...e,[fi(n)]:n},{}),hi=y.createContext(void 0),hl=()=>{const t=y.useContext(hi);if(t===void 0)throw new Error("useSection must be used within a SectionProvider");return t},ml=({children:t})=>{const[e,n]=y.useState(null);return s.jsx(hi.Provider,{value:[e,n],children:t})},mn=({config:t,onItemClick:e})=>{const[n,r]=hl(),o=rt(),i=Fo(),a=(c,l)=>{const{item:u,selectedContextMenuActionName:d}=l;r({itemName:fi(u),selectedContextMenuActionName:d})};return y.useEffect(()=>{if(!e||!n)return;const{itemName:c,selectedContextMenuActionName:l}=n,u=pl(t.items,c);u&&(e({item:u,modifier:i,selectedContextMenuActionName:l}),r(null),i!==ln.SHIFT&&o.close())},[n,t.items,o,e,i,r]),s.jsx(hn,{config:t,onItemClick:a})};function mi(t){const{displayCount:e,isFolderCollapsible:n,isSectionCollapsible:r,showAllItems:o,sortOrder:i}=t,a=is(),c=ss(),l=Wo(),u=Ho(),d=y.useMemo(()=>ns(a,c,{...{displayCount:e,showAllItems:o},isFolderCollapsible:n,isSectionCollapsible:r,sortOrder:i}),[a,c,e,n,r,o,i]),p=f=>{const{item:h,modifier:m,selectedContextMenuActionName:v}=f;if(!v)return l(h.id,m).catch(g=>{console.error("Failed to start application",{error:g})});u(h,v)};return s.jsx(mn,{config:d,onItemClick:p})}const vl={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"},gl={loginPageLogo:vl},yl="256px",xt=({logoSrc:t=gl.loginPageLogo.value,width:e=yl,className:n="logo"})=>s.jsx("img",{width:e,src:t,className:n,alt:"Login logo"});const vn=({children:t,description:e,heading:n,Image:r,title:o})=>s.jsxs("div",{className:"info-card",children:[o&&s.jsx("h1",{className:"info-card-title",children:o}),r&&s.jsx("div",{className:"info-card-image",children:s.jsx(r,{})}),n&&s.jsx("h3",{className:"info-card-heading",children:n}),s.jsx("p",{className:"info-card-description",children:e}),t]}),bl=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:222,height:130,fill:"none",...t,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"})]})]})]}),wl=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"none",height:"63",viewBox:"0 0 63 63",width:"63",...t,children:[s.jsxs("linearGradient",{id:"chrome_a",gradientUnits:"userSpaceOnUse",x1:"34.9087",x2:"7.63224",y1:"61.029",y2:"13.7847",children:[s.jsx("stop",{offset:"0",stopColor:"#1e8e3e"}),s.jsx("stop",{offset:"1",stopColor:"#34a853"})]}),s.jsxs("linearGradient",{id:"chrome_b",gradientUnits:"userSpaceOnUse",x1:"26.9043",x2:"54.1808",y1:"63.0788",y2:"15.8345",children:[s.jsx("stop",{offset:"0",stopColor:"#fcc934"}),s.jsx("stop",{offset:"1",stopColor:"#fbbc04"})]}),s.jsxs("linearGradient",{id:"chrome_c",gradientUnits:"userSpaceOnUse",x1:"4.22145",x2:"58.7745",y1:"19.6884",y2:"19.6884",children:[s.jsx("stop",{offset:"0",stopColor:"#d93025"}),s.jsx("stop",{offset:"1",stopColor:"#ea4335"})]}),s.jsx("path",{d:"m31.499 47.2466c8.6985 0 15.75-7.0515 15.75-15.75s-7.0515-15.75-15.75-15.75-15.75 7.0515-15.75 15.75 7.0515 15.75 15.75 15.75z",fill:"#fff"}),s.jsx("path",{d:"m17.8591 39.3751-13.63772-23.6212c-2.76527 4.788-4.22118922 10.2197-4.22137998 15.7489s1.45535998 10.961 4.22028998 15.7492c2.76494 4.7882 6.74181 8.7641 11.53071 11.5279 4.7889 2.7637 10.221 4.2179 15.7502 4.2164l13.6377-23.6212v-.0041c-1.3813 2.3954-3.369 4.3848-5.7632 5.7681s-5.1104 2.1118-7.8755 2.1122-5.4816-.7272-7.8762-2.1099c-2.3945-1.3826-4.3829-3.3714-5.7649-5.7663z",fill:"url(#chrome_a)"}),s.jsx("path",{d:"m45.1379 39.3741-13.6376 23.6212c5.5292.0008 10.9611-1.4542 15.7496-4.2187 4.7885-2.7644 8.7648-6.7408 11.5291-11.5294 2.7642-4.7887 4.219-10.2207 4.2181-15.7499-.001-5.5292-1.4577-10.9606-4.2237-15.7483h-27.2754l-.0034.0021c2.7651-.0014 5.4818.7254 7.8769 2.1071 2.3951 1.3818 4.3841 3.3698 5.767 5.7643 1.3829 2.3944 2.1109 5.1108 2.1109 7.8758-.0001 2.7651-.7283 5.4814-2.1113 7.8758z",fill:"url(#chrome_b)"}),s.jsx("path",{d:"m31.499 43.9688c6.8863 0 12.4688-5.5825 12.4688-12.4688s-5.5825-12.4688-12.4688-12.4688-12.4687 5.5825-12.4687 12.4688 5.5824 12.4688 12.4687 12.4688z",fill:"#1a73e8"}),s.jsx("path",{d:"m31.4991 15.75h27.2754c-2.764-4.7888-6.74-8.76553-11.5283-11.53029-4.7883-2.76475-10.2202-4.22010235-15.7494-4.21970992s-10.9608 1.45650992-15.7487 4.22194992c-4.788 2.76543-8.76341 6.74275-11.52666 11.53185l13.63766 23.6212.0035.0019c-1.3837-2.394-2.1127-5.11-2.1136-7.8751s.7264-5.4817 2.1086-7.8765c1.3821-2.3948 3.3706-4.3835 5.7652-5.7659 2.3947-1.3825 5.1112-2.11 7.8763-2.1094z",fill:"url(#chrome_c)"})]}),xl=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",...t,children:[s.jsxs("defs",{children:[s.jsxs("radialGradient",{id:"edge_b",cx:161.8,cy:68.9,r:95.4,gradientTransform:"matrix(1 0 0 -.95 0 248.8)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:.7,stopOpacity:0}),s.jsx("stop",{offset:.9,stopOpacity:.5}),s.jsx("stop",{offset:1})]}),s.jsxs("radialGradient",{id:"edge_d",cx:-340.3,cy:63,r:143.2,gradientTransform:"matrix(.15 -.99 -.8 -.12 176.6 -125.4)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:.8,stopOpacity:0}),s.jsx("stop",{offset:.9,stopOpacity:.5}),s.jsx("stop",{offset:1})]}),s.jsxs("radialGradient",{id:"edge_e",cx:113.4,cy:570.2,r:202.4,gradientTransform:"matrix(-.04 1 2.13 .08 -1179.5 -106.7)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#35c1f1"}),s.jsx("stop",{offset:.1,stopColor:"#34c1ed"}),s.jsx("stop",{offset:.2,stopColor:"#2fc2df"}),s.jsx("stop",{offset:.3,stopColor:"#2bc3d2"}),s.jsx("stop",{offset:.7,stopColor:"#36c752"})]}),s.jsxs("radialGradient",{id:"edge_f",cx:376.5,cy:568,r:97.3,gradientTransform:"matrix(.28 .96 .78 -.23 -303.8 -148.5)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#66eb6e"}),s.jsx("stop",{offset:1,stopColor:"#66eb6e",stopOpacity:0})]}),s.jsxs("linearGradient",{id:"edge_a",x1:63.3,x2:241.7,y1:84,y2:84,gradientTransform:"matrix(1 0 0 -1 0 266)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#0c59a4"}),s.jsx("stop",{offset:1,stopColor:"#114a8b"})]}),s.jsxs("linearGradient",{id:"edge_c",x1:157.3,x2:46,y1:161.4,y2:40.1,gradientTransform:"matrix(1 0 0 -1 0 266)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#1b9de2"}),s.jsx("stop",{offset:.2,stopColor:"#1595df"}),s.jsx("stop",{offset:.7,stopColor:"#0680d7"}),s.jsx("stop",{offset:1,stopColor:"#0078d4"})]})]}),s.jsx("path",{d:"M235.7 195.5a93.7 93.7 0 0 1-10.6 4.7 101.9 101.9 0 0 1-35.9 6.4c-47.3 0-88.5-32.5-88.5-74.3a31.5 31.5 0 0 1 16.4-27.3c-42.8 1.8-53.8 46.4-53.8 72.5 0 74 68.1 81.4 82.8 81.4 7.9 0 19.8-2.3 27-4.6l1.3-.4a128.3 128.3 0 0 0 66.6-52.8 4 4 0 0 0-5.3-5.6Z",style:{fill:"url(#edge_a)"},transform:"translate(-4.6 -5)"}),s.jsx("path",{d:"M235.7 195.5a93.7 93.7 0 0 1-10.6 4.7 101.9 101.9 0 0 1-35.9 6.4c-47.3 0-88.5-32.5-88.5-74.3a31.5 31.5 0 0 1 16.4-27.3c-42.8 1.8-53.8 46.4-53.8 72.5 0 74 68.1 81.4 82.8 81.4 7.9 0 19.8-2.3 27-4.6l1.3-.4a128.3 128.3 0 0 0 66.6-52.8 4 4 0 0 0-5.3-5.6Z",style:{isolation:"isolate",opacity:.35,fill:"url(#edge_b)"},transform:"translate(-4.6 -5)"}),s.jsx("path",{d:"M110.3 246.3A79.2 79.2 0 0 1 87.6 225a80.7 80.7 0 0 1 29.5-120c3.2-1.5 8.5-4.1 15.6-4a32.4 32.4 0 0 1 25.7 13 31.9 31.9 0 0 1 6.3 18.7c0-.2 24.5-79.6-80-79.6-43.9 0-80 41.6-80 78.2a130.2 130.2 0 0 0 12.1 56 128 128 0 0 0 156.4 67 75.5 75.5 0 0 1-62.8-8Z",style:{fill:"url(#edge_c)"},transform:"translate(-4.6 -5)"}),s.jsx("path",{d:"M110.3 246.3A79.2 79.2 0 0 1 87.6 225a80.7 80.7 0 0 1 29.5-120c3.2-1.5 8.5-4.1 15.6-4a32.4 32.4 0 0 1 25.7 13 31.9 31.9 0 0 1 6.3 18.7c0-.2 24.5-79.6-80-79.6-43.9 0-80 41.6-80 78.2a130.2 130.2 0 0 0 12.1 56 128 128 0 0 0 156.4 67 75.5 75.5 0 0 1-62.8-8Z",style:{opacity:.41,fill:"url(#edge_d)",isolation:"isolate"},transform:"translate(-4.6 -5)"}),s.jsx("path",{d:"M157 153.8c-.9 1-3.4 2.5-3.4 5.6 0 2.6 1.7 5.2 4.8 7.3 14.3 10 41.4 8.6 41.5 8.6a59.6 59.6 0 0 0 30.3-8.3 61.4 61.4 0 0 0 30.4-52.9c.3-22.4-8-37.3-11.3-43.9C228 28.8 182.3 5 132.6 5a128 128 0 0 0-128 126.2c.5-36.5 36.8-66 80-66 3.5 0 23.5.3 42 10a72.6 72.6 0 0 1 30.9 29.3c6.1 10.6 7.2 24.1 7.2 29.5s-2.7 13.3-7.8 19.9Z",style:{fill:"url(#edge_e)"},transform:"translate(-4.6 -5)"}),s.jsx("path",{d:"M157 153.8c-.9 1-3.4 2.5-3.4 5.6 0 2.6 1.7 5.2 4.8 7.3 14.3 10 41.4 8.6 41.5 8.6a59.6 59.6 0 0 0 30.3-8.3 61.4 61.4 0 0 0 30.4-52.9c.3-22.4-8-37.3-11.3-43.9C228 28.8 182.3 5 132.6 5a128 128 0 0 0-128 126.2c.5-36.5 36.8-66 80-66 3.5 0 23.5.3 42 10a72.6 72.6 0 0 1 30.9 29.3c6.1 10.6 7.2 24.1 7.2 29.5s-2.7 13.3-7.8 19.9Z",style:{fill:"url(#edge_f)"},transform:"translate(-4.6 -5)"})]}),Cl=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75.591 75.591",...t,children:[s.jsxs("linearGradient",{id:"opera_a",x2:1,gradientTransform:"matrix(0 -54.944 -54.944 0 23.62 79.474)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#ff1b2d"}),s.jsx("stop",{offset:.3,stopColor:"#ff1b2d"}),s.jsx("stop",{offset:.614,stopColor:"#ff1b2d"}),s.jsx("stop",{offset:1,stopColor:"#a70014"})]}),s.jsxs("linearGradient",{id:"opera_b",x2:1,gradientTransform:"matrix(0 -48.595 -48.595 0 37.854 76.235)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#9c0000"}),s.jsx("stop",{offset:.7,stopColor:"#ff4b4b"}),s.jsx("stop",{offset:1,stopColor:"#ff4b4b"})]}),s.jsx("path",{fill:"url(#opera_a)",d:"M28.346 80.398C12.691 80.398 0 67.707 0 52.052 0 36.85 11.968 24.443 26.996 23.739a28.244 28.244 0 0 1 20.241 7.18c-3.322-2.203-7.207-3.47-11.359-3.47-6.75 0-12.796 3.348-16.862 8.629-3.134 3.7-5.164 9.169-5.302 15.307v1.335c.138 6.137 2.168 11.608 5.302 15.307 4.066 5.28 10.112 8.63 16.862 8.63 4.152 0 8.038-1.269 11.36-3.474a28.239 28.239 0 0 1-18.785 7.215l-.108.001z",transform:"matrix(1.3333 0 0 -1.3333 0 107.2)"}),s.jsx("path",{fill:"url(#opera_b)",d:"M19.016 68.025c2.601 3.07 5.96 4.923 9.631 4.923 8.252 0 14.941-9.356 14.941-20.897s-6.69-20.897-14.941-20.897c-3.67 0-7.03 1.85-9.63 4.922 4.066-5.281 10.11-8.63 16.862-8.63 4.152 0 8.036 1.268 11.359 3.472 5.802 5.19 9.455 12.735 9.455 21.133 0 8.397-3.653 15.94-9.453 21.13-3.324 2.206-7.209 3.473-11.361 3.473-6.75 0-12.796-3.348-16.862-8.63",transform:"matrix(1.3333 0 0 -1.3333 0 107.2)"})]}),Ol=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:182,height:121,fill:"none",...t,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"})]})]})]}),jl=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:196,height:130,fill:"none",...t,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"})]})]})]}),El=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:247,height:143,fill:"none",...t,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"})]})]})]}),Sl=[{name:"Google Chrome",Image:wl,url:"https://www.google.com/chrome/"},{name:"Microsoft Edge",Image:xl,url:"https://www.microsoft.com/en-us/edge/download"},{name:"Opera",Image:Cl,url:"https://www.opera.com/browsers/opera"}];const vi=({className:t,children:e,Logo:n})=>s.jsx("div",{className:G("info-page-container",t),children:s.jsxs("div",{className:"info-page-wrapper",children:[s.jsx(n,{className:"mb-32"}),e]})}),kl=({supportEmail:t})=>s.jsxs("p",{className:"additional-information",children:["For more information, visit the io.Connect Browser",s.jsx("br",{}),s.jsx("a",{href:"https://docs.interop.io/browser/getting-started/requirements-compatibility/index.html",target:"_blank",rel:"noopener noreferrer",children:"documentation"}),t?s.jsxs(s.Fragment,{children:[" or ",s.jsx("a",{href:`mailto:${t}?subject=Issue with io.Connect Browser`,children:"contact us"}),"."]}):s.jsxs(s.Fragment,{children:[" or our ",s.jsx("a",{href:"https://support.interop.io",target:"_blank",rel:"noopener noreferrer",children:"help center"}),"."]})]});const gi=({components:{Logo:t=xt}={},supportEmail:e})=>{const n="Hmm… it seems that this browser or device doesn’t support critical io.Connect features.",r="For best experience, we recommend using the latest version of one of the following browsers:";return s.jsxs(vi,{className:"browser-not-supported",Logo:t,children:[s.jsx(vn,{title:n,description:r}),s.jsx("ul",{className:"browsers-list",children:Sl.map(({Image:o,name:i,url:a})=>s.jsxs("li",{onClick:()=>window.open(a,"_blank","noopener,noreferrer"),children:[s.jsx("div",{className:"browsers-list-image",children:s.jsx(o,{})}),s.jsx("div",{children:i})]},i))}),s.jsx(kl,{supportEmail:e})]})};function Vt({children:t,className:e,color:n,...r}){return s.jsx("button",{className:G(e,"io-btn",n),...r,children:t})}function gn(t){const{className:e,items:n,onItemClick:r,...o}=t;return s.jsx("div",{className:G("io-btn-group",e),...o,children:n.map((i,a)=>{const{onClick:c,...l}=i;return s.jsx(Vt,{onClick:u=>{c&&c(u),r&&r(u,i)},...l},a)})})}const Tl=(t,e)=>{const{isSectionCollapsible:n,sortOrder:r=At.DISABLED,...o}=e;return{id:"favorites-section",title:"Favorites",items:sr({items:t,sortOrder:r,ascendingCompare:ko,descendingCompare:To}),iconName:"star",isCollapsible:n,...o}},yi=t=>{const{displayCount:e,isSectionCollapsible:n,showAllItems:r,sortOrder:o}=t,{favoriteEntities:i}=cn(),a=y.useMemo(()=>Tl(i,{...{displayCount:e,showAllItems:r},isSectionCollapsible:n,sortOrder:o}),[i,e,n,r,o]);return i.length>0?s.jsx(mn,{config:a}):null},br=y.createContext(void 0),bi=()=>{const t=y.useContext(br);if(t===void 0)throw new Error("useWorkspaceComponentsContext must be used within an WorkspaceComponentsContextProvider");return t},wi=({icon:t})=>{const{user:e,onLogout:n,launchpadComponents:r}=bi();return s.jsx(Pr,{user:e,onLogout:n,icon:t,components:r})},Pl=t=>{const{onLogout:e,user:n,launchpad:r,icon:o}=t;return s.jsx(Pr,{user:n,onLogout:e,icon:o,components:r?.components})},Qe={WINDOW_MANAGEMENT:"window-management",NOTIFICATIONS:"notifications"},_l=()=>Promise.all(Object.values(Qe).map(async t=>{const e=await navigator.permissions.query({name:t});return e.stableName=t,e})),xi=y.createContext(void 0),Ge=()=>{const t=y.useContext(xi);if(t===void 0)throw new Error("useIOConnectHome must be used within an IOConnectHomeProvider");return t},Ci=({children:t})=>{const[e,n]=y.useState([]),r=e.length===0,o={isDenied:!r&&e.some(({state:a})=>a==="denied"),isLoading:r,isSetupCompleted:!r&&e.every(({state:a})=>a==="granted"),statuses:e},i=y.useRef(!1);return y.useEffect(()=>{let a=!1;const c=_l().then(l=>{if(a)return;n(l);const u=[];let d=!1;return l.forEach((p,f)=>{const h=m=>{if(a||!m.target||d)return;const v=m.target;if(v.state==="prompt"||v.state==="denied"&&i.current)return d=!0,window.location.reload();n(w=>[...w.slice(0,f),v,...w.slice(f+1)])};p.addEventListener("change",h),u.push(()=>p.removeEventListener("change",h))}),u}).catch(console.warn);return()=>{a=!0,c.then(l=>{l?.forEach(u=>u())})}},[]),y.useEffect(()=>{i.current=o.isSetupCompleted},[o.isSetupCompleted]),s.jsx(xi.Provider,{value:{permission:o},children:t})};var rr=function(t,e){return rr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},rr(t,e)};function Il(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");rr(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var ue=function(){return ue=Object.assign||function(e){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)&&(e[i]=n[i])}return e},ue.apply(this,arguments)};function Nl(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function ct(t,e,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function c(d){try{u(r.next(d))}catch(p){a(p)}}function l(d){try{u(r.throw(d))}catch(p){a(p)}}function u(d){d.done?i(d.value):o(d.value).then(c,l)}u((r=r.apply(t,e||[])).next())})}function lt(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(u){return function(d){return l([u,d])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(d){u=[6,d],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Ae(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}var pt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function xr(t,e){return t(e={exports:{}},e.exports),e.exports}var Je=xr(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function r(){var o=this;this.locked=new Map,this.addToLocked=function(i,a){var c=o.locked.get(i);c===void 0?a===void 0?o.locked.set(i,[]):o.locked.set(i,[a]):a!==void 0&&(c.unshift(a),o.locked.set(i,c))},this.isLocked=function(i){return o.locked.has(i)},this.lock=function(i){return new Promise(function(a,c){o.isLocked(i)?o.addToLocked(i,a):(o.addToLocked(i),a())})},this.unlock=function(i){var a=o.locked.get(i);if(a!==void 0&&a.length!==0){var c=a.pop();o.locked.set(i,a),c!==void 0&&setTimeout(c,0)}else o.locked.delete(i)}}return r.getInstance=function(){return r.instance===void 0&&(r.instance=new r),r.instance},r}();e.default=function(){return n.getInstance()}});wr(Je);var Al=wr(xr(function(t,e){var n=pt&&pt.__awaiter||function(l,u,d,p){return new(d||(d=Promise))(function(f,h){function m(w){try{g(p.next(w))}catch(j){h(j)}}function v(w){try{g(p.throw(w))}catch(j){h(j)}}function g(w){w.done?f(w.value):new d(function(j){j(w.value)}).then(m,v)}g((p=p.apply(l,u||[])).next())})},r=pt&&pt.__generator||function(l,u){var d,p,f,h,m={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return h={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function v(g){return function(w){return function(j){if(d)throw new TypeError("Generator is already executing.");for(;m;)try{if(d=1,p&&(f=2&j[0]?p.return:j[0]?p.throw||((f=p.return)&&f.call(p),0):p.next)&&!(f=f.call(p,j[1])).done)return f;switch(p=0,f&&(j=[2&j[0],f.value]),j[0]){case 0:case 1:f=j;break;case 4:return m.label++,{value:j[1],done:!1};case 5:m.label++,p=j[1],j=[0];continue;case 7:j=m.ops.pop(),m.trys.pop();continue;default:if(f=m.trys,!((f=f.length>0&&f[f.length-1])||j[0]!==6&&j[0]!==2)){m=0;continue}if(j[0]===3&&(!f||j[1]>f[0]&&j[1]<f[3])){m.label=j[1];break}if(j[0]===6&&m.label<f[1]){m.label=f[1],f=j;break}if(f&&m.label<f[2]){m.label=f[2],m.ops.push(j);break}f[2]&&m.ops.pop(),m.trys.pop();continue}j=u.call(l,m)}catch(O){j=[6,O],p=0}finally{d=f=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}([g,w])}}};Object.defineProperty(e,"__esModule",{value:!0});var o="browser-tabs-lock-key";function i(l){return new Promise(function(u){return setTimeout(u,l)})}function a(l){for(var u="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",d="",p=0;p<l;p++)d+=u[Math.floor(Math.random()*u.length)];return d}var c=function(){function l(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+a(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),l.waiters===void 0&&(l.waiters=[])}return l.prototype.acquireLock=function(u,d){return d===void 0&&(d=5e3),n(this,void 0,void 0,function(){var p,f,h,m,v,g;return r(this,function(w){switch(w.label){case 0:p=Date.now()+a(4),f=Date.now()+d,h=o+"-"+u,m=window.localStorage,w.label=1;case 1:return Date.now()<f?[4,i(30)]:[3,8];case 2:return w.sent(),m.getItem(h)!==null?[3,5]:(v=this.id+"-"+u+"-"+p,[4,i(Math.floor(25*Math.random()))]);case 3:return w.sent(),m.setItem(h,JSON.stringify({id:this.id,iat:p,timeoutKey:v,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,i(30)];case 4:return w.sent(),(g=m.getItem(h))!==null&&(g=JSON.parse(g)).id===this.id&&g.iat===p?(this.acquiredIatSet.add(p),this.refreshLockWhileAcquired(h,p),[2,!0]):[3,7];case 5:return l.lockCorrector(),[4,this.waitForSomethingToChange(f)];case 6:w.sent(),w.label=7;case 7:return p=Date.now()+a(4),[3,1];case 8:return[2,!1]}})})},l.prototype.refreshLockWhileAcquired=function(u,d){return n(this,void 0,void 0,function(){var p=this;return r(this,function(f){return setTimeout(function(){return n(p,void 0,void 0,function(){var h,m;return r(this,function(v){switch(v.label){case 0:return[4,Je.default().lock(d)];case 1:return v.sent(),this.acquiredIatSet.has(d)?(h=window.localStorage,(m=h.getItem(u))===null?(Je.default().unlock(d),[2]):((m=JSON.parse(m)).timeRefreshed=Date.now(),h.setItem(u,JSON.stringify(m)),Je.default().unlock(d),this.refreshLockWhileAcquired(u,d),[2])):(Je.default().unlock(d),[2])}})})},1e3),[2]})})},l.prototype.waitForSomethingToChange=function(u){return n(this,void 0,void 0,function(){return r(this,function(d){switch(d.label){case 0:return[4,new Promise(function(p){var f=!1,h=Date.now(),m=!1;function v(){if(m||(window.removeEventListener("storage",v),l.removeFromWaiting(v),clearTimeout(g),m=!0),!f){f=!0;var w=50-(Date.now()-h);w>0?setTimeout(p,w):p()}}window.addEventListener("storage",v),l.addToWaiting(v);var g=setTimeout(v,Math.max(0,u-Date.now()))})];case 1:return d.sent(),[2]}})})},l.addToWaiting=function(u){this.removeFromWaiting(u),l.waiters!==void 0&&l.waiters.push(u)},l.removeFromWaiting=function(u){l.waiters!==void 0&&(l.waiters=l.waiters.filter(function(d){return d!==u}))},l.notifyWaiters=function(){l.waiters!==void 0&&l.waiters.slice().forEach(function(u){return u()})},l.prototype.releaseLock=function(u){return n(this,void 0,void 0,function(){return r(this,function(d){switch(d.label){case 0:return[4,this.releaseLock__private__(u)];case 1:return[2,d.sent()]}})})},l.prototype.releaseLock__private__=function(u){return n(this,void 0,void 0,function(){var d,p,f;return r(this,function(h){switch(h.label){case 0:return d=window.localStorage,p=o+"-"+u,(f=d.getItem(p))===null?[2]:(f=JSON.parse(f)).id!==this.id?[3,2]:[4,Je.default().lock(f.iat)];case 1:h.sent(),this.acquiredIatSet.delete(f.iat),d.removeItem(p),Je.default().unlock(f.iat),l.notifyWaiters(),h.label=2;case 2:return[2]}})})},l.lockCorrector=function(){for(var u=Date.now()-5e3,d=window.localStorage,p=Object.keys(d),f=!1,h=0;h<p.length;h++){var m=p[h];if(m.includes(o)){var v=d.getItem(m);v!==null&&((v=JSON.parse(v)).timeRefreshed===void 0&&v.timeAcquired<u||v.timeRefreshed!==void 0&&v.timeRefreshed<u)&&(d.removeItem(m),f=!0)}}f&&l.notifyWaiters()},l.waiters=void 0,l}();e.default=c}));const Rl={timeoutInSeconds:60},Oi={name:"auth0-spa-js",version:"2.0.4"},ji=()=>Date.now();class Oe extends Error{constructor(e,n){super(n),this.error=e,this.error_description=n,Object.setPrototypeOf(this,Oe.prototype)}static fromPayload({error:e,error_description:n}){return new Oe(e,n)}}class Cr extends Oe{constructor(e,n,r,o=null){super(e,n),this.state=r,this.appState=o,Object.setPrototypeOf(this,Cr.prototype)}}class Dt extends Oe{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,Dt.prototype)}}class Or extends Dt{constructor(e){super(),this.popup=e,Object.setPrototypeOf(this,Or.prototype)}}class jr extends Oe{constructor(e){super("cancelled","Popup closed"),this.popup=e,Object.setPrototypeOf(this,jr.prototype)}}class Er extends Oe{constructor(e,n,r){super(e,n),this.mfa_token=r,Object.setPrototypeOf(this,Er.prototype)}}class yn extends Oe{constructor(e,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${co(e,["default"])}', scope: '${co(n)}')`),this.audience=e,this.scope=n,Object.setPrototypeOf(this,yn.prototype)}}function co(t,e=[]){return t&&!e.includes(t)?t:""}const Yt=()=>window.crypto,_n=()=>{const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let e="";return Array.from(Yt().getRandomValues(new Uint8Array(43))).forEach(n=>e+=t[n%t.length]),e},lo=t=>btoa(t),or=t=>{var{clientId:e}=t,n=Ae(t,["clientId"]);return new URLSearchParams((r=>Object.keys(r).filter(o=>r[o]!==void 0).reduce((o,i)=>Object.assign(Object.assign({},o),{[i]:r[i]}),{}))(Object.assign({client_id:e},n))).toString()},uo=t=>(e=>decodeURIComponent(atob(e).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(t.replace(/_/g,"/").replace(/-/g,"+")),Ll=async(t,e)=>{const n=await fetch(t,e);return{ok:n.ok,json:await n.json()}},Ml=async(t,e,n)=>{const r=new AbortController;let o;return e.signal=r.signal,Promise.race([Ll(t,e),new Promise((i,a)=>{o=setTimeout(()=>{r.abort(),a(new Error("Timeout when executing 'fetch'"))},n)})]).finally(()=>{clearTimeout(o)})},Dl=async(t,e,n,r,o,i,a)=>{return c={auth:{audience:e,scope:n},timeout:o,fetchUrl:t,fetchOptions:r,useFormData:a},l=i,new Promise(function(u,d){const p=new MessageChannel;p.port1.onmessage=function(f){f.data.error?d(new Error(f.data.error)):u(f.data),p.port1.close()},l.postMessage(c,[p.port2])});var c,l},Fl=async(t,e,n,r,o,i,a=1e4)=>o?Dl(t,e,n,r,a,o,i):Ml(t,r,a);async function Ul(t,e){var{baseUrl:n,timeout:r,audience:o,scope:i,auth0Client:a,useFormData:c}=t,l=Ae(t,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const u=c?or(l):JSON.stringify(l);return await async function(d,p,f,h,m,v,g){let w,j=null;for(let S=0;S<3;S++)try{w=await Fl(d,f,h,m,v,g,p),j=null;break}catch(I){j=I}if(j)throw j;const O=w.json,{error:C,error_description:b}=O,k=Ae(O,["error","error_description"]),{ok:_}=w;if(!_){const S=b||`HTTP error. Unable to fetch ${d}`;throw C==="mfa_required"?new Er(C,S,k.mfa_token):C==="missing_refresh_token"?new yn(f,h):new Oe(C||"request_error",S)}return k}(`${n}/oauth/token`,r,o||"default",i,{method:"POST",body:u,headers:{"Content-Type":c?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(a||Oi))}},e,c)}const Gt=(...t)=>{return(e=t.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(e))).join(" ");var e};class Re{constructor(e,n="@@auth0spajs@@",r){this.prefix=n,this.suffix=r,this.clientId=e.clientId,this.scope=e.scope,this.audience=e.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(e){const[n,r,o,i]=e.split("::");return new Re({clientId:r,scope:i,audience:o},n)}static fromCacheEntry(e){const{scope:n,audience:r,client_id:o}=e;return new Re({scope:n,audience:r,clientId:o})}}class Wl{set(e,n){localStorage.setItem(e,JSON.stringify(n))}get(e){const n=window.localStorage.getItem(e);if(n)try{return JSON.parse(n)}catch{return}}remove(e){localStorage.removeItem(e)}allKeys(){return Object.keys(window.localStorage).filter(e=>e.startsWith("@@auth0spajs@@"))}}class Ei{constructor(){this.enclosedCache=function(){let e={};return{set(n,r){e[n]=r},get(n){const r=e[n];if(r)return r},remove(n){delete e[n]},allKeys:()=>Object.keys(e)}}()}}class Hl{constructor(e,n,r){this.cache=e,this.keyManifest=n,this.nowProvider=r||ji}async setIdToken(e,n,r){var o;const i=this.getIdTokenCacheKey(e);await this.cache.set(i,{id_token:n,decodedToken:r}),await((o=this.keyManifest)===null||o===void 0?void 0:o.add(i))}async getIdToken(e){const n=await this.cache.get(this.getIdTokenCacheKey(e.clientId));if(!n&&e.scope&&e.audience){const r=await this.get(e);return!r||!r.id_token||!r.decodedToken?void 0:{id_token:r.id_token,decodedToken:r.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(e,n=0){var r;let o=await this.cache.get(e.toKey());if(!o){const c=await this.getCacheKeys();if(!c)return;const l=this.matchExistingCacheKey(e,c);l&&(o=await this.cache.get(l))}if(!o)return;const i=await this.nowProvider(),a=Math.floor(i/1e3);return o.expiresAt-n<a?o.body.refresh_token?(o.body={refresh_token:o.body.refresh_token},await this.cache.set(e.toKey(),o),o.body):(await this.cache.remove(e.toKey()),void await((r=this.keyManifest)===null||r===void 0?void 0:r.remove(e.toKey()))):o.body}async set(e){var n;const r=new Re({clientId:e.client_id,scope:e.scope,audience:e.audience}),o=await this.wrapCacheEntry(e);await this.cache.set(r.toKey(),o),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(r.toKey()))}async clear(e){var n;const r=await this.getCacheKeys();r&&(await r.filter(o=>!e||o.includes(e)).reduce(async(o,i)=>{await o,await this.cache.remove(i)},Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(e){const n=await this.nowProvider();return{body:e,expiresAt:Math.floor(n/1e3)+e.expires_in}}async getCacheKeys(){var e;return this.keyManifest?(e=await this.keyManifest.get())===null||e===void 0?void 0:e.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(e){return new Re({clientId:e},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(e,n){return n.filter(r=>{var o;const i=Re.fromKey(r),a=new Set(i.scope&&i.scope.split(" ")),c=((o=e.scope)===null||o===void 0?void 0:o.split(" "))||[],l=i.scope&&c.reduce((u,d)=>u&&a.has(d),!0);return i.prefix==="@@auth0spajs@@"&&i.clientId===e.clientId&&i.audience===e.audience&&l})[0]}}class Vl{constructor(e,n){this.storage=e,this.clientId=n,this.storageKey=`a0.spajs.txs.${this.clientId}`,this.transaction=this.storage.get(this.storageKey)}create(e){this.transaction=e,this.storage.save(this.storageKey,e,{daysUntilExpire:1})}get(){return this.transaction}remove(){delete this.transaction,this.storage.remove(this.storageKey)}}const St=t=>typeof t=="number",zl=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"],Bl=t=>{if(!t.id_token)throw new Error("ID token is required but missing");const e=(i=>{const a=i.split("."),[c,l,u]=a;if(a.length!==3||!c||!l||!u)throw new Error("ID token could not be decoded");const d=JSON.parse(uo(l)),p={__raw:i},f={};return Object.keys(d).forEach(h=>{p[h]=d[h],zl.includes(h)||(f[h]=d[h])}),{encoded:{header:c,payload:l,signature:u},header:JSON.parse(uo(c)),claims:p,user:f}})(t.id_token);if(!e.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(e.claims.iss!==t.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${t.iss}", found "${e.claims.iss}"`);if(!e.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(e.header.alg!=="RS256")throw new Error(`Signature algorithm of "${e.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!e.claims.aud||typeof e.claims.aud!="string"&&!Array.isArray(e.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(e.claims.aud)){if(!e.claims.aud.includes(t.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${t.aud}" but was not one of "${e.claims.aud.join(", ")}"`);if(e.claims.aud.length>1){if(!e.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(e.claims.azp!==t.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${t.aud}", found "${e.claims.azp}"`)}}else if(e.claims.aud!==t.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${t.aud}" but found "${e.claims.aud}"`);if(t.nonce){if(!e.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(e.claims.nonce!==t.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${t.nonce}", found "${e.claims.nonce}"`)}if(t.max_age&&!St(e.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(e.claims.exp==null||!St(e.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!St(e.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const n=t.leeway||60,r=new Date(t.now||Date.now()),o=new Date(0);if(o.setUTCSeconds(e.claims.exp+n),r>o)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${r}) is after expiration time (${o})`);if(e.claims.nbf!=null&&St(e.claims.nbf)){const i=new Date(0);if(i.setUTCSeconds(e.claims.nbf-n),r<i)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${r}) is before ${i}`)}if(e.claims.auth_time!=null&&St(e.claims.auth_time)){const i=new Date(0);if(i.setUTCSeconds(parseInt(e.claims.auth_time)+t.max_age+n),r>i)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${r}) is after last auth at ${i}`)}if(t.organizationId){if(!e.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(t.organizationId!==e.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${t.organizationId}", found "${e.claims.org_id}"`)}return e};var et=xr(function(t,e){var n=pt&&pt.__assign||function(){return n=Object.assign||function(l){for(var u,d=1,p=arguments.length;d<p;d++)for(var f in u=arguments[d])Object.prototype.hasOwnProperty.call(u,f)&&(l[f]=u[f]);return l},n.apply(this,arguments)};function r(l,u){if(!u)return"";var d="; "+l;return u===!0?d:d+"="+u}function o(l,u,d){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(u).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(p){if(typeof p.expires=="number"){var f=new Date;f.setMilliseconds(f.getMilliseconds()+864e5*p.expires),p.expires=f}return r("Expires",p.expires?p.expires.toUTCString():"")+r("Domain",p.domain)+r("Path",p.path)+r("Secure",p.secure)+r("SameSite",p.sameSite)}(d)}function i(l){for(var u={},d=l?l.split("; "):[],p=/(%[\dA-F]{2})+/gi,f=0;f<d.length;f++){var h=d[f].split("="),m=h.slice(1).join("=");m.charAt(0)==='"'&&(m=m.slice(1,-1));try{u[h[0].replace(p,decodeURIComponent)]=m.replace(p,decodeURIComponent)}catch{}}return u}function a(){return i(document.cookie)}function c(l,u,d){document.cookie=o(l,u,n({path:"/"},d))}e.__esModule=!0,e.encode=o,e.parse=i,e.getAll=a,e.get=function(l){return a()[l]},e.set=c,e.remove=function(l,u){c(l,"",n(n({},u),{expires:-1}))}});wr(et),et.encode,et.parse,et.getAll;var Zl=et.get,Si=et.set,ki=et.remove;const dt={get(t){const e=Zl(t);if(e!==void 0)return JSON.parse(e)},save(t,e,n){let r={};window.location.protocol==="https:"&&(r={secure:!0,sameSite:"none"}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),Si(t,JSON.stringify(e),r)},remove(t,e){let n={};e?.cookieDomain&&(n.domain=e.cookieDomain),ki(t,n)}},$l={get(t){return dt.get(t)||dt.get(`_legacy_${t}`)},save(t,e,n){let r={};window.location.protocol==="https:"&&(r={secure:!0}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),Si(`_legacy_${t}`,JSON.stringify(e),r),dt.save(t,e,n)},remove(t,e){let n={};e?.cookieDomain&&(n.domain=e.cookieDomain),ki(t,n),dt.remove(t,e),dt.remove(`_legacy_${t}`,e)}},Gl={get(t){if(typeof sessionStorage>"u")return;const e=sessionStorage.getItem(t);return e!=null?JSON.parse(e):void 0},save(t,e){sessionStorage.setItem(t,JSON.stringify(e))},remove(t){sessionStorage.removeItem(t)}};function ql(t,e,n){var r=e===void 0?null:e,o=function(l,u){var d=atob(l);if(u){for(var p=new Uint8Array(d.length),f=0,h=d.length;f<h;++f)p[f]=d.charCodeAt(f);return String.fromCharCode.apply(null,new Uint16Array(p.buffer))}return d}(t,n!==void 0&&n),i=o.indexOf(`
42
- `,10)+1,a=o.substring(i)+(r?"//# sourceMappingURL="+r:""),c=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(c)}var fo,po,ho,In,Kl=(fo="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9Y29uc3Qgcz1lPT57dmFye2NsaWVudElkOnR9PWUscj1mdW5jdGlvbihlLHQpe3ZhciByPXt9O2Zvcih2YXIgcyBpbiBlKU9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChlLHMpJiZ0LmluZGV4T2Yocyk8MCYmKHJbc109ZVtzXSk7aWYobnVsbCE9ZSYmImZ1bmN0aW9uIj09dHlwZW9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpe3ZhciBvPTA7Zm9yKHM9T2JqZWN0LmdldE93blByb3BlcnR5U3ltYm9scyhlKTtvPHMubGVuZ3RoO28rKyl0LmluZGV4T2Yoc1tvXSk8MCYmT2JqZWN0LnByb3RvdHlwZS5wcm9wZXJ0eUlzRW51bWVyYWJsZS5jYWxsKGUsc1tvXSkmJihyW3Nbb11dPWVbc1tvXV0pfXJldHVybiByfShlLFsiY2xpZW50SWQiXSk7cmV0dXJuIG5ldyBVUkxTZWFyY2hQYXJhbXMoKGU9Pk9iamVjdC5rZXlzKGUpLmZpbHRlcigodD0+dm9pZCAwIT09ZVt0XSkpLnJlZHVjZSgoKHQscik9Pk9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSx0KSx7W3JdOmVbcl19KSkse30pKShPYmplY3QuYXNzaWduKHtjbGllbnRfaWQ6dH0scikpKS50b1N0cmluZygpfTtsZXQgbz17fTtjb25zdCBuPShlLHQpPT5gJHtlfXwke3R9YDthZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIiwoYXN5bmMoe2RhdGE6e3RpbWVvdXQ6ZSxhdXRoOnIsZmV0Y2hVcmw6aSxmZXRjaE9wdGlvbnM6Yyx1c2VGb3JtRGF0YTphfSxwb3J0czpbZl19KT0+e2xldCBwO2NvbnN0e2F1ZGllbmNlOmwsc2NvcGU6dX09cnx8e307dHJ5e2NvbnN0IHI9YT8oZT0+e2NvbnN0IHQ9bmV3IFVSTFNlYXJjaFBhcmFtcyhlKSxyPXt9O3JldHVybiB0LmZvckVhY2goKChlLHQpPT57clt0XT1lfSkpLHJ9KShjLmJvZHkpOkpTT04ucGFyc2UoYy5ib2R5KTtpZighci5yZWZyZXNoX3Rva2VuJiYicmVmcmVzaF90b2tlbiI9PT1yLmdyYW50X3R5cGUpe2NvbnN0IGU9KChlLHQpPT5vW24oZSx0KV0pKGwsdSk7aWYoIWUpdGhyb3cgbmV3IHQobCx1KTtjLmJvZHk9YT9zKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpOkpTT04uc3RyaW5naWZ5KE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpfWxldCBkLGc7ImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixjLnNpZ25hbD1kLnNpZ25hbCk7dHJ5e2c9YXdhaXQgUHJvbWlzZS5yYWNlKFsoaD1lLG5ldyBQcm9taXNlKChlPT5zZXRUaW1lb3V0KGUsaCkpKSksZmV0Y2goaSxPYmplY3QuYXNzaWduKHt9LGMpKV0pfWNhdGNoKGUpe3JldHVybiB2b2lkIGYucG9zdE1lc3NhZ2Uoe2Vycm9yOmUubWVzc2FnZX0pfWlmKCFnKXJldHVybiBkJiZkLmFib3J0KCksdm9pZCBmLnBvc3RNZXNzYWdlKHtlcnJvcjoiVGltZW91dCB3aGVuIGV4ZWN1dGluZyAnZmV0Y2gnIn0pO3A9YXdhaXQgZy5qc29uKCkscC5yZWZyZXNoX3Rva2VuPygoKGUsdCxyKT0+e29bbih0LHIpXT1lfSkocC5yZWZyZXNoX3Rva2VuLGwsdSksZGVsZXRlIHAucmVmcmVzaF90b2tlbik6KChlLHQpPT57ZGVsZXRlIG9bbihlLHQpXX0pKGwsdSksZi5wb3N0TWVzc2FnZSh7b2s6Zy5vayxqc29uOnB9KX1jYXRjaChlKXtmLnBvc3RNZXNzYWdlKHtvazohMSxqc29uOntlcnJvcjplLmVycm9yLGVycm9yX2Rlc2NyaXB0aW9uOmUubWVzc2FnZX19KX12YXIgaH0pKX0oKTsKCg==",po=null,ho=!1,function(t){return In=In||ql(fo,po,ho),new Worker(In,t)});const Nn={};class Yl{constructor(e,n){this.cache=e,this.clientId=n,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(e){var n;const r=new Set(((n=await this.cache.get(this.manifestKey))===null||n===void 0?void 0:n.keys)||[]);r.add(e),await this.cache.set(this.manifestKey,{keys:[...r]})}async remove(e){const n=await this.cache.get(this.manifestKey);if(n){const r=new Set(n.keys);return r.delete(e),r.size>0?await this.cache.set(this.manifestKey,{keys:[...r]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(e){return`@@auth0spajs@@::${e}`}}const Xl={memory:()=>new Ei().enclosedCache,localstorage:()=>new Wl},mo=t=>Xl[t],vo=t=>{const{openUrl:e,onRedirect:n}=t,r=Ae(t,["openUrl","onRedirect"]);return Object.assign(Object.assign({},r),{openUrl:e===!1||e?e:n})},An=new Al;class Jl{constructor(e){let n,r;if(this.userCache=new Ei().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await An.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)},this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),e),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),e.authorizationParams)}),typeof window<"u"&&(()=>{if(!Yt())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(Yt().subtle===void 0)throw new Error(`
40
+ */var En,eo;function vc(){if(eo)return En;eo=1;var t=Object.getOwnPropertySymbols,e=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(d){return a[d]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return En=o()?Object.assign:function(i,a){for(var c,l=r(i),u,d=1;d<arguments.length;d++){c=Object(arguments[d]);for(var p in c)e.call(c,p)&&(l[p]=c[p]);if(t){u=t(c);for(var f=0;f<u.length;f++)n.call(c,u[f])&&(l[u[f]]=c[u[f]])}}return l},En}var Sn,to;function yr(){if(to)return Sn;to=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Sn=t,Sn}var kn,no;function ui(){return no||(no=1,kn=Function.call.bind(Object.prototype.hasOwnProperty)),kn}var Tn,ro;function gc(){if(ro)return Tn;ro=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=yr(),n={},r=ui();t=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,c,l,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(r(i,d)){var p;try{if(typeof i[d]!="function"){var f=Error((l||"React class")+": "+c+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}p=i[d](a,d,l,c,null,e)}catch(m){p=m}if(p&&!(p instanceof Error)&&t((l||"React class")+": type specification of "+c+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var h=u?u():"";t("Failed "+c+" type: "+p.message+(h??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Tn=o,Tn}var In,oo;function yc(){if(oo)return In;oo=1;var t=li(),e=vc(),n=yr(),r=ui(),o=gc(),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 In=function(c,l){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p(E){var I=E&&(u&&E[u]||E[d]);if(typeof I=="function")return I}var f="<<anonymous>>",h={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:j(),arrayOf:O,element:C(),elementType:b(),instanceOf:k,node:R(),objectOf:S,oneOf:_,oneOfType:P,shape:re,exact:te};function m(E,I){return E===I?E!==0||1/E===1/I:E!==E&&I!==I}function v(E,I){this.message=E,this.data=I&&typeof I=="object"?I:{},this.stack=""}v.prototype=Error.prototype;function g(E){if(process.env.NODE_ENV!=="production")var I={},L=0;function D(M,A,F,V,$,z,ie){if(V=V||f,z=z||F,ie!==n){if(l){var T=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 T.name="Invariant Violation",T}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var fe=V+":"+F;!I[fe]&&L<3&&(i("You are manually calling a React.PropTypes validation function for the `"+z+"` prop on `"+V+"`. 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."),I[fe]=!0,L++)}}return A[F]==null?M?A[F]===null?new v("The "+$+" `"+z+"` is marked as required "+("in `"+V+"`, but its value is `null`.")):new v("The "+$+" `"+z+"` is marked as required in "+("`"+V+"`, but its value is `undefined`.")):null:E(A,F,V,$,z)}var N=D.bind(null,!1);return N.isRequired=D.bind(null,!0),N}function w(E){function I(L,D,N,M,A,F){var V=L[D],$=J(V);if($!==E){var z=ne(V);return new v("Invalid "+M+" `"+A+"` of type "+("`"+z+"` supplied to `"+N+"`, expected ")+("`"+E+"`."),{expectedType:E})}return null}return g(I)}function j(){return g(a)}function O(E){function I(L,D,N,M,A){if(typeof E!="function")return new v("Property `"+A+"` of component `"+N+"` has invalid PropType notation inside arrayOf.");var F=L[D];if(!Array.isArray(F)){var V=J(F);return new v("Invalid "+M+" `"+A+"` of type "+("`"+V+"` supplied to `"+N+"`, expected an array."))}for(var $=0;$<F.length;$++){var z=E(F,$,N,M,A+"["+$+"]",n);if(z instanceof Error)return z}return null}return g(I)}function C(){function E(I,L,D,N,M){var A=I[L];if(!c(A)){var F=J(A);return new v("Invalid "+N+" `"+M+"` of type "+("`"+F+"` supplied to `"+D+"`, expected a single ReactElement."))}return null}return g(E)}function b(){function E(I,L,D,N,M){var A=I[L];if(!t.isValidElementType(A)){var F=J(A);return new v("Invalid "+N+" `"+M+"` of type "+("`"+F+"` supplied to `"+D+"`, expected a single ReactElement type."))}return null}return g(E)}function k(E){function I(L,D,N,M,A){if(!(L[D]instanceof E)){var F=E.name||f,V=pe(L[D]);return new v("Invalid "+M+" `"+A+"` of type "+("`"+V+"` supplied to `"+N+"`, expected ")+("instance of `"+F+"`."))}return null}return g(I)}function _(E){if(!Array.isArray(E))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 I(L,D,N,M,A){for(var F=L[D],V=0;V<E.length;V++)if(m(F,E[V]))return null;var $=JSON.stringify(E,function(ie,T){var fe=ne(T);return fe==="symbol"?String(T):T});return new v("Invalid "+M+" `"+A+"` of value `"+String(F)+"` "+("supplied to `"+N+"`, expected one of "+$+"."))}return g(I)}function S(E){function I(L,D,N,M,A){if(typeof E!="function")return new v("Property `"+A+"` of component `"+N+"` has invalid PropType notation inside objectOf.");var F=L[D],V=J(F);if(V!=="object")return new v("Invalid "+M+" `"+A+"` of type "+("`"+V+"` supplied to `"+N+"`, expected an object."));for(var $ in F)if(r(F,$)){var z=E(F,$,N,M,A+"."+$,n);if(z instanceof Error)return z}return null}return g(I)}function P(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var I=0;I<E.length;I++){var L=E[I];if(typeof L!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+xe(L)+" at index "+I+"."),a}function D(N,M,A,F,V){for(var $=[],z=0;z<E.length;z++){var ie=E[z],T=ie(N,M,A,F,V,n);if(T==null)return null;T.data&&r(T.data,"expectedType")&&$.push(T.data.expectedType)}var fe=$.length>0?", expected one of type ["+$.join(", ")+"]":"";return new v("Invalid "+F+" `"+V+"` supplied to "+("`"+A+"`"+fe+"."))}return g(D)}function R(){function E(I,L,D,N,M){return se(I[L])?null:new v("Invalid "+N+" `"+M+"` supplied to "+("`"+D+"`, expected a ReactNode."))}return g(E)}function H(E,I,L,D,N){return new v((E||"React class")+": "+I+" type `"+L+"."+D+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+N+"`.")}function re(E){function I(L,D,N,M,A){var F=L[D],V=J(F);if(V!=="object")return new v("Invalid "+M+" `"+A+"` of type `"+V+"` "+("supplied to `"+N+"`, expected `object`."));for(var $ in E){var z=E[$];if(typeof z!="function")return H(N,M,A,$,ne(z));var ie=z(F,$,N,M,A+"."+$,n);if(ie)return ie}return null}return g(I)}function te(E){function I(L,D,N,M,A){var F=L[D],V=J(F);if(V!=="object")return new v("Invalid "+M+" `"+A+"` of type `"+V+"` "+("supplied to `"+N+"`, expected `object`."));var $=e({},L[D],E);for(var z in $){var ie=E[z];if(r(E,z)&&typeof ie!="function")return H(N,M,A,z,ne(ie));if(!ie)return new v("Invalid "+M+" `"+A+"` key `"+z+"` supplied to `"+N+"`.\nBad object: "+JSON.stringify(L[D],null," ")+`
41
+ Valid keys: `+JSON.stringify(Object.keys(E),null," "));var T=ie(F,z,N,M,A+"."+z,n);if(T)return T}return null}return g(I)}function se(E){switch(typeof E){case"number":case"string":case"undefined":return!0;case"boolean":return!E;case"object":if(Array.isArray(E))return E.every(se);if(E===null||c(E))return!0;var I=p(E);if(I){var L=I.call(E),D;if(I!==E.entries){for(;!(D=L.next()).done;)if(!se(D.value))return!1}else for(;!(D=L.next()).done;){var N=D.value;if(N&&!se(N[1]))return!1}}else return!1;return!0;default:return!1}}function be(E,I){return E==="symbol"?!0:I?I["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&I instanceof Symbol:!1}function J(E){var I=typeof E;return Array.isArray(E)?"array":E instanceof RegExp?"object":be(I,E)?"symbol":I}function ne(E){if(typeof E>"u"||E===null)return""+E;var I=J(E);if(I==="object"){if(E instanceof Date)return"date";if(E instanceof RegExp)return"regexp"}return I}function xe(E){var I=ne(E);switch(I){case"array":case"object":return"an "+I;case"boolean":case"date":case"regexp":return"a "+I;default:return I}}function pe(E){return!E.constructor||!E.constructor.name?f:E.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},In}var _n,io;function bc(){if(io)return _n;io=1;var t=yr();function e(){}function n(){}return n.resetWarningCache=e,_n=function(){function r(a,c,l,u,d,p){if(p!==t){var f=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 f.name="Invariant Violation",f}}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:e};return i.PropTypes=i,i},_n}if(process.env.NODE_ENV!=="production"){var wc=li(),xc=!0;Yr.exports=yc()(wc.isElement,xc)}else Yr.exports=bc()();function Zn(t){return Zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zn(t)}var Cc;function Ht(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cc;return e?t.split(" ").map(function(n){return e[n]||n}).join(" "):t}function Oc(t,e){var n={};return Object.keys(t).forEach(function(r){e.indexOf(r)===-1&&(n[r]=t[r])}),n}function jc(t,e){for(var n=Array.isArray(e)?e:[e],r=n.length,o,i={};r>0;)r-=1,o=n[r],i[o]=t[o];return i}var Ec=(typeof window>"u"?"undefined":Zn(window))==="object"&&window.Element||function(){};function Sc(t,e,n){if(!(t[e]instanceof Ec))return new Error("Invalid prop `"+e+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}x.oneOfType([x.string,x.func,Sc,x.shape({current:x.any})]);var mn=x.oneOfType([x.func,x.string,x.shape({$$typeof:x.symbol,render:x.func}),x.arrayOf(x.oneOfType([x.func,x.string,x.shape({$$typeof:x.symbol,render:x.func})]))]),kc={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},so=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],qt={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},Tc=["className","cssModule","variant","innerRef"];function $n(){return $n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},$n.apply(this,arguments)}function ao(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ic(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ao(Object(n),!0).forEach(function(r){_c(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ao(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function _c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pc(t,e){if(t==null)return{};var n=Nc(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Nc(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}var Ac={active:x.bool,"aria-label":x.string,onClick:x.func,variant:x.oneOf(["white"]),className:x.string,cssModule:x.object,innerRef:x.oneOfType([x.object,x.string,x.func])};function di(t){var e=t.className;t.cssModule;var n=t.variant,r=t.innerRef,o=Pc(t,Tc),i=Ht(G(e,"btn-close",n&&"btn-close-".concat(n)));return y.createElement("button",$n({ref:r,type:"button",className:i},Ic({"aria-label":"close"},o)))}di.propTypes=Ac;var Rc=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function Gn(){return Gn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Gn.apply(this,arguments)}function Lc(t,e){if(t==null)return{};var n=Mc(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Mc(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}var Dc={active:x.bool,"aria-label":x.string,block:x.bool,children:x.node,className:x.string,cssModule:x.object,close:x.bool,color:x.string,disabled:x.bool,innerRef:x.oneOfType([x.object,x.func,x.string]),onClick:x.func,outline:x.bool,size:x.string,tag:mn};function Vt(t){var e=y.useCallback(function(j){if(t.disabled){j.preventDefault();return}if(t.onClick)return t.onClick(j)},[t.onClick,t.disabled]),n=t.active,r=t["aria-label"],o=t.block,i=t.className,a=t.close,c=t.cssModule,l=t.color,u=l===void 0?"secondary":l,d=t.outline,p=t.size,f=t.tag,h=f===void 0?"button":f,m=t.innerRef,v=Lc(t,Rc);if(a)return y.createElement(di,v);var g="btn".concat(d?"-outline":"","-").concat(u),w=Ht(G(i,"btn",g,p?"btn-".concat(p):!1,o?"d-block w-100":!1,{active:n,disabled:t.disabled}),c);return v.href&&h==="button"&&(h="a"),y.createElement(h,Gn({type:h==="button"&&v.onClick?"button":void 0},v,{className:w,ref:m,onClick:e,"aria-label":r}))}Vt.propTypes=Dc;function Fc(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function qn(t,e){return qn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},qn(t,e)}function Uc(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,qn(t,e)}const co={disabled:!1};var Wc=process.env.NODE_ENV!=="production"?x.oneOfType([x.number,x.shape({enter:x.number,exit:x.number,appear:x.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&x.oneOfType([x.string,x.shape({enter:x.string,exit:x.string,active:x.string}),x.shape({enter:x.string,enterDone:x.string,enterActive:x.string,exit:x.string,exitDone:x.string,exitActive:x.string})]);const fi=y.createContext(null);var Hc=function(e){return e.scrollTop},It="unmounted",Xe="exited",Je="entering",dt="entered",Kn="exiting",He=function(t){Uc(e,t);function e(r,o){var i;i=t.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=Xe,i.appearStatus=Je):l=dt:r.unmountOnExit||r.mountOnEnter?l=It:l=Xe,i.state={status:l},i.nextCallback=null,i}e.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===It?{status:Xe}:null};var n=e.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!==Je&&a!==dt&&(i=Je):(a===Je||a===dt)&&(i=Kn)}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===Je){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:kt.findDOMNode(this);a&&Hc(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Xe&&this.setState({status:It})},n.performEnter=function(o){var i=this,a=this.props.enter,c=this.context?this.context.isMounting:o,l=this.props.nodeRef?[c]:[kt.findDOMNode(this),c],u=l[0],d=l[1],p=this.getTimeouts(),f=c?p.appear:p.enter;if(!o&&!a||co.disabled){this.safeSetState({status:dt},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Je},function(){i.props.onEntering(u,d),i.onTransitionEnd(f,function(){i.safeSetState({status:dt},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),c=this.props.nodeRef?void 0:kt.findDOMNode(this);if(!i||co.disabled){this.safeSetState({status:Xe},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:Kn},function(){o.props.onExiting(c),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Xe},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:kt.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],u=l[0],d=l[1];this.props.addEndListener(u,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===It)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=Fc(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return y.createElement(fi.Provider,{value:null},typeof a=="function"?a(o,c):y.cloneElement(y.Children.only(a),c))},e}(y.Component);He.contextType=fi;He.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:x.shape({current:typeof Element>"u"?x.any:function(t,e,n,r,o,i){var a=t[e];return x.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(t,e,n,r,o,i)}}),children:x.oneOfType([x.func.isRequired,x.element.isRequired]).isRequired,in:x.bool,mountOnEnter:x.bool,unmountOnExit:x.bool,appear:x.bool,enter:x.bool,exit:x.bool,timeout:function(e){var n=Wc;e.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,[e].concat(o))},addEndListener:x.func,onEnter:x.func,onEntering:x.func,onEntered:x.func,onExit:x.func,onExiting:x.func,onExited:x.func}:{};function at(){}He.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:at,onEntering:at,onEntered:at,onExit:at,onExiting:at,onExited:at};He.UNMOUNTED=It;He.EXITED=Xe;He.ENTERING=Je;He.ENTERED=dt;He.EXITING=Kn;const br=He;function Yn(t){return Yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yn(t)}var Vc=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],ct;function on(){return on=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},on.apply(this,arguments)}function Bc(t,e){if(t==null)return{};var n=zc(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function zc(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Zc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function $c(t,e,n){return e&&lo(t.prototype,e),n&&lo(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Gc(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xn(t,e)}function Xn(t,e){return Xn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Xn(t,e)}function qc(t){var e=Yc();return function(){var r=sn(t),o;if(e){var i=sn(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Kc(this,o)}}function Kc(t,e){if(e&&(Yn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pi(t)}function pi(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Yc(){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 sn(t){return sn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sn(t)}function uo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function xt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?uo(Object(n),!0).forEach(function(r){pt(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uo(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function pt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Xc=xt(xt({},br.propTypes),{},{horizontal:x.bool,isOpen:x.bool,children:x.oneOfType([x.arrayOf(x.node),x.node]),tag:mn,className:x.node,navbar:x.bool,cssModule:x.object,innerRef:x.shape({current:x.object})}),Jc=xt(xt({},br.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:kc.Collapse}),Qc=(ct={},pt(ct,qt.ENTERING,"collapsing"),pt(ct,qt.ENTERED,"collapse show"),pt(ct,qt.EXITING,"collapsing"),pt(ct,qt.EXITED,"collapse"),ct);function el(t){return Qc[t]||"collapse"}var wr=function(t){Gc(n,t);var e=qc(n);function n(r){var o;return Zc(this,n),o=e.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(pi(o))}),o}return $c(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,u=i.className,d=i.navbar,p=i.cssModule,f=i.children;i.innerRef;var h=Bc(i,Vc),m=this.state.dimension,v=jc(h,so),g=Oc(h,so);return y.createElement(br,on({},v,{in:l,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(w){var j=el(w),O=Ht(G(u,c&&"collapse-horizontal",j,d&&"navbar-collapse"),p),C=m===null?null:pt({},c?"width":"height",m);return y.createElement(a,on({},g,{style:xt(xt({},g.style),C),className:O,ref:o.nodeRef}),f)})}}]),n}(y.Component);wr.propTypes=Xc;wr.defaultProps=Jc;const hi=wr;function Jn(t){return Jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jn(t)}var tl=["className","cssModule","tag","innerRef"];function Qn(){return Qn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Qn.apply(this,arguments)}function nl(t,e){if(t==null)return{};var n=rl(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function rl(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function ol(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function il(t,e,n){return e&&fo(t.prototype,e),n&&fo(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function sl(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&er(t,e)}function er(t,e){return er=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},er(t,e)}function al(t){var e=ll();return function(){var r=an(t),o;if(e){var i=an(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return cl(this,o)}}function cl(t,e){if(e&&(Jn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tr(t)}function tr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ll(){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 an(t){return an=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},an(t)}var ul={children:x.node,tag:mn,innerRef:x.oneOfType([x.object,x.func,x.string]),className:x.string,cssModule:x.object},mi=function(t){sl(n,t);var e=al(n);function n(r){var o;return ol(this,n),o=e.call(this,r),o.getRef=o.getRef.bind(tr(o)),o.submit=o.submit.bind(tr(o)),o}return il(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=c===void 0?"form":c,u=o.innerRef,d=nl(o,tl),p=Ht(i,a);return y.createElement(l,Qn({},d,{ref:u,className:p}))}}]),n}(y.Component);mi.propTypes=ul;const dl=mi;var fl=["className","cssModule","row","disabled","check","inline","floating","noMargin","tag","switch"];function nr(){return nr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},nr.apply(this,arguments)}function pl(t,e){if(t==null)return{};var n=hl(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function hl(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}var ml={children:x.node,row:x.bool,check:x.bool,switch:x.bool,inline:x.bool,floating:x.bool,noMargin:x.bool,disabled:x.bool,tag:mn,className:x.string,cssModule:x.object};function rr(t){var e=t.className,n=t.cssModule,r=t.row,o=t.disabled,i=t.check,a=t.inline,c=t.floating,l=t.noMargin,u=t.tag,d=u===void 0?"div":u,p=t.switch,f=pl(t,fl),h=i||p,m=Ht(G(e,r?"row":!1,h?"form-check":!1,p?"form-switch":!1,h||l?!1:"mb-3",h&&a?"form-check-inline":!1,h&&o?"disabled":!1,c&&"form-floating"),n);return d==="fieldset"&&(f.disabled=o),y.createElement(d,nr({},f,{className:m}))}rr.propTypes=ml;const vn=t=>{const{config:e,isFavoritismEnabled:n,level:r=1,onItemClick:o}=t,{isCollapsible:i,showAllItems:a,displayCount:c=Zs}=e,l=rt(),u=Bo(),[d,p]=y.useState(1),[f,h]=y.useState(0),[m,v]=y.useState(!1),g=y.useRef({}),w=e.items.filter(S=>_t(S)),j=e.items.filter(S=>!_t(S)),O=a?j:j.slice(0,d*c);y.useEffect(()=>{l.isOpen||p(1)},[l.isOpen]);const C=()=>{p(S=>S+1)},b=[...w,...O],k=S=>{g.current[S]?.querySelector("[tabIndex]")?.focus(),h(S)},_=()=>{i&&v(S=>!S)};return s.jsxs("li",{className:"section",children:[s.jsx(Do,{iconSrc:e.iconSrc,iconName:e.iconName,style:{paddingLeft:`${r===1?4:(r-2)*12+6}px`},title:e.title,showCollapseIcon:i,isOpen:m,onClick:_,showHoverIndicator:r!==1}),s.jsxs(hi,{isOpen:i?m:!0,tag:"ul",children:[b.map((S,P)=>_t(S)?s.jsx(vn,{config:S,isFavoritismEnabled:n,level:r+1,onItemClick:o},S.id):s.jsx("li",{ref:R=>g.current[P]=R,children:s.jsx(ci,{isFavoritismEnabled:n,item:S,onClick:(R,H)=>o?.(R,{item:S,modifier:u,selectedContextMenuActionName:H?.name}),style:{paddingLeft:`${r===1?7:r*11}px`},onKeyDown:R=>{Mo({event:R,moveFocus:k,currentIndex:f,min:0,max:b.length-1})},focused:f===P},S.id||P)},S.id||P)),!a&&e.items.length-w.length>c*d&&s.jsx("li",{"data-testid":"more-li-element",children:s.jsx("div",{className:"io-list-item more",style:{paddingLeft:`${(r===1?7:r*11)+8}px`},role:"button","aria-label":"More",...vt(C),children:s.jsxs("div",{className:"io-list-row",children:[s.jsx("span",{className:"title",children:"More..."}),s.jsx(oe,{size:12,name:"chevron-down","data-testid":"more-chevron"})]})})})]})]})},vi=t=>`${t.type}-${t.id}`,vl=(t,e)=>gi(t)[e],gi=t=>t.reduce((e,n)=>_t(n)?{...e,...gi(n.items)}:{...e,[vi(n)]:n},{}),yi=y.createContext(void 0),gl=()=>{const t=y.useContext(yi);if(t===void 0)throw new Error("useSection must be used within a SectionProvider");return t},yl=({children:t})=>{const[e,n]=y.useState(null);return s.jsx(yi.Provider,{value:[e,n],children:t})},gn=({config:t,onItemClick:e})=>{const[n,r]=gl(),o=rt(),i=Bo(),a=(c,l)=>{const{item:u,selectedContextMenuActionName:d}=l;r({itemName:vi(u),selectedContextMenuActionName:d})};return y.useEffect(()=>{if(!e||!n)return;const{itemName:c,selectedContextMenuActionName:l}=n,u=vl(t.items,c);u&&(e({item:u,modifier:i,selectedContextMenuActionName:l}),r(null),i!==dn.SHIFT&&o.close())},[n,t.items,o,e,i,r]),s.jsx(vn,{config:t,onItemClick:a})};function bi(t){const{displayCount:e,isFolderCollapsible:n,isSectionCollapsible:r,showAllItems:o,sortOrder:i}=t,a=ss(),c=as(),l=zo(),u=Zo(),d=y.useMemo(()=>rs(a,c,{...{displayCount:e,showAllItems:o},isFolderCollapsible:n,isSectionCollapsible:r,sortOrder:i}),[a,c,e,n,r,o,i]),p=f=>{const{item:h,modifier:m,selectedContextMenuActionName:v}=f;if(!v)return l({id:h.id,modifier:m}).catch(g=>{console.error("Failed to start application",{error:g})});u(h,v)};return s.jsx(gn,{config:d,onItemClick:p})}const bl={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"},wl={loginPageLogo:bl},xl="256px",ot=({logoSrc:t=wl.loginPageLogo.value,width:e=xl,className:n="logo"})=>s.jsx("img",{width:e,src:t,className:n,alt:"Login logo"});const Bt=({children:t,description:e,heading:n,Image:r,title:o,className:i})=>s.jsxs("div",{className:G("info-card",i),children:[o&&s.jsx("h1",{className:"info-card-title",children:o}),r&&s.jsx("div",{className:"info-card-image",children:s.jsx(r,{})}),n&&s.jsx("h3",{className:"info-card-heading",children:n}),s.jsx("p",{className:"info-card-description",children:e}),t]}),Cl=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:222,height:130,fill:"none",...t,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"})]})]})]}),Ol=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"none",height:"63",viewBox:"0 0 63 63",width:"63",...t,children:[s.jsxs("linearGradient",{id:"chrome_a",gradientUnits:"userSpaceOnUse",x1:"34.9087",x2:"7.63224",y1:"61.029",y2:"13.7847",children:[s.jsx("stop",{offset:"0",stopColor:"#1e8e3e"}),s.jsx("stop",{offset:"1",stopColor:"#34a853"})]}),s.jsxs("linearGradient",{id:"chrome_b",gradientUnits:"userSpaceOnUse",x1:"26.9043",x2:"54.1808",y1:"63.0788",y2:"15.8345",children:[s.jsx("stop",{offset:"0",stopColor:"#fcc934"}),s.jsx("stop",{offset:"1",stopColor:"#fbbc04"})]}),s.jsxs("linearGradient",{id:"chrome_c",gradientUnits:"userSpaceOnUse",x1:"4.22145",x2:"58.7745",y1:"19.6884",y2:"19.6884",children:[s.jsx("stop",{offset:"0",stopColor:"#d93025"}),s.jsx("stop",{offset:"1",stopColor:"#ea4335"})]}),s.jsx("path",{d:"m31.499 47.2466c8.6985 0 15.75-7.0515 15.75-15.75s-7.0515-15.75-15.75-15.75-15.75 7.0515-15.75 15.75 7.0515 15.75 15.75 15.75z",fill:"#fff"}),s.jsx("path",{d:"m17.8591 39.3751-13.63772-23.6212c-2.76527 4.788-4.22118922 10.2197-4.22137998 15.7489s1.45535998 10.961 4.22028998 15.7492c2.76494 4.7882 6.74181 8.7641 11.53071 11.5279 4.7889 2.7637 10.221 4.2179 15.7502 4.2164l13.6377-23.6212v-.0041c-1.3813 2.3954-3.369 4.3848-5.7632 5.7681s-5.1104 2.1118-7.8755 2.1122-5.4816-.7272-7.8762-2.1099c-2.3945-1.3826-4.3829-3.3714-5.7649-5.7663z",fill:"url(#chrome_a)"}),s.jsx("path",{d:"m45.1379 39.3741-13.6376 23.6212c5.5292.0008 10.9611-1.4542 15.7496-4.2187 4.7885-2.7644 8.7648-6.7408 11.5291-11.5294 2.7642-4.7887 4.219-10.2207 4.2181-15.7499-.001-5.5292-1.4577-10.9606-4.2237-15.7483h-27.2754l-.0034.0021c2.7651-.0014 5.4818.7254 7.8769 2.1071 2.3951 1.3818 4.3841 3.3698 5.767 5.7643 1.3829 2.3944 2.1109 5.1108 2.1109 7.8758-.0001 2.7651-.7283 5.4814-2.1113 7.8758z",fill:"url(#chrome_b)"}),s.jsx("path",{d:"m31.499 43.9688c6.8863 0 12.4688-5.5825 12.4688-12.4688s-5.5825-12.4688-12.4688-12.4688-12.4687 5.5825-12.4687 12.4688 5.5824 12.4688 12.4687 12.4688z",fill:"#1a73e8"}),s.jsx("path",{d:"m31.4991 15.75h27.2754c-2.764-4.7888-6.74-8.76553-11.5283-11.53029-4.7883-2.76475-10.2202-4.22010235-15.7494-4.21970992s-10.9608 1.45650992-15.7487 4.22194992c-4.788 2.76543-8.76341 6.74275-11.52666 11.53185l13.63766 23.6212.0035.0019c-1.3837-2.394-2.1127-5.11-2.1136-7.8751s.7264-5.4817 2.1086-7.8765c1.3821-2.3948 3.3706-4.3835 5.7652-5.7659 2.3947-1.3825 5.1112-2.11 7.8763-2.1094z",fill:"url(#chrome_c)"})]}),jl=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",...t,children:[s.jsxs("defs",{children:[s.jsxs("radialGradient",{id:"edge_b",cx:161.8,cy:68.9,r:95.4,gradientTransform:"matrix(1 0 0 -.95 0 248.8)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:.7,stopOpacity:0}),s.jsx("stop",{offset:.9,stopOpacity:.5}),s.jsx("stop",{offset:1})]}),s.jsxs("radialGradient",{id:"edge_d",cx:-340.3,cy:63,r:143.2,gradientTransform:"matrix(.15 -.99 -.8 -.12 176.6 -125.4)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:.8,stopOpacity:0}),s.jsx("stop",{offset:.9,stopOpacity:.5}),s.jsx("stop",{offset:1})]}),s.jsxs("radialGradient",{id:"edge_e",cx:113.4,cy:570.2,r:202.4,gradientTransform:"matrix(-.04 1 2.13 .08 -1179.5 -106.7)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#35c1f1"}),s.jsx("stop",{offset:.1,stopColor:"#34c1ed"}),s.jsx("stop",{offset:.2,stopColor:"#2fc2df"}),s.jsx("stop",{offset:.3,stopColor:"#2bc3d2"}),s.jsx("stop",{offset:.7,stopColor:"#36c752"})]}),s.jsxs("radialGradient",{id:"edge_f",cx:376.5,cy:568,r:97.3,gradientTransform:"matrix(.28 .96 .78 -.23 -303.8 -148.5)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#66eb6e"}),s.jsx("stop",{offset:1,stopColor:"#66eb6e",stopOpacity:0})]}),s.jsxs("linearGradient",{id:"edge_a",x1:63.3,x2:241.7,y1:84,y2:84,gradientTransform:"matrix(1 0 0 -1 0 266)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#0c59a4"}),s.jsx("stop",{offset:1,stopColor:"#114a8b"})]}),s.jsxs("linearGradient",{id:"edge_c",x1:157.3,x2:46,y1:161.4,y2:40.1,gradientTransform:"matrix(1 0 0 -1 0 266)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#1b9de2"}),s.jsx("stop",{offset:.2,stopColor:"#1595df"}),s.jsx("stop",{offset:.7,stopColor:"#0680d7"}),s.jsx("stop",{offset:1,stopColor:"#0078d4"})]})]}),s.jsx("path",{d:"M235.7 195.5a93.7 93.7 0 0 1-10.6 4.7 101.9 101.9 0 0 1-35.9 6.4c-47.3 0-88.5-32.5-88.5-74.3a31.5 31.5 0 0 1 16.4-27.3c-42.8 1.8-53.8 46.4-53.8 72.5 0 74 68.1 81.4 82.8 81.4 7.9 0 19.8-2.3 27-4.6l1.3-.4a128.3 128.3 0 0 0 66.6-52.8 4 4 0 0 0-5.3-5.6Z",style:{fill:"url(#edge_a)"},transform:"translate(-4.6 -5)"}),s.jsx("path",{d:"M235.7 195.5a93.7 93.7 0 0 1-10.6 4.7 101.9 101.9 0 0 1-35.9 6.4c-47.3 0-88.5-32.5-88.5-74.3a31.5 31.5 0 0 1 16.4-27.3c-42.8 1.8-53.8 46.4-53.8 72.5 0 74 68.1 81.4 82.8 81.4 7.9 0 19.8-2.3 27-4.6l1.3-.4a128.3 128.3 0 0 0 66.6-52.8 4 4 0 0 0-5.3-5.6Z",style:{isolation:"isolate",opacity:.35,fill:"url(#edge_b)"},transform:"translate(-4.6 -5)"}),s.jsx("path",{d:"M110.3 246.3A79.2 79.2 0 0 1 87.6 225a80.7 80.7 0 0 1 29.5-120c3.2-1.5 8.5-4.1 15.6-4a32.4 32.4 0 0 1 25.7 13 31.9 31.9 0 0 1 6.3 18.7c0-.2 24.5-79.6-80-79.6-43.9 0-80 41.6-80 78.2a130.2 130.2 0 0 0 12.1 56 128 128 0 0 0 156.4 67 75.5 75.5 0 0 1-62.8-8Z",style:{fill:"url(#edge_c)"},transform:"translate(-4.6 -5)"}),s.jsx("path",{d:"M110.3 246.3A79.2 79.2 0 0 1 87.6 225a80.7 80.7 0 0 1 29.5-120c3.2-1.5 8.5-4.1 15.6-4a32.4 32.4 0 0 1 25.7 13 31.9 31.9 0 0 1 6.3 18.7c0-.2 24.5-79.6-80-79.6-43.9 0-80 41.6-80 78.2a130.2 130.2 0 0 0 12.1 56 128 128 0 0 0 156.4 67 75.5 75.5 0 0 1-62.8-8Z",style:{opacity:.41,fill:"url(#edge_d)",isolation:"isolate"},transform:"translate(-4.6 -5)"}),s.jsx("path",{d:"M157 153.8c-.9 1-3.4 2.5-3.4 5.6 0 2.6 1.7 5.2 4.8 7.3 14.3 10 41.4 8.6 41.5 8.6a59.6 59.6 0 0 0 30.3-8.3 61.4 61.4 0 0 0 30.4-52.9c.3-22.4-8-37.3-11.3-43.9C228 28.8 182.3 5 132.6 5a128 128 0 0 0-128 126.2c.5-36.5 36.8-66 80-66 3.5 0 23.5.3 42 10a72.6 72.6 0 0 1 30.9 29.3c6.1 10.6 7.2 24.1 7.2 29.5s-2.7 13.3-7.8 19.9Z",style:{fill:"url(#edge_e)"},transform:"translate(-4.6 -5)"}),s.jsx("path",{d:"M157 153.8c-.9 1-3.4 2.5-3.4 5.6 0 2.6 1.7 5.2 4.8 7.3 14.3 10 41.4 8.6 41.5 8.6a59.6 59.6 0 0 0 30.3-8.3 61.4 61.4 0 0 0 30.4-52.9c.3-22.4-8-37.3-11.3-43.9C228 28.8 182.3 5 132.6 5a128 128 0 0 0-128 126.2c.5-36.5 36.8-66 80-66 3.5 0 23.5.3 42 10a72.6 72.6 0 0 1 30.9 29.3c6.1 10.6 7.2 24.1 7.2 29.5s-2.7 13.3-7.8 19.9Z",style:{fill:"url(#edge_f)"},transform:"translate(-4.6 -5)"})]}),El=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75.591 75.591",...t,children:[s.jsxs("linearGradient",{id:"opera_a",x2:1,gradientTransform:"matrix(0 -54.944 -54.944 0 23.62 79.474)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#ff1b2d"}),s.jsx("stop",{offset:.3,stopColor:"#ff1b2d"}),s.jsx("stop",{offset:.614,stopColor:"#ff1b2d"}),s.jsx("stop",{offset:1,stopColor:"#a70014"})]}),s.jsxs("linearGradient",{id:"opera_b",x2:1,gradientTransform:"matrix(0 -48.595 -48.595 0 37.854 76.235)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#9c0000"}),s.jsx("stop",{offset:.7,stopColor:"#ff4b4b"}),s.jsx("stop",{offset:1,stopColor:"#ff4b4b"})]}),s.jsx("path",{fill:"url(#opera_a)",d:"M28.346 80.398C12.691 80.398 0 67.707 0 52.052 0 36.85 11.968 24.443 26.996 23.739a28.244 28.244 0 0 1 20.241 7.18c-3.322-2.203-7.207-3.47-11.359-3.47-6.75 0-12.796 3.348-16.862 8.629-3.134 3.7-5.164 9.169-5.302 15.307v1.335c.138 6.137 2.168 11.608 5.302 15.307 4.066 5.28 10.112 8.63 16.862 8.63 4.152 0 8.038-1.269 11.36-3.474a28.239 28.239 0 0 1-18.785 7.215l-.108.001z",transform:"matrix(1.3333 0 0 -1.3333 0 107.2)"}),s.jsx("path",{fill:"url(#opera_b)",d:"M19.016 68.025c2.601 3.07 5.96 4.923 9.631 4.923 8.252 0 14.941-9.356 14.941-20.897s-6.69-20.897-14.941-20.897c-3.67 0-7.03 1.85-9.63 4.922 4.066-5.281 10.11-8.63 16.862-8.63 4.152 0 8.036 1.268 11.359 3.472 5.802 5.19 9.455 12.735 9.455 21.133 0 8.397-3.653 15.94-9.453 21.13-3.324 2.206-7.209 3.473-11.361 3.473-6.75 0-12.796-3.348-16.862-8.63",transform:"matrix(1.3333 0 0 -1.3333 0 107.2)"})]}),Sl=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:182,height:121,fill:"none",...t,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"})]})]})]}),kl=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:96,height:97,fill:"none",...t,children:[s.jsxs("g",{clipPath:"url(#a)",children:[s.jsx("path",{fill:"#DE2122",d:"M44.884 61.418c1.385-2.398 4.847-2.398 6.232 0l17.138 29.685c1.385 2.399-.346 5.397-3.116 5.397H30.862c-2.77 0-4.501-2.998-3.116-5.397l17.138-29.685Z"}),s.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M46.102 68.477h3.795a1 1 0 0 1 .994 1.113l-1.83 16.095a1 1 0 0 1-.993.887h-.2a1 1 0 0 1-.995-.891l-1.765-16.095a1 1 0 0 1 .994-1.109Zm1.875 20.08a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Z",clipRule:"evenodd"}),s.jsx("path",{fill:"url(#b)",fillRule:"evenodd",d:"m80.962 29.606 1.547 3.745a2 2 0 0 0 1.177 1.121l5.753 2.052a2 2 0 0 1 1.328 1.884v9.717a2 2 0 0 1-1.328 1.884l-5.753 2.052a2 2 0 0 0-1.177 1.121l-1.547 3.746c-.48 1.158-.958 2.316-1.549 3.747a2 2 0 0 0 .043 1.621l2.621 5.512a2 2 0 0 1-.392 2.274l-6.87 6.87a2 2 0 0 1-2.273.392l-6.04-2.873a.698.698 0 0 0-.56-.011.674.674 0 0 1-.842-.292l-6.964-12.062c-.565-.979-.2-2.223.734-2.86 5.113-3.48 8.472-9.348 8.472-16 0-10.66-8.66-19.321-19.342-19.321-10.681 0-19.342 8.64-19.342 19.321 0 6.652 3.359 12.52 8.472 16 .935.637 1.3 1.881.735 2.86L30.9 74.168a.674.674 0 0 1-.843.292.698.698 0 0 0-.56.011l-6.04 2.873a2 2 0 0 1-2.273-.392l-6.87-6.87a2 2 0 0 1-.392-2.273l2.621-5.513a2 2 0 0 0 .043-1.621c-.59-1.431-1.07-2.59-1.549-3.747l-1.547-3.745a2.001 2.001 0 0 0-1.177-1.122L6.56 50.01a2 2 0 0 1-1.328-1.884v-9.717a2 2 0 0 1 1.328-1.884l5.753-2.052c.533-.19.96-.598 1.177-1.121l1.547-3.745c.48-1.158.958-2.316 1.549-3.748a2 2 0 0 0-.043-1.621l-2.621-5.512a2 2 0 0 1 .392-2.273l6.87-6.87a2 2 0 0 1 2.273-.393l5.512 2.622a2 2 0 0 0 1.622.042c1.431-.59 2.59-1.07 3.747-1.548l3.745-1.548a2 2 0 0 0 1.121-1.177l2.053-5.752A2 2 0 0 1 43.14.5h9.718a2 2 0 0 1 1.883 1.328l2.053 5.752a2 2 0 0 0 1.12 1.177c1.431.59 2.589 1.07 3.746 1.548 1.158.479 2.316.958 3.747 1.548a2 2 0 0 0 1.622-.042l5.512-2.622a2 2 0 0 1 2.273.392l6.87 6.87a2 2 0 0 1 .392 2.274l-2.621 5.512a2 2 0 0 0-.043 1.622l1.549 3.747Z",clipRule:"evenodd"})]}),s.jsxs("defs",{children:[s.jsxs("linearGradient",{id:"b",x1:48,x2:48,y1:.5,y2:77.538,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"gray"}),s.jsx("stop",{offset:1,stopColor:"#56585D"})]}),s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M0 .5h96v96H0z"})})]})]}),Tl=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:196,height:130,fill:"none",...t,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"})]})]})]}),Il=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:247,height:143,fill:"none",...t,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"})]})]})]}),_l=[{name:"Google Chrome",Image:Ol,url:"https://www.google.com/chrome/"},{name:"Microsoft Edge",Image:jl,url:"https://www.microsoft.com/en-us/edge/download"},{name:"Opera",Image:El,url:"https://www.opera.com/browsers/opera"}];const xr=({className:t,children:e,Logo:n})=>s.jsx("div",{className:G("info-page-container",t),children:s.jsxs("div",{className:"info-page-wrapper",children:[s.jsx(n,{className:"mb-32"}),e]})}),Pl=({supportEmail:t})=>s.jsxs("p",{className:"additional-information",children:["For more information, visit the io.Connect Browser",s.jsx("br",{}),s.jsx("a",{href:"https://docs.interop.io/browser/getting-started/requirements-compatibility/index.html",target:"_blank",rel:"noopener noreferrer",children:"documentation"}),t?s.jsxs(s.Fragment,{children:[" or ",s.jsx("a",{href:`mailto:${t}?subject=Issue with io.Connect Browser`,children:"contact us"}),"."]}):s.jsxs(s.Fragment,{children:[" or our ",s.jsx("a",{href:"https://support.interop.io",target:"_blank",rel:"noopener noreferrer",children:"help center"}),"."]})]});const Nl=({components:{Logo:t=ot}={},supportEmail:e})=>{const n="Hmm… it seems that this browser or device doesn’t support critical io.Connect features.",r="For best experience, we recommend using the latest version of one of the following browsers:";return s.jsxs(xr,{className:"browser-not-supported",Logo:t,children:[s.jsx(Bt,{title:n,description:r}),s.jsx("ul",{className:"browsers-list",children:_l.map(({Image:o,name:i,url:a})=>s.jsxs("li",{onClick:()=>window.open(a,"_blank","noopener,noreferrer"),children:[s.jsx("div",{className:"browsers-list-image",children:s.jsx(o,{})}),s.jsx("div",{children:i})]},i))}),s.jsx(Pl,{supportEmail:e})]})};function zt({children:t,className:e,color:n,...r}){return s.jsx("button",{className:G(e,"io-btn",n),...r,children:t})}function yn(t){const{className:e,items:n,onItemClick:r,...o}=t;return s.jsx("div",{className:G("io-btn-group",e),...o,children:n.map((i,a)=>{const{onClick:c,...l}=i;return s.jsx(zt,{onClick:u=>{c&&c(u),r&&r(u,i)},...l},a)})})}const Al=(t,e)=>{const{isSectionCollapsible:n,sortOrder:r=At.DISABLED,...o}=e;return{id:"favorites-section",title:"Favorites",items:ar({items:t,sortOrder:r,ascendingCompare:No,descendingCompare:Ao}),iconName:"star",isCollapsible:n,...o}},wi=t=>{const{displayCount:e,isSectionCollapsible:n,showAllItems:r,sortOrder:o}=t,{favoriteEntities:i}=un(),a=y.useMemo(()=>Al(i,{...{displayCount:e,showAllItems:r},isSectionCollapsible:n,sortOrder:o}),[i,e,n,r,o]);return i.length>0?s.jsx(gn,{config:a}):null},Cr=y.createContext(void 0),xi=()=>{const t=y.useContext(Cr);if(t===void 0)throw new Error("useWorkspaceComponentsContext must be used within an WorkspaceComponentsContextProvider");return t},Ci=({icon:t})=>{const{user:e,onLogout:n,launchpadComponents:r}=xi();return s.jsx(Ar,{user:e,onLogout:n,icon:t,components:r})},Rl=t=>{const{onLogout:e,user:n,launchpad:r,icon:o}=t;return s.jsx(Ar,{user:n,onLogout:e,icon:o,components:r?.components})},Ll=()=>{const t=fn?[Le.NOTIFICATIONS,Le.WINDOW_MANAGEMENT]:[Le.NOTIFICATIONS];return Promise.all(t.map(async e=>{const n=await navigator.permissions.query({name:e});return n.stableName=e,n}))},Oi=y.createContext(void 0),qe=()=>{const t=y.useContext(Oi);if(t===void 0)throw new Error("useIOConnectHome must be used within an IOConnectHomeProvider");return t},ji=({children:t})=>{const[e,n]=y.useState([]),r=e.length===0,o={isDenied:!r&&e.some(({state:a})=>a==="denied"),isLoading:r,isSetupCompleted:!r&&e.every(({state:a})=>a==="granted"),statuses:e},i=y.useRef(!1);return y.useEffect(()=>{let a=!1;const c=Ll().then(l=>{if(a)return;n(l);const u=[];let d=!1;return l.forEach((p,f)=>{const h=m=>{if(a||!m.target||d)return;const v=m.target;if(v.state==="prompt"||v.state==="denied"&&i.current)return d=!0,window.location.reload();n(w=>[...w.slice(0,f),v,...w.slice(f+1)])};p.addEventListener("change",h),u.push(()=>p.removeEventListener("change",h))}),u}).catch(console.warn);return()=>{a=!0,c.then(l=>{l?.forEach(u=>u())})}},[]),y.useEffect(()=>{i.current=o.isSetupCompleted},[o.isSetupCompleted]),s.jsx(Oi.Provider,{value:{permission:o},children:t})};var or=function(t,e){return or=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},or(t,e)};function Ml(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");or(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var ue=function(){return ue=Object.assign||function(e){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)&&(e[i]=n[i])}return e},ue.apply(this,arguments)};function Dl(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function lt(t,e,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function c(d){try{u(r.next(d))}catch(p){a(p)}}function l(d){try{u(r.throw(d))}catch(p){a(p)}}function u(d){d.done?i(d.value):o(d.value).then(c,l)}u((r=r.apply(t,e||[])).next())})}function ut(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(u){return function(d){return l([u,d])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(d){u=[6,d],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Ae(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}var ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Or(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function jr(t,e){return t(e={exports:{}},e.exports),e.exports}var Qe=jr(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function r(){var o=this;this.locked=new Map,this.addToLocked=function(i,a){var c=o.locked.get(i);c===void 0?a===void 0?o.locked.set(i,[]):o.locked.set(i,[a]):a!==void 0&&(c.unshift(a),o.locked.set(i,c))},this.isLocked=function(i){return o.locked.has(i)},this.lock=function(i){return new Promise(function(a,c){o.isLocked(i)?o.addToLocked(i,a):(o.addToLocked(i),a())})},this.unlock=function(i){var a=o.locked.get(i);if(a!==void 0&&a.length!==0){var c=a.pop();o.locked.set(i,a),c!==void 0&&setTimeout(c,0)}else o.locked.delete(i)}}return r.getInstance=function(){return r.instance===void 0&&(r.instance=new r),r.instance},r}();e.default=function(){return n.getInstance()}});Or(Qe);var Fl=Or(jr(function(t,e){var n=ht&&ht.__awaiter||function(l,u,d,p){return new(d||(d=Promise))(function(f,h){function m(w){try{g(p.next(w))}catch(j){h(j)}}function v(w){try{g(p.throw(w))}catch(j){h(j)}}function g(w){w.done?f(w.value):new d(function(j){j(w.value)}).then(m,v)}g((p=p.apply(l,u||[])).next())})},r=ht&&ht.__generator||function(l,u){var d,p,f,h,m={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return h={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function v(g){return function(w){return function(j){if(d)throw new TypeError("Generator is already executing.");for(;m;)try{if(d=1,p&&(f=2&j[0]?p.return:j[0]?p.throw||((f=p.return)&&f.call(p),0):p.next)&&!(f=f.call(p,j[1])).done)return f;switch(p=0,f&&(j=[2&j[0],f.value]),j[0]){case 0:case 1:f=j;break;case 4:return m.label++,{value:j[1],done:!1};case 5:m.label++,p=j[1],j=[0];continue;case 7:j=m.ops.pop(),m.trys.pop();continue;default:if(f=m.trys,!((f=f.length>0&&f[f.length-1])||j[0]!==6&&j[0]!==2)){m=0;continue}if(j[0]===3&&(!f||j[1]>f[0]&&j[1]<f[3])){m.label=j[1];break}if(j[0]===6&&m.label<f[1]){m.label=f[1],f=j;break}if(f&&m.label<f[2]){m.label=f[2],m.ops.push(j);break}f[2]&&m.ops.pop(),m.trys.pop();continue}j=u.call(l,m)}catch(O){j=[6,O],p=0}finally{d=f=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}([g,w])}}};Object.defineProperty(e,"__esModule",{value:!0});var o="browser-tabs-lock-key";function i(l){return new Promise(function(u){return setTimeout(u,l)})}function a(l){for(var u="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",d="",p=0;p<l;p++)d+=u[Math.floor(Math.random()*u.length)];return d}var c=function(){function l(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+a(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),l.waiters===void 0&&(l.waiters=[])}return l.prototype.acquireLock=function(u,d){return d===void 0&&(d=5e3),n(this,void 0,void 0,function(){var p,f,h,m,v,g;return r(this,function(w){switch(w.label){case 0:p=Date.now()+a(4),f=Date.now()+d,h=o+"-"+u,m=window.localStorage,w.label=1;case 1:return Date.now()<f?[4,i(30)]:[3,8];case 2:return w.sent(),m.getItem(h)!==null?[3,5]:(v=this.id+"-"+u+"-"+p,[4,i(Math.floor(25*Math.random()))]);case 3:return w.sent(),m.setItem(h,JSON.stringify({id:this.id,iat:p,timeoutKey:v,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,i(30)];case 4:return w.sent(),(g=m.getItem(h))!==null&&(g=JSON.parse(g)).id===this.id&&g.iat===p?(this.acquiredIatSet.add(p),this.refreshLockWhileAcquired(h,p),[2,!0]):[3,7];case 5:return l.lockCorrector(),[4,this.waitForSomethingToChange(f)];case 6:w.sent(),w.label=7;case 7:return p=Date.now()+a(4),[3,1];case 8:return[2,!1]}})})},l.prototype.refreshLockWhileAcquired=function(u,d){return n(this,void 0,void 0,function(){var p=this;return r(this,function(f){return setTimeout(function(){return n(p,void 0,void 0,function(){var h,m;return r(this,function(v){switch(v.label){case 0:return[4,Qe.default().lock(d)];case 1:return v.sent(),this.acquiredIatSet.has(d)?(h=window.localStorage,(m=h.getItem(u))===null?(Qe.default().unlock(d),[2]):((m=JSON.parse(m)).timeRefreshed=Date.now(),h.setItem(u,JSON.stringify(m)),Qe.default().unlock(d),this.refreshLockWhileAcquired(u,d),[2])):(Qe.default().unlock(d),[2])}})})},1e3),[2]})})},l.prototype.waitForSomethingToChange=function(u){return n(this,void 0,void 0,function(){return r(this,function(d){switch(d.label){case 0:return[4,new Promise(function(p){var f=!1,h=Date.now(),m=!1;function v(){if(m||(window.removeEventListener("storage",v),l.removeFromWaiting(v),clearTimeout(g),m=!0),!f){f=!0;var w=50-(Date.now()-h);w>0?setTimeout(p,w):p()}}window.addEventListener("storage",v),l.addToWaiting(v);var g=setTimeout(v,Math.max(0,u-Date.now()))})];case 1:return d.sent(),[2]}})})},l.addToWaiting=function(u){this.removeFromWaiting(u),l.waiters!==void 0&&l.waiters.push(u)},l.removeFromWaiting=function(u){l.waiters!==void 0&&(l.waiters=l.waiters.filter(function(d){return d!==u}))},l.notifyWaiters=function(){l.waiters!==void 0&&l.waiters.slice().forEach(function(u){return u()})},l.prototype.releaseLock=function(u){return n(this,void 0,void 0,function(){return r(this,function(d){switch(d.label){case 0:return[4,this.releaseLock__private__(u)];case 1:return[2,d.sent()]}})})},l.prototype.releaseLock__private__=function(u){return n(this,void 0,void 0,function(){var d,p,f;return r(this,function(h){switch(h.label){case 0:return d=window.localStorage,p=o+"-"+u,(f=d.getItem(p))===null?[2]:(f=JSON.parse(f)).id!==this.id?[3,2]:[4,Qe.default().lock(f.iat)];case 1:h.sent(),this.acquiredIatSet.delete(f.iat),d.removeItem(p),Qe.default().unlock(f.iat),l.notifyWaiters(),h.label=2;case 2:return[2]}})})},l.lockCorrector=function(){for(var u=Date.now()-5e3,d=window.localStorage,p=Object.keys(d),f=!1,h=0;h<p.length;h++){var m=p[h];if(m.includes(o)){var v=d.getItem(m);v!==null&&((v=JSON.parse(v)).timeRefreshed===void 0&&v.timeAcquired<u||v.timeRefreshed!==void 0&&v.timeRefreshed<u)&&(d.removeItem(m),f=!0)}}f&&l.notifyWaiters()},l.waiters=void 0,l}();e.default=c}));const Ul={timeoutInSeconds:60},Ei={name:"auth0-spa-js",version:"2.0.4"},Si=()=>Date.now();class Oe extends Error{constructor(e,n){super(n),this.error=e,this.error_description=n,Object.setPrototypeOf(this,Oe.prototype)}static fromPayload({error:e,error_description:n}){return new Oe(e,n)}}class Er extends Oe{constructor(e,n,r,o=null){super(e,n),this.state=r,this.appState=o,Object.setPrototypeOf(this,Er.prototype)}}class Dt extends Oe{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,Dt.prototype)}}class Sr extends Dt{constructor(e){super(),this.popup=e,Object.setPrototypeOf(this,Sr.prototype)}}class kr extends Oe{constructor(e){super("cancelled","Popup closed"),this.popup=e,Object.setPrototypeOf(this,kr.prototype)}}class Tr extends Oe{constructor(e,n,r){super(e,n),this.mfa_token=r,Object.setPrototypeOf(this,Tr.prototype)}}class bn extends Oe{constructor(e,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${po(e,["default"])}', scope: '${po(n)}')`),this.audience=e,this.scope=n,Object.setPrototypeOf(this,bn.prototype)}}function po(t,e=[]){return t&&!e.includes(t)?t:""}const Jt=()=>window.crypto,Pn=()=>{const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let e="";return Array.from(Jt().getRandomValues(new Uint8Array(43))).forEach(n=>e+=t[n%t.length]),e},ho=t=>btoa(t),ir=t=>{var{clientId:e}=t,n=Ae(t,["clientId"]);return new URLSearchParams((r=>Object.keys(r).filter(o=>r[o]!==void 0).reduce((o,i)=>Object.assign(Object.assign({},o),{[i]:r[i]}),{}))(Object.assign({client_id:e},n))).toString()},mo=t=>(e=>decodeURIComponent(atob(e).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(t.replace(/_/g,"/").replace(/-/g,"+")),Wl=async(t,e)=>{const n=await fetch(t,e);return{ok:n.ok,json:await n.json()}},Hl=async(t,e,n)=>{const r=new AbortController;let o;return e.signal=r.signal,Promise.race([Wl(t,e),new Promise((i,a)=>{o=setTimeout(()=>{r.abort(),a(new Error("Timeout when executing 'fetch'"))},n)})]).finally(()=>{clearTimeout(o)})},Vl=async(t,e,n,r,o,i,a)=>{return c={auth:{audience:e,scope:n},timeout:o,fetchUrl:t,fetchOptions:r,useFormData:a},l=i,new Promise(function(u,d){const p=new MessageChannel;p.port1.onmessage=function(f){f.data.error?d(new Error(f.data.error)):u(f.data),p.port1.close()},l.postMessage(c,[p.port2])});var c,l},Bl=async(t,e,n,r,o,i,a=1e4)=>o?Vl(t,e,n,r,a,o,i):Hl(t,r,a);async function zl(t,e){var{baseUrl:n,timeout:r,audience:o,scope:i,auth0Client:a,useFormData:c}=t,l=Ae(t,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const u=c?ir(l):JSON.stringify(l);return await async function(d,p,f,h,m,v,g){let w,j=null;for(let S=0;S<3;S++)try{w=await Bl(d,f,h,m,v,g,p),j=null;break}catch(P){j=P}if(j)throw j;const O=w.json,{error:C,error_description:b}=O,k=Ae(O,["error","error_description"]),{ok:_}=w;if(!_){const S=b||`HTTP error. Unable to fetch ${d}`;throw C==="mfa_required"?new Tr(C,S,k.mfa_token):C==="missing_refresh_token"?new bn(f,h):new Oe(C||"request_error",S)}return k}(`${n}/oauth/token`,r,o||"default",i,{method:"POST",body:u,headers:{"Content-Type":c?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(a||Ei))}},e,c)}const Kt=(...t)=>{return(e=t.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(e))).join(" ");var e};class Re{constructor(e,n="@@auth0spajs@@",r){this.prefix=n,this.suffix=r,this.clientId=e.clientId,this.scope=e.scope,this.audience=e.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(e){const[n,r,o,i]=e.split("::");return new Re({clientId:r,scope:i,audience:o},n)}static fromCacheEntry(e){const{scope:n,audience:r,client_id:o}=e;return new Re({scope:n,audience:r,clientId:o})}}class Zl{set(e,n){localStorage.setItem(e,JSON.stringify(n))}get(e){const n=window.localStorage.getItem(e);if(n)try{return JSON.parse(n)}catch{return}}remove(e){localStorage.removeItem(e)}allKeys(){return Object.keys(window.localStorage).filter(e=>e.startsWith("@@auth0spajs@@"))}}class ki{constructor(){this.enclosedCache=function(){let e={};return{set(n,r){e[n]=r},get(n){const r=e[n];if(r)return r},remove(n){delete e[n]},allKeys:()=>Object.keys(e)}}()}}class $l{constructor(e,n,r){this.cache=e,this.keyManifest=n,this.nowProvider=r||Si}async setIdToken(e,n,r){var o;const i=this.getIdTokenCacheKey(e);await this.cache.set(i,{id_token:n,decodedToken:r}),await((o=this.keyManifest)===null||o===void 0?void 0:o.add(i))}async getIdToken(e){const n=await this.cache.get(this.getIdTokenCacheKey(e.clientId));if(!n&&e.scope&&e.audience){const r=await this.get(e);return!r||!r.id_token||!r.decodedToken?void 0:{id_token:r.id_token,decodedToken:r.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(e,n=0){var r;let o=await this.cache.get(e.toKey());if(!o){const c=await this.getCacheKeys();if(!c)return;const l=this.matchExistingCacheKey(e,c);l&&(o=await this.cache.get(l))}if(!o)return;const i=await this.nowProvider(),a=Math.floor(i/1e3);return o.expiresAt-n<a?o.body.refresh_token?(o.body={refresh_token:o.body.refresh_token},await this.cache.set(e.toKey(),o),o.body):(await this.cache.remove(e.toKey()),void await((r=this.keyManifest)===null||r===void 0?void 0:r.remove(e.toKey()))):o.body}async set(e){var n;const r=new Re({clientId:e.client_id,scope:e.scope,audience:e.audience}),o=await this.wrapCacheEntry(e);await this.cache.set(r.toKey(),o),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(r.toKey()))}async clear(e){var n;const r=await this.getCacheKeys();r&&(await r.filter(o=>!e||o.includes(e)).reduce(async(o,i)=>{await o,await this.cache.remove(i)},Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(e){const n=await this.nowProvider();return{body:e,expiresAt:Math.floor(n/1e3)+e.expires_in}}async getCacheKeys(){var e;return this.keyManifest?(e=await this.keyManifest.get())===null||e===void 0?void 0:e.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(e){return new Re({clientId:e},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(e,n){return n.filter(r=>{var o;const i=Re.fromKey(r),a=new Set(i.scope&&i.scope.split(" ")),c=((o=e.scope)===null||o===void 0?void 0:o.split(" "))||[],l=i.scope&&c.reduce((u,d)=>u&&a.has(d),!0);return i.prefix==="@@auth0spajs@@"&&i.clientId===e.clientId&&i.audience===e.audience&&l})[0]}}class Gl{constructor(e,n){this.storage=e,this.clientId=n,this.storageKey=`a0.spajs.txs.${this.clientId}`,this.transaction=this.storage.get(this.storageKey)}create(e){this.transaction=e,this.storage.save(this.storageKey,e,{daysUntilExpire:1})}get(){return this.transaction}remove(){delete this.transaction,this.storage.remove(this.storageKey)}}const St=t=>typeof t=="number",ql=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"],Kl=t=>{if(!t.id_token)throw new Error("ID token is required but missing");const e=(i=>{const a=i.split("."),[c,l,u]=a;if(a.length!==3||!c||!l||!u)throw new Error("ID token could not be decoded");const d=JSON.parse(mo(l)),p={__raw:i},f={};return Object.keys(d).forEach(h=>{p[h]=d[h],ql.includes(h)||(f[h]=d[h])}),{encoded:{header:c,payload:l,signature:u},header:JSON.parse(mo(c)),claims:p,user:f}})(t.id_token);if(!e.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(e.claims.iss!==t.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${t.iss}", found "${e.claims.iss}"`);if(!e.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(e.header.alg!=="RS256")throw new Error(`Signature algorithm of "${e.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!e.claims.aud||typeof e.claims.aud!="string"&&!Array.isArray(e.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(e.claims.aud)){if(!e.claims.aud.includes(t.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${t.aud}" but was not one of "${e.claims.aud.join(", ")}"`);if(e.claims.aud.length>1){if(!e.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(e.claims.azp!==t.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${t.aud}", found "${e.claims.azp}"`)}}else if(e.claims.aud!==t.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${t.aud}" but found "${e.claims.aud}"`);if(t.nonce){if(!e.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(e.claims.nonce!==t.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${t.nonce}", found "${e.claims.nonce}"`)}if(t.max_age&&!St(e.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(e.claims.exp==null||!St(e.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!St(e.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const n=t.leeway||60,r=new Date(t.now||Date.now()),o=new Date(0);if(o.setUTCSeconds(e.claims.exp+n),r>o)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${r}) is after expiration time (${o})`);if(e.claims.nbf!=null&&St(e.claims.nbf)){const i=new Date(0);if(i.setUTCSeconds(e.claims.nbf-n),r<i)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${r}) is before ${i}`)}if(e.claims.auth_time!=null&&St(e.claims.auth_time)){const i=new Date(0);if(i.setUTCSeconds(parseInt(e.claims.auth_time)+t.max_age+n),r>i)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${r}) is after last auth at ${i}`)}if(t.organizationId){if(!e.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(t.organizationId!==e.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${t.organizationId}", found "${e.claims.org_id}"`)}return e};var et=jr(function(t,e){var n=ht&&ht.__assign||function(){return n=Object.assign||function(l){for(var u,d=1,p=arguments.length;d<p;d++)for(var f in u=arguments[d])Object.prototype.hasOwnProperty.call(u,f)&&(l[f]=u[f]);return l},n.apply(this,arguments)};function r(l,u){if(!u)return"";var d="; "+l;return u===!0?d:d+"="+u}function o(l,u,d){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(u).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(p){if(typeof p.expires=="number"){var f=new Date;f.setMilliseconds(f.getMilliseconds()+864e5*p.expires),p.expires=f}return r("Expires",p.expires?p.expires.toUTCString():"")+r("Domain",p.domain)+r("Path",p.path)+r("Secure",p.secure)+r("SameSite",p.sameSite)}(d)}function i(l){for(var u={},d=l?l.split("; "):[],p=/(%[\dA-F]{2})+/gi,f=0;f<d.length;f++){var h=d[f].split("="),m=h.slice(1).join("=");m.charAt(0)==='"'&&(m=m.slice(1,-1));try{u[h[0].replace(p,decodeURIComponent)]=m.replace(p,decodeURIComponent)}catch{}}return u}function a(){return i(document.cookie)}function c(l,u,d){document.cookie=o(l,u,n({path:"/"},d))}e.__esModule=!0,e.encode=o,e.parse=i,e.getAll=a,e.get=function(l){return a()[l]},e.set=c,e.remove=function(l,u){c(l,"",n(n({},u),{expires:-1}))}});Or(et),et.encode,et.parse,et.getAll;var Yl=et.get,Ti=et.set,Ii=et.remove;const ft={get(t){const e=Yl(t);if(e!==void 0)return JSON.parse(e)},save(t,e,n){let r={};window.location.protocol==="https:"&&(r={secure:!0,sameSite:"none"}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),Ti(t,JSON.stringify(e),r)},remove(t,e){let n={};e?.cookieDomain&&(n.domain=e.cookieDomain),Ii(t,n)}},Xl={get(t){return ft.get(t)||ft.get(`_legacy_${t}`)},save(t,e,n){let r={};window.location.protocol==="https:"&&(r={secure:!0}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),Ti(`_legacy_${t}`,JSON.stringify(e),r),ft.save(t,e,n)},remove(t,e){let n={};e?.cookieDomain&&(n.domain=e.cookieDomain),Ii(t,n),ft.remove(t,e),ft.remove(`_legacy_${t}`,e)}},Jl={get(t){if(typeof sessionStorage>"u")return;const e=sessionStorage.getItem(t);return e!=null?JSON.parse(e):void 0},save(t,e){sessionStorage.setItem(t,JSON.stringify(e))},remove(t){sessionStorage.removeItem(t)}};function Ql(t,e,n){var r=e===void 0?null:e,o=function(l,u){var d=atob(l);if(u){for(var p=new Uint8Array(d.length),f=0,h=d.length;f<h;++f)p[f]=d.charCodeAt(f);return String.fromCharCode.apply(null,new Uint16Array(p.buffer))}return d}(t,n!==void 0&&n),i=o.indexOf(`
42
+ `,10)+1,a=o.substring(i)+(r?"//# sourceMappingURL="+r:""),c=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(c)}var vo,go,yo,Nn,eu=(vo="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9Y29uc3Qgcz1lPT57dmFye2NsaWVudElkOnR9PWUscj1mdW5jdGlvbihlLHQpe3ZhciByPXt9O2Zvcih2YXIgcyBpbiBlKU9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChlLHMpJiZ0LmluZGV4T2Yocyk8MCYmKHJbc109ZVtzXSk7aWYobnVsbCE9ZSYmImZ1bmN0aW9uIj09dHlwZW9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpe3ZhciBvPTA7Zm9yKHM9T2JqZWN0LmdldE93blByb3BlcnR5U3ltYm9scyhlKTtvPHMubGVuZ3RoO28rKyl0LmluZGV4T2Yoc1tvXSk8MCYmT2JqZWN0LnByb3RvdHlwZS5wcm9wZXJ0eUlzRW51bWVyYWJsZS5jYWxsKGUsc1tvXSkmJihyW3Nbb11dPWVbc1tvXV0pfXJldHVybiByfShlLFsiY2xpZW50SWQiXSk7cmV0dXJuIG5ldyBVUkxTZWFyY2hQYXJhbXMoKGU9Pk9iamVjdC5rZXlzKGUpLmZpbHRlcigodD0+dm9pZCAwIT09ZVt0XSkpLnJlZHVjZSgoKHQscik9Pk9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSx0KSx7W3JdOmVbcl19KSkse30pKShPYmplY3QuYXNzaWduKHtjbGllbnRfaWQ6dH0scikpKS50b1N0cmluZygpfTtsZXQgbz17fTtjb25zdCBuPShlLHQpPT5gJHtlfXwke3R9YDthZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIiwoYXN5bmMoe2RhdGE6e3RpbWVvdXQ6ZSxhdXRoOnIsZmV0Y2hVcmw6aSxmZXRjaE9wdGlvbnM6Yyx1c2VGb3JtRGF0YTphfSxwb3J0czpbZl19KT0+e2xldCBwO2NvbnN0e2F1ZGllbmNlOmwsc2NvcGU6dX09cnx8e307dHJ5e2NvbnN0IHI9YT8oZT0+e2NvbnN0IHQ9bmV3IFVSTFNlYXJjaFBhcmFtcyhlKSxyPXt9O3JldHVybiB0LmZvckVhY2goKChlLHQpPT57clt0XT1lfSkpLHJ9KShjLmJvZHkpOkpTT04ucGFyc2UoYy5ib2R5KTtpZighci5yZWZyZXNoX3Rva2VuJiYicmVmcmVzaF90b2tlbiI9PT1yLmdyYW50X3R5cGUpe2NvbnN0IGU9KChlLHQpPT5vW24oZSx0KV0pKGwsdSk7aWYoIWUpdGhyb3cgbmV3IHQobCx1KTtjLmJvZHk9YT9zKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpOkpTT04uc3RyaW5naWZ5KE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpfWxldCBkLGc7ImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixjLnNpZ25hbD1kLnNpZ25hbCk7dHJ5e2c9YXdhaXQgUHJvbWlzZS5yYWNlKFsoaD1lLG5ldyBQcm9taXNlKChlPT5zZXRUaW1lb3V0KGUsaCkpKSksZmV0Y2goaSxPYmplY3QuYXNzaWduKHt9LGMpKV0pfWNhdGNoKGUpe3JldHVybiB2b2lkIGYucG9zdE1lc3NhZ2Uoe2Vycm9yOmUubWVzc2FnZX0pfWlmKCFnKXJldHVybiBkJiZkLmFib3J0KCksdm9pZCBmLnBvc3RNZXNzYWdlKHtlcnJvcjoiVGltZW91dCB3aGVuIGV4ZWN1dGluZyAnZmV0Y2gnIn0pO3A9YXdhaXQgZy5qc29uKCkscC5yZWZyZXNoX3Rva2VuPygoKGUsdCxyKT0+e29bbih0LHIpXT1lfSkocC5yZWZyZXNoX3Rva2VuLGwsdSksZGVsZXRlIHAucmVmcmVzaF90b2tlbik6KChlLHQpPT57ZGVsZXRlIG9bbihlLHQpXX0pKGwsdSksZi5wb3N0TWVzc2FnZSh7b2s6Zy5vayxqc29uOnB9KX1jYXRjaChlKXtmLnBvc3RNZXNzYWdlKHtvazohMSxqc29uOntlcnJvcjplLmVycm9yLGVycm9yX2Rlc2NyaXB0aW9uOmUubWVzc2FnZX19KX12YXIgaH0pKX0oKTsKCg==",go=null,yo=!1,function(t){return Nn=Nn||Ql(vo,go,yo),new Worker(Nn,t)});const An={};class tu{constructor(e,n){this.cache=e,this.clientId=n,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(e){var n;const r=new Set(((n=await this.cache.get(this.manifestKey))===null||n===void 0?void 0:n.keys)||[]);r.add(e),await this.cache.set(this.manifestKey,{keys:[...r]})}async remove(e){const n=await this.cache.get(this.manifestKey);if(n){const r=new Set(n.keys);return r.delete(e),r.size>0?await this.cache.set(this.manifestKey,{keys:[...r]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(e){return`@@auth0spajs@@::${e}`}}const nu={memory:()=>new ki().enclosedCache,localstorage:()=>new Zl},bo=t=>nu[t],wo=t=>{const{openUrl:e,onRedirect:n}=t,r=Ae(t,["openUrl","onRedirect"]);return Object.assign(Object.assign({},r),{openUrl:e===!1||e?e:n})},Rn=new Fl;class ru{constructor(e){let n,r;if(this.userCache=new ki().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await Rn.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)},this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),e),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),e.authorizationParams)}),typeof window<"u"&&(()=>{if(!Jt())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(Jt().subtle===void 0)throw new Error(`
43
43
  auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/master/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.
44
- `)})(),e.cache&&e.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),e.cache)r=e.cache;else{if(n=e.cacheLocation||"memory",!mo(n))throw new Error(`Invalid cache location "${n}"`);r=mo(n)()}this.httpTimeoutMs=e.httpTimeoutInSeconds?1e3*e.httpTimeoutInSeconds:1e4,this.cookieStorage=e.legacySameSiteCookie===!1?dt:$l,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(a=>`auth0.${a}.is.authenticated`)(this.options.clientId),this.sessionCheckExpiryDays=e.sessionCheckExpiryDays||1;const o=e.useCookiesForTransactions?this.cookieStorage:Gl;var i;this.scope=Gt("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new Vl(o,this.options.clientId),this.nowProvider=this.options.nowProvider||ji,this.cacheManager=new Hl(r,r.allKeys?void 0:new Yl(r,this.options.clientId),this.nowProvider),this.domainUrl=(i=this.options.domain,/^https?:\/\//.test(i)?i:`https://${i}`),this.tokenIssuer=((a,c)=>a?a.startsWith("https://")?a:`https://${a}/`:`${c}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.worker=new Kl)}_url(e){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||Oi)));return`${this.domainUrl}${e}&auth0Client=${n}`}_authorizeUrl(e){return this._url(`/authorize?${or(e)}`)}async _verifyIdToken(e,n,r){const o=await this.nowProvider();return Bl({iss:this.tokenIssuer,aud:this.options.clientId,id_token:e,nonce:n,organizationId:r,leeway:this.options.leeway,max_age:(i=this.options.authorizationParams.max_age,typeof i!="string"?i:parseInt(i,10)||void 0),now:o});var i}_processOrgIdHint(e){e?this.cookieStorage.save(this.orgHintCookieName,e,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(e,n,r){const o=lo(_n()),i=lo(_n()),a=_n(),c=(d=>{const p=new Uint8Array(d);return(f=>{const h={"+":"-","/":"_","=":""};return f.replace(/[+/=]/g,m=>h[m])})(window.btoa(String.fromCharCode(...Array.from(p))))})(await(async d=>await Yt().subtle.digest({name:"SHA-256"},new TextEncoder().encode(d)))(a)),l=((d,p,f,h,m,v,g,w)=>Object.assign(Object.assign(Object.assign({client_id:d.clientId},d.authorizationParams),f),{scope:Gt(p,f.scope),response_type:"code",response_mode:w||"query",state:h,nonce:m,redirect_uri:g||d.authorizationParams.redirect_uri,code_challenge:v,code_challenge_method:"S256"}))(this.options,this.scope,e,o,i,c,e.redirect_uri||this.options.authorizationParams.redirect_uri||r,n?.response_mode),u=this._authorizeUrl(l);return{nonce:i,code_verifier:a,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:o,url:u}}async loginWithPopup(e,n){var r;if(e=e||{},!(n=n||{}).popup&&(n.popup=(c=>{const l=window.screenX+(window.innerWidth-400)/2,u=window.screenY+(window.innerHeight-600)/2;return window.open(c,"auth0:authorize:popup",`left=${l},top=${u},width=400,height=600,resizable,scrollbars=yes,status=1`)})(""),!n.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const o=await this._prepareAuthorizeUrl(e.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=o.url;const i=await(c=>new Promise((l,u)=>{let d;const p=setInterval(()=>{c.popup&&c.popup.closed&&(clearInterval(p),clearTimeout(f),window.removeEventListener("message",d,!1),u(new jr(c.popup)))},1e3),f=setTimeout(()=>{clearInterval(p),u(new Or(c.popup)),window.removeEventListener("message",d,!1)},1e3*(c.timeoutInSeconds||60));d=function(h){if(h.data&&h.data.type==="authorization_response"){if(clearTimeout(f),clearInterval(p),window.removeEventListener("message",d,!1),c.popup.close(),h.data.response.error)return u(Oe.fromPayload(h.data.response));l(h.data.response)}},window.addEventListener("message",d)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(o.state!==i.state)throw new Error("Invalid state");const a=((r=e.authorizationParams)===null||r===void 0?void 0:r.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:o.audience,scope:o.scope,code_verifier:o.code_verifier,grant_type:"authorization_code",code:i.code,redirect_uri:o.redirect_uri},{nonceIn:o.nonce,organizationId:a})}async getUser(){var e;const n=await this._getIdTokenFromCache();return(e=n?.decodedToken)===null||e===void 0?void 0:e.user}async getIdTokenClaims(){var e;const n=await this._getIdTokenFromCache();return(e=n?.decodedToken)===null||e===void 0?void 0:e.claims}async loginWithRedirect(e={}){var n;const r=vo(e),{openUrl:o,fragment:i,appState:a}=r,c=Ae(r,["openUrl","fragment","appState"]),l=((n=c.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,u=await this._prepareAuthorizeUrl(c.authorizationParams||{}),{url:d}=u,p=Ae(u,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},p),{appState:a}),l&&{organizationId:l}));const f=i?`${d}#${i}`:d;o?await o(f):window.location.assign(f)}async handleRedirectCallback(e=window.location.href){const n=e.split("?").slice(1);if(n.length===0)throw new Error("There are no query params available for parsing.");const{state:r,code:o,error:i,error_description:a}=(p=>{p.indexOf("#")>-1&&(p=p.substring(0,p.indexOf("#")));const f=new URLSearchParams(p);return{state:f.get("state"),code:f.get("code")||void 0,error:f.get("error")||void 0,error_description:f.get("error_description")||void 0}})(n.join("")),c=this.transactionManager.get();if(!c)throw new Error("Invalid state");if(this.transactionManager.remove(),i)throw new Cr(i,a||i,r,c.appState);if(!c.code_verifier||c.state&&c.state!==r)throw new Error("Invalid state");const l=c.organizationId,u=c.nonce,d=c.redirect_uri;return await this._requestToken(Object.assign({audience:c.audience,scope:c.scope,code_verifier:c.code_verifier,grant_type:"authorization_code",code:o},d?{redirect_uri:d}:{}),{nonceIn:u,organizationId:l}),{appState:c.appState}}async checkSession(e){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(e)}catch{}}async getTokenSilently(e={}){var n;const r=Object.assign(Object.assign({cacheMode:"on"},e),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),e.authorizationParams),{scope:Gt(this.scope,(n=e.authorizationParams)===null||n===void 0?void 0:n.scope)})}),o=await((i,a)=>{let c=Nn[a];return c||(c=i().finally(()=>{delete Nn[a],c=null}),Nn[a]=c),c})(()=>this._getTokenSilently(r),`${this.options.clientId}::${r.authorizationParams.audience}::${r.authorizationParams.scope}`);return e.detailedResponse?o:o?.access_token}async _getTokenSilently(e){const{cacheMode:n}=e,r=Ae(e,["cacheMode"]);if(n!=="off"){const o=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(o)return o}if(n!=="cache-only"){if(!await(async(o,i=3)=>{for(let a=0;a<i;a++)if(await o())return!0;return!1})(()=>An.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new Dt;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const u=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(u)return u}const o=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(r):await this._getTokenFromIFrame(r),{id_token:i,access_token:a,oauthTokenScope:c,expires_in:l}=o;return Object.assign(Object.assign({id_token:i,access_token:a},c?{scope:c}:null),{expires_in:l})}finally{await An.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(e={},n={}){var r;const o=Object.assign(Object.assign({},e),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),e.authorizationParams),{scope:Gt(this.scope,(r=e.authorizationParams)===null||r===void 0?void 0:r.scope)})});return n=Object.assign(Object.assign({},Rl),n),await this.loginWithPopup(o,n),(await this.cacheManager.get(new Re({scope:o.authorizationParams.scope,audience:o.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(e){e.clientId!==null?e.clientId=e.clientId||this.options.clientId:delete e.clientId;const n=e.logoutParams||{},{federated:r}=n,o=Ae(n,["federated"]),i=r?"&federated":"";return this._url(`/v2/logout?${or(Object.assign({clientId:e.clientId},o))}`)+i}async logout(e={}){const n=vo(e),{openUrl:r}=n,o=Ae(n,["openUrl"]);e.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(e.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const i=this._buildLogoutUrl(o);r?await r(i):r!==!1&&window.location.assign(i)}async _getTokenFromIFrame(e){const n=Object.assign(Object.assign({},e.authorizationParams),{prompt:"none"}),r=this.cookieStorage.get(this.orgHintCookieName);r&&!n.organization&&(n.organization=r);const{url:o,state:i,nonce:a,code_verifier:c,redirect_uri:l,scope:u,audience:d}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new Oe("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const p=e.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,f=await((m,v,g=60)=>new Promise((w,j)=>{const O=window.document.createElement("iframe");O.setAttribute("width","0"),O.setAttribute("height","0"),O.style.display="none";const C=()=>{window.document.body.contains(O)&&(window.document.body.removeChild(O),window.removeEventListener("message",b,!1))};let b;const k=setTimeout(()=>{j(new Dt),C()},1e3*g);b=function(_){if(_.origin!=v||!_.data||_.data.type!=="authorization_response")return;const S=_.source;S&&S.close(),_.data.response.error?j(Oe.fromPayload(_.data.response)):w(_.data.response),clearTimeout(k),window.removeEventListener("message",b,!1),setTimeout(C,2e3)},window.addEventListener("message",b,!1),window.document.body.appendChild(O),O.setAttribute("src",m)}))(o,this.domainUrl,p);if(i!==f.state)throw new Error("Invalid state");const h=await this._requestToken(Object.assign(Object.assign({},e.authorizationParams),{code_verifier:c,code:f.code,grant_type:"authorization_code",redirect_uri:l,timeout:e.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:a});return Object.assign(Object.assign({},h),{scope:u,oauthTokenScope:h.scope,audience:d})}catch(p){throw p.error==="login_required"&&this.logout({openUrl:!1}),p}}async _getTokenUsingRefreshToken(e){const n=await this.cacheManager.get(new Re({scope:e.authorizationParams.scope,audience:e.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(n&&n.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(e);throw new yn(e.authorizationParams.audience||"default",e.authorizationParams.scope)}const r=e.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,o=typeof e.timeoutInSeconds=="number"?1e3*e.timeoutInSeconds:null;try{const i=await this._requestToken(Object.assign(Object.assign(Object.assign({},e.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:r}),o&&{timeout:o}));return Object.assign(Object.assign({},i),{scope:e.authorizationParams.scope,oauthTokenScope:i.scope,audience:e.authorizationParams.audience||"default"})}catch(i){if((i.message.indexOf("Missing Refresh Token")>-1||i.message&&i.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(e);throw i}}async _saveEntryInCache(e){const{id_token:n,decodedToken:r}=e,o=Ae(e,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:r}),await this.cacheManager.setIdToken(this.options.clientId,e.id_token,e.decodedToken),await this.cacheManager.set(o)}async _getIdTokenFromCache(){const e=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new Re({clientId:this.options.clientId,audience:e,scope:this.scope})),r=this.userCache.get("@@user@@");return n&&n.id_token===r?.id_token?r:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:e,audience:n,clientId:r}){const o=await this.cacheManager.get(new Re({scope:e,audience:n,clientId:r}),60);if(o&&o.access_token){const{access_token:i,oauthTokenScope:a,expires_in:c}=o,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:i},a?{scope:a}:null),{expires_in:c})}}async _requestToken(e,n){const{nonceIn:r,organizationId:o}=n||{},i=await Ul(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},e),this.worker),a=await this._verifyIdToken(i.id_token,r,o);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},i),{decodedToken:a,scope:e.scope,audience:e.audience||"default"}),i.scope?{oauthTokenScope:i.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgIdHint(a.claims.org_id),Object.assign(Object.assign({},i),{decodedToken:a})}}var Ti={isAuthenticated:!1,isLoading:!0},Fe=function(){throw new Error("You forgot to wrap your component in <Auth0Provider>.")},Ql=ue(ue({},Ti),{buildAuthorizeUrl:Fe,buildLogoutUrl:Fe,getAccessTokenSilently:Fe,getAccessTokenWithPopup:Fe,getIdTokenClaims:Fe,loginWithRedirect:Fe,loginWithPopup:Fe,logout:Fe,handleRedirectCallback:Fe}),Pi=y.createContext(Ql),eu=function(t){Il(e,t);function e(n,r){var o=t.call(this,r||n)||this;return o.error=n,o.error_description=r,Object.setPrototypeOf(o,e.prototype),o}return e}(Error),tu=/[?&]code=[^&]+/,nu=/[?&]state=[^&]+/,ru=/[?&]error=[^&]+/,ou=function(t){return t===void 0&&(t=window.location.search),(tu.test(t)||ru.test(t))&&nu.test(t)},_i=function(t){return function(e){return"error"in e?new eu(e.error,e.error_description):e instanceof Error?e:new Error(t)}},go=_i("Login failed"),Rn=_i("Get access token failed"),Ii=function(t){var e;t?.redirectUri&&(console.warn("Using `redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `redirectUri` will be no longer supported in a future version"),t.authorizationParams=t.authorizationParams||{},t.authorizationParams.redirect_uri=t.redirectUri,delete t.redirectUri),!((e=t?.authorizationParams)===null||e===void 0)&&e.redirectUri&&(console.warn("Using `authorizationParams.redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `authorizationParams.redirectUri` will be removed in a future version"),t.authorizationParams.redirect_uri=t.authorizationParams.redirectUri,delete t.authorizationParams.redirectUri)},iu=function(t,e){switch(e.type){case"LOGIN_POPUP_STARTED":return ue(ue({},t),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return ue(ue({},t),{isAuthenticated:!!e.user,user:e.user,isLoading:!1,error:void 0});case"HANDLE_REDIRECT_COMPLETE":case"GET_ACCESS_TOKEN_COMPLETE":return t.user===e.user?t:ue(ue({},t),{isAuthenticated:!!e.user,user:e.user});case"LOGOUT":return ue(ue({},t),{isAuthenticated:!1,user:void 0});case"ERROR":return ue(ue({},t),{isLoading:!1,error:e.error})}},su=function(t){return Ii(t),ue(ue({},t),{auth0Client:{name:"auth0-react",version:"2.0.1"}})},au=function(t){window.history.replaceState({},document.title,t?.returnTo||window.location.pathname)},cu=function(t){var e=t.children,n=t.skipRedirectCallback,r=t.onRedirectCallback,o=r===void 0?au:r,i=t.context,a=i===void 0?Pi:i,c=Nl(t,["children","skipRedirectCallback","onRedirectCallback","context"]),l=y.useState(function(){return new Jl(su(c))})[0],u=y.useReducer(iu,Ti),d=u[0],p=u[1],f=y.useRef(!1);y.useEffect(function(){f.current||(f.current=!0,function(){return ct(void 0,void 0,void 0,function(){var b,k,_;return lt(this,function(S){switch(S.label){case 0:return S.trys.push([0,7,,8]),b=void 0,ou()&&!n?[4,l.handleRedirectCallback()]:[3,3];case 1:return k=S.sent().appState,[4,l.getUser()];case 2:return b=S.sent(),o(k,b),[3,6];case 3:return[4,l.checkSession()];case 4:return S.sent(),[4,l.getUser()];case 5:b=S.sent(),S.label=6;case 6:return p({type:"INITIALISED",user:b}),[3,8];case 7:return _=S.sent(),p({type:"ERROR",error:go(_)}),[3,8];case 8:return[2]}})})}())},[l,o,n]);var h=y.useCallback(function(b){return Ii(b),l.loginWithRedirect(b)},[l]),m=y.useCallback(function(b,k){return ct(void 0,void 0,void 0,function(){var _,S;return lt(this,function(I){switch(I.label){case 0:p({type:"LOGIN_POPUP_STARTED"}),I.label=1;case 1:return I.trys.push([1,3,,4]),[4,l.loginWithPopup(b,k)];case 2:return I.sent(),[3,4];case 3:return _=I.sent(),p({type:"ERROR",error:go(_)}),[2];case 4:return[4,l.getUser()];case 5:return S=I.sent(),p({type:"LOGIN_POPUP_COMPLETE",user:S}),[2]}})})},[l]),v=y.useCallback(function(b){return b===void 0&&(b={}),ct(void 0,void 0,void 0,function(){return lt(this,function(k){switch(k.label){case 0:return[4,l.logout(b)];case 1:return k.sent(),(b.openUrl||b.openUrl===!1)&&p({type:"LOGOUT"}),[2]}})})},[l]),g=y.useCallback(function(b){return ct(void 0,void 0,void 0,function(){var k,_,S,I;return lt(this,function(R){switch(R.label){case 0:return R.trys.push([0,2,3,5]),[4,l.getTokenSilently(b)];case 1:return k=R.sent(),[3,5];case 2:throw _=R.sent(),Rn(_);case 3:return S=p,I={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return S.apply(void 0,[(I.user=R.sent(),I)]),[7];case 5:return[2,k]}})})},[l]),w=y.useCallback(function(b,k){return ct(void 0,void 0,void 0,function(){var _,S,I,R;return lt(this,function(H){switch(H.label){case 0:return H.trys.push([0,2,3,5]),[4,l.getTokenWithPopup(b,k)];case 1:return _=H.sent(),[3,5];case 2:throw S=H.sent(),Rn(S);case 3:return I=p,R={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return I.apply(void 0,[(R.user=H.sent(),R)]),[7];case 5:return[2,_]}})})},[l]),j=y.useCallback(function(){return l.getIdTokenClaims()},[l]),O=y.useCallback(function(b){return ct(void 0,void 0,void 0,function(){var k,_,S;return lt(this,function(I){switch(I.label){case 0:return I.trys.push([0,2,3,5]),[4,l.handleRedirectCallback(b)];case 1:return[2,I.sent()];case 2:throw k=I.sent(),Rn(k);case 3:return _=p,S={type:"HANDLE_REDIRECT_COMPLETE"},[4,l.getUser()];case 4:return _.apply(void 0,[(S.user=I.sent(),S)]),[7];case 5:return[2]}})})},[l]),C=y.useMemo(function(){return ue(ue({},d),{getAccessTokenSilently:g,getAccessTokenWithPopup:w,getIdTokenClaims:j,loginWithRedirect:h,loginWithPopup:m,logout:v,handleRedirectCallback:O})},[d,g,w,j,h,m,v,O]);return y.createElement(a.Provider,{value:C},e)},Ni=function(t){return t===void 0&&(t=Pi),y.useContext(t)};const sn={[Qe.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:El,openPermissionsPrompt:({handleDeferredPermission:t,handlePermissionsPromptClose:e})=>{window.getScreenDetails().catch(async()=>{const{state:n}=await navigator.permissions.query({name:Qe.WINDOW_MANAGEMENT});n==="prompt"&&t()}).finally(e)}},[Qe.NOTIFICATIONS]:{heading:"Allow Browser Notifications",description:`io.Connect Browser requires permission to send notifications to the desktop.
45
- 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:bl,openPermissionsPrompt:({handleDeferredPermission:t,handlePermissionsPromptClose:e})=>{Notification.requestPermission().then(async()=>{const{state:n}=await navigator.permissions.query({name:Qe.NOTIFICATIONS});n==="prompt"&&t()}).finally(e)}}},lu={edgeNotificationsPermissionTimeout:15e3};const uu=({isActiveItem:t=()=>!1,permissionStatuses:e})=>s.jsx("ul",{className:"permissions-list",children:Object.entries(sn).map(([n,r],o)=>{const i=t(n),a=e.find(({stableName:c})=>c===n);return s.jsxs("li",{className:G("permissions-list-item",i&&"active"),children:[s.jsx("div",{children:a?.state==="granted"?s.jsx(oe,{name:"check"}):s.jsxs(s.Fragment,{children:[s.jsx("span",{className:i?"icon-arrow":""}),s.jsxs("span",{children:[o+1,"."]})]})}),r.label]},n)})}),du=({onReopenPromptClick:t})=>{const e=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(vn,{description:e,Image:Ol,title:"Something went wrong!",children:s.jsx(pn,{className:"io-btn-primary permissions-prompt-button",onClick:t,children:"Reopen the Prompt"})})},Ai=({deniedPermissionName:t})=>{const{permission:e}=Ge(),r=Go().name?.toLowerCase()||"",o=Object.values(e.statuses).filter(a=>a.stableName===t||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(vn,{description:i,Image:jl,title:"Setup Was Unsuccessful",children:s.jsx("ul",{className:"permissions-guidelines-list",children:o.map((a,c)=>s.jsx("li",{children:sn[a.stableName].guidelines[r]||sn[a.stableName].guidelines.default},c))})})},fu=({edgeNotificationsPermissionTimeout:t,isNotificationsPermissionPromptOpen:e})=>{const{name:n}=Go(),{permission:r}=Ge(),[o,i]=y.useState(!1);return y.useEffect(()=>{if(!e||n!=="Edge")return;const a=setTimeout(()=>i(!0),t);return()=>clearTimeout(a)},[n,t,e]),y.useEffect(()=>{if(!o)return;r.statuses.some(({stableName:c,state:l})=>c===Qe.NOTIFICATIONS&&l==="granted")&&i(!1)},[o,r.statuses]),{hasEdgeNotificationsPermissionError:o}},zt=()=>s.jsx("span",{className:"loader"}),pu=({settings:t})=>{const{permission:e}=Ge(),[n,r]=y.useState(!1),[o,i]=y.useState(!1),a=e.statuses.find(({state:p})=>p==="prompt"),{hasEdgeNotificationsPermissionError:c}=fu({edgeNotificationsPermissionTimeout:t.edgeNotificationsPermissionTimeout,isNotificationsPermissionPromptOpen:o&&a?.stableName===Qe.NOTIFICATIONS});if(!a||e.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(Ai,{deniedPermissionName:"notifications"});const l=sn[a.stableName],u=()=>{i(!0),l.openPermissionsPrompt({handleDeferredPermission:()=>r(!0),handlePermissionsPromptClose:()=>i(!1)})},d=()=>{r(!1),u()};return n?s.jsx(du,{onReopenPromptClick:d}):s.jsxs(vn,{description:l.description,heading:l.heading,Image:l.Image,title:"First-Time User Setup",children:[s.jsx(uu,{isActiveItem:p=>p===a.stableName,permissionStatuses:e.statuses}),s.jsx("p",{className:"mb-12 permissions-prompt-instructions",children:'Click "Allow" when the prompt appears.'}),s.jsx(pn,{className:"io-btn-primary permissions-prompt-button",disabled:o,onClick:u,children:"Open Permission Prompt"}),o&&s.jsx(zt,{})]})},hu=({settings:t})=>{const{permission:e}=Ge();return e.isLoading?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"mb-32",children:"Checking browser permissions ..."}),s.jsx(zt,{})]}):e.isDenied?s.jsx(Ai,{}):s.jsx(pu,{settings:t})},bn=({components:{Logo:t=xt}={},settings:e={}})=>s.jsx(vi,{Logo:t,children:s.jsx(hu,{settings:{...lu,...e}})}),mu=({components:t,className:e})=>{const n=t?.Logo||xt;return s.jsx("div",{className:"logout-backdrop",children:s.jsxs("div",{className:G(e,"logout-container flex flex-column ai-center"),children:[s.jsx(n,{}),s.jsx("h1",{className:"text-center mb-8",children:"Logging out..."}),s.jsx(zt,{})]})})},Sr=({className:t="text-center mb-3",text:e="Making Your Work Flow"})=>s.jsxs(s.Fragment,{children:[s.jsx("h1",{className:t,children:e}),s.jsx("p",{children:"Integrate apps, simplify user experiences and accelerate digital transformation."})]}),vu=({components:t})=>{const e=t?.Logo||xt,n=t?.Heading||Sr;return s.jsxs(s.Fragment,{children:[s.jsx(e,{}),s.jsx(n,{}),s.jsx(zt,{})]})},Ri=()=>s.jsxs(s.Fragment,{children:[s.jsx("h1",{className:"text-center mb-8",children:"Verifying credentials..."}),s.jsx(zt,{})]}),Li=({Logo:t,children:e,className:n})=>s.jsxs("div",{className:G(n,"login-container flex flex-column ai-center"),children:[s.jsx(t,{}),e]}),gu=({className:t,onLogin:e,isLoading:n,components:r,validationError:o})=>{const i=r?.Logo||xt,a=r?.Heading||Sr;return s.jsx(Li,{className:t,Logo:i,children:n?s.jsx(Ri,{}):s.jsxs(s.Fragment,{children:[s.jsx(a,{}),s.jsx(Vt,{onClick:e,className:"io-btn-primary",children:"Log In"}),o&&s.jsxs("div",{className:"pb-2 login-error-feedback",children:[s.jsx(oe,{name:"close"}),s.jsx("p",{children:o.message})]})]})})},yo=(t,e)=>{const n=e.value,r=n.trim().length>3;return{value:n,isValid:r}},yu=({onLogin:t,setIsLoading:e,loginError:n,setLoginError:r,userInputName:o})=>{const[i,a]=y.useReducer(yo,{value:"",isValid:!1}),[c,l]=y.useReducer(yo,{value:"",isValid:!1}),[u,d]=y.useState(!1),[p,f]=y.useState(!1),{isValid:h}=i,{isValid:m}=c,v=h&&m,g=b=>a({value:b.target.value}),w=b=>l({value:b.target.value}),j=()=>{h||d(!0)},O=()=>{m||f(!0)},C=async b=>{if(b.preventDefault(),!!v){e(!0);try{await t(i.value,c.value)}catch(k){r(k)}e(!1)}};return s.jsxs(cl,{onSubmit:C,children:[s.jsxs(nr,{className:"io-control-input io-control-error",children:[s.jsx("input",{autoFocus:!0,autoComplete:"off",type:"text",placeholder:`Enter your ${o??"email"}`,value:i.value,onChange:g,onBlur:j,onFocus:()=>d(!1),className:G("io-input",u&&"input-error")}),u&&s.jsxs("div",{children:[s.jsx(oe,{name:"close"}),`The ${o??"email"} does not meet the length requirements`]})]}),s.jsxs(nr,{className:"io-control-input io-control-error",children:[s.jsx("input",{autoComplete:"off",type:"password",placeholder:"Enter your password",value:c.value,onChange:w,onBlur:O,onFocus:()=>f(!1),className:G("io-input",p&&"input-error")}),p&&s.jsxs("div",{children:[s.jsx(oe,{name:"close"}),"The password does not meet the length requirements"]})]}),s.jsx(pn,{type:"submit",className:"io-btn-primary",children:"Log In"}),n&&s.jsxs("div",{className:"pb-2 login-error-feedback",children:[s.jsx(oe,{name:"close"}),s.jsx("p",{children:n.message})]})]})};const bu=({className:t,onLogin:e,components:n,userInputName:r})=>{const[o,i]=y.useState(!1),[a,c]=y.useState(null),l=n?.Logo||xt,u=n?.Heading||Sr;return s.jsx(Li,{className:G(t,"simple-login"),Logo:l,children:o?s.jsx(Ri,{}):s.jsxs(s.Fragment,{children:[s.jsx(u,{}),s.jsx(yu,{onLogin:e,setIsLoading:i,loginError:a,setLoginError:c,userInputName:r})]})})},wu=me({id:de,username:Z(de),email:Z(de),firstName:Z(de),lastName:Z(de),avatarUrl:Z(de),token:Z(de),password:Z(de)});function xu(t,e){const[n,r]=y.useState(!0),o=y.useContext(ee.IOConnectContext);return y.useEffect(()=>{let i;return(async()=>{if(!o.workspaces)return;let a;try{a=await o.workspaces.getWorkspaceById(t)}catch(l){console.warn(l);return}const c=a.getAllGroups().find(l=>l.id===e);c&&(i=await c.onLockConfigurationChanged(({showAddWindowButton:l})=>{l!==void 0&&r(l)}),r(!!c.showAddWindowButton))})(),()=>i?.()},[t,e,o.workspaces]),n}const Cu=({groupId:t,workspaceId:e})=>{const n=xu(e,t),r=y.useCallback(o=>{ht.showAddApplicationPopup({bounds:o,groupId:t,workspaceId:e})},[t,e]);return n&&s.jsx(ht.AddWindowButton,{title:"Add App",visible:n,showPopup:r})},Ou=t=>s.jsx(ht.GroupHeaderButtons,{...t,addWindow:{visible:!1,showPopup:t.addWindow.showPopup}}),kr=({onLogout:t,user:e,workspaces:n,launchpad:r})=>{const o=n?.HeaderLogoArea;return s.jsx(br.Provider,{value:{onLogout:t,user:e,launchpadComponents:r?.components},children:s.jsx(ht,{components:{...n?.components,header:{...n?.components?.header,LogoComponent:o??wi},groupHeader:{AfterTabsComponent:Cu,ButtonsComponent:Ou,...n?.components?.groupHeader}}})})},ju=({config:t})=>{const{setupFlow:e,getIOConnectConfig:n}=t,r=t.login,{permission:o}=Ge(),[i,a]=Ft("localStorage",ls,wu),[c,l]=y.useState(!1),u=y.useCallback(async(p,f)=>{const h=await r.onLogin(p,f);a(h)},[r,a]),d=y.useCallback(()=>{l(!0),r.onLogout?.(),a(null)},[r,a]);return c?s.jsx(mu,{components:r.components}):i?!o.isSetupCompleted&&e?.enabled!==!1?s.jsx(bn,{settings:e?.settings,components:e?.components}):s.jsx(ee.IOConnectProvider,{settings:n(i),children:s.jsx(kr,{workspaces:t?.workspaces,launchpad:t?.launchpad,onLogout:d,user:i})}):s.jsx(bu,{onLogin:u,components:r.components,userInputName:r.userInputName})},Eu=me({message:de}),Su=t=>{const e=Ni(),[n,r]=y.useState(void 0),[o,i]=Ft("sessionStorage",as,Eu),a=y.useMemo(()=>e.user?t?.(e.user)??{ok:!0}:null,[e.user,t]),c=a?.ok===!1,l=e.isLoading||e.isAuthenticated&&!n,u=c||l,d=y.useMemo(()=>a?.ok&&e.user?.email&&n?{username:e.user.name,id:e.user.email,token:n}:null,[e.user,n,a?.ok]);return y.useEffect(()=>{e.isAuthenticated&&e.getAccessTokenSilently().then(r).catch(console.warn)},[e]),y.useEffect(()=>{if(a){if(a.ok){i(null);return}i({message:a.message}),e.logout()}},[e,i,a]),{isLoading:u,validationError:o,user:d}},ir={POPUP:"popup",REDIRECT:"redirect"},ku=({config:t})=>{const e=Ni(),{isLoading:n,validationError:r,user:o}=Su(t.login.validateUser),{permission:i}=Ge(),{setupFlow:a,getIOConnectConfig:c}=t,u=(t.login.loginType??ir.REDIRECT)===ir.REDIRECT?e.loginWithRedirect:e.loginWithPopup;return o?!i.isSetupCompleted&&a?.enabled!==!1?s.jsx(bn,{settings:a?.settings,components:a?.components}):s.jsx(ee.IOConnectProvider,{settings:c({...e.user,token:o.token}),children:s.jsx(kr,{workspaces:t.workspaces,launchpad:t.launchpad,onLogout:e.logout,user:o})}):s.jsx(gu,{onLogin:u,isLoading:n,components:t.login.components,validationError:r})},Tu=({config:t})=>{const{setupFlow:e,getIOConnectConfig:n}=t,{permission:r}=Ge();return!r.isSetupCompleted&&e?.enabled!==!1?s.jsx(bn,{settings:e?.settings,components:e?.components}):s.jsx(ee.IOConnectProvider,{settings:n(),children:s.jsx(kr,{workspaces:t.workspaces,launchpad:t.launchpad})})},Mi=me({Logo:Z(he().andThen(t=>ke(t,"Logo"))),Heading:Z(he().andThen(t=>ke(t,"Heading")))}),Pu=Jt(...Object.values(ir).map(t=>Rt(t))),_u=me({type:Rt("auth0"),validateUser:Z(he().andThen(t=>ke(t,"validateUser"))),loginType:Z(Pu),providerOptions:he(),components:Z(Mi)}),Iu=me({type:Rt("simple"),onLogin:he().andThen(t=>ke(t,"onLogin")),onLogout:Z(he().andThen(t=>ke(t,"onLogout"))),userInputName:Z(de),components:Z(Mi)}),Nu=Jt(_u,Iu),Au=me({edgeNotificationsPermissionTimeout:Z(bs)}),Ru=me({Logo:Z(he().andThen(t=>ke(t,"Logo")))}),Lu=me({enabled:Z(Ro()),components:Z(Ru),settings:Z(Au)}),Mu=me({components:Z(he()),HeaderLogoArea:Z(he().andThen(t=>ke(t,"HeaderLogoArea")))}),Du=me({sections:Z(he()),Sections:Z(he().andThen(t=>ke(t,"Sections"))),NotificationsPanel:Jt(Rt(null),Z(he().andThen(t=>ke(t,"NotificationsPanel")))),UserPanel:Jt(Rt(null),Z(he().andThen(t=>ke(t,"UserPanel"))))}),Fu=me({components:Z(Du)}),Uu=me({getIOConnectConfig:he().andThen(t=>ke(t,"getIOConnectConfig")),login:Z(Nu),setupFlow:Z(Lu),workspaces:Z(Mu),launchpad:Z(Fu)}),Wu=({config:t})=>{const e=y.useMemo(()=>Uu.runWithException(t),[t]),n=e.login,r=e.launchpad?.components;if(r?.sections&&r?.Sections)throw new Error("Launchpad sections are overspecified. Please provide either a JSX element or a React component.");if(n?.type==="simple")return s.jsx(ju,{config:e});if(n?.type==="auth0"){const{providerOptions:o}=n;return s.jsx(cu,{...o,authorizationParams:{...o.authorizationParams,redirect_uri:o.authorizationParams?.redirect_uri??window.location.origin},children:s.jsx(ku,{config:e})})}return s.jsx(Tu,{config:e})},Di=()=>"getScreenDetails"in window,Hu=({config:t})=>Di()?s.jsx(Ci,{children:s.jsx(Wu,{config:t})}):s.jsx(gi,{}),Fi=t=>t?.split(" ").map(e=>e[0]?.toUpperCase()).join(""),Ui=y.forwardRef((t,e)=>{const{onSearch:n,searchTerm:r,onClear:o}=t,i=y.useContext(ee.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:e,className:"io-input",placeholder:"Find anything",value:r,onChange:n}),s.jsx(oe,{name:"delete-left",className:r.length!==0?"active":"",onClick:o,"data-testid":"delete-icon"})]})}),Vu=t=>t.reduce((e,n)=>{const{type:r}=n,o=n.id||n.displayName;if(!o||r.name===Ue.LAYOUT)return e;let i=[];r.name===Ue.APPLICATION?i=Eo:r.name===Ue.WORKSPACE?i=So:n.secondaryActions&&(i=n.secondaryActions.map(({name:u,method:d,params:p,target:f})=>({name:u,interopParams:{method:d,params:p,target:f}})));const a={id:o,title:n.displayName||o,description:n.description,type:r.name,iconSrc:n.iconURL,mainAction:n.action,contextMenuActions:i},c=e.findIndex(({title:u})=>r.displayName?u===r.displayName:u===r.name),l=e[c];return l?[...e.slice(0,c),{...l,items:[...l.items,a]},...e.slice(c+1)]:[...e,{id:r.name,title:r.displayName||r.name,items:[a]}]},[]);function Wi(t){const{resultsToRender:e,isLoading:n}=_s(t.searchTerm),r=rt(),o=Os(),i=Uo(),a=Wo(),c=Vu(e),l=Ho(),u=Vo(),d=(f,h)=>{const m=f.type===Ue.APPLICATION?l:f.type===Ue.WORKSPACE?u:null;m&&m(f,h)},p=async(f,h)=>{const{item:m,modifier:v,selectedContextMenuActionName:g}=h,{type:w,id:j,mainAction:O}=m,C=g?m.contextMenuActions?.find(b=>b.name===g):null;C?.interopParams?o(C.interopParams):g?d(m,g):O?o(O):w===Ue.APPLICATION?a(j,v).catch(b=>{console.error("Failed to start application",{error:b})}):w===Ue.WORKSPACE&&i(j,v).catch(b=>{console.error("Failed to restore workspace",{error:b})}),v!==ln.SHIFT&&r.close()};return n?s.jsx("p",{style:{padding:"12px 24px"},children:"Loading..."}):e.length===0?s.jsx("p",{style:{padding:"12px 24px"},children:"No results found."}):s.jsx("ul",{children:c.map((f,h)=>s.jsx(hn,{config:f,isFavoritismEnabled:!1,onItemClick:p},f.id||h))})}const zu=(t,e,n)=>{const{isSectionCollapsible:r,sortOrder:o=At.ASCENDING,...i}=n;return{id:"workspaces-section",title:"Workspaces",items:sr({items:t,sortOrder:o,ascendingCompare:ko,descendingCompare:To}).map(l=>({...l,type:Ue.WORKSPACE,isOpen:e[l.title]?.length>0,contextMenuActions:So})),isCollapsible:r,...i}},Hi=t=>{const{displayCount:e,isSectionCollapsible:n,showAllItems:r,sortOrder:o}=t,i=Is(),a=Ns(),c=Uo(),l=Vo(),u=y.useMemo(()=>zu(i,a,{...{displayCount:e,showAllItems:r},isSectionCollapsible:n,sortOrder:o}),[i,a,e,n,r,o]),d=p=>{const{item:f,modifier:h,selectedContextMenuActionName:m}=p;if(!m)return c(f.id,h).catch(v=>{console.error("Failed to restore workspace",{error:v})});l(f,m)};return s.jsx(mn,{config:u,onItemClick:d})},Bu=()=>s.jsxs(s.Fragment,{children:[s.jsx(yi,{}),s.jsx(Hi,{}),s.jsx(mi,{})]}),Zu={success:"check"},bo={SET_AS_DEFAULT:"setAsDefault",DELETE:"delete"},$u=t=>[{name:bo.SET_AS_DEFAULT,displayName:"Set as Default",disabled:t.isDefault},{name:bo.DELETE,displayName:"Delete",disabled:t.name===Bo||t.isDefault}],wo=t=>async e=>{e.stopPropagation();try{await t()}catch(n){console.error("Failed to handle layout action: ",n)}},Gu=t=>{const{layouts:e}=t,{setSelectedLayout:n,setDefaultLayout:r}=rt(),o=Vs(),i=cr(),a=$o(),c=u=>{a(()=>i(u.name,n))},l=(u,d)=>{a(()=>o(u,d.name,r))};return s.jsxs("div",{"data-testid":"available-layouts",children:[s.jsx("h6",{children:"Available Layouts"}),e.map(u=>s.jsxs("div",{className:G("layouts-item flex ai-center",u.isSelected&&"active"),"data-testid":"layout-item",children:[s.jsx("div",{className:"loaded me-8",children:u.isSelected&&s.jsx(oe,{size:12,name:"check"})}),s.jsx("div",{className:G("name",{bold:u.isSelected}),onClick:()=>c(u),children:u.name}),s.jsxs("div",{className:"type",children:[u.type,u.isDefault?"/Default":""]}),s.jsx(mr,{iconSize:16,iconName:"ellipsis",actions:$u(u),onActionItemClick:(d,p)=>l(u,p)})]},u.name))]})},xo=t=>{const{inputValue:e,setNotification:n,className:r=""}=t,{selectedLayout:o,setSelectedLayout:i}=rt(),a=cr(),c=$o(),l=y.useContext(ee.IOConnectContext),u=[{label:"Save",type:"save",onClick:wo(()=>{c(async()=>{await l.layouts.save({name:e,type:"Global"}),i({name:e}),n({message:"Saved",type:"success"})})}),testId:"save-button"},{label:"Restore",type:"restore",onClick:wo(()=>{if(!o)return;c(()=>a(o.name))}),testId:"restore-button"}];return s.jsx("div",{className:G("layout-actions",r),"data-testid":"layout-actions",children:u.map(({label:d,type:p,disabled:f,onClick:h,testId:m})=>s.jsx("button",{onClick:h,disabled:f,className:"io-btn","data-testid":m,children:d},p))})},qu=({className:t,message:e,type:n})=>s.jsxs("div",{className:G("layout-notification",`layout-notification-${n}`,t),"data-testid":"layout-notification",children:[s.jsx(oe,{size:12,name:Zu[n]}),s.jsx("span",{"data-testid":"layout-notification-message",children:e})]}),Vi=()=>{const t=y.useRef(null),[e,n]=y.useState(!1),[r,o]=y.useState(null),i=js(),{defaultLayout:a,selectedLayout:c}=rt(),[l,u]=y.useState("");y.useEffect(()=>{if(!e)return;const p=h=>{t.current?.contains(h.target)||n(!1)},f=()=>{document.activeElement?.nodeName==="IFRAME"&&n(!1)};return document.addEventListener("click",p,!0),window.addEventListener("blur",f,!0),()=>{document.removeEventListener("click",p,!0),window.removeEventListener("blur",f,!0)}},[e]),y.useEffect(()=>{if(!r)return;const p=setTimeout(()=>o(null),3e3);return()=>clearTimeout(p)},[r]),y.useEffect(()=>{c&&u(c.name)},[c]);const d=()=>{n(p=>!p),c&&u(c.name)};return s.jsxs("footer",{className:"footer",ref:t,"data-testid":"layouts-panel",children:[s.jsxs("div",{"aria-label":"Layouts panel","aria-expanded":e,role:"button",...mt(d),className:"selected-layout flex ai-center","data-testid":"selected-layout",children:[s.jsx("span",{className:G("name",{hidden:e}),"data-testid":"selected-layout-name",children:c?.name||"No selected layout"}),s.jsxs("div",{className:"flex ai-center","data-testid":"layout-actions-and-toggle",children:[!e&&s.jsx(xo,{inputValue:l,setNotification:o}),s.jsx(oe,{className:G("ms-8","layouts-panel-toggle-button",{"layouts-panel-toggle-button-rotated":e}),name:"chevron-up","data-testid":"layouts-panel-toggle"})]})]}),s.jsx(ui,{isOpen:e,children:s.jsxs("div",{className:"layouts-container",children:[s.jsxs("div",{className:"layouts-settings",children:[s.jsx("input",{className:"io-input",onChange:p=>u(p.target.value),value:l,"data-testid":"layout-name-input"}),s.jsx(xo,{className:"group",inputValue:l,setNotification:o})]}),s.jsx(Gu,{layouts:i.map(p=>({...p,isSelected:p.name===c?.name,isDefault:p.name===a?.name}))})]})}),r?s.jsx(qu,{className:G({"ms-8 me-8":e}),message:r.message,type:r.type}):s.jsx("div",{className:"powered-by",children:"Powered by io.Connect Browser"})]})},Ku=t=>{const e=new Date(t),n=e.getHours(),r=e.getMinutes().toString().padStart(2,"0"),o=e.getSeconds().toString().padStart(2,"0"),i=n>=12?"PM":"AM",a=e.getMonth()+1,c=e.getDate(),l=e.getFullYear();return`${n%12}:${r}:${o} ${i} ${a}/${c}/${l}`},zi=t=>{const{severity:e="None",id:n,timestamp:r,title:o,body:i,actions:a}=t.notificationData,c=y.useContext(ee.IOConnectContext),l=()=>{c&&c.notifications.clear(n).catch(console.error)},u=async p=>{p.stopPropagation();try{await c.notifications.click(n),l()}catch(f){console.error(f)}},d=a?.map(({action:p,title:f})=>({children:f,onClick:async h=>{h.stopPropagation();try{await c.notifications.click(n,p),l()}catch(m){console.error(m)}}}));return s.jsxs("div",{className:"notifications-list-item",style:{borderLeftColor:Es[e]},onClick:u,"data-testid":"notification-container",children:[s.jsxs("div",{className:"notification-header","data-testid":"notification-header",children:[s.jsx("h4",{children:o}),s.jsx(oe,{onClick:p=>{p.stopPropagation(),l()},className:"io-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:Ku(r)}),d&&s.jsx(gn,{className:"notification-actions","data-testid":"notification-actions",items:d})]})},Tr=t=>{const{className:e}=t,n=Do().length;return n>0?s.jsx("span",{className:G("notifications-badge",e),"data-testid":"notifications-badge",children:n<10?n:"9+"}):null},Bi=t=>{const{className:e,iconSize:n=24,...r}=t;return s.jsxs("div",{className:G(e,"notifications-icon"),"data-testid":"notifications-icon",...r,children:[s.jsx(oe,{size:n,name:"bell"}),s.jsx(Tr,{})]})},Zi=()=>{const{onNotificationsSort:t,sortedNotifications:e}=Ps(),n=y.useContext(ee.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 (",e.length,")"]})}),s.jsx(gn,{items:[{children:"Latest",onClick:()=>t("timestamp")},{children:"By Priority",onClick:()=>t("severity")}]})]}),e.length?s.jsx("div",{className:"notifications-list","data-testid":"notifications-list",children:e.map(o=>s.jsx(zi,{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(Vt,{children:"Clear All",onClick:r})})]})},Yu=({user:t})=>{const e=y.useContext(ee.IOConnectContext),n=t?.username||"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 "+e.version]})]}),s.jsx("div",{className:"flex badge",children:Fi(n)})]})},$i=()=>{const t=y.useContext(ee.IOConnectContext),[e,n]=y.useState([]);y.useEffect(()=>{t&&t.themes?.list().then(o=>n(o)).catch(console.warn)},[t]);const r=async(o,i)=>{i.name&&t.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(gn,{onItemClick:r,items:e.map(({name:o,displayName:i})=>({name:o,children:i}))})})]})]})},Gi=({title:t,description:e,links:n=[],onLogout:r,user:o})=>{const[i,a]=Ft("sessionStorage",Ao,zo),c=y.useContext(ee.IOConnectContext),l=async()=>{try{r?.()}catch(u){console.error(u)}a(null),await c.webPlatform?.system.shutdown(),window.location.reload()};return s.jsxs("div",{className:"info info-bottom flex flex-column",children:[s.jsx("h4",{children:t||"Support"}),s.jsx("p",{children:e||"New set of thoughtfully curated items and the ability to configure them."}),s.jsx("ul",{children:n.map(({children:u,...d})=>s.jsx("li",{children:s.jsx("a",{...d,children:u})},d.href))}),o?.id&&s.jsx("div",{children:s.jsx(Vt,{onClick:l,children:"Log Out"})})]})},qi=({onLogout:t,user:e})=>s.jsxs(s.Fragment,{children:[s.jsx(Yu,{user:e}),s.jsx($i,{}),s.jsx(Gi,{onLogout:t,user:e})]}),Ki=t=>{const{initials:e,className:n,...r}=t;return s.jsx("div",{className:G(n,"user-panel-icon"),...r,children:e})},Co=({children:t,closeFn:e,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&&e()},onClick:i=>{i.target.nodeName==="DIALOG"&&e()},children:s.jsxs("div",{className:"dialog-backer",children:[r&&s.jsx(oe,{onClick:e,className:"btn-close io-btn io-btn-icon",size:16,name:"close"}),t]})})};function Yi(t){const{open:e,setOpen:n,onLogout:r,className:o,components:i={},user:a,...c}=t,[l,u]=y.useState(""),[d,p]=y.useState(!1),[f,h]=y.useState(!1),m=y.useRef(null),v=i?.NotificationsPanel!==null,g=i?.UserPanel!==null,w=i?.NotificationsPanel??Zi,j=i?.UserPanel??qi;y.useEffect(()=>{if(e){m.current?.focus();return}u("")},[e]);const O=_=>{u(_.target.value)},C=()=>{u("")},b=i.Sections?s.jsx(i.Sections,{}):i.sections,k=s.jsx(ml,{children:s.jsx("ul",{children:b??s.jsx(Bu,{})})});return s.jsxs(Zs,{setOpen:n,isOpen:e,children:[s.jsxs("div",{className:G(o),...c,children:[s.jsxs("header",{children:[s.jsx(Ui,{ref:m,searchTerm:l,onSearch:O,onClear:C}),s.jsxs("div",{className:"action-area",children:[v&&s.jsx(Bi,{"aria-label":"Notifications",role:"button",...mt(()=>p(!0))}),g&&s.jsx(Ki,{initials:Fi(a?.username||"N A"),"aria-label":"Profile and Settings",role:"button",...mt(()=>h(!0))})]}),s.jsx(oe,{className:"btn-close io-btn io-btn-icon",size:16,name:"close",handleClick:()=>n(!1)})]}),s.jsx("main",{children:l.trim().length<3?k:s.jsx(Wi,{searchTerm:l})}),s.jsx(Vi,{})]}),v&&s.jsx(Co,{open:d,closeFn:()=>p(!1),children:s.jsx(w,{})}),g&&s.jsx(Co,{open:f,closeFn:()=>h(!1),children:s.jsx(j,{onLogout:r,user:a})})]})}const Xi=()=>s.jsxs(s.Fragment,{children:[s.jsx(ht.Logo,{frameId:""}),s.jsx(Tr,{})]}),Xu="_workspaceLogo_t3m7s_1",Oo={workspaceLogo:Xu,"launchpad-popup":"_launchpad-popup_t3m7s_9","slide-in":"_slide-in_t3m7s_32"},Ji=t=>{const[e,n]=y.useState(!1),r=y.useRef(null),o=y.useRef(null),{icon:i,children:a}=t;return y.useEffect(()=>{if(!e)return;const c=u=>{const d=u.target!==r.current&&!r.current?.contains(u.target);!(u.target===o.current||o.current?.contains(u.target))&&d&&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)}},[e]),s.jsxs("div",{ref:r,children:[s.jsx("button",{"aria-label":"Launchpad",onClick:()=>n(c=>!c),className:`io-logo ${e===!0?"active":""}`,ref:o,children:s.jsx("div",{className:"logo-wrapper",children:i})}),s.jsx("div",{children:s.jsx("div",{className:G(Oo["launchpad-popup"],{[Oo["slide-in"]]:e}),children:a({open:e,setOpen:n})})})]})},Pr=t=>{const{icon:e,components:n,user:r,onLogout:o}=t;return s.jsx(Ji,{icon:e??s.jsx(Xi,{}),children:({open:i,setOpen:a})=>s.jsx(Yi,{open:i,setOpen:a,components:n,user:r,onLogout:o})})};exports.ApplicationsSection=mi;exports.BaseSection=hn;exports.BaseSectionHeader=No;exports.BaseSectionItem=oi;exports.BrowserNotSupported=gi;exports.Button=Vt;exports.ButtonGroup=gn;exports.ContextMenu=ri;exports.DropdownButton=mr;exports.FavoritesSection=yi;exports.IOConnectHome=Hu;exports.IOConnectHomeProvider=Ci;exports.Icon=oe;exports.ImgIcon=ar;exports.Launchpad=Yi;exports.LaunchpadAccess=wi;exports.LaunchpadSlidePanel=Pr;exports.LayoutsPanel=Vi;exports.LoginLoader=vu;exports.Logo=Xi;exports.Notification=zi;exports.NotificationsBadge=Tr;exports.NotificationsIcon=Bi;exports.NotificationsPanel=Zi;exports.PermissionsSetup=bn;exports.SearchBar=Ui;exports.SearchResults=Wi;exports.Section=mn;exports.SettingsCard=$i;exports.SlidePanel=Ji;exports.SupportCard=Gi;exports.UserPanel=qi;exports.UserPanelIcon=Ki;exports.WorkspaceComponentsContext=br;exports.WorkspaceLogo=Pl;exports.WorkspacesSection=Hi;exports.useFavoriteEntities=cn;exports.useIOConnectHome=Ge;exports.useIsBrowserSupported=Di;exports.useWorkspaceComponentsContext=bi;
44
+ `)})(),e.cache&&e.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),e.cache)r=e.cache;else{if(n=e.cacheLocation||"memory",!bo(n))throw new Error(`Invalid cache location "${n}"`);r=bo(n)()}this.httpTimeoutMs=e.httpTimeoutInSeconds?1e3*e.httpTimeoutInSeconds:1e4,this.cookieStorage=e.legacySameSiteCookie===!1?ft:Xl,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(a=>`auth0.${a}.is.authenticated`)(this.options.clientId),this.sessionCheckExpiryDays=e.sessionCheckExpiryDays||1;const o=e.useCookiesForTransactions?this.cookieStorage:Jl;var i;this.scope=Kt("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new Gl(o,this.options.clientId),this.nowProvider=this.options.nowProvider||Si,this.cacheManager=new $l(r,r.allKeys?void 0:new tu(r,this.options.clientId),this.nowProvider),this.domainUrl=(i=this.options.domain,/^https?:\/\//.test(i)?i:`https://${i}`),this.tokenIssuer=((a,c)=>a?a.startsWith("https://")?a:`https://${a}/`:`${c}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.worker=new eu)}_url(e){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||Ei)));return`${this.domainUrl}${e}&auth0Client=${n}`}_authorizeUrl(e){return this._url(`/authorize?${ir(e)}`)}async _verifyIdToken(e,n,r){const o=await this.nowProvider();return Kl({iss:this.tokenIssuer,aud:this.options.clientId,id_token:e,nonce:n,organizationId:r,leeway:this.options.leeway,max_age:(i=this.options.authorizationParams.max_age,typeof i!="string"?i:parseInt(i,10)||void 0),now:o});var i}_processOrgIdHint(e){e?this.cookieStorage.save(this.orgHintCookieName,e,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(e,n,r){const o=ho(Pn()),i=ho(Pn()),a=Pn(),c=(d=>{const p=new Uint8Array(d);return(f=>{const h={"+":"-","/":"_","=":""};return f.replace(/[+/=]/g,m=>h[m])})(window.btoa(String.fromCharCode(...Array.from(p))))})(await(async d=>await Jt().subtle.digest({name:"SHA-256"},new TextEncoder().encode(d)))(a)),l=((d,p,f,h,m,v,g,w)=>Object.assign(Object.assign(Object.assign({client_id:d.clientId},d.authorizationParams),f),{scope:Kt(p,f.scope),response_type:"code",response_mode:w||"query",state:h,nonce:m,redirect_uri:g||d.authorizationParams.redirect_uri,code_challenge:v,code_challenge_method:"S256"}))(this.options,this.scope,e,o,i,c,e.redirect_uri||this.options.authorizationParams.redirect_uri||r,n?.response_mode),u=this._authorizeUrl(l);return{nonce:i,code_verifier:a,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:o,url:u}}async loginWithPopup(e,n){var r;if(e=e||{},!(n=n||{}).popup&&(n.popup=(c=>{const l=window.screenX+(window.innerWidth-400)/2,u=window.screenY+(window.innerHeight-600)/2;return window.open(c,"auth0:authorize:popup",`left=${l},top=${u},width=400,height=600,resizable,scrollbars=yes,status=1`)})(""),!n.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const o=await this._prepareAuthorizeUrl(e.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=o.url;const i=await(c=>new Promise((l,u)=>{let d;const p=setInterval(()=>{c.popup&&c.popup.closed&&(clearInterval(p),clearTimeout(f),window.removeEventListener("message",d,!1),u(new kr(c.popup)))},1e3),f=setTimeout(()=>{clearInterval(p),u(new Sr(c.popup)),window.removeEventListener("message",d,!1)},1e3*(c.timeoutInSeconds||60));d=function(h){if(h.data&&h.data.type==="authorization_response"){if(clearTimeout(f),clearInterval(p),window.removeEventListener("message",d,!1),c.popup.close(),h.data.response.error)return u(Oe.fromPayload(h.data.response));l(h.data.response)}},window.addEventListener("message",d)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(o.state!==i.state)throw new Error("Invalid state");const a=((r=e.authorizationParams)===null||r===void 0?void 0:r.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:o.audience,scope:o.scope,code_verifier:o.code_verifier,grant_type:"authorization_code",code:i.code,redirect_uri:o.redirect_uri},{nonceIn:o.nonce,organizationId:a})}async getUser(){var e;const n=await this._getIdTokenFromCache();return(e=n?.decodedToken)===null||e===void 0?void 0:e.user}async getIdTokenClaims(){var e;const n=await this._getIdTokenFromCache();return(e=n?.decodedToken)===null||e===void 0?void 0:e.claims}async loginWithRedirect(e={}){var n;const r=wo(e),{openUrl:o,fragment:i,appState:a}=r,c=Ae(r,["openUrl","fragment","appState"]),l=((n=c.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,u=await this._prepareAuthorizeUrl(c.authorizationParams||{}),{url:d}=u,p=Ae(u,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},p),{appState:a}),l&&{organizationId:l}));const f=i?`${d}#${i}`:d;o?await o(f):window.location.assign(f)}async handleRedirectCallback(e=window.location.href){const n=e.split("?").slice(1);if(n.length===0)throw new Error("There are no query params available for parsing.");const{state:r,code:o,error:i,error_description:a}=(p=>{p.indexOf("#")>-1&&(p=p.substring(0,p.indexOf("#")));const f=new URLSearchParams(p);return{state:f.get("state"),code:f.get("code")||void 0,error:f.get("error")||void 0,error_description:f.get("error_description")||void 0}})(n.join("")),c=this.transactionManager.get();if(!c)throw new Error("Invalid state");if(this.transactionManager.remove(),i)throw new Er(i,a||i,r,c.appState);if(!c.code_verifier||c.state&&c.state!==r)throw new Error("Invalid state");const l=c.organizationId,u=c.nonce,d=c.redirect_uri;return await this._requestToken(Object.assign({audience:c.audience,scope:c.scope,code_verifier:c.code_verifier,grant_type:"authorization_code",code:o},d?{redirect_uri:d}:{}),{nonceIn:u,organizationId:l}),{appState:c.appState}}async checkSession(e){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(e)}catch{}}async getTokenSilently(e={}){var n;const r=Object.assign(Object.assign({cacheMode:"on"},e),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),e.authorizationParams),{scope:Kt(this.scope,(n=e.authorizationParams)===null||n===void 0?void 0:n.scope)})}),o=await((i,a)=>{let c=An[a];return c||(c=i().finally(()=>{delete An[a],c=null}),An[a]=c),c})(()=>this._getTokenSilently(r),`${this.options.clientId}::${r.authorizationParams.audience}::${r.authorizationParams.scope}`);return e.detailedResponse?o:o?.access_token}async _getTokenSilently(e){const{cacheMode:n}=e,r=Ae(e,["cacheMode"]);if(n!=="off"){const o=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(o)return o}if(n!=="cache-only"){if(!await(async(o,i=3)=>{for(let a=0;a<i;a++)if(await o())return!0;return!1})(()=>Rn.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new Dt;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const u=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(u)return u}const o=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(r):await this._getTokenFromIFrame(r),{id_token:i,access_token:a,oauthTokenScope:c,expires_in:l}=o;return Object.assign(Object.assign({id_token:i,access_token:a},c?{scope:c}:null),{expires_in:l})}finally{await Rn.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(e={},n={}){var r;const o=Object.assign(Object.assign({},e),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),e.authorizationParams),{scope:Kt(this.scope,(r=e.authorizationParams)===null||r===void 0?void 0:r.scope)})});return n=Object.assign(Object.assign({},Ul),n),await this.loginWithPopup(o,n),(await this.cacheManager.get(new Re({scope:o.authorizationParams.scope,audience:o.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(e){e.clientId!==null?e.clientId=e.clientId||this.options.clientId:delete e.clientId;const n=e.logoutParams||{},{federated:r}=n,o=Ae(n,["federated"]),i=r?"&federated":"";return this._url(`/v2/logout?${ir(Object.assign({clientId:e.clientId},o))}`)+i}async logout(e={}){const n=wo(e),{openUrl:r}=n,o=Ae(n,["openUrl"]);e.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(e.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const i=this._buildLogoutUrl(o);r?await r(i):r!==!1&&window.location.assign(i)}async _getTokenFromIFrame(e){const n=Object.assign(Object.assign({},e.authorizationParams),{prompt:"none"}),r=this.cookieStorage.get(this.orgHintCookieName);r&&!n.organization&&(n.organization=r);const{url:o,state:i,nonce:a,code_verifier:c,redirect_uri:l,scope:u,audience:d}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new Oe("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const p=e.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,f=await((m,v,g=60)=>new Promise((w,j)=>{const O=window.document.createElement("iframe");O.setAttribute("width","0"),O.setAttribute("height","0"),O.style.display="none";const C=()=>{window.document.body.contains(O)&&(window.document.body.removeChild(O),window.removeEventListener("message",b,!1))};let b;const k=setTimeout(()=>{j(new Dt),C()},1e3*g);b=function(_){if(_.origin!=v||!_.data||_.data.type!=="authorization_response")return;const S=_.source;S&&S.close(),_.data.response.error?j(Oe.fromPayload(_.data.response)):w(_.data.response),clearTimeout(k),window.removeEventListener("message",b,!1),setTimeout(C,2e3)},window.addEventListener("message",b,!1),window.document.body.appendChild(O),O.setAttribute("src",m)}))(o,this.domainUrl,p);if(i!==f.state)throw new Error("Invalid state");const h=await this._requestToken(Object.assign(Object.assign({},e.authorizationParams),{code_verifier:c,code:f.code,grant_type:"authorization_code",redirect_uri:l,timeout:e.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:a});return Object.assign(Object.assign({},h),{scope:u,oauthTokenScope:h.scope,audience:d})}catch(p){throw p.error==="login_required"&&this.logout({openUrl:!1}),p}}async _getTokenUsingRefreshToken(e){const n=await this.cacheManager.get(new Re({scope:e.authorizationParams.scope,audience:e.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(n&&n.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(e);throw new bn(e.authorizationParams.audience||"default",e.authorizationParams.scope)}const r=e.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,o=typeof e.timeoutInSeconds=="number"?1e3*e.timeoutInSeconds:null;try{const i=await this._requestToken(Object.assign(Object.assign(Object.assign({},e.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:r}),o&&{timeout:o}));return Object.assign(Object.assign({},i),{scope:e.authorizationParams.scope,oauthTokenScope:i.scope,audience:e.authorizationParams.audience||"default"})}catch(i){if((i.message.indexOf("Missing Refresh Token")>-1||i.message&&i.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(e);throw i}}async _saveEntryInCache(e){const{id_token:n,decodedToken:r}=e,o=Ae(e,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:r}),await this.cacheManager.setIdToken(this.options.clientId,e.id_token,e.decodedToken),await this.cacheManager.set(o)}async _getIdTokenFromCache(){const e=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new Re({clientId:this.options.clientId,audience:e,scope:this.scope})),r=this.userCache.get("@@user@@");return n&&n.id_token===r?.id_token?r:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:e,audience:n,clientId:r}){const o=await this.cacheManager.get(new Re({scope:e,audience:n,clientId:r}),60);if(o&&o.access_token){const{access_token:i,oauthTokenScope:a,expires_in:c}=o,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:i},a?{scope:a}:null),{expires_in:c})}}async _requestToken(e,n){const{nonceIn:r,organizationId:o}=n||{},i=await zl(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},e),this.worker),a=await this._verifyIdToken(i.id_token,r,o);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},i),{decodedToken:a,scope:e.scope,audience:e.audience||"default"}),i.scope?{oauthTokenScope:i.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgIdHint(a.claims.org_id),Object.assign(Object.assign({},i),{decodedToken:a})}}var _i={isAuthenticated:!1,isLoading:!0},Ue=function(){throw new Error("You forgot to wrap your component in <Auth0Provider>.")},ou=ue(ue({},_i),{buildAuthorizeUrl:Ue,buildLogoutUrl:Ue,getAccessTokenSilently:Ue,getAccessTokenWithPopup:Ue,getIdTokenClaims:Ue,loginWithRedirect:Ue,loginWithPopup:Ue,logout:Ue,handleRedirectCallback:Ue}),Pi=y.createContext(ou),iu=function(t){Ml(e,t);function e(n,r){var o=t.call(this,r||n)||this;return o.error=n,o.error_description=r,Object.setPrototypeOf(o,e.prototype),o}return e}(Error),su=/[?&]code=[^&]+/,au=/[?&]state=[^&]+/,cu=/[?&]error=[^&]+/,lu=function(t){return t===void 0&&(t=window.location.search),(su.test(t)||cu.test(t))&&au.test(t)},Ni=function(t){return function(e){return"error"in e?new iu(e.error,e.error_description):e instanceof Error?e:new Error(t)}},xo=Ni("Login failed"),Ln=Ni("Get access token failed"),Ai=function(t){var e;t?.redirectUri&&(console.warn("Using `redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `redirectUri` will be no longer supported in a future version"),t.authorizationParams=t.authorizationParams||{},t.authorizationParams.redirect_uri=t.redirectUri,delete t.redirectUri),!((e=t?.authorizationParams)===null||e===void 0)&&e.redirectUri&&(console.warn("Using `authorizationParams.redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `authorizationParams.redirectUri` will be removed in a future version"),t.authorizationParams.redirect_uri=t.authorizationParams.redirectUri,delete t.authorizationParams.redirectUri)},uu=function(t,e){switch(e.type){case"LOGIN_POPUP_STARTED":return ue(ue({},t),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return ue(ue({},t),{isAuthenticated:!!e.user,user:e.user,isLoading:!1,error:void 0});case"HANDLE_REDIRECT_COMPLETE":case"GET_ACCESS_TOKEN_COMPLETE":return t.user===e.user?t:ue(ue({},t),{isAuthenticated:!!e.user,user:e.user});case"LOGOUT":return ue(ue({},t),{isAuthenticated:!1,user:void 0});case"ERROR":return ue(ue({},t),{isLoading:!1,error:e.error})}},du=function(t){return Ai(t),ue(ue({},t),{auth0Client:{name:"auth0-react",version:"2.0.1"}})},fu=function(t){window.history.replaceState({},document.title,t?.returnTo||window.location.pathname)},pu=function(t){var e=t.children,n=t.skipRedirectCallback,r=t.onRedirectCallback,o=r===void 0?fu:r,i=t.context,a=i===void 0?Pi:i,c=Dl(t,["children","skipRedirectCallback","onRedirectCallback","context"]),l=y.useState(function(){return new ru(du(c))})[0],u=y.useReducer(uu,_i),d=u[0],p=u[1],f=y.useRef(!1);y.useEffect(function(){f.current||(f.current=!0,function(){return lt(void 0,void 0,void 0,function(){var b,k,_;return ut(this,function(S){switch(S.label){case 0:return S.trys.push([0,7,,8]),b=void 0,lu()&&!n?[4,l.handleRedirectCallback()]:[3,3];case 1:return k=S.sent().appState,[4,l.getUser()];case 2:return b=S.sent(),o(k,b),[3,6];case 3:return[4,l.checkSession()];case 4:return S.sent(),[4,l.getUser()];case 5:b=S.sent(),S.label=6;case 6:return p({type:"INITIALISED",user:b}),[3,8];case 7:return _=S.sent(),p({type:"ERROR",error:xo(_)}),[3,8];case 8:return[2]}})})}())},[l,o,n]);var h=y.useCallback(function(b){return Ai(b),l.loginWithRedirect(b)},[l]),m=y.useCallback(function(b,k){return lt(void 0,void 0,void 0,function(){var _,S;return ut(this,function(P){switch(P.label){case 0:p({type:"LOGIN_POPUP_STARTED"}),P.label=1;case 1:return P.trys.push([1,3,,4]),[4,l.loginWithPopup(b,k)];case 2:return P.sent(),[3,4];case 3:return _=P.sent(),p({type:"ERROR",error:xo(_)}),[2];case 4:return[4,l.getUser()];case 5:return S=P.sent(),p({type:"LOGIN_POPUP_COMPLETE",user:S}),[2]}})})},[l]),v=y.useCallback(function(b){return b===void 0&&(b={}),lt(void 0,void 0,void 0,function(){return ut(this,function(k){switch(k.label){case 0:return[4,l.logout(b)];case 1:return k.sent(),(b.openUrl||b.openUrl===!1)&&p({type:"LOGOUT"}),[2]}})})},[l]),g=y.useCallback(function(b){return lt(void 0,void 0,void 0,function(){var k,_,S,P;return ut(this,function(R){switch(R.label){case 0:return R.trys.push([0,2,3,5]),[4,l.getTokenSilently(b)];case 1:return k=R.sent(),[3,5];case 2:throw _=R.sent(),Ln(_);case 3:return S=p,P={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return S.apply(void 0,[(P.user=R.sent(),P)]),[7];case 5:return[2,k]}})})},[l]),w=y.useCallback(function(b,k){return lt(void 0,void 0,void 0,function(){var _,S,P,R;return ut(this,function(H){switch(H.label){case 0:return H.trys.push([0,2,3,5]),[4,l.getTokenWithPopup(b,k)];case 1:return _=H.sent(),[3,5];case 2:throw S=H.sent(),Ln(S);case 3:return P=p,R={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return P.apply(void 0,[(R.user=H.sent(),R)]),[7];case 5:return[2,_]}})})},[l]),j=y.useCallback(function(){return l.getIdTokenClaims()},[l]),O=y.useCallback(function(b){return lt(void 0,void 0,void 0,function(){var k,_,S;return ut(this,function(P){switch(P.label){case 0:return P.trys.push([0,2,3,5]),[4,l.handleRedirectCallback(b)];case 1:return[2,P.sent()];case 2:throw k=P.sent(),Ln(k);case 3:return _=p,S={type:"HANDLE_REDIRECT_COMPLETE"},[4,l.getUser()];case 4:return _.apply(void 0,[(S.user=P.sent(),S)]),[7];case 5:return[2]}})})},[l]),C=y.useMemo(function(){return ue(ue({},d),{getAccessTokenSilently:g,getAccessTokenWithPopup:w,getIdTokenClaims:j,loginWithRedirect:h,loginWithPopup:m,logout:v,handleRedirectCallback:O})},[d,g,w,j,h,m,v,O]);return y.createElement(a.Provider,{value:C},e)},Ri=function(t){return t===void 0&&(t=Pi),y.useContext(t)};const Co={heading:"Allow Browser Notifications",description:`io.Connect Browser requires permission to send notifications to the desktop.
45
+ 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:Cl,openPermissionsPrompt:({handleDeferredPermission:t,handlePermissionsPromptClose:e})=>{Notification.requestPermission().then(async()=>{const{state:n}=await navigator.permissions.query({name:Le.NOTIFICATIONS});n==="prompt"&&t()}).finally(e)}},hu={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:Il,openPermissionsPrompt:({handleDeferredPermission:t,handlePermissionsPromptClose:e})=>{window.getScreenDetails().catch(async()=>{const{state:n}=await navigator.permissions.query({name:Le.WINDOW_MANAGEMENT});n==="prompt"&&t()}).finally(e)}},cn=fn?{[Le.NOTIFICATIONS]:Co,[Le.WINDOW_MANAGEMENT]:hu}:{[Le.NOTIFICATIONS]:Co},mu={edgeNotificationsPermissionTimeout:15e3};const vu=({isActiveItem:t=()=>!1,permissionStatuses:e})=>{const n=Object.entries(cn);return n.length>=2?s.jsx("ul",{className:"permissions-list",children:n.map(([r,o],i)=>{const a=t(r),c=e.find(({stableName:l})=>l===r);return s.jsxs("li",{className:G("permissions-list-item",a&&"active"),children:[s.jsx("div",{children:c?.state==="granted"?s.jsx(oe,{name:"check"}):s.jsxs(s.Fragment,{children:[s.jsx("span",{className:a?"icon-arrow":""}),s.jsxs("span",{children:[i+1,"."]})]})}),o.label]},r)})}):null},gu=({onReopenPromptClick:t})=>{const e=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(Bt,{description:e,Image:Sl,title:"Something went wrong!",children:s.jsx(Vt,{className:"io-btn-primary permissions-prompt-button",onClick:t,children:"Reopen the Prompt"})})},Li=({deniedPermissionName:t})=>{const{permission:e}=qe(),r=Xo().name?.toLowerCase()||"",o=Object.values(e.statuses).filter(a=>a.stableName===t||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(Bt,{description:i,Image:Tl,title:"Setup Was Unsuccessful",children:s.jsx("ul",{className:"permissions-guidelines-list",children:o.map((a,c)=>s.jsx("li",{children:cn[a.stableName].guidelines[r]||cn[a.stableName].guidelines.default},c))})})},yu=({edgeNotificationsPermissionTimeout:t,isNotificationsPermissionPromptOpen:e})=>{const{name:n}=Xo(),{permission:r}=qe(),[o,i]=y.useState(!1);return y.useEffect(()=>{if(!e||n!=="Edge")return;const a=setTimeout(()=>i(!0),t);return()=>clearTimeout(a)},[n,t,e]),y.useEffect(()=>{if(!o)return;r.statuses.some(({stableName:c,state:l})=>c===Le.NOTIFICATIONS&&l==="granted")&&i(!1)},[o,r.statuses]),{hasEdgeNotificationsPermissionError:o}},Zt=()=>s.jsx("span",{className:"loader"}),bu=({settings:t})=>{const{permission:e}=qe(),[n,r]=y.useState(!1),[o,i]=y.useState(!1),a=e.statuses.find(({state:p})=>p==="prompt"),{hasEdgeNotificationsPermissionError:c}=yu({edgeNotificationsPermissionTimeout:t.edgeNotificationsPermissionTimeout,isNotificationsPermissionPromptOpen:o&&a?.stableName===Le.NOTIFICATIONS});if(!a||e.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(Li,{deniedPermissionName:"notifications"});const l=cn[a.stableName],u=()=>{i(!0),l.openPermissionsPrompt({handleDeferredPermission:()=>r(!0),handlePermissionsPromptClose:()=>i(!1)})},d=()=>{r(!1),u()};return n?s.jsx(gu,{onReopenPromptClick:d}):s.jsxs(Bt,{description:l.description,heading:l.heading,Image:l.Image,title:"First-Time User Setup",children:[s.jsx(vu,{isActiveItem:p=>p===a.stableName,permissionStatuses:e.statuses}),s.jsx("p",{className:"mb-12 permissions-prompt-instructions",children:'Click "Allow" when the prompt appears.'}),s.jsx(Vt,{className:"io-btn-primary permissions-prompt-button",disabled:o,onClick:u,children:"Open Permission Prompt"}),o&&s.jsx(Zt,{})]})},wu=({settings:t})=>{const{permission:e}=qe();return e.isLoading?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"mb-32",children:"Checking browser permissions ..."}),s.jsx(Zt,{})]}):e.isDenied?s.jsx(Li,{}):s.jsx(bu,{settings:t})},wn=({components:{Logo:t=ot}={},settings:e={}})=>s.jsx(xr,{Logo:t,children:s.jsx(wu,{settings:{...mu,...e}})});const Ir=({errorMessage:t})=>{const e="https://support.interop.io",n=s.jsxs(s.Fragment,{children:["We're sorry, but it seems that the following error prevents io.Connect Browser",s.jsx("br",{}),"from operating properly:",s.jsx("br",{}),"“",t,"”",s.jsx("br",{}),"For assistance with runtime issues, visit our"," ",s.jsx("a",{className:"help-center-link",href:e,target:"_blank",rel:"noopener noreferrer",children:"help center"}),".",s.jsx("br",{}),s.jsx("strong",{className:"thank-you",children:"Thank you for your cooperation."})]});return s.jsx(xr,{Logo:ot,children:s.jsx(Bt,{className:"start-failed-card",heading:"Oops! We couldn’t start io.Connect Browser...",description:n,Image:kl,children:s.jsx(Vt,{className:"io-btn-primary visit-help-center-button",onClick:()=>window.open(e,"_blank","noopener,noreferrer"),children:"Visit the interop.io Help Center"})})})},xu=({components:t,className:e})=>{const n=t?.Logo||ot;return s.jsx("div",{className:"logout-backdrop",children:s.jsxs("div",{className:G(e,"logout-container flex flex-column ai-center"),children:[s.jsx(n,{}),s.jsx("h1",{className:"text-center mb-8",children:"Logging out..."}),s.jsx(Zt,{})]})})},_r=({className:t="text-center mb-3",text:e="Making Your Work Flow"})=>s.jsxs(s.Fragment,{children:[s.jsx("h1",{className:t,children:e}),s.jsx("p",{children:"Integrate apps, simplify user experiences and accelerate digital transformation."})]}),Cu=({components:t})=>{const e=t?.Logo||ot,n=t?.Heading||_r;return s.jsxs(s.Fragment,{children:[s.jsx(e,{}),s.jsx(n,{}),s.jsx(Zt,{})]})},Mi=()=>s.jsxs(s.Fragment,{children:[s.jsx("h1",{className:"text-center mb-8",children:"Verifying credentials..."}),s.jsx(Zt,{})]}),Di=({Logo:t,children:e,className:n})=>s.jsxs("div",{className:G(n,"login-container flex flex-column ai-center"),children:[s.jsx(t,{}),e]}),Ou=({className:t,onLogin:e,isLoading:n,components:r,validationError:o})=>{const i=r?.Logo||ot,a=r?.Heading||_r;return s.jsx(Di,{className:t,Logo:i,children:n?s.jsx(Mi,{}):s.jsxs(s.Fragment,{children:[s.jsx(a,{}),s.jsx(zt,{onClick:e,className:"io-btn-primary",children:"Log In"}),o&&s.jsxs("div",{className:"pb-2 login-error-feedback",children:[s.jsx(oe,{name:"close"}),s.jsx("p",{children:o.message})]})]})})},Oo=(t,e)=>{const n=e.value,r=n.trim().length>3;return{value:n,isValid:r}},ju=({onLogin:t,setIsLoading:e,loginError:n,setLoginError:r,userInputName:o})=>{const[i,a]=y.useReducer(Oo,{value:"",isValid:!1}),[c,l]=y.useReducer(Oo,{value:"",isValid:!1}),[u,d]=y.useState(!1),[p,f]=y.useState(!1),{isValid:h}=i,{isValid:m}=c,v=h&&m,g=b=>a({value:b.target.value}),w=b=>l({value:b.target.value}),j=()=>{h||d(!0)},O=()=>{m||f(!0)},C=async b=>{if(b.preventDefault(),!!v){e(!0);try{await t(i.value,c.value)}catch(k){r(k)}e(!1)}};return s.jsxs(dl,{onSubmit:C,children:[s.jsxs(rr,{className:"io-control-input io-control-error",children:[s.jsx("input",{autoFocus:!0,autoComplete:"off",type:"text",placeholder:`Enter your ${o??"email"}`,value:i.value,onChange:g,onBlur:j,onFocus:()=>d(!1),className:G("io-input",u&&"input-error")}),u&&s.jsxs("div",{children:[s.jsx(oe,{name:"close"}),`The ${o??"email"} does not meet the length requirements`]})]}),s.jsxs(rr,{className:"io-control-input io-control-error",children:[s.jsx("input",{autoComplete:"off",type:"password",placeholder:"Enter your password",value:c.value,onChange:w,onBlur:O,onFocus:()=>f(!1),className:G("io-input",p&&"input-error")}),p&&s.jsxs("div",{children:[s.jsx(oe,{name:"close"}),"The password does not meet the length requirements"]})]}),s.jsx(Vt,{type:"submit",className:"io-btn-primary",children:"Log In"}),n&&s.jsxs("div",{className:"pb-2 login-error-feedback",children:[s.jsx(oe,{name:"close"}),s.jsx("p",{children:n.message})]})]})};const Eu=({className:t,onLogin:e,components:n,userInputName:r})=>{const[o,i]=y.useState(!1),[a,c]=y.useState(null),l=n?.Logo||ot,u=n?.Heading||_r;return s.jsx(Di,{className:G(t,"simple-login"),Logo:l,children:o?s.jsx(Mi,{}):s.jsxs(s.Fragment,{children:[s.jsx(u,{}),s.jsx(ju,{onLogin:e,setIsLoading:i,loginError:a,setLoginError:c,userInputName:r})]})})},Su=me({id:de,username:Z(de),email:Z(de),firstName:Z(de),lastName:Z(de),avatarUrl:Z(de),token:Z(de),password:Z(de)});function ku(t,e){const[n,r]=y.useState(!0),o=y.useContext(ee.IOConnectContext);return y.useEffect(()=>{let i;return(async()=>{if(!o.workspaces)return;let a;try{a=await o.workspaces.getWorkspaceById(t)}catch(l){console.warn(l);return}const c=a.getAllGroups().find(l=>l.id===e);c&&(i=await c.onLockConfigurationChanged(({showAddWindowButton:l})=>{l!==void 0&&r(l)}),r(!!c.showAddWindowButton))})(),()=>i?.()},[t,e,o.workspaces]),n}const Tu=({groupId:t,workspaceId:e})=>{const n=ku(e,t),r=y.useCallback(o=>{mt.showAddApplicationPopup({bounds:o,groupId:t,workspaceId:e})},[t,e]);return n&&s.jsx(mt.AddWindowButton,{title:"Add App",visible:n,showPopup:r})},Iu=t=>s.jsx(mt.GroupHeaderButtons,{...t,addWindow:{visible:!1,showPopup:t.addWindow.showPopup}}),Pr=({onLogout:t,user:e,workspaces:n,launchpad:r})=>{const o=n?.HeaderLogoArea;return cs(),s.jsx(Cr.Provider,{value:{onLogout:t,user:e,launchpadComponents:r?.components},children:s.jsx(mt,{components:{...n?.components,header:{...n?.components?.header,LogoComponent:o??Ci},groupHeader:{AfterTabsComponent:Tu,ButtonsComponent:Iu,...n?.components?.groupHeader}}})})},_u=({config:t})=>{const{setupFlow:e,getIOConnectConfig:n}=t,r=t.login,{permission:o}=qe(),[i,a]=Ft("localStorage",ds,Su),[c,l]=y.useState(!1),[u,d]=y.useState(null),p=y.useCallback(async(h,m)=>{const v=await r.onLogin(h,m);a(v)},[r,a]),f=y.useCallback(()=>{l(!0),r.onLogout?.(),a(null)},[r,a]);return c?s.jsx(xu,{components:r.components}):i?!o.isSetupCompleted&&e?.enabled!==!1?s.jsx(wn,{settings:e?.settings,components:e?.components}):u&&!u.message.includes("has already been started")?s.jsx(Ir,{errorMessage:u.message}):s.jsx(ee.IOConnectProvider,{settings:n(i),onInitError:d,children:s.jsx(Pr,{workspaces:t?.workspaces,launchpad:t?.launchpad,onLogout:f,user:i})}):s.jsx(Eu,{onLogin:p,components:r.components,userInputName:r.userInputName})},Pu=me({message:de}),Nu=t=>{const e=Ri(),[n,r]=y.useState(void 0),[o,i]=Ft("sessionStorage",ls,Pu),a=y.useMemo(()=>e.user?t?.(e.user)??{ok:!0}:null,[e.user,t]),c=a?.ok===!1,l=e.isLoading||e.isAuthenticated&&!n,u=c||l,d=y.useMemo(()=>a?.ok&&e.user?.email&&n?{username:e.user.name,id:e.user.email,token:n}:null,[e.user,n,a?.ok]);return y.useEffect(()=>{e.isAuthenticated&&e.getAccessTokenSilently().then(r).catch(console.warn)},[e]),y.useEffect(()=>{if(a){if(a.ok){i(null);return}i({message:a.message}),e.logout()}},[e,i,a]),{isLoading:u,validationError:o,user:d}},sr={POPUP:"popup",REDIRECT:"redirect"},Au=({config:t})=>{const e=Ri(),{isLoading:n,validationError:r,user:o}=Nu(t.login.validateUser),{permission:i}=qe(),[a,c]=y.useState(null),{setupFlow:l,getIOConnectConfig:u}=t,p=(t.login.loginType??sr.REDIRECT)===sr.REDIRECT?e.loginWithRedirect:e.loginWithPopup;return o?!i.isSetupCompleted&&l?.enabled!==!1?s.jsx(wn,{settings:l?.settings,components:l?.components}):a&&!a.message.includes("has already been started")?s.jsx(Ir,{errorMessage:a.message}):s.jsx(ee.IOConnectProvider,{settings:u({...e.user,token:o.token}),onInitError:c,children:s.jsx(Pr,{workspaces:t.workspaces,launchpad:t.launchpad,onLogout:e.logout,user:o})}):s.jsx(Ou,{onLogin:p,isLoading:n,components:t.login.components,validationError:r})},Ru=({config:t})=>{const{setupFlow:e,getIOConnectConfig:n}=t,{permission:r}=qe(),[o,i]=y.useState(null);return!r.isSetupCompleted&&e?.enabled!==!1?s.jsx(wn,{settings:e?.settings,components:e?.components}):o&&!o.message.includes("has already been started")?s.jsx(Ir,{errorMessage:o.message}):s.jsx(ee.IOConnectProvider,{settings:n(),onInitError:i,children:s.jsx(Pr,{workspaces:t.workspaces,launchpad:t.launchpad})})},Fi=me({Logo:Z(he().andThen(t=>ke(t,"Logo"))),Heading:Z(he().andThen(t=>ke(t,"Heading")))}),Lu=en(...Object.values(sr).map(t=>Rt(t))),Mu=me({type:Rt("auth0"),validateUser:Z(he().andThen(t=>ke(t,"validateUser"))),loginType:Z(Lu),providerOptions:he(),components:Z(Fi)}),Du=me({type:Rt("simple"),onLogin:he().andThen(t=>ke(t,"onLogin")),onLogout:Z(he().andThen(t=>ke(t,"onLogout"))),userInputName:Z(de),components:Z(Fi)}),Fu=en(Mu,Du),Uu=me({edgeNotificationsPermissionTimeout:Z(xs)}),Wu=me({Logo:Z(he().andThen(t=>ke(t,"Logo")))}),Hu=me({enabled:Z(Uo()),components:Z(Wu),settings:Z(Uu)}),Vu=me({components:Z(he()),HeaderLogoArea:Z(he().andThen(t=>ke(t,"HeaderLogoArea")))}),Bu=me({sections:Z(he()),Sections:Z(he().andThen(t=>ke(t,"Sections"))),NotificationsPanel:en(Rt(null),Z(he().andThen(t=>ke(t,"NotificationsPanel")))),UserPanel:en(Rt(null),Z(he().andThen(t=>ke(t,"UserPanel"))))}),zu=me({components:Z(Bu)}),Zu=me({getIOConnectConfig:he().andThen(t=>ke(t,"getIOConnectConfig")),login:Z(Fu),setupFlow:Z(Hu),workspaces:Z(Vu),launchpad:Z(zu)}),$u=({config:t})=>{const e=y.useMemo(()=>Zu.runWithException(t),[t]),n=e.login,r=e.launchpad?.components;if(r?.sections&&r?.Sections)throw new Error("Launchpad sections are overspecified. Please provide either a JSX element or a React component.");if(n?.type==="simple")return s.jsx(_u,{config:e});if(n?.type==="auth0"){const{providerOptions:o}=n;return s.jsx(pu,{...o,authorizationParams:{...o.authorizationParams,redirect_uri:o.authorizationParams?.redirect_uri??window.location.origin},children:s.jsx(Au,{config:e})})}return s.jsx(Ru,{config:e})},Gu=({config:t})=>s.jsx(ji,{children:s.jsx($u,{config:t})}),Ui=t=>t?.split(" ").map(e=>e[0]?.toUpperCase()).join(""),Wi=y.forwardRef((t,e)=>{const{onSearch:n,searchTerm:r,onClear:o}=t,i=y.useContext(ee.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:e,className:"io-input",placeholder:"Find anything",value:r,onChange:n}),s.jsx(oe,{name:"delete-left",className:r.length!==0?"active":"",onClick:o,"data-testid":"delete-icon"})]})}),qu=t=>t.reduce((e,n)=>{const{type:r}=n,o=n.id||n.displayName;if(!o||r.name===We.LAYOUT)return e;let i=[];r.name===We.APPLICATION?i=_o:r.name===We.WORKSPACE?i=Po:n.secondaryActions&&(i=n.secondaryActions.map(({name:u,method:d,params:p,target:f})=>({name:u,interopParams:{method:d,params:p,target:f}})));const a={id:o,title:n.displayName||o,description:n.description,type:r.name,iconSrc:n.iconURL,mainAction:n.action,contextMenuActions:i},c=e.findIndex(({title:u})=>r.displayName?u===r.displayName:u===r.name),l=e[c];return l?[...e.slice(0,c),{...l,items:[...l.items,a]},...e.slice(c+1)]:[...e,{id:r.name,title:r.displayName||r.name,items:[a]}]},[]);function Hi(t){const{resultsToRender:e,isLoading:n}=Ns(t.searchTerm),r=rt(),o=Es(),i=lr(),a=zo(),c=qu(e),l=Zo(),u=$o(),d=(f,h)=>{const m=f.type===We.APPLICATION?l:f.type===We.WORKSPACE?u:null;m&&m(f,h)},p=async(f,h)=>{const{item:m,modifier:v,selectedContextMenuActionName:g}=h,{type:w,id:j,mainAction:O}=m,C=g?m.contextMenuActions?.find(b=>b.name===g):null;C?.interopParams?o(C.interopParams):g?d(m,g):O?o(O):w===We.APPLICATION?a({id:j,modifier:v}).catch(b=>{console.error("Failed to start application",{error:b})}):w===We.WORKSPACE&&i({id:j,modifier:v}).catch(b=>{console.error("Failed to restore workspace",{error:b})}),v!==dn.SHIFT&&r.close()};return n?s.jsx("p",{style:{padding:"12px 24px"},children:"Loading..."}):e.length===0?s.jsx("p",{style:{padding:"12px 24px"},children:"No results found."}):s.jsx("ul",{children:c.map((f,h)=>s.jsx(vn,{config:f,isFavoritismEnabled:!1,onItemClick:p},f.id||h))})}const Ku=(t,e,n)=>{const{isSectionCollapsible:r,sortOrder:o=At.ASCENDING,...i}=n;return{id:"workspaces-section",title:"Workspaces",items:ar({items:t,sortOrder:o,ascendingCompare:No,descendingCompare:Ao}).map(l=>({...l,type:We.WORKSPACE,isOpen:e[l.title]?.length>0,contextMenuActions:Po})),isCollapsible:r,...i}},Vi=t=>{const{displayCount:e,isSectionCollapsible:n,showAllItems:r,sortOrder:o}=t,i=As(),a=Rs(),c=lr(),l=$o(),u=y.useMemo(()=>Ku(i,a,{...{displayCount:e,showAllItems:r},isSectionCollapsible:n,sortOrder:o}),[i,a,e,n,r,o]),d=p=>{const{item:f,modifier:h,selectedContextMenuActionName:m}=p;if(!m)return c({id:f.id,modifier:h}).catch(v=>{console.error("Failed to restore workspace",{error:v})});l(f,m)};return s.jsx(gn,{config:u,onItemClick:d})},Yu=()=>s.jsxs(s.Fragment,{children:[s.jsx(wi,{}),s.jsx(Vi,{}),s.jsx(bi,{})]}),Xu={success:"check"},jo={SET_AS_DEFAULT:"setAsDefault",DELETE:"delete"},Ju=t=>[{name:jo.SET_AS_DEFAULT,displayName:"Set as Default",disabled:t.isDefault},{name:jo.DELETE,displayName:"Delete",disabled:t.name===qo||t.isDefault}],Eo=t=>async e=>{e.stopPropagation();try{await t()}catch(n){console.error("Failed to handle layout action: ",n)}},Qu=t=>{const{layouts:e}=t,{setSelectedLayout:n,setDefaultLayout:r}=rt(),o=zs(),i=ur(),a=Yo(),c=u=>{a(()=>i(u.name,n))},l=(u,d)=>{a(()=>o(u,d.name,r))};return s.jsxs("div",{"data-testid":"available-layouts",children:[s.jsx("h6",{children:"Available Layouts"}),e.map(u=>s.jsxs("div",{className:G("layouts-item flex ai-center",u.isSelected&&"active"),"data-testid":"layout-item",children:[s.jsx("div",{className:"loaded me-8",children:u.isSelected&&s.jsx(oe,{size:12,name:"check"})}),s.jsx("div",{className:G("name",{bold:u.isSelected}),onClick:()=>c(u),children:u.name}),s.jsxs("div",{className:"type",children:[u.type,u.isDefault?"/Default":""]}),s.jsx(gr,{iconSize:16,iconName:"ellipsis",actions:Ju(u),onActionItemClick:(d,p)=>l(u,p)})]},u.name))]})},So=t=>{const{inputValue:e,setNotification:n,className:r=""}=t,{selectedLayout:o,setSelectedLayout:i}=rt(),a=ur(),c=Yo(),l=y.useContext(ee.IOConnectContext),u=[{label:"Save",type:"save",onClick:Eo(()=>{c(async()=>{await l.layouts.save({name:e,type:"Global"}),i({name:e}),n({message:"Saved",type:"success"})})}),testId:"save-button"},{label:"Restore",type:"restore",onClick:Eo(()=>{if(!o)return;c(()=>a(o.name))}),testId:"restore-button"}];return s.jsx("div",{className:G("layout-actions",r),"data-testid":"layout-actions",children:u.map(({label:d,type:p,disabled:f,onClick:h,testId:m})=>s.jsx("button",{onClick:h,disabled:f,className:"io-btn","data-testid":m,children:d},p))})},ed=({className:t,message:e,type:n})=>s.jsxs("div",{className:G("layout-notification",`layout-notification-${n}`,t),"data-testid":"layout-notification",children:[s.jsx(oe,{size:12,name:Xu[n]}),s.jsx("span",{"data-testid":"layout-notification-message",children:e})]}),Bi=()=>{const t=y.useRef(null),[e,n]=y.useState(!1),[r,o]=y.useState(null),i=Ss(),{defaultLayout:a,selectedLayout:c}=rt(),[l,u]=y.useState("");y.useEffect(()=>{if(!e)return;const p=h=>{t.current?.contains(h.target)||n(!1)},f=()=>{document.activeElement?.nodeName==="IFRAME"&&n(!1)};return document.addEventListener("click",p,!0),window.addEventListener("blur",f,!0),()=>{document.removeEventListener("click",p,!0),window.removeEventListener("blur",f,!0)}},[e]),y.useEffect(()=>{if(!r)return;const p=setTimeout(()=>o(null),3e3);return()=>clearTimeout(p)},[r]),y.useEffect(()=>{c&&u(c.name)},[c]);const d=()=>{n(p=>!p),c&&u(c.name)};return s.jsxs("footer",{className:"footer",ref:t,"data-testid":"layouts-panel",children:[s.jsxs("div",{"aria-label":"Layouts panel","aria-expanded":e,role:"button",...vt(d),className:"selected-layout flex ai-center","data-testid":"selected-layout",children:[s.jsx("span",{className:G("name",{hidden:e}),"data-testid":"selected-layout-name",children:c?.name||"No selected layout"}),s.jsxs("div",{className:"flex ai-center","data-testid":"layout-actions-and-toggle",children:[!e&&s.jsx(So,{inputValue:l,setNotification:o}),s.jsx(oe,{className:G("ms-8","layouts-panel-toggle-button",{"layouts-panel-toggle-button-rotated":e}),name:"chevron-up","data-testid":"layouts-panel-toggle"})]})]}),s.jsx(hi,{isOpen:e,children:s.jsxs("div",{className:"layouts-container",children:[s.jsxs("div",{className:"layouts-settings",children:[s.jsx("input",{className:"io-input",onChange:p=>u(p.target.value),value:l,"data-testid":"layout-name-input"}),s.jsx(So,{className:"group",inputValue:l,setNotification:o})]}),s.jsx(Qu,{layouts:i.map(p=>({...p,isSelected:p.name===c?.name,isDefault:p.name===a?.name}))})]})}),r?s.jsx(ed,{className:G({"ms-8 me-8":e}),message:r.message,type:r.type}):s.jsx("div",{className:"powered-by",children:"Powered by io.Connect Browser"})]})},td=t=>{const e=new Date(t),n=e.getHours(),r=e.getMinutes().toString().padStart(2,"0"),o=e.getSeconds().toString().padStart(2,"0"),i=n>=12?"PM":"AM",a=e.getMonth()+1,c=e.getDate(),l=e.getFullYear();return`${n%12}:${r}:${o} ${i} ${a}/${c}/${l}`},zi=t=>{const{severity:e="None",id:n,timestamp:r,title:o,body:i,actions:a}=t.notificationData,c=y.useContext(ee.IOConnectContext),l=()=>{c&&c.notifications.clear(n).catch(console.error)},u=async p=>{p.stopPropagation();try{await c.notifications.click(n),l()}catch(f){console.error(f)}},d=a?.map(({action:p,title:f})=>({children:f,onClick:async h=>{h.stopPropagation();try{await c.notifications.click(n,p),l()}catch(m){console.error(m)}}}));return s.jsxs("div",{className:"notifications-list-item",style:{borderLeftColor:ks[e]},onClick:u,"data-testid":"notification-container",children:[s.jsxs("div",{className:"notification-header","data-testid":"notification-header",children:[s.jsx("h4",{children:o}),s.jsx(oe,{onClick:p=>{p.stopPropagation(),l()},className:"io-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:td(r)}),d&&s.jsx(yn,{className:"notification-actions","data-testid":"notification-actions",items:d})]})},Nr=t=>{const{className:e}=t,n=Vo().length;return n>0?s.jsx("span",{className:G("notifications-badge",e),"data-testid":"notifications-badge",children:n<10?n:"9+"}):null},Zi=t=>{const{className:e,iconSize:n=24,...r}=t;return s.jsxs("div",{className:G(e,"notifications-icon"),"data-testid":"notifications-icon",...r,children:[s.jsx(oe,{size:n,name:"bell"}),s.jsx(Nr,{})]})},$i=()=>{const{onNotificationsSort:t,sortedNotifications:e}=Ps(),n=y.useContext(ee.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 (",e.length,")"]})}),s.jsx(yn,{items:[{children:"Latest",onClick:()=>t("timestamp")},{children:"By Priority",onClick:()=>t("severity")}]})]}),e.length?s.jsx("div",{className:"notifications-list","data-testid":"notifications-list",children:e.map(o=>s.jsx(zi,{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(zt,{children:"Clear All",onClick:r})})]})},nd=({user:t})=>{const e=y.useContext(ee.IOConnectContext),n=t?.username||"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 "+e.version]})]}),s.jsx("div",{className:"flex badge",children:Ui(n)})]})},Gi=()=>{const t=y.useContext(ee.IOConnectContext),[e,n]=y.useState([]);y.useEffect(()=>{t&&t.themes?.list().then(o=>n(o)).catch(console.warn)},[t]);const r=async(o,i)=>{i.name&&t.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(yn,{onItemClick:r,items:e.map(({name:o,displayName:i})=>({name:o,children:i}))})})]})]})},qi=({title:t,description:e,links:n=[],onLogout:r,user:o})=>{const[i,a]=Ft("sessionStorage",Fo,Go),c=y.useContext(ee.IOConnectContext),l=async()=>{try{r?.()}catch(u){console.error(u)}a(null),await c.webPlatform?.system.shutdown(),window.location.reload()};return s.jsxs("div",{className:"info info-bottom flex flex-column",children:[s.jsx("h4",{children:t||"Support"}),s.jsx("p",{children:e||"New set of thoughtfully curated items and the ability to configure them."}),s.jsx("ul",{children:n.map(({children:u,...d})=>s.jsx("li",{children:s.jsx("a",{...d,children:u})},d.href))}),o?.id&&s.jsx("div",{children:s.jsx(zt,{onClick:l,children:"Log Out"})})]})},Ki=({onLogout:t,user:e})=>s.jsxs(s.Fragment,{children:[s.jsx(nd,{user:e}),s.jsx(Gi,{}),s.jsx(qi,{onLogout:t,user:e})]}),Yi=t=>{const{initials:e,className:n,...r}=t;return s.jsx("div",{className:G(n,"user-panel-icon"),...r,children:e})},ko=({children:t,closeFn:e,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&&e()},onClick:i=>{i.target.nodeName==="DIALOG"&&e()},children:s.jsxs("div",{className:"dialog-backer",children:[r&&s.jsx(oe,{onClick:e,className:"btn-close io-btn io-btn-icon",size:16,name:"close"}),t]})})};function Xi(t){const{open:e,setOpen:n,onLogout:r,className:o,components:i={},user:a,...c}=t,[l,u]=y.useState(""),[d,p]=y.useState(!1),[f,h]=y.useState(!1),m=y.useRef(null),v=i?.NotificationsPanel!==null,g=i?.UserPanel!==null,w=i?.NotificationsPanel??$i,j=i?.UserPanel??Ki;y.useEffect(()=>{if(e){m.current?.focus();return}u("")},[e]);const O=_=>{u(_.target.value)},C=()=>{u("")},b=i.Sections?s.jsx(i.Sections,{}):i.sections,k=s.jsx(yl,{children:s.jsx("ul",{children:b??s.jsx(Yu,{})})});return s.jsxs(qs,{setOpen:n,isOpen:e,children:[s.jsxs("div",{className:G(o),...c,children:[s.jsxs("header",{children:[s.jsx(Wi,{ref:m,searchTerm:l,onSearch:O,onClear:C}),s.jsxs("div",{className:"action-area",children:[v&&s.jsx(Zi,{"aria-label":"Notifications",role:"button",...vt(()=>p(!0))}),g&&s.jsx(Yi,{initials:Ui(a?.username||"N A"),"aria-label":"Profile and Settings",role:"button",...vt(()=>h(!0))})]}),s.jsx(oe,{className:"btn-close io-btn io-btn-icon",size:16,name:"close",handleClick:()=>n(!1)})]}),s.jsx("main",{children:l.trim().length<3?k:s.jsx(Hi,{searchTerm:l})}),fn&&s.jsx(Bi,{})]}),v&&s.jsx(ko,{open:d,closeFn:()=>p(!1),children:s.jsx(w,{})}),g&&s.jsx(ko,{open:f,closeFn:()=>h(!1),children:s.jsx(j,{onLogout:r,user:a})})]})}const Ji=()=>s.jsxs(s.Fragment,{children:[s.jsx(mt.Logo,{frameId:""}),s.jsx(Nr,{})]}),rd="_workspaceLogo_t3m7s_1",To={workspaceLogo:rd,"launchpad-popup":"_launchpad-popup_t3m7s_9","slide-in":"_slide-in_t3m7s_32"},Qi=t=>{const[e,n]=y.useState(!1),r=y.useRef(null),o=y.useRef(null),{icon:i,children:a}=t;return y.useEffect(()=>{if(!e)return;const c=u=>{const d=u.target!==r.current&&!r.current?.contains(u.target);!(u.target===o.current||o.current?.contains(u.target))&&d&&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)}},[e]),s.jsxs("div",{ref:r,children:[s.jsx("button",{"aria-label":"Launchpad",onClick:()=>n(c=>!c),className:`io-logo ${e===!0?"active":""}`,ref:o,children:s.jsx("div",{className:"logo-wrapper",children:i})}),s.jsx("div",{children:s.jsx("div",{className:G(To["launchpad-popup"],{[To["slide-in"]]:e}),children:a({open:e,setOpen:n})})})]})},Ar=t=>{const{icon:e,components:n,user:r,onLogout:o}=t;return s.jsx(Qi,{icon:e??s.jsx(Ji,{}),children:({open:i,setOpen:a})=>s.jsx(Xi,{open:i,setOpen:a,components:n,user:r,onLogout:o})})},od=()=>"getScreenDetails"in window;exports.ApplicationsSection=bi;exports.BaseSection=vn;exports.BaseSectionHeader=Do;exports.BaseSectionItem=ci;exports.BrowserNotSupported=Nl;exports.Button=zt;exports.ButtonGroup=yn;exports.ContextMenu=ai;exports.DropdownButton=gr;exports.FavoritesSection=wi;exports.IOConnectHome=Gu;exports.IOConnectHomeProvider=ji;exports.Icon=oe;exports.ImgIcon=cr;exports.Launchpad=Xi;exports.LaunchpadAccess=Ci;exports.LaunchpadSlidePanel=Ar;exports.LayoutsPanel=Bi;exports.LoginLoader=Cu;exports.Logo=Ji;exports.Notification=zi;exports.NotificationsBadge=Nr;exports.NotificationsIcon=Zi;exports.NotificationsPanel=$i;exports.PermissionsSetup=wn;exports.SearchBar=Wi;exports.SearchResults=Hi;exports.Section=gn;exports.SettingsCard=Gi;exports.SlidePanel=Qi;exports.SupportCard=qi;exports.UserPanel=Ki;exports.UserPanelIcon=Yi;exports.WorkspaceComponentsContext=Cr;exports.WorkspaceLogo=Rl;exports.WorkspacesSection=Vi;exports.useFavoriteEntities=un;exports.useIOConnectHome=qe;exports.useIsBrowserSupported=od;exports.useWorkspaceComponentsContext=xi;
46
46
  //# sourceMappingURL=index.js.map