@mohsinonxrm/pptb-dataverse-request-studio 1.5.0 → 1.6.0

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.
Files changed (141) hide show
  1. package/CHANGELOG.md +330 -0
  2. package/README.md +30 -12
  3. package/dist/assets/ActionParamForm-DvTh6hUs.js +1 -0
  4. package/dist/assets/AllOrNothingOption-C7wGq_-r.js +1 -0
  5. package/dist/assets/AssociateMode-Dj-iEObO.js +1 -0
  6. package/dist/assets/BatchMode-Dsa1JVpd.js +10 -0
  7. package/dist/assets/BinaryColumnPickers-NAaoPcPt.js +1 -0
  8. package/dist/assets/BinaryPipelineCard-CSklRaME.js +1 -0
  9. package/dist/assets/BulkDeleteMode-Cqpb47QI.js +1 -0
  10. package/dist/assets/BulkWriteMode-CRkiw89Q.js +6 -0
  11. package/dist/assets/CodeView-C65Y5vXN.js +874 -0
  12. package/dist/assets/CreateMode-CwGffdDR.js +1 -0
  13. package/dist/assets/DeleteMode-CaWEZkJ1.js +1 -0
  14. package/dist/assets/DisassociateMode-Ddk9Jm3g.js +2 -0
  15. package/dist/assets/ExecuteActionMode-BbN_9350.js +1 -0
  16. package/dist/assets/ExecuteFunctionMode-G3PFBDpl.js +1 -0
  17. package/dist/assets/ExecuteWorkflowMode-D2MxIt5s.js +1 -0
  18. package/dist/assets/FieldSetEditor-Dg6WsDgG.js +3 -0
  19. package/dist/assets/ImportCurlDialog-BiURYtjH.js +7 -0
  20. package/dist/assets/ManageAttachmentMode-D14EZog8.js +1 -0
  21. package/dist/assets/ManageFileMode-DMLRV2xg.js +1 -0
  22. package/dist/assets/ManageImageMode-CoSAt9yh.js +1 -0
  23. package/dist/assets/MergeMode-PfbLAjOh.js +1 -0
  24. package/dist/assets/OptionGroup-DYAAm_pt.js +1 -0
  25. package/dist/assets/PredefinedQueryMode-CdT1I6jB.js +1 -0
  26. package/dist/assets/RetrieveNextLinkMode-BK9KD3q6.js +1 -0
  27. package/dist/assets/RetrieveSingleMode-_y2Z1G7C.js +1 -0
  28. package/dist/assets/UpdateMode-Dvd6cr4i.js +1 -0
  29. package/dist/assets/UpsertMode-BuyV7FEg.js +1 -0
  30. package/dist/assets/WriteResultCard-N_Ewu4dP.js +1 -0
  31. package/dist/assets/bypassAdvisories-BhBeq_oI.js +1 -0
  32. package/dist/assets/decodeForDisplay-D55DM53E.js +1 -0
  33. package/dist/assets/index-NW0Z4UWR.js +42 -0
  34. package/dist/assets/javascript-Dti3Ss-T.js +1 -0
  35. package/dist/assets/{jsonMode-DOHFeg2H.js → jsonMode-YuJX0ZcQ.js} +1 -1
  36. package/dist/assets/jsonWorkerInPage-CTjyykdK.js +33 -0
  37. package/dist/assets/{monacoSetup-CEhMjQNN.js → monacoSetup-Bxl8fgYX.js} +176 -176
  38. package/dist/assets/multipart-Bd_eOd8a.js +4 -0
  39. package/dist/assets/{python-DDgBOsRh.js → python-CZnGM3Qv.js} +1 -1
  40. package/dist/assets/writeResultName-Dw705_0B.js +1 -0
  41. package/dist/assets/writeState-DgYICTBE.js +1 -0
  42. package/dist/assets/{xml-BXhJpCm5.js → xml-gySD1GMR.js} +1 -1
  43. package/dist/index.html +7 -1
  44. package/index.html +6 -0
  45. package/package.json +1 -1
  46. package/dist/assets/AssociateMode-mu2ai0TV.js +0 -1
  47. package/dist/assets/AssociateTargetsEditor-BoH9Qxe8.js +0 -1
  48. package/dist/assets/BatchMode-BVAfFgPy.js +0 -11
  49. package/dist/assets/BinaryColumnPickers-DYpKoRIO.js +0 -1
  50. package/dist/assets/BulkDeleteMode-Df-XirlR.js +0 -1
  51. package/dist/assets/BulkWriteMode-UXREEvbe.js +0 -6
  52. package/dist/assets/DisassociateMode-CKBL5nUo.js +0 -2
  53. package/dist/assets/ExecuteWorkflowMode-4EWco-ze.js +0 -1
  54. package/dist/assets/ManageFileMode-BFNwxuEY.js +0 -1
  55. package/dist/assets/ManageImageMode-DX0AdPN1.js +0 -1
  56. package/dist/assets/MergeMode-BzyXLu1b.js +0 -1
  57. package/dist/assets/PredefinedQueryMode-BT-HdZHF.js +0 -1
  58. package/dist/assets/RetrieveNextLinkMode-QBuIwdgS.js +0 -1
  59. package/dist/assets/abap-CRCWOmpq.js +0 -1
  60. package/dist/assets/apex-DnsZk_dE.js +0 -1
  61. package/dist/assets/azcli-1IWB1ccx.js +0 -1
  62. package/dist/assets/bat-DPkNLes8.js +0 -1
  63. package/dist/assets/bicep-Corcdgou.js +0 -2
  64. package/dist/assets/cameligo-CGrWLZr3.js +0 -1
  65. package/dist/assets/clojure-D9WOWImG.js +0 -1
  66. package/dist/assets/coffee-B7EJu28W.js +0 -1
  67. package/dist/assets/cpp-SEyurbux.js +0 -1
  68. package/dist/assets/csp-C46ZqvIl.js +0 -1
  69. package/dist/assets/css-DQU6DXDx.js +0 -3
  70. package/dist/assets/css.worker-CwQehIRV.js +0 -93
  71. package/dist/assets/cssMode-DRNC4UuD.js +0 -4
  72. package/dist/assets/cypher-D84EuPTj.js +0 -1
  73. package/dist/assets/dart-D8lhlL1r.js +0 -1
  74. package/dist/assets/dockerfile-DLk6rpji.js +0 -1
  75. package/dist/assets/ecl-BO6FnfXk.js +0 -1
  76. package/dist/assets/elixir-BRjLKONM.js +0 -1
  77. package/dist/assets/flow9-Cac8vKd7.js +0 -1
  78. package/dist/assets/freemarker2-BITb8GyO.js +0 -3
  79. package/dist/assets/fsharp-fd1GTHhf.js +0 -1
  80. package/dist/assets/go-O9LJTZXk.js +0 -1
  81. package/dist/assets/graphql-LQdxqEYJ.js +0 -1
  82. package/dist/assets/handlebars-BbDVduNH.js +0 -1
  83. package/dist/assets/hcl-DxDQ3s82.js +0 -1
  84. package/dist/assets/html-Ru2Cy2VS.js +0 -1
  85. package/dist/assets/html.worker-4xVL0wjo.js +0 -470
  86. package/dist/assets/htmlMode-DeMh8vPt.js +0 -4
  87. package/dist/assets/index-XmEQbXiX.js +0 -703
  88. package/dist/assets/ini-BvajGCUy.js +0 -1
  89. package/dist/assets/java-SYsfObOQ.js +0 -1
  90. package/dist/assets/javascript-DLj2yjBO.js +0 -1
  91. package/dist/assets/julia-DQXNmw_w.js +0 -1
  92. package/dist/assets/kotlin-qQ0MG-9I.js +0 -1
  93. package/dist/assets/less-GGFNNJHn.js +0 -2
  94. package/dist/assets/lexon-Canl7DCW.js +0 -1
  95. package/dist/assets/liquid-udbJGOUP.js +0 -1
  96. package/dist/assets/lua-D28Ae8-K.js +0 -1
  97. package/dist/assets/m3-DPitgjJI.js +0 -1
  98. package/dist/assets/markdown-B811l8j2.js +0 -1
  99. package/dist/assets/mdx-B6ABiFDH.js +0 -1
  100. package/dist/assets/mips-CdjsipkG.js +0 -1
  101. package/dist/assets/msdax-CYqgjx_P.js +0 -1
  102. package/dist/assets/mysql-BHd6q0vd.js +0 -1
  103. package/dist/assets/objective-c-B1aVtJYH.js +0 -1
  104. package/dist/assets/pascal-BhNW15KB.js +0 -1
  105. package/dist/assets/pascaligo-5jv8CcQD.js +0 -1
  106. package/dist/assets/perl-DlYyT36c.js +0 -1
  107. package/dist/assets/pgsql-Dy0bjov7.js +0 -1
  108. package/dist/assets/php-120yhfDK.js +0 -1
  109. package/dist/assets/pla-CjnFlu4u.js +0 -1
  110. package/dist/assets/postiats-CQpG440k.js +0 -1
  111. package/dist/assets/powerquery-DdJtto1Z.js +0 -1
  112. package/dist/assets/protobuf-IBS6jZEB.js +0 -2
  113. package/dist/assets/pug-kFxLfcjb.js +0 -1
  114. package/dist/assets/qsharp-q7JyzKFN.js +0 -1
  115. package/dist/assets/r-BIFz-_sK.js +0 -1
  116. package/dist/assets/razor-DGf0KCTP.js +0 -1
  117. package/dist/assets/redis-CHOsPHWR.js +0 -1
  118. package/dist/assets/redshift-CBifECDb.js +0 -1
  119. package/dist/assets/restructuredtext-CghPJEOS.js +0 -1
  120. package/dist/assets/ruby-CYWGW-b1.js +0 -1
  121. package/dist/assets/rust-DMDD0SHb.js +0 -1
  122. package/dist/assets/sb-BYAiYHFx.js +0 -1
  123. package/dist/assets/scala-Bqvq8jcR.js +0 -1
  124. package/dist/assets/scheme-Dhb-2j9p.js +0 -1
  125. package/dist/assets/scss-CTwUZ5N7.js +0 -3
  126. package/dist/assets/solidity-CME5AdoB.js +0 -1
  127. package/dist/assets/sophia-RYC1BQQz.js +0 -1
  128. package/dist/assets/sparql-KEyrF7De.js +0 -1
  129. package/dist/assets/sql-BdTr02Mf.js +0 -1
  130. package/dist/assets/st-C7iG7M4S.js +0 -1
  131. package/dist/assets/swift-D7IUmUK8.js +0 -1
  132. package/dist/assets/systemverilog-DgMryOEJ.js +0 -1
  133. package/dist/assets/tcl-PloMZuKG.js +0 -1
  134. package/dist/assets/ts.worker-B8Ae6930.js +0 -51330
  135. package/dist/assets/tsMode-D4ZDTisA.js +0 -11
  136. package/dist/assets/twig-BfRIq3la.js +0 -1
  137. package/dist/assets/typescript-CJFgy1iR.js +0 -1
  138. package/dist/assets/typespec-CzxlYoT_.js +0 -1
  139. package/dist/assets/vb-BwAE3J76.js +0 -1
  140. package/dist/assets/wgsl-Dksx_ONF.js +0 -298
  141. package/dist/assets/yaml-B7iGwJkY.js +0 -1
@@ -0,0 +1,42 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ImportCurlDialog-BiURYtjH.js","./writeState-DgYICTBE.js","./multipart-Bd_eOd8a.js","./BulkDeleteMode-Cqpb47QI.js","./CodeView-C65Y5vXN.js","./BulkWriteMode-CRkiw89Q.js","./FieldSetEditor-Dg6WsDgG.js","./bypassAdvisories-BhBeq_oI.js","./RetrieveNextLinkMode-BK9KD3q6.js","./decodeForDisplay-D55DM53E.js","./PredefinedQueryMode-CdT1I6jB.js","./OptionGroup-DYAAm_pt.js","./MergeMode-PfbLAjOh.js","./AssociateMode-Dj-iEObO.js","./AllOrNothingOption-C7wGq_-r.js","./DisassociateMode-Ddk9Jm3g.js","./ExecuteWorkflowMode-D2MxIt5s.js","./ManageFileMode-DMLRV2xg.js","./BinaryColumnPickers-NAaoPcPt.js","./BinaryPipelineCard-CSklRaME.js","./ManageImageMode-CoSAt9yh.js","./RetrieveSingleMode-_y2Z1G7C.js","./CreateMode-CwGffdDR.js","./writeResultName-Dw705_0B.js","./UpdateMode-Dvd6cr4i.js","./UpsertMode-BuyV7FEg.js","./DeleteMode-CaWEZkJ1.js","./ExecuteActionMode-BbN_9350.js","./ActionParamForm-DvTh6hUs.js","./ExecuteFunctionMode-G3PFBDpl.js","./ManageAttachmentMode-D14EZog8.js","./BatchMode-Dsa1JVpd.js"])))=>i.map(i=>d[i]);
2
+ var rD=Object.defineProperty;var oD=(e,t,r)=>t in e?rD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var K=(e,t,r)=>oD(e,typeof t!="symbol"?t+"":t,r);function Sj(e,t){for(var r=0;r<t.length;r++){const o=t[r];if(typeof o!="string"&&!Array.isArray(o)){for(const n in o)if(n!=="default"&&!(n in e)){const a=Object.getOwnPropertyDescriptor(o,n);a&&Object.defineProperty(e,n,a.get?a:{enumerable:!0,get:()=>o[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))o(n);new MutationObserver(n=>{for(const a of n)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function r(n){const a={};return n.integrity&&(a.integrity=n.integrity),n.referrerPolicy&&(a.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?a.credentials="include":n.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(n){if(n.ep)return;n.ep=!0;const a=r(n);fetch(n.href,a)}})();function Bj(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var M0={exports:{}},tu={},q0={exports:{}},dt={};var _5;function nD(){if(_5)return dt;_5=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator;function v(W){return W===null||typeof W!="object"?null:(W=h&&W[h]||W["@@iterator"],typeof W=="function"?W:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,b={};function k(W,L,te){this.props=W,this.context=L,this.refs=b,this.updater=te||y}k.prototype.isReactComponent={},k.prototype.setState=function(W,L){if(typeof W!="object"&&typeof W!="function"&&W!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,W,L,"setState")},k.prototype.forceUpdate=function(W){this.updater.enqueueForceUpdate(this,W,"forceUpdate")};function S(){}S.prototype=k.prototype;function N(W,L,te){this.props=W,this.context=L,this.refs=b,this.updater=te||y}var B=N.prototype=new S;B.constructor=N,x(B,k.prototype),B.isPureReactComponent=!0;var C=Array.isArray,z=Object.prototype.hasOwnProperty,R={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function D(W,L,te){var ue,ne={},ie=null,ge=null;if(L!=null)for(ue in L.ref!==void 0&&(ge=L.ref),L.key!==void 0&&(ie=""+L.key),L)z.call(L,ue)&&!E.hasOwnProperty(ue)&&(ne[ue]=L[ue]);var Te=arguments.length-2;if(Te===1)ne.children=te;else if(1<Te){for(var Ee=Array(Te),Me=0;Me<Te;Me++)Ee[Me]=arguments[Me+2];ne.children=Ee}if(W&&W.defaultProps)for(ue in Te=W.defaultProps,Te)ne[ue]===void 0&&(ne[ue]=Te[ue]);return{$$typeof:e,type:W,key:ie,ref:ge,props:ne,_owner:R.current}}function I(W,L){return{$$typeof:e,type:W.type,key:L,ref:W.ref,props:W.props,_owner:W._owner}}function M(W){return typeof W=="object"&&W!==null&&W.$$typeof===e}function O(W){var L={"=":"=0",":":"=2"};return"$"+W.replace(/[=:]/g,function(te){return L[te]})}var H=/\/+/g;function $(W,L){return typeof W=="object"&&W!==null&&W.key!=null?O(""+W.key):L.toString(36)}function Z(W,L,te,ue,ne){var ie=typeof W;(ie==="undefined"||ie==="boolean")&&(W=null);var ge=!1;if(W===null)ge=!0;else switch(ie){case"string":case"number":ge=!0;break;case"object":switch(W.$$typeof){case e:case t:ge=!0}}if(ge)return ge=W,ne=ne(ge),W=ue===""?"."+$(ge,0):ue,C(ne)?(te="",W!=null&&(te=W.replace(H,"$&/")+"/"),Z(ne,L,te,"",function(Me){return Me})):ne!=null&&(M(ne)&&(ne=I(ne,te+(!ne.key||ge&&ge.key===ne.key?"":(""+ne.key).replace(H,"$&/")+"/")+W)),L.push(ne)),1;if(ge=0,ue=ue===""?".":ue+":",C(W))for(var Te=0;Te<W.length;Te++){ie=W[Te];var Ee=ue+$(ie,Te);ge+=Z(ie,L,te,Ee,ne)}else if(Ee=v(W),typeof Ee=="function")for(W=Ee.call(W),Te=0;!(ie=W.next()).done;)ie=ie.value,Ee=ue+$(ie,Te++),ge+=Z(ie,L,te,Ee,ne);else if(ie==="object")throw L=String(W),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(W).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.");return ge}function q(W,L,te){if(W==null)return W;var ue=[],ne=0;return Z(W,ue,"","",function(ie){return L.call(te,ie,ne++)}),ue}function A(W){if(W._status===-1){var L=W._result;L=L(),L.then(function(te){(W._status===0||W._status===-1)&&(W._status=1,W._result=te)},function(te){(W._status===0||W._status===-1)&&(W._status=2,W._result=te)}),W._status===-1&&(W._status=0,W._result=L)}if(W._status===1)return W._result.default;throw W._result}var X={current:null},V={transition:null},oe={ReactCurrentDispatcher:X,ReactCurrentBatchConfig:V,ReactCurrentOwner:R};function ee(){throw Error("act(...) is not supported in production builds of React.")}return dt.Children={map:q,forEach:function(W,L,te){q(W,function(){L.apply(this,arguments)},te)},count:function(W){var L=0;return q(W,function(){L++}),L},toArray:function(W){return q(W,function(L){return L})||[]},only:function(W){if(!M(W))throw Error("React.Children.only expected to receive a single React element child.");return W}},dt.Component=k,dt.Fragment=r,dt.Profiler=n,dt.PureComponent=N,dt.StrictMode=o,dt.Suspense=d,dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oe,dt.act=ee,dt.cloneElement=function(W,L,te){if(W==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+W+".");var ue=x({},W.props),ne=W.key,ie=W.ref,ge=W._owner;if(L!=null){if(L.ref!==void 0&&(ie=L.ref,ge=R.current),L.key!==void 0&&(ne=""+L.key),W.type&&W.type.defaultProps)var Te=W.type.defaultProps;for(Ee in L)z.call(L,Ee)&&!E.hasOwnProperty(Ee)&&(ue[Ee]=L[Ee]===void 0&&Te!==void 0?Te[Ee]:L[Ee])}var Ee=arguments.length-2;if(Ee===1)ue.children=te;else if(1<Ee){Te=Array(Ee);for(var Me=0;Me<Ee;Me++)Te[Me]=arguments[Me+2];ue.children=Te}return{$$typeof:e,type:W.type,key:ne,ref:ie,props:ue,_owner:ge}},dt.createContext=function(W){return W={$$typeof:i,_currentValue:W,_currentValue2:W,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},W.Provider={$$typeof:a,_context:W},W.Consumer=W},dt.createElement=D,dt.createFactory=function(W){var L=D.bind(null,W);return L.type=W,L},dt.createRef=function(){return{current:null}},dt.forwardRef=function(W){return{$$typeof:l,render:W}},dt.isValidElement=M,dt.lazy=function(W){return{$$typeof:p,_payload:{_status:-1,_result:W},_init:A}},dt.memo=function(W,L){return{$$typeof:f,type:W,compare:L===void 0?null:L}},dt.startTransition=function(W){var L=V.transition;V.transition={};try{W()}finally{V.transition=L}},dt.unstable_act=ee,dt.useCallback=function(W,L){return X.current.useCallback(W,L)},dt.useContext=function(W){return X.current.useContext(W)},dt.useDebugValue=function(){},dt.useDeferredValue=function(W){return X.current.useDeferredValue(W)},dt.useEffect=function(W,L){return X.current.useEffect(W,L)},dt.useId=function(){return X.current.useId()},dt.useImperativeHandle=function(W,L,te){return X.current.useImperativeHandle(W,L,te)},dt.useInsertionEffect=function(W,L){return X.current.useInsertionEffect(W,L)},dt.useLayoutEffect=function(W,L){return X.current.useLayoutEffect(W,L)},dt.useMemo=function(W,L){return X.current.useMemo(W,L)},dt.useReducer=function(W,L,te){return X.current.useReducer(W,L,te)},dt.useRef=function(W){return X.current.useRef(W)},dt.useState=function(W){return X.current.useState(W)},dt.useSyncExternalStore=function(W,L,te){return X.current.useSyncExternalStore(W,L,te)},dt.useTransition=function(){return X.current.useTransition()},dt.version="18.3.1",dt}var R5;function Gm(){return R5||(R5=1,q0.exports=nD()),q0.exports}var D5;function aD(){if(D5)return tu;D5=1;var e=Gm(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(l,d,f){var p,h={},v=null,y=null;f!==void 0&&(v=""+f),d.key!==void 0&&(v=""+d.key),d.ref!==void 0&&(y=d.ref);for(p in d)o.call(d,p)&&!a.hasOwnProperty(p)&&(h[p]=d[p]);if(l&&l.defaultProps)for(p in d=l.defaultProps,d)h[p]===void 0&&(h[p]=d[p]);return{$$typeof:t,type:l,key:v,ref:y,props:h,_owner:n.current}}return tu.Fragment=r,tu.jsx=i,tu.jsxs=i,tu}var E5;function iD(){return E5||(E5=1,M0.exports=aD()),M0.exports}var c=iD();const sD=Bj(c),lD=Sj({__proto__:null,default:sD},[c]);var m=Gm();const Vr=Bj(m),Yp=Sj({__proto__:null,default:Vr},[m]);var Jf={},F0={exports:{}},xo={},I0={exports:{}},A0={};var P5;function cD(){return P5||(P5=1,(function(e){function t(V,oe){var ee=V.length;V.push(oe);e:for(;0<ee;){var W=ee-1>>>1,L=V[W];if(0<n(L,oe))V[W]=oe,V[ee]=L,ee=W;else break e}}function r(V){return V.length===0?null:V[0]}function o(V){if(V.length===0)return null;var oe=V[0],ee=V.pop();if(ee!==oe){V[0]=ee;e:for(var W=0,L=V.length,te=L>>>1;W<te;){var ue=2*(W+1)-1,ne=V[ue],ie=ue+1,ge=V[ie];if(0>n(ne,ee))ie<L&&0>n(ge,ne)?(V[W]=ge,V[ie]=ee,W=ie):(V[W]=ne,V[ue]=ee,W=ue);else if(ie<L&&0>n(ge,ee))V[W]=ge,V[ie]=ee,W=ie;else break e}}return oe}function n(V,oe){var ee=V.sortIndex-oe.sortIndex;return ee!==0?ee:V.id-oe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var d=[],f=[],p=1,h=null,v=3,y=!1,x=!1,b=!1,k=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function B(V){for(var oe=r(f);oe!==null;){if(oe.callback===null)o(f);else if(oe.startTime<=V)o(f),oe.sortIndex=oe.expirationTime,t(d,oe);else break;oe=r(f)}}function C(V){if(b=!1,B(V),!x)if(r(d)!==null)x=!0,A(z);else{var oe=r(f);oe!==null&&X(C,oe.startTime-V)}}function z(V,oe){x=!1,b&&(b=!1,S(D),D=-1),y=!0;var ee=v;try{for(B(oe),h=r(d);h!==null&&(!(h.expirationTime>oe)||V&&!O());){var W=h.callback;if(typeof W=="function"){h.callback=null,v=h.priorityLevel;var L=W(h.expirationTime<=oe);oe=e.unstable_now(),typeof L=="function"?h.callback=L:h===r(d)&&o(d),B(oe)}else o(d);h=r(d)}if(h!==null)var te=!0;else{var ue=r(f);ue!==null&&X(C,ue.startTime-oe),te=!1}return te}finally{h=null,v=ee,y=!1}}var R=!1,E=null,D=-1,I=5,M=-1;function O(){return!(e.unstable_now()-M<I)}function H(){if(E!==null){var V=e.unstable_now();M=V;var oe=!0;try{oe=E(!0,V)}finally{oe?$():(R=!1,E=null)}}else R=!1}var $;if(typeof N=="function")$=function(){N(H)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,q=Z.port2;Z.port1.onmessage=H,$=function(){q.postMessage(null)}}else $=function(){k(H,0)};function A(V){E=V,R||(R=!0,$())}function X(V,oe){D=k(function(){V(e.unstable_now())},oe)}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(V){V.callback=null},e.unstable_continueExecution=function(){x||y||(x=!0,A(z))},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return r(d)},e.unstable_next=function(V){switch(v){case 1:case 2:case 3:var oe=3;break;default:oe=v}var ee=v;v=oe;try{return V()}finally{v=ee}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(V,oe){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var ee=v;v=V;try{return oe()}finally{v=ee}},e.unstable_scheduleCallback=function(V,oe,ee){var W=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?W+ee:W):ee=W,V){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=ee+L,V={id:p++,callback:oe,priorityLevel:V,startTime:ee,expirationTime:L,sortIndex:-1},ee>W?(V.sortIndex=ee,t(f,V),r(d)===null&&V===r(f)&&(b?(S(D),D=-1):b=!0,X(C,ee-W))):(V.sortIndex=L,t(d,V),x||y||(x=!0,A(z))),V},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(V){var oe=v;return function(){var ee=v;v=oe;try{return V.apply(this,arguments)}finally{v=ee}}}})(A0)),A0}var M5;function uD(){return M5||(M5=1,I0.exports=cD()),I0.exports}var q5;function dD(){if(q5)return xo;q5=1;var e=Gm(),t=uD();function r(s){for(var u="https://reactjs.org/docs/error-decoder.html?invariant="+s,g=1;g<arguments.length;g++)u+="&args[]="+encodeURIComponent(arguments[g]);return"Minified React error #"+s+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,n={};function a(s,u){i(s,u),i(s+"Capture",u)}function i(s,u){for(n[s]=u,s=0;s<u.length;s++)o.add(u[s])}var l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function v(s){return d.call(h,s)?!0:d.call(p,s)?!1:f.test(s)?h[s]=!0:(p[s]=!0,!1)}function y(s,u,g,w){if(g!==null&&g.type===0)return!1;switch(typeof u){case"function":case"symbol":return!0;case"boolean":return w?!1:g!==null?!g.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function x(s,u,g,w){if(u===null||typeof u>"u"||y(s,u,g,w))return!0;if(w)return!1;if(g!==null)switch(g.type){case 3:return!u;case 4:return u===!1;case 5:return isNaN(u);case 6:return isNaN(u)||1>u}return!1}function b(s,u,g,w,j,_,P){this.acceptsBooleans=u===2||u===3||u===4,this.attributeName=w,this.attributeNamespace=j,this.mustUseProperty=g,this.propertyName=s,this.type=u,this.sanitizeURL=_,this.removeEmptyString=P}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){k[s]=new b(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var u=s[0];k[u]=new b(u,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){k[s]=new b(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){k[s]=new b(s,2,!1,s,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(s){k[s]=new b(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){k[s]=new b(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){k[s]=new b(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){k[s]=new b(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){k[s]=new b(s,5,!1,s.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function N(s){return s[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(s){var u=s.replace(S,N);k[u]=new b(u,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var u=s.replace(S,N);k[u]=new b(u,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var u=s.replace(S,N);k[u]=new b(u,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){k[s]=new b(s,1,!1,s.toLowerCase(),null,!1,!1)}),k.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){k[s]=new b(s,1,!1,s.toLowerCase(),null,!0,!0)});function B(s,u,g,w){var j=k.hasOwnProperty(u)?k[u]:null;(j!==null?j.type!==0:w||!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(x(u,g,j,w)&&(g=null),w||j===null?v(u)&&(g===null?s.removeAttribute(u):s.setAttribute(u,""+g)):j.mustUseProperty?s[j.propertyName]=g===null?j.type===3?!1:"":g:(u=j.attributeName,w=j.attributeNamespace,g===null?s.removeAttribute(u):(j=j.type,g=j===3||j===4&&g===!0?"":""+g,w?s.setAttributeNS(w,u,g):s.setAttribute(u,g))))}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,z=Symbol.for("react.element"),R=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),O=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),X=Symbol.for("react.offscreen"),V=Symbol.iterator;function oe(s){return s===null||typeof s!="object"?null:(s=V&&s[V]||s["@@iterator"],typeof s=="function"?s:null)}var ee=Object.assign,W;function L(s){if(W===void 0)try{throw Error()}catch(g){var u=g.stack.trim().match(/\n( *(at )?)/);W=u&&u[1]||""}return`
3
+ `+W+s}var te=!1;function ue(s,u){if(!s||te)return"";te=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(u)if(u=function(){throw Error()},Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(le){var w=le}Reflect.construct(s,[],u)}else{try{u.call()}catch(le){w=le}s.call(u.prototype)}else{try{throw Error()}catch(le){w=le}s()}}catch(le){if(le&&w&&typeof le.stack=="string"){for(var j=le.stack.split(`
4
+ `),_=w.stack.split(`
5
+ `),P=j.length-1,U=_.length-1;1<=P&&0<=U&&j[P]!==_[U];)U--;for(;1<=P&&0<=U;P--,U--)if(j[P]!==_[U]){if(P!==1||U!==1)do if(P--,U--,0>U||j[P]!==_[U]){var Q=`
6
+ `+j[P].replace(" at new "," at ");return s.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",s.displayName)),Q}while(1<=P&&0<=U);break}}}finally{te=!1,Error.prepareStackTrace=g}return(s=s?s.displayName||s.name:"")?L(s):""}function ne(s){switch(s.tag){case 5:return L(s.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return s=ue(s.type,!1),s;case 11:return s=ue(s.type.render,!1),s;case 1:return s=ue(s.type,!0),s;default:return""}}function ie(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case E:return"Fragment";case R:return"Portal";case I:return"Profiler";case D:return"StrictMode";case $:return"Suspense";case Z:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case O:return(s.displayName||"Context")+".Consumer";case M:return(s._context.displayName||"Context")+".Provider";case H:var u=s.render;return s=s.displayName,s||(s=u.displayName||u.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case q:return u=s.displayName||null,u!==null?u:ie(s.type)||"Memo";case A:u=s._payload,s=s._init;try{return ie(s(u))}catch{}}return null}function ge(s){var u=s.type;switch(s.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=u.render,s=s.displayName||s.name||"",u.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ie(u);case 8:return u===D?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function Te(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Ee(s){var u=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function Me(s){var u=Ee(s)?"checked":"value",g=Object.getOwnPropertyDescriptor(s.constructor.prototype,u),w=""+s[u];if(!s.hasOwnProperty(u)&&typeof g<"u"&&typeof g.get=="function"&&typeof g.set=="function"){var j=g.get,_=g.set;return Object.defineProperty(s,u,{configurable:!0,get:function(){return j.call(this)},set:function(P){w=""+P,_.call(this,P)}}),Object.defineProperty(s,u,{enumerable:g.enumerable}),{getValue:function(){return w},setValue:function(P){w=""+P},stopTracking:function(){s._valueTracker=null,delete s[u]}}}}function lt(s){s._valueTracker||(s._valueTracker=Me(s))}function ht(s){if(!s)return!1;var u=s._valueTracker;if(!u)return!0;var g=u.getValue(),w="";return s&&(w=Ee(s)?s.checked?"true":"false":s.value),s=w,s!==g?(u.setValue(s),!0):!1}function xt(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function vt(s,u){var g=u.checked;return ee({},u,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:g??s._wrapperState.initialChecked})}function Qt(s,u){var g=u.defaultValue==null?"":u.defaultValue,w=u.checked!=null?u.checked:u.defaultChecked;g=Te(u.value!=null?u.value:g),s._wrapperState={initialChecked:w,initialValue:g,controlled:u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null}}function pt(s,u){u=u.checked,u!=null&&B(s,"checked",u,!1)}function Mt(s,u){pt(s,u);var g=Te(u.value),w=u.type;if(g!=null)w==="number"?(g===0&&s.value===""||s.value!=g)&&(s.value=""+g):s.value!==""+g&&(s.value=""+g);else if(w==="submit"||w==="reset"){s.removeAttribute("value");return}u.hasOwnProperty("value")?vr(s,u.type,g):u.hasOwnProperty("defaultValue")&&vr(s,u.type,Te(u.defaultValue)),u.checked==null&&u.defaultChecked!=null&&(s.defaultChecked=!!u.defaultChecked)}function hr(s,u,g){if(u.hasOwnProperty("value")||u.hasOwnProperty("defaultValue")){var w=u.type;if(!(w!=="submit"&&w!=="reset"||u.value!==void 0&&u.value!==null))return;u=""+s._wrapperState.initialValue,g||u===s.value||(s.value=u),s.defaultValue=u}g=s.name,g!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,g!==""&&(s.name=g)}function vr(s,u,g){(u!=="number"||xt(s.ownerDocument)!==s)&&(g==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+g&&(s.defaultValue=""+g))}var ot=Array.isArray;function zt(s,u,g,w){if(s=s.options,u){u={};for(var j=0;j<g.length;j++)u["$"+g[j]]=!0;for(g=0;g<s.length;g++)j=u.hasOwnProperty("$"+s[g].value),s[g].selected!==j&&(s[g].selected=j),j&&w&&(s[g].defaultSelected=!0)}else{for(g=""+Te(g),u=null,j=0;j<s.length;j++){if(s[j].value===g){s[j].selected=!0,w&&(s[j].defaultSelected=!0);return}u!==null||s[j].disabled||(u=s[j])}u!==null&&(u.selected=!0)}}function ur(s,u){if(u.dangerouslySetInnerHTML!=null)throw Error(r(91));return ee({},u,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function po(s,u){var g=u.value;if(g==null){if(g=u.children,u=u.defaultValue,g!=null){if(u!=null)throw Error(r(92));if(ot(g)){if(1<g.length)throw Error(r(93));g=g[0]}u=g}u==null&&(u=""),g=u}s._wrapperState={initialValue:Te(g)}}function Gr(s,u){var g=Te(u.value),w=Te(u.defaultValue);g!=null&&(g=""+g,g!==s.value&&(s.value=g),u.defaultValue==null&&s.defaultValue!==g&&(s.defaultValue=g)),w!=null&&(s.defaultValue=""+w)}function vn(s){var u=s.textContent;u===s._wrapperState.initialValue&&u!==""&&u!==null&&(s.value=u)}function mo(s){switch(s){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Nr(s,u){return s==null||s==="http://www.w3.org/1999/xhtml"?mo(u):s==="http://www.w3.org/2000/svg"&&u==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var Sr,Zr=(function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(u,g,w,j){MSApp.execUnsafeLocalFunction(function(){return s(u,g,w,j)})}:s})(function(s,u){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=u;else{for(Sr=Sr||document.createElement("div"),Sr.innerHTML="<svg>"+u.valueOf().toString()+"</svg>",u=Sr.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;u.firstChild;)s.appendChild(u.firstChild)}});function Ar(s,u){if(u){var g=s.firstChild;if(g&&g===s.lastChild&&g.nodeType===3){g.nodeValue=u;return}}s.textContent=u}var er={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Uo=["Webkit","ms","Moz","O"];Object.keys(er).forEach(function(s){Uo.forEach(function(u){u=u+s.charAt(0).toUpperCase()+s.substring(1),er[u]=er[s]})});function bn(s,u,g){return u==null||typeof u=="boolean"||u===""?"":g||typeof u!="number"||u===0||er.hasOwnProperty(s)&&er[s]?(""+u).trim():u+"px"}function Ce(s,u){s=s.style;for(var g in u)if(u.hasOwnProperty(g)){var w=g.indexOf("--")===0,j=bn(g,u[g],w);g==="float"&&(g="cssFloat"),w?s.setProperty(g,j):s[g]=j}}var _e=ee({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function We(s,u){if(u){if(_e[s]&&(u.children!=null||u.dangerouslySetInnerHTML!=null))throw Error(r(137,s));if(u.dangerouslySetInnerHTML!=null){if(u.children!=null)throw Error(r(60));if(typeof u.dangerouslySetInnerHTML!="object"||!("__html"in u.dangerouslySetInnerHTML))throw Error(r(61))}if(u.style!=null&&typeof u.style!="object")throw Error(r(62))}}function Je(s,u){if(s.indexOf("-")===-1)return typeof u.is=="string";switch(s){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wt=null;function Ke(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Wt=null,Ne=null,Ze=null;function ut(s){if(s=Oc(s)){if(typeof Wt!="function")throw Error(r(280));var u=s.stateNode;u&&(u=pf(u),Wt(s.stateNode,s.type,u))}}function Rt(s){Ne?Ze?Ze.push(s):Ze=[s]:Ne=s}function tr(){if(Ne){var s=Ne,u=Ze;if(Ze=Ne=null,ut(s),u)for(s=0;s<u.length;s++)ut(u[s])}}function ze(s,u){return s(u)}function je(){}var He=!1;function jt(s,u,g){if(He)return s(u,g);He=!0;try{return ze(s,u,g)}finally{He=!1,(Ne!==null||Ze!==null)&&(je(),tr())}}function Qe(s,u){var g=s.stateNode;if(g===null)return null;var w=pf(g);if(w===null)return null;g=w[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(w=!w.disabled)||(s=s.type,w=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!w;break e;default:s=!1}if(s)return null;if(g&&typeof g!="function")throw Error(r(231,u,typeof g));return g}var rr=!1;if(l)try{var Ut={};Object.defineProperty(Ut,"passive",{get:function(){rr=!0}}),window.addEventListener("test",Ut,Ut),window.removeEventListener("test",Ut,Ut)}catch{rr=!1}function Er(s,u,g,w,j,_,P,U,Q){var le=Array.prototype.slice.call(arguments,3);try{u.apply(g,le)}catch(ye){this.onError(ye)}}var Or=!1,br=null,yr=!1,yn=null,Go={onError:function(s){Or=!0,br=s}};function eh(s,u,g,w,j,_,P,U,Q){Or=!1,br=null,Er.apply(Go,arguments)}function d9(s,u,g,w,j,_,P,U,Q){if(eh.apply(this,arguments),Or){if(Or){var le=br;Or=!1,br=null}else throw Error(r(198));yr||(yr=!0,yn=le)}}function Xi(s){var u=s,g=s;if(s.alternate)for(;u.return;)u=u.return;else{s=u;do u=s,(u.flags&4098)!==0&&(g=u.return),s=u.return;while(s)}return u.tag===3?g:null}function Qx(s){if(s.tag===13){var u=s.memoizedState;if(u===null&&(s=s.alternate,s!==null&&(u=s.memoizedState)),u!==null)return u.dehydrated}return null}function ew(s){if(Xi(s)!==s)throw Error(r(188))}function f9(s){var u=s.alternate;if(!u){if(u=Xi(s),u===null)throw Error(r(188));return u!==s?null:s}for(var g=s,w=u;;){var j=g.return;if(j===null)break;var _=j.alternate;if(_===null){if(w=j.return,w!==null){g=w;continue}break}if(j.child===_.child){for(_=j.child;_;){if(_===g)return ew(j),s;if(_===w)return ew(j),u;_=_.sibling}throw Error(r(188))}if(g.return!==w.return)g=j,w=_;else{for(var P=!1,U=j.child;U;){if(U===g){P=!0,g=j,w=_;break}if(U===w){P=!0,w=j,g=_;break}U=U.sibling}if(!P){for(U=_.child;U;){if(U===g){P=!0,g=_,w=j;break}if(U===w){P=!0,w=_,g=j;break}U=U.sibling}if(!P)throw Error(r(189))}}if(g.alternate!==w)throw Error(r(190))}if(g.tag!==3)throw Error(r(188));return g.stateNode.current===g?s:u}function tw(s){return s=f9(s),s!==null?rw(s):null}function rw(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var u=rw(s);if(u!==null)return u;s=s.sibling}return null}var ow=t.unstable_scheduleCallback,nw=t.unstable_cancelCallback,p9=t.unstable_shouldYield,m9=t.unstable_requestPaint,xr=t.unstable_now,g9=t.unstable_getCurrentPriorityLevel,th=t.unstable_ImmediatePriority,aw=t.unstable_UserBlockingPriority,Ud=t.unstable_NormalPriority,h9=t.unstable_LowPriority,iw=t.unstable_IdlePriority,Gd=null,Kn=null;function v9(s){if(Kn&&typeof Kn.onCommitFiberRoot=="function")try{Kn.onCommitFiberRoot(Gd,s,void 0,(s.current.flags&128)===128)}catch{}}var xn=Math.clz32?Math.clz32:x9,b9=Math.log,y9=Math.LN2;function x9(s){return s>>>=0,s===0?32:31-(b9(s)/y9|0)|0}var Zd=64,Kd=4194304;function kc(s){switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function Xd(s,u){var g=s.pendingLanes;if(g===0)return 0;var w=0,j=s.suspendedLanes,_=s.pingedLanes,P=g&268435455;if(P!==0){var U=P&~j;U!==0?w=kc(U):(_&=P,_!==0&&(w=kc(_)))}else P=g&~j,P!==0?w=kc(P):_!==0&&(w=kc(_));if(w===0)return 0;if(u!==0&&u!==w&&(u&j)===0&&(j=w&-w,_=u&-u,j>=_||j===16&&(_&4194240)!==0))return u;if((w&4)!==0&&(w|=g&16),u=s.entangledLanes,u!==0)for(s=s.entanglements,u&=w;0<u;)g=31-xn(u),j=1<<g,w|=s[g],u&=~j;return w}function w9(s,u){switch(s){case 1:case 2:case 4:return u+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function k9(s,u){for(var g=s.suspendedLanes,w=s.pingedLanes,j=s.expirationTimes,_=s.pendingLanes;0<_;){var P=31-xn(_),U=1<<P,Q=j[P];Q===-1?((U&g)===0||(U&w)!==0)&&(j[P]=w9(U,u)):Q<=u&&(s.expiredLanes|=U),_&=~U}}function rh(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function sw(){var s=Zd;return Zd<<=1,(Zd&4194240)===0&&(Zd=64),s}function oh(s){for(var u=[],g=0;31>g;g++)u.push(s);return u}function Sc(s,u,g){s.pendingLanes|=u,u!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,u=31-xn(u),s[u]=g}function S9(s,u){var g=s.pendingLanes&~u;s.pendingLanes=u,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=u,s.mutableReadLanes&=u,s.entangledLanes&=u,u=s.entanglements;var w=s.eventTimes;for(s=s.expirationTimes;0<g;){var j=31-xn(g),_=1<<j;u[j]=0,w[j]=-1,s[j]=-1,g&=~_}}function nh(s,u){var g=s.entangledLanes|=u;for(s=s.entanglements;g;){var w=31-xn(g),j=1<<w;j&u|s[w]&u&&(s[w]|=u),g&=~j}}var Dt=0;function lw(s){return s&=-s,1<s?4<s?(s&268435455)!==0?16:536870912:4:1}var cw,ah,uw,dw,fw,ih=!1,Yd=[],ei=null,ti=null,ri=null,Bc=new Map,jc=new Map,oi=[],B9="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pw(s,u){switch(s){case"focusin":case"focusout":ei=null;break;case"dragenter":case"dragleave":ti=null;break;case"mouseover":case"mouseout":ri=null;break;case"pointerover":case"pointerout":Bc.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":jc.delete(u.pointerId)}}function Cc(s,u,g,w,j,_){return s===null||s.nativeEvent!==_?(s={blockedOn:u,domEventName:g,eventSystemFlags:w,nativeEvent:_,targetContainers:[j]},u!==null&&(u=Oc(u),u!==null&&ah(u)),s):(s.eventSystemFlags|=w,u=s.targetContainers,j!==null&&u.indexOf(j)===-1&&u.push(j),s)}function j9(s,u,g,w,j){switch(u){case"focusin":return ei=Cc(ei,s,u,g,w,j),!0;case"dragenter":return ti=Cc(ti,s,u,g,w,j),!0;case"mouseover":return ri=Cc(ri,s,u,g,w,j),!0;case"pointerover":var _=j.pointerId;return Bc.set(_,Cc(Bc.get(_)||null,s,u,g,w,j)),!0;case"gotpointercapture":return _=j.pointerId,jc.set(_,Cc(jc.get(_)||null,s,u,g,w,j)),!0}return!1}function mw(s){var u=Yi(s.target);if(u!==null){var g=Xi(u);if(g!==null){if(u=g.tag,u===13){if(u=Qx(g),u!==null){s.blockedOn=u,fw(s.priority,function(){uw(g)});return}}else if(u===3&&g.stateNode.current.memoizedState.isDehydrated){s.blockedOn=g.tag===3?g.stateNode.containerInfo:null;return}}}s.blockedOn=null}function Jd(s){if(s.blockedOn!==null)return!1;for(var u=s.targetContainers;0<u.length;){var g=lh(s.domEventName,s.eventSystemFlags,u[0],s.nativeEvent);if(g===null){g=s.nativeEvent;var w=new g.constructor(g.type,g);wt=w,g.target.dispatchEvent(w),wt=null}else return u=Oc(g),u!==null&&ah(u),s.blockedOn=g,!1;u.shift()}return!0}function gw(s,u,g){Jd(s)&&g.delete(u)}function C9(){ih=!1,ei!==null&&Jd(ei)&&(ei=null),ti!==null&&Jd(ti)&&(ti=null),ri!==null&&Jd(ri)&&(ri=null),Bc.forEach(gw),jc.forEach(gw)}function Nc(s,u){s.blockedOn===u&&(s.blockedOn=null,ih||(ih=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,C9)))}function zc(s){function u(j){return Nc(j,s)}if(0<Yd.length){Nc(Yd[0],s);for(var g=1;g<Yd.length;g++){var w=Yd[g];w.blockedOn===s&&(w.blockedOn=null)}}for(ei!==null&&Nc(ei,s),ti!==null&&Nc(ti,s),ri!==null&&Nc(ri,s),Bc.forEach(u),jc.forEach(u),g=0;g<oi.length;g++)w=oi[g],w.blockedOn===s&&(w.blockedOn=null);for(;0<oi.length&&(g=oi[0],g.blockedOn===null);)mw(g),g.blockedOn===null&&oi.shift()}var Ls=C.ReactCurrentBatchConfig,Qd=!0;function N9(s,u,g,w){var j=Dt,_=Ls.transition;Ls.transition=null;try{Dt=1,sh(s,u,g,w)}finally{Dt=j,Ls.transition=_}}function z9(s,u,g,w){var j=Dt,_=Ls.transition;Ls.transition=null;try{Dt=4,sh(s,u,g,w)}finally{Dt=j,Ls.transition=_}}function sh(s,u,g,w){if(Qd){var j=lh(s,u,g,w);if(j===null)jh(s,u,w,ef,g),pw(s,w);else if(j9(j,s,u,g,w))w.stopPropagation();else if(pw(s,w),u&4&&-1<B9.indexOf(s)){for(;j!==null;){var _=Oc(j);if(_!==null&&cw(_),_=lh(s,u,g,w),_===null&&jh(s,u,w,ef,g),_===j)break;j=_}j!==null&&w.stopPropagation()}else jh(s,u,w,null,g)}}var ef=null;function lh(s,u,g,w){if(ef=null,s=Ke(w),s=Yi(s),s!==null)if(u=Xi(s),u===null)s=null;else if(g=u.tag,g===13){if(s=Qx(u),s!==null)return s;s=null}else if(g===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;s=null}else u!==s&&(s=null);return ef=s,null}function hw(s){switch(s){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(g9()){case th:return 1;case aw:return 4;case Ud:case h9:return 16;case iw:return 536870912;default:return 16}default:return 16}}var ni=null,ch=null,tf=null;function vw(){if(tf)return tf;var s,u=ch,g=u.length,w,j="value"in ni?ni.value:ni.textContent,_=j.length;for(s=0;s<g&&u[s]===j[s];s++);var P=g-s;for(w=1;w<=P&&u[g-w]===j[_-w];w++);return tf=j.slice(s,1<w?1-w:void 0)}function rf(s){var u=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&u===13&&(s=13)):s=u,s===10&&(s=13),32<=s||s===13?s:0}function of(){return!0}function bw(){return!1}function Ro(s){function u(g,w,j,_,P){this._reactName=g,this._targetInst=j,this.type=w,this.nativeEvent=_,this.target=P,this.currentTarget=null;for(var U in s)s.hasOwnProperty(U)&&(g=s[U],this[U]=g?g(_):_[U]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?of:bw,this.isPropagationStopped=bw,this}return ee(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var g=this.nativeEvent;g&&(g.preventDefault?g.preventDefault():typeof g.returnValue!="unknown"&&(g.returnValue=!1),this.isDefaultPrevented=of)},stopPropagation:function(){var g=this.nativeEvent;g&&(g.stopPropagation?g.stopPropagation():typeof g.cancelBubble!="unknown"&&(g.cancelBubble=!0),this.isPropagationStopped=of)},persist:function(){},isPersistent:of}),u}var $s={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},uh=Ro($s),Tc=ee({},$s,{view:0,detail:0}),T9=Ro(Tc),dh,fh,_c,nf=ee({},Tc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mh,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==_c&&(_c&&s.type==="mousemove"?(dh=s.screenX-_c.screenX,fh=s.screenY-_c.screenY):fh=dh=0,_c=s),dh)},movementY:function(s){return"movementY"in s?s.movementY:fh}}),yw=Ro(nf),_9=ee({},nf,{dataTransfer:0}),R9=Ro(_9),D9=ee({},Tc,{relatedTarget:0}),ph=Ro(D9),E9=ee({},$s,{animationName:0,elapsedTime:0,pseudoElement:0}),P9=Ro(E9),M9=ee({},$s,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),q9=Ro(M9),F9=ee({},$s,{data:0}),xw=Ro(F9),I9={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},A9={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},O9={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function L9(s){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(s):(s=O9[s])?!!u[s]:!1}function mh(){return L9}var $9=ee({},Tc,{key:function(s){if(s.key){var u=I9[s.key]||s.key;if(u!=="Unidentified")return u}return s.type==="keypress"?(s=rf(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?A9[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mh,charCode:function(s){return s.type==="keypress"?rf(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?rf(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),H9=Ro($9),V9=ee({},nf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ww=Ro(V9),W9=ee({},Tc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mh}),U9=Ro(W9),G9=ee({},$s,{propertyName:0,elapsedTime:0,pseudoElement:0}),Z9=Ro(G9),K9=ee({},nf,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),X9=Ro(K9),Y9=[9,13,27,32],gh=l&&"CompositionEvent"in window,Rc=null;l&&"documentMode"in document&&(Rc=document.documentMode);var J9=l&&"TextEvent"in window&&!Rc,kw=l&&(!gh||Rc&&8<Rc&&11>=Rc),Sw=" ",Bw=!1;function jw(s,u){switch(s){case"keyup":return Y9.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cw(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Hs=!1;function Q9(s,u){switch(s){case"compositionend":return Cw(u);case"keypress":return u.which!==32?null:(Bw=!0,Sw);case"textInput":return s=u.data,s===Sw&&Bw?null:s;default:return null}}function eR(s,u){if(Hs)return s==="compositionend"||!gh&&jw(s,u)?(s=vw(),tf=ch=ni=null,Hs=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return kw&&u.locale!=="ko"?null:u.data;default:return null}}var tR={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Nw(s){var u=s&&s.nodeName&&s.nodeName.toLowerCase();return u==="input"?!!tR[s.type]:u==="textarea"}function zw(s,u,g,w){Rt(w),u=uf(u,"onChange"),0<u.length&&(g=new uh("onChange","change",null,g,w),s.push({event:g,listeners:u}))}var Dc=null,Ec=null;function rR(s){Uw(s,0)}function af(s){var u=Zs(s);if(ht(u))return s}function oR(s,u){if(s==="change")return u}var Tw=!1;if(l){var hh;if(l){var vh="oninput"in document;if(!vh){var _w=document.createElement("div");_w.setAttribute("oninput","return;"),vh=typeof _w.oninput=="function"}hh=vh}else hh=!1;Tw=hh&&(!document.documentMode||9<document.documentMode)}function Rw(){Dc&&(Dc.detachEvent("onpropertychange",Dw),Ec=Dc=null)}function Dw(s){if(s.propertyName==="value"&&af(Ec)){var u=[];zw(u,Ec,s,Ke(s)),jt(rR,u)}}function nR(s,u,g){s==="focusin"?(Rw(),Dc=u,Ec=g,Dc.attachEvent("onpropertychange",Dw)):s==="focusout"&&Rw()}function aR(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return af(Ec)}function iR(s,u){if(s==="click")return af(u)}function sR(s,u){if(s==="input"||s==="change")return af(u)}function lR(s,u){return s===u&&(s!==0||1/s===1/u)||s!==s&&u!==u}var wn=typeof Object.is=="function"?Object.is:lR;function Pc(s,u){if(wn(s,u))return!0;if(typeof s!="object"||s===null||typeof u!="object"||u===null)return!1;var g=Object.keys(s),w=Object.keys(u);if(g.length!==w.length)return!1;for(w=0;w<g.length;w++){var j=g[w];if(!d.call(u,j)||!wn(s[j],u[j]))return!1}return!0}function Ew(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function Pw(s,u){var g=Ew(s);s=0;for(var w;g;){if(g.nodeType===3){if(w=s+g.textContent.length,s<=u&&w>=u)return{node:g,offset:u-s};s=w}e:{for(;g;){if(g.nextSibling){g=g.nextSibling;break e}g=g.parentNode}g=void 0}g=Ew(g)}}function Mw(s,u){return s&&u?s===u?!0:s&&s.nodeType===3?!1:u&&u.nodeType===3?Mw(s,u.parentNode):"contains"in s?s.contains(u):s.compareDocumentPosition?!!(s.compareDocumentPosition(u)&16):!1:!1}function qw(){for(var s=window,u=xt();u instanceof s.HTMLIFrameElement;){try{var g=typeof u.contentWindow.location.href=="string"}catch{g=!1}if(g)s=u.contentWindow;else break;u=xt(s.document)}return u}function bh(s){var u=s&&s.nodeName&&s.nodeName.toLowerCase();return u&&(u==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||u==="textarea"||s.contentEditable==="true")}function cR(s){var u=qw(),g=s.focusedElem,w=s.selectionRange;if(u!==g&&g&&g.ownerDocument&&Mw(g.ownerDocument.documentElement,g)){if(w!==null&&bh(g)){if(u=w.start,s=w.end,s===void 0&&(s=u),"selectionStart"in g)g.selectionStart=u,g.selectionEnd=Math.min(s,g.value.length);else if(s=(u=g.ownerDocument||document)&&u.defaultView||window,s.getSelection){s=s.getSelection();var j=g.textContent.length,_=Math.min(w.start,j);w=w.end===void 0?_:Math.min(w.end,j),!s.extend&&_>w&&(j=w,w=_,_=j),j=Pw(g,_);var P=Pw(g,w);j&&P&&(s.rangeCount!==1||s.anchorNode!==j.node||s.anchorOffset!==j.offset||s.focusNode!==P.node||s.focusOffset!==P.offset)&&(u=u.createRange(),u.setStart(j.node,j.offset),s.removeAllRanges(),_>w?(s.addRange(u),s.extend(P.node,P.offset)):(u.setEnd(P.node,P.offset),s.addRange(u)))}}for(u=[],s=g;s=s.parentNode;)s.nodeType===1&&u.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<u.length;g++)s=u[g],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var uR=l&&"documentMode"in document&&11>=document.documentMode,Vs=null,yh=null,Mc=null,xh=!1;function Fw(s,u,g){var w=g.window===g?g.document:g.nodeType===9?g:g.ownerDocument;xh||Vs==null||Vs!==xt(w)||(w=Vs,"selectionStart"in w&&bh(w)?w={start:w.selectionStart,end:w.selectionEnd}:(w=(w.ownerDocument&&w.ownerDocument.defaultView||window).getSelection(),w={anchorNode:w.anchorNode,anchorOffset:w.anchorOffset,focusNode:w.focusNode,focusOffset:w.focusOffset}),Mc&&Pc(Mc,w)||(Mc=w,w=uf(yh,"onSelect"),0<w.length&&(u=new uh("onSelect","select",null,u,g),s.push({event:u,listeners:w}),u.target=Vs)))}function sf(s,u){var g={};return g[s.toLowerCase()]=u.toLowerCase(),g["Webkit"+s]="webkit"+u,g["Moz"+s]="moz"+u,g}var Ws={animationend:sf("Animation","AnimationEnd"),animationiteration:sf("Animation","AnimationIteration"),animationstart:sf("Animation","AnimationStart"),transitionend:sf("Transition","TransitionEnd")},wh={},Iw={};l&&(Iw=document.createElement("div").style,"AnimationEvent"in window||(delete Ws.animationend.animation,delete Ws.animationiteration.animation,delete Ws.animationstart.animation),"TransitionEvent"in window||delete Ws.transitionend.transition);function lf(s){if(wh[s])return wh[s];if(!Ws[s])return s;var u=Ws[s],g;for(g in u)if(u.hasOwnProperty(g)&&g in Iw)return wh[s]=u[g];return s}var Aw=lf("animationend"),Ow=lf("animationiteration"),Lw=lf("animationstart"),$w=lf("transitionend"),Hw=new Map,Vw="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ai(s,u){Hw.set(s,u),a(u,[s])}for(var kh=0;kh<Vw.length;kh++){var Sh=Vw[kh],dR=Sh.toLowerCase(),fR=Sh[0].toUpperCase()+Sh.slice(1);ai(dR,"on"+fR)}ai(Aw,"onAnimationEnd"),ai(Ow,"onAnimationIteration"),ai(Lw,"onAnimationStart"),ai("dblclick","onDoubleClick"),ai("focusin","onFocus"),ai("focusout","onBlur"),ai($w,"onTransitionEnd"),i("onMouseEnter",["mouseout","mouseover"]),i("onMouseLeave",["mouseout","mouseover"]),i("onPointerEnter",["pointerout","pointerover"]),i("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),pR=new Set("cancel close invalid load scroll toggle".split(" ").concat(qc));function Ww(s,u,g){var w=s.type||"unknown-event";s.currentTarget=g,d9(w,u,void 0,s),s.currentTarget=null}function Uw(s,u){u=(u&4)!==0;for(var g=0;g<s.length;g++){var w=s[g],j=w.event;w=w.listeners;e:{var _=void 0;if(u)for(var P=w.length-1;0<=P;P--){var U=w[P],Q=U.instance,le=U.currentTarget;if(U=U.listener,Q!==_&&j.isPropagationStopped())break e;Ww(j,U,le),_=Q}else for(P=0;P<w.length;P++){if(U=w[P],Q=U.instance,le=U.currentTarget,U=U.listener,Q!==_&&j.isPropagationStopped())break e;Ww(j,U,le),_=Q}}}if(yr)throw s=yn,yr=!1,yn=null,s}function Gt(s,u){var g=u[Rh];g===void 0&&(g=u[Rh]=new Set);var w=s+"__bubble";g.has(w)||(Gw(u,s,2,!1),g.add(w))}function Bh(s,u,g){var w=0;u&&(w|=4),Gw(g,s,w,u)}var cf="_reactListening"+Math.random().toString(36).slice(2);function Fc(s){if(!s[cf]){s[cf]=!0,o.forEach(function(g){g!=="selectionchange"&&(pR.has(g)||Bh(g,!1,s),Bh(g,!0,s))});var u=s.nodeType===9?s:s.ownerDocument;u===null||u[cf]||(u[cf]=!0,Bh("selectionchange",!1,u))}}function Gw(s,u,g,w){switch(hw(u)){case 1:var j=N9;break;case 4:j=z9;break;default:j=sh}g=j.bind(null,u,g,s),j=void 0,!rr||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(j=!0),w?j!==void 0?s.addEventListener(u,g,{capture:!0,passive:j}):s.addEventListener(u,g,!0):j!==void 0?s.addEventListener(u,g,{passive:j}):s.addEventListener(u,g,!1)}function jh(s,u,g,w,j){var _=w;if((u&1)===0&&(u&2)===0&&w!==null)e:for(;;){if(w===null)return;var P=w.tag;if(P===3||P===4){var U=w.stateNode.containerInfo;if(U===j||U.nodeType===8&&U.parentNode===j)break;if(P===4)for(P=w.return;P!==null;){var Q=P.tag;if((Q===3||Q===4)&&(Q=P.stateNode.containerInfo,Q===j||Q.nodeType===8&&Q.parentNode===j))return;P=P.return}for(;U!==null;){if(P=Yi(U),P===null)return;if(Q=P.tag,Q===5||Q===6){w=_=P;continue e}U=U.parentNode}}w=w.return}jt(function(){var le=_,ye=Ke(g),we=[];e:{var ve=Hw.get(s);if(ve!==void 0){var De=uh,Fe=s;switch(s){case"keypress":if(rf(g)===0)break e;case"keydown":case"keyup":De=H9;break;case"focusin":Fe="focus",De=ph;break;case"focusout":Fe="blur",De=ph;break;case"beforeblur":case"afterblur":De=ph;break;case"click":if(g.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":De=yw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":De=R9;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":De=U9;break;case Aw:case Ow:case Lw:De=P9;break;case $w:De=Z9;break;case"scroll":De=T9;break;case"wheel":De=X9;break;case"copy":case"cut":case"paste":De=q9;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":De=ww}var Ae=(u&4)!==0,wr=!Ae&&s==="scroll",ae=Ae?ve!==null?ve+"Capture":null:ve;Ae=[];for(var re=le,se;re!==null;){se=re;var Se=se.stateNode;if(se.tag===5&&Se!==null&&(se=Se,ae!==null&&(Se=Qe(re,ae),Se!=null&&Ae.push(Ic(re,Se,se)))),wr)break;re=re.return}0<Ae.length&&(ve=new De(ve,Fe,null,g,ye),we.push({event:ve,listeners:Ae}))}}if((u&7)===0){e:{if(ve=s==="mouseover"||s==="pointerover",De=s==="mouseout"||s==="pointerout",ve&&g!==wt&&(Fe=g.relatedTarget||g.fromElement)&&(Yi(Fe)||Fe[va]))break e;if((De||ve)&&(ve=ye.window===ye?ye:(ve=ye.ownerDocument)?ve.defaultView||ve.parentWindow:window,De?(Fe=g.relatedTarget||g.toElement,De=le,Fe=Fe?Yi(Fe):null,Fe!==null&&(wr=Xi(Fe),Fe!==wr||Fe.tag!==5&&Fe.tag!==6)&&(Fe=null)):(De=null,Fe=le),De!==Fe)){if(Ae=yw,Se="onMouseLeave",ae="onMouseEnter",re="mouse",(s==="pointerout"||s==="pointerover")&&(Ae=ww,Se="onPointerLeave",ae="onPointerEnter",re="pointer"),wr=De==null?ve:Zs(De),se=Fe==null?ve:Zs(Fe),ve=new Ae(Se,re+"leave",De,g,ye),ve.target=wr,ve.relatedTarget=se,Se=null,Yi(ye)===le&&(Ae=new Ae(ae,re+"enter",Fe,g,ye),Ae.target=se,Ae.relatedTarget=wr,Se=Ae),wr=Se,De&&Fe)t:{for(Ae=De,ae=Fe,re=0,se=Ae;se;se=Us(se))re++;for(se=0,Se=ae;Se;Se=Us(Se))se++;for(;0<re-se;)Ae=Us(Ae),re--;for(;0<se-re;)ae=Us(ae),se--;for(;re--;){if(Ae===ae||ae!==null&&Ae===ae.alternate)break t;Ae=Us(Ae),ae=Us(ae)}Ae=null}else Ae=null;De!==null&&Zw(we,ve,De,Ae,!1),Fe!==null&&wr!==null&&Zw(we,wr,Fe,Ae,!0)}}e:{if(ve=le?Zs(le):window,De=ve.nodeName&&ve.nodeName.toLowerCase(),De==="select"||De==="input"&&ve.type==="file")var Oe=oR;else if(Nw(ve))if(Tw)Oe=sR;else{Oe=aR;var Xe=nR}else(De=ve.nodeName)&&De.toLowerCase()==="input"&&(ve.type==="checkbox"||ve.type==="radio")&&(Oe=iR);if(Oe&&(Oe=Oe(s,le))){zw(we,Oe,g,ye);break e}Xe&&Xe(s,ve,le),s==="focusout"&&(Xe=ve._wrapperState)&&Xe.controlled&&ve.type==="number"&&vr(ve,"number",ve.value)}switch(Xe=le?Zs(le):window,s){case"focusin":(Nw(Xe)||Xe.contentEditable==="true")&&(Vs=Xe,yh=le,Mc=null);break;case"focusout":Mc=yh=Vs=null;break;case"mousedown":xh=!0;break;case"contextmenu":case"mouseup":case"dragend":xh=!1,Fw(we,g,ye);break;case"selectionchange":if(uR)break;case"keydown":case"keyup":Fw(we,g,ye)}var Ye;if(gh)e:{switch(s){case"compositionstart":var nt="onCompositionStart";break e;case"compositionend":nt="onCompositionEnd";break e;case"compositionupdate":nt="onCompositionUpdate";break e}nt=void 0}else Hs?jw(s,g)&&(nt="onCompositionEnd"):s==="keydown"&&g.keyCode===229&&(nt="onCompositionStart");nt&&(kw&&g.locale!=="ko"&&(Hs||nt!=="onCompositionStart"?nt==="onCompositionEnd"&&Hs&&(Ye=vw()):(ni=ye,ch="value"in ni?ni.value:ni.textContent,Hs=!0)),Xe=uf(le,nt),0<Xe.length&&(nt=new xw(nt,s,null,g,ye),we.push({event:nt,listeners:Xe}),Ye?nt.data=Ye:(Ye=Cw(g),Ye!==null&&(nt.data=Ye)))),(Ye=J9?Q9(s,g):eR(s,g))&&(le=uf(le,"onBeforeInput"),0<le.length&&(ye=new xw("onBeforeInput","beforeinput",null,g,ye),we.push({event:ye,listeners:le}),ye.data=Ye))}Uw(we,u)})}function Ic(s,u,g){return{instance:s,listener:u,currentTarget:g}}function uf(s,u){for(var g=u+"Capture",w=[];s!==null;){var j=s,_=j.stateNode;j.tag===5&&_!==null&&(j=_,_=Qe(s,g),_!=null&&w.unshift(Ic(s,_,j)),_=Qe(s,u),_!=null&&w.push(Ic(s,_,j))),s=s.return}return w}function Us(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function Zw(s,u,g,w,j){for(var _=u._reactName,P=[];g!==null&&g!==w;){var U=g,Q=U.alternate,le=U.stateNode;if(Q!==null&&Q===w)break;U.tag===5&&le!==null&&(U=le,j?(Q=Qe(g,_),Q!=null&&P.unshift(Ic(g,Q,U))):j||(Q=Qe(g,_),Q!=null&&P.push(Ic(g,Q,U)))),g=g.return}P.length!==0&&s.push({event:u,listeners:P})}var mR=/\r\n?/g,gR=/\u0000|\uFFFD/g;function Kw(s){return(typeof s=="string"?s:""+s).replace(mR,`
7
+ `).replace(gR,"")}function df(s,u,g){if(u=Kw(u),Kw(s)!==u&&g)throw Error(r(425))}function ff(){}var Ch=null,Nh=null;function zh(s,u){return s==="textarea"||s==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var Th=typeof setTimeout=="function"?setTimeout:void 0,hR=typeof clearTimeout=="function"?clearTimeout:void 0,Xw=typeof Promise=="function"?Promise:void 0,vR=typeof queueMicrotask=="function"?queueMicrotask:typeof Xw<"u"?function(s){return Xw.resolve(null).then(s).catch(bR)}:Th;function bR(s){setTimeout(function(){throw s})}function _h(s,u){var g=u,w=0;do{var j=g.nextSibling;if(s.removeChild(g),j&&j.nodeType===8)if(g=j.data,g==="/$"){if(w===0){s.removeChild(j),zc(u);return}w--}else g!=="$"&&g!=="$?"&&g!=="$!"||w++;g=j}while(g);zc(u)}function ii(s){for(;s!=null;s=s.nextSibling){var u=s.nodeType;if(u===1||u===3)break;if(u===8){if(u=s.data,u==="$"||u==="$!"||u==="$?")break;if(u==="/$")return null}}return s}function Yw(s){s=s.previousSibling;for(var u=0;s;){if(s.nodeType===8){var g=s.data;if(g==="$"||g==="$!"||g==="$?"){if(u===0)return s;u--}else g==="/$"&&u++}s=s.previousSibling}return null}var Gs=Math.random().toString(36).slice(2),Xn="__reactFiber$"+Gs,Ac="__reactProps$"+Gs,va="__reactContainer$"+Gs,Rh="__reactEvents$"+Gs,yR="__reactListeners$"+Gs,xR="__reactHandles$"+Gs;function Yi(s){var u=s[Xn];if(u)return u;for(var g=s.parentNode;g;){if(u=g[va]||g[Xn]){if(g=u.alternate,u.child!==null||g!==null&&g.child!==null)for(s=Yw(s);s!==null;){if(g=s[Xn])return g;s=Yw(s)}return u}s=g,g=s.parentNode}return null}function Oc(s){return s=s[Xn]||s[va],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function Zs(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(r(33))}function pf(s){return s[Ac]||null}var Dh=[],Ks=-1;function si(s){return{current:s}}function Zt(s){0>Ks||(s.current=Dh[Ks],Dh[Ks]=null,Ks--)}function It(s,u){Ks++,Dh[Ks]=s.current,s.current=u}var li={},Kr=si(li),go=si(!1),Ji=li;function Xs(s,u){var g=s.type.contextTypes;if(!g)return li;var w=s.stateNode;if(w&&w.__reactInternalMemoizedUnmaskedChildContext===u)return w.__reactInternalMemoizedMaskedChildContext;var j={},_;for(_ in g)j[_]=u[_];return w&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=u,s.__reactInternalMemoizedMaskedChildContext=j),j}function ho(s){return s=s.childContextTypes,s!=null}function mf(){Zt(go),Zt(Kr)}function Jw(s,u,g){if(Kr.current!==li)throw Error(r(168));It(Kr,u),It(go,g)}function Qw(s,u,g){var w=s.stateNode;if(u=u.childContextTypes,typeof w.getChildContext!="function")return g;w=w.getChildContext();for(var j in w)if(!(j in u))throw Error(r(108,ge(s)||"Unknown",j));return ee({},g,w)}function gf(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||li,Ji=Kr.current,It(Kr,s),It(go,go.current),!0}function ek(s,u,g){var w=s.stateNode;if(!w)throw Error(r(169));g?(s=Qw(s,u,Ji),w.__reactInternalMemoizedMergedChildContext=s,Zt(go),Zt(Kr),It(Kr,s)):Zt(go),It(go,g)}var ba=null,hf=!1,Eh=!1;function tk(s){ba===null?ba=[s]:ba.push(s)}function wR(s){hf=!0,tk(s)}function ci(){if(!Eh&&ba!==null){Eh=!0;var s=0,u=Dt;try{var g=ba;for(Dt=1;s<g.length;s++){var w=g[s];do w=w(!0);while(w!==null)}ba=null,hf=!1}catch(j){throw ba!==null&&(ba=ba.slice(s+1)),ow(th,ci),j}finally{Dt=u,Eh=!1}}return null}var Ys=[],Js=0,vf=null,bf=0,Zo=[],Ko=0,Qi=null,ya=1,xa="";function es(s,u){Ys[Js++]=bf,Ys[Js++]=vf,vf=s,bf=u}function rk(s,u,g){Zo[Ko++]=ya,Zo[Ko++]=xa,Zo[Ko++]=Qi,Qi=s;var w=ya;s=xa;var j=32-xn(w)-1;w&=~(1<<j),g+=1;var _=32-xn(u)+j;if(30<_){var P=j-j%5;_=(w&(1<<P)-1).toString(32),w>>=P,j-=P,ya=1<<32-xn(u)+j|g<<j|w,xa=_+s}else ya=1<<_|g<<j|w,xa=s}function Ph(s){s.return!==null&&(es(s,1),rk(s,1,0))}function Mh(s){for(;s===vf;)vf=Ys[--Js],Ys[Js]=null,bf=Ys[--Js],Ys[Js]=null;for(;s===Qi;)Qi=Zo[--Ko],Zo[Ko]=null,xa=Zo[--Ko],Zo[Ko]=null,ya=Zo[--Ko],Zo[Ko]=null}var Do=null,Eo=null,Yt=!1,kn=null;function ok(s,u){var g=Qo(5,null,null,0);g.elementType="DELETED",g.stateNode=u,g.return=s,u=s.deletions,u===null?(s.deletions=[g],s.flags|=16):u.push(g)}function nk(s,u){switch(s.tag){case 5:var g=s.type;return u=u.nodeType!==1||g.toLowerCase()!==u.nodeName.toLowerCase()?null:u,u!==null?(s.stateNode=u,Do=s,Eo=ii(u.firstChild),!0):!1;case 6:return u=s.pendingProps===""||u.nodeType!==3?null:u,u!==null?(s.stateNode=u,Do=s,Eo=null,!0):!1;case 13:return u=u.nodeType!==8?null:u,u!==null?(g=Qi!==null?{id:ya,overflow:xa}:null,s.memoizedState={dehydrated:u,treeContext:g,retryLane:1073741824},g=Qo(18,null,null,0),g.stateNode=u,g.return=s,s.child=g,Do=s,Eo=null,!0):!1;default:return!1}}function qh(s){return(s.mode&1)!==0&&(s.flags&128)===0}function Fh(s){if(Yt){var u=Eo;if(u){var g=u;if(!nk(s,u)){if(qh(s))throw Error(r(418));u=ii(g.nextSibling);var w=Do;u&&nk(s,u)?ok(w,g):(s.flags=s.flags&-4097|2,Yt=!1,Do=s)}}else{if(qh(s))throw Error(r(418));s.flags=s.flags&-4097|2,Yt=!1,Do=s}}}function ak(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;Do=s}function yf(s){if(s!==Do)return!1;if(!Yt)return ak(s),Yt=!0,!1;var u;if((u=s.tag!==3)&&!(u=s.tag!==5)&&(u=s.type,u=u!=="head"&&u!=="body"&&!zh(s.type,s.memoizedProps)),u&&(u=Eo)){if(qh(s))throw ik(),Error(r(418));for(;u;)ok(s,u),u=ii(u.nextSibling)}if(ak(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));e:{for(s=s.nextSibling,u=0;s;){if(s.nodeType===8){var g=s.data;if(g==="/$"){if(u===0){Eo=ii(s.nextSibling);break e}u--}else g!=="$"&&g!=="$!"&&g!=="$?"||u++}s=s.nextSibling}Eo=null}}else Eo=Do?ii(s.stateNode.nextSibling):null;return!0}function ik(){for(var s=Eo;s;)s=ii(s.nextSibling)}function Qs(){Eo=Do=null,Yt=!1}function Ih(s){kn===null?kn=[s]:kn.push(s)}var kR=C.ReactCurrentBatchConfig;function Lc(s,u,g){if(s=g.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(g._owner){if(g=g._owner,g){if(g.tag!==1)throw Error(r(309));var w=g.stateNode}if(!w)throw Error(r(147,s));var j=w,_=""+s;return u!==null&&u.ref!==null&&typeof u.ref=="function"&&u.ref._stringRef===_?u.ref:(u=function(P){var U=j.refs;P===null?delete U[_]:U[_]=P},u._stringRef=_,u)}if(typeof s!="string")throw Error(r(284));if(!g._owner)throw Error(r(290,s))}return s}function xf(s,u){throw s=Object.prototype.toString.call(u),Error(r(31,s==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":s))}function sk(s){var u=s._init;return u(s._payload)}function lk(s){function u(ae,re){if(s){var se=ae.deletions;se===null?(ae.deletions=[re],ae.flags|=16):se.push(re)}}function g(ae,re){if(!s)return null;for(;re!==null;)u(ae,re),re=re.sibling;return null}function w(ae,re){for(ae=new Map;re!==null;)re.key!==null?ae.set(re.key,re):ae.set(re.index,re),re=re.sibling;return ae}function j(ae,re){return ae=vi(ae,re),ae.index=0,ae.sibling=null,ae}function _(ae,re,se){return ae.index=se,s?(se=ae.alternate,se!==null?(se=se.index,se<re?(ae.flags|=2,re):se):(ae.flags|=2,re)):(ae.flags|=1048576,re)}function P(ae){return s&&ae.alternate===null&&(ae.flags|=2),ae}function U(ae,re,se,Se){return re===null||re.tag!==6?(re=T0(se,ae.mode,Se),re.return=ae,re):(re=j(re,se),re.return=ae,re)}function Q(ae,re,se,Se){var Oe=se.type;return Oe===E?ye(ae,re,se.props.children,Se,se.key):re!==null&&(re.elementType===Oe||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===A&&sk(Oe)===re.type)?(Se=j(re,se.props),Se.ref=Lc(ae,re,se),Se.return=ae,Se):(Se=Vf(se.type,se.key,se.props,null,ae.mode,Se),Se.ref=Lc(ae,re,se),Se.return=ae,Se)}function le(ae,re,se,Se){return re===null||re.tag!==4||re.stateNode.containerInfo!==se.containerInfo||re.stateNode.implementation!==se.implementation?(re=_0(se,ae.mode,Se),re.return=ae,re):(re=j(re,se.children||[]),re.return=ae,re)}function ye(ae,re,se,Se,Oe){return re===null||re.tag!==7?(re=ls(se,ae.mode,Se,Oe),re.return=ae,re):(re=j(re,se),re.return=ae,re)}function we(ae,re,se){if(typeof re=="string"&&re!==""||typeof re=="number")return re=T0(""+re,ae.mode,se),re.return=ae,re;if(typeof re=="object"&&re!==null){switch(re.$$typeof){case z:return se=Vf(re.type,re.key,re.props,null,ae.mode,se),se.ref=Lc(ae,null,re),se.return=ae,se;case R:return re=_0(re,ae.mode,se),re.return=ae,re;case A:var Se=re._init;return we(ae,Se(re._payload),se)}if(ot(re)||oe(re))return re=ls(re,ae.mode,se,null),re.return=ae,re;xf(ae,re)}return null}function ve(ae,re,se,Se){var Oe=re!==null?re.key:null;if(typeof se=="string"&&se!==""||typeof se=="number")return Oe!==null?null:U(ae,re,""+se,Se);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case z:return se.key===Oe?Q(ae,re,se,Se):null;case R:return se.key===Oe?le(ae,re,se,Se):null;case A:return Oe=se._init,ve(ae,re,Oe(se._payload),Se)}if(ot(se)||oe(se))return Oe!==null?null:ye(ae,re,se,Se,null);xf(ae,se)}return null}function De(ae,re,se,Se,Oe){if(typeof Se=="string"&&Se!==""||typeof Se=="number")return ae=ae.get(se)||null,U(re,ae,""+Se,Oe);if(typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case z:return ae=ae.get(Se.key===null?se:Se.key)||null,Q(re,ae,Se,Oe);case R:return ae=ae.get(Se.key===null?se:Se.key)||null,le(re,ae,Se,Oe);case A:var Xe=Se._init;return De(ae,re,se,Xe(Se._payload),Oe)}if(ot(Se)||oe(Se))return ae=ae.get(se)||null,ye(re,ae,Se,Oe,null);xf(re,Se)}return null}function Fe(ae,re,se,Se){for(var Oe=null,Xe=null,Ye=re,nt=re=0,qr=null;Ye!==null&&nt<se.length;nt++){Ye.index>nt?(qr=Ye,Ye=null):qr=Ye.sibling;var kt=ve(ae,Ye,se[nt],Se);if(kt===null){Ye===null&&(Ye=qr);break}s&&Ye&&kt.alternate===null&&u(ae,Ye),re=_(kt,re,nt),Xe===null?Oe=kt:Xe.sibling=kt,Xe=kt,Ye=qr}if(nt===se.length)return g(ae,Ye),Yt&&es(ae,nt),Oe;if(Ye===null){for(;nt<se.length;nt++)Ye=we(ae,se[nt],Se),Ye!==null&&(re=_(Ye,re,nt),Xe===null?Oe=Ye:Xe.sibling=Ye,Xe=Ye);return Yt&&es(ae,nt),Oe}for(Ye=w(ae,Ye);nt<se.length;nt++)qr=De(Ye,ae,nt,se[nt],Se),qr!==null&&(s&&qr.alternate!==null&&Ye.delete(qr.key===null?nt:qr.key),re=_(qr,re,nt),Xe===null?Oe=qr:Xe.sibling=qr,Xe=qr);return s&&Ye.forEach(function(bi){return u(ae,bi)}),Yt&&es(ae,nt),Oe}function Ae(ae,re,se,Se){var Oe=oe(se);if(typeof Oe!="function")throw Error(r(150));if(se=Oe.call(se),se==null)throw Error(r(151));for(var Xe=Oe=null,Ye=re,nt=re=0,qr=null,kt=se.next();Ye!==null&&!kt.done;nt++,kt=se.next()){Ye.index>nt?(qr=Ye,Ye=null):qr=Ye.sibling;var bi=ve(ae,Ye,kt.value,Se);if(bi===null){Ye===null&&(Ye=qr);break}s&&Ye&&bi.alternate===null&&u(ae,Ye),re=_(bi,re,nt),Xe===null?Oe=bi:Xe.sibling=bi,Xe=bi,Ye=qr}if(kt.done)return g(ae,Ye),Yt&&es(ae,nt),Oe;if(Ye===null){for(;!kt.done;nt++,kt=se.next())kt=we(ae,kt.value,Se),kt!==null&&(re=_(kt,re,nt),Xe===null?Oe=kt:Xe.sibling=kt,Xe=kt);return Yt&&es(ae,nt),Oe}for(Ye=w(ae,Ye);!kt.done;nt++,kt=se.next())kt=De(Ye,ae,nt,kt.value,Se),kt!==null&&(s&&kt.alternate!==null&&Ye.delete(kt.key===null?nt:kt.key),re=_(kt,re,nt),Xe===null?Oe=kt:Xe.sibling=kt,Xe=kt);return s&&Ye.forEach(function(tD){return u(ae,tD)}),Yt&&es(ae,nt),Oe}function wr(ae,re,se,Se){if(typeof se=="object"&&se!==null&&se.type===E&&se.key===null&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case z:e:{for(var Oe=se.key,Xe=re;Xe!==null;){if(Xe.key===Oe){if(Oe=se.type,Oe===E){if(Xe.tag===7){g(ae,Xe.sibling),re=j(Xe,se.props.children),re.return=ae,ae=re;break e}}else if(Xe.elementType===Oe||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===A&&sk(Oe)===Xe.type){g(ae,Xe.sibling),re=j(Xe,se.props),re.ref=Lc(ae,Xe,se),re.return=ae,ae=re;break e}g(ae,Xe);break}else u(ae,Xe);Xe=Xe.sibling}se.type===E?(re=ls(se.props.children,ae.mode,Se,se.key),re.return=ae,ae=re):(Se=Vf(se.type,se.key,se.props,null,ae.mode,Se),Se.ref=Lc(ae,re,se),Se.return=ae,ae=Se)}return P(ae);case R:e:{for(Xe=se.key;re!==null;){if(re.key===Xe)if(re.tag===4&&re.stateNode.containerInfo===se.containerInfo&&re.stateNode.implementation===se.implementation){g(ae,re.sibling),re=j(re,se.children||[]),re.return=ae,ae=re;break e}else{g(ae,re);break}else u(ae,re);re=re.sibling}re=_0(se,ae.mode,Se),re.return=ae,ae=re}return P(ae);case A:return Xe=se._init,wr(ae,re,Xe(se._payload),Se)}if(ot(se))return Fe(ae,re,se,Se);if(oe(se))return Ae(ae,re,se,Se);xf(ae,se)}return typeof se=="string"&&se!==""||typeof se=="number"?(se=""+se,re!==null&&re.tag===6?(g(ae,re.sibling),re=j(re,se),re.return=ae,ae=re):(g(ae,re),re=T0(se,ae.mode,Se),re.return=ae,ae=re),P(ae)):g(ae,re)}return wr}var el=lk(!0),ck=lk(!1),wf=si(null),kf=null,tl=null,Ah=null;function Oh(){Ah=tl=kf=null}function Lh(s){var u=wf.current;Zt(wf),s._currentValue=u}function $h(s,u,g){for(;s!==null;){var w=s.alternate;if((s.childLanes&u)!==u?(s.childLanes|=u,w!==null&&(w.childLanes|=u)):w!==null&&(w.childLanes&u)!==u&&(w.childLanes|=u),s===g)break;s=s.return}}function rl(s,u){kf=s,Ah=tl=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&u)!==0&&(vo=!0),s.firstContext=null)}function Xo(s){var u=s._currentValue;if(Ah!==s)if(s={context:s,memoizedValue:u,next:null},tl===null){if(kf===null)throw Error(r(308));tl=s,kf.dependencies={lanes:0,firstContext:s}}else tl=tl.next=s;return u}var ts=null;function Hh(s){ts===null?ts=[s]:ts.push(s)}function uk(s,u,g,w){var j=u.interleaved;return j===null?(g.next=g,Hh(u)):(g.next=j.next,j.next=g),u.interleaved=g,wa(s,w)}function wa(s,u){s.lanes|=u;var g=s.alternate;for(g!==null&&(g.lanes|=u),g=s,s=s.return;s!==null;)s.childLanes|=u,g=s.alternate,g!==null&&(g.childLanes|=u),g=s,s=s.return;return g.tag===3?g.stateNode:null}var ui=!1;function Vh(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function dk(s,u){s=s.updateQueue,u.updateQueue===s&&(u.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function ka(s,u){return{eventTime:s,lane:u,tag:0,payload:null,callback:null,next:null}}function di(s,u,g){var w=s.updateQueue;if(w===null)return null;if(w=w.shared,(yt&2)!==0){var j=w.pending;return j===null?u.next=u:(u.next=j.next,j.next=u),w.pending=u,wa(s,g)}return j=w.interleaved,j===null?(u.next=u,Hh(w)):(u.next=j.next,j.next=u),w.interleaved=u,wa(s,g)}function Sf(s,u,g){if(u=u.updateQueue,u!==null&&(u=u.shared,(g&4194240)!==0)){var w=u.lanes;w&=s.pendingLanes,g|=w,u.lanes=g,nh(s,g)}}function fk(s,u){var g=s.updateQueue,w=s.alternate;if(w!==null&&(w=w.updateQueue,g===w)){var j=null,_=null;if(g=g.firstBaseUpdate,g!==null){do{var P={eventTime:g.eventTime,lane:g.lane,tag:g.tag,payload:g.payload,callback:g.callback,next:null};_===null?j=_=P:_=_.next=P,g=g.next}while(g!==null);_===null?j=_=u:_=_.next=u}else j=_=u;g={baseState:w.baseState,firstBaseUpdate:j,lastBaseUpdate:_,shared:w.shared,effects:w.effects},s.updateQueue=g;return}s=g.lastBaseUpdate,s===null?g.firstBaseUpdate=u:s.next=u,g.lastBaseUpdate=u}function Bf(s,u,g,w){var j=s.updateQueue;ui=!1;var _=j.firstBaseUpdate,P=j.lastBaseUpdate,U=j.shared.pending;if(U!==null){j.shared.pending=null;var Q=U,le=Q.next;Q.next=null,P===null?_=le:P.next=le,P=Q;var ye=s.alternate;ye!==null&&(ye=ye.updateQueue,U=ye.lastBaseUpdate,U!==P&&(U===null?ye.firstBaseUpdate=le:U.next=le,ye.lastBaseUpdate=Q))}if(_!==null){var we=j.baseState;P=0,ye=le=Q=null,U=_;do{var ve=U.lane,De=U.eventTime;if((w&ve)===ve){ye!==null&&(ye=ye.next={eventTime:De,lane:0,tag:U.tag,payload:U.payload,callback:U.callback,next:null});e:{var Fe=s,Ae=U;switch(ve=u,De=g,Ae.tag){case 1:if(Fe=Ae.payload,typeof Fe=="function"){we=Fe.call(De,we,ve);break e}we=Fe;break e;case 3:Fe.flags=Fe.flags&-65537|128;case 0:if(Fe=Ae.payload,ve=typeof Fe=="function"?Fe.call(De,we,ve):Fe,ve==null)break e;we=ee({},we,ve);break e;case 2:ui=!0}}U.callback!==null&&U.lane!==0&&(s.flags|=64,ve=j.effects,ve===null?j.effects=[U]:ve.push(U))}else De={eventTime:De,lane:ve,tag:U.tag,payload:U.payload,callback:U.callback,next:null},ye===null?(le=ye=De,Q=we):ye=ye.next=De,P|=ve;if(U=U.next,U===null){if(U=j.shared.pending,U===null)break;ve=U,U=ve.next,ve.next=null,j.lastBaseUpdate=ve,j.shared.pending=null}}while(!0);if(ye===null&&(Q=we),j.baseState=Q,j.firstBaseUpdate=le,j.lastBaseUpdate=ye,u=j.shared.interleaved,u!==null){j=u;do P|=j.lane,j=j.next;while(j!==u)}else _===null&&(j.shared.lanes=0);ns|=P,s.lanes=P,s.memoizedState=we}}function pk(s,u,g){if(s=u.effects,u.effects=null,s!==null)for(u=0;u<s.length;u++){var w=s[u],j=w.callback;if(j!==null){if(w.callback=null,w=g,typeof j!="function")throw Error(r(191,j));j.call(w)}}}var $c={},Yn=si($c),Hc=si($c),Vc=si($c);function rs(s){if(s===$c)throw Error(r(174));return s}function Wh(s,u){switch(It(Vc,u),It(Hc,s),It(Yn,$c),s=u.nodeType,s){case 9:case 11:u=(u=u.documentElement)?u.namespaceURI:Nr(null,"");break;default:s=s===8?u.parentNode:u,u=s.namespaceURI||null,s=s.tagName,u=Nr(u,s)}Zt(Yn),It(Yn,u)}function ol(){Zt(Yn),Zt(Hc),Zt(Vc)}function mk(s){rs(Vc.current);var u=rs(Yn.current),g=Nr(u,s.type);u!==g&&(It(Hc,s),It(Yn,g))}function Uh(s){Hc.current===s&&(Zt(Yn),Zt(Hc))}var or=si(0);function jf(s){for(var u=s;u!==null;){if(u.tag===13){var g=u.memoizedState;if(g!==null&&(g=g.dehydrated,g===null||g.data==="$?"||g.data==="$!"))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!==void 0){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===s)break;for(;u.sibling===null;){if(u.return===null||u.return===s)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var Gh=[];function Zh(){for(var s=0;s<Gh.length;s++)Gh[s]._workInProgressVersionPrimary=null;Gh.length=0}var Cf=C.ReactCurrentDispatcher,Kh=C.ReactCurrentBatchConfig,os=0,nr=null,zr=null,Pr=null,Nf=!1,Wc=!1,Uc=0,SR=0;function Xr(){throw Error(r(321))}function Xh(s,u){if(u===null)return!1;for(var g=0;g<u.length&&g<s.length;g++)if(!wn(s[g],u[g]))return!1;return!0}function Yh(s,u,g,w,j,_){if(os=_,nr=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,Cf.current=s===null||s.memoizedState===null?NR:zR,s=g(w,j),Wc){_=0;do{if(Wc=!1,Uc=0,25<=_)throw Error(r(301));_+=1,Pr=zr=null,u.updateQueue=null,Cf.current=TR,s=g(w,j)}while(Wc)}if(Cf.current=_f,u=zr!==null&&zr.next!==null,os=0,Pr=zr=nr=null,Nf=!1,u)throw Error(r(300));return s}function Jh(){var s=Uc!==0;return Uc=0,s}function Jn(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pr===null?nr.memoizedState=Pr=s:Pr=Pr.next=s,Pr}function Yo(){if(zr===null){var s=nr.alternate;s=s!==null?s.memoizedState:null}else s=zr.next;var u=Pr===null?nr.memoizedState:Pr.next;if(u!==null)Pr=u,zr=s;else{if(s===null)throw Error(r(310));zr=s,s={memoizedState:zr.memoizedState,baseState:zr.baseState,baseQueue:zr.baseQueue,queue:zr.queue,next:null},Pr===null?nr.memoizedState=Pr=s:Pr=Pr.next=s}return Pr}function Gc(s,u){return typeof u=="function"?u(s):u}function Qh(s){var u=Yo(),g=u.queue;if(g===null)throw Error(r(311));g.lastRenderedReducer=s;var w=zr,j=w.baseQueue,_=g.pending;if(_!==null){if(j!==null){var P=j.next;j.next=_.next,_.next=P}w.baseQueue=j=_,g.pending=null}if(j!==null){_=j.next,w=w.baseState;var U=P=null,Q=null,le=_;do{var ye=le.lane;if((os&ye)===ye)Q!==null&&(Q=Q.next={lane:0,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null}),w=le.hasEagerState?le.eagerState:s(w,le.action);else{var we={lane:ye,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null};Q===null?(U=Q=we,P=w):Q=Q.next=we,nr.lanes|=ye,ns|=ye}le=le.next}while(le!==null&&le!==_);Q===null?P=w:Q.next=U,wn(w,u.memoizedState)||(vo=!0),u.memoizedState=w,u.baseState=P,u.baseQueue=Q,g.lastRenderedState=w}if(s=g.interleaved,s!==null){j=s;do _=j.lane,nr.lanes|=_,ns|=_,j=j.next;while(j!==s)}else j===null&&(g.lanes=0);return[u.memoizedState,g.dispatch]}function e0(s){var u=Yo(),g=u.queue;if(g===null)throw Error(r(311));g.lastRenderedReducer=s;var w=g.dispatch,j=g.pending,_=u.memoizedState;if(j!==null){g.pending=null;var P=j=j.next;do _=s(_,P.action),P=P.next;while(P!==j);wn(_,u.memoizedState)||(vo=!0),u.memoizedState=_,u.baseQueue===null&&(u.baseState=_),g.lastRenderedState=_}return[_,w]}function gk(){}function hk(s,u){var g=nr,w=Yo(),j=u(),_=!wn(w.memoizedState,j);if(_&&(w.memoizedState=j,vo=!0),w=w.queue,t0(yk.bind(null,g,w,s),[s]),w.getSnapshot!==u||_||Pr!==null&&Pr.memoizedState.tag&1){if(g.flags|=2048,Zc(9,bk.bind(null,g,w,j,u),void 0,null),Mr===null)throw Error(r(349));(os&30)!==0||vk(g,u,j)}return j}function vk(s,u,g){s.flags|=16384,s={getSnapshot:u,value:g},u=nr.updateQueue,u===null?(u={lastEffect:null,stores:null},nr.updateQueue=u,u.stores=[s]):(g=u.stores,g===null?u.stores=[s]:g.push(s))}function bk(s,u,g,w){u.value=g,u.getSnapshot=w,xk(u)&&wk(s)}function yk(s,u,g){return g(function(){xk(u)&&wk(s)})}function xk(s){var u=s.getSnapshot;s=s.value;try{var g=u();return!wn(s,g)}catch{return!0}}function wk(s){var u=wa(s,1);u!==null&&Cn(u,s,1,-1)}function kk(s){var u=Jn();return typeof s=="function"&&(s=s()),u.memoizedState=u.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Gc,lastRenderedState:s},u.queue=s,s=s.dispatch=CR.bind(null,nr,s),[u.memoizedState,s]}function Zc(s,u,g,w){return s={tag:s,create:u,destroy:g,deps:w,next:null},u=nr.updateQueue,u===null?(u={lastEffect:null,stores:null},nr.updateQueue=u,u.lastEffect=s.next=s):(g=u.lastEffect,g===null?u.lastEffect=s.next=s:(w=g.next,g.next=s,s.next=w,u.lastEffect=s)),s}function Sk(){return Yo().memoizedState}function zf(s,u,g,w){var j=Jn();nr.flags|=s,j.memoizedState=Zc(1|u,g,void 0,w===void 0?null:w)}function Tf(s,u,g,w){var j=Yo();w=w===void 0?null:w;var _=void 0;if(zr!==null){var P=zr.memoizedState;if(_=P.destroy,w!==null&&Xh(w,P.deps)){j.memoizedState=Zc(u,g,_,w);return}}nr.flags|=s,j.memoizedState=Zc(1|u,g,_,w)}function Bk(s,u){return zf(8390656,8,s,u)}function t0(s,u){return Tf(2048,8,s,u)}function jk(s,u){return Tf(4,2,s,u)}function Ck(s,u){return Tf(4,4,s,u)}function Nk(s,u){if(typeof u=="function")return s=s(),u(s),function(){u(null)};if(u!=null)return s=s(),u.current=s,function(){u.current=null}}function zk(s,u,g){return g=g!=null?g.concat([s]):null,Tf(4,4,Nk.bind(null,u,s),g)}function r0(){}function Tk(s,u){var g=Yo();u=u===void 0?null:u;var w=g.memoizedState;return w!==null&&u!==null&&Xh(u,w[1])?w[0]:(g.memoizedState=[s,u],s)}function _k(s,u){var g=Yo();u=u===void 0?null:u;var w=g.memoizedState;return w!==null&&u!==null&&Xh(u,w[1])?w[0]:(s=s(),g.memoizedState=[s,u],s)}function Rk(s,u,g){return(os&21)===0?(s.baseState&&(s.baseState=!1,vo=!0),s.memoizedState=g):(wn(g,u)||(g=sw(),nr.lanes|=g,ns|=g,s.baseState=!0),u)}function BR(s,u){var g=Dt;Dt=g!==0&&4>g?g:4,s(!0);var w=Kh.transition;Kh.transition={};try{s(!1),u()}finally{Dt=g,Kh.transition=w}}function Dk(){return Yo().memoizedState}function jR(s,u,g){var w=gi(s);if(g={lane:w,action:g,hasEagerState:!1,eagerState:null,next:null},Ek(s))Pk(u,g);else if(g=uk(s,u,g,w),g!==null){var j=so();Cn(g,s,w,j),Mk(g,u,w)}}function CR(s,u,g){var w=gi(s),j={lane:w,action:g,hasEagerState:!1,eagerState:null,next:null};if(Ek(s))Pk(u,j);else{var _=s.alternate;if(s.lanes===0&&(_===null||_.lanes===0)&&(_=u.lastRenderedReducer,_!==null))try{var P=u.lastRenderedState,U=_(P,g);if(j.hasEagerState=!0,j.eagerState=U,wn(U,P)){var Q=u.interleaved;Q===null?(j.next=j,Hh(u)):(j.next=Q.next,Q.next=j),u.interleaved=j;return}}catch{}g=uk(s,u,j,w),g!==null&&(j=so(),Cn(g,s,w,j),Mk(g,u,w))}}function Ek(s){var u=s.alternate;return s===nr||u!==null&&u===nr}function Pk(s,u){Wc=Nf=!0;var g=s.pending;g===null?u.next=u:(u.next=g.next,g.next=u),s.pending=u}function Mk(s,u,g){if((g&4194240)!==0){var w=u.lanes;w&=s.pendingLanes,g|=w,u.lanes=g,nh(s,g)}}var _f={readContext:Xo,useCallback:Xr,useContext:Xr,useEffect:Xr,useImperativeHandle:Xr,useInsertionEffect:Xr,useLayoutEffect:Xr,useMemo:Xr,useReducer:Xr,useRef:Xr,useState:Xr,useDebugValue:Xr,useDeferredValue:Xr,useTransition:Xr,useMutableSource:Xr,useSyncExternalStore:Xr,useId:Xr,unstable_isNewReconciler:!1},NR={readContext:Xo,useCallback:function(s,u){return Jn().memoizedState=[s,u===void 0?null:u],s},useContext:Xo,useEffect:Bk,useImperativeHandle:function(s,u,g){return g=g!=null?g.concat([s]):null,zf(4194308,4,Nk.bind(null,u,s),g)},useLayoutEffect:function(s,u){return zf(4194308,4,s,u)},useInsertionEffect:function(s,u){return zf(4,2,s,u)},useMemo:function(s,u){var g=Jn();return u=u===void 0?null:u,s=s(),g.memoizedState=[s,u],s},useReducer:function(s,u,g){var w=Jn();return u=g!==void 0?g(u):u,w.memoizedState=w.baseState=u,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:u},w.queue=s,s=s.dispatch=jR.bind(null,nr,s),[w.memoizedState,s]},useRef:function(s){var u=Jn();return s={current:s},u.memoizedState=s},useState:kk,useDebugValue:r0,useDeferredValue:function(s){return Jn().memoizedState=s},useTransition:function(){var s=kk(!1),u=s[0];return s=BR.bind(null,s[1]),Jn().memoizedState=s,[u,s]},useMutableSource:function(){},useSyncExternalStore:function(s,u,g){var w=nr,j=Jn();if(Yt){if(g===void 0)throw Error(r(407));g=g()}else{if(g=u(),Mr===null)throw Error(r(349));(os&30)!==0||vk(w,u,g)}j.memoizedState=g;var _={value:g,getSnapshot:u};return j.queue=_,Bk(yk.bind(null,w,_,s),[s]),w.flags|=2048,Zc(9,bk.bind(null,w,_,g,u),void 0,null),g},useId:function(){var s=Jn(),u=Mr.identifierPrefix;if(Yt){var g=xa,w=ya;g=(w&~(1<<32-xn(w)-1)).toString(32)+g,u=":"+u+"R"+g,g=Uc++,0<g&&(u+="H"+g.toString(32)),u+=":"}else g=SR++,u=":"+u+"r"+g.toString(32)+":";return s.memoizedState=u},unstable_isNewReconciler:!1},zR={readContext:Xo,useCallback:Tk,useContext:Xo,useEffect:t0,useImperativeHandle:zk,useInsertionEffect:jk,useLayoutEffect:Ck,useMemo:_k,useReducer:Qh,useRef:Sk,useState:function(){return Qh(Gc)},useDebugValue:r0,useDeferredValue:function(s){var u=Yo();return Rk(u,zr.memoizedState,s)},useTransition:function(){var s=Qh(Gc)[0],u=Yo().memoizedState;return[s,u]},useMutableSource:gk,useSyncExternalStore:hk,useId:Dk,unstable_isNewReconciler:!1},TR={readContext:Xo,useCallback:Tk,useContext:Xo,useEffect:t0,useImperativeHandle:zk,useInsertionEffect:jk,useLayoutEffect:Ck,useMemo:_k,useReducer:e0,useRef:Sk,useState:function(){return e0(Gc)},useDebugValue:r0,useDeferredValue:function(s){var u=Yo();return zr===null?u.memoizedState=s:Rk(u,zr.memoizedState,s)},useTransition:function(){var s=e0(Gc)[0],u=Yo().memoizedState;return[s,u]},useMutableSource:gk,useSyncExternalStore:hk,useId:Dk,unstable_isNewReconciler:!1};function Sn(s,u){if(s&&s.defaultProps){u=ee({},u),s=s.defaultProps;for(var g in s)u[g]===void 0&&(u[g]=s[g]);return u}return u}function o0(s,u,g,w){u=s.memoizedState,g=g(w,u),g=g==null?u:ee({},u,g),s.memoizedState=g,s.lanes===0&&(s.updateQueue.baseState=g)}var Rf={isMounted:function(s){return(s=s._reactInternals)?Xi(s)===s:!1},enqueueSetState:function(s,u,g){s=s._reactInternals;var w=so(),j=gi(s),_=ka(w,j);_.payload=u,g!=null&&(_.callback=g),u=di(s,_,j),u!==null&&(Cn(u,s,j,w),Sf(u,s,j))},enqueueReplaceState:function(s,u,g){s=s._reactInternals;var w=so(),j=gi(s),_=ka(w,j);_.tag=1,_.payload=u,g!=null&&(_.callback=g),u=di(s,_,j),u!==null&&(Cn(u,s,j,w),Sf(u,s,j))},enqueueForceUpdate:function(s,u){s=s._reactInternals;var g=so(),w=gi(s),j=ka(g,w);j.tag=2,u!=null&&(j.callback=u),u=di(s,j,w),u!==null&&(Cn(u,s,w,g),Sf(u,s,w))}};function qk(s,u,g,w,j,_,P){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(w,_,P):u.prototype&&u.prototype.isPureReactComponent?!Pc(g,w)||!Pc(j,_):!0}function Fk(s,u,g){var w=!1,j=li,_=u.contextType;return typeof _=="object"&&_!==null?_=Xo(_):(j=ho(u)?Ji:Kr.current,w=u.contextTypes,_=(w=w!=null)?Xs(s,j):li),u=new u(g,_),s.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Rf,s.stateNode=u,u._reactInternals=s,w&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=j,s.__reactInternalMemoizedMaskedChildContext=_),u}function Ik(s,u,g,w){s=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(g,w),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(g,w),u.state!==s&&Rf.enqueueReplaceState(u,u.state,null)}function n0(s,u,g,w){var j=s.stateNode;j.props=g,j.state=s.memoizedState,j.refs={},Vh(s);var _=u.contextType;typeof _=="object"&&_!==null?j.context=Xo(_):(_=ho(u)?Ji:Kr.current,j.context=Xs(s,_)),j.state=s.memoizedState,_=u.getDerivedStateFromProps,typeof _=="function"&&(o0(s,u,_,g),j.state=s.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof j.getSnapshotBeforeUpdate=="function"||typeof j.UNSAFE_componentWillMount!="function"&&typeof j.componentWillMount!="function"||(u=j.state,typeof j.componentWillMount=="function"&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount=="function"&&j.UNSAFE_componentWillMount(),u!==j.state&&Rf.enqueueReplaceState(j,j.state,null),Bf(s,g,j,w),j.state=s.memoizedState),typeof j.componentDidMount=="function"&&(s.flags|=4194308)}function nl(s,u){try{var g="",w=u;do g+=ne(w),w=w.return;while(w);var j=g}catch(_){j=`
8
+ Error generating stack: `+_.message+`
9
+ `+_.stack}return{value:s,source:u,stack:j,digest:null}}function a0(s,u,g){return{value:s,source:null,stack:g??null,digest:u??null}}function i0(s,u){try{console.error(u.value)}catch(g){setTimeout(function(){throw g})}}var _R=typeof WeakMap=="function"?WeakMap:Map;function Ak(s,u,g){g=ka(-1,g),g.tag=3,g.payload={element:null};var w=u.value;return g.callback=function(){If||(If=!0,w0=w),i0(s,u)},g}function Ok(s,u,g){g=ka(-1,g),g.tag=3;var w=s.type.getDerivedStateFromError;if(typeof w=="function"){var j=u.value;g.payload=function(){return w(j)},g.callback=function(){i0(s,u)}}var _=s.stateNode;return _!==null&&typeof _.componentDidCatch=="function"&&(g.callback=function(){i0(s,u),typeof w!="function"&&(pi===null?pi=new Set([this]):pi.add(this));var P=u.stack;this.componentDidCatch(u.value,{componentStack:P!==null?P:""})}),g}function Lk(s,u,g){var w=s.pingCache;if(w===null){w=s.pingCache=new _R;var j=new Set;w.set(u,j)}else j=w.get(u),j===void 0&&(j=new Set,w.set(u,j));j.has(g)||(j.add(g),s=VR.bind(null,s,u,g),u.then(s,s))}function $k(s){do{var u;if((u=s.tag===13)&&(u=s.memoizedState,u=u!==null?u.dehydrated!==null:!0),u)return s;s=s.return}while(s!==null);return null}function Hk(s,u,g,w,j){return(s.mode&1)===0?(s===u?s.flags|=65536:(s.flags|=128,g.flags|=131072,g.flags&=-52805,g.tag===1&&(g.alternate===null?g.tag=17:(u=ka(-1,1),u.tag=2,di(g,u,1))),g.lanes|=1),s):(s.flags|=65536,s.lanes=j,s)}var RR=C.ReactCurrentOwner,vo=!1;function io(s,u,g,w){u.child=s===null?ck(u,null,g,w):el(u,s.child,g,w)}function Vk(s,u,g,w,j){g=g.render;var _=u.ref;return rl(u,j),w=Yh(s,u,g,w,_,j),g=Jh(),s!==null&&!vo?(u.updateQueue=s.updateQueue,u.flags&=-2053,s.lanes&=~j,Sa(s,u,j)):(Yt&&g&&Ph(u),u.flags|=1,io(s,u,w,j),u.child)}function Wk(s,u,g,w,j){if(s===null){var _=g.type;return typeof _=="function"&&!z0(_)&&_.defaultProps===void 0&&g.compare===null&&g.defaultProps===void 0?(u.tag=15,u.type=_,Uk(s,u,_,w,j)):(s=Vf(g.type,null,w,u,u.mode,j),s.ref=u.ref,s.return=u,u.child=s)}if(_=s.child,(s.lanes&j)===0){var P=_.memoizedProps;if(g=g.compare,g=g!==null?g:Pc,g(P,w)&&s.ref===u.ref)return Sa(s,u,j)}return u.flags|=1,s=vi(_,w),s.ref=u.ref,s.return=u,u.child=s}function Uk(s,u,g,w,j){if(s!==null){var _=s.memoizedProps;if(Pc(_,w)&&s.ref===u.ref)if(vo=!1,u.pendingProps=w=_,(s.lanes&j)!==0)(s.flags&131072)!==0&&(vo=!0);else return u.lanes=s.lanes,Sa(s,u,j)}return s0(s,u,g,w,j)}function Gk(s,u,g){var w=u.pendingProps,j=w.children,_=s!==null?s.memoizedState:null;if(w.mode==="hidden")if((u.mode&1)===0)u.memoizedState={baseLanes:0,cachePool:null,transitions:null},It(il,Po),Po|=g;else{if((g&1073741824)===0)return s=_!==null?_.baseLanes|g:g,u.lanes=u.childLanes=1073741824,u.memoizedState={baseLanes:s,cachePool:null,transitions:null},u.updateQueue=null,It(il,Po),Po|=s,null;u.memoizedState={baseLanes:0,cachePool:null,transitions:null},w=_!==null?_.baseLanes:g,It(il,Po),Po|=w}else _!==null?(w=_.baseLanes|g,u.memoizedState=null):w=g,It(il,Po),Po|=w;return io(s,u,j,g),u.child}function Zk(s,u){var g=u.ref;(s===null&&g!==null||s!==null&&s.ref!==g)&&(u.flags|=512,u.flags|=2097152)}function s0(s,u,g,w,j){var _=ho(g)?Ji:Kr.current;return _=Xs(u,_),rl(u,j),g=Yh(s,u,g,w,_,j),w=Jh(),s!==null&&!vo?(u.updateQueue=s.updateQueue,u.flags&=-2053,s.lanes&=~j,Sa(s,u,j)):(Yt&&w&&Ph(u),u.flags|=1,io(s,u,g,j),u.child)}function Kk(s,u,g,w,j){if(ho(g)){var _=!0;gf(u)}else _=!1;if(rl(u,j),u.stateNode===null)Ef(s,u),Fk(u,g,w),n0(u,g,w,j),w=!0;else if(s===null){var P=u.stateNode,U=u.memoizedProps;P.props=U;var Q=P.context,le=g.contextType;typeof le=="object"&&le!==null?le=Xo(le):(le=ho(g)?Ji:Kr.current,le=Xs(u,le));var ye=g.getDerivedStateFromProps,we=typeof ye=="function"||typeof P.getSnapshotBeforeUpdate=="function";we||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(U!==w||Q!==le)&&Ik(u,P,w,le),ui=!1;var ve=u.memoizedState;P.state=ve,Bf(u,w,P,j),Q=u.memoizedState,U!==w||ve!==Q||go.current||ui?(typeof ye=="function"&&(o0(u,g,ye,w),Q=u.memoizedState),(U=ui||qk(u,g,U,w,ve,Q,le))?(we||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount()),typeof P.componentDidMount=="function"&&(u.flags|=4194308)):(typeof P.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=w,u.memoizedState=Q),P.props=w,P.state=Q,P.context=le,w=U):(typeof P.componentDidMount=="function"&&(u.flags|=4194308),w=!1)}else{P=u.stateNode,dk(s,u),U=u.memoizedProps,le=u.type===u.elementType?U:Sn(u.type,U),P.props=le,we=u.pendingProps,ve=P.context,Q=g.contextType,typeof Q=="object"&&Q!==null?Q=Xo(Q):(Q=ho(g)?Ji:Kr.current,Q=Xs(u,Q));var De=g.getDerivedStateFromProps;(ye=typeof De=="function"||typeof P.getSnapshotBeforeUpdate=="function")||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(U!==we||ve!==Q)&&Ik(u,P,w,Q),ui=!1,ve=u.memoizedState,P.state=ve,Bf(u,w,P,j);var Fe=u.memoizedState;U!==we||ve!==Fe||go.current||ui?(typeof De=="function"&&(o0(u,g,De,w),Fe=u.memoizedState),(le=ui||qk(u,g,le,w,ve,Fe,Q)||!1)?(ye||typeof P.UNSAFE_componentWillUpdate!="function"&&typeof P.componentWillUpdate!="function"||(typeof P.componentWillUpdate=="function"&&P.componentWillUpdate(w,Fe,Q),typeof P.UNSAFE_componentWillUpdate=="function"&&P.UNSAFE_componentWillUpdate(w,Fe,Q)),typeof P.componentDidUpdate=="function"&&(u.flags|=4),typeof P.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof P.componentDidUpdate!="function"||U===s.memoizedProps&&ve===s.memoizedState||(u.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||U===s.memoizedProps&&ve===s.memoizedState||(u.flags|=1024),u.memoizedProps=w,u.memoizedState=Fe),P.props=w,P.state=Fe,P.context=Q,w=le):(typeof P.componentDidUpdate!="function"||U===s.memoizedProps&&ve===s.memoizedState||(u.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||U===s.memoizedProps&&ve===s.memoizedState||(u.flags|=1024),w=!1)}return l0(s,u,g,w,_,j)}function l0(s,u,g,w,j,_){Zk(s,u);var P=(u.flags&128)!==0;if(!w&&!P)return j&&ek(u,g,!1),Sa(s,u,_);w=u.stateNode,RR.current=u;var U=P&&typeof g.getDerivedStateFromError!="function"?null:w.render();return u.flags|=1,s!==null&&P?(u.child=el(u,s.child,null,_),u.child=el(u,null,U,_)):io(s,u,U,_),u.memoizedState=w.state,j&&ek(u,g,!0),u.child}function Xk(s){var u=s.stateNode;u.pendingContext?Jw(s,u.pendingContext,u.pendingContext!==u.context):u.context&&Jw(s,u.context,!1),Wh(s,u.containerInfo)}function Yk(s,u,g,w,j){return Qs(),Ih(j),u.flags|=256,io(s,u,g,w),u.child}var c0={dehydrated:null,treeContext:null,retryLane:0};function u0(s){return{baseLanes:s,cachePool:null,transitions:null}}function Jk(s,u,g){var w=u.pendingProps,j=or.current,_=!1,P=(u.flags&128)!==0,U;if((U=P)||(U=s!==null&&s.memoizedState===null?!1:(j&2)!==0),U?(_=!0,u.flags&=-129):(s===null||s.memoizedState!==null)&&(j|=1),It(or,j&1),s===null)return Fh(u),s=u.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?((u.mode&1)===0?u.lanes=1:s.data==="$!"?u.lanes=8:u.lanes=1073741824,null):(P=w.children,s=w.fallback,_?(w=u.mode,_=u.child,P={mode:"hidden",children:P},(w&1)===0&&_!==null?(_.childLanes=0,_.pendingProps=P):_=Wf(P,w,0,null),s=ls(s,w,g,null),_.return=u,s.return=u,_.sibling=s,u.child=_,u.child.memoizedState=u0(g),u.memoizedState=c0,s):d0(u,P));if(j=s.memoizedState,j!==null&&(U=j.dehydrated,U!==null))return DR(s,u,P,w,U,j,g);if(_){_=w.fallback,P=u.mode,j=s.child,U=j.sibling;var Q={mode:"hidden",children:w.children};return(P&1)===0&&u.child!==j?(w=u.child,w.childLanes=0,w.pendingProps=Q,u.deletions=null):(w=vi(j,Q),w.subtreeFlags=j.subtreeFlags&14680064),U!==null?_=vi(U,_):(_=ls(_,P,g,null),_.flags|=2),_.return=u,w.return=u,w.sibling=_,u.child=w,w=_,_=u.child,P=s.child.memoizedState,P=P===null?u0(g):{baseLanes:P.baseLanes|g,cachePool:null,transitions:P.transitions},_.memoizedState=P,_.childLanes=s.childLanes&~g,u.memoizedState=c0,w}return _=s.child,s=_.sibling,w=vi(_,{mode:"visible",children:w.children}),(u.mode&1)===0&&(w.lanes=g),w.return=u,w.sibling=null,s!==null&&(g=u.deletions,g===null?(u.deletions=[s],u.flags|=16):g.push(s)),u.child=w,u.memoizedState=null,w}function d0(s,u){return u=Wf({mode:"visible",children:u},s.mode,0,null),u.return=s,s.child=u}function Df(s,u,g,w){return w!==null&&Ih(w),el(u,s.child,null,g),s=d0(u,u.pendingProps.children),s.flags|=2,u.memoizedState=null,s}function DR(s,u,g,w,j,_,P){if(g)return u.flags&256?(u.flags&=-257,w=a0(Error(r(422))),Df(s,u,P,w)):u.memoizedState!==null?(u.child=s.child,u.flags|=128,null):(_=w.fallback,j=u.mode,w=Wf({mode:"visible",children:w.children},j,0,null),_=ls(_,j,P,null),_.flags|=2,w.return=u,_.return=u,w.sibling=_,u.child=w,(u.mode&1)!==0&&el(u,s.child,null,P),u.child.memoizedState=u0(P),u.memoizedState=c0,_);if((u.mode&1)===0)return Df(s,u,P,null);if(j.data==="$!"){if(w=j.nextSibling&&j.nextSibling.dataset,w)var U=w.dgst;return w=U,_=Error(r(419)),w=a0(_,w,void 0),Df(s,u,P,w)}if(U=(P&s.childLanes)!==0,vo||U){if(w=Mr,w!==null){switch(P&-P){case 4:j=2;break;case 16:j=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:j=32;break;case 536870912:j=268435456;break;default:j=0}j=(j&(w.suspendedLanes|P))!==0?0:j,j!==0&&j!==_.retryLane&&(_.retryLane=j,wa(s,j),Cn(w,s,j,-1))}return N0(),w=a0(Error(r(421))),Df(s,u,P,w)}return j.data==="$?"?(u.flags|=128,u.child=s.child,u=WR.bind(null,s),j._reactRetry=u,null):(s=_.treeContext,Eo=ii(j.nextSibling),Do=u,Yt=!0,kn=null,s!==null&&(Zo[Ko++]=ya,Zo[Ko++]=xa,Zo[Ko++]=Qi,ya=s.id,xa=s.overflow,Qi=u),u=d0(u,w.children),u.flags|=4096,u)}function Qk(s,u,g){s.lanes|=u;var w=s.alternate;w!==null&&(w.lanes|=u),$h(s.return,u,g)}function f0(s,u,g,w,j){var _=s.memoizedState;_===null?s.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:w,tail:g,tailMode:j}:(_.isBackwards=u,_.rendering=null,_.renderingStartTime=0,_.last=w,_.tail=g,_.tailMode=j)}function e5(s,u,g){var w=u.pendingProps,j=w.revealOrder,_=w.tail;if(io(s,u,w.children,g),w=or.current,(w&2)!==0)w=w&1|2,u.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=u.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&Qk(s,g,u);else if(s.tag===19)Qk(s,g,u);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===u)break e;for(;s.sibling===null;){if(s.return===null||s.return===u)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}w&=1}if(It(or,w),(u.mode&1)===0)u.memoizedState=null;else switch(j){case"forwards":for(g=u.child,j=null;g!==null;)s=g.alternate,s!==null&&jf(s)===null&&(j=g),g=g.sibling;g=j,g===null?(j=u.child,u.child=null):(j=g.sibling,g.sibling=null),f0(u,!1,j,g,_);break;case"backwards":for(g=null,j=u.child,u.child=null;j!==null;){if(s=j.alternate,s!==null&&jf(s)===null){u.child=j;break}s=j.sibling,j.sibling=g,g=j,j=s}f0(u,!0,g,null,_);break;case"together":f0(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function Ef(s,u){(u.mode&1)===0&&s!==null&&(s.alternate=null,u.alternate=null,u.flags|=2)}function Sa(s,u,g){if(s!==null&&(u.dependencies=s.dependencies),ns|=u.lanes,(g&u.childLanes)===0)return null;if(s!==null&&u.child!==s.child)throw Error(r(153));if(u.child!==null){for(s=u.child,g=vi(s,s.pendingProps),u.child=g,g.return=u;s.sibling!==null;)s=s.sibling,g=g.sibling=vi(s,s.pendingProps),g.return=u;g.sibling=null}return u.child}function ER(s,u,g){switch(u.tag){case 3:Xk(u),Qs();break;case 5:mk(u);break;case 1:ho(u.type)&&gf(u);break;case 4:Wh(u,u.stateNode.containerInfo);break;case 10:var w=u.type._context,j=u.memoizedProps.value;It(wf,w._currentValue),w._currentValue=j;break;case 13:if(w=u.memoizedState,w!==null)return w.dehydrated!==null?(It(or,or.current&1),u.flags|=128,null):(g&u.child.childLanes)!==0?Jk(s,u,g):(It(or,or.current&1),s=Sa(s,u,g),s!==null?s.sibling:null);It(or,or.current&1);break;case 19:if(w=(g&u.childLanes)!==0,(s.flags&128)!==0){if(w)return e5(s,u,g);u.flags|=128}if(j=u.memoizedState,j!==null&&(j.rendering=null,j.tail=null,j.lastEffect=null),It(or,or.current),w)break;return null;case 22:case 23:return u.lanes=0,Gk(s,u,g)}return Sa(s,u,g)}var t5,p0,r5,o5;t5=function(s,u){for(var g=u.child;g!==null;){if(g.tag===5||g.tag===6)s.appendChild(g.stateNode);else if(g.tag!==4&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===u)break;for(;g.sibling===null;){if(g.return===null||g.return===u)return;g=g.return}g.sibling.return=g.return,g=g.sibling}},p0=function(){},r5=function(s,u,g,w){var j=s.memoizedProps;if(j!==w){s=u.stateNode,rs(Yn.current);var _=null;switch(g){case"input":j=vt(s,j),w=vt(s,w),_=[];break;case"select":j=ee({},j,{value:void 0}),w=ee({},w,{value:void 0}),_=[];break;case"textarea":j=ur(s,j),w=ur(s,w),_=[];break;default:typeof j.onClick!="function"&&typeof w.onClick=="function"&&(s.onclick=ff)}We(g,w);var P;g=null;for(le in j)if(!w.hasOwnProperty(le)&&j.hasOwnProperty(le)&&j[le]!=null)if(le==="style"){var U=j[le];for(P in U)U.hasOwnProperty(P)&&(g||(g={}),g[P]="")}else le!=="dangerouslySetInnerHTML"&&le!=="children"&&le!=="suppressContentEditableWarning"&&le!=="suppressHydrationWarning"&&le!=="autoFocus"&&(n.hasOwnProperty(le)?_||(_=[]):(_=_||[]).push(le,null));for(le in w){var Q=w[le];if(U=j?.[le],w.hasOwnProperty(le)&&Q!==U&&(Q!=null||U!=null))if(le==="style")if(U){for(P in U)!U.hasOwnProperty(P)||Q&&Q.hasOwnProperty(P)||(g||(g={}),g[P]="");for(P in Q)Q.hasOwnProperty(P)&&U[P]!==Q[P]&&(g||(g={}),g[P]=Q[P])}else g||(_||(_=[]),_.push(le,g)),g=Q;else le==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,U=U?U.__html:void 0,Q!=null&&U!==Q&&(_=_||[]).push(le,Q)):le==="children"?typeof Q!="string"&&typeof Q!="number"||(_=_||[]).push(le,""+Q):le!=="suppressContentEditableWarning"&&le!=="suppressHydrationWarning"&&(n.hasOwnProperty(le)?(Q!=null&&le==="onScroll"&&Gt("scroll",s),_||U===Q||(_=[])):(_=_||[]).push(le,Q))}g&&(_=_||[]).push("style",g);var le=_;(u.updateQueue=le)&&(u.flags|=4)}},o5=function(s,u,g,w){g!==w&&(u.flags|=4)};function Kc(s,u){if(!Yt)switch(s.tailMode){case"hidden":u=s.tail;for(var g=null;u!==null;)u.alternate!==null&&(g=u),u=u.sibling;g===null?s.tail=null:g.sibling=null;break;case"collapsed":g=s.tail;for(var w=null;g!==null;)g.alternate!==null&&(w=g),g=g.sibling;w===null?u||s.tail===null?s.tail=null:s.tail.sibling=null:w.sibling=null}}function Yr(s){var u=s.alternate!==null&&s.alternate.child===s.child,g=0,w=0;if(u)for(var j=s.child;j!==null;)g|=j.lanes|j.childLanes,w|=j.subtreeFlags&14680064,w|=j.flags&14680064,j.return=s,j=j.sibling;else for(j=s.child;j!==null;)g|=j.lanes|j.childLanes,w|=j.subtreeFlags,w|=j.flags,j.return=s,j=j.sibling;return s.subtreeFlags|=w,s.childLanes=g,u}function PR(s,u,g){var w=u.pendingProps;switch(Mh(u),u.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yr(u),null;case 1:return ho(u.type)&&mf(),Yr(u),null;case 3:return w=u.stateNode,ol(),Zt(go),Zt(Kr),Zh(),w.pendingContext&&(w.context=w.pendingContext,w.pendingContext=null),(s===null||s.child===null)&&(yf(u)?u.flags|=4:s===null||s.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,kn!==null&&(B0(kn),kn=null))),p0(s,u),Yr(u),null;case 5:Uh(u);var j=rs(Vc.current);if(g=u.type,s!==null&&u.stateNode!=null)r5(s,u,g,w,j),s.ref!==u.ref&&(u.flags|=512,u.flags|=2097152);else{if(!w){if(u.stateNode===null)throw Error(r(166));return Yr(u),null}if(s=rs(Yn.current),yf(u)){w=u.stateNode,g=u.type;var _=u.memoizedProps;switch(w[Xn]=u,w[Ac]=_,s=(u.mode&1)!==0,g){case"dialog":Gt("cancel",w),Gt("close",w);break;case"iframe":case"object":case"embed":Gt("load",w);break;case"video":case"audio":for(j=0;j<qc.length;j++)Gt(qc[j],w);break;case"source":Gt("error",w);break;case"img":case"image":case"link":Gt("error",w),Gt("load",w);break;case"details":Gt("toggle",w);break;case"input":Qt(w,_),Gt("invalid",w);break;case"select":w._wrapperState={wasMultiple:!!_.multiple},Gt("invalid",w);break;case"textarea":po(w,_),Gt("invalid",w)}We(g,_),j=null;for(var P in _)if(_.hasOwnProperty(P)){var U=_[P];P==="children"?typeof U=="string"?w.textContent!==U&&(_.suppressHydrationWarning!==!0&&df(w.textContent,U,s),j=["children",U]):typeof U=="number"&&w.textContent!==""+U&&(_.suppressHydrationWarning!==!0&&df(w.textContent,U,s),j=["children",""+U]):n.hasOwnProperty(P)&&U!=null&&P==="onScroll"&&Gt("scroll",w)}switch(g){case"input":lt(w),hr(w,_,!0);break;case"textarea":lt(w),vn(w);break;case"select":case"option":break;default:typeof _.onClick=="function"&&(w.onclick=ff)}w=j,u.updateQueue=w,w!==null&&(u.flags|=4)}else{P=j.nodeType===9?j:j.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=mo(g)),s==="http://www.w3.org/1999/xhtml"?g==="script"?(s=P.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof w.is=="string"?s=P.createElement(g,{is:w.is}):(s=P.createElement(g),g==="select"&&(P=s,w.multiple?P.multiple=!0:w.size&&(P.size=w.size))):s=P.createElementNS(s,g),s[Xn]=u,s[Ac]=w,t5(s,u,!1,!1),u.stateNode=s;e:{switch(P=Je(g,w),g){case"dialog":Gt("cancel",s),Gt("close",s),j=w;break;case"iframe":case"object":case"embed":Gt("load",s),j=w;break;case"video":case"audio":for(j=0;j<qc.length;j++)Gt(qc[j],s);j=w;break;case"source":Gt("error",s),j=w;break;case"img":case"image":case"link":Gt("error",s),Gt("load",s),j=w;break;case"details":Gt("toggle",s),j=w;break;case"input":Qt(s,w),j=vt(s,w),Gt("invalid",s);break;case"option":j=w;break;case"select":s._wrapperState={wasMultiple:!!w.multiple},j=ee({},w,{value:void 0}),Gt("invalid",s);break;case"textarea":po(s,w),j=ur(s,w),Gt("invalid",s);break;default:j=w}We(g,j),U=j;for(_ in U)if(U.hasOwnProperty(_)){var Q=U[_];_==="style"?Ce(s,Q):_==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,Q!=null&&Zr(s,Q)):_==="children"?typeof Q=="string"?(g!=="textarea"||Q!=="")&&Ar(s,Q):typeof Q=="number"&&Ar(s,""+Q):_!=="suppressContentEditableWarning"&&_!=="suppressHydrationWarning"&&_!=="autoFocus"&&(n.hasOwnProperty(_)?Q!=null&&_==="onScroll"&&Gt("scroll",s):Q!=null&&B(s,_,Q,P))}switch(g){case"input":lt(s),hr(s,w,!1);break;case"textarea":lt(s),vn(s);break;case"option":w.value!=null&&s.setAttribute("value",""+Te(w.value));break;case"select":s.multiple=!!w.multiple,_=w.value,_!=null?zt(s,!!w.multiple,_,!1):w.defaultValue!=null&&zt(s,!!w.multiple,w.defaultValue,!0);break;default:typeof j.onClick=="function"&&(s.onclick=ff)}switch(g){case"button":case"input":case"select":case"textarea":w=!!w.autoFocus;break e;case"img":w=!0;break e;default:w=!1}}w&&(u.flags|=4)}u.ref!==null&&(u.flags|=512,u.flags|=2097152)}return Yr(u),null;case 6:if(s&&u.stateNode!=null)o5(s,u,s.memoizedProps,w);else{if(typeof w!="string"&&u.stateNode===null)throw Error(r(166));if(g=rs(Vc.current),rs(Yn.current),yf(u)){if(w=u.stateNode,g=u.memoizedProps,w[Xn]=u,(_=w.nodeValue!==g)&&(s=Do,s!==null))switch(s.tag){case 3:df(w.nodeValue,g,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&df(w.nodeValue,g,(s.mode&1)!==0)}_&&(u.flags|=4)}else w=(g.nodeType===9?g:g.ownerDocument).createTextNode(w),w[Xn]=u,u.stateNode=w}return Yr(u),null;case 13:if(Zt(or),w=u.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(Yt&&Eo!==null&&(u.mode&1)!==0&&(u.flags&128)===0)ik(),Qs(),u.flags|=98560,_=!1;else if(_=yf(u),w!==null&&w.dehydrated!==null){if(s===null){if(!_)throw Error(r(318));if(_=u.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error(r(317));_[Xn]=u}else Qs(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;Yr(u),_=!1}else kn!==null&&(B0(kn),kn=null),_=!0;if(!_)return u.flags&65536?u:null}return(u.flags&128)!==0?(u.lanes=g,u):(w=w!==null,w!==(s!==null&&s.memoizedState!==null)&&w&&(u.child.flags|=8192,(u.mode&1)!==0&&(s===null||(or.current&1)!==0?Tr===0&&(Tr=3):N0())),u.updateQueue!==null&&(u.flags|=4),Yr(u),null);case 4:return ol(),p0(s,u),s===null&&Fc(u.stateNode.containerInfo),Yr(u),null;case 10:return Lh(u.type._context),Yr(u),null;case 17:return ho(u.type)&&mf(),Yr(u),null;case 19:if(Zt(or),_=u.memoizedState,_===null)return Yr(u),null;if(w=(u.flags&128)!==0,P=_.rendering,P===null)if(w)Kc(_,!1);else{if(Tr!==0||s!==null&&(s.flags&128)!==0)for(s=u.child;s!==null;){if(P=jf(s),P!==null){for(u.flags|=128,Kc(_,!1),w=P.updateQueue,w!==null&&(u.updateQueue=w,u.flags|=4),u.subtreeFlags=0,w=g,g=u.child;g!==null;)_=g,s=w,_.flags&=14680066,P=_.alternate,P===null?(_.childLanes=0,_.lanes=s,_.child=null,_.subtreeFlags=0,_.memoizedProps=null,_.memoizedState=null,_.updateQueue=null,_.dependencies=null,_.stateNode=null):(_.childLanes=P.childLanes,_.lanes=P.lanes,_.child=P.child,_.subtreeFlags=0,_.deletions=null,_.memoizedProps=P.memoizedProps,_.memoizedState=P.memoizedState,_.updateQueue=P.updateQueue,_.type=P.type,s=P.dependencies,_.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),g=g.sibling;return It(or,or.current&1|2),u.child}s=s.sibling}_.tail!==null&&xr()>sl&&(u.flags|=128,w=!0,Kc(_,!1),u.lanes=4194304)}else{if(!w)if(s=jf(P),s!==null){if(u.flags|=128,w=!0,g=s.updateQueue,g!==null&&(u.updateQueue=g,u.flags|=4),Kc(_,!0),_.tail===null&&_.tailMode==="hidden"&&!P.alternate&&!Yt)return Yr(u),null}else 2*xr()-_.renderingStartTime>sl&&g!==1073741824&&(u.flags|=128,w=!0,Kc(_,!1),u.lanes=4194304);_.isBackwards?(P.sibling=u.child,u.child=P):(g=_.last,g!==null?g.sibling=P:u.child=P,_.last=P)}return _.tail!==null?(u=_.tail,_.rendering=u,_.tail=u.sibling,_.renderingStartTime=xr(),u.sibling=null,g=or.current,It(or,w?g&1|2:g&1),u):(Yr(u),null);case 22:case 23:return C0(),w=u.memoizedState!==null,s!==null&&s.memoizedState!==null!==w&&(u.flags|=8192),w&&(u.mode&1)!==0?(Po&1073741824)!==0&&(Yr(u),u.subtreeFlags&6&&(u.flags|=8192)):Yr(u),null;case 24:return null;case 25:return null}throw Error(r(156,u.tag))}function MR(s,u){switch(Mh(u),u.tag){case 1:return ho(u.type)&&mf(),s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 3:return ol(),Zt(go),Zt(Kr),Zh(),s=u.flags,(s&65536)!==0&&(s&128)===0?(u.flags=s&-65537|128,u):null;case 5:return Uh(u),null;case 13:if(Zt(or),s=u.memoizedState,s!==null&&s.dehydrated!==null){if(u.alternate===null)throw Error(r(340));Qs()}return s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 19:return Zt(or),null;case 4:return ol(),null;case 10:return Lh(u.type._context),null;case 22:case 23:return C0(),null;case 24:return null;default:return null}}var Pf=!1,Jr=!1,qR=typeof WeakSet=="function"?WeakSet:Set,qe=null;function al(s,u){var g=s.ref;if(g!==null)if(typeof g=="function")try{g(null)}catch(w){dr(s,u,w)}else g.current=null}function m0(s,u,g){try{g()}catch(w){dr(s,u,w)}}var n5=!1;function FR(s,u){if(Ch=Qd,s=qw(),bh(s)){if("selectionStart"in s)var g={start:s.selectionStart,end:s.selectionEnd};else e:{g=(g=s.ownerDocument)&&g.defaultView||window;var w=g.getSelection&&g.getSelection();if(w&&w.rangeCount!==0){g=w.anchorNode;var j=w.anchorOffset,_=w.focusNode;w=w.focusOffset;try{g.nodeType,_.nodeType}catch{g=null;break e}var P=0,U=-1,Q=-1,le=0,ye=0,we=s,ve=null;t:for(;;){for(var De;we!==g||j!==0&&we.nodeType!==3||(U=P+j),we!==_||w!==0&&we.nodeType!==3||(Q=P+w),we.nodeType===3&&(P+=we.nodeValue.length),(De=we.firstChild)!==null;)ve=we,we=De;for(;;){if(we===s)break t;if(ve===g&&++le===j&&(U=P),ve===_&&++ye===w&&(Q=P),(De=we.nextSibling)!==null)break;we=ve,ve=we.parentNode}we=De}g=U===-1||Q===-1?null:{start:U,end:Q}}else g=null}g=g||{start:0,end:0}}else g=null;for(Nh={focusedElem:s,selectionRange:g},Qd=!1,qe=u;qe!==null;)if(u=qe,s=u.child,(u.subtreeFlags&1028)!==0&&s!==null)s.return=u,qe=s;else for(;qe!==null;){u=qe;try{var Fe=u.alternate;if((u.flags&1024)!==0)switch(u.tag){case 0:case 11:case 15:break;case 1:if(Fe!==null){var Ae=Fe.memoizedProps,wr=Fe.memoizedState,ae=u.stateNode,re=ae.getSnapshotBeforeUpdate(u.elementType===u.type?Ae:Sn(u.type,Ae),wr);ae.__reactInternalSnapshotBeforeUpdate=re}break;case 3:var se=u.stateNode.containerInfo;se.nodeType===1?se.textContent="":se.nodeType===9&&se.documentElement&&se.removeChild(se.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Se){dr(u,u.return,Se)}if(s=u.sibling,s!==null){s.return=u.return,qe=s;break}qe=u.return}return Fe=n5,n5=!1,Fe}function Xc(s,u,g){var w=u.updateQueue;if(w=w!==null?w.lastEffect:null,w!==null){var j=w=w.next;do{if((j.tag&s)===s){var _=j.destroy;j.destroy=void 0,_!==void 0&&m0(u,g,_)}j=j.next}while(j!==w)}}function Mf(s,u){if(u=u.updateQueue,u=u!==null?u.lastEffect:null,u!==null){var g=u=u.next;do{if((g.tag&s)===s){var w=g.create;g.destroy=w()}g=g.next}while(g!==u)}}function g0(s){var u=s.ref;if(u!==null){var g=s.stateNode;s.tag,s=g,typeof u=="function"?u(s):u.current=s}}function a5(s){var u=s.alternate;u!==null&&(s.alternate=null,a5(u)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(u=s.stateNode,u!==null&&(delete u[Xn],delete u[Ac],delete u[Rh],delete u[yR],delete u[xR])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function i5(s){return s.tag===5||s.tag===3||s.tag===4}function s5(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||i5(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function h0(s,u,g){var w=s.tag;if(w===5||w===6)s=s.stateNode,u?g.nodeType===8?g.parentNode.insertBefore(s,u):g.insertBefore(s,u):(g.nodeType===8?(u=g.parentNode,u.insertBefore(s,g)):(u=g,u.appendChild(s)),g=g._reactRootContainer,g!=null||u.onclick!==null||(u.onclick=ff));else if(w!==4&&(s=s.child,s!==null))for(h0(s,u,g),s=s.sibling;s!==null;)h0(s,u,g),s=s.sibling}function v0(s,u,g){var w=s.tag;if(w===5||w===6)s=s.stateNode,u?g.insertBefore(s,u):g.appendChild(s);else if(w!==4&&(s=s.child,s!==null))for(v0(s,u,g),s=s.sibling;s!==null;)v0(s,u,g),s=s.sibling}var Lr=null,Bn=!1;function fi(s,u,g){for(g=g.child;g!==null;)l5(s,u,g),g=g.sibling}function l5(s,u,g){if(Kn&&typeof Kn.onCommitFiberUnmount=="function")try{Kn.onCommitFiberUnmount(Gd,g)}catch{}switch(g.tag){case 5:Jr||al(g,u);case 6:var w=Lr,j=Bn;Lr=null,fi(s,u,g),Lr=w,Bn=j,Lr!==null&&(Bn?(s=Lr,g=g.stateNode,s.nodeType===8?s.parentNode.removeChild(g):s.removeChild(g)):Lr.removeChild(g.stateNode));break;case 18:Lr!==null&&(Bn?(s=Lr,g=g.stateNode,s.nodeType===8?_h(s.parentNode,g):s.nodeType===1&&_h(s,g),zc(s)):_h(Lr,g.stateNode));break;case 4:w=Lr,j=Bn,Lr=g.stateNode.containerInfo,Bn=!0,fi(s,u,g),Lr=w,Bn=j;break;case 0:case 11:case 14:case 15:if(!Jr&&(w=g.updateQueue,w!==null&&(w=w.lastEffect,w!==null))){j=w=w.next;do{var _=j,P=_.destroy;_=_.tag,P!==void 0&&((_&2)!==0||(_&4)!==0)&&m0(g,u,P),j=j.next}while(j!==w)}fi(s,u,g);break;case 1:if(!Jr&&(al(g,u),w=g.stateNode,typeof w.componentWillUnmount=="function"))try{w.props=g.memoizedProps,w.state=g.memoizedState,w.componentWillUnmount()}catch(U){dr(g,u,U)}fi(s,u,g);break;case 21:fi(s,u,g);break;case 22:g.mode&1?(Jr=(w=Jr)||g.memoizedState!==null,fi(s,u,g),Jr=w):fi(s,u,g);break;default:fi(s,u,g)}}function c5(s){var u=s.updateQueue;if(u!==null){s.updateQueue=null;var g=s.stateNode;g===null&&(g=s.stateNode=new qR),u.forEach(function(w){var j=UR.bind(null,s,w);g.has(w)||(g.add(w),w.then(j,j))})}}function jn(s,u){var g=u.deletions;if(g!==null)for(var w=0;w<g.length;w++){var j=g[w];try{var _=s,P=u,U=P;e:for(;U!==null;){switch(U.tag){case 5:Lr=U.stateNode,Bn=!1;break e;case 3:Lr=U.stateNode.containerInfo,Bn=!0;break e;case 4:Lr=U.stateNode.containerInfo,Bn=!0;break e}U=U.return}if(Lr===null)throw Error(r(160));l5(_,P,j),Lr=null,Bn=!1;var Q=j.alternate;Q!==null&&(Q.return=null),j.return=null}catch(le){dr(j,u,le)}}if(u.subtreeFlags&12854)for(u=u.child;u!==null;)u5(u,s),u=u.sibling}function u5(s,u){var g=s.alternate,w=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(jn(u,s),Qn(s),w&4){try{Xc(3,s,s.return),Mf(3,s)}catch(Ae){dr(s,s.return,Ae)}try{Xc(5,s,s.return)}catch(Ae){dr(s,s.return,Ae)}}break;case 1:jn(u,s),Qn(s),w&512&&g!==null&&al(g,g.return);break;case 5:if(jn(u,s),Qn(s),w&512&&g!==null&&al(g,g.return),s.flags&32){var j=s.stateNode;try{Ar(j,"")}catch(Ae){dr(s,s.return,Ae)}}if(w&4&&(j=s.stateNode,j!=null)){var _=s.memoizedProps,P=g!==null?g.memoizedProps:_,U=s.type,Q=s.updateQueue;if(s.updateQueue=null,Q!==null)try{U==="input"&&_.type==="radio"&&_.name!=null&&pt(j,_),Je(U,P);var le=Je(U,_);for(P=0;P<Q.length;P+=2){var ye=Q[P],we=Q[P+1];ye==="style"?Ce(j,we):ye==="dangerouslySetInnerHTML"?Zr(j,we):ye==="children"?Ar(j,we):B(j,ye,we,le)}switch(U){case"input":Mt(j,_);break;case"textarea":Gr(j,_);break;case"select":var ve=j._wrapperState.wasMultiple;j._wrapperState.wasMultiple=!!_.multiple;var De=_.value;De!=null?zt(j,!!_.multiple,De,!1):ve!==!!_.multiple&&(_.defaultValue!=null?zt(j,!!_.multiple,_.defaultValue,!0):zt(j,!!_.multiple,_.multiple?[]:"",!1))}j[Ac]=_}catch(Ae){dr(s,s.return,Ae)}}break;case 6:if(jn(u,s),Qn(s),w&4){if(s.stateNode===null)throw Error(r(162));j=s.stateNode,_=s.memoizedProps;try{j.nodeValue=_}catch(Ae){dr(s,s.return,Ae)}}break;case 3:if(jn(u,s),Qn(s),w&4&&g!==null&&g.memoizedState.isDehydrated)try{zc(u.containerInfo)}catch(Ae){dr(s,s.return,Ae)}break;case 4:jn(u,s),Qn(s);break;case 13:jn(u,s),Qn(s),j=s.child,j.flags&8192&&(_=j.memoizedState!==null,j.stateNode.isHidden=_,!_||j.alternate!==null&&j.alternate.memoizedState!==null||(x0=xr())),w&4&&c5(s);break;case 22:if(ye=g!==null&&g.memoizedState!==null,s.mode&1?(Jr=(le=Jr)||ye,jn(u,s),Jr=le):jn(u,s),Qn(s),w&8192){if(le=s.memoizedState!==null,(s.stateNode.isHidden=le)&&!ye&&(s.mode&1)!==0)for(qe=s,ye=s.child;ye!==null;){for(we=qe=ye;qe!==null;){switch(ve=qe,De=ve.child,ve.tag){case 0:case 11:case 14:case 15:Xc(4,ve,ve.return);break;case 1:al(ve,ve.return);var Fe=ve.stateNode;if(typeof Fe.componentWillUnmount=="function"){w=ve,g=ve.return;try{u=w,Fe.props=u.memoizedProps,Fe.state=u.memoizedState,Fe.componentWillUnmount()}catch(Ae){dr(w,g,Ae)}}break;case 5:al(ve,ve.return);break;case 22:if(ve.memoizedState!==null){p5(we);continue}}De!==null?(De.return=ve,qe=De):p5(we)}ye=ye.sibling}e:for(ye=null,we=s;;){if(we.tag===5){if(ye===null){ye=we;try{j=we.stateNode,le?(_=j.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none"):(U=we.stateNode,Q=we.memoizedProps.style,P=Q!=null&&Q.hasOwnProperty("display")?Q.display:null,U.style.display=bn("display",P))}catch(Ae){dr(s,s.return,Ae)}}}else if(we.tag===6){if(ye===null)try{we.stateNode.nodeValue=le?"":we.memoizedProps}catch(Ae){dr(s,s.return,Ae)}}else if((we.tag!==22&&we.tag!==23||we.memoizedState===null||we===s)&&we.child!==null){we.child.return=we,we=we.child;continue}if(we===s)break e;for(;we.sibling===null;){if(we.return===null||we.return===s)break e;ye===we&&(ye=null),we=we.return}ye===we&&(ye=null),we.sibling.return=we.return,we=we.sibling}}break;case 19:jn(u,s),Qn(s),w&4&&c5(s);break;case 21:break;default:jn(u,s),Qn(s)}}function Qn(s){var u=s.flags;if(u&2){try{e:{for(var g=s.return;g!==null;){if(i5(g)){var w=g;break e}g=g.return}throw Error(r(160))}switch(w.tag){case 5:var j=w.stateNode;w.flags&32&&(Ar(j,""),w.flags&=-33);var _=s5(s);v0(s,_,j);break;case 3:case 4:var P=w.stateNode.containerInfo,U=s5(s);h0(s,U,P);break;default:throw Error(r(161))}}catch(Q){dr(s,s.return,Q)}s.flags&=-3}u&4096&&(s.flags&=-4097)}function IR(s,u,g){qe=s,d5(s)}function d5(s,u,g){for(var w=(s.mode&1)!==0;qe!==null;){var j=qe,_=j.child;if(j.tag===22&&w){var P=j.memoizedState!==null||Pf;if(!P){var U=j.alternate,Q=U!==null&&U.memoizedState!==null||Jr;U=Pf;var le=Jr;if(Pf=P,(Jr=Q)&&!le)for(qe=j;qe!==null;)P=qe,Q=P.child,P.tag===22&&P.memoizedState!==null?m5(j):Q!==null?(Q.return=P,qe=Q):m5(j);for(;_!==null;)qe=_,d5(_),_=_.sibling;qe=j,Pf=U,Jr=le}f5(s)}else(j.subtreeFlags&8772)!==0&&_!==null?(_.return=j,qe=_):f5(s)}}function f5(s){for(;qe!==null;){var u=qe;if((u.flags&8772)!==0){var g=u.alternate;try{if((u.flags&8772)!==0)switch(u.tag){case 0:case 11:case 15:Jr||Mf(5,u);break;case 1:var w=u.stateNode;if(u.flags&4&&!Jr)if(g===null)w.componentDidMount();else{var j=u.elementType===u.type?g.memoizedProps:Sn(u.type,g.memoizedProps);w.componentDidUpdate(j,g.memoizedState,w.__reactInternalSnapshotBeforeUpdate)}var _=u.updateQueue;_!==null&&pk(u,_,w);break;case 3:var P=u.updateQueue;if(P!==null){if(g=null,u.child!==null)switch(u.child.tag){case 5:g=u.child.stateNode;break;case 1:g=u.child.stateNode}pk(u,P,g)}break;case 5:var U=u.stateNode;if(g===null&&u.flags&4){g=U;var Q=u.memoizedProps;switch(u.type){case"button":case"input":case"select":case"textarea":Q.autoFocus&&g.focus();break;case"img":Q.src&&(g.src=Q.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(u.memoizedState===null){var le=u.alternate;if(le!==null){var ye=le.memoizedState;if(ye!==null){var we=ye.dehydrated;we!==null&&zc(we)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Jr||u.flags&512&&g0(u)}catch(ve){dr(u,u.return,ve)}}if(u===s){qe=null;break}if(g=u.sibling,g!==null){g.return=u.return,qe=g;break}qe=u.return}}function p5(s){for(;qe!==null;){var u=qe;if(u===s){qe=null;break}var g=u.sibling;if(g!==null){g.return=u.return,qe=g;break}qe=u.return}}function m5(s){for(;qe!==null;){var u=qe;try{switch(u.tag){case 0:case 11:case 15:var g=u.return;try{Mf(4,u)}catch(Q){dr(u,g,Q)}break;case 1:var w=u.stateNode;if(typeof w.componentDidMount=="function"){var j=u.return;try{w.componentDidMount()}catch(Q){dr(u,j,Q)}}var _=u.return;try{g0(u)}catch(Q){dr(u,_,Q)}break;case 5:var P=u.return;try{g0(u)}catch(Q){dr(u,P,Q)}}}catch(Q){dr(u,u.return,Q)}if(u===s){qe=null;break}var U=u.sibling;if(U!==null){U.return=u.return,qe=U;break}qe=u.return}}var AR=Math.ceil,qf=C.ReactCurrentDispatcher,b0=C.ReactCurrentOwner,Jo=C.ReactCurrentBatchConfig,yt=0,Mr=null,Br=null,$r=0,Po=0,il=si(0),Tr=0,Yc=null,ns=0,Ff=0,y0=0,Jc=null,bo=null,x0=0,sl=1/0,Ba=null,If=!1,w0=null,pi=null,Af=!1,mi=null,Of=0,Qc=0,k0=null,Lf=-1,$f=0;function so(){return(yt&6)!==0?xr():Lf!==-1?Lf:Lf=xr()}function gi(s){return(s.mode&1)===0?1:(yt&2)!==0&&$r!==0?$r&-$r:kR.transition!==null?($f===0&&($f=sw()),$f):(s=Dt,s!==0||(s=window.event,s=s===void 0?16:hw(s.type)),s)}function Cn(s,u,g,w){if(50<Qc)throw Qc=0,k0=null,Error(r(185));Sc(s,g,w),((yt&2)===0||s!==Mr)&&(s===Mr&&((yt&2)===0&&(Ff|=g),Tr===4&&hi(s,$r)),yo(s,w),g===1&&yt===0&&(u.mode&1)===0&&(sl=xr()+500,hf&&ci()))}function yo(s,u){var g=s.callbackNode;k9(s,u);var w=Xd(s,s===Mr?$r:0);if(w===0)g!==null&&nw(g),s.callbackNode=null,s.callbackPriority=0;else if(u=w&-w,s.callbackPriority!==u){if(g!=null&&nw(g),u===1)s.tag===0?wR(h5.bind(null,s)):tk(h5.bind(null,s)),vR(function(){(yt&6)===0&&ci()}),g=null;else{switch(lw(w)){case 1:g=th;break;case 4:g=aw;break;case 16:g=Ud;break;case 536870912:g=iw;break;default:g=Ud}g=B5(g,g5.bind(null,s))}s.callbackPriority=u,s.callbackNode=g}}function g5(s,u){if(Lf=-1,$f=0,(yt&6)!==0)throw Error(r(327));var g=s.callbackNode;if(ll()&&s.callbackNode!==g)return null;var w=Xd(s,s===Mr?$r:0);if(w===0)return null;if((w&30)!==0||(w&s.expiredLanes)!==0||u)u=Hf(s,w);else{u=w;var j=yt;yt|=2;var _=b5();(Mr!==s||$r!==u)&&(Ba=null,sl=xr()+500,is(s,u));do try{$R();break}catch(U){v5(s,U)}while(!0);Oh(),qf.current=_,yt=j,Br!==null?u=0:(Mr=null,$r=0,u=Tr)}if(u!==0){if(u===2&&(j=rh(s),j!==0&&(w=j,u=S0(s,j))),u===1)throw g=Yc,is(s,0),hi(s,w),yo(s,xr()),g;if(u===6)hi(s,w);else{if(j=s.current.alternate,(w&30)===0&&!OR(j)&&(u=Hf(s,w),u===2&&(_=rh(s),_!==0&&(w=_,u=S0(s,_))),u===1))throw g=Yc,is(s,0),hi(s,w),yo(s,xr()),g;switch(s.finishedWork=j,s.finishedLanes=w,u){case 0:case 1:throw Error(r(345));case 2:ss(s,bo,Ba);break;case 3:if(hi(s,w),(w&130023424)===w&&(u=x0+500-xr(),10<u)){if(Xd(s,0)!==0)break;if(j=s.suspendedLanes,(j&w)!==w){so(),s.pingedLanes|=s.suspendedLanes&j;break}s.timeoutHandle=Th(ss.bind(null,s,bo,Ba),u);break}ss(s,bo,Ba);break;case 4:if(hi(s,w),(w&4194240)===w)break;for(u=s.eventTimes,j=-1;0<w;){var P=31-xn(w);_=1<<P,P=u[P],P>j&&(j=P),w&=~_}if(w=j,w=xr()-w,w=(120>w?120:480>w?480:1080>w?1080:1920>w?1920:3e3>w?3e3:4320>w?4320:1960*AR(w/1960))-w,10<w){s.timeoutHandle=Th(ss.bind(null,s,bo,Ba),w);break}ss(s,bo,Ba);break;case 5:ss(s,bo,Ba);break;default:throw Error(r(329))}}}return yo(s,xr()),s.callbackNode===g?g5.bind(null,s):null}function S0(s,u){var g=Jc;return s.current.memoizedState.isDehydrated&&(is(s,u).flags|=256),s=Hf(s,u),s!==2&&(u=bo,bo=g,u!==null&&B0(u)),s}function B0(s){bo===null?bo=s:bo.push.apply(bo,s)}function OR(s){for(var u=s;;){if(u.flags&16384){var g=u.updateQueue;if(g!==null&&(g=g.stores,g!==null))for(var w=0;w<g.length;w++){var j=g[w],_=j.getSnapshot;j=j.value;try{if(!wn(_(),j))return!1}catch{return!1}}}if(g=u.child,u.subtreeFlags&16384&&g!==null)g.return=u,u=g;else{if(u===s)break;for(;u.sibling===null;){if(u.return===null||u.return===s)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function hi(s,u){for(u&=~y0,u&=~Ff,s.suspendedLanes|=u,s.pingedLanes&=~u,s=s.expirationTimes;0<u;){var g=31-xn(u),w=1<<g;s[g]=-1,u&=~w}}function h5(s){if((yt&6)!==0)throw Error(r(327));ll();var u=Xd(s,0);if((u&1)===0)return yo(s,xr()),null;var g=Hf(s,u);if(s.tag!==0&&g===2){var w=rh(s);w!==0&&(u=w,g=S0(s,w))}if(g===1)throw g=Yc,is(s,0),hi(s,u),yo(s,xr()),g;if(g===6)throw Error(r(345));return s.finishedWork=s.current.alternate,s.finishedLanes=u,ss(s,bo,Ba),yo(s,xr()),null}function j0(s,u){var g=yt;yt|=1;try{return s(u)}finally{yt=g,yt===0&&(sl=xr()+500,hf&&ci())}}function as(s){mi!==null&&mi.tag===0&&(yt&6)===0&&ll();var u=yt;yt|=1;var g=Jo.transition,w=Dt;try{if(Jo.transition=null,Dt=1,s)return s()}finally{Dt=w,Jo.transition=g,yt=u,(yt&6)===0&&ci()}}function C0(){Po=il.current,Zt(il)}function is(s,u){s.finishedWork=null,s.finishedLanes=0;var g=s.timeoutHandle;if(g!==-1&&(s.timeoutHandle=-1,hR(g)),Br!==null)for(g=Br.return;g!==null;){var w=g;switch(Mh(w),w.tag){case 1:w=w.type.childContextTypes,w!=null&&mf();break;case 3:ol(),Zt(go),Zt(Kr),Zh();break;case 5:Uh(w);break;case 4:ol();break;case 13:Zt(or);break;case 19:Zt(or);break;case 10:Lh(w.type._context);break;case 22:case 23:C0()}g=g.return}if(Mr=s,Br=s=vi(s.current,null),$r=Po=u,Tr=0,Yc=null,y0=Ff=ns=0,bo=Jc=null,ts!==null){for(u=0;u<ts.length;u++)if(g=ts[u],w=g.interleaved,w!==null){g.interleaved=null;var j=w.next,_=g.pending;if(_!==null){var P=_.next;_.next=j,w.next=P}g.pending=w}ts=null}return s}function v5(s,u){do{var g=Br;try{if(Oh(),Cf.current=_f,Nf){for(var w=nr.memoizedState;w!==null;){var j=w.queue;j!==null&&(j.pending=null),w=w.next}Nf=!1}if(os=0,Pr=zr=nr=null,Wc=!1,Uc=0,b0.current=null,g===null||g.return===null){Tr=1,Yc=u,Br=null;break}e:{var _=s,P=g.return,U=g,Q=u;if(u=$r,U.flags|=32768,Q!==null&&typeof Q=="object"&&typeof Q.then=="function"){var le=Q,ye=U,we=ye.tag;if((ye.mode&1)===0&&(we===0||we===11||we===15)){var ve=ye.alternate;ve?(ye.updateQueue=ve.updateQueue,ye.memoizedState=ve.memoizedState,ye.lanes=ve.lanes):(ye.updateQueue=null,ye.memoizedState=null)}var De=$k(P);if(De!==null){De.flags&=-257,Hk(De,P,U,_,u),De.mode&1&&Lk(_,le,u),u=De,Q=le;var Fe=u.updateQueue;if(Fe===null){var Ae=new Set;Ae.add(Q),u.updateQueue=Ae}else Fe.add(Q);break e}else{if((u&1)===0){Lk(_,le,u),N0();break e}Q=Error(r(426))}}else if(Yt&&U.mode&1){var wr=$k(P);if(wr!==null){(wr.flags&65536)===0&&(wr.flags|=256),Hk(wr,P,U,_,u),Ih(nl(Q,U));break e}}_=Q=nl(Q,U),Tr!==4&&(Tr=2),Jc===null?Jc=[_]:Jc.push(_),_=P;do{switch(_.tag){case 3:_.flags|=65536,u&=-u,_.lanes|=u;var ae=Ak(_,Q,u);fk(_,ae);break e;case 1:U=Q;var re=_.type,se=_.stateNode;if((_.flags&128)===0&&(typeof re.getDerivedStateFromError=="function"||se!==null&&typeof se.componentDidCatch=="function"&&(pi===null||!pi.has(se)))){_.flags|=65536,u&=-u,_.lanes|=u;var Se=Ok(_,U,u);fk(_,Se);break e}}_=_.return}while(_!==null)}x5(g)}catch(Oe){u=Oe,Br===g&&g!==null&&(Br=g=g.return);continue}break}while(!0)}function b5(){var s=qf.current;return qf.current=_f,s===null?_f:s}function N0(){(Tr===0||Tr===3||Tr===2)&&(Tr=4),Mr===null||(ns&268435455)===0&&(Ff&268435455)===0||hi(Mr,$r)}function Hf(s,u){var g=yt;yt|=2;var w=b5();(Mr!==s||$r!==u)&&(Ba=null,is(s,u));do try{LR();break}catch(j){v5(s,j)}while(!0);if(Oh(),yt=g,qf.current=w,Br!==null)throw Error(r(261));return Mr=null,$r=0,Tr}function LR(){for(;Br!==null;)y5(Br)}function $R(){for(;Br!==null&&!p9();)y5(Br)}function y5(s){var u=S5(s.alternate,s,Po);s.memoizedProps=s.pendingProps,u===null?x5(s):Br=u,b0.current=null}function x5(s){var u=s;do{var g=u.alternate;if(s=u.return,(u.flags&32768)===0){if(g=PR(g,u,Po),g!==null){Br=g;return}}else{if(g=MR(g,u),g!==null){g.flags&=32767,Br=g;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{Tr=6,Br=null;return}}if(u=u.sibling,u!==null){Br=u;return}Br=u=s}while(u!==null);Tr===0&&(Tr=5)}function ss(s,u,g){var w=Dt,j=Jo.transition;try{Jo.transition=null,Dt=1,HR(s,u,g,w)}finally{Jo.transition=j,Dt=w}return null}function HR(s,u,g,w){do ll();while(mi!==null);if((yt&6)!==0)throw Error(r(327));g=s.finishedWork;var j=s.finishedLanes;if(g===null)return null;if(s.finishedWork=null,s.finishedLanes=0,g===s.current)throw Error(r(177));s.callbackNode=null,s.callbackPriority=0;var _=g.lanes|g.childLanes;if(S9(s,_),s===Mr&&(Br=Mr=null,$r=0),(g.subtreeFlags&2064)===0&&(g.flags&2064)===0||Af||(Af=!0,B5(Ud,function(){return ll(),null})),_=(g.flags&15990)!==0,(g.subtreeFlags&15990)!==0||_){_=Jo.transition,Jo.transition=null;var P=Dt;Dt=1;var U=yt;yt|=4,b0.current=null,FR(s,g),u5(g,s),cR(Nh),Qd=!!Ch,Nh=Ch=null,s.current=g,IR(g),m9(),yt=U,Dt=P,Jo.transition=_}else s.current=g;if(Af&&(Af=!1,mi=s,Of=j),_=s.pendingLanes,_===0&&(pi=null),v9(g.stateNode),yo(s,xr()),u!==null)for(w=s.onRecoverableError,g=0;g<u.length;g++)j=u[g],w(j.value,{componentStack:j.stack,digest:j.digest});if(If)throw If=!1,s=w0,w0=null,s;return(Of&1)!==0&&s.tag!==0&&ll(),_=s.pendingLanes,(_&1)!==0?s===k0?Qc++:(Qc=0,k0=s):Qc=0,ci(),null}function ll(){if(mi!==null){var s=lw(Of),u=Jo.transition,g=Dt;try{if(Jo.transition=null,Dt=16>s?16:s,mi===null)var w=!1;else{if(s=mi,mi=null,Of=0,(yt&6)!==0)throw Error(r(331));var j=yt;for(yt|=4,qe=s.current;qe!==null;){var _=qe,P=_.child;if((qe.flags&16)!==0){var U=_.deletions;if(U!==null){for(var Q=0;Q<U.length;Q++){var le=U[Q];for(qe=le;qe!==null;){var ye=qe;switch(ye.tag){case 0:case 11:case 15:Xc(8,ye,_)}var we=ye.child;if(we!==null)we.return=ye,qe=we;else for(;qe!==null;){ye=qe;var ve=ye.sibling,De=ye.return;if(a5(ye),ye===le){qe=null;break}if(ve!==null){ve.return=De,qe=ve;break}qe=De}}}var Fe=_.alternate;if(Fe!==null){var Ae=Fe.child;if(Ae!==null){Fe.child=null;do{var wr=Ae.sibling;Ae.sibling=null,Ae=wr}while(Ae!==null)}}qe=_}}if((_.subtreeFlags&2064)!==0&&P!==null)P.return=_,qe=P;else e:for(;qe!==null;){if(_=qe,(_.flags&2048)!==0)switch(_.tag){case 0:case 11:case 15:Xc(9,_,_.return)}var ae=_.sibling;if(ae!==null){ae.return=_.return,qe=ae;break e}qe=_.return}}var re=s.current;for(qe=re;qe!==null;){P=qe;var se=P.child;if((P.subtreeFlags&2064)!==0&&se!==null)se.return=P,qe=se;else e:for(P=re;qe!==null;){if(U=qe,(U.flags&2048)!==0)try{switch(U.tag){case 0:case 11:case 15:Mf(9,U)}}catch(Oe){dr(U,U.return,Oe)}if(U===P){qe=null;break e}var Se=U.sibling;if(Se!==null){Se.return=U.return,qe=Se;break e}qe=U.return}}if(yt=j,ci(),Kn&&typeof Kn.onPostCommitFiberRoot=="function")try{Kn.onPostCommitFiberRoot(Gd,s)}catch{}w=!0}return w}finally{Dt=g,Jo.transition=u}}return!1}function w5(s,u,g){u=nl(g,u),u=Ak(s,u,1),s=di(s,u,1),u=so(),s!==null&&(Sc(s,1,u),yo(s,u))}function dr(s,u,g){if(s.tag===3)w5(s,s,g);else for(;u!==null;){if(u.tag===3){w5(u,s,g);break}else if(u.tag===1){var w=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof w.componentDidCatch=="function"&&(pi===null||!pi.has(w))){s=nl(g,s),s=Ok(u,s,1),u=di(u,s,1),s=so(),u!==null&&(Sc(u,1,s),yo(u,s));break}}u=u.return}}function VR(s,u,g){var w=s.pingCache;w!==null&&w.delete(u),u=so(),s.pingedLanes|=s.suspendedLanes&g,Mr===s&&($r&g)===g&&(Tr===4||Tr===3&&($r&130023424)===$r&&500>xr()-x0?is(s,0):y0|=g),yo(s,u)}function k5(s,u){u===0&&((s.mode&1)===0?u=1:(u=Kd,Kd<<=1,(Kd&130023424)===0&&(Kd=4194304)));var g=so();s=wa(s,u),s!==null&&(Sc(s,u,g),yo(s,g))}function WR(s){var u=s.memoizedState,g=0;u!==null&&(g=u.retryLane),k5(s,g)}function UR(s,u){var g=0;switch(s.tag){case 13:var w=s.stateNode,j=s.memoizedState;j!==null&&(g=j.retryLane);break;case 19:w=s.stateNode;break;default:throw Error(r(314))}w!==null&&w.delete(u),k5(s,g)}var S5;S5=function(s,u,g){if(s!==null)if(s.memoizedProps!==u.pendingProps||go.current)vo=!0;else{if((s.lanes&g)===0&&(u.flags&128)===0)return vo=!1,ER(s,u,g);vo=(s.flags&131072)!==0}else vo=!1,Yt&&(u.flags&1048576)!==0&&rk(u,bf,u.index);switch(u.lanes=0,u.tag){case 2:var w=u.type;Ef(s,u),s=u.pendingProps;var j=Xs(u,Kr.current);rl(u,g),j=Yh(null,u,w,s,j,g);var _=Jh();return u.flags|=1,typeof j=="object"&&j!==null&&typeof j.render=="function"&&j.$$typeof===void 0?(u.tag=1,u.memoizedState=null,u.updateQueue=null,ho(w)?(_=!0,gf(u)):_=!1,u.memoizedState=j.state!==null&&j.state!==void 0?j.state:null,Vh(u),j.updater=Rf,u.stateNode=j,j._reactInternals=u,n0(u,w,s,g),u=l0(null,u,w,!0,_,g)):(u.tag=0,Yt&&_&&Ph(u),io(null,u,j,g),u=u.child),u;case 16:w=u.elementType;e:{switch(Ef(s,u),s=u.pendingProps,j=w._init,w=j(w._payload),u.type=w,j=u.tag=ZR(w),s=Sn(w,s),j){case 0:u=s0(null,u,w,s,g);break e;case 1:u=Kk(null,u,w,s,g);break e;case 11:u=Vk(null,u,w,s,g);break e;case 14:u=Wk(null,u,w,Sn(w.type,s),g);break e}throw Error(r(306,w,""))}return u;case 0:return w=u.type,j=u.pendingProps,j=u.elementType===w?j:Sn(w,j),s0(s,u,w,j,g);case 1:return w=u.type,j=u.pendingProps,j=u.elementType===w?j:Sn(w,j),Kk(s,u,w,j,g);case 3:e:{if(Xk(u),s===null)throw Error(r(387));w=u.pendingProps,_=u.memoizedState,j=_.element,dk(s,u),Bf(u,w,null,g);var P=u.memoizedState;if(w=P.element,_.isDehydrated)if(_={element:w,isDehydrated:!1,cache:P.cache,pendingSuspenseBoundaries:P.pendingSuspenseBoundaries,transitions:P.transitions},u.updateQueue.baseState=_,u.memoizedState=_,u.flags&256){j=nl(Error(r(423)),u),u=Yk(s,u,w,g,j);break e}else if(w!==j){j=nl(Error(r(424)),u),u=Yk(s,u,w,g,j);break e}else for(Eo=ii(u.stateNode.containerInfo.firstChild),Do=u,Yt=!0,kn=null,g=ck(u,null,w,g),u.child=g;g;)g.flags=g.flags&-3|4096,g=g.sibling;else{if(Qs(),w===j){u=Sa(s,u,g);break e}io(s,u,w,g)}u=u.child}return u;case 5:return mk(u),s===null&&Fh(u),w=u.type,j=u.pendingProps,_=s!==null?s.memoizedProps:null,P=j.children,zh(w,j)?P=null:_!==null&&zh(w,_)&&(u.flags|=32),Zk(s,u),io(s,u,P,g),u.child;case 6:return s===null&&Fh(u),null;case 13:return Jk(s,u,g);case 4:return Wh(u,u.stateNode.containerInfo),w=u.pendingProps,s===null?u.child=el(u,null,w,g):io(s,u,w,g),u.child;case 11:return w=u.type,j=u.pendingProps,j=u.elementType===w?j:Sn(w,j),Vk(s,u,w,j,g);case 7:return io(s,u,u.pendingProps,g),u.child;case 8:return io(s,u,u.pendingProps.children,g),u.child;case 12:return io(s,u,u.pendingProps.children,g),u.child;case 10:e:{if(w=u.type._context,j=u.pendingProps,_=u.memoizedProps,P=j.value,It(wf,w._currentValue),w._currentValue=P,_!==null)if(wn(_.value,P)){if(_.children===j.children&&!go.current){u=Sa(s,u,g);break e}}else for(_=u.child,_!==null&&(_.return=u);_!==null;){var U=_.dependencies;if(U!==null){P=_.child;for(var Q=U.firstContext;Q!==null;){if(Q.context===w){if(_.tag===1){Q=ka(-1,g&-g),Q.tag=2;var le=_.updateQueue;if(le!==null){le=le.shared;var ye=le.pending;ye===null?Q.next=Q:(Q.next=ye.next,ye.next=Q),le.pending=Q}}_.lanes|=g,Q=_.alternate,Q!==null&&(Q.lanes|=g),$h(_.return,g,u),U.lanes|=g;break}Q=Q.next}}else if(_.tag===10)P=_.type===u.type?null:_.child;else if(_.tag===18){if(P=_.return,P===null)throw Error(r(341));P.lanes|=g,U=P.alternate,U!==null&&(U.lanes|=g),$h(P,g,u),P=_.sibling}else P=_.child;if(P!==null)P.return=_;else for(P=_;P!==null;){if(P===u){P=null;break}if(_=P.sibling,_!==null){_.return=P.return,P=_;break}P=P.return}_=P}io(s,u,j.children,g),u=u.child}return u;case 9:return j=u.type,w=u.pendingProps.children,rl(u,g),j=Xo(j),w=w(j),u.flags|=1,io(s,u,w,g),u.child;case 14:return w=u.type,j=Sn(w,u.pendingProps),j=Sn(w.type,j),Wk(s,u,w,j,g);case 15:return Uk(s,u,u.type,u.pendingProps,g);case 17:return w=u.type,j=u.pendingProps,j=u.elementType===w?j:Sn(w,j),Ef(s,u),u.tag=1,ho(w)?(s=!0,gf(u)):s=!1,rl(u,g),Fk(u,w,j),n0(u,w,j,g),l0(null,u,w,!0,s,g);case 19:return e5(s,u,g);case 22:return Gk(s,u,g)}throw Error(r(156,u.tag))};function B5(s,u){return ow(s,u)}function GR(s,u,g,w){this.tag=s,this.key=g,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=w,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qo(s,u,g,w){return new GR(s,u,g,w)}function z0(s){return s=s.prototype,!(!s||!s.isReactComponent)}function ZR(s){if(typeof s=="function")return z0(s)?1:0;if(s!=null){if(s=s.$$typeof,s===H)return 11;if(s===q)return 14}return 2}function vi(s,u){var g=s.alternate;return g===null?(g=Qo(s.tag,u,s.key,s.mode),g.elementType=s.elementType,g.type=s.type,g.stateNode=s.stateNode,g.alternate=s,s.alternate=g):(g.pendingProps=u,g.type=s.type,g.flags=0,g.subtreeFlags=0,g.deletions=null),g.flags=s.flags&14680064,g.childLanes=s.childLanes,g.lanes=s.lanes,g.child=s.child,g.memoizedProps=s.memoizedProps,g.memoizedState=s.memoizedState,g.updateQueue=s.updateQueue,u=s.dependencies,g.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},g.sibling=s.sibling,g.index=s.index,g.ref=s.ref,g}function Vf(s,u,g,w,j,_){var P=2;if(w=s,typeof s=="function")z0(s)&&(P=1);else if(typeof s=="string")P=5;else e:switch(s){case E:return ls(g.children,j,_,u);case D:P=8,j|=8;break;case I:return s=Qo(12,g,u,j|2),s.elementType=I,s.lanes=_,s;case $:return s=Qo(13,g,u,j),s.elementType=$,s.lanes=_,s;case Z:return s=Qo(19,g,u,j),s.elementType=Z,s.lanes=_,s;case X:return Wf(g,j,_,u);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case M:P=10;break e;case O:P=9;break e;case H:P=11;break e;case q:P=14;break e;case A:P=16,w=null;break e}throw Error(r(130,s==null?s:typeof s,""))}return u=Qo(P,g,u,j),u.elementType=s,u.type=w,u.lanes=_,u}function ls(s,u,g,w){return s=Qo(7,s,w,u),s.lanes=g,s}function Wf(s,u,g,w){return s=Qo(22,s,w,u),s.elementType=X,s.lanes=g,s.stateNode={isHidden:!1},s}function T0(s,u,g){return s=Qo(6,s,null,u),s.lanes=g,s}function _0(s,u,g){return u=Qo(4,s.children!==null?s.children:[],s.key,u),u.lanes=g,u.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},u}function KR(s,u,g,w,j){this.tag=u,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=oh(0),this.expirationTimes=oh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oh(0),this.identifierPrefix=w,this.onRecoverableError=j,this.mutableSourceEagerHydrationData=null}function R0(s,u,g,w,j,_,P,U,Q){return s=new KR(s,u,g,U,Q),u===1?(u=1,_===!0&&(u|=8)):u=0,_=Qo(3,null,null,u),s.current=_,_.stateNode=s,_.memoizedState={element:w,isDehydrated:g,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vh(_),s}function XR(s,u,g){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:R,key:w==null?null:""+w,children:s,containerInfo:u,implementation:g}}function j5(s){if(!s)return li;s=s._reactInternals;e:{if(Xi(s)!==s||s.tag!==1)throw Error(r(170));var u=s;do{switch(u.tag){case 3:u=u.stateNode.context;break e;case 1:if(ho(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}}u=u.return}while(u!==null);throw Error(r(171))}if(s.tag===1){var g=s.type;if(ho(g))return Qw(s,g,u)}return u}function C5(s,u,g,w,j,_,P,U,Q){return s=R0(g,w,!0,s,j,_,P,U,Q),s.context=j5(null),g=s.current,w=so(),j=gi(g),_=ka(w,j),_.callback=u??null,di(g,_,j),s.current.lanes=j,Sc(s,j,w),yo(s,w),s}function Uf(s,u,g,w){var j=u.current,_=so(),P=gi(j);return g=j5(g),u.context===null?u.context=g:u.pendingContext=g,u=ka(_,P),u.payload={element:s},w=w===void 0?null:w,w!==null&&(u.callback=w),s=di(j,u,P),s!==null&&(Cn(s,j,P,_),Sf(s,j,P)),P}function Gf(s){return s=s.current,s.child?(s.child.tag===5,s.child.stateNode):null}function N5(s,u){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var g=s.retryLane;s.retryLane=g!==0&&g<u?g:u}}function D0(s,u){N5(s,u),(s=s.alternate)&&N5(s,u)}function YR(){return null}var z5=typeof reportError=="function"?reportError:function(s){console.error(s)};function E0(s){this._internalRoot=s}Zf.prototype.render=E0.prototype.render=function(s){var u=this._internalRoot;if(u===null)throw Error(r(409));Uf(s,u,null,null)},Zf.prototype.unmount=E0.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var u=s.containerInfo;as(function(){Uf(null,s,null,null)}),u[va]=null}};function Zf(s){this._internalRoot=s}Zf.prototype.unstable_scheduleHydration=function(s){if(s){var u=dw();s={blockedOn:null,target:s,priority:u};for(var g=0;g<oi.length&&u!==0&&u<oi[g].priority;g++);oi.splice(g,0,s),g===0&&mw(s)}};function P0(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function Kf(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function T5(){}function JR(s,u,g,w,j){if(j){if(typeof w=="function"){var _=w;w=function(){var le=Gf(P);_.call(le)}}var P=C5(u,w,s,0,null,!1,!1,"",T5);return s._reactRootContainer=P,s[va]=P.current,Fc(s.nodeType===8?s.parentNode:s),as(),P}for(;j=s.lastChild;)s.removeChild(j);if(typeof w=="function"){var U=w;w=function(){var le=Gf(Q);U.call(le)}}var Q=R0(s,0,!1,null,null,!1,!1,"",T5);return s._reactRootContainer=Q,s[va]=Q.current,Fc(s.nodeType===8?s.parentNode:s),as(function(){Uf(u,Q,g,w)}),Q}function Xf(s,u,g,w,j){var _=g._reactRootContainer;if(_){var P=_;if(typeof j=="function"){var U=j;j=function(){var Q=Gf(P);U.call(Q)}}Uf(u,P,s,j)}else P=JR(g,u,s,j,w);return Gf(P)}cw=function(s){switch(s.tag){case 3:var u=s.stateNode;if(u.current.memoizedState.isDehydrated){var g=kc(u.pendingLanes);g!==0&&(nh(u,g|1),yo(u,xr()),(yt&6)===0&&(sl=xr()+500,ci()))}break;case 13:as(function(){var w=wa(s,1);if(w!==null){var j=so();Cn(w,s,1,j)}}),D0(s,1)}},ah=function(s){if(s.tag===13){var u=wa(s,134217728);if(u!==null){var g=so();Cn(u,s,134217728,g)}D0(s,134217728)}},uw=function(s){if(s.tag===13){var u=gi(s),g=wa(s,u);if(g!==null){var w=so();Cn(g,s,u,w)}D0(s,u)}},dw=function(){return Dt},fw=function(s,u){var g=Dt;try{return Dt=s,u()}finally{Dt=g}},Wt=function(s,u,g){switch(u){case"input":if(Mt(s,g),u=g.name,g.type==="radio"&&u!=null){for(g=s;g.parentNode;)g=g.parentNode;for(g=g.querySelectorAll("input[name="+JSON.stringify(""+u)+'][type="radio"]'),u=0;u<g.length;u++){var w=g[u];if(w!==s&&w.form===s.form){var j=pf(w);if(!j)throw Error(r(90));ht(w),Mt(w,j)}}}break;case"textarea":Gr(s,g);break;case"select":u=g.value,u!=null&&zt(s,!!g.multiple,u,!1)}},ze=j0,je=as;var QR={usingClientEntryPoint:!1,Events:[Oc,Zs,pf,Rt,tr,j0]},eu={findFiberByHostInstance:Yi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},eD={bundleType:eu.bundleType,version:eu.version,rendererPackageName:eu.rendererPackageName,rendererConfig:eu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=tw(s),s===null?null:s.stateNode},findFiberByHostInstance:eu.findFiberByHostInstance||YR,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yf.isDisabled&&Yf.supportsFiber)try{Gd=Yf.inject(eD),Kn=Yf}catch{}}return xo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=QR,xo.createPortal=function(s,u){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!P0(u))throw Error(r(200));return XR(s,u,null,g)},xo.createRoot=function(s,u){if(!P0(s))throw Error(r(299));var g=!1,w="",j=z5;return u!=null&&(u.unstable_strictMode===!0&&(g=!0),u.identifierPrefix!==void 0&&(w=u.identifierPrefix),u.onRecoverableError!==void 0&&(j=u.onRecoverableError)),u=R0(s,1,!1,null,null,g,!1,w,j),s[va]=u.current,Fc(s.nodeType===8?s.parentNode:s),new E0(u)},xo.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var u=s._reactInternals;if(u===void 0)throw typeof s.render=="function"?Error(r(188)):(s=Object.keys(s).join(","),Error(r(268,s)));return s=tw(u),s=s===null?null:s.stateNode,s},xo.flushSync=function(s){return as(s)},xo.hydrate=function(s,u,g){if(!Kf(u))throw Error(r(200));return Xf(null,s,u,!0,g)},xo.hydrateRoot=function(s,u,g){if(!P0(s))throw Error(r(405));var w=g!=null&&g.hydratedSources||null,j=!1,_="",P=z5;if(g!=null&&(g.unstable_strictMode===!0&&(j=!0),g.identifierPrefix!==void 0&&(_=g.identifierPrefix),g.onRecoverableError!==void 0&&(P=g.onRecoverableError)),u=C5(u,null,s,1,g??null,j,!1,_,P),s[va]=u.current,Fc(s),w)for(s=0;s<w.length;s++)g=w[s],j=g._getVersion,j=j(g._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[g,j]:u.mutableSourceEagerHydrationData.push(g,j);return new Zf(u)},xo.render=function(s,u,g){if(!Kf(u))throw Error(r(200));return Xf(null,s,u,!1,g)},xo.unmountComponentAtNode=function(s){if(!Kf(s))throw Error(r(40));return s._reactRootContainer?(as(function(){Xf(null,null,s,!1,function(){s._reactRootContainer=null,s[va]=null})}),!0):!1},xo.unstable_batchedUpdates=j0,xo.unstable_renderSubtreeIntoContainer=function(s,u,g,w){if(!Kf(g))throw Error(r(200));if(s==null||s._reactInternals===void 0)throw Error(r(38));return Xf(s,u,g,!1,w)},xo.version="18.3.1-next-f1338f8080-20240426",xo}var F5;function jj(){if(F5)return F0.exports;F5=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),F0.exports=dD(),F0.exports}var I5;function fD(){if(I5)return Jf;I5=1;var e=jj();return Jf.createRoot=e.createRoot,Jf.hydrateRoot=e.hydrateRoot,Jf}var pD=fD();const O0=typeof window>"u"?global:window,L0="@griffel/";function mD(e,t){return O0[Symbol.for(L0+e)]||(O0[Symbol.for(L0+e)]=t),O0[Symbol.for(L0+e)]}const l1=mD("DEFINITION_LOOKUP_TABLE",{}),Cu="data-make-styles-bucket",gD="data-priority",c1="f",u1=7,Vb="___",hD=Vb.length+u1,vD=0,bD=1,yD={all:1,borderColor:1,borderStyle:1,borderWidth:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1},d1="DO_NOT_USE_DIRECTLY: @griffel/reset-value";function $u(e){for(var t=0,r,o=0,n=e.length;n>=4;++o,n-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function xD(e){const t=e.length;if(t===u1)return e;for(let r=t;r<u1;r++)e+="0";return e}function Cj(e,t,r=[]){return Vb+xD($u(e+t))}function Nj(e,t){let r="",o="";for(const n in e){const a=e[n];if(a===0){o+=n+" ";continue}const i=Array.isArray(a),l=t==="rtl"?(i?a[1]:a)+" ":(i?a[0]:a)+" ";r+=l,o+=l}return[r.slice(0,-1),o.slice(0,-1)]}function Jp(e,t){const r={};for(const o in e){const[n,a]=Nj(e[o],t);if(a===""){r[o]="";continue}const i=Cj(a,t),l=i+(n===""?"":" "+n);l1[i]=[e[o],t],r[o]=l}return r}const A5={};function F(){let e=null,t="",r="";const o=new Array(arguments.length);for(let h=0;h<arguments.length;h++){const v=arguments[h];if(typeof v=="string"&&v!==""){const y=v.indexOf(Vb);if(y===-1)t+=v+" ";else{const x=v.substr(y,hD);y>0&&(t+=v.slice(0,y)),r+=x,o[h]=x}}}if(r==="")return t.slice(0,-1);const n=A5[r];if(n!==void 0)return t+n;const a=[];for(let h=0;h<arguments.length;h++){const v=o[h];if(v){const y=l1[v];y&&(a.push(y[vD]),e=y[bD])}}const i=Object.assign.apply(Object,[{}].concat(a)),[l,d]=Nj(i,e),f=Cj(d,e,o),p=f+" "+l;return A5[r]=p,l1[f]=[i,e],t+p}function wD(e){return Array.isArray(e)?e:[e]}function kD(e,t,r,o){const n=[];if(o[Cu]=t,o[gD]=String(r),e)for(const i in o)e.setAttribute(i,o[i]);function a(i){return e?.sheet?e.sheet.insertRule(i,e.sheet.cssRules.length):n.push(i)}return{elementAttributes:o,insertRule:a,element:e,bucketName:t,cssRules(){return e?.sheet?Array.from(e.sheet.cssRules).map(i=>i.cssText):n}}}const SD=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"],O5=SD.reduce((e,t,r)=>(e[t]=r,e),{});function BD(e,t,r){return(e==="m"?e+t:e)+r}function jD(e,t,r,o,n={}){var a,i;const l=e==="m",d=(a=n.m)!==null&&a!==void 0?a:"0",f=(i=n.p)!==null&&i!==void 0?i:0,p=BD(e,d,f);if(!o.stylesheets[p]){const h=t&&t.createElement("style"),v=kD(h,e,f,{...o.styleElementAttributes,...l&&{media:d}});o.stylesheets[p]=v,t?.head&&h&&t.head.insertBefore(h,ND(t,r,e,o,n))}return o.stylesheets[p]}function CD(e,t,r){var o,n;const a=t+((o=r.m)!==null&&o!==void 0?o:""),i=e.getAttribute(Cu)+((n=e.media)!==null&&n!==void 0?n:"");return a===i}function ND(e,t,r,o,n={}){var a,i;const l=O5[r],d=(a=n.m)!==null&&a!==void 0?a:"",f=(i=n.p)!==null&&i!==void 0?i:0;let p=b=>l-O5[b.getAttribute(Cu)],h=e.head.querySelectorAll(`[${Cu}]`);if(r==="m"){const b=e.head.querySelectorAll(`[${Cu}="${r}"]`);b.length&&(h=b,p=k=>o.compareMediaQueries(d,k.media))}const v=b=>CD(b,r,n)?f-Number(b.getAttribute("data-priority")):p(b),y=h.length;let x=y-1;for(;x>=0;){const b=h.item(x);if(v(b)>0)return b.nextSibling;x--}return y>0?h.item(0):t?t.nextSibling:null}function L5(e,t){try{e.insertRule(t)}catch{}}let zD=0;const TD=(e,t)=>e<t?-1:e>t?1:0;function _D(e=typeof document>"u"?void 0:document,t={}){const{classNameHashSalt:r,unstable_filterCSSRule:o,insertionPoint:n,styleElementAttributes:a,compareMediaQueries:i=TD}=t,l={classNameHashSalt:r,insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(a),compareMediaQueries:i,id:`d${zD++}`,insertCSSRules(d){for(const f in d){const p=d[f];for(let h=0,v=p.length;h<v;h++){const[y,x]=wD(p[h]),b=jD(f,e,n||null,l,x);l.insertionCache[y]||(l.insertionCache[y]=f,o?o(y)&&L5(b,y):L5(b,y))}}}};return l}const Wb=()=>{const e={};return function(r,o){e[r.id]===void 0&&(r.insertCSSRules(o),e[r.id]=!0)}};function zj(e){return e.reduce(function(t,r){var o=r[0],n=r[1];return t[o]=n,t[n]=o,t},{})}function RD(e){return typeof e=="boolean"}function DD(e){return typeof e=="function"}function bu(e){return typeof e=="number"}function ED(e){return e===null||typeof e>"u"}function PD(e){return e&&typeof e=="object"}function MD(e){return typeof e=="string"}function _p(e,t){return e.indexOf(t)!==-1}function qD(e){return parseFloat(e)===0?e:e[0]==="-"?e.slice(1):"-"+e}function Qf(e,t,r,o){return t+qD(r)+o}function FD(e){var t=e.indexOf(".");if(t===-1)e=100-parseFloat(e)+"%";else{var r=e.length-t-2;e=100-parseFloat(e),e=e.toFixed(r)+"%"}return e}function Tj(e){return e.replace(/ +/g," ").split(" ").map(function(t){return t.trim()}).filter(Boolean).reduce(function(t,r){var o=t.list,n=t.state,a=(r.match(/\(/g)||[]).length,i=(r.match(/\)/g)||[]).length;return n.parensDepth>0?o[o.length-1]=o[o.length-1]+" "+r:o.push(r),n.parensDepth+=a-i,{list:o,state:n}},{list:[],state:{parensDepth:0}}).list}function $5(e){var t=Tj(e);if(t.length<=3||t.length>4)return e;var r=t[0],o=t[1],n=t[2],a=t[3];return[r,a,n,o].join(" ")}function ID(e){return!RD(e)&&!ED(e)}function AD(e){for(var t=[],r=0,o=0,n=!1;o<e.length;)!n&&e[o]===","?(t.push(e.substring(r,o).trim()),o++,r=o):e[o]==="("?(n=!0,o++):(e[o]===")"&&(n=!1),o++);return r!=o&&t.push(e.substring(r,o+1)),t}var be={padding:function(t){var r=t.value;return bu(r)?r:$5(r)},textShadow:function(t){var r=t.value,o=AD(r).map(function(n){return n.replace(/(^|\s)(-*)([.|\d]+)/,function(a,i,l,d){if(d==="0")return a;var f=l===""?"-":"";return""+i+f+d})});return o.join(",")},borderColor:function(t){var r=t.value;return $5(r)},borderRadius:function(t){var r=t.value;if(bu(r))return r;if(_p(r,"/")){var o=r.split("/"),n=o[0],a=o[1],i=be.borderRadius({value:n.trim()}),l=be.borderRadius({value:a.trim()});return i+" / "+l}var d=Tj(r);switch(d.length){case 2:return d.reverse().join(" ");case 4:{var f=d[0],p=d[1],h=d[2],v=d[3];return[p,f,v,h].join(" ")}default:return r}},background:function(t){var r=t.value,o=t.valuesToConvert,n=t.isRtl,a=t.bgImgDirectionRegex,i=t.bgPosDirectionRegex;if(bu(r))return r;var l=r.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g,"").trim();return r=r.replace(l,be.backgroundPosition({value:l,valuesToConvert:o,isRtl:n,bgPosDirectionRegex:i})),be.backgroundImage({value:r,valuesToConvert:o,bgImgDirectionRegex:a})},backgroundImage:function(t){var r=t.value,o=t.valuesToConvert,n=t.bgImgDirectionRegex;return!_p(r,"url(")&&!_p(r,"linear-gradient(")?r:r.replace(n,function(a,i,l){return a.replace(l,o[l])})},backgroundPosition:function(t){var r=t.value,o=t.valuesToConvert,n=t.isRtl,a=t.bgPosDirectionRegex;return r.replace(n?/^((-|\d|\.)+%)/:null,function(i,l){return FD(l)}).replace(a,function(i){return o[i]})},backgroundPositionX:function(t){var r=t.value,o=t.valuesToConvert,n=t.isRtl,a=t.bgPosDirectionRegex;return bu(r)?r:be.backgroundPosition({value:r,valuesToConvert:o,isRtl:n,bgPosDirectionRegex:a})},transition:function(t){var r=t.value,o=t.propertiesToConvert;return r.split(/,\s*/g).map(function(n){var a=n.split(" ");return a[0]=o[a[0]]||a[0],a.join(" ")}).join(", ")},transitionProperty:function(t){var r=t.value,o=t.propertiesToConvert;return r.split(/,\s*/g).map(function(n){return o[n]||n}).join(", ")},transform:function(t){var r=t.value,o="[^\\u0020-\\u007e]",n="(?:(?:(?:\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",a="((?:-?"+("(?:[0-9]*\\.[0-9]+|[0-9]+)(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+o+"|"+n+")")+("(?:[_a-z0-9-]|"+o+"|"+n+")")+"*")+")?")+")|(?:inherit|auto))",i=new RegExp("(translateX\\s*\\(\\s*)"+a+"(\\s*\\))","gi"),l=new RegExp("(translate\\s*\\(\\s*)"+a+"((?:\\s*,\\s*"+a+"){0,1}\\s*\\))","gi"),d=new RegExp("(translate3d\\s*\\(\\s*)"+a+"((?:\\s*,\\s*"+a+"){0,2}\\s*\\))","gi"),f=new RegExp("(rotate[ZY]?\\s*\\(\\s*)"+a+"(\\s*\\))","gi");return r.replace(i,Qf).replace(l,Qf).replace(d,Qf).replace(f,Qf)}};be.objectPosition=be.backgroundPosition;be.margin=be.padding;be.borderWidth=be.padding;be.boxShadow=be.textShadow;be.webkitBoxShadow=be.boxShadow;be.mozBoxShadow=be.boxShadow;be.WebkitBoxShadow=be.boxShadow;be.MozBoxShadow=be.boxShadow;be.borderStyle=be.borderColor;be.webkitTransform=be.transform;be.mozTransform=be.transform;be.WebkitTransform=be.transform;be.MozTransform=be.transform;be.transformOrigin=be.backgroundPosition;be.webkitTransformOrigin=be.transformOrigin;be.mozTransformOrigin=be.transformOrigin;be.WebkitTransformOrigin=be.transformOrigin;be.MozTransformOrigin=be.transformOrigin;be.webkitTransition=be.transition;be.mozTransition=be.transition;be.WebkitTransition=be.transition;be.MozTransition=be.transition;be.webkitTransitionProperty=be.transitionProperty;be.mozTransitionProperty=be.transitionProperty;be.WebkitTransitionProperty=be.transitionProperty;be.MozTransitionProperty=be.transitionProperty;be["text-shadow"]=be.textShadow;be["border-color"]=be.borderColor;be["border-radius"]=be.borderRadius;be["background-image"]=be.backgroundImage;be["background-position"]=be.backgroundPosition;be["background-position-x"]=be.backgroundPositionX;be["object-position"]=be.objectPosition;be["border-width"]=be.padding;be["box-shadow"]=be.textShadow;be["-webkit-box-shadow"]=be.textShadow;be["-moz-box-shadow"]=be.textShadow;be["border-style"]=be.borderColor;be["-webkit-transform"]=be.transform;be["-moz-transform"]=be.transform;be["transform-origin"]=be.transformOrigin;be["-webkit-transform-origin"]=be.transformOrigin;be["-moz-transform-origin"]=be.transformOrigin;be["-webkit-transition"]=be.transition;be["-moz-transition"]=be.transition;be["transition-property"]=be.transitionProperty;be["-webkit-transition-property"]=be.transitionProperty;be["-moz-transition-property"]=be.transitionProperty;var _j=zj([["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"]]),OD=["content"],H5=zj([["ltr","rtl"],["left","right"],["w-resize","e-resize"],["sw-resize","se-resize"],["nw-resize","ne-resize"]]),LD=new RegExp("(^|\\W|_)((ltr)|(rtl)|(left)|(right))(\\W|_|$)","g"),$D=new RegExp("(left)|(right)");function Rj(e){return Object.keys(e).reduce(function(t,r){var o=e[r];if(MD(o)&&(o=o.trim()),_p(OD,r))return t[r]=o,t;var n=f1(r,o),a=n.key,i=n.value;return t[a]=i,t},Array.isArray(e)?[]:{})}function f1(e,t){var r=/\/\*\s?@noflip\s?\*\//.test(t),o=r?e:HD(e),n=r?t:VD(o,t);return{key:o,value:n}}function HD(e){return _j[e]||e}function VD(e,t){if(!ID(t))return t;if(PD(t))return Rj(t);var r=bu(t),o=DD(t),n=r||o?t:t.replace(/ !important.*?$/,""),a=!r&&n.length!==t.length,i=be[e],l;return i?l=i({value:n,valuesToConvert:H5,propertiesToConvert:_j,isRtl:!0,bgImgDirectionRegex:LD,bgPosDirectionRegex:$D}):l=H5[n]||n,a?l+" !important":l}var Nu="-moz-",Tn="-webkit-",Dj="comm",Zm="rule",Ub="decl",WD="@media",UD="@import",GD="@supports",ZD="@namespace",KD="@keyframes",Ej="@layer",XD=Math.abs,jl=String.fromCharCode,YD=Object.assign;function JD(e,t){return to(e,0)^45?(((t<<2^to(e,0))<<2^to(e,1))<<2^to(e,2))<<2^to(e,3):0}function Pj(e){return e.trim()}function Mj(e,t){return(e=t.exec(e))?e[0]:e}function Mo(e,t,r){return e.replace(t,r)}function QD(e,t){return e.indexOf(t)}function to(e,t){return e.charCodeAt(t)|0}function El(e,t,r){return e.slice(t,r)}function _n(e){return e.length}function qj(e){return e.length}function hs(e,t){return t.push(e),e}function eE(e,t){return e.map(t).join("")}var Km=1,Pl=1,Fj=0,Lo=0,sr=0,Ql="";function Xm(e,t,r,o,n,a,i,l){return{value:e,root:t,parent:r,type:o,props:n,children:a,line:Km,column:Pl,length:i,return:"",siblings:l}}function $0(e,t){return YD(Xm("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function tE(){return sr}function rE(){return sr=Lo>0?to(Ql,--Lo):0,Pl--,sr===10&&(Pl=1,Km--),sr}function fn(){return sr=Lo<Fj?to(Ql,Lo++):0,Pl++,sr===10&&(Pl=1,Km++),sr}function Bi(){return to(Ql,Lo)}function Rp(){return Lo}function Ym(e,t){return El(Ql,e,t)}function Ml(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 Ij(e){return Km=Pl=1,Fj=_n(Ql=e),Lo=0,[]}function Aj(e){return Ql="",e}function Dp(e){return Pj(Ym(Lo-1,p1(e===91?e+2:e===40?e+1:e)))}function oE(e){return Aj(aE(Ij(e)))}function nE(e){for(;(sr=Bi())&&sr<33;)fn();return Ml(e)>2||Ml(sr)>3?"":" "}function aE(e){for(;fn();)switch(Ml(sr)){case 0:hs(Oj(Lo-1),e);break;case 2:hs(Dp(sr),e);break;default:hs(jl(sr),e)}return e}function iE(e,t){for(;--t&&fn()&&!(sr<48||sr>102||sr>57&&sr<65||sr>70&&sr<97););return Ym(e,Rp()+(t<6&&Bi()==32&&fn()==32))}function p1(e){for(;fn();)switch(sr){case e:return Lo;case 34:case 39:e!==34&&e!==39&&p1(sr);break;case 40:e===41&&p1(e);break;case 92:fn();break}return Lo}function sE(e,t){for(;fn()&&e+sr!==57;)if(e+sr===84&&Bi()===47)break;return"/*"+Ym(t,Lo-1)+"*"+jl(e===47?e:fn())}function Oj(e){for(;!Ml(Bi());)fn();return Ym(e,Lo)}function Lj(e){return Aj(Ep("",null,null,null,[""],e=Ij(e),0,[0],e))}function Ep(e,t,r,o,n,a,i,l,d){for(var f=0,p=0,h=i,v=0,y=0,x=0,b=1,k=1,S=1,N=0,B=0,C="",z=n,R=a,E=o,D=C;k;)switch(x=B,B=fn()){case 40:x!=108&&to(D,h-1)==58?(N++,D+="("):D+=Dp(B);break;case 41:N--,D+=")";break;case 34:case 39:case 91:D+=Dp(B);break;case 9:case 10:case 13:case 32:if(N>0){D+=jl(B);break}D+=nE(x);break;case 92:D+=iE(Rp()-1,7);continue;case 47:switch(Bi()){case 42:case 47:hs(lE(sE(fn(),Rp()),t,r,d),d),(Ml(x||1)==5||Ml(Bi()||1)==5)&&_n(D)&&El(D,-1,void 0)!==" "&&(D+=" ");break;default:D+="/"}break;case 123*b:l[f++]=_n(D)*S;case 125*b:case 59:case 0:if(N>0&&B){D+=jl(B);break}switch(B){case 0:case 125:k=0;case 59+p:S==-1&&(D=Mo(D,/\f/g,"")),y>0&&(_n(D)-h||b===0)&&hs(y>32?W5(D+";",o,r,h-1,d):W5(Mo(D," ","")+";",o,r,h-2,d),d);break;case 59:D+=";";default:if(hs(E=V5(D,t,r,f,p,n,l,C,z=[],R=[],h,a),a),B===123)if(p===0)Ep(D,t,E,E,z,a,h,l,R);else{switch(v){case 99:if(to(D,3)===110)break;case 108:if(to(D,2)===97)break;default:p=0;case 100:case 109:case 115:}p?Ep(e,E,E,o&&hs(V5(e,E,E,0,0,n,l,C,n,z=[],h,R),R),n,R,h,l,o?z:R):Ep(D,E,E,E,[""],R,0,l,R)}}f=p=y=0,b=S=1,C=D="",h=i;break;case 58:h=1+_n(D),y=x;default:if(b<1){if(B==123)--b;else if(B==125&&b++==0&&rE()==125)continue}switch(D+=jl(B),B*b){case 38:S=p>0?1:(D+="\f",-1);break;case 44:if(N>0)break;l[f++]=(_n(D)-1)*S,S=1;break;case 64:Bi()===45&&(D+=Dp(fn())),v=Bi(),p=h=_n(C=D+=Oj(Rp())),B++;break;case 45:x===45&&_n(D)==2&&(b=0)}}return a}function V5(e,t,r,o,n,a,i,l,d,f,p,h){for(var v=n-1,y=n===0?a:[""],x=qj(y),b=0,k=0,S=0;b<o;++b)for(var N=0,B=El(e,v+1,v=XD(k=i[b])),C=e;N<x;++N)(C=Pj(k>0?y[N]+" "+B:Mo(B,/&\f/g,y[N])))&&(d[S++]=C);return Xm(e,t,r,n===0?Zm:l,d,f,p,h)}function lE(e,t,r,o){return Xm(e,t,r,Dj,jl(tE()),El(e,2,-2),0,o)}function W5(e,t,r,o,n){return Xm(e,t,r,Ub,El(e,0,o),El(e,o+1,-1),o,n)}function ql(e,t){for(var r="",o=0;o<e.length;o++)r+=t(e[o],o,e,t)||"";return r}function $j(e,t,r,o){switch(e.type){case Ej:if(e.children.length)break;case UD:case ZD:case Ub:return e.return=e.return||e.value;case Dj:return"";case KD:return e.return=e.value+"{"+ql(e.children,o)+"}";case Zm:if(!_n(e.value=e.props.join(",")))return""}return _n(r=ql(e.children,o))?e.return=e.value+"{"+r+"}":""}function Hj(e){var t=qj(e);return function(r,o,n,a){for(var i="",l=0;l<t;l++)i+=e[l](r,o,n,a)||"";return i}}function Vj(e){return function(t){t.root||(t=t.return)&&e(t)}}const cE=e=>{switch(e.type){case Zm:if(typeof e.props=="string")return;e.props=e.props.map(t=>t.indexOf(":global(")===-1?t:oE(t).reduce((r,o,n,a)=>{if(o==="")return r;if(o===":"&&a[n+1]==="global"){const i=a[n+2].slice(1,-1)+" ";return r.unshift(i),a[n+1]="",a[n+2]="",r}return r.push(o),r},[]).join(""))}};function Wj(e,t,r){switch(JD(e,t)){case 5103:return Tn+"print-"+e+e;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return Tn+e+e;case 4215:if(to(e,9)===102||to(e,t+1)===116)return Tn+e+e;break;case 4789:return Nu+e+e;case 5349:case 4246:case 6968:return Tn+e+Nu+e+e;case 6187:if(!Mj(e,/grab/))return Mo(Mo(Mo(e,/(zoom-|grab)/,Tn+"$1"),/(image-set)/,Tn+"$1"),e,"")+e;case 5495:case 3959:return Mo(e,/(image-set\([^]*)/,Tn+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return Mo(e,/(.+)-inline(.+)/,Tn+"$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(_n(e)-1-t>6)switch(to(e,t+1)){case 102:if(to(e,t+3)===108)return Mo(e,/(.+:)(.+)-([^]+)/,"$1"+Tn+"$2-$3$1"+Nu+(to(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~QD(e,"stretch")?Wj(Mo(e,"stretch","fill-available"),t)+e:e}break}return e}function Uj(e,t,r,o){if(e.length>-1&&!e.return)switch(e.type){case Ub:e.return=Wj(e.value,e.length);return;case Zm:if(e.length)return eE(e.props,function(n){switch(Mj(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ql([$0(e,{props:[Mo(n,/:(read-\w+)/,":"+Nu+"$1")]})],o);case"::placeholder":return ql([$0(e,{props:[Mo(n,/:(plac\w+)/,":"+Tn+"input-$1")]}),$0(e,{props:[Mo(n,/:(plac\w+)/,":"+Nu+"$1")]})],o)}return""})}}function uE(e){switch(e.type){case"@container":case WD:case GD:case Ej:return!0}return!1}const dE=e=>{uE(e)&&Array.isArray(e.children)&&e.children.sort((t,r)=>t.props[0]>r.props[0]?1:-1)};function fE(e,t){const r=[];return ql(Lj(e),Hj([cE,dE,Uj,$j,Vj(o=>r.push(o))])),r}const pE=/[A-Z]/g,mE=/^ms-/,H0={};function gE(e){return"-"+e.toLowerCase()}function yl(e){if(Object.prototype.hasOwnProperty.call(H0,e))return H0[e];if(e.substr(0,2)==="--")return e;const t=e.replace(pE,gE);return H0[e]=mE.test(t)?"-"+t:t}function Gj(e){return e.charAt(0)==="&"?e.slice(1):e}const hE=/,( *[^ &])/g;function vE(e){return"&"+Gj(e.replace(hE,",&$1"))}function U5(e,t){return t.reduceRight((r,o)=>`${vE(o)} { ${r} }`,e)}function G5(e,t){const{className:r,selectors:o,property:n,rtlClassName:a,rtlProperty:i,rtlValue:l,value:d}=e,{container:f,layer:p,media:h,scope:v,supports:y}=t,x=`.${r}`,b=Array.isArray(d)?`${d.map(N=>`${yl(n)}: ${N}`).join(";")};`:`${yl(n)}: ${d};`,k=U5(b,o);let S=v?`@scope (${x}) ${v} { :scope{${k}} }`:`${x}{${k}}`;if(i&&a){const N=`.${a}`,B=Array.isArray(l)?`${l.map(z=>`${yl(i)}: ${z}`).join(";")};`:`${yl(i)}: ${l};`,C=U5(B,o);S+=v?`@scope (${N}) ${v} { :scope{${C}} }`:`${N}{${C}}`}return h&&(S=`@media ${h} { ${S} }`),p&&(S=`@layer ${p} { ${S} }`),y&&(S=`@supports ${y} { ${S} }`),f&&(S=`@container ${f} { ${S} }`),fE(S)}function bE(e){let t="";for(const r in e){const o=e[r];if(typeof o=="string"||typeof o=="number"){t+=yl(r)+":"+o+";";continue}if(Array.isArray(o))for(const n of o)t+=yl(r)+":"+n+";"}return t}function Z5(e){let t="";for(const r in e)t+=`${r}{${bE(e[r])}}`;return t}function K5(e,t){const r=`@keyframes ${e} {${t}}`,o=[];return ql(Lj(r),Hj([$j,Uj,Vj(n=>o.push(n))])),o}const X5={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function Y5(e,t){if(t.media)return"m";if(t.layer||t.supports)return"t";if(t.container)return"c";if(e.length>0){const r=e[0].trim();if(r.charCodeAt(0)===58)return X5[r.slice(4,8)]||X5[r.slice(3,5)]||"d"}return"d"}const yE={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 J5(e,t){return e.length===0?t:`${e} and ${t}`}function ru(e,t){return e&&t+e}function Zj(e){return ru(e.container,"c")+ru(e.media,"m")+ru(e.layer,"l")+ru(e.supports,"s")+ru(e.scope,"o")}function V0(e,t,r){const o=e+Zj(r)+t,n=$u(o),a=n.charCodeAt(0);return a>=48&&a<=57?String.fromCharCode(a+17)+n.slice(1):n}function ep({property:e,selector:t,salt:r,value:o},n){return c1+$u(r+t+Zj(n)+e+o.trim())}function xE(e){return e.substring(0,10)==="@container"}function wE(e){return e.substr(0,6)==="@layer"}function kE(e){return e.substr(0,6)==="@media"}const SE=/^(:|\[|>|&)/;function BE(e){return SE.test(e)}function jE(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}function CE(e){return e===d1}function NE(e){return e.substring(0,6)==="@scope"}function zE(e){return e.substr(0,9)==="@supports"}function W0(e){return e.replace(/>\s+/g,">")}function Q5(e){return yE[e]}function e2(e){var t;return(t=e?.[0])!==null&&t!==void 0?t:0}function U0(e,t,r,o){e[t]=o?[r,o]:r}function t2(e,t){return t.length>0?[e,Object.fromEntries(t)]:e}function G0(e,t,r,o,n,a){var i;const l=[];a!==0&&l.push(["p",a]),t==="m"&&n&&l.push(["m",n]),(i=e[t])!==null&&i!==void 0||(e[t]=[]),r&&e[t].push(t2(r,l)),o&&e[t].push(t2(o,l))}function ta(e,t="",r=[],o={container:"",layer:"",media:"",supports:"",scope:""},n={},a={},i){for(const l in e){if(yD.hasOwnProperty(l)){e[l];continue}const d=e[l];if(d!=null){if(CE(d)){const f=W0(r.join("")),p=V0(f,l,o);U0(n,p,0,void 0);continue}if(typeof d=="string"||typeof d=="number"){const f=W0(r.join("")),p=Q5(l);if(p){const C=p[1],z=Object.fromEntries(C.map(R=>[R,d1]));ta(z,t,r,o,n,a)}const h=V0(f,l,o),v=ep({value:d.toString(),salt:t,selector:f,property:l},o),y=i&&{key:l,value:i}||f1(l,d),x=y.key!==l||y.value!==d,b=x?ep({value:y.value.toString(),property:y.key,salt:t,selector:f},o):void 0,k=x?{rtlClassName:b,rtlProperty:y.key,rtlValue:y.value}:void 0,S=Y5(r,o),[N,B]=G5({className:v,selectors:r,property:l,value:d,...k},o);U0(n,h,v,b),G0(a,S,N,B,o.media,e2(p))}else if(l==="animationName"){const f=Array.isArray(d)?d:[d],p=[],h=[];for(const v of f){const y=Z5(v),x=Z5(Rj(v)),b=c1+$u(y);let k;const S=K5(b,y);let N=[];y===x?k=b:(k=c1+$u(x),N=K5(k,x));for(let B=0;B<S.length;B++)G0(a,"k",S[B],N[B],o.media,0);p.push(b),h.push(k)}ta({animationName:p.join(", ")},t,r,o,n,a,h.join(", "))}else if(Array.isArray(d)){if(d.length===0)continue;const f=W0(r.join("")),p=Q5(l);if(p){const z=p[1],R=Object.fromEntries(z.map(E=>[E,d1]));ta(R,t,r,o,n,a)}const h=V0(f,l,o),v=ep({value:d.map(z=>(z??"").toString()).join(";"),salt:t,selector:f,property:l},o),y=d.map(z=>f1(l,z));if(!!y.some(z=>z.key!==y[0].key))continue;const b=y[0].key!==l||y.some((z,R)=>z.value!==d[R]),k=b?ep({value:y.map(z=>{var R;return((R=z?.value)!==null&&R!==void 0?R:"").toString()}).join(";"),salt:t,property:y[0].key,selector:f},o):void 0,S=b?{rtlClassName:k,rtlProperty:y[0].key,rtlValue:y.map(z=>z.value)}:void 0,N=Y5(r,o),[B,C]=G5({className:v,selectors:r,property:l,value:d,...S},o);U0(n,h,v,k),G0(a,N,B,C,o.media,e2(p))}else if(jE(d)){if(BE(l))ta(d,t,r.concat(Gj(l)),o,n,a);else if(kE(l)){const f=J5(o.media,l.slice(6).trim());ta(d,t,r,{...o,media:f},n,a)}else if(wE(l)){const f=(o.layer?`${o.layer}.`:"")+l.slice(6).trim();ta(d,t,r,{...o,layer:f},n,a)}else if(zE(l)){const f=J5(o.supports,l.slice(9).trim());ta(d,t,r,{...o,supports:f},n,a)}else if(xE(l)){const f=l.slice(10).trim();ta(d,t,r,{...o,container:f},n,a)}else if(NE(l)){if(o.scope)continue;const f=l.slice(6).trim();if(f===""||!f.startsWith("to "))continue;ta(d,t,r,{...o,scope:f},n,a)}}}}return[n,a]}function TE(e,t=""){const r={},o={};for(const n in e){const a=e[n],[i,l]=ta(a,t);r[n]=i,Object.keys(l).forEach(d=>{o[d]=(o[d]||[]).concat(l[d])})}return[r,o]}function _E(e,t=Wb){const r=t();let o=null,n=null,a=null,i=null;function l(d){const{dir:f,renderer:p}=d;o===null&&([o,n]=TE(e,p.classNameHashSalt));const h=f==="ltr";return h?a===null&&(a=Jp(o,f)):i===null&&(i=Jp(o,f)),r(p,n),h?a:i}return l}function Kj(e,t,r=Wb){const o=r();let n=null,a=null;function i(l){const{dir:d,renderer:f}=l,p=d==="ltr";return p?n===null&&(n=Jp(e,d)):a===null&&(a=Jp(e,d)),o(f,t),p?n:a}return i}function RE(e,t,r,o=Wb){const n=o();function a(i){const{dir:l,renderer:d}=i,f=l==="ltr"?e:t||e;return n(d,Array.isArray(r)?{r}:r),f}return a}function DE(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const r2=Vr.useInsertionEffect?Vr.useInsertionEffect:void 0,Gb=()=>{const e={};return function(r,o){if(r2&&DE()){r2(()=>{r.insertCSSRules(o)},[r,o]);return}e[r.id]===void 0&&(r.insertCSSRules(o),e[r.id]=!0)}},EE=m.createContext(_D());function yd(){return m.useContext(EE)}const Xj=m.createContext("ltr"),PE=({children:e,dir:t})=>c.jsx(Xj.Provider,{value:t,children:e});function Zb(){return m.useContext(Xj)}function fo(e){const t=_E(e,Gb);return function(){const o=Zb(),n=yd();return t({dir:o,renderer:n})}}function Y(e,t){const r=Kj(e,t,Gb);return function(){const n=Zb(),a=yd();return r({dir:n,renderer:a})}}function Be(e,t,r){const o=RE(e,t,r,Gb);return function(){const a=Zb(),i=yd();return o({dir:a,renderer:i})}}const ME={"<":"\\3C ",">":"\\3E "};function qE(e){return e.replace(/[<>]/g,t=>ME[t])}function FE(e,t){if(t){const r=Object.keys(t).reduce((o,n)=>`${o}--${n}: ${t[n]}; `,"");return`${e} { ${qE(r)} }`}return`${e} {}`}const Hu=Symbol.for("fui.slotRenderFunction"),Fl=Symbol.for("fui.slotElementType"),Yj=Symbol.for("fui.slotClassNameProp");function me(e,t){const{defaultProps:r,elementType:o}=t,n=Jj(e),a={...r,...n,[Fl]:o,[Yj]:n?.className||r?.className};return n&&typeof n.children=="function"&&(a[Hu]=n.children,a.children=r?.children),a}function ke(e,t){if(!(e===null||e===void 0&&!t.renderByDefault))return me(e,t)}function Jj(e){return typeof e=="string"||typeof e=="number"||IE(e)||m.isValidElement(e)?{children:e}:e}const IE=e=>typeof e=="object"&&e!==null&&Symbol.iterator in e;function Kb(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&!m.isValidElement(e)}function m1(e){return!!e?.hasOwnProperty(Fl)}const Vt=(...e)=>{const t={};for(const r of e){const o=Array.isArray(r)?r:Object.keys(r);for(const n of o)t[n]=1}return t},AE=Vt(["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"]),OE=Vt(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","popover","focusgroup","focusgroupstart","ref","role","style","tabIndex","title","translate","spellCheck","name"]),LE=Vt(["itemID","itemProp","itemRef","itemScope","itemType"]),Cr=Vt(OE,AE,LE),$E=Vt(Cr,["form"]),Qj=Vt(Cr,["height","loop","muted","preload","src","width"]),HE=Vt(Qj,["poster"]),VE=Vt(Cr,["start"]),WE=Vt(Cr,["value"]),UE=Vt(Cr,["download","href","hrefLang","media","referrerPolicy","rel","target","type"]),GE=Vt(Cr,["dateTime"]),Jm=Vt(Cr,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","popoverTarget","popoverTargetAction","type","value"]),ZE=Vt(Jm,["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"]),KE=Vt(Jm,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),XE=Vt(Jm,["form","multiple","required"]),YE=Vt(Cr,["selected","value"]),JE=Vt(Cr,["cellPadding","cellSpacing"]),QE=Cr,eP=Vt(Cr,["colSpan","rowSpan","scope"]),tP=Vt(Cr,["colSpan","headers","rowSpan","scope"]),rP=Vt(Cr,["span"]),oP=Vt(Cr,["span"]),nP=Vt(Cr,["disabled","form"]),aP=Vt(Cr,["acceptCharset","action","encType","encType","method","noValidate","target"]),iP=Vt(Cr,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),sP=Vt(Cr,["alt","crossOrigin","height","src","srcSet","useMap","width"]),lP=Vt(Cr,["open","onCancel","onClose"]);function cP(e,t,r){const o=Array.isArray(t),n={},a=Object.keys(e);for(const i of a)(!o&&t[i]||o&&t.indexOf(i)>=0||i.indexOf("data-")===0||i.indexOf("aria-")===0)&&(!r||r?.indexOf(i)===-1)&&(n[i]=e[i]);return n}const uP={label:$E,audio:Qj,video:HE,ol:VE,li:WE,a:UE,button:Jm,input:ZE,textarea:KE,select:XE,option:YE,table:JE,tr:QE,th:eP,td:tP,colGroup:rP,col:oP,fieldset:nP,form:aP,iframe:iP,img:sP,time:GE,dialog:lP};function e4(e,t,r){const o=e&&uP[e]||Cr;return o.as=1,cP(t,o,r)}const $i=({primarySlotTagName:e,props:t,excludedPropNames:r})=>({root:{style:t.style,className:t.className},primary:e4(e,t,[...r||[],"style","className"])}),$e=(e,t,r)=>{var o;return e4((o=t.as)!==null&&o!==void 0?o:e,t,r)};function t4(e,t){const r={};for(const o in e)t.indexOf(o)===-1&&e.hasOwnProperty(o)&&(r[o]=e[o]);return r}function dP(e){const t=e,r={},o={},n=Object.keys(t.components);for(const a of n){const[i,l]=fP(t,a);r[a]=i,o[a]=l}return{slots:r,slotProps:o}}function fP(e,t){var r,o;const n=e[t];if(n===void 0)return[null,void 0];const{as:a,children:i,...l}=n,d=m1(n)?n[Hu]:void 0,f=((r=e.components)===null||r===void 0?void 0:r[t])===void 0||typeof e.components[t]=="string"?a||((o=e.components)===null||o===void 0?void 0:o[t])||"div":e.components[t],p=f;if(d||typeof i=="function"){const y=d||i;return[m.Fragment,{children:y(p,l)}]}const v=typeof f=="string"&&a?t4(n,["as"]):n;return[p,v]}function r4(e,t){const r=m.useRef(void 0),o=m.useCallback((a,i)=>(r.current!==void 0&&t(r.current),r.current=e(a,i),r.current),[t,e]),n=m.useCallback(()=>{r.current!==void 0&&(t(r.current),r.current=void 0)},[t]);return m.useEffect(()=>n,[n]),[o,n]}const o4=m.createContext(void 0),pP=o4.Provider,n4=m.createContext(void 0),mP="",gP=n4.Provider;function hP(){var e;return(e=m.useContext(n4))!==null&&e!==void 0?e:mP}const a4=m.createContext(void 0),vP={},bP=a4.Provider;function yP(){var e;return(e=m.useContext(a4))!==null&&e!==void 0?e:vP}const i4=m.createContext(void 0),xP={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"},wP=i4.Provider;function Ve(){var e;return(e=m.useContext(i4))!==null&&e!==void 0?e:xP}const s4=m.createContext(void 0),kP=s4.Provider;function Qm(){var e;return(e=m.useContext(s4))!==null&&e!==void 0?e:{}}const Xb=m.createContext(void 0),SP=()=>{},BP=Xb.Provider,xe=e=>{var t,r;return(r=(t=m.useContext(Xb))===null||t===void 0?void 0:t[e])!==null&&r!==void 0?r:SP},l4=m.createContext(void 0),jP=l4.Provider;function Yb(){return m.useContext(l4)}const c4=m.createContext(void 0);c4.Provider;function CP(){return m.useContext(c4)}const u4=m.createContext(void 0);u4.Provider;function NP(){var e;return(e=m.useContext(u4))!==null&&e!==void 0?e:{announce:()=>{}}}const zP=e=>(e(0),0),TP=e=>e;function Vu(){const{targetDocument:e}=Ve(),t=e?.defaultView,r=t?t.requestAnimationFrame:zP,o=t?t.cancelAnimationFrame:TP;return r4(r,o)}function _P(e){const t=e.createElement("div");t.style.visibility="hidden",t.style.overflow="scroll";const r=e.createElement("div");t.appendChild(r),e.body.appendChild(t);const o=t.offsetWidth-r.offsetWidth;return t.remove(),o}function RP(e){return typeof e=="function"}const Xt=e=>{"use no memo";const[t,r]=m.useState(()=>e.defaultState===void 0?e.initialState:DP(e.defaultState)?e.defaultState():e.defaultState),o=m.useRef(e.state);m.useEffect(()=>{o.current=e.state},[e.state]);const n=m.useCallback(a=>{RP(a)&&a(o.current)},[]);return EP(e.state)?[e.state,n]:[t,r]};function DP(e){return typeof e=="function"}const EP=e=>{"use no memo";const[t]=m.useState(()=>e!==void 0);return t};function eg(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const d4={current:0},PP=m.createContext(void 0);function f4(){var e;return(e=m.useContext(PP))!==null&&e!==void 0?e:d4}function MP(){const e=f4()!==d4,[t,r]=m.useState(e);return eg()&&e&&m.useLayoutEffect(()=>{r(!1)},[]),t}const $t=eg()?m.useLayoutEffect:m.useEffect,de=e=>{const t=m.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return $t(()=>{t.current=e},[e]),m.useCallback((...r)=>{const o=t.current;return o(...r)},[t])};function Jb(){const e=m.useRef(!0);return m.useEffect(()=>{e.current&&(e.current=!1)},[]),e.current}function p4(){return m.useReducer(e=>e+1,0)[1]}const m4=m.createContext(void 0);m4.Provider;function qP(){return m.useContext(m4)||""}function bt(e="fui-",t){"use no memo";const r=f4(),o=qP(),n=Yp.useId;if(n){const a=n(),i=m.useMemo(()=>a.replace(/:/g,""),[a]);return t||`${o}${e}${i}`}return m.useMemo(()=>t||`${o}${e}${++r.current}`,[o,e,t,r])}function Le(...e){"use no memo";const t=m.useCallback(r=>{t.current=r;for(const o of e)typeof o=="function"?o(r):o&&(o.current=r)},[...e]);return t}const g4=(e,t)=>!!e?.contains(t),xd=e=>{const{targetDocument:t}=Ve(),r=t?.defaultView,{refs:o,callback:n,element:a,disabled:i,disabledFocusOnIframe:l,contains:d=g4}=e,f=m.useRef(void 0);IP({element:a,disabled:l||i,callback:n,refs:o,contains:d});const p=m.useRef(!1),h=de(y=>{if(p.current){p.current=!1;return}const x=y.composedPath()[0];o.every(k=>!d(k.current||null,x))&&!i&&n(y)}),v=de(y=>{p.current=o.some(x=>d(x.current||null,y.target))});m.useEffect(()=>{if(i)return;let y=FP(r);const x=b=>{if(b===y){y=void 0;return}h(b)};return a?.addEventListener("click",x,!0),a?.addEventListener("touchstart",x,!0),a?.addEventListener("contextmenu",x,!0),a?.addEventListener("mousedown",v,!0),f.current=r?.setTimeout(()=>{y=void 0},1),()=>{a?.removeEventListener("click",x,!0),a?.removeEventListener("touchstart",x,!0),a?.removeEventListener("contextmenu",x,!0),a?.removeEventListener("mousedown",v,!0),r?.clearTimeout(f.current),y=void 0}},[h,a,i,v,r])},FP=e=>{if(e){var t,r;if(typeof e.window=="object"&&e.window===e)return e.event;var o;return(o=(r=e.ownerDocument)===null||r===void 0||(t=r.defaultView)===null||t===void 0?void 0:t.event)!==null&&o!==void 0?o:void 0}},Z0="fuiframefocus",IP=e=>{const{disabled:t,element:r,callback:o,contains:n=g4,pollDuration:a=100,refs:i}=e,l=m.useRef(void 0),d=de(f=>{i.every(h=>!n(h.current||null,f.target))&&!t&&o(f)});m.useEffect(()=>{if(!t)return r?.addEventListener(Z0,d,!0),()=>{r?.removeEventListener(Z0,d,!0)}},[r,t,d]),m.useEffect(()=>{var f;if(!t)return l.current=r==null||(f=r.defaultView)===null||f===void 0?void 0:f.setInterval(()=>{const p=r?.activeElement;if(p?.tagName==="IFRAME"||p?.tagName==="WEBVIEW"){const h=new CustomEvent(Z0,{bubbles:!0});p.dispatchEvent(h)}},a),()=>{var p;r==null||(p=r.defaultView)===null||p===void 0||p.clearInterval(l.current)}},[r,t,a])},Qb=e=>{const{refs:t,callback:r,element:o,disabled:n,contains:a}=e,i=de(l=>{const d=a||((h,v)=>!!h?.contains(v)),f=l.composedPath()[0];t.every(h=>!d(h.current||null,f))&&!n&&r(l)});m.useEffect(()=>{if(!n)return o?.addEventListener("wheel",i),o?.addEventListener("touchmove",i),()=>{o?.removeEventListener("wheel",i),o?.removeEventListener("touchmove",i)}},[i,o,n])},K0=new WeakMap;function h4(e){const{targetDocument:t,force:r}=e;return m.useMemo(()=>{if(!t)return 0;if(!r&&K0.has(t))return K0.get(t);const o=_P(t);return K0.set(t,o),o},[t,r])}const AP=e=>-1,OP=e=>{};function Ga(){const{targetDocument:e}=Ve(),t=e?.defaultView,r=t?t.setTimeout:AP,o=t?t.clearTimeout:OP;return r4(r,o)}const LP=parseInt(m.version,10)>=19;function ec(e){if(e)return LP?e.props.ref:e.ref}const o2=(e,t)=>{if(t==="rtl")switch(e){case"ArrowLeft":return"ArrowRight";case"ArrowRight":return"ArrowLeft"}return e};function Re(e,t){return(...r)=>{e?.(...r),t?.(...r)}}function qt(e,t){var r;const o=e;var n;return!!(!(o==null||(r=o.ownerDocument)===null||r===void 0)&&r.defaultView&&o instanceof o.ownerDocument.defaultView[(n=t?.constructorName)!==null&&n!==void 0?n:"HTMLElement"])}function $P(e){if(!qt(e))return!1;const{tagName:t}=e;switch(t){case"BUTTON":case"A":case"INPUT":case"TEXTAREA":return!0}return e.isContentEditable}function v4(e){const t=[];let r=0;const o=(v,y)=>{const x=t[v];t[v]=t[y],t[y]=x},n=v=>{let y=v;const x=HP(v),b=VP(v);x<r&&e(t[x],t[y])<0&&(y=x),b<r&&e(t[b],t[y])<0&&(y=b),y!==v&&(o(y,v),n(y))};return{all:()=>t.slice(0,r),clear:()=>{r=0},contains:v=>{const y=t.indexOf(v);return y>=0&&y<r},dequeue:()=>{if(r===0)throw new Error("Priority queue empty");const v=t[0];return t[0]=t[--r],n(0),v},enqueue:v=>{t[r++]=v;let y=r-1,x=n2(y);for(;y>0&&e(t[x],t[y])>0;)o(x,y),y=x,x=n2(y)},peek:()=>r===0?null:t[0],remove:v=>{const y=t.indexOf(v);y===-1||y>=r||(t[y]=t[--r],n(y))},size:()=>r}}const HP=e=>2*e+1,VP=e=>2*e+2,n2=e=>Math.floor((e-1)/2);function b4(e){return!!e.type.isFluentTriggerComponent}function wd(e,t){return typeof e=="function"?e(t):e?y4(e,t):e||null}function y4(e,t){if(!m.isValidElement(e)||e.type===m.Fragment)throw new Error("A trigger element must be a single element for this component. Please ensure that you're not using React Fragments.");if(b4(e)){const r=y4(e.props.children,t);return m.cloneElement(e,void 0,r)}else return m.cloneElement(e,t)}function tc(e){return m.isValidElement(e)?b4(e)?tc(e.props.children):e:null}function g1(e){return e.type.startsWith("touch")}function h1(e){return e.type.startsWith("mouse")||["click","contextmenu","dblclick"].indexOf(e.type)>-1}function a2(e){return h1(e)?{clientX:e.clientX,clientY:e.clientY}:g1(e)?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:{clientX:0,clientY:0}}function i2(e){return e instanceof Set?e:new Set(e)}function x4(e){const[t,r]=Xt({initialState:new Set,defaultState:m.useMemo(()=>e.defaultSelectedItems&&i2(e.defaultSelectedItems),[e.defaultSelectedItems]),state:m.useMemo(()=>e.selectedItems&&i2(e.selectedItems),[e.selectedItems])});return[t,(n,a)=>{var i;(i=e.onSelectionChange)===null||i===void 0||i.call(e,n,{selectedItems:a}),r(a)}]}function WP(e){const[t,r]=x4(e);return[t,{deselectItem:n=>r(n,new Set),selectItem:(n,a)=>r(n,new Set([a])),toggleAllItems:()=>{},toggleItem:(n,a)=>r(n,new Set([a])),clearItems:n=>r(n,new Set),isSelected:n=>{var a;return(a=t.has(n))!==null&&a!==void 0?a:!1}}]}function UP(e){const[t,r]=x4(e);return[t,{toggleItem:(n,a)=>{const i=new Set(t);t.has(a)?i.delete(a):i.add(a),r(n,i)},selectItem:(n,a)=>{const i=new Set(t);i.add(a),r(n,i)},deselectItem:(n,a)=>{const i=new Set(t);i.delete(a),r(n,i)},clearItems:n=>{r(n,new Set)},isSelected:n=>t.has(n),toggleAllItems:(n,a)=>{const i=a.every(d=>t.has(d)),l=new Set(t);i?l.clear():a.forEach(d=>l.add(d)),r(n,l)}}]}function GP(e){"use no memo";return e.selectionMode==="multiselect"?UP(e):WP(e)}function ZP(e){return e&&!!e._virtual}function KP(e){return ZP(e)&&e._virtual.parent||null}function w4(e,t={}){if(!e)return null;if(!t.skipVirtual){const o=KP(e);if(o)return o}const r=e.parentNode;return r&&r.nodeType===11?r.host:r}function Mi(e,t){if(!e||!t)return!1;if(e===t)return!0;{const r=new WeakSet;for(;t;){const o=w4(t,{skipVirtual:r.has(t)});if(r.add(t),o===e)return!0;t=o}}return!1}function s2(e,t){e&&Object.assign(e,{_virtual:{parent:t}})}function XP(e,t){return{...t,[Fl]:e}}function k4(e,t){return function(o,n,a,i,l){return m1(n)?t(XP(o,n),null,a,i,l):m1(o)?t(o,n,a,i,l):e(o,n,a,i,l)}}function S4(e){const{as:t,[Yj]:r,[Fl]:o,[Hu]:n,...a}=e,i=a,l=typeof o=="string"?t??o:o;return typeof l!="string"&&t&&(i.as=t),{elementType:l,props:i,renderFunction:n}}const bs=lD,YP=(e,t,r)=>{const{elementType:o,renderFunction:n,props:a}=S4(e),i={...a,...t};return n?bs.jsx(m.Fragment,{children:n(o,i)},r):bs.jsx(o,i,r)},JP=(e,t,r)=>{const{elementType:o,renderFunction:n,props:a}=S4(e),i={...a,...t};return n?bs.jsx(m.Fragment,{children:n(o,{...i,children:bs.jsxs(m.Fragment,{children:i.children},void 0)})},r):bs.jsxs(o,i,r)},G=k4(bs.jsx,YP),Ie=k4(bs.jsxs,JP),B4=m.createContext(void 0),QP={},eM=B4.Provider,tM=()=>{const e=m.useContext(B4);return e??QP},rM=(e,t)=>G(wP,{value:t.provider,children:G(pP,{value:t.theme,children:G(gP,{value:t.themeClassName,children:G(BP,{value:t.customStyleHooks_unstable,children:G(bP,{value:t.tooltip,children:G(PE,{dir:t.textDirection,children:G(eM,{value:t.iconDirection,children:G(kP,{value:t.overrides_unstable,children:Ie(e.root,{children:[eg()?null:G("style",{dangerouslySetInnerHTML:{__html:e.serverStyleProps.cssRule},...e.serverStyleProps.attributes}),e.root.children]})})})})})})})})});const pn="data-tabster",oM="data-tabster-dummy",j4=`:is(${["a[href]","button","input","select","textarea","*[tabindex]","*[contenteditable]","details > summary","audio[controls]","video[controls]"].join(", ")}):not(:disabled)`,Pa={EscapeGroupper:1,Restorer:2,Deloser:3},yi={Invisible:0,PartiallyVisible:1,Visible:2},Ss={Source:0,Target:1},Dn={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},fr={ArrowUp:1,ArrowDown:2,ArrowLeft:3,ArrowRight:4,PageUp:5,PageDown:6,Home:7,End:8},Pp={Unlimited:0,Limited:1,LimitedTrapFocus:2},Qp={Enter:1,Escape:2},nM={Outside:2};function Wr(e,t){return e.storageEntry(t)?.tabster}function C4(e,t,r){const o=r||e._noop?void 0:t.getAttribute(pn);let n=e.storageEntry(t),a;if(o)if(o!==n?.attr?.string)try{const f=JSON.parse(o);if(typeof f!="object")throw new Error(`Value is not a JSON object, got '${o}'.`);a={string:o,object:f}}catch{}else return;else if(!n)return;n||(n=e.storageEntry(t,!0)),n.tabster||(n.tabster={});const i=n.tabster||{},l=n.attr?.object||{},d=a?.object||{};for(const f of Object.keys(l))if(!d[f]){if(f==="root"){const p=i[f];p&&e.root.onRoot(p,!0)}switch(f){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const p=i[f];p&&(p.dispose(),delete i[f]);break;case"observed":delete i[f],e.observedElement&&e.observedElement.onObservedElementUpdate(t);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete i[f];break}}for(const f of Object.keys(d)){const p=d.sys;switch(f){case"root":i.root?i.root.setProps(d.root):i.root=e.root.createRoot(t,d.root,p),e.root.onRoot(i.root);break;case"focusable":i.focusable=d.focusable;break;case"observed":e.observedElement&&(i.observed=d.observed,e.observedElement.onObservedElementUpdate(t));break;case"uncontrolled":i.uncontrolled=d.uncontrolled;break;case"outline":e.outline&&(i.outline=d.outline);break;case"sys":i.sys=d.sys;break;default:{const h=e.attrHandlers.get(f);h&&(i[f]=h(t,i[f],d[f],l?.[f],p))}}}a?n.attr=a:(Object.keys(i).length===0&&(delete n.tabster,delete n.attr),e.storageEntry(t,!1))}const ra=(e,t,r)=>{e.addEventListener(t,r,!0)},an=(e,t,r)=>{e.removeEventListener(t,r,!0)};const $o="keyborg:focusin",Wu="keyborg:focusout",l2=0,c2=1,u2=2,tp=3;function aM(e){const t=e.HTMLElement,r=t.prototype.focus;let o=!1;return t.prototype.focus=function(){o=!0},e.document.createElement("button").focus(),t.prototype.focus=r,o}let X0=!1;function ca(e){const t=e.focus;t.__keyborgNativeFocus?t.__keyborgNativeFocus.call(e):e.focus()}function iM(e){const t=e,r=t.document,o=t.HTMLElement.prototype;X0||(X0=aM(t));const n=o.focus;if(n.__keyborgNativeFocus)return;o.focus=p;const a=new Set,i=v=>{const y=v.target;if(!y)return;const x=new CustomEvent(Wu,{cancelable:!0,bubbles:!0,composed:!0,detail:{originalEvent:v}});y.dispatchEvent(x)},l=v=>{const y=v.target;if(!y)return;let x=v.composedPath()[0];const b=new Set;for(;x;)x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?(b.add(x),x=x.host):x=x.parentNode;for(const k of a){const S=k.deref();(!S||!b.has(S))&&(a.delete(k),S&&(an(S,"focusin",l),an(S,"focusout",i)))}d(y,v.relatedTarget||void 0)},d=(v,y,x)=>{const b=v.shadowRoot;if(b){for(const N of a)if(N.deref()===b)return;ra(b,"focusin",l),ra(b,"focusout",i),a.add(new WeakRef(b));return}const k={relatedTarget:y,originalEvent:x},S=new CustomEvent($o,{cancelable:!0,bubbles:!0,composed:!0,detail:k});S.details=k,(X0||f[tp])&&(k.isFocusedProgrammatically=v===f[tp]?.deref(),f[tp]=void 0),v.dispatchEvent(S)},f=[l,i,a];t.__keyborgData=f,ra(r,"focusin",l),ra(r,"focusout",i);function p(){const v=t.__keyborgData;return v&&(v[tp]=new WeakRef(this)),n.apply(this,arguments)}let h=r.activeElement;for(;h&&h.shadowRoot;)d(h),h=h.shadowRoot.activeElement;p.__keyborgNativeFocus=n}function sM(e){const t=e,r=t.HTMLElement.prototype,o=r.focus.__keyborgNativeFocus,n=t.__keyborgData;if(n){const a=t.document;an(a,"focusin",n[l2]),an(a,"focusout",n[c2]);for(const i of n[u2]){const l=i.deref();l&&(an(l,"focusin",n[l2]),an(l,"focusout",n[c2]))}n[u2].clear(),delete t.__keyborgData}o&&(r.focus=o)}let lM=0;function cM(e,t){let r=e,o=!1,n;const a=()=>{const x=r?.__keyborg?.refs;if(x)for(const b of Object.keys(x))x[b]._cb.forEach(k=>k(o))},i=x=>{o!==x&&(o=x,a())},l=x=>{if(x.key==="Tab")return!0;const b=r?.document.activeElement,k=!0,S=b&&(b.tagName==="INPUT"||b.tagName==="TEXTAREA"||b.isContentEditable);return k&&!S},d=x=>{if(n||o)return;const b=x.detail;b.relatedTarget&&(b.isFocusedProgrammatically||b.isFocusedProgrammatically===void 0||i(!0))},f=()=>{r&&(n&&r.clearTimeout(n),n=r.setTimeout(()=>{n=void 0},1e3)),i(!1)},p=x=>{x.buttons===0||x.clientX===0&&x.clientY===0&&x.screenX===0&&x.screenY===0||f()},h=x=>{o||l(x)&&i(!0)},v=e.document;return ra(v,$o,d),ra(v,"mousedown",p),ra(e,"keydown",h),ra(v,"touchstart",f),ra(v,"touchend",f),ra(v,"touchcancel",f),iM(e),{dispose:()=>{if(!r)return;n&&(r.clearTimeout(n),n=void 0),sM(r);const x=r.document;an(x,$o,d),an(x,"mousedown",p),an(r,"keydown",h),an(x,"touchstart",f),an(x,"touchend",f),an(x,"touchcancel",f),r=void 0},get isNavigatingWithKeyboard(){return o},set isNavigatingWithKeyboard(x){i(x)}}}function tg(e,t){const r=e,o="k"+ ++lM;let n=r,a;const i=[],l=r.__keyborg;l?a=l.core:a=cM(r);const d={isNavigatingWithKeyboard(){return!!a?.isNavigatingWithKeyboard},subscribe(f){i.push(f)},unsubscribe(f){const p=i.indexOf(f);p>=0&&i.splice(p,1)},setVal(f){a&&(a.isNavigatingWithKeyboard=f)},_cb:i,dispose(){const f=n?.__keyborg;f?.refs[o]&&(delete f.refs[o],Object.keys(f.refs).length===0&&(f.core.dispose(),delete n.__keyborg)),i.length=0,a=void 0,n=void 0}};return l?l.refs[o]=d:r.__keyborg={core:a,refs:{[o]:d}},d}function rg(e){e.dispose()}const uM="tabster:focusin",dM="tabster:focusout",v1="tabster:movefocus",fM="tabster:modalizer:active",pM="tabster:modalizer:inactive",mM="tabster:mover:state",b1="tabster:mover:movefocus",d2="tabster:mover:memorized-element",y1="tabster:groupper:movefocus",x1="tabster:restorer:restore-focus",gM="tabster:root:focus",hM="tabster:root:blur",vM=typeof CustomEvent<"u"?CustomEvent:function(){};class Hn extends vM{constructor(r,o){super(r,{bubbles:!0,cancelable:!0,composed:!0,detail:o});K(this,"details");this.details=o}}class bM extends Hn{constructor(t){super(uM,t)}}class yM extends Hn{constructor(t){super(dM,t)}}class Ci extends Hn{constructor(t){super(v1,t)}}class f2 extends Hn{constructor(t){super(mM,t)}}class xM extends Hn{constructor(t){super(b1,t)}}class p2 extends Hn{constructor(t){super(y1,t)}}class wM extends Hn{constructor(t){super(fM,t)}}class kM extends Hn{constructor(t){super(pM,t)}}class m2 extends Hn{constructor(){super(x1)}}class SM extends Hn{constructor(t){super(gM,t)}}class BM extends Hn{constructor(t){super(hM,t)}}const jM=e=>new MutationObserver(e),CM=(e,t,r,o)=>e.createTreeWalker(t,r,o),NM=e=>e?e.parentNode:null,zM=e=>e?e.parentElement:null,TM=(e,t)=>!!(t&&e?.contains(t)),_M=e=>e.activeElement,RM=(e,t)=>e.querySelector(t),DM=(e,t)=>Array.prototype.slice.call(e.querySelectorAll(t),0),EM=(e,t)=>e.getElementById(t),PM=e=>e?.firstChild||null,MM=e=>e?.lastChild||null,qM=e=>e?.nextSibling||null,FM=e=>e?.previousSibling||null,IM=e=>e?.firstElementChild||null,AM=e=>e?.lastElementChild||null,OM=e=>e?.nextElementSibling||null,LM=e=>e?.previousElementSibling||null,$M=(e,t)=>e.appendChild(t),HM=(e,t,r)=>e.insertBefore(t,r),VM=e=>e.ownerDocument?.getSelection()||null,WM=(e,t)=>e.ownerDocument.getElementsByName(t),he={createMutationObserver:jM,createTreeWalker:CM,getParentNode:NM,getParentElement:zM,nodeContains:TM,getActiveElement:_M,querySelector:RM,querySelectorAll:DM,getElementById:EM,getFirstChild:PM,getLastChild:MM,getNextSibling:qM,getPreviousSibling:FM,getFirstElementChild:IM,getLastElementChild:AM,getNextElementSibling:OM,getPreviousElementSibling:LM,appendChild:$M,insertBefore:HM,getSelection:VM,getElementsByName:WM};function UM(e){for(const t of Object.keys(e))he[t]=e[t]}let GM=0;function og(e){const t=e();let r=t.__tabsterInstanceContext;return r||(r={elementByUId:{},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0},t.__tabsterInstanceContext=r),r}function ZM(e){const t=e.__tabsterInstanceContext;t&&(t.elementByUId={},t.containerBoundingRectCache={},t.containerBoundingRectCacheTimer&&e.clearTimeout(t.containerBoundingRectCacheTimer),delete e.__tabsterInstanceContext)}function KM(e){return!!e.querySelector(j4)}class Ao{constructor(t,r){K(this,"_ref");K(this,"_data");this._ref=new WeakRef(t),this._data=r}get(){const t=this._ref;let r;return t&&(r=t.deref(),r||delete this._ref),r}getData(){return this._data}}function ey(e,t,r){if(t.nodeType===Node.ELEMENT_NODE)return he.createTreeWalker(e,t,NodeFilter.SHOW_ELEMENT,{acceptNode:r})}function N4(e,t){let r=t.__tabsterCacheId;const o=og(e),n=r?o.containerBoundingRectCache[r]:void 0;if(n)return n.rect;const a=t.ownerDocument&&t.ownerDocument.documentElement;if(!a)return new DOMRect;let i=0,l=0,d=a.clientWidth,f=a.clientHeight;if(t!==a){const h=t.getBoundingClientRect();i=Math.max(i,h.left),l=Math.max(l,h.top),d=Math.min(d,h.right),f=Math.min(f,h.bottom)}const p=new DOMRect(i<d?i:-1,l<f?l:-1,i<d?d-i:0,l<f?f-l:0);return r||(r="r-"+ ++o.lastContainerBoundingRectCacheId,t.__tabsterCacheId=r),o.containerBoundingRectCache[r]={rect:p,element:t},o.containerBoundingRectCacheTimer||(o.containerBoundingRectCacheTimer=window.setTimeout(()=>{o.containerBoundingRectCacheTimer=void 0;for(const h of Object.keys(o.containerBoundingRectCache))delete o.containerBoundingRectCache[h].element.__tabsterCacheId;o.containerBoundingRectCache={}},50)),p}function g2(e,t,r){const o=z4(t);if(!o)return!1;const n=N4(e,o),a=t.getBoundingClientRect(),i=a.height*(1-r),l=Math.max(0,n.top-a.top),d=Math.max(0,a.bottom-n.bottom),f=l+d;return f===0||f<=i}function XM(e,t,r){const o=z4(t);if(o){const n=N4(e,o),a=t.getBoundingClientRect();r?o.scrollTop+=a.top-n.top:o.scrollTop+=a.bottom-n.bottom}}function z4(e){const t=e.ownerDocument;if(t){for(let r=he.getParentElement(e);r;r=he.getParentElement(r))if(r.scrollWidth>r.clientWidth||r.scrollHeight>r.clientHeight)return r;return t.documentElement}return null}function YM(e){e.__shouldIgnoreFocus=!0}function T4(e){return!!e.__shouldIgnoreFocus}function JM(e){const t=new Uint32Array(4);e.crypto.getRandomValues(t);const r=[];for(let o=0;o<t.length;o++)r.push(t[o].toString(36));return r.push("|"),r.push((++GM).toString(36)),r.push("|"),r.push(Date.now().toString(36)),r.join("")}function Mp(e,t){const r=og(e);let o=t.__tabsterElementUID;return o||(o=t.__tabsterElementUID=JM(e())),!r.elementByUId[o]&&_4(t.ownerDocument,t)&&(r.elementByUId[o]=new Ao(t)),o}function h2(e,t){const r=og(e);for(const o of Object.keys(r.elementByUId)){const n=r.elementByUId[o],a=n&&n.get();a&&t&&!he.nodeContains(t,a)||delete r.elementByUId[o]}}function _4(e,t){return he.nodeContains(e?.body,t)}function R4(e,t){return typeof e.matches=="function"&&e.matches(t)}let QM=0;class kd{constructor(t,r,o){K(this,"_tabster");K(this,"_element");K(this,"_props");K(this,"id");this._tabster=t,this._element=new Ao(r),this._props={...o},this.id="i"+ ++QM}getElement(){return this._element.get()}getProps(){return this._props}setProps(t){this._props={...t}}}function D4(e){let t=null;for(let r=he.getLastElementChild(e);r;r=he.getLastElementChild(r))t=r;return t||void 0}function eq(e,t){let r=e,o=null;for(;r&&!o;)o=t?he.getPreviousElementSibling(r):he.getNextElementSibling(r),r=he.getParentElement(r);return o||void 0}function Y0(e,t,r,o){const n=e.storageEntry(t,!0);let a=!1;if(!n.aug){if(o===void 0)return a;n.aug={}}if(o===void 0){if(r in n.aug){const i=n.aug[r];delete n.aug[r],i===null?t.removeAttribute(r):t.setAttribute(r,i),a=!0}}else{let i;r in n.aug||(i=t.getAttribute(r)),i!==void 0&&i!==o&&(n.aug[r]=i,o===null?t.removeAttribute(r):t.setAttribute(r,o),a=!0)}return o===void 0&&Object.keys(n.aug).length===0&&(delete n.aug,e.storageEntry(t,!1)),a}function tq(e){const t=e.ownerDocument,r=t.defaultView?.getComputedStyle(e);return e.offsetParent===null&&t.body!==e&&r?.position!=="fixed"||r?.visibility==="hidden"||r?.position==="fixed"&&(r.display==="none"||e.parentElement?.offsetParent===null&&t.body!==e.parentElement)}function w1(e){return e.tagName==="INPUT"&&!!e.name&&e.type==="radio"}function rq(e){if(!w1(e))return;const t=e.name;let r=Array.from(he.getElementsByName(e,t)),o;return r=r.filter(n=>w1(n)?(n.checked&&(o=n),!0):!1),{name:t,buttons:new Set(r),checked:o}}const J0=100;class em{constructor(t,r,o,n,a){K(this,"_isPhantom");K(this,"_fixedTarget");K(this,"_disposeTimer");K(this,"_clearDisposeTimeout");K(this,"input");K(this,"useDefaultAction");K(this,"isFirst");K(this,"isOutside");K(this,"onFocusIn");K(this,"onFocusOut");K(this,"_focusIn",t=>{if(this._fixedTarget){const o=this._fixedTarget.get();o&&ca(o);return}const r=this.input;if(this.onFocusIn&&r){const o=t.relatedTarget;this.onFocusIn(this,this._isBackward(!0,r,o),o)}});K(this,"_focusOut",t=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const r=this.input;if(this.onFocusOut&&r){const o=t.relatedTarget;this.onFocusOut(this,this._isBackward(!1,r,o),o)}});const i=t(),l=i.document.createElement("i");l.tabIndex=0,l.setAttribute("role","none"),l.setAttribute(oM,""),l.setAttribute("aria-hidden","true");const d=l.style;d.position="fixed",d.width=d.height="1px",d.opacity="0.001",d.zIndex="-1",d.setProperty("content-visibility","hidden"),YM(l),this.input=l,this.isFirst=o.isFirst,this.isOutside=r,this._isPhantom=o.isPhantom??!1,this._fixedTarget=a,l.addEventListener("focusin",this._focusIn),l.addEventListener("focusout",this._focusOut),l.__tabsterDummyContainer=n,this._isPhantom&&(this._disposeTimer=i.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(i.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){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,he.getParentNode(t)?.removeChild(t))}setTopLeft(t,r){const o=this.input?.style;o&&(o.top=`${t}px`,o.left=`${r}px`)}_isBackward(t,r,o){return t&&!o?!this.isFirst:!!(o&&r.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING)}}const ng={Root:1,Modalizer:2,Mover:3,Groupper:4};class Il{constructor(t,r,o,n,a,i){K(this,"_instance");K(this,"_onFocusIn");K(this,"_onFocusOut");K(this,"_element");this._element=r,this._instance=new nq(t,r,this,o,n,a,i)}_setHandlers(t,r){this._onFocusIn=t,this._onFocusOut=r}moveOut(t){this._instance?.moveOut(t)}moveOutWithDefaultAction(t,r){this._instance?.moveOutWithDefaultAction(t,r)}getHandler(t){return t?this._onFocusIn:this._onFocusOut}setTabbable(t){this._instance?.setTabbable(this,t)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(t,r,o,n,a){const l=new em(t.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(l){let d,f;if(r.tagName==="BODY")d=r,f=o&&n||!o&&!n?he.getFirstElementChild(r):null;else{o&&(!n||n&&!t.focusable.isFocusable(r,!1,!0,!0))?(d=r,f=n?r.firstElementChild:null):(d=he.getParentElement(r),f=o&&n||!o&&!n?r:he.getNextElementSibling(r));let p,h;do p=o&&n||!o&&!n?he.getPreviousElementSibling(f):f,h=Al(p),h===r?f=o&&n||!o&&!n?p:he.getNextElementSibling(p):h=null;while(h)}d?.dispatchEvent(new Ci({by:"root",owner:d,next:null,relatedEvent:a}))&&(he.insertBefore(d,l,f),ca(l))}}static addPhantomDummyWithTarget(t,r,o,n){const i=new em(t.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new Ao(n)).input;if(i){let l,d;KM(r)&&!o?(l=r,d=he.getFirstElementChild(r)):(l=he.getParentElement(r),d=o?r:he.getNextElementSibling(r)),l&&he.insertBefore(l,i,d)}}}class oq{constructor(t){K(this,"_win");K(this,"_updateQueue",new Set);K(this,"_updateTimer");K(this,"_lastUpdateQueueTime",0);K(this,"_changedParents",new WeakSet);K(this,"_updateDummyInputsTimer");K(this,"_dummyElements",[]);K(this,"_dummyCallbacks",new WeakMap);K(this,"_domChanged",t=>{this._changedParents.has(t)||(this._changedParents.add(t),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=this._win?.().setTimeout(()=>{delete this._updateDummyInputsTimer;for(const r of this._dummyElements){const o=r.get();if(o){const n=this._dummyCallbacks.get(o);if(n){const a=he.getParentNode(o);(!a||this._changedParents.has(a))&&n()}}}this._changedParents=new WeakSet},J0)))});this._win=t}add(t,r){!this._dummyCallbacks.has(t)&&this._win&&(this._dummyElements.push(new Ao(t)),this._dummyCallbacks.set(t,r),this.domChanged=this._domChanged)}remove(t){this._dummyElements=this._dummyElements.filter(r=>{const o=r.get();return o&&o!==t}),this._dummyCallbacks.delete(t),this._dummyElements.length===0&&delete this.domChanged}dispose(){const t=this._win?.();this._updateTimer&&(t?.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(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(t){this._win&&(this._updateQueue.add(t),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){this._updateTimer||(this._updateTimer=this._win?.().setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+J0<=Date.now()){const t=new Map,r=[];for(const o of this._updateQueue)r.push(o(t));this._updateQueue.clear();for(const o of r)o();t.clear()}else this._scheduledUpdatePositions()},J0))}}class nq{constructor(t,r,o,n,a,i,l){K(this,"_tabster");K(this,"_addTimer");K(this,"_getWindow");K(this,"_wrappers",[]);K(this,"_element");K(this,"_isOutside",!1);K(this,"_firstDummy");K(this,"_lastDummy");K(this,"_transformElements",new Set);K(this,"_callForDefaultAction");K(this,"_onFocusIn",(t,r,o)=>{this._onFocus(!0,t,r,o)});K(this,"_onFocusOut",(t,r,o)=>{this._onFocus(!1,t,r,o)});K(this,"moveOut",t=>{const r=this._firstDummy,o=this._lastDummy;if(r&&o){this._ensurePosition();const n=r.input,a=o.input,i=this._element?.get();if(n&&a&&i){let l;t?(n.tabIndex=0,l=n):(a.tabIndex=0,l=a),l&&ca(l)}}});K(this,"moveOutWithDefaultAction",(t,r)=>{const o=this._firstDummy,n=this._lastDummy;if(o&&n){this._ensurePosition();const a=o.input,i=n.input,l=this._element?.get();if(a&&i&&l){let d;t?!o.isOutside&&this._tabster.focusable.isFocusable(l,!0,!0,!0)?d=l:(o.useDefaultAction=!0,a.tabIndex=0,d=a):(n.useDefaultAction=!0,i.tabIndex=0,d=i),d&&l.dispatchEvent(new Ci({by:"root",owner:l,next:null,relatedEvent:r}))&&ca(d)}}});K(this,"setTabbable",(t,r)=>{for(const n of this._wrappers)if(n.manager===t){n.tabbable=r;break}const o=this._getCurrent();if(o){const n=o.tabbable?0:-1;let a=this._firstDummy?.input;a&&(a.tabIndex=n),a=this._lastDummy?.input,a&&(a.tabIndex=n)}});K(this,"_addDummyInputs",()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))});K(this,"_addTransformOffsets",()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)});K(this,"_computeTransformOffsets",t=>{const r=this._firstDummy?.input||this._lastDummy?.input,o=this._transformElements,n=new Set;let a=0,i=0;const l=this._getWindow();for(let d=r;d&&d.nodeType===Node.ELEMENT_NODE;d=he.getParentElement(d)){let f=t.get(d);if(f===void 0){const p=l.getComputedStyle(d).transform;p&&p!=="none"&&(f={scrollTop:d.scrollTop,scrollLeft:d.scrollLeft}),t.set(d,f||null)}f&&(n.add(d),o.has(d)||d.addEventListener("scroll",this._addTransformOffsets),a+=f.scrollTop,i+=f.scrollLeft)}for(const d of o)n.has(d)||d.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=n,()=>{this._firstDummy?.setTopLeft(a,i),this._lastDummy?.setTopLeft(a,i)}});const d=r.get();if(!d)throw new Error("No element");this._tabster=t,this._getWindow=t.getWindow,this._callForDefaultAction=l;const f=d.__tabsterDummy;if((f||this)._wrappers.push({manager:o,priority:n,tabbable:!0}),f)return f;d.__tabsterDummy=this;const p=a?.dummyInputsPosition,h=d.tagName;this._isOutside=p?p===nM.Outside:(i||h==="UL"||h==="OL"||h==="TABLE")&&!(h==="LI"||h==="TD"||h==="TH"),this._firstDummy=new em(this._getWindow,this._isOutside,{isFirst:!0},r),this._lastDummy=new em(this._getWindow,this._isOutside,{isFirst:!1},r);const v=this._firstDummy.input;v&&t._dummyObserver.add(v,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=r,this._addDummyInputs()}dispose(t,r){if((this._wrappers=this._wrappers.filter(n=>n.manager!==t&&!r)).length===0){delete(this._element?.get()).__tabsterDummy;for(const i of this._transformElements)i.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const n=this._getWindow();this._addTimer&&(n.clearTimeout(this._addTimer),delete this._addTimer);const a=this._firstDummy?.input;a&&this._tabster._dummyObserver.remove(a),this._firstDummy?.dispose(),this._lastDummy?.dispose()}}_onFocus(t,r,o,n){const a=this._getCurrent();a&&(!r.useDefaultAction||this._callForDefaultAction)&&a.manager.getHandler(t)?.(r,o,n)}_getCurrent(){return this._wrappers.sort((t,r)=>t.tabbable!==r.tabbable?t.tabbable?-1:1:t.priority-r.priority),this._wrappers[0]}_ensurePosition(){const t=this._element?.get(),r=this._firstDummy?.input,o=this._lastDummy?.input;if(!(!t||!r||!o))if(this._isOutside){const n=he.getParentNode(t);if(n){const a=he.getNextSibling(t);a!==o&&he.insertBefore(n,o,a),he.getPreviousElementSibling(t)!==r&&he.insertBefore(n,r,t)}}else{he.getLastElementChild(t)!==o&&he.appendChild(t,o);const n=he.getFirstElementChild(t);n&&n!==r&&n.parentNode&&he.insertBefore(n.parentNode,r,n)}}}function Al(e){return e?.__tabsterDummyContainer?.get()||null}function ty(e,t){const r=JSON.stringify(e);return t===!0?r:{[pn]:r}}function aq(e,t){for(const r of Object.keys(t)){const o=t[r];o?e[r]=o:delete e[r]}}function iq(e,t,r){let o;{const n=e.getAttribute(pn);if(n)try{o=JSON.parse(n)}catch{}}o||(o={}),aq(o,t),Object.keys(o).length>0?e.setAttribute(pn,ty(o,!0)):e.removeAttribute(pn)}class v2 extends Il{constructor(r,o,n,a){super(r,o,ng.Root,a,void 0,!0);K(this,"_tabster");K(this,"_setFocused");K(this,"_onDummyInputFocus",r=>{if(r.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const o=this._element.get();if(o){this._setFocused(!0);const n=this._tabster.focusedElement.getFirstOrLastTabbable(r.isFirst,{container:o,ignoreAccessibility:!0});if(n){ca(n);return}}r.input?.blur()}});this._setHandlers(this._onDummyInputFocus),this._tabster=r,this._setFocused=n}}class sq extends kd{constructor(r,o,n,a,i){super(r,o,a);K(this,"uid");K(this,"_dummyManager");K(this,"_sys");K(this,"_isFocused",!1);K(this,"_setFocusedTimer");K(this,"_onDispose");K(this,"_setFocused",r=>{if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===r)return;const o=this._element.get();o&&(r?(this._isFocused=!0,this._dummyManager?.setTabbable(!1),o.dispatchEvent(new SM({element:o}))):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{delete this._setFocusedTimer,this._isFocused=!1,this._dummyManager?.setTabbable(!0),o.dispatchEvent(new BM({element:o}))},0))});K(this,"_onFocusIn",r=>{const o=this._tabster.getParent,n=this._element.get();let a=r.composedPath()[0];do{if(a===n){this._setFocused(!0);return}a=a&&o(a)}while(a)});K(this,"_onFocusOut",()=>{this._setFocused(!1)});this._onDispose=n;const l=r.getWindow;this.uid=Mp(l,o),this._sys=i,(r.controlTab||r.rootDummyInputs)&&this.addDummyInputs();const f=l().document;f.addEventListener($o,this._onFocusIn),f.addEventListener(Wu,this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new v2(this._tabster,this._element,this._setFocused,this._sys))}dispose(){this._onDispose(this);const r=this._tabster.getWindow(),o=r.document;o.removeEventListener($o,this._onFocusIn),o.removeEventListener(Wu,this._onFocusOut),this._setFocusedTimer&&(r.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._dummyManager?.dispose(),this._remove()}moveOutWithDefaultAction(r,o){const n=this._dummyManager;if(n)n.moveOutWithDefaultAction(r,o);else{const a=this.getElement();a&&v2.moveWithPhantomDummy(this._tabster,a,!0,r,o)}}_add(){}_remove(){}}class Pt{constructor(t,r){K(this,"_tabster");K(this,"_win");K(this,"_autoRoot");K(this,"_autoRootWaiting",!1);K(this,"_roots",{});K(this,"_forceDummy",!1);K(this,"rootById",{});K(this,"_autoRootCreate",()=>{const t=this._win().document,r=t.body;if(r){this._autoRootUnwait(t);const o=this._autoRoot;if(o)return iq(r,{root:o}),C4(this._tabster,r),Wr(this._tabster,r)?.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,t.addEventListener("readystatechange",this._autoRootCreate))});K(this,"_onRootDispose",t=>{delete this._roots[t.id]});this._tabster=t,this._win=t.getWindow,this._autoRoot=r,t.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(t){t.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const t=this._win();this._autoRootUnwait(t.document),delete this._autoRoot,Object.keys(this._roots).forEach(r=>{this._roots[r]&&(this._roots[r].dispose(),delete this._roots[r])}),this.rootById={}}createRoot(t,r,o){const n=new sq(this._tabster,t,this._onRootDispose,r,o);return this._roots[n.id]=n,this._forceDummy&&n.addDummyInputs(),n}addDummyInputs(){this._forceDummy=!0;const t=this._roots;for(const r of Object.keys(t))t[r].addDummyInputs()}static getRootByUId(t,r){const o=t().__tabsterInstance;return o&&o.root.rootById[r]}static getTabsterContext(t,r,o={}){if(!r.ownerDocument)return;const{checkRtl:n,referenceElement:a}=o,i=t.getParent;t.drainInitQueue();let l,d,f,p,h=!1,v,y,x,b,k=a||r;const S={};for(;k&&(!l||n);){const B=Wr(t,k);if(n&&x===void 0){const D=k.dir;D&&(x=D.toLowerCase()==="rtl")}if(!B){k=i(k);continue}const C=k.tagName;(B.uncontrolled||C==="IFRAME"||C==="WEBVIEW")&&t.focusable.isVisible(k)&&(b=k),!p&&B.focusable?.excludeFromMover&&!f&&(h=!0);const z=B.modalizer,R=B.groupper,E=B.mover;!d&&z&&(d=z),!f&&R&&(!d||z)&&(d?(!R.isActive()&&R.getProps().tabbability&&d.userId!==t.modalizer?.activeId&&(d=void 0,f=R),y=R):f=R),!p&&E&&(!d||z)&&(!R||k!==r)&&k.contains(r)&&(p=E,v=!!f&&f!==R),B.root&&(l=B.root),B.focusable?.ignoreKeydown&&Object.assign(S,B.focusable.ignoreKeydown),k=i(k)}if(!l){const B=t.root;B._autoRoot&&r.ownerDocument?.body&&(l=B._autoRootCreate())}return f&&!p&&(v=!0),l?{root:l,modalizer:d,groupper:f,mover:p,groupperBeforeMover:v,modalizerInGroupper:y,rtl:n?!!x:void 0,uncontrolled:b,excludedFromMover:h,ignoreKeydown:B=>!!S[B.key]}:void 0}static getRoot(t,r){const o=t.getParent;for(let n=r;n;n=o(n)){const a=Wr(t,n)?.root;if(a)return a}}onRoot(t,r){r?delete this.rootById[t.uid]:this.rootById[t.uid]=t}}class lq{constructor(t){K(this,"_tabster");this._tabster=t}dispose(){}getProps(t){const r=Wr(this._tabster,t);return r&&r.focusable||{}}isFocusable(t,r,o,n){return R4(t,j4)&&(r||t.tabIndex!==-1)?(o||this.isVisible(t))&&(n||this.isAccessible(t)):!1}isVisible(t){if(!t.ownerDocument||t.nodeType!==Node.ELEMENT_NODE||tq(t))return!1;const r=t.ownerDocument.body.getBoundingClientRect();return!(r.width===0&&r.height===0)}isAccessible(t){for(let r=t;r;r=he.getParentElement(r)){const o=Wr(this._tabster,r);if(this._isHidden(r)||!o?.focusable?.ignoreAriaDisabled&&this._isDisabled(r))return!1}return!0}_isDisabled(t){return t.hasAttribute("disabled")}_isHidden(t){const r=t.getAttribute("aria-hidden");return!!(r&&r.toLowerCase()==="true"&&!this._tabster.modalizer?.isAugmented(t))}findFirst(t,r){return this.findElement({...t},r)}findLast(t,r){return this.findElement({isBackward:!0,...t},r)}findNext(t,r){return this.findElement({...t},r)}findPrev(t,r){return this.findElement({...t,isBackward:!0},r)}findDefault(t,r){return this.findElement({...t,acceptCondition:o=>this.isFocusable(o,t.includeProgrammaticallyFocusable)&&!!this.getProps(o).isDefault},r)||null}findAll(t){return this._findElements(!0,t)||[]}findElement(t,r){const o=this._findElements(!1,t,r);return o&&o[0]}_findElements(t,r,o){const{container:n,currentElement:a=null,includeProgrammaticallyFocusable:i,useActiveModalizer:l,ignoreAccessibility:d,modalizerId:f,isBackward:p,onElement:h}=r;o||(o={});const v=[];let{acceptCondition:y}=r;const x=!!y;if(!n)return null;y||(y=N=>this.isFocusable(N,i,!1,d));const b={container:n,modalizerUserId:f===void 0&&l?this._tabster.modalizer?.activeId:f||Pt.getTabsterContext(this._tabster,n)?.modalizer?.userId,from:a||n,isBackward:p,isFindAll:t,acceptCondition:y,hasCustomCondition:x,includeProgrammaticallyFocusable:i,ignoreAccessibility:d,cachedGrouppers:{},cachedRadioGroups:{}},k=ey(n.ownerDocument,n,N=>this._acceptElement(N,b));if(!k)return null;const S=N=>{const B=b.foundElement??b.foundBackward;return B&&v.push(B),t?B&&(b.found=!1,delete b.foundElement,delete b.foundBackward,delete b.fromCtx,b.from=B,h&&!h(B))?!1:!!(B||N):(B&&o&&(o.uncontrolled=Pt.getTabsterContext(this._tabster,B)?.uncontrolled),!!(N&&!B))};if(a||(o.outOfDOMOrder=!0),a&&he.nodeContains(n,a))k.currentNode=a;else if(p){const N=D4(n);if(!N)return null;if(this._acceptElement(N,b)===NodeFilter.FILTER_ACCEPT&&!S(!0))return b.skippedFocusable&&(o.outOfDOMOrder=!0),v;k.currentNode=N}do p?k.previousNode():k.nextNode();while(S());return b.skippedFocusable&&(o.outOfDOMOrder=!0),v.length?v:null}_acceptElement(t,r){if(r.found)return NodeFilter.FILTER_ACCEPT;const o=r.foundBackward;if(o&&(t===o||!he.nodeContains(o,t)))return r.found=!0,r.foundElement=o,NodeFilter.FILTER_ACCEPT;const n=r.container;if(t===n)return NodeFilter.FILTER_SKIP;if(!he.nodeContains(n,t)||Al(t)||he.nodeContains(r.rejectElementsFrom,t))return NodeFilter.FILTER_REJECT;const a=r.currentCtx=Pt.getTabsterContext(this._tabster,t);if(!a)return NodeFilter.FILTER_SKIP;if(T4(t))return this.isFocusable(t,void 0,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!r.hasCustomCondition&&(t.tagName==="IFRAME"||t.tagName==="WEBVIEW"))return this.isVisible(t)&&a.modalizer?.userId===this._tabster.modalizer?.activeId?(r.found=!0,r.rejectElementsFrom=r.foundElement=t,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!r.ignoreAccessibility&&!this.isAccessible(t))return this.isFocusable(t,!1,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let i,l=r.fromCtx;l||(l=r.fromCtx=Pt.getTabsterContext(this._tabster,r.from));const d=l?.mover;let f=a.groupper,p=a.mover;if(i=this._tabster.modalizer?.acceptElement(t,r),i!==void 0&&(r.skippedFocusable=!0),i===void 0&&(f||p||d)){const h=f?.getElement(),v=d?.getElement();let y=p?.getElement();if(y&&he.nodeContains(v,y)&&he.nodeContains(n,v)&&(!h||!p||he.nodeContains(v,h))&&(p=d,y=v),h){if(h===n||!he.nodeContains(n,h))f=void 0;else if(!he.nodeContains(h,t))return NodeFilter.FILTER_REJECT}if(y){if(!he.nodeContains(n,y))p=void 0;else if(!he.nodeContains(y,t))return NodeFilter.FILTER_REJECT}f&&p&&(y&&h&&!he.nodeContains(h,y)?p=void 0:f=void 0),f&&(i=f.acceptElement(t,r)),p&&(i=p.acceptElement(t,r))}if(i===void 0&&(i=r.acceptCondition(t)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,i===NodeFilter.FILTER_SKIP&&this.isFocusable(t,!1,!0,!0)&&(r.skippedFocusable=!0)),i===NodeFilter.FILTER_ACCEPT&&!r.found){if(!r.isFindAll&&w1(t)&&!t.checked){const h=t.name;let v=r.cachedRadioGroups[h];if(v||(v=rq(t),v&&(r.cachedRadioGroups[h]=v)),v?.checked&&v.checked!==t)return NodeFilter.FILTER_SKIP}r.isBackward?(r.foundBackward=t,i=NodeFilter.FILTER_SKIP):(r.found=!0,r.foundElement=t)}return i}}const pr={Tab:"Tab",Enter:"Enter",Escape:"Escape",PageUp:"PageUp",PageDown:"PageDown",End:"End",Home:"Home",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown"};class E4{constructor(){K(this,"_val");K(this,"_callbacks",[])}dispose(){this._callbacks=[],delete this._val}subscribe(t){const r=this._callbacks;r.indexOf(t)<0&&r.push(t)}subscribeFirst(t){const r=this._callbacks,o=r.indexOf(t);o>=0&&r.splice(o,1),r.unshift(t)}unsubscribe(t){const r=this._callbacks.indexOf(t);r>=0&&this._callbacks.splice(r,1)}setVal(t,r){this._val!==t&&(this._val=t,this._callCallbacks(t,r))}getVal(){return this._val}trigger(t,r){this._callCallbacks(t,r)}_callCallbacks(t,r){this._callbacks.forEach(o=>o(t,r))}}function cq(e,t){const r=e.getParent;let o=t;do{const n=Wr(e,o)?.uncontrolled;if(n&&e.uncontrolled.isUncontrolledCompletely(o,!!n.completely))return o;o=r(o)}while(o)}const b2={[Pa.Restorer]:0,[Pa.Deloser]:1,[Pa.EscapeGroupper]:2},_r=class _r extends E4{constructor(r,o){super();K(this,"_tabster");K(this,"_win");K(this,"_nextVal");K(this,"_lastVal");K(this,"_asyncFocus");K(this,"_init",()=>{const r=this._win(),o=r.document;o.addEventListener($o,this._onFocusIn,!0),o.addEventListener(Wu,this._onFocusOut,!0),r.addEventListener("keydown",this._onKeyDown,!0);const n=he.getActiveElement(o);n&&n!==o.body&&this._setFocusedElement(n),this.subscribe(this._onChanged)});K(this,"_onFocusIn",r=>{const o=r.composedPath()[0];o&&this._setFocusedElement(o,r.detail.relatedTarget,r.detail.isFocusedProgrammatically)});K(this,"_onFocusOut",r=>{this._setFocusedElement(void 0,r.detail?.originalEvent.relatedTarget)});K(this,"_validateFocusedElement",r=>{});K(this,"_onKeyDown",r=>{if(r.key!==pr.Tab||r.ctrlKey)return;const o=this.getVal();if(!o||!o.ownerDocument||o.contentEditable==="true")return;const n=this._tabster,a=n.controlTab,i=Pt.getTabsterContext(n,o);if(!i||i.ignoreKeydown(r))return;const l=r.shiftKey,d=_r.findNextTabbable(n,i,void 0,o,void 0,l,!0),f=i.root.getElement();if(!f)return;const p=d?.element,h=cq(n,o);if(p){const v=d.uncontrolled;if(i.uncontrolled||he.nodeContains(v,o)){if(!d.outOfDOMOrder&&v===i.uncontrolled||h&&!he.nodeContains(h,p))return;Il.addPhantomDummyWithTarget(n,o,l,p);return}if(v&&n.focusable.isVisible(v)||p.tagName==="IFRAME"&&n.focusable.isVisible(p)){f.dispatchEvent(new Ci({by:"root",owner:f,next:p,relatedEvent:r}))&&Il.moveWithPhantomDummy(n,v??p,!1,l,r);return}(a||d?.outOfDOMOrder)&&f.dispatchEvent(new Ci({by:"root",owner:f,next:p,relatedEvent:r}))&&(r.preventDefault(),r.stopImmediatePropagation(),ca(p))}else!h&&f.dispatchEvent(new Ci({by:"root",owner:f,next:null,relatedEvent:r}))&&i.root.moveOutWithDefaultAction(l,r)});K(this,"_onChanged",(r,o)=>{if(r)r.dispatchEvent(new bM(o));else{const n=this._lastVal?.get();if(n){const a={...o},l=Pt.getTabsterContext(this._tabster,n)?.modalizer?.userId;l&&(a.modalizerId=l),n.dispatchEvent(new yM(a))}}});this._tabster=r,this._win=o,r.queueInit(this._init)}dispose(){super.dispose();const r=this._win(),o=r.document;o.removeEventListener($o,this._onFocusIn,!0),o.removeEventListener(Wu,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 _r._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(r,o){let n=_r._lastResetElement,a=n&&n.get();a&&he.nodeContains(o,a)&&delete _r._lastResetElement,a=r._nextVal?.element?.get(),a&&he.nodeContains(o,a)&&delete r._nextVal,n=r._lastVal,a=n&&n.get(),a&&he.nodeContains(o,a)&&delete r._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){let r=this._lastVal?.get();return(!r||r&&!_4(r.ownerDocument,r))&&(this._lastVal=r=void 0),r}focus(r,o,n,a){return this._tabster.focusable.isFocusable(r,o,!1,n)?(r.focus({preventScroll:a}),!0):!1}focusDefault(r){const o=this._tabster.focusable.findDefault({container:r});return o?(this._tabster.focusedElement.focus(o),!0):!1}getFirstOrLastTabbable(r,o){const{container:n,ignoreAccessibility:a}=o;let i;if(n){const l=Pt.getTabsterContext(this._tabster,n);l&&(i=_r.findNextTabbable(this._tabster,l,n,void 0,void 0,!r,a)?.element)}return i&&!he.nodeContains(n,i)&&(i=void 0),i||void 0}_focusFirstOrLast(r,o){const n=this.getFirstOrLastTabbable(r,o);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 o=r.getAttribute("tabindex"),n=r.getAttribute("aria-hidden");r.tabIndex=-1,r.setAttribute("aria-hidden","true"),_r._lastResetElement=new Ao(r),this.focus(r,!0,!0),this._setOrRemoveAttribute(r,"tabindex",o),this._setOrRemoveAttribute(r,"aria-hidden",n)}return!0}requestAsyncFocus(r,o,n){const a=this._tabster.getWindow(),i=this._asyncFocus;if(i){if(b2[r]>b2[i.source])return;a.clearTimeout(i.timeout)}this._asyncFocus={source:r,callback:o,timeout:a.setTimeout(()=>{this._asyncFocus=void 0,o()},n)}}cancelAsyncFocus(r){const o=this._asyncFocus;o?.source===r&&(this._tabster.getWindow().clearTimeout(o.timeout),this._asyncFocus=void 0)}_setOrRemoveAttribute(r,o,n){n===null?r.removeAttribute(o):r.setAttribute(o,n)}_setFocusedElement(r,o,n){if(this._tabster._noop)return;const a={relatedTarget:o};if(r){const l=_r._lastResetElement?.get();if(_r._lastResetElement=void 0,l===r||T4(r))return;a.isFocusedProgrammatically=n;const f=Pt.getTabsterContext(this._tabster,r)?.modalizer?.userId;f&&(a.modalizerId=f)}const i=this._nextVal={element:r?new Ao(r):void 0,detail:a};r&&r!==this._val&&this._validateFocusedElement(r),this._nextVal===i&&this.setVal(r,a),this._nextVal=void 0}setVal(r,o){super.setVal(r,o),r&&(this._lastVal=new Ao(r))}static findNextTabbable(r,o,n,a,i,l,d){const f=n||o.root.getElement();if(!f)return null;let p=null;const h=_r._isTabbingTimer,v=r.getWindow();h&&v.clearTimeout(h),_r.isTabbing=!0,_r._isTabbingTimer=v.setTimeout(()=>{delete _r._isTabbingTimer,_r.isTabbing=!1},0);const y=o.modalizer,x=o.groupper,b=o.mover,k=S=>{if(p=S.findNextTabbable(a,i,l,d),a&&!p?.element){const N=S!==y&&he.getParentElement(S.getElement());if(N){const B=Pt.getTabsterContext(r,a,{referenceElement:N});if(B){const C=S.getElement(),z=l?C:C&&D4(C)||C;z&&(p=_r.findNextTabbable(r,B,n,z,N,l,d),p&&(p.outOfDOMOrder=!0))}}}};if(x&&b)k(o.groupperBeforeMover?x:b);else if(x)k(x);else if(b)k(b);else if(y)k(y);else{const S={container:f,currentElement:a,referenceElement:i,ignoreAccessibility:d,useActiveModalizer:!0},N={};p={element:r.focusable[l?"findPrev":"findNext"](S,N),outOfDOMOrder:N.outOfDOMOrder,uncontrolled:N.uncontrolled}}return p}};K(_r,"_lastResetElement"),K(_r,"_isTabbingTimer"),K(_r,"isTabbing",!1);let qi=_r;class uq extends E4{constructor(r){super();K(this,"_keyborg");K(this,"_onChange",r=>{this.setVal(r,void 0)});this._keyborg=tg(r()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),rg(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(r){this._keyborg?.setVal(r)}isNavigatingWithKeyboard(){return!!this._keyborg?.isNavigatingWithKeyboard()}}function dq(e,t,r,o){if(typeof MutationObserver>"u")return()=>{};const n=t.getWindow;let a;const i=p=>{const h=new Set;for(const v of p){const y=v.target,x=v.removedNodes,b=v.addedNodes;if(v.type==="attributes")v.attributeName===pn&&(h.has(y)||r(t,y));else{for(let k=0;k<x.length;k++){const S=x[k];h.add(S),l(S,!0),t._dummyObserver.domChanged?.(y)}for(let k=0;k<b.length;k++)l(b[k]),t._dummyObserver.domChanged?.(y)}}h.clear(),t.modalizer?.hiddenUpdate()};function l(p,h){a||(a=og(n).elementByUId),d(p,h);const v=ey(e,p,y=>d(y,h));if(v)for(;v.nextNode(););}function d(p,h){if(!p.getAttribute)return NodeFilter.FILTER_SKIP;const v=p.__tabsterElementUID;return v&&a&&(h?delete a[v]:a[v]??(a[v]=new Ao(p))),(Wr(t,p)||p.hasAttribute(pn))&&r(t,p,h),NodeFilter.FILTER_SKIP}const f=he.createMutationObserver(i);return o&&l(n().document.body),f.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[pn]}),()=>{f.disconnect()}}class fq{constructor(t){K(this,"_isUncontrolledCompletely");this._isUncontrolledCompletely=t}isUncontrolledCompletely(t,r){const o=this._isUncontrolledCompletely?.(t,r);return o===void 0?r:o}}let pq=0;const Q0="aria-hidden";class mq extends Il{constructor(t,r,o){super(r,t,ng.Modalizer,o),this._setHandlers((n,a)=>{const i=t.get(),l=i&&Pt.getRoot(r,i)?.getElement(),d=n.input;let f;if(l&&d){const p=Al(d),h=Pt.getTabsterContext(r,p||d);h&&(f=qi.findNextTabbable(r,h,l,d,void 0,a,!0)?.element),f&&ca(f)}})}}class gq extends kd{constructor(r,o,n,a,i,l){super(r,o,a);K(this,"userId");K(this,"_isActive");K(this,"_wasFocused",0);K(this,"_onDispose");K(this,"_activeElements");K(this,"dummyManager");this.userId=a.id,this._onDispose=n,this._activeElements=l,r.controlTab||(this.dummyManager=new mq(this._element,r,i))}makeActive(r){if(this._isActive!==r){this._isActive=r;const o=this.getElement();if(o){const n=this._activeElements,a=n.map(i=>i.get()).indexOf(o);r?a<0&&n.push(new Ao(o)):a>=0&&n.splice(a,1)}this._dispatchEvent(r)}}focused(r){return r||(this._wasFocused=++pq),this._wasFocused}setProps(r){r.id&&(this.userId=r.id),this._props={...r}}dispose(){this.makeActive(!1),this._onDispose(this),this.dummyManager?.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(r){return he.nodeContains(this.getElement(),r)}findNextTabbable(r,o,n,a){if(!this.getElement())return null;const l=this._tabster;let d=null,f=!1,p;const h=r&&Pt.getRoot(l,r)?.getElement();if(h){const v={container:h,currentElement:r,referenceElement:o,ignoreAccessibility:a,useActiveModalizer:!0},y={};d=l.focusable[n?"findPrev":"findNext"](v,y),!d&&this._props.isTrapped&&l.modalizer?.activeId?(d=l.focusable[n?"findLast":"findFirst"]({container:h,ignoreAccessibility:a,useActiveModalizer:!0},y),d===null&&(d=r),f=!0):f=!!y.outOfDOMOrder,p=y.uncontrolled}return{element:d,uncontrolled:p,outOfDOMOrder:f}}_dispatchEvent(r,o){const n=this.getElement();let a=!1;if(n){const i=o?this._activeElements.map(l=>l.get()):[n];for(const l of i)if(l){const d={id:this.userId,element:n},f=r?new wM(d):new kM(d);l.dispatchEvent(f),f.defaultPrevented&&(a=!0)}}return a}_remove(){}}class hq{constructor(t,r,o){K(this,"_tabster");K(this,"_win");K(this,"_restoreModalizerFocusTimer");K(this,"_modalizers");K(this,"_parts");K(this,"_augMap");K(this,"_aug");K(this,"_hiddenUpdateTimer");K(this,"_alwaysAccessibleSelector");K(this,"_accessibleCheck");K(this,"_activationHistory");K(this,"activeId");K(this,"currentIsOthersAccessible");K(this,"activeElements");K(this,"_onModalizerDispose",t=>{const r=t.id,o=t.userId,n=this._parts[o];if(delete this._modalizers[r],n&&(delete n[r],Object.keys(n).length===0)){delete this._parts[o];const a=this._activationHistory,i=[];let l;for(let d=a.length;d--;){const f=a[d];f!==o&&f!==l&&(l=f,(f||i.length>0)&&i.unshift(f))}if(this._activationHistory=i,this.activeId===o){const d=i[0],f=d?Object.values(this._parts[d])[0]:void 0;this.setActive(f)}}});K(this,"_onKeyDown",t=>{if(t.key!==pr.Escape)return;const r=this._tabster,o=r.focusedElement.getFocusedElement();if(o){const n=Pt.getTabsterContext(r,o),a=n?.modalizer;if(n&&!n.groupper&&a?.isActive()&&!n.ignoreKeydown(t)){const i=a.userId;if(i){const l=this._parts[i];if(l){const d=Object.keys(l).map(f=>{const p=l[f],h=p.getElement();let v;return h&&(v=Wr(r,h)?.groupper),p&&h&&v?{el:h,focusedSince:p.focused(!0)}:{focusedSince:0}}).filter(f=>f.focusedSince>0).sort((f,p)=>f.focusedSince>p.focusedSince?-1:f.focusedSince<p.focusedSince?1:0);if(d.length){const f=d[0].el;f&&r.groupper?.handleKeyPress(f,t,!0)}}}}}});K(this,"_onFocus",(t,r)=>{const o=this._tabster,n=t&&Pt.getTabsterContext(o,t);if(!n||!t)return;const a=this._augMap;for(let f=t;f;f=he.getParentElement(f))a.has(f)&&(a.delete(f),Y0(o,f,Q0));let i=n.modalizer;const l=Wr(o,t),d=l?.modalizer;if(d&&(d.focused(),d.userId===this.activeId&&l.groupper)){const f=o.getParent(t),p=f&&Pt.getTabsterContext(o,f)?.modalizer;if(p)i=p;else{this.setActive(void 0);return}}if(i?.focused(),i?.userId===this.activeId){this.currentIsOthersAccessible=i?.getProps().isOthersAccessible;return}if(r.isFocusedProgrammatically||this.currentIsOthersAccessible||i?.getProps().isAlwaysAccessible)this.setActive(i);else{const f=this._win();f.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=f.setTimeout(()=>this._restoreModalizerFocus(t),100)}});this._tabster=t,this._win=t.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=r,this._accessibleCheck=o,this._activationHistory=[],this.activeElements=[],t.controlTab||t.root.addDummyInputs(),this._win().addEventListener("keydown",this._onKeyDown,!0),t.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){const t=this._win();t.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach(r=>{this._modalizers[r]&&(this._modalizers[r].dispose(),delete this._modalizers[r])}),t.clearTimeout(this._restoreModalizerFocusTimer),t.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizer(t,r,o){const n=new gq(this._tabster,t,this._onModalizerDispose,r,o,this.activeElements),a=n.id,i=r.id;this._modalizers[a]=n;let l=this._parts[i];l||(l=this._parts[i]={}),l[a]=n;const d=this._tabster.focusedElement.getFocusedElement()??null;return t!==d&&he.nodeContains(t,d)&&(i!==this.activeId?this.setActive(n):n.makeActive(!0)),n}isAugmented(t){return this._augMap.has(t)}hiddenUpdate(){this._hiddenUpdateTimer||(this._hiddenUpdateTimer=this._win().setTimeout(()=>{delete this._hiddenUpdateTimer,this._hiddenUpdate()},250))}setActive(t){const r=t?.userId,o=this.activeId;if(o===r)return;if(this.activeId=r,o){const a=this._parts[o];if(a)for(const i of Object.keys(a))a[i].makeActive(!1)}if(r){const a=this._parts[r];if(a)for(const i of Object.keys(a))a[i].makeActive(!0)}this.currentIsOthersAccessible=t?.getProps().isOthersAccessible,this.hiddenUpdate();const n=this._activationHistory;n[0]!==r&&(r!==void 0||n.length>0)&&n.unshift(r)}focus(t,r,o){const n=this._tabster,i=Pt.getTabsterContext(n,t)?.modalizer;if(i){this.setActive(i);const l=i.getProps(),d=i.getElement();if(d){if(r===void 0&&(r=l.isNoFocusFirst),!r&&n.keyboardNavigation.isNavigatingWithKeyboard()&&n.focusedElement.focusFirst({container:d})||(o===void 0&&(o=l.isNoFocusDefault),!o&&n.focusedElement.focusDefault(d)))return!0;n.focusedElement.resetFocus(d)}}return!1}activate(t){const r=t?Pt.getTabsterContext(this._tabster,t)?.modalizer:void 0;return!t||r?(this.setActive(r),!0):!1}acceptElement(t,r){const o=r.modalizerUserId,n=r.currentCtx?.modalizer;if(o)for(const i of this.activeElements){const l=i.get();if(l&&(he.nodeContains(t,l)||l===t))return NodeFilter.FILTER_SKIP}const a=o===n?.userId||!o&&n?.getProps().isAlwaysAccessible?void 0:NodeFilter.FILTER_SKIP;return a!==void 0&&(r.skippedFocusable=!0),a}_hiddenUpdate(){const t=this._tabster,r=t.getWindow().document.body,o=this.activeId,n=this._parts,a=[],i=[],l=this._alwaysAccessibleSelector,d=l?Array.from(he.querySelectorAll(r,l)):[],f=[];for(const k of Object.keys(n)){const S=n[k];for(const N of Object.keys(S)){const B=S[N],C=B.getElement(),R=B.getProps().isAlwaysAccessible;C&&(k===o?(f.push(C),this.currentIsOthersAccessible||a.push(C)):R?d.push(C):i.push(C))}}const p=this._augMap,h=a.length>0?[...a,...d]:void 0,v=[],y=new WeakMap,x=(k,S)=>{const N=k.tagName;if(N==="SCRIPT"||N==="STYLE")return;let B=!1;p.has(k)?S?B=!0:(p.delete(k),Y0(t,k,Q0)):S&&!this._accessibleCheck?.(k,f)&&Y0(t,k,Q0,"true")&&(p.set(k,!0),B=!0),B&&(v.push(new Ao(k)),y.set(k,!0))},b=k=>{for(let S=he.getFirstElementChild(k);S;S=he.getNextElementSibling(S)){let N=!1,B=!1,C=!1;if(h){const z=t.getParent(S);for(const R of h){if(S===R){N=!0;break}if(he.nodeContains(S,R)){B=!0;break}else he.nodeContains(R,z)&&(C=!0)}B||S.__tabsterElementFlags?.noDirectAriaHidden?b(S):!N&&!C&&x(S,!0)}else x(S,!1)}};h||d.forEach(k=>x(k,!1)),i.forEach(k=>x(k,!0)),r&&b(r),this._aug?.map(k=>k.get()).forEach(k=>{k&&!y.get(k)&&x(k,!1)}),this._aug=v,this._augMap=y}_restoreModalizerFocus(t){const r=t?.ownerDocument;if(!t||!r)return;const o=this._tabster.focusedElement.getFocusedElement(),n=o&&Pt.getTabsterContext(this._tabster,o)?.modalizer;if(!o||o&&n?.userId===this.activeId)return;const a=this._tabster,i=Pt.getTabsterContext(a,t),l=i?.modalizer,d=this.activeId;if(!l&&!d||l&&d===l.userId)return;const f=i?.root.getElement();if(f){let p=a.focusable.findFirst({container:f,useActiveModalizer:!0});if(p){if(t.compareDocumentPosition(p)&document.DOCUMENT_POSITION_PRECEDING&&(p=a.focusable.findLast({container:f,useActiveModalizer:!0}),!p))throw new Error("Something went wrong.");a.focusedElement.focus(p);return}}t.blur()}}function P4(e,t,r){const o=e.core;if(!o.modalizer){const n=new hq(o,t,r);o.modalizer=n,o.attrHandlers.set("modalizer",(a,i,l,d,f)=>i?l.id&&d?.id!==l.id?(i.dispose(),n.createModalizer(a,l,f)):(i.setProps(l),i):n.createModalizer(a,l,f))}return o.modalizer}const vq=["input","textarea","*[contenteditable]"].join(", ");class bq extends Il{constructor(r,o,n,a){super(o,r,ng.Mover,a);K(this,"_tabster");K(this,"_getMemorized");K(this,"_onFocusDummyInput",r=>{const o=this._element.get(),n=r.input;if(o&&n){const a=Pt.getTabsterContext(this._tabster,o);let i;a&&(i=qi.findNextTabbable(this._tabster,a,void 0,n,void 0,!r.isFirst,!0)?.element);const l=this._getMemorized()?.get();l&&this._tabster.focusable.isFocusable(l)&&(i=l),i&&ca(i)}});this._tabster=o,this._getMemorized=n,this._setHandlers(this._onFocusDummyInput)}}const ev=1,y2=2,x2=3;class yq extends kd{constructor(r,o,n,a,i){super(r,o,a);K(this,"_unobserve");K(this,"_intersectionObserver");K(this,"_setCurrentTimer");K(this,"_current");K(this,"_prevCurrent");K(this,"_visible",{});K(this,"_fullyVisible");K(this,"_win");K(this,"_onDispose");K(this,"_allElements");K(this,"_updateQueue");K(this,"_updateTimer");K(this,"visibilityTolerance");K(this,"dummyManager");K(this,"_onIntersection",r=>{for(const o of r){const n=o.target,a=Mp(this._win,n);let i,l=this._fullyVisible;if(o.intersectionRatio>=.25?(i=o.intersectionRatio>=.75?yi.Visible:yi.PartiallyVisible,i===yi.Visible&&(l=a)):i=yi.Invisible,this._visible[a]!==i){i===void 0?(delete this._visible[a],l===a&&delete this._fullyVisible):(this._visible[a]=i,this._fullyVisible=l);const d=this.getState(n);d&&n.dispatchEvent(new f2(d))}}});this._win=r.getWindow,this.visibilityTolerance=a.visibilityTolerance??.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=()=>a.memorizeCurrent?this._current:void 0;r.controlTab||(this.dummyManager=new bq(this._element,r,l,i))}dispose(){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 r=this._win();this._setCurrentTimer&&(r.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(r.clearTimeout(this._updateTimer),delete this._updateTimer),this.dummyManager?.dispose(),delete this.dummyManager}setCurrent(r){r?this._current=new Ao(r):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{delete this._setCurrentTimer;const o=[];this._current!==this._prevCurrent&&(o.push(this._current),o.push(this._prevCurrent),this._prevCurrent=this._current);for(const n of o){const a=n?.get();if(a&&this._allElements?.get(a)===this){const i=this._props;if(a&&(i.visibilityAware!==void 0||i.trackState)){const l=this.getState(a);l&&a.dispatchEvent(new f2(l))}}}}))}getCurrent(){return this._current?.get()||null}findNextTabbable(r,o,n,a){const i=this.getElement(),l=i&&Al(r)===i;if(!i)return null;let d=null,f=!1,p;if(this._props.tabbable||l||r&&!he.nodeContains(i,r)){const h={currentElement:r,referenceElement:o,container:i,ignoreAccessibility:a,useActiveModalizer:!0},v={};d=this._tabster.focusable[n?"findPrev":"findNext"](h,v),f=!!v.outOfDOMOrder,p=v.uncontrolled}return{element:d,uncontrolled:p,outOfDOMOrder:f}}acceptElement(r,o){if(!qi.isTabbing)return o.currentCtx?.excludedFromMover?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:n,visibilityAware:a,hasDefault:i=!0}=this._props,l=this.getElement();if(l&&(n||a||i)&&(!he.nodeContains(l,o.from)||Al(o.from)===l)){let d;if(n){const f=this._current?.get();f&&o.acceptCondition(f)&&(d=f)}if(!d&&i&&(d=this._tabster.focusable.findDefault({container:l,useActiveModalizer:!0})),!d&&a&&(d=this._tabster.focusable.findElement({container:l,useActiveModalizer:!0,isBackward:o.isBackward,acceptCondition:f=>{const p=Mp(this._win,f),h=this._visible[p];return l!==f&&!!this._allElements?.get(f)&&o.acceptCondition(f)&&(h===yi.Visible||h===yi.PartiallyVisible&&(a===yi.PartiallyVisible||!this._fullyVisible))}})),d)return o.found=!0,o.foundElement=d,o.rejectElementsFrom=l,o.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){const r=this.getElement();if(this._unobserve||!r||typeof MutationObserver>"u")return;const o=this._win(),n=this._allElements=new WeakMap,a=this._tabster.focusable;let i=this._updateQueue=[];const l=he.createMutationObserver(x=>{for(const b of x){const k=b.target,S=b.removedNodes,N=b.addedNodes;if(b.type==="attributes")b.attributeName==="tabindex"&&i.push({element:k,type:y2});else{for(let B=0;B<S.length;B++)i.push({element:S[B],type:x2});for(let B=0;B<N.length;B++)i.push({element:N[B],type:ev})}}v()}),d=(x,b)=>{const k=n.get(x);k&&b&&(this._intersectionObserver?.unobserve(x),n.delete(x)),!k&&!b&&(n.set(x,this),this._intersectionObserver?.observe(x))},f=x=>{const b=a.isFocusable(x);n.get(x)?b||d(x,!0):b&&d(x)},p=x=>{const{mover:b}=y(x);if(b&&b!==this)if(b.getElement()===x&&a.isFocusable(x))d(x);else return;const k=ey(o.document,x,S=>{const{mover:N,groupper:B}=y(S);if(N&&N!==this)return NodeFilter.FILTER_REJECT;const C=B?.getFirst(!0);return B&&B.getElement()!==S&&C&&C!==S?NodeFilter.FILTER_REJECT:(a.isFocusable(S)&&d(S),NodeFilter.FILTER_SKIP)});if(k)for(k.currentNode=x;k.nextNode(););},h=x=>{n.get(x)&&d(x,!0);for(let k=he.getFirstElementChild(x);k;k=he.getNextElementSibling(k))h(k)},v=()=>{!this._updateTimer&&i.length&&(this._updateTimer=o.setTimeout(()=>{delete this._updateTimer;for(const{element:x,type:b}of i)switch(b){case y2:f(x);break;case ev:p(x);break;case x2:h(x);break}i=this._updateQueue=[]},0))},y=x=>{const b={};for(let k=x;k;k=he.getParentElement(k)){const S=Wr(this._tabster,k);if(S&&(S.groupper&&!b.groupper&&(b.groupper=S.groupper),S.mover)){b.mover=S.mover;break}}return b};i.push({element:r,type:ev}),v(),l.observe(r,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{l.disconnect()}}getState(r){const o=Mp(this._win,r);if(o in this._visible){const n=this._visible[o]||yi.Invisible;return{isCurrent:this._current?this._current.get()===r:void 0,visibility:n}}}}function xq(e,t,r,o,n,a,i,l){const d=r<n?n-r:i<e?e-i:0,f=o<a?a-o:l<t?t-l:0;return d===0?f:f===0?d:Math.sqrt(d*d+f*f)}class wq{constructor(t,r){K(this,"_tabster");K(this,"_win");K(this,"_movers");K(this,"_ignoredInputTimer");K(this,"_ignoredInputResolve");K(this,"_init",()=>{const t=this._win();t.addEventListener("keydown",this._onKeyDown,!0),t.addEventListener(b1,this._onMoveFocus),t.addEventListener(d2,this._onMemorizedElement),this._tabster.focusedElement.subscribe(this._onFocus)});K(this,"_onMoverDispose",t=>{delete this._movers[t.id]});K(this,"_onFocus",t=>{let r=t,o=t;for(let n=he.getParentElement(t);n;n=he.getParentElement(n)){const a=Wr(this._tabster,n)?.mover;a&&(a.setCurrent(o),r=void 0),!r&&this._tabster.focusable.isFocusable(n)&&(r=o=n)}});K(this,"_onKeyDown",async t=>{if(this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),this._ignoredInputResolve?.(!1),t.ctrlKey||t.altKey||t.shiftKey||t.metaKey)return;const r=t.key;let o;if(r===pr.ArrowDown?o=fr.ArrowDown:r===pr.ArrowRight?o=fr.ArrowRight:r===pr.ArrowUp?o=fr.ArrowUp:r===pr.ArrowLeft?o=fr.ArrowLeft:r===pr.PageDown?o=fr.PageDown:r===pr.PageUp?o=fr.PageUp:r===pr.Home?o=fr.Home:r===pr.End&&(o=fr.End),!o)return;const n=this._tabster.focusedElement.getFocusedElement();!n||await this._isIgnoredInput(n,r)||this._moveFocus(n,o,t)});K(this,"_onMoveFocus",t=>{const r=t.composedPath()[0],o=t.detail?.key;r&&o!==void 0&&!t.defaultPrevented&&(this._moveFocus(r,o),t.stopImmediatePropagation())});K(this,"_onMemorizedElement",t=>{const r=t.composedPath()[0];let o=t.detail?.memorizedElement;if(r){const a=Pt.getTabsterContext(this._tabster,r)?.mover;a&&(o&&!he.nodeContains(a.getElement(),o)&&(o=void 0),a.setCurrent(o),t.stopImmediatePropagation())}});this._tabster=t,this._win=r,this._movers={},t.queueInit(this._init)}dispose(){const t=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),this._ignoredInputResolve?.(!1),this._ignoredInputTimer&&(t.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),t.removeEventListener("keydown",this._onKeyDown,!0),t.removeEventListener(b1,this._onMoveFocus),t.removeEventListener(d2,this._onMemorizedElement),Object.keys(this._movers).forEach(r=>{this._movers[r]&&(this._movers[r].dispose(),delete this._movers[r])})}createMover(t,r,o){const n=new yq(this._tabster,t,this._onMoverDispose,r,o);return this._movers[n.id]=n,n}moveFocus(t,r){return this._moveFocus(t,r)}_moveFocus(t,r,o){const n=this._tabster,a=Pt.getTabsterContext(n,t,{checkRtl:!0});if(!a||!a.mover||a.excludedFromMover||o&&a.ignoreKeydown(o))return null;const i=a.mover,l=i.getElement();if(a.groupperBeforeMover){const R=a.groupper;if(R&&!R.isActive(!0)){for(let E=he.getParentElement(R.getElement());E&&E!==l;E=he.getParentElement(E))if(Wr(n,E)?.groupper?.isActive(!0))return null}else return null}if(!l)return null;const d=n.focusable,f=i.getProps(),p=f.direction||Dn.Both,h=p===Dn.Both,v=h||p===Dn.Vertical,y=h||p===Dn.Horizontal,x=p===Dn.GridLinear,b=x||p===Dn.Grid,k=f.cyclic;let S,N,B,C=0,z=0;if(b&&(B=t.getBoundingClientRect(),C=Math.ceil(B.left),z=Math.floor(B.right)),a.rtl&&(r===fr.ArrowRight?r=fr.ArrowLeft:r===fr.ArrowLeft&&(r=fr.ArrowRight)),r===fr.ArrowDown&&v||r===fr.ArrowRight&&(y||b))if(S=d.findNext({currentElement:t,container:l,useActiveModalizer:!0}),S&&b){const R=Math.ceil(S.getBoundingClientRect().left);!x&&z>R&&(S=void 0)}else!S&&k&&(S=d.findFirst({container:l,useActiveModalizer:!0}));else if(r===fr.ArrowUp&&v||r===fr.ArrowLeft&&(y||b))if(S=d.findPrev({currentElement:t,container:l,useActiveModalizer:!0}),S&&b){const R=Math.floor(S.getBoundingClientRect().right);!x&&R>C&&(S=void 0)}else!S&&k&&(S=d.findLast({container:l,useActiveModalizer:!0}));else if(r===fr.Home)b?d.findElement({container:l,currentElement:t,useActiveModalizer:!0,isBackward:!0,acceptCondition:R=>{if(!d.isFocusable(R))return!1;const E=Math.ceil(R.getBoundingClientRect().left??0);return R!==t&&C<=E?!0:(S=R,!1)}}):S=d.findFirst({container:l,useActiveModalizer:!0});else if(r===fr.End)b?d.findElement({container:l,currentElement:t,useActiveModalizer:!0,acceptCondition:R=>{if(!d.isFocusable(R))return!1;const E=Math.ceil(R.getBoundingClientRect().left??0);return R!==t&&C>=E?!0:(S=R,!1)}}):S=d.findLast({container:l,useActiveModalizer:!0});else if(r===fr.PageUp){if(d.findElement({currentElement:t,container:l,useActiveModalizer:!0,isBackward:!0,acceptCondition:R=>d.isFocusable(R)?g2(this._win,R,i.visibilityTolerance)?(S=R,!1):!0:!1}),b&&S){const R=Math.ceil(S.getBoundingClientRect().left);d.findElement({currentElement:S,container:l,useActiveModalizer:!0,acceptCondition:E=>{if(!d.isFocusable(E))return!1;const D=Math.ceil(E.getBoundingClientRect().left);return C<D||R>=D?!0:(S=E,!1)}})}N=!1}else if(r===fr.PageDown){if(d.findElement({currentElement:t,container:l,useActiveModalizer:!0,acceptCondition:R=>d.isFocusable(R)?g2(this._win,R,i.visibilityTolerance)?(S=R,!1):!0:!1}),b&&S){const R=Math.ceil(S.getBoundingClientRect().left);d.findElement({currentElement:S,container:l,useActiveModalizer:!0,isBackward:!0,acceptCondition:E=>{if(!d.isFocusable(E))return!1;const D=Math.ceil(E.getBoundingClientRect().left);return C>D||R<=D?!0:(S=E,!1)}})}N=!0}else if(b){const R=r===fr.ArrowUp,E=C,D=Math.ceil(B.top),I=z,M=Math.floor(B.bottom);let O,H,$=0;d.findAll({container:l,currentElement:t,isBackward:R,onElement:Z=>{const q=Z.getBoundingClientRect(),A=Math.ceil(q.left),X=Math.ceil(q.top),V=Math.floor(q.right),oe=Math.floor(q.bottom);if(R&&D<oe||!R&&M>X)return!0;const ee=Math.ceil(Math.min(I,V))-Math.floor(Math.max(E,A)),W=Math.ceil(Math.min(I-E,V-A));if(ee>0&&W>=ee){const L=ee/W;L>$&&(O=Z,$=L)}else if($===0){const L=xq(E,D,I,M,A,X,V,oe);(H===void 0||L<H)&&(H=L,O=Z)}else if($>0)return!1;return!0}}),S=O}return S&&(!o||o&&l.dispatchEvent(new Ci({by:"mover",owner:l,next:S,relatedEvent:o})))?(N!==void 0&&XM(this._win,S,N),o&&(o.preventDefault(),o.stopImmediatePropagation()),ca(S),S):null}async _isIgnoredInput(t,r){if(t.getAttribute("aria-expanded")==="true"&&(t.hasAttribute("aria-activedescendant")||t.getAttribute("role")==="combobox"))return!0;if(R4(t,vq)){let o=0,n=0,a=0,i;if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"){const l=t.type;if(a=(t.value||"").length,l==="email"||l==="number"){if(a){const f=he.getSelection(t);if(f){const p=f.toString().length,h=r===pr.ArrowLeft||r===pr.ArrowUp;if(f.modify("extend",h?"backward":"forward","character"),p!==f.toString().length)return f.modify("extend",h?"forward":"backward","character"),!0;a=0}}}else{const f=t.selectionStart;if(f===null)return l==="hidden";o=f||0,n=t.selectionEnd||0}}else t.contentEditable==="true"&&(i=new Promise(l=>{this._ignoredInputResolve=y=>{delete this._ignoredInputResolve,l(y)};const d=this._win();this._ignoredInputTimer&&d.clearTimeout(this._ignoredInputTimer);const{anchorNode:f,focusNode:p,anchorOffset:h,focusOffset:v}=he.getSelection(t)||{};this._ignoredInputTimer=d.setTimeout(()=>{delete this._ignoredInputTimer;const{anchorNode:y,focusNode:x,anchorOffset:b,focusOffset:k}=he.getSelection(t)||{};if(y!==f||x!==p||b!==h||k!==v){this._ignoredInputResolve?.(!1);return}if(o=b||0,n=k||0,a=t.textContent?.length||0,y&&x&&he.nodeContains(t,y)&&he.nodeContains(t,x)&&y!==t){let S=!1;const N=B=>{if(B===y)S=!0;else if(B===x)return!0;const C=B.textContent;if(C&&!he.getFirstChild(B)){const R=C.length;S?x!==y&&(n+=R):(o+=R,n+=R)}let z=!1;for(let R=he.getFirstChild(B);R&&!z;R=R.nextSibling)z=N(R);return z};N(t)}this._ignoredInputResolve?.(!0)},0)}));if(i&&!await i||o!==n||o>0&&(r===pr.ArrowLeft||r===pr.ArrowUp||r===pr.Home)||o<a&&(r===pr.ArrowRight||r===pr.ArrowDown||r===pr.End))return!0}return!1}}function kq(e){const t=e.core;if(!t.mover){const r=new wq(t,t.getWindow);t.mover=r,t.attrHandlers.set("mover",(o,n,a,i,l)=>n?(n.setProps(a),n):r.createMover(o,a,l))}return t.mover}class Sq extends Il{constructor(t,r,o,n){super(o,t,ng.Groupper,n,!0),this._setHandlers((a,i,l)=>{const d=t.get(),f=a.input;if(d&&f){const p=Pt.getTabsterContext(o,f);if(p){let h;h=r.findNextTabbable(l||void 0,void 0,i,!0)?.element,h||(h=qi.findNextTabbable(o,p,void 0,a.isOutside?f:eq(d,!i),void 0,i,!0)?.element),h&&ca(h)}}})}}class Bq extends kd{constructor(r,o,n,a,i){super(r,o,a);K(this,"_shouldTabInside",!1);K(this,"_first");K(this,"_onDispose");K(this,"dummyManager");this.makeTabbable(!1),this._onDispose=n,r.controlTab||(this.dummyManager=new Sq(this._element,this,r,i))}dispose(){this._onDispose(this),this._element.get(),this.dummyManager?.dispose(),delete this.dummyManager,delete this._first}findNextTabbable(r,o,n,a){const i=this.getElement();if(!i)return null;const l=Al(r)===i;if(!this._shouldTabInside&&r&&he.nodeContains(i,r)&&!l)return{element:void 0,outOfDOMOrder:!0};const d=this.getFirst(!0);if(!r||!he.nodeContains(i,r)||l)return{element:d,outOfDOMOrder:!0};const f=this._tabster;let p=null,h=!1,v;if(this._shouldTabInside&&d){const y={container:i,currentElement:r,referenceElement:o,ignoreAccessibility:a,useActiveModalizer:!0},x={};p=f.focusable[n?"findPrev":"findNext"](y,x),h=!!x.outOfDOMOrder,!p&&this._props.tabbability===Pp.LimitedTrapFocus&&(p=f.focusable[n?"findLast":"findFirst"]({container:i,ignoreAccessibility:a,useActiveModalizer:!0},x),h=!0),v=x.uncontrolled}return{element:p,uncontrolled:v,outOfDOMOrder:h}}makeTabbable(r){this._shouldTabInside=r||!this._props.tabbability}isActive(r){const o=this.getElement()||null;let n=!0;for(let i=he.getParentElement(o);i;i=he.getParentElement(i)){const l=Wr(this._tabster,i)?.groupper;l&&(l._shouldTabInside||(n=!1))}let a=n?this._props.tabbability?this._shouldTabInside:!1:void 0;if(a&&r){const i=this._tabster.focusedElement.getFocusedElement();i&&(a=i!==this.getFirst(!0))}return a}getFirst(r){const o=this.getElement();let n;if(o){if(r&&this._tabster.focusable.isFocusable(o))return o;n=this._first?.get(),n||(n=this._tabster.focusable.findFirst({container:o,useActiveModalizer:!0})||void 0,n&&this.setFirst(n))}return n}setFirst(r){r?this._first=new Ao(r):delete this._first}acceptElement(r,o){const n=o.cachedGrouppers,a=he.getParentElement(this.getElement()),i=a&&Pt.getTabsterContext(this._tabster,a),l=i?.groupper,d=i?.groupperBeforeMover?l:void 0;let f;const p=y=>{let x=n[y.id],b;return x?b=x.isActive:(b=this.isActive(!0),x=n[y.id]={isActive:b}),b};if(d&&(f=d.getElement(),!p(d)&&f&&o.container!==f&&he.nodeContains(o.container,f)))return o.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const h=p(this),v=this.getElement();if(v&&h!==!0){if(v===r&&l&&(f||(f=l.getElement()),f&&!p(l)&&he.nodeContains(o.container,f)&&f!==o.container)||v!==r&&he.nodeContains(v,r))return o.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const y=n[this.id];let x;if("first"in y?x=y.first:x=y.first=this.getFirst(!0),x&&o.acceptCondition(x))return o.rejectElementsFrom=v,o.skippedFocusable=!0,x!==o.from?(o.found=!0,o.foundElement=x,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT}}}class jq{constructor(t,r){K(this,"_tabster");K(this,"_updateTimer");K(this,"_win");K(this,"_current",{});K(this,"_grouppers",{});K(this,"_init",()=>{const t=this._win();this._tabster.focusedElement.subscribeFirst(this._onFocus);const r=t.document,o=he.getActiveElement(r);o&&this._onFocus(o),r.addEventListener("mousedown",this._onMouseDown,!0),t.addEventListener("keydown",this._onKeyDown,!0),t.addEventListener(y1,this._onMoveFocus)});K(this,"_onGroupperDispose",t=>{delete this._grouppers[t.id]});K(this,"_onFocus",t=>{t&&this._updateCurrent(t)});K(this,"_onMouseDown",t=>{let r=t.target;for(;r&&!this._tabster.focusable.isFocusable(r);)r=this._tabster.getParent(r);r&&this._updateCurrent(r)});K(this,"_onKeyDown",t=>{if(t.key!==pr.Enter&&t.key!==pr.Escape||t.ctrlKey||t.altKey||t.shiftKey||t.metaKey)return;const r=this._tabster.focusedElement.getFocusedElement();r&&this.handleKeyPress(r,t)});K(this,"_onMoveFocus",t=>{const r=t.composedPath()[0],o=t.detail?.action;r&&o!==void 0&&!t.defaultPrevented&&(o===Qp.Enter?this._enterGroupper(r):this._escapeGroupper(r),t.stopImmediatePropagation())});this._tabster=t,this._win=r,t.queueInit(this._init)}dispose(){const t=this._win();this._tabster.focusedElement.cancelAsyncFocus(Pa.EscapeGroupper),this._current={},this._updateTimer&&(t.clearTimeout(this._updateTimer),delete this._updateTimer),this._tabster.focusedElement.unsubscribe(this._onFocus),t.document.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("keydown",this._onKeyDown,!0),t.removeEventListener(y1,this._onMoveFocus),Object.keys(this._grouppers).forEach(r=>{this._grouppers[r]&&(this._grouppers[r].dispose(),delete this._grouppers[r])})}createGroupper(t,r,o){const n=this._tabster,a=new Bq(n,t,this._onGroupperDispose,r,o);this._grouppers[a.id]=a;const i=n.focusedElement.getFocusedElement();return i&&he.nodeContains(t,i)&&!this._updateTimer&&(this._updateTimer=this._win().setTimeout(()=>{delete this._updateTimer,i===n.focusedElement.getFocusedElement()&&this._updateCurrent(i)},0)),a}forgetCurrentGrouppers(){this._current={}}_updateCurrent(t){this._updateTimer&&(this._win().clearTimeout(this._updateTimer),delete this._updateTimer);const r=this._tabster,o={};for(let n=r.getParent(t);n;n=r.getParent(n)){const a=Wr(r,n)?.groupper;if(a){o[a.id]=!0,this._current[a.id]=a;const i=a.isActive()||t!==n&&(!a.getProps().delegated||a.getFirst(!1)!==t);a.makeTabbable(i)}}for(const n of Object.keys(this._current)){const a=this._current[n];a.id in o||(a.makeTabbable(!1),a.setFirst(void 0),delete this._current[n])}}_enterGroupper(t,r){const o=this._tabster,n=Pt.getTabsterContext(o,t),a=n?.groupper||n?.modalizerInGroupper,i=a?.getElement();if(a&&i&&(t===i||a.getProps().delegated&&t===a.getFirst(!1))){const l=o.focusable.findNext({container:i,currentElement:t,useActiveModalizer:!0});if(l&&(!r||r&&i.dispatchEvent(new Ci({by:"groupper",owner:i,next:l,relatedEvent:r}))))return r&&(r.preventDefault(),r.stopImmediatePropagation()),l.focus(),l}return null}_escapeGroupper(t,r,o){const n=this._tabster,a=Pt.getTabsterContext(n,t);let i=a?.groupper||a?.modalizerInGroupper;const l=i?.getElement();if(i&&l&&he.nodeContains(l,t)){let d;if(t!==l||o)d=i.getFirst(!0);else{const f=he.getParentElement(l);i=(f?Pt.getTabsterContext(n,f):void 0)?.groupper,d=i?.getFirst(!0)}if(d&&(!r||r&&l.dispatchEvent(new Ci({by:"groupper",owner:l,next:d,relatedEvent:r}))))return i&&i.makeTabbable(!1),d.focus(),d}return null}moveFocus(t,r){return r===Qp.Enter?this._enterGroupper(t):this._escapeGroupper(t)}handleKeyPress(t,r,o){const n=this._tabster,a=Pt.getTabsterContext(n,t);if(a&&(a?.groupper||a?.modalizerInGroupper)){if(n.focusedElement.cancelAsyncFocus(Pa.EscapeGroupper),a.ignoreKeydown(r))return;if(r.key===pr.Enter)this._enterGroupper(t,r);else if(r.key===pr.Escape){const i=n.focusedElement.getFocusedElement();n.focusedElement.requestAsyncFocus(Pa.EscapeGroupper,()=>{i!==n.focusedElement.getFocusedElement()&&(o&&!i||!o)||this._escapeGroupper(t,r,o)},0)}}}}function Cq(e){const t=e.core;if(!t.groupper){const r=new jq(t,t.getWindow);t.groupper=r,t.attrHandlers.set("groupper",(o,n,a,i,l)=>n?(n.setProps(a),n):r.createGroupper(o,a,l))}return t.groupper}class Nq extends kd{constructor(r,o,n){super(r,o,n);K(this,"_hasFocus",!1);K(this,"_onFocusOut",r=>{const o=this._element?.get();o&&r.relatedTarget===null&&o.dispatchEvent(new m2),o&&!he.nodeContains(o,r.relatedTarget)&&(this._hasFocus=!1)});K(this,"_onFocusIn",()=>{this._hasFocus=!0});if(this._props.type===Ss.Source){const a=this._element?.get();a?.addEventListener("focusout",this._onFocusOut),a?.addEventListener("focusin",this._onFocusIn),this._hasFocus=he.nodeContains(a,a&&he.getActiveElement(a.ownerDocument))}}dispose(){if(this._props.type===Ss.Source){const r=this._element?.get();r?.removeEventListener("focusout",this._onFocusOut),r?.removeEventListener("focusin",this._onFocusIn),this._hasFocus&&this._tabster.getWindow().document.body.dispatchEvent(new m2)}}}const Um=class Um{constructor(t){K(this,"_stack",[]);K(this,"_getWindow");this._getWindow=t}push(t){this._stack[this._stack.length-1]?.get()!==t&&(this._stack.length>Um.DEPTH&&this._stack.shift(),this._stack.push(new Ao(t)))}pop(t=()=>!0){const r=this._getWindow().document;for(let o=this._stack.length-1;o>=0;o--){const n=this._stack.pop()?.get();if(n&&he.nodeContains(r.body,he.getParentElement(n))&&t(n))return n}}};K(Um,"DEPTH",10);let k1=Um;class zq{constructor(t){K(this,"_tabster");K(this,"_history");K(this,"_keyboardNavState");K(this,"_focusedElementState");K(this,"_getWindow");K(this,"_onRestoreFocus",t=>{this._focusedElementState.cancelAsyncFocus(Pa.Restorer);const r=t.composedPath()[0];if(r){const o=Wr(this._tabster,r)?.restorer?.getProps().id;this._focusedElementState.requestAsyncFocus(Pa.Restorer,()=>this._restoreFocus(r,o),0)}});K(this,"_onFocusIn",t=>{!t||Wr(this._tabster,t)?.restorer?.getProps().type!==Ss.Target||this._history.push(t)});K(this,"_restoreFocus",(t,r)=>{const o=this._getWindow().document;if(he.getActiveElement(o)!==o.body||!this._keyboardNavState.isNavigatingWithKeyboard()&&he.nodeContains(o.body,t))return;const n=a=>{const i=Wr(this._tabster,a)?.restorer?.getProps();return i?i.id:null};this._history.pop(a=>r===n(a))?.focus()});this._tabster=t,this._getWindow=t.getWindow,this._getWindow().addEventListener(x1,this._onRestoreFocus),this._history=new k1(this._getWindow),this._keyboardNavState=t.keyboardNavigation,this._focusedElementState=t.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){const t=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),this._focusedElementState.cancelAsyncFocus(Pa.Restorer),t.removeEventListener(x1,this._onRestoreFocus)}createRestorer(t,r){const o=new Nq(this._tabster,t,r);return r.type===Ss.Target&&he.getActiveElement(t.ownerDocument)===t&&this._history.push(t),o}}function M4(e){const t=e.core;if(!t.restorer){const r=new zq(t);t.restorer=r,t.attrHandlers.set("restorer",(o,n,a)=>n?(n.setProps(a),n):r.createRestorer(o,a))}return t.restorer}class Tq{constructor(t){K(this,"keyboardNavigation");K(this,"focusedElement");K(this,"focusable");K(this,"root");K(this,"uncontrolled");K(this,"core");this.keyboardNavigation=t.keyboardNavigation,this.focusedElement=t.focusedElement,this.focusable=t.focusable,this.root=t.root,this.uncontrolled=t.uncontrolled,this.core=t}}class _q{constructor(t,r){K(this,"_storage");K(this,"_unobserve");K(this,"_win");K(this,"_forgetMemorizedTimer");K(this,"_forgetMemorizedElements",[]);K(this,"_wrappers",new Set);K(this,"_initTimer");K(this,"_initQueue",[]);K(this,"_version","8.8.0");K(this,"_noop",!1);K(this,"controlTab");K(this,"rootDummyInputs");K(this,"attrHandlers",new Map);K(this,"keyboardNavigation");K(this,"focusedElement");K(this,"focusable");K(this,"root");K(this,"uncontrolled");K(this,"internal");K(this,"_dummyObserver");K(this,"groupper");K(this,"mover");K(this,"outline");K(this,"deloser");K(this,"modalizer");K(this,"observedElement");K(this,"crossOrigin");K(this,"restorer");K(this,"getParent");K(this,"getWindow",()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win});this._storage=new WeakMap,this._win=t;const o=this.getWindow;r?.DOMAPI&&UM({...r.DOMAPI}),this.keyboardNavigation=new uq(o),this.focusedElement=new qi(this,o),this.focusable=new lq(this),this.root=new Pt(this,r?.autoRoot),this.uncontrolled=new fq(r?.checkUncontrolledCompletely||r?.checkUncontrolledTrappingFocus),this.controlTab=r?.controlTab??!0,this.rootDummyInputs=!!r?.rootDummyInputs,this._dummyObserver=new oq(o),this.getParent=r?.getParent??he.getParentNode,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:n=>{if(!this._unobserve){const a=o().document;this._unobserve=dq(a,this,C4,n)}}},this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(t){t&&(this.getParent=t.getParent??this.getParent)}createTabster(t,r){const o=new Tq(this);return t||this._wrappers.add(o),this._mergeProps(r),o}disposeTabster(t,r){r?this._wrappers.clear():this._wrappers.delete(t),this._wrappers.size===0&&this.dispose()}dispose(){this.internal.stopObserver();const t=this._win;t?.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],t&&this._forgetMemorizedTimer&&(t.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),this.outline?.dispose(),this.crossOrigin?.dispose(),this.deloser?.dispose(),this.groupper?.dispose(),this.mover?.dispose(),this.modalizer?.dispose(),this.observedElement?.dispose(),this.restorer?.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),this.attrHandlers.clear(),h2(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),t&&(ZM(t),delete t.__tabsterInstance,delete this._win)}storageEntry(t,r){const o=this._storage;let n=o.get(t);return n?r===!1&&Object.keys(n).length===0&&o.delete(t):r===!0&&(n={},o.set(t,n)),n}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let t=this._forgetMemorizedElements.shift();t;t=this._forgetMemorizedElements.shift())h2(this.getWindow,t),qi.forgetMemorized(this.focusedElement,t)},0)))}queueInit(t){this._win&&(this._initQueue.push(t),this._initTimer||(this._initTimer=this._win?.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const t=this._initQueue;this._initQueue=[],t.forEach(r=>r())}}function Rq(e,t){let r=Eq(e);return r?r.createTabster(!1,t):(r=new _q(e,t),e.__tabsterInstance=r,r.createTabster())}function Dq(e,t){e.core.disposeTabster(e,t)}function Eq(e){return e.__tabsterInstance}const Pq=e=>e;function Mq(e){const t=e?.defaultView||void 0,r=t?.__tabsterShadowDOMAPI;if(t)return Rq(t,{autoRoot:{},controlTab:!1,getParent:w4,checkUncontrolledCompletely:o=>{var n;return((n=o.firstElementChild)===null||n===void 0?void 0:n.hasAttribute("data-is-focus-trap-zone-bumper"))===!0||void 0},DOMAPI:r})}function Ds(e=Pq){const{targetDocument:t}=Ve(),r=m.useRef(null);return $t(()=>{const o=Mq(t);if(o)return r.current=e(o),()=>{Dq(o),r.current=null}},[t,e]),r}const Bs=e=>{Ds();const t=ty(e,!0);return m.useMemo(()=>({[pn]:t}),[t])},Ho=(e={})=>{const{circular:t,axis:r,memorizeCurrent:o=!0,tabbable:n,ignoreDefaultKeydown:a,unstable_hasDefault:i}=e;return Ds(kq),Bs({mover:{cyclic:!!t,direction:qq(r??"vertical"),memorizeCurrent:o,tabbable:n,hasDefault:i},...a&&{focusable:{ignoreKeydown:a}}})};function qq(e){switch(e){case"horizontal":return Dn.Horizontal;case"grid":return Dn.Grid;case"grid-linear":return Dn.GridLinear;case"both":return Dn.Both;default:return Dn.Vertical}}const rc=e=>(Ds(Cq),Bs({groupper:{tabbability:Fq(e?.tabBehavior)},focusable:{ignoreKeydown:e?.ignoreDefaultKeydown}})),Fq=e=>{switch(e){case"unlimited":return Pp.Unlimited;case"limited":return Pp.Limited;case"limited-trap-focus":return Pp.LimitedTrapFocus;default:return}},hn=()=>{const e=Ds(),{targetDocument:t}=Ve(),r=m.useCallback((l,d)=>{var f;return l&&((f=e.current)===null||f===void 0?void 0:f.focusable.findAll({container:l,acceptCondition:d}))||[]},[e]),o=m.useCallback(l=>{var d;return l&&((d=e.current)===null||d===void 0?void 0:d.focusable.findFirst({container:l}))},[e]),n=m.useCallback(l=>{var d;return l&&((d=e.current)===null||d===void 0?void 0:d.focusable.findLast({container:l}))},[e]),a=m.useCallback((l,d={})=>{if(!e.current||!t||!l)return null;const{container:f=t.body}=d;return e.current.focusable.findNext({currentElement:l,container:f})},[e,t]),i=m.useCallback((l,d={})=>{if(!e.current||!t||!l)return null;const{container:f=t.body}=d;return e.current.focusable.findPrev({currentElement:l,container:f})},[e,t]);return{findAllFocusable:r,findFirstFocusable:o,findLastFocusable:n,findNextFocusable:a,findPrevFocusable:i}},w2="data-fui-focus-visible",q4="data-fui-focus-within";function Iq(e,t){if(F4(e))return()=>{};const r={current:void 0},o=tg(t);function n(d){o.isNavigatingWithKeyboard()&&qt(d)&&(r.current=d,d.setAttribute(w2,""))}function a(){r.current&&(r.current.removeAttribute(w2),r.current=void 0)}o.subscribe(d=>{d?n(t.document.activeElement):a()});const i=d=>{a();const f=d.composedPath()[0];n(f)},l=d=>{(!d.relatedTarget||qt(d.relatedTarget)&&!e.contains(d.relatedTarget))&&a()};return e.addEventListener($o,i),e.addEventListener("focusout",l),e.focusVisible=!0,e.contains(t.document.activeElement)&&n(t.document.activeElement),()=>{a(),e.removeEventListener($o,i),e.removeEventListener("focusout",l),e.focusVisible=void 0,rg(o)}}function F4(e){return e?e.focusVisible?!0:F4(e?.parentElement):!1}function ry(e={}){const t=Ve(),r=m.useRef(null);var o;const n=(o=e.targetDocument)!==null&&o!==void 0?o:t.targetDocument;return m.useEffect(()=>{if(n?.defaultView&&r.current)return Iq(r.current,n.defaultView)},[r,n]),r}function Aq(e,t){const r=tg(t);r.subscribe(a=>{a||k2(e)});const o=a=>{r.isNavigatingWithKeyboard()&&S2(a.target)&&Oq(e)},n=a=>{(!a.relatedTarget||S2(a.relatedTarget)&&!e.contains(a.relatedTarget))&&k2(e)};return e.addEventListener($o,o),e.addEventListener("focusout",n),()=>{e.removeEventListener($o,o),e.removeEventListener("focusout",n),rg(r)}}function Oq(e){e.setAttribute(q4,"")}function k2(e){e.removeAttribute(q4)}function S2(e){return e?!!(e&&typeof e=="object"&&"classList"in e&&"contains"in e):!1}function Es(){const{targetDocument:e}=Ve(),t=m.useRef(null);return m.useEffect(()=>{if(e?.defaultView&&t.current)return Aq(t.current,e.defaultView)},[t,e]),t}function oy(){const{targetDocument:e}=Ve(),t=m.useRef(null);return m.useEffect(()=>{const r=e?.defaultView;if(r){const o=tg(r);return t.current=o,()=>{rg(o),t.current=null}}},[e]),t}function I4(e){const t=oy(),r=de(e);m.useEffect(()=>{const o=t.current;if(o){const n=a=>{r(a)};return o.subscribe(n),n(o.isNavigatingWithKeyboard()),()=>{o.unsubscribe(n)}}},[t,r])}const Lq="data-tabster-never-hide",$q=e=>e.hasAttribute(Lq);function Hq(e){P4(e,void 0,$q),M4(e)}const Sd=(e={})=>{const{trapFocus:t,alwaysFocusable:r,legacyTrapFocus:o}=e;Ds(Hq);const n=bt("modal-",e.id),a=Bs({restorer:{type:Ss.Source},...t&&{modalizer:{id:n,isOthersAccessible:!t,isAlwaysAccessible:r,isTrapped:o&&t}}}),i=Bs({restorer:{type:Ss.Target}});return{modalAttributes:a,triggerAttributes:i}},Vq=(...e)=>{"use no memo";const t=e.reduce((r,o)=>(o?.[pn]&&r.push(o[pn]),r),[]);return m.useMemo(()=>({[pn]:t.length>0?t.reduce(Wq):void 0}),t)},Wq=(e,t)=>JSON.stringify(Object.assign(B2(e),B2(t))),B2=e=>{try{return JSON.parse(e)}catch{return{}}};function Uq(){return Ds(M4),ty({restorer:{type:Ss.Source}})}function Gq(){const e=oy();return m.useCallback(()=>{var t,r;return(r=(t=e.current)===null||t===void 0?void 0:t.isNavigatingWithKeyboard())!==null&&r!==void 0?r:!1},[e])}function Zq(){const e=oy();return m.useCallback(t=>{var r;(r=e.current)===null||r===void 0||r.setVal(t)},[e])}function Kq(){const e=Ds(P4),[t]=Ga();return m.useCallback(o=>{t(()=>{var n;(n=e.current)===null||n===void 0||n.activate(o)},0)},[e,t])}const ce={2:"#050505",4:"#0a0a0a",6:"#0f0f0f",8:"#141414",10:"#1a1a1a",12:"#1f1f1f",14:"#242424",16:"#292929",18:"#2e2e2e",20:"#333333",22:"#383838",24:"#3d3d3d",26:"#424242",30:"#4d4d4d",32:"#525252",34:"#575757",36:"#5c5c5c",38:"#616161",40:"#666666",42:"#6b6b6b",44:"#707070",46:"#757575",60:"#999999",68:"#adadad",70:"#b3b3b3",74:"#bdbdbd",78:"#c7c7c7",82:"#d1d1d1",84:"#d6d6d6",86:"#dbdbdb",88:"#e0e0e0",90:"#e6e6e6",92:"#ebebeb",94:"#f0f0f0",96:"#f5f5f5",98:"#fafafa",99:"#fcfcfc"},eo={5:"rgba(255, 255, 255, 0.05)",10:"rgba(255, 255, 255, 0.1)",20:"rgba(255, 255, 255, 0.2)",40:"rgba(255, 255, 255, 0.4)",50:"rgba(255, 255, 255, 0.5)",60:"rgba(255, 255, 255, 0.6)",70:"rgba(255, 255, 255, 0.7)",80:"rgba(255, 255, 255, 0.8)"},en={5:"rgba(0, 0, 0, 0.05)",10:"rgba(0, 0, 0, 0.1)",20:"rgba(0, 0, 0, 0.2)",30:"rgba(0, 0, 0, 0.3)",40:"rgba(0, 0, 0, 0.4)",50:"rgba(0, 0, 0, 0.5)"},Xq={50:"rgba(26, 26, 26, 0.5)"},Yq={70:"rgba(31, 31, 31, 0.7)"},j2={50:"rgba(36, 36, 36, 0.5)",80:"rgba(36, 36, 36, 0.8)"},tt="#ffffff",qp="#000000",Jq={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},A4={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},Qq={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},eF={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},tF={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},rF={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},oF={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},nF={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},aF={shade50:"#282400",shade40:"#4c4400",shade30:"#817400",shade20:"#c0ad00",shade10:"#e4cc00",primary:"#fde300",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},iF={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},sF={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},lF={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},cF={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},uF={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},dF={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},O4={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},fF={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},pF={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},mF={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},gF={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},hF={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},vF={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},bF={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},yF={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},xF={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},wF={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},kF={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},SF={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},BF={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},jF={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},CF={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},NF={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},zF={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},TF={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},_F={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},RF={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"},Ct={red:Qq,green:O4,darkOrange:eF,yellow:aF,berry:SF,lightGreen:dF,marigold:nF},Ni={darkRed:Jq,cranberry:A4,pumpkin:tF,peach:oF,gold:iF,brass:sF,brown:lF,forest:cF,seafoam:uF,darkGreen:fF,lightTeal:pF,teal:mF,steel:gF,blue:hF,royalBlue:vF,cornflower:bF,navy:yF,lavender:xF,purple:wF,grape:kF,lilac:BF,pink:jF,magenta:CF,plum:NF,beige:zF,mink:TF,platinum:_F,anchor:RF},St={cranberry:A4,green:O4,orange:rF},L4=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],$4=["darkRed","cranberry","pumpkin","peach","gold","brass","brown","forest","seafoam","darkGreen","lightTeal","teal","steel","blue","royalBlue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],No={success:"green",warning:"orange",danger:"cranberry"},Bd=L4.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),o={[`colorPalette${r}Background1`]:Ct[t].tint60,[`colorPalette${r}Background2`]:Ct[t].tint40,[`colorPalette${r}Background3`]:Ct[t].primary,[`colorPalette${r}Foreground1`]:Ct[t].shade10,[`colorPalette${r}Foreground2`]:Ct[t].shade30,[`colorPalette${r}Foreground3`]:Ct[t].primary,[`colorPalette${r}BorderActive`]:Ct[t].primary,[`colorPalette${r}Border1`]:Ct[t].tint40,[`colorPalette${r}Border2`]:Ct[t].primary};return Object.assign(e,o)},{});Bd.colorPaletteYellowForeground1=Ct.yellow.shade30;Bd.colorPaletteRedForegroundInverted=Ct.red.tint20;Bd.colorPaletteGreenForegroundInverted=Ct.green.tint20;Bd.colorPaletteYellowForegroundInverted=Ct.yellow.tint40;const DF=$4.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),o={[`colorPalette${r}Background2`]:Ni[t].tint40,[`colorPalette${r}Foreground2`]:Ni[t].shade30,[`colorPalette${r}BorderActive`]:Ni[t].primary};return Object.assign(e,o)},{}),EF={...Bd,...DF},oc=Object.entries(No).reduce((e,[t,r])=>{const o=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorStatus${o}Background1`]:St[r].tint60,[`colorStatus${o}Background2`]:St[r].tint40,[`colorStatus${o}Background3`]:St[r].primary,[`colorStatus${o}Foreground1`]:St[r].shade10,[`colorStatus${o}Foreground2`]:St[r].shade30,[`colorStatus${o}Foreground3`]:St[r].primary,[`colorStatus${o}ForegroundInverted`]:St[r].tint30,[`colorStatus${o}BorderActive`]:St[r].primary,[`colorStatus${o}Border1`]:St[r].tint40,[`colorStatus${o}Border2`]:St[r].primary};return Object.assign(e,n)},{});oc.colorStatusDangerBackground3Hover=St[No.danger].shade10;oc.colorStatusDangerBackground3Pressed=St[No.danger].shade20;oc.colorStatusWarningForeground1=St[No.warning].shade20;oc.colorStatusWarningForeground3=St[No.warning].shade20;oc.colorStatusWarningBorder2=St[No.warning].shade20;const PF=e=>({colorNeutralForeground1:ce[14],colorNeutralForeground1Hover:ce[14],colorNeutralForeground1Pressed:ce[14],colorNeutralForeground1Selected:ce[14],colorNeutralForeground2:ce[26],colorNeutralForeground2Hover:ce[14],colorNeutralForeground2Pressed:ce[14],colorNeutralForeground2Selected:ce[14],colorNeutralForeground2BrandHover:e[80],colorNeutralForeground2BrandPressed:e[70],colorNeutralForeground2BrandSelected:e[80],colorNeutralForeground3:ce[38],colorNeutralForeground3Hover:ce[26],colorNeutralForeground3Pressed:ce[26],colorNeutralForeground3Selected:ce[26],colorNeutralForeground3BrandHover:e[80],colorNeutralForeground3BrandPressed:e[70],colorNeutralForeground3BrandSelected:e[80],colorNeutralForeground4:ce[44],colorNeutralForeground5:ce[38],colorNeutralForeground5Hover:ce[14],colorNeutralForeground5Pressed:ce[14],colorNeutralForeground5Selected:ce[14],colorNeutralForegroundDisabled:ce[74],colorNeutralForegroundInvertedDisabled:eo[40],colorBrandForegroundLink:e[70],colorBrandForegroundLinkHover:e[60],colorBrandForegroundLinkPressed:e[40],colorBrandForegroundLinkSelected:e[70],colorNeutralForeground2Link:ce[26],colorNeutralForeground2LinkHover:ce[14],colorNeutralForeground2LinkPressed:ce[14],colorNeutralForeground2LinkSelected:ce[14],colorCompoundBrandForeground1:e[80],colorCompoundBrandForeground1Hover:e[70],colorCompoundBrandForeground1Pressed:e[60],colorBrandForeground1:e[80],colorBrandForeground2:e[70],colorBrandForeground2Hover:e[60],colorBrandForeground2Pressed:e[30],colorNeutralForeground1Static:ce[14],colorNeutralForegroundStaticInverted:tt,colorNeutralForegroundInverted:tt,colorNeutralForegroundInvertedHover:tt,colorNeutralForegroundInvertedPressed:tt,colorNeutralForegroundInvertedSelected:tt,colorNeutralForegroundInverted2:tt,colorNeutralForegroundOnBrand:tt,colorNeutralForegroundInvertedLink:tt,colorNeutralForegroundInvertedLinkHover:tt,colorNeutralForegroundInvertedLinkPressed:tt,colorNeutralForegroundInvertedLinkSelected:tt,colorBrandForegroundInverted:e[100],colorBrandForegroundInvertedHover:e[110],colorBrandForegroundInvertedPressed:e[100],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:tt,colorNeutralBackground1Hover:ce[96],colorNeutralBackground1Pressed:ce[88],colorNeutralBackground1Selected:ce[92],colorNeutralBackground2:ce[98],colorNeutralBackground2Hover:ce[94],colorNeutralBackground2Pressed:ce[86],colorNeutralBackground2Selected:ce[90],colorNeutralBackground3:ce[96],colorNeutralBackground3Hover:ce[92],colorNeutralBackground3Pressed:ce[84],colorNeutralBackground3Selected:ce[88],colorNeutralBackground4:ce[94],colorNeutralBackground4Hover:ce[98],colorNeutralBackground4Pressed:ce[96],colorNeutralBackground4Selected:tt,colorNeutralBackground5:ce[92],colorNeutralBackground5Hover:ce[96],colorNeutralBackground5Pressed:ce[94],colorNeutralBackground5Selected:ce[98],colorNeutralBackground6:ce[90],colorNeutralBackground7:"#00000000",colorNeutralBackground7Hover:ce[92],colorNeutralBackground7Pressed:ce[84],colorNeutralBackground7Selected:"#00000000",colorNeutralBackground8:ce[99],colorNeutralBackgroundInverted:ce[16],colorNeutralBackgroundInvertedHover:ce[24],colorNeutralBackgroundInvertedPressed:ce[12],colorNeutralBackgroundInvertedSelected:ce[22],colorNeutralBackgroundStatic:ce[20],colorNeutralBackgroundAlpha:eo[50],colorNeutralBackgroundAlpha2:eo[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:ce[96],colorSubtleBackgroundPressed:ce[88],colorSubtleBackgroundSelected:ce[92],colorSubtleBackgroundLightAlphaHover:eo[70],colorSubtleBackgroundLightAlphaPressed:eo[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:en[10],colorSubtleBackgroundInvertedPressed:en[30],colorSubtleBackgroundInvertedSelected:en[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:ce[94],colorNeutralBackgroundDisabled2:tt,colorNeutralBackgroundInvertedDisabled:eo[10],colorNeutralStencil1:ce[90],colorNeutralStencil2:ce[98],colorNeutralStencil1Alpha:en[10],colorNeutralStencil2Alpha:en[5],colorBackgroundOverlay:en[40],colorScrollbarOverlay:en[50],colorBrandBackground:e[80],colorBrandBackgroundHover:e[70],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[80],colorCompoundBrandBackgroundHover:e[70],colorCompoundBrandBackgroundPressed:e[60],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[160],colorBrandBackground2Hover:e[150],colorBrandBackground2Pressed:e[130],colorBrandBackground3Static:e[60],colorBrandBackground4Static:e[40],colorBrandBackgroundInverted:tt,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralCardBackground:ce[98],colorNeutralCardBackgroundHover:tt,colorNeutralCardBackgroundPressed:ce[96],colorNeutralCardBackgroundSelected:ce[92],colorNeutralCardBackgroundDisabled:ce[94],colorNeutralStrokeAccessible:ce[38],colorNeutralStrokeAccessibleHover:ce[34],colorNeutralStrokeAccessiblePressed:ce[30],colorNeutralStrokeAccessibleSelected:e[80],colorNeutralStroke1:ce[82],colorNeutralStroke1Hover:ce[78],colorNeutralStroke1Pressed:ce[70],colorNeutralStroke1Selected:ce[74],colorNeutralStroke2:ce[88],colorNeutralStroke3:ce[94],colorNeutralStroke4:ce[92],colorNeutralStroke4Hover:ce[88],colorNeutralStroke4Pressed:ce[84],colorNeutralStroke4Selected:ce[92],colorNeutralStrokeSubtle:ce[88],colorNeutralStrokeOnBrand:tt,colorNeutralStrokeOnBrand2:tt,colorNeutralStrokeOnBrand2Hover:tt,colorNeutralStrokeOnBrand2Pressed:tt,colorNeutralStrokeOnBrand2Selected:tt,colorBrandStroke1:e[80],colorBrandStroke2:e[140],colorBrandStroke2Hover:e[120],colorBrandStroke2Pressed:e[80],colorBrandStroke2Contrast:e[140],colorCompoundBrandStroke:e[80],colorCompoundBrandStrokeHover:e[70],colorCompoundBrandStrokePressed:e[60],colorNeutralStrokeDisabled:ce[88],colorNeutralStrokeDisabled2:ce[92],colorNeutralStrokeInvertedDisabled:eo[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:en[5],colorNeutralStrokeAlpha2:eo[20],colorStrokeFocus1:tt,colorStrokeFocus2:qp,colorNeutralShadowAmbient:"rgba(0,0,0,0.12)",colorNeutralShadowKey:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.06)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.07)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.20)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.24)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),H4={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadius2XLarge:"12px",borderRadius3XLarge:"16px",borderRadius4XLarge:"24px",borderRadius5XLarge:"32px",borderRadius6XLarge:"40px",borderRadiusCircular:"10000px"},V4={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)"},W4={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},U4={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},G4={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},Z4={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},K4={fontFamilyBase:"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",fontFamilyMonospace:"Consolas, 'Courier New', Courier, monospace",fontFamilyNumeric:"Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"},mr={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},X4={spacingHorizontalNone:mr.none,spacingHorizontalXXS:mr.xxs,spacingHorizontalXS:mr.xs,spacingHorizontalSNudge:mr.sNudge,spacingHorizontalS:mr.s,spacingHorizontalMNudge:mr.mNudge,spacingHorizontalM:mr.m,spacingHorizontalL:mr.l,spacingHorizontalXL:mr.xl,spacingHorizontalXXL:mr.xxl,spacingHorizontalXXXL:mr.xxxl},Y4={spacingVerticalNone:mr.none,spacingVerticalXXS:mr.xxs,spacingVerticalXS:mr.xs,spacingVerticalSNudge:mr.sNudge,spacingVerticalS:mr.s,spacingVerticalMNudge:mr.mNudge,spacingVerticalM:mr.m,spacingVerticalL:mr.l,spacingVerticalXL:mr.xl,spacingVerticalXXL:mr.xxl,spacingVerticalXXXL:mr.xxxl},J4={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"},T={colorNeutralForeground1:"var(--colorNeutralForeground1)",colorNeutralForeground1Hover:"var(--colorNeutralForeground1Hover)",colorNeutralForeground2:"var(--colorNeutralForeground2)",colorNeutralForeground3:"var(--colorNeutralForeground3)",colorNeutralForeground4:"var(--colorNeutralForeground4)",colorNeutralForegroundOnBrand:"var(--colorNeutralForegroundOnBrand)",colorNeutralForegroundStaticInverted:"var(--colorNeutralForegroundStaticInverted)",colorBrandForeground1:"var(--colorBrandForeground1)",colorBrandForeground2:"var(--colorBrandForeground2)",colorNeutralBackground1:"var(--colorNeutralBackground1)",colorNeutralBackground1Hover:"var(--colorNeutralBackground1Hover)",colorNeutralBackground1Pressed:"var(--colorNeutralBackground1Pressed)",colorNeutralBackground1Selected:"var(--colorNeutralBackground1Selected)",colorNeutralBackground2:"var(--colorNeutralBackground2)",colorNeutralBackground3:"var(--colorNeutralBackground3)",colorNeutralBackground3Hover:"var(--colorNeutralBackground3Hover)",colorTransparentBackground:"var(--colorTransparentBackground)",colorBrandBackground:"var(--colorBrandBackground)",colorBrandBackground2:"var(--colorBrandBackground2)",colorBrandBackground2Hover:"var(--colorBrandBackground2Hover)",colorNeutralStroke1:"var(--colorNeutralStroke1)",colorNeutralStroke2:"var(--colorNeutralStroke2)",colorNeutralStroke3:"var(--colorNeutralStroke3)",colorBrandStroke1:"var(--colorBrandStroke1)",colorBrandStroke2:"var(--colorBrandStroke2)",colorStrokeFocus2:"var(--colorStrokeFocus2)",colorPaletteRedBackground1:"var(--colorPaletteRedBackground1)",colorPaletteRedBackground2:"var(--colorPaletteRedBackground2)",colorPaletteRedBackground3:"var(--colorPaletteRedBackground3)",colorPaletteRedBorderActive:"var(--colorPaletteRedBorderActive)",colorPaletteRedBorder1:"var(--colorPaletteRedBorder1)",colorPaletteRedBorder2:"var(--colorPaletteRedBorder2)",colorPaletteRedForeground1:"var(--colorPaletteRedForeground1)",colorPaletteGreenBackground1:"var(--colorPaletteGreenBackground1)",colorPaletteGreenBorderActive:"var(--colorPaletteGreenBorderActive)",colorPaletteGreenForeground1:"var(--colorPaletteGreenForeground1)",colorPaletteDarkOrangeBackground1:"var(--colorPaletteDarkOrangeBackground1)",colorPaletteDarkOrangeBorderActive:"var(--colorPaletteDarkOrangeBorderActive)",colorPaletteDarkOrangeBorder2:"var(--colorPaletteDarkOrangeBorder2)",colorPaletteDarkOrangeForeground1:"var(--colorPaletteDarkOrangeForeground1)",colorPaletteYellowBorder2:"var(--colorPaletteYellowBorder2)",colorPaletteMarigoldForeground2:"var(--colorPaletteMarigoldForeground2)",colorPaletteBlueBackground2:"var(--colorPaletteBlueBackground2)",colorPaletteBlueForeground2:"var(--colorPaletteBlueForeground2)",colorPaletteGoldBorderActive:"var(--colorPaletteGoldBorderActive)",colorStatusDangerBackground3:"var(--colorStatusDangerBackground3)",colorStatusDangerBackground3Hover:"var(--colorStatusDangerBackground3Hover)",colorStatusDangerBackground3Pressed:"var(--colorStatusDangerBackground3Pressed)",borderRadiusSmall:"var(--borderRadiusSmall)",borderRadiusMedium:"var(--borderRadiusMedium)",borderRadiusLarge:"var(--borderRadiusLarge)",borderRadiusCircular:"var(--borderRadiusCircular)",fontFamilyBase:"var(--fontFamilyBase)",fontFamilyMonospace:"var(--fontFamilyMonospace)",fontSizeBase100:"var(--fontSizeBase100)",fontSizeBase200:"var(--fontSizeBase200)",fontSizeBase300:"var(--fontSizeBase300)",fontSizeBase400:"var(--fontSizeBase400)",fontWeightRegular:"var(--fontWeightRegular)",fontWeightSemibold:"var(--fontWeightSemibold)",shadow2:"var(--shadow2)",shadow8:"var(--shadow8)",shadow16:"var(--shadow16)",shadow64:"var(--shadow64)",spacingHorizontalXS:"var(--spacingHorizontalXS)",spacingHorizontalS:"var(--spacingHorizontalS)",spacingHorizontalM:"var(--spacingHorizontalM)",spacingVerticalXS:"var(--spacingVerticalXS)",spacingVerticalS:"var(--spacingVerticalS)",spacingVerticalM:"var(--spacingVerticalM)",spacingVerticalL:"var(--spacingVerticalL)",spacingVerticalXXL:"var(--spacingVerticalXXL)"};function tm(e,t,r=""){return{[`shadow2${r}`]:`0 0 2px ${e}, 0 1px 2px ${t}`,[`shadow4${r}`]:`0 0 2px ${e}, 0 2px 4px ${t}`,[`shadow8${r}`]:`0 0 2px ${e}, 0 4px 8px ${t}`,[`shadow16${r}`]:`0 0 2px ${e}, 0 8px 16px ${t}`,[`shadow28${r}`]:`0 0 8px ${e}, 0 14px 28px ${t}`,[`shadow64${r}`]:`0 0 8px ${e}, 0 32px 64px ${t}`}}const MF=e=>{const t=PF(e);return{...H4,...U4,...G4,...K4,...Z4,...J4,...X4,...Y4,...W4,...V4,...t,...EF,...oc,...tm(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...tm(t.colorBrandShadowAmbient,t.colorBrandShadowKey,"Brand")}},Q4={10:"#061724",20:"#082338",30:"#0a2e4a",40:"#0c3b5e",50:"#0e4775",60:"#0f548c",70:"#115ea3",80:"#0f6cbd",90:"#2886de",100:"#479ef5",110:"#62abf5",120:"#77b7f7",130:"#96c6fa",140:"#b4d6fa",150:"#cfe4fa",160:"#ebf3fc"},fa=L4.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),o={[`colorPalette${r}Background1`]:Ct[t].shade40,[`colorPalette${r}Background2`]:Ct[t].shade30,[`colorPalette${r}Background3`]:Ct[t].primary,[`colorPalette${r}Foreground1`]:Ct[t].tint30,[`colorPalette${r}Foreground2`]:Ct[t].tint40,[`colorPalette${r}Foreground3`]:Ct[t].tint20,[`colorPalette${r}BorderActive`]:Ct[t].tint30,[`colorPalette${r}Border1`]:Ct[t].primary,[`colorPalette${r}Border2`]:Ct[t].tint20};return Object.assign(e,o)},{});fa.colorPaletteRedForeground3=Ct.red.tint30;fa.colorPaletteRedBorder2=Ct.red.tint30;fa.colorPaletteGreenForeground3=Ct.green.tint40;fa.colorPaletteGreenBorder2=Ct.green.tint40;fa.colorPaletteDarkOrangeForeground3=Ct.darkOrange.tint30;fa.colorPaletteDarkOrangeBorder2=Ct.darkOrange.tint30;fa.colorPaletteRedForegroundInverted=Ct.red.primary;fa.colorPaletteGreenForegroundInverted=Ct.green.primary;fa.colorPaletteYellowForegroundInverted=Ct.yellow.shade30;const ny=$4.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),o={[`colorPalette${r}Background2`]:Ni[t].shade30,[`colorPalette${r}Foreground2`]:Ni[t].tint40,[`colorPalette${r}BorderActive`]:Ni[t].tint30};return Object.assign(e,o)},{});ny.colorPaletteDarkRedBackground2=Ni.darkRed.shade20;ny.colorPalettePlumBackground2=Ni.plum.shade20;const qF={...fa,...ny},Hi=Object.entries(No).reduce((e,[t,r])=>{const o=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorStatus${o}Background1`]:St[r].shade40,[`colorStatus${o}Background2`]:St[r].shade30,[`colorStatus${o}Background3`]:St[r].primary,[`colorStatus${o}Foreground1`]:St[r].tint30,[`colorStatus${o}Foreground2`]:St[r].tint40,[`colorStatus${o}Foreground3`]:St[r].tint20,[`colorStatus${o}BorderActive`]:St[r].tint30,[`colorStatus${o}ForegroundInverted`]:St[r].shade10,[`colorStatus${o}Border1`]:St[r].primary,[`colorStatus${o}Border2`]:St[r].tint20};return Object.assign(e,n)},{});Hi.colorStatusDangerBackground3Hover=St[No.danger].shade10;Hi.colorStatusDangerBackground3Pressed=St[No.danger].shade20;Hi.colorStatusDangerForeground3=St[No.danger].tint40;Hi.colorStatusDangerBorder2=St[No.danger].tint30;Hi.colorStatusSuccessForeground3=St[No.success].tint40;Hi.colorStatusSuccessBorder2=St[No.success].tint40;Hi.colorStatusWarningForegroundInverted=St[No.warning].shade20;const FF=MF(Q4),IF=e=>({colorNeutralForeground1:tt,colorNeutralForeground1Hover:tt,colorNeutralForeground1Pressed:tt,colorNeutralForeground1Selected:tt,colorNeutralForeground2:ce[84],colorNeutralForeground2Hover:tt,colorNeutralForeground2Pressed:tt,colorNeutralForeground2Selected:tt,colorNeutralForeground2BrandHover:e[100],colorNeutralForeground2BrandPressed:e[90],colorNeutralForeground2BrandSelected:e[100],colorNeutralForeground3:ce[68],colorNeutralForeground3Hover:ce[84],colorNeutralForeground3Pressed:ce[84],colorNeutralForeground3Selected:ce[84],colorNeutralForeground3BrandHover:e[100],colorNeutralForeground3BrandPressed:e[90],colorNeutralForeground3BrandSelected:e[100],colorNeutralForeground4:ce[60],colorNeutralForeground5:ce[68],colorNeutralForeground5Hover:tt,colorNeutralForeground5Pressed:tt,colorNeutralForeground5Selected:tt,colorNeutralForegroundDisabled:ce[36],colorNeutralForegroundInvertedDisabled:eo[40],colorBrandForegroundLink:e[100],colorBrandForegroundLinkHover:e[110],colorBrandForegroundLinkPressed:e[90],colorBrandForegroundLinkSelected:e[100],colorNeutralForeground2Link:ce[84],colorNeutralForeground2LinkHover:tt,colorNeutralForeground2LinkPressed:tt,colorNeutralForeground2LinkSelected:tt,colorCompoundBrandForeground1:e[100],colorCompoundBrandForeground1Hover:e[110],colorCompoundBrandForeground1Pressed:e[90],colorBrandForeground1:e[100],colorBrandForeground2:e[110],colorBrandForeground2Hover:e[130],colorBrandForeground2Pressed:e[160],colorNeutralForeground1Static:ce[14],colorNeutralForegroundStaticInverted:tt,colorNeutralForegroundInverted:ce[14],colorNeutralForegroundInvertedHover:ce[14],colorNeutralForegroundInvertedPressed:ce[14],colorNeutralForegroundInvertedSelected:ce[14],colorNeutralForegroundInverted2:ce[14],colorNeutralForegroundOnBrand:tt,colorNeutralForegroundInvertedLink:tt,colorNeutralForegroundInvertedLinkHover:tt,colorNeutralForegroundInvertedLinkPressed:tt,colorNeutralForegroundInvertedLinkSelected:tt,colorBrandForegroundInverted:e[80],colorBrandForegroundInvertedHover:e[70],colorBrandForegroundInvertedPressed:e[60],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:ce[16],colorNeutralBackground1Hover:ce[24],colorNeutralBackground1Pressed:ce[12],colorNeutralBackground1Selected:ce[22],colorNeutralBackground2:ce[12],colorNeutralBackground2Hover:ce[20],colorNeutralBackground2Pressed:ce[8],colorNeutralBackground2Selected:ce[18],colorNeutralBackground3:ce[8],colorNeutralBackground3Hover:ce[16],colorNeutralBackground3Pressed:ce[4],colorNeutralBackground3Selected:ce[14],colorNeutralBackground4:ce[4],colorNeutralBackground4Hover:ce[12],colorNeutralBackground4Pressed:qp,colorNeutralBackground4Selected:ce[10],colorNeutralBackground5:qp,colorNeutralBackground5Hover:ce[8],colorNeutralBackground5Pressed:ce[2],colorNeutralBackground5Selected:ce[6],colorNeutralBackground6:ce[20],colorNeutralBackground7:"#00000000",colorNeutralBackground7Hover:ce[10],colorNeutralBackground7Pressed:ce[4],colorNeutralBackground7Selected:"#00000000",colorNeutralBackground8:ce[16],colorNeutralBackgroundInverted:tt,colorNeutralBackgroundInvertedHover:ce[96],colorNeutralBackgroundInvertedPressed:ce[88],colorNeutralBackgroundInvertedSelected:ce[92],colorNeutralBackgroundStatic:ce[24],colorNeutralBackgroundAlpha:Xq[50],colorNeutralBackgroundAlpha2:Yq[70],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:ce[22],colorSubtleBackgroundPressed:ce[18],colorSubtleBackgroundSelected:ce[20],colorSubtleBackgroundLightAlphaHover:j2[80],colorSubtleBackgroundLightAlphaPressed:j2[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:en[10],colorSubtleBackgroundInvertedPressed:en[30],colorSubtleBackgroundInvertedSelected:en[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:ce[8],colorNeutralBackgroundDisabled2:ce[16],colorNeutralBackgroundInvertedDisabled:eo[10],colorNeutralStencil1:ce[34],colorNeutralStencil2:ce[20],colorNeutralStencil1Alpha:eo[10],colorNeutralStencil2Alpha:eo[5],colorBackgroundOverlay:en[50],colorScrollbarOverlay:eo[60],colorBrandBackground:e[70],colorBrandBackgroundHover:e[80],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[100],colorCompoundBrandBackgroundHover:e[110],colorCompoundBrandBackgroundPressed:e[90],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[20],colorBrandBackground2Hover:e[40],colorBrandBackground2Pressed:e[10],colorBrandBackground3Static:e[60],colorBrandBackground4Static:e[40],colorBrandBackgroundInverted:tt,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralCardBackground:ce[20],colorNeutralCardBackgroundHover:ce[24],colorNeutralCardBackgroundPressed:ce[18],colorNeutralCardBackgroundSelected:ce[22],colorNeutralCardBackgroundDisabled:ce[8],colorNeutralStrokeAccessible:ce[68],colorNeutralStrokeAccessibleHover:ce[74],colorNeutralStrokeAccessiblePressed:ce[70],colorNeutralStrokeAccessibleSelected:e[100],colorNeutralStroke1:ce[40],colorNeutralStroke1Hover:ce[46],colorNeutralStroke1Pressed:ce[42],colorNeutralStroke1Selected:ce[44],colorNeutralStroke2:ce[32],colorNeutralStroke3:ce[24],colorNeutralStroke4:ce[24],colorNeutralStroke4Hover:ce[18],colorNeutralStroke4Pressed:ce[14],colorNeutralStroke4Selected:ce[24],colorNeutralStrokeSubtle:ce[4],colorNeutralStrokeOnBrand:ce[16],colorNeutralStrokeOnBrand2:tt,colorNeutralStrokeOnBrand2Hover:tt,colorNeutralStrokeOnBrand2Pressed:tt,colorNeutralStrokeOnBrand2Selected:tt,colorBrandStroke1:e[100],colorBrandStroke2:e[50],colorBrandStroke2Hover:e[50],colorBrandStroke2Pressed:e[30],colorBrandStroke2Contrast:e[50],colorCompoundBrandStroke:e[100],colorCompoundBrandStrokeHover:e[110],colorCompoundBrandStrokePressed:e[90],colorNeutralStrokeDisabled:ce[26],colorNeutralStrokeDisabled2:ce[24],colorNeutralStrokeInvertedDisabled:eo[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:eo[10],colorNeutralStrokeAlpha2:eo[20],colorStrokeFocus1:qp,colorStrokeFocus2:tt,colorNeutralShadowAmbient:"rgba(0,0,0,0.24)",colorNeutralShadowKey:"rgba(0,0,0,0.28)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.12)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.40)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.48)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),AF=e=>{const t=IF(e);return{...H4,...U4,...G4,...K4,...Z4,...J4,...X4,...Y4,...W4,...V4,...t,...qF,...Hi,...tm(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...tm(t.colorBrandShadowAmbient,t.colorBrandShadowKey,"Brand")}},OF=AF(Q4),eC={root:"fui-FluentProvider"},LF=Kj({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",fsow6f:["f1o700av","fes3tcz"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),$F=e=>{"use no memo";const t=yd(),r=LF({dir:e.dir,renderer:t});return e.root.className=F(eC.root,e.themeClassName,r.root,e.root.className),e},HF=m.useInsertionEffect?m.useInsertionEffect:$t,VF=(e,t)=>{if(!e?.head)return;const r=e.createElement("style");return Object.keys(t).forEach(o=>{r.setAttribute(o,t[o])}),e.head.appendChild(r),r},WF=(e,t)=>{const r=e.sheet;r&&(r.cssRules.length>0&&r.deleteRule(0),r.insertRule(t,0))},UF=e=>{"use no memo";const{targetDocument:t,theme:r,rendererAttributes:o}=e,n=m.useRef(void 0),a=bt(eC.root),i=o,l=m.useMemo(()=>FE(`.${a}`,r),[r,a]);return GF(t,a),HF(()=>{const d=t?.getElementById(a);return d?n.current=d:(n.current=VF(t,{...i,id:a}),n.current&&WF(n.current,l)),()=>{var f;(f=n.current)===null||f===void 0||f.remove()}},[a,t,l,i]),{styleTagId:a,rule:l}};function GF(e,t){m.useState(()=>{if(!e)return;const r=e.getElementById(t);r&&e.head.append(r)})}const ZF={},KF={},XF=(e,t)=>{"use no memo";const r=Ve(),o=YF(),n=Qm(),a=m.useContext(Xb)||ZF,{applyStylesToPortals:i=!0,customStyleHooks_unstable:l,dir:d=r.dir,targetDocument:f=r.targetDocument,theme:p,overrides_unstable:h={}}=e,v=tv(o,p),y=tv(n,h),x=tv(a,l),b=yd();var k;const{styleTagId:S,rule:N}=UF({theme:v,targetDocument:f,rendererAttributes:(k=b.styleElementAttributes)!==null&&k!==void 0?k:KF});return{applyStylesToPortals:i,customStyleHooks_unstable:x,dir:d,targetDocument:f,theme:v,overrides_unstable:y,themeClassName:S,components:{root:"div"},root:me($e("div",{...e,dir:d,ref:Le(t,ry({targetDocument:f}))}),{elementType:"div"}),serverStyleProps:{cssRule:N,attributes:{...b.styleElementAttributes,id:S}}}};function tv(e,t){return e&&t?{...e,...t}:e||t}function YF(){return m.useContext(o4)}function JF(e){const{applyStylesToPortals:t,customStyleHooks_unstable:r,dir:o,root:n,targetDocument:a,theme:i,themeClassName:l,overrides_unstable:d}=e,f=m.useMemo(()=>({dir:o,targetDocument:a}),[o,a]),[p]=m.useState(()=>({})),h=m.useMemo(()=>({textDirection:o}),[o]);return{customStyleHooks_unstable:r,overrides_unstable:d,provider:f,textDirection:o,iconDirection:h,tooltip:p,theme:i,themeClassName:t?n.className:l}}const tC=m.forwardRef((e,t)=>{const r=XF(e,t);$F(r);const o=JF(r);return rM(r,o)});tC.displayName="FluentProvider";var rv={exports:{}},ov={};var C2;function QF(){return C2||(C2=1,(function(e){function t(A,X){var V=A.length;A.push(X);e:for(;0<V;){var oe=V-1>>>1,ee=A[oe];if(0<n(ee,X))A[oe]=X,A[V]=ee,V=oe;else break e}}function r(A){return A.length===0?null:A[0]}function o(A){if(A.length===0)return null;var X=A[0],V=A.pop();if(V!==X){A[0]=V;e:for(var oe=0,ee=A.length,W=ee>>>1;oe<W;){var L=2*(oe+1)-1,te=A[L],ue=L+1,ne=A[ue];if(0>n(te,V))ue<ee&&0>n(ne,te)?(A[oe]=ne,A[ue]=V,oe=ue):(A[oe]=te,A[L]=V,oe=L);else if(ue<ee&&0>n(ne,V))A[oe]=ne,A[ue]=V,oe=ue;else break e}}return X}function n(A,X){var V=A.sortIndex-X.sortIndex;return V!==0?V:A.id-X.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var d=[],f=[],p=1,h=null,v=3,y=!1,x=!1,b=!1,k=!1,S=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function C(A){for(var X=r(f);X!==null;){if(X.callback===null)o(f);else if(X.startTime<=A)o(f),X.sortIndex=X.expirationTime,t(d,X);else break;X=r(f)}}function z(A){if(b=!1,C(A),!x)if(r(d)!==null)x=!0,R||(R=!0,H());else{var X=r(f);X!==null&&q(z,X.startTime-A)}}var R=!1,E=-1,D=5,I=-1;function M(){return k?!0:!(e.unstable_now()-I<D)}function O(){if(k=!1,R){var A=e.unstable_now();I=A;var X=!0;try{e:{x=!1,b&&(b=!1,N(E),E=-1),y=!0;var V=v;try{t:{for(C(A),h=r(d);h!==null&&!(h.expirationTime>A&&M());){var oe=h.callback;if(typeof oe=="function"){h.callback=null,v=h.priorityLevel;var ee=oe(h.expirationTime<=A);if(A=e.unstable_now(),typeof ee=="function"){h.callback=ee,C(A),X=!0;break t}h===r(d)&&o(d),C(A)}else o(d);h=r(d)}if(h!==null)X=!0;else{var W=r(f);W!==null&&q(z,W.startTime-A),X=!1}}break e}finally{h=null,v=V,y=!1}X=void 0}}finally{X?H():R=!1}}}var H;if(typeof B=="function")H=function(){B(O)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,Z=$.port2;$.port1.onmessage=O,H=function(){Z.postMessage(null)}}else H=function(){S(O,0)};function q(A,X){E=S(function(){A(e.unstable_now())},X)}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(A){A.callback=null},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(A){switch(v){case 1:case 2:case 3:var X=3;break;default:X=v}var V=v;v=X;try{return A()}finally{v=V}},e.unstable_requestPaint=function(){k=!0},e.unstable_runWithPriority=function(A,X){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var V=v;v=A;try{return X()}finally{v=V}},e.unstable_scheduleCallback=function(A,X,V){var oe=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?oe+V:oe):V=oe,A){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=V+ee,A={id:p++,callback:X,priorityLevel:A,startTime:V,expirationTime:ee,sortIndex:-1},V>oe?(A.sortIndex=V,t(f,A),r(d)===null&&A===r(f)&&(b?(N(E),E=-1):b=!0,q(z,V-oe))):(A.sortIndex=ee,t(d,A),x||y||(x=!0,R||(R=!0,H()))),A},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(A){var X=v;return function(){var V=v;v=X;try{return A.apply(this,arguments)}finally{v=V}}}})(ov)),ov}var N2;function eI(){return N2||(N2=1,rv.exports=QF()),rv.exports}var z2=eI();const tI=e=>r=>{const o=m.useRef(r.value),n=m.useRef(null);return n.current||(n.current={value:o,listeners:[]}),$t(()=>{o.current=r.value,z2.unstable_runWithPriority(z2.unstable_NormalPriority,()=>{n.current.listeners.forEach(a=>{a(r.value)})})},[r.value]),m.createElement(e,{value:n.current},r.children)},Vn=e=>{const t=m.createContext({value:{current:e},listeners:[],isDefault:!0});return t.Provider=tI(t.Provider),delete t.Consumer,t},pa=(e,t)=>{const r=m.useContext(e),{value:o,listeners:n}=r,a=t(o.current),[,i]=m.useReducer(f=>f+1,0),l=m.useRef(t),d=m.useRef(a);return $t(()=>{l.current=t,d.current=a}),$t(()=>{const f=p=>{try{const h=l.current(p);Object.is(d.current,h)||i()}catch{}};return n.push(f),f(o.current),()=>{const p=n.indexOf(f);p!==-1&&n.splice(p,1)}},[n,o]),a};function jd(e){return!m.useContext(e).isDefault}const rC=Vn(void 0),rI={openItems:[],collapsible:!1,multiple:!1,navigation:void 0,requestToggle(){}},{Provider:oI}=rC,Uu=e=>pa(rC,(t=rI)=>e(t)),nI=(e,t)=>G(e.root,{children:G(oI,{value:t.accordion,children:e.root.children})}),aI=(e,t)=>{const{navigation:r,...o}=e,n=iI(o,t),a=Ho({circular:r==="circular",tabbable:!0});return{navigation:r,...n,root:{...n.root,...r?a:void 0}}},iI=(e,t)=>{const{openItems:r,defaultOpenItems:o,multiple:n=!1,collapsible:a=!1,onToggle:i,...l}=e,[d,f]=Xt({state:m.useMemo(()=>cI(r),[r]),defaultState:o&&(()=>sI({defaultOpenItems:o,multiple:n})),initialState:[]}),p=de(h=>{const v=lI(h.value,d,n,a);i?.(h.event,{value:h.value,openItems:v}),f(v)});return{collapsible:a,multiple:n,openItems:d,requestToggle:p,components:{root:"div"},root:me({ref:t,...l},{elementType:"div"})}};function sI({defaultOpenItems:e,multiple:t}){return e!==void 0?Array.isArray(e)?t?e:[e[0]]:[e]:[]}function lI(e,t,r,o){if(r)if(t.includes(e)){if(t.length>1||o)return t.filter(n=>n!==e)}else return[...t,e].sort();else return t[0]===e&&o?[]:[e];return t}function cI(e){if(e!==void 0)return Array.isArray(e)?e:[e]}function uI(e){const{navigation:t,openItems:r,requestToggle:o,multiple:n,collapsible:a}=e;return{accordion:m.useMemo(()=>({navigation:t,openItems:r,requestToggle:o,collapsible:a,multiple:n}),[t,r,o,a,n])}}const dI={root:"fui-Accordion"},fI=e=>{"use no memo";return e.root.className=F(dI.root,e.root.className),e},rm=m.forwardRef((e,t)=>{const r=aI(e,t),o=uI(r);return fI(r),xe("useAccordionStyles_unstable")(r),nI(r,o)});rm.displayName="Accordion";const pI=(e,t)=>{const{value:r,disabled:o=!1,...n}=e,a=Uu(d=>d.requestToggle),i=Uu(d=>d.openItems.includes(r)),l=de(d=>a({event:d,value:r}));return{open:i,value:r,disabled:o,onHeaderClick:l,components:{root:"div"},root:me({disabled:o,ref:t,...n},{elementType:"div"})}};function mI(e){const{disabled:t,open:r,value:o,onHeaderClick:n}=e;return{accordionItem:m.useMemo(()=>({disabled:t,open:r,value:o,onHeaderClick:n}),[t,r,o,n])}}const oC=m.createContext(void 0),gI={open:!1,disabled:!1,value:void 0,onHeaderClick(){}},{Provider:hI}=oC,nC=()=>{var e;return(e=m.useContext(oC))!==null&&e!==void 0?e:gI},vI=(e,t)=>G(e.root,{children:G(hI,{value:t.accordionItem,children:e.root.children})}),bI={root:"fui-AccordionItem"},yI=e=>{"use no memo";return e.root.className=F(bI.root,e.root.className),e},om=m.forwardRef((e,t)=>{const r=pI(e,t),o=mI(r);return yI(r),xe("useAccordionItemStyles_unstable")(r),vI(r,o)});om.displayName="AccordionItem";const xI="Shift",kr="Enter",ro=" ",ay="Tab",Fi="ArrowDown",Ps="ArrowLeft",Ms="ArrowRight",ys="ArrowUp",iy="End",sy="Home",ly="PageDown",cy="PageUp",ag="Backspace",uy="Delete",Wn="Escape";function La(e,t){const{disabled:r,disabledFocusable:o=!1,["aria-disabled"]:n,onClick:a,onKeyDown:i,onKeyUp:l,...d}=t??{},f=typeof n=="string"?n==="true":n,p=r||o||f,h=de(x=>{p?(x.preventDefault(),x.stopPropagation()):a?.(x)}),v=de(x=>{if(i?.(x),x.isDefaultPrevented())return;const b=x.key;if(p&&(b===kr||b===ro)){x.preventDefault(),x.stopPropagation();return}if(b===ro){x.preventDefault();return}else b===kr&&(x.preventDefault(),x.currentTarget.click())}),y=de(x=>{if(l?.(x),x.isDefaultPrevented())return;const b=x.key;if(p&&(b===kr||b===ro)){x.preventDefault(),x.stopPropagation();return}b===ro&&(x.preventDefault(),x.currentTarget.click())});if(e==="button"||e===void 0)return{...d,disabled:r&&!o,"aria-disabled":o?!0:f,onClick:o?void 0:h,onKeyUp:o?void 0:l,onKeyDown:o?void 0:i};{const x=!!d.href;let b=x?void 0:"button";!b&&p&&(b="link");const k={role:b,tabIndex:o||!x&&!r?0:void 0,...d,onClick:h,onKeyUp:y,onKeyDown:v,"aria-disabled":p};return e==="a"&&p&&(k.href=void 0),k}}const wo=()=>{},wI={controller:{active:wo,blur:wo,find:wo,first:wo,focus:wo,focusLastActive:wo,scrollActiveIntoView:wo,last:wo,next:wo,prev:wo,showAttributes:wo,hideAttributes:wo,showFocusVisibleAttributes:wo,hideFocusVisibleAttributes:wo}},dy=m.createContext(void 0),ig=dy.Provider,fy=()=>{var e;return(e=m.useContext(dy))!==null&&e!==void 0?e:wI},kI=()=>!!m.useContext(dy);function SI(e){const{matchOption:t}=e,{targetDocument:r}=Ve(),o=m.useRef(null),n=m.useRef(null),a=m.useCallback(d=>qt(d)&&t(d)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,[t]),i=m.useCallback(d=>{d&&r?(n.current=d,o.current=r.createTreeWalker(d,NodeFilter.SHOW_ELEMENT,a)):(n.current=null,o.current=null)},[r,a]);return{optionWalker:m.useMemo(()=>({first:()=>!o.current||!n.current?null:(o.current.currentNode=n.current,o.current.firstChild()),last:()=>!o.current||!n.current?null:(o.current.currentNode=n.current,o.current.lastChild()),next:()=>o.current?o.current.nextNode():null,prev:()=>o.current?o.current.previousNode():null,find:(d,f)=>{if(!o.current||!n.current)return null;const p=f?r?.getElementById(f):null;o.current.currentNode=p??n.current;let h=o.current.currentNode;for(;h&&!d(h.id);)h=o.current.nextNode();return h},setCurrent:d=>{o.current&&(o.current.currentNode=d)}}),[r]),listboxCallbackRef:i}}const T2="data-activedescendant",cl="data-activedescendant-focusvisible",_2=e=>{if(!e)return;const t=aC(e.parentElement);if(!t)return;const{offsetHeight:r}=e,o=iC(e,t),{scrollMarginTop:n,scrollMarginBottom:a}=BI(e),{offsetHeight:i,scrollTop:l}=t,d=o-n<l,f=o+r+a>l+i,p=2;d?t.scrollTo(0,o-n-p):f&&t.scrollTo(0,o+r+a-i+p)},aC=e=>e?e.scrollHeight>e.offsetHeight?e:aC(e.parentElement):null,iC=(e,t)=>!e||e===t?0:e.contains(t)?t.offsetTop*-1:e.offsetTop+iC(e.offsetParent,t),BI=e=>{var t;const r=(t=e.ownerDocument)===null||t===void 0?void 0:t.defaultView;if(!r)return{scrollMarginTop:0,scrollMarginBottom:0};const o=r.getComputedStyle(e);var n;const a=(n=rp(o.scrollMarginTop))!==null&&n!==void 0?n:rp(o.scrollMarginBlockStart);var i;const l=(i=rp(o.scrollMarginBottom))!==null&&i!==void 0?i:rp(o.scrollMarginBlockEnd);return{scrollMarginTop:a,scrollMarginBottom:l}},rp=e=>e?parseInt(e,10):0,jI=e=>new CustomEvent("activedescendantchange",{bubbles:!0,cancelable:!1,composed:!0,detail:e});function sg(e){const{imperativeRef:t,matchOption:r}=e,o=m.useRef(!1),n=m.useRef(!0),a=m.useRef(null),i=m.useRef(null),l=m.useRef(null),d=m.useRef(!0),f=m.useCallback(()=>{var C;(C=l.current)===null||C===void 0||C.removeAttribute("aria-activedescendant")},[]),p=m.useCallback(C=>{if(C&&(a.current=C),d.current&&a.current){var z;(z=l.current)===null||z===void 0||z.setAttribute("aria-activedescendant",a.current)}},[]);I4(C=>{o.current=C;const z=b();z&&(C&&n.current?z.setAttribute(cl,""):z.removeAttribute(cl))});const h=de(r),v=m.useRef(null),{optionWalker:y,listboxCallbackRef:x}=SI({matchOption:h}),b=m.useCallback(()=>{var C;return(C=v.current)===null||C===void 0?void 0:C.querySelector(`#${a.current}`)},[v]),k=m.useCallback(C=>{n.current=C;const z=b();z&&(C&&o.current?z.setAttribute(cl,""):z.removeAttribute(cl))},[b]),S=m.useCallback(()=>{const C=b();C&&(C.removeAttribute(T2),C.removeAttribute(cl)),f(),i.current=a.current,a.current=null;var z;return(z=C?.id)!==null&&z!==void 0?z:null},[b,f]),N=m.useCallback(C=>{if(!C)return;const z=S();_2(C),p(C.id),C.setAttribute(T2,""),o.current&&n.current&&C.setAttribute(cl,"");const R=jI({id:C.id,previousId:z});C.dispatchEvent(R)},[S,p]),B=m.useMemo(()=>({first:({passive:C}={})=>{const z=y.first();return C||N(z),z?.id},last:({passive:C}={})=>{const z=y.last();return C||N(z),z?.id},next:({passive:C}={})=>{const z=b();if(!z)return;y.setCurrent(z);const R=y.next();return C||N(R),R?.id},prev:({passive:C}={})=>{const z=b();if(!z)return;y.setCurrent(z);const R=y.prev();return C||N(R),R?.id},blur:()=>{S()},active:()=>{var C;return(C=b())===null||C===void 0?void 0:C.id},focus:C=>{if(!v.current)return;const z=v.current.querySelector(`#${C}`);z&&N(z)},focusLastActive:()=>{if(!v.current||!i.current)return;const C=v.current.querySelector(`#${i.current}`);if(C)return N(C),!0},find(C,{passive:z,startFrom:R}={}){const E=y.find(C,R);return z||N(E),E?.id},scrollActiveIntoView:()=>{if(!v.current)return;const C=b();C&&_2(C)},showAttributes(){d.current=!0,p()},hideAttributes(){d.current=!1,f()},showFocusVisibleAttributes(){k(!0)},hideFocusVisibleAttributes(){k(!1)}}),[y,v,p,f,N,S,b,k]);return m.useImperativeHandle(t,()=>B),{listboxRef:Le(v,x),activeParentRef:l,controller:B}}const CI=Y({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{transform:scaleX(-1);}"]}),NI=(e,t)=>{const{filled:r,title:o,primaryFill:n="currentColor",...a}=e,i={...a,fill:n},l=CI(),d=tM();return i.className=F(l.root,t?.flipInRtl&&d?.textDirection==="rtl"&&l.rtl,i.className),o&&(i["aria-label"]=o),!i["aria-label"]&&!i["aria-labelledby"]?i["aria-hidden"]=!0:i.role="img",i},zI=Y({root:{B8gzw0y:"f1dd5bof"}},{m:[["@media (forced-colors: active){.f1dd5bof{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]]}),TI="fui-Icon",_I="fui-Icon-filled",RI="fui-Icon-regular",J=(e,t,r,o)=>{const n=t==="1em"?"20":t,a=m.forwardRef((i,l)=>{const d=zI(),f=NI(i,{flipInRtl:o?.flipInRtl}),p={...f,className:F(TI,f.className,d.root),ref:l,width:t,height:t,viewBox:`0 0 ${n} ${n}`,xmlns:"http://www.w3.org/2000/svg"};return typeof r=="string"?m.createElement("svg",{...p,dangerouslySetInnerHTML:{__html:r}}):m.createElement("svg",p,...r.map(h=>m.createElement("path",{d:h,fill:p.fill})))});return a.displayName=e,a},DI=J("CalendarMonthRegular","1em",["M14.5 3A2.5 2.5 0 0 1 17 5.5v9a2.5 2.5 0 0 1-2.5 2.5h-9A2.5 2.5 0 0 1 3 14.5v-9A2.5 2.5 0 0 1 5.5 3h9Zm0 1h-9C4.67 4 4 4.67 4 5.5v9c0 .83.67 1.5 1.5 1.5h9c.83 0 1.5-.67 1.5-1.5v-9c0-.83-.67-1.5-1.5-1.5ZM7 11a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm3 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2ZM7 7a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm3 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm3 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z"]),EI=J("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"]),sC=J("WarningFilled","1em",["M7.37 3.56a3 3 0 0 1 5.26 0l5.5 10A3 3 0 0 1 15.5 18h-11a3 3 0 0 1-2.63-4.44l5.5-10ZM10 12.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0-6.25a.5.5 0 0 0-.5.5v4a.5.5 0 0 0 1 0V7a.5.5 0 0 0-.5-.5Z"]),lC=J("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"]),cC=J("CircleFilled","1em",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),uC=J("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"]),dC=J("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}),PI=J("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"]),fC=J("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"]),lg=J("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"]),MI=J("ChevronLeftFilled","1em",["M12.27 15.8a.75.75 0 0 1-1.06-.03l-5-5.25a.75.75 0 0 1 0-1.04l5-5.25a.75.75 0 1 1 1.08 1.04L7.8 10l4.5 4.73c.29.3.28.78-.02 1.06Z"]),pC=J("ChevronLeftRegular","1em",["M12.35 15.85a.5.5 0 0 1-.7 0L6.16 10.4a.55.55 0 0 1 0-.78l5.49-5.46a.5.5 0 1 1 .7.7L7.2 10l5.16 5.15c.2.2.2.5 0 .7Z"]),qI=J("ChevronRightFilled","1em",["M7.73 4.2a.75.75 0 0 1 1.06.03l5 5.25c.28.3.28.75 0 1.04l-5 5.25a.75.75 0 1 1-1.08-1.04L12.2 10l-4.5-4.73a.75.75 0 0 1 .02-1.06Z"]),py=J("ChevronRightRegular","1em",["M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7Z"]),mC=J("DiamondDismissFilled","1em",["M7.88 1.88a3 3 0 0 1 4.24 0l6 6a3 3 0 0 1 0 4.24l-6 6a3 3 0 0 1-4.24 0l-6-6a3 3 0 0 1 0-4.24l6-6ZM13.1 6.9a.5.5 0 0 0-.7 0L10 9.3 7.6 6.9a.5.5 0 0 0-.7.7L9.3 10l-2.4 2.4a.5.5 0 0 0 .7.7l2.4-2.4 2.4 2.4a.5.5 0 0 0 .7-.7L10.7 10l2.4-2.4a.5.5 0 0 0 0-.7Z"]),FI=J("DismissFilled","1em",["m3.9 4.05.07-.08a.75.75 0 0 1 .98-.07l.08.07L10 8.94l4.97-4.97a.75.75 0 0 1 .98-.07l.08.07c.27.27.3.68.07.98l-.07.08L11.06 10l4.97 4.97c.27.27.3.68.07.98l-.07.08a.75.75 0 0 1-.98.07l-.08-.07L10 11.06l-4.97 4.97a.75.75 0 0 1-.98.07l-.08-.07a.75.75 0 0 1-.07-.98l.07-.08L8.94 10 3.97 5.03a.75.75 0 0 1-.07-.98l.07-.08-.07.08Z"]),nc=J("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"]),G1e=J("CalendarClock20Regular","20",["M17 5.5A2.5 2.5 0 0 0 14.5 3h-9A2.5 2.5 0 0 0 3 5.5v9A2.5 2.5 0 0 0 5.5 17h4.1c-.16-.32-.3-.65-.4-1H5.5A1.5 1.5 0 0 1 4 14.5V7h12v2.2c.35.1.68.24 1 .4V5.5ZM5.5 4h9c.83 0 1.5.67 1.5 1.5V6H4v-.5C4 4.67 4.67 4 5.5 4Zm9 15a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Zm-.5-6.5a.5.5 0 0 1 1 0V14h1a.5.5 0 0 1 0 1h-1.5a.5.5 0 0 1-.5-.5v-2Z"]),Z1e=J("Mail20Filled","20",["M18 7.37v7.13a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 2 14.5V7.37l7.75 4.56c.15.1.35.1.5 0L18 7.37ZM15.5 4a2.5 2.5 0 0 1 2.48 2.22L10 10.92l-7.98-4.7A2.5 2.5 0 0 1 4.5 4h11Z"]),K1e=J("Mail20Regular","20",["M15.5 4A2.5 2.5 0 0 1 18 6.5v8a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 2 14.5v-8A2.5 2.5 0 0 1 4.5 4h11ZM17 7.96l-6.75 3.97a.5.5 0 0 1-.42.04l-.08-.04L3 7.96v6.54c0 .83.67 1.5 1.5 1.5h11c.83 0 1.5-.67 1.5-1.5V7.96ZM15.5 5h-11C3.67 5 3 5.67 3 6.5v.3l7 4.12 7-4.12v-.3c0-.83-.67-1.5-1.5-1.5Z"]),Ol=J("Search20Regular","20",["M13.73 14.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 15 9.5a5.5 5.5 0 1 0-1.98 4.23Z"]),gC=J("Table20Filled","20",["M13 17h1.5a2.5 2.5 0 0 0 2.5-2.5V13h-4v4Zm0-5V8h4v4h-4Zm-1 0H8V8h4v4Zm-4 1h4v4H8v-4Zm-1-1V8H3v4h4Zm-4 1h4v4H5.5A2.5 2.5 0 0 1 3 14.5V13Zm10-6h4V5.5A2.5 2.5 0 0 0 14.5 3H13v4Zm-1-4v4H8V3h4ZM7 3v4H3V5.5A2.5 2.5 0 0 1 5.5 3H7Z"]),my=J("Table20Regular","20",["M17 5.5A2.5 2.5 0 0 0 14.5 3h-9A2.5 2.5 0 0 0 3 5.5v9A2.5 2.5 0 0 0 5.5 17h9a2.5 2.5 0 0 0 2.5-2.5v-9Zm-13 9V13h3v3H5.36A1.5 1.5 0 0 1 4 14.5Zm8-1.5v3H8v-3h4Zm2.5 3H13v-3h3V14.64A1.5 1.5 0 0 1 14.5 16ZM12 8v4H8V8h4Zm1 0h3v4h-3V8Zm-1-4v3H8V4h4Zm1 0H14.64A1.5 1.5 0 0 1 16 5.5V7h-3V4ZM7 4v3H4V5.36A1.5 1.5 0 0 1 5.5 4H7Zm0 4v4H4V8h3Z"]),X1e=J("Code20Filled","20",["M12.94 4.05a.75.75 0 0 0-1.38-.6l-5.5 12.5a.75.75 0 1 0 1.38.6l5.5-12.5Zm1.35 9.8a.75.75 0 0 1-.13-1.06L16.3 10l-2.14-2.8a.75.75 0 0 1 1.18-.9l2.5 3.24c.21.27.21.65 0 .92l-2.5 3.25a.75.75 0 0 1-1.05.13Zm-8.58-7.7c.33.26.39.73.13 1.06L3.7 10l2.14 2.8a.75.75 0 1 1-1.18.9l-2.5-3.24a.75.75 0 0 1 0-.92l2.5-3.25a.75.75 0 0 1 1.05-.13Z"]),S1=J("Code20Regular","20",["M12.97 3.68a.5.5 0 0 0-.94-.36l-5 13a.5.5 0 1 0 .94.36l5-13ZM5.83 6.12c.2.18.23.5.05.7L3.16 10l2.72 3.17a.5.5 0 0 1-.76.66l-3-3.5a.5.5 0 0 1 0-.66l3-3.5a.5.5 0 0 1 .7-.05Zm8.34 8.26a.5.5 0 0 1-.05-.7l2.72-3.18-2.72-3.17a.5.5 0 1 1 .76-.66l3 3.5a.5.5 0 0 1 0 .66l-3 3.5a.5.5 0 0 1-.7.05Z"]),hC=J("Database20Regular","20",["M4 5c0-1 .88-1.76 1.9-2.22C6.98 2.28 8.43 2 10 2c1.57 0 3.02.29 4.1.78C15.12 3.24 16 3.99 16 5v10c0 1-.88 1.76-1.9 2.22-1.08.5-2.53.78-4.1.78-1.57 0-3.02-.29-4.1-.78C4.88 16.76 4 16.01 4 15V5Zm1 0c0 .37.36.88 1.32 1.31.91.42 2.22.69 3.68.69s2.77-.27 3.68-.69C14.64 5.88 15 5.37 15 5c0-.37-.36-.88-1.32-1.31A9.19 9.19 0 0 0 10 3c-1.46 0-2.77.27-3.68.69C5.36 4.12 5 4.63 5 5Zm10 1.7c-.27.2-.58.38-.9.52-1.08.5-2.53.78-4.1.78-1.57 0-3.02-.29-4.1-.78A4.92 4.92 0 0 1 5 6.7V15c0 .37.36.88 1.32 1.31.91.42 2.22.69 3.68.69s2.77-.27 3.68-.69c.96-.43 1.32-.94 1.32-1.31V6.7Z"]),II=J("MoreHorizontal20Regular","20",["M6.25 10a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm5 0a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM15 11.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z"]),Y1e=J("Document20Filled","20",["M10 2v4.5c0 .83.67 1.5 1.5 1.5H16v8.5c0 .83-.67 1.5-1.5 1.5h-9A1.5 1.5 0 0 1 4 16.5v-13C4 2.67 4.67 2 5.5 2H10Zm1 .25V6.5c0 .28.22.5.5.5h4.25L11 2.25Z"]),nv=J("Document20Regular","20",["M6 2a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V7.41c0-.4-.16-.78-.44-1.06l-3.91-3.91A1.5 1.5 0 0 0 10.59 2H6ZM5 4a1 1 0 0 1 1-1h4v3.5c0 .83.67 1.5 1.5 1.5H15v8a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4Zm9.8 3h-3.3a.5.5 0 0 1-.5-.5V3.2L14.8 7Z"]),AI=J("DocumentArrowRight16Regular","16",["M4 3c0-1.1.9-2 2-2h3.59c.4 0 .78.16 1.06.44l2.91 2.91c.28.28.44.67.44 1.06V13a2 2 0 0 1-2 2H8.66c.4-.28.77-.62 1.08-1H12a1 1 0 0 0 1-1V6h-2.5A1.5 1.5 0 0 1 9 4.5V2H6a1 1 0 0 0-1 1v2.02c-.34.03-.68.1-1 .19V3Zm6.5 2h2.3L10 2.2v2.3c0 .28.22.5.5.5Zm-5 1a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9Zm2.35 4.85A.5.5 0 0 0 8 10.5a.5.5 0 0 0-.15-.35l-2-2a.5.5 0 1 0-.7.7L6.29 10H3.5a.5.5 0 0 0 0 1h2.8l-1.15 1.15a.5.5 0 0 0 .7.7l2-2Z"]),J1e=J("DocumentArrowUp20Filled","20",["M10 2v4.5c0 .83.67 1.5 1.5 1.5H16v8.5c0 .83-.67 1.5-1.5 1.5H9.74A5.5 5.5 0 0 0 4 9.2V3.5C4 2.67 4.67 2 5.5 2H10Zm1 .25V6.5c0 .28.22.5.5.5h4.25L11 2.25ZM5.5 19a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Zm2.35-4.85a.5.5 0 1 1-.7.7L6 13.71v2.79a.5.5 0 0 1-1 0v-2.8l-1.15 1.15a.5.5 0 1 1-.7-.7l2-2A.5.5 0 0 1 5.5 12a.5.5 0 0 1 .35.14l2 2Z"]),OI=J("DocumentBulletList20Regular","20",["M6 10.5a.5.5 0 1 1 1 0 .5.5 0 0 1-1 0Zm.5 1.5a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1ZM6 14.5a.5.5 0 1 1 1 0 .5.5 0 0 1-1 0ZM8.5 10a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1h-5ZM8 12.5c0-.28.22-.5.5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5Zm.5 1.5a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1h-5ZM6 2a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V7.41c0-.4-.16-.78-.44-1.06l-3.91-3.91A1.5 1.5 0 0 0 10.59 2H6ZM5 4a1 1 0 0 1 1-1h4v3.5c0 .83.67 1.5 1.5 1.5H15v8a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4Zm9.8 3h-3.3a.5.5 0 0 1-.5-.5V3.2L14.8 7Z"]),LI=J("DocumentCopy20Regular","20",["M6 4c0-1.1.9-2 2-2h3.59c.4 0 .78.16 1.06.44l3.91 3.91c.28.28.44.67.44 1.06V14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V4Zm2-1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V8h-3.5A1.5 1.5 0 0 1 11 6.5V3H8Zm4 .2v3.3c0 .28.22.5.5.5h3.3L12 3.2ZM4 5a1 1 0 0 1 1-1v10a3 3 0 0 0 3 3h7a1 1 0 0 1-1 1H7.94A3.94 3.94 0 0 1 4 14.06V5Z"]),R2=J("DocumentSearch20Regular","20",["M4 4c0-1.1.9-2 2-2h4.59c.4 0 .78.16 1.06.44l3.91 3.91c.28.28.44.67.44 1.06V16a2 2 0 0 1-2 2h-2.09a1.5 1.5 0 0 0-.35-.56l-.44-.44H14a1 1 0 0 0 1-1V8h-3.5A1.5 1.5 0 0 1 10 6.5V3H6a1 1 0 0 0-1 1v5.03c-.35.04-.68.11-1 .23V4Zm7.5 3h3.3L11 3.2v3.3c0 .28.22.5.5.5Zm-6 10c.79 0 1.51-.26 2.1-.7l2.55 2.55a.5.5 0 1 0 .7-.7L8.3 15.6A3.5 3.5 0 1 0 5.5 17Zm0-1a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Z"]),Q1e=J("DocumentSettings20Filled","20",["M10 2v4.5c0 .83.67 1.5 1.5 1.5H16v8.5c0 .83-.67 1.5-1.5 1.5H8.66A5.5 5.5 0 0 0 4 8.2V3.5C4 2.67 4.67 2 5.5 2H10Zm1 .25V6.5c0 .28.22.5.5.5h4.25L11 2.25Zm-7.94 8.2a2 2 0 0 1-1.43 2.47l-.46.12a4.7 4.7 0 0 0 .01 1.01l.35.09A2 2 0 0 1 3 16.66l-.13.42c.26.2.54.38.84.52l.32-.35a2 2 0 0 1 2.91 0l.34.36c.3-.13.57-.3.82-.5l-.16-.55a2 2 0 0 1 1.44-2.48l.46-.12a4.7 4.7 0 0 0-.01-1.01l-.35-.09A2 2 0 0 1 8 10.34l.13-.42c-.26-.2-.54-.38-.84-.52l-.32.35a2 2 0 0 1-2.91 0l-.34-.36c-.3.13-.57.3-.82.5l.15.55ZM5.5 14.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"]),ebe=J("DocumentSettings20Regular","20",["M6 2a2 2 0 0 0-2 2v4.2c.32-.08.66-.15 1-.18V4a1 1 0 0 1 1-1h4v3.5c0 .83.67 1.5 1.5 1.5H15v8a1 1 0 0 1-1 1H9.74c-.31.38-.67.72-1.08 1H14a2 2 0 0 0 2-2V7.41c0-.4-.16-.78-.44-1.06l-3.91-3.91A1.5 1.5 0 0 0 10.59 2H6Zm8.8 5h-3.3a.5.5 0 0 1-.5-.5V3.2L14.8 7ZM3.05 10.44a2 2 0 0 1-1.43 2.48l-.46.12a4.7 4.7 0 0 0 .01 1.01l.35.09A2 2 0 0 1 3 16.66l-.13.42c.26.2.54.38.84.52l.32-.35a2 2 0 0 1 2.91 0l.34.36c.3-.13.57-.3.82-.5l-.16-.55a2 2 0 0 1 1.44-2.48l.46-.12a4.7 4.7 0 0 0-.01-1.01l-.35-.09A2 2 0 0 1 8 10.34l.13-.42c-.26-.2-.54-.38-.84-.52l-.32.35a2 2 0 0 1-2.91 0l-.34-.36c-.3.13-.57.3-.82.5l.15.55ZM5.5 14.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"]),vC=J("Settings20Filled","20",["M1.91 7.38A8.5 8.5 0 0 1 3.7 4.3a.5.5 0 0 1 .54-.13l1.92.68a1 1 0 0 0 1.32-.76l.36-2a.5.5 0 0 1 .4-.4 8.53 8.53 0 0 1 3.55 0c.2.04.35.2.38.4l.37 2a1 1 0 0 0 1.32.76l1.92-.68a.5.5 0 0 1 .54.13 8.5 8.5 0 0 1 1.78 3.08c.06.2 0 .4-.15.54l-1.56 1.32a1 1 0 0 0 0 1.52l1.56 1.32a.5.5 0 0 1 .15.54 8.5 8.5 0 0 1-1.78 3.08.5.5 0 0 1-.54.13l-1.92-.68a1 1 0 0 0-1.32.76l-.37 2a.5.5 0 0 1-.38.4 8.53 8.53 0 0 1-3.56 0 .5.5 0 0 1-.39-.4l-.36-2a1 1 0 0 0-1.32-.76l-1.92.68a.5.5 0 0 1-.54-.13 8.5 8.5 0 0 1-1.78-3.08.5.5 0 0 1 .15-.54l1.56-1.32a1 1 0 0 0 0-1.52L2.06 7.92a.5.5 0 0 1-.15-.54ZM8 10a2 2 0 1 0 4 0 2 2 0 0 0-4 0Z"]),gy=J("Settings20Regular","20",["M1.91 7.38A8.5 8.5 0 0 1 3.7 4.3a.5.5 0 0 1 .54-.13l1.92.68a1 1 0 0 0 1.32-.76l.36-2a.5.5 0 0 1 .4-.4 8.53 8.53 0 0 1 3.55 0c.2.04.35.2.38.4l.37 2a1 1 0 0 0 1.32.76l1.92-.68a.5.5 0 0 1 .54.13 8.5 8.5 0 0 1 1.78 3.08c.06.2 0 .4-.15.54l-1.56 1.32a1 1 0 0 0 0 1.52l1.56 1.32a.5.5 0 0 1 .15.54 8.5 8.5 0 0 1-1.78 3.08.5.5 0 0 1-.54.13l-1.92-.68a1 1 0 0 0-1.32.76l-.37 2a.5.5 0 0 1-.38.4 8.53 8.53 0 0 1-3.56 0 .5.5 0 0 1-.39-.4l-.36-2a1 1 0 0 0-1.32-.76l-1.92.68a.5.5 0 0 1-.54-.13 8.5 8.5 0 0 1-1.78-3.08.5.5 0 0 1 .15-.54l1.56-1.32a1 1 0 0 0 0-1.52L2.06 7.92a.5.5 0 0 1-.15-.54Zm1.06 0 1.3 1.1a2 2 0 0 1 0 3.04l-1.3 1.1c.3.79.72 1.51 1.25 2.16l1.6-.58a2 2 0 0 1 2.63 1.53l.3 1.67a7.56 7.56 0 0 0 2.5 0l.3-1.67a2 2 0 0 1 2.64-1.53l1.6.58a7.5 7.5 0 0 0 1.24-2.16l-1.3-1.1a2 2 0 0 1 0-3.04l1.3-1.1a7.5 7.5 0 0 0-1.25-2.16l-1.6.58a2 2 0 0 1-2.63-1.53l-.3-1.67a7.55 7.55 0 0 0-2.5 0l-.3 1.67A2 2 0 0 1 5.81 5.8l-1.6-.58a7.5 7.5 0 0 0-1.24 2.16ZM7.5 10a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0Zm1 0a1.5 1.5 0 1 0 3 0 1.5 1.5 0 0 0-3 0Z"]),$I=J("Share20Regular","20",["M9.5 3a.5.5 0 0 1 0 1H6a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2v-1.5a.5.5 0 0 1 1 0V14a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h3.5Zm3.8-.96a.5.5 0 0 1 .53.09l5 4.5a.5.5 0 0 1 0 .74l-5 4.5a.5.5 0 0 1-.83-.37V9.34c-1.4.13-2.67.78-3.7 1.6a9.55 9.55 0 0 0-2.2 2.5l-.15.28A.5.5 0 0 1 6 13.5c0-2.05.38-4.28 1.52-6.02A6.57 6.57 0 0 1 13 4.5V2.43a.5.5 0 0 1 .3-.39ZM14 5a.5.5 0 0 1-.5.5c-2.59 0-4.18 1.05-5.14 2.52a8.79 8.79 0 0 0-1.25 3.69 11 11 0 0 1 1.56-1.54 7.8 7.8 0 0 1 4.83-1.85c.28 0 .5.22.5.5v1.56L17.75 7 14 3.62V5Z"]),B1=J("NumberSymbol20Filled","20",["M8.99 2.88a.75.75 0 0 0-1.48-.26L6.84 6.5H3.75a.75.75 0 0 0 0 1.5h2.83l-.68 4H2.75a.75.75 0 0 0 0 1.5h2.89L5 17.12a.75.75 0 1 0 1.48.26l.67-3.88h4.48L11 17.12a.75.75 0 1 0 1.48.26l.67-3.88h3.1a.75.75 0 0 0 0-1.5h-2.84l.69-4h3.14a.75.75 0 1 0 0-1.5h-2.88l.62-3.62a.75.75 0 0 0-1.48-.26l-.67 3.88H8.37l.62-3.62ZM8.1 8h4.47l-.68 4H7.42l.69-4Z"]),D2=J("NumberSymbol20Regular","20",["M8.99 2.6a.5.5 0 0 0-.98-.2L7.09 7H3.5a.5.5 0 1 0 0 1h3.39l-.8 4H2.5a.5.5 0 0 0 0 1h3.4L5 17.4a.5.5 0 1 0 .98.2l.92-4.6h5l-.9 4.4a.5.5 0 0 0 .98.2l.95-4.6h3.56a.5.5 0 0 0 0-1h-3.36l.82-4h3.54a.5.5 0 1 0 0-1h-3.33l.9-4.39a.5.5 0 1 0-.98-.2l-.95 4.6H8.11l.88-4.41ZM7.91 8h5.03l-.82 4h-5l.79-4Z"]),tbe=J("Person20Regular","20",["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"]),rbe=J("PersonAccounts20Filled","20",["M9 2a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm-5 9a2 2 0 0 0-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0 0 9 18h.05a2.51 2.51 0 0 1-.05-.5v-4a2.5 2.5 0 0 1 2.04-2.46l.01-.04H4.01Zm8 .5v.5h-.5c-.83 0-1.5.67-1.5 1.5v4c0 .83.67 1.5 1.5 1.5h6c.83 0 1.5-.67 1.5-1.5v-4c0-.83-.67-1.5-1.5-1.5H17v-.5c0-.83-.67-1.5-1.5-1.5h-2c-.83 0-1.5.67-1.5 1.5Zm1.5-.5h2c.28 0 .5.22.5.5v.5h-3v-.5c0-.28.22-.5.5-.5Z"]),obe=J("PersonAccounts20Regular","20",["M9 2a4 4 0 1 0 0 8 4 4 0 0 0 0-8ZM6 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 9 18h.05a2.51 2.51 0 0 1-.05-.5V17a8.16 8.16 0 0 1-4.33-1.05A3.36 3.36 0 0 1 3 13a1 1 0 0 1 1-1h5.5c.37-.5.91-.84 1.54-.96l.01-.04H4.01Zm8 .5v.5h-.5c-.83 0-1.5.67-1.5 1.5v4c0 .83.67 1.5 1.5 1.5h6c.83 0 1.5-.67 1.5-1.5v-4c0-.83-.67-1.5-1.5-1.5H17v-.5c0-.83-.67-1.5-1.5-1.5h-2c-.83 0-1.5.67-1.5 1.5Zm1.5-.5h2c.28 0 .5.22.5.5v.5h-3v-.5c0-.28.22-.5.5-.5Z"]),nbe=J("Options20Filled","20",["M17.25 5h-2.36a2.5 2.5 0 0 0-4.78 0H2.75a.75.75 0 0 0 0 1.5h7.36a2.5 2.5 0 0 0 4.78 0h2.36a.75.75 0 0 0 0-1.5Zm-14.5 8.5a.75.75 0 0 0 0 1.5h2.36a2.5 2.5 0 0 0 4.78 0h7.36a.75.75 0 0 0 0-1.5H9.89a2.5 2.5 0 0 0-4.78 0H2.75Z"]),abe=J("Options20Regular","20",["M14.95 5a2.5 2.5 0 0 0-4.9 0H2.5a.5.5 0 0 0 0 1h7.55a2.5 2.5 0 0 0 4.9 0h2.55a.5.5 0 0 0 0-1h-2.55ZM12.5 7a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm-2.55 7a2.5 2.5 0 0 0-4.9 0H2.5a.5.5 0 0 0 0 1h2.55a2.5 2.5 0 0 0 4.9 0h7.55a.5.5 0 0 0 0-1H9.95ZM7.5 16a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Z"]),bC=J("Tag20Filled","20",["M18 4.03a2 2 0 0 0-1.98-2L11.12 2a2 2 0 0 0-1.42.59L3.02 9.25a2 2 0 0 0 0 2.83l4.95 4.95a2 2 0 0 0 2.83 0l6.63-6.63A2 2 0 0 0 18 8.98V4.03ZM14 7a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"]),HI=J("Tag20Regular","20",["M14 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm-2.87-5a2 2 0 0 0-1.43.58L3.02 9.25a2 2 0 0 0 0 2.83l4.95 4.95a2 2 0 0 0 2.83 0l6.63-6.63A2 2 0 0 0 18 8.98V4.03a2 2 0 0 0-1.99-2L11.12 2Zm-.72 1.3a1 1 0 0 1 .71-.3l4.9.03a1 1 0 0 1 .99 1v4.95a1 1 0 0 1-.29.7l-6.63 6.64a1 1 0 0 1-1.41 0l-4.95-4.95a1 1 0 0 1 0-1.41l6.68-6.67Z"]),ac=J("Copy20Regular","20",["M8 2a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h6a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8ZM7 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4ZM4 6a2 2 0 0 1 1-1.73V14.5A2.5 2.5 0 0 0 7.5 17h6.23A2 2 0 0 1 12 18H7.5A3.5 3.5 0 0 1 4 14.5V6Z"]),yC=J("Globe20Regular","20",["M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm0-15c.66 0 1.4.59 2.02 1.9.22.47.4 1.01.56 1.6H7.42c.15-.59.34-1.13.56-1.6C8.59 3.6 9.34 3 10 3ZM7.07 4.49c-.27.59-.5 1.27-.68 2.01H3.94A7.02 7.02 0 0 1 7.7 3.38c-.24.33-.45.7-.64 1.1ZM6.2 7.5a15.97 15.97 0 0 0 0 5H3.46a6.98 6.98 0 0 1 0-5h2.73Zm.2 6c.17.74.4 1.42.68 2.01.19.4.4.78.64 1.1a7.02 7.02 0 0 1-3.77-3.11h2.45Zm1.03 0h5.16a9.25 9.25 0 0 1-.56 1.6C11.41 16.4 10.66 17 10 17c-.66 0-1.4-.59-2.02-1.9-.22-.47-.4-1.01-.56-1.6Zm5.37-1H7.21a14.87 14.87 0 0 1 0-5h5.58a14.86 14.86 0 0 1 0 5Zm.82 1h2.45a7.02 7.02 0 0 1-3.77 3.12c.24-.33.45-.7.64-1.1.27-.6.5-1.28.68-2.02Zm2.93-1h-2.73a15.97 15.97 0 0 0 0-5h2.73a6.98 6.98 0 0 1 0 5Zm-4.25-9.12a7.02 7.02 0 0 1 3.77 3.12h-2.45a10.5 10.5 0 0 0-.68-2.01c-.19-.4-.4-.78-.64-1.1Z"]),xC=J("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"]),wC=J("Open20Regular","20",["M6 4a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2v-2.5a.5.5 0 0 1 1 0V14a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h2.5a.5.5 0 0 1 0 1H6Zm5-.5c0-.28.22-.5.5-.5h5c.28 0 .5.22.5.5v5a.5.5 0 0 1-1 0V4.7l-4.15 4.15a.5.5 0 0 1-.7-.7L15.29 4H11.5a.5.5 0 0 1-.5-.5Z"]),ibe=J("SubtractCircle16Regular","16",["M2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8Zm6-7a7 7 0 1 0 0 14A7 7 0 0 0 8 1ZM5 7.5a.5.5 0 0 0 0 1h6a.5.5 0 0 0 0-1H5Z"]),VI=J("Warning12Filled","12",["M4.28 1.97a2 2 0 0 1 3.43 0l3 5A2 2 0 0 1 9 10H3A2 2 0 0 1 1.3 6.98l3-5ZM6 6.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM6 3.5a.5.5 0 0 0-.5.5v1.5a.5.5 0 0 0 1 0V4a.5.5 0 0 0-.5-.5Z"]),E2=J("Warning16Filled","16",["M5.82 2.28a2.5 2.5 0 0 1 4.36 0l4.5 8A2.5 2.5 0 0 1 12.5 14h-9a2.5 2.5 0 0 1-2.18-3.72l4.5-8ZM8 9.5A.75.75 0 1 0 8 11a.75.75 0 0 0 0-1.5ZM8 5a.5.5 0 0 0-.5.5V8a.5.5 0 0 0 1 0V5.5A.5.5 0 0 0 8 5Z"]),kC=J("Warning20Filled","20",["M7.37 3.56a3 3 0 0 1 5.26 0l5.5 10A3 3 0 0 1 15.5 18h-11a3 3 0 0 1-2.63-4.44l5.5-10ZM10 12.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0-6.25a.5.5 0 0 0-.5.5v4a.5.5 0 0 0 1 0V7a.5.5 0 0 0-.5-.5Z"]),sbe=J("AppsList20Filled","20",["M8 4.5c0-.28.22-.5.5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5Zm0 6c0-.28.22-.5.5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5Zm0 6c0-.28.22-.5.5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5Zm-6-1c0-.83.67-1.5 1.5-1.5h1c.83 0 1.5.67 1.5 1.5v1c0 .83-.67 1.5-1.5 1.5h-1A1.5 1.5 0 0 1 2 16.5v-1Zm0-6C2 8.67 2.67 8 3.5 8h1C5.33 8 6 8.67 6 9.5v1c0 .83-.67 1.5-1.5 1.5h-1A1.5 1.5 0 0 1 2 10.5v-1Zm0-6C2 2.67 2.67 2 3.5 2h1C5.33 2 6 2.67 6 3.5v1C6 5.33 5.33 6 4.5 6h-1A1.5 1.5 0 0 1 2 4.5v-1Z"]),lbe=J("AppsList20Regular","20",["M2 3.5C2 2.67 2.67 2 3.5 2h1C5.33 2 6 2.67 6 3.5v1C6 5.33 5.33 6 4.5 6h-1A1.5 1.5 0 0 1 2 4.5v-1ZM3.5 3a.5.5 0 0 0-.5.5v1c0 .28.22.5.5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1ZM2 9.5C2 8.67 2.67 8 3.5 8h1C5.33 8 6 8.67 6 9.5v1c0 .83-.67 1.5-1.5 1.5h-1A1.5 1.5 0 0 1 2 10.5v-1ZM3.5 9a.5.5 0 0 0-.5.5v1c0 .28.22.5.5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1ZM2 15.5c0-.83.67-1.5 1.5-1.5h1c.83 0 1.5.67 1.5 1.5v1c0 .83-.67 1.5-1.5 1.5h-1A1.5 1.5 0 0 1 2 16.5v-1Zm1.5-.5a.5.5 0 0 0-.5.5v1c0 .28.22.5.5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1ZM8 4.5c0-.28.22-.5.5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5Zm0 6c0-.28.22-.5.5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5Zm0 6c0-.28.22-.5.5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5Z"]),P2=J("Save20Filled","20",["M3 5c0-1.1.9-2 2-2h1v3.5C6 7.33 6.67 8 7.5 8h4c.83 0 1.5-.67 1.5-1.5V3h.38a2 2 0 0 1 1.41.59l1.62 1.62A2 2 0 0 1 17 6.62V15a2 2 0 0 1-2 2v-5.5c0-.83-.67-1.5-1.5-1.5h-7c-.83 0-1.5.67-1.5 1.5V17a2 2 0 0 1-2-2V5Zm9-2H7v3.5c0 .28.22.5.5.5h4a.5.5 0 0 0 .5-.5V3Zm2 8.5V17H6v-5.5c0-.28.22-.5.5-.5h7c.28 0 .5.22.5.5Z"]),WI=J("Save20Regular","20",["M3 5c0-1.1.9-2 2-2h8.38a2 2 0 0 1 1.41.59l1.62 1.62A2 2 0 0 1 17 6.62V15a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm2-1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1v-4.5c0-.83.67-1.5 1.5-1.5h7c.83 0 1.5.67 1.5 1.5V16a1 1 0 0 0 1-1V6.62a1 1 0 0 0-.3-.7L14.1 4.28a1 1 0 0 0-.71-.29H13v2.5c0 .83-.67 1.5-1.5 1.5h-4A1.5 1.5 0 0 1 6 6.5V4H5Zm2 0v2.5c0 .28.22.5.5.5h4a.5.5 0 0 0 .5-.5V4H7Zm7 12v-4.5a.5.5 0 0 0-.5-.5h-7a.5.5 0 0 0-.5.5V16h8Z"]),cbe=J("Stack20Filled","20",["M4 3a2 2 0 0 0-2 2v6c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2H4Zm.27 11c.34.6.99 1 1.73 1h6a4 4 0 0 0 4-4V7a2 2 0 0 0-1-1.73V11a3 3 0 0 1-3 3H4.27Zm2 2c.34.6.99 1 1.73 1h4a6 6 0 0 0 6-6V9a2 2 0 0 0-1-1.73V11a5 5 0 0 1-5 5H6.27Z"]),Fp=J("Stack20Regular","20",["M2 5c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5Zm2-1a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H4Zm2 11a2 2 0 0 1-1.73-1H12a3 3 0 0 0 3-3V5.27c.6.34 1 .99 1 1.73v4a4 4 0 0 1-4 4H6Zm2 2a2 2 0 0 1-1.73-1H12a5 5 0 0 0 5-5V7.27c.6.34 1 .99 1 1.73v2a6 6 0 0 1-6 6H8Z"]),UI=J("WeatherMoon20Regular","20",["M15.5 13.5A6.98 6.98 0 0 1 4 14.39c2.83-1.09 4.56-2.42 5.6-4.4 1.04-2 1.33-4.16.75-6.9A6.98 6.98 0 0 1 15.5 13.5ZM5.45 16.92A7.98 7.98 0 1 0 9.88 2.04a.6.6 0 0 0-.61.73c.69 2.82.43 4.88-.55 6.76-.94 1.78-2.55 3.03-5.55 4.1a.6.6 0 0 0-.3.9 7.95 7.95 0 0 0 2.59 2.39Z"]),GI=J("WeatherSunny20Regular","20",["M10 2c.28 0 .5.22.5.5v1a.5.5 0 0 1-1 0v-1c0-.28.22-.5.5-.5Zm0 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0-1a3 3 0 1 1 0-6 3 3 0 0 1 0 6Zm7.5-2.5a.5.5 0 0 0 0-1h-1a.5.5 0 0 0 0 1h1ZM10 16c.28 0 .5.22.5.5v1a.5.5 0 0 1-1 0v-1c0-.28.22-.5.5-.5Zm-6.5-5.5a.5.5 0 0 0 0-1H2.46a.5.5 0 0 0 0 1H3.5Zm.65-6.35c.2-.2.5-.2.7 0l1 1a.5.5 0 1 1-.7.7l-1-1a.5.5 0 0 1 0-.7Zm.7 11.7a.5.5 0 0 1-.7-.7l1-1a.5.5 0 0 1 .7.7l-1 1Zm11-11.7a.5.5 0 0 0-.7 0l-1 1a.5.5 0 0 0 .7.7l1-1a.5.5 0 0 0 0-.7Zm-.7 11.7a.5.5 0 0 0 .7-.7l-1-1a.5.5 0 0 0-.7.7l1 1Z"]),ZI=J("Info16Regular","16",["M8.5 7.5a.5.5 0 1 0-1 0v3a.5.5 0 0 0 1 0v-3Zm.25-2a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1ZM2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8Z"]),KI=J("Info20Filled","20",["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"]),SC=J("LineHorizontal320Filled","20",["M2 4.75c0-.41.34-.75.75-.75h14.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 4.75Zm0 5c0-.41.34-.75.75-.75h14.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 9.75ZM2.75 14a.75.75 0 0 0 0 1.5h14.5a.75.75 0 0 0 0-1.5H2.75Z"]),XI=J("LineHorizontal320Regular","20",["M2 4.5c0-.28.22-.5.5-.5h15a.5.5 0 0 1 0 1h-15a.5.5 0 0 1-.5-.5Zm0 5c0-.28.22-.5.5-.5h15a.5.5 0 0 1 0 1h-15a.5.5 0 0 1-.5-.5Zm.5 4.5a.5.5 0 0 0 0 1h15a.5.5 0 0 0 0-1h-15Z"]),ube=J("Link20Filled","20",["M14 6a4 4 0 0 1 .2 8H12a.75.75 0 0 1-.1-1.5H14a2.5 2.5 0 0 0 .16-5H12a.75.75 0 0 1-.1-1.5H14ZM8 6a.75.75 0 0 1 .1 1.5H6a2.5 2.5 0 0 0-.16 5H8a.75.75 0 0 1 .1 1.5H6a4 4 0 0 1-.2-8H8ZM6.25 9.25h7.5a.75.75 0 0 1 .1 1.5h-7.6a.75.75 0 0 1-.1-1.5h7.6-7.5Z"]),Ll=J("Link20Regular","20",["M8 6a.5.5 0 0 1 .09 1H6a3 3 0 0 0-.2 6H8a.5.5 0 0 1 .09 1H6a4 4 0 0 1-.22-8H8Zm6 0a4 4 0 0 1 .22 8H12a.5.5 0 0 1-.09-1H14a3 3 0 0 0 .2-6H12a.5.5 0 0 1-.09-1H14ZM6 9.5h8a.5.5 0 0 1 .09 1H6a.5.5 0 0 1-.09-1H14 6Z"]),YI=J("LinkSquare16Regular","16",["M4 2a2 2 0 0 0-2 2v4c0 1.1.9 2 2 2h1V9H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1v1a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H4Zm7 4v1h1a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1V6a2 2 0 0 0-2 2v4c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-1Z"]),JI=J("Add16Regular","16",["M8 2c.28 0 .5.22.5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5c0-.28.22-.5.5-.5Z"]),js=J("Add20Regular","20",["M10 2.5c.28 0 .5.22.5.5v6.5H17a.5.5 0 0 1 0 1h-6.5V17a.5.5 0 0 1-1 0v-6.5H3a.5.5 0 0 1 0-1h6.5V3c0-.28.22-.5.5-.5Z"]),QI=J("Play20Filled","20",["M17.22 8.68a1.5 1.5 0 0 1 0 2.63l-10 5.5A1.5 1.5 0 0 1 5 15.5v-11A1.5 1.5 0 0 1 7.22 3.2l10 5.5Z"]),dbe=J("FormNew20Filled","20",["M7 9.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0ZM6.5 14a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1ZM3 6a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v3.6c-.75-.38-1.6-.6-2.5-.6h-5a.5.5 0 0 0 0 1h1.84a5.5 5.5 0 0 0-1.74 7H6a3 3 0 0 1-3-3V6Zm2.5-1a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1h-9Zm1 6a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM8 13.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0Zm11 1a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Zm-4-2a.5.5 0 0 0-1 0V14h-1.5a.5.5 0 0 0 0 1H14v1.5a.5.5 0 0 0 1 0V15h1.5a.5.5 0 0 0 0-1H15v-1.5Z"]),fbe=J("FormNew20Regular","20",["M6 3a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h3.6c-.16-.32-.3-.65-.4-1H6a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v3.2c.35.1.68.24 1 .4V6a3 3 0 0 0-3-3H6Zm3.5 7h1.84c.9-.63 1.98-1 3.16-1h-5a.5.5 0 0 0 0 1Zm-4-5a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1h-9Zm1 6a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm0-1a.5.5 0 1 1 0-1 .5.5 0 0 1 0 1Zm0 5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm0-2a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1ZM19 14.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Zm-4-2a.5.5 0 0 0-1 0V14h-1.5a.5.5 0 0 0 0 1H14v1.5a.5.5 0 0 0 1 0V15h1.5a.5.5 0 0 0 0-1H15v-1.5Z"]),pbe=J("Image20Filled","20",["M6 3a3 3 0 0 0-3 3v8c0 .65.2 1.25.56 1.74l5.39-5.3a1.5 1.5 0 0 1 2.1 0l5.4 5.3c.34-.49.55-1.1.55-1.74V6a3 3 0 0 0-3-3H6Zm0 14c-.65 0-1.24-.2-1.73-.55l5.38-5.3c.2-.2.5-.2.7 0l5.38 5.3c-.49.35-1.08.55-1.73.55H6Zm6.5-8.25a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5Z"]),eA=J("Image20Regular","20",["M14 7.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm-1 0a.5.5 0 1 0-1 0 .5.5 0 0 0 1 0ZM3 6a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6Zm3-2a2 2 0 0 0-2 2v8c0 .37.1.72.28 1.02l4.67-4.59a1.5 1.5 0 0 1 2.1 0l4.67 4.59c.18-.3.28-.65.28-1.02V6a2 2 0 0 0-2-2H6Zm0 12h8a2 2 0 0 0 1.01-.27l-4.66-4.58a.5.5 0 0 0-.7 0l-4.66 4.58A2 2 0 0 0 6 16Z"]),mbe=J("Eye20Filled","20",["M3.26 11.6A6.97 6.97 0 0 1 10 6c3.2 0 6.06 2.33 6.74 5.6a.5.5 0 0 0 .98-.2A7.97 7.97 0 0 0 10 5a7.97 7.97 0 0 0-7.72 6.4.5.5 0 0 0 .98.2ZM9.99 8a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7Z"]),gbe=J("Eye20Regular","20",["M3.26 11.6A6.97 6.97 0 0 1 10 6c3.2 0 6.06 2.33 6.74 5.6a.5.5 0 0 0 .98-.2A7.97 7.97 0 0 0 10 5a7.97 7.97 0 0 0-7.72 6.4.5.5 0 0 0 .98.2ZM10 8a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7Zm-2.5 3.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0Z"]),hbe=J("EyeOff20Regular","20",["M2.85 2.15a.5.5 0 1 0-.7.7l3.5 3.5a8.1 8.1 0 0 0-3.37 5.05.5.5 0 1 0 .98.2 7.09 7.09 0 0 1 3.1-4.53l1.6 1.59a3.5 3.5 0 1 0 4.88 4.89l4.3 4.3a.5.5 0 0 0 .71-.7l-15-15Zm9.27 10.68a2.5 2.5 0 1 1-3.45-3.45l3.45 3.45Zm-2-4.83 3.38 3.38A3.5 3.5 0 0 0 10.12 8ZM10 6c-.57 0-1.13.07-1.67.21l-.8-.8A7.65 7.65 0 0 1 10 5c3.7 0 6.94 2.67 7.72 6.4a.5.5 0 0 1-.98.2A6.97 6.97 0 0 0 10 6Z"]),vbe=J("Flowchart20Filled","20",["M3 4.5C3 3.67 3.67 3 4.5 3h2C7.33 3 8 3.67 8 4.5v2C8 7.33 7.33 8 6.5 8H6v3.84a1 1 0 0 1 .2.16L8 13.8a1 1 0 0 1 .16.2H12v-.5c0-.83.67-1.5 1.5-1.5h2c.83 0 1.5.67 1.5 1.5v2c0 .83-.67 1.5-1.5 1.5h-2a1.5 1.5 0 0 1-1.5-1.5V15H8.16a1 1 0 0 1-.16.2L6.2 17a1 1 0 0 1-1.4 0L3 15.2a1 1 0 0 1 0-1.4L4.8 12a1 1 0 0 1 .2-.16V8h-.5A1.5 1.5 0 0 1 3 6.5v-2Z"]),tA=J("Flowchart20Regular","20",["M4.5 3C3.67 3 3 3.67 3 4.5v2C3 7.33 3.67 8 4.5 8H5v3.84a1 1 0 0 0-.2.16L3 13.8a1 1 0 0 0 0 1.4L4.8 17a1 1 0 0 0 1.4 0L8 15.2a1 1 0 0 0 .16-.2H12v.5c0 .83.67 1.5 1.5 1.5h2c.83 0 1.5-.67 1.5-1.5v-2c0-.83-.67-1.5-1.5-1.5h-2c-.83 0-1.5.67-1.5 1.5v.5H8.16a1 1 0 0 0-.16-.2L6.2 12a1 1 0 0 0-.2-.16V8h.5C7.33 8 8 7.33 8 6.5v-2C8 3.67 7.33 3 6.5 3h-2ZM4 4.5c0-.28.22-.5.5-.5h2c.28 0 .5.22.5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2Zm-.3 10 1.8-1.8 1.8 1.8-1.8 1.8-1.8-1.8Zm9.8-1.5h2c.28 0 .5.22.5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2c0-.28.22-.5.5-.5Z"]),M2=J("PuzzlePiece16Regular","16",["M7 3a2 2 0 0 1 4 0h1.5c.83 0 1.5.67 1.5 1.5V7h-1a1 1 0 0 0 0 2h1v2.5c0 .83-.67 1.5-1.5 1.5H11a2 2 0 0 1-4 0H5.5A1.5 1.5 0 0 1 4 11.5V10a2 2 0 0 1 0-4V4.5C4 3.67 4.67 3 5.5 3H7Zm2-1a1 1 0 0 0-1 1v1H5.5a.5.5 0 0 0-.5.5V7H4a1 1 0 0 0 0 2h1v2.5c0 .28.22.5.5.5H8v1a1 1 0 0 0 2 0v-1h2.5a.5.5 0 0 0 .5-.5V10a2 2 0 0 1 0-4V4.5a.5.5 0 0 0-.5-.5H10V3a1 1 0 0 0-1-1Z"]),bbe=J("Edit20Filled","20",["M12.92 2.87a2.97 2.97 0 0 1 4.2 4.21l-.66.67-4.2-4.2.66-.68Zm-1.38 1.38-8 8c-.32.33-.55.74-.65 1.2l-.88 3.94a.5.5 0 0 0 .6.6l3.92-.87c.47-.1.9-.34 1.24-.68l7.98-7.98-4.2-4.21Z"]),j1=J("Edit20Regular","20",["M17.18 2.93a2.97 2.97 0 0 0-4.26-.06l-9.37 9.38c-.33.33-.56.74-.66 1.2l-.88 3.94a.5.5 0 0 0 .6.6l3.93-.87c.46-.1.9-.34 1.23-.68l9.36-9.36a2.97 2.97 0 0 0 .05-4.15Zm-3.55.65a1.97 1.97 0 1 1 2.8 2.8l-.68.66-2.8-2.79.68-.67Zm-1.38 1.38 2.8 2.8-7.99 7.97c-.2.2-.46.35-.74.41l-3.16.7.7-3.18c.07-.27.2-.51.4-.7l8-8Z"]),ybe=J("Clock20Filled","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm-.5 3a.5.5 0 0 0-.5.5v5.09a.5.5 0 0 0 .5.41h3.09a.5.5 0 0 0-.09-1H10V5.41A.5.5 0 0 0 9.5 5Z"]),rA=J("Clock20Regular","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm-.5 2a.5.5 0 0 1 .5.41V10h2.5a.5.5 0 0 1 .09 1H9.5a.5.5 0 0 1-.5-.41V5.5c0-.28.22-.5.5-.5Z"]),xbe=J("Flash20Filled","20",["M7.21 2c-.47 0-.89.31-1.02.77l-2.25 7.87c-.2.68.32 1.36 1.02 1.36h1.27l-1.17 4.68c-.26 1.05 1.04 1.78 1.8 1l8.67-8.86c.65-.68.19-1.82-.76-1.82H12.2l1.26-3.6c.23-.69-.28-1.4-1-1.4H7.2Z"]),q2=J("Flash20Regular","20",["M6.2 2.77C6.31 2.31 6.73 2 7.2 2h5.25c.73 0 1.24.71 1 1.4L12.22 7h2.56c.95 0 1.4 1.14.77 1.81l-8.68 8.86c-.76.79-2.06.06-1.8-1L6.23 12H4.96c-.7 0-1.21-.68-1.02-1.36L6.2 2.77ZM7.2 3a.06.06 0 0 0-.06.05L4.9 10.92c0 .04.02.08.06.08h1.91a.5.5 0 0 1 .49.62l-1.33 5.3v.04l.03.03.04.01h.01l.03-.02 8.68-8.86a.06.06 0 0 0 .01-.03v-.05a.08.08 0 0 0-.03-.03L14.77 8H11.5a.5.5 0 0 1-.47-.67l1.5-4.25a.06.06 0 0 0-.07-.08H7.21Z"]),oA=J("History16Regular","16",["M8 3a5 5 0 1 1-4.98 5.46.5.5 0 0 0-1 .08 6 6 0 1 0 1.48-4.5V2.5a.5.5 0 1 0-1 0v3c0 .28.22.5.5.5h3a.5.5 0 1 0 0-1H4a5 5 0 0 1 4-2Zm0 2.5a.5.5 0 1 0-1 0v3c0 .28.22.5.5.5h2a.5.5 0 1 0 0-1H8V5.5Z"]),wbe=J("History20Regular","20",["M10 4a6 6 0 1 1-5.98 5.54.5.5 0 1 0-1-.08A7 7 0 1 0 5 5.1V3.5a.5.5 0 0 0-1 0v3c0 .28.22.5.5.5h3a.5.5 0 0 0 0-1H5.53c1.1-1.23 2.7-2 4.47-2Zm0 2.5a.5.5 0 0 0-1 0v4c0 .28.22.5.5.5h3a.5.5 0 0 0 0-1H10V6.5Z"]),nA=J("Location16Regular","16",["M8 1a6 6 0 0 1 6 6c0 2.87-3.1 6.02-4.84 7.56-.67.59-1.65.59-2.32 0C5.1 13.02 2 9.87 2 7a6 6 0 0 1 6-6Zm0 1a5 5 0 0 0-5 5c0 1.1.61 2.4 1.57 3.68a21.38 21.38 0 0 0 2.93 3.13c.3.25.7.25 1 0 .84-.75 2-1.87 2.93-3.13C12.4 9.4 13 8.11 13 7a5 5 0 0 0-5-5Zm0 2.75a2.25 2.25 0 1 1 0 4.5 2.25 2.25 0 0 1 0-4.5Zm0 1a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5Z"]),aA=J("LockClosed16Regular","16",["M8 1a3 3 0 0 1 3 3v2a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2V4a3 3 0 0 1 3-3ZM5 7a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H5Zm3 2.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2ZM8 2a2 2 0 0 0-2 2v2h4V4a2 2 0 0 0-2-2Z"]),kbe=J("LockClosed20Filled","20",["M10 1a4 4 0 0 1 4 4v2.05a2.5 2.5 0 0 1 2 2.45v6a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 4 15.5v-6c0-1.2.86-2.22 2-2.45V5a4 4 0 0 1 4-4Zm0 10.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM10 2a3 3 0 0 0-3 3v2h6V5a3 3 0 0 0-3-3Z"]),iA=J("LockClosed20Regular","20",["M10 1a4 4 0 0 1 4 4v2.05a2.5 2.5 0 0 1 2 2.45v6a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 4 15.5v-6c0-1.2.86-2.22 2-2.45V5a4 4 0 0 1 4-4ZM6.5 8C5.67 8 5 8.67 5 9.5v6c0 .83.67 1.5 1.5 1.5h7c.83 0 1.5-.67 1.5-1.5v-6c0-.83-.67-1.5-1.5-1.5h-7Zm3.5 3.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2ZM10 2a3 3 0 0 0-3 3v2h6V5a3 3 0 0 0-3-3Z"]),F2=J("BookmarkMultiple20Regular","20",["M6.27 3A2 2 0 0 1 8 2h4.5A3.5 3.5 0 0 1 16 5.5v10a.5.5 0 0 1-.78.42l-.22-.15V5.5A2.5 2.5 0 0 0 12.5 3H6.27ZM6 4a2 2 0 0 0-2 2v11.5a.5.5 0 0 0 .78.42L9 15.1l4.22 2.82a.5.5 0 0 0 .78-.42V6a2 2 0 0 0-2-2H6ZM5 6a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10.57l-3.72-2.49a.5.5 0 0 0-.56 0L5 16.57V6Z"]),sA=J("Lightbulb16Regular","16",["M4.5 6.5A3.5 3.5 0 1 1 10.45 9c-.19.19-.36.43-.44.73L9.66 11H6.34l-.35-1.27c-.08-.3-.25-.54-.44-.73A3.49 3.49 0 0 1 4.5 6.5ZM6.6 12h2.8l-.18.63a.5.5 0 0 1-.48.37H7.26a.5.5 0 0 1-.48-.37L6.61 12ZM8 2a4.5 4.5 0 0 0-3.16 7.7c.1.1.16.2.19.3l.79 2.9c.17.65.77 1.1 1.44 1.1h1.48a1.5 1.5 0 0 0 1.44-1.1l.8-2.9c.02-.1.08-.2.18-.3A4.49 4.49 0 0 0 8 2Z"]),cg=J("ArrowClockwise20Regular","20",["M4 10a6 6 0 0 1 10.47-4H12.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-1 0v1.6a7 7 0 1 0 1.98 4.36.5.5 0 1 0-1 .08L16 10a6 6 0 0 1-12 0Z"]),lA=J("ArrowDown20Regular","20",["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"]),cA=J("ArrowDownload16Regular","16",["M3.5 13h9a.5.5 0 0 1 .09 1H3.5a.5.5 0 0 1-.09-1h9.09-9ZM7.91 1H8a.5.5 0 0 1 .5.41v8.89l2.68-2.69a.5.5 0 0 1 .64-.06l.07.06c.17.17.2.44.06.64l-.06.07-3.54 3.53a.5.5 0 0 1-.63.06l-.07-.06L4.1 8.32a.5.5 0 0 1 .64-.77l.07.06L7.5 10.3V1.5a.5.5 0 0 1 .41-.5H8h-.09Z"]),Sbe=J("ArrowDownload20Filled","20",["M15.24 16.5a.75.75 0 0 1 .1 1.5H4.76a.75.75 0 0 1-.1-1.5h10.6ZM10 2c.38 0 .7.28.75.65V12.95l2.97-2.98c.27-.26.68-.29.98-.07l.08.07c.27.27.3.68.07.98l-.07.08-4.24 4.25-.07.07-.1.05-.03.03-.1.03-.11.03-.07.01H10l-.15-.01-.08-.03a.73.73 0 0 1-.26-.14l-4.29-4.29A.75.75 0 0 1 6.2 9.9l.08.07 2.97 2.97V2.75c0-.41.34-.75.75-.75Z"]),BC=J("ArrowDownload20Regular","20",["M15.5 17a.5.5 0 0 1 .09 1H4.5a.5.5 0 0 1-.09-1H15.5ZM10 2a.5.5 0 0 1 .5.41V14.3l3.64-3.65a.5.5 0 0 1 .64-.06l.07.06c.17.17.2.44.06.63l-.06.07-4.5 4.5a.5.5 0 0 1-.25.14L10 16a.5.5 0 0 1-.4-.2l-4.46-4.45a.5.5 0 0 1 .64-.76l.07.06 3.65 3.64V2.5c0-.27.22-.5.5-.5Z"]),jC=J("ArrowEnter20Regular","20",["M7.5 17a.5.5 0 0 1 0-1H14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H7.5a.5.5 0 0 1 0-1H14a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H7.5Zm.15-10.85c.2-.2.5-.2.7 0l3.5 3.5c.2.2.2.5 0 .7l-3.5 3.5a.5.5 0 0 1-.7-.7l2.64-2.65H1.5a.5.5 0 0 1 0-1h8.8L7.64 6.85a.5.5 0 0 1 0-.7Z"]),uA=J("ArrowExit20Regular","20",["M12.5 17a.5.5 0 0 0 0-1H6a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h6.5a.5.5 0 0 0 0-1H6a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h6.5Zm1.15-10.85c.2-.2.5-.2.7 0l3.5 3.5c.2.2.2.5 0 .7l-3.5 3.5a.5.5 0 0 1-.7-.7l2.64-2.65H7.5a.5.5 0 0 1 0-1h8.8l-2.65-2.65a.5.5 0 0 1 0-.7Z"]),dA=J("ArrowExportUp20Regular","20",["M9.65 2.15c.2-.2.5-.2.7 0l4 4a.5.5 0 0 1-.7.7L10.5 3.71V14.5a.5.5 0 0 1-1 0V3.7L6.35 6.86a.5.5 0 1 1-.7-.7l4-4ZM4 17.5c0-.28.22-.5.5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5Z"],{flipInRtl:!0}),fA=J("ArrowImport20Regular","20",["M17.5 4c.28 0 .5.22.5.5v11a.5.5 0 0 1-1 0v-11c0-.28.22-.5.5-.5ZM2 10c0-.28.22-.5.5-.5h10.8l-3.15-3.15a.5.5 0 0 1 .7-.7l4 4A.5.5 0 0 1 15 10a.5.5 0 0 1-.15.35l-4 4a.5.5 0 0 1-.7-.7l3.14-3.15H2.5A.5.5 0 0 1 2 10Z"],{flipInRtl:!0}),Bbe=J("ArrowLeft20Regular","20",["M9.16 16.87a.5.5 0 1 0 .67-.74L3.67 10.5H17.5a.5.5 0 0 0 0-1H3.67l6.16-5.63a.5.5 0 0 0-.67-.74L2.24 9.44a.75.75 0 0 0 0 1.11l6.92 6.32Z"]),pA=J("ArrowReset20Regular","20",["M5.85 2.65c.2.2.2.5 0 .7L4.21 5H11a6 6 0 1 1-6 6 .5.5 0 0 1 1 0 5 5 0 1 0 5-5H4.2l1.65 1.65a.5.5 0 1 1-.7.7l-2.5-2.5a.5.5 0 0 1 0-.7l2.5-2.5c.2-.2.5-.2.7 0Z"],{flipInRtl:!0}),mA=J("ArrowSortDown16Regular","16",["M7.15 13.85c.2.2.5.2.7 0l3-3a.5.5 0 0 0-.7-.7L8 12.29V2.5a.5.5 0 0 0-1 0v9.8l-2.15-2.15a.5.5 0 0 0-.7.7l3 3Z"]),gA=J("ArrowSortUp16Regular","16",["M7.15 2.15c.2-.2.5-.2.7 0l3 3a.5.5 0 0 1-.7.7L8 3.71v9.79a.5.5 0 0 1-1 0V3.7L4.85 5.86a.5.5 0 1 1-.7-.7l3-3Z"]),jbe=J("ArrowSwap20Filled","20",["M12.78 3.22a.75.75 0 1 0-1.06 1.06L13.44 6H4.75a.75.75 0 0 0 0 1.5h8.69l-1.72 1.72a.75.75 0 1 0 1.06 1.06l3-3c.3-.3.3-.77 0-1.06l-3-3Zm-4.5 7.56a.75.75 0 1 0-1.06-1.06l-3 3a.75.75 0 0 0 0 1.06l3 3a.75.75 0 0 0 1.06-1.06L6.56 14h8.69a.75.75 0 0 0 0-1.5H6.56l1.72-1.72Z"],{flipInRtl:!0}),Cbe=J("ArrowSwap20Regular","20",["M12.15 3.15c.2-.2.5-.2.7 0l3 3c.2.2.2.5 0 .7l-3 3a.5.5 0 0 1-.7-.7L14.29 7H4.5a.5.5 0 0 1 0-1h9.8l-2.15-2.15a.5.5 0 0 1 0-.7Zm-4.3 7c.2.2.2.5 0 .7L5.71 13h9.79a.5.5 0 0 1 0 1H5.7l2.15 2.15a.5.5 0 0 1-.7.7l-3-3a.5.5 0 0 1 0-.7l3-3c.2-.2.5-.2.7 0Z"],{flipInRtl:!0}),I2=J("ArrowSync20Regular","20",["M11.41 3.64a.5.5 0 0 0 0-.71L9.3.8a.5.5 0 0 0-.7.7l1 1a7.5 7.5 0 0 0-4.08 13.5.5.5 0 0 0 .6-.8A6.5 6.5 0 0 1 10.14 3.5L8.59 5.04a.5.5 0 0 0 .7.7l2.12-2.11ZM8.6 16.36a.5.5 0 0 0 0 .71l2.12 2.12a.5.5 0 0 0 .7-.7l-1-1a7.5 7.5 0 0 0 4.07-13.5.5.5 0 1 0-.59.8A6.5 6.5 0 0 1 9.86 16.5l1.55-1.55a.5.5 0 1 0-.7-.7l-2.12 2.11Z"],{flipInRtl:!0}),Nbe=J("ArrowUndo16Regular","16",["M3 2.5a.5.5 0 0 1 1 0v3.84l3.17-3.17a4 4 0 0 1 5.66 5.66L7.8 13.85a.5.5 0 0 1-.7-.7l5.02-5.03a3 3 0 1 0-4.24-4.24L4.76 7H8.5a.5.5 0 0 1 0 1H3.6a.6.6 0 0 1-.6-.6V2.5Z"],{flipInRtl:!0}),hA=J("ArrowUp20Regular","20",["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}),vA=J("ArrowUpload16Regular","16",["M3.5 2a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1h-9Zm4.85 2.15a.5.5 0 0 0-.7 0l-3.5 3.5a.5.5 0 1 0 .7.7L7.5 5.71v7.79a.5.5 0 0 0 1 0V5.7l2.65 2.65a.5.5 0 0 0 .7-.7l-3.5-3.5Z"]),zbe=J("ArrowUpload20Filled","20",["M4.5 2a.75.75 0 0 0 0 1.5H15A.75.75 0 0 0 15 2H4.5Zm6 15.35a.75.75 0 0 1-1.5-.1V7.05l-2.97 2.98-.08.07a.75.75 0 0 1-.98-1.14l4.29-4.28a.73.73 0 0 1 .26-.15l.08-.02.15-.02h.06l.07.01.12.03.09.04.04.02.09.06.07.06 4.24 4.26.07.08c.22.3.2.71-.07.98l-.08.07c-.3.22-.72.2-.98-.07L10.5 7.05V17.35Z"]),Tbe=J("ArrowUpload20Regular","20",["M15 3a.5.5 0 0 0 .09-.99H4a.5.5 0 0 0-.09.98L4 3h11ZM9.5 18a.5.5 0 0 0 .5-.41V5.7l3.64 3.65c.17.18.44.2.64.06l.07-.06a.5.5 0 0 0 .06-.63l-.06-.07-4.5-4.5A.5.5 0 0 0 9.6 4h-.1a.5.5 0 0 0-.4.19L4.64 8.65a.5.5 0 0 0 .64.76l.07-.06L9 5.71V17.5c0 .28.22.5.5.5Z"]),bA=J("BranchFork16Regular","16",["M5 5.95a2.5 2.5 0 1 0-1 0v4.1a2.5 2.5 0 1 0 1 0V9h4.5A2.5 2.5 0 0 0 12 6.5v-.55a2.5 2.5 0 1 0-1 0v.55c0 .83-.67 1.5-1.5 1.5H5V5.95ZM4.5 5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm7 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3ZM6 12.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"]),C1=J("BranchFork20Filled","20",["M9 5a3 3 0 0 1-2.5 2.96V10H12c.83 0 1.5-.67 1.5-1.5v-.54a3 3 0 1 1 1 0v.54A2.5 2.5 0 0 1 12 11H6.5v1.04a3 3 0 1 1-1 0V7.96A3 3 0 1 1 9 5Z"]),Cs=J("BranchFork20Regular","20",["M9 5a3 3 0 1 0-3.5 2.96v4.08a3 3 0 1 0 1 0V11H12a2.5 2.5 0 0 0 2.5-2.5v-.54a3 3 0 1 0-1 0v.54c0 .83-.67 1.5-1.5 1.5H6.5V7.96A3 3 0 0 0 9 5ZM6 7a2 2 0 1 1 0-4 2 2 0 0 1 0 4Zm0 10a2 2 0 1 1 0-4 2 2 0 0 1 0 4ZM16 5a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"]),yA=J("ShieldDismiss20Regular","20",["M7.85 7.15a.5.5 0 1 0-.7.7L9.29 10l-2.14 2.15a.5.5 0 0 0 .7.7L10 10.71l2.15 2.14a.5.5 0 0 0 .7-.7L10.71 10l2.14-2.15a.5.5 0 0 0-.7-.7L10 9.29 7.85 7.15Zm2.43-5.07a.5.5 0 0 0-.56 0 15.05 15.05 0 0 1-6.3 2.43A.5.5 0 0 0 3 5v4.5c0 3.9 2.3 6.73 6.82 8.47a.5.5 0 0 0 .36 0C14.69 16.23 17 13.39 17 9.5V5a.5.5 0 0 0-.43-.5 15.05 15.05 0 0 1-6.3-2.42ZM4 5.43a15.97 15.97 0 0 0 5.6-2.08l.4-.25.4.25A15.97 15.97 0 0 0 16 5.43V9.5c0 3.4-1.97 5.86-6 7.46-4.03-1.6-6-4.07-6-7.46V5.43Z"]),xA=J("ShieldLock20Filled","20",["M12.5 12v-1a2 2 0 1 1 4 0v1h.5a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-5a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h.5Zm1-1v1h2v-1a1 1 0 1 0-2 0Zm1.75 4a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0ZM9.72 2.08a.5.5 0 0 1 .56 0c1.94 1.3 4.03 2.1 6.3 2.43A.5.5 0 0 1 17 5v4.34A3 3 0 0 0 11.5 11v.06A2 2 0 0 0 10 13v4a2 2 0 0 0 .24.94l-.06.03a.5.5 0 0 1-.36 0C5.31 16.23 3 13.39 3 9.5V5a.5.5 0 0 1 .43-.5 15.05 15.05 0 0 0 6.3-2.42Z"]),_be=J("ShieldLock20Regular","20",["M9.72 2.08a.5.5 0 0 1 .56 0c1.94 1.3 4.03 2.1 6.3 2.43A.5.5 0 0 1 17 5v4.34c-.26-.38-.6-.7-1-.94V5.43a15.97 15.97 0 0 1-5.6-2.08L10 3.1l-.4.25A15.97 15.97 0 0 1 4 5.43V9.5c0 3.4 1.97 5.86 6 7.46V17a2 2 0 0 0 .24.94l-.06.03a.5.5 0 0 1-.36 0C5.31 16.23 3 13.39 3 9.5V5a.5.5 0 0 1 .43-.5 15.05 15.05 0 0 0 6.3-2.42ZM12.5 12v-1a2 2 0 1 1 4 0v1h.5a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-5a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h.5Zm1-1v1h2v-1a1 1 0 1 0-2 0Zm1.75 4a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"]),A2=J("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"]),O2=J("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"]),wA=J("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"]),kA=J("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"]),SA=J("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"]),BA=J("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"]),L2=J("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"]),$2=J("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"]),H2=J("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"]),jA=J("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"]),CA=J("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"]),V2=J("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"]),W2=J("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"]),NA=J("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"]),zA=J("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"]),U2=J("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"]),G2=J("PresenceBusy10Filled","10",["M10 5A5 5 0 1 1 0 5a5 5 0 0 1 10 0Z"]),TA=J("PresenceBusy12Filled","12",["M12 6A6 6 0 1 1 0 6a6 6 0 0 1 12 0Z"]),_A=J("PresenceBusy16Filled","16",["M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Z"]),Z2=J("PresenceBusy20Filled","20",["M20 10a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z"]),K2=J("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"]),X2=J("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"]),RA=J("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"]),DA=J("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"]),EA=J("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"]),PA=J("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"]),Y2=J("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"]),J2=J("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"]),Q2=J("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"]),MA=J("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"]),qA=J("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"]),eS=J("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"]),tS=J("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"]),FA=J("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"]),IA=J("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"]),rS=J("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"]),oS=J("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"]),AA=J("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"]),OA=J("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"]),nS=J("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"]),N1=J("TextBulletList20Filled","20",["M3.25 6a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM7 4.75c0-.41.34-.75.75-.75h9.5a.75.75 0 0 1 0 1.5h-9.5A.75.75 0 0 1 7 4.75ZM7.75 9a.75.75 0 0 0 0 1.5h9.5a.75.75 0 0 0 0-1.5h-9.5Zm0 5a.75.75 0 0 0 0 1.5h9.5a.75.75 0 0 0 0-1.5h-9.5ZM4.5 9.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM3.25 16a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z"]),z1=J("TextBulletList20Regular","20",["M3 5.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm3-1c0-.28.22-.5.5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5Zm0 5c0-.28.22-.5.5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5Zm.5 4.5a.5.5 0 0 0 0 1h11a.5.5 0 0 0 0-1h-11Zm-2.5.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-1-4a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"]),Rbe=J("TextBulletListSquare20Filled","20",["M3 5.75A2.75 2.75 0 0 1 5.75 3h8.5A2.75 2.75 0 0 1 17 5.75v8.5A2.75 2.75 0 0 1 14.25 17h-8.5A2.75 2.75 0 0 1 3 14.25v-8.5ZM6.75 8a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm.75 2.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0ZM6.75 14a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM9 7.5c0 .28.22.5.5.5h4a.5.5 0 0 0 0-1h-4a.5.5 0 0 0-.5.5Zm.5 2.5a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1h-4ZM9 13.5c0 .28.22.5.5.5h4a.5.5 0 0 0 0-1h-4a.5.5 0 0 0-.5.5Z"]),Dbe=J("TextBulletListSquare20Regular","20",["M6.75 8a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm.75 2.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM6.75 14a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM9 7.5c0-.28.22-.5.5-.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 1-.5-.5Zm.5 2.5a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1h-4ZM9 13.5c0-.28.22-.5.5-.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 1-.5-.5ZM5.75 3h8.5A2.75 2.75 0 0 1 17 5.75v8.5A2.75 2.75 0 0 1 14.25 17h-8.5A2.75 2.75 0 0 1 3 14.25v-8.5A2.75 2.75 0 0 1 5.75 3ZM4 5.75v8.5c0 .97.78 1.75 1.75 1.75h8.5c.97 0 1.75-.78 1.75-1.75v-8.5C16 4.78 15.22 4 14.25 4h-8.5C4.78 4 4 4.78 4 5.75Z"]),LA=J("TextDensity20Regular","20",["M10.5 2c.28 0 .5.22.5.5v15a.5.5 0 0 1-1 0v-15c0-.28.22-.5.5-.5ZM9 5H2.5a.5.5 0 0 0 0 1H9V5Zm0 3H2.5a.5.5 0 0 0 0 1H9V8Zm0 3H2.5a.5.5 0 0 0 0 1H9v-1Zm0 3H2.5a.5.5 0 0 0 0 1H9v-1Zm7.5 0H12v-1h4.5a.5.5 0 0 0 0-1H12v-1h4.5a1.5 1.5 0 0 1 0 3Zm0-5H12V8h4.5a.5.5 0 0 0 0-1H12V6h4.5a1.5 1.5 0 0 1 0 3Z"]),Ebe=J("TextNumberFormat20Regular","20",["M4.94 3c.21 0 .4.14.47.33l1.77 5a.5.5 0 1 1-.94.34L6 8H3.73l-.26.68a.5.5 0 0 1-.94-.36l1.94-5A.5.5 0 0 1 4.94 3Zm-.82 4h1.53l-.73-2.06L4.12 7ZM8.5 3H10c.17 0 .6 0 1.01.23.22.12.42.3.56.57.15.26.22.58.22.96 0 .45-.12.8-.32 1.08.15.1.3.24.4.42.16.27.25.6.25.98 0 .75-.35 1.23-.8 1.49-.4.24-.85.27-1.07.27H8.5a.5.5 0 0 1-.5-.5v-5c0-.28.22-.5.5-.5ZM10 4H9v1.5h1.02c.12 0 .33-.02.5-.12.12-.08.27-.22.27-.62 0-.25-.04-.4-.1-.48a.44.44 0 0 0-.17-.18c-.16-.09-.36-.1-.52-.1ZM9 6.5V8h1.25c.14 0 .38-.03.57-.14.15-.08.3-.23.3-.62a1.11 1.11 0 0 0-.08-.41.47.47 0 0 0-.23-.23c-.2-.1-.44-.1-.62-.1H9Zm8.4-1.97c-.24-.69-.6-1.1-1.05-1.33-.4-.2-.83-.2-1.1-.2h-.03c-.55 0-1 .19-1.33.49-.32.29-.52.65-.64.99A4.06 4.06 0 0 0 13 5.77v.06c0 .38 0 1.08.25 1.72.13.33.33.67.66.93.32.27.74.45 1.25.5.42.05 1.67.02 2.23-1.24a.5.5 0 1 0-.9-.4c-.3.64-.94.68-1.22.65a1.34 1.34 0 0 1-.73-.28 1.26 1.26 0 0 1-.36-.52A3.89 3.89 0 0 1 14 5.8V5.8a2.15 2.15 0 0 1 .02-.28c.03-.2.07-.44.16-.68.1-.25.22-.45.38-.6a.94.94 0 0 1 .66-.23c.3 0 .5 0 .7.1.15.08.36.25.55.77a.5.5 0 0 0 .94-.34Zm-3.2 7.67a.74.74 0 0 0-.22.35.5.5 0 0 1-.96-.28c.07-.23.22-.55.52-.82.3-.27.73-.45 1.3-.45 1.17 0 1.85.85 1.85 1.64a1.9 1.9 0 0 1-.52 1.33 1.53 1.53 0 0 1 .25.27c.18.24.27.55.27.9 0 .63-.21 1.12-.6 1.44-.37.32-.83.42-1.24.42-.4 0-.78-.06-1.11-.28a1.75 1.75 0 0 1-.72-.97.5.5 0 0 1 .95-.32c.05.14.1.23.15.3l.01.02a.7.7 0 0 0 .04.04l.01.02.02.01a.52.52 0 0 0 .2.12c.11.04.26.06.45.06.26 0 .46-.07.6-.18.12-.1.24-.29.24-.68a.53.53 0 0 0-.08-.32.58.58 0 0 0-.24-.18c-.23-.11-.53-.14-.75-.14a.5.5 0 1 1 0-1c.58 0 .8-.18.91-.3a.9.9 0 0 0 .16-.56c0-.22-.22-.64-.84-.64-.35 0-.54.1-.65.2Zm-5.2.66c0-.44.37-.86.84-.86.33 0 .6.16.75.37.12.19.18.5-.07.92-.13.21-.3.4-.55.58-.12.1-.24.19-.38.28l-.06.04-.36.26C8.61 14.88 8 15.46 8 16.5c0 .28.22.5.5.5h2.69a.5.5 0 1 0 0-1H9.1c.13-.28.36-.5.68-.75l.32-.23h.02l.06-.05.42-.31c.29-.23.58-.5.79-.86.41-.7.4-1.43.05-1.98A1.87 1.87 0 0 0 8 12.86a.5.5 0 1 0 1 0Zm-4.58.87c.2-.13.4-.3.58-.47v3.24a.5.5 0 1 0 1 0v-5a.5.5 0 0 0-.98-.1 2.8 2.8 0 0 1-1.16 1.5.5.5 0 1 0 .56.83Z"]),T1=J("TextSortAscending20Filled","20",["M6.7 2.5a.75.75 0 0 0-1.4 0L3.03 9a.75.75 0 0 0 1.42.5l.34-1h2.4l.34 1A.75.75 0 0 0 8.96 9L6.7 2.5ZM6 5.04 6.68 7H5.32L6 5.04ZM4 11a.75.75 0 0 0 0 1.5h2.53l-3.14 4.3A.75.75 0 0 0 4 18h4a.75.75 0 0 0 0-1.5H5.47l3.14-4.3A.75.75 0 0 0 8 11H4Zm10.25-9c.41 0 .75.34.75.75v12.57l1.45-1.58a.75.75 0 0 1 1.1 1.02l-2.75 3a.75.75 0 0 1-1.1 0l-2.75-3a.75.75 0 0 1 1.1-1.02l1.45 1.58V2.75c0-.41.34-.75.75-.75Z"]),_1=J("TextSortAscending20Regular","20",["M6.47 2.32a.5.5 0 0 0-.94 0l-2.75 7a.5.5 0 0 0 .94.36L4.38 8h3.24l.66 1.68a.5.5 0 0 0 .94-.36l-2.75-7ZM6 3.87 7.23 7H4.77L6 3.87ZM4 11a.5.5 0 0 0 0 1h3.07l-3.49 5.22A.5.5 0 0 0 4 18h4a.5.5 0 0 0 0-1H4.93l3.49-5.22A.5.5 0 0 0 8 11H4Zm10.5-9c.28 0 .5.22.5.5v13.8l2.15-2.15a.5.5 0 0 1 .7.7l-3 3a.5.5 0 0 1-.7 0l-3-3a.5.5 0 0 1 .7-.7L14 16.29V2.5c0-.28.22-.5.5-.5Z"]),$A=J("TextSortDescending20Regular","20",["M4 2a.5.5 0 0 0 0 1h3.07L3.58 8.22A.5.5 0 0 0 4 9h4a.5.5 0 1 0 0-1H4.93l3.49-5.22A.5.5 0 0 0 8 2H4Zm2.47 8.32a.5.5 0 0 0-.94 0l-2.75 7a.5.5 0 1 0 .94.36L4.38 16h3.24l.66 1.68a.5.5 0 0 0 .94-.36l-2.75-7ZM6 11.87 7.23 15H4.77L6 11.87ZM14.5 2c.28 0 .5.22.5.5v13.8l2.15-2.15a.5.5 0 0 1 .7.7l-3 3a.5.5 0 0 1-.7 0l-3-3a.5.5 0 0 1 .7-.7L14 16.29V2.5c0-.28.22-.5.5-.5Z"]),Ip=J("ChartMultiple20Filled","20",["M17 8.54c0 .26-.22.46-.48.46H10.5a.5.5 0 0 1-.5-.5V2.48c0-.26.2-.48.46-.48h.04A6.5 6.5 0 0 1 17 8.5v.04ZM9 4.5c0-.28-.22-.5-.5-.48A6 6 0 0 0 9 16v-1a2 2 0 0 1 3-1.73V13c0-1.1.9-2 2-2h.92a6 6 0 0 0 .06-.5.47.47 0 0 0-.48-.5H10a1 1 0 0 1-1-1V4.5Zm8 5.5a1 1 0 0 0-1 1v7a1 1 0 1 0 2 0v-7a1 1 0 0 0-1-1Zm-3 2a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-5a1 1 0 0 0-1-1Zm-4 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0v-3Z"]),HA=J("ChartMultiple20Regular","20",["M16.52 9c.26 0 .48-.2.48-.46V8.5A6.5 6.5 0 0 0 10.5 2h-.04a.47.47 0 0 0-.46.48V8.5c0 .28.22.5.5.5h6.02ZM11 3.02A5.5 5.5 0 0 1 15.98 8H11V3.02ZM8 9V5.1A5 5 0 0 0 9 15v1a6 6 0 0 1-.5-11.98c.28-.02.5.2.5.48V9a1 1 0 0 0 1 1h4.5c.28 0 .5.22.48.5a6 6 0 0 1-.06.5H10a2 2 0 0 1-2-2Zm9 1a1 1 0 0 0-1 1v7a1 1 0 1 0 2 0v-7a1 1 0 0 0-1-1Zm-3 2a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-5a1 1 0 0 0-1-1Zm-4 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0v-3Z"]),CC=J("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"]),Cd=J("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"]),VA=J("Checkmark20Filled","20",["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"]),WA=J("Checkmark20Regular","20",["M3.37 10.17a.5.5 0 0 0-.74.66l4 4.5c.19.22.52.23.72.02l10.5-10.5a.5.5 0 0 0-.7-.7L7.02 14.27l-3.65-4.1Z"]),UA=J("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"]),GA=J("CheckmarkCircle16Filled","16",["M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8Zm9.85-1.15a.5.5 0 0 0-.7-.7l-2.9 2.9-1.4-1.4a.5.5 0 1 0-.7.7L6.9 10.1c.2.2.5.2.7 0l3.25-3.25Z"]),ZA=J("CheckmarkCircle20Filled","20",["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"]),ug=J("ChevronDown16Regular","16",["M3.15 5.65c.2-.2.5-.2.7 0L8 9.79l4.15-4.14a.5.5 0 0 1 .7.7l-4.5 4.5a.5.5 0 0 1-.7 0l-4.5-4.5a.5.5 0 0 1 0-.7Z"]),NC=J("ChevronDown20Regular","20",["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"]),Pbe=J("ChevronLeft20Regular","20",["M12.35 15.85a.5.5 0 0 1-.7 0L6.16 10.4a.55.55 0 0 1 0-.78l5.49-5.46a.5.5 0 1 1 .7.7L7.2 10l5.16 5.15c.2.2.2.5 0 .7Z"]),zC=J("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"]),Mbe=J("ChevronRight20Filled","20",["M7.73 4.2a.75.75 0 0 1 1.06.03l5 5.25c.28.3.28.75 0 1.04l-5 5.25a.75.75 0 1 1-1.08-1.04L12.2 10l-4.5-4.73a.75.75 0 0 1 .02-1.06Z"]),Ap=J("ChevronRight20Regular","20",["M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7Z"]),KA=J("ChevronUp16Regular","16",["M3.15 10.35c.2.2.5.2.7 0L8 6.21l4.15 4.14a.5.5 0 0 0 .7-.7l-4.5-4.5a.5.5 0 0 0-.7 0l-4.5 4.5a.5.5 0 0 0 0 .7Z"]),Nd=J("ReOrderDotsHorizontal20Regular","20",["M15 7a1 1 0 1 0 2 0 1 1 0 0 0-2 0ZM9 7a1 1 0 1 0 2 0 1 1 0 0 0-2 0ZM4 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm11 5a1 1 0 1 0 2 0 1 1 0 0 0-2 0Zm-5 1a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm-7-1a1 1 0 1 0 2 0 1 1 0 0 0-2 0Z"]),XA=J("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"]),YA=J("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"]),qbe=J("ErrorCircle16Filled","16",["M8 2a6 6 0 1 1 0 12A6 6 0 0 1 8 2Zm0 8a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0-5.5a.5.5 0 0 0-.5.41V8.59a.5.5 0 0 0 1 0V4.91A.5.5 0 0 0 8 4.5Z"]),JA=J("ErrorCircle20Filled","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 10.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM10 6a.5.5 0 0 0-.5.41v4.68a.5.5 0 0 0 1 0V6.41A.5.5 0 0 0 10 6Z"]),QA=J("ErrorCircle20Regular","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm0 9.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5ZM10 6a.5.5 0 0 1 .5.41V11a.5.5 0 0 1-1 .09V6.5c0-.28.22-.5.5-.5Z"]),eO=J("Attach20Regular","20",["m4.83 10.48 5.65-5.65a3 3 0 0 1 4.25 4.24L8 15.8a1.5 1.5 0 0 1-2.12-2.12l6-6.01a.5.5 0 1 0-.7-.71l-6 6.01a2.5 2.5 0 0 0 3.53 3.54l6.71-6.72a4 4 0 1 0-5.65-5.66L4.12 9.78a.5.5 0 0 0 .7.7Z"]),tO=J("ClipboardPaste20Regular","20",["M4.5 4h1.59c.2.58.76 1 1.41 1h3c.65 0 1.2-.42 1.41-1h1.59c.28 0 .5.22.5.5v1a.5.5 0 0 0 1 0v-1c0-.83-.67-1.5-1.5-1.5h-1.59c-.2-.58-.76-1-1.41-1h-3c-.65 0-1.2.42-1.41 1H4.5C3.67 3 3 3.67 3 4.5v12c0 .83.67 1.5 1.5 1.5h3a.5.5 0 0 0 0-1h-3a.5.5 0 0 1-.5-.5v-12c0-.28.22-.5.5-.5Zm3 0a.5.5 0 0 1 0-1h3a.5.5 0 0 1 0 1h-3Zm3 3C9.67 7 9 7.67 9 8.5v8c0 .83.67 1.5 1.5 1.5h5c.83 0 1.5-.67 1.5-1.5v-8c0-.83-.67-1.5-1.5-1.5h-5ZM10 8.5c0-.28.22-.5.5-.5h5c.28 0 .5.22.5.5v8a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-8Z"]),Fbe=J("Delete20Filled","20",["M8.5 4h3a1.5 1.5 0 0 0-3 0Zm-1 0a2.5 2.5 0 0 1 5 0h5a.5.5 0 0 1 0 1h-1.05l-1.2 10.34A3 3 0 0 1 12.27 18H7.73a3 3 0 0 1-2.98-2.66L3.55 5H2.5a.5.5 0 0 1 0-1h5ZM9 8a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V8Zm2.5-.5a.5.5 0 0 0-.5.5v6a.5.5 0 0 0 1 0V8a.5.5 0 0 0-.5-.5Z"]),mn=J("Delete20Regular","20",["M8.5 4h3a1.5 1.5 0 0 0-3 0Zm-1 0a2.5 2.5 0 0 1 5 0h5a.5.5 0 0 1 0 1h-1.05l-1.2 10.34A3 3 0 0 1 12.27 18H7.73a3 3 0 0 1-2.98-2.66L3.55 5H2.5a.5.5 0 0 1 0-1h5ZM5.74 15.23A2 2 0 0 0 7.73 17h4.54a2 2 0 0 0 1.99-1.77L15.44 5H4.56l1.18 10.23ZM8.5 7.5c.28 0 .5.22.5.5v6a.5.5 0 0 1-1 0V8c0-.28.22-.5.5-.5ZM12 8a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V8Z"]),rO=J("DeleteLines20Regular","20",["M11.5 4a1.5 1.5 0 0 0-3 0h3Zm-4 0a2.5 2.5 0 0 1 5 0h5a.5.5 0 0 1 0 1h-1.05l-.81 7h-1l.8-7H4.56l1.18 10.23A2 2 0 0 0 7.73 17h2.36a1.5 1.5 0 0 0 0 1H7.73a3 3 0 0 1-2.98-2.66L3.55 5H2.5a.5.5 0 0 1 0-1h5Zm4 9a.5.5 0 0 0 0 1h6a.5.5 0 0 0 0-1h-6Zm0 2a.5.5 0 0 0 0 1h6a.5.5 0 0 0 0-1h-6Zm0 2a.5.5 0 0 0 0 1h6a.5.5 0 0 0 0-1h-6Z"]),nm=J("Filter20Filled","20",["M12.25 13.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5h4.5Zm2-4.25a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5h8.5Zm2-4.25a.75.75 0 0 1 0 1.5H3.75a.75.75 0 0 1 0-1.5h12.5Z"]),Ns=J("Filter20Regular","20",["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"]),oO=J("FilterDismiss20Regular","20",["M12.5 15a.5.5 0 0 1 .09 1H7.5a.5.5 0 0 1-.09-1h5.09Zm2-4a.5.5 0 0 1 .09 1H5.5a.5.5 0 0 1-.09-1h9.09Zm0-10a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9ZM9.2 7c.1.35.24.68.4 1H3.5a.5.5 0 0 1-.09-1H9.2Zm7.15-3.35a.5.5 0 0 0-.7 0L14.5 4.79l-1.15-1.14a.5.5 0 1 0-.7.7l1.14 1.15-1.14 1.15a.5.5 0 1 0 .7.7l1.15-1.14 1.15 1.14a.5.5 0 1 0 .7-.7L15.21 5.5l1.14-1.15a.5.5 0 0 0 0-.7Z"]),Ibe=J("BoxMultiple20Regular","20",["M13.58 2.38a3 3 0 0 0-2.16 0L7.96 3.71A1.5 1.5 0 0 0 7 5.11v1.1a4 4 0 0 1 1 0v-1.1c0-.2.13-.4.32-.47l3.46-1.33a2 2 0 0 1 1.44 0l3.46 1.33c.2.08.32.26.32.47v7.78c0 .2-.13.4-.32.47L14 14.39v.5c0 .2-.03.4-.07.6l3.1-1.2c.59-.22.97-.78.97-1.4V5.11a1.5 1.5 0 0 0-.96-1.4l-3.46-1.33Zm2.51 2.92a.5.5 0 0 0-.64-.3l-2.77 1.07a.5.5 0 0 1-.36 0L9.55 5.01a.5.5 0 1 0-.35.93l2.76 1.07c.35.13.73.13 1.08 0l2.76-1.07a.5.5 0 0 0 .3-.64Zm-5 5a.5.5 0 0 0-.64-.3L7.5 11.15l-2.95-1.13a.5.5 0 0 0-.35.93L7 12.02v2.49a.5.5 0 1 0 1 0v-2.49l2.8-1.08a.5.5 0 0 0 .3-.64ZM8.58 7.38a3 3 0 0 0-2.16 0L2.96 8.71a1.5 1.5 0 0 0-.96 1.4v4.78c0 .62.38 1.18.96 1.4l3.46 1.33a3 3 0 0 0 2.16 0l3.46-1.33c.58-.22.96-.78.96-1.4v-4.78a1.5 1.5 0 0 0-.96-1.4L8.58 7.38Zm-1.8.93a2 2 0 0 1 1.44 0l3.46 1.33c.2.08.32.26.32.47v4.78c0 .2-.13.4-.32.47l-3.46 1.33a2 2 0 0 1-1.44 0l-3.46-1.33a.5.5 0 0 1-.32-.47v-4.78c0-.2.13-.4.32-.47l3.46-1.33Z"]),nO=J("DiamondDismiss12Filled","12",["M4.59 1.09a2 2 0 0 1 2.82 0l3.5 3.5a2 2 0 0 1 0 2.82l-3.5 3.5a2 2 0 0 1-2.82 0l-3.5-3.5a2 2 0 0 1 0-2.83l3.5-3.5Zm3.26 3.06a.5.5 0 0 0-.7 0L6 5.29 4.85 4.15a.5.5 0 0 0-.7.7L5.29 6 4.15 7.15a.5.5 0 0 0 .7.7L6 6.71l1.15 1.14a.5.5 0 1 0 .7-.7L6.71 6l1.14-1.15a.5.5 0 0 0 0-.7Z"]),aO=J("Dismiss12Regular","12",["m2.09 2.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L6 5.29l3.15-3.14a.5.5 0 1 1 .7.7L6.71 6l3.14 3.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L6 6.71 2.85 9.85a.5.5 0 0 1-.7-.7L5.29 6 2.15 2.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),hy=J("Dismiss16Regular","16",["m2.59 2.72.06-.07a.5.5 0 0 1 .63-.06l.07.06L8 7.29l4.65-4.64a.5.5 0 0 1 .7.7L8.71 8l4.64 4.65c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L8 8.71l-4.65 4.64a.5.5 0 0 1-.7-.7L7.29 8 2.65 3.35a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),Ii=J("Dismiss20Regular","20",["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"]),iO=J("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"]),sO=Y({root:{mc9l5x:"fjseox"},visible:{mc9l5x:"f1w7gpdv"}},{d:[".fjseox{display:none;}",".f1w7gpdv{display:inline;}"]}),vy=(e,t)=>{const r=o=>{const{className:n,filled:a,...i}=o,l=sO();return m.createElement(m.Fragment,null,m.createElement(e,Object.assign({},i,{className:F(l.root,a&&l.visible,_I,n)})),m.createElement(t,Object.assign({},i,{className:F(l.root,!a&&l.visible,RI,n)})))};return r.displayName="CompoundIcon",r},lO={durationUltraFast:50,durationFaster:100,durationFast:150,durationNormal:200,durationGentle:250,durationSlow:300,durationSlower:400,durationUltraSlow:500},cO={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)"},it={...lO,...cO};function uO(e){if(e.playState==="running"){var t;if(e.overallProgress!==void 0){var r;const l=(r=e.overallProgress)!==null&&r!==void 0?r:0;return l>0&&l<1}var o;const a=Number((o=e.currentTime)!==null&&o!==void 0?o:0);var n;const i=Number((n=(t=e.effect)===null||t===void 0?void 0:t.getTiming().duration)!==null&&n!==void 0?n:0);return a>0&&a<i}return!1}const dO={fill:"forwards"},fO={duration:1};function pO(e){return{set playbackRate(t){e.forEach(r=>{r.playbackRate=t})},setMotionEndCallbacks(t,r){const o=e.map(n=>new Promise((a,i)=>{n.onfinish=()=>a(),n.oncancel=()=>i()}));Promise.all(o).then(()=>{t()}).catch(()=>{r()})},isRunning(){return e.some(t=>uO(t))},dispose:()=>{e.length=0},cancel:()=>{e.forEach(t=>{t.cancel()})},pause:()=>{e.forEach(t=>{t.pause()})},play:()=>{e.forEach(t=>{t.play()})},finish:()=>{e.forEach(t=>{t.finish()})},reverse:()=>{e.forEach(t=>{t.reverse()})}}}function mO(){var e;const t=typeof window<"u"&&typeof((e=window.Animation)===null||e===void 0?void 0:e.prototype.persist)=="function";return m.useCallback((r,o,n)=>{const a=Array.isArray(o)?o:[o],{isReducedMotion:i}=n,l=a.map(d=>{const{keyframes:f,reducedMotion:p=fO,...h}=d,{keyframes:v=f,...y}=p,x=i?v:f,b={...dO,...h,...i&&y};try{const S=r.animate(x,b);if(t)S?.persist();else{const N=x[x.length-1];var k;Object.assign((k=r.style)!==null&&k!==void 0?k:{},N)}return S}catch{return null}}).filter(d=>!!d);return pO(l)},[t])}function TC(){"use no memo";return mO()}function _C(e){const t=m.useRef(void 0);return m.useImperativeHandle(e,()=>({setPlayState:r=>{if(r==="running"){var o;(o=t.current)===null||o===void 0||o.play()}if(r==="paused"){var n;(n=t.current)===null||n===void 0||n.pause()}},setPlaybackRate:r=>{t.current&&(t.current.playbackRate=r)}})),t}const gO="screen and (prefers-reduced-motion: reduce)";function RC(){const{targetDocument:e}=Ve();var t;const r=(t=e?.defaultView)!==null&&t!==void 0?t:null,o=m.useRef(!1),n=m.useCallback(()=>o.current,[]);return $t(()=>{if(r===null||typeof r.matchMedia!="function")return;const a=r.matchMedia(gO);a.matches&&(o.current=!0);const i=l=>{o.current=l.matches};return a.addEventListener("change",i),()=>{a.removeEventListener("change",i)}},[r]),n}const hO=["@fluentui/react-motion: Invalid child element.",`
10
+ `,"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 DC(e,t=!0){const r=m.useRef(null);m.useEffect(()=>{},[t]);try{const o=m.Children.only(e);if(m.isValidElement(o))return[m.cloneElement(o,{ref:Le(r,ec(o))}),r]}catch{}throw new Error(hO)}const EC=m.createContext(void 0);EC.Provider;const PC=()=>{var e;return(e=m.useContext(EC))!==null&&e!==void 0?e:"default"},vO=Symbol("MOTION_DEFINITION");function aS(e){return Object.assign(r=>{"use no memo";const{children:o,imperativeRef:n,onMotionFinish:a,onMotionStart:i,onMotionCancel:l,...d}=r,f=d,[p,h]=DC(o),v=_C(n),y=PC()==="skip",x=m.useRef({skipMotions:y,params:f}),b=TC(),k=RC(),S=de(()=>{i?.(null)}),N=de(()=>{a?.(null)}),B=de(()=>{l?.(null)});return $t(()=>{x.current={skipMotions:y,params:f}}),$t(()=>{const C=h.current;if(C){const z=typeof e=="function"?e({element:C,...x.current.params}):e;S();const R=b(C,z,{isReducedMotion:k()});return v.current=R,R.setMotionEndCallbacks(N,B),x.current.skipMotions&&R.finish(),()=>{R.cancel()}}},[b,h,v,k,N,S,B]),p},{[vO]:typeof e=="function"?e:()=>e})}const MC=m.createContext(void 0);MC.Provider;function bO(e=!1,t=!1){const r=m.useRef(t?e:!0),o=p4(),n=m.useCallback(a=>{r.current!==a&&(r.current=a,o())},[o]);return m.useEffect(()=>{e&&(r.current=e)}),[e||r.current,n]}const qC=Symbol("PRESENCE_MOTION_DEFINITION"),yO=Symbol.for("interruptablePresence");function Za(e){return Object.assign(t=>{"use no memo";const o={...m.useContext(MC),...t},n=PC()==="skip",{appear:a,children:i,imperativeRef:l,onExit:d,onMotionFinish:f,onMotionStart:p,onMotionCancel:h,visible:v,unmountOnExit:y,...x}=o,b=x,[k,S]=bO(v,y),[N,B]=DC(i,k),C=_C(l),z=m.useRef({appear:a,params:b,skipMotions:n}),R=TC(),E=Jb(),D=RC(),I=de(H=>{p?.(null,{direction:H})}),M=de(H=>{f?.(null,{direction:H}),H==="exit"&&y&&(S(!1),d?.())}),O=de(H=>{h?.(null,{direction:H})});return $t(()=>{z.current={appear:a,params:b,skipMotions:n}}),$t(()=>{const H=B.current;if(!H)return;let $;function Z(){$&&(A&&$.isRunning()||($.cancel(),C.current=void 0))}const q=typeof e=="function"?e({element:H,...z.current.params}):e,A=q[yO];if(A&&($=C.current,$&&$.isRunning()))return $.reverse(),Z;const X=v?q.enter:q.exit,V=v?"enter":"exit",oe=!z.current.appear&&E,ee=z.current.skipMotions;return oe||I(V),$=R(H,X,{isReducedMotion:D()}),oe?($.finish(),Z):(C.current=$,$.setMotionEndCallbacks(()=>M(V),()=>O(V)),ee&&$.finish(),Z)},[R,B,C,D,M,I,O,v]),m.useEffect(()=>{if(y&&!k){var H;(H=C.current)===null||H===void 0||H.dispose()}},[C,y,k]),k?N:null},{[qC]:typeof e=="function"?e:()=>e},{In:aS(typeof e=="function"?(...t)=>e(...t).enter:e.enter),Out:aS(typeof e=="function"?(...t)=>e(...t).exit:e.exit)})}function xO(e,t){return o=>e({...t,...o})}function Vi(e,t){const r=e[qC],o=xO(r,t);return Za(o)}const by=m.createContext(void 0);function dg(){return m.useContext(by)}const fg=m.forwardRef((e,t)=>m.createElement(by.Provider,{value:t},e.children));fg.displayName="MotionRefForwarder";const FC=e=>m.createElement(by.Provider,{value:void 0},e.children);FC.displayName="MotionRefForwarderReset";function zd(e,t){const{as:r,children:o,...n}=e??{};if(e===null){const i=!t.defaultProps.visible&&t.defaultProps.unmountOnExit,l=(d,f)=>i?null:m.createElement(m.Fragment,null,f.children);return{[Hu]:l,[Fl]:t.elementType}}const a={...t.defaultProps,...n,[Fl]:t.elementType};return typeof o=="function"&&(a[Hu]=o),a}const wO=(e,t)=>{const{inline:r=!1,size:o="medium",...n}=e,a=kO(n,t),{dir:i}=Ve();let l;if(a.expandIconPosition==="end"?l=a.open?-90:90:l=a.open?90:i!=="rtl"?0:180,a.expandIcon){var d,f;(f=(d=a.expandIcon).children)!==null&&f!==void 0||(d.children=m.createElement(py,{style:{transform:`rotate(${l}deg)`,transition:`transform ${it.durationNormal}ms ease-out`}}))}return{...a,inline:r,size:o}},kO=(e,t)=>{const{icon:r,button:o,expandIcon:n,expandIconPosition:a="start",...i}=e,{value:l,disabled:d,open:f}=nC(),p=Uu(y=>y.requestToggle),h=Uu(y=>!y.collapsible&&y.openItems.length===1&&f),v=me(o,{elementType:"button",defaultProps:{disabled:d,disabledFocusable:h,"aria-expanded":f,type:"button"}});return v.onClick=de(y=>{if(Kb(o)){var x;(x=o.onClick)===null||x===void 0||x.call(o,y)}y.defaultPrevented||p({value:l,event:y})}),{disabled:d,open:f,expandIconPosition:a,components:{root:"div",button:"button",expandIcon:"span",icon:"div"},root:me({ref:t,...i},{elementType:"div"}),icon:ke(r,{elementType:"div"}),expandIcon:ke(n,{renderByDefault:!0,defaultProps:{"aria-hidden":!0},elementType:"span"}),button:La(v.as,v)}},SO=m.createContext(void 0),{Provider:BO}=SO,jO=(e,t)=>G(BO,{value:t.accordionHeader,children:G(e.root,{children:Ie(e.button,{children:[e.expandIconPosition==="start"&&e.expandIcon&&G(e.expandIcon,{}),e.icon&&G(e.icon,{}),e.root.children,e.expandIconPosition==="end"&&e.expandIcon&&G(e.expandIcon,{})]})})}),op={root:"fui-AccordionHeader",button:"fui-AccordionHeader__button",expandIcon:"fui-AccordionHeader__expandIcon",icon:"fui-AccordionHeader__icon"},CO=Y({resetButton:{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",Bv0vk6g:"f37px4s",fsow6f:"fgusgyc"},focusIndicator:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bqhya38:"f1j6vpng",Bwxa6fj:["f1pniga2","f1ffjurs"],Bdhvstf:"f987i1v",B7zbvrb:["f1ffjurs","f1pniga2"],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:"ffwy5si",Dah5zi:0,B1tsrr9:0,qqdqy8:0,Bkh64rk:0,e3fwne:"f3znvyf",J0r882:"f57olzd",Bule8hv:["f4stah7","fs1por5"],Bjwuhne:"f480a47",Ghsupd:["fs1por5","f4stah7"]},root:{sj55zd:"f19n0e5",De3pzq:"f1c21dwh",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5"},rootDisabled:{Bcmaq0h:"fwrgwhw",sj55zd:"f1s2aq7o"},rootInline:{mc9l5x:"f14t3ns0"},button:{qhf8xq:"f10pi13n",a9b677:"fly5x3f",B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f1rmphuq","f26yw9j"],sshi5w:"f5pgtk9",mc9l5x:"f22iagw",Bt984gj:"f122n59",Bceei9c:"f1k6fduh",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B7ck84d:"f1ewtqcl"},buttonSmall:{sshi5w:"f1nxs5xn",Be2twd7:"fy9rknc"},buttonLarge:{Bg96gwp:"faaz57k",Be2twd7:"fod5ikn"},buttonExtraLarge:{Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"},buttonInline:{mc9l5x:"ftuwxu6"},buttonExpandIconEndNoIcon:{uwmqm3:["f1uw59to","fw5db7e"]},buttonExpandIconEnd:{z189sj:["f11gcy0p","f1ng84yb"]},buttonDisabled:{Bceei9c:"fdrzuqr"},expandIcon:{Bqenvij:"f1l02sjl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"},expandIconStart:{z189sj:["f1vdfbxk","f1f5gg8d"]},expandIconEnd:{Bh6795r:"fqerorx",Bnnss6s:"f1neuvcm",xawz:"flqd7gy",mc9l5x:"f22iagw",Brf1p80:"f9c4gz4",uwmqm3:["f1f5gg8d","f1vdfbxk"]},icon:{Bqenvij:"f1l02sjl",mc9l5x:"f22iagw",Bt984gj:"f122n59",z189sj:["f1vdfbxk","f1f5gg8d"],Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"}},{d:[".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}],".f37px4s{-webkit-appearance:button;}",".fgusgyc{text-align:unset;}",".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;}",[".ffwy5si[data-fui-focus-visible]::after{border:2px solid var(--colorStrokeFocus2);}",{p:-2}],[".f3znvyf[data-fui-focus-visible]::after{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f57olzd[data-fui-focus-visible]::after{top:calc(2px * -1);}",".f4stah7[data-fui-focus-visible]::after{right:calc(2px * -1);}",".fs1por5[data-fui-focus-visible]::after{left:calc(2px * -1);}",".f480a47[data-fui-focus-visible]::after{bottom:calc(2px * -1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".f1s184ao{margin:0;}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fwrgwhw{background-image:none;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f14t3ns0{display:inline-block;}",".f10pi13n{position:relative;}",".fly5x3f{width:100%;}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",[".f1rmphuq{padding:0 var(--spacingHorizontalM) 0 var(--spacingHorizontalMNudge);}",{p:-1}],[".f26yw9j{padding:0 var(--spacingHorizontalMNudge) 0 var(--spacingHorizontalM);}",{p:-1}],".f5pgtk9{min-height:44px;}",".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f1k6fduh{cursor:pointer;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1ewtqcl{box-sizing:border-box;}",".f1nxs5xn{min-height:32px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".ftuwxu6{display:inline-flex;}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".fdrzuqr{cursor:not-allowed;}",".f1l02sjl{height:100%;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fqerorx{flex-grow:1;}",".f1neuvcm{flex-shrink:1;}",".flqd7gy{flex-basis:0%;}",".f9c4gz4{justify-content:flex-end;}"],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],m:[["@media (forced-colors: active){.f1j6vpng[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ffjurs[data-fui-focus-visible]::after{border-left-color:Highlight;}.f1pniga2[data-fui-focus-visible]::after{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f987i1v[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}]]}),NO=e=>{"use no memo";const t=CO();return e.root.className=F(op.root,t.root,e.inline&&t.rootInline,e.disabled&&t.rootDisabled,e.root.className),e.button.className=F(op.button,t.resetButton,t.button,t.focusIndicator,e.expandIconPosition==="end"&&!e.icon&&t.buttonExpandIconEndNoIcon,e.expandIconPosition==="end"&&t.buttonExpandIconEnd,e.inline&&t.buttonInline,e.size==="small"&&t.buttonSmall,e.size==="large"&&t.buttonLarge,e.size==="extra-large"&&t.buttonExtraLarge,e.disabled&&t.buttonDisabled,e.button.className),e.expandIcon&&(e.expandIcon.className=F(op.expandIcon,t.expandIcon,e.expandIconPosition==="start"&&t.expandIconStart,e.expandIconPosition==="end"&&t.expandIconEnd,e.expandIcon.className)),e.icon&&(e.icon.className=F(op.icon,t.icon,e.icon.className)),e};function zO(e){const{disabled:t,expandIconPosition:r,open:o,size:n}=e;return{accordionHeader:m.useMemo(()=>({disabled:t,expandIconPosition:r,open:o,size:n}),[t,r,o,n])}}const am=m.forwardRef((e,t)=>{const r=wO(e,t),o=zO(r);return NO(r),xe("useAccordionHeaderStyles_unstable")(r),jO(r,o)});am.displayName="AccordionHeader";const IC=(e,t)=>{const r=e==="horizontal"?"maxWidth":"maxHeight",o=e==="horizontal"?"overflowX":"overflowY",a=`${e==="horizontal"?t.scrollWidth:t.scrollHeight}px`;return{sizeName:r,overflowName:o,toSize:a}},TO=({orientation:e,duration:t,easing:r,element:o,outSize:n="0",delay:a=0})=>{const{sizeName:i,overflowName:l,toSize:d}=IC(e,o);return{keyframes:[{[i]:n,[l]:"hidden"},{[i]:d,offset:.9999,[l]:"hidden"},{[i]:"unset",[l]:"unset"}],duration:t,easing:r,delay:a,fill:"both"}},_O=({orientation:e,duration:t,easing:r,element:o,delay:n=0,outSize:a="0"})=>{const{sizeName:i,overflowName:l,toSize:d}=IC(e,o);return{keyframes:[{[i]:d,[l]:"hidden"},{[i]:a,[l]:"hidden"}],duration:t,easing:r,delay:n,fill:"both"}},RO=e=>e==="horizontal"?{paddingStart:"paddingInlineStart",paddingEnd:"paddingInlineEnd",marginStart:"marginInlineStart",marginEnd:"marginInlineEnd"}:{paddingStart:"paddingBlockStart",paddingEnd:"paddingBlockEnd",marginStart:"marginBlockStart",marginEnd:"marginBlockEnd"},iS=({direction:e,orientation:t,duration:r,easing:o,delay:n=0})=>{const{paddingStart:a,paddingEnd:i,marginStart:l,marginEnd:d}=RO(t),f=e==="enter"?0:1;return{keyframes:[{[a]:"0",[i]:"0",[l]:"0",[d]:"0",offset:f}],duration:r,easing:o,delay:n,fill:"both"}},ua=({direction:e,duration:t,easing:r=it.curveLinear,delay:o=0,outOpacity:n=0,inOpacity:a=1})=>{const i=[{opacity:n},{opacity:a}];return e==="exit"&&i.reverse(),{keyframes:i,duration:t,easing:r,delay:o,fill:"both"}},DO=({element:e,duration:t=it.durationNormal,exitDuration:r=t,sizeDuration:o=t,opacityDuration:n=o,exitSizeDuration:a=r,exitOpacityDuration:i=a,easing:l=it.curveEasyEaseMax,delay:d=0,exitEasing:f=l,exitDelay:p=d,staggerDelay:h=0,exitStaggerDelay:v=h,animateOpacity:y=!0,orientation:x="vertical",outSize:b="0px"})=>{const k=[TO({orientation:x,duration:o,easing:l,element:e,outSize:b,delay:d}),iS({direction:"enter",orientation:x,duration:o,easing:l,delay:d})];y&&k.push(ua({direction:"enter",duration:n,easing:l,delay:d+h}));const S=[];return y&&S.push(ua({direction:"exit",duration:i,easing:f,delay:p})),S.push(_O({orientation:x,duration:a,easing:f,element:e,delay:p+v,outSize:b}),iS({direction:"exit",orientation:x,duration:a,easing:f,delay:p+v})),{enter:k,exit:S}},Gu=Za(DO);Vi(Gu,{duration:it.durationFast});Vi(Gu,{duration:it.durationSlower});const EO=Vi(Gu,{sizeDuration:it.durationNormal,opacityDuration:it.durationSlower,staggerDelay:it.durationNormal,exitSizeDuration:it.durationNormal,exitOpacityDuration:it.durationSlower,exitStaggerDelay:it.durationSlower,easing:it.curveEasyEase,exitEasing:it.curveEasyEase}),PO=({duration:e=it.durationNormal,easing:t=it.curveEasyEase,delay:r=0,exitDuration:o=e,exitEasing:n=t,exitDelay:a=r,outOpacity:i=0,inOpacity:l=1})=>({enter:ua({direction:"enter",duration:e,easing:t,delay:r,outOpacity:i,inOpacity:l}),exit:ua({direction:"exit",duration:o,easing:n,delay:a,outOpacity:i,inOpacity:l})}),AC=Za(PO);Vi(AC,{duration:it.durationFast});const MO=Vi(AC,{duration:it.durationGentle}),sS=({direction:e,duration:t,easing:r=it.curveLinear,delay:o=0,outScale:n=.9,inScale:a=1})=>{const i=[{scale:n},{scale:a}];return e==="exit"&&i.reverse(),{keyframes:i,duration:t,easing:r,delay:o}},qO=({duration:e=it.durationGentle,easing:t=it.curveDecelerateMax,delay:r=0,exitDuration:o=it.durationNormal,exitEasing:n=it.curveAccelerateMax,exitDelay:a=r,outScale:i=.9,inScale:l=1,animateOpacity:d=!0})=>{const f=[sS({direction:"enter",duration:e,easing:t,delay:r,outScale:i,inScale:l})],p=[sS({direction:"exit",duration:o,easing:n,delay:a,outScale:i,inScale:l})];return d&&(f.push(ua({direction:"enter",duration:e,easing:t,delay:r})),p.push(ua({direction:"exit",duration:o,easing:n,delay:a}))),{enter:f,exit:p}},yy=Za(qO);Vi(yy,{duration:it.durationNormal,exitDuration:it.durationFast});Vi(yy,{duration:it.durationSlow,exitDuration:it.durationGentle});const OC=({direction:e,duration:t,easing:r=it.curveLinear,delay:o=0,outX:n="0px",outY:a="0px",inX:i="0px",inY:l="0px"})=>({keyframes:[{translate:`${n} ${a}`},{translate:`${i} ${l}`}],duration:t,easing:r,delay:o}),FO=(e,t)=>{const{collapseMotion:r,...o}=e,n=IO(o,t),a=Bs({focusable:{excludeFromMover:!0}}),i=Uu(l=>l.navigation);return{...n,components:{...n.components,collapseMotion:Gu},root:{...n.root,...i&&a},collapseMotion:zd(e.collapseMotion,{elementType:Gu,defaultProps:{visible:n.open,unmountOnExit:!0}})}},IO=(e,t)=>{const{open:r}=nC();return{open:r,components:{root:"div"},root:me({ref:t,...e,...r?{}:{tabIndex:-1,inert:!0}},{elementType:"div"})}},AO=e=>e.collapseMotion?G(e.collapseMotion,{children:G(e.root,{})}):G(e.root,{}),OO={root:"fui-AccordionPanel"},LO=Y({root:{jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1axvtxu"}},{d:[[".f1axvtxu{margin:0 var(--spacingHorizontalM);}",{p:-1}]]}),$O=e=>{"use no memo";const t=LO();return e.root.className=F(OO.root,t.root,e.root.className),e},im=m.forwardRef((e,t)=>{const r=FO(e,t);return $O(r),xe("useAccordionPanelStyles_unstable")(r),AO(r)});im.displayName="AccordionPanel";const HO=e=>Ie(e.root,{children:[e.initials&&G(e.initials,{}),e.icon&&G(e.icon,{}),e.image&&G(e.image,{}),e.badge&&G(e.badge,{}),e.activeAriaLabelElement]}),VO=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,WO=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uE000-\uFFFF]/g,UO=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,GO=/\s+/g,ZO=/[\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]/;function Op(e){if(!e)return"";const t=e.codePointAt(0);return t===void 0?"":String.fromCodePoint(t)}function KO(e,t,r){let o="";const n=e.split(" ");if(n.length!==0&&(o+=Op(n[0]).toUpperCase()),r||(n.length===2?o+=Op(n[1]).toUpperCase():n.length===3&&(o+=Op(n[2]).toUpperCase())),t&&[...o].length>1){const a=[...o];return a[1]+a[0]}return o}function XO(e){return e=e.replace(VO,""),e=e.replace(WO,""),e=e.replace(GO," "),e=e.trim(),e}function LC(e,t,r){if(!e)return"";e=XO(e);const o=Op(e);return ZO.test(o)||!r?.allowPhoneInitials&&UO.test(e)?"":KO(e,t,r?.firstInitialOnly)}const YO=(e,t)=>{const{shape:r="circular",size:o="medium",appearance:n="filled",color:a="brand",...i}=e;return{...xy(i,t),shape:r,size:o,appearance:n,color:a}},xy=(e,t)=>{const{iconPosition:r="before"}=e;return{iconPosition:r,components:{root:"div",icon:"span"},root:me($e("div",{ref:t,...e}),{elementType:"div"}),icon:ke(e.icon,{elementType:"span"})}},lS={root:"fui-Badge",icon:"fui-Badge__icon"},JO=Be("r1iycov","r115jdol",[".r1iycov{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;min-width:20px;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}",'.r1iycov::after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}',".r115jdol{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;min-width:20px;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}",'.r115jdol::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}']),QO=Y({fontSmallToTiny:{Bahqtrf:"fk6fouc",Be2twd7:"f13mqy1h",Bhrd7zp:"fl43uef",Bg96gwp:"fcpl73t"},tiny:{a9b677:"f16dn6v3",Bqenvij:"f3mu39s",Be2twd7:"f130uwy9",Bg96gwp:"fod1mrr",Bf4jedk:"f18p0k4z",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f19jm9xf"},"extra-small":{a9b677:"fpd43o0",Bqenvij:"f30q22z",Be2twd7:"f1tccstq",Bg96gwp:"f1y3arg5",Bf4jedk:"f18p0k4z",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f19jm9xf"},small:{Bf4jedk:"fq2vo04",Bqenvij:"fd461yt",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fupdldz"},medium:{},large:{Bf4jedk:"f17fgpbq",Bqenvij:"frvgh55",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1996nqw"},"extra-large":{Bf4jedk:"fwbmr0d",Bqenvij:"f1d2rq10",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fty64o7"},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1fabniw"},rounded:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5"},roundedSmallToTiny:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fq9zq91"},circular:{},borderGhost:{ap17g6:"f10ludwy"},filled:{},"filled-brand":{De3pzq:"ffp7eso",sj55zd:"f1phragk"},"filled-danger":{De3pzq:"fdl5y0r",sj55zd:"f1phragk"},"filled-important":{De3pzq:"f1c73kur",sj55zd:"fr0bkrk"},"filled-informative":{De3pzq:"f3vzo32",sj55zd:"f11d4kpn"},"filled-severe":{De3pzq:"f1s438gw",sj55zd:"f1phragk"},"filled-subtle":{De3pzq:"fxugw4r",sj55zd:"f19n0e5"},"filled-success":{De3pzq:"flxk52p",sj55zd:"f1phragk"},"filled-warning":{De3pzq:"ffq97bm",sj55zd:"ff5vbop"},ghost:{},"ghost-brand":{sj55zd:"f16muhyy"},"ghost-danger":{sj55zd:"f1whyuy6"},"ghost-important":{sj55zd:"f19n0e5"},"ghost-informative":{sj55zd:"f11d4kpn"},"ghost-severe":{sj55zd:"f1l8vj45"},"ghost-subtle":{sj55zd:"fonrgv7"},"ghost-success":{sj55zd:"f1m7fhi8"},"ghost-warning":{sj55zd:"fpti2h4"},outline:{g2u3we:"f23ftbb",h3c5rm:["f1gkuv52","f1p1bl80"],B9xav0g:"fioka3i",zhjwy3:["f1p1bl80","f1gkuv52"]},"outline-brand":{sj55zd:"f16muhyy"},"outline-danger":{sj55zd:"f1whyuy6",g2u3we:"fyqpifd",h3c5rm:["f3ukxca","f1k7dugc"],B9xav0g:"f1njxb2b",zhjwy3:["f1k7dugc","f3ukxca"]},"outline-important":{sj55zd:"f11d4kpn",g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"]},"outline-informative":{sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"outline-severe":{sj55zd:"f1l8vj45"},"outline-subtle":{sj55zd:"fonrgv7"},"outline-success":{sj55zd:"f1m7fhi8",g2u3we:"f1mmhl11",h3c5rm:["f1tjpp2f","f1ocn5n7"],B9xav0g:"f1gjv25d",zhjwy3:["f1ocn5n7","f1tjpp2f"]},"outline-warning":{sj55zd:"fpti2h4"},tint:{},"tint-brand":{De3pzq:"f16xkysk",sj55zd:"faj9fo0",g2u3we:"f161y7kd",h3c5rm:["f1c8dzaj","f1sl6hi9"],B9xav0g:"f1619yhw",zhjwy3:["f1sl6hi9","f1c8dzaj"]},"tint-danger":{De3pzq:"ff0poqj",sj55zd:"f1hcrxcs",g2u3we:"f1oqjm8o",h3c5rm:["fkgrb8g","frb5wm0"],B9xav0g:"f1iai1ph",zhjwy3:["frb5wm0","fkgrb8g"]},"tint-important":{De3pzq:"f945g0u",sj55zd:"fr0bkrk",g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},"tint-informative":{De3pzq:"f1ctqxl6",sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"tint-severe":{De3pzq:"f1xzsg4",sj55zd:"f1k5f75o",g2u3we:"fxy9dsj",h3c5rm:["f54u6j2","fcm23ze"],B9xav0g:"f4vf0uq",zhjwy3:["fcm23ze","f54u6j2"]},"tint-subtle":{De3pzq:"fxugw4r",sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"tint-success":{De3pzq:"f2vsrz6",sj55zd:"ffmvakt",g2u3we:"fdmic9h",h3c5rm:["f196y6m","fetptd8"],B9xav0g:"f1pev5xq",zhjwy3:["fetptd8","f196y6m"]},"tint-warning":{De3pzq:"f10s6hli",sj55zd:"f42v8de",g2u3we:"fn9i3n",h3c5rm:["f1aw8cx4","f51if14"],B9xav0g:"fvq8iai",zhjwy3:["f51if14","f1aw8cx4"]}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".f16dn6v3{width:6px;}",".f3mu39s{height:6px;}",".f130uwy9{font-size:4px;}",".fod1mrr{line-height:4px;}",".f18p0k4z{min-width:unset;}",[".f19jm9xf{padding:unset;}",{p:-1}],".fpd43o0{width:10px;}",".f30q22z{height:10px;}",".f1tccstq{font-size:6px;}",".f1y3arg5{line-height:6px;}",[".f19jm9xf{padding:unset;}",{p:-1}],".fq2vo04{min-width:16px;}",".fd461yt{height:16px;}",[".fupdldz{padding:0 calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",{p:-1}],".f17fgpbq{min-width:24px;}",".frvgh55{height:24px;}",[".f1996nqw{padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",{p:-1}],".fwbmr0d{min-width:32px;}",".f1d2rq10{height:32px;}",[".fty64o7{padding:0 calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",{p:-1}],[".f1fabniw{border-radius:var(--borderRadiusNone);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".fq9zq91{border-radius:var(--borderRadiusSmall);}",{p:-1}],".f10ludwy::after{display:none;}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fdl5y0r{background-color:var(--colorPaletteRedBackground3);}",".f1c73kur{background-color:var(--colorNeutralForeground1);}",".fr0bkrk{color:var(--colorNeutralBackground1);}",".f3vzo32{background-color:var(--colorNeutralBackground5);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".f1s438gw{background-color:var(--colorPaletteDarkOrangeBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".flxk52p{background-color:var(--colorPaletteGreenBackground3);}",".ffq97bm{background-color:var(--colorPaletteYellowBackground3);}",".ff5vbop{color:var(--colorNeutralForeground1Static);}",".f16muhyy{color:var(--colorBrandForeground1);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".f1l8vj45{color:var(--colorPaletteDarkOrangeForeground3);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}",".fpti2h4{color:var(--colorPaletteYellowForeground2);}",".f23ftbb{border-top-color:currentColor;}",".f1gkuv52{border-right-color:currentColor;}",".f1p1bl80{border-left-color:currentColor;}",".fioka3i{border-bottom-color:currentColor;}",".fyqpifd{border-top-color:var(--colorPaletteRedBorder2);}",".f3ukxca{border-right-color:var(--colorPaletteRedBorder2);}",".f1k7dugc{border-left-color:var(--colorPaletteRedBorder2);}",".f1njxb2b{border-bottom-color:var(--colorPaletteRedBorder2);}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f68mrw8{border-top-color:var(--colorNeutralStroke2);}",".f7pw515{border-right-color:var(--colorNeutralStroke2);}",".fw35ms5{border-left-color:var(--colorNeutralStroke2);}",".frpde29{border-bottom-color:var(--colorNeutralStroke2);}",".f1mmhl11{border-top-color:var(--colorPaletteGreenBorder2);}",".f1tjpp2f{border-right-color:var(--colorPaletteGreenBorder2);}",".f1ocn5n7{border-left-color:var(--colorPaletteGreenBorder2);}",".f1gjv25d{border-bottom-color:var(--colorPaletteGreenBorder2);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".faj9fo0{color:var(--colorBrandForeground2);}",".f161y7kd{border-top-color:var(--colorBrandStroke2);}",".f1c8dzaj{border-right-color:var(--colorBrandStroke2);}",".f1sl6hi9{border-left-color:var(--colorBrandStroke2);}",".f1619yhw{border-bottom-color:var(--colorBrandStroke2);}",".ff0poqj{background-color:var(--colorPaletteRedBackground1);}",".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1oqjm8o{border-top-color:var(--colorPaletteRedBorder1);}",".fkgrb8g{border-right-color:var(--colorPaletteRedBorder1);}",".frb5wm0{border-left-color:var(--colorPaletteRedBorder1);}",".f1iai1ph{border-bottom-color:var(--colorPaletteRedBorder1);}",".f945g0u{background-color:var(--colorNeutralForeground3);}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f1ctqxl6{background-color:var(--colorNeutralBackground4);}",".f1xzsg4{background-color:var(--colorPaletteDarkOrangeBackground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".fxy9dsj{border-top-color:var(--colorPaletteDarkOrangeBorder1);}",".f54u6j2{border-right-color:var(--colorPaletteDarkOrangeBorder1);}",".fcm23ze{border-left-color:var(--colorPaletteDarkOrangeBorder1);}",".f4vf0uq{border-bottom-color:var(--colorPaletteDarkOrangeBorder1);}",".f2vsrz6{background-color:var(--colorPaletteGreenBackground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}",".fdmic9h{border-top-color:var(--colorPaletteGreenBorder1);}",".f196y6m{border-right-color:var(--colorPaletteGreenBorder1);}",".fetptd8{border-left-color:var(--colorPaletteGreenBorder1);}",".f1pev5xq{border-bottom-color:var(--colorPaletteGreenBorder1);}",".f10s6hli{background-color:var(--colorPaletteYellowBackground1);}",".f42v8de{color:var(--colorPaletteYellowForeground1);}",".fn9i3n{border-top-color:var(--colorPaletteYellowBorder1);}",".f1aw8cx4{border-right-color:var(--colorPaletteYellowBorder1);}",".f51if14{border-left-color:var(--colorPaletteYellowBorder1);}",".fvq8iai{border-bottom-color:var(--colorPaletteYellowBorder1);}"]}),eL=Be("rttl5z0",null,[".rttl5z0{display:flex;line-height:1;margin:0 calc(-1 * var(--spacingHorizontalXXS));font-size:12px;}"]),tL=Y({beforeText:{t21cq0:["f1t8l4o1","f11juvx6"]},afterText:{Frg6f3:["f11juvx6","f1t8l4o1"]},beforeTextXL:{t21cq0:["f1rs9grm","f1kwmkpi"]},afterTextXL:{Frg6f3:["f1kwmkpi","f1rs9grm"]},tiny:{Be2twd7:"f1tccstq"},"extra-small":{Be2twd7:"fnmn6fi"},small:{Be2twd7:"f1ugzwwg"},medium:{},large:{Be2twd7:"f4ybsrx"},"extra-large":{Be2twd7:"fe5j1ua"}},{d:[".f1t8l4o1{margin-right:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f11juvx6{margin-left:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f1rs9grm{margin-right:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1kwmkpi{margin-left:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1tccstq{font-size:6px;}",".fnmn6fi{font-size:10px;}",".f1ugzwwg{font-size:12px;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}"]}),$C=e=>{"use no memo";const t=JO(),r=QO(),o=e.size==="small"||e.size==="extra-small"||e.size==="tiny";e.root.className=F(lS.root,t,o&&r.fontSmallToTiny,r[e.size],r[e.shape],e.shape==="rounded"&&o&&r.roundedSmallToTiny,e.appearance==="ghost"&&r.borderGhost,r[e.appearance],r[`${e.appearance}-${e.color}`],e.root.className);const n=eL(),a=tL();if(e.icon){let i;m.Children.toArray(e.root.children).length>0&&(e.size==="extra-large"?i=e.iconPosition==="after"?a.afterTextXL:a.beforeTextXL:i=e.iconPosition==="after"?a.afterText:a.beforeText),e.icon.className=F(lS.icon,n,i,a[e.size],e.icon.className)}return e},wy=e=>Ie(e.root,{children:[e.iconPosition==="before"&&e.icon&&G(e.icon,{}),e.root.children,e.iconPosition==="after"&&e.icon&&G(e.icon,{})]}),ct=m.forwardRef((e,t)=>{const r=YO(e,t);return $C(r),xe("useBadgeStyles_unstable")(r),wy(r)});ct.displayName="Badge";const rL={tiny:H2,"extra-small":H2,small:jA,medium:CA,large:V2,"extra-large":V2},oL={tiny:O2,"extra-small":O2,small:kA,medium:BA,large:$2,"extra-large":$2},nL={tiny:A2,"extra-small":A2,small:wA,medium:SA,large:L2,"extra-large":L2},aL={tiny:W2,"extra-small":W2,small:NA,medium:zA,large:U2,"extra-large":U2},iL={tiny:G2,"extra-small":G2,small:TA,medium:_A,large:Z2,"extra-large":Z2},sL={tiny:K2,"extra-small":K2,small:RA,medium:EA,large:Y2,"extra-large":Y2},lL={tiny:X2,"extra-small":X2,small:DA,medium:PA,large:J2,"extra-large":J2},av={tiny:tS,"extra-small":tS,small:FA,medium:IA,large:rS,"extra-large":rS},cL={tiny:Q2,"extra-small":Q2,small:MA,medium:qA,large:eS,"extra-large":eS},cS={tiny:oS,"extra-small":oS,small:AA,medium:OA,large:nS,"extra-large":nS},uL=(e,t,r)=>{switch(e){case"available":return t?oL[r]:nL[r];case"away":return t?av[r]:rL[r];case"blocked":return aL[r];case"busy":return t?cS[r]:iL[r];case"do-not-disturb":return t?lL[r]:sL[r];case"offline":return t?av[r]:cL[r];case"out-of-office":return av[r];case"unknown":return cS[r]}},uS={busy:"busy","out-of-office":"out of office",away:"away",available:"available",offline:"offline","do-not-disturb":"do not disturb",unknown:"unknown",blocked:"blocked"},dL=(e,t)=>{const{size:r="medium",outOfOffice:o=!1,...n}=e;var a;const i=(a=e.status)!==null&&a!==void 0?a:"available",l=uL(i,o,r),d={...fL(n,t),appearance:"filled",color:"brand",shape:"circular",size:r,outOfOffice:o};if(d.icon){var f,p;(p=(f=d.icon).children)!==null&&p!==void 0||(f.children=m.createElement(l,null))}return d},fL=(e,t)=>{const{status:r="available",outOfOffice:o=!1}=e,n=uS[r],a=e.outOfOffice&&e.status!=="out-of-office"?` ${uS["out-of-office"]}`:"";return{...xy({"aria-label":n+a,role:"img",...e,icon:ke(e.icon,{renderByDefault:!0,elementType:"span"})},t),status:r,outOfOffice:o}},dS={root:"fui-PresenceBadge",icon:"fui-PresenceBadge__icon"},pL=e=>e==="busy"||e==="do-not-disturb"||e==="blocked",mL=Be("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;}"]),gL=Be("r11ag4qr",null,[".r11ag4qr{display:flex;margin:-1px;}"]),hL=Y({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;}"]}),vL=e=>{"use no memo";const t=mL(),r=gL(),o=hL(),n=pL(e.status);return e.root.className=F(dS.root,t,n&&o.statusBusy,e.status==="away"&&o.statusAway,e.status==="available"&&o.statusAvailable,e.status==="offline"&&o.statusOffline,e.status==="out-of-office"&&o.statusOutOfOffice,e.status==="unknown"&&o.statusUnknown,e.outOfOffice&&o.outOfOffice,e.outOfOffice&&e.status==="available"&&o.outOfOfficeAvailable,e.outOfOffice&&n&&o.outOfOfficeBusy,e.outOfOffice&&(e.status==="out-of-office"||e.status==="away"||e.status==="offline")&&o.statusOutOfOffice,e.outOfOffice&&e.status==="unknown"&&o.outOfOfficeUnknown,e.size==="tiny"&&o.tiny,e.size==="large"&&o.large,e.size==="extra-large"&&o.extraLarge,e.root.className),e.icon&&(e.icon.className=F(dS.icon,r,e.icon.className)),e},Zu=m.forwardRef((e,t)=>{const r=dL(e,t);return vL(r),xe("usePresenceBadgeStyles_unstable")(r),wy(r)});Zu.displayName="PresenceBadge";const bL=(e,t)=>{const{shape:r="circular",appearance:o="filled",color:n="brand",size:a="medium",...i}=e;return{...yL(i,t),shape:r,appearance:o,color:n,size:a}},yL=(e,t)=>{const{showZero:r=!1,overflowCount:o=99,count:n=0,dot:a=!1,...i}=e,l={...xy(i,t),showZero:r,count:n,dot:a};return(n!==0||r)&&!a&&!l.root.children&&(l.root.children=n>o?`${o}+`:`${n}`),l},fS={root:"fui-CounterBadge",icon:"fui-CounterBadge__icon"},xL=Y({dot:{Bf4jedk:"fgfkb25",a9b677:"f16dn6v3",Bqenvij:"f3mu39s",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai"},hide:{mc9l5x:"fjseox"}},{d:[".fgfkb25{min-width:auto;}",".f16dn6v3{width:6px;}",".f3mu39s{height:6px;}",[".f1mk8lai{padding:0;}",{p:-1}],".fjseox{display:none;}"]}),wL=e=>{"use no memo";const t=xL();return e.root.className=F(fS.root,e.dot&&t.dot,!e.root.children&&!e.dot&&t.hide,e.root.className),e.icon&&(e.icon.className=F(fS.icon,e.icon.className)),$C(e)},HC=m.forwardRef((e,t)=>{const r=bL(e,t);return wL(r),xe("useCounterBadgeStyles_unstable")(r),wy(r)});HC.displayName="CounterBadge";const VC=m.createContext(void 0),kL={},ky=VC.Provider,SL=()=>{var e;return(e=m.useContext(VC))!==null&&e!==void 0?e:kL},BL={active:"active",inactive:"inactive"},jL=(e,t)=>{const{dir:r}=Ve(),{shape:o,size:n}=SL(),{size:a=n??32,shape:i=o??"circular",active:l="unset",activeAppearance:d="ring",idForColor:f,color:p="neutral",...h}=e,v=CL(h,t);var y;const x=p==="colorful"?pS[zL((y=f??e.name)!==null&&y!==void 0?y:"")%pS.length]:p;if(v.initials){var b;v.initials=ke(e.initials,{renderByDefault:!0,defaultProps:{children:LC(e.name,r==="rtl",{firstInitialOnly:a<=16}),id:(b=v.initials)===null||b===void 0?void 0:b.id},elementType:"span"})}v.icon&&!v.icon.hasOwnProperty("children")&&(v.icon.children=m.createElement(EI,null));const k=ke(e.badge,{defaultProps:{size:NL(a),id:v.root.id+"__badge"},elementType:Zu});let S=v.activeAriaLabelElement;const N=e["aria-label"]!==void 0,B=e["aria-labelledby"]!==void 0;if(!N&&!B&&(e.name?k&&(v.root["aria-labelledby"]=v.root.id+" "+k.id):v.initials&&(v.root["aria-labelledby"]=v.initials.id+(k?" "+k.id:""),delete v.root["aria-label"]),l==="active"||l==="inactive")){const C=BL[l];if(v.root["aria-labelledby"]){const z=v.root.id+"__active";v.root["aria-labelledby"]+=" "+z,S=m.createElement("span",{hidden:!0,id:z},C)}else v.root["aria-label"]&&(v.root["aria-label"]+=" "+C)}return{...v,size:a,shape:i,active:l,activeAppearance:d,activeAriaLabelElement:S,color:x,badge:k,components:{...v.components,badge:Zu}}},CL=(e,t)=>{const{dir:r}=Ve(),{name:o,image:n,initials:a,...i}=e,l=bt("avatar-"),d=me({role:"img",id:l,ref:t,...i},{elementType:"span"}),[f,p]=m.useState(void 0);let h=ke(n,{defaultProps:{alt:"",role:"presentation","aria-hidden":!0,hidden:f},elementType:"img"});h?.src||(h=void 0),h&&(h.onError=Re(h.onError,()=>p(!0)),h.onLoad=Re(h.onLoad,()=>p(void 0)));let v=ke(a,{renderByDefault:!0,defaultProps:{children:LC(o,r==="rtl"),id:l+"__initials"},elementType:"span"});v?.children||(v=void 0);let y;!v&&(!h||f)&&(y=ke(e.icon,{renderByDefault:!0,defaultProps:{"aria-hidden":!0},elementType:"span"}));let x;return!d["aria-label"]&&!d["aria-labelledby"]&&(o?d["aria-label"]=o:v&&(d["aria-labelledby"]=v.id)),{activeAriaLabelElement:x,components:{root:"span",initials:"span",icon:"span",image:"img"},root:d,initials:v,icon:y,image:h}},NL=e=>e>=96?"extra-large":e>=64?"large":e>=56?"medium":e>=40?"small":e>=28?"extra-small":"tiny",pS=["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"],zL=e=>{let t=0;for(let r=e.length-1;r>=0;r--){const o=e.charCodeAt(r),n=r%8;t^=(o<<n)+(o>>8-n)}return t},ou={root:"fui-Avatar",image:"fui-Avatar__image",initials:"fui-Avatar__initials",icon:"fui-Avatar__icon",badge:"fui-Avatar__badge"},TL=Be("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;}}"]}),_L=Be("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;}"]),RL=Be("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;}"]),DL=Y({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",Bg24rqe:"f9ttr0w"},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){.f9ttr0w{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),EL=Y({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;}"]}),PL=Y({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);}"]}),ML=Y({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);}"]}),qL=e=>{"use no memo";const{size:t,shape:r,active:o,activeAppearance:n,color:a}=e,i=TL(),l=_L(),d=RL(),f=DL(),p=EL(),h=PL(),v=ML(),y=[i,t!==32&&p[t]];if(e.badge&&y.push(f.badgeAlign,f[e.badge.size||"medium"]),t<=24?y.push(f.textCaption2Strong):t<=28?y.push(f.textCaption1Strong):t<=40||(t<=56?y.push(f.textSubtitle2):t<=96?y.push(f.textSubtitle1):y.push(f.textTitle3)),r==="square"&&(t<=24?y.push(f.squareSmall):t<=48?y.push(f.squareMedium):t<=72?y.push(f.squareLarge):y.push(f.squareXLarge)),(o==="active"||o==="inactive")&&(y.push(f.activeOrInactive),(n==="ring"||n==="ring-shadow")&&(y.push(f.ring,v[a]),e.badge&&y.push(f.ringBadgeCutout),t<=48?y.push(f.ringThick):t<=64?y.push(f.ringThicker):y.push(f.ringThickest)),(n==="shadow"||n==="ring-shadow")&&(y.push(f.shadow),t<=28?y.push(f.shadow4):t<=48?y.push(f.shadow8):t<=64?y.push(f.shadow16):y.push(f.shadow28)),o==="inactive"&&y.push(f.inactive)),e.root.className=F(ou.root,...y,e.root.className),e.badge&&(e.badge.className=F(ou.badge,f.badge,e.badge.className)),e.image&&(e.image.className=F(ou.image,l,h[a],e.badge&&f.badgeCutout,e.image.className)),e.initials&&(e.initials.className=F(ou.initials,d,h[a],e.badge&&f.badgeCutout,e.initials.className)),e.icon){let x;t<=16?x=f.icon12:t<=24?x=f.icon16:t<=40?x=f.icon20:t<=48?x=f.icon24:t<=56?x=f.icon28:t<=72?x=f.icon32:x=f.icon48,e.icon.className=F(ou.icon,d,x,h[a],e.badge&&f.badgeCutout,e.icon.className)}return e},R1=m.forwardRef((e,t)=>{const r=jL(e,t);return qL(r),xe("useAvatarStyles_unstable")(r),HO(r)});R1.displayName="Avatar";function FL(e){const t=e.clientX,r=e.clientY,o=t+1,n=r+1;function a(){return{left:t,top:r,right:o,bottom:n,x:t,y:r,height:1,width:1}}return{getBoundingClientRect:a}}const mS="data-popper-is-intersecting",gS="data-popper-escaped",hS="data-popper-reference-hidden",IL="data-popper-placement",D1="fui-positioningend",sm="--fui-positioning-slide-direction-x",lm="--fui-positioning-slide-direction-y";function AL(e){const t=e.split("-")[0];let r=0,o=1;return t==="right"?(r=-1,o=0):t==="bottom"?(r=0,o=-1):t==="left"&&(r=1,o=0),{x:r,y:o}}function WC(e){const{targetDocument:t,onPositioningEnd:r}=e,o=de(n=>{r?.(n);const a=n.target,i=n.detail.placement;if(!qt(a))return;const{x:l,y:d}=AL(i);a.style.setProperty(sm,`${l}px`),a.style.setProperty(lm,`${d}px`)});return m.useEffect(()=>{var n,a,i;const l=(i=t==null||(a=t.defaultView)===null||a===void 0||(n=a.CSS)===null||n===void 0?void 0:n.registerProperty)!==null&&i!==void 0?i:()=>{};try{l({name:sm,syntax:"<length>",inherits:!1,initialValue:"0px"}),l({name:lm,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}},[t]),o}const OL=({options:e})=>e,UC=m.createContext(void 0);UC.Provider;const LL=()=>{var e;return(e=m.useContext(UC))!==null&&e!==void 0?e:OL},$L=["top","right","bottom","left"],zs=Math.min,sn=Math.max,cm=Math.round,sa=e=>({x:e,y:e}),HL={left:"right",right:"left",bottom:"top",top:"bottom"};function E1(e,t,r){return sn(e,zs(t,r))}function $a(e,t){return typeof e=="function"?e(t):e}function Ha(e){return e.split("-")[0]}function ic(e){return e.split("-")[1]}function Sy(e){return e==="x"?"y":"x"}function By(e){return e==="y"?"height":"width"}function na(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function jy(e){return Sy(na(e))}function VL(e,t,r){r===void 0&&(r=!1);const o=ic(e),n=jy(e),a=By(n);let i=n==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=um(i)),[i,um(i)]}function WL(e){const t=um(e);return[P1(e),t,P1(t)]}function P1(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const vS=["left","right"],bS=["right","left"],UL=["top","bottom"],GL=["bottom","top"];function ZL(e,t,r){switch(e){case"top":case"bottom":return r?t?bS:vS:t?vS:bS;case"left":case"right":return t?UL:GL;default:return[]}}function KL(e,t,r,o){const n=ic(e);let a=ZL(Ha(e),r==="start",o);return n&&(a=a.map(i=>i+"-"+n),t&&(a=a.concat(a.map(P1)))),a}function um(e){const t=Ha(e);return HL[t]+e.slice(t.length)}function XL(e){return{top:0,right:0,bottom:0,left:0,...e}}function GC(e){return typeof e!="number"?XL(e):{top:e,right:e,bottom:e,left:e}}function dm(e){const{x:t,y:r,width:o,height:n}=e;return{width:o,height:n,top:r,left:t,right:t+o,bottom:r+n,x:t,y:r}}function yS(e,t,r){let{reference:o,floating:n}=e;const a=na(t),i=jy(t),l=By(i),d=Ha(t),f=a==="y",p=o.x+o.width/2-n.width/2,h=o.y+o.height/2-n.height/2,v=o[l]/2-n[l]/2;let y;switch(d){case"top":y={x:p,y:o.y-n.height};break;case"bottom":y={x:p,y:o.y+o.height};break;case"right":y={x:o.x+o.width,y:h};break;case"left":y={x:o.x-n.width,y:h};break;default:y={x:o.x,y:o.y}}switch(ic(t)){case"start":y[i]-=v*(r&&f?-1:1);break;case"end":y[i]+=v*(r&&f?-1:1);break}return y}async function ZC(e,t){var r;t===void 0&&(t={});const{x:o,y:n,platform:a,rects:i,elements:l,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:p="viewport",elementContext:h="floating",altBoundary:v=!1,padding:y=0}=$a(t,e),x=GC(y),k=l[v?h==="floating"?"reference":"floating":h],S=dm(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(k)))==null||r?k:k.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:f,rootBoundary:p,strategy:d})),N=h==="floating"?{x:o,y:n,width:i.floating.width,height:i.floating.height}:i.reference,B=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),C=await(a.isElement==null?void 0:a.isElement(B))?await(a.getScale==null?void 0:a.getScale(B))||{x:1,y:1}:{x:1,y:1},z=dm(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:N,offsetParent:B,strategy:d}):N);return{top:(S.top-z.top+x.top)/C.y,bottom:(z.bottom-S.bottom+x.bottom)/C.y,left:(S.left-z.left+x.left)/C.x,right:(z.right-S.right+x.right)/C.x}}const YL=50,JL=async(e,t,r)=>{const{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:i}=r,l=i.detectOverflow?i:{...i,detectOverflow:ZC},d=await(i.isRTL==null?void 0:i.isRTL(t));let f=await i.getElementRects({reference:e,floating:t,strategy:n}),{x:p,y:h}=yS(f,o,d),v=o,y=0;const x={};for(let b=0;b<a.length;b++){const k=a[b];if(!k)continue;const{name:S,fn:N}=k,{x:B,y:C,data:z,reset:R}=await N({x:p,y:h,initialPlacement:o,placement:v,strategy:n,middlewareData:x,rects:f,platform:l,elements:{reference:e,floating:t}});p=B??p,h=C??h,x[S]={...x[S],...z},R&&y<YL&&(y++,typeof R=="object"&&(R.placement&&(v=R.placement),R.rects&&(f=R.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:n}):R.rects),{x:p,y:h}=yS(f,v,d)),b=-1)}return{x:p,y:h,placement:v,strategy:n,middlewareData:x}},QL=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:n,rects:a,platform:i,elements:l,middlewareData:d}=t,{element:f,padding:p=0}=$a(e,t)||{};if(f==null)return{};const h=GC(p),v={x:r,y:o},y=jy(n),x=By(y),b=await i.getDimensions(f),k=y==="y",S=k?"top":"left",N=k?"bottom":"right",B=k?"clientHeight":"clientWidth",C=a.reference[x]+a.reference[y]-v[y]-a.floating[x],z=v[y]-a.reference[y],R=await(i.getOffsetParent==null?void 0:i.getOffsetParent(f));let E=R?R[B]:0;(!E||!await(i.isElement==null?void 0:i.isElement(R)))&&(E=l.floating[B]||a.floating[x]);const D=C/2-z/2,I=E/2-b[x]/2-1,M=zs(h[S],I),O=zs(h[N],I),H=M,$=E-b[x]-O,Z=E/2-b[x]/2+D,q=E1(H,Z,$),A=!d.arrow&&ic(n)!=null&&Z!==q&&a.reference[x]/2-(Z<H?M:O)-b[x]/2<0,X=A?Z<H?Z-H:Z-$:0;return{[y]:v[y]+X,data:{[y]:q,centerOffset:Z-q-X,...A&&{alignmentOffset:X}},reset:A}}}),e$=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:n,middlewareData:a,rects:i,initialPlacement:l,platform:d,elements:f}=t,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:v,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:b=!0,...k}=$a(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const S=Ha(n),N=na(l),B=Ha(l)===l,C=await(d.isRTL==null?void 0:d.isRTL(f.floating)),z=v||(B||!b?[um(l)]:WL(l)),R=x!=="none";!v&&R&&z.push(...KL(l,b,x,C));const E=[l,...z],D=await d.detectOverflow(t,k),I=[];let M=((o=a.flip)==null?void 0:o.overflows)||[];if(p&&I.push(D[S]),h){const Z=VL(n,i,C);I.push(D[Z[0]],D[Z[1]])}if(M=[...M,{placement:n,overflows:I}],!I.every(Z=>Z<=0)){var O,H;const Z=(((O=a.flip)==null?void 0:O.index)||0)+1,q=E[Z];if(q&&(!(h==="alignment"?N!==na(q):!1)||M.every(V=>na(V.placement)===N?V.overflows[0]>0:!0)))return{data:{index:Z,overflows:M},reset:{placement:q}};let A=(H=M.filter(X=>X.overflows[0]<=0).sort((X,V)=>X.overflows[1]-V.overflows[1])[0])==null?void 0:H.placement;if(!A)switch(y){case"bestFit":{var $;const X=($=M.filter(V=>{if(R){const oe=na(V.placement);return oe===N||oe==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(oe=>oe>0).reduce((oe,ee)=>oe+ee,0)]).sort((V,oe)=>V[1]-oe[1])[0])==null?void 0:$[0];X&&(A=X);break}case"initialPlacement":A=l;break}if(n!==A)return{reset:{placement:A}}}return{}}}};function xS(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function wS(e){return $L.some(t=>e[t]>=0)}const t$=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:o}=t,{strategy:n="referenceHidden",...a}=$a(e,t);switch(n){case"referenceHidden":{const i=await o.detectOverflow(t,{...a,elementContext:"reference"}),l=xS(i,r.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:wS(l)}}}case"escaped":{const i=await o.detectOverflow(t,{...a,altBoundary:!0}),l=xS(i,r.floating);return{data:{escapedOffsets:l,escaped:wS(l)}}}default:return{}}}}},KC=new Set(["left","top"]);async function r$(e,t){const{placement:r,platform:o,elements:n}=e,a=await(o.isRTL==null?void 0:o.isRTL(n.floating)),i=Ha(r),l=ic(r),d=na(r)==="y",f=KC.has(i)?-1:1,p=a&&d?-1:1,h=$a(t,e);let{mainAxis:v,crossAxis:y,alignmentAxis:x}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof x=="number"&&(y=l==="end"?x*-1:x),d?{x:y*p,y:v*f}:{x:v*f,y:y*p}}const o$=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:n,y:a,placement:i,middlewareData:l}=t,d=await r$(t,e);return i===((r=l.offset)==null?void 0:r.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:i}}}}},n$=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:n,platform:a}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:d={fn:S=>{let{x:N,y:B}=S;return{x:N,y:B}}},...f}=$a(e,t),p={x:r,y:o},h=await a.detectOverflow(t,f),v=na(Ha(n)),y=Sy(v);let x=p[y],b=p[v];if(i){const S=y==="y"?"top":"left",N=y==="y"?"bottom":"right",B=x+h[S],C=x-h[N];x=E1(B,x,C)}if(l){const S=v==="y"?"top":"left",N=v==="y"?"bottom":"right",B=b+h[S],C=b-h[N];b=E1(B,b,C)}const k=d.fn({...t,[y]:x,[v]:b});return{...k,data:{x:k.x-r,y:k.y-o,enabled:{[y]:i,[v]:l}}}}}},a$=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:o,placement:n,rects:a,middlewareData:i}=t,{offset:l=0,mainAxis:d=!0,crossAxis:f=!0}=$a(e,t),p={x:r,y:o},h=na(n),v=Sy(h);let y=p[v],x=p[h];const b=$a(l,t),k=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(d){const B=v==="y"?"height":"width",C=a.reference[v]-a.floating[B]+k.mainAxis,z=a.reference[v]+a.reference[B]-k.mainAxis;y<C?y=C:y>z&&(y=z)}if(f){var S,N;const B=v==="y"?"width":"height",C=KC.has(Ha(n)),z=a.reference[h]-a.floating[B]+(C&&((S=i.offset)==null?void 0:S[h])||0)+(C?0:k.crossAxis),R=a.reference[h]+a.reference[B]+(C?0:((N=i.offset)==null?void 0:N[h])||0)-(C?k.crossAxis:0);x<z?x=z:x>R&&(x=R)}return{[v]:y,[h]:x}}}},i$=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,o;const{placement:n,rects:a,platform:i,elements:l}=t,{apply:d=()=>{},...f}=$a(e,t),p=await i.detectOverflow(t,f),h=Ha(n),v=ic(n),y=na(n)==="y",{width:x,height:b}=a.floating;let k,S;h==="top"||h==="bottom"?(k=h,S=v===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(S=h,k=v==="end"?"top":"bottom");const N=b-p.top-p.bottom,B=x-p.left-p.right,C=zs(b-p[k],N),z=zs(x-p[S],B),R=!t.middlewareData.shift;let E=C,D=z;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(D=B),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(E=N),R&&!v){const M=sn(p.left,0),O=sn(p.right,0),H=sn(p.top,0),$=sn(p.bottom,0);y?D=x-2*(M!==0||O!==0?M+O:sn(p.left,p.right)):E=b-2*(H!==0||$!==0?H+$:sn(p.top,p.bottom))}await d({...t,availableWidth:D,availableHeight:E});const I=await i.getDimensions(l.floating);return x!==I.width||b!==I.height?{reset:{rects:!0}}:{}}}};function pg(){return typeof window<"u"}function sc(e){return XC(e)?(e.nodeName||"").toLowerCase():"#document"}function Oo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ka(e){var t;return(t=(XC(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function XC(e){return pg()?e instanceof Node||e instanceof Oo(e).Node:!1}function qn(e){return pg()?e instanceof Element||e instanceof Oo(e).Element:!1}function Xa(e){return pg()?e instanceof HTMLElement||e instanceof Oo(e).HTMLElement:!1}function kS(e){return!pg()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Oo(e).ShadowRoot}function Td(e){const{overflow:t,overflowX:r,overflowY:o,display:n}=Fn(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&n!=="inline"&&n!=="contents"}function s$(e){return/^(table|td|th)$/.test(sc(e))}function mg(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const l$=/transform|translate|scale|rotate|perspective|filter/,c$=/paint|layout|strict|content/,cs=e=>!!e&&e!=="none";let iv;function Cy(e){const t=qn(e)?Fn(e):e;return cs(t.transform)||cs(t.translate)||cs(t.scale)||cs(t.rotate)||cs(t.perspective)||!Ny()&&(cs(t.backdropFilter)||cs(t.filter))||l$.test(t.willChange||"")||c$.test(t.contain||"")}function u$(e){let t=Ai(e);for(;Xa(t)&&!$l(t);){if(Cy(t))return t;if(mg(t))return null;t=Ai(t)}return null}function Ny(){return iv==null&&(iv=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),iv}function $l(e){return/^(html|body|#document)$/.test(sc(e))}function Fn(e){return Oo(e).getComputedStyle(e)}function gg(e){return qn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ai(e){if(sc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||kS(e)&&e.host||Ka(e);return kS(t)?t.host:t}function YC(e){const t=Ai(e);return $l(t)?e.ownerDocument?e.ownerDocument.body:e.body:Xa(t)&&Td(t)?t:YC(t)}function JC(e,t,r){var o;t===void 0&&(t=[]);const n=YC(e),a=n===((o=e.ownerDocument)==null?void 0:o.body),i=Oo(n);return a?(M1(i),t.concat(i,i.visualViewport||[],Td(n)?n:[],[])):t.concat(n,JC(n,[]))}function M1(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function QC(e){const t=Fn(e);let r=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const n=Xa(e),a=n?e.offsetWidth:r,i=n?e.offsetHeight:o,l=cm(r)!==a||cm(o)!==i;return l&&(r=a,o=i),{width:r,height:o,$:l}}function e6(e){return qn(e)?e:e.contextElement}function Cl(e){const t=e6(e);if(!Xa(t))return sa(1);const r=t.getBoundingClientRect(),{width:o,height:n,$:a}=QC(t);let i=(a?cm(r.width):r.width)/o,l=(a?cm(r.height):r.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const d$=sa(0);function t6(e){const t=Oo(e);return!Ny()||!t.visualViewport?d$:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function f$(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Oo(e)?!1:t}function Ku(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);const n=e.getBoundingClientRect(),a=e6(e);let i=sa(1);t&&(o?qn(o)&&(i=Cl(o)):i=Cl(e));const l=f$(a,r,o)?t6(a):sa(0);let d=(n.left+l.x)/i.x,f=(n.top+l.y)/i.y,p=n.width/i.x,h=n.height/i.y;if(a){const v=Oo(a),y=o&&qn(o)?Oo(o):o;let x=v,b=M1(x);for(;b&&o&&y!==x;){const k=Cl(b),S=b.getBoundingClientRect(),N=Fn(b),B=S.left+(b.clientLeft+parseFloat(N.paddingLeft))*k.x,C=S.top+(b.clientTop+parseFloat(N.paddingTop))*k.y;d*=k.x,f*=k.y,p*=k.x,h*=k.y,d+=B,f+=C,x=Oo(b),b=M1(x)}}return dm({width:p,height:h,x:d,y:f})}function hg(e,t){const r=gg(e).scrollLeft;return t?t.left+r:Ku(Ka(e)).left+r}function r6(e,t){const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-hg(e,r),n=r.top+t.scrollTop;return{x:o,y:n}}function p$(e){let{elements:t,rect:r,offsetParent:o,strategy:n}=e;const a=n==="fixed",i=Ka(o),l=t?mg(t.floating):!1;if(o===i||l&&a)return r;let d={scrollLeft:0,scrollTop:0},f=sa(1);const p=sa(0),h=Xa(o);if((h||!h&&!a)&&((sc(o)!=="body"||Td(i))&&(d=gg(o)),h)){const y=Ku(o);f=Cl(o),p.x=y.x+o.clientLeft,p.y=y.y+o.clientTop}const v=i&&!h&&!a?r6(i,d):sa(0);return{width:r.width*f.x,height:r.height*f.y,x:r.x*f.x-d.scrollLeft*f.x+p.x+v.x,y:r.y*f.y-d.scrollTop*f.y+p.y+v.y}}function m$(e){return Array.from(e.getClientRects())}function g$(e){const t=Ka(e),r=gg(e),o=e.ownerDocument.body,n=sn(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=sn(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-r.scrollLeft+hg(e);const l=-r.scrollTop;return Fn(o).direction==="rtl"&&(i+=sn(t.clientWidth,o.clientWidth)-n),{width:n,height:a,x:i,y:l}}const SS=25;function h$(e,t){const r=Oo(e),o=Ka(e),n=r.visualViewport;let a=o.clientWidth,i=o.clientHeight,l=0,d=0;if(n){a=n.width,i=n.height;const p=Ny();(!p||p&&t==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}const f=hg(o);if(f<=0){const p=o.ownerDocument,h=p.body,v=getComputedStyle(h),y=p.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,x=Math.abs(o.clientWidth-h.clientWidth-y);x<=SS&&(a-=x)}else f<=SS&&(a+=f);return{width:a,height:i,x:l,y:d}}function v$(e,t){const r=Ku(e,!0,t==="fixed"),o=r.top+e.clientTop,n=r.left+e.clientLeft,a=Xa(e)?Cl(e):sa(1),i=e.clientWidth*a.x,l=e.clientHeight*a.y,d=n*a.x,f=o*a.y;return{width:i,height:l,x:d,y:f}}function BS(e,t,r){let o;if(t==="viewport")o=h$(e,r);else if(t==="document")o=g$(Ka(e));else if(qn(t))o=v$(t,r);else{const n=t6(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return dm(o)}function o6(e,t){const r=Ai(e);return r===t||!qn(r)||$l(r)?!1:Fn(r).position==="fixed"||o6(r,t)}function b$(e,t){const r=t.get(e);if(r)return r;let o=JC(e,[]).filter(l=>qn(l)&&sc(l)!=="body"),n=null;const a=Fn(e).position==="fixed";let i=a?Ai(e):e;for(;qn(i)&&!$l(i);){const l=Fn(i),d=Cy(i);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&(n.position==="absolute"||n.position==="fixed")||Td(i)&&!d&&o6(e,i))?o=o.filter(p=>p!==i):n=l,i=Ai(i)}return t.set(e,o),o}function y$(e){let{element:t,boundary:r,rootBoundary:o,strategy:n}=e;const i=[...r==="clippingAncestors"?mg(t)?[]:b$(t,this._c):[].concat(r),o],l=BS(t,i[0],n);let d=l.top,f=l.right,p=l.bottom,h=l.left;for(let v=1;v<i.length;v++){const y=BS(t,i[v],n);d=sn(y.top,d),f=zs(y.right,f),p=zs(y.bottom,p),h=sn(y.left,h)}return{width:f-h,height:p-d,x:h,y:d}}function x$(e){const{width:t,height:r}=QC(e);return{width:t,height:r}}function w$(e,t,r){const o=Xa(t),n=Ka(t),a=r==="fixed",i=Ku(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const d=sa(0);function f(){d.x=hg(n)}if(o||!o&&!a)if((sc(t)!=="body"||Td(n))&&(l=gg(t)),o){const y=Ku(t,!0,a,t);d.x=y.x+t.clientLeft,d.y=y.y+t.clientTop}else n&&f();a&&!o&&n&&f();const p=n&&!o&&!a?r6(n,l):sa(0),h=i.left+l.scrollLeft-d.x-p.x,v=i.top+l.scrollTop-d.y-p.y;return{x:h,y:v,width:i.width,height:i.height}}function sv(e){return Fn(e).position==="static"}function jS(e,t){if(!Xa(e)||Fn(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ka(e)===r&&(r=r.ownerDocument.body),r}function n6(e,t){const r=Oo(e);if(mg(e))return r;if(!Xa(e)){let n=Ai(e);for(;n&&!$l(n);){if(qn(n)&&!sv(n))return n;n=Ai(n)}return r}let o=jS(e,t);for(;o&&s$(o)&&sv(o);)o=jS(o,t);return o&&$l(o)&&sv(o)&&!Cy(o)?r:o||u$(e)||r}const k$=async function(e){const t=this.getOffsetParent||n6,r=this.getDimensions,o=await r(e.floating);return{reference:w$(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function S$(e){return Fn(e).direction==="rtl"}const B$={convertOffsetParentRelativeRectToViewportRelativeRect:p$,getDocumentElement:Ka,getClippingRect:y$,getOffsetParent:n6,getElementRects:k$,getClientRects:m$,getDimensions:x$,getScale:Cl,isElement:qn,isRTL:S$},j$=ZC,C$=o$,N$=n$,z$=e$,T$=i$,CS=t$,_$=QL,NS=a$,R$=(e,t,r)=>{const o=new Map,n={platform:B$,...r},a={...n.platform,_c:o};return JL(e,t,{...n,platform:a})};function a6(e){const t=e.split("-");return{side:t[0],alignment:t[1]}}const D$=e=>e.nodeName==="HTML"?e:e.parentNode||e.host,E$=e=>{var t;if(e.nodeType!==1)return{};const r=(t=e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return r?r.getComputedStyle(e,null):{}},vg=e=>{const t=e&&D$(e);if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}const{overflow:r,overflowX:o,overflowY:n}=E$(t);return/(auto|scroll|overlay)/.test(r+n+o)?t:vg(t)},P$=e=>{var t;const r=vg(e);return r?r!==((t=r.ownerDocument)===null||t===void 0?void 0:t.body):!1};function zy(e,t){if(t==="window")return e?.ownerDocument.documentElement;if(t==="clippingParents")return"clippingAncestors";if(t==="scrollParent"){let r=vg(e);return r.nodeName==="BODY"&&(r=e?.ownerDocument.documentElement),r}return t}function i6(e,t){return typeof e=="number"||typeof e=="object"&&e!==null?lv(e,t):typeof e=="function"?r=>{const o=e(r);return lv(o,t)}:{mainAxis:t}}const lv=(e,t)=>{if(typeof e=="number")return{mainAxis:e+t};var r;return{...e,mainAxis:((r=e.mainAxis)!==null&&r!==void 0?r:0)+t}};function s6(e,t){if(typeof e=="number")return e;const{start:r,end:o,...n}=e,a=n,i=t?"end":"start",l=t?"start":"end";return e[i]&&(a.left=e[i]),e[l]&&(a.right=e[l]),a}const M$=e=>({above:"top",below:"bottom",before:e?"right":"left",after:e?"left":"right"}),q$=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),F$=(e,t)=>{const r=e==="above"||e==="below",o=t==="top"||t==="bottom";return r&&o||!r&&!o},l6=(e,t,r)=>{const o=F$(t,e)?"center":e,n=t&&M$(r)[t],a=o&&q$()[o];return n&&a?`${n}-${a}`:n},I$=()=>({top:"above",bottom:"below",right:"after",left:"before"}),A$=e=>e==="above"||e==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},O$=e=>{const{side:t,alignment:r}=a6(e),o=I$()[t],n=r&&A$(o)[r];return{position:o,alignment:n}},L$={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 Wi(e){return e==null?{}:typeof e=="string"?L$[e]:e}function cv(e,t,r){const o=m.useRef(!0),[n]=m.useState(()=>({value:e,callback:t,facade:{get current(){return n.value},set current(a){const i=n.value;i!==a&&(n.value=a,n.callback(a,i))}}}));return $t(()=>{o.current=!1},[]),n.callback=t,n.facade}function $$(e){let t;return()=>(t||(t=new Promise(r=>{Promise.resolve().then(()=>{t=void 0,r(e())})})),t)}function H$(e){const{arrow:t,middlewareData:r}=e;if(!r.arrow||!t)return;const{x:o,y:n}=r.arrow;Object.assign(t.style,{left:o!=null?`${o}px`:"",top:n!=null?`${n}px`:""})}function V$(e){var t,r,o;const{container:n,placement:a,middlewareData:i,strategy:l,lowPPI:d,coordinates:f,useTransform:p=!0}=e;if(!n)return;n.setAttribute(IL,a),n.removeAttribute(mS),i.intersectionObserver.intersecting&&n.setAttribute(mS,""),n.removeAttribute(gS),!((t=i.hide)===null||t===void 0)&&t.escaped&&n.setAttribute(gS,""),n.removeAttribute(hS),!((r=i.hide)===null||r===void 0)&&r.referenceHidden&&n.setAttribute(hS,"");const h=((o=n.ownerDocument.defaultView)===null||o===void 0?void 0:o.devicePixelRatio)||1,v=Math.round(f.x*h)/h,y=Math.round(f.y*h)/h;if(Object.assign(n.style,{position:l}),p){Object.assign(n.style,{transform:d?`translate(${v}px, ${y}px)`:`translate3d(${v}px, ${y}px, 0)`});return}Object.assign(n.style,{left:`${v}px`,top:`${y}px`})}const W$=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 zS(e){const t=[];let r=e;for(;r;){const o=vg(r);if(e.ownerDocument.body===o){t.push(o);break}if(o.nodeName==="BODY"&&o!==e.ownerDocument.body)break;t.push(o),r=o}return t}function U$(e,t){return new e.ResizeObserver(t)}function G$(e){let t=!1;const{container:r,target:o,arrow:n,strategy:a,middleware:i,placement:l,useTransform:d=!0,disableUpdateOnResize:f=!1}=e,p=r.ownerDocument.defaultView;if(!o||!r||!p)return{updatePosition:()=>{},dispose:()=>{}};const h=f?null:U$(p,S=>{S.every(B=>B.contentRect.width>0&&B.contentRect.height>0)&&b()});let v=!0;const y=new Set;Object.assign(r.style,{position:"fixed",left:0,top:0,margin:0});const x=()=>{t||(v&&(zS(r).forEach(S=>y.add(S)),qt(o)&&zS(o).forEach(S=>y.add(S)),y.forEach(S=>{S.addEventListener("scroll",b,{passive:!0})}),h?.observe(r),qt(o)&&h?.observe(o),v=!1),Object.assign(r.style,{position:a}),R$(o,r,{placement:l,middleware:i,strategy:a}).then(({x:S,y:N,middlewareData:B,placement:C})=>{t||(H$({arrow:n,middlewareData:B}),V$({container:r,middlewareData:B,placement:C,coordinates:{x:S,y:N},lowPPI:(p?.devicePixelRatio||1)<=1,strategy:a,useTransform:d}),r.dispatchEvent(new CustomEvent(D1,{detail:{placement:C}})))}).catch(S=>{}))},b=$$(()=>x()),k=()=>{t=!0,p&&(p.removeEventListener("scroll",b),p.removeEventListener("resize",b)),y.forEach(S=>{S.removeEventListener("scroll",b)}),y.clear(),h?.disconnect()};return p&&(p.addEventListener("scroll",b,{passive:!0}),p.addEventListener("resize",b)),b(),{updatePosition:b,dispose:k}}function Z$(){return{name:"coverTarget",fn:e=>{const{placement:t,rects:r,x:o,y:n}=e,a=a6(t).side,i={x:o,y:n};switch(a){case"bottom":i.y-=r.reference.height;break;case"top":i.y+=r.reference.height;break;case"left":i.x+=r.reference.width;break;case"right":i.x-=r.reference.width;break}return i}}}function K$(e){const{hasScrollableElement:t,flipBoundary:r,container:o,fallbackPositions:n=[],isRtl:a}=e,i=n.reduce((l,d)=>{const{position:f,align:p}=Wi(d),h=l6(p,f,a);return h&&l.push(h),l},[]);return z$({...t&&{boundary:"clippingAncestors"},...r&&{altBoundary:!0,boundary:zy(o,r)},fallbackStrategy:"bestFit",...i.length&&{fallbackPlacements:i}})}function X$(){return{name:"intersectionObserver",fn:async e=>{const t=e.rects.floating,r=await j$(e,{altBoundary:!0}),o=r.top<t.height&&r.top>0,n=r.bottom<t.height&&r.bottom>0;return{data:{intersecting:o||n}}}}}const Y$=e=>({name:"resetMaxSize",fn({middlewareData:t,elements:r}){var o;if(!((o=t.resetMaxSize)===null||o===void 0)&&o.maxSizeAlreadyReset)return{};const{applyMaxWidth:n,applyMaxHeight:a}=e;return n&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-width"),r.floating.style.removeProperty("width")),a&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-height"),r.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function J$(e,t){const{container:r,overflowBoundary:o,overflowBoundaryPadding:n,isRtl:a}=t;return T$({...n&&{padding:s6(n,a)},...o&&{altBoundary:!0,boundary:zy(r,o)},apply({availableHeight:i,availableWidth:l,elements:d,rects:f}){const p=(y,x,b)=>{if(y&&(d.floating.style.setProperty("box-sizing","border-box"),d.floating.style.setProperty(`max-${x}`,`${b}px`),f.floating[x]>b)){d.floating.style.setProperty(x,`${b}px`);const k=x==="width"?"x":"y";d.floating.style.getPropertyValue(`overflow-${k}`)||d.floating.style.setProperty(`overflow-${k}`,"auto")}},{applyMaxWidth:h,applyMaxHeight:v}=e;p(h,"width",l),p(v,"height",i)}})}function Q$(e){return!e||typeof e=="number"||typeof e=="object"?e:({rects:{floating:t,reference:r},placement:o})=>{const{position:n,alignment:a}=O$(o);return e({positionedRect:t,targetRect:r,position:n,alignment:a})}}function eH(e){const t=Q$(e);return C$(t)}function tH(e){const{hasScrollableElement:t,shiftToCoverTarget:r,disableTether:o,overflowBoundary:n,container:a,overflowBoundaryPadding:i,isRtl:l}=e;return N$({...t&&{boundary:"clippingAncestors"},...r&&{crossAxis:!0,limiter:NS({crossAxis:!0,mainAxis:!1})},...o&&{crossAxis:o==="all",limiter:NS({crossAxis:o!=="all",mainAxis:!1})},...i&&{padding:s6(i,l)},...n&&{altBoundary:!0,boundary:zy(a,n)}})}const TS="--fui-match-target-size";function rH(){return{name:"matchTargetSize",fn:async e=>{const{rects:{reference:t,floating:r},elements:{floating:o},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:n=!1}={}}}=e;if(t.width===r.width||n)return{};const{width:a}=t;return o.style.setProperty(TS,`${a}px`),o.style.width||(o.style.width=`var(${TS})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function oH(e,t){const{align:r,arrowPadding:o,autoSize:n,coverTarget:a,disableUpdateOnResize:i,flipBoundary:l,offset:d,overflowBoundary:f,pinned:p,position:h,unstable_disableTether:v,strategy:y,overflowBoundaryPadding:x,fallbackPositions:b,useTransform:k,matchTargetSize:S,shiftToCoverTarget:N}=t;return m.useCallback((B,C)=>e({container:B,arrow:C,options:{autoSize:n,disableUpdateOnResize:i,matchTargetSize:S,offset:d,strategy:y,coverTarget:a,flipBoundary:l,overflowBoundary:f,useTransform:k,overflowBoundaryPadding:x,pinned:p,arrowPadding:o,align:r,fallbackPositions:b,shiftToCoverTarget:N,position:h,unstable_disableTether:v}}),[n,i,S,d,y,a,l,f,k,x,p,o,r,b,N,h,v,e])}function nH(e){const{dir:t,targetDocument:r}=Ve(),o=t==="rtl",n=oH(LL(),e),{positionFixed:a}=e;return m.useCallback((i,l)=>{const d=P$(i),f=n(i,l),{autoSize:p,disableUpdateOnResize:h,matchTargetSize:v,offset:y,coverTarget:x,flipBoundary:b,overflowBoundary:k,useTransform:S,overflowBoundaryPadding:N,pinned:B,position:C,arrowPadding:z,strategy:R,align:E,fallbackPositions:D,shiftToCoverTarget:I,unstable_disableTether:M}=f,O=W$(p),H=[O&&Y$(O),v&&rH(),y&&eH(y),x&&Z$(),!B&&K$({container:i,flipBoundary:b,hasScrollableElement:d,isRtl:o,fallbackPositions:D}),tH({container:i,hasScrollableElement:d,overflowBoundary:k,disableTether:M,overflowBoundaryPadding:N,isRtl:o,shiftToCoverTarget:I}),O&&J$(O,{container:i,overflowBoundary:k,overflowBoundaryPadding:N,isRtl:o}),X$(),l&&_$({element:l,padding:z}),CS({strategy:"referenceHidden"}),CS({strategy:"escaped"}),!1].filter(Boolean);return{placement:l6(E,C,o),middleware:H,strategy:R??a?"fixed":"absolute",disableUpdateOnResize:h,useTransform:S}},[n,o,r,a])}function qs(e){"use no memo";const t=m.useRef(null),r=m.useRef(null),o=m.useRef(null),n=m.useRef(null),a=m.useRef(null),{enabled:i=!0}=e,l=nH(e),d=m.useCallback(()=>{t.current&&t.current.dispose(),t.current=null;var x;const b=(x=o.current)!==null&&x!==void 0?x:r.current;i&&eg()&&b&&n.current&&(t.current=G$({container:n.current,target:b,arrow:a.current,...l(n.current,a.current)}))},[i,l]),f=de(x=>{o.current=x,d()});m.useImperativeHandle(e.positioningRef,()=>({updatePosition:()=>{var x;return(x=t.current)===null||x===void 0?void 0:x.updatePosition()},setTarget:x=>{e.target,f(x)}}),[e.target,f]),$t(()=>{var x;f((x=e.target)!==null&&x!==void 0?x:null)},[e.target,f]),$t(()=>{d()},[d]);const p=cv(null,x=>{r.current!==x&&(r.current=x,d())}),h=de(x=>{var b;return(b=e.onPositioningEnd)===null||b===void 0?void 0:b.call(e,x)}),v=cv(null,x=>{if(n.current!==x){var b;(b=n.current)===null||b===void 0||b.removeEventListener(D1,h),x?.addEventListener(D1,h),n.current=x,d()}}),y=cv(null,x=>{a.current!==x&&(a.current=x,d())});return{targetRef:p,containerRef:v,arrowRef:y}}const c6=e=>{const[t,r]=m.useState(e);return[t,n=>{if(n==null){r(void 0);return}let a;n instanceof MouseEvent?a=n:a=n.nativeEvent;const i=FL(a);r(i)}]};function aH(){let e=!1;const t=[];return{isActive(){return e},toggleActive(r){e!==r&&(e=r,t.forEach(o=>o(e)))},subscribe(r){return t.push(r),()=>{const o=t.indexOf(r);o>-1&&t.splice(o,1)}}}}var uv={exports:{}},dv={};var _S;function iH(){if(_S)return dv;_S=1;var e=Gm();function t(h,v){return h===v&&(h!==0||1/h===1/v)||h!==h&&v!==v}var r=typeof Object.is=="function"?Object.is:t,o=e.useState,n=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function l(h,v){var y=v(),x=o({inst:{value:y,getSnapshot:v}}),b=x[0].inst,k=x[1];return a(function(){b.value=y,b.getSnapshot=v,d(b)&&k({inst:b})},[h,y,v]),n(function(){return d(b)&&k({inst:b}),h(function(){d(b)&&k({inst:b})})},[h]),i(y),y}function d(h){var v=h.getSnapshot;h=h.value;try{var y=v();return!r(h,y)}catch{return!0}}function f(h,v){return v()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:l;return dv.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,dv}var RS;function sH(){return RS||(RS=1,uv.exports=iH()),uv.exports}var lH=sH();function DS(e,t){return{topLeft:[e.left-t[0],e.top-t[1]],topRight:[e.right-t[0],e.top-t[1]],bottomRight:[e.right-t[0],e.bottom-t[1]],bottomLeft:[e.left-t[0],e.bottom-t[1]]}}const ES=20;function u6(e,t){return Math.sqrt((e[0]-t[0])**2+(e[1]-t[1])**2)}function cH(e,t){const r=u6(e,t);return r===0?[0,0]:[(e[0]-t[0])/r,(e[1]-t[1])/r]}function uH(e,t,r){const o=[(e[0]+t[0])/2,(e[1]+t[1])/2],n=cH([r[0],r[1]],[o[0],o[1]]),a=u6([o[0],o[1]],[r[0],r[1]]);return[o[0]+n[0]*(a+ES),o[1]+n[1]*(a+ES)]}function np(e){return`M ${e} z`}const dH=Y({wrapper:{mc9l5x:"fjseox",Bqenvij:"fniina8",a9b677:"f3tsq5r",Bkecrkj:"f1aehjj5"},wrapperActive:{mc9l5x:"ftgm304"},svg:{Bkfmm31:"f1au8mb3",Bkecrkj:"f1aehjj5",qhf8xq:"f19dog8a",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"]},triangle:{Bkecrkj:"f1cguypg"},triangleDebug:{Bceei9c:"f7116n6",Bkfmm31:"f1xab38x"},rectDebug:{Bkfmm31:"fyegryc"}},{d:[".fjseox{display:none;}",".fniina8{height:0;}",".f3tsq5r{width:0;}",".f1aehjj5{pointer-events:none;}",".ftgm304{display:block;}",".f1au8mb3{fill:transparent;}",".f19dog8a{position:fixed;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f1cguypg{pointer-events:auto;}",".f7116n6{cursor:crosshair;}",".f1xab38x{fill:color-mix(in srgb, var(--colorPaletteGreenBackground3) 20%, transparent);}",".fyegryc{fill:color-mix(in srgb, var(--colorPaletteRedBackground3) 20%, transparent);}"]});function PS(e){if(e.width<=0||e.height<=0)return"";let t="";return t+=`M ${e.x},${e.y} `,t+=`V ${e.y+e.height} `,t+=`H ${e.x+e.width} `,t+=`V ${e.y} `,t+=`H ${e.x} `,t+="Z ",t}function fH(e,t,r,o){let n=`M 0,0 H ${e} V ${t} H 0 Z `;return n+=PS(r),n+=PS(o),n}const MS={top:0,right:0,bottom:0,left:0,width:0,height:0,x:0,y:0,toJSON(){return""}};function qS(e,t){return e.top===t.top&&e.right===t.right&&e.bottom===t.bottom&&e.left===t.left&&e.width===t.width&&e.height===t.height}function pH(e,t){return e[0]===t[0]&&e[1]===t[1]}const mH=m.memo(e=>{const{debug:t,onMouseEnter:r,onMouseMove:o,onMouseLeave:n,stateStore:a}=e,i=bt(),l=dH(),d=lH.useSyncExternalStore(a.subscribe,a.isActive),f=m.useRef(null),[p,h]=m.useState(()=>({containerRect:MS,targetRect:MS,mouseCoordinates:[0,0]}));m.useImperativeHandle(e.imperativeRef,()=>({updateSVG(Z){h(q=>qS(q.containerRect,Z.containerRect)&&qS(q.targetRect,Z.targetRect)&&pH(q.mouseCoordinates,Z.mouseCoordinates)?q:Z)}}),[]);const{containerRect:v,targetRect:y,mouseCoordinates:x}=p,b=Math.min(y.top,v.top),k=Math.min(y.left,v.left),S=Math.max(y.bottom,v.bottom),N=Math.max(y.right,v.right),B=DS(v,[k,b]),C=DS(y,[k,b]),z=[x[0]-k,x[1]-b],R=uH(B.topLeft,B.bottomRight,z),E=[R,B.topLeft,B.topRight],D=[R,B.topRight,B.bottomRight],I=[R,B.bottomRight,B.bottomLeft],M=[R,B.bottomLeft,B.topLeft],O=N-k,H=S-b,$=fH(O,H,{x:C.topLeft[0],y:C.topLeft[1],width:y.width,height:y.height},{x:B.topLeft[0],y:B.topLeft[1],width:v.width,height:v.height});return m.createElement("div",{className:F(l.wrapper,d&&l.wrapperActive),"data-safe-zone":""},d?m.createElement("svg",{"aria-hidden":!0,className:l.svg,xmlns:"http://www.w3.org/2000/svg",ref:f,style:{width:`${O}px`,height:`${H}px`,transform:`translate(${k}px, ${b}px)`}},m.createElement("g",{className:F(l.triangle,t&&l.triangleDebug),clipPath:`url(#${i})`,onMouseEnter:r,onMouseMove:o,onMouseLeave:n},m.createElement("path",{d:np(E)}),m.createElement("path",{d:np(D)}),m.createElement("path",{d:np(I)}),m.createElement("path",{d:np(M)})),m.createElement("clipPath",{id:i},m.createElement("path",{d:$})),t&&m.createElement("path",{className:l.rectDebug,d:$})):null)}),gH=2e3;function hH({debug:e=!1,disabled:t=!1,onSafeZoneEnter:r,onSafeZoneMove:o,onSafeZoneLeave:n,onSafeZoneTimeout:a,timeout:i=1500}={}){const[l]=m.useState(aH),d=m.useRef(null),f=m.useRef(null),p=m.useRef(null),[h,v]=Ga(),[y,x]=Vu(),b=m.useRef({x:0,y:0}),k=m.useMemo(()=>{if(t)return()=>{};let z=null;function R(){v(),l.toggleActive(!1)}return E=>{E===null&&z?.removeEventListener("mouseenter",R),z=E,E?.addEventListener("mouseenter",R)}},[v,t,l]),S=m.useMemo(()=>{if(t)return()=>{};let z=null;function R(E){b.current={x:E.clientX,y:E.clientY},l.isActive()||l.toggleActive(!0),h(()=>{l.toggleActive(!1)},gH)}return E=>{E===null&&(x(),v(),z?.removeEventListener("mousemove",R)),z=E,E?.addEventListener("mousemove",R)}},[x,v,t,l,h]),N=de(z=>{r?.(z),h(()=>{l.toggleActive(!1),a?.()},i)}),B=de(z=>{h(()=>{l.toggleActive(!1),a?.()},i),o?.(z)}),C=de(z=>{n?.(z)});return m.useEffect(()=>l.subscribe(z=>{if(z){let R=function(){const E=f.current,D=p.current;if(E&&D){var I;(I=d.current)===null||I===void 0||I.updateSVG({containerRect:E.getBoundingClientRect(),mouseCoordinates:[b.current.x,b.current.y],targetRect:D.getBoundingClientRect()})}y(R)};R();return}x()}),[x,y,l]),{containerRef:Le(f,k),targetRef:Le(p,S),elementToRender:m.useMemo(()=>t?null:m.createElement(mH,{debug:e,onMouseEnter:N,onMouseMove:B,onMouseLeave:C,imperativeRef:d,stateStore:l}),[t,e,N,B,C,l])}}const Ty=Vn(void 0),d6={open:!1,setOpen:()=>null,toggleOpen:()=>null,triggerRef:{current:null},contentRef:{current:null},arrowRef:{current:null},openOnContext:!1,openOnHover:!1,size:"medium",trapFocus:!1,inline:!1};Ty.Provider;const Kt=e=>pa(Ty,(t=d6)=>e(t)),f6=(e,t)=>{const r=Kt(i=>i.size),o=Kt(i=>i.appearance),n=dg(),a=vH(e,Le(t,n));return{appearance:o,size:r,...a}},vH=(e,t)=>{const r=Kt(k=>k.contentRef),o=Kt(k=>k.openOnHover),n=Kt(k=>k.setOpen),a=Kt(k=>k.mountNode),i=Kt(k=>k.arrowRef),l=Kt(k=>k.withArrow),d=Kt(k=>k.trapFocus),f=Kt(k=>k.inertTrapFocus),p=Kt(k=>k.inline),{modalAttributes:h}=Sd({trapFocus:d,legacyTrapFocus:!f,alwaysFocusable:!d}),v={inline:p,withArrow:l,arrowRef:i,mountNode:a,components:{root:"div"},root:me({ref:Le(t,r),role:d?"dialog":"group","aria-modal":d?!0:void 0,...h,...e},{elementType:"div"})},{onMouseEnter:y,onMouseLeave:x,onKeyDown:b}=v.root;return v.root.onMouseEnter=k=>{o&&n(k,!0),y?.(k)},v.root.onMouseLeave=k=>{o&&n(k,!1),x?.(k)},v.root.onKeyDown=k=>{var S;k.key==="Escape"&&(!((S=r.current)===null||S===void 0)&&S.contains(k.target))&&(k.preventDefault(),n(k,!1)),b?.(k)},v};function p6(e){return qt(e)?{element:e}:typeof e=="object"?e===null?{element:null}:e:{}}const bH=Yp.useInsertionEffect?Yp.useInsertionEffect:$t,m6=Symbol.for("fui-portal-style-ref-count"),yH="[data-portal-node]{position:absolute;top:0;left:0;right:0;z-index:1000000}",g6="fui-portal-styles";function h6(e){var t;return(t=e[m6])!==null&&t!==void 0?t:0}function q1(e,t){e[m6]=t}function xH(e){var t;const r=h6(e);if(r>0){q1(e,r+1);return}const o=e.createElement("style");o.id=g6,e.head.prepend(o),(t=o.sheet)===null||t===void 0||t.insertRule(yH),q1(e,1)}function wH(e){const t=h6(e);if(t===0)return;const r=t-1;if(r===0){var o;(o=e.head.querySelector(`#${g6}`))===null||o===void 0||o.remove()}q1(e,r)}function kH(e){const{targetDocument:t}=Ve();bH(()=>{if(!(e||!t))return xH(t),()=>wH(t)},[e,t])}const v6=Yp.useInsertionEffect,SH=e=>{"use no memo";const{className:t,dir:r,focusVisibleRef:o,targetNode:n}=e,a=m.useMemo(()=>{if(n===void 0||e.disabled)return null;const i=n.ownerDocument.createElement("div");return n.appendChild(i),i},[n,e.disabled]);return m.useMemo(()=>{a&&(a.className=t,a.setAttribute("dir",r),a.setAttribute("data-portal-node","true"),o.current=a)},[t,r,a,o]),m.useEffect(()=>()=>{a?.remove()},[a]),a},BH=()=>{let e;function t(o,n){return e||(n&&(e=o.ownerDocument.createElement("div"),o.appendChild(e)),e)}function r(){e&&(e.remove(),e=void 0)}return{get:t,dispose:r}},jH=e=>{"use no memo";const{className:t,dir:r,focusVisibleRef:o,targetNode:n}=e,[a]=m.useState(BH),i=m.useMemo(()=>n===void 0||e.disabled?null:new Proxy({},{get(l,d){if(d==="nodeType")return 1;if(d==="remove"){const h=a.get(n,!1);return h&&h.childNodes.length===0&&a.dispose(),()=>{}}const f=a.get(n,!0),p=f?f[d]:void 0;return typeof p=="function"?p.bind(f):p},set(l,d,f){const p=d==="_virtual"||d==="focusVisible",h=p?a.get(n,!1):a.get(n,!0);return p&&!h?!0:h?(Object.assign(h,{[d]:f}),!0):!1}}),[a,n,e.disabled]);return v6(()=>{if(i)return i.setAttribute("class",t),i.setAttribute("dir",r),i.setAttribute("data-portal-node","true"),o.current=i,()=>{i.removeAttribute("class"),i.removeAttribute("dir")}},[t,r,i,o]),m.useEffect(()=>()=>{i?.remove()},[i]),i},CH=v6?jH:SH,NH=e=>{"use no memo";const{targetDocument:t,dir:r}=Ve(),o=CP(),n=ry(),a=hP(),i={dir:r,disabled:e.disabled,focusVisibleRef:n,className:[a,e.className].filter(Boolean).join(" "),targetNode:o??t?.body};return kH(e.disabled),CH(i)},zH=e=>{const{element:t,className:r}=p6(e.mountNode),o=m.useRef(null),n=NH({disabled:!!t,className:r}),a=t??n,i={children:e.children,mountNode:a,virtualParentRootRef:o};return m.useEffect(()=>{if(!a)return;const l=o.current,d=a.contains(l);if(l&&!d)return s2(a,l),()=>{s2(a,void 0)}},[o,a]),i};var _a=jj();const TH=e=>m.createElement("span",{hidden:!0,ref:e.virtualParentRootRef},e.mountNode&&_a.createPortal(m.createElement(m.Fragment,null,e.children,m.createElement("span",{hidden:!0})),e.mountNode)),ma=e=>{const t=zH(e);return TH(t)};ma.displayName="Portal";const b6=e=>{const t=Ie(e.root,{children:[e.withArrow&&G("div",{ref:e.arrowRef,className:e.arrowClassName}),e.root.children]});return e.inline?t:G(ma,{mountNode:e.mountNode,children:t})},_H={root:"fui-PopoverSurface"},RH={small:6,medium:8,large:8},DH=Y({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",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:"f9ggezi",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",Bhu2qc9:"fymb6k8"},inline:{Bj3rh1h:"f19g0ac"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},brand:{De3pzq:"ffp7eso",sj55zd:"f1phragk"},smallPadding:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1sy4kr4"},mediumPadding:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f4zyqsv"},largePadding:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fop8ug2"},smallArrow:{rhnwrx:"f1s3jn22",Bdy53xb:"fv40uqz"},mediumLargeArrow:{rhnwrx:"f1f72gjr",Bdy53xb:"f69yoe5"},arrow:{B7ck84d:"f1ewtqcl",qhf8xq:"f1euv43f",Bj3rh1h:"f1bsuimh",De3pzq:"f1u2r49w",B2eet1l:"fqhgnl",Beyfa6y:"f17bz04i",Bz10aip:"f36o3x3",Bqenvij:"fzofk8q",a9b677:"f1wbx1ie",Ftih45:"f1wl9k8s",Br0sdwz:"f1aocrix",cmx5o7:"f1ljr5q2",susq4k:0,Biibvgv:0,Bicfajf:0,qehafq:0,Brs5u8j:"f155f1qt",Ccq8qp:"f9mhzq7",Baz25je:"fr6rhvx",Bcgcnre:0,Bqjgrrk:0,qa3bma:0,y0oebl:0,Biqmznv:0,Bm6vgfq:0,Bbv0w2i:0,uvfttm:0,eqrjj:0,Bk5zm6e:0,m598lv:0,B4f6apu:0,ydt019:0,Bq4z7u6:0,Bdkvgpv:0,B0qfbqy:0,kj8mxx:"f1kc0wz4",r59vdv:"fgq90dz",Bkw5xw4:"fq0y47f",hl6cv3:"f1pwrbz6",aea9ga:"f1hxxcvm",yayu3t:"fw8rgyo",Bhsv975:"f1wnzycx",rhl9o9:"f1730wal",B7gxrvb:"f1fy4ixr",B6q6orb:"fobkauc",B0lu1f8:"f16bqv1l"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f9ggezi{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fymb6k8{filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 8px 16px var(--colorNeutralShadowKey));}",".f19g0ac{z-index:1;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",[".f1sy4kr4{padding:12px;}",{p:-1}],[".f4zyqsv{padding:16px;}",{p:-1}],[".fop8ug2{padding:20px;}",{p:-1}],".f1s3jn22{--fui-positioning-arrow-height:8.484px;}",".fv40uqz{--fui-positioning-arrow-offset:-4.242px;}",".f1f72gjr{--fui-positioning-arrow-height:11.312px;}",".f69yoe5{--fui-positioning-arrow-offset:-5.656px;}",".f1ewtqcl{box-sizing:border-box;}",".f1euv43f{position:absolute;}",".f1bsuimh{z-index:-1;}",".f1u2r49w{background-color:inherit;}",".fqhgnl{background-clip:content-box;}",".f17bz04i{border-bottom-left-radius:var(--borderRadiusSmall);}",".f36o3x3{transform:rotate(var(--fui-positioning-arrow-angle));}",".fzofk8q{height:var(--fui-positioning-arrow-height);}",".f1wbx1ie{width:var(--fui-positioning-arrow-height);}",'.f1wl9k8s::before{content:"";}',".f1aocrix::before{display:block;}",".f1ljr5q2::before{background-color:inherit;}",[".f155f1qt::before{margin:-1px;}",{p:-1}],".f9mhzq7::before{width:100%;}",".fr6rhvx::before{height:100%;}",[".f1kc0wz4::before{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fgq90dz::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".fq0y47f::before{clip-path:polygon(0% 0%, 100% 100%, 0% 100%);}",'[data-popper-placement^="top"] .f1pwrbz6{bottom:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="top"] .f1hxxcvm{--fui-positioning-arrow-angle:-45deg;}','[data-popper-placement^="right"] .fw8rgyo{left:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="right"] .f1wnzycx{--fui-positioning-arrow-angle:45deg;}','[data-popper-placement^="bottom"] .f1730wal{top:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="bottom"] .f1fy4ixr{--fui-positioning-arrow-angle:135deg;}','[data-popper-placement^="left"] .fobkauc{right:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="left"] .f16bqv1l{--fui-positioning-arrow-angle:225deg;}']}),y6=e=>{"use no memo";const t=DH();return e.root.className=F(_H.root,t.root,e.inline&&t.inline,e.size==="small"&&t.smallPadding,e.size==="medium"&&t.mediumPadding,e.size==="large"&&t.largePadding,e.appearance==="inverted"&&t.inverted,e.appearance==="brand"&&t.brand,e.root.className),e.arrowClassName=F(t.arrow,e.size==="small"?t.smallArrow:t.mediumLargeArrow),e},Ui=m.forwardRef((e,t)=>{const r=f6(e,t);return y6(r),xe("usePopoverSurfaceStyles_unstable")(r),b6(r)});Ui.displayName="PopoverSurface";const EH=4,FS=it.durationSlower,IS=it.curveDecelerateMid,AS=Za(({distance:e=10})=>({enter:[ua({duration:FS,easing:IS,direction:"enter"}),{...OC({duration:FS,easing:IS,direction:"enter",outX:`calc(var(${sm}, 0px) * ${e})`,outY:`calc(var(${lm}, 0px) * ${e})`}),composite:"accumulate"}],exit:[]})),x6=e=>{const{appearance:t,size:r="medium"}=e,o=Wi(e.positioning),n=e.withArrow&&!o.coverTarget,{targetDocument:a}=Ve(),i=WC({targetDocument:a,onPositioningEnd:o.onPositioningEnd}),l=PH({...e,positioning:{...o,onPositioningEnd:i,...n?{offset:i6(o.offset,RH[r])}:{}}});return{components:{surfaceMotion:AS},appearance:t,size:r,...l,surfaceMotion:zd(e.surfaceMotion,{elementType:AS,defaultProps:{visible:l.open,appear:!0,unmountOnExit:!0}})}},PH=e=>{const[t,r]=c6(),o={contextTarget:t,setContextTarget:r,...e},n=m.Children.toArray(e.children);let a,i;n.length===2?(a=n[0],i=n[1]):n.length===1&&(i=n[0]);const[l,d]=MH(o),[f,p]=Ga(),h=de((z,R)=>{if(p(),!(z instanceof Event)&&z.persist&&z.persist(),z.type==="mouseleave"){var E;f(()=>{d(z,R)},(E=e.mouseLeaveDelay)!==null&&E!==void 0?E:500)}else d(z,R)}),v=m.useCallback(z=>{h(z,!l)},[h,l]),y=qH(o),{targetDocument:x}=Ve();var b;xd({contains:Mi,element:x,callback:z=>h(z,!1),refs:[y.triggerRef,y.contentRef],disabled:!l,disabledFocusOnIframe:!(!((b=e.closeOnIframeFocus)!==null&&b!==void 0)||b)});const k=o.openOnContext||o.closeOnScroll;Qb({contains:Mi,element:x,callback:z=>h(z,!1),refs:[y.triggerRef,y.contentRef],disabled:!l||!k});const{findFirstFocusable:S}=hn(),N=Kq();m.useEffect(()=>{if(e.unstable_disableAutoFocus)return;const z=y.contentRef.current;if(l&&z){var R;const E=!isNaN((R=z.getAttribute("tabIndex"))!==null&&R!==void 0?R:void 0),D=E?z:S(z);D?.focus(),E&&N(z)}},[S,N,l,y.contentRef,e.unstable_disableAutoFocus]);var B,C;return{...o,...y,inertTrapFocus:(B=e.inertTrapFocus)!==null&&B!==void 0?B:e.legacyTrapFocus===void 0?!1:!e.legacyTrapFocus,popoverTrigger:a,popoverSurface:i,open:l,setOpen:h,toggleOpen:v,setContextTarget:r,contextTarget:t,inline:(C=e.inline)!==null&&C!==void 0?C:!1}};function MH(e){"use no memo";const t=de((i,l)=>{var d;return(d=e.onOpenChange)===null||d===void 0?void 0:d.call(e,i,l)}),[r,o]=Xt({state:e.open,defaultState:e.defaultOpen,initialState:!1});e.open=r!==void 0?r:e.open;const n=e.setContextTarget,a=m.useCallback((i,l)=>{l&&i.type==="contextmenu"&&n(i),l||n(void 0),o(l),t?.(i,{open:l})},[o,t,n]);return[r,a]}function qH(e){"use no memo";const t={position:"above",align:"center",arrowPadding:2*EH,target:e.openOnContext?e.contextTarget:void 0,...Wi(e.positioning)};t.coverTarget&&(e.withArrow=!1);const{targetRef:r,containerRef:o,arrowRef:n}=qs(t);return{triggerRef:r,contentRef:o,arrowRef:n}}function w6(e){const{appearance:t,arrowRef:r,contentRef:o,inline:n,mountNode:a,open:i,openOnContext:l,openOnHover:d,setOpen:f,size:p,toggleOpen:h,trapFocus:v,triggerRef:y,withArrow:x,inertTrapFocus:b}=e;return{popover:m.useMemo(()=>({appearance:t,arrowRef:r,contentRef:o,inline:n,mountNode:a,open:i,openOnContext:l,openOnHover:d,setOpen:f,size:p,toggleOpen:h,trapFocus:v,triggerRef:y,withArrow:x,inertTrapFocus:b}),[t,r,o,n,a,i,l,d,f,p,h,v,y,x,b])}}const k6=(e,t)=>{var r;return Ie(Ty.Provider,{value:(r=t?.popover)!==null&&r!==void 0?r:d6,children:[e.popoverTrigger,e.popoverSurface&&G(e.surfaceMotion,{children:G(fg,{children:e.popoverSurface})})]})},Gi=e=>{const t=x6(e),r=w6(t);return k6(t,r)};Gi.displayName="Popover";const FH=e=>{const{children:t,disableButtonEnhancement:r=!1}=e,o=tc(t),n=Kt(B=>B.open),a=Kt(B=>B.setOpen),i=Kt(B=>B.toggleOpen),l=Kt(B=>B.triggerRef),d=Kt(B=>B.openOnHover),f=Kt(B=>B.openOnContext),{triggerAttributes:p}=Sd(),h=B=>{f&&(B.preventDefault(),a(B,!0))},v=B=>{f||i(B)},y=B=>{B.key===Wn&&n&&!B.isDefaultPrevented()&&(a(B,!1),B.preventDefault())},x=B=>{d&&a(B,!0)},b=B=>{d&&a(B,!1)},k={...p,"aria-expanded":`${n}`,...o?.props,onMouseEnter:de(Re(o?.props.onMouseEnter,x)),onMouseLeave:de(Re(o?.props.onMouseLeave,b)),onContextMenu:de(Re(o?.props.onContextMenu,h)),ref:Le(l,ec(o))},S={...k,onClick:de(Re(o?.props.onClick,v)),onKeyDown:de(Re(o?.props.onKeyDown,y))},N=La(o?.type==="button"||o?.type==="a"?o.type:"div",S);return{children:wd(e.children,La(o?.type==="button"||o?.type==="a"?o.type:"div",f?k:r?S:N))}},IH=e=>e.children,Ya=e=>{const t=FH(e);return IH(t)};Ya.displayName="PopoverTrigger";Ya.isFluentTriggerComponent=!0;const AH=6,OH=4,LH=e=>-1,$H=e=>{};function HH(e){const{targetDocument:t}=Ve(),r=t?.defaultView,o=r?r.setTimeout:LH,n=r?r.clearTimeout:$H,a=m.useRef(void 0),i=m.useCallback((d,f)=>(a.current!==void 0&&n(a.current),a.current=o(d,f??0),a.current),[n,o]),l=m.useCallback(()=>{a.current!==void 0&&(n(a.current),a.current=void 0)},[n]);return m.useEffect(()=>{const d=e.current;return()=>{(!d||!d.isConnected)&&l()}},[l,e]),[i,l]}const VH=e=>{"use no memo";var t,r,o,n,a,i,l;const d=yP(),f=MP(),{targetDocument:p}=Ve(),[h,v]=Xt({state:e.visible,initialState:!1}),{children:y,content:x,withArrow:b=!1,positioning:k="above",onVisibleChange:S,relationship:N,showDelay:B=250,hideDelay:C=250,mountNode:z}=e,R={withArrow:b,positioning:k,showDelay:B,hideDelay:C,relationship:N,visible:h,shouldRenderTooltip:h,mountNode:z,components:{content:"div"},content:me(x,{defaultProps:{role:"tooltip"},elementType:"div"})};R.content.id=bt("tooltip-",R.content.id);const E={enabled:R.visible,arrowPadding:2*OH,position:"above",align:"center",offset:4,...Wi(R.positioning)};R.withArrow&&(E.offset=i6(E.offset,AH));const{targetRef:D,containerRef:I,arrowRef:M}=qs(E),[O,H]=HH(I),$=m.useCallback((L,te)=>{H(),v(ue=>(te.visible!==ue&&S?.(L,te),te.visible))},[H,v,S]);R.content.ref=Le(R.content.ref,I),R.arrowRef=M,$t(()=>{if(h){var L;const te={hide:ne=>$(void 0,{visible:!1,documentKeyboardEvent:ne})};(L=d.visibleTooltip)===null||L===void 0||L.hide(),d.visibleTooltip=te;const ue=ne=>{ne.key===Wn&&!ne.defaultPrevented&&(te.hide(ne),ne.preventDefault())};return p?.addEventListener("keydown",ue,{capture:!0}),()=>{d.visibleTooltip===te&&(d.visibleTooltip=void 0),p?.removeEventListener("keydown",ue,{capture:!0})}}},[d,p,h,$]);const Z=m.useRef(!1),q=m.useCallback(L=>{if(L.type==="focus"&&Z.current){Z.current=!1;return}const te=d.visibleTooltip?0:R.showDelay;O(()=>{$(L,{visible:!0})},te),L.persist()},[O,$,R.showDelay,d]),A=Gq(),[X]=m.useState(()=>{const L=ue=>{var ne;!((ne=ue.detail)===null||ne===void 0)&&ne.isFocusedProgrammatically&&!A()&&(Z.current=!0)};let te=null;return ue=>{te?.removeEventListener($o,L),ue?.addEventListener($o,L),te=ue}}),V=m.useCallback(L=>{let te=R.hideDelay;L.type==="blur"&&(te=0,Z.current=p?.activeElement===L.target),O(()=>{$(L,{visible:!1})},te),L.persist()},[O,$,R.hideDelay,p]);R.content.onPointerEnter=Re(R.content.onPointerEnter,H),R.content.onPointerLeave=Re(R.content.onPointerLeave,V),R.content.onFocus=Re(R.content.onFocus,H),R.content.onBlur=Re(R.content.onBlur,V);const oe=tc(y),ee={},W=(oe==null||(t=oe.props)===null||t===void 0?void 0:t["aria-haspopup"])&&((oe==null||(r=oe.props)===null||r===void 0?void 0:r["aria-expanded"])===!0||(oe==null||(o=oe.props)===null||o===void 0?void 0:o["aria-expanded"])==="true");return N==="label"?typeof R.content.children=="string"?ee["aria-label"]=R.content.children:(ee["aria-labelledby"]=R.content.id,R.shouldRenderTooltip=!0):N==="description"&&(ee["aria-describedby"]=R.content.id,R.shouldRenderTooltip=!0),(f||W)&&(R.shouldRenderTooltip=!1),R.children=wd(y,{...ee,...oe?.props,ref:Le(ec(oe),X,E.target===void 0?D:void 0),onPointerEnter:de(Re(oe==null||(n=oe.props)===null||n===void 0?void 0:n.onPointerEnter,q)),onPointerLeave:de(Re(oe==null||(a=oe.props)===null||a===void 0?void 0:a.onPointerLeave,V)),onFocus:de(Re(oe==null||(i=oe.props)===null||i===void 0?void 0:i.onFocus,q)),onBlur:de(Re(oe==null||(l=oe.props)===null||l===void 0?void 0:l.onBlur,V))}),R},WH=e=>{"use no memo";const{appearance:t="normal",...r}=e,o=VH(r);return{appearance:t,...o}},UH=e=>Ie(m.Fragment,{children:[e.children,e.shouldRenderTooltip&&G(ma,{mountNode:e.mountNode,children:Ie(e.content,{children:[e.withArrow&&G("div",{ref:e.arrowRef,className:e.arrowClassName}),e.content.children]})})]}),GH={content:"fui-Tooltip__content"},ZH=Y({root:{mc9l5x:"fjseox",B7ck84d:"f1ewtqcl",B2u0y6b:"f132xexn",Bceei9c:"f158kwzp",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm",Btd35i7:"fokg9q4",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",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:"f9ggezi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1bzqsji",De3pzq:"fxugw4r",sj55zd:"f19n0e5",Bhu2qc9:"fxeb0a7"},visible:{mc9l5x:"ftgm304"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},arrow:{B7ck84d:"f1ewtqcl",qhf8xq:"f1euv43f",Bj3rh1h:"f1bsuimh",rhnwrx:"f1s3jn22",Bdy53xb:"fv40uqz",De3pzq:"f1u2r49w",B2eet1l:"fqhgnl",Beyfa6y:"f17bz04i",Bz10aip:"f36o3x3",Bqenvij:"fzofk8q",a9b677:"f1wbx1ie",Ftih45:"f1wl9k8s",Br0sdwz:"f1aocrix",cmx5o7:"f1ljr5q2",susq4k:0,Biibvgv:0,Bicfajf:0,qehafq:0,Brs5u8j:"f155f1qt",Ccq8qp:"f9mhzq7",Baz25je:"fr6rhvx",Bcgcnre:0,Bqjgrrk:0,qa3bma:0,y0oebl:0,Biqmznv:0,Bm6vgfq:0,Bbv0w2i:0,uvfttm:0,eqrjj:0,Bk5zm6e:0,m598lv:0,B4f6apu:0,ydt019:0,Bq4z7u6:0,Bdkvgpv:0,B0qfbqy:0,kj8mxx:"f1kc0wz4",r59vdv:"fgq90dz",Bkw5xw4:"fq0y47f",hl6cv3:"f1pwrbz6",aea9ga:"f1hxxcvm",yayu3t:"fw8rgyo",Bhsv975:"f1wnzycx",rhl9o9:"f1730wal",B7gxrvb:"f1fy4ixr",B6q6orb:"fobkauc",B0lu1f8:"f16bqv1l"}},{d:[".fjseox{display:none;}",".f1ewtqcl{box-sizing:border-box;}",".f132xexn{max-width:240px;}",".f158kwzp{cursor:default;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fokg9q4{overflow-wrap:break-word;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f9ggezi{border:1px solid var(--colorTransparentStroke);}",{p:-2}],[".f1bzqsji{padding:4px 11px 6px 11px;}",{p:-1}],".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fxeb0a7{filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 4px 8px var(--colorNeutralShadowKey));}",".ftgm304{display:block;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1euv43f{position:absolute;}",".f1bsuimh{z-index:-1;}",".f1s3jn22{--fui-positioning-arrow-height:8.484px;}",".fv40uqz{--fui-positioning-arrow-offset:-4.242px;}",".f1u2r49w{background-color:inherit;}",".fqhgnl{background-clip:content-box;}",".f17bz04i{border-bottom-left-radius:var(--borderRadiusSmall);}",".f36o3x3{transform:rotate(var(--fui-positioning-arrow-angle));}",".fzofk8q{height:var(--fui-positioning-arrow-height);}",".f1wbx1ie{width:var(--fui-positioning-arrow-height);}",'.f1wl9k8s::before{content:"";}',".f1aocrix::before{display:block;}",".f1ljr5q2::before{background-color:inherit;}",[".f155f1qt::before{margin:-1px;}",{p:-1}],".f9mhzq7::before{width:100%;}",".fr6rhvx::before{height:100%;}",[".f1kc0wz4::before{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fgq90dz::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".fq0y47f::before{clip-path:polygon(0% 0%, 100% 100%, 0% 100%);}",'[data-popper-placement^="top"] .f1pwrbz6{bottom:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="top"] .f1hxxcvm{--fui-positioning-arrow-angle:-45deg;}','[data-popper-placement^="right"] .fw8rgyo{left:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="right"] .f1wnzycx{--fui-positioning-arrow-angle:45deg;}','[data-popper-placement^="bottom"] .f1730wal{top:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="bottom"] .f1fy4ixr{--fui-positioning-arrow-angle:135deg;}','[data-popper-placement^="left"] .fobkauc{right:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="left"] .f16bqv1l{--fui-positioning-arrow-angle:225deg;}']}),KH=e=>{"use no memo";const t=ZH();return e.content.className=F(GH.content,t.root,e.appearance==="inverted"&&t.inverted,e.visible&&t.visible,e.content.className),e.arrowClassName=t.arrow,e},st=e=>{const t=WH(e);return KH(t),xe("useTooltipStyles_unstable")(t),UH(t)};st.displayName="Tooltip";st.isFluentTriggerComponent=!0;const bg=e=>{const{iconOnly:t,iconPosition:r}=e;return Ie(e.root,{children:[r!=="after"&&e.icon&&G(e.icon,{}),!t&&e.root.children,r==="after"&&e.icon&&G(e.icon,{})]})},S6=m.createContext(void 0),XH={},YH=S6.Provider,JH=()=>{var e;return(e=m.useContext(S6))!==null&&e!==void 0?e:XH},_y=(e,t)=>{const{size:r}=JH(),{appearance:o="secondary",shape:n="rounded",size:a=r??"medium",...i}=e,l=Ry(i,t);return{appearance:o,shape:n,size:a,...l}},Ry=(e,t)=>{const{icon:r,iconPosition:o="before",...n}=e,a=ke(r,{elementType:"span"});var i,l;return{disabled:(i=e.disabled)!==null&&i!==void 0?i:!1,disabledFocusable:(l=e.disabledFocusable)!==null&&l!==void 0?l:!1,iconPosition:o,iconOnly:!!(a?.children&&!e.children),components:{root:"button",icon:"span"},root:me(La(n.as,n),{elementType:"button",defaultProps:{ref:t,type:e.as!=="a"?"button":void 0}}),icon:a}},OS={root:"fui-Button",icon:"fui-Button__icon"},QH=Be("r1f29ykk",null,{r:[".r1f29ykk{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);}",".r1f29ykk:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1f29ykk:hover:active,.r1f29ykk:active:focus-visible{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1f29ykk[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){.r1f29ykk{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1f29ykk:focus{border-color:ButtonText;}.r1f29ykk:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1f29ykk:hover:active,.r1f29ykk:active:focus-visible{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1f29ykk[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),eV=Be("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);}"]),tV=Y({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",Bpjbzib:"fkoldzo"},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",Bpjbzib:"f1ksv2xa",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"],Brsut9c:"f1d6mv4x",By8wz76:"f1nz3ub2",Bcq6wej:"fag2qd2",Jcjdmf:["fmvhcg7","f14bpyus"],sc4o1m:"f1o3dhpw",Bosien3:["f14bpyus","fmvhcg7"],B7iucu3:"fqc85l4",B8gzw0y:"f1h3a8gf",Bbkh6qg:"fkiggi6",F230oe:"f8gmj8i",Bdw8ktp:["f1ap8nzx","fjag8bx"],Bj1xduy:"f1igan7k",Bhh2cfd:["fjag8bx","f1ap8nzx"],Bahaeuw:"f1v3eptx",Bv2bamp:"f1ysmecq",vxuvv6:"faulsx",Bli9q98:["f79t15f","f8qmx7k"],Bx2tt8t:"fbtzoaq",yad0b3:["f8qmx7k","f79t15f"],j2fop7:"fd4bjan"},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",Bpjbzib:"f1q1yqic",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"],Brsut9c:"fwga7ee",Bqou3pl:"f1nhwcv0",Bsnehw8:"f1gm6xmp",wsxvnf:"f1xxsver",Bahaeuw:"f1v3eptx",Buhizc3:"fivsta0",j2fop7:"fd4bjan",Bqabnb4:"f3m6zum"},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",Bpjbzib:"fkoldzo",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"],Brsut9c:"f1l983o9",Bqou3pl:"f1nhwcv0",Bsnehw8:"f1gm6xmp",Bbkh6qg:"fxoo9op",Bahaeuw:"f1v3eptx",Bv2bamp:"f1i0gk12",j2fop7:"fd4bjan"},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);}",".fkoldzo:hover:active,.fkoldzo:active:focus-visible{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);}",".f1ksv2xa:hover:active,.f1ksv2xa:active:focus-visible{background-color:var(--colorBrandBackgroundPressed);}",".fhvnf4x:hover:active,.fhvnf4x:active:focus-visible{border-top-color:transparent;}",".fb6swo4:hover:active,.fb6swo4:active:focus-visible{border-right-color:transparent;}",".f232fm2:hover:active,.f232fm2:active:focus-visible{border-left-color:transparent;}",".f1klyf7k:hover:active,.f1klyf7k:active:focus-visible{border-bottom-color:transparent;}",".f1d6mv4x:hover:active,.f1d6mv4x:active:focus-visible{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);}",".f1q1yqic:hover:active,.f1q1yqic:active:focus-visible{background-color:var(--colorSubtleBackgroundPressed);}",".fwga7ee:hover:active,.fwga7ee:active:focus-visible{color:var(--colorNeutralForeground2Pressed);}",".f1nhwcv0:hover:active .fui-Icon-filled,.f1nhwcv0:active:focus-visible .fui-Icon-filled{display:inline;}",".f1gm6xmp:hover:active .fui-Icon-regular,.f1gm6xmp:active:focus-visible .fui-Icon-regular{display:none;}",".f1xxsver:hover:active .fui-Button__icon,.f1xxsver:active:focus-visible .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1l983o9:hover:active,.f1l983o9:active:focus-visible{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1nz3ub2{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fag2qd2{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14bpyus{border-left-color:HighlightText;}.fmvhcg7{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o3dhpw{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fqc85l4{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkiggi6:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f8gmj8i:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ap8nzx:hover{border-right-color:Highlight;}.fjag8bx:hover{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1igan7k:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1v3eptx:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ysmecq:hover:active,.f1ysmecq:active:focus-visible{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.faulsx:hover:active,.faulsx:active:focus-visible{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f79t15f:hover:active,.f79t15f:active:focus-visible{border-right-color:Highlight;}.f8qmx7k:hover:active,.f8qmx7k:active:focus-visible{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbtzoaq:hover:active,.fbtzoaq:active:focus-visible{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fd4bjan:hover:active,.fd4bjan:active:focus-visible{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fivsta0:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3m6zum:hover:active .fui-Button__icon,.f3m6zum:active:focus-visible .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fxoo9op:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1i0gk12:hover:active,.f1i0gk12:active:focus-visible{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),rV=Y({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",Bpjbzib:"f1jct5ie",im15vp:"f13txml0",Hjvxdg:["f1ncddno","f1axfvow"],Gpfmf1:"f1z04ada",ustxxc:["f1axfvow","f1ncddno"],Brsut9c:"f1uhomfy",Bses4qk:"fy9mucy",Bqou3pl:"f1g9va8i",Bsnehw8:"fwgvudy",wsxvnf:"fom6jww"},highContrast:{By8wz76:"f14ptb23",Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"],B7iucu3:"f1cyfu5x",Grqk0h:"f127ot8j",h3ptyc:"f19etb0b",Buw724y:["f4f984j","fw441p0"],Buk7464:"f3d22hf",Hwei09:["fw441p0","f4f984j"],Bbkh6qg:"fj8k9ua",F230oe:"fifrq0d",Bdw8ktp:["f196mwp7","fnekfq"],Bj1xduy:"f1l6uprw",Bhh2cfd:["fnekfq","f196mwp7"],Bahaeuw:"fa9u7a5",Buhizc3:"f1m71e0y",Bv2bamp:"fw24f3",vxuvv6:"f1nznrny",Bli9q98:["fq8nxuu","f1ao3jkc"],Bx2tt8t:"ftoixeo",yad0b3:["f1ao3jkc","fq8nxuu"],j2fop7:"fpmuzpx",Bqabnb4:"f168odog"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",Bpjbzib:"f9r0db0"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"]},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"],Bpjbzib:"f9r0db0",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"]},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"],Bpjbzib:"f9r0db0",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"]}},{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);}",".f1jct5ie:hover:active,.f1jct5ie:active:focus-visible{background-color:var(--colorNeutralBackgroundDisabled);}",".f13txml0:hover:active,.f13txml0:active:focus-visible{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ncddno:hover:active,.f1ncddno:active:focus-visible{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1axfvow:hover:active,.f1axfvow:active:focus-visible{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1z04ada:hover:active,.f1z04ada:active:focus-visible{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1uhomfy:hover:active,.f1uhomfy:active:focus-visible{color:var(--colorNeutralForegroundDisabled);}",".fy9mucy:hover:active,.fy9mucy:active:focus-visible{cursor:not-allowed;}",".f1g9va8i:hover:active .fui-Icon-filled,.f1g9va8i:active:focus-visible .fui-Icon-filled{display:none;}",".fwgvudy:hover:active .fui-Icon-regular,.fwgvudy:active:focus-visible .fui-Icon-regular{display:inline;}",".fom6jww:hover:active .fui-Button__icon,.fom6jww:active:focus-visible .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f9r0db0:hover:active,.f9r0db0:active:focus-visible{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;}",".fhvnf4x:hover:active,.fhvnf4x:active:focus-visible{border-top-color:transparent;}",".fb6swo4:hover:active,.fb6swo4:active:focus-visible{border-right-color:transparent;}",".f232fm2:hover:active,.f232fm2:active:focus-visible{border-left-color:transparent;}",".f1klyf7k:hover:active,.f1klyf7k:active:focus-visible{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f14ptb23{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f127ot8j .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f19etb0b:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4f984j:focus{border-right-color:GrayText;}.fw441p0:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3d22hf:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fj8k9ua:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fifrq0d:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f196mwp7:hover{border-right-color:GrayText;}.fnekfq:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1l6uprw:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fa9u7a5:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1m71e0y:hover .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fw24f3:hover:active,.fw24f3:active:focus-visible{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nznrny:hover:active,.f1nznrny:active:focus-visible{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ao3jkc:hover:active,.f1ao3jkc:active:focus-visible{border-left-color:GrayText;}.fq8nxuu:hover:active,.fq8nxuu:active:focus-visible{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ftoixeo:hover:active,.ftoixeo:active:focus-visible{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fpmuzpx:hover:active,.fpmuzpx:active:focus-visible{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f168odog:hover:active .fui-Button__icon,.f168odog:active:focus-visible .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),oV=Y({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"],Bqsb82s:["fixhny3","f18mfu3r"],jg1oma:"feygou5"},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){.f18mfu3r[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;}.fixhny3[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){.feygou5[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),nV=Y({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;}"]}),aV=Y({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);}"]}),_d=e=>{"use no memo";const t=QH(),r=eV(),o=tV(),n=rV(),a=oV(),i=nV(),l=aV(),{appearance:d,disabled:f,disabledFocusable:p,icon:h,iconOnly:v,iconPosition:y,shape:x,size:b}=e;return e.root.className=F(OS.root,t,d&&o[d],o[b],h&&b==="small"&&o.smallWithIcon,h&&b==="large"&&o.largeWithIcon,o[x],(f||p)&&n.base,(f||p)&&n.highContrast,d&&(f||p)&&n[d],d==="primary"&&a.primary,a[b],a[x],v&&i[b],e.root.className),e.icon&&(e.icon.className=F(OS.icon,r,!!e.root.children&&l[y],l[b],e.icon.className)),e},pe=m.forwardRef((e,t)=>{const r=_y(e,t);return _d(r),xe("useButtonStyles_unstable")(r),bg(r)});pe.displayName="Button";const iV=e=>{const{icon:t,iconOnly:r}=e;return Ie(e.root,{children:[e.icon&&G(e.icon,{}),!r&&e.root.children,(!r||!t?.children)&&e.menuIcon&&G(e.menuIcon,{})]})},sV=(e,t)=>{const{menuIcon:r,...o}=e,n=_y(o,t);return{...n,iconOnly:!e.children,components:{...n.components,menuIcon:"span"},root:{...n.root,"aria-expanded":e["aria-expanded"]?e["aria-expanded"]==="true"||e["aria-expanded"]===!0:!1},menuIcon:ke(r,{defaultProps:{children:m.createElement(lg,null)},renderByDefault:!0,elementType:"span"})}},fv={root:"fui-MenuButton",icon:"fui-MenuButton__icon",menuIcon:"fui-MenuButton__menuIcon"},lV=Y({base:{D0sxk3:"fxoiby5",t6yez3:"f15q0o9g"},outline:{g2u3we:"f1ly1fcm",h3c5rm:["fi8bssc","fj6btzu"],B9xav0g:"f1s9tnsa",zhjwy3:["fj6btzu","fi8bssc"],B4j52fo:"fgx37oo",Bekrc4i:["f130t4y6","f1efpmoh"],Bn0qgzm:"fv51ejd",ibv6hh:["f1efpmoh","f130t4y6"],sj55zd:"f14nttnl"},primary:{De3pzq:"f8w4g0q"},secondary:{De3pzq:"f1nfm20t",g2u3we:"f1ly1fcm",h3c5rm:["fi8bssc","fj6btzu"],B9xav0g:"f1s9tnsa",zhjwy3:["fj6btzu","fi8bssc"],sj55zd:"f14nttnl"},subtle:{De3pzq:"fq5gl1p",sj55zd:"f1eryozh"},transparent:{De3pzq:"f1q9pm1r",sj55zd:"f1qj7y59"}},{d:[".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}",".f1ly1fcm{border-top-color:var(--colorNeutralStroke1Selected);}",".fi8bssc{border-right-color:var(--colorNeutralStroke1Selected);}",".fj6btzu{border-left-color:var(--colorNeutralStroke1Selected);}",".f1s9tnsa{border-bottom-color:var(--colorNeutralStroke1Selected);}",".fgx37oo{border-top-width:var(--strokeWidthThicker);}",".f130t4y6{border-right-width:var(--strokeWidthThicker);}",".f1efpmoh{border-left-width:var(--strokeWidthThicker);}",".fv51ejd{border-bottom-width:var(--strokeWidthThicker);}",".f14nttnl{color:var(--colorNeutralForeground1Selected);}",".f8w4g0q{background-color:var(--colorBrandBackgroundSelected);}",".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1eryozh{color:var(--colorNeutralForeground2Selected);}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"]}),cV=Y({outline:{sj55zd:"f14nttnl"},primary:{},secondary:{sj55zd:"f14nttnl"},subtle:{sj55zd:"f1qj7y59"},transparent:{sj55zd:"f1qj7y59"},highContrast:{Bahaeuw:"f1v3eptx"}},{d:[".f14nttnl{color:var(--colorNeutralForeground1Selected);}",".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"],m:[["@media (forced-colors: active){.f1v3eptx:hover{color:Highlight;}}",{m:"(forced-colors: active)"}]]}),uV=Y({base:{Bg96gwp:"fez10in"},small:{Be2twd7:"f1ugzwwg",Bqenvij:"fvblgha",Bg96gwp:"fwrc4pm",a9b677:"frx94fk"},medium:{Be2twd7:"f1ugzwwg",Bqenvij:"fvblgha",Bg96gwp:"fwrc4pm",a9b677:"frx94fk"},large:{Be2twd7:"f4ybsrx",Bqenvij:"fd461yt",Bg96gwp:"faaz57k",a9b677:"fjw5fx7"},notIconOnly:{Frg6f3:["fbyavb5","fm0x6gh"]}},{d:[".fez10in{line-height:0;}",".f1ugzwwg{font-size:12px;}",".fvblgha{height:12px;}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".frx94fk{width:12px;}",".f4ybsrx{font-size:16px;}",".fd461yt{height:16px;}",".faaz57k{line-height:var(--lineHeightBase400);}",".fjw5fx7{width:16px;}",".fbyavb5{margin-left:var(--spacingHorizontalXS);}",".fm0x6gh{margin-right:var(--spacingHorizontalXS);}"]}),dV=e=>{"use no memo";const t=lV(),r=cV(),o=uV();return e.root.className=F(fv.root,e.root["aria-expanded"]&&t.base,e.root["aria-expanded"]&&t[e.appearance],e.root.className),e.icon&&(e.icon.className=F(fv.icon,e.root["aria-expanded"]&&r[e.appearance]&&r.highContrast,e.icon.className)),e.menuIcon&&(e.menuIcon.className=F(fv.menuIcon,o.base,o[e.size],!e.iconOnly&&o.notIconOnly,e.menuIcon.className)),_d({...e,iconPosition:"before"}),e},zu=m.forwardRef((e,t)=>{const r=sV(e,t);return dV(r),xe("useMenuButtonStyles_unstable")(r),iV(r)});zu.displayName="MenuButton";function fV(e,t){const{checked:r,defaultChecked:o,disabled:n,disabledFocusable:a,isAccessible:i=!1}=e,{onClick:l,role:d}=t.root,[f,p]=Xt({state:r,defaultState:o,initialState:!1}),h=d==="menuitemcheckbox"||d==="checkbox",v=m.useCallback(y=>{if(!n&&!a){if(y.defaultPrevented)return;p(!f)}},[f,n,a,p]);return{...t,checked:f,isAccessible:i,root:{...t.root,[h?"aria-checked":"aria-pressed"]:f,onClick:de(Re(l,v))}}}const pV=(e,t)=>{const{checked:r=!1,defaultChecked:o=!1,isAccessible:n=!1,...a}=e,i=_y(a,t);return fV(e,i)},LS={root:"fui-ToggleButton",icon:"fui-ToggleButton__icon"},mV=Y({base:{De3pzq:"f1nfm20t",g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"],sj55zd:"f14nttnl",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],D0sxk3:"fxoiby5",t6yez3:"f15q0o9g",Jwef8y:"f1knas48",Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1xlaoq0",gg5e9n:["f1m52nbi","f1ub3y4t"],Bi91k9c:"feu1g3u",Bpjbzib:"f128kf1x",im15vp:"f1a38rnh",Hjvxdg:["f1wvuwkr","fbu0tau"],Gpfmf1:"f132k7zb",ustxxc:["fbu0tau","f1wvuwkr"],Brsut9c:"fggfoek"},highContrast:{By8wz76:"f1nz3ub2",Bcq6wej:"fjq791v",Jcjdmf:["fkq2p2y","f1sehlss"],sc4o1m:"f11odvng",Bosien3:["f1sehlss","fkq2p2y"],B7iucu3:"fqc85l4",B8gzw0y:"f1h3a8gf",Bbkh6qg:"fkiggi6",F230oe:"f8gmj8i",Bdw8ktp:["f1ap8nzx","fjag8bx"],Bj1xduy:"f1igan7k",Bhh2cfd:["fjag8bx","f1ap8nzx"],Bahaeuw:"f1v3eptx",Bv2bamp:"f1ysmecq",vxuvv6:"faulsx",Bli9q98:["f79t15f","f8qmx7k"],Bx2tt8t:"fbtzoaq",yad0b3:["f8qmx7k","f79t15f"],j2fop7:"fd4bjan",B6rz4yo:0,Buk7464:0,Bqg8rp8:0,pjr8j7:0,Bgs2klq:0,Hwei09:0,Bi9aqk7:0,Fihjvf:0,nhyz0p:0,Buw724y:0,Bn7qjfh:0,B0u7xl9:0,md97jv:0,h3ptyc:0,s1kvfj:0,kogrdj:0,dqx2i2:"fdmpsdn",o0nolc:"fgjsukj"},outline:{De3pzq:"f1q9pm1r",g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"],B4j52fo:"fgx37oo",Bekrc4i:["f130t4y6","f1efpmoh"],Bn0qgzm:"fv51ejd",ibv6hh:["f1efpmoh","f130t4y6"],Jwef8y:"fjxutwb",Bpjbzib:"fkoldzo",B8q5s1w:"fcaw57c",Bci5o5g:["fpwd27e","f1999bjr"],n8qw10:"f1hi52o4",Bdrgwmp:["f1999bjr","fpwd27e"]},primary:{De3pzq:"f8w4g0q",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",Bpjbzib:"f1ksv2xa",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"],Brsut9c:"f1d6mv4x"},secondary:{},subtle:{De3pzq:"fq5gl1p",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1eryozh",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bpjbzib:"f1q1yqic",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"],Brsut9c:"fwga7ee"},transparent:{De3pzq:"f1q9pm1r",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1qj7y59",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bpjbzib:"fkoldzo",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"],Brsut9c:"f1l983o9"}},{d:[".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}",".f14nttnl{color:var(--colorNeutralForeground1Selected);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".fgx37oo{border-top-width:var(--strokeWidthThicker);}",".f130t4y6{border-right-width:var(--strokeWidthThicker);}",".f1efpmoh{border-left-width:var(--strokeWidthThicker);}",".fv51ejd{border-bottom-width:var(--strokeWidthThicker);}",".fcaw57c[data-fui-focus-visible]{border-top-color:var(--colorNeutralStroke1);}",".fpwd27e[data-fui-focus-visible]{border-right-color:var(--colorNeutralStroke1);}",".f1999bjr[data-fui-focus-visible]{border-left-color:var(--colorNeutralStroke1);}",".f1hi52o4[data-fui-focus-visible]{border-bottom-color:var(--colorNeutralStroke1);}",".f8w4g0q{background-color:var(--colorBrandBackgroundSelected);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1eryozh{color:var(--colorNeutralForeground2Selected);}",".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1xlaoq0:hover{border-bottom-color:var(--colorNeutralStroke1Hover);}",".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".f128kf1x:hover:active,.f128kf1x:active:focus-visible{background-color:var(--colorNeutralBackground1Pressed);}",".f1a38rnh:hover:active,.f1a38rnh:active:focus-visible{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1wvuwkr:hover:active,.f1wvuwkr:active:focus-visible{border-right-color:var(--colorNeutralStroke1Pressed);}",".fbu0tau:hover:active,.fbu0tau:active:focus-visible{border-left-color:var(--colorNeutralStroke1Pressed);}",".f132k7zb:hover:active,.f132k7zb:active:focus-visible{border-bottom-color:var(--colorNeutralStroke1Pressed);}",".fggfoek:hover:active,.fggfoek:active:focus-visible{color:var(--colorNeutralForeground1Pressed);}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fkoldzo:hover:active,.fkoldzo:active:focus-visible{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);}",".f1ksv2xa:hover:active,.f1ksv2xa:active:focus-visible{background-color:var(--colorBrandBackgroundPressed);}",".fhvnf4x:hover:active,.fhvnf4x:active:focus-visible{border-top-color:transparent;}",".fb6swo4:hover:active,.fb6swo4:active:focus-visible{border-right-color:transparent;}",".f232fm2:hover:active,.f232fm2:active:focus-visible{border-left-color:transparent;}",".f1klyf7k:hover:active,.f1klyf7k:active:focus-visible{border-bottom-color:transparent;}",".f1d6mv4x:hover:active,.f1d6mv4x:active:focus-visible{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".f1q1yqic:hover:active,.f1q1yqic:active:focus-visible{background-color:var(--colorSubtleBackgroundPressed);}",".fwga7ee:hover:active,.fwga7ee:active:focus-visible{color:var(--colorNeutralForeground2Pressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1l983o9:hover:active,.f1l983o9:active:focus-visible{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1nz3ub2{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjq791v{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1sehlss{border-left-color:Highlight;}.fkq2p2y{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f11odvng{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fqc85l4{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkiggi6:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f8gmj8i:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ap8nzx:hover{border-right-color:Highlight;}.fjag8bx:hover{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1igan7k:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1v3eptx:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ysmecq:hover:active,.f1ysmecq:active:focus-visible{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.faulsx:hover:active,.faulsx:active:focus-visible{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f79t15f:hover:active,.f79t15f:active:focus-visible{border-right-color:Highlight;}.f8qmx7k:hover:active,.f8qmx7k:active:focus-visible{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbtzoaq:hover:active,.fbtzoaq:active:focus-visible{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fd4bjan:hover:active,.fd4bjan:active:focus-visible{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fdmpsdn:focus{border:1px solid HighlightText;}}",{p:-2,m:"(forced-colors: active)"}],["@media (forced-colors: active){.fgjsukj:focus{outline-color:Highlight;}}",{m:"(forced-colors: active)"}]]}),gV=Y({base:{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",Bpjbzib:"f1ksv2xa",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"],Brsut9c:"f1d6mv4x"},outline:{B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"]},primary:{Bw0xxkn:0,oeaueh:0,Bpd4iqm:0,Befb4lg:"f12rpxh0",Dhobit:"f10okvgz",Bfpq7zp:0,g9k6zt:0,Bn4voq9:0,giviqs:"f40way",Bpkdmpa:"ftbw7yw"},subtle:{ysa4qo:"f17xzaca"},transparent:{},secondary:{}},{d:[".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);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",[".f12rpxh0{outline:var(--strokeWidthThin) solid var(--colorNeutralForegroundOnBrand);}",{p:-1}],".f10okvgz{outline-offset:calc(var(--strokeWidthThicker) * -1);}",[".f40way[data-fui-focus-visible]{outline:var(--strokeWidthThin) solid var(--colorNeutralForegroundOnBrand);}",{p:-1}],".ftbw7yw[data-fui-focus-visible]{outline-offset:calc(var(--strokeWidthThickest) * -1);}"],h:[".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);}",".f1ksv2xa:hover:active,.f1ksv2xa:active:focus-visible{background-color:var(--colorBrandBackgroundPressed);}",".fhvnf4x:hover:active,.fhvnf4x:active:focus-visible{border-top-color:transparent;}",".fb6swo4:hover:active,.fb6swo4:active:focus-visible{border-right-color:transparent;}",".f232fm2:hover:active,.f232fm2:active:focus-visible{border-left-color:transparent;}",".f1klyf7k:hover:active,.f1klyf7k:active:focus-visible{border-bottom-color:transparent;}",".f1d6mv4x:hover:active,.f1d6mv4x:active:focus-visible{color:var(--colorNeutralForegroundOnBrand);}",".f17xzaca:hover .fui-ToggleButton__icon{color:var(--colorNeutralForegroundOnBrand);}"]}),hV=Y({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",Bpjbzib:"f1jct5ie",im15vp:"f13txml0",Hjvxdg:["f1ncddno","f1axfvow"],Gpfmf1:"f1z04ada",ustxxc:["f1axfvow","f1ncddno"],Brsut9c:"f1uhomfy"},outline:{},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bpjbzib:"fkoldzo",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bpjbzib:"fkoldzo",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"]}},{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);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}"],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);}",".f1jct5ie:hover:active,.f1jct5ie:active:focus-visible{background-color:var(--colorNeutralBackgroundDisabled);}",".f13txml0:hover:active,.f13txml0:active:focus-visible{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ncddno:hover:active,.f1ncddno:active:focus-visible{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1axfvow:hover:active,.f1axfvow:active:focus-visible{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1z04ada:hover:active,.f1z04ada:active:focus-visible{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1uhomfy:hover:active,.f1uhomfy:active:focus-visible{color:var(--colorNeutralForegroundDisabled);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".fhvnf4x:hover:active,.fhvnf4x:active:focus-visible{border-top-color:transparent;}",".fb6swo4:hover:active,.fb6swo4:active:focus-visible{border-right-color:transparent;}",".f232fm2:hover:active,.f232fm2:active:focus-visible{border-left-color:transparent;}",".f1klyf7k:hover:active,.f1klyf7k:active:focus-visible{border-bottom-color:transparent;}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fkoldzo:hover:active,.fkoldzo:active:focus-visible{background-color:var(--colorTransparentBackgroundPressed);}"]}),vV=Y({subtleOrTransparent:{sj55zd:"f1qj7y59"},highContrast:{B8gzw0y:"f1dd5bof"}},{d:[".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"],m:[["@media (forced-colors: active){.f1dd5bof{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]]}),bV=Y({base:{By8wz76:"f14ptb23",Bcq6wej:"fd7znuh",Jcjdmf:["f1wh4a04","f15h7fac"],sc4o1m:"f1f064oi",Bosien3:["f15h7fac","f1wh4a04"],B7iucu3:"f3ggph1",B8gzw0y:"f1dd5bof"},disabled:{Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"],B7iucu3:"f1cyfu5x",h3ptyc:"f19etb0b",Buw724y:["f4f984j","fw441p0"],Buk7464:"f3d22hf",Hwei09:["fw441p0","f4f984j"]}},{m:[["@media (forced-colors: active){.f14ptb23{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fd7znuh{border-top-color:ButtonBorder;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f15h7fac{border-left-color:ButtonBorder;}.f1wh4a04{border-right-color:ButtonBorder;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1f064oi{border-bottom-color:ButtonBorder;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3ggph1{color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dd5bof{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f19etb0b:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4f984j:focus{border-right-color:GrayText;}.fw441p0:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3d22hf:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]]}),yV=e=>{"use no memo";const t=mV(),r=gV(),o=hV(),n=vV(),a=bV(),{appearance:i,checked:l,disabled:d,disabledFocusable:f,isAccessible:p}=e;return e.root.className=F(LS.root,i==="primary"&&a.base,i==="primary"&&(d||f)&&a.disabled,l&&t.base,l&&t.highContrast,i&&l&&t[i],p&&l&&r.base,p&&i&&l&&r[i],(d||f)&&o.base,i&&(d||f)&&o[i],e.root.className),e.icon&&(e.icon.className=F(LS.icon,l&&!p&&(i==="subtle"||i==="transparent")&&n.subtleOrTransparent,n.highContrast,e.icon.className)),_d(e),e},Bo=m.forwardRef((e,t)=>{const r=pV(e,t);return yV(r),xe("useToggleButtonStyles_unstable")(r),bg(r)});Bo.displayName="ToggleButton";const B6=m.createContext(void 0),xV=B6.Provider,yg=()=>m.useContext(B6),wV=e=>{var t,r,o,n;const{generatedControlId:a,orientation:i,required:l,size:d,validationState:f}=e,p=(t=e.label)===null||t===void 0?void 0:t.htmlFor,h=(r=e.label)===null||r===void 0?void 0:r.id,v=(o=e.validationMessage)===null||o===void 0?void 0:o.id,y=(n=e.hint)===null||n===void 0?void 0:n.id;return{field:m.useMemo(()=>({generatedControlId:a,hintId:y,labelFor:p,labelId:h,orientation:i,required:l,size:d,validationMessageId:v,validationState:f}),[a,y,p,h,i,l,d,v,f])}};function ga(e,t){return j6(yg(),e,t)}function j6(e,t,r){if(!e)return t;t={...t};const{generatedControlId:o,hintId:n,labelFor:a,labelId:i,required:l,validationMessageId:d,validationState:f}=e;if(o){var p,h;(h=(p=t).id)!==null&&h!==void 0||(p.id=o)}if(i&&(!r?.supportsLabelFor||a!==t.id)){var v,y,x;(x=(v=t)[y="aria-labelledby"])!==null&&x!==void 0||(v[y]=i)}if((d||n)&&(t["aria-describedby"]=[d,n,t?.["aria-describedby"]].filter(Boolean).join(" ")),f==="error"){var b,k,S;(S=(b=t)[k="aria-invalid"])!==null&&S!==void 0||(b[k]=!0)}if(l)if(r?.supportsRequired){var N,B;(B=(N=t).required)!==null&&B!==void 0||(N.required=!0)}else{var C,z,R;(R=(C=t)[z="aria-required"])!==null&&R!==void 0||(C[z]=!0)}if(r?.supportsSize){var E,D;(D=(E=t).size)!==null&&D!==void 0||(E.size=e.size)}return t}const kV=(e,t)=>{let{children:r}=e;return typeof r=="function"&&(r=r(j6(t.field)||{})),G(xV,{value:t?.field,children:Ie(e.root,{children:[e.label&&G(e.label,{}),r,e.validationMessage&&Ie(e.validationMessage,{children:[e.validationMessageIcon&&G(e.validationMessageIcon,{}),e.validationMessage.children]}),e.hint&&G(e.hint,{})]})})},SV=(e,t)=>{const{weight:r="regular",size:o="medium",...n}=e,a=BV(n,t);return{weight:r,size:o,...a}},BV=(e,t)=>{const{disabled:r=!1,required:o=!1,...n}=e;return{disabled:r,required:ke(o===!0?"*":o||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),components:{root:"label",required:"span"},root:me($e("label",{ref:t,...n}),{elementType:"label"})}},jV=e=>Ie(e.root,{children:[e.root.children,e.required&&G(e.required,{})]}),$S={root:"fui-Label",required:"fui-Label__required"},CV=Y({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o",B7iucu3:"f1cyfu5x"},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){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),NV=e=>{"use no memo";const t=CV();return e.root.className=F($S.root,t.root,e.disabled&&t.disabled,t[e.size],e.weight==="semibold"&&t.semibold,e.root.className),e.required&&(e.required.className=F($S.required,t.required,e.disabled&&t.disabled,e.required.className)),e},gn=m.forwardRef((e,t)=>{const r=SV(e,t);return NV(r),xe("useLabelStyles_unstable")(r),jV(r)});gn.displayName="Label";const zV=(e,t)=>{const{children:r,required:o=!1,validationState:n=e.validationMessage?"error":"none"}=e,a=bt("field-"),i=a+"__control",l=me($e("div",{...e,ref:t},["children"]),{elementType:"div"}),d=ke(e.label,{defaultProps:{htmlFor:i,id:a+"__label",required:o},elementType:"label"}),f=ke(e.validationMessage,{defaultProps:{id:a+"__validationMessage",role:n==="error"||n==="warning"?"alert":void 0},elementType:"div"}),p=ke(e.hint,{defaultProps:{id:a+"__hint"},elementType:"div"}),h=ke(e.validationMessageIcon,{renderByDefault:!1,elementType:"span"});return{children:r,generatedControlId:i,required:o,validationState:n,components:{root:"div",label:"label",validationMessage:"div",validationMessageIcon:"span",hint:"div"},root:l,label:d,validationMessageIcon:h,validationMessage:f,hint:p}},TV={error:m.createElement(nO,null),warning:m.createElement(VI,null),success:m.createElement(UA,null),none:void 0},_V=(e,t)=>{const{orientation:r="vertical",size:o="medium",...n}=e,a=zV(n,t),i=TV[a.validationState];return{...a,components:{...a.components,label:gn},label:ke(e.label,{defaultProps:{size:o,...a.label},elementType:gn}),validationMessageIcon:ke(e.validationMessageIcon,{renderByDefault:!!i,defaultProps:{children:i},elementType:"span"}),orientation:r,size:o}},nu={root:"fui-Field",label:"fui-Field__label",validationMessage:"fui-Field__validationMessage",validationMessageIcon:"fui-Field__validationMessageIcon",hint:"fui-Field__hint"},RV=Y({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;}"]}),DV=Y({base:{B2u0y6b:"f6nezus",Bxyxcbc:"f1iqmcbn"},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:[".f6nezus{max-width:max-content;}",".f1iqmcbn{max-height:max-content;}",".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;}"]}),EV=Be("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);}"]),PV=Y({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));}"]}),MV=Be("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;}"]),qV=Y({error:{sj55zd:"f1hcrxcs"},warning:{sj55zd:"f1k5f75o"},success:{sj55zd:"ffmvakt"}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}"]}),FV=e=>{"use no memo";const{validationState:t,size:r}=e,o=e.orientation==="horizontal",n=RV();e.root.className=F(nu.root,n.base,o&&n.horizontal,o&&!e.label&&n.horizontalNoLabel,e.root.className);const a=DV();e.label&&(e.label.className=F(nu.label,a.base,o&&a.horizontal,o&&r==="small"&&a.horizontalSmall,o&&r==="large"&&a.horizontalLarge,!o&&a.vertical,!o&&r==="large"&&a.verticalLarge,e.label.className));const i=MV(),l=qV();e.validationMessageIcon&&(e.validationMessageIcon.className=F(nu.validationMessageIcon,i,t!=="none"&&l[t],e.validationMessageIcon.className));const d=EV(),f=PV();return e.validationMessage&&(e.validationMessage.className=F(nu.validationMessage,d,t==="error"&&f.error,!!e.validationMessageIcon&&f.withIcon,e.validationMessage.className)),e.hint&&(e.hint.className=F(nu.hint,d,e.hint.className)),e},jo=m.forwardRef((e,t)=>{const r=_V(e,t);FV(r),xe("useFieldStyles_unstable")(r);const o=wV(r);return kV(r,o)});jo.displayName="Field";const IV=(e,t)=>{"use no memo";e=ga(e,{supportsLabelFor:!0,supportsRequired:!0});const{shape:r="square",size:o="medium",...n}=e,a=AV(n,t),i=a.checked==="mixed";let l;if(i?r==="circular"?l=m.createElement(cC,null):l=o==="large"?m.createElement(YA,null):m.createElement(XA,null):a.checked&&(l=o==="large"?m.createElement(Cd,null):m.createElement(CC,null)),a.indicator){var d,f;(f=(d=a.indicator).children)!==null&&f!==void 0||(d.children=l)}return{shape:r,size:o,...a,components:{...a.components,label:gn},label:ke(e.label,{defaultProps:{...a.label,size:"medium"},elementType:gn})}},AV=(e,t)=>{"use no memo";const{disabled:r=!1,required:o,labelPosition:n="after",onChange:a}=e,[i,l]=Xt({defaultState:e.defaultChecked,state:e.checked,initialState:!1}),d=$i({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),f=i==="mixed",p=bt("checkbox-",d.primary.id),h={checked:i,disabled:r,labelPosition:n,components:{root:"span",input:"input",indicator:"div",label:"label"},root:me(e.root,{defaultProps:{ref:Es(),...d.root},elementType:"span"}),input:me(e.input,{defaultProps:{type:"checkbox",id:p,ref:t,checked:i===!0,...d.primary},elementType:"input"}),label:ke(e.label,{defaultProps:{htmlFor:p,disabled:r,required:o},elementType:"label"}),indicator:ke(e.indicator,{renderByDefault:!0,defaultProps:{"aria-hidden":!0},elementType:"div"})};h.input.onChange=Re(h.input.onChange,y=>{const x=y.currentTarget.indeterminate?"mixed":y.currentTarget.checked;a?.(y,{checked:x}),l(x)});const v=Le(h.input.ref);return h.input.ref=v,$t(()=>{v.current&&(v.current.indeterminate=f)},[v,f]),h},OV=e=>Ie(e.root,{children:[G(e.input,{}),e.labelPosition==="before"&&e.label&&G(e.label,{}),e.indicator&&G(e.indicator,{}),e.labelPosition==="after"&&e.label&&G(e.label,{})]}),ap={root:"fui-Checkbox",label:"fui-Checkbox__label",input:"fui-Checkbox__input",indicator:"fui-Checkbox__indicator"},LV=Be("r1nzur1d","r128arqq",{r:[".r1nzur1d{position:relative;display:inline-flex;cursor:pointer;max-width:fit-content;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r1nzur1d:focus{outline-style:none;}",".r1nzur1d:focus-visible{outline-style:none;}",".r1nzur1d[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1nzur1d[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);}',".r128arqq{position:relative;display:inline-flex;cursor:pointer;max-width:fit-content;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r128arqq:focus{outline-style:none;}",".r128arqq:focus-visible{outline-style:none;}",".r128arqq[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r128arqq[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){.r1nzur1d[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){.r128arqq[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),$V=Y({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",B7iucu3:"f1cyfu5x",Bptavk6:"f1lwde8o"}},{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){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lwde8o{--fui-Checkbox__indicator--color:GrayText;}}",{m:"(forced-colors: active)"}]]}),HV=Be("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));}"]),VV=Y({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));}"]}),WV=Be("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;}"]),UV=Y({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}]]}),GV=Y({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);}"]}),ZV=e=>{"use no memo";const{checked:t,disabled:r,labelPosition:o,shape:n,size:a}=e,i=LV(),l=$V();e.root.className=F(ap.root,i,r?l.disabled:t==="mixed"?l.mixed:t?l.checked:l.unchecked,e.root.className);const d=HV(),f=VV();e.input.className=F(ap.input,d,a==="large"&&f.large,f[o],e.input.className);const p=WV(),h=UV();e.indicator&&(e.indicator.className=F(ap.indicator,p,a==="large"&&h.large,n==="circular"&&h.circular,e.indicator.className));const v=GV();return e.label&&(e.label.className=F(ap.label,v.base,v[a],v[o],e.label.className)),e},Ra=m.forwardRef((e,t)=>{const r=IV(e,t);return ZV(r),xe("useCheckboxStyles_unstable")(r),OV(r)});Ra.displayName="Checkbox";const Dy=Vn({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});Dy.Provider;const KV={activeOption:void 0,focusVisible:!1,multiselect:!1,getOptionById(){},getOptionsMatchingValue(){return[]},registerOption(){return()=>{}},selectedOptions:[],onOptionClick(){},onActiveDescendantChange(){},selectOption(){},setActiveOption(){}},lc=Vn(void 0),qo=e=>pa(lc,(t=KV)=>e(t)),C6=lc.Provider;function Ey(e){const{appearance:t,open:r,getOptionById:o,getOptionsMatchingValue:n,registerOption:a,selectedOptions:i,selectOption:l,setOpen:d,size:f,activeDescendantController:p,onOptionClick:h,onActiveDescendantChange:v}=e,y={activeOption:void 0,appearance:t,focusVisible:!1,open:r,registerOption:a,selectedOptions:i,selectOption:l,setActiveOption:()=>null,setOpen:d,size:f},x={activeOption:void 0,focusVisible:!1,getOptionById:o,getOptionsMatchingValue:n,registerOption:a,selectedOptions:i,selectOption:l,setActiveOption:()=>null,onOptionClick:h,onActiveDescendantChange:v},b=m.useMemo(()=>({controller:p}),[p]);return{combobox:y,activeDescendant:b,listbox:x}}function XV(e){const t=jd(lc),{getOptionById:r,getOptionsMatchingValue:o,multiselect:n,registerOption:a,selectedOptions:i,selectOption:l,activeDescendantController:d}=e,f=qo(b=>b.registerOption),p=qo(b=>b.onOptionClick),h=qo(b=>b.onActiveDescendantChange),y={activeOption:void 0,focusVisible:!1,getOptionById:r,getOptionsMatchingValue:o,multiselect:n,registerOption:t?f:a,selectedOptions:i,selectOption:l,setActiveOption:()=>{},onOptionClick:p,onActiveDescendantChange:h},x=m.useMemo(()=>({controller:d}),[d]);return{listbox:y,activeDescendant:x}}function Xu(e,t={}){const{open:r=!0,multiselect:o=!1}=t,n=e.key,{altKey:a,ctrlKey:i,key:l,metaKey:d}=e;return l.length===1&&n!==ro&&!a&&!i&&!d?"Type":r?n===ys&&a||n===kr||!o&&n===ro?"CloseSelect":o&&n===ro?"Select":n===Wn?"Close":n===Fi?"Next":n===ys?"Previous":n===sy?"First":n===iy?"Last":n===cy?"PageUp":n===ly?"PageDown":n===ay?"Tab":"None":n===Fi||n===ys||n===kr||n===ro?"Open":"None"}const N6=()=>{const e=m.useRef(new Map),t=m.useMemo(()=>({getCount:()=>e.current.size,getOptionAtIndex:()=>{},getIndexOfId:()=>-1,getOptionById:f=>e.current.get(f),getOptionsMatchingText:f=>Array.from(e.current.values()).filter(({text:p})=>f(p)),getOptionsMatchingValue:f=>{const p=[];for(const h of e.current.values())f(h.value)&&p.push(h);return p}}),[]),r=m.useCallback(o=>(e.current.set(o.id,o),()=>e.current.delete(o.id)),[]);return{...t,options:Array.from(e.current.values()),registerOption:r}},z6=e=>{const{defaultSelectedOptions:t,multiselect:r,onOptionSelect:o}=e,[n,a]=Xt({state:e.selectedOptions,defaultState:t,initialState:[]}),i=m.useCallback((d,f)=>{if(f.disabled)return;let p=[f.value];if(r){const h=n.findIndex(v=>v===f.value);h>-1?p=[...n.slice(0,h),...n.slice(h+1)]:p=[...n,f.value]}a(p),o?.(d,{optionValue:f.value,optionText:f.text,selectedOptions:p})},[o,r,n,a]);return{clearSelection:d=>{a([]),o?.(d,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:i,selectedOptions:n}},Hl={root:"fui-Option",checkIcon:"fui-Option__checkIcon"},YV=Y({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"],B7iucu3:"f1cyfu5x"},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",B7iucu3:"f1cyfu5x"},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){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),T6=e=>{"use no memo";const{disabled:t,multiselect:r,selected:o}=e,n=YV();return e.root.className=F(Hl.root,n.root,n.active,t&&n.disabled,o&&n.selected,e.root.className),e.checkIcon&&(e.checkIcon.className=F(Hl.checkIcon,n.checkIcon,r&&n.multiselectCheck,o&&n.selectedCheck,o&&r&&n.selectedMultiselectCheck,t&&n.checkDisabled,t&&r&&n.multiselectCheckDisabled,e.checkIcon.className)),e},HS={activeOption:void 0,focusVisible:!1,setActiveOption:()=>null},JV=(e,t)=>{"use no memo";const{multiselect:r,disableAutoFocus:o=!1}=e,n=N6(),{listboxRef:a,activeParentRef:i,controller:l}=sg({matchOption:Z=>Z.classList.contains(Hl.root)}),d=jd(lc),f=qo(Z=>Z.onActiveDescendantChange),p=qo(Z=>Z.getOptionById),h=qo(Z=>Z.getOptionsMatchingValue),v=d?p:n.getOptionById,y=d?h:n.getOptionsMatchingValue,x=m.useMemo(()=>{let Z=null;const q=A=>{f?.(A)};return A=>{if(!A){Z?.removeEventListener("activedescendantchange",q);return}Z=A,Z.addEventListener("activedescendantchange",q)}},[f]),[b,k]=m.useState(!1);I4(k);const S=fy(),N=kI(),B=N?S.controller:l,{clearSelection:C,selectedOptions:z,selectOption:R}=z6(e),E=Z=>{const q=Xu(Z,{open:!0}),A=B.active(),X=A?v(A):null;switch(q){case"First":case"Last":case"Next":case"Previous":case"PageDown":case"PageUp":case"CloseSelect":case"Select":Z.preventDefault();break}switch(q){case"Next":X?B.next():B.first();break;case"Previous":X?B.prev():B.first();break;case"PageUp":case"First":B.first();break;case"PageDown":case"Last":B.last();break;case"Select":case"CloseSelect":X&&R(Z,X);break}},D=qo(Z=>Z.selectedOptions),I=qo(Z=>Z.selectOption),M=d?{selectedOptions:D,selectOption:I,...HS}:{selectedOptions:z,selectOption:R,...HS};m.useEffect(()=>{if(!N){if(B.hideFocusVisibleAttributes(),!o)if(!r&&M.selectedOptions.length>0){const Z=y(q=>q===M.selectedOptions[0]).pop();Z?.id&&B.focus(Z.id)}else B.first();return()=>{B.blur()}}},[]);const O=m.useCallback(()=>{N||(B.showFocusVisibleAttributes(),b&&B.scrollActiveIntoView())},[B,N,b]),H=m.useCallback(()=>{N||B.hideFocusVisibleAttributes()},[B,N]),$={components:{root:"div"},root:me($e("div",{ref:Le(t,i,a,x),role:r?"menu":"listbox",tabIndex:0,...e}),{elementType:"div"}),standalone:!d,multiselect:r,clearSelection:C,activeDescendantController:B,onActiveDescendantChange:f,...n,...M};return $.root.onKeyDown=de(Re($.root.onKeyDown,E)),$.root.onFocus=de(Re($.root.onFocus,O)),$.root.onBlur=de(Re($.root.onBlur,H)),$},QV=(e,t)=>G(ig,{value:t.activeDescendant,children:G(lc.Provider,{value:t.listbox,children:G(e.root,{})})}),eW={root:"fui-Listbox"},tW=Y({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);}"]}),rW=e=>{"use no memo";const t=tW();return e.root.className=F(eW.root,t.root,e.root.className),e},Vl=m.forwardRef((e,t)=>{const r=JV(e,t),o=XV(r);return rW(r),xe("useListboxStyles_unstable")(r),QV(r,o)});Vl.displayName="Listbox";function oW(e,t){if(e!==void 0)return e;let r="",o=!1;return m.Children.forEach(t,n=>{typeof n=="string"?r+=n:o=!0}),o&&console.warn("Provide a `text` prop to Option components when they contain non-string children."),r}const _6=(e,t)=>{"use no memo";const r=nW(e,t);let o=m.createElement(PI,null);if(r.multiselect&&(o=r.selected?m.createElement(CC,null):""),r.checkIcon){var n,a;(a=(n=r.checkIcon).children)!==null&&a!==void 0||(n.children=o)}return r},nW=(e,t)=>{const{children:r,disabled:o,text:n,value:a}=e,i=m.useRef(null),l=oW(n,r),d=a??l,f=bt("fluent-option",e.id),p=m.useMemo(()=>({id:f,disabled:o,text:l,value:d}),[f,o,l,d]),{controller:h}=fy(),v=qo(B=>B.multiselect),y=qo(B=>B.registerOption),x=qo(B=>{const C=B.selectedOptions;return d!==void 0&&C.find(z=>z===d)!==void 0}),b=qo(B=>B.selectOption),k=qo(B=>B.onOptionClick),S=B=>{var C;if(o){B.preventDefault();return}h.focus(f),b(B,p),k(B),(C=e.onClick)===null||C===void 0||C.call(e,B)};m.useEffect(()=>{if(f&&i.current)return y(p,i.current)},[f,p,y]);const N=v?{role:"menuitemcheckbox","aria-checked":x}:{role:"option","aria-selected":x};return{components:{root:"div",checkIcon:"span"},root:me($e("div",{ref:Le(t,i),"aria-disabled":o?"true":void 0,id:f,...N,...e,onClick:S}),{elementType:"div"}),checkIcon:ke(e.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true"},elementType:"span"}),disabled:o,multiselect:v,selected:x,focusVisible:!1,active:!1}},aW=e=>Ie(e.root,{children:[e.checkIcon&&G(e.checkIcon,{}),e.root.children]}),at=m.forwardRef((e,t)=>{const r=_6(e,t);return T6(r),xe("useOptionStyles_unstable")(r),aW(r)});at.displayName="Option";const Py=e=>{"use no memo";const{appearance:t="outline",disableAutoFocus:r,children:o,clearable:n=!1,editable:a=!1,inlinePopup:i=!1,mountNode:l=void 0,multiselect:d,onOpenChange:f,size:p="medium",activeDescendantController:h,freeform:v=!1,disabled:y=!1,onActiveOptionChange:x=null}=e,b=N6(),{getOptionsMatchingValue:k}=b,{getOptionById:S}=b,N=m.useCallback(()=>{const L=h.active();return L?S(L):void 0},[h,S]),B=N(),C=m.useCallback(L=>{let te;if(typeof L=="function"){const ue=N();te=L(ue)}te?h.focus(te.id):h.blur()},[h,N]),[z,R]=m.useState(!1),[E,D]=m.useState(!1),I=m.useRef(!1),M=Jb(),[O,H]=Xt({state:e.value,initialState:void 0}),{selectedOptions:$,selectOption:Z,clearSelection:q}=z6(e),A=m.useCallback((L,te)=>{_a.unstable_batchedUpdates(()=>{H(void 0),Z(L,te)})},[H,Z]),X=m.useMemo(()=>{if(O!==void 0)return O;if(M&&e.defaultValue!==void 0)return e.defaultValue;const L=k(te=>$.includes(te)).map(te=>te.text);return d?a?"":L.join(", "):L[0]},[O,a,k,d,$]),[V,oe]=Xt({state:e.open,defaultState:e.defaultOpen,initialState:!1}),ee=m.useCallback((L,te)=>{y||(f?.(L,{open:te}),_a.unstable_batchedUpdates(()=>{!te&&!v&&H(void 0),oe(te)}))},[f,oe,H,v,y]);m.useEffect(()=>{if(V){if(!d&&$.length>0){const L=k(te=>te===$[0]).pop();L?.id&&h.focus(L.id)}}else h.blur()},[V,h]),m.useEffect(()=>{V&&!r&&!h.active()&&h.first()},[V,o,r,h,S]);const W=de(L=>{const te=L.detail.previousId?b.getOptionById(L.detail.previousId):null,ue=b.getOptionById(L.detail.id);x?.(L,{event:L,type:"change",previousOption:te,nextOption:ue})});return{...b,freeform:v,disabled:y,selectOption:A,clearSelection:q,selectedOptions:$,activeOption:B,appearance:t,clearable:n,focusVisible:z,ignoreNextBlur:I,inlinePopup:i,mountNode:l,open:V,hasFocus:E,setActiveOption:C,setFocusVisible:R,setHasFocus:D,setOpen:ee,setValue:H,size:p,value:X,multiselect:d,onOptionClick:de(L=>{d||ee(L,!1)}),onActiveDescendantChange:W}};function R6(e){const{positioning:t}=e,o={position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:["above","after","after-top","before","before-top"],matchTargetSize:"width",autoSize:!0,...Wi(t)},{targetRef:n,containerRef:a}=qs(o);return[a,n]}function My(e,t,r){const{state:{multiselect:o},triggerRef:n,defaultProps:a}=r,i=bt("fluent-listbox",Kb(e)?e.id:void 0),l=ke(e,{renderByDefault:!0,elementType:Vl,defaultProps:{id:i,multiselect:o,tabIndex:void 0,...a}}),d=ga({id:i},{supportsLabelFor:!0});l&&!l["aria-label"]&&!l["aria-labelledby"]&&d["aria-labelledby"]&&(l["aria-labelledby"]=d["aria-labelledby"]);const f=de(Re(v=>{v.preventDefault()},l?.onMouseDown)),p=de(Re(v=>{var y;v.preventDefault(),(y=n.current)===null||y===void 0||y.focus()},l?.onClick)),h=Le(l?.ref,t);return l&&(l.ref=h,l.onMouseDown=f,l.onClick=p),l}function D6(e,t,r){const{state:{open:o,setOpen:n,setHasFocus:a},defaultProps:i,elementType:l,activeDescendantController:d}=r,f=me(e,{defaultProps:{type:"text","aria-expanded":o,role:"combobox",...typeof i=="object"&&i},elementType:l}),p=m.useRef(null);return f.ref=Le(p,f.ref,t),f.onBlur=Re(h=>{n(h,!1),a(!1)},f.onBlur),f.onFocus=Re(h=>{h.target===h.currentTarget&&a(!0)},f.onFocus),f.onClick=Re(h=>{n(h,!o)},f.onClick),f.onKeyDown=Re(iW({activeDescendantController:d,...r.state}),f.onKeyDown),f}function iW(e){const{activeDescendantController:t,getOptionById:r,setOpen:o,selectOption:n,multiselect:a,open:i}=e,l=m.useCallback(()=>{const b=t.active();return b?r(b):void 0},[t,r]),d=()=>{t.first()},f=()=>{t.last()},p=b=>{b?t.next():t.first()},h=b=>{b?t.prev():t.first()},v=()=>{for(let b=0;b<10;b++)t.prev()},y=()=>{for(let b=0;b<10;b++)t.next()},x=Zq();return de(b=>{const k=Xu(b,{open:i,multiselect:a}),S=l();switch(k){case"First":case"Last":case"Next":case"Previous":case"PageDown":case"PageUp":case"Open":case"Close":case"CloseSelect":case"Select":b.preventDefault();break}switch(x(!0),k){case"First":d();break;case"Last":f();break;case"Next":p(S);break;case"Previous":h(S);break;case"PageDown":y();break;case"PageUp":v();break;case"Open":o(b,!0);break;case"Close":b.stopPropagation(),o(b,!1);break;case"CloseSelect":!a&&!S?.disabled&&o(b,!1);case"Select":S&&n(b,S);break;case"Tab":!a&&S&&n(b,S);break}})}function E6(e,t,r){"use no memo";const{state:{open:o,value:n,selectOption:a,setValue:i,multiselect:l,selectedOptions:d,clearSelection:f,getOptionById:p,setOpen:h},freeform:v,defaultProps:y,activeDescendantController:x}=r,b=D=>{if(!o&&!v){const I=x.active(),M=I?p(I):null;n&&M&&n.trim().toLowerCase()===M?.text.toLowerCase()&&a(D,M),i(void 0)}},k=D=>{const I=D?.trim().toLowerCase();if(!I||I.length===0){x.blur();return}const M=H=>H.toLowerCase().indexOf(I)===0,O=x.find(H=>{const $=p(H);return!!$&&M($.text)});if(!O){x.blur();return}return p(O)},S=D=>{const I=D.target.value;i(I);const M=k(I);!l&&d.length===1&&(I.length<1||!M)&&f(D)},N=D6(e,t,{state:r.state,defaultProps:y,elementType:"input",activeDescendantController:x});N.onChange=Re(N.onChange,S),N.onBlur=Re(N.onBlur,b);const[B,C]=m.useState(!1),z=m.useRef(!1),R=N.onKeyDown,E=de(D=>{!o&&Xu(D)==="Type"&&h(D,!0),D.key===Ps||D.key===Ms?C(!0):C(!1);const I=Xu(D,{open:o,multiselect:l});if(I==="Type"?z.current=!0:(I==="Open"&&D.key!==" "||I==="Next"||I==="Previous"||I==="First"||I==="Last"||I==="PageUp"||I==="PageDown")&&(z.current=!1),(z.current||!o)&&D.key===" "){var M;e==null||(M=e.onKeyDown)===null||M===void 0||M.call(e,D);return}R?.(D)});return N.onKeyDown=E,B&&(N["aria-activedescendant"]=void 0),N}const sW=(e,t)=>{"use no memo";var r,o;e=ga(e,{supportsLabelFor:!0,supportsRequired:!0});const{listboxRef:n,activeParentRef:a,controller:i}=sg({matchOption:ne=>ne.classList.contains(Hl.root)}),l=Py({...e,editable:!0,activeDescendantController:i}),{appearance:d,size:f,...p}=l,{clearable:h,clearSelection:v,disabled:y,multiselect:x,open:b,selectedOptions:k,setOpen:S,value:N,hasFocus:B}=p,[C,z]=R6(e),{disableAutoFocus:R=!1,freeform:E,inlinePopup:D}=e,I=bt("combobox-"),{primary:M,root:O}=$i({props:e,primarySlotTagName:"input",excludedPropNames:["children"]}),H=m.useRef(null),$=My(e.listbox,Le(C,n),{state:l,triggerRef:H,defaultProps:{children:e.children,disableAutoFocus:R}});var Z;const q=E6((Z=e.input)!==null&&Z!==void 0?Z:{},Le(H,a,t),{state:l,freeform:E,defaultProps:{type:"text",value:N??"","aria-controls":b?$?.id:void 0,...M},activeDescendantController:i}),A=me(e.root,{defaultProps:{"aria-owns":!D&&b?$?.id:void 0,...O},elementType:"div"});A.ref=Le(A.ref,z);const X=k.length>0&&!y&&h&&!x,V={components:{root:"div",input:"input",expandIcon:"span",listbox:Vl,clearIcon:"span"},root:A,input:q,listbox:b||B?$:void 0,clearIcon:ke(e.clearIcon,{defaultProps:{"aria-hidden":"true"},elementType:"span",renderByDefault:!0}),expandIcon:ke(e.expandIcon,{renderByDefault:!0,defaultProps:{"aria-disabled":y?"true":void 0,"aria-expanded":b,role:"button"},elementType:"span"}),showClearIcon:X,activeDescendantController:i,...p},{targetDocument:oe}=Ve();xd({element:oe,callback:ne=>S(ne,!1),refs:[H,C,z],disabled:!b});const{onMouseDown:ee}=V.expandIcon||{},W=de(Re(ee,ne=>{var ie;ne.preventDefault(),V.setOpen(ne,!V.open),(ie=H.current)===null||ie===void 0||ie.focus()}));if(V.expandIcon){V.expandIcon.onMouseDown=W;const ne=V.expandIcon["aria-label"]||V.expandIcon["aria-labelledby"],ie="Open";if(!ne)if(e["aria-labelledby"]){var L;const ge=(L=V.expandIcon.id)!==null&&L!==void 0?L:`${I}-chevron`,Te=`${ge} ${V.input["aria-labelledby"]}`;V.expandIcon["aria-label"]=ie,V.expandIcon.id=ge,V.expandIcon["aria-labelledby"]=Te}else e["aria-label"]?V.expandIcon["aria-label"]=`${ie} ${e["aria-label"]}`:V.expandIcon["aria-label"]=ie}const te=de(Re((r=V.clearIcon)===null||r===void 0?void 0:r.onMouseDown,ne=>{ne.preventDefault()})),ue=de(Re((o=V.clearIcon)===null||o===void 0?void 0:o.onClick,ne=>{v(ne)}));return V.clearIcon&&(V.clearIcon.onMouseDown=te,V.clearIcon.onClick=ue),x&&(V.clearIcon=void 0),V},P6=(e,t)=>{"use no memo";const{appearance:r="outline",size:o="medium",...n}=e,a=sW(n,t);if(a.clearIcon){var i,l;(l=(i=a.clearIcon).children)!==null&&l!==void 0||(i.children=m.createElement(nc,null))}if(a.expandIcon){var d,f;(f=(d=a.expandIcon).children)!==null&&f!==void 0||(d.children=m.createElement(lg,null))}return{...a,appearance:r,size:o}},M6=(e,t)=>G(e.root,{children:G(ig,{value:t.activeDescendant,children:G(C6,{value:t.listbox,children:Ie(Dy.Provider,{value:t.combobox,children:[G(e.input,{}),e.clearIcon&&G(e.clearIcon,{}),e.expandIcon&&G(e.expandIcon,{}),e.listbox&&(e.inlinePopup?G(e.listbox,{}):G(ma,{mountNode:e.mountNode,children:G(e.listbox,{})}))]})})})}),au={root:"fui-Combobox",input:"fui-Combobox__input",expandIcon:"fui-Combobox__expandIcon",clearIcon:"fui-Combobox__clearIcon",listbox:"fui-Combobox__listbox"},lW=Y({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",wi16st:"fsrmcvb",ywj3b2:"f1t3k7v9",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",Bnupc0a:"fx04xgm",bing71:"f1c7in40",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"],Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"]}},{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){.fsrmcvb::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1t3k7v9::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fx04xgm:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1c7in40:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{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);}"]}),cW=Y({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;}"]}),uW=Y({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",Bceei9c:"f1k6fduh",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",qhf8xq:"f10pi13n",Bo70h7d:"fvc9v3g",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",bn5sak:"frwkxtg",By385i5:"fo72kxq",Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"]},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"],B1piin3:["f1gwjbcf","f1rbysb6"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"],B1piin3:["fpsl3z4","f1po37t9"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"],B1piin3:["f1je5ipm","fb53jzl"]},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);}",".f10pi13n{position:relative;}",".fvc9v3g svg{display:block;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".frwkxtg::after{top:0;}",".fo72kxq::after{bottom:0;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".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);}",".f1gwjbcf::after{right:calc(-1 * var(--spacingHorizontalSNudge));}",".f1rbysb6::after{left:calc(-1 * var(--spacingHorizontalSNudge));}",".fe5j1ua{font-size:20px;}",".fpsl3z4::after{right:calc(-1 * var(--spacingHorizontalMNudge));}",".f1po37t9::after{left:calc(-1 * var(--spacingHorizontalMNudge));}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1je5ipm::after{right:calc(-1 * var(--spacingHorizontalM));}",".fb53jzl::after{left:calc(-1 * var(--spacingHorizontalM));}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}"]}),q6=e=>{"use no memo";const{appearance:t,open:r,size:o,showClearIcon:n}=e,a=`${e.input["aria-invalid"]}`=="true",i=e.input.disabled,l=lW(),d=uW(),f=cW();return e.root.className=F(au.root,l.root,l[t],l[o],!i&&t==="outline"&&l.outlineInteractive,a&&t!=="underline"&&l.invalid,a&&t==="underline"&&l.invalidUnderline,i&&l.disabled,e.root.className),e.input.className=F(au.input,f.input,f[o],i&&f.disabled,e.input.className),e.listbox&&(e.listbox.className=F(au.listbox,l.listbox,e.inlinePopup&&l.inlineListbox,!r&&l.listboxCollapsed,e.listbox.className)),e.expandIcon&&(e.expandIcon.className=F(au.expandIcon,d.icon,d[o],i&&d.disabled,n&&d.visuallyHidden,e.expandIcon.className)),e.clearIcon&&(e.clearIcon.className=F(au.clearIcon,d.icon,d[o],i&&d.disabled,!n&&d.hidden,e.clearIcon.className)),e},Ur=m.forwardRef((e,t)=>{const r=P6(e,t),o=Ey(r);return q6(r),xe("useComboboxStyles_unstable")(r),M6(r,o)});Ur.displayName="Combobox";function dW(e,t,r){"use no memo";const{state:{open:o,setOpen:n,getOptionById:a},defaultProps:i,activeDescendantController:l}=r,d=m.useRef(""),[f,p]=Ga(),h=(b,k={startFromNext:!1})=>{const{startFromNext:S}=k,N=l.active(),B=l.find(C=>{const z=a(C);return!!z&&b(z.text)},{startFrom:S?l.next({passive:!0}):N});return B||l.find(C=>{const z=a(C);return!!z&&b(z.text)})},v=()=>{h(b=>b.toLocaleLowerCase().indexOf(d.current)===0,{startFromNext:d.current.length===1})||fW(d.current)&&h(b=>b.toLocaleLowerCase().indexOf(d.current[0])===0,{startFromNext:!0})||l.blur()},y=b=>{p(),Xu(b)==="Type"&&(d.current+=b.key.toLowerCase(),f(()=>{d.current=""},500),o&&v(),!o&&n(b,!0))},x=D6(e,t,{state:r.state,defaultProps:i,elementType:"button",activeDescendantController:l});return x.onKeyDown=Re(y,x.onKeyDown),x}function fW(e){for(let t=1;t<e.length;t++)if(e[t]!==e[t-1])return!1;return!0}const pW=(e,t)=>{"use no memo";var r;e=ga(e,{supportsLabelFor:!0});const{listboxRef:o,activeParentRef:n,controller:a}=sg({matchOption:A=>A.classList.contains(Hl.root)}),i=Py({...e,activeDescendantController:a,freeform:!1}),{appearance:l,size:d,freeform:f,...p}=i,{clearable:h,clearSelection:v,disabled:y,hasFocus:x,multiselect:b,open:k,selectedOptions:S,setOpen:N}=p,{primary:B,root:C}=$i({props:e,primarySlotTagName:"button",excludedPropNames:["children"]}),[z,R]=R6(e),E=m.useRef(null),D=My(e.listbox,Le(z,o),{state:i,triggerRef:E,defaultProps:{children:e.children}}),{targetDocument:I}=Ve();xd({element:I,callback:A=>N(A,!1),refs:[E,z,R],disabled:!k});var M;const O=dW((M=e.button)!==null&&M!==void 0?M:{},Le(E,n,t),{state:i,defaultProps:{type:"button",tabIndex:B.disabled?void 0:0,children:p.value||e.placeholder,"aria-controls":k?D?.id:void 0,...B},activeDescendantController:a}),H=me(e.root,{defaultProps:{"aria-owns":!e.inlinePopup&&k?D?.id:void 0,children:e.children,...C},elementType:"div"});H.ref=Le(H.ref,R);const $=S.length>0&&!y&&h&&!b,Z={components:{root:"div",button:"button",clearButton:"button",expandIcon:"span",listbox:Vl},root:H,button:O,listbox:k||x?D:void 0,clearButton:ke(e.clearButton,{defaultProps:{"aria-label":"Clear selection",tabIndex:$?0:void 0,type:"button"},elementType:"button",renderByDefault:!0}),expandIcon:ke(e.expandIcon,{renderByDefault:!0,elementType:"span"}),placeholderVisible:!p.value&&!!e.placeholder,showClearButton:$,activeDescendantController:a,...p},q=de(Re((r=Z.clearButton)===null||r===void 0?void 0:r.onClick,A=>{var X;v(A),(X=E.current)===null||X===void 0||X.focus()}));return Z.clearButton&&(Z.clearButton.onClick=q),b&&(Z.clearButton=void 0),Z},mW=(e,t)=>{"use no memo";const{appearance:r="outline",size:o="medium",...n}=e,a=pW(n,t);if(a.clearButton){var i,l;(l=(i=a.clearButton).children)!==null&&l!==void 0||(i.children=m.createElement(nc,null))}if(a.expandIcon){var d,f;(f=(d=a.expandIcon).children)!==null&&f!==void 0||(d.children=m.createElement(lg,null))}return{...a,appearance:r,size:o}},gW=(e,t)=>G(e.root,{children:G(ig,{value:t.activeDescendant,children:G(lc.Provider,{value:t.listbox,children:Ie(Dy.Provider,{value:t.combobox,children:[Ie(e.button,{children:[e.button.children,e.expandIcon&&G(e.expandIcon,{})]}),e.clearButton&&G(e.clearButton,{}),e.listbox&&(e.inlinePopup?G(e.listbox,{}):G(ma,{mountNode:e.mountNode,children:G(e.listbox,{})}))]})})})}),iu={root:"fui-Dropdown",button:"fui-Dropdown__button",clearButton:"fui-Dropdown__clearButton",expandIcon:"fui-Dropdown__expandIcon",listbox:"fui-Dropdown__listbox"},hW=Y({root:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",B7ck84d:"f1ewtqcl",mc9l5x:"ftuwxu6",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:"ffyw7fx",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],B1q35kw:0,Bw17bha:0,Bcgy8vk:0,Bjuhk93:"f1mnjydx",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",wi16st:"fsrmcvb",ywj3b2:"f1t3k7v9",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",Bnupc0a:"fx04xgm",bing71:"f1c7in40",Bercvud:"f1ibeo51",Br277j9:"f18qfb8s",Btis473:"f1m082s7"},listbox:{B7ck84d:"f1ewtqcl",E5pizo:"f1hg901r",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bxyxcbc:"fmmk62d"},listboxCollapsed:{mc9l5x:"fjseox"},inlineListbox:{Bj3rh1h:"f19g0ac"},button:{Bt984gj:"f122n59",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",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",i8kkvl:"f14mj54c",Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bahqtrf:"fk6fouc",Budl1dq:"f12nh0o2",Brf1p80:"f1869bpl",fsow6f:["f1o700av","fes3tcz"],a9b677:"fly5x3f",Brovlpu:"ftqa4ok"},placeholder:{sj55zd:"fxc4j92"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["fye6m5k","f3cq2dl"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f14ev680","f58uxzw"]},large:{i8kkvl:"f1rjii52",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f139mn7i","f1v3q0m"]},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:"fs2rfia"},"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:"fs2rfia"},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"],Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"]},disabledText:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"},hidden:{mc9l5x:"fjseox"}},{d:[[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1ewtqcl{box-sizing:border-box;}",".ftuwxu6{display:inline-flex;}",".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;}",".ffyw7fx::after{height:max(var(--strokeWidthThick), 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;}",".f122n59{align-items:center;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".f3bhgqh{border:none;}",{p:-2}],".f19n0e5{color:var(--colorNeutralForeground1);}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".f1k6fduh{cursor:pointer;}",".f13qh94s{display:grid;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f12nh0o2{grid-template-columns:[content] 1fr [icon] auto [end];}",".f1869bpl{justify-content:space-between;}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fly5x3f{width:100%;}",".fxc4j92{color:var(--colorNeutralForeground4);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",[".fye6m5k{padding:3px var(--spacingHorizontalSNudge) 3px calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",{p:-1}],[".f3cq2dl{padding:3px calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS)) 3px var(--spacingHorizontalSNudge);}",{p:-1}],".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".f14ev680{padding:5px var(--spacingHorizontalMNudge) 5px calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",{p:-1}],[".f58uxzw{padding:5px calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS)) 5px var(--spacingHorizontalMNudge);}",{p:-1}],".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",[".f139mn7i{padding:7px var(--spacingHorizontalM) 7px calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",{p:-1}],[".f1v3q0m{padding:7px calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge)) 7px var(--spacingHorizontalM);}",{p:-1}],".fxugw4r{background-color:var(--colorNeutralBackground1);}",[".fhz96rm{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);}",{p:-2}],".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",[".f9ez7ne{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStrokeAccessible);}",{p:-1}],[".fokr779{border-radius:0;}",{p:-1}],[".fs2rfia{border:var(--strokeWidthThin) solid transparent;}",{p:-2}],".f16xq7d1{background-color:var(--colorNeutralBackground3);}",[".fs2rfia{border:var(--strokeWidthThin) solid transparent;}",{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);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],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){.fsrmcvb::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1t3k7v9::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fx04xgm:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1c7in40:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],t:["@supports selector(:has(*)){.f18qfb8s:has(.fui-Dropdown__clearButton:focus)::after{border-bottom-color:initial;}}","@supports selector(:has(*)){.f1m082s7:has(.fui-Dropdown__clearButton:focus)::after{transform:scaleX(0);}}"],f:[".ftqa4ok:focus{outline-style:none;}"],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);}"]}),vW=Y({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Br312pm:"f12w6cgp",Bw0ie65:"f8bv1bt",Bo70h7d:"fvc9v3g"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f12w6cgp{grid-column-start:icon;}",".f8bv1bt{grid-column-end:end;}",".fvc9v3g svg{display:block;}",".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);}"]}),bW=Be("rticfuj","r1vp6jef",{r:[".rticfuj{align-self:center;background-color:var(--colorTransparentBackground);border:none;cursor:pointer;height:fit-content;margin:0;margin-right:var(--spacingHorizontalMNudge);padding:0;position:relative;}",".rticfuj:focus{outline-style:none;}",".rticfuj:focus-visible{outline-style:none;}",".rticfuj[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rticfuj[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);}',".r1vp6jef{align-self:center;background-color:var(--colorTransparentBackground);border:none;cursor:pointer;height:fit-content;margin:0;margin-left:var(--spacingHorizontalMNudge);padding:0;position:relative;}",".r1vp6jef:focus{outline-style:none;}",".r1vp6jef:focus-visible{outline-style:none;}",".r1vp6jef[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1vp6jef[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){.rticfuj[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){.r1vp6jef[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),yW=e=>{"use no memo";const{appearance:t,open:r,placeholderVisible:o,showClearButton:n,size:a}=e,i=`${e.button["aria-invalid"]}`=="true",l=e.button.disabled,d=hW(),f=vW(),p=bW();return e.root.className=F(iu.root,d.root,d[t],!l&&t==="outline"&&d.outlineInteractive,i&&t!=="underline"&&d.invalid,i&&t==="underline"&&d.invalidUnderline,l&&d.disabled,e.root.className),e.button.className=F(iu.button,d.button,d[a],o&&d.placeholder,l&&d.disabledText,e.button.className),e.listbox&&(e.listbox.className=F(iu.listbox,d.listbox,e.inlinePopup&&d.inlineListbox,!r&&d.listboxCollapsed,e.listbox.className)),e.expandIcon&&(e.expandIcon.className=F(iu.expandIcon,f.icon,f[a],l&&f.disabled,n&&d.hidden,e.expandIcon.className)),e.clearButton&&(e.clearButton.className=F(iu.clearButton,p,f.icon,f[a],l&&f.disabled,!n&&d.hidden,e.clearButton.className)),e},qy=m.forwardRef((e,t)=>{const r=mW(e,t),o=Ey(r);return yW(r),xe("useDropdownStyles_unstable")(r),gW(r,o)});qy.displayName="Dropdown";const xW=(e,t)=>{const r=bt("group-label"),{label:o}=e;return{components:{root:"div",label:"span"},root:me($e("div",{ref:t,role:"group","aria-labelledby":o?r:void 0,...e}),{elementType:"div"}),label:ke(o,{defaultProps:{id:r,role:"presentation"},elementType:"span"})}},wW=e=>Ie(e.root,{children:[e.label&&G(e.label,{children:e.label.children}),e.root.children]}),VS={root:"fui-OptionGroup",label:"fui-OptionGroup__label"},kW=Y({root:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Belr9w4:"fiut8dr",B8lkq7l:"f1xxzjds",eii1in:0,H93o2g:0,Gwp8xu:0,Bd39igo:"f16cmn8k",om0q45:"f5642y",Hl9o3s:"ffdf81h",sl1c2c:0,z4hxbw:0,B0i58d9:0,Bi9x0x4:0,Bgurq3m:"f1bsn9kn"},label:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",sj55zd:"f11d4kpn",mc9l5x:"ftgm304",Be2twd7:"fy9rknc",Bhrd7zp:"fl43uef",Bg96gwp:"fwrc4pm",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mpq0zz"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".fiut8dr{row-gap:var(--spacingHorizontalXXS);}",'.f1xxzjds:not(:last-child)::after{content:"";}',[".f16cmn8k:not(:last-child)::after{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStroke2);}",{p:-1}],".f5642y:not(:last-child)::after{display:block;}",".ffdf81h:not(:last-child)::after{padding-bottom:var(--spacingHorizontalXS);}",[".f1bsn9kn:not(:last-child)::after{margin:0 calc(var(--spacingHorizontalXS) * -1) var(--spacingVerticalXS);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f11d4kpn{color:var(--colorNeutralForeground3);}",".ftgm304{display:block;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",[".f1mpq0zz{padding:var(--spacingHorizontalS) var(--spacingHorizontalSNudge);}",{p:-1}]]}),SW=e=>{"use no memo";const t=kW();return e.root.className=F(VS.root,t.root,e.root.className),e.label&&(e.label.className=F(VS.label,t.label,e.label.className)),e},F6=e=>G(e.root,{children:e.root.children!==void 0&&G(e.wrapper,{children:e.root.children})}),BW=(e,t)=>{const{alignContent:r="center",appearance:o="default",inset:n=!1,...a}=e,i=I6(a,t);return{alignContent:r,appearance:o,inset:n,...i}},I6=(e,t)=>{const{vertical:r=!1,wrapper:o,...n}=e,a=bt("divider-");return{vertical:r,components:{root:"div",wrapper:"div"},root:me({role:"separator","aria-orientation":r?"vertical":"horizontal","aria-labelledby":e.children?a:void 0,ref:t,...n},{elementType:"div"}),wrapper:me(o,{defaultProps:{id:a,children:e.children},elementType:"div"})}},WS={root:"fui-Divider",wrapper:"fui-Divider__wrapper"},jW=Y({base:{Bt984gj:"f122n59",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bh6795r:"fqerorx",qhf8xq:"f10pi13n",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",fsow6f:"f17mccla",Bcvre1j:"fyl8oag",Br0sdwz:"f16vkdww",Bn78ew0:"fhsnbul",li1rpt:"f1gw3sf2",ap17g6:"f1ly5f7u",B771hl4:"f1s3tz6t"},childless:{susq4k:"f1kyqvp9",Bicfajf:["fzynn9s","f1z0ukd1"],jwcpgy:["fekrn8e","ftdg338"],B4rk6o:"fesgyo"},start:{Bsft5z2:"f13zj6fq"},center:{Ftih45:"f1wl9k8s",Bsft5z2:"f13zj6fq"},end:{Ftih45:"f1wl9k8s"},brand:{sj55zd:"f16muhyy",Bq4z7u6:"fcbuu2a",Bk5zm6e:["f1wdw2dr","f1ttio3w"],Bqjgrrk:"f1582fpk",Bm6vgfq:["f1ttio3w","f1wdw2dr"],B0n5ga8:"f1ahrvm8",s924m2:["f1cd3wbc","f17hbk9y"],B1q35kw:"fvrapl0",Gp14am:["f17hbk9y","f1cd3wbc"]},default:{sj55zd:"fkfq4zb",Bq4z7u6:"f1vccso1",Bk5zm6e:["f1geml7w","fjml6kk"],Bqjgrrk:"f1r7kh1m",Bm6vgfq:["fjml6kk","f1geml7w"],B0n5ga8:"f16j7guv",s924m2:["fx01ahm","fj1a37q"],B1q35kw:"fl8d8yv",Gp14am:["fj1a37q","fx01ahm"]},subtle:{sj55zd:"f11d4kpn",Bq4z7u6:"f5g06un",Bk5zm6e:["f13sxdku","f1n015lb"],Bqjgrrk:"f1x6bl8t",Bm6vgfq:["f1n015lb","f13sxdku"],B0n5ga8:"fvod1wy",s924m2:["fwslg65","flk0e17"],B1q35kw:"f103fvts",Gp14am:["flk0e17","fwslg65"]},strong:{sj55zd:"f19n0e5",Bq4z7u6:"f10tv6oz",Bk5zm6e:["f16xp3sf","f1seuxxq"],Bqjgrrk:"fwrmqbx",Bm6vgfq:["f1seuxxq","f16xp3sf"],B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]}},{d:[".f122n59{align-items:center;}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fqerorx{flex-grow:1;}",".f10pi13n{position:relative;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f17mccla{text-align:center;}",".fyl8oag::before{box-sizing:border-box;}",".f16vkdww::before{display:flex;}",".fhsnbul::before{flex-grow:1;}",".f1gw3sf2::after{box-sizing:border-box;}",".f1ly5f7u::after{display:flex;}",".f1s3tz6t::after{flex-grow:1;}",".f1kyqvp9::before{margin-bottom:0;}",".fzynn9s::before{margin-right:0;}",".f1z0ukd1::before{margin-left:0;}",".fekrn8e::after{margin-left:0;}",".ftdg338::after{margin-right:0;}",".fesgyo::after{margin-top:0;}",'.f13zj6fq::after{content:"";}','.f1wl9k8s::before{content:"";}',".f16muhyy{color:var(--colorBrandForeground1);}",".fcbuu2a::before{border-top-color:var(--colorBrandStroke1);}",".f1wdw2dr::before{border-right-color:var(--colorBrandStroke1);}",".f1ttio3w::before{border-left-color:var(--colorBrandStroke1);}",".f1582fpk::before{border-bottom-color:var(--colorBrandStroke1);}",".f1ahrvm8::after{border-top-color:var(--colorBrandStroke1);}",".f1cd3wbc::after{border-right-color:var(--colorBrandStroke1);}",".f17hbk9y::after{border-left-color:var(--colorBrandStroke1);}",".fvrapl0::after{border-bottom-color:var(--colorBrandStroke1);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f1vccso1::before{border-top-color:var(--colorNeutralStroke2);}",".f1geml7w::before{border-right-color:var(--colorNeutralStroke2);}",".fjml6kk::before{border-left-color:var(--colorNeutralStroke2);}",".f1r7kh1m::before{border-bottom-color:var(--colorNeutralStroke2);}",".f16j7guv::after{border-top-color:var(--colorNeutralStroke2);}",".fx01ahm::after{border-right-color:var(--colorNeutralStroke2);}",".fj1a37q::after{border-left-color:var(--colorNeutralStroke2);}",".fl8d8yv::after{border-bottom-color:var(--colorNeutralStroke2);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".f5g06un::before{border-top-color:var(--colorNeutralStroke3);}",".f13sxdku::before{border-right-color:var(--colorNeutralStroke3);}",".f1n015lb::before{border-left-color:var(--colorNeutralStroke3);}",".f1x6bl8t::before{border-bottom-color:var(--colorNeutralStroke3);}",".fvod1wy::after{border-top-color:var(--colorNeutralStroke3);}",".fwslg65::after{border-right-color:var(--colorNeutralStroke3);}",".flk0e17::after{border-left-color:var(--colorNeutralStroke3);}",".f103fvts::after{border-bottom-color:var(--colorNeutralStroke3);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f10tv6oz::before{border-top-color:var(--colorNeutralStroke1);}",".f16xp3sf::before{border-right-color:var(--colorNeutralStroke1);}",".f1seuxxq::before{border-left-color:var(--colorNeutralStroke1);}",".fwrmqbx::before{border-bottom-color:var(--colorNeutralStroke1);}",".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);}"]}),CW=Y({base:{a9b677:"fly5x3f",Bdkvgpv:"f163fonl",B0qfbqy:"f51yk4v",pbipgd:"f13rof3u",Bm2nyyq:"f8rth92",xrcqlc:"f6czdpx",i5u598:"f1iyka9k"},inset:{uwmqm3:["fjlbh76","f11qrl6u"],z189sj:["f11qrl6u","fjlbh76"]},start:{fsow6f:["f1o700av","fes3tcz"],Ftih45:"f1wl9k8s",Bicfajf:["f1ojjlep","fk1kexq"],Bxwl2t9:"f1he2m4d",jwcpgy:["f12w1bnb","f1558wlj"]},center:{fsow6f:"f17mccla",Bicfajf:["f1ojjlep","fk1kexq"],jwcpgy:["f12w1bnb","f1558wlj"]},end:{fsow6f:["fes3tcz","f1o700av"],Bicfajf:["f1ojjlep","fk1kexq"],Bsft5z2:"f13zj6fq",jwcpgy:["f12w1bnb","f1558wlj"],Iy66sp:"f1ayce8x"}},{d:[".fly5x3f{width:100%;}",".f163fonl::before{border-top-style:solid;}",".f51yk4v::before{border-top-width:var(--strokeWidthThin);}",".f13rof3u::before{min-width:8px;}",".f8rth92::after{border-top-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f1iyka9k::after{min-width:8px;}",".fjlbh76{padding-left:12px;}",".f11qrl6u{padding-right:12px;}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",'.f1wl9k8s::before{content:"";}',".f1ojjlep::before{margin-right:12px;}",".fk1kexq::before{margin-left:12px;}",".f1he2m4d::before{max-width:8px;}",".f12w1bnb::after{margin-left:12px;}",".f1558wlj::after{margin-right:12px;}",".f17mccla{text-align:center;}",'.f13zj6fq::after{content:"";}',".f1ayce8x::after{max-width:8px;}"]}),NW=Y({base:{Beiy3e4:"f1vx9l62",sshi5w:"f16gbxbe",m598lv:["f1yq6w5o","f1jpmc5p"],B4f6apu:["f9sc749","f1x8pvcy"],zkzzav:"fhkwbjy",Barhvk9:["flthirb","ftkbnf5"],Ihftqj:["f13hvwk3","f1en4csx"],Bde111x:"f19onpk6"},inset:{B6of3ja:"f1xdg43u",jrapky:"f1jlhsmd"},withChildren:{sshi5w:"f1tjaq3g"},start:{Ftih45:"f1wl9k8s",susq4k:"fg2pwug",Bbdr6tz:"fkjtzyi",B4rk6o:"f8vk40g"},center:{susq4k:"fg2pwug",B4rk6o:"f8vk40g"},end:{susq4k:"fg2pwug",Bsft5z2:"f13zj6fq",B4rk6o:"f8vk40g",gn64ia:"fqg5mu5"}},{d:[".f1vx9l62{flex-direction:column;}",".f16gbxbe{min-height:20px;}",".f1yq6w5o::before{border-right-style:solid;}",".f1jpmc5p::before{border-left-style:solid;}",".f9sc749::before{border-right-width:var(--strokeWidthThin);}",".f1x8pvcy::before{border-left-width:var(--strokeWidthThin);}",".fhkwbjy::before{min-height:8px;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f19onpk6::after{min-height:8px;}",".f1xdg43u{margin-top:12px;}",".f1jlhsmd{margin-bottom:12px;}",".f1tjaq3g{min-height:84px;}",'.f1wl9k8s::before{content:"";}',".fg2pwug::before{margin-bottom:12px;}",".fkjtzyi::before{max-height:8px;}",".f8vk40g::after{margin-top:12px;}",'.f13zj6fq::after{content:"";}',".fqg5mu5::after{max-height:8px;}"]}),A6=e=>{"use no memo";const t=jW(),r=CW(),o=NW(),{alignContent:n,appearance:a,inset:i,vertical:l}=e;return e.root.className=F(WS.root,t.base,t[n],a&&t[a],!l&&r.base,!l&&i&&r.inset,!l&&r[n],l&&o.base,l&&i&&o.inset,l&&o[n],l&&e.root.children!==void 0&&o.withChildren,e.root.children===void 0&&t.childless,e.root.className),e.wrapper&&(e.wrapper.className=F(WS.wrapper,e.wrapper.className)),e},yu=m.forwardRef((e,t)=>{const r=BW(e,t);return A6(r),xe("useDividerStyles_unstable")(r),F6(r)});yu.displayName="Divider";const zW=(e,t)=>{e=ga(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=Qm();var o;const{size:n="medium",appearance:a=(o=r.inputDefaultAppearance)!==null&&o!==void 0?o:"outline",...i}=e,l=TW(i,t);return{size:n,appearance:a,...l}},TW=(e,t)=>{const{onChange:r}=e,[o,n]=Xt({state:e.value,defaultState:e.defaultValue,initialState:""}),a=$i({props:e,primarySlotTagName:"input",excludedPropNames:["onChange","value","defaultValue"]}),i={components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:me(e.input,{defaultProps:{type:"text",ref:t,...a.primary},elementType:"input"}),contentAfter:ke(e.contentAfter,{elementType:"span"}),contentBefore:ke(e.contentBefore,{elementType:"span"}),root:me(e.root,{defaultProps:a.root,elementType:"span"})};return i.input.value=o,i.input.onChange=de(l=>{const d=l.target.value;r?.(l,{value:d}),n(d)}),i},_W=e=>Ie(e.root,{children:[e.contentBefore&&G(e.contentBefore,{}),G(e.input,{}),e.contentAfter&&G(e.contentAfter,{})]}),ip={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},RW=Be("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;}}"]}),DW=Y({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"],Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"],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){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],w:[".f99w1ws:focus-within{outline-style:none;}"]}),EW=Be("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;}"]),PW=Y({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);}"]}),MW=Be("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),qW=Y({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;}"]}),FW=e=>{"use no memo";const{size:t,appearance:r}=e,o=e.input.disabled,n=`${e.input["aria-invalid"]}`=="true",a=r.startsWith("filled"),i=DW(),l=PW(),d=qW();e.root.className=F(ip.root,RW(),i[t],e.contentBefore&&i[`${t}WithContentBefore`],e.contentAfter&&i[`${t}WithContentAfter`],i[r],!o&&r==="outline"&&i.outlineInteractive,!o&&r==="underline"&&i.underlineInteractive,!o&&a&&i.filledInteractive,a&&i.filled,!o&&n&&i.invalid,o&&i.disabled,e.root.className),e.input.className=F(ip.input,EW(),l[t],e.contentBefore&&l[`${t}WithContentBefore`],e.contentAfter&&l[`${t}WithContentAfter`],o&&l.disabled,e.input.className);const f=[MW(),o&&d.disabled,d[t]];return e.contentBefore&&(e.contentBefore.className=F(ip.contentBefore,...f,e.contentBefore.className)),e.contentAfter&&(e.contentAfter.className=F(ip.contentAfter,...f,e.contentAfter.className)),e},Ht=m.forwardRef((e,t)=>{const r=zW(e,t);return FW(r),xe("useInputStyles_unstable")(r),_W(r)});Ht.displayName="Input";const IW=e=>{const{disabled:t,disabledFocusable:r}=e,{onClick:o,onKeyDown:n,role:a,tabIndex:i}=e.root;return e.root.as==="a"&&(e.root.href=t?void 0:e.root.href,(t||r)&&(e.root.role=a||"link")),(e.root.as==="a"||e.root.as==="span")&&(e.root.tabIndex=i??(t&&!r?void 0:0)),e.root.onClick=l=>{t||r?l.preventDefault():o?.(l)},e.root.onKeyDown=l=>{const d=l.key===kr||l.key===ro;(t||r)&&d?(l.preventDefault(),l.stopPropagation()):(n?.(l),e.root.as==="span"&&e.root.onClick&&!n&&d&&(l.preventDefault(),l.currentTarget.click()))},e.disabled=t||r,e.root["aria-disabled"]=t||r||void 0,e.root.as==="button"&&(e.root.disabled=t&&!r),e},O6=m.createContext(void 0),AW={inline:!1},OW=O6.Provider,LW=()=>{var e;return(e=m.useContext(O6))!==null&&e!==void 0?e:AW},$W=(e,t)=>{const r=Yb(),{appearance:o="default",...n}=e,a=HW(n,t);return{appearance:o,backgroundAppearance:r,...a}},HW=(e,t)=>{const{inline:r}=LW(),{disabled:o=!1,disabledFocusable:n=!1,inline:a=!1}=e,i=e.as||(e.href?"a":"button"),l={role:i==="span"?"button":void 0,type:i==="button"?"button":void 0,...e,as:i},d={disabled:o,disabledFocusable:n,inline:a??!!r,components:{root:i},root:me($e(i,{ref:t,...l}),{elementType:i})};return IW(d),d},VW={root:"fui-Link"},WW=Y({focusIndicator:{Bttzg6e:"fhgqx19",B3uz8dt:"f1olyrje",B6ihwck:"f1p93eir",g9k6zt:"f1nev41a"},root:{B486eqv:"f2hkw1w",De3pzq:"f3rmtva",B7ck84d:"f1ewtqcl",sj55zd:"fyind8e",Bceei9c:"f1k6fduh",mc9l5x:"f1w7gpdv",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",B68tc82:0,Bmxbyg5:0,Bpg54ce:"fnbmjn9",fsow6f:["f1o700av","fes3tcz"],w71qe1:"f1iuv45f",Bkioxbp:"f1cmlufx",ygn44y:"f9n3di6",famaaq:"f1ids18y",Bde5pd6:"f1tx3yz7",Bi91k9c:"f1deo86v",i089h6:"f1eh06m1",lj723h:"f1iescvh"},button:{icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"]},href:{Be2twd7:"fjoy568"},subtle:{sj55zd:"f2yjg6r",Bde5pd6:"f1tx3yz7",Bi91k9c:"fj1cjhr",i089h6:"f1eh06m1",lj723h:"fhucn0c"},inline:{w71qe1:"f13mvf36"},disabled:{w71qe1:"f1iuv45f",sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bde5pd6:"fbnuktb",Bi91k9c:"fvgxktp",i089h6:"fljg2da",lj723h:"f19wldhg"},inverted:{sj55zd:"f1qz2gb0",Bi91k9c:"f1ujg2k6",lj723h:"f1ebemlp"},brand:{sj55zd:"f179xftw",Bi91k9c:"f1sk1dtk",lj723h:"f182g21t"}},{d:[".fhgqx19[data-fui-focus-visible]{text-decoration-color:var(--colorStrokeFocus2);}",".f1olyrje[data-fui-focus-visible]{text-decoration-line:underline;}",".f1p93eir[data-fui-focus-visible]{text-decoration-style:double;}",".f1nev41a[data-fui-focus-visible]{outline-style:none;}",".f3rmtva{background-color:transparent;}",".f1ewtqcl{box-sizing:border-box;}",".fyind8e{color:var(--colorBrandForegroundLink);}",".f1k6fduh{cursor:pointer;}",".f1w7gpdv{display:inline;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",[".f1s184ao{margin:0;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],[".fnbmjn9{overflow:inherit;}",{p:-1}],".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".f1iuv45f{text-decoration-line:none;}",".f1cmlufx{text-decoration-thickness:var(--strokeWidthThin);}",".f9n3di6{text-overflow:inherit;}",".f1ids18y{-webkit-user-select:text;-moz-user-select:text;user-select:text;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".fjoy568{font-size:inherit;}",".f2yjg6r{color:var(--colorNeutralForeground2Link);}",".f13mvf36{text-decoration-line:underline;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1qz2gb0{color:var(--colorBrandForegroundInverted);}",".f179xftw{color:var(--colorNeutralForegroundInvertedLink);}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],h:[".f1tx3yz7:hover{text-decoration-line:underline;}",".f1deo86v:hover{color:var(--colorBrandForegroundLinkHover);}",".fj1cjhr:hover{color:var(--colorNeutralForeground2LinkHover);}",".fbnuktb:hover{text-decoration-line:none;}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1ujg2k6:hover{color:var(--colorBrandForegroundInverted);}",".f1sk1dtk:hover{color:var(--colorNeutralForegroundInvertedLinkHover);}"],a:[".f1eh06m1:active{text-decoration-line:underline;}",".f1iescvh:active{color:var(--colorBrandForegroundLinkPressed);}",".fhucn0c:active{color:var(--colorNeutralForeground2LinkPressed);}",".fljg2da:active{text-decoration-line:none;}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1ebemlp:active{color:var(--colorBrandForegroundInverted);}",".f182g21t:active{color:var(--colorNeutralForegroundInvertedLinkPressed);}"]}),UW=e=>{"use no memo";const t=WW(),{appearance:r,disabled:o,inline:n,root:a,backgroundAppearance:i}=e;return e.root.className=F(VW.root,t.root,t.focusIndicator,a.as==="a"&&a.href&&t.href,a.as==="button"&&t.button,r==="subtle"&&t.subtle,i==="inverted"&&t.inverted,i==="brand"&&t.brand,n&&t.inline,o&&t.disabled,e.root.className),e},GW=e=>G(e.root,{}),xs=m.forwardRef((e,t)=>{const r=$W(e,t);return UW(r),xe("useLinkStyles_unstable")(r),GW(r)});xs.displayName="Link";const Fy=Vn(void 0),ZW={open:!1,setOpen:()=>!1,checkedValues:{},onCheckedValueChange:()=>null,isSubmenu:!1,triggerRef:{current:null},menuPopoverRef:{current:null},mountNode:null,triggerId:"",openOnContext:!1,openOnHover:!1,hasIcons:!1,hasCheckmarks:!1,inline:!1,persistOnItemClick:!1},KW=Fy.Provider,Ot=e=>pa(Fy,(t=ZW)=>e(t)),L6=m.createContext(void 0),XW=!1,YW=L6.Provider,JW=()=>{var e;return(e=m.useContext(L6))!==null&&e!==void 0?e:XW},$6=m.createContext(void 0),QW={headerId:""};$6.Provider;const eU=()=>{var e;return(e=m.useContext($6))!==null&&e!==void 0?e:QW},Iy=Vn(void 0),tU={checkedValues:{},setFocusByFirstCharacter:()=>null,toggleCheckbox:()=>null,selectRadio:()=>null,hasIcons:!1,hasCheckmarks:!1},rU=Iy.Provider,Ts=e=>pa(Iy,(t=tU)=>e(t)),Yu="fuimenuenter",oU=e=>{const{refs:t,callback:r,element:o,disabled:n}=e,a=de(i=>{const l=t[0],d=i.target;var f;!Mi((f=l.current)!==null&&f!==void 0?f:null,d)&&!n&&r(i)});m.useEffect(()=>{if(o!=null)return n||o.addEventListener(Yu,a),()=>{o.removeEventListener(Yu,a)}},[a,o,n])},nU=(e,t)=>{e.dispatchEvent(new CustomEvent(Yu,{bubbles:!0,detail:{nativeEvent:t}}))};function Ay(){const e=Ot(r=>r.isSubmenu),t=jd(Iy);return e||t}const H6=e=>{"use no memo";const{targetDocument:t}=Ve();return Ot(o=>o.triggerRef),Ot(o=>o.inline),m.useRef(null)},F1="fuimenusafezonetimeout",aU=e=>{const t=m.useRef(null);return m.useCallback(r=>{var o;(o=t.current)===null||o===void 0||o.removeEventListener(F1,e),r?.addEventListener(F1,e),t.current=r},[e])},iU=Y({root:{a9b677:"fjw5fx7",Bqenvij:"fd461yt",Bcdw1i0:"fd7fpy0",Bnnss6s:"fi64zpg"},rootChecked:{Bcdw1i0:"f1022m68",Bnnss6s:"fi64zpg"}},{d:[".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".fd7fpy0{visibility:hidden;}",".fi64zpg{flex-shrink:0;}",".f1022m68{visibility:visible;}"]}),V6=e=>{"use no memo";const t=iU();e.checkmark&&(e.checkmark.className=F(t.root,e.checked&&t.rootChecked,e.checkmark.className))},xi={root:"fui-MenuItem",icon:"fui-MenuItem__icon",checkmark:"fui-MenuItem__checkmark",submenuIndicator:"fui-MenuItem__submenuIndicator",content:"fui-MenuItem__content",secondaryContent:"fui-MenuItem__secondaryContent",subText:"fui-MenuItem__subText"},sU=Be("rfoezjv","r8lt3v0",{r:[".rfoezjv{border-radius:var(--borderRadiusMedium);position:relative;color:var(--colorNeutralForeground2);background-color:var(--colorNeutralBackground1);padding-right:var(--spacingVerticalSNudge);padding-left:var(--spacingVerticalSNudge);padding-top:var(--spacingVerticalSNudge);padding-bottom:var(--spacingVerticalSNudge);box-sizing:border-box;max-width:290px;min-height:32px;flex-shrink:0;display:flex;align-items:start;font-size:var(--fontSizeBase300);cursor:pointer;gap:4px;-webkit-user-select:none;-moz-user-select:none;user-select:none;}",".rfoezjv:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".rfoezjv:hover .fui-Icon-filled{display:inline;}",".rfoezjv:hover .fui-Icon-regular{display:none;}",".rfoezjv:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".rfoezjv:hover .fui-MenuItem__subText{color:var(--colorNeutralForeground3Hover);}",".rfoezjv:hover:active{background-color:var(--colorNeutralBackground1Pressed);color:var(--colorNeutralForeground2Pressed);}",".rfoezjv:hover:active .fui-MenuItem__subText{color:var(--colorNeutralForeground3Pressed);}",".rfoezjv:focus{outline-style:none;}",".rfoezjv:focus-visible{outline-style:none;}",".rfoezjv[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rfoezjv[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);}',".r8lt3v0{border-radius:var(--borderRadiusMedium);position:relative;color:var(--colorNeutralForeground2);background-color:var(--colorNeutralBackground1);padding-left:var(--spacingVerticalSNudge);padding-right:var(--spacingVerticalSNudge);padding-top:var(--spacingVerticalSNudge);padding-bottom:var(--spacingVerticalSNudge);box-sizing:border-box;max-width:290px;min-height:32px;flex-shrink:0;display:flex;align-items:start;font-size:var(--fontSizeBase300);cursor:pointer;gap:4px;-webkit-user-select:none;-moz-user-select:none;user-select:none;}",".r8lt3v0:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".r8lt3v0:hover .fui-Icon-filled{display:inline;}",".r8lt3v0:hover .fui-Icon-regular{display:none;}",".r8lt3v0:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".r8lt3v0:hover .fui-MenuItem__subText{color:var(--colorNeutralForeground3Hover);}",".r8lt3v0:hover:active{background-color:var(--colorNeutralBackground1Pressed);color:var(--colorNeutralForeground2Pressed);}",".r8lt3v0:hover:active .fui-MenuItem__subText{color:var(--colorNeutralForeground3Pressed);}",".r8lt3v0:focus{outline-style:none;}",".r8lt3v0:focus-visible{outline-style:none;}",".r8lt3v0[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r8lt3v0[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){.rfoezjv:hover{background-color:Canvas;border-color:Highlight;color:Highlight;}.rfoezjv:focus{outline-style:none;}.rfoezjv:focus-visible{outline-style:none;}.rfoezjv[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}@media (forced-colors: active){.rfoezjv[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}.rfoezjv[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid Highlight;border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}}',"@media (forced-colors: active){.rfoezjv[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){.r8lt3v0:hover{background-color:Canvas;border-color:Highlight;color:Highlight;}.r8lt3v0:focus{outline-style:none;}.r8lt3v0:focus-visible{outline-style:none;}.r8lt3v0[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}@media (forced-colors: active){.r8lt3v0[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}.r8lt3v0[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid Highlight;border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}}',"@media (forced-colors: active){.r8lt3v0[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),lU=Be("r1ls86vo","rpbc5dr",[".r1ls86vo{padding-left:2px;padding-right:2px;background-color:transparent;flex-grow:1;}",".rpbc5dr{padding-right:2px;padding-left:2px;background-color:transparent;flex-grow:1;}"]),cU=Be("r12mwwux","r1ewgu5j",[".r12mwwux{padding-left:2px;padding-right:2px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);color:var(--colorNeutralForeground3);}",".r12mwwux:hover{color:var(--colorNeutralForeground3Hover);}",".r12mwwux:focus{color:var(--colorNeutralForeground3Hover);}",".r1ewgu5j{padding-right:2px;padding-left:2px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);color:var(--colorNeutralForeground3);}",".r1ewgu5j:hover{color:var(--colorNeutralForeground3Hover);}",".r1ewgu5j:focus{color:var(--colorNeutralForeground3Hover);}"]),uU=Be("ro9koqv",null,[".ro9koqv{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;flex-shrink:0;}"]),dU=Be("r9c34qo",null,[".r9c34qo{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;}"]),fU=Be("rk2ppru",null,[".rk2ppru{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);color:var(--colorNeutralForeground3);}"]),pU=Y({checkmark:{B6of3ja:"fmnzpld"},splitItemMain:{Bh6795r:"fqerorx"},splitItemTrigger:{Btl43ni:["f1ozlkrg","f10ostut"],Beyfa6y:["f1deotkl","f1krrbdw"],uwmqm3:["f1cnd47f","fhxju0i"],Ftih45:"f1wl9k8s",Ccq8qp:"f1yn80uh",Baz25je:"f68mna0",cmx5o7:"f1p5zmk"},disabled:{sj55zd:"f1s2aq7o",Bi91k9c:"fvgxktp",Jwef8y:"f1ijtazh",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bg7n49j:"f1q1x1ba",c7f7en:"ff3wrqt",B2d53fq:"fcvwxyo",iro3zm:"f1to34ca",Bumww26:"fszh5vc",t0hwav:"ft33916",B7iucu3:"f1cyfu5x",Bahaeuw:"fa9u7a5",Bbkh6qg:"f1wzezsb",B3ejlan:"f1egomlm",B41git9:"f1wf2001",Boq1n10:"fied5gk",Dcq74g:"f1efp33f",rxnm8d:"f1m2zpi7",wxluhh:"fei14nx",idgcvv:"f12hmwa5",j9xr24:"f1hzwxd0"}},{d:[".fmnzpld{margin-top:2px;}",".fqerorx{flex-grow:1;}",".f1ozlkrg{border-top-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f1krrbdw{border-bottom-right-radius:0;}",".f1cnd47f{padding-left:0;}",".fhxju0i{padding-right:0;}",'.f1wl9k8s::before{content:"";}',".f1yn80uh::before{width:var(--strokeWidthThin);}",".f68mna0::before{height:24px;}",".f1p5zmk::before{background-color:var(--colorNeutralStroke1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],h:[".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1ijtazh:hover{background-color:var(--colorNeutralBackground1);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1q1x1ba:hover .fui-MenuItem__icon{color:var(--colorNeutralForegroundDisabled);}",".ff3wrqt:hover .fui-MenuItem__subText{color:var(--colorNeutralForegroundDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f1to34ca:hover:active{background-color:var(--colorNeutralBackground1);}",".fszh5vc:hover:active .fui-MenuItem__subText{color:var(--colorNeutralForegroundDisabled);}"],f:[".ft33916:focus{color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fa9u7a5:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wzezsb:hover{background-color:Canvas;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1egomlm:hover .fui-MenuItem__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wf2001:hover .fui-MenuItem__icon{background-color:Canvas;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fied5gk:hover .fui-MenuItem__subText{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1efp33f:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1m2zpi7:hover:active{background-color:Canvas;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fei14nx:hover:active .fui-MenuItem__subText{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f12hmwa5:focus{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1hzwxd0:focus{background-color:Canvas;}}",{m:"(forced-colors: active)"}]]}),mU=Y({disabled:{sj55zd:"f1s2aq7o",B7iucu3:"f1cyfu5x"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),gU=Y({content:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62"},secondaryContent:{qb2dma:"f7nlbp4"},submenuIndicator:{qb2dma:"f7nlbp4"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f7nlbp4{align-self:center;}"]}),W6=e=>{"use no memo";const t=pU(),r=sU(),o=lU(),n=cU(),a=uU(),i=dU(),l=gU(),d=fU(),f=mU(),p=!!e.subText;return e.root.className=F(xi.root,r,e.disabled&&t.disabled,e.root.className),e.content&&(e.content.className=F(xi.content,o,e.content.className,p&&l.content)),e.checkmark&&(e.checkmark.className=F(xi.checkmark,t.checkmark,e.checkmark.className)),e.secondaryContent&&(e.secondaryContent.className=F(xi.secondaryContent,n,e.disabled&&t.disabled,e.secondaryContent.className,p&&l.secondaryContent)),e.icon&&(e.icon.className=F(xi.icon,a,e.icon.className)),e.submenuIndicator&&(e.submenuIndicator.className=F(xi.submenuIndicator,i,e.submenuIndicator.className,p&&l.submenuIndicator)),e.subText&&(e.subText.className=F(xi.subText,e.disabled&&f.disabled,e.subText.className,d)),V6(e),e},US=it.durationSlower,GS=it.curveDecelerateMid,ZS=Za(({distance:e=10})=>({enter:[ua({duration:US,easing:GS,direction:"enter"}),{...OC({duration:US,easing:GS,direction:"enter",outX:`calc(var(${sm}, 0px) * ${e})`,outY:`calc(var(${lm}, 0px) * ${e})`}),composite:"accumulate"}],exit:[]})),hU=["after","after-bottom","before-top","before","before-bottom","above"],vU=e=>{const t=Ay(),{hoverDelay:r=500,inline:o=!1,hasCheckmarks:n=!1,hasIcons:a=!1,closeOnScroll:i=!1,openOnContext:l=!1,persistOnItemClick:d=!1,openOnHover:f=t,defaultCheckedValues:p,mountNode:h=null,safeZone:v}=e,{targetDocument:y}=Ve(),x=bt("menu"),[b,k]=c6(),S=Wi(e.positioning),N=WC({targetDocument:y,onPositioningEnd:S.onPositioningEnd}),B={position:t?"after":"below",align:t?"top":"start",target:e.openOnContext?b:void 0,fallbackPositions:t?hU:void 0,...S,onPositioningEnd:N},C=m.Children.toArray(e.children);let z,R;C.length===2?(z=C[0],R=C[1]):C.length===1&&(R=C[0]);const{targetRef:E,containerRef:D}=qs(B),I=v&&f,M=m.useRef({isInside:!1,mouseCoordinates:{x:0,y:0}}),O=hH({disabled:!I,timeout:typeof v=="object"?v.timeout:300,onSafeZoneEnter:V=>{q(V,{open:!0,keyboard:!1,type:"menuSafeZoneMouseEnter",event:V}),M.current.isInside=!0},onSafeZoneLeave:()=>{M.current.isInside=!1},onSafeZoneMove:V=>{M.current.mouseCoordinates={x:V.clientX,y:V.clientY}},onSafeZoneTimeout:()=>{const V=new CustomEvent(F1);if(q(V,{open:!1,keyboard:!1,type:"menuSafeZoneTimeout",event:V}),M.current.isInside&&y){const ee=y.elementsFromPoint(M.current.mouseCoordinates.x,M.current.mouseCoordinates.y).find(W=>W.classList.contains(xi.root));ee?.dispatchEvent(V)}}}),H=Le(E,O.targetRef),$=Le(D,O.containerRef),[Z,q]=yU({hoverDelay:r,isSubmenu:t,setContextTarget:k,closeOnScroll:i,menuPopoverRef:$,triggerRef:H,open:e.open,defaultOpen:e.defaultOpen,onOpenChange:e.onOpenChange,openOnContext:l}),[A,X]=bU({checkedValues:e.checkedValues,defaultCheckedValues:p,onCheckedValueChange:e.onCheckedValueChange});return{inline:o,hoverDelay:r,triggerId:x,isSubmenu:t,openOnHover:f,contextTarget:b,setContextTarget:k,hasCheckmarks:n,hasIcons:a,closeOnScroll:i,menuTrigger:z,menuPopover:R,mountNode:h,triggerRef:H,menuPopoverRef:$,components:{surfaceMotion:ZS},openOnContext:l,open:Z,setOpen:q,checkedValues:A,onCheckedValueChange:X,persistOnItemClick:d,safeZone:O.elementToRender,surfaceMotion:zd(e.surfaceMotion,{elementType:ZS,defaultProps:{visible:Z,appear:!0,unmountOnExit:!0}})}},bU=e=>{const[t,r]=Xt({state:e.checkedValues,defaultState:e.defaultCheckedValues,initialState:{}}),o=de((n,{name:a,checkedItems:i})=>{var l;(l=e.onCheckedValueChange)===null||l===void 0||l.call(e,n,{name:a,checkedItems:i}),r(d=>({...d,[a]:i}))});return[t,o]},yU=e=>{"use no memo";const{targetDocument:t}=Ve(),r=Ot(b=>b.setOpen),o=de((b,k)=>{var S;return(S=e.onOpenChange)===null||S===void 0?void 0:S.call(e,b,k)}),n=m.useRef(!1),[a,i]=Xt({state:e.open,defaultState:e.defaultOpen,initialState:!1}),l=de((b,k)=>{const S=b instanceof CustomEvent&&b.type===Yu?b.detail.nativeEvent:b;o?.(S,{...k}),k.open&&b.type==="contextmenu"&&e.setContextTarget(b),k.open||e.setContextTarget(void 0),k.bubble&&r(b,{...k}),i(k.open)}),[d,f]=Ga(),p=de((b,k)=>{if(f(),!(b instanceof Event)&&b.persist&&b.persist(),!k.ignoreHoverDelay&&(b.type==="mouseleave"||b.type==="mouseover"||b.type==="mousemove"||b.type===Yu)){var N;!((N=e.triggerRef.current)===null||N===void 0)&&N.contains(b.target)&&(n.current=b.type==="mouseover"||b.type==="mousemove"),d(()=>l(b,k),e.hoverDelay)}else l(b,k)});xd({contains:Mi,disabled:!a,element:t,refs:[e.menuPopoverRef,!e.openOnContext&&e.triggerRef].filter(Boolean),callback:b=>p(b,{open:!1,type:"clickOutside",event:b})});const h=e.openOnContext||e.closeOnScroll;Qb({contains:Mi,element:t,callback:b=>p(b,{open:!1,type:"scrollOutside",event:b}),refs:[e.menuPopoverRef,!e.openOnContext&&e.triggerRef].filter(Boolean),disabled:!a||!h}),oU({element:t,callback:b=>{n.current||p(b,{open:!1,type:"menuMouseEnter",event:b})},disabled:!a,refs:[e.menuPopoverRef]});const{findFirstFocusable:v}=hn(),y=m.useCallback(()=>{const b=v(e.menuPopoverRef.current);b?.focus()},[v,e.menuPopoverRef]),x=Jb();return m.useEffect(()=>{if(a)y();else if(!x){var b,k;if(t?.activeElement===t?.body||!((b=e.menuPopoverRef.current)===null||b===void 0)&&b.contains((k=t?.activeElement)!==null&&k!==void 0?k:null)){var S;(S=e.triggerRef.current)===null||S===void 0||S.focus()}}},[e.triggerRef,e.isSubmenu,a,y,t,e.menuPopoverRef]),[a,p]};function xU(e){const{checkedValues:t,hasCheckmarks:r,hasIcons:o,inline:n,isSubmenu:a,menuPopoverRef:i,mountNode:l,onCheckedValueChange:d,open:f,openOnContext:p,openOnHover:h,persistOnItemClick:v,safeZone:y,setOpen:x,triggerId:b,triggerRef:k}=e;return{menu:m.useMemo(()=>({checkedValues:t,hasCheckmarks:r,hasIcons:o,inline:n,isSubmenu:a,menuPopoverRef:i,mountNode:l,onCheckedValueChange:d,open:f,openOnContext:p,openOnHover:h,persistOnItemClick:v,safeZone:y,setOpen:x,triggerId:b,triggerRef:k}),[t,r,o,n,a,i,l,d,f,p,h,v,y,x,b,k])}}const wU=(e,t)=>Ie(KW,{value:t.menu,children:[e.menuTrigger,e.menuPopover&&G(e.surfaceMotion,{children:G(fg,{children:e.menuPopover})})]}),zi=e=>{const t=vU(e),r=xU(t);return wU(t,r)};zi.displayName="Menu";const kU=(e,t)=>({components:{root:"div"},root:me($e("div",{role:"presentation","aria-hidden":!0,...e,ref:t}),{elementType:"div"})}),SU={root:"fui-MenuDivider"},BU=Y({root:{jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f8dz51a",a9b677:"f14z66ap",B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:"f1facbz3"}},{d:[[".f8dz51a{margin:4px -5px 4px -5px;}",{p:-1}],".f14z66ap{width:auto;}",[".f1facbz3{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStroke2);}",{p:-1}]]}),jU=e=>{"use no memo";const t=BU();return e.root.className=F(SU.root,t.root,e.root.className),e},CU=e=>G(e.root,{}),Oy=m.forwardRef((e,t)=>{const r=kU(e,t);return jU(r),xe("useMenuDividerStyles_unstable")(r),CU(r)});Oy.displayName="MenuDivider";function NU(e,t){const{headerId:r}=eU();return{components:{root:"div"},root:me($e("div",{ref:t,id:r,...e}),{elementType:"div"})}}const zU={root:"fui-MenuGroupHeader"},TU=Y({root:{Be2twd7:"fy9rknc",sj55zd:"f11d4kpn",uwmqm3:["f177v4lu","f19lj068"],z189sj:["f19lj068","f177v4lu"],Bhrd7zp:"fl43uef",Bqenvij:"f1d2rq10",mc9l5x:"f22iagw",Bt984gj:"f122n59"}},{d:[".fy9rknc{font-size:var(--fontSizeBase200);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".f177v4lu{padding-left:8px;}",".f19lj068{padding-right:8px;}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".f1d2rq10{height:32px;}",".f22iagw{display:flex;}",".f122n59{align-items:center;}"]}),_U=e=>{"use no memo";const t=TU();return e.root.className=F(zU.root,t.root,e.root.className),e},RU=e=>G(e.root,{}),Ly=m.forwardRef((e,t)=>{const r=NU(e,t);return _U(r),xe("useMenuGroupHeaderStyles_unstable")(r),RU(r)});Ly.displayName="MenuGroupHeader";const DU=(e,t)=>{"use no memo";const r=Ts(n=>n.setFocusByFirstCharacter),{onKeyDown:o}=e.root;return e.root.onKeyDown=n=>{var a;o?.(n),!(((a=n.key)===null||a===void 0?void 0:a.length)>1)&&t.current&&r?.(n,t.current)},e},U6=m.createContext(void 0),G6={setMultiline:()=>null};U6.Provider;const Z6=()=>{var e;return(e=m.useContext(U6))!==null&&e!==void 0?e:G6},K6=()=>Z6()!==G6,EU=vy(qI,py),PU=vy(MI,pC),MU=(e,t)=>{const{dir:r}=Ve(),o=X6(e,t);if(o.submenuIndicator){var n,a;(a=(n=o.submenuIndicator).children)!==null&&a!==void 0||(n.children=r==="rtl"?m.createElement(PU,null):m.createElement(EU,null))}return o},X6=(e,t)=>{const r=JW(),o=Ot(S=>S.persistOnItemClick),{as:n="div",disabled:a=!1,hasSubmenu:i=r,persistOnClick:l=o,content:d,...f}=e,{hasIcons:p,hasCheckmarks:h}=FU({hasSubmenu:i}),v=Ot(S=>S.setOpen);qU({multiline:!!e.subText,hasSubmenu:i});const y=m.useRef(null),x=m.useRef(!1),b=H6(IU(e.role)),k={hasSubmenu:i,disabled:a,persistOnClick:l,components:{root:"div",icon:"span",checkmark:"span",submenuIndicator:"span",content:"span",secondaryContent:"span",subText:"span"},root:me($e(n,La(n,{role:"menuitem",...f,disabled:!1,disabledFocusable:a,ref:Le(t,y,b),onKeyDown:de(S=>{var N;(N=e.onKeyDown)===null||N===void 0||N.call(e,S),!S.isDefaultPrevented()&&(S.key===ro||S.key===kr)&&(x.current=!0)}),onMouseMove:de(S=>{var N;if(S.currentTarget.ownerDocument.activeElement!==S.currentTarget){var B;(B=y.current)===null||B===void 0||B.focus()}(N=e.onMouseMove)===null||N===void 0||N.call(e,S)}),onClick:de(S=>{var N;!i&&!l&&(v(S,{open:!1,keyboard:x.current,bubble:!0,type:"menuItemClick",event:S}),x.current=!1),(N=e.onClick)===null||N===void 0||N.call(e,S)})})),{elementType:"div"}),icon:ke(e.icon,{renderByDefault:p,elementType:"span"}),checkmark:ke(e.checkmark,{renderByDefault:h,elementType:"span"}),submenuIndicator:ke(e.submenuIndicator,{renderByDefault:i,elementType:"span"}),content:ke(e.content,{renderByDefault:!!e.children,defaultProps:{children:e.children},elementType:"span"}),secondaryContent:ke(e.secondaryContent,{elementType:"span"}),subText:ke(e.subText,{elementType:"span"})};return DU(k,y),k},qU=e=>{const{hasSubmenu:t,multiline:r}=e,o=K6()&&t,{setMultiline:n}=Z6();$t(()=>{o||n(r)},[n,r,o])},FU=e=>{const{hasSubmenu:t}=e,r=Ts(a=>a.hasIcons),o=Ts(a=>a.hasCheckmarks),n=K6()&&t;return{hasIcons:r&&!n,hasCheckmarks:o&&!n}},IU=e=>{switch(e){case"menuitemcheckbox":return"MenuItemCheckbox";case"menuitemradio":return"MenuItemRadio"}return"MenuItem"},AU=e=>Ie(e.root,{children:[e.checkmark&&G(e.checkmark,{}),e.icon&&G(e.icon,{}),e.content&&Ie(e.content,{children:[e.content.children,e.subText&&G(e.subText,{})]}),e.secondaryContent&&G(e.secondaryContent,{}),e.submenuIndicator&&G(e.submenuIndicator,{})]}),un=m.forwardRef((e,t)=>{const r=MU(e,t);return W6(r),xe("useMenuItemStyles_unstable")(r),AU(r)});un.displayName="MenuItem";const OU=(e,t)=>{const r=LU(e,t);if(r.checkmark){var o,n;(n=(o=r.checkmark).children)!==null&&n!==void 0||(o.children=m.createElement(Cd,null))}return r},LU=(e,t)=>{const{name:r,value:o}=e,n=Ts(i=>{var l;return(((l=i.checkedValues)===null||l===void 0?void 0:l[r])||[]).indexOf(o)!==-1}),a=Ts(i=>i.selectRadio);return{...X6({...e,role:"menuitemradio","aria-checked":n,checkmark:ke(e.checkmark,{renderByDefault:!0,elementType:"span"}),onClick:i=>{var l;a?.(i,r,o,n),(l=e.onClick)===null||l===void 0||l.call(e,i)}},t),checked:n,name:r,value:o}},$U=e=>Ie(e.root,{children:[e.checkmark&&G(e.checkmark,{}),e.icon&&G(e.icon,{}),e.content&&Ie(e.content,{children:[e.content.children,e.subText&&G(e.subText,{})]}),e.secondaryContent&&G(e.secondaryContent,{})]}),ul={root:"fui-MenuItemRadio",icon:"fui-MenuItemRadio__icon",checkmark:"fui-MenuItemRadio__checkmark",content:"fui-MenuItemRadio__content",secondaryContent:"fui-MenuItemRadio__secondaryContent",subText:"fui-MenuItemRadio__subText"},HU=e=>{"use no memo";e.root.className=F(ul.root,e.root.className),e.content&&(e.content.className=F(ul.content,e.content.className)),e.secondaryContent&&(e.secondaryContent.className=F(ul.secondaryContent,e.secondaryContent.className)),e.icon&&(e.icon.className=F(ul.icon,e.icon.className)),e.checkmark&&(e.checkmark.className=F(ul.checkmark,e.checkmark.className)),e.subText&&(e.subText.className=F(ul.subText,e.subText.className)),W6(e),V6(e)},Y6=m.forwardRef((e,t)=>{const r=OU(e,t);return HU(r),xe("useMenuItemRadioStyles_unstable")(r),$U(r)});Y6.displayName="MenuItemRadio";const VU=(e,t)=>{const{findAllFocusable:r}=hn(),{targetDocument:o}=Ve(),n=WU(),a=jd(Fy),i=Ho({circular:!0});UU(e,n,a)&&console.warn("You are using both MenuList and Menu props, we recommend you to use Menu props when available");const l=m.useRef(null),d=H6();m.useEffect(()=>{const S=l.current;if(a&&o&&S){const N=B=>{const C=B.detail.next;C&&S.contains(o.activeElement)&&!S.contains(C)&&B.preventDefault()};return o.addEventListener(v1,N),()=>{o.removeEventListener(v1,N)}}},[l,o,a]);const f=m.useCallback((S,N)=>{const B=["menuitem","menuitemcheckbox","menuitemradio"];if(!l.current)return;const C=r(l.current,M=>M.hasAttribute("role")&&B.indexOf(M.getAttribute("role"))!==-1);let z=C.indexOf(N)+1;z===C.length&&(z=0);const R=C.map(M=>{var O;return(O=M.textContent)===null||O===void 0?void 0:O.charAt(0).toLowerCase()}),E=S.key.toLowerCase(),D=(M,O)=>{for(let H=M;H<R.length;H++)if(E===R[H])return H;return-1};let I=D(z);I===-1&&(I=D(0)),I>-1&&C[I].focus()},[r]);var p;const[h,v]=Xt({state:(p=e.checkedValues)!==null&&p!==void 0?p:a?n.checkedValues:void 0,defaultState:e.defaultCheckedValues,initialState:{}});var y;const x=(y=e.onCheckedValueChange)!==null&&y!==void 0?y:a?n.onCheckedValueChange:void 0,b=de((S,N,B,C)=>{const R=[...h?.[N]||[]];C?R.splice(R.indexOf(B),1):R.push(B),x?.(S,{name:N,checkedItems:R}),v(E=>({...E,[N]:R}))}),k=de((S,N,B)=>{const C=[B];v(z=>({...z,[N]:C})),x?.(S,{name:N,checkedItems:C})});return{components:{root:"div"},root:me($e("div",{ref:Le(t,l,d),role:"menu","aria-labelledby":n.triggerId,...i,...e}),{elementType:"div"}),hasIcons:n.hasIcons||!1,hasCheckmarks:n.hasCheckmarks||!1,checkedValues:h,hasMenuContext:a,setFocusByFirstCharacter:f,selectRadio:k,toggleCheckbox:b}},WU=()=>{const e=Ot(a=>a.checkedValues),t=Ot(a=>a.onCheckedValueChange),r=Ot(a=>a.triggerId),o=Ot(a=>a.hasIcons),n=Ot(a=>a.hasCheckmarks);return{checkedValues:e,onCheckedValueChange:t,triggerId:r,hasIcons:o,hasCheckmarks:n}},UU=(e,t,r)=>{let o=!1;for(const n in t)e[n]&&(o=!0);return r&&o},GU=(e,t)=>G(rU,{value:t.menuList,children:G(e.root,{})});function ZU(e){const{checkedValues:t,hasCheckmarks:r,hasIcons:o,selectRadio:n,setFocusByFirstCharacter:a,toggleCheckbox:i}=e;return{menuList:m.useMemo(()=>({checkedValues:t,hasCheckmarks:r,hasIcons:o,selectRadio:n,setFocusByFirstCharacter:a,toggleCheckbox:i}),[t,r,o,n,a,i])}}const KU={root:"fui-MenuList"},XU=Y({root:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",i8kkvl:0,Belr9w4:0,rmohyg:"f1t6b6ee"},hasMenuContext:{Bqenvij:"f1l02sjl"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",[".f1t6b6ee{gap:2px;}",{p:-1}],".f1l02sjl{height:100%;}"]}),YU=e=>{"use no memo";const t=XU();return e.root.className=F(KU.root,t.root,e.hasMenuContext&&t.hasMenuContext,e.root.className),e},Ma=m.forwardRef((e,t)=>{const r=VU(e,t),o=ZU(r);return YU(r),xe("useMenuListStyles_unstable")(r),GU(r,o)});Ma.displayName="MenuList";const JU=(e,t)=>{"use no memo";const r=Ot(E=>E.safeZone),o=Ot(E=>E.menuPopoverRef),n=Ot(E=>E.setOpen),a=Ot(E=>E.open),i=Ot(E=>E.openOnHover),l=Ot(E=>E.triggerRef),d=Ay(),f=Ts(E=>{var D;return(D=E.shouldCloseOnArrowLeft)!==null&&D!==void 0?D:!0}),p=m.useRef(!0),h=Uq(),[v,y]=Ga(),{dir:x}=Ve(),b=x==="ltr"?Ps:Ms,k=m.useCallback(E=>{E&&E.addEventListener("mouseover",D=>{p.current&&(p.current=!1,nU(o.current,D),v(()=>{p.current=!0},250))})},[o,v]);m.useEffect(()=>()=>y(),[y]);var S;const N=(S=Ot(E=>E.inline))!==null&&S!==void 0?S:!1,B=Ot(E=>E.mountNode),C=me($e("div",{role:"presentation",...h,...e,ref:Le(t,o,k,dg())}),{elementType:"div"}),{onMouseEnter:z,onKeyDown:R}=C;return C.onMouseEnter=de(E=>{(i||d)&&n(E,{open:!0,keyboard:!1,type:"menuPopoverMouseEnter",event:E}),z?.(E)}),C.onKeyDown=de(E=>{const D=E.key;if(D===Wn||d&&f&&D===b){var I;a&&(!((I=o.current)===null||I===void 0)&&I.contains(E.target))&&!E.isDefaultPrevented()&&(n(E,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:E}),E.preventDefault())}if(D===ay&&(n(E,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:E}),!d)){var M;(M=l.current)===null||M===void 0||M.focus()}R?.(E)}),{inline:N,mountNode:B,safeZone:r,components:{root:"div"},root:C}},QU={root:"fui-MenuPopover"},eG=Y({root:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",De3pzq:"fxugw4r",sj55zd:"f19n0e5",B7ck84d:"f1ewtqcl",Bf4jedk:"fl8fusi",B2u0y6b:"f1kaai3v",B68tc82:"f1p9o1ba",a9b677:"f1ahpp82",E5pizo:"f1hg901r",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fd3pd8h",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:"f9ggezi",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ewtqcl{box-sizing:border-box;}",".fl8fusi{min-width:138px;}",".f1kaai3v{max-width:300px;}",".f1p9o1ba{overflow-x:hidden;}",".f1ahpp82{width:max-content;}",".f1hg901r{box-shadow:var(--shadow16);}",[".fd3pd8h{padding:4px;}",{p:-1}],[".f9ggezi{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),tG=e=>{"use no memo";const t=eG();return e.root.className=F(QU.root,t.root,e.root.className),e},rG=e=>e.inline?Ie(m.Fragment,{children:[G(e.root,{}),e.safeZone]}):Ie(ma,{mountNode:e.mountNode,children:[G(e.root,{}),e.safeZone]}),Ti=m.forwardRef((e,t)=>{const r=JU(e,t);return tG(r),xe("useMenuPopoverStyles_unstable")(r),rG(r)});Ti.displayName="MenuPopover";function oG(){}const nG=e=>{const{children:t,disableButtonEnhancement:r=!1}=e,o=Ot(q=>q.triggerRef),n=Ot(q=>q.menuPopoverRef),a=Ot(q=>q.setOpen),i=Ot(q=>q.open),l=Ot(q=>q.triggerId),d=Ot(q=>q.openOnHover),f=Ot(q=>q.openOnContext),p=Ay(),h=Ts(q=>{var A;return(A=q.shouldOpenOnArrowRight)!==null&&A!==void 0?A:!0}),{findFirstFocusable:v}=hn(),y=m.useCallback(()=>{const q=v(n.current);q?.focus()},[v,n]),x=m.useRef(!1),b=m.useRef(!1),k=m.useRef(!1),{dir:S}=Ve(),N=S==="ltr"?Ms:Ps,B=tc(t),C=aU(de(()=>{p&&(b.current=!0)})),z=q=>{dl(q)||q.isDefaultPrevented()||f&&(q.preventDefault(),a(q,{open:!0,keyboard:!1,type:"menuTriggerContextMenu",event:q}))},R=q=>{dl(q)||f||(a(q,{open:!i,keyboard:x.current,type:"menuTriggerClick",event:q}),x.current=!1)},E=q=>{if(dl(q)||q.isDefaultPrevented())return;const A=q.key;!f&&(p&&h&&A===N||!p&&A===Fi)&&a(q,{open:!0,keyboard:!0,type:"menuTriggerKeyDown",event:q}),A===Wn&&!p&&a(q,{open:!1,keyboard:!0,type:"menuTriggerKeyDown",event:q}),i&&A===N&&p&&h&&y()},D=q=>{dl(q)||d&&(k.current?a(q,{open:!0,keyboard:!1,type:"menuTriggerMouseEnter",event:q}):b.current&&(a(q,{open:!0,keyboard:!1,ignoreHoverDelay:!0,type:"menuTriggerMouseEnter",event:q}),b.current=!1))},I=q=>{dl(q)||d&&!k.current&&(a(q,{open:!0,keyboard:!1,type:"menuTriggerMouseMove",event:q}),k.current=!0)},M=q=>{dl(q)||d&&a(q,{open:!1,keyboard:!1,type:"menuTriggerMouseLeave",event:q})};var O;const H={id:l,...B?.props,ref:Le(o,ec(B),C),onMouseEnter:de((O=B?.props.onMouseEnter)!==null&&O!==void 0?O:oG),onMouseLeave:de(Re(B?.props.onMouseLeave,M)),onContextMenu:de(Re(B?.props.onContextMenu,z)),onMouseMove:de(Re(B?.props.onMouseMove,I)),onMouseOver:de(Re(B?.props.onMouseOver,D))},$={"aria-haspopup":"menu","aria-expanded":!i&&!p?void 0:i,...H,onClick:de(Re(B?.props.onClick,R)),onKeyDown:de(Re(B?.props.onKeyDown,E))},Z=La(B?.type==="button"||B?.type==="a"?B.type:"div",$);return{isSubmenu:p,children:wd(t,f?H:r?$:Z)}},dl=e=>{const t=r=>r.hasAttribute("disabled")||r.hasAttribute("aria-disabled")&&r.getAttribute("aria-disabled")==="true";return qt(e.target)&&t(e.target)?!0:qt(e.currentTarget)&&t(e.currentTarget)},aG=e=>m.createElement(YW,{value:e.isSubmenu},e.children),qa=e=>{const t=nG(e);return aG(t)};qa.displayName="MenuTrigger";qa.isFluentTriggerComponent=!0;const iG=e=>{const{presenceOnly:t,textPosition:r}=e,o=t?e.presence&&G(e.presence,{}):e.avatar&&G(e.avatar,{});return Ie(e.root,{children:[(r==="after"||r==="below")&&o,e.primaryText&&G(e.primaryText,{}),e.secondaryText&&G(e.secondaryText,{}),e.tertiaryText&&G(e.tertiaryText,{}),e.quaternaryText&&G(e.quaternaryText,{}),r==="before"&&o]})},sG=(e,t)=>{const{avatar:r,presenceOnly:o=!1,size:n="medium",textAlignment:a="start",textPosition:i="after",presence:l,...d}=e,f=lG(d,t);return{...f,presenceOnly:o,size:n,textAlignment:a,textPosition:i,components:{...f.components,avatar:R1,presence:Zu},avatar:o?void 0:ke(r,{renderByDefault:!0,defaultProps:{name:e.name,badge:l,size:uG[n]},elementType:R1}),presence:o?ke(l,{defaultProps:{size:cG[n]},elementType:Zu}):void 0}},lG=(e,t)=>{const{name:r,primaryText:o,secondaryText:n,tertiaryText:a,quaternaryText:i,...l}=e,d=ke(o,{renderByDefault:!0,defaultProps:{children:r},elementType:"span"}),f=ke(n,{elementType:"span"}),p=ke(a,{elementType:"span"}),h=ke(i,{elementType:"span"});return{numTextLines:[d,f,p,h].filter(Boolean).length,components:{root:"div",primaryText:"span",secondaryText:"span",tertiaryText:"span",quaternaryText:"span"},root:me({ref:t,...l},{elementType:"div"}),primaryText:d,secondaryText:f,tertiaryText:p,quaternaryText:h}},cG={"extra-small":"tiny",small:"extra-small",medium:"small",large:"medium","extra-large":"large",huge:"large"},uG={"extra-small":20,small:28,medium:32,large:36,"extra-large":40,huge:56},us={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"},dG=Be("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;}"]),fG=Y({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;}"]}),pG=Y({"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);}"]}),mG=Y({small:{Bs1gm4r:"f1e48tse"}},{d:[".f1e48tse{--fui-Persona__avatar--spacing:var(--spacingHorizontalSNudge);}"]}),gG=e=>{"use no memo";const{presenceOnly:t,size:r,textAlignment:o,textPosition:n}=e,a=t&&o==="start"&&r!=="extra-large"&&r!=="huge",i=n!=="below"&&o==="center",{primaryTextClassName:l,optionalTextClassName:d}=yG(e,a),f=dG(),p=fG(),h=pG(),v={...h,...mG()};return e.root.className=F(us.root,f,i&&p.beforeAfterCenter,p[n],e.root.className),e.avatar&&(e.avatar.className=F(us.avatar,n!=="below"&&p.media,i&&p.mediaBeforeAfterCenter,p[o],h[r],h[n],e.avatar.className)),e.presence&&(e.presence.className=F(us.presence,n!=="below"&&p.media,i&&p.mediaBeforeAfterCenter,p[o],v[r],v[n],n==="after"&&a&&p.afterAlignToPrimary,n==="before"&&a&&p.beforeAlignToPrimary,e.presence.className)),e.primaryText&&(e.primaryText.className=F(us.primaryText,i&&p.primary,l,e.primaryText.className)),e.secondaryText&&(e.secondaryText.className=F(us.secondaryText,i&&p.secondary,d,p.secondLineSpacing,e.secondaryText.className)),e.tertiaryText&&(e.tertiaryText.className=F(us.tertiaryText,i&&p.tertiary,d,e.tertiaryText.className)),e.quaternaryText&&(e.quaternaryText.className=F(us.quaternaryText,i&&p.quaternary,d,e.quaternaryText.className)),e},hG=Be("rvj41k9",null,[".rvj41k9{display:block;color:var(--colorNeutralForeground1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);}"]),vG=Be("rp1pf9e",null,[".rp1pf9e{display:block;color:var(--colorNeutralForeground2);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}"]),bG=Y({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);}"]}),yG=(e,t)=>{const{presenceOnly:r,size:o,textPosition:n}=e,a=hG(),i=vG(),l=bG();let d,f;return r?(o==="extra-small"?d=e.numTextLines<=1&&l.caption1:(o==="extra-large"||o==="huge")&&(d=l.subtitle2),t&&(n==="before"?f=l.beforeAlignToPrimary:n==="after"&&(f=l.afterAlignToPrimary))):(o==="huge"||o==="extra-large")&&(d=l.subtitle2),{primaryTextClassName:F(a,d,f),optionalTextClassName:F(i,!r&&o==="huge"&&l.body1,f)}},xg=m.forwardRef((e,t)=>{const r=sG(e,t);return gG(r),xe("usePersonaStyles_unstable")(r),iG(r)});xg.displayName="Persona";const $y=m.createContext(void 0),xG={};$y.Provider;const wG=()=>m.useContext($y)||xG,kG=(e,t)=>G($y.Provider,{value:t.radioGroup,children:G(e.root,{})}),SG=(e,t)=>{const{layout:r="vertical",...o}=e,n=BG(o,t);return{layout:r,...n}},BG=(e,t)=>{e=ga(e);const r=bt("radiogroup-"),{name:o=r,value:n,defaultValue:a,disabled:i,onChange:l,required:d}=e;return{name:o,value:n,defaultValue:a,disabled:i,required:d,components:{root:"div"},root:{ref:t,role:"radiogroup",...me($e("div",e,["onChange","name"]),{elementType:"div"}),onChange:de(f=>{l&&qt(f.target,{constructorName:"HTMLInputElement"})&&f.target.type==="radio"&&l(f,{value:f.target.value})})}}},jG={root:"fui-RadioGroup"},CG=Y({root:{mc9l5x:"f22iagw",Bt984gj:"f6jr5hl"},vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f6jr5hl{align-items:flex-start;}",".f1vx9l62{flex-direction:column;}"]}),NG=e=>{"use no memo";const t=CG();return e.root.className=F(jG.root,t.root,e.layout==="vertical"&&t.vertical,e.root.className),e},zG=e=>{const{name:t,value:r,defaultValue:o,disabled:n,layout:a,required:i}=e,l=e.root["aria-describedby"];return{radioGroup:m.useMemo(()=>({name:t,value:r,defaultValue:o,disabled:n,layout:a,required:i,"aria-describedby":l}),[t,r,o,n,a,i,l])}},wg=m.forwardRef((e,t)=>{const r=SG(e,t),o=zG(r);return NG(r),xe("useRadioGroupStyles_unstable")(r),kG(r,o)});wg.displayName="RadioGroup";const TG=e=>Ie(e.root,{children:[G(e.input,{}),G(e.indicator,{}),e.label&&G(e.label,{})]}),_G=(e,t)=>{const r=RG(e,t);return{...r,components:{...r.components,label:gn},label:ke(e.label,{defaultProps:{...r.label},elementType:gn})}},RG=(e,t)=>{const r=wG(),{name:o=r.name,checked:n=r.value!==void 0?r.value===e.value:void 0,defaultChecked:a=r.defaultValue!==void 0?r.defaultValue===e.value:void 0,labelPosition:i=r.layout==="horizontal-stacked"?"below":"after",disabled:l=r.disabled,required:d=r.required,"aria-describedby":f=r["aria-describedby"],onChange:p}=e,h=$i({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),v=me(e.root,{defaultProps:{ref:Es(),...h.root},elementType:"span"}),y=me(e.input,{defaultProps:{ref:t,type:"radio",id:bt("radio-",h.primary.id),name:o,checked:n,defaultChecked:a,disabled:l,required:d,"aria-describedby":f,...h.primary},elementType:"input"});y.onChange=Re(y.onChange,k=>p?.(k,{value:k.currentTarget.value}));const x=ke(e.label,{defaultProps:{htmlFor:y.id,disabled:y.disabled},elementType:"label"}),b=me(e.indicator,{defaultProps:{"aria-hidden":!0},elementType:"div"});return{labelPosition:i,components:{root:"span",input:"input",label:"label",indicator:"div"},root:v,input:y,label:x,indicator:b}},sp={root:"fui-Radio",indicator:"fui-Radio__indicator",input:"fui-Radio__input",label:"fui-Radio__label"},DG=Be("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;}}"]}),EG=Y({vertical:{Beiy3e4:"f1vx9l62",Bt984gj:"f122n59"}},{d:[".f1vx9l62{flex-direction:column;}",".f122n59{align-items:center;}"]}),PG=Be("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;}}"]}),MG=Y({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;}"]}),qG=Be("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;}"]),FG=Y({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;}"]}),IG=e=>{"use no memo";const{labelPosition:t}=e,r=DG(),o=EG();e.root.className=F(sp.root,r,t==="below"&&o.vertical,e.root.className);const n=PG(),a=MG();e.input.className=F(sp.input,n,t==="below"&&a.below,e.indicator.children?a.customIndicator:a.defaultIndicator,e.input.className);const i=qG();e.indicator.className=F(sp.indicator,i,e.indicator.className);const l=FG();return e.label&&(e.label.className=F(sp.label,l.base,l[t],e.label.className)),e},Fa=m.forwardRef((e,t)=>{const r=_G(e,t);return IG(r),xe("useRadioStyles_unstable")(r),TG(r)});Fa.displayName="Radio";const J6=m.createContext(void 0),AG={},OG=J6.Provider,Q6=()=>{var e;return(e=m.useContext(J6))!==null&&e!==void 0?e:AG},LG=(e,t)=>{const{animation:r,appearance:o}=Q6(),{animation:n=r??"wave",appearance:a=o??"opaque",size:i,shape:l,...d}=e;return{...$G(d,t),animation:n,appearance:a,size:i,shape:l}},$G=(e,t)=>{const r=me($e("div",{ref:t,role:"progressbar","aria-busy":!0,...e}),{elementType:"div"});return{components:{root:"div"},root:r}},HG=(e,t)=>G(OG,{value:t.skeletonGroup,children:G(e.root,{})}),VG={root:"fui-Skeleton"},WG=Y({blockStyling:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),UG=e=>{"use no memo";const t=WG();return e.root.className=F(VG.root,e.root.as==="span"&&t.blockStyling,e.root.className),e},GG=e=>{const{animation:t,appearance:r,size:o,shape:n}=e;return{skeletonGroup:m.useMemo(()=>({animation:t,appearance:r,size:o,shape:n}),[t,r,o,n])}},eN=m.forwardRef((e,t)=>{const r=LG(e,t),o=GG(r);return UG(r),xe("useSkeletonStyles_unstable")(r),HG(r,o)});eN.displayName="Skeleton";const ZG=(e,t)=>{const{animation:r,appearance:o,size:n,shape:a}=Q6(),{animation:i=r??"wave",appearance:l=o??"opaque",size:d=n??16,shape:f=a??"rectangle",...p}=e;return{...KG(p,t),animation:i,appearance:l,size:d,shape:f}},KG=(e,t)=>{const r=me($e("div",{ref:t,...e}),{elementType:"div"});return{components:{root:"div"},root:r}},XG=e=>G(e.root,{}),YG={root:"fui-SkeletonItem"},JG=Y({root:{qhf8xq:"f10pi13n",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",Bsft5z2:"f13zj6fq",ap17g6:"f2gz7yw",E3zdtr:"f1mdlcz9",By385i5:0,Eqx8gd:0,B1piin3:0,bn5sak:0,B58onuk:"f1nt53hs",s9ouvv:"f18xs7ez",xr36ep:"ffm3629",Bitv4sc:"f1f9zsvm",Gt9ir8:"f1evo4vk",Crt7la:"f18va1k3"},wave:{De3pzq:"f1gjxg63",Br128sd:["f3fo419","f6m9r4"],h62rwi:["ftnv2js","f12jzhyt"],b1kco5:["fig1c6l","f1rv5y9h"],Iqrfzq:"f1xjc3a9"},pulse:{Br128sd:"f171zwvm",xr36ep:"fs3pcyf",Bjyk6c5:"f1yu5riq"},translucent:{De3pzq:"f162mh4z",h62rwi:["flvf4r0","f1uek97b"]},translucentPulse:{De3pzq:"flu3bqm",Bjyk6c5:"fxucc0w"},blockStyling:{mc9l5x:"ftgm304"}},{d:[".f10pi13n{position:relative;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],'.f13zj6fq::after{content:"";}',".f2gz7yw::after{display:block;}",".f1mdlcz9::after{position:absolute;}",[".f1nt53hs::after{inset:0;}",{p:-1}],".f18xs7ez::after{animation-iteration-count:infinite;}",".ffm3629::after{animation-duration:3s;}",".f1f9zsvm::after{animation-timing-function:ease-in-out;}",".f1gjxg63{background-color:var(--colorNeutralStencil1);}",".f3fo419::after{animation-name:f1efwx7q;}",".f6m9r4::after{animation-name:f1kkgpz1;}",`.ftnv2js::after{background-image:linear-gradient(
11
+ to right,
12
+ var(--colorNeutralStencil1) 0%,
13
+ var(--colorNeutralStencil2) 50%,
14
+ var(--colorNeutralStencil1) 100%);}`,`.f12jzhyt::after{background-image:linear-gradient(
15
+ to left,
16
+ var(--colorNeutralStencil1) 0%,
17
+ var(--colorNeutralStencil2) 50%,
18
+ var(--colorNeutralStencil1) 100%);}`,".fig1c6l::after{transform:translate(-100%);}",".f1rv5y9h::after{transform:translate(100%);}",".f171zwvm::after{animation-name:f12o7gg6;}",".fs3pcyf::after{animation-duration:1s;}",".f1yu5riq::after{background-color:var(--colorNeutralStencil1);}",".f162mh4z{background-color:var(--colorNeutralStencil1Alpha);}",`.flvf4r0::after{background-image:linear-gradient(
19
+ to right,
20
+ transparent 0%,
21
+ var(--colorNeutralStencil1Alpha) 50%,
22
+ transparent 100%);}`,`.f1uek97b::after{background-image:linear-gradient(
23
+ to left,
24
+ transparent 0%,
25
+ var(--colorNeutralStencil1Alpha) 50%,
26
+ transparent 100%);}`,".flu3bqm{background-color:none;}",".fxucc0w::after{background-color:var(--colorNeutralStencil1Alpha);}",".ftgm304{display:block;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1evo4vk::after{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f18va1k3::after{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (forced-colors: active){.f1xjc3a9::after{background-color:WindowText;}}",{m:"screen and (forced-colors: active)"}]],k:["@keyframes f1efwx7q{to{transform:translate(100%);}}","@keyframes f1kkgpz1{to{transform:translate(-100%);}}","@keyframes f12o7gg6{0%{opacity:1;}50%{opacity:0.4;}100%{opacity:1;}}"]}),QG=Y({8:{Bqenvij:"f1x82gua"},12:{Bqenvij:"fvblgha"},14:{Bqenvij:"fuesxvb"},16:{Bqenvij:"fd461yt"},20:{Bqenvij:"fjamq6b"},22:{Bqenvij:"f50nw0v"},24:{Bqenvij:"frvgh55"},28:{Bqenvij:"fxldao9"},32:{Bqenvij:"f1d2rq10"},36:{Bqenvij:"f8ljn23"},40:{Bqenvij:"fbhnoac"},48:{Bqenvij:"ff2sm71"},52:{Bqenvij:"fltz6oj"},56:{Bqenvij:"fzki0ko"},64:{Bqenvij:"f16k9i2m"},72:{Bqenvij:"f1shusfg"},92:{Bqenvij:"f19zsq0h"},96:{Bqenvij:"fypu0ge"},120:{Bqenvij:"fjr5b71"},128:{Bqenvij:"fele2au"},root:{a9b677:"fly5x3f",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ff3glw6"}},{d:[".f1x82gua{height:8px;}",".fvblgha{height:12px;}",".fuesxvb{height:14px;}",".fd461yt{height:16px;}",".fjamq6b{height:20px;}",".f50nw0v{height:22px;}",".frvgh55{height:24px;}",".fxldao9{height:28px;}",".f1d2rq10{height:32px;}",".f8ljn23{height:36px;}",".fbhnoac{height:40px;}",".ff2sm71{height:48px;}",".fltz6oj{height:52px;}",".fzki0ko{height:56px;}",".f16k9i2m{height:64px;}",".f1shusfg{height:72px;}",".f19zsq0h{height:92px;}",".fypu0ge{height:96px;}",".fjr5b71{height:120px;}",".fele2au{height:128px;}",".fly5x3f{width:100%;}",[".ff3glw6{border-radius:4px;}",{p:-1}]]}),eZ=Y({8:{a9b677:"f1o3cbw4",Bqenvij:"f1x82gua"},12:{a9b677:"frx94fk",Bqenvij:"fvblgha"},14:{a9b677:"fz18fzn",Bqenvij:"fuesxvb"},16:{a9b677:"fjw5fx7",Bqenvij:"fd461yt"},20:{a9b677:"f64fuq3",Bqenvij:"fjamq6b"},22:{a9b677:"f6zmzpu",Bqenvij:"f50nw0v"},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"},52:{a9b677:"f16130wi",Bqenvij:"fltz6oj"},56:{a9b677:"f1u66zr1",Bqenvij:"fzki0ko"},64:{a9b677:"fa9ln6p",Bqenvij:"f16k9i2m"},72:{a9b677:"fhcae8x",Bqenvij:"f1shusfg"},92:{a9b677:"f78o5r6",Bqenvij:"f19zsq0h"},96:{a9b677:"f1kyr2gn",Bqenvij:"fypu0ge"},120:{a9b677:"fwfqyga",Bqenvij:"fjr5b71"},128:{a9b677:"f1iksgmy",Bqenvij:"fele2au"}},{d:[".f1o3cbw4{width:8px;}",".f1x82gua{height:8px;}",".frx94fk{width:12px;}",".fvblgha{height:12px;}",".fz18fzn{width:14px;}",".fuesxvb{height:14px;}",".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".f64fuq3{width:20px;}",".fjamq6b{height:20px;}",".f6zmzpu{width:22px;}",".f50nw0v{height:22px;}",".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;}",".f16130wi{width:52px;}",".fltz6oj{height:52px;}",".f1u66zr1{width:56px;}",".fzki0ko{height:56px;}",".fa9ln6p{width:64px;}",".f16k9i2m{height:64px;}",".fhcae8x{width:72px;}",".f1shusfg{height:72px;}",".f78o5r6{width:92px;}",".f19zsq0h{height:92px;}",".f1kyr2gn{width:96px;}",".fypu0ge{height:96px;}",".fwfqyga{width:120px;}",".fjr5b71{height:120px;}",".f1iksgmy{width:128px;}",".fele2au{height:128px;}"]}),tZ=Y({root:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f5q2cvs"}},{d:[[".f5q2cvs{border-radius:50%;}",{p:-1}]]}),rZ=e=>{"use no memo";const{animation:t,appearance:r,size:o,shape:n}=e,a=JG(),i=QG(),l=eZ(),d=tZ();return e.root.className=F(YG.root,a.root,e.root.as==="span"&&a.blockStyling,t==="wave"&&a.wave,t==="pulse"&&a.pulse,r==="translucent"&&a.translucent,t==="pulse"&&r==="translucent"&&a.translucentPulse,n==="rectangle"&&i.root,n==="rectangle"&&i[o],n==="square"&&l[o],n==="circle"&&d.root,n==="circle"&&l[o],e.root.className),e},tN=m.forwardRef((e,t)=>{const r=ZG(e,t);return rZ(r),xe("useSkeletonItemStyles_unstable")(r),XG(r)});tN.displayName="SkeletonItem";const KS=(e,t,r)=>{let o=e;if(t!==void 0){if(r!==void 0&&t>r)return e;o=Math.max(t,o)}return r!==void 0&&(o=Math.min(r,o)),o},XS=(e,t,r)=>t!==void 0&&e===t?r===t?"both":"min":r!==void 0&&e===r?"max":"none";function oZ(e){const t=/[1-9]([0]+$)|\.([0-9]*)/.exec(String(e));return t?t[1]?-t[1].length:t[2]?t[2].length:0:0}function su(e,t,r=10){const o=r**t;return Math.round(e*o)/o}const pv=150,nZ=80,aZ=1e3,iZ=(e,t,r)=>e+(t-e)*r,sZ=(e,t)=>{const r=$i({props:e,primarySlotTagName:"input",excludedPropNames:["defaultValue","max","min","onChange","value"]}),{value:o,displayValue:n,defaultValue:a,min:i,max:l,step:d=1,stepPage:f=1,precision:p,onChange:h,root:v,input:y,incrementButton:x,decrementButton:b}=e,k=m.useMemo(()=>p??Math.max(oZ(d),0),[p,d]),[S,N]=Xt({state:o,defaultState:a,initialState:0}),B=m.useRef(null),C=o!==void 0,[z,R]=m.useState(void 0),[E,D]=m.useState("rest"),I=m.useRef({value:S,spinState:"rest",spinTime:0,spinDelay:pv,atBound:S!==null?XS(su(S,k),i,l):"none"}),[M,O]=Ga(),H=(ne,ie,ge)=>{let Te=I.current.value;if(ge){const xt=parseFloat(ge);isNaN(xt)||(Te=xt)}const Ee=Te,Me=ie==="up"||ie==="upPage"?1:-1,lt=ie==="upPage"||ie==="downPage"?f:d;if(Ee===null){const vt=KS((i===void 0?0:i)+lt*Me,i,l);ee(ne,vt);return}let ht=Ee+lt*Me;Number.isNaN(ht)||(ht=KS(ht,i,l)),ee(ne,ht),I.current.spinState!=="rest"&&M(()=>{I.current.spinTime+=I.current.spinDelay,I.current.spinDelay=iZ(pv,nZ,I.current.spinTime/aZ),H(ne,ie)},I.current.spinDelay)},$=ne=>{I.current.previousTextValue||(I.current.previousTextValue=z??String(S));const ie=ne.target.value;R(ie),B.current&&(B.current.ariaValueNow=ie)},Z=ne=>{ee(ne,S,z),I.current.spinState="up",H(ne,"up")},q=ne=>{ee(ne,S,z),I.current.spinState="down",H(ne,"down")},A=ne=>{O(),I.current.spinState="rest",I.current.spinDelay=pv,I.current.spinTime=0},X=ne=>{ee(ne,S,z),I.current.previousTextValue=void 0},V=ne=>{let ie="rest";ne.currentTarget.readOnly||(ne.key===ys?(H(ne,"up",z),ie="up"):ne.key===Fi?(H(ne,"down",z),ie="down"):ne.key===cy?(ne.preventDefault(),H(ne,"upPage",z),ie="up"):ne.key===ly?(ne.preventDefault(),H(ne,"downPage",z),ie="down"):!ne.shiftKey&&ne.key===sy&&i!==void 0?(ee(ne,i),ie="down"):!ne.shiftKey&&ne.key===iy&&l!==void 0?(ee(ne,l),ie="up"):ne.key===kr?(ee(ne,S,z),I.current.previousTextValue=void 0):ne.key===Wn&&I.current.previousTextValue&&(R(void 0),I.current.previousTextValue=void 0),E!==ie&&D(ie))},oe=ne=>{E!=="rest"&&(D("rest"),I.current.spinState="rest")},ee=(ne,ie,ge)=>{const Te=ie!==void 0&&S!==ie,Ee=ge!==void 0&&I.current.previousTextValue!==void 0&&I.current.previousTextValue!==ge;let Me;if(Te)Me=su(ie,k),N(Me),I.current.value=Me;else if(Ee&&!C){const lt=parseFloat(ge);isNaN(lt)||(N(su(lt,k)),I.current.value=su(lt,k))}(Te||Ee)&&h?.(ne,{value:Me,displayValue:ge}),R(void 0)};let W;if(z!==void 0)W=z;else if(o===null||S===null)W=n??"",I.current.value=null,I.current.atBound="none";else{const ne=su(S,k);I.current.value=ne,I.current.atBound=XS(ne,i,l),C?W=n??String(ne):W=String(ne)}const L={spinState:E,atBound:I.current.atBound,components:{root:"span",input:"input",incrementButton:"button",decrementButton:"button"},root:me(v,{defaultProps:r.root,elementType:"span"}),input:me(y,{defaultProps:{autoComplete:"off",role:"spinbutton",type:"text",...r.primary},elementType:"input"}),incrementButton:me(x,{defaultProps:{tabIndex:-1,disabled:r.primary.readOnly||r.primary.disabled||I.current.atBound==="max"||I.current.atBound==="both","aria-label":"Increment value",type:"button"},elementType:"button"}),decrementButton:me(b,{defaultProps:{tabIndex:-1,disabled:r.primary.readOnly||r.primary.disabled||I.current.atBound==="min"||I.current.atBound==="both","aria-label":"Decrement value",type:"button"},elementType:"button"})};L.input.value=W,L.input.ref=Le(B,t),L.input["aria-valuemin"]=i,L.input["aria-valuemax"]=l;var te;L.input["aria-valuenow"]=(te=I.current.value)!==null&&te!==void 0?te:void 0;var ue;return L.input["aria-valuetext"]=(ue=L.input["aria-valuetext"])!==null&&ue!==void 0?ue:o!==void 0&&n||void 0,L.input.onChange=Re(L.input.onChange,$),L.input.onInput=Re(L.input.onInput,$),L.input.onBlur=Re(L.input.onBlur,X),L.input.onKeyDown=Re(L.input.onKeyDown,V),L.input.onKeyUp=Re(L.input.onKeyUp,oe),L.incrementButton.onMouseDown=Re(Z,L.incrementButton.onMouseDown),L.incrementButton.onMouseUp=Re(L.incrementButton.onMouseUp,A),L.incrementButton.onMouseLeave=Re(L.incrementButton.onMouseLeave,A),L.decrementButton.onMouseDown=Re(q,L.decrementButton.onMouseDown),L.decrementButton.onMouseUp=Re(L.decrementButton.onMouseUp,A),L.decrementButton.onMouseLeave=Re(L.decrementButton.onMouseLeave,A),L},lZ=(e,t)=>{var r,o;e=ga(e,{supportsLabelFor:!0,supportsRequired:!0});const n=Qm();var a;const{appearance:i=(a=n.inputDefaultAppearance)!==null&&a!==void 0?a:"outline",size:l="medium",...d}=e,f=sZ(d,t);var p;(p=(r=f.incrementButton).children)!==null&&p!==void 0||(r.children=m.createElement(KA,null));var h;return(h=(o=f.decrementButton).children)!==null&&h!==void 0||(o.children=m.createElement(ug,null)),{...f,appearance:i,size:l}},cZ=e=>Ie(e.root,{children:[G(e.input,{}),G(e.incrementButton,{}),G(e.decrementButton,{})]}),lp={root:"fui-SpinButton",input:"fui-SpinButton__input",incrementButton:"fui-SpinButton__incrementButton",decrementButton:"fui-SpinButton__decrementButton"},YS={buttonActive:"fui-SpinButton__button_active"},uZ=Be("r109xulx","r1h2jnch",{r:[".r109xulx{display:inline-grid;grid-template-columns:1fr 24px;grid-template-rows:1fr 1fr;column-gap:var(--spacingHorizontalXS);row-gap:0;position:relative;isolation:isolate;vertical-align:middle;background-color:var(--colorNeutralBackground1);min-height:32px;padding:0 0 0 var(--spacingHorizontalMNudge);border-radius:var(--borderRadiusMedium);}",'.r109xulx::before{content:"";box-sizing:border-box;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:10;border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);border-radius:var(--borderRadiusMedium);}','.r109xulx::after{box-sizing:border-box;content:"";position:absolute;right:0;bottom:0;left:0;z-index:20;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);}',".r109xulx:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r109xulx:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r109xulx:focus-within{outline:2px solid transparent;}",".r1h2jnch{display:inline-grid;grid-template-columns:1fr 24px;grid-template-rows:1fr 1fr;column-gap:var(--spacingHorizontalXS);row-gap:0;position:relative;isolation:isolate;vertical-align:middle;background-color:var(--colorNeutralBackground1);min-height:32px;padding:0 var(--spacingHorizontalMNudge) 0 0;border-radius:var(--borderRadiusMedium);}",'.r1h2jnch::before{content:"";box-sizing:border-box;position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none;z-index:10;border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);border-radius:var(--borderRadiusMedium);}','.r1h2jnch::after{box-sizing:border-box;content:"";position:absolute;left:0;bottom:0;right:0;z-index:20;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);}',".r1h2jnch:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1h2jnch:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1h2jnch:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r109xulx::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r109xulx:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1h2jnch::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1h2jnch:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),dZ=Y({small:{sshi5w:"f1pha7fy",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",uwmqm3:["f1f5gg8d","f1vdfbxk"]},medium:{},outline:{},outlineInteractive:{Bo3r8zu:"f1w2y1rc",Hpvxnh:["f1gofhvl","f18htlvq"],Bx11ytk:"ffcnd28",B1rg0w0:["f18htlvq","f1gofhvl"],Bsg1tlv:"f6lmxco",Brjw370:["fcoc0mf","f15r4wkl"],xcfy85:"f1ipdth8",Bcc6kan:["f15r4wkl","fcoc0mf"]},underline:{B0qfbqy:"f1o236ok",B4f6apu:["faeg28l","f64aojp"],y0oebl:"fdw6hkg",uvfttm:["f64aojp","faeg28l"],r59vdv:0,Budzafs:0,ck0cow:0,n07z76:0,Gng75u:"f1xyh2jw"},underlineInteractive:{Bx11ytk:"ffcnd28",xcfy85:"f1ipdth8",d9w3h3:0,B3778ie:0,B4j8arr:0,Bl18szs:0,Blrzh8d:"fkp7w9h"},filled:{Bcgcnre:0,Bqjgrrk:0,qa3bma:0,y0oebl:0,Biqmznv:0,Bm6vgfq:0,Bbv0w2i:0,uvfttm:0,eqrjj:0,Bk5zm6e:0,m598lv:0,B4f6apu:0,ydt019:0,Bq4z7u6:0,Bdkvgpv:0,B0qfbqy:0,kj8mxx:"f1kc0wz4"},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},filledInteractive:{B05mzqr:"f1xqt08",tb9y6h:["fzt5lgo","f8tv3r9"],jcehpj:"fyhrops",B23o0hn:["f8tv3r9","fzt5lgo"]},invalid:{emecyz:"fl48pg9",lz0pba:["f1a168p3","f1pvdymy"],Bo1k74p:"f11knvgl",Ba322q7:["f1pvdymy","f1a168p3"]},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",Bq4z7u6:"f1a0lfh7",Bk5zm6e:["f1p2ejm6","fmzytvz"],Bqjgrrk:"fas2e61",Bm6vgfq:["fmzytvz","f1p2ejm6"],Bvljrlq:"f1p5b8em",Cqojjj:["fs6f9xf","f11b7h5x"],G3zxag:"f1vrn6tw",H8270r:["f11b7h5x","fs6f9xf"]}},{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);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1o236ok::before{border-top-width:0;}",".faeg28l::before{border-right-width:0;}",".f64aojp::before{border-left-width:0;}",".fdw6hkg::before{border-bottom-width:1px;}",[".f1xyh2jw::before{border-radius:var(--borderRadiusNone);}",{p:-1}],[".fkp7w9h::after{border-radius:var(--borderRadiusNone);}",{p:-1}],[".f1kc0wz4::before{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fl48pg9:not(:focus-within)::before,.fl48pg9:hover:not(:focus-within)::before{border-top-color:var(--colorPaletteRedBorder2);}",".f1a168p3:not(:focus-within)::before,.f1a168p3:hover:not(:focus-within)::before{border-right-color:var(--colorPaletteRedBorder2);}",".f1pvdymy:not(:focus-within)::before,.f1pvdymy:hover:not(:focus-within)::before{border-left-color:var(--colorPaletteRedBorder2);}",".f11knvgl:not(:focus-within)::before,.f11knvgl:hover:not(:focus-within)::before{border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1a0lfh7::before{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1p2ejm6::before{border-right-color:var(--colorNeutralStrokeDisabled);}",".fmzytvz::before{border-left-color:var(--colorNeutralStrokeDisabled);}",".fas2e61::before{border-bottom-color:var(--colorNeutralStrokeDisabled);}"],h:[".f1w2y1rc:hover::before{border-top-color:var(--colorNeutralStroke1Hover);}",".f1gofhvl:hover::before{border-right-color:var(--colorNeutralStroke1Hover);}",".f18htlvq:hover::before{border-left-color:var(--colorNeutralStroke1Hover);}",".ffcnd28:hover::before{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".f1xqt08:hover::before,.f1xqt08:focus-within::before{border-top-color:var(--colorTransparentStrokeInteractive);}",".fzt5lgo:hover::before,.fzt5lgo:focus-within::before{border-right-color:var(--colorTransparentStrokeInteractive);}",".f8tv3r9:hover::before,.f8tv3r9:focus-within::before{border-left-color:var(--colorTransparentStrokeInteractive);}",".fyhrops:hover::before,.fyhrops:focus-within::before{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f6lmxco:active::before,.f6lmxco:focus-within::before{border-top-color:var(--colorNeutralStroke1Pressed);}",".fcoc0mf:active::before,.fcoc0mf:focus-within::before{border-right-color:var(--colorNeutralStroke1Pressed);}",".f15r4wkl:active::before,.f15r4wkl:focus-within::before{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1ipdth8:active::before,.f1ipdth8:focus-within::before{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.f1p5b8em::before{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f11b7h5x::before{border-left-color:GrayText;}.fs6f9xf::before{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1vrn6tw::before{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]]}),fZ=Be("r1ljrqje",null,[".r1ljrqje{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:3;outline-style:none;border:0;padding:0;color:var(--colorNeutralForeground1);background-color:transparent;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;width:100%;}",".r1ljrqje::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r1ljrqje::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r1ljrqje::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),pZ=Y({disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",yvdlaj:"fahhnxm"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),JS=Be("r1g4chgs",null,[".r1g4chgs{display:inline-flex;width:24px;align-items:center;justify-content:center;border:0;position:absolute;outline-style:none;height:16px;background-color:transparent;color:var(--colorNeutralForeground3);grid-column-start:2;border-radius:0;padding:0 5px 0 5px;}",".r1g4chgs:active{outline-style:none;}",".r1g4chgs:enabled:hover{cursor:pointer;color:var(--colorNeutralForeground3Hover);background-color:var(--colorSubtleBackgroundHover);}",".r1g4chgs:enabled:active{color:var(--colorNeutralForeground3Pressed);background-color:var(--colorSubtleBackgroundPressed);}",".r1g4chgs:enabled.fui-SpinButton__button_active{color:var(--colorNeutralForeground3Pressed);background-color:var(--colorSubtleBackgroundPressed);}",".r1g4chgs:disabled{cursor:not-allowed;color:var(--colorNeutralForegroundDisabled);}"]),mZ=Y({increment:{Ijaq50:"f16hsg94",B7oj6ja:["f1jar5jt","fyu767a"],z8tnut:"f10ra9hq",Byoj8tv:"f1brlhvm"},decrement:{Ijaq50:"faunodf",Bbmb7ep:["f1aa9q02","f16jpd5f"],z8tnut:"f1sl3k7w",Byoj8tv:"f1y2xyjm"},incrementButtonSmall:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f4lv8q1","fm3uwd2"],Bqenvij:"fvblgha"},decrementButtonSmall:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f1q86st8","frkrfqj"],Bqenvij:"fvblgha"},outline:{},underline:{De3pzq:"f3rmtva",sj55zd:"f11d4kpn",r4wkhp:"f1no7wuu",B95qlz1:"f1bifk9c",p743kt:"fp1zg4s",B7xitij:"fo6hitd",B6siaa6:"f1wiab75",Ba9qmo4:"fj9zm5z",Dyrjrp:"f1cqwcg4"},"filled-darker":{De3pzq:"f3rmtva",sj55zd:"f11d4kpn",r4wkhp:"f1no7wuu",B95qlz1:"fwwxidx",p743kt:"fp1zg4s",B7xitij:"f14i52sd",B6siaa6:"f1wiab75",Ba9qmo4:"fwry2ka",Dyrjrp:"f1cqwcg4"},"filled-lighter":{De3pzq:"f3rmtva",sj55zd:"f11d4kpn",r4wkhp:"f1no7wuu",B95qlz1:"f1yywxnv",drw0cw:"fzaa11h",idzz8t:"f4fpmm9",Dyrjrp:"f1cqwcg4"}},{d:[".f16hsg94{grid-row-start:1;}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f10ra9hq{padding-top:4px;}",".f1brlhvm{padding-bottom:1px;}",".faunodf{grid-row-start:2;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1sl3k7w{padding-top:1px;}",".f1y2xyjm{padding-bottom:4px;}",[".f4lv8q1{padding:3px 6px 0px 4px;}",{p:-1}],[".fm3uwd2{padding:3px 4px 0px 6px;}",{p:-1}],".fvblgha{height:12px;}",[".f1q86st8{padding:0px 6px 3px 4px;}",{p:-1}],[".frkrfqj{padding:0px 4px 3px 6px;}",{p:-1}],".f3rmtva{background-color:transparent;}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".f1no7wuu:enabled:hover{color:var(--colorNeutralForeground3Hover);}",".f1bifk9c:enabled:hover{background-color:var(--colorSubtleBackgroundHover);}",".fp1zg4s:enabled:active{color:var(--colorNeutralForeground3Pressed);}",".fo6hitd:enabled:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1wiab75:enabled.fui-SpinButton__button_active{color:var(--colorNeutralForeground3Pressed);}",".fj9zm5z:enabled.fui-SpinButton__button_active{background-color:var(--colorSubtleBackgroundPressed);}",".f1cqwcg4:disabled{color:var(--colorNeutralForegroundDisabled);}",".fwwxidx:enabled:hover{background-color:var(--colorNeutralBackground3Hover);}",".f14i52sd:enabled:active{background-color:var(--colorNeutralBackground3Pressed);}",".fwry2ka:enabled.fui-SpinButton__button_active{background-color:var(--colorNeutralBackground3Pressed);}",".f1yywxnv:enabled:hover{background-color:var(--colorNeutralBackground1Hover);}",".fzaa11h:enabled:active,.fzaa11h:enabled.fui-SpinButton__button_active{color:var(--colorNeutralForeground3Pressed);}",".f4fpmm9:enabled:active,.f4fpmm9:enabled.fui-SpinButton__button_active{background-color:var(--colorNeutralBackground1Pressed);}"]}),gZ=e=>{"use no memo";const{appearance:t,spinState:r,size:o}=e,n=e.input.disabled,a=`${e.input["aria-invalid"]}`=="true",i=t.startsWith("filled"),l=dZ(),d=mZ(),f=pZ();return e.root.className=F(lp.root,uZ(),l[o],l[t],i&&l.filled,!n&&t==="outline"&&l.outlineInteractive,!n&&t==="underline"&&l.underlineInteractive,!n&&i&&l.filledInteractive,!n&&a&&l.invalid,n&&l.disabled,e.root.className),e.incrementButton.className=F(lp.incrementButton,r==="up"&&`${YS.buttonActive}`,JS(),d.increment,d[t],o==="small"&&d.incrementButtonSmall,e.incrementButton.className),e.decrementButton.className=F(lp.decrementButton,r==="down"&&`${YS.buttonActive}`,JS(),d.decrement,d[t],o==="small"&&d.decrementButtonSmall,e.decrementButton.className),e.input.className=F(lp.input,fZ(),n&&f.disabled,e.input.className),e},Da=m.forwardRef((e,t)=>{const r=lZ(e,t);return gZ(r),xe("useSpinButtonStyles_unstable")(r),cZ(r)});Da.displayName="SpinButton";const rN=m.createContext(void 0),hZ={};rN.Provider;const vZ=()=>{var e;return(e=m.useContext(rN))!==null&&e!==void 0?e:hZ},bZ=(e,t)=>{const{size:r}=vZ(),{appearance:o="primary",size:n=r??"medium",...a}=e,i=yZ(a,t);return{...i,appearance:o,size:n,components:{...i.components,label:gn},label:ke(e.label,{defaultProps:i.label,elementType:gn})}},yZ=(e,t)=>{const{delay:r=0,labelPosition:o="after"}=e,n=bt("spinner"),{role:a="progressbar",...i}=e,l=me($e("div",{ref:t,role:a,...i}),{elementType:"div"}),[d,f]=m.useState(!1),[p,h]=Ga();m.useEffect(()=>{if(!(r<=0))return p(()=>{f(!0)},r),()=>{h()}},[p,h,r]);const v=ke(e.label,{defaultProps:{id:n},renderByDefault:!1,elementType:"label"}),y=ke(e.spinner,{renderByDefault:!0,elementType:"span"});return v&&l&&!l["aria-labelledby"]&&(l["aria-labelledby"]=v.id),{delay:r,labelPosition:o,shouldRenderSpinner:!r||d,components:{root:"div",spinner:"span",spinnerTail:"span",label:"label"},root:l,spinner:y,spinnerTail:me(e.spinnerTail,{elementType:"span"}),label:v}},xZ=e=>{const{labelPosition:t,shouldRenderSpinner:r}=e;return Ie(e.root,{children:[e.label&&r&&(t==="above"||t==="before")&&G(e.label,{}),e.spinner&&r&&G(e.spinner,{children:e.spinnerTail&&G(e.spinnerTail,{})}),e.label&&r&&(t==="below"||t==="after")&&G(e.label,{})]})},cp={root:"fui-Spinner",spinner:"fui-Spinner__spinner",spinnerTail:"fui-Spinner__spinnerTail",label:"fui-Spinner__label"},wZ=Be("rpp59a7",null,[".rpp59a7{display:flex;align-items:center;justify-content:center;line-height:0;gap:8px;overflow:hidden;min-width:min-content;}"]),kZ=Y({vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f1vx9l62{flex-direction:column;}"]}),SZ=Be("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;}}"]}),BZ=Be("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;}}"]}),jZ=Y({inverted:{De3pzq:"fr407j0",sj55zd:"f1f7voed"},rtlTail:{btxmck:"f179dep3",gb5jj2:"fbz9ihp",Bdya8wy:"f1pme1qz"},"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){.f1pme1qz{background-image:conic-gradient(currentcolor 0deg, transparent 240deg);}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),CZ=Y({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);}"]}),NZ=e=>{"use no memo";const{labelPosition:t,size:r,appearance:o}=e,{dir:n}=Ve(),a=wZ(),i=kZ(),l=SZ(),d=jZ(),f=BZ(),p=CZ();return e.root.className=F(cp.root,a,(t==="above"||t==="below")&&i.vertical,e.root.className),e.spinner&&(e.spinner.className=F(cp.spinner,l,d[r],o==="inverted"&&d.inverted,e.spinner.className)),e.spinnerTail&&(e.spinnerTail.className=F(cp.spinnerTail,f,n==="rtl"&&d.rtlTail,e.spinnerTail.className)),e.label&&(e.label.className=F(cp.label,p[r],o==="inverted"&&p.inverted,e.label.className)),e},jr=m.forwardRef((e,t)=>{const r=bZ(e,t);return NZ(r),xe("useSpinnerStyles_unstable")(r),xZ(r)});jr.displayName="Spinner";const zZ=(e,t)=>{var r;const{size:o="medium",...n}=e,a=TZ(n,t);var i;return(i=(r=a.indicator).children)!==null&&i!==void 0||(r.children=m.createElement(cC,null)),{...a,components:{...a.components,label:gn},size:o,label:ke(e.label,{defaultProps:{size:"medium",...a.label},elementType:gn})}},TZ=(e,t)=>{e=ga(e,{supportsLabelFor:!0,supportsRequired:!0});const{checked:r,defaultChecked:o,disabled:n,disabledFocusable:a=!1,labelPosition:i="after",onChange:l,required:d}=e,f=$i({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange","disabledFocusable"]}),p=bt("switch-",f.primary.id),h=me(e.root,{defaultProps:{ref:Es(),...f.root},elementType:"div"}),v=me(e.indicator,{defaultProps:{"aria-hidden":!0},elementType:"div"}),y=me(e.input,{defaultProps:{checked:r,defaultChecked:o,id:p,ref:t,role:"switch",type:"checkbox",...f.primary,disabled:n&&!a,...a&&{"aria-disabled":!0}},elementType:"input"});y.onChange=Re(y.onChange,b=>l?.(b,{checked:b.currentTarget.checked})),y.onClick=Re(y.onClick,b=>{a&&b.preventDefault()}),y.onKeyDown=Re(y.onKeyDown,b=>{a&&(b.key===" "||b.key==="Enter")&&b.preventDefault()});const x=ke(e.label,{defaultProps:{disabled:n||a,htmlFor:p,required:d},elementType:"label"});return{disabledFocusable:a,labelPosition:i,components:{root:"div",indicator:"div",input:"input",label:"label"},root:h,indicator:v,input:y,label:x}},_Z=e=>{const{labelPosition:t}=e;return Ie(e.root,{children:[G(e.input,{}),t!=="after"&&e.label&&G(e.label,{}),G(e.indicator,{}),t==="after"&&e.label&&G(e.label,{})]})},up={root:"fui-Switch",indicator:"fui-Switch__indicator",input:"fui-Switch__input",label:"fui-Switch__label"},RZ=Be("r2i81i2","rofhmb8",{r:[".r2i81i2{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}",".r2i81i2:focus{outline-style:none;}",".r2i81i2:focus-visible{outline-style:none;}",".r2i81i2[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r2i81i2[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);}',".rofhmb8{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}",".rofhmb8:focus{outline-style:none;}",".rofhmb8:focus-visible{outline-style:none;}",".rofhmb8[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rofhmb8[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){.r2i81i2[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){.rofhmb8[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),DZ=Y({vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f1vx9l62{flex-direction:column;}"]}),EZ=Be("r1c3hft5",null,{r:[".r1c3hft5{border-radius:var(--borderRadiusCircular);border:1px solid;line-height:0;box-sizing:border-box;fill:currentColor;flex-shrink:0;font-size:18px;height:20px;margin:var(--spacingVerticalS) var(--spacingHorizontalS);pointer-events:none;transition-duration:var(--durationNormal);transition-timing-function:var(--curveEasyEase);transition-property:background,border,color;width:40px;}",".r1c3hft5>*{transition-duration:var(--durationNormal);transition-timing-function:var(--curveEasyEase);transition-property:transform;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1c3hft5{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1c3hft5{color:CanvasText;}.r1c3hft5>i{forced-color-adjust:none;}}","@media screen and (prefers-reduced-motion: reduce){.r1c3hft5>*{transition-duration:0.01ms;}}"]}),PZ=Y({labelAbove:{B6of3ja:"f1hu3pq6"},sizeSmall:{Be2twd7:"fses1vf",Bqenvij:"fd461yt",a9b677:"f1szoe96"}},{d:[".f1hu3pq6{margin-top:0;}",".fses1vf{font-size:14px;}",".fd461yt{height:16px;}",".f1szoe96{width:32px;}"]}),MZ=Be("r12ojtgy","rhc0e9x",{r:[".r12ojtgy{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}",".r12ojtgy:checked~.fui-Switch__indicator>*{transform:translateX(20px);}",'.r12ojtgy:disabled,.r12ojtgy[aria-disabled="true"]{cursor:default;}','.r12ojtgy:disabled~.fui-Switch__indicator,.r12ojtgy[aria-disabled="true"]~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}','.r12ojtgy:disabled~.fui-Switch__label,.r12ojtgy[aria-disabled="true"]~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}','.r12ojtgy:enabled:not(:checked):not([aria-disabled="true"])~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}','.r12ojtgy:enabled:not(:checked):not([aria-disabled="true"])~.fui-Switch__label{color:var(--colorNeutralForeground1);}','.r12ojtgy:enabled:not(:checked):not([aria-disabled="true"]):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}','.r12ojtgy:enabled:not(:checked):not([aria-disabled="true"]):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}','.r12ojtgy:enabled:checked:not([aria-disabled="true"])~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}','.r12ojtgy:enabled:checked:not([aria-disabled="true"]):hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}','.r12ojtgy:enabled:checked:not([aria-disabled="true"]):hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}','.r12ojtgy:disabled:not(:checked)~.fui-Switch__indicator,.r12ojtgy[aria-disabled="true"]:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}','.r12ojtgy:disabled:checked~.fui-Switch__indicator,.r12ojtgy[aria-disabled="true"]:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}',".rhc0e9x{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}",".rhc0e9x:checked~.fui-Switch__indicator>*{transform:translateX(-20px);}",'.rhc0e9x:disabled,.rhc0e9x[aria-disabled="true"]{cursor:default;}','.rhc0e9x:disabled~.fui-Switch__indicator,.rhc0e9x[aria-disabled="true"]~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}','.rhc0e9x:disabled~.fui-Switch__label,.rhc0e9x[aria-disabled="true"]~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}','.rhc0e9x:enabled:not(:checked):not([aria-disabled="true"])~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}','.rhc0e9x:enabled:not(:checked):not([aria-disabled="true"])~.fui-Switch__label{color:var(--colorNeutralForeground1);}','.rhc0e9x:enabled:not(:checked):not([aria-disabled="true"]):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}','.rhc0e9x:enabled:not(:checked):not([aria-disabled="true"]):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}','.rhc0e9x:enabled:checked:not([aria-disabled="true"])~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}','.rhc0e9x:enabled:checked:not([aria-disabled="true"]):hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}','.rhc0e9x:enabled:checked:not([aria-disabled="true"]):hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}','.rhc0e9x:disabled:not(:checked)~.fui-Switch__indicator,.rhc0e9x[aria-disabled="true"]:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}','.rhc0e9x:disabled:checked~.fui-Switch__indicator,.rhc0e9x[aria-disabled="true"]:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}'],s:['@media (forced-colors: active){.r12ojtgy:disabled~.fui-Switch__indicator,.r12ojtgy[aria-disabled="true"]~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.r12ojtgy:disabled~.fui-Switch__label,.r12ojtgy[aria-disabled="true"]~.fui-Switch__label{color:GrayText;}.r12ojtgy:hover{color:CanvasText;}.r12ojtgy:hover:active{color:CanvasText;}.r12ojtgy:enabled:checked:not([aria-disabled="true"]):hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.r12ojtgy:enabled:checked:not([aria-disabled="true"]):hover:active~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.r12ojtgy:enabled:checked:not([aria-disabled="true"])~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}','@media (forced-colors: active){.rhc0e9x:disabled~.fui-Switch__indicator,.rhc0e9x[aria-disabled="true"]~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.rhc0e9x:disabled~.fui-Switch__label,.rhc0e9x[aria-disabled="true"]~.fui-Switch__label{color:GrayText;}.rhc0e9x:hover{color:CanvasText;}.rhc0e9x:hover:active{color:CanvasText;}.rhc0e9x:enabled:checked:not([aria-disabled="true"]):hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.rhc0e9x:enabled:checked:not([aria-disabled="true"]):hover:active~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.rhc0e9x:enabled:checked:not([aria-disabled="true"])~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}']}),qZ=Y({before:{j35jbq:["f1e31b4d","f1vgc2s3"],Bhzewxz:"f15twtuk"},after:{oyh7mz:["f1vgc2s3","f1e31b4d"],Bhzewxz:"f15twtuk"},above:{B5kzvoi:"f1yab3r1",Bqenvij:"f1aar7gd",a9b677:"fly5x3f"},sizeSmall:{a9b677:"f83td6f",oedwrj:["f1t5zc5r","fmy58zi"]}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f15twtuk{top:0;}",".f1yab3r1{bottom:0;}",".f1aar7gd{height:calc(20px + var(--spacingVerticalS));}",".fly5x3f{width:100%;}",".f83td6f{width:calc(32px + 2 * var(--spacingHorizontalS));}",".f1t5zc5r:checked~.fui-Switch__indicator>*{transform:translateX(16px);}",".fmy58zi:checked~.fui-Switch__indicator>*{transform:translateX(-16px);}"]}),FZ=Y({base:{Bceei9c:"f1k6fduh",jrapky:"f49ad5g",B6of3ja:"f1xlvstr",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1f5q0n8"},sizeSmall:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm",jrapky:"f1suqah5",B6of3ja:"f26bnac"},above:{z8tnut:"f1ywm7hm",Byoj8tv:"f14wxoun",a9b677:"fly5x3f"},after:{uwmqm3:["fruq291","f7x41pl"]},before:{z189sj:["f7x41pl","fruq291"]}},{d:[".f1k6fduh{cursor:pointer;}",".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}",".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}",[".f1f5q0n8{padding:var(--spacingVerticalS) var(--spacingHorizontalS);}",{p:-1}],".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1suqah5{margin-bottom:calc((16px - var(--lineHeightBase200)) / 2);}",".f26bnac{margin-top:calc((16px - var(--lineHeightBase200)) / 2);}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".fly5x3f{width:100%;}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}"]}),IZ=e=>{"use no memo";const t=RZ(),r=DZ(),o=EZ(),n=PZ(),a=MZ(),i=qZ(),l=FZ(),{label:d,labelPosition:f,size:p}=e;return e.root.className=F(up.root,t,f==="above"&&r.vertical,e.root.className),e.indicator.className=F(up.indicator,o,d&&f==="above"&&n.labelAbove,p==="small"&&n.sizeSmall,e.indicator.className),e.input.className=F(up.input,a,d&&i[f],p==="small"&&i.sizeSmall,e.input.className),e.label&&(e.label.className=F(up.label,l.base,l[f],p==="small"&&l.sizeSmall,e.label.className)),e},co=m.forwardRef((e,t)=>{const r=zZ(e,t);return IZ(r),xe("useSwitchStyles_unstable")(r),_Z(r)});co.displayName="Switch";const AZ=(e,t)=>{const{appearance:r="transparent",reserveSelectedTabSpace:o=!0,size:n="medium"}=e,a=OZ(e,t),i=LZ({vertical:a.vertical});return{...a,root:{...i,...a.root},appearance:r,reserveSelectedTabSpace:o,size:n}},OZ=(e,t)=>{const{disabled:r=!1,onTabSelect:o,selectTabOnFocus:n=!1,vertical:a=!1,selectedValue:i,defaultSelectedValue:l,...d}=e,f=m.useRef(null),[p,h]=Xt({state:i,defaultState:l,initialState:void 0}),v=m.useRef(void 0),y=m.useRef(void 0);m.useEffect(()=>{y.current=v.current,v.current=p},[p]);const x=de((B,C)=>{h(C.value),o?.(B,C)}),b=m.useRef({}),k=de(B=>{const C=JSON.stringify(B.value);b.current[C]=B}),S=de(B=>{delete b.current[JSON.stringify(B.value)]}),N=m.useCallback(()=>({selectedValue:v.current,previousSelectedValue:y.current,registeredTabs:b.current}),[]);return{components:{root:"div"},root:me({ref:Le(t,f),role:"tablist","aria-orientation":a?"vertical":"horizontal",...d},{elementType:"div"}),disabled:r,selectTabOnFocus:n,selectedValue:p,onRegister:k,onUnregister:S,onSelect:x,getRegisteredTabs:N,vertical:a}},LZ=({vertical:e})=>Ho({circular:!0,axis:e?"vertical":"horizontal",memorizeCurrent:!1,unstable_hasDefault:!0}),$Z={appearance:"transparent",reserveSelectedTabSpace:!0,selectTabOnFocus:!1,disabled:!1,selectedValue:void 0,onRegister:()=>{},onUnregister:()=>{},onSelect:()=>{},getRegisteredTabs:()=>({registeredTabs:{}}),size:"medium",vertical:!1},oN=Vn(void 0),HZ=oN.Provider,Rn=e=>pa(oN,(t=$Z)=>e(t)),VZ=(e,t)=>G(e.root,{children:G(HZ,{value:t.tabList,children:e.root.children})}),WZ={root:"fui-TabList"},UZ=Y({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bnnss6s:"fi64zpg",Eh141a:"flvyvdh",qhf8xq:"f10pi13n"},horizontal:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1063pyq"},vertical:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1vx9l62"},roundedSmall:{i8kkvl:0,Belr9w4:0,rmohyg:"f1eyhf9v"},rounded:{i8kkvl:0,Belr9w4:0,rmohyg:"faqewft"}},{d:[".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fi64zpg{flex-shrink:0;}",".flvyvdh{flex-wrap:nowrap;}",".f10pi13n{position:relative;}",".f1q9h2pe{align-items:stretch;}",".f1vx9l62{flex-direction:column;}",[".f1eyhf9v{gap:var(--spacingHorizontalSNudge);}",{p:-1}],[".faqewft{gap:var(--spacingHorizontalS);}",{p:-1}]]}),GZ=e=>{"use no memo";const{appearance:t,vertical:r,size:o}=e,n=UZ(),a=t==="subtle-circular"||t==="filled-circular";return e.root.className=F(WZ.root,n.root,r?n.vertical:n.horizontal,a&&(o==="small"?n.roundedSmall:n.rounded),e.root.className),e};function ZZ(e){const{appearance:t,reserveSelectedTabSpace:r,disabled:o,selectTabOnFocus:n,selectedValue:a,onRegister:i,onUnregister:l,onSelect:d,getRegisteredTabs:f,size:p,vertical:h}=e;return{tabList:m.useMemo(()=>({appearance:t,reserveSelectedTabSpace:r,disabled:o,selectTabOnFocus:n,selectedValue:a,onSelect:d,onRegister:i,onUnregister:l,getRegisteredTabs:f,size:p,vertical:h}),[t,r,o,n,a,d,i,l,f,p,h])}}const fm=m.forwardRef((e,t)=>{const r=AZ(e,t),o=ZZ(r);return GZ(r),xe("useTabListStyles_unstable")(r),VZ(r,o)});fm.displayName="TabList";const KZ=(e,t)=>{const{content:r}=e,o=XZ(e,t),n=YZ(o),a=Rn(f=>f.appearance),i=Rn(f=>f.reserveSelectedTabSpace),l=Rn(f=>{var p;return(p=f.size)!==null&&p!==void 0?p:"medium"}),d=r&&typeof r=="object"?t4(r,["ref"]):r;return{...o,components:{...o.components,contentReservedSpace:"span"},root:{...n,...o.root},contentReservedSpace:ke(d,{renderByDefault:!o.selected&&!o.iconOnly&&i,defaultProps:{children:e.children},elementType:"span"}),appearance:a,size:l}},XZ=(e,t)=>{const{content:r,disabled:o=!1,icon:n,onClick:a,onFocus:i,value:l,...d}=e,f=Rn(D=>D.selectTabOnFocus),p=Rn(D=>D.disabled),h=Rn(D=>D.selectedValue===l),v=Rn(D=>D.onRegister),y=Rn(D=>D.onUnregister),x=Rn(D=>D.onSelect),b=Rn(D=>!!D.vertical),k=p||o,S=m.useRef(null),N=D=>x(D,{value:l}),B=de(Re(a,N)),C=de(Re(i,N));m.useEffect(()=>(v({value:l,ref:S}),()=>{y({value:l,ref:S})}),[v,y,S,l]);const z=ke(n,{elementType:"span"}),R=me(r,{defaultProps:{children:e.children},elementType:"span"}),E=!!(z?.children&&!R.children);return{components:{root:"button",icon:"span",content:"span",contentReservedSpace:"span"},root:me({ref:Le(t,S),role:"tab",type:"button","aria-selected":k?void 0:`${h}`,value:l,...d,disabled:k,onClick:B,onFocus:f?C:i},{elementType:"button"}),icon:z,iconOnly:E,content:R,disabled:k,selected:h,value:l,vertical:b}},YZ=({selected:e})=>Bs({focusable:{isDefault:e}}),JZ=e=>Ie(e.root,{children:[e.icon&&G(e.icon,{}),!e.iconOnly&&G(e.content,{}),e.contentReservedSpace&&G(e.contentReservedSpace,{})]}),QS={offsetVar:"--fui-Tab__indicator--offset",scaleVar:"--fui-Tab__indicator--scale"},QZ=Y({base:{B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg"},animated:{Ba2ppi3:"fhwpy7i",F2fol1:"f6zz20j",B1dyfl9:"f1ai4sc1",Bu93a1u:"f1rnm8gg",Bdasjez:"f1x3cmqg"},horizontal:{sjv3b2:["fug4aj8","f1i5xzg7"],b1kco5:"f1q7ujh"},vertical:{sjv3b2:"f1hqboyk",b1kco5:"f1dxupa6"}},{d:[[".f1gl81tg{overflow:visible;}",{p:-1}],".fhwpy7i::after{transition-property:transform;}",".f6zz20j::after{transition-duration:var(--durationSlow);}",".f1ai4sc1::after{transition-timing-function:var(--curveDecelerateMax);}",".fug4aj8::after{transform-origin:left;}",".f1i5xzg7::after{transform-origin:right;}",".f1q7ujh::after{transform:translateX(var(--fui-Tab__indicator--offset)) scaleX(var(--fui-Tab__indicator--scale));}",".f1hqboyk::after{transform-origin:top;}",".f1dxupa6::after{transform:translateY(var(--fui-Tab__indicator--offset)) scaleY(var(--fui-Tab__indicator--scale));}"],m:[["@media (prefers-reduced-motion: reduce){.f1rnm8gg::after{transition-property:none;}}",{m:"(prefers-reduced-motion: reduce)"}],["@media (prefers-reduced-motion: reduce){.f1x3cmqg::after{transition-duration:0.01ms;}}",{m:"(prefers-reduced-motion: reduce)"}]]}),eK=e=>{if(e){var t;const r=((t=e.parentElement)===null||t===void 0?void 0:t.getBoundingClientRect())||{x:0,y:0},o=e.getBoundingClientRect();return{x:o.x-r.x,y:o.y-r.y,width:o.width,height:o.height}}},eB=(e,t)=>{var r;const o=I1(t)?(r=e[JSON.stringify(t)])===null||r===void 0?void 0:r.ref.current:void 0;return o?eK(o):void 0},I1=e=>e!=null,tK=e=>{const{disabled:t,selected:r,vertical:o}=e,n=QZ(),[a,i]=m.useState(),[l,d]=m.useState({offset:0,scale:1}),f=Rn(y=>y.getRegisteredTabs),[p]=Vu();if(r){const{previousSelectedValue:y,selectedValue:x,registeredTabs:b}=f();if(I1(y)&&a!==y){const k=eB(b,y),S=eB(b,x);if(S&&k){const N=o?k.y-S.y:k.x-S.x,B=o?k.height/S.height:k.width/S.width;d({offset:N,scale:B}),i(y),p(()=>d({offset:0,scale:1}))}}}else I1(a)&&i(void 0);if(t)return e;const h=l.offset===0&&l.scale===1;e.root.className=F(e.root.className,r&&n.base,r&&h&&n.animated,r&&(o?n.vertical:n.horizontal));const v={[QS.offsetVar]:`${l.offset}px`,[QS.scaleVar]:`${l.scale}`};return e.root.style={...v,...e.root.style},e},A1={root:"fui-Tab",icon:"fui-Tab__icon",content:"fui-Tab__content"},rK={content:"fui-Tab__content--reserved-space"},nN=Y({root:{Bt984gj:"f122n59",mc9l5x:"f13qh94s",Bnnss6s:"fi64zpg",Bxotwcr:"f1u07yai",Budl1dq:"frn2hmy",wkccdc:"f1olsevy",oeaueh:"f1s6fcnf",qhf8xq:"f10pi13n"},button:{Bt984gj:"f122n59",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",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bnnss6s:"fi64zpg",Bxotwcr:"f1u07yai",Budl1dq:"frn2hmy",wkccdc:"f1olsevy",Bahqtrf:"fk6fouc",Bg96gwp:"f1i3iumi",oeaueh:"f1s6fcnf",qhf8xq:"f10pi13n",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",B9bfxx9:"f1cxpek8"},horizontal:{Brf1p80:"f4d9j23"},vertical:{Brf1p80:"f1s9ku6b"},smallHorizontal:{i8kkvl:"f14mj54c",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1wmopi4"},smallVertical:{i8kkvl:"f14mj54c",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f12or63q"},mediumHorizontal:{i8kkvl:"f1rjii52",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1w08f2p"},mediumVertical:{i8kkvl:"f1rjii52",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fymxs25"},largeHorizontal:{i8kkvl:"f1rjii52",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1ssfvub"},largeVertical:{i8kkvl:"f1rjii52",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fwkd1rq"},transparent:{De3pzq:"f1c21dwh",B95qlz1:"f9rvdkv",B7xitij:"f1051ucx",Bptxc3x:"fmmjozx",Bwqhzpy:"fqhzt5g",iyk698:"f7l5cgy",cl4aha:"fpkze5g",B0q3jbp:"f1iywnoi",Be9ayug:"f9n45c4"},subtle:{De3pzq:"fhovq9v",B95qlz1:"f1bifk9c",B7xitij:"fo6hitd",Bptxc3x:"fmmjozx",Bwqhzpy:"fqhzt5g",iyk698:"f7l5cgy",cl4aha:"fpkze5g",B0q3jbp:"f1iywnoi",Be9ayug:"f9n45c4"},disabledCursor:{Bceei9c:"fdrzuqr"},disabled:{De3pzq:"f1c21dwh",Bptxc3x:"fato7r6",cl4aha:"fao1bnu"},selected:{Bptxc3x:"f1cadz5z",Bwqhzpy:"fwhdxxj",iyk698:"fintccb",cl4aha:"ffplhdr",B0q3jbp:"fjo17wb",Be9ayug:"f148789c"}},{d:[".f122n59{align-items:center;}",".f13qh94s{display:grid;}",".fi64zpg{flex-shrink:0;}",".f1u07yai{grid-auto-flow:column;}",".frn2hmy{grid-template-columns:auto;}",".f1olsevy{grid-template-rows:auto;}",".f1s6fcnf{outline-style:none;}",".f10pi13n{position:relative;}",[".f3bhgqh{border:none;}",{p:-2}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1k6fduh{cursor:pointer;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f1cxpek8{text-transform:none;}",".f4d9j23{justify-content:center;}",".f1s9ku6b{justify-content:start;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",[".f1wmopi4{padding:var(--spacingVerticalSNudge) var(--spacingHorizontalSNudge);}",{p:-1}],[".f12or63q{padding:var(--spacingVerticalXXS) var(--spacingHorizontalSNudge);}",{p:-1}],".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",[".f1w08f2p{padding:var(--spacingVerticalM) var(--spacingHorizontalMNudge);}",{p:-1}],[".fymxs25{padding:var(--spacingVerticalSNudge) var(--spacingHorizontalMNudge);}",{p:-1}],[".f1ssfvub{padding:var(--spacingVerticalL) var(--spacingHorizontalMNudge);}",{p:-1}],[".fwkd1rq{padding:var(--spacingVerticalS) var(--spacingHorizontalMNudge);}",{p:-1}],".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f9rvdkv:enabled:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1051ucx:enabled:active{background-color:var(--colorTransparentBackgroundPressed);}",".fmmjozx .fui-Tab__icon{color:var(--colorNeutralForeground2);}",".fqhzt5g:enabled:hover .fui-Tab__icon{color:var(--colorNeutralForeground2Hover);}",".f7l5cgy:enabled:active .fui-Tab__icon{color:var(--colorNeutralForeground2Pressed);}",".fpkze5g .fui-Tab__content{color:var(--colorNeutralForeground2);}",".f1iywnoi:enabled:hover .fui-Tab__content{color:var(--colorNeutralForeground2Hover);}",".f9n45c4:enabled:active .fui-Tab__content{color:var(--colorNeutralForeground2Pressed);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".f1bifk9c:enabled:hover{background-color:var(--colorSubtleBackgroundHover);}",".fo6hitd:enabled:active{background-color:var(--colorSubtleBackgroundPressed);}",".fdrzuqr{cursor:not-allowed;}",".fato7r6 .fui-Tab__icon{color:var(--colorNeutralForegroundDisabled);}",".fao1bnu .fui-Tab__content{color:var(--colorNeutralForegroundDisabled);}",".f1cadz5z .fui-Tab__icon{color:var(--colorCompoundBrandForeground1);}",".fwhdxxj:enabled:hover .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Hover);}",".fintccb:enabled:active .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Pressed);}",".ffplhdr .fui-Tab__content{color:var(--colorNeutralForeground1);}",".fjo17wb:enabled:hover .fui-Tab__content{color:var(--colorNeutralForeground1Hover);}",".f148789c:enabled:active .fui-Tab__content{color:var(--colorNeutralForeground1Pressed);}"]}),oK=Y({base:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9",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:"fp7rvkm",Bptxc3x:"ftorr8m",cl4aha:"f16lqpmv"},small:{Dbcxam:0,rjzwhg:0,Bblux5w:"fzklhed"},medium:{Dbcxam:0,rjzwhg:0,Bblux5w:"f1j721cc"},large:{Dbcxam:0,rjzwhg:0,Bblux5w:"frx9knr"},subtle:{De3pzq:"fhovq9v",sj55zd:"fkfq4zb",B95qlz1:"f1bifk9c",Eo63ln:0,r9osk6:0,Itrz8y:0,zeg6vx:0,l65xgk:0,Bw4olcx:0,Folb0i:0,I2h8y4:0,Bgxgoyi:0,Bvlkotb:0,Fwyncl:0,Byh5edv:0,Becqvjq:0,uumbiq:0,B73q3dg:0,Bblwbaf:0,B0ezav:"ft57sj0",r4wkhp:"f1fcoy83",B7xitij:"fo6hitd",d3wsvi:0,Hdqn7s:0,zu5y1p:0,owqphb:0,g9c53k:0,Btmu08z:0,Bthxvy6:0,gluvuq:0,tb88gp:0,wns6jk:0,kdfdk4:0,Bbw008l:0,Bayi1ib:0,B1kkfu3:0,J1oqyp:0,kem6az:0,goa3yj:"fhn220o",p743kt:"f15qf7sh",wmvzou:0,sc4o1m:0,wymq9i:0,u9orzk:0,puiv5t:0,Bosien3:0,b2z72d:0,Beulxaw:0,B57pkaw:0,Jcjdmf:0,B8qgbzl:0,Bbmb0sr:0,B14q8qp:0,Bcq6wej:0,Byz1pjr:0,kr9cjb:0,Ff9ifp:"f1mljprk"},subtleSelected:{De3pzq:"f16xkysk",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:"f1c2pc3t",sj55zd:"faj9fo0",B95qlz1:"fsm7zmf",Eo63ln:0,r9osk6:0,Itrz8y:0,zeg6vx:0,l65xgk:0,Bw4olcx:0,Folb0i:0,I2h8y4:0,Bgxgoyi:0,Bvlkotb:0,Fwyncl:0,Byh5edv:0,Becqvjq:0,uumbiq:0,B73q3dg:0,Bblwbaf:0,B0ezav:"f1wo0sfq",r4wkhp:"f1afuynh",B7xitij:"f94ddyl",d3wsvi:0,Hdqn7s:0,zu5y1p:0,owqphb:0,g9c53k:0,Btmu08z:0,Bthxvy6:0,gluvuq:0,tb88gp:0,wns6jk:0,kdfdk4:0,Bbw008l:0,Bayi1ib:0,B1kkfu3:0,J1oqyp:0,kem6az:0,goa3yj:"fmle6oo",p743kt:"f1d3itm4",wmvzou:0,sc4o1m:0,wymq9i:0,u9orzk:0,puiv5t:0,Bosien3:0,b2z72d:0,Beulxaw:0,B57pkaw:0,Jcjdmf:0,B8qgbzl:0,Bbmb0sr:0,B14q8qp:0,Bcq6wej:0,Byz1pjr:0,kr9cjb:0,Ff9ifp:"f1e9l2u"},subtleDisabled:{De3pzq:"fhovq9v",sj55zd:"f1s2aq7o"},subtleDisabledSelected:{De3pzq:"f1bg9a2p",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:"fegtqic",sj55zd:"f1s2aq7o"},filled:{De3pzq:"f16xq7d1",sj55zd:"fkfq4zb",B95qlz1:"fwwxidx",r4wkhp:"f1fcoy83",B7xitij:"f14i52sd",p743kt:"f15qf7sh",Hhssn:"f1cpi5f4",uaurb9:"f6pj1s0",B401qx7:"f12sz5kj",Buyp1jb:"f17588c3",gsp74p:"fnthgdt"},filledSelected:{De3pzq:"ffp7eso",sj55zd:"f1phragk",B95qlz1:"f1lm9dni",r4wkhp:"f1mn5ei1",B7xitij:"f1g6ncd0",p743kt:"fl71aob",Gedr8k:"f14zl92z",Bm69vlq:"f16zy3eu",Bodipah:"f1gdgb7p",B5kpen0:"f1tua9ng"},filledDisabled:{De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o"},filledDisabledSelected:{De3pzq:"f1bg9a2p",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:"fegtqic",sj55zd:"f1s2aq7o"}},{d:[[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".fp7rvkm{border:solid var(--strokeWidthThin) var(--colorTransparentStroke);}",{p:-2}],".ftorr8m .fui-Tab__icon{color:inherit;}",".f16lqpmv .fui-Tab__content{color:inherit;}",[".fzklhed{padding-block:calc(var(--spacingVerticalXXS) - var(--strokeWidthThin));}",{p:-1}],[".f1j721cc{padding-block:calc(var(--spacingVerticalSNudge) - var(--strokeWidthThin));}",{p:-1}],[".frx9knr{padding-block:calc(var(--spacingVerticalS) - var(--strokeWidthThin));}",{p:-1}],".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f1bifk9c:enabled:hover{background-color:var(--colorSubtleBackgroundHover);}",[".ft57sj0:enabled:hover{border:solid var(--strokeWidthThin) var(--colorNeutralStroke1Hover);}",{p:-2}],".f1fcoy83:enabled:hover{color:var(--colorNeutralForeground2Hover);}",".fo6hitd:enabled:active{background-color:var(--colorSubtleBackgroundPressed);}",[".fhn220o:enabled:active{border:solid var(--strokeWidthThin) var(--colorNeutralStroke1Pressed);}",{p:-2}],".f15qf7sh:enabled:active{color:var(--colorNeutralForeground2Pressed);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",[".f1c2pc3t{border:solid var(--strokeWidthThin) var(--colorCompoundBrandStroke);}",{p:-2}],".faj9fo0{color:var(--colorBrandForeground2);}",".fsm7zmf:enabled:hover{background-color:var(--colorBrandBackground2Hover);}",[".f1wo0sfq:enabled:hover{border:solid var(--strokeWidthThin) var(--colorCompoundBrandStrokeHover);}",{p:-2}],".f1afuynh:enabled:hover{color:var(--colorBrandForeground2Hover);}",".f94ddyl:enabled:active{background-color:var(--colorBrandBackground2Pressed);}",[".fmle6oo:enabled:active{border:solid var(--strokeWidthThin) var(--colorCompoundBrandStrokePressed);}",{p:-2}],".f1d3itm4:enabled:active{color:var(--colorBrandForeground2Pressed);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",[".fegtqic{border:solid var(--strokeWidthThin) var(--colorNeutralStrokeDisabled);}",{p:-2}],".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fwwxidx:enabled:hover{background-color:var(--colorNeutralBackground3Hover);}",".f14i52sd:enabled:active{background-color:var(--colorNeutralBackground3Pressed);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".f1lm9dni:enabled:hover{background-color:var(--colorBrandBackgroundHover);}",".f1mn5ei1:enabled:hover{color:var(--colorNeutralForegroundOnBrand);}",".f1g6ncd0:enabled:active{background-color:var(--colorBrandBackgroundPressed);}",".fl71aob:enabled:active{color:var(--colorNeutralForegroundOnBrand);}",[".fegtqic{border:solid var(--strokeWidthThin) var(--colorNeutralStrokeDisabled);}",{p:-2}]],m:[["@media (forced-colors: active){.f1mljprk{border:solid var(--strokeWidthThin) Canvas;}}",{p:-2,m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1e9l2u{border:solid var(--strokeWidthThin) Highlight;}}",{p:-2,m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cpi5f4:enabled:hover{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f6pj1s0:enabled:hover{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f12sz5kj:enabled:hover .fui-Tab__content{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f17588c3:enabled:hover .fui-Icon-filled{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnthgdt:enabled:hover .fui-Icon-regular{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14zl92z:enabled{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16zy3eu:enabled .fui-Tab__content{color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1gdgb7p:enabled .fui-Tab__content{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tua9ng:enabled .fui-Tab__icon{color:ButtonFace;}}",{m:"(forced-colors: active)"}]]}),nK=Y({base:{B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bn4voq9:"f1p7hgxw",Bfpq7zp:"f1way5bb",g9k6zt:"f9znhxp",j6ew2k:["fqa318h","fqa318h"],Bhxq17a:"f1vjpng2"},circular:{B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bn4voq9:"f1p7hgxw",Bfpq7zp:"f1way5bb",g9k6zt:"f9znhxp",j6ew2k:["fzgyhws","fqxug60"],Bhxq17a:"f1vjpng2"}},{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;}",".f1p7hgxw[data-fui-focus-visible]{outline-width:var(--strokeWidthThick);}",".f1way5bb[data-fui-focus-visible]{outline-color:transparent;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqa318h[data-fui-focus-visible]{box-shadow:var(--shadow4),0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2);}",".f1vjpng2[data-fui-focus-visible]{z-index:1;}",".fzgyhws[data-fui-focus-visible]{box-shadow:var(--shadow4),0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2),0 0 0 var(--strokeWidthThin) var(--colorNeutralStrokeOnBrand) inset;}",".fqxug60[data-fui-focus-visible]{box-shadow:var(--shadow4),0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2),0 0 0 var(--strokeWidthThin) var(--colorNeutralStrokeOnBrand) inset;}"]}),aK=Y({base:{az7l2e:"fhw179n",vqofr:0,Bv4n3vi:0,Bgqb9hq:0,B0uxbk8:0,Bf3jju6:"fg9j5n4",amg5m6:"f1kmhr4c",zkfqfm:"fl1ydde",Bkydozb:"f1y7maxz",Bka2azo:0,vzq8l0:0,csmgbd:0,Br4ovkg:0,aelrif:"fceyvr4",y36c18:"f16cxu0",B1ctymy:"f1nwgacf",xzc5d:"fm6alxz",h5yqg8:"fhx32z1"},disabled:{az7l2e:"f1ut20fw",Bkydozb:"fhrzcfn",xzc5d:"fw15awd",h5yqg8:"faqmq51"},smallHorizontal:{lawp4y:"fchca7p",Baz25je:"f1r53b5e",Fbdkly:["f1s6rxz5","fo35v8s"],mdwyqc:["fo35v8s","f1s6rxz5"]},smallVertical:{lawp4y:"fze4zud",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"fdp32p8",Ccq8qp:"f1aij3q"},mediumHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},mediumVertical:{lawp4y:"f17jracn",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f117lcb2",Ccq8qp:"f1aij3q"},largeHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},largeVertical:{lawp4y:"fel9d3z",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f6vqlre",Ccq8qp:"f1aij3q"}},{h:[".fhw179n:hover::before{background-color:var(--colorNeutralStroke1Hover);}",[".fg9j5n4:hover::before{border-radius:var(--borderRadiusCircular);}",{p:-1}],'.f1kmhr4c:hover::before{content:"";}',".fl1ydde:hover::before{position:absolute;}",".f1ut20fw:hover::before{background-color:var(--colorTransparentStroke);}"],a:[".f1y7maxz:active::before{background-color:var(--colorNeutralStroke1Pressed);}",[".fceyvr4:active::before{border-radius:var(--borderRadiusCircular);}",{p:-1}],'.f16cxu0:active::before{content:"";}',".f1nwgacf:active::before{position:absolute;}",".fhrzcfn:active::before{background-color:var(--colorTransparentStroke);}"],m:[["@media (forced-colors: active){.fm6alxz:hover::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fhx32z1:active::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fw15awd:hover::before{background-color:transparent;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.faqmq51:active::before{background-color:transparent;}}",{m:"(forced-colors: active)"}]],d:[".fchca7p::before{bottom:0;}",".f1r53b5e::before{height:var(--strokeWidthThick);}",".f1s6rxz5::before{left:var(--spacingHorizontalSNudge);}",".fo35v8s::before{right:var(--spacingHorizontalSNudge);}",".fze4zud::before{bottom:var(--spacingVerticalXS);}",".f1fzr1x6::before{left:0;}",".f1f351id::before{right:0;}",".fdp32p8::before{top:var(--spacingVerticalXS);}",".f1aij3q::before{width:var(--strokeWidthThicker);}",".f1s2r9ax::before{height:var(--strokeWidthThicker);}",".f1o0nnkk::before{left:var(--spacingHorizontalM);}",".fxb7rol::before{right:var(--spacingHorizontalM);}",".f17jracn::before{bottom:var(--spacingVerticalS);}",".f117lcb2::before{top:var(--spacingVerticalS);}",".fel9d3z::before{bottom:var(--spacingVerticalMNudge);}",".f6vqlre::before{top:var(--spacingVerticalMNudge);}"]}),iK=Y({base:{Bjyk6c5:"f1rp0jgh",d9w3h3:0,B3778ie:0,B4j8arr:0,Bl18szs:0,Blrzh8d:"f3b9emi",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9"},selected:{Bjyk6c5:"f1ksivud",Bej4dhw:"f1476jrx",B7wqxwa:"f18q216b",Hwb57:"f1wf6u82",Beg08s0:"f1xwit7m",Bo27r1v:"f1ksfgwi"},disabled:{Bjyk6c5:"f13lkzet"},smallHorizontal:{By385i5:"fo72kxq",Dlnsje:"f9bb2ob",Eqx8gd:["f1q70ajw","f18rbzdx"],B1piin3:["f18rbzdx","f1q70ajw"]},smallVertical:{By385i5:"fqbue9b",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fk1klkt",a2br6o:"f1o25lip"},mediumHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},mediumVertical:{By385i5:"fipylg0",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fqchiol",a2br6o:"f1o25lip"},largeHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},largeVertical:{By385i5:"f1w7dm5g",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"f1p6em4m",a2br6o:"f1o25lip"}},{d:[".f1rp0jgh::after{background-color:var(--colorTransparentStroke);}",[".f3b9emi::after{border-radius:var(--borderRadiusCircular);}",{p:-1}],'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1ksivud::after{background-color:var(--colorCompoundBrandStroke);}",".f1476jrx:enabled:hover::after{background-color:var(--colorCompoundBrandStrokeHover);}",".f18q216b:enabled:active::after{background-color:var(--colorCompoundBrandStrokePressed);}",".f13lkzet::after{background-color:var(--colorNeutralForegroundDisabled);}",".fo72kxq::after{bottom:0;}",".f9bb2ob::after{height:var(--strokeWidthThick);}",".f1q70ajw::after{left:var(--spacingHorizontalSNudge);}",".f18rbzdx::after{right:var(--spacingHorizontalSNudge);}",".fqbue9b::after{bottom:var(--spacingVerticalXS);}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fk1klkt::after{top:var(--spacingVerticalXS);}",".f1o25lip::after{width:var(--strokeWidthThicker);}",".f1vx7lu8::after{height:var(--strokeWidthThicker);}",".fna7m5n::after{left:var(--spacingHorizontalM);}",".f1oxpfwv::after{right:var(--spacingHorizontalM);}",".fipylg0::after{bottom:var(--spacingVerticalS);}",".fqchiol::after{top:var(--spacingVerticalS);}",".f1w7dm5g::after{bottom:var(--spacingVerticalMNudge);}",".f1p6em4m::after{top:var(--spacingVerticalMNudge);}"],m:[["@media (forced-colors: active){.f1wf6u82::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1xwit7m:enabled:hover::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ksfgwi:enabled:active::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}]]}),sK=Y({base:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94",Bt984gj:"f122n59",mc9l5x:"ftuwxu6",Brf1p80:"f4d9j23",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",D0sxk3:"f16u1re",t6yez3:"f8bsbmo"},small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},medium:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun"},selected:{D0sxk3:"fxoiby5",t6yez3:"f15q0o9g"}},{d:[".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".f4d9j23{justify-content:center;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f16u1re .fui-Icon-filled{display:none;}",".f8bsbmo .fui-Icon-regular{display:inline;}",".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}"]}),lK=Y({base:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1bwptpd"},selected:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f1i3iumi"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k"},largeSelected:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},noIconBefore:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94"},iconBefore:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94"},placeholder:{Bcdw1i0:"fd7fpy0"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],[".f1bwptpd{padding:var(--spacingVerticalNone) var(--spacingHorizontalXXS);}",{p:-1}],".fl43uef{font-weight:var(--fontWeightSemibold);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".fd46tj4{grid-column-start:2;}",".fd7fpy0{visibility:hidden;}"]}),cK=e=>{"use no memo";return uK(e),dK(e,e.root),fK(e),e},uK=e=>{"use no memo";const t=nN(),r=aK(),o=iK(),{appearance:n,disabled:a,selected:i,size:l,vertical:d}=e,f=[A1.root,t.root];return n!=="subtle-circular"&&n!=="filled-circular"&&f.push(r.base,l==="small"&&(d?r.smallVertical:r.smallHorizontal),l==="medium"&&(d?r.mediumVertical:r.mediumHorizontal),l==="large"&&(d?r.largeVertical:r.largeHorizontal),a&&r.disabled,i&&o.base,i&&!a&&o.selected,i&&l==="small"&&(d?o.smallVertical:o.smallHorizontal),i&&l==="medium"&&(d?o.mediumVertical:o.mediumHorizontal),i&&l==="large"&&(d?o.largeVertical:o.largeHorizontal),i&&a&&o.disabled),e.root.className=F(...f,e.root.className),tK(e),e},dK=(e,t)=>{"use no memo";const r=nN(),o=nK(),n=oK(),{appearance:a,disabled:i,selected:l,size:d,vertical:f}=e,p=a==="subtle-circular",h=a==="filled-circular",v=p||h,y=[n.base,o.circular,d==="small"&&n.small,d==="medium"&&n.medium,d==="large"&&n.large,p&&n.subtle,l&&p&&n.subtleSelected,i&&p&&n.subtleDisabled,l&&i&&p&&n.subtleDisabledSelected,h&&n.filled,l&&h&&n.filledSelected,i&&h&&n.filledDisabled,l&&i&&h&&n.filledDisabledSelected],x=[o.base,!i&&a==="subtle"&&r.subtle,!i&&a==="transparent"&&r.transparent,!i&&l&&r.selected,i&&r.disabled];return t.className=F(r.button,f?r.vertical:r.horizontal,d==="small"&&(f?r.smallVertical:r.smallHorizontal),d==="medium"&&(f?r.mediumVertical:r.mediumHorizontal),d==="large"&&(f?r.largeVertical:r.largeHorizontal),...v?y:x,i&&r.disabledCursor,t.className),e},fK=e=>{"use no memo";const t=sK(),r=lK(),{selected:o,size:n}=e;return e.icon&&(e.icon.className=F(A1.icon,t.base,t[n],o&&t.selected,e.icon.className)),e.contentReservedSpace&&(e.contentReservedSpace.className=F(rK.content,r.base,n==="large"?r.largeSelected:r.selected,e.icon?r.iconBefore:r.noIconBefore,r.placeholder,e.content.className),e.contentReservedSpaceClassName=e.contentReservedSpace.className),e.content.className=F(A1.content,r.base,n==="large"&&r.large,o&&(n==="large"?r.largeSelected:r.selected),e.icon?r.iconBefore:r.noIconBefore,e.content.className),e},oa=m.forwardRef((e,t)=>{const r=KZ(e,t);return cK(r),xe("useTabStyles_unstable")(r),JZ(r)});oa.displayName="Tab";const aN=(e,t)=>{const{wrap:r,truncate:o,block:n,italic:a,underline:i,strikethrough:l,size:d,font:f,weight:p,align:h}=e;return{align:h??"start",block:n??!1,font:f??"base",italic:a??!1,size:d??300,strikethrough:l??!1,truncate:o??!1,underline:i??!1,weight:p??"regular",wrap:r??!0,components:{root:"span"},root:me($e("span",{ref:t,...e}),{elementType:"span"})}},iN=e=>G(e.root,{}),pK={root:"fui-Text"},mK=Y({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;}"]}),sN=e=>{"use no memo";const t=mK();return e.root.className=F(pK.root,t.root,e.wrap===!1&&t.nowrap,e.truncate&&t.truncate,e.block&&t.block,e.italic&&t.italic,e.underline&&t.underline,e.strikethrough&&t.strikethrough,e.underline&&e.strikethrough&&t.strikethroughUnderline,e.size===100&&t.base100,e.size===200&&t.base200,e.size===400&&t.base400,e.size===500&&t.base500,e.size===600&&t.base600,e.size===700&&t.hero700,e.size===800&&t.hero800,e.size===900&&t.hero900,e.size===1e3&&t.hero1000,e.font==="monospace"&&t.monospace,e.font==="numeric"&&t.numeric,e.weight==="medium"&&t.weightMedium,e.weight==="semibold"&&t.weightSemibold,e.weight==="bold"&&t.weightBold,e.align==="center"&&t.alignCenter,e.align==="end"&&t.alignEnd,e.align==="justify"&&t.alignJustify,e.root.className),e},ar=m.forwardRef((e,t)=>{const r=aN(e,t);return sN(r),xe("useTextStyles_unstable")(r),iN(r)});ar.displayName="Text";function kg(e){const{useStyles:t,className:r,displayName:o}=e,n=m.forwardRef((a,i)=>{"use no memo";const l=t(),d=aN(a,i);return sN(d),d.root.className=F(r,d.root.className,l.root,a.className),iN(d)});return n.displayName=o,n}const gK={root:"fui-Body1"},hK=Y({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);}"]}),Rd=kg({useStyles:hK,className:gK.root,displayName:"Body1"}),vK={root:"fui-Caption1"},bK=Y({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);}"]}),Pe=kg({useStyles:bK,className:vK.root,displayName:"Caption1"}),yK={root:"fui-Subtitle2"},xK=Y({root:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}"]}),tB=kg({useStyles:xK,className:yK.root,displayName:"Subtitle2"}),wK={root:"fui-Title3"},kK=Y({root:{Bahqtrf:"fk6fouc",Be2twd7:"f1x0m3f5",Bhrd7zp:"fl43uef",Bg96gwp:"fb86gi6"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fb86gi6{line-height:var(--lineHeightBase600);}"]}),SK=kg({useStyles:kK,className:wK.root,displayName:"Title3"}),BK=e=>G(e.root,{children:G(e.textarea,{})}),jK=(e,t)=>{const r=Qm();var o;const{size:n="medium",appearance:a=(o=r.inputDefaultAppearance)!==null&&o!==void 0?o:"outline",...i}=e;return{...CK(i,t),size:n,appearance:a}},CK=(e,t)=>{e=ga(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const{resize:r="none",onChange:o}=e,[n,a]=Xt({state:e.value,defaultState:e.defaultValue,initialState:void 0}),i=$i({props:e,primarySlotTagName:"textarea",excludedPropNames:["onChange","value","defaultValue"]}),l={resize:r,components:{root:"span",textarea:"textarea"},textarea:me(e.textarea,{defaultProps:{ref:t,...i.primary},elementType:"textarea"}),root:me(e.root,{defaultProps:i.root,elementType:"span"})};return l.textarea.value=n,l.textarea.onChange=de(d=>{const f=d.target.value;o?.(d,{value:f}),a(f)}),l},rB={root:"fui-Textarea",textarea:"fui-Textarea__textarea"},NK=Y({base:{mc9l5x:"ftuwxu6",B7ck84d:"f1ewtqcl",qhf8xq:"f10pi13n",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1yiegib",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",ha4doy:"f12kltsn"},disabled:{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:"ff3nzm7",Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"]},interactive:{li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"ffyw7fx",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],B1q35kw:0,Bw17bha:0,Bcgy8vk:0,Bjuhk93:"f1mnjydx",Gjdm7m:"fj2g8qd",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",wi16st:"fsrmcvb",ywj3b2:"f1t3k7v9",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",Bnupc0a:"fx04xgm",bing71:"f1c7in40",Bercvud:"f1ibeo51",Bbr2w1p:"f1vnc8sk",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7"},filled:{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",q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{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:"f1gmd7mu",E5pizo:"fyed02w"},"filled-lighter-shadow":{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:"f1gmd7mu",E5pizo:"fyed02w"},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:{kzujx5:0,oetu4i:"f1l4zc64",gvrnp0:0,xv9156:0,jek2p4:0,gg5e9n:0,Beu9t3s:0,dt87k2:0,Bt1vbvt:0,Bwzppfd:0,Bop6t4b:0,B2zwrfe:0,Bwp2tzp:0,Bgoe8wy:0,Bf40cpq:0,ckks6v:0,Baalond:"f9mts5e",v2iqwr:0,wmxk5l:"f1z0osm6",Bj33j0h:0,Bs0cc2w:0,qwjtx1:0,B50zh58:0,f7epvg:0,e1hlit:0,B7mkhst:0,ak43y8:0,Bbcopvn:0,Bvecx4l:0,lwioe0:0,B6oc9vd:0,e2sjt0:0,uqwnxt:0,asj8p9:"f1acnei2",Br8fjdy:0,zoxjo1:"f1so894s",Bt3ojkv:0,B7pmvfx:0,Bfht2n1:0,an54nd:0,t1ykpo:0,Belqbek:0,bbt1vd:0,Brahy3i:0,r7b1zc:0,rexu52:0,ovtnii:0,Bvq3b66:0,Bawrxx6:0,Bbs6y8j:0,B2qpgjt:"f19ezbcq"},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]}},{d:[".ftuwxu6{display:inline-flex;}",".f1ewtqcl{box-sizing:border-box;}",".f10pi13n{position:relative;}",[".f1yiegib{padding:0 0 var(--strokeWidthThick) 0;}",{p:-1}],[".f1s184ao{margin:0;}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f12kltsn{vertical-align:top;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".ff3nzm7{border:var(--strokeWidthThin) solid var(--colorNeutralStrokeDisabled);}",{p:-2}],".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;}",".ffyw7fx::after{height:max(var(--strokeWidthThick), 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}],".fj2g8qd::after{clip-path:inset(calc(100% - var(--strokeWidthThick)) 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);}",[".f88035w{border:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-2}],".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",[".f1gmd7mu{border:var(--strokeWidthThin) solid var(--colorTransparentStrokeInteractive);}",{p:-2}],".fyed02w{box-shadow:var(--shadow2);}",[".f1gmd7mu{border:var(--strokeWidthThin) solid var(--colorTransparentStrokeInteractive);}",{p:-2}],[".fhz96rm{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);}",{p:-2}],".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".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);}"],m:[["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media screen and (prefers-reduced-motion: reduce){.fsrmcvb::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1t3k7v9::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fx04xgm:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1c7in40:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]],w:[".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);}",".f1vnc8sk:focus-within{outline-width:var(--strokeWidthThick);}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",[".f19ezbcq:focus-within{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1Pressed);}",{p:-2}],".f1so894s:focus-within{border-bottom-color:var(--colorCompoundBrandStroke);}"],h:[".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);}",[".f9mts5e:hover{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1Hover);}",{p:-2}],".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}"],a:[[".f1acnei2:active{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1Pressed);}",{p:-2}],".f1z0osm6:active{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"]}),zK=Y({base:{icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"],jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",De3pzq:"f3rmtva",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",Bh6795r:"fqerorx",Bahqtrf:"fk6fouc",Bqenvij:"f1l02sjl",yvdlaj:"fwyc1cq",B3o7kgh:"f13ta7ih",oeaueh:"f1s6fcnf"},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"},small:{sshi5w:"f1w5jphr",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1pnffij",Bxyxcbc:"f192z54u",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{sshi5w:"fvmd9f",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1ww82xo",Bxyxcbc:"f1if7ixc",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},large:{sshi5w:"f1kfson",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f15hvtkj",Bxyxcbc:"f3kip1f",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k"}},{d:[".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",[".f1s184ao{margin:0;}",{p:-1}],".f3rmtva{background-color:transparent;}",".f1ewtqcl{box-sizing:border-box;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fqerorx{flex-grow:1;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f1l02sjl{height:100%;}",".fwyc1cq::-webkit-input-placeholder{color:var(--colorNeutralForeground4);}",".fwyc1cq::-moz-placeholder{color:var(--colorNeutralForeground4);}",".f13ta7ih::-webkit-input-placeholder{opacity:1;}",".f13ta7ih::-moz-placeholder{opacity:1;}",".f1s6fcnf{outline-style:none;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}",".f1w5jphr{min-height:40px;}",[".f1pnffij{padding:var(--spacingVerticalXS) calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",{p:-1}],".f192z54u{max-height:200px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fvmd9f{min-height:52px;}",[".f1ww82xo{padding:var(--spacingVerticalSNudge) calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",{p:-1}],".f1if7ixc{max-height:260px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1kfson{min-height:64px;}",[".f15hvtkj{padding:var(--spacingVerticalS) calc(var(--spacingHorizontalM) + var(--spacingHorizontalXXS));}",{p:-1}],".f3kip1f{max-height:320px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}"]}),TK=Y({none:{B3rzk8w:"f1o1s39h"},both:{B3rzk8w:"f1pxm0xe"},horizontal:{B3rzk8w:"fq6nmtn"},vertical:{B3rzk8w:"f1f5ktr4"}},{d:[".f1o1s39h{resize:none;}",".f1pxm0xe{resize:both;}",".fq6nmtn{resize:horizontal;}",".f1f5ktr4{resize:vertical;}"]}),_K=e=>{"use no memo";const{size:t,appearance:r,resize:o}=e,n=e.textarea.disabled,a=`${e.textarea["aria-invalid"]}`=="true",i=r.startsWith("filled"),l=NK();e.root.className=F(rB.root,l.base,n&&l.disabled,!n&&i&&l.filled,!n&&l[r],!n&&l.interactive,!n&&r==="outline"&&l.outlineInteractive,!n&&a&&l.invalid,e.root.className);const d=zK(),f=TK();return e.textarea.className=F(rB.textarea,d.base,d[t],f[o],n&&d.disabled,e.textarea.className),e},Sg=m.forwardRef((e,t)=>{const r=jK(e,t);return _K(r),xe("useTextareaStyles_unstable")(r),BK(r)});Sg.displayName="Textarea";const RK=Be("r6pzz3z",null,[".r6pzz3z{overflow-y:hidden;overflow-y:clip;scrollbar-gutter:stable;}"]),DK=Be("r144vlu9",null,[".r144vlu9{overflow-y:hidden;}"]);function EK(){const e=RK(),t=DK(),{targetDocument:r}=Ve(),o=m.useCallback(()=>{var a;if(!r)return;var i;Math.floor(r.body.getBoundingClientRect().height)>((i=(a=r.defaultView)===null||a===void 0?void 0:a.innerHeight)!==null&&i!==void 0?i:0)&&(r.documentElement.classList.add(e),r.body.classList.add(t))},[r,e,t]),n=m.useCallback(()=>{r&&(r.documentElement.classList.remove(e),r.body.classList.remove(t))},[r,e,t]);return{disableBodyScroll:o,enableBodyScroll:n}}function PK(e,t){const{findFirstFocusable:r}=hn(),{targetDocument:o}=Ve(),n=m.useRef(null);return m.useEffect(()=>{if(!e)return;const a=n.current&&r(n.current);if(a)a.focus();else{var i;(i=n.current)===null||i===void 0||i.focus()}},[r,e,t,o]),n}const MK={open:!1,inertTrapFocus:!1,modalType:"modal",isNestedDialog:!1,unmountOnClose:!0,dialogRef:{current:null},requestOpenChange(){}},Hy=Vn(void 0),qK=Hy.Provider,tn=e=>pa(Hy,(t=MK)=>e(t)),FK=!1,lN=m.createContext(void 0),cN=lN.Provider,IK=()=>{var e;return(e=m.useContext(lN))!==null&&e!==void 0?e:FK},uN=m.createContext(void 0),AK=uN.Provider,OK=()=>m.useContext(uN),oB=Vi(yy,{outScale:.85,easing:it.curveDecelerateMid,duration:it.durationGentle,exitEasing:it.curveAccelerateMin,exitDuration:it.durationGentle}),LK=e=>{const{children:t,modalType:r="modal",onOpenChange:o,inertTrapFocus:n=!1,unmountOnClose:a=!0}=e,i=bt("dialog-title-"),[l,d]=$K(t),[f,p]=Xt({state:e.open,defaultState:e.defaultOpen,initialState:!1}),h=de(k=>{o?.(k.event,k),k.event.isDefaultPrevented()||p(k.open)}),v=PK(f,r),{modalAttributes:y,triggerAttributes:x}=Sd({trapFocus:r!=="non-modal",legacyTrapFocus:!n}),b=jd(Hy);return{components:{surfaceMotion:oB},inertTrapFocus:n,open:f,modalType:r,content:d,trigger:l,requestOpenChange:h,dialogTitleId:i,isNestedDialog:b,unmountOnClose:a,dialogRef:v,modalAttributes:y,triggerAttributes:x,surfaceMotion:zd(e.surfaceMotion,{elementType:oB,defaultProps:{visible:f,appear:a,unmountOnExit:a}})}};function $K(e){const t=m.Children.toArray(e);switch(t.length){case 2:return t;case 1:return[void 0,t[0]];default:return[void 0,void 0]}}const HK=(e,t)=>G(qK,{value:t.dialog,children:Ie(cN,{value:t.dialogSurface,children:[e.trigger,e.content&&G(e.surfaceMotion,{children:G(fg,{children:e.content})})]})});function VK(e){const{modalType:t,open:r,dialogRef:o,dialogTitleId:n,isNestedDialog:a,inertTrapFocus:i,requestOpenChange:l,modalAttributes:d,triggerAttributes:f,unmountOnClose:p}=e;return{dialog:m.useMemo(()=>({open:r,modalType:t,dialogRef:o,dialogTitleId:n,isNestedDialog:a,inertTrapFocus:i,modalAttributes:d,triggerAttributes:f,unmountOnClose:p,requestOpenChange:l}),[r,t,o,n,a,i,d,f,p,l]),dialogSurface:!1}}const Va=m.memo(e=>{const t=LK(e),r=VK(t);return HK(t,r)});Va.displayName="Dialog";const WK=e=>{const t=IK(),{children:r,disableButtonEnhancement:o=!1,action:n=t?"close":"open"}=e,a=tc(r),i=tn(h=>h.requestOpenChange),{triggerAttributes:l}=Sd(),d=de(h=>{var v,y;a==null||(v=(y=a.props).onClick)===null||v===void 0||v.call(y,h),h.isDefaultPrevented()||i({event:h,type:"triggerClick",open:n==="open"})}),f={...a?.props,ref:ec(a),onClick:d,...l},p=La(a?.type==="button"||a?.type==="a"?a.type:"div",{...f,type:"button"});return{children:wd(r,o?f:p)}},UK=e=>e.children,Ia=e=>{const t=WK(e);return UK(t)};Ia.displayName="DialogTrigger";Ia.isFluentTriggerComponent=!0;const GK=(e,t)=>{const{position:r="end",fluid:o=!1}=e;return{components:{root:"div"},root:me($e("div",{ref:t,...e}),{elementType:"div"}),position:r,fluid:o}},ZK=e=>G(e.root,{}),KK={root:"fui-DialogActions"},XK=Be("rhfpeu0",null,{r:[".rhfpeu0{gap:8px;height:fit-content;box-sizing:border-box;display:flex;grid-row-start:3;grid-row-end:3;}"],s:["@media screen and (max-width: 480px){.rhfpeu0{flex-direction:column;justify-self:stretch;}}"]}),YK=Y({gridPositionEnd:{Bdqf98w:"f1a7i8kp",Br312pm:"fd46tj4",Bw0ie65:"fsyjsko",Btsd7tp:"f1n00o3b",ufxxby:"f1mvsp37",Bq5p579:"flbz1vp"},gridPositionStart:{Bdqf98w:"fsxvdwy",Br312pm:"fwpfdsa",Bw0ie65:"f1e2fz10",Ew0qkd:"f119phc2",ufxxby:"f1j719yo",Bq5p579:"flbz1vp"},fluidStart:{Bw0ie65:"fsyjsko"},fluidEnd:{Br312pm:"fwpfdsa"}},{d:[".f1a7i8kp{justify-self:end;}",".fd46tj4{grid-column-start:2;}",".fsyjsko{grid-column-end:4;}",".fsxvdwy{justify-self:start;}",".fwpfdsa{grid-column-start:1;}",".f1e2fz10{grid-column-end:2;}"],m:[["@media screen and (max-width: 480px){.f1n00o3b{grid-column-start:1;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f1mvsp37{grid-row-start:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.flbz1vp{grid-row-end:auto;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f119phc2{grid-column-end:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f1j719yo{grid-row-start:3;}}",{m:"screen and (max-width: 480px)"}]]}),JK=e=>{"use no memo";const t=XK(),r=YK();return e.root.className=F(KK.root,t,e.position==="start"&&r.gridPositionStart,e.position==="end"&&r.gridPositionEnd,e.fluid&&e.position==="start"&&r.fluidStart,e.fluid&&e.position==="end"&&r.fluidEnd,e.root.className),e},cc=m.forwardRef((e,t)=>{const r=GK(e,t);return JK(r),xe("useDialogActionsStyles_unstable")(r),ZK(r)});cc.displayName="DialogActions";const QK=(e,t)=>{var r;return{components:{root:"div"},root:me($e((r=e.as)!==null&&r!==void 0?r:"div",{ref:t,...e}),{elementType:"div"})}},eX=e=>G(e.root,{}),tX={root:"fui-DialogBody"},rX=Be("rhwx3p8",null,{r:[".rhwx3p8{overflow:unset;gap:8px;display:grid;max-height:calc(100vh - 2 * 24px);max-height:calc(100dvh - 2 * 24px);box-sizing:border-box;grid-template-rows:auto 1fr;grid-template-columns:1fr 1fr auto;}"],s:["@media screen and (max-width: 480px){.rhwx3p8{max-width:100vw;grid-template-rows:auto 1fr auto;}}","@media screen and (max-height: 359px){.rhwx3p8{max-height:unset;}}"]}),oX=e=>{"use no memo";const t=rX();return e.root.className=F(tX.root,t,e.root.className),e},Fs=m.forwardRef((e,t)=>{const r=QK(e,t);return oX(r),xe("useDialogBodyStyles_unstable")(r),eX(r)});Fs.displayName="DialogBody";const nB={root:"fui-DialogTitle",action:"fui-DialogTitle__action"},nX=Be("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;}"]),aX=Y({rootWithoutAction:{Bw0ie65:"fsyjsko"}},{d:[".fsyjsko{grid-column-end:4;}"]}),iX=Be("r13kcrze",null,[".r13kcrze{grid-row-start:1;grid-row-end:1;grid-column-start:3;justify-self:end;align-self:start;}"]),sX=Be("r2avt6e","roj2bbc",{r:[".r2avt6e{overflow:visible;padding:0;border-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".r2avt6e:focus{outline-style:none;}",".r2avt6e:focus-visible{outline-style:none;}",".r2avt6e[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r2avt6e[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);}',".roj2bbc{overflow:visible;padding:0;border-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".roj2bbc:focus{outline-style:none;}",".roj2bbc:focus-visible{outline-style:none;}",".roj2bbc[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.roj2bbc[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){.r2avt6e[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){.roj2bbc[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),dN=e=>{"use no memo";const t=nX(),r=iX(),o=aX();return e.root.className=F(nB.root,t,!e.action&&o.rootWithoutAction,e.root.className),e.action&&(e.action.className=F(nB.action,r,e.action.className)),e},lX=(e,t)=>{const{action:r}=e,o=tn(a=>a.modalType),n=sX();return{components:{root:"h2",action:"div"},root:me($e("h2",{ref:t,id:tn(a=>a.dialogTitleId),...e}),{elementType:"h2"}),action:ke(r,{renderByDefault:o==="non-modal",defaultProps:{children:m.createElement(Ia,{disableButtonEnhancement:!0,action:"close"},m.createElement("button",{type:"button",className:n,"aria-label":"close"},m.createElement(Ii,null)))},elementType:"div"})}},cX=e=>Ie(m.Fragment,{children:[G(e.root,{children:e.root.children}),e.action&&G(e.action,{})]}),uc=m.forwardRef((e,t)=>{const r=lX(e,t);return dN(r),xe("useDialogTitleStyles_unstable")(r),cX(r)});uc.displayName="DialogTitle";const aB=MO,fN=(e,t)=>{const r=dg(),o=tn(B=>B.modalType),n=tn(B=>B.isNestedDialog),a=OK(),i=a??n,l=tn(B=>B.modalAttributes),d=tn(B=>B.dialogRef),f=tn(B=>B.requestOpenChange),p=tn(B=>B.dialogTitleId),h=tn(B=>B.open),v=tn(B=>B.unmountOnClose),y=de(B=>{if(Kb(e.backdrop)){var C,z;(C=(z=e.backdrop).onClick)===null||C===void 0||C.call(z,B)}o==="modal"&&!B.isDefaultPrevented()&&f({event:B,open:!1,type:"backdropClick"})}),x=de(B=>{var C;(C=e.onKeyDown)===null||C===void 0||C.call(e,B),B.key===Wn&&!B.isDefaultPrevented()&&(f({event:B,open:!1,type:"escapeKeyDown"}),B.preventDefault())}),b=ke(e.backdrop,{renderByDefault:o!=="non-modal",defaultProps:{"aria-hidden":"true"},elementType:"div"}),k=b?.appearance;b&&(b.onClick=y,delete b.appearance);const{disableBodyScroll:S,enableBodyScroll:N}=EK();return $t(()=>{if(!h){N();return}if(!(n||o==="non-modal"))return S(),()=>N()},[h,o,n,S,N]),{components:{backdrop:"div",root:"div",backdropMotion:aB},open:h,backdrop:b,isNestedDialog:n,treatBackdropAsNested:i,backdropAppearance:k,unmountOnClose:v,mountNode:e.mountNode,root:me($e("div",{tabIndex:-1,role:o==="alert"?"alertdialog":"dialog","aria-modal":o!=="non-modal","aria-labelledby":e["aria-label"]?void 0:p,"aria-hidden":!v&&!h?!0:void 0,...e,...l,onKeyDown:x,ref:Le(t,r,d)}),{elementType:"div"}),backdropMotion:zd(e.backdropMotion,{elementType:aB,defaultProps:{appear:v,visible:h}}),transitionStatus:void 0}},pN=(e,t)=>Ie(ma,{mountNode:e.mountNode,children:[e.backdrop&&e.backdropMotion&&G(e.backdropMotion,{children:G(e.backdrop,{})}),G(FC,{children:G(cN,{value:t.dialogSurface,children:G(e.root,{})})})]}),iB={root:"fui-DialogSurface",backdrop:"fui-DialogSurface__backdrop"},uX=Be("r1u3t6p6","r5coedp",{r:[".r1u3t6p6{inset:0;padding:24px;margin:auto;border-style:none;overflow:unset;border:1px solid var(--colorTransparentStroke);border-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;max-height:100dvh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);box-shadow:var(--shadow64);}",".r1u3t6p6:focus{outline-style:none;}",".r1u3t6p6:focus-visible{outline-style:none;}",".r1u3t6p6[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1u3t6p6[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);}',".r5coedp{inset:0;padding:24px;margin:auto;border-style:none;overflow:unset;border:1px solid var(--colorTransparentStroke);border-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;max-height:100dvh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);box-shadow:var(--shadow64);}",".r5coedp:focus{outline-style:none;}",".r5coedp:focus-visible{outline-style:none;}",".r5coedp[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r5coedp[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){.r1u3t6p6[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media screen and (max-width: 480px){.r1u3t6p6{max-width:100vw;}}","@media screen and (max-height: 359px){.r1u3t6p6{overflow-y:auto;padding-right:calc(24px - 4px);border-right-width:4px;border-top-width:4px;border-bottom-width:4px;}}","@media (forced-colors: active){.r5coedp[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}","@media screen and (max-width: 480px){.r5coedp{max-width:100vw;}}","@media screen and (max-height: 359px){.r5coedp{overflow-y:auto;padding-left:calc(24px - 4px);border-left-width:4px;border-top-width:4px;border-bottom-width:4px;}}"]}),dX=Be("r1e18s3l",null,[".r1e18s3l{inset:0px;background-color:var(--colorBackgroundOverlay);position:fixed;}"]),fX=Y({nestedDialogBackdrop:{De3pzq:"f1c21dwh"},dialogHidden:{Bkecrkj:"f1aehjj5"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1aehjj5{pointer-events:none;}"]}),pX=e=>{"use no memo";const{root:t,backdrop:r,open:o,unmountOnClose:n,treatBackdropAsNested:a,backdropAppearance:i}=e,l=uX(),d=dX(),f=fX(),p=i?i==="transparent":a,h=!n&&!o;return t.className=F(iB.root,l,h&&f.dialogHidden,t.className),r&&(r.className=F(iB.backdrop,d,h&&f.dialogHidden,p&&f.nestedDialogBackdrop,r.className)),e};function mN(e){return{dialogSurface:!0}}const Is=m.forwardRef((e,t)=>{const r=fN(e,t),o=mN();return pX(r),xe("useDialogSurfaceStyles_unstable")(r),pN(r,o)});Is.displayName="DialogSurface";const mX=(e,t)=>{var r;return{components:{root:"div"},root:me($e((r=e.as)!==null&&r!==void 0?r:"div",{ref:t,...e}),{elementType:"div"})}},gX=e=>G(e.root,{}),hX={root:"fui-DialogContent"},vX=Be("r1v5zwsm",null,{r:[".r1v5zwsm{padding:var(--strokeWidthThick);margin:calc(var(--strokeWidthThick) * -1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);overflow-y:auto;min-height:32px;box-sizing:border-box;grid-row-start:2;grid-row-end:2;grid-column-start:1;grid-column-end:4;}"],s:["@media screen and (max-height: 359px){.r1v5zwsm{overflow-y:unset;}}"]}),bX=e=>{"use no memo";const t=vX();return e.root.className=F(hX.root,t,e.root.className),e},dc=m.forwardRef((e,t)=>{const r=mX(e,t);return bX(r),xe("useDialogContentStyles_unstable")(r),gX(r)});dc.displayName="DialogContent";const gN=Vn(void 0),yX={size:"medium",handleToggleButton:()=>null,handleRadio:()=>null,vertical:!1,checkedValues:{}},xX=e=>pa(gN,(t=yX)=>e(t)),wX=(e,t)=>{const{size:r="medium"}=e,o=kX(e,t),n=BX();return{size:r,...o,root:{...o.root,...n}}},kX=(e,t)=>{const{vertical:r=!1}=e,o={vertical:r,components:{root:"div"},root:me($e("div",{role:"toolbar",ref:t,...r&&{"aria-orientation":"vertical"},...e}),{elementType:"div"})},[n,a]=SX({checkedValues:e.checkedValues,defaultCheckedValues:e.defaultCheckedValues,onCheckedValueChange:e.onCheckedValueChange}),i=de((d,f,p,h)=>{if(f&&p){const y=[...n?.[f]||[]];h?y.splice(y.indexOf(p),1):y.push(p),a?.(d,{name:f,checkedItems:y})}}),l=de((d,f,p,h)=>{f&&p&&a?.(d,{name:f,checkedItems:[p]})});return{...o,handleToggleButton:i,handleRadio:l,checkedValues:n??{}}},SX=e=>{const[t,r]=Xt({state:e.checkedValues,defaultState:e.defaultCheckedValues,initialState:{}}),{onCheckedValueChange:o}=e,n=de((a,{name:i,checkedItems:l})=>{o&&o(a,{name:i,checkedItems:l}),r(d=>d?{...d,[i]:l}:{[i]:l})});return[t,n]},BX=()=>Ho({circular:!0,axis:"both"}),jX=(e,t)=>G(gN.Provider,{value:t.toolbar,children:G(e.root,{children:e.root.children})}),CX={root:"fui-Toolbar"},NX=Y({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1yqiaad"},vertical:{Beiy3e4:"f1vx9l62",a9b677:"f1acs6jw"},small:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fvz760z"},medium:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1yqiaad"},large:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1ms6bdn"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",[".f1yqiaad{padding:4px 8px;}",{p:-1}],".f1vx9l62{flex-direction:column;}",".f1acs6jw{width:fit-content;}",[".fvz760z{padding:0px 4px;}",{p:-1}],[".f1yqiaad{padding:4px 8px;}",{p:-1}],[".f1ms6bdn{padding:4px 20px;}",{p:-1}]]}),zX=e=>{"use no memo";const t=NX(),{vertical:r,size:o}=e;return e.root.className=F(CX.root,t.root,r&&t.vertical,o==="small"&&!r&&t.small,o==="medium"&&!r&&t.medium,o==="large"&&!r&&t.large,e.root.className),e};function TX(e){const{size:t,handleToggleButton:r,vertical:o,checkedValues:n,handleRadio:a}=e;return{toolbar:m.useMemo(()=>({size:t,vertical:o,handleToggleButton:r,handleRadio:a,checkedValues:n}),[t,o,r,a,n])}}const hN=m.forwardRef((e,t)=>{const r=wX(e,t),o=TX(r);return zX(r),xe("useToolbarStyles_unstable")(r),jX(r,o)});hN.displayName="Toolbar";const _X=Y({vertical:{Beiy3e4:"f1vx9l62"},verticalIcon:{Be2twd7:"f1rt2boy",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao"}},{d:[".f1vx9l62{flex-direction:column;}",".f1rt2boy{font-size:24px;}",[".f1s184ao{margin:0;}",{p:-1}]]}),RX=e=>{"use no memo";const t=_X();e.root.className=F(e.vertical&&t.vertical,e.root.className),e.icon&&(e.icon.className=F(e.vertical&&t.verticalIcon,e.icon.className)),_d(e)},DX=(e,t)=>{const{appearance:r="subtle",...o}=e,n=EX(o,t);return{appearance:r,size:"medium",shape:"rounded",...n}},EX=(e,t)=>{const{vertical:r=!1,...o}=e,n=Ry(o,t);return{vertical:r,...n}},xu=m.forwardRef((e,t)=>{const r=DX(e,t);return RX(r),xe("useToolbarButtonStyles_unstable")(r),bg(r)});xu.displayName="ToolbarButton";const PX=Y({root:{mc9l5x:"ftuwxu6",B2u0y6b:"f1lwjmbk",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1oic3e7"},vertical:{B2u0y6b:"fe668z"}},{d:[".ftuwxu6{display:inline-flex;}",".f1lwjmbk{max-width:1px;}",[".f1oic3e7{padding:0 12px;}",{p:-1}],".fe668z{max-width:initial;}"]}),MX=e=>{"use no memo";A6(e);const{vertical:t}=e,r=PX();return e.root.className=F(r.root,!t&&r.vertical,e.root.className),e},qX=(e,t)=>({alignContent:"center",appearance:"default",inset:!1,...FX(e,t)}),FX=(e,t)=>{const r=xX(o=>o.vertical);return I6({vertical:!r,...e},t)},pm=m.forwardRef((e,t)=>{const r=qX(e,t);return MX(r),xe("useToolbarDividerStyles_unstable")(r),F6(r)});pm.displayName="ToolbarDivider";const lu=()=>{},vN={allRowsSelected:!1,clearRows:lu,deselectRow:lu,isRowSelected:()=>!1,selectRow:lu,selectedRows:new Set,someRowsSelected:!1,toggleAllRows:lu,toggleRow:lu,selectionMode:"multiselect"};function IX(e){"use no memo";return t=>AX(t,e)}function AX(e,t){const{items:r,getRowId:o}=e,{selectionMode:n,defaultSelectedItems:a,selectedItems:i,onSelectionChange:l}=t,[d,f]=GP({selectionMode:n,defaultSelectedItems:a,selectedItems:i,onSelectionChange:l}),p=m.useMemo(()=>{const B=new Set;for(let z=0;z<r.length;z++){var C;B.add((C=o?.(r[z]))!==null&&C!==void 0?C:z)}return B},[r,o]),h=m.useMemo(()=>{if(n==="single"){const C=Array.from(d)[0];return p.has(C)}if(d.size<p.size||p.size===0)return!1;let B=!0;return p.forEach(C=>{d.has(C)||(B=!1)}),B},[p,d,n]),v=m.useMemo(()=>{if(d.size<=0)return!1;let B=!1;return p.forEach(C=>{d.has(C)&&(B=!0)}),B},[p,d]),y=de(B=>{f.toggleAllItems(B,r.map((C,z)=>{var R;return(R=o?.(C))!==null&&R!==void 0?R:z}))}),x=de((B,C)=>f.toggleItem(B,C)),b=de((B,C)=>f.deselectItem(B,C)),k=de((B,C)=>f.selectItem(B,C)),S=B=>f.isSelected(B),N=de(B=>f.clearItems(B));return{...e,selection:{selectionMode:n,someRowsSelected:v,allRowsSelected:h,selectedRows:d,toggleRow:x,toggleAllRows:y,clearRows:N,deselectRow:b,selectRow:k,isRowSelected:S}}}const O1=()=>{},bN={getSortDirection:()=>"ascending",setColumnSort:O1,sort:e=>[...e],sortColumn:void 0,sortDirection:"ascending",toggleColumnSort:O1};function OX(e){"use no memo";return t=>LX(t,e)}function LX(e,t){const{columns:r}=e,{sortState:o,defaultSortState:n,onSortChange:a=O1}=t,[i,l]=Xt({initialState:{sortDirection:"ascending",sortColumn:void 0},defaultState:n,state:o}),{sortColumn:d,sortDirection:f}=i,p=de(a),h=m.useCallback((b,k)=>{l(S=>{const N={...S,sortColumn:k};return S.sortColumn===k?N.sortDirection=S.sortDirection==="ascending"?"descending":"ascending":N.sortDirection="ascending",p?.(b,N),N})},[p,l]),v=(b,k,S)=>{const N={sortColumn:k,sortDirection:S};p?.(b,N),l(N)},y=m.useCallback(b=>b.slice().sort((k,S)=>{const N=r.find(C=>C.columnId===d);if(!N?.compare)return 0;const B=f==="ascending"?1:-1;return N.compare(k.item,S.item)*B}),[r,d,f]);return{...e,sort:{sort:y,sortColumn:d,sortDirection:f,setColumnSort:v,toggleColumnSort:h,getSortDirection:b=>d===b?f:void 0}}}const $X=(e,t)=>{const r=de(o=>{var n;(n=e.onClick)===null||n===void 0||n.call(e,o),o.stopPropagation()});return{components:{root:"div"},root:me($e("div",{ref:t,...e,onClick:r}),{elementType:"div"})}},HX=e=>G(e.root,{}),VX={root:"fui-TableResizeHandle"},WX=Y({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;}"]}),UX=e=>{"use no memo";const t=WX();return e.root.className=F(VX.root,t.root,e.root.className),e},yN=m.forwardRef((e,t)=>{const r=$X(e,t);return UX(r),xe("useTableResizeHandleStyles_unstable")(r),HX(r)});yN.displayName="TableResizeHandle";function GX(){const[e,t]=m.useState(0),r=m.useRef(void 0),o=m.useRef(null),{targetDocument:n}=Ve(),a=m.useCallback(()=>{var l;const d=(l=r.current)===null||l===void 0?void 0:l.getBoundingClientRect().width;t(d||0)},[]),i=m.useCallback(l=>{if(n&&(!l&&o.current&&r.current&&o.current.unobserve(r.current),r.current=void 0,l?.parentElement)){var d;r.current=l.parentElement,a(),(d=o.current)===null||d===void 0||d.observe(r.current)}},[n,a]);return m.useEffect(()=>{if(o.current=ZX(n,a),!(!r.current||!o.current))return o.current.observe(r.current),()=>{var l;(l=o.current)===null||l===void 0||l.disconnect()}},[a,n]),{width:e,measureElementRef:i}}function ZX(e,t){var r;return!(e==null||(r=e.defaultView)===null||r===void 0)&&r.ResizeObserver?new e.defaultView.ResizeObserver(t):null}function KX(e){const t=m.useRef(0),r=m.useRef(0),o=m.useRef(void 0),[n,a]=m.useState(!1),{targetDocument:i}=Ve(),{getColumnWidth:l,setColumnWidth:d}=e,f=m.useCallback(x=>{const{clientX:b}=a2(x),k=b-t.current;r.current+=k,o.current&&d(x,{columnId:o.current,width:r.current}),t.current=b},[d]),[p]=Vu(),h=m.useCallback(x=>{p(()=>f(x))},[p,f]),v=m.useCallback(x=>{h1(x)&&(i?.removeEventListener("mouseup",v),i?.removeEventListener("mousemove",h)),g1(x)&&(i?.removeEventListener("touchend",v),i?.removeEventListener("touchmove",h)),a(!1)},[h,i]);return{getOnMouseDown:m.useCallback(x=>b=>{if(r.current=l(x),t.current=a2(b).clientX,o.current=x,h1(b)){if(b.target!==b.currentTarget||b.button!==0)return;i?.addEventListener("mouseup",v),i?.addEventListener("mousemove",h),a(!0)}g1(b)&&(i?.addEventListener("touchend",v),i?.addEventListener("touchmove",h),a(!0))},[l,h,v,i]),dragging:n}}const XX=150,YX=100;function L1(e,t=[],r={}){let o=!1;const n=new Map(t.map(i=>[i.columnId,i])),a=e.map(i=>{const l=n.get(i.columnId);if(l){var d;const{idealWidth:x=l.idealWidth,minWidth:b=l.minWidth,padding:k=l.padding}=(d=r[i.columnId])!==null&&d!==void 0?d:{};return x!==l.idealWidth||b!==l.minWidth||k!==l.padding?(o=!0,{...l,idealWidth:x,width:x,minWidth:b,padding:k}):l}var f;const{defaultWidth:p,idealWidth:h=XX,minWidth:v=YX,padding:y}=(f=r[i.columnId])!==null&&f!==void 0?f:{};return o=!0,{columnId:i.columnId,width:Math.max(p??h,v),minWidth:v,idealWidth:Math.max(p??h,v),padding:y??16}});if(a.length!==t.length||o){const i=a.find(l=>l.width>l.idealWidth);i&&(i.width=i.idealWidth),o=!0}return o?a:t}function Ju(e,t){return e.find(r=>r.columnId===t)}function mv(e,t){return e[t]}function JX(e){return e.reduce((t,r)=>t+r.width+r.padding,0)}function QX(e,t){const r=Ju(e,t);var o;return(o=r?.width)!==null&&o!==void 0?o:0}function Tu(e,t,r,o){const n=Ju(e,t);if(!n||n?.[r]===o)return e;const a={...n,[r]:o};return e.reduce((l,d)=>d.columnId===a.columnId?[...l,a]:[...l,d],[])}function dp(e,t){let r=e;const o=JX(r);if(o<t){let n=t-o,a=0;for(;a<r.length&&n>0;){const i=mv(r,a);if(!i)break;const l=Math.min(i.idealWidth-i.width,n);if(r=Tu(r,i.columnId,"width",i.width+l),n-=l,a===r.length-1&&n!==0){const d=mv(r,a);d&&(r=Tu(r,d.columnId,"width",d.width+n))}a++}}else if(o>=t){let n=o-t,a=r.length-1;for(;a>=0&&n>0;){const i=mv(r,a);if(!i){a--;continue}if(i.width>i.minWidth){const l=Math.min(i.width-i.minWidth,n);n-=l,r=Tu(r,i.columnId,"width",i.width-l)}a--}}return r}const eY=e=>(t,r)=>{switch(r.type){case"CONTAINER_WIDTH_UPDATED":return{...t,containerWidth:r.containerWidth,columnWidthState:e?dp(t.columnWidthState,r.containerWidth):t.columnWidthState};case"COLUMNS_UPDATED":const o=L1(r.columns,t.columnWidthState,t.columnSizingOptions);return{...t,columns:r.columns,columnWidthState:e?dp(o,t.containerWidth):o};case"COLUMN_SIZING_OPTIONS_UPDATED":const n=L1(t.columns,t.columnWidthState,r.columnSizingOptions);return{...t,columnSizingOptions:r.columnSizingOptions,columnWidthState:e?dp(n,t.containerWidth):n};case"SET_COLUMN_WIDTH":const{columnId:a,width:i}=r,{containerWidth:l}=t,d=Ju(t.columnWidthState,a);let f=[...t.columnWidthState];return d?(f=Tu(f,a,"width",i),f=Tu(f,a,"idealWidth",i),e&&(f=dp(f,l)),{...t,columnWidthState:f}):t}};function tY(e,t,r={}){const{onColumnResize:o,columnSizingOptions:n,autoFitColumns:a=!0}=r,i=m.useMemo(()=>eY(a),[a]),[l,d]=m.useReducer(i,{columns:e,containerWidth:0,columnWidthState:L1(e,void 0,n),columnSizingOptions:n});$t(()=>{d({type:"CONTAINER_WIDTH_UPDATED",containerWidth:t})},[t]),$t(()=>{d({type:"COLUMNS_UPDATED",columns:e})},[e]),$t(()=>{d({type:"COLUMN_SIZING_OPTIONS_UPDATED",columnSizingOptions:n})},[n]);const f=de((p,h)=>{let{width:v}=h;const{columnId:y}=h,x=Ju(l.columnWidthState,y);x&&(v=Math.max(x.minWidth||0,v),o&&o(p,{columnId:y,width:v}),d({type:"SET_COLUMN_WIDTH",columnId:y,width:v}))});return{getColumnById:m.useCallback(p=>Ju(l.columnWidthState,p),[l.columnWidthState]),getColumns:m.useCallback(()=>l.columnWidthState,[l.columnWidthState]),getColumnWidth:m.useCallback(p=>QX(l.columnWidthState,p),[l.columnWidthState]),setColumnWidth:f}}const fp=20,rY=xI,sB=1/4;function oY(e){const[t,r]=m.useState(),o=m.useRef(void 0),{findPrevFocusable:n}=hn(),a=m.useRef(e);m.useEffect(()=>{a.current=e},[e]);const[i]=m.useState(()=>new Map),l=de(y=>{if(!t)return;const x=a.current.getColumnWidth(t),b=y.getModifierState(rY),k=()=>{y.preventDefault(),y.stopPropagation()};switch(y.key){case Ps:k(),a.current.setColumnWidth(y.nativeEvent,{columnId:t,width:x-(b?fp*sB:fp)});return;case Ms:k(),a.current.setColumnWidth(y.nativeEvent,{columnId:t,width:x+(b?fp*sB:fp)});return;case ro:case kr:case Wn:var S,N;k(),(N=i.get(t))===null||N===void 0||(S=N.current)===null||S===void 0||S.blur();break}}),d=m.useCallback(y=>{var x,b;r(y),(x=o.current)===null||x===void 0||x.call(o,y,!0);const k=(b=i.get(y))===null||b===void 0?void 0:b.current;k&&(k.setAttribute("tabindex","-1"),k.tabIndex=-1,k.focus())},[i]),f=m.useCallback(()=>{var y,x;if(!t)return;(y=o.current)===null||y===void 0||y.call(o,t,!1);const b=(x=i.get(t))===null||x===void 0?void 0:x.current;if(b){var k;(k=n(b))===null||k===void 0||k.focus(),b.removeAttribute("tabindex")}r(void 0)},[t,n,i]),p=(y,x)=>{o.current=x,t?y&&t!==y?(d(y),r(y)):f():d(y)},h=m.useCallback(y=>{const x=i.get(y)||m.createRef();return i.set(y,x),x},[i]),v=Bs({focusable:{ignoreKeydown:{ArrowLeft:!0,ArrowRight:!0}}});return{toggleInteractiveMode:p,columnId:t,getKeyboardResizingProps:m.useCallback((y,x)=>({onKeyDown:l,onBlur:f,ref:h(y),role:"separator","aria-label":"Resize column","aria-valuetext":`${x} pixels`,"aria-hidden":y!==t,tabIndex:y===t?0:void 0,...v}),[t,f,h,l,v])}}const xN={getColumnWidths:()=>[],getOnMouseDown:()=>()=>null,setColumnWidth:()=>null,getTableProps:()=>({}),getTableHeaderCellProps:()=>({style:{},columnId:""}),getTableCellProps:()=>({style:{},columnId:""}),enableKeyboardMode:()=>()=>null};function nY(e){"use no memo";return t=>aY(t,{autoFitColumns:!0,...e})}function lB(e,t){const r=e.width;return{width:r,minWidth:r,maxWidth:r,...t?{pointerEvents:"none"}:{}}}function aY(e,t={}){const{columns:r}=e,{width:o,measureElementRef:n}=GX(),a=tY(r,o+(t?.containerWidthOffset||0),t),i=KX(a),{toggleInteractiveMode:l,getKeyboardResizingProps:d}=oY(a),{autoFitColumns:f}=t,p=m.useCallback((k,S)=>N=>{N.preventDefault(),N.nativeEvent.stopPropagation(),l(k,S)},[l]),{getColumnById:h,setColumnWidth:v,getColumns:y}=a,{getOnMouseDown:x,dragging:b}=i;return{...e,tableRef:n,columnSizing_unstable:{getOnMouseDown:x,setColumnWidth:(k,S)=>v(void 0,{columnId:k,width:S}),getColumnWidths:y,getTableProps:(k={})=>({...k,style:{minWidth:"fit-content",...k.style||{}}}),getTableHeaderCellProps:m.useCallback(k=>{var S;const N=h(k),C=((S=r[r.length-1])===null||S===void 0?void 0:S.columnId)===k&&f?null:m.createElement(yN,{onMouseDown:x(k),onTouchStart:x(k),...d(k,N?.width||0)});return N?{style:lB(N,b),aside:C}:{}},[h,r,b,d,x,f]),getTableCellProps:m.useCallback(k=>{const S=h(k);return S?{style:lB(S)}:{}},[h]),enableKeyboardMode:p}}}const iY=e=>e,sY={selection:vN,sort:bN,getRows:()=>[],getRowId:()=>"",items:[],columns:[],columnSizing_unstable:xN,tableRef:m.createRef()};function lY(e,t=[]){const{items:r,getRowId:o,columns:n}=e,a=m.useCallback((l=iY)=>r.map((d,f)=>{var p;return l({item:d,rowId:(p=o?.(d))!==null&&p!==void 0?p:f})}),[r,o]),i={getRowId:o,items:r,columns:n,getRows:a,selection:vN,sort:bN,columnSizing_unstable:xN,tableRef:m.createRef()};return t.reduce((l,d)=>d(l),i)}const cY=()=>0,uY=()=>null,dY=()=>null;function vs(e){const{columnId:t,renderCell:r=uY,renderHeaderCell:o=dY,compare:n=cY}=e;return{columnId:t,renderCell:r,renderHeaderCell:o,compare:n}}function fY(){const e=Ho({axis:"horizontal"}),t=Ho({axis:"grid"}),r=rc({tabBehavior:"limited-trap-focus"}),{findFirstFocusable:o}=hn(),{targetDocument:n}=Ve(),a=Vq(e,r);return{onTableKeyDown:m.useCallback(l=>{if(!n)return;let d=n.activeElement;if(!d||!l.currentTarget.contains(d))return;const f=d.getAttribute("role");if(l.key===Ms&&f==="row"&&qt(d)){var p;(p=o(d))===null||p===void 0||p.focus()}if(f==="row")return;const h=(()=>{let v=qt(d)?d:null;for(;v;){const y=v.getAttribute("role");if(y==="cell"||y==="gridcell")return!0;v=v.parentElement}return!1})();if(l.key===Ps&&h){d.dispatchEvent(new p2({action:Qp.Escape}));return}(l.key===Fi||l.key===ys)&&h&&(d.dispatchEvent(new p2({action:Qp.Escape})),d=n.activeElement,d&&d.dispatchEvent(new xM({key:fr[l.key]})))},[n,o]),tableTabsterAttribute:t,tableRowTabsterAttribute:a}}const wN=m.createContext(void 0),pY={size:"medium",noNativeElements:!1,sortable:!1},mY=wN.Provider,Ja=()=>{var e;return(e=m.useContext(wN))!==null&&e!==void 0?e:pY},Vy=(e,t)=>{const{noNativeElements:r,size:o}=Ja();var n;const a=((n=e.as)!==null&&n!==void 0?n:r)?"div":"td";return{components:{root:a},root:me($e(a,{ref:t,role:a==="div"?"cell":void 0,...e}),{elementType:a}),noNativeElements:r,size:o}},kN=e=>G(e.root,{}),gY="fui-TableCell",hY={root:gY},vY=Y({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;}"]}),bY=Y({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;}"]}),yY=Y({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}]]}),SN=e=>{"use no memo";const t=yY(),r={table:vY(),flex:bY()};return e.root.className=F(hY.root,t.root,e.noNativeElements?r.flex.root:r.table.root,e.noNativeElements?r.flex[e.size]:r.table[e.size],e.root.className),e},wi=m.forwardRef((e,t)=>{const r=Vy(e,t);return SN(r),xe("useTableCellStyles_unstable")(r),kN(r)});wi.displayName="TableCell";const BN=m.createContext(void 0),xY="",wY=BN.Provider,Wy=()=>m.useContext(BN)===xY,jN=(e,t)=>{const{noNativeElements:r,size:o}=Ja();var n;const a=((n=e.as)!==null&&n!==void 0?n:r)?"div":"tr",i=ry(),l=Es(),d=Wy();var f;return{components:{root:a},root:me($e(a,{ref:Le(t,i,l),role:a==="div"?"row":void 0,...e}),{elementType:a}),size:o,noNativeElements:r,appearance:(f=e.appearance)!==null&&f!==void 0?f:"none",isHeaderRow:d}},kY=e=>G(e.root,{}),gv={root:"fui-TableSelectionCell",checkboxIndicator:"fui-TableSelectionCell__checkboxIndicator",radioIndicator:"fui-TableSelectionCell__radioIndicator"},SY=Y({root:{mc9l5x:"f15pt5es",a9b677:"fksc0bp"}},{d:[".f15pt5es{display:table-cell;}",".fksc0bp{width:44px;}"]}),BY=Y({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;}"]}),jY=Y({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;}"]}),CY=e=>{"use no memo";const t=jY(),r={table:SY(),flex:BY()};return e.root.className=F(gv.root,t.root,e.noNativeElements?r.flex.root:r.table.root,e.subtle&&e.checked===!1&&t.subtle,e.hidden&&t.hidden,e.root.className),e.checkboxIndicator&&(e.checkboxIndicator.className=F(gv.checkboxIndicator,e.checkboxIndicator.className)),e.radioIndicator&&(e.radioIndicator.className=F(gv.radioIndicator,t.radioIndicator,e.radioIndicator.className)),e},NY="fui-TableRow",zY={root:NY},TY=Y({root:{mc9l5x:"f1u0rzck"}},{d:[".f1u0rzck{display:table-row;}"]}),_Y=Y({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}"]}),RY=Y({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",Bahaeuw:"f1v3eptx",F230oe:"f8gmj8i",Bdw8ktp:["f1ap8nzx","fjag8bx"],Bj1xduy:"f1igan7k",Bhh2cfd:["fjag8bx","f1ap8nzx"]},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",wmvzou:0,sc4o1m:0,wymq9i:0,u9orzk:0,puiv5t:0,Bosien3:0,b2z72d:0,Beulxaw:0,B57pkaw:0,Jcjdmf:0,B8qgbzl:0,Bbmb0sr:0,B14q8qp:0,Bcq6wej:0,Byz1pjr:0,kr9cjb:0,Ff9ifp:"f1msmgpi",Bmclvqj:0,psczho:0,B0tx59b:0,sk7i8k:0,zlwzm7:"fbo0xvd",Bkp2nk:"fjuvmhu",gy0h4g:"f1kvufhq"},neutral:{wmvzou:0,sc4o1m:0,wymq9i:0,u9orzk:0,puiv5t:0,Bosien3:0,b2z72d:0,Beulxaw:0,B57pkaw:0,Jcjdmf:0,B8qgbzl:0,Bbmb0sr:0,B14q8qp:0,Bcq6wej:0,Byz1pjr:0,kr9cjb:0,Ff9ifp:"f1msmgpi",Bmclvqj:0,psczho:0,B0tx59b:0,sk7i8k:0,zlwzm7:"fbo0xvd",Bkp2nk:"fjuvmhu",gy0h4g:"f1kvufhq",De3pzq:"fq5gl1p",sj55zd:"f1cgsbmv",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;}"],m:[["@media (forced-colors: active){.f1v3eptx:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f8gmj8i:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ap8nzx:hover{border-right-color:Highlight;}.fjag8bx:hover{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1igan7k:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1msmgpi{border:2px solid transparent;}}",{p:-2,m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbo0xvd{border-radius:var(--borderRadiusMedium);}}",{p:-1,m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjuvmhu{box-sizing:border-box;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kvufhq:focus-visible{outline-offset:-4px;}}",{m:"(forced-colors: active)"}]]}),CN=e=>{"use no memo";const t=RY(),r={table:TY(),flex:_Y()};return e.root.className=F(zY.root,t.root,!e.isHeaderRow&&t.rootInteractive,t[e.size],e.noNativeElements?r.flex.root:r.table.root,t[e.appearance],e.root.className),e},mm=m.forwardRef((e,t)=>{const r=jN(e,t);return CN(r),xe("useTableRowStyles_unstable")(r),kY(r)});mm.displayName="TableRow";const NN=(e,t)=>{const{noNativeElements:r}=Ja();var o;const n=((o=e.as)!==null&&o!==void 0?o:r)?"div":"tbody";return{components:{root:n},root:me($e(n,{ref:t,role:n==="div"?"rowgroup":void 0,...e}),{elementType:n}),noNativeElements:r}},DY=e=>G(e.root,{}),EY=Y({root:{mc9l5x:"f1tp1avn"}},{d:[".f1tp1avn{display:table-row-group;}"]}),PY=Y({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),MY="fui-TableBody",zN=e=>{"use no memo";const t={table:EY(),flex:PY()};return e.root.className=F(MY,e.noNativeElements?t.flex.root:t.table.root,e.root.className),e},TN=m.forwardRef((e,t)=>{const r=NN(e,t);return zN(r),xe("useTableBodyStyles_unstable")(r),DY(r)});TN.displayName="TableBody";const _N=(e,t)=>{var r;const o=((r=e.as)!==null&&r!==void 0?r:e.noNativeElements)?"div":"table";var n,a,i;return{components:{root:o},root:me($e(o,{ref:t,role:o==="div"?"table":void 0,...e}),{elementType:o}),size:(n=e.size)!==null&&n!==void 0?n:"medium",noNativeElements:(a=e.noNativeElements)!==null&&a!==void 0?a:!1,sortable:(i=e.sortable)!==null&&i!==void 0?i:!1}},RN=(e,t)=>G(mY,{value:t.table,children:G(e.root,{})}),qY="fui-Table",FY=Y({root:{mc9l5x:"f1w4nmp0",ha4doy:"fmrv4ls",a9b677:"fly5x3f",B73mfa3:"f14m3nip"}},{d:[".f1w4nmp0{display:table;}",".fmrv4ls{vertical-align:middle;}",".fly5x3f{width:100%;}",".f14m3nip{table-layout:fixed;}"]}),IY=Y({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),AY=Y({root:{po53p8:"fgkb47j",De3pzq:"fhovq9v"}},{d:[".fgkb47j{border-collapse:collapse;}",".fhovq9v{background-color:var(--colorSubtleBackground);}"]}),DN=e=>{"use no memo";const t=AY(),r={table:FY(),flex:IY()};return e.root.className=F(qY,t.root,e.noNativeElements?r.flex.root:r.table.root,e.root.className),e};function EN(e){const{size:t,noNativeElements:r,sortable:o}=e;return{table:m.useMemo(()=>({noNativeElements:r,size:t,sortable:o}),[r,t,o])}}const PN=m.forwardRef((e,t)=>{const r=_N(e,t);return DN(r),xe("useTableStyles_unstable")(r),RN(r,EN(r))});PN.displayName="Table";const MN=(e,t)=>{const{noNativeElements:r}=Ja();var o;const n=((o=e.as)!==null&&o!==void 0?o:r)?"div":"thead";return{components:{root:n},root:me($e(n,{ref:t,role:n==="div"?"rowgroup":void 0,...e}),{elementType:n}),noNativeElements:r}},qN=e=>G(wY,{value:"",children:G(e.root,{})}),OY="fui-TableHeader",LY=Y({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),$Y=Y({root:{mc9l5x:"f1tp1avn"}},{d:[".f1tp1avn{display:table-row-group;}"]}),FN=e=>{"use no memo";const t={table:$Y(),flex:LY()};return e.root.className=F(OY,e.noNativeElements?t.flex.root:t.table.root,e.root.className),e},IN=m.forwardRef((e,t)=>{const r=MN(e,t);return FN(r),xe("useTableHeaderStyles_unstable")(r),qN(r)});IN.displayName="TableHeader";const HY={ascending:m.createElement(dC,{fontSize:12}),descending:m.createElement(uC,{fontSize:12})},AN=(e,t)=>{const{noNativeElements:r,sortable:o}=Ja(),{sortable:n=o}=e;var a;const i=((a=e.as)!==null&&a!==void 0?a:r)?"div":"th",l=me(e.button,{elementType:"div",defaultProps:{as:"div"}}),d=La(l.as,l);var f;return{components:{root:i,button:"div",sortIcon:"span",aside:"span"},root:me($e(i,{ref:Le(t,Es()),role:i==="div"?"columnheader":void 0,"aria-sort":n?(f=e.sortDirection)!==null&&f!==void 0?f:"none":void 0,...e}),{elementType:i}),aside:ke(e.aside,{elementType:"span"}),sortIcon:ke(e.sortIcon,{renderByDefault:!!e.sortDirection,defaultProps:{children:e.sortDirection?HY[e.sortDirection]:void 0},elementType:"span"}),button:n?d:l,sortable:n,noNativeElements:r}},ON=e=>Ie(e.root,{children:[Ie(e.button,{children:[e.root.children,e.sortIcon&&G(e.sortIcon,{})]}),e.aside&&G(e.aside,{})]}),pp={root:"fui-TableHeaderCell",button:"fui-TableHeaderCell__button",sortIcon:"fui-TableHeaderCell__sortIcon",aside:"fui-TableHeaderCell__aside"},VY=Y({root:{mc9l5x:"f15pt5es",ha4doy:"fmrv4ls"}},{d:[".f15pt5es{display:table-cell;}",".fmrv4ls{vertical-align:middle;}"]}),WY=Y({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;}"]}),UY=Y({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);}"]}),LN=e=>{"use no memo";const t=UY(),r={table:VY(),flex:WY()};return e.root.className=F(pp.root,t.root,e.sortable&&t.rootInteractive,e.noNativeElements?r.flex.root:r.table.root,e.root.className),e.button.className=F(pp.button,t.resetButton,t.button,e.sortable&&t.sortable,e.button.className),e.sortIcon&&(e.sortIcon.className=F(pp.sortIcon,t.sortIcon,e.sortIcon.className)),e.aside&&(e.aside.className=F(pp.aside,t.resizeHandle,e.aside.className)),e},$1=m.forwardRef((e,t)=>{const r=AN(e,t);return LN(r),xe("useTableHeaderCellStyles_unstable")(r),ON(r)});$1.displayName="TableHeaderCell";const $N=m.createContext(void 0),GY="",HN=()=>{var e;return(e=m.useContext($N))!==null&&e!==void 0?e:GY},ZY=$N.Provider,VN=m.createContext(void 0),KY="",WN=()=>{var e;return(e=m.useContext(VN))!==null&&e!==void 0?e:KY},UN=VN.Provider,XY=(e,t)=>{const r=Vy(e,Le(t,Es())),{noNativeElements:o}=Ja(),{type:n="checkbox",checked:a=!1,subtle:i=!1,hidden:l=!1,invisible:d=!1}=e;return{...r,components:{...r.components,checkboxIndicator:Ra,radioIndicator:Fa},checkboxIndicator:ke(e.checkboxIndicator,{renderByDefault:n==="checkbox",defaultProps:{checked:e.checked},elementType:Ra}),radioIndicator:ke(e.radioIndicator,{renderByDefault:n==="radio"&&!d,defaultProps:{checked:!!a,input:{name:bt("table-selection-radio")}},elementType:Fa}),type:n,checked:a,noNativeElements:o,subtle:i,hidden:d||l}},YY=e=>Ie(e.root,{children:[e.type==="checkbox"&&e.checkboxIndicator&&G(e.checkboxIndicator,{}),e.type==="radio"&&e.radioIndicator&&G(e.radioIndicator,{})]}),JY={medium:32,small:24,"extra-small":20},QY=(e,t)=>{const{size:r}=Ja();return{components:{root:"div",main:"span",description:"span",content:"div",media:"span"},root:me($e("div",{ref:t,...e},["content"]),{elementType:"div"}),appearance:e.appearance,truncate:e.truncate,main:ke(e.main,{renderByDefault:!0,elementType:"span"}),media:ke(e.media,{elementType:"span"}),description:ke(e.description,{elementType:"span"}),content:ke(e.content,{renderByDefault:!!e.description||!!e.children,elementType:"div"}),avatarSize:JY[r],size:r}},eJ=(e,t)=>Ie(e.root,{children:[e.media&&G(ky,{value:t.avatar,children:G(e.media,{})}),e.content&&Ie(e.content,{children:[e.main&&G(e.main,{children:e.root.children}),e.description&&G(e.description,{})]})]}),cu={root:"fui-TableCellLayout",media:"fui-TableCellLayout__media",main:"fui-TableCellLayout__main",description:"fui-TableCellLayout__description",content:"fui-TableCellLayout__content"},tJ=Y({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59",i8kkvl:0,Belr9w4:0,rmohyg:"faqewft",xawz:0,Bh6795r:0,Bnnss6s:0,fkmc3a:"f1izfyrr"},rootTruncate:{B68tc82:"f1p9o1ba"},content:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62"},contentTruncate:{B68tc82:"f1p9o1ba"},media:{mc9l5x:"f22iagw",Bt984gj:"f122n59"},mediaExtraSmall:{Be2twd7:"f4ybsrx"},mediaSmallAndMedium:{Be2twd7:"fe5j1ua"},mediaPrimary:{Be2twd7:"f1rt2boy"},mainPrimary:{Bhrd7zp:"fl43uef"},mainTruncate:{B68tc82:"f1p9o1ba",Huce71:"fz5stix",ygn44y:"f1cmbuwj"},description:{sj55zd:"fkfq4zb",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",[".faqewft{gap:var(--spacingHorizontalS);}",{p:-1}],[".f1izfyrr{flex:1 1 0px;}",{p:-1}],".f1p9o1ba{overflow-x:hidden;}",".f1vx9l62{flex-direction:column;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fz5stix{white-space:nowrap;}",".f1cmbuwj{text-overflow:ellipsis;}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}"]}),rJ=e=>{"use no memo";const t=tJ(),{truncate:r}=e;e.root.className=F(cu.root,t.root,r&&t.rootTruncate,e.root.className);const o=e.appearance==="primary";if(e.media){const n={small:t.mediaSmallAndMedium,medium:t.mediaSmallAndMedium,"extra-small":t.mediaExtraSmall};e.media.className=F(cu.media,t.media,n[e.size],o&&t.mediaPrimary,e.media.className)}return e.main&&(e.main.className=F(cu.main,r&&t.mainTruncate,o&&t.mainPrimary,e.main.className)),e.description&&(e.description.className=F(cu.description,t.description,e.description.className)),e.content&&(e.content.className=F(cu.content,t.content,r&&t.contentTruncate,e.content.className)),e};function oJ(e){const{avatarSize:t}=e;return{avatar:m.useMemo(()=>({size:t}),[t])}}const Nl=m.forwardRef((e,t)=>{const r=QY(e,t);return rJ(r),xe("useTableCellLayoutStyles_unstable")(r),eJ(r,oJ(r))});Nl.displayName="TableCellLayout";const GN=Vn(void 0),ZN={...sY,subtleSelection:!1,selectableRows:!1,selectionAppearance:"brand",focusMode:"none",compositeRowTabsterAttribute:{}},nJ=GN.Provider,ir=e=>pa(GN,(t=ZN)=>e(t)),aJ=(e,t)=>{const{focusMode:r="cell"}=e,o=HN(),n=ir(d=>(d.focusMode==="cell"||d.focusMode==="composite")&&r!=="none"),a=ir(d=>d.resizableColumns),i=ir(d=>d.columnSizing_unstable.getTableCellProps),l=rc({tabBehavior:"limited-trap-focus"});return Vy({as:"div",role:"gridcell",...r==="group"&&l,tabIndex:n?0:void 0,...a?i(o):{},...e},t)},iJ=e=>kN(e),sJ={root:"fui-DataGridCell"},lJ=e=>{"use no memo";return SN(e),e.root.className=F(sJ.root,e.root.className),e},gm=m.forwardRef((e,t)=>{const r=aJ(e,t);return lJ(r),xe("useDataGridCellStyles_unstable")(r),iJ(r)});gm.displayName="DataGridCell";const cJ=(e,t)=>{const r=Wy(),o=WN(),n=ir(f=>f.subtleSelection),a=ir(f=>r&&f.selection.selectionMode==="multiselect"?f.selection.allRowsSelected?!0:f.selection.someRowsSelected?"mixed":!1:f.selection.isRowSelected(o)),i=ir(f=>f.selection.toggleAllRows),l=ir(f=>f.selection.selectionMode==="multiselect"?"checkbox":"radio"),d=de(f=>{var p;r&&i(f),(p=e.onClick)===null||p===void 0||p.call(e,f)});return XY({as:"div",role:"gridcell",checked:a,type:l,invisible:r&&l==="radio","aria-selected":a==="mixed"?void 0:a,subtle:n,radioIndicator:r?null:void 0,...e,onClick:d},t)},uJ=e=>YY(e),hv={root:"fui-DataGridSelectionCell",checkboxIndicator:"fui-DataGridSelectionCell__checkboxIndicator",radioIndicator:"fui-DataGridSelectionCell__radioIndicator"},dJ=e=>{"use no memo";return CY(e),e.root.className=F(hv.root,e.root.className),e.checkboxIndicator&&(e.checkboxIndicator.className=F(hv.checkboxIndicator,e.checkboxIndicator.className)),e.radioIndicator&&(e.radioIndicator.className=F(hv.radioIndicator,e.radioIndicator.className)),e},H1=m.forwardRef((e,t)=>{const r=cJ(e,t);return dJ(r),xe("useDataGridSelectionCellStyles_unstable")(r),uJ(r)});H1.displayName="DataGridSelectionCell";const KN=(e,t)=>{const r=WN(),o=Wy(),n=ir(b=>b.columns),a=ir(b=>b.selectableRows),i=ir(b=>b.selection.isRowSelected(r)),l=ir(b=>b.focusMode),d=ir(b=>b.compositeRowTabsterAttribute),f=l==="row_unstable"||l==="composite",p=ir(b=>!o&&a&&b.selection.isRowSelected(r)?b.selectionAppearance:"none"),h=ir(b=>b.selection.toggleRow),v=de(b=>{var k;a&&!o&&h(b,r),(k=e.onClick)===null||k===void 0||k.call(e,b)}),y=de(b=>{var k;a&&!o&&b.key===ro&&!$P(b.target)&&(b.preventDefault(),h(b,r)),(k=e.onKeyDown)===null||k===void 0||k.call(e,b)}),x=jN({appearance:p,"aria-selected":a?i:void 0,tabIndex:f&&!o?0:void 0,...l==="composite"&&!o&&d,...e,onClick:v,onKeyDown:y,children:null,as:"div"},t);return{...x,components:{...x.components,selectionCell:H1},selectionCell:ke(e.selectionCell,{renderByDefault:a,elementType:H1}),renderCell:e.children,columnDefs:n,dataGridContextValue:fJ()}};function fJ(){const e=m.useRef(ZN);return ir(t=>(e.current=t,null)),e.current}const XN=e=>Ie(e.root,{children:[e.selectionCell&&G(e.selectionCell,{}),e.columnDefs.map(t=>G(ZY,{value:t.columnId,children:e.renderCell(t,e.dataGridContextValue)},t.columnId))]}),cB={root:"fui-DataGridRow",selectionCell:"fui-DataGridRow__selectionCell"},pJ=Y({subtleSelection:{Bconypa:"f1jazu75",ff6mpl:"fw60kww"}},{d:[".f1jazu75[data-fui-focus-within]:focus-within .fui-TableSelectionCell{opacity:1;}"],h:[".fw60kww:hover .fui-TableSelectionCell{opacity:1;}"]}),YN=e=>{"use no memo";const t=ir(o=>o.subtleSelection),r=pJ();return CN(e),e.root.className=F(cB.root,e.root.className,t&&r.subtleSelection),e.selectionCell&&(e.selectionCell.className=F(cB.selectionCell,e.selectionCell.className)),e},V1=m.forwardRef((e,t)=>{const r=KN(e,t);return YN(r),xe("useDataGridRowStyles_unstable")(r),XN(r)});V1.displayName="DataGridRow";const JN=(e,t)=>{const{sortable:r}=Ja(),o=ir(l=>l.getRows),n=ir(l=>l.sort.sort),a=r?n(o()):o();return{...NN({...e,children:null,as:"div"},t),rows:a,renderRow:e.children}},mJ=e=>G(e.root,{children:e.rows.map(t=>G(UN,{value:t.rowId,children:e.renderRow(t)},t.rowId))}),gJ={root:"fui-DataGridBody"},QN=e=>{"use no memo";return zN(e),e.root.className=F(gJ.root,e.root.className),e},ez=m.forwardRef((e,t)=>{const r=JN(e,t);return QN(r),xe("useDataGridBodyStyles_unstable")(r),mJ(r)});ez.displayName="DataGridBody";const tz=(e,t)=>{const{items:r,columns:o,focusMode:n="cell",selectionMode:a,onSortChange:i,onSelectionChange:l,defaultSortState:d,sortState:f,selectedItems:p,defaultSelectedItems:h,subtleSelection:v=!1,selectionAppearance:y="brand",getRowId:x,resizableColumns:b,columnSizingOptions:k,onColumnResize:S,containerWidthOffset:N,resizableColumnsOptions:B={}}=e,C=N??(a?-44:0),z=Ho({axis:"grid"}),{onTableKeyDown:R,tableTabsterAttribute:E,tableRowTabsterAttribute:D}=fY();var I;const M=lY({items:r,columns:o,getRowId:x},[OX({defaultSortState:d,sortState:f,onSortChange:i}),IX({defaultSelectedItems:h,selectedItems:p,onSelectionChange:l,selectionMode:a??"multiselect"}),nY({onColumnResize:S,columnSizingOptions:k,containerWidthOffset:C,autoFitColumns:(I=B.autoFitColumns)!==null&&I!==void 0?I:!0})]),O=m.useRef(null),{findFirstFocusable:H,findLastFocusable:$}=hn(),Z=de(A=>{var X;if((X=e.onKeyDown)===null||X===void 0||X.call(e,A),n==="composite"&&R(A),!(!O.current||!A.ctrlKey||A.defaultPrevented)){if(A.key===sy){const ee=O.current.querySelector('[role="row"]');if(ee){var V;(V=H(ee))===null||V===void 0||V.focus()}}if(A.key===iy){const ee=O.current.querySelectorAll('[role="row"]');if(ee.length){var oe;const W=ee.item(ee.length-1);(oe=$(W))===null||oe===void 0||oe.focus()}}}});return{..._N({role:"grid",as:"div",noNativeElements:!0,...n==="cell"&&z,...n==="composite"&&E,...e,onKeyDown:Z,...b?M.columnSizing_unstable.getTableProps(e):{}},Le(t,M.tableRef,O)),focusMode:n,tableState:M,selectableRows:!!a,subtleSelection:v,selectionAppearance:y,resizableColumns:b,compositeRowTabsterAttribute:D}},rz=(e,t)=>m.createElement(nJ,{value:t.dataGrid},RN(e,t)),hJ={root:"fui-DataGrid"},oz=e=>{"use no memo";return DN(e),e.root.className=F(hJ.root,e.root.className),e};function nz(e){const t=EN(e),{tableState:r,focusMode:o,selectableRows:n,subtleSelection:a,selectionAppearance:i,resizableColumns:l,compositeRowTabsterAttribute:d}=e,f=m.useMemo(()=>({...r,focusMode:o,selectableRows:n,subtleSelection:a,selectionAppearance:i,resizableColumns:l,compositeRowTabsterAttribute:d}),[r,o,n,a,i,l,d]);return{...t,dataGrid:f}}const az=m.forwardRef((e,t)=>{const r=tz(e,t);return oz(r),xe("useDataGridStyles_unstable")(r),rz(r,nz(r))});az.displayName="DataGrid";const iz=(e,t)=>MN({...e,as:"div"},t),sz=e=>qN(e),vJ={root:"fui-DataGridHeader"},lz=e=>{"use no memo";return FN(e),e.root.className=F(vJ.root,e.root.className),e},cz=m.forwardRef((e,t)=>{const r=iz(e,t);return lz(r),xe("useDataGridHeaderStyles_unstable")(r),sz(r)});cz.displayName="DataGridHeader";function bJ(e){return e.compare.length>0}const yJ=(e,t)=>{const r=HN(),{sortable:o}=Ja(),n=ir(v=>v.sort.toggleColumnSort),a=ir(v=>{const y=!!v.columns.find(x=>x.columnId===r&&bJ(x));return o?y:!1}),i=ir(v=>a?v.sort.getSortDirection(r):void 0),l=ir(v=>v.resizableColumns),d=ir(v=>v.columnSizing_unstable.getTableHeaderCellProps),{focusMode:f=a?"none":"cell"}=e,p=rc({tabBehavior:"limited-trap-focus"}),h=de(v=>{var y;a&&n(v,r),(y=e.onClick)===null||y===void 0||y.call(e,v)});return AN({sortable:a,sortDirection:i,as:"div",tabIndex:f!=="none"?0:void 0,...f==="group"&&p,...l?d(r):{},...e,onClick:h},t)},xJ=e=>ON(e),mp={root:"fui-DataGridHeaderCell",button:"fui-DataGridHeaderCell__button",sortIcon:"fui-DataGridHeaderCell__sortIcon",aside:"fui-DataGridHeaderCell__aside"},wJ=e=>{"use no memo";return LN(e),e.root.className=F(mp.root,e.root.className),e.button&&(e.button.className=F(mp.button,e.button.className)),e.sortIcon&&(e.sortIcon.className=F(mp.sortIcon,e.sortIcon.className)),e.aside&&(e.aside.className=F(mp.aside,e.aside.className)),e},Uy=m.forwardRef((e,t)=>{const r=yJ(e,t);return wJ(r),xe("useDataGridHeaderCellStyles_unstable")(r),xJ(r)});Uy.displayName="DataGridHeaderCell";const kJ=(e,{referenceLabel:t,referenceId:r},o)=>{const{checkbox:n={},onSelectionChange:a,floatingAction:i,onClick:l,onKeyDown:d,disabled:f}=e,{findAllFocusable:p}=hn(),h=m.useRef(null),[v,y]=Xt({state:e.selected,defaultState:e.defaultSelected,initialState:!1}),x=[e.selected,e.defaultSelected,a].some(E=>typeof E<"u"),[b,k]=m.useState(!1),S=m.useCallback(E=>{if(!o.current)return!1;const D=p(o.current),I=E.target,M=D.some(H=>H.contains(I)),O=h?.current===I;return M&&!O},[o,p]),N=m.useCallback(E=>{if(f||S(E))return;const D=!v;y(D),a&&a(E,{selected:D})},[f,a,v,y,S]),B=m.useCallback(E=>{[kr].includes(E.key)&&(E.preventDefault(),N(E))},[N]),C=m.useMemo(()=>{if(!x||i)return;const E={};return r?E["aria-labelledby"]=r:t&&(E["aria-label"]=t),ke(n,{defaultProps:{ref:h,type:"checkbox",checked:v,disabled:f,onChange:D=>N(D),onFocus:()=>k(!0),onBlur:()=>k(!1),...E},elementType:"input"})},[n,f,i,v,x,N,r,t]),z=m.useMemo(()=>{if(i)return ke(i,{defaultProps:{ref:h},elementType:"div"})},[i]),R=m.useMemo(()=>x?{onClick:Re(l,N),onKeyDown:Re(d,B)}:null,[x,N,l,d,B]);return{selected:v,selectable:x,selectFocused:b,selectableCardProps:R,checkboxSlot:C,floatingActionSlot:z}},SJ=m.createContext(void 0),uB={selectableA11yProps:{referenceId:void 0}},BJ=SJ.Provider,jJ={off:void 0,"no-tab":"limited-trap-focus","tab-exit":"limited","tab-only":"unlimited"},CJ=({focusMode:e,disabled:t=!1,...r})=>{const o=["onClick","onDoubleClick","onMouseUp","onMouseDown","onPointerUp","onPointerDown","onTouchStart","onTouchEnd","onDragStart","onDragEnd"].some(i=>r[i]),n=e??(o?"no-tab":"off"),a=rc({tabBehavior:jJ[n]});return t?{interactive:!1,focusAttributes:null}:n==="off"?{interactive:o,focusAttributes:null}:{interactive:o,focusAttributes:{...a,tabIndex:0}}},NJ=(e,t)=>{const{appearance:r="filled",orientation:o="vertical",size:n="medium",...a}=e;return{...zJ(a,t),appearance:r,orientation:o,size:n}},zJ=(e,t)=>{const{disabled:r=!1,...o}=e,[n,a]=m.useState(uB.selectableA11yProps.referenceId),[i,l]=m.useState(uB.selectableA11yProps.referenceId),d=Es(),{selectable:f,selected:p,selectableCardProps:h,selectFocused:v,checkboxSlot:y,floatingActionSlot:x}=kJ(e,{referenceId:n,referenceLabel:i},d),b=Le(d,t),{interactive:k,focusAttributes:S}=CJ(e);let N={...f?null:S,...o,...h};return r&&(N={...o,"aria-disabled":!0,onClick:void 0}),{interactive:k,selectable:f,selectFocused:v,selected:p,disabled:r,selectableA11yProps:{setReferenceId:a,referenceId:n,referenceLabel:i,setReferenceLabel:l},components:{root:"div",floatingAction:"div",checkbox:"input"},root:me($e("div",{ref:b,role:"group",...N}),{elementType:"div"}),floatingAction:x,checkbox:y}},TJ=(e,t)=>G(e.root,{children:Ie(BJ,{value:t,children:[e.checkbox?G(e.checkbox,{}):null,e.floatingAction?G(e.floatingAction,{}):null,e.root.children]})}),vv={root:"fui-Card",floatingAction:"fui-Card__floatingAction",checkbox:"fui-Card__checkbox"},_J=Be("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;}"]),RJ=Y({focused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bqhya38:"f1j6vpng",Bwxa6fj:["f1pniga2","f1ffjurs"],Bdhvstf:"f987i1v",B7zbvrb:["f1ffjurs","f1pniga2"],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"],h6p2u:"f1ufm4qn",I6qiy5:["f1qnwcb4","fgrk5zm"],yzno9d:"fi52z01",By0wis0:["fgrk5zm","f1qnwcb4"],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"},outlineDisabled:{De3pzq:"f1c21dwh",E5pizo:"f1couhl3",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],ezxybo:"f1ls5moo",wc7uws:"f1qiza15",B0n5ga8:"f13dj02",s924m2:["f9wngki","f17v59j0"],B1q35kw:"f1vxzwsp",Gp14am:["f17v59j0","f9wngki"]},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:{B8gzw0y:"f1h3a8gf",By8wz76:"f1nz3ub2",B7iucu3:"fqc85l4",Boo9lyk:"f1ucc5z8",sga51p:"fyj59f4",qj1yg9:["f19v95gn","f1n69f6i"],B8acmzm:"f16q7dot",Gezqo6:["f1n69f6i","f19v95gn"]},highContrastInteractive:{waf3gn:"f1quqgnd",B96h8j5:"f193utb4",Bpd3jnq:"f1io67iv",uhbujs:"f3n01jk",sga51p:"fyj59f4",qj1yg9:["f19v95gn","f1n69f6i"],B8acmzm:"f16q7dot",Gezqo6:["f1n69f6i","f19v95gn"]},select:{qhf8xq:"f1euv43f",Bhzewxz:"fqclxi7",j35jbq:["fiv86kb","f36uhnt"],Bj3rh1h:"fom9my7"},hiddenCheckbox:{B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",a9b677:"frkrog8",Bqenvij:"f1mpe4l3",qhf8xq:"f1euv43f",Bh84pgu:"fmf1zke",Bgl5zvf:"f1wch0ki",Huce71:"fz5stix"},disabled:{Bceei9c:"fdrzuqr",famaaq:"f1xqy1su",sj55zd:"f1s2aq7o",De3pzq:"f1bg9a2p",E5pizo:"fyed02w",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Ftih45:"f1wl9k8s",Brfgrao:"f1j7ml58",lawp4y:0,Fbdkly:0,mdwyqc:0,Bciustq:0,gc50h5:"f13vvzas",Ehzi8l:"f198lalb",B0n5ga8:"f13dj02",s924m2:["f9wngki","f17v59j0"],B1q35kw:"f1vxzwsp",Gp14am:["f17v59j0","f9wngki"],Bikrtoi:"f11og98d",G8qf51:"f1rg3h4v",Brxh4y7:"fbm2y3b",ezxybo:"f4yodeu",wc7uws:"fcwfbwp",gp3uxg:"f1repx37",Fohawp:["f1ybi8ct","f1h4eg6q"],Bxulg6k:"f18mejnb",vcjq4m:["f1h4eg6q","f1ybi8ct"],Bsqkqe9:"f1nift3m",fskg1g:"f1wu3i8x",iwiei9:0,Effecx:0,Bkt1b9m:0,jfmxvr:0,orauir:"f6v4vfa",B2yd9ot:"folrdqs",Fn9tzk:"f168z5yf",Bv0wker:["fpor7gj","fzextn6"],Bp2dl5b:"f1yaw79v",pzn0iz:["fzextn6","fpor7gj"]}},{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);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f13dj02::after{border-top-color:var(--colorNeutralStrokeDisabled);}",".f9wngki::after{border-right-color:var(--colorNeutralStrokeDisabled);}",".f17v59j0::after{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1vxzwsp::after{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1euv43f{position:absolute;}",".fqclxi7{top:4px;}",".fiv86kb{right:4px;}",".f36uhnt{left:4px;}",".fom9my7{z-index:var(--zIndexContent, 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;}",".fdrzuqr{cursor:not-allowed;}",".f1xqy1su{-webkit-user-select:none;-moz-user-select:none;user-select:none;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".fyed02w{box-shadow:var(--shadow2);}",'.f1wl9k8s::before{content:"";}',".f1j7ml58::before{position:absolute;}",[".f13vvzas::before{inset:0;}",{p:-1}],".f198lalb::before{z-index:calc(var(--zIndexContent, 1) + 1);}"],m:[["@media (forced-colors: active){.f1j6vpng[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ffjurs[data-fui-focus-visible]::after{border-left-color:Highlight;}.f1pniga2[data-fui-focus-visible]::after{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f987i1v[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ufm4qn[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1qnwcb4[data-fui-focus-within]:focus-within::after{border-right-color:Highlight;}.fgrk5zm[data-fui-focus-within]:focus-within::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fi52z01[data-fui-focus-within]:focus-within::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nz3ub2{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fqc85l4{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ucc5z8 .fui-CardPreview,.f1ucc5z8 .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fyj59f4::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f19v95gn::after{border-right-color:Highlight;}.f1n69f6i::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16q7dot::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1quqgnd:hover,.f1quqgnd :active{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f193utb4:hover,.f193utb4 :active{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1io67iv:hover,.f1io67iv :active{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3n01jk:hover .fui-CardPreview,.f3n01jk :active .fui-CardPreview,.f3n01jk:hover .fui-CardFooter,.f3n01jk :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);}",".f1ls5moo:hover,.f1ls5moo:active{background-color:var(--colorTransparentBackground);}",".f1qiza15:hover,.f1qiza15:active{box-shadow:none;}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1uqaxdt:hover{background-color:var(--colorSubtleBackgroundSelected);}",".f11og98d:hover,.f11og98d:active{cursor:not-allowed;}",".f1rg3h4v:hover,.f1rg3h4v:active{-webkit-user-select:none;-moz-user-select:none;user-select:none;}",".fbm2y3b:hover,.fbm2y3b:active{color:var(--colorNeutralForegroundDisabled);}",".f4yodeu:hover,.f4yodeu:active{background-color:var(--colorNeutralBackgroundDisabled);}",".fcwfbwp:hover,.fcwfbwp:active{box-shadow:var(--shadow2);}",".f1repx37:hover,.f1repx37:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ybi8ct:hover,.f1ybi8ct:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1h4eg6q:hover,.f1h4eg6q:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f18mejnb:hover,.f18mejnb:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",'.f1nift3m:hover::before,.f1nift3m:active::before{content:"";}',".f1wu3i8x:hover::before,.f1wu3i8x:active::before{position:absolute;}",[".f6v4vfa:hover::before,.f6v4vfa:active::before{inset:0;}",{p:-1}],".folrdqs:hover::before,.folrdqs:active::before{z-index:calc(var(--zIndexContent, 1) + 1);}",".f168z5yf:hover::after,.f168z5yf:active::after{border-top-color:var(--colorNeutralStrokeDisabled);}",".fpor7gj:hover::after,.fpor7gj:active::after{border-right-color:var(--colorNeutralStrokeDisabled);}",".fzextn6:hover::after,.fzextn6:active::after{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1yaw79v:hover::after,.f1yaw79v:active::after{border-bottom-color:var(--colorNeutralStrokeDisabled);}"],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);}"]}),DJ=e=>{"use no memo";const t=_J(),r=RJ(),o={horizontal:r.orientationHorizontal,vertical:r.orientationVertical},n={small:r.sizeSmall,medium:r.sizeMedium,large:r.sizeLarge},a={filled:r.filled,"filled-alternative":r.filledAlternative,outline:r.outline,subtle:r.subtle},i={filled:r.filledInteractiveSelected,"filled-alternative":r.filledAlternativeInteractiveSelected,outline:r.outlineInteractiveSelected,subtle:r.subtleInteractiveSelected},l={filled:r.filledInteractive,"filled-alternative":r.filledAlternativeInteractive,outline:r.outlineInteractive,subtle:r.subtleInteractive},d=!e.disabled&&(e.interactive||e.selectable),f=m.useMemo(()=>e.disabled?"":e.selectable?e.selectFocused?r.selectableFocused:"":r.focused,[e.disabled,e.selectFocused,e.selectable,r.focused,r.selectableFocused]);return e.root.className=F(vv.root,t,o[e.orientation],n[e.size],a[e.appearance],d&&r.interactive,d&&l[e.appearance],e.selected&&i[e.appearance],f,d&&r.highContrastInteractive,e.selected&&r.highContrastSelected,e.disabled&&r.disabled,e.disabled&&e.appearance==="outline"&&r.outlineDisabled,e.root.className),e.floatingAction&&(e.floatingAction.className=F(vv.floatingAction,r.select,e.floatingAction.className)),e.checkbox&&(e.checkbox.className=F(vv.checkbox,r.hiddenCheckbox,e.checkbox.className)),e};function EJ({selectableA11yProps:e}){return{selectableA11yProps:e}}const uz=m.forwardRef((e,t)=>{const r=NJ(e,t),o=EJ(r);return DJ(r),xe("useCardStyles_unstable")(r),TJ(r,o)});uz.displayName="Card";const ln={show:"fui-toast-show",dismiss:"fui-toast-dismiss",dismissAll:"fui-toast-dismiss-all",update:"fui-toast-update",pause:"fui-toast-pause",play:"fui-toast-play"},cn={bottom:"bottom",bottomEnd:"bottom-end",bottomStart:"bottom-start",top:"top",topEnd:"top-end",topStart:"top-start"};let PJ=0;function MJ(e,t={},r){var o;const n={...t,content:e,toastId:(o=t.toastId)!==null&&o!==void 0?o:(PJ++).toString()},a=new CustomEvent(ln.show,{bubbles:!1,cancelable:!1,detail:n});r.dispatchEvent(a)}function qJ(e,t=void 0,r){const o=new CustomEvent(ln.dismiss,{bubbles:!1,cancelable:!1,detail:{toastId:e,toasterId:t}});r.dispatchEvent(o)}function FJ(e=void 0,t){const r=new CustomEvent(ln.dismissAll,{bubbles:!1,cancelable:!1,detail:{toasterId:e}});t.dispatchEvent(r)}function IJ(e,t){const r=new CustomEvent(ln.update,{bubbles:!1,cancelable:!1,detail:e});t.dispatchEvent(r)}function AJ(e,t=void 0,r){const o=new CustomEvent(ln.pause,{bubbles:!1,cancelable:!1,detail:{toastId:e,toasterId:t}});r.dispatchEvent(o)}function OJ(e,t=void 0,r){const o=new CustomEvent(ln.play,{bubbles:!1,cancelable:!1,detail:{toastId:e,toasterId:t}});r.dispatchEvent(o)}function dB(e,t){for(const[r,o]of Object.entries(t))o!=null&&(e[r]=o)}const LJ={onStatusChange:void 0,priority:0,pauseOnHover:!1,pauseOnWindowBlur:!1,position:"bottom-end",timeout:3e3};let $J=0;function HJ(e){const{limit:t=Number.POSITIVE_INFINITY}=e,r=new Set,o=new Map,n=v4((p,h)=>{const v=o.get(p),y=o.get(h);return!v||!y?0:v.priority===y.priority?v.order-y.order:v.priority-y.priority});return{buildToast:(p,h)=>{var v;const{toastId:y,content:x,toasterId:b}=p;if(o.has(y))return;const N={...LJ,close:()=>{var B;const C=o.get(y);C&&(r.delete(y),h(),(B=C.onStatusChange)===null||B===void 0||B.call(C,null,{status:"dismissed",...C}))},remove:()=>{if(o.get(y)){if(o.delete(y),r.size<t&&n.peek()){const C=o.get(n.dequeue());if(!C)return;r.add(C.toastId)}h()}},toastId:y,content:x,updateId:0,toasterId:b,order:$J++,data:{},imperativeRef:m.createRef()};dB(N,e),dB(N,p),o.set(y,N),(v=N.onStatusChange)===null||v===void 0||v.call(N,null,{status:"queued",...N}),r.size>=t?n.enqueue(y):r.add(y)},dismissAllToasts:()=>{r.clear(),n.clear()},dismissToast:p=>{r.delete(p)},isToastVisible:p=>r.has(p),updateToast:p=>{const{toastId:h}=p,v=o.get(h);v&&(Object.assign(v,p),v.updateId++)},visibleToasts:r,toasts:o}}const fl=(e,t,r)=>{const o={};var n;const a=r?VJ(r)?r:(n=r[e])!==null&&n!==void 0?n:{}:{},i=e==="top"||e==="bottom",{horizontal:l=i?0:20,vertical:d=16}=a,f=t==="ltr"?"left":"right",p=t==="ltr"?"right":"left";switch(e){case"top":Object.assign(o,{top:d,left:`calc(50% + ${l}px)`,transform:"translateX(-50%)"});break;case"bottom":Object.assign(o,{bottom:d,left:`calc(50% + ${l}px)`,transform:"translateX(-50%)"});break;case"top-start":Object.assign(o,{top:d,[f]:l});break;case"top-end":Object.assign(o,{top:d,[p]:l});break;case"bottom-start":Object.assign(o,{bottom:d,[f]:l});break;case"bottom-end":Object.assign(o,{bottom:d,[p]:l});break}return o};function VJ(e){return"horizontal"in e||"vertical"in e}function WJ(e={}){const t=p4(),{toasterId:r,shortcuts:o}=e,[n]=m.useState(()=>HJ(e)),{targetDocument:a}=Ve(),i=m.useRef(null),l=de(b=>b===r),d=de(b=>{if(o?.focus)return o.focus(b)}),f=m.useCallback(()=>{n.visibleToasts.forEach(b=>{var k;const S=n.toasts.get(b);S==null||(k=S.imperativeRef.current)===null||k===void 0||k.pause()})},[n]),p=m.useCallback(()=>{n.visibleToasts.forEach(b=>{var k;const S=n.toasts.get(b);S==null||(k=S.imperativeRef.current)===null||k===void 0||k.play()})},[n]),h=m.useCallback(()=>Array.from(n.visibleToasts).reduce((b,k)=>{const S=n.toasts.get(k);return S&&(!b||b.order<S?.order)?S:b},void 0),[n]),v=m.useCallback(()=>{const b=h();if(b?.imperativeRef.current)b.imperativeRef.current.focus();else{var k;(k=i.current)===null||k===void 0||k.focus(),i.current=null}},[h]),y=m.useCallback(()=>{n.visibleToasts.forEach(b=>{const k=n.toasts.get(b);k?.close()}),v()},[n,v]);m.useEffect(()=>{if(!a)return;const b=($,Z)=>{const q=A=>{l(A.detail.toasterId)&&(Z(A),t())};return a.addEventListener($,q),()=>a.removeEventListener($,q)},k=$=>{n.buildToast($.detail,t)},S=$=>{n.dismissToast($.detail.toastId)},N=$=>{n.updateToast($.detail)},B=$=>{n.dismissAllToasts()},C=$=>{const Z=n.toasts.get($.detail.toastId);if(Z){var q;(q=Z.imperativeRef.current)===null||q===void 0||q.pause()}},z=$=>{const Z=n.toasts.get($.detail.toastId);if(Z){var q;(q=Z.imperativeRef.current)===null||q===void 0||q.play()}},R=b(ln.show,k),E=b(ln.update,N),D=b(ln.dismiss,S),I=b(ln.dismissAll,B),M=b(ln.pause,C),O=b(ln.play,z),H=$=>{if(d($)){f();const q=h();if(q){var Z;i.current=qt(a.activeElement)?a.activeElement:null,(Z=q.imperativeRef.current)===null||Z===void 0||Z.focus()}}};return a.addEventListener("keydown",H),()=>{R(),I(),E(),D(),M(),O(),a.removeEventListener("keydown",H)}},[n,t,a,l,f,h,d]);const x=(()=>{if(!n)return new Map;const b=new Map;return Array.from(n.toasts.values()).forEach(S=>{const{position:N}=S;b.has(N)||b.set(N,[]),N.startsWith("bottom")?b.get(N).push(S):b.get(N).unshift(S)}),b})();return{isToastVisible:n.isToastVisible,toastsToRender:x,pauseAllToasts:f,playAllToasts:p,tryRestoreFocus:v,closeAllToasts:y}}const pl=()=>{};function UJ(e){const{targetDocument:t}=Ve();return m.useMemo(()=>t?{dispatchToast:(r,o)=>{MJ(r,{...o,toasterId:e,data:{root:o?.root}},t)},dismissToast:r=>{qJ(r,e,t)},dismissAllToasts:()=>{FJ(e,t)},updateToast:r=>{IJ({...r,data:{root:r.root},toasterId:e},t)},pauseToast:r=>{AJ(r,e,t)},playToast:r=>{OJ(r,e,t)}}:{dispatchToast:pl,dismissToast:pl,dismissAllToasts:pl,updateToast:pl,pauseToast:pl,playToast:pl},[t,e])}const GJ={close:()=>null,intent:void 0,bodyId:"",titleId:""},dz=m.createContext(void 0),ZJ=dz.Provider,Bg=()=>{var e;return(e=m.useContext(dz))!==null&&e!==void 0?e:GJ},KJ=e=>{const{children:t,disableButtonEnhancement:r=!1}=e,{close:o}=Bg(),n=tc(t),a=de(d=>{var f,p;n==null||(f=(p=n.props).onClick)===null||f===void 0||f.call(p,d),d.isDefaultPrevented()||o()}),i={...n?.props,ref:ec(n),onClick:a},l=La(n?.type==="button"||n?.type==="a"?n.type:"div",{...i,type:"button"});return{children:wd(t,r?i:l)}},XJ=e=>e.children,fz=e=>{const t=KJ(e);return XJ(t)};fz.displayName="ToastTrigger";const YJ=Be("r16zaflb","r75casi",[".r16zaflb{animation-name:rsacmq1;}","@keyframes rsacmq1{from{opacity:0;}to{opacity:0;}}",".r75casi{animation-name:rsacmq1;}"]),W1=m.forwardRef((e,t)=>{const r=YJ(),{running:o,timeout:n,onTimeout:a}=e,i={animationDuration:`${n}ms`,animationPlayState:o?"running":"paused"};return n<0?null:m.createElement("span",{onAnimationEnd:a,"data-timer-status":i.animationPlayState,ref:t,style:i,className:r})});W1.displayName="Timer";const JJ={success:"assertive",warning:"assertive",error:"assertive",info:"polite"},QJ=(e,t)=>{const{visible:r,children:o,close:n,remove:a,updateId:i,announce:l,data:d,timeout:f,politeness:p,intent:h="info",pauseOnHover:v,pauseOnWindowBlur:y,imperativeRef:x,tryRestoreFocus:b,content:k,...S}=e,N=bt("toast-title"),B=bt("toast-body"),C=m.useRef(null),{targetDocument:z}=Ve(),[R,E]=m.useState(!1),D=m.useRef(!1),I=m.useRef(!1),M=rc({tabBehavior:"limited-trap-focus",ignoreDefaultKeydown:{Tab:!0,Escape:!0,Enter:!0}}),O=de(()=>{var L;const te=z?.activeElement;te&&(!((L=C.current)===null||L===void 0)&&L.contains(te))&&(I.current=!0),n()}),H=de(L=>{var te;return(te=e.onStatusChange)===null||te===void 0?void 0:te.call(e,null,{status:L,...e})}),$=de(()=>E(!1)),Z=de(()=>{var L;if(D.current)return;var te;const ue=!!(!((L=C.current)===null||L===void 0)&&L.contains((te=z?.activeElement)!==null&&te!==void 0?te:null));if(f<0){E(!0);return}ue||E(!0)});m.useImperativeHandle(x,()=>({focus:()=>{C.current&&C.current.focus()},play:()=>{D.current=!1,Z()},pause:()=>{D.current=!0,$()}})),m.useEffect(()=>()=>H("unmounted"),[H]),m.useEffect(()=>{if(z&&y){var L,te;return(L=z.defaultView)===null||L===void 0||L.addEventListener("focus",Z),(te=z.defaultView)===null||te===void 0||te.addEventListener("blur",$),()=>{var ue,ne;(ue=z.defaultView)===null||ue===void 0||ue.removeEventListener("focus",Z),(ne=z.defaultView)===null||ne===void 0||ne.removeEventListener("blur",$)}}},[z,$,Z,y]);const q=d.root,A=m.useCallback((L,{direction:te})=>{te==="exit"&&a(),te==="enter"&&(Z(),H("visible"))},[H,Z,a]),X=de(L=>{var te;$(),q==null||(te=q.onMouseEnter)===null||te===void 0||te.call(q,L)}),V=de(L=>{var te;Z(),q==null||(te=q.onMouseEnter)===null||te===void 0||te.call(q,L)}),{findFirstFocusable:oe,findLastFocusable:ee}=hn(),W=de(L=>{var te;if(L.key===uy&&(L.preventDefault(),O()),L.key===ay&&L.currentTarget===L.target)if(L.preventDefault(),L.shiftKey){var ue;(ue=ee(L.currentTarget))===null||ue===void 0||ue.focus()}else{var ne;(ne=oe(L.currentTarget))===null||ne===void 0||ne.focus()}q==null||(te=q.onKeyDown)===null||te===void 0||te.call(q,L)});return m.useEffect(()=>{var L;if(!r)return;const te=p??JJ[h];var ue;l((ue=(L=C.current)===null||L===void 0?void 0:L.textContent)!==null&&ue!==void 0?ue:"",{politeness:te})},[l,p,C,r,i,h]),m.useEffect(()=>()=>{I.current&&(I.current=!1,b())},[b]),{components:{timer:W1,root:"div"},timer:me({onTimeout:O,running:R,timeout:f??-1},{elementType:W1}),root:me($e("div",{ref:Le(t,C),children:o,tabIndex:0,role:"listitem","aria-labelledby":N,"aria-describedby":B,...S,...q,...M,onMouseEnter:X,onMouseLeave:V,onKeyDown:W}),{elementType:"div"}),timerTimeout:f,transitionTimeout:0,running:R,visible:r,remove:a,close:O,onTransitionEntering:()=>{},updateId:i,nodeRef:C,intent:h,titleId:N,bodyId:B,onMotionFinish:A}},eQ=(e,t)=>{const{onMotionFinish:r,visible:o,updateId:n}=e;return G(ZJ,{value:t.toast,children:G(EO,{appear:!0,onMotionFinish:r,visible:o,unmountOnExit:!0,children:Ie(e.root,{children:[e.root.children,G(e.timer,{},n)]})})})},pz={root:"fui-ToastContainer"},tQ=Be("r98b696",null,[".r98b696{box-sizing:border-box;margin-top:16px;pointer-events:all;border-radius:var(--borderRadiusMedium);}",".r98b696[data-fui-focus-visible]{outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}"]),rQ=e=>{"use no memo";const t=tQ();return e.root.className=F(pz.root,t,e.root.className),e};function oQ(e){const{close:t,intent:r,titleId:o,bodyId:n}=e;return{toast:m.useMemo(()=>({close:t,intent:r,titleId:o,bodyId:n}),[t,r,o,n])}}const mz=m.forwardRef((e,t)=>{const r=QJ(e,t);return rQ(r),xe("useToastContainerStyles_unstable")(r),eQ(r,oQ(r))});mz.displayName="ToastContainer";const fB=()=>{};function nQ(e,t){const{targetDocument:r}=Ve(),o=m.useRef(fB);return m.useCallback(n=>{if(!n||!r){o.current(),o.current=fB;return}const a=r.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode(f){return qt(f)&&f.classList.contains(pz.root)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}}),i=f=>{const{target:p,key:h}=f;if(qt(p)){if(h===Fi){a.currentNode=p;let v=a.nextNode();v||(a.currentNode=n,v=a.nextNode()),qt(v)&&v.focus()}if(h===ys){a.currentNode=p;let v=a.previousNode();v&&v.contains(p)&&(v=a.previousNode()),v||(a.currentNode=n,v=a.lastChild()),qt(v)&&v.focus()}}},l=f=>{qt(f.currentTarget)&&!f.currentTarget.contains(qt(f.relatedTarget)?f.relatedTarget:null)&&e()},d=f=>{qt(f.currentTarget)&&!f.currentTarget.contains(qt(f.relatedTarget)?f.relatedTarget:null)&&t()};n.addEventListener("keydown",i),n.addEventListener("focusin",l),n.addEventListener("focusout",d),o.current=()=>{n.removeEventListener("keydown",i),n.removeEventListener("focusin",l),n.removeEventListener("focusout",d)}},[r,e,t])}function aQ(e){const t=m.useRef(!0),r=m.useRef(()=>{}),o=m.useCallback((a,i)=>{t.current&&e(a,i)},[e]),n=m.useCallback(a=>{if(!a){r.current();return}const i=d=>{qt(d.currentTarget)&&d.currentTarget.contains(qt(d.relatedTarget)?d.relatedTarget:null)||(t.current=!1)},l=d=>{qt(d.currentTarget)&&d.currentTarget.contains(qt(d.relatedTarget)?d.relatedTarget:null)||(t.current=!0)};a.addEventListener("focusin",i),a.addEventListener("focusout",l),r.current=()=>{a.removeEventListener("focusin",i),a.removeEventListener("focusout",l)}},[]);return{announceToast:o,toasterRef:n}}const iQ=e=>{"use no memo";const{offset:t,announce:r,mountNode:o,inline:n=!1,...a}=e,i=m.useRef(()=>null),{toastsToRender:l,isToastVisible:d,pauseAllToasts:f,playAllToasts:p,tryRestoreFocus:h,closeAllToasts:v}=WJ(a),y=m.useCallback((C,z)=>i.current(C,z),[]),{dir:x}=Ve(),{onKeyDown:b,...k}=me($e("div",a),{elementType:"div"}),S=rc({tabBehavior:"limited-trap-focus",ignoreDefaultKeydown:{Escape:!0}}),N=de(C=>{C.key===Wn&&(C.preventDefault(),v()),b?.(C)}),B=C=>{var z;const R=nQ(f,p),{announceToast:E,toasterRef:D}=aQ(r??y);return ke(l.has(C)?k:null,{defaultProps:{ref:Le(R,D),children:(z=l.get(C))===null||z===void 0?void 0:z.map(I=>m.createElement(mz,{...I,tryRestoreFocus:h,intent:I.intent,announce:E,key:I.toastId,visible:d(I.toastId)},I.content)),onKeyDown:N,...S,"data-toaster-position":C,role:"list"},elementType:"div"})};return{dir:x,mountNode:o,components:{root:"div",bottomStart:"div",bottomEnd:"div",topStart:"div",topEnd:"div",top:"div",bottom:"div"},root:me(k,{elementType:"div"}),bottomStart:B(cn.bottomStart),bottomEnd:B(cn.bottomEnd),topStart:B(cn.topStart),topEnd:B(cn.topEnd),top:B(cn.top),bottom:B(cn.bottom),announceRef:i,offset:t,announce:r??y,renderAriaLive:!r,inline:n}},sQ=500,lQ=e=>{const[t,r]=m.useState(void 0),o=m.useRef(0),[n]=m.useState(()=>v4((p,h)=>p.politeness===h.politeness?p.createdAt-h.createdAt:p.politeness==="assertive"?-1:1)),a=de((p,h)=>{const{politeness:v}=h;if(p===t?.message)return;const y={message:p,politeness:v,createdAt:o.current++};t?n.enqueue(y):r(y)}),[i,l]=Ga();m.useEffect(()=>(i(()=>{n.peek()?r(n.dequeue()):r(void 0)},sQ),()=>l()),[t,n,i,l]),m.useImperativeHandle(e.announceRef,()=>a);const d=t?.politeness==="polite"?t.message:void 0,f=t?.politeness==="assertive"?t.message:void 0;return{components:{assertive:"div",polite:"div"},assertive:me(e.assertive,{defaultProps:{"aria-live":"assertive",children:f},elementType:"div"}),polite:me(e.polite,{defaultProps:{"aria-live":"polite",children:d},elementType:"div"})}},cQ=e=>Ie(m.Fragment,{children:[G(e.assertive,{}),G(e.polite,{})]}),pB={assertive:"fui-AriaLive__assertive",polite:"fui-AriaLive__polite"},uQ=Be("rrd10u0",null,[".rrd10u0{clip:rect(0px, 0px, 0px, 0px);height:1px;margin:-1px;overflow:hidden;padding:0px;width:1px;position:absolute;}"]),dQ=e=>{"use no memo";const t=uQ();return e.assertive.className=F(t,pB.assertive,e.assertive.className),e.polite.className=F(t,pB.polite,e.polite.className),e},gz=e=>{const t=lQ(e);return dQ(t),cQ(t)};gz.displayName="AriaLive";const fQ=e=>{const{announceRef:t,renderAriaLive:r,inline:o,mountNode:n}=e,a=!!e.bottomStart||!!e.bottomEnd||!!e.topStart||!!e.topEnd||!!e.top||!!e.bottom,i=r?G(gz,{announceRef:t}):null,l=Ie(m.Fragment,{children:[e.bottom?G(e.bottom,{}):null,e.bottomStart?G(e.bottomStart,{}):null,e.bottomEnd?G(e.bottomEnd,{}):null,e.topStart?G(e.topStart,{}):null,e.topEnd?G(e.topEnd,{}):null,e.top?G(e.top,{}):null]});return o?Ie(m.Fragment,{children:[i,a?l:null]}):Ie(m.Fragment,{children:[i,a?G(ma,{mountNode:n,children:l}):null]})},pQ={root:"fui-Toaster"},mQ=Be("r3hfdjz",null,[".r3hfdjz{position:fixed;width:292px;pointer-events:none;}"]),gQ=Y({inline:{qhf8xq:"f1euv43f"}},{d:[".f1euv43f{position:absolute;}"]}),hQ=e=>{"use no memo";const t=mQ(),r=gQ(),o=F(pQ.root,t,e.inline&&r.inline,e.root.className);if(e.bottomStart){var n;e.bottomStart.className=o;var a;(a=(n=e.bottomStart).style)!==null&&a!==void 0||(n.style={}),Object.assign(e.bottomStart.style,fl(cn.bottomStart,e.dir,e.offset))}if(e.bottomEnd){var i;e.bottomEnd.className=o;var l;(l=(i=e.bottomEnd).style)!==null&&l!==void 0||(i.style={}),Object.assign(e.bottomEnd.style,fl(cn.bottomEnd,e.dir,e.offset))}if(e.topStart){var d;e.topStart.className=o;var f;(f=(d=e.topStart).style)!==null&&f!==void 0||(d.style={}),Object.assign(e.topStart.style,fl(cn.topStart,e.dir,e.offset))}if(e.topEnd){var p;e.topEnd.className=o;var h;(h=(p=e.topEnd).style)!==null&&h!==void 0||(p.style={}),Object.assign(e.topEnd.style,fl(cn.topEnd,e.dir,e.offset))}if(e.top){var v;e.top.className=o;var y;(y=(v=e.top).style)!==null&&y!==void 0||(v.style={}),Object.assign(e.top.style,fl(cn.top,e.dir,e.offset))}if(e.bottom){var x;e.bottom.className=o;var b;(b=(x=e.bottom).style)!==null&&b!==void 0||(x.style={}),Object.assign(e.bottom.style,fl(cn.bottom,e.dir,e.offset))}return e},hz=e=>{const t=iQ(e);return hQ(t),xe("useToasterStyles_unstable")(t),fQ(t)};hz.displayName="Toaster";const vQ=(e,t)=>{const{intent:r}=Bg();return{components:{root:"div"},root:me($e("div",{ref:t,...e}),{elementType:"div"}),backgroundAppearance:e.appearance,intent:r}},bQ=(e,t)=>G(jP,{value:t.backgroundAppearance,children:G(e.root,{})}),yQ={root:"fui-Toast"},xQ=Be("rhf7k35",null,[".rhf7k35{display:grid;grid-template-columns:auto 1fr auto;padding:12px;border-radius:var(--borderRadiusMedium);border:1px solid var(--colorTransparentStroke);box-shadow:var(--shadow8);font-size:var(--fontSizeBase300);line-height:20px;font-weight:var(--fontWeightSemibold);color:var(--colorNeutralForeground1);background-color:var(--colorNeutralBackground1);}"]),wQ=Y({inverted:{sj55zd:"f1w7i9ko",De3pzq:"f5pduvr"}},{d:[".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}",".f5pduvr{background-color:var(--colorNeutralBackgroundInverted);}"]}),kQ=e=>{"use no memo";const t=xQ(),r=wQ();return e.root.className=F(yQ.root,t,e.backgroundAppearance==="inverted"&&r.inverted,e.root.className),e};function SQ(e){const{backgroundAppearance:t}=e;return{backgroundAppearance:t}}const vz=m.forwardRef((e,t)=>{const r=vQ(e,t);return kQ(r),xe("useToastStyles_unstable")(r),bQ(r,SQ(r))});vz.displayName="Toast";const BQ=(e,t)=>{const{intent:r,titleId:o}=Bg(),n=Yb();let a;switch(r){case"success":a=m.createElement(fC,null);break;case"error":a=m.createElement(mC,null);break;case"warning":a=m.createElement(sC,null);break;case"info":a=m.createElement(lC,null);break}return{action:ke(e.action,{elementType:"div"}),components:{root:"div",media:"div",action:"div"},media:ke(e.media,{renderByDefault:!!r,defaultProps:{children:a},elementType:"div"}),root:me($e("div",{ref:t,children:e.children,id:o,...e}),{elementType:"div"}),intent:r,backgroundAppearance:n}},jQ=e=>Ie(m.Fragment,{children:[e.media?G(e.media,{}):null,G(e.root,{}),e.action?G(e.action,{}):null]}),bv={root:"fui-ToastTitle",media:"fui-ToastTitle__media",action:"fui-ToastTitle__action"},CQ=Be("rdjap1e",null,[".rdjap1e{display:flex;grid-column-end:3;color:var(--colorNeutralForeground1);word-break:break-word;}"]),NQ=Be("r8x5mrd","r1soj19y",[".r8x5mrd{display:flex;padding-top:2px;grid-column-end:2;padding-right:8px;font-size:16px;color:var(--colorNeutralForeground1);}",".r1soj19y{display:flex;padding-top:2px;grid-column-end:2;padding-left:8px;font-size:16px;color:var(--colorNeutralForeground1);}"]),zQ=Be("r2j19ip","rjfozdo",[".r2j19ip{display:flex;align-items:start;padding-left:12px;grid-column-end:-1;color:var(--colorBrandForeground1);}",".rjfozdo{display:flex;align-items:start;padding-right:12px;grid-column-end:-1;color:var(--colorBrandForeground1);}"]),TQ=Y({root:{sj55zd:"f1w7i9ko"},action:{sj55zd:"f1qz2gb0"},media:{sj55zd:"fqpbvvt"}},{d:[".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}",".f1qz2gb0{color:var(--colorBrandForegroundInverted);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}"]}),_Q=Y({success:{sj55zd:"f36rra6"},error:{sj55zd:"f1ca9wz"},warning:{sj55zd:"f13isgzr"},info:{sj55zd:"fkfq4zb"}},{d:[".f36rra6{color:var(--colorStatusSuccessForeground1);}",".f1ca9wz{color:var(--colorStatusDangerForeground1);}",".f13isgzr{color:var(--colorStatusWarningForeground1);}",".fkfq4zb{color:var(--colorNeutralForeground2);}"]}),RQ=Y({success:{sj55zd:"ff3wk4x"},error:{sj55zd:"fbq2gqr"},warning:{sj55zd:"fx6hq1t"},info:{sj55zd:"f1w7i9ko"}},{d:[".ff3wk4x{color:var(--colorStatusSuccessForegroundInverted);}",".fbq2gqr{color:var(--colorStatusDangerForegroundInverted);}",".fx6hq1t{color:var(--colorStatusWarningForegroundInverted);}",".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}"]}),DQ=e=>{"use no memo";const t=CQ(),r=zQ(),o=NQ(),n=_Q(),a=RQ(),{intent:i}=e,l=TQ();return e.root.className=F(bv.root,t,e.backgroundAppearance==="inverted"&&l.root,e.root.className),e.media&&(e.media.className=F(bv.media,o,e.backgroundAppearance==="inverted"&&l.media,i&&n[i],i&&e.backgroundAppearance==="inverted"&&a[i],e.media.className)),e.action&&(e.action.className=F(bv.action,r,e.backgroundAppearance==="inverted"&&l.action,e.action.className)),e},bz=m.forwardRef((e,t)=>{const r=BQ(e,t);return DQ(r),xe("useToastTitleStyles_unstable")(r),jQ(r)});bz.displayName="ToastTitle";const EQ=(e,t)=>{const r=Yb(),{bodyId:o}=Bg();return{components:{root:"div",subtitle:"div"},subtitle:ke(e.subtitle,{elementType:"div"}),root:me($e("div",{ref:t,id:o,...e}),{elementType:"div"}),backgroundAppearance:r}},PQ=e=>Ie(m.Fragment,{children:[G(e.root,{}),e.subtitle?G(e.subtitle,{}):null]}),mB={root:"fui-ToastBody",subtitle:"fui-ToastBody__subtitle"},MQ=Be("r1u44l4o",null,[".r1u44l4o{grid-column-start:2;grid-column-end:3;padding-top:6px;font-size:var(--fontSizeBase300);line-height:var(--lineHeightBase300);font-weight:var(--fontWeightRegular);color:var(--colorNeutralForeground1);word-break:break-word;}"]),qQ=Be("rzjw1xk",null,[".rzjw1xk{padding-top:4px;grid-column-start:2;grid-column-end:3;font-size:var(--fontSizeBase200);line-height:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);color:var(--colorNeutralForeground2);}"]),FQ=Y({root:{sj55zd:"f1w7i9ko"},subtitle:{sj55zd:"f1w7i9ko"}},{d:[".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}"]}),IQ=e=>{"use no memo";const t=MQ(),r=qQ(),o=FQ();return e.root.className=F(mB.root,t,e.backgroundAppearance==="inverted"&&o.root,e.root.className),e.subtitle&&(e.subtitle.className=F(mB.subtitle,r,e.backgroundAppearance==="inverted"&&o.subtitle,e.subtitle.className)),e},yz=m.forwardRef((e,t)=>{const r=EQ(e,t);return IQ(r),xe("useToastBodyStyles_unstable")(r),PQ(r)});yz.displayName="ToastBody";const xz=m.createContext(void 0),AQ={handleTagDismiss:()=>({}),size:"medium",role:"toolbar",handleTagSelect:void 0},OQ=xz.Provider,jg=()=>{var e;return(e=m.useContext(xz))!==null&&e!==void 0?e:AQ},LQ={medium:28,small:20,"extra-small":16},$Q={rounded:"square",circular:"circular"},HQ=(e,t)=>{const{handleTagDismiss:r,disabled:o,dismissible:n,role:a}=jg(),i=bt("fui-Tag",e.id),{disabled:l=!1,dismissible:d=n??!1,selected:f,value:p=i}=e,h=de(k=>{var S;(S=e.onClick)===null||S===void 0||S.call(e,k),k.defaultPrevented||r?.(k,{value:p})}),v=de(k=>{var S;e==null||(S=e.onKeyDown)===null||S===void 0||S.call(e,k),!k.defaultPrevented&&(k.key===uy||k.key===ag)&&r?.(k,{value:p})}),y=d?"button":"span",x=a==="listbox"?"aria-selected":"aria-pressed",b=typeof f=="boolean"||a==="listbox";return{disabled:o?!0:l,dismissible:d,selected:!!f,components:{root:y,media:"span",icon:"span",primaryText:"span",secondaryText:"span",dismissIcon:"span"},root:me($e(y,{ref:t,role:a==="listbox"?"option":void 0,[x]:b?f:void 0,...e,disabled:o?!0:l,id:i,...d&&{onClick:h,onKeyDown:v}}),{defaultProps:{type:y==="button"?"button":void 0},elementType:y}),media:ke(e.media,{elementType:"span"}),icon:ke(e.icon,{elementType:"span"}),primaryText:ke(e.primaryText,{renderByDefault:!0,defaultProps:{children:e.children},elementType:"span"}),secondaryText:ke(e.secondaryText,{elementType:"span"}),dismissIcon:ke(e.dismissIcon,{renderByDefault:d,elementType:"span"})}},VQ=(e,t)=>{const{size:r,appearance:o}=jg(),{appearance:n=o??"filled",shape:a="rounded",size:i=r}=e,l=HQ(e,t);if(l.dismissIcon){var d,f;(f=(d=l.dismissIcon).children)!==null&&f!==void 0||(d.children=m.createElement(nc,null))}return{...l,appearance:n,avatarShape:$Q[a],avatarSize:LQ[i],shape:a,size:i}},WQ=(e,t)=>Ie(e.root,{children:[e.media&&G(ky,{value:t.avatar,children:G(e.media,{})}),e.icon&&G(e.icon,{}),e.primaryText&&G(e.primaryText,{}),e.secondaryText&&G(e.secondaryText,{}),e.dismissIcon&&e.dismissible&&G(e.dismissIcon,{})]}),ml={root:"fui-Tag",media:"fui-Tag__media",icon:"fui-Tag__icon",primaryText:"fui-Tag__primaryText",secondaryText:"fui-Tag__secondaryText",dismissIcon:"fui-Tag__dismissIcon"},UQ=Be("r18f5o0q","r1u2q8zc",{r:['.r18f5o0q{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusMedium);}',".r18f5o0q[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}",'.r1u2q8zc{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusMedium);}',".r1u2q8zc[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}"],s:['@media (forced-colors: active){.r18f5o0q{position:relative;}.r18f5o0q::before{content:"";border-top:var(--strokeWidthThin) solid;position:absolute;inset:-1px;border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);}}','@media (forced-colors: active){.r1u2q8zc{position:relative;}.r1u2q8zc::before{content:"";border-top:var(--strokeWidthThin) solid;position:absolute;inset:-1px;border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);}}']}),GQ=Be("r1mko7zc","r1wx1e29",{r:['.r1mko7zc{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusCircular);}',".r1mko7zc[data-fui-focus-visible]{border-radius:var(--borderRadiusCircular);outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}",'.r1wx1e29{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusCircular);}',".r1wx1e29[data-fui-focus-visible]{border-radius:var(--borderRadiusCircular);outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}"],s:['@media (forced-colors: active){.r1mko7zc{position:relative;}.r1mko7zc::before{content:"";border-top:var(--strokeWidthThin) solid;border-left:var(--strokeWidthThin) solid;border-right:var(--strokeWidthThin) solid;position:absolute;inset:-1px;border-radius:var(--borderRadiusCircular);}}','@media (forced-colors: active){.r1wx1e29{position:relative;}.r1wx1e29::before{content:"";border-top:var(--strokeWidthThin) solid;border-right:var(--strokeWidthThin) solid;border-left:var(--strokeWidthThin) solid;position:absolute;inset:-1px;border-radius:var(--borderRadiusCircular);}}']}),ZQ=Y({filled:{De3pzq:"f16xq7d1",sj55zd:"fkfq4zb"},outline:{De3pzq:"fhovq9v",sj55zd:"fkfq4zb",g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"]},brand:{De3pzq:"f16xkysk",sj55zd:"faj9fo0"},selected:{De3pzq:"ffp7eso",sj55zd:"f1phragk",g2u3we:"fk9qgl1",h3c5rm:["f1vfbj5f","f1qpacp7"],B9xav0g:"fdf0ba2",zhjwy3:["f1qpacp7","f1vfbj5f"],B8gzw0y:"f1h3a8gf",By8wz76:"f1nz3ub2",B7iucu3:"fqc85l4"},medium:{Bqenvij:"f1d2rq10"},small:{Bqenvij:"frvgh55"},"extra-small":{qhf8xq:"f10pi13n",Bqenvij:"fjamq6b",Ie5t1m:"fru8nlv",G6hvz8:"f5nasji",wgw0td:"f45hpys",Bbwa3xj:["f1sbfcjn","f1le4i14"],m3mfg4:"fq6y7a1",B9s7hj8:"f1jr4pq3",B9e1dac:"f1tfer7m"}},{d:[".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".faj9fo0{color:var(--colorBrandForeground2);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fk9qgl1{border-top-color:var(--colorBrandStroke1);}",".f1vfbj5f{border-right-color:var(--colorBrandStroke1);}",".f1qpacp7{border-left-color:var(--colorBrandStroke1);}",".fdf0ba2{border-bottom-color:var(--colorBrandStroke1);}",".f1d2rq10{height:32px;}",".frvgh55{height:24px;}",".f10pi13n{position:relative;}",".fjamq6b{height:20px;}"],m:[["@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nz3ub2{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fqc85l4{color:HighlightText;}}",{m:"(forced-colors: active)"}],['@media (forced-colors: none){.fru8nlv:before,.fru8nlv:after{content:"";}}',{m:"(forced-colors: none)"}],["@media (forced-colors: none){.f5nasji:before,.f5nasji:after{position:absolute;}}",{m:"(forced-colors: none)"}],["@media (forced-colors: none){.f45hpys:before,.f45hpys:after{height:2px;}}",{m:"(forced-colors: none)"}],["@media (forced-colors: none){.f1le4i14:before,.f1le4i14:after{right:0;}.f1sbfcjn:before,.f1sbfcjn:after{left:0;}}",{m:"(forced-colors: none)"}],["@media (forced-colors: none){.fq6y7a1:before,.fq6y7a1:after{width:100%;}}",{m:"(forced-colors: none)"}],["@media (forced-colors: none){.f1jr4pq3:before{bottom:100%;}}",{m:"(forced-colors: none)"}],["@media (forced-colors: none){.f1tfer7m:after{top:100%;}}",{m:"(forced-colors: none)"}]]}),KQ=Y({filled:{Bceei9c:"fdrzuqr",De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o",g2u3we:"fgig46g",h3c5rm:["f1mxt3zg","fziff3p"],B9xav0g:"f250w3l",zhjwy3:["fziff3p","f1mxt3zg"]},outline:{Bceei9c:"fdrzuqr",De3pzq:"fhovq9v",sj55zd:"f1s2aq7o",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"]},brand:{Bceei9c:"fdrzuqr",De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o",g2u3we:"fgig46g",h3c5rm:["f1mxt3zg","fziff3p"],B9xav0g:"f250w3l",zhjwy3:["fziff3p","f1mxt3zg"]}},{d:[".fdrzuqr{cursor:not-allowed;}",".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fgig46g{border-top-color:var(--colorTransparentStrokeDisabled);}",".f1mxt3zg{border-right-color:var(--colorTransparentStrokeDisabled);}",".fziff3p{border-left-color:var(--colorTransparentStrokeDisabled);}",".f250w3l{border-bottom-color:var(--colorTransparentStrokeDisabled);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}"]}),XQ=Y({medium:{uwmqm3:["f1rtp3s9","f18k1jr3"]},small:{uwmqm3:["f15vdbe4","fwiuce9"]},"extra-small":{uwmqm3:["f15vdbe4","fwiuce9"]}},{d:[".f1rtp3s9{padding-left:7px;}",".f18k1jr3{padding-right:7px;}",".f15vdbe4{padding-left:5px;}",".fwiuce9{padding-right:5px;}"]}),YQ=Y({medium:{z189sj:["f18k1jr3","f1rtp3s9"]},small:{z189sj:["fwiuce9","f15vdbe4"]},"extra-small":{z189sj:["fwiuce9","f15vdbe4"]}},{d:[".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}"]}),wz=Y({base:{Bw0ie65:0,Br312pm:0,nk6f5a:0,Ijaq50:0,Bq1tomu:"fujjg13",mc9l5x:"f22iagw",B7ck84d:"f1e4lqlz"},medium:{uwmqm3:["f1rtp3s9","f18k1jr3"],z189sj:["f7x41pl","fruq291"],a9b677:"f64fuq3",Be2twd7:"fe5j1ua"},small:{uwmqm3:["f15vdbe4","fwiuce9"],z189sj:["ffczdla","fgiv446"],a9b677:"fjw5fx7",Be2twd7:"f4ybsrx"},"extra-small":{uwmqm3:["f15vdbe4","fwiuce9"],z189sj:["ffczdla","fgiv446"],a9b677:"frx94fk",Be2twd7:"f1ugzwwg"}},{d:[[".fujjg13{grid-area:media;}",{p:-1}],".f22iagw{display:flex;}",".f1e4lqlz{box-sizing:content-box;}",".f1rtp3s9{padding-left:7px;}",".f18k1jr3{padding-right:7px;}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f64fuq3{width:20px;}",".fe5j1ua{font-size:20px;}",".f15vdbe4{padding-left:5px;}",".fwiuce9{padding-right:5px;}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".fjw5fx7{width:16px;}",".f4ybsrx{font-size:16px;}",".frx94fk{width:12px;}",".f1ugzwwg{font-size:12px;}"]}),kz=Y({base:{Bw0ie65:0,Br312pm:0,nk6f5a:0,Ijaq50:0,Bq1tomu:"fujjg13",mc9l5x:"f22iagw",uwmqm3:["f10xn8zz","f136y8j8"]},medium:{z189sj:["f1vdfbxk","f1f5gg8d"]},small:{z189sj:["fdw0yi8","fk8j09s"]},"extra-small":{z189sj:["fdw0yi8","fk8j09s"]}},{d:[[".fujjg13{grid-area:media;}",{p:-1}],".f22iagw{display:flex;}",".f10xn8zz{padding-left:1px;}",".f136y8j8{padding-right:1px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}"]}),JQ=Y({base:{Bw0ie65:0,Br312pm:0,nk6f5a:0,Ijaq50:0,Bq1tomu:"f1k1gsvr",mc9l5x:"f22iagw",Bahaeuw:"f1v3eptx",Boo3t63:"f1rfz71x"},medium:{uwmqm3:["fruq291","f7x41pl"],z189sj:["f18k1jr3","f1rtp3s9"],Be2twd7:"fe5j1ua"},small:{uwmqm3:["fgiv446","ffczdla"],z189sj:["fwiuce9","f15vdbe4"],Be2twd7:"f4ybsrx"},"extra-small":{uwmqm3:["fgiv446","ffczdla"],z189sj:["fwiuce9","f15vdbe4"],Be2twd7:"f1ugzwwg"},filled:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"},outline:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"},brand:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"},selected:{Bi91k9c:"f1rq72xc",lj723h:"f18otbis"}},{d:[[".f1k1gsvr{grid-area:dismissIcon;}",{p:-1}],".f22iagw{display:flex;}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fe5j1ua{font-size:20px;}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}",".f4ybsrx{font-size:16px;}",".f1ugzwwg{font-size:12px;}"],m:[["@media (forced-colors: active){.f1v3eptx:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1rfz71x:active{color:Highlight;}}",{m:"(forced-colors: active)"}]],h:[".f8491dx:hover{cursor:pointer;}",".f3ymbdj:hover{color:var(--colorCompoundBrandForeground1Hover);}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}"],a:[".fryz5bw:active{color:var(--colorCompoundBrandForeground1Pressed);}",".f18otbis:active{color:var(--colorNeutralForegroundOnBrand);}"]}),Sz=Y({base:{Huce71:"fz5stix",uwmqm3:["fgiv446","ffczdla"],z189sj:["ffczdla","fgiv446"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},withoutSecondaryText:{Br312pm:"faqcfhe",Ijaq50:"f1q3ipgb",nk6f5a:"fc0ab3q",Byoj8tv:"f1g03r3y"},withSecondaryText:{Bw0ie65:0,Br312pm:0,nk6f5a:0,Ijaq50:0,Bq1tomu:"f1ebragv",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",B6of3ja:"f1ryq6si"}},{d:[".fz5stix{white-space:nowrap;}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".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);}",".faqcfhe{grid-column-start:primary;}",".f1q3ipgb{grid-row-start:primary;}",".fc0ab3q{grid-row-end:secondary;}",".f1g03r3y{padding-bottom:var(--spacingHorizontalXXS);}",[".f1ebragv{grid-area:primary;}",{p:-1}],".f1ryq6si{margin-top:-2px;}"]}),Bz=Be("r7hv1ps","rnrslm9",[".r7hv1ps{grid-area:secondary;padding-left:var(--spacingHorizontalXXS);padding-right:var(--spacingHorizontalXXS);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);white-space:nowrap;}",".rnrslm9{grid-area:secondary;padding-right:var(--spacingHorizontalXXS);padding-left:var(--spacingHorizontalXXS);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);white-space:nowrap;}"]),QQ=e=>{"use no memo";const t=UQ(),r=GQ(),o=ZQ(),n=KQ(),a=XQ(),i=YQ(),l=wz(),d=kz(),f=JQ(),p=Sz(),h=Bz(),{disabled:v,shape:y,size:x,appearance:b,selected:k}=e;return e.root.className=F(ml.root,y==="rounded"?t:r,v?n[b]:o[b],k&&!v&&o.selected,o[x],!e.media&&!e.icon&&a[x],!e.dismissIcon&&i[x],e.root.className),e.media&&(e.media.className=F(ml.media,d.base,d[x],e.media.className)),e.icon&&(e.icon.className=F(ml.icon,l.base,l[x],e.icon.className)),e.primaryText&&(e.primaryText.className=F(ml.primaryText,p.base,p[x],e.secondaryText?p.withSecondaryText:p.withoutSecondaryText,e.primaryText.className)),e.secondaryText&&(e.secondaryText.className=F(ml.secondaryText,h,e.secondaryText.className)),e.dismissIcon&&(e.dismissIcon.className=F(ml.dismissIcon,f.base,f[x],!v&&f[b],k&&!v&&f.selected,e.dismissIcon.className)),e};function jz(e){const{avatarSize:t,avatarShape:r}=e;return{avatar:m.useMemo(()=>({size:t,shape:r}),[r,t])}}const hm=m.forwardRef((e,t)=>{const r=VQ(e,t);return QQ(r),xe("useTagStyles_unstable")(r),WQ(r,jz(r))});hm.displayName="Tag";const eee=(e,t)=>{const{handleTagDismiss:r,handleTagSelect:o,disabled:n,selectedValues:a=[]}=jg(),i=bt("fui-InteractionTag-",e.id),l=bt("fui-InteractionTagPrimary-"),{disabled:d=!1,selected:f=!1,value:p=i}=e;return{disabled:n?!0:d,handleTagDismiss:r,handleTagSelect:o,interactionTagPrimaryId:l,selected:a.includes(p)||f,selectedValues:a,value:p,components:{root:"div"},root:me($e("div",{ref:t,...e,disabled:n?!0:d,id:i}),{elementType:"div"})}},tee=(e,t)=>{const{size:r,appearance:o}=jg(),{appearance:n=o??"filled",shape:a="rounded",size:i=r}=e;return{...eee(e,t),appearance:n,shape:a,size:i}},Cz=m.createContext(void 0),ree={appearance:"filled",disabled:!1,handleTagDismiss:()=>({}),handleTagSelect:()=>({}),interactionTagPrimaryId:"",selected:!1,selectedValues:[],shape:"rounded",size:"medium",value:""},oee=Cz.Provider,Cg=()=>{var e;return(e=m.useContext(Cz))!==null&&e!==void 0?e:ree},nee=(e,t)=>G(oee,{value:t.interactionTag,children:G(e.root,{})}),aee={root:"fui-InteractionTag"},iee=Be("r1y684pp",null,[".r1y684pp{display:inline-flex;align-items:center;box-sizing:border-box;width:fit-content;}"]),see=Y({rounded:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5"},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9"},medium:{Bqenvij:"f1d2rq10"},small:{Bqenvij:"frvgh55"},"extra-small":{Bqenvij:"fjamq6b"}},{d:[[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}],".f1d2rq10{height:32px;}",".frvgh55{height:24px;}",".fjamq6b{height:20px;}"]}),lee=e=>{"use no memo";const t=iee(),r=see(),{shape:o,size:n}=e;return e.root.className=F(aee.root,t,r[o],r[n],e.root.className),e};function cee(e){const{appearance:t,disabled:r,handleTagDismiss:o,handleTagSelect:n,interactionTagPrimaryId:a,selected:i,selectedValues:l,shape:d,size:f,value:p}=e;return{interactionTag:m.useMemo(()=>({appearance:t,disabled:r,handleTagDismiss:o,handleTagSelect:n,interactionTagPrimaryId:a,selected:i,selectedValues:l,shape:d,size:f,value:p}),[t,r,o,n,a,i,l,d,f,p])}}const Nz=m.forwardRef((e,t)=>{const r=tee(e,t);return lee(r),xe("useInteractionTagStyles_unstable")(r),nee(r,cee(r))});Nz.displayName="InteractionTag";const uee={medium:28,small:20,"extra-small":16},dee={rounded:"square",circular:"circular"},fee=(e,t)=>{const{disabled:r,handleTagSelect:o,interactionTagPrimaryId:n,selected:a,selectedValues:i,value:l}=Cg(),{hasSecondaryAction:d=!1}=e,f=de(Re(e?.onClick,p=>o?.(p,{type:"click",event:p,value:l,selectedValues:i})));return{disabled:r,hasSecondaryAction:d,selected:a,components:{root:"button",media:"span",icon:"span",primaryText:"span",secondaryText:"span"},root:me($e("button",{ref:t,disabled:r,id:n,...o!==void 0&&{"aria-pressed":a},onClick:f,...e}),{elementType:"button"}),media:ke(e.media,{elementType:"span"}),icon:ke(e.icon,{elementType:"span"}),primaryText:ke(e.primaryText,{renderByDefault:!0,defaultProps:{children:e.children},elementType:"span"}),secondaryText:ke(e.secondaryText,{elementType:"span"})}},pee=(e,t)=>{const{appearance:r,shape:o,size:n}=Cg();return{...fee(e,t),appearance:r,avatarShape:dee[o],avatarSize:uee[n],shape:o,size:n}},mee=(e,t)=>Ie(e.root,{children:[e.media&&G(ky,{value:t.avatar,children:G(e.media,{})}),e.icon&&G(e.icon,{}),e.primaryText&&G(e.primaryText,{}),e.secondaryText&&G(e.secondaryText,{})]}),uu={root:"fui-InteractionTagPrimary",media:"fui-InteractionTagPrimary__media",icon:"fui-InteractionTagPrimary__icon",primaryText:"fui-InteractionTagPrimary__primaryText",secondaryText:"fui-InteractionTagPrimary__secondaryText"},gee=Be("r22quyo","r1yd8tpa",{r:['.r22quyo{color:inherit;font-family:inherit;padding:0px;border-style:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-align:unset;background-color:transparent;display:inline-grid;height:100%;align-items:center;grid-template-areas:"media primary " "media secondary";border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusMedium);}',".r22quyo[data-fui-focus-visible]{outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);z-index:1;}",'.r1yd8tpa{color:inherit;font-family:inherit;padding:0px;border-style:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-align:unset;background-color:transparent;display:inline-grid;height:100%;align-items:center;grid-template-areas:"media primary " "media secondary";border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusMedium);}',".r1yd8tpa[data-fui-focus-visible]{outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);z-index:1;}"],s:['@media (forced-colors: active){.r22quyo{position:relative;}.r22quyo::before{content:"";border-top:var(--strokeWidthThin) solid;position:absolute;inset:-1px;border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);}}','@media (forced-colors: active){.r1yd8tpa{position:relative;}.r1yd8tpa::before{content:"";border-top:var(--strokeWidthThin) solid;position:absolute;inset:-1px;border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);}}']}),hee=Be("r132q0f6","r15qe99u",{r:['.r132q0f6{color:inherit;font-family:inherit;padding:0px;border-style:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-align:unset;background-color:transparent;display:inline-grid;height:100%;align-items:center;grid-template-areas:"media primary " "media secondary";border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusCircular);}',".r132q0f6[data-fui-focus-visible]{outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);z-index:1;}",'.r15qe99u{color:inherit;font-family:inherit;padding:0px;border-style:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-align:unset;background-color:transparent;display:inline-grid;height:100%;align-items:center;grid-template-areas:"media primary " "media secondary";border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusCircular);}',".r15qe99u[data-fui-focus-visible]{outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);z-index:1;}"],s:['@media (forced-colors: active){.r132q0f6{position:relative;}.r132q0f6::before{content:"";border-top:var(--strokeWidthThin) solid;border-left:var(--strokeWidthThin) solid;position:absolute;inset:-1px;border-top-left-radius:var(--borderRadiusCircular);border-bottom-left-radius:var(--borderRadiusCircular);}}','@media (forced-colors: active){.r15qe99u{position:relative;}.r15qe99u::before{content:"";border-top:var(--strokeWidthThin) solid;border-right:var(--strokeWidthThin) solid;position:absolute;inset:-1px;border-top-right-radius:var(--borderRadiusCircular);border-bottom-right-radius:var(--borderRadiusCircular);}}']}),vee=Y({withoutSecondaryAction:{Bvgf1ty:"f135udas",Cqojjj:0,dd5wkx:0,Bdzpf8n:0,ibz501:["f1i3lrd2","fbpt94e"],Bs8828g:["f14bn3u","fdhx3t9"],Bn0yx1x:["fu87gj3","f631p13"]}},{m:[["@media (forced-colors: active){.f135udas{position:relative;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1i3lrd2::before{border-right:var(--strokeWidthThin) solid transparent;}.fbpt94e::before{border-left:var(--strokeWidthThin) solid transparent;}}",{p:-1,m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14bn3u::before{border-top-right-radius:var(--borderRadiusCircular);}.fdhx3t9::before{border-top-left-radius:var(--borderRadiusCircular);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f631p13::before{border-bottom-left-radius:var(--borderRadiusCircular);}.fu87gj3::before{border-bottom-right-radius:var(--borderRadiusCircular);}}",{m:"(forced-colors: active)"}]]}),bee=Y({filled:{De3pzq:"f16xq7d1",sj55zd:"fkfq4zb",eoavqd:"f8491dx",Jwef8y:"f1h648pw",Bi91k9c:"fnwyq0v",ecr2s2:"fwdzr64",lj723h:"flvvhsy",Bbkh6qg:"fkiggi6",Cnge2b:"f8zknr1"},outline:{De3pzq:"fhovq9v",sj55zd:"fkfq4zb",g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"],eoavqd:"f8491dx",Jwef8y:"f1t94bn6",Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",I6i3kg:"fqbfmpb",Bmfj8id:"fuxngvv",ecr2s2:"f1wfn5kd",lj723h:"flvvhsy",Bnrwwps:"fvpl5sy",weioyw:"f1xblose",Bpre390:"f8upcvr",Bbkh6qg:"fkiggi6",Cnge2b:"f8zknr1"},brand:{De3pzq:"f16xkysk",sj55zd:"faj9fo0",eoavqd:"f8491dx",Jwef8y:"f1yj72w4",Bi91k9c:"f3ymbdj",ecr2s2:"fy3sl2y",lj723h:"fryz5bw",Bbkh6qg:"fkiggi6",Cnge2b:"f8zknr1"},selected:{Bgh53k4:0,B2eet1l:0,De3pzq:0,Bcmaq0h:0,gk0gix:0,B20660r:0,B8a6bjv:0,Bpptf2m:0,e5kdtc:0,Bkjc3bi:0,ayd6f0:"f1tdnksq",sj55zd:"f1phragk",g2u3we:"fk9qgl1",h3c5rm:["f1vfbj5f","f1qpacp7"],B9xav0g:"fdf0ba2",zhjwy3:["f1qpacp7","f1vfbj5f"],B8gzw0y:"f1h3a8gf",By8wz76:"f1nz3ub2",B7iucu3:"fqc85l4",Jwef8y:"f15wkkf3",Bi91k9c:"f1rq72xc",I6i3kg:"f10jvnl4",Bbkh6qg:"f1tx4pjd",Bahaeuw:"fu37p9p",ecr2s2:"fsp1bjw",lj723h:"f18otbis",weioyw:"f3wpj5r",Cnge2b:"f16z8z4r",Boo3t63:"f7ydw7o"},medium:{z189sj:["f18k1jr3","f1rtp3s9"]},small:{z189sj:["fwiuce9","f15vdbe4"]},"extra-small":{z189sj:["fwiuce9","f15vdbe4"],qhf8xq:"f10pi13n",Ie5t1m:"fru8nlv",G6hvz8:"f5nasji",wgw0td:"f45hpys",Bbwa3xj:["f1sbfcjn","f1le4i14"],m3mfg4:"fq6y7a1",B9s7hj8:"f1jr4pq3",B9e1dac:"f1tfer7m"}},{d:[".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".faj9fo0{color:var(--colorBrandForeground2);}",[".f1tdnksq{background:var(--colorBrandBackground);}",{p:-2}],".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fk9qgl1{border-top-color:var(--colorBrandStroke1);}",".f1vfbj5f{border-right-color:var(--colorBrandStroke1);}",".f1qpacp7{border-left-color:var(--colorBrandStroke1);}",".fdf0ba2{border-bottom-color:var(--colorBrandStroke1);}",".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}",".f10pi13n{position:relative;}"],h:[".f8491dx:hover{cursor:pointer;}",".f1h648pw:hover{background-color:var(--colorNeutralBackground3Hover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fqbfmpb:hover .fui-Icon-filled{color:var(--colorNeutralForeground2BrandHover);}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".f1yj72w4:hover{background-color:var(--colorBrandBackground2Hover);}",".f3ymbdj:hover{color:var(--colorCompoundBrandForeground1Hover);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".f10jvnl4:hover .fui-Icon-filled{color:var(--colorNeutralForegroundOnBrand);}"],a:[".fwdzr64:active{background-color:var(--colorNeutralBackground3Pressed);}",".flvvhsy:active{color:var(--colorNeutralForeground2Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}",".fvpl5sy:active .fui-Icon-filled{display:inline;}",".f1xblose:active .fui-Icon-filled{color:var(--colorNeutralForeground2BrandPressed);}",".f8upcvr:active .fui-Icon-regular{display:none;}",".fy3sl2y:active{background-color:var(--colorBrandBackground2Pressed);}",".fryz5bw:active{color:var(--colorCompoundBrandForeground1Pressed);}",".fsp1bjw:active{background-color:var(--colorBrandBackgroundPressed);}",".f18otbis:active{color:var(--colorNeutralForegroundOnBrand);}",".f3wpj5r:active .fui-Icon-filled{color:var(--colorNeutralForegroundOnBrand);}"],m:[["@media (forced-colors: active){.fkiggi6:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f8zknr1:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nz3ub2{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fqc85l4{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tx4pjd:hover{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fu37p9p:hover{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16z8z4r:active{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f7ydw7o:active{color:HighlightText;}}",{m:"(forced-colors: active)"}],['@media (forced-colors: none){.fru8nlv:before,.fru8nlv:after{content:"";}}',{m:"(forced-colors: none)"}],["@media (forced-colors: none){.f5nasji:before,.f5nasji:after{position:absolute;}}",{m:"(forced-colors: none)"}],["@media (forced-colors: none){.f45hpys:before,.f45hpys:after{height:2px;}}",{m:"(forced-colors: none)"}],["@media (forced-colors: none){.f1le4i14:before,.f1le4i14:after{right:0;}.f1sbfcjn:before,.f1sbfcjn:after{left:0;}}",{m:"(forced-colors: none)"}],["@media (forced-colors: none){.fq6y7a1:before,.fq6y7a1:after{width:100%;}}",{m:"(forced-colors: none)"}],["@media (forced-colors: none){.f1jr4pq3:before{bottom:100%;}}",{m:"(forced-colors: none)"}],["@media (forced-colors: none){.f1tfer7m:after{top:100%;}}",{m:"(forced-colors: none)"}]]}),yee=Y({filled:{Bceei9c:"fdrzuqr",De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o",g2u3we:"fgig46g",h3c5rm:["f1mxt3zg","fziff3p"],B9xav0g:"f250w3l",zhjwy3:["fziff3p","f1mxt3zg"]},outline:{Bceei9c:"fdrzuqr",De3pzq:"fhovq9v",sj55zd:"f1s2aq7o",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"]},brand:{Bceei9c:"fdrzuqr",De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o",g2u3we:"fgig46g",h3c5rm:["f1mxt3zg","fziff3p"],B9xav0g:"f250w3l",zhjwy3:["fziff3p","f1mxt3zg"]}},{d:[".fdrzuqr{cursor:not-allowed;}",".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fgig46g{border-top-color:var(--colorTransparentStrokeDisabled);}",".f1mxt3zg{border-right-color:var(--colorTransparentStrokeDisabled);}",".fziff3p{border-left-color:var(--colorTransparentStrokeDisabled);}",".f250w3l{border-bottom-color:var(--colorTransparentStrokeDisabled);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}"]}),xee=Y({medium:{uwmqm3:["f1rtp3s9","f18k1jr3"]},small:{uwmqm3:["f15vdbe4","fwiuce9"]},"extra-small":{uwmqm3:["f15vdbe4","fwiuce9"]}},{d:[".f1rtp3s9{padding-left:7px;}",".f18k1jr3{padding-right:7px;}",".f15vdbe4{padding-left:5px;}",".fwiuce9{padding-right:5px;}"]}),wee=Y({base:{B7oj6ja:["f3fg2lr","f13av6d4"],Bbmb7ep:["fzi6hpg","fyowgf4"],vrafjx:["f1n71otn","f1deefiw"],B6xbmo0:["f146y5a9","f1k2ftg"],kdpuga:["f1ndz5i7","f1co4qro"],Bs8828g:["fyvfifd","fbkbt8g"]},medium:{z189sj:["f1vdfbxk","f1f5gg8d"]},small:{z189sj:["fdw0yi8","fk8j09s"]},"extra-small":{z189sj:["fdw0yi8","fk8j09s"]}},{d:[".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f146y5a9[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusNone);}",".f1k2ftg[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusNone);}",".f1ndz5i7[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusNone);}",".f1co4qro[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusNone);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}"],m:[["@media (forced-colors: active){.fbkbt8g::before{border-top-left-radius:0;}.fyvfifd::before{border-top-right-radius:0;}}",{m:"(forced-colors: active)"}]]}),kee=e=>{"use no memo";const t=gee(),r=hee(),o=bee(),n=yee(),a=xee(),i=wee(),l=wz(),d=kz(),f=Sz(),p=Bz(),h=vee(),{disabled:v,shape:y,size:x,appearance:b,selected:k}=e;return e.root.className=F(uu.root,y==="rounded"?t:r,y==="circular"&&!e.hasSecondaryAction&&h.withoutSecondaryAction,v?n[b]:o[b],k&&!v&&o.selected,o[x],!e.media&&!e.icon&&a[x],e.hasSecondaryAction&&i.base,e.hasSecondaryAction&&i[x],e.root.className),e.media&&(e.media.className=F(uu.media,d.base,d[x],e.media.className)),e.icon&&(e.icon.className=F(uu.icon,l.base,l[x],e.icon.className)),e.primaryText&&(e.primaryText.className=F(uu.primaryText,f.base,f[x],e.secondaryText?f.withSecondaryText:f.withoutSecondaryText,e.primaryText.className)),e.secondaryText&&(e.secondaryText.className=F(uu.secondaryText,p,e.secondaryText.className)),e},zz=m.forwardRef((e,t)=>{const r=pee(e,t);return kee(r),xe("useInteractionTagPrimaryStyles_unstable")(r),mee(r,jz(r))});zz.displayName="InteractionTagPrimary";const See=(e,t)=>{const{disabled:r,handleTagDismiss:o,interactionTagPrimaryId:n,selected:a,value:i}=Cg(),l=bt("fui-InteractionTagSecondary-",e.id),d=de(p=>{var h;e==null||(h=e.onClick)===null||h===void 0||h.call(e,p),p.defaultPrevented||o?.(p,{value:i})}),f=de(p=>{var h;e==null||(h=e.onKeyDown)===null||h===void 0||h.call(e,p),!p.defaultPrevented&&(p.key===uy||p.key===ag)&&o?.(p,{value:i})});return{disabled:r,selected:a,components:{root:"button"},root:me($e("button",{type:"button",disabled:r,ref:t,"aria-labelledby":`${n} ${l}`,...e,id:l,onClick:d,onKeyDown:f}),{elementType:"button"})}},Bee=(e,t)=>{var r;const{appearance:o,shape:n,size:a}=Cg(),i=See(e,t);var l;return(l=(r=i.root).children)!==null&&l!==void 0||(r.children=m.createElement(nc,null)),{...i,appearance:o,shape:n,size:a}},jee=e=>G(e.root,{}),Tz={root:"fui-InteractionTagSecondary"},Cee=Be("rxqbxwz","rdjx360",[".rxqbxwz{color:inherit;font-family:inherit;padding:0px;border-style:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-align:unset;background-color:transparent;display:flex;height:100%;align-items:center;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-left-color:var(--colorNeutralStroke1);border-top-left-radius:var(--borderRadiusNone);border-bottom-left-radius:var(--borderRadiusNone);}",".rxqbxwz[data-fui-focus-visible]{outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}",".rdjx360{color:inherit;font-family:inherit;padding:0px;border-style:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-align:unset;background-color:transparent;display:flex;height:100%;align-items:center;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-right-color:var(--colorNeutralStroke1);border-top-right-radius:var(--borderRadiusNone);border-bottom-right-radius:var(--borderRadiusNone);}",".rdjx360[data-fui-focus-visible]{outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}"]),Nee=Y({filled:{De3pzq:"f16xq7d1",sj55zd:"fkfq4zb",B4j52fo:"fre7gi1",Bn0qgzm:"fqdk4by",eoavqd:"f8491dx",Jwef8y:"f1h648pw",Bi91k9c:"f139oj5f",ecr2s2:"fwdzr64",lj723h:"f19au66r",kr9cjb:"fmvl6o9",u9orzk:"fb8cdra",Bbkh6qg:"fkiggi6",Cnge2b:"f8zknr1"},outline:{De3pzq:"fhovq9v",sj55zd:"fkfq4zb",g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"],eoavqd:"f8491dx",Jwef8y:"f1t94bn6",Bi91k9c:"f139oj5f",ecr2s2:"f1wfn5kd",lj723h:"f19au66r",Bbkh6qg:"fkiggi6",Cnge2b:"f8zknr1"},brand:{De3pzq:"f16xkysk",sj55zd:"faj9fo0",zhjwy3:["f1sl6hi9","f1c8dzaj"],B4j52fo:"fre7gi1",Bn0qgzm:"fqdk4by",eoavqd:"f8491dx",Jwef8y:"f1yj72w4",Bi91k9c:"f3ymbdj",ecr2s2:"fy3sl2y",lj723h:"fryz5bw",kr9cjb:"fmvl6o9",u9orzk:"fb8cdra",Bbkh6qg:"fkiggi6",Cnge2b:"f8zknr1"},selected:{Bgh53k4:0,B2eet1l:0,De3pzq:0,Bcmaq0h:0,gk0gix:0,B20660r:0,B8a6bjv:0,Bpptf2m:0,e5kdtc:0,Bkjc3bi:0,ayd6f0:"f1tdnksq",sj55zd:"f1phragk",g2u3we:"fk9qgl1",h3c5rm:["f1vfbj5f","f1qpacp7"],B9xav0g:"fdf0ba2",zhjwy3:["f4j9k2g","f1mg2euo"],B8gzw0y:"f1h3a8gf",By8wz76:"f1nz3ub2",B7iucu3:"fqc85l4",Jwef8y:"f15wkkf3",Bi91k9c:"f1rq72xc",Bbkh6qg:"f1tx4pjd",Bahaeuw:"fu37p9p",ecr2s2:"fsp1bjw",lj723h:"f18otbis",Cnge2b:"f16z8z4r",Boo3t63:"f7ydw7o"},rounded:{B7oj6ja:["f1jar5jt","fyu767a"],Bbmb7ep:["f1aa9q02","f16jpd5f"]},circular:{B7oj6ja:["f1djnp8u","f1s8kh49"],Bbmb7ep:["f8fbkgy","f1nfllo7"]},medium:{Be2twd7:"fe5j1ua",uwmqm3:["f15vdbe4","fwiuce9"],z189sj:["fwiuce9","f15vdbe4"]},small:{Be2twd7:"f4ybsrx",uwmqm3:["f2lugmd","f6zblan"],z189sj:["f6zblan","f2lugmd"]},"extra-small":{Be2twd7:"f1ugzwwg",uwmqm3:["f15vdbe4","fwiuce9"],z189sj:["fwiuce9","f15vdbe4"],qhf8xq:"f10pi13n",Ie5t1m:"fru8nlv",G6hvz8:"f5nasji",wgw0td:"f45hpys",Bbwa3xj:["f1sbfcjn","f1le4i14"],m3mfg4:"fq6y7a1",B9s7hj8:"f1jr4pq3",B9e1dac:"f1tfer7m"}},{d:[".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".fre7gi1{border-top-width:0;}",".fqdk4by{border-bottom-width:0;}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".faj9fo0{color:var(--colorBrandForeground2);}",".f1sl6hi9{border-left-color:var(--colorBrandStroke2);}",".f1c8dzaj{border-right-color:var(--colorBrandStroke2);}",[".f1tdnksq{background:var(--colorBrandBackground);}",{p:-2}],".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fk9qgl1{border-top-color:var(--colorBrandStroke1);}",".f1vfbj5f{border-right-color:var(--colorBrandStroke1);}",".f1qpacp7{border-left-color:var(--colorBrandStroke1);}",".fdf0ba2{border-bottom-color:var(--colorBrandStroke1);}",".f4j9k2g{border-left-color:var(--colorNeutralStrokeOnBrand2);}",".f1mg2euo{border-right-color:var(--colorNeutralStrokeOnBrand2);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".fe5j1ua{font-size:20px;}",".f15vdbe4{padding-left:5px;}",".fwiuce9{padding-right:5px;}",".f4ybsrx{font-size:16px;}",".f2lugmd{padding-left:3px;}",".f6zblan{padding-right:3px;}",".f1ugzwwg{font-size:12px;}",".f10pi13n{position:relative;}"],h:[".f8491dx:hover{cursor:pointer;}",".f1h648pw:hover{background-color:var(--colorNeutralBackground3Hover);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1yj72w4:hover{background-color:var(--colorBrandBackground2Hover);}",".f3ymbdj:hover{color:var(--colorCompoundBrandForeground1Hover);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}"],a:[".fwdzr64:active{background-color:var(--colorNeutralBackground3Pressed);}",".f19au66r:active{color:var(--colorNeutralForeground2BrandPressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}",".fy3sl2y:active{background-color:var(--colorBrandBackground2Pressed);}",".fryz5bw:active{color:var(--colorCompoundBrandForeground1Pressed);}",".fsp1bjw:active{background-color:var(--colorBrandBackgroundPressed);}",".f18otbis:active{color:var(--colorNeutralForegroundOnBrand);}"],m:[["@media (forced-colors: active){.fmvl6o9{border-top-width:var(--strokeWidthThin);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb8cdra{border-bottom-width:var(--strokeWidthThin);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkiggi6:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f8zknr1:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nz3ub2{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fqc85l4{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tx4pjd:hover{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fu37p9p:hover{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16z8z4r:active{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f7ydw7o:active{color:HighlightText;}}",{m:"(forced-colors: active)"}],['@media (forced-colors: none){.fru8nlv:before,.fru8nlv:after{content:"";}}',{m:"(forced-colors: none)"}],["@media (forced-colors: none){.f5nasji:before,.f5nasji:after{position:absolute;}}",{m:"(forced-colors: none)"}],["@media (forced-colors: none){.f45hpys:before,.f45hpys:after{height:2px;}}",{m:"(forced-colors: none)"}],["@media (forced-colors: none){.f1le4i14:before,.f1le4i14:after{right:0;}.f1sbfcjn:before,.f1sbfcjn:after{left:0;}}",{m:"(forced-colors: none)"}],["@media (forced-colors: none){.fq6y7a1:before,.fq6y7a1:after{width:100%;}}",{m:"(forced-colors: none)"}],["@media (forced-colors: none){.f1jr4pq3:before{bottom:100%;}}",{m:"(forced-colors: none)"}],["@media (forced-colors: none){.f1tfer7m:after{top:100%;}}",{m:"(forced-colors: none)"}]]}),zee=Y({filled:{Bceei9c:"fdrzuqr",De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o",g2u3we:"fgig46g",h3c5rm:["f1mxt3zg","fziff3p"],B9xav0g:"f250w3l",zhjwy3:["fy0fskl","f15xbau"]},outline:{Bceei9c:"fdrzuqr",De3pzq:"fhovq9v",sj55zd:"f1s2aq7o",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"]},brand:{Bceei9c:"fdrzuqr",De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o",g2u3we:"fgig46g",h3c5rm:["f1mxt3zg","fziff3p"],B9xav0g:"f250w3l",zhjwy3:["fy0fskl","f15xbau"]}},{d:[".fdrzuqr{cursor:not-allowed;}",".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fgig46g{border-top-color:var(--colorTransparentStrokeDisabled);}",".f1mxt3zg{border-right-color:var(--colorTransparentStrokeDisabled);}",".fziff3p{border-left-color:var(--colorTransparentStrokeDisabled);}",".f250w3l{border-bottom-color:var(--colorTransparentStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}"]}),Tee=e=>{"use no memo";const t=Cee(),r=Nee(),o=zee(),{disabled:n,selected:a,shape:i,size:l,appearance:d}=e;return e.root.className=F(Tz.root,t,n?o[d]:r[d],r[i],r[l],a&&!n&&r.selected,e.root.className),e},_z=m.forwardRef((e,t)=>{const r=Bee(e,t);return Tee(r),xe("useInteractionTagSecondaryStyles_unstable")(r),jee(r)});_z.displayName="InteractionTagSecondary";const _ee=(e,t)=>{const{onDismiss:r,disabled:o=!1,defaultSelectedValues:n,dismissible:a=!1,role:i="toolbar",onTagSelect:l,selectedValues:d,...f}=e,p=m.useRef(void 0),{targetDocument:h}=Ve(),{findNextFocusable:v,findPrevFocusable:y}=hn(),[x,b]=Xt({defaultState:n,state:d,initialState:[]}),k=de((B,C)=>{var z;r?.(B,C);const R=h?.activeElement;if(!((z=p.current)===null||z===void 0)&&z.contains(R)){const E=v(R,{container:p.current});if(E){E.focus();return}if(R?.className.includes(Tz.root)){const D=y(R.parentElement,{container:p.current});D?.focus()}else{const D=y(R,{container:p.current});D?.focus()}}}),S=de(Re(l,(B,C)=>{x.includes(C.value)?b(x.filter(z=>z!==C.value)):b([...x,C.value])})),N=Ho({circular:!0,axis:"both",memorizeCurrent:!0});return{handleTagDismiss:k,handleTagSelect:l?S:void 0,selectedValues:x,role:i,disabled:o,dismissible:a,components:{root:"div"},root:me($e("div",{ref:Le(t,p),role:i,"aria-disabled":o,...N,...f}),{elementType:"div"})}},Rz=(e,t)=>{const{size:r="medium",appearance:o="filled"}=e;return{..._ee(e,t),size:r,appearance:o}},Dz=(e,t)=>G(OQ,{value:t.tagGroup,children:G(e.root,{})}),Ree={root:"fui-TagGroup"},Dee=Y({base:{mc9l5x:"ftuwxu6"},medium:{i8kkvl:"fsnqrgy"},small:{i8kkvl:"f1rjii52"},"extra-small":{i8kkvl:"f1ufnopg"}},{d:[".ftuwxu6{display:inline-flex;}",".fsnqrgy{column-gap:var(--spacingHorizontalS);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}"]}),Ez=e=>{"use no memo";const t=Dee(),{size:r}=e;return e.root.className=F(Ree.root,t.base,t[r],e.root.className),e};function Pz(e){const{handleTagDismiss:t,handleTagSelect:r,selectedValues:o,size:n,disabled:a,appearance:i,dismissible:l,role:d}=e;return{tagGroup:m.useMemo(()=>({handleTagDismiss:t,handleTagSelect:r,selectedValues:o,size:n,disabled:a,appearance:i,dismissible:l,role:d}),[t,r,o,n,a,i,l,d])}}const Mz=m.forwardRef((e,t)=>{const r=Rz(e,t);return Ez(r),xe("useTagGroupStyles_unstable")(r),Dz(r,Pz(r))});Mz.displayName="TagGroup";function Eee(e){switch(e){case"info":return m.createElement(lC,null);case"warning":return m.createElement(sC,null);case"error":return m.createElement(mC,null);case"success":return m.createElement(fC,null);default:return null}}function Pee(e=!1){const{targetDocument:t}=Ve(),r=m.useReducer(()=>({}),{})[1],o=m.useRef(!1),n=m.useRef(null),a=m.useRef(-1),i=m.useCallback(d=>{var f,p;const h=d[0];var v;const y=(v=h==null||(p=h.borderBoxSize)===null||p===void 0||(f=p[0])===null||f===void 0?void 0:f.inlineSize)!==null&&v!==void 0?v:h?.target.getBoundingClientRect().width;if(y===void 0||!h)return;const{target:x}=h;if(!qt(x))return;let b;if(o.current)a.current<y&&(b=!1);else{const k=x.scrollWidth;y<k&&(b=!0)}a.current=y,typeof b<"u"&&o.current!==b&&(o.current=b,r())},[r]),l=m.useCallback(d=>{var f;if(!e||!d||!t?.defaultView)return;(f=n.current)===null||f===void 0||f.disconnect();const p=t.defaultView,h=new p.ResizeObserver(i);n.current=h,h.observe(d,{box:"border-box"})},[t,i,e]);return m.useEffect(()=>()=>{var d;(d=n.current)===null||d===void 0||d.disconnect()},[]),{ref:l,reflowing:o.current}}const qz=m.createContext(void 0),Mee={className:"",nodeRef:m.createRef()};qz.Provider;const qee=()=>{var e;return(e=m.useContext(qz))!==null&&e!==void 0?e:Mee},Fee=(e,t)=>{const{layout:r="auto",intent:o="info",politeness:n}=e,a=n??o==="info"?"polite":"assertive",i=r==="auto",{ref:l,reflowing:d}=Pee(i),f=i?d?"multiline":"singleline":r,{className:p,nodeRef:h}=qee(),v=dg(),y=m.useRef(null),x=m.useRef(null),{announce:b}=NP(),k=bt();return m.useEffect(()=>{var S,N;const B=(S=x.current)===null||S===void 0?void 0:S.textContent,C=(N=y.current)===null||N===void 0?void 0:N.textContent,z=[B,C].filter(Boolean).join(",");b(z,{polite:a==="polite",alert:a==="assertive"})},[x,y,b,a]),{components:{root:"div",icon:"div",bottomReflowSpacer:"div"},root:me($e("div",{ref:Le(t,l,h,v),role:"group","aria-labelledby":k,...e}),{elementType:"div"}),icon:ke(e.icon,{renderByDefault:!0,elementType:"div"}),bottomReflowSpacer:ke(e.bottomReflowSpacer,{renderByDefault:f==="multiline",elementType:"div"}),layout:f,intent:o,transitionClassName:p,actionsRef:y,bodyRef:x,titleId:k}},Iee=(e,t)=>{const{shape:r="rounded",...o}=e,n=Fee(o,t);return{...n,shape:r,icon:ke(e.icon,{defaultProps:{children:Eee(n.intent)},renderByDefault:!0,elementType:"div"})}},Fz=m.createContext(void 0),Aee={titleId:"",layout:"singleline",actionsRef:m.createRef(),bodyRef:m.createRef()},Oee=Fz.Provider,Gy=()=>{var e;return(e=m.useContext(Fz))!==null&&e!==void 0?e:Aee},Lee=(e,t)=>G(Oee,{value:t.messageBar,children:Ie(e.root,{children:[e.icon&&G(e.icon,{}),e.root.children,e.bottomReflowSpacer&&G(e.bottomReflowSpacer,{})]})}),yv={root:"fui-MessageBar",icon:"fui-MessageBar__icon",bottomReflowSpacer:"fui-MessageBar__bottomReflowSpacer"},$ee=Be("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);}']),Hee=Be("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;}"]),Vee=Be("r1vx593n",null,[".r1vx593n{margin-bottom:var(--spacingVerticalS);grid-area:secondaryActions;}"]),Wee=Y({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}]]}),Uee=Y({info:{},error:{sj55zd:"f1ca9wz"},warning:{sj55zd:"f14a4cve"},success:{sj55zd:"f36rra6"}},{d:[".f1ca9wz{color:var(--colorStatusDangerForeground1);}",".f14a4cve{color:var(--colorStatusWarningForeground3);}",".f36rra6{color:var(--colorStatusSuccessForeground1);}"]}),Gee=Y({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);}"]}),Zee=e=>{"use no memo";const t=$ee(),r=Hee(),o=Uee(),n=Gee(),a=Vee(),i=Wee();return e.root.className=F(yv.root,t,e.layout==="multiline"&&i.rootMultiline,e.shape==="square"&&i.square,n[e.intent],e.root.className),e.icon&&(e.icon.className=F(yv.icon,r,o[e.intent],e.icon.className)),e.bottomReflowSpacer&&(e.bottomReflowSpacer.className=F(yv.bottomReflowSpacer,a)),e};function Kee(e){const{layout:t,actionsRef:r,bodyRef:o,titleId:n}=e;return{messageBar:m.useMemo(()=>({layout:t,actionsRef:r,bodyRef:o,titleId:n}),[t,r,o,n])}}const Ue=m.forwardRef((e,t)=>{const r=Iee(e,t);return Zee(r),xe("useMessageBarStyles_unstable")(r),Lee(r,Kee(r))});Ue.displayName="MessageBar";const Xee=(e,t)=>{const{titleId:r}=Gy();return{components:{root:"span"},root:me($e("span",{ref:t,id:r,...e}),{elementType:"span"})}},Yee=e=>G(e.root,{}),Jee={root:"fui-MessageBarTitle"},Qee=Be("r168xkm9",null,[".r168xkm9{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);}",'.r168xkm9::after{content:" ";}']),ete=e=>{"use no memo";const t=Qee();return e.root.className=F(Jee.root,t,e.root.className),e},Lt=m.forwardRef((e,t)=>{const r=Xee(e,t);return ete(r),xe("useMessageBarTitleStyles_unstable")(r),Yee(r)});Lt.displayName="MessageBarTitle";const tte=(e,t)=>{const{layout:r="singleline",actionsRef:o}=Gy();return{components:{root:"div",containerAction:"div"},containerAction:ke(e.containerAction,{renderByDefault:!1,elementType:"div"}),root:me($e("div",{ref:Le(t,o),...e}),{elementType:"div"}),layout:r,hasActions:!!e.children}},rte=(e,t)=>Ie(YH,{value:t.button,children:[e.layout==="multiline"&&e.containerAction&&G(e.containerAction,{},"containerAction"),G(e.root,{}),e.layout!=="multiline"&&e.containerAction&&G(e.containerAction,{},"containerAction")]}),gB={root:"fui-MessageBarActions",containerAction:"fui-MessageBarActions__containerAction"},ote=Be("r1t4x98y","r15utzv5",[".r1t4x98y{grid-area:secondaryActions;display:flex;column-gap:var(--spacingHorizontalM);padding-right:var(--spacingHorizontalM);}",".r15utzv5{grid-area:secondaryActions;display:flex;column-gap:var(--spacingHorizontalM);padding-left:var(--spacingHorizontalM);}"]),nte=Be("rgzw8nq","r13ur29z",[".rgzw8nq{grid-area:actions;padding-right:var(--spacingHorizontalM);}",".r13ur29z{grid-area:actions;padding-left:var(--spacingHorizontalM);}"]),ate=Y({root:{Brf1p80:"f1e8xxv9",B6of3ja:"f1gaxbfw",jrapky:"fqcjy3b",t21cq0:["fibjyge","f9yszdx"],z189sj:["f1p3vkop","f8cewkv"]},noActions:{mc9l5x:"fjseox"}},{d:[".f1e8xxv9{justify-content:end;}",".f1gaxbfw{margin-top:var(--spacingVerticalMNudge);}",".fqcjy3b{margin-bottom:var(--spacingVerticalS);}",".fibjyge{margin-right:0px;}",".f9yszdx{margin-left:0px;}",".f1p3vkop{padding-right:var(--spacingVerticalM);}",".f8cewkv{padding-left:var(--spacingVerticalM);}",".fjseox{display:none;}"]}),ite=e=>{"use no memo";const t=ote(),r=nte(),o=ate();return e.root.className=F(gB.root,t,e.layout==="multiline"&&o.root,!e.hasActions&&o.noActions,e.root.className),e.containerAction&&(e.containerAction.className=F(gB.containerAction,r,e.containerAction.className)),e};function ste(){return{button:m.useMemo(()=>({size:"small"}),[])}}const In=m.forwardRef((e,t)=>{const r=tte(e,t);return ite(r),xe("useMessageBarActionsStyles_unstable")(r),rte(r,ste())});In.displayName="MessageBarActions";const lte=(e,t)=>{const{bodyRef:r}=Gy();return{components:{root:"div"},root:me($e("div",{ref:Le(t,r),...e}),{elementType:"div"})}},cte=(e,t)=>G(OW,{value:t.link,children:G(e.root,{})}),ute={root:"fui-MessageBarBody"},dte=Be("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);}"]),fte=e=>{"use no memo";const t=dte();return e.root.className=F(ute.root,t,e.root.className),e};function pte(e){return{link:m.useMemo(()=>({inline:!0}),[])}}const Ge=m.forwardRef((e,t)=>{const r=lte(e,t),o=pte();return fte(r),xe("useMessageBarBodyStyles_unstable")(r),cte(r,o)});Ge.displayName="MessageBarBody";const mte={scrollState:"none",setScrollState:()=>({})},Iz=m.createContext(void 0),gte=Iz.Provider,Az=()=>{var e;return(e=m.useContext(Iz))!==null&&e!==void 0?e:mte},hte=()=>{const[e,t]=m.useState("none");return{setScrollState:t,scrollState:e}},Oz={drawerSizeVar:"--fui-Drawer--size"},vte=Y({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;}"]}),bte=Y({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%;}"]}),yte=({position:e,size:t})=>{const r=vte(),o=bte();return F(r[e],e==="bottom"&&o[t],e!=="bottom"&&r[t])},Zy={small:it.durationGentle,medium:it.durationSlow,large:it.durationSlower,full:it.durationUltraSlow};function Lz(e,t,r){const o=`translate3d(var(${t}), 0, 0)`,n=`translate3d(calc(var(${t}) * -1), 0, 0)`,a=`translate3d(0, var(${t}), 0)`;return e==="start"?r==="ltr"?n:o:e==="end"?r==="ltr"?o:n:e==="bottom"?a:"translate3d(0, 0, 0)"}Za(({position:e,size:t,dir:r})=>{const o=[{transform:Lz(e,Oz.drawerSizeVar,r),opacity:0},{transform:"translate3d(0, 0, 0)",opacity:1}],n=Zy[t];return{enter:{keyframes:o,duration:n,easing:it.curveDecelerateMid},exit:{keyframes:[...o].reverse(),duration:n,easing:it.curveAccelerateMin}}});const xte=Za(({position:e,size:t,dir:r})=>{const o=[{transform:Lz(e,Oz.drawerSizeVar,r),boxShadow:`0px ${T.colorTransparentBackground}`,opacity:0},{transform:"translate3d(0, 0, 0)",boxShadow:T.shadow64,opacity:1}],n=Zy[t];return{enter:{keyframes:o,duration:n,easing:it.curveDecelerateMid},exit:{keyframes:[...o].reverse(),duration:n,easing:it.curveAccelerateMin}}}),wte=Za(({size:e})=>{const t=Zy[e],r=it.curveLinear;return{enter:ua({direction:"enter",duration:t,easing:r}),exit:ua({direction:"exit",duration:t,easing:r})}});function kte(e){const{open:t=!1,size:r="small",position:o="start",unmountOnClose:n=!0}=e;return{size:r,position:o,open:t,unmountOnClose:n}}const Ste=Be("rl76ifk",null,[".rl76ifk{inset:0px;position:fixed;background-color:var(--colorBackgroundOverlay);}"]),Bte=Y({nested:{De3pzq:"f1c21dwh"},drawerHidden:{Bkecrkj:"f1aehjj5"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1aehjj5{pointer-events:none;}"]}),jte=e=>{"use no memo";const{treatBackdropAsNested:t,backdrop:r,open:o,unmountOnClose:n}=e,a=Ste(),i=Bte(),l=!n&&!o;return r&&(r.className=F(a,t&&i.nested,l&&i.drawerHidden,r.className)),e},U1=m.forwardRef((e,t)=>{const r=fN({...e,as:e.as},t),o=mN();return jte(r),xe("useOverlayDrawerSurfaceStyles_unstable")(r),pN(r,o)});U1.displayName="OverlayDrawerSurface";function hB(e,t,r){return e===null?null:{...e,children:(o,n)=>e?.children?e.children(t,{...n,...r}):m.createElement(t,{...n,...r},n.children)}}const Cte={active:!0,canRender:!0,ref:m.createRef(),type:"idle"},Nte=(e,t)=>{const{open:r,size:o,position:n,unmountOnClose:a}=kte(e),{modalType:i="modal",inertTrapFocus:l,onOpenChange:d,backdropMotion:f,surfaceMotion:p,mountNode:h}=e,{dir:v,targetDocument:y}=Ve(),{element:x}=p6(h),b=!!(x&&y?.body!==x),k=Jj(e.backdrop),N=me({...e,ref:t,unmountOnClose:a,backdrop:i!=="non-modal"&&k!==null?{...k}:null,backdropMotion:hB(f,wte,{size:o})},{elementType:U1}),B=me({open:r,onOpenChange:d,inertTrapFocus:l,modalType:i,unmountOnClose:a,surfaceMotion:hB(p,xte,{position:n,size:o,dir:v}),children:null},{elementType:Va});return{components:{root:U1,dialog:Va},root:N,dialog:B,open:r,size:o,position:n,hasMountNodeElement:b,unmountOnClose:a,mountNode:h,motion:Cte}},zte=(e,t)=>G(gte,{value:t,children:G(AK,{value:!1,children:G(e.dialog,{children:G(e.root,{})})})}),vB={root:"fui-OverlayDrawer",backdrop:"fui-OverlayDrawer__backdrop"},Tte=Be("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;}}"]}),_te=Y({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;}"]}),Rte=e=>{"use no memo";const t=yte(e),r=Tte(),o=_te(),n=e.hasMountNodeElement&&o.absolute,a=e.root.backdrop;return e.root.className=F(vB.root,t,r,o[e.position],n,e.root.className),a&&(a.className=F(vB.backdrop,n,a.className)),e},$z=m.forwardRef((e,t)=>{const r=Nte(e,t),o=hte();return Rte(r),xe("useDrawerOverlayStyles_unstable")(r),xe("useOverlayDrawerStyles_unstable")(r),zte(r,o)});$z.displayName="OverlayDrawer";const Dte=({scrollTop:e,scrollHeight:t,clientHeight:r})=>t<=r?"none":e===0?"top":e+r===t?"bottom":"middle",Ete=(e,t)=>{const{targetDocument:r}=Ve(),o=r?.defaultView,{setScrollState:n}=Az(),a=m.useRef(null),i=Le(t,a),[l,d]=Vu(),[f,p]=Vu(),h=m.useCallback(()=>{a.current&&n(Dte(a.current))},[n]),v=m.useCallback(()=>{d(),l(h)},[d,l,h]);return $t(h,[e.children,h]),$t(()=>{if(!a.current||!o?.ResizeObserver)return;const y=new o.ResizeObserver(()=>f(h));return y.observe(a.current),()=>{y.disconnect(),p()}},[f,p,h,o]),{components:{root:"div"},root:me($e("div",{ref:i,...e,onScroll:Re(e.onScroll,v)}),{elementType:"div"})}},Pte=e=>G(e.root,{}),Mte={root:"fui-DrawerBody"},qte=Be("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);}"]),Fte=e=>{"use no memo";const t=qte();return e.root.className=F(Mte.root,t,e.root.className),e},Hz=m.forwardRef((e,t)=>{const r=Ete(e,t);return Fte(r),xe("useDrawerBodyStyles_unstable")(r),Pte(r)});Hz.displayName="DrawerBody";const Ite=(e,t)=>{const{scrollState:r}=Az();return{components:{root:"header"},root:me($e("header",{ref:t,role:"none",...e}),{elementType:"header"}),scrollState:r}},Ate=e=>G(e.root,{}),Ote={root:"fui-DrawerHeader"},Lte=Be("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;}"]),$te=Y({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;}"]}),Hte=e=>{"use no memo";const t=Lte(),r=$te();return e.root.className=F(Ote.root,t,e.scrollState!=="none"&&r.separator,["middle","bottom"].includes(e.scrollState)&&r.separatorVisible,e.root.className),e},Vz=m.forwardRef((e,t)=>{const r=Ite(e,t);return Hte(r),xe("useDrawerHeaderStyles_unstable")(r),Ate(r)});Vz.displayName="DrawerHeader";const Vte=(e,t)=>{const{children:r,heading:o}=e,n=tn(a=>a.dialogTitleId);return{components:{root:"div",heading:"h2",action:"div"},root:me($e("div",{ref:t,...e}),{elementType:"div"}),heading:ke(o,{defaultProps:{id:n,children:r},renderByDefault:!0,elementType:"h2"}),action:ke(e.action,{elementType:"div"})}},Wte=e=>Ie(e.root,{children:[e.heading&&G(e.heading,{}),e.action&&G(e.action,{})]}),xv={root:"fui-DrawerHeaderTitle",heading:"fui-DrawerHeaderTitle__heading",action:"fui-DrawerHeaderTitle__action"},Ute=Y({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);}"]}),Gte=e=>{"use no memo";const t=Ute(),{heading:r={},action:o,components:n}=e;return dN({components:{root:n.heading,action:n.action},root:r,action:o}),e.root.className=F(xv.root,t.root,e.root.className),e.heading&&(e.heading.className=F(xv.heading,e.heading.className)),e.action&&(e.action.className=F(xv.action,t.action,e.action.className)),e},Wz=m.forwardRef((e,t)=>{const r=Vte(e,t);return Gte(r),xe("useDrawerHeaderTitleStyles_unstable")(r),Wte(r)});Wz.displayName="DrawerHeaderTitle";const Zte=(e,t)=>{const{focusMode:r="tab",size:o="medium",...n}=e,a=Kte(n,t),i=Xte({focusMode:r});return{...a,root:{...i,...a.root},size:o}},Kte=(e,t)=>{const{focusMode:r="tab",list:o,...n}=e;var a;return{components:{root:"nav",list:"ol"},root:me($e("nav",{ref:t,"aria-label":(a=e["aria-label"])!==null&&a!==void 0?a:"breadcrumb",...n}),{elementType:"nav"}),list:ke(o,{renderByDefault:!0,defaultProps:{role:"list"},elementType:"ol"})}},Xte=({focusMode:e})=>{const t=Ho({circular:!0,axis:"horizontal",memorizeCurrent:!0});return e==="arrow"?t:{}},Uz=m.createContext(void 0),Yte={size:"medium"},Jte=Uz.Provider,Ky=()=>{var e;return(e=m.useContext(Uz))!==null&&e!==void 0?e:Yte},Qte=(e,t)=>G(e.root,{children:G(Jte,{value:t,children:e.list&&G(e.list,{children:e.root.children})})}),bB={root:"fui-Breadcrumb",list:"fui-Breadcrumb__list"},ere=Be("rc5rb6b",null,[".rc5rb6b{list-style-type:none;display:flex;align-items:center;margin:0;padding:0;}"]),tre=e=>{"use no memo";const t=ere();return e.root.className=F(bB.root,e.root.className),e.list&&(e.list.className=F(t,bB.list,e.list.className)),e};function rre(e){const{size:t}=e;return m.useMemo(()=>({size:t}),[t])}const Gz=m.forwardRef((e,t)=>{const r=Zte(e,t),o=rre(r);return tre(r),xe("useBreadcrumbStyles_unstable")(r),Qte(r,o)});Gz.displayName="Breadcrumb";const ore=(e,t)=>{const{size:r}=Ky(),o=nre(e,t),{dir:n}=Ve();return{...o,root:{...o.root,children:are(n)},size:r}},nre=(e,t)=>({components:{root:"li"},root:me($e("li",{ref:t,"aria-hidden":!0,...e}),{elementType:"li"})});function are(e){return e==="rtl"?m.createElement(pC,null):m.createElement(py,null)}const ire=e=>G(e.root,{}),sre={root:"fui-BreadcrumbDivider"},lre=Be("rk008qs",null,[".rk008qs{display:flex;}"]),cre=Y({small:{Be2twd7:"f1ugzwwg"},medium:{Be2twd7:"f4ybsrx"},large:{Be2twd7:"fe5j1ua"}},{d:[".f1ugzwwg{font-size:12px;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}"]}),ure=e=>{"use no memo";const t=lre(),r=cre(),{size:o="medium"}=e;return e.root.className=F(sre.root,t,r[o],e.root.className),e},Zz=m.forwardRef((e,t)=>{const r=ore(e,t);return ure(r),xe("useBreadcrumbDividerStyles_unstable")(r),ire(r)});Zz.displayName="BreadcrumbDivider";const dre=(e,t)=>{const{size:r}=Ky();return{...fre(e,t),size:r}},fre=(e,t)=>({components:{root:"li"},root:me($e("li",{ref:t,...e}),{elementType:"li"})}),pre=e=>G(e.root,{children:e.root.children}),mre={root:"fui-BreadcrumbItem"},gre=Be("r1tl60rs",null,[".r1tl60rs{display:flex;align-items:center;color:var(--colorNeutralForeground2);box-sizing:border-box;text-wrap:nowrap;}"]),hre=e=>{"use no memo";const t=gre();return e.root.className=F(mre.root,t,e.root.className),e},G1=m.forwardRef((e,t)=>{const r=dre(e,t);return hre(r),xe("useBreadcrumbItemStyles_unstable")(r),pre(r)});G1.displayName="BreadcrumbItem";const vre=(e,t)=>{const{size:r}=Ky(),o=bre(e,t);return{appearance:"subtle",size:r,shape:"rounded",...o}},bre=(e,t)=>{const{current:r=!1,as:o,...n}=e,a=o??e.href?"a":"button";var i,l;return{...Ry({role:void 0,type:void 0,as:a,iconPosition:"before","aria-current":r?(i=e["aria-current"])!==null&&i!==void 0?i:"page":void 0,"aria-disabled":r?(l=e["aria-disabled"])!==null&&l!==void 0?l:!0:void 0,...n},t),current:r}},yre=e=>bg(e),xre={root:"fui-BreadcrumbButton"},wre=Y({base:{Be2twd7:"fsj74e5",Bqenvij:"f1qfv4wv",Bg96gwp:"f15xapk4",a9b677:"f17j33op",t21cq0:["fm0x6gh","fbyavb5"]},small:{u3h8gg:"f1qfi7kw",Biu6dll:"f1876atl"},medium:{u3h8gg:"f1h9446d",Biu6dll:"f10xfswh"},large:{u3h8gg:"f5hcofs",Biu6dll:"f1a6v6zl"}},{d:[".fsj74e5{font-size:var(--fui-Breadcrumb--icon-size);}",".f1qfv4wv{height:var(--fui-Breadcrumb--icon-size);}",".f15xapk4{line-height:var(--fui-Breadcrumb--icon-line-height);}",".f17j33op{width:var(--fui-Breadcrumb--icon-size);}",".fm0x6gh{margin-right:var(--spacingHorizontalXS);}",".fbyavb5{margin-left:var(--spacingHorizontalXS);}",".f1qfi7kw{--fui-Breadcrumb--icon-size:12px;}",".f1876atl{--fui-Breadcrumb--icon-line-height:var(--lineHeightBase200);}",".f1h9446d{--fui-Breadcrumb--icon-size:16px;}",".f10xfswh{--fui-Breadcrumb--icon-line-height:var(--lineHeightBase400);}",".f5hcofs{--fui-Breadcrumb--icon-size:20px;}",".f1a6v6zl{--fui-Breadcrumb--icon-line-height:var(--lineHeightBase600);}"]}),kre=Y({root:{Bf4jedk:"f18p0k4z",j4b8c3:"fv6wr3j"},small:{Bqenvij:"frvgh55",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1r1wyb6"},medium:{Bqenvij:"f1d2rq10",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1r1wyb6"},large:{Bqenvij:"fbhnoac",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1bnz8pu"},current:{Jwef8y:"f9ql6rf",Bi91k9c:"f3p8bqa",eoavqd:"f14w7a5u",Bbdnnc7:"f1irjp3o",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",iro3zm:"f3h1zc4",B2d53fq:"f1xkgyln",c3iz72:"f17wbbfx",x3br3k:"fofxw0a",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",Bszkowt:"ff24m",Dyrjrp:"ft5r8e9",ezr58z:"f1cbpfqp",nhk3du:"f1motppv",Bfrek18:"fi9vkhg",G209fr:"f1fg3nnv"},currentSmall:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"fl43uef",Bg96gwp:"fwrc4pm"},currentMedium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f1i3iumi"},currentLarge:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"}},{d:[".f18p0k4z{min-width:unset;}",".fv6wr3j{text-wrap:nowrap;}",".frvgh55{height:24px;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",[".f1r1wyb6{padding:var(--spacingHorizontalSNudge);}",{p:-1}],".f1d2rq10{height:32px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".f1r1wyb6{padding:var(--spacingHorizontalSNudge);}",{p:-1}],".fbhnoac{height:40px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",[".f1bnz8pu{padding:var(--spacingHorizontalS);}",{p:-1}],".ff24m:disabled{background-color:var(--colorTransparentBackground);}",".ft5r8e9:disabled{color:var(--colorNeutralForeground2);}",".f1cbpfqp:disabled{cursor:auto;}",".f1motppv:disabled .fui-Button__icon{color:unset;}",".fi9vkhg:disabled .fui-Icon-filled{display:none;}",".f1fg3nnv:disabled .fui-Icon-regular{display:inline;}",".fl43uef{font-weight:var(--fontWeightSemibold);}"],h:[".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3p8bqa:hover{color:var(--colorNeutralForeground2);}",".f14w7a5u:hover{cursor:auto;}",".f1irjp3o:hover .fui-Button__icon{color:unset;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1xkgyln:hover:active{color:var(--colorNeutralForeground2);}",".f17wbbfx:hover:active{cursor:auto;}",".fofxw0a:hover:active .fui-Button__icon{color:unset;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}"]}),Sre=e=>{"use no memo";const t=kre(),r=wre(),o={small:t.currentSmall,medium:t.currentMedium,large:t.currentLarge};return e.root.className=F(xre.root,t[e.size],t.root,e.current&&o[e.size],e.current&&t.current,e.root.className),e.icon&&(e.icon.className=F(r.base,r[e.size],e.icon.className)),_d(e),e},Kz=m.forwardRef((e,t)=>{const r=vre(e,t);return Sre(r),xe("useBreadcrumbButtonStyles_unstable")(r),yre(r)});Kz.displayName="BreadcrumbButton";const Bre=(e,t)=>{const{dismissButton:r,icon:o}=e,n=Kt(d=>d.setOpen),a=Kt(d=>d.triggerRef),i=Kt(d=>d.appearance),l=de(d=>{d.defaultPrevented||n(d,!1),a.current&&a.current.focus()});return{appearance:i,components:{root:"div",dismissButton:"button",icon:"div"},root:me($e("div",{ref:t,...e}),{elementType:"div"}),icon:ke(o,{renderByDefault:!0,defaultProps:{children:m.createElement(sA,null),"aria-hidden":!0},elementType:"div"}),dismissButton:ke(r,{renderByDefault:!0,defaultProps:{children:m.createElement(aO,null),role:"button","aria-label":"dismiss",onClick:l},elementType:"button"})}},jre=e=>Ie(e.root,{children:[e.icon&&G(e.icon,{}),e.root.children,e.dismissButton&&G(e.dismissButton,{})]}),wv={root:"fui-TeachingPopoverHeader",dismissButton:"fui-TeachingPopoverHeader__dismissButton",icon:"fui-TeachingPopoverHeader__icon"},Cre=Y({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",sj55zd:"f11d4kpn",Bhrd7zp:"fl43uef",Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm",Byoj8tv:"f14wxoun",Bt984gj:"f122n59",B6of3ja:"f1jkagg5",jrapky:"fi2ljxd"},rootBrand:{sj55zd:"f1phragk"},dismissButton:{sj55zd:"fkfq4zb",qhf8xq:"f10pi13n",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:["f1n71otn","f1deefiw"],Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f88035w",mc9l5x:"f22iagw",Bt984gj:"f122n59",Bceei9c:"f1k6fduh",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",De3pzq:"f1c21dwh",B7ck84d:"f1ewtqcl",B7oj6ja:["f3fg2lr","f13av6d4"],Bbmb7ep:["fzi6hpg","fyowgf4"],Jyy4pa:"f1lfeew",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f16d74zd",Bfpq7zp:0,g9k6zt:0,Bn4voq9:0,giviqs:"f89hs3r",Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f2krc9w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"]},dismissBrand:{sj55zd:"f1phragk"},icon:{Bqenvij:"fsv12xs",a9b677:"f19bqwv",Bg96gwp:"fwrc4pm",Be2twd7:"fy9rknc",Bt984gj:"f122n59",B7ck84d:"f1e4lqlz",mc9l5x:"ftuwxu6",Brf1p80:"f4d9j23",w71qe1:"f1iuv45f",ha4doy:"fmrv4ls",qhf8xq:"f10pi13n",De3pzq:"f1c21dwh",sj55zd:"fkfq4zb",Bokbzmb:"fpvr8q1"},iconBrand:{sj55zd:"f1phragk"}},{d:[".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".f122n59{align-items:center;}",".f1jkagg5{margin-top:var(--spacingHorizontalNone);}",".fi2ljxd{margin-bottom:var(--spacingHorizontalNone);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f10pi13n{position:relative;}",[".f88035w{border:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-2}],".f1k6fduh{cursor:pointer;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1ewtqcl{box-sizing:border-box;}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1lfeew{-webkit-margin-start:auto;margin-inline-start:auto;}",[".f16d74zd{padding:var(--spacingVerticalXS) var(--spacingHorizontalXS);}",{p:-1}],[".f89hs3r[data-fui-focus-visible]{outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}",{p:-1}],[".f2krc9w[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);}",{p:-1}],".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;}",".fsv12xs{height:var(--fontSizeBase200);}",".f19bqwv{width:var(--fontSizeBase200);}",".f1e4lqlz{box-sizing:content-box;}",".ftuwxu6{display:inline-flex;}",".f4d9j23{justify-content:center;}",".f1iuv45f{text-decoration-line:none;}",".fmrv4ls{vertical-align:middle;}",".fpvr8q1{-webkit-margin-end:var(--spacingHorizontalXS);margin-inline-end:var(--spacingHorizontalXS);}"]}),Nre=e=>{"use no memo";const t=Cre(),{appearance:r}=e;return e.root.className=F(wv.root,t.root,r==="brand"&&t.rootBrand,e.root.className),e.dismissButton&&(e.dismissButton.className=F(wv.dismissButton,t.dismissButton,r==="brand"?t.dismissBrand:void 0,e.dismissButton.className)),e.icon&&(e.icon.className=F(wv.icon,t.icon,r==="brand"?t.iconBrand:void 0,e.icon.className)),e},Xz=m.forwardRef((e,t)=>{const r=Bre(e,t);return Nre(r),xe("useTeachingPopoverHeaderStyles_unstable")(r),jre(r)});Xz.displayName="TeachingPopoverHeader";const zre=(e,t)=>{const{mediaLength:r}=e;return{components:{root:"div",media:"span"},root:me($e("div",{ref:t,...e}),{elementType:"div"}),media:ke(e.media,{elementType:"span"}),mediaLength:r??"short"}},Tre=e=>Ie(e.root,{children:[e.media&&G(e.media,{}),e.root.children]}),yB={root:"fui-TeachingPopoverBody",media:"fui-TeachingPopoverBody__media"},_re=Y({base:{Bw0ie65:0,Br312pm:0,nk6f5a:0,Ijaq50:0,Bq1tomu:"fujjg13",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",a9b677:"f14z66ap",jrapky:"f1jlhsmd",ha4doy:"fmrv4ls",Brf1p80:"f4d9j23",mc9l5x:"f22iagw"},short:{Bubjx69:"f1taewuw",Bfd67p1:"f2f587x"},medium:{Bubjx69:"f7da563",Bfd67p1:"fmwcswg"},tall:{Bubjx69:"f9ikmtg",Bfd67p1:"f1gv48o"}},{d:[[".fujjg13{grid-area:media;}",{p:-1}],[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f14z66ap{width:auto;}",".f1jlhsmd{margin-bottom:12px;}",".fmrv4ls{vertical-align:middle;}",".f4d9j23{justify-content:center;}",".f22iagw{display:flex;}",".f1taewuw{aspect-ratio:2.4615384615384617;}",".f7da563{aspect-ratio:1.6363636363636365;}",".f9ikmtg{aspect-ratio:1;}"],t:["@supports not (aspect-ratio){.f2f587x{height:117px;}}","@supports not (aspect-ratio){.fmwcswg{height:176px;}}","@supports not (aspect-ratio){.f1gv48o{height:288px;}}"]}),Rre=Y({root:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Byoj8tv:"fpe6lb7"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".fpe6lb7{padding-bottom:12px;}"]}),Dre=e=>{"use no memo";const{mediaLength:t}=e,r=Rre(),o=_re();return e.root.className=F(yB.root,r.root,e.root.className),e.media&&(e.media.className=F(yB.media,o.base,o[t],e.media.className)),e},Yz=m.forwardRef((e,t)=>{const r=zre(e,t);return Dre(r),xe("useTeachingPopoverBodyStyles_unstable")(r),Tre(r)});Yz.displayName="TeachingPopoverBody";const Ere=(e,t)=>f6(e,t),Pre={root:"fui-TeachingPopoverSurface"},Mre=Y({root:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f23zza1",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1kijzfu",Bf4jedk:"f14hp5dx",B7ck84d:"f1ewtqcl"}},{d:[[".f23zza1{padding:var(--spacingVerticalL) var(--spacingVerticalL);}",{p:-1}],[".f1kijzfu{border-radius:var(--borderRadiusXLarge);}",{p:-1}],".f14hp5dx{min-width:320px;}",".f1ewtqcl{box-sizing:border-box;}"]}),qre=e=>{"use no memo";const t=Mre();return e.root.className=F(Pre.root,t.root,e.root.className),y6(e)},Fre=e=>b6(e),Jz=m.forwardRef((e,t)=>{const r=Ere(e,t);return qre(r),xe("useTeachingPopoverSurfaceStyles_unstable")(r),Fre(r)});Jz.displayName="TeachingPopoverSurface";const Ire=vy(FI,nc),Are=(e,t)=>{const{dismissButton:r}=e,o=Kt(l=>l.setOpen),n=Kt(l=>l.triggerRef),a=Kt(l=>l.appearance),i=de(l=>{l.defaultPrevented||o(l,!1),n.current&&n.current.focus()});return{appearance:a,components:{root:"h2",dismissButton:"button"},root:me($e("h2",{ref:t,...e}),{elementType:"h2"}),dismissButton:ke(r,{renderByDefault:!1,defaultProps:{children:m.createElement(Ire,null),onClick:i,"aria-label":"dismiss","aria-hidden":!0},elementType:"button"})}},Ore=e=>Ie(e.root,{children:[e.root.children,e.dismissButton&&G(e.dismissButton,{})]}),xB={root:"fui-TeachingPopoverTitle",dismissButton:"fui-TeachingPopoverTitle__dismissButton"},Lre=Y({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Brf1p80:"f1869bpl",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",sj55zd:"f19n0e5",Bg96gwp:"faaz57k",Byoj8tv:"f5b47ha",B6of3ja:"f1jkagg5",jrapky:"fi2ljxd"},rootBrand:{sj55zd:"f1phragk"},dismissButton:{qhf8xq:"f10pi13n",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:["f1n71otn","f1deefiw"],Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f88035w",mc9l5x:"f22iagw",Bt984gj:"f122n59",Bceei9c:"f1k6fduh",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",De3pzq:"f1c21dwh",B7ck84d:"f1ewtqcl",B7oj6ja:["f3fg2lr","f13av6d4"],Bbmb7ep:["fzi6hpg","fyowgf4"],Bfpq7zp:0,g9k6zt:0,Bn4voq9:0,giviqs:"f89hs3r",Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f2krc9w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Jyy4pa:"f1lfeew"},dismissBrand:{sj55zd:"f1phragk"}},{d:[".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".f1869bpl{justify-content:space-between;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f1jkagg5{margin-top:var(--spacingHorizontalNone);}",".fi2ljxd{margin-bottom:var(--spacingHorizontalNone);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".f10pi13n{position:relative;}",[".f88035w{border:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-2}],".f122n59{align-items:center;}",".f1k6fduh{cursor:pointer;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1ewtqcl{box-sizing:border-box;}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",[".f89hs3r[data-fui-focus-visible]{outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}",{p:-1}],[".f2krc9w[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);}",{p:-1}],".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;}",".f1lfeew{-webkit-margin-start:auto;margin-inline-start:auto;}"]}),$re=e=>{"use no memo";const t=Lre(),{appearance:r}=e;return e.root.className=F(xB.root,t.root,r==="brand"&&t.rootBrand,e.root.className),e.dismissButton&&(e.dismissButton.className=F(xB.dismissButton,t.dismissButton,r==="brand"?t.dismissBrand:void 0,e.dismissButton.className)),e},Qz=m.forwardRef((e,t)=>{const r=Are(e,t);return $re(r),xe("useTeachingPopoverTitleStyles_unstable")(r),Ore(r)});Qz.displayName="TeachingPopoverTitle";const Hre=e=>{const t=x6(e);var r,o;return{...t,withArrow:(r=e.withArrow)!==null&&r!==void 0?r:!0,trapFocus:(o=e.trapFocus)!==null&&o!==void 0?o:!0}},Vre=k6,Wre=w6,eT=e=>{const t=Hre(e),r=Wre(t);return Vre(t,r)};eT.displayName="TeachingPopover";const Ure=(e,t)=>{const r=Kt(d=>d.appearance),o=Kt(d=>d.toggleOpen),n=de(d=>{d.isDefaultPrevented()||o(d)}),a=ke(e.secondary,{defaultProps:{appearance:r==="brand"?"primary":void 0},renderByDefault:e.secondary!==void 0,elementType:pe});a&&(a.onClick=Re(n,a?.onClick));const i=me(e.primary,{defaultProps:{appearance:r==="brand"?void 0:"primary"},elementType:pe});a||(i.onClick=Re(n,i?.onClick));var l;return{footerLayout:(l=e.footerLayout)!==null&&l!==void 0?l:"horizontal",appearance:r,components:{root:"div",primary:pe,secondary:pe},root:me($e("div",{ref:t,...e}),{elementType:"div"}),secondary:a,primary:i}},Gre=e=>Ie(e.root,{children:[G(e.primary,{}),e.secondary&&G(e.secondary,{})]}),kv={root:"fui-TeachingPopoverFooter",primary:"fui-TeachingPopoverFooter__primary",secondary:"fui-TeachingPopoverFooter__secondary"},Zre=Y({root:{mc9l5x:"f22iagw",i8kkvl:0,Belr9w4:0,rmohyg:"f19gb1f4",z8tnut:"f1kcqot9"},rootVertical:{Beiy3e4:"f1vx9l62"},rootHorizontal:{Beiy3e4:"f1063pyq",Brf1p80:"f9c4gz4"},buttonRootVertical:{a9b677:"f14z66ap",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ff3glw6"},buttonRootHorizontal:{Bf4jedk:"f14es27b",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ff3glw6"},brandSecondary:{g2u3we:"fm1ebug",h3c5rm:["f28omuz","f1uhflii"],B9xav0g:"f1ixw5o4",zhjwy3:["f1uhflii","f28omuz"]},brandPrimary:{sj55zd:"f16muhyy",De3pzq:"f10s6wn9",Bi91k9c:"f3ymbdj",Jwef8y:"f1rgtb95",B2d53fq:"f1pu27ff",iro3zm:"f1d5c7in"}},{d:[".f22iagw{display:flex;}",[".f19gb1f4{gap:8px;}",{p:-1}],".f1kcqot9{padding-top:12px;}",".f1vx9l62{flex-direction:column;}",".f1063pyq{flex-direction:row;}",".f9c4gz4{justify-content:flex-end;}",".f14z66ap{width:auto;}",[".ff3glw6{border-radius:4px;}",{p:-1}],".f14es27b{min-width:96px;}",[".ff3glw6{border-radius:4px;}",{p:-1}],".fm1ebug{border-top-color:var(--colorNeutralForegroundOnBrand);}",".f28omuz{border-right-color:var(--colorNeutralForegroundOnBrand);}",".f1uhflii{border-left-color:var(--colorNeutralForegroundOnBrand);}",".f1ixw5o4{border-bottom-color:var(--colorNeutralForegroundOnBrand);}",".f16muhyy{color:var(--colorBrandForeground1);}",".f10s6wn9{background-color:var(--colorNeutralForegroundOnBrand);}"],h:[".f3ymbdj:hover{color:var(--colorCompoundBrandForeground1Hover);}",".f1rgtb95:hover{background-color:var(--colorNeutralForegroundOnBrand);}",".f1pu27ff:hover:active{color:var(--colorCompoundBrandForeground1Pressed);}",".f1d5c7in:hover:active{background-color:var(--colorNeutralForegroundOnBrand);}"]}),Kre=e=>{"use no memo";const t=Zre(),{appearance:r,footerLayout:o}=e;return e.root.className=F(kv.root,t.root,o==="horizontal"?t.rootHorizontal:t.rootVertical,e.root.className),e.secondary&&(e.secondary.className=F(kv.secondary,o==="horizontal"?t.buttonRootHorizontal:t.buttonRootVertical,r==="brand"?t.brandSecondary:void 0,e.secondary.className)),e.primary.className=F(kv.primary,o==="horizontal"?t.buttonRootHorizontal:t.buttonRootVertical,r==="brand"?t.brandPrimary:void 0,e.primary.className),e},tT=m.forwardRef((e,t)=>{const r=Ure(e,t);return Kre(r),xe("useTeachingPopoverFooterStyles_unstable")(r),Gre(r)});tT.displayName="TeachingPopoverFooter";const Xre=["above","after","after-top","before","before-top"],Yre=e=>{const t=bt("picker-listbox"),r=m.useRef(null),o=m.useRef(null),n=m.useRef(null),{positioning:a,size:i="medium",inline:l=!1,noPopover:d=!1,disableAutoFocus:f}=e,{targetRef:p,containerRef:h}=qs({position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:Xre,matchTargetSize:"width",...Wi(a)}),{controller:v,activeParentRef:y,listboxRef:x}=sg({matchOption:N=>N.classList.contains(Hl.root)}),b=Py({...e,onOptionSelect:de((N,B)=>{var C;return(C=e.onOptionSelect)===null||C===void 0?void 0:C.call(e,N,{selectedOptions:B.selectedOptions,value:B.optionValue,type:N.type,event:N})}),onOpenChange:de((N,B)=>{var C;return(C=e.onOpenChange)===null||C===void 0?void 0:C.call(e,N,{...B,type:N.type,event:N})}),activeDescendantController:v,disableAutoFocus:f,editable:!0,multiselect:!0,size:"medium"}),{trigger:k,popover:S}=Jre(e.children,d);return{activeDescendantController:v,components:{},trigger:k,popover:b.open||b.hasFocus?S:void 0,popoverId:t,noPopover:d,disabled:b.disabled,triggerRef:Le(r,y),popoverRef:Le(x,h),secondaryActionRef:o,tagPickerGroupRef:n,targetRef:p,size:i,inline:l,open:b.open,mountNode:b.mountNode,onOptionClick:de(N=>{b.onOptionClick(N),b.setOpen(N,!1)}),appearance:b.appearance,clearSelection:b.clearSelection,getOptionById:b.getOptionById,getOptionsMatchingValue:b.getOptionsMatchingValue,registerOption:b.registerOption,selectedOptions:b.selectedOptions,selectOption:de((N,B)=>{if(b.selectedOptions.includes(B.value)&&!Mi(n.current,N.target)){var C;(C=e.onOptionSelect)===null||C===void 0||C.call(e,N,{selectedOptions:b.selectedOptions,value:B.value,type:N.type,event:N});return}b.selectOption(N,B)}),setHasFocus:b.setHasFocus,setOpen:b.setOpen,setValue:b.setValue,value:b.value}},Jre=(e,t)=>{const r=m.Children.toArray(e);if(t)return{trigger:r[0]};let o,n;return r.length===2?(o=r[0],n=r[1]):r.length===1&&(n=r[0]),{trigger:o,popover:n}},Qre={triggerRef:m.createRef(),popoverRef:m.createRef(),targetRef:m.createRef(),tagPickerGroupRef:m.createRef(),secondaryActionRef:m.createRef(),open:!1,clearSelection:()=>null,getOptionById:()=>{},selectedOptions:[],selectOption:()=>null,setHasFocus:()=>null,setOpen:()=>null,setValue:()=>null,value:void 0,popoverId:"",size:"medium",appearance:"outline",disabled:!1},rT=Vn(void 0),eoe=rT.Provider,ft=e=>pa(rT,(t=Qre)=>e(t)),toe=(e,t)=>m.createElement(eoe,{value:t.picker},m.createElement(ig,{value:t.activeDescendant},m.createElement(C6,{value:t.listbox},e.trigger,e.popover&&(e.inline?e.popover:m.createElement(ma,{mountNode:e.mountNode},e.popover)))));function roe(e){const{onOptionClick:t,registerOption:r,selectedOptions:o,selectOption:n,value:a,triggerRef:i,secondaryActionRef:l,tagPickerGroupRef:d,targetRef:f,size:p,setValue:h,setOpen:v,setHasFocus:y,popoverRef:x,appearance:b,clearSelection:k,getOptionById:S,getOptionsMatchingValue:N,open:B,popoverId:C,disabled:z,noPopover:R}=e;return{activeDescendant:m.useMemo(()=>({controller:e.activeDescendantController}),[e.activeDescendantController]),listbox:{onOptionClick:t,registerOption:r,getOptionById:S,getOptionsMatchingValue:N,selectedOptions:o,selectOption:n,focusVisible:!1,setActiveOption:ooe},picker:{value:a,triggerRef:i,targetRef:f,secondaryActionRef:l,tagPickerGroupRef:d,size:p,setValue:h,setOpen:v,setHasFocus:y,selectOption:n,popoverRef:x,selectedOptions:o,appearance:b,clearSelection:k,getOptionById:S,open:B,popoverId:C,disabled:z,noPopover:R}}}const ooe=()=>{},vm=m.memo(e=>{const t=Yre(e),r=roe(t);return toe(t,r)});vm.displayName="TagPicker";const Sv={width:"--fluent-TagPickerInput__width"},noe=(e,t)=>{const r=ga(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0}),{controller:o}=fy(),n=ft(D=>D.size),a=ft(D=>D.disabled),i=ft(D=>D.tagPickerGroupRef),l=ft(D=>D.triggerRef),d=ft(D=>D.selectedOptions),f=ft(D=>D.setValue),p=ft(D=>D.setOpen),h=ft(D=>D.setHasFocus),v=ft(D=>D.clearSelection),y=ft(D=>D.open),x=ft(D=>D.noPopover?void 0:D.popoverId),b=ft(D=>D.selectOption),k=ft(D=>D.getOptionById),S=ft(D=>D.value);$t(()=>{l.current&&wB(l.current)},[d,l]),$t(()=>{if(l.current){const D=l.current,I=()=>wB(D);return D.addEventListener("input",I),()=>{D.removeEventListener("input",I)}}},[l]);const{value:N=S,disabled:B=a}=r,{findLastFocusable:C}=hn(),z=m.useRef(!1),R=E6({type:"text",value:N??"","aria-controls":y?x:void 0,disabled:B,...$e("input",r),onKeyDown:de(D=>{var I;if((I=r.onKeyDown)===null||I===void 0||I.call(r,D),(D.key===Ps||D.key===ag)&&D.currentTarget.selectionStart===0&&D.currentTarget.selectionEnd===0&&i.current){var M;(M=C(i.current))===null||M===void 0||M.focus()}else D.key===ro?y&&!z.current&&p(D,!1):D.key===kr&&(y?_a.unstable_batchedUpdates(()=>{f(void 0),p(D,!1)}):p(D,!0));z.current=D.key.length===1&&D.code!==ro&&!D.altKey&&!D.ctrlKey&&!D.metaKey})},Le(l,t),{activeDescendantController:o,freeform:!1,state:{clearSelection:v,getOptionById:k,open:y,selectedOptions:d,selectOption:b,setHasFocus:h,setOpen:p,setValue:f,multiselect:!0,value:r.value}});return{components:{root:"input"},root:R,disabled:B,size:n}},wB=e=>{e.style.removeProperty(Sv.width),e.scrollWidth>e.offsetWidth+1?e.style.setProperty(Sv.width,"100%"):e.style.removeProperty(Sv.width)},aoe=e=>G(e.root,{}),ioe={root:"fui-TagPickerInput"},soe=Be("r1hdk6fw",null,[".r1hdk6fw{background-color:var(--colorTransparentBackground);color:var(--colorNeutralForeground1);font-family:var(--fontFamilyBase);box-sizing:border-box;border:none;min-width:24px;max-width:100%;width:var(--fluent-TagPickerInput__width, 0);flex-grow:1;}",".r1hdk6fw:focus{outline-style:none;}",".r1hdk6fw::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r1hdk6fw::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r1hdk6fw::placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r1hdk6fw::after{visibility:hidden;white-space:pre-wrap;}"]),loe=Y({medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fa2pw7h"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"ft37c3"},"extra-large":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f3abo53"},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".fa2pw7h{padding:var(--spacingVerticalSNudge) 0 var(--spacingVerticalSNudge) 0;}",{p:-1}],[".ft37c3{padding:var(--spacingVerticalMNudge) 0 var(--spacingVerticalMNudge) 0;}",{p:-1}],[".f3abo53{padding:var(--spacingVerticalM) 0 var(--spacingVerticalM) 0;}",{p:-1}],".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);}"]}),coe=e=>{"use no memo";const t=soe(),r=loe();return e.root.className=F(ioe.root,t,r[e.size],e.disabled&&r.disabled,e.root.className),e},bm=m.forwardRef((e,t)=>{const r=noe(e,t);return coe(r),xe("useTagPickerInputStyles_unstable")(r),aoe(r)});bm.displayName="TagPickerInput";const uoe=(e,t)=>{const r=ft(i=>i.triggerRef),o=ft(i=>i.popoverRef),n=ft(i=>i.popoverId);return{open:ft(i=>i.open),components:{root:Vl},root:me({...My(e,Le(o,t),{state:{multiselect:!0},triggerRef:r,defaultProps:{id:n}}),role:"listbox"},{elementType:Vl})}},doe=e=>G(e.root,{}),foe={root:"fui-TagPickerList"},poe=Y({root:{E5pizo:"f1hg901r",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bxyxcbc:"fmmk62d",B7ck84d:"f1ewtqcl"},collapsed:{mc9l5x:"fjseox"}},{d:[".f1hg901r{box-shadow:var(--shadow16);}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fmmk62d{max-height:80vh;}",".f1ewtqcl{box-sizing:border-box;}",".fjseox{display:none;}"]}),moe=e=>{"use no memo";const t=poe();return e.root.className=F(foe.root,t.root,!e.open&&t.collapsed,e.root.className),e},ym=m.forwardRef((e,t)=>{const r=uoe(e,t);return moe(r),xe("useTagPickerListStyles_unstable")(r),doe(r)});ym.displayName="TagPickerList";const goe=e=>{const{targetDocument:t}=Ve(),[r]=m.useState(()=>{var n;const a=t==null||(n=t.defaultView)===null||n===void 0?void 0:n.ResizeObserver;if(a)return new a(e)});return m.useCallback(n=>{n?r?.observe(n):r?.disconnect()},[r])},gp={root:"fui-TagPickerControl",expandIcon:"fui-TagPickerControl__expandIcon",secondaryAction:"fui-TagPickerControl__secondaryAction",aside:"fui-TagPickerControl__aside"},hoe="--fui-TagPickerControl-aside-width",voe=Y({root:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",z189sj:["f1d8q41i","f8lqu5g"],uwmqm3:["f1uw59to","fw5db7e"],Bt984gj:"f122n59",i8kkvl:"f14mj54c",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",Eh141a:"fni485r",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",wi16st:"fsrmcvb",ywj3b2:"f1t3k7v9",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",Bnupc0a:"fx04xgm",bing71:"f1c7in40",Bercvud:"f1ibeo51"},listbox:{E5pizo:"f1hg901r",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bxyxcbc:"fmmk62d",B7ck84d:"f1ewtqcl"},listboxCollapsed:{mc9l5x:"fjseox"},medium:{sshi5w:"f1nxs5xn"},large:{sshi5w:"f1w5jphr"},"extra-large":{sshi5w:"f5pgtk9"},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"],Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"]}},{d:[[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1d8q41i{padding-right:calc(var(--spacingHorizontalM) + var(--fui-TagPickerControl-aside-width, 0px));}",".f8lqu5g{padding-left:calc(var(--spacingHorizontalM) + var(--fui-TagPickerControl-aside-width, 0px));}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f122n59{align-items:center;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1exfvgq{min-width:250px;}",".f10pi13n{position:relative;}",".fni485r{flex-wrap:wrap;}",".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;}",".f1nxs5xn{min-height:32px;}",".f1w5jphr{min-height:40px;}",".f5pgtk9{min-height:44px;}",".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){.fsrmcvb::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1t3k7v9::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fx04xgm:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1c7in40:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{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);}"]}),boe=Y({root:{mc9l5x:"f22iagw",qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",j35jbq:["f8b87gs","fedtrts"],Bqenvij:"f1l02sjl",Bceei9c:"f113hnb5"},medium:{sshi5w:"f1nxs5xn"},large:{sshi5w:"f1w5jphr"},"extra-large":{sshi5w:"f5pgtk9"}},{d:[".f22iagw{display:flex;}",".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f8b87gs{right:var(--spacingHorizontalM);}",".fedtrts{left:var(--spacingHorizontalM);}",".f1l02sjl{height:100%;}",".f113hnb5{cursor:text;}",".f1nxs5xn{min-height:32px;}",".f1w5jphr{min-height:40px;}",".f5pgtk9{min-height:44px;}"]}),yoe=Y({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",Bceei9c:"f1k6fduh",mc9l5x:"f22iagw",Brf1p80:"f4d9j23",Bt984gj:"f122n59",qb2dma:"fjgzulp",Be2twd7:"f1pp30po",Bo70h7d:"fvc9v3g"},medium:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"],sshi5w:"f1nxs5xn"},large:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"],sshi5w:"f1w5jphr"},"extra-large":{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"],sshi5w:"f5pgtk9"},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".f1k6fduh{cursor:pointer;}",".f22iagw{display:flex;}",".f4d9j23{justify-content:center;}",".f122n59{align-items:center;}",".fjgzulp{align-self:flex-start;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".fvc9v3g svg{display:block;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".f1nxs5xn{min-height:32px;}",".fe5j1ua{font-size:20px;}",".f1w5jphr{min-height:40px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f5pgtk9{min-height:44px;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}"]}),xoe=Y({root:{mc9l5x:"f22iagw"}},{d:[".f22iagw{display:flex;}"]}),woe=e=>{"use no memo";const t=voe(),r=yoe(),o=boe(),n=xoe();return e.root.className=F(gp.root,t.root,t[e.size],t[e.appearance],!e.disabled&&e.appearance==="outline"&&t.outlineInteractive,e.invalid&&e.appearance!=="underline"&&t.invalid,e.invalid&&e.appearance==="underline"&&t.invalidUnderline,e.disabled&&t.disabled,e.root.className),e.aside&&(e.aside.className=F(gp.aside,o.root,o[e.size],e.aside.className)),e.expandIcon&&(e.expandIcon.className=F(gp.expandIcon,r.icon,r[e.size],e.disabled&&r.disabled,e.expandIcon.className)),e.secondaryAction&&(e.secondaryAction.className=F(gp.secondaryAction,n.root,e.secondaryAction.className)),e};function koe(e){const{tagPickerId:t,state:r}=e,{targetDocument:o}=Ve(),n=ft(v=>v.triggerRef),a=m.useRef(null),i=!!r.expandIcon,{"aria-label":l,"aria-labelledby":d,id:f}=r.expandIcon||{},p=m.useCallback((v,y)=>{let x,b,k;if(i){const S=l||d,N="Open";S||(y?(x=N,k=f??`${t}-chevron`,b=`${k} ${y}`):v?x=`${N} ${v}`:x=N)}return{expandAriaLabel:x,expandAriaLabelledBy:b,expandId:k}},[l,d,f,i,t]),h=m.useCallback(()=>{var v,y;const x=(v=n.current)===null||v===void 0?void 0:v.getAttribute("aria-label"),b=(y=n.current)===null||y===void 0?void 0:y.getAttribute("aria-labelledby"),{expandAriaLabel:k,expandAriaLabelledBy:S,expandId:N}=p(x,b);if(S){var B;(B=a.current)===null||B===void 0||B.setAttribute("aria-labelledby",S)}if(k){var C;(C=a.current)===null||C===void 0||C.setAttribute("aria-label",k)}if(N){var z;(z=a.current)===null||z===void 0||z.setAttribute("id",N)}},[p,n]);return m.useEffect(()=>{const v=l||d;if(!o?.defaultView||!n.current||!i||v)return;const y=o.defaultView;h();const x=new y.MutationObserver(h);return x.observe(n.current,{attributes:!0,attributeFilter:["aria-label","aria-labelledby"]}),()=>x.disconnect()},[p,h,l,d,i,t,n,o]),a}const Soe=(e,t)=>{var r;const o=ft(A=>A.targetRef),n=ft(A=>A.triggerRef),a=ft(A=>A.tagPickerGroupRef),i=ft(A=>A.open),l=ft(A=>A.popoverId),d=ft(A=>A.setOpen),f=ft(A=>A.secondaryActionRef),p=ft(A=>A.size),h=ft(A=>A.appearance),v=ft(A=>A.disabled),y=((r=yg())===null||r===void 0?void 0:r.validationState)==="error",x=ft(A=>{var X;return(X=A.noPopover)!==null&&X!==void 0?X:!1}),{targetDocument:b}=Ve(),k=bt("tagPicker-"),S=m.useRef(null),N=m.useRef(null),B=m.useRef(null),C=m.useRef(null),z=ke(e.secondaryAction,{elementType:"span"}),R=Le(f,z?.ref);z&&(z.ref=R);const E=ke(e.expandIcon,{renderByDefault:!x,defaultProps:{"aria-expanded":i,"aria-disabled":v?"true":void 0,children:m.createElement(lg,null),role:"button"},elementType:"span"}),D=Le(E?.ref,B);E&&(E.ref=D);const I=goe(([A])=>{const X=b?.defaultView;X&&(S.current=X.requestAnimationFrame(()=>{var V;(V=N.current)===null||V===void 0||V.style.setProperty(hoe,`${A.contentRect.width}px`)}))}),M=ke(void 0,{elementType:"span",renderByDefault:!!(z||E),defaultProps:{ref:I}}),O=Le(C,M?.ref);M&&(M.ref=O);const H=de(A=>{if(!A.isDefaultPrevented()&&(Mi(B.current,A.target)||A.target===N.current||A.target===a.current||A.target===C.current)){var X;A.preventDefault(),d(A,!i),(X=n.current)===null||X===void 0||X.focus()}}),$={components:{root:"div",expandIcon:"span",secondaryAction:"span",aside:"span"},root:me($e("div",{ref:Le(t,o,N),"aria-owns":i&&!x?l:void 0,...e,onMouseDown:H}),{elementType:"div"}),aside:M,expandIcon:E,secondaryAction:z,size:p,appearance:h,disabled:v,invalid:y},Z=koe({tagPickerId:k,state:$}),q=Le(E?.ref,Z);return $.expandIcon&&($.expandIcon.ref=q),m.useEffect(()=>{S.current&&b?.defaultView&&b.defaultView.cancelAnimationFrame(S.current)},[b]),$},Boe=e=>Ie(e.root,{children:[e.root.children,e.aside&&Ie(e.aside,{children:[e.secondaryAction&&G(e.secondaryAction,{}),e.expandIcon&&G(e.expandIcon,{})]})]}),xm=m.forwardRef((e,t)=>{const r=Soe(e,t);return woe(r),xe("useTagPickerControlStyles_unstable")(r),Boe(r)});xm.displayName="TagPickerControl";const joe=(e,t)=>{const r=_6(e,t);return{components:{...r.components,media:"div",secondaryContent:"span"},media:ke(e.media,{elementType:"div"}),secondaryContent:ke(e.secondaryContent,{elementType:"span"}),root:me({...r.root,role:"option","aria-checked":e["aria-checked"]},{elementType:"div"})}},Coe=e=>Ie(e.root,{children:[e.media&&G(e.media,{}),e.root.children,e.secondaryContent&&G(e.secondaryContent,{})]}),Bv={root:"fui-TagPickerOption",media:"fui-TagPickerOption__media",secondaryContent:"fui-TagPickerOption__secondaryContent"},Noe=Be("r70qvj9",null,[".r70qvj9{display:flex;align-items:center;}"]),zoe=Y({secondaryContent:{mc9l5x:"f13qh94s",Budl1dq:"fjxzuw"}},{d:[".f13qh94s{display:grid;}",".fjxzuw{grid-template-columns:auto 1fr;}"]}),Toe=Be("r131qrbm",null,[".r131qrbm{grid-column-start:2;grid-row-start:2;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}"]),_oe=Be("rrip69g",null,[".rrip69g{grid-row-start:span 2;}"]),Roe=e=>{"use no memo";const t=Noe(),r=zoe(),o=Toe(),n=_oe();return e.root.className=F(Bv.root,t,e.secondaryContent&&r.secondaryContent,e.root.className),T6({...e,active:!1,disabled:!1,focusVisible:!1,checkIcon:void 0,selected:!1}),e.media&&(e.media.className=F(Bv.media,n,e.media.className)),e.secondaryContent&&(e.secondaryContent.className=F(Bv.secondaryContent,o,e.secondaryContent.className)),e},Wl=m.forwardRef((e,t)=>{const r=joe(e,t);return Roe(r),xe("useTagPickerOptionStyles_unstable")(r),Coe(r)});Wl.displayName="TagPickerOption";function Doe(e){switch(e){case"medium":return"extra-small";case"large":return"small";case"extra-large":return"medium";default:return"extra-small"}}function Eoe(e){switch(e){case"extra-small":return"medium";case"small":return"large";case"medium":return"extra-large";default:return"medium"}}function Poe(e){return e==="filled-darker"?"outline":"filled"}const Moe=(e,t)=>{const r=ft(v=>v.selectedOptions.length>0),o=ft(v=>v.selectedOptions.length===1),n=ft(v=>v.triggerRef),a=ft(v=>v.tagPickerGroupRef),i=ft(v=>v.selectOption),l=ft(v=>Doe(v.size)),d=ft(v=>v.appearance),f=ft(v=>v.disabled),p=Ho({circular:!1,axis:"both",memorizeCurrent:!0});return{...Rz({role:"listbox",disabled:f,...e,...p,size:l,appearance:Poe(d),dismissible:!0,onKeyDown:de(v=>{var y;if((y=e.onKeyDown)===null||y===void 0||y.call(e,v),qt(v.target)&&v.key===Ms){var x;(x=n.current)===null||x===void 0||x.focus()}}),onDismiss:de((v,y)=>{if(i(v,{value:y.value,id:"ERROR_DO_NOT_USE",text:"ERROR_DO_NOT_USE"}),o&&!v.isDefaultPrevented()){var x;(x=n.current)===null||x===void 0||x.focus()}})},Le(t,a)),hasSelectedOptions:r}};function qoe(e,t){return e.hasSelectedOptions?Dz(e,t):null}const Foe={root:"fui-TagPickerGroup"},Ioe=Y({root:{Eh141a:"fni485r",B7ck84d:"f1ewtqcl",Bceei9c:"f113hnb5"},medium:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fa2pw7h",i8kkvl:0,Belr9w4:0,rmohyg:"fkln5zr"},large:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fc0zr7g",i8kkvl:0,Belr9w4:0,rmohyg:"f1eyhf9v"},"extra-large":{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fc0zr7g",i8kkvl:0,Belr9w4:0,rmohyg:"f1eyhf9v"}},{d:[".fni485r{flex-wrap:wrap;}",".f1ewtqcl{box-sizing:border-box;}",".f113hnb5{cursor:text;}",[".fa2pw7h{padding:var(--spacingVerticalSNudge) 0 var(--spacingVerticalSNudge) 0;}",{p:-1}],[".fkln5zr{gap:var(--spacingHorizontalXS);}",{p:-1}],[".fc0zr7g{padding:var(--spacingVerticalS) 0 var(--spacingVerticalS) 0;}",{p:-1}],[".f1eyhf9v{gap:var(--spacingHorizontalSNudge);}",{p:-1}],[".fc0zr7g{padding:var(--spacingVerticalS) 0 var(--spacingVerticalS) 0;}",{p:-1}],[".f1eyhf9v{gap:var(--spacingHorizontalSNudge);}",{p:-1}]]}),Aoe=e=>{"use no memo";Ez(e);const t=Ioe();return e.root.className=F(Foe.root,t[Eoe(e.size)],t.root,e.root.className),e},wm=m.forwardRef((e,t)=>{const r=Moe(e,t);return Aoe(r),xe("useTagPickerGroupStyles_unstable")(r),qoe(r,Pz(r))});wm.displayName="TagPickerGroup";const Ooe=xW,Loe=wW,kB={root:"fui-TagPickerOptionGroup",label:"fui-TagPickerOptionGroup__label"},$oe=e=>{"use no memo";return SW(e),e.root.className=F(kB.root,e.root.className),e.label&&(e.label.className=F(kB.label,e.label.className)),e},Z1=m.forwardRef((e,t)=>{const r=Ooe(e,t);return $oe(r),xe("useTagPickerOptionGroupStyles_unstable")(r),Loe(r)});Z1.displayName="TagPickerOptionGroup";function Hoe(e){return m.createElement(Wl,{value:e,key:e},e)}function Voe({filter:e,noOptionsElement:t,renderOption:r=Hoe,query:o,options:n}){const a=m.useCallback(d=>{const f=o.trim();return f===""?!0:d.toLowerCase().includes(f.toLowerCase())},[o]),i=e??a,l=m.useMemo(()=>n.reduce((d,f,p)=>(i(f,p)&&d.push(r(f)),d),[]),[n,r,i]);return l.length===0?[t.key?t:m.cloneElement(t,{key:"no-options"})]:l}const _t=fo({frame:{height:"100vh",width:"100vw",maxWidth:"100%",display:"grid",gridTemplateRows:"auto 1fr auto",backgroundColor:T.colorNeutralBackground2,color:T.colorNeutralForeground1,overflow:"hidden",minWidth:0},header:{display:"flex",alignItems:"center",columnGap:"10px",paddingLeft:"16px",paddingRight:"12px",height:"48px",backgroundColor:T.colorNeutralBackground1,borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:T.colorNeutralStroke2,flexShrink:0,boxShadow:T.shadow8,zIndex:2,minWidth:0,overflow:"hidden"},brand:{display:"inline-flex",alignItems:"center",gap:"8px",fontSize:"14px",fontWeight:600,color:T.colorNeutralForeground1,letterSpacing:"-0.01em"},brandDot:{display:"inline-block",width:"10px",height:"10px",borderRadius:T.borderRadiusCircular,background:"linear-gradient(135deg, #0f6cbd 0%, #2899f5 100%)"},spacer:{flexGrow:1},body:{display:"grid",gridTemplateColumns:"300px minmax(0, 1fr)",minHeight:0,minWidth:0,overflow:"hidden"},sidebar:{backgroundColor:T.colorNeutralBackground1,borderRightWidth:"1px",borderRightStyle:"solid",borderRightColor:T.colorNeutralStroke2,display:"flex",flexDirection:"column",overflow:"hidden"},sidebarScroll:{flexGrow:1,overflowY:"auto",paddingTop:"4px",paddingBottom:"12px"},modeCard:{padding:"12px 14px",borderLeftWidth:"3px",borderLeftStyle:"solid",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:T.colorNeutralStroke2,backgroundColor:T.colorNeutralBackground2,boxShadow:T.shadow2},modeCardType:{fontSize:"10px",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase"},modeCardName:{fontSize:"14px",fontWeight:600,color:T.colorNeutralForeground1,marginTop:"2px"},modeCardUrl:{fontFamily:T.fontFamilyMonospace,fontSize:"10.5px",color:T.colorNeutralForeground3,marginTop:"4px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},sectionH:{padding:"14px 14px 4px",fontSize:"10px",fontWeight:600,letterSpacing:"0.06em",textTransform:"uppercase",color:T.colorNeutralForeground2,display:"flex",alignItems:"center",columnGap:"6px"},ctiList:{display:"flex",flexDirection:"column",margin:0,padding:0,listStyle:"none"},cti:{display:"grid",gridTemplateColumns:"20px 18px 1fr auto",columnGap:"8px",alignItems:"center",paddingLeft:"14px",paddingRight:"12px",paddingTop:"4px",paddingBottom:"4px",minHeight:"28px",cursor:"pointer",fontSize:"13px",color:T.colorNeutralForeground1,border:"none",background:"transparent",width:"100%",textAlign:"left",fontFamily:"inherit",position:"relative",":hover":{backgroundColor:T.colorNeutralBackground1Hover},":focus-visible":{outlineWidth:"2px",outlineStyle:"solid",outlineColor:T.colorStrokeFocus2,outlineOffset:"-2px"}},ctiSelected:{backgroundColor:T.colorBrandBackground2,fontWeight:600},ctiSelectedRule:{position:"absolute",left:0,top:0,bottom:0,width:"2px"},ctiDirty:{color:T.colorPaletteRedForeground1,fontWeight:700,fontSize:"13px",lineHeight:1,width:"6px",textAlign:"center"},ctiBadge:{display:"inline-block",maxWidth:"120px",height:"16px",lineHeight:"16px",fontSize:"11px",paddingLeft:"4px",paddingRight:"4px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flexShrink:0},srOnly:{position:"absolute",width:"1px",height:"1px",margin:"-1px",padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",whiteSpace:"nowrap",border:0},ctiIcon:{width:"16px",height:"16px",flexShrink:0},ctiLabel:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},ctiCodeLabel:{fontFamily:T.fontFamilyMonospace,fontSize:"12px"},ctiIndent1:{paddingLeft:"32px"},ctiIndent2:{paddingLeft:"50px"},ctiIndent3:{paddingLeft:"68px"},main:{display:"flex",flexDirection:"column",minWidth:0,minHeight:0,overflow:"hidden"},mainTabsBar:{display:"flex",alignItems:"center",gap:"8px",paddingLeft:"14px",paddingRight:"14px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:T.colorNeutralStroke2,backgroundColor:T.colorNeutralBackground1},mainBody:{flexGrow:1,overflowY:"auto",overflowX:"auto",backgroundColor:T.colorNeutralBackground2,padding:"20px 24px",minWidth:0,minHeight:0},paneHead:{display:"flex",alignItems:"center",gap:"10px",paddingBottom:"14px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:T.colorNeutralStroke2,marginBottom:"16px",flexWrap:"wrap"},paneTitle:{fontSize:"20px",fontWeight:600,color:T.colorNeutralForeground1},paneSub:{fontSize:"12px",color:T.colorNeutralForeground3,lineHeight:1.45,minWidth:0,flexShrink:1},footer:{display:"flex",alignItems:"center",gap:"8px",paddingLeft:"12px",paddingRight:"12px",height:"44px",backgroundColor:T.colorNeutralBackground1,borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:T.colorNeutralStroke2,flexShrink:0,boxShadow:T.shadow8,zIndex:2,minWidth:0,overflow:"hidden"},methodPill:{padding:"4px 10px",borderRadius:T.borderRadiusCircular,fontFamily:T.fontFamilyMonospace,fontSize:"11px",fontWeight:700,letterSpacing:"0.04em",color:"var(--color-method-fg, #fff)",flexShrink:0,minWidth:"52px",textAlign:"center"},urlText:{display:"block",flexGrow:1,flexShrink:1,flexBasis:"0%",minWidth:0,fontFamily:T.fontFamilyMonospace,fontSize:"12px",color:T.colorNeutralForeground1,backgroundColor:T.colorNeutralBackground2,padding:"6px 10px",borderRadius:T.borderRadiusMedium,border:`1px solid ${T.colorNeutralStroke2}`,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",cursor:"text",userSelect:"all"},advisoryChip:{display:"inline-flex",alignItems:"center",columnGap:"6px",height:"28px",paddingTop:"0",paddingRight:"8px",paddingBottom:"0",paddingLeft:"8px",borderRadius:T.borderRadiusMedium,borderTopWidth:"1px",borderRightWidth:"1px",borderBottomWidth:"1px",borderLeftWidth:"1px",borderTopStyle:"solid",borderRightStyle:"solid",borderBottomStyle:"solid",borderLeftStyle:"solid",borderTopColor:T.colorNeutralStroke2,borderRightColor:T.colorNeutralStroke2,borderBottomColor:T.colorNeutralStroke2,borderLeftColor:T.colorNeutralStroke2,backgroundColor:T.colorNeutralBackground1,cursor:"pointer",":hover":{backgroundColor:T.colorNeutralBackground1Hover,borderTopColor:T.colorNeutralStroke1,borderRightColor:T.colorNeutralStroke1,borderBottomColor:T.colorNeutralStroke1,borderLeftColor:T.colorNeutralStroke1},":focus-visible":{outlineWidth:"2px",outlineStyle:"solid",outlineColor:T.colorStrokeFocus2,outlineOffset:"1px"}},advisoryChipOpen:{backgroundColor:T.colorNeutralBackground1Pressed,borderTopColor:T.colorNeutralStroke1,borderRightColor:T.colorNeutralStroke1,borderBottomColor:T.colorNeutralStroke1,borderLeftColor:T.colorNeutralStroke1},advisorySurface:{padding:0,maxWidth:"420px",minWidth:"320px",overflow:"hidden"},advisoryHeader:{display:"flex",alignItems:"center",padding:"10px 12px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:T.colorNeutralStroke2,background:T.colorNeutralBackground2},advisorySection:{paddingBottom:"4px",":not(:last-child)":{borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:T.colorNeutralStroke3}},advisorySectionHead:{fontSize:"10px",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.5px",color:T.colorNeutralForeground3,padding:"8px 12px 4px"},advisoryRow:{display:"flex",alignItems:"flex-start",gap:"8px",padding:"6px 12px 8px",":hover":{background:T.colorNeutralBackground1Hover}},advisoryRowIcon:{flexShrink:0,paddingTop:"2px"},advisoryTitle:{fontSize:"12px",fontWeight:600,color:T.colorNeutralForeground1,lineHeight:1.4},advisoryBody:{fontSize:"11px",color:T.colorNeutralForeground2,lineHeight:1.45,marginTop:"2px"},advisoryLink:{fontSize:"11px",color:T.colorBrandForeground1,textDecoration:"none",display:"inline-block",marginTop:"4px",":hover":{textDecoration:"underline"}},pickerChip:{display:"inline-flex",alignItems:"center",gap:"8px",padding:"4px 10px 4px 8px",borderRadius:T.borderRadiusMedium,backgroundColor:T.colorNeutralBackground3,cursor:"pointer",fontSize:"13px",fontWeight:500,border:"none",color:T.colorNeutralForeground1,fontFamily:"inherit",height:"30px",minWidth:0,maxWidth:"280px",overflow:"hidden",":hover":{backgroundColor:T.colorNeutralBackground3Hover}},pickerChipLabel:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},paletteSearchWrap:{padding:"12px 14px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:T.colorNeutralStroke2},paletteList:{maxHeight:"480px",overflowY:"auto",padding:"6px 0"},paletteGroupH:{padding:"10px 14px 4px",fontSize:"10px",fontWeight:600,letterSpacing:"0.06em",textTransform:"uppercase",color:T.colorNeutralForeground3},paletteRow:{display:"grid",gridTemplateColumns:"24px 1fr 60px",columnGap:"10px",alignItems:"center",padding:"8px 14px",fontSize:"13px",cursor:"pointer",color:T.colorNeutralForeground1,":hover":{backgroundColor:T.colorNeutralBackground1Hover}},paletteRowDisabled:{opacity:.5,cursor:"not-allowed"},paletteRowMethod:{fontFamily:T.fontFamilyMonospace,fontSize:"10px",fontWeight:700,color:T.colorNeutralForeground3,textAlign:"right"},paletteFoot:{padding:"8px 14px",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:T.colorNeutralStroke2,fontSize:"11px",color:T.colorNeutralForeground3,display:"flex",alignItems:"center",gap:"12px",backgroundColor:T.colorNeutralBackground2},filterPreview:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px",marginBottom:"12px",backgroundColor:T.colorNeutralBackground2,border:`1px solid ${T.colorNeutralStroke2}`,borderRadius:T.borderRadiusMedium,fontFamily:T.fontFamilyMonospace,fontSize:"11px",color:T.colorNeutralForeground2,overflow:"hidden"},filterPreviewKey:{fontWeight:600,flexShrink:0},filterPreviewVal:{flexGrow:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},filterGroup:{border:`1px solid ${T.colorNeutralStroke2}`,borderLeftWidth:"3px",borderLeftStyle:"solid",borderRadius:T.borderRadiusMedium,backgroundColor:T.colorNeutralBackground1,overflow:"hidden",boxShadow:T.shadow2},filterGroupHeader:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px",backgroundColor:T.colorNeutralBackground2,borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:T.colorNeutralStroke2},filterGroupBody:{padding:"8px 10px 4px",display:"flex",flexDirection:"column",gap:"6px"},filterGroupFooter:{padding:"4px 10px 10px",display:"flex",gap:"6px"},combToggle:{display:"flex",border:`1px solid ${T.colorNeutralStroke1}`,borderRadius:T.borderRadiusMedium,overflow:"hidden",height:"24px"},combBtn:{padding:"0 12px",height:"24px",backgroundColor:"transparent",border:"none",fontFamily:T.fontFamilyBase,fontSize:"11px",fontWeight:600,letterSpacing:"0.04em",cursor:"pointer",color:T.colorNeutralForeground2},combBtnActive:{color:"#fff"},combLabel:{fontSize:"11px",fontWeight:600,color:T.colorNeutralForeground3,textTransform:"uppercase",letterSpacing:"0.06em"},filterRow:{display:"grid",gridTemplateColumns:"20px minmax(150px, 1fr) 160px minmax(220px, 1.2fr) 28px",gap:"8px",alignItems:"center",padding:"6px 8px",backgroundColor:T.colorNeutralBackground2,border:`1px solid ${T.colorNeutralStroke2}`,borderRadius:T.borderRadiusMedium,minWidth:"660px"},filterRowNoVal:{gridTemplateColumns:"20px minmax(150px, 1fr) 160px 1fr 28px",minWidth:"660px"},filterJoin:{fontSize:"10px",fontWeight:700,letterSpacing:"0.08em",color:T.colorNeutralForeground3,textTransform:"uppercase",paddingLeft:"8px"},filterJoinDivider:{paddingTop:"2px",paddingBottom:"2px",marginTop:"-2px",marginBottom:"-2px"},notToggle:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"2px 8px",height:"24px",borderRadius:T.borderRadiusMedium,border:`1px solid ${T.colorNeutralStroke1}`,backgroundColor:"transparent",fontFamily:T.fontFamilyMonospace,fontSize:"11px",fontWeight:700,color:T.colorNeutralForeground3,cursor:"pointer",flexShrink:0,":hover":{backgroundColor:T.colorNeutralBackground1Hover}},notToggleActive:{backgroundColor:T.colorPaletteRedBackground2,color:T.colorPaletteRedForeground1,borderTopColor:T.colorPaletteRedBorder1,borderRightColor:T.colorPaletteRedBorder1,borderBottomColor:T.colorPaletteRedBorder1,borderLeftColor:T.colorPaletteRedBorder1},fnBlock:{display:"flex",flexDirection:"column",gap:"6px",padding:"10px 12px",borderRadius:T.borderRadiusMedium,backgroundColor:T.colorNeutralBackground2,border:`1px solid ${T.colorNeutralStroke2}`,borderLeftWidth:"3px",borderLeftStyle:"solid",borderLeftColor:"#8764b8",minWidth:"660px"},fnHeader:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap"},fnBadge:{fontFamily:T.fontFamilyMonospace,fontWeight:700,fontSize:"10px",padding:"2px 7px",borderRadius:T.borderRadiusSmall,backgroundColor:"var(--color-request-relate-tint)",color:"var(--color-request-relate-text)"},fnPrefix:{fontFamily:T.fontFamilyMonospace,fontSize:"11px",color:T.colorNeutralForeground3},fnDescription:{fontSize:"11px",color:T.colorNeutralForeground3,fontStyle:"italic"},fnParams:{display:"flex",flexDirection:"column",gap:"4px",paddingLeft:"8px",paddingTop:"4px"},fnParamRow:{display:"flex",alignItems:"center",gap:"8px"},fnParamLabel:{fontFamily:T.fontFamilyMonospace,fontSize:"11px",color:T.colorNeutralForeground3,minWidth:"110px",flexShrink:0},lamBlock:{display:"flex",flexDirection:"column",gap:"6px",padding:"10px 12px",borderRadius:T.borderRadiusMedium,backgroundColor:T.colorNeutralBackground2,border:`1px solid ${T.colorNeutralStroke2}`,borderLeftWidth:"3px",borderLeftStyle:"solid",borderLeftColor:T.colorBrandForeground1,minWidth:"660px"},lamHeader:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap"},lamBadge:{fontFamily:T.fontFamilyMonospace,fontWeight:700,fontSize:"13px",lineHeight:1.2,padding:"2px 8px",borderRadius:T.borderRadiusSmall,backgroundColor:T.colorBrandBackground2,color:T.colorBrandForeground1,minWidth:"22px",textAlign:"center",display:"inline-flex",alignItems:"center",justifyContent:"center"},lamInner:{padding:"6px 10px",backgroundColor:T.colorNeutralBackground1,borderRadius:T.borderRadiusMedium,border:`1px solid ${T.colorNeutralStroke2}`,marginLeft:"24px"},lamAliasPrefix:{fontFamily:T.fontFamilyMonospace,fontSize:"12px",color:T.colorNeutralForeground3,fontWeight:600,paddingRight:"4px"},dragHandle:{color:T.colorNeutralForeground4,width:"14px",height:"14px",cursor:"grab",flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center"},generatedCard:{marginTop:"16px",padding:"12px 14px",borderRadius:T.borderRadiusMedium,backgroundColor:T.colorNeutralBackground1,border:`1px solid ${T.colorNeutralStroke2}`},generatedLabel:{fontSize:"10px",fontWeight:600,textTransform:"uppercase",letterSpacing:"0.06em",color:T.colorNeutralForeground3,marginBottom:"6px"},generatedCode:{fontFamily:T.fontFamilyMonospace,fontSize:"12px",color:T.colorNeutralForeground1,wordBreak:"break-all",lineHeight:1.55},generatedKey:{color:"var(--color-request-relate-text)",fontWeight:600},addMenuTrigger:{height:"28px",padding:"0 10px",borderRadius:T.borderRadiusMedium,border:"none",background:"transparent",fontFamily:"inherit",fontSize:"12px",color:T.colorBrandForeground1,fontWeight:500,cursor:"pointer",display:"inline-flex",alignItems:"center",gap:"4px",":hover":{backgroundColor:T.colorNeutralBackground1Hover}},selectGrid:{display:"grid",gridTemplateColumns:"1fr auto 1fr",gap:"12px",minHeight:"440px",maxHeight:"60vh"},colList:{border:`1px solid ${T.colorNeutralStroke2}`,borderRadius:T.borderRadiusMedium,backgroundColor:T.colorNeutralBackground1,display:"flex",flexDirection:"column",overflow:"hidden",minHeight:0,maxHeight:"60vh"},colListH:{padding:"8px 12px",fontSize:"11px",fontWeight:600,color:T.colorNeutralForeground2,backgroundColor:T.colorNeutralBackground2,borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:T.colorNeutralStroke2,display:"flex",alignItems:"center",gap:"6px"},colListBody:{flexGrow:1,overflowY:"auto",padding:"4px 0"},colRow:{padding:"6px 12px",fontSize:"12px",cursor:"pointer",display:"flex",alignItems:"center",gap:"8px",color:T.colorNeutralForeground1,border:"none",backgroundColor:"transparent",width:"100%",textAlign:"left",fontFamily:"inherit",":hover":{backgroundColor:T.colorNeutralBackground1Hover}},colRowSelected:{backgroundColor:T.colorBrandBackground2},colArrows:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px"},colMeta:{fontSize:"10px",color:T.colorNeutralForeground3,fontFamily:T.fontFamilyMonospace,marginLeft:"auto"},colTypeBadge:{fontSize:"9px",color:T.colorNeutralForeground3,backgroundColor:T.colorNeutralBackground3,borderRadius:T.borderRadiusSmall,padding:"1px 5px"},recentRow:{display:"flex",gap:"8px",alignItems:"center",padding:"6px 14px",fontSize:"11px",color:T.colorNeutralForeground2,cursor:"pointer",":hover":{backgroundColor:T.colorNeutralBackground1Hover}},recentRowStatic:{display:"flex",gap:"8px",alignItems:"center",padding:"6px 14px",fontSize:"11px",color:T.colorNeutralForeground2},inlineCard:{border:`1px solid ${T.colorNeutralStroke2}`,borderRadius:T.borderRadiusMedium,backgroundColor:T.colorNeutralBackground1,padding:"14px"},inlineCardDanger:{border:`1px solid ${T.colorNeutralStroke2}`,borderLeftWidth:"3px",borderLeftColor:T.colorPaletteRedBorderActive,borderRadius:T.borderRadiusMedium,backgroundColor:T.colorNeutralBackground1,padding:"14px"},inlineCardAccent:{border:`1px solid ${T.colorNeutralStroke2}`,borderLeftWidth:"3px",borderRadius:T.borderRadiusMedium,backgroundColor:T.colorNeutralBackground1,padding:"14px"},kvGrid:{display:"grid",gridTemplateColumns:"160px 1fr",rowGap:"6px",columnGap:"14px",fontSize:"11px",alignItems:"baseline"},kvKey:{color:T.colorNeutralForeground3,fontFamily:T.fontFamilyBase},kvVal:{color:T.colorNeutralForeground1,wordBreak:"break-word"},kvValMono:{color:T.colorNeutralForeground1,fontFamily:T.fontFamilyMonospace,fontSize:"10px",wordBreak:"break-all"},detailGrid:{display:"grid",gridTemplateColumns:"160px 1fr",rowGap:"6px",columnGap:"14px",alignItems:"baseline"},detailKey:{fontSize:"11px",color:T.colorNeutralForeground3,textTransform:"uppercase",letterSpacing:"0.04em",fontWeight:600},detailVal:{fontSize:"13px",color:T.colorNeutralForeground1},emptyState:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"60px 20px",textAlign:"center",gap:"12px",color:T.colorNeutralForeground3}}),Woe={...FF},Uoe={...OF};function Goe(e){document.documentElement.setAttribute("data-theme",e)}const Pn=e=>`var(--color-request-${e})`,jv=e=>`var(--color-method-${e.toLowerCase()})`,Zoe="modulepreload",Koe=function(e,t){return new URL(e,t).href},SB={},cr=function(t,r,o){let n=Promise.resolve();if(r&&r.length>0){let f=function(p){return Promise.all(p.map(h=>Promise.resolve(h).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};const i=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),d=l?.nonce||l?.getAttribute("nonce");n=f(r.map(p=>{if(p=Koe(p,o),p in SB)return;SB[p]=!0;const h=p.endsWith(".css"),v=h?'[rel="stylesheet"]':"";if(o)for(let x=i.length-1;x>=0;x--){const b=i[x];if(b.href===p&&(!h||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${p}"]${v}`))return;const y=document.createElement("link");if(y.rel=h?"stylesheet":Zoe,h||(y.as="script"),y.crossOrigin="",y.href=p,d&&y.setAttribute("nonce",d),document.head.appendChild(y),h)return new Promise((x,b)=>{y.addEventListener("load",x),y.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${p}`)))})}))}function a(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return n.then(i=>{for(const l of i||[])l.status==="rejected"&&a(l.reason);return t().catch(a)})},ps=[{id:"retrieve-multiple",name:"Retrieve Multiple",method:"GET",group:"read",icon:my,sub:"Query a table",implemented:!0,executeVerb:"Execute"},{id:"retrieve-single",name:"Retrieve Single",method:"GET",group:"read",icon:nv,sub:"By ID",implemented:!0,executeVerb:"Execute"},{id:"retrieve-nextlink",name:"Retrieve NextLink",method:"GET",group:"read",icon:Ap,sub:"Pagination",implemented:!0,executeVerb:"Execute"},{id:"predefined-query",name:"Predefined Query",method:"GET",group:"read",icon:Ns,sub:"Saved or user query",implemented:!0,executeVerb:"Execute"},{id:"create",name:"Create Record",method:"POST",group:"write",icon:nv,sub:"Insert one",implemented:!0,executeVerb:"Send"},{id:"update",name:"Update Record",method:"PATCH",group:"write",icon:j1,sub:"Modify fields",implemented:!0,executeVerb:"Send"},{id:"upsert",name:"Upsert Record",method:"PATCH",group:"write",icon:j1,sub:"Create or update",implemented:!0,executeVerb:"Send"},{id:"delete",name:"Delete Record",method:"DELETE",group:"write",icon:mn,sub:"Remove one",implemented:!0,executeVerb:"Send"},{id:"bulk-delete",name:"Bulk Delete Job",method:"POST",group:"bulk",icon:rO,sub:"Async BulkDelete from a query",implemented:!0,executeVerb:"Send"},{id:"merge",name:"Merge Records",method:"POST",group:"write",icon:Cs,sub:"Two records into one",implemented:!0,executeVerb:"Send"},{id:"bulk-write",name:"Bulk Write",method:"POST",group:"bulk",icon:Fp,sub:"Create/Update/Upsert/DeleteMultiple",implemented:!0,executeVerb:"Send"},{id:"associate",name:"Associate",method:"POST",altMethod:"PATCH",group:"relate",icon:Ll,sub:"Link records",implemented:!0,executeVerb:"Send"},{id:"disassociate",name:"Disassociate",method:"DELETE",altMethod:"PATCH",group:"relate",icon:Ll,sub:"Unlink records",implemented:!0,executeVerb:"Send"},{id:"exec-action",name:"Execute Action",method:"POST",group:"execute",icon:q2,sub:"Bound or unbound",implemented:!0,executeVerb:"Run"},{id:"exec-function",name:"Execute Function",method:"GET",group:"execute",icon:q2,sub:"OData function",implemented:!0,executeVerb:"Run"},{id:"exec-customapi",name:"Execute Custom API",method:"POST",group:"execute",icon:S1,sub:"Custom API",implemented:!0,executeVerb:"Run"},{id:"exec-customaction",name:"Execute Custom Action",method:"POST",group:"execute",icon:S1,sub:"Custom Action",implemented:!0,executeVerb:"Run"},{id:"exec-workflow",name:"Execute Workflow",method:"POST",group:"execute",icon:tA,sub:"On-demand workflow",implemented:!0,executeVerb:"Run"},{id:"manage-file",name:"Manage File Data",method:"PATCH",group:"binary",icon:nv,sub:"File column",implemented:!0,executeVerb:"Run"},{id:"manage-image",name:"Manage Image Data",method:"PATCH",group:"binary",icon:eA,sub:"Image column",implemented:!0,executeVerb:"Run"},{id:"manage-attachment",name:"Manage Attachment / Note",method:"POST",group:"binary",icon:eO,sub:"Attachment & Annotation",implemented:!0,executeVerb:"Run"},{id:"batch",name:"$batch Request",method:"BATCH",group:"batch",icon:Fp,sub:"Change sets & multiple requests",implemented:!0,executeVerb:"Send"},{id:"execute-multiple",name:"ExecuteMultiple",method:"BATCH",group:"batch",icon:Fp,sub:"SDK-style bulk requests via $batch",implemented:!0,executeVerb:"Send"}],Cv=[{id:"read",label:"Read"},{id:"write",label:"Write"},{id:"relate",label:"Relate"},{id:"execute",label:"Execute"},{id:"batch",label:"Batch"},{id:"binary",label:"Binary"},{id:"bulk",label:"Bulk"}],_s=e=>ps.find(t=>t.id===e)??ps[0];function Ng({method:e,altMethod:t,size:r="md"}){const o=_t();return t?c.jsxs("span",{className:o.methodPill,style:{background:`linear-gradient(90deg, ${jv(e)} 50%, ${jv(t)} 50%)`,fontSize:r==="sm"?"10px":"11px",padding:r==="sm"?"2px 8px":"4px 10px",color:"var(--color-method-fg, #fff)"},title:`${e} (collection-valued) / ${t} (single-valued) — verb depends on the chosen navigation property's cardinality`,children:[e,"/",t]}):c.jsx("span",{className:o.methodPill,style:{backgroundColor:jv(e),fontSize:r==="sm"?"10px":"11px",padding:r==="sm"?"2px 8px":"4px 10px"},children:e})}function Xoe({activeId:e,onPick:t}){const r=_t(),[o,n]=m.useState(!1),[a,i]=m.useState(!1),[l,d]=m.useState(""),f=_s(e);m.useEffect(()=>{const B=C=>{(C.metaKey||C.ctrlKey)&&C.key.toLowerCase()==="k"&&(C.preventDefault(),i(!0),n(!1))};return window.addEventListener("keydown",B),()=>window.removeEventListener("keydown",B)},[]);const p=m.useMemo(()=>{if(!l)return ps;const B=l.toLowerCase();return ps.filter(C=>C.name.toLowerCase().includes(B)||C.id.includes(B)||C.method.toLowerCase().includes(B)||C.sub.toLowerCase().includes(B))},[l]),h=m.useMemo(()=>{const B=new Map(Cv.map(C=>[C.id,[]]));return p.forEach(C=>B.get(C.group)?.push(C)),Cv.map(C=>({...C,items:B.get(C.id)??[]})).filter(C=>C.items.length)},[p]),v=B=>{_s(B).implemented,t(B),n(!1),i(!1),d("")},y=m.useRef(null),x=m.useRef(null),b=()=>Array.from(y.current?.querySelectorAll("[data-palette-row]")??[]),k=B=>{if(B.key==="ArrowDown")B.preventDefault(),b()[0]?.focus();else if(B.key==="Enter"){const C=h[0]?.items[0];C&&(B.preventDefault(),v(C.id))}},S=(B,C)=>{if(B.key==="Enter"||B.key===" "){B.preventDefault(),v(C);return}if(B.key!=="ArrowDown"&&B.key!=="ArrowUp")return;B.preventDefault();const z=b(),R=z.indexOf(B.currentTarget);B.key==="ArrowDown"?z[Math.min(R+1,z.length-1)]?.focus():R<=0?x.current?.focus():z[R-1]?.focus()},N=f.icon;return c.jsxs(m.Fragment,{children:[c.jsxs(Gi,{positioning:{position:"below",align:"start",autoSize:"height-always"},open:o,onOpenChange:(B,C)=>n(C.open),withArrow:!1,children:[c.jsx(Ya,{disableButtonEnhancement:!0,children:c.jsxs("button",{className:r.pickerChip,type:"button","aria-haspopup":"dialog","aria-expanded":o,children:[c.jsx(N,{style:{color:Pn(f.group),width:18,height:18,flexShrink:0}}),c.jsx("span",{className:r.pickerChipLabel,children:f.name}),c.jsx(Ng,{method:f.method,altMethod:f.altMethod,size:"sm"}),c.jsx(NC,{style:{color:T.colorNeutralForeground3,width:14,height:14,flexShrink:0}})]})}),c.jsxs(Ui,{style:{padding:0,minWidth:460},children:[c.jsxs("div",{style:{padding:"10px 14px",fontSize:11,color:T.colorNeutralForeground3,display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:`1px solid ${T.colorNeutralStroke2}`},children:[c.jsxs("span",{children:["Pick request type · ",ps.length," modes"]}),c.jsxs("button",{type:"button",onClick:()=>{n(!1),i(!0)},style:{display:"inline-flex",alignItems:"center",gap:4,fontSize:11,padding:"2px 8px",borderRadius:T.borderRadiusMedium,background:T.colorNeutralBackground3,border:"none",color:T.colorNeutralForeground2,cursor:"pointer",fontFamily:"inherit"},children:[c.jsx(Ol,{style:{width:12,height:12}})," Search · Ctrl+K"]})]}),c.jsx(Ma,{style:{padding:0,maxHeight:480,overflowY:"auto"},children:Cv.map(B=>{const C=ps.filter(z=>z.group===B.id);return c.jsxs(m.Fragment,{children:[c.jsx(Ly,{children:B.label}),C.map(z=>{const R=z.icon;return c.jsx(un,{icon:c.jsx(R,{style:{color:Pn(z.group)}}),onClick:()=>v(z.id),secondaryContent:c.jsxs("span",{style:{display:"inline-flex",gap:6,alignItems:"center"},children:[!z.implemented&&c.jsx(ct,{size:"small",appearance:"ghost",children:"soon"}),c.jsx("span",{style:{fontFamily:T.fontFamilyMonospace,fontSize:10,fontWeight:700},children:z.method})]}),children:z.name},z.id)})]},B.id)})})]})]}),c.jsx(Va,{open:a,onOpenChange:(B,C)=>i(C.open),modalType:"non-modal",children:c.jsx(Is,{"aria-label":"Search request types",style:{padding:0,maxWidth:600,width:"90vw"},children:c.jsxs(Fs,{style:{display:"block",padding:0},children:[c.jsx("div",{className:r.paletteSearchWrap,children:c.jsx(Ht,{appearance:"filled-darker","aria-label":"Search request types",placeholder:"Search request types…",value:l,onChange:(B,C)=>d(C.value),onKeyDown:k,input:{ref:x},contentBefore:c.jsx(Ol,{}),style:{width:"100%"},autoFocus:!0})}),c.jsxs("div",{className:r.paletteList,ref:y,children:[h.length===0&&c.jsx("div",{style:{padding:"20px 14px",color:T.colorNeutralForeground3,fontSize:12},children:"No matches."}),h.map(B=>c.jsxs(m.Fragment,{children:[c.jsx("div",{className:r.paletteGroupH,children:B.label}),B.items.map(C=>{const z=C.icon;return c.jsxs("div",{className:F(r.paletteRow,!C.implemented&&r.paletteRowDisabled),onClick:()=>v(C.id),onKeyDown:R=>S(R,C.id),role:"button",tabIndex:0,"data-palette-row":!0,children:[c.jsx(z,{style:{color:Pn(C.group),width:18,height:18}}),c.jsxs("div",{children:[c.jsxs("div",{style:{fontWeight:C.id===e?600:400,display:"flex",alignItems:"center",gap:6},children:[C.name,!C.implemented&&c.jsx(ct,{size:"small",appearance:"ghost",children:"soon"})]}),c.jsx("div",{style:{fontSize:11,color:T.colorNeutralForeground3},children:C.sub})]}),c.jsx("div",{className:r.paletteRowMethod,children:C.method})]},C.id)})]},B.id))]}),c.jsxs("div",{className:r.paletteFoot,children:[c.jsxs("span",{children:[c.jsx("kbd",{children:"↑↓"})," navigate"]}),c.jsxs("span",{children:[c.jsx("kbd",{children:"↵"})," select"]}),c.jsxs("span",{children:[c.jsx("kbd",{children:"Esc"})," close"]}),c.jsxs("span",{style:{marginLeft:"auto"},children:[p.length," of ",ps.length," types"]})]})]})})})]})}function Yoe(){return typeof window<"u"&&!!window.toolboxAPI}const An=Yoe();let En={embedded:An,connected:!1,theme:Joe(),environmentUrl:"",environment:"",connectionName:"",handshakeDone:!An};function Joe(){return typeof window>"u"?"light":new URLSearchParams(window.location.search).get("theme")==="dark"?"dark":"light"}const K1=new Set;function zl(e){En=e;for(const t of K1)try{t(En)}catch(r){console.error("[pptbBridge] listener threw",r)}}async function oT(e){try{const t=await e.utils?.getCurrentTheme?.();return String(t??"light").toLowerCase()==="dark"?"dark":"light"}catch(t){return console.warn("[pptbBridge] getCurrentTheme failed",t),"light"}}let _u=null,BB=0,Nv=0;async function Qoe(e){try{const t=await e.connections?.getActiveConnection?.();return t?{connected:!0,environmentUrl:t.url??"",environment:t.environment??"",connectionName:t.name??"",id:typeof t.id=="string"&&t.id?t.id:null}:{connected:!1,environmentUrl:"",environment:"",connectionName:"",id:null}}catch(t){return console.warn("[pptbBridge] getActiveConnection failed",t),null}}function ene(e){if(e&&typeof e=="object"&&"id"in e){const t=e.id;if(typeof t=="string"&&t)return t}return null}function tne(e){if(!e.events?.on){console.warn("[pptbBridge] toolboxAPI.events.on missing — running without live updates");return}const t=(r,o)=>{if(!(!o||typeof o.event!="string"))switch(o.event){case"settings:updated":{if(o.data&&typeof o.data=="object"&&"theme"in o.data){const n=String(o.data.theme??"").toLowerCase();zl({...En,theme:n==="dark"?"dark":"light"})}else rne(e);break}case"connection:updated":case"connection:created":km(e);break;case"connection:deleted":{const n=ene(o.data);if(n&&_u&&n!==_u)break;km(e,n!==null&&n===_u);break}}};e.events.on(t)}async function rne(e){const t=await oT(e);zl({...En,theme:t})}async function km(e,t=!1){const r=++BB,o=await Qoe(e),n=r===BB;if(r<Nv)return;if(!o){if(!n)return;if(t){Nv=r,_u=null,zl({...En,connected:!1,environmentUrl:"",environment:"",connectionName:"",handshakeDone:!0});return}console.warn("[pptbBridge] keeping the last known connection after a failed refetch"),En.handshakeDone||zl({...En,handshakeDone:!0});return}if(!n&&!o.connected)return;Nv=r;const{id:a,...i}=o;_u=a,zl({...En,...i,handshakeDone:!0})}function one(){return!An||typeof window>"u"||!window.toolboxAPI?Promise.resolve():km(window.toolboxAPI)}if(An&&typeof window<"u"&&window.toolboxAPI){const e=window.toolboxAPI;tne(e),(async()=>(zl({...En,theme:await oT(e)}),await km(e)))()}const Ea=()=>An,Qu=()=>En;function nT(e){return K1.add(e),e(En),()=>K1.delete(e)}class fc extends Error{constructor(t){super(`PPTB host method '${t}' is not available — running standalone.`),this.name="HostNotAvailableError"}}function Et(){if(!An||typeof window>"u"||!window.dataverseAPI)throw new fc("window.dataverseAPI");return window.dataverseAPI}const zg=An&&typeof window<"u"&&typeof window.dataverseAPI?.executeBatch=="function",On=()=>zg,nne=()=>zg,ed=()=>!An||zg;function ds(e){if(!(!zg||!e||Object.keys(e).length===0))return e}function ea(){if(!An||typeof window>"u"||!window.toolboxAPI)throw new fc("window.toolboxAPI");return window.toolboxAPI}const gr={create:(e,t,r)=>{const o=ds(r);return o?Et().create(e,t,void 0,o):Et().create(e,t)},retrieve:(e,t,r)=>Et().retrieve(e,t,r),update:(e,t,r,o)=>{const n=ds(o);return n?Et().update(e,t,r,void 0,n):Et().update(e,t,r)},delete:(e,t,r)=>{const o=ds(r);return o?Et().delete(e,t,void 0,o):Et().delete(e,t)},createMultiple:(e,t)=>Et().createMultiple(e,t),updateMultiple:(e,t)=>Et().updateMultiple(e,t),executeBatch:(e,t)=>t&&Object.keys(t).length>0?Et().executeBatch(e,void 0,t):Et().executeBatch(e),executeTransaction:(e,t)=>t&&Object.keys(t).length>0?Et().executeTransaction(e,void 0,t):Et().executeTransaction(e),queryData:(e,t)=>{const r=ds(t);return r?Et().queryData(e,void 0,r):Et().queryData(e)},fetchXmlQuery:e=>Et().fetchXmlQuery(e),execute:(e,t)=>{const r=ds(t);return r?Et().execute(e,void 0,r):Et().execute(e)},associate:(e,t,r,o,n,a)=>{const i=ds(a);return i?Et().associate(e,t,r,o,n,void 0,i):Et().associate(e,t,r,o,n)},disassociate:(e,t,r,o,n)=>{const a=ds(n);return a?Et().disassociate(e,t,r,o,void 0,a):Et().disassociate(e,t,r,o)},metadata:{getEntity:(e,t)=>Et().getEntityMetadata(e,!0,t),getAllEntities:e=>Et().getAllEntitiesMetadata(e),getRelated:(e,t,r)=>Et().getEntityRelatedMetadata(e,t,r),queryRaw:e=>Et().queryData(e),getSolutions:e=>Et().getSolutions(e),getEntitySetName:e=>Et().getEntitySetName(e),getCSDLDocument:()=>Et().getCSDLDocument()}},jB={fileSystem:{saveFile:(e,t,r)=>ea().fileSystem.saveFile(e,t,r),readText:e=>ea().fileSystem.readText(e),readBinary:e=>ea().fileSystem.readBinary(e),exists:e=>ea().fileSystem.exists(e),selectPath:e=>ea().fileSystem.selectPath(e)},utils:{copyToClipboard:e=>ea().utils.copyToClipboard(e),showNotification:e=>ea().utils.showNotification(e)},settings:{get:e=>ea().settings.get(e),set:(e,t)=>ea().settings.set(e,t),getAll:()=>ea().settings.getAll()}};async function aT(e){let t;if(An&&typeof window<"u"&&window.toolboxAPI)try{await window.toolboxAPI.utils.copyToClipboard(e);return}catch(o){t=o,console.warn("[pptbBridge] toolboxAPI.utils.copyToClipboard failed, falling back to navigator.clipboard",o)}const r=o=>t===void 0?o:t instanceof Error?t:new Error(String(t));if(typeof navigator<"u"&&navigator.clipboard)try{await navigator.clipboard.writeText(e);return}catch(o){throw r(o)}throw r(new Error("no clipboard is available"))}async function Abe(){try{return typeof navigator>"u"||!navigator.clipboard?.readText?null:await navigator.clipboard.readText()}catch{return null}}async function Lp(e,t,r){if(An&&typeof window<"u"&&window.toolboxAPI)try{return await window.toolboxAPI.fileSystem.saveFile(e,t,r)}catch(o){console.warn("[pptbBridge] toolboxAPI.fileSystem.saveFile failed, falling back to browser download",o)}if(typeof document<"u"){const o=l=>{switch(l.toLowerCase().split(".").pop()??""){case"xlsx":return"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";case"csv":return"text/csv";case"json":return"application/json";case"xml":return"application/xml";case"txt":return"text/plain";default:return"application/octet-stream"}},n=new Blob([t],{type:o(e)}),a=URL.createObjectURL(n),i=document.createElement("a");i.href=a,i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(a)}return null}const X1=new Set;let Y1="";function ane(e){return!e.embedded||!e.connected||!e.environmentUrl?"":e.environmentUrl.trim().replace(/^https?:\/\//i,"").replace(/\/+$/,"").toLowerCase()}nT(e=>{const t=ane(e);if(t!==Y1){Y1=t;for(const r of X1)try{r(t)}catch(o){console.error("[activeOrg] listener threw",o)}}});const oo=()=>Y1;function Dd(e){return X1.add(e),()=>{X1.delete(e)}}function pc(){return m.useSyncExternalStore(Dd,oo)}const ine=3600*1e3;function CB(e,t){return{...e,promise:t,timestamp:e?.timestamp??0}}class sne{constructor(){K(this,"entities",new Map);K(this,"allEntitiesCache");K(this,"entityAttributes",new Map);K(this,"entityRelationships",new Map);K(this,"entityKeys",new Map);K(this,"publishersCache");K(this,"publishersWithSolutionsCache");K(this,"solutionsCache",new Map);K(this,"filteredEntitiesCache",new Map);K(this,"solutionComponentsCache",new Map)}fresh(t){if(!(!t||t.data===void 0)&&!(Date.now()-t.timestamp>ine))return t.data}getAllEntities(){return this.fresh(this.allEntitiesCache)}setAllEntities(t){this.allEntitiesCache={data:t,timestamp:Date.now()}}getAllEntitiesPromise(){return this.allEntitiesCache?.promise}setAllEntitiesPromise(t){this.allEntitiesCache=CB(this.allEntitiesCache,t)}clearAllEntitiesPromise(){this.allEntitiesCache&&delete this.allEntitiesCache.promise}getEntityMetadata(t){return this.fresh(this.entities.get(t))}setEntityMetadata(t,r){this.entities.set(t,{data:r,timestamp:Date.now()})}getEntityAttributes(t){return this.fresh(this.entityAttributes.get(t))}setEntityAttributes(t,r){this.entityAttributes.set(t,{data:r,timestamp:Date.now()})}getAttributesPromise(t){return this.entityAttributes.get(t)?.promise}setAttributesPromise(t,r){this.entityAttributes.set(t,CB(this.entityAttributes.get(t),r))}clearAttributesPromise(t){const r=this.entityAttributes.get(t);r&&delete r.promise}getEntityRelationships(t){return this.fresh(this.entityRelationships.get(t))}setEntityRelationships(t,r){this.entityRelationships.set(t,{data:r,timestamp:Date.now()})}getEntityKeys(t){return this.fresh(this.entityKeys.get(t))}setEntityKeys(t,r){this.entityKeys.set(t,{data:r,timestamp:Date.now()})}getPublishers(){return this.fresh(this.publishersCache)}setPublishers(t){this.publishersCache={data:t,timestamp:Date.now()}}getPublishersWithSolutions(){return this.fresh(this.publishersWithSolutionsCache)}setPublishersWithSolutions(t){this.publishersWithSolutionsCache={data:t,timestamp:Date.now()}}solutionKey(t){return t.slice().sort().join(",")}getSolutions(t){return this.fresh(this.solutionsCache.get(this.solutionKey(t)))}setSolutions(t,r){this.solutionsCache.set(this.solutionKey(t),{data:r,timestamp:Date.now()})}filteredEntitiesKey(t){return t.slice().sort().join(",")}getFilteredEntities(t){return this.fresh(this.filteredEntitiesCache.get(this.filteredEntitiesKey(t)))}setFilteredEntities(t,r){this.filteredEntitiesCache.set(this.filteredEntitiesKey(t),{data:r,timestamp:Date.now()})}solutionComponentsKey(t){return t.slice().sort().join(",")}getSolutionComponents(t){return this.fresh(this.solutionComponentsCache.get(this.solutionComponentsKey(t)))}setSolutionComponents(t,r){this.solutionComponentsCache.set(this.solutionComponentsKey(t),{data:r,timestamp:Date.now()})}filterCachedEntitiesByNames(t){if(t.length===0)return[];const r=this.fresh(this.allEntitiesCache)??[],o=new Set(t);return r.filter(n=>o.has(n.LogicalName))}clear(){this.entities.clear(),this.allEntitiesCache=void 0,this.entityAttributes.clear(),this.entityRelationships.clear(),this.entityKeys.clear(),this.publishersCache=void 0,this.publishersWithSolutionsCache=void 0,this.solutionsCache.clear(),this.filteredEntitiesCache.clear(),this.solutionComponentsCache.clear()}clearEntity(t){this.entities.delete(t);for(const r of this.entityAttributes.keys())r.startsWith(`${t}_`)&&this.entityAttributes.delete(r);for(const r of this.entityRelationships.keys())r.startsWith(`${t}_`)&&this.entityRelationships.delete(r);this.entityKeys.delete(t)}}const NB=new Map;function Co(){const e=oo();let t=NB.get(e);return t||(t=new sne,NB.set(e,t)),t}const Ru=new Proxy({},{get(e,t){const r=Co(),o=r[t];return typeof o=="function"?o.bind(r):o}});function zo(){return typeof window<"u"&&!!window.dataverseAPI}const lne=6;let zv=0;const zB=[];async function uo(e){zv>=lne&&await new Promise(t=>{zB.push(t)}),zv++;try{return await window.dataverseAPI.queryData(e)}finally{zv--;const t=zB.shift();t&&t()}}async function cne(e=!1){if(!zo())throw new Error("PPTB Dataverse API not available");let t="EntityDefinitions?$select=LogicalName,SchemaName,DisplayName,EntitySetName,PrimaryIdAttribute,PrimaryNameAttribute,IsValidForAdvancedFind,MetadataId,ObjectTypeCode";e&&(t+="&$filter=IsValidForAdvancedFind eq true");const o=(await uo(t)).value;return o.sort((n,a)=>{const i=n.DisplayName?.UserLocalizedLabel?.Label||n.LogicalName,l=a.DisplayName?.UserLocalizedLabel?.Label||a.LogicalName;return i.localeCompare(l)}),o}async function une(e){if(!zo())throw new Error("PPTB Dataverse API not available");return await window.dataverseAPI.getEntityMetadata(e,!0)}function dne(e){const t=e.AttributeTypeName?.Value;return e.AttributeType==="Virtual"&&(t==="ImageType"||t==="FileType")}async function fne(e,t=!1){if(!zo())throw new Error("PPTB Dataverse API not available");let r=`EntityDefinitions(LogicalName='${e}')/Attributes?$select=LogicalName,SchemaName,DisplayName,AttributeType,AttributeTypeName,MetadataId,IsValidForAdvancedFind,IsLogical,SourceType,IsValidForCreate,IsValidForUpdate,IsValidForRead,RequiredLevel,IsValidODataAttribute`;const o=[];t&&o.push("(IsValidForAdvancedFind/Value eq true or AttributeType eq Microsoft.Dynamics.CRM.AttributeTypeCode'Virtual')"),o.length>0&&(r+=`&$filter=${o.join(" and ")}`);let a=(await uo(r)).value;return t&&(a=a.filter(i=>i.AttributeType!=="Virtual"||i.IsValidForAdvancedFind?.Value||dne(i))),a.sort((i,l)=>{const d=i.DisplayName?.UserLocalizedLabel?.Label||i.LogicalName,f=l.DisplayName?.UserLocalizedLabel?.Label||l.LogicalName;return d.localeCompare(f)}),a}async function pne(e,t,r){if(!zo())throw new Error("PPTB Dataverse API not available");let o;if(r)o={LogicalName:t,AttributeType:r};else{const d=`EntityDefinitions(LogicalName='${e}')/Attributes(LogicalName='${t}')?$select=AttributeType,LogicalName,SchemaName,DisplayName,MetadataId`,f=await uo(d);if(o=f.value?.[0]||f,!o||!o.LogicalName)throw new Error(`Attribute ${t} not found in entity ${e}`)}let n="";switch(o.AttributeType){case"Boolean":n="Microsoft.Dynamics.CRM.BooleanAttributeMetadata";break;case"State":n="Microsoft.Dynamics.CRM.StateAttributeMetadata";break;case"Status":n="Microsoft.Dynamics.CRM.StatusAttributeMetadata";break;case"Picklist":n="Microsoft.Dynamics.CRM.PicklistAttributeMetadata";break;case"MultiSelectPicklist":n="Microsoft.Dynamics.CRM.MultiSelectPicklistAttributeMetadata";break;default:return o}const a=`EntityDefinitions(LogicalName='${e}')/Attributes(LogicalName='${t}')/${n}?$expand=OptionSet`,i=await uo(a),l=i.value?.[0]||i;if(!l||!l.LogicalName)throw new Error(`Failed to retrieve attribute ${t} with OptionSet expansion`);return l}async function mne(e,t,r){if(!zo())throw new Error("PPTB Dataverse API not available");let o="",n="";switch(r){case"Integer":o="Microsoft.Dynamics.CRM.IntegerAttributeMetadata",n="SchemaName,MaxValue,MinValue,Format";break;case"BigInt":o="Microsoft.Dynamics.CRM.BigIntAttributeMetadata",n="SchemaName,MaxValue,MinValue";break;case"Decimal":o="Microsoft.Dynamics.CRM.DecimalAttributeMetadata",n="SchemaName,MaxValue,MinValue,Precision";break;case"Double":case"Float":o="Microsoft.Dynamics.CRM.DoubleAttributeMetadata",n="SchemaName,MaxValue,MinValue,Precision";break;case"Money":o="Microsoft.Dynamics.CRM.MoneyAttributeMetadata",n="SchemaName,MaxValue,MinValue,Precision";break;case"String":o="Microsoft.Dynamics.CRM.StringAttributeMetadata",n="SchemaName,MaxLength,Format";break;case"Memo":o="Microsoft.Dynamics.CRM.MemoAttributeMetadata",n="SchemaName,MaxLength,Format";break;case"DateTime":o="Microsoft.Dynamics.CRM.DateTimeAttributeMetadata",n="SchemaName,Format,DateTimeBehavior";break;case"Lookup":case"Customer":case"Owner":o="Microsoft.Dynamics.CRM.LookupAttributeMetadata",n="SchemaName,Targets";break;default:{const d=`EntityDefinitions(LogicalName='${e}')/Attributes(LogicalName='${t}')?$select=SchemaName,LogicalName,DisplayName,AttributeType,MetadataId`,f=await uo(d);return f.value?.[0]||f}}const a=`EntityDefinitions(LogicalName='${e}')/Attributes(LogicalName='${t}')/${o}?$select=${n}`,i=await uo(a),l=i.value?.[0]||i;if(!l||!l.SchemaName)throw new Error(`Failed to retrieve detailed metadata for attribute ${t}`);return l.LogicalName=t,l.AttributeType=r,l}async function gne(e,t,r,o){if(!zo())throw new Error("PPTB Dataverse API not available");const n=o?`&$expand=${o}`:"",a=`EntityDefinitions(LogicalName='${e}')/Attributes/${t}?$select=${r}${n}`;return(await uo(a)).value??[]}async function hne(e,t=!1){if(!zo())throw new Error("PPTB Dataverse API not available");const r=d=>{let f=`EntityDefinitions(LogicalName='${e}')/${d}?$select=SchemaName,RelationshipType,ReferencedEntity,ReferencedAttribute,ReferencingEntity,ReferencingAttribute,ReferencingEntityNavigationPropertyName,ReferencedEntityNavigationPropertyName,MetadataId,IsValidForAdvancedFind,IsCustomRelationship`;return t&&(f+="&$filter=IsValidForAdvancedFind eq true"),f},o=()=>{let d=`EntityDefinitions(LogicalName='${e}')/ManyToManyRelationships?$select=SchemaName,RelationshipType,Entity1LogicalName,Entity2LogicalName,Entity1IntersectAttribute,Entity2IntersectAttribute,IntersectEntityName,Entity1NavigationPropertyName,Entity2NavigationPropertyName,MetadataId,IsValidForAdvancedFind,IsCustomRelationship`;return t&&(d+="&$filter=IsValidForAdvancedFind eq true"),d},[n,a,i]=await Promise.all([uo(r("OneToManyRelationships")),uo(r("ManyToOneRelationships")),uo(o())]),l=d=>{const f=d;return f.sort((p,h)=>p.SchemaName.localeCompare(h.SchemaName)),f};return{oneToMany:l(n.value),manyToOne:l(a.value),manyToMany:l(i.value)}}async function vne(e,t){if(!zo())throw new Error("PPTB Dataverse API not available");return(await Promise.all(t.map(async o=>{try{return await uo(`EntityDefinitions(LogicalName='${e}')/Attributes(LogicalName='${o}')?$select=LogicalName,AttributeType,AttributeTypeName`)}catch{return null}}))).filter(o=>!!o)}async function bne(e){if(!zo())throw new Error("PPTB Dataverse API not available");const t=`EntityDefinitions(LogicalName='${e}')/Keys?$select=LogicalName,SchemaName,KeyAttributes,DisplayName,EntityKeyIndexStatus,MetadataId`,o=(await uo(t)).value??[];return o.sort((n,a)=>{const i=n.DisplayName?.UserLocalizedLabel?.Label??n.LogicalName,l=a.DisplayName?.UserLocalizedLabel?.Label??a.LogicalName;return i.localeCompare(l)}),o}async function yne(){if(!zo())throw new Error("PPTB Dataverse API not available");return(await uo("publishers?$select=publisherid,friendlyname,uniquename,customizationprefix&$filter=isreadonly eq false and publisher_solution/any(s: s/isvisible eq true and s/solution_solutioncomponent/any(c: c/componenttype eq 1))&$expand=publisher_solution($select=solutionid,friendlyname,isvisible,ismanaged,uniquename,version;$filter=isvisible eq true and solution_solutioncomponent/any(c: c/componenttype eq 1))&$orderby=friendlyname asc")).value.map(o=>({publisher:{publisherid:o.publisherid,friendlyname:o.friendlyname,uniquename:o.uniquename,customizationprefix:o.customizationprefix},solutions:o.publisher_solution??[]}))}async function xne(){if(!zo())throw new Error("PPTB Dataverse API not available");return(await uo("solutions?$select=solutionid,friendlyname,uniquename,version,_publisherid_value,isvisible,ismanaged&$filter=isvisible eq true and solution_solutioncomponent/any(c: c/componenttype eq 1) and publisherid/isreadonly eq false&$orderby=friendlyname asc")).value}async function Xy(e){if(!zo())throw new Error("PPTB Dataverse API not available");if(e.length===0)return[];const t=await Promise.all(e.map(o=>window.dataverseAPI.queryData(`msdyn_solutioncomponentsummaries?$select=msdyn_name,msdyn_displayname,msdyn_logicalcollectionname,msdyn_solutionid,msdyn_componenttype&$filter=msdyn_componenttype eq 1 and msdyn_solutionid eq '${o}'`))),r=[];for(const o of t)r.push(...o.value);return r}const iT=e=>Ru.filterCachedEntitiesByNames(e);async function wne(){if(!zo())return null;try{return await window.dataverseAPI.execute({operationName:"WhoAmI",operationType:"function"})}catch(e){return console.error("WhoAmI failed:",e),null}}async function Tv(e,t){if(!zo())return!1;try{const r=`systemusers(${e})/Microsoft.Dynamics.CRM.RetrieveUserPrivilegeByPrivilegeName(PrivilegeName='${t}')`;return!!(await uo(r))?.RolePrivileges?.length}catch(r){const o=r instanceof Error?r.message:String(r);return o.includes("0x80040203")||o.includes("does not exist")||console.error(`checkPrivilegeByName(${t}) failed:`,r),!1}}async function kne(){const e=await wne();if(!e)return null;const[t,r,o]=await Promise.all([Tv(e.UserId,"prvReadPublisher"),Tv(e.UserId,"prvReadSolution"),Tv(e.UserId,"prvReadCustomization")]);return{userId:e.UserId,canReadPublisher:t,canReadSolution:r,canReadCustomization:o,fullFilterMode:o&&r&&t,solutionsOnlyMode:o&&r&&!t,publishersOnlyMode:o&&t&&!r,metadataOnlyMode:o&&!r&&!t,noAccessMode:!o}}async function sT(){const e=Co(),t=e.getAllEntities();if(t)return t;const r=e.getAllEntitiesPromise();if(r)return r;const o=cne(!1);e.setAllEntitiesPromise(o);try{const n=await o;return e.setAllEntities(n),e.clearAllEntitiesPromise(),n}catch(n){throw console.error("loadAllEntities: API error:",n),e.clearAllEntitiesPromise(),n}}async function Sne(e){const t=Co(),r=t.getEntityMetadata(e);if(r)return r;const o=await une(e);return t.setEntityMetadata(e,o),o}async function Bne(e,t=!1){const r=Co(),o=`${e}_${t}`,n=r.getEntityAttributes(o);if(n)return n;const a=r.getAttributesPromise(o);if(a)return a;const i=fne(e,t);r.setAttributesPromise(o,i);try{const l=await i;return r.setEntityAttributes(o,l),r.clearAttributesPromise(o),l}catch(l){throw r.clearAttributesPromise(o),l}}async function jne(e,t,r){const o=Co(),n=`${e}_${t}_optionset`,a=o.getEntityAttributes(n);if(a&&a.length>0)return a[0];const i=await pne(e,t,r);return o.setEntityAttributes(n,[i]),i}async function lT(e,t,r,o){const n=Co(),a=`${e}__cast__${t}__${r}__${o??""}`,i=n.getEntityAttributes(a);if(i)return i;const l=n.getAttributesPromise(a);if(l)return l;const d=gne(e,t,r,o);n.setAttributesPromise(a,d);try{const f=await d;return n.setEntityAttributes(a,f),n.clearAttributesPromise(a),f}catch(f){throw n.clearAttributesPromise(a),f}}async function Cne(e,t,r){const o=Co(),n=`${e}_${t}_detailed`,a=o.getEntityAttributes(n);if(a&&a.length>0)return a[0];const i=await mne(e,t,r);return o.setEntityAttributes(n,[i]),i}async function Nne(e,t=!1){const r=Co(),o=`${e}_${t}`,n=r.getEntityRelationships(o);if(n)return n;const a=await hne(e,t);return r.setEntityRelationships(o,a),a}function zne(e,t){return vne(e,t)}async function Tne(e){const t=Co(),r=t.getEntityKeys(e);if(r)return r;const o=await bne(e);return t.setEntityKeys(e,o),o}const _v=new Map;async function _ne(e){const t=Co(),r=l=>Array.from(new Set(l.map(d=>d.msdyn_name).filter(Boolean))),o=t.getSolutionComponents(e);if(o)return r(o);const n=`${oo()}|${e.slice().sort().join(",")}`,a=_v.get(n);if(a)return a;const i=Xy(e).then(l=>(t.setSolutionComponents(e,l),r(l))).finally(()=>_v.delete(n));return _v.set(n,i),i}const Wa=e=>e.attributeType==="Lookup"||e.attributeType==="Customer"||e.attributeType==="Owner";function Sm(e){if(e.attributeType==="Picklist"||e.attributeType==="MultiSelectPicklist"||e.attributeType==="State"||e.attributeType==="Status"||e.attributeType==="EntityName")return e.options;if(e.attributeType==="Boolean")return[e.falseOption,e.trueOption]}const cT=e=>e.attributeType==="Memo"||e.attributeType==="String"&&e.maxLength>850,uT=e=>e.sourceType!=null&&e.sourceType>0,J1=e=>{if(!(e==null||e===0))switch(e){case 1:return"calculated";case 2:return"rollup";case 3:return"formula";case 4:return"prompt"}},Yy=e=>e.isLogical===!0;function Jy(e,t,r){return e?.columns.find(n=>n.logicalName===r)?.attributeType??t.columnTypes?.[r]}const TB=new Map,Q1=new Set;function aa(e=oo()){let t=TB.get(e);return t||(t=new Map,TB.set(e,t)),t}function Tg(){for(const e of Q1)e()}Dd(Tg);function Qy(e,t=oo()){aa(t).set(e.logicalName,e),t===oo()&&Tg()}function Ed(e){return Q1.add(e),()=>Q1.delete(e)}function Rne(e){aa().delete(e)&&Tg()}function Dne(){aa().clear(),Tg()}function Ene(){return Array.from(aa().values())}new Proxy([],{get(e,t){return Array.from(aa().values())[t]},has(e,t){return t in Array.from(aa().values())},ownKeys(){return Reflect.ownKeys(Array.from(aa().values()))},getOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(Array.from(aa().values()),t)}});const fe=e=>aa().get(e),Pne=e=>Array.from(aa().values()).find(t=>t.entitySetName===e),Mn=(e,t)=>e.columns.find(r=>r.logicalName===t);function ws(e,t,r){if(!e)return{chain:[]};let o=t;const n=r?.alias;n&&o.startsWith(n+"/")&&(o=o.slice(n.length+1));const a=o.split("/").filter(Boolean),i=[e];if(a.length===0)return{ownerTable:e,chain:i};let l=e;for(let f=0;f<a.length-1;f++){const p=l.navigationProperties.find(v=>v.name===a[f]&&v.cardinality==="ManyToOne");if(!p)return{ownerTable:l,chain:i};const h=fe(p.targetEntity);if(!h)return{ownerTable:l,chain:i,pendingTarget:p.targetEntity};i.push(h),l=h}const d=a[a.length-1];return{leaf:l.columns.find(f=>f.logicalName===d||f.oDataName===d),ownerTable:l,chain:i}}function td(e){return e.isLogical===!0&&e.isValidForCreate===!1&&e.isValidForUpdate===!1}function ms(e,t){return e?.UserLocalizedLabel?.Label||t}const Mne={String:"String",Memo:"Memo",Integer:"Integer",BigInt:"BigInt",Decimal:"Decimal",Double:"Double",Money:"Money",Boolean:"Boolean",DateTime:"DateTime",Picklist:"Picklist",MultiSelectPicklist:"MultiSelectPicklist",Virtual:void 0,State:"State",Status:"Status",Lookup:"Lookup",Customer:"Customer",Owner:"Owner",Uniqueidentifier:"Uniqueidentifier",EntityName:"EntityName",File:"File",Image:"Image"};function qne(e,t){return e==="Lookup"||e==="Customer"||e==="Owner"?`_${t}_value`:t}function dT(e){if(e.AttributeType==="Virtual"){const t=e.AttributeTypeName?.Value;return t==="ImageType"?"Image":t==="FileType"?"File":void 0}return Mne[e.AttributeType]}function Fne(e){const t=dT(e);if(!t)return null;const r=e.RequiredLevel?.Value,o=r==="SystemRequired"||r==="ApplicationRequired",n={logicalName:e.LogicalName,displayName:ms(e.DisplayName,e.LogicalName),oDataName:qne(t,e.LogicalName),required:o,requiredLevel:r,isValidForCreate:e.IsValidForCreate!==!1,isValidForUpdate:e.IsValidForUpdate!==!1,isValidForRead:e.IsValidForRead!==!1,isValidForAdvancedFind:e.IsValidForAdvancedFind?.Value!==!1,isValidOData:e.IsValidODataAttribute!==!1,isLogical:!!e.IsLogical,sourceType:e.SourceType??void 0};switch(t){case"String":return{...n,attributeType:"String",format:"Text",maxLength:e.MaxLength??100};case"Memo":return{...n,attributeType:"Memo",format:"Text",maxLength:e.MaxLength??2e3};case"Integer":return{...n,attributeType:"Integer",format:"None",minValue:e.MinValue,maxValue:e.MaxValue};case"BigInt":return{...n,attributeType:"BigInt",minValue:e.MinValue,maxValue:e.MaxValue};case"Decimal":return{...n,attributeType:"Decimal",precision:e.Precision??2,minValue:e.MinValue,maxValue:e.MaxValue};case"Double":return{...n,attributeType:"Double",precision:e.Precision??2,minValue:e.MinValue,maxValue:e.MaxValue};case"Money":return{...n,attributeType:"Money",precisionSource:1,precision:e.Precision??2,minValue:e.MinValue,maxValue:e.MaxValue};case"Boolean":return{...n,attributeType:"Boolean",trueOption:{value:1,label:ms(e.OptionSet?.TrueOption?.Label,"Yes")},falseOption:{value:0,label:ms(e.OptionSet?.FalseOption?.Label,"No")}};case"DateTime":return{...n,attributeType:"DateTime",format:e.Format??"DateAndTime",dateTimeBehavior:e.DateTimeBehavior?.Value??"UserLocal"};case"Picklist":case"MultiSelectPicklist":case"State":case"EntityName":{const a=(e.OptionSet?.Options??[]).map(i=>({value:i.Value,label:ms(i.Label,String(i.Value))}));return(t==="Picklist"||t==="MultiSelectPicklist")&&typeof e.DefaultFormValue=="number"?{...n,attributeType:t,options:a,defaultFormValue:e.DefaultFormValue}:{...n,attributeType:t,options:a}}case"Status":{const a=(e.OptionSet?.Options??[]).map(i=>({value:i.Value,label:ms(i.Label,String(i.Value)),state:0}));return{...n,attributeType:"Status",options:a}}case"Lookup":return{...n,attributeType:"Lookup",targets:e.Targets??[]};case"Customer":return{...n,attributeType:"Customer",targets:e.Targets??["account","contact"]};case"Owner":return{...n,attributeType:"Owner",targets:e.Targets??["systemuser","team"]};case"Uniqueidentifier":return{...n,attributeType:"Uniqueidentifier"};case"File":return{...n,attributeType:"File"};case"Image":return{...n,attributeType:"Image"}}}function Ine(e,t,r,o){const n=[];for(const a of t){const i=a.ReferencingEntityNavigationPropertyName||a.ReferencingAttribute||a.SchemaName;n.push({name:i,relationshipName:a.SchemaName,cardinality:"ManyToOne",targetEntity:a.ReferencedEntity??"",referencingAttribute:a.ReferencingAttribute,isValidForAdvancedFind:a.IsValidForAdvancedFind!==!1})}for(const a of e){const i=a.ReferencedEntityNavigationPropertyName||a.SchemaName;n.push({name:i,relationshipName:a.SchemaName,cardinality:"OneToMany",targetEntity:a.ReferencingEntity??"",isValidForAdvancedFind:a.IsValidForAdvancedFind!==!1})}for(const a of r){const i=a.Entity1LogicalName===o,l=(i?a.Entity1NavigationPropertyName:a.Entity2NavigationPropertyName)||a.SchemaName;n.push({name:l,relationshipName:a.SchemaName,cardinality:"ManyToMany",targetEntity:i?a.Entity2LogicalName??"":a.Entity1LogicalName??"",isValidForAdvancedFind:a.IsValidForAdvancedFind!==!1})}return n}function Ane(e){return{logicalName:e.LogicalName,displayName:ms(e.DisplayName,e.LogicalName),entitySetName:e.EntitySetName,metadataId:e.MetadataId,isValidForAdvancedFind:e.IsValidForAdvancedFind!==!1}}let Ca=new Map;const eb=new Set;function _B(){for(const e of eb)e()}function ex(e){return eb.add(e),()=>eb.delete(e)}async function One(e,t){const r=[{type:"Image",cast:"Microsoft.Dynamics.CRM.ImageAttributeMetadata",select:"LogicalName,MaxSizeInKB,CanStoreFullImage,IsPrimaryImage"},{type:"File",cast:"Microsoft.Dynamics.CRM.FileAttributeMetadata",select:"LogicalName,MaxSizeInKB"}].filter(o=>t.some(n=>n.attributeType===o.type));await Promise.all(r.map(async({type:o,cast:n,select:a})=>{try{const i=await lT(e,n,a);for(const l of i){const d=t.find(f=>f.logicalName===l.LogicalName);d&&(d.attributeType==="File"&&o==="File"?typeof l.MaxSizeInKB=="number"&&(d.maxSizeInKB=l.MaxSizeInKB):d.attributeType==="Image"&&o==="Image"&&(typeof l.MaxSizeInKB=="number"&&(d.maxSizeInKB=l.MaxSizeInKB),typeof l.CanStoreFullImage=="boolean"&&(d.canStoreFullImage=l.CanStoreFullImage),l.IsPrimaryImage===!0&&(d.isPrimaryImage=!0)))}}catch(i){console.warn(`[metadata] ${o} column details for ${e} failed`,i)}}))}async function RB(e){const t=oo(),r=`${t}|${e}`,o=Ca.get(r);if(o)return o;let n;return n=(async()=>{try{const[a,i,l,d]=await Promise.all([Sne(e),Bne(e),Nne(e),Tne(e)]),f=i.map(Fne).filter(k=>k!==null),p=f.find(k=>k.logicalName===a.PrimaryIdAttribute);p&&p.attributeType==="Uniqueidentifier"&&(p.isPrimaryKey=!0);const h=f.find(k=>k.logicalName===a.PrimaryImageAttribute);h&&h.attributeType==="Image"&&(h.isPrimaryImage=!0),await One(e,f);const v=d.filter(k=>k.EntityKeyIndexStatus==="Active").map(k=>({name:k.LogicalName,displayName:k.DisplayName?.UserLocalizedLabel?.Label??k.LogicalName,columns:k.KeyAttributes??[]})).filter(k=>k.columns.length>0),y=new Set(f.map(k=>k.logicalName)),x=Array.from(new Set(v.flatMap(k=>k.columns).filter(k=>!y.has(k))));if(x.length>0)try{const k=await zne(e,x),S=new Map;for(const N of k){const B=dT(N);B&&S.set(N.LogicalName,B)}for(const N of v){const B={};for(const C of N.columns){const z=S.get(C);z&&(B[C]=z)}Object.keys(B).length>0&&(N.columnTypes=B)}}catch(k){console.warn(`[metadata] alternate-key attribute types for ${e} failed`,k)}const b={logicalName:a.LogicalName,entitySetName:a.EntitySetName,displayName:ms(a.DisplayName,a.LogicalName),primaryKey:a.PrimaryIdAttribute,primaryName:a.PrimaryNameAttribute,columns:f,navigationProperties:Ine(l.oneToMany,l.manyToOne,l.manyToMany,e),alternateKeys:v,supportsMerge:["account","contact","lead","incident"].includes(e)};return Ca.get(r)===n?Qy(b,t):t===oo()&&Ru.clearEntity(e),b}catch(a){console.error(`[metadataProvider] getTable('${e}') failed:`,a);return}})(),Ca.set(r,n),n.finally(()=>{Ca.get(r)===n&&Ca.delete(r)}),n}const lr={async listEntities(){return(await sT()).map(Ane)},async getTable(e){const t=fe(e);return t||RB(e)},peekTable(e){return fe(e)},invalidateTable(e){Ru.clearEntity(e),Ca.delete(`${oo()}|${e}`),Rne(e)},invalidateAll(){Ru.clear(),Ca=new Map,Dne(),_B()},async refreshAll(){await Promise.allSettled([...Ca.values()]);const e=Ene().map(t=>t.logicalName);Ru.clear(),Ca=new Map,_B(),await Promise.all(e.map(t=>RB(t)))}},Lne="v9.2",_g=`/api/data/${Lne}`,$ne={name:"(no connection)",host:"",apiBase:_g,user:""};function xl(){const e=Qu();if(!e.embedded||!e.connected||!e.environmentUrl)return $ne;const r=e.environmentUrl.replace(/\/$/,"").replace(/^https?:\/\//,"");return{name:e.environment||r,host:r,apiBase:_g,user:""}}const rt=new Proxy({},{get(e,t){return xl()[t]},has(e,t){return t in xl()},ownKeys(){return Object.keys(xl())},getOwnPropertyDescriptor(e,t){return{enumerable:!0,configurable:!0,value:xl()[t]}}}),Hne=new Set(["authorization","proxy-authorization","cookie"]);function Oi(e){return Hne.has(e.trim().toLowerCase())}const Vne={mscrmcallerid:"callerId",callerobjectid:"callerObjectId"};function tx(e){return Vne[e.trim().toLowerCase()]}function Obe(e){return Object.fromEntries(Object.entries(e).filter(([t])=>!Oi(t)))}function Wne(e){return e!==null&&typeof e=="object"&&typeof e.name=="string"&&typeof e.value=="string"&&typeof e.enabled=="boolean"}function rd(e){return fT(e,t=>Oi(t.name)?null:t)}const Rv="00000000-0000-0000-0000-000000000000";function Une(e){let t=!1;return{state:fT(e,o=>{if(Oi(o.name))return null;if(!tx(o.name))return o;const n=o.value.trim();return n&&n!==Rv&&(t=!0),o.value===Rv&&!o.enabled?o:{...o,value:Rv,enabled:!1}}),cleared:t}}function fT(e,t){const r=o=>{if(Array.isArray(o)){if(o.length>0&&o.every(Wne)){let i=!1;const l=[];for(const d of o){const f=t(d);f!==d&&(i=!0),f&&l.push(f)}return i?l:o}let n=!1;const a=o.map(i=>{const l=r(i);return l!==i&&(n=!0),l});return n?a:o}if(o!==null&&typeof o=="object"){let n=!1;const a={};for(const[i,l]of Object.entries(o)){const d=r(l);d!==l&&(n=!0),a[i]=d}return n?a:o}return o};return r(e)}const pT=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Gne=/^[0-9a-f]{32}$/i;function wu(e){if(!e)return null;let t=e.trim();const r=/^\{(.*)\}$/.exec(t)??/^\((.*)\)$/.exec(t);if(r&&(t=r[1].trim()),pT.test(t))return t.toLowerCase();if(Gne.test(t)){const o=t.toLowerCase();return`${o.slice(0,8)}-${o.slice(8,12)}-${o.slice(12,16)}-${o.slice(16,20)}-${o.slice(20)}`}return null}function Pd(e){return!!e&&pT.test(e)}const Zne=/^[A-Za-z_][A-Za-z0-9_]*$/,Kne=/^[A-Za-z_][A-Za-z0-9_]*(\/[A-Za-z_][A-Za-z0-9_]*)*$/,rx=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:\d{2})?)?$/,Xne=e=>!!e&&Zne.test(e),Yne=e=>!!e&&Kne.test(e),mT=e=>JSON.stringify(e.length>40?`${e.slice(0,40)}…`:e);function Jne(e){for(const[t,r]of e)if(r&&!Pd(r))return`${t} ${mT(r)} isn't a GUID (00000000-0000-0000-0000-000000000000).`;return null}function ox(e){for(const[t,r]of e)if(r&&!Xne(r))return`${t} ${mT(r)} isn't a valid name (letters, digits and underscores).`;return null}const Qne=e=>e.replace(/ /g,"%20"),gT=(e,t=[])=>Jne(e)??ox(t),hT=[{id:"comparison",label:"Comparison"},{id:"string",label:"Text"},{id:"date-relative",label:"Date — relative"},{id:"date-rolling",label:"Date — rolling"},{id:"fiscal",label:"Fiscal calendar"},{id:"range",label:"Range"},{id:"set",label:"Set membership"},{id:"choices",label:"Multi-select choices"},{id:"hierarchy",label:"Hierarchy"},{id:"user-context",label:"Current user / business / team"}],tb=["BigInt","Boolean","Customer","DateTime","Decimal","Double","EntityName","Integer","Lookup","Memo","Money","Owner","Picklist","State","Status","String","Uniqueidentifier","MultiSelectPicklist"],DB=tb.filter(e=>e!=="MultiSelectPicklist"),hp=["BigInt","DateTime","Decimal","Double","Integer","Memo","Money","Picklist","String"],Dv=["String","Memo"],et=["DateTime"],EB=["BigInt","DateTime","Decimal","Double","Integer","Money"],PB=["BigInt","DateTime","Decimal","Double","Integer","Lookup","Customer","Owner","Memo","Money","Picklist","State","Status","String","Uniqueidentifier","EntityName"],MB=["MultiSelectPicklist"],ko=["Lookup","Customer","Owner"],Rs=[{id:"eq",label:"equals",kind:"comparison",category:"comparison",odata:"eq",arity:1,allowedTypes:DB,supportsColumnRhs:!0,hint:"Exact match. Same-type column on the RHS is also allowed (column-vs-column compare)."},{id:"ne",label:"not equals",kind:"comparison",category:"comparison",odata:"ne",arity:1,allowedTypes:DB,supportsColumnRhs:!0},{id:"gt",label:"> greater than",kind:"comparison",category:"comparison",odata:"gt",arity:1,allowedTypes:hp,supportsColumnRhs:!0},{id:"ge",label:"≥ greater or equal",kind:"comparison",category:"comparison",odata:"ge",arity:1,allowedTypes:hp,supportsColumnRhs:!0},{id:"lt",label:"< less than",kind:"comparison",category:"comparison",odata:"lt",arity:1,allowedTypes:hp,supportsColumnRhs:!0},{id:"le",label:"≤ less or equal",kind:"comparison",category:"comparison",odata:"le",arity:1,allowedTypes:hp,supportsColumnRhs:!0},{id:"is-null",label:"is null",kind:"null-check",category:"comparison",odata:"eq null",arity:0,allowedTypes:tb},{id:"is-not-null",label:"is not null",kind:"null-check",category:"comparison",odata:"ne null",arity:0,allowedTypes:tb},{id:"contains",label:"contains",kind:"odata-fn",category:"string",odata:"contains",arity:1,allowedTypes:Dv,hint:"Substring match. Leading wildcards (e.g. %foo) are not supported and will be stripped."},{id:"startswith",label:"starts with",kind:"odata-fn",category:"string",odata:"startswith",arity:1,allowedTypes:Dv,hint:"Sargable — uses an index seek. Preferable to contains/endswith on large tables."},{id:"endswith",label:"ends with",kind:"odata-fn",category:"string",odata:"endswith",arity:1,allowedTypes:Dv,hint:"endswith is always non-sargable; expect a table scan on large data."},{id:"On",label:"on",kind:"dv-fn-1",category:"date-relative",odata:"Microsoft.Dynamics.CRM.On",arity:1,allowedTypes:et},{id:"OnOrAfter",label:"on or after",kind:"dv-fn-1",category:"date-relative",odata:"Microsoft.Dynamics.CRM.OnOrAfter",arity:1,allowedTypes:et},{id:"OnOrBefore",label:"on or before",kind:"dv-fn-1",category:"date-relative",odata:"Microsoft.Dynamics.CRM.OnOrBefore",arity:1,allowedTypes:et},{id:"Today",label:"today",kind:"dv-fn-0",category:"date-relative",odata:"Microsoft.Dynamics.CRM.Today",arity:0,allowedTypes:et},{id:"Tomorrow",label:"tomorrow",kind:"dv-fn-0",category:"date-relative",odata:"Microsoft.Dynamics.CRM.Tomorrow",arity:0,allowedTypes:et},{id:"Yesterday",label:"yesterday",kind:"dv-fn-0",category:"date-relative",odata:"Microsoft.Dynamics.CRM.Yesterday",arity:0,allowedTypes:et},{id:"Last7Days",label:"last 7 days",kind:"dv-fn-0",category:"date-relative",odata:"Microsoft.Dynamics.CRM.Last7Days",arity:0,allowedTypes:et},{id:"Next7Days",label:"next 7 days",kind:"dv-fn-0",category:"date-relative",odata:"Microsoft.Dynamics.CRM.Next7Days",arity:0,allowedTypes:et},{id:"LastWeek",label:"last week",kind:"dv-fn-0",category:"date-relative",odata:"Microsoft.Dynamics.CRM.LastWeek",arity:0,allowedTypes:et},{id:"ThisWeek",label:"this week",kind:"dv-fn-0",category:"date-relative",odata:"Microsoft.Dynamics.CRM.ThisWeek",arity:0,allowedTypes:et},{id:"NextWeek",label:"next week",kind:"dv-fn-0",category:"date-relative",odata:"Microsoft.Dynamics.CRM.NextWeek",arity:0,allowedTypes:et},{id:"LastMonth",label:"last month",kind:"dv-fn-0",category:"date-relative",odata:"Microsoft.Dynamics.CRM.LastMonth",arity:0,allowedTypes:et},{id:"ThisMonth",label:"this month",kind:"dv-fn-0",category:"date-relative",odata:"Microsoft.Dynamics.CRM.ThisMonth",arity:0,allowedTypes:et},{id:"NextMonth",label:"next month",kind:"dv-fn-0",category:"date-relative",odata:"Microsoft.Dynamics.CRM.NextMonth",arity:0,allowedTypes:et},{id:"LastYear",label:"last year",kind:"dv-fn-0",category:"date-relative",odata:"Microsoft.Dynamics.CRM.LastYear",arity:0,allowedTypes:et},{id:"ThisYear",label:"this year",kind:"dv-fn-0",category:"date-relative",odata:"Microsoft.Dynamics.CRM.ThisYear",arity:0,allowedTypes:et},{id:"NextYear",label:"next year",kind:"dv-fn-0",category:"date-relative",odata:"Microsoft.Dynamics.CRM.NextYear",arity:0,allowedTypes:et},{id:"LastXHours",label:"in last X hours",kind:"dv-fn-1-int",category:"date-rolling",odata:"Microsoft.Dynamics.CRM.LastXHours",arity:1,intValue:!0,allowedTypes:et},{id:"LastXDays",label:"in last X days",kind:"dv-fn-1-int",category:"date-rolling",odata:"Microsoft.Dynamics.CRM.LastXDays",arity:1,intValue:!0,allowedTypes:et},{id:"LastXWeeks",label:"in last X weeks",kind:"dv-fn-1-int",category:"date-rolling",odata:"Microsoft.Dynamics.CRM.LastXWeeks",arity:1,intValue:!0,allowedTypes:et},{id:"LastXMonths",label:"in last X months",kind:"dv-fn-1-int",category:"date-rolling",odata:"Microsoft.Dynamics.CRM.LastXMonths",arity:1,intValue:!0,allowedTypes:et},{id:"LastXYears",label:"in last X years",kind:"dv-fn-1-int",category:"date-rolling",odata:"Microsoft.Dynamics.CRM.LastXYears",arity:1,intValue:!0,allowedTypes:et},{id:"NextXHours",label:"in next X hours",kind:"dv-fn-1-int",category:"date-rolling",odata:"Microsoft.Dynamics.CRM.NextXHours",arity:1,intValue:!0,allowedTypes:et},{id:"NextXDays",label:"in next X days",kind:"dv-fn-1-int",category:"date-rolling",odata:"Microsoft.Dynamics.CRM.NextXDays",arity:1,intValue:!0,allowedTypes:et},{id:"NextXWeeks",label:"in next X weeks",kind:"dv-fn-1-int",category:"date-rolling",odata:"Microsoft.Dynamics.CRM.NextXWeeks",arity:1,intValue:!0,allowedTypes:et},{id:"NextXMonths",label:"in next X months",kind:"dv-fn-1-int",category:"date-rolling",odata:"Microsoft.Dynamics.CRM.NextXMonths",arity:1,intValue:!0,allowedTypes:et},{id:"NextXYears",label:"in next X years",kind:"dv-fn-1-int",category:"date-rolling",odata:"Microsoft.Dynamics.CRM.NextXYears",arity:1,intValue:!0,allowedTypes:et},{id:"OlderThanXMinutes",label:"older than X minutes",kind:"dv-fn-1-int",category:"date-rolling",odata:"Microsoft.Dynamics.CRM.OlderThanXMinutes",arity:1,intValue:!0,allowedTypes:et},{id:"OlderThanXHours",label:"older than X hours",kind:"dv-fn-1-int",category:"date-rolling",odata:"Microsoft.Dynamics.CRM.OlderThanXHours",arity:1,intValue:!0,allowedTypes:et},{id:"OlderThanXDays",label:"older than X days",kind:"dv-fn-1-int",category:"date-rolling",odata:"Microsoft.Dynamics.CRM.OlderThanXDays",arity:1,intValue:!0,allowedTypes:et},{id:"OlderThanXWeeks",label:"older than X weeks",kind:"dv-fn-1-int",category:"date-rolling",odata:"Microsoft.Dynamics.CRM.OlderThanXWeeks",arity:1,intValue:!0,allowedTypes:et},{id:"OlderThanXMonths",label:"older than X months",kind:"dv-fn-1-int",category:"date-rolling",odata:"Microsoft.Dynamics.CRM.OlderThanXMonths",arity:1,intValue:!0,allowedTypes:et},{id:"OlderThanXYears",label:"older than X years",kind:"dv-fn-1-int",category:"date-rolling",odata:"Microsoft.Dynamics.CRM.OlderThanXYears",arity:1,intValue:!0,allowedTypes:et},{id:"ThisFiscalPeriod",label:"this fiscal period",kind:"dv-fn-0",category:"fiscal",odata:"Microsoft.Dynamics.CRM.ThisFiscalPeriod",arity:0,allowedTypes:et,hint:"Requires fiscal calendar configured on the org."},{id:"ThisFiscalYear",label:"this fiscal year",kind:"dv-fn-0",category:"fiscal",odata:"Microsoft.Dynamics.CRM.ThisFiscalYear",arity:0,allowedTypes:et},{id:"LastFiscalPeriod",label:"last fiscal period",kind:"dv-fn-0",category:"fiscal",odata:"Microsoft.Dynamics.CRM.LastFiscalPeriod",arity:0,allowedTypes:et},{id:"LastFiscalYear",label:"last fiscal year",kind:"dv-fn-0",category:"fiscal",odata:"Microsoft.Dynamics.CRM.LastFiscalYear",arity:0,allowedTypes:et},{id:"NextFiscalPeriod",label:"next fiscal period",kind:"dv-fn-0",category:"fiscal",odata:"Microsoft.Dynamics.CRM.NextFiscalPeriod",arity:0,allowedTypes:et},{id:"NextFiscalYear",label:"next fiscal year",kind:"dv-fn-0",category:"fiscal",odata:"Microsoft.Dynamics.CRM.NextFiscalYear",arity:0,allowedTypes:et},{id:"LastXFiscalPeriods",label:"in last X fiscal periods",kind:"dv-fn-1-int",category:"fiscal",odata:"Microsoft.Dynamics.CRM.LastXFiscalPeriods",arity:1,intValue:!0,allowedTypes:et},{id:"LastXFiscalYears",label:"in last X fiscal years",kind:"dv-fn-1-int",category:"fiscal",odata:"Microsoft.Dynamics.CRM.LastXFiscalYears",arity:1,intValue:!0,allowedTypes:et},{id:"NextXFiscalPeriods",label:"in next X fiscal periods",kind:"dv-fn-1-int",category:"fiscal",odata:"Microsoft.Dynamics.CRM.NextXFiscalPeriods",arity:1,intValue:!0,allowedTypes:et},{id:"NextXFiscalYears",label:"in next X fiscal years",kind:"dv-fn-1-int",category:"fiscal",odata:"Microsoft.Dynamics.CRM.NextXFiscalYears",arity:1,intValue:!0,allowedTypes:et},{id:"InFiscalPeriod",label:"in fiscal period N",kind:"dv-fn-1-int",category:"fiscal",odata:"Microsoft.Dynamics.CRM.InFiscalPeriod",arity:1,intValue:!0,allowedTypes:et},{id:"InFiscalYear",label:"in fiscal year YYYY",kind:"dv-fn-1-int",category:"fiscal",odata:"Microsoft.Dynamics.CRM.InFiscalYear",arity:1,intValue:!0,allowedTypes:et},{id:"InFiscalPeriodAndYear",label:"in fiscal period & year",kind:"dv-fn-2",category:"fiscal",odata:"Microsoft.Dynamics.CRM.InFiscalPeriodAndYear",arity:2,intValue:!0,allowedTypes:et},{id:"InOrAfterFiscalPeriodAndYear",label:"in or after fiscal period & year",kind:"dv-fn-2",category:"fiscal",odata:"Microsoft.Dynamics.CRM.InOrAfterFiscalPeriodAndYear",arity:2,intValue:!0,allowedTypes:et},{id:"InOrBeforeFiscalPeriodAndYear",label:"in or before fiscal period & year",kind:"dv-fn-2",category:"fiscal",odata:"Microsoft.Dynamics.CRM.InOrBeforeFiscalPeriodAndYear",arity:2,intValue:!0,allowedTypes:et},{id:"Between",label:"between (inclusive)",kind:"dv-fn-array",category:"range",odata:"Microsoft.Dynamics.CRM.Between",arity:2,allowedTypes:EB},{id:"NotBetween",label:"not between",kind:"dv-fn-array",category:"range",odata:"Microsoft.Dynamics.CRM.NotBetween",arity:2,allowedTypes:EB},{id:"In",label:"is one of",kind:"dv-fn-array",category:"set",odata:"Microsoft.Dynamics.CRM.In",arity:"n",allowedTypes:PB,hint:"Compress dozens of OR-equality conditions into a single In(...) — helps with the 500-condition limit."},{id:"NotIn",label:"not one of",kind:"dv-fn-array",category:"set",odata:"Microsoft.Dynamics.CRM.NotIn",arity:"n",allowedTypes:PB},{id:"ContainValues",label:"contains any of",kind:"dv-fn-array",category:"choices",odata:"Microsoft.Dynamics.CRM.ContainValues",arity:"n",intValue:!0,allowedTypes:MB,hint:"Choices columns only. Function name is ContainValues (not ContainsValues)."},{id:"DoesNotContainValues",label:"contains none of",kind:"dv-fn-array",category:"choices",odata:"Microsoft.Dynamics.CRM.DoesNotContainValues",arity:"n",intValue:!0,allowedTypes:MB},{id:"Above",label:"above (ancestor of)",kind:"dv-fn-guid",category:"hierarchy",odata:"Microsoft.Dynamics.CRM.Above",arity:1,allowedTypes:ko},{id:"AboveOrEqual",label:"above or equal",kind:"dv-fn-guid",category:"hierarchy",odata:"Microsoft.Dynamics.CRM.AboveOrEqual",arity:1,allowedTypes:ko},{id:"Under",label:"under (descendant of)",kind:"dv-fn-guid",category:"hierarchy",odata:"Microsoft.Dynamics.CRM.Under",arity:1,allowedTypes:ko},{id:"UnderOrEqual",label:"under or equal",kind:"dv-fn-guid",category:"hierarchy",odata:"Microsoft.Dynamics.CRM.UnderOrEqual",arity:1,allowedTypes:ko},{id:"NotUnder",label:"not under",kind:"dv-fn-guid",category:"hierarchy",odata:"Microsoft.Dynamics.CRM.NotUnder",arity:1,allowedTypes:ko},{id:"EqualUserId",label:"equals current user",kind:"dv-fn-0",category:"user-context",odata:"Microsoft.Dynamics.CRM.EqualUserId",arity:0,allowedTypes:ko},{id:"NotEqualUserId",label:"does not equal current user",kind:"dv-fn-0",category:"user-context",odata:"Microsoft.Dynamics.CRM.NotEqualUserId",arity:0,allowedTypes:ko},{id:"EqualBusinessId",label:"equals user's business unit",kind:"dv-fn-0",category:"user-context",odata:"Microsoft.Dynamics.CRM.EqualBusinessId",arity:0,allowedTypes:ko},{id:"NotEqualBusinessId",label:"not user's business unit",kind:"dv-fn-0",category:"user-context",odata:"Microsoft.Dynamics.CRM.NotEqualBusinessId",arity:0,allowedTypes:ko},{id:"EqualRoleBusinessId",label:"equals role's business unit",kind:"dv-fn-0",category:"user-context",odata:"Microsoft.Dynamics.CRM.EqualRoleBusinessId",arity:0,allowedTypes:ko},{id:"EqualUserLanguage",label:"equals user's language",kind:"dv-fn-0",category:"user-context",odata:"Microsoft.Dynamics.CRM.EqualUserLanguage",arity:0,allowedTypes:["Integer"]},{id:"EqualUserTeams",label:"equals one of user's teams",kind:"dv-fn-0",category:"user-context",odata:"Microsoft.Dynamics.CRM.EqualUserTeams",arity:0,allowedTypes:ko},{id:"EqualUserOrUserTeams",label:"equals user or user teams",kind:"dv-fn-0",category:"user-context",odata:"Microsoft.Dynamics.CRM.EqualUserOrUserTeams",arity:0,allowedTypes:ko},{id:"EqualUserOrUserHierarchy",label:"equals user or hierarchy",kind:"dv-fn-0",category:"user-context",odata:"Microsoft.Dynamics.CRM.EqualUserOrUserHierarchy",arity:0,allowedTypes:ko},{id:"EqualUserOrUserHierarchyAndTeams",label:"equals user / hierarchy / teams",kind:"dv-fn-0",category:"user-context",odata:"Microsoft.Dynamics.CRM.EqualUserOrUserHierarchyAndTeams",arity:0,allowedTypes:ko}],Ln=e=>Rs.find(t=>t.id===e);function nx(e,t){return Rs.filter(r=>!(r.allowedTypes&&!r.allowedTypes.includes(e)||r.requiresTable&&!r.requiresTable(t)))}function eae(e){return e?e.attributeType==="Lookup"||e.attributeType==="Customer"||e.attributeType==="Owner":!1}function od(e,t){return e?.oDataName?e.oDataName:eae(e)?`_${t}_value`:t}function ax(e,t){if(!e)return t;const r=e.columns.find(o=>o.logicalName===t);return od(r,t)}const qB=2;function Ev(e,t){const{scopeByOrg:r,...o}=e;if(!t||!r)return o;const n=r[t];return{...o,selectedPublisherIds:n?.selectedPublisherIds??[],selectedSolutionIds:n?.selectedSolutionIds??[]}}function FB(e,t,r){const o={...e,...t};return r&&(o.scopeByOrg={...e.scopeByOrg,[r]:{selectedPublisherIds:t.selectedPublisherIds,selectedSolutionIds:t.selectedSolutionIds}}),o}function tae(e,t){const r={};for(const o of Object.keys(t))t[o]!==e[o]&&Object.assign(r,{[o]:t[o]});return r}const Bm={useLogicalNames:!1,valueDisplayMode:"formatted",columnWidths:{},entityScopeMode:"publisher-solution",advancedFindOnly:!1,gridDensity:"medium",productionSafeMode:!0,selectedPublisherIds:[],selectedSolutionIds:[],scopeTipDismissed:[],keepRunHistory:!0},rae="pptb-dataverse-request-studio",oae=e=>`${rae}:${e}`,vT=oae("displaySettings");function nae(e){if(!e)return{...Bm,settingsRevision:qB};const t={...e};return(e.settingsRevision??1)<2&&delete t.advancedFindOnly,{...Bm,...t,settingsRevision:qB}}const bT=m.createContext(null),yT=m.createContext(!1);function Pv(e){typeof window<"u"&&window.toolboxAPI?.settings?.set&&window.toolboxAPI.settings.set(vT,e).catch(t=>{console.warn("⚙️ Failed to save settings to toolboxAPI:",t)})}function aae({children:e}){const[t,r]=m.useState(Bm),o=m.useRef(t);o.current=t;const n=m.useRef(!1),[a,i]=m.useState(!1),l=pc(),d=m.useRef(l);d.current=l;const f=m.useMemo(()=>Ev(t,l),[t,l]),p=m.useRef([]),h=m.useRef(null),v=m.useRef(!0),y=m.useCallback(()=>{if(h.current)return h.current;const b=(async()=>{try{if(typeof window>"u"||!window.toolboxAPI?.settings?.get){n.current=!0,v.current&&i(!0);return}const k=await window.toolboxAPI.settings.get(vT);if(!v.current)return;const S=p.current;p.current=[];let N=nae(k);for(const{org:B,changed:C}of S)N=FB(N,{...Ev(N,B),...C},B);n.current=!0,o.current=N,r(N),i(!0),S.length>0&&Pv(N)}catch(k){console.warn("⚙️ Failed to load settings from toolboxAPI:",k)}finally{h.current=null}})();return h.current=b,b},[]);m.useEffect(()=>(v.current=!0,y(),()=>{v.current=!1}),[y]),m.useEffect(()=>{if(!n.current||!l||t.scopeByOrg)return;const b={...t,scopeByOrg:{[l]:{selectedPublisherIds:t.selectedPublisherIds,selectedSolutionIds:t.selectedSolutionIds}}};r(b),Pv(b)},[l,t]);const x=m.useCallback(b=>{const k=d.current;n.current||p.current.push({org:k,changed:tae(Ev(o.current,k),b)});const S=FB(o.current,b,k);o.current=S,r(S),n.current?Pv(S):y()},[y]);return c.jsx(bT.Provider,{value:[f,x],children:c.jsx(yT.Provider,{value:a,children:e})})}function iae(){return m.useContext(yT)}function ha(){const e=m.useContext(bT);return e||(typeof window<"u"&&console.warn("[usePersistedSettings] called outside <SettingsProvider> — wrap the app in <SettingsProvider> in App.tsx."),[Bm,()=>{}])}const sae=(e,t)=>!t||e.isValidForAdvancedFind!==!1,Zi=(e,t)=>!t||e.isValidForAdvancedFind!==!1||e.attributeType==="Image"||e.attributeType==="File",Rg=(e,t)=>!t||e.isValidForAdvancedFind!==!1,ix=(e,t)=>e.filter(r=>Zi(r,t)),Dg=(e,t)=>e.filter(r=>Rg(r,t));function nd(e,t,r=()=>!0){return e.find(o=>o.isValidForRead!==!1&&o.attributeType!=="Image"&&o.attributeType!=="File"&&Zi(o,t)&&r(o))}function Vo(){return ha()[0].advancedFindOnly}let lae=1;function Ft(e){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?`${e}_${crypto.randomUUID()}`:`${e}_${Date.now().toString(36)}_${(lae++).toString(36)}_${Math.floor(Math.random()*1e6).toString(36)}`}const xT=()=>({id:Ft("root"),type:"group",combinator:"and",rules:[]});function cae(e,t,r){const o=n=>{if(n.id===t)switch(n.type){case"group":return{...n,...r};case"rule":return{...n,...r};case"function":return{...n,...r};case"lambda":return{...n,...r}}return n.type==="group"?{...n,rules:n.rules.map(o)}:n.type==="lambda"?{...n,inner:o(n.inner)}:n};return o(e)}function IB(e,t,r){const o=n=>n.type==="group"?n.id===t?{...n,rules:[...n.rules,r]}:{...n,rules:n.rules.map(o)}:n.type==="lambda"?{...n,inner:o(n.inner)}:n;return o(e)}function uae(e,t,r,o){const n=a=>{if(a.type==="group"){if(a.id===t){if(r<0||r>=a.rules.length||o<0||o>=a.rules.length)return a;const i=[...a.rules],[l]=i.splice(r,1);return i.splice(o,0,l),{...a,rules:i}}return{...a,rules:a.rules.map(n)}}return a.type==="lambda"?{...a,inner:n(a.inner)}:a};return n(e)}function dae(e,t){const r=o=>o.type==="group"?{...o,rules:o.rules.filter(n=>n.id!==t).map(n=>r(n))}:o.type==="lambda"?{...o,inner:r(o.inner)}:o;return r(e)}function _i(e){let t=0;for(const r of e.rules)switch(r.type){case"group":t+=_i(r);break;case"lambda":t+=_i(r.inner)||1;break;case"rule":case"function":t+=1;break}return t}function ks(e){return e.replace(/'/g,"''")}function wT(e){if(!e)return{value:e,stripped:!1,kinds:[]};const t=[];let r=0;for(;r<e.length;){const n=e[r];if(n==="%"){t.includes("%")||t.push("%"),r++;continue}if(n==="_"){t.includes("_")||t.push("_"),r++;continue}if(n==="-"&&r===0){t.push("-"),r++;continue}if(n==="'"&&r===0){t.push("'"),r++;continue}if(n==="["){const a=e[r+1]==="^";t.push(a?"[^":"[");const i=e.indexOf("]",r);i===-1?r=e.length:r=i+1;continue}break}return{value:e.slice(r),stripped:r>0,kinds:t}}const fae=new Set(["contains","startswith","endswith"]);function rb(e,t=[]){for(const r of e.rules)if(r.type==="rule"&&fae.has(r.op)&&r.val){const{value:o,stripped:n,kinds:a}=wT(r.val);n&&t.push({col:r.col,raw:r.val,cleaned:o,kinds:a})}else r.type==="group"?rb(r,t):r.type==="lambda"&&rb(r.inner,t);return t}const pae=/^-?\d+$/,mae=/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/,gae=/^-?\d+(,-?\d+)*$/,hae=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Du={re:pae,expected:"a whole number"},kT={re:hae,expected:"a GUID"},ST={re:rx,expected:"an ISO 8601 date or date-time"};function sx(e){switch(e.attributeType){case"DateTime":return ST;case"Uniqueidentifier":case"Lookup":case"Customer":case"Owner":return kT;case"BigInt":case"Integer":case"Picklist":case"State":case"Status":return Du;case"Decimal":case"Double":case"Money":return{re:mae,expected:"a number"};case"MultiSelectPicklist":return{re:gae,expected:"whole numbers separated by commas"};default:return null}}const ob=(e,t)=>e.re.test(t.trim())?t.trim():`'${ks(t)}'`;function BT(e){return e.attributeType==="DateTime"?null:e.attributeType==="Boolean"?{re:/^(true|false)$/,expected:"true or false"}:sx(e)}function AB(e,t){if(t===""||t==null)return"''";if(!e)return jT(t);if(e.attributeType==="Boolean")return t==="true"||t==="1"?"true":"false";const r=sx(e);return r?ob(r,t):`'${ks(t)}'`}function jT(e){const t=e.trim();return/^-?\d+(\.\d+)?$/.test(t)||t==="true"||t==="false"||t==="null"||/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t)||/^\d{4}-\d{2}-\d{2}(T[\d:.]+(Z|[+-]\d{2}:\d{2})?)?$/.test(t)?t:`'${ks(e)}'`}const vae=e=>JSON.stringify(e.map(t=>String(t??"")));function jm(e,t,r){return ws(r,e,{alias:t}).leaf}function bae(e,t){const r=Ln(e.op);if(!r)return"";const o=jm(e.col,t.lambdaAlias,t.table),n=(()=>{const i=e.col.split("/"),l=i.pop()??e.col,d=od(o,l);return[...i,d].join("/")})(),a=i=>{if(e.valKind==="column"&&i){const l=t.table?.columns.find(f=>f.logicalName===i),d=od(l,i);return t.lambdaAlias&&!i.includes("/")?`${t.lambdaAlias}/${d}`:d}return AB(o,i)};switch(r.kind){case"comparison":return`${n} ${r.odata} ${a(e.val??"")}`;case"null-check":return`${n} ${r.odata}`;case"odata-fn":{const{value:i}=wT(e.val??""),l=o?AB(o,i):`'${ks(i)}'`,d=`${r.odata}(${n},${l})`;return e.negated?`not ${d}`:d}default:return""}}function yae(e,t,r){let o=e.col;return r.lambdaAlias&&o.startsWith(r.lambdaAlias+"/")&&(o=o.slice(r.lambdaAlias.length+1)),o.startsWith("_")&&o.endsWith("_value")&&(o=o.slice(1,-6)),t?.category==="hierarchy"&&r.table?.primaryKey||o}function xae(e,t){const r=Ln(e.op);if(!r)return"";const o=jm(e.col,t.lambdaAlias,t.table),n=ks(yae(e,r,t)),a=l=>ob(Du,l||"0");let i="";switch(r.kind){case"dv-fn-0":i=`${r.odata}(PropertyName='${n}')`;break;case"dv-fn-1":{const l=e.val??"",d=o?BT(o):null,f=o?d?ob(d,l):`'${ks(l)}'`:jT(l);i=`${r.odata}(PropertyName='${n}',PropertyValue=${f})`;break}case"dv-fn-1-int":i=`${r.odata}(PropertyName='${n}',PropertyValue=${a(e.val)})`;break;case"dv-fn-2":{const[l,d]=e.vals??["",""];i=`${r.odata}(PropertyName='${n}',PropertyValue1=${a(l)},PropertyValue2=${a(d)})`;break}case"dv-fn-array":{const l=e.values??(e.vals?[...e.vals]:[]);i=`${r.odata}(PropertyName='${n}',PropertyValues=${vae(l)})`;break}case"dv-fn-guid":i=`${r.odata}(PropertyName='${n}',PropertyValue='${ks(e.val??"")}')`;break;default:return""}return i}function wae(e,t,r){const o=t?.navigationProperties.find(d=>d.name===e.nav),n=o?CT(o.targetEntity):void 0,a=n?Li(e.inner,n,e.alias):Li(e.inner,t,e.alias),i=r?`${r}/${e.nav}`:e.nav,l=a?`${i}/${e.lambda}(${e.alias}:${a})`:`${i}/${e.lambda}()`;return e.negated?`not ${l}`:l}function Li(e,t,r){const o={table:t,lambdaAlias:r},n=e.rules.map(i=>{switch(i.type){case"group":return Li(i,t,r);case"rule":return bae(i,o);case"function":return xae(i,o);case"lambda":return wae(i,t,r)}}).filter(Boolean);if(n.length===0)return"";let a;if(n.length===1)a=n[0];else{const i=` ${e.combinator} `;a=n.map(l=>l.includes(" and ")||l.includes(" or ")?`(${l})`:l).join(i)}return e.negated?`not (${a})`:a}function Cm(e,t,r,o=[]){const n=(a,i,l)=>{l&&i&&!l.re.test(i.trim())&&o.push({nodeId:a.id,col:a.col,value:i,expected:l.expected})};for(const a of e.rules)switch(a.type){case"group":Cm(a,t,r,o);break;case"lambda":{const i=t?.navigationProperties.find(d=>d.name===a.nav),l=i?CT(i.targetEntity):void 0;Cm(a.inner,l??t,a.alias,o);break}case"rule":{if(Ln(a.op)?.kind!=="comparison"||a.valKind==="column")break;const i=jm(a.col,r,t);i&&i.attributeType!=="Boolean"&&n(a,a.val,sx(i));break}case"function":{switch(Ln(a.op)?.kind){case"dv-fn-1":{const i=jm(a.col,r,t);i&&n(a,a.val,i.attributeType==="DateTime"?ST:BT(i));break}case"dv-fn-1-int":n(a,a.val,Du);break;case"dv-fn-2":n(a,a.vals?.[0],Du),n(a,a.vals?.[1],Du);break;case"dv-fn-guid":n(a,a.val,kT);break}break}}return o}function ad(e,t=[]){const r=(o,n)=>{n&&!Yne(n)&&t.push(`${o} ${JSON.stringify(n)} isn't a valid name.`)};for(const o of e.rules)switch(o.type){case"group":ad(o,t);break;case"lambda":{const n=ox([["Filter navigation property",o.nav],["Filter alias",o.alias]]);n&&t.push(n),ad(o.inner,t);break}case"rule":r("Filter column",o.col),o.valKind==="column"&&r("Filter column",o.val);break;case"function":r("Filter column",o.col);break}return t}function lx(e,t=[]){for(const r of e){const o=ox([["Expanded navigation property",r.nav]]);o&&t.push(o),r.filter&&ad(r.filter,t),r.nestedExpand&&lx(r.nestedExpand,t)}return t}let nb=null;function kae(e){nb=e}function CT(e){return nb?nb(e):void 0}function Sae(e,t){const r=_i(e);return{ruleCount:r,ruleWarn:r>=400,ruleError:r>500,urlWarn:t>=3e4,urlError:t>=32e3}}function cx(e){return{id:Ft("r"),type:"rule",col:e,op:"eq",val:""}}function Bae(e){return{id:Ft("g"),type:"group",combinator:"or",rules:[cx(e)]}}function jae(e,t="LastXDays",r=!1){const o=Ln(t),n=o?.allowedTypes,a=e.columns.filter(f=>f.attributeType!=="File"&&f.attributeType!=="Image"&&f.isValidForRead!==!1&&Zi(f,r)),l=(n?a.find(f=>n.includes(f.attributeType)):a[0])?.logicalName??a[0]?.logicalName??e.columns[0].logicalName,d=o?.intValue?"30":"";return{id:Ft("f"),type:"function",op:t,col:l,val:d}}function Cae(e,t){const r=e[0]??"x";return{id:Ft("l"),type:"lambda",nav:e,lambda:"any",alias:r,inner:{id:Ft("g"),type:"group",combinator:"and",rules:[{id:Ft("r"),type:"rule",col:`${r}/${t}`,op:"eq",val:""}]}}}const OB=1e3;let Nae=1;const ux=e=>`${e}${Date.now().toString(36)}${(Nae++).toString(36)}`;function zae(e="create",t={}){return{id:ux("i"),op:e,label:"",entitySet:"",recordId:"",query:"",navProperty:"",targetSet:"",targetId:"",method:"POST",url:"",body:e==="create"||e==="update"?`{
27
+
28
+ }`:"",headers:[],...t}}function NT(e,t=[]){return{id:ux("g"),atomic:e,items:t}}const Lbe=()=>({groups:[NT(!0)],continueOnError:!1,dirty:new Set});function Tae(e){const t=[];let r=0;return e.forEach((o,n)=>{for(const a of o.items)r+=1,t.push({item:a,group:o,groupIndex:n,contentId:String(r)})}),t}const zT=e=>{switch(e.op){case"create":case"associate":return"POST";case"update":return"PATCH";case"delete":return"DELETE";case"retrieve":return"GET";case"custom":return e.method}},_ae=/^\$\d+$/,bl=e=>_ae.test(e.trim());function TT(e){return e.trim().replace(/^https?:\/\/[^/]+/i,"").replace(/^\/+/,"").replace(/^api\/data\/v\d+(\.\d+)?\//i,"")}function du(e,t){const r=t.trim();return bl(r)?r:`${e.trim()}(${r.replace(/^\{|\}$/g,"")})`}function _T(e,t=""){const r=[],o=h=>r.push({severity:"error",message:h}),n=zT(e),a=e.entitySet.trim(),i=e.recordId.trim();let l="",d;const f=h=>{const v=e.body.trim();if(!v){h&&o("Body is empty.");return}try{const y=JSON.parse(v);return h&&(y===null||typeof y!="object"||Array.isArray(y))&&o("Body must be a JSON object."),LB(y)}catch(y){o(`Body isn't valid JSON: ${y instanceof Error?y.message:String(y)}`);return}};switch(e.op){case"create":a||o("Pick a table (entity set)."),l=a,d=f(!0);break;case"update":!a&&!bl(i)&&o("Pick a table (entity set)."),i||o("Enter the record id (or a $n reference)."),l=du(a,i),d=f(!0);break;case"delete":!a&&!bl(i)&&o("Pick a table (entity set)."),i||o("Enter the record id (or a $n reference)."),l=du(a,i);break;case"retrieve":{a||o("Pick a table (entity set).");const h=e.query.trim().replace(/^\?/,"");l=`${i?du(a,i):a}${h?`?${h}`:""}`;break}case"associate":{!a&&!bl(i)&&o("Pick the source table (entity set)."),i||o("Enter the source record id."),e.navProperty.trim()||o("Enter the collection-valued navigation property.");const h=e.targetId.trim();h||o("Enter the target record id."),!e.targetSet.trim()&&!bl(h)&&o("Pick the target table."),l=`${du(a,i)}/${e.navProperty.trim()}/$ref`;const v=bl(h)?h:`${t?`${t.replace(/\/+$/,"")}${_g}/`:""}${du(e.targetSet,h)}`;d=LB({"@odata.id":v});break}case"custom":l=TT(e.url),l||o("Enter the request URL."),/\$batch\b/i.test(l)&&o("A batch cannot contain another $batch request."),d=f(!1),n==="GET"&&d!==void 0&&o("A GET request cannot have a body.");break}const p={};for(const h of e.headers){if(!h.enabled)continue;const v=h.name.trim();if(!(!v&&!h.value)){if(!Rae.test(v)){o(`Invalid header name "${v}".`);continue}if(/[\x00-\x1f\x7f]/.test(h.value)){o(`Header ${v} has a control character in its value.`);continue}if(Oi(v)){r.push({severity:"warning",message:`${v} isn't sent: Power Platform ToolBox authenticates the batch.`});continue}p[v]=h.value}}return r.some(h=>h.severity==="error")?{wire:null,problems:r}:{wire:{method:n,path:l,headers:p,body:d},problems:r}}const LB=e=>JSON.stringify(e,null,2).replace(/\n/g,`\r
29
+ `),Rae=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function Dae(e){const t=[...e.path.matchAll(/(?:^|\/)\$(\d+)(?=\/|$|\?)/g)].map(o=>o[1]),r=e.body?[...e.body.matchAll(/"\$(\d+)"/g)].map(o=>o[1]):[];return{inUrl:t,inBody:r}}function $be(e,t=""){const r=Tae(e),o=[],n=r.map(i=>{const{wire:l,problems:d}=_T(i.item,t);for(const f of d)o.push({...f,target:i.item.id});return{...i,wire:l}});n.length===0&&o.push({severity:"error",target:"",message:"Add a request."}),n.length>OB&&o.push({severity:"error",target:"",message:`A batch can hold at most ${OB} requests (this one has ${n.length}).`});const a=new Map(n.map(i=>[i.contentId,i]));for(const i of n){if(!i.wire)continue;i.group.atomic&&i.wire.method==="GET"&&o.push({severity:"error",target:i.item.id,message:"GET requests aren’t allowed inside a change set. Move it to an independent group."});const{inUrl:l,inBody:d}=Dae(i.wire);for(const f of[...l,...d]){const p=a.get(f);i.group.atomic?(!p||p.group!==i.group||Number(f)>=Number(i.contentId))&&o.push({severity:"error",target:i.item.id,message:`$${f} must be an earlier request in the same change set.`}):o.push({severity:"error",target:i.item.id,message:`$${f} can only be referenced inside a change set.`})}l.length>0&&o.push({severity:"warning",target:i.item.id,message:`The URL starts with a Content-ID reference ($${l[0]}). Power Platform ToolBox prefixes every batch URL with ${_g}/, so Dataverse may not resolve it. References in the body (@odata.bind / @odata.id) aren’t affected.`})}return{items:n,issues:o}}function Hbe(e){const t=[];let r=null;for(const o of e){const n=t[t.length-1];o.group.atomic?n&&n.transaction&&r===o.group?n.items.push(o):t.push({transaction:!0,items:[o]}):n&&!n.transaction?n.items.push(o):t.push({transaction:!1,items:[o]}),r=o.group}return t}function Vbe(e,t=""){const{wire:r}=_T(e,t);return r?{method:r.method,path:r.path}:{method:zT(e),path:e.op==="custom"?TT(e.url):e.entitySet}}function Wbe(e){const{dirty:t,...r}=e;return r}function Ube(e){return{groups:(Array.isArray(e.groups)?e.groups:[]).map(r=>({id:r.id||ux("g"),atomic:!!r.atomic,items:(Array.isArray(r.items)?r.items:[]).map(o=>({...zae(o.op),...o}))})),continueOnError:!!e.continueOnError,...e.returnResponses!==void 0?{returnResponses:!!e.returnResponses}:{},dirty:new Set}}function Eae(e){const t=(e.groups??[]).reduce((n,a)=>n+(a.items?.length??0),0),r=(e.groups??[]).filter(n=>n.atomic&&n.items?.length).length,o=["batch",`${t} request${t===1?"":"s"}`];return r&&o.push(`${r} change set${r===1?"":"s"}`),o.push(new Date().toISOString().slice(0,10)),o.join(" · ")}const Gbe=()=>({groups:[NT(!1)],continueOnError:!1,returnResponses:!0,dirty:new Set});function Pae(e){const t=(e.groups??[]).reduce((o,n)=>o+(n.items?.length??0),0),r=["ExecuteMultiple",`${t} request${t===1?"":"s"}`];return e.continueOnError&&r.push("continue on error"),r.push(new Date().toISOString().slice(0,10)),r.join(" · ")}const Md="drs:saved-requests:v1",Eg=1,Na=200;function mc(){const e=Jt();return`${Md}:${e}`}function Jt(){try{return xl().host||"default"}catch{return"default"}}const Mae={"retrieve-multiple":!0,"retrieve-single":!0,"predefined-query":!0,delete:!0,"bulk-delete":!0,update:!0,create:!0,upsert:!0,merge:!0,"bulk-write":!0,associate:!0,disassociate:!0,"exec-action":!0,"exec-function":!0,"exec-workflow":!0,"manage-file":!0,"manage-image":!0,"manage-attachment":!0,batch:!0,"execute-multiple":!0},qae=new Set(Object.keys(Mae));function Fae(e){const{dirty:t,...r}=e;return r}function ab(e){return{...e,dirty:new Set}}function Zbe(e){const{dirty:t,...r}=e;return r}function Iae(e){return{...e,dirty:new Set}}function Kbe(e){const{dirty:t,...r}=e;return r}function Aae(e){return{...e,dirty:new Set}}function Xbe(e){const{dirty:t,confirmText:r,acknowledged:o,...n}=e;return n}function Oae(e){return{...e,dirty:new Set,confirmText:"",acknowledged:!1}}function Ybe(e){const{dirty:t,...r}=e;return r}function Lae(e){return{...e,nullFields:e.nullFields??[],rawBody:e.rawBody??null,dirty:new Set}}function Jbe(e){const{dirty:t,...r}=e;return r}function $ae(e){return{...e,nullFields:e.nullFields??[],rawBody:e.rawBody??null,dirty:new Set}}function Qbe(e){const{dirty:t,...r}=e;return r}function Hae(e){return{...e,nullFields:e.nullFields??[],rawBody:e.rawBody??null,dirty:new Set}}function eye(e){const{dirty:t,targetSnapshot:r,subordinateSnapshot:o,...n}=e;return n}function Vae(e){return{...e,dirty:new Set,targetSnapshot:null,subordinateSnapshot:null}}function tye(e){const{dirty:t,...r}=e;return r}function Wae(e){return{...e,targetNames:e.targetNames??{},dirty:new Set}}function rye(e){const{dirty:t,...r}=e;return r}function Uae(e){return{...e,targetNames:e.targetNames??{},dirty:new Set}}function oye(e){const{dirty:t,...r}=e;return r}function Gae(e){return{...e,dirty:new Set}}function nye(e){const{dirty:t,...r}=e;return r}function Zae(e){return{...e,dirty:new Set}}function aye(e){const{dirty:t,...r}=e;return r}function Kae(e){return{...e,dirty:new Set}}function iye(e){const{dirty:t,bodyBase64:r,...o}=e;return o}function Xae(e){return{...e,bodyBase64:"",dirty:new Set}}function sye(e){const{dirty:t,bodyBase64:r,...o}=e;return o}function Yae(e){return{...e,bodyBase64:"",dirty:new Set}}function lye(e){const{dirty:t,bodyBase64:r,...o}=e;return o}function Jae(e){return{...e,bodyBase64:"",dirty:new Set}}function RT(e){return tie(e)&&qae.has(e.modeId)&&(e.schemaVersion??1)<=Eg}function DT(e=mc(),t=Jt()){const r={entries:[],preserved:[],unreadable:null};if(typeof window>"u")return r;let o;try{o=window.localStorage.getItem(e)}catch{return r}if(!o)return r;let n;try{n=JSON.parse(o)}catch{return{...r,unreadable:o}}if(!Array.isArray(n))return{...r,unreadable:o};const a=[],i=[];for(const l of n)RT(l)?a.push({...l,state:rd(l.state),orgScope:l.orgScope||t,schemaVersion:l.schemaVersion??1}):i.push(l);return{entries:a,preserved:i,unreadable:null}}const Qae="drs:saved-requests-corrupt:v1";function eie(e,t){if(typeof window>"u")return null;const r=`${Qae}:${e}:`;try{const o=window.localStorage;for(let a=0;a<o.length;a++){const i=o.key(a);if(i?.startsWith(r)&&o.getItem(i)===t)return i}const n=`${r}${Date.now()}`;return o.setItem(n,t),n}catch{return null}}function tie(e){return e!=null&&typeof e=="object"&&typeof e.id=="string"&&typeof e.name=="string"&&typeof e.modeId=="string"&&typeof e.state=="object"&&e.state!==null&&typeof e.savedAt=="number"}function $B(e,t=[]){if(!(typeof window>"u"))try{window.localStorage.setItem(mc(),JSON.stringify([...e,...t]))}catch{throw new Error("localStorage write failed (quota or privacy mode).")}}function rie(){if(!(typeof window>"u"))try{const e=window.localStorage,t=[];for(let r=0;r<e.length;r++){const o=e.key(r);o?.startsWith(`${Md}:`)&&t.push(o)}for(const r of t){let o;try{o=JSON.parse(e.getItem(r)??"")}catch{continue}if(!Array.isArray(o))continue;let n=!1;const a=o.map(i=>{if(!i||typeof i!="object"||!("state"in i))return i;const l=rd(i.state);return l===i.state?i:(n=!0,{...i,state:l})});n&&e.setItem(r,JSON.stringify(a))}}catch{}}function oie(e,t){return DT(e,t).entries}function nie(){if(typeof window>"u")return[];const e=mc(),t=`${Md}:`,r=[];try{for(let o=0;o<window.localStorage.length;o++){const n=window.localStorage.key(o);if(!n||!n.startsWith(t)||n===e)continue;const a=n.slice(t.length),i=oie(n,a);i.length&&r.push({scope:a,entries:i})}}catch{return r}return r.sort((o,n)=>n.entries.length-o.entries.length||o.scope.localeCompare(n.scope))}function aie(e,t){const r=`${Md}:${e}`;if(r!==mc())try{const o=window.localStorage.getItem(r),n=o?JSON.parse(o):[];if(!Array.isArray(n))return;const a=n.filter(i=>!(i&&typeof i=="object"&&t.has(i.id)));a.length?window.localStorage.setItem(r,JSON.stringify(a)):window.localStorage.removeItem(r)}catch{throw new Error("localStorage write failed (quota or privacy mode).")}}const ET="drs-saved-requests";function iie(e,t){const r={format:ET,schemaVersion:Eg,exportedAt:new Date().toISOString(),orgScope:t,entries:e.map(o=>({...o,state:rd(o.state),schemaVersion:o.schemaVersion??1}))};return JSON.stringify(r,null,2)}const sie=e=>!!e&&typeof e=="object"&&Array.isArray(e.rules),Mv=e=>sie(e)?ad(e):[],HB=e=>Array.isArray(e)?lx(e):[],lie={"retrieve-multiple":e=>({ids:[],names:[...vp(e.select,"Selected column"),...Array.isArray(e.orderby)?e.orderby.map(t=>["Sort column",t?.col]):[]],problems:()=>[...Mv(e.filter),...Mv(e.apply?.prefilter),...HB(e.expand)]}),"retrieve-single":e=>({ids:[["Record id",e.recordId]],names:vp(e.select,"Selected column"),problems:()=>HB(e.expand)}),"predefined-query":e=>{const t=e.related??{};return{ids:[["Query id",e.queryId],["Source row id",t.recordId]],names:[["Source table",t.sourceTable],["Relationship",t.navProperty]]}},"bulk-delete":e=>({ids:[],names:[],problems:()=>Mv(e.filter)}),delete:e=>({ids:[["Record id",e.recordId]],names:[["Column",e.scope?.column]]}),update:e=>({ids:[["Record id",e.recordId]],names:[["Column",e.putColumn]]}),upsert:e=>{const t=e.key??{};return{ids:t.kind==="guid"?[["Record id",t.recordId]]:[],names:[]}},merge:e=>({ids:[["Master record id",e.targetId],["Subordinate record id",e.subordinateId]],names:[]}),associate:e=>({ids:[["Source record id",e.sourceId],...vp(e.targets,"Target record id")],names:[["Navigation property",e.navProperty]]}),disassociate:e=>({ids:[["Source record id",e.sourceId],...vp(e.targetIds,"Target record id")],names:[["Navigation property",e.navProperty]]}),"exec-action":e=>({ids:[["Bound record id",e.boundRecordId]],names:[]}),"exec-function":e=>({ids:[["Bound record id",e.boundRecordId]],names:[]}),"exec-workflow":e=>({ids:[["Workflow id",e.workflowId],["Record id",e.entityId]],names:[]}),"manage-file":e=>({ids:[["Record id",e.recordId]],names:[["File column",e.fileColumn]]}),"manage-image":e=>({ids:[["Record id",e.recordId]],names:[["Image column",e.imageColumn]]}),"manage-attachment":e=>({ids:[["Record id",e.recordId],["Parent activity id",e.parentActivityId],["Parent record id",e.parentEntityId]],names:[["Parent table",e.parentEntityLogical]]})};function vp(e,t){return Array.isArray(e)?e.map(r=>[t,r]):e==null?[]:[[t,e]]}function PT(e){const t=e.state,r=lie[e.modeId]?.(t)??{ids:[],names:[]},o=[["Table",t.table],...r.names];for(const[i,l]of[...r.ids,...o])if(l!=null&&typeof l!="string")return`${i} isn't text.`;const n=i=>i,a=gT(n(r.ids),n(o));if(a)return a;try{return r.problems?.()[0]??null}catch{return"Its query can't be read."}}function cie(e){let t;try{t=JSON.parse(e.charCodeAt(0)===65279?e.slice(1):e)}catch{throw new Error("The file is not valid JSON.")}let r;if(Array.isArray(t))r=t;else if(t&&typeof t=="object"&&t.format===ET&&Array.isArray(t.entries)){const a=t.schemaVersion;if(typeof a=="number"&&a>Eg)throw new Error(`The file was exported by a newer version of Dataverse Request Studio (schema ${a}). Update the tool and try again.`);r=t.entries}else throw new Error("The file is not a Dataverse Request Studio saved-requests export.");const o=[],n=[];for(const a of r){if(!RT(a))continue;const i=PT(a);i?n.push(`"${a.name}": ${i}`):o.push(a)}return{entries:o,invalid:r.length-o.length,problems:n}}function Eu(e){try{return JSON.stringify(e)}catch{return""}}function VB(e,t){switch(e){case"retrieve-multiple":return bie(t);case"retrieve-single":return jie(t);case"predefined-query":return Bie(t);case"delete":return Sie(t);case"bulk-delete":return["bulk delete",t.table||"untitled",new Date().toISOString().slice(0,10)].join(" · ");case"update":return kie(t);case"create":return wie(t);case"upsert":return xie(t);case"merge":return yie(t);case"bulk-write":{const r=t,o=r.rows?.length??0;return[r.operation||"bulk",r.table||"untitled",`${o} row${o===1?"":"s"}`,new Date().toISOString().slice(0,10)].join(" · ")}case"associate":return vie(t);case"disassociate":return hie(t);case"exec-action":return pie(t);case"exec-function":return mie(t);case"exec-workflow":return gie(t);case"manage-file":return die(t);case"manage-image":return fie(t);case"manage-attachment":return uie(t);case"batch":return Eae(t);case"execute-multiple":return Pae(t)}}function uie(e){const t=[e.target,e.operation];return e.target==="attachment"?t.push("activitymimeattachment.body"):t.push("annotation.documentbody"),e.recordId&&t.push(`#${e.recordId.replace(/[{}-]/g,"").slice(0,8)}`),e.fileName&&t.push(e.fileName),t.push(new Date().toISOString().slice(0,10)),t.join(" · ")}function die(e){const t=["file",e.operation];return e.table&&e.fileColumn?t.push(`${e.table}.${e.fileColumn}`):e.table&&t.push(e.table),e.recordId&&t.push(`#${e.recordId.replace(/[{}-]/g,"").slice(0,8)}`),e.fileName&&t.push(e.fileName),t.push(new Date().toISOString().slice(0,10)),t.join(" · ")}function fie(e){const t=["image",e.operation];return e.table&&e.imageColumn?t.push(`${e.table}.${e.imageColumn}`):e.table&&t.push(e.table),e.recordId&&t.push(`#${e.recordId.replace(/[{}-]/g,"").slice(0,8)}`),e.operation==="download"&&t.push(e.downloadSize),t.push(new Date().toISOString().slice(0,10)),t.join(" · ")}function pie(e){const t=[e.category];t.push(e.actionName||"untitled"),e.boundRecordId&&t.push(`#${e.boundRecordId.replace(/[{}-]/g,"").slice(0,8)}`);const r=Object.values(e.paramValues||{}).filter(o=>o!=null&&o!=="").length;return r&&t.push(`${r} param${r===1?"":"s"}`),t.push(new Date().toISOString().slice(0,10)),t.join(" · ")}function mie(e){const t=["function"];t.push(e.functionName||"untitled"),e.boundRecordId&&t.push(`#${e.boundRecordId.replace(/[{}-]/g,"").slice(0,8)}`);const r=Object.values(e.paramValues||{}).filter(o=>o!=null&&o!=="").length;return r&&t.push(`${r} param${r===1?"":"s"}`),t.push(new Date().toISOString().slice(0,10)),t.join(" · ")}function gie(e){const t=["workflow"];return e.workflowId&&t.push(`wf:${e.workflowId.replace(/[{}-]/g,"").slice(0,8)}`),e.entityId&&t.push(`#${e.entityId.replace(/[{}-]/g,"").slice(0,8)}`),t.push(new Date().toISOString().slice(0,10)),t.join(" · ")}function hie(e){const t=["disassociate"];return t.push(e.table||"untitled"),e.navProperty&&t.push(`× ${e.navProperty}`),e.targetIds?.length&&t.push(`${e.targetIds.length} target${e.targetIds.length===1?"":"s"}`),t.push(new Date().toISOString().slice(0,10)),t.join(" · ")}function vie(e){const t=["associate"];return t.push(e.table||"untitled"),e.navProperty&&t.push(`→ ${e.navProperty}`),e.targets?.length&&t.push(`${e.targets.length} target${e.targets.length===1?"":"s"}`),t.push(new Date().toISOString().slice(0,10)),t.join(" · ")}function bie(e){const t=[];t.push(e.table||"untitled"),e.select.length&&t.push(`${e.select.length} sel`);const r=ib(e.filter);return r&&t.push(`${r} flt`),e.orderby.length&&t.push(`${e.orderby.length} sort`),e.expand.length&&t.push(`${e.expand.length} exp`),e.apply?.enabled&&t.push("apply"),t.push(new Date().toISOString().slice(0,10)),t.join(" · ")}function yie(e){const t=["merge"];t.push(e.table||"untitled"),e.targetId&&t.push(`tgt:${e.targetId.replace(/[{}-]/g,"").slice(0,8)}`),e.subordinateId&&t.push(`sub:${e.subordinateId.replace(/[{}-]/g,"").slice(0,8)}`);const r=Object.values(e.fieldChoices||{}).filter(o=>o!=="target").length;return r&&t.push(`${r} override${r===1?"":"s"}`),t.push(new Date().toISOString().slice(0,10)),t.join(" · ")}function xie(e){const t=["upsert"];t.push(e.table||"untitled"),e.concurrency.kind==="create-only"?t.push("create-only"):e.concurrency.kind==="update-only"?t.push("update-only"):e.concurrency.kind==="etag"&&t.push("etag"),e.key.kind==="guid"&&e.key.recordId?t.push(`#${e.key.recordId.replace(/[{}-]/g,"").slice(0,8)}`):e.key.kind==="alternate"&&t.push(`altkey:${e.key.keyName||"?"}`);const r=Object.keys(e.fieldValues||{}).length;return r&&t.push(`${r} field${r===1?"":"s"}`),(e.bypass.businessLogic!=="none"||e.bypass.suppressFlows)&&t.push("bypass"),t.push(new Date().toISOString().slice(0,10)),t.join(" · ")}function wie(e){const t=["create"];t.push(e.table||"untitled");const r=Object.keys(e.fieldValues||{}).length;return r&&t.push(`${r} field${r===1?"":"s"}`),e.prefer?.returnRepresentation&&t.push("return=rep"),(e.bypass.businessLogic!=="none"||e.bypass.suppressFlows)&&t.push("bypass"),t.push(new Date().toISOString().slice(0,10)),t.join(" · ")}function kie(e){const t=[e.method.toLowerCase()];if(t.push(e.table||"untitled"),e.recordId&&t.push(`#${e.recordId.replace(/[{}-]/g,"").slice(0,8)}`),e.method==="PUT"&&e.putColumn)t.push(e.putColumn);else{const r=Object.keys(e.fieldValues||{}).length;r&&t.push(`${r} field${r===1?"":"s"}`)}return e.concurrency.kind==="etag"&&t.push("etag"),(e.bypass.businessLogic!=="none"||e.bypass.suppressFlows)&&t.push("bypass"),t.push(new Date().toISOString().slice(0,10)),t.join(" · ")}function Sie(e){const t=["delete"];return t.push(e.table||"untitled"),e.recordId&&t.push(`#${e.recordId.replace(/[{}-]/g,"").slice(0,8)}`),e.scope.kind==="single-property"&&t.push(`clear ${e.scope.column||"?"}`),e.concurrency.kind!=="none"&&t.push(e.concurrency.kind==="etag"?"etag":"if-match"),(e.bypass.businessLogic!=="none"||e.bypass.suppressFlows)&&t.push("bypass"),t.push(new Date().toISOString().slice(0,10)),t.join(" · ")}function Bie(e){const t=[e.queryType==="userQuery"?"userQuery":"savedQuery"];return t.push(e.table||"untitled"),e.queryId&&t.push(`#${e.queryId.replace(/[{}-]/g,"").slice(0,8)}`),e.related?.navProperty&&t.push(`via ${e.related.sourceTable}/${e.related.navProperty}`),e.top&&e.top!==50&&t.push(`top:${e.top}`),t.push(new Date().toISOString().slice(0,10)),t.join(" · ")}function jie(e){const t=[];return t.push(e.table||"untitled"),e.recordId&&t.push(`#${e.recordId.replace(/[{}-]/g,"").slice(0,8)}`),e.select.length&&t.push(`${e.select.length} sel`),e.expand.length&&t.push(`${e.expand.length} exp`),t.push(new Date().toISOString().slice(0,10)),t.join(" · ")}function ib(e){let t=0;for(const r of e.rules)r.type==="rule"||r.type==="function"?t++:r.type==="group"?t+=ib(r):r.type==="lambda"&&(t+=ib(r.inner)||1);return t}function Pg(e){if(e&&typeof e=="object"&&"table"in e){const t=e.table;if(typeof t=="string"&&t)return t}return"—"}const Cie=["table","actionName","functionName","workflowId"];function WB(e,t){if(!e||typeof e!="object")return"";const r=e[t];return typeof r=="string"?r:""}function Nie(e,t){return Cie.every(r=>WB(e,r)===WB(t,r))}function zie(e,t){return e.snapshot===void 0||e.snapshot===null?null:{id:e.id,name:`Recent run (${e.method} · ${e.status})`,modeId:t,orgScope:Jt(),state:e.snapshot,savedAt:e.ts}}function Tie(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?`sv_${crypto.randomUUID()}`:`sv_${Date.now().toString(36)}_${Math.floor(Math.random()*1e6).toString(36)}`}const MT=m.createContext(Qu());function _ie({children:e}){const[t,r]=m.useState(Qu());return m.useEffect(()=>nT(o=>r(o)),[]),c.jsx(MT.Provider,{value:t,children:e})}function Qa(){return m.useContext(MT)}const qT="drs:run-history:v1",Rie=200,sb=8,Die=e=>t=>[{...e,id:e.id??`r-${Date.now()}`,ts:e.ts??Date.now()},...t].slice(0,sb),FT=1e6,Eie=64*1024,Pie=300,IT=(e=Jt())=>`${qT}:${e}`;let AT=!0;function OT(e){AT=e}function Mie(e){const t=e;return!!t&&typeof t=="object"&&typeof t.id=="string"&&typeof t.modeId=="string"&&typeof t.ts=="number"&&typeof t.url=="string"&&typeof t.method=="string"&&typeof t.status=="number"&&typeof t.ms=="number"}const ku=e=>{try{return JSON.stringify(e)?.length??0}catch{return 1/0}};function qie(e){if(e.snapshot===void 0)return e;const{state:t,cleared:r}=Une(e.snapshot),{snapshot:o,...n}=e,a=r?{...n,impersonationCleared:!0}:n;return ku(t)<=Eie?{...a,snapshot:t}:a}const Nm=e=>`${e.modeId}\0${e.id}`;function zm(e,t){const r=new Map(e.map(o=>[Nm(o),o]));for(const o of t)r.set(Nm(o),o);return[...r.values()].sort((o,n)=>n.ts-o.ts).slice(0,Rie)}function Fie(e,t=FT){const r=[...e];let o=ku(r);for(let n=r.length-1;n>=0&&o>t;n--){if(r[n].snapshot===void 0)continue;const{snapshot:a,...i}=r[n];o-=ku(r[n])-ku(i),r[n]=i}for(;r.length>0&&o>t;)o-=ku(r[r.length-1])+1,r.pop();return r}const Ul=new Map,Tm=new Set;let Ri=null;function Iie(e){try{const t=localStorage.getItem(IT(e));if(!t)return[];const r=JSON.parse(t);return Array.isArray(r)?r.filter(Mie).sort((o,n)=>n.ts-o.ts):[]}catch{return[]}}function LT(e=Jt()){let t=Ul.get(e);return t||(t=Iie(e),Ul.set(e,t)),t}function $T(){Ri&&clearTimeout(Ri),Ri=null;for(const e of Tm){let t=FT;for(let r=0;r<4;r++){const o=Fie(Ul.get(e)??[],t);try{localStorage.setItem(IT(e),JSON.stringify(o)),Ul.set(e,o);break}catch{t=Math.floor(t/2)}}}Tm.clear()}typeof window<"u"&&window.addEventListener("pagehide",$T);const lb=new Set,HT=e=>lb.forEach(t=>t(e));function VT(e){return lb.add(e),()=>lb.delete(e)}function Aie(e,t=Jt()){AT&&(Ul.set(t,zm(LT(t),e.map(qie))),Tm.add(t),Ri||(Ri=setTimeout($T,Pie)),HT("update"))}function UB(){Ri&&clearTimeout(Ri),Ri=null,Tm.clear(),Ul.clear();try{const e=[];for(let t=0;t<localStorage.length;t++){const r=localStorage.key(t);r?.startsWith(`${qT}:`)&&e.push(r)}e.forEach(t=>localStorage.removeItem(t))}catch{}HT("clear")}const _m=(e,t=Jt())=>LT(t).filter(r=>r.modeId===e);function Oie(e){const[{keepRunHistory:t}]=ha(),{environmentUrl:r}=Qa(),o=Jt(),[n,a]=m.useState(()=>t?_m(e,o):[]),i=m.useRef(n);i.current=n;const l=m.useRef(o);m.useEffect(()=>{OT(t)},[t]),m.useEffect(()=>{const f=l.current!==o;l.current=o,f&&(i.current=[]);const p=(h="update")=>{const v=t?_m(e,o):[];if(h==="clear"){i.current=v,a(v);return}const y=new Map(i.current.map(b=>[Nm(b),b])),x=zm(v.map(b=>y.get(Nm(b))??b),i.current);i.current=x,a(x)};return p(),VT(p)},[e,o,r,t]);const d=m.useCallback(f=>{const p=i.current.slice(0,sb),h=typeof f=="function"?f(p):f,v=zm(i.current,h);i.current=v,a(v),Aie(h,o)},[o]);return[n.slice(0,sb),d]}function Lie(e,t){const[{keepRunHistory:r}]=ha(),o=Jt(),[n,a]=m.useState(()=>_m(e,o));return m.useEffect(()=>{const i=()=>a(_m(e,o));return i(),VT(i)},[e,o]),r?zm(n,t):[...t]}const $ie=100,Mg=e=>e?.trim().toLowerCase()==="production";function Hie(e,t,r){return e?e.highImpact?!0:r&&Mg(t):!1}function Vie(e,t,r){return r&&Mg(t)?!0:(e.scope.count??0)>$ie}const Wie=e=>(e.confirmWord??e.table??e.operation).trim();function Uie(e){return e.kind==="text"?e.text:e.count===1?"1 record":`${e.count.toLocaleString()} records`}const Gie=(e,t)=>t.trim()!==""&&e.trim().toLowerCase()===t.trim().toLowerCase();let Gl=null,$p=[],Hp=[],Zie=1;function WT(e){const t=typeof e=="string"?{message:e}:e;return new Promise(r=>{const o={id:Zie++,options:t,resolve:r};Gl?Gl.ask(o):$p.push(o)})}function UT(){return m.useCallback(e=>WT(e),[])}function Zl(e,t={}){const r={message:e,options:t};Gl?Gl.notify(r):Hp.push(r)}const Kie={info:"Note",success:"Done",warning:"Warning",error:"Error"},GT=fo({message:{whiteSpace:"pre-wrap",overflowWrap:"anywhere"},destructive:{backgroundColor:T.colorStatusDangerBackground3,color:T.colorNeutralForegroundOnBrand,":hover":{backgroundColor:T.colorStatusDangerBackground3Hover,color:T.colorNeutralForegroundOnBrand},":hover:active":{backgroundColor:T.colorStatusDangerBackground3Pressed,color:T.colorNeutralForegroundOnBrand}}});function Xie(){const e=GT(),t=bt("drs-toaster"),{dispatchToast:r}=UJ(t),[o,n]=m.useState([]);m.useEffect(()=>{const l=({message:d,options:f})=>{const p=f.intent??"warning";r(c.jsxs(vz,{children:[c.jsx(bz,{action:c.jsx(fz,{children:c.jsx(pe,{appearance:"transparent",size:"small",icon:c.jsx(hy,{}),"aria-label":"Dismiss"})}),children:f.title??Kie[p]}),c.jsx(yz,{className:e.message,children:d})]}),{intent:p,timeout:f.timeout??1e4,pauseOnHover:!0,pauseOnWindowBlur:!0})};if(Gl={ask:d=>n(f=>[...f,d]),notify:l},$p.length>0){const d=$p;$p=[],n(f=>[...f,...d])}if(Hp.length>0){const d=Hp;Hp=[],d.forEach(l)}return()=>{Gl=null}},[r,e.message]);const a=o[0],i=l=>{a&&(a.resolve(l),n(d=>d.filter(f=>f.id!==a.id)))};return c.jsxs(c.Fragment,{children:[c.jsx(hz,{toasterId:t,position:"top-end",offset:{vertical:48},limit:4}),a&&c.jsx(Yie,{options:a.options,settle:i},a.id)]})}function Yie({options:e,settle:t}){const r=GT(),[o,n]=m.useState(""),a=e.typeToConfirm?.trim(),i=!!a&&!Gie(o,a);return c.jsx(Va,{open:!0,modalType:"alert",onOpenChange:(l,d)=>{d.open||t(!1)},children:c.jsx(Is,{style:{maxWidth:e.wide?600:480},children:c.jsxs(Fs,{children:[c.jsx(uc,{children:e.title??"Are you sure?"}),(e.message!=null||a)&&c.jsxs(dc,{className:r.message,children:[e.message,a&&c.jsx(jo,{label:c.jsxs(c.Fragment,{children:["Type ",c.jsx("strong",{children:a})," to confirm"]}),style:{marginTop:T.spacingVerticalM},children:c.jsx(Ht,{value:o,onChange:(l,d)=>n(d.value),"aria-label":`Type ${a} to confirm`,autoFocus:!0,onKeyDown:l=>{l.key==="Enter"&&!l.nativeEvent.isComposing&&!i&&t(!0)}})})]}),c.jsxs(cc,{children:[c.jsx(pe,{appearance:"secondary",onClick:()=>t(!1),children:e.cancelLabel??"Cancel"}),c.jsx(pe,{appearance:"primary",className:e.destructive?r.destructive:void 0,disabled:i,onClick:()=>t(!0),children:e.confirmLabel??(e.destructive?"Delete":"OK")})]})]})})})}const Jie=fo({drawer:{width:"360px"},section:{marginBottom:T.spacingVerticalL},sectionTitle:{fontSize:T.fontSizeBase400,fontWeight:T.fontWeightSemibold,marginBottom:T.spacingVerticalM,display:"flex",alignItems:"center",columnGap:T.spacingHorizontalS},settingItem:{display:"flex",flexDirection:"column",rowGap:T.spacingVerticalXS,marginBottom:T.spacingVerticalM},settingRow:{display:"flex",justifyContent:"space-between",alignItems:"center"},settingLabel:{fontWeight:T.fontWeightSemibold,display:"flex",alignItems:"center",columnGap:T.spacingHorizontalXS},settingDescription:{fontSize:T.fontSizeBase200,color:T.colorNeutralForeground3},dropdown:{minWidth:"160px"}});function Qie({open:e,settings:t,onClose:r,onSettingsChange:o}){const n=Jie(),a=m.useCallback(x=>{o({...t,useLogicalNames:x})},[t,o]),i=m.useCallback(x=>{o({...t,productionSafeMode:x})},[t,o]),l=m.useCallback(x=>{OT(x),x||UB(),o({...t,keepRunHistory:x})},[t,o]),d=UT(),f=m.useCallback(async()=>{await d({title:"Clear request history?",message:"Every kept run is removed, for every environment. Saved requests are not affected.",confirmLabel:"Clear history",destructive:!0})&&UB()},[d]),p=m.useCallback(x=>{o({...t,valueDisplayMode:x})},[t,o]),[h,v]=m.useState(!1),y=m.useCallback(async()=>{v(!0);try{await lr.refreshAll()}catch(x){console.warn("[SettingsDrawer] refresh metadata failed",x)}finally{v(!1)}},[]);return c.jsxs($z,{open:e,onOpenChange:(x,b)=>{b.open||r()},position:"end",size:"small",className:n.drawer,children:[c.jsx(Vz,{children:c.jsxs(Wz,{action:c.jsx(pe,{appearance:"subtle","aria-label":"Close",icon:c.jsx(iO,{}),onClick:r}),children:[c.jsx(gy,{style:{marginRight:T.spacingHorizontalS}}),"Settings"]})}),c.jsxs(Hz,{children:[c.jsxs("div",{className:n.section,children:[c.jsx(ar,{className:n.sectionTitle,children:"Entity scope"}),c.jsx(ar,{className:n.settingDescription,block:!0,children:"Set the entity scope from the scope button."})]}),c.jsx(yu,{}),c.jsxs("div",{className:n.section,style:{marginTop:T.spacingVerticalL},children:[c.jsx(ar,{className:n.sectionTitle,children:"Display"}),c.jsx("div",{className:n.settingItem,children:c.jsxs("div",{className:n.settingRow,children:[c.jsxs("div",{children:[c.jsx(ar,{className:n.settingLabel,children:"Use Logical Names"}),c.jsx(ar,{className:n.settingDescription,block:!0,children:"Show attribute logical names in column headers instead of display names"})]}),c.jsx(co,{"aria-label":"Use Logical Names",checked:t.useLogicalNames,onChange:(x,b)=>a(b.checked)})]})}),c.jsxs("div",{className:n.settingItem,children:[c.jsx(ar,{className:n.settingLabel,children:"Value Display Mode"}),c.jsx(ar,{className:n.settingDescription,block:!0,children:"How to display cell values in the results grid"}),c.jsxs(qy,{"aria-label":"Value Display Mode",className:n.dropdown,value:t.valueDisplayMode==="formatted"?"Formatted":t.valueDisplayMode==="raw"?"Raw":"Both (2 columns per attribute)",selectedOptions:[t.valueDisplayMode],onOptionSelect:(x,b)=>p(b.optionValue),children:[c.jsx(at,{value:"formatted",children:"Formatted"}),c.jsx(at,{value:"raw",children:"Raw"}),c.jsx(at,{value:"both",children:"Both (2 columns per attribute)"})]})]})]}),c.jsx(yu,{}),c.jsxs("div",{className:n.section,style:{marginTop:T.spacingVerticalL},children:[c.jsx(ar,{className:n.sectionTitle,children:"Safety"}),c.jsx("div",{className:n.settingItem,children:c.jsxs("div",{className:n.settingRow,children:[c.jsxs("div",{children:[c.jsx(ar,{className:n.settingLabel,children:"Production safe mode"}),c.jsx(ar,{className:n.settingDescription,block:!0,children:"On a Production connection, every write asks first, and you type the table (or operation) name to confirm. Merge, actions, workflows, bulk and batch writes always ask, on any connection."})]}),c.jsx(co,{"aria-label":"Production safe mode",checked:t.productionSafeMode,onChange:(x,b)=>i(b.checked)})]})})]}),c.jsx(yu,{}),c.jsxs("div",{className:n.section,style:{marginTop:T.spacingVerticalL},children:[c.jsx(ar,{className:n.sectionTitle,children:"Request history"}),c.jsx("div",{className:n.settingItem,children:c.jsxs("div",{className:n.settingRow,children:[c.jsxs("div",{children:[c.jsx(ar,{className:n.settingLabel,children:"Keep request history"}),c.jsx(ar,{className:n.settingDescription,block:!0,children:"Recent runs survive restarts: the last 200 runs per environment, on this computer. Response bodies, credentials and impersonation headers are never kept. Turning this off clears the history."})]}),c.jsx(co,{"aria-label":"Keep request history",checked:t.keepRunHistory,onChange:(x,b)=>l(b.checked)})]})}),c.jsx(pe,{appearance:"outline",size:"small",icon:c.jsx(mn,{}),disabled:!t.keepRunHistory,onClick:f,children:"Clear history"})]}),c.jsx(yu,{}),c.jsxs("div",{className:n.section,style:{marginTop:T.spacingVerticalL},children:[c.jsx(ar,{className:n.sectionTitle,children:"Metadata"}),c.jsxs("div",{className:n.settingItem,children:[c.jsx(ar,{className:n.settingLabel,children:"Refresh metadata"}),c.jsx(ar,{className:n.settingDescription,block:!0,style:{marginBottom:T.spacingVerticalS},children:"Re-fetch entity, attribute & relationship definitions from the environment. Use this after publishing schema changes — metadata is otherwise cached for up to an hour."}),c.jsx(pe,{appearance:"outline",size:"small",icon:h?c.jsx(jr,{size:"tiny"}):c.jsx(cg,{}),disabled:h,onClick:y,style:{alignSelf:"flex-start"},children:h?"Refreshing…":"Refresh metadata"})]})]})]})]})}const GB=[];function ese(e=!0){const[t,r]=m.useState({org:"",data:GB}),[o,n]=m.useState(!1),[a,i]=m.useState(null),[l,d]=m.useState([]),[f,p]=m.useState([]),[h,v]=m.useState([]),[y,x]=m.useState([]),[b,k]=m.useState(!1),[S,N]=m.useState(null),B=pc(),C=t.org===B?t.data:GB,[z,R]=m.useState(0);m.useEffect(()=>ex(()=>R(I=>I+1)),[]),m.useEffect(()=>{if(!e)return;let I=!0;async function M(){const O=Co(),H=O.getPublishersWithSolutions();if(H){r({org:B,data:H}),n(!1),i(null);return}try{n(!0),i(null);const $=await yne();I&&(r({org:B,data:$}),O.setPublishersWithSolutions($))}catch($){I&&i($ instanceof Error?$.message:String($))}finally{I&&n(!1)}}return M(),()=>{I=!1,n(!1)}},[B,e,z]),m.useEffect(()=>{if(!l.length){v([]),p([]);return}const I=new Set(l),M=C.filter(O=>I.has(O.publisher.publisherid)).flatMap(O=>O.solutions);v(M),p(O=>{if(O.length===0)return O;const H=new Set(M.map(Z=>Z.solutionid)),$=O.filter(Z=>H.has(Z));return $.length===O.length?O:$})},[l,C]),m.useEffect(()=>{if(!f.length){x([]),N(null);return}let I=!0;async function M(){const O=Co(),H=O.getFilteredEntities(f);if(H){x(H);return}try{k(!0),N(null);const $=await Xy(f),Z=Array.from(new Set($.map(A=>A.msdyn_name).filter(Boolean))),q=iT(Z);I&&(x(q),O.setFilteredEntities(f,q))}catch($){I&&N($ instanceof Error?$.message:String($))}finally{I&&k(!1)}}return M(),()=>{I=!1}},[f,B]);const E=m.useCallback(I=>{d(I)},[]),D=m.useCallback(I=>{p(I)},[]);return{publishers:C.map(I=>I.publisher),publishersWithSolutions:C,publishersLoading:o,publishersError:a,selectedPublisherIds:l,updateSelectedPublishers:E,solutions:h,selectedSolutionIds:f,updateSelectedSolutions:D,entities:y,entitiesLoading:b,entitiesError:S}}const ZB=[];function tse(e=!0){const[t,r]=m.useState({org:"",data:ZB}),[o,n]=m.useState(!1),[a,i]=m.useState(null),[l,d]=m.useState([]),[f,p]=m.useState([]),[h,v]=m.useState(!1),[y,x]=m.useState(null),b=pc(),k=t.org===b?t.data:ZB,[S,N]=m.useState(0);m.useEffect(()=>ex(()=>N(C=>C+1)),[]),m.useEffect(()=>{if(!e)return;let C=!0;async function z(){const R=Co(),E=R.getSolutions([]);if(E){r({org:b,data:E}),n(!1),i(null);return}try{n(!0),i(null);const D=await xne();C&&(r({org:b,data:D}),R.setSolutions([],D))}catch(D){C&&i(D instanceof Error?D.message:String(D))}finally{C&&n(!1)}}return z(),()=>{C=!1,n(!1)}},[b,e,S]),m.useEffect(()=>{if(!l.length){p([]),x(null);return}let C=!0;async function z(){const R=Co(),E=R.getFilteredEntities(l);if(E){p(E);return}try{v(!0),x(null);const D=await Xy(l),I=Array.from(new Set(D.map(O=>O.msdyn_name).filter(Boolean))),M=iT(I);C&&(p(M),R.setFilteredEntities(l,M))}catch(D){C&&x(D instanceof Error?D.message:String(D))}finally{C&&v(!1)}}return z(),()=>{C=!1}},[l,b]);const B=m.useCallback(C=>{d(C)},[]);return{solutions:k,solutionsLoading:o,solutionsError:a,selectedSolutionIds:l,updateSelectedSolutions:B,entities:f,entitiesLoading:h,entitiesError:y}}const dx=m.createContext(null);function rse({children:e}){const t=m.useRef(null),r=m.useCallback(()=>t.current?.(),[]),o=m.useCallback(n=>{t.current=n},[]);return c.jsx(dx.Provider,{value:{open:r,register:o},children:e})}function ose(e){const t=m.useContext(dx);m.useEffect(()=>{t?.register(e)},[t,e])}function nse(){return m.useContext(dx)?.open??(()=>{})}const ase="Choose where entities come from",ZT="Pick a publisher and one or more solutions to list their entities, or switch to All entities to see everything.";function KT(e){const t=e.version?.split(".").slice(0,3).join(".");return t?`${e.friendlyname} v${t}`:e.friendlyname}function cb(e){return[e.uniquename,e.version&&`v${e.version}`].filter(Boolean).join(" · ")}const KB=(e,t)=>t>1?`${e} +${t-1}`:e;function ise(e,t,r,o=r.length){if(e==="all")return{configured:!0,label:"All entities",ariaLabel:"Entity scope: All entities",detail:"All entities"};if(o===0)return{configured:!1,label:"Choose scope",ariaLabel:"Choose scope",detail:""};if(r.length===0){const d=`${o} solution${o===1?"":"s"}`;return{configured:!0,label:d,ariaLabel:`Entity scope: ${d}`,detail:""}}const n=Math.max(o,r.length),a=KB(KT(r[0]),n),i=e==="publisher-solution"&&t.length>0?`${KB(t[0].friendlyname,t.length)} › ${a}`:a,l=[e==="publisher-solution"&&t.length>0&&`Publishers: ${t.map(d=>d.friendlyname).join(", ")}`,`Solutions: ${r.map(d=>[d.friendlyname,cb(d)].filter(Boolean).join(" — ")).join("; ")}`].filter(Boolean).join(`
30
+ `);return{configured:!0,label:i,ariaLabel:`Entity scope: ${i}`,detail:l}}function sse(e,t){const r=t.trim().toLowerCase();return r?[e.friendlyname,e.uniquename,e.version].some(o=>(o??"").toLowerCase().includes(r)):!0}const XT=fo({chip:{flex:"0 1 auto",minWidth:0,maxWidth:"420px",justifyContent:"flex-start"},chipLabel:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",textAlign:"start"},chevron:{flexShrink:0,marginLeft:T.spacingHorizontalXS},tooltipDetail:{whiteSpace:"pre-line"},surface:{width:"380px",maxWidth:"calc(100vw - 32px)",display:"flex",flexDirection:"column",gap:T.spacingVerticalM},muted:{color:T.colorNeutralForeground3},locked:{display:"flex",alignItems:"center",gap:T.spacingHorizontalXS,color:T.colorNeutralForeground3},empty:{padding:`${T.spacingVerticalS} ${T.spacingHorizontalM}`,color:T.colorNeutralForeground3},option:{display:"flex",flexDirection:"column",minWidth:0},optionDetail:{color:T.colorNeutralForeground3,wordBreak:"break-all"},tag:{maxWidth:"100%"},footer:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:T.spacingHorizontalM}});function lse({accessSummary:e}){const t=XT(),[r,o]=ha(),n=iae(),a=pc(),i=r.entityScopeMode,{selectedPublisherIds:l,selectedSolutionIds:d}=r,{publishersWithSolutions:f,publishersLoading:p,publishersError:h}=ese(i==="publisher-solution"),{solutions:v,solutionsLoading:y,solutionsError:x}=tse(i==="solution-only"),b=m.useMemo(()=>f.map(ee=>ee.publisher),[f]),k=m.useMemo(()=>i==="publisher-solution"?f.filter(ee=>l.includes(ee.publisher.publisherid)).flatMap(ee=>ee.solutions):i==="solution-only"?v:[],[i,f,l,v]),S=m.useMemo(()=>b.filter(ee=>l.includes(ee.publisherid)),[b,l]),N=m.useMemo(()=>k.filter(ee=>d.includes(ee.solutionid)),[k,d]),B=ise(i,S,N,d.length),[C,z]=m.useState(!1),[R,E]=m.useState(null);ose(m.useCallback(()=>z(!0),[]));const D=m.useRef(null),[I,M]=m.useState(!1),[O,H]=m.useState(!1);m.useEffect(()=>{const ee=D.current;if(!ee||typeof ResizeObserver>"u")return;const W=()=>M(ee.scrollWidth>ee.clientWidth);W();const L=new ResizeObserver(W);return L.observe(ee),()=>L.disconnect()},[B.label]);const $=Array.isArray(r.scopeTipDismissed)?r.scopeTipDismissed:[],Z=n&&!!a&&!B.configured&&!$.includes(a),q=()=>{!a||$.includes(a)||o({...r,scopeTipDismissed:[...$,a]})},A=!e||e.fullFilterMode,X=!e||e.fullFilterMode||e.solutionsOnlyMode,V=ee=>{const W=new Set(f.filter(L=>!ee.includes(L.publisher.publisherid)).filter(L=>l.includes(L.publisher.publisherid)).flatMap(L=>L.solutions.map(te=>te.solutionid)));o({...r,selectedPublisherIds:ee,selectedSolutionIds:d.filter(L=>!W.has(L))})},oe=ee=>{let W=l;if(ee==="publisher-solution"&&i==="solution-only"){const L=v.filter(te=>d.includes(te.solutionid)&&te._publisherid_value).map(te=>te._publisherid_value);W=[...new Set([...l,...L])]}o({...r,entityScopeMode:ee,selectedPublisherIds:W})};return c.jsxs(c.Fragment,{children:[c.jsxs(Gi,{open:C,onOpenChange:(ee,W)=>z(W.open),positioning:"below-start",trapFocus:!0,withArrow:!0,children:[c.jsx(Ya,{disableButtonEnhancement:!0,children:c.jsx(st,{content:c.jsx("span",{className:t.tooltipDetail,children:B.detail}),relationship:"description",visible:I&&O&&!C,onVisibleChange:(ee,W)=>H(W.visible),children:c.jsxs(pe,{ref:E,className:t.chip,appearance:B.configured||!n?"outline":"primary",size:"small",icon:c.jsx(Ns,{}),"aria-label":B.ariaLabel,"data-testid":"scope-chip",children:[c.jsx("span",{ref:D,className:t.chipLabel,children:B.label}),c.jsx(ug,{className:t.chevron})]})})}),c.jsxs(Ui,{className:t.surface,"aria-label":"Entity scope",children:[c.jsx(ar,{weight:"semibold",size:400,children:"Entity scope"}),c.jsx(cse,{mode:i,onModeChange:oe,canUsePublisherSolution:A,canUseSolutionOnly:X,publishers:b,selectedPublishers:S,selectedPublisherIds:l,publishersLoading:p,publishersError:h,onPublishersChange:V,solutions:k,selectedSolutions:N,selectedSolutionIds:d,solutionsLoading:i==="solution-only"?y:p,solutionsError:i==="solution-only"?x:null,onSolutionsChange:ee=>o({...r,selectedSolutionIds:ee}),advancedFindOnly:r.advancedFindOnly,onAdvancedFindOnlyChange:ee=>o({...r,advancedFindOnly:ee})}),c.jsxs("div",{className:t.footer,children:[c.jsx(Pe,{className:t.muted,children:"Changes apply right away."}),c.jsx(pe,{appearance:"primary",onClick:()=>{z(!1),requestAnimationFrame(()=>R?.focus())},children:"Done"})]})]})]}),R&&c.jsx(eT,{open:Z&&!C,onOpenChange:(ee,W)=>{W.open||q()},positioning:{target:R,position:"below",align:"start"},children:c.jsxs(Jz,{style:{maxWidth:320},children:[c.jsx(Xz,{children:"Tip"}),c.jsxs(Yz,{children:[c.jsx(Qz,{children:ase}),c.jsx("div",{children:ZT})]}),c.jsx(tT,{primary:{children:"Choose scope",onClick:()=>{q(),z(!0)}},secondary:{children:"Got it",onClick:q}})]})})]})}function XB({hint:e,children:t}){return e?c.jsx(st,{content:e,relationship:"description",positioning:"before",children:t}):t}function cse({mode:e,onModeChange:t,canUsePublisherSolution:r,canUseSolutionOnly:o,publishers:n,selectedPublishers:a,selectedPublisherIds:i,publishersLoading:l,publishersError:d,onPublishersChange:f,solutions:p,selectedSolutions:h,selectedSolutionIds:v,solutionsLoading:y,solutionsError:x,onSolutionsChange:b,advancedFindOnly:k,onAdvancedFindOnlyChange:S}){const N=XT(),[B,C]=m.useState(""),[z,R]=m.useState(""),E=m.useMemo(()=>{const H=B.trim().toLowerCase();return n.filter($=>!i.includes($.publisherid)&&(!H||[$.friendlyname,$.uniquename,$.customizationprefix].some(Z=>(Z??"").toLowerCase().includes(H))))},[n,i,B]),{unmanaged:D,managed:I}=m.useMemo(()=>{const H=p.filter($=>!v.includes($.solutionid)&&sse($,z));return{unmanaged:H.filter($=>!$.ismanaged),managed:H.filter($=>$.ismanaged)}},[p,v,z]),M=e==="publisher-solution"&&i.length===0,O=H=>c.jsx(Wl,{value:H.solutionid,text:H.friendlyname,children:c.jsxs("div",{className:N.option,children:[c.jsx("span",{children:H.friendlyname}),c.jsx(Pe,{className:N.optionDetail,children:cb(H)})]})},H.solutionid);return c.jsxs(c.Fragment,{children:[c.jsx(jo,{label:"Show entities from",children:c.jsxs(wg,{value:e,onChange:(H,$)=>t($.value),children:[c.jsx(XB,{hint:r?"":"Requires prvReadPublisher and prvReadSolution",children:c.jsx(Fa,{value:"publisher-solution",label:"Publisher → solution (default)",disabled:!r})}),c.jsx(XB,{hint:o?"":"Requires prvReadSolution",children:c.jsx(Fa,{value:"solution-only",label:"Solution only",disabled:!o})}),c.jsx(Fa,{value:"all",label:"All entities"})]})}),e!=="all"&&c.jsxs(jo,{label:"Publishers",validationState:d&&e==="publisher-solution"?"error":"none",validationMessage:e==="publisher-solution"?d:void 0,children:[c.jsxs(vm,{selectedOptions:i,onOptionSelect:(H,$)=>{f($.selectedOptions),C("")},disabled:e!=="publisher-solution"||l,children:[c.jsxs(xm,{children:[c.jsx(wm,{"aria-label":"Selected publishers",children:e==="publisher-solution"&&a.map(H=>c.jsx(hm,{value:H.publisherid,shape:"rounded",size:"small",dismissible:!0,dismissIcon:{"aria-label":"Remove"},children:H.friendlyname},H.publisherid))}),c.jsx(bm,{"aria-label":"Publishers",placeholder:r?l?"Loading…":i.length?"":"Search publishers…":"No access to publishers",value:B,onChange:H=>C(H.target.value)})]}),c.jsx(ym,{children:E.length===0?c.jsx("div",{className:N.empty,children:B.trim()?`No publishers match "${B.trim()}"`:"No publishers found"}):E.map(H=>c.jsx(Wl,{value:H.publisherid,text:H.friendlyname,children:c.jsxs("div",{className:N.option,children:[c.jsx("span",{children:H.friendlyname}),c.jsx(Pe,{className:N.optionDetail,children:H.customizationprefix?`Prefix ${H.customizationprefix}_`:H.uniquename})]})},H.publisherid))})]}),e==="solution-only"&&r&&c.jsxs(Pe,{className:N.locked,children:[c.jsx(aA,{})," Not used in Solution only mode"]})]}),e!=="all"&&c.jsx(jo,{label:"Solutions",validationState:x?"error":"none",validationMessage:x??void 0,children:c.jsxs(vm,{selectedOptions:v,onOptionSelect:(H,$)=>{b($.selectedOptions),R("")},disabled:M||y,children:[c.jsxs(xm,{children:[c.jsx(wm,{"aria-label":"Selected solutions",children:h.map(H=>c.jsx(hm,{value:H.solutionid,shape:"rounded",size:"small",dismissible:!0,dismissIcon:{"aria-label":"Remove"},title:cb(H),className:N.tag,primaryText:{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},children:KT(H)},H.solutionid))}),c.jsx(bm,{"aria-label":"Solutions",placeholder:M?"Select a publisher first":y?"Loading…":v.length?"":"Search name, unique name or version…",value:z,onChange:H=>R(H.target.value)})]}),c.jsx(ym,{children:D.length===0&&I.length===0?c.jsx("div",{className:N.empty,children:z.trim()?`No solutions match "${z.trim()}"`:"No solutions found"}):c.jsxs(c.Fragment,{children:[D.length>0&&c.jsx(Z1,{label:"Unmanaged",children:D.map(O)}),I.length>0&&c.jsx(Z1,{label:"Managed",children:I.map(O)})]})})]})}),c.jsxs("div",{children:[c.jsx(co,{checked:k,onChange:(H,$)=>S($.checked),label:"Advanced Find only"}),c.jsx(Pe,{className:N.muted,block:!0,children:k?"The entity, column and relationship pickers offer only what Advanced Find shows. Requests aren't restricted: a column already in a request keeps working, and Image and File columns are always offered.":"The pickers offer every entity, column and relationship."})]})]})}function use(){const[e,t]=m.useState(null),[r,o]=m.useState(!0),[n,a]=m.useState(null),{embedded:i}=Qa(),l=pc();return m.useEffect(()=>{if(t(null),i&&!l)return;let d=!0;async function f(){try{o(!0),a(null);const p=await kne();d&&(t(p),p&&!p.noAccessMode&&sT().catch(h=>{console.warn("[useAccessMode] failed to preload entity metadata:",h)}))}catch(p){d&&a(p instanceof Error?p.message:String(p))}finally{d&&o(!1)}}return f(),()=>{d=!1}},[i,l]),{accessSummary:e,loading:r,error:n,fullFilterMode:e?.fullFilterMode??!1,solutionsOnlyMode:e?.solutionsOnlyMode??!1,publishersOnlyMode:e?.publishersOnlyMode??!1,metadataOnlyMode:e?.metadataOnlyMode??!1,noAccessMode:e?.noAccessMode??!1}}const YT=m.createContext(null),JT=m.createContext(null);function dse({value:e,setValue:t,children:r}){return c.jsx(JT.Provider,{value:t,children:c.jsx(YT.Provider,{value:e,children:r})})}function fse(e){const t=m.useContext(JT);m.useEffect(()=>{if(e&&e.modeId!=="batch"&&e.modeId!=="execute-multiple"&&(Su={modeId:e.modeId,state:e.state,orgScope:Jt()}),!!t)return t(e),()=>t(null)},[t,e])}let Su=null;function cye(){return!Su||Su.orgScope!==Jt()?null:{modeId:Su.modeId,state:Su.state}}function pse(){return m.useContext(YT)}function ub(e){const t=m.useRef(e);return m.useLayoutEffect(()=>{t.current=e}),m.useCallback((...r)=>t.current(...r),[])}let Di=null;const db=new Map;function mse(e){m.useEffect(()=>(Di=e,()=>{Di===e&&(Di=null)}),[e])}function uye(){return Di!==null}function dye(e,t){Di&&(db.set(e,t),Di(e))}function fye(e){const t=db.get(e);return db.delete(e),t}const fb=new Map,pb=new Set;function pye(e){return Di?(fb.set(e.modeId,e),pb.forEach(t=>t()),Di(e.modeId),!0):!1}function gse(e,t){const r=ub(t);m.useEffect(()=>{const o=()=>{const n=fb.get(e);n&&(fb.delete(e),r(n))};return o(),pb.add(o),()=>{pb.delete(o)}},[e,r])}const QT={entries:[],preserved:[],unreadable:null,backupKey:null};function fx(){const e=DT(),t=e.unreadable!==null?eie(Jt(),e.unreadable):null;return{...e,backupKey:t}}let Tl=QT;const mb=new Set;function e7(){for(const e of mb)e()}function Rm(e){Tl=e,e7()}function hse(e){return mb.add(e),()=>{mb.delete(e)}}function YB(){return Tl}function vse(){typeof window>"u"||(rie(),Rm(fx()))}vse();const qv="The saved requests for this connection couldn't be read, so nothing was saved over them. Open Saved requests to keep a copy, or start a new library.";typeof window<"u"&&window.addEventListener("storage",e=>{e.key&&e.key.startsWith(Md)&&e.key===mc()&&(Tl=fx(),e7())});function bse(){typeof window>"u"||Rm(fx())}function qg(){const e=m.useSyncExternalStore(hse,YB,YB),t=e.entries,[r,o]=m.useState(null),n=typeof window<"u"?mc():"";m.useEffect(()=>{n&&bse()},[n]);const a=m.useCallback(k=>{if(Tl.unreadable!==null)return o(qv),{ok:!1,error:qv};try{return $B(k,Tl.preserved),Rm({...Tl,entries:k}),o(null),{ok:!0}}catch(S){const N=S instanceof Error?S.message:String(S);return o(N),{ok:!1,error:N}}},[]),i=m.useCallback((k,S)=>{const N={...k,state:rd(k.state),schemaVersion:Eg},B=t.findIndex(z=>z.id===N.id);let C;if(B>=0)C=[...t],C[B]=N;else{const z=S?.replaceId?t.filter(R=>R.id!==S.replaceId):t;if(z.length>=Na)return{ok:!1,full:!0,error:`The saved-request library is full (${Na} for this connection).`};C=[N,...z]}return a(C)},[t,a]),l=m.useMemo(()=>({max:Na,count:t.length,full:t.length>=Na,oldest:t.reduce((k,S)=>!k||S.savedAt<k.savedAt?S:k,void 0)}),[t]),d=m.useCallback((k,S)=>{const N=t.map(B=>B.id===k?{...B,name:S}:B);a(N)},[t,a]),f=m.useCallback(k=>{a(t.filter(S=>S.id!==k))},[t,a]),p=m.useCallback(()=>{a([])},[a]),h=m.useCallback(k=>{const S=Jt(),N=[...t],B={added:0,updated:0,unchanged:0,skippedFull:0};for(const C of k){const z={...C,state:rd(C.state),orgScope:S,schemaVersion:C.schemaVersion??1},R=N.findIndex(E=>E.id===z.id);if(R>=0){const E=N[R];!(E.name===z.name&&Eu(E.state)===Eu(z.state))&&z.savedAt>E.savedAt?(N[R]=z,B.updated++):B.unchanged++}else N.length>=Na?B.skippedFull++:(N.push(z),B.added++)}return B.added===0&&B.updated===0?{ok:!0,...B}:(N.sort((C,z)=>z.savedAt-C.savedAt),{...a(N),...B})},[t,a]),v=m.useCallback(()=>{try{return $B([]),Rm({...QT}),o(null),{ok:!0}}catch(k){const S=k instanceof Error?k.message:String(k);return o(S),{ok:!1,error:S}}},[]),y=m.useMemo(()=>({unreadable:e.unreadable!==null,unreadableText:e.unreadable,backedUp:e.backupKey!==null,hidden:e.preserved.length}),[e]),x=m.useCallback(k=>t.find(S=>S.id===k),[t]),b=m.useCallback(k=>t.find(S=>S.name.toLowerCase()===k.toLowerCase()),[t]);return{saved:t,save:i,capacity:l,rename:d,remove:f,clearAll:p,importEntries:h,findById:x,findByName:b,health:y,startNewLibrary:v,error:r===qv&&e.unreadable===null?null:r}}const yse=fo({list:{display:"flex",flexDirection:"column",gap:"2px",maxHeight:"360px",overflowY:"auto",marginTop:"8px",borderTop:`1px solid ${T.colorNeutralStroke2}`,paddingTop:"4px"},row:{display:"grid",gridTemplateColumns:"auto auto 1fr",gap:"8px",alignItems:"center",padding:"2px 4px",borderRadius:T.borderRadiusMedium,":hover":{backgroundColor:T.colorNeutralBackground1Hover}},name:{fontSize:T.fontSizeBase300,fontWeight:T.fontWeightSemibold,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},meta:{fontSize:T.fontSizeBase100,color:T.colorNeutralForeground3,fontFamily:T.fontFamilyMonospace},empty:{padding:"32px 16px",textAlign:"center",color:T.colorNeutralForeground3,fontSize:T.fontSizeBase200}});function xse({open:e,onOpenChange:t}){const r=yse(),{saved:o,importEntries:n}=qg(),a=Jt(),[i,l]=m.useState([]),[d,f]=m.useState(""),[p,h]=m.useState(new Set),[v,y]=m.useState(null),x=C=>{const z=nie();l(z),f(C&&z.some(R=>R.scope===C)?C:z[0]?.scope??""),h(new Set)};m.useEffect(()=>{e&&(x(),y(null))},[e]);const b=i.find(C=>C.scope===d),k=m.useMemo(()=>[...b?.entries??[]].sort((C,z)=>z.savedAt-C.savedAt),[b]),S=k.length>0&&k.every(C=>p.has(C.id)),N=(C,z)=>h(R=>{const E=new Set(R);return z?E.add(C):E.delete(C),E}),B=C=>{if(!b)return;const z=[],R=k.filter(q=>{if(!p.has(q.id))return!1;const A=PT(q);return A&&z.push(`"${q.name}": ${A}`),!A});if(!R.length){z.length&&y({intent:"error",title:"Couldn't copy",text:z.join(" ")});return}const E=new Set(o.map(q=>q.id)),D=R.filter(q=>!E.has(q.id)).length;if(o.length+D>Na){y({intent:"error",title:"Not enough room",text:`This connection has ${Na-o.length} free slot(s) of ${Na} and ${D} of the picked request(s) are new here. Pick fewer or delete some saved requests first.`});return}const I=new Map(o.map(q=>[q.name.toLowerCase(),q.id]));let M=0;const O=R.map(q=>{const A=I.get(q.name.toLowerCase());let X=q.name;return A&&A!==q.id&&(X=wse(q.name,V=>I.has(V.toLowerCase())),M++),I.set(X.toLowerCase(),q.id),X===q.name?q:{...q,name:X}}),H=n(O);if(!H.ok){y({intent:"error",title:"Couldn't copy",text:H.error??""});return}const $=[`${H.added} added, ${H.updated} updated, ${H.unchanged} already up to date.`];M&&$.push(`${M} renamed with a (n) suffix because the name was in use.`),z.length&&$.push(`Not ${C?"moved":"copied"}: ${z.join(" ")}`);let Z=M||z.length?"warning":"success";if(C){try{aie(b.scope,new Set(R.map(q=>q.id))),$.push(`Removed from ${b.scope}.`)}catch(q){Z="warning",$.push(`Couldn't remove them from ${b.scope}: ${q instanceof Error?q.message:String(q)}`)}x(b.scope)}else h(new Set);y({intent:Z,title:C?"Moved":"Copied",text:$.join(" ")})};return c.jsx(Va,{open:e,onOpenChange:(C,z)=>t(z.open),children:c.jsx(Is,{style:{maxWidth:620},children:c.jsxs(Fs,{children:[c.jsx(uc,{action:c.jsx(pe,{appearance:"subtle",icon:c.jsx(Ii,{}),"aria-label":"close",onClick:()=>t(!1)}),children:"Saved requests on other connections"}),c.jsxs(dc,{children:[c.jsxs(Pe,{style:{display:"block",color:T.colorNeutralForeground2},children:["Each Dataverse connection has its own saved requests. Copy or move requests saved under another connection into"," ",c.jsx("code",{style:{fontFamily:T.fontFamilyMonospace},children:a}),". They are copied as-is: the tables, columns and record ids they use must exist here."]}),i.length===0?c.jsxs("div",{className:r.empty,children:[c.jsx(yC,{style:{width:32,height:32,opacity:.4}}),c.jsx("div",{style:{marginTop:8},children:"No other connection has saved requests in this browser profile."})]}):c.jsxs(c.Fragment,{children:[c.jsx(jo,{label:"Connection",style:{marginTop:12},children:c.jsx(qy,{value:b?`${b.scope} (${b.entries.length})`:"",selectedOptions:d?[d]:[],onOptionSelect:(C,z)=>{f(z.optionValue??""),h(new Set),y(null)},children:i.map(C=>c.jsx(at,{value:C.scope,text:`${C.scope} (${C.entries.length})`,children:`${C.scope} (${C.entries.length})`},C.scope))})}),c.jsxs("div",{className:r.list,children:[c.jsx(Ra,{label:`${p.size} of ${k.length} selected`,checked:S?!0:p.size>0?"mixed":!1,onChange:(C,z)=>h(z.checked===!0?new Set(k.map(R=>R.id)):new Set)}),k.map(C=>c.jsxs("div",{className:r.row,children:[c.jsx(Ra,{checked:p.has(C.id),onChange:(z,R)=>N(C.id,R.checked===!0),"aria-label":`Select ${C.name}`}),c.jsx(ct,{appearance:"tint",color:"informative",size:"small",style:{fontFamily:T.fontFamilyMonospace,minWidth:80,justifyContent:"center"},children:C.modeId.replace(/^(retrieve|execute|manage)-/,"")}),c.jsxs("div",{style:{minWidth:0},children:[c.jsx("div",{className:r.name,children:C.name}),c.jsxs("div",{className:r.meta,children:[Pg(C.state)," · saved"," ",new Date(C.savedAt).toISOString().slice(0,10)]})]})]},C.id))]})]}),v&&c.jsx(Ue,{layout:"multiline",intent:v.intent,style:{marginTop:12},children:c.jsxs(Ge,{children:[c.jsx(Lt,{children:v.title}),v.text]})})]}),c.jsxs(cc,{children:[c.jsx(pe,{appearance:"subtle",onClick:()=>t(!1),children:"Close"}),c.jsx(pe,{disabled:p.size===0,onClick:()=>B(!0),children:"Move here"}),c.jsx(pe,{appearance:"primary",disabled:p.size===0,onClick:()=>B(!1),children:"Copy here"})]})]})})})}function wse(e,t){const r=e.replace(/\s*\(\d+\)$/,"");for(let o=2;;o++){const n=`${r} (${o})`;if(!t(n))return n}}const Ei="{{uploadUrl}}",JB={postman:"Postman collection (v2.1)",insomnia:"Insomnia export (v4)",bruno:"Bruno collection (JSON)"};function kse(e,t){const r=n=>({...n,path:Qne(n.path)}),o={...t,items:t.items.map(n=>n.kind==="folder"?{...n,steps:n.steps.map(r)}:{...r(n),kind:n.kind})};switch(e){case"postman":return JSON.stringify(jse(o),null,2);case"insomnia":return JSON.stringify(Cse(o),null,2);case"bruno":return JSON.stringify(Nse(o),null,2)}}function Sse(e,t){const r=t.replace(/[^a-z0-9._-]+/gi,"_");switch(e){case"postman":return`${r}.postman_collection.json`;case"insomnia":return`${r}.insomnia.json`;case"bruno":return`${r}.bruno.json`}}function t7(e){const t=e.indexOf("?"),r=t>=0?e.slice(0,t):e,o=t>=0?e.slice(t+1):"",n=r.split("/").filter(Boolean),a=o?o.split("&").map(i=>{const l=i.indexOf("=");return l>=0?{key:i.slice(0,l),value:i.slice(l+1)}:{key:i,value:""}}):[];return{segments:n,query:a}}const px=e=>vx(e).some(t=>t.path===Ei);function mx(e,t){return Object.entries(e.headers).flatMap(([r,o])=>{if(Oi(r))return[];const n=tx(r);return[[r,n?t(n):o]]})}function id(e){const t=new Set;for(const r of vx(e))for(const o of Object.keys(r.headers)){const n=tx(o);n&&t.add(n)}return[...t]}function gx(e){if(e!=null)return typeof e=="string"?e:JSON.stringify(e,null,2)}function hx(e){return e!=null&&typeof e=="object"}function vx(e){return e.flatMap(t=>t.kind==="folder"?t.steps:[t])}let QB=0;function bp(e){QB+=1;const t=typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID().replace(/-/g,""):`${Date.now().toString(16)}${QB.toString(16)}`;return`${e}_${t.slice(0,24)}`}function Bse(){if(typeof crypto<"u"&&typeof crypto.randomUUID=="function")return crypto.randomUUID();const e=t=>Array.from({length:t},()=>Math.floor(Math.random()*16).toString(16)).join("");return`${e(8)}-${e(4)}-4${e(3)}-a${e(3)}-${e(12)}`}function e3(e){const{segments:t,query:r}=t7(e.path),o=gx(e.body);return{name:e.name,request:{method:e.method,header:mx(e,n=>`{{${n}}}`).map(([n,a])=>({key:n,value:a,type:"text"})),url:e.path===Ei?{raw:Ei,host:[Ei]}:{raw:`{{baseUrl}}${e.path}`,host:["{{baseUrl}}"],path:t,...r.length?{query:r}:{}},...o!=null?{body:{mode:"raw",raw:o,...hx(e.body)?{options:{raw:{language:"json"}}}:{}}}:{},...e.description?{description:e.description}:{}},response:[]}}function jse(e){return{info:{_postman_id:Bse(),name:e.name,description:"Exported from Dataverse Request Studio. Set accessToken to a bearer token.",schema:"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"},auth:{type:"bearer",bearer:[{key:"token",value:"{{accessToken}}",type:"string"}]},variable:[{key:"baseUrl",value:e.baseUrl,type:"string"},{key:"accessToken",value:"",type:"string"},...px(e.items)?[{key:"uploadUrl",value:"",type:"string"}]:[],...id(e.items).map(t=>({key:t,value:"",type:"string"}))],item:e.items.map(t=>t.kind==="folder"?{name:t.name,...t.description?{description:t.description}:{},item:t.steps.map(e3)}:e3(t))}}function Cse(e){const t=bp("wrk"),r=[{_id:t,_type:"workspace",parentId:null,name:e.name,scope:"collection"},{_id:bp("env"),_type:"environment",parentId:t,name:"Base Environment",data:{baseUrl:e.baseUrl,accessToken:"",...px(e.items)?{uploadUrl:""}:{},...Object.fromEntries(id(e.items).map(a=>[a,""]))}}];let o=0;const n=(a,i)=>{const l=gx(a.body);r.push({_id:bp("req"),_type:"request",parentId:i,name:a.name,description:a.description??"",method:a.method,url:a.path===Ei?"{{ _.uploadUrl }}":`{{ _.baseUrl }}${a.path}`,headers:mx(a,d=>`{{ _.${d} }}`).map(([d,f])=>({name:d,value:f})),body:l!=null?{mimeType:hx(a.body)?"application/json":"text/plain",text:l}:{},authentication:{type:"bearer",token:"{{ _.accessToken }}"},metaSortKey:o++})};for(const a of e.items)if(a.kind==="folder"){const i=bp("fld");r.push({_id:i,_type:"request_group",parentId:t,name:a.name,description:a.description??"",metaSortKey:o++}),a.steps.forEach(l=>n(l,i))}else n(a,t);return{_type:"export",__export_format:4,__export_date:new Date().toISOString(),__export_source:"dataverse-request-studio",resources:r}}function t3(e,t){const r=gx(e.body),{query:o}=t7(e.path);return{type:"http-request",name:e.name,seq:t,request:{url:e.path===Ei?Ei:`{{baseUrl}}${e.path}`,method:e.method,headers:mx(e,n=>`{{${n}}}`).map(([n,a])=>({name:n,value:a,enabled:!0})),params:o.map(n=>({name:n.key,value:n.value,type:"query",enabled:!0})),body:r==null?{mode:"none"}:hx(e.body)?{mode:"json",json:r}:{mode:"text",text:r},auth:{mode:"inherit"},script:{},vars:{},assertions:[],tests:"",docs:e.description??""}}}function Nse(e){return{name:e.name,version:"1",items:e.items.map((t,r)=>t.kind==="folder"?{type:"folder",name:t.name,seq:r+1,items:t.steps.map((o,n)=>t3(o,n+1))}:t3(t,r+1)),environments:[{name:"Dataverse",variables:[{name:"baseUrl",value:e.baseUrl,enabled:!0,secret:!1,type:"text"},{name:"accessToken",value:"",enabled:!0,secret:!0,type:"text"},...px(e.items)?[{name:"uploadUrl",value:"",enabled:!0,secret:!1,type:"text"}]:[],...id(e.items).map(t=>({name:t,value:"",enabled:!0,secret:!1,type:"text"}))]}],root:{request:{auth:{mode:"bearer",bearer:{token:"{{accessToken}}"}}}},brunoConfig:{version:"1",name:e.name,type:"collection",ignore:["node_modules",".git"]}}}function zse(e){return vx(e).length}function sd(e,t,r){return`${e.navigationProperties.find(n=>n.cardinality==="ManyToOne"&&n.referencingAttribute===t.logicalName&&n.targetEntity===r)?.name??t.logicalName}@odata.bind`}function Tse(e,t,r=[]){const o={};for(const n of r){const a=Mn(e,n);if(a)if(Wa(a)){const i=a.targets?.[0]??"",l=i?sd(e,a,i):`${a.logicalName}@odata.bind`;o[l]=null}else o[a.logicalName]=null}for(const[n,a]of Object.entries(t)){if(a==null||r.includes(n))continue;const i=Mn(e,n);if(i){if(Wa(i)){const l=a;if(!l?.id)continue;const d=fe(l.targetEntity)?.entitySetName??l.entitySet;if(!d)continue;const f=sd(e,i,l.targetEntity);o[f]=`/${d}(${l.id})`;continue}if(i.attributeType==="MultiSelectPicklist"){const l=a;if(!Array.isArray(l)||l.length===0)continue;o[i.logicalName]=l.join(",");continue}typeof a=="string"&&a===""||(o[i.logicalName]=a)}}return o}function Fg(e){if(!e.trim())return{ok:!1,error:"The body is empty. Use {} for an empty body."};let t;try{t=JSON.parse(e)}catch(r){return{ok:!1,error:r instanceof Error?r.message:"Invalid JSON."}}return!t||typeof t!="object"||Array.isArray(t)?{ok:!1,error:"The body must be a JSON object ({ … })."}:{ok:!0,body:t}}const _se=/^[{]?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}[}]?$/;function Rse(e){const t=e.trim().match(/(?:^|\/)([A-Za-z_][\w]*)\(([^)]*)\)\/?$/);return t?{entitySet:t[1],id:t[2]}:null}function Dse(e,t){const r=e.find(a=>fe(a)?.entitySetName===t);if(r)return r;const o=e.filter(a=>!fe(a));if(e.length===1)return o[0];const n=t.toLowerCase();return o.find(a=>`${a}s`===n||`${a}es`===n||a.endsWith("y")&&`${a.slice(0,-1)}ies`===n)}const r3=new Set(["Integer","BigInt","Decimal","Double","Money"]),o3=new Set(["Picklist","State","Status"]),n3=new Set(["String","Memo","Uniqueidentifier","DateTime"]),Ese=e=>Array.isArray(e)?"an array":e===null?"null":`a ${typeof e}`;function r7(e,t){const r=e.navigationProperties.filter(a=>a.cardinality==="ManyToOne"),o=r.find(a=>a.name===t)??r.find(a=>a.name.toLowerCase()===t.toLowerCase());if(o?.referencingAttribute){const a=Mn(e,o.referencingAttribute);return{column:o.referencingAttribute,targets:a&&Wa(a)?a.targets:[o.targetEntity],navTarget:o.targetEntity}}const n=Mn(e,t)??Mn(e,t.toLowerCase());if(n&&Wa(n))return{column:n.logicalName,targets:n.targets}}function Pse(e,t,r={}){const{editable:o,nullSupported:n=!0}=r,a={},i=[],l=[],d=(h,v)=>l.push({key:h,reason:v}),f=h=>o&&!o(h),p=(h,v)=>{if(!n)return d(h,"explicit null isn’t supported here");i.includes(v)||i.push(v),delete a[v]};for(const[h,v]of Object.entries(t)){if(h.endsWith("@odata.bind")){const k=h.slice(0,-11),S=r7(e,k);if(!S){d(h,`no lookup named ${k} on ${e.logicalName}`);continue}if(f(S.column)){d(h,`${S.column} isn’t settable here, so the form hides it`);continue}if(v===null){p(h,S.column);continue}const N=typeof v=="string"?Rse(v):null;if(!N){d(h,'expected "/<entitySet>(<guid>)"');continue}if(!_se.test(N.id)){d(h,"the form only picks records by GUID (alternate-key references stay in JSON)");continue}const B=Dse(S.navTarget?[S.navTarget]:S.targets,N.entitySet);if(!B){d(h,`“${N.entitySet}” isn't a known entity set for ${S.navTarget??S.targets.join(" / ")} (or its metadata isn't loaded)`);continue}a[S.column]={id:N.id.replace(/[{}]/g,""),targetEntity:B,entitySet:N.entitySet};continue}if(h.includes("@")){d(h,"annotation — the form has no control for it");continue}const y=Mn(e,h);if(!y){d(h,`not a column on ${e.logicalName}`);continue}if(f(y.logicalName)){d(h,`${y.logicalName} isn’t settable here, so the form hides it`);continue}if(v===null){p(h,y.logicalName);continue}if(Wa(y)){d(h,`lookups are set with "<nav>@odata.bind", not "${h}"`);continue}const x=y.attributeType;if(x==="MultiSelectPicklist"){const S=(typeof v=="string"?v.split(",").filter(N=>N.trim()!==""):Array.isArray(v)?v:null)?.map(N=>Number(typeof N=="string"?N.trim():N));if(!S||S.some(N=>!Number.isInteger(N))){d(h,'expected a comma-separated string of option values, e.g. "1,2"');continue}a[y.logicalName]=S;continue}if(!(r3.has(x)?typeof v=="number":o3.has(x)?Number.isInteger(v):x==="Boolean"?typeof v=="boolean":n3.has(x)?typeof v=="string":x==="EntityName"?typeof v=="string"||typeof v=="number":!1)){const k=r3.has(x)?"a number":o3.has(x)?"an integer option value":x==="Boolean"?"true or false":n3.has(x)?"a string":"a value the form supports";d(h,`${x} column — expected ${k}, got ${Ese(v)}`);continue}i.includes(y.logicalName)&&i.splice(i.indexOf(y.logicalName),1),a[y.logicalName]=v}return{values:a,nullFields:i,unmapped:l}}function Mse(e,t){const r=new Set;for(const[o,n]of Object.entries(t))if(!(n==null||n==="")){if(o.endsWith("@odata.bind")){const a=r7(e,o.slice(0,-11));a&&r.add(a.column);continue}Mn(e,o)&&r.add(o)}return r}function qse(e,t){if(t==null)return null;const r=Fg(t);return r.ok?Mse(e,r.body):new Set}function mye(e,t,r,o){const n=(l,d)=>{const f={...l};for(const p of d)f[p]=null;return f};if(t==null)return{values:n(r,o),fromJson:!1,unmapped:[]};const a=Fg(t);if(!a.ok)return{values:{},fromJson:!0,unmapped:[],error:a.error};if(!e)return{values:{},fromJson:!0,unmapped:[]};const i=Pse(e,a.body);return{values:n(i.values,i.nullFields),fromJson:!0,unmapped:i.unmapped}}function gye(e){if(e==null)return null;const t=Fg(e);return t.ok?null:`The JSON body is invalid: ${t.error}`}const hye=e=>!!e.required&&e.isValidForAdvancedFind!==!1;function Fse(e){return e.requiredLevel==="ApplicationRequired"&&e.isValidForAdvancedFind!==!1&&e.isValidForCreate!==!1&&e.attributeType!=="File"&&e.attributeType!=="Image"}function Ise(e,t){return t==null?!1:typeof t=="string"?t!=="":Array.isArray(t)?t.length>0:Wa(e)?!!t?.id:!0}function Ase(e,t,r){const o=qse(e,t);return n=>o?o.has(n.logicalName):Ise(n,r[n.logicalName])}function vye(e,t,r,o,n){const a=Ase(e,r,o);return t.filter(Fse).filter(i=>!a(i)||n.includes(i.logicalName))}const Ose="@Microsoft.Dynamics.CRM.lookuplogicalname",Lse="@OData.Community.Display.V1.FormattedValue";function o7(e,t){if(!Wa(t))return null;const r=od(t,t.logicalName),o=e[r];if(typeof o!="string"||!o)return null;const n=e[`${r}${Ose}`],a=typeof n=="string"&&n?n:t.targets.length===1?t.targets[0]:"",i=e[`${r}${Lse}`];return{id:o,targetEntity:a,name:typeof i=="string"&&i?i:void 0}}function bye(e,t){return Wa(t)?o7(e,t):e[t.logicalName]}function yye(e,t){return!e?.id||!t?.id?!e?.id&&!t?.id:e.id.toLowerCase()!==t.id.toLowerCase()?!1:!e.targetEntity||!t.targetEntity||e.targetEntity===t.targetEntity}function xye(e){const t=e.name;return t?e.targetEntity?`${t} (${e.targetEntity})`:t:`${e.targetEntity||"?"}(${e.id.slice(0,8)}…)`}const $se=fo({root:{display:"inline-flex",flexShrink:0,borderRadius:T.borderRadiusMedium,overflow:"hidden",borderTopWidth:"1px",borderRightWidth:"1px",borderBottomWidth:"1px",borderLeftWidth:"1px",borderTopStyle:"solid",borderRightStyle:"solid",borderBottomStyle:"solid",borderLeftStyle:"solid",borderTopColor:T.colorNeutralStroke1,borderRightColor:T.colorNeutralStroke1,borderBottomColor:T.colorNeutralStroke1,borderLeftColor:T.colorNeutralStroke1,"& > button":{borderTopWidth:0,borderBottomWidth:0,borderLeftWidth:0,borderRightWidth:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:0,borderBottomRightRadius:0},"& > button:not(:first-child)":{borderLeftWidth:"1px",borderLeftStyle:"solid",borderLeftColor:T.colorNeutralStroke1}}});function bx({children:e,ariaLabel:t,className:r}){const o=$se(),n=m.Children.toArray(e).map(a=>{if(m.isValidElement(a)&&a.type===Bo){const i=a.props;return m.cloneElement(a,{size:i.size??"small",shape:"rounded"})}return a});return c.jsx("span",{role:"radiogroup","aria-label":t,className:F(o.root,r),children:n})}function Un({icon:e,title:t,sub:r,group:o="read",children:n}){const a=_t();return c.jsxs("div",{className:a.paneHead,children:[e&&c.jsx(e,{style:{color:Pn(o),width:22,height:22}}),c.jsx("span",{className:a.paneTitle,children:t}),r&&c.jsx("span",{className:a.paneSub,children:r}),c.jsx("span",{style:{flexGrow:1}}),n]})}function Ig({clause:e}){const t=e==="$orderby";return c.jsx(Ue,{layout:"multiline",intent:t?"error":"warning",style:{marginBottom:14},children:c.jsxs(Ge,{children:[c.jsx(Lt,{children:t?"$orderby on aggregate output is not supported by Dataverse.":`${e} is ignored while $apply is active.`}),t?c.jsxs(c.Fragment,{children:["Dataverse rejects ",c.jsx("code",{children:"$orderby"})," on the alias columns produced by"," ",c.jsx("code",{children:"$apply"})," with",c.jsx("em",{children:' "The query node SingleValueOpenPropertyAccess is not supported."'})," Remove your"," ",c.jsx("code",{children:"$orderby"}),"entries, or disable ",c.jsx("code",{children:"$apply"})," if you need server-side ordering."]}):c.jsxs(c.Fragment,{children:[c.jsx("code",{children:"$apply"})," takes over the response shape — only ",c.jsx("code",{children:"$top"})," remains alongside it. Output columns come from your groupby + aggregate aliases; row-level filtering moves into a",c.jsx("code",{children:"filter(…)/groupby(…)"})," stage. Disable"," ",c.jsx("code",{children:"$apply"})," to use ",e," again."]})]})})}function Hse(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return m.useMemo(()=>o=>{t.forEach(n=>n(o))},t)}const Ag=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function gc(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function yx(e){return"nodeType"in e}function To(e){var t,r;return e?gc(e)?e:yx(e)&&(t=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?t:window:window}function xx(e){const{Document:t}=To(e);return e instanceof t}function qd(e){return gc(e)?!1:e instanceof To(e).HTMLElement}function n7(e){return e instanceof To(e).SVGElement}function hc(e){return e?gc(e)?e.document:yx(e)?xx(e)?e:qd(e)||n7(e)?e.ownerDocument:document:document:document}const da=Ag?m.useLayoutEffect:m.useEffect;function wx(e){const t=m.useRef(e);return da(()=>{t.current=e}),m.useCallback(function(){for(var r=arguments.length,o=new Array(r),n=0;n<r;n++)o[n]=arguments[n];return t.current==null?void 0:t.current(...o)},[])}function Vse(){const e=m.useRef(null),t=m.useCallback((o,n)=>{e.current=setInterval(o,n)},[]),r=m.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,r]}function ld(e,t){t===void 0&&(t=[e]);const r=m.useRef(e);return da(()=>{r.current!==e&&(r.current=e)},t),r}function Fd(e,t){const r=m.useRef();return m.useMemo(()=>{const o=e(r.current);return r.current=o,o},[...t])}function Dm(e){const t=wx(e),r=m.useRef(null),o=m.useCallback(n=>{n!==r.current&&t?.(n,r.current),r.current=n},[]);return[r,o]}function gb(e){const t=m.useRef();return m.useEffect(()=>{t.current=e},[e]),t.current}let Fv={};function Id(e,t){return m.useMemo(()=>{if(t)return t;const r=Fv[e]==null?0:Fv[e]+1;return Fv[e]=r,e+"-"+r},[e,t])}function a7(e){return function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];return o.reduce((a,i)=>{const l=Object.entries(i);for(const[d,f]of l){const p=a[d];p!=null&&(a[d]=p+e*f)}return a},{...t})}}const _l=a7(1),cd=a7(-1);function Wse(e){return"clientX"in e&&"clientY"in e}function kx(e){if(!e)return!1;const{KeyboardEvent:t}=To(e.target);return t&&e instanceof t}function Use(e){if(!e)return!1;const{TouchEvent:t}=To(e.target);return t&&e instanceof t}function hb(e){if(Use(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return Wse(e)?{x:e.clientX,y:e.clientY}:null}const ud=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[ud.Translate.toString(e),ud.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:o}=e;return t+" "+r+"ms "+o}}}),a3="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Gse(e){return e.matches(a3)?e:e.querySelector(a3)}const Zse={display:"none"};function Kse(e){let{id:t,value:r}=e;return Vr.createElement("div",{id:t,style:Zse},r)}function Xse(e){let{id:t,announcement:r,ariaLiveType:o="assertive"}=e;const n={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Vr.createElement("div",{id:t,style:n,role:"status","aria-live":o,"aria-atomic":!0},r)}function Yse(){const[e,t]=m.useState("");return{announce:m.useCallback(o=>{o!=null&&t(o)},[]),announcement:e}}const i7=m.createContext(null);function Jse(e){const t=m.useContext(i7);m.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function Qse(){const[e]=m.useState(()=>new Set),t=m.useCallback(o=>(e.add(o),()=>e.delete(o)),[e]);return[m.useCallback(o=>{let{type:n,event:a}=o;e.forEach(i=>{var l;return(l=i[n])==null?void 0:l.call(i,a)})},[e]),t]}const ele={draggable:`
31
+ To pick up a draggable item, press the space bar.
32
+ While dragging, use the arrow keys to move the item.
33
+ Press space again to drop the item in its new position, or press escape to cancel.
34
+ `},tle={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function rle(e){let{announcements:t=tle,container:r,hiddenTextDescribedById:o,screenReaderInstructions:n=ele}=e;const{announce:a,announcement:i}=Yse(),l=Id("DndLiveRegion"),[d,f]=m.useState(!1);if(m.useEffect(()=>{f(!0)},[]),Jse(m.useMemo(()=>({onDragStart(h){let{active:v}=h;a(t.onDragStart({active:v}))},onDragMove(h){let{active:v,over:y}=h;t.onDragMove&&a(t.onDragMove({active:v,over:y}))},onDragOver(h){let{active:v,over:y}=h;a(t.onDragOver({active:v,over:y}))},onDragEnd(h){let{active:v,over:y}=h;a(t.onDragEnd({active:v,over:y}))},onDragCancel(h){let{active:v,over:y}=h;a(t.onDragCancel({active:v,over:y}))}}),[a,t])),!d)return null;const p=Vr.createElement(Vr.Fragment,null,Vr.createElement(Kse,{id:o,value:n.draggable}),Vr.createElement(Xse,{id:l,announcement:i}));return r?_a.createPortal(p,r):p}var Rr;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Rr||(Rr={}));function Em(){}function i3(e,t){return m.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function ole(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return m.useMemo(()=>[...t].filter(o=>o!=null),[...t])}const $n=Object.freeze({x:0,y:0});function s7(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function l7(e,t){let{data:{value:r}}=e,{data:{value:o}}=t;return r-o}function nle(e,t){let{data:{value:r}}=e,{data:{value:o}}=t;return o-r}function s3(e){let{left:t,top:r,height:o,width:n}=e;return[{x:t,y:r},{x:t+n,y:r},{x:t,y:r+o},{x:t+n,y:r+o}]}function c7(e,t){if(!e||e.length===0)return null;const[r]=e;return r[t]}function l3(e,t,r){return t===void 0&&(t=e.left),r===void 0&&(r=e.top),{x:t+e.width*.5,y:r+e.height*.5}}const ale=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:o}=e;const n=l3(t,t.left,t.top),a=[];for(const i of o){const{id:l}=i,d=r.get(l);if(d){const f=s7(l3(d),n);a.push({id:l,data:{droppableContainer:i,value:f}})}}return a.sort(l7)},ile=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:o}=e;const n=s3(t),a=[];for(const i of o){const{id:l}=i,d=r.get(l);if(d){const f=s3(d),p=n.reduce((v,y,x)=>v+s7(f[x],y),0),h=Number((p/4).toFixed(4));a.push({id:l,data:{droppableContainer:i,value:h}})}}return a.sort(l7)};function sle(e,t){const r=Math.max(t.top,e.top),o=Math.max(t.left,e.left),n=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),i=n-o,l=a-r;if(o<n&&r<a){const d=t.width*t.height,f=e.width*e.height,p=i*l,h=p/(d+f-p);return Number(h.toFixed(4))}return 0}const lle=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:o}=e;const n=[];for(const a of o){const{id:i}=a,l=r.get(i);if(l){const d=sle(l,t);d>0&&n.push({id:i,data:{droppableContainer:a,value:d}})}}return n.sort(nle)};function cle(e,t,r){return{...e,scaleX:t&&r?t.width/r.width:1,scaleY:t&&r?t.height/r.height:1}}function u7(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:$n}function ule(e){return function(r){for(var o=arguments.length,n=new Array(o>1?o-1:0),a=1;a<o;a++)n[a-1]=arguments[a];return n.reduce((i,l)=>({...i,top:i.top+e*l.y,bottom:i.bottom+e*l.y,left:i.left+e*l.x,right:i.right+e*l.x}),{...r})}}const dle=ule(1);function fle(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function ple(e,t,r){const o=fle(t);if(!o)return e;const{scaleX:n,scaleY:a,x:i,y:l}=o,d=e.left-i-(1-n)*parseFloat(r),f=e.top-l-(1-a)*parseFloat(r.slice(r.indexOf(" ")+1)),p=n?e.width/n:e.width,h=a?e.height/a:e.height;return{width:p,height:h,top:f,right:d+p,bottom:f+h,left:d}}const mle={ignoreTransform:!1};function vc(e,t){t===void 0&&(t=mle);let r=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:f,transformOrigin:p}=To(e).getComputedStyle(e);f&&(r=ple(r,f,p))}const{top:o,left:n,width:a,height:i,bottom:l,right:d}=r;return{top:o,left:n,width:a,height:i,bottom:l,right:d}}function c3(e){return vc(e,{ignoreTransform:!0})}function gle(e){const t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}function hle(e,t){return t===void 0&&(t=To(e).getComputedStyle(e)),t.position==="fixed"}function vle(e,t){t===void 0&&(t=To(e).getComputedStyle(e));const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(n=>{const a=t[n];return typeof a=="string"?r.test(a):!1})}function Og(e,t){const r=[];function o(n){if(t!=null&&r.length>=t||!n)return r;if(xx(n)&&n.scrollingElement!=null&&!r.includes(n.scrollingElement))return r.push(n.scrollingElement),r;if(!qd(n)||n7(n)||r.includes(n))return r;const a=To(e).getComputedStyle(n);return n!==e&&vle(n,a)&&r.push(n),hle(n,a)?r:o(n.parentNode)}return e?o(e):r}function d7(e){const[t]=Og(e,1);return t??null}function Iv(e){return!Ag||!e?null:gc(e)?e:yx(e)?xx(e)||e===hc(e).scrollingElement?window:qd(e)?e:null:null}function f7(e){return gc(e)?e.scrollX:e.scrollLeft}function p7(e){return gc(e)?e.scrollY:e.scrollTop}function vb(e){return{x:f7(e),y:p7(e)}}var Fr;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Fr||(Fr={}));function m7(e){return!Ag||!e?!1:e===document.scrollingElement}function g7(e){const t={x:0,y:0},r=m7(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},n=e.scrollTop<=t.y,a=e.scrollLeft<=t.x,i=e.scrollTop>=o.y,l=e.scrollLeft>=o.x;return{isTop:n,isLeft:a,isBottom:i,isRight:l,maxScroll:o,minScroll:t}}const ble={x:.2,y:.2};function yle(e,t,r,o,n){let{top:a,left:i,right:l,bottom:d}=r;o===void 0&&(o=10),n===void 0&&(n=ble);const{isTop:f,isBottom:p,isLeft:h,isRight:v}=g7(e),y={x:0,y:0},x={x:0,y:0},b={height:t.height*n.y,width:t.width*n.x};return!f&&a<=t.top+b.height?(y.y=Fr.Backward,x.y=o*Math.abs((t.top+b.height-a)/b.height)):!p&&d>=t.bottom-b.height&&(y.y=Fr.Forward,x.y=o*Math.abs((t.bottom-b.height-d)/b.height)),!v&&l>=t.right-b.width?(y.x=Fr.Forward,x.x=o*Math.abs((t.right-b.width-l)/b.width)):!h&&i<=t.left+b.width&&(y.x=Fr.Backward,x.x=o*Math.abs((t.left+b.width-i)/b.width)),{direction:y,speed:x}}function xle(e){if(e===document.scrollingElement){const{innerWidth:a,innerHeight:i}=window;return{top:0,left:0,right:a,bottom:i,width:a,height:i}}const{top:t,left:r,right:o,bottom:n}=e.getBoundingClientRect();return{top:t,left:r,right:o,bottom:n,width:e.clientWidth,height:e.clientHeight}}function h7(e){return e.reduce((t,r)=>_l(t,vb(r)),$n)}function wle(e){return e.reduce((t,r)=>t+f7(r),0)}function kle(e){return e.reduce((t,r)=>t+p7(r),0)}function Sle(e,t){if(t===void 0&&(t=vc),!e)return;const{top:r,left:o,bottom:n,right:a}=t(e);d7(e)&&(n<=0||a<=0||r>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Ble=[["x",["left","right"],wle],["y",["top","bottom"],kle]];class Sx{constructor(t,r){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const o=Og(r),n=h7(o);this.rect={...t},this.width=t.width,this.height=t.height;for(const[a,i,l]of Ble)for(const d of i)Object.defineProperty(this,d,{get:()=>{const f=l(o),p=n[a]-f;return this.rect[d]+p},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Pu{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(r=>{var o;return(o=this.target)==null?void 0:o.removeEventListener(...r)})},this.target=t}add(t,r,o){var n;(n=this.target)==null||n.addEventListener(t,r,o),this.listeners.push([t,r,o])}}function jle(e){const{EventTarget:t}=To(e);return e instanceof t?e:hc(e)}function Av(e,t){const r=Math.abs(e.x),o=Math.abs(e.y);return typeof t=="number"?Math.sqrt(r**2+o**2)>t:"x"in t&&"y"in t?r>t.x&&o>t.y:"x"in t?r>t.x:"y"in t?o>t.y:!1}var on;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(on||(on={}));function u3(e){e.preventDefault()}function Cle(e){e.stopPropagation()}var gt;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(gt||(gt={}));const v7={start:[gt.Space,gt.Enter],cancel:[gt.Esc],end:[gt.Space,gt.Enter,gt.Tab]},Nle=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case gt.Right:return{...r,x:r.x+25};case gt.Left:return{...r,x:r.x-25};case gt.Down:return{...r,y:r.y+25};case gt.Up:return{...r,y:r.y-25}}};class Bx{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:r}}=t;this.props=t,this.listeners=new Pu(hc(r)),this.windowListeners=new Pu(To(r)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(on.Resize,this.handleCancel),this.windowListeners.add(on.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(on.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:r}=this.props,o=t.node.current;o&&Sle(o),r($n)}handleKeyDown(t){if(kx(t)){const{active:r,context:o,options:n}=this.props,{keyboardCodes:a=v7,coordinateGetter:i=Nle,scrollBehavior:l="smooth"}=n,{code:d}=t;if(a.end.includes(d)){this.handleEnd(t);return}if(a.cancel.includes(d)){this.handleCancel(t);return}const{collisionRect:f}=o.current,p=f?{x:f.left,y:f.top}:$n;this.referenceCoordinates||(this.referenceCoordinates=p);const h=i(t,{active:r,context:o.current,currentCoordinates:p});if(h){const v=cd(h,p),y={x:0,y:0},{scrollableAncestors:x}=o.current;for(const b of x){const k=t.code,{isTop:S,isRight:N,isLeft:B,isBottom:C,maxScroll:z,minScroll:R}=g7(b),E=xle(b),D={x:Math.min(k===gt.Right?E.right-E.width/2:E.right,Math.max(k===gt.Right?E.left:E.left+E.width/2,h.x)),y:Math.min(k===gt.Down?E.bottom-E.height/2:E.bottom,Math.max(k===gt.Down?E.top:E.top+E.height/2,h.y))},I=k===gt.Right&&!N||k===gt.Left&&!B,M=k===gt.Down&&!C||k===gt.Up&&!S;if(I&&D.x!==h.x){const O=b.scrollLeft+v.x,H=k===gt.Right&&O<=z.x||k===gt.Left&&O>=R.x;if(H&&!v.y){b.scrollTo({left:O,behavior:l});return}H?y.x=b.scrollLeft-O:y.x=k===gt.Right?b.scrollLeft-z.x:b.scrollLeft-R.x,y.x&&b.scrollBy({left:-y.x,behavior:l});break}else if(M&&D.y!==h.y){const O=b.scrollTop+v.y,H=k===gt.Down&&O<=z.y||k===gt.Up&&O>=R.y;if(H&&!v.x){b.scrollTo({top:O,behavior:l});return}H?y.y=b.scrollTop-O:y.y=k===gt.Down?b.scrollTop-z.y:b.scrollTop-R.y,y.y&&b.scrollBy({top:-y.y,behavior:l});break}}this.handleMove(t,_l(cd(h,this.referenceCoordinates),y))}}}handleMove(t,r){const{onMove:o}=this.props;t.preventDefault(),o(r)}handleEnd(t){const{onEnd:r}=this.props;t.preventDefault(),this.detach(),r()}handleCancel(t){const{onCancel:r}=this.props;t.preventDefault(),this.detach(),r()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Bx.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:o=v7,onActivation:n}=t,{active:a}=r;const{code:i}=e.nativeEvent;if(o.start.includes(i)){const l=a.activatorNode.current;return l&&e.target!==l?!1:(e.preventDefault(),n?.({event:e.nativeEvent}),!0)}return!1}}];function d3(e){return!!(e&&"distance"in e)}function f3(e){return!!(e&&"delay"in e)}class jx{constructor(t,r,o){var n;o===void 0&&(o=jle(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=r;const{event:a}=t,{target:i}=a;this.props=t,this.events=r,this.document=hc(i),this.documentListeners=new Pu(this.document),this.listeners=new Pu(o),this.windowListeners=new Pu(To(i)),this.initialCoordinates=(n=hb(a))!=null?n:$n,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:r,bypassActivationConstraint:o}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(on.Resize,this.handleCancel),this.windowListeners.add(on.DragStart,u3),this.windowListeners.add(on.VisibilityChange,this.handleCancel),this.windowListeners.add(on.ContextMenu,u3),this.documentListeners.add(on.Keydown,this.handleKeydown),r){if(o!=null&&o({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(f3(r)){this.timeoutId=setTimeout(this.handleStart,r.delay),this.handlePending(r);return}if(d3(r)){this.handlePending(r);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,r){const{active:o,onPending:n}=this.props;n(o,t,this.initialCoordinates,r)}handleStart(){const{initialCoordinates:t}=this,{onStart:r}=this.props;t&&(this.activated=!0,this.documentListeners.add(on.Click,Cle,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(on.SelectionChange,this.removeTextSelection),r(t))}handleMove(t){var r;const{activated:o,initialCoordinates:n,props:a}=this,{onMove:i,options:{activationConstraint:l}}=a;if(!n)return;const d=(r=hb(t))!=null?r:$n,f=cd(n,d);if(!o&&l){if(d3(l)){if(l.tolerance!=null&&Av(f,l.tolerance))return this.handleCancel();if(Av(f,l.distance))return this.handleStart()}if(f3(l)&&Av(f,l.tolerance))return this.handleCancel();this.handlePending(l,f);return}t.cancelable&&t.preventDefault(),i(d)}handleEnd(){const{onAbort:t,onEnd:r}=this.props;this.detach(),this.activated||t(this.props.active),r()}handleCancel(){const{onAbort:t,onCancel:r}=this.props;this.detach(),this.activated||t(this.props.active),r()}handleKeydown(t){t.code===gt.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const zle={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Cx extends jx{constructor(t){const{event:r}=t,o=hc(r.target);super(t,zle,o)}}Cx.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:o}=t;return!r.isPrimary||r.button!==0?!1:(o?.({event:r}),!0)}}];const Tle={move:{name:"mousemove"},end:{name:"mouseup"}};var bb;(function(e){e[e.RightClick=2]="RightClick"})(bb||(bb={}));class _le extends jx{constructor(t){super(t,Tle,hc(t.event.target))}}_le.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:o}=t;return r.button===bb.RightClick?!1:(o?.({event:r}),!0)}}];const Ov={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Rle extends jx{constructor(t){super(t,Ov)}static setup(){return window.addEventListener(Ov.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Ov.move.name,t)};function t(){}}}Rle.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:o}=t;const{touches:n}=r;return n.length>1?!1:(o?.({event:r}),!0)}}];var Mu;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Mu||(Mu={}));var Pm;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Pm||(Pm={}));function Dle(e){let{acceleration:t,activator:r=Mu.Pointer,canScroll:o,draggingRect:n,enabled:a,interval:i=5,order:l=Pm.TreeOrder,pointerCoordinates:d,scrollableAncestors:f,scrollableAncestorRects:p,delta:h,threshold:v}=e;const y=Ple({delta:h,disabled:!a}),[x,b]=Vse(),k=m.useRef({x:0,y:0}),S=m.useRef({x:0,y:0}),N=m.useMemo(()=>{switch(r){case Mu.Pointer:return d?{top:d.y,bottom:d.y,left:d.x,right:d.x}:null;case Mu.DraggableRect:return n}},[r,n,d]),B=m.useRef(null),C=m.useCallback(()=>{const R=B.current;if(!R)return;const E=k.current.x*S.current.x,D=k.current.y*S.current.y;R.scrollBy(E,D)},[]),z=m.useMemo(()=>l===Pm.TreeOrder?[...f].reverse():f,[l,f]);m.useEffect(()=>{if(!a||!f.length||!N){b();return}for(const R of z){if(o?.(R)===!1)continue;const E=f.indexOf(R),D=p[E];if(!D)continue;const{direction:I,speed:M}=yle(R,D,N,t,v);for(const O of["x","y"])y[O][I[O]]||(M[O]=0,I[O]=0);if(M.x>0||M.y>0){b(),B.current=R,x(C,i),k.current=M,S.current=I;return}}k.current={x:0,y:0},S.current={x:0,y:0},b()},[t,C,o,b,a,i,JSON.stringify(N),JSON.stringify(y),x,f,z,p,JSON.stringify(v)])}const Ele={x:{[Fr.Backward]:!1,[Fr.Forward]:!1},y:{[Fr.Backward]:!1,[Fr.Forward]:!1}};function Ple(e){let{delta:t,disabled:r}=e;const o=gb(t);return Fd(n=>{if(r||!o||!n)return Ele;const a={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[Fr.Backward]:n.x[Fr.Backward]||a.x===-1,[Fr.Forward]:n.x[Fr.Forward]||a.x===1},y:{[Fr.Backward]:n.y[Fr.Backward]||a.y===-1,[Fr.Forward]:n.y[Fr.Forward]||a.y===1}}},[r,t,o])}function Mle(e,t){const r=t!=null?e.get(t):void 0,o=r?r.node.current:null;return Fd(n=>{var a;return t==null?null:(a=o??n)!=null?a:null},[o,t])}function qle(e,t){return m.useMemo(()=>e.reduce((r,o)=>{const{sensor:n}=o,a=n.activators.map(i=>({eventName:i.eventName,handler:t(i.handler,o)}));return[...r,...a]},[]),[e,t])}var Kl;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Kl||(Kl={}));var yb;(function(e){e.Optimized="optimized"})(yb||(yb={}));const p3=new Map;function Fle(e,t){let{dragging:r,dependencies:o,config:n}=t;const[a,i]=m.useState(null),{frequency:l,measure:d,strategy:f}=n,p=m.useRef(e),h=k(),v=ld(h),y=m.useCallback(function(S){S===void 0&&(S=[]),!v.current&&i(N=>N===null?S:N.concat(S.filter(B=>!N.includes(B))))},[v]),x=m.useRef(null),b=Fd(S=>{if(h&&!r)return p3;if(!S||S===p3||p.current!==e||a!=null){const N=new Map;for(let B of e){if(!B)continue;if(a&&a.length>0&&!a.includes(B.id)&&B.rect.current){N.set(B.id,B.rect.current);continue}const C=B.node.current,z=C?new Sx(d(C),C):null;B.rect.current=z,z&&N.set(B.id,z)}return N}return S},[e,a,r,h,d]);return m.useEffect(()=>{p.current=e},[e]),m.useEffect(()=>{h||y()},[r,h]),m.useEffect(()=>{a&&a.length>0&&i(null)},[JSON.stringify(a)]),m.useEffect(()=>{h||typeof l!="number"||x.current!==null||(x.current=setTimeout(()=>{y(),x.current=null},l))},[l,h,y,...o]),{droppableRects:b,measureDroppableContainers:y,measuringScheduled:a!=null};function k(){switch(f){case Kl.Always:return!1;case Kl.BeforeDragging:return r;default:return!r}}}function b7(e,t){return Fd(r=>e?r||(typeof t=="function"?t(e):e):null,[t,e])}function Ile(e,t){return b7(e,t)}function Ale(e){let{callback:t,disabled:r}=e;const o=wx(t),n=m.useMemo(()=>{if(r||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(o)},[o,r]);return m.useEffect(()=>()=>n?.disconnect(),[n]),n}function Lg(e){let{callback:t,disabled:r}=e;const o=wx(t),n=m.useMemo(()=>{if(r||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(o)},[r]);return m.useEffect(()=>()=>n?.disconnect(),[n]),n}function Ole(e){return new Sx(vc(e),e)}function m3(e,t,r){t===void 0&&(t=Ole);const[o,n]=m.useState(null);function a(){n(d=>{if(!e)return null;if(e.isConnected===!1){var f;return(f=d??r)!=null?f:null}const p=t(e);return JSON.stringify(d)===JSON.stringify(p)?d:p})}const i=Ale({callback(d){if(e)for(const f of d){const{type:p,target:h}=f;if(p==="childList"&&h instanceof HTMLElement&&h.contains(e)){a();break}}}}),l=Lg({callback:a});return da(()=>{a(),e?(l?.observe(e),i?.observe(document.body,{childList:!0,subtree:!0})):(l?.disconnect(),i?.disconnect())},[e]),o}function Lle(e){const t=b7(e);return u7(e,t)}const g3=[];function $le(e){const t=m.useRef(e),r=Fd(o=>e?o&&o!==g3&&e&&t.current&&e.parentNode===t.current.parentNode?o:Og(e):g3,[e]);return m.useEffect(()=>{t.current=e},[e]),r}function Hle(e){const[t,r]=m.useState(null),o=m.useRef(e),n=m.useCallback(a=>{const i=Iv(a.target);i&&r(l=>l?(l.set(i,vb(i)),new Map(l)):null)},[]);return m.useEffect(()=>{const a=o.current;if(e!==a){i(a);const l=e.map(d=>{const f=Iv(d);return f?(f.addEventListener("scroll",n,{passive:!0}),[f,vb(f)]):null}).filter(d=>d!=null);r(l.length?new Map(l):null),o.current=e}return()=>{i(e),i(a)};function i(l){l.forEach(d=>{const f=Iv(d);f?.removeEventListener("scroll",n)})}},[n,e]),m.useMemo(()=>e.length?t?Array.from(t.values()).reduce((a,i)=>_l(a,i),$n):h7(e):$n,[e,t])}function h3(e,t){t===void 0&&(t=[]);const r=m.useRef(null);return m.useEffect(()=>{r.current=null},t),m.useEffect(()=>{const o=e!==$n;o&&!r.current&&(r.current=e),!o&&r.current&&(r.current=null)},[e]),r.current?cd(e,r.current):$n}function Vle(e){m.useEffect(()=>{if(!Ag)return;const t=e.map(r=>{let{sensor:o}=r;return o.setup==null?void 0:o.setup()});return()=>{for(const r of t)r?.()}},e.map(t=>{let{sensor:r}=t;return r}))}function Wle(e,t){return m.useMemo(()=>e.reduce((r,o)=>{let{eventName:n,handler:a}=o;return r[n]=i=>{a(i,t)},r},{}),[e,t])}function y7(e){return m.useMemo(()=>e?gle(e):null,[e])}const v3=[];function Ule(e,t){t===void 0&&(t=vc);const[r]=e,o=y7(r?To(r):null),[n,a]=m.useState(v3);function i(){a(()=>e.length?e.map(d=>m7(d)?o:new Sx(t(d),d)):v3)}const l=Lg({callback:i});return da(()=>{l?.disconnect(),i(),e.forEach(d=>l?.observe(d))},[e]),n}function Gle(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return qd(t)?t:e}function Zle(e){let{measure:t}=e;const[r,o]=m.useState(null),n=m.useCallback(f=>{for(const{target:p}of f)if(qd(p)){o(h=>{const v=t(p);return h?{...h,width:v.width,height:v.height}:v});break}},[t]),a=Lg({callback:n}),i=m.useCallback(f=>{const p=Gle(f);a?.disconnect(),p&&a?.observe(p),o(p?t(p):null)},[t,a]),[l,d]=Dm(i);return m.useMemo(()=>({nodeRef:l,rect:r,setRef:d}),[r,l,d])}const Kle=[{sensor:Cx,options:{}},{sensor:Bx,options:{}}],Xle={current:{}},Vp={draggable:{measure:c3},droppable:{measure:c3,strategy:Kl.WhileDragging,frequency:yb.Optimized},dragOverlay:{measure:vc}};class qu extends Map{get(t){var r;return t!=null&&(r=super.get(t))!=null?r:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:r}=t;return!r})}getNodeFor(t){var r,o;return(r=(o=this.get(t))==null?void 0:o.node.current)!=null?r:void 0}}const Yle={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new qu,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Em},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Vp,measureDroppableContainers:Em,windowRect:null,measuringScheduled:!1},Jle={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Em,draggableNodes:new Map,over:null,measureDroppableContainers:Em},$g=m.createContext(Jle),x7=m.createContext(Yle);function Qle(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new qu}}}function ece(e,t){switch(t.type){case Rr.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Rr.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Rr.DragEnd:case Rr.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Rr.RegisterDroppable:{const{element:r}=t,{id:o}=r,n=new qu(e.droppable.containers);return n.set(o,r),{...e,droppable:{...e.droppable,containers:n}}}case Rr.SetDroppableDisabled:{const{id:r,key:o,disabled:n}=t,a=e.droppable.containers.get(r);if(!a||o!==a.key)return e;const i=new qu(e.droppable.containers);return i.set(r,{...a,disabled:n}),{...e,droppable:{...e.droppable,containers:i}}}case Rr.UnregisterDroppable:{const{id:r,key:o}=t,n=e.droppable.containers.get(r);if(!n||o!==n.key)return e;const a=new qu(e.droppable.containers);return a.delete(r),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function tce(e){let{disabled:t}=e;const{active:r,activatorEvent:o,draggableNodes:n}=m.useContext($g),a=gb(o),i=gb(r?.id);return m.useEffect(()=>{if(!t&&!o&&a&&i!=null){if(!kx(a)||document.activeElement===a.target)return;const l=n.get(i);if(!l)return;const{activatorNode:d,node:f}=l;if(!d.current&&!f.current)return;requestAnimationFrame(()=>{for(const p of[d.current,f.current]){if(!p)continue;const h=Gse(p);if(h){h.focus();break}}})}},[o,t,n,i,a]),null}function rce(e,t){let{transform:r,...o}=t;return e!=null&&e.length?e.reduce((n,a)=>a({transform:n,...o}),r):r}function oce(e){return m.useMemo(()=>({draggable:{...Vp.draggable,...e?.draggable},droppable:{...Vp.droppable,...e?.droppable},dragOverlay:{...Vp.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function nce(e){let{activeNode:t,measure:r,initialRect:o,config:n=!0}=e;const a=m.useRef(!1),{x:i,y:l}=typeof n=="boolean"?{x:n,y:n}:n;da(()=>{if(!i&&!l||!t){a.current=!1;return}if(a.current||!o)return;const f=t?.node.current;if(!f||f.isConnected===!1)return;const p=r(f),h=u7(p,o);if(i||(h.x=0),l||(h.y=0),a.current=!0,Math.abs(h.x)>0||Math.abs(h.y)>0){const v=d7(f);v&&v.scrollBy({top:h.y,left:h.x})}},[t,i,l,o,r])}const w7=m.createContext({...$n,scaleX:1,scaleY:1});var ki;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(ki||(ki={}));const ace=m.memo(function(t){var r,o,n,a;let{id:i,accessibility:l,autoScroll:d=!0,children:f,sensors:p=Kle,collisionDetection:h=lle,measuring:v,modifiers:y,...x}=t;const b=m.useReducer(ece,void 0,Qle),[k,S]=b,[N,B]=Qse(),[C,z]=m.useState(ki.Uninitialized),R=C===ki.Initialized,{draggable:{active:E,nodes:D,translate:I},droppable:{containers:M}}=k,O=E!=null?D.get(E):null,H=m.useRef({initial:null,translated:null}),$=m.useMemo(()=>{var Ze;return E!=null?{id:E,data:(Ze=O?.data)!=null?Ze:Xle,rect:H}:null},[E,O]),Z=m.useRef(null),[q,A]=m.useState(null),[X,V]=m.useState(null),oe=ld(x,Object.values(x)),ee=Id("DndDescribedBy",i),W=m.useMemo(()=>M.getEnabled(),[M]),L=oce(v),{droppableRects:te,measureDroppableContainers:ue,measuringScheduled:ne}=Fle(W,{dragging:R,dependencies:[I.x,I.y],config:L.droppable}),ie=Mle(D,E),ge=m.useMemo(()=>X?hb(X):null,[X]),Te=Ne(),Ee=Ile(ie,L.draggable.measure);nce({activeNode:E!=null?D.get(E):null,config:Te.layoutShiftCompensation,initialRect:Ee,measure:L.draggable.measure});const Me=m3(ie,L.draggable.measure,Ee),lt=m3(ie?ie.parentElement:null),ht=m.useRef({activatorEvent:null,active:null,activeNode:ie,collisionRect:null,collisions:null,droppableRects:te,draggableNodes:D,draggingNode:null,draggingNodeRect:null,droppableContainers:M,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),xt=M.getNodeFor((r=ht.current.over)==null?void 0:r.id),vt=Zle({measure:L.dragOverlay.measure}),Qt=(o=vt.nodeRef.current)!=null?o:ie,pt=R?(n=vt.rect)!=null?n:Me:null,Mt=!!(vt.nodeRef.current&&vt.rect),hr=Lle(Mt?null:Me),vr=y7(Qt?To(Qt):null),ot=$le(R?xt??ie:null),zt=Ule(ot),ur=rce(y,{transform:{x:I.x-hr.x,y:I.y-hr.y,scaleX:1,scaleY:1},activatorEvent:X,active:$,activeNodeRect:Me,containerNodeRect:lt,draggingNodeRect:pt,over:ht.current.over,overlayNodeRect:vt.rect,scrollableAncestors:ot,scrollableAncestorRects:zt,windowRect:vr}),po=ge?_l(ge,I):null,Gr=Hle(ot),vn=h3(Gr),mo=h3(Gr,[Me]),Nr=_l(ur,vn),Sr=pt?dle(pt,ur):null,Zr=$&&Sr?h({active:$,collisionRect:Sr,droppableRects:te,droppableContainers:W,pointerCoordinates:po}):null,Ar=c7(Zr,"id"),[er,Uo]=m.useState(null),bn=Mt?ur:_l(ur,mo),Ce=cle(bn,(a=er?.rect)!=null?a:null,Me),_e=m.useRef(null),We=m.useCallback((Ze,ut)=>{let{sensor:Rt,options:tr}=ut;if(Z.current==null)return;const ze=D.get(Z.current);if(!ze)return;const je=Ze.nativeEvent,He=new Rt({active:Z.current,activeNode:ze,event:je,options:tr,context:ht,onAbort(Qe){if(!D.get(Qe))return;const{onDragAbort:Ut}=oe.current,Er={id:Qe};Ut?.(Er),N({type:"onDragAbort",event:Er})},onPending(Qe,rr,Ut,Er){if(!D.get(Qe))return;const{onDragPending:br}=oe.current,yr={id:Qe,constraint:rr,initialCoordinates:Ut,offset:Er};br?.(yr),N({type:"onDragPending",event:yr})},onStart(Qe){const rr=Z.current;if(rr==null)return;const Ut=D.get(rr);if(!Ut)return;const{onDragStart:Er}=oe.current,Or={activatorEvent:je,active:{id:rr,data:Ut.data,rect:H}};_a.unstable_batchedUpdates(()=>{Er?.(Or),z(ki.Initializing),S({type:Rr.DragStart,initialCoordinates:Qe,active:rr}),N({type:"onDragStart",event:Or}),A(_e.current),V(je)})},onMove(Qe){S({type:Rr.DragMove,coordinates:Qe})},onEnd:jt(Rr.DragEnd),onCancel:jt(Rr.DragCancel)});_e.current=He;function jt(Qe){return async function(){const{active:Ut,collisions:Er,over:Or,scrollAdjustedTranslate:br}=ht.current;let yr=null;if(Ut&&br){const{cancelDrop:yn}=oe.current;yr={activatorEvent:je,active:Ut,collisions:Er,delta:br,over:Or},Qe===Rr.DragEnd&&typeof yn=="function"&&await Promise.resolve(yn(yr))&&(Qe=Rr.DragCancel)}Z.current=null,_a.unstable_batchedUpdates(()=>{S({type:Qe}),z(ki.Uninitialized),Uo(null),A(null),V(null),_e.current=null;const yn=Qe===Rr.DragEnd?"onDragEnd":"onDragCancel";if(yr){const Go=oe.current[yn];Go?.(yr),N({type:yn,event:yr})}})}}},[D]),Je=m.useCallback((Ze,ut)=>(Rt,tr)=>{const ze=Rt.nativeEvent,je=D.get(tr);if(Z.current!==null||!je||ze.dndKit||ze.defaultPrevented)return;const He={active:je};Ze(Rt,ut.options,He)===!0&&(ze.dndKit={capturedBy:ut.sensor},Z.current=tr,We(Rt,ut))},[D,We]),wt=qle(p,Je);Vle(p),da(()=>{Me&&C===ki.Initializing&&z(ki.Initialized)},[Me,C]),m.useEffect(()=>{const{onDragMove:Ze}=oe.current,{active:ut,activatorEvent:Rt,collisions:tr,over:ze}=ht.current;if(!ut||!Rt)return;const je={active:ut,activatorEvent:Rt,collisions:tr,delta:{x:Nr.x,y:Nr.y},over:ze};_a.unstable_batchedUpdates(()=>{Ze?.(je),N({type:"onDragMove",event:je})})},[Nr.x,Nr.y]),m.useEffect(()=>{const{active:Ze,activatorEvent:ut,collisions:Rt,droppableContainers:tr,scrollAdjustedTranslate:ze}=ht.current;if(!Ze||Z.current==null||!ut||!ze)return;const{onDragOver:je}=oe.current,He=tr.get(Ar),jt=He&&He.rect.current?{id:He.id,rect:He.rect.current,data:He.data,disabled:He.disabled}:null,Qe={active:Ze,activatorEvent:ut,collisions:Rt,delta:{x:ze.x,y:ze.y},over:jt};_a.unstable_batchedUpdates(()=>{Uo(jt),je?.(Qe),N({type:"onDragOver",event:Qe})})},[Ar]),da(()=>{ht.current={activatorEvent:X,active:$,activeNode:ie,collisionRect:Sr,collisions:Zr,droppableRects:te,draggableNodes:D,draggingNode:Qt,draggingNodeRect:pt,droppableContainers:M,over:er,scrollableAncestors:ot,scrollAdjustedTranslate:Nr},H.current={initial:pt,translated:Sr}},[$,ie,Zr,Sr,D,Qt,pt,te,M,er,ot,Nr]),Dle({...Te,delta:I,draggingRect:Sr,pointerCoordinates:po,scrollableAncestors:ot,scrollableAncestorRects:zt});const Ke=m.useMemo(()=>({active:$,activeNode:ie,activeNodeRect:Me,activatorEvent:X,collisions:Zr,containerNodeRect:lt,dragOverlay:vt,draggableNodes:D,droppableContainers:M,droppableRects:te,over:er,measureDroppableContainers:ue,scrollableAncestors:ot,scrollableAncestorRects:zt,measuringConfiguration:L,measuringScheduled:ne,windowRect:vr}),[$,ie,Me,X,Zr,lt,vt,D,M,te,er,ue,ot,zt,L,ne,vr]),Wt=m.useMemo(()=>({activatorEvent:X,activators:wt,active:$,activeNodeRect:Me,ariaDescribedById:{draggable:ee},dispatch:S,draggableNodes:D,over:er,measureDroppableContainers:ue}),[X,wt,$,Me,S,ee,D,er,ue]);return Vr.createElement(i7.Provider,{value:B},Vr.createElement($g.Provider,{value:Wt},Vr.createElement(x7.Provider,{value:Ke},Vr.createElement(w7.Provider,{value:Ce},f)),Vr.createElement(tce,{disabled:l?.restoreFocus===!1})),Vr.createElement(rle,{...l,hiddenTextDescribedById:ee}));function Ne(){const Ze=q?.autoScrollEnabled===!1,ut=typeof d=="object"?d.enabled===!1:d===!1,Rt=R&&!Ze&&!ut;return typeof d=="object"?{...d,enabled:Rt}:{enabled:Rt}}}),ice=m.createContext(null),b3="button",sce="Draggable";function lce(e){let{id:t,data:r,disabled:o=!1,attributes:n}=e;const a=Id(sce),{activators:i,activatorEvent:l,active:d,activeNodeRect:f,ariaDescribedById:p,draggableNodes:h,over:v}=m.useContext($g),{role:y=b3,roleDescription:x="draggable",tabIndex:b=0}=n??{},k=d?.id===t,S=m.useContext(k?w7:ice),[N,B]=Dm(),[C,z]=Dm(),R=Wle(i,t),E=ld(r);da(()=>(h.set(t,{id:t,key:a,node:N,activatorNode:C,data:E}),()=>{const I=h.get(t);I&&I.key===a&&h.delete(t)}),[h,t]);const D=m.useMemo(()=>({role:y,tabIndex:b,"aria-disabled":o,"aria-pressed":k&&y===b3?!0:void 0,"aria-roledescription":x,"aria-describedby":p.draggable}),[o,y,b,k,x,p.draggable]);return{active:d,activatorEvent:l,activeNodeRect:f,attributes:D,isDragging:k,listeners:o?void 0:R,node:N,over:v,setNodeRef:B,setActivatorNodeRef:z,transform:S}}function cce(){return m.useContext(x7)}const uce="Droppable",dce={timeout:25};function fce(e){let{data:t,disabled:r=!1,id:o,resizeObserverConfig:n}=e;const a=Id(uce),{active:i,dispatch:l,over:d,measureDroppableContainers:f}=m.useContext($g),p=m.useRef({disabled:r}),h=m.useRef(!1),v=m.useRef(null),y=m.useRef(null),{disabled:x,updateMeasurementsFor:b,timeout:k}={...dce,...n},S=ld(b??o),N=m.useCallback(()=>{if(!h.current){h.current=!0;return}y.current!=null&&clearTimeout(y.current),y.current=setTimeout(()=>{f(Array.isArray(S.current)?S.current:[S.current]),y.current=null},k)},[k]),B=Lg({callback:N,disabled:x||!i}),C=m.useCallback((D,I)=>{B&&(I&&(B.unobserve(I),h.current=!1),D&&B.observe(D))},[B]),[z,R]=Dm(C),E=ld(t);return m.useEffect(()=>{!B||!z.current||(B.disconnect(),h.current=!1,B.observe(z.current))},[z,B]),m.useEffect(()=>(l({type:Rr.RegisterDroppable,element:{id:o,key:a,disabled:r,node:z,rect:v,data:E}}),()=>l({type:Rr.UnregisterDroppable,key:a,id:o})),[o]),m.useEffect(()=>{r!==p.current.disabled&&(l({type:Rr.SetDroppableDisabled,id:o,key:a,disabled:r}),p.current.disabled=r)},[o,a,r,l]),{active:i,rect:v,isOver:d?.id===o,node:z,over:d,setNodeRef:R}}function k7(e,t,r){const o=e.slice();return o.splice(r<0?o.length+r:r,0,o.splice(t,1)[0]),o}function pce(e,t){return e.reduce((r,o,n)=>{const a=t.get(o);return a&&(r[n]=a),r},Array(e.length))}function yp(e){return e!==null&&e>=0}function mce(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function gce(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const xp={scaleX:1,scaleY:1},hce=e=>{var t;let{rects:r,activeNodeRect:o,activeIndex:n,overIndex:a,index:i}=e;const l=(t=r[n])!=null?t:o;if(!l)return null;const d=vce(r,i,n);if(i===n){const f=r[a];return f?{x:n<a?f.left+f.width-(l.left+l.width):f.left-l.left,y:0,...xp}:null}return i>n&&i<=a?{x:-l.width-d,y:0,...xp}:i<n&&i>=a?{x:l.width+d,y:0,...xp}:{x:0,y:0,...xp}};function vce(e,t,r){const o=e[t],n=e[t-1],a=e[t+1];return!o||!n&&!a?0:r<t?n?o.left-(n.left+n.width):a.left-(o.left+o.width):a?a.left-(o.left+o.width):o.left-(n.left+n.width)}const S7=e=>{let{rects:t,activeIndex:r,overIndex:o,index:n}=e;const a=k7(t,o,r),i=t[n],l=a[n];return!l||!i?null:{x:l.left-i.left,y:l.top-i.top,scaleX:l.width/i.width,scaleY:l.height/i.height}},wp={scaleX:1,scaleY:1},bce=e=>{var t;let{activeIndex:r,activeNodeRect:o,index:n,rects:a,overIndex:i}=e;const l=(t=a[r])!=null?t:o;if(!l)return null;if(n===r){const f=a[i];return f?{x:0,y:r<i?f.top+f.height-(l.top+l.height):f.top-l.top,...wp}:null}const d=yce(a,n,r);return n>r&&n<=i?{x:0,y:-l.height-d,...wp}:n<r&&n>=i?{x:0,y:l.height+d,...wp}:{x:0,y:0,...wp}};function yce(e,t,r){const o=e[t],n=e[t-1],a=e[t+1];return o?r<t?n?o.top-(n.top+n.height):a?a.top-(o.top+o.height):0:a?a.top-(o.top+o.height):n?o.top-(n.top+n.height):0:0}const B7="Sortable",j7=Vr.createContext({activeIndex:-1,containerId:B7,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:S7,disabled:{draggable:!1,droppable:!1}});function xce(e){let{children:t,id:r,items:o,strategy:n=S7,disabled:a=!1}=e;const{active:i,dragOverlay:l,droppableRects:d,over:f,measureDroppableContainers:p}=cce(),h=Id(B7,r),v=l.rect!==null,y=m.useMemo(()=>o.map(R=>typeof R=="object"&&"id"in R?R.id:R),[o]),x=i!=null,b=i?y.indexOf(i.id):-1,k=f?y.indexOf(f.id):-1,S=m.useRef(y),N=!mce(y,S.current),B=k!==-1&&b===-1||N,C=gce(a);da(()=>{N&&x&&p(y)},[N,y,x,p]),m.useEffect(()=>{S.current=y},[y]);const z=m.useMemo(()=>({activeIndex:b,containerId:h,disabled:C,disableTransforms:B,items:y,overIndex:k,useDragOverlay:v,sortedRects:pce(y,d),strategy:n}),[b,h,C.draggable,C.droppable,B,y,k,d,v,n]);return Vr.createElement(j7.Provider,{value:z},t)}const wce=e=>{let{id:t,items:r,activeIndex:o,overIndex:n}=e;return k7(r,o,n).indexOf(t)},kce=e=>{let{containerId:t,isSorting:r,wasDragging:o,index:n,items:a,newIndex:i,previousItems:l,previousContainerId:d,transition:f}=e;return!f||!o||l!==a&&n===i?!1:r?!0:i!==n&&t===d},Sce={duration:200,easing:"ease"},C7="transform",Bce=ud.Transition.toString({property:C7,duration:0,easing:"linear"}),jce={roleDescription:"sortable"};function Cce(e){let{disabled:t,index:r,node:o,rect:n}=e;const[a,i]=m.useState(null),l=m.useRef(r);return da(()=>{if(!t&&r!==l.current&&o.current){const d=n.current;if(d){const f=vc(o.current,{ignoreTransform:!0}),p={x:d.left-f.left,y:d.top-f.top,scaleX:d.width/f.width,scaleY:d.height/f.height};(p.x||p.y)&&i(p)}}r!==l.current&&(l.current=r)},[t,r,o,n]),m.useEffect(()=>{a&&i(null)},[a]),a}function Nce(e){let{animateLayoutChanges:t=kce,attributes:r,disabled:o,data:n,getNewIndex:a=wce,id:i,strategy:l,resizeObserverConfig:d,transition:f=Sce}=e;const{items:p,containerId:h,activeIndex:v,disabled:y,disableTransforms:x,sortedRects:b,overIndex:k,useDragOverlay:S,strategy:N}=m.useContext(j7),B=zce(o,y),C=p.indexOf(i),z=m.useMemo(()=>({sortable:{containerId:h,index:C,items:p},...n}),[h,n,C,p]),R=m.useMemo(()=>p.slice(p.indexOf(i)),[p,i]),{rect:E,node:D,isOver:I,setNodeRef:M}=fce({id:i,data:z,disabled:B.droppable,resizeObserverConfig:{updateMeasurementsFor:R,...d}}),{active:O,activatorEvent:H,activeNodeRect:$,attributes:Z,setNodeRef:q,listeners:A,isDragging:X,over:V,setActivatorNodeRef:oe,transform:ee}=lce({id:i,data:z,attributes:{...jce,...r},disabled:B.draggable}),W=Hse(M,q),L=!!O,te=L&&!x&&yp(v)&&yp(k),ue=!S&&X,ne=ue&&te?ee:null,ge=te?ne??(l??N)({rects:b,activeNodeRect:$,activeIndex:v,overIndex:k,index:C}):null,Te=yp(v)&&yp(k)?a({id:i,items:p,activeIndex:v,overIndex:k}):C,Ee=O?.id,Me=m.useRef({activeId:Ee,items:p,newIndex:Te,containerId:h}),lt=p!==Me.current.items,ht=t({active:O,containerId:h,isDragging:X,isSorting:L,id:i,index:C,items:p,newIndex:Me.current.newIndex,previousItems:Me.current.items,previousContainerId:Me.current.containerId,transition:f,wasDragging:Me.current.activeId!=null}),xt=Cce({disabled:!ht,index:C,node:D,rect:E});return m.useEffect(()=>{L&&Me.current.newIndex!==Te&&(Me.current.newIndex=Te),h!==Me.current.containerId&&(Me.current.containerId=h),p!==Me.current.items&&(Me.current.items=p)},[L,Te,h,p]),m.useEffect(()=>{if(Ee===Me.current.activeId)return;if(Ee!=null&&Me.current.activeId==null){Me.current.activeId=Ee;return}const Qt=setTimeout(()=>{Me.current.activeId=Ee},50);return()=>clearTimeout(Qt)},[Ee]),{active:O,activeIndex:v,attributes:Z,data:z,rect:E,index:C,newIndex:Te,items:p,isOver:I,isSorting:L,isDragging:X,listeners:A,node:D,overIndex:k,over:V,setNodeRef:W,setActivatorNodeRef:oe,setDroppableNodeRef:M,setDraggableNodeRef:q,transform:xt??ge,transition:vt()};function vt(){if(xt||lt&&Me.current.newIndex===C)return Bce;if(!(ue&&!kx(H)||!f)&&(L||ht))return ud.Transition.toString({...f,property:C7})}}function zce(e,t){var r,o;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(r=e?.draggable)!=null?r:t.draggable,droppable:(o=e?.droppable)!=null?o:t.droppable}}function Mm(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const Tce=[gt.Down,gt.Right,gt.Up,gt.Left],_ce=(e,t)=>{let{context:{active:r,collisionRect:o,droppableRects:n,droppableContainers:a,over:i,scrollableAncestors:l}}=t;if(Tce.includes(e.code)){if(e.preventDefault(),!r||!o)return;const d=[];a.getEnabled().forEach(h=>{if(!h||h!=null&&h.disabled)return;const v=n.get(h.id);if(v)switch(e.code){case gt.Down:o.top<v.top&&d.push(h);break;case gt.Up:o.top>v.top&&d.push(h);break;case gt.Left:o.left>v.left&&d.push(h);break;case gt.Right:o.left<v.left&&d.push(h);break}});const f=ile({collisionRect:o,droppableRects:n,droppableContainers:d});let p=c7(f,"id");if(p===i?.id&&f.length>1&&(p=f[1].id),p!=null){const h=a.get(r.id),v=a.get(p),y=v?n.get(v.id):null,x=v?.node.current;if(x&&y&&h&&v){const k=Og(x).some((R,E)=>l[E]!==R),S=N7(h,v),N=Rce(h,v),B=k||!S?{x:0,y:0}:{x:N?o.width-y.width:0,y:N?o.height-y.height:0},C={x:y.left,y:y.top};return B.x&&B.y?C:cd(C,B)}}}};function N7(e,t){return!Mm(e)||!Mm(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function Rce(e,t){return!Mm(e)||!Mm(t)||!N7(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}const Dce=fo({grip:{color:T.colorNeutralForeground4,width:"16px",height:"16px",cursor:"grab",flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",":hover":{color:T.colorNeutralForeground2},":active":{cursor:"grabbing",color:T.colorBrandForeground1},":focus-visible":{outline:`2px solid ${T.colorStrokeFocus2}`,outlineOffset:"1px",borderRadius:"2px"}},itemActive:{boxShadow:T.shadow16,backgroundColor:T.colorNeutralBackground1,zIndex:10,borderRadius:T.borderRadiusMedium},itemDropTarget:{outline:`1px dashed ${T.colorBrandStroke1}`,outlineOffset:"-2px"}});function dd({ids:e,onReorder:t,orientation:r="vertical",children:o}){const n=ole(i3(Cx,{activationConstraint:{distance:4}}),i3(Bx,{coordinateGetter:_ce})),a=i=>{const{active:l,over:d}=i;if(!d||l.id===d.id)return;const f=e.indexOf(String(l.id)),p=e.indexOf(String(d.id));f<0||p<0||t(f,p)};return c.jsx(ace,{sensors:n,collisionDetection:ale,measuring:{droppable:{strategy:Kl.Always}},onDragEnd:a,children:c.jsx(xce,{items:e,strategy:r==="horizontal"?hce:bce,children:o})})}function fd({id:e,children:t,disabled:r,className:o,style:n}){const a=Dce(),{attributes:i,listeners:l,setNodeRef:d,setActivatorNodeRef:f,transform:p,transition:h,isDragging:v,isOver:y}=Nce({id:e,disabled:r}),x={transform:ud.Translate.toString(p),transition:h,...n},b=({className:S})=>c.jsx(Nd,{className:F(a.grip,S),"aria-hidden":!0}),k={ref:f,...l,...i,tabIndex:0,style:{touchAction:"none",...r?{cursor:"not-allowed",opacity:.4}:{}}};return c.jsx("div",{ref:d,style:x,className:F(o,v&&a.itemActive,y&&!v&&a.itemDropTarget),children:t({gripProps:k,Grip:b,isDragging:v})})}const Ece=100;function Nx(e,t,r,o=Ece){const n=m.useMemo(()=>e.map(i=>r(i).filter(Boolean).join("\0").toLowerCase()),[e]),a=m.useDeferredValue(t);return m.useMemo(()=>{const i=a.trim().toLowerCase(),l=[];let d=0;for(let f=0;f<e.length;f++)i&&!n[f].includes(i)||(d++,l.length<o&&l.push(e[f]));return{visible:l,matchCount:d,hiddenCount:d-l.length}},[e,n,a,o])}function zx({hiddenCount:e}){return e<=0?null:c.jsx(at,{value:"__more",text:"",disabled:!0,children:c.jsxs(Pe,{style:{color:T.colorNeutralForeground3},children:[e.toLocaleString()," more — keep typing to narrow the list"]})})}function z7({table:e,items:t,setItems:r,group:o="read",applyActive:n}){const a=_t(),i=fe(e),l=Vo();if(!i)return null;const d=[];for(const b of t){const k=ws(i,b.col).leaf;k&&((k.attributeType==="Picklist"||k.attributeType==="State"||k.attributeType==="Status")&&d.push(`${k.displayName}: choice columns sort by the underlying integer value, not the localized label. Use FetchXml if you need label order.`),k.attributeType==="MultiSelectPicklist"&&d.push(`${k.displayName}: MultiSelectPicklist sorts by the raw semicolon-separated string — effectively meaningless.`),k.attributeType==="Memo"&&d.push(`${k.displayName}: ordering long text is an anti-pattern (slow). Add a unique key as a tie-breaker for stable paging.`),(k.attributeType==="Lookup"||k.attributeType==="Customer"||k.attributeType==="Owner")&&d.push(`${k.displayName}: lookup columns sort by the related row's primary name field (join). Slower than scalar sorts.`))}const f=t.some(b=>ws(i,b.col).leaf?.attributeType==="Uniqueidentifier");t.length>0&&!f&&d.push(`Add ${i.primaryKey} as the last orderby column for deterministic paging.`);const p=()=>typeof crypto<"u"&&typeof crypto.randomUUID=="function"?`ord_${crypto.randomUUID()}`:`ord_${Date.now().toString(36)}_${Math.floor(Math.random()*1e6).toString(36)}`,h=()=>r([...t,{id:p(),col:(nd(i.columns,l)??i.columns[0]).logicalName,dir:"asc"}]),v=(b,k)=>r(t.map((S,N)=>N===b?{...S,...k}:S)),y=b=>r(t.filter((k,S)=>S!==b)),x=(b,k)=>{if(k<0||k>=t.length)return;const S=[...t];[S[b],S[k]]=[S[k],S[b]],r(S)};return c.jsxs("div",{children:[c.jsx(Un,{icon:T1,title:"$orderby",sub:"Multi-column sort. Note: choices/option-sets order by integer value, not label (use FetchXml for label order).",group:o}),n&&c.jsx(Ig,{clause:"$orderby"}),t.length===0&&c.jsx(Ue,{layout:"multiline",intent:"info",style:{marginBottom:12},children:c.jsxs(Ge,{children:["No ",c.jsx("code",{children:"$orderby"})," — server-default order. Add one to make pagination deterministic; recommended best practice is ",c.jsxs("code",{children:["orderby=",i.primaryKey," asc"]})," as a tie-breaker."]})}),d.length>0&&c.jsx("div",{style:{display:"flex",flexDirection:"column",gap:6,marginBottom:12},children:d.map((b,k)=>c.jsx(Ue,{intent:"warning",children:c.jsx(Ge,{children:b})},k))}),c.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8,maxWidth:720},children:c.jsx(dd,{ids:t.map((b,k)=>b.id??`${b.col}-${k}`),onReorder:(b,k)=>{const S=[...t],[N]=S.splice(b,1);S.splice(k,0,N),r(S)},children:t.map((b,k)=>{const S=ws(i,b.col).leaf,N=b.id??`${b.col}-${k}`;return c.jsx(fd,{id:N,children:({gripProps:B,Grip:C})=>c.jsxs("div",{className:F(a.inlineCard),style:{padding:"8px 10px",display:"grid",gridTemplateColumns:"20px 24px 1fr auto 28px 28px 28px",gap:8,alignItems:"center"},children:[c.jsx("span",{...B,"aria-label":`Drag to reorder ${S?.displayName??b.col}`,children:c.jsx(C,{})}),c.jsxs("span",{style:{fontFamily:T.fontFamilyMonospace,fontSize:11,color:T.colorNeutralForeground3},children:[k+1,"."]}),c.jsx(Mce,{value:b.col,currentDisplay:S?.displayName,columns:ix(i.columns,l).filter(z=>z.isValidForRead!==!1).filter(z=>z.attributeType!=="File"&&z.attributeType!=="Image").filter(z=>!td(z)),onChange:z=>v(k,{col:z})}),c.jsxs(bx,{ariaLabel:"Sort direction",children:[c.jsx(Bo,{checked:b.dir==="asc",icon:c.jsx(_1,{}),onClick:()=>v(k,{dir:"asc"}),children:"Asc"}),c.jsx(Bo,{checked:b.dir==="desc",icon:c.jsx($A,{}),onClick:()=>v(k,{dir:"desc"}),children:"Desc"})]}),c.jsx(pe,{size:"small",appearance:"subtle",icon:c.jsx(hA,{}),onClick:()=>x(k,k-1),disabled:k===0,"aria-label":"Move up"}),c.jsx(pe,{size:"small",appearance:"subtle",icon:c.jsx(lA,{}),onClick:()=>x(k,k+1),disabled:k===t.length-1,"aria-label":"Move down"}),c.jsx(pe,{size:"small",appearance:"subtle",icon:c.jsx(mn,{}),onClick:()=>y(k),"aria-label":"Remove"})]})},N)})})}),c.jsx("div",{style:{marginTop:12},children:c.jsx(pe,{icon:c.jsx(js,{}),appearance:"outline",size:"small",onClick:h,children:"Add sort"})})]})}const T7=(e,t)=>e.map(r=>{const o=Pce(t,r.col);return r.dir==="asc"?o:`${o} desc`}).join(",");function Pce(e,t){if(!e)return t;const r=ws(e,t).leaf,o=t.split("/"),n=o.pop()??t;return[...o,od(r,n)].join("/")}function Mce({value:e,currentDisplay:t,columns:r,onChange:o}){const[n,a]=m.useState(t??e);m.useEffect(()=>{a(t??e)},[t,e]);const i=n.trim().toLowerCase()===(t??"").toLowerCase()?"":n,{visible:l,matchCount:d,hiddenCount:f}=Nx(r,i,p=>[p.displayName,p.logicalName]);return c.jsxs(Ur,{freeform:!0,clearable:!0,size:"small",value:n,selectedOptions:e?[e]:[],onChange:p=>a(p.target.value),onOptionSelect:(p,h)=>{if(h.optionValue){const v=r.find(y=>y.logicalName===h.optionValue);o(h.optionValue),a(v?.displayName??h.optionValue)}else a("")},"aria-label":"Sort column",placeholder:"Search columns…",listbox:{style:{maxHeight:320}},children:[d===0&&c.jsx(at,{value:"__none",text:"",disabled:!0,children:c.jsxs("span",{style:{color:T.colorNeutralForeground3,fontSize:11},children:['No matches for "',n,'"']})}),l.map(p=>c.jsxs(at,{value:p.logicalName,text:p.displayName,children:[p.displayName," ",c.jsxs("span",{style:{color:T.colorNeutralForeground3,fontFamily:T.fontFamilyMonospace,fontSize:10},children:["· ",p.logicalName]})]},p.logicalName)),c.jsx(zx,{hiddenCount:f})]})}function _7(e){return{id:Ft("e"),nav:e,select:[],top:null,orderby:[],nestedExpand:[]}}function R7(e,t){return e.map(r=>D7(r,t)).join(",")}function D7(e,t){const r=[],n=(t?fe(t):void 0)?.navigationProperties.find(i=>i.name===e.nav),a=n?fe(n.targetEntity):void 0;if(e.select.length){const i=e.select.map(l=>ax(a,l)).join(",");r.push(`$select=${i}`)}if(e.filter&&e.filter.rules.length>0){const i=Li(e.filter,a);i&&r.push(`$filter=${i}`)}if(e.orderby.length&&r.push(`$orderby=${T7(e.orderby,a)}`),e.top!=null&&e.top>0&&r.push(`$top=${e.top}`),e.nestedExpand&&e.nestedExpand.length>0){const i=e.nestedExpand.map(l=>D7(l,n?.targetEntity)).join(",");i&&r.push(`$expand=${i}`)}return r.length?`${e.nav}(${r.join(";")})`:e.nav}function Fu(e,t,r,o){if(!e||!t)return;let n=t;o&&n.startsWith(o+"/")&&(n=n.slice(o.length+1));const a=n.split("/").filter(Boolean);let i=e;for(let l=0;l<a.length-1;l++){const d=i?.navigationProperties.find(f=>f.name===a[l]&&f.cardinality==="ManyToOne");if(!d||(r.add(d.targetEntity),i=fe(d.targetEntity),!i))return}}function pd(e,t,r,o){if(e){for(const n of e.rules)if(n.type==="rule"||n.type==="function")n.col&&Fu(t,n.col,r,o);else if(n.type==="group")pd(n,t,r,o);else if(n.type==="lambda"){const a=t?.navigationProperties.find(i=>i.name===n.nav);if(!a)continue;r.add(a.targetEntity),pd(n.inner,fe(a.targetEntity),r,n.alias)}}}function E7(e,t,r){for(const o of e){const n=t?.navigationProperties.find(i=>i.name===o.nav);if(!n)continue;r.add(n.targetEntity);const a=fe(n.targetEntity);if(o.filter&&pd(o.filter,a,r),o.orderby)for(const i of o.orderby)Fu(a,i.col,r);o.nestedExpand&&E7(o.nestedExpand,a,r)}}function qce(e,t){const r=fe(e);if(!r)return[];const o=new Set;if(t.filter&&pd(t.filter,r,o),t.apply?.prefilter&&pd(t.apply.prefilter,r,o),t.apply?.groupby)for(const n of t.apply.groupby)Fu(r,n,o);if(t.apply?.aggregates)for(const n of t.apply.aggregates)Fu(r,n.col,o);if(t.orderby)for(const n of t.orderby)Fu(r,n.col,o);return t.expand&&E7(t.expand,r,o),o.delete(e),[...o]}function Fce(e,t){const r=[];return e.length>0&&r.push({id:"related-metadata-pending",severity:"info",source:"validation",title:"Loading related-table metadata",body:`Still loading ${e.join(", ")}. Clauses on these tables are already in the URL, but lookup columns and literal types are finalised once the metadata arrives — wait for this notice to clear before copying or executing.`}),t.length>0&&r.push({id:"related-metadata-failed",severity:"warning",source:"validation",title:"Couldn't load related-table metadata",body:`Metadata for ${t.join(", ")} failed to load. Clauses on these tables are sent with lookup columns as typed and literal types inferred from the values — check the URL before executing.`}),r}function bc(e){const[,t]=m.useState(0);m.useEffect(()=>Ed(()=>t(i=>i+1)),[]);const[r,o]=m.useState(!1),n=e?fe(e):void 0,a=!!n;return m.useEffect(()=>{e&&(a||(o(!0),lr.getTable(e).finally(()=>o(!1))))},[e,a]),{table:n,loading:r}}function wye(){const[e,t]=m.useState([]),[r,o]=m.useState(!0);return m.useEffect(()=>{let n=!1;return lr.listEntities().then(a=>{n||t(a)}).catch(a=>console.warn("[useLiveEntities] listEntities failed",a)).finally(()=>{n||o(!1)}),()=>{n=!0}},[]),{entities:e,loading:r}}function Ice(e,t){const[r,o]=m.useState(0);m.useEffect(()=>Ed(()=>o(f=>f+1)),[]);const[n,a]=m.useState(()=>new Set),i=m.useMemo(()=>JSON.stringify([t.filter,t.expand,t.apply,t.orderby]),[t.filter,t.expand,t.apply,t.orderby]),l=m.useMemo(()=>e?qce(e,t):[],[e,i,r]);m.useEffect(()=>{for(const f of l)fe(f)||lr.getTable(f).then(p=>{p||a(h=>new Set(h).add(f))}).catch(()=>a(p=>new Set(p).add(f)))},[l]);const d=l.filter(f=>!fe(f));return{version:r,pending:d.filter(f=>!n.has(f)),failed:d.filter(f=>n.has(f))}}const Ace=fo({triggerButton:{minWidth:0,justifyContent:"flex-start",fontWeight:400,backgroundColor:`${T.colorNeutralBackground1} !important`,color:`${T.colorNeutralForeground1} !important`},triggerPath:{display:"inline-flex",alignItems:"center",gap:"4px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},triggerPathSegment:{fontFamily:T.fontFamilyMonospace,fontSize:"12px"},triggerSeparator:{color:T.colorNeutralForeground3,flexShrink:0},surface:{padding:"8px",width:"380px",maxHeight:"min(60vh, 480px)",display:"flex",flexDirection:"column",gap:"8px"},breadcrumb:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"2px",padding:"4px 0",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:T.colorNeutralStroke2},crumbChip:{fontFamily:T.fontFamilyMonospace,fontSize:"11px",padding:"2px 8px",borderRadius:T.borderRadiusSmall,backgroundColor:T.colorNeutralBackground3,color:T.colorNeutralForeground2,cursor:"pointer",border:"none",":hover":{backgroundColor:T.colorNeutralBackground3Hover}},crumbChipLast:{backgroundColor:T.colorBrandBackground2,color:T.colorBrandForeground1,fontWeight:600,cursor:"default"},list:{flexGrow:1,overflowY:"auto",display:"flex",flexDirection:"column"},optionRow:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",border:"none",background:"transparent",cursor:"pointer",textAlign:"left",width:"100%",fontFamily:"inherit",fontSize:"13px",borderRadius:T.borderRadiusSmall,color:T.colorNeutralForeground1,":hover":{backgroundColor:T.colorNeutralBackground1Hover,color:T.colorNeutralForeground1Hover}},optionLabel:{flexGrow:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},optionType:{fontFamily:T.fontFamilyMonospace,fontSize:"10px",color:T.colorNeutralForeground3,backgroundColor:T.colorNeutralBackground3,padding:"0 5px",borderRadius:"3px",flexShrink:0},groupHeader:{fontSize:"10px",fontWeight:600,textTransform:"uppercase",letterSpacing:"0.06em",color:T.colorNeutralForeground3,padding:"8px 8px 4px"}});function Oce(e,t){const r=[],o=fe(e);if(!o)return{tables:r,current:void 0};r.push(o);let n=o;for(const a of t){const i=n?.navigationProperties.find(d=>d.name===a&&d.cardinality==="ManyToOne");if(!i)return{tables:r,current:void 0};const l=fe(i.targetEntity);if(!l)return{tables:r,current:void 0,pendingTarget:i.targetEntity};r.push(l),n=l}return{tables:r,current:n}}function Lce(e,t,r){if(!e)return t;const o=e.columns.find(a=>a.logicalName===t);if(o)return r?o.logicalName:o.displayName;const n=e.navigationProperties.find(a=>a.name===t);return n?r?n.name:fe(n.targetEntity)?.displayName??n.name:t}function P7({rootTable:e,value:t,onChange:r,leafFilter:o,allowedColumnTypes:n,placeholder:a="Pick a column…",disabled:i,useLogicalNames:l,size:d="small"}){const f=Ace(),[p,h]=m.useState(!1),[v,y]=m.useState(""),[x,b]=m.useState([]),[k,S]=m.useState(0);m.useEffect(()=>Ed(()=>S(q=>q+1)),[]);const N=m.useMemo(()=>Oce(e,x),[e,x,k]);bc(N.pendingTarget??null),m.useEffect(()=>{if(!p)return;const q=t?t.split("/"):[];b(q.length>1?q.slice(0,-1):[]),y("")},[p]);const B=N.current,C=Vo(),{columnsAtLevel:z,navsAtLevel:R}=m.useMemo(()=>{if(!B)return{columnsAtLevel:[],navsAtLevel:[]};let q=ix(B.columns,C).filter(X=>X.isValidForRead!==!1);q=q.filter(X=>X.attributeType!=="File"&&X.attributeType!=="Image"),n&&(q=q.filter(X=>n.includes(X.attributeType))),o&&(q=q.filter(o));const A=Dg(B.navigationProperties,C).filter(X=>X.cardinality==="ManyToOne");return{columnsAtLevel:q,navsAtLevel:A}},[B,n,o,C]),E=m.useMemo(()=>{const q=v.trim().toLowerCase();return q?z.filter(A=>A.displayName.toLowerCase().includes(q)||A.logicalName.toLowerCase().includes(q)):z},[z,v]),D=m.useMemo(()=>{const q=v.trim().toLowerCase();return q?R.filter(A=>A.name.toLowerCase().includes(q)||A.targetEntity.toLowerCase().includes(q)):R},[R,v]),I=q=>{b(A=>[...A,q]),y("")},M=q=>{const A=x.length>0?`${x.join("/")}/${q}`:q;r(A),h(!1)},O=q=>{if(q<0){b([]),y("");return}b(A=>A.slice(0,q+1)),y("")},H=()=>{r(""),h(!1)},$=m.useMemo(()=>{if(!t)return a;const q=t.split("/"),A=fe(e);if(!A)return t;const X=[];let V=A;for(let oe=0;oe<q.length;oe++){const ee=q[oe];if(X.push(Lce(V,ee,!!l)),oe<q.length-1){const W=V?.navigationProperties.find(L=>L.name===ee&&L.cardinality==="ManyToOne");V=W?fe(W.targetEntity):void 0}}return X.join(" › ")},[t,e,l,a,k]),Z=m.useMemo(()=>{const q=fe(e),X=[{label:l?q?.logicalName??e:q?.displayName??e,clickable:x.length>0,navIndex:-1}];let V=q;for(let oe=0;oe<x.length;oe++){const ee=V?.navigationProperties.find(L=>L.name===x[oe]&&L.cardinality==="ManyToOne"),W=ee?fe(ee.targetEntity):void 0;X.push({label:l?x[oe]:W?.displayName??x[oe],clickable:oe<x.length-1,navIndex:oe}),V=W}return X},[x,e,l,k]);return c.jsxs(Gi,{open:p,onOpenChange:(q,A)=>h(A.open),positioning:{position:"below",align:"start",autoSize:"height-always"},withArrow:!1,children:[c.jsx(Ya,{disableButtonEnhancement:!0,children:c.jsx(pe,{size:d,appearance:"outline",disabled:i,"aria-haspopup":"dialog","aria-label":`Column: ${t?$:a}`,className:f.triggerButton,style:{maxWidth:320},children:c.jsx("span",{className:f.triggerPath,children:t?c.jsx("span",{className:f.triggerPathSegment,children:$}):c.jsx("span",{style:{color:T.colorNeutralForeground3},children:a})})})}),c.jsxs(Ui,{className:f.surface,children:[c.jsxs("div",{className:f.breadcrumb,children:[Z.map((q,A)=>c.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:2},children:[A>0&&c.jsx(zC,{className:f.triggerSeparator}),c.jsx("button",{type:"button",className:`${f.crumbChip} ${q.clickable?"":f.crumbChipLast}`,disabled:!q.clickable,onClick:()=>q.clickable&&O(q.navIndex),children:q.label})]},A)),c.jsx("span",{style:{flexGrow:1}}),t&&c.jsx(pe,{size:"small",appearance:"subtle",icon:c.jsx(hy,{}),onClick:H,"aria-label":"Clear column",title:"Clear column"})]}),c.jsx(Ht,{size:"small",appearance:"filled-lighter","aria-label":"Search columns or relationships",placeholder:"Search columns or relationships…",contentBefore:c.jsx(Ol,{}),value:v,onChange:(q,A)=>y(A.value),autoFocus:!0}),c.jsxs("div",{className:f.list,children:[N.pendingTarget&&c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,padding:12},children:[c.jsx(jr,{size:"extra-small"}),c.jsxs(Pe,{style:{color:T.colorNeutralForeground3},children:["Loading metadata for ",c.jsx("code",{children:N.pendingTarget}),"…"]})]}),E.length===0&&D.length===0&&!N.pendingTarget&&c.jsxs(Pe,{style:{color:T.colorNeutralForeground3,padding:12,fontStyle:"italic"},children:["No matches",v?` for "${v}"`:"","."]}),E.length>0&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:f.groupHeader,children:["Columns · ",E.length]}),E.map(q=>c.jsxs("button",{type:"button",className:f.optionRow,onClick:()=>M(q.logicalName),children:[c.jsx(Rd,{className:f.optionLabel,children:l?q.logicalName:q.displayName}),c.jsx("span",{className:f.optionType,children:q.attributeType})]},q.logicalName))]}),D.length>0&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:f.groupHeader,children:["Drill into related (single-valued) · ",D.length]}),D.map(q=>{const A=fe(q.targetEntity),X=l?q.targetEntity:A?.displayName??q.targetEntity;return c.jsxs("button",{type:"button",className:f.optionRow,onClick:()=>I(q.name),children:[c.jsx(jC,{style:{color:T.colorBrandForeground1,flexShrink:0}}),c.jsxs("span",{className:f.optionLabel,children:[c.jsx("span",{style:{fontFamily:T.fontFamilyMonospace,fontWeight:600},children:q.name}),c.jsxs(Pe,{style:{display:"block",color:T.colorNeutralForeground3},children:["→ ",X]})]}),c.jsx("span",{className:f.optionType,children:"N:1"})]},q.name)})]})]}),c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",borderTop:`1px solid ${T.colorNeutralStroke2}`,paddingTop:6},children:[c.jsx(Pe,{style:{color:T.colorNeutralForeground3},children:"Click a column to pick · click a relationship to drill in"}),c.jsx(pe,{size:"small",appearance:"subtle",icon:c.jsx(uA,{}),onClick:()=>h(!1),children:"Close"})]})]})]})}var Fo=(function(e){return e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday",e})({}),$ce=(function(e){return e[e.January=0]="January",e[e.February=1]="February",e[e.March=2]="March",e[e.April=3]="April",e[e.May=4]="May",e[e.June=5]="June",e[e.July=6]="July",e[e.August=7]="August",e[e.September=8]="September",e[e.October=9]="October",e[e.November=10]="November",e[e.December=11]="December",e})({}),qm=(function(e){return e[e.FirstDay=0]="FirstDay",e[e.FirstFullWeek=1]="FirstFullWeek",e[e.FirstFourDayWeek=2]="FirstFourDayWeek",e})({}),So=(function(e){return e[e.Day=0]="Day",e[e.Week=1]="Week",e[e.Month=2]="Month",e[e.WorkWeek=3]="WorkWeek",e})({});const md=7,At={DaysInOneWeek:7,MonthInOneYear:12},Hce=e=>e.getDate().toString(),Vce=(e,t)=>t.months[e.getMonth()]+" "+e.getDate()+", "+e.getFullYear(),Wce=(e,t)=>t.months[e.getMonth()]+" "+e.getFullYear(),Uce=(e,t)=>t.months[e.getMonth()],Gce=e=>e.getFullYear().toString(),Zce={months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["S","M","T","W","T","F","S"]},M7={formatDay:Hce,formatMonth:Uce,formatYear:Gce,formatMonthDayYear:Vce,formatMonthYear:Wce},q7={...Zce,goToToday:"Go to today",weekNumberFormatString:"Week number {0}",prevMonthAriaLabel:"Previous month",nextMonthAriaLabel:"Next month",prevYearAriaLabel:"Previous year",nextYearAriaLabel:"Next year",prevYearRangeAriaLabel:"Previous year range",nextYearRangeAriaLabel:"Next year range",closeButtonAriaLabel:"Close",selectedDateFormatString:"Selected date {0}",todayDateFormatString:"Today's date {0}",monthPickerHeaderAriaLabel:"{0}, change year",yearPickerHeaderAriaLabel:"{0}, change month",dayMarkedAriaLabel:"marked"};function Io(e,t){const r=new Date(e.getTime());return r.setDate(r.getDate()+t),r}function y3(e,t){return Io(e,t*At.DaysInOneWeek)}function ji(e,t){let r=new Date(e.getTime());const o=r.getMonth()+t;return r.setMonth(o),r.getMonth()!==(o%At.MonthInOneYear+At.MonthInOneYear)%At.MonthInOneYear&&(r=Io(r,-r.getDate())),r}function wl(e,t){let r=new Date(e.getTime());return r.setFullYear(e.getFullYear()+t),r.getMonth()!==(e.getMonth()%At.MonthInOneYear+At.MonthInOneYear)%At.MonthInOneYear&&(r=Io(r,-r.getDate())),r}function F7(e){return new Date(e.getFullYear(),e.getMonth(),1,0,0,0,0)}function I7(e){return new Date(e.getFullYear(),e.getMonth()+1,0,0,0,0,0)}function Kce(e){return new Date(e.getFullYear(),0,1,0,0,0,0)}function Xce(e){return new Date(e.getFullYear()+1,0,0,0,0,0,0)}function kp(e,t){return ji(e,t-e.getMonth())}function Aa(e,t){return!e&&!t?!0:!e||!t?!1:e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function lo(e,t){return x3(e)-x3(t)}function Fm(e,t,r,o,n=1){const a=[];let i,l=null;switch(o||(o=[Fo.Monday,Fo.Tuesday,Fo.Wednesday,Fo.Thursday,Fo.Friday]),t){case So.Day:[i,l]=[e,Io(e,n)],lo(i,l)>0&&([i,l]=[Io(l,1),Io(i,1)]);break;case So.Week:case So.WorkWeek:i=eue(tue(e),r),l=Io(i,At.DaysInOneWeek);break;case So.Month:i=new Date(e.getFullYear(),e.getMonth(),1),l=ji(i,1);break;default:throw new Error("Unexpected object: "+t)}let d=i;do(t!==So.WorkWeek||o.indexOf(d.getDay())!==-1)&&a.push(d),d=Io(d,1);while(!Aa(d,l));return a}function Yce(e,t){for(const r of t)if(Aa(e,r))return!0;return!1}function Jce(e,t,r,o){const n=o.getFullYear(),a=o.getMonth();let i=1;const l=new Date(n,a,i),d=i+(t+At.DaysInOneWeek-1)-oue(t,l.getDay());let f=new Date(n,a,d);i=f.getDate();const p=[];for(let h=0;h<e;h++)p.push(Qce(f,t,r)),i+=At.DaysInOneWeek,f=new Date(n,a,i);return p}function Qce(e,t,r){switch(r){case qm.FirstFullWeek:return w3(e,t,At.DaysInOneWeek);case qm.FirstFourDayWeek:return w3(e,t,4);default:return rue(e,t)}}function eue(e,t){let r=t-e.getDay();return r>0&&(r-=At.DaysInOneWeek),Io(e,r)}function tue(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function x3(e){return e.getDate()+(e.getMonth()<<5)+(e.getFullYear()<<9)}function w3(e,t,r){const o=xb(e)-1;let n=e.getDay()-o%At.DaysInOneWeek;const a=new Date(e.getFullYear()-1,$ce.December,31),i=xb(a)-1;let l=(t-n+2*At.DaysInOneWeek)%At.DaysInOneWeek;l!==0&&l>=r&&(l-=At.DaysInOneWeek);let d=o-l;return d<0&&(n-=i%At.DaysInOneWeek,l=(t-n+2*At.DaysInOneWeek)%At.DaysInOneWeek,l!==0&&l+1>=r&&(l-=At.DaysInOneWeek),d=i-l),Math.floor(d/At.DaysInOneWeek+1)}function rue(e,t){const r=xb(e)-1,n=(e.getDay()-r%At.DaysInOneWeek-t+2*At.DaysInOneWeek)%At.DaysInOneWeek;return Math.floor((r+n)/At.DaysInOneWeek+1)}function oue(e,t){return e!==Fo.Sunday&&t<e?t+At.DaysInOneWeek:t}function xb(e){const t=e.getMonth(),r=e.getFullYear();let o=0;for(let n=0;n<t;n++)o+=nue(n+1,r);return o+=e.getDate(),o}function nue(e,t){return new Date(t,e,0).getDate()}const A7=(e,t)=>{const{minDate:r}=t;return r?lo(r,e)>=1:!1},O7=(e,t)=>{const{maxDate:r}=t;return r?lo(e,r)>=1:!1},Iu=(e,t)=>{const{restrictedDates:r,minDate:o,maxDate:n}=t;return!r&&!o&&!n?!1:r&&r.some(i=>Aa(i,e))||A7(e,t)||O7(e,t)},k3=e=>{const{targetDate:t,initialDate:r,direction:o,...n}=e;let a=t;if(!Iu(t,n))return t;for(;lo(r,a)!==0&&Iu(a,n)&&!O7(a,n)&&!A7(a,n);)a=Io(a,o);if(lo(r,a)!==0&&!Iu(a,n))return a},L7=(e,t,r)=>{let o=[...e];return t&&(o=o.filter(n=>lo(n,t)>=0)),r&&(o=o.filter(n=>lo(n,r)<=0)),o},aue=(e,t,r)=>{const o=new Set(e);let n=0;for(const a of e){const i=(a+1)%7;o.has(i)&&r!==i||n++}return n<2},iue=(e,t,r)=>t&&e===So.WorkWeek&&(!aue(t,!0,r)||t.length===0)?So.Week:e,sue=e=>{const{selectedDate:t,dateRangeType:r,firstDayOfWeek:o,today:n,minDate:a,maxDate:i,weeksToShow:l,workWeekDays:d,daysToSelectInDayView:f,restrictedDates:p,markedDays:h}=e,v={minDate:a,maxDate:i,restrictedDates:p},y=n||new Date,x=e.navigatedDate?e.navigatedDate:y;let b;l&&l<=4?b=new Date(x.getFullYear(),x.getMonth(),x.getDate()):b=new Date(x.getFullYear(),x.getMonth(),1);const k=[];for(;b.getDay()!==o;)b.setDate(b.getDate()-1);b=Io(b,-md);let S=!1;const N=iue(r,d,o);let B=[];t&&(B=Fm(t,N,o,d,f),B=L7(B,a,i));let C=!0;for(let z=0;C;z++){const R=[];S=!0;for(let E=0;E<md;E++){const D=new Date(b.getTime()),I={key:b.toString(),date:b.getDate().toString(),originalDate:D,isInMonth:b.getMonth()===x.getMonth(),isToday:Aa(y,b),isSelected:Yce(b,B),isSingleSelected:B.length===1&&Aa(b,t),isInBounds:!Iu(b,v),isMarked:h?.some(M=>Aa(D,M))||!1};R.push(I),I.isInMonth&&(S=!1),b.setDate(b.getDate()+1)}C=l?z<l+1:!S||z===0,k.push(R)}return k};let gl;function S3(e,t){if(e){if(gl){gl=e;return}gl=e,t&&t.requestAnimationFrame(()=>{gl&&gl.focus(),gl=void 0})}}var Wp=(function(e){return e[e.Horizontal=0]="Horizontal",e[e.Vertical=1]="Vertical",e})({});const rn={topRightCornerDate:"fui-CalendarDayGrid__topRightCornerDate",topLeftCornerDate:"fui-CalendarDayGrid__topLeftCornerDate",bottomRightCornerDate:"fui-CalendarDayGrid__bottomRightCornerDate",bottomLeftCornerDate:"fui-CalendarDayGrid__bottomLeftCornerDate"};function lue(e){const{dir:t}=Ve(),r=a=>{const i={},l=a.slice(1,a.length-1);return l.forEach((d,f)=>{d.forEach((p,h)=>{const v=l[f-1]&&l[f-1][h]&&n(l[f-1][h].originalDate,p.originalDate,l[f-1][h].isSelected,p.isSelected),y=l[f+1]&&l[f+1][h]&&n(l[f+1][h].originalDate,p.originalDate,l[f+1][h].isSelected,p.isSelected),x=l[f][h-1]&&n(l[f][h-1].originalDate,p.originalDate,l[f][h-1].isSelected,p.isSelected),b=l[f][h+1]&&n(l[f][h+1].originalDate,p.originalDate,l[f][h+1].isSelected,p.isSelected);i[f+"_"+h]=o(v,y,x,b)})}),i},o=(a,i,l,d)=>{const f=[],p=!a&&!l,h=!a&&!d,v=!i&&!l,y=!i&&!d;return p&&f.push(t==="rtl"?rn.topRightCornerDate:rn.topLeftCornerDate),h&&f.push(t==="rtl"?rn.topLeftCornerDate:rn.topRightCornerDate),v&&f.push(t==="rtl"?rn.bottomRightCornerDate:rn.bottomLeftCornerDate),y&&f.push(t==="rtl"?rn.bottomLeftCornerDate:rn.bottomRightCornerDate),F(...f)},n=(a,i,l,d)=>{const{dateRangeType:f,firstDayOfWeek:p,workWeekDays:h}=e,v=f===So.WorkWeek?So.Week:f,y=Fm(a,v,p,h);return l!==d?!1:l&&d?!0:y.filter(x=>x.getTime()===i.getTime()).length>0};return[r,o]}const Qr={wrapper:"fui-CalendarDayGrid__wrapper",table:"fui-CalendarDayGrid__table",dayCell:"fui-CalendarDayGrid__dayCell",daySelected:"fui-CalendarDayGrid__daySelected",daySingleSelected:"fui-CalendarDayGrid__daySingleSelected",weekRow:"fui-CalendarDayGrid__weekRow",weekDayLabelCell:"fui-CalendarDayGrid__weekDayLabelCell",weekNumberCell:"fui-CalendarDayGrid__weekNumberCell",dayOutsideBounds:"fui-CalendarDayGrid__dayOutsideBounds",dayOutsideNavigatedMonth:"fui-CalendarDayGrid__dayOutsideNavigatedMonth",dayButton:"fui-CalendarDayGrid__dayButton",dayIsToday:"fui-CalendarDayGrid__dayIsToday",firstTransitionWeek:"fui-CalendarDayGrid__firstTransitionWeek",lastTransitionWeek:"fui-CalendarDayGrid__lastTransitionWeek",dayMarker:"fui-CalendarDayGrid__dayMarker",dayTodayMarker:"fui-CalendarDayGrid__dayTodayMarker"},fu={hoverStyle:"fui-CalendarDayGrid__hoverStyle",pressedStyle:"fui-CalendarDayGrid__pressedStyle"},cue=Y({base:{Byoj8tv:"f1fow5ox"}},{d:[".f1fow5ox{padding-bottom:10px;}"]}),uue=Y({base:{po53p8:"fgkb47j",Bxjg3zr:"f16vktn6",Be2twd7:"fjoy568",B6of3ja:"fvjh0tl",Byoj8tv:"f1fow5ox",qhf8xq:"f10pi13n",B73mfa3:"f14m3nip",fsow6f:"f17mccla",a9b677:"f4m2ahc"},showWeekNumbers:{a9b677:"fl524qk"}},{d:[".fgkb47j{border-collapse:collapse;}",".f16vktn6{border-spacing:0;}",".fjoy568{font-size:inherit;}",".fvjh0tl{margin-top:4px;}",".f1fow5ox{padding-bottom:10px;}",".f10pi13n{position:relative;}",".f14m3nip{table-layout:fixed;}",".f17mccla{text-align:center;}",".f4m2ahc{width:196px;}",".fl524qk{width:226px;}"]}),due=Y({base:{sj55zd:"f19n0e5",Bceei9c:"f1k6fduh",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fqtknz5",qhf8xq:"f10pi13n",By8wz76:"ftx6bta",B7iucu3:"fhs7xo9",cvlxnx:"fp6dsbd",Bweudez:"f4xgodq",D35jaw:0,Ehvor9:0,B2d49eq:0,Bup3k99:"f13vaffi",opggj9:"f1ndb8o",Bcb90bd:"f1m5g7hf",Bj67fi1:"f1lhgsq9",B2gfgcj:"fdbuq6n",Bg8e59q:"f1nsyjd2",oie0zm:"fs9m20f",mf9vuf:["f4ozsz2","fd6br62"],Gyav41:"fqrwank",tqq02e:["fd6br62","f4ozsz2"],Bua87ti:"fl9wzut"},focusIndicator:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bqhya38:"f1j6vpng",Bwxa6fj:["f1pniga2","f1ffjurs"],Bdhvstf:"f987i1v",B7zbvrb:["f1ffjurs","f1pniga2"],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:"f3znvyf",J0r882:"fqkqgbk",Bule8hv:["f1as04kd","ft30ozv"],Bjwuhne:"f8pxvb2",Ghsupd:["ft30ozv","f1as04kd"]}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f1k6fduh{cursor:pointer;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",[".f1s184ao{margin:0;}",{p:-1}],[".fqtknz5{padding:2px;}",{p:-1}],".f10pi13n{position:relative;}",".fp6dsbd.fui-CalendarDayGrid__hoverStyle{color:var(--colorNeutralForeground1Static);}",".f4xgodq.fui-CalendarDayGrid__hoverStyle{background-color:var(--colorBrandBackgroundInvertedHover);}",".f1lhgsq9.fui-CalendarDayGrid__pressedStyle{color:var(--colorNeutralForeground1Static);}",".fdbuq6n.fui-CalendarDayGrid__pressedStyle{background-color:var(--colorBrandBackgroundInvertedPressed);}",".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}],[".f3znvyf[data-fui-focus-visible]::after{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fqkqgbk[data-fui-focus-visible]::after{top:calc(var(--strokeWidthThick) * -1);}",".f1as04kd[data-fui-focus-visible]::after{right:calc(var(--strokeWidthThick) * -1);}",".ft30ozv[data-fui-focus-visible]::after{left:calc(var(--strokeWidthThick) * -1);}",".f8pxvb2[data-fui-focus-visible]::after{bottom:calc(var(--strokeWidthThick) * -1);}"],m:[["@media (forced-colors: active){.ftx6bta{background-color:Window;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fhs7xo9{color:WindowText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f13vaffi.fui-CalendarDayGrid__hoverStyle{outline:1px solid Highlight;}}",{p:-1,m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ndb8o.fui-CalendarDayGrid__hoverStyle{z-index:3;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1m5g7hf.fui-CalendarDayGrid__hoverStyle .fui-CalendarDayGrid__dayTodayMarker{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nsyjd2.fui-CalendarDayGrid__pressedStyle{background-color:Window;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fs9m20f.fui-CalendarDayGrid__pressedStyle{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4ozsz2.fui-CalendarDayGrid__pressedStyle{border-right-color:Highlight;}.fd6br62.fui-CalendarDayGrid__pressedStyle{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fqrwank.fui-CalendarDayGrid__pressedStyle{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fl9wzut.fui-CalendarDayGrid__pressedStyle{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6vpng[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ffjurs[data-fui-focus-visible]::after{border-left-color:Highlight;}.f1pniga2[data-fui-focus-visible]::after{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f987i1v[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}]],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"]}),fue=Y({base:{De3pzq:"f1vevd59",sj55zd:"ff5vbop",By8wz76:"f1nz3ub2",Bcq6wej:"fjq791v",Jcjdmf:["fkq2p2y","f1sehlss"],sc4o1m:"f11odvng",Bosien3:["f1sehlss","fkq2p2y"],B7iucu3:"fqc85l4",B8gzw0y:"f1h3a8gf",a3nq4f:"f1chdfq9",Bnf3alp:"fq0dbue",pdtyat:"fb3dhiz",z6f07v:"f1xnoze0",Bec5aua:"f1mubwa3"}},{d:[".f1vevd59{background-color:var(--colorBrandBackgroundInvertedSelected);}",".ff5vbop{color:var(--colorNeutralForeground1Static);}"],m:[["@media (forced-colors: active){.f1nz3ub2{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjq791v{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1sehlss{border-left-color:Highlight;}.fkq2p2y{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f11odvng{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fqc85l4{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb3dhiz:hover,.fb3dhiz.fui-CalendarDayGrid__hoverStyle,.fb3dhiz.fui-CalendarDayGrid__pressedStyle{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1xnoze0:hover,.f1xnoze0.fui-CalendarDayGrid__hoverStyle,.f1xnoze0.fui-CalendarDayGrid__pressedStyle{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1mubwa3>.fui-CalendarDayGrid__dayMarker{background-color:Window;}}",{m:"(forced-colors: active)"}]],h:[".f1chdfq9:hover,.f1chdfq9.fui-CalendarDayGrid__hoverStyle,.f1chdfq9.fui-CalendarDayGrid__pressedStyle{color:var(--colorNeutralForeground1Static);}",".fq0dbue:hover,.fq0dbue.fui-CalendarDayGrid__hoverStyle,.fq0dbue.fui-CalendarDayGrid__pressedStyle{background-color:var(--colorBrandBackgroundInvertedSelected);}"]}),pue=Y({base:{sj55zd:"ff5vbop",Bec5aua:"f1mubwa3",B2ns3jv:"fy35frb",Bwxf4zv:0,Bp8cau8:0,Buy161k:0,Bpzqh5e:0,Fh6yq5:"f8kna22",Bjnjwcd:0,Jh9m0u:0,k24jl4:0,yen2pv:0,isizv9:0,Fmkg4n:0,Bksmc0g:0,ydc5we:0,g36fg5:0,xn840g:0,Bvql7r5:0,Cmeexk:0,Brwjcd2:0,Buxuwzc:0,Bz06psx:0,B75pphk:0,Bkp00lz:"f11572cp",B4k9tdm:"f8qifl1",Ba18yr8:"f19flthw",B5fqyig:["fwk98tc","f3izcvc"],Bjrn8xn:"fi9jqiz",Bkpapd2:["f3izcvc","fwk98tc"],xrravj:"f12o3e7s",z0dzun:"f1fjwm8e"}},{d:[".ff5vbop{color:var(--colorNeutralForeground1Static);}",".fy35frb>.fui-CalendarDayGrid__dayButton{background-color:var(--colorBrandBackgroundInvertedSelected);}",[".f8kna22>.fui-CalendarDayGrid__dayButton{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f11572cp>.fui-CalendarDayGrid__dayButton{border:1px solid var(--colorBrandStroke1);}",{p:-2}]],m:[["@media (forced-colors: active){.f1mubwa3>.fui-CalendarDayGrid__dayMarker{background-color:Window;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f8qifl1>.fui-CalendarDayGrid__dayButton{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f19flthw>.fui-CalendarDayGrid__dayButton{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3izcvc>.fui-CalendarDayGrid__dayButton{border-left-color:Highlight;}.fwk98tc>.fui-CalendarDayGrid__dayButton{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fi9jqiz>.fui-CalendarDayGrid__dayButton{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f12o3e7s>.fui-CalendarDayGrid__dayButton{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1fjwm8e>.fui-CalendarDayGrid__dayButton{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}]]}),mue=Y({base:{qhf8xq:"f10pi13n",mlyf9c:"f1gazwyt"},animation:{vin17d:"f5f2jbu",Bf5fcs:"fywypte",Ezkn3b:"f1ee2ue"},horizontalBackward:{Bv12yb3:["f1o9w3l8","f1kwjajc"]},horizontalForward:{Bv12yb3:["f1kwjajc","f1o9w3l8"]},verticalBackward:{Bv12yb3:"fgl3yn7"},verticalForward:{Bv12yb3:"faiu5ye"}},{d:[".f10pi13n{position:relative;}",".f5f2jbu{animation-duration:0.367s;}",".fywypte{animation-fill-mode:both;}",".f1ee2ue{animation-timing-function:cubic-bezier(.1,.9,.2,1);}",".f1o9w3l8{animation-name:f5j8bii,f2lgmc3;}",".f1kwjajc{animation-name:f5j8bii,fpktcv7;}",".fgl3yn7{animation-name:f5j8bii,f3bv9km;}",".faiu5ye{animation-name:f5j8bii,funtx0y;}"],w:[".f1gazwyt:focus-within{z-index:1;}"],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes f2lgmc3{from{pointer-events:none;transform:translate3d(-20px, 0, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}","@keyframes fpktcv7{from{pointer-events:none;transform:translate3d(20px, 0, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}","@keyframes f3bv9km{from{pointer-events:none;transform:translate3d(0, -20px, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}","@keyframes funtx0y{from{pointer-events:none;transform:translate3d(0, 20px, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}"]}),gue=Y({base:{famaaq:"f1xqy1su",vin17d:"fhsqnsn",Bf5fcs:"fywypte",Bv12yb3:"f1h7u52p",Ezkn3b:"fjq4c94"}},{d:[".f1xqy1su{-webkit-user-select:none;-moz-user-select:none;user-select:none;}",".fhsqnsn{animation-duration:0.267s;}",".fywypte{animation-fill-mode:both;}",".f1h7u52p{animation-name:f5j8bii;}",".fjq4c94{animation-timing-function:cubic-bezier(.1,.25,.75,.9);}"],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}"]}),hue=Y({base:{De3pzq:"f1c21dwh",h3c5rm:0,vrafjx:0,Bekrc4i:0,u1mtju:["fe2nn5g","f1rcbay7"],B7ck84d:"f1ewtqcl",sj55zd:"fxc4j92",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bqenvij:"fxldao9",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",a9b677:"f1w9dchk"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".fe2nn5g{border-right:1px solid var(--colorNeutralStroke2);}",{p:-1}],[".f1rcbay7{border-left:1px solid var(--colorNeutralStroke2);}",{p:-1}],".f1ewtqcl{box-sizing:border-box;}",".fxc4j92{color:var(--colorNeutralForeground4);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fxldao9{height:28px;}",[".f1s184ao{margin:0;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],".f1w9dchk{width:28px;}"]}),vue=Y({base:{x734em:"f1v4z6xg",B0ssf13:"f1u9q7oh",B8h8h5z:"f1a22lcc",B7iucu3:"f1cyfu5x"}},{d:[".f1v4z6xg,.f1v4z6xg:disabled,.f1v4z6xg button,.f1v4z6xg.fui-CalendarDayGrid__hoverStyle,.f1v4z6xg.fui-CalendarDayGrid__pressedStyle{background-color:var(--colorTransparentBackground);}",".f1u9q7oh,.f1u9q7oh:disabled,.f1u9q7oh button,.f1u9q7oh.fui-CalendarDayGrid__hoverStyle,.f1u9q7oh.fui-CalendarDayGrid__pressedStyle{color:var(--colorNeutralForegroundDisabled);}",".f1a22lcc,.f1a22lcc:disabled,.f1a22lcc button,.f1a22lcc.fui-CalendarDayGrid__hoverStyle,.f1a22lcc.fui-CalendarDayGrid__pressedStyle{pointer-events:none;}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),bue=Y({lightenDaysOutsideNavigatedMonth:{sj55zd:"fxc4j92",Bhrd7zp:"figsok6",B7iucu3:"f1cyfu5x"}},{d:[".fxc4j92{color:var(--colorNeutralForeground4);}",".figsok6{font-weight:var(--fontWeightRegular);}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),yue=Y({base:{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:"f1ym3bx4",Bceei9c:"f1k6fduh",Be2twd7:"fy9rknc",Bhrd7zp:"ff5ikls",Bqenvij:"frvgh55",Bg96gwp:"f8xlz6g",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",a9b677:"fq4mcun",Bx0yju7:"f10y451g",l98f4w:"f1dwpgx3",Jwef8y:"f18a0fwf",Btmb5he:0,gu71dq:0,B2zomw9:0,Fgk69s:0,Bw6eyry:"f1mhq3ai",ecr2s2:"f7la2e8"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".f3bhgqh{border:none;}",{p:-2}],".f1ym3bx4{color:inherit;}",".f1k6fduh{cursor:pointer;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".ff5ikls{font-weight:inherit;}",".frvgh55{height:24px;}",".f8xlz6g{line-height:24px;}",[".f1gl81tg{overflow:visible;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],".fq4mcun{width:24px;}",".f10y451gspan{height:inherit;}",".f1dwpgx3span{line-height:inherit;}"],h:[".f18a0fwf:hover{background-color:var(--colorBrandBackgroundInvertedHover);}",[".f1mhq3ai:hover{border-radius:var(--borderRadiusMedium);}",{p:-1}]],a:[".f7la2e8:active{background-color:var(--colorBrandBackgroundInvertedPressed);}"]}),xue=Y({base:{mc9l5x:"f22iagw",Brf1p80:"f4d9j23",Bt984gj:"f122n59",sj55zd:"f1phragk",Bhrd7zp:"fl43uef",kof2un:"f1b5s8wn",Bec5aua:"f1mubwa3"}},{d:[".f22iagw{display:flex;}",".f4d9j23{justify-content:center;}",".f122n59{align-items:center;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".f1b5s8wn>.fui-CalendarDayGrid__dayMarker{background-color:var(--colorNeutralForegroundOnBrand);}"],m:[["@media (forced-colors: active){.f1mubwa3>.fui-CalendarDayGrid__dayMarker{background-color:Window;}}",{m:"(forced-colors: active)"}]]}),wue=Y({base:{mc9l5x:"f22iagw",Brf1p80:"f4d9j23",Bt984gj:"f122n59",De3pzq:"ffp7eso",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1qtlz2s",a9b677:"f64fuq3",Bqenvij:"fjamq6b",Bg96gwp:"f1n95isl",By8wz76:"fq1p4f3",Bcq6wej:"fcwbuzc",Jcjdmf:["f1iyvy17","fu9dqmu"],sc4o1m:"fa5hmw6",Bosien3:["fu9dqmu","f1iyvy17"],B7iucu3:"fygpdla",B8gzw0y:"f1h3a8gf"}},{d:[".f22iagw{display:flex;}",".f4d9j23{justify-content:center;}",".f122n59{align-items:center;}",".ffp7eso{background-color:var(--colorBrandBackground);}",[".f1qtlz2s{border-radius:100%;}",{p:-1}],".f64fuq3{width:20px;}",".fjamq6b{height:20px;}",".f1n95isl{line-height:20px;}"],m:[["@media (forced-colors: active){.fq1p4f3{background-color:WindowText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcwbuzc{border-top-color:WindowText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1iyvy17{border-right-color:WindowText;}.fu9dqmu{border-left-color:WindowText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fa5hmw6{border-bottom-color:WindowText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fygpdla{color:Window;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}]]}),kue=Y({base:{Bqenvij:"fniina8",abs64n:"fk73vx1",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",qhf8xq:"f1euv43f",a9b677:"f3tsq5r"},verticalForward:{vin17d:"f5f2jbu",Bf5fcs:"fywypte",Bv12yb3:"fupj2f5",Ezkn3b:"f1ee2ue"}},{d:[".fniina8{height:0;}",".fk73vx1{opacity:0;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f1euv43f{position:absolute;}",".f3tsq5r{width:0;}",".f5f2jbu{animation-duration:0.367s;}",".fywypte{animation-fill-mode:both;}",".fupj2f5{animation-name:f199e34v,f76svrd,f13agkrc;}",".f1ee2ue{animation-timing-function:cubic-bezier(.1,.9,.2,1);}"],k:["@keyframes f199e34v{from{opacity:1;}to{opacity:0;visibility:hidden;}}","@keyframes f76svrd{from{transform:translate3d(0, 0, 0);}to{transform:translate3d(0, -20px, 0);}}","@keyframes f13agkrc{100%{height:0px;overflow:hidden;width:0px;}99.9%{height:28px;overflow:visible;width:100%;}0%{height:28px;overflow:visible;width:100%;}}"]}),Sue=Y({base:{Bqenvij:"fniina8",B6of3ja:"flykjtj",abs64n:"fk73vx1",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",qhf8xq:"f1euv43f",a9b677:"f3tsq5r"},verticalBackward:{vin17d:"f5f2jbu",Bf5fcs:"fywypte",Bv12yb3:"fifoktk",Ezkn3b:"f1ee2ue"}},{d:[".fniina8{height:0;}",".flykjtj{margin-top:-28px;}",".fk73vx1{opacity:0;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f1euv43f{position:absolute;}",".f3tsq5r{width:0;}",".f5f2jbu{animation-duration:0.367s;}",".fywypte{animation-fill-mode:both;}",".fifoktk{animation-name:f199e34v,f18895iq,f13agkrc;}",".f1ee2ue{animation-timing-function:cubic-bezier(.1,.9,.2,1);}"],k:["@keyframes f199e34v{from{opacity:1;}to{opacity:0;visibility:hidden;}}","@keyframes f18895iq{from{transform:translate3d(0, 0, 0);}to{transform:translate3d(0, 20px, 0);}}","@keyframes f13agkrc{100%{height:0px;overflow:hidden;width:0px;}99.9%{height:28px;overflow:visible;width:100%;}0%{height:28px;overflow:visible;width:100%;}}"]}),Bue=Y({base:{De3pzq:"fnggedw",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1qtlz2s",B5kzvoi:"f1oq0udb",Bqenvij:"f6ywr7j",oyh7mz:["f1vgc2s3","f1e31b4d"],jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"fcpdi13",qhf8xq:"f1euv43f",j35jbq:["f1e31b4d","f1vgc2s3"],a9b677:"faro0ui",By8wz76:"fq1p4f3",B8gzw0y:"f1h3a8gf"}},{d:[".fnggedw{background-color:var(--colorBrandForeground2);}",[".f1qtlz2s{border-radius:100%;}",{p:-1}],".f1oq0udb{bottom:1px;}",".f6ywr7j{height:4px;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",[".fcpdi13{margin:auto;}",{p:-1}],".f1euv43f{position:absolute;}",".faro0ui{width:4px;}"],m:[["@media (forced-colors: active){.fq1p4f3{background-color:WindowText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}]]}),jue=Y({corners:{Cy64m2:["f1yxjewa","f5xfyye"],Bnn43bw:["f1kpdnd7","fokqrni"],feanbc:["f127emps","f1s6s1el"],B4268ip:["f39vr2a","frpqyrn"]}},{d:[".f1yxjewa.fui-CalendarDayGrid__topRightCornerDate{border-top-right-radius:var(--borderRadiusMedium);}",".f5xfyye.fui-CalendarDayGrid__topRightCornerDate{border-top-left-radius:var(--borderRadiusMedium);}",".f1kpdnd7.fui-CalendarDayGrid__topLeftCornerDate{border-top-left-radius:var(--borderRadiusMedium);}",".fokqrni.fui-CalendarDayGrid__topLeftCornerDate{border-top-right-radius:var(--borderRadiusMedium);}",".f127emps.fui-CalendarDayGrid__bottomRightCornerDate{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1s6s1el.fui-CalendarDayGrid__bottomRightCornerDate{border-bottom-left-radius:var(--borderRadiusMedium);}",".f39vr2a.fui-CalendarDayGrid__bottomLeftCornerDate{border-bottom-left-radius:var(--borderRadiusMedium);}",".frpqyrn.fui-CalendarDayGrid__bottomLeftCornerDate{border-bottom-right-radius:var(--borderRadiusMedium);}"]}),Cue=e=>{"use no memo";const t=cue(),r=uue(),o=due(),n=fue(),a=pue(),i=mue(),l=gue(),d=hue(),f=vue(),p=bue(),h=yue(),v=xue(),y=kue(),x=Sue(),b=Bue(),k=jue(),S=wue(),{animateBackwards:N,animationDirection:B,lightenDaysOutsideNavigatedMonth:C,showWeekNumbers:z}=e;return{wrapper:F(Qr.wrapper,t.base),table:F(Qr.table,r.base,z&&r.showWeekNumbers),dayCell:F(Qr.dayCell,o.base,o.focusIndicator,k.corners),daySelected:F(Qr.daySelected,n.base),daySingleSelected:F(Qr.daySingleSelected,a.base),weekRow:F(Qr.weekRow,i.base,N!==void 0&&i.animation,N!==void 0&&(B===Wp.Horizontal?N?i.horizontalBackward:i.horizontalForward:N?i.verticalBackward:i.verticalForward)),weekDayLabelCell:F(Qr.weekDayLabelCell,l.base),weekNumberCell:F(Qr.weekNumberCell,d.base),dayOutsideBounds:F(Qr.dayOutsideBounds,f.base),dayOutsideNavigatedMonth:F(Qr.dayOutsideNavigatedMonth,C&&p.lightenDaysOutsideNavigatedMonth),dayButton:F(Qr.dayButton,h.base),dayIsToday:F(Qr.dayIsToday,v.base),firstTransitionWeek:F(Qr.firstTransitionWeek,y.base,N!==void 0&&B!==Wp.Horizontal&&!N&&y.verticalForward),lastTransitionWeek:F(Qr.lastTransitionWeek,x.base,N!==void 0&&B!==Wp.Horizontal&&N&&x.verticalBackward),dayMarker:F(Qr.dayMarker,b.base),dayTodayMarker:F(Qr.dayTodayMarker,S.base)}},Nue=e=>{const{showWeekNumbers:t,strings:r,firstDayOfWeek:o,allFocusable:n,weeksToShow:a,weeks:i,classNames:l}=e,d=r.shortDays.slice();let f=-1;const p=i[1];for(let h=0;h<i[1].length;h++)if(p[h].originalDate.getDate()===1){f=h;break}if(a===1&&f>=0){const h=(f+o)%md;d[h]=r.shortMonths[i[1][f].originalDate.getMonth()]}return m.createElement("tr",null,t&&m.createElement("th",{className:l.dayCell}),d.map((h,v)=>{const y=(v+o)%md,x=r.days[y];return m.createElement("th",{className:F(l.dayCell,l.weekDayLabelCell),scope:"col",key:d[y]+" "+v,title:x,"aria-label":x,tabIndex:n?0:void 0},d[y])}))},zue=e=>{"use no memo";const{navigatedDate:t,dateTimeFormatter:r,allFocusable:o,strings:n,activeDescendantId:a,navigatedDayRef:i,calculateRoundedStyles:l,weeks:d,classNames:f,day:p,dayIndex:h,weekIndex:v,weekCorners:y,ariaHidden:x,customDayCellRef:b,dateRangeType:k,daysToSelectInDayView:S,onSelectDate:N,restrictedDates:B,minDate:C,maxDate:z,onNavigateDate:R,getDayInfosInRangeOfDay:E,getRefsFromDayInfos:D}=e;var I;const M=(I=y?.[v+"_"+h])!==null&&I!==void 0?I:"",O=Aa(t,p.originalDate),{dir:H}=Ve(),$=(W,L)=>{let te,ue=1;if(W.key===ys?(te=y3(L,-1),ue=-1):W.key===Fi?te=y3(L,1):W.key===o2(Ps,H)?(te=Io(L,-1),ue=-1):W.key===o2(Ms,H)&&(te=Io(L,1)),!te)return;const ne={initialDate:L,targetDate:te,direction:ue,restrictedDates:B,minDate:C,maxDate:z};let ie=k3(ne);ie||(ne.direction=-ue,ie=k3(ne)),!(d&&ie&&d.slice(1,d.length-1).some(Te=>Te.some(Ee=>Aa(Ee.originalDate,ie))))&&ie&&(R(ie,!0),W.preventDefault())},Z=W=>{const L=E(p),te=D(L);te.forEach((ue,ne)=>{if(ue&&(ue.classList.add(fu.hoverStyle),!L[ne].isSelected&&k===So.Day&&S&&S>1)){ue.classList.remove(rn.bottomLeftCornerDate,rn.bottomRightCornerDate,rn.topLeftCornerDate,rn.topRightCornerDate);const ie=l(!1,!1,ne>0,ne<te.length-1).trim();ie&&ue.classList.add(...ie.trim().split(" "))}})},q=W=>{const L=E(p);D(L).forEach(ue=>{ue&&ue.classList.add(fu.pressedStyle)})},A=W=>{const L=E(p);D(L).forEach(ue=>{ue&&ue.classList.remove(fu.pressedStyle)})},X=W=>{const L=E(p),te=D(L);te.forEach((ue,ne)=>{if(ue&&(ue.classList.remove(fu.hoverStyle),ue.classList.remove(fu.pressedStyle),!L[ne].isSelected&&k===So.Day&&S&&S>1)){const ie=l(!1,!1,ne>0,ne<te.length-1).trim();ie&&ue.classList.remove(...ie.trim().split(" "))}})},V=W=>{W.key===kr?N?.(p.originalDate):$(W,p.originalDate)};let oe=p.originalDate.getDate()+", "+n.months[p.originalDate.getMonth()]+", "+p.originalDate.getFullYear();p.isMarked&&(oe=oe+", "+n.dayMarkedAriaLabel);const ee=!x&&(o||(p.isInBounds?!0:void 0));return m.createElement("td",{className:F(f.dayCell,y&&M,p.isSelected&&!p.isSingleSelected&&f.daySelected,p.isSingleSelected&&f.daySingleSelected,!p.isInBounds&&f.dayOutsideBounds,!p.isInMonth&&f.dayOutsideNavigatedMonth),ref:W=>{b?.(W,p.originalDate,f),p.setRef(W),O&&(i.current=W)},"aria-disabled":!x&&!p.isInBounds,onClick:p.isInBounds&&!x?p.onSelected:void 0,onMouseOver:x?void 0:Z,onMouseDown:x?void 0:q,onMouseUp:x?void 0:A,onMouseOut:x?void 0:X,onKeyDown:x?void 0:V,role:"gridcell",tabIndex:O||ee?0:void 0,"aria-current":p.isToday?"date":void 0,"aria-selected":p.isInBounds?p.isSelected:void 0},m.createElement("button",{key:p.key+"button",className:F(f.dayButton,p.isToday&&f.dayIsToday),"aria-label":oe,id:O?a:void 0,disabled:!x&&!p.isInBounds,type:"button",tabIndex:-1},m.createElement("span",{className:p.isToday?F(f.dayTodayMarker):void 0},r.formatDay(p.originalDate)),p.isMarked&&m.createElement("div",{"aria-hidden":"true",className:f.dayMarker})))},Lv=e=>{const{ariaHidden:t,classNames:r,week:o,weeks:n,weekIndex:a,rowClassName:i,ariaRole:l,showWeekNumbers:d,firstDayOfWeek:f,firstWeekOfYear:p,navigatedDate:h,strings:v}=e,y=d?Jce(n.length,f,p,h):null,x=y?v.weekNumberFormatString&&v.weekNumberFormatString.replace("{0}",`${y[a]}`):"";return m.createElement("tr",{role:l,"aria-hidden":t,className:i,key:a+"_"+o[0].key},d&&y&&m.createElement("th",{className:r.weekNumberCell,key:a,title:x,"aria-label":x,scope:"row"},m.createElement("span",null,y[a])),o.map((b,k)=>m.createElement(zue,{...e,key:b.key,day:b,dayIndex:k})))};function Tue(e,t,r){"use no memo";return m.useMemo(()=>{var n;const a=sue(e),i=a[1][0].originalDate,l=a[a.length-1][6].originalDate,d=((n=e.getMarkedDays)===null||n===void 0?void 0:n.call(e,i,l))||[],f=[];for(let p=0;p<a.length;p++){const h=[];for(let v=0;v<md;v++){const y=a[p][v],x={onSelected:()=>t(y.originalDate),setRef:r(y.key),...y,isMarked:y.isMarked||d?.some(b=>Aa(y.originalDate,b))};h.push(x)}f.push(h)}return f},[e])}function _ue(){const e=m.useRef({});return[e,r=>o=>{o===null?delete e.current[r]:e.current[r]=o}]}function Rue(e){const t=m.useRef(void 0);m.useEffect(()=>{t.current=e[0][0].originalDate});const r=t.current;if(!(!r||r.getTime()===e[0][0].originalDate.getTime()))return!(r<=e[0][0].originalDate)}const $7=e=>{const t=m.useRef(null),r=bt(),o=R=>{var E,D;const{firstDayOfWeek:I,minDate:M,maxDate:O,workWeekDays:H,daysToSelectInDayView:$,restrictedDates:Z}=e,q={minDate:M,maxDate:O,restrictedDates:Z};let A=Fm(R,y,I,H,$);A=L7(A,M,O),A=A.filter(X=>!Iu(X,q)),(E=e.onSelectDate)===null||E===void 0||E.call(e,R,A),(D=e.onNavigateDate)===null||D===void 0||D.call(e,R,!0)},[n,a]=_ue(),i=Tue(e,o,a),l=Rue(i),[d,f]=lue(e);m.useImperativeHandle(e.componentRef,()=>({focus(){var R,E;(E=t.current)===null||E===void 0||(R=E.focus)===null||R===void 0||R.call(E)}}),[]);const p=R=>{const E=Due(e.dateRangeType,e.workWeekDays),D=Fm(R.originalDate,E,e.firstDayOfWeek,e.workWeekDays,e.daysToSelectInDayView).map(M=>M.getTime());return i.reduce((M,O)=>M.concat(O.filter(H=>D.indexOf(H.originalDate.getTime())!==-1)),[])},h=R=>{let E=[];return E=R.map(D=>n.current[D.key]),E},{gridLabel:v,dateRangeType:y,showWeekNumbers:x,labelledBy:b,lightenDaysOutsideNavigatedMonth:k,animationDirection:S}=e,N=Cue({animateBackwards:l,animationDirection:S,lightenDaysOutsideNavigatedMonth:k===void 0?!0:k,showWeekNumbers:x}),B=d(i),C={weeks:i,navigatedDayRef:t,calculateRoundedStyles:f,activeDescendantId:r,classNames:N,weekCorners:B,getDayInfosInRangeOfDay:p,getRefsFromDayInfos:h},z=Ho({axis:"grid-linear"});return m.createElement("table",{className:F(N.table,e.className),"aria-multiselectable":"false","aria-label":v,"aria-labelledby":b,"aria-activedescendant":r,role:"grid",...z},m.createElement("tbody",null,m.createElement(Nue,{...e,classNames:N,weeks:i}),m.createElement(Lv,{...e,...C,week:i[0],weekIndex:-1,rowClassName:N.firstTransitionWeek,"aria-role":"presentation",ariaHidden:!0}),i.slice(1,i.length-1).map((R,E)=>m.createElement(Lv,{...e,...C,key:E,week:R,weekIndex:E,rowClassName:N.weekRow})),m.createElement(Lv,{...e,...C,week:i[i.length-1],weekIndex:-2,rowClassName:N.lastTransitionWeek,"aria-role":"presentation",ariaHidden:!0})))};$7.displayName="CalendarDayGrid";function Due(e,t){if(t&&e===So.WorkWeek){const r=t.slice().sort();let o=!0;for(let n=1;n<r.length;n++)if(r[n]!==r[n-1]+1){o=!1;break}if(!o||t.length===0)return So.Week}return e}const hl={root:"fui-CalendarDay",header:"fui-CalendarDay__header",monthAndYear:"fui-CalendarDay__monthAndYear",monthComponents:"fui-CalendarDay__monthComponents",headerIconButton:"fui-CalendarDay__headerIconButton",disabledStyle:"fui-CalendarDay__disabledStyle"},Eue=Y({base:{B7ck84d:"f1e4lqlz",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1sy4kr4",a9b677:"f4m2ahc"},normalize:{E5pizo:"f1couhl3",B7ck84d:"f1ewtqcl",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai"},showWeekNumbers:{a9b677:"fl524qk"}},{d:[".f1e4lqlz{box-sizing:content-box;}",[".f1sy4kr4{padding:12px;}",{p:-1}],".f4m2ahc{width:196px;}",".f1couhl3{box-shadow:none;}",".f1ewtqcl{box-sizing:border-box;}",[".f1s184ao{margin:0;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],".fl524qk{width:226px;}"]}),Pue=Y({base:{mc9l5x:"ftuwxu6",Bqenvij:"fxldao9",Bg96gwp:"f1vzymgo",qhf8xq:"f10pi13n",a9b677:"fly5x3f"}},{d:[".ftuwxu6{display:inline-flex;}",".fxldao9{height:28px;}",".f1vzymgo{line-height:44px;}",".f10pi13n{position:relative;}",".fly5x3f{width:100%;}"]}),Mue=Y({base:{Bt984gj:"f122n59",De3pzq:"f1c21dwh",icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"],Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",sj55zd:"f19n0e5",mc9l5x:"f14t3ns0",Bh6795r:"fqerorx",Bahqtrf:"f1mo0ibp",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f336tjw",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f1td8mcv","f1udkdxo"],fsow6f:["f1o700av","fes3tcz"],ygn44y:"f1cmbuwj",Huce71:"fz5stix"},animation:{vin17d:"fhsqnsn",Bf5fcs:"fywypte",Bv12yb3:"f1h7u52p",Ezkn3b:"fjq4c94"},headerIsClickable:{Jwef8y:"f18a0fwf",Bi91k9c:"f3sdaeg",eoavqd:"f8491dx",pugfm4:0,ukgb2i:0,Dwtyhm:0,Biisq0s:"f15rpok4",iro3zm:"f1wvkgvo",B2d53fq:"f1wdoaqd",c3iz72:"f13c0t7h",mghro0:0,Bx68yb:0,syojd9:0,E5hylx:"fy2scak"}},{d:[".f122n59{align-items:center;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f19n0e5{color:var(--colorNeutralForeground1);}",".f14t3ns0{display:inline-block;}",".fqerorx{flex-grow:1;}",".f1mo0ibp{font-family:inherit;}",".fkhj508{font-size:var(--fontSizeBase300);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".f336tjw{line-height:28px;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],[".f1td8mcv{padding:0 4px 0 10px;}",{p:-1}],[".f1udkdxo{padding:0 10px 0 4px;}",{p:-1}],".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".f1cmbuwj{text-overflow:ellipsis;}",".fz5stix{white-space:nowrap;}",".fhsqnsn{animation-duration:0.267s;}",".fywypte{animation-fill-mode:both;}",".f1h7u52p{animation-name:f5j8bii;}",".fjq4c94{animation-timing-function:cubic-bezier(.1,.25,.75,.9);}"],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}"],h:[".f18a0fwf:hover{background-color:var(--colorBrandBackgroundInvertedHover);}",".f3sdaeg:hover{color:var(--colorBrandForegroundOnLightHover);}",".f8491dx:hover{cursor:pointer;}",[".f15rpok4:hover{outline:1px solid var(--colorTransparentStroke);}",{p:-1}],".f1wvkgvo:hover:active{background-color:var(--colorBrandBackgroundInvertedPressed);}",".f1wdoaqd:hover:active{color:var(--colorBrandForegroundOnLightPressed);}",".f13c0t7h:hover:active{cursor:pointer;}",[".fy2scak:hover:active{outline:1px solid var(--colorTransparentStroke);}",{p:-1}]]}),que=Y({base:{qb2dma:"fpydfdc",mc9l5x:"ftuwxu6"}},{d:[".fpydfdc{align-self:flex-end;}",".ftuwxu6{display:inline-flex;}"]}),Fue=Y({base:{De3pzq:"f1c21dwh",icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"],Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",sj55zd:"f11d4kpn",mc9l5x:"ftgm304",Bahqtrf:"f1mo0ibp",Be2twd7:"fy9rknc",Bqenvij:"fxldao9",Bg96gwp:"f336tjw",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",qhf8xq:"f10pi13n",fsow6f:"f17mccla",a9b677:"f1w9dchk",Jwef8y:"f18a0fwf",Bi91k9c:"f3sdaeg",eoavqd:"f8491dx",pugfm4:0,ukgb2i:0,Dwtyhm:0,Biisq0s:"f15rpok4",iro3zm:"f1wvkgvo",B2d53fq:"f1wdoaqd"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f11d4kpn{color:var(--colorNeutralForeground3);}",".ftgm304{display:block;}",".f1mo0ibp{font-family:inherit;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fxldao9{height:28px;}",".f336tjw{line-height:28px;}",[".f1gl81tg{overflow:visible;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],".f10pi13n{position:relative;}",".f17mccla{text-align:center;}",".f1w9dchk{width:28px;}"],h:[".f18a0fwf:hover{background-color:var(--colorBrandBackgroundInvertedHover);}",".f3sdaeg:hover{color:var(--colorBrandForegroundOnLightHover);}",".f8491dx:hover{cursor:pointer;}",[".f15rpok4:hover{outline:1px solid var(--colorTransparentStroke);}",{p:-1}],".f1wvkgvo:hover:active{background-color:var(--colorBrandBackgroundInvertedPressed);}",".f1wdoaqd:hover:active{color:var(--colorBrandForegroundOnLightPressed);}"]}),Iue=Y({base:{Bg33ivm:"f1oelgmz",t69wg0:"fhh1ekj",Bnh7jwd:"fdb0nwj"}},{d:[".f1oelgmz,.f1oelgmz:disabled,.f1oelgmz button{color:var(--colorNeutralForegroundDisabled);}",".fhh1ekj,.fhh1ekj:disabled,.fhh1ekj button{pointer-events:none;}"],m:[["@media (forced-colors: active){.fdb0nwj,.fdb0nwj:disabled,.fdb0nwj button{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),Aue=e=>{"use no memo";const t=Eue(),r=Pue(),o=Mue(),n=que(),a=Fue(),i=Iue(),{className:l,headerIsClickable:d,showWeekNumbers:f}=e;return{root:F(hl.root,t.normalize,t.base,f&&t.showWeekNumbers,l),header:F(hl.header,r.base),monthAndYear:F(hl.monthAndYear,o.base,o.animation,d&&o.headerIsClickable),monthComponents:F(hl.monthComponents,n.base),headerIconButton:F(hl.headerIconButton,a.base),disabledStyle:F(hl.disabledStyle,i.base)}},H7=e=>{const t=m.useRef(null);m.useImperativeHandle(e.componentRef,()=>({focus(){var z,R;(R=t.current)===null||R===void 0||(z=R.focus)===null||z===void 0||z.call(R)}}),[]);const{strings:r,gridLabel:o,navigatedDate:n,dateTimeFormatter:a,className:i,onHeaderSelect:l,showSixWeeksByDefault:d,minDate:f,maxDate:p,restrictedDates:h,onNavigateDate:v,showWeekNumbers:y,dateRangeType:x,animationDirection:b}=e,k=Aue({className:i,headerIsClickable:!!l,showWeekNumbers:y}),S=a.formatMonthYear(n,r),N=l?"button":"div",B=r.yearPickerHeaderAriaLabel?r.yearPickerHeaderAriaLabel.replace("{0}",S):S,{...C}=e;return m.createElement("div",{className:k.root},m.createElement("div",{className:k.header},m.createElement(N,{"aria-label":l?B:void 0,className:k.monthAndYear,onClick:l,tabIndex:l?0:-1,onKeyDown:Up(l),type:"button"},m.createElement("span",{"aria-live":"polite","aria-atomic":"true"},S)),m.createElement(V7,{...e,classNames:k})),m.createElement($7,{...C,gridLabel:`${S}, ${o}`,componentRef:t,strings:r,navigatedDate:n,weeksToShow:d?6:void 0,dateTimeFormatter:a,minDate:f,maxDate:p,restrictedDates:h,onNavigateDate:v,dateRangeType:x}))};H7.displayName="CalendarDay";const V7=e=>{const{minDate:t,maxDate:r,navigatedDate:o,navigationIcons:n,allFocusable:a,strings:i,showCloseButton:l,classNames:d,onNavigateDate:f,onDismiss:p}=e,h=()=>{f(ji(o,1),!1)},v=()=>{f(ji(o,-1),!1)},y=t?lo(t,F7(o))<0:!0,x=r?lo(I7(o),r)<0:!0;return m.createElement("div",{className:d.monthComponents},m.createElement("button",{className:F(d.headerIconButton,!y&&d.disabledStyle),tabIndex:y?void 0:a?0:-1,"aria-disabled":!y,onClick:y?v:void 0,onKeyDown:y?Up(v):void 0,title:i.prevMonthAriaLabel?i.prevMonthAriaLabel+" "+i.months[ji(o,-1).getMonth()]:void 0,type:"button"},n.upNavigation),m.createElement("button",{className:F(d.headerIconButton,!x&&d.disabledStyle),tabIndex:x?void 0:a?0:-1,"aria-disabled":!x,onClick:x?h:void 0,onKeyDown:x?Up(h):void 0,title:i.nextMonthAriaLabel?i.nextMonthAriaLabel+" "+i.months[ji(o,1).getMonth()]:void 0,type:"button"},n.downNavigation),l&&m.createElement("button",{className:d.headerIconButton,onClick:p,onKeyDown:Up(p),title:i.closeButtonAriaLabel,type:"button"},n.dismiss))};V7.displayName="CalendarDayNavigationButtons";const Up=e=>t=>{t.key===kr&&e?.()},Nn={root:"fui-CalendarPicker",headerContainer:"fui-CalendarPicker__headerContainer",currentItemButton:"fui-CalendarPicker__currentItemButton",navigationButtonsContainer:"fui-CalendarPicker__navigationButtonsContainer",navigationButton:"fui-CalendarPicker__navigationButton",gridContainer:"fui-CalendarPicker__gridContainer",buttonRow:"fui-CalendarPicker__buttonRow",itemButton:"fui-CalendarPicker__itemButton",current:"fui-CalendarPicker__current",selected:"fui-CalendarPicker__selected",disabled:"fui-CalendarPicker__disabled"},Oue=Y({base:{B7ck84d:"f1e4lqlz",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1sy4kr4",a9b677:"f4m2ahc"},normalize:{E5pizo:"f1couhl3",B7ck84d:"f1ewtqcl",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai"}},{d:[".f1e4lqlz{box-sizing:content-box;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],[".f1sy4kr4{padding:12px;}",{p:-1}],".f4m2ahc{width:196px;}",".f1couhl3{box-shadow:none;}",".f1ewtqcl{box-sizing:border-box;}",[".f1s184ao{margin:0;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}]]}),Lue=Y({base:{mc9l5x:"f22iagw"}},{d:[".f22iagw{display:flex;}"]}),$ue=Y({base:{De3pzq:"f1c21dwh",icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"],Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",sj55zd:"f1ym3bx4",Bh6795r:"fqerorx",Bahqtrf:"f1mo0ibp",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f1td8mcv","f1udkdxo"],fsow6f:["f1o700av","fes3tcz"]},animation:{vin17d:"fhsqnsn",Bf5fcs:"fywypte",Bv12yb3:"f1h7u52p",Ezkn3b:"fjq4c94"},hasHeaderClickCallback:{Jwef8y:"f18a0fwf",Bi91k9c:"f3sdaeg",eoavqd:"f8491dx",pugfm4:0,ukgb2i:0,Dwtyhm:0,Biisq0s:"f15rpok4",iro3zm:"f1wvkgvo",B2d53fq:"f1wdoaqd",c3iz72:"f13c0t7h",mghro0:0,Bx68yb:0,syojd9:0,E5hylx:"fy2scak"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1ym3bx4{color:inherit;}",".fqerorx{flex-grow:1;}",".f1mo0ibp{font-family:inherit;}",".fkhj508{font-size:var(--fontSizeBase300);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",[".f1gl81tg{overflow:visible;}",{p:-1}],[".f1td8mcv{padding:0 4px 0 10px;}",{p:-1}],[".f1udkdxo{padding:0 10px 0 4px;}",{p:-1}],".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fhsqnsn{animation-duration:0.267s;}",".fywypte{animation-fill-mode:both;}",".f1h7u52p{animation-name:f5j8bii;}",".fjq4c94{animation-timing-function:cubic-bezier(.1,.25,.75,.9);}"],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}"],h:[".f18a0fwf:hover{background-color:var(--colorBrandBackgroundInvertedHover);}",".f3sdaeg:hover{color:var(--colorBrandForegroundOnLightHover);}",".f8491dx:hover{cursor:pointer;}",[".f15rpok4:hover{outline:1px solid var(--colorTransparentStroke);}",{p:-1}],".f1wvkgvo:hover:active{background-color:var(--colorBrandBackgroundInvertedPressed);}",".f1wdoaqd:hover:active{color:var(--colorBrandForegroundOnLightPressed);}",".f13c0t7h:hover:active{cursor:pointer;}",[".fy2scak:hover:active{outline:1px solid var(--colorTransparentStroke);}",{p:-1}]]}),Hue=Y({base:{Bt984gj:"f122n59",mc9l5x:"f22iagw"}},{d:[".f122n59{align-items:center;}",".f22iagw{display:flex;}"]}),Vue=Y({base:{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",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",sj55zd:"f19n0e5",mc9l5x:"ftgm304",Bahqtrf:"f1mo0ibp",Be2twd7:"fy9rknc",Bqenvij:"fxldao9",Bg96gwp:"f336tjw",sshi5w:"f1ysfysz",Bf4jedk:"f107v6xj",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",qhf8xq:"f10pi13n",fsow6f:"f17mccla",a9b677:"f1w9dchk",Jwef8y:"f18a0fwf",Bi91k9c:"f3sdaeg",eoavqd:"f8491dx",pugfm4:0,ukgb2i:0,Dwtyhm:0,Biisq0s:"f15rpok4",iro3zm:"f1wvkgvo",B2d53fq:"f1wdoaqd"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".f3bhgqh{border:none;}",{p:-2}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f19n0e5{color:var(--colorNeutralForeground1);}",".ftgm304{display:block;}",".f1mo0ibp{font-family:inherit;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fxldao9{height:28px;}",".f336tjw{line-height:28px;}",".f1ysfysz{min-height:28px;}",".f107v6xj{min-width:28px;}",[".f1gl81tg{overflow:visible;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],".f10pi13n{position:relative;}",".f17mccla{text-align:center;}",".f1w9dchk{width:28px;}"],h:[".f18a0fwf:hover{background-color:var(--colorBrandBackgroundInvertedHover);}",".f3sdaeg:hover{color:var(--colorBrandForegroundOnLightHover);}",".f8491dx:hover{cursor:pointer;}",[".f15rpok4:hover{outline:1px solid var(--colorTransparentStroke);}",{p:-1}],".f1wvkgvo:hover:active{background-color:var(--colorBrandBackgroundInvertedPressed);}",".f1wdoaqd:hover:active{color:var(--colorBrandForegroundOnLightPressed);}"]}),Wue=Y({base:{B6of3ja:"fvjh0tl"}},{d:[".fvjh0tl{margin-top:4px;}"]}),Uue=Y({base:{jrapky:"f15tpi3i",sw9gdo:"f1gdbdba"},animation:{vin17d:"f5f2jbu",Bf5fcs:"fywypte",Ezkn3b:"f1ee2ue"},horizontalBackward:{Bv12yb3:["f1o9w3l8","f1kwjajc"]},horizontalForward:{Bv12yb3:["f1kwjajc","f1o9w3l8"]},verticalBackward:{Bv12yb3:"fgl3yn7"},verticalForward:{Bv12yb3:"faiu5ye"}},{d:[".f15tpi3i{margin-bottom:16px;}",".f1gdbdba:last-of-type{margin-bottom:0;}",".f5f2jbu{animation-duration:0.367s;}",".fywypte{animation-fill-mode:both;}",".f1ee2ue{animation-timing-function:cubic-bezier(.1,.9,.2,1);}",".f1o9w3l8{animation-name:f5j8bii,f2lgmc3;}",".f1kwjajc{animation-name:f5j8bii,fpktcv7;}",".fgl3yn7{animation-name:f5j8bii,f3bv9km;}",".faiu5ye{animation-name:f5j8bii,funtx0y;}"],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes f2lgmc3{from{pointer-events:none;transform:translate3d(-20px, 0, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}","@keyframes fpktcv7{from{pointer-events:none;transform:translate3d(20px, 0, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}","@keyframes f3bv9km{from{pointer-events:none;transform:translate3d(0, -20px, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}","@keyframes funtx0y{from{pointer-events:none;transform:translate3d(0, 20px, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}"]}),Gue=Y({base:{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",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",sj55zd:"f11d4kpn",Bahqtrf:"f1mo0ibp",Be2twd7:"fy9rknc",Bqenvij:"fbhnoac",Bg96gwp:"fc76cdq",sshi5w:"f1w5jphr",Bf4jedk:"f12clzc2",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:["f1ytixos","fqk6p8t"],B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",a9b677:"feqmc2u",Btgfwho:["f65zstl","f1yt3tqw"],xrote9:"flfbxit",Bja5ulm:"ff5vbxt",Jwef8y:"f18a0fwf",Bi91k9c:"f1u69ym5",eoavqd:"f8491dx",pugfm4:0,ukgb2i:0,Dwtyhm:0,Biisq0s:"f15rpok4",Bbkh6qg:"fse5cfe",Bahaeuw:"f1d0gba8",fmph8g:"fj239l",Bv6y5q5:0,uq1ffc:0,Bokaozi:0,Bfrni1f:"f1szuehs",iro3zm:"f1wvkgvo",rxnm8d:"f1n99sc9",Dcq74g:"fqfbdvs",Bs60fxl:"f12gwge8"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".f3bhgqh{border:none;}",{p:-2}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f11d4kpn{color:var(--colorNeutralForeground3);}",".f1mo0ibp{font-family:inherit;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fbhnoac{height:40px;}",".fc76cdq{line-height:40px;}",".f1w5jphr{min-height:40px;}",".f12clzc2{min-width:40px;}",[".f1ytixos{margin:0 12px 0 0;}",{p:-1}],[".fqk6p8t{margin:0 0 0 12px;}",{p:-1}],[".f1gl81tg{overflow:visible;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],".feqmc2u{width:40px;}",".f65zstl:nth-child(4n + 4){margin-right:0;}",".f1yt3tqw:nth-child(4n + 4){margin-left:0;}",".flfbxit:nth-child(n + 9){margin-bottom:0;}",".ff5vbxt div{font-weight:var(--fontWeightRegular);}"],h:[".f18a0fwf:hover{background-color:var(--colorBrandBackgroundInvertedHover);}",".f1u69ym5:hover{color:var(--colorNeutralForeground1Static);}",".f8491dx:hover{cursor:pointer;}",[".f15rpok4:hover{outline:1px solid var(--colorTransparentStroke);}",{p:-1}],".f1wvkgvo:hover:active{background-color:var(--colorBrandBackgroundInvertedPressed);}"],m:[["@media (forced-colors: active){.fse5cfe:hover{background-color:Window;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1d0gba8:hover{color:WindowText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fj239l:hover{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1szuehs:hover{outline:1px solid Highlight;}}",{p:-1,m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1n99sc9:hover:active{background-color:Window;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fqfbdvs:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f12gwge8:hover:active{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}]]}),Zue=Y({highlightCurrent:{De3pzq:"ffp7eso",sj55zd:"f1phragk",Bhrd7zp:"fl43uef",By8wz76:"fq1p4f3",B7iucu3:"fygpdla",B8gzw0y:"f1h3a8gf",mk428o:"ffic4m0",B1lrsqs:"f13lyc4l",B1piyhd:"f1cnwl3o",of3gr0:"f1w17wdy",hvfrz3:"fx2qnub"}},{d:[".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"],m:[["@media (forced-colors: active){.fq1p4f3{background-color:WindowText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fygpdla{color:Window;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cnwl3o:hover,.f1cnwl3o:hover:active{background-color:WindowText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1w17wdy:hover,.f1w17wdy:hover:active{color:Window;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fx2qnub:hover,.fx2qnub:hover:active{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}]],h:[".ffic4m0:hover,.ffic4m0:hover:active{background-color:var(--colorBrandBackground);}",".f13lyc4l:hover,.f13lyc4l:hover:active{color:var(--colorNeutralForegroundOnBrand);}"]}),Kue=Y({highlightSelected:{De3pzq:"f1vevd59",sj55zd:"ff5vbop",Bhrd7zp:"fl43uef",By8wz76:"f1nz3ub2",B7iucu3:"fygpdla",B8gzw0y:"f1h3a8gf",Bja5ulm:"fospawf",Jwef8y:"fbo057p",Bi91k9c:"f1u69ym5",Bbkh6qg:"f1tx4pjd",Bahaeuw:"fn03n9l",fmph8g:"fj239l",iro3zm:"f1wvkgvo"}},{d:[".f1vevd59{background-color:var(--colorBrandBackgroundInvertedSelected);}",".ff5vbop{color:var(--colorNeutralForeground1Static);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fospawf div{font-weight:var(--fontWeightSemibold);}"],m:[["@media (forced-colors: active){.f1nz3ub2{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fygpdla{color:Window;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tx4pjd:hover{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn03n9l:hover{color:Window;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fj239l:hover{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}]],h:[".fbo057p:hover{background-color:var(--colorBrandBackgroundInvertedSelected);}",".f1u69ym5:hover{color:var(--colorNeutralForeground1Static);}",".f1wvkgvo:hover:active{background-color:var(--colorBrandBackgroundInvertedPressed);}"]}),Xue=Y({base:{Bg33ivm:"f1oelgmz",t69wg0:"fhh1ekj",B7iucu3:"f1cyfu5x",B8gzw0y:"f1h3a8gf"}},{d:[".f1oelgmz,.f1oelgmz:disabled,.f1oelgmz button{color:var(--colorNeutralForegroundDisabled);}",".fhh1ekj,.fhh1ekj:disabled,.fhh1ekj button{pointer-events:none;}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}]]}),W7=e=>{"use no memo";const t=Oue(),r=Lue(),o=$ue(),n=Hue(),a=Vue(),i=Wue(),l=Uue(),d=Gue(),f=Zue(),p=Kue(),h=Xue(),{animateBackwards:v,animationDirection:y,className:x,hasHeaderClickCallback:b,highlightCurrent:k,highlightSelected:S}=e;return{root:F(Nn.root,t.normalize,t.base,x),headerContainer:F(Nn.headerContainer,r.base),currentItemButton:F(Nn.currentItemButton,o.base,v!==void 0&&o.animation,b&&o.hasHeaderClickCallback),navigationButtonsContainer:F(Nn.navigationButtonsContainer,n.base),navigationButton:F(Nn.navigationButton,a.base),gridContainer:F(Nn.gridContainer,i.base),buttonRow:F(Nn.buttonRow,l.base,l.animation,v!==void 0&&(y===Wp.Horizontal?v?l.horizontalBackward:l.horizontalForward:v?l.verticalBackward:l.verticalForward)),itemButton:F(Nn.itemButton,d.base),selected:F(Nn.selected,S&&p.highlightSelected),current:F(Nn.current,k&&f.highlightCurrent),disabled:F(Nn.disabled,h.base)}},As=e=>{"use no memo";return W7(e)},Rl=12,B3=4,U7={prevRangeAriaLabel:void 0,nextRangeAriaLabel:void 0},G7=e=>{const{className:t,highlightCurrentYear:r,highlightSelectedYear:o,year:n,selected:a,disabled:i,componentRef:l,onSelectYear:d,onRenderYear:f}=e,p=m.useRef(null);m.useImperativeHandle(l,()=>({focus(){var b,k;(k=p.current)===null||k===void 0||(b=k.focus)===null||b===void 0||b.call(k)}}),[]);const h=()=>{d?.(n)},v=b=>{b.key===kr&&d?.(n)},y=As({className:t,highlightCurrent:r,highlightSelected:o});var x;return m.createElement("button",{className:F(y.itemButton,a&&y.selected,i&&y.disabled),type:"button",role:"gridcell",onClick:i?void 0:h,onKeyDown:i?void 0:v,disabled:i,"aria-selected":a,ref:p},(x=f?.(n))!==null&&x!==void 0?x:n)};G7.displayName="CalendarYearGridCell";const Z7=e=>{const{className:t,fromYear:r,toYear:o,animationDirection:n,animateBackwards:a,minYear:i,maxYear:l,onSelectYear:d,selectedYear:f,componentRef:p}=e,h=m.useRef(null),v=m.useRef(null);m.useImperativeHandle(p,()=>({focus(){var C,z;(z=h.current||v.current)===null||z===void 0||(C=z.focus)===null||C===void 0||C.call(z)}}),[]);const y=C=>{const z=C===f,R=i!==void 0&&C<i||l!==void 0&&C>l,E=C===new Date().getFullYear();return m.createElement(G7,{...e,key:C,year:C,selected:z,current:E,disabled:R,onSelectYear:d,componentRef:z?h:E?v:void 0})},x=As({className:t,animateBackwards:a,animationDirection:n}),b=C=>{var z,R;return(R=(z=e.onRenderYear)===null||z===void 0?void 0:z.call(e,C))!==null&&R!==void 0?R:C},k=`${b(r)} - ${b(o)}`;let S=r;const N=[];for(let C=0;C<(o-r+1)/B3;C++){N.push([]);for(let z=0;z<B3;z++)N[C].push(y(S)),S++}const B=Ho({axis:"grid"});return m.createElement("div",{...B,className:x.gridContainer,role:"grid","aria-label":k},N.map((C,z)=>m.createElement("div",{key:"yearPickerRow_"+z+"_"+r,role:"row",className:x.buttonRow},C)))};Z7.displayName="CalendarYearGrid";const gs={Previous:0,Next:1},wb=e=>{const{className:t,strings:r=U7,direction:o,onSelectPrev:n,onSelectNext:a,fromYear:i,toYear:l,maxYear:d,minYear:f,navigationIcons:p}=e,h=As({className:t}),v=o===gs.Previous?r.prevRangeAriaLabel:r.nextRangeAriaLabel,y=o===gs.Previous?-Rl:Rl,x={fromYear:i+y,toYear:l+y},b=v?typeof v=="string"?v:v(x):void 0,k=o===gs.Previous?f!==void 0&&i<f:d!==void 0&&e.fromYear+Rl>d,S=()=>{o===gs.Previous?n?.():a?.()},N=B=>{B.key===kr&&S()};return m.createElement("button",{className:F(h.navigationButton,k&&h.disabled),onClick:k?void 0:S,onKeyDown:k?void 0:N,type:"button",title:b,disabled:k},o===gs.Previous?p.upNavigation:p.downNavigation)};wb.displayName="CalendarYearNavArrow";const K7=e=>{const{className:t}=e,r=As({className:t});return m.createElement("div",{className:r.navigationButtonsContainer},m.createElement(wb,{...e,direction:gs.Previous}),m.createElement(wb,{...e,direction:gs.Next}))};K7.displayName="CalendarYearNav";const X7=e=>{const{className:t,fromYear:r,toYear:o,strings:n=U7,animateBackwards:a,animationDirection:i}=e,l=()=>{var h;(h=e.onHeaderSelect)===null||h===void 0||h.call(e,!0)},d=h=>{(h.key===kr||h.key===ro)&&l()},f=h=>{var v,y;return(y=(v=e.onRenderYear)===null||v===void 0?void 0:v.call(e,h))!==null&&y!==void 0?y:h},p=As({className:t,hasHeaderClickCallback:!!e.onHeaderSelect,animateBackwards:a,animationDirection:i});if(e.onHeaderSelect){const h=n.rangeAriaLabel,v=n.headerAriaLabelFormatString,y=h?typeof h=="string"?h:h(e):void 0,x=v?v.replace("{0}",y??""):y;return m.createElement("button",{className:p.currentItemButton,onClick:l,onKeyDown:d,"aria-label":x,role:"button",type:"button"},m.createElement("span",{"aria-live":"assertive","aria-atomic":"true"},f(r)," - ",f(o)))}return m.createElement("div",{className:p.current},f(r)," - ",f(o))};X7.displayName="CalendarYearTitle";const Y7=e=>{const{className:t,animateBackwards:r,animationDirection:o,onRenderTitle:n}=e,a=As({className:t,hasHeaderClickCallback:!!e.onHeaderSelect,animateBackwards:r,animationDirection:o});var i;return m.createElement("div",{className:a.headerContainer},(i=n?.(e))!==null&&i!==void 0?i:m.createElement(X7,e),m.createElement(K7,e))};Y7.displayName="CalendarYearHeader";function Yue({selectedYear:e,navigatedYear:t}){const r=e||t||new Date().getFullYear(),o=Math.floor(r/10)*10,n=m.useRef(o);m.useRef(()=>{n.current=o});const a=n.current;if(!(!a||a===o))return a>o}function Jue({selectedYear:e,navigatedYear:t,onNavigateDate:r}){const o=m.useMemo(()=>e||t||Math.floor(new Date().getFullYear()/10)*10,[t,e]),[n,a]=m.useState(o),i=()=>{const f=n+Rl;a(f),r?.(f)},l=()=>{const f=n-Rl;a(f),r?.(f)};m.useEffect(()=>{a(o)},[o]);const d=n+Rl-1;return[n,d,i,l]}const J7=e=>{const t=Yue(e),[r,o,n,a]=Jue(e),i=m.useRef(null);m.useImperativeHandle(e.componentRef,()=>({focus(){var f,p;(p=i.current)===null||p===void 0||(f=p.focus)===null||f===void 0||f.call(p)}}));const{className:l}=e,d=As({className:l});return m.createElement("div",{className:d.root},m.createElement(Y7,{...e,fromYear:r,toYear:o,onSelectPrev:a,onSelectNext:n,animateBackwards:t}),m.createElement(Z7,{...e,fromYear:r,toYear:o,animateBackwards:t,componentRef:i}))};J7.displayName="CalendarYear";const Que=e=>{"use no memo";return W7(e)},Sp=4;function ede({navigatedDate:e}){const t=e.getFullYear(),r=m.useRef(void 0);m.useEffect(()=>{r.current=t});const o=r.current;if(!(o===void 0||o===t))return o>t}function tde({componentRef:e}){const t=m.useRef(null),r=m.useRef(null),o=m.useRef(!1),n=m.useCallback(()=>{r.current?r.current.focus():t.current&&t.current.focus()},[]);return m.useImperativeHandle(e,()=>({focus:n}),[n]),m.useEffect(()=>{o.current&&(n(),o.current=!1)}),[t,r,()=>{o.current=!0}]}const Q7=e=>{const{allFocusable:t,animationDirection:r,className:o,componentRef:n,dateTimeFormatter:a=M7,highlightCurrentMonth:i,highlightSelectedMonth:l,maxDate:d,minDate:f,navigatedDate:p,navigationIcons:h,onHeaderSelect:v,onNavigateDate:y,selectedDate:x,strings:b,today:k=new Date,yearPickerHidden:S=!1}=e,[N,B,C]=tde({componentRef:n}),[z,R]=m.useState(!1),E=ede({navigatedDate:p}),D=te=>()=>O(te),I=()=>{y(wl(p,1),!1)},M=()=>{y(wl(p,-1),!1)},O=te=>{v?.(),y(kp(p,te),!0)},H=()=>{S?v?.():(C(),R(!0))},$=te=>{if(C(),p.getFullYear()!==te){let ne=new Date(p.getTime());ne.setFullYear(te),d&&ne>d?ne=kp(ne,d.getMonth()):f&&ne<f&&(ne=kp(ne,f.getMonth())),y(ne,!0)}R(!1)},Z=te=>{C(),R(!1)},q=a,A=f?lo(f,Kce(p))<0:!0,X=d?lo(Xce(p),d)<0:!0,V=Que({className:o,hasHeaderClickCallback:!!v||!S,highlightCurrent:i,highlightSelected:l,animateBackwards:E,animationDirection:r}),oe=Ho({axis:"grid"});if(z){const[te,ue]=rde({dateTimeFormatter:a,navigatedDate:p,strings:b});return m.createElement(J7,{key:"calendarYear",minYear:f?f.getFullYear():void 0,maxYear:d?d.getFullYear():void 0,onSelectYear:$,onHeaderSelect:Z,selectedYear:x?x.getFullYear():p?p.getFullYear():void 0,navigatedYear:p.getFullYear(),navigationIcons:h,onRenderYear:te,strings:ue,componentRef:B,highlightCurrentYear:i,highlightSelectedYear:l,animationDirection:r})}const ee=[];for(let te=0;te<b.shortMonths.length/Sp;te++)ee.push(te);const W=q.formatYear(p),L=b.monthPickerHeaderAriaLabel?b.monthPickerHeaderAriaLabel.replace("{0}",W):W;return m.createElement("div",{className:V.root},m.createElement("div",{className:V.headerContainer},m.createElement("button",{className:V.currentItemButton,onClick:H,onKeyDown:Bp(H),"aria-label":L,tabIndex:v||!S?0:-1,type:"button"},m.createElement("span",{"aria-live":"polite","aria-atomic":"true"},W)),m.createElement("div",{className:V.navigationButtonsContainer},m.createElement("button",{className:F(V.navigationButton,!A&&V.disabled),"aria-disabled":!A,tabIndex:A?void 0:t?0:-1,onClick:A?M:void 0,onKeyDown:A?Bp(M):void 0,title:b.prevYearAriaLabel?b.prevYearAriaLabel+" "+q.formatYear(wl(p,-1)):void 0,type:"button"},h.upNavigation),m.createElement("button",{className:F(V.navigationButton,!X&&V.disabled),"aria-disabled":!X,tabIndex:X?void 0:t?0:-1,onClick:X?I:void 0,onKeyDown:X?Bp(I):void 0,title:b.nextYearAriaLabel?b.nextYearAriaLabel+" "+q.formatYear(wl(p,1)):void 0,type:"button"},h.downNavigation))),m.createElement("div",{...oe,className:V.gridContainer,role:"grid","aria-label":W},ee.map(te=>{const ue=b.shortMonths.slice(te*Sp,(te+1)*Sp);return m.createElement("div",{key:"monthRow_"+te+p.getFullYear(),role:"row",className:V.buttonRow},ue.map((ne,ie)=>{const ge=te*Sp+ie,Te=kp(p,ge),Ee=p.getMonth()===ge,Me=x.getMonth()===ge,lt=x.getFullYear()===p.getFullYear(),ht=(f?lo(f,I7(Te))<1:!0)&&(d?lo(F7(Te),d)<1:!0);return m.createElement("button",{ref:Ee?N:void 0,role:"gridcell",className:F(V.itemButton,i&&ode(ge,p.getFullYear(),k)&&V.current,l&&Me&&lt&&V.selected,!ht&&V.disabled),disabled:!t&&!ht,key:ge,onClick:ht?D(ge):void 0,onKeyDown:ht?Bp(D(ge)):void 0,"aria-label":q.formatMonth(Te,b),"aria-selected":Ee,tabIndex:ht?0:-1,type:"button"},ne)}))})))};Q7.displayName="CalendarMonth";function rde({dateTimeFormatter:e,navigatedDate:t,strings:r}){const o=l=>{if(e){const d=new Date(t.getTime());return d.setFullYear(l),e.formatYear(d)}return String(l)},n=l=>`${o(l.fromYear)} - ${o(l.toYear)}`;return[o,{rangeAriaLabel:n,prevRangeAriaLabel:l=>r.prevYearRangeAriaLabel?`${r.prevYearRangeAriaLabel} ${n(l)}`:"",nextRangeAriaLabel:l=>r.nextYearRangeAriaLabel?`${r.nextYearRangeAriaLabel} ${n(l)}`:"",headerAriaLabelFormatString:r.monthPickerHeaderAriaLabel}]}function ode(e,t,r){return r.getFullYear()===t&&r.getMonth()===e}function Bp(e){return t=>{t.key===kr&&e()}}const j3={dismiss:m.createElement(nc,null),downNavigation:m.createElement(uC,null),upNavigation:m.createElement(dC,null)},pu={root:"fui-Calendar",divider:"fui-Calendar__divider",goTodayButton:"fui-Calendar__goTodayButton",monthPickerWrapper:"fui-Calendar__monthPickerWrapper",liveRegion:"fui-Calendar__liveRegion"},nde=Y({base:{mc9l5x:"f22iagw",a9b677:"f13dwy2t"},normalize:{E5pizo:"f1couhl3",B7ck84d:"f1ewtqcl",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai"},monthPickerNotVisible:{Beiy3e4:"f1vx9l62"},dayAndMonthPickersVisible:{a9b677:"fcy5b15"},dayPickerVisibleAndWeekNumbersShown:{a9b677:"fhsg0in"},dayAndMonthPickersVisibleAndWeekNumbersShown:{a9b677:"fcarq7f"}},{d:[".f22iagw{display:flex;}",".f13dwy2t{width:220px;}",".f1couhl3{box-shadow:none;}",".f1ewtqcl{box-sizing:border-box;}",[".f1s184ao{margin:0;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],".f1vx9l62{flex-direction:column;}",".fcy5b15{width:440px;}",".fhsg0in{width:250px;}",".fcarq7f{width:470px;}"]}),ade=Y({base:{h3c5rm:0,vrafjx:0,Bekrc4i:0,u1mtju:["fe2nn5g","f1rcbay7"],Bhzewxz:"f15twtuk"}},{d:[[".fe2nn5g{border-right:1px solid var(--colorNeutralStroke2);}",{p:-1}],[".f1rcbay7{border-left:1px solid var(--colorNeutralStroke2);}",{p:-1}],".f15twtuk{top:0;}"]}),ide=Y({base:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}"]}),sde=Y({base:{qb2dma:"fpydfdc",De3pzq:"f1c21dwh",icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"],B5kzvoi:"f1yab3r1",B7ck84d:"f1e4lqlz",sj55zd:"f19n0e5",Bahqtrf:"f1mo0ibp",Be2twd7:"fy9rknc",Bqenvij:"f1tvdnth",Bg96gwp:"fpfng1i",t21cq0:["f17vyym1","fb5scp"],B6of3ja:"f4gg0ds",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1p2x7z2",seuwu7:"fvy6vk6",Jwef8y:"f9ql6rf",Bi91k9c:"f1f1pb61",eoavqd:"f8491dx",Bv6y5q5:0,uq1ffc:0,Bokaozi:0,Bfrni1f:"f14aog0w",Bkzqrjd:0,hu2duy:0,n9pfp1:0,dfw8yp:0,qugvs6:"f1fgm6o",B2d53fq:"fc9d3oc",Dyrjrp:"f1cqwcg4",Be90el1:"fmjaa5u"}},{d:[".fpydfdc{align-self:flex-end;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".f1yab3r1{bottom:0;}",".f1e4lqlz{box-sizing:content-box;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1mo0ibp{font-family:inherit;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".f1tvdnth{height:30px;}",".fpfng1i{line-height:30px;}",".f17vyym1{margin-right:16px;}",".fb5scp{margin-left:16px;}",".f4gg0ds{margin-top:3px;}",[".f1gl81tg{overflow:visible;}",{p:-1}],[".f1p2x7z2{padding:0 4px;}",{p:-1}],".fvy6vk6 div{font-size:var(--fontSizeBase200);}",".f1cqwcg4:disabled{color:var(--colorNeutralForegroundDisabled);}",".fmjaa5u:disabled{pointer-events:none;}"],h:[".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f1f1pb61:hover{color:var(--colorBrandForeground1);}",".f8491dx:hover{cursor:pointer;}",".fc9d3oc:hover:active{color:var(--colorBrandForeground2);}"],m:[["@media (forced-colors: active){.f14aog0w:hover{outline:var(--strokeWidthThin);}}",{p:-1,m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1fgm6o:hover{border-radius:var(--borderRadiusSmall);}}",{p:-1,m:"(forced-colors: active)"}]]}),lde=Y({base:{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",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:"f1mk8lai",qhf8xq:"f1euv43f",a9b677:"frkrog8"}},{d:[[".f3bhgqh{border:none;}",{p:-2}],".f1mpe4l3{height:1px;}",[".f1jlpb2r{margin:-1px;}",{p:-1}],[".f1a3p1vp{overflow:hidden;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],".f1euv43f{position:absolute;}",".frkrog8{width:1px;}"]}),cde=e=>{"use no memo";const t=nde(),r=ade(),o=ide(),n=sde(),a=lde(),{className:i,isDayPickerVisible:l,isMonthPickerVisible:d,showWeekNumbers:f}=e;return{root:F(pu.root,t.base,t.normalize,!d&&t.monthPickerNotVisible,l&&d&&!f&&t.dayAndMonthPickersVisible,l&&!d&&f&&t.dayPickerVisibleAndWeekNumbersShown,l&&d&&f&&t.dayAndMonthPickersVisibleAndWeekNumbersShown,i),divider:F(pu.divider,r.base),monthPickerWrapper:F(pu.monthPickerWrapper,o.base),goTodayButton:F(pu.goTodayButton,n.base),liveRegion:F(pu.liveRegion,a.base)}},ude=440,dde=[Fo.Monday,Fo.Tuesday,Fo.Wednesday,Fo.Thursday,Fo.Friday];function fde(e){const{value:t,today:r,onSelectDate:o}=e,n=m.useMemo(()=>r??new Date,[r]),[a,i]=Xt({state:t,defaultState:t?void 0:n,initialState:n}),[l=n,d]=m.useState(t),[f=n,p]=m.useState(t),[h=n,v]=m.useState(t);return t&&h.valueOf()!==t.valueOf()&&(d(t),p(t),v(t)),[a,l,f,(k,S)=>{p(k),d(k),i(k),o?.(k,S)},k=>{p(k),d(k)},k=>{p(k)}]}function pde({isDayPickerVisible:e,isMonthPickerVisible:t,showMonthPickerAsOverlay:r}){const o=e8({isDayPickerVisible:e,showMonthPickerAsOverlay:r}),[n,a]=m.useState(()=>o?!1:t??!1),[i,l]=m.useState(()=>o?!0:e??!0);return[n,i,()=>{a(!n),l(!i)}]}function mde({componentRef:e},t,r){const o=m.useRef(null),n=m.useRef(null),a=m.useRef(!1),{targetDocument:i}=Ve(),l=i?.defaultView,d=m.useCallback(()=>{t&&o.current?S3(o.current,l):r&&n.current&&S3(n.current,l)},[t,r,l]);return m.useImperativeHandle(e,()=>({focus:d}),[d]),m.useEffect(()=>{a.current&&(d(),a.current=!1)}),[o,n,()=>{a.current=!0}]}const kb=m.forwardRef((e,t)=>{const{allFocusable:r=!1,calendarDayProps:o,calendarMonthProps:n,className:a,componentRef:i,dateRangeType:l=So.Day,dateTimeFormatter:d=M7,firstDayOfWeek:f=Fo.Sunday,firstWeekOfYear:p=qm.FirstDay,highlightCurrentMonth:h=!1,highlightSelectedMonth:v=!1,id:y,isDayPickerVisible:x=!0,isMonthPickerVisible:b=!0,maxDate:k,minDate:S,onDismiss:N,onSelectDate:B,restrictedDates:C,showCloseButton:z=!1,showGoToToday:R=!0,showMonthPickerAsOverlay:E=!1,showSixWeeksByDefault:D=!1,showWeekNumbers:I=!1,strings:M=q7,today:O,value:H,workWeekDays:$=dde}=e,Z=m.useMemo(()=>O??new Date,[O]),[q,A,X,V,oe,ee]=fde({onSelectDate:B,value:H,today:Z}),[W,L,te]=pde({isDayPickerVisible:x,isMonthPickerVisible:b,showMonthPickerAsOverlay:E}),[ue,ne,ie]=mde({componentRef:i},L,W),ge=()=>{let ot=R;return ot&&Z&&(ot=A.getFullYear()!==Z.getFullYear()||A.getMonth()!==Z.getMonth()||X.getFullYear()!==Z.getFullYear()||X.getMonth()!==Z.getMonth()),R&&m.createElement("button",{className:pt.goTodayButton,onClick:ht,onKeyDown:xt(ht),type:"button",disabled:!ot},M.goToToday)},Te=(ot,zt)=>{oe(ot),zt&&ie()},Ee=(ot,zt)=>{if(zt&&ie(),!zt){ee(ot);return}Qt&&V(ot),oe(ot)},Me=e8({isDayPickerVisible:x,showMonthPickerAsOverlay:E}),lt=Me?()=>{te(),ie()}:void 0,ht=()=>{oe(Z),Me&&W&&te(),ie()},xt=ot=>zt=>{switch(zt.key){case kr:case ro:ot();break}},vt=ot=>{switch(ot.key){case kr:ot.preventDefault();break;case ag:ot.preventDefault();break;case Wn:ot.stopPropagation(),N?.();break;case cy:ot.ctrlKey?oe(wl(A,1)):oe(ji(A,1)),ot.preventDefault();break;case ly:ot.ctrlKey?oe(wl(A,-1)):oe(ji(A,-1)),ot.preventDefault();break}},Qt=!Me&&!L,pt=cde({className:a,isDayPickerVisible:L,isMonthPickerVisible:W,showWeekNumbers:I});let Mt="",hr="";if(d&&M.todayDateFormatString&&(Mt=M.todayDateFormatString.replace("{0}",d.formatMonthDayYear(Z,M))),d&&M.selectedDateFormatString&&q){const ot=Qt?d.formatMonthYear:d.formatMonthDayYear;hr=M.selectedDateFormatString.replace("{0}",ot(q,M))}const vr=hr+", "+Mt;return m.createElement("div",{id:y,ref:t,className:pt.root,onKeyDown:vt},m.createElement("div",{className:pt.liveRegion,"aria-live":"polite","aria-atomic":"true"},m.createElement("span",null,hr)),L&&m.createElement(H7,{gridLabel:vr,selectedDate:q??Z,navigatedDate:A??Z,today:Z,onSelectDate:V,onNavigateDate:Te,onDismiss:N,firstDayOfWeek:f,dateRangeType:l,strings:M,onHeaderSelect:lt,showWeekNumbers:I,firstWeekOfYear:p,dateTimeFormatter:d,showSixWeeksByDefault:D,minDate:S,maxDate:k,navigationIcons:j3,restrictedDates:C,workWeekDays:$,componentRef:ue,showCloseButton:z,allFocusable:r,...o}),L&&W&&m.createElement("div",{className:pt.divider}),W?m.createElement("div",{className:pt.monthPickerWrapper},m.createElement(Q7,{navigatedDate:X,selectedDate:A,strings:M,onNavigateDate:Ee,today:Z,highlightCurrentMonth:h,highlightSelectedMonth:v,onHeaderSelect:lt,dateTimeFormatter:d,minDate:S,maxDate:k,componentRef:ne,navigationIcons:j3,...n}),ge()):ge())});kb.displayName="Calendar";const e8=({isDayPickerVisible:e,showMonthPickerAsOverlay:t})=>{const{targetDocument:r}=Ve(),o=r?.defaultView;return t||e&&o&&o.innerWidth<=ude},gde=q7,hde={...gde,prevMonthAriaLabel:"Go to previous month",nextMonthAriaLabel:"Go to next month",prevYearAriaLabel:"Go to previous year",nextYearAriaLabel:"Go to next year",closeButtonAriaLabel:"Close date picker"},vde=e=>{const{inlinePopup:t}=e;return Ie(m.Fragment,{children:[G(e.root,{}),e.popupSurface&&(t?G(e.popupSurface,{children:G(e.calendar,{})}):G(ma,{mountNode:e.mountNode,children:G(e.popupSurface,{children:G(e.calendar,{})})}))]})};function bde(e){const{positioning:t}=e,r={position:"below",align:"start",...Wi(t)},{targetRef:o,containerRef:n}=qs(r);return[o,n]}function yde(e,t,r){return!!t&&lo(t,e)>0||!!r&&lo(r,e)<0}function xde(){const e=m.useRef(null),t=m.useRef(!1),r=m.useCallback(()=>{var n,a;(a=e.current)===null||a===void 0||(n=a.focus)===null||n===void 0||n.call(a)},[]),o=m.useCallback(()=>{t.current=!0},[]);return[r,e,t,o]}function wde(e){"use no memo";const[t,r]=Xt({initialState:!1,defaultState:e.defaultOpen,state:e.open}),o=m.useRef(!1);return m.useEffect(()=>{if(o.current&&!t){var n;(n=e.onOpenChange)===null||n===void 0||n.call(e,!1)}o.current=!0},[e.allowTextInput,t]),[t,r]}function kde({formatDate:e,onSelectDate:t,value:r}){const[o,n]=Xt({initialState:null,state:r}),[a,i]=m.useState(()=>r&&e?e(r):""),l=d=>{t?.(d),n(d),i(d&&e?e(d):"")};return m.useEffect(()=>{i(r&&e?e(r):"")},[e,r]),[o,a,l,i]}const Sde=e=>e?e.toDateString():"",Bde=e=>{const t=Date.parse(e);return t?new Date(t):null},jde=(e,t)=>{"use no memo";const{allowTextInput:r=!1,allFocusable:o=!1,borderless:n=!1,dateTimeFormatter:a,defaultOpen:i=!1,disableAutoFocus:l=!0,firstDayOfWeek:d=Fo.Sunday,firstWeekOfYear:f=qm.FirstDay,formatDate:p=Sde,highlightCurrentMonth:h=!1,highlightSelectedMonth:v=!1,initialPickerDate:y,inlinePopup:x=!1,isMonthPickerVisible:b=!0,maxDate:k,minDate:S,mountNode:N,onOpenChange:B,onSelectDate:C,openOnClick:z=!0,onValidationResult:R,parseDateFromString:E=Bde,showCloseButton:D=!1,showGoToToday:I=!0,showMonthPickerAsOverlay:M=!1,showWeekNumbers:O=!1,strings:H=hde,today:$,underlined:Z=!1,value:q,...A}=e,X=m.useMemo(()=>y??new Date,[y]),V=m.useRef(null),[oe,ee,W,L]=xde(),[te,ue,ne,ie]=kde({formatDate:p,onSelectDate:C,value:q}),[ge,Te]=wde(e),Ee=yg();var Me;const lt=(Me=Ee?.required)!==null&&Me!==void 0?Me:e.required,ht=bt("datePicker-input"),xt=bt("datePicker-popupSurface"),vt=m.useCallback((Ne=null)=>{let Ze;if(r)if(ue||Ne){if(te&&p&&p(Ne??te)===ue)return;Ne=Ne||E(ue),!Ne||isNaN(Ne.getTime())?(ne(te),Ze="invalid-input"):yde(Ne,S,k)?Ze="out-of-bounds":ne(Ne)}else lt&&(Ze="required-input"),C?.(Ne);else lt&&!ue&&(Ze="required-input");R?.({error:Ze})},[r,p,ue,k,S,C,R,E,lt,te,ne]),Qt=m.useCallback(Ne=>{B?.(Ne),Te(Ne),!ge&&!e.disabled&&oe()},[oe,B,e.disabled,Te]),pt=m.useCallback(Ne=>{ge&&(Qt(!1),vt(Ne),!r&&Ne&&ne(Ne))},[r,ge,Qt,ne,vt]),Mt=m.useCallback(()=>{ge||(L(),Qt(!0))},[ge,L,Qt]),hr=m.useCallback(Ne=>{L(),pt(Ne)},[pt,L]),vr=m.useCallback((Ne,Ze)=>{const{value:ut}=Ze;r&&(ge&&pt(),ie(ut))},[r,pt,ge,ie]),ot=m.useCallback(()=>{vt()},[vt]),zt=m.useCallback(Ne=>{switch(Ne.key){case kr:Ne.preventDefault(),Ne.stopPropagation(),ge?e.allowTextInput&&pt():(vt(),Mt());break;case Wn:ge&&(Ne.stopPropagation(),Ne.preventDefault(),hr());break;case Fi:Ne.preventDefault(),ge||Mt();break}},[hr,pt,ge,e.allowTextInput,Mt,vt]),ur=m.useCallback(()=>{l||r||(W.current||Mt(),W.current=!1)},[r,l,W,Mt]),po=m.useCallback(()=>{if((e.openOnClick||!e.disableAutoFocus)&&!ge&&!e.disabled){Mt();return}r&&pt()},[r,pt,ge,e.disabled,e.disableAutoFocus,e.openOnClick,Mt]),Gr=Ne=>{Ne.preventDefault(),Ne.stopPropagation(),!ge&&!e.disabled?Mt():e.allowTextInput&&pt()},vn=Z?"underline":n?"filled-lighter":"outline",[mo,Nr]=bde(e),Sr=me(e.root,{defaultProps:{ref:mo},elementType:"span"});Sr.ref=Le(Sr.ref,mo);const Zr=me(e.input,{elementType:"input"});Zr.ref=Le(Zr.ref,t,ee);const Ar=e["aria-labelledby"];var er;const Uo=(er=e.id)!==null&&er!==void 0?er:ht,bn=m.useMemo(()=>({role:"button","aria-expanded":ge,"aria-labelledby":Ar??Uo}),[ge,Ar,Uo]),Ce=me(e.contentAfter||{},{defaultProps:{children:m.createElement(DI,null),...bn},elementType:"span"});Ce.onClick=de(Re(Ce.onClick,Gr));const _e=me(A,{defaultProps:{appearance:vn,"aria-controls":ge?xt:void 0,"aria-expanded":ge,"aria-haspopup":"dialog",readOnly:!r,role:"combobox",id:Uo},elementType:Ht});_e.root=Sr,_e.input=Zr,_e.contentAfter=Ce,_e.onChange=de(Re(_e.onChange,vr)),_e.onBlur=de(Re(_e.onBlur,ot)),_e.onKeyDown=de(Re(_e.onKeyDown,zt)),_e.onFocus=de(Re(_e.onFocus,ur)),_e.onClick=de(Re(_e.onClick,po));const{modalAttributes:We}=Sd({trapFocus:!0,alwaysFocusable:!0,legacyTrapFocus:!0}),Je=ge?ke(e.popupSurface,{renderByDefault:!0,defaultProps:{"aria-label":"Calendar","aria-modal":!0,id:xt,role:"dialog",ref:Nr,...We},elementType:"div"}):void 0,{targetDocument:wt}=Ve();xd({element:wt,callback:Ne=>pt(),refs:[mo,Nr],disabled:!ge}),Qb({element:wt,callback:Ne=>pt(),refs:[mo,Nr],disabled:!ge}),m.useEffect(()=>{ge&&!e.disabled&&V.current&&V.current.focus()},[l,ge,e.disabled]);const Ke=me(e.calendar,{defaultProps:{allFocusable:o,componentRef:V,dateTimeFormatter:a,firstDayOfWeek:d,firstWeekOfYear:f,highlightCurrentMonth:h,highlightSelectedMonth:v,isMonthPickerVisible:b,maxDate:k,minDate:S,showCloseButton:D,showGoToToday:I,showMonthPickerAsOverlay:M,showWeekNumbers:O,strings:H,today:$,value:te||X},elementType:kb});Ke.onDismiss=de(Re(Ke.onDismiss,hr)),Ke.onSelectDate=de(Re(Ke.onSelectDate,hr));const Wt={disabled:!!e.disabled,inlinePopup:x,components:{root:Ht,calendar:kb,popupSurface:"div"},calendar:Ke,mountNode:N,root:_e,popupSurface:Je};return Wt.root.value=ue,Wt},$v={root:"fui-DatePicker",calendar:"fui-DatePicker__calendar",popupSurface:"fui-DatePicker__popupSurface"},Cde=Y({base:{qhf8xq:"f10pi13n",Bceei9c:"f1k6fduh",xfaavh:"faxec97"},disabled:{Bceei9c:"f158kwzp",xfaavh:"f19qwlmg"},inline:{Bj3rh1h:"f19g0ac"}},{d:[".f10pi13n{position:relative;}",".f1k6fduh{cursor:pointer;}",".faxec97 input{cursor:pointer;}",".f158kwzp{cursor:default;}",".f19qwlmg input{cursor:default;}",".f19g0ac{z-index:1;}"]}),Nde=Be("r1ytv1z8",null,[".r1ytv1z8{background-color:var(--colorNeutralBackground1);box-shadow:var(--shadow16);border-radius:var(--borderRadiusMedium);border-width:1px;border-style:solid;border-color:var(--colorTransparentStroke);display:inline-flex;color:var(--colorNeutralForeground1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);}"]),zde=e=>{"use no memo";const t=Cde(),r=Nde(),{disabled:o,inlinePopup:n}=e;return e.root.className=F($v.root,t.base,o&&t.disabled,e.root.className),e.popupSurface&&(e.popupSurface.className=F($v.popupSurface,r,e.popupSurface.className,n&&t.inline)),e.calendar.className=F($v.calendar,e.calendar.className),e},gd=m.forwardRef((e,t)=>{const r=jde(e,t);return zde(r),vde(r)});gd.displayName="DatePicker";function t8(e){return!isNaN(e.getTime())}function Sb(e){return e?t8(e)?e.toISOString():"invalid":""}function Tde(e){if(e===""||e==="invalid")return null;const t=new Date(e);return t8(t)?t:null}function _de(e,{hourCycle:t,showSeconds:r}={}){return e.toLocaleTimeString(void 0,{hour:"numeric",hourCycle:t,minute:"2-digit",second:r?"2-digit":void 0})}function Rde(e,t){const r=new Date(e);return r.setHours(t,0,0,0),r}function Dde(e,t,r){const o=new Date(e);return(t>r||r===24)&&o.setDate(o.getDate()+1),o.setHours(r===24?0:r,0,0,0),o}function Ede(e,t,r){if(r<=0)return console.error("Increment value should be a positive number."),[];const o=[],n=new Date(e);for(;n<t;)o.push(new Date(n)),n.setMinutes(n.getMinutes()+r);return o}const Pde=/^((1[0-2]|0?[0-9]):([0-5][0-9]):([0-5][0-9])\s([AaPp][Mm]))$/,Mde=/^((1[0-2]|0?[0-9]):[0-5][0-9]\s([AaPp][Mm]))$/,qde=/^([0-1]?[0-9]|2[0-4]):[0-5][0-9]:[0-5][0-9]$/,Fde=/^([0-1]?[0-9]|2[0-4]):[0-5][0-9]$/;function Ide(e,t,r,o){if(!e)return{date:null,errorType:"required-input"};const{hourCycle:n,showSeconds:a}=o,i=n==="h11"||n==="h12";if(!(i?a?Pde:Mde:a?qde:Fde).test(e))return{date:null,errorType:"invalid-input"};const d=/^(\d\d?):(\d\d):?(\d\d)? ?([ap]m)?/i.exec(e);if(!d)return{date:null,errorType:"invalid-input"};const[,f,p,h,v]=d;let y=f;i&&v&&(v.toLowerCase()==="pm"&&+y!=12?y=(+y+12).toString():v.toLowerCase()==="am"&&+y==12&&(y="0"));const x=new Date(t);return x.setHours(+y,+p,h?+h:0),x<t&&x.setDate(x.getDate()+1),x>=r?{date:x,errorType:"out-of-bounds"}:{date:x}}const Ade=(e,t)=>{var r;const{dateAnchor:o,defaultSelectedTime:n,endHour:a=24,formatDateToTimeString:i=_de,hourCycle:l,increment:d=30,onTimeChange:f,selectedTime:p,showSeconds:h=!1,startHour:v=0,parseTimeStringToDate:y,...x}=e,{freeform:b=!1}=x;var k;const{dateStartAnchor:S,dateEndAnchor:N}=Ode((k=o??p)!==null&&k!==void 0?k:n,v,a),B=m.useMemo(()=>Ede(S,N,d).map(A=>({date:A,key:Sb(A),text:i(A,{showSeconds:h,hourCycle:l})})),[N,S,i,l,d,h]),[C,z]=Xt({state:p,defaultState:n,initialState:null}),[R,E]=m.useState(void 0),D=de((A,X)=>{z(X.selectedTime),E(X.selectedTimeText),f?.(A,X)}),I=m.useMemo(()=>{const A=Sb(C),X=B.find(V=>V.key===A);return X?[X.key]:[]},[B,C]),M=m.useRef(null),O=de((A,X)=>{if(b&&X.optionValue===void 0&&!(x.clearable&&A.type==="click"&&A.currentTarget===M.current))return;var V;const oe={selectedTime:Tde((V=X.optionValue)!==null&&V!==void 0?V:""),selectedTimeText:X.optionText,errorType:void 0};D(A,oe)}),H=P6({autoComplete:"off",...x,selectedOptions:I,onOptionSelect:O,children:B.map(A=>m.createElement(at,{key:A.key,value:A.key},A.text))},t),$=m.useCallback(A=>Ide(A,S,N,{hourCycle:l,showSeconds:h}),[N,S,l,h]),Z=Le((r=H.clearIcon)===null||r===void 0?void 0:r.ref,M),q={...H,clearIcon:H.clearIcon?{...H.clearIcon,ref:Z}:void 0,freeform:b,parseTimeStringToDate:y??$,submittedText:R};return $de(q),Lde(q,D),q},Ode=(e,t,r)=>{const[o]=m.useState(()=>new Date),n=Sb(e??null);return m.useMemo(()=>{const a=e??o,i=Rde(a,t),l=Dde(a,t,r);return{dateStartAnchor:i,dateEndAnchor:l}},[r,o,n,t])},Lde=(e,t)=>{const{getOptionById:r,freeform:o,parseTimeStringToDate:n,submittedText:a,value:i,activeDescendantController:l}=e,d=m.useCallback(()=>{const y=l.active();return y?r(y):null},[l,r]);m.useEffect(()=>{if(o&&i){const y=d();if(!y)return;y.text.toLowerCase().indexOf(i.toLowerCase())===0||l.blur()}},[o,i,l,d]);const f=de(y=>{if(!o)return;const{date:x,errorType:b}=n(i);a!==i&&t?.(y,{selectedTime:x,selectedTimeText:i,errorType:b})}),p=de(y=>{!d()&&y.key===kr&&f(y)});e.root.onKeyDown=Re(p,e.root.onKeyDown);const h=m.useRef(null);e.root.ref=Le(e.root.ref,h),e.listbox&&(e.listbox.tabIndex=-1),e.expandIcon&&(e.expandIcon.tabIndex=-1);const v=de(y=>{(!y.relatedTarget||!Mi(h.current,y.relatedTarget))&&f(y)});e.input.onBlur=Re(v,e.input.onBlur)},$de=e=>{var t;const r=yg(),o=bt("timepicker-chevron-");if(r?.labelId&&((t=e.expandIcon)===null||t===void 0?void 0:t["aria-label"])==="Open"){var a;const i=(a=e.expandIcon.id)!==null&&a!==void 0?a:o;e.expandIcon["aria-labelledby"]=`${i} ${r.labelId}`}},mu={root:"fui-TimePicker",input:"fui-TimePicker__input",expandIcon:"fui-TimePicker__expandIcon",clearIcon:"fui-TimePicker__clearIcon",listbox:"fui-TimePicker__listbox"},Hde=Y({listbox:{Bxyxcbc:"f1vfnyiv"}},{d:[".f1vfnyiv{max-height:min(80vh, 416px);}"]}),Vde=e=>{"use no memo";const t=Hde();return e.root.className=F(mu.root,e.root.className),e.input.className=F(mu.input,e.input.className),e.expandIcon&&(e.expandIcon.className=F(mu.expandIcon,e.expandIcon.className)),e.clearIcon&&(e.clearIcon.className=F(mu.clearIcon,e.clearIcon.className)),e.listbox&&(e.listbox.className=F(mu.listbox,t.listbox,e.listbox.className)),q6(e),e},r8=m.forwardRef((e,t)=>{const r=Ade(e,t),o=Ey(r);return Vde(r),xe("useTimePickerCompatStyles_unstable")(r),M6(r,o)});r8.displayName="TimePicker";const Dl=new Map,Wde=e=>`${e.entity}::${e.query.toLowerCase()}`;let Im=0;const Bb=new Set,Ude=e=>(Bb.add(e),()=>{Bb.delete(e)});function Gde(e){if(e){const t=`${e}::`;for(const r of[...Dl.keys()])r.startsWith(t)&&Dl.delete(r)}else Dl.clear();Im++;for(const t of Bb)t()}function o8(){return m.useSyncExternalStore(Ude,()=>Im)}async function Zde(e,t){if(!e.primaryName||typeof window>"u"||!window.dataverseAPI?.retrieve)return null;const o=(await window.dataverseAPI.retrieve(e.logicalName,t,[e.primaryName]))?.[e.primaryName];return o==null?null:String(o)}const Kde=250,Xde=50,Yde=3e4;function C3(e){return new Promise((t,r)=>{const o=setTimeout(()=>r(new Error("The search took too long. Type again to retry.")),Yde);e.then(n=>{clearTimeout(o),t(n)},n=>{clearTimeout(o),r(n instanceof Error?n:new Error(String(n)))})})}function Jde(e,t){const r=t.replace(/[[%_]/g,o=>`[${o}]`).replace(/'/g,"''");return`contains(${e},'${encodeURIComponent(r)}')`}function n8(e,t){const r=pc(),[o,n]=m.useState([]),[a,i]=m.useState(0),[l,d]=m.useState(null),f=m.useRef(0),p=o8();return m.useEffect(()=>{if(!e){n([]),d(null),i(0);return}const h=Wde({entity:e,query:t}),v=Dl.get(h);if(v){n(v),d(null),i(0);return}let y=!1;const x=++f.current;i(x),d(null);const b=Im,k=()=>!y&&x===f.current&&r===oo(),S=()=>i(B=>B===x?0:B),N=setTimeout(async()=>{try{const B=fe(e)??await C3(lr.getTable(e));if(!k())return;if(!B){d(`Couldn't load metadata for "${e}".`),n([]);return}if(typeof window>"u"||!window.dataverseAPI?.queryData){n([]);return}const C=t.trim(),z=C?`&$filter=${Jde(B.primaryName,C)}`:"",R=`${B.entitySetName}?$select=${B.primaryKey},${B.primaryName}&$top=${Xde}${z}`,E=await C3(window.dataverseAPI.queryData(R));if(!k())return;const I=(E.value??[]).map(M=>({id:String(M[B.primaryKey]??""),name:String(M[B.primaryName]??M[B.primaryKey]??"")}));b===Im&&Dl.set(h,I),n(I)}catch(B){if(!k())return;d(B instanceof Error?B.message:String(B)),n([])}finally{S()}},Kde);return()=>{y=!0,clearTimeout(N),S()}},[e,t,r,p]),{rows:o,loading:a!==0,error:l}}Dd(()=>Dl.clear());const Au=new WeakSet;function Qde(e){switch(e.attributeType){case"Picklist":case"MultiSelectPicklist":case"State":case"Status":case"Boolean":return"optionset";case"Lookup":case"Customer":case"Owner":case"String":case"Memo":case"Integer":case"BigInt":case"Decimal":case"Double":case"Money":case"DateTime":return"detail";default:return null}}function a8(e){switch(e.attributeType){case"Picklist":case"MultiSelectPicklist":case"State":{const t=e;return Array.isArray(t.options)&&t.options.length>0}case"Status":{const t=e;return Array.isArray(t.options)&&t.options.length>0}case"Boolean":{const t=e;return!!t.trueOption&&!!t.falseOption&&(t.trueOption.label!=="Yes"||t.falseOption.label!=="No")}case"Lookup":case"Customer":case"Owner":{const t=e;return Array.isArray(t.targets)&&t.targets.length>0}case"String":{const t=e;return typeof t.maxLength=="number"&&t.maxLength!==100}case"Memo":{const t=e;return typeof t.maxLength=="number"&&t.maxLength!==2e3}case"Integer":{const t=e;return t.minValue!==void 0||t.maxValue!==void 0}case"BigInt":{const t=e;return t.minValue!==void 0||t.maxValue!==void 0}case"Decimal":case"Double":case"Money":{const t=e;return t.minValue!==void 0||t.maxValue!==void 0}case"DateTime":return e.dateTimeBehavior!=="UserLocal";default:return!0}}function i8(e,t){const r={...e};switch(r.attributeType){case"Lookup":case"Customer":case"Owner":r.targets=t.Targets??[];break;case"String":r.maxLength=t.MaxLength??r.maxLength,t.Format&&(r.format=t.Format);break;case"Memo":r.maxLength=t.MaxLength??r.maxLength,t.Format&&(r.format=t.Format);break;case"Integer":r.minValue=t.MinValue,r.maxValue=t.MaxValue,t.Format&&(r.format=t.Format);break;case"BigInt":r.minValue=t.MinValue,r.maxValue=t.MaxValue;break;case"Decimal":r.minValue=t.MinValue,r.maxValue=t.MaxValue,typeof t.Precision=="number"&&(r.precision=t.Precision);break;case"Double":r.minValue=t.MinValue,r.maxValue=t.MaxValue,typeof t.Precision=="number"&&(r.precision=t.Precision);break;case"Money":r.minValue=t.MinValue,r.maxValue=t.MaxValue,typeof t.Precision=="number"&&(r.precision=t.Precision);break;case"DateTime":t.Format&&(r.format=t.Format),t.DateTimeBehavior?.Value&&(r.dateTimeBehavior=t.DateTimeBehavior.Value);break;case"Boolean":if(t.OptionSet?.TrueOption||t.OptionSet?.FalseOption){const o=t.OptionSet.TrueOption?.Label?.UserLocalizedLabel?.Label,n=t.OptionSet.FalseOption?.Label?.UserLocalizedLabel?.Label;o&&(r.trueOption={value:1,label:o}),n&&(r.falseOption={value:0,label:n})}break;case"Picklist":case"MultiSelectPicklist":case"State":{const o=(t.OptionSet?.Options??[]).map(n=>({value:n.Value,label:n.Label?.UserLocalizedLabel?.Label??String(n.Value)}));r.options=o,r.attributeType!=="State"&&typeof t.DefaultFormValue=="number"&&(r.defaultFormValue=t.DefaultFormValue);break}case"Status":{const o=(t.OptionSet?.Options??[]).map(n=>({value:n.Value,label:n.Label?.UserLocalizedLabel?.Label??String(n.Value),state:0}));r.options=o;break}}return Au.add(r),r}function efe(e,t,r){const o=e.columns.findIndex(a=>a.logicalName===t);if(o<0)return;const n=[...e.columns];n[o]=i8(e.columns[o],r),Qy({...e,columns:n})}function tfe(e,t){const[r,o]=m.useState(!1),[n,a]=m.useState(null),i=m.useSyncExternalStore(Ed,()=>e&&t?fe(e)?.columns.find(l=>l.logicalName===t):void 0);return m.useEffect(()=>{if(!e||!t||!i||Au.has(i))return;if(a8(i)){Au.add(i);return}const l=Qde(i);if(!l){Au.add(i);return}let d=!1;return o(!0),a(null),(l==="optionset"?jne(e,t,i.attributeType):Cne(e,t,i.attributeType)).then(p=>{if(d)return;const h=fe(e);h?.columns.includes(i)&&efe(h,t,p)}).catch(p=>{d||a(p instanceof Error?p.message:String(p))}).finally(()=>{d||o(!1)}),()=>{d=!0}},[e,t,i]),{loading:r,error:n}}const s8=[{types:["Picklist"],cast:"Microsoft.Dynamics.CRM.PicklistAttributeMetadata",select:"LogicalName,DefaultFormValue",expand:"OptionSet($select=Options)"},{types:["MultiSelectPicklist"],cast:"Microsoft.Dynamics.CRM.MultiSelectPicklistAttributeMetadata",select:"LogicalName,DefaultFormValue",expand:"OptionSet($select=Options)"},{types:["State"],cast:"Microsoft.Dynamics.CRM.StateAttributeMetadata",select:"LogicalName",expand:"OptionSet($select=Options)"},{types:["Status"],cast:"Microsoft.Dynamics.CRM.StatusAttributeMetadata",select:"LogicalName",expand:"OptionSet($select=Options)"},{types:["Boolean"],cast:"Microsoft.Dynamics.CRM.BooleanAttributeMetadata",select:"LogicalName",expand:"OptionSet($select=TrueOption,FalseOption)"},{types:["Lookup","Customer","Owner"],cast:"Microsoft.Dynamics.CRM.LookupAttributeMetadata",select:"LogicalName,Targets"},{types:["DateTime"],cast:"Microsoft.Dynamics.CRM.DateTimeAttributeMetadata",select:"LogicalName,Format,DateTimeBehavior"}],Bu=new WeakSet;function jb(e){return!Au.has(e)&&!Bu.has(e)&&!a8(e)&&s8.some(t=>t.types.includes(e.attributeType))}async function rfe(e){const t=oo(),r=e.columns.filter(jb);for(const d of r)Bu.add(d);const o=s8.filter(d=>r.some(f=>d.types.includes(f.attributeType))),n=new Map;if(await Promise.all(o.map(async d=>{try{const f=await lT(e.logicalName,d.cast,d.select,d.expand);for(const p of f)n.set(p.LogicalName,p)}catch(f){console.warn(`[metadata] ${d.cast} details for ${e.logicalName} failed`,f);for(const p of r)d.types.includes(p.attributeType)&&Bu.delete(p)}})),oo()!==t){for(const d of r)Bu.delete(d);return}const a=fe(e.logicalName);if(!a)return;let i=!1;const l=a.columns.map(d=>{const f=n.get(d.logicalName);if(!f||!r.includes(d))return d;i=!0;const p=i8(d,{...f,AttributeType:d.attributeType});return Bu.add(p),p});i&&Qy({...a,columns:l})}function kye(e){const t=m.useSyncExternalStore(Ed,()=>e?fe(e):void 0),[r,o]=m.useState(!1),[n,a]=m.useState(),i=m.useRef(0),l=!!t&&t!==n&&t.columns.some(jb);return m.useEffect(()=>{if(!t||!t.columns.some(jb))return;const d=++i.current;o(!0),rfe(t).finally(()=>{i.current===d&&(a(t),o(!1))})},[t]),{table:t,loading:r||l}}const za=(e,t=2)=>String(e).padStart(t,"0"),Ad=e=>e.dateTimeBehavior??"UserLocal",Hg=e=>e.format==="DateOnly"||e.dateTimeBehavior==="DateOnly",Tx=/^(\d{4})-(\d{2})-(\d{2})(?:[T ](\d{2}):(\d{2})(?::(\d{2}))?)?/;function Hv(e,t){const r=Tx.exec(e.trim());if(!r)return null;const[,o,n,a,i,l,d]=r,f=t?new Date(+o,+n-1,+a,+(i??0),+(l??0),+(d??0)):new Date(+o,+n-1,+a);return f.getMonth()===+n-1&&f.getDate()===+a?f:null}function Vg(e,t){if(!e)return null;const r=Ad(t);if(r==="DateOnly")return Hv(e,!1);if(r==="TimeZoneIndependent")return Hv(e,!0);if(/^\d{4}-\d{2}-\d{2}$/.test(e.trim()))return Hv(e,!1);const o=new Date(e);return Number.isNaN(o.getTime())?null:o}function l8(e,t){const r=Ad(t),o=Hg(t),n=`${e.getFullYear()}-${za(e.getMonth()+1)}-${za(e.getDate())}`;return r==="DateOnly"?n:r==="TimeZoneIndependent"?o?`${n}T00:00:00Z`:`${n}T${za(e.getHours())}:${za(e.getMinutes())}:${za(e.getSeconds())}Z`:(o?new Date(e.getFullYear(),e.getMonth(),e.getDate()):e).toISOString().replace(/\.\d{3}Z$/,"Z")}function c8(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t?t.getHours():0,t?t.getMinutes():0,0)}function ofe(e=new Date){let t="";try{t=Intl.DateTimeFormat().resolvedOptions().timeZone??""}catch{}const r=-e.getTimezoneOffset(),o=r>=0?"+":"-",n=Math.abs(r),a=`UTC${o}${za(Math.floor(n/60))}:${za(n%60)}`;return t?`${t}, ${a}`:a}function Sye(e,t){const r=Ad(e);return r==="DateOnly"?"Date only — sent as YYYY-MM-DD, no time zone conversion.":r==="TimeZoneIndependent"?Hg(e)?"Time zone independent — sent as that date at 00:00:00Z, no conversion.":"Time zone independent — the date and time are sent exactly as entered (as …Z), no conversion.":`User local — you enter local time in your browser's zone (${ofe(t??void 0)}); it is converted to UTC. Dataverse shows it in each user’s own time zone setting.`}function u8(e,t){if(Ad(t)==="TimeZoneIndependent"){const o=Tx.exec(e.trim());if(!o)return null;const[,n,a,i,l,d,f]=o,p=new Date(Date.UTC(+n,+a-1,+i,+(l??0),+(d??0),+(f??0)));return p.getUTCMonth()!==+a-1||p.getUTCDate()!==+i?null:{date:p,timeZone:"UTC"}}const r=Vg(e,t);return r?{date:r}:null}function Bye(e,t){const r=u8(e,t);if(!r)return e;const o={timeZone:r.timeZone};return Hg(t)?r.date.toLocaleDateString(void 0,o):r.date.toLocaleString(void 0,o)}function jye(e,t,r){const o=Hg(r);if(Ad(r)==="TimeZoneIndependent"&&!o){const a=e?Tx.exec(e.trim()):null,i=a?.[4]?`${a[4]}:${a[5]}:00`:"00:00:00";return`${t.getFullYear()}-${za(t.getMonth()+1)}-${za(t.getDate())}T${i}Z`}const n=Vg(e,r);return l8(c8(t,o?null:n),r)}function Cye(e,t,r){const o=Vg(e,r);return!o||t.getHours()===o.getHours()&&t.getMinutes()===o.getMinutes()?null:l8(c8(o,t),r)}const d8=e=>Vg(e,{dateTimeBehavior:"UserLocal"}),Wo=m.createContext("Filter value");function ju(e){const t=e.col?e.col.displayName||e.col.logicalName:"Filter";return c.jsx(Wo.Provider,{value:`${t} value`,children:c.jsx(nfe,{...e})})}function nfe(e){const{rule:t,op:r,col:o,parentTable:n}=e;return tfe(n?.logicalName??null,o?.logicalName??null),r.arity===0?c.jsx("span",{style:{fontSize:11,color:T.colorNeutralForeground3,fontStyle:"italic"},children:"— no value"}):r.arity===2?c.jsx(mfe,{...e}):r.arity==="n"?c.jsx(gfe,{...e}):t.valKind==="column"&&r.supportsColumnRhs?c.jsx(vfe,{...e}):c.jsx(afe,{...e})}function afe({rule:e,op:t,col:r,onChange:o}){const n=m.useContext(Wo);if(t.intValue)return c.jsx(kl,{val:e.val??"",onChange:a=>o({val:a}),integer:!0,step:1,min:0});if(!r)return c.jsx(Ht,{"aria-label":n,size:"small",value:e.val??"",onChange:(a,i)=>o({val:i.value}),placeholder:"value"});switch(r.attributeType){case"Boolean":return c.jsx(dfe,{col:r,val:e.val,onChange:a=>o({val:a})});case"Picklist":case"State":case"Status":case"EntityName":return c.jsx(N3,{col:r,val:e.val,onChange:a=>o({val:a})});case"DateTime":return c.jsx(lfe,{col:r,val:e.val??"",onChange:a=>o({val:a})});case"String":return c.jsx(ife,{col:r,val:e.val??"",onChange:a=>o({val:a})});case"Memo":return c.jsx(sfe,{col:r,val:e.val??"",onChange:a=>o({val:a})});case"Integer":return c.jsx(cfe,{col:r,op:t,val:e.val??"",onChange:a=>o({val:a})});case"BigInt":return c.jsx(kl,{val:e.val??"",onChange:a=>o({val:a}),min:r.minValue,max:r.maxValue,integer:!0,step:1});case"Decimal":return c.jsx(kl,{val:e.val??"",onChange:a=>o({val:a}),min:r.minValue,max:r.maxValue,step:Math.pow(10,-r.precision)});case"Double":return c.jsx(kl,{val:e.val??"",onChange:a=>o({val:a}),min:r.minValue,max:r.maxValue,step:Math.pow(10,-r.precision)});case"Money":return c.jsx(ufe,{precision:r.precision,val:e.val??"",onChange:a=>o({val:a}),min:r.minValue,max:r.maxValue});case"Lookup":case"Customer":case"Owner":return c.jsx(ffe,{col:r,val:e.val??"",onChange:a=>o({val:a})});case"Uniqueidentifier":return c.jsx(pfe,{val:e.val??"",onChange:a=>o({val:a})});case"MultiSelectPicklist":return c.jsx(N3,{col:r,val:e.val,onChange:a=>o({val:a})});default:return c.jsx(Ht,{"aria-label":n,size:"small",value:e.val??"",onChange:(a,i)=>o({val:i.value}),placeholder:"value"})}}function ife({col:e,val:t,onChange:r}){const o=m.useContext(Wo);if(e.format==="TextArea")return c.jsx(Sg,{"aria-label":o,rows:2,value:t,maxLength:e.maxLength,onChange:(i,l)=>r(l.value),style:{fontFamily:T.fontFamilyMonospace,fontSize:12}});const a=e.format==="Email"?"email":e.format==="Url"?"url":e.format==="Phone"?"tel":"text";return c.jsx(Ht,{"aria-label":o,size:"small",type:a,value:t,maxLength:e.maxLength,placeholder:e.format==="Email"?"name@example.com":e.format==="Url"?"https://example.com":e.format==="Phone"?"+1 (555) 555-0000":e.format==="TickerSymbol"?"MSFT":"value",onChange:(i,l)=>r(l.value)})}function sfe({col:e,val:t,onChange:r}){const o=m.useContext(Wo),[n,a]=m.useState(!1);return c.jsx(Sg,{"aria-label":o,rows:n?3:1,value:t,maxLength:e.maxLength,placeholder:n?`Up to ${e.maxLength.toLocaleString()} characters`:"Click to expand…",onChange:(i,l)=>r(l.value),onFocus:()=>a(!0),onBlur:()=>a(!1),style:{fontFamily:T.fontFamilyMonospace,fontSize:12,width:"100%",height:n?"auto":"32px",minHeight:n?void 0:"32px",resize:n?"vertical":"none",overflow:n?"auto":"hidden"}})}function lfe({col:e,val:t,onChange:r}){const o=m.useContext(Wo),n=e.format==="DateOnly"||e.dateTimeBehavior==="DateOnly",a=e.dateTimeBehavior==="UserLocal"?"stored as UTC, displayed in user TZ":e.dateTimeBehavior==="DateOnly"?"midnight UTC, no TZ conversion":"wall-clock as UTC (no TZ math)",i=d8(t),l=i,d=p=>{if(!p){r("");return}if(n){const h=p.getFullYear(),v=String(p.getMonth()+1).padStart(2,"0"),y=String(p.getDate()).padStart(2,"0");r(`${h}-${v}-${y}`)}else{const h=i&&!Number.isNaN(i.getTime())?i:new Date(p),v=new Date(p);v.setHours(h.getHours(),h.getMinutes(),0,0),r(v.toISOString())}},f=p=>{if(!p||!l)return;const h=new Date(l);h.setHours(p.getHours(),p.getMinutes(),0,0),r(h.toISOString())};return n?c.jsx(st,{content:`Behavior: ${e.dateTimeBehavior} — ${a}`,relationship:"description",children:c.jsx(gd,{"aria-label":o,size:"small",value:l,onSelectDate:d,placeholder:"Pick a date…",formatDate:p=>p?p.toLocaleDateString():"",allowTextInput:!0})}):c.jsx(st,{content:`Behavior: ${e.dateTimeBehavior} — ${a}`,relationship:"description",children:c.jsxs("span",{style:{display:"inline-flex",gap:6,alignItems:"center",flexWrap:"wrap"},children:[c.jsx(gd,{"aria-label":`${o} (date)`,size:"small",value:l,onSelectDate:d,placeholder:"Date…",formatDate:p=>p?p.toLocaleDateString():"",style:{minWidth:130},allowTextInput:!0}),c.jsx(r8,{"aria-label":`${o} (time)`,size:"small",freeform:!0,selectedTime:l,onTimeChange:(p,h)=>f(h.selectedTime),placeholder:"Time…",style:{minWidth:100},hourCycle:"h23"})]})})}function cfe({col:e,val:t,onChange:r}){const o=m.useContext(Wo);if(e.format==="Duration"){const n=[1,15,30,60,240,480,1440,10080];return c.jsxs("span",{style:{display:"inline-flex",gap:4,alignItems:"center",flexWrap:"wrap"},children:[c.jsx(Da,{"aria-label":o,size:"small",value:Number(t||0),min:e.minValue??0,max:e.maxValue??525600,step:1,onChange:(a,i)=>{const l=i.value??Number(i.displayValue??0);r(String(l))}}),c.jsx("span",{style:{fontSize:10,color:T.colorNeutralForeground3},children:"min"}),n.slice(0,5).map(a=>{const i=a<60?`${a}m`:a<1440?`${a/60}h`:`${a/1440}d`,l=String(a)===t;return c.jsx(Bo,{size:"small",shape:"circular",checked:l,onClick:()=>r(String(a)),children:i},a)})]})}return e.format==="Language"||e.format==="Locale"?c.jsxs(Ur,{"aria-label":o,size:"small",value:t,selectedOptions:t?[t]:[],onOptionSelect:(n,a)=>a.optionValue&&r(a.optionValue),placeholder:"LCID",children:[c.jsx(at,{value:"1033",text:"1033",children:"English (US) · 1033"}),c.jsx(at,{value:"1031",text:"1031",children:"German · 1031"}),c.jsx(at,{value:"1036",text:"1036",children:"French · 1036"}),c.jsx(at,{value:"1041",text:"1041",children:"Japanese · 1041"}),c.jsx(at,{value:"1043",text:"1043",children:"Dutch · 1043"})]}):e.format==="TimeZone"?c.jsxs(Ur,{"aria-label":o,size:"small",value:t,selectedOptions:t?[t]:[],onOptionSelect:(n,a)=>a.optionValue&&r(a.optionValue),placeholder:"time zone code",children:[c.jsx(at,{value:"4",text:"4",children:"Pacific (US&Canada) · 4"}),c.jsx(at,{value:"10",text:"10",children:"Eastern (US&Canada) · 10"}),c.jsx(at,{value:"85",text:"85",children:"UTC · 85"}),c.jsx(at,{value:"105",text:"105",children:"W. Europe · 105"})]}):c.jsx(kl,{val:t,onChange:r,min:e.minValue,max:e.maxValue,integer:!0,step:1})}function kl({val:e,onChange:t,min:r,max:o,step:n,integer:a}){const i=m.useContext(Wo);return c.jsx(Da,{"aria-label":i,size:"small",value:Number(e||0),min:r,max:o,step:n??(a?1:.01),onChange:(l,d)=>{const f=d.value??Number(d.displayValue??0);t(String(f))}})}function ufe({precision:e,val:t,onChange:r,min:o,max:n}){return c.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:4},children:[c.jsx("span",{style:{fontFamily:T.fontFamilyMonospace,fontSize:12,color:T.colorNeutralForeground3},children:"$"}),c.jsx(kl,{val:t,onChange:r,min:o,max:n,step:Math.pow(10,-e)})]})}function dfe({col:e,val:t,onChange:r}){const o=t==="1"||t==="true";return c.jsx(co,{checked:o,onChange:(n,a)=>r(a.checked?"1":"0"),label:o?e.trueOption.label:e.falseOption.label})}function N3({col:e,val:t,onChange:r}){const o=m.useContext(Wo),n=Sm(e)??[],a=n.find(i=>String(i.value)===t);return c.jsx(Ur,{"aria-label":o,size:"small",value:a?.label??t??"",selectedOptions:t?[t]:[],onOptionSelect:(i,l)=>l.optionValue&&r(l.optionValue),children:n.map(i=>c.jsxs(at,{value:String(i.value),text:i.label,children:[i.label,c.jsxs("span",{style:{color:T.colorNeutralForeground3,fontFamily:T.fontFamilyMonospace,fontSize:10,marginLeft:6},children:["· ",i.value]})]},i.value))})}function ffe({col:e,val:t,onChange:r}){const o=m.useContext(Wo),n=e.targets.length>1,[a,i]=m.useState(e.targets[0]??"");m.useEffect(()=>{!a&&e.targets.length>0&&i(e.targets[0])},[e.targets,a]);const[l,d]=m.useState(""),{rows:f,loading:p,error:h}=n8(a||null,l),v=f.find(b=>b.id===t),y=a?fe(a):void 0,x=y?.displayName??a??"record";return a?c.jsxs("span",{style:{display:"flex",flexDirection:n?"column":"row",alignItems:n?"stretch":"center",gap:n?4:6,minWidth:0,width:n?"100%":void 0},children:[n?c.jsx(Ur,{"aria-label":`${o} (target table)`,size:"small",value:y?.displayName??a,selectedOptions:[a],onOptionSelect:(b,k)=>{k.optionValue&&(i(k.optionValue),d(""))},children:e.targets.map(b=>{const k=fe(b);return c.jsx(at,{value:b,text:k?.displayName??b,children:k?.displayName??b},b)})}):c.jsxs("span",{style:{fontSize:10,color:T.colorNeutralForeground3,fontFamily:T.fontFamilyMonospace},children:["→ ",a]}),c.jsxs(Ur,{"aria-label":o,size:"small",value:v?.name??l,selectedOptions:t?[t]:[],onOptionSelect:(b,k)=>{k.optionValue&&(r(k.optionValue),d(""))},onChange:b=>d(b.target.value),placeholder:`Search ${x}…`,children:[p&&c.jsx(at,{value:"__loading",text:"",disabled:!0,children:c.jsx("span",{style:{color:T.colorNeutralForeground3,fontSize:11},children:"Searching…"})}),h&&c.jsx(at,{value:"__err",text:"",disabled:!0,children:c.jsx("span",{style:{color:T.colorPaletteRedForeground1,fontSize:11},children:h})}),!p&&!h&&f.length===0&&c.jsx(at,{value:"__none",text:"",disabled:!0,children:c.jsx("span",{style:{color:T.colorNeutralForeground3,fontSize:11},children:"No matches"})}),f.map(b=>c.jsx(at,{value:b.id,text:b.name,children:c.jsx(xg,{size:"extra-small",name:b.name,secondaryText:b.id,avatar:{color:"colorful"}})},b.id))]})]}):c.jsx(Ht,{"aria-label":o,size:"small",value:t,placeholder:"enter target GUID…",onChange:(b,k)=>r(k.value),style:{fontFamily:T.fontFamilyMonospace}})}function pfe({val:e,onChange:t}){const r=m.useContext(Wo),o=!e||/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e);return c.jsx(Ht,{"aria-label":r,size:"small",value:e,placeholder:"00000000-0000-0000-0000-000000000000",onChange:(n,a)=>t(a.value),style:{fontFamily:T.fontFamilyMonospace},contentAfter:o?void 0:c.jsx("span",{style:{color:T.colorPaletteRedForeground1,fontSize:10},children:"invalid GUID"})})}function mfe({rule:e,op:t,col:r,onChange:o}){const n=m.useContext(Wo),[a,i]=e.vals??["",""],l=t.id.startsWith("InFiscal")?"period":"low",d=t.id.startsWith("InFiscal")?"year":"high";if(t.intValue)return c.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[c.jsx(Da,{"aria-label":`${n} (from)`,size:"small",value:Number(a||0),min:0,step:1,onChange:(f,p)=>o({vals:[String(p.value??p.displayValue??a),i]})}),c.jsx("span",{style:{fontSize:11,color:T.colorNeutralForeground3},children:"and"}),c.jsx(Da,{"aria-label":`${n} (to)`,size:"small",value:Number(i||0),min:0,step:1,onChange:(f,p)=>o({vals:[a,String(p.value??p.displayValue??i)]})})]});if(r?.attributeType==="DateTime"){const f=d8,p=r.format==="DateOnly",h=v=>{if(!v)return"";if(p){const y=v.getFullYear(),x=String(v.getMonth()+1).padStart(2,"0"),b=String(v.getDate()).padStart(2,"0");return`${y}-${x}-${b}`}return v.toISOString()};return c.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center",flexWrap:"wrap"},children:[c.jsx(gd,{"aria-label":`${n} (from)`,size:"small",value:f(a),onSelectDate:v=>o({vals:[h(v),i]}),placeholder:l,allowTextInput:!0,formatDate:v=>v?v.toLocaleDateString():""}),c.jsx("span",{style:{fontSize:11,color:T.colorNeutralForeground3},children:"and"}),c.jsx(gd,{"aria-label":`${n} (to)`,size:"small",value:f(i),onSelectDate:v=>o({vals:[a,h(v)]}),placeholder:d,allowTextInput:!0,formatDate:v=>v?v.toLocaleDateString():""})]})}return bfe(r)?c.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[c.jsx(Da,{"aria-label":`${n} (from)`,size:"small",value:Number(a||0),onChange:(f,p)=>o({vals:[String(p.value??p.displayValue??a),i]})}),c.jsx("span",{style:{fontSize:11,color:T.colorNeutralForeground3},children:"and"}),c.jsx(Da,{"aria-label":`${n} (to)`,size:"small",value:Number(i||0),onChange:(f,p)=>o({vals:[a,String(p.value??p.displayValue??i)]})})]}):c.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[c.jsx(Ht,{"aria-label":`${n} (from)`,size:"small",value:a,placeholder:l,onChange:(f,p)=>o({vals:[p.value,i]})}),c.jsx("span",{style:{fontSize:11,color:T.colorNeutralForeground3},children:"and"}),c.jsx(Ht,{"aria-label":`${n} (to)`,size:"small",value:i,placeholder:d,onChange:(f,p)=>o({vals:[a,p.value]})})]})}function gfe({rule:e,op:t,col:r,onChange:o}){const n=e.values??[];return t.kind==="dv-fn-array"&&r&&Sm(r)&&(t.id==="ContainValues"||t.id==="DoesNotContainValues")?c.jsx(z3,{col:r,values:n,onChange:a=>o({values:a}),placeholder:"filter & pick option(s)"}):r&&Sm(r)&&(t.id==="In"||t.id==="NotIn")?c.jsx(z3,{col:r,values:n,onChange:a=>o({values:a}),placeholder:"filter & pick value(s)"}):c.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center",flexWrap:"wrap"},children:[c.jsx(Mz,{size:"small",onDismiss:(a,i)=>o({values:n.filter(l=>l!==i.value)}),children:n.map(a=>c.jsxs(Nz,{size:"small",shape:"circular",appearance:"outline",value:a,children:[c.jsx(zz,{hasSecondaryAction:!0,children:c.jsx("span",{style:{fontFamily:T.fontFamilyMonospace},children:a})}),c.jsx(_z,{"aria-label":"Remove"})]},a))}),c.jsx(hfe,{onAdd:a=>o({values:[...n,a]}),intValue:!!t.intValue})]})}function hfe({onAdd:e,intValue:t}){const r=m.useContext(Wo);return c.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:4},children:[c.jsx(Ht,{"aria-label":`${r} to add`,size:"small",type:t?"number":"text",placeholder:"+ add",style:{width:100},onKeyDown:o=>{if(o.key==="Enter"){const n=o.target.value.trim();n&&(e(n),o.target.value=""),o.preventDefault()}},onBlur:o=>{const n=o.target.value.trim();n&&(e(n),o.target.value="")}}),c.jsx(st,{content:"Press Enter to add",relationship:"description",children:c.jsx(js,{style:{width:14,height:14,color:T.colorNeutralForeground3}})})]})}function z3({col:e,values:t,onChange:r,placeholder:o}){const n=Sm(e)??[],[a,i]=m.useState(""),l=m.useMemo(()=>{const p=new Map;for(const h of n)p.set(String(h.value),h.label);return p},[n]),d=m.useMemo(()=>n.map(p=>String(p.value)),[n]),f=Voe({query:a,options:d,noOptionsElement:c.jsx(Wl,{value:"__no-matches",children:"No matches"}),renderOption:p=>c.jsx(Wl,{value:p,text:l.get(p)??p,children:c.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:8},children:[l.get(p)??p,c.jsxs("span",{style:{fontFamily:T.fontFamilyMonospace,fontSize:10,color:T.colorNeutralForeground3},children:["· ",p]})]})},p),filter:p=>t.includes(p)?!1:(l.get(p)??p).toLowerCase().includes(a.toLowerCase())});return c.jsxs(vm,{selectedOptions:t,onOptionSelect:(p,h)=>{h.value!=="__no-matches"&&(r(h.selectedOptions),i(""))},disableAutoFocus:a.length===0,children:[c.jsxs(xm,{style:{minWidth:220,maxWidth:480},children:[c.jsx(wm,{"aria-label":"Selected values",children:t.map(p=>c.jsx(hm,{value:p,shape:"rounded",size:"small",children:l.get(p)??p},p))}),c.jsx(bm,{"aria-label":"Pick option",placeholder:t.length===0?o??"filter & pick…":"",value:a,onChange:p=>i(p.target.value)})]}),c.jsx(ym,{children:f})]})}function vfe({rule:e,col:t,parentTable:r,onChange:o}){const n=m.useContext(Wo),a=Vo();if(!r||!t)return c.jsx(Ht,{"aria-label":n,size:"small",value:e.val??"",disabled:!0,placeholder:"(column compare unavailable)"});const i=r.columns.filter(d=>d.attributeType===t.attributeType&&d.logicalName!==t.logicalName&&(d.logicalName===e.val||d.isValidForRead!==!1&&Zi(d,a))),l=i.find(d=>d.logicalName===e.val);return i.length===0?c.jsx(Ue,{layout:"multiline",intent:"warning",style:{padding:"4px 8px"},children:c.jsxs(Ge,{children:["No other"," ",c.jsx("code",{style:{fontFamily:T.fontFamilyMonospace},children:t.attributeType})," ","columns on this table to compare against. Switch back to ",c.jsx("strong",{children:"literal"}),"."]})}):c.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:[c.jsx(hC,{style:{width:14,height:14,color:T.colorBrandForeground1}}),c.jsx("span",{style:{fontSize:10,color:T.colorNeutralForeground3,fontFamily:T.fontFamilyMonospace},children:"same-row"}),c.jsx(Ur,{"aria-label":`${n} (column)`,size:"small",value:l?.displayName??e.val??"",selectedOptions:e.val?[e.val]:[],onOptionSelect:(d,f)=>f.optionValue&&o({val:f.optionValue}),placeholder:"pick a column",children:i.map(d=>c.jsx(at,{value:d.logicalName,text:d.displayName,children:c.jsxs("span",{style:{display:"flex",alignItems:"center",gap:8},children:[d.displayName,c.jsx("span",{style:{fontFamily:T.fontFamilyMonospace,fontSize:10,color:T.colorNeutralForeground3},children:d.logicalName})]})},d.logicalName))})]})}const bfe=e=>e?.attributeType==="Integer"||e?.attributeType==="BigInt"||e?.attributeType==="Decimal"||e?.attributeType==="Double"||e?.attributeType==="Money";function yfe({table:e,col:t,value:r,onChange:o,size:n="small",only:a}){const i=m.useMemo(()=>{const f=t?nx(t.attributeType,e):[];return a?f.filter(p=>a.includes(p.category)):f},[t,e,a]),l=m.useMemo(()=>{const f=new Map;return i.forEach(p=>{f.has(p.category)||f.set(p.category,[]),f.get(p.category).push(p)}),hT.filter(p=>f.has(p.id)).map(p=>({...p,items:f.get(p.id)}))},[i]),d=Ln(r);return c.jsxs(zi,{hasIcons:!1,positioning:{position:"below",align:"start",autoSize:"height-always"},children:[c.jsx(qa,{disableButtonEnhancement:!0,children:c.jsx(pe,{size:n,appearance:"outline",iconPosition:"after",icon:c.jsx(NC,{}),style:{minWidth:160,justifyContent:"space-between"},children:c.jsx("span",{style:{fontWeight:500,color:T.colorNeutralForeground1},children:d?.label??r})})}),c.jsx(Ti,{style:{maxHeight:460,overflowY:"auto"},children:c.jsx(Ma,{children:l.map((f,p)=>c.jsxs("span",{children:[p>0&&c.jsx(Oy,{}),c.jsx(Ly,{children:f.label}),f.items.map(h=>c.jsx(st,{content:h.hint??h.label,relationship:"description",positioning:"after",children:c.jsx(un,{onClick:()=>o(h.id),children:c.jsxs("span",{style:{display:"flex",justifyContent:"space-between",gap:12,width:"100%"},children:[c.jsx("span",{style:{fontWeight:h.id===r?600:400},children:h.label}),c.jsx("span",{style:{fontFamily:T.fontFamilyMonospace,fontSize:10,color:T.colorNeutralForeground3},children:h.odata.replace("Microsoft.Dynamics.CRM.","")})]})})},h.id))]},f.id))})})]})}function f8({antipatterns:e}){return e.length===0?null:c.jsxs(Gi,{withArrow:!0,positioning:"below-end",children:[c.jsx(Ya,{disableButtonEnhancement:!0,children:c.jsx(pe,{appearance:"transparent",size:"small",icon:c.jsx(E2,{style:{color:T.colorPaletteDarkOrangeForeground1}}),"aria-label":`${e.length} performance warning${e.length===1?"":"s"} on this rule`,title:e.length===1?e[0].title:`${e.length} performance warnings — click for details`,style:{minWidth:20,maxWidth:20,width:20,height:20,padding:0,flexShrink:0}})}),c.jsx(Ui,{style:{maxWidth:360,padding:12},children:c.jsx("div",{style:{display:"flex",flexDirection:"column",gap:12},children:e.map((t,r)=>c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6,...r>0?{paddingTop:12,borderTop:`1px solid ${T.colorNeutralStroke2}`}:{}},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,fontWeight:T.fontWeightSemibold,fontSize:T.fontSizeBase300,color:T.colorNeutralForeground1},children:[c.jsx(E2,{style:{color:T.colorPaletteDarkOrangeForeground1,flexShrink:0}}),c.jsx("span",{children:t.title})]}),c.jsx("div",{style:{fontSize:T.fontSizeBase200,color:T.colorNeutralForeground2,lineHeight:1.4},children:t.body}),c.jsxs(xs,{href:t.learnMoreUrl,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:4,fontSize:T.fontSizeBase200,alignSelf:"flex-start"},children:["Learn more",c.jsx(xC,{style:{width:12,height:12}})]})]},t.kind+r))})})]})}const Tt={err:(e,t,r,o,n,a)=>({id:e,severity:"error",source:t,title:r,body:o,focusNode:n,learnMoreUrl:a}),warn:(e,t,r,o,n,a)=>({id:e,severity:"warning",source:t,title:r,body:o,focusNode:n,learnMoreUrl:a}),info:(e,t,r,o,n,a)=>({id:e,severity:"info",source:t,title:r,body:o,focusNode:n,learnMoreUrl:a})};function xfe(e){const t=[],r=[],o=[];for(const n of e)n.severity==="error"?t.push(n):n.severity==="warning"?r.push(n):o.push(n);return{errors:t,warnings:r,infos:o,total:e.length}}function wfe(e){const t=e.filter(r=>r.severity==="error");return t.length===0?null:t.length===1?t[0].title:`${t.length} blockers — open Advisories to review.`}function Nye(e){const t=e.find(r=>r.when);return t?[Tt.err(t.id,"validation",t.title,t.body,t.focusNode)]:[]}const Pi="https://learn.microsoft.com/en-us/power-apps/developer/data-platform/query-antipatterns",kfe="https://learn.microsoft.com/en-us/power-apps/developer/data-platform/wildcard-characters";function Wg(e,t=", "){return e.reduce((r,o,n)=>n===0?[o]:[...r,t,o],[])}function p8(e){return/^address[1-9]\d*_/.test(e.logicalName)}function Sfe(e){return e.length>25?[Tt.warn("select-too-many","antipattern",`${e.length} columns in $select — performance risk`,c.jsxs("span",{children:["Selecting more than ~25 columns slows the response and can trigger the"," ",c.jsx("code",{children:"LargeAmountOfAttributes"})," antipattern. Pick only what the client renders."]}),"select",Pi)]:[]}function Bfe(e,t){const r=e.map(o=>Mn(t,o)).filter(o=>!!o&&Yy(o));return r.length===0?[]:[Tt.warn("select-logical","antipattern",`${r.length} logical column${r.length===1?"":"s"} in $select`,c.jsxs("span",{children:[Wg(r.map(o=>c.jsx("code",{children:o.logicalName},o.logicalName)))," — values live in separate physical tables; each one forces a join. Per the"," ",c.jsx("code",{children:"LargeAmountOfLogicalAttributes"})," antipattern."]}),"select",Pi)]}function _x(e,t){const r=[],o=(n,a,i)=>{for(const l of n.rules)if(l.type==="rule"||l.type==="function"){if(!l.col)continue;let d=l.col;i&&d.startsWith(i+"/")&&(d=d.slice(i.length+1));const f=d.split("/");let p=a;for(let v=0;v<f.length-1;v++){const y=p?.navigationProperties.find(x=>x.name===f[v]);if(p=y?fe(y.targetEntity):void 0,!p)break}if(!p)continue;const h=p.columns.find(v=>v.logicalName===f[f.length-1]);h&&r.push({col:h,op:l.op})}else if(l.type==="group")o(l,a,i);else if(l.type==="lambda"){const d=a.navigationProperties.find(p=>p.name===l.nav),f=d?fe(d.targetEntity):void 0;f&&o(l.inner,f,l.alias)}};return o(e,t),r}const jfe=new Set(["contains","startswith","endswith"]);function Cfe(e,t){const r=_x(e,t).filter(({col:n,op:a})=>cT(n)&&jfe.has(a));if(r.length===0)return[];const o=Array.from(new Map(r.map(n=>[n.col.logicalName,n.col])).values());return[Tt.warn("filter-large-text","antipattern",`contains/startswith/endswith on large-text column${o.length===1?"":"s"}`,c.jsxs("span",{children:[Wg(o.map(n=>c.jsx("code",{children:n.logicalName},n.logicalName)))," can't be efficiently indexed (Memo, or String > 850 chars). Consider"," ",c.jsx("strong",{children:"Dataverse Search"})," instead."]}),"filter",Pi)]}function Nfe(e,t){const r=_x(e,t).map(n=>n.col).filter(Yy).filter(n=>!p8(n));if(r.length===0)return[];const o=Array.from(new Map(r.map(n=>[n.logicalName,n])).values());return[Tt.warn("filter-logical","antipattern",`Filter on logical column${o.length===1?"":"s"}`,c.jsxs("span",{children:[Wg(o.map(n=>c.jsx("code",{children:n.logicalName},n.logicalName)))," — values live in a joined physical table. Filtering forces a server-side join before the predicate; slower than filtering on sub-fields directly (e.g. ",c.jsx("code",{children:"address1_city"})," instead of the composite)."]}),"filter",Pi)]}function zfe(e,t){const r=_x(e,t).map(n=>n.col).filter(uT);if(r.length===0)return[];const o=Array.from(new Map(r.map(n=>[n.logicalName,n])).values());return[Tt.warn("filter-computed","antipattern",`Filter on ${o.length===1?`${J1(o[0].sourceType)} column`:"computed columns"}`,c.jsxs("span",{children:[Wg(o.map(n=>c.jsxs("code",{children:[n.logicalName," (",J1(n.sourceType),")"]},n.logicalName)))," ","— Dataverse computes these at retrieval time. Filtering on them is throttled (",c.jsx("code",{children:"FilteringOnCalculatedColumns"}),")."]}),"filter",Pi)]}function Tfe(e){return e.length===0?[]:[Tt.info("wildcard-stripped","wildcard",`Stripped leading wildcard${e.length===1?"":"s"} from ${e.length} filter${e.length===1?"":"s"}`,c.jsxs("span",{children:["Dataverse rejects leading wildcards. The following inputs were rewritten:",c.jsx("ul",{style:{margin:"6px 0 0 0",paddingLeft:18},children:e.map((t,r)=>c.jsxs("li",{style:{marginBottom:2},children:[c.jsx("code",{children:t.col}),": ",c.jsx("code",{children:t.raw})," → ",c.jsx("code",{children:t.cleaned}),c.jsxs("span",{style:{marginLeft:4,opacity:.7},children:["(",t.kinds.join(", "),")"]})]},r))}),c.jsxs("span",{style:{display:"block",marginTop:6},children:["To search for a literal ",c.jsx("code",{children:"%"}),", enclose it in brackets: ",c.jsx("code",{children:"[%]"}),"."]})]}),"filter",kfe)]}function m8(e,t){const r=[];if(uT(e)){const n=J1(e.sourceType)??"computed";r.push({kind:"calculated",title:`Filtering on a ${n} column`,body:`${e.displayName} is a ${n} column. Dataverse re-evaluates the formula for every row before applying the predicate — throttled via the FilteringOnCalculatedColumns antipattern.`,learnMoreUrl:Pi})}Yy(e)&&!p8(e)&&r.push({kind:"logical",title:"Filtering on a logical column",body:`${e.displayName} lives in a different physical table (composite address, derived metadata, etc.). Filtering forces a server-side join before the predicate.`,learnMoreUrl:Pi});const o=new Set(["contains","startswith","endswith"]);return cT(e)&&t&&o.has(t)&&r.push({kind:"largeText",title:`${t}() on a large-text column`,body:`${e.displayName} is ${e.attributeType==="Memo"?"a Memo (multi-line text)":"a long String (MaxLength > 850)"} column. ${t}() can't use an index — scans every row. Consider Dataverse Search for full-text needs.`,learnMoreUrl:Pi}),r}function _fe(e){const t=fe(e.table);return t?[...Sfe(e.select),...Bfe(e.select,t),...Cfe(e.filter,t),...Nfe(e.filter,t),...zfe(e.filter,t),...Tfe(e.strippedWildcards??[])]:[]}const Rfe=["address1","address2","address3"],Dfe=[{suffix:"city",label:"City =",op:"eq"},{suffix:"stateorprovince",label:"State / Province =",op:"eq"},{suffix:"country",label:"Country =",op:"eq"},{suffix:"postalcode",label:"Postal code starts with",op:"startswith"}];function Efe(e){return!!e&&(e.attributeType==="String"||e.attributeType==="Memo")&&e.isValidForRead!==!1&&e.isValidOData!==!1}function Pfe(e){const t=new Map(e.columns.map(o=>[o.logicalName,o])),r=[];for(const o of Rfe){const n=[];for(const a of Dfe){const i=t.get(`${o}_${a.suffix}`);Efe(i)&&n.push({col:i.logicalName,op:a.op,label:a.label,displayName:i.displayName})}n.length&&r.push({prefix:o,label:`Address ${o.slice(-1)}`,shortcuts:n})}return r}function Mfe(e){return{...cx(e.col),op:e.op,val:""}}function qfe({table:e,onAdd:t}){const r=Pfe(e);return r.length?c.jsx("div",{role:"group","aria-label":"Address filter shortcuts",style:{display:"flex",flexDirection:"column",gap:6,marginBottom:12},children:r.map(o=>c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,flexWrap:"wrap"},children:[c.jsxs(Pe,{style:{display:"inline-flex",alignItems:"center",gap:4,minWidth:84,color:T.colorNeutralForeground3},children:[c.jsx(nA,{}),o.label]}),o.shortcuts.map(n=>c.jsx(st,{content:`Add a rule: ${n.displayName} (${n.col}) ${n.op==="eq"?"equals":"starts with"} …`,relationship:"description",children:c.jsxs(pe,{size:"small",shape:"circular",appearance:"outline",icon:c.jsx(JI,{}),onClick:()=>t(Mfe(n)),children:[n.label," …"]})},n.col))]},o.prefix))}):null}async function la(e,t,{toastOnSuccess:r=!0,shown:o=!0}={}){try{await aT(e)}catch(n){const a=n instanceof Error?n.message.trim().replace(/\.$/,""):"",i=a?` (${a})`:"";return Zl(`Couldn't copy ${t}${i}. ${o?"Select it and press Ctrl+C instead.":"Try again in a moment."}`,{title:"Couldn't copy",intent:"error"}),!1}return r&&Zl(`Copied ${t} to the clipboard.`,{title:"Copied",intent:"success",timeout:2500}),!0}function g8(e,t){if(!t)return{};const r=ws(e,t);return{col:r.leaf,ownerTable:r.ownerTable}}function Ffe(e,t){return g8(e,t).col}function Ife(e,t){return!t||!t.includes("/")?null:ws(e,t).pendingTarget??null}function Rx({table:e,tree:t,setTree:r,group:o="read",urlBytes:n=0,compact:a=!1,applyActive:i=!1}){const l=_t(),d=fe(e),f=Vo(),p=m.useMemo(()=>_i(t),[t]),h=m.useMemo(()=>d?Li(t,d):"",[t,d]),v=Sae(t,n);if(!d)return c.jsx("div",{children:"Pick a target table first."});const y=(C,z)=>r(cae(t,C,z)),x=C=>r(dae(t,C)),b=(C,z,R)=>r(uae(t,C,z,R)),k=(C,z,R,E=d,D)=>{const I=(nd(E.columns,f)??E.columns[0]).logicalName,M=D?`${D}/`:"";let O;if(z==="rule")O=cx(M+I);else if(z==="group")O=Bae(M+I);else if(z==="function")O=jae(E,R??"LastXDays",f);else{const H=Dg(E.navigationProperties,f).filter(X=>X.cardinality!=="ManyToOne"),$=R??H[0]?.name;if(!$)return;const Z=E.navigationProperties.find(X=>X.name===$),q=Z?fe(Z.targetEntity):void 0,A=q?(nd(q.columns,f)??q.columns[0]).logicalName:I;O=Cae($,A)}r(IB(t,C,O))},S=!a&&c.jsx(Un,{icon:nm,title:"$filter",sub:"Combine rules with AND / OR · drop in Dataverse query functions · filter on related collections with λ any/all.",group:o,children:c.jsxs(ct,{appearance:"ghost",children:[p," rule",p===1?"":"s"]})}),N=!a&&p===0&&c.jsx(Ue,{layout:"multiline",intent:"info",style:{marginBottom:12},children:c.jsxs(Ge,{children:[c.jsx(Lt,{children:"No filter"}),"All rows will be returned (subject to ",c.jsx("code",{children:"$top"})," / server caps). Use"," ",c.jsx("strong",{children:"+ Add rule"})," for a column comparison, ",c.jsx("strong",{children:"Dataverse function"})," (",c.jsx("code",{children:"ƒ"}),") for the built-in named conditions (",c.jsx("code",{children:"LastXDays"}),","," ",c.jsx("code",{children:"InFiscalYear"}),", ",c.jsx("code",{children:"EqualUserId"}),", …), or ",c.jsx("strong",{children:"Add lambda"})," (",c.jsx("code",{children:"λ"}),") to filter on a related collection (e.g."," ",c.jsx("code",{children:"contact_customer_accounts/any(c: c/jobtitle eq 'CEO')"}),"). ",c.jsx("br",{}),c.jsx("br",{}),c.jsx("strong",{children:"Negation:"})," toggle ",c.jsx("code",{children:"not"})," on individual ",c.jsx("code",{children:"contains"})," /",c.jsx("code",{children:"startswith"})," / ",c.jsx("code",{children:"endswith"})," rules. For everything else, pick the explicit ",c.jsx("code",{children:"Not*"})," sibling from the function list (",c.jsx("code",{children:"NotIn"}),","," ",c.jsx("code",{children:"NotBetween"}),", ",c.jsx("code",{children:"NotEqualUserId"}),",",c.jsx("code",{children:"DoesNotContainValues"}),", …). Dataverse rejects ",c.jsx("code",{children:"not"})," on groups and on ",c.jsx("code",{children:"Microsoft.Dynamics.CRM.*"})," ","functions directly."]})}),B=!a&&c.jsxs(c.Fragment,{children:[v.ruleWarn&&!v.ruleError&&c.jsx(Ue,{layout:"multiline",intent:"warning",style:{marginBottom:12},children:c.jsxs(Ge,{children:[c.jsxs("strong",{children:[v.ruleCount," conditions"]})," — Dataverse caps at 500 per query. Consider compressing OR groups with ",c.jsx("code",{children:"In(...)"}),"."]})}),v.ruleError&&c.jsx(Ue,{layout:"multiline",intent:"error",style:{marginBottom:12},children:c.jsxs(Ge,{children:[c.jsxs("strong",{children:[v.ruleCount," conditions"]})," exceeds the"," ",c.jsx("strong",{children:"500-condition hard cap"}),"."]})}),v.urlWarn&&!v.urlError&&c.jsx(Ue,{layout:"multiline",intent:"warning",style:{marginBottom:12},children:c.jsxs(Ge,{children:["URL is ",c.jsxs("strong",{children:[(n/1024).toFixed(1)," KB"]})," — GET caps at 32 KB. Switch to"," ",c.jsx("code",{children:"$batch"})," for larger requests."]})})]});return c.jsxs("div",{children:[S,i&&!a&&c.jsx(Ig,{clause:"$filter"}),N,B,!a&&c.jsx(qfe,{table:d,onAdd:C=>r(IB(t,t.id,C))}),c.jsx(Dx,{group:t,depth:0,table:d,requestGroup:o,onUpdate:y,onAdd:k,onRemove:x,onReorderChildren:b}),!a&&p>0&&c.jsxs("div",{className:l.generatedCard,children:[c.jsx("div",{className:l.generatedLabel,children:"Generated"}),c.jsxs("div",{className:l.generatedCode,children:[c.jsx("span",{className:l.generatedKey,children:"$filter"}),"=",c.jsx("span",{children:h})]}),c.jsx("div",{style:{marginTop:8,display:"flex",justifyContent:"flex-end"},children:c.jsx(st,{content:"Copy OData expression",relationship:"description",children:c.jsx(pe,{icon:c.jsx(ac,{}),appearance:"subtle",size:"small",onClick:()=>{la(h,"the OData expression")},children:"Copy"})})})]})]})}function Dx({group:e,depth:t,table:r,requestGroup:o,lambdaAlias:n,onUpdate:a,onAdd:i,onRemove:l,onReorderChildren:d,gripProps:f}){const p=_t(),h=["read","relate","write","execute","binary"],v=Pn(t===0?o:h[t%h.length]),y=k=>a(e.id,{combinator:k}),x=()=>a(e.id,{negated:!e.negated}),b=e.rules.length===1?"1 condition":`${e.rules.length} conditions`;return c.jsxs("div",{className:p.filterGroup,style:{borderLeftColor:v,marginBottom:t===0?0:6},children:[c.jsxs("div",{className:p.filterGroupHeader,children:[t>0&&c.jsx("span",{...f??{},"aria-label":f?"Drag to reorder group":void 0,children:c.jsx(Nd,{className:p.dragHandle,"aria-hidden":!f})}),c.jsxs(bx,{ariaLabel:"Combinator",children:[c.jsx(Bo,{checked:e.combinator==="and",appearance:e.combinator==="and"?"primary":"secondary",onClick:()=>y("and"),children:"AND"}),c.jsx(Bo,{checked:e.combinator==="or",appearance:e.combinator==="or"?"primary":"secondary",onClick:()=>y("or"),children:"OR"})]}),c.jsx(st,{content:e.negated?"Group is negated — emits `not (…)`. Click to remove.":"Negate group — emits `not (…)`. Allowed by Dataverse on any group EXCEPT one containing `Microsoft.Dynamics.CRM.*` functions.",relationship:"description",children:c.jsx(Bo,{checked:!!e.negated,onClick:x,size:"small",appearance:e.negated?"primary":"subtle",style:{minWidth:44,fontFamily:T.fontFamilyMonospace,fontWeight:700,...e.negated?{backgroundColor:T.colorPaletteRedBackground3,color:"#fff"}:{}},children:"NOT"})}),c.jsx("span",{style:{fontSize:12,color:T.colorNeutralForeground3},children:b}),c.jsx("div",{style:{flexGrow:1}}),t===0&&c.jsx(ct,{appearance:"tint",size:"small",style:{fontFamily:T.fontFamilyMonospace,fontWeight:700},children:"λ supported"}),t>0&&c.jsx(st,{content:"Remove group",relationship:"label",children:c.jsx(pe,{icon:c.jsx(mn,{}),appearance:"subtle",size:"small",onClick:()=>l(e.id),"aria-label":"Remove group"})})]}),c.jsxs("div",{className:p.filterGroupBody,children:[e.rules.length===0&&c.jsx("div",{style:{padding:"8px 4px",fontSize:12,color:T.colorNeutralForeground3,fontStyle:"italic"},children:"Empty group — add a condition below."}),c.jsx(dd,{ids:e.rules.map(k=>k.id),onReorder:(k,S)=>d(e.id,k,S),children:e.rules.map(k=>c.jsx(fd,{id:k.id,children:({gripProps:S})=>c.jsx(Lfe,{node:k,parentTable:r,depth:t,requestGroup:o,lambdaAlias:n,onUpdate:a,onAdd:i,onRemove:l,onReorderChildren:d,gripProps:S})},k.id))})]}),c.jsx("div",{className:p.filterGroupFooter,children:c.jsx(Afe,{group:e.id,table:r,lambdaAlias:n,onAdd:i})})]})}function Afe({group:e,table:t,lambdaAlias:r,onAdd:o}){const n=Vo(),a=Dg(t.navigationProperties,n).filter(i=>i.cardinality!=="ManyToOne");return c.jsxs(c.Fragment,{children:[c.jsx(pe,{size:"small",appearance:"subtle",icon:c.jsx(js,{}),onClick:()=>o(e,"rule",void 0,t,r),children:"Add rule"}),c.jsx(pe,{size:"small",appearance:"subtle",icon:c.jsx(Cs,{}),onClick:()=>o(e,"group",void 0,t,r),children:"Add group"}),c.jsxs(zi,{positioning:{position:"below",align:"start",autoSize:"height-always"},children:[c.jsx(qa,{disableButtonEnhancement:!0,children:c.jsx(pe,{size:"small",appearance:"subtle",style:{color:"var(--color-request-relate-text)"},icon:c.jsx("span",{style:{fontFamily:T.fontFamilyMonospace,fontWeight:700,fontSize:14,lineHeight:1,color:"var(--color-request-relate-text)"},children:"ƒ"}),children:"Dataverse function"})}),c.jsx(Ti,{style:{maxHeight:460,overflowY:"auto"},children:c.jsx(Ma,{children:hT.filter(i=>["date-relative","date-rolling","fiscal","range","set","choices","hierarchy","user-context"].includes(i.id)).map(i=>c.jsxs("span",{children:[c.jsx("span",{style:{display:"block",padding:"6px 10px",fontSize:10,fontWeight:600,letterSpacing:"0.06em",textTransform:"uppercase",color:T.colorNeutralForeground3},children:i.label}),Rs.filter(l=>l.category===i.id).slice(0,12).map(l=>c.jsx(un,{onClick:()=>o(e,"function",l.id,t,r),secondaryContent:c.jsx("span",{style:{fontFamily:T.fontFamilyMonospace,fontSize:10,color:T.colorNeutralForeground3},children:l.odata.replace("Microsoft.Dynamics.CRM.","")}),children:l.label},l.id))]},i.id))})})]}),a.length>0&&c.jsx(Ofe,{group:e,table:t,lambdaAlias:r,onAdd:o})]})}function Ofe({group:e,table:t,lambdaAlias:r,onAdd:o}){const n=Vo(),a=Dg(t.navigationProperties,n).filter(h=>h.cardinality!=="ManyToOne"),[i,l]=m.useState(!1),[d,f]=m.useState(""),p=m.useMemo(()=>{const h=d.trim().toLowerCase();return h?a.filter(v=>v.name.toLowerCase().includes(h)||v.targetEntity.toLowerCase().includes(h)):a},[a,d]);return c.jsxs(Gi,{open:i,onOpenChange:(h,v)=>{l(v.open),v.open||f("")},positioning:{position:"below",align:"start",autoSize:"height-always"},withArrow:!1,children:[c.jsx(Ya,{disableButtonEnhancement:!0,children:c.jsx(pe,{size:"small",appearance:"subtle",style:{color:T.colorBrandForeground1},icon:c.jsx("span",{style:{fontFamily:T.fontFamilyMonospace,fontWeight:700,fontSize:14,lineHeight:1,color:T.colorBrandForeground1},children:"λ"}),children:"Add lambda"})}),c.jsxs(Ui,{style:{padding:8,width:360,maxHeight:"min(60vh, 460px)",overflowY:"auto"},children:[c.jsxs("div",{style:{fontSize:10,fontWeight:600,letterSpacing:"0.06em",textTransform:"uppercase",color:T.colorNeutralForeground3,padding:"4px 4px 8px"},children:["Collection navigations · ",a.length]}),c.jsxs(Ur,{freeform:!0,size:"small",placeholder:"Search by nav or target entity…",value:d,onChange:h=>f(h.target.value),onOptionSelect:(h,v)=>{v.optionValue&&(o(e,"lambda",v.optionValue,t,r),l(!1),f(""))},style:{width:"100%"},listbox:{style:{maxHeight:360}},children:[p.map(h=>c.jsx(at,{value:h.name,text:h.name,children:c.jsxs("span",{style:{display:"flex",flexDirection:"column",minWidth:0},children:[c.jsx("span",{style:{fontFamily:T.fontFamilyMonospace,fontWeight:600,color:T.colorNeutralForeground1},children:h.name}),c.jsxs("span",{style:{fontSize:11,color:T.colorNeutralForeground3},children:["→ ",h.targetEntity,c.jsx("span",{style:{marginLeft:8,fontFamily:T.fontFamilyMonospace},children:h.cardinality})]})]})},h.name)),p.length===0&&c.jsx(at,{value:"__none",text:"",disabled:!0,children:c.jsxs("span",{style:{color:T.colorNeutralForeground3,fontSize:11},children:['No matches for "',d,'"']})})]})]})]})}function Lfe({node:e,parentTable:t,depth:r,requestGroup:o,lambdaAlias:n,onUpdate:a,onAdd:i,onRemove:l,onReorderChildren:d,gripProps:f}){return e.type==="group"?c.jsx(Dx,{group:e,depth:r+1,table:t,requestGroup:o,lambdaAlias:n,onUpdate:a,onAdd:i,onRemove:l,onReorderChildren:d,gripProps:f}):e.type==="rule"?c.jsx($fe,{rule:e,table:t,lambdaAlias:n,onUpdate:a,onRemove:l,gripProps:f}):e.type==="function"?c.jsx(Wfe,{fn:e,table:t,onUpdate:a,onRemove:l,gripProps:f}):c.jsx(Zfe,{node:e,parentTable:t,depth:r,requestGroup:o,onUpdate:a,onAdd:i,onRemove:l,onReorderChildren:d,gripProps:f})}function $fe({rule:e,table:t,lambdaAlias:r,onUpdate:o,onRemove:n,gripProps:a}){const i=_t(),l=m.useMemo(()=>r&&e.col.startsWith(`${r}/`)?e.col.slice(r.length+1):e.col,[e.col,r]),d=l.split("/").pop()??l,f=Ife(t,l);bc(f);const{col:p,ownerTable:h}=(()=>{const D=g8(t,l);return D.col?D:{col:Mn(t,d),ownerTable:t}})(),v=Ln(e.op),y=Vo(),x=v?.arity===0,b=m.useMemo(()=>t.columns.filter(D=>(Zi(D,y)||D.logicalName===e.col)&&D.attributeType!=="File"&&D.attributeType!=="Image"&&D.isValidForRead!==!1&&!td(D)),[t,y,e.col]),k=m.useMemo(()=>p?nx(p.attributeType,t.logicalName).filter(D=>D.kind==="comparison"||D.kind==="odata-fn"||D.kind==="null-check"):Rs.filter(D=>["comparison","string"].includes(D.category)),[p,t]),S=v?.kind==="odata-fn",N=D=>{const I=Rs.find(H=>H.id===D);if(!I)return;const M=I.supportsColumnRhs?e.valKind??"literal":"literal",O={op:D,val:"",valKind:M};if(I.allowedTypes&&p&&!I.allowedTypes.includes(p.attributeType)){const H=b.find($=>I.allowedTypes.includes($.attributeType));if(H){const $=e.col.includes("/")?e.col.split("/").slice(0,-1).join("/")+"/":"";O.col=$+H.logicalName}}o(e.id,O)},B=l.includes("/"),C=v?.supportsColumnRhs&&!B,z=e.valKind??"literal",R=D=>{const I=Ffe(t,D);let M=e.op;I&&v&&v.allowedTypes&&!v.allowedTypes.includes(I.attributeType)&&(M=k[0]?.id??"eq");const O=D?r?`${r}/${D}`:D:"";o(e.id,{col:O,op:M,val:"",valKind:"literal"})},E=m.useMemo(()=>p?m8(p,e.op):[],[p,e.op]);return c.jsxs("div",{className:`${i.filterRow} ${x?i.filterRowNoVal:""}`,children:[c.jsx("span",{...a??{},"aria-label":a?"Drag to reorder rule":void 0,children:c.jsx(Nd,{className:i.dragHandle,"aria-hidden":!a})}),c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4,minWidth:0},children:[c.jsx("div",{style:{flex:1,minWidth:0},children:c.jsx(P7,{rootTable:t.logicalName,value:l,onChange:R,allowedColumnTypes:v?.allowedTypes,placeholder:"Pick column or drill via lookup…"})}),c.jsx(f8,{antipatterns:E})]}),c.jsx(yfe,{table:t.logicalName,col:p,value:e.op,onChange:N,only:["comparison","string"]}),v?c.jsxs("span",{style:{display:"flex",gap:6,alignItems:"center",minWidth:0},children:[S&&c.jsx(Vfe,{negated:!!e.negated,onChange:D=>o(e.id,{negated:D})}),C&&c.jsx(Hfe,{kind:z,onChange:D=>o(e.id,{valKind:D,val:""})}),c.jsx("span",{style:{flexGrow:1,minWidth:0},children:c.jsx(ju,{rule:{id:e.id,col:e.col,op:e.op,val:e.val,valKind:e.valKind},op:v,col:p,parentTable:h??t,onChange:D=>o(e.id,D)})})]}):c.jsx("span",{}),c.jsx(st,{content:"Remove rule",relationship:"label",children:c.jsx(pe,{icon:c.jsx(mn,{}),appearance:"subtle",size:"small",onClick:()=>n(e.id),"aria-label":"Remove rule"})})]})}function Hfe({kind:e,onChange:t}){const r=e==="column";return c.jsx(st,{content:r?"On — RHS is a same-row column reference (column-vs-column compare). Toggle off for a literal value.":"Off — RHS is a typed literal. Toggle on to compare against another column on this row.",relationship:"description",children:c.jsx("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:0},children:c.jsx(co,{checked:r,onChange:(o,n)=>t(n.checked?"column":"literal"),label:c.jsx("span",{style:{fontSize:11,fontWeight:600,color:r?T.colorBrandForeground1:T.colorNeutralForeground3,fontFamily:T.fontFamilyMonospace,letterSpacing:"0.04em"},children:r?"col":"value"}),labelPosition:"after"})})})}function Vfe({negated:e,onChange:t}){return c.jsx(st,{content:e?"Negation is on — the encoder emits `not <expression>`":"Negate this condition (wraps it in `not(...)`)",relationship:"description",children:c.jsx(Bo,{size:"small",shape:"rounded",checked:e,onClick:()=>t(!e),"aria-label":"Negate condition",style:e?{backgroundColor:T.colorPaletteRedBackground2,color:T.colorPaletteRedForeground1}:void 0,children:c.jsx("span",{style:{fontFamily:T.fontFamilyMonospace,fontWeight:700},children:"not"})})})}function Wfe({fn:e,table:t,onUpdate:r,onRemove:o,gripProps:n}){const a=_t(),i=Ln(e.op),l=Vo(),d=e.col.split("/").pop()??e.col,f=Mn(t,d),p=m.useMemo(()=>f?nx(f.attributeType,t.logicalName).filter(x=>x.kind.startsWith("dv-fn")):Rs.filter(x=>x.kind.startsWith("dv-fn")),[f,t]),h=m.useMemo(()=>{const x=t.columns.filter(k=>(Zi(k,l)||k.logicalName===e.col)&&k.attributeType!=="File"&&k.attributeType!=="Image"&&k.isValidForRead!==!1&&!td(k)),b=i?.allowedTypes;return b?x.filter(k=>b.includes(k.attributeType)):x},[t,i,l,e.col]),v=x=>r(e.id,{col:x,val:"",vals:void 0,values:void 0}),y=x=>{const b=Ln(x);if(!b)return;const k={op:x,val:"",vals:void 0,values:void 0,negated:!1};b.arity===2&&b.kind==="dv-fn-2"&&(k.vals=["",""]),b.arity===2&&b.kind==="dv-fn-array"&&(k.values=["",""]),b.arity==="n"&&(k.values=[]);const S=b.allowedTypes;if(S&&f&&!S.includes(f.attributeType)){const N=nd(t.columns,l,B=>!td(B)&&S.includes(B.attributeType));N&&(k.col=N.logicalName)}r(e.id,k)};return c.jsxs("div",{className:a.fnBlock,children:[c.jsxs("div",{className:a.fnHeader,children:[c.jsx("span",{...n??{},"aria-label":n?"Drag to reorder function":void 0,children:c.jsx(Nd,{className:a.dragHandle,"aria-hidden":!n})}),c.jsx("span",{className:a.fnBadge,children:"ƒ"}),c.jsx("span",{className:a.fnPrefix,children:"Microsoft.Dynamics.CRM."}),c.jsx(Ur,{size:"small","aria-label":"Query function",value:i?.label??e.op,selectedOptions:[e.op],onOptionSelect:(x,b)=>b.optionValue&&y(b.optionValue),style:{minWidth:240},children:p.map(x=>c.jsx(at,{value:x.id,text:x.label,children:c.jsxs("span",{style:{display:"flex",alignItems:"center",gap:8},children:[c.jsx("span",{children:x.label}),c.jsx("span",{style:{fontFamily:T.fontFamilyMonospace,fontSize:10,color:T.colorNeutralForeground3},children:x.odata.replace("Microsoft.Dynamics.CRM.","")})]})},x.id))}),i?.hint&&c.jsx("span",{className:a.fnDescription,children:i.hint}),c.jsx("div",{style:{flexGrow:1}}),c.jsx(st,{content:"Remove function",relationship:"label",children:c.jsx(pe,{icon:c.jsx(mn,{}),appearance:"subtle",size:"small",onClick:()=>o(e.id),"aria-label":"Remove function"})})]}),c.jsxs("div",{className:a.fnParams,children:[c.jsxs("div",{className:a.fnParamRow,children:[c.jsx("span",{className:a.fnParamLabel,children:"PropertyName"}),c.jsx(Kfe,{value:e.col,currentDisplay:f?.displayName,columns:h,onChange:v,placeholder:h.length===0?`No columns of type ${i?.allowedTypes?.join("/")} on this table`:"Search columns…",style:{flexGrow:1,maxWidth:360}}),f&&c.jsx(f8,{antipatterns:m8(f,e.op)})]}),i&&Gfe(i,e,f,t,x=>r(e.id,x),a)]})]})}function Ufe(e){return/^(LastX|NextX|OlderThanX)(Days)$/.test(e)?{v:"Days"}:/^(LastX|NextX|OlderThanX)(Hours)$/.test(e)?{v:"Hours"}:/^OlderThanXMinutes$/.test(e)?{v:"Minutes"}:/^(LastX|NextX|OlderThanX)(Weeks)$/.test(e)?{v:"Weeks"}:/^(LastX|NextX|OlderThanX)(Months)$/.test(e)?{v:"Months"}:/^(LastX|NextX|OlderThanX)(Years)$/.test(e)?{v:"Years"}:/^(LastX|NextX)FiscalPeriods$/.test(e)?{v:"Fiscal periods"}:/^(LastX|NextX)FiscalYears$/.test(e)?{v:"Fiscal years"}:e==="InFiscalPeriod"?{v:"Fiscal period"}:e==="InFiscalYear"?{v:"Fiscal year"}:/^(InFiscalPeriodAndYear|InOrAfterFiscalPeriodAndYear|InOrBeforeFiscalPeriodAndYear)$/.test(e)?{v1:"Fiscal period",v2:"Fiscal year"}:e==="Between"||e==="NotBetween"?{vN:"Range (low, high)"}:e==="In"||e==="NotIn"?{vN:"Values"}:e==="ContainValues"||e==="DoesNotContainValues"?{vN:"Options"}:e==="On"||e==="OnOrAfter"||e==="OnOrBefore"?{v:"Date"}:/^(Above|AboveOrEqual|Under|UnderOrEqual|NotUnder)$/.test(e)?{v:"Reference record"}:{}}function Gfe(e,t,r,o,n,a){if(!e||e.arity===0)return null;const i=Ufe(e.id);if(e.arity===2){const l=e.kind==="dv-fn-array",[d,f]=l?[t.values?.[0]??"",t.values?.[1]??""]:t.vals??["",""],p=(y,x)=>l?{values:[y,x]}:{vals:[y,x]},h=i.v1??(e.id==="Between"||e.id==="NotBetween"?"Low":"PropertyValue1"),v=i.v2??(e.id==="Between"||e.id==="NotBetween"?"High":"PropertyValue2");return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:a.fnParamRow,children:[c.jsx("span",{className:a.fnParamLabel,children:h}),c.jsx(ju,{rule:{id:t.id,col:t.col,op:e.id,val:d},op:{...e,arity:1},col:r,parentTable:o,onChange:y=>n(p(y.val??d,f))})]}),c.jsxs("div",{className:a.fnParamRow,children:[c.jsx("span",{className:a.fnParamLabel,children:v}),c.jsx(ju,{rule:{id:t.id,col:t.col,op:e.id,val:f},op:{...e,arity:1},col:r,parentTable:o,onChange:y=>n(p(d,y.val??f))})]})]})}return e.arity==="n"?c.jsxs("div",{className:a.fnParamRow,children:[c.jsx("span",{className:a.fnParamLabel,children:i.vN??"PropertyValues"}),c.jsx(ju,{rule:{id:t.id,col:t.col,op:e.id,val:"",values:t.values},op:e,col:r,parentTable:o,onChange:l=>n({values:l.values})})]}):c.jsxs("div",{className:a.fnParamRow,children:[c.jsx("span",{className:a.fnParamLabel,children:i.v??"PropertyValue"}),c.jsx(ju,{rule:{id:t.id,col:t.col,op:e.id,val:t.val},op:e,col:r,parentTable:o,onChange:l=>n({val:l.val})})]})}function Zfe({node:e,parentTable:t,depth:r,requestGroup:o,onUpdate:n,onAdd:a,onRemove:i,onReorderChildren:l,gripProps:d}){const f=_t(),p=Vo(),h=t.navigationProperties.filter(N=>N.cardinality!=="ManyToOne"&&(Rg(N,p)||N.name===e.nav)),v=t.navigationProperties.find(N=>N.name===e.nav);bc(v?.targetEntity??null);const y=v?fe(v.targetEntity):void 0,x=N=>{const B=t.navigationProperties.find(E=>E.name===N);if(!B)return;const C=fe(B.targetEntity),z=N[0]??e.alias,R=C?(nd(C.columns,p)??C.columns[0]).logicalName:"name";n(e.id,{nav:N,alias:z,inner:{id:e.inner.id,type:"group",combinator:e.inner.combinator,rules:[{id:Ft("r"),type:"rule",col:`${z}/${R}`,op:"eq",val:""}]}})},[b,k]=m.useState(e.nav);m.useEffect(()=>{k(e.nav)},[e.nav]);const S=m.useMemo(()=>{const N=b.trim().toLowerCase();return!N||N===e.nav.toLowerCase()?h:h.filter(B=>B.name.toLowerCase().includes(N)||B.targetEntity.toLowerCase().includes(N))},[h,b,e.nav]);return c.jsxs("div",{className:f.lamBlock,children:[c.jsxs("div",{className:f.lamHeader,children:[c.jsx("span",{...d??{},"aria-label":d?"Drag to reorder lambda":void 0,children:c.jsx(Nd,{className:f.dragHandle,"aria-hidden":!d})}),c.jsx("span",{className:f.lamBadge,children:"λ"}),c.jsx(st,{content:e.negated?"Lambda is negated — emits `not <nav>/<any|all>(…)`. Click to remove.":"Negate this lambda — emits `not <nav>/<any|all>(…)`. Useful for `no matching related row`.",relationship:"description",children:c.jsx(Bo,{checked:!!e.negated,onClick:()=>n(e.id,{negated:!e.negated}),size:"small",appearance:e.negated?"primary":"subtle",style:{minWidth:44,fontFamily:T.fontFamilyMonospace,fontWeight:700,...e.negated?{backgroundColor:T.colorPaletteRedBackground3,color:"#fff"}:{}},"aria-label":e.negated?"Disable lambda NOT":"Negate lambda",children:"NOT"})}),c.jsxs(Ur,{freeform:!0,clearable:!0,size:"small",value:b,selectedOptions:[e.nav],onChange:N=>k(N.target.value),onOptionSelect:(N,B)=>{B.optionValue?(x(B.optionValue),k(B.optionValue)):k("")},placeholder:"Search relationships…",style:{minWidth:220},listbox:{style:{maxHeight:320}},children:[S.length===0&&c.jsx(at,{value:"__none",text:"",disabled:!0,children:c.jsxs("span",{style:{color:T.colorNeutralForeground3,fontSize:11},children:['No matches for "',b,'"']})}),S.map(N=>c.jsx(at,{value:N.name,text:N.name,children:c.jsxs("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[N.name,c.jsxs("span",{style:{fontFamily:T.fontFamilyMonospace,fontSize:10,color:T.colorNeutralForeground3},children:["→ ",N.targetEntity]})]})},N.name))]}),c.jsx("span",{style:{color:T.colorNeutralForeground3,fontFamily:T.fontFamilyMonospace},children:"/"}),c.jsxs(bx,{ariaLabel:"Lambda kind",children:[c.jsx(Bo,{checked:e.lambda==="any",onClick:()=>n(e.id,{lambda:"any"}),style:e.lambda==="any"?{backgroundColor:T.colorBrandForeground1,color:"#fff"}:void 0,children:"any"}),c.jsx(Bo,{checked:e.lambda==="all",onClick:()=>n(e.id,{lambda:"all"}),style:e.lambda==="all"?{backgroundColor:T.colorBrandForeground1,color:"#fff"}:void 0,children:"all"})]}),c.jsxs("span",{style:{fontSize:11,color:T.colorNeutralForeground3},children:["alias: ",c.jsx("code",{style:{fontFamily:T.fontFamilyMonospace},children:e.alias})]}),c.jsx("div",{style:{flexGrow:1}}),y&&c.jsxs("span",{style:{fontSize:10,color:T.colorNeutralForeground3,background:T.colorNeutralBackground3,padding:"2px 6px",borderRadius:3},children:["→ ",y.displayName]}),c.jsx(st,{content:"Remove lambda",relationship:"label",children:c.jsx(pe,{icon:c.jsx(mn,{}),appearance:"subtle",size:"small",onClick:()=>i(e.id),"aria-label":"Remove lambda"})})]}),y&&c.jsxs("div",{className:f.lamInner,children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:8},children:[c.jsxs("span",{className:f.lamAliasPrefix,children:[e.alias,"/"]}),c.jsx("span",{style:{fontSize:11,color:T.colorNeutralForeground3},children:"every column reference is prefixed with the alias"})]}),c.jsx(Dx,{group:e.inner,depth:r+1,table:y,requestGroup:o,lambdaAlias:e.alias,onUpdate:n,onAdd:a,onRemove:i,onReorderChildren:l})]})]})}function Kfe({value:e,currentDisplay:t,columns:r,onChange:o,placeholder:n,style:a}){const[i,l]=m.useState(t??e);m.useEffect(()=>{l(t??e)},[t,e]);const d=i.trim().toLowerCase()===(t??"").toLowerCase()?"":i,{visible:f,matchCount:p,hiddenCount:h}=Nx(r,d,v=>[v.displayName,v.logicalName]);return c.jsxs(Ur,{freeform:!0,clearable:!0,size:"small",value:i,selectedOptions:e?[e]:[],onChange:v=>l(v.target.value),onOptionSelect:(v,y)=>{if(y.optionValue){const x=r.find(b=>b.logicalName===y.optionValue);o(y.optionValue),l(x?.displayName??y.optionValue)}else l("")},"aria-label":"Column",placeholder:n,style:a,listbox:{style:{maxHeight:320}},children:[p===0&&c.jsx(at,{value:"__none",text:"",disabled:!0,children:c.jsxs("span",{style:{color:T.colorNeutralForeground3,fontSize:11},children:['No matches for "',i,'"']})}),f.map(v=>c.jsx(at,{value:v.logicalName,text:v.displayName,children:c.jsxs("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[v.displayName,c.jsx("span",{style:{fontFamily:T.fontFamilyMonospace,fontSize:10,color:T.colorNeutralForeground3},children:v.logicalName}),c.jsx("span",{style:{fontSize:9,color:T.colorNeutralForeground3,backgroundColor:T.colorNeutralBackground3,padding:"0 4px",borderRadius:3},children:v.attributeType})]})},v.logicalName)),c.jsx(zx,{hiddenCount:h})]})}const Ou=()=>({enabled:!1,prefilter:xT(),groupby:[],aggregates:[]});function Cb(e){return e.attributeType==="Integer"||e.attributeType==="BigInt"||e.attributeType==="Decimal"||e.attributeType==="Double"||e.attributeType==="Money"}function Xfe(e){return e.attributeType==="DateTime"}function T3(e,t){switch(e){case"sum":case"average":return Cb(t);case"min":case"max":return Cb(t)||Xfe(t);case"$count":return!1}}function Yfe({table:e,spec:t,setSpec:r,group:o="read"}){const n=_t(),a=fe(e),i=Vo(),l=m.useMemo(()=>new Set([...t.groupby,...t.aggregates.map(z=>z.col)]),[t.groupby,t.aggregates]),d=m.useCallback(z=>l.has(z.logicalName)||z.isValidForRead!==!1&&Zi(z,i),[i,l]),f=m.useMemo(()=>z=>a?a.columns.filter(R=>d(R)&&T3(z,R)):[],[a,d]),p=m.useMemo(()=>a?a.columns.filter(z=>d(z)&&Cb(z)):[],[a,d]),h=m.useMemo(()=>h8(t,a)||"(empty)",[t,a]),v=m.useMemo(()=>t.aggregates.map((z,R)=>z.id??`__agg_${R}__`),[t.aggregates]);if(!a)return null;const y=(z,R)=>r({...t,enabled:!!R.checked}),x=z=>r({...t,prefilter:z}),b=z=>r({...t,groupby:[...t.groupby,z]}),k=z=>r({...t,groupby:t.groupby.filter((R,E)=>E!==z)}),S=()=>typeof crypto<"u"&&typeof crypto.randomUUID=="function"?`agg_${crypto.randomUUID()}`:`agg_${Date.now().toString(36)}_${Math.floor(Math.random()*1e6).toString(36)}`,N=z=>{if(z==="$count"){r({...t,aggregates:[...t.aggregates,{id:S(),col:"$count",fn:"$count",alias:"count"}]});return}const R=f(z)[0];R&&r({...t,aggregates:[...t.aggregates,{id:S(),col:R.logicalName,fn:z,alias:`${R.logicalName}_${z}`}]})},B=(z,R)=>r({...t,aggregates:t.aggregates.map((E,D)=>D===z?{...E,...R}:E)}),C=z=>r({...t,aggregates:t.aggregates.filter((R,E)=>E!==z)});return c.jsxs("div",{children:[c.jsx(Un,{icon:Ip,title:"$apply",sub:"Aggregate, group, and pre-filter server-side. Capped at 50,000 input rows; groupby on DateTime not supported.",group:o,children:c.jsx(co,{checked:t.enabled,onChange:y,label:t.enabled?"On":"Off",labelPosition:"before"})}),!t.enabled&&c.jsx(Ue,{layout:"multiline",intent:"info",style:{marginBottom:12},children:c.jsxs(Ge,{children:[c.jsx("code",{children:"$apply"})," is disabled — toggle it on to compose a"," ",c.jsx("code",{children:"filter(…)/groupby(…)/aggregate(…)"})," pipeline."]})}),t.enabled&&c.jsx(Ue,{layout:"multiline",intent:"warning",style:{marginBottom:12},children:c.jsxs(Ge,{children:[c.jsx(Lt,{children:"$apply replaces most other query options."}),"Per the Dataverse ",c.jsx("em",{children:"aggregate-data"})," docs, when ",c.jsx("code",{children:"$apply"})," is set the following are ",c.jsx("strong",{children:"not applied"}),":",c.jsxs("ul",{style:{margin:"6px 0 6px 18px",padding:0},children:[c.jsxs("li",{children:[c.jsx("code",{children:"$select"})," — output columns come from groupby + aggregate aliases"]}),c.jsxs("li",{children:[c.jsx("code",{children:"$filter"})," — use the ",c.jsx("strong",{children:"filter() stage below"})," instead"]}),c.jsxs("li",{children:[c.jsx("code",{children:"$orderby"})," — sorting aggregate output isn't supported"]}),c.jsxs("li",{children:[c.jsx("code",{children:"$expand"})," — joins aren't allowed alongside aggregation"]}),c.jsxs("li",{children:[c.jsx("code",{children:"$count"})," — use ",c.jsx("code",{children:"$count as <alias>"})," inside aggregate() instead"]})]}),"Only ",c.jsx("code",{children:"$top"})," still works alongside ",c.jsx("code",{children:"$apply"}),"."," ",c.jsx("strong",{children:"50,000-row hard cap"})," on the input set."]})}),t.enabled&&c.jsxs("div",{className:F(n.inlineCard),style:{padding:"8px 12px",marginBottom:14,maxWidth:980},children:[c.jsx(Pe,{style:{fontWeight:600,color:T.colorNeutralForeground2,display:"block",marginBottom:4},children:"Pipeline preview"}),c.jsxs("code",{style:{fontFamily:T.fontFamilyMonospace,fontSize:11,color:T.colorBrandForeground1,wordBreak:"break-all"},children:["$apply=",h]})]}),c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:22,opacity:t.enabled?1:.45,pointerEvents:t.enabled?"auto":"none"},children:[c.jsx(Vv,{n:1,icon:c.jsx(nm,{style:{color:T.colorBrandForeground1}}),title:"filter(…)",hint:"Pre-filter the source set before grouping/aggregating. Same syntax as $filter — runs first in the pipeline.",children:c.jsx(Rx,{table:e,tree:t.prefilter,setTree:x,group:o,compact:!0})}),c.jsxs(Vv,{n:2,icon:c.jsx(Ip,{style:{color:T.colorBrandForeground1}}),title:"groupby((…))",hint:"Group by one or more columns. Drill INTO a lookup (e.g. primarycontactid → fullname) — Dataverse rejects bare lookups and `_<attr>_value` forms. DateTime columns are not supported.",children:[c.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:6,marginBottom:8},children:[t.groupby.length===0&&c.jsx(Pe,{style:{color:T.colorNeutralForeground3,fontStyle:"italic"},children:"No grouping — aggregate() will return a single summary row."}),c.jsx(dd,{ids:t.groupby,orientation:"horizontal",onReorder:(z,R)=>{const E=[...t.groupby],[D]=E.splice(z,1);E.splice(R,0,D),r({...t,groupby:E})},children:t.groupby.map((z,R)=>{const E=z.split("/").pop()??z,D=a.columns.find(M=>M.logicalName===E),I=z.includes("/")?z:D?.displayName??z;return c.jsx(fd,{id:z,children:({gripProps:M,Grip:O})=>c.jsxs(ct,{appearance:"tint",color:"brand",style:{paddingRight:0,gap:4},children:[c.jsx("span",{...M,"aria-label":`Drag to reorder ${I}`,style:{display:"inline-flex",...M.style},children:c.jsx(O,{})}),c.jsx("span",{style:{fontFamily:T.fontFamilyMonospace,fontSize:11},children:I}),c.jsx(pe,{icon:c.jsx(mn,{style:{width:12,height:12}}),size:"small",appearance:"subtle",onClick:()=>k(R),"aria-label":`Remove ${z}`})]})},z)})})]}),c.jsx(P7,{rootTable:e,value:"",onChange:z=>{z&&!t.groupby.includes(z)&&b(z)},leafFilter:z=>z.attributeType!=="DateTime"&&z.attributeType!=="Memo"&&z.attributeType!=="File"&&z.attributeType!=="Image"&&z.attributeType!=="Lookup"&&z.attributeType!=="Customer"&&z.attributeType!=="Owner"&&!t.groupby.includes(z.logicalName),placeholder:"Add a group-by column or path…"})]}),c.jsxs(Vv,{n:3,icon:c.jsx(Ip,{style:{color:T.colorBrandForeground1}}),title:"aggregate(…)",hint:"Compute per-group totals (when groupby is set) or single-row totals (when it isn't). $count is the row-count pseudo-aggregate.",children:[c.jsx("div",{style:{display:"flex",flexDirection:"column",gap:10},children:c.jsx(dd,{ids:v,onReorder:(z,R)=>{const E=[...t.aggregates],[D]=E.splice(z,1);E.splice(R,0,D),r({...t,aggregates:E})},children:t.aggregates.map((z,R)=>{const E=f(z.fn),D=z.fn!=="$count"&&!E.some(M=>M.logicalName===z.col),I=v[R];return c.jsx(fd,{id:I,children:({gripProps:M,Grip:O})=>c.jsxs("div",{className:F(n.inlineCard),style:{padding:"10px 12px",display:"flex",flexWrap:"wrap",gap:10,alignItems:"center"},children:[c.jsx("span",{...M,"aria-label":"Drag to reorder aggregate",children:c.jsx(O,{})}),c.jsx(Wv,{label:"function",minWidth:140,children:c.jsxs(Ur,{"aria-label":`Aggregate ${R+1} function`,size:"small",value:z.fn,selectedOptions:[z.fn],onOptionSelect:(H,$)=>{if(!$.optionValue)return;const Z=$.optionValue;if(Z==="$count"){B(R,{fn:Z,col:"$count",alias:z.alias===""?"count":z.alias});return}const q=a.columns.filter(V=>d(V)&&T3(Z,V)),X=q.some(V=>V.logicalName===z.col)?z.col:q[0]?.logicalName??"";B(R,{fn:Z,col:X,alias:`${X}_${Z}`})},style:{minWidth:140},children:[c.jsx(at,{value:"sum",children:"sum"}),c.jsx(at,{value:"average",children:"average"}),c.jsx(at,{value:"min",children:"min"}),c.jsx(at,{value:"max",children:"max"}),c.jsx(at,{value:"$count",children:"$count"})]})}),z.fn!=="$count"&&c.jsx(Wv,{label:"column",minWidth:220,grow:!0,children:c.jsx(Ur,{"aria-label":`Aggregate ${R+1} column`,size:"small",value:a.columns.find(H=>H.logicalName===z.col)?.displayName??z.col,selectedOptions:[z.col],onOptionSelect:(H,$)=>$.optionValue&&B(R,{col:$.optionValue,alias:`${$.optionValue}_${z.fn}`}),style:{minWidth:220,width:"100%"},children:E.map(H=>c.jsxs(at,{value:H.logicalName,text:H.displayName,children:[H.displayName," ",c.jsxs("span",{style:{color:T.colorNeutralForeground3,fontFamily:T.fontFamilyMonospace,fontSize:10},children:["· ",H.attributeType]})]},H.logicalName))})}),c.jsx(Wv,{label:"alias",minWidth:180,grow:!0,children:c.jsx(Ht,{"aria-label":`Aggregate ${R+1} alias`,size:"small",value:z.alias,onChange:(H,$)=>B(R,{alias:$.value}),placeholder:"alias",style:{fontFamily:T.fontFamilyMonospace,width:"100%"}})}),c.jsx(pe,{size:"small",appearance:"subtle",icon:c.jsx(mn,{}),onClick:()=>C(R),"aria-label":"Remove aggregate",style:{alignSelf:"flex-end",marginBottom:1}}),D&&c.jsx(Ue,{layout:"multiline",intent:"warning",style:{width:"100%"},children:c.jsxs(Ge,{children:[c.jsx("code",{children:z.col})," isn't valid for ",c.jsx("code",{children:z.fn})," — pick a"," ",z.fn==="sum"||z.fn==="average"?"numeric":"numeric or DateTime"," ","column."]})})]})},I)})})}),c.jsxs("div",{style:{marginTop:10,display:"flex",gap:8},children:[c.jsx(pe,{icon:c.jsx(js,{}),appearance:"outline",size:"small",onClick:()=>N("sum"),disabled:p.length===0,children:"Add scalar aggregate"}),c.jsx(pe,{icon:c.jsx(js,{}),appearance:"outline",size:"small",onClick:()=>N("$count"),children:"Add $count"})]})]})]})]})}function Vv({n:e,icon:t,title:r,hint:o,children:n}){return c.jsxs("section",{children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:4},children:[c.jsx(ct,{appearance:"filled",color:"brand",size:"small",style:{minWidth:18,fontWeight:700},children:e}),t,c.jsx("code",{style:{fontFamily:T.fontFamilyMonospace,fontSize:13,fontWeight:600,color:T.colorNeutralForeground1},children:r})]}),c.jsx(Pe,{style:{display:"block",marginBottom:10,color:T.colorNeutralForeground3},children:o}),n]})}function Wv({label:e,minWidth:t,grow:r,children:o}){return c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:t,flexGrow:r?1:0,flexShrink:1},children:[c.jsx(Pe,{style:{fontSize:10,fontWeight:600,letterSpacing:"0.3px",color:T.colorNeutralForeground3,textTransform:"uppercase"},children:e}),o]})}function h8(e,t){if(!e.enabled)return"";const r=[];if(e.prefilter&&e.prefilter.rules.length>0&&t){const n=Li(e.prefilter,t);n&&r.push(`filter(${n})`)}const o=e.aggregates.filter(n=>n.alias.trim()!==""&&(n.fn==="$count"||n.col.trim()!=="")).map(n=>n.fn==="$count"?`$count as ${n.alias}`:`${n.col} with ${n.fn} as ${n.alias}`);if(e.groupby.length>0){const n=o.length?`aggregate(${o.join(",")})`:"";r.push(n?`groupby((${e.groupby.join(",")}),${n})`:`groupby((${e.groupby.join(",")}))`)}else o.length>0&&r.push(`aggregate(${o.join(",")})`);return r.join("/")}const zye=e=>e.cardinality==="OneToMany"||e.cardinality==="ManyToMany",Od=e=>e.cardinality==="ManyToOne",Jfe="solutions?$select=solutionid,uniquename&$expand=publisherid($select=uniquename,friendlyname,customizationprefix)",Qfe=new Set(["microsoftcorporation","microsoftfirstparty","microsoftdynamics","microsoftdynamicslabs","dynamics365customerengagement","dynamicsmkt","microsoftformspro","qmsanchor","adxstudio"]),epe=new Set(["msdyn","msdynce","msdynmkt","msfp","msft","mspp","msa","mscrm","adx"]);function tpe(e){const t=(e.uniquename??"").toLowerCase();return Qfe.has(t)||t.startsWith("microsoft")||/^(microsoft|dynamics 365)\b/i.test(e.friendlyname??"")?!0:epe.has((e.customizationprefix??"").toLowerCase())}function rpe(e){return{name:e.friendlyname||e.uniquename||"Unknown publisher",microsoft:tpe(e)}}function ope(e){const t=new Map,r=new Map;for(const o of e){if(!o.solutionid||!o.publisherid)continue;const n=rpe(o.publisherid);t.set(o.solutionid.toLowerCase(),{uniquename:o.uniquename??"",publisher:n});const a=o.publisherid.customizationprefix?.toLowerCase();a&&!r.has(a)&&r.set(a,n)}return{solutions:t,byPrefix:r}}const npe=new Set(["active","default"]);function ape(e,t,r){const o=t?r.solutions.get(t.toLowerCase()):void 0;if(o&&!npe.has(o.uniquename.toLowerCase()))return o.publisher;const n=/^([a-z][a-z0-9]*)_/i.exec(e)?.[1];return n?r.byPrefix.get(n.toLowerCase())??{name:n,microsoft:/^(ms[a-z0-9]*|adx)$/i.test(n)}:{name:"Microsoft",microsoft:!0}}const Uv=new Map,Gv=new Map;async function Xl(e,t,r,o=()=>!0){const n=`${e}|${t}`;if(Uv.has(n))return Uv.get(n);const a=Gv.get(n);if(a)return a;const i=(async()=>{try{const l=await r();return o(l)&&Uv.set(n,l),l}finally{Gv.delete(n)}})();return Gv.set(n,i),i}const ipe="csdl:raw",spe="csdl:parsed",lpe="csdl:actions",cpe="csdl:source:customapis",upe="csdl:source:workflows",dpe="csdl:source:publishers",v8=new Map;async function jp(){const e=oo();return(await Xl(e,lpe,async()=>{const[r,o]=await Promise.all([fpe(e),S8(e)]),n=r.map(a=>Cpe(a,o));return v8.set(e,n),{list:n,complete:o.customApis!==null&&o.customActions!==null&&o.publishers!==null}},r=>r.complete)).list}function fpe(e){return Xl(e,spe,async()=>mpe(await ppe(e)))}async function Tye(){const e=await S8(oo());return{customApis:e.customApis!==null,customActions:e.customActions!==null,publishers:e.publishers!==null}}const Ex={loadAll(){return jp()},async find(e){return(await jp()).find(t=>t.name===e)},async byCategory(e){return(await jp()).filter(t=>t.source===e&&t.kind==="Action")},async functionsByCategory(e){return(await jp()).filter(t=>t.source===e&&t.kind==="Function")}};function Ug(e){if(e)return v8.get(oo())?.find(t=>t.name===e)}function ppe(e){return Xl(e,ipe,()=>gr.metadata.getCSDLDocument())}function mpe(e){if(!e||typeof DOMParser>"u")return[];const t=new DOMParser().parseFromString(e,"application/xml"),r=t.querySelector("parsererror");if(r)return console.error("[csdlProvider] failed to parse CSDL XML:",r.textContent),[];const o=new Map,n=new Map,a=t.getElementsByTagName("Schema");for(const l of Array.from(a)){const d=l.getAttribute("Namespace")||"Microsoft.Dynamics.CRM";for(const f of Array.from(l.getElementsByTagName("EnumType"))){const p=gpe(f);p&&(p.fullName=`${d}.${p.name}`,_3(o,d,p.name,p))}for(const f of Array.from(l.getElementsByTagName("ComplexType"))){const p=hpe(f);p&&_3(n,d,p.name,p)}}b8=o,y8=n;const i=[];for(const l of Array.from(a)){const d=l.getAttribute("Namespace")||"Microsoft.Dynamics.CRM";for(const f of Array.from(l.getElementsByTagName("Action"))){const p=R3(f,d,"Action");p&&i.push(p)}for(const f of Array.from(l.getElementsByTagName("Function"))){const p=R3(f,d,"Function");p&&i.push(p)}}return i}function _3(e,t,r,o){e.set(`${t}.${r}`,o),e.set(`mscrm.${r}`,o)}let b8=new Map,y8=new Map;function x8(e){return b8.get(e)}function Nb(e){return y8.get(e)}function gpe(e){const t=e.getAttribute("Name");if(!t)return null;const r=e.getAttribute("UnderlyingType")??"Edm.Int32",o=Array.from(e.getElementsByTagName("Member")).map(n=>({name:n.getAttribute("Name")??"",value:Number(n.getAttribute("Value")??"0")})).filter(n=>n.name);return{name:t,underlyingType:r,members:o,isFlags:e.getAttribute("IsFlags")==="true"}}function hpe(e){const t=e.getAttribute("Name");if(!t)return null;const r=e.getAttribute("BaseType"),o=[];for(const n of Array.from(e.children)){const a=n.localName;if(a==="Property"||a==="NavigationProperty"){const i=n.getAttribute("Name");if(!i)continue;o.push({name:i,type:n.getAttribute("Type")??"Edm.String",nullable:n.getAttribute("Nullable")!=="false"})}}return{name:t,baseType:r,properties:o}}function R3(e,t,r){const o=e.getAttribute("Name");if(!o)return null;const n=e.getAttribute("IsBound")==="true",a=[];let i={kind:"unbound"};const l=Array.from(e.getElementsByTagName("Parameter"));for(let v=0;v<l.length;v++){const y=l[v],x=y.getAttribute("Name")??"",b=y.getAttribute("Type")??"Edm.String",k=y.getAttribute("Nullable")==="false";if(v===0&&n){const B=b.startsWith("Collection("),z=(B?b.replace(/^Collection\((.+)\)$/,"$1"):b).replace(/^mscrm\./,"");i=B?{kind:"collection",entityType:z}:{kind:"entity",entityType:z};continue}const S=x8(b),N=S?void 0:Nb(b);S?a.push({name:x,type:"OptionSetValue",required:k,optionSet:S.members.map(B=>({value:B.value,label:B.name})),enumType:S.fullName,enumIsFlags:S.isFlags||void 0}):N?a.push({name:x,type:"ComplexType",required:k,complexType:{name:N.name,fields:zb(N)}}):a.push({name:x,type:w8(b),required:k,...k8(b)})}const d=vpe(e),f=r==="Function"&&e.getAttribute("IsComposable")==="true",p=l[n?1:0],h=r==="Function"&&d.typeName==="Edm.Boolean"&&p?.getAttribute("Name")==="PropertyName"&&p.getAttribute("Type")==="Edm.String";return{name:o,namespace:t,kind:r,binding:i,parameters:a,returnType:d,isComposable:f||void 0,source:j8(o,bpe),isQueryFunction:h||void 0}}function zb(e,t=new Set){if(t.has(e.name))return[];const r=new Set(t);r.add(e.name);const o=[];if(e.baseType){const i=Nb(e.baseType);i&&o.push(...zb(i,r))}const n=e.properties.map(i=>{const l=x8(i.type);if(l)return{name:i.name,type:"OptionSetValue",required:!i.nullable,optionSet:l.members.map(f=>({value:f.value,label:f.name})),enumType:l.fullName,enumIsFlags:l.isFlags||void 0};const d=Nb(i.type);return d?{name:i.name,type:"ComplexType",required:!i.nullable,complexType:{name:d.name,fields:zb(d,r)}}:{name:i.name,type:w8(i.type),required:!i.nullable,...k8(i.type)}}),a=new Map;for(const i of o)a.set(i.name,i);for(const i of n)a.set(i.name,i);return Array.from(a.values())}function vpe(e){const t=e.getElementsByTagName("ReturnType")[0];if(!t)return{kind:"void",typeName:"void"};const r=t.getAttribute("Type")??"";if(r.startsWith("Collection("))return{kind:"collection",typeName:r};if(r.startsWith("Edm."))return{kind:"primitive",typeName:r};if(r.startsWith("mscrm.")){const o=r.slice(6),n=o.charAt(0);return n===n.toUpperCase()?{kind:"complex",typeName:o}:{kind:"entity",typeName:o}}return{kind:"complex",typeName:r}}const D3={"Edm.String":"Edm.String","Edm.Int32":"Edm.Int32","Edm.Int64":"Edm.Int64","Edm.Boolean":"Edm.Boolean","Edm.DateTimeOffset":"Edm.DateTimeOffset","Edm.Guid":"Edm.Guid","Edm.Decimal":"Edm.Decimal","Edm.Double":"Edm.Double","Edm.Binary":"Edm.Binary","Collection(Edm.String)":"Collection(Edm.String)","Collection(Edm.Int32)":"Collection(Edm.Int32)","Collection(Edm.Guid)":"Collection(Edm.Guid)"};function w8(e){if(D3[e])return D3[e];if(e==="mscrm.crmbaseentity")return"EntityReference";if(e.startsWith("Collection(mscrm."))return"EntityCollection";if(e.startsWith("mscrm.")){const t=e.slice(6);return t.charAt(0)===t.charAt(0).toUpperCase()&&!t.includes(".")?"ComplexType":"EntitySpecific"}return e.includes("Microsoft.Dynamics.CRM.")&&e.match(/[A-Z]/)?"OptionSetValue":"Edm.String"}function k8(e){if(e.startsWith("Collection(mscrm."))return{entityType:e.replace(/^Collection\(mscrm\.(.+)\)$/,"$1")};if(e.startsWith("mscrm.")&&e!=="mscrm.crmbaseentity"){const t=e.slice(6);if(t.charAt(0)===t.charAt(0).toLowerCase())return{entityType:t}}return{}}const bpe={customApis:null,customActions:null};async function S8(e){const t=a=>a!==null,[r,o,n]=await Promise.all([Xl(e,cpe,()=>Am("customapis?$select=uniquename,solutionid",a=>[a.uniquename,B8(a.solutionid)]),t),Xl(e,upe,wpe,t),xpe(e)]);return{customApis:r,customActions:o,publishers:n}}const ype=6e4,Zv=new Map;async function xpe(e){const t=Zv.get(e);if(t!==void 0&&Date.now()-t<ype)return null;const r=await Xl(e,dpe,kpe,o=>o!==null);return r?Zv.delete(e):Zv.set(e,Date.now()),r}async function wpe(){const e=await Am("workflows?$select=_sdkmessageid_value,solutionid&$filter=category eq 3 and type eq 1",o=>[o._sdkmessageid_value,B8(o.solutionid)]);if(!e)return null;const t=new Map,r=[...e.keys()];for(let o=0;o<r.length;o+=E3){const n=r.slice(o,o+E3).map(i=>`sdkmessageid eq ${i}`).join(" or "),a=await Am(`sdkmessages?$select=name,sdkmessageid&$filter=${encodeURIComponent(n)}`,i=>[i.name,e.get(String(i.sdkmessageid).toLowerCase())]);if(!a)return null;for(const[i,l]of a)t.set(i,l)}return t}const E3=50;async function kpe(){const e=await Am(Jfe,t=>[t.solutionid,t]);return e&&ope([...e.values()])}const B8=e=>typeof e=="string"&&e?e:void 0;async function Am(e,t){try{const r=new Map;let o=e;for(let n=0;o&&n<50;n++){const a=await gr.queryData(o);for(const i of a.value??[]){const[l,d]=t(i);typeof l=="string"&&l&&r.set(l.toLowerCase(),d)}o=a["@odata.nextLink"]?Spe(a["@odata.nextLink"]):void 0}return r}catch(r){return console.warn(`[csdlProvider] message classification query failed (${e}):`,r),null}}function Spe(e){const t=e.indexOf("/api/data/");if(t<0)return e;const r=e.slice(t+10),o=r.indexOf("/");return o>=0?r.slice(o+1):r}const Bpe=/^[a-z][a-z0-9]*_[A-Za-z0-9]/,jpe=/^(ms[a-z0-9]*|adx)_/i;function j8(e,t){const r=e.toLowerCase();return t.customApis?.has(r)?"custom-api":t.customActions?.has(r)?"custom-action":t.customApis&&t.customActions||!(Bpe.test(e)&&!jpe.test(e))?"oob":t.customApis?"custom-action":"custom-api"}function Cpe(e,t){const r=j8(e.name,t);if(r==="oob"||!t.publishers)return{...e,source:r};const o=e.name.toLowerCase(),n=r==="custom-api"?t.customApis?.get(o):t.customActions?.get(o);return{...e,source:r,publisher:ape(e.name,n,t.publishers)}}function _ye(e){return/16777216|exceeds the maximum size/i.test(e)}const Rye="https://github.com/PowerPlatformToolBox/desktop-app/issues/736";function Npe(e){const t=e.actionName?Ug(e.actionName):void 0;if(!t||t.kind!=="Action")return{relativeUrl:"",relativeNoBase:"",bytes:0,queryParts:[],entitySet:"",entityLogical:""};const{segment:r,entitySet:o,entityLogical:n}=z8(t,e.boundRecordId),a=`${rt.apiBase}${r}`;return{relativeUrl:a,relativeNoBase:r,bytes:a.length,queryParts:[],entitySet:o,entityLogical:n,recordId:e.boundRecordId??void 0}}function C8(e){const t=e.actionName?Ug(e.actionName):void 0;if(!t)return{};const r={};for(const o of t.parameters){const n=e.paramValues[o.name];if(n==null){o.required&&(r[o.name]=Ipe(o));continue}r[o.name]=T8(o,n)}return r}function zpe(e){const t=e.functionName?Ug(e.functionName):void 0;if(!t||t.kind!=="Function")return{relativeUrl:"",relativeNoBase:"",bytes:0,queryParts:[],entitySet:"",entityLogical:""};const{segment:r,queryParts:o,entitySet:n,entityLogical:a}=N8(e,t,!1),i=o.map(f=>`${f.key}=${f.value}`).join("&"),l=`${rt.apiBase}${r}${i?`?${i}`:""}`,d=`${r}${i?`?${i}`:""}`;return{relativeUrl:l,relativeNoBase:d,bytes:l.length,queryParts:o,entitySet:n,entityLogical:a,recordId:e.boundRecordId??void 0}}function Tpe(e){const t=e.functionName?Ug(e.functionName):void 0;if(!t||t.kind!=="Function")return null;const{segment:r,queryParts:o,entitySet:n}=N8(e,t,!0);if(t.binding.kind!=="unbound"&&!n||t.binding.kind==="entity"&&!e.boundRecordId)return null;const a=o.map(i=>`${i.key}=${i.value}`).join("&");return`${r.replace(/^\//,"")}${a?`?${a}`:""}`}function N8(e,t,r){const{segment:o,entitySet:n,entityLogical:a}=z8(t,e.boundRecordId),i=h=>r?encodeURIComponent(h):h.replace(/[%&#+]/g,v=>encodeURIComponent(v)),l=h=>h.replace(/[%#?\\]/g,v=>encodeURIComponent(v)),d=t.parameters;let f=o;const p=[];if(d.length>0)if(e.useParamAliases){const h=[];let v=1;for(const y of d){const x=e.paramValues[y.name];if(x==null)continue;const b=`@p${v++}`;h.push(`${y.name}=${b}`),p.push({key:b,value:i(M3(y,x))})}h.length>0?f=`${o}(${h.join(",")})`:f=`${o}()`}else{const h=[];for(const v of d){const y=e.paramValues[v.name];y!=null&&h.push(`${v.name}=${l(M3(v,y))}`)}f=h.length>0?`${o}(${h.join(",")})`:`${o}()`}else f=`${o}()`;return{segment:f,queryParts:p,entitySet:n,entityLogical:a}}function _pe(e){const r=`/workflows(${e.workflowId??"<workflow-id>"})/Microsoft.Dynamics.CRM.ExecuteWorkflow`,o=`${rt.apiBase}${r}`;return{relativeUrl:o,relativeNoBase:r,bytes:o.length,queryParts:[],entitySet:"workflows",entityLogical:"workflow",recordId:e.workflowId??void 0}}function Rpe(e){return{EntityId:e.entityId??"<target-record-guid>"}}function z8(e,t){const r=`${e.namespace}.${e.name}`;switch(e.binding.kind){case"unbound":return{segment:`/${e.name}`,entitySet:"",entityLogical:""};case"entity":{const o=fe(e.binding.entityType);if(!o){const a=t??`<${e.binding.entityType}-id>`;return{segment:`/<${e.binding.entityType}-set>(${a})/${r}`,entitySet:"",entityLogical:e.binding.entityType}}const n=t??`<${o.logicalName}-id>`;return{segment:`/${o.entitySetName}(${n})/${r}`,entitySet:o.entitySetName,entityLogical:o.logicalName}}case"collection":{const o=fe(e.binding.entityType);return o?{segment:`/${o.entitySetName}/${r}`,entitySet:o.entitySetName,entityLogical:o.logicalName}:{segment:`/<${e.binding.entityType}-set>/${r}`,entitySet:"",entityLogical:e.binding.entityType}}}}function Px(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&typeof e["@ref"]=="string"}const Dpe=/^(target|source|subject|owner|assignee|subordinate|record|parent|queue|destination|principal|user|team)/i;function Dye(e){return Dpe.test(e.name)?"reference":"instance"}function Epe(e,t){const o=fe(e)?.primaryKey??`${e}id`;return{"@odata.type":`Microsoft.Dynamics.CRM.${e}`,[o]:t}}function P3(e){const t=/(?:^|\/)([A-Za-z_][A-Za-z0-9_]*)\(\{?([0-9a-fA-F-]{36})\}?\)$/.exec(e.trim());return t&&Pd(t[2])?{set:t[1],id:t[2].toLowerCase()}:null}const Ppe=e=>typeof e["@odata.type"]=="string"?e["@odata.type"].replace(/^#?Microsoft\.Dynamics\.CRM\./i,""):void 0;function Mpe(e,t,r){const o=i=>({error:`${e.name}: expected ${i}.`});if(t===null)return{value:null};const n=t&&typeof t=="object"&&!Array.isArray(t)?t:null,a=(i,l)=>{if(!i||typeof i!="object"||Array.isArray(i))return null;const d=i;if(typeof d["@odata.id"]=="string"){const v=P3(d["@odata.id"]),y=v&&r(v.set);return v&&y?{id:v.id,entityType:y}:null}const f=Ppe(d)??l;if(!f)return null;const p=fe(f)?.primaryKey??`${f}id`,h=d[p];return typeof h=="string"&&Pd(h)?{id:h.toLowerCase(),entityType:f}:null};switch(e.type){case"Edm.String":case"Edm.Guid":case"Edm.DateTimeOffset":case"Edm.Binary":return typeof t=="string"?{value:t}:o("a string");case"Edm.Int32":case"Edm.Int64":case"Edm.Decimal":case"Edm.Double":case"OptionSetValue":return typeof t=="number"?{value:t}:o("a number");case"Edm.Boolean":return typeof t=="boolean"?{value:t}:o("true or false");case"Collection(Edm.String)":case"Collection(Edm.Int32)":case"Collection(Edm.Guid)":return Array.isArray(t)?{value:t}:o("an array");case"EntityReference":{const i=a(t,e.entityType);return i?{value:i}:o('a row reference ({"@odata.type", "<id column>"})')}case"EntityCollection":{if(!Array.isArray(t))return o("an array of row references");const i=t.map(l=>a(l,e.entityType));return i.every(Boolean)?{value:i}:o("an array of row references")}case"EntitySpecific":{if(!n||!e.entityType)return o("an object");const i=fe(e.entityType),l=i?.primaryKey??`${e.entityType}id`,d=Object.keys(n).filter(p=>p!=="@odata.type");if(d.length===1&&(d[0]===l||d[0]==="@odata.id")){const p=a(n,e.entityType);return p?{value:{"@ref":p.id}}:o("a row reference")}const f={};for(const p of d){const h=n[p],v=/^(.+)@odata\.bind$/.exec(p),y=i?.columns.find(x=>x.logicalName===(v?v[1]:p));if(!y)return{error:`${e.name}: ${e.entityType} has no column "${p}".`};if(v){const x=typeof h=="string"?P3(h):null,b=x&&r(x.set);if(!x||!b)return o(`"${p}" to be "/<set>(<id>)"`);f[y.logicalName]={id:x.id,targetEntity:b,entitySet:x.set}}else y.attributeType==="MultiSelectPicklist"&&typeof h=="string"?f[y.logicalName]=h.split(",").map(x=>Number(x.trim())):f[y.logicalName]=h}return{value:f}}case"ComplexType":{if(!n)return o("an object");if(!e.complexType)return{value:n};const i={};for(const[l,d]of Object.entries(n)){const f=e.complexType.fields.find(h=>h.name===l);if(!f)return{error:`${e.name}: ${e.complexType.name} has no field "${l}".`};const p=Mpe(f,d,r);if("error"in p)return p;i[l]=p.value}return{value:i}}}}function T8(e,t){if(t==null)return null;switch(e.type){case"Edm.String":case"Edm.Guid":return String(t);case"Edm.Int32":case"Edm.Int64":case"Edm.Decimal":case"Edm.Double":case"OptionSetValue":return Number(t);case"Edm.Boolean":return t===!0||t==="true"||t===1;case"Edm.DateTimeOffset":return String(t);case"Edm.Binary":return String(t);case"Collection(Edm.String)":case"Collection(Edm.Int32)":case"Collection(Edm.Guid)":return Array.isArray(t)?t:[];case"EntityReference":{const r=t;if(!r?.id)return null;const o=r.entityType??e.entityType??"",a=fe(o)?.primaryKey??`${o}id`;return{"@odata.type":`Microsoft.Dynamics.CRM.${o}`,[a]:r.id}}case"EntitySpecific":{if(Px(t)){const i=t["@ref"].trim();return!i||!e.entityType?null:Epe(e.entityType,i)}const r=e.entityType??"";if(!r)return null;const o=t??{},n={"@odata.type":`Microsoft.Dynamics.CRM.${r}`},a=fe(r);if(!a)return n;for(const[i,l]of Object.entries(o)){if(l==null)continue;const d=a.columns.find(f=>f.logicalName===i);if(d){if(d.attributeType==="Lookup"||d.attributeType==="Customer"||d.attributeType==="Owner"){const f=l;if(!f?.id)continue;const p=f.targetEntity??d.targets[0],h=fe(p)?.entitySetName??f.entitySet;if(!h)continue;n[`${d.logicalName}@odata.bind`]=`/${h}(${f.id})`;continue}if(d.attributeType==="MultiSelectPicklist"){const f=l;if(!Array.isArray(f)||f.length===0)continue;n[d.logicalName]=f.join(",");continue}typeof l=="string"&&l===""||(n[d.logicalName]=l)}}return n}case"EntityCollection":{const r=t;return Array.isArray(r)?r.map(o=>{const n=o.entityType??e.entityType??"",i=fe(n)?.primaryKey??`${n}id`;return{"@odata.type":`Microsoft.Dynamics.CRM.${n}`,[i]:o.id}}):[]}case"ComplexType":{const r=t;if(!r||typeof r!="object")return null;const o={};if(e.complexType)for(const n of e.complexType.fields)n.name in r&&(o[n.name]=T8(n,r[n.name]));else Object.assign(o,r);return o}}}function qpe(e,t){for(const r of e){const o=t[r.name];if(o==null||o==="")continue;const a=(r.type==="Edm.Guid"?[String(o).trim()]:r.type==="Collection(Edm.Guid)"&&Array.isArray(o)?o.map(i=>String(i).trim()):r.type==="EntityReference"?[String(o.id??"").trim()].filter(Boolean):r.type==="EntitySpecific"&&Px(o)?[o["@ref"].trim()].filter(Boolean):[]).find(i=>!Pd(i));if(a!==void 0)return`Parameter ${r.name}: "${a}" isn't a GUID.`;if(r.type==="Edm.DateTimeOffset"&&!rx.test(String(o).trim()))return`Parameter ${r.name}: "${String(o)}" isn't an ISO 8601 date or date-time.`}return null}function M3(e,t,r){if(t==null)return"null";const o=n=>`'${n.replace(/'/g,"''")}'`;switch(e.type){case"Edm.String":return o(String(t));case"Edm.DateTimeOffset":{const n=String(t).trim();return n===""?"null":rx.test(n)?n:o(n)}case"Edm.Guid":{const n=String(t).trim();return Pd(n)?n:o(n)}case"Edm.Int32":case"Edm.Int64":case"Edm.Decimal":case"Edm.Double":return String(Number(t));case"OptionSetValue":return Fpe(e,t);case"Edm.Boolean":return t===!0||t==="true"||t===1?"true":"false";case"Collection(Edm.String)":case"Collection(Edm.Guid)":{const n=Array.isArray(t)?t:[];return JSON.stringify(n.map(a=>String(a)))}case"Collection(Edm.Int32)":{const n=Array.isArray(t)?t:[];return JSON.stringify(n.map(a=>Number(a)))}case"EntityReference":{const n=t;return!n?.id||!n?.entityType?"null":`{'@odata.id':'${fe(n.entityType)?.entitySetName??`${n.entityType}s`}(${n.id.replace(/'/g,"''")})'}`}case"EntitySpecific":return!Px(t)||!t["@ref"].trim()||!e.entityType?"null":`{'@odata.id':'${fe(e.entityType)?.entitySetName??`${e.entityType}s`}(${t["@ref"].trim().replace(/'/g,"''")})'}`;default:return String(t)}}function Fpe(e,t){const r=Number(t);if(!e.enumType||!Number.isFinite(r))return String(r);const o=e.optionSet??[];let n=o.find(a=>a.value===r)?.label;if(!n&&e.enumIsFlags&&r>0){const a=o.filter((l,d)=>l.value>0&&(l.value&l.value-1)===0&&(r&l.value)===l.value&&o.findIndex(f=>f.value===l.value)===d),i=a.reduce((l,d)=>l|d.value,0);a.length>0&&i===r&&(n=a.map(l=>l.label).join(","))}return`${e.enumType}'${n??String(r)}'`}function Ipe(e){switch(e.type){case"Edm.String":return"<string>";case"Edm.Guid":return"<guid>";case"Edm.Int32":case"Edm.Int64":case"Edm.Decimal":case"Edm.Double":case"OptionSetValue":return 0;case"Edm.Boolean":return!1;case"Edm.DateTimeOffset":return"<iso-8601-datetime>";case"Collection(Edm.String)":return[];case"Collection(Edm.Int32)":return[];case"Collection(Edm.Guid)":return[];case"EntityReference":case"EntitySpecific":return{"@odata.type":`Microsoft.Dynamics.CRM.${e.entityType??"<entity>"}`,[e.entityType?`${e.entityType}id`:"<entity>id"]:"<guid>"};case"EntityCollection":return[];case"ComplexType":return{};case"Edm.Binary":return"<base64>"}}const yc={attachment:{entityLogical:"activitymimeattachment",entitySet:"activitymimeattachments",primaryKey:"activitymimeattachmentid",bodyColumn:"body",fileNameColumn:"filename",mimeTypeColumn:"mimetype",initUploadMessage:"InitializeAttachmentBlocksUpload",commitUploadMessage:"CommitAttachmentBlocksUpload",initDownloadMessage:"InitializeAttachmentBlocksDownload",callerSuppliesId:!1},annotation:{entityLogical:"annotation",entitySet:"annotations",primaryKey:"annotationid",bodyColumn:"documentbody",fileNameColumn:"filename",mimeTypeColumn:"mimetype",initUploadMessage:"InitializeAnnotationBlocksUpload",commitUploadMessage:"CommitAnnotationBlocksUpload",initDownloadMessage:"InitializeAnnotationBlocksDownload",callerSuppliesId:!0}};function Eye(e,t,r){if(e<=0)return null;const o=r==="file"?"file column":r==="image"?"image column":r==="attachment"?"attachment":"annotation",n=a=>Ape(a);if(t===void 0)return{level:"warn",headline:"Size limit unknown",detail:`Could not resolve MaxSizeInKB for this ${o}. Pre-flight check skipped — ${n(e)} payload will be sent; the server enforces its own cap.`};if(e>t){const a=e-t;return{level:"error",headline:`Exceeds ${o} limit by ${n(a)}`,detail:`Payload is ${n(e)} but the configured cap is ${n(t)}. The server will return ProcessImageFailure / unManagedidsattachmentinvalidfilesize / similar. Reduce the payload or raise the limit (column MaxSizeInKB for file/image; Organization.MaxUploadFileSize for attachment/annotation, max 128 MB).`}}return e>t*.9?{level:"warn",headline:"Approaching size limit",detail:`Payload is ${n(e)} — ${Math.round(e/t*100)}% of the ${n(t)} ${o} cap. Will succeed, but is close enough to fail if the source file grows.`}:{level:"ok",headline:"Size OK",detail:`${n(e)} / ${n(t)} ${o} cap (${Math.round(e/t*100)}% utilised).`}}function Ape(e){if(!Number.isFinite(e)||e<=0)return"0 B";const t=["B","KB","MB","GB"];let r=e,o=0;for(;r>=1024&&o<t.length-1;)r/=1024,o++;return`${r.toFixed(r<10&&o>0?1:0)} ${t[o]}`}function Pye(e){return`${e}_Name`}function Mye(e){return{id:`${e}Id`,timestamp:`${e}_Timestamp`,url:`${e}_URL`}}function qye(e,t){const r=o=>typeof o.body=="object"?{body:o.body}:typeof o.body=="string"?{rawBody:o.body}:{};if(e.length<=1){const o=e[0];return o?{headers:{...t,...o.headers},...r(o)}:{headers:t}}return{headers:t,multiRequests:e.map(o=>({method:o.method,relativeUrl:o.relativeUrl.startsWith("<")?o.relativeUrl:o.relativeUrl.replace(/^https?:\/\/[^/]+/,""),headers:o.headers,...r(o),description:o.title}))}}const Gg=e=>/^[\x20-\x7e]*$/.test(e),Ope=e=>Gg(e)?"":`?x-ms-file-name=${encodeURIComponent(e)}`,Tb=e=>Gg(e)?{"x-ms-file-name":e}:{},_8=" The file name has characters outside ASCII, which the x-ms-file-name header doesn't support (and fetch, XHR and .NET refuse to send), so it travels as the x-ms-file-name query parameter instead. Microsoft documents that parameter on the chunked upload's first request; if a single request doesn't keep the name, use the chunked upload.";function Lpe(e){const t=Zg(e);if(!t)return[];const r=e.fileName||"file.bin";return[{n:1,title:"Upload file (single request)",method:"PATCH",relativeUrl:`${t}${Ope(r)}`,headers:{...Tb(r),"Content-Type":"application/octet-stream"},body:"<base64 file bytes>",detail:`Single request — server writes ${r} (${Kg(e.fileSize)}) directly and responds 204 NoContent. Doc-recommended for files up to 128 MB; larger files require chunked upload or the messages path.`+(Gg(r)?"":_8)}]}function $pe(e){const t=Zg(e);if(!t||e.uploadMethod.kind!=="chunked-patch")return[];const r=e.uploadMethod.chunkSize,o=Math.max(e.fileSize,1),n=Math.max(1,Math.ceil(o/r)),a=e.fileName||"file.bin",i=[{n:1,title:"Initialize chunked upload",method:"PATCH",relativeUrl:`${t}?x-ms-file-name=${encodeURIComponent(a)}`,headers:{"x-ms-transfer-mode":"chunked"},detail:`Filename travels as a query param on init; the only request header is x-ms-transfer-mode. Response 200 → Location: <upload-url with sessiontoken=…> · x-ms-chunk-size: ${r.toLocaleString()} bytes (≈ ${Kg(r)}). Server may override the chunk size — honor x-ms-chunk-size in the response.`}],l=0,d=Math.min(r,o)-1,f=d-l+1;if(i.push({n:2,title:`Upload chunk 1 of ${n}`,method:"PATCH",relativeUrl:"<upload-url-from-Location-header>",headers:{...Tb(a),"Content-Type":"application/octet-stream","Content-Range":`bytes ${l}-${d}/${o}`,"Content-Length":String(f)},body:"<chunk bytes>",detail:(n===1?"Single chunk — server commits on receipt and returns 204 NoContent.":`Intermediate chunks return 206 PartialContent. Repeat with Content-Range stepping by ${r.toLocaleString()} bytes per chunk; the final chunk's Content-Length may be smaller.`)+(Gg(a)?"":_8)}),n>1){const p=o-(n-1)*r;i.push({n:3,title:`${n-1} more chunk${n-1===1?"":"s"}`,method:"PATCH",relativeUrl:"<upload-url-from-Location-header>",headers:{...Tb(a),"Content-Type":"application/octet-stream","Content-Range":`bytes <start>-<end>/${o}`,"Content-Length":"<chunk-size>"},body:"<chunk bytes>",detail:`Final chunk Content-Range ends at ${(o-1).toLocaleString()} with Content-Length ${p.toLocaleString()}. Server returns 204 NoContent on the final chunk (commits automatically).`})}return i}function Hpe(e){if(e.uploadMethod.kind!=="dataverse-messages")return[];const t=fe(e.table);if(!t)return[];const r=e.uploadMethod.blockSize,o=Math.max(e.fileSize,1),n=Math.max(1,Math.ceil(o/r)),a={"@odata.type":`Microsoft.Dynamics.CRM.${t.logicalName}`,[t.primaryKey]:e.recordId??"<record-id>"};return[{n:1,title:"InitializeFileBlocksUpload",method:"POST",relativeUrl:`${rt.apiBase}/InitializeFileBlocksUpload`,headers:{"Content-Type":"application/json; charset=utf-8"},body:{Target:a,FileAttributeName:e.fileColumn??"<file-column>",FileName:e.fileName||"file.bin"},detail:"Returns FileContinuationToken used by subsequent UploadBlock / CommitFileBlocksUpload calls."},{n:2,title:`UploadBlock × ${n}`,method:"POST",relativeUrl:`${rt.apiBase}/UploadBlock`,headers:{"Content-Type":"application/json; charset=utf-8"},body:{BlockId:"<base64 blockid — same length for every block>",BlockData:"<base64 chunk bytes (≤ 4 MB)>",FileContinuationToken:"<continuation-token-from-step-1>"},detail:`${n} request${n===1?"":"s"} of ${Kg(r)} each. Capture BlockId values for CommitFileBlocksUpload.`},{n:3,title:"CommitFileBlocksUpload",method:"POST",relativeUrl:`${rt.apiBase}/CommitFileBlocksUpload`,headers:{"Content-Type":"application/json; charset=utf-8"},body:{BlockList:["<blockid-1>","<blockid-2>","…"],FileContinuationToken:"<continuation-token-from-step-1>",FileName:e.fileName||"file.bin",MimeType:e.mimeType||"application/octet-stream"},detail:"Returns FileId (Edm.Guid) — store this for later DeleteFile or download by id."}]}function Vpe(e){const t=Zg(e);if(!t)return[];switch(e.downloadMethod.kind){case"single-request":return[{n:1,title:"Download file",method:"GET",relativeUrl:`${t}/$value`,headers:{Accept:"application/octet-stream"},detail:`Response 200 OK · binary body · response headers carry x-ms-file-size, x-ms-file-name, mimetype. To know the filename without transferring bytes first, $select the auto-managed companion column: GET /<set>(<id>)?$select=${e.fileColumn??"<col>"}_Name. Returns the file in a single response — for >128 MB prefer ranged download or the messages path.`}];case"ranged":{const r=e.downloadMethod;return[{n:1,title:"Download (Range)",method:"GET",relativeUrl:`${t}/$value`,headers:{Accept:"application/octet-stream",Range:`bytes=${r.rangeStart}-${r.rangeEnd}`},detail:"Response 206 PartialContent · response headers carry x-ms-file-size (total), x-ms-file-name, x-ms-chunk-size, mimetype. Use x-ms-file-size to drive subsequent Range requests until the whole file is downloaded."}]}case"dataverse-messages":{const r=fe(e.table),o=r?{"@odata.type":`Microsoft.Dynamics.CRM.${r.logicalName}`,[r.primaryKey]:e.recordId??"<record-id>"}:{};return[{n:1,title:"InitializeFileBlocksDownload",method:"POST",relativeUrl:`${rt.apiBase}/InitializeFileBlocksDownload`,headers:{"Content-Type":"application/json; charset=utf-8"},body:{Target:o,FileAttributeName:e.fileColumn??"<file-column>"},detail:"Returns { FileContinuationToken, FileSizeInBytes, FileName, IsChunkingSupported }. If IsChunkingSupported is false (database-stored files), BlockLength on DownloadBlock must equal FileSizeInBytes — only one call."},{n:2,title:"DownloadBlock × N",method:"POST",relativeUrl:`${rt.apiBase}/DownloadBlock`,headers:{"Content-Type":"application/json; charset=utf-8"},body:{Offset:0,BlockLength:e.downloadMethod.blockSize,FileContinuationToken:"<token-from-step-1>"},detail:"Returns { Data: <base64 chunk bytes> }. Increment Offset by BlockLength on each call. Final block may be smaller; BlockLength can stay constant. For image columns this path always returns the FULL-size image — thumbnail-only retrieval requires the $value endpoint instead."}]}case"sas-url":{const o=fe(e.table)?.entitySetName??"<set>",n=e.recordId??"<record-id>";return[{n:1,title:"GetFileSasUrl",method:"GET",relativeUrl:`${rt.apiBase}/GetFileSasUrl(Target=@t,FileAttributeName=@f)?@t={'@odata.id':'${o}(${n})'}&@f='${e.fileColumn??"<col>"}'`,headers:{Accept:"application/json"},detail:"Returns FileName + FileSizeInBytes + MimeType + SasUrl (valid 1 hour). Anyone with the URL can download. Requires full-size image support for image columns."}]}}}function Wpe(e){const t=Zg(e);return t?[{n:1,title:"Delete file column value",method:"DELETE",relativeUrl:t,headers:{Accept:"application/json"},detail:'Response 204 NoContent — clears the column. Alternative form (when you only have the FileId): POST /DeleteFile { "FileId": "<guid>" }. File columns can NOT be cleared via PATCH-to-null — that path is image-only.'}]:[]}function Upe(e){const t=fe(e.table);if(!t)return[];const r=e.recordId?`(${e.recordId})`:"(<record-id>)";return[{n:1,title:"Upload image",method:"PATCH",relativeUrl:`${rt.apiBase}/${t.entitySetName}${r}`,headers:{"If-Match":"*","Content-Type":"application/json; charset=utf-8"},body:{[e.imageColumn??"<image-column>"]:"<base64 image bytes>"},detail:"Response 204 NoContent. Doc-canonical thumbnail upload — image goes in the JSON body as a base 64 string. For full-size uploads on columns with CanStoreFullImage=true, use the file-column chunked-PATCH or InitializeFileBlocksUpload / UploadBlock / CommitFileBlocksUpload sequence (same APIs as file columns)."}]}function Gpe(e){const t=fe(e.table);if(!t)return[];const r=e.recordId?`(${e.recordId})`:"(<record-id>)",o=e.downloadSize==="full"?"?size=full":"";return[{n:1,title:e.downloadSize==="full"?"Download full-size image":"Download thumbnail",method:"GET",relativeUrl:`${rt.apiBase}/${t.entitySetName}${r}/${e.imageColumn??"<image-column>"}/$value${o}`,headers:{Accept:"image/*"},detail:e.downloadSize==="full"?"Response 200 OK + binary image body when CanStoreFullImage=true. When CanStoreFullImage=false (or the image was uploaded before the flag was enabled), the server returns 204 NoContent with an empty body — not an error.":"Response 200 OK + 144×144 thumbnail. Thumbnails are cropped/resized server-side: images ≥144 px on either side are cropped on-center to 144×144; images smaller than 144 px on both sides are cropped square to the smallest side. Append ?size=full for the original (requires CanStoreFullImage=true)."}]}function Zpe(e){const t=fe(e.table);if(!t)return[];const r=e.recordId?`(${e.recordId})`:"(<record-id>)";return[{n:1,title:"Delete image (DELETE)",method:"DELETE",relativeUrl:`${rt.apiBase}/${t.entitySetName}${r}/${e.imageColumn??"<image-column>"}`,headers:{Accept:"application/json"},detail:'Response 204 NoContent. Three doc-equivalent forms: (a) DELETE on the column URL (shown), (b) PATCH /set(id) with { "<col>": null }, (c) PUT /set(id)/<col> with { "value": null }. Unlike file columns, images can be cleared via PATCH-to-null since they ride inline on the record.'}]}function Zg(e){const t=fe(e.table);if(!t)return null;const r=e.recordId?`(${e.recordId})`:"(<record-id>)",o=e.fileColumn??"<file-column>";return`${rt.apiBase}/${t.entitySetName}${r}/${o}`}function Kg(e){if(!Number.isFinite(e)||e<=0)return"0 B";const t=["B","KB","MB","GB"];let r=e,o=0;for(;r>=1024&&o<t.length-1;)r/=1024,o++;return`${r.toFixed(r<10&&o>0?1:0)} ${t[o]}`}function Fye(e){const t=fe(e.table);if(!t)return{relativeUrl:"",relativeNoBase:"",bytes:0,queryParts:[],entitySet:"",entityLogical:""};const o=R8(e)[0];if(!o)return{relativeUrl:"",relativeNoBase:"",bytes:0,queryParts:[],entitySet:t.entitySetName,entityLogical:t.logicalName,recordId:e.recordId??void 0};const n=o.relativeUrl.replace(rt.apiBase,"");return{relativeUrl:o.relativeUrl,relativeNoBase:n||o.relativeUrl,bytes:o.relativeUrl.length,queryParts:[],entitySet:t.entitySetName,entityLogical:t.logicalName,recordId:e.recordId??void 0}}function R8(e){switch(e.operation){case"upload":switch(e.uploadMethod.kind){case"single-request":return Lpe(e);case"chunked-patch":return $pe(e);case"dataverse-messages":return Hpe(e)}break;case"download":return Vpe(e);case"delete":return Wpe(e)}}function Iye(e){const t=fe(e.table);if(!t)return{relativeUrl:"",relativeNoBase:"",bytes:0,queryParts:[],entitySet:"",entityLogical:""};const o=D8(e)[0];if(!o)return{relativeUrl:"",relativeNoBase:"",bytes:0,queryParts:[],entitySet:t.entitySetName,entityLogical:t.logicalName,recordId:e.recordId??void 0};const n=o.relativeUrl.replace(rt.apiBase,"");return{relativeUrl:o.relativeUrl,relativeNoBase:n||o.relativeUrl,bytes:o.relativeUrl.length,queryParts:[],entitySet:t.entitySetName,entityLogical:t.logicalName,recordId:e.recordId??void 0}}function D8(e){switch(e.operation){case"upload":return Upe(e);case"download":return Gpe(e);case"delete":return Zpe(e)}}function Mx(e,t){const r=yc[e.target],o={"@odata.type":`Microsoft.Dynamics.CRM.${r.entityLogical}`};if(e.recordId&&(o[r.primaryKey]=e.recordId),e.target==="attachment"&&e.parentActivityId&&(o["objectid_email@odata.bind"]=`emails(${e.parentActivityId})`,o.objecttypecode="email"),e.target==="annotation"&&e.parentEntityLogical&&e.parentEntityId){const n=`objectid_${e.parentEntityLogical}`,a=fe(e.parentEntityLogical);a&&(o[`${n}@odata.bind`]=`${a.entitySetName}(${e.parentEntityId})`)}return t&&(e.subject&&e.target==="attachment"&&(o.subject=e.subject),e.noteText&&e.target==="annotation"&&(o.notetext=e.noteText),e.fileName&&(o[r.fileNameColumn]=e.fileName||"file.bin"),e.mimeType&&(o[r.mimeTypeColumn]=e.mimeType||"application/octet-stream")),o}function Kpe(e){const t=yc[e.target],r=e.target==="attachment"||!e.recordId,o=r?"POST":"PATCH",n=r?`${rt.apiBase}/${t.entitySet}`:`${rt.apiBase}/${t.entitySet}(${e.recordId})`,a=Mx(e,!0);delete a["@odata.type"],a[t.bodyColumn]="<base64 file bytes>";const i={"Content-Type":"application/json; charset=utf-8"};return r||(i["If-Match"]="*"),[{n:1,title:r?`Create ${e.target} with inline body`:`Update ${e.target} body`,method:o,relativeUrl:n,headers:i,body:a,detail:r?`Response ${e.target==="attachment"?"204 NoContent + OData-EntityId header":"204 NoContent"} on success. Base 64-encoded payload must fit under Organization.MaxUploadFileSize (default 5 MB, max 128 MB). For larger files use the messages path.`:"Response 204 NoContent. Replaces the existing body. For files larger than ~4 MB use the messages path instead."}]}function Xpe(e){if(e.uploadMethod.kind!=="dataverse-messages")return[];const t=yc[e.target],r=e.uploadMethod.blockSize,o=Math.max(e.fileSize,1),n=Math.max(1,Math.ceil(o/r)),a=Mx(e,!0),i=e.target==="attachment"?"ActivityMimeAttachmentId":"AnnotationId";return[{n:1,title:t.initUploadMessage,method:"POST",relativeUrl:`${rt.apiBase}/${t.initUploadMessage}`,headers:{"Content-Type":"application/json; charset=utf-8"},body:{Target:a},detail:e.target==="attachment"?'Returns { FileContinuationToken }. Must include objectid_email@odata.bind on Target — these messages only CREATE attachments; trying to update an existing one returns "record already exists".':"Returns { FileContinuationToken }. Annotation must carry a caller-generated annotationid GUID on Target — Dataverse will not auto-assign. The body/documentbody must NOT be set in Target (use UploadBlock instead)."},{n:2,title:`UploadBlock × ${n}`,method:"POST",relativeUrl:`${rt.apiBase}/UploadBlock`,headers:{"Content-Type":"application/json; charset=utf-8"},body:{BlockId:"<base64 blockid — same length for every block (≤ 64 bytes before encoding)>",BlockData:"<base64 chunk bytes (≤ 4 MB)>",FileContinuationToken:"<continuation-token-from-step-1>"},detail:`${n} request${n===1?"":"s"} of ${Kg(r)} each. Each call returns 204 NoContent. Capture every BlockId — they MUST be passed to Commit* in upload order. Standard idiom: BlockId = Base64(UTF8(Guid.NewGuid().ToString())).`},{n:3,title:t.commitUploadMessage,method:"POST",relativeUrl:`${rt.apiBase}/${t.commitUploadMessage}`,headers:{"Content-Type":"application/json; charset=utf-8"},body:{Target:a,BlockList:["<blockid-1>","<blockid-2>","…"],FileContinuationToken:"<continuation-token-from-step-1>"},detail:`Returns { ${i}, FileSizeInBytes }. The Target envelope here must repeat the same filename/mimetype values from step 1 (server uses these to finalize the record). For attachments, the bound parent activity and subject also repeat here.`}]}function Ype(e){const t=yc[e.target];switch(e.downloadMethod.kind){case"single-request":{const r=e.recordId??"<record-id>";return[{n:1,title:`Download ${e.target} body (single request)`,method:"GET",relativeUrl:`${rt.apiBase}/${t.entitySet}(${r})/${t.bodyColumn}/$value`,headers:{Accept:"application/json"},detail:"Response 200 OK · Content-Type: text/plain · body is the BASE 64-encoded blob (not raw bytes). Unlike file columns, this path does NOT return x-ms-file-name / x-ms-file-size / mimetype headers — you must read those via a separate $select on filename/mimetype."}]}case"dataverse-messages":return[{n:1,title:t.initDownloadMessage,method:"POST",relativeUrl:`${rt.apiBase}/${t.initDownloadMessage}`,headers:{"Content-Type":"application/json; charset=utf-8"},body:{Target:Mx(e,!1)},detail:"Returns { FileContinuationToken, FileSizeInBytes, FileName }. Same DownloadBlock action used by file columns is then called repeatedly."},{n:2,title:"DownloadBlock × N",method:"POST",relativeUrl:`${rt.apiBase}/DownloadBlock`,headers:{"Content-Type":"application/json; charset=utf-8"},body:{Offset:0,BlockLength:e.downloadMethod.blockSize,FileContinuationToken:"<token-from-step-1>"},detail:"Returns { Data: <base64 chunk bytes> }. Increment Offset by BlockLength on each call. Per doc note: BlockLength can stay constant — the final block may be smaller and the server returns only the remaining bytes."}]}}function Jpe(e){const t=yc[e.target],r=e.recordId??"<record-id>";return[{n:1,title:`Delete ${e.target} record`,method:"DELETE",relativeUrl:`${rt.apiBase}/${t.entitySet}(${r})`,headers:{Accept:"application/json"},detail:`Response 204 NoContent. Deletes the entire ${e.target} record (including the body). Per attachment-annotation-files doc there's no message form for delete — the record IS the file, so removing the row removes the data. To clear just the body without deleting the record, PATCH ${t.bodyColumn} = null.`}]}function Aye(e){const t=yc[e.target],o=E8(e)[0];if(!o)return{relativeUrl:"",relativeNoBase:"",bytes:0,queryParts:[],entitySet:t.entitySet,entityLogical:t.entityLogical,recordId:e.recordId??void 0};const n=o.relativeUrl.replace(rt.apiBase,"");return{relativeUrl:o.relativeUrl,relativeNoBase:n||o.relativeUrl,bytes:o.relativeUrl.length,queryParts:[],entitySet:t.entitySet,entityLogical:t.entityLogical,recordId:e.recordId??void 0}}function E8(e){switch(e.operation){case"upload":switch(e.uploadMethod.kind){case"inline-base64":return Kpe(e);case"dataverse-messages":return Xpe(e)}break;case"download":return Ype(e);case"delete":return Jpe(e)}}function Oye(e){return e==="attachment"?"Attachment (ActivityMimeAttachment)":"Note (Annotation)"}const P8='odata.include-annotations="Microsoft.Dynamics.CRM.totalrecordcountlimitexceeded"',nn=e=>encodeURIComponent(e).replace(/%2F/g,"/").replace(/%2C/g,",").replace(/%3D/g,"=").replace(/%24/g,"$").replace(/%28/g,"(").replace(/%29/g,")").replace(/%20/g," ").replace(/%27/g,"'").replace(/%3B/g,";");function xc(e){return e.filter(t=>t.value!==""&&t.value!=null).map(t=>`${t.key}=${t.value}`).join("&")}function Ld(e,t){return e?t.map(r=>ax(e,r)).join(","):t.join(",")}function Xg(e,t={}){const r=fe(e.table);if(!r)return{relativeUrl:"",relativeNoBase:"",bytes:0,queryParts:[],entitySet:"",entityLogical:""};const o=[];if(e.countOnly){r.primaryKey&&o.push({key:"$select",value:nn(r.primaryKey)});const i=e.filter.rules.length?Li(e.filter,r):"";return i&&o.push({key:"$filter",value:nn(i)}),o.push({key:"$top",value:"1"},{key:"$count",value:"true"}),q3(r,o)}const n=h8(e.apply,r);if(n)o.push({key:"$apply",value:nn(n)});else{if(e.select.length&&o.push({key:"$select",value:nn(Ld(r,e.select))}),e.filter.rules.length){const i=Li(e.filter,r);i&&o.push({key:"$filter",value:nn(i)})}e.expand.length&&o.push({key:"$expand",value:nn(R7(e.expand,e.table))}),e.orderby.length&&o.push({key:"$orderby",value:nn(T7(e.orderby,r))})}const a=e.prefer.maxpagesize!=null&&e.prefer.maxpagesize>0;return e.top!=null&&e.top>0&&(!a||t.keepTop)&&o.push({key:"$top",value:String(e.top)}),e.countOn&&o.push({key:"$count",value:"true"}),q3(r,o)}function q3(e,t){const r=`${rt.apiBase}/${e.entitySetName}`,o=xc(t),n=o?`${r}?${o}`:r,a=`/${e.entitySetName}${o?`?${o}`:""}`;return{relativeUrl:n,relativeNoBase:a,bytes:n.length,queryParts:t,entitySet:e.entitySetName,entityLogical:e.logicalName}}function M8(e){const t=fe(e.table);if(!t)return{relativeUrl:"",relativeNoBase:"",bytes:0,queryParts:[],entitySet:"",entityLogical:""};const r=[];e.select.length&&r.push({key:"$select",value:nn(Ld(t,e.select))}),e.expand.length&&r.push({key:"$expand",value:nn(R7(e.expand,e.table))});const o=e.recordId?`(${e.recordId})`:"(<id>)",n=`${rt.apiBase}/${t.entitySetName}${o}`,a=xc(r),i=a?`${n}?${a}`:n,l=`/${t.entitySetName}${o}${a?`?${a}`:""}`;return{relativeUrl:i,relativeNoBase:l,bytes:i.length,queryParts:r,entitySet:t.entitySetName,entityLogical:t.logicalName,recordId:e.recordId??void 0}}function Lye(e,t){const r=e.url||"";let o="";const n=r.match(/\/api\/data\/v\d+\.\d+\/([^?(/]+)/);n&&(o=n[1]);let a=r;a=a.replace(/^https?:\/\/[^/]+/,""),a=a.replace(/^\/api\/data\/v\d+\.\d+/,"");const i=o&&(t?.(o)??Pne(o)?.logicalName)||"";return{relativeUrl:r.replace(/^https?:\/\/[^/]+/,""),relativeNoBase:a||"/",bytes:r.length,queryParts:[],entitySet:o,entityLogical:i}}function Qpe(e){const t=fe(e.table);if(!t)return{relativeUrl:"",relativeNoBase:"",bytes:0,queryParts:[],entitySet:"",entityLogical:""};const r=[];e.prefer.returnRepresentation&&e.returnSelect.length&&r.push({key:"$select",value:nn(Ld(t,e.returnSelect))});const o=`${rt.apiBase}/${t.entitySetName}`,n=xc(r),a=n?`${o}?${n}`:o,i=`/${t.entitySetName}${n?`?${n}`:""}`;return{relativeUrl:a,relativeNoBase:i,bytes:a.length,queryParts:r,entitySet:t.entitySetName,entityLogical:t.logicalName}}function $d(e){const t=fe(e.table);if(!t)return{};if(e.rawBody!=null){const r=Fg(e.rawBody);return r.ok?r.body:{}}return Tse(t,e.fieldValues,e.nullFields??[])}function eme(e){const t=fe(e.table);if(!t)return{relativeUrl:"",relativeNoBase:"",bytes:0,queryParts:[],entitySet:"",entityLogical:""};const r=e.recordId?`(${e.recordId})`:"(<id>)",o=e.method==="PUT"&&e.putColumn?`/${e.putColumn}`:"",n=[];e.method==="PATCH"&&e.prefer.returnRepresentation&&e.returnSelect.length&&n.push({key:"$select",value:nn(Ld(t,e.returnSelect))});const a=`${rt.apiBase}/${t.entitySetName}${r}${o}`,i=xc(n),l=i?`${a}?${i}`:a,d=`/${t.entitySetName}${r}${o}${i?`?${i}`:""}`;return{relativeUrl:l,relativeNoBase:d,bytes:l.length,queryParts:n,entitySet:t.entitySetName,entityLogical:t.logicalName,recordId:e.recordId??void 0}}function q8(e){if(e.method==="PUT"){if(!e.putColumn)return{value:null};const t=e.fieldValues[e.putColumn];return t==null?{value:null}:{value:t}}return $d({table:e.table,fieldValues:e.fieldValues,nullFields:e.nullFields??[],rawBody:e.rawBody??null,prefer:e.prefer,headers:e.headers,returnSelect:e.returnSelect,dirty:e.dirty})}const F3="<value>",tme=/[/<>*%&:\\?+#]/,I3=e=>`'${encodeURIComponent(e.replace(/'/g,"''"))}'`;function rme(e,t){if(!t)return I3(e);switch(t){case"Integer":case"BigInt":case"Decimal":case"Double":case"Money":case"Picklist":case"MultiSelectPicklist":case"State":case"Status":case"EntityName":case"Uniqueidentifier":case"Lookup":case"Customer":case"Owner":{const r=e.trim();return r===""?F3:encodeURIComponent(r)}case"DateTime":{const r=e.trim();return r===""?F3:encodeURIComponent(r).replace(/%3A/gi,":")}case"Boolean":return e==="true"||e==="1"?"true":"false";default:return I3(e)}}function ome(e,t,r){const o=fe(e);return`(${t.columns.map(a=>{const i=Jy(o,t,a),l=r[a]??"";return`${!o?.columns.some(p=>p.logicalName===a)&&(i==="Lookup"||i==="Customer"||i==="Owner")?`_${a}_value`:ax(o,a)}=${rme(l,i)}`}).join(",")})`}function $ye(e,t){const r=fe(e);return t.columns.filter(o=>!Jy(r,t,o))}function Hye(e,t,r){const o=fe(e);return t.columns.filter(n=>{const a=Jy(o,t,n);return a&&a!=="String"&&a!=="Memo"?!1:tme.test(r[n]??"")})}function nme(e){const t=fe(e.table);if(!t)return{relativeUrl:"",relativeNoBase:"",bytes:0,queryParts:[],entitySet:"",entityLogical:""};let r="(<id>)",o;const n=e.key;if(n.kind==="guid")n.recordId&&(r=`(${n.recordId})`,o=n.recordId);else{const p=t.alternateKeys?.find(h=>h.name===n.keyName);p&&(r=ome(e.table,p,n.keyValues))}const a=[];e.prefer.returnRepresentation&&e.returnSelect.length&&a.push({key:"$select",value:nn(Ld(t,e.returnSelect))});const i=`${rt.apiBase}/${t.entitySetName}${r}`,l=xc(a),d=l?`${i}?${l}`:i,f=`/${t.entitySetName}${r}${l?`?${l}`:""}`;return{relativeUrl:d,relativeNoBase:f,bytes:d.length,queryParts:a,entitySet:t.entitySetName,entityLogical:t.logicalName,recordId:o}}function F8(e){return $d({table:e.table,fieldValues:e.fieldValues,nullFields:e.nullFields??[],rawBody:e.rawBody??null,prefer:e.prefer,headers:e.headers,returnSelect:e.returnSelect,dirty:e.dirty})}function ame(e){const t=fe(e.table);if(!t)return{relativeUrl:"",relativeNoBase:"",bytes:0,queryParts:[],entitySet:"",entityLogical:""};const r=e.recordId?`(${e.recordId})`:"(<id>)",o=e.scope.kind==="single-property"&&e.scope.column?`/${e.scope.column}`:"",n=`${rt.apiBase}/${t.entitySetName}${r}${o}`,a=`/${t.entitySetName}${r}${o}`;return{relativeUrl:n,relativeNoBase:a,bytes:n.length,queryParts:[],entitySet:t.entitySetName,entityLogical:t.logicalName,recordId:e.recordId??void 0}}function ime(e){const t=fe(e.table);if(!t)return{relativeUrl:"",relativeNoBase:"",bytes:0,queryParts:[],entitySet:"",entityLogical:""};const r=`${rt.apiBase}/Merge`;return{relativeUrl:r,relativeNoBase:"/Merge",bytes:r.length,queryParts:[],entitySet:t.entitySetName,entityLogical:t.logicalName}}function I8(e){const t=fe(e.table);if(!t)return{};const r=`Microsoft.Dynamics.CRM.${t.logicalName}`,o=t.primaryKey,n=e.subordinateSnapshot??void 0,a={};for(const[l,d]of Object.entries(e.fieldChoices)){if(d==="target")continue;const f=Mn(t,l);if(f){if(d==="subordinate"){if(!n)continue;if(Wa(f)){const h=o7(n,f);h?.targetEntity&&(a[l]={id:h.id,targetEntity:h.targetEntity});continue}const p=n[l];if(p==null)continue;if(f.attributeType==="MultiSelectPicklist"){typeof p=="string"&&p&&(a[l]=p.split(",").map(h=>Number(h)).filter(h=>Number.isFinite(h)));continue}a[l]=p;continue}if(d==="custom"){const p=e.customValues[l];if(p==null)continue;a[l]=p}}}const i=$d({table:e.table,fieldValues:a,nullFields:[]});return{Target:{"@odata.type":r,[o]:e.targetId??"<target-guid>"},Subordinate:{"@odata.type":r,[o]:e.subordinateId??"<subordinate-guid>"},UpdateContent:{"@odata.type":r,...i},PerformParentingChecks:e.performParentingChecks}}const A8={"If-Match":"*"};function A3(e,t){return e!=="PATCH"||Object.keys(t).some(r=>r.trim().toLowerCase()==="if-match")?t:{...t,...A8}}function O8(e,t){return`https://${rt.host}${rt.apiBase}/${e}(${t})`}function qx(e){const t=fe(e.table);if(!t||!e.sourceId||!e.navProperty)return[];const r=t.navigationProperties.find(n=>n.name===e.navProperty);if(!r)return[];const o=fe(r.targetEntity);if(!o)return[];if(Od(r)){const n=e.targets.filter(Boolean)[0];if(!n)return[];const a=sd(t,{logicalName:r.name},o.logicalName),i=`${rt.apiBase}/${t.entitySetName}(${e.sourceId})`,l=`/${t.entitySetName}(${e.sourceId})`;return[{method:"PATCH",relativeUrl:i,relativeNoBase:l,body:{[a]:`${o.entitySetName}(${n})`},targetId:n}]}return e.targets.filter(Boolean).map(n=>{const a=`${rt.apiBase}/${t.entitySetName}(${e.sourceId})/${r.name}/$ref`,i=`/${t.entitySetName}(${e.sourceId})/${r.name}/$ref`;return{method:"POST",relativeUrl:a,relativeNoBase:i,body:{"@odata.id":O8(o.entitySetName,n)},targetId:n}})}function Vye(e){const t=fe(e.table);if(!t)return{relativeUrl:"",relativeNoBase:"",bytes:0,queryParts:[],entitySet:"",entityLogical:""};const r=e.navProperty?t.navigationProperties.find(d=>d.name===e.navProperty):void 0,o=r?Od(r):!1,n=e.sourceId?`(${e.sourceId})`:"(<source-id>)",a=o?"":r?`/${r.name}/$ref`:"/<nav-property>/$ref",i=`${rt.apiBase}/${t.entitySetName}${n}${a}`,l=`/${t.entitySetName}${n}${a}`;return{relativeUrl:i,relativeNoBase:l,bytes:i.length,queryParts:[],entitySet:t.entitySetName,entityLogical:t.logicalName,recordId:e.sourceId??void 0}}function Wye(e){const t=qx(e);if(t.length===0){const r=fe(e.table),o=r&&e.navProperty?r.navigationProperties.find(i=>i.name===e.navProperty):void 0,n=o?fe(o.targetEntity):void 0;return(o?Od(o):!1)&&r&&o&&n?{[sd(r,{logicalName:o.name},n.logicalName)]:`${n.entitySetName}(<target-id>)`}:{"@odata.id":n?O8(n.entitySetName,"<target-id>"):`https://${rt.host}${rt.apiBase}/<target-set>(<target-id>)`}}return t[0].body}function Uye(e){const t=fe(e.table);if(!t)return{relativeUrl:"",relativeNoBase:"",bytes:0,queryParts:[],entitySet:"",entityLogical:""};const r=e.navProperty?t.navigationProperties.find(p=>p.name===e.navProperty):void 0,o=e.sourceId?`(${e.sourceId})`:"(<source-id>)";if(r?Od(r):!1){const p=`${rt.apiBase}/${t.entitySetName}${o}`,h=`/${t.entitySetName}${o}`;return{relativeUrl:p,relativeNoBase:h,bytes:p.length,queryParts:[],entitySet:t.entitySetName,entityLogical:t.logicalName,recordId:e.sourceId??void 0}}const a=r?`/${r.name}`:"/<nav-property>",i=e.targetIds[0],l=i?`(${i})`:"(<target-id>)",d=`${rt.apiBase}/${t.entitySetName}${o}${a}${l}/$ref`,f=`/${t.entitySetName}${o}${a}${l}/$ref`;return{relativeUrl:d,relativeNoBase:f,bytes:d.length,queryParts:[],entitySet:t.entitySetName,entityLogical:t.logicalName,recordId:e.sourceId??void 0}}function L8(e){const t=fe(e.table);if(!t||!e.sourceId||!e.navProperty)return[];const r=t.navigationProperties.find(a=>a.name===e.navProperty);if(!r)return[];const o=`(${e.sourceId})`,n=`/${r.name}`;if(Od(r)){const a=fe(r.targetEntity),i=sd(t,{logicalName:r.name},a?.logicalName??r.targetEntity);return[{method:"PATCH",relativeUrl:`${rt.apiBase}/${t.entitySetName}${o}`,relativeNoBase:`/${t.entitySetName}${o}`,targetId:null,body:{[i]:null}}]}return e.targetIds.filter(Boolean).map(a=>({method:"DELETE",relativeUrl:`${rt.apiBase}/${t.entitySetName}${o}${n}(${a})/$ref`,relativeNoBase:`/${t.entitySetName}${o}${n}(${a})/$ref`,targetId:a}))}function sme(e){const t=e.related;if(!t||!t.sourceTable||!t.navProperty)return null;const r=fe(t.sourceTable);return r?`${r.entitySetName}(${t.recordId||"<record-id>"})/${t.navProperty}`:null}function lme(e){const t=fe(e.table);if(!t)return{relativeUrl:"",relativeNoBase:"",bytes:0,queryParts:[],entitySet:"",entityLogical:""};const r=[];r.push({key:e.queryType,value:e.queryId??"<query-guid>"}),e.top!=null&&e.top>0&&(e.prefer.maxpagesize==null||e.prefer.maxpagesize===0)&&r.push({key:"$top",value:String(e.top)});const o=sme(e)??t.entitySetName,n=`${rt.apiBase}/${o}`,a=xc(r),i=a?`${n}?${a}`:n,l=`/${o}${a?`?${a}`:""}`;return{relativeUrl:i,relativeNoBase:l,bytes:i.length,queryParts:r,entitySet:t.entitySetName,entityLogical:t.logicalName}}const Gye={name:"prvBypassCustomBusinessLogic",description:"Required to use MSCRM.BypassBusinessLogicExecution + MSCRM.BypassBusinessLogicExecutionStepIds. By default only the System Administrator role has this privilege."},Zye={name:"prvBypassCustomPlugins",description:"Required to use the legacy MSCRM.BypassCustomPluginExecution header. By default only the System Administrator role has this privilege."},cme=3,ume=10,fs="__bypass_";function dme(e){const t=[];switch(e.businessLogic){case"sync":t.push(e.useLegacyHeader?{id:`${fs}plugin-legacy`,name:"MSCRM.BypassCustomPluginExecution",value:"true",enabled:!0,builtin:!0,hint:"LEGACY — prefer MSCRM.BypassBusinessLogicExecution: CustomSync (requires prvBypassCustomBusinessLogic)."}:{id:`${fs}bl-sync`,name:"MSCRM.BypassBusinessLogicExecution",value:"CustomSync",enabled:!0,builtin:!0,hint:"Bypass custom synchronous plug-ins/workflows for this request. Requires prvBypassCustomBusinessLogic."});break;case"async":t.push({id:`${fs}bl-async`,name:"MSCRM.BypassBusinessLogicExecution",value:"CustomAsync",enabled:!0,builtin:!0,hint:"Bypass custom asynchronous logic. Requires prvBypassCustomBusinessLogic."});break;case"both":t.push({id:`${fs}bl-both`,name:"MSCRM.BypassBusinessLogicExecution",value:"CustomSync,CustomAsync",enabled:!0,builtin:!0,hint:"Bypass both synchronous and asynchronous custom logic. Requires prvBypassCustomBusinessLogic."});break;case"steps":{const r=e.stepIds.filter(Boolean).join(",");r&&t.push({id:`${fs}bl-steps`,name:"MSCRM.BypassBusinessLogicExecutionStepIds",value:r,enabled:!0,builtin:!0,hint:`Bypass these specific plug-in step registrations. Default cap is ${cme} (max ${ume}). Requires prvBypassCustomBusinessLogic.`});break}}return e.suppressFlows&&t.push({id:`${fs}flows`,name:"MSCRM.SuppressCallbackRegistrationExpanderJob",value:"true",enabled:!0,builtin:!0,hint:"Skip Power Automate flow triggers from Dataverse events. No privilege required, but flow owners are not notified that their logic was bypassed."}),t}function fme(e,t){const r=e.filter(n=>!n.id.startsWith(fs)),o=dme(t);return[...r,...o]}const $8=new Set(["authorization","accept","content-type","content-length","odata-version","odata-maxversion","prefer"]),pme=e=>$8.has(e.trim().toLowerCase());function hd(e){if(!e)return;const t=new Map;for(const[r,o]of Object.entries(e)){const n=r.trim(),a=n.toLowerCase();!a||$8.has(a)||Oi(a)||(t.delete(a),t.set(a,[n,o]))}return t.size>0?Object.fromEntries(t.values()):void 0}const Gp=["MSCRMCallerID","CallerObjectId"],H8=["MSCRM.BypassCustomPluginExecution","MSCRM.BypassBusinessLogicExecution","MSCRM.SuppressCallbackRegistrationExpanderJob"],V8={read:[...Gp,"If-None-Match","Consistency"],relate:[...Gp,...H8],impersonation:Gp},mme=e=>new Set(V8[e].map(t=>t.toLowerCase())),Fx=(e,t)=>e.trim().toLowerCase()===t.toLowerCase(),W8=e=>Gp.some(t=>Fx(e,t)),gme=e=>H8.some(t=>Fx(e,t)),hme=(e,t)=>Fx(e,"if-none-match")&&t.trim().toLowerCase()==="null";function Yg(e,t){const r=hd(t);if(!r)return;const o=mme(e),n=Object.entries(r).filter(([a,i])=>o.has(a.toLowerCase())&&!hme(a,i));return n.length>0?Object.fromEntries(n):void 0}const vme=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,bme="00000000-0000-0000-0000-000000000000";function yme(e){const t=Object.entries(hd(e)??{}).filter(([o])=>W8(o));if(t.length>1)return`Turn on one impersonation header, not both (${t.map(([o])=>o).join(" and ")}).`;const[r]=t;return r&&(!vme.test(r[1].trim())||r[1].trim()===bme)?`${r[0]} needs the id of the user to run as (a GUID), not ${JSON.stringify(r[1])}.`:null}function xme(e){return e&&e>0?`odata.include-annotations="*",odata.maxpagesize=${e}`:void 0}function wme(e,t){const r=xme(t),o={...Yg("read",e),...r?{Prefer:r}:{}};return Object.keys(o).length>0?o:void 0}let kme=1;const dn=()=>`h${kme++}`,Sme=()=>[{id:dn(),name:"Accept",value:"application/json",enabled:!0,builtin:!0,hint:"OData JSON contract — required."},{id:dn(),name:"OData-MaxVersion",value:"4.0",enabled:!0,builtin:!0},{id:dn(),name:"OData-Version",value:"4.0",enabled:!0,builtin:!0},{id:dn(),name:"If-None-Match",value:"",enabled:!1,hint:"Retrieve Single: put the row's @odata.etag here to get 304 Not Modified when it hasn't changed."},...U8()],U8=()=>[{id:dn(),name:"MSCRMCallerID",value:"00000000-0000-0000-0000-000000000000",enabled:!1,hint:"Impersonation by systemuserid — caller must hold the prvActOnBehalfOfAnotherUser privilege."},{id:dn(),name:"CallerObjectId",value:"00000000-0000-0000-0000-000000000000",enabled:!1,hint:"Impersonation by the user's Microsoft Entra object id — same privilege."}],Kye=()=>[{id:dn(),name:"Accept",value:"application/json",enabled:!0,builtin:!0,hint:"OData JSON contract — required."},{id:dn(),name:"Content-Type",value:"application/json; charset=utf-8",enabled:!0,builtin:!0,hint:"POST body content type — required for writes."},{id:dn(),name:"OData-MaxVersion",value:"4.0",enabled:!0,builtin:!0},{id:dn(),name:"OData-Version",value:"4.0",enabled:!0,builtin:!0},{id:dn(),name:"MSCRM.SuppressDuplicateDetection",value:"false",enabled:!1,hint:"Set to false to enable duplicate detection (default behavior suppresses it). Requires duplicate-detection rules to be configured for the entity."},...U8()];function Bme({items:e,setItems:t,group:r="read",sendsHeaders:o,policy:n}){const a=_t(),i=Qa(),l=(x,b)=>t(e.map(k=>k.id===x?{...k,...b}:k)),d=x=>t(e.filter(b=>b.id!==x)),f=()=>t([...e,{id:dn(),name:"",value:"",enabled:!0}]),p=e.filter(x=>x.enabled&&x.name&&x.value).length,h=i.embedded&&On(),v=n?V8[n]:[],y=x=>!!n&&h&&x.enabled&&!!x.name.trim()&&!pme(x.name)&&!Oi(x.name)&&!v.some(b=>b.toLowerCase()===x.name.trim().toLowerCase());return c.jsxs("div",{children:[c.jsx(Un,{icon:SC,title:"Headers",sub:`${p} active. The Prefer header is composed in the Prefer pane.`,group:r}),n&&h?c.jsx(Ue,{layout:"multiline",intent:"info",style:{marginBottom:14},children:c.jsxs(Ge,{children:[c.jsxs(Lt,{children:["Execute sends ",v.join(", ")," through Power Platform ToolBox."]}),n==="read"?c.jsxs(c.Fragment,{children:["And a ",c.jsx("code",{children:"Prefer"})," header when you set a page size, which keeps ToolBox's ",c.jsx("code",{children:'odata.include-annotations="*"'}),"."," "]}):null,"Other rows below go into the Code tab only. ToolBox builds ",c.jsx("code",{children:"Authorization"}),","," ",c.jsx("code",{children:"Accept"})," and the ",c.jsx("code",{children:"OData-*"})," headers itself. If you haven't approved additional request headers for this tool yet, ToolBox asks first; if you reject, the request isn't sent."]})}):(o??r==="write")&&h?c.jsx(Ue,{layout:"multiline",intent:"info",style:{marginBottom:14},children:c.jsxs(Ge,{children:[c.jsx(Lt,{children:"Enabled headers are sent through Power Platform ToolBox."}),"When you click ",c.jsx("strong",{children:"Execute"}),", the host sends the enabled headers below, plus any that this mode's Precondition and Bypass panes add. It builds"," ",c.jsx("code",{children:"Authorization"}),", ",c.jsx("code",{children:"Accept"}),", ",c.jsx("code",{children:"Content-Type"}),","," ",c.jsx("code",{children:"OData-Version"}),", ",c.jsx("code",{children:"OData-MaxVersion"})," and ",c.jsx("code",{children:"Prefer"})," ","itself, so those rows aren't sent. If you haven't approved additional request headers for this tool yet, ToolBox asks first; if you reject, the request isn't sent."]})}):c.jsx(Ue,{layout:"multiline",intent:i.embedded?"warning":"info",style:{marginBottom:14},children:c.jsxs(Ge,{children:[c.jsx(Lt,{children:"Headers are managed by the PPTB host at execute time."}),i.embedded?c.jsxs(c.Fragment,{children:["You're running inside Power Platform ToolBox. When you click"," ",c.jsx("strong",{children:"Execute"}),", the host's Dataverse API client takes over and supplies its own ",c.jsx("code",{children:"Authorization"}),", ",c.jsx("code",{children:"Accept"}),", ",c.jsx("code",{children:"OData-Version"}),", and other defaults — ",c.jsx("strong",{children:"the values below are not transmitted"}),". You can still configure them here for reference or for the generated code in the Code tab."]}):c.jsxs(c.Fragment,{children:["When this tool ships into PPTB, the host's Dataverse API client builds its own headers (",c.jsx("code",{children:"Authorization"}),", ",c.jsx("code",{children:"Accept"}),", ",c.jsx("code",{children:"OData-Version"}),", …) and the values below will be ignored at execute time. Configure them here anyway — they flow through into the generated ",c.jsx("strong",{children:"Code"})," tab snippets, which you'd run outside PPTB with your own bearer token."]})]})}),c.jsx("div",{style:{display:"flex",flexDirection:"column",gap:6,maxWidth:760},children:e.map(x=>c.jsxs("div",{className:F(a.inlineCard),style:{padding:"6px 10px",display:"grid",gridTemplateColumns:"40px 220px 1fr 28px",gap:8,alignItems:"center"},children:[c.jsx(co,{"aria-label":`Send ${x.name||"header"}`,checked:x.enabled,onChange:(b,k)=>l(x.id,{enabled:k.checked})}),c.jsx(Ht,{size:"small",value:x.name,onChange:(b,k)=>l(x.id,{name:k.value}),placeholder:"Header name","aria-label":"Header name",disabled:x.builtin,style:{fontFamily:T.fontFamilyMonospace}}),c.jsx(Ht,{size:"small",value:x.value,onChange:(b,k)=>l(x.id,{value:k.value}),placeholder:"value","aria-label":`${x.name||"Header"} value`,style:{fontFamily:T.fontFamilyMonospace}}),x.builtin?c.jsx("span",{style:{fontSize:10,color:T.colorNeutralForeground3,textAlign:"center"},children:"req"}):c.jsx(pe,{size:"small",appearance:"subtle",icon:c.jsx(mn,{}),onClick:()=>d(x.id),"aria-label":"Remove"}),x.hint&&c.jsx(Pe,{style:{gridColumn:"2 / span 2",color:T.colorNeutralForeground3},children:x.hint}),y(x)&&c.jsx(Pe,{style:{gridColumn:"2 / span 2",color:T.colorNeutralForeground3},children:"Code tab only: Execute doesn't send this header in this mode."}),Oi(x.name)&&c.jsx(Pe,{style:{gridColumn:"2 / span 2",color:T.colorPaletteDarkOrangeForeground1},children:"Not sent, saved or exported. Power Platform ToolBox authenticates every request, and the Code tab adds its own token placeholder."})]},x.id))}),c.jsx("div",{style:{marginTop:12},children:c.jsx(pe,{icon:c.jsx(js,{}),appearance:"outline",size:"small",onClick:f,children:"Add header"})})]})}const G8=(e,t)=>{const r={};return e.filter(o=>o.enabled&&o.name&&o.value).forEach(o=>{r[o.name]=o.value}),t&&(r.Prefer=t),r},jme=()=>({maxpagesize:null,formattedValues:!0,lookupLogicalNames:!1,associatedNavProperty:!1,totalRecordCount:!1,allAnnotations:!1,returnRepresentation:!1});function Cme({spec:e,setSpec:t,group:r="read",sendsPageSize:o=!1}){const n=(l,d)=>t({...e,[l]:d}),a=Qa(),i=o&&On();return c.jsxs("div",{children:[c.jsx(Un,{icon:vC,title:"Prefer",sub:"HTTP Prefer-header options that change the response shape (annotations, pagination).",group:r}),a.embedded&&i&&c.jsx(Ue,{layout:"multiline",intent:"info",style:{marginBottom:14,maxWidth:720},children:c.jsxs(Ge,{children:[c.jsx(Lt,{children:"Execute sends the page size, not the annotations"}),"When you set ",c.jsx("code",{children:"odata.maxpagesize"}),", Execute sends it, and ToolBox asks you to approve the ",c.jsx("code",{children:"Prefer"})," header the first time. Execute always asks for all annotations, whatever you pick here, so the grid renders correctly."," ",c.jsx("strong",{children:"The values you set here are emitted into the Code tab"})," — export to Postman / curl / fetch to test the full request shape."]})}),a.embedded&&!i&&c.jsx(Ue,{layout:"multiline",intent:"info",style:{marginBottom:14,maxWidth:720},children:c.jsxs(Ge,{children:[c.jsx(Lt,{children:"Execute uses Power Platform ToolBox's own Prefer header"}),"ToolBox sets ",c.jsx("code",{children:"Prefer"})," itself, so the values here don't change what Execute sends. Reads use Dataverse's default page size of ",c.jsx("strong",{children:"5,000"}),", and ToolBox still asks for all annotations (FormattedValue, lookuplogicalname and the rest), so the grid renders correctly. Creates and updates always go out with"," ",c.jsx("code",{children:"return=representation"}),", whatever you pick here: a create shows the new row, while ToolBox doesn't pass the row back for an update or upsert."," ",c.jsx("strong",{children:"The values you set here are emitted into the Code tab"})," — export to Postman / curl / fetch to test the full request shape (including small page sizes for pagination testing)."]})}),c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:18,maxWidth:720},children:[c.jsxs("section",{children:[c.jsx(Pe,{style:{display:"block",marginBottom:6,fontWeight:600,color:T.colorNeutralForeground2},children:"Pagination"}),c.jsx(jo,{label:"odata.maxpagesize",hint:"Server-emitted page size — issues @odata.nextLink for the next page. Mutually exclusive with $top.",children:c.jsx(Da,{value:e.maxpagesize??0,min:0,max:5e3,step:10,onChange:(l,d)=>{const f=d.value??Number(d.displayValue??0);n("maxpagesize",f===0?null:f)}})})]}),c.jsxs("section",{children:[c.jsxs(Pe,{style:{display:"block",marginBottom:6,fontWeight:600,color:T.colorNeutralForeground2},children:["Annotations"," ",c.jsx("span",{style:{fontWeight:400,color:T.colorNeutralForeground3,fontFamily:T.fontFamilyMonospace,fontSize:10},children:"· odata.include-annotations"})]}),c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[c.jsx(co,{checked:e.allAnnotations,onChange:(l,d)=>n("allAnnotations",d.checked),label:c.jsxs(Rd,{children:["All annotations (",c.jsx("code",{children:'"*"'}),")"]})}),c.jsxs("div",{style:{marginLeft:24,display:"flex",flexDirection:"column",gap:2,opacity:e.allAnnotations?.45:1,pointerEvents:e.allAnnotations?"none":"auto"},children:[c.jsx(Ra,{checked:e.formattedValues,onChange:(l,d)=>n("formattedValues",!!d.checked),label:c.jsxs("span",{children:[c.jsx("strong",{children:"OData.Community.Display.V1.FormattedValue"})," — localized display strings for choices, currency, dates, lookups"]})}),c.jsx(Ra,{checked:e.lookupLogicalNames,onChange:(l,d)=>n("lookupLogicalNames",!!d.checked),label:c.jsxs("span",{children:[c.jsx("strong",{children:"Microsoft.Dynamics.CRM.lookuplogicalname"})," — disambiguates polymorphic lookups (ownerid → systemuser/team)"]})}),c.jsx(Ra,{checked:e.associatedNavProperty,onChange:(l,d)=>n("associatedNavProperty",!!d.checked),label:c.jsxs("span",{children:[c.jsx("strong",{children:"Microsoft.Dynamics.CRM.associatednavigationproperty"})," — gives the nav-prop name for follow-up $expand"]})}),c.jsx(Ra,{checked:e.totalRecordCount,onChange:(l,d)=>n("totalRecordCount",!!d.checked),label:c.jsxs("span",{children:[c.jsx("strong",{children:"Microsoft.Dynamics.CRM.totalrecordcount[…limitexceeded]"}),' — disambiguate "is this 5,000 or really 5,000?"']})})]})]})]}),c.jsxs("section",{children:[c.jsx(Pe,{style:{display:"block",marginBottom:6,fontWeight:600,color:T.colorNeutralForeground2},children:"Other"}),c.jsx(co,{checked:e.returnRepresentation,onChange:(l,d)=>n("returnRepresentation",d.checked),label:c.jsxs("span",{children:["return=representation"," ",c.jsx(Pe,{style:{marginLeft:4,color:T.colorNeutralForeground3},children:"(write-side; echoes the row back)"})]})})]})]})]})}function Nme(e){const t=[];if(e.allAnnotations)t.push('odata.include-annotations="*"');else{const r=[];e.formattedValues&&r.push("OData.Community.Display.V1.FormattedValue"),e.lookupLogicalNames&&r.push("Microsoft.Dynamics.CRM.lookuplogicalname"),e.associatedNavProperty&&r.push("Microsoft.Dynamics.CRM.associatednavigationproperty"),e.totalRecordCount&&r.push("Microsoft.Dynamics.CRM.totalrecordcount,Microsoft.Dynamics.CRM.totalrecordcountlimitexceeded"),r.length&&t.push(`odata.include-annotations="${r.join(",")}"`)}return e.returnRepresentation&&t.push("return=representation"),e.maxpagesize!=null&&e.maxpagesize>0&&t.push(`odata.maxpagesize=${e.maxpagesize}`),t}function Z8(e){const t=Nme(e);return t.length?t.join(", "):null}function zme({header:e,children:t}){return Qa().embedded?On()?c.jsx(Ue,{layout:"multiline",intent:"info",style:{marginBottom:14},children:c.jsxs(Ge,{children:[c.jsx(Lt,{children:"Sent by Power Platform ToolBox after you approve it"}),"Power Platform ToolBox sends ",e," with the request. If you haven't approved additional request headers for this tool yet, it asks you first. Choose"," ",c.jsx("strong",{children:"Approve for this tool"})," so it doesn't ask again. If you reject, the request isn't sent. You can revoke an approval in ToolBox's Consent Review."]})}):c.jsx(Ue,{layout:"multiline",intent:"warning",style:{marginBottom:14},children:c.jsxs(Ge,{children:[c.jsx(Lt,{children:"Not sent by this version of Power Platform ToolBox"}),t]})}):null}const O3="Update Power Platform ToolBox, or copy the request from the Code tab to run it outside it.";function K8(e,t){switch(t.kind){case"none":return!1;case"etag":case"create-only":return!0;case"update-only":return e==="upsert"}}function Tme(e){return e.businessLogic!=="none"||e.suppressFlows}function Xye(e){if(!Ea()||On())return[];const t=[];return e.concurrency&&K8(e.op,e.concurrency)&&t.push(Tt.err("host-precondition-unsent","header","PPTB can't send this precondition header",c.jsxs("span",{children:["This version of Power Platform ToolBox can't send request headers (1.2.7 and later can), so the ",c.jsx("code",{children:"If-Match"})," / ",c.jsx("code",{children:"If-None-Match"})," condition would be dropped and the request would run without it. Set the precondition to ",c.jsx("strong",{children:"None"})," to execute here. ",O3]}),e.preconditionFocus??"precondition")),(e.bypass&&Tme(e.bypass)||e.bypassCustomPlugins)&&t.push(Tt.err("host-bypass-unsent","header","PPTB can't send the bypass headers",c.jsxs("span",{children:["This version of Power Platform ToolBox can't send request headers (1.2.7 and later can), so the ",c.jsx("code",{children:"MSCRM.*"})," bypass headers would be dropped and plug-ins / flows would still run. Turn the bypass options off to execute here. ",O3]}),e.bypassFocus??"bypass")),t}const _me={none:{title:"None",header:"(no header)",body:"Proceed regardless of the row's state. Server decides what to do (default for Upsert: create if missing, update if present)."},"update-only":{title:"Require existing record",header:"If-Match: *",body:"Fail with 404 Not Found if no record matches the addressed key, instead of creating one. Use to guarantee you're updating an existing row."},"create-only":{title:"Require absent record",header:"If-None-Match: *",body:'Fail with 412 Precondition Failed if a record already matches the addressed key. Upsert "insert-only" — never overwrite.'},etag:{title:"Match specific version (ETag)",header:'If-Match: "<etag>"',body:"Fail with 412 Precondition Failed if the record has been modified since the supplied ETag was issued. Classic optimistic concurrency."}},Rme=["none","update-only","create-only","etag"];function Yye({mode:e,setMode:t,available:r=Rme,currentEtag:o,group:n="write"}){const a=_t(),i=Qa(),l=e.kind,d=e.kind==="etag"?e.etag:"",f=d.trim()?Pme(d):null,p=Mme(d),h=v=>{if(v==="etag"){const y=e.kind==="etag"?e.etag:"";t({kind:"etag",etag:y})}else t({kind:v})};return c.jsxs("div",{children:[c.jsx(Un,{icon:xA,title:"Precondition",sub:"Optimistic concurrency & existence checks — controls the If-Match / If-None-Match header.",group:n}),(On()?e.kind!=="none":K8(r.includes("create-only")?"upsert":"update",e))&&c.jsxs(zme,{header:c.jsxs(c.Fragment,{children:["the ",c.jsx("code",{children:e.kind==="create-only"?"If-None-Match":"If-Match"})," header"]}),children:["The ",c.jsx("code",{children:"If-Match"})," / ",c.jsx("code",{children:"If-None-Match"})," header is dropped at execute time, so this condition wouldn't be enforced and ",c.jsx("strong",{children:"Execute"})," is disabled. Pick a different precondition to run the request here, or copy it from the Code tab to run it elsewhere."]}),i.embedded&&!On()&&e.kind==="update-only"&&!r.includes("create-only")&&c.jsx(Ue,{layout:"multiline",intent:"info",style:{marginBottom:14},children:c.jsxs(Ge,{children:[c.jsx(Lt,{children:"Checked before the update is sent"}),"This host can't send ",c.jsx("code",{children:"If-Match: *"}),", so Dataverse Request Studio first checks that the record exists. If it doesn't, the update isn't sent and you get 404 Not Found, instead of Dataverse creating a new record. Power Platform ToolBox Desktop 1.2.7 and later send the header, so Dataverse enforces it directly."]})}),c.jsx("div",{style:{maxWidth:720},children:c.jsx(wg,{value:l,onChange:(v,y)=>h(y.value),children:r.map(v=>{const y=_me[v],x=l===v;return c.jsxs("div",{className:F(a.inlineCard),style:{padding:"10px 12px",marginBottom:8,borderColor:x?T.colorBrandStroke1:void 0,background:x?T.colorBrandBackground2:void 0},children:[c.jsx(Fa,{value:v,label:c.jsxs("span",{style:{display:"inline-flex",flexDirection:"column",gap:4},children:[c.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[c.jsx("strong",{style:{fontSize:13},children:y.title}),c.jsx("code",{style:{fontFamily:T.fontFamilyMonospace,fontSize:11,color:T.colorBrandForeground2,background:T.colorBrandBackground2Hover,padding:"2px 6px",borderRadius:T.borderRadiusSmall},children:y.header})]}),c.jsx(Pe,{style:{color:T.colorNeutralForeground2,lineHeight:1.45},children:y.body})]})}),v==="etag"&&x&&c.jsx("div",{style:{marginTop:10,marginLeft:26,display:"flex",flexDirection:"column",gap:6,maxWidth:520},children:c.jsx(jo,{label:"ETag value",hint:'Pulled from a previous response\'s @odata.etag — looks like `W/"7281965"`.',validationState:f?"error":"none",validationMessage:f??void 0,children:c.jsxs("span",{style:{display:"flex",gap:6},children:[c.jsx(Ht,{value:d,onChange:(b,k)=>t({kind:"etag",etag:k.value}),placeholder:'W/"12345678"',style:{fontFamily:T.fontFamilyMonospace,fontSize:12,flex:1}}),p&&c.jsx(pe,{size:"small",appearance:"outline",onClick:()=>t({kind:"etag",etag:p}),title:`Use ${p}`,children:"Fix"}),o&&c.jsx(pe,{size:"small",appearance:"outline",onClick:()=>t({kind:"etag",etag:o}),title:`Populate from the current record's @odata.etag (${o})`,children:"Use current"})]})})})]},v)})})})]})}function Dme(e){switch(e.kind){case"update-only":return{name:"If-Match",value:"*"};case"create-only":return{name:"If-None-Match",value:"*"};case"etag":return e.etag.trim()?{name:"If-Match",value:e.etag.trim()}:null;default:return null}}const _b=/^(W\/)?"[\x21\x23-\x7E]+"$/,X8=/[“”„‟″〝〞"‘’]/,Eme=new RegExp(X8.source,"g");function Pme(e){const t=e.trim();return t?t==="*"||_b.test(t)?null:/^\d+$/.test(t)?`Wrap the ETag in quotes: W/"${t}".`:/\\"/.test(t)?'The ETag is still JSON-escaped (\\"). Use W/"12345678", without backslashes.':X8.test(t)?'The ETag has curly quotes. Use straight ones: W/"12345678".':'An ETag looks like W/"12345678", quotes included (copy it from @odata.etag).':"Provide an etag value or switch the concurrency mode."}function Mme(e){const t=e.trim();if(!t||_b.test(t)||t==="*")return null;if(/^\d+$/.test(t))return`W/"${t}"`;let r=t.replace(Eme,'"').replace(/\\"/g,'"');return/^"(W\/)?".*""$/i.test(r)&&(r=r.slice(1,-1)),r=r.replace(/^w\/\s*/i,"W/"),_b.test(r)?r:null}function L3(e,t,r){return{id:`__composed__${e}`,name:e,value:t,enabled:!0,builtin:!0,hint:r}}function qme(e){let t=(e.headers??[]).map(o=>o.name==="MSCRM.SuppressDuplicateDetection"&&e.duplicateDetection!==void 0?{...o,enabled:e.duplicateDetection,value:"false"}:o);const r=e.concurrency?Dme(e.concurrency):null;if(r&&t.push(L3(r.name,r.value,"Composed from the Optimistic concurrency pane.")),e.suppressDuplicateDetection&&t.push(L3("MSCRM.SuppressDuplicateDetection","true","Skips duplicate detection rules when applying UpdateContent overrides.")),e.bypass){const o=e.bypassCustomPlugins&&e.bypass.businessLogic==="none"?{...e.bypass,businessLogic:"sync",useLegacyHeader:!0}:e.bypass;t=fme(t,o)}return t}function Hr(e){return G8(qme(e),e.countOnly?P8:e.prefer?Z8(e.prefer):null)}function Fme(e){return e.replace(/^https?:\/\/[^/]+/i,"")}function Kv(e,t){return e.map(r=>{const o=r.relativeUrl.startsWith("<"),n=[r.detail,o?"Set uploadUrl to the previous response's Location header.":"",typeof r.body=="string"?"Replace the body with the file bytes before sending.":""].filter(Boolean);return{name:`${r.n}. ${r.title}`,method:r.method,path:o?Ei:Fme(r.relativeUrl),headers:{...t,...r.headers},body:r.body,description:n.join(" ")||void 0}})}function zn(e,t,r,o,n){return r?{ok:!0,item:{kind:"request",name:e.name,method:t,path:r,headers:o,body:n}}:{ok:!1,name:e.name,reason:`table "${Pg(e.state)}" isn't available on this connection`}}function gu(e,t){return t.length===0||t.some(r=>!r.path)?{ok:!1,name:e.name,reason:"the request is incomplete"}:t.length===1?{ok:!0,item:{kind:"request",...t[0],name:e.name}}:{ok:!0,item:{kind:"folder",name:e.name,description:`${t.length} requests, run in order.`,steps:t}}}function Ime(e){try{switch(e.modeId){case"retrieve-multiple":{const t=ab(e.state);return zn(e,"GET",Xg(t).relativeUrl,Hr(t))}case"retrieve-single":{const t=Iae(e.state);return zn(e,"GET",M8(t).relativeUrl,Hr(t))}case"predefined-query":{const t=Aae(e.state);return zn(e,"GET",lme(t).relativeUrl,Hr(t))}case"create":{const t=$ae(e.state);return zn(e,"POST",Qpe(t).relativeUrl,Hr(t),$d(t))}case"update":{const t=Lae(e.state);return zn(e,t.method,eme(t).relativeUrl,Hr(t),q8(t))}case"upsert":{const t=Hae(e.state);return zn(e,"PATCH",nme(t).relativeUrl,Hr(t),F8(t))}case"delete":{const t=Oae(e.state);return zn(e,"DELETE",ame(t).relativeUrl,Hr(t))}case"merge":{const t=Vae(e.state);return zn(e,"POST",ime(t).relativeUrl,Hr(t),I8(t))}case"associate":{const t=Wae(e.state),r=Hr(t);return gu(e,qx(t).map(o=>({name:`Associate ${o.targetId}`,method:o.method,path:o.relativeUrl,headers:A3(o.method,r),body:o.body})))}case"disassociate":{const t=Uae(e.state),r=Hr(t);return gu(e,L8(t).map(o=>({name:o.targetId?`Disassociate ${o.targetId}`:"Disassociate",method:o.method,path:o.relativeUrl,headers:A3(o.method,r),body:o.body})))}case"exec-action":{const t=Gae(e.state);return zn(e,"POST",Npe(t).relativeUrl,Hr(t),C8(t))}case"exec-function":{const t=Zae(e.state);return zn(e,"GET",zpe(t).relativeUrl,Hr(t))}case"exec-workflow":{const t=Kae(e.state);return zn(e,"POST",_pe(t).relativeUrl,Hr(t),Rpe(t))}case"manage-file":{const t=Xae(e.state);return gu(e,Kv(R8(t),Hr(t)))}case"manage-image":{const t=Yae(e.state);return gu(e,Kv(D8(t),Hr(t)))}case"manage-attachment":{const t=Jae(e.state);return gu(e,Kv(E8(t),Hr(t)))}default:return{ok:!1,name:e.name,reason:`${e.modeId} requests can't be exported as a collection yet`}}}catch(t){return{ok:!1,name:e.name,reason:t instanceof Error?t.message:String(t)}}}async function Ame(e){const t=new Set(e.map(r=>Pg(r.state)).filter(r=>r&&r!=="—"));await Promise.all([...t].map(r=>lr.getTable(r).catch(()=>{})))}function Ome(){return`https://${rt.host}`}const Y8=fo({libraryList:{display:"flex",flexDirection:"column",gap:"4px",maxHeight:"420px",overflowY:"auto",minWidth:"380px"},libraryRow:{display:"grid",gridTemplateColumns:"auto 1fr auto",gap:"8px",alignItems:"center",padding:"8px 10px",borderRadius:T.borderRadiusMedium,cursor:"pointer",borderTopWidth:"1px",borderRightWidth:"1px",borderBottomWidth:"1px",borderLeftWidth:"1px",borderTopStyle:"solid",borderRightStyle:"solid",borderBottomStyle:"solid",borderLeftStyle:"solid",borderTopColor:"transparent",borderRightColor:"transparent",borderBottomColor:"transparent",borderLeftColor:"transparent",":hover":{backgroundColor:T.colorNeutralBackground1Hover,borderTopColor:T.colorNeutralStroke2,borderRightColor:T.colorNeutralStroke2,borderBottomColor:T.colorNeutralStroke2,borderLeftColor:T.colorNeutralStroke2}},libraryRowName:{fontSize:T.fontSizeBase300,fontWeight:T.fontWeightSemibold,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},libraryRowMeta:{fontSize:T.fontSizeBase100,color:T.colorNeutralForeground3,fontFamily:T.fontFamilyMonospace},transfer:{display:"flex",flexDirection:"column",gap:"6px",marginTop:"6px",paddingTop:"6px",borderTop:`1px solid ${T.colorNeutralStroke2}`,maxWidth:"420px"},transferActions:{display:"flex",alignItems:"center",gap:"4px"},libraryEmpty:{padding:"32px 16px",textAlign:"center",color:T.colorNeutralForeground3,fontSize:T.fontSizeBase200}});function Lme({state:e,modeId:t,dirty:r,lastSavedId:o,onSaved:n}){const[a,i]=m.useState(!1),[l,d]=m.useState(""),[f,p]=m.useState(!1),[h,v]=m.useState(!1),[y,x]=m.useState(null),{save:b,capacity:k,findById:S,findByName:N,error:B,health:C}=qg(),z=o?S(o):void 0,R=z&&Nie(z.state,e)?z.id:void 0,E=r||!!o&&!z&&!C.unreadable;m.useEffect(()=>{if(a){if(R){const M=S(R);d(M?.name??VB(t,e))}else d(VB(t,e));p(!1),x(null)}},[a,e,t,R,S]);const D=(M,O,H)=>{const $=(H??l).trim();if(!$)return;const q={id:M??Tie(),name:$,modeId:t,orgScope:Jt(),state:e,savedAt:Date.now()},A=b(q,O?{replaceId:O}:void 0);if(!A.ok){A.full&&v(!0);return}n(q),i(!1)},I=()=>{const M=l.trim();if(!M)return;if(R&&S(R)?.name===M){D(R);return}const O=N(M);if(O&&O.modeId!==t){x({existing:O,typed:M}),d(Vme(M,N));return}if(O){p(!0);return}if(k.full){v(!0);return}D()};return c.jsxs(Va,{open:a,onOpenChange:(M,O)=>{i(O.open),v(!1)},children:[c.jsx(Ia,{disableButtonEnhancement:!0,children:c.jsx(st,{content:r?"Save current request (unsaved changes)":E?"Save current request (its saved copy was deleted)":"No changes since last save",relationship:"description",children:c.jsx(pe,{appearance:E?"primary":"subtle",icon:E?c.jsx(P2,{}):c.jsx(WI,{}),disabled:!E,"aria-label":"Save request",children:"Save"})})}),c.jsx(Is,{style:{maxWidth:520},children:c.jsxs(Fs,{children:[c.jsx(uc,{action:c.jsx(Ia,{action:"close",children:c.jsx(pe,{appearance:"subtle",icon:c.jsx(Ii,{}),"aria-label":"close"})}),children:"Save request"}),c.jsxs(dc,{children:[c.jsxs(Pe,{style:{display:"block",marginBottom:6,color:T.colorNeutralForeground2},children:["Saved requests live in this browser's storage, scoped to"," ",c.jsx("code",{style:{fontFamily:T.fontFamilyMonospace},children:Jt()}),". Other Dataverse connections have their own saved-request lists. Name auto-suggested from the current entity, select, and filter counts.",k.count>=k.max-10&&` ${k.count} of ${k.max} saved requests used for this connection (all modes).`]}),c.jsx(Ht,{"aria-label":"Request name",value:l,onChange:(M,O)=>{d(O.value),p(!1),v(!1),x(null)},placeholder:"Untitled request",style:{width:"100%"},autoFocus:!0,onKeyDown:M=>{M.key==="Enter"&&!f&&!h&&(M.preventDefault(),I())}}),f&&c.jsx(Ue,{layout:"multiline",intent:"warning",style:{marginTop:12},children:c.jsxs(Ge,{children:[c.jsx(Lt,{children:"Name in use"}),"A saved request in this mode already uses ",c.jsx("code",{children:l.trim()}),". Save again to overwrite it, or change the name above and Save."]})}),y&&c.jsxs(Ue,{layout:"multiline",intent:"warning",style:{marginTop:12},children:[c.jsxs(Ge,{children:[c.jsx(Lt,{children:"Name in use in another mode"}),"A saved"," ",c.jsx("strong",{children:Lu(y.existing.modeId)})," request already uses"," ",c.jsx("code",{children:y.existing.name})," (names are shared across modes). The name above was changed to a free one — Save to keep both."]}),c.jsx(In,{children:c.jsxs(pe,{size:"small",onClick:()=>D(y.existing.id,void 0,y.typed),children:["Overwrite the ",Lu(y.existing.modeId)," request"]})})]}),h&&c.jsx(Ue,{layout:"multiline",intent:"warning",style:{marginTop:12},children:c.jsxs(Ge,{children:[c.jsx(Lt,{children:"Saved requests are full"}),"This connection already has ",k.max," saved requests (across all modes). Delete some from the Saved list, save under an existing name to overwrite it, or replace the oldest one",k.oldest&&c.jsxs(c.Fragment,{children:[": ",c.jsx("code",{children:k.oldest.name})," (",Lu(k.oldest.modeId),", saved ",J8(k.oldest.savedAt),")"]}),"."]})}),B&&c.jsx(Ue,{layout:"multiline",intent:"error",style:{marginTop:12},children:c.jsxs(Ge,{children:[c.jsx(Lt,{children:"Couldn't save"}),B]})})]}),c.jsxs(cc,{children:[c.jsx(Ia,{action:"close",disableButtonEnhancement:!0,children:c.jsx(pe,{appearance:"subtle",children:"Cancel"})}),c.jsx(pe,{appearance:"primary",icon:c.jsx(P2,{}),onClick:()=>{if(h)k.oldest&&D(void 0,k.oldest.id);else if(f){const M=N(l.trim());M&&D(M.id)}else I()},disabled:!l.trim()||h&&!k.oldest,children:h?"Replace oldest":f?"Overwrite":"Save"})]})]})})]})}function $me({modeId:e,onLoad:t,currentId:r,dirty:o}){const n=Y8(),[a,i]=m.useState(!1),[l,d]=m.useState(null),[f,p]=m.useState(""),{saved:h,rename:v,remove:y,health:x}=qg(),b=UT(),k=m.useRef(!1),S=Jt(),[N,B]=m.useState(!1),[C,z]=m.useState(!1),R=m.useMemo(()=>h.filter(O=>O.modeId===e&&(!O.orgScope||O.orgScope===S)).length,[h,e,S]),E=m.useMemo(()=>h.filter(O=>O.modeId!==e&&(!O.orgScope||O.orgScope===S)).length,[h,e,S]),D=O=>{if(!o||!r){t(O),i(!1);return}k.current=!0,b({title:"Discard unsaved changes?",message:`Loading "${O.name}" replaces the current request, and its unsaved changes are lost.`,confirmLabel:"Load",destructive:!0}).then(H=>{k.current=!1,H&&(t(O),i(!1))})},I=m.useMemo(()=>h.filter(O=>(N||O.modeId===e)&&(!O.orgScope||O.orgScope===S)).sort((O,H)=>H.savedAt-O.savedAt),[h,e,S,N]),M=()=>{if(!l)return;const O=f.trim();O&&v(l,O),d(null)};return c.jsxs(Gi,{open:a,onOpenChange:(O,H)=>{!H.open&&k.current||(i(H.open),d(null))},children:[c.jsx(Ya,{disableButtonEnhancement:!0,children:c.jsx(st,{content:"Open saved requests",relationship:"description",children:c.jsxs(pe,{appearance:"subtle",icon:c.jsx(F2,{}),children:["Saved",R>0&&c.jsx(ct,{appearance:"tint",size:"small",style:{marginLeft:6},children:R})]})})}),c.jsxs(Ui,{style:{padding:8},children:[c.jsx(xse,{open:C,onOpenChange:z}),c.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[c.jsx(Pe,{style:{display:"block",padding:"6px 10px",color:T.colorNeutralForeground3},children:x.unreadable?"Saved requests couldn't be read — see below.":I.length===0?!N&&E>0?`No saved ${Lu(e)} requests · ${E} in other modes — turn on All modes to see them.`:"No saved requests yet — click Save to create one.":`${I.length} saved · click to load, hover for rename/delete`}),c.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[c.jsx(co,{label:"All modes",checked:N,onChange:(O,H)=>B(H.checked)}),c.jsx(st,{content:"Saved requests on other connections",relationship:"label",children:c.jsx(pe,{appearance:"subtle",size:"small",icon:c.jsx(yC,{}),"aria-label":"Saved requests on other connections",onClick:()=>z(!0)})})]})]}),x.unreadable?null:I.length===0?c.jsxs("div",{className:n.libraryEmpty,children:[c.jsx(F2,{style:{width:32,height:32,opacity:.4}}),c.jsx("div",{style:{marginTop:8},children:!N&&E>0?"Nothing saved in this mode.":"Nothing here yet."})]}):c.jsx("div",{className:n.libraryList,children:I.map(O=>{const H=O.id===r,$=O.id===l,Z=O.modeId!==e;return c.jsxs("div",{className:F(n.libraryRow),style:H?{borderColor:T.colorBrandStroke1,backgroundColor:T.colorBrandBackground2}:Z?{cursor:"default"}:void 0,onClick:()=>{$||Z||D(O)},children:[c.jsx(ct,{appearance:"tint",color:H?"brand":"informative",size:"small",style:{fontFamily:T.fontFamilyMonospace,minWidth:80,justifyContent:"center"},children:Om(O.modeId)}),c.jsx("div",{style:{minWidth:0},children:$?c.jsx(Ht,{"aria-label":`New name for ${O.name}`,value:f,onChange:(q,A)=>p(A.value),size:"small",style:{width:"100%"},onClick:q=>q.stopPropagation(),onKeyDown:q=>{q.key==="Enter"&&(q.preventDefault(),M()),q.key==="Escape"&&(q.preventDefault(),d(null))},onBlur:M,autoFocus:!0}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:n.libraryRowName,children:[H&&c.jsx(Cd,{style:{color:T.colorBrandForeground1,marginRight:4}}),O.name]}),c.jsxs("div",{className:n.libraryRowMeta,children:[Pg(O.state)," · saved ",J8(O.savedAt),Z&&` · open ${Lu(O.modeId)} to load`]})]})}),c.jsxs("div",{style:{display:"flex",gap:2,alignItems:"center"},children:[c.jsx(st,{content:"Rename",relationship:"label",children:c.jsx(pe,{appearance:"subtle",size:"small",icon:c.jsx(j1,{}),onClick:q=>{q.stopPropagation(),d(O.id),p(O.name)},"aria-label":`Rename ${O.name}`})}),c.jsx(st,{content:"Delete",relationship:"label",children:c.jsx(pe,{appearance:"subtle",size:"small",icon:c.jsx(mn,{}),onClick:q=>{q.stopPropagation(),k.current=!0,b({title:"Delete saved request?",message:`"${O.name}" will be removed from your saved requests.`,confirmLabel:"Delete",destructive:!0}).then(A=>{k.current=!1,A&&y(O.id)})},"aria-label":`Delete ${O.name}`})})]})]},O.id)})}),c.jsx(Hme,{visible:I,allModes:N,modeId:e})]})]})}const Xv=[{name:"JSON",extensions:["json"]}];function Hme({visible:e,allModes:t,modeId:r}){const o=Y8(),{saved:n,importEntries:a,health:i,startNewLibrary:l}=qg(),[d,f]=m.useState(null),[p,h]=m.useState(!1),[v,y]=m.useState(!1),x=m.useRef(null),b=(R,E)=>f({intent:"error",title:R,text:E instanceof Error?E.message:String(E)}),k=R=>{try{const{entries:E,invalid:D,problems:I}=cie(R),M=a(E);if(!M.ok){f({intent:"error",title:"Couldn't import",text:M.error??""});return}const O=[`${M.added} added, ${M.updated} updated, ${M.unchanged} already up to date.`];M.skippedFull>0&&O.push(`${M.skippedFull} not imported: this connection's library is full (${Na}).`);const H=D-I.length;H>0&&O.push(`${H} item(s) in the file weren't valid saved requests and were skipped.`),I.length>0&&O.push(`Skipped: ${I.slice(0,3).join(" ")}${I.length>3?` (and ${I.length-3} more)`:""}`),f({intent:M.skippedFull>0||D>0?"warning":"success",title:"Import finished",text:O.join(" ")})}catch(E){b("Couldn't import",E)}},S=async()=>{f(null),h(!0);try{const R=Jt(),E=`drs-saved-requests-${R.replace(/[^a-z0-9.-]+/gi,"_")}-${new Date().toISOString().slice(0,10)}.json`,D=await Lp(E,iie(n,R),Xv);(D||!Ea())&&f({intent:"success",title:"Exported",text:`${n.length} saved request(s) written to ${D??E}.`})}catch(R){b("Couldn't export",R)}finally{h(!1)}},N=async R=>{f(null),h(!0);try{await Ame(e);const E=e.map(Ime),D=E.flatMap(q=>q.ok?[q.item]:[]),I=E.flatMap(q=>q.ok?[]:[`${q.name} (${q.reason})`]);if(D.length===0){f({intent:"error",title:"Couldn't export",text:`None of the listed requests could be built. ${I.join("; ")}`});return}const M=Jt(),O=`Dataverse Request Studio · ${M}${t?"":` · ${Om(r)}`}`,H=Sse(R,`drs-${M}${t?"":`-${Om(r)}`}`),$=kse(R,{name:O,baseUrl:Ome(),items:D}),Z=await Lp(H,$,Xv);if(Z||!Ea()){const q=zse(D);f({intent:I.length?"warning":"success",title:"Exported",text:`${D.length} saved request(s) (${q} HTTP request(s)) written to ${Z??H}. Set the accessToken variable to a bearer token`+(id(D).length?`, and ${id(D).join(" / ")} to the user to impersonate,`:"")+" before sending."+(I.length?` Skipped: ${I.join("; ")}.`:"")})}}catch(E){b("Couldn't export",E)}finally{h(!1)}},B=async()=>{if(i.unreadableText!==null){f(null),h(!0);try{const E=`drs-saved-requests-unreadable-${Jt().replace(/[^a-z0-9.-]+/gi,"_")}-${new Date().toISOString().slice(0,10)}.txt`,D=await Lp(E,i.unreadableText,[{name:"Text",extensions:["txt","json"]}]);(D||!Ea())&&f({intent:"success",title:"Copy saved",text:`The unreadable saved requests were written to ${D??E}.`})}catch(R){b("Couldn't save a copy",R)}finally{h(!1)}}},C=()=>{y(!1);const R=l();f(R.ok?{intent:"success",title:"New library started",text:"You can save requests again."}:{intent:"error",title:"Couldn't start a new library",text:R.error??""})},z=async()=>{if(f(null),!Ea()||!window.toolboxAPI){x.current?.click();return}h(!0);try{const R=await jB.fileSystem.selectPath({type:"file",title:"Import saved requests",buttonLabel:"Import",filters:Xv});R&&k(await jB.fileSystem.readText(R))}catch(R){b("Couldn't import",R)}finally{h(!1)}};return c.jsxs("div",{className:o.transfer,children:[i.unreadable&&c.jsxs(Ue,{layout:"multiline",intent:"error",children:[c.jsxs(Ge,{children:[c.jsx(Lt,{children:"Saved requests couldn't be read"}),"The saved requests stored for this connection are damaged, so they can't be listed and nothing new is saved over them."," ",i.backedUp?"A copy is kept in this tool’s storage. ":"Save a copy before you start over: storage refused a backup. ","Save a copy to a file, then start a new library.",v&&c.jsxs(c.Fragment,{children:[" ",c.jsx("strong",{children:"Start a new, empty library?"})," The damaged data isn't listed again.",!i.backedUp&&" No backup copy could be kept: unless you saved a copy, it is lost."]})]}),c.jsx(In,{children:v?c.jsxs(c.Fragment,{children:[c.jsx(pe,{size:"small",appearance:"primary",onClick:C,children:"Start new library"}),c.jsx(pe,{size:"small",onClick:()=>y(!1),children:"Cancel"})]}):c.jsxs(c.Fragment,{children:[c.jsx(pe,{size:"small",disabled:p,onClick:()=>{B()},children:"Save a copy…"}),c.jsx(pe,{size:"small",disabled:p,onClick:()=>y(!0),children:"Start a new library"})]})})]}),i.hidden>0&&c.jsx(Ue,{layout:"multiline",intent:"info",children:c.jsxs(Ge,{children:[i.hidden===1?"1 stored item can't be shown by this version of Dataverse Request Studio":`${i.hidden} stored items can't be shown by this version of Dataverse Request Studio`," ","(saved by a newer version, or damaged). They're kept as they are."]})}),c.jsxs("div",{className:o.transferActions,children:[c.jsx(st,{content:"Save every saved request for this connection (all modes) to a JSON file",relationship:"description",children:c.jsx(pe,{appearance:"subtle",size:"small",icon:c.jsx(cA,{}),disabled:p||n.length===0,onClick:()=>{S()},children:"Export"})}),c.jsxs(zi,{children:[c.jsx(qa,{disableButtonEnhancement:!0,children:c.jsx(st,{content:`Export the ${e.length} listed request(s) as a collection for another HTTP client`,relationship:"description",children:c.jsx(zu,{appearance:"subtle",size:"small",icon:c.jsx(AI,{}),disabled:p||e.length===0,children:"Export as"})})}),c.jsx(Ti,{children:c.jsx(Ma,{children:Object.keys(JB).map(R=>c.jsx(un,{onClick:()=>{N(R)},children:JB[R]},R))})})]}),c.jsx(st,{content:"Add saved requests from an exported JSON file to this connection",relationship:"description",children:c.jsx(pe,{appearance:"subtle",size:"small",icon:c.jsx(vA,{}),disabled:p,onClick:()=>{z()},children:"Import"})}),c.jsx("input",{ref:x,type:"file",accept:".json,application/json",hidden:!0,onChange:R=>{const E=R.target.files?.[0];R.target.value="",E&&E.text().then(k,D=>b("Couldn't import",D))}})]}),d&&c.jsx(Ue,{layout:"multiline",intent:d.intent,children:c.jsxs(Ge,{children:[c.jsx(Lt,{children:d.title}),c.jsx("span",{style:{wordBreak:"break-word"},children:d.text})]})})]})}function Lu(e){const t=_s(e);return t.id===e?t.name:Om(e)}function Om(e){return e.replace(/^(retrieve|execute|manage)-/,"")}function Vme(e,t){const r=e.replace(/\s*\(\d+\)$/,"");for(let o=2;;o++){const n=`${r} (${o})`;if(!t(n))return n}}function J8(e){const t=Math.round((Date.now()-e)/1e3);return t<60?"just now":t<3600?`${Math.floor(t/60)} min ago`:t<86400?`${Math.floor(t/3600)} h ago`:t<86400*7?`${Math.floor(t/86400)} d ago`:new Date(e).toISOString().slice(0,10)}const Cp={display:"contents"},Np={color:T.colorNeutralForeground3};function Q8({environment:e}){if(!e)return null;const t=Mg(e);return c.jsx(ct,{appearance:t?"filled":"tint",color:t?"danger":"informative",size:"small",children:e})}function Wme({spec:e,target:t}){const r=t.environmentUrl.replace(/^https?:\/\//,"").replace(/\/$/,"");return c.jsxs("div",{style:{display:"grid",gridTemplateColumns:"auto 1fr",columnGap:T.spacingHorizontalM,rowGap:T.spacingVerticalXS,padding:`${T.spacingVerticalS} ${T.spacingHorizontalM}`,background:T.colorNeutralBackground3,borderRadius:T.borderRadiusMedium},children:[c.jsxs("div",{style:Cp,children:[c.jsx("span",{style:Np,children:"Environment"}),c.jsxs("span",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:8},children:[c.jsx("strong",{children:t.connectionName||r||"(no connection)"}),c.jsx(Q8,{environment:t.environment}),r&&t.connectionName&&c.jsx(Pe,{style:{color:T.colorNeutralForeground3,wordBreak:"break-all"},children:r})]})]}),c.jsxs("div",{style:Cp,children:[c.jsx("span",{style:Np,children:"Operation"}),c.jsx("span",{children:e.operation})]}),e.table&&c.jsxs("div",{style:Cp,children:[c.jsx("span",{style:Np,children:"Table"}),c.jsx("code",{style:{fontFamily:T.fontFamilyMonospace},children:e.table})]}),c.jsxs("div",{style:Cp,children:[c.jsx("span",{style:Np,children:"Scope"}),c.jsx("span",{children:Uie(e.scope)})]})]})}function Ume(e,t,r){const o=Mg(t.environment),n=Vie(e,t.environment,r.productionSafeMode);return WT({title:`Confirm: ${e.operation}`,wide:!0,destructive:e.highImpact||o,confirmLabel:r.verb,typeToConfirm:n?Wie(e):void 0,message:c.jsxs(c.Fragment,{children:[c.jsx(Wme,{spec:e,target:t}),c.jsx("p",{style:{margin:`${T.spacingVerticalM} 0 0`},children:o?"This is a Production environment. The request runs as soon as you confirm, and it changes data there.":e.highImpact?"This request changes data and can't be undone from here.":"This request changes data."})]})})}const e_="Dataverse Request Studio was updated — close and reopen the tool to load the new version.",Gme=[/Failed to fetch dynamically imported module/i,/error loading dynamically imported module/i,/Importing a module script failed/i,/Unable to preload CSS/i,/Loading (CSS )?chunk [\w-]+ failed/i];let t_=!1;function Zme(){typeof window>"u"||window.addEventListener("vite:preloadError",()=>{t_=!0})}function r_(e){if(!e)return!1;const t=e;if(t.name==="ChunkLoadError")return!0;const r=typeof t.message=="string"?t.message:String(e);return Gme.some(o=>o.test(r))?!0:t_&&t.name==="TypeError"}const Kme=m.lazy(()=>cr(()=>import("./ImportCurlDialog-BiURYtjH.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>({default:e.ImportCurlDialog}),e=>{const t=r_(e)?e_:`The cURL import couldn't load: ${e instanceof Error?e.message:String(e)}`;return{default:r=>c.jsx(Xme,{...r,message:t})}}));function Xme({onClose:e,message:t}){return m.useEffect(()=>{Zl(t,{intent:"error"}),e()},[t,e]),null}function Yme({themeMode:e,setThemeMode:t,activeId:r,setActiveId:o}){const n=_t(),a=Qa(),i=a.embedded,l=a.connectionName||a.environmentUrl.replace(/^https?:\/\//,"").replace(/\/.*$/,""),d=xl(),[f,p]=m.useState(!1),[h,v]=m.useState(!1),[y,x]=ha(),{accessSummary:b}=use();mse(o);const k=pse();return c.jsxs("header",{className:n.header,children:[!i&&c.jsxs(c.Fragment,{children:[c.jsxs("span",{className:n.brand,style:{flexShrink:0},children:[c.jsx("span",{className:n.brandDot}),c.jsx("span",{style:{whiteSpace:"nowrap"},children:"Dataverse Request Studio"})]}),c.jsx("span",{style:{color:T.colorNeutralForeground3,fontSize:12,flexShrink:0},children:"·"})]}),c.jsx("div",{style:{display:"flex",minWidth:0,overflow:"hidden",flexShrink:1},children:c.jsxs(Gz,{size:"small",children:[!i&&c.jsxs(c.Fragment,{children:[c.jsx(G1,{children:c.jsx(Kz,{children:d.name})}),c.jsx(Zz,{})]}),c.jsx(G1,{children:c.jsx(Xoe,{activeId:r,onPick:o})})]})}),c.jsx(lse,{accessSummary:b}),c.jsx("div",{className:n.spacer}),i&&a.connected&&(l||a.environment)&&c.jsx(st,{content:`Requests go to ${a.connectionName||"this connection"}${a.environmentUrl?` (${a.environmentUrl.replace(/\/$/,"")})`:""}`,relationship:"description",children:c.jsxs("span",{"data-testid":"environment-indicator",style:{display:"inline-flex",alignItems:"center",gap:6,flexShrink:1,minWidth:0,maxWidth:260,marginRight:8},children:[l&&c.jsx("span",{style:{fontSize:T.fontSizeBase200,color:T.colorNeutralForeground2,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:l}),c.jsx(Q8,{environment:a.environment})]})}),!i&&c.jsxs(c.Fragment,{children:[c.jsx(ct,{appearance:"ghost",icon:c.jsx(hC,{}),style:{flexShrink:0,maxWidth:280,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:d.host}),c.jsx(pm,{}),c.jsx(st,{content:e==="dark"?"Switch to light":"Switch to dark",relationship:"label",children:c.jsx(pe,{icon:e==="dark"?c.jsx(GI,{}):c.jsx(UI,{}),appearance:"subtle",onClick:()=>t(e==="dark"?"light":"dark")})})]}),k&&c.jsxs(c.Fragment,{children:[c.jsx($me,{modeId:k.modeId,onLoad:k.onLoadSaved,currentId:k.lastSavedId,dirty:k.dirty}),c.jsx(Lme,{state:k.state,modeId:k.modeId,dirty:k.dirty,lastSavedId:k.lastSavedId,onSaved:k.onSaved})]}),!i&&c.jsx(st,{content:"Share",relationship:"label",children:c.jsx(pe,{icon:c.jsx($I,{}),appearance:"subtle"})}),c.jsxs(zi,{children:[c.jsx(qa,{disableButtonEnhancement:!0,children:c.jsx(pe,{icon:c.jsx(II,{}),appearance:"subtle","aria-label":"More actions",title:"More actions"})}),c.jsx(Ti,{children:c.jsxs(Ma,{children:[c.jsx(un,{icon:c.jsx(fA,{}),onClick:()=>v(!0),children:"Import cURL command…"}),c.jsx(un,{icon:c.jsx(gy,{}),onClick:()=>p(!0),children:"Settings"})]})})]}),h&&c.jsx(m.Suspense,{fallback:null,children:c.jsx(Kme,{open:!0,onClose:()=>v(!1)})}),c.jsx(Qie,{open:f,onClose:()=>p(!1),settings:y,onSettingsChange:x})]})}const Jme=m.lazy(()=>cr(()=>import("./BulkDeleteMode-Cqpb47QI.js"),__vite__mapDeps([3,4,2]),import.meta.url).then(e=>({default:e.BulkDeleteMode})));function Qme(e){return c.jsx(m.Suspense,{fallback:c.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(jr,{size:"medium",label:"Loading…"})}),children:c.jsx(Jme,{...e})})}function ege({type:e,urlPreview:t}){const r=_t(),o=Pn(e.group);return c.jsxs("div",{className:r.modeCard,style:{borderLeftColor:o},children:[c.jsxs("div",{className:r.modeCardType,style:{color:o},children:[e.group," · ",e.altMethod?`${e.method}/${e.altMethod}`:e.method]}),c.jsx("div",{className:r.modeCardName,children:e.name}),c.jsx(st,{content:t,relationship:"description",positioning:"below",children:c.jsx("div",{className:r.modeCardUrl,children:t})})]})}function $3({children:e,meta:t,id:r}){const o=_t();return c.jsxs("div",{className:o.sectionH,role:"heading","aria-level":2,children:[c.jsx("span",{id:r,children:e}),t&&c.jsxs("span",{style:{fontWeight:500,textTransform:"none",letterSpacing:0,fontSize:11},children:["· ",t]})]})}function tge(e){const t=_t(),{icon:r,iconFilled:o,label:n,code:a,selected:i,dirty:l,badge:d,badgeAppearance:f="tint",badgeColor:p="brand",onSelect:h,depth:v=0,group:y="read"}=e,x=i&&o?o:r,b=v===1?t.ctiIndent1:v===2?t.ctiIndent2:v===3?t.ctiIndent3:void 0;return c.jsxs("button",{type:"button","aria-current":i?"true":void 0,className:F(t.cti,b,i&&t.ctiSelected),onClick:h,children:[i&&c.jsx("span",{className:t.ctiSelectedRule,style:{background:Pn(y)},"aria-hidden":!0}),c.jsx("span",{"aria-hidden":!0}),c.jsx(x,{className:t.ctiIcon,style:{color:i?Pn(y):void 0,opacity:i?1:.85}}),c.jsx("span",{className:F(t.ctiLabel,a&&t.ctiCodeLabel),children:n}),c.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:6,justifySelf:"end"},children:[l&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:t.ctiDirty,"aria-hidden":!0,children:"•"}),c.jsx("span",{className:t.srOnly,children:"(modified)"})]}),d!=null&&d!==!1&&(d==="✓"?c.jsx(ct,{size:"small",appearance:"tint",color:"success",icon:c.jsx(Cd,{}),role:"img","aria-label":"Set"}):c.jsx(ct,{size:"small",appearance:f,color:p,className:t.ctiBadge,title:typeof d=="string"?d:void 0,children:d}))]})]})}function o_({children:e,labelledBy:t}){const r=_t();return c.jsx("ul",{"aria-labelledby":t,className:r.ctiList,children:e})}function Ix(e){const t=Math.floor((Date.now()-e)/1e3);if(t<60)return"just now";const r=Math.floor(t/60);if(r<60)return`${r} min ago`;const o=Math.floor(r/60);return o<24?`${o} hr ago`:`${Math.floor(o/24)}d ago`}const rge=new Set(["retrieve-multiple","retrieve-single","retrieve-nextlink","predefined-query"]);function Ax(e){if(e.summary)return` · ${e.summary}`;if(!rge.has(e.modeId))return"";const t=e.rowCount;return t===void 0?" · — rows":` · ${t.toLocaleString()} ${t===1?"row":"rows"}`}function n_(e){return`${e.method} ${Ix(e.ts)} · ${e.status||"error"}${Ax(e)} ${e.url}, restore run`}function oge(e,t){const r=t.toLowerCase().split(/\s+/).filter(Boolean);return r.length===0?[...e]:e.filter(o=>{const n=`${o.method} ${o.url} ${o.status||"error"} ${o.summary??""}`.toLowerCase();return r.every(a=>n.includes(a))})}function nge({open:e,onOpenChange:t,modeName:r,runs:o,onRestore:n}){const a=_t(),[{keepRunHistory:i}]=ha(),[l,d]=m.useState(""),f=m.useMemo(()=>oge(o,l),[o,l]),p=v=>!!n&&v.snapshot!==void 0,h=v=>{n?.(v),t(!1)};return c.jsx(Va,{open:e,onOpenChange:(v,y)=>t(y.open),children:c.jsx(Is,{style:{maxWidth:720},children:c.jsxs(Fs,{children:[c.jsxs(uc,{children:[r," history"]}),c.jsxs(dc,{style:{display:"flex",flexDirection:"column",gap:10},children:[c.jsx(Pe,{style:{color:T.colorNeutralForeground3},children:i?"Runs against this environment, kept across restarts: the request, status, row count and time. Response bodies, credentials and impersonation headers are never kept. Turn it off or clear it in Settings.":"Request history is off, so these are this session’s runs only. Turn it on in Settings."}),c.jsx(Ht,{"aria-label":"Search runs",placeholder:"Search by URL, status or method…",contentBefore:c.jsx(Ol,{}),value:l,onChange:(v,y)=>d(y.value)}),c.jsxs("div",{role:"list","aria-label":`${r} runs`,style:{maxHeight:420,overflow:"auto",display:"flex",flexDirection:"column"},children:[f.length===0&&c.jsx(Pe,{style:{padding:12,color:T.colorNeutralForeground3},children:o.length===0?"No runs yet.":"No runs match the search."}),f.map(v=>c.jsxs("div",{role:"listitem",className:p(v)?a.recentRow:a.recentRowStatic,tabIndex:p(v)?0:void 0,"aria-label":p(v)?n_(v):void 0,title:`${new Date(v.ts).toLocaleString()} · ${v.url}`+(p(v)?"":" · This run can’t be restored."),onClick:()=>p(v)&&h(v),onKeyDown:y=>{p(v)&&(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),h(v))},children:[c.jsx(Ng,{method:v.method,size:"sm"})," ",c.jsxs("span",{style:{flexShrink:0,minWidth:150},children:[Ix(v.ts)," · ",v.status||"error",Ax(v)]}),c.jsx("span",{style:{flexGrow:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontFamily:T.fontFamilyMonospace,fontSize:11,color:T.colorNeutralForeground3},children:v.url})]},v.id))]})]}),c.jsx(cc,{children:c.jsx(pe,{appearance:"secondary",onClick:()=>t(!1),children:"Close"})})]})})})}function a_({type:e,urlPreview:t,sections:r,activeNode:o,onSelect:n,recents:a,onRecentClick:i}){const l=_t(),d=m.useId(),f=x=>!!i&&x.snapshot!==void 0,p=x=>{i?.(x),x.impersonationCleared&&Zl("This run impersonated another user. History doesn’t keep the caller id, so the restored request runs as you: set MSCRMCallerID or CallerObjectId again in Headers to impersonate.",{title:"Impersonation not restored"})},h=Lie(e.id,a),[v,y]=m.useState(!1);return c.jsxs("aside",{className:l.sidebar,children:[c.jsx(ege,{type:e,urlPreview:t}),c.jsxs("div",{className:l.sidebarScroll,children:[c.jsx("nav",{"aria-label":"Request structure",children:r.map(x=>c.jsxs("div",{children:[c.jsx($3,{id:`${d}-${x.id}`,meta:x.meta,children:x.label}),c.jsx(o_,{labelledBy:`${d}-${x.id}`,children:x.items.map(b=>c.jsx(i_,{item:b,activeNode:o,onSelect:n,group:e.group,depth:0},b.id))})]},x.id))}),a.length>0&&c.jsxs(c.Fragment,{children:[c.jsx($3,{meta:h.length>a.length?`${a.length} of ${h.length}`:`${a.length} run${a.length===1?"":"s"}`,children:"Recent runs"}),c.jsxs("div",{style:{padding:"4px 0"},children:[a.map(x=>c.jsxs("div",{className:f(x)?l.recentRow:l.recentRowStatic,role:f(x)?"button":void 0,tabIndex:f(x)?0:void 0,title:f(x)?`Restore this run · ${x.url}`:x.url,"aria-label":f(x)?n_(x):void 0,onClick:()=>f(x)&&p(x),onKeyDown:b=>{f(x)&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),p(x))},children:[c.jsx(Ng,{method:x.method,size:"sm"})," ",c.jsxs("span",{style:{flexGrow:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[Ix(x.ts)," · ",x.status||"error",Ax(x)]})]},x.id)),c.jsx(pe,{appearance:"subtle",size:"small",icon:c.jsx(oA,{}),onClick:()=>y(!0),style:{marginTop:2},children:h.length>a.length?`Show all ${h.length} runs`:"Search runs"})]})]})]}),c.jsx(nge,{open:v,onOpenChange:y,modeName:e.name,runs:h,onRestore:i?p:void 0})]})}function i_({item:e,activeNode:t,onSelect:r,group:o,depth:n}){return c.jsxs("li",{children:[c.jsx(tge,{icon:e.icon,iconFilled:e.iconFilled,label:e.label,code:e.code,selected:t===e.id,dirty:e.dirty,badge:e.badge,badgeAppearance:e.badgeAppearance,badgeColor:e.badgeColor,onSelect:()=>r(e.id),group:o,depth:n}),!!e.children?.length&&c.jsx(o_,{children:e.children.map(a=>c.jsx(i_,{item:a,activeNode:t,onSelect:r,group:o,depth:Math.min(3,n+1)},a.id))})]})}class s_ extends m.Component{constructor(){super(...arguments);K(this,"state",{error:null,componentStack:null,attempt:0});K(this,"reload",()=>{this.props.onReload?.(),this.setState(r=>({error:null,componentStack:null,attempt:r.attempt+1}))})}static getDerivedStateFromError(r){return{error:r instanceof Error?r:new Error(String(r))}}componentDidCatch(r,o){this.setState({componentStack:o.componentStack??null}),console.error(`[DRS] ${this.props.scope} "${this.props.label}" crashed`,r,o)}componentDidUpdate(r){this.state.error&&!Object.is(r.resetKey,this.props.resetKey)&&this.setState({error:null,componentStack:null})}render(){const{error:r,componentStack:o,attempt:n}=this.state;return r?c.jsx(ige,{scope:this.props.scope,label:this.props.label,error:r,componentStack:o,onReload:this.reload}):c.jsx(m.Fragment,{children:this.props.children},n)}}function age(e,t,r,o){return[`Dataverse Request Studio — ${e==="mode"?"mode":"pane"} error`,`Where: ${t}`,`When: ${new Date().toISOString()}`,`User agent: ${typeof navigator<"u"?navigator.userAgent:"n/a"}`,"",`${r.name}: ${r.message}`,"","Stack:",r.stack??"(none)","","Component stack:",o?.trim()||"(none)"].join(`
35
+ `)}function ige({scope:e,label:t,error:r,componentStack:o,onReload:n}){const[a,i]=m.useState("idle"),l=async()=>{try{await aT(age(e,t,r,o)),i("copied")}catch{i("failed")}},d=e==="mode",f=r_(r);return c.jsx("div",{role:"alert",style:{padding:d?"24px":0,minHeight:0,minWidth:0,overflow:"auto",backgroundColor:d?T.colorNeutralBackground2:void 0},children:c.jsxs(Ue,{layout:"multiline",intent:"error",style:{maxWidth:820},children:[c.jsxs(Ge,{children:[c.jsx(Lt,{children:f?`The ${t} ${d?"mode":"pane"} couldn't load`:d?`The ${t} mode hit an error`:`The ${t} pane hit an error`}),c.jsx("div",{children:f?e_:d?"The rest of DRS still works — reload this mode or pick another request type from the header.":"The rest of this mode still works — reload this pane or switch to another tab."}),c.jsxs("code",{style:{display:"block",marginTop:8,whiteSpace:"pre-wrap",wordBreak:"break-word",fontFamily:T.fontFamilyMonospace,fontSize:T.fontSizeBase200},children:[r.name,": ",r.message]}),a==="failed"&&c.jsx("div",{style:{marginTop:6,color:T.colorPaletteRedForeground1},children:"Couldn't copy to the clipboard. The details are also in the developer console."})]}),c.jsxs(In,{children:[!f&&c.jsx(pe,{appearance:"primary",icon:c.jsx(cg,{}),onClick:n,children:d?"Reload this mode":"Reload this pane"}),c.jsx(pe,{icon:a==="copied"?c.jsx(WA,{}):c.jsx(ac,{}),onClick:l,children:a==="copied"?"Copied":"Copy error details"})]})]})})}const Ox=m.createContext(null);function sge({children:e}){const t=m.useRef(null),r=m.useMemo(()=>({register:o=>(t.current=o,()=>{t.current===o&&(t.current=null)}),showBuilder:()=>t.current?.()}),[]);return c.jsx(Ox.Provider,{value:r,children:e})}function lge(e){const t=m.useContext(Ox),r=m.useRef(e);r.current=e,m.useEffect(()=>t?.register(()=>r.current()),[t])}const cge="data-builder-body",Yv=['input:not([disabled]):not([type="hidden"])',"textarea:not([disabled])","select:not([disabled])",'[role="combobox"]:not([aria-disabled="true"])','[contenteditable="true"]'].join(", "),uge="data-focus-node",dge=30,fge='button:not([disabled]), [tabindex]:not([tabindex="-1"])';let H3=0;function pge(e,t=document){const r=++H3,o=t.activeElement;let n=0;const a=()=>{if(r!==H3)return;const i=t.activeElement;if(i!==o&&i instanceof HTMLElement&&i.matches(Yv))return;const l=t.querySelector(`[${cge}]`),d=e?l?.querySelector(`[${uge}="${CSS.escape(e)}"]`):null,f=d?.querySelector(Yv);if(n++<2||d&&!f&&n<dge){requestAnimationFrame(a);return}if(!l)return;const p=f??d?.querySelector(fge)??l.querySelector(Yv)??mge(l);p.focus(),p.scrollIntoView?.({block:"nearest"})};requestAnimationFrame(a)}function mge(e){return e.hasAttribute("tabindex")||(e.setAttribute("tabindex","-1"),e.addEventListener("blur",()=>e.removeAttribute("tabindex"),{once:!0})),e}function gge(e){const t=m.useContext(Ox);if(e)return r=>{t?.showBuilder(),e(r),pge(r)}}const hge={builder:"Builder",code:"Code",results:"Results"};function l_({tab:e,onTabChange:t,resultCount:r,children:o}){const n=_t();return lge(()=>t("builder")),c.jsxs("main",{className:n.main,children:[c.jsx("div",{className:n.mainTabsBar,children:c.jsxs(fm,{selectedValue:e,onTabSelect:(a,i)=>t(i.value),children:[c.jsx(oa,{value:"builder",icon:c.jsx(z1,{}),children:"Builder"}),c.jsx(oa,{value:"code",icon:c.jsx(S1,{}),children:"Code"}),c.jsx(oa,{value:"results",icon:c.jsx(my,{}),children:c.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:["Results",r!=null&&c.jsx(ct,{size:"small",appearance:"tint",children:r})]})})]})}),c.jsx("div",{className:n.mainBody,"data-builder-body":"",children:c.jsx(s_,{scope:"pane",label:hge[e],resetKey:e,children:o})})]})}function c_(e){switch(e){case"error":return c.jsx(JA,{style:{color:T.colorPaletteRedForeground1}});case"warning":return c.jsx(kC,{style:{color:T.colorPaletteDarkOrangeForeground1}});case"info":return c.jsx(KI,{style:{color:T.colorBrandForeground1}})}}function vge(e){return e==="error"?"danger":e==="warning"?"warning":"informative"}function bge({advisories:e,onFocusNode:t}){const r=_t(),[o,n]=m.useState(!1),{errors:a,warnings:i,infos:l,total:d}=xfe(e);if(d===0)return null;const f=a.length>0?"error":i.length>0?"warning":"info",p=[];a.length&&p.push(`${a.length} blocker${a.length===1?"":"s"}`),i.length&&p.push(`${i.length} warning${i.length===1?"":"s"}`),l.length&&p.push(`${l.length} info`);const h=p.join(" · ");return c.jsxs(Gi,{open:o,onOpenChange:(v,y)=>n(y.open),positioning:"above-end",children:[c.jsx(Ya,{disableButtonEnhancement:!0,children:c.jsx(st,{content:`Advisories — ${h}`,relationship:"label",children:c.jsxs("button",{type:"button",className:F(r.advisoryChip,o&&r.advisoryChipOpen),onClick:()=>n(v=>!v),"aria-label":`Advisories — ${h}`,children:[c_(f),c.jsx(ct,{size:"small",appearance:"tint",color:vge(f),children:d}),c.jsx(ug,{style:{color:T.colorNeutralForeground3}})]})})}),c.jsxs(Ui,{className:r.advisorySurface,children:[c.jsxs("div",{className:r.advisoryHeader,children:[c.jsx("strong",{style:{fontSize:13},children:"Advisories"}),c.jsx("span",{style:{fontSize:11,color:T.colorNeutralForeground3,marginLeft:"auto"},children:h})]}),a.length>0&&c.jsx(Jv,{title:"Blockers",list:a,onFocusNode:t,setOpen:n}),i.length>0&&c.jsx(Jv,{title:"Warnings",list:i,onFocusNode:t,setOpen:n}),l.length>0&&c.jsx(Jv,{title:"Notes",list:l,onFocusNode:t,setOpen:n})]})]})}function Jv({title:e,list:t,onFocusNode:r,setOpen:o}){const n=_t();return c.jsxs("div",{className:n.advisorySection,children:[c.jsxs("div",{className:n.advisorySectionHead,children:[e," · ",t.length]}),t.map(a=>c.jsxs("div",{className:n.advisoryRow,children:[c.jsx("span",{className:n.advisoryRowIcon,children:c_(a.severity)}),c.jsxs("div",{style:{flex:1,minWidth:0},children:[c.jsx("div",{className:n.advisoryTitle,children:a.title}),a.body&&c.jsx("div",{className:n.advisoryBody,children:a.body}),a.learnMoreUrl&&c.jsx("a",{href:a.learnMoreUrl,target:"_blank",rel:"noopener noreferrer",className:n.advisoryLink,children:"Learn more ↗"})]}),a.focusNode&&r&&c.jsx(st,{content:"Open the affected pane",relationship:"label",children:c.jsx(pe,{appearance:"subtle",size:"small",icon:c.jsx(wC,{}),onClick:()=>{r(a.focusNode),o(!1)}})})]},a.id))]})}let Sl=null,Rb;function yge(){if(Sl&&document.body.contains(Sl))return{el:Sl,fresh:!1};const e=document.createElement("div");return e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),e.setAttribute("data-drs-announcer",""),Object.assign(e.style,{position:"absolute",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",overflow:"hidden",clip:"rect(0 0 0 0)",whiteSpace:"nowrap"}),document.body.appendChild(e),Sl=e,{el:e,fresh:!0}}function u_(e){if(typeof document>"u")return;const{el:t,fresh:r}=yge();t.textContent="",window.clearTimeout(Rb),Rb=window.setTimeout(()=>t.textContent=e,r?250:50)}function V3(){window.clearTimeout(Rb),Sl&&(Sl.textContent="")}function xge(){m.useEffect(()=>(V3(),V3),[])}function wge(e){const t=e.status?`${e.status}${e.statusText?` ${e.statusText}`:""}`:"no HTTP status";if(!e.ok){const n=e.body?.error;return`Request failed, ${t}.${n?.message?` ${n.message}`:""}`}const r=e.body,o=Array.isArray(r?.value)?`, ${r.value.length} row${r.value.length===1?"":"s"}`:"";return`Request completed, ${t}${o}, ${e.ms} ms.`}const W3=new WeakSet;function kge(e){m.useEffect(()=>{!e||W3.has(e)||(W3.add(e),u_(wge(e)))},[e])}function Sge({url:e,host:t}){const r=e.startsWith(`https://${t}`)?e.slice(`https://${t}`.length):e;let o=r,n="";const a=r.indexOf("?");a>=0&&(o=r.slice(0,a),n=r.slice(a+1));const i=n?n.split("&"):[],l=T.colorNeutralForeground3,d=T.colorNeutralForeground2,f="var(--color-request-relate-text)",p=T.colorBrandForeground1,h=T.colorNeutralForeground4;return c.jsxs(c.Fragment,{children:[c.jsx("span",{style:{color:l},children:`https://${t}`}),c.jsx("span",{style:{color:d},children:o}),i.length>0&&c.jsx("span",{style:{color:h},children:"?"}),i.map((v,y)=>{const x=v.indexOf("="),b=x>=0?v.slice(0,x):v,k=x>=0?v.slice(x+1):"";return c.jsxs("span",{children:[y>0&&c.jsx("span",{style:{color:h},children:"&"}),c.jsx("span",{style:{color:f,fontWeight:600},children:b}),x>=0&&c.jsx("span",{style:{color:h},children:"="}),c.jsx("span",{style:{color:p},children:k})]},y)})]})}function d_({method:e,url:t,disabledReason:r,executeVerb:o,executeIcon:n,onExecute:a,loading:i,advisories:l,onAdvisoryFocus:d,bytes:f,writeConfirm:p}){const h=n??QI,v=_t(),y=gge(d),x=`https://${rt.host}${t}`,[{productionSafeMode:b}]=ha(),k=m.useRef(!1),S=m.useRef({loading:i,disabledReason:r,writeConfirm:p,onExecute:a,productionSafeMode:b,executeVerb:o});S.current={loading:i,disabledReason:r,writeConfirm:p,onExecute:a,productionSafeMode:b,executeVerb:o};const N=m.useRef(!0);m.useEffect(()=>(N.current=!0,()=>{N.current=!1}),[]);const B=m.useCallback(()=>{const C=S.current;if(k.current||C.loading||C.disabledReason)return;k.current=!0;const z=Qu(),R=C.writeConfirm,E=Hie(R,z.environment,C.productionSafeMode);Promise.resolve(E&&R?Ume(R,z,{productionSafeMode:C.productionSafeMode,verb:C.executeVerb}):!0).then(D=>{if(!D)return;if(!E)return C.onExecute();const I=S.current;if(!(!N.current||I.loading||I.disabledReason)){if(Qu().environmentUrl!==z.environmentUrl){Zl(`The connection changed while the confirmation was open. ${I.executeVerb} again to confirm the new target.`,{title:"Not sent"});return}return I.onExecute()}}).catch(D=>{console.error("Execute failed",D)}).finally(()=>{k.current=!1})},[]);return m.useEffect(()=>{const C=z=>{if((z.metaKey||z.ctrlKey)&&z.key==="Enter"){if(z.repeat)return;B()}};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[B]),m.useEffect(()=>{i&&u_("Running request…")},[i]),c.jsxs("footer",{className:v.footer,children:[c.jsx(Ng,{method:e}),c.jsx(st,{content:x,relationship:"description",positioning:"above",children:c.jsx("span",{className:v.urlText,title:x,children:c.jsx(Sge,{url:t,host:rt.host})})}),c.jsx(st,{content:"Copy URL",relationship:"label",children:c.jsx(pe,{icon:c.jsx(ac,{}),appearance:"subtle",size:"small",onClick:()=>{la(x,"the URL")}})}),c.jsx(st,{content:"Open in new tab",relationship:"label",children:c.jsx(pe,{icon:c.jsx(wC,{}),appearance:"subtle",size:"small",onClick:()=>window.open(x,"_blank","noopener")})}),c.jsxs(Pe,{style:{fontSize:11,color:T.colorNeutralForeground3,fontFamily:T.fontFamilyMonospace},children:[((f??t.length)/1024).toFixed(1)," KB"]}),l&&l.length>0&&c.jsx(bge,{advisories:l,onFocusNode:y}),c.jsx(st,{content:r??`${o} (Ctrl+Enter)`,relationship:r?"description":"label",children:c.jsx(pe,{icon:i?c.jsx(jr,{size:"tiny"}):c.jsx(h,{}),appearance:"primary",size:"medium",onClick:B,disabled:!!r||i,children:o})})]})}function Bge(e,t,r){function o(n,a){for(const i of n){if(i.id===t)return a;if(i.nestedExpand&&i.nestedExpand.length>0){const d=fe(a)?.navigationProperties.find(f=>f.name===i.nav);if(d){const f=o(i.nestedExpand,d.targetEntity);if(f)return f}}}}return o(e,r)}function jge(e,t){const o=fe(e)?.navigationProperties.find(n=>n.name===t.nav);return o?fe(o.targetEntity):void 0}function Db(e,t){const o=fe(e)?.navigationProperties.find(n=>n.name===t.nav);return o?.cardinality==="OneToMany"||o?.cardinality==="ManyToMany"}function f_(e,t,r){return e.map(o=>o.id===t?{...o,...r}:o.nestedExpand?{...o,nestedExpand:f_(o.nestedExpand,t,r)}:o)}function p_(e,t){return e.filter(r=>r.id!==t).map(r=>r.nestedExpand?{...r,nestedExpand:p_(r.nestedExpand,t)}:r)}function m_(e,t,r){const o=_7(r);return t===null?[...e,o]:e.map(n=>n.id===t?{...n,nestedExpand:[...n.nestedExpand??[],o]}:n.nestedExpand?{...n,nestedExpand:m_(n.nestedExpand,t,r)}:n)}const Si=15;function Cge(e,t,r){if(r.parentCardinality==="ManyToMany")return[];const o=fe(e);if(!o)return[];const n=new Set(t.map(a=>a.nav));return o.navigationProperties.filter(a=>!(n.has(a.name)||!Rg(a,r.advancedFindOnly??!1)||r.parentCardinality==="OneToMany"&&a.cardinality==="ManyToMany"))}function Lx(e){let t=0;for(const r of e)t+=1,r.nestedExpand&&(t+=Lx(r.nestedExpand));return t}function g_(e){let t=0;for(const r of e){const o=r.nestedExpand&&r.nestedExpand.length>0?1+g_(r.nestedExpand):1;o>t&&(t=o)}return t}function Jg(e){for(const t of e)if(t.nestedExpand&&t.nestedExpand.length>0||t.nestedExpand&&Jg(t.nestedExpand))return!0;return!1}function h_(e,t){return Jg(e)?v_(e,t):!1}function v_(e,t){const r=fe(t);if(!r)return!1;for(const o of e){const n=r.navigationProperties.find(a=>a.name===o.nav);if(n&&(n.cardinality==="OneToMany"||n.cardinality==="ManyToMany"||o.nestedExpand&&v_(o.nestedExpand,n.targetEntity)))return!0}return!1}function b_(e,t){const r=fe(t);if(!r)return!1;for(const o of e){const n=r.navigationProperties.find(i=>i.name===o.nav);if(!n)continue;const a=o.nestedExpand??[];if(a.length!==0&&(n.cardinality==="OneToMany"||n.cardinality==="ManyToMany"||b_(a,n.targetEntity)))return!0}return!1}function Nge(e){const t=[];if(!e.table)return t;const r=fe(e.table);if(!r)return t;const o=e.apply?.enabled?e.apply.prefilter:e.filter;if(o){Eb(o,r,void 0,t);const i=_i(o);i>500&&t.push(Tt.err("filter-cond-cap","validation",`Filter has ${i} conditions, exceeds the 500 hard cap.`,"Dataverse rejects queries with more than 500 total filter conditions. Compress OR-equality groups with `In(...)` to bring the count down.","filter","https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/query/filter-rows#condition-limits"))}const n=[...o?Cm(o,r):[],...y_(e.expand??[],r)];for(const i of n)t.push(Tt.err(`filter-literal-${i.nodeId}`,"validation",`\`${i.col}\` needs ${i.expected}, not ${JSON.stringify(i.value.length>40?`${i.value.slice(0,40)}…`:i.value)}.`,"The filter value doesn't match the column's type, so Dataverse would reject the query. Fix the value in the filter.","filter","https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/query/filter-rows"));if([...o?ad(o):[],...lx(e.expand??[])].forEach((i,l)=>t.push(Tt.err(`query-name-${l}`,"validation",i,"Only column and relationship names can go here: letters, digits and underscores, with `/` between the steps of a path.","filter"))),e.expand&&e.expand.length>0){const i=Lx(e.expand);i>Si&&t.push(Tt.warn("expand-cap","validation",`${i} expand options exceeds the documented ${Si} cap.`,`Microsoft documents a ${Si}-expand limit per query. Execute to see if your org actually enforces it.`,"expand","https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/query/join-tables")),e.expand.some(d=>{const f=r.navigationProperties.find(p=>p.name===d.nav);return f&&f.cardinality!=="ManyToOne"&&(!d.nestedExpand||d.nestedExpand.length===0)})&&t.push(Tt.info("expand-flat-collection","validation","Flat collection expand can return up to 5,000 rows per parent.",c.jsxs(c.Fragment,{children:["Collections without a nested ",c.jsx("code",{children:"$expand"})," aren't paginated. Add a nested"," ",c.jsx("code",{children:"$expand"})," or use ",c.jsx("code",{children:"Prefer: odata.maxpagesize"})," to control the size."]}),"expand","https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/query/join-tables#single-expand-on-collection-valued-navigation-properties"))}if(e.apply?.enabled){const i=e.apply;e.orderby&&e.orderby.length>0&&t.push(Tt.err("apply-orderby-conflict","validation","`$orderby` on aggregate output is not supported.",c.jsxs(c.Fragment,{children:["Dataverse rejects ",c.jsx("code",{children:"$orderby"})," on the alias columns produced by"," ",c.jsx("code",{children:"$apply"})," with"," ",c.jsx("em",{children:'"The query node SingleValueOpenPropertyAccess is not supported."'})," Remove the"," ",c.jsx("code",{children:"$orderby"})," entries, or disable ",c.jsx("code",{children:"$apply"}),"."]}),"orderby","https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/query/aggregate-data"));for(const d of i.groupby){const f=d.split("/"),p=f[f.length-1];if(f.length===1){const h=r.columns.find(v=>v.logicalName===p);h?.attributeType==="DateTime"&&t.push(Tt.err(`apply-groupby-datetime-${d}`,"validation",`\`groupby\` on DateTime column \`${d}\` is not supported.`,"Dataverse does not support grouping by date/time values via OData $apply.","apply","https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/query/aggregate-data")),(h?.attributeType==="Lookup"||h?.attributeType==="Customer"||h?.attributeType==="Owner")&&t.push(Tt.err(`apply-groupby-lookup-${d}`,"validation",`\`groupby\` on bare lookup \`${d}\` is rejected.`,c.jsxs(c.Fragment,{children:["Dataverse rejects both ",c.jsx("code",{children:d})," and ",c.jsxs("code",{children:["_",d,"_value"]})," as group-by columns. Drill into the lookup and pick a scalar (e.g."," ",c.jsxs("code",{children:[d,"/<related-attr>"]}),")."]}),"apply","https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/query/aggregate-data")),p.startsWith("_")&&p.endsWith("_value")&&t.push(Tt.err(`apply-groupby-value-${d}`,"validation",`\`groupby\` on \`${d}\` (_value form) is rejected.`,"Use the nav-path form (e.g. `primarycontactid/fullname`) — the `_<attr>_value` form is rejected by Dataverse for groupby.","apply"))}}const l=new Set;for(const d of i.aggregates){if(!d.alias.trim()){t.push(Tt.err(`apply-agg-empty-alias-${Math.random().toString(36).slice(2)}`,"validation","Aggregate is missing an alias.","Every aggregate needs a non-empty alias for the output column.","apply"));continue}l.has(d.alias)&&t.push(Tt.err(`apply-agg-dup-alias-${d.alias}`,"validation",`Duplicate aggregate alias \`${d.alias}\`.`,"Two aggregates can't share the same alias — each `as <alias>` must be unique within the query.","apply")),l.add(d.alias),d.fn!=="$count"&&!d.col.trim()&&t.push(Tt.err(`apply-agg-no-col-${d.alias}`,"validation",`\`${d.fn}\` aggregate \`${d.alias}\` has no source column.`,"Scalar aggregates (sum / average / min / max) need a source column. `$count` is the only column-less aggregate.","apply"))}}return t}function Eb(e,t,r,o){e.negated&&Pb(e)&&o.push(Tt.err(`group-not-with-dvfn-${e.id}`,"validation","Negated group contains a Dataverse function — will be rejected.",c.jsxs(c.Fragment,{children:["Dataverse rejects ",c.jsx("code",{children:"not (…Microsoft.Dynamics.CRM.X(…)…)"})," with HTTP 405 even when wrapped in parens (test G.9). Move the function out of the negated group, or use the explicit ",c.jsx("code",{children:"Not*"})," sibling (e.g. ",c.jsx("code",{children:"NotIn"}),", ",c.jsx("code",{children:"NotBetween"}),","," ",c.jsx("code",{children:"NotEqualUserId"}),", ",c.jsx("code",{children:"DoesNotContainValues"}),") and drop the group-NOT."]}),"filter"));for(const n of e.rules)zge(n,t,r,o)}function Pb(e){for(const t of e.rules)if(t.type==="function"||t.type==="group"&&Pb(t)||t.type==="lambda"&&Pb(t.inner))return!0;return!1}function zge(e,t,r,o){if(e.type==="group"){Eb(e,t,r,o);return}if(e.type!=="rule"){if(e.type==="function"){if(e.negated&&o.push(Tt.err(`fn-negated-${e.op}-${e.id}`,"validation",`\`not\` on \`Microsoft.Dynamics.CRM.${e.op}\` is rejected by Dataverse.`,"Use the explicit `Not*` sibling (NotIn / NotBetween / NotEqualUserId / DoesNotContainValues / …) from the function picker instead.","filter")),e.col&&e.col.includes("/")){const a=r&&e.col.startsWith(r+"/")?e.col.slice(r.length+1):e.col;a.includes("/")&&o.push(Tt.err(`fn-nav-path-${e.op}-${e.id}`,"validation",`Nav-path \`${a}\` in \`PropertyName\` is rejected.`,"Dataverse query functions don't support drilling through related tables in `PropertyName`. Pick a column on the current entity, or remove the function and use a direct comparison.","filter"))}Ln(e.op)?.category==="hierarchy"&&o.push(Tt.info(`fn-hierarchy-${e.op}-${e.id}`,"validation",`\`${e.op}\` needs a hierarchical relationship on \`${t.logicalName}\`.`,c.jsxs(c.Fragment,{children:["Hierarchy functions only work on entities configured with a hierarchical relationship (e.g. ",c.jsx("code",{children:"account.parentaccountid"}),"). If your entity isn\\'t configured, execute will fail with ",c.jsx("code",{children:`0x80047020 "doesn't have a hierarchical relationship"`}),"."]}),"filter"));return}if(e.type==="lambda"){const n=t.navigationProperties.find(i=>i.name===e.nav);if(!n){o.push(Tt.err(`lambda-unknown-nav-${e.id}`,"validation",`Lambda navigates through unknown property \`${e.nav}\`.`,`\`${e.nav}\` isn't a navigation property on \`${t.logicalName}\`. The relationship may have been removed or renamed since this request was saved.`,"filter"));return}if(n.cardinality==="ManyToOne"){o.push(Tt.err(`lambda-on-n1-${e.id}`,"validation",`Lambda \`${e.nav}\` is a single-valued (N:1) navigation property.`,"Lambda operators `any`/`all` only apply to collection-valued (1:N or N:N) navigation properties. Use a direct column comparison or `<nav>/<col>` path filter instead.","filter"));return}if(!e.alias||!e.alias.trim()){o.push(Tt.err(`lambda-no-alias-${e.id}`,"validation","Lambda is missing an alias.","Every `any`/`all` lambda needs a non-empty alias to scope its inner predicate (e.g. `c` in `any(c: c/email ne null)`).","filter"));return}const a=fe(n.targetEntity);if(!a)return;Eb(e.inner,a,e.alias,o);return}}}function y_(e,t){const r=[];for(const o of e){const n=t.navigationProperties.find(i=>i.name===o.nav),a=n?fe(n.targetEntity):void 0;a&&(o.filter&&Cm(o.filter,a,void 0,r),o.nestedExpand&&r.push(...y_(o.nestedExpand,a)))}return r}const x_=m.createContext(null);function Tge({children:e}){const[t]=m.useState(()=>new Map);return c.jsx(x_.Provider,{value:t,children:e})}function w_(e,t,r){const o=m.useContext(x_),n=e&&o?o.get(e):void 0,[a,i]=m.useState(()=>r(n?.[t]));return[a,d=>{i(d),e&&o&&o.set(e,{...o.get(e),[t]:d})}]}const hu=e=>wu(e)??e.trim().toLowerCase();function _ge({table:e,selectedId:t,onPick:r,placeholder:o="Search records by name…",memoryKey:n}){const a=fe(e),[i,l]=w_(n,"mode",d=>d??"search");return c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[c.jsxs(wg,{layout:"horizontal",value:i,onChange:(d,f)=>l(f.value),style:{gap:12},children:[c.jsx(Fa,{value:"search",label:"Search"}),c.jsx(Fa,{value:"guid",label:"By GUID"})]}),i==="search"?c.jsx(Rge,{table:e,tbl:a,selectedId:t,onPick:r,placeholder:o}):c.jsx(Dge,{selectedId:t,onPick:r,memoryKey:n})]})}function Rge({table:e,tbl:t,selectedId:r,onPick:o,placeholder:n}){const[a,i]=m.useState(""),[l,d]=m.useState(!1),{rows:f,loading:p,error:h}=n8(e||null,l?a:""),v=m.useRef(null),y=r?f.find(C=>hu(C.id)===hu(r)):null;m.useEffect(()=>{y?v.current={id:y.id,primary:y.name}:r||(v.current=null)},[y,r]);const x=o8(),[,b]=m.useState(0);m.useEffect(()=>{if(x===0||!r||!t)return;let C=!1;return Zde(t,r).then(z=>{C||z===null||(v.current={id:r,primary:z},b(R=>R+1))}).catch(()=>{}),()=>{C=!0}},[x]),m.useEffect(()=>{r||(i(""),d(!1))},[r]);const S=(v.current&&r&&hu(v.current.id)===hu(r)?v.current.primary:null)??(r?`(${r.slice(0,8)}…)`:""),N=l?a:S,B=()=>{i(""),d(!1),v.current=null,o(null)};return c.jsxs("div",{style:{position:"relative",display:"flex",gap:4},children:[c.jsxs(Ur,{placeholder:n,value:N,selectedOptions:r?[hu(r)]:[],onOptionSelect:(C,z)=>{const R=f.find(E=>E.id===z.optionValue);if(R){const E={id:R.id,primary:R.name};v.current=E,o(E),i(""),d(!1)}},onChange:C=>{const z=C.target.value;i(z),d(!0),!z&&r&&(v.current=null,o(null))},freeform:!0,style:{flex:1},listbox:{style:{maxHeight:360}},children:[p&&c.jsx(at,{value:"__loading",text:"",disabled:!0,children:c.jsxs("span",{style:{display:"flex",alignItems:"center",gap:6,color:T.colorNeutralForeground3},children:[c.jsx(jr,{size:"tiny"})," Searching…"]})}),!p&&h&&c.jsx(at,{value:"__error",text:"",disabled:!0,children:c.jsx("span",{style:{color:T.colorPaletteRedForeground1,fontSize:12},children:h})}),!p&&!h&&f.length===0&&c.jsx(at,{value:"__none",text:"",disabled:!0,children:c.jsx("span",{style:{color:T.colorNeutralForeground3,fontSize:12},children:t?a?`No ${t.displayName} records match "${a}"`:`Type to search ${t.displayName}`:"Pick a table first"})}),!p&&!h&&f.map(C=>c.jsx(at,{value:C.id,text:C.name,children:c.jsx(xg,{size:"small",name:C.name,secondaryText:C.id,avatar:{color:"colorful"}})},C.id))]}),r&&c.jsx(st,{content:"Clear selection",relationship:"label",children:c.jsx(pe,{icon:c.jsx(hy,{}),appearance:"subtle",size:"small",onClick:B,"aria-label":"Clear selected record"})})]})}function Dge({selectedId:e,onPick:t,memoryKey:r}){const[o,n]=w_(r,"raw",f=>f!==void 0&&wu(f)===(e?wu(e)??e:null)?f:e??""),a=m.useRef(e);m.useEffect(()=>{e!==a.current&&(a.current=e,n(e??""))},[e]);const i=m.useMemo(()=>wu(o),[o]),l=!o.trim()||i!==null,d=f=>{n(f);const p=wu(f);p!==a.current&&(a.current=p,t(p?{id:p,primary:""}:null))};return c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[c.jsx(Ht,{value:o,onChange:(f,p)=>d(p.value),placeholder:"00000000-0000-0000-0000-000000000000",contentAfter:o?l?c.jsx(GA,{style:{color:T.colorPaletteGreenForeground1}}):c.jsx(kC,{style:{color:T.colorPaletteRedForeground1}}):null,style:{fontFamily:T.fontFamilyMonospace,fontSize:12}}),o&&!l&&c.jsx(Pe,{style:{color:T.colorPaletteRedForeground1},children:"Not a valid GUID — use the 8-4-4-4-12 form (braces optional) or 32 hex digits. No record is targeted until this is fixed."}),o&&l&&i&&c.jsx(Pe,{style:{color:T.colorNeutralForeground3,fontFamily:T.fontFamilyMonospace},children:i})]})}function k_({sidebar:e,children:t,urlBar:r}){xge();const o=_t();return c.jsx(Tge,{children:c.jsxs(sge,{children:[c.jsxs("div",{className:o.body,children:[e,t]}),r]})})}const U3=e=>e instanceof Error?e.message:String(e),Ege="No active Dataverse connection. Connect to an environment in Power Platform ToolBox, then Retry.";function Hd(){const[e]=ha(),t=Qa(),r=!t.embedded||t.connected,o=t.embedded&&t.handshakeDone&&!t.connected,n=`${r}|${o}|${t.environmentUrl}`,[a,i]=m.useState(0),l=m.useCallback(()=>{o&&one(),i(D=>D+1)},[o]);m.useEffect(()=>ex(l),[l]);const[d,f]=m.useState([]),[p,h]=m.useState(!0),[v,y]=m.useState(null);m.useEffect(()=>{if(o){f([]),h(!1),y(Ege);return}if(!r){h(!0);return}let D=!1;return h(!0),y(null),lr.listEntities().then(I=>{D||f(I)}).catch(I=>{D||y(U3(I))}).finally(()=>{D||h(!1)}),()=>{D=!0}},[n,a]);const x=e.selectedSolutionIds.join("|"),[b,k]=m.useState(null),[S,N]=m.useState(!1),[B,C]=m.useState(null);m.useEffect(()=>{if(e.entityScopeMode==="all"){k(null),C(null),N(!1);return}if(e.selectedSolutionIds.length===0){k([]),C(null),N(!1);return}if(!r){N(!o);return}let D=!1;return N(!0),C(null),_ne(e.selectedSolutionIds).then(I=>{D||k(I)}).catch(I=>{D||C(U3(I))}).finally(()=>{D||N(!1)}),()=>{D=!0}},[e.entityScopeMode,x,n,a]);const z=e.advancedFindOnly,R=m.useMemo(()=>{const D=M=>sae(M,z);if(e.entityScopeMode==="all")return z?d.filter(D):d;if(b===null)return[];const I=new Set(b);return d.filter(M=>I.has(M.logicalName)&&D(M))},[d,b,e.entityScopeMode,z]),E=e.entityScopeMode!=="all"&&e.selectedSolutionIds.length===0;return{entities:R,allEntities:d,allLoading:p,loading:p||S,error:v??B,retry:l,needsSetup:E,scopeMode:e.entityScopeMode}}const Bt={queryFunctions:"https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/reference/queryfunctions",filterRows:"https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/query/filter-rows",aggregateData:"https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/query/aggregate-data",queryOptions:"https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/query-data-web-api",joinTables:"https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/query/join-tables",countRows:"https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/query/count-rows",attrMetadata:"https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/query/select-columns",orderRows:"https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/query/order-rows"};class $x extends Error{constructor(r,o){super(r);K(this,"learnMoreUrl");this.learnMoreUrl=o}}const mt=(e,t)=>({message:e,learnMoreUrl:t}),Lm=(e,t)=>({message:`${e}: ${t.message}`,learnMoreUrl:t.learnMoreUrl}),Pge=new Set(["$select","$filter","$orderby","$top","$skip","$count","$expand","$apply"]),Mge=new Set(["sum","average","min","max","$count"]);async function qge(e,t,r){const o=[],n=[];try{const{entitySet:a,query:i,countOnly:l,countPath:d}=Ige(e);if(!a)return n.push(mt("Could not extract an entity-set name from the URL.",Bt.queryOptions)),{ok:!1,warnings:o,errors:n};if(d)return n.push(mt(`Count only counts a table's rows, so '${d}/$count' can't be loaded. Count the related table with a $filter on its lookup instead.`,Bt.countRows)),{ok:!1,warnings:o,errors:n};const f=t(a)??"";if(!f)return n.push(mt(`Entity set '${a}' is not a known entity in this environment.`,Bt.queryOptions)),{ok:!1,warnings:o,errors:n};const p=fe(f),h=Oge(i);"$skiptoken"in h&&(delete h.$skiptoken,o.push(mt("Dropped `$skiptoken` — it is the paging cursor from an @odata.nextLink. The builder loads the query itself (first page); to follow this exact page, use Retrieve NextLink.",Bt.queryOptions))),l&&"$filter"in h&&o.push(mt("Dataverse doesn't accept $filter on /$count, so Count only sends this $filter with $count=true and shows @odata.count.",Bt.countRows));for(const C of Object.keys(h))Pge.has(C)||n.push(mt(`Unknown query option \`${C}\` — not part of DRS's supported set.`,Bt.queryOptions));if(n.length)return{ok:!1,warnings:o,errors:n};const v=h.$top?__(h.$top):null,y=h.$count==="true",x=h.$select?B_(h.$select,p):[],b=h.$orderby?j_(h.$orderby,p):[];let k=bd();if(h.$filter){const C=Vx(h.$filter,p);k=C.group,o.push(...C.warnings),n.push(...C.errors)}let S=[];if(h.$expand){const C=z_(h.$expand,p);S=C.items,o.push(...C.warnings),n.push(...C.errors)}let N;if(h.$apply){const C=rhe(h.$apply,p);N=C.spec,o.push(...C.warnings),n.push(...C.errors)}if(n.length)return{ok:!1,warnings:o,errors:n};const B={table:f,entitySet:a,select:x,filter:k,orderby:b,top:v,countOn:y,...l?{countOnly:l}:{},expand:S,apply:N};return r&&await Fge(B,r,n,o),{ok:n.length===0,parsed:n.length===0?B:void 0,warnings:o,errors:n}}catch(a){return a instanceof $x?n.push(mt(a.message,a.learnMoreUrl)):n.push(mt(a instanceof Error?a.message:String(a),Bt.filterRows)),{ok:!1,warnings:o,errors:n}}}async function $m(e,t,r=15e3){return Promise.race([e(t),new Promise(o=>setTimeout(()=>o(void 0),r))])}async function Fge(e,t,r,o){const n=await $m(t,e.table);if(!n){o.push(mt(`Metadata for \`${e.table}\` could not be loaded (or timed out) — column validation skipped.`));return}for(const a of e.select)Ta(n,a)||r.push(mt(`$select: column \`${a}\` does not exist on \`${e.table}\`.`,Bt.attrMetadata));for(const a of e.orderby)Ta(n,a.col)||r.push(mt(`$orderby: column \`${a.col}\` does not exist on \`${e.table}\`.`,Bt.orderRows));await vd(e.filter,n,t,r,o,void 0);for(const a of e.expand)await S_(a,n,t,r,o);if(e.apply?.enabled){for(const a of e.apply.groupby){const i=a.split("/");if(i.length===1)Ta(n,i[0])||r.push(mt(`$apply/groupby: column \`${i[0]}\` does not exist on \`${e.table}\`.`,Bt.aggregateData));else{const l=i[0];!n.navigationProperties.find(f=>f.name===l)&&!Ta(n,l)&&r.push(mt(`$apply/groupby: \`${l}\` is not a column or navigation on \`${e.table}\`.`,Bt.aggregateData))}}for(const a of e.apply.aggregates)a.fn!=="$count"&&!Ta(n,a.col)&&r.push(mt(`$apply/aggregate: column \`${a.col}\` does not exist on \`${e.table}\`.`,Bt.aggregateData));await vd(e.apply.prefilter,n,t,r,o,void 0)}}async function vd(e,t,r,o,n,a){for(const i of e.rules)if(i.type==="group")await vd(i,t,r,o,n,a);else if(i.type==="rule"||i.type==="function"){let l=i.col;if(!l)continue;if(a&&l.startsWith(a+"/")&&(l=l.slice(a.length+1)),l.includes("/")){const d=l.split("/");let f=t,p,h;for(let v=0;v<d.length-1&&f;v++){const y=f.navigationProperties.find(b=>b.name===d[v]&&b.cardinality==="ManyToOne");if(!y){p=`\`${d[v]}\` is not a ManyToOne navigation on \`${f.logicalName}\``,f=void 0;break}const x=await $m(r,y.targetEntity);if(!x){h=y.targetEntity,f=void 0;break}f=x}if(p)n.push(mt(`$filter: nav path \`${l}\` — ${p}.`,Bt.filterRows));else if(h)n.push(mt(`$filter: couldn't validate \`${l}\` — metadata for \`${h}\` timed out.`));else if(f){const v=d[d.length-1];Ta(f,v)||n.push(mt(`$filter: column \`${v}\` not found on \`${f.logicalName}\` (via \`${l}\`).`,Bt.filterRows))}continue}Ta(t,l)||o.push(mt(`$filter: column \`${l}\` does not exist on \`${t.logicalName}\`.`,Bt.filterRows))}else if(i.type==="lambda"){const l=t.navigationProperties.find(f=>f.name===i.nav);if(!l){o.push(mt(`$filter lambda: nav \`${i.nav}\` does not exist on \`${t.logicalName}\`.`,Bt.filterRows));continue}const d=await $m(r,l.targetEntity);if(!d){n.push(mt(`Metadata for \`${l.targetEntity}\` (lambda target via \`${i.nav}\`) could not be loaded — inner filter not column-validated.`));continue}await vd(i.inner,d,r,o,n,i.alias)}}async function S_(e,t,r,o,n){const a=t.navigationProperties.find(l=>l.name===e.nav);if(!a){o.push(mt(`$expand: navigation property \`${e.nav}\` does not exist on \`${t.logicalName}\`.`,Bt.joinTables));return}const i=await $m(r,a.targetEntity);if(!i){n.push(mt(`Metadata for \`${a.targetEntity}\` (target of \`${e.nav}\`) could not be loaded — inner $select not validated.`));return}for(const l of e.select)Ta(i,l)||o.push(mt(`$expand=${e.nav}: column \`${l}\` does not exist on \`${a.targetEntity}\`.`,Bt.attrMetadata));for(const l of e.orderby)Ta(i,l.col)||o.push(mt(`$expand=${e.nav}/$orderby: column \`${l.col}\` does not exist on \`${a.targetEntity}\`.`,Bt.orderRows));if(e.filter&&await vd(e.filter,i,r,o,n,void 0),e.nestedExpand)for(const l of e.nestedExpand)await S_(l,i,r,o,n)}function Ta(e,t){return e.columns.some(r=>r.logicalName===t||r.oDataName===t)}function Ige(e){let t=e.trim();if(t=t.replace(/^https?:\/\/[^/]+/,""),t=t.replace(/^\/?api\/data\/v\d+(\.\d+)?\//,""),t=t.replace(/^\//,""),/%[0-9A-Fa-f]{2}/.test(t))try{t=decodeURIComponent(t)}catch{}const r=t.indexOf("?");let o=r<0?t:t.slice(0,r);const n=r<0?"":t.slice(r+1),a=o.endsWith("/$count");a&&(o=o.slice(0,-7));const i=a&&/[(/]/.test(o)?o:void 0;return{entitySet:Age(o),query:n,countOnly:a,...i?{countPath:i}:{}}}function Age(e){const t=e.indexOf("(");return t>=0?e.slice(0,t):e}function Oge(e){if(!e)return{};const t={},r=wc(e,"&");for(const o of r){const n=o.indexOf("=");if(n<0)continue;const a=o.slice(0,n),i=o.slice(n+1);t[a]=i}return t}function wc(e,t){const r=[];let o=0,n=0,a=!1,i="";for(let l=0;l<e.length;l++){const d=e[l];if(a){if(i+=d,d==="'"){if(e[l+1]==="'"){i+="'",l++;continue}a=!1}continue}if(d==="'"){a=!0,i+=d;continue}if(d==="("){o++,i+=d;continue}if(d===")"){o--,i+=d;continue}if(d==="["){n++,i+=d;continue}if(d==="]"){n--,i+=d;continue}if(d===t&&o===0&&n===0){r.push(i),i="";continue}i+=d}return i.length&&r.push(i),r}function B_(e,t){return e.split(",").map(r=>r.trim()).filter(Boolean).map(r=>Hx(r,t))}function Hx(e,t){if(!e.startsWith("_")||!e.endsWith("_value")||e.length<=7)return e;const r=e.slice(1,-6);if(!t)return e;const o=t.columns.find(n=>n.logicalName===r);return o&&(o.attributeType==="Lookup"||o.attributeType==="Customer"||o.attributeType==="Owner")?r:e}function j_(e,t){return e.split(",").map(r=>r.trim()).filter(Boolean).map(r=>{const o=r.match(/^(\S+)(?:\s+(asc|desc))?$/i),n=Ft("ord");return o?{id:n,col:Hx(o[1],t),dir:o[2]?.toLowerCase()==="desc"?"desc":"asc"}:{id:n,col:r,dir:"asc"}})}function Lge(e){const t=[];let r=0;for(;r<e.length;){const o=e[r];if(o===" "||o===" "||o===`
36
+ `||o==="\r"){r++;continue}if(o==="("){t.push({kind:"lparen",value:"("}),r++;continue}if(o===")"){t.push({kind:"rparen",value:")"}),r++;continue}if(o===","){t.push({kind:"comma",value:","}),r++;continue}if(o===":"){const a=e[r+1];if(!(a&&/\d/.test(a))){t.push({kind:"colon",value:":"}),r++;continue}}if(o==="'"){let a="";for(r++;r<e.length;){if(e[r]==="'"&&e[r+1]==="'"){a+="'",r+=2;continue}if(e[r]==="'"){r++;break}a+=e[r++]}t.push({kind:"string",value:a});continue}if(o==="["){let a=0,i="";for(;r<e.length;){const l=e[r];if(i+=l,l==="[")a++;else if(l==="]"&&(a--,a===0)){r++;break}r++}t.push({kind:"bracket",value:i});continue}let n="";for(;r<e.length;){const a=e[r];if(`
37
+ \r(),['`.includes(a))break;if(a===":"){const i=e[r+1];if(!i||!/\d/.test(i))break}n+=a,r++}if(!n){r++;continue}/^-?\d[\d.eE+-]*$/.test(n)?t.push({kind:"number",value:n}):t.push({kind:"ident",value:n})}return t}const $ge=new Set(["eq","ne","gt","ge","lt","le"]),Hge=new Set(["contains","startswith","endswith"]),Vge=new Set(["true","false"]);function bd(){return{id:Ft("root"),type:"group",combinator:"and",rules:[]}}function Vx(e,t){const r=[],o=[],n={toks:Lge(e),pos:0,warnings:r,errors:o};if(n.toks.length===0)return{group:bd(),warnings:r,errors:o};try{const a=Wx(n);return{group:a.type==="group"?a:{id:Ft("root"),type:"group",combinator:"and",rules:[a]},warnings:r,errors:o}}catch(a){return a instanceof $x?o.push(mt(a.message,a.learnMoreUrl)):o.push(mt(a instanceof Error?a.message:String(a),Bt.filterRows)),{group:bd(),warnings:r,errors:o}}}function C_(e,t){return e.flatMap(r=>r.type==="group"&&r.combinator===t&&!r.negated?r.rules:[r])}function Wx(e){const t=G3(e);if(!Jl(e,"or"))return t;const r=[t];for(;Jl(e,"or");)Ux(e,"or"),r.push(G3(e));return{id:Ft("g"),type:"group",combinator:"or",rules:C_(r,"or")}}function G3(e){const t=Mb(e);if(!Jl(e,"and"))return t;const r=[t];for(;Jl(e,"and");)Ux(e,"and"),r.push(Mb(e));return{id:Ft("g"),type:"group",combinator:"and",rules:C_(r,"and")}}function Mb(e){if(Jl(e,"not")){Ux(e,"not");const t=Mb(e);return Wge(t,e)}return Uge(e)}function Wge(e,t){if(e.type==="rule"){const r=Ln(e.op);return r&&r.kind==="odata-fn"?{...e,negated:!e.negated}:{id:Ft("g"),type:"group",combinator:"and",rules:[e],negated:!0}}return e.type==="group"?{...e,negated:!e.negated}:e.type==="lambda"?{...e,negated:!e.negated}:(e.type==="function"&&t.warnings.push(mt(`\`not Microsoft.Dynamics.CRM.${e.op}(…)\` is rejected by Dataverse — dropped the \`not\`, function preserved. Use the explicit \`Not*\` sibling instead.`,Bt.queryFunctions)),e)}function Uge(e){const t=e.toks[e.pos];if(!t)throw new Error("Unexpected end of $filter input.");if(t.kind==="lparen"){e.pos++;const r=Wx(e);return Oa(e,"rparen"),r}if(t.kind==="ident"){const r=t.value;if(r.startsWith("Microsoft.Dynamics.CRM.")&&e.toks[e.pos+1]?.kind==="lparen")return Kge(e,r);if(Hge.has(r)&&e.toks[e.pos+1]?.kind==="lparen")return Zge(e,r);const o=r.match(/^(.+?)\/(any|all)$/);if(o&&e.toks[e.pos+1]?.kind==="lparen")return Jge(e,o[1],o[2]);if(e.toks[e.pos+1]?.kind==="lparen")throw new $x(`Unknown function \`${r}(…)\` in $filter. Dataverse query functions must be prefixed with \`Microsoft.Dynamics.CRM.\` (e.g. \`Microsoft.Dynamics.CRM.${r}(…)\`); OData string functions are \`contains\`/\`startswith\`/\`endswith\` only.`,Bt.queryFunctions);return Gge(e)}throw new Error(`Unexpected token \`${t.value}\` at position ${e.pos} in $filter.`)}function Gge(e){const t=e.toks[e.pos++];if(t.kind!=="ident")throw new Error(`Comparison LHS must be a column reference, got \`${t.value}\`.`);let r=t.value;r=Yl(r);const o=e.toks[e.pos++];if(!o||o.kind!=="ident"||!$ge.has(o.value.toLowerCase()))throw new Error(`Expected comparison operator after \`${r}\`, got \`${o?.value}\`.`);const n=o.value.toLowerCase(),a=e.toks[e.pos];if(a?.kind==="ident"&&a.value.toLowerCase()==="null"){e.pos++;const l=n==="eq"?"is-null":n==="ne"?"is-not-null":null;if(!l)e.warnings.push(mt(`\`${n} null\` is unusual — DRS will store as a literal value comparison.`,Bt.filterRows));else return{id:Ft("r"),type:"rule",col:r,op:l,val:""}}const i=e.toks[e.pos++];if(!i)throw new Error(`Comparison \`${r} ${n}\` is missing its RHS.`);if(i.kind==="string")return{id:Ft("r"),type:"rule",col:r,op:n,val:i.value,valKind:"literal"};if(i.kind==="number")return{id:Ft("r"),type:"rule",col:r,op:n,val:i.value,valKind:"literal"};if(i.kind==="ident"){const l=i.value;return Vge.has(l.toLowerCase())?{id:Ft("r"),type:"rule",col:r,op:n,val:l.toLowerCase(),valKind:"literal"}:Qge(l)||ehe(l)?{id:Ft("r"),type:"rule",col:r,op:n,val:l,valKind:"literal"}:{id:Ft("r"),type:"rule",col:r,op:n,val:Yl(l),valKind:"column"}}throw new Error(`Unexpected RHS token \`${i.value}\` for \`${r} ${n}\`.`)}function Zge(e,t){e.pos++,Oa(e,"lparen");const r=e.toks[e.pos++];if(r.kind!=="ident")throw new Error(`${t}( … ) expected a column reference first.`);Oa(e,"comma");const o=e.toks[e.pos++];if(o.kind!=="string")throw new Error(`${t}(${r.value}, '…') expected a string literal as the second argument.`);return Oa(e,"rparen"),{id:Ft("r"),type:"rule",col:Yl(r.value),op:t,val:o.value,valKind:"literal"}}function Kge(e,t){const r=t.replace(/^Microsoft\.Dynamics\.CRM\./,""),o=Rs.find(i=>i.id===r);e.pos++,Oa(e,"lparen");const n=Xge(e);Oa(e,"rparen"),o||e.errors.push(mt(`Unknown Dataverse query function \`Microsoft.Dynamics.CRM.${r}\` — not in the documented set.`,Bt.queryFunctions));const a={id:Ft("f"),type:"function",op:r,col:Yl(n.PropertyName??"")};return n.PropertyValue!=null&&(a.val=n.PropertyValue),n.PropertyValue1!=null&&n.PropertyValue2!=null&&(a.vals=[n.PropertyValue1,n.PropertyValue2]),n.PropertyValues&&(a.values=n.PropertyValues),a}function Xge(e){const t={};for(;e.toks[e.pos]&&e.toks[e.pos].kind!=="rparen";){const r=e.toks[e.pos++];if(r.kind!=="ident")throw new Error(`Expected argument name, got \`${r.value}\`.`);let o=r.value,n;const a=o.indexOf("=");a>=0&&(n=o.slice(a+1),o=o.slice(0,a)),o.endsWith("=")&&(o=o.slice(0,-1));let i;if(n!==void 0&&n!=="")i={kind:"scalar",v:N_(n)};else{const l=e.toks[e.pos++];if(!l)throw new Error(`Argument \`${o}\` is missing a value.`);if(l.kind==="string")i={kind:"scalar",v:l.value};else if(l.kind==="number")i={kind:"scalar",v:l.value};else if(l.kind==="ident")i={kind:"scalar",v:l.value};else if(l.kind==="bracket")i={kind:"array",v:Yge(l.value)};else throw new Error(`Unexpected token \`${l.value}\` for argument \`${o}\`.`)}o==="PropertyName"?t.PropertyName=i.kind==="scalar"?i.v:"":o==="PropertyValue"?t.PropertyValue=i.kind==="scalar"?i.v:"":o==="PropertyValue1"?t.PropertyValue1=i.kind==="scalar"?i.v:"":o==="PropertyValue2"?t.PropertyValue2=i.kind==="scalar"?i.v:"":o==="PropertyValues"&&(t.PropertyValues=i.kind==="array"?i.v:[]),e.toks[e.pos]?.kind==="comma"&&e.pos++}return t}function Yge(e){try{const t=e.replace(/'/g,'"'),r=JSON.parse(t);return Array.isArray(r)?r.map(o=>String(o)):[String(r)]}catch{return e.replace(/^\[/,"").replace(/\]$/,"").split(",").map(t=>N_(t.trim())).filter(Boolean)}}function N_(e){return e.length>=2&&e.startsWith("'")&&e.endsWith("'")||e.length>=2&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}function Jge(e,t,r){e.pos++,Oa(e,"lparen");let o=t;if(e.outerAlias&&o.startsWith(e.outerAlias+"/")&&(o=o.slice(e.outerAlias.length+1)),e.toks[e.pos]?.kind==="rparen")return e.pos++,{id:Ft("l"),type:"lambda",nav:o,lambda:r,alias:o[0]??"x",inner:bd()};const n=e.toks[e.pos++];if(n.kind!=="ident")throw new Error(`Lambda expected an alias, got \`${n.value}\`.`);const a=n.value;Oa(e,"colon");const i=e.outerAlias;e.outerAlias=a;const l=Wx(e);e.outerAlias=i,Oa(e,"rparen");const d=l.type==="group"?l:{id:Ft("g"),type:"group",combinator:"and",rules:[l]};return{id:Ft("l"),type:"lambda",nav:o,lambda:r,alias:a,inner:d}}function Yl(e){return e.split("/").map(t=>Hx(t)).join("/")}function Qge(e){return/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(e)}function ehe(e){return/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:\d{2})?)?$/.test(e)}function Jl(e,t){const r=e.toks[e.pos];return!!r&&r.kind==="ident"&&r.value.toLowerCase()===t}function Ux(e,t){if(!Jl(e,t))throw new Error(`Expected \`${t}\` at position ${e.pos}.`);e.pos++}function Oa(e,t){const r=e.toks[e.pos];if(!r||r.kind!==t)throw new Error(`Expected ${t} at position ${e.pos}, got ${r?.kind??"EOF"}.`);e.pos++}function z_(e,t){const r=[],o=[];return{items:wc(e,",").map(i=>i.trim()).filter(Boolean).map(i=>the(i,t,r,o)).filter(i=>!!i),warnings:r,errors:o}}function the(e,t,r,o){const n=e.indexOf("(");let a,i="";n<0?a=e.trim():(a=e.slice(0,n).trim(),i=e.slice(n+1,e.lastIndexOf(")")).trim()),a.endsWith("/$ref")&&(a=a.slice(0,-5),r.push(mt(`\`$expand=${a}/$ref\` was reduced to a plain \`$expand=${a}\` — DRS doesn't render the $ref-only form.`,Bt.joinTables)));const l=_7(a);if(!i)return l;const d=t?.navigationProperties.find(h=>h.name===a),f=d?fe(d.targetEntity):void 0,p=wc(i,";").map(h=>h.trim()).filter(Boolean);for(const h of p){const v=h.indexOf("=");if(v<0)continue;const y=h.slice(0,v),x=h.slice(v+1);switch(y){case"$select":l.select=B_(x,f);break;case"$orderby":l.orderby=j_(x,f);break;case"$top":l.top=__(x);break;case"$filter":{const b=Vx(x);l.filter=b.group,r.push(...b.warnings.map(k=>Lm(`expand(${a})`,k))),o.push(...b.errors.map(k=>Lm(`expand(${a})`,k)));break}case"$expand":{const b=z_(x,f);l.nestedExpand=b.items,r.push(...b.warnings),o.push(...b.errors);break}default:o.push(mt(`expand(${a}): unsupported inner option \`${y}\` — DRS supports $select / $filter / $orderby / $top / $expand only.`,Bt.joinTables))}}return l}function rhe(e,t){const r=[],o=[],n={enabled:!0,prefilter:bd(),groupby:[],aggregates:[]},a=wc(e,"/").map(i=>i.trim()).filter(Boolean);for(const i of a)if(i.startsWith("filter(")&&i.endsWith(")")){const l=i.slice(7,-1),d=Vx(l);n.prefilter=d.group,r.push(...d.warnings.map(f=>Lm("apply/filter",f))),o.push(...d.errors.map(f=>Lm("apply/filter",f)))}else if(i.startsWith("aggregate(")&&i.endsWith(")")){const l=i.slice(10,-1);n.aggregates=T_(l,r,o)}else if(i.startsWith("groupby(")&&i.endsWith(")")){const l=i.slice(8,-1),d=ohe(l,r,o);n.groupby=d.cols,d.aggregates&&(n.aggregates=d.aggregates)}else o.push(mt(`$apply: unsupported stage \`${i.split("(")[0]}(…)\`.`,Bt.aggregateData));return{spec:n,warnings:r,errors:o}}function ohe(e,t,r){if(e.indexOf("(")!==0)return r.push(mt(`$apply/groupby: expected \`(\` at start of args, got \`${e[0]??"EOF"}\`.`,Bt.aggregateData)),{cols:[]};let n=0,a=-1;for(let f=0;f<e.length;f++)if(e[f]==="(")n++;else if(e[f]===")"&&(n--,n===0)){a=f;break}if(a<0)return r.push(mt("$apply/groupby: unbalanced parens.",Bt.aggregateData)),{cols:[]};const i=e.slice(1,a),l=wc(i,",").map(f=>f.trim()).filter(Boolean).map(f=>Yl(f)),d=e.slice(a+1).trim();if(!d)return{cols:l};if(d.startsWith(",aggregate(")&&d.endsWith(")")){const f=d.slice(11,-1);return{cols:l,aggregates:T_(f,t,r)}}return r.push(mt("$apply/groupby: unexpected trailing content after the cols list.",Bt.aggregateData)),{cols:l}}function T_(e,t,r){const o=wc(e,",").map(a=>a.trim()).filter(Boolean),n=[];for(const a of o){const i=a.match(/^\$count\s+as\s+(\S+)$/i);if(i){n.push({col:"$count",fn:"$count",alias:i[1]});continue}const l=a.match(/^(\S+)\s+with\s+(\w+)\s+as\s+(\S+)$/i);if(!l){r.push(mt(`$apply/aggregate: couldn't parse \`${a}\` — expected \`<col> with <fn> as <alias>\` or \`$count as <alias>\`.`,Bt.aggregateData));continue}const d=l[2].toLowerCase();if(!Mge.has(d)){r.push(mt(`$apply/aggregate: function \`${d}\` is not modeled by DRS — only sum / average / min / max / $count are supported.`,Bt.aggregateData));continue}n.push({col:Yl(l[1]),fn:d,alias:l[3]})}return n}function __(e){const t=parseInt(e,10);return Number.isFinite(t)?t:null}const nhe=/^[A-Za-z0-9_$.@]*/;function Gx(e,t,r){const o=[],n=[];let a=!1;for(let i=t;i<r;i++){const l=e[i];if(a){l==="'"&&(a=!1);continue}l==="'"?a=!0:l==="("?o.push(i):l===")"?o.pop():o.length===0&&n.push({i,ch:l})}return{open:o,inQuote:a,lastSep:i=>{for(let l=n.length-1;l>=0;l--)if(i.includes(n[l].ch))return n[l].i;return-1}}}const ahe=e=>e.replace(/\(.*$/s,"").trim();function ihe(e){let t=e.match(/^\s*/)[0].length;const r=e.slice(t).match(/^https?:\/\/[^/?#\s]*\//i);if(r)t+=r[0].length;else{if(/^https?(?::|$)/i.test(e.slice(t)))return-1;e[t]==="/"&&t++}const o=e.slice(t),n=o.match(/^api\/data\/v\d+(?:\.\d+)?\//i);return n?t+n[0].length:r||/^api\/(?:d(?:a(?:t(?:a(?:\/(?:v[\d.]*)?)?)?)?)?)?$/i.test(o)?-1:t}function she(e,t,r,o){const n=t+(e.slice(t).match(nhe)?.[0].length??0);if(r==="query")return o?.trim()?Zp(e,0,t,n,"&",{entitySet:o.trim(),navs:[]}):Zp(e,0,t,n,"&",null);const a=ihe(e);if(a<0||t<a)return null;const i=[a];let l=0,d=!1;for(let y=a;y<t;y++){const x=e[y];if(d){x==="'"&&(d=!1);continue}if(x==="'")d=!0;else if(x==="(")l++;else if(x===")")l--;else if(l===0&&x==="/")i.push(y+1);else if(l===0&&x==="?"){const b=Z3(e,i,y);return Zp(e,y+1,t,n,"&",b)}}if(l>0||d)return null;const f=i[i.length-1],p=e.slice(f,t);if(i.length===1)return p.startsWith("$")?null:{want:"tables",from:f,to:n,prefix:p};const h=e.slice(i[i.length-2],f-1),v=Z3(e,i.slice(0,-1),f-1);return v?{want:"segment",from:f,to:n,prefix:p,table:v,keyed:h.includes("(")}:null}function Z3(e,t,r){const o=t.map((n,a)=>ahe(e.slice(n,a+1<t.length?t[a+1]-1:r)));return!o[0]||o.some(n=>!n||n.startsWith("$")||n.includes("."))?null:{entitySet:o[0],navs:o.slice(1)}}function Zp(e,t,r,o,n,a){const i=Gx(e,t,r);if(i.inQuote)return null;const l=Math.max(t,i.lastSep(n)+1),d=e.slice(l,r);return d.includes("=")?lhe(e,l,r,o,a):i.open.length?null:{want:n===";"?"nestedOptions":"options",from:l+(d.length-d.trimStart().length),to:o,prefix:d.trimStart(),...a?{table:a}:{}}}function lhe(e,t,r,o,n){const a=e.indexOf("=",t);if(a<0||a>=r||!n)return null;const i=e.slice(t,a).trim().toLowerCase(),l=a+1,d=Gx(e,l,r);if(d.inQuote)return null;const f=Math.max(l,d.lastSep(",")+1);if(i==="$expand"){if(d.open.length){const h=e.slice(f,d.open[0]).trim();return h?Zp(e,d.open[0]+1,r,o,";",{...n,navs:[...n.navs,h]}):null}const p=e.slice(f,r).trimStart();return{want:"navs",from:r-p.length,to:o,prefix:p,table:n}}if(i==="$select"||i==="$orderby"){if(d.open.length)return null;const p=e.slice(f,r).trimStart();if(i==="$orderby"&&/\s/.test(p)){if(/^\S+\s+\S+\s+$/.test(p))return null;const h=p.slice(p.search(/\S*$/));return{want:"orderDir",from:r-h.length,to:o,prefix:h,table:n}}return{want:"columns",from:r-p.length,to:o,prefix:p,table:n}}return i==="$filter"?uhe(e,l,r,o,n):i==="$count"?{want:"booleans",from:l,to:o,prefix:e.slice(l,r),table:n}:null}const che=new Set(["and","or","not","eq","ne","gt","ge","lt","le","null","true","false"]);function uhe(e,t,r,o,n){if(Gx(e,t,r).inQuote)return null;const i=e.slice(t,r),l=i.match(/[A-Za-z0-9_/]*$/)?.[0]??"",d=i.slice(0,i.length-l.length),f=d.trimEnd().match(/(?:[A-Za-z0-9_/.-]+|'(?:[^']|'')*'|.)$/)?.[0]??"";if(f===",")return null;if(f===""||f==="("||["and","or","not"].includes(f.toLowerCase())){const v=l.lastIndexOf("/");if(v>=0){const y=l.slice(0,v).split("/"),x=l.slice(v+1);return{want:"operand",from:r-x.length,to:o,prefix:x,table:{...n,navs:[...n.navs,...y]},pathNavs:y.length}}return{want:"operand",from:r-l.length,to:o,prefix:l,table:n}}return d.length===0||!/\s$/.test(d)?null:f===")"||f.startsWith("'")||/^-?\d/.test(f)||/^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(f)||["null","true","false"].includes(f.toLowerCase())?{want:"logical",from:r-l.length,to:o,prefix:l,table:n}:che.has(f.toLowerCase())?null:{want:"operators",from:r-l.length,to:o,prefix:l,table:n}}const K3=50,dhe=["$select","$filter","$orderby","$expand","$top","$count","$apply"],fhe=["$select","$filter","$orderby","$top","$expand"],phe=["eq","ne","gt","ge","lt","le"],mhe=["contains","startswith","endswith"];function ghe(e,t){const r=(t.allEntities??t.entities).find(a=>a.entitySetName.toLowerCase()===e.entitySet.toLowerCase());if(!r)return{};let o=t.tableOf(r.logicalName);if(!o)return{need:r.logicalName};const n=[];for(const a of e.navs){const i=o.navigationProperties.find(d=>d.name===a);if(!i)return{};n.push(i);const l=t.tableOf(i.targetEntity);if(!l)return{need:i.targetEntity};o=l}return{table:o,path:n}}const X3=(e,t)=>{const r=t?`${e.namespace}.${e.name}`:e.name;return e.kind==="Action"?r:e.parameters.length?`${r}(`:`${r}()`},hhe=e=>`${e.displayName} (${e.attributeType})`;function vhe(e,t){const r=t.columnInScope??(()=>!0),o=t.navInScope??(()=>!0),n=[];let a;const i=e.table?ghe(e.table,t):{};i.need&&(a=i.need);const l=i.table,d=(h=()=>!0)=>(l?.columns??[]).filter(v=>r(v)&&v.isValidForRead!==!1&&h(v)).map(v=>({label:v.oDataName??v.logicalName,insert:v.oDataName??v.logicalName,detail:hhe(v),displayName:v.displayName,kind:"column"})).sort((v,y)=>Hm(v.label).localeCompare(Hm(y.label))),f=(h=()=>!0)=>(l?.navigationProperties??[]).filter(v=>o(v)&&h(v)).map(v=>({label:v.name,insert:v.name,detail:`→ ${v.targetEntity}${v.cardinality==="ManyToOne"?"":" (collection)"}`,kind:"nav"})).sort((v,y)=>v.label.localeCompare(y.label)),p=(h,v)=>h.map(y=>({label:y,insert:y,detail:v,kind:"keyword"}));switch(e.want){case"tables":for(const h of[...t.entities].sort((v,y)=>v.entitySetName.localeCompare(y.entitySetName)))n.push({label:h.entitySetName,insert:h.entitySetName,detail:h.displayName,displayName:h.displayName,kind:"table"});for(const h of t.operations)h.binding.kind!=="unbound"||h.isQueryFunction||n.push({label:h.name,insert:X3(h,!1),detail:h.kind,kind:"operation"});break;case"segment":{if(!l)break;const h=i.path?.[i.path.length-1],v=e.keyed||h?.cardinality==="ManyToOne";v?n.push(...f()):n.push(...p(["$count"],"Number of rows"));for(const y of t.operations){if(y.binding.kind==="unbound"||y.isQueryFunction)continue;const x=y.binding.entityType;x!==l.logicalName&&x!=="crmbaseentity"||y.binding.kind==="entity"==!!v&&n.push({label:`${y.namespace}.${y.name}`,insert:X3(y,!0),detail:y.kind,kind:"operation"})}break}case"options":case"nestedOptions":for(const h of e.want==="options"?dhe:fhe)n.push({label:h,insert:`${h}=`,kind:"option"});break;case"columns":n.push(...d());break;case"navs":n.push(...f());break;case"operand":if(i.path?.slice(i.path.length-(e.pathNavs??0)).some(h=>h.cardinality!=="ManyToOne"))break;n.push(...d()),n.push(...f(h=>h.cardinality==="ManyToOne").map(h=>({...h,insert:`${h.insert}/`}))),e.prefix.indexOf("/")<0&&n.push(...mhe.map(h=>({label:h,insert:`${h}(`,detail:"Function",kind:"keyword"})));break;case"operators":n.push(...p(phe,"Operator"));break;case"logical":n.push(...p(["and","or"]));break;case"orderDir":n.push(...p(["asc","desc"]));break;case"booleans":n.push(...p(["true","false"]));break}return{...bhe(n,e.prefix),...a?{needTable:a}:{}}}const Hm=e=>e.replace(/^[$_]/,"");function bhe(e,t){const r=Hm(t.trim().toLowerCase()),o=[],n=[];for(const i of e){const l=Hm(i.label.toLowerCase());!r||l.startsWith(r)?o.push(i):(l.includes(r)||i.displayName?.toLowerCase().includes(r))&&n.push(i)}r&&o.sort((i,l)=>i.label.length-l.label.length);const a=[...o,...n];return a.length===1&&a[0].insert.toLowerCase()===t.trim().toLowerCase()?{items:[],hiddenCount:0}:{items:a.slice(0,K3),hiddenCount:Math.max(0,a.length-K3)}}function yhe(e,t,r){let o=r.insert,n=0;const a=e.slice(t.to);for(const i of["()","(","=","/"])if(o.endsWith(i)&&a.startsWith(i)){o=o.slice(0,-i.length),n=i.length;break}return{value:e.slice(0,t.from)+o+a,caret:t.from+o.length+n}}const xhe=/[=(/]$/,whe={position:"absolute",width:1,height:1,overflow:"hidden",clip:"rect(0 0 0 0)",whiteSpace:"nowrap"};function khe({value:e,onChange:t,mode:r,entitySet:o,multiline:n}){const a=bt("drs-url-suggest"),i=m.useRef(null),[l,d]=m.useState(!1),[f,p]=m.useState(null),[h,v]=m.useState(!0),[y,x]=m.useState(0),[b,k]=m.useState([]),[S,N]=m.useState(0),B=m.useRef(null),{entities:C,allEntities:z}=Hd(),R=Vo(),E=l&&!h&&f!==null,D=m.useMemo(()=>E&&f!==null?she(e,f,r,o):null,[E,e,f,r,o]),I=m.useMemo(()=>D?vhe(D,{entities:C,allEntities:z,tableOf:fe,operations:b,columnInScope:ie=>Zi(ie,R),navInScope:ie=>Rg(ie,R)}):null,[D,C,z,b,R,S]),M=I?.needTable;m.useEffect(()=>{if(!M)return;let ie=!0;return lr.getTable(M).catch(()=>{}).finally(()=>ie&&N(ge=>ge+1)),()=>{ie=!1}},[M]);const O=I?.items??[],H=!!D&&(O.length>0||!!M),$=Math.min(y,Math.max(0,O.length-1)),{targetRef:Z,containerRef:q}=qs({position:"below",align:"start",strategy:"fixed",offset:2}),A=Le(i,Z);m.useLayoutEffect(()=>{const ie=i.current;B.current===null||!ie||(ie.setSelectionRange(B.current,B.current),p(B.current),B.current=null)},[e]);const X=D?`${D.want}:${D.from}:${D.prefix}`:"";m.useEffect(()=>x(0),[X]),m.useEffect(()=>{H&&document.getElementById(`${a}-${$}`)?.scrollIntoView({block:"nearest"})},[H,$,a]);const V=m.useCallback(ie=>{const ge=ie.currentTarget;p(ge.selectionStart===ge.selectionEnd?ge.selectionStart:null)},[]),oe=ie=>{const ge=O[ie];if(!D||!ge)return;const Te=yhe(e,D,ge);if(v(!xhe.test(ge.insert)),Te.value===e){i.current?.setSelectionRange(Te.caret,Te.caret),p(Te.caret);return}B.current=Te.caret,t(Te.value)},W={ref:A,onChange:ie=>{v(ie.nativeEvent.inputType==="insertFromPaste"),V(ie),t(ie.target.value)},onKeyDown:ie=>{if(ie.nativeEvent.isComposing)return;if(ie.key===" "&&ie.ctrlKey){ie.preventDefault(),v(!1),V(ie);return}if(!H)return;const ge=!ie.ctrlKey&&!ie.metaKey&&!ie.altKey&&!ie.shiftKey;if(ie.key==="ArrowDown"||ie.key==="ArrowUp"){if(ie.preventDefault(),O.length){const Te=ie.key==="ArrowDown"?1:-1;x(($+Te+O.length)%O.length)}}else(ie.key==="Enter"||ie.key==="Tab")&&ge&&O.length?(ie.preventDefault(),oe($)):ie.key==="Escape"&&(ie.preventDefault(),ie.stopPropagation(),v(!0))},onSelect:V,onFocus:ie=>{d(!0),V(ie),r==="url"&&Ex.loadAll().then(k).catch(()=>k([]))},onBlur:()=>{d(!1),v(!0)},autoComplete:"off",spellCheck:!1,"aria-autocomplete":"list","aria-controls":H?a:void 0,"aria-activedescendant":H&&O.length?`${a}-${$}`:void 0,...n?{}:{role:"combobox","aria-expanded":H}},L=I?.hiddenCount??0,te=O.length+L,ue={display:"block",padding:"4px 8px",color:T.colorNeutralForeground3},ne=c.jsxs(c.Fragment,{children:[c.jsx("span",{role:"status",style:whe,children:H&&te?`${te} suggestion${te===1?"":"s"}`:""}),H&&c.jsxs("div",{ref:q,onMouseDown:ie=>ie.preventDefault(),style:{position:"fixed",zIndex:1e6,minWidth:280,maxWidth:560,padding:4,background:T.colorNeutralBackground1,border:`1px solid ${T.colorNeutralStroke1}`,borderRadius:T.borderRadiusMedium,boxShadow:T.shadow16},children:[c.jsx("div",{id:a,role:"listbox","aria-label":"Suggestions",style:{maxHeight:280,overflowY:"auto"},children:O.map((ie,ge)=>c.jsxs("div",{id:`${a}-${ge}`,role:"option","aria-selected":ge===$,"aria-label":ie.detail?`${ie.label}, ${ie.detail}`:ie.label,onMouseEnter:()=>x(ge),onClick:()=>oe(ge),style:{display:"flex",alignItems:"baseline",gap:12,padding:"4px 8px",borderRadius:T.borderRadiusSmall,cursor:"pointer",background:ge===$?T.colorNeutralBackground1Selected:void 0},children:[c.jsx("span",{style:{fontFamily:T.fontFamilyMonospace,fontSize:T.fontSizeBase200,whiteSpace:"nowrap"},children:ie.label}),ie.detail&&c.jsx(Pe,{style:{marginLeft:"auto",color:T.colorNeutralForeground3,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:ie.detail})]},`${ie.kind}:${ie.label}`))}),O.length===0&&M&&c.jsxs(Pe,{style:ue,children:["Loading ",M," metadata…"]}),L>0&&c.jsxs(Pe,{style:ue,children:[L.toLocaleString()," more — keep typing to narrow the list"]})]})]});return{fieldProps:W,list:ne}}function She({children:e,onApply:t}){const[r,o]=m.useState(!1),[n,a]=m.useState(""),i=khe({value:n,onChange:a,mode:"url",multiline:!0}),[l,d]=m.useState(null),[f,p]=m.useState(!1),{allEntities:h}=Hd(),v=m.useMemo(()=>S=>h.find(B=>B.entitySetName===S)?.logicalName,[h]),y=async()=>{if(!n.trim()){d(null);return}p(!0);try{const S=await qge(n,v,N=>lr.getTable(N));d(S)}finally{p(!1)}},x=()=>{l?.parsed&&(t(l.parsed),o(!1),a(""),d(null))},b=()=>{a(""),d(null)},k=!!l?.ok&&!!l?.parsed?.table&&l.errors.length===0;return c.jsxs(Va,{open:r,onOpenChange:(S,N)=>o(N.open),children:[c.jsx(Ia,{disableButtonEnhancement:!0,children:e??c.jsx(pe,{icon:c.jsx(tO,{}),appearance:"outline",size:"small",children:"Paste OData URL"})}),c.jsx(Is,{style:{maxWidth:760},children:c.jsxs(Fs,{children:[c.jsx(uc,{action:c.jsx(Ia,{action:"close",children:c.jsx(pe,{appearance:"subtle",icon:c.jsx(Ii,{}),"aria-label":"close"})}),children:"Parse an OData URL into the builder"}),c.jsxs(dc,{children:[c.jsxs(Pe,{style:{display:"block",marginBottom:8,color:T.colorNeutralForeground2},children:["Paste a Dataverse Web API URL (absolute or relative). DRS will parse the URL, validate every option / function / column / nav against your environment's metadata, and only enable ",c.jsx("strong",{children:"Apply"})," if there are no errors. Warnings are advisory — they describe lossy but legal patterns that DRS can still represent (e.g."," ",c.jsx("code",{children:"not Microsoft.Dynamics.CRM.X(...)"}),"dropping the ",c.jsx("code",{children:"not"}),")."]}),c.jsx(Sg,{value:n,...i.fieldProps,placeholder:"accounts?$select=name&$filter=revenue gt 1000000&$top=10",style:{width:"100%",fontFamily:T.fontFamilyMonospace,fontSize:12},rows:6,resize:"vertical",disabled:f}),i.list,c.jsxs("div",{style:{display:"flex",gap:8,marginTop:12,alignItems:"center"},children:[c.jsx(pe,{appearance:"primary",onClick:y,disabled:!n.trim()||f,icon:f?c.jsx(jr,{size:"tiny"}):void 0,children:f?"Parsing & validating…":"Parse"}),c.jsx(pe,{appearance:"subtle",onClick:b,disabled:f||!n&&!l,children:"Clear"}),f&&c.jsx(Pe,{style:{color:T.colorNeutralForeground3},children:"Loading metadata for involved entities…"})]}),l&&!f&&c.jsxs("div",{style:{marginTop:16,display:"flex",flexDirection:"column",gap:8},children:[l.ok&&l.parsed&&c.jsx(Ue,{layout:"multiline",intent:"success",children:c.jsxs(Ge,{children:[c.jsx(Lt,{children:"Parsed & validated — ready to apply"}),c.jsx(Bhe,{parsed:l.parsed})]})}),l.errors.length>0&&c.jsx(Ue,{layout:"multiline",intent:"error",children:c.jsxs(Ge,{children:[c.jsxs(Lt,{children:["Won't apply — ",l.errors.length," error",l.errors.length===1?"":"s"," found"]}),c.jsx(Y3,{items:l.errors})]})}),l.warnings.length>0&&c.jsx(Ue,{layout:"multiline",intent:"warning",children:c.jsxs(Ge,{children:[c.jsxs(Lt,{children:[l.warnings.length," warning",l.warnings.length===1?"":"s"," ","(apply still allowed)"]}),c.jsx(Y3,{items:l.warnings})]})})]})]}),c.jsxs(cc,{children:[c.jsx(Ia,{action:"close",disableButtonEnhancement:!0,children:c.jsx(pe,{appearance:"subtle",children:"Cancel"})}),c.jsx(pe,{appearance:"primary",icon:c.jsx(BC,{}),onClick:x,disabled:!k,children:"Apply to builder"})]})]})})]})}function Y3({items:e}){return c.jsx("ul",{style:{margin:"4px 0 0 18px",padding:0},children:e.map((t,r)=>c.jsxs("li",{style:{marginBottom:4},children:[c.jsx("span",{children:t.message}),t.learnMoreUrl&&c.jsxs(c.Fragment,{children:[" ",c.jsxs(xs,{href:t.learnMoreUrl,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:2,fontSize:T.fontSizeBase200,whiteSpace:"nowrap"},children:["Learn more",c.jsx(xC,{style:{width:12,height:12}})]})]})]},r))})}function Bhe({parsed:e}){return c.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:6,marginTop:6},children:[c.jsxs(ct,{appearance:"tint",color:"brand",children:["table: ",c.jsx("code",{children:e.table||e.entitySet})]}),e.select.length>0&&c.jsxs(ct,{appearance:"tint",children:["$select: ",e.select.length]}),e.filter.rules.length>0&&c.jsxs(ct,{appearance:"tint",children:["$filter: ",e.filter.rules.length," root nodes"]}),e.orderby.length>0&&c.jsxs(ct,{appearance:"tint",children:["$orderby: ",e.orderby.length]}),e.top!=null&&c.jsxs(ct,{appearance:"tint",children:["$top: ",e.top]}),e.countOn&&c.jsx(ct,{appearance:"tint",children:"$count: true"}),e.expand.length>0&&c.jsxs(ct,{appearance:"tint",children:["$expand: ",e.expand.length]}),e.apply?.enabled&&c.jsx(ct,{appearance:"tint",children:"$apply: on"})]})}function jhe({table:e,onTableChange:t,recordId:r,onRecordChange:o,group:n="read",sub:a="Pick the entity set this request operates on.",onResetRequest:i,onApplyParsed:l}){const{entities:d,loading:f,error:p,retry:h,needsSetup:v}=Hd(),y=nse(),{loading:x}=bc(e||null),b=fe(e),k=o!==void 0,[S,N]=m.useState(b?.displayName??"");m.useEffect(()=>{N(b?.displayName??"")},[b?.displayName]);const{visible:B,matchCount:C,hiddenCount:z}=Nx(d,S,$=>[$.displayName,$.logicalName,$.entitySetName]),R=$=>{const Z=$.target.value;N(Z),Z===""&&e&&t("")},E=($,Z)=>{if(!Z.optionValue){t(""),N("");return}const q=d.find(A=>A.logicalName===Z.optionValue);t(Z.optionValue),N(q?.displayName??"")},D=!!i||!!l,[I,M]=m.useState(!1),O=()=>{M(!0),lr.refreshAll().catch($=>console.warn("[TargetEditor] refresh metadata failed",$)).finally(()=>M(!1))},H=v&&!f;return c.jsxs("div",{children:[H&&c.jsxs(Ue,{intent:"info",style:{marginBottom:T.spacingVerticalM,width:"100%"},children:[c.jsxs(Ge,{children:[c.jsx(Lt,{children:"No entities listed yet"}),ZT]}),c.jsx(In,{containerAction:c.jsx(pe,{appearance:"primary",size:"small",icon:c.jsx(Ns,{}),onClick:y,children:"Choose scope"})})]}),p&&!f&&c.jsxs(Ue,{intent:"error",style:{marginBottom:T.spacingVerticalM,width:"100%"},children:[c.jsxs(Ge,{children:[c.jsx(Lt,{children:"Couldn't load the table list"}),p]}),c.jsx(In,{containerAction:c.jsx(pe,{appearance:"primary",size:"small",icon:c.jsx(I2,{}),onClick:h,children:"Retry"})})]}),c.jsx(Un,{icon:gC,title:"Target",sub:a,group:n,children:D&&c.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[l&&c.jsx(She,{onApply:l}),c.jsx(pe,{icon:c.jsx(I2,{}),appearance:"outline",size:"small",onClick:O,disabled:I,title:"Re-fetch every entity / attribute / relationship from Dataverse. Clears the in-memory metadata cache. Useful after editing the schema in the maker, or to pick up newly-added metadata flags.",children:"Refresh metadata"}),i&&c.jsx(pe,{icon:c.jsx(pA,{}),appearance:"outline",size:"small",onClick:i,disabled:!e,title:"Clear $select / $filter / $orderby / $top / $expand / $apply while keeping the current table",children:"Reset request"})]})}),c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16,maxWidth:560},children:[c.jsx(jo,{label:"Table",hint:b?`${b.entitySetName} · ${b.columns.length} columns${x?" · loading…":""}`:f?"Loading entity list…":p?"Entity list failed to load":`${d.length} ${d.length===1?"entity":"entities"} in scope`,children:c.jsxs(Ur,{freeform:!0,clearable:!0,value:S,selectedOptions:e?[e]:[],onChange:R,onOptionSelect:E,disabled:H&&!e,placeholder:f?"Loading…":H?"Choose a scope to list entities":"Search tables by name…",listbox:{style:{maxHeight:360}},children:[C===0&&c.jsx(at,{value:"__none",text:"",disabled:!0,children:c.jsxs(Pe,{style:{color:T.colorNeutralForeground3},children:['No tables match "',S,'"']})}),B.map($=>c.jsx(at,{value:$.logicalName,text:$.displayName,children:c.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[c.jsx(Rd,{children:$.displayName}),c.jsxs(Pe,{style:{color:T.colorNeutralForeground3},children:[$.entitySetName," · ",$.logicalName]})]})},$.logicalName)),c.jsx(zx,{hiddenCount:z})]})}),x&&c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,color:T.colorNeutralForeground3},children:[c.jsx(jr,{size:"tiny"}),c.jsx(Pe,{children:"Fetching columns + relationships from Dataverse…"})]}),k&&b&&c.jsx(jo,{label:"Record",children:c.jsx(_ge,{table:e,selectedId:r??null,onPick:$=>o?.($?.id??null,$?.primary??""),placeholder:`Search ${b.displayName} records by ${b.primaryName}…`,memoryKey:"target"})})]})]})}function R_({table:e,selectedIds:t,setSelectedIds:r,group:o="read",applyActive:n}){const a=_t(),i=fe(e),[l,d]=m.useState(null),[f,p]=m.useState(""),h=m.useDeferredValue(f),v=Vo(),y=m.useMemo(()=>(i?.columns??[]).filter(M=>M.isValidForRead!==!1).filter(M=>!td(M)),[i]),x=m.useMemo(()=>{const M=ix(y,v);if(!h)return M;const O=h.toLowerCase();return M.filter(H=>H.displayName.toLowerCase().includes(O)||H.logicalName.toLowerCase().includes(O))},[y,h,v]),{selected:b,orphanCount:k}=m.useMemo(()=>{const M=new Map(y.map($=>[$.logicalName,$]));let O=0;return{selected:t.map($=>{const Z=M.get($);return Z||(O++,{logicalName:$,displayName:`(unknown) ${$}`,attributeType:"String",format:"Text",maxLength:0})}),orphanCount:O}},[y,t]),S=m.useMemo(()=>x.map(M=>({logicalName:M.logicalName,displayName:M.displayName,attributeType:M.attributeType})),[x]),N=m.useMemo(()=>[vs({columnId:"displayName",compare:(M,O)=>M.displayName.localeCompare(O.displayName),renderHeaderCell:()=>"Display name",renderCell:M=>c.jsx(Nl,{truncate:!0,children:M.displayName})}),vs({columnId:"logicalName",compare:(M,O)=>M.logicalName.localeCompare(O.logicalName),renderHeaderCell:()=>"Logical name",renderCell:M=>c.jsx(Nl,{truncate:!0,children:c.jsx("code",{style:{fontFamily:T.fontFamilyMonospace,fontSize:T.fontSizeBase200,color:T.colorNeutralForeground2},children:M.logicalName})})}),vs({columnId:"attributeType",compare:(M,O)=>M.attributeType.localeCompare(O.attributeType),renderHeaderCell:()=>"Type",renderCell:M=>c.jsx(Nl,{children:c.jsx(ct,{appearance:"outline",size:"small",children:M.attributeType})})})],[]),B=m.useMemo(()=>new Set(t),[t]),C=m.useCallback((M,O)=>{const H=O.selectedItems,$=new Set(S.map(X=>X.logicalName)),Z=t.filter(X=>H.has(X)||!$.has(X)),q=new Set(t),A=[];for(const X of H){const V=String(X);q.has(V)||A.push(V)}r([...Z,...A])},[t,r,S]),z=m.useMemo(()=>c.jsxs(az,{items:S,columns:N,sortable:!0,selectionMode:"multiselect",selectedItems:B,onSelectionChange:C,getRowId:M=>M.logicalName,size:"small",style:{minWidth:0},children:[c.jsx(cz,{children:c.jsx(V1,{selectionCell:{checkboxIndicator:{"aria-label":"Select all columns"}},children:({renderHeaderCell:M})=>c.jsx(Uy,{children:M()})})}),c.jsx(ez,{children:({item:M,rowId:O})=>c.jsx(V1,{selectionCell:{checkboxIndicator:{"aria-label":`Select ${M.displayName}`}},children:({renderCell:H})=>c.jsx(gm,{children:H(M)})},O)})]}),[S,N,B,C]),R=m.useMemo(()=>c.jsx(dd,{ids:t,onReorder:(M,O)=>{const H=[...t],[$]=H.splice(M,1);H.splice(O,0,$),r(H)},children:b.map(M=>{const O=M.displayName.startsWith("(unknown) ");return c.jsx(fd,{id:M.logicalName,children:({gripProps:H,Grip:$})=>c.jsxs("button",{type:"button",className:F(a.colRow,l===M.logicalName&&a.colRowSelected),onClick:()=>d(M.logicalName),onDoubleClick:()=>r(t.filter(Z=>Z!==M.logicalName)),style:O?{fontStyle:"italic",opacity:.85}:void 0,children:[c.jsx("span",{...H,"aria-label":`Drag to reorder ${M.displayName}`,children:c.jsx($,{})}),c.jsx(VA,{style:{width:14,height:14,color:O?T.colorPaletteRedForeground1:Pn(o)}}),c.jsx("span",{children:M.displayName}),O?c.jsx(ct,{appearance:"tint",color:"warning",size:"small",children:"unknown"}):c.jsx("span",{className:a.colTypeBadge,children:M.attributeType}),c.jsx("span",{className:a.colMeta,children:M.logicalName})]})},M.logicalName)})}),[b,t,r,l,o,a]),E=()=>{l&&(r(t.filter(M=>M!==l)),d(null))},D=()=>{if(!l)return;const M=t.indexOf(l);if(M>0){const O=[...t];[O[M-1],O[M]]=[O[M],O[M-1]],r(O)}},I=()=>{if(!l)return;const M=t.indexOf(l);if(M>=0&&M<t.length-1){const O=[...t];[O[M],O[M+1]]=[O[M+1],O[M]],r(O)}};return c.jsxs("div",{children:[c.jsxs(Un,{icon:N1,title:"$select",sub:"Pick which columns the response should include. Empty = all (warned, costly).",group:o,children:[c.jsx(Ht,{contentBefore:c.jsx(Ol,{}),"aria-label":"Filter columns",placeholder:"Filter columns…",value:f,onChange:(M,O)=>p(O.value),size:"small",style:{width:220}}),c.jsxs(ct,{appearance:"ghost",children:[b.length," selected"]})]}),n&&c.jsx(Ig,{clause:"$select"}),t.length===0&&c.jsx(Ue,{layout:"multiline",intent:"warning",style:{marginBottom:12},children:c.jsxs(Ge,{children:["No ",c.jsx("code",{children:"$select"})," — Dataverse will return ",c.jsx("strong",{children:"all columns"}),". Pick a subset to keep responses small."]})}),k>0&&c.jsx(Ue,{layout:"multiline",intent:"warning",style:{marginBottom:12},children:c.jsxs(Ge,{children:[c.jsx("strong",{children:k})," selected column",k===1?"":"s"," not found in this entity's metadata — likely an unknown ",c.jsx("code",{children:"_<x>_value"})," form pasted from a URL. They're kept in state for round-trip faithfulness (the encoder still emits them), but DRS can't type-check them. Remove if unintended."]})}),c.jsxs("div",{className:a.selectGrid,children:[c.jsxs("div",{className:a.colList,children:[c.jsxs("div",{className:a.colListH,children:["Columns · ",x.length,t.length>0&&c.jsxs("span",{style:{marginLeft:"auto",fontSize:10,color:T.colorNeutralForeground3},children:[t.length," selected"]})]}),c.jsx("div",{style:{flex:1,minHeight:0,overflow:"auto"},children:x.length===0?c.jsx("div",{style:{padding:"20px 14px",textAlign:"center",fontSize:12,color:T.colorNeutralForeground3},children:c.jsxs("em",{children:['No columns match "',h,'"']})}):z})]}),c.jsxs("div",{className:a.colArrows,children:[c.jsx(pe,{icon:c.jsx(Ap,{style:{transform:"rotate(180deg)"}}),appearance:"subtle",onClick:E,disabled:!l,"aria-label":"Remove from selected"}),c.jsx(pe,{icon:c.jsx(Ap,{style:{transform:"rotate(-90deg)"}}),appearance:"subtle",onClick:D,disabled:!l,"aria-label":"Move up"}),c.jsx(pe,{icon:c.jsx(Ap,{style:{transform:"rotate(90deg)"}}),appearance:"subtle",onClick:I,disabled:!l,"aria-label":"Move down"})]}),c.jsxs("div",{className:a.colList,children:[c.jsxs("div",{className:a.colListH,children:["Selected · ",t.length,c.jsx("span",{style:{marginLeft:"auto",fontSize:10,color:T.colorNeutralForeground3},children:"order matters"})]}),c.jsxs("div",{className:a.colListBody,children:[t.length===0&&c.jsxs("div",{style:{padding:"20px 14px",textAlign:"center",fontSize:12,color:T.colorNeutralForeground3},children:[c.jsx("em",{children:"All columns"})," (no ",c.jsx("code",{children:"$select"})," emitted)"]}),R]})]})]})]})}function D_({top:e,setTop:t,maxPageSize:r,group:o="read"}){const n=e!=null&&e>0&&r!=null&&r>0;return c.jsxs("div",{children:[c.jsx(Un,{icon:B1,title:"$top",sub:"Maximum rows to return. Server hard cap is 5,000.",group:o}),n&&c.jsx(Ue,{layout:"multiline",intent:"warning",style:{marginBottom:12},children:c.jsxs(Ge,{children:[c.jsx("strong",{children:"$top and Prefer: odata.maxpagesize are mutually exclusive"})," — when both are set, Dataverse ignores ",c.jsx("code",{children:"$top"}),", so the request leaves it out.",!ed()&&c.jsxs(c.Fragment,{children:[" ","This ToolBox version can't send ",c.jsx("code",{children:"Prefer"}),", so Execute keeps"," ",c.jsx("code",{children:"$top"})," instead and ignores the page size (ToolBox 1.2.7+ sends it)."]})]})}),c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:14,maxWidth:360},children:[c.jsx(jo,{label:"Top N",hint:e==null||e===0?"Empty / 0 = use server default (5,000).":`Returns up to ${e} rows.`,children:c.jsx(Da,{value:e??0,min:0,max:5e3,step:10,onChange:(a,i)=>{const l=i.value??Number(i.displayValue??0);t(l===0?null:l)}})}),c.jsx("div",{style:{display:"flex",gap:6,flexWrap:"wrap"},children:[5,10,25,50,100,500,1e3,5e3].map(a=>c.jsx(Bo,{size:"small",shape:"circular",checked:e===a,onClick:()=>t(a),children:a.toLocaleString()},a))}),c.jsxs(Pe,{style:{color:T.colorNeutralForeground3},children:["For large pages, prefer ",c.jsx("code",{children:"Prefer: odata.maxpagesize"})," +"," ",c.jsx("code",{children:"@odata.nextLink"}),"."]})]})]})}function Che({countOn:e,setCountOn:t,countOnly:r=!1,setCountOnly:o,group:n="read",applyActive:a}){return c.jsxs("div",{children:[c.jsx(Un,{icon:bC,title:"$count",sub:"Include the total count in the response (capped at 5,000 — see totalrecordcountlimitexceeded).",group:n}),a&&!r&&c.jsx(Ig,{clause:"$count"}),c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:14,maxWidth:480},children:[o&&c.jsx(jo,{label:"Count only",hint:c.jsx(c.Fragment,{children:"Get just the number of rows matching $filter, up to 5,000 (500 for elastic tables). The other clauses aren't sent."}),children:c.jsx(co,{checked:r,onChange:(i,l)=>o(l.checked),"aria-label":"Count only"})}),c.jsx(jo,{label:r?"Count only includes @odata.count":e?"Including @odata.count":"Not including @odata.count",children:c.jsx(co,{checked:e||r,disabled:r,onChange:(i,l)=>t(l.checked)})}),c.jsxs(ar,{size:200,style:{color:T.colorNeutralForeground3},children:["When you also need to know whether the count is capped, add the"," ",c.jsx("code",{children:"Microsoft.Dynamics.CRM.totalrecordcount"})," and"," ",c.jsx("code",{children:"totalrecordcountlimitexceeded"})," annotations via Prefer. Past 5,000 rows, the"," ",c.jsx("code",{children:"RetrieveTotalRecordCount"})," function gives a total from the last 24 hours."]})]})]})}function Nhe({parentEntity:e,siblings:t,rootExpand:r,breadcrumb:o,parentCardinality:n,onAdd:a,onPickExisting:i,onRemove:l,group:d="read"}){const f=_t(),p=fe(e),h=n!==null,v=n==="ManyToMany",y=n==="OneToMany",x=Vo(),b=Cge(e,t,{parentCardinality:n,advancedFindOnly:x}),k=Lx(r),N=!Jg(r)&&t.some(z=>Db(e,z)),B=g_(r),C=k>=Si;return c.jsxs("div",{children:[c.jsx(Un,{icon:C1,title:"$expand",sub:`${p?.displayName??e} · pick navigation properties to inline related rows.`,group:d,children:c.jsxs(ct,{appearance:"ghost",children:[t.length," at this level"]})}),o.length>1&&c.jsxs("div",{style:{marginBottom:14,display:"flex",alignItems:"center",gap:6,flexWrap:"wrap"},children:[c.jsx(Pe,{style:{color:T.colorNeutralForeground3},children:"Path:"}),o.map((z,R)=>c.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:[R>0&&c.jsx("span",{style:{color:T.colorNeutralForeground4},children:"→"}),c.jsx(Pe,{style:{fontFamily:T.fontFamilyMonospace,color:R===o.length-1?T.colorBrandForeground1:T.colorNeutralForeground2,fontWeight:R===o.length-1?600:400},children:z.label})]},z.path))]}),C&&c.jsx(Ue,{layout:"multiline",intent:"error",style:{marginBottom:12},children:c.jsxs(Ge,{children:[c.jsxs("strong",{children:[k," of ",Si," expand slots used."]})," ","Dataverse rejects any query with more than ",Si," ",c.jsx("code",{children:"$expand"})," ","options total — remove some before adding more."]})}),!C&&k>=Si-3&&c.jsx(Ue,{layout:"multiline",intent:"warning",style:{marginBottom:12},children:c.jsxs(Ge,{children:[c.jsxs("strong",{children:[k," of ",Si," expand slots used."]})," ","Each expand is a server-side join — keep this list lean."]})}),B>3&&c.jsx(Ue,{layout:"multiline",intent:"warning",style:{marginBottom:12},children:c.jsxs(Ge,{children:["Expand depth is ",c.jsx("strong",{children:B}),". Every nested expand is another join — keep depth shallow for performance."]})}),N&&!h&&c.jsx(Ue,{layout:"multiline",intent:"info",style:{marginBottom:12},children:c.jsxs(Ge,{children:["Collections without a nested ",c.jsx("code",{children:"$expand"})," aren't paginated — Dataverse can return up to ",c.jsx("strong",{children:"5,000 related rows per parent record"}),". Add a nested"," ",c.jsx("code",{children:"$expand"})," or a top-level ",c.jsx("code",{children:"Prefer: odata.maxpagesize"})," to control the size."]})}),v&&c.jsx(Ue,{layout:"multiline",intent:"error",style:{marginBottom:12},children:c.jsxs(Ge,{children:["The enclosing expand is a ",c.jsx("strong",{children:"many-to-many (N:N)"})," relationship."," ",c.jsx("strong",{children:"Dataverse rejects any nested $expand inside an N:N"})," with:"," ",c.jsx("em",{children:`"The navigation property '…' cannot be expanded. Only many-to-one relationships are supported for nested expansion."`})]})}),y&&c.jsx(Ue,{layout:"multiline",intent:"info",style:{marginBottom:12},children:c.jsxs(Ge,{children:["You're inside a ",c.jsx("strong",{children:"collection (1:N)"})," expand. You can nest either"," ",c.jsx("strong",{children:"many-to-one (N:1)"})," or ",c.jsx("strong",{children:"one-to-many (1:N)"})," relationships here. ",c.jsx("strong",{children:"N:N navs are hidden"})," — Dataverse rejects N:N expansion anywhere in a query that uses nested $expand. Also: ",c.jsx("code",{children:"$top"})," and ",c.jsx("code",{children:"$orderby"})," ","aren't supported inside this expand."]})}),h&&!v&&!y&&c.jsx(Ue,{layout:"multiline",intent:"info",style:{marginBottom:12},children:c.jsxs(Ge,{children:["You're inside a ",c.jsx("strong",{children:"single-valued (N:1)"})," expand. All cardinalities can be nested here (e.g. the classic ",c.jsx("code",{children:"tasks → contact → account → systemuser"})," chain in the docs)."]})}),c.jsxs("section",{style:{marginBottom:18},children:[c.jsx(tB,{style:{marginBottom:8,display:"block"},children:"Currently expanded at this level"}),t.length===0&&c.jsx(Pe,{style:{color:T.colorNeutralForeground3,fontStyle:"italic"},children:"None — pick a navigation property below to add one."}),t.length>0&&c.jsx("div",{style:{display:"flex",flexDirection:"column",gap:6},children:t.map(z=>{const R=p?.navigationProperties.find(I=>I.name===z.nav),E=R?fe(R.targetEntity):void 0,D=Db(e,z);return c.jsxs("div",{className:F(f.inlineCard),style:{padding:"10px 12px",display:"grid",gridTemplateColumns:"auto 1fr auto auto",gap:10,alignItems:"center"},children:[c.jsx(Cs,{style:{color:T.colorBrandForeground1}}),c.jsxs("div",{style:{minWidth:0},children:[c.jsx("div",{style:{fontFamily:T.fontFamilyMonospace,fontWeight:600},children:z.nav}),c.jsxs(Pe,{style:{color:T.colorNeutralForeground3},children:["→ ",E?.displayName??R?.targetEntity??"?"," · ",R?.cardinality,D?" (collection)":" (single)"," · ",z.select.length?`${z.select.length} cols`:"all cols",z.filter?.rules.length?` · ${z.filter.rules.length} filter`:"",z.orderby.length?` · ${z.orderby.length} sort`:"",z.top?` · top ${z.top}`:"",z.nestedExpand?.length?` · ${z.nestedExpand.length} nested`:""]})]}),c.jsx(pe,{size:"small",appearance:"outline",icon:c.jsx(jC,{}),onClick:()=>i(z.id),children:"Edit"}),c.jsx(st,{content:"Remove this expand",relationship:"label",children:c.jsx(pe,{size:"small",appearance:"subtle",icon:c.jsx(mn,{}),onClick:()=>l(z.id),"aria-label":"Remove expand"})})]},z.id)})})]}),c.jsxs("section",{children:[c.jsx(tB,{style:{marginBottom:8,display:"block"},children:"Add navigation property"}),b.length===0?c.jsx(Pe,{style:{color:T.colorNeutralForeground3,fontStyle:"italic"},children:"All eligible navigation properties at this level are already expanded."}):c.jsx(zhe,{available:b,onAdd:a,capExceeded:C})]})]})}function zhe({available:e,onAdd:t,capExceeded:r}){const[o,n]=m.useState(null),[a,i]=m.useState(""),l=m.useMemo(()=>{if(!a)return e;const h=a.toLowerCase();return e.filter(v=>v.name.toLowerCase().includes(h)||v.targetEntity.toLowerCase().includes(h)||v.cardinality.toLowerCase().includes(h)||(fe(v.targetEntity)?.displayName.toLowerCase()??"").includes(h))},[e,a]),d=o?e.find(h=>h.name===o):null,f=d?fe(d.targetEntity):null,p=d?.cardinality==="OneToMany"||d?.cardinality==="ManyToMany";return c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:10,maxWidth:720},children:[c.jsx(jo,{label:"Navigation property",hint:`${e.length} eligible relationship${e.length===1?"":"s"} on this entity. Type to search.`,children:c.jsxs("div",{style:{display:"flex",gap:8,alignItems:"flex-end"},children:[c.jsxs(Ur,{size:"medium",value:o??a,selectedOptions:o?[o]:[],placeholder:"Search relationships…",onChange:h=>{const v=h.target.value;i(v),o&&v!==o&&n(null)},onOptionSelect:(h,v)=>{n(v.optionValue??null),i("")},style:{flexGrow:1},children:[l.map(h=>{const v=fe(h.targetEntity),y=h.cardinality==="OneToMany"||h.cardinality==="ManyToMany";return c.jsx(at,{value:h.name,text:h.name,children:c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[c.jsx("span",{style:{fontFamily:T.fontFamilyMonospace,fontWeight:600,color:T.colorNeutralForeground1},children:h.name}),c.jsxs("span",{style:{fontSize:11,color:T.colorNeutralForeground3},children:["→ ",v?.displayName??h.targetEntity,c.jsx("span",{style:{marginLeft:8,fontFamily:T.fontFamilyMonospace},children:h.cardinality}),c.jsx("span",{style:{marginLeft:8},children:h.cardinality==="ManyToMany"?"(N:N — no nesting)":y?"(collection)":"(single)"})]})]})},h.name)}),l.length===0&&c.jsx(at,{value:"__none",text:"",disabled:!0,children:c.jsxs("span",{style:{color:T.colorNeutralForeground3,fontSize:12},children:['No matches for "',a,'"']})})]}),c.jsx(pe,{appearance:"primary",icon:c.jsx(js,{}),disabled:!o||r,onClick:()=>{o&&(t(o),n(null),i(""))},children:"Add"})]})}),d&&c.jsxs("div",{className:F(),style:{padding:"10px 12px",borderRadius:T.borderRadiusMedium,backgroundColor:T.colorNeutralBackground2,border:`1px solid ${T.colorNeutralStroke2}`,display:"flex",alignItems:"flex-start",gap:10},children:[c.jsx(Cs,{style:{color:T.colorBrandForeground1,marginTop:2}}),c.jsxs("div",{style:{flexGrow:1,minWidth:0},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[c.jsx("span",{style:{fontFamily:T.fontFamilyMonospace,fontWeight:600},children:d.name}),c.jsxs("span",{style:{color:T.colorNeutralForeground3,fontSize:12},children:["→ ",f?.displayName??d.targetEntity]}),c.jsx(ct,{appearance:"ghost",size:"small",children:d.cardinality})]}),c.jsxs("div",{style:{display:"flex",gap:4,marginTop:6,flexWrap:"wrap"},children:[c.jsx(Pe,{style:{color:T.colorNeutralForeground3,marginRight:6},children:"Inner clauses you'll be able to set:"}),c.jsx(ct,{size:"small",appearance:"ghost",children:"$select"}),c.jsx(ct,{size:"small",appearance:"ghost",children:"$filter"}),p&&c.jsxs(c.Fragment,{children:[c.jsx(ct,{size:"small",appearance:"ghost",children:"$orderby"}),c.jsx(ct,{size:"small",appearance:"ghost",children:"$top"})]}),d.cardinality!=="ManyToMany"&&c.jsx(ct,{size:"small",appearance:"ghost",children:"$expand (nested ManyToOne)"})]})]})]})]})}function The({path:e,rootEntity:t,rootExpand:r,setRootExpand:o,setActivePath:n,group:a="read"}){const i=e.split("/"),l=(()=>{let R=t,E=r;const D=[{label:fe(t)?.displayName??t,path:"expand"}];let I=null,M=null,O=1,H="expand";for(;O<i.length;){const $=i[O],Z=E.find(X=>X.id===$);if(!Z)return{activeExpand:null,activeClause:null,parentEntity:R,siblings:E,breadcrumb:D,parentCardinality:I};M=Z,H=`${H}/${$}`;const q=fe(R)?.navigationProperties.find(X=>X.name===Z.nav);if(D.push({label:Z.nav,path:H}),!q)return{activeExpand:M,activeClause:null,parentEntity:R,siblings:E,breadcrumb:D,parentCardinality:I};const A=i[O+1];if(!A)return{activeExpand:M,activeClause:"select",parentEntity:R,siblings:E,breadcrumb:D,parentCardinality:I};if(A==="expand"){I=q.cardinality,R=q.targetEntity,E=M.nestedExpand??[],H=`${H}/expand`,D.push({label:"expand",path:H}),O+=2;continue}return{activeExpand:M,activeClause:A,parentEntity:R,siblings:E,breadcrumb:D,parentCardinality:I}}return{activeExpand:null,activeClause:null,parentEntity:R,siblings:E,breadcrumb:D,parentCardinality:I}})(),d=(R,E)=>{o(f_(r,R,E))},f=R=>{o(p_(r,R));const E=e.indexOf(`/${R}`),D=E>0?e.slice(0,E):"expand";n(D)},p=(R,E)=>{o(m_(r,R,E))},h=l.activeExpand,v=h?Bge(r,h.id,t)??l.parentEntity:l.parentEntity,y=fe(v),x=h?y?.navigationProperties.find(R=>R.name===h.nav):void 0,{loading:b}=bc(x?.targetEntity??null);if(l.activeExpand===null)return c.jsx(Nhe,{parentEntity:l.parentEntity,siblings:l.siblings,rootExpand:r,breadcrumb:l.breadcrumb,parentCardinality:l.parentCardinality,onAdd:R=>{const E=i.lastIndexOf("expand"),D=E>0?i[E-1]:null;p(D,R)},onPickExisting:R=>{n(`${e}/${R}/select`)},onRemove:R=>f(R),group:a});const k=l.activeExpand,S=x,N=jge(v,k),B=Db(v,k);if(!N)return S?.targetEntity&&b?c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,padding:12},children:[c.jsx(jr,{size:"extra-small"}),c.jsxs("span",{style:{color:T.colorNeutralForeground3,fontSize:12},children:["Loading metadata for ",c.jsx("code",{children:S.targetEntity}),"…"]})]}):c.jsx(Ue,{layout:"multiline",intent:"error",children:c.jsxs(Ge,{children:["Couldn't resolve the target entity for navigation property ",c.jsx("code",{children:k.nav}),".",S?.targetEntity&&c.jsxs(c.Fragment,{children:[" ","Tried ",c.jsx("code",{children:S.targetEntity}),"."]})]})});const C=l.activeClause,z=Jg(r);return c.jsx(_he,{clause:C??"select",targetEntity:N.logicalName,expand:k,isCollection:B,breadcrumb:l.breadcrumb,queryHasNestedExpand:z,onPatch:R=>d(k.id,R),group:a})}function _he({clause:e,targetEntity:t,expand:r,isCollection:o,breadcrumb:n,queryHasNestedExpand:a,onPatch:i,group:l}){const d=c.jsxs("div",{style:{marginBottom:14,display:"flex",alignItems:"center",gap:6,flexWrap:"wrap"},children:[c.jsx(Pe,{style:{color:T.colorNeutralForeground3},children:"Editing inside:"}),n.map((p,h)=>c.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:[h>0&&c.jsx("span",{style:{color:T.colorNeutralForeground4},children:"→"}),c.jsx(Pe,{style:{fontFamily:T.fontFamilyMonospace,color:h===n.length-1?T.colorBrandForeground1:T.colorNeutralForeground2,fontWeight:h===n.length-1?600:400},children:p.label})]},p.path))]});if(!o&&(e==="orderby"||e==="top"))return c.jsxs("div",{children:[d,c.jsx(Ue,{layout:"multiline",intent:"info",children:c.jsxs(Ge,{children:[c.jsxs("code",{children:["$",e]})," isn't allowed on a single-valued navigation property (",c.jsx("code",{children:r.nav}),"). Per the Dataverse docs, an ",c.jsx("code",{children:"$expand"})," on a many-to-one relationship only accepts",c.jsx("code",{children:" $select"}),", ",c.jsx("code",{children:"$filter"}),", and a nested ",c.jsx("code",{children:"$expand"}),"."]})})]});const f=a&&(e==="top"||e==="orderby");switch(e){case"select":return c.jsxs("div",{children:[d,c.jsx(R_,{table:t,selectedIds:r.select,setSelectedIds:p=>i({select:p}),group:l})]});case"filter":return c.jsxs("div",{children:[d,c.jsx(Rx,{table:t,tree:r.filter??xT(),setTree:p=>i({filter:p}),group:l})]});case"orderby":return c.jsxs("div",{children:[d,f&&c.jsx(J3,{clause:"$orderby"}),c.jsx(z7,{table:t,items:r.orderby,setItems:p=>i({orderby:p}),group:l})]});case"top":return c.jsxs("div",{children:[d,f&&c.jsx(J3,{clause:"$top"}),c.jsx(D_,{top:r.top??null,setTop:p=>i({top:p}),maxPageSize:null,group:l})]});default:return c.jsxs("div",{children:[d,c.jsx(Ue,{layout:"multiline",intent:"info",children:c.jsxs(Ge,{children:["Unknown clause ",c.jsx("code",{children:e})," for expand ",c.jsx("code",{children:r.nav}),"."]})})]})}}function J3({clause:e}){return c.jsx(Ue,{layout:"multiline",intent:"error",style:{marginBottom:12},children:c.jsxs(Ge,{children:["The query contains a nested ",c.jsx("code",{children:"$expand"}),", so ",c.jsx("code",{children:e})," is no longer accepted by Dataverse on any expand — the server returns:"," ",c.jsx("em",{children:'"Only $select and $filter clause can be provided while doing $expand on many-to-one relationship or nested one-to-many relationship."'}),"Remove all nested expands first, or accept that this value will be ignored."]})})}const Rhe=m.lazy(()=>cr(()=>import("./CodeView-C65Y5vXN.js").then(e=>e.a),__vite__mapDeps([4,2]),import.meta.url).then(e=>({default:e.CodeView})));function Dhe(e){return c.jsx(m.Suspense,{fallback:c.jsx(jr,{size:"small",label:"Loading code…"}),children:c.jsx(Rhe,{...e})})}const Q3={"0x80072322":{limit:"number of requests",advice:"Dataverse allows about 6,000 requests per user in 5 minutes. Wait a few minutes before sending more. Fewer, larger requests help: a bigger page size, or modest Bulk Write and $batch sizes (a batch is one request, but its work counts toward the execution-time limit)."},"0x80072321":{limit:"execution time",advice:"Requests used about 20 minutes of server time in 5 minutes. Wait a few minutes, then make each request lighter: fewer columns ($select), simpler filters, smaller pages or smaller batches."},"0x80072326":{limit:"concurrent requests",advice:"Too many requests were running at once (the limit is 52 or more). Try again in a moment, once the others finish."}},Ehe={limit:"too many requests",advice:"Dataverse is throttling requests from your user. Wait a few minutes, then try again."},Phe="Dataverse counts these limits per user on each server, so other apps and flows signed in as you count too.",Mhe="https://learn.microsoft.com/power-apps/developer/data-platform/api-limits";function qb(e){if(!e)return null;const t=e.body?.error,r=(t?.code??/\b0x8007232[126]\b/i.exec(t?.message??"")?.[0])?.toLowerCase();return r&&Q3[r]?{code:r,...Q3[r]}:e.status===429?Ehe:null}const qhe=/Error invoking remote method '[^']*':\s*(?:Error:\s*)?/g;function Fhe(e){return e.replace(qhe,"").trim()||e}function Ihe(e){let t=0;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);if(o<128)t+=1;else if(o<2048)t+=2;else if(o>=55296&&o<=56319&&r+1<e.length){const n=e.charCodeAt(r+1);n>=56320&&n<=57343?(t+=4,r++):t+=3}else t+=3}return t}function Vm(e){return e==null?0:Ihe(JSON.stringify(e))}function Ahe(e){const t={done:0,skipped:0,failed:0,"rolled-back":0};for(const r of e?.targets??[])t[r.state]++;return t}function Jye(e,t){if(!e)return null;const r=e.targets?Ahe(e).done:e.ok?t:0;return e.ok||r>0?r:null}const Zx={200:"OK",201:"Created",204:"No Content",304:"Not Modified",400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",409:"Conflict",412:"Precondition Failed",429:"Too Many Requests",500:"Internal Server Error",501:"Not Implemented"};function E_(e){return e>=200&&e<300?"ok":e===401?"401":e===403?"403":e===404?"404":"error"}function P_(e){return Zx[e]}function Ohe(e){return typeof e=="object"&&e!==null}const Vd="DRS.HeaderConsentDeclined",M_="DRS.HeaderRejected",Lhe=/additional headers were rejected|header consent/i,$he=/invalid dataverse header|conflicting duplicate dataverse header|additional dataverse headers/i,Hhe={"0x80040217":404,"0x80040220":403,"0x80040237":412,"0x80060882":412,"0x80060888":400,"0x80072322":429,"0x80072321":429,"0x80072326":429};function q_(e){return/\b0x8[0-9a-fA-F]{7}\b/.exec(e)?.[0]}function Vhe(e){const t=/\b(?:HTTP|status code) (\d{3})\b/.exec(e);if(t)return Number(t[1]);const r=q_(e);return r?Hhe[r.toLowerCase()]:void 0}function ia(e,t,r,o){const{code:n,...a}=t;return{status:e,statusText:o??Zx[e]??(e?"Error":"Status not reported by host"),ms:r,bytes:0,ok:!1,outcome:E_(e),body:{error:t.code?t:a},headers:{}}}function Nt(e,t,r){if(e instanceof fc)return ia(501,{code:"HostNotAvailable",message:"Running standalone: Execute needs the PPTB host. Build the request here and copy it from the Code tab, or open DRS inside Power Platform ToolBox."},t);const o=Ohe(e)?e:{},n=o.message??o.innererror?.message??String(e),a=Fhe(n),i=n!==a?{rawMessage:n}:{};if(r&&Lhe.test(a))return ia(403,{code:Vd,message:`Power Platform ToolBox didn't send this request because its headers (${Object.keys(r).join(", ")}) weren't approved, so nothing reached Dataverse. Execute again and allow the headers when ToolBox asks. Host message: ${a}`,...i},t,"Headers not approved");if(r&&$he.test(a))return ia(400,{code:M_,message:`Power Platform ToolBox rejected a request header, so nothing was sent to Dataverse. Fix the header in the Headers or Prefer pane. Host message: ${a}`,...i},t);const l=o.statusCode??o.status??Vhe(a)??0,d=o.code??q_(a);return ia(l,{code:d,message:a,...i},t)}function Dr(e,t,r){const o=Vm(t);return{status:e,statusText:Zx[e]??"OK",ms:r,bytes:o,ok:e>=200&&e<300,outcome:E_(e),body:t,headers:{}}}function Kx(e,t){return ia(501,{code:"0x80048345",message:`${e} isn't supported through the PPTB Dataverse API today. Build the request here and run it from an external Web API client.`},t)}async function no(e,t){const r=performance.now();try{const o=await e();return{ms:Math.round(performance.now()-r),value:o}}catch(o){return Nt(o,Math.round(performance.now()-r),t)}}function _o(e,t={}){const r=l=>Nt({statusCode:400,message:`Not sent: ${l}`},0),o=yme(e);if(o)return r(o);if(!Ea()||On()||!e)return null;const n="update ToolBox (1.2.7 or later), or copy the request from the Code tab.",a=Object.keys(hd(e)??{}).find(W8);if(a)return r(`this version of Power Platform ToolBox can't send ${a}, so the request would run as you, not as the user it names. Turn the header off to run it as yourself, or ${n}`);const i=t.bypass&&Object.keys(hd(e)??{}).find(gme);return i?r(`this version of Power Platform ToolBox can't send ${i}, so plug-ins and flows would still run. Turn the header off to run them, or ${n}`):null}function Gn(e){return On()?hd(e):void 0}function Ir(e){return typeof e=="object"&&e!==null&&"ok"in e&&"status"in e}function Wd(e,t){return On()?wme(e,t):void 0}const F_=e=>/odata\.maxpagesize=/i.test(e?.Prefer??"");async function Whe(e,t){const r=_o(t);if(r)return r;if(e.countOnly)return Zhe(e,t);const o=Wd(t,e.prefer.maxpagesize),n=!F_(o)&&!h_(e.expand,e.table),a=Xg(e,{keepTop:n}),i=await no(()=>gr.queryData(a.relativeNoBase,o),o);return Ir(i)?i:Dr(200,i.value,i.ms)}const Uhe="DRS.CountUnreadable";function Ghe(e){if(!e||typeof e!="object")return null;const t=e,r=t["@odata.count"];if(typeof r!="number"||!Number.isInteger(r)||r<0)return null;const o=t["@Microsoft.Dynamics.CRM.totalrecordcountlimitexceeded"];return typeof o=="boolean"?{count:r,limitExceeded:o}:{count:r}}async function Zhe(e,t){const r=Wd(t,null),o=r?{...r,Prefer:P8}:void 0,n=Xg(e),a=await no(()=>gr.queryData(n.relativeNoBase,o),o);if(Ir(a))return a;const i=Ghe(a.value);return i?{...Dr(200,i.count,a.ms),...i.limitExceeded!==void 0?{countLimitExceeded:i.limitExceeded}:{}}:{...ia(200,{code:Uhe,message:"Dataverse answered without @odata.count, so there's no count to show."},a.ms),outcome:"error"}}function Zn(e,t=[]){const r=gT(e,t);return r?Nt({statusCode:400,message:`Not sent: ${r}`},0):null}async function Khe(e,t){const r=_o(t);if(r)return r;const o=Zn([["Record id",e.recordId]]);if(o)return o;const n=M8(e),a=Wd(t,null),i=await no(()=>gr.queryData(n.relativeNoBase,a),a);if(Ir(i)&&i.status===304)return{...Dr(304,null,i.ms),ok:!0,outcome:"ok"};if(Ir(i))return i;const l=i.value,d=Array.isArray(l)?l[0]??null:l&&typeof l=="object"?l:null;return Dr(d?200:404,d,i.ms)}async function Xhe(e,t){return I_(e.url,e.prefer.maxpagesize,t)}async function I_(e,t,r){const o=_o(r);if(o)return o;const n=Wd(r,t);let a=e;const i=a.indexOf("/api/data/");if(i>=0){a=a.slice(i+10);const d=a.indexOf("/");d>=0&&(a=a.slice(d+1))}const l=await no(()=>gr.queryData(a,n),n);return Ir(l)?l:Dr(200,l.value,l.ms)}async function Yhe(e,t){const r=_o(t);if(r)return r;if(!e.queryId)return Nt({statusCode:400,message:"Pick a saved query first."},0);const o=Zn([["Query id",e.queryId],["Source row id",e.related?.recordId]],[["Relationship",e.related?.navProperty]]);if(o)return o;const n=lr.peekTable(e.table)??await lr.getTable(e.table);if(!n)return Nt({statusCode:404,message:`Unknown table ${e.table}`},0);const a=e.queryType==="savedQuery"?"savedQuery":"userQuery",i=Wd(t,e.prefer.maxpagesize),l=e.top&&!F_(i)?`&$top=${e.top}`:"";let d=n.entitySetName;if(e.related){const h=e.related;if(!h.sourceTable||!h.navProperty||!h.recordId)return Nt({statusCode:400,message:"Pick the related collection and the source row."},0);const v=lr.peekTable(h.sourceTable)??await lr.getTable(h.sourceTable);if(!v)return Nt({statusCode:404,message:`Unknown table ${h.sourceTable}`},0);d=`${v.entitySetName}(${h.recordId})/${h.navProperty}`}const f=`${d}?${a}=${e.queryId}${l}`,p=await no(()=>gr.queryData(f,i),i);return Ir(p)?p:Dr(200,p.value,p.ms)}async function Jhe(e,t){const r=_o(t);if(r)return r;const o=$d(e),n=Gn(t),a=await no(()=>gr.create(e.table,o,n),n);return Ir(a)?a:Dr(201,a.value,a.ms)}async function Fb(e,t){const r=lr.peekTable(e)??await lr.getTable(e),o=await no(()=>gr.retrieve(e,t,r?.primaryKey?[r.primaryKey]:void 0));if(!Ir(o))return null;const n="This host can't send If-Match: *, so Dataverse Request Studio checks that the record exists before updating.",a=o.body?.error;return o.status===404?ia(404,{code:a?.code,message:`No ${r?.displayName??e} record has the id ${t}, so nothing was updated. ${n}`},o.ms):ia(o.status,{code:a?.code,message:`Nothing was updated: the check that the record exists failed (${a?.message??o.statusText}). `+n,...a?.rawMessage?{rawMessage:a.rawMessage}:{}},o.ms,o.statusText)}async function A_(e,t,r,o){if(Ea()&&!On()){const d=await Fb(e,t);if(d)return d}const n=Gn({...o,...A8}),a=await no(()=>gr.update(e,t,r,n),n);if(!(Ir(a)&&a.body?.error?.code===Vd)||o)return a;const l=await Fb(e,t);return l||no(()=>gr.update(e,t,r))}async function Qhe(e,t){const r=_o(t);if(r)return r;if(!e.recordId)return Nt({statusCode:400,message:"Pick a record to update."},0);const o=Zn([["Record id",e.recordId]]);if(o)return o;if(e.method==="PUT")return Nt({statusCode:400,message:"PUT single-column (PUT /<entityset>(<id>)/<column>) isn't supported by the PPTB host. Its dataverseAPI.update is PATCH-only; there's no raw-request hook for property-path URLs. To set one column from inside PPTB, switch back to PATCH and put a single field in the body. To use the PUT pattern, copy the URL + body from the Code tab and run it outside PPTB."},0);const n=q8(e);if(e.concurrency.kind==="update-only"&&Ea()&&!On()){const l=await Fb(e.table,e.recordId);if(l)return l}const a=Gn(t),i=await no(()=>gr.update(e.table,e.recordId,n,a),a);return Ir(i)?i:Dr(204,null,i.ms)}async function e0e(e,t){const r=_o(t);if(r)return r;if(e.key.kind==="alternate")return Nt({statusCode:400,message:"Alternate-key Upsert (PATCH /<entityset>(<keyCol>='value')) isn't supported by the PPTB host — its dataverseAPI.update only accepts GUID addressing. DRS authored the correct request — copy the URL + body from the Code tab and run it from outside PPTB (Postman / curl / JS SDK / Power Automate)."},0);if(e.key.kind!=="guid"||!e.key.recordId)return Nt({statusCode:400,message:"Pick or enter a record GUID."},0);const o=e.key.recordId,n=Zn([["Record id",o]]);if(n)return n;const a=F8(e),i=Gn(t),l=await no(()=>gr.update(e.table,o,a,i),i);return Ir(l)?l:Dr(204,null,l.ms)}async function t0e(e,t){const r=_o(t);if(r)return r;if(!e.recordId)return Nt({statusCode:400,message:"Pick a record to delete."},0);const o=Zn([["Record id",e.recordId]]);if(o)return o;if(e.scope.kind==="single-property")return Nt({statusCode:400,message:"Single-property DELETE (DELETE /<entityset>(<id>)/<column>) isn't supported by the PPTB host. Its dataverseAPI only does whole-row deletes; there's no raw-request hook for property-path URLs. DRS authored the correct request — copy the URL or the Code-tab fetch snippet and run it from outside PPTB (Postman, curl, the JS SDK, Power Automate, etc.)."},0);const n=Gn(t),a=await no(()=>gr.delete(e.table,e.recordId,n),n);return Ir(a)?a:Dr(204,null,a.ms)}async function r0e(e,t){const r=_o(t);if(r)return r;const o=Zn([["Master record id",e.targetId],["Subordinate record id",e.subordinateId]]);if(o)return o;const n=I8(e),a=Gn(t),i=await no(()=>gr.execute({operationName:"Merge",operationType:"action",parameters:n},a),a);return Ir(i)?i:Dr(204,i.value,i.ms)}function O_(e,t){return!!e&&t>1&&(!Ea()||nne())}const ej=25;async function o0e(e,t,r,o,n){try{const a=lr.peekTable(e)??await lr.getTable(e),i=lr.peekTable(o)??await lr.getTable(o);if(!a?.entitySetName||!i?.primaryKey)return null;const l=new Set;for(let d=0;d<n.length;d+=ej){const p=n.slice(d,d+ej).map(v=>`${i.primaryKey} eq ${v}`).join(" or "),h=await gr.queryData(`/${a.entitySetName}(${t})/${r}?$select=${i.primaryKey}&$filter=${p}`);for(const v of h.value??[]){const y=v[i.primaryKey];typeof y=="string"&&l.add(y.toLowerCase())}}return l}catch(a){if(a instanceof fc)throw a;return null}}async function L_(e,t,r,o,n){const a=[];let i=null;for(const h of e){if(t(h)){a.push({targetId:h,state:"skipped"});continue}try{await r(h),a.push({targetId:h,state:"done"})}catch(v){const y=Nt(v,0,n),x=y.body?.error?.code;if(v instanceof fc||x===Vd)return{...y,ms:Math.round(performance.now()-o)};i??(i=y),a.push({targetId:h,state:"failed",status:y.status,statusText:y.statusText,error:y.body.error})}}const l=Math.round(performance.now()-o),d=a.filter(h=>h.state==="done").length;if(!i)return{...Dr(204,{targets:a},l),targets:a};const p={error:i.body.error,targets:a};return d===0?{...i,ms:l,body:p,bytes:Vm(p),targets:a}:{...i,ms:l,bytes:Vm(p),ok:!1,outcome:"partial",body:p,targets:a}}async function $_(e,t,r,o,n){const a=new Map,i=[];e.forEach((S,N)=>{if(t(S))return;const B=String(i.length+1);a.set(B,N),i.push({...r(S),contentId:B})});const l=new Set(a.values()),d=(S,N)=>e.map((B,C)=>l.has(C)?{targetId:B,state:C===S?"failed":N}:{targetId:B,state:"skipped"}),f=()=>Math.round(performance.now()-o);if(i.length===0){const S=d(null,"done");return{...Dr(204,{targets:S},f()),targets:S}}if(i.length>tj)return Nt({statusCode:400,message:`Not sent: a change set holds at most ${tj} requests, and this one has ${i.length}. Remove targets or turn off All or nothing.`},f());const p=(S,N)=>{const B=S.body.error,C=d(N,"rolled-back"),z=N===null?void 0:C[N];z&&Object.assign(z,{status:S.status,statusText:S.statusText,error:B});const R={error:B,targets:C};return{...S,body:R,bytes:Vm(R),targets:C,changeSet:!0}};let h;try{h=await gr.executeTransaction(i)}catch(S){const N=Nt(S,f(),n),B=N.body?.error?.code;return S instanceof fc||B===Vd?N:p(N,null)}const v=f(),y=h.find(S=>S.status>=400);if(!y){const S=new Set(h.map(C=>C.contentId));if(h.length<i.length||i.some(C=>!S.has(C.contentId)))return p(ia(0,{message:`Power Platform ToolBox returned ${h.length} result(s) for the ${i.length} requests in the change set, so DRS can't tell whether it was applied. Check the links before you Execute again.`},v),null);const B=d(null,"done");return{...Dr(204,{targets:B},v),targets:B,changeSet:!0}}const x=y.body?.error,b={code:x?.code,message:x?.message||y.statusText||`HTTP ${y.status}`},k=y.contentId!==void 0?a.get(y.contentId)??null:null;return p(ia(y.status,b,v,y.statusText||void 0),k)}const tj=1e3;async function n0e(e,t){const r=_o(t,{bypass:!0});if(r)return r;const o=e.sourceId,n=e.navProperty;if(!o||!n)return Nt({statusCode:400,message:"Pick a source record + navigation property."},0);const a=Zn([["Source record id",o],...e.targets.map(S=>["Target record id",S])],[["Navigation property",n]]);if(a)return a;const i=qx(e),l=Yg("relate",t);if(i.length===0)return Nt({statusCode:400,message:"Pick at least one target."},0);const f=(lr.peekTable(e.table)??await lr.getTable(e.table))?.navigationProperties.find(S=>S.name===n),p=f?.cardinality==="ManyToOne",h=f?.targetEntity??"",v=performance.now();if(p){const S=i[0],N=await A_(e.table,o,S.body,l);return Ir(N)?N:Dr(204,null,N.ms)}const y=i.map(S=>S.targetId);let x;try{x=await o0e(e.table,o,n,h,y)}catch(S){return Nt(S,Math.round(performance.now()-v))}const b=Gn(l),k=S=>!!x?.has(S.toLowerCase());if(O_(e.allOrNothing,y.length)){const S=new Map(i.map(N=>[N.targetId,N]));return $_(y,k,N=>H_(S.get(N),b),v,b)}return L_(y,k,S=>gr.associate(e.table,o,n,h,S,b),v,b)}function H_(e,t){const r={method:e.method,url:e.relativeNoBase.replace(/^\//,"")};return t&&Object.keys(t).length>0&&(r.headers={...t}),e.body!==void 0&&(r.body=e.body),r}async function a0e(e,t){const r=_o(t,{bypass:!0});if(r)return r;const o=e.sourceId,n=e.navProperty;if(!o||!n)return Nt({statusCode:400,message:"Pick a source record + navigation property."},0);const a=Zn([["Source record id",o],...e.targetIds.map(v=>["Target record id",v])],[["Navigation property",n]]);if(a)return a;const i=L8(e),l=Yg("relate",t);if(i.length===0)return Nt({statusCode:400,message:"Pick at least one target."},0);const d=performance.now(),f=i.find(v=>v.method==="PATCH");if(f){const v=await A_(e.table,o,f.body??{},l);return Ir(v)?v:Dr(204,null,v.ms)}const p=i.map(v=>v.targetId).filter(v=>!!v),h=Gn(l);if(O_(e.allOrNothing,p.length)){const v=new Map(i.map(y=>[y.targetId,y]));return $_(p,()=>!1,y=>H_(v.get(y),h),d,h)}return L_(p,()=>!1,v=>gr.disassociate(e.table,o,n,v,h),d,h)}async function i0e(e,t){const r=_o(t);if(r)return r;if(!e.actionName)return Nt({statusCode:400,message:"Pick an action."},0);const o=await Ex.find(e.actionName);if(!o)return Nt({statusCode:404,message:`Unknown action ${e.actionName}`},0);const n=C8(e),a=o.binding.kind==="unbound"?void 0:o.binding.entityType;let i;if(o.binding.kind==="entity"){if(!e.boundRecordId)return Nt({statusCode:400,message:`Action '${o.name}' is bound — pick a source record.`},0);const f=Zn([["Bound record id",e.boundRecordId]]);if(f)return f;i=e.boundRecordId}const l=Gn(t),d=await no(()=>gr.execute({operationName:e.actionName,operationType:"action",entityName:a,entityId:i,parameters:n},l),l);return Ir(d)?d:Dr(200,d.value,d.ms)}async function s0e(e,t){const r=_o(t);if(r)return r;if(!e.functionName)return Nt({statusCode:400,message:"Pick a function."},0);const o=await Ex.find(e.functionName);if(!o)return Nt({statusCode:404,message:`Unknown function ${e.functionName}`},0);if(o.binding.kind==="entity"&&!e.boundRecordId)return Nt({statusCode:400,message:`Function '${o.name}' is bound — pick a source record.`},0);if(o.binding.kind==="entity"){const d=Zn([["Bound record id",e.boundRecordId]]);if(d)return d}const n=qpe(o.parameters,e.paramValues);if(n)return Nt({statusCode:400,message:`Not sent: ${n}`},0);o.binding.kind!=="unbound"&&await lr.getTable(o.binding.entityType);const a=Tpe(e);if(!a)return Nt({statusCode:400,message:o.binding.kind==="unbound"?`Couldn't build the URL for function '${o.name}'.`:`Couldn't resolve the entity set for '${o.binding.entityType}' — table metadata isn't available.`},0);const i=Gn(Yg("impersonation",t)),l=await no(()=>gr.queryData(a,i),i);return Ir(l)?l:Dr(200,l.value,l.ms)}async function l0e(e,t){const r=_o(t);if(r)return r;if(!e.workflowId||!e.entityId)return Nt({statusCode:400,message:"Pick a workflow and a record."},0);const o=Zn([["Workflow id",e.workflowId],["Record id",e.entityId]]);if(o)return o;const n=Gn(t),a=await no(()=>gr.execute({operationName:"ExecuteWorkflow",operationType:"action",entityName:"workflow",entityId:e.workflowId,parameters:{EntityId:e.entityId}},n),n);return Ir(a)?a:Dr(204,a.value,a.ms)}async function c0e(e){return Kx("Manage File (chunked upload/download)",0)}async function u0e(e){return Kx("Manage Image (chunked upload/download)",0)}async function d0e(e){return Kx("Manage Attachment/Annotation (chunked upload/download)",0)}function f0e(e,t){return Nt(e,t)}const p0e={success:"success",danger:"danger",warning:"warning",info:"informative"},m0e=fo({badge:{fontWeight:T.fontWeightSemibold,fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap"},onStatic:{color:T.colorNeutralForegroundStaticInverted},ms:{fontWeight:T.fontWeightRegular}});function Xx({status:e,code:t,ms:r}){const o=m0e(),n=e==="success"?`${t} ${typeof t=="number"&&P_(t)||"OK"}`:`${t}`;return c.jsxs(ct,{appearance:"filled",color:p0e[e],shape:"circular",size:"large",icon:e==="success"?c.jsx(Cd,{}):void 0,className:F(o.badge,(e==="success"||e==="danger")&&o.onStatic),children:[n,r!==void 0&&c.jsxs("span",{className:o.ms,children:[" · ",r," ms"]})]})}const g0e=/\b0x8[0-9a-f]{7}\b/i,h0e=/exceeds the maximum size|Request failed:|Connection .*not found|No access token|cannot be empty|Failed to (get|refresh|acquire)/i;function v0e(e){const t=`${e?.code??""} ${e?.message??""}`;return g0e.test(t)?"The PPTB host didn't report an HTTP status. The error message below comes from Dataverse.":h0e.test(t)?"The PPTB host didn't report an HTTP status. The message below comes from the host itself, not from Dataverse.":"The PPTB host didn't report an HTTP status. Inspect the message below for details."}const b0e=e=>(QN({...e,renderRow:()=>null}),e),V_=m.createContext(void 0),y0e=void 0,x0e=()=>{var e;return(e=m.useContext(V_))!=null?e:y0e},w0e=V_.Provider,W_=m.createContext({current:null}),k0e={current:null},U_=()=>{var e;return(e=m.useContext(W_))!=null?e:k0e},S0e=W_.Provider,G_=m.createContext({current:null}),B0e={current:null},Z_=()=>{var e;return(e=m.useContext(G_))!=null?e:B0e},j0e=G_.Provider,C0e=(e,t)=>{const{height:r,itemSize:o,width:n="100%",ariaRowIndexStart:a=2,children:i,listProps:l}=e,d=U_(),f=Z_(),h=JN({...e,children:i},t),v=m.useCallback(({data:b,index:k,style:S,isScrolling:N})=>{const B=b[k];return m.createElement(w0e,{value:a+k},m.createElement(UN,{value:B.rowId},i(B,S,k,N)))},[a,i]),y=m.useCallback(()=>{d.current&&f.current&&f.current.scroll({left:d.current.scrollLeft,behavior:"instant"})},[]),x=m.useCallback(b=>{var k;(k=d.current)==null||k.removeEventListener("scroll",y),d.current=b,b&&b.addEventListener("scroll",y)},[]);return{...h,itemSize:o,height:r,virtualizedRow:v,width:n,ariaRowIndexStart:a,listProps:l,outerRef:x}};function Ib(){return Ib=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Ib.apply(null,arguments)}function rj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ab(e,t){return Ab=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Ab(e,t)}function N0e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ab(e,t)}var oj=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function z0e(e,t){return!!(e===t||oj(e)&&oj(t))}function T0e(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!z0e(e[r],t[r]))return!1;return!0}function Qv(e,t){t===void 0&&(t=T0e);var r,o=[],n,a=!1;function i(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];return a&&r===this&&t(l,o)||(n=e.apply(this,l),a=!0,r=this,o=l),n}return i}var _0e=typeof performance=="object"&&typeof performance.now=="function",nj=_0e?function(){return performance.now()}:function(){return Date.now()};function aj(e){cancelAnimationFrame(e.id)}function R0e(e,t){var r=nj();function o(){nj()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}var n={id:requestAnimationFrame(o)};return n}var e1=-1;function ij(e){if(e===void 0&&(e=!1),e1===-1||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),e1=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return e1}var vl=null;function sj(e){if(e===void 0&&(e=!1),vl===null||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var o=document.createElement("div"),n=o.style;return n.width="100px",n.height="100px",t.appendChild(o),document.body.appendChild(t),t.scrollLeft>0?vl="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?vl="negative":vl="positive-ascending"),document.body.removeChild(t),vl}return vl}var D0e=150,E0e=function(t,r){return t};function P0e(e){var t,r=e.getItemOffset,o=e.getEstimatedTotalSize,n=e.getItemSize,a=e.getOffsetForIndexAndAlignment,i=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,d=e.initInstanceProps,f=e.shouldResetStyleCacheOnItemSizeChange,p=e.validateProps;return t=(function(h){N0e(v,h);function v(x){var b;return b=h.call(this,x)||this,b._instanceProps=d(b.props,rj(b)),b._outerRef=void 0,b._resetIsScrollingTimeoutId=null,b.state={instance:rj(b),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof b.props.initialScrollOffset=="number"?b.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},b._callOnItemsRendered=void 0,b._callOnItemsRendered=Qv(function(k,S,N,B){return b.props.onItemsRendered({overscanStartIndex:k,overscanStopIndex:S,visibleStartIndex:N,visibleStopIndex:B})}),b._callOnScroll=void 0,b._callOnScroll=Qv(function(k,S,N){return b.props.onScroll({scrollDirection:k,scrollOffset:S,scrollUpdateWasRequested:N})}),b._getItemStyle=void 0,b._getItemStyle=function(k){var S=b.props,N=S.direction,B=S.itemSize,C=S.layout,z=b._getItemStyleCache(f&&B,f&&C,f&&N),R;if(z.hasOwnProperty(k))R=z[k];else{var E=r(b.props,k,b._instanceProps),D=n(b.props,k,b._instanceProps),I=N==="horizontal"||C==="horizontal",M=N==="rtl",O=I?E:0;z[k]=R={position:"absolute",left:M?void 0:O,right:M?O:void 0,top:I?0:E,height:I?"100%":D,width:I?D:"100%"}}return R},b._getItemStyleCache=void 0,b._getItemStyleCache=Qv(function(k,S,N){return{}}),b._onScrollHorizontal=function(k){var S=k.currentTarget,N=S.clientWidth,B=S.scrollLeft,C=S.scrollWidth;b.setState(function(z){if(z.scrollOffset===B)return null;var R=b.props.direction,E=B;if(R==="rtl")switch(sj()){case"negative":E=-B;break;case"positive-descending":E=C-N-B;break}return E=Math.max(0,Math.min(E,C-N)),{isScrolling:!0,scrollDirection:z.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},b._resetIsScrollingDebounced)},b._onScrollVertical=function(k){var S=k.currentTarget,N=S.clientHeight,B=S.scrollHeight,C=S.scrollTop;b.setState(function(z){if(z.scrollOffset===C)return null;var R=Math.max(0,Math.min(C,B-N));return{isScrolling:!0,scrollDirection:z.scrollOffset<R?"forward":"backward",scrollOffset:R,scrollUpdateWasRequested:!1}},b._resetIsScrollingDebounced)},b._outerRefSetter=function(k){var S=b.props.outerRef;b._outerRef=k,typeof S=="function"?S(k):S!=null&&typeof S=="object"&&S.hasOwnProperty("current")&&(S.current=k)},b._resetIsScrollingDebounced=function(){b._resetIsScrollingTimeoutId!==null&&aj(b._resetIsScrollingTimeoutId),b._resetIsScrollingTimeoutId=R0e(b._resetIsScrolling,D0e)},b._resetIsScrolling=function(){b._resetIsScrollingTimeoutId=null,b.setState({isScrolling:!1},function(){b._getItemStyleCache(-1,null)})},b}v.getDerivedStateFromProps=function(b,k){return M0e(b,k),p(b),null};var y=v.prototype;return y.scrollTo=function(b){b=Math.max(0,b),this.setState(function(k){return k.scrollOffset===b?null:{scrollDirection:k.scrollOffset<b?"forward":"backward",scrollOffset:b,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},y.scrollToItem=function(b,k){k===void 0&&(k="auto");var S=this.props,N=S.itemCount,B=S.layout,C=this.state.scrollOffset;b=Math.max(0,Math.min(b,N-1));var z=0;if(this._outerRef){var R=this._outerRef;B==="vertical"?z=R.scrollWidth>R.clientWidth?ij():0:z=R.scrollHeight>R.clientHeight?ij():0}this.scrollTo(a(this.props,b,k,C,this._instanceProps,z))},y.componentDidMount=function(){var b=this.props,k=b.direction,S=b.initialScrollOffset,N=b.layout;if(typeof S=="number"&&this._outerRef!=null){var B=this._outerRef;k==="horizontal"||N==="horizontal"?B.scrollLeft=S:B.scrollTop=S}this._callPropsCallbacks()},y.componentDidUpdate=function(){var b=this.props,k=b.direction,S=b.layout,N=this.state,B=N.scrollOffset,C=N.scrollUpdateWasRequested;if(C&&this._outerRef!=null){var z=this._outerRef;if(k==="horizontal"||S==="horizontal")if(k==="rtl")switch(sj()){case"negative":z.scrollLeft=-B;break;case"positive-ascending":z.scrollLeft=B;break;default:var R=z.clientWidth,E=z.scrollWidth;z.scrollLeft=E-R-B;break}else z.scrollLeft=B;else z.scrollTop=B}this._callPropsCallbacks()},y.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&aj(this._resetIsScrollingTimeoutId)},y.render=function(){var b=this.props,k=b.children,S=b.className,N=b.direction,B=b.height,C=b.innerRef,z=b.innerElementType,R=b.innerTagName,E=b.itemCount,D=b.itemData,I=b.itemKey,M=I===void 0?E0e:I,O=b.layout,H=b.outerElementType,$=b.outerTagName,Z=b.style,q=b.useIsScrolling,A=b.width,X=this.state.isScrolling,V=N==="horizontal"||O==="horizontal",oe=V?this._onScrollHorizontal:this._onScrollVertical,ee=this._getRangeToRender(),W=ee[0],L=ee[1],te=[];if(E>0)for(var ue=W;ue<=L;ue++)te.push(m.createElement(k,{data:D,key:M(ue,D),index:ue,isScrolling:q?X:void 0,style:this._getItemStyle(ue)}));var ne=o(this.props,this._instanceProps);return m.createElement(H||$||"div",{className:S,onScroll:oe,ref:this._outerRefSetter,style:Ib({position:"relative",height:B,width:A,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:N},Z)},m.createElement(z||R||"div",{children:te,ref:C,style:{height:V?"100%":ne,pointerEvents:X?"none":void 0,width:V?ne:"100%"}}))},y._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var b=this.props.itemCount;if(b>0){var k=this._getRangeToRender(),S=k[0],N=k[1],B=k[2],C=k[3];this._callOnItemsRendered(S,N,B,C)}}if(typeof this.props.onScroll=="function"){var z=this.state,R=z.scrollDirection,E=z.scrollOffset,D=z.scrollUpdateWasRequested;this._callOnScroll(R,E,D)}},y._getRangeToRender=function(){var b=this.props,k=b.itemCount,S=b.overscanCount,N=this.state,B=N.isScrolling,C=N.scrollDirection,z=N.scrollOffset;if(k===0)return[0,0,0,0];var R=i(this.props,z,this._instanceProps),E=l(this.props,R,z,this._instanceProps),D=!B||C==="backward"?Math.max(1,S):1,I=!B||C==="forward"?Math.max(1,S):1;return[Math.max(0,R-D),Math.max(0,Math.min(k-1,E+I)),R,E]},v})(m.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var M0e=function(t,r){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,r.instance},q0e=P0e({getItemOffset:function(t,r){var o=t.itemSize;return r*o},getItemSize:function(t,r){var o=t.itemSize;return o},getEstimatedTotalSize:function(t){var r=t.itemCount,o=t.itemSize;return o*r},getOffsetForIndexAndAlignment:function(t,r,o,n,a,i){var l=t.direction,d=t.height,f=t.itemCount,p=t.itemSize,h=t.layout,v=t.width,y=l==="horizontal"||h==="horizontal",x=y?v:d,b=Math.max(0,f*p-x),k=Math.min(b,r*p),S=Math.max(0,r*p-x+p+i);switch(o==="smart"&&(n>=S-x&&n<=k+x?o="auto":o="center"),o){case"start":return k;case"end":return S;case"center":{var N=Math.round(S+(k-S)/2);return N<Math.ceil(x/2)?0:N>b+Math.floor(x/2)?b:N}default:return n>=S&&n<=k?n:n<S?S:k}},getStartIndexForOffset:function(t,r){var o=t.itemCount,n=t.itemSize;return Math.max(0,Math.min(o-1,Math.floor(r/n)))},getStopIndexForStartIndex:function(t,r,o){var n=t.direction,a=t.height,i=t.itemCount,l=t.itemSize,d=t.layout,f=t.width,p=n==="horizontal"||d==="horizontal",h=r*l,v=p?f:a,y=Math.ceil((v+o-h)/l);return Math.max(0,Math.min(i-1,r+y-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}});const F0e=e=>{const{slots:t,slotProps:r}=dP(e),{dir:o}=Ve();return m.createElement(t.root,r.root,m.createElement(q0e,{itemSize:e.itemSize,width:e.width,itemData:e.rows,height:e.height,itemCount:e.rows.length,direction:o,outerRef:e.outerRef,...e.listProps},e.virtualizedRow))},K_=m.forwardRef((e,t)=>{const r=C0e(e,t);return b0e(r),F0e(r)});K_.displayName="DataGridBody";const I0e=(e,t)=>{var r;const{targetDocument:o}=Ve(),n=h4({targetDocument:o}),a=m.useRef(null),i=m.useRef(null);let l=e.containerWidthOffset;l===void 0&&(l=e.selectionMode?-44:0,l-=n||0);const d=tz({...e,"aria-rowcount":e.items.length,containerWidthOffset:l},t);return e.resizableColumns&&((r=e.resizableColumnsOptions)==null?void 0:r.autoFitColumns)===!1&&d.root.style&&(d.root.style.minWidth="auto"),{...d,headerRef:a,bodyRef:i}},A0e=(e,t)=>m.createElement(j0e,{value:e.headerRef},m.createElement(S0e,{value:e.bodyRef},rz(e,t))),X_=m.forwardRef((e,t)=>{const r=I0e(e,t);return oz(r),A0e(r,nz(r))});X_.displayName="DataGrid";const O0e=(e,t)=>{const r=x0e();return KN({...e,"aria-rowindex":r},t)},L0e=fo({root:{minWidth:"fit-content"}}),$0e=e=>{const t=L0e();return e.root.className=F(t.root,e.root.className),YN(e),e},Kp=m.forwardRef((e,t)=>{const r=O0e(e,t);return $0e(r),XN(r)});Kp.displayName="DataGridRow";const H0e=(e,t)=>{const r=U_(),o=Z_(),n=m.useCallback(()=>{r.current&&o.current&&r.current.scroll({left:o.current.scrollLeft,behavior:"instant"})},[]),a=m.useCallback(l=>{var d;(d=o.current)==null||d.removeEventListener("scroll",n),o.current=l,l&&l.addEventListener("scroll",n)},[]),i=iz(e,t);return i.root.ref=Le(i.root.ref,a),i},V0e=fo({root:{overflowX:"auto",scrollbarWidth:"none","::-webkit-scrollbar":{width:0,height:0}}}),W0e=e=>{const t=V0e();return e.root.className=F(t.root,e.root.className),lz(e),e},Y_=m.forwardRef((e,t)=>{const r=H0e(e,t);return W0e(r),sz(r)});Y_.displayName="DataGridHeader";function U0e(e,t,r){const o=t?e[t]:void 0;return typeof o=="string"&&o.trim()?`Select ${o.trim()}`:`Select row ${r+1}`}const lj="@OData.Community.Display.V1.FormattedValue",cj="@Microsoft.Dynamics.CRM.associatednavigationproperty",uj="@Microsoft.Dynamics.CRM.lookuplogicalname";function Bl(e,t){if(!e||!t)return null;const r=`${t}${lj}`;if(r in e)return e[r];if(t.startsWith("_")&&t.endsWith("_value"))return e[t];const o=`_${t}_value${lj}`;return o in e?e[o]:e[t]}function G0e(e,t){if(!e||!t)return;const r=e[`${t}${uj}`];if(typeof r=="string")return r;if(!t.startsWith("_")||!t.endsWith("_value")){const o=e[`_${t}_value${uj}`];if(typeof o=="string")return o}}function Z0e(e,t){if(!e||!t)return;const r=e[`${t}${cj}`];if(typeof r=="string")return r;if(!t.startsWith("_")||!t.endsWith("_value")){const o=e[`_${t}_value${cj}`];if(typeof o=="string")return o}}function K0e(e){return e?e.startsWith("__")?!0:e.includes("@OData.")||e.includes("@Microsoft.Dynamics.CRM.")||e.includes("@odata.")||e.includes("@microsoft.dynamics.crm."):!1}function X0e(e){return e?e.filter(t=>!K0e(t)):[]}function Y0e(e,t){let r=e,o;for(const n of t){const a=r?.navigationProperties.find(i=>i.name===n);if(!a)return{table:r,lastNav:o};if(o=a,r=fe(a.targetEntity),!r)return{table:void 0,lastNav:o}}return{table:r,lastNav:o}}function J0e(e){return e.startsWith("_")&&e.endsWith("_value")?e.slice(1,-6):e}function Q0e(e,t,r,o){const n=e.split("."),a=n[n.length-1],i=n.slice(0,-1),{table:l}=t?Y0e(t,i):{table:void 0},d=a.startsWith("_")&&a.endsWith("_value"),f=d?J0e(a):a,p=l?.columns.find(x=>x.logicalName===f),h=o?p?.logicalName??f:p?.displayName??f;let v=h;if(i.length>0){const x=o?l?.logicalName??i[i.length-1]:l?.displayName??i[i.length-1];v=`${h} (${x})`}const y=i.length>0?[...i,f].join("."):f;return{parentTable:l,column:p,displayName:v,logicalName:y,isLookupValue:d,navPath:i}}const Wm="__rowKey",J_=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),Q_=e=>Array.isArray(e)&&e.every(t=>t!=null&&typeof t=="object"&&!Array.isArray(t));function eve(e,t){const r={};for(const[o,n]of Object.entries(e)){const a=o.indexOf("@"),i=a>=0?`${t}.${o.slice(0,a)}${o.slice(a)}`:`${t}.${o}`;r[i]=n}return r}function e9(e,t,r){for(const[o,n]of Object.entries(e)){const a=o.indexOf("@"),i=a>=0?`${t}.${o.slice(0,a)}${o.slice(a)}`:`${t}.${o}`;J_(n)?e9(n,i,r):(Q_(n),r[i]=n)}}function t9(e){const t={},r=[];for(const[n,a]of Object.entries(e)){if(n.includes("@")){if(n.endsWith("@odata.nextLink"))continue;t[n]=a;continue}if(Q_(a)){const l=a.flatMap(d=>t9(d)).map(d=>eve(d,n));r.push({prefix:n,rows:l,nextLink:e[`${n}@odata.nextLink`]});continue}if(J_(a)){e9(a,n,t);continue}t[n]=a}if(r.length===0)return[{...t,[Wm]:"r"}];let o=[t];for(const n of r){if(n.rows.length===0){n.nextLink!=null&&(o=o.map(a=>({...a,[`${n.prefix}@odata.nextLink`]:n.nextLink})));continue}o=o.flatMap(a=>n.rows.map(i=>({...a,...i,...n.nextLink!=null?{[`${n.prefix}@odata.nextLink`]:n.nextLink}:{}})))}return o.map((n,a)=>({...n,[Wm]:`r${a}`}))}function Ob(e){const t=e?.value;return Array.isArray(t)?t.length:void 0}function tve(e){const t=[];let r=0;for(const o of e)for(const n of t9(o))t.push({...n,[Wm]:`r${r++}`});return t}const Ki=fo({booleanCell:{display:"flex",alignItems:"center",gap:T.spacingHorizontalXS},lookupCell:{display:"flex",flexDirection:"column",gap:"2px",minWidth:0},lookupName:{display:"block",fontSize:T.fontSizeBase200,fontWeight:T.fontWeightSemibold,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},lookupType:{display:"block",fontSize:T.fontSizeBase100,color:T.colorNeutralForeground3,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},numberCell:{display:"block",textAlign:"right",fontVariantNumeric:"tabular-nums",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},dateCell:{display:"block",fontVariantNumeric:"tabular-nums",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},picklistCell:{display:"flex",alignItems:"center"},truncateText:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},emptyDash:{color:T.colorNeutralForeground4}}),Ua=()=>{const e=Ki();return c.jsx("span",{className:e.emptyDash,children:"—"})};function rve({value:e,formattedValue:t,col:r}){const o=Ki(),n=e===!0||e===1||e==="1"||e==="true",a=typeof t=="string"&&t||(n?r?.trueOption?.label??"Yes":r?.falseOption?.label??"No");return c.jsxs("div",{className:o.booleanCell,children:[c.jsx(co,{checked:n,disabled:!0}),c.jsx(gn,{size:"small",children:a})]})}function ove({value:e,formattedValue:t,col:r}){const o=Ki(),a=r?.attributeType==="State"||r?.attributeType==="Status"?"filled":"tint";if(t!=null&&t!=="")return c.jsx("div",{className:o.picklistCell,children:c.jsx(ct,{appearance:a,children:String(t)})});const i=typeof e=="number"?e:parseInt(String(e),10);if(Number.isNaN(i))return c.jsx(Ua,{});const f=(r?.options??[]).find(p=>Number(p.value)===i)?.label??String(i);return c.jsx("div",{className:o.picklistCell,children:c.jsx(ct,{appearance:a,children:f})})}function nve({formattedValue:e,targetEntityDisplay:t}){const r=Ki();return e==null||e===""?c.jsx(Ua,{}):c.jsxs("div",{className:r.lookupCell,children:[c.jsx("span",{className:r.lookupName,children:String(e)}),t&&c.jsx("span",{className:r.lookupType,children:t})]})}function ave({value:e,formattedValue:t,col:r}){const o=Ki();if(t!=null&&t!=="")return c.jsx("span",{className:o.numberCell,children:String(t)});if(e==null||e==="")return c.jsx(Ua,{});const n=typeof e=="number"?e:parseFloat(String(e));if(Number.isNaN(n))return c.jsx(Ua,{});const a=r?.attributeType;if(a==="Money")return c.jsxs("span",{className:o.numberCell,children:["$",n.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})]});if(a==="Integer"||a==="BigInt")return c.jsx("span",{className:o.numberCell,children:n.toLocaleString()});const i=(r&&"precision"in r?r.precision:void 0)??2;return c.jsx("span",{className:o.numberCell,children:n.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:i})})}function ive({value:e,formattedValue:t,col:r}){const o=Ki();if(t!=null&&t!=="")return c.jsx("span",{className:o.dateCell,children:String(t)});if(!e)return c.jsx(Ua,{});const n=u8(String(e),r??{});if(!n)return c.jsx(Ua,{});const{date:a,timeZone:i}=n;return r?.format==="DateOnly"||r?.dateTimeBehavior==="DateOnly"?c.jsx("span",{className:o.dateCell,children:a.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric",timeZone:i})}):c.jsx("span",{className:o.dateCell,children:a.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",timeZone:i})})}function sve({value:e,formattedValue:t}){const r=Ki(),o=t??e;return o==null||o===""?c.jsx(Ua,{}):c.jsx("span",{className:r.truncateText,children:String(o)})}function lve({items:e,hasMore:t}){const r=Ki();if(!e.length)return c.jsx(Ua,{});const o=["fullname","name","title","subject","emailaddress1"],n=l=>{for(const d of o){const f=l[d];if(typeof f=="string"&&f)return f}return null},a=e.slice(0,2).map(n).filter(l=>!!l),i=e.length-a.length;return c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,minWidth:0},children:[c.jsxs(ct,{appearance:"tint",color:"informative",children:[e.length," ",e.length===1?"item":"items",t?"+":""]}),a.length>0&&c.jsxs("span",{className:r.truncateText,style:{color:T.colorNeutralForeground2,fontSize:T.fontSizeBase200},children:[a.join(", "),i>0?`, +${i} more`:""]})]})}function cve(e){const{col:t,rawValue:r,formattedValue:o,targetEntityDisplay:n,collectionHasMore:a}=e;if(r==null&&(o==null||o===""))return c.jsx(Ua,{});if(Array.isArray(r)&&r.every(i=>i!=null&&typeof i=="object"))return c.jsx(lve,{items:r,hasMore:a});switch(t?.attributeType){case"Boolean":return c.jsx(rve,{value:r,formattedValue:o,col:t});case"Picklist":case"State":case"Status":case"MultiSelectPicklist":return c.jsx(ove,{value:r,formattedValue:o,col:t});case"Lookup":case"Customer":case"Owner":return c.jsx(nve,{formattedValue:o,targetEntityDisplay:n});case"Integer":case"BigInt":case"Decimal":case"Double":case"Money":return c.jsx(ave,{value:r,formattedValue:o,col:t});case"DateTime":return c.jsx(ive,{value:r,formattedValue:o,col:t});default:return c.jsx(sve,{value:r,formattedValue:o})}}const uve=50,dve=20;function Yx(e){return e?.trim().toLowerCase()||"_"}function r9(e,t){const r=e?.[Yx(t)];return r&&typeof r=="object"?r:{}}function fve(e,t,r){const o=Yx(t),n={...r9(e,t)};for(const[l,d]of Object.entries(r))Number.isFinite(d)&&d>=dve&&(n[l]=Math.round(d));const a=Object.entries(e??{}).filter(([l])=>l!==o),i=a.slice(Math.max(0,a.length-(uve-1)));return Object.fromEntries([...i,[o,n]])}function pve(e,t){const r=Yx(t);return Object.fromEntries(Object.entries(e??{}).filter(([o])=>o!==r))}const o9="",dj="__raw",t1=e=>e==null?"":typeof e=="object"?JSON.stringify(e):String(e);function n9(e,t){if(t.endsWith(dj))return t1(e[t.slice(0,-dj.length)]).toLowerCase();const r=t1(e[t]),o=t1(Bl(e,t));return(o===r?r:`${o}${o9}${r}`).toLowerCase()}function mve(e,t){return e.map(r=>t.map(o=>n9(r,o)).join(o9))}function a9(e){return Object.entries(e).map(([t,r])=>[t,r.trim().toLowerCase()]).filter(([,t])=>t.length>0)}function gve(e,t){return e.trim().length>0||a9(t).length>0}function hve(e,t,r,o){const n=r.trim().toLowerCase(),a=a9(o);return!n&&a.length===0?e:e.filter((i,l)=>(!n||(t[l]??"").includes(n))&&a.every(([d,f])=>n9(i,d).includes(f)))}const fj={medium:44,small:34,"extra-small":24},vve={medium:40,small:34,"extra-small":28},bve=fo({container:{display:"flex",flexDirection:"column",height:"100%",minHeight:0,backgroundColor:T.colorNeutralBackground1,position:"relative"},gridWrapper:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",backgroundColor:T.colorNeutralBackground1,position:"relative",minHeight:0},gridContent:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",width:"100%",minHeight:0},body:{scrollbarGutter:"stable"},row:{boxSizing:"border-box"},headerCellContent:{display:"flex",alignItems:"center",gap:T.spacingHorizontalXS,width:"100%",minWidth:0},headerCellLabel:{fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},sortIndicator:{display:"flex",alignItems:"center",marginLeft:"auto",flexShrink:0},headerCell:{"& > button > span:last-child":{display:"none"}},infoBar:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:T.spacingHorizontalM,padding:"6px 12px",borderTop:`1px solid ${T.colorNeutralStroke2}`,backgroundColor:T.colorNeutralBackground1,fontSize:T.fontSizeBase200,color:T.colorNeutralForeground2,minHeight:"30px",zIndex:1},emptyState:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",color:T.colorNeutralForeground3,fontSize:T.fontSizeBase300},filterRow:{backgroundColor:T.colorNeutralBackground2},filterCell:{paddingTop:"2px",paddingBottom:"2px"},filterInput:{width:"100%",minWidth:0},noMatch:{position:"absolute",left:0,right:0,bottom:0,display:"flex",flexDirection:"column",alignItems:"center",gap:T.spacingVerticalS,paddingTop:T.spacingVerticalXXL,color:T.colorNeutralForeground3,pointerEvents:"none"},filtered:{color:T.colorBrandForeground1,fontWeight:T.fontWeightSemibold},loadingMore:{display:"inline-flex",alignItems:"center",gap:T.spacingHorizontalXS,color:T.colorBrandForeground1,marginLeft:T.spacingHorizontalS}});function yve({body:e,table:t,select:r,expand:o,orderby:n,hasMore:a,isLoadingMore:i,onLoadMore:l,onSelectionChange:d,searchQuery:f="",onClearSearch:p,showFilterRow:h=!1,density:v="medium",status:y,serverTotal:x,preferredColumnOrder:b,onViewChange:k,emptyActions:S}){const N=bve(),[B,C]=ha(),z=B.useLogicalNames,R=B.valueDisplayMode,{targetDocument:E}=Ve(),D=h4({targetDocument:E}),I=m.useRef(null),M=m.useRef(null),[O,H]=m.useState({width:0,height:0}),[$,Z]=m.useState(0),[q,A]=m.useState(new Set),X=v in fj?v:"medium",V=fj[X],oe=`${vve[X]}px`,ee=m.useMemo(()=>{const Ce=e?.value??[];return tve(Ce)},[e]),W=Ob(e)??0,[L,te]=m.useState({});m.useEffect(()=>{h||te({})},[h]);const ue=pj(f,200),ne=pj(L,200),ie=gve(ue,ne),ge=ee.length===0;m.useEffect(()=>{const Ce=I.current;if(!Ce)return;const _e=new ResizeObserver(We=>{for(const Je of We){const{width:wt,height:Ke}=Je.contentRect;H({width:wt,height:Ke})}});return _e.observe(Ce),()=>_e.disconnect()},[ge]),m.useEffect(()=>{const Ce=M.current;if(!Ce)return;const _e=new ResizeObserver(()=>Z(Ce.offsetHeight));return _e.observe(Ce),()=>_e.disconnect()},[ge]),m.useEffect(()=>{A(new Set)},[e]);const Te=!!r&&r.length>0,Ee=m.useMemo(()=>{if(ee.length===0)return[];const Ce=new Set;for(const Ke of ee)for(const Wt of Object.keys(Ke))Ce.add(Wt);const _e=[],We=new Set,Je=Ke=>{!Ke||We.has(Ke)||(We.add(Ke),Ce.has(Ke)&&_e.push(Ke))};if(Te)for(const Ke of r)Je(Ke),Ke.startsWith("_")||Je(`_${Ke}_value`);const wt=(Ke,Wt)=>{if(Ke)for(const Ne of Ke){const Ze=Wt?`${Wt}.${Ne.nav}`:Ne.nav;if(Ne.select&&Ne.select.length>0)for(const ut of Ne.select)Je(`${Ze}.${ut}`),ut.startsWith("_")||Je(`${Ze}._${ut}_value`);else{const ut=[],Rt=`${Ze}.`;for(const tr of Ce)tr.startsWith(Rt)&&ut.push(tr);ut.sort();for(const tr of ut)Je(tr)}Ne.nestedExpand&&Ne.nestedExpand.length&&wt(Ne.nestedExpand,Ze)}};if(wt(o,""),!Te&&b&&b.length>0)for(const Ke of b)Je(Ke),Ke.startsWith("_")||Je(`_${Ke}_value`);if(!Te)for(const Ke of Ce)Je(Ke);return X0e(_e)},[ee,r,o,Te,b]),Me=m.useMemo(()=>mve(ee,Ee),[ee,Ee]),lt=m.useMemo(()=>hve(ee,Me,ue,ne),[ee,Me,ue,ne]),ht=m.useCallback(()=>{te({}),p?.()},[p]),xt=t?fe(t):void 0,vt=m.useMemo(()=>{const Ce=new Map;for(const _e of Ee)Ce.set(_e,Q0e(_e,xt,o,z));return Ce},[Ee,xt?.logicalName,o,z]),Qt=Ce=>{const _e=Ce.endsWith("__raw"),We=vt.get(_e?Ce.slice(0,-5):Ce),Je=(z?We?.logicalName:We?.displayName)??Ce;return _e?`${Je} (Raw)`:Je},pt=m.useMemo(()=>{const Ce=new Map;for(const _e of n??[]){const We=_e.dir==="desc"?"descending":"ascending";Ce.set(_e.col,We),Ce.set(`_${_e.col}_value`,We)}return Ce},[n]),Mt=m.useMemo(()=>Ee.flatMap(Ce=>{const _e=vt.get(Ce),We=pt.get(Ce),Je=Ne=>()=>c.jsxs("span",{className:N.headerCellContent,children:[c.jsxs("span",{className:N.headerCellLabel,children:[z?_e.logicalName:_e.displayName,Ne?` ${Ne}`:""]}),We==="ascending"&&c.jsx("span",{className:N.sortIndicator,children:c.jsx(gA,{})}),We==="descending"&&c.jsx("span",{className:N.sortIndicator,children:c.jsx(mA,{})})]}),wt=Ne=>{const Ze=Ne[Ce],ut=Bl(Ne,Ce);let Rt;if(_e.column?.attributeType==="Lookup"||_e.column?.attributeType==="Customer"||_e.column?.attributeType==="Owner"){const ze=G0e(Ne,Ce)??Z0e(Ne,Ce)??_e.column?.targets?.[0];Rt=ze?fe(ze)?.displayName??ze:void 0}const tr=Array.isArray(Ze)?Ne[`${Ce}@odata.nextLink`]!=null:void 0;return c.jsx(Nl,{truncate:!0,children:cve({col:_e.column,rawValue:Ze,formattedValue:ut,targetEntityDisplay:Rt,collectionHasMore:tr})})},Ke=Ne=>{const Ze=Ne[Ce];return c.jsx(Nl,{truncate:!0,children:Ze==null?c.jsx("span",{style:{color:T.colorNeutralForeground4},children:"—"}):c.jsx("span",{style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontFamily:T.fontFamilyMonospace,fontSize:T.fontSizeBase200},children:String(Ze)})})},Wt=(Ne,Ze)=>{const ut=String(Bl(Ne,Ce)??Ne[Ce]??""),Rt=String(Bl(Ze,Ce)??Ze[Ce]??"");return ut.localeCompare(Rt)};return R==="raw"?[vs({columnId:Ce,compare:Wt,renderHeaderCell:Je(),renderCell:Ke})]:R==="both"&&ee.some(Ze=>{const ut=Bl(Ze,Ce);return ut!=null&&ut!==Ze[Ce]})?[vs({columnId:Ce,compare:Wt,renderHeaderCell:Je(),renderCell:wt}),vs({columnId:`${Ce}__raw`,compare:Wt,renderHeaderCell:Je("(Raw)"),renderCell:Ke})]:[vs({columnId:Ce,compare:Wt,renderHeaderCell:Je(),renderCell:wt})]}),[Ee,vt,pt,R,z,ee,N]),hr=m.useMemo(()=>r9(B.columnWidths,t),[B.columnWidths,t]),[vr,ot]=m.useState({}),zt=m.useRef({widths:{}}),ur=m.useRef(null),po=m.useRef({settings:B,updateSettings:C,table:t});po.current={settings:B,updateSettings:C,table:t};const Gr=m.useCallback(()=>{ur.current&&clearTimeout(ur.current),ur.current=null;const{table:Ce,widths:_e}=zt.current;if(zt.current={widths:{}},Object.keys(_e).length===0)return;const{settings:We,updateSettings:Je}=po.current;Je({...We,columnWidths:fve(We.columnWidths,Ce,_e)})},[]);m.useEffect(()=>(ot({}),Gr),[t,Gr]);const vn=m.useCallback((Ce,_e)=>{const We=String(_e.columnId);ot(wt=>({...wt,[We]:_e.width}));const Je=po.current.table;zt.current.table!==Je&&(Gr(),zt.current={table:Je,widths:{}}),zt.current.widths[We]=_e.width,ur.current&&clearTimeout(ur.current),ur.current=setTimeout(Gr,400)},[Gr]),mo=Object.keys(hr).length>0||Object.keys(vr).length>0,Nr=m.useCallback(()=>{ur.current&&clearTimeout(ur.current),ur.current=null,zt.current={widths:{}},ot({});const{settings:Ce,updateSettings:_e,table:We}=po.current;_e({...Ce,columnWidths:pve(Ce.columnWidths,We)})},[]),Sr=m.useMemo(()=>{const Ce={},_e=We=>{switch(We){case"Uniqueidentifier":return 260;case"DateTime":return 160;case"Boolean":return 110;case"Lookup":case"Customer":case"Owner":return 200;case"Money":return 130;case"Picklist":case"State":case"Status":return 140;case"Memo":return 240;case"Integer":case"BigInt":case"Decimal":case"Double":return 110;default:return 140}};for(const We of Mt){const Je=String(We.columnId),wt=Je.endsWith("__raw")?Je.slice(0,-5):Je,Ke=vt.get(wt),Wt=z?Ke?.logicalName??Je:Ke?.displayName??Je,Ne=Math.ceil(Wt.length*7)+56,Ze=_e(Ke?.column?.attributeType),ut=Math.max(80,Math.min(Ze,200)),Rt=vr[Je]??hr[Je],tr=Rt!=null?Math.max(ut,Rt):Math.max(120,Math.min(Math.max(Ne,Ze),360));Ce[Je]={minWidth:ut,defaultWidth:tr,idealWidth:tr}}return Ce},[Mt,vt,z,vr,hr]);m.useEffect(()=>{if(!k)return;const Ce=Mt.map(_e=>{const We=String(_e.columnId),Je=We.endsWith("__raw"),wt=Je?We.slice(0,-5):We,Ke=vt.get(wt),Wt=(z?Ke?.logicalName:Ke?.displayName)??wt;return{id:We,header:Je?`${Wt} (Raw)`:Wt,sourceCol:wt,showsRaw:Je||R==="raw"}});k({columns:Ce,rows:lt})},[k,Mt,vt,z,R,lt]);const Zr=m.useCallback((Ce,_e)=>{A(_e.selectedItems),d?.(Array.from(_e.selectedItems).map(String))},[d]),Ar=m.useCallback(Ce=>{const _e=Ce[Wm];if(typeof _e=="string")return _e;const We=xt?.primaryKey;return We&&typeof Ce[We]=="string"?Ce[We]:JSON.stringify(Ce).slice(0,64)},[xt?.primaryKey]),er=xt?.primaryName,Uo=m.useCallback(({item:Ce,rowId:_e},We,Je,wt)=>c.jsx(Kp,{style:{...We,height:`${V}px`},className:N.row,selectionCell:{checkboxIndicator:{"aria-label":U0e(Ce,er,Je)}},children:({renderCell:Ke})=>c.jsx(gm,{focusMode:"group",children:wt?c.jsx(eN,{style:{width:"100%"},children:c.jsx(tN,{shape:"rectangle",animation:"pulse",appearance:"translucent"})}):Ke(Ce)})},_e),[N.row,V,er]),bn=m.useCallback(({visibleStopIndex:Ce})=>{if(!a||!l||i||ie)return;const _e=Math.min(10,Math.max(1,Math.floor(lt.length*.1)));Ce>=lt.length-_e&&l()},[a,l,i,ie,lt.length]);if(ee.length===0){const Ce=y?.code;return c.jsxs("div",{className:N.emptyState,style:{flexDirection:"column",gap:6,padding:"32px 16px"},children:[c.jsx("div",{style:{fontSize:T.fontSizeBase400,fontWeight:T.fontWeightSemibold},children:"No records matched"}),c.jsx("div",{style:{fontSize:T.fontSizeBase200,color:T.colorNeutralForeground2,textAlign:"center",maxWidth:520},children:Ce===200?"The request succeeded but Dataverse returned zero rows. Check your $filter / $top — or try removing conditions to widen the result set.":"The request returned no rows."}),S&&c.jsx("div",{style:{display:"flex",gap:8,flexWrap:"wrap",justifyContent:"center",marginTop:8},children:S}),y&&c.jsxs("div",{style:{fontSize:T.fontSizeBase100,fontFamily:T.fontFamilyMonospace,color:T.colorNeutralForeground3,marginTop:8},children:["HTTP ",y.code," · ",y.ms," ms · ",(y.bytes/1024).toFixed(1)," KB"]})]})}return c.jsx("div",{className:N.container,children:c.jsxs("div",{className:N.gridWrapper,children:[c.jsxs("div",{ref:I,className:N.gridContent,children:[c.jsxs(X_,{"aria-label":t??"Results",size:X,items:lt,columns:Mt,sortable:!1,resizableColumns:!0,resizableColumnsOptions:{autoFitColumns:!1},columnSizingOptions:Sr,onColumnResize:vn,selectionMode:"multiselect",selectedItems:q,onSelectionChange:Zr,getRowId:Ar,children:[c.jsxs(Y_,{ref:M,style:{paddingRight:D},children:[c.jsx(Kp,{style:{minHeight:oe,maxHeight:oe},selectionCell:{checkboxIndicator:{"aria-label":"Select all rows"}},children:({renderHeaderCell:Ce})=>c.jsx(Uy,{className:N.headerCell,children:Ce()})}),h&&c.jsx(Kp,{className:N.filterRow,selectionCell:{style:{visibility:"hidden"},"aria-hidden":!0},children:({columnId:Ce})=>{const _e=String(Ce);return c.jsx(gm,{className:N.filterCell,children:c.jsx(Ht,{size:"small",className:N.filterInput,placeholder:"Filter…","aria-label":`Filter ${Qt(_e)}`,value:L[_e]??"",onChange:(We,Je)=>te(wt=>({...wt,[_e]:Je.value}))})})}})]}),c.jsx(K_,{itemSize:V,height:Math.max(0,O.height-$),listProps:{useIsScrolling:!0,className:N.body,onItemsRendered:bn},children:Uo})]}),lt.length===0&&ie&&c.jsxs("div",{className:N.noMatch,style:{top:$},children:[c.jsx("span",{children:"No loaded rows match the search / filters."}),c.jsx(xs,{style:{pointerEvents:"auto"},onClick:ht,children:"Clear filters"})]})]}),c.jsxs("div",{className:N.infoBar,children:[c.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[y&&c.jsx(Xx,{status:y.code>=400?"danger":y.code>=300?"warning":"success",code:y.code,ms:y.ms}),y&&c.jsxs("span",{style:{color:T.colorNeutralForeground3},children:[(y.bytes/1024).toFixed(1)," KB"]}),c.jsxs("span",{children:[c.jsx("strong",{children:W.toLocaleString()})," row",W===1?"":"s",ee.length!==W&&c.jsxs(c.Fragment,{children:[" ","· ",c.jsx("strong",{children:ee.length.toLocaleString()})," grid lines with expanded records"]}),ie&&c.jsxs(c.Fragment,{children:[" · ",c.jsxs("span",{className:N.filtered,children:["Filtered: ",lt.length.toLocaleString()," of ",ee.length.toLocaleString()," ","loaded ",ee.length===W?"rows":"grid lines",a?" (more pages not loaded)":""]})," ",c.jsx(xs,{onClick:ht,children:"Clear filters"})]}),x!=null&&x>=0&&c.jsxs(c.Fragment,{children:[" ","· server total ",c.jsx("strong",{children:x.toLocaleString()})]}),a&&!i&&" · more available",i&&c.jsxs("span",{className:N.loadingMore,children:[c.jsx(jr,{size:"tiny"})," Loading more…"]})]})]}),c.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:10},children:[q.size>0&&c.jsxs("span",{children:[c.jsx("strong",{children:q.size})," selected"]}),mo&&c.jsx(xs,{as:"button",onClick:Nr,children:"Reset column widths"})]})]})]})})}function pj(e,t){const[r,o]=m.useState(e);return m.useEffect(()=>{const n=setTimeout(()=>o(e),t);return()=>clearTimeout(n)},[e,t]),r}const mj=e=>e==null?"":typeof e=="object"?JSON.stringify(e):String(e);function xve(e,t,r){return r==="raw"||t.showsRaw?mj(e[t.sourceCol]):mj(Bl(e,t.sourceCol)??e[t.sourceCol])}function wve(e,t){return t==="raw"?e.filter(r=>!r.id.endsWith("__raw")):e}function gj(e){return/[",\r\n]|^\s|\s$/.test(e)?`"${e.replace(/"/g,'""')}"`:e}const kve=/^(?:[\t\r]|\s*[=+\-@])/,Sve=/^(?:[\t\r]|\s*[=@])/,Bve=/^\s*[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?\s*$/;function Lb(e,t){return!(typeof t=="number"||typeof t=="boolean"?Sve:kve).test(e)||Bve.test(e)?e:`'${e}`}function hj(e,t){const r=Lb(e,t);return(/^\s*"/.test(r)?`'${r}`:r).replace(/[\t\n\r]+/g," ")}function jve(e,t,r){const o=wve(t,r),n=[o.map(a=>gj(Lb(a.header))).join(",")];for(const a of e)n.push(o.map(i=>gj(Lb(xve(a,i,r),a[i.sourceCol]))).join(","));return"\uFEFF"+n.join(`\r
38
+ `)+`\r
39
+ `}function vj(e,t,r=new Date){const o=i=>String(i).padStart(2,"0"),n=`${r.getFullYear()}${o(r.getMonth()+1)}${o(r.getDate())}-${o(r.getHours())}${o(r.getMinutes())}${o(r.getSeconds())}`;return`${(e||"results").replace(/[^\w.-]+/g,"_")}-${n}.${t}`}const Cve=fo({bar:{display:"flex",alignItems:"center",gap:T.spacingHorizontalS,padding:"4px 8px",backgroundColor:T.colorNeutralBackground1,borderBottom:`1px solid ${T.colorNeutralStroke2}`,flexWrap:"wrap"},meta:{display:"inline-flex",alignItems:"center",gap:T.spacingHorizontalXS,color:T.colorNeutralForeground3},spacer:{flexGrow:1},notice:{flexBasis:"100%"}}),zp={medium:"Medium",small:"Small","extra-small":"Extra small"};function Nve({hasMore:e,isLoading:t,isLoadingMore:r,requestUrl:o,body:n,onRefresh:a,onRetrieveAll:i,onStopLoadingMore:l,searchQuery:d,onSearchChange:f,showFilterRow:p,onShowFilterRowChange:h,density:v,onDensityChange:y,table:x,exportView:b}){const k=Cve(),[S,N]=m.useState(!1),[B,C]=m.useState(null),z=e?"Keep fetching @odata.nextLink pages until everything is loaded":ed()?"No more pages to fetch — the response did not include @odata.nextLink. Set Prefer: odata.maxpagesize to enable server-side pagination.":"No more pages to fetch. This ToolBox version can't send Prefer: odata.maxpagesize, so the response uses Dataverse's default 5,000-row page size. To test paging at smaller sizes, use ToolBox 1.2.7+ or export the request via the Code tab.",R=()=>{o&&la(o,"the request URL")},E=()=>{la(JSON.stringify(n,null,2),"the response JSON",{shown:!1})},D=()=>{const $=n?.value??[];if($.length===0)return;const Z=Array.from(new Set($.flatMap(X=>Object.keys(X)))).filter(X=>!X.includes("@")),q=Z.map(X=>hj(X)).join(" "),A=$.map(X=>Z.map(V=>{const ee=X[`${V}@OData.Community.Display.V1.FormattedValue`]??X[`_${V}_value@OData.Community.Display.V1.FormattedValue`]??X[V];return ee==null?"":hj(String(ee),X[V])}).join(" "));la([q,...A].join(`
40
+ `),`${$.length} ${$.length===1?"row":"rows"}`,{shown:!1})},I=async($,Z,q)=>{N(!0),C(null);try{const A=await Lp($,Z,[{name:q.name,extensions:[q.ext]}]);A&&C({intent:"success",text:`Saved to ${A}`})}catch(A){C({intent:"error",text:`Export failed: ${A instanceof Error?A.message:String(A)}`})}finally{N(!1)}},M=$=>{!b||b.rows.length===0||I(vj(x,"csv"),jve(b.rows,b.columns,$),{name:"CSV",ext:"csv"})},O=()=>{I(vj(x,"json"),JSON.stringify(n,null,2),{name:"JSON",ext:"json"})},H=S||!b||b.rows.length===0;return c.jsxs("div",{className:k.bar,children:[c.jsxs(hN,{size:"small","aria-label":"Results actions",children:[c.jsx(st,{content:"Re-run the request",relationship:"description",children:c.jsx(xu,{appearance:"subtle",icon:t?c.jsx(jr,{size:"tiny"}):c.jsx(cg,{}),disabled:t,onClick:a,children:"Refresh"})}),i&&r&&l?c.jsx(st,{content:"Stop fetching pages. Rows loaded so far are kept.",relationship:"description",children:c.jsx(xu,{appearance:"subtle",icon:c.jsx(jr,{size:"tiny"}),onClick:l,children:"Stop"})}):i&&c.jsx(st,{content:z,relationship:"description",children:c.jsx(xu,{appearance:"subtle",icon:r?c.jsx(jr,{size:"tiny"}):c.jsx(Fp,{}),disabled:!e||r,onClick:i,children:"Retrieve all"})}),c.jsx(pm,{}),c.jsx(st,{content:"Copy the resolved request URL",relationship:"description",children:c.jsx(xu,{appearance:"subtle",icon:c.jsx(Ll,{}),disabled:!o,onClick:R,children:"Copy URL"})}),c.jsxs(zi,{children:[c.jsx(qa,{disableButtonEnhancement:!0,children:c.jsx(zu,{appearance:"subtle",size:"small",icon:c.jsx(BC,{}),children:"Copy data"})}),c.jsx(Ti,{children:c.jsxs(Ma,{children:[c.jsx(un,{icon:c.jsx(OI,{}),onClick:D,children:"Copy as TSV (Excel-friendly)"}),c.jsx(un,{icon:c.jsx(ac,{}),onClick:E,children:"Copy JSON envelope"})]})})]}),c.jsxs(zi,{children:[c.jsx(qa,{disableButtonEnhancement:!0,children:c.jsx(zu,{appearance:"subtle",size:"small",icon:S?c.jsx(jr,{size:"tiny"}):c.jsx(dA,{}),disabled:S,children:"Export"})}),c.jsx(Ti,{children:c.jsxs(Ma,{children:[c.jsx(un,{disabled:H,onClick:()=>M("shown"),children:"CSV — values as shown"}),c.jsx(un,{disabled:H,onClick:()=>M("raw"),children:"CSV — raw values (GUIDs, numbers, ISO dates)"}),c.jsx(Oy,{}),c.jsx(un,{disabled:S,onClick:O,children:"JSON — OData envelope"})]})})]}),c.jsx(pm,{}),c.jsx(Ht,{size:"small",appearance:"filled-lighter","aria-label":"Search rows",placeholder:"Search rows…",contentBefore:c.jsx(Ol,{}),value:d,onChange:($,Z)=>f(Z.value),style:{minWidth:220}}),c.jsx(st,{content:"Filter each column of the loaded rows (doesn't change the request)",relationship:"description",children:c.jsx(Bo,{appearance:"subtle",size:"small",icon:c.jsx(Ns,{}),checked:p,onClick:()=>h(!p),children:"Filter row"})}),c.jsxs(zi,{checkedValues:{density:[v]},onCheckedValueChange:($,Z)=>{const q=Z.checkedItems[0];q&&y(q)},children:[c.jsx(qa,{disableButtonEnhancement:!0,children:c.jsx(st,{content:"Row density",relationship:"description",children:c.jsx(zu,{appearance:"subtle",size:"small",icon:c.jsx(LA,{}),children:zp[v]??zp.medium})})}),c.jsx(Ti,{children:c.jsx(Ma,{children:Object.keys(zp).map($=>c.jsx(Y6,{name:"density",value:$,children:zp[$]},$))})})]})]}),c.jsx("span",{className:k.spacer}),B&&c.jsxs(Ue,{intent:B.intent,className:k.notice,children:[c.jsx(Ge,{children:B.text}),c.jsx(In,{containerAction:c.jsx(pe,{appearance:"transparent","aria-label":"Dismiss",icon:c.jsx(Ii,{}),onClick:()=>C(null)})})]})]})}const zve="@OData.Community.Display.V1.FormattedValue",Tve="@Microsoft.Dynamics.CRM.lookuplogicalname";function _ve(e){return e.includes("@")}function $b(e,t){const r=[],o=[],n=[],a=[],i=[],l=new Map;for(const d of Object.keys(e)){const f=d.indexOf("@");if(f<0)continue;const p=d.slice(0,f),h=d.slice(f);l.has(p)||l.set(p,new Map),l.get(p).set(h,e[d])}for(const d of Object.keys(e)){if(_ve(d)){const S=d.indexOf("@"),N=d.slice(0,S);(!N||!Object.prototype.hasOwnProperty.call(e,N))&&i.push({key:d,value:e[d]});continue}const f=e[d],p=t?.navigationProperties.find(S=>S.name===d),h=l.get(d),v=p?.targetEntity,y=p?.targetEntity,x=p?.cardinality;if(Array.isArray(f)){n.push({key:d,value:f,targetEntityLogical:v,targetEntityDisplay:y,cardinality:x});continue}if(f!==null&&typeof f=="object"){o.push({key:d,value:f,targetEntityLogical:v,targetEntityDisplay:y,cardinality:x});continue}if(f===null&&p){a.push({key:d,targetEntityLogical:v,targetEntityDisplay:y,cardinality:x});continue}const b=h?.get(zve),k=h?.get(Tve);r.push({key:d,value:f,formattedValue:b==null?void 0:String(b),lookupTargetLogicalName:k==null?void 0:String(k)})}return{scalars:r,navObjects:o,navCollections:n,navNulls:a,annotations:i}}function i9(e){const t=e.match(/^_(.+)_value$/);return t?t[1]:e}function Rve(e,t){const r=t?.primaryName||(Object.prototype.hasOwnProperty.call(e,"name")?"name":Object.prototype.hasOwnProperty.call(e,"fullname")?"fullname":Object.prototype.hasOwnProperty.call(e,"subject")?"subject":Object.prototype.hasOwnProperty.call(e,"title")?"title":null),o=t?.primaryKey,n=r!=null&&e[r]!=null?String(e[r]):"(unnamed record)",a=o!=null?e[o]:void 0,i=a!=null?String(a):void 0;return{headline:n,subline:i}}function Dve({rows:e,entityLogical:t,level:r}){const o=fe(t),n=m.useMemo(()=>{const h=new Set,v=[];for(const y of e.slice(0,5)){const x=$b(y,o);for(const b of x.scalars)b.key!=="@odata.etag"&&(h.has(b.key)||(h.add(b.key),v.push(b.key)))}return v},[e,o?.logicalName]),a=m.useMemo(()=>e.map(h=>$b(h,o)),[e,o]),[i,l]=m.useState(new Set),d=h=>{l(v=>{const y=new Set(v);return y.has(h)?y.delete(h):y.add(h),y})};if(n.length===0)return c.jsx(Pe,{style:{color:T.colorNeutralForeground3,fontStyle:"italic"},children:"Rows have no scalar fields to show in this grid."});const f=h=>/^_.*_value$/.test(h)?280:h==="@odata.etag"?90:/id$/i.test(h)?280:/^(state|status|.*code|.*type)$/i.test(h)||/(age|count|amount|value|qty|number)$/i.test(h)?130:200,p=a.some(h=>r1(h));return c.jsx("div",{style:{overflow:"auto",maxWidth:"100%"},children:c.jsxs(PN,{size:"small","arial-label":`${t||"related"} rows`,style:{width:"max-content",minWidth:"100%"},children:[c.jsx(IN,{children:c.jsxs(mm,{children:[p&&c.jsx($1,{style:{width:32,minWidth:32}}),n.map(h=>c.jsx($1,{style:{minWidth:f(h)},children:c.jsx("span",{style:{fontFamily:T.fontFamilyMonospace,fontSize:11},children:i9(h)})},h))]})}),c.jsx(TN,{children:e.map((h,v)=>{const y=a[v],x=i.has(v),b=r1(y),k=a.some(S=>r1(S));return c.jsx(Eve,{row:h,rowPartition:y,columns:n,entityLogical:t,level:r,expanded:x,nested:b,hasToggleCol:k,onToggle:()=>d(v)},v)})})]})})}function r1(e){return e.navObjects.length>0||e.navCollections.length>0||e.navNulls.length>0}function Eve({row:e,rowPartition:t,columns:r,entityLogical:o,level:n,expanded:a,nested:i,hasToggleCol:l,onToggle:d}){return a?c.jsxs(mm,{children:[l&&c.jsx(wi,{style:{verticalAlign:"top"},children:c.jsx(pe,{appearance:"subtle",size:"small",icon:c.jsx(ug,{}),onClick:d,"aria-label":"Collapse row"})}),c.jsx(wi,{colSpan:r.length,style:{background:T.colorNeutralBackground2,padding:12},children:c.jsx(Jx,{record:e,entityLogical:o,level:n+1,showHeadline:!1})})]}):c.jsxs(mm,{children:[l&&c.jsx(wi,{style:{verticalAlign:"middle"},children:i?c.jsx(pe,{appearance:"subtle",size:"small",icon:c.jsx(zC,{}),onClick:d,"aria-label":"Expand row to show nested fields"}):null}),r.map(f=>{const p=t.scalars.find(x=>x.key===f);if(!p)return c.jsx(wi,{children:c.jsx("span",{style:{color:T.colorNeutralForeground4},children:"—"})},f);if(p.formattedValue!=null)return c.jsxs(wi,{children:[c.jsx("span",{children:p.formattedValue}),c.jsxs("span",{style:{marginLeft:6,fontFamily:T.fontFamilyMonospace,fontSize:10,color:T.colorNeutralForeground3},children:["(",String(p.value),")"]})]},f);if(p.value==null)return c.jsx(wi,{children:c.jsx("span",{style:{color:T.colorNeutralForeground4},children:"—"})},f);const h=p.value,y=typeof h=="string"&&/^[{(]?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}[)}]?$/.test(h);return c.jsx(wi,{style:{fontFamily:y?T.fontFamilyMonospace:void 0,fontSize:y?11:void 0,maxWidth:480,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:String(h),children:String(h)},f)})]})}function Pve({annotations:e}){return e.length===0?null:c.jsx(rm,{collapsible:!0,style:{marginTop:16},children:c.jsxs(om,{value:"annotations",children:[c.jsx(am,{expandIconPosition:"end",icon:c.jsx(ZI,{}),children:c.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:8},children:[c.jsx(Pe,{style:{color:T.colorNeutralForeground2,fontWeight:600},children:"OData annotations"}),c.jsxs(Pe,{style:{color:T.colorNeutralForeground3},children:["· ",e.length]})]})}),c.jsx(im,{children:c.jsx("div",{style:{display:"grid",gridTemplateColumns:"minmax(200px, 320px) 1fr",rowGap:4,columnGap:12,fontFamily:T.fontFamilyMonospace,fontSize:11,color:T.colorNeutralForeground2},children:e.map(t=>c.jsxs("span",{style:{display:"contents"},children:[c.jsx("span",{style:{color:T.colorBrandForeground1,wordBreak:"break-all"},title:t.key,children:t.key}),c.jsx("span",{style:{wordBreak:"break-all"},children:t.value==null?"—":String(t.value)})]},t.key))})})]})})}const Mve=1,qve=0,Fve=5;function Jx({record:e,entityLogical:t,level:r=0,showHeadline:o=!0}){const n=fe(t),a=$b(e,n),{headline:i,subline:l}=Rve(e,n);return c.jsxs("div",{style:{border:r===0?`1px solid ${T.colorNeutralStroke2}`:"none",borderRadius:T.borderRadiusLarge,padding:r===0?20:0,background:r===0?T.colorNeutralBackground1:"transparent"},children:[o&&r===0&&c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:16},children:[c.jsx(xg,{name:i,primaryText:i,secondaryText:n?.displayName??t??l,tertiaryText:l,size:"large",avatar:{color:"colorful"}}),c.jsx("span",{style:{flexGrow:1}}),c.jsx(ZA,{style:{color:T.colorPaletteGreenForeground1}})]}),c.jsx(Ive,{scalars:a.scalars}),a.navObjects.length>0&&c.jsx(rm,{multiple:!0,collapsible:!0,defaultOpenItems:r<=Mve?a.navObjects.map(d=>`obj-${d.key}`):[],style:{marginTop:16},children:a.navObjects.map(d=>c.jsxs(om,{value:`obj-${d.key}`,children:[c.jsx(am,{expandIconPosition:"end",icon:c.jsx(YI,{}),children:c.jsx(bj,{navKey:d.key,targetDisplay:d.targetEntityDisplay,targetLogical:d.targetEntityLogical,cardinality:d.cardinality})}),c.jsx(im,{children:c.jsx("div",{style:{marginLeft:8,paddingLeft:12,borderLeft:`2px solid ${T.colorNeutralStroke3}`},children:c.jsx(Jx,{record:d.value,entityLogical:d.targetEntityLogical??"",level:r+1,showHeadline:!1})})})]},`obj-${d.key}`))}),a.navCollections.length>0&&c.jsx(rm,{multiple:!0,collapsible:!0,defaultOpenItems:r<=qve?a.navCollections.filter(d=>d.value.length<=Fve).map(d=>`col-${d.key}`):[],style:{marginTop:12},children:a.navCollections.map(d=>c.jsxs(om,{value:`col-${d.key}`,children:[c.jsx(am,{expandIconPosition:"end",icon:c.jsx(bA,{}),children:c.jsx(bj,{navKey:d.key,targetDisplay:d.targetEntityDisplay,targetLogical:d.targetEntityLogical,cardinality:d.cardinality,count:d.value.length})}),c.jsx(im,{children:c.jsx("div",{style:{marginLeft:8,paddingLeft:12,borderLeft:`2px solid ${T.colorNeutralStroke3}`},children:d.value.length===0?c.jsx(Pe,{style:{color:T.colorNeutralForeground3,fontStyle:"italic"},children:"(no related rows)"}):c.jsx(Dve,{rows:d.value,entityLogical:d.targetEntityLogical??"",level:r+1})})})]},`col-${d.key}`))}),a.navNulls.length>0&&c.jsx("div",{style:{marginTop:12,display:"flex",flexDirection:"column",gap:4},children:a.navNulls.map(d=>c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"6px 10px",border:`1px dashed ${T.colorNeutralStroke2}`,borderRadius:T.borderRadiusMedium,color:T.colorNeutralForeground3,fontSize:T.fontSizeBase200},children:[c.jsx(Cs,{style:{opacity:.6}}),c.jsx("span",{style:{fontFamily:T.fontFamilyMonospace},children:d.key}),c.jsxs(Pe,{style:{color:T.colorNeutralForeground4},children:["→ ",d.targetEntityDisplay??d.targetEntityLogical??"?"," ·"]}),c.jsx(Pe,{style:{color:T.colorNeutralForeground4,fontStyle:"italic"},children:"(not set)"})]},`null-${d.key}`))}),a.annotations.length>0&&r===0&&c.jsx(Pve,{annotations:a.annotations})]})}function Ive({scalars:e}){return e.length===0?null:c.jsx("div",{style:{display:"grid",gridTemplateColumns:"minmax(120px, 200px) 1fr",rowGap:8,columnGap:16,alignItems:"baseline"},children:e.map(t=>c.jsx(Ave,{s:t},t.key))})}function Ave({s:e}){const t=/^_(.+)_value$/.test(e.key),r=i9(e.key);return c.jsxs(c.Fragment,{children:[c.jsxs("span",{style:{color:T.colorNeutralForeground3,fontSize:T.fontSizeBase200,fontWeight:T.fontWeightSemibold,textTransform:"uppercase",letterSpacing:"0.02em",fontFamily:T.fontFamilyBase,wordBreak:"break-word"},title:e.key,children:[r,t&&c.jsx(ct,{appearance:"ghost",size:"small",style:{marginLeft:6},children:"lookup"})]}),c.jsx("span",{style:{wordBreak:"break-word",fontSize:T.fontSizeBase300},children:c.jsx(Ove,{s:e})})]})}function Ove({s:e}){if(e.value==null)return c.jsx("span",{style:{color:T.colorNeutralForeground4},children:"—"});if(e.formattedValue!=null)return c.jsxs("span",{children:[c.jsx(Rd,{children:e.formattedValue}),c.jsxs("span",{style:{marginLeft:6,fontFamily:T.fontFamilyMonospace,fontSize:11,color:T.colorNeutralForeground3},children:["(",String(e.value),")"]}),e.lookupTargetLogicalName&&c.jsx(ct,{appearance:"tint",size:"small",icon:c.jsx(M2,{}),style:{marginLeft:6,verticalAlign:"middle"},children:e.lookupTargetLogicalName})]});const t=e.value,o=typeof t=="string"&&/^[{(]?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}[)}]?$/.test(t);return c.jsxs("span",{style:{fontFamily:o?T.fontFamilyMonospace:T.fontFamilyBase,fontSize:o?12:T.fontSizeBase300},children:[String(t),e.lookupTargetLogicalName&&c.jsx(ct,{appearance:"tint",size:"small",icon:c.jsx(M2,{}),style:{marginLeft:6,verticalAlign:"middle"},children:e.lookupTargetLogicalName})]})}function bj({navKey:e,targetDisplay:t,targetLogical:r,cardinality:o,count:n}){const a=o==="OneToMany"?"1:N":o==="ManyToOne"?"N:1":o==="ManyToMany"?"N:N":null,i=o==="ManyToOne"?"informative":o==="OneToMany"||o==="ManyToMany"?"brand":"subtle";return c.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:8,minWidth:0},children:[c.jsx("span",{style:{fontFamily:T.fontFamilyMonospace,fontSize:T.fontSizeBase300},children:e}),(t||r)&&c.jsxs(Pe,{style:{color:T.colorNeutralForeground3},children:["→ ",t||r]}),a&&c.jsx(ct,{appearance:"tint",color:i,size:"small",children:a}),typeof n=="number"&&c.jsx(HC,{appearance:"filled",count:n,overflowCount:9999,size:"small"})]})}const o1={Create:"Create",Read:"Read",Write:"Write",Delete:"Delete",Append:"Append",AppendTo:"Append To",Assign:"Assign",Share:"Share"};function Lve(e){if(!e)return null;const t={},r=/\b(prv[A-Z][A-Za-z0-9_]*)/.exec(e)?.[1];if(r){t.privilege=r;const a=/^prv(AppendTo|Append|Assign|Create|Delete|Read|Share|Write)(.*)$/.exec(r);a&&(t.access=o1[a[1]])}const o=/AccessRights:\s*([A-Za-z]+?)Access\b/.exec(e)?.[1];!t.access&&o&&o1[o]&&(t.access=o1[o]);const n=/\bentity '([a-z0-9_]+)'/i.exec(e)?.[1];return n&&(t.entity=n.toLowerCase()),t.privilege||t.access?t:null}function $ve(e){if(!e.privilege)return`Your user doesn't have ${e.access} access to this record${e.entity?` (${e.entity})`:""}. A security role may grant it at too narrow a depth (for example User rather than Business Unit), or the record isn't owned by or shared with you.`;const t=e.access?`${e.access} access${e.entity?` on ${e.entity}`:""}`:e.entity?`access on ${e.entity}`:"",r=`the ${e.privilege} privilege`;return`Your user is missing ${t?`${r} (${t})`:r}. A Dataverse administrator can add it to one of your security roles.`}function Hve(e){return/Resource not found for the segment '([^']+)'/i.exec(e??"")?.[1]??null}function Vve(e,t){const r=Array.from({length:t.length+1},(o,n)=>n);for(let o=1;o<=e.length;o++){let n=r[0];r[0]=o;for(let a=1;a<=t.length;a++){const i=r[a];r[a]=Math.min(r[a]+1,r[a-1]+1,n+(e[o-1]===t[a-1]?0:1)),n=i}}return r[t.length]}function Wve(e,t){const r=e.toLowerCase();if(!r)return null;const o=t.find(d=>d.entitySetName.toLowerCase()===r||d.logicalName.toLowerCase()===r);if(o)return o.entitySetName===e?null:o;const n=Math.max(1,Math.floor(r.length/4));let a=null,i=1/0,l=!1;for(const d of t){const f=Vve(r,d.entitySetName.toLowerCase());f>n||(f<i?(a=d,i=f,l=!1):f===i&&(l=!0))}return l?null:a}function Qye(e,t,r){const o=e.indexOf("?"),n=o===-1?e:e.slice(0,o),a=o===-1?"":e.slice(o),i=n.split("/"),l=i.findIndex(d=>d===t||d.startsWith(`${t}(`));return l===-1?e:(i[l]=r+i[l].slice(t.length),i.join("/")+a)}function Uve({result:e,method:t,requestUrl:r,operation:o,at:n=new Date}){const a=e.body?.error,i=e.status?`${e.status} ${e.statusText||P_(e.status)||""}`.trim():`none (${e.statusText||"the host reported no HTTP status"})`,l=f=>f.replace(/\bBearer\s+[A-Za-z0-9._~+/=-]+/gi,"Bearer [removed]");return["Dataverse Request Studio: error report",`Time: ${n.toISOString()}`,...o?[`Operation: ${o}`]:[],...r?[`Request: ${t?`${t} `:""}${l(r)}`]:[],`Status: ${i}`,...a?.code?[`Code: ${a.code}`]:[],...a?.message?[`Message: ${l(a.message)}`]:[],`Duration: ${e.ms} ms`].join(`
41
+ `)}const Gve=m.lazy(()=>cr(()=>import("./WriteResultCard-N_Ewu4dP.js"),[],import.meta.url).then(e=>({default:e.WriteResultCard})));function yj(e){return e&&e.startsWith("/")?`https://${rt.host}${e}`:e}function Zve({result:e,table:t,mode:r,select:o,expand:n,orderby:a,requestUrl:i,isLoadingMore:l,onRefresh:d,onLoadMore:f,onRetrieveAll:p,onStopLoadingMore:h,loadMoreError:v,onRetryLoadMore:y,onDismissLoadMoreError:x,loadMoreNotice:b,onContinueLoadMore:k,onDismissLoadMoreNotice:S,writeContext:N,preferredColumnOrder:B,method:C="GET",onEditFilter:z,onRunWithoutFilter:R,onUseEntitySet:E,notice:D,loading:I=!1}){const[M,O]=m.useState("data"),[H,$]=m.useState(""),[Z,q]=ha(),A=Z.gridDensity,[X,V]=m.useState(null),[oe,ee]=m.useState(!1),W=_t();if(kge(e),!e)return c.jsxs("div",{className:W.emptyState,children:[c.jsx(R2,{style:{width:48,height:48,opacity:.5}}),c.jsx(ar,{size:400,weight:"semibold",children:"Nothing run yet"}),c.jsxs(Pe,{children:["Click ",c.jsx("strong",{children:"Execute"})," in the URL bar to run the request."]})]});if(!e.ok&&!N)return c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[D,c.jsx(r1e,{result:e,method:C,requestUrl:yj(i),onUseEntitySet:E,onRetry:d,retrying:I})]});if(typeof e.body=="number")return c.jsx(Xve,{result:e,count:e.body});const L=(z||R||i)&&c.jsxs(c.Fragment,{children:[z&&c.jsx(pe,{icon:c.jsx(Ns,{}),onClick:z,children:"Edit $filter"}),R&&c.jsx(pe,{icon:c.jsx(oO,{}),onClick:R,children:"Run without $filter"}),i&&c.jsx(pe,{icon:c.jsx(Ll,{}),onClick:()=>{la(yj(i)??"","the request URL")},children:"Copy request URL"})]}),te=e.body,ne=!!te?.["@odata.nextLink"],ie=typeof te?.["@odata.count"]=="number"&&te["@odata.count"]>=0?te["@odata.count"]:void 0,ge=M==="data"&&r!=="single";return e.outcome==="empty"?c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8,height:"100%",minHeight:0},children:[c.jsxs(fm,{selectedValue:M,onTabSelect:(Te,Ee)=>O(Ee.value),size:"small",appearance:"subtle",children:[c.jsx(oa,{value:"data",children:r==="single"?"Detail":"Grid"}),c.jsx(oa,{value:"json",children:"JSON"}),c.jsx(oa,{value:"headers",children:"Headers"})]}),c.jsxs("div",{className:W.emptyState,children:[c.jsx(R2,{style:{width:48,height:48,opacity:.5}}),c.jsx(ar,{size:400,weight:"semibold",children:"No results"}),c.jsx(Pe,{children:"The query returned 0 rows."})]})]}):c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8,height:"100%",minHeight:0},children:[c.jsx("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:c.jsxs(fm,{selectedValue:M,onTabSelect:(Te,Ee)=>O(Ee.value),size:"small",appearance:"subtle",children:[c.jsx(oa,{value:"data",children:r==="single"?"Detail":"Grid"}),c.jsx(oa,{value:"json",children:"JSON"}),c.jsx(oa,{value:"headers",children:"Headers"})]})}),ge&&c.jsx(Nve,{hasMore:ne,isLoading:!1,isLoadingMore:!!l,requestUrl:i,body:e.body,onRefresh:d??(()=>{}),onRetrieveAll:p,onStopLoadingMore:h,searchQuery:H,onSearchChange:$,showFilterRow:oe,onShowFilterRowChange:ee,density:A,onDensityChange:Te=>q({...Z,gridDensity:Te}),table:t,exportView:X}),D,v&&c.jsxs(Ue,{intent:"error",layout:"multiline",children:[c.jsxs(Ge,{children:[v," Rows already loaded are kept."]}),c.jsx(In,{containerAction:x&&c.jsx(pe,{appearance:"transparent","aria-label":"Dismiss",icon:c.jsx(Ii,{}),onClick:x}),children:y&&c.jsx(pe,{onClick:y,children:"Retry"})})]}),b&&c.jsxs(Ue,{intent:"info",layout:"multiline",children:[c.jsx(Ge,{children:b}),c.jsx(In,{containerAction:S&&c.jsx(pe,{appearance:"transparent","aria-label":"Dismiss",icon:c.jsx(Ii,{}),onClick:S}),children:k&&c.jsx(pe,{onClick:k,children:"Continue"})})]}),c.jsxs("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",overflow:ge?"hidden":"auto"},children:[M==="data"&&(r==="single"?N?c.jsx(m.Suspense,{fallback:c.jsx(jr,{size:"small",label:"Loading the result…"}),children:c.jsx(Gve,{result:e,ctx:N})}):c.jsx(Yve,{body:e.body,table:t??""}):c.jsx(yve,{body:e.body,table:t,select:o,expand:n,orderby:a,hasMore:ne,isLoadingMore:l,onLoadMore:f,searchQuery:H,onClearSearch:()=>$(""),showFilterRow:oe,density:A,status:{code:e.status,ms:e.ms,bytes:e.bytes},serverTotal:ie,preferredColumnOrder:B,onViewChange:V,emptyActions:L})),M==="json"&&c.jsx(Jve,{body:e.body}),M==="headers"&&c.jsx(Qve,{headers:e.headers,status:e.status,statusText:e.statusText})]})]})}const Kve=new Set([5e3,500]);function Xve({result:e,count:t}){const r=_t();return c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[c.jsx("div",{style:{display:"flex",alignItems:"center",gap:10},children:c.jsx(Xx,{status:"success",code:e.status,ms:e.ms})}),c.jsxs("div",{className:r.emptyState,role:"status",children:[c.jsx(ar,{size:900,weight:"semibold",style:{fontVariantNumeric:"tabular-nums"},children:t.toLocaleString()}),c.jsxs(Pe,{children:["matching row",t===1?"":"s"]}),(e.countLimitExceeded??Kve.has(t))&&c.jsxs(Pe,{style:{color:T.colorNeutralForeground3,maxWidth:440},children:["Dataverse stops counting at 5,000 rows (500 for elastic tables),"," ",e.countLimitExceeded?"and more rows match.":"so there may be more."," The"," ",c.jsx("code",{children:"RetrieveTotalRecordCount"})," function gives a total from the last 24 hours."]}),c.jsx(pe,{appearance:"subtle",icon:c.jsx(ac,{}),onClick:()=>{la(String(t),"the count")},children:"Copy count"})]})]})}function Yve({body:e,table:t}){if(!e||typeof e!="object")return null;const r=e;return c.jsx(Jx,{record:r,entityLogical:t,level:0})}function Jve({body:e}){const t=JSON.stringify(e,null,2);return c.jsxs("div",{style:{position:"relative"},children:[c.jsx(st,{content:"Copy JSON",relationship:"label",children:c.jsx(pe,{icon:c.jsx(ac,{}),appearance:"subtle",size:"small",style:{position:"absolute",top:6,right:6,zIndex:1},onClick:()=>{la(t,"the JSON")}})}),c.jsx("pre",{style:{margin:0,padding:16,background:T.colorNeutralBackground1,border:`1px solid ${T.colorNeutralStroke2}`,borderRadius:T.borderRadiusMedium,fontFamily:T.fontFamilyMonospace,fontSize:12,lineHeight:1.6,color:T.colorNeutralForeground1,maxHeight:540,overflow:"auto"},children:t})]})}function Qve({headers:e,status:t,statusText:r}){const o=_t(),n=Object.entries(e).filter(([,i])=>i!==""),a=t?`HTTP/1.1 ${t} ${r}`:r;return c.jsxs("div",{className:o.inlineCard,style:{padding:16},children:[c.jsx(Pe,{style:{display:"block",fontFamily:T.fontFamilyMonospace,color:T.colorNeutralForeground3,marginBottom:8},children:a}),n.length===0&&c.jsx(Pe,{style:{color:T.colorNeutralForeground3,fontStyle:"italic"},children:"Response headers aren't exposed by the PPTB host, so none can be shown here."}),c.jsx("div",{style:{display:"grid",gridTemplateColumns:"220px 1fr",gap:6,fontFamily:T.fontFamilyMonospace,fontSize:12},children:n.map(([i,l])=>c.jsxs("span",{style:{display:"contents"},children:[c.jsxs("span",{style:{color:T.colorBrandForeground1,fontWeight:600},children:[i,":"]}),c.jsx("span",{style:{color:T.colorNeutralForeground1,wordBreak:"break-all"},children:l})]},i))})]})}function e1e(e){return!!e&&/16777216|exceeds the maximum size/i.test(e)}function t1e({segment:e,onUse:t}){const{entities:r}=Hd(),o=Wve(e,r);return o?c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[c.jsxs(Pe,{style:{color:T.colorNeutralForeground1},children:["Did you mean ",c.jsx("code",{children:o.entitySetName})," (",o.displayName||o.logicalName,")?"]}),t&&c.jsxs(pe,{size:"small",onClick:()=>t(e,o.entitySetName),children:["Use ",o.entitySetName]})]}):null}function r1e({result:e,method:t,requestUrl:r,onUseEntitySet:o,onRetry:n,retrying:a=!1}){const i=e.status===401?iA:e.status===403?yA:e.status===429?rA:QA,l=e.body?.error,d=e1e(l?.message)?"The response is larger than the host allows. Narrow it: add $select on the table and inside each $expand, filter the expanded rows, or "+(ed()?"lower Prefer: odata.maxpagesize (or set $top when no page size is set).":"set $top to return fewer rows (this ToolBox version can't send Prefer: odata.maxpagesize; ToolBox 1.2.7+ can)."):null,f=/at top level while doing \$expand on nested one-to-many/i.test(l?.message??"")?"Dataverse rejects top-level $top when a 1:N or N:N $expand has its own nested $expand. "+(ed()?"Remove $top and set Prefer: odata.maxpagesize instead to limit the rows per page.":"Remove $top. This ToolBox version can't send Prefer: odata.maxpagesize, so pages use Dataverse's 5,000-row default: narrow the rows with $filter, or use ToolBox 1.2.7+ to set a page size."):null,p=l?.code===Vd?{title:"Not sent — headers not approved",advice:"Power Platform ToolBox didn't send the request because its headers weren't approved, so nothing changed in Dataverse. Execute again and approve the headers when ToolBox asks."}:l?.code===M_?{title:"Not sent — header rejected",advice:"Power Platform ToolBox rejected a request header. Fix it in the Headers or Prefer pane."}:null,h=p?null:qb(e),v=p?p.title:h?`Throttled: ${h.limit} · ${e.status||429}`:e.status===401?"Unauthorized · 401":e.status===403?"Forbidden · 403":e.status===404?"Not Found · 404":e.status===501?"Not Implemented · 501":e.status===0?"Request failed":`Error · ${e.status}`,y=!p&&e.status===403?Lve(l?.message):null,x=p?null:Hve(l?.message),b=p?p.advice:h?`${h.advice} ${Phe}`:e.status===401?"Your sign-in for this connection has expired or was revoked. Open Connection Manager in Power Platform ToolBox, sign in to the connection again, then run the request again.":e.status===403?y?$ve(y):"Your user is missing a privilege this request needs. Check your security roles with a Dataverse administrator.":e.status===404?"Record (or entity) not found. Verify the GUID and entity set.":e.status===501?"The request was not sent. See the message below.":e.status===0?v0e(l):"Inspect the error message below for details.",k=e.ok?e.status>=300?"warning":"success":"danger";return c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[c.jsx(Xx,{status:k,code:e.status||"Error",ms:e.ms}),c.jsxs(Pe,{style:{color:T.colorNeutralForeground3},children:[(e.bytes/1024).toFixed(1)," KB"]})]}),c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:14,padding:32,textAlign:"center",alignItems:"center",minWidth:0,maxWidth:"100%",overflow:"hidden",border:`1px solid ${T.colorPaletteRedBorder2}`,borderRadius:T.borderRadiusLarge,background:T.colorPaletteRedBackground1},children:[c.jsx(i,{style:{width:48,height:48,color:T.colorPaletteRedForeground1}}),c.jsx(ar,{size:500,weight:"semibold",children:v}),c.jsx(Pe,{style:{color:T.colorNeutralForeground2,maxWidth:420},children:b}),d&&c.jsx(Pe,{style:{color:T.colorNeutralForeground1,maxWidth:420},children:d}),f&&c.jsx(Pe,{style:{color:T.colorNeutralForeground1,maxWidth:420},children:f}),x&&c.jsx(t1e,{segment:x,onUse:o}),c.jsxs("div",{style:{display:"flex",gap:8,flexWrap:"wrap",justifyContent:"center"},children:[h&&n&&c.jsx(pe,{appearance:"primary",icon:a?c.jsx(jr,{size:"tiny"}):c.jsx(cg,{}),disabled:a,onClick:n,children:a?"Trying again…":"Try again"}),h&&c.jsx(xs,{href:Mhe,target:"_blank",rel:"noopener noreferrer",style:{alignSelf:"center"},children:"About the limits"}),c.jsx(pe,{icon:c.jsx(LI,{}),onClick:()=>{la(Uve({result:e,method:t,requestUrl:r}),"the error report")},children:"Copy error report"}),r&&c.jsx(pe,{icon:c.jsx(Ll,{}),onClick:()=>{la(r,"the request URL")},children:"Copy request URL"})]}),l&&c.jsx("pre",{style:{margin:0,padding:12,background:T.colorNeutralBackground1,border:`1px solid ${T.colorNeutralStroke2}`,borderRadius:T.borderRadiusMedium,fontFamily:T.fontFamilyMonospace,fontSize:11,color:T.colorNeutralForeground1,textAlign:"left",width:"100%",maxWidth:"100%",minWidth:0,whiteSpace:"pre-wrap",wordBreak:"break-word",overflowWrap:"anywhere",boxSizing:"border-box"},children:l.code?`code: ${l.code}
42
+ message: ${l.message}`:`message: ${l.message}`})]})]})}function ja(e,t){return async(r,...o)=>{try{return await e(r,...o)}finally{Gde(t(r))}}}const Tp=()=>{},vu=e=>e.table,n1=o1e({retrieveMultiple:(e,t)=>Whe(e,t),retrieveSingle:(e,t)=>Khe(e,t),nextLink:(e,t)=>Xhe(e,t),absoluteUrl:(e,t,r)=>I_(e,t,r),predefined:(e,t)=>Yhe(e,t),create:ja((e,t)=>Jhe(e,t),Tp),update:ja((e,t)=>Qhe(e,t),vu),upsert:ja((e,t)=>e0e(e,t),vu),delete:ja((e,t)=>t0e(e,t),Tp),merge:ja((e,t)=>r0e(e,t),vu),associate:ja((e,t)=>n0e(e,t),vu),disassociate:ja((e,t)=>a0e(e,t),vu),action:ja((e,t)=>i0e(e,t),Tp),function:(e,t)=>s0e(e,t),workflow:ja((e,t)=>l0e(e,t),Tp),manageFile:e=>c0e(),manageImage:e=>u0e(),manageAttachment:e=>d0e()});function o1e(e){const t={};for(const[r,o]of Object.entries(e)){const n=o;t[r]=async(...a)=>{const i=performance.now();try{return await n(...a)}catch(l){return f0e(l,Math.round(performance.now()-i))}}}return t}let xj=null;const Qg=new Map;function s9(e){xj!==e&&(Qg.clear(),xj=e)}function n1e(e){return s9(Jt()),Qg.get(e)}function a1e(e,t,r){const o=Jt();s9(o),e===o&&Qg.set(t,r)}function i1e(){Qg.clear()}function s1e(e,t,r){const[o]=m.useState(()=>{const n=n1e(e);if(n)try{return{state:t(n.state),lastSavedId:n.lastSavedId,lastSavedHash:n.lastSavedHash}}catch{}return{state:r(),lastSavedId:void 0,lastSavedHash:null}});return o}function l1e(e,t,r,o){const n=m.useRef(wj()),a=m.useRef({state:t,lastSavedId:r,lastSavedHash:o});m.useEffect(()=>{n.current||(n.current=wj()),a.current={state:t,lastSavedId:r,lastSavedHash:o}}),m.useEffect(()=>()=>a1e(n.current||Jt(),e,a.current),[e])}function wj(){const e=Jt();return e==="default"?"":e}const c1e=5e4,u1e=1e3,d1e=500;function l9(e){const t=e.body;return{rows:t?.value??[],bytes:e.bytes,nextLink:t?.["@odata.nextLink"]}}function f1e(e,t){const r=e.body??{},o=r.value??[],n={...r,value:o.concat(t.rows)};return t.nextLink?n["@odata.nextLink"]=t.nextLink:delete n["@odata.nextLink"],{...e,body:n,bytes:e.bytes+t.bytes}}async function p1e(e){const{fetchPage:t,commit:r,status:o,rowBudget:n=c1e,pageBudget:a=u1e,commitMs:i=d1e,now:l=()=>performance.now()}=e;let d=e.nextLink,f=[],p=0,h=0,v=0,y=0,x=l();const b=()=>{h!==0&&(r({rows:f,bytes:p,nextLink:d}),f=[],p=0,h=0,x=l())};for(;d;){const k=await t(d),S=o();if(S==="superseded")return{kind:"superseded"};if(S==="stopped")return{kind:"stopped",rows:v-f.length};if(!k.ok)return b(),{kind:"failed",rows:v,error:k};const N=l9(k);for(const B of N.rows)f.push(B);if(p+=N.bytes,h+=1,v+=N.rows.length,y+=1,d=N.nextLink,!d)break;if(v>=n||y>=a)return b(),{kind:"paused",rows:v};l()-x>=i&&b()}return b(),{kind:"done",rows:v}}let m1e=0;function Os(e,t){const r=e.map(o=>({...o}));for(const{name:o,value:n}of t){const a=r.find(i=>i.name.toLowerCase()===o.toLowerCase());a?(a.value=n,a.enabled=!0):r.push({id:`imp${Date.now().toString(36)}${(m1e++).toString(36)}`,name:o,value:n,enabled:!0})}return r}function g1e(e,t){const r=t.parsed;return{...e,table:r.table,select:r.select,filter:r.filter,orderby:r.orderby,top:r.top,countOn:r.countOn,countOnly:r.countOnly?!0:void 0,expand:r.expand,apply:r.apply??Ou(),prefer:t.prefer,headers:Os(e.headers,t.headers),dirty:new Set(["target"])}}function exe(e,t){return{...e,table:t.table,recordId:t.recordId,select:t.select,expand:t.expand,prefer:t.prefer,headers:Os(e.headers,t.headers),dirty:new Set(["target"])}}function txe(e,t){const r=Os(e.headers,t.headers);return{...e,table:t.table,fieldValues:{},nullFields:[],rawBody:t.rawBody,prefer:t.prefer,returnSelect:t.returnSelect,bypass:t.bypass,headers:r,duplicateDetection:r.some(o=>o.enabled&&o.name.toLowerCase()==="mscrm.suppressduplicatedetection"&&o.value.trim().toLowerCase()==="false"),dirty:new Set(["target"])}}function rxe(e,t){return{...e,table:t.table,recordId:t.recordId,method:"PATCH",putColumn:null,fieldValues:{},nullFields:[],rawBody:t.rawBody,prefer:t.prefer,returnSelect:t.returnSelect,concurrency:t.concurrency,bypass:t.bypass,headers:Os(e.headers,t.headers),dirty:new Set(["target"])}}function oxe(e,t){return{...e,table:t.table,key:{kind:"guid",recordId:t.recordId},fieldValues:{},nullFields:[],rawBody:t.rawBody,prefer:t.prefer,returnSelect:t.returnSelect,concurrency:t.concurrency,bypass:t.bypass,headers:Os(e.headers,t.headers),dirty:new Set(["target"])}}function nxe(e,t){return{...e,table:t.table,recordId:t.recordId,scope:t.scope,concurrency:t.concurrency,bypassCustomPlugins:!1,bypass:t.bypass,headers:Os(e.headers,t.headers),confirmText:"",acknowledged:!1,dirty:new Set(["target"])}}function axe(e,t){return{...e,actionName:t.actionName,boundRecordId:t.boundRecordId,paramValues:t.paramValues,headers:Os(e.headers,t.headers),dirty:new Set(["pick"])}}function ixe(e,t){return{...e,groups:t.groups,continueOnError:t.continueOnError,dirty:new Set(["overview"])}}const h1e=/^(select|orderby|top|expand|apply|prefer)(\/|$)/,Xp=()=>({id:Ft("root"),type:"group",combinator:"and",rules:[]}),kj=()=>({table:"",select:[],filter:Xp(),orderby:[],top:50,countOn:!1,expand:[],apply:Ou(),prefer:jme(),headers:Sme(),dirty:new Set});function v1e({themeMode:e}){const t=_s("retrieve-multiple"),r=s1e("retrieve-multiple",ab,kj),[o,n]=m.useState(r.state),[a,i]=m.useState("target"),{table:l}=bc(o.table||null),d=Ice(o.table||null,{filter:o.filter,expand:o.expand,apply:o.apply,orderby:o.orderby}),{allEntities:f}=Hd(),[p,h]=m.useState("builder"),[v,y]=m.useState(null),[x,b]=m.useState(!1),[k,S]=Oie("retrieve-multiple"),[N,B]=m.useState(null),C=m.useRef(!1),[z,R]=m.useState(void 0),[E,D]=m.useState(r.lastSavedId),[I,M]=m.useState(r.lastSavedHash),O=m.useMemo(()=>Fae(o),[o]);l1e("retrieve-multiple",O,E,I);const H=m.useMemo(()=>Eu(O),[O]),$=m.useMemo(()=>o.table?I===null?!0:H!==I:!1,[o.table,I,H]),Z=m.useMemo(()=>Xg(o),[o,l,d.version]),q=fe(o.table),A=m.useMemo(()=>_i(o.filter),[o.filter]),X=ze=>n(je=>{const He=new Set(je.dirty);return He.add(ze),{...je,dirty:He}}),V=(ze,je,He)=>{n(jt=>({...jt,[ze]:je})),He&&X(He)},oe=ze=>{D(ze.id),M(Eu(ze.state))},ee=ze=>{if(ze.modeId!=="retrieve-multiple")return;const je=ze.state;if(f.length>0&&!f.some(Qe=>Qe.logicalName===je.table)){Zl(`Can't load "${ze.name}": entity \`${je.table}\` isn't available in this environment. The solution may have been removed or you may be connected to a different org.`);return}n(ab(je)),D(ze.id),M(Eu(je)),vr(),i("target")},W=ze=>{const je=zie(ze,"retrieve-multiple");if(!je)return;const He=E,jt=I;ee(je),D(He),M(jt)},L=ub(oe);gse("retrieve-multiple",ze=>{ze.modeId==="retrieve-multiple"&&(n(g1e(kj(),ze)),vr(),h("builder"),i(ze.parsed.filter.rules.length>0?"filter":"target"))});const te=ub(ee);fse(m.useMemo(()=>({state:O,modeId:"retrieve-multiple",dirty:$,lastSavedId:E,onSaved:L,onLoadSaved:te}),[O,$,E,L,te]));const ue=m.useRef(0),ne=m.useRef(null),ie=m.useRef(void 0),ge=m.useRef(0),[Te,Ee]=m.useState(!1),[Me,lt]=m.useState(null),[ht,xt]=m.useState(null),[vt,Qt]=m.useState(!1),pt=m.useRef(0),Mt=m.useRef(null),hr=()=>(ue.current+=1,Ee(!1),lt(null),xt(null),Qt(!1),pt.current=0,Mt.current=null,ue.current),vr=()=>{hr(),b(!1),y(null),B(null)},ot=async ze=>{ze!==!0&&B(null);const je=hr();b(!0),R(Z.relativeUrl),ne.current=o.prefer.maxpagesize,ie.current=G8(o.headers,null);const He=await n1.retrieveMultiple(o,ie.current);if(ue.current!==je)return;y(He),b(!1),h("results");const jt=`r-${Date.now()}`;Mt.current=jt,pt.current=Ob(He.body)??0,S(Die({id:jt,snapshot:O,modeId:"retrieve-multiple",url:Z.relativeUrl,method:"GET",status:He.status,ms:He.ms,rowCount:Ob(He.body),...typeof He.body=="number"?{summary:`${He.body.toLocaleString()} matching row${He.body===1?"":"s"}`}:{}})),n(Qe=>({...Qe,dirty:new Set}))},zt=A>0&&!o.apply.enabled,ur=()=>{B(o.filter),C.current=!0,n(ze=>({...ze,filter:Xp()}))},po=()=>{const ze=N;B(null),ze&&n(je=>({...je,filter:ze}))};m.useEffect(()=>{C.current?(C.current=!1,ot(!0)):_i(o.filter)>0&&B(null)},[o.filter]);const Gr=ze=>{y(Qe=>Qe&&f1e(Qe,ze)),pt.current+=ze.rows.length;const je=Mt.current,He=pt.current,jt=`${He.toLocaleString()} rows · ${ze.nextLink?"more available":"all pages"}`;je&&S(Qe=>Qe.map(rr=>rr.id===je?{...rr,rowCount:He,summary:jt}:rr))},vn=ze=>{const je=ze.body?.error?.message;return`${ze.status?`HTTP ${ze.status}`:ze.statusText||"Request failed"}${je?` — ${je}`:""}`},mo=()=>{const ze=ue.current,je=++ge.current;return Ee(!0),lt(null),xt(null),Qt(!1),()=>ue.current!==ze?"superseded":ge.current!==je?"stopped":"current"},Nr=async()=>{const ze=v?.body?.["@odata.nextLink"];if(!ze||Te)return;const je=mo();try{const He=await n1.absoluteUrl(ze,ne.current,ie.current);if(je()!=="current")return;if(!He.ok){const jt=qb(He);lt(jt?`Couldn't load the next page: Dataverse is throttling requests (${jt.limit}). ${jt.advice}`:`Couldn't load the next page: ${vn(He)}`);return}Gr(l9(He))}finally{je()==="current"&&Ee(!1)}},Sr=async()=>{const ze=v?.body?.["@odata.nextLink"];if(!ze||Te)return;const je=mo();try{const He=await p1e({nextLink:ze,fetchPage:Qe=>n1.absoluteUrl(Qe,ne.current,ie.current),commit:Gr,status:je}),jt=He.kind==="failed"?qb(He.error):null;jt?(Qt(!0),xt(`Retrieve all paused: Dataverse is throttling requests (${jt.limit}). ${pt.current.toLocaleString()} rows are loaded. ${jt.advice} Continue picks up from the next page.`)):He.kind==="failed"?lt(`Retrieve all stopped at a failed page: ${vn(He.error)}`):He.kind==="paused"&&xt(`Retrieve all paused after ${He.rows.toLocaleString()} more rows (${pt.current.toLocaleString()} loaded). More pages remain: Continue loads the next batch.`)}finally{je()==="current"&&Ee(!1)}},Zr=()=>{ge.current+=1,Ee(!1)},Ar=()=>{lt(null),Nr()},er=d.pending.join(","),Uo=d.failed.join(","),bn=m.useMemo(()=>{const ze=o.apply.enabled&&!o.countOnly?o.apply.prefilter:o.filter,je=rb(ze).map(br=>({col:br.col,raw:br.raw,cleaned:br.cleaned,kinds:br.kinds.slice()})),He=_fe({table:o.table,select:o.select,filter:ze,strippedWildcards:je}),jt=Nge({table:o.table,filter:o.filter,orderby:o.orderby,expand:o.expand,apply:o.apply}),Qe=o.table&&h_(o.expand,o.table),rr=!!o.table&&b_(o.expand,o.table),Ut=[],Er=ed()?null:c.jsxs(c.Fragment,{children:[" ","This ToolBox version can't send it on Execute (ToolBox 1.2.7+ can), so Execute gets Dataverse's 5,000-row pages."]});rr&&o.top!=null?Ut.push({id:"nested-collection-top",severity:"error",source:"validation",focusNode:"top",title:"$top is forbidden when a collection $expand has a nested $expand",body:c.jsxs(c.Fragment,{children:["A 1:N or N:N ",c.jsx("code",{children:"$expand"})," in your query has its own nested ",c.jsx("code",{children:"$expand"}),". Dataverse rejects top-level ",c.jsx("code",{children:"$top"})," in this shape (",c.jsx("code",{children:"0x80060888"}),"):"," ",c.jsx("em",{children:'"Only $select, $filter and $orderby clauses can be provided at top level while doing $expand on nested one-to-many relationship."'}),c.jsx("br",{}),"Drop ",c.jsx("code",{children:"$top"})," and use ",c.jsx("code",{children:"Prefer: odata.maxpagesize"})," in the Prefer pane instead.",Er]}),learnMoreUrl:"https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/query/join-tables#nested-expand-on-collection-valued-navigation-properties"}):Qe&&o.top!=null&&Ut.push({id:"nested-collection-top",severity:"warning",source:"validation",focusNode:"top",title:"$top with a nested $expand involving a collection",body:c.jsxs(c.Fragment,{children:["Your query has a nested ",c.jsx("code",{children:"$expand"})," involving a 1:N or N:N relationship. If Dataverse rejects ",c.jsx("code",{children:"$top"})," (",c.jsx("code",{children:"0x80060888"}),"), drop it and use"," ",c.jsx("code",{children:"Prefer: odata.maxpagesize"})," in the Prefer pane instead.",Er]}),learnMoreUrl:"https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/query/join-tables#nested-expand-on-collection-valued-navigation-properties"}),Qe&&o.orderby.length>0&&Ut.push({id:"nested-collection-orderby",severity:"error",source:"validation",focusNode:"orderby",title:"$orderby is forbidden with a nested $expand on a collection",body:c.jsxs(c.Fragment,{children:["Top-level ",c.jsx("code",{children:"$orderby"})," isn't allowed when a nested ",c.jsx("code",{children:"$expand"})," ","involves a 1:N or N:N. Either clear ",c.jsx("code",{children:"$orderby"}),", or sort client-side after the request returns."]})});const Or=[...He,...jt,...Ut,...Fce(d.pending,d.failed)];return o.countOnly?[...Or.filter(br=>!br.focusNode||!h1e.test(br.focusNode)),Tt.info("count-only","validation","Count only: just $filter is sent",c.jsxs(c.Fragment,{children:["The request asks for one row with ",c.jsx("code",{children:"$count=true"})," and shows"," ",c.jsx("code",{children:"@odata.count"}),": the number of rows matching $filter, up to 5,000 (500 for elastic tables). $select, $orderby, $expand, $top, $apply and the page size aren't sent. (Dataverse doesn't accept $filter on ",c.jsx("code",{children:"/$count"}),".)"]}),"count"),...o.apply.enabled?[Tt.warn("count-only-apply","validation","$apply isn't sent with Count only",c.jsxs(c.Fragment,{children:["The count is of the rows matching $filter",o.apply.prefilter.rules.length>0?"; the $apply filter() stage doesn't narrow it. Put those conditions in $filter":"",". Turn $apply off, or Count only off for the aggregate."]}),"filter")]:[]]:Or},[o.countOnly,o.table,o.select,o.filter,o.orderby,o.expand,o.apply,o.top,er,Uo,l]),Ce=wfe(bn),_e=o.table?o.headers.some(ze=>ze.enabled&&!ze.name)?"Fix empty header name.":Ce??null:"Pick a target table first.",We=o.apply.enabled&&!o.countOnly;function Je(ze,je,He){const jt=fe(He);return ze.map(Qe=>{const rr=jt?.navigationProperties.find(eh=>eh.name===Qe.nav),Ut=rr?fe(rr.targetEntity):void 0,Er=rr?.cardinality,Or=Er==="OneToMany"||Er==="ManyToMany",br=Er==="ManyToMany",yr=`${je}/${Qe.id}`,yn=Qe.filter?_i(Qe.filter):0,Go=[];return Go.push({id:`${yr}/select`,icon:z1,iconFilled:N1,label:"$select",code:!0,badge:Qe.select.length||null}),Go.push({id:`${yr}/filter`,icon:Ns,iconFilled:nm,label:"$filter",code:!0,badge:yn||null}),Or&&(Go.push({id:`${yr}/orderby`,icon:_1,iconFilled:T1,label:"$orderby",code:!0,badge:Qe.orderby.length||null}),Go.push({id:`${yr}/top`,icon:D2,iconFilled:B1,label:"$top",code:!0,badge:Qe.top?Qe.top.toString():null,badgeAppearance:"ghost"})),br||Go.push({id:`${yr}/expand`,icon:Cs,iconFilled:C1,label:"$expand",code:!0,badge:Qe.nestedExpand?.length||null,children:Ut&&Qe.nestedExpand?.length?Je(Qe.nestedExpand,`${yr}/expand`,Ut.logicalName):void 0}),{id:yr,icon:Ll,label:c.jsxs("span",{children:[Qe.nav," ",c.jsxs("span",{style:{color:T.colorNeutralForeground3,fontWeight:400},children:["→ ",Ut?.displayName??rr?.targetEntity??"?"]})]}),badge:br?"N:N":Or?"many":"one",badgeAppearance:"ghost",children:Go}})}const wt=Je(o.expand,"expand",o.table),Ke=ze=>We?{badge:"∅",badgeAppearance:"outline"}:{badge:ze,badgeAppearance:"ghost"},Wt=[{id:"target",label:"Target",meta:q?.displayName,items:[{id:"target",icon:my,iconFilled:gC,label:q?.displayName??"(none)",badge:q?"table":null,badgeAppearance:"ghost",dirty:o.dirty.has("target")}]},{id:"qstruct",label:"Query structure",items:[{id:"select",icon:z1,iconFilled:N1,label:"$select",code:!0,dirty:o.dirty.has("select"),...Ke(o.select.length||null)},{id:"filter",icon:Ns,iconFilled:nm,label:"$filter",code:!0,dirty:o.dirty.has("filter"),...Ke(A||null)},{id:"orderby",icon:_1,iconFilled:T1,label:"$orderby",code:!0,dirty:o.dirty.has("orderby"),...Ke(o.orderby.length||null)},{id:"top",icon:D2,iconFilled:B1,label:"$top",code:!0,badge:o.top?o.top.toString():"default",badgeAppearance:"ghost",dirty:o.dirty.has("top")},{id:"count",icon:HI,iconFilled:bC,label:"$count",code:!0,dirty:o.dirty.has("count"),...Ke(o.countOnly?"only":o.countOn?"on":null)},{id:"expand",icon:Cs,iconFilled:C1,label:"$expand",code:!0,dirty:o.dirty.has("expand"),...Ke(o.expand.length||null),children:wt.length?wt:void 0},{id:"apply",icon:HA,iconFilled:Ip,label:"$apply",code:!0,badge:o.apply.enabled?"on":null,badgeAppearance:We?"filled":"ghost",badgeColor:We?"brand":void 0,dirty:o.dirty.has("apply")}]},{id:"prefer",label:"Prefer",items:[{id:"prefer",icon:gy,iconFilled:vC,label:"Prefer header",badge:Z8(o.prefer)?"on":null,badgeAppearance:"ghost",dirty:o.dirty.has("prefer")}]},{id:"headers",label:"Headers",meta:`${o.headers.filter(ze=>ze.enabled).length} active`,items:[{id:"headers",icon:XI,iconFilled:SC,label:"HTTP headers",badge:o.headers.filter(ze=>ze.enabled).length||null,dirty:o.dirty.has("headers")}]}];let Ne;if(a.startsWith("expand"))Ne=c.jsx(The,{path:a,rootEntity:o.table,rootExpand:o.expand,setRootExpand:ze=>V("expand",ze,"expand"),setActivePath:i});else switch(a){case"target":Ne=c.jsx(jhe,{table:o.table,onTableChange:je=>{n(He=>({...He,table:je,select:[],filter:Xp(),orderby:[],top:50,countOn:!1,countOnly:void 0,expand:[],apply:Ou(),dirty:new Set(["target"])})),vr(),D(void 0),M(null)},onResetRequest:()=>{n(je=>({...je,select:[],filter:Xp(),orderby:[],top:50,countOn:!1,countOnly:void 0,expand:[],apply:Ou(),dirty:new Set(["target"])})),vr()},onApplyParsed:je=>{n(He=>({...He,table:je.table||He.table,select:je.select,filter:je.filter,orderby:je.orderby,top:je.top,countOn:je.countOn,countOnly:je.countOnly?!0:void 0,expand:je.expand,apply:je.apply??Ou(),dirty:new Set(["target"])})),vr(),je.filter.rules.length>0?i("filter"):je.select.length>0&&i("select")}});break;case"select":Ne=c.jsx(R_,{table:o.table,selectedIds:o.select,setSelectedIds:je=>V("select",je,"select"),applyActive:We});break;case"filter":Ne=c.jsx(Rx,{table:o.table,tree:o.filter,setTree:je=>V("filter",je,"filter"),urlBytes:Z.bytes,applyActive:We});break;case"orderby":Ne=c.jsx(z7,{table:o.table,items:o.orderby,setItems:je=>V("orderby",je,"orderby"),applyActive:We});break;case"top":Ne=c.jsx(D_,{top:o.top,setTop:je=>V("top",je,"top"),maxPageSize:o.prefer.maxpagesize});break;case"count":Ne=c.jsx(Che,{countOn:o.countOn,setCountOn:je=>V("countOn",je,"count"),countOnly:!!o.countOnly,setCountOnly:je=>V("countOnly",je?!0:void 0,"count"),applyActive:We});break;case"apply":Ne=c.jsx(Yfe,{table:o.table,spec:o.apply,setSpec:je=>V("apply",je,"apply")});break;case"prefer":Ne=c.jsx(Cme,{spec:o.prefer,setSpec:je=>V("prefer",je,"prefer"),sendsPageSize:!0});break;case"headers":Ne=c.jsx(Bme,{policy:"read",items:o.headers,setItems:je=>V("headers",je,"headers")});break}const Ze=Hr(o),ut={method:"GET",built:Z,headers:Ze},Rt=v?.body?.value,tr=typeof v?.body=="number"?v.body:Array.isArray(Rt)?Rt.length:v?.outcome==="ok"?1:null;return c.jsx(k_,{sidebar:c.jsx(a_,{type:t,urlPreview:Z.relativeNoBase,sections:Wt,activeNode:a,onSelect:ze=>{i(ze),h("builder")},recents:k,onRecentClick:W}),urlBar:c.jsx(d_,{method:"GET",url:Z.relativeUrl,executeVerb:t.executeVerb,disabledReason:_e,loading:x,onExecute:ot,advisories:bn,onAdvisoryFocus:i}),children:c.jsxs(l_,{tab:p,onTabChange:h,resultCount:tr,children:[p==="builder"&&Ne,p==="code"&&c.jsx(Dhe,{themeMode:e,inputs:ut}),p==="results"&&c.jsx(Zve,{result:v,mode:"multi",table:o.table,select:o.select,expand:o.expand,orderby:o.orderby,requestUrl:z,isLoadingMore:Te,loading:x,onRefresh:ot,onLoadMore:Me||vt?void 0:Nr,onRetrieveAll:Sr,onStopLoadingMore:Zr,loadMoreError:Me,onRetryLoadMore:Ar,onDismissLoadMoreError:()=>lt(null),loadMoreNotice:ht,onContinueLoadMore:Sr,onDismissLoadMoreNotice:()=>xt(null),onEditFilter:zt?()=>{i("filter"),h("builder")}:void 0,onRunWithoutFilter:zt&&!x&&!_e?ur:void 0,notice:N&&A===0?c.jsxs(Ue,{intent:"info",layout:"multiline",children:[c.jsx(Ge,{children:"Ran without $filter. Your $filter was removed from the builder."}),c.jsx(In,{children:c.jsx(pe,{onClick:po,children:"Restore $filter"})})]}):void 0})]})})}const b1e=m.lazy(()=>cr(()=>import("./BulkWriteMode-CRkiw89Q.js"),__vite__mapDeps([5,6,4,2,7,1]),import.meta.url).then(e=>({default:e.BulkWriteMode})));function y1e(e){return c.jsx(m.Suspense,{fallback:c.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(jr,{size:"medium",label:"Loading…"})}),children:c.jsx(b1e,{...e})})}function ao(e,t){const r=m.lazy(async()=>({default:await t()}));function o(n){return c.jsx(m.Suspense,{fallback:c.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:0},children:c.jsx(jr,{size:"medium",label:"Loading…"})}),children:c.jsx(r,{...n})})}return o.displayName=e,o}const x1e=ao("RetrieveNextLinkMode",()=>cr(()=>import("./RetrieveNextLinkMode-BK9KD3q6.js"),__vite__mapDeps([8,4,2,9]),import.meta.url).then(e=>e.RetrieveNextLinkMode)),w1e=ao("PredefinedQueryMode",()=>cr(()=>import("./PredefinedQueryMode-CdT1I6jB.js"),__vite__mapDeps([10,4,2,11]),import.meta.url).then(e=>e.PredefinedQueryMode)),k1e=ao("MergeMode",()=>cr(()=>import("./MergeMode-PfbLAjOh.js"),__vite__mapDeps([12,6,4,2,7,1]),import.meta.url).then(e=>e.MergeMode)),S1e=ao("AssociateMode",()=>cr(()=>import("./AssociateMode-Dj-iEObO.js"),__vite__mapDeps([13,14,4,2]),import.meta.url).then(e=>e.AssociateMode)),B1e=ao("DisassociateMode",()=>cr(()=>import("./DisassociateMode-Ddk9Jm3g.js"),__vite__mapDeps([15,14,4,2]),import.meta.url).then(e=>e.DisassociateMode)),j1e=ao("ExecuteWorkflowMode",()=>cr(()=>import("./ExecuteWorkflowMode-D2MxIt5s.js"),__vite__mapDeps([16,4,2]),import.meta.url).then(e=>e.ExecuteWorkflowMode)),C1e=ao("ManageFileMode",()=>cr(()=>import("./ManageFileMode-DMLRV2xg.js"),__vite__mapDeps([17,18,19,4,2]),import.meta.url).then(e=>e.ManageFileMode)),N1e=ao("ManageImageMode",()=>cr(()=>import("./ManageImageMode-CoSAt9yh.js"),__vite__mapDeps([20,18,19,4,2]),import.meta.url).then(e=>e.ManageImageMode)),z1e=ao("RetrieveSingleMode",()=>cr(()=>import("./RetrieveSingleMode-_y2Z1G7C.js"),__vite__mapDeps([21,4,2]),import.meta.url).then(e=>e.RetrieveSingleMode)),T1e=ao("CreateMode",()=>cr(()=>import("./CreateMode-CwGffdDR.js"),__vite__mapDeps([22,6,4,2,7,23,1]),import.meta.url).then(e=>e.CreateMode)),_1e=ao("UpdateMode",()=>cr(()=>import("./UpdateMode-Dvd6cr4i.js"),__vite__mapDeps([24,6,4,2,7,1]),import.meta.url).then(e=>e.UpdateMode)),R1e=ao("UpsertMode",()=>cr(()=>import("./UpsertMode-BuyV7FEg.js"),__vite__mapDeps([25,6,4,2,7,23,1]),import.meta.url).then(e=>e.UpsertMode)),D1e=ao("DeleteMode",()=>cr(()=>import("./DeleteMode-CaWEZkJ1.js"),__vite__mapDeps([26,7,4,2,1]),import.meta.url).then(e=>e.DeleteMode)),a1=ao("ExecuteActionMode",()=>cr(()=>import("./ExecuteActionMode-BbN_9350.js"),__vite__mapDeps([27,28,11,4,2,6]),import.meta.url).then(e=>e.ExecuteActionMode)),E1e=ao("ExecuteFunctionMode",()=>cr(()=>import("./ExecuteFunctionMode-G3PFBDpl.js"),__vite__mapDeps([29,28,11,4,2,6,9]),import.meta.url).then(e=>e.ExecuteFunctionMode)),P1e=ao("ManageAttachmentMode",()=>cr(()=>import("./ManageAttachmentMode-D14EZog8.js"),__vite__mapDeps([30,19,4,2]),import.meta.url).then(e=>e.ManageAttachmentMode));function c9(e,t){const r=m.lazy(async()=>({default:await t()}));function o(n){return c.jsx(m.Suspense,{fallback:c.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(jr,{size:"medium",label:"Loading…"})}),children:c.jsx(r,{...n})})}return o.displayName=e,o}const M1e=c9("BatchMode",()=>cr(()=>import("./BatchMode-Dsa1JVpd.js"),__vite__mapDeps([31,2]),import.meta.url).then(e=>e.BatchMode)),q1e=c9("ExecuteMultipleMode",()=>cr(()=>import("./BatchMode-Dsa1JVpd.js"),__vite__mapDeps([31,2]),import.meta.url).then(e=>function(r){return c.jsx(e.BatchMode,{...r,variant:"execute-multiple"})}));function F1e({requestId:e,onPick:t}){const r=_s(e),[o,n]=m.useState("builder");return c.jsx(k_,{sidebar:c.jsx(a_,{type:r,urlPreview:`(${r.method.toLowerCase()} preview lands with the ${r.group} pass)`,sections:[],activeNode:"",onSelect:()=>{},recents:[]}),urlBar:c.jsx(d_,{method:r.method,url:`(${r.id}) — preview`,executeVerb:r.executeVerb,disabledReason:`${r.name} lands in the ${r.group} pass.`,loading:!1,onExecute:()=>{}}),children:c.jsx(l_,{tab:o,onTabChange:n,children:c.jsx("div",{style:{display:"flex",justifyContent:"center",paddingTop:40},children:c.jsxs(uz,{style:{maxWidth:640,padding:32,display:"flex",flexDirection:"column",gap:20},children:[c.jsxs("div",{style:{display:"inline-block",padding:"4px 10px",borderRadius:999,backgroundColor:Pn(r.group),color:"#fff",fontSize:11,fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",alignSelf:"flex-start"},children:[r.group," · ",r.method]}),c.jsx(SK,{children:r.name}),c.jsx(Rd,{style:{color:T.colorNeutralForeground2},children:r.sub}),c.jsx(Ue,{layout:"multiline",intent:"info",children:c.jsx(Ge,{children:"This mode isn't available yet. Pick another mode from the request type switcher above."})}),c.jsx(Pe,{style:{color:T.colorNeutralForeground3},children:"Jump into one of the Read modes below to keep exploring."}),c.jsxs("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:[c.jsx(pe,{appearance:"primary",onClick:()=>t("retrieve-multiple"),children:"Retrieve Multiple"}),c.jsx(pe,{appearance:"outline",onClick:()=>t("retrieve-single"),children:"Retrieve Single"}),c.jsx(pe,{appearance:"outline",onClick:()=>t("retrieve-nextlink"),children:"Retrieve NextLink"}),c.jsx(pe,{appearance:"outline",onClick:()=>t("predefined-query"),children:"Predefined Query"})]})]})})})})}kae(fe);let u9=0,i1=oo(),Hb=null;Dd(e=>{i1&&(u9++,Hb={from:i1,to:e}),i1=e});const I1e=()=>u9;function A1e(){return m.useSyncExternalStore(Dd,I1e)}function O1e(){return c.jsx(_ie,{children:c.jsx(aae,{children:c.jsx(L1e,{})})})}function L1e(){const e=Qa(),[t,r]=m.useState("light"),o=e.embedded?e.theme:t,[n,a]=m.useState("retrieve-multiple");m.useEffect(()=>{Goe(o)},[o]);const i=o==="dark"?Uoe:Woe;return c.jsxs(tC,{theme:i,style:{height:"100vh"},children:[c.jsx(rse,{children:c.jsx($1e,{themeMode:o,setThemeMode:r,activeId:n,setActiveId:a})}),c.jsx(Xie,{})]})}function $1e({themeMode:e,setThemeMode:t,activeId:r,setActiveId:o}){const n=_t(),a=_s(r),[i,l]=m.useState(null),d=A1e(),[f,p]=m.useState(d);return c.jsx("div",{className:n.frame,"data-mode-group":a.group==="read"?void 0:a.group,children:c.jsxs(dse,{value:i,setValue:l,children:[c.jsx(Yme,{themeMode:e,setThemeMode:t,activeId:r,setActiveId:o}),c.jsx(V1e,{modeId:r,themeMode:e,setActiveId:o},d),d!==f&&Hb&&c.jsx(H1e,{...Hb,modeLabel:a.name,onDismiss:()=>p(d)})]})})}function H1e({from:e,to:t,modeLabel:r,onDismiss:o}){return c.jsx("div",{role:"status",style:{position:"fixed",top:56,left:"50%",transform:"translateX(-50%)",width:"min(640px, calc(100vw - 32px))",zIndex:1e3},children:c.jsxs(Ue,{layout:"multiline",intent:"warning",children:[c.jsxs(Ge,{children:[c.jsx(Lt,{children:t?"Connection switched":"Connection closed"}),t?c.jsxs(c.Fragment,{children:["DRS is now connected to ",c.jsx("code",{children:t}),". The ",r," request was reset — record ids, confirmations, field values and results from ",c.jsx("code",{children:e})," were cleared so nothing prepared there runs here. Saved requests are kept per connection."]}):c.jsxs(c.Fragment,{children:["The connection to ",c.jsx("code",{children:e})," is gone. The ",r," request was reset so nothing prepared there runs against the next connection."]})]}),c.jsx(In,{containerAction:c.jsx(pe,{appearance:"transparent",icon:c.jsx(Ii,{}),"aria-label":"Dismiss",onClick:o})})]})})}function V1e({modeId:e,themeMode:t,setActiveId:r}){const o=_s(e);return c.jsx(s_,{scope:"mode",label:o.id===e?o.name:e,resetKey:e,onReload:i1e,children:c.jsx(W1e,{modeId:e,themeMode:t,setActiveId:r})})}function W1e({modeId:e,themeMode:t,setActiveId:r}){switch(e){case"retrieve-multiple":return c.jsx(v1e,{themeMode:t});case"retrieve-single":return c.jsx(z1e,{themeMode:t});case"retrieve-nextlink":return c.jsx(x1e,{themeMode:t});case"predefined-query":return c.jsx(w1e,{themeMode:t});case"create":return c.jsx(T1e,{themeMode:t});case"update":return c.jsx(_1e,{themeMode:t});case"batch":return c.jsx(M1e,{themeMode:t});case"execute-multiple":return c.jsx(q1e,{themeMode:t});case"upsert":return c.jsx(R1e,{themeMode:t});case"delete":return c.jsx(D1e,{themeMode:t});case"bulk-delete":return c.jsx(Qme,{themeMode:t});case"merge":return c.jsx(k1e,{themeMode:t});case"bulk-write":return c.jsx(y1e,{themeMode:t});case"associate":return c.jsx(S1e,{themeMode:t});case"disassociate":return c.jsx(B1e,{themeMode:t});case"exec-action":return c.jsx(a1,{themeMode:t,category:"oob"},e);case"exec-customapi":return c.jsx(a1,{themeMode:t,category:"custom-api"},e);case"exec-customaction":return c.jsx(a1,{themeMode:t,category:"custom-action"},e);case"exec-function":return c.jsx(E1e,{themeMode:t});case"exec-workflow":return c.jsx(j1e,{themeMode:t});case"manage-file":return c.jsx(C1e,{themeMode:t});case"manage-image":return c.jsx(N1e,{themeMode:t});case"manage-attachment":return c.jsx(P1e,{themeMode:t});default:return c.jsx(F1e,{requestId:e,onPick:r})}}Zme();const s1=document.getElementById("boot-splash");s1&&(s1.classList.add("hide"),setTimeout(()=>s1.remove(),250));pD.createRoot(document.getElementById("root")).render(c.jsx(m.StrictMode,{children:c.jsx(O1e,{})}));export{gC as $,Cm as A,ct as B,Pe as C,Va as D,rt as E,ad as F,Li as G,Ln as H,Mn as I,wT as J,gr as K,Nt as L,Ue as M,_o as N,Gn as O,Yg as P,Vm as Q,bc as R,jr as S,Sg as T,Oie as U,_i as V,Nye as W,wfe as X,Eu as Y,ub as Z,fse as _,tx as a,vC as a$,my as a0,nm as a1,Ns as a2,ybe as a3,G1e as a4,Z1e as a5,K1e as a6,SC as a7,XI as a8,Bme as a9,Fa as aA,Da as aB,tbe as aC,$d as aD,Fse as aE,Wa as aF,Ea as aG,qme as aH,Xye as aI,dbe as aJ,fbe as aK,xbe as aL,q2 as aM,cbe as aN,Fp as aO,kC as aP,Bbe as aQ,Pbe as aR,Ap as aS,mn as aT,js as aU,fA as aV,st as aW,j1 as aX,Lye as aY,khe as aZ,Mbe as a_,Rx as aa,jhe as ab,xT as ac,G8 as ad,k_ as ae,l_ as af,Zve as ag,d_ as ah,a_ as ai,Kye as aj,Xx as ak,ar as al,I2 as am,co as an,la as ao,ac as ap,wC as aq,Qa as ar,Q8 as as,Ra as at,jo as au,Ht as av,rO as aw,Die as ax,Un as ay,wg as az,NT as b,Ll as b$,gy as b0,Z8 as b1,Cme as b2,tO as b3,Ii as b4,Qye as b5,Sme as b6,Abe as b7,Zl as b8,n1 as b9,yye as bA,C1 as bB,Ol as bC,gbe as bD,hbe as bE,tfe as bF,Sm as bG,xye as bH,Bye as bI,o7 as bJ,ime as bK,I8 as bL,eye as bM,rbe as bN,obe as bO,Cs as bP,Vae as bQ,Pd as bR,xg as bS,Vye as bT,Wye as bU,qx as bV,Od as bW,O_ as bX,tj as bY,tye as bZ,ube as b_,Ob as ba,Vo as bb,qy as bc,at as bd,_ge as be,Rg as bf,_t as bg,s1e as bh,lme as bi,gT as bj,Kbe as bk,l1e as bl,sbe as bm,lbe as bn,B1 as bo,D2 as bp,D_ as bq,bx as br,Bo as bs,Ur as bt,Rd as bu,F as bv,Aae as bw,zie as bx,td as by,bye as bz,Fg as c,$ae as c$,X1e as c0,A3 as c1,Jye as c2,Wae as c3,Uye as c4,L8 as c5,zye as c6,rye as c7,Uae as c8,R1 as c9,Iye as cA,D8 as cB,sye as cC,mbe as cD,pbe as cE,eA as cF,Yae as cG,Mye as cH,Pye as cI,Ice as cJ,M8 as cK,Zbe as cL,gse as cM,Fce as cN,fye as cO,N1 as cP,z1 as cQ,The as cR,R_ as cS,Iae as cT,T1 as cU,_1 as cV,exe as cW,Qpe as cX,vye as cY,gye as cZ,Jbe as c_,Ibe as ca,nne as cb,_pe as cc,Rpe as cd,aye as ce,vbe as cf,tA as cg,In as ch,Kae as ci,Fye as cj,R8 as ck,iye as cl,Tt as cm,jbe as cn,Cbe as co,Y1e as cp,nv as cq,S1 as cr,Kg as cs,Eye as ct,qye as cu,zbe as cv,Sbe as cw,Fbe as cx,Xae as cy,Cd as cz,Mpe as d,r8 as d$,txe as d0,eme as d1,q8 as d2,mye as d3,Ybe as d4,Pme as d5,xA as d6,_be as d7,Yye as d8,Lae as d9,zme as dA,Zye as dB,Gye as dC,Npe as dD,C8 as dE,Tye as dF,oye as dG,Gae as dH,axe as dI,zpe as dJ,qpe as dK,nye as dL,Q1e as dM,ebe as dN,Zae as dO,Nb as dP,_ye as dQ,xs as dR,Rye as dS,rm as dT,om as dU,am as dV,im as dW,Px as dX,Dye as dY,hm as dZ,gd as d_,Zi as da,rxe as db,Jy as dc,nme as dd,F8 as de,Hye as df,$ye as dg,Qbe as dh,Hae as di,oxe as dj,pc as dk,oo as dl,ame as dm,Xbe as dn,Oae as dp,nxe as dq,VA as dr,PN as ds,IN as dt,mm as du,$1 as dv,TN as dw,wi as dx,cme as dy,ume as dz,jme as e,fm as e$,xW as e0,SW as e1,xe as e2,wW as e3,J as e4,Nx as e5,zx as e6,o3 as e7,r3 as e8,n3 as e9,E8 as eA,yc as eB,lye as eC,Oye as eD,Jae as eE,eO as eF,J1e as eG,Tbe as eH,Ng as eI,ab as eJ,Xg as eK,Hr as eL,LB as eM,TT as eN,_g as eO,Dg as eP,hA as eQ,lA as eR,Vbe as eS,iA as eT,Dbe as eU,wbe as eV,zi as eW,qa as eX,Ti as eY,Ma as eZ,un as e_,Pse as ea,Ase as eb,hye as ec,ix as ed,Tse as ee,hC as ef,wye as eg,kye as eh,fo as ei,n8 as ej,Hg as ek,Vg as el,Sye as em,Ad as en,ofe as eo,Voe as ep,Wl as eq,vm as er,xm as es,wm as et,bm as eu,ym as ev,jye as ew,Cye as ex,Ebe as ey,Aye as ez,_s as f,oa as f0,qg as f1,Jt as f2,$be as f3,Hbe as f4,cye as f5,Wbe as f6,nbe as f7,abe as f8,kbe as f9,Phe as fA,GA as fB,ibe as fC,Nbe as fD,qbe as fE,Ahe as fF,dye as fG,R2 as fH,Vr as fI,Rbe as fa,Gbe as fb,Lbe as fc,Ube as fd,ixe as fe,Y as ff,kg as fg,cr as fh,Lne as fi,Obe as fj,Qne as fk,tB as fl,gn as fm,bbe as fn,Lp as fo,BC as fp,pA as fq,uye as fr,ZA as fs,JA as ft,Uve as fu,LI as fv,Jx as fw,Vd as fx,M_ as fy,qb as fz,Is as g,Fs as h,Oi as i,c as j,uc as k,dc as l,Ge as m,zae as n,Lt as o,qge as p,cc as q,m as r,pe as s,T as t,Hd as u,pye as v,Ex as w,lr as x,xl as y,fe as z};