feat: integrate Microsoft Power Apps SDK and enhance email handling

- Added dependency for @microsoft/power-apps to package.json.
- Updated power.config.json to include appId, environmentId, and connection references.
- Implemented sanitisation function for HTML content in App.tsx to prevent XSS.
- Enhanced error handling in email loading and marking as read functionalities.
- Updated email display logic to handle HTML content and previews.
- Refactored OutlookService to use auto-generated service from @microsoft/power-apps.
- Added new methods for sending, marking as read, and deleting emails in OutlookService.
- Updated types for Email to include bodyPreview, isHtml, hasAttachments, and importance.
- Configured Vite to exclude @microsoft/power-apps/data from the build.
- Created .gitignore to exclude build artifacts and environment files.
- Added local development shim for @microsoft/power-apps/data to support local testing.
- Defined type stubs for @microsoft/power-apps/data to facilitate local development.
This commit is contained in:
Lago committed 2026-04-16 22:42:40 +02:00
1 parent 96f76e21a7
commit 0a1d96a40f
35 files changed
+2556 -57687

No files matched your search

-145
View File
@@ -1,145 +0,0 @@
function nv(o,n){for(var a=0;a<n.length;a++){const l=n[a];if(typeof l!="string"&&!Array.isArray(l)){for(const s in l)if(s!=="default"&&!(s in o)){const f=Object.getOwnPropertyDescriptor(l,s);f&&Object.defineProperty(o,s,f.get?f:{enumerable:!0,get:()=>l[s]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const f of s)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&l(d)}).observe(document,{childList:!0,subtree:!0});function a(s){const f={};return s.integrity&&(f.integrity=s.integrity),s.referrerPolicy&&(f.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?f.credentials="include":s.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function l(s){if(s.ep)return;s.ep=!0;const f=a(s);fetch(s.href,f)}})();function Rf(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Hu={exports:{}},Ja={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var m1;function d5(){if(m1)return Ja;m1=1;var o=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function a(l,s,f){var d=null;if(f!==void 0&&(d=""+f),s.key!==void 0&&(d=""+s.key),"key"in s){f={};for(var g in s)g!=="key"&&(f[g]=s[g])}else f=s;return s=f.ref,{$$typeof:o,type:l,key:d,ref:s!==void 0?s:null,props:f}}return Ja.Fragment=n,Ja.jsx=a,Ja.jsxs=a,Ja}var v1;function g5(){return v1||(v1=1,Hu.exports=d5()),Hu.exports}var P=g5();const h5=Rf(P),m5=nv({__proto__:null,default:h5},[P]);var Lu={exports:{}},he={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var p1;function v5(){if(p1)return he;p1=1;var o=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),x=Symbol.iterator;function S(T){return T===null||typeof T!="object"?null:(T=x&&T[x]||T["@@iterator"],typeof T=="function"?T:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,A={};function N(T,G,K){this.props=T,this.context=G,this.refs=A,this.updater=K||w}N.prototype.isReactComponent={},N.prototype.setState=function(T,G){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,G,"setState")},N.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function D(){}D.prototype=N.prototype;function j(T,G,K){this.props=T,this.context=G,this.refs=A,this.updater=K||w}var L=j.prototype=new D;L.constructor=j,B(L,N.prototype),L.isPureReactComponent=!0;var Z=Array.isArray;function H(){}var U={H:null,A:null,T:null,S:null},ie=Object.prototype.hasOwnProperty;function Be(T,G,K){var J=K.ref;return{$$typeof:o,type:T,key:G,ref:J!==void 0?J:null,props:K}}function be(T,G){return Be(T.type,G,T.props)}function ye(T){return typeof T=="object"&&T!==null&&T.$$typeof===o}function ce(T){var G={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(K){return G[K]})}var pe=/\/+/g;function Q(T,G){return typeof T=="object"&&T!==null&&T.key!=null?ce(""+T.key):G.toString(36)}function Ee(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(H,H):(T.status="pending",T.then(function(G){T.status==="pending"&&(T.status="fulfilled",T.value=G)},function(G){T.status==="pending"&&(T.status="rejected",T.reason=G)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function q(T,G,K,J,se){var xe=typeof T;(xe==="undefined"||xe==="boolean")&&(T=null);var Oe=!1;if(T===null)Oe=!0;else switch(xe){case"bigint":case"string":case"number":Oe=!0;break;case"object":switch(T.$$typeof){case o:case n:Oe=!0;break;case b:return Oe=T._init,q(Oe(T._payload),G,K,J,se)}}if(Oe)return se=se(T),Oe=J===""?"."+Q(T,0):J,Z(se)?(K="",Oe!=null&&(K=Oe.replace(pe,"$&/")+"/"),q(se,G,K,"",function(aa){return aa})):se!=null&&(ye(se)&&(se=be(se,K+(se.key==null||T&&T.key===se.key?"":(""+se.key).replace(pe,"$&/")+"/")+Oe)),G.push(se)),1;Oe=0;var kt=J===""?".":J+":";if(Z(T))for(var Je=0;Je<T.length;Je++)J=T[Je],xe=kt+Q(J,Je),Oe+=q(J,G,K,xe,se);else if(Je=S(T),typeof Je=="function")for(T=Je.call(T),Je=0;!(J=T.next()).done;)J=J.value,xe=kt+Q(J,Je++),Oe+=q(J,G,K,xe,se);else if(xe==="object"){if(typeof T.then=="function")return q(Ee(T),G,K,J,se);throw G=String(T),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return Oe}function W(T,G,K){if(T==null)return T;var J=[],se=0;return q(T,J,"","",function(xe){return G.call(K,xe,se++)}),J}function ee(T){if(T._status===-1){var G=T._result;G=G(),G.then(function(K){(T._status===0||T._status===-1)&&(T._status=1,T._result=K)},function(K){(T._status===0||T._status===-1)&&(T._status=2,T._result=K)}),T._status===-1&&(T._status=0,T._result=G)}if(T._status===1)return T._result.default;throw T._result}var oe=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},ke={map:W,forEach:function(T,G,K){W(T,function(){G.apply(this,arguments)},K)},count:function(T){var G=0;return W(T,function(){G++}),G},toArray:function(T){return W(T,function(G){return G})||[]},only:function(T){if(!ye(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return he.Activity=p,he.Children=ke,he.Component=N,he.Fragment=a,he.Profiler=s,he.PureComponent=j,he.StrictMode=l,he.Suspense=v,he.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,he.__COMPILER_RUNTIME={__proto__:null,c:function(T){return U.H.useMemoCache(T)}},he.cache=function(T){return function(){return T.apply(null,arguments)}},he.cacheSignal=function(){return null},he.cloneElement=function(T,G,K){if(T==null)throw Error(Line truncated
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var y1;function p5(){return y1||(y1=1,(function(o){function n(q,W){var ee=q.length;q.push(W);e:for(;0<ee;){var oe=ee-1>>>1,ke=q[oe];if(0<s(ke,W))q[oe]=W,q[ee]=ke,ee=oe;else break e}}function a(q){return q.length===0?null:q[0]}function l(q){if(q.length===0)return null;var W=q[0],ee=q.pop();if(ee!==W){q[0]=ee;e:for(var oe=0,ke=q.length,T=ke>>>1;oe<T;){var G=2*(oe+1)-1,K=q[G],J=G+1,se=q[J];if(0>s(K,ee))J<ke&&0>s(se,K)?(q[oe]=se,q[J]=ee,oe=J):(q[oe]=K,q[G]=ee,oe=G);else if(J<ke&&0>s(se,ee))q[oe]=se,q[J]=ee,oe=J;else break e}}return W}function s(q,W){var ee=q.sortIndex-W.sortIndex;return ee!==0?ee:q.id-W.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;o.unstable_now=function(){return f.now()}}else{var d=Date,g=d.now();o.unstable_now=function(){return d.now()-g}}var v=[],h=[],b=1,p=null,x=3,S=!1,w=!1,B=!1,A=!1,N=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function L(q){for(var W=a(h);W!==null;){if(W.callback===null)l(h);else if(W.startTime<=q)l(h),W.sortIndex=W.expirationTime,n(v,W);else break;W=a(h)}}function Z(q){if(B=!1,L(q),!w)if(a(v)!==null)w=!0,H||(H=!0,ce());else{var W=a(h);W!==null&&Ee(Z,W.startTime-q)}}var H=!1,U=-1,ie=5,Be=-1;function be(){return A?!0:!(o.unstable_now()-Be<ie)}function ye(){if(A=!1,H){var q=o.unstable_now();Be=q;var W=!0;try{e:{w=!1,B&&(B=!1,D(U),U=-1),S=!0;var ee=x;try{t:{for(L(q),p=a(v);p!==null&&!(p.expirationTime>q&&be());){var oe=p.callback;if(typeof oe=="function"){p.callback=null,x=p.priorityLevel;var ke=oe(p.expirationTime<=q);if(q=o.unstable_now(),typeof ke=="function"){p.callback=ke,L(q),W=!0;break t}p===a(v)&&l(v),L(q)}else l(v);p=a(v)}if(p!==null)W=!0;else{var T=a(h);T!==null&&Ee(Z,T.startTime-q),W=!1}}break e}finally{p=null,x=ee,S=!1}W=void 0}}finally{W?ce():H=!1}}}var ce;if(typeof j=="function")ce=function(){j(ye)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,Q=pe.port2;pe.port1.onmessage=ye,ce=function(){Q.postMessage(null)}}else ce=function(){N(ye,0)};function Ee(q,W){U=N(function(){q(o.unstable_now())},W)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(q){q.callback=null},o.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ie=0<q?Math.floor(1e3/q):5},o.unstable_getCurrentPriorityLevel=function(){return x},o.unstable_next=function(q){switch(x){case 1:case 2:case 3:var W=3;break;default:W=x}var ee=x;x=W;try{return q()}finally{x=ee}},o.unstable_requestPaint=function(){A=!0},o.unstable_runWithPriority=function(q,W){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ee=x;x=q;try{return W()}finally{x=ee}},o.unstable_scheduleCallback=function(q,W,ee){var oe=o.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?oe+ee:oe):ee=oe,q){case 1:var ke=-1;break;case 2:ke=250;break;case 5:ke=1073741823;break;case 4:ke=1e4;break;default:ke=5e3}return ke=ee+ke,q={id:b++,callback:W,priorityLevel:q,startTime:ee,expirationTime:ke,sortIndex:-1},ee>oe?(q.sortIndex=ee,n(h,q),a(v)===null&&q===a(h)&&(B?(D(U),U=-1):B=!0,Ee(Z,ee-oe))):(q.sortIndex=ke,n(v,q),w||S||(w=!0,H||(H=!0,ce()))),q},o.unstable_shouldYield=be,o.unstable_wrapCallback=function(q){var W=x;return function(){var ee=x;x=W;try{return q.apply(this,arguments)}finally{x=ee}}}})(Gu)),Gu}var x1;function av(){return x1||(x1=1,Uu.exports=p5()),Uu.exports}var Vu={exports:{}},xt={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var S1;function b5(){if(S1)return xt;S1=1;var o=Df();function n(v){var h="https://react.dev/errors/"+v;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)h+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var l={d:{f:a,r:function(){throw Error(n(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},s=Symbol.for("react.portal");function f(v,h,b){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:p==null?null:""+p,children:v,containerInfo:h,implementation:b}}var d=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(v,h){if(v==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return xt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,xt.createPortal=function(v,h){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(n(299));return f(v,h,null,b)},xt.flushSync=function(v){var h=d.T,b=l.p;try{if(d.T=null,l.p=2,v)return v()}finally{d.T=h,l.p=b,l.d.f()}},xt.preconnect=function(v,h){typeof v=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,l.d.C(v,h))},xt.prefetchDNS=function(v){typeof v=="string"&&l.d.D(v)},xt.preinit=function(v,h){if(typeof v=="string"&&h&&typeof h.as=="string"){var b=h.as,p=g(b,h.crossOrigin),x=typeof h.integrity=="string"?h.integrity:void 0,S=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;b==="style"?l.d.S(v,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:x,fetchPriority:S}):b==="script"&&l.d.X(v,{crossOrigin:p,integrity:x,fetchPriority:S,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},xt.preinitModule=function(v,h){if(typeof v=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var b=g(h.as,h.crossOrigin);l.d.M(v,{crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&l.d.M(v)},xt.preload=function(v,h){if(typeof v=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var b=h.as,p=g(b,h.crossOrigin);l.d.L(v,b,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},xt.preloadModule=function(v,h){if(typeof v=="string")if(h){var b=g(h.as,h.crossOrigin);l.d.m(v,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else l.d.m(v)},xt.requestFormReset=function(v){l.d.r(v)},xt.unstable_batchedUpdates=function(v,h){return v(h)},xt.useFormState=function(v,h,b){return d.H.useFormState(v,h,b)},xt.useFormStatus=function(){return d.H.useHostTransitionStatus()},xt.version="19.2.5",xt}var w1;function iv(){if(w1)return Vu.exports;w1=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(n){console.error(n)}}return o(),Vu.exports=b5(),Vu.exports}/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var B1;function y5(){if(B1)return $a;B1=1;var o=av(),n=Df(),a=iv();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(f(e)!==e)throw Error(l(188))}function h(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(l(188));return t!==e?null:e}for(var r=e,i=t;;){var c=r.return;if(c===null)break;var u=c.alternate;if(u===null){if(i=c.return,i!==null){r=i;continue}break}if(c.child===u.child){for(u=c.child;u;){if(u===r)return v(c),e;if(u===i)return v(c),t;u=u.sibling}throw Error(l(188))}if(r.return!==i.return)r=c,i=u;else{for(var m=!1,y=c.child;y;){if(y===r){m=!0,r=c,i=u;break}if(y===i){m=!0,i=c,r=u;break}y=y.sibling}if(!m){for(y=u.child;y;){if(y===r){m=!0,r=u,i=c;break}if(y===i){m=!0,i=u,r=c;break}y=y.sibling}if(!m)throw Error(l(189))}}if(r.alternate!==i)throw Error(l(190))}if(r.tag!==3)throw Error(l(188));return r.stateNode.current===r?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,x=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),j=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),ie=Symbol.for("react.lazy"),Be=Symbol.for("react.activity"),be=Symbol.for("react.memo_cache_sentinel"),ye=Symbol.iterator;function ce(e){return e===null||typeof e!="object"?null:(e=ye&&e[ye]||e["@@iterator"],typeof e=="function"?e:null)}var pe=Symbol.for("react.client.reference");function Q(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===pe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case B:return"Fragment";case N:return"Profiler";case A:return"StrictMode";case Z:return"Suspense";case H:return"SuspenseList";case Be:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case j:return e.displayName||"Context";case D:return(e._context.displayName||"Context")+".Consumer";case L:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case U:return t=e.displayName||null,t!==null?t:Q(e.type)||"Memo";case ie:t=e._payload,e=e._init;try{return Q(e(t))}catch{}}return null}var Ee=Array.isArray,q=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},oe=[],ke=-1;function T(e){return{current:e}}function G(e){0>ke||(e.current=oe[ke],oe[ke]=null,ke--)}function K(e,t){ke++,oe[ke]=e.current,e.current=t}var J=T(null),se=T(null),xe=T(null),Oe=T(null);function kt(e,t){switch(K(xe,t),K(se,e),K(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Fh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Fh(t),e=Hh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(J),K(J,e)}function Je(){G(J),G(se),G(xe)}function aa(e){e.memoizedState!==null&&K(Oe,e);var t=J.current,r=Hh(t,e.type);t!==r&&(K(se,e),K(J,r))}function pi(e){se.current===e&&(G(J),G(se)),Oe.current===e&&(G(Oe),Ya._currentValue=ee)}var Sc,hd;function Cr(e){if(Sc===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Sc=t&&t[1]||"",hd=-1<r.stack.indexOf(`
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Sc+e+hd}var wc=!1;function Bc(e,t){if(!e||wc)return"";wc=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var I=function(){throw Error()};if(Object.defineProperty(I.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(I,[])}catch(F){var O=F}Reflect.construct(e,[],I)}else{try{I.call()}catch(F){O=F}e.call(I.prototype)}}else{try{throw Error()}catch(F){O=F}(I=e())&&typeof I.catch=="function"&&I.catch(function(){})}}catch(F){if(F&&O&&typeof F.stack=="string")return[F.stack,O.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=i.DetermineComponentFrameRoot(),m=u[0],y=u[1];if(m&&y){var k=m.split(`
`),R=y.split(`
`);for(c=i=0;i<k.length&&!k[i].includes("DetermineComponentFrameRoot");)i++;for(;c<R.length&&!R[c].includes("DetermineComponentFrameRoot");)c++;if(i===k.length||c===R.length)for(i=k.length-1,c=R.length-1;1<=i&&0<=c&&k[i]!==R[c];)c--;for(;1<=i&&0<=c;i--,c--)if(k[i]!==R[c]){if(i!==1||c!==1)do if(i--,c--,0>c||k[i]!==R[c]){var V=`
`+k[i].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=i&&0<=c);break}}}finally{wc=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?Cr(r):""}function Gb(e,t){switch(e.tag){case 26:case 27:case 5:return Cr(e.type);case 16:return Cr("Lazy");case 13:return e.child!==t&&t!==null?Cr("Suspense Fallback"):Cr("Suspense");case 19:return Cr("SuspenseList");case 0:case 15:return Bc(e.type,!1);case 11:return Bc(e.type.render,!1);case 1:return Bc(e.type,!0);case 31:return Cr("Activity");default:return""}}function md(e){try{var t="",r=null;do t+=Gb(e,r),r=e,e=e.return;while(e);return t}catch(i){return`
Error generating stack: `+i.message+`
`+i.stack}}var kc=Object.prototype.hasOwnProperty,_c=o.unstable_scheduleCallback,zc=o.unstable_cancelCallback,Vb=o.unstable_shouldYield,Zb=o.unstable_requestPaint,Ft=o.unstable_now,Xb=o.unstable_getCurrentPriorityLevel,vd=o.unstable_ImmediatePriority,pd=o.unstable_UserBlockingPriority,bi=o.unstable_NormalPriority,Ib=o.unstable_LowPriority,bd=o.unstable_IdlePriority,Yb=o.log,Wb=o.unstable_setDisableYieldValue,ia=null,Ht=null;function er(e){if(typeof Yb=="function"&&Wb(e),Ht&&typeof Ht.setStrictMode=="function")try{Ht.setStrictMode(ia,e)}catch{}}var Lt=Math.clz32?Math.clz32:Jb,Kb=Math.log,Qb=Math.LN2;function Jb(e){return e>>>=0,e===0?32:31-(Kb(e)/Qb|0)|0}var yi=256,xi=262144,Si=4194304;function Rr(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function wi(e,t,r){var i=e.pendingLanes;if(i===0)return 0;var c=0,u=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var y=i&134217727;return y!==0?(i=y&~u,i!==0?c=Rr(i):(m&=y,m!==0?c=Rr(m):r||(r=y&~e,r!==0&&(c=Rr(r))))):(y=i&~u,y!==0?c=Rr(y):m!==0?c=Rr(m):r||(r=i&~e,r!==0&&(c=Rr(r)))),c===0?0:t!==0&&t!==c&&(t&u)===0&&(u=c&-c,r=t&-t,u>=r||u===32&&(r&4194048)!==0)?t:c}function la(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function $b(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function yd(){var e=Si;return Si<<=1,(Si&62914560)===0&&(Si=4194304),e}function Tc(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ca(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ey(e,t,r,i,c,u){var m=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var y=e.entanglements,k=e.expirationTimes,R=e.hiddenUpdates;for(r=m&~r;0<r;){var V=31-Lt(r),I=1<<V;y[V]=0,k[V]=-1;var O=R[V];if(O!==null)for(R[V]=null,V=0;V<O.length;V++){var F=O[V];F!==null&&(F.lane&=-536870913)}r&=~I}i!==0&&xd(e,i,0),u!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=u&~(m&~t))}function xd(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Lt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|r&261930}function Sd(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var i=31-Lt(r),c=1<<i;c&t|e[i]&t&&(e[i]|=t),r&=~c}}function wd(e,t){var r=t&-t;return r=(r&42)!==0?1:Nc(r),(r&(e.suspendedLanes|t))!==0?0:r}function Nc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ec(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Bd(){var e=W.p;return e!==0?e:(e=window.event,e===void 0?32:c1(e.type))}function kd(e,t){var r=W.p;try{return W.p=e,t()}finally{W.p=r}}var tr=Math.random().toString(36).slice(2),mt="__reactFiber$"+tr,Nt="__reactProps$"+tr,nn="__reactContainer$"+tr,Ac="__reactEvents$"+tr,ty="__reactListeners$"+tr,oy="__reactHandles$"+tr,_d="__reactResources$"+tr,sa="__reactMarker$"+tr;function jc(e){delete e[mt],delete e[Nt],delete e[Ac],delete e[ty],delete e[oy]}function an(e){var t=e[mt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[nn]||r[mt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Xh(e);e!==null;){if(r=e[mt])return r;e=Xh(e)}return t}e=r,r=e.parentNode}return null}function ln(e){if(e=e[mt]||e[nn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ua(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function cn(e){var t=e[_d];return t||(t=e[_d]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function dt(e){e[sa]=!0}var zd=new Set,Td={};function Dr(e,t){sn(e,t),sn(e+"Capture",t)}function sn(e,t){for(Td[e]=t,e=0;e<t.length;e++)zd.add(t[e])}var ry=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u21 Line truncated
`).replace(D2,"")}function Mh(e,t){return t=Oh(t),Oh(e)===t}function He(e,t,r,i,c,u){switch(r){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||fn(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&fn(e,""+i);break;case"className":ki(e,"class",i);break;case"tabIndex":ki(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":ki(e,r,i);break;case"style":Md(e,i,u);break;case"data":if(t!=="object"){ki(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(r);break}i=zi(""+i),e.setAttribute(r,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(r==="formAction"?(t!=="input"&&He(e,t,"name",c.name,c,null),He(e,t,"formEncType",c.formEncType,c,null),He(e,t,"formMethod",c.formMethod,c,null),He(e,t,"formTarget",c.formTarget,c,null)):(He(e,t,"encType",c.encType,c,null),He(e,t,"method",c.method,c,null),He(e,t,"target",c.target,c,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(r);break}i=zi(""+i),e.setAttribute(r,i);break;case"onClick":i!=null&&(e.onclick=Co);break;case"onScroll":i!=null&&we("scroll",e);break;case"onScrollEnd":i!=null&&we("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(l(61));if(r=i.__html,r!=null){if(c.children!=null)throw Error(l(60));e.innerHTML=r}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}r=zi(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(r,""+i):e.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":i===!0?e.setAttribute(r,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(r,i):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(r,i):e.removeAttribute(r);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(r):e.setAttribute(r,i);break;case"popover":we("beforetoggle",e),we("toggle",e),Bi(e,"popover",i);break;case"xlinkActuate":jo(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":jo(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":jo(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":jo(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":jo(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":jo(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":jo(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":jo(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":jo(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Bi(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=cy.get(r)||r,Bi(e,r,i))}}function Su(e,t,r,i,c,u){switch(r){case"style":Md(e,i,u);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(l(61));if(r=i.__html,r!=null){if(c.children!=null)throw Error(l(60));e.innerHTML=r}}break;case"children":typeof i=="string"?fn(e,i):(typeof i=="number"||typeof i=="bigint")&&fn(e,""+i);break;case"onScroll":i!=null&&we("scroll",e);break;case"onScrollEnd":i!=null&&we("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Co);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne Line truncated
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*//*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/const Tr="data-tabster",GS="data-tabster-dummy",tp=`:is(${["a[href]","button","input","select","textarea","*[tabindex]","*[contenteditable]","details > summary","audio[controls]","video[controls]"].join(", ")}):not(:disabled)`,Zn={EscapeGroupper:1,Restorer:2,Deloser:3},$n={Source:0,Target:1},VS={Outside:2};/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/function so(o,n){var a;return(a=o.storageEntry(n))===null||a===void 0?void 0:a.tabster}function op(o,n,a){var l,s,f;const d=a||o._noop?void 0:n.getAttribute(Tr);let g=o.storageEntry(n),v;if(d)if(d!==((l=g==null?void 0:g.attr)===null||l===void 0?void 0:l.string))try{const x=JSON.parse(d);if(typeof x!="object")throw new Error(`Value is not a JSON object, got '${d}'.`);v={string:d,object:x}}catch{}else return;else if(!g)return;g||(g=o.storageEntry(n,!0)),g.tabster||(g.tabster={});const h=g.tabster||{},b=((s=g.attr)===null||s===void 0?void 0:s.object)||{},p=(v==null?void 0:v.object)||{};for(const x of Object.keys(b))if(!p[x]){if(x==="root"){const S=h[x];S&&o.root.onRoot(S,!0)}switch(x){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const S=h[x];S&&(S.dispose(),delete h[x]);break;case"observed":delete h[x],o.observedElement&&o.observedElement.onObservedElementUpdate(n);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete h[x];break}}for(const x of Object.keys(p)){const S=p.sys;switch(x){case"deloser":h.deloser?h.deloser.setProps(p.deloser):o.deloser&&(h.deloser=o.deloser.createDeloser(n,p.deloser));break;case"root":h.root?h.root.setProps(p.root):h.root=o.root.createRoot(n,p.root,S),o.root.onRoot(h.root);break;case"modalizer":{let w;const B=o.modalizer;if(h.modalizer){const A=p.modalizer,N=A.id;N&&((f=b==null?void 0:b.modalizer)===null||f===void 0?void 0:f.id)!==N?(h.modalizer.dispose(),w=A):h.modalizer.setProps(A)}else B&&(w=p.modalizer);B&&w&&(h.modalizer=B.createModalizer(n,w,S))}break;case"restorer":h.restorer?h.restorer.setProps(p.restorer):o.restorer&&p.restorer&&(h.restorer=o.restorer.createRestorer(n,p.restorer));break;case"focusable":h.focusable=p.focusable;break;case"groupper":h.groupper?h.groupper.setProps(p.groupper):o.groupper&&(h.groupper=o.groupper.createGroupper(n,p.groupper,S));break;case"mover":h.mover?h.mover.setProps(p.mover):o.mover&&(h.mover=o.mover.createMover(n,p.mover,S));break;case"observed":o.observedElement&&(h.observed=p.observed,o.observedElement.onObservedElementUpdate(n));break;case"uncontrolled":h.uncontrolled=p.uncontrolled;break;case"outline":o.outline&&(h.outline=p.outline);break;case"sys":h.sys=p.sys;break;default:console.error(`Unknown key '${x}' in data-tabster attribute value.`)}}v?g.attr=v:(Object.keys(h).length===0&&(delete g.tabster,delete g.attr),o.storageEntry(n,!1))}/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/const ZS="tabster:focusin",XS="tabster:focusout",IS="tabster:movefocus",YS="tabster:modalizer:active",WS="tabster:modalizer:inactive",kf="tabster:restorer:restore-focus",KS="tabster:root:focus",QS="tabster:root:blur",JS=typeof CustomEvent<"u"?CustomEvent:function(){};class Ar extends JS{constructor(n,a){super(n,{bubbles:!0,cancelable:!0,composed:!0,detail:a}),this.details=a}}class $S extends Ar{constructor(n){super(ZS,n)}}class ew extends Ar{constructor(n){super(XS,n)}}class ni extends Ar{constructor(n){super(IS,n)}}class tw extends Ar{constructor(n){super(YS,n)}}class ow extends Ar{constructor(n){super(WS,n)}}class I1 extends Ar{constructor(){super(kf)}}class rw extends Ar{constructor(n){super(KS,n)}}class nw extends Ar{constructor(n){super(QS,n)}}/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/const aw=o=>new MutationObserver(o),iw=(o,n,a,l)=>o.createTreeWalker(n,a,l),lw=o=>o?o.parentNode:null,cw=o=>o?o.parentElement:null,sw=(o,n)=>!!(n&&(o!=null&&o.contains(n))),uw=o=>o.activeElement,fw=(o,n)=>o.querySelector(n),dw=(o,n)=>Array.prototype.slice.call(o.querySelectorAll(n),0),gw=(o,n)=>o.getElementById(n),hw=o=>(o==null?void 0:o.firstChild)||null,mw=o=>(o==null?void 0:o.lastChild)||null,vw=o=>(o==null?void 0:o.nextSibling)||null,pw=o=>(o==null?void 0:o.previousSibling)||null,bw=o=>(o==null?void 0:o.firstElementChild)||null,yw=o=>(o==null?void 0:o.lastElementChild)||null,xw=o=>(o==null?void 0:o.nextElementSibling)||null,Sw=o=>(o==null?void 0:o.previousElementSibling)||null,ww=(o,n)=>o.appendChild(n),Bw=(o,n,a)=>o.insertBefore(n,a),kw=o=>{var n;return((n=o.ownerDocument)===null||n===void 0?void 0:n.getSelection())||null},_w=(o,n)=>o.ownerDocument.getElementsByName(n),te={createMutationObserver:aw,createTreeWalker:iw,getParentNode:lw,getParentElement:cw,nodeContains:sw,getActiveElement:uw,querySelector:fw,querySelectorAll:dw,getElementById:gw,getFirstChild:hw,getLastChild:mw,getNextSibling:vw,getPreviousSibling:pw,getFirstElementChild:bw,getLastElementChild:yw,getNextElementSibling:xw,getPreviousElementSibling:Sw,appendChild:ww,insertBefore:Bw,getSelection:kw,getElementsByName:_w};function zw(o){for(const n of Object.keys(o))te[n]=o[n]}/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/let _f,Tw=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),_f=!1}catch{_f=!0}const of=100;function rn(o){const n=o();let a=n.__tabsterInstanceContext;return a||(a={elementByUId:{},basics:{Promise:n.Promise||void 0,WeakRef:n.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},n.__tabsterInstanceContext=a),a}function Nw(o){const n=o.__tabsterInstanceContext;n&&(n.elementByUId={},delete n.WeakRef,n.containerBoundingRectCache={},n.containerBoundingRectCacheTimer&&o.clearTimeout(n.containerBoundingRectCacheTimer),n.fakeWeakRefsTimer&&o.clearTimeout(n.fakeWeakRefsTimer),n.fakeWeakRefs=[],delete o.__tabsterInstanceContext)}function Ew(o){const n=o.__tabsterInstanceContext;return new((n==null?void 0:n.basics.WeakMap)||WeakMap)}function Aw(o){return!!o.querySelector(tp)}class rp{constructor(n){this._target=n}deref(){return this._target}static cleanup(n,a){return n._target?a||!Yf(n._target.ownerDocument,n._target)?(delete n._target,!0):!1:!0}}class bo{constructor(n,a,l){const s=rn(n);let f;s.WeakRef?f=new s.WeakRef(a):(f=new rp(a),s.fakeWeakRefs.push(f)),this._ref=f,this._data=l}get(){const n=this._ref;let a;return n&&(a=n.deref(),a||delete this._ref),a}getData(){return this._data}}function np(o,n){const a=rn(o);a.fakeWeakRefs=a.fakeWeakRefs.filter(l=>!rp.cleanup(l,n))}function ap(o){const n=rn(o);n.fakeWeakRefsStarted||(n.fakeWeakRefsStarted=!0,n.WeakRef=Mw(n)),n.fakeWeakRefsTimer||(n.fakeWeakRefsTimer=o().setTimeout(()=>{n.fakeWeakRefsTimer=void 0,np(o),ap(o)},120*1e3))}function jw(o){const n=rn(o);n.fakeWeakRefsStarted=!1,n.fakeWeakRefsTimer&&(o().clearTimeout(n.fakeWeakRefsTimer),n.fakeWeakRefsTimer=void 0,n.fakeWeakRefs=[])}function ip(o,n,a){if(n.nodeType!==Node.ELEMENT_NODE)return;const l=_f?a:{acceptNode:a};return te.createTreeWalker(o,n,NodeFilter.SHOW_ELEMENT,l,!1)}function Cw(o){o.__shouldIgnoreFocus=!0}function lp(o){return!!o.__shouldIgnoreFocus}function Rw(o){const n=new Uint32Array(4);if(o.crypto&&o.crypto.getRandomValues)o.crypto.getRandomValues(n);else if(o.msCrypto&&o.msCrypto.getRandomValues)o.msCrypto.getRandomValues(n);else for(let l=0;l<n.length;l++)n[l]=4294967295*Math.random();const a=[];for(let l=0;l<n.length;l++)a.push(n[l].toString(36));return a.push("|"),a.push((++Tw).toString(36)),a.push("|"),a.push(Date.now().toString(36)),a.join("")}function Dw(o,n){const a=rn(o);let l=n.__tabsterElementUID;return l||(l=n.__tabsterElementUID=Rw(o())),!a.elementByUId[l]&&Yf(n.ownerDocument,n)&&(a.elementByUId[l]=new bo(o,n)),l}function Y1(o,n){const a=rn(o);for(const l of Object.keys(a.elementByUId)){const s=a.elementByUId[l],f=s&&s.get();f&&n&&!te.nodeContains(n,f)||delete a.elementByUId[l]}}function Yf(o,n){return te.nodeContains(o==null?void 0:o.body,n)}function Ow(o,n){const a=o.matches||o.matchesSelector||o.msMatchesSelector||o.webkitMatchesSelector;return a&&a.call(o,n)}function Mw(o){return o.basics.WeakRef}let qw=0;class Wf{constructor(n,a,l){const s=n.getWindow;this._tabster=n,this._element=new bo(s,a),this._props={...l},this.id="i"+ ++qw}getElement(){return this._element.get()}getProps(){return this._props}setProps(n){this._props={...n}}}class $l{constructor(n,a,l,s,f){var d;this._focusIn=b=>{if(this._fixedTarget){const x=this._fixedTarget.get();x&&en(x);return}const p=this.input;if(this.onFocusIn&&p){const x=b.relatedTarget;this.onFocusIn(this,this._isBackward(!0,p,x),x)}},this._focusOut=b=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const p=this.input;if(this.onFocusOut&&p){const x=b.relatedTarget;this.onFocusOut(this,this._isBackward(!1,p,x),x)}};const g=n(),v=g.document.createElement("i");v.tabIndex=0,v.setAttribute("role","none"),v.setAttribute(GS,""),v.setAttribute("aria-hidden","true");const h=v.style;h.position="fixed",h.width=h.height="1px",h.opacity="0.001",h.zIndex="-1",h.setProperty("content-visibility","hidden"),Cw(v),this.input=v,this.isFirst=l.isFirst,this.isOutside=a,this._isPhantom=(d=l.isPhantom)!==null&&d!==void 0?d:!1,this._fixedTarget=f,v.addEventListener("focusin",this._focusIn),v.addEventListener("focusout",this._focusOut),v.__tabsterDummyContainer=s,this._isPhantom&&(this._disposeTimer=g.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(g.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var n;this._clearDisposeTimeout&&this._clearDisposeTimeout();const a=this.input;a&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,a.removeEventListener("focusin",this._focusIn),a.removeEventListener("focusout",this._focusOut),delete a.__tabsterDummyContainer,(n=te.getParentNode(a))===null||n===void 0||n.removeChild(a))}setTopLeft(n,a){var l;const s=(l=this.input)===null||l===void 0?void 0:l.style;s&&(s.top=`${n}px`,s.left=`${a}px`)}_isBackward(n,a,l){return n&&!l?!this.isFirst:!!(l&&a.compareDocumentPosition(l)&Node.DOCUMENT_POSITILine truncated
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/function up(o,n){return JSON.stringify(o)}function Uw(o,n){for(const a of Object.keys(n)){const l=n[a];l?o[a]=l:delete o[a]}}function Gw(o,n,a){let l;{const s=o.getAttribute(Tr);if(s)try{l=JSON.parse(s)}catch{}}l||(l={}),Uw(l,n),Object.keys(l).length>0?o.setAttribute(Tr,up(l)):o.removeAttribute(Tr)}class W1 extends ec{constructor(n,a,l,s){super(n,a,cp.Root,s,void 0,!0),this._onDummyInputFocus=f=>{var d;if(f.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const g=this._element.get();if(g){this._setFocused(!0);const v=this._tabster.focusedElement.getFirstOrLastTabbable(f.isFirst,{container:g,ignoreAccessibility:!0});if(v){en(v);return}}(d=f.input)===null||d===void 0||d.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=n,this._setFocused=l}}class Vw extends Wf{constructor(n,a,l,s,f){super(n,a,s),this._isFocused=!1,this._setFocused=h=>{var b;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===h)return;const p=this._element.get();p&&(h?(this._isFocused=!0,(b=this._dummyManager)===null||b===void 0||b.setTabbable(!1),p.dispatchEvent(new rw({element:p}))):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var x;delete this._setFocusedTimer,this._isFocused=!1,(x=this._dummyManager)===null||x===void 0||x.setTabbable(!0),p.dispatchEvent(new nw({element:p}))},0))},this._onFocusIn=h=>{const b=this._tabster.getParent,p=this._element.get();let x=h.composedPath()[0];do{if(x===p){this._setFocused(!0);return}x=x&&b(x)}while(x)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=l;const d=n.getWindow;this.uid=Dw(d,a),this._sys=f,(n.controlTab||n.rootDummyInputs)&&this.addDummyInputs();const v=d().document;v.addEventListener(yo,this._onFocusIn),v.addEventListener(si,this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new W1(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var n;this._onDispose(this);const a=this._tabster.getWindow(),l=a.document;l.removeEventListener(yo,this._onFocusIn),l.removeEventListener(si,this._onFocusOut),this._setFocusedTimer&&(a.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),(n=this._dummyManager)===null||n===void 0||n.dispose(),this._remove()}moveOutWithDefaultAction(n,a){const l=this._dummyManager;if(l)l.moveOutWithDefaultAction(n,a);else{const s=this.getElement();s&&W1.moveWithPhantomDummy(this._tabster,s,!0,n,a)}}_add(){}_remove(){}}class it{constructor(n,a){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var l;const s=this._win().document,f=s.body;if(f){this._autoRootUnwait(s);const d=this._autoRoot;if(d)return Gw(f,{root:d}),op(this._tabster,f),(l=so(this._tabster,f))===null||l===void 0?void 0:l.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,s.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=l=>{delete this._roots[l.id]},this._tabster=n,this._win=n.getWindow,this._autoRoot=a,n.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(n){n.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const n=this._win();this._autoRootUnwait(n.document),delete this._autoRoot,Object.keys(this._roots).forEach(a=>{this._roots[a]&&(this._roots[a].dispose(),delete this._roots[a])}),this.rootById={}}createRoot(n,a,l){const s=new Vw(this._tabster,n,this._onRootDispose,a,l);return this._roots[s.id]=s,this._forceDummy&&s.addDummyInputs(),s}addDummyInputs(){this._forceDummy=!0;const n=this._roots;for(const a of Object.keys(n))n[a].addDummyInputs()}static getRootByUId(n,a){const l=n().__tabsterInstance;return l&&l.root.rootById[a]}static getTabsterContext(n,a,l={}){var s,f,d,g;if(!a.ownerDocument)return;const{checkRtl:v,referenceElement:h}=l,b=n.getParent;n.drainInitQueue();let p,x,S,w,B=!1,A,N,D,j,L=h||a;const Z={};for(;L&&(!p||v);){const U=so(n,L);if(v&&D===void 0){const ce=L.dir;ce&&(D=ce.toLowerCase()==="rtl")}if(!U){L=b(L);continue}const ie=L.tagName;(U.uncontrolled||ie==="IFRAME"||ie==="WEBVIEW")&&n.focusable.isVisible(L)&&(j=L),!w&&(!((s=U.focusable)===null||s===void 0)&&s.excludeFromMover)&&!S&&(B=!0);const Be=U.modalizer,be=U.groupper,ye=U.mover;!x&&Be&&(x=Be),!S&&be&&(!x||Be)&&(x?(!be.isActive()&&be.getProps().tabbability&&x.userId!==((f=n.modalizer)===null||f===void 0?void 0:f.activeId)&&(x=void 0,S=be),N=be):S=be),!w&&ye&&(!x||Be)&&(!be||L!==a)&&L.contains(a)&&(w=ye,A=!!S&&S!==be),U.root&&(p=U.root),!((d=U.focusable)===null||d===void 0)&&d.ignoreKeydown&&Object.assign(Z,U.focusable.ignoreKeydown),L=b(L)}if(!p){const U=n.root;U._autoRoot&&!((g=a.ownerDocument)===null||g===void 0)&&g.body&&(p=U._autoRootCreate())}return S&&!w&&(A=!0),p?{root:p,modalizer:x,groupper:S,mover:w,groupperBeforeMover:A,modalizerInGroupper:N,rtl:v?!!D:void 0,uncontrolled:j,excludedFromMover:B,ignoreKeydown:U=>!!Z[U.key]}:void 0Line truncated
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/class fp{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(n){const a=this._callbacks;a.indexOf(n)<0&&a.push(n)}subscribeFirst(n){const a=this._callbacks,l=a.indexOf(n);l>=0&&a.splice(l,1),a.unshift(n)}unsubscribe(n){const a=this._callbacks.indexOf(n);a>=0&&this._callbacks.splice(a,1)}setVal(n,a){this._val!==n&&(this._val=n,this._callCallbacks(n,a))}getVal(){return this._val}trigger(n,a){this._callCallbacks(n,a)}_callCallbacks(n,a){this._callbacks.forEach(l=>l(n,a))}}/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/class Zw{constructor(n){this._tabster=n}dispose(){}getProps(n){const a=so(this._tabster,n);return a&&a.focusable||{}}isFocusable(n,a,l,s){return Ow(n,tp)&&(a||n.tabIndex!==-1)?(l||this.isVisible(n))&&(s||this.isAccessible(n)):!1}isVisible(n){if(!n.ownerDocument||n.nodeType!==Node.ELEMENT_NODE||Lw(n))return!1;const a=n.ownerDocument.body.getBoundingClientRect();return!(a.width===0&&a.height===0)}isAccessible(n){var a;for(let l=n;l;l=te.getParentElement(l)){const s=so(this._tabster,l);if(this._isHidden(l)||!((a=s==null?void 0:s.focusable)===null||a===void 0?void 0:a.ignoreAriaDisabled)&&this._isDisabled(l))return!1}return!0}_isDisabled(n){return n.hasAttribute("disabled")}_isHidden(n){var a;const l=n.getAttribute("aria-hidden");return!!(l&&l.toLowerCase()==="true"&&!(!((a=this._tabster.modalizer)===null||a===void 0)&&a.isAugmented(n)))}findFirst(n,a){return this.findElement({...n},a)}findLast(n,a){return this.findElement({isBackward:!0,...n},a)}findNext(n,a){return this.findElement({...n},a)}findPrev(n,a){return this.findElement({...n,isBackward:!0},a)}findDefault(n,a){return this.findElement({...n,acceptCondition:l=>this.isFocusable(l,n.includeProgrammaticallyFocusable)&&!!this.getProps(l).isDefault},a)||null}findAll(n){return this._findElements(!0,n)||[]}findElement(n,a){const l=this._findElements(!1,n,a);return l&&l[0]}_findElements(n,a,l){var s,f,d;const{container:g,currentElement:v=null,includeProgrammaticallyFocusable:h,useActiveModalizer:b,ignoreAccessibility:p,modalizerId:x,isBackward:S,onElement:w}=a;l||(l={});const B=[];let{acceptCondition:A}=a;const N=!!A;if(!g)return null;A||(A=Z=>this.isFocusable(Z,h,!1,p));const D={container:g,modalizerUserId:x===void 0&&b?(s=this._tabster.modalizer)===null||s===void 0?void 0:s.activeId:x||((d=(f=it.getTabsterContext(this._tabster,g))===null||f===void 0?void 0:f.modalizer)===null||d===void 0?void 0:d.userId),from:v||g,isBackward:S,isFindAll:n,acceptCondition:A,hasCustomCondition:N,includeProgrammaticallyFocusable:h,ignoreAccessibility:p,cachedGrouppers:{},cachedRadioGroups:{}},j=ip(g.ownerDocument,g,Z=>this._acceptElement(Z,D));if(!j)return null;const L=Z=>{var H,U;const ie=(H=D.foundElement)!==null&&H!==void 0?H:D.foundBackward;return ie&&B.push(ie),n?ie&&(D.found=!1,delete D.foundElement,delete D.foundBackward,delete D.fromCtx,D.from=ie,w&&!w(ie))?!1:!!(ie||Z):(ie&&l&&(l.uncontrolled=(U=it.getTabsterContext(this._tabster,ie))===null||U===void 0?void 0:U.uncontrolled),!!(Z&&!ie))};if(v||(l.outOfDOMOrder=!0),v&&te.nodeContains(g,v))j.currentNode=v;else if(S){const Z=sp(g);if(!Z)return null;if(this._acceptElement(Z,D)===NodeFilter.FILTER_ACCEPT&&!L(!0))return D.skippedFocusable&&(l.outOfDOMOrder=!0),B;j.currentNode=Z}do S?j.previousNode():j.nextNode();while(L());return D.skippedFocusable&&(l.outOfDOMOrder=!0),B.length?B:null}_acceptElement(n,a){var l,s,f;if(a.found)return NodeFilter.FILTER_ACCEPT;const d=a.foundBackward;if(d&&(n===d||!te.nodeContains(d,n)))return a.found=!0,a.foundElement=d,NodeFilter.FILTER_ACCEPT;const g=a.container;if(n===g)return NodeFilter.FILTER_SKIP;if(!te.nodeContains(g,n)||Kf(n)||te.nodeContains(a.rejectElementsFrom,n))return NodeFilter.FILTER_REJECT;const v=a.currentCtx=it.getTabsterContext(this._tabster,n);if(!v)return NodeFilter.FILTER_SKIP;if(lp(n))return this.isFocusable(n,void 0,!0,!0)&&(a.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!a.hasCustomCondition&&(n.tagName==="IFRAME"||n.tagName==="WEBVIEW"))return this.isVisible(n)&&((l=v.modalizer)===null||l===void 0?void 0:l.userId)===((s=this._tabster.modalizer)===null||s===void 0?void 0:s.activeId)?(a.found=!0,a.rejectElementsFrom=a.foundElement=n,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!a.ignoreAccessibility&&!this.isAccessible(n))return this.isFocusable(n,!1,!0,!0)&&(a.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let h,b=a.fromCtx;b||(b=a.fromCtx=it.getTabsterContext(this._tabster,a.from));const p=b==null?void 0:b.mover;let x=v.groupper,S=v.mover;if(h=(f=this._tabster.modalizer)===null||f===void 0?void 0:f.acceptElement(n,a),h!==void 0&&(a.skippedFocusable=!0),h===void 0&&(x||S||p)){const w=x==null?void 0:x.getElement(),B=p==null?void 0:p.getElement();let A=S==null?void 0:S.getElement();if(A&&te.nodeContains(B,A)&&te.nodeContains(g,B)&&(!w||!S||te.nodeContains(B,w))&&(S=p,A=B),w){if(w===g||!te.nodeContains(g,w))x=void 0;else if(!te.nodeContains(w,n))return NodeFilter.FILTER_REJECT}if(A){if(!te.nodeContains(g,A))S=void 0;else if(!te.nodeContains(A,n))return NodeFilter.FILTER_REJECT}x&&S&&(A&&w&&!te.nodeContains(w,A)?S=void 0:x=void 0),x&&(h=x.acceptElement(n,a)),S&&(h=S.acceptElement(n,a))}if(h===void 0&&(h=a.acceptCondition(n)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,h===NodeFilter.FILTER_SKIP&&this.isFocusable(n,!1,!0,!0)&&(a.skippedFocusable=!0)),h===NodeFilter.FILTER_ACCEPT&&!a.found){if(!a.isFindAll&&zf(n)&&!n.checked){const w=n.name;let B=a.cachedRadioGroups[w];if(B||(B=Pw(n),B&&(a.cachedRadioGroups[w]=B)),B!=null&&B.checked&&B.checked!==n)return NoLine truncated
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/const dp={Tab:"Tab",Escape:"Escape"};/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/function Xw(o,n){var a;const l=o.getParent;let s=n;do{const f=(a=so(o,s))===null||a===void 0?void 0:a.uncontrolled;if(f&&o.uncontrolled.isUncontrolledCompletely(s,!!f.completely))return s;s=l(s)}while(s)}const K1={[Zn.Restorer]:0,[Zn.Deloser]:1,[Zn.EscapeGroupper]:2};class ut extends fp{constructor(n,a){super(),this._init=()=>{const l=this._win(),s=l.document;s.addEventListener(yo,this._onFocusIn,!0),s.addEventListener(si,this._onFocusOut,!0),l.addEventListener("keydown",this._onKeyDown,!0);const f=te.getActiveElement(s);f&&f!==s.body&&this._setFocusedElement(f),this.subscribe(this._onChanged)},this._onFocusIn=l=>{const s=l.composedPath()[0];s&&this._setFocusedElement(s,l.detail.relatedTarget,l.detail.isFocusedProgrammatically)},this._onFocusOut=l=>{var s;this._setFocusedElement(void 0,(s=l.detail)===null||s===void 0?void 0:s.originalEvent.relatedTarget)},this._validateFocusedElement=l=>{},this._onKeyDown=l=>{if(l.key!==dp.Tab||l.ctrlKey)return;const s=this.getVal();if(!s||!s.ownerDocument||s.contentEditable==="true")return;const f=this._tabster,d=f.controlTab,g=it.getTabsterContext(f,s);if(!g||g.ignoreKeydown(l))return;const v=l.shiftKey,h=ut.findNextTabbable(f,g,void 0,s,void 0,v,!0),b=g.root.getElement();if(!b)return;const p=h==null?void 0:h.element,x=Xw(f,s);if(p){const S=h.uncontrolled;if(g.uncontrolled||te.nodeContains(S,s)){if(!h.outOfDOMOrder&&S===g.uncontrolled||x&&!te.nodeContains(x,p))return;ec.addPhantomDummyWithTarget(f,s,v,p);return}if(S&&f.focusable.isVisible(S)||p.tagName==="IFRAME"&&f.focusable.isVisible(p)){b.dispatchEvent(new ni({by:"root",owner:b,next:p,relatedEvent:l}))&&ec.moveWithPhantomDummy(f,S??p,!1,v,l);return}(d||h!=null&&h.outOfDOMOrder)&&b.dispatchEvent(new ni({by:"root",owner:b,next:p,relatedEvent:l}))&&(l.preventDefault(),l.stopImmediatePropagation(),en(p))}else!x&&b.dispatchEvent(new ni({by:"root",owner:b,next:null,relatedEvent:l}))&&g.root.moveOutWithDefaultAction(v,l)},this._onChanged=(l,s)=>{var f,d;if(l)l.dispatchEvent(new $S(s));else{const g=(f=this._lastVal)===null||f===void 0?void 0:f.get();if(g){const v={...s},h=it.getTabsterContext(this._tabster,g),b=(d=h==null?void 0:h.modalizer)===null||d===void 0?void 0:d.userId;b&&(v.modalizerId=b),g.dispatchEvent(new ew(v))}}},this._tabster=n,this._win=a,n.queueInit(this._init)}dispose(){super.dispose();const n=this._win(),a=n.document;a.removeEventListener(yo,this._onFocusIn,!0),a.removeEventListener(si,this._onFocusOut,!0),n.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged);const l=this._asyncFocus;l&&(n.clearTimeout(l.timeout),delete this._asyncFocus),delete ut._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(n,a){var l,s;let f=ut._lastResetElement,d=f&&f.get();d&&te.nodeContains(a,d)&&delete ut._lastResetElement,d=(s=(l=n._nextVal)===null||l===void 0?void 0:l.element)===null||s===void 0?void 0:s.get(),d&&te.nodeContains(a,d)&&delete n._nextVal,f=n._lastVal,d=f&&f.get(),d&&te.nodeContains(a,d)&&delete n._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var n;let a=(n=this._lastVal)===null||n===void 0?void 0:n.get();return(!a||a&&!Yf(a.ownerDocument,a))&&(this._lastVal=a=void 0),a}focus(n,a,l,s){return this._tabster.focusable.isFocusable(n,a,!1,l)?(n.focus({preventScroll:s}),!0):!1}focusDefault(n){const a=this._tabster.focusable.findDefault({container:n});return a?(this._tabster.focusedElement.focus(a),!0):!1}getFirstOrLastTabbable(n,a){var l;const{container:s,ignoreAccessibility:f}=a;let d;if(s){const g=it.getTabsterContext(this._tabster,s);g&&(d=(l=ut.findNextTabbable(this._tabster,g,s,void 0,void 0,!n,f))===null||l===void 0?void 0:l.element)}return d&&!te.nodeContains(s,d)&&(d=void 0),d||void 0}_focusFirstOrLast(n,a){const l=this.getFirstOrLastTabbable(n,a);return l?(this.focus(l,!1,!0),!0):!1}focusFirst(n){return this._focusFirstOrLast(!0,n)}focusLast(n){return this._focusFirstOrLast(!1,n)}resetFocus(n){if(!this._tabster.focusable.isVisible(n))return!1;if(this._tabster.focusable.isFocusable(n,!0,!0,!0))this.focus(n);else{const a=n.getAttribute("tabindex"),l=n.getAttribute("aria-hidden");n.tabIndex=-1,n.setAttribute("aria-hidden","true"),ut._lastResetElement=new bo(this._win,n),this.focus(n,!0,!0),this._setOrRemoveAttribute(n,"tabindex",a),this._setOrRemoveAttribute(n,"aria-hidden",l)}return!0}requestAsyncFocus(n,a,l){const s=this._tabster.getWindow(),f=this._asyncFocus;if(f){if(K1[n]>K1[f.source])return;s.clearTimeout(f.timeout)}this._asyncFocus={source:n,callback:a,timeout:s.setTimeout(()=>{this._asyncFocus=void 0,a()},l)}}cancelAsyncFocus(n){const a=this._asyncFocus;(a==null?void 0:a.source)===n&&(this._tabster.getWindow().clearTimeout(a.timeout),this._asyncFocus=void 0)}_setOrRemoveAttribute(n,a,l){l===null?n.removeAttribute(a):n.setAttribute(a,l)}_setFocusedElement(n,a,l){var s,f;if(this._tabster._noop)return;const d={relatedTarget:a};if(n){const v=(s=ut._lastResetElement)===null||s===void 0?void 0:s.get();if(ut._lastResetELine truncated
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/class Iw extends fp{constructor(n){super(),this._onChange=a=>{this.setVal(a,void 0)},this._keyborg=Xf(n()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),If(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(n){var a;(a=this._keyborg)===null||a===void 0||a.setVal(n)}isNavigatingWithKeyboard(){var n;return!!(!((n=this._keyborg)===null||n===void 0)&&n.isNavigatingWithKeyboard())}}/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/let Yw=0;const nf="aria-hidden";class Ww extends ec{constructor(n,a,l){super(a,n,cp.Modalizer,l),this._setHandlers((s,f)=>{var d,g;const v=n.get(),h=v&&((d=it.getRoot(a,v))===null||d===void 0?void 0:d.getElement()),b=s.input;let p;if(h&&b){const x=Kf(b),S=it.getTabsterContext(a,x||b);S&&(p=(g=ut.findNextTabbable(a,S,h,b,void 0,f,!0))===null||g===void 0?void 0:g.element),p&&en(p)}})}}class Kw extends Wf{constructor(n,a,l,s,f,d){super(n,a,s),this._wasFocused=0,this.userId=s.id,this._onDispose=l,this._activeElements=d,n.controlTab||(this.dummyManager=new Ww(this._element,n,f))}makeActive(n){if(this._isActive!==n){this._isActive=n;const a=this.getElement();if(a){const l=this._activeElements,s=l.map(f=>f.get()).indexOf(a);n?s<0&&l.push(new bo(this._tabster.getWindow,a)):s>=0&&l.splice(s,1)}this._dispatchEvent(n)}}focused(n){return n||(this._wasFocused=++Yw),this._wasFocused}setProps(n){n.id&&(this.userId=n.id),this._props={...n}}dispose(){var n;this.makeActive(!1),this._onDispose(this),(n=this.dummyManager)===null||n===void 0||n.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(n){return te.nodeContains(this.getElement(),n)}findNextTabbable(n,a,l,s){var f,d;if(!this.getElement())return null;const v=this._tabster;let h=null,b=!1,p;const x=n&&((f=it.getRoot(v,n))===null||f===void 0?void 0:f.getElement());if(x){const S={container:x,currentElement:n,referenceElement:a,ignoreAccessibility:s,useActiveModalizer:!0},w={};h=v.focusable[l?"findPrev":"findNext"](S,w),!h&&this._props.isTrapped&&(!((d=v.modalizer)===null||d===void 0)&&d.activeId)?(h=v.focusable[l?"findLast":"findFirst"]({container:x,ignoreAccessibility:s,useActiveModalizer:!0},w),h===null&&(h=n),b=!0):b=!!w.outOfDOMOrder,p=w.uncontrolled}return{element:h,uncontrolled:p,outOfDOMOrder:b}}_dispatchEvent(n,a){const l=this.getElement();let s=!1;if(l){const f=a?this._activeElements.map(d=>d.get()):[l];for(const d of f)if(d){const g={id:this.userId,element:l},v=n?new tw(g):new ow(g);d.dispatchEvent(v),v.defaultPrevented&&(s=!0)}}return s}_remove(){}}class Qw{constructor(n,a,l){this._onModalizerDispose=f=>{const d=f.id,g=f.userId,v=this._parts[g];if(delete this._modalizers[d],v&&(delete v[d],Object.keys(v).length===0)){delete this._parts[g];const h=this._activationHistory,b=[];let p;for(let x=h.length;x--;){const S=h[x];S!==g&&S!==p&&(p=S,(S||b.length>0)&&b.unshift(S))}if(this._activationHistory=b,this.activeId===g){const x=b[0],S=x?Object.values(this._parts[x])[0]:void 0;this.setActive(S)}}},this._onKeyDown=f=>{var d;if(f.key!==dp.Escape)return;const g=this._tabster,v=g.focusedElement.getFocusedElement();if(v){const h=it.getTabsterContext(g,v),b=h==null?void 0:h.modalizer;if(h&&!h.groupper&&(b!=null&&b.isActive())&&!h.ignoreKeydown(f)){const p=b.userId;if(p){const x=this._parts[p];if(x){const S=Object.keys(x).map(w=>{var B;const A=x[w],N=A.getElement();let D;return N&&(D=(B=so(g,N))===null||B===void 0?void 0:B.groupper),A&&N&&D?{el:N,focusedSince:A.focused(!0)}:{focusedSince:0}}).filter(w=>w.focusedSince>0).sort((w,B)=>w.focusedSince>B.focusedSince?-1:w.focusedSince<B.focusedSince?1:0);if(S.length){const w=S[0].el;w&&((d=g.groupper)===null||d===void 0||d.handleKeyPress(w,f,!0))}}}}}},this._onFocus=(f,d)=>{var g;const v=this._tabster,h=f&&it.getTabsterContext(v,f);if(!h||!f)return;const b=this._augMap;for(let w=f;w;w=te.getParentElement(w))b.has(w)&&(b.delete(w),rf(v,w,nf));let p=h.modalizer;const x=so(v,f),S=x==null?void 0:x.modalizer;if(S&&(S.focused(),S.userId===this.activeId&&x.groupper)){const w=v.getParent(f),B=w&&((g=it.getTabsterContext(v,w))===null||g===void 0?void 0:g.modalizer);if(B)p=B;else{this.setActive(void 0);return}}if(p==null||p.focused(),(p==null?void 0:p.userId)===this.activeId){this.currentIsOthersAccessible=p==null?void 0:p.getProps().isOthersAccessible;return}if(d.isFocusedProgrammatically||this.currentIsOthersAccessible||p!=null&&p.getProps().isAlwaysAccessible)this.setActive(p);else{const w=this._win();w.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=w.setTimeout(()=>this._restoreModalizerFocus(f),100)}},this._tabster=n,this._win=n.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=a,this._accessibleCheck=l,this._activationHistory=[],this.activeElements=[],n.controlTab||n.root.addDummyInputs(),this._win().addEventListener("keydown",this._onKeyDown,!0),n.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){const n=this._win();n.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach(a=>{this._modalizers[a]&&(this._modalizers[a].dispose(),delete this._modalizers[a])}),n.clearTimeout(this._restoreModalizerFocusTimer),n.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizerLine truncated
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/function Jw(o,n,a,l){if(typeof MutationObserver>"u")return()=>{};const s=n.getWindow;let f;const d=b=>{var p,x,S,w,B;const A=new Set;for(const N of b){const D=N.target,j=N.removedNodes,L=N.addedNodes;if(N.type==="attributes")N.attributeName===Tr&&(A.has(D)||a(n,D));else{for(let Z=0;Z<j.length;Z++){const H=j[Z];A.add(H),g(H,!0),(x=(p=n._dummyObserver).domChanged)===null||x===void 0||x.call(p,D)}for(let Z=0;Z<L.length;Z++)g(L[Z]),(w=(S=n._dummyObserver).domChanged)===null||w===void 0||w.call(S,D)}}A.clear(),(B=n.modalizer)===null||B===void 0||B.hiddenUpdate()};function g(b,p){f||(f=rn(s).elementByUId),v(b,p);const x=ip(o,b,S=>v(S,p));if(x)for(;x.nextNode(););}function v(b,p){var x;if(!b.getAttribute)return NodeFilter.FILTER_SKIP;const S=b.__tabsterElementUID;return S&&f&&(p?delete f[S]:(x=f[S])!==null&&x!==void 0||(f[S]=new bo(s,b))),(so(n,b)||b.hasAttribute(Tr))&&a(n,b,p),NodeFilter.FILTER_SKIP}const h=te.createMutationObserver(d);return l&&g(s().document.body),h.observe(o,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[Tr]}),()=>{h.disconnect()}}/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/class $w{constructor(n){this._isUncontrolledCompletely=n}isUncontrolledCompletely(n,a){var l;const s=(l=this._isUncontrolledCompletely)===null||l===void 0?void 0:l.call(this,n,a);return s===void 0?a:s}}/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/class e4 extends Wf{constructor(n,a,l){var s;if(super(n,a,l),this._hasFocus=!1,this._onFocusOut=f=>{var d;const g=(d=this._element)===null||d===void 0?void 0:d.get();g&&f.relatedTarget===null&&g.dispatchEvent(new I1),g&&!te.nodeContains(g,f.relatedTarget)&&(this._hasFocus=!1)},this._onFocusIn=()=>{this._hasFocus=!0},this._props.type===$n.Source){const f=(s=this._element)===null||s===void 0?void 0:s.get();f==null||f.addEventListener("focusout",this._onFocusOut),f==null||f.addEventListener("focusin",this._onFocusIn),this._hasFocus=te.nodeContains(f,f&&te.getActiveElement(f.ownerDocument))}}dispose(){var n;if(this._props.type===$n.Source){const a=(n=this._element)===null||n===void 0?void 0:n.get();a==null||a.removeEventListener("focusout",this._onFocusOut),a==null||a.removeEventListener("focusin",this._onFocusIn),this._hasFocus&&this._tabster.getWindow().document.body.dispatchEvent(new I1)}}}class mc{constructor(n){this._stack=[],this._getWindow=n}push(n){var a;((a=this._stack[this._stack.length-1])===null||a===void 0?void 0:a.get())!==n&&(this._stack.length>mc.DEPTH&&this._stack.shift(),this._stack.push(new bo(this._getWindow,n)))}pop(n=()=>!0){var a;const l=this._getWindow().document;for(let s=this._stack.length-1;s>=0;s--){const f=(a=this._stack.pop())===null||a===void 0?void 0:a.get();if(f&&te.nodeContains(l.body,te.getParentElement(f))&&n(f))return f}}}mc.DEPTH=10;class t4{constructor(n){this._onRestoreFocus=a=>{var l,s;this._focusedElementState.cancelAsyncFocus(Zn.Restorer);const f=a.composedPath()[0];if(f){const d=(s=(l=so(this._tabster,f))===null||l===void 0?void 0:l.restorer)===null||s===void 0?void 0:s.getProps().id;this._focusedElementState.requestAsyncFocus(Zn.Restorer,()=>this._restoreFocus(f,d),0)}},this._onFocusIn=a=>{var l;if(!a)return;const s=so(this._tabster,a);((l=s==null?void 0:s.restorer)===null||l===void 0?void 0:l.getProps().type)===$n.Target&&this._history.push(a)},this._restoreFocus=(a,l)=>{var s;const f=this._getWindow().document;if(te.getActiveElement(f)!==f.body||!this._keyboardNavState.isNavigatingWithKeyboard()&&te.nodeContains(f.body,a))return;const d=g=>{var v,h;const b=(h=(v=so(this._tabster,g))===null||v===void 0?void 0:v.restorer)===null||h===void 0?void 0:h.getProps();return b?b.id:null};(s=this._history.pop(g=>l===d(g)))===null||s===void 0||s.focus()},this._tabster=n,this._getWindow=n.getWindow,this._getWindow().addEventListener(kf,this._onRestoreFocus),this._history=new mc(this._getWindow),this._keyboardNavState=n.keyboardNavigation,this._focusedElementState=n.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){const n=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),this._focusedElementState.cancelAsyncFocus(Zn.Restorer),n.removeEventListener(kf,this._onRestoreFocus)}createRestorer(n,a){const l=new e4(this._tabster,n,a);return a.type===$n.Target&&te.getActiveElement(n.ownerDocument)===n&&this._history.push(n),l}}/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/class o4{constructor(n){this.keyboardNavigation=n.keyboardNavigation,this.focusedElement=n.focusedElement,this.focusable=n.focusable,this.root=n.root,this.uncontrolled=n.uncontrolled,this.core=n}}class r4{constructor(n,a){var l,s;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="8.7.0",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=Ew(n),this._win=n;const f=this.getWindow;a!=null&&a.DOMAPI&&zw({...a.DOMAPI}),this.keyboardNavigation=new Iw(f),this.focusedElement=new ut(this,f),this.focusable=new Zw(this),this.root=new it(this,a==null?void 0:a.autoRoot),this.uncontrolled=new $w((a==null?void 0:a.checkUncontrolledCompletely)||(a==null?void 0:a.checkUncontrolledTrappingFocus)),this.controlTab=(l=a==null?void 0:a.controlTab)!==null&&l!==void 0?l:!0,this.rootDummyInputs=!!(a!=null&&a.rootDummyInputs),this._dummyObserver=new Fw(f),this.getParent=(s=a==null?void 0:a.getParent)!==null&&s!==void 0?s:te.getParentNode,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:d=>{if(!this._unobserve){const g=f().document;this._unobserve=Jw(g,this,op,d)}}},ap(f),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(n){var a;n&&(this.getParent=(a=n.getParent)!==null&&a!==void 0?a:this.getParent)}createTabster(n,a){const l=new o4(this);return n||this._wrappers.add(l),this._mergeProps(a),l}disposeTabster(n,a){a?this._wrappers.clear():this._wrappers.delete(n),this._wrappers.size===0&&this.dispose()}dispose(){var n,a,l,s,f,d,g,v;this.internal.stopObserver();const h=this._win;h==null||h.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],h&&this._forgetMemorizedTimer&&(h.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(n=this.outline)===null||n===void 0||n.dispose(),(a=this.crossOrigin)===null||a===void 0||a.dispose(),(l=this.deloser)===null||l===void 0||l.dispose(),(s=this.groupper)===null||s===void 0||s.dispose(),(f=this.mover)===null||f===void 0||f.dispose(),(d=this.modalizer)===null||d===void 0||d.dispose(),(g=this.observedElement)===null||g===void 0||g.dispose(),(v=this.restorer)===null||v===void 0||v.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),jw(this.getWindow),Y1(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),h&&(Nw(h),delete h.__tabsterInstance,delete this._win)}storageEntry(n,a){const l=this._storage;let s=l.get(n);return s?a===!1&&Object.keys(s).length===0&&l.delete(n):a===!0&&(s={},l.set(n,s)),s}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let n=this._forgetMemorizedElements.shift();n;n=this._forgetMemorizedElements.shift())Y1(this.getWindow,n),ut.forgetMemorized(this.focusedElement,n)},0),np(this.getWindow,!0)))}queueInit(n){var a;this._win&&(this._initQueue.push(n),this._initTimer||(this._initTimer=(a=this._win)===null||a===void 0?void 0:a.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const n=this._initQueue;this._initQueue=[],n.forEach(a=>a())}}function n4(o,n){let a=c4(o);return a?a.createTabster(!1,n):(a=new r4(o,n),o.__tabsterInstance=a,a.createTabster())}function a4(o,n,a){const l=o.core;return l.modalizer||(l.modalizer=new Qw(l,n,a)),l.modalizer}function i4(o){const n=o.core;return n.restorer||(n.restorer=new t4(n)),n.restorer}function l4(o,n){o.core.disposeTabster(o,n)}function c4(o){return o.__tabsterInstance}const s4=o=>o;function u4(o){const n=(o==null?void 0:o.defaultView)||void 0,a=n==null?void 0:n.__tabsterShadowDOMAPI;if(n)return n4(n,{autoRoot:{},controlTab:!1,getParent:ES,checkUncontrolledCompletely:l=>{var s;return((s=l.firstElementChild)===null||s===void 0?void 0:s.hasAttribute("data-is-focus-trap-zone-bumper"))===!0||void 0},DOMAPI:a})}function Qf(o=s4){const{targetDocument:n}=Bt(),a=_.useRef(null);return Tt(()=>{const l=u4(n);if(l)return a.current=o(l),()=>{l4(l),a.current=null}},[n,o]),a}const Q1=o=>{Qf();const n=up(o);return _.useMemo(()=>({[Tr]:n}),[n])},f4=()=>{const o=Qf(),{targetDocument:n}=Bt(),a=_.useCallback((g,v)=>{var h;return g&&((h=o.current)===null||h===void 0?void 0:h.focusable.findAll({container:g,acceptCondition:v}))||[]},[o]),l=_.useCallback(g=>{var v;return g&&((v=o.current)===null||v===void 0?void 0:v.focusable.findFirst({container:g}))},[o]),s=_.useCallback(g=>{var v;return g&&((v=o.current)===null||v===void 0?void 0:v.focusable.findLast({container:g}))},[o]),f=_.useCallback((g,v={})=>{if(!o.current||!n||!g)return null;const{container:h=n.body}=v;return o.current.focusable.findNext({currentElement:g,container:h})},[o,n]),d=_.useCallback((g,v={})=>{if(!o.current||!n||!g)returLine truncated
`,"Motion factories require a single child element to be passed. ","That element element should support ref forwarding i.e. it should be either an intrinsic element (e.g. div) or a component that uses React.forwardRef()."].join("");function Up(o,n=!0){const a=_.useRef(null);_.useEffect(()=>{},[n]);try{const l=_.Children.only(o);if(_.isValidElement(l))return[_.cloneElement(l,{ref:li(a,Gf(l))}),a]}catch{}throw new Error(m6)}const Gp=_.createContext(void 0);Gp.Provider;const Vp=()=>{var o;return(o=_.useContext(Gp))!==null&&o!==void 0?o:"default"},v6=Symbol("MOTION_DEFINITION");function Bm(o){return Object.assign(a=>{"use no memo";const{children:l,imperativeRef:s,onMotionFinish:f,onMotionStart:d,onMotionCancel:g,...v}=a,h=v,[b,p]=Up(l),x=Lp(s),S=Vp()==="skip",w=_.useRef({skipMotions:S,params:h}),B=Hp(),A=Pp(),N=Qe(()=>{d==null||d(null)}),D=Qe(()=>{f==null||f(null)}),j=Qe(()=>{g==null||g(null)});return Tt(()=>{w.current={skipMotions:S,params:h}}),Tt(()=>{const L=p.current;if(L){const Z=typeof o=="function"?o({element:L,...w.current.params}):o;N();const H=B(L,Z,{isReducedMotion:A()});return x.current=H,H.setMotionEndCallbacks(D,j),w.current.skipMotions&&H.finish(),()=>{H.cancel()}}},[B,p,x,A,D,N,j]),b},{[v6]:typeof o=="function"?o:()=>o})}const Zp=_.createContext(void 0);Zp.Provider;function p6(o=!1,n=!1){const a=_.useRef(n?o:!0),l=SS(),s=_.useCallback(f=>{a.current!==f&&(a.current=f,l())},[l]);return _.useEffect(()=>{o&&(a.current=o)}),[o||a.current,s]}const Xp=Symbol("PRESENCE_MOTION_DEFINITION"),b6=Symbol.for("interruptablePresence");function $f(o){return Object.assign(n=>{"use no memo";const l={..._.useContext(Zp),...n},s=Vp()==="skip",{appear:f,children:d,imperativeRef:g,onExit:v,onMotionFinish:h,onMotionStart:b,onMotionCancel:p,visible:x,unmountOnExit:S,...w}=l,B=w,[A,N]=p6(x,S),[D,j]=Up(d,A),L=Lp(g),Z=_.useRef({appear:f,params:B,skipMotions:s}),H=Hp(),U=xS(),ie=Pp(),Be=Qe(ce=>{b==null||b(null,{direction:ce})}),be=Qe(ce=>{h==null||h(null,{direction:ce}),ce==="exit"&&S&&(N(!1),v==null||v())}),ye=Qe(ce=>{p==null||p(null,{direction:ce})});return Tt(()=>{Z.current={appear:f,params:B,skipMotions:s}}),Tt(()=>{const ce=j.current;if(!ce)return;let pe;function Q(){pe&&(q&&pe.isRunning()||(pe.cancel(),L.current=void 0))}const Ee=typeof o=="function"?o({element:ce,...Z.current.params}):o,q=Ee[b6];if(q&&(pe=L.current,pe&&pe.isRunning()))return pe.reverse(),Q;const W=x?Ee.enter:Ee.exit,ee=x?"enter":"exit",oe=!Z.current.appear&&U,ke=Z.current.skipMotions;return oe||Be(ee),pe=H(ce,W,{isReducedMotion:ie()}),oe?(pe.finish(),Q):(L.current=pe,pe.setMotionEndCallbacks(()=>be(ee),()=>ye(ee)),ke&&pe.finish(),Q)},[H,j,L,ie,be,Be,ye,x]),_.useEffect(()=>{if(S&&!A){var ce;(ce=L.current)===null||ce===void 0||ce.dispose()}},[L,S,A]),A?D:null},{[Xp]:typeof o=="function"?o:()=>o},{In:Bm(typeof o=="function"?(...n)=>o(...n).enter:o.enter),Out:Bm(typeof o=="function"?(...n)=>o(...n).exit:o.exit)})}function y6(o,n){return l=>o({...n,...l})}function mi(o,n){const a=o[Xp],l=y6(a,n);return $f(l)}const ed=_.createContext(void 0);function x6(){return _.useContext(ed)}const Ip=_.forwardRef((o,n)=>_.createElement(ed.Provider,{value:n},o.children));Ip.displayName="MotionRefForwarder";const Yp=o=>_.createElement(ed.Provider,{value:void 0},o.children);Yp.displayName="MotionRefForwarderReset";function Wp(o,n){const{as:a,children:l,...s}=o??{};if(o===null){const d=!n.defaultProps.visible&&n.defaultProps.unmountOnExit,g=(v,h)=>d?null:_.createElement(_.Fragment,null,h.children);return{[Jl]:g,[Jn]:n.elementType}}const f={...n.defaultProps,...s,[Jn]:n.elementType};return typeof l=="function"&&(f[Jl]=l),f}const oc=({direction:o,duration:n,easing:a=ht.curveLinear,delay:l=0,outOpacity:s=0,inOpacity:f=1})=>{const d=[{opacity:s},{opacity:f}];return o==="exit"&&d.reverse(),{keyframes:d,duration:n,easing:a,delay:l,fill:"both"}},S6=({duration:o=ht.durationNormal,easing:n=ht.curveEasyEase,delay:a=0,exitDuration:l=o,exitEasing:s=n,exitDelay:f=a,outOpacity:d=0,inOpacity:g=1})=>({enter:oc({direction:"enter",duration:o,easing:n,delay:a,outOpacity:d,inOpacity:g}),exit:oc({direction:"exit",duration:l,easing:s,delay:f,outOpacity:d,inOpacity:g})}),Kp=$f(S6);mi(Kp,{duration:ht.durationFast});const w6=mi(Kp,{duration:ht.durationGentle}),km=({direction:o,duration:n,easing:a=ht.curveLinear,delay:l=0,outScale:s=.9,inScale:f=1})=>{const d=[{scale:s},{scale:f}];return o==="exit"&&d.reverse(),{keyframes:d,duration:n,easing:a,delay:l}},B6=({duration:o=ht.durationGentle,easing:n=ht.curveDecelerateMax,delay:a=0,exitDuration:l=ht.durationNormal,exitEasing:s=ht.curveAccelerateMax,exitDelay:f=a,outScale:d=.9,inScale:g=1,animateOpacity:v=!0})=>{const h=[km({direction:"enter",duration:o,easing:n,delay:a,outScale:d,inScale:g})],b=[km({direction:"exit",duration:l,easing:s,delay:f,outScale:d,inScale:g})];return v&&(h.push(oc({direction:"enter",duration:o,easing:n,delay:a})),b.push(oc({direction:"exit",duration:l,easing:s,delay:f}))),{enter:h,exit:b}},td=$f(B6);mi(td,{duration:ht.durationNo Line truncated
Vamos a planificar el sprint del mes que viene el jueves a las 10:00. Necesito que reviseis los temas pendientes del backlog.
Un saludo`,receivedAt:new Date(Date.now()-1e3*60*30).toISOString(),isRead:!1,folder:"inbox"},{id:"2",from:"[email protected]",fromName:"María García",to:"[email protected]",subject:"RE: Presupuesto proyecto digital 2026",body:`Hola Lago,
Gracias por la información. He revisado el presupuesto y parece correcto. Adjunto la propuesta final.
¿Podemos hablar mañana por teléfono?
Saludos`,receivedAt:new Date(Date.now()-1e3*60*60*2).toISOString(),isRead:!1,folder:"inbox"},{id:"3",from:"[email protected]",fromName:"DevOps Team",to:"[email protected]",subject:"[Alert] Production deployment failed — pipeline #4821",body:`Pipeline #4821 failed at stage: build
Error: npm ERR! code ETARGET
npm ERR! notarget No valid target for react@19.0.1
View logs: https://devops.company.com/pipelines/4821`,receivedAt:new Date(Date.now()-1e3*60*60*5).toISOString(),isRead:!0,folder:"inbox"},{id:"4",from:"[email protected]",fromName:"Lago",to:"[email protected]",subject:"Resumen semanal — Power Platform",body:`Equipo,
Aquí va el resumen de lo hecho esta semana:
• Demo de code apps publicada en el blog
• Connector de Outlook integrado
• Migración del backlog a Dataverse completada
Para la semana que viene:
• Terminar la integración con Teams
• Revisar los permisos de producción
Saludos`,receivedAt:new Date(Date.now()-1e3*60*60*24).toISOString(),isRead:!0,folder:"sent"},{id:"5",from:"[email protected]",fromName:"Tech Weekly",to:"[email protected]",subject:"This Week in AI & Power Platform — Issue #47",body:`Top stories this week:
1. Microsoft announces GPT-5 integration for Copilot Studio
2. Power Apps code apps reach 1,400+ connectors milestone
3. Dataverse 2026 Wave 1 features now generally available
Read more inside...`,receivedAt:new Date(Date.now()-1e3*60*60*48).toISOString(),isRead:!0,folder:"inbox"},{id:"6",from:"[email protected]",fromName:"LinkedIn",to:"[email protected]",subject:"5 people viewed your profile this week",body:`Your profile got noticed!
5 people in Austria viewed your profile in the past week, including recruiters and hiring managers.
View who they are →`,receivedAt:new Date(Date.now()-1e3*60*60*72).toISOString(),isRead:!0,folder:"inbox"},{id:"7",from:"[email protected]",fromName:"Lago",to:"draft",subject:"Borrador: Propuesta reunión trimestral",body:"Borrador de la propuesta para la reunión trimestral con dirección...",receivedAt:new Date(Date.now()-1e3*60*60*6).toISOString(),isRead:!0,folder:"drafts"}];class u8{delay(n){return new Promise(a=>setTimeout(a,n))}async getProfile(){return await this.delay(300),gf}async getMessages(n="inbox"){return await this.delay(600),Ul.filter(a=>a.folder===n)}async getMessage(n){return await this.delay(200),Ul.find(a=>a.id===n)}async sendMessage(n){await this.delay(800);const a={id:Date.now().toString(),from:gf.email,fromName:gf.displayName,to:n.to||"",subject:n.subject||"(Sin asunto)",body:n.body||"",receivedAt:new Date().toISOString(),isRead:!0,folder:"sent"};return Ul.push(a),a}async markAsRead(n){await this.delay(100);const a=Ul.find(l=>l.id===n);a&&(a.isRead=!0)}}const hf=new u8,gd=w3({root:{display:"flex",height:"100vh",width:"100vw",overflow:"hidden",backgroundColor:$.colorNeutralBackground1},navRail:{width:"48px",backgroundColor:$.colorBrandBackground,display:"flex",flexDirection:"column",alignItems:"center",paddingTop:"8px",paddingBottom:"8px",gap:"2px",flexShrink:0},navBtn:{width:"36px",height:"36px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:$.borderRadiusMedium,cursor:"pointer",color:"rgba(255,255,255,.7)",border:"none",background:"transparent",transition:"all 120ms",":hover":{backgroundColor:"rgba(255,255,255,.15)",color:"#fff"}},navBtnActive:{backgroundColor:"rgba(255,255,255,.22)",color:"#fff"},folderPane:{width:"200px",backgroundColor:$.colorNeutralBackground2,borderRight:`1px solid ${$.colorNeutralStroke2}`,display:"flex",flexDirection:"column",flexShrink:0,overflowY:"auto"},folderHeader:{...st.padding("14px","16px","6px"),display:"flex",alignItems:"center",gap:"8px"},folderItem:{display:"flex",alignItems:"center",gap:"10px",...st.padding("7px","16px"),cursor:"pointer",fontSize:$.fontSizeBase300,color:$.colorNeutralForeground2,border:"none",background:"transparent",width:"100%",textAlign:"left",borderRadius:0,transition:"all 100ms",":hover":{backgroundColor:$.colorNeutralBackground2Hover}},folderItemActive:{backgroundColor:$.colorBrandBackground2,color:$.colorBrandForeground1,fontWeight:$.fontWeightSemibold,borderLeft:`3px solid ${$.colorBrandForeground1}`,paddingLeft:"13px"},folderBadge:{marginLeft:"auto"},centre:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",minWidth:0},toolbar:{display:"flex",alignItems:"center",gap:"6px",...st.padding("6px","12px"),borderBottom:`1px solid ${$.colorNeutralStroke2}`,backgroundColor:$.colorNeutralBackground1,flexShrink:0},searchWrap:{flex:1,maxWidth:"380px",position:"relative"},searchIcon:{position:"absolute",left:"10px",top:"50%",transform:"translateY(-50%)",color:$.colorNeutralForeground3,pointerEvents:"none",display:"flex"},contentSplit:{flex:1,display:"flex",overflow:"hidden"},messageList:{width:"360px",borderRight:`1px solid ${$.colorNeutralStroke2}`,overflowY:"auto",flexShrink:0,backgroundColor:$.colorNeutralBackground1},messageItem:{display:"flex",gap:"12px",...st.padding("10px","16px"),cursor:"pointer",borderBottom:`1px solid ${$.colorNeutralStroke2}`,transition:"background 80ms",":hover":{backgroundColor:$.colorNeutralBackground1Hover}},messageItemSelected:{backgroundColor:$.colorBrandBackground2,":hover":{backgroundColor:$.colorBrandBackground2}},messageItemUnread:{borderLeft:`3px solid ${$.colorBrandForeground1}`,paddingLeft:"13px"},messageContent:{flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:"2px"},messageTopRow:{display:"flex",alignItems:"center",gap:"6px"},messageSender:{flex:1,fontSize:$.fontSizeBase300,fontWeight:$.fontWeightSemibold,color:$.colorNeutralForeground1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},messageTime:{fontSize:$.fontSizeBase200,color:$.colorNeutralForeground3,flexShrink:0},messageSubject:{fontSize:$.fontSizeBase300,color:$.colorNeutralForeground1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},messagePreview:{fontSize:$.fontSizeBase200,color:$.colorNeutralForeground3,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},readingPane:{flex:1,overflowY:"auto",display:"flex",flexDirection:"column",backgroundColor:$.colorNeutralBackground1},readingHeader:{...st.padding("20px","28px","16px"),display:"flex",gap:"14px",alignItems:"flex-start"},readingMeta:{flex:1,minWidth:0},readingSubject:{fontSize:$.fontSizeBase500,fontWeight:$.fontWeightBold,color:$.colorNeutralForeground1,lineHeight:$.lineHeightBase500,marginTop:"2px"},readingBody:{...st.padding("4px","28px","28px"),fontSize:$.fontSizeBase300,lineHeight:$.lineHeightBase400,color:$.colorNeutralForeground1,whiteSpace:"pre-wrap"},readingActions:{display:"flex",gap:"8px",...st.padding("0","28px","20px")},emptyState:{flex:1,display:"flex",flexDirection:"column",alignIt Line truncated
---------- Mensaje reenviado ----------
De: ${Q.fromName} <${Q.from}>
Fecha: ${new Date(Q.receivedAt).toLocaleString("es-ES")}
Asunto: ${Q.subject}
${Q.body}`),w(!0)},ce=f.filter(Q=>Q.subject.toLowerCase().includes(p.toLowerCase())||Q.fromName.toLowerCase().includes(p.toLowerCase())),pe=tv.find(Q=>Q.id===l);return P.jsxs("div",{className:o.root,children:[P.jsxs("nav",{className:o.navRail,children:[P.jsx(Vn,{content:"Correo",relationship:"label",positioning:"after",children:P.jsx("button",{className:de(o.navBtn,n==="mail"&&o.navBtnActive),onClick:()=>a("mail"),children:n==="mail"?P.jsx(om,{}):P.jsx(Tf,{})})}),P.jsx(Vn,{content:"Conexiones",relationship:"label",positioning:"after",children:P.jsx("button",{className:de(o.navBtn,n==="connections"&&o.navBtnActive),onClick:()=>a("connections"),children:P.jsx(jB,{})})}),P.jsx("div",{style:{flex:1}}),P.jsx(Vn,{content:"Nuevo mensaje",relationship:"label",positioning:"after",children:P.jsx("button",{className:o.navBtn,onClick:()=>w(!0),children:P.jsx(tm,{})})})]}),n==="mail"?P.jsxs(P.Fragment,{children:[P.jsxs("aside",{className:o.folderPane,children:[P.jsxs("div",{className:o.folderHeader,children:[P.jsx(Wl,{name:"Lago",initials:"LA",size:28,color:"brand"}),P.jsx(Mt,{weight:"semibold",size:300,children:"[email protected]"})]}),P.jsx(ai,{style:{margin:"6px 0"}}),tv.map(Q=>{const Ee=l===Q.id,q=Q.id===l?ce.filter(W=>!W.isRead).length:Q.unreadCount;return P.jsxs("button",{className:de(o.folderItem,Ee&&o.folderItemActive),onClick:()=>s(Q.id),children:[f8(Q.id,Ee),P.jsx("span",{children:Q.name}),q>0&&P.jsx(eb,{className:o.folderBadge,count:q,appearance:"filled",color:"brand",size:"small"})]},Q.id)})]}),P.jsxs("div",{className:o.centre,children:[P.jsxs("div",{className:o.toolbar,children:[P.jsx(_r,{appearance:"primary",icon:P.jsx(tm,{}),size:"small",onClick:()=>w(!0),children:"Nuevo"}),P.jsx(Ub,{}),P.jsx(Vn,{content:"Recargar",relationship:"label",children:P.jsx(Pb,{icon:P.jsx(OB,{}),onClick:U})}),P.jsx("div",{style:{flex:1}}),P.jsxs("div",{className:o.searchWrap,children:[P.jsx("span",{className:o.searchIcon,children:P.jsx(AB,{fontSize:16})}),P.jsx(ic,{size:"small",placeholder:"Buscar correos…",value:p,onChange:(Q,Ee)=>x(Ee.value),style:{width:"100%",paddingLeft:"30px"},contentAfter:p?P.jsx(_r,{appearance:"transparent",size:"small",icon:P.jsx(i6,{fontSize:14}),onClick:()=>x("")}):void 0})]})]}),P.jsxs("div",{className:o.contentSplit,children:[P.jsx("div",{className:o.messageList,children:h?P.jsx("div",{className:o.emptyState,style:{padding:"40px 0"},children:P.jsx(Ab,{size:"small",label:"Cargando…"})}):ce.length===0?P.jsxs("div",{className:o.emptyState,style:{padding:"60px 16px"},children:[P.jsx(Tf,{fontSize:40,style:{opacity:.3}}),P.jsxs(Mt,{size:300,children:["No hay correos en ",pe.name]})]}):ce.map(Q=>P.jsxs("div",{className:de(o.messageItem,!Q.isRead&&o.messageItemUnread,(g==null?void 0:g.id)===Q.id&&o.messageItemSelected),onClick:()=>ie(Q),children:[P.jsx(Wl,{name:Q.fromName,initials:ov(Q.fromName),size:32,style:{backgroundColor:rv(Q.fromName),flexShrink:0}}),P.jsxs("div",{className:o.messageContent,children:[P.jsxs("div",{className:o.messageTopRow,children:[P.jsxs("span",{className:o.messageSender,children:[!Q.isRead&&P.jsx(CB,{style:{color:$.colorBrandForeground1,marginRight:4,fontSize:8,verticalAlign:"middle"}}),Q.fromName]}),P.jsx("span",{className:o.messageTime,children:d8(Q.receivedAt)})]}),P.jsx("div",{className:o.messageSubject,children:Q.subject}),P.jsxs("div",{className:o.messagePreview,children:[Q.body.substring(0,80),"…"]})]})]},Q.id))}),g?P.jsxs("div",{className:o.readingPane,children:[P.jsxs("div",{className:o.readingHeader,children:[P.jsx(Wl,{name:g.fromName,initials:ov(g.fromName),size:40,style:{backgroundColor:rv(g.fromName)}}),P.jsxs("div",{className:o.readingMeta,children:[P.jsx(Mt,{weight:"semibold",size:300,children:g.fromName}),P.jsxs(Mt,{size:200,style:{color:$.colorNeutralForeground3,marginLeft:"8px"},children:["<",g.from,">"]}),P.jsx("div",{className:o.readingSubject,children:g.subject}),P.jsx(Mt,{size:200,style:{color:$.colorNeutralForeground3,marginTop:"2px",display:"block"},children:new Date(g.receivedAt).toLocaleString("es-ES",{weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit"})})]})]}),P.jsx(ai,{style:{margin:"0 28px"}}),P.jsx("div",{className:o.readingBody,children:g.body}),P.jsx(ai,{style:{margin:"0 28px"}}),P.jsxs("div",{className:o.readingActions,children:[P.jsx(_r,{appearance:"primary",icon:P.jsx(DB,{}),size:"small",onClick:()=>be(g),children:"Responder"}),P.jsx(_r,{appearance:"subtle",icon:P.jsx(RB,{}),size:"small",onClick:()=>ye(g),children:"Reenviar"}),P.jsx(_r,{appearance:"subtle",icon:P.jsx(Fp,{}),size:"small",children:"Eliminar"})]})]}):P.jsxs("div",{className:o.emptyState,children:[P.jsx(om,{fontSize:48,style:{opacity:.15}}),P.jsx(Mt,{size:400,style:{opacity:.5},children:"Selecciona un correo para leerlo"})]})]})]})]}):P.jsx(m8,{}),P.jsx(h8,{open:S,onOpenChange:w,to:B,onToChange:A,subject:N,onSubjectChange:D,body:j,onBodyChange:L,sending:Z,onSend:Be})]})}function h8({open:o,onOpenChange:n,to:a,onToChange:l,subject:s,on Line truncated
+1 -1
View File
@@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Outlook Lite — Power Apps Code Apps Part 2</title>
<script type="module" crossorigin src="/assets/index-DQ2nyFq4.js"></script>
<script type="module" crossorigin src="/assets/index-DdvZTbE9.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CmpLfbp9.css">
</head>
<body>