mgwdev-m365-components 0.0.13-experimental → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mgwdev-m365-components.es.js +23331 -32144
- package/dist/mgwdev-m365-components.umd.js +193 -0
- package/package.json +1 -1
- package/dist/ProtocolUtils-f8qLE_2m.mjs +0 -476
- package/dist/index.html +0 -14
- package/dist/mgwdev-m365-components.es2.js +0 -182
- package/dist/redirect.html +0 -14
- package/dist/vite.svg +0 -1
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
(function(Z,Kt){typeof exports=="object"&&typeof module<"u"?Kt(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],Kt):(Z=typeof globalThis<"u"?globalThis:Z||self,Kt(Z["mgwdev-m365-components"]={},Z.React,Z.ReactDOM))})(this,function(Z,Kt,lh){"use strict";function Ja(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}function ch(e,r){for(var t=0;t<r.length;t++){const n=r[t];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const m=Ja(Kt),zn=Ja(lh);function uh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Dn={exports:{}},Vr={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.development.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var es;function dh(){return es||(es=1,process.env.NODE_ENV!=="production"&&function(){var e=Kt,r=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),h=Symbol.iterator,v="@@iterator";function b(_){if(_===null||typeof _!="object")return null;var j=h&&_[h]||_[v];return typeof j=="function"?j:null}var p=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(_){{for(var j=arguments.length,M=new Array(j>1?j-1:0),re=1;re<j;re++)M[re-1]=arguments[re];k("error",_,M)}}function k(_,j,M){{var re=p.ReactDebugCurrentFrame,fe=re.getStackAddendum();fe!==""&&(j+="%s",M=M.concat([fe]));var me=M.map(function(ue){return String(ue)});me.unshift("Warning: "+j),Function.prototype.apply.call(console[_],console,me)}}var w=!1,x=!1,B=!1,S=!1,C=!1,E;E=Symbol.for("react.module.reference");function I(_){return!!(typeof _=="string"||typeof _=="function"||_===n||_===o||C||_===i||_===a||_===c||S||_===f||w||x||B||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===d||_.$$typeof===s||_.$$typeof===l||_.$$typeof===u||_.$$typeof===E||_.getModuleId!==void 0))}function $(_,j,M){var re=_.displayName;if(re)return re;var fe=j.displayName||j.name||"";return fe!==""?M+"("+fe+")":M}function U(_){return _.displayName||"Context"}function T(_){if(_==null)return null;if(typeof _.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case n:return"Fragment";case t:return"Portal";case o:return"Profiler";case i:return"StrictMode";case a:return"Suspense";case c:return"SuspenseList"}if(typeof _=="object")switch(_.$$typeof){case l:var j=_;return U(j)+".Consumer";case s:var M=_;return U(M._context)+".Provider";case u:return $(_,_.render,"ForwardRef");case d:var re=_.displayName||null;return re!==null?re:T(_.type)||"Memo";case g:{var fe=_,me=fe._payload,ue=fe._init;try{return T(ue(me))}catch{return null}}}return null}var A=Object.assign,G=0,X,Q,z,q,W,se,L;function oe(){}oe.__reactDisabledLog=!0;function be(){{if(G===0){X=console.log,Q=console.info,z=console.warn,q=console.error,W=console.group,se=console.groupCollapsed,L=console.groupEnd;var _={configurable:!0,enumerable:!0,value:oe,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}G++}}function dt(){{if(G--,G===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},_,{value:X}),info:A({},_,{value:Q}),warn:A({},_,{value:z}),error:A({},_,{value:q}),group:A({},_,{value:W}),groupCollapsed:A({},_,{value:se}),groupEnd:A({},_,{value:L})})}G<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Me=p.ReactCurrentDispatcher,rt;function Ht(_,j,M){{if(rt===void 0)try{throw Error()}catch(fe){var re=fe.stack.trim().match(/\n( *(at )?)/);rt=re&&re[1]||""}return`
|
|
10
|
+
`+rt+_}}var ar=!1,Wt;{var K=typeof WeakMap=="function"?WeakMap:Map;Wt=new K}function Vt(_,j){if(!_||ar)return"";{var M=Wt.get(_);if(M!==void 0)return M}var re;ar=!0;var fe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var me;me=Me.current,Me.current=null,be();try{if(j){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(Et){re=Et}Reflect.construct(_,[],ue)}else{try{ue.call()}catch(Et){re=Et}_.call(ue.prototype)}}else{try{throw Error()}catch(Et){re=Et}_()}}catch(Et){if(Et&&re&&typeof Et.stack=="string"){for(var ce=Et.stack.split(`
|
|
11
|
+
`),Le=re.stack.split(`
|
|
12
|
+
`),Te=ce.length-1,De=Le.length-1;Te>=1&&De>=0&&ce[Te]!==Le[De];)De--;for(;Te>=1&&De>=0;Te--,De--)if(ce[Te]!==Le[De]){if(Te!==1||De!==1)do if(Te--,De--,De<0||ce[Te]!==Le[De]){var ot=`
|
|
13
|
+
`+ce[Te].replace(" at new "," at ");return _.displayName&&ot.includes("<anonymous>")&&(ot=ot.replace("<anonymous>",_.displayName)),typeof _=="function"&&Wt.set(_,ot),ot}while(Te>=1&&De>=0);break}}}finally{ar=!1,Me.current=me,dt(),Error.prepareStackTrace=fe}var Wr=_?_.displayName||_.name:"",ah=Wr?Ht(Wr):"";return typeof _=="function"&&Wt.set(_,ah),ah}function $t(_,j,M){return Vt(_,!1)}function Ct(_){var j=_.prototype;return!!(j&&j.isReactComponent)}function Pt(_,j,M){if(_==null)return"";if(typeof _=="function")return Vt(_,Ct(_));if(typeof _=="string")return Ht(_);switch(_){case a:return Ht("Suspense");case c:return Ht("SuspenseList")}if(typeof _=="object")switch(_.$$typeof){case u:return $t(_.render);case d:return Pt(_.type,j,M);case g:{var re=_,fe=re._payload,me=re._init;try{return Pt(me(fe),j,M)}catch{}}}return""}var Gt=Object.prototype.hasOwnProperty,Mr={},ko=p.ReactDebugCurrentFrame;function sr(_){if(_){var j=_._owner,M=Pt(_.type,_._source,j?j.type:null);ko.setExtraStackFrame(M)}else ko.setExtraStackFrame(null)}function Xa(_,j,M,re,fe){{var me=Function.call.bind(Gt);for(var ue in _)if(me(_,ue)){var ce=void 0;try{if(typeof _[ue]!="function"){var Le=Error((re||"React class")+": "+M+" type `"+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof _[ue]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Le.name="Invariant Violation",Le}ce=_[ue](j,ue,re,M,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Te){ce=Te}ce&&!(ce instanceof Error)&&(sr(fe),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",re||"React class",M,ue,typeof ce),sr(null)),ce instanceof Error&&!(ce.message in Mr)&&(Mr[ce.message]=!0,sr(fe),y("Failed %s type: %s",M,ce.message),sr(null))}}}var Za=Array.isArray;function lr(_){return Za(_)}function cr(_){{var j=typeof Symbol=="function"&&Symbol.toStringTag,M=j&&_[Symbol.toStringTag]||_.constructor.name||"Object";return M}}function Pn(_){try{return Tn(_),!1}catch{return!0}}function Tn(_){return""+_}function Lr(_){if(Pn(_))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",cr(_)),Tn(_)}var Tt=p.ReactCurrentOwner,En={key:!0,ref:!0,__self:!0,__source:!0},Nn,Rn,H;H={};function Y(_){if(Gt.call(_,"ref")){var j=Object.getOwnPropertyDescriptor(_,"ref").get;if(j&&j.isReactWarning)return!1}return _.ref!==void 0}function le(_){if(Gt.call(_,"key")){var j=Object.getOwnPropertyDescriptor(_,"key").get;if(j&&j.isReactWarning)return!1}return _.key!==void 0}function we(_,j){if(typeof _.ref=="string"&&Tt.current&&j&&Tt.current.stateNode!==j){var M=T(Tt.current.type);H[M]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',T(Tt.current.type),_.ref),H[M]=!0)}}function ze(_,j){{var M=function(){Nn||(Nn=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",j))};M.isReactWarning=!0,Object.defineProperty(_,"key",{get:M,configurable:!0})}}function Ye(_,j){{var M=function(){Rn||(Rn=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",j))};M.isReactWarning=!0,Object.defineProperty(_,"ref",{get:M,configurable:!0})}}var qe=function(_,j,M,re,fe,me,ue){var ce={$$typeof:r,type:_,key:j,ref:M,props:ue,_owner:me};return ce._store={},Object.defineProperty(ce._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ce,"_self",{configurable:!1,enumerable:!1,writable:!1,value:re}),Object.defineProperty(ce,"_source",{configurable:!1,enumerable:!1,writable:!1,value:fe}),Object.freeze&&(Object.freeze(ce.props),Object.freeze(ce)),ce};function Ut(_,j,M,re,fe){{var me,ue={},ce=null,Le=null;M!==void 0&&(Lr(M),ce=""+M),le(j)&&(Lr(j.key),ce=""+j.key),Y(j)&&(Le=j.ref,we(j,fe));for(me in j)Gt.call(j,me)&&!En.hasOwnProperty(me)&&(ue[me]=j[me]);if(_&&_.defaultProps){var Te=_.defaultProps;for(me in Te)ue[me]===void 0&&(ue[me]=Te[me])}if(ce||Le){var De=typeof _=="function"?_.displayName||_.name||"Unknown":_;ce&&ze(ue,De),Le&&Ye(ue,De)}return qe(_,ce,Le,fe,re,Tt.current,ue)}}var je=p.ReactCurrentOwner,ur=p.ReactDebugCurrentFrame;function Hr(_){if(_){var j=_._owner,M=Pt(_.type,_._source,j?j.type:null);ur.setExtraStackFrame(M)}else ur.setExtraStackFrame(null)}var Qa;Qa=!1;function Ya(_){return typeof _=="object"&&_!==null&&_.$$typeof===r}function th(){{if(je.current){var _=T(je.current.type);if(_)return`
|
|
14
|
+
|
|
15
|
+
Check the render method of \``+_+"`."}return""}}function uP(_){{if(_!==void 0){var j=_.fileName.replace(/^.*[\\\/]/,""),M=_.lineNumber;return`
|
|
16
|
+
|
|
17
|
+
Check your code at `+j+":"+M+"."}return""}}var rh={};function dP(_){{var j=th();if(!j){var M=typeof _=="string"?_:_.displayName||_.name;M&&(j=`
|
|
18
|
+
|
|
19
|
+
Check the top-level render call using <`+M+">.")}return j}}function oh(_,j){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var M=dP(j);if(rh[M])return;rh[M]=!0;var re="";_&&_._owner&&_._owner!==je.current&&(re=" It was passed a child from "+T(_._owner.type)+"."),Hr(_),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',M,re),Hr(null)}}function nh(_,j){{if(typeof _!="object")return;if(lr(_))for(var M=0;M<_.length;M++){var re=_[M];Ya(re)&&oh(re,j)}else if(Ya(_))_._store&&(_._store.validated=!0);else if(_){var fe=b(_);if(typeof fe=="function"&&fe!==_.entries)for(var me=fe.call(_),ue;!(ue=me.next()).done;)Ya(ue.value)&&oh(ue.value,j)}}}function fP(_){{var j=_.type;if(j==null||typeof j=="string")return;var M;if(typeof j=="function")M=j.propTypes;else if(typeof j=="object"&&(j.$$typeof===u||j.$$typeof===d))M=j.propTypes;else return;if(M){var re=T(j);Xa(M,_.props,"prop",re,_)}else if(j.PropTypes!==void 0&&!Qa){Qa=!0;var fe=T(j);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",fe||"Unknown")}typeof j.getDefaultProps=="function"&&!j.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function hP(_){{for(var j=Object.keys(_.props),M=0;M<j.length;M++){var re=j[M];if(re!=="children"&&re!=="key"){Hr(_),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",re),Hr(null);break}}_.ref!==null&&(Hr(_),y("Invalid attribute `ref` supplied to `React.Fragment`."),Hr(null))}}function ih(_,j,M,re,fe,me){{var ue=I(_);if(!ue){var ce="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(ce+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Le=uP(fe);Le?ce+=Le:ce+=th();var Te;_===null?Te="null":lr(_)?Te="array":_!==void 0&&_.$$typeof===r?(Te="<"+(T(_.type)||"Unknown")+" />",ce=" Did you accidentally export a JSX literal instead of a component?"):Te=typeof _,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Te,ce)}var De=Ut(_,j,M,fe,me);if(De==null)return De;if(ue){var ot=j.children;if(ot!==void 0)if(re)if(lr(ot)){for(var Wr=0;Wr<ot.length;Wr++)nh(ot[Wr],_);Object.freeze&&Object.freeze(ot)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else nh(ot,_)}return _===n?hP(De):fP(De),De}}function gP(_,j,M){return ih(_,j,M,!0)}function vP(_,j,M){return ih(_,j,M,!1)}var mP=vP,pP=gP;Vr.Fragment=n,Vr.jsx=mP,Vr.jsxs=pP}()),Vr}var $r={};/**
|
|
20
|
+
* @license React
|
|
21
|
+
* react-jsx-runtime.production.min.js
|
|
22
|
+
*
|
|
23
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the MIT license found in the
|
|
26
|
+
* LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/var ts;function fh(){if(ts)return $r;ts=1;var e=Kt,r=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(l,u,a){var c,d={},g=null,f=null;a!==void 0&&(g=""+a),u.key!==void 0&&(g=""+u.key),u.ref!==void 0&&(f=u.ref);for(c in u)n.call(u,c)&&!o.hasOwnProperty(c)&&(d[c]=u[c]);if(l&&l.defaultProps)for(c in u=l.defaultProps,u)d[c]===void 0&&(d[c]=u[c]);return{$$typeof:r,type:l,key:g,ref:f,props:d,_owner:i.current}}return $r.Fragment=t,$r.jsx=s,$r.jsxs=s,$r}process.env.NODE_ENV==="production"?Dn.exports=fh():Dn.exports=dh();var P=Dn.exports;const hh=ch({__proto__:null,default:uh(P)},[P]),Fn=m.createContext({authProvider:{getAccessToken:async()=>{throw new Error("No auth provider available")},isAuthenticated:async()=>!1,clearCache:async()=>{throw new Error("No auth provider available")},logout:async()=>{throw new Error("No auth provider available")}}}),xo=()=>m.useContext(Fn),gh=e=>P.jsx(Fn.Provider,{value:{authProvider:e.authProvider},children:e.children});var _o=function(){function e(){}return e.splitToMaxLength=function(r,t){for(var n=[],i=0;i<r.length;)n.push(r.slice(i,i+t)),i+=t;return n},e.getSubMap=function(r,t){var n=new Map;return t.forEach(function(i){return n.set(i,r.get(i))}),n},e}(),vh=function(){function e(){this.query=""}return e.prototype.withQuery=function(r,t){return t===void 0&&(t="And"),this.query?this.query="<".concat(t,">").concat(this.query).concat(r,"</").concat(t,">"):this.query=r,this},e.prototype.withFieldQuery=function(r,t){if(t===void 0&&(t="And"),!r.name)throw new Error("Field name is required");if(!r.type)throw new Error("Field type is required");r.comparer||(r.comparer="Eq");var n="";switch(r.comparer){case"IsNull":case"IsNotNull":n="<".concat(r.comparer,"><FieldRef Name='").concat(r.name,"' /></").concat(r.comparer,">");break;case"CurrentUserGroups":n=`<Or>
|
|
28
|
+
<Membership Type="CurrentUserGroups">
|
|
29
|
+
<FieldRef Name="`.concat(r.name,`"/>
|
|
30
|
+
</Membership>
|
|
31
|
+
<Eq>
|
|
32
|
+
<FieldRef Name="`).concat(r.name,`"></FieldRef>
|
|
33
|
+
<Value Type="Integer">
|
|
34
|
+
<UserID/>
|
|
35
|
+
</Value>
|
|
36
|
+
</Eq>
|
|
37
|
+
</Or>`);break;case"IDEq":n="<Eq><FieldRef Name='".concat(r.name,"' LookupId='True' /><Value Type='").concat(r.type,"'>").concat(r.value,"</Value></Eq>");break;default:n="<".concat(r.comparer,"><FieldRef Name='").concat(r.name,"' /><Value ").concat(r.includeTimeValue!=null?"IncludeTimeValue='".concat(r.includeTimeValue?"TRUE":"FALSE","' "):"","Type='").concat(r.type,"'>").concat(r.value,"</Value></").concat(r.comparer,">");break}return this.query?this.query="<".concat(t,">").concat(this.query).concat(n,"</").concat(t,">"):this.query=n,this},e.prototype.build=function(){return this.query},e}(),rs=function(){function e(){this.query="",this.oDataSupportedComparers=["BeginsWith","Contains","Eq","IDEq","Geq","Gt","IsNotNull","IsNull","Leq","Lt","Neq"]}return e.prototype.withQuery=function(r,t){return t===void 0&&(t="And"),this.query?this.query="(".concat(this.query,") ").concat(t.toLocaleLowerCase()," (").concat(r,")"):this.query=r,this},e.prototype.withFieldQuery=function(r,t){if(t===void 0&&(t="And"),!r.name)throw new Error("Field name is required");if(!r.type)throw new Error("Field type is required");r.comparer||(r.comparer="Eq");var n="";switch(r.comparer){case"IsNull":n="".concat(r.name," eq null");break;case"IsNotNull":n="".concat(r.name," ne null");break;case"CurrentUserGroups":throw new Error("Not supported!");case"IDEq":n="".concat(r.name,"/Id eq ").concat(r.value);break;default:if(this.oDataSupportedComparers.indexOf(r.comparer)>=0)if(r.comparer==="Contains"){n="substringof('".concat(r.value,"', ").concat(r.name,")");break}else if(r.comparer==="BeginsWith"){n="startswith(".concat(r.name,", '").concat(r.value,"')");break}else{n="".concat(r.name," ").concat(r.comparer.toLocaleLowerCase().replace("geq","ge").replace("leq","le").replace("neq","ne")," "),r.type&&(r.type==="Number"||r.type==="Counter"||r.type==="Integer")?n+=r.value:r.type&&r.type==="Guid"?n+="guid'".concat(r.value,"'"):r.type&&(r.type==="Date"||r.type==="DateTime")?n+="datetime'".concat(r.value,"'"):n+="'".concat(r.value,"'");break}else throw new Error("Unsupported comparer")}return this.query?this.query="(".concat(this.query,") ").concat(t.toLocaleLowerCase()," (").concat(n,")"):this.query=n,this},e.prototype.build=function(){return this.query},e}(),mh=function(){var e=function(r,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),In=function(e){mh(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.withFieldQuery=function(t,n){var i="";return t.type&&(t.type==="Date"||t.type==="DateTime")?(i=t.name,i+=" ",i+=t.comparer.toLocaleLowerCase().replace("geq","ge").replace("leq","le"),i+=" ",i+=t.value,this.query?this.query="(".concat(this.query,") ").concat(n.toLocaleLowerCase()," (").concat(i,")"):this.query=i,this):t.comparer==="Contains"?(i="contains(".concat(t.name,", '").concat(t.value,"')"),this.query?this.query="(".concat(this.query,") ").concat(n.toLocaleLowerCase()," (").concat(i,")"):this.query=i,this):e.prototype.withFieldQuery.call(this,t,n)},r}(rs),jn=function(){function e(){}return e.prototype.get=function(r){return JSON.parse(localStorage.getItem(r))},e.prototype.set=function(r,t){localStorage.setItem(r,JSON.stringify(t))},e.prototype.remove=function(r){localStorage.removeItem(r)},e}();function ph(e,r){for(var t=e,n=0;n<r.length;n++)t=t.replace("{".concat(n,"}"),r[n]);return t}function An(e){var r=[],t=new Map;return function(n,i,o){var s=o.value;o.value=function(){for(var l=this,u=[],a=0;a<arguments.length;a++)u[a-0]=arguments[a];var c=ph(e,u);return new Promise(function(d,g){var f=t.get(c);if(!f)f=s.apply(l,u).then(function(v){return d(v),r.length===0&&t.delete(c),v}).catch(function(v){g(v),r.length===0&&t.delete(c)}),t.set(c,f);else{var h=new Promise(function(v,b){f.then(function(p){d(p),v(p),r.splice(r.indexOf(h),1),r.length===0&&t.delete(c)}).catch(function(p){g(p),b(p)})});r.push(h)}})}}}var On=function(){function e(){}return e.getTokenInfo=function(r){var t=atob(r.split(".")[1]);return JSON.parse(t)},e.isExpValid=function(r){return!!r&&r>new Date().getTime()/1e3},e.isTokenValid=function(r){var t=e.getTokenInfo(r);return e.isExpValid(t.exp)},e}(),qn=function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function l(c){try{a(n.next(c))}catch(d){s(d)}}function u(c){try{a(n.throw(c))}catch(d){s(d)}}function a(c){c.done?o(c.value):i(c.value).then(l,u)}a((n=n.apply(e,r||[])).next())})},Mn=function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(a){return function(c){return u([a,c])}}function u(a){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,i=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1],o=a;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(a);break}o[2]&&t.ops.pop(),t.trys.pop();continue}a=r.call(e,t)}catch(c){a=[6,c],i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},Ln=function(){function e(){}return e.debounce=function(r,t,n){return n===void 0&&(n=100),qn(this,void 0,void 0,function(){var i=this;return Mn(this,function(o){return e.registeredTimeouts.has(r)&&window.clearTimeout(e.registeredTimeouts.get(r)),[2,new Promise(function(s,l){return qn(i,void 0,void 0,function(){var u,a=this;return Mn(this,function(c){return u=setTimeout(function(){return qn(a,void 0,void 0,function(){var d,g;return Mn(this,function(f){switch(f.label){case 0:return f.trys.push([0,2,,3]),[4,t()];case 1:return d=f.sent(),e.registeredTimeouts.delete(r),s(d),[3,3];case 2:return g=f.sent(),e.registeredTimeouts.delete(r),l(g),[3,3];case 3:return[2]}})})},n),e.registeredTimeouts.set(r,u),[2]})})})]})})},e.registeredTimeouts=new Map,e}(),bh=function(){function e(){}return e.clearStorageKeys=function(r){for(var t=0,n=[localStorage,sessionStorage];t<n.length;t++)for(var i=n[t],o=Object.keys(i),s=0,l=o;s<l.length;s++){var u=l[s];(u.startsWith("msal.".concat(r,"."))||u.includes(r))&&i.removeItem(u)}},e}(),dr=function(){return dr=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},dr.apply(this,arguments)},os=function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function l(c){try{a(n.next(c))}catch(d){s(d)}}function u(c){try{a(n.throw(c))}catch(d){s(d)}}function a(c){c.done?o(c.value):i(c.value).then(l,u)}a((n=n.apply(e,r||[])).next())})},ns=function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(a){return function(c){return u([a,c])}}function u(a){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,i=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1],o=a;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(a);break}o[2]&&t.ops.pop(),t.trys.pop();continue}a=r.call(e,t)}catch(c){a=[6,c],i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},is=function(){function e(r,t,n,i){i===void 0&&(i=0);var o=this;this.baseClient=r,this.registeredPromises=t,this.batch=n,this.retries=i,this.requestBatch=function(s,l){return l===void 0&&(l="beta"),os(o,void 0,void 0,function(){var u,a,c;return ns(this,function(d){switch(d.label){case 0:return u={headers:{Accept:"application/json",ConsistencyLevel:"eventual","Content-Type":"application/json"},body:s},[4,this.baseClient.post("https://graph.microsoft.com/".concat(l,"/$batch"),u)];case 1:return a=d.sent(),a.ok?[4,a.json()]:[3,3];case 2:return c=d.sent(),[2,c];case 3:return[2]}})})}}return e.prototype.executeBatch=function(){return os(this,void 0,void 0,function(){var r,t,n,i,o,s,l;return ns(this,function(u){switch(u.label){case 0:return r=this.batch.filter(function(a){return a.url.indexOf("v1.0/")<0}),t=this.batch.filter(function(a){return a.url.indexOf("v1.0/")>=0}),n=JSON.stringify({requests:r.map(function(a){return dr(dr({},a),{url:a.url.replace("beta/","")})})}),i=JSON.stringify({requests:t.map(function(a){return dr(dr({},a),{url:a.url.replace("v1.0/","")})})}),o=[],r.length>0?[4,this.requestBatch(n)]:[3,2];case 1:s=u.sent(),o.push.apply(o,s.responses),u.label=2;case 2:return t.length>0?[4,this.requestBatch(i,"v1.0")]:[3,4];case 3:l=u.sent(),o.push.apply(o,l.responses),u.label=4;case 4:return this.processBatchResponse(o),this.batch.length>0&&this.retries>0&&(this.retries--,this.executeBatch()),[2]}})})},e.prototype.processBatchResponse=function(r){var t=this,n=[],i=new Map;this.registeredPromises.forEach(function(o,s){var l=r.filter(function(u){return u.id===s})[0];l&&l.status===429&&t.retries>0?(n.push({url:s,id:s,method:"GET"}),i.set(s,o)):t.handleSingleResponse(l,o)}),n.length>0?(this.registeredPromises=i,this.batch=n):(this.batch=[],this.registeredPromises.clear())},e.prototype.handleSingleResponse=function(r,t){r?t.forEach(function(n){n.resolve({json:function(){return Promise.resolve(r.body)},ok:r.status===200,status:r.status,text:function(){return Promise.resolve(JSON.stringify(r.body))},headers:r.headers})}):t.forEach(function(n){n.error({json:function(){return Promise.resolve(r)},ok:!1,text:function(){return Promise.resolve(JSON.stringify(r))}})})},e.maxRetries=5,e}(),Hn=function(){return Hn=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Hn.apply(this,arguments)},yh=function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function l(c){try{a(n.next(c))}catch(d){s(d)}}function u(c){try{a(n.throw(c))}catch(d){s(d)}}function a(c){c.done?o(c.value):i(c.value).then(l,u)}a((n=n.apply(e,r||[])).next())})},wh=function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(a){return function(c){return u([a,c])}}function u(a){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,i=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1],o=a;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(a);break}o[2]&&t.ops.pop(),t.trys.pop();continue}a=r.call(e,t)}catch(c){a=[6,c],i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},kh=function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,o;n<i;n++)(o||!(n in r))&&(o||(o=Array.prototype.slice.call(r,0,n)),o[n]=r[n]);return e.concat(o||Array.prototype.slice.call(r))},xh=function(){function e(r,t,n){t===void 0&&(t=500),n===void 0&&(n=15);var i=this;this.baseClient=r,this.batchWaitTime=t,this.batchSplitThreshold=n,this.batch=[],this.getRequestId=function(o,s){return s==="GET"?encodeURIComponent(o):Math.random().toString(36).substring(7)},this.registeredPromises=new Map,this.generateBatch=function(){return yh(i,void 0,void 0,function(){var o,s,l,u,a,c,d,g;return wh(this,function(f){switch(f.label){case 0:o=kh([],this.batch,!0),this.batch=[],s=new Map(this.registeredPromises),this.registeredPromises.clear(),l=_o.splitToMaxLength(o,this.batchSplitThreshold),u=0,a=l,f.label=1;case 1:return u<a.length?(c=a[u],d=_o.getSubMap(s,c.map(function(h){return h.id})),g=new is(this.baseClient,d,c,is.maxRetries),[4,g.executeBatch()]):[3,4];case 2:f.sent(),f.label=3;case 3:return u++,[3,1];case 4:return[2]}})})},this.createGetBatchRequest=function(o,s,l,u){i.batch.length===0&&setTimeout(i.generateBatch,i.batchWaitTime);var a=i.getRequestId(o,s),c=new URL(o,"https://graph.microsoft.com"),d=c.pathname+c.search;i.batch.filter(function(g){return g.id===a})[0]?i.registeredPromises.get(a).push(u):(i.batch.push({url:d,id:a,method:s,body:l&&l.body?JSON.parse(l.body):null,headers:Hn({ConsistencyLevel:"eventual"},l?l.headers:{})}),i.registeredPromises.set(a,[u]))}}return e.prototype.get=function(r,t){var n=this;return new Promise(function(i,o){n.createGetBatchRequest(r,"GET",t,{resolve:i,error:o})})},e.prototype.post=function(r,t){var n=this;return r.toLocaleLowerCase().endsWith("/batch")||r.toLocaleLowerCase().endsWith("/chatoverstream")?this.baseClient.post(r,t):new Promise(function(i,o){n.createGetBatchRequest(r,"POST",t,{resolve:i,error:o})})},e.prototype.patch=function(r,t){return this.baseClient.patch(r,t)},e.prototype.put=function(r,t){return this.baseClient.put(r,t)},e.prototype.delete=function(r,t){return this.baseClient.delete(r,t)},e}(),fr=function(){return fr=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},fr.apply(this,arguments)},Xt=function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function l(c){try{a(n.next(c))}catch(d){s(d)}}function u(c){try{a(n.throw(c))}catch(d){s(d)}}function a(c){c.done?o(c.value):i(c.value).then(l,u)}a((n=n.apply(e,r||[])).next())})},Zt=function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(a){return function(c){return u([a,c])}}function u(a){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,i=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1],o=a;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(a);break}o[2]&&t.ops.pop(),t.trys.pop();continue}a=r.call(e,t)}catch(c){a=[6,c],i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},Wn=function(){function e(r,t){this.authService=r,this.baseClient=t,this.resourceUri="https://graph.microsoft.com"}return e.prototype.get=function(r,t){return Xt(this,void 0,void 0,function(){var n;return Zt(this,function(i){switch(i.label){case 0:return[4,this.prepareRequest(t)];case 1:return n=i.sent(),[2,this.baseClient.get(r,n)]}})})},e.prototype.post=function(r,t){return Xt(this,void 0,void 0,function(){var n;return Zt(this,function(i){switch(i.label){case 0:return[4,this.prepareRequest(t)];case 1:return n=i.sent(),[2,this.baseClient.post(r,n)]}})})},e.prototype.patch=function(r,t){return Xt(this,void 0,void 0,function(){var n;return Zt(this,function(i){switch(i.label){case 0:return[4,this.prepareRequest(t)];case 1:return n=i.sent(),[2,this.baseClient.patch(r,n)]}})})},e.prototype.put=function(r,t){return Xt(this,void 0,void 0,function(){var n;return Zt(this,function(i){switch(i.label){case 0:return[4,this.prepareRequest(t)];case 1:return n=i.sent(),[2,this.baseClient.put(r,n)]}})})},e.prototype.delete=function(r,t){return Xt(this,void 0,void 0,function(){var n;return Zt(this,function(i){switch(i.label){case 0:return[4,this.prepareRequest({})];case 1:return n=i.sent(),[2,this.baseClient.delete(r,n)]}})})},e.prototype.prepareRequest=function(r){return Xt(this,void 0,void 0,function(){var t,n,i,o;return Zt(this,function(s){switch(s.label){case 0:return t=[fr({},r)],i={},n=[fr({},r==null?void 0:r.headers)],o={},[4,this.getAuthHeader()];case 1:return[2,fr.apply(void 0,t.concat([(i.headers=fr.apply(void 0,n.concat([(o.Authorization=s.sent(),o)])),i)]))]}})})},e.prototype.getAuthHeader=function(){return Xt(this,void 0,void 0,function(){var r;return Zt(this,function(t){switch(t.label){case 0:return[4,this.authService.getAccessToken(this.resourceUri)];case 1:return r=t.sent(),[2,"Bearer ".concat(r)]}})})},e}(),Qt=function(){return Qt=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Qt.apply(this,arguments)},hr=function(){function e(r){this.baseUrl=r}return e.prototype.buildUrl=function(r){return r.startsWith("http")||!this.baseUrl?r:this.baseUrl+r},e.prototype.get=function(r,t){return fetch(this.buildUrl(r),Qt({method:"GET"},t))},e.prototype.post=function(r,t){return fetch(this.buildUrl(r),Qt({method:"POST"},t))},e.prototype.patch=function(r,t){return fetch(this.buildUrl(r),Qt({method:"PATCH"},t))},e.prototype.put=function(r,t){return fetch(this.buildUrl(r),Qt({method:"PUT"},t))},e.prototype.delete=function(r,t){return fetch(this.buildUrl(r),Qt({method:"DELETE"},t))},e}(),_h=function(){function e(){this.lastUsedId=0}return e.prototype.getNextId=function(){return this.lastUsedId++,this.lastUsedId.toString()},e.prototype.reset=function(){this.lastUsedId=0},e}(),Sh=function(){var e=function(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)};return"".concat(e()).concat(e(),"-").concat(e(),"-").concat(e(),"-").concat(e(),"-").concat(e()).concat(e()).concat(e())},as=function(e){for(var r="",t=0;t<e;t++){var n=Math.floor(Math.random()*26)+(Math.random()<.5?65:97);r+=String.fromCharCode(n)}return r},ss=function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function l(c){try{a(n.next(c))}catch(d){s(d)}}function u(c){try{a(n.throw(c))}catch(d){s(d)}}function a(c){c.done?o(c.value):i(c.value).then(l,u)}a((n=n.apply(e,r||[])).next())})},ls=function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(a){return function(c){return u([a,c])}}function u(a){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,i=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1],o=a;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(a);break}o[2]&&t.ops.pop(),t.trys.pop();continue}a=r.call(e,t)}catch(c){a=[6,c],i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},cs=function(){function e(r,t,n,i,o,s){s===void 0&&(s=0);var l=this;this.baseClient=r,this.dataverseEnvUri=t,this.apiPath=n,this.registeredPromises=i,this.batch=o,this.retries=s,this.batchSeparator="batch-mgwdev-m365-helpers",this.requestBatch=function(u){return ss(l,void 0,void 0,function(){var a,c,d,g;return ls(this,function(f){switch(f.label){case 0:return a={headers:{Accept:"application/json","OData-Version":"4.0","content-type":"multipart/mixed; boundary=".concat(this.batchSeparator)},body:u},[4,this.baseClient.post("".concat(this.dataverseEnvUri).concat(this.apiPath,"/$batch"),a)];case 1:return c=f.sent(),c.ok?[4,c.text()]:[3,3];case 2:return d=f.sent(),g=c.headers.get("content-type").split("boundary=")[1],[2,d.split(g)];case 3:return[2]}})})}}return e.prototype.executeBatch=function(){return ss(this,void 0,void 0,function(){var r,t,n;return ls(this,function(i){switch(i.label){case 0:return r=this.buildBatchBody(),t=[],this.batch.length>0?[4,this.requestBatch(r)]:[3,2];case 1:n=i.sent(),t.push.apply(t,n),i.label=2;case 2:return this.processBatchResponse(t),this.batch.length>0&&this.retries>0&&(this.retries--,this.executeBatch()),[2]}})})},e.prototype.buildBatchBody=function(){var r=this,t="";return this.batch.forEach(function(n){if(t+="--".concat(r.batchSeparator,`
|
|
38
|
+
Content-type: application/http
|
|
39
|
+
Content-Transfer-Encoding: binary
|
|
40
|
+
|
|
41
|
+
`),t+="".concat(n.method," ").concat(n.url,` HTTP/1.1
|
|
42
|
+
`),n.headers)for(var i in n.headers)t+="".concat(i,": ").concat(n.headers[i],`
|
|
43
|
+
`);if(n.body){var o=new TextEncoder,s=o.encode(n.body),l=s.length;t+="Content-Length: ".concat(l,`
|
|
44
|
+
`),t+=`
|
|
45
|
+
`,t+="".concat(n.body)}t+=`
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
`}),t+="--".concat(this.batchSeparator,"--"),t},e.prototype.extractJSONFromBody=function(r){var t=r.indexOf("{");if(t!==-1){var n=r.substring(t),i=n.lastIndexOf("}")+1;if(i!==-1){var o=n.substring(0,i);try{return JSON.parse(o),o}catch(s){return console.error("Error parsing JSON:",s),null}}else return console.error("End of JSON data not found in the input text."),null}else return console.error("JSON data not found in the input text."),null},e.prototype.processBatchResponse=function(r){var t=this,n=[],i=new Map;this.registeredPromises.forEach(function(o,s){var l=r[s],u=t.extractJSONFromBody(l);t.handleSingleResponse(u,o)}),n.length>0?(this.registeredPromises=i,this.batch=n):(this.batch=[],this.registeredPromises.clear())},e.prototype.handleSingleResponse=function(r,t){var n=r;r?t.resolve({json:function(){return Promise.resolve(JSON.parse(n))},ok:!0,text:function(){return Promise.resolve(n)}}):t.error({json:function(){return Promise.resolve(JSON.parse(n))},ok:!1,text:function(){return Promise.resolve(n)}})},e.maxRetries=5,e}(),us=function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function l(c){try{a(n.next(c))}catch(d){s(d)}}function u(c){try{a(n.throw(c))}catch(d){s(d)}}function a(c){c.done?o(c.value):i(c.value).then(l,u)}a((n=n.apply(e,r||[])).next())})},ds=function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(a){return function(c){return u([a,c])}}function u(a){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,i=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1],o=a;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(a);break}o[2]&&t.ops.pop(),t.trys.pop();continue}a=r.call(e,t)}catch(c){a=[6,c],i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},Bh=function(){function e(r,t,n,i,o){n===void 0&&(n="/api/data/v9.2"),i===void 0&&(i=500),o===void 0&&(o=15);var s=this;this.baseClient=r,this.dataverseEnvUri=t,this.apiPath=n,this.batchWaitTime=i,this.batchSplitThreshold=o,this.promiseIdGenerator=new _h,this.registeredPromises=new Map,this.batch=[],this.generateBatch=function(){return us(s,void 0,void 0,function(){var l,u,a,c,d,g;return ds(this,function(f){switch(f.label){case 0:l=_o.splitToMaxLength(this.batch,this.batchSplitThreshold),u=0,a=l,f.label=1;case 1:return u<a.length?(c=a[u],d=_o.getSubMap(this.registeredPromises,c.map(function(h){return h.id})),g=new cs(this.baseClient,this.dataverseEnvUri,this.apiPath,d,c,cs.maxRetries),this.batch=[],this.promiseIdGenerator.reset(),this.registeredPromises.clear(),[4,g.executeBatch()]):[3,4];case 2:f.sent(),f.label=3;case 3:return u++,[3,1];case 4:return[2]}})})}}return e.prototype.get=function(r,t){return us(this,void 0,void 0,function(){var n,i,o=this;return ds(this,function(s){return n=this.promiseIdGenerator.getNextId(),i=new Promise(function(l,u){o.batch.length===0&&setTimeout(o.generateBatch,o.batchWaitTime),o.registeredPromises.set(n,{resolve:l,error:u}),o.batch.push({url:r,id:n,method:"GET",headers:t==null?void 0:t.headers})}),[2,i]})})},e.prototype.post=function(r,t){var n=this,i=this.promiseIdGenerator.getNextId(),o=new Promise(function(s,l){n.batch.length===0&&setTimeout(n.generateBatch,n.batchWaitTime),n.registeredPromises.set(i,{resolve:s,error:l}),n.batch.push({url:r,id:i,method:"POST",body:t==null?void 0:t.body,headers:t==null?void 0:t.headers})});return o},e.prototype.patch=function(r,t){return this.baseClient.patch(r,t)},e.prototype.put=function(r,t){return this.baseClient.put(r,t)},e.prototype.delete=function(r){return this.baseClient.delete(r)},e}(),gr=function(){return gr=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},gr.apply(this,arguments)},vr=function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function l(c){try{a(n.next(c))}catch(d){s(d)}}function u(c){try{a(n.throw(c))}catch(d){s(d)}}function a(c){c.done?o(c.value):i(c.value).then(l,u)}a((n=n.apply(e,r||[])).next())})},mr=function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(a){return function(c){return u([a,c])}}function u(a){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,i=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1],o=a;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(a);break}o[2]&&t.ops.pop(),t.trys.pop();continue}a=r.call(e,t)}catch(c){a=[6,c],i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},fs={headers:{"content-type":"application/json;odata=nometadata",accept:"application/json;odata=nometadata"}},Ch=function(){function e(r,t,n,i,o){i===void 0&&(i=[]),this.spHttpClient=r,this.siteUrl=t,this.listId=n,this.selectedFields=i,this.mapMethod=o,this.pageSize=25,this.orderBy="ID",this.orderDir="DESC",this.lastValue="",this.previousPages=[],this.previousPageIndex=-1,this.currentLink="",this.query="",this.lastId=0,this.lastRow=0,this.allItemsCount=0,this.recursive=!0}return e.prototype.getData=function(){return vr(this,void 0,void 0,function(){var r;return mr(this,function(t){switch(t.label){case 0:return this.previousPageIndex=-1,this.previousPages=[],this.currentLink="".concat(this.siteUrl,"/_api/web/lists('").concat(this.listId,"')/RenderListDataAsStream?TryNewExperienceSingle=TRUE&Paged=TRUE"),[4,Promise.all([this.getDataWithAPI(this.currentLink),this.getAllItemsCount()])];case 1:return r=t.sent()[0],[2,r]}})})},e.prototype.getAllItemsCount=function(){return vr(this,void 0,void 0,function(){var n,r,t,n,i;return mr(this,function(o){switch(o.label){case 0:return this.query?[3,4]:[4,this.spHttpClient.get("".concat(this.siteUrl,"/_api/web/lists('").concat(this.listId,"')?$select=itemCount"),{headers:{accept:"application/json","content-type":"application/json;odata=verbose"}})];case 1:return n=o.sent(),n.ok?[4,this.getResponse(n)]:[3,3];case 2:r=o.sent(),this.allItemsCount=r.ItemCount,o.label=3;case 3:return[3,7];case 4:return t='<View Scope="RecursiveAll"><Query><Where>'.concat(this.query,"</Where><ViewFields><FieldRef Name='ID' /></ViewFields></Query></View>"),[4,this.spHttpClient.post("".concat(this.siteUrl,"/_api/web/lists('").concat(this.listId,"')/RenderListDataAsStream"),gr(gr({},fs),{body:JSON.stringify(this.buildPostBody(t))}))];case 5:return n=o.sent(),n.ok?(i=this,[4,this.getResponse(n)]):[3,7];case 6:i.allItemsCount=o.sent().Row.length,o.label=7;case 7:return[2,this.allItemsCount]}})})},e.prototype.setOrder=function(r,t){this.orderBy=r,this.orderDir=t},e.prototype.getCamlQuery=function(){return!this.query&&!this.orderBy?"":"<Query>".concat(this.query?"<Where>".concat(this.query,"</Where>"):"",'<OrderBy><FieldRef Name="').concat(this.orderBy,'" Ascending="').concat(this.orderDir==="ASC"?"TRUE":"FALSE",'"/></OrderBy><ViewFields>').concat(this.selectedFields.map(function(r){return"<FieldRef Name='".concat(r,"' />")}).join(""),"</ViewFields></Query>")},e.prototype.buildPostBody=function(r){return{parameters:{RenderOptions:2,ViewXml:r}}},e.prototype.getQuery=function(){return this.query},e.prototype.getCurrentPage=function(){return this.previousPageIndex+1},e.prototype.getResponse=function(r){return vr(this,void 0,void 0,function(){return mr(this,function(t){switch(t.label){case 0:return[4,r.json()];case 1:return[2,t.sent()]}})})},e.prototype.getDataWithAPI=function(r){return vr(this,void 0,void 0,function(){var t,n,i;return mr(this,function(o){switch(o.label){case 0:return[4,this.spHttpClient.post(r,gr(gr({},fs),{body:JSON.stringify(this.buildPostBody("<View".concat(this.recursive?' Scope="RecursiveAll"':"",">").concat(this.getCamlQuery(),"<RowLimit>").concat(this.pageSize,"</RowLimit></View>")))}))];case 1:return t=o.sent(),t.ok?[4,this.getResponse(t)]:[3,3];case 2:return n=o.sent(),n.Row.length>0&&(this.lastValue=n.Row[n.Row.length-1][this.orderBy],this.lastValue=this.getLastFieldValue(n.Row),this.lastId=n.Row[n.Row.length-1].ID,this.lastRow=n.LastRow),this.mapMethod?[2,n.Row.map(this.mapMethod)]:[2,n.Row];case 3:return i=Error.bind,[4,t.text()];case 4:throw new(i.apply(Error,[void 0,o.sent()]))}})})},e.prototype.getLastFieldValue=function(r){return r[r.length-1][this.orderBy]},e.prototype.setQuery=function(r){this.query=r},e.prototype.getNextPage=function(){return vr(this,void 0,void 0,function(){var r=this;return mr(this,function(t){return this.previousPages.find(function(n){return n===r.currentLink})?this.previousPageIndex=this.previousPages.findIndex(function(n){return n===r.currentLink}):(this.previousPages.push(this.currentLink),this.previousPageIndex=this.previousPages.length-1),this.currentLink="".concat(this.siteUrl,"/_api/web/lists('").concat(this.listId,"')/RenderListDataAsStream?TryNewExperienceSingle=TRUE&Paged=TRUE&p_").concat(this.orderBy,"=").concat(encodeURIComponent(this.lastValue).toLocaleLowerCase(),"&p_ID=").concat(this.lastId,"&SortField=").concat(this.orderBy,"&SortDir=").concat(this.orderDir==="ASC"?"Asc":"Desc","&PageFirstRow=").concat(this.lastRow+1),[2,this.getDataWithAPI(this.currentLink)]})})},e.prototype.isNextPageAvailable=function(){return this.previousPageIndex+2<=Math.floor(this.allItemsCount/this.pageSize)},e.prototype.getPreviousPage=function(){return vr(this,void 0,void 0,function(){return mr(this,function(r){return this.currentLink=this.previousPages[this.previousPageIndex],this.previousPageIndex--,[2,this.getDataWithAPI(this.currentLink)]})})},e.prototype.isPreviousPageAvailable=function(){return this.previousPageIndex>=0},e}(),Gr=function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function l(c){try{a(n.next(c))}catch(d){s(d)}}function u(c){try{a(n.throw(c))}catch(d){s(d)}}function a(c){c.done?o(c.value):i(c.value).then(l,u)}a((n=n.apply(e,r||[])).next())})},Ur=function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(a){return function(c){return u([a,c])}}function u(a){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,i=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1],o=a;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(a);break}o[2]&&t.ops.pop(),t.trys.pop();continue}a=r.call(e,t)}catch(c){a=[6,c],i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},Ph=function(){function e(r,t,n){n===void 0&&(n=!1),this.graphClient=r,this.resourceQuery=t,this.skipCountCheck=n,this.filterQuery="",this.orderQuery="",this.nextPageLink="",this.previousPages=[],this.previousPageIndex=-1,this.pageSize=25,this.allItemsCount=-1}return e.prototype.getAllItemsCount=function(){return Gr(this,void 0,void 0,function(){var r,t,n,i;return Ur(this,function(o){switch(o.label){case 0:return this.skipCountCheck?[2,-1]:(r=this.getQuery(),t="".concat(this.resourceQuery,"/$count"),this.getQuery()&&(t+="?$filter=".concat(r)),[4,this.graphClient.get(t)]);case 1:return n=o.sent(),n.ok?(i=parseInt,[4,n.text()]):[3,3];case 2:return[2,i.apply(void 0,[o.sent(),10])];case 3:return[2]}})})},e.prototype.getData=function(){return Gr(this,void 0,void 0,function(){var r,t,n;return Ur(this,function(i){switch(i.label){case 0:return[4,Promise.all([this.callGraphAPI(this.buildInitialQuery()),this.getAllItemsCount()])];case 1:return r=i.sent(),t=r[0],n=r[1],this.allItemsCount=n,[2,t]}})})},e.prototype.buildInitialQuery=function(){var r=this.getQuery(),t="".concat(this.resourceQuery,"?$top=").concat(this.pageSize);return this.orderQuery&&(t+="&$orderBy=".concat(this.orderQuery)),r&&(t+="&$filter=".concat(r)),t},e.prototype.callGraphAPI=function(r){return Gr(this,void 0,void 0,function(){var t,n,i,o;return Ur(this,function(s){switch(s.label){case 0:return[4,this.graphClient.get(r)];case 1:return t=s.sent(),t.ok?[4,t.json()]:[3,3];case 2:return n=s.sent(),i=n.value,this.nextPageLink=n["@odata.nextLink"],[2,i];case 3:return o=Error.bind,[4,t.text()];case 4:throw new(o.apply(Error,[void 0,s.sent()]))}})})},e.prototype.setQuery=function(r){this.filterQuery=r},e.prototype.getQuery=function(){return this.filterQuery},e.prototype.setOrder=function(r,t){this.orderQuery="".concat(r," ").concat(t.toLocaleLowerCase())},e.prototype.getNextPage=function(){return Gr(this,void 0,void 0,function(){return Ur(this,function(r){return this.isNextPageAvailable()?(this.previousPageIndex++,this.previousPages.push(this.nextPageLink),[2,this.callGraphAPI(this.nextPageLink)]):[2,[]]})})},e.prototype.isNextPageAvailable=function(){return!!this.nextPageLink},e.prototype.getPreviousPage=function(){return Gr(this,void 0,void 0,function(){var r,t;return Ur(this,function(n){switch(n.label){case 0:return this.isPreviousPageAvailable()?(r=this.previousPages[this.previousPageIndex],[4,this.callGraphAPI(r)]):[2,[]];case 1:return t=n.sent(),this.previousPageIndex--,[2,t]}})})},e.prototype.isPreviousPageAvailable=function(){return this.previousPageIndex>=0&&!!this.previousPages[this.previousPageIndex]},e.prototype.getCurrentPage=function(){return this.previousPageIndex+1},e}(),Nt=function(){return Nt=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Nt.apply(this,arguments)},So=function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function l(c){try{a(n.next(c))}catch(d){s(d)}}function u(c){try{a(n.throw(c))}catch(d){s(d)}}function a(c){c.done?o(c.value):i(c.value).then(l,u)}a((n=n.apply(e,r||[])).next())})},Bo=function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(a){return function(c){return u([a,c])}}function u(a){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,i=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1],o=a;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(a);break}o[2]&&t.ops.pop(),t.trys.pop();continue}a=r.call(e,t)}catch(c){a=[6,c],i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},Vn=function(){function e(r,t,n){t===void 0&&(t=["listItem"]),n===void 0&&(n=["id","title","url"]),this.graphClient=r,this.entityTypes=t,this.selectFields=n,this.currentPage=0,this.pageSize=25,this.allItemsCount=-1,this.graphSearchEndpoint="https://graph.microsoft.com/beta/search/query"}return e.prototype.setRefiners=function(r){this.requestedRefiners=r||[]},e.prototype.applyRefiners=function(r){this.filters=r||void 0},e.prototype.buildSearchRequest=function(){var r,t={requests:[{entityTypes:this.entityTypes,from:this.currentPage*this.pageSize,to:(this.currentPage+1)*this.pageSize,query:null,sortProperties:null,fields:null,aggregations:this.requestedRefiners,aggregationFilters:((r=this.filters)===null||r===void 0?void 0:r.map(function(n){return"".concat(n.field,":").concat(n.filterValue)}))||void 0,size:this.pageSize}]};return this.getQuery()?(t.requests[0].query={queryString:this.getQuery()},this.queryTemplate&&(t.requests[0].query.queryTemplate=this.queryTemplate)):(t.requests[0].query={queryString:"*"},this.queryTemplate&&(t.requests[0].query.queryTemplate=this.queryTemplate)),this.orderColumn&&(t.requests[0].sortProperties=[{name:this.orderColumn,isDescending:this.isDescending}]),this.selectFields&&this.selectFields.length>0&&(t.requests[0].fields=this.selectFields),t},e.prototype.callForData=function(){return So(this,void 0,void 0,function(){var r,t,n,i;return Bo(this,function(o){switch(o.label){case 0:return[4,this.graphClient.post(this.graphSearchEndpoint,{body:JSON.stringify(this.buildSearchRequest()),headers:{accept:"application/json","content-type":"application/json"}})];case 1:return r=o.sent(),r.ok?[4,r.json()]:[3,3];case 2:return t=o.sent(),n=t.value[0].hitsContainers[0],this.allItemsCount=n.total,this.parseAggregations(n),this.allItemsCount>0?[2,n.hits.map(function(s){return Nt(Nt({},s.resource),{type:s.resource["@odata.type"],hitResourceIdId:s.resource.id,hitId:s.hitId,hitRank:s.rank,hitHighlights:s.highlights,hitSummary:s.summary})})]:[2,[]];case 3:return i=Error.bind,[4,r.text()];case 4:throw new(i.apply(Error,[void 0,o.sent()]))}})})},e.prototype.getData=function(){return So(this,void 0,void 0,function(){return Bo(this,function(r){return this.currentPage=0,[2,this.callForData()]})})},e.prototype.parseAggregations=function(r){try{this.currentAggregations=r.aggregations.map(function(t){return Nt(Nt({},t),{buckets:t.buckets.map(function(n){return Nt(Nt({},n),{value:n.value,count:n.count})})})})}catch{this.currentAggregations=[]}},e.prototype.setQuery=function(r){this.query=r},e.prototype.getQuery=function(){return this.query},e.prototype.setOrder=function(r,t){this.orderColumn=r,this.isDescending=t==="DESC"},e.prototype.getNextPage=function(){return So(this,void 0,void 0,function(){return Bo(this,function(r){return this.isNextPageAvailable()?(this.currentPage++,[2,this.callForData()]):[2,[]]})})},e.prototype.isNextPageAvailable=function(){return(this.currentPage+1)*this.pageSize<this.allItemsCount},e.prototype.getPreviousPage=function(){return So(this,void 0,void 0,function(){return Bo(this,function(r){return this.isPreviousPageAvailable()?(this.currentPage--,[2,this.callForData()]):[2,[]]})})},e.prototype.isPreviousPageAvailable=function(){return this.currentPage>0},e.prototype.getCurrentPage=function(){return this.currentPage},e.prototype.jumpToAPage=function(r){return this.currentPage=r,this.callForData()},e}(),Th=function(){var e=function(r,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),$n=function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function l(c){try{a(n.next(c))}catch(d){s(d)}}function u(c){try{a(n.throw(c))}catch(d){s(d)}}function a(c){c.done?o(c.value):i(c.value).then(l,u)}a((n=n.apply(e,r||[])).next())})},Gn=function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(a){return function(c){return u([a,c])}}function u(a){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,i=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1],o=a;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(a);break}o[2]&&t.ops.pop(),t.trys.pop();continue}a=r.call(e,t)}catch(c){a=[6,c],i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},Eh=function(e){Th(r,e);function r(t,n,i){n===void 0&&(n=!0),i===void 0&&(i=!0);var o=e.call(this,t,"https://graph.microsoft.com/v1.0/me/people",!0)||this;return o.loadPresence=n,o.loadPhoto=i,o.personTypeClass="Person",o.pageSize=7,o}return r.prototype.callGraphAPI=function(t){return $n(this,void 0,void 0,function(){var n,i;return Gn(this,function(o){switch(o.label){case 0:return[4,e.prototype.callGraphAPI.call(this,t)];case 1:return n=o.sent(),i=[],this.loadPresence&&i.push.apply(i,n.map(this.appendPresence.bind(this))),this.loadPhoto&&i.push.apply(i,n.map(this.appendPhoto.bind(this))),i.length>0?[4,Promise.all(i)]:[3,3];case 2:o.sent(),o.label=3;case 3:return[2,n]}})})},r.prototype.appendPresence=function(t){return $n(this,void 0,void 0,function(){var n,i;return Gn(this,function(o){switch(o.label){case 0:return[4,this.graphClient.get("v1.0/users/".concat(t.id,"/presence"))];case 1:return n=o.sent(),n.ok?(i=t,[4,n.json()]):[3,3];case 2:i.presence=o.sent(),o.label=3;case 3:return[2]}})})},r.prototype.appendPhoto=function(t){return $n(this,void 0,void 0,function(){var n,i;return Gn(this,function(o){switch(o.label){case 0:return[4,this.graphClient.get("/v1.0/users/".concat(t.id,"/photo/$value"))];case 1:return n=o.sent(),n.ok?(i=t,[4,n.text()]):[3,3];case 2:i.photo=o.sent(),o.label=3;case 3:return[2]}})})},r.prototype.buildInitialQuery=function(){var t=this.getQuery(),n="".concat(this.resourceQuery,"?$top=").concat(this.pageSize);return this.orderQuery&&(n+="&$orderBy=".concat(this.orderQuery)),t&&(n+="&$search=".concat(t)),this.personTypeClass&&(n+="&$filter=personType/class eq '".concat(this.personTypeClass,"'")),n},r}(Ph),Kr=function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function l(c){try{a(n.next(c))}catch(d){s(d)}}function u(c){try{a(n.throw(c))}catch(d){s(d)}}function a(c){c.done?o(c.value):i(c.value).then(l,u)}a((n=n.apply(e,r||[])).next())})},Xr=function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(a){return function(c){return u([a,c])}}function u(a){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,i=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1],o=a;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(a);break}o[2]&&t.ops.pop(),t.trys.pop();continue}a=r.call(e,t)}catch(c){a=[6,c],i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},hs=function(){function e(r,t,n,i,o){n===void 0&&(n=!1),i===void 0&&(i=""),o===void 0&&(o=""),this.apiClient=r,this.resourceQuery=t,this.skipCountCheck=n,this.expandQuery=i,this.selectQuery=o,this.filterQuery="",this.orderQuery="",this.previousPages=new Map,this.currentPage=0,this.pageSize=25,this.allItemsCount=-1}return e.prototype.getAllItemsCount=function(){return Kr(this,void 0,void 0,function(){var r,t,n,i;return Xr(this,function(o){switch(o.label){case 0:return this.skipCountCheck?[2,1/0]:(r=this.getQuery(),t="".concat(this.resourceQuery,"/$count"),this.getQuery()&&(t+="?$filter=".concat(r)),[4,this.apiClient.get(t)]);case 1:return n=o.sent(),n.ok?(i=parseInt,[4,n.text()]):[3,3];case 2:return[2,i.apply(void 0,[o.sent(),10])];case 3:return[2]}})})},e.prototype.getData=function(){return Kr(this,void 0,void 0,function(){var r,t,n;return Xr(this,function(i){switch(i.label){case 0:return[4,Promise.all([this.callGraphAPI(this.buildInitialQuery()),this.getAllItemsCount()])];case 1:return r=i.sent(),t=r[0],n=r[1],this.allItemsCount=n,[2,t]}})})},e.prototype.buildInitialQuery=function(){var r=this.getQuery(),t="".concat(this.resourceQuery,"?$top=").concat(this.pageSize);return this.orderQuery&&(t+="&$orderby=".concat(this.orderQuery)),r&&(t+="&$filter=".concat(r)),this.expandQuery&&(t+="&$expand=".concat(this.expandQuery)),this.selectQuery&&(t+="&$select=".concat(this.selectQuery)),t},e.prototype.callGraphAPI=function(r){return Kr(this,void 0,void 0,function(){var t,n,i,o;return Xr(this,function(s){switch(s.label){case 0:return[4,this.apiClient.get(r)];case 1:return t=s.sent(),t.ok?[4,t.json()]:[3,3];case 2:return n=s.sent(),i=n.value,this.previousPages.set(this.currentPage+1,n["@odata.nextLink"]),[2,i];case 3:return o=Error.bind,[4,t.text()];case 4:throw new(o.apply(Error,[void 0,s.sent()]))}})})},e.prototype.setQuery=function(r){this.filterQuery=r},e.prototype.getQuery=function(){return this.filterQuery},e.prototype.setOrder=function(r,t){this.orderQuery="".concat(r," ").concat(t.toLocaleLowerCase())},e.prototype.getNextPage=function(){return Kr(this,void 0,void 0,function(){var r;return Xr(this,function(t){return this.isNextPageAvailable()?(this.currentPage++,r=this.previousPages.get(this.currentPage),r||(r=this.buildInitialQuery(),r+="&$skip="+this.currentPage*this.pageSize),[2,this.callGraphAPI(r)]):[2,[]]})})},e.prototype.isNextPageAvailable=function(){return!!this.previousPages.get(this.currentPage+1)||(this.currentPage+1)*this.pageSize<this.allItemsCount},e.prototype.getPreviousPage=function(){return Kr(this,void 0,void 0,function(){var r,t;return Xr(this,function(n){switch(n.label){case 0:return this.isPreviousPageAvailable()?(this.currentPage--,r=this.previousPages.get(this.currentPage),r||(r=this.buildInitialQuery(),this.currentPage*this.pageSize>0&&(r+="&$skip="+this.currentPage*this.pageSize)),[4,this.callGraphAPI(r)]):[2,[]];case 1:return t=n.sent(),[2,t]}})})},e.prototype.isPreviousPageAvailable=function(){return this.currentPage>0},e.prototype.getCurrentPage=function(){return this.currentPage},e}(),Nh=function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function l(c){try{a(n.next(c))}catch(d){s(d)}}function u(c){try{a(n.throw(c))}catch(d){s(d)}}function a(c){c.done?o(c.value):i(c.value).then(l,u)}a((n=n.apply(e,r||[])).next())})},Rh=function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(a){return function(c){return u([a,c])}}function u(a){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,i=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1],o=a;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(a);break}o[2]&&t.ops.pop(),t.trys.pop();continue}a=r.call(e,t)}catch(c){a=[6,c],i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},zh=function(){function e(r,t,n,i,o){i===void 0&&(i=""),o===void 0&&(o=12),this.graphClient=r,this.dataSource=t,this.resourceMetadata=n,this.filterExpresssion=i,this.maximumNumberOfResults=o}return e.prototype.getData=function(r){return Nh(this,void 0,void 0,function(){var t,n;return Rh(this,function(i){switch(i.label){case 0:return[4,this.graphClient.post("https://graph.microsoft.com/beta/copilot/retrieval",{headers:{accept:"application/json","content-type":"application/json"},body:JSON.stringify({queryString:r,dataSource:this.dataSource,resourceMetadata:this.resourceMetadata,maximumNumberOfResults:this.maximumNumberOfResults,filterExpresssion:this.filterExpresssion})})];case 1:if(t=i.sent(),!t.ok)throw new Error(t.statusText);return[4,t.json()];case 2:return n=i.sent(),[2,n.retrievalHits]}})})},e}(),Dh=function(){var e=function(r,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),gs=function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function l(c){try{a(n.next(c))}catch(d){s(d)}}function u(c){try{a(n.throw(c))}catch(d){s(d)}}function a(c){c.done?o(c.value):i(c.value).then(l,u)}a((n=n.apply(e,r||[])).next())})},vs=function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(a){return function(c){return u([a,c])}}function u(a){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,i=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1],o=a;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(a);break}o[2]&&t.ops.pop(),t.trys.pop();continue}a=r.call(e,t)}catch(c){a=[6,c],i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},Fh=function(e){Dh(r,e);function r(t,n,i,o,s){o===void 0&&(o=""),s===void 0&&(s="");var l=e.call(this,t,"".concat(n,"/api/data/v9.0/").concat(i),!1,o,s)||this;return l.dataverseEnv=n,l.tableName=i,l}return r.prototype.getData=function(){return gs(this,void 0,void 0,function(){var t;return vs(this,function(n){switch(n.label){case 0:return[4,this.callGraphAPI(this.buildInitialQuery())];case 1:return t=n.sent(),[2,t]}})})},r.prototype.buildInitialQuery=function(){var t=this.getQuery(),n=new URL(this.resourceQuery);return this.orderQuery&&n.searchParams.set("$orderby",this.orderQuery),t&&n.searchParams.set("$filter",t),this.expandQuery&&n.searchParams.set("$expand",this.expandQuery),this.selectQuery&&n.searchParams.set("$select",this.selectQuery),n.searchParams.set("$count","true"),n.toString()},r.prototype.callGraphAPI=function(t){return gs(this,void 0,void 0,function(){var n,i,o,s;return vs(this,function(l){switch(l.label){case 0:return[4,this.apiClient.get(t,{headers:{Prefer:"odata.maxpagesize=".concat(this.pageSize),"OData-MaxVersion":"4.0","OData-Version":"4.0",accept:"application/json"}})];case 1:return n=l.sent(),n.ok?[4,n.json()]:[3,3];case 2:return i=l.sent(),o=i.value,this.previousPages.set(this.currentPage+1,i["@odata.nextLink"]),this.allItemsCount=i["@odata.count"],[2,o];case 3:return s=Error.bind,[4,n.text()];case 4:throw new(s.apply(Error,[void 0,l.sent()]))}})})},r}(hs),ms=function(){return ms=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ms.apply(this,arguments)},Ih=function(e,r,t,n){var i=arguments.length,o=i<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,r,t,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(i<3?s(o):i>3?s(r,t,o):s(r,t))||o);return i>3&&o&&Object.defineProperty(r,t,o),o},Rt=function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function l(c){try{a(n.next(c))}catch(d){s(d)}}function u(c){try{a(n.throw(c))}catch(d){s(d)}}function a(c){c.done?o(c.value):i(c.value).then(l,u)}a((n=n.apply(e,r||[])).next())})},zt=function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(a){return function(c){return u([a,c])}}function u(a){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,i=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1],o=a;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(a);break}o[2]&&t.ops.pop(),t.trys.pop();continue}a=r.call(e,t)}catch(c){a=[6,c],i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};(function(){function e(r,t){t===void 0&&(t=!0);var n=this;this.config=r,this.usePopup=t,this.resourceTokenMap=new Map,this.resourceScopeMap=new Map,this.cacheService=new jn,this.getCodeFromLoginWindow=function(i,o){try{var s=new URLSearchParams(i==null?void 0:i.location.search),l=s.get("code");l?(o(l),i.close()):i&&setTimeout(function(){return n.getCodeFromLoginWindow(i,o)})}catch{i&&setTimeout(function(){return n.getCodeFromLoginWindow(i,o)},1e3)}},this.config.tenantId=r.tenantId||"common",this.config.redirectUri=r.redirectUri||window.location.origin,this.getCodeVerifier(),this.state=as(108)}return e.prototype.getCodeVerifier=function(){this.cacheService.get("msal.codeVerifier")?this.codeVerifier=this.cacheService.get("msal.codeVerifier"):this.codeVerifier=as(43)},e.prototype.buildLoginUrl=function(r){var t=new URL("https://login.microsoftonline.com/".concat(this.config.tenantId||"common","/oauth2/v2.0/authorize"));return t.searchParams.append("client_id",this.config.clientId),t.searchParams.append("scope","".concat(r,"/.default openid profile offline_access")),t.searchParams.append("redirect_uri",this.config.redirectUri),t.searchParams.append("client-request-id",Sh()),t.searchParams.append("response_mode","query"),t.searchParams.append("response_type","code"),t.searchParams.append("code_challenge",this.codeVerifier),t.searchParams.append("code_challenge_method","plain"),t.searchParams.append("prompt","select_account"),t.searchParams.append("client_info","1"),t.searchParams.append("nonce","8a9afd0b-47f6-4678-9289-1b1bf5bfa20f"),t.searchParams.append("state",this.state),t.toString()},e.prototype.loginUser=function(r){return Rt(this,void 0,void 0,function(){var t,n,i,o,s,l,u,a=this;return zt(this,function(c){switch(c.label){case 0:return t=this.buildLoginUrl(r),n="",this.usePopup?(i=window.open(t,"login","width=600,height=600"),i?[4,new Promise(function(d,g){return a.getCodeFromLoginWindow(i,function(f){n=f,d()})})]:[3,2]):[3,3];case 1:c.sent(),c.label=2;case 2:return[3,4];case 3:if(o=new URLSearchParams(window.location.search),s=o.get("code"),l=o.get("error"),s)return this.cacheService.remove("msal.codeVerifier"),n=s,u=new URL(window.location.href),u.searchParams.delete("code"),u.searchParams.delete("state"),u.searchParams.delete("error"),u.searchParams.delete("client_info"),u.searchParams.delete("expires_in"),u.searchParams.delete("ext_expires_in"),u.searchParams.delete("session_state"),window.history.replaceState({},"",u.toString()),[2,n];if(l)throw u.searchParams.delete("error"),new Error(l);this.cacheService.set("msal.codeVerifier",this.codeVerifier),window.location.href=t,c.label=4;case 4:return[2,n]}})})},e.prototype.getAccessTokenFromCode=function(r,t){return Rt(this,void 0,void 0,function(){var n,i,o,s,l;return zt(this,function(u){switch(u.label){case 0:return[4,fetch("https://login.microsoftonline.com/".concat(this.config.tenantId||"common","/oauth2/v2.0/token"),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",accept:"application/json"},body:new URLSearchParams({client_id:this.config.clientId,scope:"".concat(r,"/.default openid profile offline_access"),redirect_uri:this.config.redirectUri,grant_type:"authorization_code",code:t,code_verifier:this.codeVerifier})})];case 1:return n=u.sent(),n.ok?[4,n.json()]:[3,3];case 2:return i=u.sent(),[2,i];case 3:return s=(o=console).log,l=["Unable to get access token from code",n.status,n.statusText],[4,n.text()];case 4:throw s.apply(o,l.concat([u.sent()])),new Error("Unable to get access token from code")}})})},e.prototype.getAccessTokenFromRefreshToken=function(r,t){return Rt(this,void 0,void 0,function(){var n,i,o,s;return zt(this,function(l){switch(l.label){case 0:return[4,fetch("https://login.microsoftonline.com/".concat(this.config.tenantId||"common","/oauth2/v2.0/token"),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",accept:"application/json"},body:new URLSearchParams({client_id:this.config.clientId,scope:"".concat(r,"/.default openid profile offline_access"),grant_type:"refresh_token",refresh_token:t})})];case 1:return n=l.sent(),n.ok?[4,n.json()]:[3,3];case 2:return i=l.sent(),[2,i];case 3:return l.trys.push([3,5,,7]),[4,n.json()];case 4:return o=l.sent(),o.error_codes&&o.error_codes.length>0&&o.error_codes[0]===700084&&(this.cacheService.remove("msal.".concat(this.config.clientId,".").concat(r,".authResult")),this.resourceTokenMap.has(r)&&this.resourceTokenMap.delete(r)),[2,this.getAuthResult(r)];case 5:return l.sent(),[4,n.text()];case 6:throw s=l.sent(),new Error(s);case 7:return[2]}})})},e.prototype.getAuthResult=function(r){return Rt(this,void 0,void 0,function(){var t,n;return zt(this,function(i){switch(i.label){case 0:if(t=this.cacheService.get("msal.".concat(this.config.clientId,".").concat(r,".authResult")),!t)return[3,2];try{if(On.isTokenValid(t.access_token))return[2,t]}catch{console.log("Unable to verify token validity")}return t.refresh_token?[4,this.getAccessTokenFromRefreshToken(r,t.refresh_token)]:[3,2];case 1:return t=i.sent(),this.resourceTokenMap.set(r,t.access_token),this.cacheService.set("msal.".concat(this.config.clientId,".").concat(r,".authResult"),t),[2,t];case 2:return[4,this.loginUser(r)];case 3:return n=i.sent(),[4,this.getAccessTokenFromCode(r,n)];case 4:return t=i.sent(),this.cacheService.set("msal.".concat(this.config.clientId,".").concat(r,".authResult"),t),this.resourceTokenMap.set(r,t.access_token),[2,t]}})})},e.prototype.isAuthenticated=function(){return Rt(this,void 0,void 0,function(){var r,t,n=this;return zt(this,function(i){return r=Object.keys(localStorage).find(function(o){return o.startsWith("msal.".concat(n.config.clientId,"."))&&o.endsWith(".authResult")}),r?(t=this.cacheService.get(r),[2,!!(t!=null&&t.id_token)&&On.isTokenValid(t.id_token)]):[2,!1]})})},e.prototype.logout=function(){return Rt(this,void 0,void 0,function(){var r,t,n,i;return zt(this,function(o){for(this.resourceTokenMap.clear(),r=Object.keys(localStorage),t=0,n=r;t<n.length;t++)i=n[t],i.startsWith("msal.".concat(this.config.clientId,"."))&&this.cacheService.remove(i);return[2]})})},e.prototype.clearCache=function(){return Rt(this,void 0,void 0,function(){return zt(this,function(r){return this.resourceTokenMap.clear(),bh.clearStorageKeys(this.config.clientId),[2]})})},e.prototype.getAccessToken=function(r){return Rt(this,void 0,void 0,function(){var t,n;return zt(this,function(i){switch(i.label){case 0:return t=this.resourceTokenMap.get(r),t&&On.isTokenValid(t)?[2,t]:[4,this.getAuthResult(r)];case 1:return n=i.sent(),[2,n.access_token]}})})},Ih([An("msal-access-token-{0}")],e.prototype,"getAccessToken",null),e})();var ps=function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function l(c){try{a(n.next(c))}catch(d){s(d)}}function u(c){try{a(n.throw(c))}catch(d){s(d)}}function a(c){c.done?o(c.value):i(c.value).then(l,u)}a((n=n.apply(e,r||[])).next())})},bs=function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(a){return function(c){return u([a,c])}}function u(a){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,i=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1],o=a;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(a);break}o[2]&&t.ops.pop(),t.trys.pop();continue}a=r.call(e,t)}catch(c){a=[6,c],i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},pr={emptyMask:0,viewListItems:1,addListItems:2,editListItems:3,deleteListItems:4,approveItems:5,openItems:6,viewVersions:7,deleteVersions:8,cancelCheckout:9,managePersonalViews:10,manageLists:12,viewFormPages:13,anonymousSearchAccessList:14,open:17,viewPages:18,addAndCustomizePages:19,applyThemeAndBorder:20,applyStyleSheets:21,viewUsageData:22,createSSCSite:23,manageSubwebs:24,createGroups:25,managePermissions:26,browseDirectories:27,browseUserInfo:28,addDelPrivateWebParts:29,updatePersonalWebParts:30,manageWeb:31,anonymousSearchAccessWebLists:32,useClientIntegration:37,useRemoteAPIs:38,manageAlerts:39,createAlerts:40,editMyUserInfo:41,enumeratePermissions:63,fullMask:65},jh=function(){function e(r,t){this.spHttpClient=r,this.siteUrl=t}return e.hasPermission=function(r,t){if(t===65)return(r.High&32767)===32767&&r.Low===65535;var n=t-1,i=1;return n>0&&n<32?(i=i<<n,(r.Low&i)!==0):n>=32&&n<64?(i=i<<n-32,(r.High&i)!==0):!1},e.prototype.checkUserPermissions=function(r,t){return ps(this,void 0,void 0,function(){var n,i,o,s,l,u;return bs(this,function(a){switch(a.label){case 0:return n="".concat(this.siteUrl,"/_api/web").concat(t||"","/getUserEffectivePermissions('").concat(encodeURIComponent("i:0#.f|membership|"+r),"')"),[4,this.spHttpClient.get(n,{headers:{accept:"application/json"}})];case 1:return i=a.sent(),[4,i.json()];case 2:o=a.sent(),s=[];for(l in pr)u=e.hasPermission(o,pr[l]),u&&s.push(l);return[2,s]}})})},e.prototype.checkCurrentUserPermissions=function(r){return ps(this,void 0,void 0,function(){var t,n,i,o,s,l;return bs(this,function(u){switch(u.label){case 0:return t="".concat(this.siteUrl,"/_api/web/").concat(r,"/EffectiveBasePermission"),[4,this.spHttpClient.get(t,{headers:{accept:"application/json"}})];case 1:return n=u.sent(),[4,n.json()];case 2:i=u.sent(),o=[];for(s in pr)l=e.hasPermission(i,pr[s]),l&&o.push(s);return[2,o]}})})},e}(),br=function(){return br=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},br.apply(this,arguments)},Ah=function(e,r,t,n){var i=arguments.length,o=i<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,r,t,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(i<3?s(o):i>3?s(r,t,o):s(r,t))||o);return i>3&&o&&Object.defineProperty(r,t,o),o},Oh=function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function l(c){try{a(n.next(c))}catch(d){s(d)}}function u(c){try{a(n.throw(c))}catch(d){s(d)}}function a(c){c.done?o(c.value):i(c.value).then(l,u)}a((n=n.apply(e,r||[])).next())})},qh=function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(a){return function(c){return u([a,c])}}function u(a){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,i=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1],o=a;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(a);break}o[2]&&t.ops.pop(),t.trys.pop();continue}a=r.call(e,t)}catch(c){a=[6,c],i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};(function(){function e(r,t){this.graphClient=r,this.updatePresence=t,this.key="persona-cache-",this.cacheExpiration=1e3*60*60*4,this.storageService=new jn}return e.prototype.getUser=function(r,t){return t===void 0&&(t="48x48"),Oh(this,void 0,void 0,function(){var n,i,o,f,s,l,u,a,c,d,v,g,f,h,b,v,b;return qh(this,function(p){switch(p.label){case 0:return n=r,r&&r.indexOf("@")>-1?(i="/users/".concat(r,"?$select=id"),[4,this.graphClient.get(i)]):[3,3];case 1:return o=p.sent(),o.status===404?[2,null]:[4,o.json()];case 2:f=p.sent(),n=f.id,p.label=3;case 3:return s=this.storageService.get(this.key+r),l=s==null?void 0:s.data,u=n?"/users/".concat(n):"/me",!l||s.expiration<new Date().getTime()?[4,Promise.all([this.graphClient.get(u+"?$select=id,displayName,mail,jobTitle,department,officeLocation,mobilePhone,businessPhones,userPrincipalName,usageLocation"),this.graphClient.get(u+"/photos/".concat(t,"/$value")),this.graphClient.get(u+"/presence")])]:[3,6];case 4:return a=p.sent(),c=a[0],d=a[1],v=a[2],[4,Promise.all([c.json(),d.text(),v.json()])];case 5:return g=p.sent(),f=g[0],h=g[1],b=g[2],l=br(br({},f),{photo:"data:image/png;base64,".concat(h.replace('"',"").replace('"',"")),presence:b}),this.storageService.set(this.key+r,{data:l,expiration:new Date().getTime()+this.cacheExpiration}),[3,9];case 6:return this.updatePresence?[4,this.graphClient.get(u+"/presence")]:[3,9];case 7:return v=p.sent(),[4,v.json()];case 8:b=p.sent(),l=br(br({},l),{presence:b}),this.storageService.set(this.key+r,{data:l,expiration:new Date().getTime()+this.cacheExpiration}),p.label=9;case 9:return[2,l]}})})},Ah([An("getUser-{0}")],e.prototype,"getUser",null),e})();var ys=function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function l(c){try{a(n.next(c))}catch(d){s(d)}}function u(c){try{a(n.throw(c))}catch(d){s(d)}}function a(c){c.done?o(c.value):i(c.value).then(l,u)}a((n=n.apply(e,r||[])).next())})},ws=function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(a){return function(c){return u([a,c])}}function u(a){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,i=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1],o=a;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(a);break}o[2]&&t.ops.pop(),t.trys.pop();continue}a=r.call(e,t)}catch(c){a=[6,c],i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},Mh=function(){function e(r,t){this.searchClient=r,this.managedProperties=t,this.comparers=[":","=","<",">","<=",">="],this.queryTemplate=""}return e.prototype.getSuggestions=function(r){var t;return ys(this,void 0,void 0,function(){var n,i,o,s,u,l,u,a,c,d,g,f,h;return ws(this,function(v){switch(v.label){case 0:return n=r.split(" "),i=n[n.length-1],o=this.comparers.find(function(b){return i.indexOf(b)>0}),s=!0,o&&(u=i.split(o),i=u[u.length-1],s=!1),s?(l=this.managedProperties.filter(function(b){return b.toLocaleLowerCase().indexOf(i.toLowerCase())>=0}),[2,{value:l,areSuggestionsProps:!0}]):[3,1];case 1:return i=n[n.length-1],this.searchClient.pageSize=10,u=i.split(o),a=u[0],this.searchClient.selectFields=[a],this.searchClient.setRefiners([{field:"ManagedProperties",size:1,bucketDefinition:{sortBy:"count",isDescending:!0,minimumCount:1e3}}]),this.searchClient.setQuery(r+"*"),[4,this.searchClient.getData()];case 2:if(c=v.sent(),d=(t=c[0])===null||t===void 0?void 0:t.fields,d){g=a;for(f in d)f.toLocaleLowerCase()===a.toLocaleLowerCase()&&(g=f);return h=c.map(function(b){return b.fields[g]}),[2,{value:h.filter(function(b,p){return h.indexOf(b)===p}),areSuggestionsProps:!1}]}return[2,{value:[],areSuggestionsProps:!1}]}})})},e}(),Lh=function(){function e(r){this.graphClient=r}return e.prototype.withClient=function(r){return this.graphClient=r,this},e.prototype.withManagedPropertiesRelatedQuery=function(r){return this.query=r,this},e.prototype.build=function(){return ys(this,void 0,void 0,function(){var r,t,n;return ws(this,function(i){switch(i.label){case 0:return this.searchClient||(this.searchClient=new Vn(this.graphClient,["listItem"],["ID"])),this.searchClient.setRefiners([{field:"ManagedProperties",size:1e3,bucketDefinition:{sortBy:"count",isDescending:!0,minimumCount:1}}]),this.searchClient.setQuery(this.query||"*"),this.searchClient.pageSize=1,[4,this.searchClient.getData()];case 1:return i.sent(),r=this.searchClient.currentAggregations.find(function(o){return o.field==="ManagedProperties"}),t=r.buckets.map(function(o){return o.key}),n=new Mh(this.searchClient,t),this.query&&(n.queryTemplate="{searchTerms} AND ".concat(this.query)),[2,n]}})})},e}(),ks=function(){return ks=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ks.apply(this,arguments)};const Un=m.createContext({graphClient:new hr}),Ve=()=>m.useContext(Un),Hh=e=>{const{authProvider:r}=xo(),t=()=>{if(e.graphClient)return e.graphClient;if(r)return new xh(new Wn(r,new hr))},[n,i]=m.useState(t());return m.useEffect(()=>{i(t())},[e.graphClient,r]),n&&P.jsx(Un.Provider,{value:{graphClient:n},children:e.children})},Kn=m.createContext({spClient:new hr,siteUrl:""}),Xn=()=>m.useContext(Kn),Wh=e=>{const{authProvider:r}=xo(),t=()=>{if(e.spClient)return e.spClient;if(r){let o=new Wn(r,new hr);return o.resourceUri=new URL(e.siteUrl).origin,o}},[n,i]=m.useState(t());return m.useEffect(()=>{i(t())},[e.spClient,r]),n&&P.jsx(Kn.Provider,{value:{spClient:n,siteUrl:e.siteUrl},children:e.children})},Zn=m.createContext({dataverseClient:new hr}),xs=()=>m.useContext(Zn),Vh=e=>{const{authProvider:r}=xo(),t=()=>{if(e.dataverseClient)return e.dataverseClient;if(r){let o=new Wn(r,new hr);return o.resourceUri=e.dataverseResource,e.autoBatch&&(o=new Bh(o,e.dataverseResource,e.apiPath,500)),o}},[n,i]=m.useState(t());return m.useEffect(()=>{i(t())},[e.dataverseClient,r]),n&&P.jsx(Zn.Provider,{value:{dataverseClient:n,dataverseResource:e.dataverseResource},children:e.children})},$h=["Top","Right","Bottom","Left"];function Zr(e,r,...t){const[n,i=n,o=n,s=i]=t,l=[n,i,o,s],u={};for(let a=0;a<l.length;a+=1)if(l[a]||l[a]===0){const c=e+$h[a]+r;u[c]=l[a]}return u}function Qn(...e){return Zr("border","Width",...e)}function Yn(...e){return Zr("border","Style",...e)}function Jn(...e){return Zr("border","Color",...e)}const Gh=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function Qr(e){return Gh.includes(e)}function Uh(...e){return Qr(e[0])?Object.assign({},Yn(e[0]),e[1]&&Qn(e[1]),e[2]&&Jn(e[2])):Object.assign({},Qn(e[0]),e[1]&&Yn(e[1]),e[2]&&Jn(e[2]))}function Kh(...e){return Qr(e[0])?Object.assign({borderLeftStyle:e[0]},e[1]&&{borderLeftWidth:e[1]},e[2]&&{borderLeftColor:e[2]}):Object.assign({borderLeftWidth:e[0]},e[1]&&{borderLeftStyle:e[1]},e[2]&&{borderLeftColor:e[2]})}function Xh(...e){return Qr(e[0])?Object.assign({borderBottomStyle:e[0]},e[1]&&{borderBottomWidth:e[1]},e[2]&&{borderBottomColor:e[2]}):Object.assign({borderBottomWidth:e[0]},e[1]&&{borderBottomStyle:e[1]},e[2]&&{borderBottomColor:e[2]})}function Zh(...e){return Qr(e[0])?Object.assign({borderRightStyle:e[0]},e[1]&&{borderRightWidth:e[1]},e[2]&&{borderRightColor:e[2]}):Object.assign({borderRightWidth:e[0]},e[1]&&{borderRightStyle:e[1]},e[2]&&{borderRightColor:e[2]})}function Qh(...e){return Qr(e[0])?Object.assign({borderTopStyle:e[0]},e[1]&&{borderTopWidth:e[1]},e[2]&&{borderTopColor:e[2]}):Object.assign({borderTopWidth:e[0]},e[1]&&{borderTopStyle:e[1]},e[2]&&{borderTopColor:e[2]})}function Yh(e,r=e,t=e,n=r){return{borderBottomRightRadius:t,borderBottomLeftRadius:n,borderTopRightRadius:r,borderTopLeftRadius:e}}const Jh=e=>typeof e=="string"&&/(\d+(\w+|%))/.test(e),Co=e=>typeof e=="number"&&!Number.isNaN(e),eg=e=>e==="initial",_s=e=>e==="auto",tg=e=>e==="none",rg=["content","fit-content","max-content","min-content"],ei=e=>rg.some(r=>e===r)||Jh(e);function og(...e){const r=e.length===1,t=e.length===2,n=e.length===3;if(r){const[i]=e;if(eg(i))return{flexGrow:0,flexShrink:1,flexBasis:"auto"};if(_s(i))return{flexGrow:1,flexShrink:1,flexBasis:"auto"};if(tg(i))return{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(Co(i))return{flexGrow:i,flexShrink:1,flexBasis:0};if(ei(i))return{flexGrow:1,flexShrink:1,flexBasis:i}}if(t){const[i,o]=e;if(Co(o))return{flexGrow:i,flexShrink:o,flexBasis:0};if(ei(o))return{flexGrow:i,flexShrink:1,flexBasis:o}}if(n){const[i,o,s]=e;if(Co(i)&&Co(o)&&(_s(s)||ei(s)))return{flexGrow:i,flexShrink:o,flexBasis:s}}return process.env.NODE_ENV!=="production"&&console.error("The value passed to shorthands.flex did not match any flex property specs. The CSS styles were not generated. Please, check the flex documentation."),{}}function ng(e,r=e){return{columnGap:e,rowGap:r}}const ig=/var\(.*\)/gi;function ag(e){return e===void 0||typeof e=="number"||typeof e=="string"&&!ig.test(e)}const sg=/^[a-zA-Z0-9\-_\\#;]+$/,lg=/^-moz-initial$|^auto$|^initial$|^inherit$|^revert$|^unset$|^span \d+$|^\d.*/;function ti(e){return e!==void 0&&typeof e=="string"&&sg.test(e)&&!lg.test(e)}function cg(...e){if(e.some(o=>!ag(o)))return process.env.NODE_ENV!=="production"&&console.error("The value passed to shorthands.gridArea() did not match any gridArea property specs. The CSS styles were not generated. Please, check the gridArea documentation.",["The value passed to shorthands.gridArea() did not match any gridArea property specs. ",`The CSS styles were not generated.
|
|
49
|
+
`,"Please, check the `grid-area` documentation:\n","- https://developer.mozilla.org/docs/Web/CSS/grid-area","- https://griffel.js.org/react/api/shorthands#shorthandsgridarea"].join("")),{};const r=e[0]!==void 0?e[0]:"auto",t=e[1]!==void 0?e[1]:ti(r)?r:"auto",n=e[2]!==void 0?e[2]:ti(r)?r:"auto",i=e[3]!==void 0?e[3]:ti(t)?t:"auto";return{gridRowStart:r,gridColumnStart:t,gridRowEnd:n,gridColumnEnd:i}}function ug(...e){return Zr("margin","",...e)}function dg(e,r=e){return{marginBlockStart:e,marginBlockEnd:r}}function fg(e,r=e){return{marginInlineStart:e,marginInlineEnd:r}}function hg(...e){return Zr("padding","",...e)}function gg(e,r=e){return{paddingBlockStart:e,paddingBlockEnd:r}}function vg(e,r=e){return{paddingInlineStart:e,paddingInlineEnd:r}}function mg(e,r=e){return{overflowX:e,overflowY:r}}function pg(...e){const[r,t=r,n=r,i=t]=e;return{top:r,right:t,bottom:n,left:i}}function bg(e,r,t){return Object.assign({outlineWidth:e},r&&{outlineStyle:r},t&&{outlineColor:t})}function yg(...e){return kg(e)?{transitionDelay:e[0],transitionDuration:e[0],transitionProperty:e[0],transitionTimingFunction:e[0]}:xg(e).reduce((t,[n,i="0s",o="0s",s="ease"],l)=>(l===0?(t.transitionProperty=n,t.transitionDuration=i,t.transitionDelay=o,t.transitionTimingFunction=s):(t.transitionProperty+=`, ${n}`,t.transitionDuration+=`, ${i}`,t.transitionDelay+=`, ${o}`,t.transitionTimingFunction+=`, ${s}`),t),{})}const wg=["-moz-initial","inherit","initial","revert","unset"];function kg(e){return e.length===1&&wg.includes(e[0])}function xg(e){return e.length===1&&Array.isArray(e[0])?e[0]:[e]}function _g(e,...r){if(r.length===0)return Bg(e)?{textDecorationStyle:e}:{textDecorationLine:e};const[t,n,i]=r;return Object.assign({textDecorationLine:e},t&&{textDecorationStyle:t},n&&{textDecorationColor:n},i&&{textDecorationThickness:i})}const Sg=["dashed","dotted","double","solid","wavy"];function Bg(e){return Sg.includes(e)}const ri=typeof window>"u"?global:window,oi="@griffel/";function Ss(e,r){return ri[Symbol.for(oi+e)]||(ri[Symbol.for(oi+e)]=r),ri[Symbol.for(oi+e)]}const Po=Ss("DEBUG_RESET_CLASSES",{}),Yr=Ss("DEFINITION_LOOKUP_TABLE",{}),Jr="data-make-styles-bucket",Cg="data-priority",ni="f",Pg="r",eo=7,ft="___",Bs="_",Cs=process.env.NODE_ENV==="production"?ft.length+eo:ft.length+eo+Bs.length+eo,Tg=0,Ps=1,Eg={all:1,borderColor:1,borderStyle:1,borderWidth:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1},ii="DO_NOT_USE_DIRECTLY: @griffel/reset-value";function Yt(e){for(var r=0,t,n=0,i=e.length;i>=4;++n,i-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(i){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}function ai(e){const r=e.length;if(r===eo)return e;for(let t=r;t<eo;t++)e+="0";return e}function Ts(e,r,t=[]){return process.env.NODE_ENV==="production"?ft+ai(Yt(e+r)):ft+ai(Yt(e+r))+Bs+ai(Yt(t.join("")))}function Es(e,r){let t="",n="";for(const i in e){const o=e[i];if(o===0){n+=i+" ";continue}const s=Array.isArray(o),l=r==="rtl"?(s?o[1]:o)+" ":(s?o[0]:o)+" ";t+=l,n+=l}return[t.slice(0,-1),n.slice(0,-1)]}function To(e,r){const t={};for(const n in e){const[i,o]=Es(e[n],r);if(o===""){t[n]="";continue}const s=Ts(o,r),l=s+(i===""?"":" "+i);Yr[s]=[e[n],r],t[n]=l}return t}const Eo={};function N(){let e=null,r="",t="";const n=new Array(arguments.length);let i="";for(let g=0;g<arguments.length;g++){const f=arguments[g];if(typeof f=="string"&&f!==""){const h=f.indexOf(ft);if(h===-1)process.env.NODE_ENV!=="production"&&f.split(" ").forEach(v=>{v.startsWith(Pg)&&Po[v]&&(i?console.error(`mergeClasses(): a passed string contains multiple classes produced by makeResetStyles (${f} & ${r}, this will lead to non-deterministic behavior. Learn more:https://griffel.js.org/react/api/make-reset-styles#limitations
|
|
50
|
+
Source string: ${f}`):i=v)}),r+=f+" ";else{const v=f.substr(h,Cs);h>0&&(r+=f.slice(0,h)),t+=v,n[g]=v}process.env.NODE_ENV!=="production"&&f.indexOf(ft,h+1)!==-1&&console.error(`mergeClasses(): a passed string contains multiple identifiers of atomic classes (classes that start with "${ft}"), it's possible that passed classes were concatenated in a wrong way. Source string: ${f}`)}}if(t==="")return r.slice(0,-1);const o=Eo[t];if(o!==void 0)return r+o;const s=[];for(let g=0;g<arguments.length;g++){const f=n[g];if(f){const h=Yr[f];h?(s.push(h[Tg]),process.env.NODE_ENV!=="production"&&e!==null&&e!==h[Ps]&&console.error(`mergeClasses(): a passed string contains an identifier (${f}) that has different direction (dir="${h[1]?"rtl":"ltr"}") setting than other classes. This is not supported. Source string: ${arguments[g]}`),e=h[Ps]):process.env.NODE_ENV!=="production"&&console.error(`mergeClasses(): a passed string contains an identifier (${f}) that does not match any entry in cache. Source string: ${arguments[g]}`)}}const l=Object.assign.apply(Object,[{}].concat(s)),[u,a]=Es(l,e),c=Ts(a,e,n),d=c+" "+u;return Eo[t]=d,Yr[c]=[l,e],r+d}const Ns={},Rs=new Set,Jt={getChildrenSequences:e=>{const r=Object.keys(Eo).find(t=>Eo[t].startsWith(e));return r?r.split(ft).filter(t=>t.length).map(t=>ft+t):[]},addCSSRule:e=>{Rs.add(e)},addSequenceDetails:(e,r)=>{Object.entries(e).forEach(([t,n])=>{Ns[n.substring(0,Cs)]={slotName:t,sourceURL:r}})},getCSSRules:()=>Array.from(Rs),getSequenceDetails:e=>Ns[e]};function zs(e,r){return Array.isArray(e)?r==="rtl"?e[1]:e[0]:e||""}function Ng(e,r,t,n){const i=e[0],o=e[1];return Object.entries(i).map(([s,l])=>{const u=zs(l,o);let a;if(t&&r){const c=t.find(({className:d})=>d===u);!c&&r[0][s]?a=zs(r[0][s],r[1]):c&&r[0][s]?a=(n?n.filter(({debugClassNames:g})=>g.filter(({className:f})=>f===u).length>0).length>0:!1)?c.className:c.overriddenBy:(!c&&!r[0][s]||c&&!r[0][s])&&(a=void 0)}return{className:u,overriddenBy:a}})}function Ds(e,r){const t=Yr[e];if(t===void 0)return;const n=r?Yr[r.sequenceHash]:void 0,i=Ng(t,n,r==null?void 0:r.debugClassNames,r==null?void 0:r.children),o={sequenceHash:e,direction:t[1],children:[],debugClassNames:i};return Jt.getChildrenSequences(o.sequenceHash).reverse().forEach(l=>{const u=Ds(l,o);u&&o.children.push(u)}),o.children.length||(o.rules={},o.debugClassNames.forEach(({className:l})=>{const u=Jt.getSequenceDetails(e);u&&(o.slot=u.slotName,o.sourceURL=u.sourceURL);const a=Jt.getCSSRules().find(c=>c.includes(l));o.rules[l]=a})),o}function Rg(e){if(Po[e]===void 0)return;const n={sequenceHash:e,direction:"ltr",children:[],debugClassNames:[{className:e}]};n.rules={},n.slot="makeResetStyles()";const[{className:i}]=n.debugClassNames,o=Jt.getCSSRules().filter(s=>s.includes(`.${i}`));return n.rules[i]=o.join(""),n}function zg(e,r){const t=e?Ds(e):void 0,n=r?Rg(r):void 0;return!t&&!n?void 0:t?n?{sequenceHash:t.sequenceHash+n.sequenceHash,direction:t.direction,children:[t,n],debugClassNames:[...t.debugClassNames,...n.debugClassNames]}:t:n}function Dg(e){const r=e.defaultView;if(!r||r.__GRIFFEL_DEVTOOLS__)return;const t={getInfo:n=>{let i,o;for(const s of n.classList)s.startsWith(ft)&&(i=s),Po[s]&&(o=s);return zg(i,o)}};Object.defineProperty(r,"__GRIFFEL_DEVTOOLS__",{configurable:!1,enumerable:!1,get(){return t}})}const yr=(()=>{var e;try{return!!(typeof window<"u"&&(!((e=window.sessionStorage)===null||e===void 0)&&e.getItem("__GRIFFEL_DEVTOOLS__")))}catch{return!1}})();function Fg(e){if(!Array.isArray(e))return[e];if(process.env.NODE_ENV!=="production"&&e.length>2)throw new Error("CSS Bucket contains an entry with greater than 2 items, please report this to https://github.com/microsoft/griffel/issues");return e}function Ig(e,r,t,n){const i=[];if(n[Jr]=r,n[Cg]=String(t),e)for(const s in n)e.setAttribute(s,n[s]);function o(s){return e!=null&&e.sheet?e.sheet.insertRule(s,e.sheet.cssRules.length):i.push(s)}return{elementAttributes:n,insertRule:o,element:e,bucketName:r,cssRules(){return e!=null&&e.sheet?Array.from(e.sheet.cssRules).map(s=>s.cssText):i}}}const Fs=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"].reduce((e,r,t)=>(e[r]=t,e),{});function jg(e,r,t){return(e==="m"?e+r:e)+t}function Ag(e,r,t,n,i={}){var o,s;const l=e==="m",u=(o=i.m)!==null&&o!==void 0?o:"0",a=(s=i.p)!==null&&s!==void 0?s:0,c=jg(e,u,a);if(!n.stylesheets[c]){const d=r&&r.createElement("style"),g=Ig(d,e,a,Object.assign({},n.styleElementAttributes,l&&{media:u}));n.stylesheets[c]=g,r!=null&&r.head&&d&&r.head.insertBefore(d,qg(r,t,e,n,i))}return n.stylesheets[c]}function Og(e,r,t){var n,i;const o=r+((n=t.m)!==null&&n!==void 0?n:""),s=e.getAttribute(Jr)+((i=e.media)!==null&&i!==void 0?i:"");return o===s}function qg(e,r,t,n,i={}){var o,s;const l=Fs[t],u=(o=i.m)!==null&&o!==void 0?o:"",a=(s=i.p)!==null&&s!==void 0?s:0;let c=v=>l-Fs[v.getAttribute(Jr)],d=e.head.querySelectorAll(`[${Jr}]`);if(t==="m"){const v=e.head.querySelectorAll(`[${Jr}="${t}"]`);v.length&&(d=v,c=b=>n.compareMediaQueries(u,b.media))}const g=v=>Og(v,t,i)?a-Number(v.getAttribute("data-priority")):c(v),f=d.length;let h=f-1;for(;h>=0;){const v=d.item(h);if(g(v)>0)return v.nextSibling;h--}return f>0?d.item(0):r?r.nextSibling:null}const Mg=["-moz-placeholder","-moz-focus-inner","-moz-focusring","-ms-input-placeholder","-moz-read-write","-moz-read-only"].join("|"),Lg=new RegExp(`:(${Mg})`);function Is(e,r){try{e.insertRule(r)}catch(t){process.env.NODE_ENV!=="production"&&!Lg.test(r)&&console.error(`There was a problem inserting the following rule: "${r}"`,t)}}let Hg=0;const Wg=(e,r)=>e<r?-1:e>r?1:0;function Vg(e=typeof document>"u"?void 0:document,r={}){const{classNameHashSalt:t,unstable_filterCSSRule:n,insertionPoint:i,styleElementAttributes:o,compareMediaQueries:s=Wg}=r,l={classNameHashSalt:t,insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(o),compareMediaQueries:s,id:`d${Hg++}`,insertCSSRules(u){for(const a in u){const c=u[a];for(let d=0,g=c.length;d<g;d++){const[f,h]=Fg(c[d]),v=Ag(a,e,i||null,l,h);l.insertionCache[f]||(l.insertionCache[f]=a,process.env.NODE_ENV!=="production"&&yr&&Jt.addCSSRule(f),n?n(f)&&Is(v,f):Is(v,f))}}}};return e&&process.env.NODE_ENV!=="production"&&yr&&Dg(e),l}const si="<unknown>";function $g(e){return Xg(e)||Yg(e)||ev(e)}const Gg=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/|[a-z]:\\|\\\\).*?)?\)?\s*$/i,Ug=/^\s*at ()((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/|[a-z]:\\|\\\\).*?)\s*$/i,Kg=/\((\S*)\)/;function Xg(e){const r=Gg.exec(e)||Ug.exec(e);if(!r)return null;let t=r[2];const n=t&&t.indexOf("native")===0,i=t&&t.indexOf("eval")===0,o=Kg.exec(t);return i&&o!=null&&(t=o[1]),{loc:n?null:r[2],name:r[1]||si}}const Zg=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)\s*$/i,Qg=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Yg(e){const r=Zg.exec(e);if(!r)return null;let t=r[3];const n=t&&t.indexOf(" > eval")>-1,i=Qg.exec(t);return n&&i!=null&&(t=i[1]),{loc:r[3],name:r[1]||si}}const Jg=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?)\s*$/i;function ev(e){const r=Jg.exec(e);return r?{loc:r[3],name:r[1]||si}:null}function js(){const e=String(new Error().stack).split(`
|
|
51
|
+
`),r=tv(e);if(r===void 0)return;const t=$g(r);return t==null?void 0:t.loc}function tv(e){for(let r=e.length-1;r>=0;--r)if(e[r].includes("at getSourceURLfromError"))return e[r+3]}const li=()=>{const e={};return function(t,n){e[t.id]===void 0&&(t.insertCSSRules(n),e[t.id]=!0)}};function As(e){return e.reduce(function(r,t){var n=t[0],i=t[1];return r[n]=i,r[i]=n,r},{})}function rv(e){return typeof e=="boolean"}function ov(e){return typeof e=="function"}function to(e){return typeof e=="number"}function nv(e){return e===null||typeof e>"u"}function iv(e){return e&&typeof e=="object"}function av(e){return typeof e=="string"}function No(e,r){return e.indexOf(r)!==-1}function sv(e){return parseFloat(e)===0?e:e[0]==="-"?e.slice(1):"-"+e}function Ro(e,r,t,n){return r+sv(t)+n}function lv(e){var r=e.indexOf(".");if(r===-1)e=100-parseFloat(e)+"%";else{var t=e.length-r-2;e=100-parseFloat(e),e=e.toFixed(t)+"%"}return e}function Os(e){return e.replace(/ +/g," ").split(" ").map(function(r){return r.trim()}).filter(Boolean).reduce(function(r,t){var n=r.list,i=r.state,o=(t.match(/\(/g)||[]).length,s=(t.match(/\)/g)||[]).length;return i.parensDepth>0?n[n.length-1]=n[n.length-1]+" "+t:n.push(t),i.parensDepth+=o-s,{list:n,state:i}},{list:[],state:{parensDepth:0}}).list}function qs(e){var r=Os(e);if(r.length<=3||r.length>4)return e;var t=r[0],n=r[1],i=r[2],o=r[3];return[t,o,i,n].join(" ")}function cv(e){return!rv(e)&&!nv(e)}function uv(e){for(var r=[],t=0,n=0,i=!1;n<e.length;)!i&&e[n]===","?(r.push(e.substring(t,n).trim()),n++,t=n):e[n]==="("?(i=!0,n++):(e[n]===")"&&(i=!1),n++);return t!=n&&r.push(e.substring(t,n+1)),r}var D={padding:function(r){var t=r.value;return to(t)?t:qs(t)},textShadow:function(r){var t=r.value,n=uv(t).map(function(i){return i.replace(/(^|\s)(-*)([.|\d]+)/,function(o,s,l,u){if(u==="0")return o;var a=l===""?"-":"";return""+s+a+u})});return n.join(",")},borderColor:function(r){var t=r.value;return qs(t)},borderRadius:function(r){var t=r.value;if(to(t))return t;if(No(t,"/")){var n=t.split("/"),i=n[0],o=n[1],s=D.borderRadius({value:i.trim()}),l=D.borderRadius({value:o.trim()});return s+" / "+l}var u=Os(t);switch(u.length){case 2:return u.reverse().join(" ");case 4:{var a=u[0],c=u[1],d=u[2],g=u[3];return[c,a,g,d].join(" ")}default:return t}},background:function(r){var t=r.value,n=r.valuesToConvert,i=r.isRtl,o=r.bgImgDirectionRegex,s=r.bgPosDirectionRegex;if(to(t))return t;var l=t.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g,"").trim();return t=t.replace(l,D.backgroundPosition({value:l,valuesToConvert:n,isRtl:i,bgPosDirectionRegex:s})),D.backgroundImage({value:t,valuesToConvert:n,bgImgDirectionRegex:o})},backgroundImage:function(r){var t=r.value,n=r.valuesToConvert,i=r.bgImgDirectionRegex;return!No(t,"url(")&&!No(t,"linear-gradient(")?t:t.replace(i,function(o,s,l){return o.replace(l,n[l])})},backgroundPosition:function(r){var t=r.value,n=r.valuesToConvert,i=r.isRtl,o=r.bgPosDirectionRegex;return t.replace(i?/^((-|\d|\.)+%)/:null,function(s,l){return lv(l)}).replace(o,function(s){return n[s]})},backgroundPositionX:function(r){var t=r.value,n=r.valuesToConvert,i=r.isRtl,o=r.bgPosDirectionRegex;return to(t)?t:D.backgroundPosition({value:t,valuesToConvert:n,isRtl:i,bgPosDirectionRegex:o})},transition:function(r){var t=r.value,n=r.propertiesToConvert;return t.split(/,\s*/g).map(function(i){var o=i.split(" ");return o[0]=n[o[0]]||o[0],o.join(" ")}).join(", ")},transitionProperty:function(r){var t=r.value,n=r.propertiesToConvert;return t.split(/,\s*/g).map(function(i){return n[i]||i}).join(", ")},transform:function(r){var t=r.value,n="[^\\u0020-\\u007e]",i="(?:(?:(?:\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",o="((?:-?"+("(?:[0-9]*\\.[0-9]+|[0-9]+)(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+n+"|"+i+")")+("(?:[_a-z0-9-]|"+n+"|"+i+")")+"*")+")?")+")|(?:inherit|auto))",s=new RegExp("(translateX\\s*\\(\\s*)"+o+"(\\s*\\))","gi"),l=new RegExp("(translate\\s*\\(\\s*)"+o+"((?:\\s*,\\s*"+o+"){0,1}\\s*\\))","gi"),u=new RegExp("(translate3d\\s*\\(\\s*)"+o+"((?:\\s*,\\s*"+o+"){0,2}\\s*\\))","gi"),a=new RegExp("(rotate[ZY]?\\s*\\(\\s*)"+o+"(\\s*\\))","gi");return t.replace(s,Ro).replace(l,Ro).replace(u,Ro).replace(a,Ro)}};D.objectPosition=D.backgroundPosition,D.margin=D.padding,D.borderWidth=D.padding,D.boxShadow=D.textShadow,D.webkitBoxShadow=D.boxShadow,D.mozBoxShadow=D.boxShadow,D.WebkitBoxShadow=D.boxShadow,D.MozBoxShadow=D.boxShadow,D.borderStyle=D.borderColor,D.webkitTransform=D.transform,D.mozTransform=D.transform,D.WebkitTransform=D.transform,D.MozTransform=D.transform,D.transformOrigin=D.backgroundPosition,D.webkitTransformOrigin=D.transformOrigin,D.mozTransformOrigin=D.transformOrigin,D.WebkitTransformOrigin=D.transformOrigin,D.MozTransformOrigin=D.transformOrigin,D.webkitTransition=D.transition,D.mozTransition=D.transition,D.WebkitTransition=D.transition,D.MozTransition=D.transition,D.webkitTransitionProperty=D.transitionProperty,D.mozTransitionProperty=D.transitionProperty,D.WebkitTransitionProperty=D.transitionProperty,D.MozTransitionProperty=D.transitionProperty,D["text-shadow"]=D.textShadow,D["border-color"]=D.borderColor,D["border-radius"]=D.borderRadius,D["background-image"]=D.backgroundImage,D["background-position"]=D.backgroundPosition,D["background-position-x"]=D.backgroundPositionX,D["object-position"]=D.objectPosition,D["border-width"]=D.padding,D["box-shadow"]=D.textShadow,D["-webkit-box-shadow"]=D.textShadow,D["-moz-box-shadow"]=D.textShadow,D["border-style"]=D.borderColor,D["-webkit-transform"]=D.transform,D["-moz-transform"]=D.transform,D["transform-origin"]=D.transformOrigin,D["-webkit-transform-origin"]=D.transformOrigin,D["-moz-transform-origin"]=D.transformOrigin,D["-webkit-transition"]=D.transition,D["-moz-transition"]=D.transition,D["transition-property"]=D.transitionProperty,D["-webkit-transition-property"]=D.transitionProperty,D["-moz-transition-property"]=D.transitionProperty;var Ms=As([["paddingLeft","paddingRight"],["marginLeft","marginRight"],["left","right"],["borderLeft","borderRight"],["borderLeftColor","borderRightColor"],["borderLeftStyle","borderRightStyle"],["borderLeftWidth","borderRightWidth"],["borderTopLeftRadius","borderTopRightRadius"],["borderBottomLeftRadius","borderBottomRightRadius"],["padding-left","padding-right"],["margin-left","margin-right"],["border-left","border-right"],["border-left-color","border-right-color"],["border-left-style","border-right-style"],["border-left-width","border-right-width"],["border-top-left-radius","border-top-right-radius"],["border-bottom-left-radius","border-bottom-right-radius"]]),dv=["content"],Ls=As([["ltr","rtl"],["left","right"],["w-resize","e-resize"],["sw-resize","se-resize"],["nw-resize","ne-resize"]]),fv=new RegExp("(^|\\W|_)((ltr)|(rtl)|(left)|(right))(\\W|_|$)","g"),hv=new RegExp("(left)|(right)");function Hs(e){return Object.keys(e).reduce(function(r,t){var n=e[t];if(av(n)&&(n=n.trim()),No(dv,t))return r[t]=n,r;var i=ci(t,n),o=i.key,s=i.value;return r[o]=s,r},Array.isArray(e)?[]:{})}function ci(e,r){var t=/\/\*\s?@noflip\s?\*\//.test(r),n=t?e:gv(e),i=t?r:vv(n,r);return{key:n,value:i}}function gv(e){return Ms[e]||e}function vv(e,r){if(!cv(r))return r;if(iv(r))return Hs(r);var t=to(r),n=ov(r),i=t||n?r:r.replace(/ !important.*?$/,""),o=!t&&i.length!==r.length,s=D[e],l;return s?l=s({value:i,valuesToConvert:Ls,propertiesToConvert:Ms,isRtl:!0,bgImgDirectionRegex:fv,bgPosDirectionRegex:hv}):l=Ls[i]||i,o?l+" !important":l}const mv=/[A-Z]/g,pv=/^ms-/,ui={};function bv(e){return"-"+e.toLowerCase()}function wr(e){if(Object.prototype.hasOwnProperty.call(ui,e))return ui[e];if(e.substr(0,2)==="--")return e;const r=e.replace(mv,bv);return ui[e]=pv.test(r)?"-"+r:r}function Ws(e){return e.charAt(0)==="&"?e.slice(1):e}var ro="-moz-",nt="-webkit-",Vs="comm",zo="rule",di="decl",yv="@media",wv="@import",kv="@supports",xv="@namespace",_v="@keyframes",$s="@layer",Gs=Math.abs,Do=String.fromCharCode,Sv=Object.assign;function Bv(e,r){return Oe(e,0)^45?(((r<<2^Oe(e,0))<<2^Oe(e,1))<<2^Oe(e,2))<<2^Oe(e,3):0}function Us(e){return e.trim()}function Ks(e,r){return(e=r.exec(e))?e[0]:e}function He(e,r,t){return e.replace(r,t)}function Xs(e,r,t){return e.indexOf(r,t)}function Oe(e,r){return e.charCodeAt(r)|0}function kr(e,r,t){return e.slice(r,t)}function it(e){return e.length}function Zs(e){return e.length}function er(e,r){return r.push(e),e}function Cv(e,r){return e.map(r).join("")}var Fo=1,xr=1,Qs=0,$e=0,xe=0,_r="";function Io(e,r,t,n,i,o,s,l){return{value:e,root:r,parent:t,type:n,props:i,children:o,line:Fo,column:xr,length:s,return:"",siblings:l}}function fi(e,r){return Sv(Io("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},r)}function Pv(){return xe}function Tv(){return xe=$e>0?Oe(_r,--$e):0,xr--,xe===10&&(xr=1,Fo--),xe}function Je(){return xe=$e<Qs?Oe(_r,$e++):0,xr++,xe===10&&(xr=1,Fo++),xe}function Dt(){return Oe(_r,$e)}function jo(){return $e}function Ao(e,r){return kr(_r,e,r)}function Sr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ys(e){return Fo=xr=1,Qs=it(_r=e),$e=0,[]}function Js(e){return _r="",e}function Oo(e){return Us(Ao($e-1,hi(e===91?e+2:e===40?e+1:e)))}function Ev(e){return Js(Rv(Ys(e)))}function Nv(e){for(;(xe=Dt())&&xe<33;)Je();return Sr(e)>2||Sr(xe)>3?"":" "}function Rv(e){for(;Je();)switch(Sr(xe)){case 0:er(el($e-1),e);break;case 2:er(Oo(xe),e);break;default:er(Do(xe),e)}return e}function zv(e,r){for(;--r&&Je()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return Ao(e,jo()+(r<6&&Dt()==32&&Je()==32))}function hi(e){for(;Je();)switch(xe){case e:return $e;case 34:case 39:e!==34&&e!==39&&hi(xe);break;case 40:e===41&&hi(e);break;case 92:Je();break}return $e}function Dv(e,r){for(;Je()&&e+xe!==57;)if(e+xe===84&&Dt()===47)break;return"/*"+Ao(r,$e-1)+"*"+Do(e===47?e:Je())}function el(e){for(;!Sr(Dt());)Je();return Ao(e,$e)}function tl(e){return Js(qo("",null,null,null,[""],e=Ys(e),0,[0],e))}function qo(e,r,t,n,i,o,s,l,u){for(var a=0,c=0,d=s,g=0,f=0,h=0,v=1,b=1,p=1,y=0,k="",w=i,x=o,B=n,S=k;b;)switch(h=y,y=Je()){case 40:if(h!=108&&Oe(S,d-1)==58){Xs(S+=He(Oo(y),"&","&\f"),"&\f",Gs(a?l[a-1]:0))!=-1&&(p=-1);break}case 34:case 39:case 91:S+=Oo(y);break;case 9:case 10:case 13:case 32:S+=Nv(h);break;case 92:S+=zv(jo()-1,7);continue;case 47:switch(Dt()){case 42:case 47:er(Fv(Dv(Je(),jo()),r,t,u),u),(Sr(h||1)==5||Sr(Dt()||1)==5)&&it(S)&&kr(S,-1,void 0)!==" "&&(S+=" ");break;default:S+="/"}break;case 123*v:l[a++]=it(S)*p;case 125*v:case 59:case 0:switch(y){case 0:case 125:b=0;case 59+c:p==-1&&(S=He(S,/\f/g,"")),f>0&&(it(S)-d||v===0&&h===47)&&er(f>32?ol(S+";",n,t,d-1,u):ol(He(S," ","")+";",n,t,d-2,u),u);break;case 59:S+=";";default:if(er(B=rl(S,r,t,a,c,i,l,k,w=[],x=[],d,o),o),y===123)if(c===0)qo(S,r,B,B,w,o,d,l,x);else{switch(g){case 99:if(Oe(S,3)===110)break;case 108:if(Oe(S,2)===97)break;default:c=0;case 100:case 109:case 115:}c?qo(e,B,B,n&&er(rl(e,B,B,0,0,i,l,k,i,w=[],d,x),x),i,x,d,l,n?w:x):qo(S,B,B,B,[""],x,0,l,x)}}a=c=f=0,v=p=1,k=S="",d=s;break;case 58:d=1+it(S),f=h;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&Tv()==125)continue}switch(S+=Do(y),y*v){case 38:p=c>0?1:(S+="\f",-1);break;case 44:l[a++]=(it(S)-1)*p,p=1;break;case 64:Dt()===45&&(S+=Oo(Je())),g=Dt(),c=d=it(k=S+=el(jo())),y++;break;case 45:h===45&&it(S)==2&&(v=0)}}return o}function rl(e,r,t,n,i,o,s,l,u,a,c,d){for(var g=i-1,f=i===0?o:[""],h=Zs(f),v=0,b=0,p=0;v<n;++v)for(var y=0,k=kr(e,g+1,g=Gs(b=s[v])),w=e;y<h;++y)(w=Us(b>0?f[y]+" "+k:He(k,/&\f/g,f[y])))&&(u[p++]=w);return Io(e,r,t,i===0?zo:l,u,a,c,d)}function Fv(e,r,t,n){return Io(e,r,t,Vs,Do(Pv()),kr(e,2,-2),0,n)}function ol(e,r,t,n,i){return Io(e,r,t,di,kr(e,0,n),kr(e,n+1,-1),n,i)}function Br(e,r){for(var t="",n=0;n<e.length;n++)t+=r(e[n],n,e,r)||"";return t}function nl(e,r,t,n){switch(e.type){case $s:if(e.children.length)break;case wv:case xv:case di:return e.return=e.return||e.value;case Vs:return"";case _v:return e.return=e.value+"{"+Br(e.children,n)+"}";case zo:if(!it(e.value=e.props.join(",")))return""}return it(t=Br(e.children,n))?e.return=e.value+"{"+t+"}":""}function il(e){var r=Zs(e);return function(t,n,i,o){for(var s="",l=0;l<r;l++)s+=e[l](t,n,i,o)||"";return s}}function al(e){return function(r){r.root||(r=r.return)&&e(r)}}const Iv=e=>{switch(e.type){case zo:if(typeof e.props=="string"){if(process.env.NODE_ENV!=="production")throw new Error(`"element.props" has type "string" (${JSON.stringify(e.props,null,2)}), it's not expected. Please report a bug if it happens.`);return}e.props=e.props.map(r=>r.indexOf(":global(")===-1?r:Ev(r).reduce((t,n,i,o)=>{if(n==="")return t;if(n===":"&&o[i+1]==="global"){const s=o[i+2].slice(1,-1)+" ";return t.unshift(s),o[i+1]="",o[i+2]="",t}return t.push(n),t},[]).join(""))}};function sl(e,r,t){switch(Bv(e,r)){case 5103:return nt+"print-"+e+e;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return nt+e+e;case 4215:if(Oe(e,9)===102||Oe(e,r+1)===116)return nt+e+e;break;case 4789:return ro+e+e;case 5349:case 4246:case 6968:return nt+e+ro+e+e;case 6187:if(!Ks(e,/grab/))return He(He(He(e,/(zoom-|grab)/,nt+"$1"),/(image-set)/,nt+"$1"),e,"")+e;case 5495:case 3959:return He(e,/(image-set\([^]*)/,nt+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return He(e,/(.+)-inline(.+)/,nt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(it(e)-1-r>6)switch(Oe(e,r+1)){case 102:if(Oe(e,r+3)===108)return He(e,/(.+:)(.+)-([^]+)/,"$1"+nt+"$2-$3$1"+ro+(Oe(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~Xs(e,"stretch")?sl(He(e,"stretch","fill-available"),r)+e:e}break}return e}function ll(e,r,t,n){if(e.length>-1&&!e.return)switch(e.type){case di:e.return=sl(e.value,e.length);return;case zo:if(e.length)return Cv(e.props,function(i){switch(Ks(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Br([fi(e,{props:[He(i,/:(read-\w+)/,":"+ro+"$1")]})],n);case"::placeholder":return Br([fi(e,{props:[He(i,/:(plac\w+)/,":"+nt+"input-$1")]}),fi(e,{props:[He(i,/:(plac\w+)/,":"+ro+"$1")]})],n)}return""})}}function jv(e){switch(e.type){case"@container":case yv:case kv:case $s:return!0}return!1}const Av=e=>{jv(e)&&Array.isArray(e.children)&&e.children.sort((r,t)=>r.props[0]>t.props[0]?1:-1)};function Ov(){}function qv(e,r){const t=[];return Br(tl(e),il([Iv,r?Av:Ov,ll,nl,al(n=>t.push(n))])),t}const Mv=/,( *[^ &])/g;function Lv(e){return"&"+Ws(e.replace(Mv,",&$1"))}function cl(e,r,t){let n=r;return t.length>0&&(n=t.reduceRight((i,o)=>`${Lv(o)} { ${i} }`,r)),`${e}{${n}}`}function ul(e,r){const{className:t,selectors:n,property:i,rtlClassName:o,rtlProperty:s,rtlValue:l,value:u}=e,{container:a,layer:c,media:d,supports:g}=r,f=`.${t}`,h=Array.isArray(u)?`${u.map(b=>`${wr(i)}: ${b}`).join(";")};`:`${wr(i)}: ${u};`;let v=cl(f,h,n);if(s&&o){const b=`.${o}`,p=Array.isArray(l)?`${l.map(y=>`${wr(s)}: ${y}`).join(";")};`:`${wr(s)}: ${l};`;v+=cl(b,p,n)}return d&&(v=`@media ${d} { ${v} }`),c&&(v=`@layer ${c} { ${v} }`),g&&(v=`@supports ${g} { ${v} }`),a&&(v=`@container ${a} { ${v} }`),qv(v,!0)}function Hv(e){let r="";for(const t in e){const n=e[t];if(typeof n=="string"||typeof n=="number"){r+=wr(t)+":"+n+";";continue}if(Array.isArray(n))for(const i of n)r+=wr(t)+":"+i+";"}return r}function dl(e){let r="";for(const t in e)r+=`${t}{${Hv(e[t])}}`;return r}function fl(e,r){const t=`@keyframes ${e} {${r}}`,n=[];return Br(tl(t),il([nl,ll,al(i=>n.push(i))])),n}const Wv={animation:[-1,["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimeline","animationTimingFunction"]],animationRange:[-1,["animationRangeEnd","animationRangeStart"]],background:[-2,["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"]],backgroundPosition:[-1,["backgroundPositionX","backgroundPositionY"]],border:[-2,["borderBottom","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderTop","borderTopColor","borderTopStyle","borderTopWidth"]],borderBottom:[-1,["borderBottomColor","borderBottomStyle","borderBottomWidth"]],borderImage:[-1,["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"]],borderLeft:[-1,["borderLeftColor","borderLeftStyle","borderLeftWidth"]],borderRadius:[-1,["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"]],borderRight:[-1,["borderRightColor","borderRightStyle","borderRightWidth"]],borderTop:[-1,["borderTopColor","borderTopStyle","borderTopWidth"]],caret:[-1,["caretColor","caretShape"]],columnRule:[-1,["columnRuleColor","columnRuleStyle","columnRuleWidth"]],columns:[-1,["columnCount","columnWidth"]],containIntrinsicSize:[-1,["containIntrinsicHeight","containIntrinsicWidth"]],container:[-1,["containerName","containerType"]],flex:[-1,["flexBasis","flexGrow","flexShrink"]],flexFlow:[-1,["flexDirection","flexWrap"]],font:[-1,["fontFamily","fontSize","fontStretch","fontStyle","fontVariant","fontWeight","lineHeight"]],gap:[-1,["columnGap","rowGap"]],grid:[-1,["columnGap","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumnGap","gridRowGap","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","rowGap"]],gridArea:[-1,["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"]],gridColumn:[-1,["gridColumnEnd","gridColumnStart"]],gridRow:[-1,["gridRowEnd","gridRowStart"]],gridTemplate:[-1,["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"]],inset:[-1,["bottom","left","right","top"]],insetBlock:[-1,["insetBlockEnd","insetBlockStart"]],insetInline:[-1,["insetInlineEnd","insetInlineStart"]],listStyle:[-1,["listStyleImage","listStylePosition","listStyleType"]],margin:[-1,["marginBottom","marginLeft","marginRight","marginTop"]],marginBlock:[-1,["marginBlockEnd","marginBlockStart"]],marginInline:[-1,["marginInlineEnd","marginInlineStart"]],mask:[-1,["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPosition","maskRepeat","maskSize"]],maskBorder:[-1,["maskBorderMode","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth"]],offset:[-1,["offsetAnchor","offsetDistance","offsetPath","offsetPosition","offsetRotate"]],outline:[-1,["outlineColor","outlineStyle","outlineWidth"]],overflow:[-1,["overflowX","overflowY"]],overscrollBehavior:[-1,["overscrollBehaviorX","overscrollBehaviorY"]],padding:[-1,["paddingBottom","paddingLeft","paddingRight","paddingTop"]],paddingBlock:[-1,["paddingBlockEnd","paddingBlockStart"]],paddingInline:[-1,["paddingInlineEnd","paddingInlineStart"]],placeContent:[-1,["alignContent","justifyContent"]],placeItems:[-1,["alignItems","justifyItems"]],placeSelf:[-1,["alignSelf","justifySelf"]],scrollMargin:[-1,["scrollMarginBottom","scrollMarginLeft","scrollMarginRight","scrollMarginTop"]],scrollMarginBlock:[-1,["scrollMarginBlockEnd","scrollMarginBlockStart"]],scrollMarginInline:[-1,["scrollMarginInlineEnd","scrollMarginInlineStart"]],scrollPadding:[-1,["scrollPaddingBottom","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop"]],scrollPaddingBlock:[-1,["scrollPaddingBlockEnd","scrollPaddingBlockStart"]],scrollPaddingInline:[-1,["scrollPaddingInlineEnd","scrollPaddingInlineStart"]],scrollTimeline:[-1,["scrollTimelineAxis","scrollTimelineName"]],textDecoration:[-1,["textDecorationColor","textDecorationLine","textDecorationStyle","textDecorationThickness"]],textEmphasis:[-1,["textEmphasisColor","textEmphasisStyle"]],transition:[-1,["transitionBehavior","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"]],viewTimeline:[-1,["viewTimelineAxis","viewTimelineName"]]};function hl(e,r){return e.length===0?r:`${e} and ${r}`}function Vv(e){return e.substr(0,6)==="@media"}function $v(e){return e.substr(0,6)==="@layer"}const Gv=/^(:|\[|>|&)/;function Uv(e){return Gv.test(e)}function Kv(e){return e.substr(0,9)==="@supports"}function Xv(e){return e.substring(0,10)==="@container"}function Zv(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}const gl={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function vl(e,r){if(r.media)return"m";if(r.layer||r.supports)return"t";if(r.container)return"c";if(e.length>0){const t=e[0].trim();if(t.charCodeAt(0)===58)return gl[t.slice(4,8)]||gl[t.slice(3,5)]||"d"}return"d"}function Mo(e,r){return e&&r+e}function ml(e){return Mo(e.container,"c")+Mo(e.media,"m")+Mo(e.layer,"l")+Mo(e.supports,"s")}function gi(e,r,t){const n=e+ml(t)+r,i=Yt(n),o=i.charCodeAt(0);return o>=48&&o<=57?String.fromCharCode(o+17)+i.slice(1):i}function Lo({property:e,selector:r,salt:t,value:n},i){return ni+Yt(t+r+ml(i)+e+n.trim())}function Qv(e){return e===ii}function vi(e){return e.replace(/>\s+/g,">")}function pl(...e){process.env.NODE_ENV!=="production"&&typeof document<"u"&&console.error(...e)}function Yv(e,r){pl((()=>{const n=JSON.stringify(r,null,2),i=["@griffel/react: A rule was not resolved to CSS properly. Please check your `makeStyles` or `makeResetStyles` calls for following:"," ".repeat(2)+"makeStyles({"," ".repeat(4)+"[slot]: {"," ".repeat(6)+`"${e}": ${n.split(`
|
|
52
|
+
`).map((o,s)=>" ".repeat(s===0?0:6)+o).join(`
|
|
53
|
+
`)}`," ".repeat(4)+"}"," ".repeat(2)+"})",""];return e.indexOf("&")===-1?(i.push("It looks that you're are using a nested selector, but it is missing an ampersand placeholder where the generated class name should be injected."),i.push(`Try to update a property to include it i.e "${e}" => "&${e}".`)):(i.push(""),i.push("If it's not obvious what triggers a problem, please report an issue at https://github.com/microsoft/griffel/issues")),i.join(`
|
|
54
|
+
`)})())}function Jv(e,r){pl([`@griffel/react: You are using unsupported shorthand CSS property "${e}". Please check your "makeStyles" calls, there *should not* be following:`," ".repeat(2)+"makeStyles({"," ".repeat(4)+`[slot]: { ${e}: "${r}" }`," ".repeat(2)+"})","","Learn why CSS shorthands are not supported: https://aka.ms/griffel-css-shorthands"].join(`
|
|
55
|
+
`))}function bl(e){return Wv[e]}function yl(e){var r;return(r=e==null?void 0:e[0])!==null&&r!==void 0?r:0}function mi(e,r,t,n){e[r]=n?[t,n]:t}function wl(e,r){return r.length>0?[e,Object.fromEntries(r)]:e}function pi(e,r,t,n,i,o){var s;const l=[];o!==0&&l.push(["p",o]),r==="m"&&i&&l.push(["m",i]),(s=e[r])!==null&&s!==void 0||(e[r]=[]),t&&e[r].push(wl(t,l)),n&&e[r].push(wl(n,l))}function bt(e,r="",t=[],n={container:"",layer:"",media:"",supports:""},i={},o={},s){for(const l in e){if(Eg.hasOwnProperty(l)){Jv(l,e[l]);continue}const u=e[l];if(u!=null){if(Qv(u)){const a=vi(t.join("")),c=gi(a,l,n);mi(i,c,0,void 0);continue}if(typeof u=="string"||typeof u=="number"){const a=vi(t.join("")),c=bl(l);if(c){const w=c[1],x=Object.fromEntries(w.map(B=>[B,ii]));bt(x,r,t,n,i,o)}const d=gi(a,l,n),g=Lo({value:u.toString(),salt:r,selector:a,property:l},n),f=s&&{key:l,value:s}||ci(l,u),h=f.key!==l||f.value!==u,v=h?Lo({value:f.value.toString(),property:f.key,salt:r,selector:a},n):void 0,b=h?{rtlClassName:v,rtlProperty:f.key,rtlValue:f.value}:void 0,p=vl(t,n),[y,k]=ul(Object.assign({className:g,selectors:t,property:l,value:u},b),n);mi(i,d,g,v),pi(o,p,y,k,n.media,yl(c))}else if(l==="animationName"){const a=Array.isArray(u)?u:[u],c=[],d=[];for(const g of a){const f=dl(g),h=dl(Hs(g)),v=ni+Yt(f);let b;const p=fl(v,f);let y=[];f===h?b=v:(b=ni+Yt(h),y=fl(b,h));for(let k=0;k<p.length;k++)pi(o,"k",p[k],y[k],n.media,0);c.push(v),d.push(b)}bt({animationName:c.join(", ")},r,t,n,i,o,d.join(", "))}else if(Array.isArray(u)){if(u.length===0){process.env.NODE_ENV!=="production"&&console.warn(`makeStyles(): An empty array was passed as input to "${l}", the property will be omitted in the styles.`);continue}const a=vi(t.join("")),c=bl(l);if(c){const x=c[1],B=Object.fromEntries(x.map(S=>[S,ii]));bt(B,r,t,n,i,o)}const d=gi(a,l,n),g=Lo({value:u.map(x=>(x??"").toString()).join(";"),salt:r,selector:a,property:l},n),f=u.map(x=>ci(l,x));if(!!f.some(x=>x.key!==f[0].key)){process.env.NODE_ENV!=="production"&&console.error("makeStyles(): mixing CSS fallback values which result in multiple CSS properties in RTL is not supported.");continue}const v=f[0].key!==l||f.some((x,B)=>x.value!==u[B]),b=v?Lo({value:f.map(x=>{var B;return((B=x==null?void 0:x.value)!==null&&B!==void 0?B:"").toString()}).join(";"),salt:r,property:f[0].key,selector:a},n):void 0,p=v?{rtlClassName:b,rtlProperty:f[0].key,rtlValue:f.map(x=>x.value)}:void 0,y=vl(t,n),[k,w]=ul(Object.assign({className:g,selectors:t,property:l,value:u},p),n);mi(i,d,g,b),pi(o,y,k,w,n.media,yl(c))}else if(Zv(u))if(Uv(l))bt(u,r,t.concat(Ws(l)),n,i,o);else if(Vv(l)){const a=hl(n.media,l.slice(6).trim());bt(u,r,t,Object.assign({},n,{media:a}),i,o)}else if($v(l)){const a=(n.layer?`${n.layer}.`:"")+l.slice(6).trim();bt(u,r,t,Object.assign({},n,{layer:a}),i,o)}else if(Kv(l)){const a=hl(n.supports,l.slice(9).trim());bt(u,r,t,Object.assign({},n,{supports:a}),i,o)}else if(Xv(l)){const a=l.slice(10).trim();bt(u,r,t,Object.assign({},n,{container:a}),i,o)}else Yv(l,u)}}return[i,o]}function em(e,r=""){const t={},n={};for(const i in e){const o=e[i],[s,l]=bt(o,r);t[i]=s,Object.keys(l).forEach(u=>{n[u]=(n[u]||[]).concat(l[u])})}return[t,n]}function tm(e,r=li){const t=r();let n=null,i=null,o=null,s=null,l;process.env.NODE_ENV!=="production"&&yr&&(l=js());let u;function a(c){const{dir:d,renderer:g}=c;n===null&&([n,i]=em(e,g.classNameHashSalt),process.env.NODE_ENV!=="production"&&g.classNameHashSalt&&(u!==g.classNameHashSalt&&console.error(["@griffel/core:",`
|
|
56
|
+
|
|
57
|
+
`,'A provided renderer has different "classNameHashSalt".',"This is not supported and WILL cause issues with classnames generation.",'Ensure that all renderers created with "createDOMRenderer()" have the same "classNameHashSalt".'].join(" ")),u=g.classNameHashSalt));const f=d==="ltr";f?o===null&&(o=To(n,d)):s===null&&(s=To(n,d)),t(g,i);const h=f?o:s;return process.env.NODE_ENV!=="production"&&yr&&Jt.addSequenceDetails(h,l),h}return a}function rm(e,r,t=li){const n=t();let i=null,o=null,s;process.env.NODE_ENV!=="production"&&yr&&(s=js());function l(u){const{dir:a,renderer:c}=u,d=a==="ltr";d?i===null&&(i=To(e,a)):o===null&&(o=To(e,a)),n(c,r);const g=d?i:o;return process.env.NODE_ENV!=="production"&&yr&&Jt.addSequenceDetails(g,s),g}return l}function om(e,r,t,n=li){const i=n();function o(s){const{dir:l,renderer:u}=s,a=l==="ltr"?e:r||e;return i(u,Array.isArray(t)?{r:t}:t),process.env.NODE_ENV!=="production"&&(Po[a]=1),a}return o}const Cr={border:Uh,borderLeft:Kh,borderBottom:Xh,borderRight:Zh,borderTop:Qh,borderColor:Jn,borderStyle:Yn,borderRadius:Yh,borderWidth:Qn,flex:og,gap:ng,gridArea:cg,margin:ug,marginBlock:dg,marginInline:fg,padding:hg,paddingBlock:gg,paddingInline:vg,overflow:mg,inset:pg,outline:bg,transition:yg,textDecoration:_g};function nm(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const kl=m.useInsertionEffect?m.useInsertionEffect:void 0,bi=()=>{const e={};return function(t,n){if(kl&&nm()){kl(()=>{t.insertCSSRules(n)},[t,n]);return}e[t.id]===void 0&&(t.insertCSSRules(n),e[t.id]=!0)}},im=m.createContext(Vg());function yi(){return m.useContext(im)}const am=m.createContext("ltr");function wi(){return m.useContext(am)}function sm(){try{const e=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher.current;return e==null?!1:(e.useContext({}),!0)}catch{return!1}}function Pr(e){const r=tm(e,bi);if(process.env.NODE_ENV!=="production"&&sm())throw new Error(["makeStyles(): this function cannot be called in component's scope.","All makeStyles() calls should be top level i.e. in a root scope of a file."].join(" "));return function(){const n=wi(),i=yi();return r({dir:n,renderer:i})}}function O(e,r){const t=rm(e,r,bi);return function(){const i=wi(),o=yi();return t({dir:i,renderer:o})}}function ie(e,r,t){const n=om(e,r,t,bi);return function(){const o=wi(),s=yi();return n({dir:o,renderer:s})}}const Ho=Symbol.for("fui.slotRenderFunction"),Ft=Symbol.for("fui.slotElementType"),xl=Symbol.for("fui.slotClassNameProp");function J(e,r){const{defaultProps:t,elementType:n}=r,i=ki(e),o={...t,...i,[Ft]:n,[xl]:i==null?void 0:i.className};return i&&typeof i.children=="function"&&(o[Ho]=i.children,o.children=t==null?void 0:t.children),o}function te(e,r){if(!(e===null||e===void 0&&!r.renderByDefault))return J(e,r)}function ki(e){return typeof e=="string"||typeof e=="number"||lm(e)||m.isValidElement(e)?{children:e}:(e&&typeof e!="object"&&process.env.NODE_ENV!=="production"&&console.error(`@fluentui/react-utilities [slot.${ki.name}]:
|
|
58
|
+
A slot got an invalid value "${e}" (${typeof e}).
|
|
59
|
+
A valid value for a slot is a slot shorthand or slot properties object.
|
|
60
|
+
Slot shorthands can be strings, numbers, arrays or JSX elements`),e)}const lm=e=>typeof e=="object"&&e!==null&&Symbol.iterator in e;function _l(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&!m.isValidElement(e)}function xi(e){return!!(e!=null&&e.hasOwnProperty(Ft))}function ne(e){if(process.env.NODE_ENV!=="production"){const r=e;for(const t of Object.keys(r.components)){const n=r[t];if(n!==void 0)if(!xi(n))r[t]=J(n,{elementType:r.components[t]}),console.warn(`@fluentui/react-utilities [${ne.name}]:
|
|
61
|
+
"state.${t}" is not a slot!
|
|
62
|
+
Be sure to create slots properly by using "slot.always" or "slot.optional".`);else{const{[Ft]:i}=n;i!==r.components[t]&&(n[Ft]=r.components[t],console.warn(`@fluentui/react-utilities [${ne.name}]:
|
|
63
|
+
"state.${t}" element type differs from "state.components.${t}",
|
|
64
|
+
${i} !== ${r.components[t]}.
|
|
65
|
+
Be sure to create slots properly by using "slot.always" or "slot.optional" with the correct elementType.`))}}}}const pe=(...e)=>{const r={};for(const t of e){const n=Array.isArray(t)?t:Object.keys(t);for(const i of n)r[i]=1}return r},cm=pe(["onAuxClick","onAnimationEnd","onAnimationStart","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),um=pe(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),dm=pe(["itemID","itemProp","itemRef","itemScope","itemType"]),Ee=pe(um,cm,dm),fm=pe(Ee,["form"]),Sl=pe(Ee,["height","loop","muted","preload","src","width"]),hm=pe(Sl,["poster"]),gm=pe(Ee,["start"]),vm=pe(Ee,["value"]),mm=pe(Ee,["download","href","hrefLang","media","rel","target","type"]),pm=pe(Ee,["dateTime"]),Wo=pe(Ee,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),bm=pe(Wo,["accept","alt","autoCorrect","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),ym=pe(Wo,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),wm=pe(Wo,["form","multiple","required"]),km=pe(Ee,["selected","value"]),xm=pe(Ee,["cellPadding","cellSpacing"]),_m=Ee,Sm=pe(Ee,["colSpan","rowSpan","scope"]),Bm=pe(Ee,["colSpan","headers","rowSpan","scope"]),Cm=pe(Ee,["span"]),Pm=pe(Ee,["span"]),Tm=pe(Ee,["disabled","form"]),Em=pe(Ee,["acceptCharset","action","encType","encType","method","noValidate","target"]),Nm=pe(Ee,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),Rm=pe(Ee,["alt","crossOrigin","height","src","srcSet","useMap","width"]),zm=pe(Ee,["open","onCancel","onClose"]);function Dm(e,r,t){const n=Array.isArray(r),i={},o=Object.keys(e);for(const s of o)(!n&&r[s]||n&&r.indexOf(s)>=0||s.indexOf("data-")===0||s.indexOf("aria-")===0)&&(!t||(t==null?void 0:t.indexOf(s))===-1)&&(i[s]=e[s]);return i}const Fm={label:fm,audio:Sl,video:hm,ol:gm,li:vm,a:mm,button:Wo,input:bm,textarea:ym,select:wm,option:km,table:xm,tr:_m,th:Sm,td:Bm,colGroup:Cm,col:Pm,fieldset:Tm,form:Em,iframe:Nm,img:Rm,time:pm,dialog:zm};function Bl(e,r,t){const n=e&&Fm[e]||Ee;return n.as=1,Dm(r,n,t)}const Vo=({primarySlotTagName:e,props:r,excludedPropNames:t})=>({root:{style:r.style,className:r.className},primary:Bl(e,r,[...t||[],"style","className"])}),de=(e,r,t)=>{var n;return Bl((n=r.as)!==null&&n!==void 0?n:e,r,t)};function Cl(e,r){const t=m.useRef(void 0),n=m.useCallback((o,s)=>(t.current!==void 0&&r(t.current),t.current=e(o,s),t.current),[r,e]),i=m.useCallback(()=>{t.current!==void 0&&(r(t.current),t.current=void 0)},[r]);return m.useEffect(()=>i,[i]),[n,i]}const Pl=m.createContext(void 0),Im="";Pl.Provider;function jm(){var e;return(e=m.useContext(Pl))!==null&&e!==void 0?e:Im}const Tl=m.createContext(void 0),Am={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"};Tl.Provider;function _e(){var e;return(e=m.useContext(Tl))!==null&&e!==void 0?e:Am}const El=m.createContext(void 0);El.Provider;function Om(){var e;return(e=m.useContext(El))!==null&&e!==void 0?e:{}}const Nl=m.createContext(void 0),qm=()=>{};Nl.Provider;const ae=e=>{var r,t;return(t=(r=m.useContext(Nl))===null||r===void 0?void 0:r[e])!==null&&t!==void 0?t:qm},Rl=m.createContext(void 0);Rl.Provider;function Mm(){return m.useContext(Rl)}const zl=m.createContext(void 0);zl.Provider;function Lm(){var e;return(e=m.useContext(zl))!==null&&e!==void 0?e:{announce:()=>{}}}const Hm=e=>(e(0),0),Wm=e=>e;function Dl(){const{targetDocument:e}=_e(),r=e==null?void 0:e.defaultView,t=r?r.requestAnimationFrame:Hm,n=r?r.cancelAnimationFrame:Wm;return Cl(t,n)}function Vm(e){return typeof e=="function"}const yt=e=>{"use no memo";process.env.NODE_ENV!=="production"&&e.state!==void 0&&e.defaultState!==void 0&&console.error(`@fluentui/react-utilities [useControllableState]:
|
|
66
|
+
A component must be either controlled or uncontrolled (specify either the state or the defaultState, but not both).
|
|
67
|
+
Decide between using a controlled or uncontrolled component and remove one of this props.
|
|
68
|
+
More info: https://reactjs.org/link/controlled-components
|
|
69
|
+
${new Error().stack}`);const[r,t]=m.useState(()=>e.defaultState===void 0?e.initialState:$m(e.defaultState)?e.defaultState():e.defaultState),n=m.useRef(e.state);m.useEffect(()=>{n.current=e.state},[e.state]);const i=m.useCallback(o=>{Vm(o)&&o(n.current)},[]);return Gm(e.state)?[e.state,i]:[r,t]};function $m(e){return typeof e=="function"}const Gm=e=>{"use no memo";const[r]=m.useState(()=>e!==void 0);return process.env.NODE_ENV!=="production"&&m.useEffect(()=>{if(r!==(e!==void 0)){const t=new Error;console.error(`@fluentui/react-utilities [useControllableState]:
|
|
70
|
+
A component is changing ${r?"a controlled value to be uncontrolled":"an uncontrolled value to be controlled"}. This is likely caused by the value changing from ${r?"defined to an undefined":"undefined to a defined"} value, which should not happen.
|
|
71
|
+
Decide between using a controlled or uncontrolled input element for the lifetime of the component.
|
|
72
|
+
More info: https://reactjs.org/link/controlled-components
|
|
73
|
+
${t.stack}`)}},[r,e]),r};function Fl(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const Um={current:0},Km=m.createContext(void 0);function Xm(){var e;return(e=m.useContext(Km))!==null&&e!==void 0?e:Um}const Fe=Fl()?m.useLayoutEffect:m.useEffect,ee=e=>{const r=m.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return Fe(()=>{r.current=e},[e]),m.useCallback((...t)=>{const n=r.current;return n(...t)},[r])};function Il(){const e=m.useRef(!0);return e.current?(e.current=!1,!0):e.current}function Zm(){return m.useReducer(e=>e+1,0)[1]}const jl=m.createContext(void 0);jl.Provider;function Qm(){return m.useContext(jl)||""}function Ge(e="fui-",r){"use no memo";const t=Xm(),n=Qm(),i=m.useId;if(i){const o=i(),s=m.useMemo(()=>o.replace(/:/g,""),[o]);return r||`${n}${e}${s}`}return m.useMemo(()=>r||`${n}${e}${++t.current}`,[n,e,r,t])}function Ne(...e){"use no memo";const r=m.useCallback(t=>{r.current=t;for(const n of e)typeof n=="string"&&process.env.NODE_ENV!=="production"&&console.error(`@fluentui/react-utilities [useMergedRefs]:
|
|
74
|
+
This hook does not support the usage of string refs. Please use React.useRef instead.
|
|
75
|
+
|
|
76
|
+
For more info on 'React.useRef', see https://react.dev/reference/react/useRef.
|
|
77
|
+
For more info on string refs, see https://react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-string-refs.`),typeof n=="function"?n(t):n&&(n.current=t)},[...e]);return r}const Al=(e,r)=>!!(e!=null&&e.contains(r)),Ym=e=>{const{targetDocument:r}=_e(),t=r==null?void 0:r.defaultView,{refs:n,callback:i,element:o,disabled:s,disabledFocusOnIframe:l,contains:u=Al}=e,a=m.useRef(void 0);ep({element:o,disabled:l||s,callback:i,refs:n,contains:u});const c=m.useRef(!1),d=ee(f=>{if(c.current){c.current=!1;return}const h=f.composedPath()[0];n.every(b=>!u(b.current||null,h))&&!s&&i(f)}),g=ee(f=>{c.current=n.some(h=>u(h.current||null,f.target))});m.useEffect(()=>{if(s)return;let f=Jm(t);const h=v=>{if(v===f){f=void 0;return}d(v)};return o==null||o.addEventListener("click",h,!0),o==null||o.addEventListener("touchstart",h,!0),o==null||o.addEventListener("contextmenu",h,!0),o==null||o.addEventListener("mousedown",g,!0),a.current=t==null?void 0:t.setTimeout(()=>{f=void 0},1),()=>{o==null||o.removeEventListener("click",h,!0),o==null||o.removeEventListener("touchstart",h,!0),o==null||o.removeEventListener("contextmenu",h,!0),o==null||o.removeEventListener("mousedown",g,!0),t==null||t.clearTimeout(a.current),f=void 0}},[d,o,s,g,t])},Jm=e=>{if(e){var r,t;if(typeof e.window=="object"&&e.window===e)return e.event;var n;return(n=(t=e.ownerDocument)===null||t===void 0||(r=t.defaultView)===null||r===void 0?void 0:r.event)!==null&&n!==void 0?n:void 0}},_i="fuiframefocus",ep=e=>{const{disabled:r,element:t,callback:n,contains:i=Al,pollDuration:o=100,refs:s}=e,l=m.useRef(),u=ee(a=>{s.every(d=>!i(d.current||null,a.target))&&!r&&n(a)});m.useEffect(()=>{if(!r)return t==null||t.addEventListener(_i,u,!0),()=>{t==null||t.removeEventListener(_i,u,!0)}},[t,r,u]),m.useEffect(()=>{var a;if(!r)return l.current=t==null||(a=t.defaultView)===null||a===void 0?void 0:a.setInterval(()=>{const c=t==null?void 0:t.activeElement;if((c==null?void 0:c.tagName)==="IFRAME"||(c==null?void 0:c.tagName)==="WEBVIEW"){const d=new CustomEvent(_i,{bubbles:!0});c.dispatchEvent(d)}},o),()=>{var c;t==null||(c=t.defaultView)===null||c===void 0||c.clearTimeout(l.current)}},[t,r,o])},tp=e=>{const r=m.useRef(null);return m.useEffect(()=>{r.current=e},[e]),r.current},rp=e=>-1,op=e=>{};function np(){const{targetDocument:e}=_e(),r=e==null?void 0:e.defaultView,t=r?r.setTimeout:rp,n=r?r.clearTimeout:op;return Cl(t,n)}function Re(e,r){return(...t)=>{e==null||e(...t),r==null||r(...t)}}function Ue(e,r){var t;const n=e;var i;return!!(!(n==null||(t=n.ownerDocument)===null||t===void 0)&&t.defaultView&&n instanceof n.ownerDocument.defaultView[(i=r==null?void 0:r.constructorName)!==null&&i!==void 0?i:"HTMLElement"])}function ip(e){if(!Ue(e))return!1;const{tagName:r}=e;switch(r){case"BUTTON":case"A":case"INPUT":case"TEXTAREA":return!0}return e.isContentEditable}function Si(e){return e.type.startsWith("touch")}function Bi(e){return e.type.startsWith("mouse")||["click","contextmenu","dblclick"].indexOf(e.type)>-1}function Ol(e){if(Bi(e))return{clientX:e.clientX,clientY:e.clientY};if(Si(e))return{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY};if(process.env.NODE_ENV!=="production")throw new Error("@fluentui/react-utilities]: Unable to get clientX. Unknown event type.");return{clientX:0,clientY:0}}function ql(e){return e instanceof Set?e:new Set(e)}function Ml(e){const[r,t]=yt({initialState:new Set,defaultState:m.useMemo(()=>e.defaultSelectedItems&&ql(e.defaultSelectedItems),[e.defaultSelectedItems]),state:m.useMemo(()=>e.selectedItems&&ql(e.selectedItems),[e.selectedItems])});return[r,(i,o)=>{var s;(s=e.onSelectionChange)===null||s===void 0||s.call(e,i,{selectedItems:o}),t(o)}]}function ap(e){const[r,t]=Ml(e);return[r,{deselectItem:i=>t(i,new Set),selectItem:(i,o)=>t(i,new Set([o])),toggleAllItems:()=>{if(process.env.NODE_ENV!=="production")throw new Error("[react-utilities]: `toggleAllItems` should not be used in single selection mode")},toggleItem:(i,o)=>t(i,new Set([o])),clearItems:i=>t(i,new Set),isSelected:i=>{var o;return(o=r.has(i))!==null&&o!==void 0?o:!1}}]}function sp(e){const[r,t]=Ml(e);return[r,{toggleItem:(i,o)=>{const s=new Set(r);r.has(o)?s.delete(o):s.add(o),t(i,s)},selectItem:(i,o)=>{const s=new Set(r);s.add(o),t(i,s)},deselectItem:(i,o)=>{const s=new Set(r);s.delete(o),t(i,s)},clearItems:i=>{t(i,new Set)},isSelected:i=>r.has(i),toggleAllItems:(i,o)=>{const s=o.every(u=>r.has(u)),l=new Set(r);s?l.clear():o.forEach(u=>l.add(u)),t(i,l)}}]}function lp(e){"use no memo";return e.selectionMode==="multiselect"?sp(e):ap(e)}function cp(e){return e&&!!e._virtual}function up(e){return cp(e)&&e._virtual.parent||null}function dp(e,r={}){if(!e)return null;if(!r.skipVirtual){const n=up(e);if(n)return n}const t=e.parentNode;return t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t.host:t}function Ll(e,r){e&&Object.assign(e,{_virtual:{parent:r}})}function fp(e,r){return{...r,[Ft]:e}}var Ci={exports:{}},ge={};/** @license React v17.0.2
|
|
78
|
+
* react-is.development.js
|
|
79
|
+
*
|
|
80
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the MIT license found in the
|
|
83
|
+
* LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/var Hl;function hp(){return Hl||(Hl=1,process.env.NODE_ENV!=="production"&&function(){var e=60103,r=60106,t=60107,n=60108,i=60114,o=60109,s=60110,l=60112,u=60113,a=60120,c=60115,d=60116,g=60121,f=60122,h=60117,v=60129,b=60131;if(typeof Symbol=="function"&&Symbol.for){var p=Symbol.for;e=p("react.element"),r=p("react.portal"),t=p("react.fragment"),n=p("react.strict_mode"),i=p("react.profiler"),o=p("react.provider"),s=p("react.context"),l=p("react.forward_ref"),u=p("react.suspense"),a=p("react.suspense_list"),c=p("react.memo"),d=p("react.lazy"),g=p("react.block"),f=p("react.server.block"),h=p("react.fundamental"),p("react.scope"),p("react.opaque.id"),v=p("react.debug_trace_mode"),p("react.offscreen"),b=p("react.legacy_hidden")}var y=!1;function k(K){return!!(typeof K=="string"||typeof K=="function"||K===t||K===i||K===v||K===n||K===u||K===a||K===b||y||typeof K=="object"&&K!==null&&(K.$$typeof===d||K.$$typeof===c||K.$$typeof===o||K.$$typeof===s||K.$$typeof===l||K.$$typeof===h||K.$$typeof===g||K[0]===f))}function w(K){if(typeof K=="object"&&K!==null){var Vt=K.$$typeof;switch(Vt){case e:var $t=K.type;switch($t){case t:case i:case n:case u:case a:return $t;default:var Ct=$t&&$t.$$typeof;switch(Ct){case s:case l:case d:case c:case o:return Ct;default:return Vt}}case r:return Vt}}}var x=s,B=o,S=e,C=l,E=t,I=d,$=c,U=r,T=i,A=n,G=u,X=!1,Q=!1;function z(K){return X||(X=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function q(K){return Q||(Q=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(K){return w(K)===s}function se(K){return w(K)===o}function L(K){return typeof K=="object"&&K!==null&&K.$$typeof===e}function oe(K){return w(K)===l}function be(K){return w(K)===t}function dt(K){return w(K)===d}function Me(K){return w(K)===c}function rt(K){return w(K)===r}function Ht(K){return w(K)===i}function ar(K){return w(K)===n}function Wt(K){return w(K)===u}ge.ContextConsumer=x,ge.ContextProvider=B,ge.Element=S,ge.ForwardRef=C,ge.Fragment=E,ge.Lazy=I,ge.Memo=$,ge.Portal=U,ge.Profiler=T,ge.StrictMode=A,ge.Suspense=G,ge.isAsyncMode=z,ge.isConcurrentMode=q,ge.isContextConsumer=W,ge.isContextProvider=se,ge.isElement=L,ge.isForwardRef=oe,ge.isFragment=be,ge.isLazy=dt,ge.isMemo=Me,ge.isPortal=rt,ge.isProfiler=Ht,ge.isStrictMode=ar,ge.isSuspense=Wt,ge.isValidElementType=k,ge.typeOf=w}()),ge}var ve={};/** @license React v17.0.2
|
|
85
|
+
* react-is.production.min.js
|
|
86
|
+
*
|
|
87
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the MIT license found in the
|
|
90
|
+
* LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/var Wl;function gp(){if(Wl)return ve;Wl=1;var e=60103,r=60106,t=60107,n=60108,i=60114,o=60109,s=60110,l=60112,u=60113,a=60120,c=60115,d=60116,g=60121,f=60122,h=60117,v=60129,b=60131;if(typeof Symbol=="function"&&Symbol.for){var p=Symbol.for;e=p("react.element"),r=p("react.portal"),t=p("react.fragment"),n=p("react.strict_mode"),i=p("react.profiler"),o=p("react.provider"),s=p("react.context"),l=p("react.forward_ref"),u=p("react.suspense"),a=p("react.suspense_list"),c=p("react.memo"),d=p("react.lazy"),g=p("react.block"),f=p("react.server.block"),h=p("react.fundamental"),v=p("react.debug_trace_mode"),b=p("react.legacy_hidden")}function y(T){if(typeof T=="object"&&T!==null){var A=T.$$typeof;switch(A){case e:switch(T=T.type,T){case t:case i:case n:case u:case a:return T;default:switch(T=T&&T.$$typeof,T){case s:case l:case d:case c:case o:return T;default:return A}}case r:return A}}}var k=o,w=e,x=l,B=t,S=d,C=c,E=r,I=i,$=n,U=u;return ve.ContextConsumer=s,ve.ContextProvider=k,ve.Element=w,ve.ForwardRef=x,ve.Fragment=B,ve.Lazy=S,ve.Memo=C,ve.Portal=E,ve.Profiler=I,ve.StrictMode=$,ve.Suspense=U,ve.isAsyncMode=function(){return!1},ve.isConcurrentMode=function(){return!1},ve.isContextConsumer=function(T){return y(T)===s},ve.isContextProvider=function(T){return y(T)===o},ve.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===e},ve.isForwardRef=function(T){return y(T)===l},ve.isFragment=function(T){return y(T)===t},ve.isLazy=function(T){return y(T)===d},ve.isMemo=function(T){return y(T)===c},ve.isPortal=function(T){return y(T)===r},ve.isProfiler=function(T){return y(T)===i},ve.isStrictMode=function(T){return y(T)===n},ve.isSuspense=function(T){return y(T)===u},ve.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===t||T===i||T===v||T===n||T===u||T===a||T===b||typeof T=="object"&&T!==null&&(T.$$typeof===d||T.$$typeof===c||T.$$typeof===o||T.$$typeof===s||T.$$typeof===l||T.$$typeof===h||T.$$typeof===g||T[0]===f)},ve.typeOf=y,ve}process.env.NODE_ENV==="production"?Ci.exports=gp():Ci.exports=hp();var vp=Ci.exports;function mp(e){process.env.NODE_ENV==="development"&&typeof e=="object"&&!vp.isValidElementType(e)&&console.error(`@fluentui/react-jsx-runtime:
|
|
92
|
+
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: ${e}.
|
|
93
|
+
|
|
94
|
+
If this happened in a slot of Fluent UI component, you might be facing package resolution issues.
|
|
95
|
+
Please make sure you don't have multiple versions of "@fluentui/react-utilities" installed in your dependencies or sub-dependencies.
|
|
96
|
+
You can check this by searching up for matching entries in a lockfile produced by your package manager (yarn.lock, pnpm-lock.yaml or package-lock.json).`)}function Vl(e,r){return function(n,i,o,s,l){return xi(i)?r(fp(n,i),null,o,s,l):xi(n)?r(n,i,o,s,l):(mp(n),e(n,i,o,s,l))}}function $l(e){const{as:r,[xl]:t,[Ft]:n,[Ho]:i,...o}=e,s=o,l=typeof n=="string"?r??n:n;return typeof l!="string"&&r&&(s.as=r),{elementType:l,props:s,renderFunction:i}}const tr=hh,pp=(e,r,t)=>{const{elementType:n,renderFunction:i,props:o}=$l(e),s={...o,...r};return i?tr.jsx(m.Fragment,{children:i(n,s)},t):tr.jsx(n,s,t)},bp=(e,r,t)=>{const{elementType:n,renderFunction:i,props:o}=$l(e),s={...o,...r};return i?tr.jsx(m.Fragment,{children:i(n,{...s,children:tr.jsxs(m.Fragment,{children:s.children},void 0)})},t):tr.jsxs(n,s,t)},F=Vl(tr.jsx,pp),ye=Vl(tr.jsxs,bp),Gl=m.createContext(void 0),yp={};Gl.Provider;const wp=()=>{const e=m.useContext(Gl);return e??yp};var kp=typeof WeakRef<"u",Ul=class{constructor(e){kp&&typeof e=="object"?this._weakRef=new WeakRef(e):this._instance=e}deref(){var e,r;let t;return this._weakRef?(t=(e=this._weakRef)==null?void 0:e.deref(),t||delete this._weakRef):(t=this._instance,(r=t==null?void 0:t.isDisposed)!=null&&r.call(t)&&delete this._instance),t}},at="keyborg:focusin",oo="keyborg:focusout";function xp(e){const r=e.HTMLElement,t=r.prototype.focus;let n=!1;return r.prototype.focus=function(){n=!0},e.document.createElement("button").focus(),r.prototype.focus=t,n}var Pi=!1;function ht(e){const r=e.focus;r.__keyborgNativeFocus?r.__keyborgNativeFocus.call(e):e.focus()}function _p(e){const r=e;Pi||(Pi=xp(r));const t=r.HTMLElement.prototype.focus;if(t.__keyborgNativeFocus)return;r.HTMLElement.prototype.focus=u;const n=new Set,i=c=>{const d=c.target;if(!d)return;const g=new CustomEvent(oo,{cancelable:!0,bubbles:!0,composed:!0,detail:{originalEvent:c}});d.dispatchEvent(g)},o=c=>{const d=c.target;if(!d)return;let g=c.composedPath()[0];const f=new Set;for(;g;)g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?(f.add(g),g=g.host):g=g.parentNode;for(const h of n){const v=h.deref();(!v||!f.has(v))&&(n.delete(h),v&&(v.removeEventListener("focusin",o,!0),v.removeEventListener("focusout",i,!0)))}s(d,c.relatedTarget||void 0)},s=(c,d,g)=>{var f;const h=c.shadowRoot;if(h){for(const p of n)if(p.deref()===h)return;h.addEventListener("focusin",o,!0),h.addEventListener("focusout",i,!0),n.add(new Ul(h));return}const v={relatedTarget:d,originalEvent:g},b=new CustomEvent(at,{cancelable:!0,bubbles:!0,composed:!0,detail:v});b.details=v,(Pi||l.lastFocusedProgrammatically)&&(v.isFocusedProgrammatically=c===((f=l.lastFocusedProgrammatically)==null?void 0:f.deref()),l.lastFocusedProgrammatically=void 0),c.dispatchEvent(b)},l=r.__keyborgData={focusInHandler:o,focusOutHandler:i,shadowTargets:n};r.document.addEventListener("focusin",r.__keyborgData.focusInHandler,!0),r.document.addEventListener("focusout",r.__keyborgData.focusOutHandler,!0);function u(){const c=r.__keyborgData;return c&&(c.lastFocusedProgrammatically=new Ul(this)),t.apply(this,arguments)}let a=r.document.activeElement;for(;a&&a.shadowRoot;)s(a),a=a.shadowRoot.activeElement;u.__keyborgNativeFocus=t}function Sp(e){const r=e,t=r.HTMLElement.prototype,n=t.focus.__keyborgNativeFocus,i=r.__keyborgData;if(i){r.document.removeEventListener("focusin",i.focusInHandler,!0),r.document.removeEventListener("focusout",i.focusOutHandler,!0);for(const o of i.shadowTargets){const s=o.deref();s&&(s.removeEventListener("focusin",i.focusInHandler,!0),s.removeEventListener("focusout",i.focusOutHandler,!0))}i.shadowTargets.clear(),delete r.__keyborgData}n&&(t.focus=n)}var Bp=500,Kl=0,Cp=class{constructor(e,r){this._isNavigatingWithKeyboard_DO_NOT_USE=!1,this._onFocusIn=n=>{if(this._isMouseOrTouchUsedTimer||this.isNavigatingWithKeyboard)return;const i=n.detail;i.relatedTarget&&(i.isFocusedProgrammatically||i.isFocusedProgrammatically===void 0||(this.isNavigatingWithKeyboard=!0))},this._onMouseDown=n=>{n.buttons===0||n.clientX===0&&n.clientY===0&&n.screenX===0&&n.screenY===0||this._onMouseOrTouch()},this._onMouseOrTouch=()=>{const n=this._win;n&&(this._isMouseOrTouchUsedTimer&&n.clearTimeout(this._isMouseOrTouchUsedTimer),this._isMouseOrTouchUsedTimer=n.setTimeout(()=>{delete this._isMouseOrTouchUsedTimer},1e3)),this.isNavigatingWithKeyboard=!1},this._onKeyDown=n=>{this.isNavigatingWithKeyboard?this._shouldDismissKeyboardNavigation(n)&&this._scheduleDismiss():this._shouldTriggerKeyboardNavigation(n)&&(this.isNavigatingWithKeyboard=!0)},this.id="c"+ ++Kl,this._win=e;const t=e.document;if(r){const n=r.triggerKeys,i=r.dismissKeys;n!=null&&n.length&&(this._triggerKeys=new Set(n)),i!=null&&i.length&&(this._dismissKeys=new Set(i))}t.addEventListener(at,this._onFocusIn,!0),t.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("keydown",this._onKeyDown,!0),t.addEventListener("touchstart",this._onMouseOrTouch,!0),t.addEventListener("touchend",this._onMouseOrTouch,!0),t.addEventListener("touchcancel",this._onMouseOrTouch,!0),_p(e)}get isNavigatingWithKeyboard(){return this._isNavigatingWithKeyboard_DO_NOT_USE}set isNavigatingWithKeyboard(e){this._isNavigatingWithKeyboard_DO_NOT_USE!==e&&(this._isNavigatingWithKeyboard_DO_NOT_USE=e,this.update())}dispose(){const e=this._win;if(e){this._isMouseOrTouchUsedTimer&&(e.clearTimeout(this._isMouseOrTouchUsedTimer),this._isMouseOrTouchUsedTimer=void 0),this._dismissTimer&&(e.clearTimeout(this._dismissTimer),this._dismissTimer=void 0),Sp(e);const r=e.document;r.removeEventListener(at,this._onFocusIn,!0),r.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("keydown",this._onKeyDown,!0),r.removeEventListener("touchstart",this._onMouseOrTouch,!0),r.removeEventListener("touchend",this._onMouseOrTouch,!0),r.removeEventListener("touchcancel",this._onMouseOrTouch,!0),delete this._win}}isDisposed(){return!!this._win}update(){var e,r;const t=(r=(e=this._win)==null?void 0:e.__keyborg)==null?void 0:r.refs;if(t)for(const n of Object.keys(t))Ti.update(t[n],this.isNavigatingWithKeyboard)}_shouldTriggerKeyboardNavigation(e){var r;if(e.key==="Tab")return!0;const t=(r=this._win)==null?void 0:r.document.activeElement,n=!this._triggerKeys||this._triggerKeys.has(e.keyCode),i=t&&(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable);return n&&!i}_shouldDismissKeyboardNavigation(e){var r;return(r=this._dismissKeys)==null?void 0:r.has(e.keyCode)}_scheduleDismiss(){const e=this._win;if(e){this._dismissTimer&&(e.clearTimeout(this._dismissTimer),this._dismissTimer=void 0);const r=e.document.activeElement;this._dismissTimer=e.setTimeout(()=>{this._dismissTimer=void 0;const t=e.document.activeElement;r&&t&&r===t&&(this.isNavigatingWithKeyboard=!1)},Bp)}}},Ti=class sh{constructor(r,t){this._cb=[],this._id="k"+ ++Kl,this._win=r;const n=r.__keyborg;n?(this._core=n.core,n.refs[this._id]=this):(this._core=new Cp(r,t),r.__keyborg={core:this._core,refs:{[this._id]:this}})}static create(r,t){return new sh(r,t)}static dispose(r){r.dispose()}static update(r,t){r._cb.forEach(n=>n(t))}dispose(){var r;const t=(r=this._win)==null?void 0:r.__keyborg;t!=null&&t.refs[this._id]?(delete t.refs[this._id],Object.keys(t.refs).length===0&&(t.core.dispose(),delete this._win.__keyborg)):process.env.NODE_ENV!=="production"&&console.error(`Keyborg instance ${this._id} is being disposed incorrectly.`),this._cb=[],delete this._core,delete this._win}isNavigatingWithKeyboard(){var r;return!!((r=this._core)!=null&&r.isNavigatingWithKeyboard)}subscribe(r){this._cb.push(r)}unsubscribe(r){const t=this._cb.indexOf(r);t>=0&&this._cb.splice(t,1)}setVal(r){this._core&&(this._core.isNavigatingWithKeyboard=r)}};function $o(e,r){return Ti.create(e,r)}function Go(e){Ti.dispose(e)}/*!
|
|
97
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
98
|
+
* Licensed under the MIT License.
|
|
99
|
+
*//*!
|
|
100
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
101
|
+
* Licensed under the MIT License.
|
|
102
|
+
*/const et="data-tabster",Xl="data-tabster-dummy",Zl=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","*[tabindex]","*[contenteditable]","details > summary","audio[controls]","video[controls]"].join(", "),wt={EscapeGroupper:1,Restorer:2,Deloser:3},It={Invisible:0,PartiallyVisible:1,Visible:2},Tr={Source:0,Target:1},st={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},Se={ArrowUp:1,ArrowDown:2,ArrowLeft:3,ArrowRight:4,PageUp:5,PageDown:6,Home:7,End:8},Uo={Unlimited:0,Limited:1,LimitedTrapFocus:2},Ei={Enter:1,Escape:2},Pp={Auto:0,Inside:1,Outside:2};/*!
|
|
103
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
104
|
+
* Licensed under the MIT License.
|
|
105
|
+
*/function Ae(e,r){var t;return(t=e.storageEntry(r))===null||t===void 0?void 0:t.tabster}function Ql(e,r,t){var n,i;const o=t||e._noop?void 0:r.getAttribute(et);let s=e.storageEntry(r),l;if(o)if(o!==((n=s==null?void 0:s.attr)===null||n===void 0?void 0:n.string))try{const d=JSON.parse(o);if(typeof d!="object")throw new Error(`Value is not a JSON object, got '${o}'.`);l={string:o,object:d}}catch(d){process.env.NODE_ENV==="development"&&console.error(`data-tabster attribute error: ${d}`,r)}else return;else if(!s)return;s||(s=e.storageEntry(r,!0)),s.tabster||(s.tabster={});const u=s.tabster||{},a=((i=s.attr)===null||i===void 0?void 0:i.object)||{},c=(l==null?void 0:l.object)||{};for(const d of Object.keys(a))if(!c[d]){if(d==="root"){const g=u[d];g&&e.root.onRoot(g,!0)}switch(d){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const g=u[d];g&&(g.dispose(),delete u[d]);break;case"observed":delete u[d],e.observedElement&&e.observedElement.onObservedElementUpdate(r);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete u[d];break}}for(const d of Object.keys(c)){const g=c.sys;switch(d){case"deloser":u.deloser?u.deloser.setProps(c.deloser):e.deloser?u.deloser=e.deloser.createDeloser(r,c.deloser):process.env.NODE_ENV==="development"&&console.error("Deloser API used before initialization, please call `getDeloser()`");break;case"root":u.root?u.root.setProps(c.root):u.root=e.root.createRoot(r,c.root,g),e.root.onRoot(u.root);break;case"modalizer":u.modalizer?u.modalizer.setProps(c.modalizer):e.modalizer?u.modalizer=e.modalizer.createModalizer(r,c.modalizer,g):process.env.NODE_ENV==="development"&&console.error("Modalizer API used before initialization, please call `getModalizer()`");break;case"restorer":u.restorer?u.restorer.setProps(c.restorer):e.restorer?c.restorer&&(u.restorer=e.restorer.createRestorer(r,c.restorer)):process.env.NODE_ENV==="development"&&console.error("Restorer API used before initialization, please call `getRestorer()`");break;case"focusable":u.focusable=c.focusable;break;case"groupper":u.groupper?u.groupper.setProps(c.groupper):e.groupper?u.groupper=e.groupper.createGroupper(r,c.groupper,g):process.env.NODE_ENV==="development"&&console.error("Groupper API used before initialization, please call `getGroupper()`");break;case"mover":u.mover?u.mover.setProps(c.mover):e.mover?u.mover=e.mover.createMover(r,c.mover,g):process.env.NODE_ENV==="development"&&console.error("Mover API used before initialization, please call `getMover()`");break;case"observed":e.observedElement?(u.observed=c.observed,e.observedElement.onObservedElementUpdate(r)):process.env.NODE_ENV==="development"&&console.error("ObservedElement API used before initialization, please call `getObservedElement()`");break;case"uncontrolled":u.uncontrolled=c.uncontrolled;break;case"outline":e.outline?u.outline=c.outline:process.env.NODE_ENV==="development"&&console.error("Outline API used before initialization, please call `getOutline()`");break;case"sys":u.sys=c.sys;break;default:console.error(`Unknown key '${d}' in data-tabster attribute value.`)}}l?s.attr=l:(Object.keys(u).length===0&&(delete s.tabster,delete s.attr),e.storageEntry(r,!1))}/*!
|
|
106
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
107
|
+
* Licensed under the MIT License.
|
|
108
|
+
*/const Tp="tabster:focusin",Ep="tabster:focusout",Np="tabster:movefocus",Rp="tabster:modalizer:active",zp="tabster:modalizer:inactive",Dp="tabster:mover:state",Ni="tabster:mover:movefocus",Yl="tabster:mover:memorized-element",Ri="tabster:groupper:movefocus",zi="tabster:restorer:restore-focus",Fp="tabster:root:focus",Ip="tabster:root:blur",jp=typeof CustomEvent<"u"?CustomEvent:function(){};class lt extends jp{constructor(r,t){super(r,{bubbles:!0,cancelable:!0,composed:!0,detail:t}),this.details=t}}class Ap extends lt{constructor(r){super(Tp,r)}}class Op extends lt{constructor(r){super(Ep,r)}}class jt extends lt{constructor(r){super(Np,r)}}class Jl extends lt{constructor(r){super(Dp,r)}}class qp extends lt{constructor(r){super(Ni,r)}}class Mp extends lt{constructor(r){super(Ri,r)}}class Lp extends lt{constructor(r){super(Rp,r)}}class Hp extends lt{constructor(r){super(zp,r)}}class ec extends lt{constructor(){super(zi)}}class Wp extends lt{constructor(r){super(Fp,r)}}class Vp extends lt{constructor(r){super(Ip,r)}}/*!
|
|
109
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
110
|
+
* Licensed under the MIT License.
|
|
111
|
+
*/const R={createMutationObserver:e=>new MutationObserver(e),createTreeWalker:(e,r,t,n)=>e.createTreeWalker(r,t,n),getParentNode:e=>e?e.parentNode:null,getParentElement:e=>e?e.parentElement:null,nodeContains:(e,r)=>!!(r&&(e!=null&&e.contains(r))),getActiveElement:e=>e.activeElement,querySelector:(e,r)=>e.querySelector(r),querySelectorAll:(e,r)=>Array.prototype.slice.call(e.querySelectorAll(r),0),getElementById:(e,r)=>e.getElementById(r),getFirstChild:e=>(e==null?void 0:e.firstChild)||null,getLastChild:e=>(e==null?void 0:e.lastChild)||null,getNextSibling:e=>(e==null?void 0:e.nextSibling)||null,getPreviousSibling:e=>(e==null?void 0:e.previousSibling)||null,getFirstElementChild:e=>(e==null?void 0:e.firstElementChild)||null,getLastElementChild:e=>(e==null?void 0:e.lastElementChild)||null,getNextElementSibling:e=>(e==null?void 0:e.nextElementSibling)||null,getPreviousElementSibling:e=>(e==null?void 0:e.previousElementSibling)||null,appendChild:(e,r)=>e.appendChild(r),insertBefore:(e,r,t)=>e.insertBefore(r,t),getSelection:e=>{var r;return((r=e.ownerDocument)===null||r===void 0?void 0:r.getSelection())||null},getElementsByName:(e,r)=>e.ownerDocument.getElementsByName(r)};function $p(e){for(const r of Object.keys(e))R[r]=e[r]}/*!
|
|
112
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
113
|
+
* Licensed under the MIT License.
|
|
114
|
+
*/let Di;const tc=typeof DOMRect<"u"?DOMRect:class{constructor(e,r,t,n){this.left=e||0,this.top=r||0,this.right=(e||0)+(t||0),this.bottom=(r||0)+(n||0)}};let Gp=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),Di=!1}catch{Di=!0}const Fi=100;function kt(e){const r=e();let t=r.__tabsterInstanceContext;return t||(t={elementByUId:{},basics:{Promise:r.Promise||void 0,WeakRef:r.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},r.__tabsterInstanceContext=t),t}function Up(e){const r=e.__tabsterInstanceContext;r&&(r.elementByUId={},delete r.WeakRef,r.containerBoundingRectCache={},r.containerBoundingRectCacheTimer&&e.clearTimeout(r.containerBoundingRectCacheTimer),r.fakeWeakRefsTimer&&e.clearTimeout(r.fakeWeakRefsTimer),r.fakeWeakRefs=[],delete e.__tabsterInstanceContext)}function Kp(e){const r=e.__tabsterInstanceContext;return new((r==null?void 0:r.basics.WeakMap)||WeakMap)}function Xp(e){return!!e.querySelector(Zl)}class rc{constructor(r){this._target=r}deref(){return this._target}static cleanup(r,t){return r._target?t||!ji(r._target.ownerDocument,r._target)?(delete r._target,!0):!1:!0}}class Ke{constructor(r,t,n){const i=kt(r);let o;i.WeakRef?o=new i.WeakRef(t):(o=new rc(t),i.fakeWeakRefs.push(o)),this._ref=o,this._data=n}get(){const r=this._ref;let t;return r&&(t=r.deref(),t||delete this._ref),t}getData(){return this._data}}function oc(e,r){const t=kt(e);t.fakeWeakRefs=t.fakeWeakRefs.filter(n=>!rc.cleanup(n,r))}function nc(e){const r=kt(e);r.fakeWeakRefsStarted||(r.fakeWeakRefsStarted=!0,r.WeakRef=tb(r)),r.fakeWeakRefsTimer||(r.fakeWeakRefsTimer=e().setTimeout(()=>{r.fakeWeakRefsTimer=void 0,oc(e),nc(e)},2*60*1e3))}function Zp(e){const r=kt(e);r.fakeWeakRefsStarted=!1,r.fakeWeakRefsTimer&&(e().clearTimeout(r.fakeWeakRefsTimer),r.fakeWeakRefsTimer=void 0,r.fakeWeakRefs=[])}function Ii(e,r,t){if(r.nodeType!==Node.ELEMENT_NODE)return;const n=Di?t:{acceptNode:t};return R.createTreeWalker(e,r,NodeFilter.SHOW_ELEMENT,n,!1)}function ic(e,r){let t=r.__tabsterCacheId;const n=kt(e),i=t?n.containerBoundingRectCache[t]:void 0;if(i)return i.rect;const o=r.ownerDocument&&r.ownerDocument.documentElement;if(!o)return new tc;let s=0,l=0,u=o.clientWidth,a=o.clientHeight;if(r!==o){const d=r.getBoundingClientRect();s=Math.max(s,d.left),l=Math.max(l,d.top),u=Math.min(u,d.right),a=Math.min(a,d.bottom)}const c=new tc(s<u?s:-1,l<a?l:-1,s<u?u-s:0,l<a?a-l:0);return t||(t="r-"+ ++n.lastContainerBoundingRectCacheId,r.__tabsterCacheId=t),n.containerBoundingRectCache[t]={rect:c,element:r},n.containerBoundingRectCacheTimer||(n.containerBoundingRectCacheTimer=window.setTimeout(()=>{n.containerBoundingRectCacheTimer=void 0;for(const d of Object.keys(n.containerBoundingRectCache))delete n.containerBoundingRectCache[d].element.__tabsterCacheId;n.containerBoundingRectCache={}},50)),c}function ac(e,r,t){const n=sc(r);if(!n)return!1;const i=ic(e,n),o=r.getBoundingClientRect(),s=o.height*(1-t),l=Math.max(0,i.top-o.top),u=Math.max(0,o.bottom-i.bottom),a=l+u;return a===0||a<=s}function Qp(e,r,t){const n=sc(r);if(n){const i=ic(e,n),o=r.getBoundingClientRect();t?n.scrollTop+=o.top-i.top:n.scrollTop+=o.bottom-i.bottom}}function sc(e){const r=e.ownerDocument;if(r){for(let t=R.getParentElement(e);t;t=R.getParentElement(t))if(t.scrollWidth>t.clientWidth||t.scrollHeight>t.clientHeight)return t;return r.documentElement}return null}function Yp(e){e.__shouldIgnoreFocus=!0}function lc(e){return!!e.__shouldIgnoreFocus}function Jp(e){const r=new Uint32Array(4);if(e.crypto&&e.crypto.getRandomValues)e.crypto.getRandomValues(r);else if(e.msCrypto&&e.msCrypto.getRandomValues)e.msCrypto.getRandomValues(r);else for(let n=0;n<r.length;n++)r[n]=4294967295*Math.random();const t=[];for(let n=0;n<r.length;n++)t.push(r[n].toString(36));return t.push("|"),t.push((++Gp).toString(36)),t.push("|"),t.push(Date.now().toString(36)),t.join("")}function Ko(e,r){const t=kt(e);let n=r.__tabsterElementUID;return n||(n=r.__tabsterElementUID=Jp(e())),!t.elementByUId[n]&&ji(r.ownerDocument,r)&&(t.elementByUId[n]=new Ke(e,r)),n}function cc(e,r){const t=kt(e);for(const n of Object.keys(t.elementByUId)){const i=t.elementByUId[n],o=i&&i.get();o&&r&&!R.nodeContains(r,o)||delete t.elementByUId[n]}}function ji(e,r){return R.nodeContains(e==null?void 0:e.body,r)}function uc(e,r){const t=e.matches||e.matchesSelector||e.msMatchesSelector||e.webkitMatchesSelector;return t&&t.call(e,r)}function eb(e){const r=kt(e);if(r.basics.Promise)return r.basics.Promise;throw new Error("No Promise defined.")}function tb(e){return e.basics.WeakRef}let rb=0;class no{constructor(r,t,n){const i=r.getWindow;this._tabster=r,this._element=new Ke(i,t),this._props={...n},this.id="i"+ ++rb}getElement(){return this._element.get()}getProps(){return this._props}setProps(r){this._props={...r}}}class Xo{constructor(r,t,n,i,o){var s;this._focusIn=c=>{if(this._fixedTarget){const g=this._fixedTarget.get();g&&ht(g);return}const d=this.input;if(this.onFocusIn&&d){const g=c.relatedTarget;this.onFocusIn(this,this._isBackward(!0,d,g),g)}},this._focusOut=c=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const d=this.input;if(this.onFocusOut&&d){const g=c.relatedTarget;this.onFocusOut(this,this._isBackward(!1,d,g),g)}};const l=r(),u=l.document.createElement("i");u.tabIndex=0,u.setAttribute("role","none"),u.setAttribute(Xl,""),u.setAttribute("aria-hidden","true");const a=u.style;a.position="fixed",a.width=a.height="1px",a.opacity="0.001",a.zIndex="-1",a.setProperty("content-visibility","hidden"),Yp(u),this.input=u,this.isFirst=n.isFirst,this.isOutside=t,this._isPhantom=(s=n.isPhantom)!==null&&s!==void 0?s:!1,this._fixedTarget=o,u.addEventListener("focusin",this._focusIn),u.addEventListener("focusout",this._focusOut),u.__tabsterDummyContainer=i,this._isPhantom&&(this._disposeTimer=l.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(l.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var r;this._clearDisposeTimeout&&this._clearDisposeTimeout();const t=this.input;t&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,t.removeEventListener("focusin",this._focusIn),t.removeEventListener("focusout",this._focusOut),delete t.__tabsterDummyContainer,(r=R.getParentNode(t))===null||r===void 0||r.removeChild(t))}setTopLeft(r,t){var n;const i=(n=this.input)===null||n===void 0?void 0:n.style;i&&(i.top=`${r}px`,i.left=`${t}px`)}_isBackward(r,t,n){return r&&!n?!this.isFirst:!!(n&&t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)}}const Zo={Root:1,Modalizer:2,Mover:3,Groupper:4};class Er{constructor(r,t,n,i,o,s){this._element=t,this._instance=new nb(r,t,this,n,i,o,s)}_setHandlers(r,t){this._onFocusIn=r,this._onFocusOut=t}moveOut(r){var t;(t=this._instance)===null||t===void 0||t.moveOut(r)}moveOutWithDefaultAction(r,t){var n;(n=this._instance)===null||n===void 0||n.moveOutWithDefaultAction(r,t)}getHandler(r){return r?this._onFocusIn:this._onFocusOut}setTabbable(r){var t;(t=this._instance)===null||t===void 0||t.setTabbable(this,r)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(r,t,n,i,o){const l=new Xo(r.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(l){let u,a;if(t.tagName==="BODY")u=t,a=n&&i||!n&&!i?R.getFirstElementChild(t):null;else{n&&(!i||i&&!r.focusable.isFocusable(t,!1,!0,!0))?(u=t,a=i?t.firstElementChild:null):(u=R.getParentElement(t),a=n&&i||!n&&!i?t:R.getNextElementSibling(t));let c,d;do c=n&&i||!n&&!i?R.getPreviousElementSibling(a):a,d=Nr(c),d===t?a=n&&i||!n&&!i?c:R.getNextElementSibling(c):d=null;while(d)}u!=null&&u.dispatchEvent(new jt({by:"root",owner:u,next:null,relatedEvent:o}))&&(R.insertBefore(u,l,a),ht(l))}}static addPhantomDummyWithTarget(r,t,n,i){const s=new Xo(r.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new Ke(r.getWindow,i)).input;if(s){let l,u;Xp(t)&&!n?(l=t,u=R.getFirstElementChild(t)):(l=R.getParentElement(t),u=n?t:R.getNextElementSibling(t)),l&&R.insertBefore(l,s,u)}}}function At(e,r){var t;const n={1:"Root",2:"Modalizer",3:"Mover",4:"Groupper"};(t=e.input)===null||t===void 0||t.setAttribute(Xl,[`isFirst=${e.isFirst}`,`isOutside=${e.isOutside}`,...r.map(i=>`(${n[i.priority]}, tabbable=${i.tabbable})`)].join(", "))}class ob{constructor(r){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=t=>{var n;this._changedParents.has(t)||(this._changedParents.add(t),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=(n=this._win)===null||n===void 0?void 0:n.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const i of this._dummyElements){const o=i.get();if(o){const s=this._dummyCallbacks.get(o);if(s){const l=R.getParentNode(o);(!l||this._changedParents.has(l))&&s()}}}this._changedParents=new WeakSet},Fi)))},this._win=r}add(r,t){!this._dummyCallbacks.has(r)&&this._win&&(this._dummyElements.push(new Ke(this._win,r)),this._dummyCallbacks.set(r,t),this.domChanged=this._domChanged)}remove(r){this._dummyElements=this._dummyElements.filter(t=>{const n=t.get();return n&&n!==r}),this._dummyCallbacks.delete(r),this._dummyElements.length===0&&delete this.domChanged}dispose(){var r;const t=(r=this._win)===null||r===void 0?void 0:r.call(this);this._updateTimer&&(t==null||t.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(t==null||t.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}updatePositions(r){this._win&&(this._updateQueue.add(r),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var r;this._updateTimer||(this._updateTimer=(r=this._win)===null||r===void 0?void 0:r.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+Fi<=Date.now()){const t=new Map,n=[];for(const i of this._updateQueue)n.push(i(t));this._updateQueue.clear();for(const i of n)i();t.clear()}else this._scheduledUpdatePositions()},Fi))}}class nb{constructor(r,t,n,i,o,s,l){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(f,h,v)=>{this._onFocus(!0,f,h,v)},this._onFocusOut=(f,h,v)=>{this._onFocus(!1,f,h,v)},this.moveOut=f=>{var h;const v=this._firstDummy,b=this._lastDummy;if(v&&b){this._ensurePosition();const p=v.input,y=b.input,k=(h=this._element)===null||h===void 0?void 0:h.get();if(p&&y&&k){let w;f?(p.tabIndex=0,w=p):(y.tabIndex=0,w=y),w&&ht(w)}}},this.moveOutWithDefaultAction=(f,h)=>{var v;const b=this._firstDummy,p=this._lastDummy;if(b&&p){this._ensurePosition();const y=b.input,k=p.input,w=(v=this._element)===null||v===void 0?void 0:v.get();if(y&&k&&w){let x;f?!b.isOutside&&this._tabster.focusable.isFocusable(w,!0,!0,!0)?x=w:(b.useDefaultAction=!0,y.tabIndex=0,x=y):(p.useDefaultAction=!0,k.tabIndex=0,x=k),x&&w.dispatchEvent(new jt({by:"root",owner:w,next:null,relatedEvent:h}))&&ht(x)}}},this.setTabbable=(f,h)=>{var v,b;for(const y of this._wrappers)if(y.manager===f){y.tabbable=h;break}const p=this._getCurrent();if(p){const y=p.tabbable?0:-1;let k=(v=this._firstDummy)===null||v===void 0?void 0:v.input;k&&(k.tabIndex=y),k=(b=this._lastDummy)===null||b===void 0?void 0:b.input,k&&(k.tabIndex=y)}process.env.NODE_ENV==="development"&&(this._firstDummy&&At(this._firstDummy,this._wrappers),this._lastDummy&&At(this._lastDummy,this._wrappers))},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),process.env.NODE_ENV==="development"&&(this._firstDummy&&At(this._firstDummy,this._wrappers),this._lastDummy&&At(this._lastDummy,this._wrappers)),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=f=>{var h,v;const b=((h=this._firstDummy)===null||h===void 0?void 0:h.input)||((v=this._lastDummy)===null||v===void 0?void 0:v.input),p=this._transformElements,y=new Set;let k=0,w=0;const x=this._getWindow();for(let B=b;B&&B.nodeType===Node.ELEMENT_NODE;B=R.getParentElement(B)){let S=f.get(B);if(S===void 0){const C=x.getComputedStyle(B).transform;C&&C!=="none"&&(S={scrollTop:B.scrollTop,scrollLeft:B.scrollLeft}),f.set(B,S||null)}S&&(y.add(B),p.has(B)||B.addEventListener("scroll",this._addTransformOffsets),k+=S.scrollTop,w+=S.scrollLeft)}for(const B of p)y.has(B)||B.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=y,()=>{var B,S;(B=this._firstDummy)===null||B===void 0||B.setTopLeft(k,w),(S=this._lastDummy)===null||S===void 0||S.setTopLeft(k,w)}};const u=t.get();if(!u)throw new Error("No element");this._tabster=r,this._getWindow=r.getWindow,this._callForDefaultAction=l;const a=u.__tabsterDummy;if((a||this)._wrappers.push({manager:n,priority:i,tabbable:!0}),a)return process.env.NODE_ENV==="development"&&(this._firstDummy&&At(this._firstDummy,a._wrappers),this._lastDummy&&At(this._lastDummy,a._wrappers)),a;u.__tabsterDummy=this;const c=o==null?void 0:o.dummyInputsPosition,d=u.tagName;this._isOutside=c?c===Pp.Outside:(s||d==="UL"||d==="OL"||d==="TABLE")&&!(d==="LI"||d==="TD"||d==="TH"),this._firstDummy=new Xo(this._getWindow,this._isOutside,{isFirst:!0},t),this._lastDummy=new Xo(this._getWindow,this._isOutside,{isFirst:!1},t);const g=this._firstDummy.input;g&&r._dummyObserver.add(g,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=t,this._addDummyInputs()}dispose(r,t){var n,i,o,s;const l=this._wrappers=this._wrappers.filter(u=>u.manager!==r&&!t);if(process.env.NODE_ENV==="development"&&(this._firstDummy&&At(this._firstDummy,l),this._lastDummy&&At(this._lastDummy,l)),l.length===0){delete((n=this._element)===null||n===void 0?void 0:n.get()).__tabsterDummy;for(const c of this._transformElements)c.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const u=this._getWindow();this._addTimer&&(u.clearTimeout(this._addTimer),delete this._addTimer);const a=(i=this._firstDummy)===null||i===void 0?void 0:i.input;a&&this._tabster._dummyObserver.remove(a),(o=this._firstDummy)===null||o===void 0||o.dispose(),(s=this._lastDummy)===null||s===void 0||s.dispose()}}_onFocus(r,t,n,i){var o;const s=this._getCurrent();s&&(!t.useDefaultAction||this._callForDefaultAction)&&((o=s.manager.getHandler(r))===null||o===void 0||o(t,n,i))}_getCurrent(){return this._wrappers.sort((r,t)=>r.tabbable!==t.tabbable?r.tabbable?-1:1:r.priority-t.priority),this._wrappers[0]}_ensurePosition(){var r,t,n;const i=(r=this._element)===null||r===void 0?void 0:r.get(),o=(t=this._firstDummy)===null||t===void 0?void 0:t.input,s=(n=this._lastDummy)===null||n===void 0?void 0:n.input;if(!(!i||!o||!s))if(this._isOutside){const l=R.getParentNode(i);if(l){const u=R.getNextSibling(i);u!==s&&R.insertBefore(l,s,u),R.getPreviousElementSibling(i)!==o&&R.insertBefore(l,o,i)}}else{R.getLastElementChild(i)!==s&&R.appendChild(i,s);const l=R.getFirstElementChild(i);l&&l!==o&&l.parentNode&&R.insertBefore(l.parentNode,o,l)}}}function dc(e){let r=null;for(let t=R.getLastElementChild(e);t;t=R.getLastElementChild(t))r=t;return r||void 0}function ib(e,r){let t=e,n=null;for(;t&&!n;)n=r?R.getPreviousElementSibling(t):R.getNextElementSibling(t),t=R.getParentElement(t);return n||void 0}function Ai(e,r,t,n){const i=e.storageEntry(r,!0);let o=!1;if(!i.aug){if(n===void 0)return o;i.aug={}}if(n===void 0){if(t in i.aug){const s=i.aug[t];delete i.aug[t],s===null?r.removeAttribute(t):r.setAttribute(t,s),o=!0}}else{let s;t in i.aug||(s=r.getAttribute(t)),s!==void 0&&s!==n&&(i.aug[t]=s,n===null?r.removeAttribute(t):r.setAttribute(t,n),o=!0)}return n===void 0&&Object.keys(i.aug).length===0&&(delete i.aug,e.storageEntry(r,!1)),o}function ab(e){var r,t;const n=e.ownerDocument,i=(r=n.defaultView)===null||r===void 0?void 0:r.getComputedStyle(e);return e.offsetParent===null&&n.body!==e&&(i==null?void 0:i.position)!=="fixed"||(i==null?void 0:i.visibility)==="hidden"||(i==null?void 0:i.position)==="fixed"&&(i.display==="none"||((t=e.parentElement)===null||t===void 0?void 0:t.offsetParent)===null&&n.body!==e.parentElement)}function Oi(e){return e.tagName==="INPUT"&&!!e.name&&e.type==="radio"}function sb(e){if(!Oi(e))return;const r=e.name;let t=Array.from(R.getElementsByName(e,r)),n;return t=t.filter(i=>Oi(i)?(i.checked&&(n=i),!0):!1),{name:r,buttons:new Set(t),checked:n}}function Nr(e){var r;return((r=e==null?void 0:e.__tabsterDummyContainer)===null||r===void 0?void 0:r.get())||null}/*!
|
|
115
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
116
|
+
* Licensed under the MIT License.
|
|
117
|
+
*/function fc(e,r){const t=JSON.stringify(e);return r===!0?t:{[et]:t}}function lb(e,r){for(const t of Object.keys(r)){const n=r[t];n?e[t]=n:delete e[t]}}function cb(e,r,t){let n;if(t){const i=e.getAttribute(et);if(i)try{n=JSON.parse(i)}catch(o){process.env.NODE_ENV==="development"&&console.error(`data-tabster attribute error: ${o}`,e)}}n||(n={}),lb(n,r),Object.keys(n).length>0?e.setAttribute(et,fc(n,!0)):e.removeAttribute(et)}/*!
|
|
118
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
119
|
+
* Licensed under the MIT License.
|
|
120
|
+
*/function hc(e,r,t){if(process.env.NODE_ENV==="development"){const n=e.get();n&&(r?n.style.removeProperty("--tabster-root"):n.style.setProperty("--tabster-root",t+","))}}class gc extends Er{constructor(r,t,n,i){super(r,t,Zo.Root,i,void 0,!0),this._onDummyInputFocus=o=>{var s;if(o.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const l=this._element.get();if(l){this._setFocused(!0);const u=this._tabster.focusedElement.getFirstOrLastTabbable(o.isFirst,{container:l,ignoreAccessibility:!0});if(u){ht(u);return}}(s=o.input)===null||s===void 0||s.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=r,this._setFocused=n}}class ub extends no{constructor(r,t,n,i,o){super(r,t,i),this._isFocused=!1,this._setFocused=a=>{var c;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===a)return;const d=this._element.get();d&&(a?(this._isFocused=!0,(c=this._dummyManager)===null||c===void 0||c.setTabbable(!1),d.dispatchEvent(new Wp({element:d}))):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var g;delete this._setFocusedTimer,this._isFocused=!1,(g=this._dummyManager)===null||g===void 0||g.setTabbable(!0),d.dispatchEvent(new Vp({element:d}))},0))},this._onFocusIn=a=>{const c=this._tabster.getParent,d=this._element.get();let g=a.composedPath()[0];do{if(g===d){this._setFocused(!0);return}g=g&&c(g)}while(g)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=n;const s=r.getWindow;this.uid=Ko(s,t),this._sys=o,(r.controlTab||r.rootDummyInputs)&&this.addDummyInputs();const u=s().document;u.addEventListener(at,this._onFocusIn),u.addEventListener(oo,this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new gc(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var r;this._onDispose(this);const t=this._tabster.getWindow(),n=t.document;n.removeEventListener(at,this._onFocusIn),n.removeEventListener(oo,this._onFocusOut),this._setFocusedTimer&&(t.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),(r=this._dummyManager)===null||r===void 0||r.dispose(),this._remove()}moveOutWithDefaultAction(r,t){const n=this._dummyManager;if(n)n.moveOutWithDefaultAction(r,t);else{const i=this.getElement();i&&gc.moveWithPhantomDummy(this._tabster,i,!0,r,t)}}_add(){process.env.NODE_ENV==="development"&&hc(this._element,!1,this.uid)}_remove(){process.env.NODE_ENV==="development"&&hc(this._element,!0)}}class he{constructor(r,t){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var n;const i=this._win().document,o=i.body;if(o){this._autoRootUnwait(i);const s=this._autoRoot;if(s)return cb(o,{root:s},!0),Ql(this._tabster,o),(n=Ae(this._tabster,o))===null||n===void 0?void 0:n.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,i.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=n=>{delete this._roots[n.id]},this._tabster=r,this._win=r.getWindow,this._autoRoot=t,r.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(r){r.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const r=this._win();this._autoRootUnwait(r.document),delete this._autoRoot,Object.keys(this._roots).forEach(t=>{this._roots[t]&&(this._roots[t].dispose(),delete this._roots[t])}),this.rootById={}}createRoot(r,t,n){process.env.NODE_ENV;const i=new ub(this._tabster,r,this._onRootDispose,t,n);return this._roots[i.id]=i,this._forceDummy&&i.addDummyInputs(),i}addDummyInputs(){this._forceDummy=!0;const r=this._roots;for(const t of Object.keys(r))r[t].addDummyInputs()}static getRootByUId(r,t){const n=r().__tabsterInstance;return n&&n.root.rootById[t]}static getTabsterContext(r,t,n){n===void 0&&(n={});var i,o,s,l;if(!t.ownerDocument)return;const{checkRtl:u,referenceElement:a}=n,c=r.getParent;r.drainInitQueue();let d,g,f,h,v=!1,b,p,y,k,w=a||t;const x={};for(;w&&(!d||u);){const S=Ae(r,w);if(u&&y===void 0){const U=w.dir;U&&(y=U.toLowerCase()==="rtl")}if(!S){w=c(w);continue}const C=w.tagName;(S.uncontrolled||C==="IFRAME"||C==="WEBVIEW")&&r.focusable.isVisible(w)&&(k=w),!h&&(!((i=S.focusable)===null||i===void 0)&&i.excludeFromMover)&&!f&&(v=!0);const E=S.modalizer,I=S.groupper,$=S.mover;!g&&E&&(g=E),!f&&I&&(!g||E)&&(g?(!I.isActive()&&I.getProps().tabbability&&g.userId!==((o=r.modalizer)===null||o===void 0?void 0:o.activeId)&&(g=void 0,f=I),p=I):f=I),!h&&$&&(!g||E)&&(!I||w!==t)&&w.contains(t)&&(h=$,b=!!f&&f!==I),S.root&&(d=S.root),!((s=S.focusable)===null||s===void 0)&&s.ignoreKeydown&&Object.assign(x,S.focusable.ignoreKeydown),w=c(w)}if(!d){const S=r.root;S._autoRoot&&!((l=t.ownerDocument)===null||l===void 0)&&l.body&&(d=S._autoRootCreate())}return f&&!h&&(b=!0),process.env.NODE_ENV==="development"&&!d&&(g||f||h)&&console.error("Tabster Root is required for Mover, Groupper and Modalizer to work."),d?{root:d,modalizer:g,groupper:f,mover:h,groupperBeforeMover:b,modalizerInGroupper:p,rtl:u?!!y:void 0,uncontrolled:k,excludedFromMover:v,ignoreKeydown:S=>!!x[S.key]}:void 0}static getRoot(r,t){var n;const i=r.getParent;for(let o=t;o;o=i(o)){const s=(n=Ae(r,o))===null||n===void 0?void 0:n.root;if(s)return s}}onRoot(r,t){t?delete this.rootById[r.uid]:this.rootById[r.uid]=r}}/*!
|
|
121
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
122
|
+
* Licensed under the MIT License.
|
|
123
|
+
*/class vc{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(r){const t=this._callbacks;t.indexOf(r)<0&&t.push(r)}subscribeFirst(r){const t=this._callbacks,n=t.indexOf(r);n>=0&&t.splice(n,1),t.unshift(r)}unsubscribe(r){const t=this._callbacks.indexOf(r);t>=0&&this._callbacks.splice(t,1)}setVal(r,t){this._val!==r&&(this._val=r,this._callCallbacks(r,t))}getVal(){return this._val}trigger(r,t){this._callCallbacks(r,t)}_callCallbacks(r,t){this._callbacks.forEach(n=>n(r,t))}}/*!
|
|
124
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
125
|
+
* Licensed under the MIT License.
|
|
126
|
+
*/class db{constructor(r){this._tabster=r}dispose(){}getProps(r){const t=Ae(this._tabster,r);return t&&t.focusable||{}}isFocusable(r,t,n,i){return uc(r,Zl)&&(t||r.tabIndex!==-1)?(n||this.isVisible(r))&&(i||this.isAccessible(r)):!1}isVisible(r){if(!r.ownerDocument||r.nodeType!==Node.ELEMENT_NODE||ab(r))return!1;const t=r.ownerDocument.body.getBoundingClientRect();return!(t.width===0&&t.height===0)}isAccessible(r){var t;for(let n=r;n;n=R.getParentElement(n)){const i=Ae(this._tabster,n);if(this._isHidden(n)||!((t=i==null?void 0:i.focusable)===null||t===void 0?void 0:t.ignoreAriaDisabled)&&this._isDisabled(n))return!1}return!0}_isDisabled(r){return r.hasAttribute("disabled")}_isHidden(r){var t;const n=r.getAttribute("aria-hidden");return!!(n&&n.toLowerCase()==="true"&&!(!((t=this._tabster.modalizer)===null||t===void 0)&&t.isAugmented(r)))}findFirst(r,t){return this.findElement({...r},t)}findLast(r,t){return this.findElement({isBackward:!0,...r},t)}findNext(r,t){return this.findElement({...r},t)}findPrev(r,t){return this.findElement({...r,isBackward:!0},t)}findDefault(r,t){return this.findElement({...r,acceptCondition:n=>this.isFocusable(n,r.includeProgrammaticallyFocusable)&&!!this.getProps(n).isDefault},t)||null}findAll(r){return this._findElements(!0,r)||[]}findElement(r,t){const n=this._findElements(!1,r,t);return n&&n[0]}_findElements(r,t,n){var i,o,s;const{container:l,currentElement:u=null,includeProgrammaticallyFocusable:a,useActiveModalizer:c,ignoreAccessibility:d,modalizerId:g,isBackward:f,onElement:h}=t;n||(n={});const v=[];let{acceptCondition:b}=t;const p=!!b;if(!l)return null;b||(b=x=>this.isFocusable(x,a,!1,d));const y={container:l,modalizerUserId:g===void 0&&c?(i=this._tabster.modalizer)===null||i===void 0?void 0:i.activeId:g||((s=(o=he.getTabsterContext(this._tabster,l))===null||o===void 0?void 0:o.modalizer)===null||s===void 0?void 0:s.userId),from:u||l,isBackward:f,isFindAll:r,acceptCondition:b,hasCustomCondition:p,includeProgrammaticallyFocusable:a,ignoreAccessibility:d,cachedGrouppers:{},cachedRadioGroups:{}},k=Ii(l.ownerDocument,l,x=>this._acceptElement(x,y));if(!k)return null;const w=x=>{var B,S;const C=(B=y.foundElement)!==null&&B!==void 0?B:y.foundBackward;return C&&v.push(C),r?C&&(y.found=!1,delete y.foundElement,delete y.foundBackward,delete y.fromCtx,y.from=C,h&&!h(C))?!1:!!(C||x):(C&&n&&(n.uncontrolled=(S=he.getTabsterContext(this._tabster,C))===null||S===void 0?void 0:S.uncontrolled),!!(x&&!C))};if(u||(n.outOfDOMOrder=!0),u&&R.nodeContains(l,u))k.currentNode=u;else if(f){const x=dc(l);if(!x)return null;if(this._acceptElement(x,y)===NodeFilter.FILTER_ACCEPT&&!w(!0))return y.skippedFocusable&&(n.outOfDOMOrder=!0),v;k.currentNode=x}do f?k.previousNode():k.nextNode();while(w());return y.skippedFocusable&&(n.outOfDOMOrder=!0),v.length?v:null}_acceptElement(r,t){var n,i,o;if(t.found)return NodeFilter.FILTER_ACCEPT;const s=t.foundBackward;if(s&&(r===s||!R.nodeContains(s,r)))return t.found=!0,t.foundElement=s,NodeFilter.FILTER_ACCEPT;const l=t.container;if(r===l)return NodeFilter.FILTER_SKIP;if(!R.nodeContains(l,r)||Nr(r)||R.nodeContains(t.rejectElementsFrom,r))return NodeFilter.FILTER_REJECT;const u=t.currentCtx=he.getTabsterContext(this._tabster,r);if(!u)return NodeFilter.FILTER_SKIP;if(lc(r))return this.isFocusable(r,void 0,!0,!0)&&(t.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!t.hasCustomCondition&&(r.tagName==="IFRAME"||r.tagName==="WEBVIEW"))return this.isVisible(r)&&((n=u.modalizer)===null||n===void 0?void 0:n.userId)===((i=this._tabster.modalizer)===null||i===void 0?void 0:i.activeId)?(t.found=!0,t.rejectElementsFrom=t.foundElement=r,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!t.ignoreAccessibility&&!this.isAccessible(r))return this.isFocusable(r,!1,!0,!0)&&(t.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let a,c=t.fromCtx;c||(c=t.fromCtx=he.getTabsterContext(this._tabster,t.from));const d=c==null?void 0:c.mover;let g=u.groupper,f=u.mover;if(a=(o=this._tabster.modalizer)===null||o===void 0?void 0:o.acceptElement(r,t),a!==void 0&&(t.skippedFocusable=!0),a===void 0&&(g||f||d)){const h=g==null?void 0:g.getElement(),v=d==null?void 0:d.getElement();let b=f==null?void 0:f.getElement();if(b&&R.nodeContains(v,b)&&R.nodeContains(l,v)&&(!h||!f||R.nodeContains(v,h))&&(f=d,b=v),h){if(h===l||!R.nodeContains(l,h))g=void 0;else if(!R.nodeContains(h,r))return NodeFilter.FILTER_REJECT}if(b){if(!R.nodeContains(l,b))f=void 0;else if(!R.nodeContains(b,r))return NodeFilter.FILTER_REJECT}g&&f&&(b&&h&&!R.nodeContains(h,b)?f=void 0:g=void 0),g&&(a=g.acceptElement(r,t)),f&&(a=f.acceptElement(r,t))}if(a===void 0&&(a=t.acceptCondition(r)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,a===NodeFilter.FILTER_SKIP&&this.isFocusable(r,!1,!0,!0)&&(t.skippedFocusable=!0)),a===NodeFilter.FILTER_ACCEPT&&!t.found){if(!t.isFindAll&&Oi(r)&&!r.checked){const h=r.name;let v=t.cachedRadioGroups[h];if(v||(v=sb(r),v&&(t.cachedRadioGroups[h]=v)),v!=null&&v.checked&&v.checked!==r)return NodeFilter.FILTER_SKIP}t.isBackward?(t.foundBackward=r,a=NodeFilter.FILTER_SKIP):(t.found=!0,t.foundElement=r)}return a}}/*!
|
|
127
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
128
|
+
* Licensed under the MIT License.
|
|
129
|
+
*/const Be={Tab:"Tab",Enter:"Enter",Escape:"Escape",PageUp:"PageUp",PageDown:"PageDown",End:"End",Home:"Home",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown"};/*!
|
|
130
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
131
|
+
* Licensed under the MIT License.
|
|
132
|
+
*/function fb(e,r){var t;const n=e.getParent;let i=r;do{const o=(t=Ae(e,i))===null||t===void 0?void 0:t.uncontrolled;if(o&&e.uncontrolled.isUncontrolledCompletely(i,!!o.completely))return i;i=n(i)}while(i)}const mc={[wt.Restorer]:0,[wt.Deloser]:1,[wt.EscapeGroupper]:2};class Ce extends vc{constructor(r,t){super(),this._init=()=>{const n=this._win(),i=n.document;i.addEventListener(at,this._onFocusIn,!0),i.addEventListener(oo,this._onFocusOut,!0),n.addEventListener("keydown",this._onKeyDown,!0);const o=R.getActiveElement(i);o&&o!==i.body&&this._setFocusedElement(o),this.subscribe(this._onChanged)},this._onFocusIn=n=>{const i=n.composedPath()[0];i&&this._setFocusedElement(i,n.detail.relatedTarget,n.detail.isFocusedProgrammatically)},this._onFocusOut=n=>{var i;this._setFocusedElement(void 0,(i=n.detail)===null||i===void 0?void 0:i.originalEvent.relatedTarget)},this._validateFocusedElement=n=>{},this._onKeyDown=n=>{if(n.key!==Be.Tab||n.ctrlKey)return;const i=this.getVal();if(!i||!i.ownerDocument||i.contentEditable==="true")return;const o=this._tabster,s=o.controlTab,l=he.getTabsterContext(o,i);if(!l||l.ignoreKeydown(n))return;const u=n.shiftKey,a=Ce.findNextTabbable(o,l,void 0,i,void 0,u,!0),c=l.root.getElement();if(!c)return;const d=a==null?void 0:a.element,g=fb(o,i);if(d){const f=a.uncontrolled;if(l.uncontrolled||R.nodeContains(f,i)){if(!a.outOfDOMOrder&&f===l.uncontrolled||g&&!R.nodeContains(g,d))return;Er.addPhantomDummyWithTarget(o,i,u,d);return}if(f&&o.focusable.isVisible(f)||d.tagName==="IFRAME"&&o.focusable.isVisible(d)){c.dispatchEvent(new jt({by:"root",owner:c,next:d,relatedEvent:n}))&&Er.moveWithPhantomDummy(o,f??d,!1,u,n);return}(s||a!=null&&a.outOfDOMOrder)&&c.dispatchEvent(new jt({by:"root",owner:c,next:d,relatedEvent:n}))&&(n.preventDefault(),n.stopImmediatePropagation(),ht(d))}else!g&&c.dispatchEvent(new jt({by:"root",owner:c,next:null,relatedEvent:n}))&&l.root.moveOutWithDefaultAction(u,n)},this._onChanged=(n,i)=>{var o,s;if(n)n.dispatchEvent(new Ap(i));else{const l=(o=this._lastVal)===null||o===void 0?void 0:o.get();if(l){const u={...i},a=he.getTabsterContext(this._tabster,l),c=(s=a==null?void 0:a.modalizer)===null||s===void 0?void 0:s.userId;c&&(u.modalizerId=c),l.dispatchEvent(new Op(u))}}},this._tabster=r,this._win=t,r.queueInit(this._init)}dispose(){super.dispose();const r=this._win(),t=r.document;t.removeEventListener(at,this._onFocusIn,!0),t.removeEventListener(oo,this._onFocusOut,!0),r.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged);const n=this._asyncFocus;n&&(r.clearTimeout(n.timeout),delete this._asyncFocus),delete Ce._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(r,t){var n,i;let o=Ce._lastResetElement,s=o&&o.get();s&&R.nodeContains(t,s)&&delete Ce._lastResetElement,s=(i=(n=r._nextVal)===null||n===void 0?void 0:n.element)===null||i===void 0?void 0:i.get(),s&&R.nodeContains(t,s)&&delete r._nextVal,o=r._lastVal,s=o&&o.get(),s&&R.nodeContains(t,s)&&delete r._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var r;let t=(r=this._lastVal)===null||r===void 0?void 0:r.get();return(!t||t&&!ji(t.ownerDocument,t))&&(this._lastVal=t=void 0),t}focus(r,t,n,i){return this._tabster.focusable.isFocusable(r,t,!1,n)?(r.focus({preventScroll:i}),!0):!1}focusDefault(r){const t=this._tabster.focusable.findDefault({container:r});return t?(this._tabster.focusedElement.focus(t),!0):!1}getFirstOrLastTabbable(r,t){var n;const{container:i,ignoreAccessibility:o}=t;let s;if(i){const l=he.getTabsterContext(this._tabster,i);l&&(s=(n=Ce.findNextTabbable(this._tabster,l,i,void 0,void 0,!r,o))===null||n===void 0?void 0:n.element)}return s&&!R.nodeContains(i,s)&&(s=void 0),s||void 0}_focusFirstOrLast(r,t){const n=this.getFirstOrLastTabbable(r,t);return n?(this.focus(n,!1,!0),!0):!1}focusFirst(r){return this._focusFirstOrLast(!0,r)}focusLast(r){return this._focusFirstOrLast(!1,r)}resetFocus(r){if(!this._tabster.focusable.isVisible(r))return!1;if(this._tabster.focusable.isFocusable(r,!0,!0,!0))this.focus(r);else{const t=r.getAttribute("tabindex"),n=r.getAttribute("aria-hidden");r.tabIndex=-1,r.setAttribute("aria-hidden","true"),Ce._lastResetElement=new Ke(this._win,r),this.focus(r,!0,!0),this._setOrRemoveAttribute(r,"tabindex",t),this._setOrRemoveAttribute(r,"aria-hidden",n)}return!0}requestAsyncFocus(r,t,n){const i=this._tabster.getWindow(),o=this._asyncFocus;if(o){if(mc[r]>mc[o.source])return;i.clearTimeout(o.timeout)}this._asyncFocus={source:r,callback:t,timeout:i.setTimeout(()=>{this._asyncFocus=void 0,t()},n)}}cancelAsyncFocus(r){const t=this._asyncFocus;(t==null?void 0:t.source)===r&&(this._tabster.getWindow().clearTimeout(t.timeout),this._asyncFocus=void 0)}_setOrRemoveAttribute(r,t,n){n===null?r.removeAttribute(t):r.setAttribute(t,n)}_setFocusedElement(r,t,n){var i,o;if(this._tabster._noop)return;const s={relatedTarget:t};if(r){const u=(i=Ce._lastResetElement)===null||i===void 0?void 0:i.get();if(Ce._lastResetElement=void 0,u===r||lc(r))return;s.isFocusedProgrammatically=n;const a=he.getTabsterContext(this._tabster,r),c=(o=a==null?void 0:a.modalizer)===null||o===void 0?void 0:o.userId;c&&(s.modalizerId=c)}const l=this._nextVal={element:r?new Ke(this._win,r):void 0,detail:s};r&&r!==this._val&&this._validateFocusedElement(r),this._nextVal===l&&this.setVal(r,s),this._nextVal=void 0}setVal(r,t){super.setVal(r,t),r&&(this._lastVal=new Ke(this._win,r))}static findNextTabbable(r,t,n,i,o,s,l){const u=n||t.root.getElement();if(!u)return null;let a=null;const c=Ce._isTabbingTimer,d=r.getWindow();c&&d.clearTimeout(c),Ce.isTabbing=!0,Ce._isTabbingTimer=d.setTimeout(()=>{delete Ce._isTabbingTimer,Ce.isTabbing=!1},0);const g=t.modalizer,f=t.groupper,h=t.mover,v=b=>{if(a=b.findNextTabbable(i,o,s,l),i&&!(a!=null&&a.element)){const p=b!==g&&R.getParentElement(b.getElement());if(p){const y=he.getTabsterContext(r,i,{referenceElement:p});if(y){const k=b.getElement(),w=s?k:k&&dc(k)||k;w&&(a=Ce.findNextTabbable(r,y,n,w,p,s,l),a&&(a.outOfDOMOrder=!0))}}}};if(f&&h)v(t.groupperBeforeMover?f:h);else if(f)v(f);else if(h)v(h);else if(g)v(g);else{const b={container:u,currentElement:i,referenceElement:o,ignoreAccessibility:l,useActiveModalizer:!0},p={};a={element:r.focusable[s?"findPrev":"findNext"](b,p),outOfDOMOrder:p.outOfDOMOrder,uncontrolled:p.uncontrolled}}return a}}Ce.isTabbing=!1;/*!
|
|
133
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
134
|
+
* Licensed under the MIT License.
|
|
135
|
+
*/class hb extends Er{constructor(r,t,n,i){super(n,r,Zo.Groupper,i,!0),this._setHandlers((o,s,l)=>{var u,a;const c=r.get(),d=o.input;if(c&&d){const g=he.getTabsterContext(n,d);if(g){let f;f=(u=t.findNextTabbable(l||void 0,void 0,s,!0))===null||u===void 0?void 0:u.element,f||(f=(a=Ce.findNextTabbable(n,g,void 0,o.isOutside?d:ib(c,!s),void 0,s,!0))===null||a===void 0?void 0:a.element),f&&ht(f)}}})}}class gb extends no{constructor(r,t,n,i,o){super(r,t,i),this._shouldTabInside=!1,this.makeTabbable(!1),this._onDispose=n,r.controlTab||(this.dummyManager=new hb(this._element,this,r,o))}dispose(){var r;this._onDispose(this);const t=this._element.get();(r=this.dummyManager)===null||r===void 0||r.dispose(),delete this.dummyManager,t&&process.env.NODE_ENV==="development"&&pc(this._element,!0),delete this._first}findNextTabbable(r,t,n,i){const o=this.getElement();if(!o)return null;const s=Nr(r)===o;if(!this._shouldTabInside&&r&&R.nodeContains(o,r)&&!s)return{element:void 0,outOfDOMOrder:!0};const l=this.getFirst(!0);if(!r||!R.nodeContains(o,r)||s)return{element:l,outOfDOMOrder:!0};const u=this._tabster;let a=null,c=!1,d;if(this._shouldTabInside&&l){const g={container:o,currentElement:r,referenceElement:t,ignoreAccessibility:i,useActiveModalizer:!0},f={};a=u.focusable[n?"findPrev":"findNext"](g,f),c=!!f.outOfDOMOrder,!a&&this._props.tabbability===Uo.LimitedTrapFocus&&(a=u.focusable[n?"findLast":"findFirst"]({container:o,ignoreAccessibility:i,useActiveModalizer:!0},f),c=!0),d=f.uncontrolled}return{element:a,uncontrolled:d,outOfDOMOrder:c}}makeTabbable(r){this._shouldTabInside=r||!this._props.tabbability,process.env.NODE_ENV==="development"&&pc(this._element,!this._shouldTabInside)}isActive(r){var t;const n=this.getElement()||null;let i=!0;for(let s=R.getParentElement(n);s;s=R.getParentElement(s)){const l=(t=Ae(this._tabster,s))===null||t===void 0?void 0:t.groupper;l&&(l._shouldTabInside||(i=!1))}let o=i?this._props.tabbability?this._shouldTabInside:!1:void 0;if(o&&r){const s=this._tabster.focusedElement.getFocusedElement();s&&(o=s!==this.getFirst(!0))}return o}getFirst(r){var t;const n=this.getElement();let i;if(n){if(r&&this._tabster.focusable.isFocusable(n))return n;i=(t=this._first)===null||t===void 0?void 0:t.get(),i||(i=this._tabster.focusable.findFirst({container:n,useActiveModalizer:!0})||void 0,i&&this.setFirst(i))}return i}setFirst(r){r?this._first=new Ke(this._tabster.getWindow,r):delete this._first}acceptElement(r,t){const n=t.cachedGrouppers,i=R.getParentElement(this.getElement()),o=i&&he.getTabsterContext(this._tabster,i),s=o==null?void 0:o.groupper,l=o!=null&&o.groupperBeforeMover?s:void 0;let u;const a=g=>{let f=n[g.id],h;return f?h=f.isActive:(h=this.isActive(!0),f=n[g.id]={isActive:h}),h};if(l&&(u=l.getElement(),!a(l)&&u&&t.container!==u&&R.nodeContains(t.container,u)))return t.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const c=a(this),d=this.getElement();if(d&&c!==!0){if(d===r&&s&&(u||(u=s.getElement()),u&&!a(s)&&R.nodeContains(t.container,u)&&u!==t.container)||d!==r&&R.nodeContains(d,r))return t.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const g=n[this.id];let f;if("first"in g?f=g.first:f=g.first=this.getFirst(!0),f&&t.acceptCondition(f))return t.rejectElementsFrom=d,t.skippedFocusable=!0,f!==t.from?(t.found=!0,t.foundElement=f,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT}}}class vb{constructor(r,t){this._current={},this._grouppers={},this._init=()=>{const n=this._win();this._tabster.focusedElement.subscribeFirst(this._onFocus);const i=n.document,o=R.getActiveElement(i);o&&this._onFocus(o),i.addEventListener("mousedown",this._onMouseDown,!0),n.addEventListener("keydown",this._onKeyDown,!0),n.addEventListener(Ri,this._onMoveFocus)},this._onGroupperDispose=n=>{delete this._grouppers[n.id]},this._onFocus=n=>{n&&this._updateCurrent(n)},this._onMouseDown=n=>{let i=n.target;for(;i&&!this._tabster.focusable.isFocusable(i);)i=this._tabster.getParent(i);i&&this._updateCurrent(i)},this._onKeyDown=n=>{if(n.key!==Be.Enter&&n.key!==Be.Escape||n.ctrlKey||n.altKey||n.shiftKey||n.metaKey)return;const i=this._tabster.focusedElement.getFocusedElement();i&&this.handleKeyPress(i,n)},this._onMoveFocus=n=>{var i;const o=n.composedPath()[0],s=(i=n.detail)===null||i===void 0?void 0:i.action;o&&s!==void 0&&!n.defaultPrevented&&(s===Ei.Enter?this._enterGroupper(o):this._escapeGroupper(o),n.stopImmediatePropagation())},this._tabster=r,this._win=t,r.queueInit(this._init)}dispose(){const r=this._win();this._tabster.focusedElement.cancelAsyncFocus(wt.EscapeGroupper),this._current={},this._updateTimer&&(r.clearTimeout(this._updateTimer),delete this._updateTimer),this._tabster.focusedElement.unsubscribe(this._onFocus),r.document.removeEventListener("mousedown",this._onMouseDown,!0),r.removeEventListener("keydown",this._onKeyDown,!0),r.removeEventListener(Ri,this._onMoveFocus),Object.keys(this._grouppers).forEach(t=>{this._grouppers[t]&&(this._grouppers[t].dispose(),delete this._grouppers[t])})}createGroupper(r,t,n){process.env.NODE_ENV;const i=this._tabster,o=new gb(i,r,this._onGroupperDispose,t,n);this._grouppers[o.id]=o;const s=i.focusedElement.getFocusedElement();return s&&R.nodeContains(r,s)&&!this._updateTimer&&(this._updateTimer=this._win().setTimeout(()=>{delete this._updateTimer,s===i.focusedElement.getFocusedElement()&&this._updateCurrent(s)},0)),o}forgetCurrentGrouppers(){this._current={}}_updateCurrent(r){var t;this._updateTimer&&(this._win().clearTimeout(this._updateTimer),delete this._updateTimer);const n=this._tabster,i={};for(let o=n.getParent(r);o;o=n.getParent(o)){const s=(t=Ae(n,o))===null||t===void 0?void 0:t.groupper;if(s){i[s.id]=!0,this._current[s.id]=s;const l=s.isActive()||r!==o&&(!s.getProps().delegated||s.getFirst(!1)!==r);s.makeTabbable(l)}}for(const o of Object.keys(this._current)){const s=this._current[o];s.id in i||(s.makeTabbable(!1),s.setFirst(void 0),delete this._current[o])}}_enterGroupper(r,t){const n=this._tabster,i=he.getTabsterContext(n,r),o=(i==null?void 0:i.groupper)||(i==null?void 0:i.modalizerInGroupper),s=o==null?void 0:o.getElement();if(o&&s&&(r===s||o.getProps().delegated&&r===o.getFirst(!1))){const l=n.focusable.findNext({container:s,currentElement:r,useActiveModalizer:!0});if(l&&(!t||t&&s.dispatchEvent(new jt({by:"groupper",owner:s,next:l,relatedEvent:t}))))return t&&(t.preventDefault(),t.stopImmediatePropagation()),l.focus(),l}return null}_escapeGroupper(r,t,n){const i=this._tabster,o=he.getTabsterContext(i,r);let s=(o==null?void 0:o.groupper)||(o==null?void 0:o.modalizerInGroupper);const l=s==null?void 0:s.getElement();if(s&&l&&R.nodeContains(l,r)){let u;if(r!==l||n)u=s.getFirst(!0);else{const a=R.getParentElement(l),c=a?he.getTabsterContext(i,a):void 0;s=c==null?void 0:c.groupper,u=s==null?void 0:s.getFirst(!0)}if(u&&(!t||t&&l.dispatchEvent(new jt({by:"groupper",owner:l,next:u,relatedEvent:t}))))return s&&s.makeTabbable(!1),u.focus(),u}return null}moveFocus(r,t){return t===Ei.Enter?this._enterGroupper(r):this._escapeGroupper(r)}handleKeyPress(r,t,n){const i=this._tabster,o=he.getTabsterContext(i,r);if(o&&(o!=null&&o.groupper||o!=null&&o.modalizerInGroupper)){if(i.focusedElement.cancelAsyncFocus(wt.EscapeGroupper),o.ignoreKeydown(t))return;if(t.key===Be.Enter)this._enterGroupper(r,t);else if(t.key===Be.Escape){const s=i.focusedElement.getFocusedElement();i.focusedElement.requestAsyncFocus(wt.EscapeGroupper,()=>{s!==i.focusedElement.getFocusedElement()&&(n&&!s||!n)||this._escapeGroupper(r,t,n)},0)}}}}function pc(e,r){if(process.env.NODE_ENV==="development"){const t=e.get();t&&(r?t.style.removeProperty("--tabster-groupper"):t.style.setProperty("--tabster-groupper","unlimited"))}}/*!
|
|
136
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
137
|
+
* Licensed under the MIT License.
|
|
138
|
+
*/class mb extends vc{constructor(r){super(),this._onChange=t=>{this.setVal(t,void 0)},this._keyborg=$o(r()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),Go(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(r){var t;(t=this._keyborg)===null||t===void 0||t.setVal(r)}isNavigatingWithKeyboard(){var r;return!!(!((r=this._keyborg)===null||r===void 0)&&r.isNavigatingWithKeyboard())}}/*!
|
|
139
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
140
|
+
* Licensed under the MIT License.
|
|
141
|
+
*/let pb=0;const qi="aria-hidden";function Mi(e,r,t,n,i,o){if(process.env.NODE_ENV==="development"){const s=e.get();s&&(r?s.style.removeProperty("--tabster-modalizer"):s.style.setProperty("--tabster-modalizer",t+","+n+","+(i?"active":"inactive")+",,"+(o?`focused(${o})`:"not-focused")))}}class bb extends Er{constructor(r,t,n){super(t,r,Zo.Modalizer,n),this._setHandlers((i,o)=>{var s,l;const u=r.get(),a=u&&((s=he.getRoot(t,u))===null||s===void 0?void 0:s.getElement()),c=i.input;let d;if(a&&c){const g=Nr(c),f=he.getTabsterContext(t,g||c);f&&(d=(l=Ce.findNextTabbable(t,f,a,c,void 0,o,!0))===null||l===void 0?void 0:l.element),d&&ht(d)}})}}class yb extends no{constructor(r,t,n,i,o,s){super(r,t,i),this._wasFocused=0,this.userId=i.id,this._onDispose=n,this._activeElements=s,r.controlTab||(this.dummyManager=new bb(this._element,r,o)),process.env.NODE_ENV==="development"&&Mi(this._element,!1,this.id,this.userId,this._isActive,this._wasFocused)}makeActive(r){if(this._isActive!==r){this._isActive=r;const t=this.getElement();if(t){const n=this._activeElements,i=n.map(o=>o.get()).indexOf(t);r?i<0&&n.push(new Ke(this._tabster.getWindow,t)):i>=0&&n.splice(i,1)}process.env.NODE_ENV==="development"&&Mi(this._element,!1,this.id,this.userId,this._isActive,this._wasFocused),this._dispatchEvent(r)}}focused(r){return r||(this._wasFocused=++pb),this._wasFocused}setProps(r){r.id&&(this.userId=r.id),this._props={...r}}dispose(){var r;this.makeActive(!1),this._onDispose(this),(r=this.dummyManager)===null||r===void 0||r.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(r){return R.nodeContains(this.getElement(),r)}findNextTabbable(r,t,n,i){var o,s;if(!this.getElement())return null;const u=this._tabster;let a=null,c=!1,d;const g=r&&((o=he.getRoot(u,r))===null||o===void 0?void 0:o.getElement());if(g){const f={container:g,currentElement:r,referenceElement:t,ignoreAccessibility:i,useActiveModalizer:!0},h={};a=u.focusable[n?"findPrev":"findNext"](f,h),!a&&this._props.isTrapped&&(!((s=u.modalizer)===null||s===void 0)&&s.activeId)?(a=u.focusable[n?"findLast":"findFirst"]({container:g,ignoreAccessibility:i,useActiveModalizer:!0},h),a===null&&(a=r),c=!0):c=!!h.outOfDOMOrder,d=h.uncontrolled}return{element:a,uncontrolled:d,outOfDOMOrder:c}}_dispatchEvent(r,t){const n=this.getElement();let i=!1;if(n){const o=t?this._activeElements.map(s=>s.get()):[n];for(const s of o)if(s){const l={id:this.userId,element:n},u=r?new Lp(l):new Hp(l);s.dispatchEvent(u),u.defaultPrevented&&(i=!0)}}return i}_remove(){process.env.NODE_ENV==="development"&&Mi(this._element,!0)}}class wb{constructor(r,t,n){this._onModalizerDispose=o=>{const s=o.id,l=o.userId,u=this._parts[l];if(delete this._modalizers[s],u&&(delete u[s],Object.keys(u).length===0)){delete this._parts[l];const a=this._activationHistory,c=[];let d;for(let g=a.length;g--;){const f=a[g];f!==l&&f!==d&&(d=f,(f||c.length>0)&&c.unshift(f))}if(this._activationHistory=c,this.activeId===l){const g=c[0],f=g?Object.values(this._parts[g])[0]:void 0;this.setActive(f)}}},this._onKeyDown=o=>{var s;if(o.key!==Be.Escape)return;const l=this._tabster,u=l.focusedElement.getFocusedElement();if(u){const a=he.getTabsterContext(l,u),c=a==null?void 0:a.modalizer;if(a&&!a.groupper&&(c!=null&&c.isActive())&&!a.ignoreKeydown(o)){const d=c.userId;if(d){const g=this._parts[d];if(g){const f=Object.keys(g).map(h=>{var v;const b=g[h],p=b.getElement();let y;return p&&(y=(v=Ae(l,p))===null||v===void 0?void 0:v.groupper),b&&p&&y?{el:p,focusedSince:b.focused(!0)}:{focusedSince:0}}).filter(h=>h.focusedSince>0).sort((h,v)=>h.focusedSince>v.focusedSince?-1:h.focusedSince<v.focusedSince?1:0);if(f.length){const h=f[0].el;h&&((s=l.groupper)===null||s===void 0||s.handleKeyPress(h,o,!0))}}}}}},this._onFocus=(o,s)=>{var l;const u=this._tabster,a=o&&he.getTabsterContext(u,o);if(!a||!o)return;const c=this._augMap;for(let h=o;h;h=R.getParentElement(h))c.has(h)&&(c.delete(h),Ai(u,h,qi));let d=a.modalizer;const g=Ae(u,o),f=g==null?void 0:g.modalizer;if(f&&(f.focused(),f.userId===this.activeId&&g.groupper)){const h=u.getParent(o),v=h&&((l=he.getTabsterContext(u,h))===null||l===void 0?void 0:l.modalizer);if(v)d=v;else{this.setActive(void 0);return}}if(d==null||d.focused(),(d==null?void 0:d.userId)===this.activeId){this.currentIsOthersAccessible=d==null?void 0:d.getProps().isOthersAccessible;return}if(s.isFocusedProgrammatically||this.currentIsOthersAccessible||d!=null&&d.getProps().isAlwaysAccessible)this.setActive(d);else{const h=this._win();h.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=h.setTimeout(()=>this._restoreModalizerFocus(o),100)}},this._tabster=r,this._win=r.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=t,this._accessibleCheck=n,this._activationHistory=[],this.activeElements=[],r.controlTab||r.root.addDummyInputs(),this._win().addEventListener("keydown",this._onKeyDown,!0),r.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){const r=this._win();r.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach(t=>{this._modalizers[t]&&(this._modalizers[t].dispose(),delete this._modalizers[t])}),r.clearTimeout(this._restoreModalizerFocusTimer),r.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizer(r,t,n){var i;process.env.NODE_ENV;const o=new yb(this._tabster,r,this._onModalizerDispose,t,n,this.activeElements),s=o.id,l=t.id;this._modalizers[s]=o;let u=this._parts[l];u||(u=this._parts[l]={}),u[s]=o;const a=(i=this._tabster.focusedElement.getFocusedElement())!==null&&i!==void 0?i:null;return r!==a&&R.nodeContains(r,a)&&(l!==this.activeId?this.setActive(o):o.makeActive(!0)),o}isAugmented(r){return this._augMap.has(r)}hiddenUpdate(){this._hiddenUpdateTimer||(this._hiddenUpdateTimer=this._win().setTimeout(()=>{delete this._hiddenUpdateTimer,this._hiddenUpdate()},250))}setActive(r){const t=r==null?void 0:r.userId,n=this.activeId;if(n===t)return;if(this.activeId=t,n){const o=this._parts[n];if(o)for(const s of Object.keys(o))o[s].makeActive(!1)}if(t){const o=this._parts[t];if(o)for(const s of Object.keys(o))o[s].makeActive(!0)}this.currentIsOthersAccessible=r==null?void 0:r.getProps().isOthersAccessible,this.hiddenUpdate();const i=this._activationHistory;i[0]!==t&&(t!==void 0||i.length>0)&&i.unshift(t)}focus(r,t,n){const i=this._tabster,o=he.getTabsterContext(i,r),s=o==null?void 0:o.modalizer;if(s){this.setActive(s);const l=s.getProps(),u=s.getElement();if(u){if(t===void 0&&(t=l.isNoFocusFirst),!t&&i.keyboardNavigation.isNavigatingWithKeyboard()&&i.focusedElement.focusFirst({container:u})||(n===void 0&&(n=l.isNoFocusDefault),!n&&i.focusedElement.focusDefault(u)))return!0;i.focusedElement.resetFocus(u)}}else process.env.NODE_ENV==="development"&&console.error("Element is not in Modalizer.",r);return!1}activate(r){var t;const n=r?(t=he.getTabsterContext(this._tabster,r))===null||t===void 0?void 0:t.modalizer:void 0;return!r||n?(this.setActive(n),!0):!1}acceptElement(r,t){var n;const i=t.modalizerUserId,o=(n=t.currentCtx)===null||n===void 0?void 0:n.modalizer;if(i)for(const l of this.activeElements){const u=l.get();if(u&&(R.nodeContains(r,u)||u===r))return NodeFilter.FILTER_SKIP}const s=i===(o==null?void 0:o.userId)||!i&&(o!=null&&o.getProps().isAlwaysAccessible)?void 0:NodeFilter.FILTER_SKIP;return s!==void 0&&(t.skippedFocusable=!0),s}_hiddenUpdate(){var r;const t=this._tabster,n=t.getWindow().document.body,i=this.activeId,o=this._parts,s=[],l=[],u=this._alwaysAccessibleSelector,a=u?Array.from(R.querySelectorAll(n,u)):[],c=[];for(const p of Object.keys(o)){const y=o[p];for(const k of Object.keys(y)){const w=y[k],x=w.getElement(),S=w.getProps().isAlwaysAccessible;x&&(p===i?(c.push(x),this.currentIsOthersAccessible||s.push(x)):S?a.push(x):l.push(x))}}const d=this._augMap,g=s.length>0?[...s,...a]:void 0,f=[],h=new WeakMap,v=(p,y)=>{var k;const w=p.tagName;if(w==="SCRIPT"||w==="STYLE")return;let x=!1;d.has(p)?y?x=!0:(d.delete(p),Ai(t,p,qi)):y&&!(!((k=this._accessibleCheck)===null||k===void 0)&&k.call(this,p,c))&&Ai(t,p,qi,"true")&&(d.set(p,!0),x=!0),x&&(f.push(new Ke(t.getWindow,p)),h.set(p,!0))},b=p=>{var y;for(let k=R.getFirstElementChild(p);k;k=R.getNextElementSibling(k)){let w=!1,x=!1,B=!1;if(g){const S=t.getParent(k);for(const C of g){if(k===C){w=!0;break}if(R.nodeContains(k,C)){x=!0;break}else R.nodeContains(C,S)&&(B=!0)}x||!((y=k.__tabsterElementFlags)===null||y===void 0)&&y.noDirectAriaHidden?b(k):!w&&!B&&v(k,!0)}else v(k,!1)}};g||a.forEach(p=>v(p,!1)),l.forEach(p=>v(p,!0)),n&&b(n),(r=this._aug)===null||r===void 0||r.map(p=>p.get()).forEach(p=>{p&&!h.get(p)&&v(p,!1)}),this._aug=f,this._augMap=h}_restoreModalizerFocus(r){var t;const n=r==null?void 0:r.ownerDocument;if(!r||!n)return;const i=this._tabster.focusedElement.getFocusedElement(),o=i&&((t=he.getTabsterContext(this._tabster,i))===null||t===void 0?void 0:t.modalizer);if(!i||i&&(o==null?void 0:o.userId)===this.activeId)return;const s=this._tabster,l=he.getTabsterContext(s,r),u=l==null?void 0:l.modalizer,a=this.activeId;if(!u&&!a||u&&a===u.userId)return;const c=l==null?void 0:l.root.getElement();if(c){let d=s.focusable.findFirst({container:c,useActiveModalizer:!0});if(d){if(r.compareDocumentPosition(d)&document.DOCUMENT_POSITION_PRECEDING&&(d=s.focusable.findLast({container:c,useActiveModalizer:!0}),!d))throw new Error("Something went wrong.");s.focusedElement.focus(d);return}}r.blur()}}/*!
|
|
142
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
143
|
+
* Licensed under the MIT License.
|
|
144
|
+
*/const kb=["input","textarea","*[contenteditable]"].join(", ");class xb extends Er{constructor(r,t,n,i){super(t,r,Zo.Mover,i),this._onFocusDummyInput=o=>{var s,l;const u=this._element.get(),a=o.input;if(u&&a){const c=he.getTabsterContext(this._tabster,u);let d;c&&(d=(s=Ce.findNextTabbable(this._tabster,c,void 0,a,void 0,!o.isFirst,!0))===null||s===void 0?void 0:s.element);const g=(l=this._getMemorized())===null||l===void 0?void 0:l.get();g&&this._tabster.focusable.isFocusable(g)&&(d=g),d&&ht(d)}},this._tabster=t,this._getMemorized=n,this._setHandlers(this._onFocusDummyInput)}}const Li=1,bc=2,yc=3;class _b extends no{constructor(r,t,n,i,o){var s;super(r,t,i),this._visible={},this._onIntersection=u=>{for(const a of u){const c=a.target,d=Ko(this._win,c);let g,f=this._fullyVisible;if(a.intersectionRatio>=.25?(g=a.intersectionRatio>=.75?It.Visible:It.PartiallyVisible,g===It.Visible&&(f=d)):g=It.Invisible,this._visible[d]!==g){g===void 0?(delete this._visible[d],f===d&&delete this._fullyVisible):(this._visible[d]=g,this._fullyVisible=f);const h=this.getState(c);h&&c.dispatchEvent(new Jl(h))}}},this._win=r.getWindow,this.visibilityTolerance=(s=i.visibilityTolerance)!==null&&s!==void 0?s:.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=n;const l=()=>i.memorizeCurrent?this._current:void 0;r.controlTab||(this.dummyManager=new xb(this._element,r,l,o))}dispose(){var r;this._onDispose(this),this._intersectionObserver&&(this._intersectionObserver.disconnect(),delete this._intersectionObserver),delete this._current,delete this._fullyVisible,delete this._allElements,delete this._updateQueue,this._unobserve&&(this._unobserve(),delete this._unobserve);const t=this._win();this._setCurrentTimer&&(t.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(t.clearTimeout(this._updateTimer),delete this._updateTimer),(r=this.dummyManager)===null||r===void 0||r.dispose(),delete this.dummyManager}setCurrent(r){r?this._current=new Ke(this._win,r):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{var t;delete this._setCurrentTimer;const n=[];this._current!==this._prevCurrent&&(n.push(this._current),n.push(this._prevCurrent),this._prevCurrent=this._current);for(const i of n){const o=i==null?void 0:i.get();if(o&&((t=this._allElements)===null||t===void 0?void 0:t.get(o))===this){const s=this._props;if(o&&(s.visibilityAware!==void 0||s.trackState)){const l=this.getState(o);l&&o.dispatchEvent(new Jl(l))}}}}))}getCurrent(){var r;return((r=this._current)===null||r===void 0?void 0:r.get())||null}findNextTabbable(r,t,n,i){const o=this.getElement(),s=o&&Nr(r)===o;if(!o)return null;let l=null,u=!1,a;if(this._props.tabbable||s||r&&!R.nodeContains(o,r)){const c={currentElement:r,referenceElement:t,container:o,ignoreAccessibility:i,useActiveModalizer:!0},d={};l=this._tabster.focusable[n?"findPrev":"findNext"](c,d),u=!!d.outOfDOMOrder,a=d.uncontrolled}return{element:l,uncontrolled:a,outOfDOMOrder:u}}acceptElement(r,t){var n,i;if(!Ce.isTabbing)return!((n=t.currentCtx)===null||n===void 0)&&n.excludedFromMover?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:o,visibilityAware:s,hasDefault:l=!0}=this._props,u=this.getElement();if(u&&(o||s||l)&&(!R.nodeContains(u,t.from)||Nr(t.from)===u)){let a;if(o){const c=(i=this._current)===null||i===void 0?void 0:i.get();c&&t.acceptCondition(c)&&(a=c)}if(!a&&l&&(a=this._tabster.focusable.findDefault({container:u,useActiveModalizer:!0})),!a&&s&&(a=this._tabster.focusable.findElement({container:u,useActiveModalizer:!0,isBackward:t.isBackward,acceptCondition:c=>{var d;const g=Ko(this._win,c),f=this._visible[g];return u!==c&&!!(!((d=this._allElements)===null||d===void 0)&&d.get(c))&&t.acceptCondition(c)&&(f===It.Visible||f===It.PartiallyVisible&&(s===It.PartiallyVisible||!this._fullyVisible))}})),a)return t.found=!0,t.foundElement=a,t.rejectElementsFrom=u,t.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){const r=this.getElement();if(this._unobserve||!r||typeof MutationObserver>"u")return;const t=this._win(),n=this._allElements=new WeakMap,i=this._tabster.focusable;let o=this._updateQueue=[];const s=R.createMutationObserver(f=>{for(const h of f){const v=h.target,b=h.removedNodes,p=h.addedNodes;if(h.type==="attributes")h.attributeName==="tabindex"&&o.push({element:v,type:bc});else{for(let y=0;y<b.length;y++)o.push({element:b[y],type:yc});for(let y=0;y<p.length;y++)o.push({element:p[y],type:Li})}}d()}),l=(f,h)=>{var v,b;const p=n.get(f);p&&h&&((v=this._intersectionObserver)===null||v===void 0||v.unobserve(f),n.delete(f)),!p&&!h&&(n.set(f,this),(b=this._intersectionObserver)===null||b===void 0||b.observe(f))},u=f=>{const h=i.isFocusable(f);n.get(f)?h||l(f,!0):h&&l(f)},a=f=>{const{mover:h}=g(f);if(h&&h!==this)if(h.getElement()===f&&i.isFocusable(f))l(f);else return;const v=Ii(t.document,f,b=>{const{mover:p,groupper:y}=g(b);if(p&&p!==this)return NodeFilter.FILTER_REJECT;const k=y==null?void 0:y.getFirst(!0);return y&&y.getElement()!==b&&k&&k!==b?NodeFilter.FILTER_REJECT:(i.isFocusable(b)&&l(b),NodeFilter.FILTER_SKIP)});if(v)for(v.currentNode=f;v.nextNode(););},c=f=>{n.get(f)&&l(f,!0);for(let v=R.getFirstElementChild(f);v;v=R.getNextElementSibling(v))c(v)},d=()=>{!this._updateTimer&&o.length&&(this._updateTimer=t.setTimeout(()=>{delete this._updateTimer;for(const{element:f,type:h}of o)switch(h){case bc:u(f);break;case Li:a(f);break;case yc:c(f);break}o=this._updateQueue=[]},0))},g=f=>{const h={};for(let v=f;v;v=R.getParentElement(v)){const b=Ae(this._tabster,v);if(b&&(b.groupper&&!h.groupper&&(h.groupper=b.groupper),b.mover)){h.mover=b.mover;break}}return h};o.push({element:r,type:Li}),d(),s.observe(r,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{s.disconnect()}}getState(r){const t=Ko(this._win,r);if(t in this._visible){const n=this._visible[t]||It.Invisible;return{isCurrent:this._current?this._current.get()===r:void 0,visibility:n}}}}function Sb(e,r,t,n,i,o,s,l){const u=t<i?i-t:s<e?e-s:0,a=n<o?o-n:l<r?r-l:0;return u===0?a:a===0?u:Math.sqrt(u*u+a*a)}class Bb{constructor(r,t){this._init=()=>{const n=this._win();n.addEventListener("keydown",this._onKeyDown,!0),n.addEventListener(Ni,this._onMoveFocus),n.addEventListener(Yl,this._onMemorizedElement),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=n=>{delete this._movers[n.id]},this._onFocus=n=>{var i;let o=n,s=n;for(let l=R.getParentElement(n);l;l=R.getParentElement(l)){const u=(i=Ae(this._tabster,l))===null||i===void 0?void 0:i.mover;u&&(u.setCurrent(s),o=void 0),!o&&this._tabster.focusable.isFocusable(l)&&(o=s=l)}},this._onKeyDown=async n=>{var i;if(this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),(i=this._ignoredInputResolve)===null||i===void 0||i.call(this,!1),n.ctrlKey||n.altKey||n.shiftKey||n.metaKey)return;const o=n.key;let s;if(o===Be.ArrowDown?s=Se.ArrowDown:o===Be.ArrowRight?s=Se.ArrowRight:o===Be.ArrowUp?s=Se.ArrowUp:o===Be.ArrowLeft?s=Se.ArrowLeft:o===Be.PageDown?s=Se.PageDown:o===Be.PageUp?s=Se.PageUp:o===Be.Home?s=Se.Home:o===Be.End&&(s=Se.End),!s)return;const l=this._tabster.focusedElement.getFocusedElement();!l||await this._isIgnoredInput(l,o)||this._moveFocus(l,s,n)},this._onMoveFocus=n=>{var i;const o=n.composedPath()[0],s=(i=n.detail)===null||i===void 0?void 0:i.key;o&&s!==void 0&&!n.defaultPrevented&&(this._moveFocus(o,s),n.stopImmediatePropagation())},this._onMemorizedElement=n=>{var i;const o=n.composedPath()[0];let s=(i=n.detail)===null||i===void 0?void 0:i.memorizedElement;if(o){const l=he.getTabsterContext(this._tabster,o),u=l==null?void 0:l.mover;u&&(s&&!R.nodeContains(u.getElement(),s)&&(s=void 0),u.setCurrent(s),n.stopImmediatePropagation())}},this._tabster=r,this._win=t,this._movers={},r.queueInit(this._init)}dispose(){var r;const t=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),(r=this._ignoredInputResolve)===null||r===void 0||r.call(this,!1),this._ignoredInputTimer&&(t.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),t.removeEventListener("keydown",this._onKeyDown,!0),t.removeEventListener(Ni,this._onMoveFocus),t.removeEventListener(Yl,this._onMemorizedElement),Object.keys(this._movers).forEach(n=>{this._movers[n]&&(this._movers[n].dispose(),delete this._movers[n])})}createMover(r,t,n){process.env.NODE_ENV;const i=new _b(this._tabster,r,this._onMoverDispose,t,n);return this._movers[i.id]=i,i}moveFocus(r,t){return this._moveFocus(r,t)}_moveFocus(r,t,n){var i,o;const s=this._tabster,l=he.getTabsterContext(s,r,{checkRtl:!0});if(!l||!l.mover||l.excludedFromMover||n&&l.ignoreKeydown(n))return null;const u=l.mover,a=u.getElement();if(l.groupperBeforeMover){const C=l.groupper;if(C&&!C.isActive(!0)){for(let E=R.getParentElement(C.getElement());E&&E!==a;E=R.getParentElement(E))if(!((o=(i=Ae(s,E))===null||i===void 0?void 0:i.groupper)===null||o===void 0)&&o.isActive(!0))return null}else return null}if(!a)return null;const c=s.focusable,d=u.getProps(),g=d.direction||st.Both,f=g===st.Both,h=f||g===st.Vertical,v=f||g===st.Horizontal,b=g===st.GridLinear,p=b||g===st.Grid,y=d.cyclic;let k,w,x,B=0,S=0;if(p&&(x=r.getBoundingClientRect(),B=Math.ceil(x.left),S=Math.floor(x.right)),l.rtl&&(t===Se.ArrowRight?t=Se.ArrowLeft:t===Se.ArrowLeft&&(t=Se.ArrowRight)),t===Se.ArrowDown&&h||t===Se.ArrowRight&&(v||p))if(k=c.findNext({currentElement:r,container:a,useActiveModalizer:!0}),k&&p){const C=Math.ceil(k.getBoundingClientRect().left);!b&&S>C&&(k=void 0)}else!k&&y&&(k=c.findFirst({container:a,useActiveModalizer:!0}));else if(t===Se.ArrowUp&&h||t===Se.ArrowLeft&&(v||p))if(k=c.findPrev({currentElement:r,container:a,useActiveModalizer:!0}),k&&p){const C=Math.floor(k.getBoundingClientRect().right);!b&&C>B&&(k=void 0)}else!k&&y&&(k=c.findLast({container:a,useActiveModalizer:!0}));else if(t===Se.Home)p?c.findElement({container:a,currentElement:r,useActiveModalizer:!0,isBackward:!0,acceptCondition:C=>{var E;if(!c.isFocusable(C))return!1;const I=Math.ceil((E=C.getBoundingClientRect().left)!==null&&E!==void 0?E:0);return C!==r&&B<=I?!0:(k=C,!1)}}):k=c.findFirst({container:a,useActiveModalizer:!0});else if(t===Se.End)p?c.findElement({container:a,currentElement:r,useActiveModalizer:!0,acceptCondition:C=>{var E;if(!c.isFocusable(C))return!1;const I=Math.ceil((E=C.getBoundingClientRect().left)!==null&&E!==void 0?E:0);return C!==r&&B>=I?!0:(k=C,!1)}}):k=c.findLast({container:a,useActiveModalizer:!0});else if(t===Se.PageUp){if(c.findElement({currentElement:r,container:a,useActiveModalizer:!0,isBackward:!0,acceptCondition:C=>c.isFocusable(C)?ac(this._win,C,u.visibilityTolerance)?(k=C,!1):!0:!1}),p&&k){const C=Math.ceil(k.getBoundingClientRect().left);c.findElement({currentElement:k,container:a,useActiveModalizer:!0,acceptCondition:E=>{if(!c.isFocusable(E))return!1;const I=Math.ceil(E.getBoundingClientRect().left);return B<I||C>=I?!0:(k=E,!1)}})}w=!1}else if(t===Se.PageDown){if(c.findElement({currentElement:r,container:a,useActiveModalizer:!0,acceptCondition:C=>c.isFocusable(C)?ac(this._win,C,u.visibilityTolerance)?(k=C,!1):!0:!1}),p&&k){const C=Math.ceil(k.getBoundingClientRect().left);c.findElement({currentElement:k,container:a,useActiveModalizer:!0,isBackward:!0,acceptCondition:E=>{if(!c.isFocusable(E))return!1;const I=Math.ceil(E.getBoundingClientRect().left);return B>I||C<=I?!0:(k=E,!1)}})}w=!0}else if(p){const C=t===Se.ArrowUp,E=B,I=Math.ceil(x.top),$=S,U=Math.floor(x.bottom);let T,A,G=0;c.findAll({container:a,currentElement:r,isBackward:C,onElement:X=>{const Q=X.getBoundingClientRect(),z=Math.ceil(Q.left),q=Math.ceil(Q.top),W=Math.floor(Q.right),se=Math.floor(Q.bottom);if(C&&I<se||!C&&U>q)return!0;const L=Math.ceil(Math.min($,W))-Math.floor(Math.max(E,z)),oe=Math.ceil(Math.min($-E,W-z));if(L>0&&oe>=L){const be=L/oe;be>G&&(T=X,G=be)}else if(G===0){const be=Sb(E,I,$,U,z,q,W,se);(A===void 0||be<A)&&(A=be,T=X)}else if(G>0)return!1;return!0}}),k=T}return k&&(!n||n&&a.dispatchEvent(new jt({by:"mover",owner:a,next:k,relatedEvent:n})))?(w!==void 0&&Qp(this._win,k,w),n&&(n.preventDefault(),n.stopImmediatePropagation()),ht(k),k):null}async _isIgnoredInput(r,t){if(r.getAttribute("aria-expanded")==="true"&&r.hasAttribute("aria-activedescendant"))return!0;if(uc(r,kb)){let n=0,i=0,o=0,s;if(r.tagName==="INPUT"||r.tagName==="TEXTAREA"){const l=r.type;if(o=(r.value||"").length,l==="email"||l==="number"){if(o){const a=R.getSelection(r);if(a){const c=a.toString().length,d=t===Be.ArrowLeft||t===Be.ArrowUp;if(a.modify("extend",d?"backward":"forward","character"),c!==a.toString().length)return a.modify("extend",d?"forward":"backward","character"),!0;o=0}}}else{const a=r.selectionStart;if(a===null)return l==="hidden";n=a||0,i=r.selectionEnd||0}}else r.contentEditable==="true"&&(s=new(eb(this._win))(l=>{this._ignoredInputResolve=f=>{delete this._ignoredInputResolve,l(f)};const u=this._win();this._ignoredInputTimer&&u.clearTimeout(this._ignoredInputTimer);const{anchorNode:a,focusNode:c,anchorOffset:d,focusOffset:g}=R.getSelection(r)||{};this._ignoredInputTimer=u.setTimeout(()=>{var f,h,v;delete this._ignoredInputTimer;const{anchorNode:b,focusNode:p,anchorOffset:y,focusOffset:k}=R.getSelection(r)||{};if(b!==a||p!==c||y!==d||k!==g){(f=this._ignoredInputResolve)===null||f===void 0||f.call(this,!1);return}if(n=y||0,i=k||0,o=((h=r.textContent)===null||h===void 0?void 0:h.length)||0,b&&p&&R.nodeContains(r,b)&&R.nodeContains(r,p)&&b!==r){let w=!1;const x=B=>{if(B===b)w=!0;else if(B===p)return!0;const S=B.textContent;if(S&&!R.getFirstChild(B)){const E=S.length;w?p!==b&&(i+=E):(n+=E,i+=E)}let C=!1;for(let E=R.getFirstChild(B);E&&!C;E=E.nextSibling)C=x(E);return C};x(r)}(v=this._ignoredInputResolve)===null||v===void 0||v.call(this,!0)},0)}));if(s&&!await s||n!==i||n>0&&(t===Be.ArrowLeft||t===Be.ArrowUp||t===Be.Home)||n<o&&(t===Be.ArrowRight||t===Be.ArrowDown||t===Be.End))return!0}return!1}}/*!
|
|
145
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
146
|
+
* Licensed under the MIT License.
|
|
147
|
+
*/function Cb(e,r,t,n){if(typeof MutationObserver>"u")return()=>{};const i=r.getWindow;let o;const s=c=>{var d,g,f,h,v;const b=new Set;for(const p of c){const y=p.target,k=p.removedNodes,w=p.addedNodes;if(p.type==="attributes")p.attributeName===et&&(b.has(y)||t(r,y));else{for(let x=0;x<k.length;x++){const B=k[x];b.add(B),l(B,!0),(g=(d=r._dummyObserver).domChanged)===null||g===void 0||g.call(d,y)}for(let x=0;x<w.length;x++)l(w[x]),(h=(f=r._dummyObserver).domChanged)===null||h===void 0||h.call(f,y)}}b.clear(),(v=r.modalizer)===null||v===void 0||v.hiddenUpdate()};function l(c,d){o||(o=kt(i).elementByUId),u(c,d);const g=Ii(e,c,f=>u(f,d));if(g)for(;g.nextNode(););}function u(c,d){var g;if(!c.getAttribute)return NodeFilter.FILTER_SKIP;const f=c.__tabsterElementUID;return f&&o&&(d?delete o[f]:(g=o[f])!==null&&g!==void 0||(o[f]=new Ke(i,c))),(Ae(r,c)||c.hasAttribute(et))&&t(r,c,d),NodeFilter.FILTER_SKIP}const a=R.createMutationObserver(s);return n&&l(i().document.body),a.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[et]}),()=>{a.disconnect()}}/*!
|
|
148
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
149
|
+
* Licensed under the MIT License.
|
|
150
|
+
*/class Pb{constructor(r){this._isUncontrolledCompletely=r}isUncontrolledCompletely(r,t){var n;const i=(n=this._isUncontrolledCompletely)===null||n===void 0?void 0:n.call(this,r,t);return i===void 0?t:i}}/*!
|
|
151
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
152
|
+
* Licensed under the MIT License.
|
|
153
|
+
*/class Tb extends no{constructor(r,t,n){var i;if(super(r,t,n),this._hasFocus=!1,this._onFocusOut=o=>{var s;const l=(s=this._element)===null||s===void 0?void 0:s.get();l&&o.relatedTarget===null&&l.dispatchEvent(new ec),l&&!R.nodeContains(l,o.relatedTarget)&&(this._hasFocus=!1)},this._onFocusIn=()=>{this._hasFocus=!0},this._props.type===Tr.Source){const o=(i=this._element)===null||i===void 0?void 0:i.get();o==null||o.addEventListener("focusout",this._onFocusOut),o==null||o.addEventListener("focusin",this._onFocusIn),this._hasFocus=R.nodeContains(o,o&&R.getActiveElement(o.ownerDocument))}}dispose(){var r;if(this._props.type===Tr.Source){const t=(r=this._element)===null||r===void 0?void 0:r.get();t==null||t.removeEventListener("focusout",this._onFocusOut),t==null||t.removeEventListener("focusin",this._onFocusIn),this._hasFocus&&this._tabster.getWindow().document.body.dispatchEvent(new ec)}}}class Qo{constructor(r){this._stack=[],this._getWindow=r}push(r){var t;((t=this._stack[this._stack.length-1])===null||t===void 0?void 0:t.get())!==r&&(this._stack.length>Qo.DEPTH&&this._stack.shift(),this._stack.push(new Ke(this._getWindow,r)))}pop(r){r===void 0&&(r=()=>!0);var t;const n=this._getWindow().document;for(let i=this._stack.length-1;i>=0;i--){const o=(t=this._stack.pop())===null||t===void 0?void 0:t.get();if(o&&R.nodeContains(n.body,R.getParentElement(o))&&r(o))return o}}}Qo.DEPTH=10;class Eb{constructor(r){this._onRestoreFocus=t=>{var n,i;this._focusedElementState.cancelAsyncFocus(wt.Restorer);const o=t.composedPath()[0];if(o){const s=(i=(n=Ae(this._tabster,o))===null||n===void 0?void 0:n.restorer)===null||i===void 0?void 0:i.getProps().id;this._focusedElementState.requestAsyncFocus(wt.Restorer,()=>this._restoreFocus(o,s),0)}},this._onFocusIn=t=>{var n;if(!t)return;const i=Ae(this._tabster,t);((n=i==null?void 0:i.restorer)===null||n===void 0?void 0:n.getProps().type)===Tr.Target&&this._history.push(t)},this._restoreFocus=(t,n)=>{var i;const o=this._getWindow().document;if(R.getActiveElement(o)!==o.body||!this._keyboardNavState.isNavigatingWithKeyboard()&&R.nodeContains(o.body,t))return;const s=l=>{var u,a;const c=(a=(u=Ae(this._tabster,l))===null||u===void 0?void 0:u.restorer)===null||a===void 0?void 0:a.getProps();return c?c.id:null};(i=this._history.pop(l=>n===s(l)))===null||i===void 0||i.focus()},this._tabster=r,this._getWindow=r.getWindow,this._getWindow().addEventListener(zi,this._onRestoreFocus),this._history=new Qo(this._getWindow),this._keyboardNavState=r.keyboardNavigation,this._focusedElementState=r.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){const r=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),this._focusedElementState.cancelAsyncFocus(wt.Restorer),r.removeEventListener(zi,this._onRestoreFocus)}createRestorer(r,t){const n=new Tb(this._tabster,r,t);return t.type===Tr.Target&&R.getActiveElement(r.ownerDocument)===r&&this._history.push(r),n}}/*!
|
|
154
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
155
|
+
* Licensed under the MIT License.
|
|
156
|
+
*/class Nb{constructor(r){this.keyboardNavigation=r.keyboardNavigation,this.focusedElement=r.focusedElement,this.focusable=r.focusable,this.root=r.root,this.uncontrolled=r.uncontrolled,this.core=r}}class Rb{constructor(r,t){var n,i;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="8.5.6",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=Kp(r),this._win=r;const o=this.getWindow;t!=null&&t.DOMAPI&&$p({...t.DOMAPI}),this.keyboardNavigation=new mb(o),this.focusedElement=new Ce(this,o),this.focusable=new db(this),this.root=new he(this,t==null?void 0:t.autoRoot),this.uncontrolled=new Pb((t==null?void 0:t.checkUncontrolledCompletely)||(t==null?void 0:t.checkUncontrolledTrappingFocus)),this.controlTab=(n=t==null?void 0:t.controlTab)!==null&&n!==void 0?n:!0,this.rootDummyInputs=!!(t!=null&&t.rootDummyInputs),this._dummyObserver=new ob(o),this.getParent=(i=t==null?void 0:t.getParent)!==null&&i!==void 0?i:R.getParentNode,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:s=>{if(!this._unobserve){const l=o().document;this._unobserve=Cb(l,this,Ql,s)}}},nc(o),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(r){var t;r&&(this.getParent=(t=r.getParent)!==null&&t!==void 0?t:this.getParent)}createTabster(r,t){const n=new Nb(this);return r||this._wrappers.add(n),this._mergeProps(t),n}disposeTabster(r,t){t?this._wrappers.clear():this._wrappers.delete(r),this._wrappers.size===0&&this.dispose()}dispose(){var r,t,n,i,o,s,l,u;this.internal.stopObserver();const a=this._win;a==null||a.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],a&&this._forgetMemorizedTimer&&(a.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(r=this.outline)===null||r===void 0||r.dispose(),(t=this.crossOrigin)===null||t===void 0||t.dispose(),(n=this.deloser)===null||n===void 0||n.dispose(),(i=this.groupper)===null||i===void 0||i.dispose(),(o=this.mover)===null||o===void 0||o.dispose(),(s=this.modalizer)===null||s===void 0||s.dispose(),(l=this.observedElement)===null||l===void 0||l.dispose(),(u=this.restorer)===null||u===void 0||u.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),Zp(this.getWindow),cc(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),a&&(Up(a),delete a.__tabsterInstance,delete this._win)}storageEntry(r,t){const n=this._storage;let i=n.get(r);return i?t===!1&&Object.keys(i).length===0&&n.delete(r):t===!0&&(i={},n.set(r,i)),i}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let r=this._forgetMemorizedElements.shift();r;r=this._forgetMemorizedElements.shift())cc(this.getWindow,r),Ce.forgetMemorized(this.focusedElement,r)},0),oc(this.getWindow,!0)))}queueInit(r){var t;this._win&&(this._initQueue.push(r),this._initTimer||(this._initTimer=(t=this._win)===null||t===void 0?void 0:t.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const r=this._initQueue;this._initQueue=[],r.forEach(t=>t())}}function zb(e,r){let t=Ob(e);return t?t.createTabster(!1,r):(t=new Rb(e,r),e.__tabsterInstance=t,t.createTabster())}function Db(e){const r=e.core;return r.groupper||(r.groupper=new vb(r,r.getWindow)),r.groupper}function Fb(e){const r=e.core;return r.mover||(r.mover=new Bb(r,r.getWindow)),r.mover}function Ib(e,r,t){const n=e.core;return n.modalizer||(n.modalizer=new wb(n,r,t)),n.modalizer}function jb(e){const r=e.core;return r.restorer||(r.restorer=new Eb(r)),r.restorer}function Ab(e,r){e.core.disposeTabster(e,r)}function Ob(e){return e.__tabsterInstance}const qb=e=>e;function Mb(e){const r=(e==null?void 0:e.defaultView)||void 0,t=r==null?void 0:r.__tabsterShadowDOMAPI;if(r)return zb(r,{autoRoot:{},controlTab:!1,getParent:dp,checkUncontrolledTrappingFocus:n=>{var i;return!!(!((i=n.firstElementChild)===null||i===void 0)&&i.hasAttribute("data-is-focus-trap-zone-bumper"))},DOMAPI:t})}function io(e=qb){const{targetDocument:r}=_e(),t=m.useRef(null);if(Fe(()=>{const n=Mb(r);if(n)return t.current=e(n),()=>{Ab(n),t.current=null}},[r,e]),process.env.NODE_ENV!=="production"){const n=tp(e);if(n!==null&&n!==e)throw new Error(["@fluentui/react-tabster: ","The factory function passed to useTabster has changed. This should not ever happen."].join(`
|
|
157
|
+
`))}return t}const ao=e=>{io();const r=fc(e,!0);return m.useMemo(()=>({[et]:r}),[r])},Hi=(e={})=>{const{circular:r,axis:t,memorizeCurrent:n=!0,tabbable:i,ignoreDefaultKeydown:o,unstable_hasDefault:s}=e;return io(Fb),ao({mover:{cyclic:!!r,direction:Lb(t??"vertical"),memorizeCurrent:n,tabbable:i,hasDefault:s},...o&&{focusable:{ignoreKeydown:o}}})};function Lb(e){switch(e){case"horizontal":return st.Horizontal;case"grid":return st.Grid;case"grid-linear":return st.GridLinear;case"both":return st.Both;case"vertical":default:return st.Vertical}}const Wi=e=>(io(Db),ao({groupper:{tabbability:Hb(e==null?void 0:e.tabBehavior)},focusable:{ignoreKeydown:e==null?void 0:e.ignoreDefaultKeydown}})),Hb=e=>{switch(e){case"unlimited":return Uo.Unlimited;case"limited":return Uo.Limited;case"limited-trap-focus":return Uo.LimitedTrapFocus;default:return}},so=()=>{const e=io(),{targetDocument:r}=_e(),t=m.useCallback((l,u)=>{var a;return((a=e.current)===null||a===void 0?void 0:a.focusable.findAll({container:l,acceptCondition:u}))||[]},[e]),n=m.useCallback(l=>{var u;return(u=e.current)===null||u===void 0?void 0:u.focusable.findFirst({container:l})},[e]),i=m.useCallback(l=>{var u;return(u=e.current)===null||u===void 0?void 0:u.focusable.findLast({container:l})},[e]),o=m.useCallback((l,u={})=>{if(!e.current||!r)return null;const{container:a=r.body}=u;return e.current.focusable.findNext({currentElement:l,container:a})},[e,r]),s=m.useCallback((l,u={})=>{if(!e.current||!r)return null;const{container:a=r.body}=u;return e.current.focusable.findPrev({currentElement:l,container:a})},[e,r]);return{findAllFocusable:t,findFirstFocusable:n,findLastFocusable:i,findNextFocusable:o,findPrevFocusable:s}},wc="data-fui-focus-visible",kc="data-fui-focus-within";function Wb(e,r){if(xc(e))return()=>{};const t={current:void 0},n=$o(r);function i(u){n.isNavigatingWithKeyboard()&&Ue(u)&&(t.current=u,u.setAttribute(wc,""))}function o(){t.current&&(t.current.removeAttribute(wc),t.current=void 0)}n.subscribe(u=>{u?i(r.document.activeElement):o()});const s=u=>{o();const a=u.composedPath()[0];i(a)},l=u=>{(!u.relatedTarget||Ue(u.relatedTarget)&&!e.contains(u.relatedTarget))&&o()};return e.addEventListener(at,s),e.addEventListener("focusout",l),e.focusVisible=!0,e.contains(r.document.activeElement)&&i(r.document.activeElement),()=>{o(),e.removeEventListener(at,s),e.removeEventListener("focusout",l),e.focusVisible=void 0,Go(n)}}function xc(e){return e?e.focusVisible?!0:xc(e==null?void 0:e.parentElement):!1}function _c(e={}){const r=_e(),t=m.useRef(null);var n;const i=(n=e.targetDocument)!==null&&n!==void 0?n:r.targetDocument;return m.useEffect(()=>{if(i!=null&&i.defaultView&&t.current)return Wb(t.current,i.defaultView)},[t,i]),t}function Vb(e,r){const t=$o(r);t.subscribe(o=>{o||Sc(e)});const n=o=>{t.isNavigatingWithKeyboard()&&Bc(o.target)&&$b(e)},i=o=>{(!o.relatedTarget||Bc(o.relatedTarget)&&!e.contains(o.relatedTarget))&&Sc(e)};return e.addEventListener(at,n),e.addEventListener("focusout",i),()=>{e.removeEventListener(at,n),e.removeEventListener("focusout",i),Go(t)}}function $b(e){e.setAttribute(kc,"")}function Sc(e){e.removeAttribute(kc)}function Bc(e){return e?!!(e&&typeof e=="object"&&"classList"in e&&"contains"in e):!1}function Rr(){const{targetDocument:e}=_e(),r=m.useRef(null);return m.useEffect(()=>{if(e!=null&&e.defaultView&&r.current)return Vb(r.current,e.defaultView)},[r,e]),r}function Cc(){const{targetDocument:e}=_e(),r=m.useRef(null);return m.useEffect(()=>{const t=e==null?void 0:e.defaultView;if(t){const n=$o(t);return r.current=n,()=>{Go(n),r.current=null}}},[e]),r}function Pc(e){const r=Cc(),t=ee(e);m.useEffect(()=>{const n=r.current;if(n){const i=o=>{t(o)};return n.subscribe(i),i(n.isNavigatingWithKeyboard()),()=>{n.unsubscribe(i)}}},[r,t])}const Gb="data-tabster-never-hide",Ub=e=>e.hasAttribute(Gb);function Kb(e){Ib(e,void 0,Ub),jb(e)}const Xb=(e={})=>{const{trapFocus:r,alwaysFocusable:t,legacyTrapFocus:n}=e;io(Kb);const i=Ge("modal-",e.id),o=ao({restorer:{type:Tr.Source},...r&&{modalizer:{id:i,isOthersAccessible:!r,isAlwaysAccessible:t,isTrapped:n&&r}}}),s=ao({restorer:{type:Tr.Target}});return{modalAttributes:o,triggerAttributes:s}},Zb=(...e)=>{"use no memo";const r=e.reduce((t,n)=>(n!=null&&n[et]&&t.push(n[et]),t),[]);return process.env.NODE_ENV!=="production"&&Yb(r),m.useMemo(()=>({[et]:r.length>0?r.reduce(Qb):void 0}),r)},Qb=(e,r)=>JSON.stringify(Object.assign(Tc(e),Tc(r))),Tc=e=>{try{return JSON.parse(e)}catch{return{}}},Yb=e=>{"use no memo";const r=m.useRef(e);let t=r.current.length===e.length;if(r.current!==e&&t){for(let n=0;n<e.length;n++)if(r.current[n]!==e[n]){t=!1;break}}m.useEffect(()=>{if(!t){const n=new Error;console.warn(`
|
|
158
|
+
@fluentui/react-tabster [useMergedTabsterAttributes]:
|
|
159
|
+
The attributes passed to the hook changed at runtime.
|
|
160
|
+
This might lead to unexpected behavior, please ensure that the attributes are stable.
|
|
161
|
+
${n.stack}
|
|
162
|
+
`)}},[t])};function Jb(){const e=Cc();return m.useCallback(r=>{var t;(t=e.current)===null||t===void 0||t.setVal(r)},[e])}const Pe={colorNeutralForeground1:"var(--colorNeutralForeground1)",colorNeutralForeground1Hover:"var(--colorNeutralForeground1Hover)",colorNeutralForeground1Pressed:"var(--colorNeutralForeground1Pressed)",colorNeutralForeground1Selected:"var(--colorNeutralForeground1Selected)",colorNeutralForeground2:"var(--colorNeutralForeground2)",colorNeutralForeground2Hover:"var(--colorNeutralForeground2Hover)",colorNeutralForeground2Pressed:"var(--colorNeutralForeground2Pressed)",colorNeutralForeground2Selected:"var(--colorNeutralForeground2Selected)",colorNeutralForeground2BrandHover:"var(--colorNeutralForeground2BrandHover)",colorNeutralForeground2BrandPressed:"var(--colorNeutralForeground2BrandPressed)",colorNeutralForeground2BrandSelected:"var(--colorNeutralForeground2BrandSelected)",colorNeutralForeground3:"var(--colorNeutralForeground3)",colorNeutralForeground3Hover:"var(--colorNeutralForeground3Hover)",colorNeutralForeground3Pressed:"var(--colorNeutralForeground3Pressed)",colorNeutralForeground3Selected:"var(--colorNeutralForeground3Selected)",colorNeutralForeground3BrandHover:"var(--colorNeutralForeground3BrandHover)",colorNeutralForeground3BrandPressed:"var(--colorNeutralForeground3BrandPressed)",colorNeutralForeground3BrandSelected:"var(--colorNeutralForeground3BrandSelected)",colorNeutralForeground4:"var(--colorNeutralForeground4)",colorNeutralForegroundDisabled:"var(--colorNeutralForegroundDisabled)",colorBrandForegroundLink:"var(--colorBrandForegroundLink)",colorBrandForegroundLinkHover:"var(--colorBrandForegroundLinkHover)",colorBrandForegroundLinkPressed:"var(--colorBrandForegroundLinkPressed)",colorBrandForegroundLinkSelected:"var(--colorBrandForegroundLinkSelected)",colorNeutralForeground2Link:"var(--colorNeutralForeground2Link)",colorNeutralForeground2LinkHover:"var(--colorNeutralForeground2LinkHover)",colorNeutralForeground2LinkPressed:"var(--colorNeutralForeground2LinkPressed)",colorNeutralForeground2LinkSelected:"var(--colorNeutralForeground2LinkSelected)",colorCompoundBrandForeground1:"var(--colorCompoundBrandForeground1)",colorCompoundBrandForeground1Hover:"var(--colorCompoundBrandForeground1Hover)",colorCompoundBrandForeground1Pressed:"var(--colorCompoundBrandForeground1Pressed)",colorNeutralForegroundOnBrand:"var(--colorNeutralForegroundOnBrand)",colorNeutralForegroundInverted:"var(--colorNeutralForegroundInverted)",colorNeutralForegroundInvertedHover:"var(--colorNeutralForegroundInvertedHover)",colorNeutralForegroundInvertedPressed:"var(--colorNeutralForegroundInvertedPressed)",colorNeutralForegroundInvertedSelected:"var(--colorNeutralForegroundInvertedSelected)",colorNeutralForegroundInverted2:"var(--colorNeutralForegroundInverted2)",colorNeutralForegroundStaticInverted:"var(--colorNeutralForegroundStaticInverted)",colorNeutralForegroundInvertedLink:"var(--colorNeutralForegroundInvertedLink)",colorNeutralForegroundInvertedLinkHover:"var(--colorNeutralForegroundInvertedLinkHover)",colorNeutralForegroundInvertedLinkPressed:"var(--colorNeutralForegroundInvertedLinkPressed)",colorNeutralForegroundInvertedLinkSelected:"var(--colorNeutralForegroundInvertedLinkSelected)",colorNeutralForegroundInvertedDisabled:"var(--colorNeutralForegroundInvertedDisabled)",colorBrandForeground1:"var(--colorBrandForeground1)",colorBrandForeground2:"var(--colorBrandForeground2)",colorBrandForeground2Hover:"var(--colorBrandForeground2Hover)",colorBrandForeground2Pressed:"var(--colorBrandForeground2Pressed)",colorNeutralForeground1Static:"var(--colorNeutralForeground1Static)",colorBrandForegroundInverted:"var(--colorBrandForegroundInverted)",colorBrandForegroundInvertedHover:"var(--colorBrandForegroundInvertedHover)",colorBrandForegroundInvertedPressed:"var(--colorBrandForegroundInvertedPressed)",colorBrandForegroundOnLight:"var(--colorBrandForegroundOnLight)",colorBrandForegroundOnLightHover:"var(--colorBrandForegroundOnLightHover)",colorBrandForegroundOnLightPressed:"var(--colorBrandForegroundOnLightPressed)",colorBrandForegroundOnLightSelected:"var(--colorBrandForegroundOnLightSelected)",colorNeutralBackground1:"var(--colorNeutralBackground1)",colorNeutralBackground1Hover:"var(--colorNeutralBackground1Hover)",colorNeutralBackground1Pressed:"var(--colorNeutralBackground1Pressed)",colorNeutralBackground1Selected:"var(--colorNeutralBackground1Selected)",colorNeutralBackground2:"var(--colorNeutralBackground2)",colorNeutralBackground2Hover:"var(--colorNeutralBackground2Hover)",colorNeutralBackground2Pressed:"var(--colorNeutralBackground2Pressed)",colorNeutralBackground2Selected:"var(--colorNeutralBackground2Selected)",colorNeutralBackground3:"var(--colorNeutralBackground3)",colorNeutralBackground3Hover:"var(--colorNeutralBackground3Hover)",colorNeutralBackground3Pressed:"var(--colorNeutralBackground3Pressed)",colorNeutralBackground3Selected:"var(--colorNeutralBackground3Selected)",colorNeutralBackground4:"var(--colorNeutralBackground4)",colorNeutralBackground4Hover:"var(--colorNeutralBackground4Hover)",colorNeutralBackground4Pressed:"var(--colorNeutralBackground4Pressed)",colorNeutralBackground4Selected:"var(--colorNeutralBackground4Selected)",colorNeutralBackground5:"var(--colorNeutralBackground5)",colorNeutralBackground5Hover:"var(--colorNeutralBackground5Hover)",colorNeutralBackground5Pressed:"var(--colorNeutralBackground5Pressed)",colorNeutralBackground5Selected:"var(--colorNeutralBackground5Selected)",colorNeutralBackground6:"var(--colorNeutralBackground6)",colorNeutralBackgroundInverted:"var(--colorNeutralBackgroundInverted)",colorNeutralBackgroundStatic:"var(--colorNeutralBackgroundStatic)",colorNeutralBackgroundAlpha:"var(--colorNeutralBackgroundAlpha)",colorNeutralBackgroundAlpha2:"var(--colorNeutralBackgroundAlpha2)",colorSubtleBackground:"var(--colorSubtleBackground)",colorSubtleBackgroundHover:"var(--colorSubtleBackgroundHover)",colorSubtleBackgroundPressed:"var(--colorSubtleBackgroundPressed)",colorSubtleBackgroundSelected:"var(--colorSubtleBackgroundSelected)",colorSubtleBackgroundLightAlphaHover:"var(--colorSubtleBackgroundLightAlphaHover)",colorSubtleBackgroundLightAlphaPressed:"var(--colorSubtleBackgroundLightAlphaPressed)",colorSubtleBackgroundLightAlphaSelected:"var(--colorSubtleBackgroundLightAlphaSelected)",colorSubtleBackgroundInverted:"var(--colorSubtleBackgroundInverted)",colorSubtleBackgroundInvertedHover:"var(--colorSubtleBackgroundInvertedHover)",colorSubtleBackgroundInvertedPressed:"var(--colorSubtleBackgroundInvertedPressed)",colorSubtleBackgroundInvertedSelected:"var(--colorSubtleBackgroundInvertedSelected)",colorTransparentBackground:"var(--colorTransparentBackground)",colorTransparentBackgroundHover:"var(--colorTransparentBackgroundHover)",colorTransparentBackgroundPressed:"var(--colorTransparentBackgroundPressed)",colorTransparentBackgroundSelected:"var(--colorTransparentBackgroundSelected)",colorNeutralBackgroundDisabled:"var(--colorNeutralBackgroundDisabled)",colorNeutralBackgroundInvertedDisabled:"var(--colorNeutralBackgroundInvertedDisabled)",colorNeutralStencil1:"var(--colorNeutralStencil1)",colorNeutralStencil2:"var(--colorNeutralStencil2)",colorNeutralStencil1Alpha:"var(--colorNeutralStencil1Alpha)",colorNeutralStencil2Alpha:"var(--colorNeutralStencil2Alpha)",colorBackgroundOverlay:"var(--colorBackgroundOverlay)",colorScrollbarOverlay:"var(--colorScrollbarOverlay)",colorBrandBackground:"var(--colorBrandBackground)",colorBrandBackgroundHover:"var(--colorBrandBackgroundHover)",colorBrandBackgroundPressed:"var(--colorBrandBackgroundPressed)",colorBrandBackgroundSelected:"var(--colorBrandBackgroundSelected)",colorCompoundBrandBackground:"var(--colorCompoundBrandBackground)",colorCompoundBrandBackgroundHover:"var(--colorCompoundBrandBackgroundHover)",colorCompoundBrandBackgroundPressed:"var(--colorCompoundBrandBackgroundPressed)",colorBrandBackgroundStatic:"var(--colorBrandBackgroundStatic)",colorBrandBackground2:"var(--colorBrandBackground2)",colorBrandBackground2Hover:"var(--colorBrandBackground2Hover)",colorBrandBackground2Pressed:"var(--colorBrandBackground2Pressed)",colorBrandBackground3Static:"var(--colorBrandBackground3Static)",colorBrandBackground4Static:"var(--colorBrandBackground4Static)",colorBrandBackgroundInverted:"var(--colorBrandBackgroundInverted)",colorBrandBackgroundInvertedHover:"var(--colorBrandBackgroundInvertedHover)",colorBrandBackgroundInvertedPressed:"var(--colorBrandBackgroundInvertedPressed)",colorBrandBackgroundInvertedSelected:"var(--colorBrandBackgroundInvertedSelected)",colorNeutralCardBackground:"var(--colorNeutralCardBackground)",colorNeutralCardBackgroundHover:"var(--colorNeutralCardBackgroundHover)",colorNeutralCardBackgroundPressed:"var(--colorNeutralCardBackgroundPressed)",colorNeutralCardBackgroundSelected:"var(--colorNeutralCardBackgroundSelected)",colorNeutralCardBackgroundDisabled:"var(--colorNeutralCardBackgroundDisabled)",colorNeutralStrokeAccessible:"var(--colorNeutralStrokeAccessible)",colorNeutralStrokeAccessibleHover:"var(--colorNeutralStrokeAccessibleHover)",colorNeutralStrokeAccessiblePressed:"var(--colorNeutralStrokeAccessiblePressed)",colorNeutralStrokeAccessibleSelected:"var(--colorNeutralStrokeAccessibleSelected)",colorNeutralStroke1:"var(--colorNeutralStroke1)",colorNeutralStroke1Hover:"var(--colorNeutralStroke1Hover)",colorNeutralStroke1Pressed:"var(--colorNeutralStroke1Pressed)",colorNeutralStroke1Selected:"var(--colorNeutralStroke1Selected)",colorNeutralStroke2:"var(--colorNeutralStroke2)",colorNeutralStroke3:"var(--colorNeutralStroke3)",colorNeutralStrokeSubtle:"var(--colorNeutralStrokeSubtle)",colorNeutralStrokeOnBrand:"var(--colorNeutralStrokeOnBrand)",colorNeutralStrokeOnBrand2:"var(--colorNeutralStrokeOnBrand2)",colorNeutralStrokeOnBrand2Hover:"var(--colorNeutralStrokeOnBrand2Hover)",colorNeutralStrokeOnBrand2Pressed:"var(--colorNeutralStrokeOnBrand2Pressed)",colorNeutralStrokeOnBrand2Selected:"var(--colorNeutralStrokeOnBrand2Selected)",colorBrandStroke1:"var(--colorBrandStroke1)",colorBrandStroke2:"var(--colorBrandStroke2)",colorBrandStroke2Hover:"var(--colorBrandStroke2Hover)",colorBrandStroke2Pressed:"var(--colorBrandStroke2Pressed)",colorBrandStroke2Contrast:"var(--colorBrandStroke2Contrast)",colorCompoundBrandStroke:"var(--colorCompoundBrandStroke)",colorCompoundBrandStrokeHover:"var(--colorCompoundBrandStrokeHover)",colorCompoundBrandStrokePressed:"var(--colorCompoundBrandStrokePressed)",colorNeutralStrokeDisabled:"var(--colorNeutralStrokeDisabled)",colorNeutralStrokeInvertedDisabled:"var(--colorNeutralStrokeInvertedDisabled)",colorTransparentStroke:"var(--colorTransparentStroke)",colorTransparentStrokeInteractive:"var(--colorTransparentStrokeInteractive)",colorTransparentStrokeDisabled:"var(--colorTransparentStrokeDisabled)",colorNeutralStrokeAlpha:"var(--colorNeutralStrokeAlpha)",colorNeutralStrokeAlpha2:"var(--colorNeutralStrokeAlpha2)",colorStrokeFocus1:"var(--colorStrokeFocus1)",colorStrokeFocus2:"var(--colorStrokeFocus2)",colorNeutralShadowAmbient:"var(--colorNeutralShadowAmbient)",colorNeutralShadowKey:"var(--colorNeutralShadowKey)",colorNeutralShadowAmbientLighter:"var(--colorNeutralShadowAmbientLighter)",colorNeutralShadowKeyLighter:"var(--colorNeutralShadowKeyLighter)",colorNeutralShadowAmbientDarker:"var(--colorNeutralShadowAmbientDarker)",colorNeutralShadowKeyDarker:"var(--colorNeutralShadowKeyDarker)",colorBrandShadowAmbient:"var(--colorBrandShadowAmbient)",colorBrandShadowKey:"var(--colorBrandShadowKey)",colorPaletteRedBackground1:"var(--colorPaletteRedBackground1)",colorPaletteRedBackground2:"var(--colorPaletteRedBackground2)",colorPaletteRedBackground3:"var(--colorPaletteRedBackground3)",colorPaletteRedBorderActive:"var(--colorPaletteRedBorderActive)",colorPaletteRedBorder1:"var(--colorPaletteRedBorder1)",colorPaletteRedBorder2:"var(--colorPaletteRedBorder2)",colorPaletteRedForeground1:"var(--colorPaletteRedForeground1)",colorPaletteRedForeground2:"var(--colorPaletteRedForeground2)",colorPaletteRedForeground3:"var(--colorPaletteRedForeground3)",colorPaletteRedForegroundInverted:"var(--colorPaletteRedForegroundInverted)",colorPaletteGreenBackground1:"var(--colorPaletteGreenBackground1)",colorPaletteGreenBackground2:"var(--colorPaletteGreenBackground2)",colorPaletteGreenBackground3:"var(--colorPaletteGreenBackground3)",colorPaletteGreenBorderActive:"var(--colorPaletteGreenBorderActive)",colorPaletteGreenBorder1:"var(--colorPaletteGreenBorder1)",colorPaletteGreenBorder2:"var(--colorPaletteGreenBorder2)",colorPaletteGreenForeground1:"var(--colorPaletteGreenForeground1)",colorPaletteGreenForeground2:"var(--colorPaletteGreenForeground2)",colorPaletteGreenForeground3:"var(--colorPaletteGreenForeground3)",colorPaletteGreenForegroundInverted:"var(--colorPaletteGreenForegroundInverted)",colorPaletteDarkOrangeBackground1:"var(--colorPaletteDarkOrangeBackground1)",colorPaletteDarkOrangeBackground2:"var(--colorPaletteDarkOrangeBackground2)",colorPaletteDarkOrangeBackground3:"var(--colorPaletteDarkOrangeBackground3)",colorPaletteDarkOrangeBorderActive:"var(--colorPaletteDarkOrangeBorderActive)",colorPaletteDarkOrangeBorder1:"var(--colorPaletteDarkOrangeBorder1)",colorPaletteDarkOrangeBorder2:"var(--colorPaletteDarkOrangeBorder2)",colorPaletteDarkOrangeForeground1:"var(--colorPaletteDarkOrangeForeground1)",colorPaletteDarkOrangeForeground2:"var(--colorPaletteDarkOrangeForeground2)",colorPaletteDarkOrangeForeground3:"var(--colorPaletteDarkOrangeForeground3)",colorPaletteYellowBackground1:"var(--colorPaletteYellowBackground1)",colorPaletteYellowBackground2:"var(--colorPaletteYellowBackground2)",colorPaletteYellowBackground3:"var(--colorPaletteYellowBackground3)",colorPaletteYellowBorderActive:"var(--colorPaletteYellowBorderActive)",colorPaletteYellowBorder1:"var(--colorPaletteYellowBorder1)",colorPaletteYellowBorder2:"var(--colorPaletteYellowBorder2)",colorPaletteYellowForeground1:"var(--colorPaletteYellowForeground1)",colorPaletteYellowForeground2:"var(--colorPaletteYellowForeground2)",colorPaletteYellowForeground3:"var(--colorPaletteYellowForeground3)",colorPaletteYellowForegroundInverted:"var(--colorPaletteYellowForegroundInverted)",colorPaletteBerryBackground1:"var(--colorPaletteBerryBackground1)",colorPaletteBerryBackground2:"var(--colorPaletteBerryBackground2)",colorPaletteBerryBackground3:"var(--colorPaletteBerryBackground3)",colorPaletteBerryBorderActive:"var(--colorPaletteBerryBorderActive)",colorPaletteBerryBorder1:"var(--colorPaletteBerryBorder1)",colorPaletteBerryBorder2:"var(--colorPaletteBerryBorder2)",colorPaletteBerryForeground1:"var(--colorPaletteBerryForeground1)",colorPaletteBerryForeground2:"var(--colorPaletteBerryForeground2)",colorPaletteBerryForeground3:"var(--colorPaletteBerryForeground3)",colorPaletteMarigoldBackground1:"var(--colorPaletteMarigoldBackground1)",colorPaletteMarigoldBackground2:"var(--colorPaletteMarigoldBackground2)",colorPaletteMarigoldBackground3:"var(--colorPaletteMarigoldBackground3)",colorPaletteMarigoldBorderActive:"var(--colorPaletteMarigoldBorderActive)",colorPaletteMarigoldBorder1:"var(--colorPaletteMarigoldBorder1)",colorPaletteMarigoldBorder2:"var(--colorPaletteMarigoldBorder2)",colorPaletteMarigoldForeground1:"var(--colorPaletteMarigoldForeground1)",colorPaletteMarigoldForeground2:"var(--colorPaletteMarigoldForeground2)",colorPaletteMarigoldForeground3:"var(--colorPaletteMarigoldForeground3)",colorPaletteLightGreenBackground1:"var(--colorPaletteLightGreenBackground1)",colorPaletteLightGreenBackground2:"var(--colorPaletteLightGreenBackground2)",colorPaletteLightGreenBackground3:"var(--colorPaletteLightGreenBackground3)",colorPaletteLightGreenBorderActive:"var(--colorPaletteLightGreenBorderActive)",colorPaletteLightGreenBorder1:"var(--colorPaletteLightGreenBorder1)",colorPaletteLightGreenBorder2:"var(--colorPaletteLightGreenBorder2)",colorPaletteLightGreenForeground1:"var(--colorPaletteLightGreenForeground1)",colorPaletteLightGreenForeground2:"var(--colorPaletteLightGreenForeground2)",colorPaletteLightGreenForeground3:"var(--colorPaletteLightGreenForeground3)",colorPaletteAnchorBackground2:"var(--colorPaletteAnchorBackground2)",colorPaletteAnchorBorderActive:"var(--colorPaletteAnchorBorderActive)",colorPaletteAnchorForeground2:"var(--colorPaletteAnchorForeground2)",colorPaletteBeigeBackground2:"var(--colorPaletteBeigeBackground2)",colorPaletteBeigeBorderActive:"var(--colorPaletteBeigeBorderActive)",colorPaletteBeigeForeground2:"var(--colorPaletteBeigeForeground2)",colorPaletteBlueBackground2:"var(--colorPaletteBlueBackground2)",colorPaletteBlueBorderActive:"var(--colorPaletteBlueBorderActive)",colorPaletteBlueForeground2:"var(--colorPaletteBlueForeground2)",colorPaletteBrassBackground2:"var(--colorPaletteBrassBackground2)",colorPaletteBrassBorderActive:"var(--colorPaletteBrassBorderActive)",colorPaletteBrassForeground2:"var(--colorPaletteBrassForeground2)",colorPaletteBrownBackground2:"var(--colorPaletteBrownBackground2)",colorPaletteBrownBorderActive:"var(--colorPaletteBrownBorderActive)",colorPaletteBrownForeground2:"var(--colorPaletteBrownForeground2)",colorPaletteCornflowerBackground2:"var(--colorPaletteCornflowerBackground2)",colorPaletteCornflowerBorderActive:"var(--colorPaletteCornflowerBorderActive)",colorPaletteCornflowerForeground2:"var(--colorPaletteCornflowerForeground2)",colorPaletteCranberryBackground2:"var(--colorPaletteCranberryBackground2)",colorPaletteCranberryBorderActive:"var(--colorPaletteCranberryBorderActive)",colorPaletteCranberryForeground2:"var(--colorPaletteCranberryForeground2)",colorPaletteDarkGreenBackground2:"var(--colorPaletteDarkGreenBackground2)",colorPaletteDarkGreenBorderActive:"var(--colorPaletteDarkGreenBorderActive)",colorPaletteDarkGreenForeground2:"var(--colorPaletteDarkGreenForeground2)",colorPaletteDarkRedBackground2:"var(--colorPaletteDarkRedBackground2)",colorPaletteDarkRedBorderActive:"var(--colorPaletteDarkRedBorderActive)",colorPaletteDarkRedForeground2:"var(--colorPaletteDarkRedForeground2)",colorPaletteForestBackground2:"var(--colorPaletteForestBackground2)",colorPaletteForestBorderActive:"var(--colorPaletteForestBorderActive)",colorPaletteForestForeground2:"var(--colorPaletteForestForeground2)",colorPaletteGoldBackground2:"var(--colorPaletteGoldBackground2)",colorPaletteGoldBorderActive:"var(--colorPaletteGoldBorderActive)",colorPaletteGoldForeground2:"var(--colorPaletteGoldForeground2)",colorPaletteGrapeBackground2:"var(--colorPaletteGrapeBackground2)",colorPaletteGrapeBorderActive:"var(--colorPaletteGrapeBorderActive)",colorPaletteGrapeForeground2:"var(--colorPaletteGrapeForeground2)",colorPaletteLavenderBackground2:"var(--colorPaletteLavenderBackground2)",colorPaletteLavenderBorderActive:"var(--colorPaletteLavenderBorderActive)",colorPaletteLavenderForeground2:"var(--colorPaletteLavenderForeground2)",colorPaletteLightTealBackground2:"var(--colorPaletteLightTealBackground2)",colorPaletteLightTealBorderActive:"var(--colorPaletteLightTealBorderActive)",colorPaletteLightTealForeground2:"var(--colorPaletteLightTealForeground2)",colorPaletteLilacBackground2:"var(--colorPaletteLilacBackground2)",colorPaletteLilacBorderActive:"var(--colorPaletteLilacBorderActive)",colorPaletteLilacForeground2:"var(--colorPaletteLilacForeground2)",colorPaletteMagentaBackground2:"var(--colorPaletteMagentaBackground2)",colorPaletteMagentaBorderActive:"var(--colorPaletteMagentaBorderActive)",colorPaletteMagentaForeground2:"var(--colorPaletteMagentaForeground2)",colorPaletteMinkBackground2:"var(--colorPaletteMinkBackground2)",colorPaletteMinkBorderActive:"var(--colorPaletteMinkBorderActive)",colorPaletteMinkForeground2:"var(--colorPaletteMinkForeground2)",colorPaletteNavyBackground2:"var(--colorPaletteNavyBackground2)",colorPaletteNavyBorderActive:"var(--colorPaletteNavyBorderActive)",colorPaletteNavyForeground2:"var(--colorPaletteNavyForeground2)",colorPalettePeachBackground2:"var(--colorPalettePeachBackground2)",colorPalettePeachBorderActive:"var(--colorPalettePeachBorderActive)",colorPalettePeachForeground2:"var(--colorPalettePeachForeground2)",colorPalettePinkBackground2:"var(--colorPalettePinkBackground2)",colorPalettePinkBorderActive:"var(--colorPalettePinkBorderActive)",colorPalettePinkForeground2:"var(--colorPalettePinkForeground2)",colorPalettePlatinumBackground2:"var(--colorPalettePlatinumBackground2)",colorPalettePlatinumBorderActive:"var(--colorPalettePlatinumBorderActive)",colorPalettePlatinumForeground2:"var(--colorPalettePlatinumForeground2)",colorPalettePlumBackground2:"var(--colorPalettePlumBackground2)",colorPalettePlumBorderActive:"var(--colorPalettePlumBorderActive)",colorPalettePlumForeground2:"var(--colorPalettePlumForeground2)",colorPalettePumpkinBackground2:"var(--colorPalettePumpkinBackground2)",colorPalettePumpkinBorderActive:"var(--colorPalettePumpkinBorderActive)",colorPalettePumpkinForeground2:"var(--colorPalettePumpkinForeground2)",colorPalettePurpleBackground2:"var(--colorPalettePurpleBackground2)",colorPalettePurpleBorderActive:"var(--colorPalettePurpleBorderActive)",colorPalettePurpleForeground2:"var(--colorPalettePurpleForeground2)",colorPaletteRoyalBlueBackground2:"var(--colorPaletteRoyalBlueBackground2)",colorPaletteRoyalBlueBorderActive:"var(--colorPaletteRoyalBlueBorderActive)",colorPaletteRoyalBlueForeground2:"var(--colorPaletteRoyalBlueForeground2)",colorPaletteSeafoamBackground2:"var(--colorPaletteSeafoamBackground2)",colorPaletteSeafoamBorderActive:"var(--colorPaletteSeafoamBorderActive)",colorPaletteSeafoamForeground2:"var(--colorPaletteSeafoamForeground2)",colorPaletteSteelBackground2:"var(--colorPaletteSteelBackground2)",colorPaletteSteelBorderActive:"var(--colorPaletteSteelBorderActive)",colorPaletteSteelForeground2:"var(--colorPaletteSteelForeground2)",colorPaletteTealBackground2:"var(--colorPaletteTealBackground2)",colorPaletteTealBorderActive:"var(--colorPaletteTealBorderActive)",colorPaletteTealForeground2:"var(--colorPaletteTealForeground2)",colorStatusSuccessBackground1:"var(--colorStatusSuccessBackground1)",colorStatusSuccessBackground2:"var(--colorStatusSuccessBackground2)",colorStatusSuccessBackground3:"var(--colorStatusSuccessBackground3)",colorStatusSuccessForeground1:"var(--colorStatusSuccessForeground1)",colorStatusSuccessForeground2:"var(--colorStatusSuccessForeground2)",colorStatusSuccessForeground3:"var(--colorStatusSuccessForeground3)",colorStatusSuccessForegroundInverted:"var(--colorStatusSuccessForegroundInverted)",colorStatusSuccessBorderActive:"var(--colorStatusSuccessBorderActive)",colorStatusSuccessBorder1:"var(--colorStatusSuccessBorder1)",colorStatusSuccessBorder2:"var(--colorStatusSuccessBorder2)",colorStatusWarningBackground1:"var(--colorStatusWarningBackground1)",colorStatusWarningBackground2:"var(--colorStatusWarningBackground2)",colorStatusWarningBackground3:"var(--colorStatusWarningBackground3)",colorStatusWarningForeground1:"var(--colorStatusWarningForeground1)",colorStatusWarningForeground2:"var(--colorStatusWarningForeground2)",colorStatusWarningForeground3:"var(--colorStatusWarningForeground3)",colorStatusWarningForegroundInverted:"var(--colorStatusWarningForegroundInverted)",colorStatusWarningBorderActive:"var(--colorStatusWarningBorderActive)",colorStatusWarningBorder1:"var(--colorStatusWarningBorder1)",colorStatusWarningBorder2:"var(--colorStatusWarningBorder2)",colorStatusDangerBackground1:"var(--colorStatusDangerBackground1)",colorStatusDangerBackground2:"var(--colorStatusDangerBackground2)",colorStatusDangerBackground3:"var(--colorStatusDangerBackground3)",colorStatusDangerBackground3Hover:"var(--colorStatusDangerBackground3Hover)",colorStatusDangerBackground3Pressed:"var(--colorStatusDangerBackground3Pressed)",colorStatusDangerForeground1:"var(--colorStatusDangerForeground1)",colorStatusDangerForeground2:"var(--colorStatusDangerForeground2)",colorStatusDangerForeground3:"var(--colorStatusDangerForeground3)",colorStatusDangerForegroundInverted:"var(--colorStatusDangerForegroundInverted)",colorStatusDangerBorderActive:"var(--colorStatusDangerBorderActive)",colorStatusDangerBorder1:"var(--colorStatusDangerBorder1)",colorStatusDangerBorder2:"var(--colorStatusDangerBorder2)",borderRadiusNone:"var(--borderRadiusNone)",borderRadiusSmall:"var(--borderRadiusSmall)",borderRadiusMedium:"var(--borderRadiusMedium)",borderRadiusLarge:"var(--borderRadiusLarge)",borderRadiusXLarge:"var(--borderRadiusXLarge)",borderRadiusCircular:"var(--borderRadiusCircular)",fontFamilyBase:"var(--fontFamilyBase)",fontFamilyMonospace:"var(--fontFamilyMonospace)",fontFamilyNumeric:"var(--fontFamilyNumeric)",fontSizeBase100:"var(--fontSizeBase100)",fontSizeBase200:"var(--fontSizeBase200)",fontSizeBase300:"var(--fontSizeBase300)",fontSizeBase400:"var(--fontSizeBase400)",fontSizeBase500:"var(--fontSizeBase500)",fontSizeBase600:"var(--fontSizeBase600)",fontSizeHero700:"var(--fontSizeHero700)",fontSizeHero800:"var(--fontSizeHero800)",fontSizeHero900:"var(--fontSizeHero900)",fontSizeHero1000:"var(--fontSizeHero1000)",fontWeightRegular:"var(--fontWeightRegular)",fontWeightMedium:"var(--fontWeightMedium)",fontWeightSemibold:"var(--fontWeightSemibold)",fontWeightBold:"var(--fontWeightBold)",lineHeightBase100:"var(--lineHeightBase100)",lineHeightBase200:"var(--lineHeightBase200)",lineHeightBase300:"var(--lineHeightBase300)",lineHeightBase400:"var(--lineHeightBase400)",lineHeightBase500:"var(--lineHeightBase500)",lineHeightBase600:"var(--lineHeightBase600)",lineHeightHero700:"var(--lineHeightHero700)",lineHeightHero800:"var(--lineHeightHero800)",lineHeightHero900:"var(--lineHeightHero900)",lineHeightHero1000:"var(--lineHeightHero1000)",shadow2:"var(--shadow2)",shadow4:"var(--shadow4)",shadow8:"var(--shadow8)",shadow16:"var(--shadow16)",shadow28:"var(--shadow28)",shadow64:"var(--shadow64)",shadow2Brand:"var(--shadow2Brand)",shadow4Brand:"var(--shadow4Brand)",shadow8Brand:"var(--shadow8Brand)",shadow16Brand:"var(--shadow16Brand)",shadow28Brand:"var(--shadow28Brand)",shadow64Brand:"var(--shadow64Brand)",strokeWidthThin:"var(--strokeWidthThin)",strokeWidthThick:"var(--strokeWidthThick)",strokeWidthThicker:"var(--strokeWidthThicker)",strokeWidthThickest:"var(--strokeWidthThickest)",spacingHorizontalNone:"var(--spacingHorizontalNone)",spacingHorizontalXXS:"var(--spacingHorizontalXXS)",spacingHorizontalXS:"var(--spacingHorizontalXS)",spacingHorizontalSNudge:"var(--spacingHorizontalSNudge)",spacingHorizontalS:"var(--spacingHorizontalS)",spacingHorizontalMNudge:"var(--spacingHorizontalMNudge)",spacingHorizontalM:"var(--spacingHorizontalM)",spacingHorizontalL:"var(--spacingHorizontalL)",spacingHorizontalXL:"var(--spacingHorizontalXL)",spacingHorizontalXXL:"var(--spacingHorizontalXXL)",spacingHorizontalXXXL:"var(--spacingHorizontalXXXL)",spacingVerticalNone:"var(--spacingVerticalNone)",spacingVerticalXXS:"var(--spacingVerticalXXS)",spacingVerticalXS:"var(--spacingVerticalXS)",spacingVerticalSNudge:"var(--spacingVerticalSNudge)",spacingVerticalS:"var(--spacingVerticalS)",spacingVerticalMNudge:"var(--spacingVerticalMNudge)",spacingVerticalM:"var(--spacingVerticalM)",spacingVerticalL:"var(--spacingVerticalL)",spacingVerticalXL:"var(--spacingVerticalXL)",spacingVerticalXXL:"var(--spacingVerticalXXL)",spacingVerticalXXXL:"var(--spacingVerticalXXXL)",durationUltraFast:"var(--durationUltraFast)",durationFaster:"var(--durationFaster)",durationFast:"var(--durationFast)",durationNormal:"var(--durationNormal)",durationGentle:"var(--durationGentle)",durationSlow:"var(--durationSlow)",durationSlower:"var(--durationSlower)",durationUltraSlow:"var(--durationUltraSlow)",curveAccelerateMax:"var(--curveAccelerateMax)",curveAccelerateMid:"var(--curveAccelerateMid)",curveAccelerateMin:"var(--curveAccelerateMin)",curveDecelerateMax:"var(--curveDecelerateMax)",curveDecelerateMid:"var(--curveDecelerateMid)",curveDecelerateMin:"var(--curveDecelerateMin)",curveEasyEaseMax:"var(--curveEasyEaseMax)",curveEasyEase:"var(--curveEasyEase)",curveLinear:"var(--curveLinear)",zIndexBackground:"var(--zIndexBackground, 0)",zIndexContent:"var(--zIndexContent, 1)",zIndexOverlay:"var(--zIndexOverlay, 1000)",zIndexPopup:"var(--zIndexPopup, 2000)",zIndexMessages:"var(--zIndexMessages, 3000)",zIndexFloating:"var(--zIndexFloating, 4000)",zIndexPriority:"var(--zIndexPriority, 5000)",zIndexDebug:"var(--zIndexDebug, 6000)"};var Vi={exports:{}},$i={};/**
|
|
163
|
+
* @license React
|
|
164
|
+
* scheduler.development.js
|
|
165
|
+
*
|
|
166
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
167
|
+
*
|
|
168
|
+
* This source code is licensed under the MIT license found in the
|
|
169
|
+
* LICENSE file in the root directory of this source tree.
|
|
170
|
+
*/var Ec;function e0(){return Ec||(Ec=1,function(e){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var r=!1,t=!1,n=5;function i(H,Y){var le=H.length;H.push(Y),l(H,Y,le)}function o(H){return H.length===0?null:H[0]}function s(H){if(H.length===0)return null;var Y=H[0],le=H.pop();return le!==Y&&(H[0]=le,u(H,le,0)),Y}function l(H,Y,le){for(var we=le;we>0;){var ze=we-1>>>1,Ye=H[ze];if(a(Ye,Y)>0)H[ze]=Y,H[we]=Ye,we=ze;else return}}function u(H,Y,le){for(var we=le,ze=H.length,Ye=ze>>>1;we<Ye;){var qe=(we+1)*2-1,Ut=H[qe],je=qe+1,ur=H[je];if(a(Ut,Y)<0)je<ze&&a(ur,Ut)<0?(H[we]=ur,H[je]=Y,we=je):(H[we]=Ut,H[qe]=Y,we=qe);else if(je<ze&&a(ur,Y)<0)H[we]=ur,H[je]=Y,we=je;else return}}function a(H,Y){var le=H.sortIndex-Y.sortIndex;return le!==0?le:H.id-Y.id}var c=1,d=2,g=3,f=4,h=5;function v(H,Y){}var b=typeof performance=="object"&&typeof performance.now=="function";if(b){var p=performance;e.unstable_now=function(){return p.now()}}else{var y=Date,k=y.now();e.unstable_now=function(){return y.now()-k}}var w=1073741823,x=-1,B=250,S=5e3,C=1e4,E=w,I=[],$=[],U=1,T=null,A=g,G=!1,X=!1,Q=!1,z=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,W=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function se(H){for(var Y=o($);Y!==null;){if(Y.callback===null)s($);else if(Y.startTime<=H)s($),Y.sortIndex=Y.expirationTime,i(I,Y);else return;Y=o($)}}function L(H){if(Q=!1,se(H),!X)if(o(I)!==null)X=!0,Lr(oe);else{var Y=o($);Y!==null&&Tt(L,Y.startTime-H)}}function oe(H,Y){X=!1,Q&&(Q=!1,En()),G=!0;var le=A;try{var we;if(!t)return be(H,Y)}finally{T=null,A=le,G=!1}}function be(H,Y){var le=Y;for(se(le),T=o(I);T!==null&&!r&&!(T.expirationTime>le&&(!H||sr()));){var we=T.callback;if(typeof we=="function"){T.callback=null,A=T.priorityLevel;var ze=T.expirationTime<=le,Ye=we(ze);le=e.unstable_now(),typeof Ye=="function"?T.callback=Ye:T===o(I)&&s(I),se(le)}else s(I);T=o(I)}if(T!==null)return!0;var qe=o($);return qe!==null&&Tt(L,qe.startTime-le),!1}function dt(H,Y){switch(H){case c:case d:case g:case f:case h:break;default:H=g}var le=A;A=H;try{return Y()}finally{A=le}}function Me(H){var Y;switch(A){case c:case d:case g:Y=g;break;default:Y=A;break}var le=A;A=Y;try{return H()}finally{A=le}}function rt(H){var Y=A;return function(){var le=A;A=Y;try{return H.apply(this,arguments)}finally{A=le}}}function Ht(H,Y,le){var we=e.unstable_now(),ze;if(typeof le=="object"&&le!==null){var Ye=le.delay;typeof Ye=="number"&&Ye>0?ze=we+Ye:ze=we}else ze=we;var qe;switch(H){case c:qe=x;break;case d:qe=B;break;case h:qe=E;break;case f:qe=C;break;case g:default:qe=S;break}var Ut=ze+qe,je={id:U++,callback:Y,priorityLevel:H,startTime:ze,expirationTime:Ut,sortIndex:-1};return ze>we?(je.sortIndex=ze,i($,je),o(I)===null&&je===o($)&&(Q?En():Q=!0,Tt(L,ze-we))):(je.sortIndex=Ut,i(I,je),!X&&!G&&(X=!0,Lr(oe))),je}function ar(){}function Wt(){!X&&!G&&(X=!0,Lr(oe))}function K(){return o(I)}function Vt(H){H.callback=null}function $t(){return A}var Ct=!1,Pt=null,Gt=-1,Mr=n,ko=-1;function sr(){var H=e.unstable_now()-ko;return!(H<Mr)}function Xa(){}function Za(H){if(H<0||H>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}H>0?Mr=Math.floor(1e3/H):Mr=n}var lr=function(){if(Pt!==null){var H=e.unstable_now();ko=H;var Y=!0,le=!0;try{le=Pt(Y,H)}finally{le?cr():(Ct=!1,Pt=null)}}else Ct=!1},cr;if(typeof W=="function")cr=function(){W(lr)};else if(typeof MessageChannel<"u"){var Pn=new MessageChannel,Tn=Pn.port2;Pn.port1.onmessage=lr,cr=function(){Tn.postMessage(null)}}else cr=function(){z(lr,0)};function Lr(H){Pt=H,Ct||(Ct=!0,cr())}function Tt(H,Y){Gt=z(function(){H(e.unstable_now())},Y)}function En(){q(Gt),Gt=-1}var Nn=Xa,Rn=null;e.unstable_IdlePriority=h,e.unstable_ImmediatePriority=c,e.unstable_LowPriority=f,e.unstable_NormalPriority=g,e.unstable_Profiling=Rn,e.unstable_UserBlockingPriority=d,e.unstable_cancelCallback=Vt,e.unstable_continueExecution=Wt,e.unstable_forceFrameRate=Za,e.unstable_getCurrentPriorityLevel=$t,e.unstable_getFirstCallbackNode=K,e.unstable_next=Me,e.unstable_pauseExecution=ar,e.unstable_requestPaint=Nn,e.unstable_runWithPriority=dt,e.unstable_scheduleCallback=Ht,e.unstable_shouldYield=sr,e.unstable_wrapCallback=rt,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}($i)),$i}var Gi={};/**
|
|
171
|
+
* @license React
|
|
172
|
+
* scheduler.production.min.js
|
|
173
|
+
*
|
|
174
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
175
|
+
*
|
|
176
|
+
* This source code is licensed under the MIT license found in the
|
|
177
|
+
* LICENSE file in the root directory of this source tree.
|
|
178
|
+
*/var Nc;function t0(){return Nc||(Nc=1,function(e){function r(z,q){var W=z.length;z.push(q);e:for(;0<W;){var se=W-1>>>1,L=z[se];if(0<i(L,q))z[se]=q,z[W]=L,W=se;else break e}}function t(z){return z.length===0?null:z[0]}function n(z){if(z.length===0)return null;var q=z[0],W=z.pop();if(W!==q){z[0]=W;e:for(var se=0,L=z.length,oe=L>>>1;se<oe;){var be=2*(se+1)-1,dt=z[be],Me=be+1,rt=z[Me];if(0>i(dt,W))Me<L&&0>i(rt,dt)?(z[se]=rt,z[Me]=W,se=Me):(z[se]=dt,z[be]=W,se=be);else if(Me<L&&0>i(rt,W))z[se]=rt,z[Me]=W,se=Me;else break e}}return q}function i(z,q){var W=z.sortIndex-q.sortIndex;return W!==0?W:z.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],a=[],c=1,d=null,g=3,f=!1,h=!1,v=!1,b=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(z){for(var q=t(a);q!==null;){if(q.callback===null)n(a);else if(q.startTime<=z)n(a),q.sortIndex=q.expirationTime,r(u,q);else break;q=t(a)}}function w(z){if(v=!1,k(z),!h)if(t(u)!==null)h=!0,X(x);else{var q=t(a);q!==null&&Q(w,q.startTime-z)}}function x(z,q){h=!1,v&&(v=!1,p(C),C=-1),f=!0;var W=g;try{for(k(q),d=t(u);d!==null&&(!(d.expirationTime>q)||z&&!$());){var se=d.callback;if(typeof se=="function"){d.callback=null,g=d.priorityLevel;var L=se(d.expirationTime<=q);q=e.unstable_now(),typeof L=="function"?d.callback=L:d===t(u)&&n(u),k(q)}else n(u);d=t(u)}if(d!==null)var oe=!0;else{var be=t(a);be!==null&&Q(w,be.startTime-q),oe=!1}return oe}finally{d=null,g=W,f=!1}}var B=!1,S=null,C=-1,E=5,I=-1;function $(){return!(e.unstable_now()-I<E)}function U(){if(S!==null){var z=e.unstable_now();I=z;var q=!0;try{q=S(!0,z)}finally{q?T():(B=!1,S=null)}}else B=!1}var T;if(typeof y=="function")T=function(){y(U)};else if(typeof MessageChannel<"u"){var A=new MessageChannel,G=A.port2;A.port1.onmessage=U,T=function(){G.postMessage(null)}}else T=function(){b(U,0)};function X(z){S=z,B||(B=!0,T())}function Q(z,q){C=b(function(){z(e.unstable_now())},q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_continueExecution=function(){h||f||(h=!0,X(x))},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return t(u)},e.unstable_next=function(z){switch(g){case 1:case 2:case 3:var q=3;break;default:q=g}var W=g;g=q;try{return z()}finally{g=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(z,q){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var W=g;g=z;try{return q()}finally{g=W}},e.unstable_scheduleCallback=function(z,q,W){var se=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?se+W:se):W=se,z){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=W+L,z={id:c++,callback:q,priorityLevel:z,startTime:W,expirationTime:L,sortIndex:-1},W>se?(z.sortIndex=W,r(a,z),t(u)===null&&z===t(a)&&(v?(p(C),C=-1):v=!0,Q(w,W-se))):(z.sortIndex=L,r(u,z),h||f||(h=!0,X(x))),z},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(z){var q=g;return function(){var W=g;g=q;try{return z.apply(this,arguments)}finally{g=W}}}}(Gi)),Gi}process.env.NODE_ENV==="production"?Vi.exports=t0():Vi.exports=e0();var Rc=Vi.exports;const r0=e=>{const r=t=>{const n=m.useRef(t.value),i=m.useRef(0),o=m.useRef();return o.current||(o.current={value:n,version:i,listeners:[]}),Fe(()=>{n.current=t.value,i.current+=1,Rc.unstable_runWithPriority(Rc.unstable_NormalPriority,()=>{o.current.listeners.forEach(s=>{s([i.current,t.value])})})},[t.value]),m.createElement(e,{value:o.current},t.children)};return process.env.NODE_ENV!=="production"&&(r.displayName="ContextSelector.Provider"),r},Yo=e=>{const r=m.createContext({value:{current:e},version:{current:-1},listeners:[]});return r.Provider=r0(r.Provider),delete r.Consumer,r},Ui=(e,r)=>{const t=m.useContext(e),{value:{current:n},version:{current:i},listeners:o}=t,s=r(n),[l,u]=m.useState([n,s]),a=d=>{u(g=>{if(!d)return[n,s];if(d[0]<=i)return Object.is(g[1],s)?g:[n,s];try{if(Object.is(g[0],d[1]))return g;const f=r(d[1]);return Object.is(g[1],f)?g:[d[1],f]}catch{}return[g[0],g[1]]})};Object.is(l[1],s)||a(void 0);const c=ee(a);return Fe(()=>(o.push(c),()=>{const d=o.indexOf(c);o.splice(d,1)}),[c,o]),l[1]};function Ki(e){const r=m.useContext(e);return r.version?r.version.current!==-1:!1}const o0="Shift",rr="Enter",gt=" ",n0="Tab",Xi="ArrowDown",zc="ArrowLeft",Zi="ArrowRight",Jo="ArrowUp",Dc="End",Fc="Home",i0="PageDown",a0="PageUp",Qi="Escape";function Ic(e,r){const{disabled:t,disabledFocusable:n=!1,["aria-disabled"]:i,onClick:o,onKeyDown:s,onKeyUp:l,...u}=r??{},a=typeof i=="string"?i==="true":i,c=t||n||a,d=ee(h=>{c?(h.preventDefault(),h.stopPropagation()):o==null||o(h)}),g=ee(h=>{if(s==null||s(h),h.isDefaultPrevented())return;const v=h.key;if(c&&(v===rr||v===gt)){h.preventDefault(),h.stopPropagation();return}if(v===gt){h.preventDefault();return}else v===rr&&(h.preventDefault(),h.currentTarget.click())}),f=ee(h=>{if(l==null||l(h),h.isDefaultPrevented())return;const v=h.key;if(c&&(v===rr||v===gt)){h.preventDefault(),h.stopPropagation();return}v===gt&&(h.preventDefault(),h.currentTarget.click())});if(e==="button"||e===void 0)return{...u,disabled:t&&!n,"aria-disabled":n?!0:a,onClick:n?void 0:d,onKeyUp:n?void 0:l,onKeyDown:n?void 0:s};{const h=!!u.href;let v=h?void 0:"button";!v&&c&&(v="link");const b={role:v,tabIndex:n||!h&&!t?0:void 0,...u,onClick:d,onKeyUp:f,onKeyDown:g,"aria-disabled":c};return e==="a"&&c&&(b.href=void 0),b}}const We=()=>{},s0={controller:{active:We,blur:We,find:We,first:We,focus:We,focusLastActive:We,scrollActiveIntoView:We,last:We,next:We,prev:We,showAttributes:We,hideAttributes:We,showFocusVisibleAttributes:We,hideFocusVisibleAttributes:We}},Yi=m.createContext(void 0),jc=Yi.Provider,Ac=()=>{var e;return(e=m.useContext(Yi))!==null&&e!==void 0?e:s0},l0=()=>!!m.useContext(Yi);function c0(e){const{matchOption:r}=e,{targetDocument:t}=_e(),n=m.useRef(null),i=m.useRef(null),o=m.useCallback(u=>Ue(u)&&r(u)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,[r]),s=m.useCallback(u=>{u&&t?(i.current=u,n.current=t.createTreeWalker(u,NodeFilter.SHOW_ELEMENT,o)):(i.current=null,n.current=null)},[t,o]);return{optionWalker:m.useMemo(()=>({first:()=>!n.current||!i.current?null:(n.current.currentNode=i.current,n.current.firstChild()),last:()=>!n.current||!i.current?null:(n.current.currentNode=i.current,n.current.lastChild()),next:()=>n.current?n.current.nextNode():null,prev:()=>n.current?n.current.previousNode():null,find:(u,a)=>{if(!n.current||!i.current)return null;const c=a?t==null?void 0:t.getElementById(a):null;n.current.currentNode=c??i.current;let d=n.current.currentNode;for(;d&&!u(d.id);)d=n.current.nextNode();return d},setCurrent:u=>{n.current&&(n.current.currentNode=u)}}),[t]),listboxCallbackRef:s}}const Oc="data-activedescendant",zr="data-activedescendant-focusvisible",qc=e=>{if(!e)return;const r=Mc(e.parentElement);if(!r)return;const{offsetHeight:t}=e,n=Lc(e,r),{scrollMarginTop:i,scrollMarginBottom:o}=u0(e),{offsetHeight:s,scrollTop:l}=r,u=n-i<l,a=n+t+o>l+s,c=2;u?r.scrollTo(0,n-i-c):a&&r.scrollTo(0,n+t+o-s+c)},Mc=e=>e?e.scrollHeight>e.offsetHeight?e:Mc(e.parentElement):null,Lc=(e,r)=>!e||e===r?0:e.contains(r)?r.offsetTop*-1:e.offsetTop+Lc(e.offsetParent,r),u0=e=>{var r;const t=(r=e.ownerDocument)===null||r===void 0?void 0:r.defaultView;if(!t)return{scrollMarginTop:0,scrollMarginBottom:0};const n=t.getComputedStyle(e);var i;const o=(i=en(n.scrollMarginTop))!==null&&i!==void 0?i:en(n.scrollMarginBlockStart);var s;const l=(s=en(n.scrollMarginBottom))!==null&&s!==void 0?s:en(n.scrollMarginBlockEnd);return{scrollMarginTop:o,scrollMarginBottom:l}},en=e=>e?parseInt(e,10):0,d0=e=>new CustomEvent("activedescendantchange",{bubbles:!0,cancelable:!1,composed:!0,detail:e});function Hc(e){const{imperativeRef:r,matchOption:t}=e,n=m.useRef(!1),i=m.useRef(!0),o=m.useRef(null),s=m.useRef(null),l=m.useRef(null),u=m.useRef(!0),a=m.useCallback(()=>{var w;(w=l.current)===null||w===void 0||w.removeAttribute("aria-activedescendant")},[]),c=m.useCallback(w=>{if(w&&(o.current=w),u.current&&o.current){var x;(x=l.current)===null||x===void 0||x.setAttribute("aria-activedescendant",o.current)}},[]);Pc(w=>{n.current=w;const x=v();x&&(w&&i.current?x.setAttribute(zr,""):x.removeAttribute(zr))});const d=ee(t),g=m.useRef(null),{optionWalker:f,listboxCallbackRef:h}=c0({matchOption:d}),v=m.useCallback(()=>{var w;return(w=g.current)===null||w===void 0?void 0:w.querySelector(`#${o.current}`)},[g]),b=m.useCallback(w=>{i.current=w;const x=v();x&&(w&&n.current?x.setAttribute(zr,""):x.removeAttribute(zr))},[v]),p=m.useCallback(()=>{const w=v();w&&(w.removeAttribute(Oc),w.removeAttribute(zr)),a(),s.current=o.current,o.current=null;var x;return(x=w==null?void 0:w.id)!==null&&x!==void 0?x:null},[v,a]),y=m.useCallback(w=>{if(!w)return;const x=p();qc(w),c(w.id),w.setAttribute(Oc,""),n.current&&i.current&&w.setAttribute(zr,"");const B=d0({id:w.id,previousId:x});w.dispatchEvent(B)},[p,c]),k=m.useMemo(()=>({first:({passive:w}={})=>{const x=f.first();return w||y(x),x==null?void 0:x.id},last:({passive:w}={})=>{const x=f.last();return w||y(x),x==null?void 0:x.id},next:({passive:w}={})=>{const x=v();if(!x)return;f.setCurrent(x);const B=f.next();return w||y(B),B==null?void 0:B.id},prev:({passive:w}={})=>{const x=v();if(!x)return;f.setCurrent(x);const B=f.prev();return w||y(B),B==null?void 0:B.id},blur:()=>{p()},active:()=>{var w;return(w=v())===null||w===void 0?void 0:w.id},focus:w=>{if(!g.current)return;const x=g.current.querySelector(`#${w}`);x&&y(x)},focusLastActive:()=>{if(!g.current||!s.current)return;const w=g.current.querySelector(`#${s.current}`);if(w)return y(w),!0},find(w,{passive:x,startFrom:B}={}){const S=f.find(w,B);return x||y(S),S==null?void 0:S.id},scrollActiveIntoView:()=>{if(!g.current)return;const w=v();w&&qc(w)},showAttributes(){u.current=!0,c()},hideAttributes(){u.current=!1,a()},showFocusVisibleAttributes(){b(!0)},hideFocusVisibleAttributes(){b(!1)}}),[f,g,c,a,y,p,v,b]);return m.useImperativeHandle(r,()=>k),{listboxRef:Ne(g,h),activeParentRef:l,controller:k}}const f0=O({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1);}"]}),h0=(e,r)=>{const{title:t,primaryFill:n="currentColor",...i}=e,o={...i,title:void 0,fill:n},s=f0(),l=wp();return o.className=N(s.root,(r==null?void 0:r.flipInRtl)&&(l==null?void 0:l.textDirection)==="rtl"&&s.rtl,o.className),t&&(o["aria-label"]=t),!o["aria-label"]&&!o["aria-labelledby"]?o["aria-hidden"]=!0:o.role="img",o},g0=O({root:{ycbfsm:"fg4l7m0"}},{t:["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}"]}),V=(e,r,t,n)=>{const i=r==="1em"?"20":r,o=m.forwardRef((s,l)=>{const u=g0(),a=h0(s,{flipInRtl:n==null?void 0:n.flipInRtl}),c={...a,className:N(a.className,u.root),ref:l,width:r,height:r,viewBox:`0 0 ${i} ${i}`,xmlns:"http://www.w3.org/2000/svg"};return typeof t=="string"?m.createElement("svg",{...c,dangerouslySetInnerHTML:{__html:t}}):m.createElement("svg",c,...t.map(d=>m.createElement("path",{d,fill:c.fill})))});return o.displayName=e,o},v0=V("ArrowDownRegular","1em",["M16.87 10.84a.5.5 0 1 0-.74-.68l-5.63 6.17V2.5a.5.5 0 0 0-1 0v13.83l-5.63-6.17a.5.5 0 0 0-.74.68l6.31 6.91a.75.75 0 0 0 1.11 0l6.32-6.91Z"]),m0=V("ArrowUpRegular","1em",["M3.13 9.16a.5.5 0 1 0 .74.68L9.5 3.67V17.5a.5.5 0 1 0 1 0V3.67l5.63 6.17a.5.5 0 0 0 .74-.68l-6.32-6.92a.75.75 0 0 0-1.1 0L3.13 9.16Z"],{flipInRtl:!0}),p0=V("CheckmarkFilled","1em",["M7.03 13.9 3.56 10a.75.75 0 0 0-1.12 1l4 4.5c.29.32.79.34 1.09.03l10.5-10.5a.75.75 0 0 0-1.06-1.06l-9.94 9.94Z"]),b0=V("CheckmarkCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm3.36 5.65a.5.5 0 0 0-.64-.06l-.07.06L9 11.3 7.35 9.65l-.07-.06a.5.5 0 0 0-.7.7l.07.07 2 2 .07.06c.17.11.4.11.56 0l.07-.06 4-4 .07-.08a.5.5 0 0 0-.06-.63Z"]),y0=V("ChevronDownRegular","1em",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]),w0=V("CircleFilled","1em",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),Wc=V("DismissRegular","1em",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),k0=V("DismissCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16ZM7.8 7.11a.5.5 0 0 0-.63.06l-.06.07a.5.5 0 0 0 .06.64L9.3 10l-2.12 2.12-.06.07a.5.5 0 0 0 .06.64l.07.06c.2.13.47.11.64-.06L10 10.7l2.12 2.12.07.06c.2.13.46.11.64-.06l.06-.07a.5.5 0 0 0-.06-.64L10.7 10l2.12-2.12.06-.07a.5.5 0 0 0-.06-.64l-.07-.06a.5.5 0 0 0-.64.06L10 9.3 7.88 7.17l-.07-.06Z"]),x0=V("FilterRegular","1em",["M7.5 13h5a.5.5 0 0 1 .09 1H7.5a.5.5 0 0 1-.09-1h5.09-5Zm-2-4h9a.5.5 0 0 1 .09 1H5.5a.5.5 0 0 1-.09-1h9.09-9Zm-2-4h13a.5.5 0 0 1 .09 1H3.5a.5.5 0 0 1-.09-1H16.5h-13Z"]),_0=V("InfoFilled","1em",["M18 10a8 8 0 1 0-16 0 8 8 0 0 0 16 0ZM9.5 8.91a.5.5 0 0 1 1 0V13.6a.5.5 0 0 1-1 0V8.9Zm-.25-2.16a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Z"]),S0=V("PersonRegular","1em",["M10 2a4 4 0 1 0 0 8 4 4 0 0 0 0-8ZM7 6a3 3 0 1 1 6 0 3 3 0 0 1-6 0Zm-2 5a2 2 0 0 0-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0 0 10 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0 0 17 13a2 2 0 0 0-2-2H5Zm-1 2a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0 1 10 17a8.16 8.16 0 0 1-4.33-1.05A3.36 3.36 0 0 1 4 13Z"]),B0=V("SendRegular","1em",["M2.18 2.11a.5.5 0 0 1 .54-.06l15 7.5a.5.5 0 0 1 0 .9l-15 7.5a.5.5 0 0 1-.7-.58L3.98 10 2.02 2.63a.5.5 0 0 1 .16-.52Zm2.7 8.39-1.61 6.06L16.38 10 3.27 3.44 4.88 9.5h6.62a.5.5 0 1 1 0 1H4.88Z"],{flipInRtl:!0}),C0=V("WarningFilled","1em",["M8.68 2.79a1.5 1.5 0 0 1 2.64 0l6.5 12A1.5 1.5 0 0 1 16.5 17h-13a1.5 1.5 0 0 1-1.32-2.21l6.5-12ZM10.5 7.5a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0v-4Zm.25 6.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"]),Vc=V("Checkmark12Filled","12",["M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z"]),P0=V("Checkmark16Filled","16",["M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 0 1 4.9 12L2.22 9.28a.75.75 0 1 1 1.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 0 1 1.06.04Z"]),T0=V("CheckmarkCircle12Filled","12",["M1 6a5 5 0 1 1 10 0A5 5 0 0 1 1 6Zm7.35-.9a.5.5 0 1 0-.7-.7L5.5 6.54 4.35 5.4a.5.5 0 1 0-.7.7l1.5 1.5c.2.2.5.2.7 0l2.5-2.5Z"]),E0=V("ChevronLeft16Regular","16",["M10.35 3.15c.2.2.2.5 0 .7L6.21 8l4.14 4.15a.5.5 0 0 1-.7.7l-4.5-4.5a.5.5 0 0 1 0-.7l4.5-4.5c.2-.2.5-.2.7 0Z"]),N0=V("ChevronRight16Regular","16",["M5.65 3.15a.5.5 0 0 0 0 .7L9.79 8l-4.14 4.15a.5.5 0 0 0 .7.7l4.5-4.5a.5.5 0 0 0 0-.7l-4.5-4.5a.5.5 0 0 0-.7 0Z"]),R0=V("Dismiss24Regular","24",["m4.4 4.55.07-.08a.75.75 0 0 1 .98-.07l.08.07L12 10.94l6.47-6.47a.75.75 0 1 1 1.06 1.06L13.06 12l6.47 6.47c.27.27.3.68.07.98l-.07.08a.75.75 0 0 1-.98.07l-.08-.07L12 13.06l-6.47 6.47a.75.75 0 0 1-1.06-1.06L10.94 12 4.47 5.53a.75.75 0 0 1-.07-.98l.07-.08-.07.08Z"]),z0=V("ErrorCircle12Filled","12",["M6 11A5 5 0 1 0 6 1a5 5 0 0 0 0 10Zm-.75-2.75a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Zm.26-4.84a.5.5 0 0 1 .98 0l.01.09v2.59a.5.5 0 0 1-1 0V3.41Z"]),D0=V("Open16Regular","16",["M4.5 3C3.67 3 3 3.67 3 4.5v7c0 .83.67 1.5 1.5 1.5h7c.83 0 1.5-.67 1.5-1.5V9.27a.5.5 0 0 1 1 0v2.23a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 11.5v-7A2.5 2.5 0 0 1 4.5 2h2.23a.5.5 0 0 1 0 1H4.5Zm4.27-.5c0-.28.22-.5.5-.5h4.23c.28 0 .5.22.5.5v4.23a.5.5 0 0 1-1 0V3.71L9.62 7.08a.5.5 0 1 1-.7-.7L12.29 3H9.27a.5.5 0 0 1-.5-.5Z"]),$c=V("PresenceAvailable10Filled","10",["M5 10A5 5 0 1 0 5 0a5 5 0 0 0 0 10Zm2.1-5.9L4.85 6.35a.5.5 0 0 1-.7 0l-1-1a.5.5 0 0 1 .7-.7l.65.64 1.9-1.9a.5.5 0 0 1 .7.71Z"]),Gc=V("PresenceAvailable10Regular","10",["M5 0a5 5 0 1 0 0 10A5 5 0 0 0 5 0ZM1 5a4 4 0 1 1 8 0 4 4 0 0 1-8 0Zm6.1-1.6c.2.2.2.5 0 .7L4.85 6.35a.5.5 0 0 1-.7 0l-1-1a.5.5 0 1 1 .7-.7l.65.64 1.9-1.9c.2-.19.5-.19.7 0Z"]),F0=V("PresenceAvailable12Filled","12",["M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12Zm2.53-6.72L5.78 8.03c-.3.3-.77.3-1.06 0l-1-1a.75.75 0 0 1 1.06-1.06l.47.47 2.22-2.22a.75.75 0 0 1 1.06 1.06Z"]),I0=V("PresenceAvailable12Regular","12",["M6 0a6 6 0 1 0 0 12A6 6 0 0 0 6 0ZM1.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0Zm7.03-1.78c.3.3.3.77 0 1.06L5.78 8.03c-.3.3-.77.3-1.06 0l-1-1a.75.75 0 0 1 1.06-1.06l.47.47 2.22-2.22c.3-.3.77-.3 1.06 0Z"]),j0=V("PresenceAvailable16Filled","16",["M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Zm3.7-9.3-4 4a1 1 0 0 1-1.41 0l-2-2a1 1 0 1 1 1.42-1.4L7 8.58l3.3-3.3a1 1 0 0 1 1.4 1.42Z"]),A0=V("PresenceAvailable16Regular","16",["M11.7 6.7a1 1 0 0 0-1.4-1.4L7 8.58l-1.3-1.3a1 1 0 0 0-1.4 1.42l2 2a1 1 0 0 0 1.4 0l4-4ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z"]),Uc=V("PresenceAvailable20Filled","20",["M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20Zm4.2-11.8-4.5 4.5a1 1 0 0 1-1.4 0l-2-2a1 1 0 1 1 1.4-1.4L9 10.58l3.8-3.8a1 1 0 1 1 1.4 1.42Z"]),Kc=V("PresenceAvailable20Regular","20",["M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20ZM2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm12.2-3.2a1 1 0 0 1 0 1.4l-4.5 4.5a1 1 0 0 1-1.4 0l-2-2a1 1 0 0 1 1.4-1.4L9 10.58l3.8-3.8a1 1 0 0 1 1.4 0Z"]),Xc=V("PresenceAway10Filled","10",["M5 10A5 5 0 1 0 5 0a5 5 0 0 0 0 10Zm0-7v1.8l1.35 1.35a.5.5 0 1 1-.7.7l-1.5-1.5A.5.5 0 0 1 4 5V3a.5.5 0 0 1 1 0Z"]),O0=V("PresenceAway12Filled","12",["M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12Zm.5-8.75v2.4l1.49 1.28A.75.75 0 1 1 7 8.07l-1.75-1.5A.75.75 0 0 1 5 6V3.25a.75.75 0 0 1 1.5 0Z"]),q0=V("PresenceAway16Filled","16",["M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Zm.5-11.5v3.02l2.12 1.7a1 1 0 1 1-1.24 1.56l-2.5-2A1 1 0 0 1 6.5 8V4.5a1 1 0 0 1 2 0Z"]),Zc=V("PresenceAway20Filled","20",["M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20Zm0-14V9.6l2.7 2.7a1 1 0 0 1-1.4 1.42l-3-3A1 1 0 0 1 8 10V6a1 1 0 1 1 2 0Z"]),Qc=V("PresenceBlocked10Regular","10",["M10 5A5 5 0 1 0 0 5a5 5 0 0 0 10 0ZM9 5a4 4 0 0 1-6.45 3.16l5.61-5.61C8.69 3.22 9 4.08 9 5ZM7.45 1.84 1.84 7.45a4 4 0 0 1 5.61-5.61Z"]),M0=V("PresenceBlocked12Regular","12",["M12 6A6 6 0 1 1 0 6a6 6 0 0 1 12 0Zm-1.5 0c0-.97-.3-1.87-.83-2.6L3.39 9.66A4.5 4.5 0 0 0 10.5 6ZM8.6 2.33a4.5 4.5 0 0 0-6.28 6.28l6.29-6.28Z"]),L0=V("PresenceBlocked16Regular","16",["M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-2 0c0-1.3-.41-2.5-1.1-3.48L4.51 12.9A6 6 0 0 0 14 8Zm-2.52-4.9a6 6 0 0 0-8.37 8.37l8.37-8.36Z"]),Yc=V("PresenceBlocked20Regular","20",["M20 10a10 10 0 1 0-20 0 10 10 0 0 0 20 0Zm-2 0a8 8 0 0 1-12.9 6.32L16.31 5.09A7.97 7.97 0 0 1 18 10Zm-3.1-6.32L3.69 14.91A8 8 0 0 1 14.91 3.68Z"]),Jc=V("PresenceBusy10Filled","10",["M10 5A5 5 0 1 1 0 5a5 5 0 0 1 10 0Z"]),H0=V("PresenceBusy12Filled","12",["M12 6A6 6 0 1 1 0 6a6 6 0 0 1 12 0Z"]),W0=V("PresenceBusy16Filled","16",["M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Z"]),eu=V("PresenceBusy20Filled","20",["M20 10a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z"]),tu=V("PresenceDnd10Filled","10",["M5 10A5 5 0 1 0 5 0a5 5 0 0 0 0 10ZM3.5 4.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1Z"]),ru=V("PresenceDnd10Regular","10",["M5 0a5 5 0 1 0 0 10A5 5 0 0 0 5 0ZM1 5a4 4 0 1 1 8 0 4 4 0 0 1-8 0Zm2 0c0-.28.22-.5.5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 3 5Z"]),V0=V("PresenceDnd12Filled","12",["M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12ZM3.75 5.25h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5Z"]),$0=V("PresenceDnd12Regular","12",["M6 0a6 6 0 1 0 0 12A6 6 0 0 0 6 0ZM1.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0ZM3 6c0-.41.34-.75.75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5A.75.75 0 0 1 3 6Z"]),G0=V("PresenceDnd16Filled","16",["M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16ZM5.25 7h5.5a1 1 0 1 1 0 2h-5.5a1 1 0 1 1 0-2Z"]),U0=V("PresenceDnd16Regular","16",["M5.25 7a1 1 0 0 0 0 2h5.5a1 1 0 1 0 0-2h-5.5ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z"]),ou=V("PresenceDnd20Filled","20",["M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20ZM7 9h6a1 1 0 1 1 0 2H7a1 1 0 1 1 0-2Z"]),nu=V("PresenceDnd20Regular","20",["M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20ZM2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm4 0a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Z"]),iu=V("PresenceOffline10Regular","10",["M6.85 3.15c.2.2.2.5 0 .7L5.71 5l1.14 1.15a.5.5 0 1 1-.7.7L5 5.71 3.85 6.85a.5.5 0 1 1-.7-.7L4.29 5 3.15 3.85a.5.5 0 1 1 .7-.7L5 4.29l1.15-1.14c.2-.2.5-.2.7 0ZM0 5a5 5 0 1 1 10 0A5 5 0 0 1 0 5Zm5-4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z"]),K0=V("PresenceOffline12Regular","12",["M8.03 3.97c.3.3.3.77 0 1.06L7.06 6l.97.97a.75.75 0 0 1-1.06 1.06L6 7.06l-.97.97a.75.75 0 0 1-1.06-1.06L4.94 6l-.97-.97a.75.75 0 0 1 1.06-1.06l.97.97.97-.97c.3-.3.77-.3 1.06 0ZM0 6a6 6 0 1 1 12 0A6 6 0 0 1 0 6Zm6-4.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"]),X0=V("PresenceOffline16Regular","16",["M10.7 5.3a1 1 0 0 1 0 1.4L9.42 8l1.3 1.3a1 1 0 0 1-1.42 1.4L8 9.42l-1.3 1.3a1 1 0 0 1-1.4-1.42L6.58 8l-1.3-1.3a1 1 0 0 1 1.42-1.4L8 6.58l1.3-1.3a1 1 0 0 1 1.4 0ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z"]),au=V("PresenceOffline20Regular","20",["M13.7 6.3a1 1 0 0 1 0 1.4L11.42 10l2.3 2.3a1 1 0 0 1-1.42 1.4L10 11.42l-2.3 2.3a1 1 0 0 1-1.4-1.42L8.58 10l-2.3-2.3a1 1 0 0 1 1.42-1.4L10 8.58l2.3-2.3a1 1 0 0 1 1.4 0ZM0 10a10 10 0 1 1 20 0 10 10 0 0 1-20 0Zm10-8a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),su=V("PresenceOof10Regular","10",["M5.35 3.85a.5.5 0 1 0-.7-.7l-1.5 1.5a.5.5 0 0 0 0 .7l1.5 1.5a.5.5 0 1 0 .7-.7L4.7 5.5h1.8a.5.5 0 1 0 0-1H4.7l.65-.65ZM5 0a5 5 0 1 0 0 10A5 5 0 0 0 5 0ZM1 5a4 4 0 1 1 8 0 4 4 0 0 1-8 0Z"]),Z0=V("PresenceOof12Regular","12",["M6.28 4.53a.75.75 0 0 0-1.06-1.06l-2 2c-.3.3-.3.77 0 1.06l2 2a.75.75 0 0 0 1.06-1.06l-.72-.72h2.69a.75.75 0 1 0 0-1.5h-2.7l.73-.72ZM6 0a6 6 0 1 0 0 12A6 6 0 0 0 6 0ZM1.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0Z"]),Q0=V("PresenceOof16Regular","16",["M8.2 6.2a1 1 0 1 0-1.4-1.4L4.3 7.3a1 1 0 0 0 0 1.4l2.5 2.5a1 1 0 0 0 1.4-1.4L7.42 9H11a1 1 0 1 0 0-2H7.41l.8-.8ZM8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0ZM2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8Z"]),lu=V("PresenceOof20Regular","20",["M10.7 7.7A1 1 0 1 0 9.28 6.3l-3 3a1 1 0 0 0 0 1.41l3 3a1 1 0 1 0 1.42-1.41l-1.3-1.3H13a1 1 0 1 0 0-2H9.4l1.3-1.29ZM10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20ZM2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Z"]),cu=V("PresenceUnknown10Regular","10",["M5 1a4 4 0 1 0 0 8 4 4 0 0 0 0-8ZM0 5a5 5 0 1 1 10 0A5 5 0 0 1 0 5Z"]),Y0=V("PresenceUnknown12Regular","12",["M6 1.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9ZM0 6a6 6 0 1 1 12 0A6 6 0 0 1 0 6Z"]),J0=V("PresenceUnknown16Regular","16",["M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Z"]),uu=V("PresenceUnknown20Regular","20",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16ZM0 10a10 10 0 1 1 20 0 10 10 0 0 1-20 0Z"]),du=V("Search20Regular","20",["M12.73 13.44a6.5 6.5 0 1 1 .7-.7l3.42 3.4a.5.5 0 0 1-.63.77l-.07-.06-3.42-3.41Zm-.71-.71A5.54 5.54 0 0 0 14 8.5a5.5 5.5 0 1 0-1.98 4.23Z"]),e1=V("Square12Filled","12",["M2 4c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4Z"]),t1=V("Square16Filled","16",["M2 4.5A2.5 2.5 0 0 1 4.5 2h7A2.5 2.5 0 0 1 14 4.5v7a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 11.5v-7Z"]),r1=V("Warning12Filled","12",["M5.21 1.46a.9.9 0 0 1 1.58 0l4.09 7.17a.92.92 0 0 1-.79 1.37H1.91a.92.92 0 0 1-.79-1.37l4.1-7.17ZM5.5 4.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0ZM6 6.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"]),Ie={...{durationUltraFast:50,durationFaster:100,durationFast:150,durationNormal:200,durationGentle:250,durationSlow:300,durationSlower:400,durationUltraSlow:500},...{curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"}};function o1(e){if(e.playState==="running"){var r;if(e.overallProgress!==void 0){var t;const l=(t=e.overallProgress)!==null&&t!==void 0?t:0;return l>0&&l<1}var n;const o=Number((n=e.currentTime)!==null&&n!==void 0?n:0);var i;const s=Number((i=(r=e.effect)===null||r===void 0?void 0:r.getTiming().duration)!==null&&i!==void 0?i:0);return o>0&&o<s}return!1}const n1={fill:"forwards"},i1={duration:1};function fu(){var e;const r=typeof window<"u"&&typeof((e=window.Animation)===null||e===void 0?void 0:e.prototype.persist)=="function";return m.useCallback((t,n,i)=>{const o=Array.isArray(n)?n:[n],{isReducedMotion:s}=i,l=o.map(u=>{const{keyframes:a,reducedMotion:c=i1,...d}=u,{keyframes:g=a,...f}=c,h=s?g:a,v={...n1,...d,...s&&f};try{const p=t.animate(h,v);if(r)p==null||p.persist();else{const y=h[h.length-1];var b;Object.assign((b=t.style)!==null&&b!==void 0?b:{},y)}return p}catch{return null}}).filter(u=>!!u);return{set playbackRate(u){l.forEach(a=>{a.playbackRate=u})},setMotionEndCallbacks(u,a){const c=l.map(d=>new Promise((g,f)=>{d.onfinish=()=>g(),d.oncancel=()=>f()}));Promise.all(c).then(()=>{u()}).catch(()=>{a()})},isRunning(){return l.some(u=>o1(u))},cancel:()=>{l.forEach(u=>{u.cancel()})},pause:()=>{l.forEach(u=>{u.pause()})},play:()=>{l.forEach(u=>{u.play()})},finish:()=>{l.forEach(u=>{u.finish()})},reverse:()=>{l.forEach(u=>{u.reverse()})}}},[r])}function a1(){const[e,r]=m.useState(0),t=m.useRef(),n=fu();return m.useEffect(()=>{if(e>0){var i;(i=t.current)===null||i===void 0||i.call(t)}},[e]),m.useCallback((i,o,s)=>typeof i.animate=="function"?n(i,o,s):{setMotionEndCallbacks(u){t.current=u,r(a=>a+1)},set playbackRate(u){},isRunning(){return!1},cancel(){},pause(){},play(){},finish(){},reverse(){}},[n])}function hu(){"use no memo";return process.env.NODE_ENV==="test"?a1():fu()}function gu(e){const r=m.useRef();return m.useImperativeHandle(e,()=>({setPlayState:t=>{if(t==="running"){var n;(n=r.current)===null||n===void 0||n.play()}if(t==="paused"){var i;(i=r.current)===null||i===void 0||i.pause()}},setPlaybackRate:t=>{r.current&&(r.current.playbackRate=t)}})),r}const s1="screen and (prefers-reduced-motion: reduce)";function vu(){const{targetDocument:e}=_e();var r;const t=(r=e==null?void 0:e.defaultView)!==null&&r!==void 0?r:null,n=m.useRef(!1),i=m.useCallback(()=>n.current,[]);return Fe(()=>{if(t===null||typeof t.matchMedia!="function")return;const o=t.matchMedia(s1);o.matches&&(n.current=!0);const s=l=>{n.current=l.matches};return o.addEventListener("change",s),()=>{o.removeEventListener("change",s)}},[t]),i}const l1=m.version.startsWith("19."),mu=["@fluentui/react-motion: Invalid child element.",`
|
|
179
|
+
`,"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 c1(e){return l1?e.props.ref:e.ref}function pu(e,r=!0){const t=m.useRef(null);m.useEffect(()=>{process.env.NODE_ENV!=="production"&&r&&!t.current&&console.error(mu)},[r]);try{const n=m.Children.only(e);if(m.isValidElement(n))return[m.cloneElement(n,{ref:Ne(t,c1(n))}),t]}catch{}throw new Error(mu)}const bu=m.createContext(void 0);bu.Provider;const yu=()=>{var e;return(e=m.useContext(bu))!==null&&e!==void 0?e:"default"};function wu(e){return t=>{"use no memo";const{children:n,imperativeRef:i,onMotionFinish:o,onMotionStart:s,onMotionCancel:l,...u}=t,a=u,[c,d]=pu(n),g=gu(i),f=yu()==="skip",h=m.useRef({skipMotions:f,params:a}),v=hu(),b=vu(),p=ee(()=>{s==null||s(null)}),y=ee(()=>{o==null||o(null)}),k=ee(()=>{l==null||l(null)});return Fe(()=>{h.current={skipMotions:f,params:a}}),Fe(()=>{const w=d.current;if(w){const x=typeof e=="function"?e({element:w,...h.current.params}):e;p();const B=v(w,x,{isReducedMotion:b()});return g.current=B,B.setMotionEndCallbacks(y,k),h.current.skipMotions&&B.finish(),()=>{B.cancel()}}},[v,d,g,b,y,p,k]),c}}const ku=m.createContext(void 0);ku.Provider;function u1(e=!1,r=!1){const t=m.useRef(r?e:!0),n=Zm(),i=m.useCallback(o=>{t.current!==o&&(t.current=o,n())},[n]);return m.useEffect(()=>{e&&(t.current=e)}),[e||t.current,i]}const xu=Symbol("MOTION_DEFINITION"),d1=Symbol.for("interruptablePresence");function Dr(e){return Object.assign(r=>{"use no memo";const n={...m.useContext(ku),...r},i=yu()==="skip",{appear:o,children:s,imperativeRef:l,onExit:u,onMotionFinish:a,onMotionStart:c,onMotionCancel:d,visible:g,unmountOnExit:f,...h}=n,v=h,[b,p]=u1(g,f),[y,k]=pu(s,b),w=gu(l),x=m.useRef({appear:o,params:v,skipMotions:i}),B=hu(),S=Il(),C=vu(),E=ee(U=>{c==null||c(null,{direction:U})}),I=ee(U=>{a==null||a(null,{direction:U}),U==="exit"&&f&&(p(!1),u==null||u())}),$=ee(U=>{d==null||d(null,{direction:U})});return Fe(()=>{x.current={appear:o,params:v,skipMotions:i}}),Fe(()=>{const U=k.current;if(!U)return;let T;function A(){T&&(X&&T.isRunning()||(T.cancel(),w.current=void 0))}const G=typeof e=="function"?e({element:U,...x.current.params}):e,X=G[d1];if(X&&(T=w.current,T&&T.isRunning()))return T.reverse(),A;const Q=g?G.enter:G.exit,z=g?"enter":"exit",q=!x.current.appear&&S,W=x.current.skipMotions;return q||E(z),T=B(U,Q,{isReducedMotion:C()}),q?(T.finish(),A):(w.current=T,T.setMotionEndCallbacks(()=>I(z),()=>$(z)),W&&T.finish(),A)},[B,k,w,C,I,E,$,g]),b?y:null},{[xu]:typeof e=="function"?e:()=>e},{In:wu(typeof e=="function"?(...r)=>e(...r).enter:e.enter),Out:wu(typeof e=="function"?(...r)=>e(...r).exit:e.exit)})}function f1(e,r){return n=>e({...r,...n})}function _u(e,r){const t=e[xu],n=f1(t,r);return Dr(n)}function Ji(e,r){const{as:t,children:n,...i}=e??{};if(process.env.NODE_ENV!=="production"&&typeof t<"u")throw new Error('@fluentui/react-motion: "as" property is not supported on motion slots.');if(e===null){const s=!r.defaultProps.visible&&r.defaultProps.unmountOnExit,l=(u,a)=>s?null:m.createElement(m.Fragment,null,a.children);return{[Ho]:l,[Ft]:r.elementType}}const o={...r.defaultProps,...i,[Ft]:r.elementType};return typeof n=="function"&&(o[Ho]=n),o}const Su=({direction:e,duration:r,easing:t=Ie.curveLinear,fromOpacity:n=0})=>{const i=[{opacity:n},{opacity:1}];return e==="exit"&&i.reverse(),{keyframes:i,duration:r,easing:t}},Bu=Dr(({duration:e=Ie.durationNormal,easing:r=Ie.curveEasyEase,exitDuration:t=e,exitEasing:n=r})=>({enter:Su({direction:"enter",duration:e,easing:r}),exit:Su({direction:"exit",duration:t,easing:n})}));_u(Bu,{duration:Ie.durationFast});const h1=_u(Bu,{duration:Ie.durationGentle}),g1=e=>(ne(e),ye(e.root,{children:[e.initials&&F(e.initials,{}),e.icon&&F(e.icon,{}),e.image&&F(e.image,{}),e.badge&&F(e.badge,{}),e.activeAriaLabelElement]})),v1=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,m1=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,p1=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,b1=/\s+/g,y1=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function w1(e,r,t){let n="";const i=e.split(" ");return i.length!==0&&(n+=i[0].charAt(0).toUpperCase()),t||(i.length===2?n+=i[1].charAt(0).toUpperCase():i.length===3&&(n+=i[2].charAt(0).toUpperCase())),r&&n.length>1?n.charAt(1)+n.charAt(0):n}function k1(e){return e=e.replace(v1,""),e=e.replace(m1,""),e=e.replace(b1," "),e=e.trim(),e}function x1(e,r,t){return!e||(e=k1(e),y1.test(e)||!(t!=null&&t.allowPhoneInitials)&&p1.test(e))?"":w1(e,r,t==null?void 0:t.firstInitialOnly)}const _1=(e,r)=>{const{shape:t="circular",size:n="medium",iconPosition:i="before",appearance:o="filled",color:s="brand"}=e;return{shape:t,size:n,iconPosition:i,appearance:o,color:s,components:{root:"div",icon:"span"},root:J(de("div",{ref:r,...e}),{elementType:"div"}),icon:te(e.icon,{elementType:"span"})}},S1=e=>(ne(e),ye(e.root,{children:[e.iconPosition==="before"&&e.icon&&F(e.icon,{}),e.root.children,e.iconPosition==="after"&&e.icon&&F(e.icon,{})]})),B1={tiny:Xc,"extra-small":Xc,small:O0,medium:q0,large:Zc,"extra-large":Zc},C1={tiny:Gc,"extra-small":Gc,small:I0,medium:A0,large:Kc,"extra-large":Kc},P1={tiny:$c,"extra-small":$c,small:F0,medium:j0,large:Uc,"extra-large":Uc},T1={tiny:Qc,"extra-small":Qc,small:M0,medium:L0,large:Yc,"extra-large":Yc},E1={tiny:Jc,"extra-small":Jc,small:H0,medium:W0,large:eu,"extra-large":eu},N1={tiny:tu,"extra-small":tu,small:V0,medium:G0,large:ou,"extra-large":ou},R1={tiny:ru,"extra-small":ru,small:$0,medium:U0,large:nu,"extra-large":nu},ea={tiny:su,"extra-small":su,small:Z0,medium:Q0,large:lu,"extra-large":lu},z1={tiny:iu,"extra-small":iu,small:K0,medium:X0,large:au,"extra-large":au},Cu={tiny:cu,"extra-small":cu,small:Y0,medium:J0,large:uu,"extra-large":uu},D1=(e,r,t)=>{switch(e){case"available":return r?C1[t]:P1[t];case"away":return r?ea[t]:B1[t];case"blocked":return T1[t];case"busy":return r?Cu[t]:E1[t];case"do-not-disturb":return r?R1[t]:N1[t];case"offline":return r?ea[t]:z1[t];case"out-of-office":return ea[t];case"unknown":return Cu[t]}},Pu={busy:"busy","out-of-office":"out of office",away:"away",available:"available",offline:"offline","do-not-disturb":"do not disturb",unknown:"unknown",blocked:"blocked"},F1=(e,r)=>{const{size:t="medium",status:n="available",outOfOffice:i=!1}=e,o=Pu[n],s=e.outOfOffice&&e.status!=="out-of-office"?` ${Pu["out-of-office"]}`:"",l=D1(n,i,t);return{..._1({"aria-label":o+s,role:"img",...e,size:t,icon:te(e.icon,{defaultProps:{children:l?m.createElement(l,null):null},renderByDefault:!0,elementType:"span"})},r),status:n,outOfOffice:i}},Tu={root:"fui-PresenceBadge",icon:"fui-PresenceBadge__icon"},I1=e=>e==="busy"||e==="do-not-disturb"||e==="blocked",j1=ie("r832ydo",null,[".r832ydo{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;border-radius:var(--borderRadiusCircular);background-color:var(--colorNeutralBackground1);padding:1px;background-clip:content-box;}"]),A1=ie("r11ag4qr",null,[".r11ag4qr{display:flex;margin:-1px;}"]),O1=O({statusBusy:{sj55zd:"fvi85wt"},statusAway:{sj55zd:"f14k8a89"},statusAvailable:{sj55zd:"fqa5hgp"},statusOffline:{sj55zd:"f11d4kpn"},statusOutOfOffice:{sj55zd:"fdce8r3"},statusUnknown:{sj55zd:"f11d4kpn"},outOfOffice:{sj55zd:"fr0bkrk"},outOfOfficeAvailable:{sj55zd:"fqa5hgp"},outOfOfficeBusy:{sj55zd:"fvi85wt"},outOfOfficeUnknown:{sj55zd:"f11d4kpn"},tiny:{Bubjx69:"f9ikmtg",a9b677:"f16dn6v3",B2eet1l:"f1w2irj7",B5pe6w7:"fab5kbq",p4uzdd:"f1ms1d91"},large:{Bubjx69:"f9ikmtg",a9b677:"f64fuq3",B5pe6w7:"f1vfi1yj",p4uzdd:"f15s34gz"},extraLarge:{Bubjx69:"f9ikmtg",a9b677:"f1w9dchk",B5pe6w7:"f14efy9b",p4uzdd:"fhipgdu"}},{d:[".fvi85wt{color:var(--colorPaletteRedBackground3);}",".f14k8a89{color:var(--colorPaletteMarigoldBackground3);}",".fqa5hgp{color:var(--colorPaletteLightGreenForeground3);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".fdce8r3{color:var(--colorPaletteBerryForeground3);}",".fr0bkrk{color:var(--colorNeutralBackground1);}",".f9ikmtg{aspect-ratio:1;}",".f16dn6v3{width:6px;}",".f1w2irj7{background-clip:unset;}",".fab5kbq svg{width:6px!important;}",".f1ms1d91 svg{height:6px!important;}",".f64fuq3{width:20px;}",".f1vfi1yj svg{width:20px!important;}",".f15s34gz svg{height:20px!important;}",".f1w9dchk{width:28px;}",".f14efy9b svg{width:28px!important;}",".fhipgdu svg{height:28px!important;}"]}),q1=e=>{"use no memo";const r=j1(),t=A1(),n=O1(),i=I1(e.status);return e.root.className=N(Tu.root,r,i&&n.statusBusy,e.status==="away"&&n.statusAway,e.status==="available"&&n.statusAvailable,e.status==="offline"&&n.statusOffline,e.status==="out-of-office"&&n.statusOutOfOffice,e.status==="unknown"&&n.statusUnknown,e.outOfOffice&&n.outOfOffice,e.outOfOffice&&e.status==="available"&&n.outOfOfficeAvailable,e.outOfOffice&&i&&n.outOfOfficeBusy,e.outOfOffice&&(e.status==="out-of-office"||e.status==="away"||e.status==="offline")&&n.statusOutOfOffice,e.outOfOffice&&e.status==="unknown"&&n.outOfOfficeUnknown,e.size==="tiny"&&n.tiny,e.size==="large"&&n.large,e.size==="extra-large"&&n.extraLarge,e.root.className),e.icon&&(e.icon.className=N(Tu.icon,t,e.icon.className)),e},lo=m.forwardRef((e,r)=>{const t=F1(e,r);return q1(t),ae("usePresenceBadgeStyles_unstable")(t),S1(t)});lo.displayName="PresenceBadge";const Eu=m.createContext(void 0),M1={};Eu.Provider;const L1=()=>{var e;return(e=m.useContext(Eu))!==null&&e!==void 0?e:M1},H1={active:"active",inactive:"inactive"},W1=(e,r)=>{const{dir:t}=_e(),{shape:n,size:i}=L1(),{name:o,size:s=i??32,shape:l=n??"circular",active:u="unset",activeAppearance:a="ring",idForColor:c}=e;let{color:d="neutral"}=e;if(d==="colorful"){var g;d=Nu[$1((g=c??o)!==null&&g!==void 0?g:"")%Nu.length]}const f=Ge("avatar-"),h=J(de("span",{role:"img",id:f,...e,ref:r},["name"]),{elementType:"span"}),[v,b]=m.useState(void 0);let p=te(e.image,{defaultProps:{alt:"",role:"presentation","aria-hidden":!0,hidden:v},elementType:"img"});p!=null&&p.src||(p=void 0),p&&(p.onError=Re(p.onError,()=>b(!0)),p.onLoad=Re(p.onLoad,()=>b(void 0)));let y=te(e.initials,{renderByDefault:!0,defaultProps:{children:x1(o,t==="rtl",{firstInitialOnly:s<=16}),id:f+"__initials"},elementType:"span"});y!=null&&y.children||(y=void 0);let k;!y&&(!p||v)&&(k=te(e.icon,{renderByDefault:!0,defaultProps:{children:m.createElement(S0,null),"aria-hidden":!0},elementType:"span"}));const w=te(e.badge,{defaultProps:{size:V1(s),id:f+"__badge"},elementType:lo});let x;if(!h["aria-label"]&&!h["aria-labelledby"]&&(o?(h["aria-label"]=o,w&&(h["aria-labelledby"]=h.id+" "+w.id)):y&&(h["aria-labelledby"]=y.id+(w?" "+w.id:"")),u==="active"||u==="inactive")){const B=H1[u];if(h["aria-labelledby"]){const S=f+"__active";h["aria-labelledby"]+=" "+S,x=m.createElement("span",{hidden:!0,id:S},B)}else h["aria-label"]&&(h["aria-label"]+=" "+B)}return{size:s,shape:l,active:u,activeAppearance:a,activeAriaLabelElement:x,color:d,components:{root:"span",initials:"span",icon:"span",image:"img",badge:lo},root:h,initials:y,icon:k,image:p,badge:w}},V1=e=>e>=96?"extra-large":e>=64?"large":e>=56?"medium":e>=40?"small":e>=28?"extra-small":"tiny",Nu=["dark-red","cranberry","red","pumpkin","peach","marigold","gold","brass","brown","forest","seafoam","dark-green","light-teal","teal","steel","blue","royal-blue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],$1=e=>{let r=0;for(let t=e.length-1;t>=0;t--){const n=e.charCodeAt(t),i=t%8;r^=(n<<i)+(n>>8-i)}return r},co={root:"fui-Avatar",image:"fui-Avatar__image",initials:"fui-Avatar__initials",icon:"fui-Avatar__icon",badge:"fui-Avatar__badge"},G1=ie("r81b29z","r1aatmv",{r:[".r81b29z{display:inline-block;flex-shrink:0;position:relative;vertical-align:middle;border-radius:var(--borderRadiusCircular);font-family:var(--fontFamilyBase);font-weight:var(--fontWeightSemibold);font-size:var(--fontSizeBase300);width:32px;height:32px;}",".r81b29z::before,.r81b29z::after{position:absolute;top:0;left:0;bottom:0;right:0;z-index:-1;margin:calc(-2 * var(--fui-Avatar-ringWidth, 0px));border-radius:inherit;transition-property:margin,opacity;transition-timing-function:var(--curveEasyEaseMax),var(--curveLinear);transition-duration:var(--durationUltraSlow),var(--durationSlower);}",".r81b29z::before{border-style:solid;border-width:var(--fui-Avatar-ringWidth);}",".r1aatmv{display:inline-block;flex-shrink:0;position:relative;vertical-align:middle;border-radius:var(--borderRadiusCircular);font-family:var(--fontFamilyBase);font-weight:var(--fontWeightSemibold);font-size:var(--fontSizeBase300);width:32px;height:32px;}",".r1aatmv::before,.r1aatmv::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;margin:calc(-2 * var(--fui-Avatar-ringWidth, 0px));border-radius:inherit;transition-property:margin,opacity;transition-timing-function:var(--curveEasyEaseMax),var(--curveLinear);transition-duration:var(--durationUltraSlow),var(--durationSlower);}",".r1aatmv::before{border-style:solid;border-width:var(--fui-Avatar-ringWidth);}"],s:["@media screen and (prefers-reduced-motion: reduce){.r81b29z::before,.r81b29z::after{transition-duration:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1aatmv::before,.r1aatmv::after{transition-duration:0.01ms;}}"]}),U1=ie("r136dc0n","rjly0nl",[".r136dc0n{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;object-fit:cover;vertical-align:top;}",".rjly0nl{position:absolute;top:0;right:0;width:100%;height:100%;border-radius:inherit;object-fit:cover;vertical-align:top;}"]),K1=ie("rip04v","r31uzil",[".rip04v{position:absolute;box-sizing:border-box;top:0;left:0;width:100%;height:100%;line-height:1;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);display:flex;align-items:center;justify-content:center;vertical-align:center;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:inherit;}",".r31uzil{position:absolute;box-sizing:border-box;top:0;right:0;width:100%;height:100%;line-height:1;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);display:flex;align-items:center;justify-content:center;vertical-align:center;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:inherit;}"]),X1=O({textCaption2Strong:{Be2twd7:"f13mqy1h"},textCaption1Strong:{Be2twd7:"fy9rknc"},textSubtitle2:{Be2twd7:"fod5ikn"},textSubtitle1:{Be2twd7:"f1pp30po"},textTitle3:{Be2twd7:"f1x0m3f5"},squareSmall:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fq9zq91"},squareMedium:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5"},squareLarge:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1o0qvyv"},squareXLarge:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1kijzfu"},activeOrInactive:{Bz10aip:"ftfx35i",Bmy1vo4:"fv0atk9",B3o57yi:"f1iry5bo",Bkqvd7p:"f15n41j8",Hwfdqs:"f1onx1g3"},ring:{Ftih45:"f1wl9k8s"},ringBadgeCutout:{f4a502:"fp2gujx"},ringThick:{of393c:"fq1w1vq"},ringThicker:{of393c:"fzg6ace"},ringThickest:{of393c:"f1nu8p71"},shadow:{Bsft5z2:"f13zj6fq"},shadow4:{Be6vj1x:"fcjn15l"},shadow8:{Be6vj1x:"f1tm8t9f"},shadow16:{Be6vj1x:"f1a1aohj"},shadow28:{Be6vj1x:"fond6v5"},inactive:{abs64n:"fp25eh",Bz10aip:"f1clczzi",Bkqvd7p:"f1l3s34x",Bfgortx:0,Bnvr3x9:0,b2tv09:0,Bucmhp4:0,iayac2:"flkahu5",b6ubon:"fw457kn",Bqinb2h:"f1wmllxl"},badge:{qhf8xq:"f1euv43f",B5kzvoi:"f1yab3r1",j35jbq:["f1e31b4d","f1vgc2s3"]},badgeCutout:{btxmck:"f1eugkqs"},badgeAlign:{Dnlfbu:["f1tlnv9o","f1y9kyih"]},tiny:{Bdjeniz:"f1uwoubl",niu6jh:"fid048z"},"extra-small":{Bdjeniz:"f13ar0e0",niu6jh:"fid048z"},small:{Bdjeniz:"fwwuruf",niu6jh:"fid048z"},medium:{Bdjeniz:"f1af27q5",niu6jh:"fid048z"},large:{Bdjeniz:"f18yy57a",niu6jh:"f924bxt"},"extra-large":{Bdjeniz:"f2jg042",niu6jh:"f924bxt"},icon12:{Be2twd7:"f1ugzwwg"},icon16:{Be2twd7:"f4ybsrx"},icon20:{Be2twd7:"fe5j1ua"},icon24:{Be2twd7:"f1rt2boy"},icon28:{Be2twd7:"f24l1pt"},icon32:{Be2twd7:"ffl51b"},icon48:{Be2twd7:"f18m8u13"}},{d:[".f13mqy1h{font-size:var(--fontSizeBase100);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",[".fq9zq91{border-radius:var(--borderRadiusSmall);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f1o0qvyv{border-radius:var(--borderRadiusLarge);}",{p:-1}],[".f1kijzfu{border-radius:var(--borderRadiusXLarge);}",{p:-1}],".ftfx35i{transform:perspective(1px);}",".fv0atk9{transition-property:transform,opacity;}",".f1iry5bo{transition-duration:var(--durationUltraSlow),var(--durationFaster);}",".f15n41j8{transition-timing-function:var(--curveEasyEaseMax),var(--curveLinear);}",'.f1wl9k8s::before{content:"";}',".fp2gujx::before{-webkit-mask-image:radial-gradient(circle at bottom calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)) var(--fui-Avatar-badgeAlign) calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));mask-image:radial-gradient(circle at bottom calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)) var(--fui-Avatar-badgeAlign) calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));}",".fq1w1vq{--fui-Avatar-ringWidth:var(--strokeWidthThick);}",".fzg6ace{--fui-Avatar-ringWidth:var(--strokeWidthThicker);}",".f1nu8p71{--fui-Avatar-ringWidth:var(--strokeWidthThickest);}",'.f13zj6fq::after{content:"";}',".fcjn15l::after{box-shadow:var(--shadow4);}",".f1tm8t9f::after{box-shadow:var(--shadow8);}",".f1a1aohj::after{box-shadow:var(--shadow16);}",".fond6v5::after{box-shadow:var(--shadow28);}",".fp25eh{opacity:0.8;}",".f1clczzi{transform:scale(0.875);}",".f1l3s34x{transition-timing-function:var(--curveDecelerateMin),var(--curveLinear);}",[".flkahu5::before,.flkahu5::after{margin:0;}",{p:-1}],".fw457kn::before,.fw457kn::after{opacity:0;}",".f1wmllxl::before,.f1wmllxl::after{transition-timing-function:var(--curveDecelerateMin),var(--curveLinear);}",".f1euv43f{position:absolute;}",".f1yab3r1{bottom:0;}",".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f1eugkqs{-webkit-mask-image:radial-gradient(circle at bottom var(--fui-Avatar-badgeRadius) var(--fui-Avatar-badgeAlign) var(--fui-Avatar-badgeRadius), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));mask-image:radial-gradient(circle at bottom var(--fui-Avatar-badgeRadius) var(--fui-Avatar-badgeAlign) var(--fui-Avatar-badgeRadius), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));}",".f1tlnv9o{--fui-Avatar-badgeAlign:right;}",".f1y9kyih{--fui-Avatar-badgeAlign:left;}",".f1uwoubl{--fui-Avatar-badgeRadius:3px;}",".fid048z{--fui-Avatar-badgeGap:var(--strokeWidthThin);}",".f13ar0e0{--fui-Avatar-badgeRadius:5px;}",".fwwuruf{--fui-Avatar-badgeRadius:6px;}",".f1af27q5{--fui-Avatar-badgeRadius:8px;}",".f18yy57a{--fui-Avatar-badgeRadius:10px;}",".f924bxt{--fui-Avatar-badgeGap:var(--strokeWidthThick);}",".f2jg042{--fui-Avatar-badgeRadius:14px;}",".f1ugzwwg{font-size:12px;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f24l1pt{font-size:28px;}",".ffl51b{font-size:32px;}",".f18m8u13{font-size:48px;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1onx1g3{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),Z1=O({16:{a9b677:"fjw5fx7",Bqenvij:"fd461yt"},20:{a9b677:"f64fuq3",Bqenvij:"fjamq6b"},24:{a9b677:"fq4mcun",Bqenvij:"frvgh55"},28:{a9b677:"f1w9dchk",Bqenvij:"fxldao9"},32:{a9b677:"f1szoe96",Bqenvij:"f1d2rq10"},36:{a9b677:"fpdz1er",Bqenvij:"f8ljn23"},40:{a9b677:"feqmc2u",Bqenvij:"fbhnoac"},48:{a9b677:"f124akge",Bqenvij:"ff2sm71"},56:{a9b677:"f1u66zr1",Bqenvij:"fzki0ko"},64:{a9b677:"fa9ln6p",Bqenvij:"f16k9i2m"},72:{a9b677:"fhcae8x",Bqenvij:"f1shusfg"},96:{a9b677:"f1kyr2gn",Bqenvij:"fypu0ge"},120:{a9b677:"fwfqyga",Bqenvij:"fjr5b71"},128:{a9b677:"f1iksgmy",Bqenvij:"fele2au"}},{d:[".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".f64fuq3{width:20px;}",".fjamq6b{height:20px;}",".fq4mcun{width:24px;}",".frvgh55{height:24px;}",".f1w9dchk{width:28px;}",".fxldao9{height:28px;}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}",".fpdz1er{width:36px;}",".f8ljn23{height:36px;}",".feqmc2u{width:40px;}",".fbhnoac{height:40px;}",".f124akge{width:48px;}",".ff2sm71{height:48px;}",".f1u66zr1{width:56px;}",".fzki0ko{height:56px;}",".fa9ln6p{width:64px;}",".f16k9i2m{height:64px;}",".fhcae8x{width:72px;}",".f1shusfg{height:72px;}",".f1kyr2gn{width:96px;}",".fypu0ge{height:96px;}",".fwfqyga{width:120px;}",".fjr5b71{height:120px;}",".f1iksgmy{width:128px;}",".fele2au{height:128px;}"]}),Q1=O({neutral:{sj55zd:"f11d4kpn",De3pzq:"f18f03hv"},brand:{sj55zd:"fonrgv7",De3pzq:"f1blnnmj"},"dark-red":{sj55zd:"fqjd1y1",De3pzq:"f1vq2oo4"},cranberry:{sj55zd:"fg9gses",De3pzq:"f1lwxszt"},red:{sj55zd:"f23f7i0",De3pzq:"f1q9qhfq"},pumpkin:{sj55zd:"fjnan08",De3pzq:"fz91bi3"},peach:{sj55zd:"fknu15p",De3pzq:"f1b9nr51"},marigold:{sj55zd:"f9603vw",De3pzq:"f3z4w6d"},gold:{sj55zd:"fmq0uwp",De3pzq:"fg50kya"},brass:{sj55zd:"f28g5vo",De3pzq:"f4w2gd0"},brown:{sj55zd:"ftl572b",De3pzq:"f14wu1f4"},forest:{sj55zd:"f1gymlvd",De3pzq:"f19ut4y6"},seafoam:{sj55zd:"fnnb6wn",De3pzq:"f1n057jc"},"dark-green":{sj55zd:"ff58qw8",De3pzq:"f11t05wk"},"light-teal":{sj55zd:"f1up9qbj",De3pzq:"f42feg1"},teal:{sj55zd:"f135dsb4",De3pzq:"f6hvv1p"},steel:{sj55zd:"f151dlcp",De3pzq:"f1lnp8zf"},blue:{sj55zd:"f1rjv50u",De3pzq:"f1ggcpy6"},"royal-blue":{sj55zd:"f1emykk5",De3pzq:"f12rj61f"},cornflower:{sj55zd:"fqsigj7",De3pzq:"f8k7hur"},navy:{sj55zd:"f1nj97xi",De3pzq:"f19gw0ux"},lavender:{sj55zd:"fwctg0i",De3pzq:"ff379vm"},purple:{sj55zd:"fjrsgpu",De3pzq:"f1mzf1e1"},grape:{sj55zd:"f1fiiydq",De3pzq:"f1o4k8oy"},lilac:{sj55zd:"f1res9jt",De3pzq:"f1x6mz1o"},pink:{sj55zd:"fv3fbbi",De3pzq:"fydlv6t"},magenta:{sj55zd:"f1f1fwnz",De3pzq:"f4xb6j5"},plum:{sj55zd:"f8ptl6j",De3pzq:"fqo8e26"},beige:{sj55zd:"f1ntv3ld",De3pzq:"f101elhj"},mink:{sj55zd:"f1fscmp",De3pzq:"f13g8o5c"},platinum:{sj55zd:"f1dr00v2",De3pzq:"fkh7blw"},anchor:{sj55zd:"f1f3ti53",De3pzq:"fu4yj0j"}},{d:[".f11d4kpn{color:var(--colorNeutralForeground3);}",".f18f03hv{background-color:var(--colorNeutralBackground6);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1blnnmj{background-color:var(--colorBrandBackgroundStatic);}",".fqjd1y1{color:var(--colorPaletteDarkRedForeground2);}",".f1vq2oo4{background-color:var(--colorPaletteDarkRedBackground2);}",".fg9gses{color:var(--colorPaletteCranberryForeground2);}",".f1lwxszt{background-color:var(--colorPaletteCranberryBackground2);}",".f23f7i0{color:var(--colorPaletteRedForeground2);}",".f1q9qhfq{background-color:var(--colorPaletteRedBackground2);}",".fjnan08{color:var(--colorPalettePumpkinForeground2);}",".fz91bi3{background-color:var(--colorPalettePumpkinBackground2);}",".fknu15p{color:var(--colorPalettePeachForeground2);}",".f1b9nr51{background-color:var(--colorPalettePeachBackground2);}",".f9603vw{color:var(--colorPaletteMarigoldForeground2);}",".f3z4w6d{background-color:var(--colorPaletteMarigoldBackground2);}",".fmq0uwp{color:var(--colorPaletteGoldForeground2);}",".fg50kya{background-color:var(--colorPaletteGoldBackground2);}",".f28g5vo{color:var(--colorPaletteBrassForeground2);}",".f4w2gd0{background-color:var(--colorPaletteBrassBackground2);}",".ftl572b{color:var(--colorPaletteBrownForeground2);}",".f14wu1f4{background-color:var(--colorPaletteBrownBackground2);}",".f1gymlvd{color:var(--colorPaletteForestForeground2);}",".f19ut4y6{background-color:var(--colorPaletteForestBackground2);}",".fnnb6wn{color:var(--colorPaletteSeafoamForeground2);}",".f1n057jc{background-color:var(--colorPaletteSeafoamBackground2);}",".ff58qw8{color:var(--colorPaletteDarkGreenForeground2);}",".f11t05wk{background-color:var(--colorPaletteDarkGreenBackground2);}",".f1up9qbj{color:var(--colorPaletteLightTealForeground2);}",".f42feg1{background-color:var(--colorPaletteLightTealBackground2);}",".f135dsb4{color:var(--colorPaletteTealForeground2);}",".f6hvv1p{background-color:var(--colorPaletteTealBackground2);}",".f151dlcp{color:var(--colorPaletteSteelForeground2);}",".f1lnp8zf{background-color:var(--colorPaletteSteelBackground2);}",".f1rjv50u{color:var(--colorPaletteBlueForeground2);}",".f1ggcpy6{background-color:var(--colorPaletteBlueBackground2);}",".f1emykk5{color:var(--colorPaletteRoyalBlueForeground2);}",".f12rj61f{background-color:var(--colorPaletteRoyalBlueBackground2);}",".fqsigj7{color:var(--colorPaletteCornflowerForeground2);}",".f8k7hur{background-color:var(--colorPaletteCornflowerBackground2);}",".f1nj97xi{color:var(--colorPaletteNavyForeground2);}",".f19gw0ux{background-color:var(--colorPaletteNavyBackground2);}",".fwctg0i{color:var(--colorPaletteLavenderForeground2);}",".ff379vm{background-color:var(--colorPaletteLavenderBackground2);}",".fjrsgpu{color:var(--colorPalettePurpleForeground2);}",".f1mzf1e1{background-color:var(--colorPalettePurpleBackground2);}",".f1fiiydq{color:var(--colorPaletteGrapeForeground2);}",".f1o4k8oy{background-color:var(--colorPaletteGrapeBackground2);}",".f1res9jt{color:var(--colorPaletteLilacForeground2);}",".f1x6mz1o{background-color:var(--colorPaletteLilacBackground2);}",".fv3fbbi{color:var(--colorPalettePinkForeground2);}",".fydlv6t{background-color:var(--colorPalettePinkBackground2);}",".f1f1fwnz{color:var(--colorPaletteMagentaForeground2);}",".f4xb6j5{background-color:var(--colorPaletteMagentaBackground2);}",".f8ptl6j{color:var(--colorPalettePlumForeground2);}",".fqo8e26{background-color:var(--colorPalettePlumBackground2);}",".f1ntv3ld{color:var(--colorPaletteBeigeForeground2);}",".f101elhj{background-color:var(--colorPaletteBeigeBackground2);}",".f1fscmp{color:var(--colorPaletteMinkForeground2);}",".f13g8o5c{background-color:var(--colorPaletteMinkBackground2);}",".f1dr00v2{color:var(--colorPalettePlatinumForeground2);}",".fkh7blw{background-color:var(--colorPalettePlatinumBackground2);}",".f1f3ti53{color:var(--colorPaletteAnchorForeground2);}",".fu4yj0j{background-color:var(--colorPaletteAnchorBackground2);}"]}),Y1=O({neutral:{Bic5iru:"f1uuiafn"},brand:{Bic5iru:"f1uuiafn"},"dark-red":{Bic5iru:"f1t2x9on"},cranberry:{Bic5iru:"f1pvshc9"},red:{Bic5iru:"f1ectbk9"},pumpkin:{Bic5iru:"fvzpl0b"},peach:{Bic5iru:"fwj2kd7"},marigold:{Bic5iru:"fr120vy"},gold:{Bic5iru:"f8xmmar"},brass:{Bic5iru:"f1hbety2"},brown:{Bic5iru:"f1vg3s4g"},forest:{Bic5iru:"f1m3olm5"},seafoam:{Bic5iru:"f17xiqtr"},"dark-green":{Bic5iru:"fx32vyh"},"light-teal":{Bic5iru:"f1mkihwv"},teal:{Bic5iru:"fecnooh"},steel:{Bic5iru:"f15hfgzm"},blue:{Bic5iru:"fqproka"},"royal-blue":{Bic5iru:"f17v2w59"},cornflower:{Bic5iru:"fp0q1mo"},navy:{Bic5iru:"f1nlym55"},lavender:{Bic5iru:"f62vk8h"},purple:{Bic5iru:"f15zl69q"},grape:{Bic5iru:"f53w4j7"},lilac:{Bic5iru:"fu2771t"},pink:{Bic5iru:"fzflscs"},magenta:{Bic5iru:"fb6rmqc"},plum:{Bic5iru:"f1a4gm5b"},beige:{Bic5iru:"f1qpf9z1"},mink:{Bic5iru:"f1l7or83"},platinum:{Bic5iru:"fzrj0iu"},anchor:{Bic5iru:"f8oz6wf"}},{d:[".f1uuiafn::before{color:var(--colorBrandStroke1);}",".f1t2x9on::before{color:var(--colorPaletteDarkRedBorderActive);}",".f1pvshc9::before{color:var(--colorPaletteCranberryBorderActive);}",".f1ectbk9::before{color:var(--colorPaletteRedBorderActive);}",".fvzpl0b::before{color:var(--colorPalettePumpkinBorderActive);}",".fwj2kd7::before{color:var(--colorPalettePeachBorderActive);}",".fr120vy::before{color:var(--colorPaletteMarigoldBorderActive);}",".f8xmmar::before{color:var(--colorPaletteGoldBorderActive);}",".f1hbety2::before{color:var(--colorPaletteBrassBorderActive);}",".f1vg3s4g::before{color:var(--colorPaletteBrownBorderActive);}",".f1m3olm5::before{color:var(--colorPaletteForestBorderActive);}",".f17xiqtr::before{color:var(--colorPaletteSeafoamBorderActive);}",".fx32vyh::before{color:var(--colorPaletteDarkGreenBorderActive);}",".f1mkihwv::before{color:var(--colorPaletteLightTealBorderActive);}",".fecnooh::before{color:var(--colorPaletteTealBorderActive);}",".f15hfgzm::before{color:var(--colorPaletteSteelBorderActive);}",".fqproka::before{color:var(--colorPaletteBlueBorderActive);}",".f17v2w59::before{color:var(--colorPaletteRoyalBlueBorderActive);}",".fp0q1mo::before{color:var(--colorPaletteCornflowerBorderActive);}",".f1nlym55::before{color:var(--colorPaletteNavyBorderActive);}",".f62vk8h::before{color:var(--colorPaletteLavenderBorderActive);}",".f15zl69q::before{color:var(--colorPalettePurpleBorderActive);}",".f53w4j7::before{color:var(--colorPaletteGrapeBorderActive);}",".fu2771t::before{color:var(--colorPaletteLilacBorderActive);}",".fzflscs::before{color:var(--colorPalettePinkBorderActive);}",".fb6rmqc::before{color:var(--colorPaletteMagentaBorderActive);}",".f1a4gm5b::before{color:var(--colorPalettePlumBorderActive);}",".f1qpf9z1::before{color:var(--colorPaletteBeigeBorderActive);}",".f1l7or83::before{color:var(--colorPaletteMinkBorderActive);}",".fzrj0iu::before{color:var(--colorPalettePlatinumBorderActive);}",".f8oz6wf::before{color:var(--colorPaletteAnchorBorderActive);}"]}),J1=e=>{"use no memo";const{size:r,shape:t,active:n,activeAppearance:i,color:o}=e,s=G1(),l=U1(),u=K1(),a=X1(),c=Z1(),d=Q1(),g=Y1(),f=[s,r!==32&&c[r]];if(e.badge&&f.push(a.badgeAlign,a[e.badge.size||"medium"]),r<=24?f.push(a.textCaption2Strong):r<=28?f.push(a.textCaption1Strong):r<=40||(r<=56?f.push(a.textSubtitle2):r<=96?f.push(a.textSubtitle1):f.push(a.textTitle3)),t==="square"&&(r<=24?f.push(a.squareSmall):r<=48?f.push(a.squareMedium):r<=72?f.push(a.squareLarge):f.push(a.squareXLarge)),(n==="active"||n==="inactive")&&(f.push(a.activeOrInactive),(i==="ring"||i==="ring-shadow")&&(f.push(a.ring,g[o]),e.badge&&f.push(a.ringBadgeCutout),r<=48?f.push(a.ringThick):r<=64?f.push(a.ringThicker):f.push(a.ringThickest)),(i==="shadow"||i==="ring-shadow")&&(f.push(a.shadow),r<=28?f.push(a.shadow4):r<=48?f.push(a.shadow8):r<=64?f.push(a.shadow16):f.push(a.shadow28)),n==="inactive"&&f.push(a.inactive)),e.root.className=N(co.root,...f,e.root.className),e.badge&&(e.badge.className=N(co.badge,a.badge,e.badge.className)),e.image&&(e.image.className=N(co.image,l,d[o],e.badge&&a.badgeCutout,e.image.className)),e.initials&&(e.initials.className=N(co.initials,u,d[o],e.badge&&a.badgeCutout,e.initials.className)),e.icon){let h;r<=16?h=a.icon12:r<=24?h=a.icon16:r<=40?h=a.icon20:r<=48?h=a.icon24:r<=56?h=a.icon28:r<=72?h=a.icon32:h=a.icon48,e.icon.className=N(co.icon,u,h,d[o],e.badge&&a.badgeCutout,e.icon.className)}return e},ta=m.forwardRef((e,r)=>{const t=W1(e,r);return J1(t),ae("useAvatarStyles_unstable")(t),g1(t)});ta.displayName="Avatar";const Ru="data-popper-is-intersecting",zu="data-popper-escaped",Du="data-popper-reference-hidden",ey="data-popper-placement",ra="fui-positioningend",ty=({options:e})=>e,Fu=m.createContext(void 0);Fu.Provider;const ry=()=>{var e;return(e=m.useContext(Fu))!==null&&e!==void 0?e:ty},oy=["top","right","bottom","left"],or=Math.min,tt=Math.max,tn=Math.round,vt=e=>({x:e,y:e}),ny={left:"right",right:"left",bottom:"top",top:"bottom"},iy={start:"end",end:"start"};function oa(e,r,t){return tt(e,or(r,t))}function xt(e,r){return typeof e=="function"?e(r):e}function _t(e){return e.split("-")[0]}function Fr(e){return e.split("-")[1]}function na(e){return e==="x"?"y":"x"}function ia(e){return e==="y"?"height":"width"}const ay=new Set(["top","bottom"]);function mt(e){return ay.has(_t(e))?"y":"x"}function aa(e){return na(mt(e))}function sy(e,r,t){t===void 0&&(t=!1);const n=Fr(e),i=aa(e),o=ia(i);let s=i==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return r.reference[o]>r.floating[o]&&(s=rn(s)),[s,rn(s)]}function ly(e){const r=rn(e);return[sa(e),r,sa(r)]}function sa(e){return e.replace(/start|end/g,r=>iy[r])}const Iu=["left","right"],ju=["right","left"],cy=["top","bottom"],uy=["bottom","top"];function dy(e,r,t){switch(e){case"top":case"bottom":return t?r?ju:Iu:r?Iu:ju;case"left":case"right":return r?cy:uy;default:return[]}}function fy(e,r,t,n){const i=Fr(e);let o=dy(_t(e),t==="start",n);return i&&(o=o.map(s=>s+"-"+i),r&&(o=o.concat(o.map(sa)))),o}function rn(e){return e.replace(/left|right|bottom|top/g,r=>ny[r])}function hy(e){return{top:0,right:0,bottom:0,left:0,...e}}function Au(e){return typeof e!="number"?hy(e):{top:e,right:e,bottom:e,left:e}}function on(e){const{x:r,y:t,width:n,height:i}=e;return{width:n,height:i,top:t,left:r,right:r+n,bottom:t+i,x:r,y:t}}function Ou(e,r,t){let{reference:n,floating:i}=e;const o=mt(r),s=aa(r),l=ia(s),u=_t(r),a=o==="y",c=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,g=n[l]/2-i[l]/2;let f;switch(u){case"top":f={x:c,y:n.y-i.height};break;case"bottom":f={x:c,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:d};break;case"left":f={x:n.x-i.width,y:d};break;default:f={x:n.x,y:n.y}}switch(Fr(r)){case"start":f[s]-=g*(t&&a?-1:1);break;case"end":f[s]+=g*(t&&a?-1:1);break}return f}const gy=async(e,r,t)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=t,l=o.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(r));let a=await s.getElementRects({reference:e,floating:r,strategy:i}),{x:c,y:d}=Ou(a,n,u),g=n,f={},h=0;for(let v=0;v<l.length;v++){const{name:b,fn:p}=l[v],{x:y,y:k,data:w,reset:x}=await p({x:c,y:d,initialPlacement:n,placement:g,strategy:i,middlewareData:f,rects:a,platform:s,elements:{reference:e,floating:r}});c=y??c,d=k??d,f={...f,[b]:{...f[b],...w}},x&&h<=50&&(h++,typeof x=="object"&&(x.placement&&(g=x.placement),x.rects&&(a=x.rects===!0?await s.getElementRects({reference:e,floating:r,strategy:i}):x.rects),{x:c,y:d}=Ou(a,g,u)),v=-1)}return{x:c,y:d,placement:g,strategy:i,middlewareData:f}};async function Ir(e,r){var t;r===void 0&&(r={});const{x:n,y:i,platform:o,rects:s,elements:l,strategy:u}=e,{boundary:a="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:g=!1,padding:f=0}=xt(r,e),h=Au(f),b=l[g?d==="floating"?"reference":"floating":d],p=on(await o.getClippingRect({element:(t=await(o.isElement==null?void 0:o.isElement(b)))==null||t?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:a,rootBoundary:c,strategy:u})),y=d==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,k=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),w=await(o.isElement==null?void 0:o.isElement(k))?await(o.getScale==null?void 0:o.getScale(k))||{x:1,y:1}:{x:1,y:1},x=on(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:k,strategy:u}):y);return{top:(p.top-x.top+h.top)/w.y,bottom:(x.bottom-p.bottom+h.bottom)/w.y,left:(p.left-x.left+h.left)/w.x,right:(x.right-p.right+h.right)/w.x}}const vy=e=>({name:"arrow",options:e,async fn(r){const{x:t,y:n,placement:i,rects:o,platform:s,elements:l,middlewareData:u}=r,{element:a,padding:c=0}=xt(e,r)||{};if(a==null)return{};const d=Au(c),g={x:t,y:n},f=aa(i),h=ia(f),v=await s.getDimensions(a),b=f==="y",p=b?"top":"left",y=b?"bottom":"right",k=b?"clientHeight":"clientWidth",w=o.reference[h]+o.reference[f]-g[f]-o.floating[h],x=g[f]-o.reference[f],B=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let S=B?B[k]:0;(!S||!await(s.isElement==null?void 0:s.isElement(B)))&&(S=l.floating[k]||o.floating[h]);const C=w/2-x/2,E=S/2-v[h]/2-1,I=or(d[p],E),$=or(d[y],E),U=I,T=S-v[h]-$,A=S/2-v[h]/2+C,G=oa(U,A,T),X=!u.arrow&&Fr(i)!=null&&A!==G&&o.reference[h]/2-(A<U?I:$)-v[h]/2<0,Q=X?A<U?A-U:A-T:0;return{[f]:g[f]+Q,data:{[f]:G,centerOffset:A-G-Q,...X&&{alignmentOffset:Q}},reset:X}}}),my=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var t,n;const{placement:i,middlewareData:o,rects:s,initialPlacement:l,platform:u,elements:a}=r,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:g,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...b}=xt(e,r);if((t=o.arrow)!=null&&t.alignmentOffset)return{};const p=_t(i),y=mt(l),k=_t(l)===l,w=await(u.isRTL==null?void 0:u.isRTL(a.floating)),x=g||(k||!v?[rn(l)]:ly(l)),B=h!=="none";!g&&B&&x.push(...fy(l,v,h,w));const S=[l,...x],C=await Ir(r,b),E=[];let I=((n=o.flip)==null?void 0:n.overflows)||[];if(c&&E.push(C[p]),d){const A=sy(i,s,w);E.push(C[A[0]],C[A[1]])}if(I=[...I,{placement:i,overflows:E}],!E.every(A=>A<=0)){var $,U;const A=((($=o.flip)==null?void 0:$.index)||0)+1,G=S[A];if(G&&(!(d==="alignment"?y!==mt(G):!1)||I.every(z=>mt(z.placement)===y?z.overflows[0]>0:!0)))return{data:{index:A,overflows:I},reset:{placement:G}};let X=(U=I.filter(Q=>Q.overflows[0]<=0).sort((Q,z)=>Q.overflows[1]-z.overflows[1])[0])==null?void 0:U.placement;if(!X)switch(f){case"bestFit":{var T;const Q=(T=I.filter(z=>{if(B){const q=mt(z.placement);return q===y||q==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(q=>q>0).reduce((q,W)=>q+W,0)]).sort((z,q)=>z[1]-q[1])[0])==null?void 0:T[0];Q&&(X=Q);break}case"initialPlacement":X=l;break}if(i!==X)return{reset:{placement:X}}}return{}}}};function qu(e,r){return{top:e.top-r.height,right:e.right-r.width,bottom:e.bottom-r.height,left:e.left-r.width}}function Mu(e){return oy.some(r=>e[r]>=0)}const py=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(r){const{rects:t}=r,{strategy:n="referenceHidden",...i}=xt(e,r);switch(n){case"referenceHidden":{const o=await Ir(r,{...i,elementContext:"reference"}),s=qu(o,t.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Mu(s)}}}case"escaped":{const o=await Ir(r,{...i,altBoundary:!0}),s=qu(o,t.floating);return{data:{escapedOffsets:s,escaped:Mu(s)}}}default:return{}}}}},Lu=new Set(["left","top"]);async function by(e,r){const{placement:t,platform:n,elements:i}=e,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=_t(t),l=Fr(t),u=mt(t)==="y",a=Lu.has(s)?-1:1,c=o&&u?-1:1,d=xt(r,e);let{mainAxis:g,crossAxis:f,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof h=="number"&&(f=l==="end"?h*-1:h),u?{x:f*c,y:g*a}:{x:g*a,y:f*c}}const yy=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var t,n;const{x:i,y:o,placement:s,middlewareData:l}=r,u=await by(r,e);return s===((t=l.offset)==null?void 0:t.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:i+u.x,y:o+u.y,data:{...u,placement:s}}}}},wy=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:t,y:n,placement:i}=r,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:b=>{let{x:p,y}=b;return{x:p,y}}},...u}=xt(e,r),a={x:t,y:n},c=await Ir(r,u),d=mt(_t(i)),g=na(d);let f=a[g],h=a[d];if(o){const b=g==="y"?"top":"left",p=g==="y"?"bottom":"right",y=f+c[b],k=f-c[p];f=oa(y,f,k)}if(s){const b=d==="y"?"top":"left",p=d==="y"?"bottom":"right",y=h+c[b],k=h-c[p];h=oa(y,h,k)}const v=l.fn({...r,[g]:f,[d]:h});return{...v,data:{x:v.x-t,y:v.y-n,enabled:{[g]:o,[d]:s}}}}}},ky=function(e){return e===void 0&&(e={}),{options:e,fn(r){const{x:t,y:n,placement:i,rects:o,middlewareData:s}=r,{offset:l=0,mainAxis:u=!0,crossAxis:a=!0}=xt(e,r),c={x:t,y:n},d=mt(i),g=na(d);let f=c[g],h=c[d];const v=xt(l,r),b=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const k=g==="y"?"height":"width",w=o.reference[g]-o.floating[k]+b.mainAxis,x=o.reference[g]+o.reference[k]-b.mainAxis;f<w?f=w:f>x&&(f=x)}if(a){var p,y;const k=g==="y"?"width":"height",w=Lu.has(_t(i)),x=o.reference[d]-o.floating[k]+(w&&((p=s.offset)==null?void 0:p[d])||0)+(w?0:b.crossAxis),B=o.reference[d]+o.reference[k]+(w?0:((y=s.offset)==null?void 0:y[d])||0)-(w?b.crossAxis:0);h<x?h=x:h>B&&(h=B)}return{[g]:f,[d]:h}}}},xy=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(r){var t,n;const{placement:i,rects:o,platform:s,elements:l}=r,{apply:u=()=>{},...a}=xt(e,r),c=await Ir(r,a),d=_t(i),g=Fr(i),f=mt(i)==="y",{width:h,height:v}=o.floating;let b,p;d==="top"||d==="bottom"?(b=d,p=g===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(p=d,b=g==="end"?"top":"bottom");const y=v-c.top-c.bottom,k=h-c.left-c.right,w=or(v-c[b],y),x=or(h-c[p],k),B=!r.middlewareData.shift;let S=w,C=x;if((t=r.middlewareData.shift)!=null&&t.enabled.x&&(C=k),(n=r.middlewareData.shift)!=null&&n.enabled.y&&(S=y),B&&!g){const I=tt(c.left,0),$=tt(c.right,0),U=tt(c.top,0),T=tt(c.bottom,0);f?C=h-2*(I!==0||$!==0?I+$:tt(c.left,c.right)):S=v-2*(U!==0||T!==0?U+T:tt(c.top,c.bottom))}await u({...r,availableWidth:C,availableHeight:S});const E=await s.getDimensions(l.floating);return h!==E.width||v!==E.height?{reset:{rects:!0}}:{}}}};function nn(){return typeof window<"u"}function jr(e){return Hu(e)?(e.nodeName||"").toLowerCase():"#document"}function Xe(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function St(e){var r;return(r=(Hu(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function Hu(e){return nn()?e instanceof Node||e instanceof Xe(e).Node:!1}function ct(e){return nn()?e instanceof Element||e instanceof Xe(e).Element:!1}function pt(e){return nn()?e instanceof HTMLElement||e instanceof Xe(e).HTMLElement:!1}function Wu(e){return!nn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xe(e).ShadowRoot}const _y=new Set(["inline","contents"]);function uo(e){const{overflow:r,overflowX:t,overflowY:n,display:i}=ut(e);return/auto|scroll|overlay|hidden|clip/.test(r+n+t)&&!_y.has(i)}const Sy=new Set(["table","td","th"]);function By(e){return Sy.has(jr(e))}const Cy=[":popover-open",":modal"];function an(e){return Cy.some(r=>{try{return e.matches(r)}catch{return!1}})}const Py=["transform","translate","scale","rotate","perspective"],Ty=["transform","translate","scale","rotate","perspective","filter"],Ey=["paint","layout","strict","content"];function la(e){const r=ca(),t=ct(e)?ut(e):e;return Py.some(n=>t[n]?t[n]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!r&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!r&&(t.filter?t.filter!=="none":!1)||Ty.some(n=>(t.willChange||"").includes(n))||Ey.some(n=>(t.contain||"").includes(n))}function Ny(e){let r=Ot(e);for(;pt(r)&&!Ar(r);){if(la(r))return r;if(an(r))return null;r=Ot(r)}return null}function ca(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ry=new Set(["html","body","#document"]);function Ar(e){return Ry.has(jr(e))}function ut(e){return Xe(e).getComputedStyle(e)}function sn(e){return ct(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ot(e){if(jr(e)==="html")return e;const r=e.assignedSlot||e.parentNode||Wu(e)&&e.host||St(e);return Wu(r)?r.host:r}function Vu(e){const r=Ot(e);return Ar(r)?e.ownerDocument?e.ownerDocument.body:e.body:pt(r)&&uo(r)?r:Vu(r)}function ua(e,r,t){var n;r===void 0&&(r=[]),t===void 0&&(t=!0);const i=Vu(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=Xe(i);if(o){const l=da(s);return r.concat(s,s.visualViewport||[],uo(i)?i:[],l&&t?ua(l):[])}return r.concat(i,ua(i,[],t))}function da(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function $u(e){const r=ut(e);let t=parseFloat(r.width)||0,n=parseFloat(r.height)||0;const i=pt(e),o=i?e.offsetWidth:t,s=i?e.offsetHeight:n,l=tn(t)!==o||tn(n)!==s;return l&&(t=o,n=s),{width:t,height:n,$:l}}function Gu(e){return ct(e)?e:e.contextElement}function Or(e){const r=Gu(e);if(!pt(r))return vt(1);const t=r.getBoundingClientRect(),{width:n,height:i,$:o}=$u(r);let s=(o?tn(t.width):t.width)/n,l=(o?tn(t.height):t.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const zy=vt(0);function Uu(e){const r=Xe(e);return!ca()||!r.visualViewport?zy:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function Dy(e,r,t){return r===void 0&&(r=!1),!t||r&&t!==Xe(e)?!1:r}function fo(e,r,t,n){r===void 0&&(r=!1),t===void 0&&(t=!1);const i=e.getBoundingClientRect(),o=Gu(e);let s=vt(1);r&&(n?ct(n)&&(s=Or(n)):s=Or(e));const l=Dy(o,t,n)?Uu(o):vt(0);let u=(i.left+l.x)/s.x,a=(i.top+l.y)/s.y,c=i.width/s.x,d=i.height/s.y;if(o){const g=Xe(o),f=n&&ct(n)?Xe(n):n;let h=g,v=da(h);for(;v&&n&&f!==h;){const b=Or(v),p=v.getBoundingClientRect(),y=ut(v),k=p.left+(v.clientLeft+parseFloat(y.paddingLeft))*b.x,w=p.top+(v.clientTop+parseFloat(y.paddingTop))*b.y;u*=b.x,a*=b.y,c*=b.x,d*=b.y,u+=k,a+=w,h=Xe(v),v=da(h)}}return on({width:c,height:d,x:u,y:a})}function fa(e,r){const t=sn(e).scrollLeft;return r?r.left+t:fo(St(e)).left+t}function Ku(e,r,t){t===void 0&&(t=!1);const n=e.getBoundingClientRect(),i=n.left+r.scrollLeft-(t?0:fa(e,n)),o=n.top+r.scrollTop;return{x:i,y:o}}function Fy(e){let{elements:r,rect:t,offsetParent:n,strategy:i}=e;const o=i==="fixed",s=St(n),l=r?an(r.floating):!1;if(n===s||l&&o)return t;let u={scrollLeft:0,scrollTop:0},a=vt(1);const c=vt(0),d=pt(n);if((d||!d&&!o)&&((jr(n)!=="body"||uo(s))&&(u=sn(n)),pt(n))){const f=fo(n);a=Or(n),c.x=f.x+n.clientLeft,c.y=f.y+n.clientTop}const g=s&&!d&&!o?Ku(s,u,!0):vt(0);return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-u.scrollLeft*a.x+c.x+g.x,y:t.y*a.y-u.scrollTop*a.y+c.y+g.y}}function Iy(e){return Array.from(e.getClientRects())}function jy(e){const r=St(e),t=sn(e),n=e.ownerDocument.body,i=tt(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),o=tt(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight);let s=-t.scrollLeft+fa(e);const l=-t.scrollTop;return ut(n).direction==="rtl"&&(s+=tt(r.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:l}}function Ay(e,r){const t=Xe(e),n=St(e),i=t.visualViewport;let o=n.clientWidth,s=n.clientHeight,l=0,u=0;if(i){o=i.width,s=i.height;const a=ca();(!a||a&&r==="fixed")&&(l=i.offsetLeft,u=i.offsetTop)}return{width:o,height:s,x:l,y:u}}const Oy=new Set(["absolute","fixed"]);function qy(e,r){const t=fo(e,!0,r==="fixed"),n=t.top+e.clientTop,i=t.left+e.clientLeft,o=pt(e)?Or(e):vt(1),s=e.clientWidth*o.x,l=e.clientHeight*o.y,u=i*o.x,a=n*o.y;return{width:s,height:l,x:u,y:a}}function Xu(e,r,t){let n;if(r==="viewport")n=Ay(e,t);else if(r==="document")n=jy(St(e));else if(ct(r))n=qy(r,t);else{const i=Uu(e);n={x:r.x-i.x,y:r.y-i.y,width:r.width,height:r.height}}return on(n)}function Zu(e,r){const t=Ot(e);return t===r||!ct(t)||Ar(t)?!1:ut(t).position==="fixed"||Zu(t,r)}function My(e,r){const t=r.get(e);if(t)return t;let n=ua(e,[],!1).filter(l=>ct(l)&&jr(l)!=="body"),i=null;const o=ut(e).position==="fixed";let s=o?Ot(e):e;for(;ct(s)&&!Ar(s);){const l=ut(s),u=la(s);!u&&l.position==="fixed"&&(i=null),(o?!u&&!i:!u&&l.position==="static"&&!!i&&Oy.has(i.position)||uo(s)&&!u&&Zu(e,s))?n=n.filter(c=>c!==s):i=l,s=Ot(s)}return r.set(e,n),n}function Ly(e){let{element:r,boundary:t,rootBoundary:n,strategy:i}=e;const s=[...t==="clippingAncestors"?an(r)?[]:My(r,this._c):[].concat(t),n],l=s[0],u=s.reduce((a,c)=>{const d=Xu(r,c,i);return a.top=tt(d.top,a.top),a.right=or(d.right,a.right),a.bottom=or(d.bottom,a.bottom),a.left=tt(d.left,a.left),a},Xu(r,l,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Hy(e){const{width:r,height:t}=$u(e);return{width:r,height:t}}function Wy(e,r,t){const n=pt(r),i=St(r),o=t==="fixed",s=fo(e,!0,o,r);let l={scrollLeft:0,scrollTop:0};const u=vt(0);function a(){u.x=fa(i)}if(n||!n&&!o)if((jr(r)!=="body"||uo(i))&&(l=sn(r)),n){const f=fo(r,!0,o,r);u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}else i&&a();o&&!n&&i&&a();const c=i&&!n&&!o?Ku(i,l):vt(0),d=s.left+l.scrollLeft-u.x-c.x,g=s.top+l.scrollTop-u.y-c.y;return{x:d,y:g,width:s.width,height:s.height}}function ha(e){return ut(e).position==="static"}function Qu(e,r){if(!pt(e)||ut(e).position==="fixed")return null;if(r)return r(e);let t=e.offsetParent;return St(e)===t&&(t=t.ownerDocument.body),t}function Yu(e,r){const t=Xe(e);if(an(e))return t;if(!pt(e)){let i=Ot(e);for(;i&&!Ar(i);){if(ct(i)&&!ha(i))return i;i=Ot(i)}return t}let n=Qu(e,r);for(;n&&By(n)&&ha(n);)n=Qu(n,r);return n&&Ar(n)&&ha(n)&&!la(n)?t:n||Ny(e)||t}const Vy=async function(e){const r=this.getOffsetParent||Yu,t=this.getDimensions,n=await t(e.floating);return{reference:Wy(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function $y(e){return ut(e).direction==="rtl"}const Gy={convertOffsetParentRelativeRectToViewportRelativeRect:Fy,getDocumentElement:St,getClippingRect:Ly,getOffsetParent:Yu,getElementRects:Vy,getClientRects:Iy,getDimensions:Hy,getScale:Or,isElement:ct,isRTL:$y},Uy=Ir,Ky=yy,Xy=wy,Zy=my,Qy=xy,Ju=py,Yy=vy,ed=ky,Jy=(e,r,t)=>{const n=new Map,i={platform:Gy,...t},o={...i.platform,_c:n};return gy(e,r,{...i,platform:o})};function td(e){const r=e.split("-");return{side:r[0],alignment:r[1]}}const ew=e=>e.nodeName==="HTML"?e:e.parentNode||e.host,tw=e=>{var r;if(e.nodeType!==1)return{};const t=(r=e.ownerDocument)===null||r===void 0?void 0:r.defaultView;return t?t.getComputedStyle(e,null):{}},ln=e=>{const r=e&&ew(e);if(!r)return document.body;switch(r.nodeName){case"HTML":case"BODY":return r.ownerDocument.body;case"#document":return r.body}const{overflow:t,overflowX:n,overflowY:i}=tw(r);return/(auto|scroll|overlay)/.test(t+i+n)?r:ln(r)},rw=e=>{var r;const t=ln(e);return t?t!==((r=t.ownerDocument)===null||r===void 0?void 0:r.body):!1};function ga(e,r){if(r==="window")return e==null?void 0:e.ownerDocument.documentElement;if(r==="clippingParents")return"clippingAncestors";if(r==="scrollParent"){let t=ln(e);return t.nodeName==="BODY"&&(t=e==null?void 0:e.ownerDocument.documentElement),t}return r}function ow(e){if(!e)return null;for(const r in e)if(r.indexOf("__reactInternalInstance$")===0||r.indexOf("__reactFiber$")===0)return e[r];throw new Error("getReactFiber(): Failed to find a React Fiber on a node")}function rd(e,r){if(typeof e=="number")return e;const{start:t,end:n,...i}=e,o=i,s=r?"end":"start",l=r?"start":"end";return e[s]&&(o.left=e[s]),e[l]&&(o.right=e[l]),o}const nw=e=>({above:"top",below:"bottom",before:e?"right":"left",after:e?"left":"right"}),iw=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),aw=(e,r)=>{const t=e==="above"||e==="below",n=r==="top"||r==="bottom";return t&&n||!t&&!n},od=(e,r,t)=>{const n=aw(r,e)?"center":e,i=r&&nw(t)[r],o=n&&iw()[n];return i&&o?`${i}-${o}`:i},sw=()=>({top:"above",bottom:"below",right:"after",left:"before"}),lw=e=>e==="above"||e==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},va=e=>{const{side:r,alignment:t}=td(e),n=sw()[r],i=t&&lw(n)[t];return{position:n,alignment:i}},cw={above:{position:"above",align:"center"},"above-start":{position:"above",align:"start"},"above-end":{position:"above",align:"end"},below:{position:"below",align:"center"},"below-start":{position:"below",align:"start"},"below-end":{position:"below",align:"end"},before:{position:"before",align:"center"},"before-top":{position:"before",align:"top"},"before-bottom":{position:"before",align:"bottom"},after:{position:"after",align:"center"},"after-top":{position:"after",align:"top"},"after-bottom":{position:"after",align:"bottom"}};function nd(e){return e==null?{}:typeof e=="string"?cw[e]:e}function ma(e,r,t){const n=m.useRef(!0),[i]=m.useState(()=>({value:e,callback:r,facade:{get current(){return i.value},set current(o){const s=i.value;if(s!==o){if(i.value=o,t&&n.current)return;i.callback(o,s)}}}}));return Fe(()=>{n.current=!1},[]),i.callback=r,i.facade}function uw(e){let r;return()=>(r||(r=new Promise(t=>{Promise.resolve().then(()=>{r=void 0,t(e())})})),r)}function dw(e){if(e.nodeName==="BUTTON"||e.nodeName==="INPUT"||e.nodeName==="SELECT"||e.nodeName==="TEXTAREA"){var t;return!!(!((t=ow(e))===null||t===void 0)&&t.pendingProps.autoFocus)}return!1}function fw(e){return dw(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}function hw(e){const{arrow:r,middlewareData:t}=e;if(!t.arrow||!r)return;const{x:n,y:i}=t.arrow;Object.assign(r.style,{left:n!=null?`${n}px`:"",top:i!=null?`${i}px`:""})}function gw(e){var r,t,n;const{container:i,placement:o,middlewareData:s,strategy:l,lowPPI:u,coordinates:a,useTransform:c=!0}=e;if(!i)return;i.setAttribute(ey,o),i.removeAttribute(Ru),s.intersectionObserver.intersecting&&i.setAttribute(Ru,""),i.removeAttribute(zu),!((r=s.hide)===null||r===void 0)&&r.escaped&&i.setAttribute(zu,""),i.removeAttribute(Du),!((t=s.hide)===null||t===void 0)&&t.referenceHidden&&i.setAttribute(Du,"");const d=((n=i.ownerDocument.defaultView)===null||n===void 0?void 0:n.devicePixelRatio)||1,g=Math.round(a.x*d)/d,f=Math.round(a.y*d)/d;if(Object.assign(i.style,{position:l}),c){Object.assign(i.style,{transform:u?`translate(${g}px, ${f}px)`:`translate3d(${g}px, ${f}px, 0)`});return}Object.assign(i.style,{left:`${g}px`,top:`${f}px`})}const vw=e=>{switch(e){case"always":case!0:return{applyMaxWidth:!0,applyMaxHeight:!0};case"width-always":case"width":return{applyMaxWidth:!0,applyMaxHeight:!1};case"height-always":case"height":return{applyMaxWidth:!1,applyMaxHeight:!0};default:return!1}};function cn(e){const r=[];let t=e;for(;t;){const n=ln(t);if(e.ownerDocument.body===n){r.push(n);break}if(n.nodeName==="BODY"&&n!==e.ownerDocument.body){process.env.NODE_ENV!=="production"&&console.error("@fluentui/react-positioning: You are comparing two different documents! This is an unexpected error, please report this as a bug to the Fluent UI team ");break}r.push(n),t=n}return r}function mw(e,r){return process.env.NODE_ENV==="test"&&(e.ResizeObserver=class{observe(){}unobserve(){}disconnect(){}}),new e.ResizeObserver(r)}function pw(e){let r=!1;const{container:t,target:n,arrow:i,strategy:o,middleware:s,placement:l,useTransform:u=!0,disableUpdateOnResize:a=!1}=e,c=t.ownerDocument.defaultView;if(!n||!t||!c)return{updatePosition:()=>{},dispose:()=>{}};const d=a?null:mw(c,p=>{p.every(k=>k.contentRect.width>0&&k.contentRect.height>0)&&v()});let g=!0;const f=new Set;Object.assign(t.style,{position:"fixed",left:0,top:0,margin:0});const h=()=>{r||(g&&(cn(t).forEach(p=>f.add(p)),Ue(n)&&cn(n).forEach(p=>f.add(p)),f.forEach(p=>{p.addEventListener("scroll",v,{passive:!0})}),d==null||d.observe(t),Ue(n)&&(d==null||d.observe(n)),g=!1),Object.assign(t.style,{position:o}),Jy(n,t,{placement:l,middleware:s,strategy:o}).then(({x:p,y,middlewareData:k,placement:w})=>{r||(hw({arrow:i,middlewareData:k}),gw({container:t,middlewareData:k,placement:w,coordinates:{x:p,y},lowPPI:((c==null?void 0:c.devicePixelRatio)||1)<=1,strategy:o,useTransform:u}),t.dispatchEvent(new CustomEvent(ra)))}).catch(p=>{process.env.NODE_ENV==="development"&&console.error("[usePositioning]: Failed to calculate position",p)}))},v=uw(()=>h()),b=()=>{r=!0,c&&(c.removeEventListener("scroll",v),c.removeEventListener("resize",v)),f.forEach(p=>{p.removeEventListener("scroll",v)}),f.clear(),d==null||d.disconnect()};return c&&(c.addEventListener("scroll",v,{passive:!0}),c.addEventListener("resize",v)),v(),{updatePosition:v,dispose:b}}const pa="__FUIDT_CONTROLLER__",un="__FUIDT_ELEMENT_METADATA__",bw="__FUIDT_HTML_ELEMENT_REFERENCE__",id="__FUIDT_SERIALIZED_DATA_CHANGE__";function ad(e,r){var t,n;const i=e;return!!(!(i==null||(t=i.ownerDocument)==null)&&t.defaultView&&i instanceof i.ownerDocument.defaultView[(n=r==null?void 0:r.constructorName)!=null?n:"HTMLElement"])}const sd=e=>!!(ad(e)&&un in e&&e.parentElement!==null),yw=e=>{let r=null;const t=new MutationObserver(i=>{if(r)for(const o of i)o.type==="childList"&&Array.from(o.removedNodes).includes(r)&&n.withdraw()}),n={get selectedElement(){return r},select:i=>(sd(i)&&(r=i,t.observe(i.parentElement,{childList:!0,subtree:!1})),r&&i&&r[un].references.has(i)||n.withdraw(),r),withdraw:()=>{r=null,t.disconnect(),e.postMessage(id)}};return n},ww=e=>{let{defaultView:r}=e;r&&(r[pa]||(r[pa]=yw(r)))},kw=e=>{var r,t;return ww(e),(r=(t=e.defaultView)==null?void 0:t[pa])!=null?r:null},xw=(e,r)=>JSON.parse(JSON.stringify(e,(n,i)=>ad(i)?r.add(i):typeof i=="object"&&i&&Object.getPrototypeOf(i)!==Object.prototype&&Object.getPrototypeOf(i)!==Array.prototype?"toString"in i?i.toString():void 0:i));let _w=0;const Sw=()=>bw+":"+_w++,Bw=()=>{const e=new Map,r=new WeakMap;return{add:n=>{if(r.has(n))return r.get(n);const i=Sw();return e.set(i,n),r.set(n,i),i},get:n=>{const i=e.get(n);if(i&&r.has(i))return i},has:n=>r.has(n)}},Cw=function(e,r){return e===void 0&&(e=document),r===void 0&&(r=Pw),{name:"@floating-ui/devtools",fn:t=>{const{[un]:n}=sd(t.elements.floating)?t.elements.floating:Object.assign(t.elements.floating,{[un]:{references:Bw(),serializedData:[]}}),i=xw(r(t),n.references);n.serializedData.unshift(i);const o=kw(e);if(n.serializedData.length>1&&t.elements.floating===(o==null?void 0:o.selectedElement)){var s;(s=e.defaultView)==null||s.postMessage(id)}return{}}}},Pw=e=>({...e,type:"FloatingUIMiddleware"});function Tw(){return{name:"coverTarget",fn:e=>{const{placement:r,rects:t,x:n,y:i}=e,o=td(r).side,s={x:n,y:i};switch(o){case"bottom":s.y-=t.reference.height;break;case"top":s.y+=t.reference.height;break;case"left":s.x+=t.reference.width;break;case"right":s.x-=t.reference.width;break}return s}}}function Ew(e){const{hasScrollableElement:r,flipBoundary:t,container:n,fallbackPositions:i=[],isRtl:o}=e,s=i.reduce((l,u)=>{const{position:a,align:c}=nd(u),d=od(c,a,o);return d&&l.push(d),l},[]);return Zy({...r&&{boundary:"clippingAncestors"},...t&&{altBoundary:!0,boundary:ga(n,t)},fallbackStrategy:"bestFit",...s.length&&{fallbackPlacements:s}})}function Nw(){return{name:"intersectionObserver",fn:async e=>{const r=e.rects.floating,t=await Uy(e,{altBoundary:!0}),n=t.top<r.height&&t.top>0,i=t.bottom<r.height&&t.bottom>0;return{data:{intersecting:n||i}}}}}const Rw=e=>({name:"resetMaxSize",fn({middlewareData:r,elements:t}){var n;if(!((n=r.resetMaxSize)===null||n===void 0)&&n.maxSizeAlreadyReset)return{};const{applyMaxWidth:i,applyMaxHeight:o}=e;return i&&(t.floating.style.removeProperty("box-sizing"),t.floating.style.removeProperty("max-width"),t.floating.style.removeProperty("width")),o&&(t.floating.style.removeProperty("box-sizing"),t.floating.style.removeProperty("max-height"),t.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function zw(e,r){const{container:t,overflowBoundary:n,overflowBoundaryPadding:i,isRtl:o}=r;return Qy({...i&&{padding:rd(i,o)},...n&&{altBoundary:!0,boundary:ga(t,n)},apply({availableHeight:s,availableWidth:l,elements:u,rects:a}){const c=(f,h,v)=>{if(f&&(u.floating.style.setProperty("box-sizing","border-box"),u.floating.style.setProperty(`max-${h}`,`${v}px`),a.floating[h]>v)){u.floating.style.setProperty(h,`${v}px`);const b=h==="width"?"x":"y";u.floating.style.getPropertyValue(`overflow-${b}`)||u.floating.style.setProperty(`overflow-${b}`,"auto")}},{applyMaxWidth:d,applyMaxHeight:g}=e;c(d,"width",l),c(g,"height",s)}})}function Dw(e){return!e||typeof e=="number"||typeof e=="object"?e:({rects:{floating:r,reference:t},placement:n})=>{const{position:i,alignment:o}=va(n);return e({positionedRect:r,targetRect:t,position:i,alignment:o})}}function Fw(e){const r=Dw(e);return Ky(r)}function Iw(e){const{hasScrollableElement:r,shiftToCoverTarget:t,disableTether:n,overflowBoundary:i,container:o,overflowBoundaryPadding:s,isRtl:l}=e;return Xy({...r&&{boundary:"clippingAncestors"},...t&&{crossAxis:!0,limiter:ed({crossAxis:!0,mainAxis:!1})},...n&&{crossAxis:n==="all",limiter:ed({crossAxis:n!=="all",mainAxis:!1})},...s&&{padding:rd(s,l)},...i&&{altBoundary:!0,boundary:ga(o,i)}})}const ld="--fui-match-target-size";function jw(){return{name:"matchTargetSize",fn:async e=>{const{rects:{reference:r,floating:t},elements:{floating:n},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:i=!1}={}}}=e;if(r.width===t.width||i)return{};const{width:o}=r;return n.style.setProperty(ld,`${o}px`),n.style.width||(n.style.width=`var(${ld})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}const Aw=e=>r=>{const{elements:{floating:t,reference:n}}=r,i=new Set;Ue(n)&&cn(n).forEach(l=>i.add(l)),cn(t).forEach(l=>i.add(l));const o=Array.isArray(e.flipBoundary)?e.flipBoundary:Ue(e.flipBoundary)?[e.flipBoundary]:[],s=Array.isArray(e.overflowBoundary)?e.overflowBoundary:Ue(e.overflowBoundary)?[e.overflowBoundary]:[];return{type:"FluentUIMiddleware",middlewareState:r,options:e,initialPlacement:va(r.initialPlacement),placement:va(r.placement),flipBoundaries:o,overflowBoundaries:s,scrollParents:Array.from(i)}};function Ow(e,r){const{align:t,arrowPadding:n,autoSize:i,coverTarget:o,disableUpdateOnResize:s,flipBoundary:l,offset:u,overflowBoundary:a,pinned:c,position:d,unstable_disableTether:g,strategy:f,overflowBoundaryPadding:h,fallbackPositions:v,useTransform:b,matchTargetSize:p,shiftToCoverTarget:y}=r;return m.useCallback((k,w)=>e({container:k,arrow:w,options:{autoSize:i,disableUpdateOnResize:s,matchTargetSize:p,offset:u,strategy:f,coverTarget:o,flipBoundary:l,overflowBoundary:a,useTransform:b,overflowBoundaryPadding:h,pinned:c,arrowPadding:n,align:t,fallbackPositions:v,shiftToCoverTarget:y,position:d,unstable_disableTether:g}}),[i,s,p,u,f,o,l,a,b,h,c,n,t,v,y,d,g,e])}function qw(e){const{dir:r,targetDocument:t}=_e(),n=r==="rtl",i=Ow(ry(),e),{positionFixed:o}=e;return m.useCallback((s,l)=>{const u=rw(s),a=i(s,l),{autoSize:c,disableUpdateOnResize:d,matchTargetSize:g,offset:f,coverTarget:h,flipBoundary:v,overflowBoundary:b,useTransform:p,overflowBoundaryPadding:y,pinned:k,position:w,arrowPadding:x,strategy:B,align:S,fallbackPositions:C,shiftToCoverTarget:E,unstable_disableTether:I}=a,$=vw(c),U=[$&&Rw($),g&&jw(),f&&Fw(f),h&&Tw(),!k&&Ew({container:s,flipBoundary:v,hasScrollableElement:u,isRtl:n,fallbackPositions:C}),Iw({container:s,hasScrollableElement:u,overflowBoundary:b,disableTether:I,overflowBoundaryPadding:y,isRtl:n,shiftToCoverTarget:E}),$&&zw($,{container:s,overflowBoundary:b,overflowBoundaryPadding:y,isRtl:n}),Nw(),l&&Yy({element:l,padding:x}),Ju({strategy:"referenceHidden"}),Ju({strategy:"escaped"}),process.env.NODE_ENV!=="production"&&t&&Cw(t,Aw(a))].filter(Boolean);return{placement:od(S,w,n),middleware:U,strategy:B??o?"fixed":"absolute",disableUpdateOnResize:d,useTransform:p}},[i,n,t,o])}function Mw(e){"use no memo";const r=m.useRef(null),t=m.useRef(null),n=m.useRef(null),i=m.useRef(null),o=m.useRef(null),{enabled:s=!0}=e,l=qw(e),u=m.useCallback(()=>{r.current&&r.current.dispose(),r.current=null;var h;const v=(h=n.current)!==null&&h!==void 0?h:t.current;s&&Fl()&&v&&i.current&&(r.current=pw({container:i.current,target:v,arrow:o.current,...l(i.current,o.current)}))},[s,l]),a=ee(h=>{n.current=h,u()});m.useImperativeHandle(e.positioningRef,()=>({updatePosition:()=>{var h;return(h=r.current)===null||h===void 0?void 0:h.updatePosition()},setTarget:h=>{if(e.target&&process.env.NODE_ENV!=="production"){const v=new Error;console.warn("Imperative setTarget should not be used at the same time as target option"),console.warn(v.stack)}a(h)}}),[e.target,a]),Fe(()=>{var h;a((h=e.target)!==null&&h!==void 0?h:null)},[e.target,a]),Fe(()=>{u()},[u]),process.env.NODE_ENV!=="production"&&m.useEffect(()=>{if(i.current){var h;const v=i.current,b=(h=v.ownerDocument)===null||h===void 0?void 0:h.createTreeWalker(v,NodeFilter.SHOW_ELEMENT,{acceptNode:fw});for(;b.nextNode();){const p=b.currentNode;console.warn("usePositioning():",p),console.warn(['usePositioning(): ^ this node contains "autoFocus" prop on a React element. This can break the initial',"positioning of an element and cause a window jump effect. This issue occurs because React polyfills",'"autoFocus" behavior to solve inconsistencies between different browsers:',"https://github.com/facebook/react/issues/11851#issuecomment-351787078",`
|
|
180
|
+
`,'However, ".focus()" in this case occurs before any other React effects will be executed',"(React.useEffect(), componentDidMount(), etc.) and we can not prevent this behavior. If you really",'want to use "autoFocus" please add "position: fixed" to styles of the element that is wrapped by','"Popper".',`In general, it's not recommended to use "autoFocus" as it may break accessibility aspects:`,"https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-autofocus.md",`
|
|
181
|
+
`,'We suggest to use the "trapFocus" prop on Fluent components or a catch "ref" and then use','"ref.current.focus" in React.useEffect():',"https://reactjs.org/docs/refs-and-the-dom.html#adding-a-ref-to-a-dom-element"].join(" "))}}},[]);const c=ma(null,h=>{t.current!==h&&(t.current=h,u())}),d=ee(()=>{var h;return(h=e.onPositioningEnd)===null||h===void 0?void 0:h.call(e)}),g=ma(null,h=>{if(i.current!==h){var v;(v=i.current)===null||v===void 0||v.removeEventListener(ra,d),h==null||h.addEventListener(ra,d),i.current=h,u()}}),f=ma(null,h=>{o.current!==h&&(o.current=h,u())});return{targetRef:c,containerRef:g,arrowRef:f}}function cd(e){return Ue(e)?{element:e}:typeof e=="object"?e===null?{element:null}:e:{}}const Lw=O({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),ud=m.useInsertionEffect,Hw=e=>{"use no memo";const{className:r,dir:t,focusVisibleRef:n,targetNode:i}=e,o=m.useMemo(()=>{if(i===void 0||e.disabled)return null;const s=i.ownerDocument.createElement("div");return i.appendChild(s),s},[i,e.disabled]);return m.useMemo(()=>{o&&(o.className=r,o.setAttribute("dir",t),o.setAttribute("data-portal-node","true"),n.current=o)},[r,t,o,n]),m.useEffect(()=>()=>{o==null||o.remove()},[o]),o},Ww=()=>{let e;function r(n,i){return e||(i&&(e=n.ownerDocument.createElement("div"),n.appendChild(e)),e)}function t(){e&&(e.remove(),e=void 0)}return{get:r,dispose:t}},Vw=ud?e=>{"use no memo";const{className:r,dir:t,focusVisibleRef:n,targetNode:i}=e,[o]=m.useState(Ww),s=m.useMemo(()=>i===void 0||e.disabled?null:new Proxy({},{get(l,u){if(u==="nodeType")return Node.ELEMENT_NODE;if(u==="remove"){const d=o.get(i,!1);return d&&d.childNodes.length===0&&o.dispose(),()=>{}}const a=o.get(i,!0),c=a?a[u]:void 0;return typeof c=="function"?c.bind(a):c},set(l,u,a){const c=u==="_virtual"||u==="focusVisible",d=c?o.get(i,!1):o.get(i,!0);return c&&!d?!0:d?(Object.assign(d,{[u]:a}),!0):!1}}),[o,i,e.disabled]);return ud(()=>{if(!s)return;const l=r.split(" ").filter(Boolean);return s.classList.add(...l),s.setAttribute("dir",t),s.setAttribute("data-portal-node","true"),n.current=s,()=>{s.classList.remove(...l),s.removeAttribute("dir")}},[r,t,s,n]),m.useEffect(()=>()=>{s==null||s.remove()},[s]),s}:Hw,$w=e=>{"use no memo";const{targetDocument:r,dir:t}=_e(),n=Mm(),i=_c(),o=Lw(),s=jm(),l={dir:t,disabled:e.disabled,focusVisibleRef:i,className:N(s,o.root,e.className),targetNode:n??(r==null?void 0:r.body)};return Vw(l)},Gw=e=>{const{element:r,className:t}=cd(e.mountNode),n=m.useRef(null),i=$w({disabled:!!r,className:t}),o=r??i,s={children:e.children,mountNode:o,virtualParentRootRef:n};return m.useEffect(()=>{if(!o)return;const l=n.current,u=o.contains(l);if(l&&!u)return Ll(o,l),()=>{Ll(o,void 0)}},[n,o]),s},Uw=e=>m.createElement("span",{hidden:!0,ref:e.virtualParentRootRef},e.mountNode&&zn.createPortal(m.createElement(m.Fragment,null,e.children,m.createElement("span",{hidden:!0})),e.mountNode)),ba=e=>{const r=Gw(e);return Uw(r)};ba.displayName="Portal";const Kw=e=>{ne(e);const{iconOnly:r,iconPosition:t}=e;return ye(e.root,{children:[t!=="after"&&e.icon&&F(e.icon,{}),!r&&e.root.children,t==="after"&&e.icon&&F(e.icon,{})]})},dd=m.createContext(void 0),Xw={};dd.Provider;const Zw=()=>{var e;return(e=m.useContext(dd))!==null&&e!==void 0?e:Xw},Qw=(e,r)=>{const{size:t}=Zw(),{appearance:n="secondary",as:i="button",disabled:o=!1,disabledFocusable:s=!1,icon:l,iconPosition:u="before",shape:a="rounded",size:c=t??"medium"}=e,d=te(l,{elementType:"span"});return{appearance:n,disabled:o,disabledFocusable:s,iconPosition:u,shape:a,size:c,iconOnly:!!(d!=null&&d.children&&!e.children),components:{root:"button",icon:"span"},root:J(de(i,Ic(e.as,e)),{elementType:"button",defaultProps:{ref:r,type:i==="button"?"button":void 0}}),icon:d}},fd={root:"fui-Button",icon:"fui-Button__icon"},Yw=ie("r1alrhcs",null,{r:[".r1alrhcs{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1alrhcs:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1alrhcs:hover:active{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1alrhcs[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1alrhcs{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1alrhcs:focus{border-color:ButtonText;}.r1alrhcs:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1alrhcs:hover:active{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1alrhcs[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),Jw=ie("rywnvv2",null,[".rywnvv2{align-items:center;display:inline-flex;justify-content:center;font-size:20px;height:20px;width:20px;--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}"]),ek=O({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",iro3zm:"fwiml72"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2",Bsw6fvg:"f1rirnrt",Bjwas2f:"f1uu00uk",Bn1d65q:["fkvaka8","f9a0qzu"],Bxeuatn:"f1ux7til",n51gp8:["f9a0qzu","fkvaka8"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",Bqrx1nm:"fq7113v",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"],ze5xyy:"f4xjyn1",g2kj27:"fbgcvur",Bf756sw:"f1ks1yx8",Bow2dr7:["f1o6qegi","fmxjhhp"],Bvhedfk:"fcnxywj",Gye4lf:["fmxjhhp","f1o6qegi"],pc6evw:"f9ddjv3"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",x3br3k:"fj8yq94",ze5xyy:"f4xjyn1",Bx3q9su:"f1et0tmh",pc6evw:"f9ddjv3",xd2cci:"f1wi8ngl"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",Bqrx1nm:"f1tme0vf",ze5xyy:"f4xjyn1",g2kj27:"f18onu3q",pc6evw:"f9ddjv3"},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9"},rounded:{},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1fabniw"},small:{Bf4jedk:"fh7ncta",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fneth5b",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f4db1ww",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},largeWithIcon:{Byoj8tv:"fy7v416",z8tnut:"f1a1bwwz"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".f1fabniw{border-radius:var(--borderRadiusNone);}",{p:-1}],".fh7ncta{min-width:64px;}",[".fneth5b{padding:3px var(--spacingHorizontalS);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1brlhvm{padding-bottom:1px;}",".f1sl3k7w{padding-top:1px;}",".f14es27b{min-width:96px;}",[".f4db1ww{padding:8px var(--spacingHorizontalL);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f1dfjoow:hover:active .fui-Icon-filled{display:inline;}",".f1j98vj9:hover:active .fui-Icon-regular{display:none;}",".fj8yq94:hover:active .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1uu00uk{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9a0qzu{border-left-color:HighlightText;}.fkvaka8{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ux7til{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1et0tmh:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wi8ngl:hover:active .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tme0vf:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18onu3q:hover:active{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),tk=O({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo",c3iz72:"f8w4c43",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",x3br3k:"f1dwjv2g"},highContrast:{Bsw6fvg:"f4lkoma",Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bbusuzp:"f1dcs8yz",Bm2fdqk:"fuigjrg",G867l3:"fjwq6ea",gdbnj:["f1lr3nhc","f1mbxvi6"],mxns5l:"fn5gmvv",o3nasb:["f1mbxvi6","f1lr3nhc"],Bqrx1nm:"f1vmkb5g",pgvf35:"f53ppgq",Bh7lczh:["f1663y11","f80fkiy"],dpv3f4:"f18v5270",Bpnjhaq:["f80fkiy","f1663y11"],ze5xyy:"f1kc2mi9",Bx3q9su:"f4dhi0o",g2kj27:"f1y0svfh",Bf756sw:"fihuait",Bow2dr7:["fnxhupq","fyd6l6x"],Bvhedfk:"fx507ft",Gye4lf:["fyd6l6x","fnxhupq"],pc6evw:"fb3rf2x",xd2cci:"fequ9m0"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",iro3zm:"f3h1zc4"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f8w4c43:hover:active{cursor:not-allowed;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}",".f1dwjv2g:hover:active .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f4lkoma{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fuigjrg .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjwq6ea:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lr3nhc:focus{border-right-color:GrayText;}.f1mbxvi6:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn5gmvv:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1vmkb5g:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f53ppgq:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1663y11:hover{border-right-color:GrayText;}.f80fkiy:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18v5270:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4dhi0o:hover .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1y0svfh:hover:active{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fihuait:hover:active{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnxhupq:hover:active{border-right-color:GrayText;}.fyd6l6x:hover:active{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fx507ft:hover:active{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb3rf2x:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fequ9m0:hover:active .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),rk=O({circular:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f1062rbf"},rounded:{},square:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"fj0ryk1"},primary:{B8q5s1w:"f17t0x8g",Bci5o5g:["f194v5ow","fk7jm04"],n8qw10:"f1qgg65p",Bdrgwmp:["fk7jm04","f194v5ow"],j6ew2k:["fhgccpy","fjo7pq6"],he4mth:"f32wu9k",Byr4aka:"fu5nqqq",lks7q5:["f13prjl2","f1nl83rv"],Bnan3qt:"f1czftr5",k1dn9:["f1nl83rv","f13prjl2"],Boium3a:["f12k37oa","fdnykm2"],tm8e47:"fr96u23"},small:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"fazmxh"},medium:{},large:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f1b6alqh"}},{d:[[".f1062rbf[data-fui-focus-visible]{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".fj0ryk1[data-fui-focus-visible]{border-radius:var(--borderRadiusNone);}",{p:-1}],".f17t0x8g[data-fui-focus-visible]{border-top-color:var(--colorStrokeFocus2);}",".f194v5ow[data-fui-focus-visible]{border-right-color:var(--colorStrokeFocus2);}",".fk7jm04[data-fui-focus-visible]{border-left-color:var(--colorStrokeFocus2);}",".f1qgg65p[data-fui-focus-visible]{border-bottom-color:var(--colorStrokeFocus2);}",".fhgccpy[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".fjo7pq6[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".f32wu9k[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;}",".fu5nqqq[data-fui-focus-visible]:hover{border-top-color:var(--colorStrokeFocus2);}",".f13prjl2[data-fui-focus-visible]:hover{border-right-color:var(--colorStrokeFocus2);}",".f1nl83rv[data-fui-focus-visible]:hover{border-left-color:var(--colorStrokeFocus2);}",".f1czftr5[data-fui-focus-visible]:hover{border-bottom-color:var(--colorStrokeFocus2);}",[".fazmxh[data-fui-focus-visible]{border-radius:var(--borderRadiusSmall);}",{p:-1}],[".f1b6alqh[data-fui-focus-visible]{border-radius:var(--borderRadiusLarge);}",{p:-1}]],t:["@supports (-moz-appearance:button){.f12k37oa[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fdnykm2[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}","@supports (-moz-appearance:button){.fr96u23[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),ok=O({small:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fu97m5z",Bf4jedk:"f17fgpbq",B2u0y6b:"f1jt17bm"},medium:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f18ktai2",Bf4jedk:"fwbmr0d",B2u0y6b:"f44c6la"},large:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1hbd1aw",Bf4jedk:"f12clzc2",B2u0y6b:"fjy1crr"}},{d:[[".fu97m5z{padding:1px;}",{p:-1}],".f17fgpbq{min-width:24px;}",".f1jt17bm{max-width:24px;}",[".f18ktai2{padding:5px;}",{p:-1}],".fwbmr0d{min-width:32px;}",".f44c6la{max-width:32px;}",[".f1hbd1aw{padding:7px;}",{p:-1}],".f12clzc2{min-width:40px;}",".fjy1crr{max-width:40px;}"]}),nk=O({small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3",Bqrlyyl:"fbaiahx"},medium:{},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun",Bqrlyyl:"f1exjqw5"},before:{t21cq0:["f1nizpg2","f1a695kz"]},after:{Frg6f3:["f1a695kz","f1nizpg2"]}},{d:[".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".fbaiahx{--fui-Button__icon--spacing:var(--spacingHorizontalXS);}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".f1exjqw5{--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}",".f1nizpg2{margin-right:var(--fui-Button__icon--spacing);}",".f1a695kz{margin-left:var(--fui-Button__icon--spacing);}"]}),ik=e=>{"use no memo";const r=Yw(),t=Jw(),n=ek(),i=tk(),o=rk(),s=ok(),l=nk(),{appearance:u,disabled:a,disabledFocusable:c,icon:d,iconOnly:g,iconPosition:f,shape:h,size:v}=e;return e.root.className=N(fd.root,r,u&&n[u],n[v],d&&v==="small"&&n.smallWithIcon,d&&v==="large"&&n.largeWithIcon,n[h],(a||c)&&i.base,(a||c)&&i.highContrast,u&&(a||c)&&i[u],u==="primary"&&o.primary,o[v],o[h],g&&s[v],e.root.className),e.icon&&(e.icon.className=N(fd.icon,t,!!e.root.children&&l[f],l[v],e.icon.className)),e},Ze=m.forwardRef((e,r)=>{const t=Qw(e,r);return ik(t),ae("useButtonStyles_unstable")(t),Kw(t)});Ze.displayName="Button";const hd=m.createContext(void 0),ak=hd.Provider,gd=()=>m.useContext(hd),sk=e=>{var r,t,n,i;const{generatedControlId:o,orientation:s,required:l,size:u,validationState:a}=e,c=(r=e.label)===null||r===void 0?void 0:r.htmlFor,d=(t=e.label)===null||t===void 0?void 0:t.id,g=(n=e.validationMessage)===null||n===void 0?void 0:n.id,f=(i=e.hint)===null||i===void 0?void 0:i.id;return{field:m.useMemo(()=>({generatedControlId:o,hintId:f,labelFor:c,labelId:d,orientation:s,required:l,size:u,validationMessageId:g,validationState:a}),[o,f,c,d,s,l,u,g,a])}};function dn(e,r){return vd(gd(),e,r)}function vd(e,r,t){if(!e)return r;r={...r};const{generatedControlId:n,hintId:i,labelFor:o,labelId:s,required:l,validationMessageId:u,validationState:a}=e;if(n){var c,d;(d=(c=r).id)!==null&&d!==void 0||(c.id=n)}if(s&&(!(t!=null&&t.supportsLabelFor)||o!==r.id)){var g,f,h;(h=(g=r)[f="aria-labelledby"])!==null&&h!==void 0||(g[f]=s)}if((u||i)&&(r["aria-describedby"]=[u,i,r==null?void 0:r["aria-describedby"]].filter(Boolean).join(" ")),a==="error"){var v,b,p;(p=(v=r)[b="aria-invalid"])!==null&&p!==void 0||(v[b]=!0)}if(l)if(t!=null&&t.supportsRequired){var y,k;(k=(y=r).required)!==null&&k!==void 0||(y.required=!0)}else{var w,x,B;(B=(w=r)[x="aria-required"])!==null&&B!==void 0||(w[x]=!0)}if(t!=null&&t.supportsSize){var S,C;(C=(S=r).size)!==null&&C!==void 0||(S.size=e.size)}return r}const lk=(e,r)=>{ne(e);let{children:t}=e;return typeof t=="function"&&(t=t(vd(r.field)||{})),F(ak,{value:r==null?void 0:r.field,children:ye(e.root,{children:[e.label&&F(e.label,{}),t,e.validationMessage&&ye(e.validationMessage,{children:[e.validationMessageIcon&&F(e.validationMessageIcon,{}),e.validationMessage.children]}),e.hint&&F(e.hint,{})]})})},ck=(e,r)=>{const{disabled:t=!1,required:n=!1,weight:i="regular",size:o="medium"}=e;return{disabled:t,required:te(n===!0?"*":n||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:i,size:o,components:{root:"label",required:"span"},root:J(de("label",{ref:r,...e}),{elementType:"label"})}},uk=e=>(ne(e),ye(e.root,{children:[e.root.children,e.required&&F(e.required,{})]})),md={root:"fui-Label",required:"fui-Label__required"},dk=O({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o",Bbusuzp:"f1dcs8yz"},required:{sj55zd:"f1whyuy6",uwmqm3:["fruq291","f7x41pl"]},small:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},medium:{Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi"},large:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k",Bhrd7zp:"fl43uef"},semibold:{Bhrd7zp:"fl43uef"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),fk=e=>{"use no memo";const r=dk();return e.root.className=N(md.root,r.root,e.disabled&&r.disabled,r[e.size],e.weight==="semibold"&&r.semibold,e.root.className),e.required&&(e.required.className=N(md.required,r.required,e.disabled&&r.disabled,e.required.className)),e},Bt=m.forwardRef((e,r)=>{const t=ck(e,r);return fk(t),ae("useLabelStyles_unstable")(t),uk(t)});Bt.displayName="Label";const hk={error:m.createElement(z0,null),warning:m.createElement(r1,null),success:m.createElement(T0,null),none:void 0},gk=(e,r)=>{const{children:t,orientation:n="vertical",required:i=!1,validationState:o=e.validationMessage?"error":"none",size:s="medium"}=e,l=Ge("field-"),u=l+"__control",a=J(de("div",{...e,ref:r},["children"]),{elementType:"div"}),c=te(e.label,{defaultProps:{htmlFor:u,id:l+"__label",required:i,size:s},elementType:Bt}),d=te(e.validationMessage,{defaultProps:{id:l+"__validationMessage",role:o==="error"||o==="warning"?"alert":void 0},elementType:"div"}),g=te(e.hint,{defaultProps:{id:l+"__hint"},elementType:"div"}),f=hk[o],h=te(e.validationMessageIcon,{renderByDefault:!!f,defaultProps:{children:f},elementType:"span"});return{children:t,generatedControlId:u,orientation:n,required:i,size:s,validationState:o,components:{root:"div",label:Bt,validationMessage:"div",validationMessageIcon:"span",hint:"div"},root:a,label:c,validationMessageIcon:h,validationMessage:d,hint:g}},ho={root:"fui-Field",label:"fui-Field__label",validationMessage:"fui-Field__validationMessage",validationMessageIcon:"fui-Field__validationMessageIcon",hint:"fui-Field__hint"},vk=O({base:{mc9l5x:"f13qh94s"},horizontal:{Budl1dq:"f2wwaib",wkccdc:"f1645dqt"},horizontalNoLabel:{uwmqm3:["f15jqgz8","fggqkej"],Budl1dq:"f1c2z91y"}},{d:[".f13qh94s{display:grid;}",".f2wwaib{grid-template-columns:33% 1fr;}",".f1645dqt{grid-template-rows:auto auto auto 1fr;}",".f15jqgz8{padding-left:33%;}",".fggqkej{padding-right:33%;}",".f1c2z91y{grid-template-columns:1fr;}"]}),mk=O({vertical:{z8tnut:"fclwglc",Byoj8tv:"fywfov9",jrapky:"fyacil5"},verticalLarge:{z8tnut:"f1sl3k7w",Byoj8tv:"f1brlhvm",jrapky:"f8l5zjj"},horizontal:{z8tnut:"fp2oml8",Byoj8tv:"f1tdddsa",t21cq0:["fkujibs","f199hnxi"],Ijaq50:"f16hsg94",nk6f5a:"f1nzqi2z"},horizontalSmall:{z8tnut:"f1ywm7hm",Byoj8tv:"f14wxoun"},horizontalLarge:{z8tnut:"f1hqyr95",Byoj8tv:"fm4hlj0"}},{d:[".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".fyacil5{margin-bottom:var(--spacingVerticalXXS);}",".f1sl3k7w{padding-top:1px;}",".f1brlhvm{padding-bottom:1px;}",".f8l5zjj{margin-bottom:var(--spacingVerticalXS);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".fkujibs{margin-right:var(--spacingHorizontalM);}",".f199hnxi{margin-left:var(--spacingHorizontalM);}",".f16hsg94{grid-row-start:1;}",".f1nzqi2z{grid-row-end:-1;}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".f1hqyr95{padding-top:9px;}",".fm4hlj0{padding-bottom:9px;}"]}),pk=ie("r5c4z9l",null,[".r5c4z9l{margin-top:var(--spacingVerticalXXS);color:var(--colorNeutralForeground3);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}"]),bk=O({error:{sj55zd:"f1hcrxcs"},withIcon:{uwmqm3:["frawy03","fg4c52"]}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".frawy03{padding-left:calc(12px + var(--spacingHorizontalXS));}",".fg4c52{padding-right:calc(12px + var(--spacingHorizontalXS));}"]}),yk=ie("ra7h1uk","r1rh6bd7",[".ra7h1uk{display:inline-block;font-size:12px;margin-left:calc(-12px - var(--spacingHorizontalXS));margin-right:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}",".r1rh6bd7{display:inline-block;font-size:12px;margin-right:calc(-12px - var(--spacingHorizontalXS));margin-left:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}"]),wk=O({error:{sj55zd:"f1hcrxcs"},warning:{sj55zd:"f1k5f75o"},success:{sj55zd:"ffmvakt"}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}"]}),kk=e=>{"use no memo";const{validationState:r,size:t}=e,n=e.orientation==="horizontal",i=vk();e.root.className=N(ho.root,i.base,n&&i.horizontal,n&&!e.label&&i.horizontalNoLabel,e.root.className);const o=mk();e.label&&(e.label.className=N(ho.label,n&&o.horizontal,n&&t==="small"&&o.horizontalSmall,n&&t==="large"&&o.horizontalLarge,!n&&o.vertical,!n&&t==="large"&&o.verticalLarge,e.label.className));const s=yk(),l=wk();e.validationMessageIcon&&(e.validationMessageIcon.className=N(ho.validationMessageIcon,s,r!=="none"&&l[r],e.validationMessageIcon.className));const u=pk(),a=bk();return e.validationMessage&&(e.validationMessage.className=N(ho.validationMessage,u,r==="error"&&a.error,!!e.validationMessageIcon&&a.withIcon,e.validationMessage.className)),e.hint&&(e.hint.className=N(ho.hint,u,e.hint.className)),e},ya=m.forwardRef((e,r)=>{const t=gk(e,r);kk(t),ae("useFieldStyles_unstable")(t);const n=sk(t);return lk(t,n)});ya.displayName="Field";const xk=(e,r)=>{"use no memo";e=dn(e,{supportsLabelFor:!0,supportsRequired:!0});const{disabled:t=!1,required:n,shape:i="square",size:o="medium",labelPosition:s="after",onChange:l}=e,[u,a]=yt({defaultState:e.defaultChecked,state:e.checked,initialState:!1}),c=Vo({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","size","onChange"]}),d=u==="mixed",g=Ge("checkbox-",c.primary.id);let f;d?i==="circular"?f=m.createElement(w0,null):f=o==="large"?m.createElement(t1,null):m.createElement(e1,null):u&&(f=o==="large"?m.createElement(P0,null):m.createElement(Vc,null));const h={shape:i,checked:u,disabled:t,size:o,labelPosition:s,components:{root:"span",input:"input",indicator:"div",label:Bt},root:J(e.root,{defaultProps:{ref:Rr(),...c.root},elementType:"span"}),input:J(e.input,{defaultProps:{type:"checkbox",id:g,ref:r,checked:u===!0,...c.primary},elementType:"input"}),label:te(e.label,{defaultProps:{htmlFor:g,disabled:t,required:n,size:"medium"},elementType:Bt}),indicator:te(e.indicator,{renderByDefault:!0,defaultProps:{"aria-hidden":!0,children:f},elementType:"div"})};h.input.onChange=ee(b=>{const p=b.currentTarget.indeterminate?"mixed":b.currentTarget.checked;l==null||l(b,{checked:p}),a(p)});const v=Ne(h.input.ref);return h.input.ref=v,Fe(()=>{v.current&&(v.current.indeterminate=d)},[v,d]),h},_k=e=>(ne(e),ye(e.root,{children:[F(e.input,{}),e.labelPosition==="before"&&e.label&&F(e.label,{}),e.indicator&&F(e.indicator,{}),e.labelPosition==="after"&&e.label&&F(e.label,{})]})),fn={root:"fui-Checkbox",label:"fui-Checkbox__label",input:"fui-Checkbox__input",indicator:"fui-Checkbox__indicator"},Sk=ie("r1q22k1j","r18ze4k2",{r:[".r1q22k1j{position:relative;display:inline-flex;cursor:pointer;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r1q22k1j:focus{outline-style:none;}",".r1q22k1j:focus-visible{outline-style:none;}",".r1q22k1j[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1q22k1j[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r18ze4k2{position:relative;display:inline-flex;cursor:pointer;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r18ze4k2:focus{outline-style:none;}",".r18ze4k2:focus-visible{outline-style:none;}",".r18ze4k2[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r18ze4k2[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1q22k1j[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.r18ze4k2[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),Bk=O({unchecked:{Bi91k9c:"f3p8bqa",pv5h1i:"fium13f",lj723h:"f1r2dosr",Hnthvo:"f1729es6"},checked:{sj55zd:"f19n0e5",wkncrt:"f35ds98",zxk7z7:"f12mnkne",Hmsnfy:"fei9a8h",e6czan:"fix56y3",pv5h1i:"f1bcv2js",qbydtz:"f7dr4go",Hnthvo:"f1r5cpua"},mixed:{sj55zd:"f19n0e5",Hmsnfy:"f1l27tf0",zxk7z7:"fcilktj",pv5h1i:"f1lphd54",Bunfa6h:"f1obkvq7",Hnthvo:"f2gmbuh",B15ykmv:"f1oy4fa1"},disabled:{Bceei9c:"f158kwzp",sj55zd:"f1s2aq7o",Hmsnfy:"f1w7mfl5",zxk7z7:"fcoafq6",Bbusuzp:"f1dcs8yz",mrqfp9:"fxb3eh3"}},{h:[".f3p8bqa:hover{color:var(--colorNeutralForeground2);}",".fium13f:hover{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessibleHover);}",".fix56y3:hover{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundHover);}",".f1bcv2js:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundHover);}",".f1lphd54:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokeHover);}",".f1obkvq7:hover{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Hover);}"],a:[".f1r2dosr:active{color:var(--colorNeutralForeground1);}",".f1729es6:active{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessiblePressed);}",".f7dr4go:active{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundPressed);}",".f1r5cpua:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundPressed);}",".f2gmbuh:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokePressed);}",".f1oy4fa1:active{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Pressed);}"],d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f35ds98{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackground);}",".f12mnkne{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundInverted);}",".fei9a8h{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackground);}",".f1l27tf0{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStroke);}",".fcilktj{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1);}",".f158kwzp{cursor:default;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1w7mfl5{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeDisabled);}",".fcoafq6{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fxb3eh3{--fui-Checkbox__indicator--color:GrayText;}}",{m:"(forced-colors: active)"}]]}),Ck=ie("ruo9svu",null,[".ruo9svu{box-sizing:border-box;cursor:inherit;height:100%;margin:0;opacity:0;position:absolute;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));}"]),Pk=O({before:{j35jbq:["f1e31b4d","f1vgc2s3"]},after:{oyh7mz:["f1vgc2s3","f1e31b4d"]},large:{a9b677:"f1mq5jt6"}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f1mq5jt6{width:calc(20px + 2 * var(--spacingHorizontalS));}"]}),Tk=ie("rl7ci6d",null,[".rl7ci6d{align-self:flex-start;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--fui-Checkbox__indicator--color);background-color:var(--fui-Checkbox__indicator--backgroundColor);border-color:var(--fui-Checkbox__indicator--borderColor, var(--colorNeutralStrokeAccessible));border-style:solid;border-width:var(--strokeWidthThin);border-radius:var(--borderRadiusSmall);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;font-size:12px;height:16px;width:16px;}"]),Ek=O({large:{Be2twd7:"f4ybsrx",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9"}},{d:[".f4ybsrx{font-size:16px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}]]}),Nk=O({base:{qb2dma:"f7nlbp4",sj55zd:"f1ym3bx4",Bceei9c:"fpo1scq",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1f5q0n8"},before:{z189sj:["f7x41pl","fruq291"]},after:{uwmqm3:["fruq291","f7x41pl"]},medium:{B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},large:{B6of3ja:"f1xlvstr",jrapky:"f49ad5g"}},{d:[".f7nlbp4{align-self:center;}",".f1ym3bx4{color:inherit;}",".fpo1scq{cursor:inherit;}",[".f1f5q0n8{padding:var(--spacingVerticalS) var(--spacingHorizontalS);}",{p:-1}],".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}",".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}"]}),Rk=e=>{"use no memo";const{checked:r,disabled:t,labelPosition:n,shape:i,size:o}=e,s=Sk(),l=Bk();e.root.className=N(fn.root,s,t?l.disabled:r==="mixed"?l.mixed:r?l.checked:l.unchecked,e.root.className);const u=Ck(),a=Pk();e.input.className=N(fn.input,u,o==="large"&&a.large,a[n],e.input.className);const c=Tk(),d=Ek();e.indicator&&(e.indicator.className=N(fn.indicator,c,o==="large"&&d.large,i==="circular"&&d.circular,e.indicator.className));const g=Nk();return e.label&&(e.label.className=N(fn.label,g.base,g[o],g[n],e.label.className)),e},wa=m.forwardRef((e,r)=>{const t=xk(e,r);return Rk(t),ae("useCheckboxStyles_unstable")(t),_k(t)});wa.displayName="Checkbox";const pd=Yo({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});pd.Provider;const zk={activeOption:void 0,focusVisible:!1,multiselect:!1,getOptionById(){},getOptionsMatchingValue(){return[]},registerOption(){return()=>{}},selectedOptions:[],onOptionClick(){},onActiveDescendantChange(){},selectOption(){},setActiveOption(){}},go=Yo(void 0),Qe=e=>Ui(go,(r=zk)=>e(r)),Dk=go.Provider;function Fk(e){const{appearance:r,open:t,getOptionById:n,getOptionsMatchingValue:i,registerOption:o,selectedOptions:s,selectOption:l,setOpen:u,size:a,activeDescendantController:c,onOptionClick:d,onActiveDescendantChange:g}=e,f={activeOption:void 0,appearance:r,focusVisible:!1,open:t,registerOption:o,selectedOptions:s,selectOption:l,setActiveOption:()=>null,setOpen:u,size:a},h={activeOption:void 0,focusVisible:!1,getOptionById:n,getOptionsMatchingValue:i,registerOption:o,selectedOptions:s,selectOption:l,setActiveOption:()=>null,onOptionClick:d,onActiveDescendantChange:g},v=m.useMemo(()=>({controller:c}),[c]);return{combobox:f,activeDescendant:v,listbox:h}}function Ik(e){const r=Ki(go),{getOptionById:t,getOptionsMatchingValue:n,multiselect:i,registerOption:o,selectedOptions:s,selectOption:l,activeDescendantController:u}=e,a=Qe(v=>v.registerOption),c=Qe(v=>v.onOptionClick),d=Qe(v=>v.onActiveDescendantChange),f={activeOption:void 0,focusVisible:!1,getOptionById:t,getOptionsMatchingValue:n,multiselect:i,registerOption:r?a:o,selectedOptions:s,selectOption:l,setActiveOption:()=>{},onOptionClick:c,onActiveDescendantChange:d},h=m.useMemo(()=>({controller:u}),[u]);return{listbox:f,activeDescendant:h}}function hn(e,r={}){const{open:t=!0,multiselect:n=!1}=r,i=e.key,{altKey:o,ctrlKey:s,key:l,metaKey:u}=e;return l.length===1&&i!==gt&&!o&&!s&&!u?"Type":t?i===Jo&&o||i===rr||!n&&i===gt?"CloseSelect":n&&i===gt?"Select":i===Qi?"Close":i===Xi?"Next":i===Jo?"Previous":i===Fc?"First":i===Dc?"Last":i===a0?"PageUp":i===i0?"PageDown":i===n0?"Tab":"None":i===Xi||i===Jo||i===rr||i===gt?"Open":"None"}const bd=()=>{const e=m.useRef(new Map),r=m.useMemo(()=>({getCount:()=>e.current.size,getOptionAtIndex:()=>{},getIndexOfId:()=>-1,getOptionById:a=>e.current.get(a),getOptionsMatchingText:a=>Array.from(e.current.values()).filter(({text:c})=>a(c)),getOptionsMatchingValue:a=>{const c=[];for(const d of e.current.values())a(d.value)&&c.push(d);return c}}),[]),t=m.useCallback(n=>(e.current.set(n.id,n),()=>e.current.delete(n.id)),[]);return{...r,options:Array.from(e.current.values()),registerOption:t}},yd=e=>{const{defaultSelectedOptions:r,multiselect:t,onOptionSelect:n}=e,[i,o]=yt({state:e.selectedOptions,defaultState:r,initialState:[]}),s=m.useCallback((u,a)=>{if(a.disabled)return;let c=[a.value];if(t){const d=i.findIndex(g=>g===a.value);d>-1?c=[...i.slice(0,d),...i.slice(d+1)]:c=[...i,a.value]}o(c),n==null||n(u,{optionValue:a.value,optionText:a.text,selectedOptions:c})},[n,t,i,o]);return{clearSelection:u=>{o([]),n==null||n(u,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:s,selectedOptions:i}},gn={root:"fui-Option",checkIcon:"fui-Option__checkIcon"},jk=O({root:{Bt984gj:"f122n59",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",sj55zd:"f19n0e5",i8kkvl:"f1ufnopg",Bceei9c:"f1k6fduh",mc9l5x:"f22iagw",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fm5eomj",qhf8xq:"f10pi13n",Jwef8y:"f1knas48",Bi91k9c:"feu1g3u",zqbkvg:"fo79ri9",h82x05:["f1osiabc","f1e8le25"],cqj998:"f1yusjty",j3hlsh:["f1e8le25","f1osiabc"],ecr2s2:"fb40n2d",lj723h:"f1g4hkjv",Btxx2vb:"f1lnr2zp",sltcwy:["f1ogfk9z","f1g7j8ec"],dnwvvm:"fiuf46r",Blyvkvs:["f1g7j8ec","f1ogfk9z"]},active:{Bowz1zl:"f11vrvdw",oxogb1:"f17hxjb7",Ix2sn8:"f1dha69c",q7v32p:"f1lm7500",B7cbj04:0,Bewtojm:0,b50fsz:0,B1wzb3v:0,Bqwk70n:0,B37u8z8:0,avt0cx:0,f0sref:0,B9fkznv:0,Be3o27t:0,Bertapg:0,B53xpsf:0,Bsv72rj:0,B39dzdd:0,Btq9bd3:0,Bqfxd14:0,atup0s:"fo7xqb",Fffuxt:0,Bttcd12:0,Beitzug:0,Bqougee:0,B86i8pi:"f1kurthe",Bhijsxg:"fwq15dy",kktds4:"f1pb3wry",Bmau3bo:["ftjv2f4","f1flhb1f"],npektv:["f1flhb1f","ftjv2f4"]},disabled:{sj55zd:"f1s2aq7o",Jwef8y:"f9ql6rf",Bi91k9c:"fvgxktp",zqbkvg:"f185j3qj",h82x05:["f1dligi3","f1vydzie"],cqj998:"fjw1di3",j3hlsh:["f1vydzie","f1dligi3"],ecr2s2:"fgj9um3",lj723h:"f19wldhg",Btxx2vb:"f1ss0kt2",sltcwy:["f1t6oli3","fjy9ci8"],dnwvvm:"fresaxk",Blyvkvs:["fjy9ci8","f1t6oli3"],Bbusuzp:"f1dcs8yz"},selected:{},checkIcon:{Bnnss6s:"fi64zpg",Be2twd7:"fod5ikn",Frg6f3:["f18b9hdq","fn6qj8t"],t21cq0:["f1xk557c","f1h9en5y"],Bcdw1i0:"fd7fpy0",Bo70h7d:"fvc9v3g"},selectedCheck:{Bcdw1i0:"f1022m68"},multiselectCheck:{Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f1l3cf7o",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fq9zq91",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bkfmm31:"f1w9h62z",Be2twd7:"f1ugzwwg",Bqenvij:"fd461yt",a9b677:"fjw5fx7",Bcdw1i0:"f1022m68"},selectedMultiselectCheck:{De3pzq:"ftywsgz",sj55zd:"fqpbvvt",g2u3we:"f3xi7mh",h3c5rm:["ftovhe4","f1wczvin"],B9xav0g:"f68vbr6",zhjwy3:["f1wczvin","ftovhe4"]},checkDisabled:{sj55zd:"f1s2aq7o",Bbusuzp:"f1dcs8yz"},multiselectCheckDisabled:{g2u3we:"f1r1t4y1",h3c5rm:["fmj8ijw","figx54m"],B9xav0g:"f360ss8",zhjwy3:["figx54m","fmj8ijw"]}},{d:[".f122n59{align-items:center;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".f1k6fduh{cursor:pointer;}",".f22iagw{display:flex;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".fm5eomj{padding:var(--spacingVerticalSNudge) var(--spacingHorizontalS);}",{p:-1}],".f10pi13n{position:relative;}",'.f11vrvdw[data-activedescendant-focusvisible]::after{content:"";}',".f17hxjb7[data-activedescendant-focusvisible]::after{position:absolute;}",".f1dha69c[data-activedescendant-focusvisible]::after{pointer-events:none;}",".f1lm7500[data-activedescendant-focusvisible]::after{z-index:1;}",[".fo7xqb[data-activedescendant-focusvisible]::after{border:2px solid var(--colorStrokeFocus2);}",{p:-2}],[".f1kurthe[data-activedescendant-focusvisible]::after{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fwq15dy[data-activedescendant-focusvisible]::after{top:-2px;}",".f1pb3wry[data-activedescendant-focusvisible]::after{bottom:-2px;}",".ftjv2f4[data-activedescendant-focusvisible]::after{left:-2px;}",".f1flhb1f[data-activedescendant-focusvisible]::after{right:-2px;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fi64zpg{flex-shrink:0;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f18b9hdq{margin-left:calc(var(--spacingHorizontalXXS) * -1);}",".fn6qj8t{margin-right:calc(var(--spacingHorizontalXXS) * -1);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".fd7fpy0{visibility:hidden;}",".fvc9v3g svg{display:block;}",".f1022m68{visibility:visible;}",[".f1l3cf7o{border:var(--strokeWidthThin) solid var(--colorNeutralStrokeAccessible);}",{p:-2}],[".fq9zq91{border-radius:var(--borderRadiusSmall);}",{p:-1}],".f1ewtqcl{box-sizing:border-box;}",".f4d9j23{justify-content:center;}",".f1w9h62z{fill:currentColor;}",".f1ugzwwg{font-size:12px;}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".ftywsgz{background-color:var(--colorCompoundBrandBackground);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}",".f3xi7mh{border-top-color:var(--colorCompoundBrandBackground);}",".ftovhe4{border-right-color:var(--colorCompoundBrandBackground);}",".f1wczvin{border-left-color:var(--colorCompoundBrandBackground);}",".f68vbr6{border-bottom-color:var(--colorCompoundBrandBackground);}",".f1r1t4y1{border-top-color:var(--colorNeutralForegroundDisabled);}",".fmj8ijw{border-right-color:var(--colorNeutralForegroundDisabled);}",".figx54m{border-left-color:var(--colorNeutralForegroundDisabled);}",".f360ss8{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".fo79ri9:hover .fui-Option__checkIcon{border-top-color:var(--colorNeutralForeground1Hover);}",".f1osiabc:hover .fui-Option__checkIcon{border-right-color:var(--colorNeutralForeground1Hover);}",".f1e8le25:hover .fui-Option__checkIcon{border-left-color:var(--colorNeutralForeground1Hover);}",".f1yusjty:hover .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForeground1Hover);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f185j3qj:hover .fui-Option__checkIcon{border-top-color:var(--colorNeutralForegroundDisabled);}",".f1dligi3:hover .fui-Option__checkIcon{border-right-color:var(--colorNeutralForegroundDisabled);}",".f1vydzie:hover .fui-Option__checkIcon{border-left-color:var(--colorNeutralForegroundDisabled);}",".fjw1di3:hover .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}",".f1lnr2zp:active .fui-Option__checkIcon{border-top-color:var(--colorNeutralForeground1Hover);}",".f1ogfk9z:active .fui-Option__checkIcon{border-right-color:var(--colorNeutralForeground1Hover);}",".f1g7j8ec:active .fui-Option__checkIcon{border-left-color:var(--colorNeutralForeground1Hover);}",".fiuf46r:active .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForeground1Hover);}",".fgj9um3:active{background-color:var(--colorTransparentBackground);}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1ss0kt2:active .fui-Option__checkIcon{border-top-color:var(--colorNeutralForegroundDisabled);}",".f1t6oli3:active .fui-Option__checkIcon{border-right-color:var(--colorNeutralForegroundDisabled);}",".fjy9ci8:active .fui-Option__checkIcon{border-left-color:var(--colorNeutralForegroundDisabled);}",".fresaxk:active .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),Ak=e=>{"use no memo";const{disabled:r,multiselect:t,selected:n}=e,i=jk();return e.root.className=N(gn.root,i.root,i.active,r&&i.disabled,n&&i.selected,e.root.className),e.checkIcon&&(e.checkIcon.className=N(gn.checkIcon,i.checkIcon,t&&i.multiselectCheck,n&&i.selectedCheck,n&&t&&i.selectedMultiselectCheck,r&&i.checkDisabled,r&&t&&i.multiselectCheckDisabled,e.checkIcon.className)),e},wd={activeOption:void 0,focusVisible:!1,setActiveOption:()=>null},Ok=(e,r)=>{"use no memo";const{multiselect:t,disableAutoFocus:n=!1}=e,i=bd(),{listboxRef:o,activeParentRef:s,controller:l}=Hc({matchOption:A=>A.classList.contains(gn.root)}),u=Ki(go),a=Qe(A=>A.onActiveDescendantChange),c=Qe(A=>A.getOptionById),d=Qe(A=>A.getOptionsMatchingValue),g=u?c:i.getOptionById,f=u?d:i.getOptionsMatchingValue,h=m.useMemo(()=>{let A=null;const G=X=>{const Q=X;a==null||a(Q)};return X=>{if(!X){A==null||A.removeEventListener("activedescendantchange",G);return}A=X,A.addEventListener("activedescendantchange",G)}},[a]),[v,b]=m.useState(!1);Pc(b);const p=Ac(),y=l0(),k=y?p.controller:l,{clearSelection:w,selectedOptions:x,selectOption:B}=yd(e),S=A=>{const G=hn(A,{open:!0}),X=k.active(),Q=X?g(X):null;switch(G){case"First":case"Last":case"Next":case"Previous":case"PageDown":case"PageUp":case"CloseSelect":case"Select":A.preventDefault();break}switch(G){case"Next":Q?k.next():k.first();break;case"Previous":Q?k.prev():k.first();break;case"PageUp":case"First":k.first();break;case"PageDown":case"Last":k.last();break;case"Select":case"CloseSelect":Q&&B(A,Q);break}},C=Qe(A=>A.selectedOptions),E=Qe(A=>A.selectOption),I=u?{selectedOptions:C,selectOption:E,...wd}:{selectedOptions:x,selectOption:B,...wd};m.useEffect(()=>{if(!y){if(k.hideFocusVisibleAttributes(),!n)if(!t&&I.selectedOptions.length>0){const A=f(G=>G===I.selectedOptions[0]).pop();A!=null&&A.id&&k.focus(A.id)}else k.first();return()=>{k.blur()}}},[]);const $=m.useCallback(()=>{y||(k.showFocusVisibleAttributes(),v&&k.scrollActiveIntoView())},[k,y,v]),U=m.useCallback(()=>{y||k.hideFocusVisibleAttributes()},[k,y]),T={components:{root:"div"},root:J(de("div",{ref:Ne(r,s,o,h),role:t?"menu":"listbox",tabIndex:0,...e}),{elementType:"div"}),standalone:!u,multiselect:t,clearSelection:w,activeDescendantController:k,onActiveDescendantChange:a,...i,...I};return T.root.onKeyDown=ee(Re(T.root.onKeyDown,S)),T.root.onFocus=ee(Re(T.root.onFocus,$)),T.root.onBlur=ee(Re(T.root.onBlur,U)),T},qk=(e,r)=>(ne(e),F(jc,{value:r.activeDescendant,children:F(go.Provider,{value:r.listbox,children:F(e.root,{})})})),Mk={root:"fui-Listbox"},Lk=O({root:{De3pzq:"fxugw4r",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Bf4jedk:"f3hsy1e",Bmxbyg5:"f5zp4f",Bw0xxkn:0,oeaueh:0,Bpd4iqm:0,Befb4lg:"f1iepc6i",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1t35pdg",Belr9w4:"fiut8dr"}},{d:[".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f3hsy1e{min-width:160px;}",".f5zp4f{overflow-y:auto;}",[".f1iepc6i{outline:1px solid var(--colorTransparentStroke);}",{p:-1}],[".f1t35pdg{padding:var(--spacingHorizontalXS);}",{p:-1}],".fiut8dr{row-gap:var(--spacingHorizontalXXS);}"]}),Hk=e=>{"use no memo";const r=Lk();return e.root.className=N(Mk.root,r.root,e.root.className),e},ka=m.forwardRef((e,r)=>{const t=Ok(e,r),n=Ik(t);return Hk(t),ae("useListboxStyles_unstable")(t),qk(t,n)});ka.displayName="Listbox";function Wk(e,r){if(e!==void 0)return e;let t="",n=!1;return m.Children.forEach(r,i=>{typeof i=="string"?t+=i:n=!0}),n&&console.warn("Provide a `text` prop to Option components when they contain non-string children."),t}const Vk=(e,r)=>{const{children:t,disabled:n,text:i,value:o}=e,s=m.useRef(null),l=Wk(i,t),u=o??l,a=Ge("fluent-option",e.id),c=m.useMemo(()=>({id:a,disabled:n,text:l,value:u}),[a,n,l,u]),{controller:d}=Ac(),g=Qe(w=>w.multiselect),f=Qe(w=>w.registerOption),h=Qe(w=>{const x=w.selectedOptions;return u!==void 0&&x.find(B=>B===u)!==void 0}),v=Qe(w=>w.selectOption),b=Qe(w=>w.onOptionClick);let p=m.createElement(p0,null);g&&(p=h?m.createElement(Vc,null):"");const y=w=>{var x;if(n){w.preventDefault();return}d.focus(a),v(w,c),b(w),(x=e.onClick)===null||x===void 0||x.call(e,w)};m.useEffect(()=>{if(a&&s.current)return f(c,s.current)},[a,c,f]);const k=g?{role:"menuitemcheckbox","aria-checked":h}:{role:"option","aria-selected":h};return{components:{root:"div",checkIcon:"span"},root:J(de("div",{ref:Ne(r,s),"aria-disabled":n?"true":void 0,id:a,...k,...e,onClick:y}),{elementType:"div"}),checkIcon:te(e.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true",children:p},elementType:"span"}),disabled:n,multiselect:g,selected:h,focusVisible:!1,active:!1}},$k=e=>(ne(e),ye(e.root,{children:[e.checkIcon&&F(e.checkIcon,{}),e.root.children]})),kd=m.forwardRef((e,r)=>{const t=Vk(e,r);return Ak(t),ae("useOptionStyles_unstable")(t),$k(t)});kd.displayName="Option";const Gk=e=>{"use no memo";const{appearance:r="outline",disableAutoFocus:t,children:n,clearable:i=!1,editable:o=!1,inlinePopup:s=!1,mountNode:l=void 0,multiselect:u,onOpenChange:a,size:c="medium",activeDescendantController:d,freeform:g=!1,disabled:f=!1,onActiveOptionChange:h=null}=e,v=bd(),{getOptionsMatchingValue:b}=v,{getOptionById:p}=v,y=m.useCallback(()=>{const L=d.active();return L?p(L):void 0},[d,p]),k=y(),w=m.useCallback(L=>{let oe;if(typeof L=="function"){const be=y();oe=L(be)}oe?d.focus(oe.id):d.blur()},[d,y]),[x,B]=m.useState(!1),[S,C]=m.useState(!1),E=m.useRef(!1),I=Il(),[$,U]=yt({state:e.value,initialState:void 0}),{selectedOptions:T,selectOption:A,clearSelection:G}=yd(e),X=m.useCallback((L,oe)=>{zn.unstable_batchedUpdates(()=>{U(void 0),A(L,oe)})},[U,A]),Q=m.useMemo(()=>{if($!==void 0)return $;if(I&&e.defaultValue!==void 0)return e.defaultValue;const L=b(oe=>T.includes(oe)).map(oe=>oe.text);return u?o?"":L.join(", "):L[0]},[$,o,b,u,T]),[z,q]=yt({state:e.open,defaultState:e.defaultOpen,initialState:!1}),W=m.useCallback((L,oe)=>{f||(a==null||a(L,{open:oe}),zn.unstable_batchedUpdates(()=>{!oe&&!g&&U(void 0),q(oe)}))},[a,q,U,g,f]);m.useEffect(()=>{if(z){if(!u&&T.length>0){const L=b(oe=>oe===T[0]).pop();L!=null&&L.id&&d.focus(L.id)}}else d.blur()},[z,d]),m.useEffect(()=>{z&&!t&&!d.active()&&d.first()},[z,n,t,d,p]);const se=ee(L=>{const oe=L.detail.previousId?v.getOptionById(L.detail.previousId):null,be=v.getOptionById(L.detail.id);h==null||h(L,{event:L,type:"change",previousOption:oe,nextOption:be})});return{...v,freeform:g,disabled:f,selectOption:X,clearSelection:G,selectedOptions:T,activeOption:k,appearance:r,clearable:i,focusVisible:x,ignoreNextBlur:E,inlinePopup:s,mountNode:l,open:z,hasFocus:S,setActiveOption:w,setFocusVisible:B,setHasFocus:C,setOpen:W,setValue:U,size:c,value:Q,multiselect:u,onOptionClick:ee(L=>{u||W(L,!1)}),onActiveDescendantChange:se}};function Uk(e){const{positioning:r}=e,n={position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:["above","after","after-top","before","before-top"],matchTargetSize:"width",autoSize:!0,...nd(r)},{targetRef:i,containerRef:o}=Mw(n);return[o,i]}function Kk(e,r,t){const{state:{multiselect:n},triggerRef:i,defaultProps:o}=t,s=Ge("fluent-listbox",_l(e)?e.id:void 0),l=te(e,{renderByDefault:!0,elementType:ka,defaultProps:{id:s,multiselect:n,tabIndex:void 0,...o}}),u=dn({id:s},{supportsLabelFor:!0});l&&!l["aria-label"]&&!l["aria-labelledby"]&&u["aria-labelledby"]&&(l["aria-labelledby"]=u["aria-labelledby"]);const a=ee(Re(g=>{g.preventDefault()},l==null?void 0:l.onMouseDown)),c=ee(Re(g=>{var f;g.preventDefault(),(f=i.current)===null||f===void 0||f.focus()},l==null?void 0:l.onClick)),d=Ne(l==null?void 0:l.ref,r);return l&&(l.ref=d,l.onMouseDown=a,l.onClick=c),l}function Xk(e,r,t){const{state:{open:n,setOpen:i,setHasFocus:o},defaultProps:s,elementType:l,activeDescendantController:u}=t,a=J(e,{defaultProps:{type:"text","aria-expanded":n,role:"combobox",...typeof s=="object"&&s},elementType:l}),c=m.useRef(null);return a.ref=Ne(c,a.ref,r),a.onBlur=Re(d=>{i(d,!1),o(!1)},a.onBlur),a.onFocus=Re(d=>{d.target===d.currentTarget&&o(!0)},a.onFocus),a.onClick=Re(d=>{i(d,!n)},a.onClick),a.onKeyDown=Re(Zk({activeDescendantController:u,...t.state}),a.onKeyDown),a}function Zk(e){const{activeDescendantController:r,getOptionById:t,setOpen:n,selectOption:i,multiselect:o,open:s}=e,l=m.useCallback(()=>{const v=r.active();return v?t(v):void 0},[r,t]),u=()=>{r.first()},a=()=>{r.last()},c=v=>{v?r.next():r.first()},d=v=>{v?r.prev():r.first()},g=()=>{for(let v=0;v<10;v++)r.prev()},f=()=>{for(let v=0;v<10;v++)r.next()},h=Jb();return ee(v=>{const b=hn(v,{open:s,multiselect:o}),p=l();switch(b){case"First":case"Last":case"Next":case"Previous":case"PageDown":case"PageUp":case"Open":case"Close":case"CloseSelect":case"Select":v.preventDefault();break}switch(h(!0),b){case"First":u();break;case"Last":a();break;case"Next":c(p);break;case"Previous":d(p);break;case"PageDown":f();break;case"PageUp":g();break;case"Open":n(v,!0);break;case"Close":v.stopPropagation(),n(v,!1);break;case"CloseSelect":!o&&!(p!=null&&p.disabled)&&n(v,!1);case"Select":p&&i(v,p);break;case"Tab":!o&&p&&i(v,p);break}})}function Qk(e,r,t){"use no memo";const{state:{open:n,value:i,selectOption:o,setValue:s,multiselect:l,selectedOptions:u,clearSelection:a,getOptionById:c,setOpen:d},freeform:g,defaultProps:f,activeDescendantController:h}=t,v=C=>{if(!n&&!g){const E=h.active(),I=E?c(E):null;i&&I&&i.trim().toLowerCase()===(I==null?void 0:I.text.toLowerCase())&&o(C,I),s(void 0)}},b=C=>{const E=C==null?void 0:C.trim().toLowerCase();if(!E||E.length===0){h.blur();return}const I=U=>U.toLowerCase().indexOf(E)===0,$=h.find(U=>{const T=c(U);return!!T&&I(T.text)});if(!$){h.blur();return}return c($)},p=C=>{const E=C.target.value;s(E);const I=b(E);!l&&u.length===1&&(E.length<1||!I)&&a(C)},y=Xk(e,r,{state:t.state,defaultProps:f,elementType:"input",activeDescendantController:h});y.onChange=Re(y.onChange,p),y.onBlur=Re(y.onBlur,v);const[k,w]=m.useState(!1),x=m.useRef(!1),B=y.onKeyDown,S=ee(C=>{!n&&hn(C)==="Type"&&d(C,!0),C.key===zc||C.key===Zi?w(!0):w(!1);const E=hn(C,{open:n,multiselect:l});if(E==="Type"?x.current=!0:(E==="Open"&&C.key!==" "||E==="Next"||E==="Previous"||E==="First"||E==="Last"||E==="PageUp"||E==="PageDown")&&(x.current=!1),(x.current||!n)&&C.key===" "){var I;e==null||(I=e.onKeyDown)===null||I===void 0||I.call(e,C);return}B==null||B(C)});return y.onKeyDown=S,k&&(y["aria-activedescendant"]=void 0),y}const Yk=(e,r)=>{"use no memo";var t,n;e=dn(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const{listboxRef:i,activeParentRef:o,controller:s}=Hc({matchOption:L=>L.classList.contains(gn.root)}),l=Gk({...e,editable:!0,activeDescendantController:s}),{clearable:u,clearSelection:a,disabled:c,multiselect:d,open:g,selectedOptions:f,setOpen:h,value:v,hasFocus:b}=l,[p,y]=Uk(e),{disableAutoFocus:k=!1,freeform:w,inlinePopup:x}=e,B=Ge("combobox-"),{primary:S,root:C}=Vo({props:e,primarySlotTagName:"input",excludedPropNames:["children","size"]}),E=m.useRef(null),I=Kk(e.listbox,Ne(p,i),{state:l,triggerRef:E,defaultProps:{children:e.children,disableAutoFocus:k}});var $;const U=Qk(($=e.input)!==null&&$!==void 0?$:{},Ne(E,o,r),{state:l,freeform:w,defaultProps:{type:"text",value:v??"","aria-controls":g?I==null?void 0:I.id:void 0,...S},activeDescendantController:s}),T=J(e.root,{defaultProps:{"aria-owns":!x&&g?I==null?void 0:I.id:void 0,...C},elementType:"div"});T.ref=Ne(T.ref,y);const A=f.length>0&&!c&&u&&!d,G={components:{root:"div",input:"input",expandIcon:"span",listbox:ka,clearIcon:"span"},root:T,input:U,listbox:g||b?I:void 0,clearIcon:te(e.clearIcon,{defaultProps:{"aria-hidden":"true",children:m.createElement(Wc,null)},elementType:"span",renderByDefault:!0}),expandIcon:te(e.expandIcon,{renderByDefault:!0,defaultProps:{"aria-disabled":c?"true":void 0,"aria-expanded":g,children:m.createElement(y0,null),role:"button"},elementType:"span"}),showClearIcon:A,activeDescendantController:s,...l},{targetDocument:X}=_e();Ym({element:X,callback:L=>h(L,!1),refs:[E,p,y],disabled:!g});const{onMouseDown:Q}=G.expandIcon||{},z=ee(Re(Q,L=>{var oe;L.preventDefault(),G.setOpen(L,!G.open),(oe=E.current)===null||oe===void 0||oe.focus()}));if(G.expandIcon){G.expandIcon.onMouseDown=z;const L=G.expandIcon["aria-label"]||G.expandIcon["aria-labelledby"],oe="Open";if(!L)if(e["aria-labelledby"]){var q;const be=(q=G.expandIcon.id)!==null&&q!==void 0?q:`${B}-chevron`,dt=`${be} ${G.input["aria-labelledby"]}`;G.expandIcon["aria-label"]=oe,G.expandIcon.id=be,G.expandIcon["aria-labelledby"]=dt}else e["aria-label"]?G.expandIcon["aria-label"]=`${oe} ${e["aria-label"]}`:G.expandIcon["aria-label"]=oe}const W=ee(Re((t=G.clearIcon)===null||t===void 0?void 0:t.onMouseDown,L=>{L.preventDefault()})),se=ee(Re((n=G.clearIcon)===null||n===void 0?void 0:n.onClick,L=>{a(L)}));return G.clearIcon&&(G.clearIcon.onMouseDown=W,G.clearIcon.onClick=se),d&&(G.clearIcon=void 0),process.env.NODE_ENV!=="production"&&m.useEffect(()=>{u&&d&&console.error('[@fluentui/react-combobox] "clearable" prop is not supported in multiselect mode.')},[u,d]),G},Jk=(e,r)=>(ne(e),F(e.root,{children:F(jc,{value:r.activeDescendant,children:F(Dk,{value:r.listbox,children:ye(pd.Provider,{value:r.combobox,children:[F(e.input,{}),e.clearIcon&&F(e.clearIcon,{}),e.expandIcon&&F(e.expandIcon,{}),e.listbox&&(e.inlinePopup?F(e.listbox,{}):F(ba,{mountNode:e.mountNode,children:F(e.listbox,{})}))]})})})})),vo={root:"fui-Combobox",input:"fui-Combobox__input",expandIcon:"fui-Combobox__expandIcon",clearIcon:"fui-Combobox__clearIcon",listbox:"fui-Combobox__listbox"},ex=O({root:{Bt984gj:"f122n59",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",B7ck84d:"f1ewtqcl",i8kkvl:"f14mj54c",mc9l5x:"fwk3njj",Budl1dq:"fz17x9o",Brf1p80:"f1869bpl",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",ha4doy:"fmrv4ls",Bbr2w1p:"f14a1fxs",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"f145g4dw",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],B1q35kw:0,Bw17bha:0,Bcgy8vk:0,Bjuhk93:"f1mnjydx",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51"},listbox:{E5pizo:"f1hg901r",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bxyxcbc:"fmmk62d",B7ck84d:"f1ewtqcl"},listboxCollapsed:{mc9l5x:"fjseox"},inlineListbox:{Bj3rh1h:"f19g0ac"},small:{Bqenvij:"frvgh55",z189sj:["fdw0yi8","fk8j09s"]},medium:{Bqenvij:"f1d2rq10",z189sj:["f11gcy0p","f1ng84yb"]},large:{i8kkvl:"f1rjii52",Bqenvij:"fbhnoac",z189sj:["fw5db7e","f1uw59to"]},outline:{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:"f1c1zstj",oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fhz96rm"},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"f1z0osm6",B50zh58:["f4ruux4","f1assf6x"],Bvq3b66:"f1b473iu",Brahy3i:["f381qr8","ft4skwv"],zoxjo1:"f1qzcrsd",an54nd:["ft4skwv","f381qr8"]},underline:{De3pzq:"f1c21dwh",B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:"f9ez7ne",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fokr779"},"filled-lighter":{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f88035w"},"filled-darker":{De3pzq:"f16xq7d1",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f88035w"},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"]}},{d:[".f122n59{align-items:center;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1ewtqcl{box-sizing:border-box;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".fwk3njj{display:inline-grid;}",".fz17x9o{grid-template-columns:1fr auto;}",".f1869bpl{justify-content:space-between;}",".f1exfvgq{min-width:250px;}",".f10pi13n{position:relative;}",".fmrv4ls{vertical-align:middle;}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".f145g4dw::after{height:max(2px, var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",[".f1mnjydx::after{border-bottom:var(--strokeWidthThick) solid var(--colorCompoundBrandStroke);}",{p:-1}],".f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".f1hg901r{box-shadow:var(--shadow16);}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".f19g0ac{z-index:1;}",".frvgh55{height:24px;}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1d2rq10{height:32px;}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fbhnoac{height:40px;}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",[".fhz96rm{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);}",{p:-2}],".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".f9ez7ne{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStrokeAccessible);}",{p:-1}],[".fokr779{border-radius:0;}",{p:-1}],[".f88035w{border:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-2}],".f16xq7d1{background-color:var(--colorNeutralBackground3);}",[".f88035w{border:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-2}],".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}"],w:[".f14a1fxs:focus-within{outline-width:2px;}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".f1b473iu:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".f381qr8:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".ft4skwv:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1qzcrsd:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1z0osm6:active{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"]}),tx=O({input:{qb2dma:"f1ub7u0d",De3pzq:"f1c21dwh",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f3bhgqh",sj55zd:"f19n0e5",Bahqtrf:"fk6fouc",Brovlpu:"ftqa4ok",yvdlaj:"fwyc1cq",B3o7kgh:"f13ta7ih"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["fxe2rs","f1gflqzi"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["fzy81xo","f58b53b"]},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f1kdav7a","footqm6"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".f1ub7u0d{align-self:stretch;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".f3bhgqh{border:none;}",{p:-2}],".f19n0e5{color:var(--colorNeutralForeground1);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fwyc1cq::-webkit-input-placeholder{color:var(--colorNeutralForeground4);}",".fwyc1cq::-moz-placeholder{color:var(--colorNeutralForeground4);}",".f13ta7ih::-webkit-input-placeholder{opacity:1;}",".f13ta7ih::-moz-placeholder{opacity:1;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",[".fxe2rs{padding:0 0 0 calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",{p:-1}],[".f1gflqzi{padding:0 calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS)) 0 0;}",{p:-1}],".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".fzy81xo{padding:0 0 0 calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",{p:-1}],[".f58b53b{padding:0 calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS)) 0 0;}",{p:-1}],".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",[".f1kdav7a{padding:0 0 0 calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",{p:-1}],[".footqm6{padding:0 calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge)) 0 0;}",{p:-1}],".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"],f:[".ftqa4ok:focus{outline-style:none;}"]}),rx=O({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",Bceei9c:"f1k6fduh",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Bo70h7d:"fvc9v3g"},hidden:{mc9l5x:"fjseox"},visuallyHidden:{Bh84pgu:"f1ekcaio",Bqenvij:"f1mpe4l3",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1jlpb2r",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1c5fvqg",a9b677:"frkrog8",qhf8xq:"f1euv43f"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".f1k6fduh{cursor:pointer;}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".fvc9v3g svg{display:block;}",".fjseox{display:none;}",".f1ekcaio{clip:rect(0px, 0px, 0px, 0px);}",".f1mpe4l3{height:1px;}",[".f1jlpb2r{margin:-1px;}",{p:-1}],[".f1a3p1vp{overflow:hidden;}",{p:-1}],[".f1c5fvqg{padding:0px;}",{p:-1}],".frkrog8{width:1px;}",".f1euv43f{position:absolute;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}"]}),ox=e=>{"use no memo";const{appearance:r,open:t,size:n,showClearIcon:i}=e,o=`${e.input["aria-invalid"]}`=="true",s=e.input.disabled,l=ex(),u=rx(),a=tx();return e.root.className=N(vo.root,l.root,l[r],l[n],!s&&r==="outline"&&l.outlineInteractive,o&&r!=="underline"&&l.invalid,o&&r==="underline"&&l.invalidUnderline,s&&l.disabled,e.root.className),e.input.className=N(vo.input,a.input,a[n],s&&a.disabled,e.input.className),e.listbox&&(e.listbox.className=N(vo.listbox,l.listbox,e.inlinePopup&&l.inlineListbox,!t&&l.listboxCollapsed,e.listbox.className)),e.expandIcon&&(e.expandIcon.className=N(vo.expandIcon,u.icon,u[n],s&&u.disabled,i&&u.visuallyHidden,e.expandIcon.className)),e.clearIcon&&(e.clearIcon.className=N(vo.clearIcon,u.icon,u[n],s&&u.disabled,!i&&u.hidden,e.clearIcon.className)),e},xd=m.forwardRef((e,r)=>{const t=Yk(e,r),n=Fk(t);return ox(t),ae("useComboboxStyles_unstable")(t),Jk(t,n)});xd.displayName="Combobox";const nx=(e,r)=>{e=dn(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const t=Om();var n;const{size:i="medium",appearance:o=(n=t.inputDefaultAppearance)!==null&&n!==void 0?n:"outline",onChange:s}=e;process.env.NODE_ENV!=="production"&&(o==="filled-darker-shadow"||o==="filled-lighter-shadow")&&console.error("The 'filled-darker-shadow' and 'filled-lighter-shadow' appearances are deprecated and will be removed in the future.");const[l,u]=yt({state:e.value,defaultState:e.defaultValue,initialState:""}),a=Vo({props:e,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),c={size:i,appearance:o,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:J(e.input,{defaultProps:{type:"text",ref:r,...a.primary},elementType:"input"}),contentAfter:te(e.contentAfter,{elementType:"span"}),contentBefore:te(e.contentBefore,{elementType:"span"}),root:J(e.root,{defaultProps:a.root,elementType:"span"})};return c.input.value=l,c.input.onChange=ee(d=>{const g=d.target.value;s==null||s(d,{value:g}),u(g)}),c},ix=e=>(ne(e),ye(e.root,{children:[e.contentBefore&&F(e.contentBefore,{}),F(e.input,{}),e.contentAfter&&F(e.contentAfter,{})]})),vn={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},ax=ie("r1oeeo9n","r9sxh5",{r:[".r1oeeo9n{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;vertical-align:middle;min-height:32px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r1oeeo9n::after{box-sizing:border-box;content:"";position:absolute;left:-1px;bottom:-1px;right:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r1oeeo9n:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1oeeo9n:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1oeeo9n:focus-within{outline:2px solid transparent;}",".r9sxh5{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;vertical-align:middle;min-height:32px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r9sxh5::after{box-sizing:border-box;content:"";position:absolute;right:-1px;bottom:-1px;left:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r9sxh5:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r9sxh5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r9sxh5:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1oeeo9n::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1oeeo9n:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r9sxh5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r9sxh5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),sx=O({small:{sshi5w:"f1pha7fy",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{},large:{sshi5w:"f1w5jphr",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",i8kkvl:0,Belr9w4:0,rmohyg:"f1eyhf9v"},outline:{},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],Drbcw7:"f8vnjqi",udz0bu:["fz1etlk","f1hc16gm"],Be8ivqh:"f1klwx88",ofdepl:["f1hc16gm","fz1etlk"]},underline:{De3pzq:"f1c21dwh",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fokr779",icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],wvpqe5:["f1deefiw","f1n71otn"],Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"]},underlineInteractive:{oetu4i:"f1l4zc64",Be8ivqh:"f1klwx88",d9w3h3:0,B3778ie:0,B4j8arr:0,Bl18szs:0,Blrzh8d:"f2ale1x"},filled:{g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},filledInteractive:{q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",E5pizo:"fyed02w"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bsft5z2:"fhr9occ",Bduesf4:"f99w1ws"},smallWithContentBefore:{uwmqm3:["fk8j09s","fdw0yi8"]},smallWithContentAfter:{z189sj:["fdw0yi8","fk8j09s"]},mediumWithContentBefore:{uwmqm3:["f1ng84yb","f11gcy0p"]},mediumWithContentAfter:{z189sj:["f11gcy0p","f1ng84yb"]},largeWithContentBefore:{uwmqm3:["f1uw59to","fw5db7e"]},largeWithContentAfter:{z189sj:["fw5db7e","f1uw59to"]}},{d:[".f1pha7fy{min-height:24px;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1w5jphr{min-height:40px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",[".f1eyhf9v{gap:var(--spacingHorizontalSNudge);}",{p:-1}],".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".fokr779{border-radius:0;}",{p:-1}],".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",[".f2ale1x::after{border-radius:0;}",{p:-1}],".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fyed02w{box-shadow:var(--shadow2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fhr9occ::after{content:unset;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],w:[".f99w1ws:focus-within{outline-style:none;}"]}),lx=ie("r12stul0",null,[".r12stul0{align-self:stretch;box-sizing:border-box;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalM);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}",".r12stul0::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r12stul0::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r12stul0::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),cx=O({small:{uwmqm3:["f1f5gg8d","f1vdfbxk"],z189sj:["f1vdfbxk","f1f5gg8d"]},medium:{},large:{uwmqm3:["fnphzt9","flt1dlf"],z189sj:["flt1dlf","fnphzt9"]},smallWithContentBefore:{uwmqm3:["fgiv446","ffczdla"]},smallWithContentAfter:{z189sj:["ffczdla","fgiv446"]},mediumWithContentBefore:{uwmqm3:["fgiv446","ffczdla"]},mediumWithContentAfter:{z189sj:["ffczdla","fgiv446"]},largeWithContentBefore:{uwmqm3:["fk8j09s","fdw0yi8"]},largeWithContentAfter:{z189sj:["fdw0yi8","fk8j09s"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),ux=ie("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),dx=O({disabled:{sj55zd:"f1s2aq7o"},small:{Duoase:"f3qv9w"},medium:{},large:{Duoase:"f16u2scb"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3qv9w>svg{font-size:16px;}",".f16u2scb>svg{font-size:24px;}"]}),fx=e=>{"use no memo";const{size:r,appearance:t}=e,n=e.input.disabled,i=`${e.input["aria-invalid"]}`=="true",o=t.startsWith("filled"),s=sx(),l=cx(),u=dx();e.root.className=N(vn.root,ax(),s[r],e.contentBefore&&s[`${r}WithContentBefore`],e.contentAfter&&s[`${r}WithContentAfter`],s[t],!n&&t==="outline"&&s.outlineInteractive,!n&&t==="underline"&&s.underlineInteractive,!n&&o&&s.filledInteractive,o&&s.filled,!n&&i&&s.invalid,n&&s.disabled,e.root.className),e.input.className=N(vn.input,lx(),l[r],e.contentBefore&&l[`${r}WithContentBefore`],e.contentAfter&&l[`${r}WithContentAfter`],n&&l.disabled,e.input.className);const a=[ux(),n&&u.disabled,u[r]];return e.contentBefore&&(e.contentBefore.className=N(vn.contentBefore,...a,e.contentBefore.className)),e.contentAfter&&(e.contentAfter.className=N(vn.contentAfter,...a,e.contentAfter.className)),e},mn=m.forwardRef((e,r)=>{const t=nx(e,r);return fx(t),ae("useInputStyles_unstable")(t),ix(t)});mn.displayName="Input";const hx=m.createContext(void 0).Provider,gx=e=>{const{presenceOnly:r,textPosition:t}=e;ne(e);const n=r?e.presence&&F(e.presence,{}):e.avatar&&F(e.avatar,{});return ye(e.root,{children:[(t==="after"||t==="below")&&n,e.primaryText&&F(e.primaryText,{}),e.secondaryText&&F(e.secondaryText,{}),e.tertiaryText&&F(e.tertiaryText,{}),e.quaternaryText&&F(e.quaternaryText,{}),t==="before"&&n]})},vx=(e,r)=>{const{name:t,presenceOnly:n=!1,size:i="medium",textAlignment:o="start",textPosition:s="after"}=e,l=te(e.primaryText,{renderByDefault:!0,defaultProps:{children:t},elementType:"span"}),u=te(e.secondaryText,{elementType:"span"}),a=te(e.tertiaryText,{elementType:"span"}),c=te(e.quaternaryText,{elementType:"span"});return{numTextLines:[l,u,a,c].filter(Boolean).length,presenceOnly:n,size:i,textAlignment:o,textPosition:s,components:{root:"div",avatar:ta,presence:lo,primaryText:"span",secondaryText:"span",tertiaryText:"span",quaternaryText:"span"},root:J(de("div",{...e,ref:r},["name"]),{elementType:"div"}),avatar:n?void 0:te(e.avatar,{renderByDefault:!0,defaultProps:{name:t,badge:e.presence,size:px[i]},elementType:ta}),presence:n?te(e.presence,{defaultProps:{size:mx[i]},elementType:lo}):void 0,primaryText:l,secondaryText:u,tertiaryText:a,quaternaryText:c}},mx={"extra-small":"tiny",small:"extra-small",medium:"small",large:"medium","extra-large":"large",huge:"large"},px={"extra-small":20,small:28,medium:32,large:36,"extra-large":40,huge:56},nr={root:"fui-Persona",avatar:"fui-Persona__avatar",presence:"fui-Persona__presence",primaryText:"fui-Persona__primaryText",secondaryText:"fui-Persona__secondaryText",tertiaryText:"fui-Persona__tertiaryText",quaternaryText:"fui-Persona__quaternaryText"},bx=ie("rlroi9i",null,[".rlroi9i{display:inline-grid;grid-auto-rows:max-content;grid-auto-flow:column;justify-items:start;grid-template-columns:max-content [middle] auto;}"]),yx=O({beforeAfterCenter:{wkccdc:"f1iantul"},after:{},before:{B7hvi0a:"f1tll2w5",Budl1dq:"ffvkwdr"},below:{Bxotwcr:"f1nkeedh",B7hvi0a:"f1oiokrs",Budl1dq:"f1emgwh2"},media:{Ijaq50:"f1hek2iy"},mediaBeforeAfterCenter:{Ijaq50:"fa4dipu"},start:{qb2dma:"f9h729m"},center:{qb2dma:"f7nlbp4"},afterAlignToPrimary:{qb2dma:"f7nlbp4",Ijaq50:"f1rnkkuc",Bw0ie65:"f1warjpf"},beforeAlignToPrimary:{qb2dma:"f7nlbp4",Ijaq50:"f1rnkkuc",Br312pm:"fwu52yu"},secondLineSpacing:{B6of3ja:"f1ryq6si"},primary:{Ijaq50:"f1q3ipgb"},secondary:{Ijaq50:"f3drtdk"},tertiary:{Ijaq50:"fa1o6s1"},quaternary:{Ijaq50:"f1tuwaia"}},{d:[".f1iantul{grid-template-rows:1fr [primary] max-content [secondary] max-content [tertiary] max-content [quaternary] max-content 1fr;}",".f1tll2w5{justify-items:end;}",".ffvkwdr{grid-template-columns:auto [middle] max-content;}",".f1nkeedh{grid-auto-flow:unset;}",".f1oiokrs{justify-items:center;}",".f1emgwh2{grid-template-columns:unset;}",".f1hek2iy{grid-row-start:span 5;}",".fa4dipu{grid-row-start:span 6;}",".f9h729m{align-self:start;}",".f7nlbp4{align-self:center;}",".f1rnkkuc{grid-row-start:unset;}",".f1warjpf{grid-column-end:middle;}",".fwu52yu{grid-column-start:middle;}",".f1ryq6si{margin-top:-2px;}",".f1q3ipgb{grid-row-start:primary;}",".f3drtdk{grid-row-start:secondary;}",".fa1o6s1{grid-row-start:tertiary;}",".f1tuwaia{grid-row-start:quaternary;}"]}),wx=O({"extra-small":{Bs1gm4r:"f1e48tse"},small:{Bs1gm4r:"f18q9vkd"},medium:{Bs1gm4r:"f18q9vkd"},large:{Bs1gm4r:"fx34bi6"},"extra-large":{Bs1gm4r:"fx34bi6"},huge:{Bs1gm4r:"f1o96qtm"},after:{t21cq0:["f103ycu4","f1tao51"]},below:{jrapky:"fbo7acy"},before:{Frg6f3:["f1tao51","f103ycu4"]}},{d:[".f1e48tse{--fui-Persona__avatar--spacing:var(--spacingHorizontalSNudge);}",".f18q9vkd{--fui-Persona__avatar--spacing:var(--spacingHorizontalS);}",".fx34bi6{--fui-Persona__avatar--spacing:var(--spacingHorizontalMNudge);}",".f1o96qtm{--fui-Persona__avatar--spacing:var(--spacingHorizontalM);}",".f103ycu4{margin-right:var(--fui-Persona__avatar--spacing);}",".f1tao51{margin-left:var(--fui-Persona__avatar--spacing);}",".fbo7acy{margin-bottom:var(--fui-Persona__avatar--spacing);}"]}),kx=O({small:{Bs1gm4r:"f1e48tse"}},{d:[".f1e48tse{--fui-Persona__avatar--spacing:var(--spacingHorizontalSNudge);}"]}),xx=e=>{"use no memo";const{presenceOnly:r,size:t,textAlignment:n,textPosition:i}=e,o=r&&n==="start"&&t!=="extra-large"&&t!=="huge",s=i!=="below"&&n==="center",{primaryTextClassName:l,optionalTextClassName:u}=Cx(e,o),a=bx(),c=yx(),d=wx(),g={...d,...kx()};return e.root.className=N(nr.root,a,s&&c.beforeAfterCenter,c[i],e.root.className),e.avatar&&(e.avatar.className=N(nr.avatar,i!=="below"&&c.media,s&&c.mediaBeforeAfterCenter,c[n],d[t],d[i],e.avatar.className)),e.presence&&(e.presence.className=N(nr.presence,i!=="below"&&c.media,s&&c.mediaBeforeAfterCenter,c[n],g[t],g[i],i==="after"&&o&&c.afterAlignToPrimary,i==="before"&&o&&c.beforeAlignToPrimary,e.presence.className)),e.primaryText&&(e.primaryText.className=N(nr.primaryText,s&&c.primary,l,e.primaryText.className)),e.secondaryText&&(e.secondaryText.className=N(nr.secondaryText,s&&c.secondary,u,c.secondLineSpacing,e.secondaryText.className)),e.tertiaryText&&(e.tertiaryText.className=N(nr.tertiaryText,s&&c.tertiary,u,e.tertiaryText.className)),e.quaternaryText&&(e.quaternaryText.className=N(nr.quaternaryText,s&&c.quaternary,u,e.quaternaryText.className)),e},_x=ie("rvj41k9",null,[".rvj41k9{display:block;color:var(--colorNeutralForeground1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);}"]),Sx=ie("rp1pf9e",null,[".rp1pf9e{display:block;color:var(--colorNeutralForeground2);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}"]),Bx=O({beforeAlignToPrimary:{Bw0ie65:"f1warjpf"},afterAlignToPrimary:{Br312pm:"fwu52yu"},body1:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},caption1:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},subtitle2:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"}},{d:[".f1warjpf{grid-column-end:middle;}",".fwu52yu{grid-column-start:middle;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}"]}),Cx=(e,r)=>{const{presenceOnly:t,size:n,textPosition:i}=e,o=_x(),s=Sx(),l=Bx();let u,a;return t?(n==="extra-small"?u=e.numTextLines<=1&&l.caption1:(n==="extra-large"||n==="huge")&&(u=l.subtitle2),r&&(i==="before"?a=l.beforeAlignToPrimary:i==="after"&&(a=l.afterAlignToPrimary))):(n==="huge"||n==="extra-large")&&(u=l.subtitle2),{primaryTextClassName:N(o,u,a),optionalTextClassName:N(s,!t&&n==="huge"&&l.body1,a)}},_d=m.forwardRef((e,r)=>{const t=vx(e,r);return xx(t),ae("usePersonaStyles_unstable")(t),gx(t)});_d.displayName="Persona";const Sd=m.createContext(void 0),Px={};Sd.Provider;const Tx=()=>m.useContext(Sd)||Px,Ex=e=>(ne(e),ye(e.root,{children:[F(e.input,{}),F(e.indicator,{}),e.label&&F(e.label,{})]})),Nx=(e,r)=>{const t=Tx(),{name:n=t.name,checked:i=t.value!==void 0?t.value===e.value:void 0,defaultChecked:o=t.defaultValue!==void 0?t.defaultValue===e.value:void 0,labelPosition:s=t.layout==="horizontal-stacked"?"below":"after",disabled:l=t.disabled,required:u=t.required,"aria-describedby":a=t["aria-describedby"],onChange:c}=e,d=Vo({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),g=J(e.root,{defaultProps:{ref:Rr(),...d.root},elementType:"span"}),f=J(e.input,{defaultProps:{ref:r,type:"radio",id:Ge("radio-",d.primary.id),name:n,checked:i,defaultChecked:o,disabled:l,required:u,"aria-describedby":a,...d.primary},elementType:"input"});f.onChange=Re(f.onChange,b=>c==null?void 0:c(b,{value:b.currentTarget.value}));const h=te(e.label,{defaultProps:{htmlFor:f.id,disabled:f.disabled},elementType:Bt}),v=J(e.indicator,{defaultProps:{"aria-hidden":!0},elementType:"div"});return{labelPosition:s,components:{root:"span",input:"input",label:Bt,indicator:"div"},root:g,input:f,label:h,indicator:v}},pn={root:"fui-Radio",indicator:"fui-Radio__indicator",input:"fui-Radio__input",label:"fui-Radio__label"},Rx=ie("r1siqwd8","rmnplyc",{r:[".r1siqwd8{display:inline-flex;position:relative;}",".r1siqwd8:focus{outline-style:none;}",".r1siqwd8:focus-visible{outline-style:none;}",".r1siqwd8[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1siqwd8[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rmnplyc{display:inline-flex;position:relative;}",".rmnplyc:focus{outline-style:none;}",".rmnplyc:focus-visible{outline-style:none;}",".rmnplyc[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rmnplyc[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1siqwd8[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rmnplyc[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),zx=O({vertical:{Beiy3e4:"f1vx9l62",Bt984gj:"f122n59"}},{d:[".f1vx9l62{flex-direction:column;}",".f122n59{align-items:center;}"]}),Dx=ie("rg1upok","rzwdzb4",{r:[".rg1upok{position:absolute;left:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;}",".rg1upok:enabled{cursor:pointer;}",".rg1upok:enabled~.fui-Radio__label{cursor:pointer;}",".rg1upok:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);}",".rg1upok:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);}",".rg1upok:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);}",".rg1upok:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);}",".rg1upok:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rg1upok:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rg1upok:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rg1upok:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);}",".rg1upok:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);}",".rg1upok:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);}",".rg1upok:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;}",".rg1upok:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}",".rzwdzb4{position:absolute;right:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;}",".rzwdzb4:enabled{cursor:pointer;}",".rzwdzb4:enabled~.fui-Radio__label{cursor:pointer;}",".rzwdzb4:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);}",".rzwdzb4:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);}",".rzwdzb4:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);}",".rzwdzb4:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);}",".rzwdzb4:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rzwdzb4:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rzwdzb4:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rzwdzb4:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);}",".rzwdzb4:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);}",".rzwdzb4:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);}",".rzwdzb4:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;}",".rzwdzb4:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}"],s:["@media (forced-colors: active){.rg1upok:enabled:not(:checked)~.fui-Radio__indicator{border-color:ButtonBorder;}}","@media (forced-colors: active){.rg1upok:enabled:checked~.fui-Radio__indicator{border-color:Highlight;color:Highlight;}.rg1upok:enabled:checked~.fui-Radio__indicator::after{background-color:Highlight;}}","@media (forced-colors: active){.rg1upok:disabled~.fui-Radio__label{color:GrayText;}}","@media (forced-colors: active){.rg1upok:disabled~.fui-Radio__indicator{border-color:GrayText;color:GrayText;}.rg1upok:disabled~.fui-Radio__indicator::after{background-color:GrayText;}}","@media (forced-colors: active){.rzwdzb4:enabled:not(:checked)~.fui-Radio__indicator{border-color:ButtonBorder;}}","@media (forced-colors: active){.rzwdzb4:enabled:checked~.fui-Radio__indicator{border-color:Highlight;color:Highlight;}.rzwdzb4:enabled:checked~.fui-Radio__indicator::after{background-color:Highlight;}}","@media (forced-colors: active){.rzwdzb4:disabled~.fui-Radio__label{color:GrayText;}}","@media (forced-colors: active){.rzwdzb4:disabled~.fui-Radio__indicator{border-color:GrayText;color:GrayText;}.rzwdzb4:disabled~.fui-Radio__indicator::after{background-color:GrayText;}}"]}),Fx=O({below:{a9b677:"fly5x3f",Bqenvij:"f1je6zif"},defaultIndicator:{Blbys7f:"f9ma1gx"},customIndicator:{Bj53wkj:"f12zxao0"}},{d:[".fly5x3f{width:100%;}",".f1je6zif{height:calc(16px + 2 * var(--spacingVerticalS));}",'.f9ma1gx:checked~.fui-Radio__indicator::after{content:"";}',".f12zxao0:not(:checked)~.fui-Radio__indicator>*{opacity:0;}"]}),Ix=ie("rwtekvw",null,[".rwtekvw{position:relative;width:16px;height:16px;font-size:12px;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border:var(--strokeWidthThin) solid;border-radius:var(--borderRadiusCircular);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;}",".rwtekvw::after{position:absolute;width:16px;height:16px;border-radius:var(--borderRadiusCircular);transform:scale(0.625);background-color:currentColor;}"]),jx=O({base:{qb2dma:"f7nlbp4",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1f5q0n8"},after:{uwmqm3:["fruq291","f7x41pl"],B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},below:{z8tnut:"f1ywm7hm",fsow6f:"f17mccla"}},{d:[".f7nlbp4{align-self:center;}",[".f1f5q0n8{padding:var(--spacingVerticalS) var(--spacingHorizontalS);}",{p:-1}],".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f17mccla{text-align:center;}"]}),Ax=e=>{"use no memo";const{labelPosition:r}=e,t=Rx(),n=zx();e.root.className=N(pn.root,t,r==="below"&&n.vertical,e.root.className);const i=Dx(),o=Fx();e.input.className=N(pn.input,i,r==="below"&&o.below,e.indicator.children?o.customIndicator:o.defaultIndicator,e.input.className);const s=Ix();e.indicator.className=N(pn.indicator,s,e.indicator.className);const l=jx();return e.label&&(e.label.className=N(pn.label,l.base,l[r],e.label.className)),e},xa=m.forwardRef((e,r)=>{const t=Nx(e,r);return Ax(t),ae("useRadioStyles_unstable")(t),Ex(t)});xa.displayName="Radio";const Bd=m.createContext(void 0),Ox={};Bd.Provider;const qx=()=>{var e;return(e=m.useContext(Bd))!==null&&e!==void 0?e:Ox},Mx=(e,r)=>{const{size:t}=qx(),{appearance:n="primary",labelPosition:i="after",size:o=t??"medium",delay:s=0}=e,l=Ge("spinner"),{role:u="progressbar",...a}=e,c=J(de("div",{ref:r,role:u,...a},["size"]),{elementType:"div"}),[d,g]=m.useState(!1),[f,h]=np();m.useEffect(()=>{if(!(s<=0))return f(()=>{g(!0)},s),()=>{h()}},[f,h,s]);const v=te(e.label,{defaultProps:{id:l},renderByDefault:!1,elementType:Bt}),b=te(e.spinner,{renderByDefault:!0,elementType:"span"});return v&&c&&!c["aria-labelledby"]&&(c["aria-labelledby"]=v.id),{appearance:n,delay:s,labelPosition:i,size:o,shouldRenderSpinner:!s||d,components:{root:"div",spinner:"span",spinnerTail:"span",label:Bt},root:c,spinner:b,spinnerTail:J(e.spinnerTail,{elementType:"span"}),label:v}},Lx=e=>{ne(e);const{labelPosition:r,shouldRenderSpinner:t}=e;return ye(e.root,{children:[e.label&&t&&(r==="above"||r==="before")&&F(e.label,{}),e.spinner&&t&&F(e.spinner,{children:e.spinnerTail&&F(e.spinnerTail,{})}),e.label&&t&&(r==="below"||r==="after")&&F(e.label,{})]})},bn={root:"fui-Spinner",spinner:"fui-Spinner__spinner",spinnerTail:"fui-Spinner__spinnerTail",label:"fui-Spinner__label"},Hx=ie("r82apo5",null,[".r82apo5{display:flex;align-items:center;justify-content:center;line-height:0;gap:8px;overflow:hidden;}"]),Wx=O({vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f1vx9l62{flex-direction:column;}"]}),Vx=ie("rvgcg50","r15nd2jo",{r:[".rvgcg50{position:relative;flex-shrink:0;-webkit-mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);background-color:var(--colorBrandStroke2Contrast);color:var(--colorBrandStroke1);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:rb7n1on;}","@keyframes rb7n1on{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}",".r15nd2jo{position:relative;flex-shrink:0;-webkit-mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);background-color:var(--colorBrandStroke2Contrast);color:var(--colorBrandStroke1);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:r1gx3jof;}","@keyframes r1gx3jof{0%{transform:rotate(0deg);}100%{transform:rotate(-360deg);}}"],s:["@media screen and (forced-colors: active){.rvgcg50{background-color:HighlightText;color:Highlight;forced-color-adjust:none;}}","@media screen and (prefers-reduced-motion: reduce){.rvgcg50{animation-duration:1.8s;}}","@media screen and (forced-colors: active){.r15nd2jo{background-color:HighlightText;color:Highlight;forced-color-adjust:none;}}","@media screen and (prefers-reduced-motion: reduce){.r15nd2jo{animation-duration:1.8s;}}"]}),$x=ie("rxov3xa","r1o544mv",{r:[".rxov3xa{position:absolute;display:block;width:100%;height:100%;-webkit-mask-image:conic-gradient(transparent 105deg, white 105deg);mask-image:conic-gradient(transparent 105deg, white 105deg);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:var(--curveEasyEase);animation-name:r15mim6k;}",'.rxov3xa::before,.rxov3xa::after{content:"";position:absolute;display:block;width:100%;height:100%;animation:inherit;background-image:conic-gradient(currentcolor 135deg, transparent 135deg);}',"@keyframes r15mim6k{0%{transform:rotate(-135deg);}50%{transform:rotate(0deg);}100%{transform:rotate(225deg);}}",".rxov3xa::before{animation-name:r18vhmn8;}","@keyframes r18vhmn8{0%{transform:rotate(0deg);}50%{transform:rotate(105deg);}100%{transform:rotate(0deg);}}",".rxov3xa::after{animation-name:rkgrvoi;}","@keyframes rkgrvoi{0%{transform:rotate(0deg);}50%{transform:rotate(225deg);}100%{transform:rotate(0deg);}}",".r1o544mv{position:absolute;display:block;width:100%;height:100%;-webkit-mask-image:conic-gradient(transparent 105deg, white 105deg);mask-image:conic-gradient(transparent 105deg, white 105deg);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:var(--curveEasyEase);animation-name:r109gmi5;}",'.r1o544mv::before,.r1o544mv::after{content:"";position:absolute;display:block;width:100%;height:100%;animation:inherit;background-image:conic-gradient(currentcolor 135deg, transparent 135deg);}',"@keyframes r109gmi5{0%{transform:rotate(135deg);}50%{transform:rotate(0deg);}100%{transform:rotate(-225deg);}}",".r1o544mv::before{animation-name:r17whflh;}","@keyframes r17whflh{0%{transform:rotate(0deg);}50%{transform:rotate(-105deg);}100%{transform:rotate(0deg);}}",".r1o544mv::after{animation-name:re4odhl;}","@keyframes re4odhl{0%{transform:rotate(0deg);}50%{transform:rotate(-225deg);}100%{transform:rotate(0deg);}}"],s:["@media screen and (prefers-reduced-motion: reduce){.rxov3xa{animation-iteration-count:0;background-image:conic-gradient(transparent 120deg, currentcolor 360deg);}.rxov3xa::before,.rxov3xa::after{content:none;}}","@media screen and (prefers-reduced-motion: reduce){.r1o544mv{animation-iteration-count:0;background-image:conic-gradient(transparent 120deg, currentcolor 360deg);}.r1o544mv::before,.r1o544mv::after{content:none;}}"]}),Gx=O({inverted:{De3pzq:"fr407j0",sj55zd:"f1f7voed"},rtlTail:{btxmck:"f179dep3",gb5jj2:"fbz9ihp",Br2kee7:"f1wkkxo7"},"extra-tiny":{Bqenvij:"fd461yt",a9b677:"fjw5fx7",qmp6fs:"f1v3ph3m"},tiny:{Bqenvij:"fjamq6b",a9b677:"f64fuq3",qmp6fs:"f1v3ph3m"},"extra-small":{Bqenvij:"frvgh55",a9b677:"fq4mcun",qmp6fs:"f1v3ph3m"},small:{Bqenvij:"fxldao9",a9b677:"f1w9dchk",qmp6fs:"f1v3ph3m"},medium:{Bqenvij:"f1d2rq10",a9b677:"f1szoe96",qmp6fs:"fb52u90"},large:{Bqenvij:"f8ljn23",a9b677:"fpdz1er",qmp6fs:"fb52u90"},"extra-large":{Bqenvij:"fbhnoac",a9b677:"feqmc2u",qmp6fs:"fb52u90"},huge:{Bqenvij:"f1ft4266",a9b677:"fksc0bp",qmp6fs:"fa3u9ii"}},{d:[".fr407j0{background-color:var(--colorNeutralStrokeAlpha2);}",".f1f7voed{color:var(--colorNeutralStrokeOnBrand2);}",".f179dep3{-webkit-mask-image:conic-gradient(white 255deg, transparent 255deg);mask-image:conic-gradient(white 255deg, transparent 255deg);}",".fbz9ihp::before,.fbz9ihp::after{background-image:conic-gradient(transparent 225deg, currentcolor 225deg);}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".f1v3ph3m{--fui-Spinner--strokeWidth:var(--strokeWidthThick);}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".fxldao9{height:28px;}",".f1w9dchk{width:28px;}",".f1d2rq10{height:32px;}",".f1szoe96{width:32px;}",".fb52u90{--fui-Spinner--strokeWidth:var(--strokeWidthThicker);}",".f8ljn23{height:36px;}",".fpdz1er{width:36px;}",".fbhnoac{height:40px;}",".feqmc2u{width:40px;}",".f1ft4266{height:44px;}",".fksc0bp{width:44px;}",".fa3u9ii{--fui-Spinner--strokeWidth:var(--strokeWidthThickest);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1wkkxo7{background-image:conic-gradient(currentcolor 0deg, transparent 240deg);}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),Ux=O({inverted:{sj55zd:"fonrgv7"},"extra-tiny":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},tiny:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},"extra-large":{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},huge:{Bahqtrf:"fk6fouc",Be2twd7:"f1pp30po",Bhrd7zp:"fl43uef",Bg96gwp:"f106mvju"}},{d:[".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}"]}),Kx=e=>{"use no memo";const{labelPosition:r,size:t,appearance:n}=e,{dir:i}=_e(),o=Hx(),s=Wx(),l=Vx(),u=Gx(),a=$x(),c=Ux();return e.root.className=N(bn.root,o,(r==="above"||r==="below")&&s.vertical,e.root.className),e.spinner&&(e.spinner.className=N(bn.spinner,l,u[t],n==="inverted"&&u.inverted,e.spinner.className)),e.spinnerTail&&(e.spinnerTail.className=N(bn.spinnerTail,a,i==="rtl"&&u.rtlTail,e.spinnerTail.className)),e.label&&(e.label.className=N(bn.label,c[t],n==="inverted"&&c.inverted,e.label.className)),e},qr=m.forwardRef((e,r)=>{const t=Mx(e,r);return Kx(t),ae("useSpinnerStyles_unstable")(t),Lx(t)});qr.displayName="Spinner";const Cd=(e,r)=>{const{wrap:t,truncate:n,block:i,italic:o,underline:s,strikethrough:l,size:u,font:a,weight:c,align:d}=e;return{align:d??"start",block:i??!1,font:a??"base",italic:o??!1,size:u??300,strikethrough:l??!1,truncate:n??!1,underline:s??!1,weight:c??"regular",wrap:t??!0,components:{root:"span"},root:J(de("span",{ref:r,...e}),{elementType:"span"})}},Pd=e=>(ne(e),F(e.root,{})),Xx={root:"fui-Text"},Zx=O({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Bhrd7zp:"figsok6",fsow6f:"fpgzoln",mc9l5x:"f1w7gpdv",Huce71:"f6juhto",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",ygn44y:"f2jf649"},nowrap:{Huce71:"fz5stix",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp"},truncate:{ygn44y:"f1cmbuwj"},block:{mc9l5x:"ftgm304"},italic:{B80ckks:"f1j4dglz"},underline:{w71qe1:"f13mvf36"},strikethrough:{w71qe1:"fv5q2k7"},strikethroughUnderline:{w71qe1:"f1drk4o6"},base100:{Be2twd7:"f13mqy1h",Bg96gwp:"fcpl73t"},base200:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},base400:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k"},base500:{Be2twd7:"f1pp30po",Bg96gwp:"f106mvju"},base600:{Be2twd7:"f1x0m3f5",Bg96gwp:"fb86gi6"},hero700:{Be2twd7:"fojgt09",Bg96gwp:"fcen8rp"},hero800:{Be2twd7:"fccw675",Bg96gwp:"f1ebx5kk"},hero900:{Be2twd7:"f15afnhw",Bg96gwp:"fr3w3wp"},hero1000:{Be2twd7:"fpyltcb",Bg96gwp:"f1ivgwrt"},monospace:{Bahqtrf:"f1fedwem"},numeric:{Bahqtrf:"f1uq0ln5"},weightMedium:{Bhrd7zp:"fdj6btp"},weightSemibold:{Bhrd7zp:"fl43uef"},weightBold:{Bhrd7zp:"flh3ekv"},alignCenter:{fsow6f:"f17mccla"},alignEnd:{fsow6f:"f12ymhq5"},alignJustify:{fsow6f:"f1j59e10"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fpgzoln{text-align:start;}",".f1w7gpdv{display:inline;}",".f6juhto{white-space:normal;}",[".f1gl81tg{overflow:visible;}",{p:-1}],".f2jf649{text-overflow:clip;}",".fz5stix{white-space:nowrap;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f1cmbuwj{text-overflow:ellipsis;}",".ftgm304{display:block;}",".f1j4dglz{font-style:italic;}",".f13mvf36{text-decoration-line:underline;}",".fv5q2k7{text-decoration-line:line-through;}",".f1drk4o6{text-decoration-line:line-through underline;}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",".fb86gi6{line-height:var(--lineHeightBase600);}",".fojgt09{font-size:var(--fontSizeHero700);}",".fcen8rp{line-height:var(--lineHeightHero700);}",".fccw675{font-size:var(--fontSizeHero800);}",".f1ebx5kk{line-height:var(--lineHeightHero800);}",".f15afnhw{font-size:var(--fontSizeHero900);}",".fr3w3wp{line-height:var(--lineHeightHero900);}",".fpyltcb{font-size:var(--fontSizeHero1000);}",".f1ivgwrt{line-height:var(--lineHeightHero1000);}",".f1fedwem{font-family:var(--fontFamilyMonospace);}",".f1uq0ln5{font-family:var(--fontFamilyNumeric);}",".fdj6btp{font-weight:var(--fontWeightMedium);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".flh3ekv{font-weight:var(--fontWeightBold);}",".f17mccla{text-align:center;}",".f12ymhq5{text-align:end;}",".f1j59e10{text-align:justify;}"]}),Td=e=>{"use no memo";const r=Zx();return e.root.className=N(Xx.root,r.root,e.wrap===!1&&r.nowrap,e.truncate&&r.truncate,e.block&&r.block,e.italic&&r.italic,e.underline&&r.underline,e.strikethrough&&r.strikethrough,e.underline&&e.strikethrough&&r.strikethroughUnderline,e.size===100&&r.base100,e.size===200&&r.base200,e.size===400&&r.base400,e.size===500&&r.base500,e.size===600&&r.base600,e.size===700&&r.hero700,e.size===800&&r.hero800,e.size===900&&r.hero900,e.size===1e3&&r.hero1000,e.font==="monospace"&&r.monospace,e.font==="numeric"&&r.numeric,e.weight==="medium"&&r.weightMedium,e.weight==="semibold"&&r.weightSemibold,e.weight==="bold"&&r.weightBold,e.align==="center"&&r.alignCenter,e.align==="end"&&r.alignEnd,e.align==="justify"&&r.alignJustify,e.root.className),e},Ed=m.forwardRef((e,r)=>{const t=Cd(e,r);return Td(t),ae("useTextStyles_unstable")(t),Pd(t)});Ed.displayName="Text";function Nd(e){const{useStyles:r,className:t,displayName:n}=e,i=m.forwardRef((o,s)=>{"use no memo";const l=r(),u=Cd(o,s);return Td(u),u.root.className=N(t,u.root.className,l.root,o.className),Pd(u)});return i.displayName=n,i}const Qx=Nd({useStyles:O({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),className:{root:"fui-Body1"}.root,displayName:"Body1"}),Yx=Nd({useStyles:O({root:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}"]}),className:{root:"fui-Caption1"}.root,displayName:"Caption1"}),Jx=ie("r6pzz3z",null,[".r6pzz3z{overflow-y:hidden;overflow-y:clip;scrollbar-gutter:stable;}"]),e_=ie("r144vlu9",null,[".r144vlu9{overflow-y:hidden;}"]);function t_(){const e=Jx(),r=e_(),{targetDocument:t}=_e(),n=m.useCallback(()=>{var o;if(!t)return;var s;Math.floor(t.body.getBoundingClientRect().height)>((s=(o=t.defaultView)===null||o===void 0?void 0:o.innerHeight)!==null&&s!==void 0?s:0)&&(t.documentElement.classList.add(e),t.body.classList.add(r))},[t,e,r]),i=m.useCallback(()=>{t&&(t.documentElement.classList.remove(e),t.body.classList.remove(r))},[t,e,r]);return{disableBodyScroll:n,enableBodyScroll:i}}function r_(e,r){const{findFirstFocusable:t}=so(),{targetDocument:n}=_e(),i=m.useRef(null);return m.useEffect(()=>{if(!e)return;const o=i.current&&t(i.current);if(o)o.focus();else{var s;(s=i.current)===null||s===void 0||s.focus(),process.env.NODE_ENV==="development"&&console.warn("@fluentui/react-dialog [useFocusFirstElement]:\nA Dialog should have at least one focusable element inside DialogSurface.\nPlease add at least a close button either on `DialogTitle` action slot or inside `DialogActions`")}},[t,e,r,n]),i}const o_={open:!1,inertTrapFocus:!1,modalType:"modal",isNestedDialog:!1,dialogRef:{current:null},requestOpenChange(){}},_a=Yo(void 0),n_=_a.Provider,qt=e=>Ui(_a,(r=o_)=>e(r)),Rd=m.createContext(void 0).Provider,zd=[{opacity:0,transform:"scale(0.85) translateZ(0)"},{transform:"scale(1) translateZ(0)",opacity:1}],Dd=Dr({enter:{keyframes:zd,easing:Ie.curveDecelerateMid,duration:Ie.durationGentle},exit:{keyframes:[...zd].reverse(),easing:Ie.curveAccelerateMin,duration:Ie.durationGentle}}),i_=e=>{const{children:r,modalType:t="modal",onOpenChange:n,inertTrapFocus:i=!1}=e,[o,s]=a_(r),[l,u]=yt({state:e.open,defaultState:e.defaultOpen,initialState:!1}),a=ee(h=>{n==null||n(h.event,h),h.event.isDefaultPrevented()||u(h.open)}),c=r_(l,t),{modalAttributes:d,triggerAttributes:g}=Xb({trapFocus:t!=="non-modal",legacyTrapFocus:!i}),f=Ki(_a);return{components:{surfaceMotion:Dd},inertTrapFocus:i,open:l,modalType:t,content:s,trigger:o,requestOpenChange:a,dialogTitleId:Ge("dialog-title-"),isNestedDialog:f,dialogRef:c,modalAttributes:d,triggerAttributes:g,surfaceMotion:Ji(e.surfaceMotion,{elementType:Dd,defaultProps:{appear:!0,visible:l,unmountOnExit:!0}})}};function a_(e){const r=m.Children.toArray(e);switch(process.env.NODE_ENV!=="production"&&r.length!==1&&r.length!==2&&console.warn(`@fluentui/react-dialog [useDialog]:
|
|
182
|
+
Dialog must contain at least one child <DialogSurface/>,
|
|
183
|
+
and at most two children <DialogTrigger/> <DialogSurface/> (in this order).`),r.length){case 2:return r;case 1:return[void 0,r[0]];default:return[void 0,void 0]}}const Fd=m.createContext(void 0);function s_(){return m.useContext(Fd)}const l_=m.forwardRef((e,r)=>m.createElement(Fd.Provider,{value:r},e.children)),c_=(e,r)=>(ne(e),F(n_,{value:r.dialog,children:ye(Rd,{value:r.dialogSurface,children:[e.trigger,e.content&&F(e.surfaceMotion,{children:F(l_,{children:e.content})})]})}));function u_(e){const{modalType:r,open:t,dialogRef:n,dialogTitleId:i,isNestedDialog:o,inertTrapFocus:s,requestOpenChange:l,modalAttributes:u,triggerAttributes:a}=e;return{dialog:{open:t,modalType:r,dialogRef:n,dialogTitleId:i,isNestedDialog:o,inertTrapFocus:s,modalAttributes:u,triggerAttributes:a,requestOpenChange:l},dialogSurface:!1}}const Sa=m.memo(e=>{const r=i_(e),t=u_(r);return c_(r,t)});Sa.displayName="Dialog";const Id={root:"fui-DialogTitle",action:"fui-DialogTitle__action"},d_=ie("rxjm636",null,[".rxjm636{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}"]),f_=O({rootWithoutAction:{Bw0ie65:"fsyjsko"}},{d:[".fsyjsko{grid-column-end:4;}"]}),h_=ie("r13kcrze",null,[".r13kcrze{grid-row-start:1;grid-row-end:1;grid-column-start:3;justify-self:end;align-self:start;}"]),g_=e=>{"use no memo";const r=d_(),t=h_(),n=f_();return e.root.className=N(Id.root,r,!e.action&&n.rootWithoutAction,e.root.className),e.action&&(e.action.className=N(Id.action,t,e.action.className)),e},jd=h1,v_=(e,r)=>{const t=s_(),n=qt(v=>v.modalType),i=qt(v=>v.isNestedDialog),o=qt(v=>v.modalAttributes),s=qt(v=>v.dialogRef),l=qt(v=>v.requestOpenChange),u=qt(v=>v.dialogTitleId),a=qt(v=>v.open),c=ee(v=>{if(_l(e.backdrop)){var b,p;(b=(p=e.backdrop).onClick)===null||b===void 0||b.call(p,v)}n==="modal"&&!v.isDefaultPrevented()&&l({event:v,open:!1,type:"backdropClick"})}),d=ee(v=>{var b;(b=e.onKeyDown)===null||b===void 0||b.call(e,v),v.key===Qi&&!v.isDefaultPrevented()&&(l({event:v,open:!1,type:"escapeKeyDown"}),v.preventDefault())}),g=te(e.backdrop,{renderByDefault:n!=="non-modal",defaultProps:{"aria-hidden":"true"},elementType:"div"});g&&(g.onClick=c);const{disableBodyScroll:f,enableBodyScroll:h}=t_();return Fe(()=>{if(!(i||n==="non-modal"))return f(),()=>{h()}},[h,i,f,n]),{components:{backdrop:"div",root:"div",backdropMotion:jd},open:a,backdrop:g,isNestedDialog:i,mountNode:e.mountNode,root:J(de("div",{tabIndex:-1,"aria-modal":n!=="non-modal",role:n==="alert"?"alertdialog":"dialog","aria-labelledby":e["aria-label"]?void 0:u,...e,...o,onKeyDown:d,ref:Ne(r,t,s)}),{elementType:"div"}),backdropMotion:Ji(e.backdropMotion,{elementType:jd,defaultProps:{appear:!0,visible:a}}),transitionStatus:void 0}},m_=(e,r)=>(ne(e),ye(ba,{mountNode:e.mountNode,children:[e.backdrop&&e.backdropMotion&&F(e.backdropMotion,{children:F(e.backdrop,{})}),F(Rd,{value:r.dialogSurface,children:F(e.root,{})})]}));function p_(e){return{dialogSurface:!0}}const b_=e=>{const r=e<=0?1:e;return process.env.NODE_ENV!=="production"&&e<=0&&console.error(`The prop 'max' must be greater than 0. Received max: ${e}`),r},y_=(e,r)=>{if(e===void 0)return e;const t=e<0?0:e>r?r:e;return process.env.NODE_ENV!=="production"&&(e<0&&console.error(`The prop 'value' must be greater than or equal to zero. Received value: ${e}`),e>r&&console.error(`The prop 'value' must be less than or equal to 'max'. Received value: ${e}, max: ${r}`)),t},w_=(e,r)=>{const t=gd(),n=t==null?void 0:t.validationState,{color:i=n==="error"||n==="warning"||n==="success"?n:"brand",shape:o="rounded",thickness:s="medium"}=e;var l;const u=b_((l=e.max)!==null&&l!==void 0?l:1),a=y_(e.value,u),c=J(de("div",{ref:r,role:"progressbar","aria-valuemin":a!==void 0?0:void 0,"aria-valuemax":a!==void 0?u:void 0,"aria-valuenow":a,"aria-labelledby":t==null?void 0:t.labelId,...e}),{elementType:"div"});t&&(t.validationMessageId||t.hintId)&&(c["aria-describedby"]=[t==null?void 0:t.validationMessageId,t==null?void 0:t.hintId,c["aria-describedby"]].filter(Boolean).join(" "));const d=J(e.bar,{elementType:"div"});return{color:i,max:u,shape:o,thickness:s,value:a,components:{root:"div",bar:"div"},root:c,bar:d}},k_=e=>(ne(e),F(e.root,{children:e.bar&&F(e.bar,{})})),Ad={root:"fui-ProgressBar",bar:"fui-ProgressBar__bar"},x_=.01,__=O({root:{mc9l5x:"ftgm304",De3pzq:"f18f03hv",a9b677:"fly5x3f",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",Bpep1pd:"fu42dvn"},rounded:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5"},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1fabniw"},medium:{Bqenvij:"f4t8t6x"},large:{Bqenvij:"f6ywr7j"}},{d:[".ftgm304{display:block;}",".f18f03hv{background-color:var(--colorNeutralBackground6);}",".fly5x3f{width:100%;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f1fabniw{border-radius:var(--borderRadiusNone);}",{p:-1}],".f4t8t6x{height:2px;}",".f6ywr7j{height:4px;}"],m:[["@media screen and (forced-colors: active){.fu42dvn{background-color:CanvasText;}}",{m:"screen and (forced-colors: active)"}]]}),S_=O({base:{Bpep1pd:"f1neahkh",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f12b9xdw",Bqenvij:"f1l02sjl"},nonZeroDeterminate:{Bmy1vo4:"fjt6zfz",B3o57yi:"f1wofebd",Bkqvd7p:"fv71qf3"},indeterminate:{B2u0y6b:"fa0wk36",qhf8xq:"f10pi13n",Bcmaq0h:["fpo0yib","f1u5hf6c"],Bv12yb3:["fwd2bol","f14gig94"],vin17d:"f1a27w2r",Ezkn3b:"f452v7t",w3vfg9:"f1cpbl36",B3ks32h:"f2xo07b",B3vm3ge:"f1f2ih6z",Gqtpxc:"f7h4d4t",vr3tzx:"f32r5lb"},brand:{De3pzq:"ftywsgz"},error:{De3pzq:"fdl5y0r"},warning:{De3pzq:"f1s438gw"},success:{De3pzq:"flxk52p"}},{m:[["@media screen and (forced-colors: active){.f1neahkh{background-color:Highlight;}}",{m:"screen and (forced-colors: active)"}],["@media screen and (prefers-reduced-motion: reduce){.f2xo07b{max-width:100%;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1f2ih6z{animation-iteration-count:infinite;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f7h4d4t{animation-duration:3s;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f32r5lb{animation-name:ftc26vs;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]],d:[[".f12b9xdw{border-radius:inherit;}",{p:-1}],".f1l02sjl{height:100%;}",".fjt6zfz{transition-property:width;}",".f1wofebd{transition-duration:0.3s;}",".fv71qf3{transition-timing-function:ease;}",".fa0wk36{max-width:33%;}",".f10pi13n{position:relative;}",`.fpo0yib{background-image:linear-gradient(
|
|
184
|
+
to right,
|
|
185
|
+
var(--colorNeutralBackground6) 0%,
|
|
186
|
+
var(--colorTransparentBackground) 50%,
|
|
187
|
+
var(--colorNeutralBackground6) 100%
|
|
188
|
+
);}`,`.f1u5hf6c{background-image:linear-gradient(
|
|
189
|
+
to left,
|
|
190
|
+
var(--colorNeutralBackground6) 0%,
|
|
191
|
+
var(--colorTransparentBackground) 50%,
|
|
192
|
+
var(--colorNeutralBackground6) 100%
|
|
193
|
+
);}`,".fwd2bol{animation-name:f1keuaan;}",".f14gig94{animation-name:f10x8f8u;}",".f1a27w2r{animation-duration:3s;}",".f452v7t{animation-timing-function:linear;}",".f1cpbl36{animation-iteration-count:infinite;}",".ftywsgz{background-color:var(--colorCompoundBrandBackground);}",".fdl5y0r{background-color:var(--colorPaletteRedBackground3);}",".f1s438gw{background-color:var(--colorPaletteDarkOrangeBackground3);}",".flxk52p{background-color:var(--colorPaletteGreenBackground3);}"],k:["@keyframes f1keuaan{0%{left:-33%;}100%{left:100%;}}","@keyframes f10x8f8u{0%{right:-33%;}100%{right:100%;}}","@keyframes ftc26vs{0%{opacity:.2;}50%{opacity:1;}100%{opacity:.2;}}"]}),B_=e=>{"use no memo";const{color:r,max:t,shape:n,thickness:i,value:o}=e,s=__(),l=S_();return e.root.className=N(Ad.root,s.root,s[n],s[i],e.root.className),e.bar&&(e.bar.className=N(Ad.bar,l.base,l.brand,o===void 0&&l.indeterminate,o!==void 0&&o>x_&&l.nonZeroDeterminate,r&&o!==void 0&&l[r],e.bar.className)),e.bar&&o!==void 0&&(e.bar.style={width:Math.min(100,Math.max(0,o/t*100))+"%",...e.bar.style}),e},Od=m.forwardRef((e,r)=>{const t=w_(e,r);return B_(t),ae("useProgressBarStyles_unstable")(t),k_(t)});Od.displayName="ProgressBar";const mo=()=>{},qd={allRowsSelected:!1,clearRows:mo,deselectRow:mo,isRowSelected:()=>!1,selectRow:mo,selectedRows:new Set,someRowsSelected:!1,toggleAllRows:mo,toggleRow:mo,selectionMode:"multiselect"};function C_(e){"use no memo";return r=>P_(r,e)}function P_(e,r){const{items:t,getRowId:n}=e,{selectionMode:i,defaultSelectedItems:o,selectedItems:s,onSelectionChange:l}=r,[u,a]=lp({selectionMode:i,defaultSelectedItems:o,selectedItems:s,onSelectionChange:l}),c=m.useMemo(()=>{const k=new Set;for(let x=0;x<t.length;x++){var w;k.add((w=n==null?void 0:n(t[x]))!==null&&w!==void 0?w:x)}return k},[t,n]),d=m.useMemo(()=>{if(i==="single"){const w=Array.from(u)[0];return c.has(w)}if(u.size<c.size||c.size===0)return!1;let k=!0;return c.forEach(w=>{u.has(w)||(k=!1)}),k},[c,u,i]),g=m.useMemo(()=>{if(u.size<=0)return!1;let k=!1;return c.forEach(w=>{u.has(w)&&(k=!0)}),k},[c,u]),f=ee(k=>{a.toggleAllItems(k,t.map((w,x)=>{var B;return(B=n==null?void 0:n(w))!==null&&B!==void 0?B:x}))}),h=ee((k,w)=>a.toggleItem(k,w)),v=ee((k,w)=>a.deselectItem(k,w)),b=ee((k,w)=>a.selectItem(k,w)),p=k=>a.isSelected(k),y=ee(k=>a.clearItems(k));return{...e,selection:{selectionMode:i,someRowsSelected:g,allRowsSelected:d,selectedRows:u,toggleRow:h,toggleAllRows:f,clearRows:y,deselectRow:v,selectRow:b,isRowSelected:p}}}const Ba=()=>{},Md={getSortDirection:()=>"ascending",setColumnSort:Ba,sort:e=>[...e],sortColumn:void 0,sortDirection:"ascending",toggleColumnSort:Ba};function T_(e){"use no memo";return r=>E_(r,e)}function E_(e,r){const{columns:t}=e,{sortState:n,defaultSortState:i,onSortChange:o=Ba}=r,[s,l]=yt({initialState:{sortDirection:"ascending",sortColumn:void 0},defaultState:i,state:n}),{sortColumn:u,sortDirection:a}=s,c=ee(o),d=m.useCallback((v,b)=>{l(p=>{const y={...p,sortColumn:b};return p.sortColumn===b?y.sortDirection=p.sortDirection==="ascending"?"descending":"ascending":y.sortDirection="ascending",c==null||c(v,y),y})},[c,l]),g=(v,b,p)=>{const y={sortColumn:b,sortDirection:p};c==null||c(v,y),l(y)},f=m.useCallback(v=>v.slice().sort((b,p)=>{const y=t.find(w=>w.columnId===u);if(!(y!=null&&y.compare))return 0;const k=a==="ascending"?1:-1;return y.compare(b.item,p.item)*k}),[t,u,a]);return{...e,sort:{sort:f,sortColumn:u,sortDirection:a,setColumnSort:g,toggleColumnSort:d,getSortDirection:v=>u===v?a:void 0}}}const N_=(e,r)=>{const t=ee(n=>{var i;(i=e.onClick)===null||i===void 0||i.call(e,n),n.stopPropagation()});return{components:{root:"div"},root:J(de("div",{ref:r,...e,onClick:t}),{elementType:"div"})}},R_=e=>(ne(e),F(e.root,{})),z_={root:"fui-TableResizeHandle"},D_=O({root:{qhf8xq:"f1euv43f",j35jbq:["f1e31b4d","f1vgc2s3"],Bhzewxz:"f15twtuk",B5kzvoi:"f1yab3r1",a9b677:"fjw5fx7",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"fg06o1j",Bceei9c:"fc3en1c",abs64n:"fk73vx1",Bmy1vo4:"f13u1uyl",B3o57yi:"fezquic",Bj3rh1h:"f19g0ac",B3cna0y:"f1tkae59",Brovlpu:"ftqa4ok",B7zu5sd:"f15pjodv",Bsft5z2:"f1rcdj94",ap17g6:"f2gz7yw",a2br6o:"ff2ryt5",E3zdtr:"f1mdlcz9",Eqx8gd:["f10awi5f","f1nzedbg"],bn5sak:"frwkxtg",By385i5:"fo72kxq",Bjyk6c5:"fdlpgxj"}},{d:[".f1euv43f{position:absolute;}",".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f15twtuk{top:0;}",".f1yab3r1{bottom:0;}",".fjw5fx7{width:16px;}",[".fg06o1j{margin:0 -8px;}",{p:-1}],".fc3en1c{cursor:col-resize;}",".fk73vx1{opacity:0;}",".f13u1uyl{transition-property:opacity;}",".fezquic{transition-duration:.2s;}",".f19g0ac{z-index:1;}",'.f1rcdj94::after{content:" ";}',".f2gz7yw::after{display:block;}",".ff2ryt5::after{width:1px;}",".f1mdlcz9::after{position:absolute;}",".f10awi5f::after{left:50%;}",".f1nzedbg::after{right:50%;}",".frwkxtg::after{top:0;}",".fo72kxq::after{bottom:0;}",".fdlpgxj::after{background-color:var(--colorNeutralStroke1);}"],f:[".f1tkae59:focus{opacity:1;}",".ftqa4ok:focus{outline-style:none;}"],h:[".f15pjodv:hover{opacity:1;}"]}),F_=e=>{"use no memo";const r=D_();return e.root.className=N(z_.root,r.root,e.root.className),e},Ld=m.forwardRef((e,r)=>{const t=N_(e,r);return F_(t),ae("useTableResizeHandleStyles_unstable")(t),R_(t)});Ld.displayName="TableResizeHandle";function I_(){const[e,r]=m.useState(0),t=m.useRef(void 0),n=m.useRef(null),{targetDocument:i}=_e(),o=m.useCallback(()=>{var l;const u=(l=t.current)===null||l===void 0?void 0:l.getBoundingClientRect().width;r(u||0)},[]),s=m.useCallback(l=>{if(i&&(!l&&n.current&&t.current&&n.current.unobserve(t.current),t.current=void 0,l!=null&&l.parentElement)){var u;t.current=l.parentElement,o(),(u=n.current)===null||u===void 0||u.observe(t.current)}},[i,o]);return m.useEffect(()=>{if(n.current=j_(i,o),!(!t.current||!n.current))return n.current.observe(t.current),()=>{var l;(l=n.current)===null||l===void 0||l.disconnect()}},[o,i]),{width:e,measureElementRef:s}}function j_(e,r){var t;return!(e==null||(t=e.defaultView)===null||t===void 0)&&t.ResizeObserver?new e.defaultView.ResizeObserver(r):null}function A_(e){const r=m.useRef(0),t=m.useRef(0),n=m.useRef(void 0),[i,o]=m.useState(!1),{targetDocument:s}=_e(),{getColumnWidth:l,setColumnWidth:u}=e,a=m.useCallback(h=>{const{clientX:v}=Ol(h),b=v-r.current;t.current+=b,n.current&&u(h,{columnId:n.current,width:t.current}),r.current=v},[u]),[c]=Dl(),d=m.useCallback(h=>{c(()=>a(h))},[c,a]),g=m.useCallback(h=>{Bi(h)&&(s==null||s.removeEventListener("mouseup",g),s==null||s.removeEventListener("mousemove",d)),Si(h)&&(s==null||s.removeEventListener("touchend",g),s==null||s.removeEventListener("touchmove",d)),o(!1)},[d,s]);return{getOnMouseDown:m.useCallback(h=>v=>{if(t.current=l(h),r.current=Ol(v).clientX,n.current=h,Bi(v)){if(v.target!==v.currentTarget||v.button!==0)return;s==null||s.addEventListener("mouseup",g),s==null||s.addEventListener("mousemove",d),o(!0)}Si(v)&&(s==null||s.addEventListener("touchend",g),s==null||s.addEventListener("touchmove",d),o(!0))},[l,d,g,s]),dragging:i}}const O_=150,q_=100;function Ca(e,r=[],t={}){let n=!1;const i=new Map(r.map(s=>[s.columnId,s])),o=e.map(s=>{const l=i.get(s.columnId);if(l){var u;const{idealWidth:h=l.idealWidth,minWidth:v=l.minWidth,padding:b=l.padding}=(u=t[s.columnId])!==null&&u!==void 0?u:{};return h!==l.idealWidth||v!==l.minWidth||b!==l.padding?(n=!0,{...l,idealWidth:h,width:h,minWidth:v,padding:b}):l}var a;const{defaultWidth:c,idealWidth:d=O_,minWidth:g=q_,padding:f}=(a=t[s.columnId])!==null&&a!==void 0?a:{};return n=!0,{columnId:s.columnId,width:Math.max(c??d,g),minWidth:g,idealWidth:Math.max(c??d,g),padding:f??16}});if(o.length!==r.length||n){const s=o.find(l=>l.width>l.idealWidth);s&&(s.width=s.idealWidth),n=!0}return n?o:r}function po(e,r){return e.find(t=>t.columnId===r)}function Pa(e,r){return e[r]}function M_(e){return e.reduce((r,t)=>r+t.width+t.padding,0)}function L_(e,r){const t=po(e,r);var n;return(n=t==null?void 0:t.width)!==null&&n!==void 0?n:0}function bo(e,r,t,n){const i=po(e,r);if(!i||(i==null?void 0:i[t])===n)return e;const o={...i,[t]:n};return e.reduce((l,u)=>u.columnId===o.columnId?[...l,o]:[...l,u],[])}function yn(e,r){let t=e;const n=M_(t);if(n<r){let i=r-n,o=0;for(;o<t.length&&i>0;){const s=Pa(t,o),l=Math.min(s.idealWidth-s.width,i);if(t=bo(t,s.columnId,"width",s.width+l),i-=l,o===t.length-1&&i!==0){const u=Pa(t,o);t=bo(t,u.columnId,"width",u.width+i)}o++}}else if(n>=r){let i=n-r,o=t.length-1;for(;o>=0&&i>0;){const s=Pa(t,o);if(s.width>s.minWidth){const l=Math.min(s.width-s.minWidth,i);i-=l,t=bo(t,s.columnId,"width",s.width-l)}o--}}return t}const H_=e=>(r,t)=>{switch(t.type){case"CONTAINER_WIDTH_UPDATED":return{...r,containerWidth:t.containerWidth,columnWidthState:e?yn(r.columnWidthState,t.containerWidth):r.columnWidthState};case"COLUMNS_UPDATED":const n=Ca(t.columns,r.columnWidthState,r.columnSizingOptions);return{...r,columns:t.columns,columnWidthState:e?yn(n,r.containerWidth):n};case"COLUMN_SIZING_OPTIONS_UPDATED":const i=Ca(r.columns,r.columnWidthState,t.columnSizingOptions);return{...r,columnSizingOptions:t.columnSizingOptions,columnWidthState:e?yn(i,r.containerWidth):i};case"SET_COLUMN_WIDTH":const{columnId:o,width:s}=t,{containerWidth:l}=r,u=po(r.columnWidthState,o);let a=[...r.columnWidthState];return u?(a=bo(a,o,"width",s),a=bo(a,o,"idealWidth",s),e&&(a=yn(a,l)),{...r,columnWidthState:a}):r}};function W_(e,r,t={}){const{onColumnResize:n,columnSizingOptions:i,autoFitColumns:o=!0}=t,s=m.useMemo(()=>H_(o),[o]),[l,u]=m.useReducer(s,{columns:e,containerWidth:0,columnWidthState:Ca(e,void 0,i),columnSizingOptions:i});Fe(()=>{u({type:"CONTAINER_WIDTH_UPDATED",containerWidth:r})},[r]),Fe(()=>{u({type:"COLUMNS_UPDATED",columns:e})},[e]),Fe(()=>{u({type:"COLUMN_SIZING_OPTIONS_UPDATED",columnSizingOptions:i})},[i]);const a=ee((c,d)=>{let{width:g}=d;const{columnId:f}=d,h=po(l.columnWidthState,f);h&&(g=Math.max(h.minWidth||0,g),n&&n(c,{columnId:f,width:g}),u({type:"SET_COLUMN_WIDTH",columnId:f,width:g}))});return{getColumnById:m.useCallback(c=>po(l.columnWidthState,c),[l.columnWidthState]),getColumns:m.useCallback(()=>l.columnWidthState,[l.columnWidthState]),getColumnWidth:m.useCallback(c=>L_(l.columnWidthState,c),[l.columnWidthState]),setColumnWidth:a}}const wn=20,V_=o0,Hd=1/4;function $_(e){const[r,t]=m.useState(),n=m.useRef(),{findPrevFocusable:i}=so(),o=m.useRef(e);m.useEffect(()=>{o.current=e},[e]);const[s]=m.useState(()=>new Map),l=ee(f=>{if(!r)return;const h=o.current.getColumnWidth(r),v=f.getModifierState(V_),b=()=>{f.preventDefault(),f.stopPropagation()};switch(f.key){case zc:b(),o.current.setColumnWidth(f.nativeEvent,{columnId:r,width:h-(v?wn*Hd:wn)});return;case Zi:b(),o.current.setColumnWidth(f.nativeEvent,{columnId:r,width:h+(v?wn*Hd:wn)});return;case gt:case rr:case Qi:var p,y;b(),(y=s.get(r))===null||y===void 0||(p=y.current)===null||p===void 0||p.blur();break}}),u=m.useCallback(f=>{var h,v;t(f),(h=n.current)===null||h===void 0||h.call(n,f,!0);const b=(v=s.get(f))===null||v===void 0?void 0:v.current;b&&(b.setAttribute("tabindex","-1"),b.tabIndex=-1,b.focus())},[s]),a=m.useCallback(()=>{var f,h;if(!r)return;(f=n.current)===null||f===void 0||f.call(n,r,!1);const v=(h=s.get(r))===null||h===void 0?void 0:h.current;if(v){var b;(b=i(v))===null||b===void 0||b.focus(),v.removeAttribute("tabindex")}t(void 0)},[r,i,s]),c=(f,h)=>{n.current=h,r?f&&r!==f?(u(f),t(f)):a():u(f)},d=m.useCallback(f=>{const h=s.get(f)||m.createRef();return s.set(f,h),h},[s]),g=ao({focusable:{ignoreKeydown:{ArrowLeft:!0,ArrowRight:!0}}});return{toggleInteractiveMode:c,columnId:r,getKeyboardResizingProps:m.useCallback((f,h)=>({onKeyDown:l,onBlur:a,ref:d(f),role:"separator","aria-label":"Resize column","aria-valuetext":`${h} pixels`,"aria-hidden":f!==r,tabIndex:f===r?0:void 0,...g}),[r,a,d,l,g])}}const Wd={getColumnWidths:()=>[],getOnMouseDown:()=>()=>null,setColumnWidth:()=>null,getTableProps:()=>({}),getTableHeaderCellProps:()=>({style:{},columnId:""}),getTableCellProps:()=>({style:{},columnId:""}),enableKeyboardMode:()=>()=>null};function G_(e){"use no memo";return r=>U_(r,{autoFitColumns:!0,...e})}function Vd(e,r){const t=e.width;return{width:t,minWidth:t,maxWidth:t,...r?{pointerEvents:"none"}:{}}}function U_(e,r={}){const{columns:t}=e,{width:n,measureElementRef:i}=I_(),o=W_(t,n+((r==null?void 0:r.containerWidthOffset)||0),r),s=A_(o),{toggleInteractiveMode:l,getKeyboardResizingProps:u}=$_(o),{autoFitColumns:a}=r,c=m.useCallback((b,p)=>y=>{y.preventDefault(),y.nativeEvent.stopPropagation(),l(b,p)},[l]),{getColumnById:d,setColumnWidth:g,getColumns:f}=o,{getOnMouseDown:h,dragging:v}=s;return{...e,tableRef:i,columnSizing_unstable:{getOnMouseDown:h,setColumnWidth:(b,p)=>g(void 0,{columnId:b,width:p}),getColumnWidths:f,getTableProps:(b={})=>({...b,style:{minWidth:"fit-content",...b.style||{}}}),getTableHeaderCellProps:m.useCallback(b=>{var p;const y=d(b),w=((p=t[t.length-1])===null||p===void 0?void 0:p.columnId)===b&&a?null:m.createElement(Ld,{onMouseDown:h(b),onTouchStart:h(b),...u(b,(y==null?void 0:y.width)||0)});return y?{style:Vd(y,v),aside:w}:{}},[d,t,v,u,h,a]),getTableCellProps:m.useCallback(b=>{const p=d(b);return p?{style:Vd(p)}:{}},[d]),enableKeyboardMode:c}}}const K_=e=>e,X_={selection:qd,sort:Md,getRows:()=>[],getRowId:()=>"",items:[],columns:[],columnSizing_unstable:Wd,tableRef:m.createRef()};function Z_(e,r=[]){const{items:t,getRowId:n,columns:i}=e,o=m.useCallback((l=K_)=>t.map((u,a)=>{var c;return l({item:u,rowId:(c=n==null?void 0:n(u))!==null&&c!==void 0?c:a})}),[t,n]),s={getRowId:n,items:t,columns:i,getRows:o,selection:qd,sort:Md,columnSizing_unstable:Wd,tableRef:m.createRef()};return r.reduce((l,u)=>u(l),s)}const Q_=()=>0,Y_=()=>(process.env.NODE_ENV!=="production"&&console.warn("@fluentui/react-table: You are using the default column renderCell function that renders null"),null),J_=()=>(process.env.NODE_ENV!=="production"&&console.warn("@fluentui/react-table: You are using the default column renderHeaderCell function that renders null"),null);function eS(e){const{columnId:r,renderCell:t=Y_,renderHeaderCell:n=J_,compare:i=Q_}=e;return{columnId:r,renderCell:t,renderHeaderCell:n,compare:i}}function tS(){const e=Hi({axis:"horizontal"}),r=Hi({axis:"grid"}),t=Wi({tabBehavior:"limited-trap-focus"}),{findFirstFocusable:n}=so(),{targetDocument:i}=_e(),o=Zb(e,t);return{onTableKeyDown:m.useCallback(l=>{if(!i)return;let u=i.activeElement;if(!u||!l.currentTarget.contains(u))return;const a=u.getAttribute("role");if(l.key===Zi&&a==="row"&&Ue(u)){var c;(c=n(u))===null||c===void 0||c.focus()}if(a==="row")return;const d=(()=>{let g=Ue(u)?u:null;for(;g;){const f=g.getAttribute("role");if(f==="cell"||f==="gridcell")return!0;g=g.parentElement}return!1})();(l.key===Xi||l.key===Jo)&&d&&(u.dispatchEvent(new Mp({action:Ei.Escape})),u=i.activeElement,u&&u.dispatchEvent(new qp({key:Se[l.key]})))},[i,n]),tableTabsterAttribute:r,tableRowTabsterAttribute:o}}const $d=m.createContext(void 0),rS={size:"medium",noNativeElements:!1,sortable:!1},oS=$d.Provider,Mt=()=>{var e;return(e=m.useContext($d))!==null&&e!==void 0?e:rS},Gd=(e,r)=>{const{noNativeElements:t,size:n}=Mt();var i;const o=((i=e.as)!==null&&i!==void 0?i:t)?"div":"td";return{components:{root:o},root:J(de(o,{ref:r,role:o==="div"?"cell":void 0,...e}),{elementType:o}),noNativeElements:t,size:n}},nS=e=>(ne(e),F(e.root,{})),iS={root:"fui-TableCell"},aS=O({root:{mc9l5x:"f15pt5es",ha4doy:"fmrv4ls"},medium:{Bqenvij:"f1ft4266"},small:{Bqenvij:"fbsu25e"},"extra-small":{Bqenvij:"frvgh55"}},{d:[".f15pt5es{display:table-cell;}",".fmrv4ls{vertical-align:middle;}",".f1ft4266{height:44px;}",".fbsu25e{height:34px;}",".frvgh55{height:24px;}"]}),sS=O({root:{mc9l5x:"f22iagw",Bf4jedk:"f10tiqix",Bt984gj:"f122n59",xawz:0,Bh6795r:0,Bnnss6s:0,fkmc3a:"f1izfyrr"},medium:{sshi5w:"f5pgtk9"},small:{sshi5w:"fcep9tg"},"extra-small":{sshi5w:"f1pha7fy"}},{d:[".f22iagw{display:flex;}",".f10tiqix{min-width:0px;}",".f122n59{align-items:center;}",[".f1izfyrr{flex:1 1 0px;}",{p:-1}],".f5pgtk9{min-height:44px;}",".fcep9tg{min-height:34px;}",".f1pha7fy{min-height:24px;}"]}),lS=O({root:{qhf8xq:"f10pi13n",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f3gpkru",Bfpq7zp:0,g9k6zt:0,Bn4voq9:0,giviqs:"f1dxfoyt",Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f2krc9w"}},{d:[".f10pi13n{position:relative;}",[".f3gpkru{padding:0px var(--spacingHorizontalS);}",{p:-1}],[".f1dxfoyt[data-fui-focus-visible]{outline:2px solid var(--colorStrokeFocus2);}",{p:-1}],[".f2krc9w[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);}",{p:-1}]]}),cS=e=>{"use no memo";const r=lS(),t={table:aS(),flex:sS()};return e.root.className=N(iS.root,r.root,e.noNativeElements?t.flex.root:t.table.root,e.noNativeElements?t.flex[e.size]:t.table[e.size],e.root.className),e},Ud=m.createContext(void 0),uS="",dS=Ud.Provider,kn=()=>m.useContext(Ud)===uS,fS=(e,r)=>{const{noNativeElements:t,size:n}=Mt();var i;const o=((i=e.as)!==null&&i!==void 0?i:t)?"div":"tr",s=_c(),l=Rr(),u=kn();var a;return{components:{root:o},root:J(de(o,{ref:Ne(r,s,l),role:o==="div"?"row":void 0,...e}),{elementType:o}),size:n,noNativeElements:t,appearance:(a=e.appearance)!==null&&a!==void 0?a:"none",isHeaderRow:u}},hS=44,Ta={root:"fui-TableSelectionCell",checkboxIndicator:"fui-TableSelectionCell__checkboxIndicator",radioIndicator:"fui-TableSelectionCell__radioIndicator"},gS=O({root:{mc9l5x:"f15pt5es",a9b677:"fksc0bp"}},{d:[".f15pt5es{display:table-cell;}",".fksc0bp{width:44px;}"]}),vS=O({root:{mc9l5x:"f22iagw",xawz:0,Bh6795r:0,Bnnss6s:0,fkmc3a:"f1izfyrr",Bf4jedk:"fvrlu0f",B2u0y6b:"f1c71y05",Brf1p80:"f4d9j23"}},{d:[".f22iagw{display:flex;}",[".f1izfyrr{flex:1 1 0px;}",{p:-1}],".fvrlu0f{min-width:44px;}",".f1c71y05{max-width:44px;}",".f4d9j23{justify-content:center;}"]}),mS=O({root:{fsow6f:"f17mccla",Huce71:"fz5stix",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",Bfpq7zp:0,g9k6zt:0,Bn4voq9:0,giviqs:"f1dxfoyt",Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f2krc9w"},radioIndicator:{mc9l5x:"f22iagw",Bh6795r:"fqerorx",Bt984gj:"f122n59",Brf1p80:"f4d9j23"},subtle:{abs64n:"fk73vx1",B8a84jv:"f1y7ij6c"},hidden:{abs64n:"fk73vx1"}},{d:[".f17mccla{text-align:center;}",".fz5stix{white-space:nowrap;}",[".f1mk8lai{padding:0;}",{p:-1}],[".f1dxfoyt[data-fui-focus-visible]{outline:2px solid var(--colorStrokeFocus2);}",{p:-1}],[".f2krc9w[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}",".f122n59{align-items:center;}",".f4d9j23{justify-content:center;}",".fk73vx1{opacity:0;}",".f1y7ij6c[data-fui-focus-within]:focus-within{opacity:1;}"]}),pS=e=>{"use no memo";const r=mS(),t={table:gS(),flex:vS()};return e.root.className=N(Ta.root,r.root,e.noNativeElements?t.flex.root:t.table.root,e.subtle&&e.checked===!1&&r.subtle,e.hidden&&r.hidden,e.root.className),e.checkboxIndicator&&(e.checkboxIndicator.className=N(Ta.checkboxIndicator,e.checkboxIndicator.className)),e.radioIndicator&&(e.radioIndicator.className=N(Ta.radioIndicator,r.radioIndicator,e.radioIndicator.className)),e},bS={root:"fui-TableRow"},yS=O({root:{mc9l5x:"f1u0rzck"}},{d:[".f1u0rzck{display:table-row;}"]}),wS=O({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}"]}),kS=O({root:{sj55zd:"f19n0e5",B7ck84d:"f1ewtqcl",Bconypa:"f1jazu75",B6guboy:"f1xeqee6",Bfpq7zp:0,g9k6zt:0,Bn4voq9:0,giviqs:"f1dxfoyt",Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f2krc9w"},rootInteractive:{B6guboy:"f1xeqee6",ecr2s2:"f1wfn5kd",lj723h:"f1g4hkjv",B43xm9u:"f15ngxrw",i921ia:"fjbbrdp",Jwef8y:"f1t94bn6",Bi91k9c:"feu1g3u",Bpt6rm4:"f1uorfem",ff6mpl:"fw60kww",ze5xyy:"f4xjyn1",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"]},medium:{B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:"f1facbz3"},small:{B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:"f1facbz3"},"extra-small":{Be2twd7:"fy9rknc"},brand:{De3pzq:"f16xkysk",g2u3we:"f1bh3yvw",h3c5rm:["fmi79ni","f11fozsx"],B9xav0g:"fnzw4c6",zhjwy3:["f11fozsx","fmi79ni"],ecr2s2:"f7tkmfy",lj723h:"f1r2dosr",uu68id:0,Bxeuatn:0,felo30:0,Bc736ss:0,Bhz882k:0,n51gp8:0,Eshu5l:0,Bk6ri7n:0,v49c4f:0,Bn1d65q:0,c4eypz:0,v3aym:0,hft9gk:0,Bjwas2f:0,Bk5ld8o:0,gwxt9v:0,B6k8go:"f95l9gw",h6lo6r:0,Beo2b4z:0,w1pwid:0,Btyw6ap:0,Hkxhyr:"fw8kmcu",Brwvgy3:"fd94n53",yadkgm:"f1e0wld5"},neutral:{uu68id:0,Bxeuatn:0,felo30:0,Bc736ss:0,Bhz882k:0,n51gp8:0,Eshu5l:0,Bk6ri7n:0,v49c4f:0,Bn1d65q:0,c4eypz:0,v3aym:0,hft9gk:0,Bjwas2f:0,Bk5ld8o:0,gwxt9v:0,B6k8go:"f95l9gw",h6lo6r:0,Beo2b4z:0,w1pwid:0,Btyw6ap:0,Hkxhyr:"fw8kmcu",Brwvgy3:"fd94n53",yadkgm:"f1e0wld5",De3pzq:"fq5gl1p",sj55zd:"f1cgsbmv",Jwef8y:"f1uqaxdt",ecr2s2:"fa9o754",g2u3we:"frmsihh",h3c5rm:["frttxa5","f11o2r7f"],B9xav0g:"fem5et0",zhjwy3:["f11o2r7f","frttxa5"]},none:{}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ewtqcl{box-sizing:border-box;}",".f1jazu75[data-fui-focus-within]:focus-within .fui-TableSelectionCell{opacity:1;}",".f1xeqee6[data-fui-focus-within]:focus-within .fui-TableCellActions{opacity:1;}",[".f1dxfoyt[data-fui-focus-visible]{outline:2px solid var(--colorStrokeFocus2);}",{p:-1}],[".f2krc9w[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f1facbz3{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStroke2);}",{p:-1}],[".f1facbz3{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStroke2);}",{p:-1}],".fy9rknc{font-size:var(--fontSizeBase200);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".f1bh3yvw{border-top-color:var(--colorTransparentStrokeInteractive);}",".fmi79ni{border-right-color:var(--colorTransparentStrokeInteractive);}",".f11fozsx{border-left-color:var(--colorTransparentStrokeInteractive);}",".fnzw4c6{border-bottom-color:var(--colorTransparentStrokeInteractive);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1cgsbmv{color:var(--colorNeutralForeground1Hover);}",".frmsihh{border-top-color:var(--colorNeutralStrokeOnBrand);}",".frttxa5{border-right-color:var(--colorNeutralStrokeOnBrand);}",".f11o2r7f{border-left-color:var(--colorNeutralStrokeOnBrand);}",".fem5et0{border-bottom-color:var(--colorNeutralStrokeOnBrand);}"],a:[".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}",".f15ngxrw:active .fui-TableCellActions{opacity:1;}",".fjbbrdp:active .fui-TableSelectionCell{opacity:1;}",".f7tkmfy:active{background-color:var(--colorBrandBackground2);}",".f1r2dosr:active{color:var(--colorNeutralForeground1);}",".fa9o754:active{background-color:var(--colorSubtleBackgroundSelected);}"],h:[".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".f1uorfem:hover .fui-TableCellActions{opacity:1;}",".fw60kww:hover .fui-TableSelectionCell{opacity:1;}",".f1uqaxdt:hover{background-color:var(--colorSubtleBackgroundSelected);}"],m:[["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f95l9gw{border:2px solid transparent;}}",{p:-2,m:"(forced-colors: active)"}],["@media (forced-colors: active){.fw8kmcu{border-radius:var(--borderRadiusMedium);}}",{p:-1,m:"(forced-colors: active)"}],["@media (forced-colors: active){.fd94n53{box-sizing:border-box;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1e0wld5:focus-visible{outline-offset:-4px;}}",{m:"(forced-colors: active)"}]]}),xS=e=>{"use no memo";const r=kS(),t={table:yS(),flex:wS()};return e.root.className=N(bS.root,r.root,!e.isHeaderRow&&r.rootInteractive,r[e.size],e.noNativeElements?t.flex.root:t.table.root,r[e.appearance],e.root.className),e},_S=(e,r)=>{const{noNativeElements:t}=Mt();var n;const i=((n=e.as)!==null&&n!==void 0?n:t)?"div":"tbody";return{components:{root:i},root:J(de(i,{ref:r,role:i==="div"?"rowgroup":void 0,...e}),{elementType:i}),noNativeElements:t}},SS=O({root:{mc9l5x:"f1tp1avn"}},{d:[".f1tp1avn{display:table-row-group;}"]}),BS=O({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),CS="fui-TableBody",PS=e=>{"use no memo";const r={table:SS(),flex:BS()};return e.root.className=N(CS,e.noNativeElements?r.flex.root:r.table.root,e.root.className),e},TS=(e,r)=>{var t;const n=((t=e.as)!==null&&t!==void 0?t:e.noNativeElements)?"div":"table";var i,o,s;return{components:{root:n},root:J(de(n,{ref:r,role:n==="div"?"table":void 0,...e}),{elementType:n}),size:(i=e.size)!==null&&i!==void 0?i:"medium",noNativeElements:(o=e.noNativeElements)!==null&&o!==void 0?o:!1,sortable:(s=e.sortable)!==null&&s!==void 0?s:!1}},ES=(e,r)=>(ne(e),F(oS,{value:r.table,children:F(e.root,{})})),NS="fui-Table",RS=O({root:{mc9l5x:"f1w4nmp0",ha4doy:"fmrv4ls",a9b677:"fly5x3f",B73mfa3:"f14m3nip"}},{d:[".f1w4nmp0{display:table;}",".fmrv4ls{vertical-align:middle;}",".fly5x3f{width:100%;}",".f14m3nip{table-layout:fixed;}"]}),zS=O({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),DS=O({root:{po53p8:"fgkb47j",De3pzq:"fhovq9v"}},{d:[".fgkb47j{border-collapse:collapse;}",".fhovq9v{background-color:var(--colorSubtleBackground);}"]}),FS=e=>{"use no memo";const r=DS(),t={table:RS(),flex:zS()};return e.root.className=N(NS,r.root,e.noNativeElements?t.flex.root:t.table.root,e.root.className),e};function IS(e){const{size:r,noNativeElements:t,sortable:n}=e;return{table:m.useMemo(()=>({noNativeElements:t,size:r,sortable:n}),[t,r,n])}}const jS=(e,r)=>{const{noNativeElements:t}=Mt();var n;const i=((n=e.as)!==null&&n!==void 0?n:t)?"div":"thead";return{components:{root:i},root:J(de(i,{ref:r,role:i==="div"?"rowgroup":void 0,...e}),{elementType:i}),noNativeElements:t}},AS=e=>(ne(e),F(dS,{value:"",children:F(e.root,{})})),OS="fui-TableHeader",qS=O({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),MS=O({root:{mc9l5x:"f1tp1avn"}},{d:[".f1tp1avn{display:table-row-group;}"]}),LS=e=>{"use no memo";const r={table:MS(),flex:qS()};return e.root.className=N(OS,e.noNativeElements?r.flex.root:r.table.root,e.root.className),e},HS={ascending:m.createElement(m0,{fontSize:12}),descending:m.createElement(v0,{fontSize:12})},WS=(e,r)=>{const{noNativeElements:t,sortable:n}=Mt(),{sortable:i=n}=e;var o;const s=((o=e.as)!==null&&o!==void 0?o:t)?"div":"th",l=J(e.button,{elementType:"div",defaultProps:{as:"div",...!i&&{role:"presentation",tabIndex:void 0}}});var u;return{components:{root:s,button:"div",sortIcon:"span",aside:"span"},root:J(de(s,{ref:Ne(r,Rr()),role:s==="div"?"columnheader":void 0,"aria-sort":i?(u=e.sortDirection)!==null&&u!==void 0?u:"none":void 0,...e}),{elementType:s}),aside:te(e.aside,{elementType:"span"}),sortIcon:te(e.sortIcon,{renderByDefault:!!e.sortDirection,defaultProps:{children:e.sortDirection?HS[e.sortDirection]:void 0},elementType:"span"}),button:Ic(l.as,l),sortable:i,noNativeElements:t}},VS=e=>(ne(e),ye(e.root,{children:[ye(e.button,{children:[e.root.children,e.sortIcon&&F(e.sortIcon,{})]}),e.aside&&F(e.aside,{})]})),xn={root:"fui-TableHeaderCell",button:"fui-TableHeaderCell__button",sortIcon:"fui-TableHeaderCell__sortIcon",aside:"fui-TableHeaderCell__aside"},$S=O({root:{mc9l5x:"f15pt5es",ha4doy:"fmrv4ls"}},{d:[".f15pt5es{display:table-cell;}",".fmrv4ls{vertical-align:middle;}"]}),GS=O({root:{mc9l5x:"f22iagw",xawz:0,Bh6795r:0,Bnnss6s:0,fkmc3a:"f1izfyrr",Bf4jedk:"f10tiqix"}},{d:[".f22iagw{display:flex;}",[".f1izfyrr{flex:1 1 0px;}",{p:-1}],".f10tiqix{min-width:0px;}"]}),US=O({root:{Bhrd7zp:"figsok6",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f3gpkru",robkg1:0,Bmvh20x:0,B3nxjsc:0,Bmkhcsx:"f14ym4q2",B8osjzx:0,pehzd3:0,Blsv9te:0,u7xebq:0,Bsvwmf7:"f1euou18",qhf8xq:"f10pi13n"},rootInteractive:{Bi91k9c:"feu1g3u",Jwef8y:"f1t94bn6",lj723h:"f1g4hkjv",ecr2s2:"f1wfn5kd"},resetButton:{B3rzk8w:"fq6nmtn",B7ck84d:"f1e4lqlz",De3pzq:"f1u2r49w",sj55zd:"f1ym3bx4",Bahqtrf:"f1mo0ibp",Be2twd7:"fjoy568",Bg96gwp:"fytdu2e",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f3bhgqh",fsow6f:"fgusgyc"},button:{qhf8xq:"f10pi13n",a9b677:"fly5x3f",mc9l5x:"f22iagw",Bh6795r:0,Bqenvij:"f1l02sjl",Bt984gj:"f122n59",i8kkvl:0,Belr9w4:0,rmohyg:"fkln5zr",sshi5w:"f1nxs5xn",xawz:0,Bnnss6s:0,fkmc3a:"f1izfyrr",oeaueh:"f1s6fcnf"},sortable:{Bceei9c:"f1k6fduh"},sortIcon:{mc9l5x:"f22iagw",Bt984gj:"f122n59",z8tnut:"fclwglc"},resizeHandle:{}},{d:[".figsok6{font-weight:var(--fontWeightRegular);}",[".f3gpkru{padding:0px var(--spacingHorizontalS);}",{p:-1}],[".f14ym4q2[data-fui-focus-within]:focus-within{outline:2px solid var(--colorStrokeFocus2);}",{p:-1}],[".f1euou18[data-fui-focus-within]:focus-within{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f10pi13n{position:relative;}",".fq6nmtn{resize:horizontal;}",".f1e4lqlz{box-sizing:content-box;}",".f1u2r49w{background-color:inherit;}",".f1ym3bx4{color:inherit;}",".f1mo0ibp{font-family:inherit;}",".fjoy568{font-size:inherit;}",".fytdu2e{line-height:normal;}",[".f1gl81tg{overflow:visible;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],[".f3bhgqh{border:none;}",{p:-2}],".fgusgyc{text-align:unset;}",".fly5x3f{width:100%;}",".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}",".f1l02sjl{height:100%;}",".f122n59{align-items:center;}",[".fkln5zr{gap:var(--spacingHorizontalXS);}",{p:-1}],".f1nxs5xn{min-height:32px;}",[".f1izfyrr{flex:1 1 0px;}",{p:-1}],".f1s6fcnf{outline-style:none;}",".f1k6fduh{cursor:pointer;}",".fclwglc{padding-top:var(--spacingVerticalXXS);}"],h:[".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}"],a:[".f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}"]}),KS=e=>{"use no memo";const r=US(),t={table:$S(),flex:GS()};return e.root.className=N(xn.root,r.root,e.sortable&&r.rootInteractive,e.noNativeElements?t.flex.root:t.table.root,e.root.className),e.button.className=N(xn.button,r.resetButton,r.button,e.sortable&&r.sortable,e.button.className),e.sortIcon&&(e.sortIcon.className=N(xn.sortIcon,r.sortIcon,e.sortIcon.className)),e.aside&&(e.aside.className=N(xn.aside,r.resizeHandle,e.aside.className)),e},Kd=m.createContext(void 0),XS="",Xd=()=>{var e;return(e=m.useContext(Kd))!==null&&e!==void 0?e:XS},ZS=Kd.Provider,Zd=m.createContext(void 0),QS="",Qd=()=>{var e;return(e=m.useContext(Zd))!==null&&e!==void 0?e:QS},YS=Zd.Provider,JS=(e,r)=>{const t=Gd(e,Ne(r,Rr())),{noNativeElements:n}=Mt(),{type:i="checkbox",checked:o=!1,subtle:s=!1,hidden:l=!1,invisible:u=!1}=e;return{...t,components:{...t.components,checkboxIndicator:wa,radioIndicator:xa},checkboxIndicator:te(e.checkboxIndicator,{renderByDefault:i==="checkbox",defaultProps:{checked:e.checked},elementType:wa}),radioIndicator:te(e.radioIndicator,{renderByDefault:i==="radio",defaultProps:{checked:!!o,input:{name:Ge("table-selection-radio")}},elementType:xa}),type:i,checked:o,noNativeElements:n,subtle:s,hidden:u||l}},e2=e=>(ne(e),ye(e.root,{children:[e.type==="checkbox"&&e.checkboxIndicator&&F(e.checkboxIndicator,{}),e.type==="radio"&&e.radioIndicator&&F(e.radioIndicator,{})]})),Yd=Yo(void 0),Jd={...X_,subtleSelection:!1,selectableRows:!1,selectionAppearance:"brand",focusMode:"none",compositeRowTabsterAttribute:{}},t2=Yd.Provider,ke=e=>Ui(Yd,(r=Jd)=>e(r)),r2=(e,r)=>{const{focusMode:t="cell"}=e,n=Xd(),i=ke(u=>(u.focusMode==="cell"||u.focusMode==="composite")&&t!=="none"),o=ke(u=>u.resizableColumns),s=ke(u=>u.columnSizing_unstable.getTableCellProps),l=Wi({tabBehavior:"limited-trap-focus"});return Gd({as:"div",role:"gridcell",...t==="group"&&l,tabIndex:i?0:void 0,...o?s(n):{},...e},r)},o2=e=>nS(e),n2={root:"fui-DataGridCell"},i2=e=>{"use no memo";return cS(e),e.root.className=N(n2.root,e.root.className),e},ef=m.forwardRef((e,r)=>{const t=r2(e,r);return i2(t),ae("useDataGridCellStyles_unstable")(t),o2(t)});ef.displayName="DataGridCell";const a2=(e,r)=>{const t=kn(),n=Qd(),i=ke(a=>a.subtleSelection),o=ke(a=>t&&a.selection.selectionMode==="multiselect"?a.selection.allRowsSelected?!0:a.selection.someRowsSelected?"mixed":!1:a.selection.isRowSelected(n)),s=ke(a=>a.selection.toggleAllRows),l=ke(a=>a.selection.selectionMode==="multiselect"?"checkbox":"radio"),u=ee(a=>{var c;t&&s(a),(c=e.onClick)===null||c===void 0||c.call(e,a)});return JS({as:"div",role:"gridcell",checked:o,type:l,invisible:t&&l==="radio","aria-selected":o==="mixed"?void 0:o,subtle:i,...e,onClick:u},r)},s2=e=>e2(e),Ea={root:"fui-DataGridSelectionCell",checkboxIndicator:"fui-DataGridSelectionCell__checkboxIndicator",radioIndicator:"fui-DataGridSelectionCell__radioIndicator"},l2=e=>{"use no memo";return pS(e),e.root.className=N(Ea.root,e.root.className),e.checkboxIndicator&&(e.checkboxIndicator.className=N(Ea.checkboxIndicator,e.checkboxIndicator.className)),e.radioIndicator&&(e.radioIndicator.className=N(Ea.radioIndicator,e.radioIndicator.className)),e},Na=m.forwardRef((e,r)=>{const t=a2(e,r);return l2(t),ae("useDataGridSelectionCellStyles_unstable")(t),s2(t)});Na.displayName="DataGridSelectionCell";const c2=(e,r)=>{const t=Qd(),n=kn(),i=ke(v=>v.columns),o=ke(v=>v.selectableRows),s=ke(v=>v.selection.isRowSelected(t)),l=ke(v=>v.focusMode),u=ke(v=>v.compositeRowTabsterAttribute),a=l==="row_unstable"||l==="composite",c=ke(v=>!n&&o&&v.selection.isRowSelected(t)?v.selectionAppearance:"none"),d=ke(v=>v.selection.toggleRow),g=ee(v=>{var b;o&&!n&&d(v,t),(b=e.onClick)===null||b===void 0||b.call(e,v)}),f=ee(v=>{var b;o&&!n&&v.key===gt&&!ip(v.target)&&(v.preventDefault(),d(v,t)),(b=e.onKeyDown)===null||b===void 0||b.call(e,v)}),h=fS({appearance:c,"aria-selected":o?s:void 0,tabIndex:a&&!n?0:void 0,...l==="composite"&&!n&&u,...e,onClick:g,onKeyDown:f,children:null,as:"div"},r);return{...h,components:{...h.components,selectionCell:Na},selectionCell:te(e.selectionCell,{renderByDefault:o,elementType:Na,defaultProps:{radioIndicator:{disabled:n}}}),renderCell:e.children,columnDefs:i,dataGridContextValue:u2()}};function u2(){const e=m.useRef(Jd);return ke(r=>(e.current=r,null)),e.current}const d2=e=>(ne(e),ye(e.root,{children:[e.selectionCell&&F(e.selectionCell,{}),e.columnDefs.map(r=>F(ZS,{value:r.columnId,children:e.renderCell(r,e.dataGridContextValue)},r.columnId))]})),tf={root:"fui-DataGridRow",selectionCell:"fui-DataGridRow__selectionCell"},f2=O({singleSelectHeader:{Bconypa:"f6fspww",ff6mpl:"fqzoyx6"},subtleSelection:{Bconypa:"f1jazu75",ff6mpl:"fw60kww"}},{d:[".f6fspww[data-fui-focus-within]:focus-within .fui-TableSelectionCell{opacity:0;}",".f1jazu75[data-fui-focus-within]:focus-within .fui-TableSelectionCell{opacity:1;}"],h:[".fqzoyx6:hover .fui-TableSelectionCell{opacity:0;}",".fw60kww:hover .fui-TableSelectionCell{opacity:1;}"]}),h2=e=>{"use no memo";const r=kn(),t=ke(o=>o.selection.selectionMode==="single"),n=ke(o=>o.subtleSelection),i=f2();return xS(e),e.root.className=N(tf.root,e.root.className,n&&i.subtleSelection,r&&t&&i.singleSelectHeader),e.selectionCell&&(e.selectionCell.className=N(tf.selectionCell,e.selectionCell.className)),e},Ra=m.forwardRef((e,r)=>{const t=c2(e,r);return h2(t),ae("useDataGridRowStyles_unstable")(t),d2(t)});Ra.displayName="DataGridRow";const g2=(e,r)=>{const{sortable:t}=Mt(),n=ke(l=>l.getRows),i=ke(l=>l.sort.sort),o=t?i(n()):n();return{..._S({...e,children:null,as:"div"},r),rows:o,renderRow:e.children}},v2=e=>(ne(e),F(e.root,{children:e.rows.map(r=>F(YS,{value:r.rowId,children:e.renderRow(r)},r.rowId))})),m2={root:"fui-DataGridBody"},p2=e=>{"use no memo";return PS(e),e.root.className=N(m2.root,e.root.className),e},rf=m.forwardRef((e,r)=>{const t=g2(e,r);return p2(t),ae("useDataGridBodyStyles_unstable")(t),v2(t)});rf.displayName="DataGridBody";const b2=(e,r)=>{const{items:t,columns:n,focusMode:i="cell",selectionMode:o,onSortChange:s,onSelectionChange:l,defaultSortState:u,sortState:a,selectedItems:c,defaultSelectedItems:d,subtleSelection:g=!1,selectionAppearance:f="brand",getRowId:h,resizableColumns:v,columnSizingOptions:b,onColumnResize:p,containerWidthOffset:y,resizableColumnsOptions:k={}}=e,w=y??(o?-hS:0),x=Hi({axis:"grid"}),{onTableKeyDown:B,tableTabsterAttribute:S,tableRowTabsterAttribute:C}=tS();var E;const I=Z_({items:t,columns:n,getRowId:h},[T_({defaultSortState:u,sortState:a,onSortChange:s}),C_({defaultSelectedItems:d,selectedItems:c,onSelectionChange:l,selectionMode:o??"multiselect"}),G_({onColumnResize:p,columnSizingOptions:b,containerWidthOffset:w,autoFitColumns:(E=k.autoFitColumns)!==null&&E!==void 0?E:!0})]),$=m.useRef(null),{findFirstFocusable:U,findLastFocusable:T}=so(),A=ee(X=>{var Q;if((Q=e.onKeyDown)===null||Q===void 0||Q.call(e,X),i==="composite"&&B(X),!(!$.current||!X.ctrlKey||X.defaultPrevented)){if(X.key===Fc){const W=$.current.querySelector('[role="row"]');if(W){var z;(z=U(W))===null||z===void 0||z.focus()}}if(X.key===Dc){const W=$.current.querySelectorAll('[role="row"]');if(W.length){var q;const se=W.item(W.length-1);(q=T(se))===null||q===void 0||q.focus()}}}});return{...TS({role:"grid",as:"div",noNativeElements:!0,...i==="cell"&&x,...i==="composite"&&S,...e,onKeyDown:A,...v?I.columnSizing_unstable.getTableProps(e):{}},Ne(r,I.tableRef,$)),focusMode:i,tableState:I,selectableRows:!!o,subtleSelection:g,selectionAppearance:f,resizableColumns:v,compositeRowTabsterAttribute:C}},y2=(e,r)=>m.createElement(t2,{value:r.dataGrid},ES(e,r)),w2={root:"fui-DataGrid"},k2=e=>{"use no memo";return FS(e),e.root.className=N(w2.root,e.root.className),e};function x2(e){const r=IS(e),{tableState:t,focusMode:n,selectableRows:i,subtleSelection:o,selectionAppearance:s,resizableColumns:l,compositeRowTabsterAttribute:u}=e;return{...r,dataGrid:{...t,focusMode:n,selectableRows:i,subtleSelection:o,selectionAppearance:s,resizableColumns:l,compositeRowTabsterAttribute:u}}}const of=m.forwardRef((e,r)=>{const t=b2(e,r);return k2(t),ae("useDataGridStyles_unstable")(t),y2(t,x2(t))});of.displayName="DataGrid";const _2=(e,r)=>jS({...e,as:"div"},r),S2=e=>AS(e),B2={root:"fui-DataGridHeader"},C2=e=>{"use no memo";return LS(e),e.root.className=N(B2.root,e.root.className),e},nf=m.forwardRef((e,r)=>{const t=_2(e,r);return C2(t),ae("useDataGridHeaderStyles_unstable")(t),S2(t)});nf.displayName="DataGridHeader";function P2(e){return e.compare.length>0}const T2=(e,r)=>{const t=Xd(),{sortable:n}=Mt(),i=ke(c=>c.sort.toggleColumnSort),o=ke(c=>{const d=!!c.columns.find(g=>g.columnId===t&&P2(g));return n?d:!1}),s=ke(c=>o?c.sort.getSortDirection(t):void 0),l=ke(c=>c.resizableColumns),u=ke(c=>c.columnSizing_unstable.getTableHeaderCellProps),a=ee(c=>{var d;o&&i(c,t),(d=e.onClick)===null||d===void 0||d.call(e,c)});return WS({sortable:o,sortDirection:s,as:"div",tabIndex:o?void 0:0,...l?u(t):{},...e,onClick:a},r)},E2=e=>VS(e),_n={root:"fui-DataGridHeaderCell",button:"fui-DataGridHeaderCell__button",sortIcon:"fui-DataGridHeaderCell__sortIcon",aside:"fui-DataGridHeaderCell__aside"},N2=e=>{"use no memo";return KS(e),e.root.className=N(_n.root,e.root.className),e.button&&(e.button.className=N(_n.button,e.button.className)),e.sortIcon&&(e.sortIcon.className=N(_n.sortIcon,e.sortIcon.className)),e.aside&&(e.aside.className=N(_n.aside,e.aside.className)),e},af=m.forwardRef((e,r)=>{const t=T2(e,r);return N2(t),ae("useDataGridHeaderCellStyles_unstable")(t),E2(t)});af.displayName="DataGridHeaderCell";const R2=(e,{referenceLabel:r,referenceId:t},n)=>{const{checkbox:i={},onSelectionChange:o,floatingAction:s,onClick:l,onKeyDown:u}=e,{findAllFocusable:a}=so(),c=m.useRef(null),[d,g]=yt({state:e.selected,defaultState:e.defaultSelected,initialState:!1}),f=[e.selected,e.defaultSelected,o].some(B=>typeof B<"u"),[h,v]=m.useState(!1),b=m.useCallback(B=>{if(!n.current)return!1;const S=a(n.current),C=B.target,E=S.some($=>$.contains(C)),I=(c==null?void 0:c.current)===C;return E&&!I},[n,a]),p=m.useCallback(B=>{if(b(B))return;const S=!d;g(S),o&&o(B,{selected:S})},[o,d,g,b]),y=m.useCallback(B=>{[rr].includes(B.key)&&(B.preventDefault(),p(B))},[p]),k=m.useMemo(()=>{if(!f||s)return;const B={};return t?B["aria-labelledby"]=t:r&&(B["aria-label"]=r),te(i,{defaultProps:{ref:c,type:"checkbox",checked:d,onChange:S=>p(S),onFocus:()=>v(!0),onBlur:()=>v(!1),...B},elementType:"input"})},[i,s,d,f,p,t,r]),w=m.useMemo(()=>{if(s)return te(s,{defaultProps:{ref:c},elementType:"div"})},[s]),x=m.useMemo(()=>f?{onClick:Re(l,p),onKeyDown:Re(u,y)}:null,[f,p,l,u,y]);return{selected:d,selectable:f,selectFocused:h,selectableCardProps:x,checkboxSlot:k,floatingActionSlot:w}},sf=m.createContext(void 0),za={selectableA11yProps:{referenceId:void 0,setReferenceId(){},referenceLabel:void 0,setReferenceLabel(){}}},z2=sf.Provider,lf=()=>{var e;return(e=m.useContext(sf))!==null&&e!==void 0?e:za},D2={off:void 0,"no-tab":"limited-trap-focus","tab-exit":"limited","tab-only":"unlimited"},F2=({focusMode:e,...r})=>{const t=["onClick","onDoubleClick","onMouseUp","onMouseDown","onPointerUp","onPointerDown","onTouchStart","onTouchEnd","onDragStart","onDragEnd"].some(s=>r[s]),n=e??(t?"no-tab":"off"),o={...Wi({tabBehavior:D2[n]}),tabIndex:0};return{interactive:t,focusAttributes:n==="off"?null:o}},I2=(e,r)=>{const{appearance:t="filled",orientation:n="vertical",size:i="medium"}=e,[o,s]=m.useState(za.selectableA11yProps.referenceId),[l,u]=m.useState(za.selectableA11yProps.referenceId),a=Rr(),{selectable:c,selected:d,selectableCardProps:g,selectFocused:f,checkboxSlot:h,floatingActionSlot:v}=R2(e,{referenceId:o,referenceLabel:l},a),b=Ne(a,r),{interactive:p,focusAttributes:y}=F2(e);return{appearance:t,orientation:n,size:i,interactive:p,selectable:c,selectFocused:f,selected:d,selectableA11yProps:{setReferenceId:s,referenceId:o,referenceLabel:l,setReferenceLabel:u},components:{root:"div",floatingAction:"div",checkbox:"input"},root:J(de("div",{ref:b,role:"group",...c?null:y,...e,...g}),{elementType:"div"}),floatingAction:v,checkbox:h}},j2=(e,r)=>(ne(e),F(e.root,{children:ye(z2,{value:r,children:[e.checkbox?F(e.checkbox,{}):null,e.floatingAction?F(e.floatingAction,{}):null,e.root.children]})})),Da={root:"fui-CardPreview",logo:"fui-CardPreview__logo"},A2=O({root:{qhf8xq:"f10pi13n",Byfpedg:"fgourly",Btj6oj6:"f1vui7lx",B1m4t4s:"fda5zwx"},logo:{qhf8xq:"f1euv43f",B5kzvoi:"f1gcvs1y",oyh7mz:["f1t6tvco","ffrfxm3"],a9b677:"f1szoe96",Bqenvij:"f1d2rq10"}},{d:[".f10pi13n{position:relative;}",".fgourly>:not(.fui-CardPreview__logo){display:block;}",".f1vui7lx>:not(.fui-CardPreview__logo){height:100%;}",".fda5zwx>:not(.fui-CardPreview__logo){width:100%;}",".f1euv43f{position:absolute;}",".f1gcvs1y{bottom:12px;}",".f1t6tvco{left:12px;}",".ffrfxm3{right:12px;}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}"]}),O2=e=>{"use no memo";const r=A2();return e.root.className=N(Da.root,r.root,e.root.className),e.logo&&(e.logo.className=N(Da.logo,r.logo,e.logo.className)),e},cf={root:"fui-CardHeader",image:"fui-CardHeader__image",header:"fui-CardHeader__header",description:"fui-CardHeader__description",action:"fui-CardHeader__action"},q2=O({root:{Bkc6ea2:"fkufhic",Bt984gj:"f122n59"},image:{mc9l5x:"ftuwxu6",t21cq0:["fql5097","f6yss9k"]},header:{mc9l5x:"f22iagw"},description:{mc9l5x:"f22iagw"},action:{Frg6f3:["f6yss9k","fql5097"],B7frvx2:"f1ndzpm5",B06c7xf:["f1fkeggc","f1u45u6i"],B8uq84v:"f16eyofs",snkdo8:["f1u45u6i","f1fkeggc"],Bpf22ct:"f1wkmkig",apjfyd:"f18alut9"}},{d:[".fkufhic{--fui-CardHeader--gap:12px;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".fql5097{margin-right:var(--fui-CardHeader--gap);}",".f6yss9k{margin-left:var(--fui-CardHeader--gap);}",".f22iagw{display:flex;}"],m:[["@media (forced-colors: active){.f1ndzpm5 .fui-Button,.f1ndzpm5 .fui-Link{border-top-color:currentColor;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1fkeggc .fui-Button,.f1fkeggc .fui-Link{border-right-color:currentColor;}.f1u45u6i .fui-Button,.f1u45u6i .fui-Link{border-left-color:currentColor;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16eyofs .fui-Button,.f16eyofs .fui-Link{border-bottom-color:currentColor;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wkmkig .fui-Button,.f1wkmkig .fui-Link{color:currentColor;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18alut9 .fui-Button,.f18alut9 .fui-Link{outline-color:currentColor;}}",{m:"(forced-colors: active)"}]]}),M2=O({root:{mc9l5x:"f13qh94s",t4k1zu:"f8a668j"},image:{Br312pm:"fwpfdsa",Ijaq50:"fldnz9j"},header:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94"},description:{Br312pm:"fd46tj4",Ijaq50:"faunodf"},action:{Br312pm:"fis13di",Ijaq50:"fldnz9j"}},{d:[".f13qh94s{display:grid;}",".f8a668j{grid-auto-columns:min-content 1fr min-content;}",".fwpfdsa{grid-column-start:1;}",".fldnz9j{grid-row-start:span 2;}",".fd46tj4{grid-column-start:2;}",".f16hsg94{grid-row-start:1;}",".faunodf{grid-row-start:2;}",".fis13di{grid-column-start:3;}"]}),L2=O({root:{mc9l5x:"f22iagw"},header:{Bh6795r:"fqerorx"},image:{},description:{},action:{}},{d:[".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}"]}),H2=e=>{"use no memo";const r=q2(),t=M2(),n=L2(),i=e.description?t:n,o=s=>{var l;return N(cf[s],r[s],i[s],(l=e[s])===null||l===void 0?void 0:l.className)};return e.root.className=o("root"),e.image&&(e.image.className=o("image")),e.header&&(e.header.className=o("header")),e.description&&(e.description.className=o("description")),e.action&&(e.action.className=o("action")),e},uf={root:"fui-CardFooter",action:"fui-CardFooter__action"},W2=O({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",i8kkvl:0,Belr9w4:0,rmohyg:"fsbu5mz"},action:{Frg6f3:["fcgxt0o","f1ujusj6"],B7frvx2:"f1ndzpm5",B06c7xf:["f1fkeggc","f1u45u6i"],B8uq84v:"f16eyofs",snkdo8:["f1u45u6i","f1fkeggc"],Bpf22ct:"f1wkmkig",apjfyd:"f18alut9"}},{d:[".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",[".fsbu5mz{gap:12px;}",{p:-1}],".fcgxt0o{margin-left:auto;}",".f1ujusj6{margin-right:auto;}"],m:[["@media (forced-colors: active){.f1ndzpm5 .fui-Button,.f1ndzpm5 .fui-Link{border-top-color:currentColor;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1fkeggc .fui-Button,.f1fkeggc .fui-Link{border-right-color:currentColor;}.f1u45u6i .fui-Button,.f1u45u6i .fui-Link{border-left-color:currentColor;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16eyofs .fui-Button,.f16eyofs .fui-Link{border-bottom-color:currentColor;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wkmkig .fui-Button,.f1wkmkig .fui-Link{color:currentColor;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18alut9 .fui-Button,.f18alut9 .fui-Link{outline-color:currentColor;}}",{m:"(forced-colors: active)"}]]}),V2=e=>{"use no memo";const r=W2();return e.root.className=N(uf.root,r.root,e.root.className),e.action&&(e.action.className=N(uf.action,r.action,e.action.className)),e},Fa={root:"fui-Card",floatingAction:"fui-Card__floatingAction",checkbox:"fui-Card__checkbox"},$2=ie("rfxo2k2","rgle7w9",[".rfxo2k2{overflow:hidden;border-radius:var(--fui-Card--border-radius);padding:var(--fui-Card--size);gap:var(--fui-Card--size);display:flex;position:relative;box-sizing:border-box;color:var(--colorNeutralForeground1);}",'.rfxo2k2::after{position:absolute;top:0;left:0;right:0;bottom:0;content:"";pointer-events:none;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-radius:var(--fui-Card--border-radius);}',".rfxo2k2>.fui-CardHeader,.rfxo2k2>.fui-CardFooter{flex-shrink:0;}",".rgle7w9{overflow:hidden;border-radius:var(--fui-Card--border-radius);padding:var(--fui-Card--size);gap:var(--fui-Card--size);display:flex;position:relative;box-sizing:border-box;color:var(--colorNeutralForeground1);}",'.rgle7w9::after{position:absolute;top:0;right:0;left:0;bottom:0;content:"";pointer-events:none;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-radius:var(--fui-Card--border-radius);}',".rgle7w9>.fui-CardHeader,.rgle7w9>.fui-CardFooter{flex-shrink:0;}"]),G2=O({focused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bb7d1vk:"f226i61",zhwhgb:["f13kzufm","fsx75g8"],dhy2o1:"flujwa2",Gfyso:["fsx75g8","f13kzufm"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",f6g5ot:0,Boxcth7:0,Bhdgwq3:0,hgwjuy:0,Bshpdp8:0,Bsom6fd:0,Blkhhs4:0,Bonggc9:0,Ddfuxk:0,i03rao:0,kclons:0,clg4pj:0,Bpqj9nj:0,B6dhp37:0,Bf4ptjt:0,Bqtpl0w:0,i4rwgc:"fpqizxz",Dah5zi:0,B1tsrr9:0,qqdqy8:0,Bkh64rk:0,e3fwne:"fnd8nzh",J0r882:"f15fr7a0",Bule8hv:["fwsq40z","fy0y4wt"],Bjwuhne:"f34ld9f",Ghsupd:["fy0y4wt","fwsq40z"]},selectableFocused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",Bssx7fj:"f1b1k54r",uh7if5:["f4ne723","fqqcjud"],clntm0:"fh7aioi",Dlk2r6:["fqqcjud","f4ne723"],Bm3wd5j:"f1k55ka9",Bbrhkcr:["fgclinu","f16pcs8n"],f1oku:"fycbxed",aywvf2:["f16pcs8n","fgclinu"],B2j2mmj:"ffht0p2",wigs8:"f1p0ul1q",pbfy6t:"f1c901ms",B0v4ure:"f1alokd7",Byrf0fs:0,Bsiemmq:0,Bwckmig:0,skfxo0:0,Iidy0u:0,B98u21t:0,Bvwlmkc:0,jo1ztg:0,Ba1iezr:0,Blmvk6g:0,B24cy0v:0,Bil7v7r:0,Br3gin4:0,nr063g:0,ghq09:0,Bbgo44z:0,Bseh09z:"f1i978nd",az1dzo:0,Ba3ybja:0,B6352mv:0,vppk2z:0,Biaj6j7:"f1nh8hsq",B2pnrqr:"f1amxum7",B29w5g4:["f1cec8w7","f554mv0"],Bhhzhcn:"f1sj6kbr",Bec0n69:["f554mv0","f1cec8w7"]},orientationHorizontal:{Beiy3e4:"f1063pyq",Bt984gj:"f122n59",Binpb3b:"ftrw7vg",qrt8p2:"f18opajm",k6ws3r:["f13002it","fqo182t"],Btcwela:["f18yna97","f1kd6wh7"],Fer9m8:"f4i4759"},orientationVertical:{Beiy3e4:"f1vx9l62",B5nvv7i:["f14k419y","f1fgo9fz"],Baxg94k:["f1fgo9fz","f14k419y"],tn21ii:"fvqmfsm",B0ud6bj:"f3am6yf",Bgdo4j:"f1r5wgso"},sizeSmall:{B7balbw:"f1pi9uxy",B1h88n7:"f1h1zgly"},sizeMedium:{B7balbw:"frsmuga",B1h88n7:"fuldkky"},sizeLarge:{B7balbw:"f1qua4xo",B1h88n7:"fimkt6v"},interactive:{rhjd8f:"f1epqm3e"},filled:{De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Bi91k9c:"feu1g3u",Jwef8y:"f1knas48",Bvxd0ez:"f1m145df",ecr2s2:"fb40n2d"},filledInteractiveSelected:{De3pzq:"f1nfm20t",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Bi91k9c:"fx9teim",Jwef8y:"f1kz6goq"},filledAlternative:{De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledAlternativeInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Bi91k9c:"fnwyq0v",Jwef8y:"f1uvynv3",Bvxd0ez:"f1m145df",ecr2s2:"f1yhgkbh"},filledAlternativeInteractiveSelected:{De3pzq:"fjxa0vh",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Bi91k9c:"f1luvkty",Jwef8y:"fehi0vp"},outline:{De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]},outlineInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"],Bi91k9c:"feu1g3u",Jwef8y:"fjxutwb",Be0v6ae:"f1llr77y",B5kxglz:["fzk0khw","fjj8tog"],B3pwyw6:"fb1u8ub",Bymgtzf:["fjj8tog","fzk0khw"],ecr2s2:"fophhak",dmfk:"f1uohb70",B4ofi8:["f1jm7v1n","f1bus3rq"],jgq6uv:"f1fbu7rr",Baxewws:["f1bus3rq","f1jm7v1n"]},outlineInteractiveSelected:{De3pzq:"f1q9pm1r",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Bi91k9c:"fx9teim",Jwef8y:"fg59vm4"},subtle:{De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},subtleInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Bi91k9c:"feu1g3u",Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd"},subtleInteractiveSelected:{De3pzq:"fq5gl1p",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Bi91k9c:"fx9teim",Jwef8y:"f1uqaxdt"},highContrastSelected:{ycbfsm:"fkc42ay",Bsw6fvg:"f1rirnrt",Bbusuzp:"f1lkg8j3",xgfqdd:"f1nkj0oa",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},highContrastInteractive:{h1vhog:"fpfvv3l",kslmdy:"f1oamsm6",Baaf6ca:"f1il21bs",x9zz3d:"fnn5dk0",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},select:{qhf8xq:"f1euv43f",Bhzewxz:"fqclxi7",j35jbq:["fiv86kb","f36uhnt"],Bj3rh1h:"f19g0ac"},hiddenCheckbox:{B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",a9b677:"frkrog8",Bqenvij:"f1mpe4l3",qhf8xq:"f1euv43f",Bh84pgu:"fmf1zke",Bgl5zvf:"f1wch0ki",Huce71:"fz5stix"}},{f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],d:[".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",'.f15bsgw9[data-fui-focus-visible]::after{content:"";}',".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",".fd6o370[data-fui-focus-visible]::after{z-index:1;}",[".fpqizxz[data-fui-focus-visible]::after{border:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}",{p:-2}],[".fnd8nzh[data-fui-focus-visible]::after{border-radius:var(--fui-Card--border-radius);}",{p:-1}],".f15fr7a0[data-fui-focus-visible]::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".fwsq40z[data-fui-focus-visible]::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".fy0y4wt[data-fui-focus-visible]::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f34ld9f[data-fui-focus-visible]::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1b1k54r[data-fui-focus-within]:focus-within{border-top-color:transparent;}",".f4ne723[data-fui-focus-within]:focus-within{border-right-color:transparent;}",".fqqcjud[data-fui-focus-within]:focus-within{border-left-color:transparent;}",".fh7aioi[data-fui-focus-within]:focus-within{border-bottom-color:transparent;}",'.ffht0p2[data-fui-focus-within]:focus-within::after{content:"";}',".f1p0ul1q[data-fui-focus-within]:focus-within::after{position:absolute;}",".f1c901ms[data-fui-focus-within]:focus-within::after{pointer-events:none;}",".f1alokd7[data-fui-focus-within]:focus-within::after{z-index:1;}",[".f1i978nd[data-fui-focus-within]:focus-within::after{border:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}",{p:-2}],[".f1nh8hsq[data-fui-focus-within]:focus-within::after{border-radius:var(--fui-Card--border-radius);}",{p:-1}],".f1amxum7[data-fui-focus-within]:focus-within::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".f1cec8w7[data-fui-focus-within]:focus-within::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".f554mv0[data-fui-focus-within]:focus-within::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f1sj6kbr[data-fui-focus-within]:focus-within::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1063pyq{flex-direction:row;}",".f122n59{align-items:center;}",".ftrw7vg>.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",".f18opajm>.fui-CardPreview{margin-bottom:calc(var(--fui-Card--size) * -1);}",'.f13002it>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-left:calc(var(--fui-Card--size) * -1);}','.fqo182t>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.f18yna97>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.f1kd6wh7>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-left:calc(var(--fui-Card--size) * -1);}',".f4i4759>.fui-CardHeader:last-of-type,.f4i4759>.fui-CardFooter:last-of-type{flex-grow:1;}",".f1vx9l62{flex-direction:column;}",".f14k419y>.fui-CardPreview{margin-left:calc(var(--fui-Card--size) * -1);}",".f1fgo9fz>.fui-CardPreview{margin-right:calc(var(--fui-Card--size) * -1);}",'.fvqmfsm>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-top:calc(var(--fui-Card--size) * -1);}',".f3am6yf>.fui-Card__floatingAction+.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",'.f1r5wgso>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-bottom:calc(var(--fui-Card--size) * -1);}',".f1pi9uxy{--fui-Card--size:8px;}",".f1h1zgly{--fui-Card--border-radius:var(--borderRadiusSmall);}",".frsmuga{--fui-Card--size:12px;}",".fuldkky{--fui-Card--border-radius:var(--borderRadiusMedium);}",".f1qua4xo{--fui-Card--size:16px;}",".fimkt6v{--fui-Card--border-radius:var(--borderRadiusLarge);}",".f1epqm3e .fui-Text{color:currentColor;}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1whvlc6{box-shadow:var(--shadow4);}",".f16gxe2i::after{border-top-color:var(--colorTransparentStroke);}",".fpgykix::after{border-right-color:var(--colorTransparentStroke);}",".fzybk4o::after{border-left-color:var(--colorTransparentStroke);}",".f1osi826::after{border-bottom-color:var(--colorTransparentStroke);}",".f1k6fduh{cursor:pointer;}",".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".f16eln5f::after{border-top-color:var(--colorNeutralStroke1Selected);}",".fa2okxs::after{border-right-color:var(--colorNeutralStroke1Selected);}",".fg4zq3l::after{border-left-color:var(--colorNeutralStroke1Selected);}",".ff6932p::after{border-bottom-color:var(--colorNeutralStroke1Selected);}",".f1dmdbja{background-color:var(--colorNeutralBackground2);}",".fjxa0vh{background-color:var(--colorNeutralBackground2Selected);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1couhl3{box-shadow:none;}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1euv43f{position:absolute;}",".fqclxi7{top:4px;}",".fiv86kb{right:4px;}",".f36uhnt{left:4px;}",".f19g0ac{z-index:1;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".frkrog8{width:1px;}",".f1mpe4l3{height:1px;}",".fmf1zke{clip:rect(0 0 0 0);}",".f1wch0ki{clip-path:inset(50%);}",".fz5stix{white-space:nowrap;}"],m:[["@media (forced-colors: active){.f226i61[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f13kzufm[data-fui-focus-visible]::after{border-right-color:Highlight;}.fsx75g8[data-fui-focus-visible]::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.flujwa2[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1k55ka9[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16pcs8n[data-fui-focus-within]:focus-within::after{border-left-color:Highlight;}.fgclinu[data-fui-focus-within]:focus-within::after{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fycbxed[data-fui-focus-within]:focus-within::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nkj0oa .fui-CardPreview,.f1nkj0oa .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fey3rwa::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f5jhx11::after{border-right-color:Highlight;}.fff9uym::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fm7n0jy::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fpfvv3l:hover,.fpfvv3l :active{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1oamsm6:hover,.f1oamsm6 :active{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1il21bs:hover,.f1il21bs :active{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnn5dk0:hover .fui-CardPreview,.fnn5dk0 :active .fui-CardPreview,.fnn5dk0:hover .fui-CardFooter,.fnn5dk0 :active .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]],h:[".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".f1m145df:hover{box-shadow:var(--shadow8);}",".fx9teim:hover{color:var(--colorNeutralForeground1Selected);}",".f1kz6goq:hover{background-color:var(--colorNeutralBackground1Selected);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".f1uvynv3:hover{background-color:var(--colorNeutralBackground2Hover);}",".f1luvkty:hover{color:var(--colorNeutralForeground2Selected);}",".fehi0vp:hover{background-color:var(--colorNeutralBackground2Selected);}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1llr77y:hover::after{border-top-color:var(--colorNeutralStroke1Hover);}",".fzk0khw:hover::after{border-right-color:var(--colorNeutralStroke1Hover);}",".fjj8tog:hover::after{border-left-color:var(--colorNeutralStroke1Hover);}",".fb1u8ub:hover::after{border-bottom-color:var(--colorNeutralStroke1Hover);}",".fg59vm4:hover{background-color:var(--colorTransparentBackgroundSelected);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1uqaxdt:hover{background-color:var(--colorSubtleBackgroundSelected);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1yhgkbh:active{background-color:var(--colorNeutralBackground2Pressed);}",".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f1uohb70:active::after{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1jm7v1n:active::after{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1bus3rq:active::after{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1fbu7rr:active::after{border-bottom-color:var(--colorNeutralStroke1Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}"]}),U2=e=>{"use no memo";const r=$2(),t=G2(),n={horizontal:t.orientationHorizontal,vertical:t.orientationVertical},i={small:t.sizeSmall,medium:t.sizeMedium,large:t.sizeLarge},o={filled:t.filled,"filled-alternative":t.filledAlternative,outline:t.outline,subtle:t.subtle},s={filled:t.filledInteractiveSelected,"filled-alternative":t.filledAlternativeInteractiveSelected,outline:t.outlineInteractiveSelected,subtle:t.subtleInteractiveSelected},l={filled:t.filledInteractive,"filled-alternative":t.filledAlternativeInteractive,outline:t.outlineInteractive,subtle:t.subtleInteractive},u=e.interactive||e.selectable,a=m.useMemo(()=>e.selectable?e.selectFocused?t.selectableFocused:"":t.focused,[e.selectFocused,e.selectable,t.focused,t.selectableFocused]);return e.root.className=N(Fa.root,r,n[e.orientation],i[e.size],o[e.appearance],u&&t.interactive,u&&l[e.appearance],e.selected&&s[e.appearance],a,u&&t.highContrastInteractive,e.selected&&t.highContrastSelected,e.root.className),e.floatingAction&&(e.floatingAction.className=N(Fa.floatingAction,t.select,e.floatingAction.className)),e.checkbox&&(e.checkbox.className=N(Fa.checkbox,t.hiddenCheckbox,e.checkbox.className)),e};function K2({selectableA11yProps:e}){return{selectableA11yProps:e}}const df=m.forwardRef((e,r)=>{const t=I2(e,r),n=K2(t);return U2(t),ae("useCardStyles_unstable")(t),j2(t,n)});df.displayName="Card";const X2=(e,r)=>{const{action:t}=e;return{components:{root:"div",action:"div"},root:J(de("div",{ref:r,...e}),{elementType:"div"}),action:te(t,{elementType:"div"})}},Z2=e=>(ne(e),ye(e.root,{children:[e.root.children,e.action&&F(e.action,{})]})),ff=m.forwardRef((e,r)=>{const t=X2(e,r);return V2(t),ae("useCardFooterStyles_unstable")(t),Z2(t)});ff.displayName="CardFooter";function Q2(e){function r(t){return m.isValidElement(t)&&!!t.props.id}return m.Children.toArray(e).find(r)}function Y2(e,r,t){return e||(r!=null&&r.props.id?r.props.id:t)}const J2=(e,r)=>{const{image:t,header:n,description:i,action:o}=e,{selectableA11yProps:{referenceId:s,setReferenceId:l}}=lf(),u=m.useRef(null),a=m.useRef(!1),c=Ge(cf.header,s),d=te(n,{renderByDefault:!0,defaultProps:{ref:u,id:a.current?void 0:s},elementType:"div"});return m.useEffect(()=>{var g;const f=a.current||(g=u.current)===null||g===void 0?void 0:g.id,h=Q2(d==null?void 0:d.children);a.current=!!h,l(Y2(f,h,c))},[c,n,d,l]),{components:{root:"div",image:"div",header:"div",description:"div",action:"div"},root:J(de("div",{ref:r,...e}),{elementType:"div"}),image:te(t,{elementType:"div"}),header:d,description:te(i,{elementType:"div"}),action:te(o,{elementType:"div"})}},eB=e=>(ne(e),ye(e.root,{children:[e.image&&F(e.image,{}),e.header&&F(e.header,{}),e.description&&F(e.description,{}),e.action&&F(e.action,{})]})),hf=m.forwardRef((e,r)=>{const t=J2(e,r);return H2(t),ae("useCardHeaderStyles_unstable")(t),eB(t)});hf.displayName="CardHeader";const tB=(e,r)=>{const{logo:t}=e,{selectableA11yProps:{referenceLabel:n,referenceId:i,setReferenceLabel:o,setReferenceId:s}}=lf(),l=Ne(r,m.useRef(null));return m.useEffect(()=>{if(!(n&&i)&&l.current&&l.current.parentNode){const u=l.current.parentNode.querySelector(`.${Da.root} > img`);if(u){const a=u.getAttribute("aria-label"),c=u.getAttribute("aria-describedby");c?s(c):u.alt?o(u.alt):a&&o(a)}}},[o,n,l,i,s]),{components:{root:"div",logo:"div"},root:J(de("div",{ref:l,...e}),{elementType:"div"}),logo:te(t,{elementType:"div"})}},rB=e=>(ne(e),ye(e.root,{children:[e.root.children,e.logo&&F(e.logo,{})]})),gf=m.forwardRef((e,r)=>{const t=tB(e,r);return O2(t),ae("useCardPreviewStyles_unstable")(t),rB(t)});gf.displayName="CardPreview";function oB(e){switch(e){case"info":return m.createElement(_0,null);case"warning":return m.createElement(C0,null);case"error":return m.createElement(k0,null);case"success":return m.createElement(b0,null);default:return null}}function nB(e=!1){const{targetDocument:r}=_e(),t=m.useReducer(()=>({}),{})[1],n=m.useRef(!1),i=m.useRef(null),o=m.useRef(-1),s=m.useCallback(u=>{var a,c;process.env.NODE_ENV!=="production"&&u.length>1&&console.error(["useMessageBarReflow: Resize observer should only have one entry. ","If multiple entries are observed, the first entry will be used.","This is a bug, please report it to the Fluent UI team."].join(" "));const d=u[0];var g;const f=(g=d==null||(c=d.borderBoxSize)===null||c===void 0||(a=c[0])===null||a===void 0?void 0:a.inlineSize)!==null&&g!==void 0?g:d==null?void 0:d.target.getBoundingClientRect().width;if(f===void 0||!d)return;const{target:h}=d;if(!Ue(h))return;let v;if(n.current)o.current<f&&(v=!1);else{const b=h.scrollWidth;f<b&&(v=!0)}o.current=f,typeof v<"u"&&n.current!==v&&(n.current=v,t())},[t]),l=m.useCallback(u=>{var a;if(!e||!u||!(r!=null&&r.defaultView))return;(a=i.current)===null||a===void 0||a.disconnect();const c=r.defaultView,d=new c.ResizeObserver(s);i.current=d,d.observe(u,{box:"border-box"})},[r,s,e]);return m.useEffect(()=>()=>{var u;(u=i.current)===null||u===void 0||u.disconnect()},[]),{ref:l,reflowing:n.current}}const vf=m.createContext(void 0),iB={className:"",nodeRef:m.createRef()};vf.Provider;const aB=()=>{var e;return(e=m.useContext(vf))!==null&&e!==void 0?e:iB},sB=(e,r)=>{const{layout:t="auto",intent:n="info",politeness:i,shape:o="rounded"}=e,s=i??n==="info"?"polite":"assertive",l=t==="auto",{ref:u,reflowing:a}=nB(l),c=l?a?"multiline":"singleline":t,{className:d,nodeRef:g}=aB(),f=m.useRef(null),h=m.useRef(null),{announce:v}=Lm(),b=Ge();return m.useEffect(()=>{var p,y;const k=(p=h.current)===null||p===void 0?void 0:p.textContent,w=(y=f.current)===null||y===void 0?void 0:y.textContent,x=[k,w].filter(Boolean).join(",");v(x,{polite:s==="polite",alert:s==="assertive"})},[h,f,v,s]),{components:{root:"div",icon:"div",bottomReflowSpacer:"div"},root:J(de("div",{ref:Ne(r,u,g),role:"group","aria-labelledby":b,...e}),{elementType:"div"}),icon:te(e.icon,{renderByDefault:!0,elementType:"div",defaultProps:{children:oB(n)}}),bottomReflowSpacer:te(e.bottomReflowSpacer,{renderByDefault:c==="multiline",elementType:"div"}),layout:c,intent:n,transitionClassName:d,actionsRef:f,bodyRef:h,titleId:b,shape:o}},mf=m.createContext(void 0),lB={titleId:"",layout:"singleline",actionsRef:m.createRef(),bodyRef:m.createRef()},cB=mf.Provider,pf=()=>{var e;return(e=m.useContext(mf))!==null&&e!==void 0?e:lB},uB=(e,r)=>(ne(e),F(cB,{value:r.messageBar,children:ye(e.root,{children:[e.icon&&F(e.icon,{}),e.root.children,e.bottomReflowSpacer&&F(e.bottomReflowSpacer,{})]})})),Ia={root:"fui-MessageBar",icon:"fui-MessageBar__icon",bottomReflowSpacer:"fui-MessageBar__bottomReflowSpacer"},dB=ie("r2oyxsj","r1wuyrhw",['.r2oyxsj{white-space:nowrap;display:grid;grid-template-columns:auto 1fr auto auto;grid-template-rows:1fr;grid-template-areas:"icon body secondaryActions actions";padding-left:var(--spacingHorizontalM);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);border-radius:var(--borderRadiusMedium);align-items:center;min-height:36px;box-sizing:border-box;background-color:var(--colorNeutralBackground3);}','.r1wuyrhw{white-space:nowrap;display:grid;grid-template-columns:auto 1fr auto auto;grid-template-rows:1fr;grid-template-areas:"icon body secondaryActions actions";padding-right:var(--spacingHorizontalM);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);border-radius:var(--borderRadiusMedium);align-items:center;min-height:36px;box-sizing:border-box;background-color:var(--colorNeutralBackground3);}']),fB=ie("r1df1z33","rivnfjc",[".r1df1z33{grid-area:icon;font-size:var(--fontSizeBase500);margin-right:var(--spacingHorizontalS);color:var(--colorNeutralForeground3);display:flex;align-items:center;}",".rivnfjc{grid-area:icon;font-size:var(--fontSizeBase500);margin-left:var(--spacingHorizontalS);color:var(--colorNeutralForeground3);display:flex;align-items:center;}"]),hB=ie("r1vx593n",null,[".r1vx593n{margin-bottom:var(--spacingVerticalS);grid-area:secondaryActions;}"]),gB=O({rootMultiline:{Huce71:"f6juhto",Bt984gj:"f1s2louj",z8tnut:"f1ngh7ph",Budl1dq:"f17g0uqy",zoa1oz:"f1w7oly7"},secondaryActionsMultiline:{Brf1p80:"f1e8xxv9",B6of3ja:"f1gaxbfw",jrapky:"fqcjy3b",t21cq0:["fibjyge","f9yszdx"]},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fokr779"}},{d:[".f6juhto{white-space:normal;}",".f1s2louj{align-items:start;}",".f1ngh7ph{padding-top:var(--spacingVerticalMNudge);}",".f17g0uqy{grid-template-columns:auto 1fr auto;}",'.f1w7oly7{grid-template-areas:"icon body actions" "secondaryActions secondaryActions secondaryActions";}',".f1e8xxv9{justify-content:end;}",".f1gaxbfw{margin-top:var(--spacingVerticalMNudge);}",".fqcjy3b{margin-bottom:var(--spacingVerticalS);}",".fibjyge{margin-right:0px;}",".f9yszdx{margin-left:0px;}",[".fokr779{border-radius:0;}",{p:-1}]]}),vB=O({info:{},error:{sj55zd:"f1ca9wz"},warning:{sj55zd:"f14a4cve"},success:{sj55zd:"f36rra6"}},{d:[".f1ca9wz{color:var(--colorStatusDangerForeground1);}",".f14a4cve{color:var(--colorStatusWarningForeground3);}",".f36rra6{color:var(--colorStatusSuccessForeground1);}"]}),mB=O({info:{},error:{De3pzq:"f1eon7jj",g2u3we:"f1f8dvr7",h3c5rm:["f1g1ijmo","f1nxacbt"],B9xav0g:"fo25q1j",zhjwy3:["f1nxacbt","f1g1ijmo"]},warning:{De3pzq:"f13ftzij",g2u3we:"frd1ypx",h3c5rm:["f1gyjrma","f18qd5xz"],B9xav0g:"fqyqtrt",zhjwy3:["f18qd5xz","f1gyjrma"]},success:{De3pzq:"f64thcm",g2u3we:"f1b4u7v",h3c5rm:["f1nyd2b1","f70v3om"],B9xav0g:"fk173vo",zhjwy3:["f70v3om","f1nyd2b1"]}},{d:[".f1eon7jj{background-color:var(--colorStatusDangerBackground1);}",".f1f8dvr7{border-top-color:var(--colorStatusDangerBorder1);}",".f1g1ijmo{border-right-color:var(--colorStatusDangerBorder1);}",".f1nxacbt{border-left-color:var(--colorStatusDangerBorder1);}",".fo25q1j{border-bottom-color:var(--colorStatusDangerBorder1);}",".f13ftzij{background-color:var(--colorStatusWarningBackground1);}",".frd1ypx{border-top-color:var(--colorStatusWarningBorder1);}",".f1gyjrma{border-right-color:var(--colorStatusWarningBorder1);}",".f18qd5xz{border-left-color:var(--colorStatusWarningBorder1);}",".fqyqtrt{border-bottom-color:var(--colorStatusWarningBorder1);}",".f64thcm{background-color:var(--colorStatusSuccessBackground1);}",".f1b4u7v{border-top-color:var(--colorStatusSuccessBorder1);}",".f1nyd2b1{border-right-color:var(--colorStatusSuccessBorder1);}",".f70v3om{border-left-color:var(--colorStatusSuccessBorder1);}",".fk173vo{border-bottom-color:var(--colorStatusSuccessBorder1);}"]}),pB=e=>{"use no memo";const r=dB(),t=fB(),n=vB(),i=mB(),o=hB(),s=gB();return e.root.className=N(Ia.root,r,e.layout==="multiline"&&s.rootMultiline,e.shape==="square"&&s.square,i[e.intent],e.transitionClassName,e.root.className),e.icon&&(e.icon.className=N(Ia.icon,t,n[e.intent],e.icon.className)),e.bottomReflowSpacer&&(e.bottomReflowSpacer.className=N(Ia.bottomReflowSpacer,o)),e};function bB(e){const{layout:r,actionsRef:t,bodyRef:n,titleId:i}=e;return{messageBar:m.useMemo(()=>({layout:r,actionsRef:t,bodyRef:n,titleId:i}),[r,t,n,i])}}const bf=m.forwardRef((e,r)=>{const t=sB(e,r);return pB(t),ae("useMessageBarStyles_unstable")(t),uB(t,bB(t))});bf.displayName="MessageBar";const yB=(e,r)=>{const{titleId:t}=pf();return{components:{root:"span"},root:J(de("span",{ref:r,id:t,...e}),{elementType:"span"})}},wB=e=>(ne(e),F(e.root,{})),kB={root:"fui-MessageBarTitle"},xB=ie("r168xkm9",null,[".r168xkm9{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);}",'.r168xkm9::after{content:" ";}']),_B=e=>{"use no memo";const r=xB();return e.root.className=N(kB.root,r,e.root.className),e},yf=m.forwardRef((e,r)=>{const t=yB(e,r);return _B(t),ae("useMessageBarTitleStyles_unstable")(t),wB(t)});yf.displayName="MessageBarTitle";const SB=(e,r)=>{const{bodyRef:t}=pf();return{components:{root:"div"},root:J(de("div",{ref:Ne(r,t),...e}),{elementType:"div"})}},BB=(e,r)=>(ne(e),F(hx,{value:r.link,children:F(e.root,{})})),CB={root:"fui-MessageBarBody"},PB=ie("rtatq2b","re2rary",[".rtatq2b{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);grid-area:body;padding-right:var(--spacingHorizontalM);}",".re2rary{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);grid-area:body;padding-left:var(--spacingHorizontalM);}"]),TB=e=>{"use no memo";const r=PB();return e.root.className=N(CB.root,r,e.root.className),e};function EB(e){return{link:m.useMemo(()=>({inline:!0}),[])}}const wf=m.forwardRef((e,r)=>{const t=SB(e,r),n=EB();return TB(t),ae("useMessageBarBodyStyles_unstable")(t),BB(t,n)});wf.displayName="MessageBarBody";const NB={scrollState:"none",setScrollState:()=>({})},kf=m.createContext(void 0),ja=kf.Provider,Aa=()=>{var e;return(e=m.useContext(kf))!==null&&e!==void 0?e:NB},Oa=()=>{const[e,r]=m.useState("none");return{setScrollState:r,scrollState:e}},xf={drawerSizeVar:"--fui-Drawer--size"},RB=O({start:{h3c5rm:0,vrafjx:0,Bekrc4i:0,u1mtju:["f1xteiwb","fsqykmd"],oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["fvfyk4","frppm18"]},end:{zhjwy3:0,wvpqe5:0,ibv6hh:0,B4g9neb:["fsqykmd","f1xteiwb"],j35jbq:["f1e31b4d","f1vgc2s3"],oyh7mz:["frppm18","fvfyk4"]},bottom:{B5kzvoi:"f1yab3r1",Bhzewxz:"f198g47y"},small:{Bjr0ffy:"f1exhnwo"},medium:{Bjr0ffy:"fqofjzu"},large:{Bjr0ffy:"fce6y3m"},full:{Bjr0ffy:"fsdmzs6"}},{d:[[".f1xteiwb{border-right:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-1}],[".fsqykmd{border-left:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-1}],".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".fvfyk4{right:auto;}",".frppm18{left:auto;}",[".fsqykmd{border-left:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-1}],[".f1xteiwb{border-right:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-1}],".f1yab3r1{bottom:0;}",".f198g47y{top:auto;}",".f1exhnwo{--fui-Drawer--size:320px;}",".fqofjzu{--fui-Drawer--size:592px;}",".fce6y3m{--fui-Drawer--size:940px;}",".fsdmzs6{--fui-Drawer--size:100vw;}"]}),zB=O({small:{Bjr0ffy:"f1exhnwo"},medium:{Bjr0ffy:"fqofjzu"},large:{Bjr0ffy:"fce6y3m"},full:{Bjr0ffy:"f1rat34m"}},{d:[".f1exhnwo{--fui-Drawer--size:320px;}",".fqofjzu{--fui-Drawer--size:592px;}",".fce6y3m{--fui-Drawer--size:940px;}",".f1rat34m{--fui-Drawer--size:100%;}"]}),_f=({position:e,size:r})=>{const t=RB(),n=zB();return N(t[e],e==="bottom"&&n[r],e!=="bottom"&&t[r])},qa={small:Ie.durationGentle,medium:Ie.durationSlow,large:Ie.durationSlower,full:Ie.durationUltraSlow};function Sf(e,r,t){const n=`translate3d(var(${r}), 0, 0)`,i=`translate3d(calc(var(${r}) * -1), 0, 0)`,o=`translate3d(0, var(${r}), 0)`;return e==="start"?t==="ltr"?i:n:e==="end"?t==="ltr"?n:i:e==="bottom"?o:"translate3d(0, 0, 0)"}const Bf=Dr(({position:e,size:r,dir:t})=>{const n=[{transform:Sf(e,xf.drawerSizeVar,t),opacity:0},{transform:"translate3d(0, 0, 0)",opacity:1}],i=qa[r];return{enter:{keyframes:n,duration:i,easing:Ie.curveDecelerateMid},exit:{keyframes:[...n].reverse(),duration:i,easing:Ie.curveAccelerateMin}}}),DB=Dr(({position:e,size:r,dir:t})=>{const n=[{transform:Sf(e,xf.drawerSizeVar,t),boxShadow:`0px ${Pe.colorTransparentBackground}`,opacity:0},{transform:"translate3d(0, 0, 0)",boxShadow:Pe.shadow64,opacity:1}],i=qa[r];return{enter:{keyframes:n,duration:i,easing:Ie.curveDecelerateMid},exit:{keyframes:[...n].reverse(),duration:i,easing:Ie.curveAccelerateMin}}}),FB=Dr(({size:e})=>{const r=[{opacity:0},{opacity:1}],t=qa[e];return{enter:{keyframes:r,easing:Ie.curveLinear,duration:t},exit:{keyframes:[...r].reverse(),easing:Ie.curveLinear,duration:t}}});function Cf(e){const{open:r=!1,size:t="small",position:n="start"}=e;return{size:t,position:n,open:r}}const IB=ie("rl76ifk",null,[".rl76ifk{inset:0px;position:fixed;background-color:var(--colorBackgroundOverlay);}"]),jB=O({nested:{De3pzq:"f1c21dwh"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}"]}),AB=e=>{"use no memo";const r=IB(),t=jB();return e.backdrop&&(e.backdrop.className=N(r,e.isNestedDialog&&t.nested,e.backdrop.className)),e},Ma=m.forwardRef((e,r)=>{const t=v_({...e,as:e.as},r),n=p_();return AB(t),m_(t,n)});Ma.displayName="OverlayDrawerSurface";function Pf(e,r,t){return e===null?null:{...e,children:(n,i)=>e!=null&&e.children?e.children(r,{...i,...t}):m.createElement(r,{...i,...t},i.children)}}const OB={active:!0,canRender:!0,ref:m.createRef(),type:"idle"},qB=(e,r)=>{const{open:t,size:n,position:i}=Cf(e),{backdropMotion:o,modalType:s="modal",inertTrapFocus:l,onOpenChange:u,surfaceMotion:a,mountNode:c}=e,{dir:d,targetDocument:g}=_e(),{element:f}=cd(c),h=!!(f&&(g==null?void 0:g.body)!==f),v=ki(e.backdrop),p=J({...e,ref:r,backdrop:s!=="non-modal"&&v!==null?{...v}:null,backdropMotion:Pf(o,FB,{size:n})},{elementType:Ma}),y=J({open:t,onOpenChange:u,inertTrapFocus:l,modalType:s,surfaceMotion:Pf(a,DB,{position:i,size:n,dir:d}),children:null},{elementType:Sa});return{components:{root:Ma,dialog:Sa},root:p,dialog:y,open:t,size:n,position:i,hasMountNodeElement:h,mountNode:c,motion:OB}},MB=(e,r)=>(ne(e),F(ja,{value:r,children:F(e.dialog,{children:F(e.root,{})})})),Tf={root:"fui-OverlayDrawer",backdrop:"fui-OverlayDrawer__backdrop"},LB=ie("r7dfyj8","rmx02j7",{r:[".r7dfyj8{overflow:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:fixed;top:0;bottom:0;}",".r7dfyj8:focus{outline-style:none;}",".r7dfyj8:focus-visible{outline-style:none;}",".r7dfyj8[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r7dfyj8[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rmx02j7{overflow:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:fixed;top:0;bottom:0;}",".rmx02j7:focus{outline-style:none;}",".rmx02j7:focus-visible{outline-style:none;}",".rmx02j7[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rmx02j7[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r7dfyj8[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rmx02j7[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),HB=O({start:{},end:{},bottom:{Bhzewxz:"f198g47y",Bqenvij:"fub80nq",a9b677:"fr97h3j"},absolute:{qhf8xq:"f1euv43f"}},{d:[".f198g47y{top:auto;}",".fub80nq{height:var(--fui-Drawer--size);}",".fr97h3j{width:100vw;}",".f1euv43f{position:absolute;}"]}),WB=e=>{"use no memo";const r=_f(e),t=LB(),n=HB(),i=e.hasMountNodeElement&&n.absolute,o=e.root.backdrop;return e.root.className=N(Tf.root,r,t,n[e.position],i,e.root.className),o&&(o.className=N(Tf.backdrop,i,o.className)),e},Ef=m.forwardRef((e,r)=>{const t=qB(e,r),n=Oa();return WB(t),ae("useDrawerOverlayStyles_unstable")(t),ae("useOverlayDrawerStyles_unstable")(t),MB(t,n)});Ef.displayName="OverlayDrawer";const VB={active:!0,canRender:!0,ref:m.createRef(),type:"idle"},$B=(e,r)=>{const{size:t,position:n,open:i}=Cf(e),{separator:o=!1,surfaceMotion:s}=e,{dir:l}=_e();return{components:{root:"div",surfaceMotion:Bf},root:J(de("div",{...e,ref:r}),{elementType:"div"}),open:i,position:n,size:t,separator:o,surfaceMotion:Ji(s,{elementType:Bf,defaultProps:{position:n,size:t,dir:l,visible:i,unmountOnExit:!0}}),motion:VB}},GB=(e,r)=>(ne(e),F(ja,{value:r,children:F(e.surfaceMotion,{children:F(e.root,{})})})),UB={root:"fui-InlineDrawer"},KB=ie("rkjj3x6",null,[".rkjj3x6{overflow:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:relative;}"]),XB=O({separatorStart:{h3c5rm:0,vrafjx:0,Bekrc4i:0,u1mtju:["f1cxmi7i","f1j970fk"]},separatorEnd:{zhjwy3:0,wvpqe5:0,ibv6hh:0,B4g9neb:["f1j970fk","f1cxmi7i"]},separatorBottom:{g2u3we:0,icvyot:0,B4j52fo:0,i8vvqc:"f1n3kblk"},start:{},end:{},bottom:{a9b677:"fly5x3f",Bqenvij:"fub80nq"}},{d:[[".f1cxmi7i{border-right:1px solid var(--colorNeutralBackground3);}",{p:-1}],[".f1j970fk{border-left:1px solid var(--colorNeutralBackground3);}",{p:-1}],[".f1j970fk{border-left:1px solid var(--colorNeutralBackground3);}",{p:-1}],[".f1cxmi7i{border-right:1px solid var(--colorNeutralBackground3);}",{p:-1}],[".f1n3kblk{border-top:1px solid var(--colorNeutralBackground3);}",{p:-1}],".fly5x3f{width:100%;}",".fub80nq{height:var(--fui-Drawer--size);}"]});function ZB(e,r){if(e.separator)switch(e.position){case"start":return r.separatorStart;case"end":return r.separatorEnd;case"bottom":return r.separatorBottom;default:return}}const QB=e=>{"use no memo";const r=KB(),t=_f(e),n=XB();return e.root.className=N(UB.root,r,t,ZB(e,n),n[e.position],e.root.className),e},Nf=m.forwardRef((e,r)=>{const t=$B(e,r),n=Oa();return QB(t),ae("useDrawerInlineStyles_unstable")(t),ae("useInlineDrawerStyles_unstable")(t),GB(t,n)});Nf.displayName="InlineDrawer";const YB=(e,r)=>{const t=e.type==="inline"?Nf:Ef,n=J({ref:r,...e},{elementType:t});return{components:{root:t},root:n}},JB=(e,r)=>(ne(e),F(ja,{value:r,children:F(e.root,{})})),eC={root:"fui-Drawer"},tC=e=>{"use no memo";return e.root.className=N(eC.root,e.root.className),e},Rf=m.forwardRef((e,r)=>{const t=YB(e,r),n=Oa();return tC(t),ae("useDrawerStyles_unstable")(t),JB(t,n)});Rf.displayName="Drawer";const rC=({scrollTop:e,scrollHeight:r,clientHeight:t})=>r<=t?"none":e===0?"top":e+t===r?"bottom":"middle",oC=(e,r)=>{const{setScrollState:t}=Aa(),n=m.useRef(null),[i,o]=Dl(),s=m.useCallback(()=>{n.current&&t(rC(n.current))},[t]),l=m.useCallback(()=>{o(),i(()=>s())},[o,i,s]);return Fe(()=>(o(),i(()=>s()),()=>o()),[e.children,o,s,i]),Fe(()=>(o(),i(()=>s()),()=>o()),[o,s,i]),{components:{root:"div"},root:J(de("div",{ref:Ne(r,n),...e,onScroll:Re(e.onScroll,l)}),{elementType:"div"})}},nC=e=>(ne(e),F(e.root,{})),iC={root:"fui-DrawerBody"},aC=ie("ri6rvx7",null,[".ri6rvx7{padding:0 var(--spacingHorizontalXXL);flex:1;align-self:stretch;position:relative;z-index:1;overflow:auto;}",".ri6rvx7:last-child{padding-bottom:calc(var(--spacingHorizontalXXL) + 1px);}",".ri6rvx7:first-child{padding-top:calc(var(--spacingHorizontalXXL) + 1px);}"]),sC=e=>{"use no memo";const r=aC();return e.root.className=N(iC.root,r,e.root.className),e},zf=m.forwardRef((e,r)=>{const t=oC(e,r);return sC(t),ae("useDrawerBodyStyles_unstable")(t),nC(t)});zf.displayName="DrawerBody";const lC=(e,r)=>{const{scrollState:t}=Aa();return{components:{root:"header"},root:J(de("header",{ref:r,role:"none",...e}),{elementType:"header"}),scrollState:t}},cC=e=>(ne(e),F(e.root,{})),uC={root:"fui-DrawerHeader"},dC=ie("r3ovn4i",null,[".r3ovn4i{width:100%;max-width:100%;padding:var(--spacingVerticalXXL) var(--spacingHorizontalXXL) var(--spacingVerticalS);gap:var(--spacingHorizontalS);align-self:stretch;display:flex;flex-direction:column;box-sizing:border-box;position:relative;z-index:2;}"]),fC=O({separator:{Dlnsje:"fxnjyrl",E3zdtr:"f1mdlcz9",B1piin3:["f15yvnhg","f1n6gb5g"],Eqx8gd:["f1n6gb5g","f15yvnhg"],Bp15pi3:"f1564nw5",Bjyk6c5:"fdlpgxj",F2fol1:"f15cmg8x",Ba2ppi3:"f3f8dgl",B1dyfl9:"fjvo4va",Bsft5z2:"f13zj6fq",By385i5:"fo72kxq"},separatorVisible:{Bp15pi3:"fjsqi2x"}},{d:[".fxnjyrl::after{height:1px;}",".f1mdlcz9::after{position:absolute;}",".f15yvnhg::after{right:0;}",".f1n6gb5g::after{left:0;}",".f1564nw5::after{opacity:0;}",".fdlpgxj::after{background-color:var(--colorNeutralStroke1);}",".f15cmg8x::after{transition-duration:var(--durationNormal);}",".f3f8dgl::after{transition-property:opacity;}",".fjvo4va::after{transition-timing-function:var(--curveEasyEase);}",'.f13zj6fq::after{content:"";}',".fo72kxq::after{bottom:0;}",".fjsqi2x::after{opacity:1;}"]}),hC=e=>{"use no memo";const r=dC(),t=fC();return e.root.className=N(uC.root,r,e.scrollState!=="none"&&t.separator,["middle","bottom"].includes(e.scrollState)&&t.separatorVisible,e.root.className),e},Df=m.forwardRef((e,r)=>{const t=lC(e,r);return hC(t),ae("useDrawerHeaderStyles_unstable")(t),cC(t)});Df.displayName="DrawerHeader";const gC=(e,r)=>{const{children:t,heading:n}=e,i=qt(o=>o.dialogTitleId);return{components:{root:"div",heading:"h2",action:"div"},root:J(de("div",{ref:r,...e}),{elementType:"div"}),heading:te(n,{defaultProps:{id:i,children:t},renderByDefault:!0,elementType:"h2"}),action:te(e.action,{elementType:"div"})}},vC=e=>(ne(e),ye(e.root,{children:[e.heading&&F(e.heading,{}),e.action&&F(e.action,{})]})),La={root:"fui-DrawerHeaderTitle",heading:"fui-DrawerHeaderTitle__heading",action:"fui-DrawerHeaderTitle__action"},mC=O({root:{mc9l5x:"f22iagw",Brf1p80:"f1869bpl",Bt984gj:"f122n59",i8kkvl:"fsnqrgy"},action:{t21cq0:["faqnl2i","fd75udd"]}},{d:[".f22iagw{display:flex;}",".f1869bpl{justify-content:space-between;}",".f122n59{align-items:center;}",".fsnqrgy{column-gap:var(--spacingHorizontalS);}",".faqnl2i{margin-right:calc(var(--spacingHorizontalS) * -1);}",".fd75udd{margin-left:calc(var(--spacingHorizontalS) * -1);}"]}),pC=e=>{"use no memo";const r=mC(),{heading:t={},action:n,components:i}=e;return g_({components:{root:i.heading,action:i.action},root:t,action:n}),e.root.className=N(La.root,r.root,e.root.className),e.heading&&(e.heading.className=N(La.heading,e.heading.className)),e.action&&(e.action.className=N(La.action,r.action,e.action.className)),e},Ff=m.forwardRef((e,r)=>{const t=gC(e,r);return pC(t),ae("useDrawerHeaderTitleStyles_unstable")(t),vC(t)});Ff.displayName="DrawerHeaderTitle";const bC=(e,r)=>{const{scrollState:t}=Aa();return{components:{root:"footer"},root:J(de("footer",{ref:r,role:"none",...e}),{elementType:"footer"}),scrollState:t}},yC=e=>(ne(e),F(e.root,{})),wC={root:"fui-DrawerFooter"},kC=ie("r1snvl2j",null,[".r1snvl2j{width:100%;max-width:100%;padding:var(--spacingVerticalL) var(--spacingHorizontalXXL) var(--spacingVerticalXXL);display:flex;justify-content:flex-start;align-items:center;column-gap:var(--spacingHorizontalS);box-sizing:border-box;position:relative;z-index:2;}"]),xC=O({separator:{Baz25je:"f16b62f1",Brfgrao:"f1j7ml58",mdwyqc:["f1f351id","f1fzr1x6"],Fbdkly:["f1fzr1x6","f1f351id"],vz82u:"f1dhznln",cmx5o7:"f1p5zmk",h7gv66:"f1ljjo4k",B8bqphf:"ffd2d9j",wjn42g:"ffdt3s5",Ftih45:"f1wl9k8s",Bciustq:"ffi060y"},separatorVisible:{vz82u:"f1b3qyzu"}},{d:[".f16b62f1::before{height:1px;}",".f1j7ml58::before{position:absolute;}",".f1f351id::before{right:0;}",".f1fzr1x6::before{left:0;}",".f1dhznln::before{opacity:0;}",".f1p5zmk::before{background-color:var(--colorNeutralStroke1);}",".f1ljjo4k::before{transition-duration:var(--durationNormal);}",".ffd2d9j::before{transition-property:opacity;}",".ffdt3s5::before{transition-timing-function:var(--curveEasyEase);}",'.f1wl9k8s::before{content:"";}',".ffi060y::before{top:0;}",".f1b3qyzu::before{opacity:1;}"]}),_C=e=>{"use no memo";const r=kC(),t=xC();return e.root.className=N(wC.root,r,e.scrollState!=="none"&&t.separator,["middle","top"].includes(e.scrollState)&&t.separatorVisible,e.root.className),e},If=m.forwardRef((e,r)=>{const t=bC(e,r);return _C(t),ae("useDrawerFooterStyles_unstable")(t),yC(t)});If.displayName="DrawerFooter";const Ha=["title","path","description","listItemId","identityListItemId","identityListId","identitySiteCollectionId","identityWebId","lastModifiedTime","viewsLifeTime","viewsRecent","owstaxidmetadataalltagsinfo","driveId","author","authorOwsUser"],jf="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/xlsx.png",Af="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/docx.png",Of="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/pptx.png",qf="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/mpp.png",yo="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/photo.png",SC="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/pdf.png",BC="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/txt.png",Mf="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/email.png",CC="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/csv.png",PC="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/pub.png",TC="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/accdb.png",Wa="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/zip.png",Va="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/genericfile.png",Lf="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/code.png",EC="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/html.png",NC="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/xml.png",RC="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/spo.png",wo="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/video.png",Cn=class Cn{static getFileImageUrl(r){if(!r)return Va;let t=Va;const n=r.split("."),i=n[n.length-1];if(!i)return t;switch(i.toLowerCase()){case"xlsx":t=jf;break;case"xls":t=jf;break;case"docx":t=Af;break;case"doc":t=Af;break;case"pptx":t=Of;break;case"ppt":t=Of;break;case"mppx":t=qf;break;case"mpp":t=qf;break;case"csv":t=CC;break;case"pdf":t=SC;break;case"txt":t=BC;break;case"jpg":t=yo;break;case"msg":t=Mf;break;case"jpeg":t=yo;break;case"png":t=yo;break;case"ico":t=yo;break;case"tiff":t=yo;break;case"eml":t=Mf;break;case"pub":t=PC;break;case"accdb":t=TC;break;case"zip":t=Wa;break;case"7z":t=Wa;break;case"tar":t=Wa;break;case"js":t=Lf;break;case"json":t=Lf;break;case"html":t=EC;break;case"xml":t=NC;break;case"aspx":t=RC;break;case"mp4":t=wo;break;case"mov":t=wo;break;case"wmv":t=wo;break;case"ogg":t=wo;break;case"webm":t=wo;break;default:t=Va;break}return t}};Cn.getShortName=r=>{if(!r)return"";const t=r.split("."),n=t[0].substring(0,25),i=t[t.length-1];return`${n}...${i}`},Cn.isOndrive=async r=>r?r.indexOf("my.sharepoint.com")>-1:!1;let Sn=Cn;const ir=class ir{};ir.getThumbnailUrl=(r,t="medium")=>`https://graph.microsoft.com/v1.0/sites/${r.identitySiteCollectionId}/sites/${r.identityWebId}/lists/${r.identityListId}/items/${r.listItemId}/microsoft.graph.listitem/driveItem/thumbnails/0/${t}/content`,ir.getThumbnailImageFromGraphApiCall=async(r,t)=>{const n=await r.get(t);if(n.headers["content-type"]==="application/json")return"data:image/png;base64,"+(await n.text()).replace('"',"").replace('"',"");if(n.status===302)return n.headers.Location;if(n.status===404)return"";const i=await n.arrayBuffer();return`data:image/jpeg;base64,${Buffer.from(new Uint8Array(i).reduce((s,l)=>s+String.fromCharCode(l),"")).toString("base64")}`},ir.getThumbnailImageFromGraph=async(r,t,n="medium")=>{const i=ir.getThumbnailUrl(r,n);return await ir.getThumbnailImageFromGraphApiCall(t,i)};let $a=ir;function zC(e){let r=0;for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);r=(r<<5)-r+n,r|=0}return r}const DC=Pr({title:{...Cr.margin(0,0,"12px")},description:{...Cr.margin(0,0,"12px")},card:{width:"20rem",maxWidth:"100%",height:"fit-content"},image:{width:"20rem",height:"7rem"},text:{...Cr.margin(0)},imageIconWrapper:{width:"20rem!important",height:"7rem!important",display:"flex!important",justifyContent:"center",alignItems:"center",backgroundColor:Pe.colorNeutralBackground3}}),Hf=e=>{const{graphClient:r}=Ve(),t=DC(),[n,i]=m.useState(void 0);return m.useEffect(()=>{$a.getThumbnailImageFromGraph(e.document.fields,r).then(o=>{i(o)}).catch(o=>{console.error(o)})},[]),P.jsxs(df,{className:t.card,children:[P.jsx(gf,{children:n?P.jsx("img",{src:n,alt:e.document.fields.title,className:t.image}):P.jsx("div",{className:t.imageIconWrapper,children:P.jsx("div",{children:P.jsx("img",{src:Sn.getFileImageUrl(e.document.fields.path),width:"32px",height:"32px",alt:e.document.fields.title})})})}),P.jsx(hf,{image:P.jsx("img",{src:Sn.getFileImageUrl(e.document.fields.path),width:"32px",height:"32px",alt:e.document.fields.title}),header:P.jsx(Qx,{children:P.jsx("b",{children:e.document.fields.title})}),description:P.jsx(Yx,{children:e.document.fields.author}),action:P.jsx(Ze,{appearance:"transparent","aria-label":"More options"})}),P.jsx("p",{className:t.text,children:e.document.fields.description}),P.jsx(ff,{children:P.jsx(Ze,{as:"a",href:e.document.fields.path,appearance:"primary",icon:P.jsx(D0,{}),children:"Open"})})]})},FC=Pr({wrapper:{},searchInput:{},searchResults:{display:"flex",flexWrap:"wrap",flexDirection:"row",...Cr.gap(Pe.spacingHorizontalL,Pe.spacingVerticalL)}}),IC=e=>{var f;const{graphClient:r}=Ve(),t=FC(),n=m.useMemo(()=>{var v,b,p,y,k,w,x;var h=new Vn(r,[((v=e.dataProviderProps)==null?void 0:v.entityType)??"listItem"],((b=e.dataProviderProps)==null?void 0:b.selectFields)||Ha);return h.queryTemplate=(p=e.dataProviderProps)==null?void 0:p.queryTemplate,h.pageSize=(y=e.dataProviderProps)==null?void 0:y.pageSize,(k=e.dataProviderProps)!=null&&k.aggregations&&h.setRefiners((w=e.dataProviderProps)==null?void 0:w.aggregations),h.setQuery(((x=e.dataProviderProps)==null?void 0:x.initialQuery)??""),h},[r,e.dataProviderProps]),[i,o]=m.useState(!0),[s,l]=m.useState(((f=e.dataProviderProps)==null?void 0:f.initialQuery)??""),[u,a]=m.useState([]),[c,d]=m.useState(void 0);m.useEffect(()=>{n.setQuery(s),o(!0),n.getData().then(h=>{a(h),d(void 0)}).catch(h=>{d(h.message)}).finally(()=>{o(!1)})},[s]);const g=()=>e!=null&&e.searchInputComponent?P.jsx(e.searchInputComponent,{onSearch:h=>{l(h)}}):P.jsx(mn,{contentBefore:P.jsx(du,{}),placeholder:"Search",value:s,onChange:h=>{l(h.target.value)}});return P.jsxs("div",{children:[P.jsx("div",{children:g()}),P.jsxs("div",{children:[i&&P.jsx(qr,{label:"Loading..."}),!i&&c&&P.jsxs("div",{children:["Error: ",c]})]}),P.jsx("div",{className:t.searchResults,children:u.map((h,v)=>P.jsx("div",{children:e!=null&&e.onResultRendering?e.onResultRendering(h):P.jsx(Hf,{document:h})},v))})]})},jC=Pr({wrapper:{},searchInput:{},searchResults:{display:"flex",flexWrap:"wrap",flexDirection:"row",...Cr.gap(Pe.spacingHorizontalL,Pe.spacingVerticalL)}}),AC=e=>{var f;const{graphClient:r}=Ve(),t=jC(),n=m.useMemo(()=>{var v,b;var h=new zh(r,"sharePoint",((v=e.dataProviderProps)==null?void 0:v.selectFields)||Ha,(b=e.dataProviderProps)==null?void 0:b.queryTemplate);return h},[r,e.dataProviderProps]),[i,o]=m.useState(!0),[s,l]=m.useState(((f=e.dataProviderProps)==null?void 0:f.initialQuery)??""),[u,a]=m.useState([]),[c,d]=m.useState(void 0);m.useEffect(()=>{Ln.debounce("copilot-search",async()=>{o(!0),n.getData(s).then(h=>{a(h),d(void 0)}).catch(h=>{d(h.message)}).finally(()=>{o(!1)})},1e3)},[s]);const g=()=>e!=null&&e.searchInputComponent?P.jsx(e.searchInputComponent,{onSearch:h=>{l(h)}}):P.jsx(mn,{style:{width:"500px"},contentBefore:P.jsx(du,{}),placeholder:"Search",value:s,onChange:h=>{l(h.target.value)}});return P.jsxs("div",{children:[P.jsx("div",{children:g()}),P.jsxs("div",{children:[i&&P.jsx(qr,{label:"Loading..."}),!i&&c&&P.jsxs("div",{children:["Error: ",c]})]}),P.jsx("div",{className:t.searchResults,children:u.map((h,v)=>P.jsx("div",{children:e!=null&&e.onResultRendering?e.onResultRendering(h):P.jsx(Hf,{document:{fields:h.resourceMetadata,...h}})},v))})]})},OC=Pr({root:{paddingBottom:Pe.spacingVerticalM,position:"relative"},searchInput:{minWidth:"800px"},suggestionsSurface:{position:"absolute",top:"100%",marginTop:"0rem",zIndex:2,backgroundColor:Pe.colorNeutralBackgroundAlpha2,width:"800px",transform:"scaleY(0)",transformOrigin:"top",transitionProperty:"all",transitionTimingFunction:Pe.curveDecelerateMid,transitionDuration:Pe.durationSlow},suggestionsSurfaceVisible:{transform:"scaleY(1)"},suggestionsWrapper:{display:"flex",flexDirection:"column",rowGap:Pe.spacingVerticalM,maxHeight:"15rem",overflowY:"auto",alignItems:"flex-start"},suggestionsList:{listStyleType:"none",paddingLeft:"0px"},suggestionButton:{"&:focus":{...Cr.borderColor(Pe.colorBrandBackground)}}}),qC=[":","=","<",">","<=",">="];function MC(e){const r=OC(),{graphClient:t}=Ve(),[n,i]=m.useState(!1),[o,s]=m.useState([]),[l,u]=m.useState(!0),[a,c]=m.useState(""),[d,g]=m.useState(!0),[f,h]=m.useState(),v=m.useRef(),b=m.useRef(),p=m.useRef(new Lh(t));return m.useEffect(()=>{e.query&&p.current.withManagedPropertiesRelatedQuery(e.query),p.current.build().then(y=>{h(y),g(!1)})},[]),P.jsxs("div",{className:r.root,children:[P.jsx(mn,{ref:v,className:r.searchInput,contentAfter:d?P.jsx(qr,{size:"tiny"}):P.jsx(Ze,{appearance:"transparent",title:"Search",onClick:()=>{e.onSearch(a)},icon:P.jsx(B0,{})}),value:a,onChange:(y,k)=>{c(k.value),Ln.debounce("search-input",async()=>{g(!0);const w=await f.getSuggestions(k.value);s(w.value),u(w.areSuggestionsProps),w.value&&w.value.length>0&&i(!0),g(!1)},500)},onKeyDown:y=>{var k;if(y.key==="Enter"&&e.onSearch(a),y.key==="ArrowDown"){const w=(k=b.current)==null?void 0:k.firstChild;if(w){const x=w.firstChild;if(x){x.focus(),y.preventDefault();return}}}y.key==="Escape"&&i(!1)}}),P.jsxs("div",{className:N(r.suggestionsSurface,n&&r.suggestionsSurfaceVisible),onBlur:()=>{},children:[P.jsx("div",{style:{width:"100%",display:"flex",justifyContent:"flex-end"},children:P.jsx(Ze,{tabIndex:-1,appearance:"subtle",onClick:()=>{i(!1)},title:"Close",icon:P.jsx(Wc,{})})}),P.jsx("div",{className:r.suggestionsWrapper,children:P.jsxs("ul",{className:r.suggestionsList,ref:b,onKeyDown:y=>{var B;const k=b==null?void 0:b.current.querySelectorAll("button"),w=y.target;let x=null;if(k.forEach((S,C)=>{S===w&&(x=C)}),y.key==="ArrowUp")if(x===0){(B=v.current)==null||B.focus(),y.preventDefault();return}else{k.item(x-1).focus(),y.preventDefault();return}if(y.key==="ArrowDown")if(x===k.length-1){k.item(0).focus(),y.preventDefault();return}else{k.item(x+1).focus(),y.preventDefault();return}},children:[l&&o.map(y=>P.jsx("li",{children:P.jsx(Ze,{className:r.suggestionButton,appearance:"transparent",onClick:()=>{var B;const k=a.split(l?" ":":"),w=k[k.length-1],x=a.replace(w,y+":");c(x),i(!1),u(!1),(B=v.current)==null||B.focus()},children:y},y)})),!l&&o.map((y,k)=>P.jsx("li",{children:P.jsx(Ze,{className:r.suggestionButton,appearance:"transparent",onClick:()=>{var C;const w=a.split(" ");let x=w[w.length-1],B=qC.find(E=>x.indexOf(E)>0);B&&(x=x.split(B)[1]);const S=a.replace(x,y.replace(/ /g,"+"));c(S),i(!1),u(!0),(C=v.current)==null||C.focus(),e.onSearch(S)},children:y},k)}))]})})]})]})}var LC=Object.defineProperty,HC=Object.getOwnPropertyDescriptor,WC=(e,r,t,n)=>{for(var i=n>1?void 0:n?HC(r,t):r,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=(n?s(r,t,i):s(i))||i);return n&&i&&LC(r,t,i),i};class Ga{constructor(r,t){this.graphClient=r,this.updatePresence=t,this.key="persona-cache-",this.cacheExpiration=1e3*60*60*4,this.storageService=new jn}async getUser(r,t="48x48"){let n=r;if(r&&r.indexOf("@")>-1){const l=`/users/${r}?$select=id`,u=await this.graphClient.get(l);if(u.status===404)return null;n=(await u.json()).id}let i=this.storageService.get(this.key+r),o=i==null?void 0:i.data;const s=n?`/users/${n}`:"/me";if(!o||i.expiration<new Date().getTime()){const[l,u,a]=await Promise.all([this.graphClient.get(s+"?$select=id,displayName,mail,jobTitle,department,officeLocation,mobilePhone,businessPhones,userPrincipalName,usageLocation"),this.graphClient.get(s+`/photos/${t}/$value`),this.graphClient.get(s+"/presence")]),[c,d,g]=await Promise.all([l.json(),u.text(),a.json()]);o={...c,photo:`data:image/png;base64,${d.replace('"',"").replace('"',"")}`,presence:g},this.storageService.set(this.key+r,{data:o,expiration:new Date().getTime()+this.cacheExpiration})}else if(this.updatePresence){const u=await(await this.graphClient.get(s+"/presence")).json();o={...o,presence:u},this.storageService.set(this.key+r,{data:o,expiration:new Date().getTime()+this.cacheExpiration})}return o}}WC([An("getUser-{0}")],Ga.prototype,"getUser",1);function Bn(e){var d,g,f,h,v;const{id:r}=e;let t=e.graphClient;const n=b=>{switch(b){case"":return"offline";case"Available":return"available";case"Busy":return"busy";case"Away":return"away";case"DoNotDisturb":return"do-not-disturb";case"Offline":return"offline";case"PresenceUnknown":return"unknown";case"OutOfOffice":return"out-of-office";case"Blocked":return"blocked";case"BeRightBack":return"away";case"BusyIdle":return"busy";case"AvailableIdle":return"available";default:return b==null?void 0:b.toLowerCase()}},i=m.useRef(new Ga(t,e.showPresence)),[o,s]=m.useState(!e.user),[l,u]=m.useState(e.user),a=async()=>{const b=await i.current.getUser(r);u({...e.user,...b}),s(!1)};if(m.useEffect(()=>{e.user||a()},[r]),o)return P.jsx(qr,{});const c=(l==null?void 0:l.displayName)||e.name||e.title||e.id;return P.jsx(_d,{primaryText:c,secondaryText:l==null?void 0:l.jobTitle,avatar:{image:{src:l==null?void 0:l.photo},initials:((d=l==null?void 0:l.displayName)==null?void 0:d.split(" ").map(b=>b[0]).join(""))||((g=e.name)==null?void 0:g.split(" ").map(b=>b[0]).join(""))},presence:e.showPresence?{status:n((f=l==null?void 0:l.presence)==null?void 0:f.availability),outOfOffice:(v=(h=l==null?void 0:l.presence)==null?void 0:h.outOfOfficeSettings)==null?void 0:v.isOutOfOffice}:void 0,...e})}function VC(e){const{graphClient:r}=Ve();return P.jsx(Bn,{...e,graphClient:r})}function Lt(e){const[r,t]=m.useState(e.value||[]),[n,i]=m.useState(!1),[o,s]=m.useState(""),[l,u]=m.useState(e.value||[]),a=c=>Ln.debounce(`entityPicker-${e.additionalKey}`,async()=>{i(!0);try{const d=await e.onDataRequested(c);t([...d,...l].reduce((g,f)=>g.find(v=>v.id===f.id)?g:g.concat([f]),[])),i(!1)}catch(d){console.error(d),i(!1)}},500);return m.useEffect(()=>{a(o)},[o,e.additionalKey]),e.renderOverride?P.jsx(P.Fragment,{children:e.renderOverride(r,n,a)}):P.jsxs(ya,{label:e.label,hint:e.description,children:[P.jsx(xd,{value:o,multiselect:e.multiSelect,freeform:!0,onChange:c=>{s(c.target.value)},size:e.size,disabled:e.disabled,onOptionSelect:(c,d)=>{let g=[];const f=r.find(h=>h.id===d.optionValue);l.some(h=>h.id===d.optionValue)?g=l.filter(h=>h.id!==d.optionValue):e.multiSelect?g=[...l,f]:g=[f],g=g.filter(h=>!!h),e.onEntitySelected&&e.onEntitySelected(g),u(g),s(g.map(h=>h.displayName).join(", "))},defaultSelectedOptions:l.map(c=>c.id),children:r.map(c=>P.jsx(kd,{text:c.displayName,value:c.id,children:e.onSuggestionRendering?e.onSuggestionRendering(c):c.displayName},encodeURIComponent(c.id)))}),n&&P.jsx(Od,{})]})}function $C(e){const{graphClient:r}=Ve();return P.jsx(Wf,{...e,graphClient:r})}function Wf(e){const r=async()=>(await(await e.graphClient.get(`/teams/${e.teamId}/channels?$select=id,displayName`)).json()).value;m.useEffect(()=>{r()},[e.teamId]);const t=async n=>await r();return P.jsx(Lt,{additionalKey:`team-${e.teamId}-channels`,...e,onDataRequested:t})}function GC(e){const{graphClient:r}=Ve();return P.jsx(Vf,{...e,graphClient:r,siteId:e.siteId})}function Vf(e){const r=async t=>{let n=e.siteId?`/sites/${e.siteId}/drives?$select=id,name`:"/me/drives?$select=id,name";return t&&(n+=`&$filter=startswith(name, '${t}')`),(await(await e.graphClient.get(n)).json()).value.map(s=>({id:s.id,displayName:s.name}))};return P.jsx(Lt,{additionalKey:`drive-picker-${e.siteId}`,...e,onDataRequested:r})}function UC(e){const{graphClient:r}=Ve();return P.jsx($f,{...e,graphClient:r})}function $f(e){const r=async t=>{let n="/teams?$select=id,displayName&$top=8";return t&&(n+=`&$filter=startswith(displayName, '${t}')`),(await(await e.graphClient.get(n)).json()).value};return P.jsx(Lt,{additionalKey:"team-site-picker",...e,onDataRequested:r})}function KC(e){const{graphClient:r}=Ve();return P.jsx(Gf,{...e,graphClient:r})}function Gf(e){const r=new Eh(e.graphClient,!0,!0),t=async n=>(r.setQuery(n),await r.getData());return P.jsx(Lt,{...e,additionalKey:"people-picker",onDataRequested:t,onSuggestionRendering:n=>(n.photo&&(n.photo=`data:image/png;base64,${n.photo.replace('"',"").replace('"',"")}`),P.jsx(Bn,{showPresence:!0,user:n,graphClient:e.graphClient}))})}function XC(e){const{graphClient:r}=Ve();return P.jsx(Uf,{...e,graphClient:r})}function Uf(e){const r=m.useRef(new Vn(e.graphClient,["site"],["id","displayName"])),t=async n=>(r.current.setQuery(n||"*"),await r.current.getData());return P.jsx(Lt,{...e,onDataRequested:t})}function Kf(e){const[r,t]=m.useState(e.initialRender),[n,i]=m.useState(!0);return m.useEffect(()=>{e.permissionCheck().then(o=>{t(o)}).finally(()=>i(!1))},[]),n&&e.placeholder?P.jsx(P.Fragment,{children:e.placeholder}):r?P.jsx(P.Fragment,{children:e.children}):P.jsx(P.Fragment,{})}function ZC(e){const{spClient:r,siteUrl:t}=Xn();return P.jsx(Xf,{...e,siteUrl:t,spClient:r})}function Xf(e){return P.jsx(Kf,{placeholder:e.placeholder,permissionCheck:async()=>{var r=`${e.siteUrl}/_api/web/EffectiveBasePermissions`,t=await e.spClient.get(r,{headers:{accept:"application/json"}}),n=await t.json(),i=[];for(var o in pr){var s=jh.hasPermission(n,pr[o]);s&&i.push(o)}return i.indexOf(e.role)>=0},children:e.children},`${e.role}-${e.siteUrl}`)}function Zf(e){return P.jsx(Kf,{placeholder:e.placeholder,permissionCheck:async()=>{const r=`/me/transitiveMemberOf/${e.groupId}?$select=id`;return(await e.graphClient.get(r)).ok},children:e.children},e.groupId)}function QC(e){const{graphClient:r}=Ve();return P.jsx(Zf,{...e,graphClient:r})}class Qf{constructor(r,t,n){this.dataverseClient=r,this.dataverseEnv=t,this.tableName=n,this.dataFields=[],this.getFieldSuggestions=async(i,o)=>{if(i.type==="User"){let a=`${this.dataverseEnv}/api/data/v9.0/systemusers?`;if(o&&o.length>0){const g=new In;for(const f of o)f.type||(f.type="Text"),f.name=i.expandFields[0],g.withFieldQuery(f);a+=`$filter=${g.build()}&`}return a+=`$select=${i.expandFields.join(",")}`,(await(await this.dataverseClient.get(a,{headers:{prefer:"odata.include-annotations=*"}})).json()).value.map(g=>({id:g[i.relatedId],displayName:g[i.expandFields[0]]}))}let s=`${this.dataverseEnv}/api/data/v9.0/${this.tableName}?`;if(o&&o.length>0){const a=new In;for(const c of o)c.type||(c.type="Text"),a.withFieldQuery(c);s+=`$filter=${a.build()}&`}i.type==="Lookup"?s+=`$apply=groupby((${i.name}/${i.relatedId||i.name+"_id"},${i.name}/${i.expandFields[0]}))`:i.type=="DateTime"?s+=`$apply=aggregate(${i.name} with min as ${i.name})`:s+=`$apply=groupby((${i.name}))`;const u=await(await this.dataverseClient.get(s,{headers:{prefer:"odata.include-annotations=*"}})).json();if(i.type==="Lookup"||i.type==="User"){if(u.value.length===0)return[];let a="",c="";const d=u.value[0];for(const g in d)g.indexOf(i.relatedId)>=0&&(a=g),g.indexOf(i.expandFields[0])>=0&&(c=g);return u.value.map(g=>({id:g[a],displayName:g[c]}))}return u.value.map(a=>({id:a[i.name],displayName:a[`${i.name}@OData.Community.Display.V1.FormattedValue`]?a[`${i.name}@OData.Community.Display.V1.FormattedValue`]:a[i.name]}))},this.dataProvider=new Fh(r,t,n),this.dataProvider.pageSize=5}mapToExpand(r){return r.expandFields?`${r.name}($select=${r.expandFields.join(",")})`:r.name}setFields(r){this.dataProvider.selectQuery=r.filter(t=>t.type!=="Lookup").map(t=>t.name).join(","),this.dataProvider.expandQuery=r.filter(t=>t.type==="Lookup"||t.type==="User").map(t=>this.mapToExpand(t)).join(","),this.dataFields=r}getData(r,t,n){if(r&&r.length>0){const i=new In;for(const s of r)s.type||(s.type="Text"),i.withFieldQuery(s);const o=i.build();this.dataProvider.setQuery(o)}else this.dataProvider.setQuery("");if(t){let i=t,o=this.dataFields.find(s=>s.name===i);o&&o.type==="Lookup"?i=`${o.name}/${o.expandFields[0]}`:o&&o.type==="User"&&(i=`${o.name}/fullname`),this.dataProvider.setOrder(i,n||"ASC")}return this.dataProvider.getData()}getNextPage(){return this.dataProvider.getNextPage()}isNextPageAvailable(){return this.dataProvider.isNextPageAvailable()}getPreviousPage(){return this.dataProvider.getPreviousPage()}isPreviousPageAvailable(){return this.dataProvider.isPreviousPageAvailable()}}class Ua{isRendererApplicable(r){return r.type==="DateTime"}renderField(r,t,n){if(!t)return P.jsx("span",{children:"-"});const i=new Date(String(t));return isNaN(i.getTime())?P.jsx("span",{children:"-"}):P.jsx("span",{children:i.toLocaleDateString()})}}class YC{constructor(){this.renderers=[new Ua]}registerRenderer(r){this.renderers.unshift(r)}isRendererApplicable(r){return!!this.renderers.find(t=>t.isRendererApplicable(r))}renderField(r,t,n){const i=this.renderers.find(o=>o.isRendererApplicable(r));return i?i.renderField(r,t,n):typeof t=="string"?P.jsx("div",{children:t}):P.jsx("div",{children:JSON.stringify(t)})}}const JC=Pr({root:{display:"flex",justifyContent:"end",gap:Pe.spacingHorizontalS},button:{},activeFilterButton:{backgroundColor:Pe.colorBrandBackground,color:Pe.colorNeutralForegroundOnBrand}});function eP(e){const[r,t]=m.useState(!1),n=JC(),i=e.initialQueryFields&&e.initialQueryFields.length>0;return P.jsxs("div",{className:n.root,children:[i&&e.onClearFilters&&P.jsx(Ze,{"aria-label":"Clear all filters",appearance:"subtle",onClick:e.onClearFilters,children:"Clear filters"}),P.jsx(Ze,{"aria-label":"Open filter pane",icon:P.jsx(x0,{}),className:i?n.activeFilterButton:void 0,onClick:()=>{t(!0)}}),P.jsxs(Rf,{type:"overlay",separator:!0,open:r,onOpenChange:(o,{open:s})=>t(s),position:"end",children:[P.jsx(Df,{children:P.jsx(Ff,{action:P.jsx(Ze,{appearance:"subtle","aria-label":"Close",icon:P.jsx(R0,{}),onClick:()=>t(!1)}),children:"Filter"})}),P.jsx(zf,{children:e.filterFields.map(o=>P.jsx(ya,{label:o.label||o.name,children:e.renderFilter(o,e.onFilterSet,e.initialQueryFields)},o.name))}),i&&e.onClearFilters&&P.jsx(If,{children:P.jsx(Ze,{appearance:"secondary",onClick:()=>{var o;(o=e.onClearFilters)==null||o.call(e),t(!1)},children:"Clear all filters"})})]})]})}const tP=Pr({root:{position:"relative"},loadingWrapper:{position:"absolute",width:"100%",height:"min-content",paddingTop:Pe.spacingVerticalM,paddingBottom:Pe.spacingHorizontalM,backgroundColor:Pe.colorNeutralBackgroundAlpha,zIndex:9999},errorWrapper:{marginBottom:Pe.spacingVerticalM},pagination:{display:"flex",width:"100%",justifyContent:"center",gap:Pe.spacingHorizontalL,marginTop:Pe.spacingVerticalM}});function Ka(e){var B;const r=tP(),t=m.useMemo(()=>{const S=new YC;if(e.customRenderers)for(const C of e.customRenderers)S.registerRenderer(C);return S},[e.customRenderers]),n=m.useMemo(()=>e.fieldsToRender.map(S=>eS({columnId:S.name,renderHeaderCell:()=>P.jsx(Ed,{weight:"semibold",children:S.label||S.name}),renderCell:C=>t.renderField(S,C[S.name],C),compare:(C,E)=>C[S.name]-E[S.name]})),[e.fieldsToRender]),[i,o]=m.useState({sortColumn:(B=e.fieldsToRender.find(S=>!S.disableSorting))==null?void 0:B.name,sortDirection:"ascending"}),s=(S,C)=>{o(C)},[l,u]=m.useState([]),[a,c]=m.useState(!0),[d,g]=m.useState(null),[f,h]=m.useState([]),[v,b]=m.useState(new Set),p=m.useCallback((S,C)=>{if(e.getRowId)return e.getRowId(S);const E=S;return E.id?String(E.id):E.Id?String(E.Id):E.ID?String(E.ID):C},[e.getRowId]),y=m.useMemo(()=>{const S=new Map;return l.forEach((C,E)=>{S.set(p(C,E),C)}),S},[l,p]),k=(S,C)=>{if(b(C.selectedItems),e.onSelectionChange){const E=[];C.selectedItems.forEach(I=>{const $=y.get(I);$&&E.push($)}),e.onSelectionChange(E)}},w=m.useMemo(()=>e.fieldsToRender.filter(S=>!S.disableFiltering),[e.fieldsToRender]),x=m.useCallback(()=>{h([])},[]);return m.useEffect(()=>{var C;c(!0),g(null),e.dataService.setFields(e.fieldsToRender);const S=[];e.systemFilter&&e.systemFilter.length>0&&S.push(...e.systemFilter),f&&f.length>0&&S.push(...f),e.dataService.getData(S,(C=i==null?void 0:i.sortColumn)==null?void 0:C.toString(),(i==null?void 0:i.sortDirection)=="ascending"?"ASC":"DESC").then(E=>u(E)).catch(E=>{g((E==null?void 0:E.message)||"An error occurred while loading data"),u([])}).finally(()=>c(!1))},[e.systemFilter,i,f]),P.jsxs("div",{className:r.root,children:[a&&P.jsx("div",{className:r.loadingWrapper,children:P.jsx(qr,{size:"huge"})}),d&&P.jsx("div",{className:r.errorWrapper,children:P.jsx(bf,{intent:"error",children:P.jsxs(wf,{children:[P.jsx(yf,{children:"Error"}),d]})})}),e.renderFilter&&P.jsx(eP,{filterFields:w,initialQueryFields:f,onFilterSet:(S,C)=>{const E=[...f.filter(I=>I.name!==S.name)];C&&C.length>0&&E.push(...C),h(E)},onClearFilters:x,renderFilter:e.renderFilter}),P.jsxs(of,{items:l,columns:n,sortable:!0,sortState:i,onSortChange:s,selectionMode:e.selectionMode,selectedItems:v,onSelectionChange:k,getRowId:S=>p(S,l.indexOf(S)),children:[P.jsx(nf,{children:P.jsx(Ra,{selectionCell:e.selectionMode==="multiselect"?{checkboxIndicator:{"aria-label":"Select all rows"}}:void 0,children:({renderHeaderCell:S})=>P.jsx(af,{children:S()})})}),P.jsx(rf,{children:({item:S,rowId:C})=>P.jsx(Ra,{selectionCell:e.selectionMode?{checkboxIndicator:{"aria-label":"Select row"},radioIndicator:{"aria-label":"Select row"}}:void 0,children:({renderCell:E})=>P.jsx(ef,{children:E(S)})},C)})]}),P.jsxs("div",{className:r.pagination,children:[P.jsx(Ze,{icon:P.jsx(E0,{}),disabled:!e.dataService.isPreviousPageAvailable(),onClick:()=>{e.dataService.getPreviousPage().then(S=>u(S)).finally(()=>c(!1))},"aria-label":"Previous page","data-testid":"datagrid-prev-page"}),P.jsx(Ze,{icon:P.jsx(N0,{}),disabled:!e.dataService.isNextPageAvailable(),onClick:()=>{e.dataService.getNextPage().then(S=>u(S)).finally(()=>c(!1))},"aria-label":"Next page","data-testid":"datagrid-next-page"})]})]})}class rP{constructor(r){this.graphClient=r}isRendererApplicable(r){return r.type==="User"}renderField(r,t,n){if(!t||typeof t!="object")return P.jsx("span",{children:"-"});const i=t,o=i.azureactivedirectoryobjectid;if(!o){const s=i.fullname;return P.jsx("span",{children:s?String(s):"-"})}return P.jsx(Bn,{graphClient:this.graphClient,id:String(o)})}}class oP{isRendererApplicable(r){return r.type==="Lookup"}renderField(r,t,n){if(!t||typeof t!="object")return P.jsx("span",{children:"-"});const i=t;if(r.expandFields&&r.expandFields[0]){const o=i[r.expandFields[0]];return P.jsx("span",{children:o!=null?String(o):"-"})}return P.jsx("span",{children:JSON.stringify(t)})}}function nP(e){const r=async t=>{const n=[];return e.additionalFilters&&n.push(...e.additionalFilters),t&&n.push({name:e.column.type==="Lookup"?`${e.column.name}/${e.column.expandFields[0]}`:e.column.name,type:e.column.type,value:t,comparer:"Contains"}),e.getFieldSuggestions(e.column,n)};return P.jsx(Lt,{additionalKey:`${e.table}-${e.column.name}`,...e,onDataRequested:r})}function iP(e){const{dataverseClient:r,dataverseResource:t}=xs(),{graphClient:n}=Ve(),i=m.useMemo(()=>{const o=[new rP(n)];return e.customRenderers&&o.push(...e.customRenderers),o},[n,e.customRenderers]);return P.jsx(Yf,{...e,dataverseClient:r,dataverseEnv:t,customRenderers:i})}function Yf(e){const r=m.useMemo(()=>{let n=[new oP,new Ua];return e.customRenderers&&n.push(...e.customRenderers),n},[e.customRenderers]),t=m.useMemo(()=>new Qf(e.dataverseClient,e.dataverseEnv,e.tableName),[e.dataverseClient,e.dataverseEnv,e.tableName]);return P.jsx(Ka,{dataService:t,fieldsToRender:e.fieldsToRender,customRenderers:r,selectionMode:e.selectionMode,getRowId:e.getRowId,onSelectionChange:e.onSelectionChange,renderFilter:(n,i,o)=>P.jsx(nP,{additionalFilters:o,onEntitySelected:s=>{if(s){const l=s.map(u=>({name:n.type=="Lookup"||n.type=="User"?`${n.name}/${n.relatedId}`:n.name,type:n.type,label:n.label,value:u.id,comparer:"Eq"}));i({...n,name:n.type=="Lookup"||n.type=="User"?`${n.name}/${n.relatedId}`:n.name},l)}},table:e.tableName,column:n,getFieldSuggestions:t.getFieldSuggestions})})}class Jf{constructor(r,t,n){this.spHttpClient=r,this.siteUrl=t,this.listId=n,this.getFieldSuggestions=async(i,o)=>{let s=`${this.siteUrl}/_api/web/lists('${this.listId}')/RenderListFilterData?FieldInternalName='${i.name}'`;if(o&&o.length>0){let f="";for(let h=0;h<o.length;h++){const v=o[h],b=h+1;f+=`&FilterField${b}=${v.name}&FilterValue${b}=${encodeURIComponent(v.value)}&FilterType${b}=${v.type||"Text"}`}s+=f}const l=await this.spHttpClient.post(s,{headers:{accept:"application/json"}}),u=new DOMParser,a=await l.text(),d=u.parseFromString(a==null?void 0:a.replace("SELECTED",""),"application/xml").getElementsByTagName("OPTION"),g=[];for(let f=0;f<d.length;f++){const h=d.item(f);g.push({id:h.getAttribute("Value"),displayName:h.innerHTML})}return g},this.dataProvider=new Ch(r,t,n)}setFields(r){this.dataProvider.selectedFields=r.map(t=>t.name)}async getData(r,t,n){const i=new vh;return r&&r.length>0&&(r.forEach(o=>i.withFieldQuery(o)),this.dataProvider.setQuery(i.build())),t&&this.dataProvider.setOrder(t,n),this.dataProvider.getData()}getNextPage(){return this.dataProvider.getNextPage()}isNextPageAvailable(){return this.dataProvider.isNextPageAvailable()}getPreviousPage(){return this.dataProvider.getPreviousPage()}isPreviousPageAvailable(){return this.dataProvider.isPreviousPageAvailable()}}function aP(e){const r=async t=>{const n=[];return e.additionalFilters&&n.push(...e.additionalFilters),t&&n.push({name:e.column.name,type:e.column.type,value:t,comparer:"Contains"}),e.getFieldSuggestions(e.column,n)};return P.jsx(Lt,{additionalKey:`${e.listId}-${e.column.name}-${zC(e.additionalFilters?e.additionalFilters.map(t=>t.name+t.value).join(";"):"")}`,...e,onDataRequested:r})}class sP{isRendererApplicable(r){return r.type==="User"}renderField(r,t,n){if(!t||!Array.isArray(t)||t.length===0)return P.jsx("span",{children:"-"});const i=t;return P.jsx("span",{children:i.map((o,s)=>P.jsxs("span",{children:[o.title||o.email||"Unknown",s<i.length-1?", ":""]},s))})}}function lP(e){const{spClient:r,siteUrl:t}=Xn();return P.jsx(eh,{...e,siteUrl:t,spClient:r})}function eh(e){const r=m.useMemo(()=>{let n=[];return n.push(new sP,new Ua),e.customRenderers&&n.push(...e.customRenderers),n},[e.customRenderers]),t=m.useMemo(()=>new Jf(e.spClient,e.siteUrl,e.listId),[e.spClient,e.listId,e.siteUrl]);return P.jsx(Ka,{dataService:t,fieldsToRender:e.fieldsToRender,customRenderers:r,selectionMode:e.selectionMode,getRowId:e.getRowId,onSelectionChange:e.onSelectionChange,renderFilter:(n,i,o)=>P.jsx(aP,{additionalFilters:o,onEntitySelected:s=>{if(s){const l=s.map(u=>({name:n.name,type:n.type,label:n.label,value:u.id,comparer:"Eq"}));i({...n,name:n.name},l)}},listId:e.listId,column:n,getFieldSuggestions:t.getFieldSuggestions})})}class cP{constructor(r,t){this.graphClient=r,this.entityEndpoint=t,this.dataProvider=new hs(r,t,!0)}mapToExpand(r){return r.expandFields?`${r.name}($select=${r.expandFields.join(",")})`:r.name}setFields(r){this.dataProvider.selectQuery=r.filter(t=>t.type!=="Lookup").map(t=>t.name).join(","),this.dataProvider.expandQuery=r.filter(t=>t.type==="Lookup"||t.type==="User").map(t=>this.mapToExpand(t)).join(",")}getData(r,t,n){if(r){const i=new rs;for(const s of r)i.withFieldQuery(s);const o=i.build();this.dataProvider.setQuery(o)}return t&&this.dataProvider.setOrder(t,n||"ASC"),this.dataProvider.getData()}getNextPage(){return this.dataProvider.getNextPage()}isNextPageAvailable(){return this.dataProvider.isNextPageAvailable()}getPreviousPage(){return this.dataProvider.getPreviousPage()}isPreviousPageAvailable(){return this.dataProvider.isPreviousPageAvailable()}async getFieldSuggestions(r,t){return[]}}Z.AbstractGraphEntityPicker=Lt,Z.AuthenticationContext=Fn,Z.AuthenticationContextProvider=gh,Z.ChannelPicker=$C,Z.ChannelPickerStandalone=Wf,Z.DataverseContext=Zn,Z.DataverseContextProvider=Vh,Z.DataverseTableDataGridService=Qf,Z.DataverseTableGrid=iP,Z.DataverseTableGridStandalone=Yf,Z.DrivePicker=GC,Z.DrivePickerStandalone=Vf,Z.GenericDataGrid=Ka,Z.GraphContext=Un,Z.GraphContextProvider=Hh,Z.GraphEntityDataGridService=cP,Z.GraphGroupMembershipTrimmedComponent=QC,Z.GraphGroupMembershipTrimmedComponentStandalone=Zf,Z.GraphPersona=VC,Z.GraphPersonaStandalone=Bn,Z.M365CopilotSearch=AC,Z.M365Search=IC,Z.PeoplePicker=KC,Z.PeoplePickerStandalone=Gf,Z.PersonaService=Ga,Z.SPContext=Kn,Z.SPContextProvider=Wh,Z.SPListDataGrid=lP,Z.SPListDataGridService=Jf,Z.SPListDataGridStandalone=eh,Z.SPPermissionTrimmedComponent=ZC,Z.SPPermissionTrimmedComponentStandalone=Xf,Z.SearchInputWithSuggestions=MC,Z.SitePicker=XC,Z.SitePickerStandalone=Uf,Z.TeamPicker=UC,Z.TeamPickerStandalone=$f,Z.defaultSelectFields=Ha,Z.useAuthentication=xo,Z.useDataverse=xs,Z.useGraph=Ve,Z.useSP=Xn,Object.defineProperty(Z,Symbol.toStringTag,{value:"Module"})});
|